@lovelybunch/api 1.0.71-alpha.1 → 1.0.71-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/auth/auth-manager.d.ts.map +1 -0
- package/dist/lib/auth/auth-manager.js.map +1 -0
- package/dist/lib/gait-path.d.ts.map +1 -0
- package/dist/lib/gait-path.js.map +1 -0
- package/dist/lib/git-settings.d.ts.map +1 -0
- package/dist/lib/git-settings.js.map +1 -0
- package/dist/lib/git.d.ts.map +1 -0
- package/dist/lib/git.js.map +1 -0
- package/dist/lib/jobs/global-job-scheduler.d.ts.map +1 -0
- package/dist/lib/jobs/global-job-scheduler.js.map +1 -0
- package/dist/lib/jobs/job-runner.d.ts.map +1 -0
- package/dist/lib/jobs/job-runner.js.map +1 -0
- package/dist/lib/jobs/job-scheduler.d.ts.map +1 -0
- package/dist/lib/jobs/job-scheduler.js.map +1 -0
- package/dist/lib/jobs/job-store.d.ts.map +1 -0
- package/dist/lib/jobs/job-store.js.map +1 -0
- package/dist/lib/project-paths.d.ts.map +1 -0
- package/dist/lib/project-paths.js.map +1 -0
- package/dist/lib/storage/file-storage.d.ts.map +1 -0
- package/dist/lib/storage/file-storage.js.map +1 -0
- package/dist/lib/symlinks/symlink-manager.d.ts.map +1 -0
- package/dist/lib/symlinks/symlink-manager.js.map +1 -0
- package/dist/lib/symlinks/types.d.ts.map +1 -0
- package/dist/lib/symlinks/types.js.map +1 -0
- package/dist/lib/terminal/context-helper.d.ts.map +1 -0
- package/dist/lib/terminal/context-helper.js.map +1 -0
- package/dist/lib/terminal/global-manager.d.ts.map +1 -0
- package/dist/lib/terminal/global-manager.js.map +1 -0
- package/dist/lib/terminal/shell-utils.d.ts.map +1 -0
- package/dist/lib/terminal/shell-utils.js.map +1 -0
- package/dist/lib/terminal/terminal-manager.d.ts.map +1 -0
- package/dist/lib/terminal/terminal-manager.js.map +1 -0
- package/dist/lib/user-preferences.d.ts.map +1 -0
- package/dist/lib/user-preferences.js.map +1 -0
- package/dist/middleware/auth.d.ts.map +1 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/routes/api/v1/agents/[id]/index.d.ts.map +1 -0
- package/dist/routes/api/v1/agents/[id]/index.js.map +1 -0
- package/dist/routes/api/v1/agents/[id]/route.d.ts.map +1 -0
- package/dist/routes/api/v1/agents/[id]/route.js.map +1 -0
- package/dist/routes/api/v1/agents/index.d.ts.map +1 -0
- package/dist/routes/api/v1/agents/index.js.map +1 -0
- package/dist/routes/api/v1/agents/route.d.ts.map +1 -0
- package/dist/routes/api/v1/agents/route.js.map +1 -0
- package/dist/routes/api/v1/ai/index.d.ts.map +1 -0
- package/dist/routes/api/v1/ai/index.js.map +1 -0
- package/dist/routes/api/v1/ai/route.d.ts.map +1 -0
- package/dist/routes/api/v1/ai/route.js.map +1 -0
- package/dist/routes/api/v1/api-keys/index.d.ts.map +1 -0
- package/dist/routes/api/v1/api-keys/index.js.map +1 -0
- package/dist/routes/api/v1/api-keys/route.d.ts.map +1 -0
- package/dist/routes/api/v1/api-keys/route.js.map +1 -0
- package/dist/routes/api/v1/auth/index.d.ts.map +1 -0
- package/dist/routes/api/v1/auth/index.js.map +1 -0
- package/dist/routes/api/v1/auth/route.d.ts.map +1 -0
- package/dist/routes/api/v1/auth/route.js.map +1 -0
- package/dist/routes/api/v1/auth-settings/index.d.ts.map +1 -0
- package/dist/routes/api/v1/auth-settings/index.js.map +1 -0
- package/dist/routes/api/v1/auth-settings/route.d.ts.map +1 -0
- package/dist/routes/api/v1/auth-settings/route.js.map +1 -0
- package/dist/routes/api/v1/chats/[id]/index.d.ts.map +1 -0
- package/dist/routes/api/v1/chats/[id]/index.js.map +1 -0
- package/dist/routes/api/v1/chats/[id]/route.d.ts.map +1 -0
- package/dist/routes/api/v1/chats/[id]/route.js.map +1 -0
- package/dist/routes/api/v1/chats/index.d.ts.map +1 -0
- package/dist/routes/api/v1/chats/index.js.map +1 -0
- package/dist/routes/api/v1/chats/route.d.ts.map +1 -0
- package/dist/routes/api/v1/chats/route.js.map +1 -0
- package/dist/routes/api/v1/config/index.d.ts.map +1 -0
- package/dist/routes/api/v1/config/index.js.map +1 -0
- package/dist/routes/api/v1/config/route.d.ts.map +1 -0
- package/dist/routes/api/v1/config/route.js.map +1 -0
- package/dist/routes/api/v1/context/architecture/route.d.ts.map +1 -0
- package/dist/routes/api/v1/context/architecture/route.js.map +1 -0
- package/dist/routes/api/v1/context/index.d.ts.map +1 -0
- package/dist/routes/api/v1/context/index.js.map +1 -0
- package/dist/routes/api/v1/context/knowledge/[filename]/index.d.ts.map +1 -0
- package/dist/routes/api/v1/context/knowledge/[filename]/index.js.map +1 -0
- package/dist/routes/api/v1/context/knowledge/[filename]/route.d.ts.map +1 -0
- package/dist/routes/api/v1/context/knowledge/[filename]/route.js.map +1 -0
- package/dist/routes/api/v1/context/knowledge/index.d.ts.map +1 -0
- package/dist/routes/api/v1/context/knowledge/index.js.map +1 -0
- package/dist/routes/api/v1/context/knowledge/route.d.ts.map +1 -0
- package/dist/routes/api/v1/context/knowledge/route.js.map +1 -0
- package/dist/routes/api/v1/context/project/route.d.ts.map +1 -0
- package/dist/routes/api/v1/context/project/route.js.map +1 -0
- package/dist/routes/api/v1/events/status/route.d.ts +1 -1
- package/dist/routes/api/v1/git/index.d.ts.map +1 -0
- package/dist/routes/api/v1/git/index.js.map +1 -0
- package/dist/routes/api/v1/jobs/[id]/route.d.ts.map +1 -0
- package/dist/routes/api/v1/jobs/[id]/route.js.map +1 -0
- package/dist/routes/api/v1/jobs/[id]/run/route.d.ts +2 -2
- package/dist/routes/api/v1/jobs/[id]/run/route.d.ts.map +1 -0
- package/dist/routes/api/v1/jobs/[id]/run/route.js.map +1 -0
- package/dist/routes/api/v1/jobs/index.d.ts.map +1 -0
- package/dist/routes/api/v1/jobs/index.js.map +1 -0
- package/dist/routes/api/v1/jobs/route.d.ts.map +1 -0
- package/dist/routes/api/v1/jobs/route.js.map +1 -0
- package/dist/routes/api/v1/jobs/status/route.d.ts +1 -1
- package/dist/routes/api/v1/jobs/status/route.d.ts.map +1 -0
- package/dist/routes/api/v1/jobs/status/route.js.map +1 -0
- package/dist/routes/api/v1/mcp/index.d.ts.map +1 -0
- package/dist/routes/api/v1/mcp/index.js.map +1 -0
- package/dist/routes/api/v1/mcp/route.d.ts.map +1 -0
- package/dist/routes/api/v1/mcp/route.js.map +1 -0
- package/dist/routes/api/v1/proposals/[id]/route.d.ts +8 -8
- package/dist/routes/api/v1/proposals/[id]/route.d.ts.map +1 -0
- package/dist/routes/api/v1/proposals/[id]/route.js.map +1 -0
- package/dist/routes/api/v1/proposals/index.d.ts.map +1 -0
- package/dist/routes/api/v1/proposals/index.js.map +1 -0
- package/dist/routes/api/v1/proposals/route.d.ts.map +1 -0
- package/dist/routes/api/v1/proposals/route.js.map +1 -0
- package/dist/routes/api/v1/resources/[id]/index.d.ts.map +1 -0
- package/dist/routes/api/v1/resources/[id]/index.js.map +1 -0
- package/dist/routes/api/v1/resources/[id]/route.js.map +1 -0
- package/dist/routes/api/v1/resources/[id]/thumbnail/index.d.ts.map +1 -0
- package/dist/routes/api/v1/resources/[id]/thumbnail/index.js.map +1 -0
- package/dist/routes/api/v1/resources/[id]/thumbnail/route.js.map +1 -0
- package/dist/routes/api/v1/resources/index.d.ts.map +1 -0
- package/dist/routes/api/v1/resources/index.js.map +1 -0
- package/dist/routes/api/v1/resources/route.d.ts.map +1 -0
- package/dist/routes/api/v1/resources/route.js.map +1 -0
- package/dist/routes/api/v1/symlinks/index.d.ts.map +1 -0
- package/dist/routes/api/v1/symlinks/index.js.map +1 -0
- package/dist/routes/api/v1/symlinks/route.d.ts.map +1 -0
- package/dist/routes/api/v1/symlinks/route.js.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/create/index.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/create/index.js.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/create/route.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/create/route.js.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/destroy/index.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/destroy/index.js.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/destroy/route.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/destroy/route.js.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/resize/index.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/resize/index.js.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/resize/route.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/[proposalId]/resize/route.js.map +1 -0
- package/dist/routes/api/v1/terminal/sessions/index.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/sessions/index.js.map +1 -0
- package/dist/routes/api/v1/terminal/sessions/route.d.ts.map +1 -0
- package/dist/routes/api/v1/terminal/sessions/route.js.map +1 -0
- package/dist/routes/api/v1/user/index.d.ts.map +1 -0
- package/dist/routes/api/v1/user/index.js.map +1 -0
- package/dist/routes/api/v1/user/settings/index.d.ts.map +1 -0
- package/dist/routes/api/v1/user/settings/index.js.map +1 -0
- package/dist/routes/api/v1/user/settings/route.d.ts.map +1 -0
- package/dist/routes/api/v1/user/settings/route.js.map +1 -0
- package/dist/server-with-static.d.ts.map +1 -0
- package/dist/server-with-static.js.map +1 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js.map +1 -0
- package/package.json +4 -4
- package/static/assets/AgentDetailPage-DwWIjGx1.js +1 -0
- package/static/assets/AgentEditPage-BvVPfYR3.js +1 -0
- package/static/assets/AgentsPage-D-Uy87Gh.js +3 -0
- package/static/assets/AgentsSettingsPage-CDuAvFxu.js +6 -0
- package/static/assets/ApiKeysSettingsPage-Jug0kB7Z.js +7 -0
- package/static/assets/ArchitectureEditPage-BmAgJAMV.js +21 -0
- package/static/assets/ArchitecturePage-ZjbdnDA7.js +1 -0
- package/static/assets/AuthSettingsPage-_pXoewOB.js +11 -0
- package/static/assets/CallbackPage-CaAOpz4z.js +1 -0
- package/static/assets/CodePage-DEbgr8C1.js +2 -0
- package/static/assets/CollapsibleSection-msxUBh1L.js +1 -0
- package/static/assets/DashboardPage-BXu-fikP.js +11 -0
- package/static/assets/GitPage-B7qFcP-K.js +16 -0
- package/static/assets/GitSettingsPage-D7GjdOnE.js +6 -0
- package/static/assets/IdentityPage-BR48gNhN.js +11 -0
- package/static/assets/ImplementationStepsEditor-BdHMNVVd.js +6 -0
- package/static/assets/IntegrationsSettingsPage-B1OHGlDC.js +1 -0
- package/static/assets/KnowledgeDetailPage-DBOQQs3R.js +1 -0
- package/static/assets/KnowledgeEditPage-DHJxLPwi.js +1 -0
- package/static/assets/KnowledgePage-CuuDTMa_.js +8 -0
- package/static/assets/LoginPage-IIU6NAG9.js +1 -0
- package/static/assets/McpSettingsPage-iz5gLGWt.js +1 -0
- package/static/assets/NewAgentPage-DolltGy5.js +1 -0
- package/static/assets/NewKnowledgePage-_jbUZqBU.js +9 -0
- package/static/assets/NewProposalPage-bFnfuuoA.js +90 -0
- package/static/assets/ProjectEditPage-DTTjPnGj.js +11 -0
- package/static/assets/ProjectPage-DhwrnEq2.js +1 -0
- package/static/assets/PromptsSettingsPage-DLOVysbE.js +1 -0
- package/static/assets/ProposalDetailPage-KvjXUaaf.js +1 -0
- package/static/assets/ProposalEditPage-BmzkHL9a.js +1 -0
- package/static/assets/ProposalsPage-DwQr1ycd.js +17 -0
- package/static/assets/ResourcesPage-B8Hm_j47.js +66 -0
- package/static/assets/RulesSettingsPage-CsGXFTFY.js +16 -0
- package/static/assets/SchedulePage-CY8GdQlp.js +4 -0
- package/static/assets/TagInput-CbH9zq5n.js +1 -0
- package/static/assets/TerminalPage-DsjOLnyY.js +1 -0
- package/static/assets/TerminalSessionPage-DQ065WYU.js +13 -0
- package/static/assets/UserPreferencesPage-55VTrzfQ.js +1 -0
- package/static/assets/UserSettingsPage-BZwb93B4.js +1 -0
- package/static/assets/UtilitiesPage-BmEW7eJ_.js +1 -0
- package/static/assets/alert-CNSGDe1U.js +1 -0
- package/static/assets/arrow-down-D1dapxzl.js +6 -0
- package/static/assets/arrow-left-CEZFPQje.js +6 -0
- package/static/assets/arrow-up-D-lB4Ah6.js +6 -0
- package/static/assets/badge-DO6e5hC1.js +1 -0
- package/static/assets/browser-modal-BTxVvZIA.js +6 -0
- package/static/assets/calendar-DWaFMSXH.js +6 -0
- package/static/assets/card-Cnz8b7Ou.js +1 -0
- package/static/assets/chevron-left-CNgc28Tc.js +6 -0
- package/static/assets/circle-alert-Dick-jNf.js +6 -0
- package/static/assets/circle-check-DDk43rYV.js +6 -0
- package/static/assets/circle-check-big-B70gdce7.js +6 -0
- package/static/assets/circle-play-TJEfmKde.js +6 -0
- package/static/assets/circle-x-BfR2YcXx.js +6 -0
- package/static/assets/clipboard-B9ndUJKl.js +1 -0
- package/static/assets/clipboard-BTZru8wn.js +11 -0
- package/static/assets/clock-DQXbrDkQ.js +6 -0
- package/static/assets/download-CW_rWwud.js +6 -0
- package/static/assets/droid-CmYuCN_q.js +4 -0
- package/static/assets/eye-Bv6mO2ld.js +6 -0
- package/static/assets/folder-git-2-Cv5NbBZZ.js +6 -0
- package/static/assets/index-BSBM4i_g.js +458 -0
- package/static/assets/{index-Bo1l13x2.css → index-CKwmN6yL.css} +2 -33
- package/static/assets/label-vEgNxdb2.js +1 -0
- package/static/assets/markdown-editor-DUEthZ0y.css +1 -0
- package/static/assets/markdown-editor-O6tGYa1a.js +62 -0
- package/static/assets/pause-6aQLhmG9.js +6 -0
- package/static/assets/play-DsDsjO2V.js +6 -0
- package/static/assets/plus-BfBtnncn.js +6 -0
- package/static/assets/radio-group-D_RD_9vY.js +1 -0
- package/static/assets/refresh-cw-DvFNtws1.js +6 -0
- package/static/assets/search-kcgmZUqQ.js +6 -0
- package/static/assets/switch-Bjq8cgQn.js +1 -0
- package/static/assets/tabs-DDbBXbPg.js +1 -0
- package/static/assets/tag-Czz-3rNY.js +6 -0
- package/static/assets/terminal-preview-B7iP2vUT.js +11 -0
- package/static/assets/use-terminal-CN3pheMp.js +1 -0
- package/static/assets/xterm-DTxiCjtJ.js +9 -0
- package/static/assets/xterm-qxJ8_QYu.css +32 -0
- package/static/assets/zap-BMkP_c9R.js +6 -0
- package/static/index.html +2 -2
- package/static/assets/index-DgZp291y.js +0 -973
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BXu-fikP.js","assets/card-Cnz8b7Ou.js","assets/badge-DO6e5hC1.js","assets/folder-git-2-Cv5NbBZZ.js","assets/calendar-DWaFMSXH.js","assets/circle-check-DDk43rYV.js","assets/chevron-left-CNgc28Tc.js","assets/clock-DQXbrDkQ.js","assets/circle-check-big-B70gdce7.js","assets/plus-BfBtnncn.js","assets/LoginPage-IIU6NAG9.js","assets/label-vEgNxdb2.js","assets/tabs-DDbBXbPg.js","assets/CallbackPage-CaAOpz4z.js","assets/circle-x-BfR2YcXx.js","assets/ProposalsPage-DwQr1ycd.js","assets/search-kcgmZUqQ.js","assets/ProposalDetailPage-KvjXUaaf.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-CEZFPQje.js","assets/clipboard-BTZru8wn.js","assets/download-CW_rWwud.js","assets/ProposalEditPage-BmzkHL9a.js","assets/markdown-editor-O6tGYa1a.js","assets/markdown-editor-DUEthZ0y.css","assets/CollapsibleSection-msxUBh1L.js","assets/ImplementationStepsEditor-BdHMNVVd.js","assets/TagInput-CbH9zq5n.js","assets/NewProposalPage-bFnfuuoA.js","assets/TerminalPage-DsjOLnyY.js","assets/use-terminal-CN3pheMp.js","assets/terminal-preview-B7iP2vUT.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/refresh-cw-DvFNtws1.js","assets/play-DsDsjO2V.js","assets/circle-play-TJEfmKde.js","assets/TerminalSessionPage-DQ065WYU.js","assets/radio-group-D_RD_9vY.js","assets/arrow-down-D1dapxzl.js","assets/droid-CmYuCN_q.js","assets/zap-BMkP_c9R.js","assets/UtilitiesPage-BmEW7eJ_.js","assets/CodePage-DEbgr8C1.js","assets/AgentsPage-D-Uy87Gh.js","assets/browser-modal-BTxVvZIA.js","assets/tag-Czz-3rNY.js","assets/AgentDetailPage-DwWIjGx1.js","assets/NewAgentPage-DolltGy5.js","assets/AgentEditPage-BvVPfYR3.js","assets/ResourcesPage-B8Hm_j47.js","assets/KnowledgePage-CuuDTMa_.js","assets/arrow-up-D-lB4Ah6.js","assets/KnowledgeDetailPage-DBOQQs3R.js","assets/KnowledgeEditPage-DHJxLPwi.js","assets/NewKnowledgePage-_jbUZqBU.js","assets/ProjectPage-DhwrnEq2.js","assets/ProjectEditPage-DTTjPnGj.js","assets/ArchitecturePage-ZjbdnDA7.js","assets/ArchitectureEditPage-BmAgJAMV.js","assets/IdentityPage-BR48gNhN.js","assets/alert-CNSGDe1U.js","assets/eye-Bv6mO2ld.js","assets/UserSettingsPage-BZwb93B4.js","assets/AuthSettingsPage-_pXoewOB.js","assets/switch-Bjq8cgQn.js","assets/circle-alert-Dick-jNf.js","assets/ApiKeysSettingsPage-Jug0kB7Z.js","assets/AgentsSettingsPage-CDuAvFxu.js","assets/pause-6aQLhmG9.js","assets/IntegrationsSettingsPage-B1OHGlDC.js","assets/GitSettingsPage-D7GjdOnE.js","assets/McpSettingsPage-iz5gLGWt.js","assets/PromptsSettingsPage-DLOVysbE.js","assets/RulesSettingsPage-CsGXFTFY.js","assets/GitPage-B7qFcP-K.js","assets/SchedulePage-CY8GdQlp.js","assets/UserPreferencesPage-55VTrzfQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function _T(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fh={exports:{}},Sl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Fx;function MT(){if(Fx)return Sl;Fx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return Sl.Fragment=n,Sl.jsx=r,Sl.jsxs=r,Sl}var qx;function jT(){return qx||(qx=1,fh.exports=MT()),fh.exports}var g=jT(),dh={exports:{}},Le={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var Vx;function DT(){if(Vx)return Le;Vx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=y&&k[y]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,E={};function A(k,Q,le){this.props=k,this.context=Q,this.refs=E,this.updater=le||w}A.prototype.isReactComponent={},A.prototype.setState=function(k,Q){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Q,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=A.prototype;function N(k,Q,le){this.props=k,this.context=Q,this.refs=E,this.updater=le||w}var R=N.prototype=new T;R.constructor=N,S(R,A.prototype),R.isPureReactComponent=!0;var O=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function B(k,Q,le,M,ce,Se){return le=Se.ref,{$$typeof:e,type:k,key:Q,ref:le!==void 0?le:null,props:Se}}function F(k,Q){return B(k.type,Q,void 0,void 0,void 0,k.props)}function Z(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function L(k){var Q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(le){return Q[le]})}var W=/\/+/g;function J(k,Q){return typeof k=="object"&&k!==null&&k.key!=null?L(""+k.key):Q.toString(36)}function ae(){}function K(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ae,ae):(k.status="pending",k.then(function(Q){k.status==="pending"&&(k.status="fulfilled",k.value=Q)},function(Q){k.status==="pending"&&(k.status="rejected",k.reason=Q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function ie(k,Q,le,M,ce){var Se=typeof k;(Se==="undefined"||Se==="boolean")&&(k=null);var me=!1;if(k===null)me=!0;else switch(Se){case"bigint":case"string":case"number":me=!0;break;case"object":switch(k.$$typeof){case e:case n:me=!0;break;case m:return me=k._init,ie(me(k._payload),Q,le,M,ce)}}if(me)return ce=ce(k),me=M===""?"."+J(k,0):M,O(ce)?(le="",me!=null&&(le=me.replace(W,"$&/")+"/"),ie(ce,Q,le,"",function(Oe){return Oe})):ce!=null&&(Z(ce)&&(ce=F(ce,le+(ce.key==null||k&&k.key===ce.key?"":(""+ce.key).replace(W,"$&/")+"/")+me)),Q.push(ce)),1;me=0;var se=M===""?".":M+":";if(O(k))for(var ge=0;ge<k.length;ge++)M=k[ge],Se=se+J(M,ge),me+=ie(M,Q,le,Se,ce);else if(ge=b(k),typeof ge=="function")for(k=ge.call(k),ge=0;!(M=k.next()).done;)M=M.value,Se=se+J(M,ge++),me+=ie(M,Q,le,Se,ce);else if(Se==="object"){if(typeof k.then=="function")return ie(K(k),Q,le,M,ce);throw Q=String(k),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return me}function z(k,Q,le){if(k==null)return k;var M=[],ce=0;return ie(k,M,"","",function(Se){return Q.call(le,Se,ce++)}),M}function X(k){if(k._status===-1){var Q=k._result;Q=Q(),Q.then(function(le){(k._status===0||k._status===-1)&&(k._status=1,k._result=le)},function(le){(k._status===0||k._status===-1)&&(k._status=2,k._result=le)}),k._status===-1&&(k._status=0,k._result=Q)}if(k._status===1)return k._result.default;throw k._result}var H=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function re(){}return Le.Children={map:z,forEach:function(k,Q,le){z(k,function(){Q.apply(this,arguments)},le)},count:function(k){var Q=0;return z(k,function(){Q++}),Q},toArray:function(k){return z(k,function(Q){return Q})||[]},only:function(k){if(!Z(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Le.Component=A,Le.Fragment=r,Le.Profiler=l,Le.PureComponent=N,Le.StrictMode=i,Le.Suspense=d,Le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Le.__COMPILER_RUNTIME={__proto__:null,c:function(k){return D.H.useMemoCache(k)}},Le.cache=function(k){return function(){return k.apply(null,arguments)}},Le.cloneElement=function(k,Q,le){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var M=S({},k.props),ce=k.key,Se=void 0;if(Q!=null)for(me in Q.ref!==void 0&&(Se=void 0),Q.key!==void 0&&(ce=""+Q.key),Q)!j.call(Q,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&Q.ref===void 0||(M[me]=Q[me]);var me=arguments.length-2;if(me===1)M.children=le;else if(1<me){for(var se=Array(me),ge=0;ge<me;ge++)se[ge]=arguments[ge+2];M.children=se}return B(k.type,ce,void 0,void 0,Se,M)},Le.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},Le.createElement=function(k,Q,le){var M,ce={},Se=null;if(Q!=null)for(M in Q.key!==void 0&&(Se=""+Q.key),Q)j.call(Q,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(ce[M]=Q[M]);var me=arguments.length-2;if(me===1)ce.children=le;else if(1<me){for(var se=Array(me),ge=0;ge<me;ge++)se[ge]=arguments[ge+2];ce.children=se}if(k&&k.defaultProps)for(M in me=k.defaultProps,me)ce[M]===void 0&&(ce[M]=me[M]);return B(k,Se,void 0,void 0,null,ce)},Le.createRef=function(){return{current:null}},Le.forwardRef=function(k){return{$$typeof:f,render:k}},Le.isValidElement=Z,Le.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:X}},Le.memo=function(k,Q){return{$$typeof:h,type:k,compare:Q===void 0?null:Q}},Le.startTransition=function(k){var Q=D.T,le={};D.T=le;try{var M=k(),ce=D.S;ce!==null&&ce(le,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(re,H)}catch(Se){H(Se)}finally{D.T=Q}},Le.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Le.use=function(k){return D.H.use(k)},Le.useActionState=function(k,Q,le){return D.H.useActionState(k,Q,le)},Le.useCallback=function(k,Q){return D.H.useCallback(k,Q)},Le.useContext=function(k){return D.H.useContext(k)},Le.useDebugValue=function(){},Le.useDeferredValue=function(k,Q){return D.H.useDeferredValue(k,Q)},Le.useEffect=function(k,Q,le){var M=D.H;if(typeof le=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(k,Q)},Le.useId=function(){return D.H.useId()},Le.useImperativeHandle=function(k,Q,le){return D.H.useImperativeHandle(k,Q,le)},Le.useInsertionEffect=function(k,Q){return D.H.useInsertionEffect(k,Q)},Le.useLayoutEffect=function(k,Q){return D.H.useLayoutEffect(k,Q)},Le.useMemo=function(k,Q){return D.H.useMemo(k,Q)},Le.useOptimistic=function(k,Q){return D.H.useOptimistic(k,Q)},Le.useReducer=function(k,Q,le){return D.H.useReducer(k,Q,le)},Le.useRef=function(k){return D.H.useRef(k)},Le.useState=function(k){return D.H.useState(k)},Le.useSyncExternalStore=function(k,Q,le){return D.H.useSyncExternalStore(k,Q,le)},Le.useTransition=function(){return D.H.useTransition()},Le.version="19.1.1",Le}var $x;function Vp(){return $x||($x=1,dh.exports=DT()),dh.exports}var x=Vp();const wa=vc(x),V0=_T({__proto__:null,default:wa},[x]);var hh={exports:{}},El={},ph={exports:{}},mh={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Gx;function OT(){return Gx||(Gx=1,(function(e){function n(z,X){var H=z.length;z.push(X);e:for(;0<H;){var re=H-1>>>1,k=z[re];if(0<l(k,X))z[re]=X,z[H]=k,H=re;else break e}}function r(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var X=z[0],H=z.pop();if(H!==X){z[0]=H;e:for(var re=0,k=z.length,Q=k>>>1;re<Q;){var le=2*(re+1)-1,M=z[le],ce=le+1,Se=z[ce];if(0>l(M,H))ce<k&&0>l(Se,M)?(z[re]=Se,z[ce]=H,re=ce):(z[re]=M,z[le]=H,re=le);else if(ce<k&&0>l(Se,H))z[re]=Se,z[ce]=H,re=ce;else break e}}return X}function l(z,X){var H=z.sortIndex-X.sortIndex;return H!==0?H:z.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],m=1,y=null,b=3,w=!1,S=!1,E=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function O(z){for(var X=r(h);X!==null;){if(X.callback===null)i(h);else if(X.startTime<=z)i(h),X.sortIndex=X.expirationTime,n(d,X);else break;X=r(h)}}function D(z){if(E=!1,O(z),!S)if(r(d)!==null)S=!0,j||(j=!0,J());else{var X=r(h);X!==null&&ie(D,X.startTime-z)}}var j=!1,B=-1,F=5,Z=-1;function L(){return A?!0:!(e.unstable_now()-Z<F)}function W(){if(A=!1,j){var z=e.unstable_now();Z=z;var X=!0;try{e:{S=!1,E&&(E=!1,N(B),B=-1),w=!0;var H=b;try{t:{for(O(z),y=r(d);y!==null&&!(y.expirationTime>z&&L());){var re=y.callback;if(typeof re=="function"){y.callback=null,b=y.priorityLevel;var k=re(y.expirationTime<=z);if(z=e.unstable_now(),typeof k=="function"){y.callback=k,O(z),X=!0;break t}y===r(d)&&i(d),O(z)}else i(d);y=r(d)}if(y!==null)X=!0;else{var Q=r(h);Q!==null&&ie(D,Q.startTime-z),X=!1}}break e}finally{y=null,b=H,w=!1}X=void 0}}finally{X?J():j=!1}}}var J;if(typeof R=="function")J=function(){R(W)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,K=ae.port2;ae.port1.onmessage=W,J=function(){K.postMessage(null)}}else J=function(){T(W,0)};function ie(z,X){B=T(function(){z(e.unstable_now())},X)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<z?Math.floor(1e3/z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(z){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var H=b;b=X;try{return z()}finally{b=H}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(z,X){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var H=b;b=z;try{return X()}finally{b=H}},e.unstable_scheduleCallback=function(z,X,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?re+H:re):H=re,z){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=H+k,z={id:m++,callback:X,priorityLevel:z,startTime:H,expirationTime:k,sortIndex:-1},H>re?(z.sortIndex=H,n(h,z),r(d)===null&&z===r(h)&&(E?(N(B),B=-1):E=!0,ie(D,H-re))):(z.sortIndex=k,n(d,z),S||w||(S=!0,j||(j=!0,J()))),z},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(z){var X=b;return function(){var H=b;b=X;try{return z.apply(this,arguments)}finally{b=H}}}})(mh)),mh}var Yx;function PT(){return Yx||(Yx=1,ph.exports=OT()),ph.exports}var gh={exports:{}},en={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Kx;function LT(){if(Kx)return en;Kx=1;var e=Vp();function n(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(d,h,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:d,containerInfo:h,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return en.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,en.createPortal=function(d,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return s(d,h,null,m)},en.flushSync=function(d){var h=c.T,m=i.p;try{if(c.T=null,i.p=2,d)return d()}finally{c.T=h,i.p=m,i.d.f()}},en.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},en.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},en.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):m==="script"&&i.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},en.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},en.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,y=f(m,h.crossOrigin);i.d.L(d,m,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},en.preloadModule=function(d,h){if(typeof d=="string")if(h){var m=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},en.requestFormReset=function(d){i.d.r(d)},en.unstable_batchedUpdates=function(d,h){return d(h)},en.useFormState=function(d,h,m){return c.H.useFormState(d,h,m)},en.useFormStatus=function(){return c.H.useHostTransitionStatus()},en.version="19.1.1",en}var Xx;function $0(){if(Xx)return gh.exports;Xx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),gh.exports=LT(),gh.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Qx;function zT(){if(Qx)return El;Qx=1;var e=PT(),n=Vp(),r=$0();function i(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var a=t,o=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(o=a.return),t=a.return;while(t)}return a.tag===3?o:null}function c(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(s(t)!==t)throw Error(i(188))}function d(t){var a=t.alternate;if(!a){if(a=s(t),a===null)throw Error(i(188));return a!==t?null:t}for(var o=t,u=a;;){var p=o.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){o=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===o)return f(p),t;if(v===u)return f(p),a;v=v.sibling}throw Error(i(188))}if(o.return!==u.return)o=p,u=v;else{for(var C=!1,_=p.child;_;){if(_===o){C=!0,o=p,u=v;break}if(_===u){C=!0,u=p,o=v;break}_=_.sibling}if(!C){for(_=v.child;_;){if(_===o){C=!0,o=v,u=p;break}if(_===u){C=!0,u=v,o=p;break}_=_.sibling}if(!C)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:a}function h(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=h(t),a!==null)return a;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),L=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function J(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var ae=Symbol.for("react.client.reference");function K(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ae?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case A:return"Profiler";case E:return"StrictMode";case D:return"Suspense";case j:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case R:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case O:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return a=t.displayName||null,a!==null?a:K(t.type)||"Memo";case F:a=t._payload,t=t._init;try{return K(t(a))}catch{}}return null}var ie=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},re=[],k=-1;function Q(t){return{current:t}}function le(t){0>k||(t.current=re[k],re[k]=null,k--)}function M(t,a){k++,re[k]=t.current,t.current=a}var ce=Q(null),Se=Q(null),me=Q(null),se=Q(null);function ge(t,a){switch(M(me,a),M(Se,t),M(ce,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?gx(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=gx(a),t=yx(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}le(ce),M(ce,t)}function Oe(){le(ce),le(Se),le(me)}function De(t){t.memoizedState!==null&&M(se,t);var a=ce.current,o=yx(a,t.type);a!==o&&(M(Se,t),M(ce,o))}function Pe(t){Se.current===t&&(le(ce),le(Se)),se.current===t&&(le(se),yl._currentValue=H)}var Ue=Object.prototype.hasOwnProperty,ft=e.unstable_scheduleCallback,Zt=e.unstable_cancelCallback,Vt=e.unstable_shouldYield,lr=e.unstable_requestPaint,xt=e.unstable_now,Ao=e.unstable_getCurrentPriorityLevel,Ma=e.unstable_ImmediatePriority,Kr=e.unstable_UserBlockingPriority,Sr=e.unstable_NormalPriority,si=e.unstable_LowPriority,Er=e.unstable_IdlePriority,To=e.log,Ro=e.unstable_setDisableYieldValue,ee=null,fe=null;function Ce(t){if(typeof To=="function"&&Ro(t),fe&&typeof fe.setStrictMode=="function")try{fe.setStrictMode(ee,t)}catch{}}var Ae=Math.clz32?Math.clz32:Kn,tt=Math.log,rn=Math.LN2;function Kn(t){return t>>>=0,t===0?32:31-(tt(t)/rn|0)|0}var Wt=256,xn=4194304;function $t(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Tt(t,a,o){var u=t.pendingLanes;if(u===0)return 0;var p=0,v=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var _=u&134217727;return _!==0?(u=_&~v,u!==0?p=$t(u):(C&=_,C!==0?p=$t(C):o||(o=_&~t,o!==0&&(p=$t(o))))):(_=u&~v,_!==0?p=$t(_):C!==0?p=$t(C):o||(o=u&~t,o!==0&&(p=$t(o)))),p===0?0:a!==0&&a!==p&&(a&v)===0&&(v=p&-p,o=a&-a,v>=o||v===32&&(o&4194048)!==0)?a:p}function Ot(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function an(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $(){var t=Wt;return Wt<<=1,(Wt&4194048)===0&&(Wt=256),t}function de(){var t=xn;return xn<<=1,(xn&62914560)===0&&(xn=4194304),t}function ye(t){for(var a=[],o=0;31>o;o++)a.push(t);return a}function ve(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Me(t,a,o,u,p,v){var C=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var _=t.entanglements,P=t.expirationTimes,V=t.hiddenUpdates;for(o=C&~o;0<o;){var te=31-Ae(o),oe=1<<te;_[te]=0,P[te]=-1;var G=V[te];if(G!==null)for(V[te]=null,te=0;te<G.length;te++){var Y=G[te];Y!==null&&(Y.lane&=-536870913)}o&=~oe}u!==0&&Je(t,u,0),v!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=v&~(C&~a))}function Je(t,a,o){t.pendingLanes|=a,t.suspendedLanes&=~a;var u=31-Ae(a);t.entangledLanes|=a,t.entanglements[u]=t.entanglements[u]|1073741824|o&4194090}function on(t,a){var o=t.entangledLanes|=a;for(t=t.entanglements;o;){var u=31-Ae(o),p=1<<u;p&a|t[u]&a&&(t[u]|=a),o&=~p}}function wt(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ve(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Gt(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:Lx(t.type))}function Xn(t,a){var o=X.p;try{return X.p=t,a()}finally{X.p=o}}var Pt=Math.random().toString(36).slice(2),$e="__reactFiber$"+Pt,pt="__reactProps$"+Pt,Lt="__reactContainer$"+Pt,ja="__reactEvents$"+Pt,ui="__reactListeners$"+Pt,No="__reactHandles$"+Pt,gs="__reactResources$"+Pt,Yt="__reactMarker$"+Pt;function ln(t){delete t[$e],delete t[pt],delete t[ja],delete t[ui],delete t[No]}function it(t){var a=t[$e];if(a)return a;for(var o=t.parentNode;o;){if(a=o[Lt]||o[$e]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(t=wx(t);t!==null;){if(o=t[$e])return o;t=wx(t)}return a}t=o,o=t.parentNode}return null}function Qn(t){if(t=t[$e]||t[Lt]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function gt(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function mt(t){var a=t[gs];return a||(a=t[gs]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Qe(t){t[Yt]=!0}var Cr=new Set,ci={};function bn(t,a){St(t,a),St(t+"Capture",a)}function St(t,a){for(ci[t]=a,t=0;t<a.length;t++)Cr.add(a[t])}var Xr=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Qr={},sg={};function E2(t){return Ue.call(sg,t)?!0:Ue.call(Qr,t)?!1:Xr.test(t)?sg[t]=!0:(Qr[t]=!0,!1)}function ys(t,a,o){if(E2(a))if(o===null)t.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+o)}}function vs(t,a,o){if(o===null)t.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+o)}}function kr(t,a,o,u){if(u===null)t.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(a,o,""+u)}}var af,ug;function fi(t){if(af===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);af=a&&a[1]||"",ug=-1<o.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+af+t+ug}var of=!1;function lf(t,a){if(!t||of)return"";of=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Y){var G=Y}Reflect.construct(t,[],oe)}else{try{oe.call()}catch(Y){G=Y}t.call(oe.prototype)}}else{try{throw Error()}catch(Y){G=Y}(oe=t())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(Y){if(Y&&G&&typeof Y.stack=="string")return[Y.stack,G.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=u.DetermineComponentFrameRoot(),C=v[0],_=v[1];if(C&&_){var P=C.split(`
|
|
45
|
+
`),V=_.split(`
|
|
46
|
+
`);for(p=u=0;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;for(;p<V.length&&!V[p].includes("DetermineComponentFrameRoot");)p++;if(u===P.length||p===V.length)for(u=P.length-1,p=V.length-1;1<=u&&0<=p&&P[u]!==V[p];)p--;for(;1<=u&&0<=p;u--,p--)if(P[u]!==V[p]){if(u!==1||p!==1)do if(u--,p--,0>p||P[u]!==V[p]){var te=`
|
|
47
|
+
`+P[u].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=u&&0<=p);break}}}finally{of=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?fi(o):""}function C2(t){switch(t.tag){case 26:case 27:case 5:return fi(t.type);case 16:return fi("Lazy");case 13:return fi("Suspense");case 19:return fi("SuspenseList");case 0:case 15:return lf(t.type,!1);case 11:return lf(t.type.render,!1);case 1:return lf(t.type,!0);case 31:return fi("Activity");default:return""}}function cg(t){try{var a="";do a+=C2(t),t=t.return;while(t);return a}catch(o){return`
|
|
48
|
+
Error generating stack: `+o.message+`
|
|
49
|
+
`+o.stack}}function jn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function fg(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function k2(t){var a=fg(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),u=""+t[a];if(!t.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var p=o.get,v=o.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return p.call(this)},set:function(C){u=""+C,v.call(this,C)}}),Object.defineProperty(t,a,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function xs(t){t._valueTracker||(t._valueTracker=k2(t))}function dg(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return t&&(u=fg(t)?t.checked?"true":"false":t.value),t=u,t!==o?(a.setValue(t),!0):!1}function bs(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var A2=/[\n"\\]/g;function Dn(t){return t.replace(A2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function sf(t,a,o,u,p,v,C,_){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),a!=null?C==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+jn(a)):t.value!==""+jn(a)&&(t.value=""+jn(a)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),a!=null?uf(t,C,jn(a)):o!=null?uf(t,C,jn(o)):u!=null&&t.removeAttribute("value"),p==null&&v!=null&&(t.defaultChecked=!!v),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+jn(_):t.removeAttribute("name")}function hg(t,a,o,u,p,v,C,_){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.type=v),a!=null||o!=null){if(!(v!=="submit"&&v!=="reset"||a!=null))return;o=o!=null?""+jn(o):"",a=a!=null?""+jn(a):o,_||a===t.value||(t.value=a),t.defaultValue=a}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=_?t.checked:!!u,t.defaultChecked=!!u,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C)}function uf(t,a,o){a==="number"&&bs(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function di(t,a,o,u){if(t=t.options,a){a={};for(var p=0;p<o.length;p++)a["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=a.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&u&&(t[o].defaultSelected=!0)}else{for(o=""+jn(o),a=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}a!==null||t[p].disabled||(a=t[p])}a!==null&&(a.selected=!0)}}function pg(t,a,o){if(a!=null&&(a=""+jn(a),a!==t.value&&(t.value=a),o==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=o!=null?""+jn(o):""}function mg(t,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(i(92));if(ie(u)){if(1<u.length)throw Error(i(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=jn(a),t.defaultValue=o,u=t.textContent,u===o&&u!==""&&u!==null&&(t.value=u)}function hi(t,a){if(a){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=a;return}}t.textContent=a}var T2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function gg(t,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":u?t.setProperty(a,o):typeof o!="number"||o===0||T2.has(a)?a==="float"?t.cssFloat=o:t[a]=(""+o).trim():t[a]=o+"px"}function yg(t,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in a)u=a[p],a.hasOwnProperty(p)&&o[p]!==u&&gg(t,p,u)}else for(var v in a)a.hasOwnProperty(v)&&gg(t,v,a[v])}function cf(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var R2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),N2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ws(t){return N2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var ff=null;function df(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var pi=null,mi=null;function vg(t){var a=Qn(t);if(a&&(t=a.stateNode)){var o=t[pt]||null;e:switch(t=a.stateNode,a.type){case"input":if(sf(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Dn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==t&&u.form===t.form){var p=u[pt]||null;if(!p)throw Error(i(90));sf(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===t.form&&dg(u)}break e;case"textarea":pg(t,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&di(t,!!o.multiple,a,!1)}}}var hf=!1;function xg(t,a,o){if(hf)return t(a,o);hf=!0;try{var u=t(a);return u}finally{if(hf=!1,(pi!==null||mi!==null)&&(ou(),pi&&(a=pi,t=mi,mi=pi=null,vg(a),t)))for(a=0;a<t.length;a++)vg(t[a])}}function _o(t,a){var o=t.stateNode;if(o===null)return null;var u=o[pt]||null;if(u===null)return null;o=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var Ar=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pf=!1;if(Ar)try{var Mo={};Object.defineProperty(Mo,"passive",{get:function(){pf=!0}}),window.addEventListener("test",Mo,Mo),window.removeEventListener("test",Mo,Mo)}catch{pf=!1}var Zr=null,mf=null,Ss=null;function bg(){if(Ss)return Ss;var t,a=mf,o=a.length,u,p="value"in Zr?Zr.value:Zr.textContent,v=p.length;for(t=0;t<o&&a[t]===p[t];t++);var C=o-t;for(u=1;u<=C&&a[o-u]===p[v-u];u++);return Ss=p.slice(t,1<u?1-u:void 0)}function Es(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Cs(){return!0}function wg(){return!1}function hn(t){function a(o,u,p,v,C){this._reactName=o,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=C,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(o=t[_],this[_]=o?o(v):v[_]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Cs:wg,this.isPropagationStopped=wg,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Cs)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Cs)},persist:function(){},isPersistent:Cs}),a}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ks=hn(Da),jo=m({},Da,{view:0,detail:0}),_2=hn(jo),gf,yf,Do,As=m({},jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Do&&(Do&&t.type==="mousemove"?(gf=t.screenX-Do.screenX,yf=t.screenY-Do.screenY):yf=gf=0,Do=t),gf)},movementY:function(t){return"movementY"in t?t.movementY:yf}}),Sg=hn(As),M2=m({},As,{dataTransfer:0}),j2=hn(M2),D2=m({},jo,{relatedTarget:0}),vf=hn(D2),O2=m({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=hn(O2),L2=m({},Da,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),z2=hn(L2),I2=m({},Da,{data:0}),Eg=hn(I2),B2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},H2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=H2[t])?!!a[t]:!1}function xf(){return F2}var q2=m({},jo,{key:function(t){if(t.key){var a=B2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Es(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?U2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xf,charCode:function(t){return t.type==="keypress"?Es(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Es(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),V2=hn(q2),$2=m({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cg=hn($2),G2=m({},jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xf}),Y2=hn(G2),K2=m({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),X2=hn(K2),Q2=m({},As,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Z2=hn(Q2),W2=m({},Da,{newState:0,oldState:0}),J2=hn(W2),eA=[9,13,27,32],bf=Ar&&"CompositionEvent"in window,Oo=null;Ar&&"documentMode"in document&&(Oo=document.documentMode);var tA=Ar&&"TextEvent"in window&&!Oo,kg=Ar&&(!bf||Oo&&8<Oo&&11>=Oo),Ag=" ",Tg=!1;function Rg(t,a){switch(t){case"keyup":return eA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ng(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var gi=!1;function nA(t,a){switch(t){case"compositionend":return Ng(a);case"keypress":return a.which!==32?null:(Tg=!0,Ag);case"textInput":return t=a.data,t===Ag&&Tg?null:t;default:return null}}function rA(t,a){if(gi)return t==="compositionend"||!bf&&Rg(t,a)?(t=bg(),Ss=mf=Zr=null,gi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return kg&&a.locale!=="ko"?null:a.data;default:return null}}var aA={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _g(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!aA[t.type]:a==="textarea"}function Mg(t,a,o,u){pi?mi?mi.push(u):mi=[u]:pi=u,a=du(a,"onChange"),0<a.length&&(o=new ks("onChange","change",null,o,u),t.push({event:o,listeners:a}))}var Po=null,Lo=null;function iA(t){fx(t,0)}function Ts(t){var a=gt(t);if(dg(a))return t}function jg(t,a){if(t==="change")return a}var Dg=!1;if(Ar){var wf;if(Ar){var Sf="oninput"in document;if(!Sf){var Og=document.createElement("div");Og.setAttribute("oninput","return;"),Sf=typeof Og.oninput=="function"}wf=Sf}else wf=!1;Dg=wf&&(!document.documentMode||9<document.documentMode)}function Pg(){Po&&(Po.detachEvent("onpropertychange",Lg),Lo=Po=null)}function Lg(t){if(t.propertyName==="value"&&Ts(Lo)){var a=[];Mg(a,Lo,t,df(t)),xg(iA,a)}}function oA(t,a,o){t==="focusin"?(Pg(),Po=a,Lo=o,Po.attachEvent("onpropertychange",Lg)):t==="focusout"&&Pg()}function lA(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ts(Lo)}function sA(t,a){if(t==="click")return Ts(a)}function uA(t,a){if(t==="input"||t==="change")return Ts(a)}function cA(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var wn=typeof Object.is=="function"?Object.is:cA;function zo(t,a){if(wn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var o=Object.keys(t),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var p=o[u];if(!Ue.call(a,p)||!wn(t[p],a[p]))return!1}return!0}function zg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ig(t,a){var o=zg(t);t=0;for(var u;o;){if(o.nodeType===3){if(u=t+o.textContent.length,t<=a&&u>=a)return{node:o,offset:a-t};t=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=zg(o)}}function Bg(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Bg(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Ug(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=bs(t.document);a instanceof t.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)t=a.contentWindow;else break;a=bs(t.document)}return a}function Ef(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var fA=Ar&&"documentMode"in document&&11>=document.documentMode,yi=null,Cf=null,Io=null,kf=!1;function Hg(t,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;kf||yi==null||yi!==bs(u)||(u=yi,"selectionStart"in u&&Ef(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Io&&zo(Io,u)||(Io=u,u=du(Cf,"onSelect"),0<u.length&&(a=new ks("onSelect","select",null,a,o),t.push({event:a,listeners:u}),a.target=yi)))}function Oa(t,a){var o={};return o[t.toLowerCase()]=a.toLowerCase(),o["Webkit"+t]="webkit"+a,o["Moz"+t]="moz"+a,o}var vi={animationend:Oa("Animation","AnimationEnd"),animationiteration:Oa("Animation","AnimationIteration"),animationstart:Oa("Animation","AnimationStart"),transitionrun:Oa("Transition","TransitionRun"),transitionstart:Oa("Transition","TransitionStart"),transitioncancel:Oa("Transition","TransitionCancel"),transitionend:Oa("Transition","TransitionEnd")},Af={},Fg={};Ar&&(Fg=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Pa(t){if(Af[t])return Af[t];if(!vi[t])return t;var a=vi[t],o;for(o in a)if(a.hasOwnProperty(o)&&o in Fg)return Af[t]=a[o];return t}var qg=Pa("animationend"),Vg=Pa("animationiteration"),$g=Pa("animationstart"),dA=Pa("transitionrun"),hA=Pa("transitionstart"),pA=Pa("transitioncancel"),Gg=Pa("transitionend"),Yg=new Map,Tf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Tf.push("scrollEnd");function Zn(t,a){Yg.set(t,a),bn(a,[t])}var Kg=new WeakMap;function On(t,a){if(typeof t=="object"&&t!==null){var o=Kg.get(t);return o!==void 0?o:(a={value:t,source:a,stack:cg(a)},Kg.set(t,a),a)}return{value:t,source:a,stack:cg(a)}}var Pn=[],xi=0,Rf=0;function Rs(){for(var t=xi,a=Rf=xi=0;a<t;){var o=Pn[a];Pn[a++]=null;var u=Pn[a];Pn[a++]=null;var p=Pn[a];Pn[a++]=null;var v=Pn[a];if(Pn[a++]=null,u!==null&&p!==null){var C=u.pending;C===null?p.next=p:(p.next=C.next,C.next=p),u.pending=p}v!==0&&Xg(o,p,v)}}function Ns(t,a,o,u){Pn[xi++]=t,Pn[xi++]=a,Pn[xi++]=o,Pn[xi++]=u,Rf|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function Nf(t,a,o,u){return Ns(t,a,o,u),_s(t)}function bi(t,a){return Ns(t,null,null,a),_s(t)}function Xg(t,a,o){t.lanes|=o;var u=t.alternate;u!==null&&(u.lanes|=o);for(var p=!1,v=t.return;v!==null;)v.childLanes|=o,u=v.alternate,u!==null&&(u.childLanes|=o),v.tag===22&&(t=v.stateNode,t===null||t._visibility&1||(p=!0)),t=v,v=v.return;return t.tag===3?(v=t.stateNode,p&&a!==null&&(p=31-Ae(o),t=v.hiddenUpdates,u=t[p],u===null?t[p]=[a]:u.push(a),a.lane=o|536870912),v):null}function _s(t){if(50<ul)throw ul=0,Pd=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var wi={};function mA(t,a,o,u){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(t,a,o,u){return new mA(t,a,o,u)}function _f(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Tr(t,a){var o=t.alternate;return o===null?(o=Sn(t.tag,a,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=a,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,a=t.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function Qg(t,a){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,a=o.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Ms(t,a,o,u,p,v){var C=0;if(u=t,typeof t=="function")_f(t)&&(C=1);else if(typeof t=="string")C=yT(t,o,ce.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Z:return t=Sn(31,o,a,p),t.elementType=Z,t.lanes=v,t;case S:return La(o.children,p,v,a);case E:C=8,p|=24;break;case A:return t=Sn(12,o,a,p|2),t.elementType=A,t.lanes=v,t;case D:return t=Sn(13,o,a,p),t.elementType=D,t.lanes=v,t;case j:return t=Sn(19,o,a,p),t.elementType=j,t.lanes=v,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case R:C=10;break e;case N:C=9;break e;case O:C=11;break e;case B:C=14;break e;case F:C=16,u=null;break e}C=29,o=Error(i(130,t===null?"null":typeof t,"")),u=null}return a=Sn(C,o,a,p),a.elementType=t,a.type=u,a.lanes=v,a}function La(t,a,o,u){return t=Sn(7,t,u,a),t.lanes=o,t}function Mf(t,a,o){return t=Sn(6,t,null,a),t.lanes=o,t}function jf(t,a,o){return a=Sn(4,t.children!==null?t.children:[],t.key,a),a.lanes=o,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Si=[],Ei=0,js=null,Ds=0,Ln=[],zn=0,za=null,Rr=1,Nr="";function Ia(t,a){Si[Ei++]=Ds,Si[Ei++]=js,js=t,Ds=a}function Zg(t,a,o){Ln[zn++]=Rr,Ln[zn++]=Nr,Ln[zn++]=za,za=t;var u=Rr;t=Nr;var p=32-Ae(u)-1;u&=~(1<<p),o+=1;var v=32-Ae(a)+p;if(30<v){var C=p-p%5;v=(u&(1<<C)-1).toString(32),u>>=C,p-=C,Rr=1<<32-Ae(a)+p|o<<p|u,Nr=v+t}else Rr=1<<v|o<<p|u,Nr=t}function Df(t){t.return!==null&&(Ia(t,1),Zg(t,1,0))}function Of(t){for(;t===js;)js=Si[--Ei],Si[Ei]=null,Ds=Si[--Ei],Si[Ei]=null;for(;t===za;)za=Ln[--zn],Ln[zn]=null,Nr=Ln[--zn],Ln[zn]=null,Rr=Ln[--zn],Ln[zn]=null}var sn=null,Et=null,nt=!1,Ba=null,sr=!1,Pf=Error(i(519));function Ua(t){var a=Error(i(418,""));throw Ho(On(a,t)),Pf}function Wg(t){var a=t.stateNode,o=t.type,u=t.memoizedProps;switch(a[$e]=t,a[pt]=u,o){case"dialog":Ye("cancel",a),Ye("close",a);break;case"iframe":case"object":case"embed":Ye("load",a);break;case"video":case"audio":for(o=0;o<fl.length;o++)Ye(fl[o],a);break;case"source":Ye("error",a);break;case"img":case"image":case"link":Ye("error",a),Ye("load",a);break;case"details":Ye("toggle",a);break;case"input":Ye("invalid",a),hg(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),xs(a);break;case"select":Ye("invalid",a);break;case"textarea":Ye("invalid",a),mg(a,u.value,u.defaultValue,u.children),xs(a)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||mx(a.textContent,o)?(u.popover!=null&&(Ye("beforetoggle",a),Ye("toggle",a)),u.onScroll!=null&&Ye("scroll",a),u.onScrollEnd!=null&&Ye("scrollend",a),u.onClick!=null&&(a.onclick=hu),a=!0):a=!1,a||Ua(t)}function Jg(t){for(sn=t.return;sn;)switch(sn.tag){case 5:case 13:sr=!1;return;case 27:case 3:sr=!0;return;default:sn=sn.return}}function Bo(t){if(t!==sn)return!1;if(!nt)return Jg(t),nt=!0,!1;var a=t.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Zd(t.type,t.memoizedProps)),o=!o),o&&Et&&Ua(t),Jg(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(o=t.data,o==="/$"){if(a===0){Et=Jn(t.nextSibling);break e}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;t=t.nextSibling}Et=null}}else a===27?(a=Et,ha(t.type)?(t=th,th=null,Et=t):Et=a):Et=sn?Jn(t.stateNode.nextSibling):null;return!0}function Uo(){Et=sn=null,nt=!1}function ey(){var t=Ba;return t!==null&&(gn===null?gn=t:gn.push.apply(gn,t),Ba=null),t}function Ho(t){Ba===null?Ba=[t]:Ba.push(t)}var Lf=Q(null),Ha=null,_r=null;function Wr(t,a,o){M(Lf,a._currentValue),a._currentValue=o}function Mr(t){t._currentValue=Lf.current,le(Lf)}function zf(t,a,o){for(;t!==null;){var u=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),t===o)break;t=t.return}}function If(t,a,o,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var v=p.dependencies;if(v!==null){var C=p.child;v=v.firstContext;e:for(;v!==null;){var _=v;v=p;for(var P=0;P<a.length;P++)if(_.context===a[P]){v.lanes|=o,_=v.alternate,_!==null&&(_.lanes|=o),zf(v.return,o,t),u||(C=null);break e}v=_.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(i(341));C.lanes|=o,v=C.alternate,v!==null&&(v.lanes|=o),zf(C,o,t),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===t){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function Fo(t,a,o,u){t=null;for(var p=a,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var _=p.type;wn(p.pendingProps.value,C.value)||(t!==null?t.push(_):t=[_])}}else if(p===se.current){if(C=p.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(yl):t=[yl])}p=p.return}t!==null&&If(a,t,o,u),a.flags|=262144}function Os(t){for(t=t.firstContext;t!==null;){if(!wn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Fa(t){Ha=t,_r=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return ty(Ha,t)}function Ps(t,a){return Ha===null&&Fa(t),ty(t,a)}function ty(t,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},_r===null){if(t===null)throw Error(i(308));_r=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else _r=_r.next=a;return o}var gA=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(o,u){t.push(u)}};this.abort=function(){a.aborted=!0,t.forEach(function(o){return o()})}},yA=e.unstable_scheduleCallback,vA=e.unstable_NormalPriority,zt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bf(){return{controller:new gA,data:new Map,refCount:0}}function qo(t){t.refCount--,t.refCount===0&&yA(vA,function(){t.controller.abort()})}var Vo=null,Uf=0,Ci=0,ki=null;function xA(t,a){if(Vo===null){var o=Vo=[];Uf=0,Ci=Fd(),ki={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Uf++,a.then(ny,ny),a}function ny(){if(--Uf===0&&Vo!==null){ki!==null&&(ki.status="fulfilled");var t=Vo;Vo=null,Ci=0,ki=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function bA(t,a){var o=[],u={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){u.status="fulfilled",u.value=a;for(var p=0;p<o.length;p++)(0,o[p])(a)},function(p){for(u.status="rejected",u.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),u}var ry=z.S;z.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&xA(t,a),ry!==null&&ry(t,a)};var qa=Q(null);function Hf(){var t=qa.current;return t!==null?t:dt.pooledCache}function Ls(t,a){a===null?M(qa,qa.current):M(qa,a.pool)}function ay(){var t=Hf();return t===null?null:{parent:zt._currentValue,pool:t}}var $o=Error(i(460)),iy=Error(i(474)),zs=Error(i(542)),Ff={then:function(){}};function oy(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Is(){}function ly(t,a,o){switch(o=t[o],o===void 0?t.push(a):o!==a&&(a.then(Is,Is),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,uy(t),t;default:if(typeof a.status=="string")a.then(Is,Is);else{if(t=dt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=a,t.status="pending",t.then(function(u){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=u}},function(u){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,uy(t),t}throw Go=a,$o}}var Go=null;function sy(){if(Go===null)throw Error(i(459));var t=Go;return Go=null,t}function uy(t){if(t===$o||t===zs)throw Error(i(483))}var Jr=!1;function qf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vf(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ea(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ta(t,a,o){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(rt&2)!==0){var p=u.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a,a=_s(t),Xg(t,null,o),a}return Ns(t,u,a,o),_s(t)}function Yo(t,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=t.pendingLanes,o|=u,a.lanes=o,on(t,o)}}function $f(t,a){var o=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var p=null,v=null;if(o=o.firstBaseUpdate,o!==null){do{var C={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};v===null?p=v=C:v=v.next=C,o=o.next}while(o!==null);v===null?p=v=a:v=v.next=a}else p=v=a;o={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=a:t.next=a,o.lastBaseUpdate=a}var Gf=!1;function Ko(){if(Gf){var t=ki;if(t!==null)throw t}}function Xo(t,a,o,u){Gf=!1;var p=t.updateQueue;Jr=!1;var v=p.firstBaseUpdate,C=p.lastBaseUpdate,_=p.shared.pending;if(_!==null){p.shared.pending=null;var P=_,V=P.next;P.next=null,C===null?v=V:C.next=V,C=P;var te=t.alternate;te!==null&&(te=te.updateQueue,_=te.lastBaseUpdate,_!==C&&(_===null?te.firstBaseUpdate=V:_.next=V,te.lastBaseUpdate=P))}if(v!==null){var oe=p.baseState;C=0,te=V=P=null,_=v;do{var G=_.lane&-536870913,Y=G!==_.lane;if(Y?(Ze&G)===G:(u&G)===G){G!==0&&G===Ci&&(Gf=!0),te!==null&&(te=te.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var _e=t,Te=_;G=a;var st=o;switch(Te.tag){case 1:if(_e=Te.payload,typeof _e=="function"){oe=_e.call(st,oe,G);break e}oe=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=Te.payload,G=typeof _e=="function"?_e.call(st,oe,G):_e,G==null)break e;oe=m({},oe,G);break e;case 2:Jr=!0}}G=_.callback,G!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=p.callbacks,Y===null?p.callbacks=[G]:Y.push(G))}else Y={lane:G,tag:_.tag,payload:_.payload,callback:_.callback,next:null},te===null?(V=te=Y,P=oe):te=te.next=Y,C|=G;if(_=_.next,_===null){if(_=p.shared.pending,_===null)break;Y=_,_=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);te===null&&(P=oe),p.baseState=P,p.firstBaseUpdate=V,p.lastBaseUpdate=te,v===null&&(p.shared.lanes=0),ua|=C,t.lanes=C,t.memoizedState=oe}}function cy(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function fy(t,a){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)cy(o[t],a)}var Ai=Q(null),Bs=Q(0);function dy(t,a){t=Ir,M(Bs,t),M(Ai,a),Ir=t|a.baseLanes}function Yf(){M(Bs,Ir),M(Ai,Ai.current)}function Kf(){Ir=Bs.current,le(Ai),le(Bs)}var na=0,He=null,ot=null,Mt=null,Us=!1,Ti=!1,Va=!1,Hs=0,Qo=0,Ri=null,wA=0;function Rt(){throw Error(i(321))}function Xf(t,a){if(a===null)return!1;for(var o=0;o<a.length&&o<t.length;o++)if(!wn(t[o],a[o]))return!1;return!0}function Qf(t,a,o,u,p,v){return na=v,He=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=t===null||t.memoizedState===null?Xy:Qy,Va=!1,v=o(u,p),Va=!1,Ti&&(v=py(a,o,u,p)),hy(t),v}function hy(t){z.H=Ys;var a=ot!==null&&ot.next!==null;if(na=0,Mt=ot=He=null,Us=!1,Qo=0,Ri=null,a)throw Error(i(300));t===null||Ut||(t=t.dependencies,t!==null&&Os(t)&&(Ut=!0))}function py(t,a,o,u){He=t;var p=0;do{if(Ti&&(Ri=null),Qo=0,Ti=!1,25<=p)throw Error(i(301));if(p+=1,Mt=ot=null,t.updateQueue!=null){var v=t.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}z.H=RA,v=a(o,u)}while(Ti);return v}function SA(){var t=z.H,a=t.useState()[0];return a=typeof a.then=="function"?Zo(a):a,t=t.useState()[0],(ot!==null?ot.memoizedState:null)!==t&&(He.flags|=1024),a}function Zf(){var t=Hs!==0;return Hs=0,t}function Wf(t,a,o){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~o}function Jf(t){if(Us){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Us=!1}na=0,Mt=ot=He=null,Ti=!1,Qo=Hs=0,Ri=null}function pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?He.memoizedState=Mt=t:Mt=Mt.next=t,Mt}function jt(){if(ot===null){var t=He.alternate;t=t!==null?t.memoizedState:null}else t=ot.next;var a=Mt===null?He.memoizedState:Mt.next;if(a!==null)Mt=a,ot=t;else{if(t===null)throw He.alternate===null?Error(i(467)):Error(i(310));ot=t,t={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},Mt===null?He.memoizedState=Mt=t:Mt=Mt.next=t}return Mt}function ed(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zo(t){var a=Qo;return Qo+=1,Ri===null&&(Ri=[]),t=ly(Ri,t,a),a=He,(Mt===null?a.memoizedState:Mt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?Xy:Qy),t}function Fs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Zo(t);if(t.$$typeof===R)return Jt(t)}throw Error(i(438,String(t)))}function td(t){var a=null,o=He.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=He.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=ed(),He.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(t),u=0;u<t;u++)o[u]=L;return a.index++,o}function jr(t,a){return typeof a=="function"?a(t):a}function qs(t){var a=jt();return nd(a,ot,t)}function nd(t,a,o){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=o;var p=t.baseQueue,v=u.pending;if(v!==null){if(p!==null){var C=p.next;p.next=v.next,v.next=C}a.baseQueue=p=v,u.pending=null}if(v=t.baseState,p===null)t.memoizedState=v;else{a=p.next;var _=C=null,P=null,V=a,te=!1;do{var oe=V.lane&-536870913;if(oe!==V.lane?(Ze&oe)===oe:(na&oe)===oe){var G=V.revertLane;if(G===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),oe===Ci&&(te=!0);else if((na&G)===G){V=V.next,G===Ci&&(te=!0);continue}else oe={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},P===null?(_=P=oe,C=v):P=P.next=oe,He.lanes|=G,ua|=G;oe=V.action,Va&&o(v,oe),v=V.hasEagerState?V.eagerState:o(v,oe)}else G={lane:oe,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},P===null?(_=P=G,C=v):P=P.next=G,He.lanes|=oe,ua|=oe;V=V.next}while(V!==null&&V!==a);if(P===null?C=v:P.next=_,!wn(v,t.memoizedState)&&(Ut=!0,te&&(o=ki,o!==null)))throw o;t.memoizedState=v,t.baseState=C,t.baseQueue=P,u.lastRenderedState=v}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function rd(t){var a=jt(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var u=o.dispatch,p=o.pending,v=a.memoizedState;if(p!==null){o.pending=null;var C=p=p.next;do v=t(v,C.action),C=C.next;while(C!==p);wn(v,a.memoizedState)||(Ut=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),o.lastRenderedState=v}return[v,u]}function my(t,a,o){var u=He,p=jt(),v=nt;if(v){if(o===void 0)throw Error(i(407));o=o()}else o=a();var C=!wn((ot||p).memoizedState,o);C&&(p.memoizedState=o,Ut=!0),p=p.queue;var _=vy.bind(null,u,p,t);if(Wo(2048,8,_,[t]),p.getSnapshot!==a||C||Mt!==null&&Mt.memoizedState.tag&1){if(u.flags|=2048,Ni(9,Vs(),yy.bind(null,u,p,o,a),null),dt===null)throw Error(i(349));v||(na&124)!==0||gy(u,a,o)}return o}function gy(t,a,o){t.flags|=16384,t={getSnapshot:a,value:o},a=He.updateQueue,a===null?(a=ed(),He.updateQueue=a,a.stores=[t]):(o=a.stores,o===null?a.stores=[t]:o.push(t))}function yy(t,a,o,u){a.value=o,a.getSnapshot=u,xy(a)&&by(t)}function vy(t,a,o){return o(function(){xy(a)&&by(t)})}function xy(t){var a=t.getSnapshot;t=t.value;try{var o=a();return!wn(t,o)}catch{return!0}}function by(t){var a=bi(t,2);a!==null&&Tn(a,t,2)}function ad(t){var a=pn();if(typeof t=="function"){var o=t;if(t=o(),Va){Ce(!0);try{o()}finally{Ce(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:t},a}function wy(t,a,o,u){return t.baseState=o,nd(t,ot,typeof u=="function"?u:jr)}function EA(t,a,o,u,p){if(Gs(t))throw Error(i(485));if(t=a.action,t!==null){var v={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){v.listeners.push(C)}};z.T!==null?o(!0):v.isTransition=!1,u(v),o=a.pending,o===null?(v.next=a.pending=v,Sy(a,v)):(v.next=o.next,a.pending=o.next=v)}}function Sy(t,a){var o=a.action,u=a.payload,p=t.state;if(a.isTransition){var v=z.T,C={};z.T=C;try{var _=o(p,u),P=z.S;P!==null&&P(C,_),Ey(t,a,_)}catch(V){id(t,a,V)}finally{z.T=v}}else try{v=o(p,u),Ey(t,a,v)}catch(V){id(t,a,V)}}function Ey(t,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){Cy(t,a,u)},function(u){return id(t,a,u)}):Cy(t,a,o)}function Cy(t,a,o){a.status="fulfilled",a.value=o,ky(a),t.state=o,a=t.pending,a!==null&&(o=a.next,o===a?t.pending=null:(o=o.next,a.next=o,Sy(t,o)))}function id(t,a,o){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,ky(a),a=a.next;while(a!==u)}t.action=null}function ky(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function Ay(t,a){return a}function Ty(t,a){if(nt){var o=dt.formState;if(o!==null){e:{var u=He;if(nt){if(Et){t:{for(var p=Et,v=sr;p.nodeType!==8;){if(!v){p=null;break t}if(p=Jn(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){Et=Jn(p.nextSibling),u=p.data==="F!";break e}}Ua(u)}u=!1}u&&(a=o[0])}}return o=pn(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ay,lastRenderedState:a},o.queue=u,o=Gy.bind(null,He,u),u.dispatch=o,u=ad(!1),v=cd.bind(null,He,!1,u.queue),u=pn(),p={state:a,dispatch:null,action:t,pending:null},u.queue=p,o=EA.bind(null,He,p,v,o),p.dispatch=o,u.memoizedState=t,[a,o,!1]}function Ry(t){var a=jt();return Ny(a,ot,t)}function Ny(t,a,o){if(a=nd(t,a,Ay)[0],t=qs(jr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Zo(a)}catch(C){throw C===$o?zs:C}else u=a;a=jt();var p=a.queue,v=p.dispatch;return o!==a.memoizedState&&(He.flags|=2048,Ni(9,Vs(),CA.bind(null,p,o),null)),[u,v,t]}function CA(t,a){t.action=a}function _y(t){var a=jt(),o=ot;if(o!==null)return Ny(a,o,t);jt(),a=a.memoizedState,o=jt();var u=o.queue.dispatch;return o.memoizedState=t,[a,u,!1]}function Ni(t,a,o,u){return t={tag:t,create:o,deps:u,inst:a,next:null},a=He.updateQueue,a===null&&(a=ed(),He.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=t.next=t:(u=o.next,o.next=t,t.next=u,a.lastEffect=t),t}function Vs(){return{destroy:void 0,resource:void 0}}function My(){return jt().memoizedState}function $s(t,a,o,u){var p=pn();u=u===void 0?null:u,He.flags|=t,p.memoizedState=Ni(1|a,Vs(),o,u)}function Wo(t,a,o,u){var p=jt();u=u===void 0?null:u;var v=p.memoizedState.inst;ot!==null&&u!==null&&Xf(u,ot.memoizedState.deps)?p.memoizedState=Ni(a,v,o,u):(He.flags|=t,p.memoizedState=Ni(1|a,v,o,u))}function jy(t,a){$s(8390656,8,t,a)}function Dy(t,a){Wo(2048,8,t,a)}function Oy(t,a){return Wo(4,2,t,a)}function Py(t,a){return Wo(4,4,t,a)}function Ly(t,a){if(typeof a=="function"){t=t();var o=a(t);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function zy(t,a,o){o=o!=null?o.concat([t]):null,Wo(4,4,Ly.bind(null,a,t),o)}function od(){}function Iy(t,a){var o=jt();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&Xf(a,u[1])?u[0]:(o.memoizedState=[t,a],t)}function By(t,a){var o=jt();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&Xf(a,u[1]))return u[0];if(u=t(),Va){Ce(!0);try{t()}finally{Ce(!1)}}return o.memoizedState=[u,a],u}function ld(t,a,o){return o===void 0||(na&1073741824)!==0?t.memoizedState=a:(t.memoizedState=o,t=Fv(),He.lanes|=t,ua|=t,o)}function Uy(t,a,o,u){return wn(o,a)?o:Ai.current!==null?(t=ld(t,o,u),wn(t,a)||(Ut=!0),t):(na&42)===0?(Ut=!0,t.memoizedState=o):(t=Fv(),He.lanes|=t,ua|=t,a)}function Hy(t,a,o,u,p){var v=X.p;X.p=v!==0&&8>v?v:8;var C=z.T,_={};z.T=_,cd(t,!1,a,o);try{var P=p(),V=z.S;if(V!==null&&V(_,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var te=bA(P,u);Jo(t,a,te,An(t))}else Jo(t,a,u,An(t))}catch(oe){Jo(t,a,{then:function(){},status:"rejected",reason:oe},An())}finally{X.p=v,z.T=C}}function kA(){}function sd(t,a,o,u){if(t.tag!==5)throw Error(i(476));var p=Fy(t).queue;Hy(t,p,a,H,o===null?kA:function(){return qy(t),o(u)})}function Fy(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:H},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jr,lastRenderedState:o},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function qy(t){var a=Fy(t).next.queue;Jo(t,a,{},An())}function ud(){return Jt(yl)}function Vy(){return jt().memoizedState}function $y(){return jt().memoizedState}function AA(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var o=An();t=ea(o);var u=ta(a,t,o);u!==null&&(Tn(u,a,o),Yo(u,a,o)),a={cache:Bf()},t.payload=a;return}a=a.return}}function TA(t,a,o){var u=An();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Gs(t)?Yy(a,o):(o=Nf(t,a,o,u),o!==null&&(Tn(o,t,u),Ky(o,a,u)))}function Gy(t,a,o){var u=An();Jo(t,a,o,u)}function Jo(t,a,o,u){var p={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gs(t))Yy(a,p);else{var v=t.alternate;if(t.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var C=a.lastRenderedState,_=v(C,o);if(p.hasEagerState=!0,p.eagerState=_,wn(_,C))return Ns(t,a,p,0),dt===null&&Rs(),!1}catch{}finally{}if(o=Nf(t,a,p,u),o!==null)return Tn(o,t,u),Ky(o,a,u),!0}return!1}function cd(t,a,o,u){if(u={lane:2,revertLane:Fd(),action:u,hasEagerState:!1,eagerState:null,next:null},Gs(t)){if(a)throw Error(i(479))}else a=Nf(t,o,u,2),a!==null&&Tn(a,t,2)}function Gs(t){var a=t.alternate;return t===He||a!==null&&a===He}function Yy(t,a){Ti=Us=!0;var o=t.pending;o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a}function Ky(t,a,o){if((o&4194048)!==0){var u=a.lanes;u&=t.pendingLanes,o|=u,a.lanes=o,on(t,o)}}var Ys={readContext:Jt,use:Fs,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt},Xy={readContext:Jt,use:Fs,useCallback:function(t,a){return pn().memoizedState=[t,a===void 0?null:a],t},useContext:Jt,useEffect:jy,useImperativeHandle:function(t,a,o){o=o!=null?o.concat([t]):null,$s(4194308,4,Ly.bind(null,a,t),o)},useLayoutEffect:function(t,a){return $s(4194308,4,t,a)},useInsertionEffect:function(t,a){$s(4,2,t,a)},useMemo:function(t,a){var o=pn();a=a===void 0?null:a;var u=t();if(Va){Ce(!0);try{t()}finally{Ce(!1)}}return o.memoizedState=[u,a],u},useReducer:function(t,a,o){var u=pn();if(o!==void 0){var p=o(a);if(Va){Ce(!0);try{o(a)}finally{Ce(!1)}}}else p=a;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=TA.bind(null,He,t),[u.memoizedState,t]},useRef:function(t){var a=pn();return t={current:t},a.memoizedState=t},useState:function(t){t=ad(t);var a=t.queue,o=Gy.bind(null,He,a);return a.dispatch=o,[t.memoizedState,o]},useDebugValue:od,useDeferredValue:function(t,a){var o=pn();return ld(o,t,a)},useTransition:function(){var t=ad(!1);return t=Hy.bind(null,He,t.queue,!0,!1),pn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,o){var u=He,p=pn();if(nt){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),dt===null)throw Error(i(349));(Ze&124)!==0||gy(u,a,o)}p.memoizedState=o;var v={value:o,getSnapshot:a};return p.queue=v,jy(vy.bind(null,u,v,t),[t]),u.flags|=2048,Ni(9,Vs(),yy.bind(null,u,v,o,a),null),o},useId:function(){var t=pn(),a=dt.identifierPrefix;if(nt){var o=Nr,u=Rr;o=(u&~(1<<32-Ae(u)-1)).toString(32)+o,a="«"+a+"R"+o,o=Hs++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=wA++,a="«"+a+"r"+o.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:ud,useFormState:Ty,useActionState:Ty,useOptimistic:function(t){var a=pn();a.memoizedState=a.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=cd.bind(null,He,!0,o),o.dispatch=a,[t,a]},useMemoCache:td,useCacheRefresh:function(){return pn().memoizedState=AA.bind(null,He)}},Qy={readContext:Jt,use:Fs,useCallback:Iy,useContext:Jt,useEffect:Dy,useImperativeHandle:zy,useInsertionEffect:Oy,useLayoutEffect:Py,useMemo:By,useReducer:qs,useRef:My,useState:function(){return qs(jr)},useDebugValue:od,useDeferredValue:function(t,a){var o=jt();return Uy(o,ot.memoizedState,t,a)},useTransition:function(){var t=qs(jr)[0],a=jt().memoizedState;return[typeof t=="boolean"?t:Zo(t),a]},useSyncExternalStore:my,useId:Vy,useHostTransitionStatus:ud,useFormState:Ry,useActionState:Ry,useOptimistic:function(t,a){var o=jt();return wy(o,ot,t,a)},useMemoCache:td,useCacheRefresh:$y},RA={readContext:Jt,use:Fs,useCallback:Iy,useContext:Jt,useEffect:Dy,useImperativeHandle:zy,useInsertionEffect:Oy,useLayoutEffect:Py,useMemo:By,useReducer:rd,useRef:My,useState:function(){return rd(jr)},useDebugValue:od,useDeferredValue:function(t,a){var o=jt();return ot===null?ld(o,t,a):Uy(o,ot.memoizedState,t,a)},useTransition:function(){var t=rd(jr)[0],a=jt().memoizedState;return[typeof t=="boolean"?t:Zo(t),a]},useSyncExternalStore:my,useId:Vy,useHostTransitionStatus:ud,useFormState:_y,useActionState:_y,useOptimistic:function(t,a){var o=jt();return ot!==null?wy(o,ot,t,a):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:td,useCacheRefresh:$y},_i=null,el=0;function Ks(t){var a=el;return el+=1,_i===null&&(_i=[]),ly(_i,t,a)}function tl(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Xs(t,a){throw a.$$typeof===y?Error(i(525)):(t=Object.prototype.toString.call(a),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Zy(t){var a=t._init;return a(t._payload)}function Wy(t){function a(U,I){if(t){var q=U.deletions;q===null?(U.deletions=[I],U.flags|=16):q.push(I)}}function o(U,I){if(!t)return null;for(;I!==null;)a(U,I),I=I.sibling;return null}function u(U){for(var I=new Map;U!==null;)U.key!==null?I.set(U.key,U):I.set(U.index,U),U=U.sibling;return I}function p(U,I){return U=Tr(U,I),U.index=0,U.sibling=null,U}function v(U,I,q){return U.index=q,t?(q=U.alternate,q!==null?(q=q.index,q<I?(U.flags|=67108866,I):q):(U.flags|=67108866,I)):(U.flags|=1048576,I)}function C(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function _(U,I,q,ne){return I===null||I.tag!==6?(I=Mf(q,U.mode,ne),I.return=U,I):(I=p(I,q),I.return=U,I)}function P(U,I,q,ne){var xe=q.type;return xe===S?te(U,I,q.props.children,ne,q.key):I!==null&&(I.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Zy(xe)===I.type)?(I=p(I,q.props),tl(I,q),I.return=U,I):(I=Ms(q.type,q.key,q.props,null,U.mode,ne),tl(I,q),I.return=U,I)}function V(U,I,q,ne){return I===null||I.tag!==4||I.stateNode.containerInfo!==q.containerInfo||I.stateNode.implementation!==q.implementation?(I=jf(q,U.mode,ne),I.return=U,I):(I=p(I,q.children||[]),I.return=U,I)}function te(U,I,q,ne,xe){return I===null||I.tag!==7?(I=La(q,U.mode,ne,xe),I.return=U,I):(I=p(I,q),I.return=U,I)}function oe(U,I,q){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=Mf(""+I,U.mode,q),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return q=Ms(I.type,I.key,I.props,null,U.mode,q),tl(q,I),q.return=U,q;case w:return I=jf(I,U.mode,q),I.return=U,I;case F:var ne=I._init;return I=ne(I._payload),oe(U,I,q)}if(ie(I)||J(I))return I=La(I,U.mode,q,null),I.return=U,I;if(typeof I.then=="function")return oe(U,Ks(I),q);if(I.$$typeof===R)return oe(U,Ps(U,I),q);Xs(U,I)}return null}function G(U,I,q,ne){var xe=I!==null?I.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return xe!==null?null:_(U,I,""+q,ne);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case b:return q.key===xe?P(U,I,q,ne):null;case w:return q.key===xe?V(U,I,q,ne):null;case F:return xe=q._init,q=xe(q._payload),G(U,I,q,ne)}if(ie(q)||J(q))return xe!==null?null:te(U,I,q,ne,null);if(typeof q.then=="function")return G(U,I,Ks(q),ne);if(q.$$typeof===R)return G(U,I,Ps(U,q),ne);Xs(U,q)}return null}function Y(U,I,q,ne,xe){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return U=U.get(q)||null,_(I,U,""+ne,xe);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return U=U.get(ne.key===null?q:ne.key)||null,P(I,U,ne,xe);case w:return U=U.get(ne.key===null?q:ne.key)||null,V(I,U,ne,xe);case F:var qe=ne._init;return ne=qe(ne._payload),Y(U,I,q,ne,xe)}if(ie(ne)||J(ne))return U=U.get(q)||null,te(I,U,ne,xe,null);if(typeof ne.then=="function")return Y(U,I,q,Ks(ne),xe);if(ne.$$typeof===R)return Y(U,I,q,Ps(I,ne),xe);Xs(I,ne)}return null}function _e(U,I,q,ne){for(var xe=null,qe=null,Ee=I,Re=I=0,Ft=null;Ee!==null&&Re<q.length;Re++){Ee.index>Re?(Ft=Ee,Ee=null):Ft=Ee.sibling;var et=G(U,Ee,q[Re],ne);if(et===null){Ee===null&&(Ee=Ft);break}t&&Ee&&et.alternate===null&&a(U,Ee),I=v(et,I,Re),qe===null?xe=et:qe.sibling=et,qe=et,Ee=Ft}if(Re===q.length)return o(U,Ee),nt&&Ia(U,Re),xe;if(Ee===null){for(;Re<q.length;Re++)Ee=oe(U,q[Re],ne),Ee!==null&&(I=v(Ee,I,Re),qe===null?xe=Ee:qe.sibling=Ee,qe=Ee);return nt&&Ia(U,Re),xe}for(Ee=u(Ee);Re<q.length;Re++)Ft=Y(Ee,U,Re,q[Re],ne),Ft!==null&&(t&&Ft.alternate!==null&&Ee.delete(Ft.key===null?Re:Ft.key),I=v(Ft,I,Re),qe===null?xe=Ft:qe.sibling=Ft,qe=Ft);return t&&Ee.forEach(function(va){return a(U,va)}),nt&&Ia(U,Re),xe}function Te(U,I,q,ne){if(q==null)throw Error(i(151));for(var xe=null,qe=null,Ee=I,Re=I=0,Ft=null,et=q.next();Ee!==null&&!et.done;Re++,et=q.next()){Ee.index>Re?(Ft=Ee,Ee=null):Ft=Ee.sibling;var va=G(U,Ee,et.value,ne);if(va===null){Ee===null&&(Ee=Ft);break}t&&Ee&&va.alternate===null&&a(U,Ee),I=v(va,I,Re),qe===null?xe=va:qe.sibling=va,qe=va,Ee=Ft}if(et.done)return o(U,Ee),nt&&Ia(U,Re),xe;if(Ee===null){for(;!et.done;Re++,et=q.next())et=oe(U,et.value,ne),et!==null&&(I=v(et,I,Re),qe===null?xe=et:qe.sibling=et,qe=et);return nt&&Ia(U,Re),xe}for(Ee=u(Ee);!et.done;Re++,et=q.next())et=Y(Ee,U,Re,et.value,ne),et!==null&&(t&&et.alternate!==null&&Ee.delete(et.key===null?Re:et.key),I=v(et,I,Re),qe===null?xe=et:qe.sibling=et,qe=et);return t&&Ee.forEach(function(NT){return a(U,NT)}),nt&&Ia(U,Re),xe}function st(U,I,q,ne){if(typeof q=="object"&&q!==null&&q.type===S&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case b:e:{for(var xe=q.key;I!==null;){if(I.key===xe){if(xe=q.type,xe===S){if(I.tag===7){o(U,I.sibling),ne=p(I,q.props.children),ne.return=U,U=ne;break e}}else if(I.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===F&&Zy(xe)===I.type){o(U,I.sibling),ne=p(I,q.props),tl(ne,q),ne.return=U,U=ne;break e}o(U,I);break}else a(U,I);I=I.sibling}q.type===S?(ne=La(q.props.children,U.mode,ne,q.key),ne.return=U,U=ne):(ne=Ms(q.type,q.key,q.props,null,U.mode,ne),tl(ne,q),ne.return=U,U=ne)}return C(U);case w:e:{for(xe=q.key;I!==null;){if(I.key===xe)if(I.tag===4&&I.stateNode.containerInfo===q.containerInfo&&I.stateNode.implementation===q.implementation){o(U,I.sibling),ne=p(I,q.children||[]),ne.return=U,U=ne;break e}else{o(U,I);break}else a(U,I);I=I.sibling}ne=jf(q,U.mode,ne),ne.return=U,U=ne}return C(U);case F:return xe=q._init,q=xe(q._payload),st(U,I,q,ne)}if(ie(q))return _e(U,I,q,ne);if(J(q)){if(xe=J(q),typeof xe!="function")throw Error(i(150));return q=xe.call(q),Te(U,I,q,ne)}if(typeof q.then=="function")return st(U,I,Ks(q),ne);if(q.$$typeof===R)return st(U,I,Ps(U,q),ne);Xs(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,I!==null&&I.tag===6?(o(U,I.sibling),ne=p(I,q),ne.return=U,U=ne):(o(U,I),ne=Mf(q,U.mode,ne),ne.return=U,U=ne),C(U)):o(U,I)}return function(U,I,q,ne){try{el=0;var xe=st(U,I,q,ne);return _i=null,xe}catch(Ee){if(Ee===$o||Ee===zs)throw Ee;var qe=Sn(29,Ee,null,U.mode);return qe.lanes=ne,qe.return=U,qe}finally{}}}var Mi=Wy(!0),Jy=Wy(!1),In=Q(null),ur=null;function ra(t){var a=t.alternate;M(It,It.current&1),M(In,t),ur===null&&(a===null||Ai.current!==null||a.memoizedState!==null)&&(ur=t)}function ev(t){if(t.tag===22){if(M(It,It.current),M(In,t),ur===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(ur=t)}}else aa()}function aa(){M(It,It.current),M(In,In.current)}function Dr(t){le(In),ur===t&&(ur=null),le(It)}var It=Q(0);function Qs(t){for(var a=t;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||eh(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function fd(t,a,o,u){a=t.memoizedState,o=o(u,a),o=o==null?a:m({},a,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var dd={enqueueSetState:function(t,a,o){t=t._reactInternals;var u=An(),p=ea(u);p.payload=a,o!=null&&(p.callback=o),a=ta(t,p,u),a!==null&&(Tn(a,t,u),Yo(a,t,u))},enqueueReplaceState:function(t,a,o){t=t._reactInternals;var u=An(),p=ea(u);p.tag=1,p.payload=a,o!=null&&(p.callback=o),a=ta(t,p,u),a!==null&&(Tn(a,t,u),Yo(a,t,u))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var o=An(),u=ea(o);u.tag=2,a!=null&&(u.callback=a),a=ta(t,u,o),a!==null&&(Tn(a,t,o),Yo(a,t,o))}};function tv(t,a,o,u,p,v,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,v,C):a.prototype&&a.prototype.isPureReactComponent?!zo(o,u)||!zo(p,v):!0}function nv(t,a,o,u){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==t&&dd.enqueueReplaceState(a,a.state,null)}function $a(t,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(t=t.defaultProps){o===a&&(o=m({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}var Zs=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function rv(t){Zs(t)}function av(t){console.error(t)}function iv(t){Zs(t)}function Ws(t,a){try{var o=t.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function ov(t,a,o){try{var u=t.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function hd(t,a,o){return o=ea(o),o.tag=3,o.payload={element:null},o.callback=function(){Ws(t,a)},o}function lv(t){return t=ea(t),t.tag=3,t}function sv(t,a,o,u){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var v=u.value;t.payload=function(){return p(v)},t.callback=function(){ov(a,o,u)}}var C=o.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){ov(a,o,u),typeof p!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var _=u.stack;this.componentDidCatch(u.value,{componentStack:_!==null?_:""})})}function NA(t,a,o,u,p){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&Fo(a,o,p,!0),o=In.current,o!==null){switch(o.tag){case 13:return ur===null?zd():o.alternate===null&&Ct===0&&(Ct=3),o.flags&=-257,o.flags|=65536,o.lanes=p,u===Ff?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),Bd(t,u,p)),!1;case 22:return o.flags|=65536,u===Ff?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),Bd(t,u,p)),!1}throw Error(i(435,o.tag))}return Bd(t,u,p),zd(),!1}if(nt)return a=In.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,u!==Pf&&(t=Error(i(422),{cause:u}),Ho(On(t,o)))):(u!==Pf&&(a=Error(i(423),{cause:u}),Ho(On(a,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=On(u,o),p=hd(t.stateNode,u,p),$f(t,p),Ct!==4&&(Ct=2)),!1;var v=Error(i(520),{cause:u});if(v=On(v,o),sl===null?sl=[v]:sl.push(v),Ct!==4&&(Ct=2),a===null)return!0;u=On(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=hd(o.stateNode,u,t),$f(o,t),!1;case 1:if(a=o.type,v=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ca===null||!ca.has(v))))return o.flags|=65536,p&=-p,o.lanes|=p,p=lv(p),sv(p,t,o,u),$f(o,p),!1}o=o.return}while(o!==null);return!1}var uv=Error(i(461)),Ut=!1;function Kt(t,a,o,u){a.child=t===null?Jy(a,null,o,u):Mi(a,t.child,o,u)}function cv(t,a,o,u,p){o=o.render;var v=a.ref;if("ref"in u){var C={};for(var _ in u)_!=="ref"&&(C[_]=u[_])}else C=u;return Fa(a),u=Qf(t,a,o,C,v,p),_=Zf(),t!==null&&!Ut?(Wf(t,a,p),Or(t,a,p)):(nt&&_&&Df(a),a.flags|=1,Kt(t,a,u,p),a.child)}function fv(t,a,o,u,p){if(t===null){var v=o.type;return typeof v=="function"&&!_f(v)&&v.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=v,dv(t,a,v,u,p)):(t=Ms(o.type,null,u,a,a.mode,p),t.ref=a.ref,t.return=a,a.child=t)}if(v=t.child,!wd(t,p)){var C=v.memoizedProps;if(o=o.compare,o=o!==null?o:zo,o(C,u)&&t.ref===a.ref)return Or(t,a,p)}return a.flags|=1,t=Tr(v,u),t.ref=a.ref,t.return=a,a.child=t}function dv(t,a,o,u,p){if(t!==null){var v=t.memoizedProps;if(zo(v,u)&&t.ref===a.ref)if(Ut=!1,a.pendingProps=u=v,wd(t,p))(t.flags&131072)!==0&&(Ut=!0);else return a.lanes=t.lanes,Or(t,a,p)}return pd(t,a,o,u,p)}function hv(t,a,o){var u=a.pendingProps,p=u.children,v=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((a.flags&128)!==0){if(u=v!==null?v.baseLanes|o:o,t!==null){for(p=a.child=t.child,v=0;p!==null;)v=v|p.lanes|p.childLanes,p=p.sibling;a.childLanes=v&~u}else a.childLanes=0,a.child=null;return pv(t,a,u,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ls(a,v!==null?v.cachePool:null),v!==null?dy(a,v):Yf(),ev(a);else return a.lanes=a.childLanes=536870912,pv(t,a,v!==null?v.baseLanes|o:o,o)}else v!==null?(Ls(a,v.cachePool),dy(a,v),aa(),a.memoizedState=null):(t!==null&&Ls(a,null),Yf(),aa());return Kt(t,a,p,o),a.child}function pv(t,a,o,u){var p=Hf();return p=p===null?null:{parent:zt._currentValue,pool:p},a.memoizedState={baseLanes:o,cachePool:p},t!==null&&Ls(a,null),Yf(),ev(a),t!==null&&Fo(t,a,u,!0),null}function Js(t,a){var o=a.ref;if(o===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(a.flags|=4194816)}}function pd(t,a,o,u,p){return Fa(a),o=Qf(t,a,o,u,void 0,p),u=Zf(),t!==null&&!Ut?(Wf(t,a,p),Or(t,a,p)):(nt&&u&&Df(a),a.flags|=1,Kt(t,a,o,p),a.child)}function mv(t,a,o,u,p,v){return Fa(a),a.updateQueue=null,o=py(a,u,o,p),hy(t),u=Zf(),t!==null&&!Ut?(Wf(t,a,v),Or(t,a,v)):(nt&&u&&Df(a),a.flags|=1,Kt(t,a,o,v),a.child)}function gv(t,a,o,u,p){if(Fa(a),a.stateNode===null){var v=wi,C=o.contextType;typeof C=="object"&&C!==null&&(v=Jt(C)),v=new o(u,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=dd,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=u,v.state=a.memoizedState,v.refs={},qf(a),C=o.contextType,v.context=typeof C=="object"&&C!==null?Jt(C):wi,v.state=a.memoizedState,C=o.getDerivedStateFromProps,typeof C=="function"&&(fd(a,o,C,u),v.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(C=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),C!==v.state&&dd.enqueueReplaceState(v,v.state,null),Xo(a,u,v,p),Ko(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(t===null){v=a.stateNode;var _=a.memoizedProps,P=$a(o,_);v.props=P;var V=v.context,te=o.contextType;C=wi,typeof te=="object"&&te!==null&&(C=Jt(te));var oe=o.getDerivedStateFromProps;te=typeof oe=="function"||typeof v.getSnapshotBeforeUpdate=="function",_=a.pendingProps!==_,te||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_||V!==C)&&nv(a,v,u,C),Jr=!1;var G=a.memoizedState;v.state=G,Xo(a,u,v,p),Ko(),V=a.memoizedState,_||G!==V||Jr?(typeof oe=="function"&&(fd(a,o,oe,u),V=a.memoizedState),(P=Jr||tv(a,o,P,u,G,V,C))?(te||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=V),v.props=u,v.state=V,v.context=C,u=P):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{v=a.stateNode,Vf(t,a),C=a.memoizedProps,te=$a(o,C),v.props=te,oe=a.pendingProps,G=v.context,V=o.contextType,P=wi,typeof V=="object"&&V!==null&&(P=Jt(V)),_=o.getDerivedStateFromProps,(V=typeof _=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(C!==oe||G!==P)&&nv(a,v,u,P),Jr=!1,G=a.memoizedState,v.state=G,Xo(a,u,v,p),Ko();var Y=a.memoizedState;C!==oe||G!==Y||Jr||t!==null&&t.dependencies!==null&&Os(t.dependencies)?(typeof _=="function"&&(fd(a,o,_,u),Y=a.memoizedState),(te=Jr||tv(a,o,te,u,G,Y,P)||t!==null&&t.dependencies!==null&&Os(t.dependencies))?(V||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,Y,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,Y,P)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||C===t.memoizedProps&&G===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&G===t.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=Y),v.props=u,v.state=Y,v.context=P,u=te):(typeof v.componentDidUpdate!="function"||C===t.memoizedProps&&G===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&G===t.memoizedState||(a.flags|=1024),u=!1)}return v=u,Js(t,a),u=(a.flags&128)!==0,v||u?(v=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,t!==null&&u?(a.child=Mi(a,t.child,null,p),a.child=Mi(a,null,o,p)):Kt(t,a,o,p),a.memoizedState=v.state,t=a.child):t=Or(t,a,p),t}function yv(t,a,o,u){return Uo(),a.flags|=256,Kt(t,a,o,u),a.child}var md={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gd(t){return{baseLanes:t,cachePool:ay()}}function yd(t,a,o){return t=t!==null?t.childLanes&~o:0,a&&(t|=Bn),t}function vv(t,a,o){var u=a.pendingProps,p=!1,v=(a.flags&128)!==0,C;if((C=v)||(C=t!==null&&t.memoizedState===null?!1:(It.current&2)!==0),C&&(p=!0,a.flags&=-129),C=(a.flags&32)!==0,a.flags&=-33,t===null){if(nt){if(p?ra(a):aa(),nt){var _=Et,P;if(P=_){e:{for(P=_,_=sr;P.nodeType!==8;){if(!_){_=null;break e}if(P=Jn(P.nextSibling),P===null){_=null;break e}}_=P}_!==null?(a.memoizedState={dehydrated:_,treeContext:za!==null?{id:Rr,overflow:Nr}:null,retryLane:536870912,hydrationErrors:null},P=Sn(18,null,null,0),P.stateNode=_,P.return=a,a.child=P,sn=a,Et=null,P=!0):P=!1}P||Ua(a)}if(_=a.memoizedState,_!==null&&(_=_.dehydrated,_!==null))return eh(_)?a.lanes=32:a.lanes=536870912,null;Dr(a)}return _=u.children,u=u.fallback,p?(aa(),p=a.mode,_=eu({mode:"hidden",children:_},p),u=La(u,p,o,null),_.return=a,u.return=a,_.sibling=u,a.child=_,p=a.child,p.memoizedState=gd(o),p.childLanes=yd(t,C,o),a.memoizedState=md,u):(ra(a),vd(a,_))}if(P=t.memoizedState,P!==null&&(_=P.dehydrated,_!==null)){if(v)a.flags&256?(ra(a),a.flags&=-257,a=xd(t,a,o)):a.memoizedState!==null?(aa(),a.child=t.child,a.flags|=128,a=null):(aa(),p=u.fallback,_=a.mode,u=eu({mode:"visible",children:u.children},_),p=La(p,_,o,null),p.flags|=2,u.return=a,p.return=a,u.sibling=p,a.child=u,Mi(a,t.child,null,o),u=a.child,u.memoizedState=gd(o),u.childLanes=yd(t,C,o),a.memoizedState=md,a=p);else if(ra(a),eh(_)){if(C=_.nextSibling&&_.nextSibling.dataset,C)var V=C.dgst;C=V,u=Error(i(419)),u.stack="",u.digest=C,Ho({value:u,source:null,stack:null}),a=xd(t,a,o)}else if(Ut||Fo(t,a,o,!1),C=(o&t.childLanes)!==0,Ut||C){if(C=dt,C!==null&&(u=o&-o,u=(u&42)!==0?1:wt(u),u=(u&(C.suspendedLanes|o))!==0?0:u,u!==0&&u!==P.retryLane))throw P.retryLane=u,bi(t,u),Tn(C,t,u),uv;_.data==="$?"||zd(),a=xd(t,a,o)}else _.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=P.treeContext,Et=Jn(_.nextSibling),sn=a,nt=!0,Ba=null,sr=!1,t!==null&&(Ln[zn++]=Rr,Ln[zn++]=Nr,Ln[zn++]=za,Rr=t.id,Nr=t.overflow,za=a),a=vd(a,u.children),a.flags|=4096);return a}return p?(aa(),p=u.fallback,_=a.mode,P=t.child,V=P.sibling,u=Tr(P,{mode:"hidden",children:u.children}),u.subtreeFlags=P.subtreeFlags&65011712,V!==null?p=Tr(V,p):(p=La(p,_,o,null),p.flags|=2),p.return=a,u.return=a,u.sibling=p,a.child=u,u=p,p=a.child,_=t.child.memoizedState,_===null?_=gd(o):(P=_.cachePool,P!==null?(V=zt._currentValue,P=P.parent!==V?{parent:V,pool:V}:P):P=ay(),_={baseLanes:_.baseLanes|o,cachePool:P}),p.memoizedState=_,p.childLanes=yd(t,C,o),a.memoizedState=md,u):(ra(a),o=t.child,t=o.sibling,o=Tr(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,t!==null&&(C=a.deletions,C===null?(a.deletions=[t],a.flags|=16):C.push(t)),a.child=o,a.memoizedState=null,o)}function vd(t,a){return a=eu({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function eu(t,a){return t=Sn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function xd(t,a,o){return Mi(a,t.child,null,o),t=vd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function xv(t,a,o){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a),zf(t.return,a,o)}function bd(t,a,o,u,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=o,v.tailMode=p)}function bv(t,a,o){var u=a.pendingProps,p=u.revealOrder,v=u.tail;if(Kt(t,a,u.children,o),u=It.current,(u&2)!==0)u=u&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xv(t,o,a);else if(t.tag===19)xv(t,o,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch(M(It,u),p){case"forwards":for(o=a.child,p=null;o!==null;)t=o.alternate,t!==null&&Qs(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=a.child,a.child=null):(p=o.sibling,o.sibling=null),bd(a,!1,p,o,v);break;case"backwards":for(o=null,p=a.child,a.child=null;p!==null;){if(t=p.alternate,t!==null&&Qs(t)===null){a.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}bd(a,!0,o,null,v);break;case"together":bd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Or(t,a,o){if(t!==null&&(a.dependencies=t.dependencies),ua|=a.lanes,(o&a.childLanes)===0)if(t!==null){if(Fo(t,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(i(153));if(a.child!==null){for(t=a.child,o=Tr(t,t.pendingProps),a.child=o,o.return=a;t.sibling!==null;)t=t.sibling,o=o.sibling=Tr(t,t.pendingProps),o.return=a;o.sibling=null}return a.child}function wd(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Os(t)))}function _A(t,a,o){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),Wr(a,zt,t.memoizedState.cache),Uo();break;case 27:case 5:De(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:Wr(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(ra(a),a.flags|=128,null):(o&a.child.childLanes)!==0?vv(t,a,o):(ra(a),t=Or(t,a,o),t!==null?t.sibling:null);ra(a);break;case 19:var p=(t.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||(Fo(t,a,o,!1),u=(o&a.childLanes)!==0),p){if(u)return bv(t,a,o);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),M(It,It.current),u)break;return null;case 22:case 23:return a.lanes=0,hv(t,a,o);case 24:Wr(a,zt,t.memoizedState.cache)}return Or(t,a,o)}function wv(t,a,o){if(t!==null)if(t.memoizedProps!==a.pendingProps)Ut=!0;else{if(!wd(t,o)&&(a.flags&128)===0)return Ut=!1,_A(t,a,o);Ut=(t.flags&131072)!==0}else Ut=!1,nt&&(a.flags&1048576)!==0&&Zg(a,Ds,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var u=a.elementType,p=u._init;if(u=p(u._payload),a.type=u,typeof u=="function")_f(u)?(t=$a(u,t),a.tag=1,a=gv(null,a,u,t,o)):(a.tag=0,a=pd(null,a,u,t,o));else{if(u!=null){if(p=u.$$typeof,p===O){a.tag=11,a=cv(null,a,u,t,o);break e}else if(p===B){a.tag=14,a=fv(null,a,u,t,o);break e}}throw a=K(u)||u,Error(i(306,a,""))}}return a;case 0:return pd(t,a,a.type,a.pendingProps,o);case 1:return u=a.type,p=$a(u,a.pendingProps),gv(t,a,u,p,o);case 3:e:{if(ge(a,a.stateNode.containerInfo),t===null)throw Error(i(387));u=a.pendingProps;var v=a.memoizedState;p=v.element,Vf(t,a),Xo(a,u,null,o);var C=a.memoizedState;if(u=C.cache,Wr(a,zt,u),u!==v.cache&&If(a,[zt],o,!0),Ko(),u=C.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:C.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=yv(t,a,u,o);break e}else if(u!==p){p=On(Error(i(424)),a),Ho(p),a=yv(t,a,u,o);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Et=Jn(t.firstChild),sn=a,nt=!0,Ba=null,sr=!0,o=Jy(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Uo(),u===p){a=Or(t,a,o);break e}Kt(t,a,u,o)}a=a.child}return a;case 26:return Js(t,a),t===null?(o=kx(a.type,null,a.pendingProps,null))?a.memoizedState=o:nt||(o=a.type,t=a.pendingProps,u=pu(me.current).createElement(o),u[$e]=a,u[pt]=t,Qt(u,o,t),Qe(u),a.stateNode=u):a.memoizedState=kx(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return De(a),t===null&&nt&&(u=a.stateNode=Sx(a.type,a.pendingProps,me.current),sn=a,sr=!0,p=Et,ha(a.type)?(th=p,Et=Jn(u.firstChild)):Et=p),Kt(t,a,a.pendingProps.children,o),Js(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&nt&&((p=u=Et)&&(u=aT(u,a.type,a.pendingProps,sr),u!==null?(a.stateNode=u,sn=a,Et=Jn(u.firstChild),sr=!1,p=!0):p=!1),p||Ua(a)),De(a),p=a.type,v=a.pendingProps,C=t!==null?t.memoizedProps:null,u=v.children,Zd(p,v)?u=null:C!==null&&Zd(p,C)&&(a.flags|=32),a.memoizedState!==null&&(p=Qf(t,a,SA,null,null,o),yl._currentValue=p),Js(t,a),Kt(t,a,u,o),a.child;case 6:return t===null&&nt&&((t=o=Et)&&(o=iT(o,a.pendingProps,sr),o!==null?(a.stateNode=o,sn=a,Et=null,t=!0):t=!1),t||Ua(a)),null;case 13:return vv(t,a,o);case 4:return ge(a,a.stateNode.containerInfo),u=a.pendingProps,t===null?a.child=Mi(a,null,u,o):Kt(t,a,u,o),a.child;case 11:return cv(t,a,a.type,a.pendingProps,o);case 7:return Kt(t,a,a.pendingProps,o),a.child;case 8:return Kt(t,a,a.pendingProps.children,o),a.child;case 12:return Kt(t,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,Wr(a,a.type,u.value),Kt(t,a,u.children,o),a.child;case 9:return p=a.type._context,u=a.pendingProps.children,Fa(a),p=Jt(p),u=u(p),a.flags|=1,Kt(t,a,u,o),a.child;case 14:return fv(t,a,a.type,a.pendingProps,o);case 15:return dv(t,a,a.type,a.pendingProps,o);case 19:return bv(t,a,o);case 31:return u=a.pendingProps,o=a.mode,u={mode:u.mode,children:u.children},t===null?(o=eu(u,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=Tr(t.child,u),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return hv(t,a,o);case 24:return Fa(a),u=Jt(zt),t===null?(p=Hf(),p===null&&(p=dt,v=Bf(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=o),p=v),a.memoizedState={parent:u,cache:p},qf(a),Wr(a,zt,p)):((t.lanes&o)!==0&&(Vf(t,a),Xo(a,null,null,o),Ko()),p=t.memoizedState,v=a.memoizedState,p.parent!==u?(p={parent:u,cache:u},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),Wr(a,zt,u)):(u=v.cache,Wr(a,zt,u),u!==p.cache&&If(a,[zt],o,!0))),Kt(t,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Pr(t){t.flags|=4}function Sv(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_x(a)){if(a=In.current,a!==null&&((Ze&4194048)===Ze?ur!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||a!==ur))throw Go=Ff,iy;t.flags|=8192}}function tu(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?de():536870912,t.lanes|=a,Pi|=a)}function nl(t,a){if(!nt)switch(t.tailMode){case"hidden":a=t.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function bt(t){var a=t.alternate!==null&&t.alternate.child===t.child,o=0,u=0;if(a)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=o,a}function MA(t,a,o){var u=a.pendingProps;switch(Of(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(a),null;case 1:return bt(a),null;case 3:return o=a.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Mr(zt),Oe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Bo(a)?Pr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ey())),bt(a),null;case 26:return o=a.memoizedState,t===null?(Pr(a),o!==null?(bt(a),Sv(a,o)):(bt(a),a.flags&=-16777217)):o?o!==t.memoizedState?(Pr(a),bt(a),Sv(a,o)):(bt(a),a.flags&=-16777217):(t.memoizedProps!==u&&Pr(a),bt(a),a.flags&=-16777217),null;case 27:Pe(a),o=me.current;var p=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Pr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return bt(a),null}t=ce.current,Bo(a)?Wg(a):(t=Sx(p,u,o),a.stateNode=t,Pr(a))}return bt(a),null;case 5:if(Pe(a),o=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Pr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return bt(a),null}if(t=ce.current,Bo(a))Wg(a);else{switch(p=pu(me.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?p.createElement("select",{is:u.is}):p.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?p.createElement(o,{is:u.is}):p.createElement(o)}}t[$e]=a,t[pt]=u;e:for(p=a.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===a)break e;for(;p.sibling===null;){if(p.return===null||p.return===a)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a.stateNode=t;e:switch(Qt(t,o,u),o){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Pr(a)}}return bt(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==u&&Pr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(t=me.current,Bo(a)){if(t=a.stateNode,o=a.memoizedProps,u=null,p=sn,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[$e]=a,t=!!(t.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||mx(t.nodeValue,o)),t||Ua(a)}else t=pu(t).createTextNode(u),t[$e]=a,a.stateNode=t}return bt(a),null;case 13:if(u=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Bo(a),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[$e]=a}else Uo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;bt(a),p=!1}else p=ey(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(Dr(a),a):(Dr(a),null)}if(Dr(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=u!==null,t=t!==null&&t.memoizedState!==null,o){u=a.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool);var v=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==p&&(u.flags|=2048)}return o!==t&&o&&(a.child.flags|=8192),tu(a,a.updateQueue),bt(a),null;case 4:return Oe(),t===null&&Gd(a.stateNode.containerInfo),bt(a),null;case 10:return Mr(a.type),bt(a),null;case 19:if(le(It),p=a.memoizedState,p===null)return bt(a),null;if(u=(a.flags&128)!==0,v=p.rendering,v===null)if(u)nl(p,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(v=Qs(t),v!==null){for(a.flags|=128,nl(p,!1),t=v.updateQueue,a.updateQueue=t,tu(a,t),a.subtreeFlags=0,t=o,o=a.child;o!==null;)Qg(o,t),o=o.sibling;return M(It,It.current&1|2),a.child}t=t.sibling}p.tail!==null&&xt()>au&&(a.flags|=128,u=!0,nl(p,!1),a.lanes=4194304)}else{if(!u)if(t=Qs(v),t!==null){if(a.flags|=128,u=!0,t=t.updateQueue,a.updateQueue=t,tu(a,t),nl(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!nt)return bt(a),null}else 2*xt()-p.renderingStartTime>au&&o!==536870912&&(a.flags|=128,u=!0,nl(p,!1),a.lanes=4194304);p.isBackwards?(v.sibling=a.child,a.child=v):(t=p.last,t!==null?t.sibling=v:a.child=v,p.last=v)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=xt(),a.sibling=null,t=It.current,M(It,u?t&1|2:t&1),a):(bt(a),null);case 22:case 23:return Dr(a),Kf(),u=a.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(bt(a),a.subtreeFlags&6&&(a.flags|=8192)):bt(a),o=a.updateQueue,o!==null&&tu(a,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),t!==null&&le(qa),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Mr(zt),bt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function jA(t,a){switch(Of(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Mr(zt),Oe(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Pe(a),null;case 13:if(Dr(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Uo()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return le(It),null;case 4:return Oe(),null;case 10:return Mr(a.type),null;case 22:case 23:return Dr(a),Kf(),t!==null&&le(qa),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Mr(zt),null;case 25:return null;default:return null}}function Ev(t,a){switch(Of(a),a.tag){case 3:Mr(zt),Oe();break;case 26:case 27:case 5:Pe(a);break;case 4:Oe();break;case 13:Dr(a);break;case 19:le(It);break;case 10:Mr(a.type);break;case 22:case 23:Dr(a),Kf(),t!==null&&le(qa);break;case 24:Mr(zt)}}function rl(t,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var p=u.next;o=p;do{if((o.tag&t)===t){u=void 0;var v=o.create,C=o.inst;u=v(),C.destroy=u}o=o.next}while(o!==p)}}catch(_){ut(a,a.return,_)}}function ia(t,a,o){try{var u=a.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var v=p.next;u=v;do{if((u.tag&t)===t){var C=u.inst,_=C.destroy;if(_!==void 0){C.destroy=void 0,p=a;var P=o,V=_;try{V()}catch(te){ut(p,P,te)}}}u=u.next}while(u!==v)}}catch(te){ut(a,a.return,te)}}function Cv(t){var a=t.updateQueue;if(a!==null){var o=t.stateNode;try{fy(a,o)}catch(u){ut(t,t.return,u)}}}function kv(t,a,o){o.props=$a(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(u){ut(t,a,u)}}function al(t,a){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof o=="function"?t.refCleanup=o(u):o.current=u}}catch(p){ut(t,a,p)}}function cr(t,a){var o=t.ref,u=t.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(p){ut(t,a,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ut(t,a,p)}else o.current=null}function Av(t){var a=t.type,o=t.memoizedProps,u=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(p){ut(t,t.return,p)}}function Sd(t,a,o){try{var u=t.stateNode;JA(u,t.type,o,a),u[pt]=a}catch(p){ut(t,t.return,p)}}function Tv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ha(t.type)||t.tag===4}function Ed(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Tv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ha(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Cd(t,a,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(t),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=hu));else if(u!==4&&(u===27&&ha(t.type)&&(o=t.stateNode,a=null),t=t.child,t!==null))for(Cd(t,a,o),t=t.sibling;t!==null;)Cd(t,a,o),t=t.sibling}function nu(t,a,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?o.insertBefore(t,a):o.appendChild(t);else if(u!==4&&(u===27&&ha(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(nu(t,a,o),t=t.sibling;t!==null;)nu(t,a,o),t=t.sibling}function Rv(t){var a=t.stateNode,o=t.memoizedProps;try{for(var u=t.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Qt(a,u,o),a[$e]=t,a[pt]=o}catch(v){ut(t,t.return,v)}}var Lr=!1,Nt=!1,kd=!1,Nv=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function DA(t,a){if(t=t.containerInfo,Xd=bu,t=Ug(t),Ef(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var p=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{o.nodeType,v.nodeType}catch{o=null;break e}var C=0,_=-1,P=-1,V=0,te=0,oe=t,G=null;t:for(;;){for(var Y;oe!==o||p!==0&&oe.nodeType!==3||(_=C+p),oe!==v||u!==0&&oe.nodeType!==3||(P=C+u),oe.nodeType===3&&(C+=oe.nodeValue.length),(Y=oe.firstChild)!==null;)G=oe,oe=Y;for(;;){if(oe===t)break t;if(G===o&&++V===p&&(_=C),G===v&&++te===u&&(P=C),(Y=oe.nextSibling)!==null)break;oe=G,G=oe.parentNode}oe=Y}o=_===-1||P===-1?null:{start:_,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(Qd={focusedElem:t,selectionRange:o},bu=!1,Ht=a;Ht!==null;)if(a=Ht,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Ht=t;else for(;Ht!==null;){switch(a=Ht,v=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&v!==null){t=void 0,o=a,p=v.memoizedProps,v=v.memoizedState,u=o.stateNode;try{var _e=$a(o.type,p,o.elementType===o.type);t=u.getSnapshotBeforeUpdate(_e,v),u.__reactInternalSnapshotBeforeUpdate=t}catch(Te){ut(o,o.return,Te)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,o=t.nodeType,o===9)Jd(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Jd(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=a.sibling,t!==null){t.return=a.return,Ht=t;break}Ht=a.return}}function _v(t,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:oa(t,o),u&4&&rl(5,o);break;case 1:if(oa(t,o),u&4)if(t=o.stateNode,a===null)try{t.componentDidMount()}catch(C){ut(o,o.return,C)}else{var p=$a(o.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(p,a,t.__reactInternalSnapshotBeforeUpdate)}catch(C){ut(o,o.return,C)}}u&64&&Cv(o),u&512&&al(o,o.return);break;case 3:if(oa(t,o),u&64&&(t=o.updateQueue,t!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{fy(t,a)}catch(C){ut(o,o.return,C)}}break;case 27:a===null&&u&4&&Rv(o);case 26:case 5:oa(t,o),a===null&&u&4&&Av(o),u&512&&al(o,o.return);break;case 12:oa(t,o);break;case 13:oa(t,o),u&4&&Dv(t,o),u&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=FA.bind(null,o),oT(t,o))));break;case 22:if(u=o.memoizedState!==null||Lr,!u){a=a!==null&&a.memoizedState!==null||Nt,p=Lr;var v=Nt;Lr=u,(Nt=a)&&!v?la(t,o,(o.subtreeFlags&8772)!==0):oa(t,o),Lr=p,Nt=v}break;case 30:break;default:oa(t,o)}}function Mv(t){var a=t.alternate;a!==null&&(t.alternate=null,Mv(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&ln(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var yt=null,mn=!1;function zr(t,a,o){for(o=o.child;o!==null;)jv(t,a,o),o=o.sibling}function jv(t,a,o){if(fe&&typeof fe.onCommitFiberUnmount=="function")try{fe.onCommitFiberUnmount(ee,o)}catch{}switch(o.tag){case 26:Nt||cr(o,a),zr(t,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Nt||cr(o,a);var u=yt,p=mn;ha(o.type)&&(yt=o.stateNode,mn=!1),zr(t,a,o),hl(o.stateNode),yt=u,mn=p;break;case 5:Nt||cr(o,a);case 6:if(u=yt,p=mn,yt=null,zr(t,a,o),yt=u,mn=p,yt!==null)if(mn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(o.stateNode)}catch(v){ut(o,a,v)}else try{yt.removeChild(o.stateNode)}catch(v){ut(o,a,v)}break;case 18:yt!==null&&(mn?(t=yt,bx(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),wl(t)):bx(yt,o.stateNode));break;case 4:u=yt,p=mn,yt=o.stateNode.containerInfo,mn=!0,zr(t,a,o),yt=u,mn=p;break;case 0:case 11:case 14:case 15:Nt||ia(2,o,a),Nt||ia(4,o,a),zr(t,a,o);break;case 1:Nt||(cr(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&kv(o,a,u)),zr(t,a,o);break;case 21:zr(t,a,o);break;case 22:Nt=(u=Nt)||o.memoizedState!==null,zr(t,a,o),Nt=u;break;default:zr(t,a,o)}}function Dv(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{wl(t)}catch(o){ut(a,a.return,o)}}function OA(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new Nv),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new Nv),a;default:throw Error(i(435,t.tag))}}function Ad(t,a){var o=OA(t);a.forEach(function(u){var p=qA.bind(null,t,u);o.has(u)||(o.add(u),u.then(p,p))})}function En(t,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u],v=t,C=a,_=C;e:for(;_!==null;){switch(_.tag){case 27:if(ha(_.type)){yt=_.stateNode,mn=!1;break e}break;case 5:yt=_.stateNode,mn=!1;break e;case 3:case 4:yt=_.stateNode.containerInfo,mn=!0;break e}_=_.return}if(yt===null)throw Error(i(160));jv(v,C,p),yt=null,mn=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Ov(a,t),a=a.sibling}var Wn=null;function Ov(t,a){var o=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:En(a,t),Cn(t),u&4&&(ia(3,t,t.return),rl(3,t),ia(5,t,t.return));break;case 1:En(a,t),Cn(t),u&512&&(Nt||o===null||cr(o,o.return)),u&64&&Lr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var p=Wn;if(En(a,t),Cn(t),u&512&&(Nt||o===null||cr(o,o.return)),u&4){var v=o!==null?o.memoizedState:null;if(u=t.memoizedState,o===null)if(u===null)if(t.stateNode===null){e:{u=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":v=p.getElementsByTagName("title")[0],(!v||v[Yt]||v[$e]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(u),p.head.insertBefore(v,p.querySelector("head > title"))),Qt(v,u,o),v[$e]=t,Qe(v),u=v;break e;case"link":var C=Rx("link","href",p).get(u+(o.href||""));if(C){for(var _=0;_<C.length;_++)if(v=C[_],v.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&v.getAttribute("rel")===(o.rel==null?null:o.rel)&&v.getAttribute("title")===(o.title==null?null:o.title)&&v.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){C.splice(_,1);break t}}v=p.createElement(u),Qt(v,u,o),p.head.appendChild(v);break;case"meta":if(C=Rx("meta","content",p).get(u+(o.content||""))){for(_=0;_<C.length;_++)if(v=C[_],v.getAttribute("content")===(o.content==null?null:""+o.content)&&v.getAttribute("name")===(o.name==null?null:o.name)&&v.getAttribute("property")===(o.property==null?null:o.property)&&v.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&v.getAttribute("charset")===(o.charSet==null?null:o.charSet)){C.splice(_,1);break t}}v=p.createElement(u),Qt(v,u,o),p.head.appendChild(v);break;default:throw Error(i(468,u))}v[$e]=t,Qe(v),u=v}t.stateNode=u}else Nx(p,t.type,t.stateNode);else t.stateNode=Tx(p,u,t.memoizedProps);else v!==u?(v===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):v.count--,u===null?Nx(p,t.type,t.stateNode):Tx(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&Sd(t,t.memoizedProps,o.memoizedProps)}break;case 27:En(a,t),Cn(t),u&512&&(Nt||o===null||cr(o,o.return)),o!==null&&u&4&&Sd(t,t.memoizedProps,o.memoizedProps);break;case 5:if(En(a,t),Cn(t),u&512&&(Nt||o===null||cr(o,o.return)),t.flags&32){p=t.stateNode;try{hi(p,"")}catch(Y){ut(t,t.return,Y)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,Sd(t,p,o!==null?o.memoizedProps:p)),u&1024&&(kd=!0);break;case 6:if(En(a,t),Cn(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,o=t.stateNode;try{o.nodeValue=u}catch(Y){ut(t,t.return,Y)}}break;case 3:if(yu=null,p=Wn,Wn=mu(a.containerInfo),En(a,t),Wn=p,Cn(t),u&4&&o!==null&&o.memoizedState.isDehydrated)try{wl(a.containerInfo)}catch(Y){ut(t,t.return,Y)}kd&&(kd=!1,Pv(t));break;case 4:u=Wn,Wn=mu(t.stateNode.containerInfo),En(a,t),Cn(t),Wn=u;break;case 12:En(a,t),Cn(t);break;case 13:En(a,t),Cn(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(jd=xt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Ad(t,u)));break;case 22:p=t.memoizedState!==null;var P=o!==null&&o.memoizedState!==null,V=Lr,te=Nt;if(Lr=V||p,Nt=te||P,En(a,t),Nt=te,Lr=V,Cn(t),u&8192)e:for(a=t.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(o===null||P||Lr||Nt||Ga(t)),o=null,a=t;;){if(a.tag===5||a.tag===26){if(o===null){P=o=a;try{if(v=P.stateNode,p)C=v.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{_=P.stateNode;var oe=P.memoizedProps.style,G=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;_.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(Y){ut(P,P.return,Y)}}}else if(a.tag===6){if(o===null){P=a;try{P.stateNode.nodeValue=p?"":P.memoizedProps}catch(Y){ut(P,P.return,Y)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=t.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Ad(t,o))));break;case 19:En(a,t),Cn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Ad(t,u)));break;case 30:break;case 21:break;default:En(a,t),Cn(t)}}function Cn(t){var a=t.flags;if(a&2){try{for(var o,u=t.return;u!==null;){if(Tv(u)){o=u;break}u=u.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,v=Ed(t);nu(t,v,p);break;case 5:var C=o.stateNode;o.flags&32&&(hi(C,""),o.flags&=-33);var _=Ed(t);nu(t,_,C);break;case 3:case 4:var P=o.stateNode.containerInfo,V=Ed(t);Cd(t,V,P);break;default:throw Error(i(161))}}catch(te){ut(t,t.return,te)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function Pv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;Pv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function oa(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)_v(t,a.alternate,a),a=a.sibling}function Ga(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:ia(4,a,a.return),Ga(a);break;case 1:cr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&kv(a,a.return,o),Ga(a);break;case 27:hl(a.stateNode);case 26:case 5:cr(a,a.return),Ga(a);break;case 22:a.memoizedState===null&&Ga(a);break;case 30:Ga(a);break;default:Ga(a)}t=t.sibling}}function la(t,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,p=t,v=a,C=v.flags;switch(v.tag){case 0:case 11:case 15:la(p,v,o),rl(4,v);break;case 1:if(la(p,v,o),u=v,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(V){ut(u,u.return,V)}if(u=v,p=u.updateQueue,p!==null){var _=u.stateNode;try{var P=p.shared.hiddenCallbacks;if(P!==null)for(p.shared.hiddenCallbacks=null,p=0;p<P.length;p++)cy(P[p],_)}catch(V){ut(u,u.return,V)}}o&&C&64&&Cv(v),al(v,v.return);break;case 27:Rv(v);case 26:case 5:la(p,v,o),o&&u===null&&C&4&&Av(v),al(v,v.return);break;case 12:la(p,v,o);break;case 13:la(p,v,o),o&&C&4&&Dv(p,v);break;case 22:v.memoizedState===null&&la(p,v,o),al(v,v.return);break;case 30:break;default:la(p,v,o)}a=a.sibling}}function Td(t,a){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&qo(o))}function Rd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&qo(t))}function fr(t,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Lv(t,a,o,u),a=a.sibling}function Lv(t,a,o,u){var p=a.flags;switch(a.tag){case 0:case 11:case 15:fr(t,a,o,u),p&2048&&rl(9,a);break;case 1:fr(t,a,o,u);break;case 3:fr(t,a,o,u),p&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&qo(t)));break;case 12:if(p&2048){fr(t,a,o,u),t=a.stateNode;try{var v=a.memoizedProps,C=v.id,_=v.onPostCommit;typeof _=="function"&&_(C,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){ut(a,a.return,P)}}else fr(t,a,o,u);break;case 13:fr(t,a,o,u);break;case 23:break;case 22:v=a.stateNode,C=a.alternate,a.memoizedState!==null?v._visibility&2?fr(t,a,o,u):il(t,a):v._visibility&2?fr(t,a,o,u):(v._visibility|=2,ji(t,a,o,u,(a.subtreeFlags&10256)!==0)),p&2048&&Td(C,a);break;case 24:fr(t,a,o,u),p&2048&&Rd(a.alternate,a);break;default:fr(t,a,o,u)}}function ji(t,a,o,u,p){for(p=p&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var v=t,C=a,_=o,P=u,V=C.flags;switch(C.tag){case 0:case 11:case 15:ji(v,C,_,P,p),rl(8,C);break;case 23:break;case 22:var te=C.stateNode;C.memoizedState!==null?te._visibility&2?ji(v,C,_,P,p):il(v,C):(te._visibility|=2,ji(v,C,_,P,p)),p&&V&2048&&Td(C.alternate,C);break;case 24:ji(v,C,_,P,p),p&&V&2048&&Rd(C.alternate,C);break;default:ji(v,C,_,P,p)}a=a.sibling}}function il(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=t,u=a,p=u.flags;switch(u.tag){case 22:il(o,u),p&2048&&Td(u.alternate,u);break;case 24:il(o,u),p&2048&&Rd(u.alternate,u);break;default:il(o,u)}a=a.sibling}}var ol=8192;function Di(t){if(t.subtreeFlags&ol)for(t=t.child;t!==null;)zv(t),t=t.sibling}function zv(t){switch(t.tag){case 26:Di(t),t.flags&ol&&t.memoizedState!==null&&xT(Wn,t.memoizedState,t.memoizedProps);break;case 5:Di(t);break;case 3:case 4:var a=Wn;Wn=mu(t.stateNode.containerInfo),Di(t),Wn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ol,ol=16777216,Di(t),ol=a):Di(t));break;default:Di(t)}}function Iv(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function ll(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];Ht=u,Uv(u,t)}Iv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bv(t),t=t.sibling}function Bv(t){switch(t.tag){case 0:case 11:case 15:ll(t),t.flags&2048&&ia(9,t,t.return);break;case 3:ll(t);break;case 12:ll(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,ru(t)):ll(t);break;default:ll(t)}}function ru(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];Ht=u,Uv(u,t)}Iv(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:ia(8,a,a.return),ru(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,ru(a));break;default:ru(a)}t=t.sibling}}function Uv(t,a){for(;Ht!==null;){var o=Ht;switch(o.tag){case 0:case 11:case 15:ia(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:qo(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,Ht=u;else e:for(o=t;Ht!==null;){u=Ht;var p=u.sibling,v=u.return;if(Mv(u),u===o){Ht=null;break e}if(p!==null){p.return=v,Ht=p;break e}Ht=v}}}var PA={getCacheForType:function(t){var a=Jt(zt),o=a.data.get(t);return o===void 0&&(o=t(),a.data.set(t,o)),o}},LA=typeof WeakMap=="function"?WeakMap:Map,rt=0,dt=null,Ge=null,Ze=0,at=0,kn=null,sa=!1,Oi=!1,Nd=!1,Ir=0,Ct=0,ua=0,Ya=0,_d=0,Bn=0,Pi=0,sl=null,gn=null,Md=!1,jd=0,au=1/0,iu=null,ca=null,Xt=0,fa=null,Li=null,zi=0,Dd=0,Od=null,Hv=null,ul=0,Pd=null;function An(){if((rt&2)!==0&&Ze!==0)return Ze&-Ze;if(z.T!==null){var t=Ci;return t!==0?t:Fd()}return Gt()}function Fv(){Bn===0&&(Bn=(Ze&536870912)===0||nt?$():536870912);var t=In.current;return t!==null&&(t.flags|=32),Bn}function Tn(t,a,o){(t===dt&&(at===2||at===9)||t.cancelPendingCommit!==null)&&(Ii(t,0),da(t,Ze,Bn,!1)),ve(t,o),((rt&2)===0||t!==dt)&&(t===dt&&((rt&2)===0&&(Ya|=o),Ct===4&&da(t,Ze,Bn,!1)),dr(t))}function qv(t,a,o){if((rt&6)!==0)throw Error(i(327));var u=!o&&(a&124)===0&&(a&t.expiredLanes)===0||Ot(t,a),p=u?BA(t,a):Id(t,a,!0),v=u;do{if(p===0){Oi&&!u&&da(t,a,0,!1);break}else{if(o=t.current.alternate,v&&!zA(o)){p=Id(t,a,!1),v=!1;continue}if(p===2){if(v=a,t.errorRecoveryDisabledLanes&v)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){a=C;e:{var _=t;p=sl;var P=_.current.memoizedState.isDehydrated;if(P&&(Ii(_,C).flags|=256),C=Id(_,C,!1),C!==2){if(Nd&&!P){_.errorRecoveryDisabledLanes|=v,Ya|=v,p=4;break e}v=gn,gn=p,v!==null&&(gn===null?gn=v:gn.push.apply(gn,v))}p=C}if(v=!1,p!==2)continue}}if(p===1){Ii(t,0),da(t,a,0,!0);break}e:{switch(u=t,v=p,v){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:da(u,a,Bn,!sa);break e;case 2:gn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=jd+300-xt(),10<p)){if(da(u,a,Bn,!sa),Tt(u,0,!0)!==0)break e;u.timeoutHandle=vx(Vv.bind(null,u,o,gn,iu,Md,a,Bn,Ya,Pi,sa,v,2,-0,0),p);break e}Vv(u,o,gn,iu,Md,a,Bn,Ya,Pi,sa,v,0,-0,0)}}break}while(!0);dr(t)}function Vv(t,a,o,u,p,v,C,_,P,V,te,oe,G,Y){if(t.timeoutHandle=-1,oe=a.subtreeFlags,(oe&8192||(oe&16785408)===16785408)&&(gl={stylesheets:null,count:0,unsuspend:vT},zv(a),oe=bT(),oe!==null)){t.cancelPendingCommit=oe(Zv.bind(null,t,a,v,o,u,p,C,_,P,te,1,G,Y)),da(t,v,C,!V);return}Zv(t,a,v,o,u,p,C,_,P)}function zA(t){for(var a=t;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var p=o[u],v=p.getSnapshot;p=p.value;try{if(!wn(v(),p))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function da(t,a,o,u){a&=~_d,a&=~Ya,t.suspendedLanes|=a,t.pingedLanes&=~a,u&&(t.warmLanes|=a),u=t.expirationTimes;for(var p=a;0<p;){var v=31-Ae(p),C=1<<v;u[v]=-1,p&=~C}o!==0&&Je(t,o,a)}function ou(){return(rt&6)===0?(cl(0),!1):!0}function Ld(){if(Ge!==null){if(at===0)var t=Ge.return;else t=Ge,_r=Ha=null,Jf(t),_i=null,el=0,t=Ge;for(;t!==null;)Ev(t.alternate,t),t=t.return;Ge=null}}function Ii(t,a){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,tT(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Ld(),dt=t,Ge=o=Tr(t.current,null),Ze=a,at=0,kn=null,sa=!1,Oi=Ot(t,a),Nd=!1,Pi=Bn=_d=Ya=ua=Ct=0,gn=sl=null,Md=!1,(a&8)!==0&&(a|=a&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=a;0<u;){var p=31-Ae(u),v=1<<p;a|=t[p],u&=~v}return Ir=a,Rs(),o}function $v(t,a){He=null,z.H=Ys,a===$o||a===zs?(a=sy(),at=3):a===iy?(a=sy(),at=4):at=a===uv?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,kn=a,Ge===null&&(Ct=1,Ws(t,On(a,t.current)))}function Gv(){var t=z.H;return z.H=Ys,t===null?Ys:t}function Yv(){var t=z.A;return z.A=PA,t}function zd(){Ct=4,sa||(Ze&4194048)!==Ze&&In.current!==null||(Oi=!0),(ua&134217727)===0&&(Ya&134217727)===0||dt===null||da(dt,Ze,Bn,!1)}function Id(t,a,o){var u=rt;rt|=2;var p=Gv(),v=Yv();(dt!==t||Ze!==a)&&(iu=null,Ii(t,a)),a=!1;var C=Ct;e:do try{if(at!==0&&Ge!==null){var _=Ge,P=kn;switch(at){case 8:Ld(),C=6;break e;case 3:case 2:case 9:case 6:In.current===null&&(a=!0);var V=at;if(at=0,kn=null,Bi(t,_,P,V),o&&Oi){C=0;break e}break;default:V=at,at=0,kn=null,Bi(t,_,P,V)}}IA(),C=Ct;break}catch(te){$v(t,te)}while(!0);return a&&t.shellSuspendCounter++,_r=Ha=null,rt=u,z.H=p,z.A=v,Ge===null&&(dt=null,Ze=0,Rs()),C}function IA(){for(;Ge!==null;)Kv(Ge)}function BA(t,a){var o=rt;rt|=2;var u=Gv(),p=Yv();dt!==t||Ze!==a?(iu=null,au=xt()+500,Ii(t,a)):Oi=Ot(t,a);e:do try{if(at!==0&&Ge!==null){a=Ge;var v=kn;t:switch(at){case 1:at=0,kn=null,Bi(t,a,v,1);break;case 2:case 9:if(oy(v)){at=0,kn=null,Xv(a);break}a=function(){at!==2&&at!==9||dt!==t||(at=7),dr(t)},v.then(a,a);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:oy(v)?(at=0,kn=null,Xv(a)):(at=0,kn=null,Bi(t,a,v,7));break;case 5:var C=null;switch(Ge.tag){case 26:C=Ge.memoizedState;case 5:case 27:var _=Ge;if(!C||_x(C)){at=0,kn=null;var P=_.sibling;if(P!==null)Ge=P;else{var V=_.return;V!==null?(Ge=V,lu(V)):Ge=null}break t}}at=0,kn=null,Bi(t,a,v,5);break;case 6:at=0,kn=null,Bi(t,a,v,6);break;case 8:Ld(),Ct=6;break e;default:throw Error(i(462))}}UA();break}catch(te){$v(t,te)}while(!0);return _r=Ha=null,z.H=u,z.A=p,rt=o,Ge!==null?0:(dt=null,Ze=0,Rs(),Ct)}function UA(){for(;Ge!==null&&!Vt();)Kv(Ge)}function Kv(t){var a=wv(t.alternate,t,Ir);t.memoizedProps=t.pendingProps,a===null?lu(t):Ge=a}function Xv(t){var a=t,o=a.alternate;switch(a.tag){case 15:case 0:a=mv(o,a,a.pendingProps,a.type,void 0,Ze);break;case 11:a=mv(o,a,a.pendingProps,a.type.render,a.ref,Ze);break;case 5:Jf(a);default:Ev(o,a),a=Ge=Qg(a,Ir),a=wv(o,a,Ir)}t.memoizedProps=t.pendingProps,a===null?lu(t):Ge=a}function Bi(t,a,o,u){_r=Ha=null,Jf(a),_i=null,el=0;var p=a.return;try{if(NA(t,p,a,o,Ze)){Ct=1,Ws(t,On(o,t.current)),Ge=null;return}}catch(v){if(p!==null)throw Ge=p,v;Ct=1,Ws(t,On(o,t.current)),Ge=null;return}a.flags&32768?(nt||u===1?t=!0:Oi||(Ze&536870912)!==0?t=!1:(sa=t=!0,(u===2||u===9||u===3||u===6)&&(u=In.current,u!==null&&u.tag===13&&(u.flags|=16384))),Qv(a,t)):lu(a)}function lu(t){var a=t;do{if((a.flags&32768)!==0){Qv(a,sa);return}t=a.return;var o=MA(a.alternate,a,Ir);if(o!==null){Ge=o;return}if(a=a.sibling,a!==null){Ge=a;return}Ge=a=t}while(a!==null);Ct===0&&(Ct=5)}function Qv(t,a){do{var o=jA(t.alternate,t);if(o!==null){o.flags&=32767,Ge=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(t=t.sibling,t!==null)){Ge=t;return}Ge=t=o}while(t!==null);Ct=6,Ge=null}function Zv(t,a,o,u,p,v,C,_,P){t.cancelPendingCommit=null;do su();while(Xt!==0);if((rt&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(v=a.lanes|a.childLanes,v|=Rf,Me(t,o,v,C,_,P),t===dt&&(Ge=dt=null,Ze=0),Li=a,fa=t,zi=o,Dd=v,Od=p,Hv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,VA(Sr,function(){return nx(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,p=X.p,X.p=2,C=rt,rt|=4;try{DA(t,a,o)}finally{rt=C,X.p=p,z.T=u}}Xt=1,Wv(),Jv(),ex()}}function Wv(){if(Xt===1){Xt=0;var t=fa,a=Li,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=z.T,z.T=null;var u=X.p;X.p=2;var p=rt;rt|=4;try{Ov(a,t);var v=Qd,C=Ug(t.containerInfo),_=v.focusedElem,P=v.selectionRange;if(C!==_&&_&&_.ownerDocument&&Bg(_.ownerDocument.documentElement,_)){if(P!==null&&Ef(_)){var V=P.start,te=P.end;if(te===void 0&&(te=V),"selectionStart"in _)_.selectionStart=V,_.selectionEnd=Math.min(te,_.value.length);else{var oe=_.ownerDocument||document,G=oe&&oe.defaultView||window;if(G.getSelection){var Y=G.getSelection(),_e=_.textContent.length,Te=Math.min(P.start,_e),st=P.end===void 0?Te:Math.min(P.end,_e);!Y.extend&&Te>st&&(C=st,st=Te,Te=C);var U=Ig(_,Te),I=Ig(_,st);if(U&&I&&(Y.rangeCount!==1||Y.anchorNode!==U.node||Y.anchorOffset!==U.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var q=oe.createRange();q.setStart(U.node,U.offset),Y.removeAllRanges(),Te>st?(Y.addRange(q),Y.extend(I.node,I.offset)):(q.setEnd(I.node,I.offset),Y.addRange(q))}}}}for(oe=[],Y=_;Y=Y.parentNode;)Y.nodeType===1&&oe.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<oe.length;_++){var ne=oe[_];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}bu=!!Xd,Qd=Xd=null}finally{rt=p,X.p=u,z.T=o}}t.current=a,Xt=2}}function Jv(){if(Xt===2){Xt=0;var t=fa,a=Li,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=z.T,z.T=null;var u=X.p;X.p=2;var p=rt;rt|=4;try{_v(t,a.alternate,a)}finally{rt=p,X.p=u,z.T=o}}Xt=3}}function ex(){if(Xt===4||Xt===3){Xt=0,lr();var t=fa,a=Li,o=zi,u=Hv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Xt=5:(Xt=0,Li=fa=null,tx(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(ca=null),Ve(o),a=a.stateNode,fe&&typeof fe.onCommitFiberRoot=="function")try{fe.onCommitFiberRoot(ee,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=z.T,p=X.p,X.p=2,z.T=null;try{for(var v=t.onRecoverableError,C=0;C<u.length;C++){var _=u[C];v(_.value,{componentStack:_.stack})}}finally{z.T=a,X.p=p}}(zi&3)!==0&&su(),dr(t),p=t.pendingLanes,(o&4194090)!==0&&(p&42)!==0?t===Pd?ul++:(ul=0,Pd=t):ul=0,cl(0)}}function tx(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,qo(a)))}function su(t){return Wv(),Jv(),ex(),nx()}function nx(){if(Xt!==5)return!1;var t=fa,a=Dd;Dd=0;var o=Ve(zi),u=z.T,p=X.p;try{X.p=32>o?32:o,z.T=null,o=Od,Od=null;var v=fa,C=zi;if(Xt=0,Li=fa=null,zi=0,(rt&6)!==0)throw Error(i(331));var _=rt;if(rt|=4,Bv(v.current),Lv(v,v.current,C,o),rt=_,cl(0,!1),fe&&typeof fe.onPostCommitFiberRoot=="function")try{fe.onPostCommitFiberRoot(ee,v)}catch{}return!0}finally{X.p=p,z.T=u,tx(t,a)}}function rx(t,a,o){a=On(o,a),a=hd(t.stateNode,a,2),t=ta(t,a,2),t!==null&&(ve(t,2),dr(t))}function ut(t,a,o){if(t.tag===3)rx(t,t,o);else for(;a!==null;){if(a.tag===3){rx(a,t,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ca===null||!ca.has(u))){t=On(o,t),o=lv(2),u=ta(a,o,2),u!==null&&(sv(o,u,a,t),ve(u,2),dr(u));break}}a=a.return}}function Bd(t,a,o){var u=t.pingCache;if(u===null){u=t.pingCache=new LA;var p=new Set;u.set(a,p)}else p=u.get(a),p===void 0&&(p=new Set,u.set(a,p));p.has(o)||(Nd=!0,p.add(o),t=HA.bind(null,t,a,o),a.then(t,t))}function HA(t,a,o){var u=t.pingCache;u!==null&&u.delete(a),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,dt===t&&(Ze&o)===o&&(Ct===4||Ct===3&&(Ze&62914560)===Ze&&300>xt()-jd?(rt&2)===0&&Ii(t,0):_d|=o,Pi===Ze&&(Pi=0)),dr(t)}function ax(t,a){a===0&&(a=de()),t=bi(t,a),t!==null&&(ve(t,a),dr(t))}function FA(t){var a=t.memoizedState,o=0;a!==null&&(o=a.retryLane),ax(t,o)}function qA(t,a){var o=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),ax(t,o)}function VA(t,a){return ft(t,a)}var uu=null,Ui=null,Ud=!1,cu=!1,Hd=!1,Ka=0;function dr(t){t!==Ui&&t.next===null&&(Ui===null?uu=Ui=t:Ui=Ui.next=t),cu=!0,Ud||(Ud=!0,GA())}function cl(t,a){if(!Hd&&cu){Hd=!0;do for(var o=!1,u=uu;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var v=0;else{var C=u.suspendedLanes,_=u.pingedLanes;v=(1<<31-Ae(42|t)+1)-1,v&=p&~(C&~_),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(o=!0,sx(u,v))}else v=Ze,v=Tt(u,u===dt?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||Ot(u,v)||(o=!0,sx(u,v));u=u.next}while(o);Hd=!1}}function $A(){ix()}function ix(){cu=Ud=!1;var t=0;Ka!==0&&(eT()&&(t=Ka),Ka=0);for(var a=xt(),o=null,u=uu;u!==null;){var p=u.next,v=ox(u,a);v===0?(u.next=null,o===null?uu=p:o.next=p,p===null&&(Ui=o)):(o=u,(t!==0||(v&3)!==0)&&(cu=!0)),u=p}cl(t)}function ox(t,a){for(var o=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,v=t.pendingLanes&-62914561;0<v;){var C=31-Ae(v),_=1<<C,P=p[C];P===-1?((_&o)===0||(_&u)!==0)&&(p[C]=an(_,a)):P<=a&&(t.expiredLanes|=_),v&=~_}if(a=dt,o=Ze,o=Tt(t,t===a?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,o===0||t===a&&(at===2||at===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&Zt(u),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||Ot(t,o)){if(a=o&-o,a===t.callbackPriority)return a;switch(u!==null&&Zt(u),Ve(o)){case 2:case 8:o=Kr;break;case 32:o=Sr;break;case 268435456:o=Er;break;default:o=Sr}return u=lx.bind(null,t),o=ft(o,u),t.callbackPriority=a,t.callbackNode=o,a}return u!==null&&u!==null&&Zt(u),t.callbackPriority=2,t.callbackNode=null,2}function lx(t,a){if(Xt!==0&&Xt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(su()&&t.callbackNode!==o)return null;var u=Ze;return u=Tt(t,t===dt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(qv(t,u,a),ox(t,xt()),t.callbackNode!=null&&t.callbackNode===o?lx.bind(null,t):null)}function sx(t,a){if(su())return null;qv(t,a,!0)}function GA(){nT(function(){(rt&6)!==0?ft(Ma,$A):ix()})}function Fd(){return Ka===0&&(Ka=$()),Ka}function ux(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ws(""+t)}function cx(t,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,t.id&&o.setAttribute("form",t.id),a.parentNode.insertBefore(o,a),t=new FormData(t),o.parentNode.removeChild(o),t}function YA(t,a,o,u,p){if(a==="submit"&&o&&o.stateNode===p){var v=ux((p[pt]||null).action),C=u.submitter;C&&(a=(a=C[pt]||null)?ux(a.formAction):C.getAttribute("formAction"),a!==null&&(v=a,C=null));var _=new ks("action","action",null,u,p);t.push({event:_,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ka!==0){var P=C?cx(p,C):new FormData(p);sd(o,{pending:!0,data:P,method:p.method,action:v},null,P)}}else typeof v=="function"&&(_.preventDefault(),P=C?cx(p,C):new FormData(p),sd(o,{pending:!0,data:P,method:p.method,action:v},v,P))},currentTarget:p}]})}}for(var qd=0;qd<Tf.length;qd++){var Vd=Tf[qd],KA=Vd.toLowerCase(),XA=Vd[0].toUpperCase()+Vd.slice(1);Zn(KA,"on"+XA)}Zn(qg,"onAnimationEnd"),Zn(Vg,"onAnimationIteration"),Zn($g,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(dA,"onTransitionRun"),Zn(hA,"onTransitionStart"),Zn(pA,"onTransitionCancel"),Zn(Gg,"onTransitionEnd"),St("onMouseEnter",["mouseout","mouseover"]),St("onMouseLeave",["mouseout","mouseover"]),St("onPointerEnter",["pointerout","pointerover"]),St("onPointerLeave",["pointerout","pointerover"]),bn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bn("onBeforeInput",["compositionend","keypress","textInput","paste"]),bn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fl));function fx(t,a){a=(a&4)!==0;for(var o=0;o<t.length;o++){var u=t[o],p=u.event;u=u.listeners;e:{var v=void 0;if(a)for(var C=u.length-1;0<=C;C--){var _=u[C],P=_.instance,V=_.currentTarget;if(_=_.listener,P!==v&&p.isPropagationStopped())break e;v=_,p.currentTarget=V;try{v(p)}catch(te){Zs(te)}p.currentTarget=null,v=P}else for(C=0;C<u.length;C++){if(_=u[C],P=_.instance,V=_.currentTarget,_=_.listener,P!==v&&p.isPropagationStopped())break e;v=_,p.currentTarget=V;try{v(p)}catch(te){Zs(te)}p.currentTarget=null,v=P}}}}function Ye(t,a){var o=a[ja];o===void 0&&(o=a[ja]=new Set);var u=t+"__bubble";o.has(u)||(dx(a,t,2,!1),o.add(u))}function $d(t,a,o){var u=0;a&&(u|=4),dx(o,t,u,a)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Gd(t){if(!t[fu]){t[fu]=!0,Cr.forEach(function(o){o!=="selectionchange"&&(QA.has(o)||$d(o,!1,t),$d(o,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[fu]||(a[fu]=!0,$d("selectionchange",!1,a))}}function dx(t,a,o,u){switch(Lx(a)){case 2:var p=ET;break;case 8:p=CT;break;default:p=oh}o=p.bind(null,a,o,t),p=void 0,!pf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(a,o,{capture:!0,passive:p}):t.addEventListener(a,o,!0):p!==void 0?t.addEventListener(a,o,{passive:p}):t.addEventListener(a,o,!1)}function Yd(t,a,o,u,p){var v=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var C=u.tag;if(C===3||C===4){var _=u.stateNode.containerInfo;if(_===p)break;if(C===4)for(C=u.return;C!==null;){var P=C.tag;if((P===3||P===4)&&C.stateNode.containerInfo===p)return;C=C.return}for(;_!==null;){if(C=it(_),C===null)return;if(P=C.tag,P===5||P===6||P===26||P===27){u=v=C;continue e}_=_.parentNode}}u=u.return}xg(function(){var V=v,te=df(o),oe=[];e:{var G=Yg.get(t);if(G!==void 0){var Y=ks,_e=t;switch(t){case"keypress":if(Es(o)===0)break e;case"keydown":case"keyup":Y=V2;break;case"focusin":_e="focus",Y=vf;break;case"focusout":_e="blur",Y=vf;break;case"beforeblur":case"afterblur":Y=vf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Sg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=j2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Y2;break;case qg:case Vg:case $g:Y=P2;break;case Gg:Y=X2;break;case"scroll":case"scrollend":Y=_2;break;case"wheel":Y=Z2;break;case"copy":case"cut":case"paste":Y=z2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Cg;break;case"toggle":case"beforetoggle":Y=J2}var Te=(a&4)!==0,st=!Te&&(t==="scroll"||t==="scrollend"),U=Te?G!==null?G+"Capture":null:G;Te=[];for(var I=V,q;I!==null;){var ne=I;if(q=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||q===null||U===null||(ne=_o(I,U),ne!=null&&Te.push(dl(I,ne,q))),st)break;I=I.return}0<Te.length&&(G=new Y(G,_e,null,o,te),oe.push({event:G,listeners:Te}))}}if((a&7)===0){e:{if(G=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",G&&o!==ff&&(_e=o.relatedTarget||o.fromElement)&&(it(_e)||_e[Lt]))break e;if((Y||G)&&(G=te.window===te?te:(G=te.ownerDocument)?G.defaultView||G.parentWindow:window,Y?(_e=o.relatedTarget||o.toElement,Y=V,_e=_e?it(_e):null,_e!==null&&(st=s(_e),Te=_e.tag,_e!==st||Te!==5&&Te!==27&&Te!==6)&&(_e=null)):(Y=null,_e=V),Y!==_e)){if(Te=Sg,ne="onMouseLeave",U="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Te=Cg,ne="onPointerLeave",U="onPointerEnter",I="pointer"),st=Y==null?G:gt(Y),q=_e==null?G:gt(_e),G=new Te(ne,I+"leave",Y,o,te),G.target=st,G.relatedTarget=q,ne=null,it(te)===V&&(Te=new Te(U,I+"enter",_e,o,te),Te.target=q,Te.relatedTarget=st,ne=Te),st=ne,Y&&_e)t:{for(Te=Y,U=_e,I=0,q=Te;q;q=Hi(q))I++;for(q=0,ne=U;ne;ne=Hi(ne))q++;for(;0<I-q;)Te=Hi(Te),I--;for(;0<q-I;)U=Hi(U),q--;for(;I--;){if(Te===U||U!==null&&Te===U.alternate)break t;Te=Hi(Te),U=Hi(U)}Te=null}else Te=null;Y!==null&&hx(oe,G,Y,Te,!1),_e!==null&&st!==null&&hx(oe,st,_e,Te,!0)}}e:{if(G=V?gt(V):window,Y=G.nodeName&&G.nodeName.toLowerCase(),Y==="select"||Y==="input"&&G.type==="file")var xe=jg;else if(_g(G))if(Dg)xe=uA;else{xe=lA;var qe=oA}else Y=G.nodeName,!Y||Y.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?V&&cf(V.elementType)&&(xe=jg):xe=sA;if(xe&&(xe=xe(t,V))){Mg(oe,xe,o,te);break e}qe&&qe(t,G,V),t==="focusout"&&V&&G.type==="number"&&V.memoizedProps.value!=null&&uf(G,"number",G.value)}switch(qe=V?gt(V):window,t){case"focusin":(_g(qe)||qe.contentEditable==="true")&&(yi=qe,Cf=V,Io=null);break;case"focusout":Io=Cf=yi=null;break;case"mousedown":kf=!0;break;case"contextmenu":case"mouseup":case"dragend":kf=!1,Hg(oe,o,te);break;case"selectionchange":if(fA)break;case"keydown":case"keyup":Hg(oe,o,te)}var Ee;if(bf)e:{switch(t){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else gi?Rg(t,o)&&(Re="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(Re="onCompositionStart");Re&&(kg&&o.locale!=="ko"&&(gi||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&gi&&(Ee=bg()):(Zr=te,mf="value"in Zr?Zr.value:Zr.textContent,gi=!0)),qe=du(V,Re),0<qe.length&&(Re=new Eg(Re,t,null,o,te),oe.push({event:Re,listeners:qe}),Ee?Re.data=Ee:(Ee=Ng(o),Ee!==null&&(Re.data=Ee)))),(Ee=tA?nA(t,o):rA(t,o))&&(Re=du(V,"onBeforeInput"),0<Re.length&&(qe=new Eg("onBeforeInput","beforeinput",null,o,te),oe.push({event:qe,listeners:Re}),qe.data=Ee)),YA(oe,t,V,o,te)}fx(oe,a)})}function dl(t,a,o){return{instance:t,listener:a,currentTarget:o}}function du(t,a){for(var o=a+"Capture",u=[];t!==null;){var p=t,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=_o(t,o),p!=null&&u.unshift(dl(t,p,v)),p=_o(t,a),p!=null&&u.push(dl(t,p,v))),t.tag===3)return u;t=t.return}return[]}function Hi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function hx(t,a,o,u,p){for(var v=a._reactName,C=[];o!==null&&o!==u;){var _=o,P=_.alternate,V=_.stateNode;if(_=_.tag,P!==null&&P===u)break;_!==5&&_!==26&&_!==27||V===null||(P=V,p?(V=_o(o,v),V!=null&&C.unshift(dl(o,V,P))):p||(V=_o(o,v),V!=null&&C.push(dl(o,V,P)))),o=o.return}C.length!==0&&t.push({event:a,listeners:C})}var ZA=/\r\n?/g,WA=/\u0000|\uFFFD/g;function px(t){return(typeof t=="string"?t:""+t).replace(ZA,`
|
|
50
|
+
`).replace(WA,"")}function mx(t,a){return a=px(a),px(t)===a}function hu(){}function lt(t,a,o,u,p,v){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||hi(t,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&hi(t,""+u);break;case"className":vs(t,"class",u);break;case"tabIndex":vs(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":vs(t,o,u);break;case"style":yg(t,u,v);break;case"data":if(a!=="object"){vs(t,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){t.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=ws(""+u),t.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(o==="formAction"?(a!=="input"&<(t,a,"name",p.name,p,null),lt(t,a,"formEncType",p.formEncType,p,null),lt(t,a,"formMethod",p.formMethod,p,null),lt(t,a,"formTarget",p.formTarget,p,null)):(lt(t,a,"encType",p.encType,p,null),lt(t,a,"method",p.method,p,null),lt(t,a,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=ws(""+u),t.setAttribute(o,u);break;case"onClick":u!=null&&(t.onclick=hu);break;case"onScroll":u!=null&&Ye("scroll",t);break;case"onScrollEnd":u!=null&&Ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}o=ws(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""+u):t.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":u===!0?t.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,u):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(o,u):t.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(o):t.setAttribute(o,u);break;case"popover":Ye("beforetoggle",t),Ye("toggle",t),ys(t,"popover",u);break;case"xlinkActuate":kr(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":kr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":kr(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":kr(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":kr(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":kr(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":kr(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":kr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":kr(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":ys(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=R2.get(o)||o,ys(t,o,u))}}function Kd(t,a,o,u,p,v){switch(o){case"style":yg(t,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof u=="string"?hi(t,u):(typeof u=="number"||typeof u=="bigint")&&hi(t,""+u);break;case"onScroll":u!=null&&Ye("scroll",t);break;case"onScrollEnd":u!=null&&Ye("scrollend",t);break;case"onClick":u!=null&&(t.onclick=hu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ci.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),a=o.slice(2,p?o.length-7:void 0),v=t[pt]||null,v=v!=null?v[o]:null,typeof v=="function"&&t.removeEventListener(a,v,p),typeof u=="function")){typeof v!="function"&&v!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(a,u,p);break e}o in t?t[o]=u:u===!0?t.setAttribute(o,""):ys(t,o,u)}}}function Qt(t,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",t),Ye("load",t);var u=!1,p=!1,v;for(v in o)if(o.hasOwnProperty(v)){var C=o[v];if(C!=null)switch(v){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:lt(t,a,v,C,o,null)}}p&<(t,a,"srcSet",o.srcSet,o,null),u&<(t,a,"src",o.src,o,null);return;case"input":Ye("invalid",t);var _=v=C=p=null,P=null,V=null;for(u in o)if(o.hasOwnProperty(u)){var te=o[u];if(te!=null)switch(u){case"name":p=te;break;case"type":C=te;break;case"checked":P=te;break;case"defaultChecked":V=te;break;case"value":v=te;break;case"defaultValue":_=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:lt(t,a,u,te,o,null)}}hg(t,v,_,P,V,C,p,!1),xs(t);return;case"select":Ye("invalid",t),u=C=v=null;for(p in o)if(o.hasOwnProperty(p)&&(_=o[p],_!=null))switch(p){case"value":v=_;break;case"defaultValue":C=_;break;case"multiple":u=_;default:lt(t,a,p,_,o,null)}a=v,o=C,t.multiple=!!u,a!=null?di(t,!!u,a,!1):o!=null&&di(t,!!u,o,!0);return;case"textarea":Ye("invalid",t),v=p=u=null;for(C in o)if(o.hasOwnProperty(C)&&(_=o[C],_!=null))switch(C){case"value":u=_;break;case"defaultValue":p=_;break;case"children":v=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(i(91));break;default:lt(t,a,C,_,o,null)}mg(t,u,p,v),xs(t);return;case"option":for(P in o)if(o.hasOwnProperty(P)&&(u=o[P],u!=null))switch(P){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:lt(t,a,P,u,o,null)}return;case"dialog":Ye("beforetoggle",t),Ye("toggle",t),Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":Ye("load",t);break;case"video":case"audio":for(u=0;u<fl.length;u++)Ye(fl[u],t);break;case"image":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"embed":case"source":case"link":Ye("error",t),Ye("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in o)if(o.hasOwnProperty(V)&&(u=o[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:lt(t,a,V,u,o,null)}return;default:if(cf(a)){for(te in o)o.hasOwnProperty(te)&&(u=o[te],u!==void 0&&Kd(t,a,te,u,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(u=o[_],u!=null&<(t,a,_,u,o,null))}function JA(t,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,C=null,_=null,P=null,V=null,te=null;for(Y in o){var oe=o[Y];if(o.hasOwnProperty(Y)&&oe!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":P=oe;default:u.hasOwnProperty(Y)||lt(t,a,Y,null,u,oe)}}for(var G in u){var Y=u[G];if(oe=o[G],u.hasOwnProperty(G)&&(Y!=null||oe!=null))switch(G){case"type":v=Y;break;case"name":p=Y;break;case"checked":V=Y;break;case"defaultChecked":te=Y;break;case"value":C=Y;break;case"defaultValue":_=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:Y!==oe&<(t,a,G,Y,u,oe)}}sf(t,C,_,P,V,te,v,p);return;case"select":Y=C=_=G=null;for(v in o)if(P=o[v],o.hasOwnProperty(v)&&P!=null)switch(v){case"value":break;case"multiple":Y=P;default:u.hasOwnProperty(v)||lt(t,a,v,null,u,P)}for(p in u)if(v=u[p],P=o[p],u.hasOwnProperty(p)&&(v!=null||P!=null))switch(p){case"value":G=v;break;case"defaultValue":_=v;break;case"multiple":C=v;default:v!==P&<(t,a,p,v,u,P)}a=_,o=C,u=Y,G!=null?di(t,!!o,G,!1):!!u!=!!o&&(a!=null?di(t,!!o,a,!0):di(t,!!o,o?[]:"",!1));return;case"textarea":Y=G=null;for(_ in o)if(p=o[_],o.hasOwnProperty(_)&&p!=null&&!u.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:lt(t,a,_,null,u,p)}for(C in u)if(p=u[C],v=o[C],u.hasOwnProperty(C)&&(p!=null||v!=null))switch(C){case"value":G=p;break;case"defaultValue":Y=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==v&<(t,a,C,p,u,v)}pg(t,G,Y);return;case"option":for(var _e in o)if(G=o[_e],o.hasOwnProperty(_e)&&G!=null&&!u.hasOwnProperty(_e))switch(_e){case"selected":t.selected=!1;break;default:lt(t,a,_e,null,u,G)}for(P in u)if(G=u[P],Y=o[P],u.hasOwnProperty(P)&&G!==Y&&(G!=null||Y!=null))switch(P){case"selected":t.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:lt(t,a,P,G,u,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in o)G=o[Te],o.hasOwnProperty(Te)&&G!=null&&!u.hasOwnProperty(Te)&<(t,a,Te,null,u,G);for(V in u)if(G=u[V],Y=o[V],u.hasOwnProperty(V)&&G!==Y&&(G!=null||Y!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(i(137,a));break;default:lt(t,a,V,G,u,Y)}return;default:if(cf(a)){for(var st in o)G=o[st],o.hasOwnProperty(st)&&G!==void 0&&!u.hasOwnProperty(st)&&Kd(t,a,st,void 0,u,G);for(te in u)G=u[te],Y=o[te],!u.hasOwnProperty(te)||G===Y||G===void 0&&Y===void 0||Kd(t,a,te,G,u,Y);return}}for(var U in o)G=o[U],o.hasOwnProperty(U)&&G!=null&&!u.hasOwnProperty(U)&<(t,a,U,null,u,G);for(oe in u)G=u[oe],Y=o[oe],!u.hasOwnProperty(oe)||G===Y||G==null&&Y==null||lt(t,a,oe,G,u,Y)}var Xd=null,Qd=null;function pu(t){return t.nodeType===9?t:t.ownerDocument}function gx(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yx(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Zd(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Wd=null;function eT(){var t=window.event;return t&&t.type==="popstate"?t===Wd?!1:(Wd=t,!0):(Wd=null,!1)}var vx=typeof setTimeout=="function"?setTimeout:void 0,tT=typeof clearTimeout=="function"?clearTimeout:void 0,xx=typeof Promise=="function"?Promise:void 0,nT=typeof queueMicrotask=="function"?queueMicrotask:typeof xx<"u"?function(t){return xx.resolve(null).then(t).catch(rT)}:vx;function rT(t){setTimeout(function(){throw t})}function ha(t){return t==="head"}function bx(t,a){var o=a,u=0,p=0;do{var v=o.nextSibling;if(t.removeChild(o),v&&v.nodeType===8)if(o=v.data,o==="/$"){if(0<u&&8>u){o=u;var C=t.ownerDocument;if(o&1&&hl(C.documentElement),o&2&&hl(C.body),o&4)for(o=C.head,hl(o),C=o.firstChild;C;){var _=C.nextSibling,P=C.nodeName;C[Yt]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&C.rel.toLowerCase()==="stylesheet"||o.removeChild(C),C=_}}if(p===0){t.removeChild(v),wl(a);return}p--}else o==="$"||o==="$?"||o==="$!"?p++:u=o.charCodeAt(0)-48;else u=0;o=v}while(o);wl(a)}function Jd(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Jd(o),ln(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function aT(t,a,o,u){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Yt])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(v=t.getAttribute("rel"),v==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(v!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(v=t.getAttribute("src"),(v!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===v)return t}else return t;if(t=Jn(t.nextSibling),t===null)break}return null}function iT(t,a,o){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=Jn(t.nextSibling),t===null))return null;return t}function eh(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function oT(t,a){var o=t.ownerDocument;if(t.data!=="$?"||o.readyState==="complete")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Jn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var th=null;function wx(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return t;a--}else o==="/$"&&a++}t=t.previousSibling}return null}function Sx(t,a,o){switch(a=pu(o),t){case"html":if(t=a.documentElement,!t)throw Error(i(452));return t;case"head":if(t=a.head,!t)throw Error(i(453));return t;case"body":if(t=a.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function hl(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ln(t)}var Un=new Map,Ex=new Set;function mu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Br=X.d;X.d={f:lT,r:sT,D:uT,C:cT,L:fT,m:dT,X:pT,S:hT,M:mT};function lT(){var t=Br.f(),a=ou();return t||a}function sT(t){var a=Qn(t);a!==null&&a.tag===5&&a.type==="form"?qy(a):Br.r(t)}var Fi=typeof document>"u"?null:document;function Cx(t,a,o){var u=Fi;if(u&&typeof a=="string"&&a){var p=Dn(a);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),Ex.has(p)||(Ex.add(p),t={rel:t,crossOrigin:o,href:a},u.querySelector(p)===null&&(a=u.createElement("link"),Qt(a,"link",t),Qe(a),u.head.appendChild(a)))}}function uT(t){Br.D(t),Cx("dns-prefetch",t,null)}function cT(t,a){Br.C(t,a),Cx("preconnect",t,a)}function fT(t,a,o){Br.L(t,a,o);var u=Fi;if(u&&t&&a){var p='link[rel="preload"][as="'+Dn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Dn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Dn(o.imageSizes)+'"]')):p+='[href="'+Dn(t)+'"]';var v=p;switch(a){case"style":v=qi(t);break;case"script":v=Vi(t)}Un.has(v)||(t=m({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:t,as:a},o),Un.set(v,t),u.querySelector(p)!==null||a==="style"&&u.querySelector(pl(v))||a==="script"&&u.querySelector(ml(v))||(a=u.createElement("link"),Qt(a,"link",t),Qe(a),u.head.appendChild(a)))}}function dT(t,a){Br.m(t,a);var o=Fi;if(o&&t){var u=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+Dn(u)+'"][href="'+Dn(t)+'"]',v=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Vi(t)}if(!Un.has(v)&&(t=m({rel:"modulepreload",href:t},a),Un.set(v,t),o.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(ml(v)))return}u=o.createElement("link"),Qt(u,"link",t),Qe(u),o.head.appendChild(u)}}}function hT(t,a,o){Br.S(t,a,o);var u=Fi;if(u&&t){var p=mt(u).hoistableStyles,v=qi(t);a=a||"default";var C=p.get(v);if(!C){var _={loading:0,preload:null};if(C=u.querySelector(pl(v)))_.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":a},o),(o=Un.get(v))&&nh(t,o);var P=C=u.createElement("link");Qe(P),Qt(P,"link",t),P._p=new Promise(function(V,te){P.onload=V,P.onerror=te}),P.addEventListener("load",function(){_.loading|=1}),P.addEventListener("error",function(){_.loading|=2}),_.loading|=4,gu(C,a,u)}C={type:"stylesheet",instance:C,count:1,state:_},p.set(v,C)}}}function pT(t,a){Br.X(t,a);var o=Fi;if(o&&t){var u=mt(o).hoistableScripts,p=Vi(t),v=u.get(p);v||(v=o.querySelector(ml(p)),v||(t=m({src:t,async:!0},a),(a=Un.get(p))&&rh(t,a),v=o.createElement("script"),Qe(v),Qt(v,"link",t),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function mT(t,a){Br.M(t,a);var o=Fi;if(o&&t){var u=mt(o).hoistableScripts,p=Vi(t),v=u.get(p);v||(v=o.querySelector(ml(p)),v||(t=m({src:t,async:!0,type:"module"},a),(a=Un.get(p))&&rh(t,a),v=o.createElement("script"),Qe(v),Qt(v,"link",t),o.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function kx(t,a,o,u){var p=(p=me.current)?mu(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=qi(o.href),o=mt(p).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=qi(o.href);var v=mt(p).hoistableStyles,C=v.get(t);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(t,C),(v=p.querySelector(pl(t)))&&!v._p&&(C.instance=v,C.state.loading=5),Un.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Un.set(t,o),v||gT(p,t,o,C.state))),a&&u===null)throw Error(i(528,""));return C}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Vi(o),o=mt(p).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function qi(t){return'href="'+Dn(t)+'"'}function pl(t){return'link[rel="stylesheet"]['+t+"]"}function Ax(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function gT(t,a,o,u){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=t.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Qt(a,"link",o),Qe(a),t.head.appendChild(a))}function Vi(t){return'[src="'+Dn(t)+'"]'}function ml(t){return"script[async]"+t}function Tx(t,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=t.querySelector('style[data-href~="'+Dn(o.href)+'"]');if(u)return a.instance=u,Qe(u),u;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Qe(u),Qt(u,"style",p),gu(u,o.precedence,t),a.instance=u;case"stylesheet":p=qi(o.href);var v=t.querySelector(pl(p));if(v)return a.state.loading|=4,a.instance=v,Qe(v),v;u=Ax(o),(p=Un.get(p))&&nh(u,p),v=(t.ownerDocument||t).createElement("link"),Qe(v);var C=v;return C._p=new Promise(function(_,P){C.onload=_,C.onerror=P}),Qt(v,"link",u),a.state.loading|=4,gu(v,o.precedence,t),a.instance=v;case"script":return v=Vi(o.src),(p=t.querySelector(ml(v)))?(a.instance=p,Qe(p),p):(u=o,(p=Un.get(v))&&(u=m({},o),rh(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),Qe(p),Qt(p,"link",u),t.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,gu(u,o.precedence,t));return a.instance}function gu(t,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,v=p,C=0;C<u.length;C++){var _=u[C];if(_.dataset.precedence===a)v=_;else if(v!==p)break}v?v.parentNode.insertBefore(t,v.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(t,a.firstChild))}function nh(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function rh(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var yu=null;function Rx(t,a,o){if(yu===null){var u=new Map,p=yu=new Map;p.set(o,u)}else p=yu,u=p.get(o),u||(u=new Map,p.set(o,u));if(u.has(t))return u;for(u.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var v=o[p];if(!(v[Yt]||v[$e]||t==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var C=v.getAttribute(a)||"";C=t+C;var _=u.get(C);_?_.push(v):u.set(C,[v])}}return u}function Nx(t,a,o){t=t.ownerDocument||t,t.head.insertBefore(o,a==="title"?t.querySelector("head > title"):null)}function yT(t,a,o){if(o===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function _x(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var gl=null;function vT(){}function xT(t,a,o){if(gl===null)throw Error(i(475));var u=gl;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=qi(o.href),v=t.querySelector(pl(p));if(v){t=v._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=vu.bind(u),t.then(u,u)),a.state.loading|=4,a.instance=v,Qe(v);return}v=t.ownerDocument||t,o=Ax(o),(p=Un.get(p))&&nh(o,p),v=v.createElement("link"),Qe(v);var C=v;C._p=new Promise(function(_,P){C.onload=_,C.onerror=P}),Qt(v,"link",o),a.instance=v}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(u.count++,a=vu.bind(u),t.addEventListener("load",a),t.addEventListener("error",a))}}function bT(){if(gl===null)throw Error(i(475));var t=gl;return t.stylesheets&&t.count===0&&ah(t,t.stylesheets),0<t.count?function(a){var o=setTimeout(function(){if(t.stylesheets&&ah(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(o)}}:null}function vu(){if(this.count--,this.count===0){if(this.stylesheets)ah(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var xu=null;function ah(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,xu=new Map,a.forEach(wT,t),xu=null,vu.call(t))}function wT(t,a){if(!(a.state.loading&4)){var o=xu.get(t);if(o)var u=o.get(null);else{o=new Map,xu.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var C=p[v];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(o.set(C.dataset.precedence,C),u=C)}u&&o.set(null,u)}p=a.instance,C=p.getAttribute("data-precedence"),v=o.get(C)||u,v===u&&o.set(null,p),o.set(C,p),this.count++,u=vu.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),v?v.parentNode.insertBefore(p,v.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),a.state.loading|=4}}var yl={$$typeof:R,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function ST(t,a,o,u,p,v,C,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ye(0),this.hiddenUpdates=ye(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Mx(t,a,o,u,p,v,C,_,P,V,te,oe){return t=new ST(t,a,o,C,_,P,V,oe),a=1,v===!0&&(a|=24),v=Sn(3,null,null,a),t.current=v,v.stateNode=t,a=Bf(),a.refCount++,t.pooledCache=a,a.refCount++,v.memoizedState={element:u,isDehydrated:o,cache:a},qf(v),t}function jx(t){return t?(t=wi,t):wi}function Dx(t,a,o,u,p,v){p=jx(p),u.context===null?u.context=p:u.pendingContext=p,u=ea(a),u.payload={element:o},v=v===void 0?null:v,v!==null&&(u.callback=v),o=ta(t,u,a),o!==null&&(Tn(o,t,a),Yo(o,t,a))}function Ox(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<a?o:a}}function ih(t,a){Ox(t,a),(t=t.alternate)&&Ox(t,a)}function Px(t){if(t.tag===13){var a=bi(t,67108864);a!==null&&Tn(a,t,67108864),ih(t,67108864)}}var bu=!0;function ET(t,a,o,u){var p=z.T;z.T=null;var v=X.p;try{X.p=2,oh(t,a,o,u)}finally{X.p=v,z.T=p}}function CT(t,a,o,u){var p=z.T;z.T=null;var v=X.p;try{X.p=8,oh(t,a,o,u)}finally{X.p=v,z.T=p}}function oh(t,a,o,u){if(bu){var p=lh(u);if(p===null)Yd(t,a,u,wu,o),zx(t,u);else if(AT(p,t,a,o,u))u.stopPropagation();else if(zx(t,u),a&4&&-1<kT.indexOf(t)){for(;p!==null;){var v=Qn(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var C=$t(v.pendingLanes);if(C!==0){var _=v;for(_.pendingLanes|=2,_.entangledLanes|=2;C;){var P=1<<31-Ae(C);_.entanglements[1]|=P,C&=~P}dr(v),(rt&6)===0&&(au=xt()+500,cl(0))}}break;case 13:_=bi(v,2),_!==null&&Tn(_,v,2),ou(),ih(v,2)}if(v=lh(u),v===null&&Yd(t,a,u,wu,o),v===p)break;p=v}p!==null&&u.stopPropagation()}else Yd(t,a,u,null,o)}}function lh(t){return t=df(t),sh(t)}var wu=null;function sh(t){if(wu=null,t=it(t),t!==null){var a=s(t);if(a===null)t=null;else{var o=a.tag;if(o===13){if(t=c(a),t!==null)return t;t=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return wu=t,null}function Lx(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ao()){case Ma:return 2;case Kr:return 8;case Sr:case si:return 32;case Er:return 268435456;default:return 32}default:return 32}}var uh=!1,pa=null,ma=null,ga=null,vl=new Map,xl=new Map,ya=[],kT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function zx(t,a){switch(t){case"focusin":case"focusout":pa=null;break;case"dragenter":case"dragleave":ma=null;break;case"mouseover":case"mouseout":ga=null;break;case"pointerover":case"pointerout":vl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":xl.delete(a.pointerId)}}function bl(t,a,o,u,p,v){return t===null||t.nativeEvent!==v?(t={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},a!==null&&(a=Qn(a),a!==null&&Px(a)),t):(t.eventSystemFlags|=u,a=t.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),t)}function AT(t,a,o,u,p){switch(a){case"focusin":return pa=bl(pa,t,a,o,u,p),!0;case"dragenter":return ma=bl(ma,t,a,o,u,p),!0;case"mouseover":return ga=bl(ga,t,a,o,u,p),!0;case"pointerover":var v=p.pointerId;return vl.set(v,bl(vl.get(v)||null,t,a,o,u,p)),!0;case"gotpointercapture":return v=p.pointerId,xl.set(v,bl(xl.get(v)||null,t,a,o,u,p)),!0}return!1}function Ix(t){var a=it(t.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){t.blockedOn=a,Xn(t.priority,function(){if(o.tag===13){var u=An();u=wt(u);var p=bi(o,u);p!==null&&Tn(p,o,u),ih(o,u)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Su(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var o=lh(t.nativeEvent);if(o===null){o=t.nativeEvent;var u=new o.constructor(o.type,o);ff=u,o.target.dispatchEvent(u),ff=null}else return a=Qn(o),a!==null&&Px(a),t.blockedOn=o,!1;a.shift()}return!0}function Bx(t,a,o){Su(t)&&o.delete(a)}function TT(){uh=!1,pa!==null&&Su(pa)&&(pa=null),ma!==null&&Su(ma)&&(ma=null),ga!==null&&Su(ga)&&(ga=null),vl.forEach(Bx),xl.forEach(Bx)}function Eu(t,a){t.blockedOn===a&&(t.blockedOn=null,uh||(uh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,TT)))}var Cu=null;function Ux(t){Cu!==t&&(Cu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cu===t&&(Cu=null);for(var a=0;a<t.length;a+=3){var o=t[a],u=t[a+1],p=t[a+2];if(typeof u!="function"){if(sh(u||o)===null)continue;break}var v=Qn(o);v!==null&&(t.splice(a,3),a-=3,sd(v,{pending:!0,data:p,method:o.method,action:u},u,p))}}))}function wl(t){function a(P){return Eu(P,t)}pa!==null&&Eu(pa,t),ma!==null&&Eu(ma,t),ga!==null&&Eu(ga,t),vl.forEach(a),xl.forEach(a);for(var o=0;o<ya.length;o++){var u=ya[o];u.blockedOn===t&&(u.blockedOn=null)}for(;0<ya.length&&(o=ya[0],o.blockedOn===null);)Ix(o),o.blockedOn===null&&ya.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var p=o[u],v=o[u+1],C=p[pt]||null;if(typeof v=="function")C||Ux(o);else if(C){var _=null;if(v&&v.hasAttribute("formAction")){if(p=v,C=v[pt]||null)_=C.formAction;else if(sh(p)!==null)continue}else _=C.action;typeof _=="function"?o[u+1]=_:(o.splice(u,3),u-=3),Ux(o)}}}function ch(t){this._internalRoot=t}ku.prototype.render=ch.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,u=An();Dx(o,u,t,a,null,null)},ku.prototype.unmount=ch.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Dx(t.current,2,null,t,null,null),ou(),a[Lt]=null}};function ku(t){this._internalRoot=t}ku.prototype.unstable_scheduleHydration=function(t){if(t){var a=Gt();t={blockedOn:null,target:t,priority:a};for(var o=0;o<ya.length&&a!==0&&a<ya[o].priority;o++);ya.splice(o,0,t),o===0&&Ix(t)}};var Hx=n.version;if(Hx!=="19.1.1")throw Error(i(527,Hx,"19.1.1"));X.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=d(a),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var RT={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{ee=Au.inject(RT),fe=Au}catch{}}return El.createRoot=function(t,a){if(!l(t))throw Error(i(299));var o=!1,u="",p=rv,v=av,C=iv,_=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(_=a.unstable_transitionCallbacks)),a=Mx(t,1,!1,null,null,o,u,p,v,C,_,null),t[Lt]=a.current,Gd(t),new ch(a)},El.hydrateRoot=function(t,a,o){if(!l(t))throw Error(i(299));var u=!1,p="",v=rv,C=av,_=iv,P=null,V=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(C=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(P=o.unstable_transitionCallbacks),o.formState!==void 0&&(V=o.formState)),a=Mx(t,1,!0,a,o??null,u,p,v,C,_,P,V),a.context=jx(null),o=a.current,u=An(),u=wt(u),p=ea(u),p.callback=null,ta(o,p,u),o=u,a.current.lanes=o,ve(a,o),dr(a),t[Lt]=a.current,Gd(t),new ku(a)},El.version="19.1.1",El}var Zx;function IT(){if(Zx)return hh.exports;Zx=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),hh.exports=zT(),hh.exports}var BT=IT();const UT="modulepreload",HT=function(e){return"/"+e},Wx={},Xe=function(n,r,i){let l=Promise.resolve();if(r&&r.length>0){let d=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");l=d(r.map(h=>{if(h=HT(h),h in Wx)return;Wx[h]=!0;const m=h.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${y}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":UT,m||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),m)return new Promise((w,S)=>{b.addEventListener("load",w),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return l.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return n().catch(s)})};/**
|
|
51
|
+
* react-router v7.8.2
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var Jx="popstate";function FT(e={}){function n(i,l){let{pathname:s,search:c,hash:f}=i.location;return Jh("",{pathname:s,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(i,l){return typeof l=="string"?l:Il(l)}return VT(n,r,null,e)}function vt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function qn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function qT(){return Math.random().toString(36).substring(2,10)}function eb(e,n){return{usr:e.state,key:e.key,idx:n}}function Jh(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?fo(n):n,state:r,key:n&&n.key||i||qT()}}function Il({pathname:e="/",search:n="",hash:r=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function fo(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(n.search=e.substring(i),e=e.substring(0,i)),e&&(n.pathname=e)}return n}function VT(e,n,r,i={}){let{window:l=document.defaultView,v5Compat:s=!1}=i,c=l.history,f="POP",d=null,h=m();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let A=m(),T=A==null?null:A-h;h=A,d&&d({action:f,location:E.location,delta:T})}function b(A,T){f="PUSH";let N=Jh(E.location,A,T);h=m()+1;let R=eb(N,h),O=E.createHref(N);try{c.pushState(R,"",O)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;l.location.assign(O)}s&&d&&d({action:f,location:E.location,delta:1})}function w(A,T){f="REPLACE";let N=Jh(E.location,A,T);h=m();let R=eb(N,h),O=E.createHref(N);c.replaceState(R,"",O),s&&d&&d({action:f,location:E.location,delta:0})}function S(A){return $T(A)}let E={get action(){return f},get location(){return e(l,c)},listen(A){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(Jx,y),d=A,()=>{l.removeEventListener(Jx,y),d=null}},createHref(A){return n(l,A)},createURL:S,encodeLocation(A){let T=S(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:w,go(A){return c.go(A)}};return E}function $T(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),vt(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Il(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function G0(e,n,r="/"){return GT(e,n,r,!1)}function GT(e,n,r,i){let l=typeof n=="string"?fo(n):n,s=qr(l.pathname||"/",r);if(s==null)return null;let c=Y0(e);YT(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=aR(s);f=nR(c[d],h,i)}return f}function Y0(e,n=[],r=[],i="",l=!1){let s=(c,f,d=l,h)=>{let m={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&d)return;vt(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length)}let y=Fr([i,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(vt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Y0(c.children,n,b,y,d)),!(c.path==null&&!c.index)&&n.push({path:y,score:eR(y,c.index),routesMeta:b})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let d of K0(c.path))s(c,f,!0,d)}),n}function K0(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,l=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return l?[s,""]:[s];let c=K0(i.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),l&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function YT(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:tR(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var KT=/^:[\w-]+$/,XT=3,QT=2,ZT=1,WT=10,JT=-2,tb=e=>e==="*";function eR(e,n){let r=e.split("/"),i=r.length;return r.some(tb)&&(i+=JT),n&&(i+=QT),r.filter(l=>!tb(l)).reduce((l,s)=>l+(KT.test(s)?XT:s===""?ZT:WT),i)}function tR(e,n){return e.length===n.length&&e.slice(0,-1).every((i,l)=>i===n[l])?e[e.length-1]-n[n.length-1]:0}function nR(e,n,r=!1){let{routesMeta:i}=e,l={},s="/",c=[];for(let f=0;f<i.length;++f){let d=i[f],h=f===i.length-1,m=s==="/"?n:n.slice(s.length)||"/",y=tc({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},m),b=d.route;if(!y&&h&&r&&!i[i.length-1].route.index&&(y=tc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!y)return null;Object.assign(l,y.params),c.push({params:l,pathname:Fr([s,y.pathname]),pathnameBase:sR(Fr([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=Fr([s,y.pathnameBase]))}return c}function tc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=rR(e.path,e.caseSensitive,e.end),l=n.match(r);if(!l)return null;let s=l[0],c=s.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:i.reduce((h,{paramName:m,isOptional:y},b)=>{if(m==="*"){let S=f[b]||"";c=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const w=f[b];return y&&!w?h[m]=void 0:h[m]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function rR(e,n=!1,r=!0){qn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(i.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),i]}function aR(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return qn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function qr(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function iR(e,n="/"){let{pathname:r,search:i="",hash:l=""}=typeof e=="string"?fo(e):e;return{pathname:r?r.startsWith("/")?r:oR(r,n):n,search:uR(i),hash:cR(l)}}function oR(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function yh(e,n,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lR(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function $p(e){let n=lR(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function Gp(e,n,r,i=!1){let l;typeof e=="string"?l=fo(e):(l={...e},vt(!l.pathname||!l.pathname.includes("?"),yh("?","pathname","search",l)),vt(!l.pathname||!l.pathname.includes("#"),yh("#","pathname","hash",l)),vt(!l.search||!l.search.includes("#"),yh("#","search","hash",l)));let s=e===""||l.pathname==="",c=s?"/":l.pathname,f;if(c==null)f=r;else{let y=n.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}f=y>=0?n[y]:"/"}let d=iR(l,f),h=c&&c!=="/"&&c.endsWith("/"),m=(s||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||m)&&(d.pathname+="/"),d}var Fr=e=>e.join("/").replace(/\/\/+/g,"/"),sR=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uR=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function fR(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var X0=["POST","PUT","PATCH","DELETE"];new Set(X0);var dR=["GET",...X0];new Set(dR);var ho=x.createContext(null);ho.displayName="DataRouter";var xc=x.createContext(null);xc.displayName="DataRouterState";x.createContext(!1);var Q0=x.createContext({isTransitioning:!1});Q0.displayName="ViewTransition";var hR=x.createContext(new Map);hR.displayName="Fetchers";var pR=x.createContext(null);pR.displayName="Await";var ir=x.createContext(null);ir.displayName="Navigation";var Ql=x.createContext(null);Ql.displayName="Location";var Vn=x.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var Yp=x.createContext(null);Yp.displayName="RouteError";function mR(e,{relative:n}={}){vt(po(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=x.useContext(ir),{hash:l,pathname:s,search:c}=Zl(e,{relative:n}),f=s;return r!=="/"&&(f=s==="/"?r:Fr([r,s])),i.createHref({pathname:f,search:c,hash:l})}function po(){return x.useContext(Ql)!=null}function $n(){return vt(po(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Ql).location}var Z0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function W0(e){x.useContext(ir).static||x.useLayoutEffect(e)}function bc(){let{isDataRoute:e}=x.useContext(Vn);return e?_R():gR()}function gR(){vt(po(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(ho),{basename:n,navigator:r}=x.useContext(ir),{matches:i}=x.useContext(Vn),{pathname:l}=$n(),s=JSON.stringify($p(i)),c=x.useRef(!1);return W0(()=>{c.current=!0}),x.useCallback((d,h={})=>{if(qn(c.current,Z0),!c.current)return;if(typeof d=="number"){r.go(d);return}let m=Gp(d,JSON.parse(s),l,h.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:Fr([n,m.pathname])),(h.replace?r.replace:r.push)(m,h.state,h)},[n,r,s,l,e])}var yR=x.createContext(null);function vR(e){let n=x.useContext(Vn).outlet;return n&&x.createElement(yR.Provider,{value:e},n)}function UU(){let{matches:e}=x.useContext(Vn),n=e[e.length-1];return n?n.params:{}}function Zl(e,{relative:n}={}){let{matches:r}=x.useContext(Vn),{pathname:i}=$n(),l=JSON.stringify($p(r));return x.useMemo(()=>Gp(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function xR(e,n){return J0(e,n)}function J0(e,n,r,i,l){vt(po(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(ir),{matches:c}=x.useContext(Vn),f=c[c.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let N=y&&y.path||"";ew(h,!y||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=$n(),w;if(n){let N=typeof n=="string"?fo(n):n;vt(m==="/"||N.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),w=N}else w=b;let S=w.pathname||"/",E=S;if(m!=="/"){let N=m.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=G0(e,{pathname:E});qn(y||A!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),qn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=CR(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},d,N.params),pathname:Fr([m,s.encodeLocation?s.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:Fr([m,s.encodeLocation?s.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),c,r,i,l);return n&&T?x.createElement(Ql.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},T):T}function bR(){let e=NR(),n=fR(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:s},"ErrorBoundary")," or"," ",x.createElement("code",{style:s},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},n),r?x.createElement("pre",{style:l},r):null,c)}var wR=x.createElement(bR,null),SR=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.unstable_onError?this.props.unstable_onError(e,n):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?x.createElement(Vn.Provider,{value:this.props.routeContext},x.createElement(Yp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ER({routeContext:e,match:n,children:r}){let i=x.useContext(ho);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Vn.Provider,{value:e},r)}function CR(e,n=[],r=null,i=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(n.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r?.errors;if(c!=null){let h=s.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);vt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,d=-1;if(r)for(let h=0;h<s.length;h++){let m=s[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=h),m.route.id){let{loaderData:y,errors:b}=r,w=m.route.loader&&!y.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||w){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((h,m,y)=>{let b,w=!1,S=null,E=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,S=m.route.errorElement||wR,f&&(d<0&&y===0?(ew("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):d===y&&(w=!0,E=m.route.hydrateFallbackElement||null)));let A=n.concat(s.slice(0,y+1)),T=()=>{let N;return b?N=S:w?N=E:m.route.Component?N=x.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=h,x.createElement(ER,{match:m,routeContext:{outlet:h,matches:A,isDataRoute:r!=null},children:N})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?x.createElement(SR,{location:r.location,revalidation:r.revalidation,component:S,error:b,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0},unstable_onError:i}):T()},null)}function Kp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kR(e){let n=x.useContext(ho);return vt(n,Kp(e)),n}function AR(e){let n=x.useContext(xc);return vt(n,Kp(e)),n}function TR(e){let n=x.useContext(Vn);return vt(n,Kp(e)),n}function Xp(e){let n=TR(e),r=n.matches[n.matches.length-1];return vt(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function RR(){return Xp("useRouteId")}function NR(){let e=x.useContext(Yp),n=AR("useRouteError"),r=Xp("useRouteError");return e!==void 0?e:n.errors?.[r]}function _R(){let{router:e}=kR("useNavigate"),n=Xp("useNavigate"),r=x.useRef(!1);return W0(()=>{r.current=!0}),x.useCallback(async(l,s={})=>{qn(r.current,Z0),r.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:n,...s}))},[e,n])}var nb={};function ew(e,n,r){!n&&!nb[e]&&(nb[e]=!0,qn(!1,r))}x.memo(MR);function MR({routes:e,future:n,state:r,unstable_onError:i}){return J0(e,void 0,r,i,n)}function jR({to:e,replace:n,state:r,relative:i}){vt(po(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=x.useContext(ir);qn(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=x.useContext(Vn),{pathname:c}=$n(),f=bc(),d=Gp(e,$p(s),c,i==="path"),h=JSON.stringify(d);return x.useEffect(()=>{f(JSON.parse(h),{replace:n,state:r,relative:i})},[f,h,i,n,r]),null}function tw(e){return vR(e.context)}function ze(e){vt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function DR({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:l,static:s=!1}){vt(!po(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=x.useMemo(()=>({basename:c,navigator:l,static:s,future:{}}),[c,l,s]);typeof r=="string"&&(r=fo(r));let{pathname:d="/",search:h="",hash:m="",state:y=null,key:b="default"}=r,w=x.useMemo(()=>{let S=qr(d,c);return S==null?null:{location:{pathname:S,search:h,hash:m,state:y,key:b},navigationType:i}},[c,d,h,m,y,b,i]);return qn(w!=null,`<Router basename="${c}"> is not able to match the URL "${d}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:x.createElement(ir.Provider,{value:f},x.createElement(Ql.Provider,{children:n,value:w}))}function OR({children:e,location:n}){return xR(ep(e),n)}function ep(e,n=[]){let r=[];return x.Children.forEach(e,(i,l)=>{if(!x.isValidElement(i))return;let s=[...n,l];if(i.type===x.Fragment){r.push.apply(r,ep(i.props.children,s));return}vt(i.type===ze,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),vt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=ep(i.props.children,s)),r.push(c)}),r}var Fu="get",qu="application/x-www-form-urlencoded";function wc(e){return e!=null&&typeof e.tagName=="string"}function PR(e){return wc(e)&&e.tagName.toLowerCase()==="button"}function LR(e){return wc(e)&&e.tagName.toLowerCase()==="form"}function zR(e){return wc(e)&&e.tagName.toLowerCase()==="input"}function IR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function BR(e,n){return e.button===0&&(!n||n==="_self")&&!IR(e)}function tp(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,r)=>{let i=e[r];return n.concat(Array.isArray(i)?i.map(l=>[r,l]):[[r,i]])},[]))}function UR(e,n){let r=tp(e);return n&&n.forEach((i,l)=>{r.has(l)||n.getAll(l).forEach(s=>{r.append(l,s)})}),r}var Tu=null;function HR(){if(Tu===null)try{new FormData(document.createElement("form"),0),Tu=!1}catch{Tu=!0}return Tu}var FR=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vh(e){return e!=null&&!FR.has(e)?(qn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qu}"`),null):e}function qR(e,n){let r,i,l,s,c;if(LR(e)){let f=e.getAttribute("action");i=f?qr(f,n):null,r=e.getAttribute("method")||Fu,l=vh(e.getAttribute("enctype"))||qu,s=new FormData(e)}else if(PR(e)||zR(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?qr(d,n):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Fu,l=vh(e.getAttribute("formenctype"))||vh(f.getAttribute("enctype"))||qu,s=new FormData(f,e),!HR()){let{name:h,type:m,value:y}=e;if(m==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,y)}}else{if(wc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Fu,i=null,l=qu,c=e}return s&&l==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:l,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Qp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function VR(e,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:n&&qr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function $R(e,n){if(e.id in n)return n[e.id];try{let r=await import(e.module);return n[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GR(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function YR(e,n,r){let i=await Promise.all(e.map(async l=>{let s=n.routes[l.route.id];if(s){let c=await $R(s,r);return c.links?c.links():[]}return[]}));return ZR(i.flat(1).filter(GR).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function rb(e,n,r,i,l,s){let c=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>r[h].pathname!==d.pathname||r[h].route.path?.endsWith("*")&&r[h].params["*"]!==d.params["*"];return s==="assets"?n.filter((d,h)=>c(d,h)||f(d,h)):s==="data"?n.filter((d,h)=>{let m=i.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function KR(e,n,{includeHydrateFallback:r}={}){return XR(e.map(i=>{let l=n.routes[i.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function XR(e){return[...new Set(e)]}function QR(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function ZR(e,n){let r=new Set;return new Set(n),e.reduce((i,l)=>{let s=JSON.stringify(QR(l));return r.has(s)||(r.add(s),i.push({key:s,link:l})),i},[])}function nw(){let e=x.useContext(ho);return Qp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function WR(){let e=x.useContext(xc);return Qp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zp=x.createContext(void 0);Zp.displayName="FrameworkContext";function rw(){let e=x.useContext(Zp);return Qp(e,"You must render this element inside a <HydratedRouter> element"),e}function JR(e,n){let r=x.useContext(Zp),[i,l]=x.useState(!1),[s,c]=x.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:m,onTouchStart:y}=n,b=x.useRef(null);x.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let E=T=>{T.forEach(N=>{c(N.isIntersecting)})},A=new IntersectionObserver(E,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),x.useEffect(()=>{if(i){let E=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(E)}}},[i]);let w=()=>{l(!0)},S=()=>{l(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Cl(f,w),onBlur:Cl(d,S),onMouseEnter:Cl(h,w),onMouseLeave:Cl(m,S),onTouchStart:Cl(y,w)}]:[!1,b,{}]}function Cl(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function eN({page:e,...n}){let{router:r}=nw(),i=x.useMemo(()=>G0(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?x.createElement(nN,{page:e,matches:i,...n}):null}function tN(e){let{manifest:n,routeModules:r}=rw(),[i,l]=x.useState([]);return x.useEffect(()=>{let s=!1;return YR(e,n,r).then(c=>{s||l(c)}),()=>{s=!0}},[e,n,r]),i}function nN({page:e,matches:n,...r}){let i=$n(),{manifest:l,routeModules:s}=rw(),{basename:c}=nw(),{loaderData:f,matches:d}=WR(),h=x.useMemo(()=>rb(e,n,d,l,i,"data"),[e,n,d,l,i]),m=x.useMemo(()=>rb(e,n,d,l,i,"assets"),[e,n,d,l,i]),y=x.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let S=new Set,E=!1;if(n.forEach(T=>{let N=l.routes[T.route.id];!N||!N.hasLoader||(!h.some(R=>R.route.id===T.route.id)&&T.route.id in f&&s[T.route.id]?.shouldRevalidate||N.hasClientLoader?E=!0:S.add(T.route.id))}),S.size===0)return[];let A=VR(e,c,"data");return E&&S.size>0&&A.searchParams.set("_routes",n.filter(T=>S.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[c,f,i,l,h,n,e,s]),b=x.useMemo(()=>KR(m,l),[m,l]),w=tN(m);return x.createElement(x.Fragment,null,y.map(S=>x.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),b.map(S=>x.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),w.map(({key:S,link:E})=>x.createElement("link",{key:S,nonce:r.nonce,...E})))}function rN(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var aw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aw&&(window.__reactRouterVersion="7.8.2")}catch{}function aN({basename:e,children:n,window:r}){let i=x.useRef();i.current==null&&(i.current=FT({window:r,v5Compat:!0}));let l=i.current,[s,c]=x.useState({action:l.action,location:l.location}),f=x.useCallback(d=>{x.startTransition(()=>c(d))},[c]);return x.useLayoutEffect(()=>l.listen(f),[l,f]),x.createElement(DR,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:l})}var iw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hr=x.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:l,reloadDocument:s,replace:c,state:f,target:d,to:h,preventScrollReset:m,viewTransition:y,...b},w){let{basename:S}=x.useContext(ir),E=typeof h=="string"&&iw.test(h),A,T=!1;if(typeof h=="string"&&E&&(A=h,aw))try{let Z=new URL(window.location.href),L=h.startsWith("//")?new URL(Z.protocol+h):new URL(h),W=qr(L.pathname,S);L.origin===Z.origin&&W!=null?h=W+L.search+L.hash:T=!0}catch{qn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=mR(h,{relative:l}),[R,O,D]=JR(i,b),j=sN(h,{replace:c,state:f,target:d,preventScrollReset:m,relative:l,viewTransition:y});function B(Z){n&&n(Z),Z.defaultPrevented||j(Z)}let F=x.createElement("a",{...b,...D,href:A||N,onClick:T||s?n:B,ref:rN(w,O),target:d,"data-discover":!E&&r==="render"?"true":void 0});return R&&!E?x.createElement(x.Fragment,null,F,x.createElement(eN,{page:N})):F});Hr.displayName="Link";var iN=x.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:l=!1,style:s,to:c,viewTransition:f,children:d,...h},m){let y=Zl(c,{relative:h.relative}),b=$n(),w=x.useContext(xc),{navigator:S,basename:E}=x.useContext(ir),A=w!=null&&hN(y)&&f===!0,T=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,N=b.pathname,R=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(N=N.toLowerCase(),R=R?R.toLowerCase():null,T=T.toLowerCase()),R&&E&&(R=qr(R,E)||R);const O=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let D=N===T||!l&&N.startsWith(T)&&N.charAt(O)==="/",j=R!=null&&(R===T||!l&&R.startsWith(T)&&R.charAt(T.length)==="/"),B={isActive:D,isPending:j,isTransitioning:A},F=D?n:void 0,Z;typeof i=="function"?Z=i(B):Z=[i,D?"active":null,j?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let L=typeof s=="function"?s(B):s;return x.createElement(Hr,{...h,"aria-current":F,className:Z,ref:m,style:L,to:c,viewTransition:f},typeof d=="function"?d(B):d)});iN.displayName="NavLink";var oN=x.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:l,state:s,method:c=Fu,action:f,onSubmit:d,relative:h,preventScrollReset:m,viewTransition:y,...b},w)=>{let S=fN(),E=dN(f,{relative:h}),A=c.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&iw.test(f),N=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,D=O?.getAttribute("formmethod")||c;S(O||R.currentTarget,{fetcherKey:n,method:D,navigate:r,replace:l,state:s,relative:h,preventScrollReset:m,viewTransition:y})};return x.createElement("form",{ref:w,method:A,action:E,onSubmit:i?d:N,...b,"data-discover":!T&&e==="render"?"true":void 0})});oN.displayName="Form";function lN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ow(e){let n=x.useContext(ho);return vt(n,lN(e)),n}function sN(e,{target:n,replace:r,state:i,preventScrollReset:l,relative:s,viewTransition:c}={}){let f=bc(),d=$n(),h=Zl(e,{relative:s});return x.useCallback(m=>{if(BR(m,n)){m.preventDefault();let y=r!==void 0?r:Il(d)===Il(h);f(e,{replace:y,state:i,preventScrollReset:l,relative:s,viewTransition:c})}},[d,f,h,r,i,n,e,l,s,c])}function HU(e){qn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=x.useRef(tp(e)),r=x.useRef(!1),i=$n(),l=x.useMemo(()=>UR(i.search,r.current?null:n.current),[i.search]),s=bc(),c=x.useCallback((f,d)=>{const h=tp(typeof f=="function"?f(new URLSearchParams(l)):f);r.current=!0,s("?"+h,d)},[s,l]);return[l,c]}var uN=0,cN=()=>`__${String(++uN)}__`;function fN(){let{router:e}=ow("useSubmit"),{basename:n}=x.useContext(ir),r=RR();return x.useCallback(async(i,l={})=>{let{action:s,method:c,encType:f,formData:d,body:h}=qR(i,n);if(l.navigate===!1){let m=l.fetcherKey||cN();await e.fetch(m,r,l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||s,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,n,r])}function dN(e,{relative:n}={}){let{basename:r}=x.useContext(ir),i=x.useContext(Vn);vt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),s={...Zl(e||".",{relative:n})},c=$n();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Fr([r,s.pathname])),Il(s)}function hN(e,{relative:n}={}){let r=x.useContext(Q0);vt(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=ow("useViewTransitionState"),l=Zl(e,{relative:n});if(!r.isTransitioning)return!1;let s=qr(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=qr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return tc(l.pathname,c)!=null||tc(l.pathname,s)!=null}var mo=$0();const pN=vc(mo);var Sc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ec=typeof window>"u"||"Deno"in globalThis;function tr(){}function mN(e,n){return typeof e=="function"?e(n):e}function gN(e){return typeof e=="number"&&e>=0&&e!==1/0}function yN(e,n){return Math.max(e+(n||0)-Date.now(),0)}function np(e,n){return typeof e=="function"?e(n):e}function vN(e,n){return typeof e=="function"?e(n):e}function ab(e,n){const{type:r="all",exact:i,fetchStatus:l,predicate:s,queryKey:c,stale:f}=e;if(c){if(i){if(n.queryHash!==Wp(c,n.options))return!1}else if(!Ul(n.queryKey,c))return!1}if(r!=="all"){const d=n.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||l&&l!==n.state.fetchStatus||s&&!s(n))}function ib(e,n){const{exact:r,status:i,predicate:l,mutationKey:s}=e;if(s){if(!n.options.mutationKey)return!1;if(r){if(Bl(n.options.mutationKey)!==Bl(s))return!1}else if(!Ul(n.options.mutationKey,s))return!1}return!(i&&n.state.status!==i||l&&!l(n))}function Wp(e,n){return(n?.queryKeyHashFn||Bl)(e)}function Bl(e){return JSON.stringify(e,(n,r)=>rp(r)?Object.keys(r).sort().reduce((i,l)=>(i[l]=r[l],i),{}):r)}function Ul(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Ul(e[r],n[r])):!1}function lw(e,n){if(e===n)return e;const r=ob(e)&&ob(n);if(r||rp(e)&&rp(n)){const i=r?e:Object.keys(e),l=i.length,s=r?n:Object.keys(n),c=s.length,f=r?[]:{},d=new Set(i);let h=0;for(let m=0;m<c;m++){const y=r?m:s[m];(!r&&d.has(y)||r)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,h++):(f[y]=lw(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&h++)}return l===c&&h===l?e:f}return n}function ob(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function rp(e){if(!lb(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!lb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function lb(e){return Object.prototype.toString.call(e)==="[object Object]"}function xN(e){return new Promise(n=>{setTimeout(n,e)})}function bN(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?lw(e,n):n}function wN(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function SN(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Jp=Symbol();function sw(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Jp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var EN=class extends Sc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Ec&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},uw=new EN,CN=class extends Sc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Ec&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},nc=new CN;function kN(){let e,n;const r=new Promise((l,s)=>{e=l,n=s});r.status="pending",r.catch(()=>{});function i(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{i({status:"fulfilled",value:l}),e(l)},r.reject=l=>{i({status:"rejected",reason:l}),n(l)},r}function AN(e){return Math.min(1e3*2**e,3e4)}function cw(e){return(e??"online")==="online"?nc.isOnline():!0}var fw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dw(e){let n=!1,r=0,i;const l=kN(),s=()=>l.status!=="pending",c=E=>{s()||(b(new fw(E)),e.abort?.())},f=()=>{n=!0},d=()=>{n=!1},h=()=>uw.isFocused()&&(e.networkMode==="always"||nc.isOnline())&&e.canRun(),m=()=>cw(e.networkMode)&&e.canRun(),y=E=>{s()||(i?.(),l.resolve(E))},b=E=>{s()||(i?.(),l.reject(E))},w=()=>new Promise(E=>{i=A=>{(s()||h())&&E(A)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let E;const A=r===0?e.initialPromise:void 0;try{E=A??e.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(y).catch(T=>{if(s())return;const N=e.retry??(Ec?0:3),R=e.retryDelay??AN,O=typeof R=="function"?R(r,T):R,D=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,T);if(n||!D){b(T);return}r++,e.onFail?.(r,T),xN(O).then(()=>h()?void 0:w()).then(()=>{n?b(T):S()})})};return{promise:l,status:()=>l.status,cancel:c,continue:()=>(i?.(),l),cancelRetry:f,continueRetry:d,canStart:m,start:()=>(m()?S():w().then(S),l)}}var TN=e=>setTimeout(e,0);function RN(){let e=[],n=0,r=f=>{f()},i=f=>{f()},l=TN;const s=f=>{n?e.push(f):l(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&l(()=>{i(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;n++;try{d=f()}finally{n--,n||c()}return d},batchCalls:f=>(...d)=>{s(()=>{f(...d)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{l=f}}}var un=RN(),hw=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gN(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ec?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},NN=class extends hw{#e;#t;#n;#a;#r;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=MN(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=bN(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#i({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#r?.promise;return this.#r?.cancel(e),n?n.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>vN(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Jp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>np(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(n=>n!==e),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(d=>d.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},l=()=>{const f=sw(this.options,n),h=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(m),m})();return this.#l=!1,this.options.persister?this.options.persister(f,h,this):f(h)},c=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(f),f})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#i({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=dw({initialPromise:n?.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onFail:(f,d)=>{this.#i({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const f=await this.#r.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof fw){if(f.silent)return this.#r.promise;if(f.revert){if(this.setState({...this.#t,fetchStatus:"idle"}),this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#i(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._N(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?i:void 0,i;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),un.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function _N(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cw(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function MN(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var jN=class extends Sc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const i=n.queryKey,l=n.queryHash??Wp(i,n);let s=this.get(l);return s||(s=new NN({client:e,queryKey:i,queryHash:l,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){un.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ab(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>ab(e,r)):n}notify(e){un.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){un.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){un.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},DN=class extends hw{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||ON(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(n=>n!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const n=()=>{this.#a({type:"continue"})};this.#n=dw({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(l,s)=>{this.#a({type:"failed",failureCount:l,error:s})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const r=this.state.status==="pending",i=!this.#n.canStart();try{if(r)n();else{this.#a({type:"pending",variables:e,isPaused:i}),await this.#t.config.onMutate?.(e,this);const s=await this.options.onMutate?.(e);s!==this.state.context&&this.#a({type:"pending",context:s,variables:e,isPaused:i})}const l=await this.#n.start();return await this.#t.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#t.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#a({type:"success",data:l}),l}catch(l){try{throw await this.#t.config.onError?.(l,e,this.state.context,this),await this.options.onError?.(l,e,this.state.context),await this.#t.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,l,e,this.state.context),l}finally{this.#a({type:"error",error:l})}}finally{this.#t.runNext(this)}}#a(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),un.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function ON(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var PN=class extends Sc{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const i=new DN({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#e.add(e);const n=Ru(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=Ru(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Ru(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(l=>l.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=Ru(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){un.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const n={exact:!0,...e};return this.getAll().find(r=>ib(n,r))}findAll(e={}){return this.getAll().filter(n=>ib(e,n))}notify(e){un.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return un.batch(()=>Promise.all(e.map(n=>n.continue().catch(tr))))}};function Ru(e){return e.options.scope?.id}function sb(e){return{onFetch:(n,r)=>{const i=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,s=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const h=async()=>{let m=!1;const y=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(n.signal.aborted?m=!0:n.signal.addEventListener("abort",()=>{m=!0}),n.signal)})},b=sw(n.options,n.fetchOptions),w=async(S,E,A)=>{if(m)return Promise.reject();if(E==null&&S.pages.length)return Promise.resolve(S);const N=(()=>{const j={client:n.client,queryKey:n.queryKey,pageParam:E,direction:A?"backward":"forward",meta:n.options.meta};return y(j),j})(),R=await b(N),{maxPages:O}=n.options,D=A?SN:wN;return{pages:D(S.pages,R,O),pageParams:D(S.pageParams,E,O)}};if(l&&s.length){const S=l==="backward",E=S?LN:ub,A={pages:s,pageParams:c},T=E(i,A);f=await w(A,T,S)}else{const S=e??s.length;do{const E=d===0?c[0]??i.initialPageParam:ub(i,f);if(d>0&&E==null)break;f=await w(f,E),d++}while(d<S)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(h,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=h}}}function ub(e,{pages:n,pageParams:r}){const i=n.length-1;return n.length>0?e.getNextPageParam(n[i],n,r[i],r):void 0}function LN(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var zN=class{#e;#t;#n;#a;#r;#o;#l;#i;constructor(e={}){this.#e=e.queryCache||new jN,this.#t=e.mutationCache||new PN,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=uw.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=nc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(np(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(e,n,r){const i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,c=mN(n,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return un.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;un.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return un.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=un.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(i).then(tr).catch(tr)}invalidateQueries(e,n={}){return un.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},i=un.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let s=l.fetch(void 0,r);return r.throwOnError||(s=s.catch(tr)),l.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(tr)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(np(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tr).catch(tr)}fetchInfiniteQuery(e){return e.behavior=sb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tr).catch(tr)}ensureInfiniteQueryData(e){return e.behavior=sb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return nc.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,n){this.#a.set(Bl(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(i=>{Ul(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(Bl(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(i=>{Ul(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=Wp(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Jp&&(n.enabled=!1),n}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},IN=x.createContext(void 0),BN=({client:e,children:n})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(IN.Provider,{value:e,children:n}));const UN={theme:"system",setTheme:()=>null},pw=x.createContext(UN);function HN({children:e,defaultTheme:n="system",storageKey:r="ui-theme",...i}){const[l,s]=x.useState(n);x.useEffect(()=>{const f=localStorage?.getItem(r);f&&s(f)},[r]),x.useEffect(()=>{const f=window.document.documentElement;if(f.classList.remove("light","dark","coconut"),l==="system"){const d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(d);return}f.classList.add(l)},[l]);const c={theme:l,setTheme:f=>{localStorage?.setItem(r,f),s(f)}};return g.jsx(pw.Provider,{...i,value:c,children:e})}const FU=()=>{const e=x.useContext(pw);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},At="",qU="https://app.coconut.dev";async function $i(e,n={}){const r=`${At}${e}`,i={headers:{"Content-Type":"application/json",...n.headers},...n},l=await fetch(r,i);if(!l.ok)throw new Error(`API request failed: ${l.status} ${l.statusText}`);return l.json()}const VU=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`,mw=x.createContext(void 0);function FN({children:e}){const[n,r]=x.useState({user:null,isAuthenticated:!1,isLoading:!0,authEnabled:!1}),i=x.useCallback(async()=>{try{const d=await $i("/api/v1/auth/status");if(!d.success){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}if(!(d.data?.enabled||!1)){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}try{const m=await $i("/api/v1/auth/me");m.success&&m.data?.user?r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0}):r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}catch{r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})}}catch(d){console.error("Failed to check auth status:",d),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1})}},[]);x.useEffect(()=>{i()},[i]);const l=x.useCallback(async(d,h)=>{const m=await $i("/api/v1/auth/login",{method:"POST",body:JSON.stringify({email:d,password:h})});if(!m.success)throw new Error(m.error||"Login failed");r({user:m.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),s=x.useCallback(async(d,h,m)=>{const y=await $i("/api/v1/auth/register",{method:"POST",body:JSON.stringify({email:d,password:h,name:m})});if(!y.success)throw new Error(y.error||"Registration failed");r({user:y.data.user,isAuthenticated:!0,isLoading:!1,authEnabled:!0})},[]),c=x.useCallback(async()=>{await $i("/api/v1/auth/logout",{method:"POST"}),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})},[]),f=x.useCallback(async()=>{try{const d=await $i("/api/v1/auth/me");d.success&&d.data?.user&&r(h=>({...h,user:d.data.user,isAuthenticated:!0}))}catch(d){console.error("Failed to refresh user:",d)}},[]);return g.jsx(mw.Provider,{value:{...n,login:l,register:s,logout:c,refreshUser:f,checkAuthStatus:i},children:e})}function gw(){const e=x.useContext(mw);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const yw=x.createContext(null);function qN(){const e=x.useContext(yw);if(!e)throw new Error("useSidebarBadges must be used within SidebarBadgeProvider");return e}function VN({children:e,pollInterval:n=1e4}){const[r,i]=x.useState({codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0}),[l,s]=x.useState(!0),c=x.useCallback(async()=>{try{const[d,h,m]=await Promise.allSettled([fetch(`${At}/api/v1/terminal/sessions`).then(b=>b.json()),fetch(`${At}/api/v1/git/status`).then(b=>b.json()),fetch(`${At}/api/v1/jobs`).then(b=>b.json())]),y={codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0};if(d.status==="fulfilled"&&d.value?.sessions){const b=d.value.sessions;y.codeSessions=b.filter(w=>w.proposalId?.startsWith("cp-")||w.proposalId?.startsWith("ag-")).length,y.terminalSessions=b.filter(w=>!w.proposalId?.startsWith("cp-")&&!w.proposalId?.startsWith("ag-")).length}if(h.status==="fulfilled"&&h.value?.success&&h.value?.data?.changes&&(y.gitChanges=h.value.data.changes.length),m.status==="fulfilled"&&m.value?.success&&m.value?.data){const b=Array.isArray(m.value.data)?m.value.data:[],w=b.filter(S=>{if(!S.runs||!Array.isArray(S.runs)||S.runs.length===0)return!1;const E=S.runs[0],A=E&&E.status==="running";return A&&console.log("[SidebarBadge] Running job detected:",{name:S.name,status:E.status,startedAt:E.startedAt,finishedAt:E.finishedAt}),A});y.runningScheduledJobs=w.length,(w.length>0||b.length>0)&&console.log("[SidebarBadge] Jobs summary:",{total:b.length,running:w.length,runningJobNames:w.map(S=>S.name)})}i(y)}catch(d){console.error("Failed to fetch sidebar badges:",d)}finally{s(!1)}},[]);x.useEffect(()=>{c()},[c]),x.useEffect(()=>{const d=setInterval(c,n);return()=>clearInterval(d)},[c,n]),x.useEffect(()=>{const d=()=>{console.log("[SidebarBadge] Tab focused, refreshing badges..."),c()};return window.addEventListener("focus",d),()=>window.removeEventListener("focus",d)},[c]);const f={badges:r,loading:l,refresh:c};return g.jsx(yw.Provider,{value:f,children:e})}function $N({children:e}){const[n]=x.useState(()=>new zN({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return g.jsx(BN,{client:n,children:g.jsx(HN,{defaultTheme:"system",storageKey:"coconut-ui-theme",children:g.jsx(FN,{children:g.jsx(VN,{children:e})})})})}const GN=1,YN=1e6;let xh=0;function KN(){return xh=(xh+1)%Number.MAX_SAFE_INTEGER,xh.toString()}const bh=new Map,cb=e=>{if(bh.has(e))return;const n=setTimeout(()=>{bh.delete(e),Dl({type:"REMOVE_TOAST",toastId:e})},YN);bh.set(e,n)},XN=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,GN)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=n;return r?cb(r):e.toasts.forEach(i=>{cb(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},Vu=[];let $u={toasts:[]};function Dl(e){$u=XN($u,e),Vu.forEach(n=>{n($u)})}function ap({...e}){const n=KN(),r=l=>Dl({type:"UPDATE_TOAST",toast:{...l,id:n}}),i=()=>Dl({type:"DISMISS_TOAST",toastId:n});return Dl({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:l=>{l||i()}}}),{id:n,dismiss:i,update:r}}function QN(){const[e,n]=x.useState($u);return x.useEffect(()=>(Vu.push(n),()=>{const r=Vu.indexOf(n);r>-1&&Vu.splice(r,1)}),[e]),{...e,toast:ap,dismiss:r=>Dl({type:"DISMISS_TOAST",toastId:r})}}function pe(e,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e?.(l),r===!1||!l.defaultPrevented)return n?.(l)}}function fb(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Cc(...e){return n=>{let r=!1;const i=e.map(l=>{const s=fb(l,n);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let l=0;l<i.length;l++){const s=i[l];typeof s=="function"?s():fb(e[l],null)}}}}function Be(...e){return x.useCallback(Cc(...e),e)}function ZN(e,n){const r=x.createContext(n),i=s=>{const{children:c,...f}=s,d=x.useMemo(()=>f,Object.values(f));return g.jsx(r.Provider,{value:d,children:c})};i.displayName=e+"Provider";function l(s){const c=x.useContext(r);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,l]}function Gn(e,n=[]){let r=[];function i(s,c){const f=x.createContext(c),d=r.length;r=[...r,c];const h=y=>{const{scope:b,children:w,...S}=y,E=b?.[e]?.[d]||f,A=x.useMemo(()=>S,Object.values(S));return g.jsx(E.Provider,{value:A,children:w})};h.displayName=s+"Provider";function m(y,b){const w=b?.[e]?.[d]||f,S=x.useContext(w);if(S)return S;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${s}\``)}return[h,m]}const l=()=>{const s=r.map(c=>x.createContext(c));return function(f){const d=f?.[e]||s;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return l.scopeName=e,[i,WN(l,...n)]}function WN(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(s){const c=i.reduce((f,{useScope:d,scopeName:h})=>{const y=d(s)[`__scope${h}`];return{...f,...y}},{});return x.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function Ja(e){const n=JN(e),r=x.forwardRef((i,l)=>{const{children:s,...c}=i,f=x.Children.toArray(s),d=f.find(e_);if(d){const h=d.props.children,m=f.map(y=>y===d?x.Children.count(h)>1?x.Children.only(null):x.isValidElement(h)?h.props.children:null:y);return g.jsx(n,{...c,ref:l,children:x.isValidElement(h)?x.cloneElement(h,void 0,m):null})}return g.jsx(n,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}var go=Ja("Slot");function JN(e){const n=x.forwardRef((r,i)=>{const{children:l,...s}=r;if(x.isValidElement(l)){const c=n_(l),f=t_(s,l.props);return l.type!==x.Fragment&&(f.ref=i?Cc(i,c):c),x.cloneElement(l,f)}return x.Children.count(l)>1?x.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var vw=Symbol("radix.slottable");function xw(e){const n=({children:r})=>g.jsx(g.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=vw,n}function e_(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vw}function t_(e,n){const r={...n};for(const i in n){const l=e[i],s=n[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function n_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function kc(e){const n=e+"CollectionProvider",[r,i]=Gn(n),[l,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=E=>{const{scope:A,children:T}=E,N=wa.useRef(null),R=wa.useRef(new Map).current;return g.jsx(l,{scope:A,itemMap:R,collectionRef:N,children:T})};c.displayName=n;const f=e+"CollectionSlot",d=Ja(f),h=wa.forwardRef((E,A)=>{const{scope:T,children:N}=E,R=s(f,T),O=Be(A,R.collectionRef);return g.jsx(d,{ref:O,children:N})});h.displayName=f;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=Ja(m),w=wa.forwardRef((E,A)=>{const{scope:T,children:N,...R}=E,O=wa.useRef(null),D=Be(A,O),j=s(m,T);return wa.useEffect(()=>(j.itemMap.set(O,{ref:O,...R}),()=>void j.itemMap.delete(O))),g.jsx(b,{[y]:"",ref:D,children:N})});w.displayName=m;function S(E){const A=s(e+"CollectionConsumer",E);return wa.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const R=Array.from(N.querySelectorAll(`[${y}]`));return Array.from(A.itemMap.values()).sort((j,B)=>R.indexOf(j.ref.current)-R.indexOf(B.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:c,Slot:h,ItemSlot:w},S,i]}var r_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ne=r_.reduce((e,n)=>{const r=Ja(`Primitive.${n}`),i=x.forwardRef((l,s)=>{const{asChild:c,...f}=l,d=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...f,ref:s})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function em(e,n){e&&mo.flushSync(()=>e.dispatchEvent(n))}function _t(e){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useMemo(()=>(...r)=>n.current?.(...r),[])}function a_(e,n=globalThis?.document){const r=_t(e);x.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var i_="DismissableLayer",ip="dismissableLayer.update",o_="dismissableLayer.pointerDownOutside",l_="dismissableLayer.focusOutside",db,bw=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yo=x.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...d}=e,h=x.useContext(bw),[m,y]=x.useState(null),b=m?.ownerDocument??globalThis?.document,[,w]=x.useState({}),S=Be(n,B=>y(B)),E=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),T=E.indexOf(A),N=m?E.indexOf(m):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,O=N>=T,D=u_(B=>{const F=B.target,Z=[...h.branches].some(L=>L.contains(F));!O||Z||(l?.(B),c?.(B),B.defaultPrevented||f?.())},b),j=c_(B=>{const F=B.target;[...h.branches].some(L=>L.contains(F))||(s?.(B),c?.(B),B.defaultPrevented||f?.())},b);return a_(B=>{N===h.layers.size-1&&(i?.(B),!B.defaultPrevented&&f&&(B.preventDefault(),f()))},b),x.useEffect(()=>{if(m)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(db=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),hb(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=db)}},[m,b,r,h]),x.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),hb())},[m,h]),x.useEffect(()=>{const B=()=>w({});return document.addEventListener(ip,B),()=>document.removeEventListener(ip,B)},[]),g.jsx(Ne.div,{...d,ref:S,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:pe(e.onFocusCapture,j.onFocusCapture),onBlurCapture:pe(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:pe(e.onPointerDownCapture,D.onPointerDownCapture)})});yo.displayName=i_;var s_="DismissableLayerBranch",ww=x.forwardRef((e,n)=>{const r=x.useContext(bw),i=x.useRef(null),l=Be(n,i);return x.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),g.jsx(Ne.div,{...e,ref:l})});ww.displayName=s_;function u_(e,n=globalThis?.document){const r=_t(e),i=x.useRef(!1),l=x.useRef(()=>{});return x.useEffect(()=>{const s=f=>{if(f.target&&!i.current){let d=function(){Sw(o_,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=d,n.addEventListener("click",l.current,{once:!0})):d()}else n.removeEventListener("click",l.current);i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",s),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function c_(e,n=globalThis?.document){const r=_t(e),i=x.useRef(!1);return x.useEffect(()=>{const l=s=>{s.target&&!i.current&&Sw(l_,r,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function hb(){const e=new CustomEvent(ip);document.dispatchEvent(e)}function Sw(e,n,r,{discrete:i}){const l=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?em(l,s):l.dispatchEvent(s)}var f_=yo,d_=ww,qt=globalThis?.document?x.useLayoutEffect:()=>{},h_="Portal",Wl=x.forwardRef((e,n)=>{const{container:r,...i}=e,[l,s]=x.useState(!1);qt(()=>s(!0),[]);const c=r||l&&globalThis?.document?.body;return c?pN.createPortal(g.jsx(Ne.div,{...i,ref:n}),c):null});Wl.displayName=h_;function p_(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var fn=e=>{const{present:n,children:r}=e,i=m_(n),l=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),s=Be(i.ref,g_(l));return typeof r=="function"||i.isPresent?x.cloneElement(l,{ref:s}):null};fn.displayName="Presence";function m_(e){const[n,r]=x.useState(),i=x.useRef(null),l=x.useRef(e),s=x.useRef("none"),c=e?"mounted":"unmounted",[f,d]=p_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const h=Nu(i.current);s.current=f==="mounted"?h:"none"},[f]),qt(()=>{const h=i.current,m=l.current;if(m!==e){const b=s.current,w=Nu(h);e?d("MOUNT"):w==="none"||h?.display==="none"?d("UNMOUNT"):d(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,d]),qt(()=>{if(n){let h;const m=n.ownerDocument.defaultView??window,y=w=>{const E=Nu(i.current).includes(CSS.escape(w.animationName));if(w.target===n&&E&&(d("ANIMATION_END"),!l.current)){const A=n.style.animationFillMode;n.style.animationFillMode="forwards",h=m.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=A)})}},b=w=>{w.target===n&&(s.current=Nu(i.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{m.clearTimeout(h),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else d("ANIMATION_END")},[n,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Nu(e){return e?.animationName||"none"}function g_(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var y_=V0[" useInsertionEffect ".trim().toString()]||qt;function ka({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[l,s,c]=v_({defaultProp:n,onChange:r}),f=e!==void 0,d=f?e:l;{const m=x.useRef(e!==void 0);x.useEffect(()=>{const y=m.current;y!==f&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,i])}const h=x.useCallback(m=>{if(f){const y=x_(m)?m(e):m;y!==e&&c.current?.(y)}else s(m)},[f,e,s,c]);return[d,h]}function v_({defaultProp:e,onChange:n}){const[r,i]=x.useState(e),l=x.useRef(r),s=x.useRef(n);return y_(()=>{s.current=n},[n]),x.useEffect(()=>{l.current!==r&&(s.current?.(r),l.current=r)},[r,l]),[r,i,s]}function x_(e){return typeof e=="function"}var Ew=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"}),b_="VisuallyHidden",Ac=x.forwardRef((e,n)=>g.jsx(Ne.span,{...e,ref:n,style:{...Ew,...e.style}}));Ac.displayName=b_;var w_=Ac,tm="ToastProvider",[nm,S_,E_]=kc("Toast"),[Cw,$U]=Gn("Toast",[E_]),[C_,Tc]=Cw(tm),kw=e=>{const{__scopeToast:n,label:r="Notification",duration:i=5e3,swipeDirection:l="right",swipeThreshold:s=50,children:c}=e,[f,d]=x.useState(null),[h,m]=x.useState(0),y=x.useRef(!1),b=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${tm}\`. Expected non-empty \`string\`.`),g.jsx(nm.Provider,{scope:n,children:g.jsx(C_,{scope:n,label:r,duration:i,swipeDirection:l,swipeThreshold:s,toastCount:h,viewport:f,onViewportChange:d,onToastAdd:x.useCallback(()=>m(w=>w+1),[]),onToastRemove:x.useCallback(()=>m(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};kw.displayName=tm;var Aw="ToastViewport",k_=["F8"],op="toast.viewportPause",lp="toast.viewportResume",Tw=x.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:i=k_,label:l="Notifications ({hotkey})",...s}=e,c=Tc(Aw,r),f=S_(r),d=x.useRef(null),h=x.useRef(null),m=x.useRef(null),y=x.useRef(null),b=Be(n,y,c.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=c.toastCount>0;x.useEffect(()=>{const A=T=>{i.length!==0&&i.every(R=>T[R]||T.code===R)&&y.current?.focus()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[i]),x.useEffect(()=>{const A=d.current,T=y.current;if(S&&A&&T){const N=()=>{if(!c.isClosePausedRef.current){const j=new CustomEvent(op);T.dispatchEvent(j),c.isClosePausedRef.current=!0}},R=()=>{if(c.isClosePausedRef.current){const j=new CustomEvent(lp);T.dispatchEvent(j),c.isClosePausedRef.current=!1}},O=j=>{!A.contains(j.relatedTarget)&&R()},D=()=>{A.contains(document.activeElement)||R()};return A.addEventListener("focusin",N),A.addEventListener("focusout",O),A.addEventListener("pointermove",N),A.addEventListener("pointerleave",D),window.addEventListener("blur",N),window.addEventListener("focus",R),()=>{A.removeEventListener("focusin",N),A.removeEventListener("focusout",O),A.removeEventListener("pointermove",N),A.removeEventListener("pointerleave",D),window.removeEventListener("blur",N),window.removeEventListener("focus",R)}}},[S,c.isClosePausedRef]);const E=x.useCallback(({tabbingDirection:A})=>{const N=f().map(R=>{const O=R.ref.current,D=[O,...I_(O)];return A==="forwards"?D:D.reverse()});return(A==="forwards"?N.reverse():N).flat()},[f]);return x.useEffect(()=>{const A=y.current;if(A){const T=N=>{const R=N.altKey||N.ctrlKey||N.metaKey;if(N.key==="Tab"&&!R){const D=document.activeElement,j=N.shiftKey;if(N.target===A&&j){h.current?.focus();return}const Z=E({tabbingDirection:j?"backwards":"forwards"}),L=Z.findIndex(W=>W===D);wh(Z.slice(L+1))?N.preventDefault():j?h.current?.focus():m.current?.focus()}};return A.addEventListener("keydown",T),()=>A.removeEventListener("keydown",T)}},[f,E]),g.jsxs(d_,{ref:d,role:"region","aria-label":l.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&g.jsx(sp,{ref:h,onFocusFromOutsideViewport:()=>{const A=E({tabbingDirection:"forwards"});wh(A)}}),g.jsx(nm.Slot,{scope:r,children:g.jsx(Ne.ol,{tabIndex:-1,...s,ref:b})}),S&&g.jsx(sp,{ref:m,onFocusFromOutsideViewport:()=>{const A=E({tabbingDirection:"backwards"});wh(A)}})]})});Tw.displayName=Aw;var Rw="ToastFocusProxy",sp=x.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...l}=e,s=Tc(Rw,r);return g.jsx(Ac,{tabIndex:0,...l,ref:n,style:{position:"fixed"},onFocus:c=>{const f=c.relatedTarget;!s.viewport?.contains(f)&&i()}})});sp.displayName=Rw;var Jl="Toast",A_="toast.swipeStart",T_="toast.swipeMove",R_="toast.swipeCancel",N_="toast.swipeEnd",Nw=x.forwardRef((e,n)=>{const{forceMount:r,open:i,defaultOpen:l,onOpenChange:s,...c}=e,[f,d]=ka({prop:i,defaultProp:l??!0,onChange:s,caller:Jl});return g.jsx(fn,{present:r||f,children:g.jsx(j_,{open:f,...c,ref:n,onClose:()=>d(!1),onPause:_t(e.onPause),onResume:_t(e.onResume),onSwipeStart:pe(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:pe(e.onSwipeMove,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:pe(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:pe(e.onSwipeEnd,h=>{const{x:m,y}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),d(!1)})})})});Nw.displayName=Jl;var[__,M_]=Cw(Jl,{onClose(){}}),j_=x.forwardRef((e,n)=>{const{__scopeToast:r,type:i="foreground",duration:l,open:s,onClose:c,onEscapeKeyDown:f,onPause:d,onResume:h,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...S}=e,E=Tc(Jl,r),[A,T]=x.useState(null),N=Be(n,K=>T(K)),R=x.useRef(null),O=x.useRef(null),D=l||E.duration,j=x.useRef(0),B=x.useRef(D),F=x.useRef(0),{onToastAdd:Z,onToastRemove:L}=E,W=_t(()=>{A?.contains(document.activeElement)&&E.viewport?.focus(),c()}),J=x.useCallback(K=>{!K||K===1/0||(window.clearTimeout(F.current),j.current=new Date().getTime(),F.current=window.setTimeout(W,K))},[W]);x.useEffect(()=>{const K=E.viewport;if(K){const ie=()=>{J(B.current),h?.()},z=()=>{const X=new Date().getTime()-j.current;B.current=B.current-X,window.clearTimeout(F.current),d?.()};return K.addEventListener(op,z),K.addEventListener(lp,ie),()=>{K.removeEventListener(op,z),K.removeEventListener(lp,ie)}}},[E.viewport,D,d,h,J]),x.useEffect(()=>{s&&!E.isClosePausedRef.current&&J(D)},[s,D,E.isClosePausedRef,J]),x.useEffect(()=>(Z(),()=>L()),[Z,L]);const ae=x.useMemo(()=>A?Lw(A):null,[A]);return E.viewport?g.jsxs(g.Fragment,{children:[ae&&g.jsx(D_,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:ae}),g.jsx(__,{scope:r,onClose:W,children:mo.createPortal(g.jsx(nm.ItemSlot,{scope:r,children:g.jsx(f_,{asChild:!0,onEscapeKeyDown:pe(f,()=>{E.isFocusedToastEscapeKeyDownRef.current||W(),E.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Ne.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":E.swipeDirection,...S,ref:N,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:pe(e.onKeyDown,K=>{K.key==="Escape"&&(f?.(K.nativeEvent),K.nativeEvent.defaultPrevented||(E.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:pe(e.onPointerDown,K=>{K.button===0&&(R.current={x:K.clientX,y:K.clientY})}),onPointerMove:pe(e.onPointerMove,K=>{if(!R.current)return;const ie=K.clientX-R.current.x,z=K.clientY-R.current.y,X=!!O.current,H=["left","right"].includes(E.swipeDirection),re=["left","up"].includes(E.swipeDirection)?Math.min:Math.max,k=H?re(0,ie):0,Q=H?0:re(0,z),le=K.pointerType==="touch"?10:2,M={x:k,y:Q},ce={originalEvent:K,delta:M};X?(O.current=M,_u(T_,y,ce,{discrete:!1})):pb(M,E.swipeDirection,le)?(O.current=M,_u(A_,m,ce,{discrete:!1}),K.target.setPointerCapture(K.pointerId)):(Math.abs(ie)>le||Math.abs(z)>le)&&(R.current=null)}),onPointerUp:pe(e.onPointerUp,K=>{const ie=O.current,z=K.target;if(z.hasPointerCapture(K.pointerId)&&z.releasePointerCapture(K.pointerId),O.current=null,R.current=null,ie){const X=K.currentTarget,H={originalEvent:K,delta:ie};pb(ie,E.swipeDirection,E.swipeThreshold)?_u(N_,w,H,{discrete:!0}):_u(R_,b,H,{discrete:!0}),X.addEventListener("click",re=>re.preventDefault(),{once:!0})}})})})}),E.viewport)})]}):null}),D_=e=>{const{__scopeToast:n,children:r,...i}=e,l=Tc(Jl,n),[s,c]=x.useState(!1),[f,d]=x.useState(!1);return L_(()=>c(!0)),x.useEffect(()=>{const h=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(h)},[]),f?null:g.jsx(Wl,{asChild:!0,children:g.jsx(Ac,{...i,children:s&&g.jsxs(g.Fragment,{children:[l.label," ",r]})})})},O_="ToastTitle",_w=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Ne.div,{...i,ref:n})});_w.displayName=O_;var P_="ToastDescription",Mw=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Ne.div,{...i,ref:n})});Mw.displayName=P_;var jw="ToastAction",Dw=x.forwardRef((e,n)=>{const{altText:r,...i}=e;return r.trim()?g.jsx(Pw,{altText:r,asChild:!0,children:g.jsx(rm,{...i,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${jw}\`. Expected non-empty \`string\`.`),null)});Dw.displayName=jw;var Ow="ToastClose",rm=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e,l=M_(Ow,r);return g.jsx(Pw,{asChild:!0,children:g.jsx(Ne.button,{type:"button",...i,ref:n,onClick:pe(e.onClick,l.onClose)})})});rm.displayName=Ow;var Pw=x.forwardRef((e,n)=>{const{__scopeToast:r,altText:i,...l}=e;return g.jsx(Ne.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...l,ref:n})});function Lw(e){const n=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&n.push(i.textContent),z_(i)){const l=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!l)if(s){const c=i.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...Lw(i))}}),n}function _u(e,n,r,{discrete:i}){const l=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),i?em(l,s):l.dispatchEvent(s)}var pb=(e,n,r=0)=>{const i=Math.abs(e.x),l=Math.abs(e.y),s=i>l;return n==="left"||n==="right"?s&&i>r:!s&&l>r};function L_(e=()=>{}){const n=_t(e);qt(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[n])}function z_(e){return e.nodeType===e.ELEMENT_NODE}function I_(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function wh(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var B_=kw,zw=Tw,Iw=Nw,Bw=_w,Uw=Mw,Hw=Dw,Fw=rm;function qw(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=qw(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Vw(){for(var e,n,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=qw(e))&&(i&&(i+=" "),i+=n);return i}const mb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gb=Vw,Rc=(e,n)=>r=>{var i;if(n?.variants==null)return gb(e,r?.class,r?.className);const{variants:l,defaultVariants:s}=n,c=Object.keys(l).map(h=>{const m=r?.[h],y=s?.[h];if(m===null)return null;const b=mb(m)||mb(y);return l[h][b]}),f=r&&Object.entries(r).reduce((h,m)=>{let[y,b]=m;return b===void 0||(h[y]=b),h},{}),d=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:y,className:b,...w}=m;return Object.entries(w).every(S=>{let[E,A]=S;return Array.isArray(A)?A.includes({...s,...f}[E]):{...s,...f}[E]===A})?[...h,y,b]:h},[]);return gb(e,c,d,r?.class,r?.className)};/**
|
|
62
|
+
* @license lucide-react v0.542.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const U_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),H_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),yb=e=>{const n=H_(e);return n.charAt(0).toUpperCase()+n.slice(1)},$w=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),F_=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
67
|
+
* @license lucide-react v0.542.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var q_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
72
|
+
* @license lucide-react v0.542.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const V_=x.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:c,...f},d)=>x.createElement("svg",{ref:d,...q_,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:$w("lucide",l),...!s&&!F_(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,m])=>x.createElement(h,m)),...Array.isArray(s)?s:[s]]));/**
|
|
77
|
+
* @license lucide-react v0.542.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const je=(e,n)=>{const r=x.forwardRef(({className:i,...l},s)=>x.createElement(V_,{ref:s,iconNode:n,className:$w(`lucide-${U_(yb(e))}`,`lucide-${e}`,i),...l}));return r.displayName=yb(e),r};/**
|
|
82
|
+
* @license lucide-react v0.542.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const $_=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Ol=je("bot",$_);/**
|
|
87
|
+
* @license lucide-react v0.542.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const G_=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Y_=je("brain",G_);/**
|
|
92
|
+
* @license lucide-react v0.542.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const K_=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],X_=je("calendar-clock",K_);/**
|
|
97
|
+
* @license lucide-react v0.542.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Q_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Nc=je("check",Q_);/**
|
|
102
|
+
* @license lucide-react v0.542.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Z_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gw=je("chevron-down",Z_);/**
|
|
107
|
+
* @license lucide-react v0.542.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const W_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],J_=je("chevron-right",W_);/**
|
|
112
|
+
* @license lucide-react v0.542.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const eM=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],tM=je("chevron-up",eM);/**
|
|
117
|
+
* @license lucide-react v0.542.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const nM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],rM=je("circle",nM);/**
|
|
122
|
+
* @license lucide-react v0.542.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const aM=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],iM=je("code",aM);/**
|
|
127
|
+
* @license lucide-react v0.542.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const oM=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lM=je("copy",oM);/**
|
|
132
|
+
* @license lucide-react v0.542.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const sM=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],uM=je("expand",sM);/**
|
|
137
|
+
* @license lucide-react v0.542.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const cM=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],fM=je("external-link",cM);/**
|
|
142
|
+
* @license lucide-react v0.542.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const dM=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M3 15h6",key:"4e2qda"}],["path",{d:"M6 12v6",key:"1u72j0"}]],hM=je("file-plus-2",dM);/**
|
|
147
|
+
* @license lucide-react v0.542.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const pM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],rc=je("file-text",pM);/**
|
|
152
|
+
* @license lucide-react v0.542.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const mM=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],vb=je("file",mM);/**
|
|
157
|
+
* @license lucide-react v0.542.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const gM=[["path",{d:"M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z",key:"1vo8kb"}],["path",{d:"M15 2v4a2 2 0 0 0 2 2h4",key:"sud9ri"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],yM=je("files",gM);/**
|
|
162
|
+
* @license lucide-react v0.542.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const vM=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],xM=je("folder-open",vM);/**
|
|
167
|
+
* @license lucide-react v0.542.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const bM=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Gu=je("folder",bM);/**
|
|
172
|
+
* @license lucide-react v0.542.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const wM=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Yw=je("git-branch",wM);/**
|
|
177
|
+
* @license lucide-react v0.542.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const SM=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],EM=je("history",SM);/**
|
|
182
|
+
* @license lucide-react v0.542.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const CM=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],kM=je("house",CM);/**
|
|
187
|
+
* @license lucide-react v0.542.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const AM=[["path",{d:"M16 10h2",key:"8sgtl7"}],["path",{d:"M16 14h2",key:"epxaof"}],["path",{d:"M6.17 15a3 3 0 0 1 5.66 0",key:"n6f512"}],["circle",{cx:"9",cy:"11",r:"2",key:"yxgjnd"}],["rect",{x:"2",y:"5",width:"20",height:"14",rx:"2",key:"qneu4z"}]],TM=je("id-card",AM);/**
|
|
192
|
+
* @license lucide-react v0.542.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const RM=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],NM=je("key",RM);/**
|
|
197
|
+
* @license lucide-react v0.542.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const _M=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ac=je("loader-circle",_M);/**
|
|
202
|
+
* @license lucide-react v0.542.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const MM=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],jM=je("log-out",MM);/**
|
|
207
|
+
* @license lucide-react v0.542.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const DM=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],OM=je("menu",DM);/**
|
|
212
|
+
* @license lucide-react v0.542.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const PM=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],LM=je("message-circle",PM);/**
|
|
217
|
+
* @license lucide-react v0.542.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const zM=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],IM=je("network",zM);/**
|
|
222
|
+
* @license lucide-react v0.542.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const BM=[["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["path",{d:"M16 2v20",key:"rotuqe"}]],UM=je("notebook",BM);/**
|
|
227
|
+
* @license lucide-react v0.542.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const HM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],FM=je("panel-left",HM);/**
|
|
232
|
+
* @license lucide-react v0.542.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const qM=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]],VM=je("plug",qM);/**
|
|
237
|
+
* @license lucide-react v0.542.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const $M=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],GM=je("save",$M);/**
|
|
242
|
+
* @license lucide-react v0.542.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const YM=[["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"}]],KM=je("send",YM);/**
|
|
247
|
+
* @license lucide-react v0.542.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const XM=[["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"}]],QM=je("server",XM);/**
|
|
252
|
+
* @license lucide-react v0.542.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const ZM=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],WM=je("settings",ZM);/**
|
|
257
|
+
* @license lucide-react v0.542.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const JM=[["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"}]],ej=je("shield",JM);/**
|
|
262
|
+
* @license lucide-react v0.542.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const tj=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],nj=je("sliders-horizontal",tj);/**
|
|
267
|
+
* @license lucide-react v0.542.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const rj=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],up=je("sparkles",rj);/**
|
|
272
|
+
* @license lucide-react v0.542.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const aj=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],ij=je("square-pen",aj);/**
|
|
277
|
+
* @license lucide-react v0.542.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const oj=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],lj=je("square",oj);/**
|
|
282
|
+
* @license lucide-react v0.542.0 - ISC
|
|
283
|
+
*
|
|
284
|
+
* This source code is licensed under the ISC license.
|
|
285
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
+
*/const sj=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],uj=je("terminal",sj);/**
|
|
287
|
+
* @license lucide-react v0.542.0 - ISC
|
|
288
|
+
*
|
|
289
|
+
* This source code is licensed under the ISC license.
|
|
290
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
+
*/const cj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],fj=je("trash-2",cj);/**
|
|
292
|
+
* @license lucide-react v0.542.0 - ISC
|
|
293
|
+
*
|
|
294
|
+
* This source code is licensed under the ISC license.
|
|
295
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
+
*/const dj=[["path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4",key:"foxbe7"}],["path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3",key:"18arnh"}],["path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35",key:"ywahnh"}],["path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14",key:"ft0feo"}]],hj=je("tree-palm",dj);/**
|
|
297
|
+
* @license lucide-react v0.542.0 - ISC
|
|
298
|
+
*
|
|
299
|
+
* This source code is licensed under the ISC license.
|
|
300
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
+
*/const pj=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],mj=je("user",pj);/**
|
|
302
|
+
* @license lucide-react v0.542.0 - ISC
|
|
303
|
+
*
|
|
304
|
+
* This source code is licensed under the ISC license.
|
|
305
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
+
*/const gj=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],yj=je("wrench",gj);/**
|
|
307
|
+
* @license lucide-react v0.542.0 - ISC
|
|
308
|
+
*
|
|
309
|
+
* This source code is licensed under the ISC license.
|
|
310
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
311
|
+
*/const vj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],no=je("x",vj),am="-",xj=e=>{const n=wj(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const f=c.split(am);return f[0]===""&&f.length!==1&&f.shift(),Kw(f,n)||bj(c)},getConflictingClassGroupIds:(c,f)=>{const d=r[c]||[];return f&&i[c]?[...d,...i[c]]:d}}},Kw=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),l=i?Kw(e.slice(1),i):void 0;if(l)return l;if(n.validators.length===0)return;const s=e.join(am);return n.validators.find(({validator:c})=>c(s))?.classGroupId},xb=/^\[(.+)\]$/,bj=e=>{if(xb.test(e)){const n=xb.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},wj=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const l in r)cp(r[l],i,l,n);return i},cp=(e,n,r,i)=>{e.forEach(l=>{if(typeof l=="string"){const s=l===""?n:bb(n,l);s.classGroupId=r;return}if(typeof l=="function"){if(Sj(l)){cp(l(i),n,r,i);return}n.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{cp(c,bb(n,s),r,i)})})},bb=(e,n)=>{let r=e;return n.split(am).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},Sj=e=>e.isThemeGetter,Ej=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const l=(s,c)=>{r.set(s,c),n++,n>e&&(n=0,i=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},fp="!",dp=":",Cj=dp.length,kj=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=l=>{const s=[];let c=0,f=0,d=0,h;for(let S=0;S<l.length;S++){let E=l[S];if(c===0&&f===0){if(E===dp){s.push(l.slice(d,S)),d=S+Cj;continue}if(E==="/"){h=S;continue}}E==="["?c++:E==="]"?c--:E==="("?f++:E===")"&&f--}const m=s.length===0?l:l.substring(d),y=Aj(m),b=y!==m,w=h&&h>d?h-d:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(n){const l=n+dp,s=i;i=c=>c.startsWith(l)?s(c.substring(l.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const l=i;i=s=>r({className:s,parseClassName:l})}return i},Aj=e=>e.endsWith(fp)?e.substring(0,e.length-1):e.startsWith(fp)?e.substring(1):e,Tj=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const l=[];let s=[];return i.forEach(c=>{c[0]==="["||n[c]?(l.push(...s.sort(),c),s=[]):s.push(c)}),l.push(...s.sort()),l}},Rj=e=>({cache:Ej(e.cacheSize),parseClassName:kj(e),sortModifiers:Tj(e),...xj(e)}),Nj=/\s+/,_j=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:s}=n,c=[],f=e.trim().split(Nj);let d="";for(let h=f.length-1;h>=0;h-=1){const m=f[h],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:E}=r(m);if(y){d=m+(d.length>0?" "+d:d);continue}let A=!!E,T=i(A?S.substring(0,E):S);if(!T){if(!A){d=m+(d.length>0?" "+d:d);continue}if(T=i(S),!T){d=m+(d.length>0?" "+d:d);continue}A=!1}const N=s(b).join(":"),R=w?N+fp:N,O=R+T;if(c.includes(O))continue;c.push(O);const D=l(T,A);for(let j=0;j<D.length;++j){const B=D[j];c.push(R+B)}d=m+(d.length>0?" "+d:d)}return d};function Mj(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=Xw(n))&&(i&&(i+=" "),i+=r);return i}const Xw=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=Xw(e[i]))&&(r&&(r+=" "),r+=n);return r};function jj(e,...n){let r,i,l,s=c;function c(d){const h=n.reduce((m,y)=>y(m),e());return r=Rj(h),i=r.cache.get,l=r.cache.set,s=f,f(d)}function f(d){const h=i(d);if(h)return h;const m=_j(d,r);return l(d,m),m}return function(){return s(Mj.apply(null,arguments))}}const Bt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},Qw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Dj=/^\d+\/\d+$/,Oj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ij=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gi=e=>Dj.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),xa=e=>!!e&&Number.isInteger(Number(e)),Sh=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),Ur=e=>Oj.test(e),Bj=()=>!0,Uj=e=>Pj.test(e)&&!Lj.test(e),Ww=()=>!1,Hj=e=>zj.test(e),Fj=e=>Ij.test(e),qj=e=>!be(e)&&!we(e),Vj=e=>vo(e,t1,Ww),be=e=>Qw.test(e),Xa=e=>vo(e,n1,Uj),Eh=e=>vo(e,Xj,Fe),wb=e=>vo(e,Jw,Ww),$j=e=>vo(e,e1,Fj),Mu=e=>vo(e,r1,Hj),we=e=>Zw.test(e),kl=e=>xo(e,n1),Gj=e=>xo(e,Qj),Sb=e=>xo(e,Jw),Yj=e=>xo(e,t1),Kj=e=>xo(e,e1),ju=e=>xo(e,r1,!0),vo=(e,n,r)=>{const i=Qw.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},xo=(e,n,r=!1)=>{const i=Zw.exec(e);return i?i[1]?n(i[1]):r:!1},Jw=e=>e==="position"||e==="percentage",e1=e=>e==="image"||e==="url",t1=e=>e==="length"||e==="size"||e==="bg-size",n1=e=>e==="length",Xj=e=>e==="number",Qj=e=>e==="family-name",r1=e=>e==="shadow",Zj=()=>{const e=Bt("color"),n=Bt("font"),r=Bt("text"),i=Bt("font-weight"),l=Bt("tracking"),s=Bt("leading"),c=Bt("breakpoint"),f=Bt("container"),d=Bt("spacing"),h=Bt("radius"),m=Bt("shadow"),y=Bt("inset-shadow"),b=Bt("text-shadow"),w=Bt("drop-shadow"),S=Bt("blur"),E=Bt("perspective"),A=Bt("aspect"),T=Bt("ease"),N=Bt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...O(),we,be],j=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],F=()=>[we,be,d],Z=()=>[Gi,"full","auto",...F()],L=()=>[xa,"none","subgrid",we,be],W=()=>["auto",{span:["full",xa,we,be]},xa,we,be],J=()=>[xa,"auto",we,be],ae=()=>["auto","min","max","fr",we,be],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...F()],X=()=>[Gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],H=()=>[e,we,be],re=()=>[...O(),Sb,wb,{position:[we,be]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",Yj,Vj,{size:[we,be]}],le=()=>[Sh,kl,Xa],M=()=>["","none","full",h,we,be],ce=()=>["",Fe,kl,Xa],Se=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[Fe,Sh,Sb,wb],ge=()=>["","none",S,we,be],Oe=()=>["none",Fe,we,be],De=()=>["none",Fe,we,be],Pe=()=>[Fe,we,be],Ue=()=>[Gi,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ur],breakpoint:[Ur],color:[Bj],container:[Ur],"drop-shadow":[Ur],ease:["in","out","in-out"],font:[qj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ur],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ur],shadow:[Ur],spacing:["px",Fe],text:[Ur],"text-shadow":[Ur],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gi,be,we,A]}],container:["container"],columns:[{columns:[Fe,be,we,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[xa,"auto",we,be]}],basis:[{basis:[Gi,"full","auto",f,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,Gi,"auto","initial","none",be]}],grow:[{grow:["",Fe,we,be]}],shrink:[{shrink:["",Fe,we,be]}],order:[{order:[xa,"first","last","none",we,be]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[f,"screen",...X()]}],"min-w":[{"min-w":[f,"screen","none",...X()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,kl,Xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,we,Eh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sh,be]}],"font-family":[{font:[Gj,be,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,we,be]}],"line-clamp":[{"line-clamp":[Fe,"none",we,Eh]}],leading:[{leading:[s,...F()]}],"list-image":[{"list-image":["none",we,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",we,Xa]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[Fe,"auto",we,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:re()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},xa,we,be],radial:["",we,be],conic:[xa,we,be]},Kj,$j]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,we,be]}],"outline-w":[{outline:["",Fe,kl,Xa]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",m,ju,Mu]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",y,ju,Mu]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[Fe,Xa]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",b,ju,Mu]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[Fe,we,be]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[we,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:re()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,be]}],filter:[{filter:["","none",we,be]}],blur:[{blur:ge()}],brightness:[{brightness:[Fe,we,be]}],contrast:[{contrast:[Fe,we,be]}],"drop-shadow":[{"drop-shadow":["","none",w,ju,Mu]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",Fe,we,be]}],"hue-rotate":[{"hue-rotate":[Fe,we,be]}],invert:[{invert:["",Fe,we,be]}],saturate:[{saturate:[Fe,we,be]}],sepia:[{sepia:["",Fe,we,be]}],"backdrop-filter":[{"backdrop-filter":["","none",we,be]}],"backdrop-blur":[{"backdrop-blur":ge()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,we,be]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,we,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,we,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,we,be]}],"backdrop-invert":[{"backdrop-invert":["",Fe,we,be]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,we,be]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,we,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,we,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",we,be]}],ease:[{ease:["linear","initial",T,we,be]}],delay:[{delay:[Fe,we,be]}],animate:[{animate:["none",N,we,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,we,be]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:De()}],"scale-x":[{"scale-x":De()}],"scale-y":[{"scale-y":De()}],"scale-z":[{"scale-z":De()}],"scale-3d":["scale-3d"],skew:[{skew:Pe()}],"skew-x":[{"skew-x":Pe()}],"skew-y":[{"skew-y":Pe()}],transform:[{transform:[we,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ue()}],"translate-x":[{"translate-x":Ue()}],"translate-y":[{"translate-y":Ue()}],"translate-z":[{"translate-z":Ue()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,be]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[Fe,kl,Xa,Eh]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wj=jj(Zj);function ue(...e){return Wj(Vw(e))}const Jj=B_,a1=x.forwardRef(({className:e,...n},r)=>g.jsx(zw,{ref:r,className:ue("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...n}));a1.displayName=zw.displayName;const eD=Rc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),i1=x.forwardRef(({className:e,variant:n,...r},i)=>g.jsx(Iw,{ref:i,className:ue(eD({variant:n}),e),...r}));i1.displayName=Iw.displayName;const tD=x.forwardRef(({className:e,...n},r)=>g.jsx(Hw,{ref:r,className:ue("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...n}));tD.displayName=Hw.displayName;const o1=x.forwardRef(({className:e,...n},r)=>g.jsx(Fw,{ref:r,className:ue("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...n,children:g.jsx(no,{className:"h-4 w-4"})}));o1.displayName=Fw.displayName;const l1=x.forwardRef(({className:e,...n},r)=>g.jsx(Bw,{ref:r,className:ue("text-sm font-semibold",e),...n}));l1.displayName=Bw.displayName;const s1=x.forwardRef(({className:e,...n},r)=>g.jsx(Uw,{ref:r,className:ue("text-sm opacity-90",e),...n}));s1.displayName=Uw.displayName;function nD(){const{toasts:e}=QN();return g.jsxs(Jj,{children:[e.map(function({id:n,title:r,description:i,action:l,...s}){return g.jsxs(i1,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[r&&g.jsx(l1,{children:r}),i&&g.jsx(s1,{children:i})]}),l,g.jsx(o1,{})]},n)}),g.jsx(a1,{})]})}function rD({children:e}){const{isAuthenticated:n,authEnabled:r,isLoading:i}=gw(),l=$n();return i?g.jsx("div",{className:"min-h-screen flex items-center justify-center",children:g.jsx(ac,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r?n?g.jsx(g.Fragment,{children:e}):g.jsx(jR,{to:"/login",state:{from:l},replace:!0}):g.jsx(g.Fragment,{children:e})}function aD(){return g.jsx("div",{className:"flex items-center justify-center min-h-screen",children:g.jsxs("div",{className:"flex flex-col items-center gap-4",children:[g.jsx(ac,{className:"h-8 w-8 animate-spin text-primary"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}const Ch=768;function u1(){const[e,n]=x.useState(void 0);return x.useEffect(()=>{const r=window.matchMedia(`(max-width: ${Ch-1}px)`),i=()=>{n(window.innerWidth<Ch)};return r.addEventListener("change",i),n(window.innerWidth<Ch),()=>r.removeEventListener("change",i)},[]),!!e}const im=Rc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),kt=x.forwardRef(({className:e,variant:n,size:r,asChild:i=!1,...l},s)=>{const c=i?go:"button";return g.jsx(c,{className:ue(im({variant:n,size:r,className:e})),ref:s,...l})});kt.displayName="Button";const c1=x.forwardRef(({className:e,type:n,...r},i)=>g.jsx("input",{type:n,className:ue("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:i,...r}));c1.displayName="Input";var iD="Separator",Eb="horizontal",oD=["horizontal","vertical"],f1=x.forwardRef((e,n)=>{const{decorative:r,orientation:i=Eb,...l}=e,s=lD(i)?i:Eb,f=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return g.jsx(Ne.div,{"data-orientation":s,...f,...l,ref:n})});f1.displayName=iD;function lD(e){return oD.includes(e)}var d1=f1;const h1=x.forwardRef(({className:e,orientation:n="horizontal",decorative:r=!0,...i},l)=>g.jsx(d1,{ref:l,decorative:r,orientation:n,className:ue("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));h1.displayName=d1.displayName;var sD=V0[" useId ".trim().toString()]||(()=>{}),uD=0;function gr(e){const[n,r]=x.useState(sD());return qt(()=>{r(i=>i??String(uD++))},[e]),e||(n?`radix-${n}`:"")}var kh="focusScope.autoFocusOnMount",Ah="focusScope.autoFocusOnUnmount",Cb={bubbles:!1,cancelable:!0},cD="FocusScope",_c=x.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:s,...c}=e,[f,d]=x.useState(null),h=_t(l),m=_t(s),y=x.useRef(null),b=Be(n,E=>d(E)),w=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(i){let E=function(R){if(w.paused||!f)return;const O=R.target;f.contains(O)?y.current=O:Sa(y.current,{select:!0})},A=function(R){if(w.paused||!f)return;const O=R.relatedTarget;O!==null&&(f.contains(O)||Sa(y.current,{select:!0}))},T=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&Sa(f)};document.addEventListener("focusin",E),document.addEventListener("focusout",A);const N=new MutationObserver(T);return f&&N.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",A),N.disconnect()}}},[i,f,w.paused]),x.useEffect(()=>{if(f){Ab.add(w);const E=document.activeElement;if(!f.contains(E)){const T=new CustomEvent(kh,Cb);f.addEventListener(kh,h),f.dispatchEvent(T),T.defaultPrevented||(fD(gD(p1(f)),{select:!0}),document.activeElement===E&&Sa(f))}return()=>{f.removeEventListener(kh,h),setTimeout(()=>{const T=new CustomEvent(Ah,Cb);f.addEventListener(Ah,m),f.dispatchEvent(T),T.defaultPrevented||Sa(E??document.body,{select:!0}),f.removeEventListener(Ah,m),Ab.remove(w)},0)}}},[f,h,m,w]);const S=x.useCallback(E=>{if(!r&&!i||w.paused)return;const A=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,T=document.activeElement;if(A&&T){const N=E.currentTarget,[R,O]=dD(N);R&&O?!E.shiftKey&&T===O?(E.preventDefault(),r&&Sa(R,{select:!0})):E.shiftKey&&T===R&&(E.preventDefault(),r&&Sa(O,{select:!0})):T===N&&E.preventDefault()}},[r,i,w.paused]);return g.jsx(Ne.div,{tabIndex:-1,...c,ref:b,onKeyDown:S})});_c.displayName=cD;function fD(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(Sa(i,{select:n}),document.activeElement!==r)return}function dD(e){const n=p1(e),r=kb(n,e),i=kb(n.reverse(),e);return[r,i]}function p1(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function kb(e,n){for(const r of e)if(!hD(r,{upTo:n}))return r}function hD(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pD(e){return e instanceof HTMLInputElement&&"select"in e}function Sa(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pD(e)&&n&&e.select()}}var Ab=mD();function mD(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=Tb(e,n),e.unshift(n)},remove(n){e=Tb(e,n),e[0]?.resume()}}}function Tb(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function gD(e){return e.filter(n=>n.tagName!=="A")}var Th=0;function om(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rb()),document.body.insertAdjacentElement("beforeend",e[1]??Rb()),Th++,()=>{Th===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Th--}},[])}function Rb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pr=function(){return pr=Object.assign||function(n){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},pr.apply(this,arguments)};function m1(e,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function yD(e,n,r){if(r||arguments.length===2)for(var i=0,l=n.length,s;i<l;i++)(s||!(i in n))&&(s||(s=Array.prototype.slice.call(n,0,i)),s[i]=n[i]);return e.concat(s||Array.prototype.slice.call(n))}var Yu="right-scroll-bar-position",Ku="width-before-scroll-bar",vD="with-scroll-bars-hidden",xD="--removed-body-scroll-bar-size";function Rh(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function bD(e,n){var r=x.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=n,r.facade}var wD=typeof window<"u"?x.useLayoutEffect:x.useEffect,Nb=new WeakMap;function SD(e,n){var r=bD(null,function(i){return e.forEach(function(l){return Rh(l,i)})});return wD(function(){var i=Nb.get(r);if(i){var l=new Set(i),s=new Set(e),c=r.current;l.forEach(function(f){s.has(f)||Rh(f,null)}),s.forEach(function(f){l.has(f)||Rh(f,c)})}Nb.set(r,e)},[e]),r}function ED(e){return e}function CD(e,n){n===void 0&&(n=ED);var r=[],i=!1,l={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=n(s,i);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(i=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var d=function(){var m=c;c=[],m.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(m){c.push(m),h()},filter:function(m){return c=c.filter(m),r}}}};return l}function kD(e){e===void 0&&(e={});var n=CD(null);return n.options=pr({async:!0,ssr:!1},e),n}var g1=function(e){var n=e.sideCar,r=m1(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw new Error("Sidecar medium not found");return x.createElement(i,pr({},r))};g1.isSideCarExport=!0;function AD(e,n){return e.useMedium(n),g1}var y1=kD(),Nh=function(){},Mc=x.forwardRef(function(e,n){var r=x.useRef(null),i=x.useState({onScrollCapture:Nh,onWheelCapture:Nh,onTouchMoveCapture:Nh}),l=i[0],s=i[1],c=e.forwardProps,f=e.children,d=e.className,h=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noRelative,S=e.noIsolation,E=e.inert,A=e.allowPinchZoom,T=e.as,N=T===void 0?"div":T,R=e.gapMode,O=m1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=b,j=SD([r,n]),B=pr(pr({},O),l);return x.createElement(x.Fragment,null,m&&x.createElement(D,{sideCar:y1,removeScrollBar:h,shards:y,noRelative:w,noIsolation:S,inert:E,setCallbacks:s,allowPinchZoom:!!A,lockRef:r,gapMode:R}),c?x.cloneElement(x.Children.only(f),pr(pr({},B),{ref:j})):x.createElement(N,pr({},B,{className:d,ref:j}),f))});Mc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mc.classNames={fullWidth:Ku,zeroRight:Yu};var TD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=TD();return n&&e.setAttribute("nonce",n),e}function ND(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function _D(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var MD=function(){var e=0,n=null;return{add:function(r){e==0&&(n=RD())&&(ND(n,r),_D(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},jD=function(){var e=MD();return function(n,r){x.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},v1=function(){var e=jD(),n=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return n},DD={left:0,top:0,right:0,gap:0},_h=function(e){return parseInt(e||"",10)||0},OD=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],l=n[e==="padding"?"paddingRight":"marginRight"];return[_h(r),_h(i),_h(l)]},PD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DD;var n=OD(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,i-r+n[2]-n[0])}},LD=v1(),ro="data-scroll-locked",zD=function(e,n,r,i){var l=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
312
|
+
.`.concat(vD,` {
|
|
313
|
+
overflow: hidden `).concat(i,`;
|
|
314
|
+
padding-right: `).concat(f,"px ").concat(i,`;
|
|
315
|
+
}
|
|
316
|
+
body[`).concat(ro,`] {
|
|
317
|
+
overflow: hidden `).concat(i,`;
|
|
318
|
+
overscroll-behavior: contain;
|
|
319
|
+
`).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
320
|
+
padding-left: `.concat(l,`px;
|
|
321
|
+
padding-top: `).concat(s,`px;
|
|
322
|
+
padding-right: `).concat(c,`px;
|
|
323
|
+
margin-left:0;
|
|
324
|
+
margin-top:0;
|
|
325
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
326
|
+
`),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.`).concat(Yu,` {
|
|
330
|
+
right: `).concat(f,"px ").concat(i,`;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.`).concat(Ku,` {
|
|
334
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.`).concat(Yu," .").concat(Yu,` {
|
|
338
|
+
right: 0 `).concat(i,`;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.`).concat(Ku," .").concat(Ku,` {
|
|
342
|
+
margin-right: 0 `).concat(i,`;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
body[`).concat(ro,`] {
|
|
346
|
+
`).concat(xD,": ").concat(f,`px;
|
|
347
|
+
}
|
|
348
|
+
`)},_b=function(){var e=parseInt(document.body.getAttribute(ro)||"0",10);return isFinite(e)?e:0},ID=function(){x.useEffect(function(){return document.body.setAttribute(ro,(_b()+1).toString()),function(){var e=_b()-1;e<=0?document.body.removeAttribute(ro):document.body.setAttribute(ro,e.toString())}},[])},BD=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;ID();var s=x.useMemo(function(){return PD(l)},[l]);return x.createElement(LD,{styles:zD(s,!n,l,r?"":"!important")})},hp=!1;if(typeof window<"u")try{var Du=Object.defineProperty({},"passive",{get:function(){return hp=!0,!0}});window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{hp=!1}var Yi=hp?{passive:!1}:!1,UD=function(e){return e.tagName==="TEXTAREA"},x1=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!UD(e)&&r[n]==="visible")},HD=function(e){return x1(e,"overflowY")},FD=function(e){return x1(e,"overflowX")},Mb=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=b1(e,i);if(l){var s=w1(e,i),c=s[1],f=s[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},qD=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},VD=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},b1=function(e,n){return e==="v"?HD(n):FD(n)},w1=function(e,n){return e==="v"?qD(n):VD(n)},$D=function(e,n){return e==="h"&&n==="rtl"?-1:1},GD=function(e,n,r,i,l){var s=$D(e,window.getComputedStyle(n).direction),c=s*i,f=r.target,d=n.contains(f),h=!1,m=c>0,y=0,b=0;do{if(!f)break;var w=w1(e,f),S=w[0],E=w[1],A=w[2],T=E-A-s*S;(S||T)&&b1(e,f)&&(y+=T,b+=S);var N=f.parentNode;f=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!d&&f!==document.body||d&&(n.contains(f)||n===f));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(h=!0),h},Ou=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jb=function(e){return[e.deltaX,e.deltaY]},Db=function(e){return e&&"current"in e?e.current:e},YD=function(e,n){return e[0]===n[0]&&e[1]===n[1]},KD=function(e){return`
|
|
349
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
350
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
351
|
+
`)},XD=0,Ki=[];function QD(e){var n=x.useRef([]),r=x.useRef([0,0]),i=x.useRef(),l=x.useState(XD++)[0],s=x.useState(v1)[0],c=x.useRef(e);x.useEffect(function(){c.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var E=yD([e.lockRef.current],(e.shards||[]).map(Db),!0).filter(Boolean);return E.forEach(function(A){return A.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),E.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(E,A){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!c.current.allowPinchZoom;var T=Ou(E),N=r.current,R="deltaX"in E?E.deltaX:N[0]-T[0],O="deltaY"in E?E.deltaY:N[1]-T[1],D,j=E.target,B=Math.abs(R)>Math.abs(O)?"h":"v";if("touches"in E&&B==="h"&&j.type==="range")return!1;var F=Mb(B,j);if(!F)return!0;if(F?D=B:(D=B==="v"?"h":"v",F=Mb(B,j)),!F)return!1;if(!i.current&&"changedTouches"in E&&(R||O)&&(i.current=D),!D)return!0;var Z=i.current||D;return GD(Z,A,E,Z==="h"?R:O)},[]),d=x.useCallback(function(E){var A=E;if(!(!Ki.length||Ki[Ki.length-1]!==s)){var T="deltaY"in A?jb(A):Ou(A),N=n.current.filter(function(D){return D.name===A.type&&(D.target===A.target||A.target===D.shadowParent)&&YD(D.delta,T)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var R=(c.current.shards||[]).map(Db).filter(Boolean).filter(function(D){return D.contains(A.target)}),O=R.length>0?f(A,R[0]):!c.current.noIsolation;O&&A.cancelable&&A.preventDefault()}}},[]),h=x.useCallback(function(E,A,T,N){var R={name:E,delta:A,target:T,should:N,shadowParent:ZD(T)};n.current.push(R),setTimeout(function(){n.current=n.current.filter(function(O){return O!==R})},1)},[]),m=x.useCallback(function(E){r.current=Ou(E),i.current=void 0},[]),y=x.useCallback(function(E){h(E.type,jb(E),E.target,f(E,e.lockRef.current))},[]),b=x.useCallback(function(E){h(E.type,Ou(E),E.target,f(E,e.lockRef.current))},[]);x.useEffect(function(){return Ki.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",d,Yi),document.addEventListener("touchmove",d,Yi),document.addEventListener("touchstart",m,Yi),function(){Ki=Ki.filter(function(E){return E!==s}),document.removeEventListener("wheel",d,Yi),document.removeEventListener("touchmove",d,Yi),document.removeEventListener("touchstart",m,Yi)}},[]);var w=e.removeScrollBar,S=e.inert;return x.createElement(x.Fragment,null,S?x.createElement(s,{styles:KD(l)}):null,w?x.createElement(BD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZD(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const WD=AD(y1,QD);var jc=x.forwardRef(function(e,n){return x.createElement(Mc,pr({},e,{ref:n,sideCar:WD}))});jc.classNames=Mc.classNames;var JD=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Xi=new WeakMap,Pu=new WeakMap,Lu={},Mh=0,S1=function(e){return e&&(e.host||S1(e.parentNode))},eO=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=S1(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},tO=function(e,n,r,i){var l=eO(n,Array.isArray(e)?e:[e]);Lu[r]||(Lu[r]=new WeakMap);var s=Lu[r],c=[],f=new Set,d=new Set(l),h=function(y){!y||f.has(y)||(f.add(y),h(y.parentNode))};l.forEach(h);var m=function(y){!y||d.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))m(b);else try{var w=b.getAttribute(i),S=w!==null&&w!=="false",E=(Xi.get(b)||0)+1,A=(s.get(b)||0)+1;Xi.set(b,E),s.set(b,A),c.push(b),E===1&&S&&Pu.set(b,!0),A===1&&b.setAttribute(r,"true"),S||b.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return m(n),f.clear(),Mh++,function(){c.forEach(function(y){var b=Xi.get(y)-1,w=s.get(y)-1;Xi.set(y,b),s.set(y,w),b||(Pu.has(y)||y.removeAttribute(i),Pu.delete(y)),w||y.removeAttribute(r)}),Mh--,Mh||(Xi=new WeakMap,Xi=new WeakMap,Pu=new WeakMap,Lu={})}},lm=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=JD(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),tO(i,l,r,"aria-hidden")):function(){return null}},Dc="Dialog",[E1,C1]=Gn(Dc),[nO,or]=E1(Dc),k1=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=x.useRef(null),d=x.useRef(null),[h,m]=ka({prop:i,defaultProp:l??!1,onChange:s,caller:Dc});return g.jsx(nO,{scope:n,triggerRef:f,contentRef:d,contentId:gr(),titleId:gr(),descriptionId:gr(),open:h,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})};k1.displayName=Dc;var A1="DialogTrigger",T1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=or(A1,r),s=Be(n,l.triggerRef);return g.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":cm(l.open),...i,ref:s,onClick:pe(e.onClick,l.onOpenToggle)})});T1.displayName=A1;var sm="DialogPortal",[rO,R1]=E1(sm,{forceMount:void 0}),N1=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:l}=e,s=or(sm,n);return g.jsx(rO,{scope:n,forceMount:r,children:x.Children.map(i,c=>g.jsx(fn,{present:r||s.open,children:g.jsx(Wl,{asChild:!0,container:l,children:c})}))})};N1.displayName=sm;var ic="DialogOverlay",_1=x.forwardRef((e,n)=>{const r=R1(ic,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,s=or(ic,e.__scopeDialog);return s.modal?g.jsx(fn,{present:i||s.open,children:g.jsx(iO,{...l,ref:n})}):null});_1.displayName=ic;var aO=Ja("DialogOverlay.RemoveScroll"),iO=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=or(ic,r);return g.jsx(jc,{as:aO,allowPinchZoom:!0,shards:[l.contentRef],children:g.jsx(Ne.div,{"data-state":cm(l.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),ei="DialogContent",M1=x.forwardRef((e,n)=>{const r=R1(ei,e.__scopeDialog),{forceMount:i=r.forceMount,...l}=e,s=or(ei,e.__scopeDialog);return g.jsx(fn,{present:i||s.open,children:s.modal?g.jsx(oO,{...l,ref:n}):g.jsx(lO,{...l,ref:n})})});M1.displayName=ei;var oO=x.forwardRef((e,n)=>{const r=or(ei,e.__scopeDialog),i=x.useRef(null),l=Be(n,r.contentRef,i);return x.useEffect(()=>{const s=i.current;if(s)return lm(s)},[]),g.jsx(j1,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:pe(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault())})}),lO=x.forwardRef((e,n)=>{const r=or(ei,e.__scopeDialog),i=x.useRef(!1),l=x.useRef(!1);return g.jsx(j1,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(i.current||r.triggerRef.current?.focus(),s.preventDefault()),i.current=!1,l.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&l.current&&s.preventDefault()}})}),j1=x.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,...c}=e,f=or(ei,r),d=x.useRef(null),h=Be(n,d);return om(),g.jsxs(g.Fragment,{children:[g.jsx(_c,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:s,children:g.jsx(yo,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":cm(f.open),...c,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(uO,{titleId:f.titleId}),g.jsx(fO,{contentRef:d,descriptionId:f.descriptionId})]})]})}),um="DialogTitle",D1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=or(um,r);return g.jsx(Ne.h2,{id:l.titleId,...i,ref:n})});D1.displayName=um;var O1="DialogDescription",P1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=or(O1,r);return g.jsx(Ne.p,{id:l.descriptionId,...i,ref:n})});P1.displayName=O1;var L1="DialogClose",z1=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,l=or(L1,r);return g.jsx(Ne.button,{type:"button",...i,ref:n,onClick:pe(e.onClick,()=>l.onOpenChange(!1))})});z1.displayName=L1;function cm(e){return e?"open":"closed"}var I1="DialogTitleWarning",[sO,B1]=ZN(I1,{contentName:ei,titleName:um,docsSlug:"dialog"}),uO=({titleId:e})=>{const n=B1(I1),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
352
|
+
|
|
353
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
354
|
+
|
|
355
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cO="DialogDescriptionWarning",fO=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${B1(cO).contentName}}.`;return x.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},fm=k1,U1=T1,dm=N1,es=_1,ts=M1,ns=D1,rs=P1,Oc=z1;const H1=fm,dO=dm,F1=x.forwardRef(({className:e,...n},r)=>g.jsx(es,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));F1.displayName=es.displayName;const hO=Rc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),hm=x.forwardRef(({side:e="right",className:n,children:r,...i},l)=>g.jsxs(dO,{children:[g.jsx(F1,{}),g.jsxs(ts,{ref:l,className:ue(hO({side:e}),n),...i,children:[r,g.jsxs(Oc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[g.jsx(no,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));hm.displayName=ts.displayName;const pm=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});pm.displayName="SheetHeader";const mm=x.forwardRef(({className:e,...n},r)=>g.jsx(ns,{ref:r,className:ue("text-lg font-semibold text-foreground",e),...n}));mm.displayName=ns.displayName;const q1=x.forwardRef(({className:e,...n},r)=>g.jsx(rs,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));q1.displayName=rs.displayName;function Ob({className:e,...n}){return g.jsx("div",{className:ue("animate-pulse rounded-md bg-muted",e),...n})}const pO=["top","right","bottom","left"],Aa=Math.min,Nn=Math.max,oc=Math.round,zu=Math.floor,yr=e=>({x:e,y:e}),mO={left:"right",right:"left",bottom:"top",top:"bottom"},gO={start:"end",end:"start"};function pp(e,n,r){return Nn(e,Aa(n,r))}function Vr(e,n){return typeof e=="function"?e(n):e}function $r(e){return e.split("-")[0]}function bo(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}const yO=new Set(["top","bottom"]);function mr(e){return yO.has($r(e))?"y":"x"}function vm(e){return gm(mr(e))}function vO(e,n,r){r===void 0&&(r=!1);const i=bo(e),l=vm(e),s=ym(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=lc(c)),[c,lc(c)]}function xO(e){const n=lc(e);return[mp(e),n,mp(n)]}function mp(e){return e.replace(/start|end/g,n=>gO[n])}const Pb=["left","right"],Lb=["right","left"],bO=["top","bottom"],wO=["bottom","top"];function SO(e,n,r){switch(e){case"top":case"bottom":return r?n?Lb:Pb:n?Pb:Lb;case"left":case"right":return n?bO:wO;default:return[]}}function EO(e,n,r,i){const l=bo(e);let s=SO($r(e),r==="start",i);return l&&(s=s.map(c=>c+"-"+l),n&&(s=s.concat(s.map(mp)))),s}function lc(e){return e.replace(/left|right|bottom|top/g,n=>mO[n])}function CO(e){return{top:0,right:0,bottom:0,left:0,...e}}function V1(e){return typeof e!="number"?CO(e):{top:e,right:e,bottom:e,left:e}}function sc(e){const{x:n,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:n,right:n+i,bottom:r+l,x:n,y:r}}function zb(e,n,r){let{reference:i,floating:l}=e;const s=mr(n),c=vm(n),f=ym(c),d=$r(n),h=s==="y",m=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,b=i[f]/2-l[f]/2;let w;switch(d){case"top":w={x:m,y:i.y-l.height};break;case"bottom":w={x:m,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y};break;case"left":w={x:i.x-l.width,y};break;default:w={x:i.x,y:i.y}}switch(bo(n)){case"start":w[c]-=b*(r&&h?-1:1);break;case"end":w[c]+=b*(r&&h?-1:1);break}return w}const kO=async(e,n,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(n));let h=await c.getElementRects({reference:e,floating:n,strategy:l}),{x:m,y}=zb(h,i,d),b=i,w={},S=0;for(let E=0;E<f.length;E++){const{name:A,fn:T}=f[E],{x:N,y:R,data:O,reset:D}=await T({x:m,y,initialPlacement:i,placement:b,strategy:l,middlewareData:w,rects:h,platform:c,elements:{reference:e,floating:n}});m=N??m,y=R??y,w={...w,[A]:{...w[A],...O}},D&&S<=50&&(S++,typeof D=="object"&&(D.placement&&(b=D.placement),D.rects&&(h=D.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:l}):D.rects),{x:m,y}=zb(h,b,d)),E=-1)}return{x:m,y,placement:b,strategy:l,middlewareData:w}};async function Hl(e,n){var r;n===void 0&&(n={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=Vr(n,e),S=V1(w),A=f[b?y==="floating"?"reference":"floating":y],T=sc(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(A)))==null||r?A:A.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:m,strategy:d})),N=y==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),O=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},D=sc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:R,strategy:d}):N);return{top:(T.top-D.top+S.top)/O.y,bottom:(D.bottom-T.bottom+S.bottom)/O.y,left:(T.left-D.left+S.left)/O.x,right:(D.right-T.right+S.right)/O.x}}const AO=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:l,rects:s,platform:c,elements:f,middlewareData:d}=n,{element:h,padding:m=0}=Vr(e,n)||{};if(h==null)return{};const y=V1(m),b={x:r,y:i},w=vm(l),S=ym(w),E=await c.getDimensions(h),A=w==="y",T=A?"top":"left",N=A?"bottom":"right",R=A?"clientHeight":"clientWidth",O=s.reference[S]+s.reference[w]-b[w]-s.floating[S],D=b[w]-s.reference[w],j=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let B=j?j[R]:0;(!B||!await(c.isElement==null?void 0:c.isElement(j)))&&(B=f.floating[R]||s.floating[S]);const F=O/2-D/2,Z=B/2-E[S]/2-1,L=Aa(y[T],Z),W=Aa(y[N],Z),J=L,ae=B-E[S]-W,K=B/2-E[S]/2+F,ie=pp(J,K,ae),z=!d.arrow&&bo(l)!=null&&K!==ie&&s.reference[S]/2-(K<J?L:W)-E[S]/2<0,X=z?K<J?K-J:K-ae:0;return{[w]:b[w]+X,data:{[w]:ie,centerOffset:K-ie-X,...z&&{alignmentOffset:X}},reset:z}}}),TO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:l,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:E=!0,...A}=Vr(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const T=$r(l),N=mr(f),R=$r(f)===f,O=await(d.isRTL==null?void 0:d.isRTL(h.floating)),D=b||(R||!E?[lc(f)]:xO(f)),j=S!=="none";!b&&j&&D.push(...EO(f,E,S,O));const B=[f,...D],F=await Hl(n,A),Z=[];let L=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&Z.push(F[T]),y){const K=vO(l,c,O);Z.push(F[K[0]],F[K[1]])}if(L=[...L,{placement:l,overflows:Z}],!Z.every(K=>K<=0)){var W,J;const K=(((W=s.flip)==null?void 0:W.index)||0)+1,ie=B[K];if(ie&&(!(y==="alignment"?N!==mr(ie):!1)||L.every(H=>mr(H.placement)===N?H.overflows[0]>0:!0)))return{data:{index:K,overflows:L},reset:{placement:ie}};let z=(J=L.filter(X=>X.overflows[0]<=0).sort((X,H)=>X.overflows[1]-H.overflows[1])[0])==null?void 0:J.placement;if(!z)switch(w){case"bestFit":{var ae;const X=(ae=L.filter(H=>{if(j){const re=mr(H.placement);return re===N||re==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(re=>re>0).reduce((re,k)=>re+k,0)]).sort((H,re)=>H[1]-re[1])[0])==null?void 0:ae[0];X&&(z=X);break}case"initialPlacement":z=f;break}if(l!==z)return{reset:{placement:z}}}return{}}}};function Ib(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Bb(e){return pO.some(n=>e[n]>=0)}const RO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...l}=Vr(e,n);switch(i){case"referenceHidden":{const s=await Hl(n,{...l,elementContext:"reference"}),c=Ib(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Bb(c)}}}case"escaped":{const s=await Hl(n,{...l,altBoundary:!0}),c=Ib(s,r.floating);return{data:{escapedOffsets:c,escaped:Bb(c)}}}default:return{}}}}},$1=new Set(["left","top"]);async function NO(e,n){const{placement:r,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=$r(r),f=bo(r),d=mr(r)==="y",h=$1.has(c)?-1:1,m=s&&d?-1:1,y=Vr(n,e);let{mainAxis:b,crossAxis:w,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof S=="number"&&(w=f==="end"?S*-1:S),d?{x:w*m,y:b*h}:{x:b*h,y:w*m}}const _O=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:l,y:s,placement:c,middlewareData:f}=n,d=await NO(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:c}}}}},MO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:l}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:A=>{let{x:T,y:N}=A;return{x:T,y:N}}},...d}=Vr(e,n),h={x:r,y:i},m=await Hl(n,d),y=mr($r(l)),b=gm(y);let w=h[b],S=h[y];if(s){const A=b==="y"?"top":"left",T=b==="y"?"bottom":"right",N=w+m[A],R=w-m[T];w=pp(N,w,R)}if(c){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",N=S+m[A],R=S-m[T];S=pp(N,S,R)}const E=f.fn({...n,[b]:w,[y]:S});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[b]:s,[y]:c}}}}}},jO=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:l,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=Vr(e,n),m={x:r,y:i},y=mr(l),b=gm(y);let w=m[b],S=m[y];const E=Vr(f,n),A=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(d){const R=b==="y"?"height":"width",O=s.reference[b]-s.floating[R]+A.mainAxis,D=s.reference[b]+s.reference[R]-A.mainAxis;w<O?w=O:w>D&&(w=D)}if(h){var T,N;const R=b==="y"?"width":"height",O=$1.has($r(l)),D=s.reference[y]-s.floating[R]+(O&&((T=c.offset)==null?void 0:T[y])||0)+(O?0:A.crossAxis),j=s.reference[y]+s.reference[R]+(O?0:((N=c.offset)==null?void 0:N[y])||0)-(O?A.crossAxis:0);S<D?S=D:S>j&&(S=j)}return{[b]:w,[y]:S}}}},DO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:l,rects:s,platform:c,elements:f}=n,{apply:d=()=>{},...h}=Vr(e,n),m=await Hl(n,h),y=$r(l),b=bo(l),w=mr(l)==="y",{width:S,height:E}=s.floating;let A,T;y==="top"||y==="bottom"?(A=y,T=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(T=y,A=b==="end"?"top":"bottom");const N=E-m.top-m.bottom,R=S-m.left-m.right,O=Aa(E-m[A],N),D=Aa(S-m[T],R),j=!n.middlewareData.shift;let B=O,F=D;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(F=R),(i=n.middlewareData.shift)!=null&&i.enabled.y&&(B=N),j&&!b){const L=Nn(m.left,0),W=Nn(m.right,0),J=Nn(m.top,0),ae=Nn(m.bottom,0);w?F=S-2*(L!==0||W!==0?L+W:Nn(m.left,m.right)):B=E-2*(J!==0||ae!==0?J+ae:Nn(m.top,m.bottom))}await d({...n,availableWidth:F,availableHeight:B});const Z=await c.getDimensions(f.floating);return S!==Z.width||E!==Z.height?{reset:{rects:!0}}:{}}}};function Pc(){return typeof window<"u"}function wo(e){return G1(e)?(e.nodeName||"").toLowerCase():"#document"}function _n(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function xr(e){var n;return(n=(G1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function G1(e){return Pc()?e instanceof Node||e instanceof _n(e).Node:!1}function rr(e){return Pc()?e instanceof Element||e instanceof _n(e).Element:!1}function vr(e){return Pc()?e instanceof HTMLElement||e instanceof _n(e).HTMLElement:!1}function Ub(e){return!Pc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _n(e).ShadowRoot}const OO=new Set(["inline","contents"]);function as(e){const{overflow:n,overflowX:r,overflowY:i,display:l}=ar(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!OO.has(l)}const PO=new Set(["table","td","th"]);function LO(e){return PO.has(wo(e))}const zO=[":popover-open",":modal"];function Lc(e){return zO.some(n=>{try{return e.matches(n)}catch{return!1}})}const IO=["transform","translate","scale","rotate","perspective"],BO=["transform","translate","scale","rotate","perspective","filter"],UO=["paint","layout","strict","content"];function xm(e){const n=bm(),r=rr(e)?ar(e):e;return IO.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!n&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!n&&(r.filter?r.filter!=="none":!1)||BO.some(i=>(r.willChange||"").includes(i))||UO.some(i=>(r.contain||"").includes(i))}function HO(e){let n=Ta(e);for(;vr(n)&&!lo(n);){if(xm(n))return n;if(Lc(n))return null;n=Ta(n)}return null}function bm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const FO=new Set(["html","body","#document"]);function lo(e){return FO.has(wo(e))}function ar(e){return _n(e).getComputedStyle(e)}function zc(e){return rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ta(e){if(wo(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Ub(e)&&e.host||xr(e);return Ub(n)?n.host:n}function Y1(e){const n=Ta(e);return lo(n)?e.ownerDocument?e.ownerDocument.body:e.body:vr(n)&&as(n)?n:Y1(n)}function Fl(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=Y1(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),c=_n(l);if(s){const f=gp(c);return n.concat(c,c.visualViewport||[],as(l)?l:[],f&&r?Fl(f):[])}return n.concat(l,Fl(l,[],r))}function gp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function K1(e){const n=ar(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const l=vr(e),s=l?e.offsetWidth:r,c=l?e.offsetHeight:i,f=oc(r)!==s||oc(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function wm(e){return rr(e)?e:e.contextElement}function ao(e){const n=wm(e);if(!vr(n))return yr(1);const r=n.getBoundingClientRect(),{width:i,height:l,$:s}=K1(n);let c=(s?oc(r.width):r.width)/i,f=(s?oc(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const qO=yr(0);function X1(e){const n=_n(e);return!bm()||!n.visualViewport?qO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function VO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==_n(e)?!1:n}function ti(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=wm(e);let c=yr(1);n&&(i?rr(i)&&(c=ao(i)):c=ao(e));const f=VO(s,r,i)?X1(s):yr(0);let d=(l.left+f.x)/c.x,h=(l.top+f.y)/c.y,m=l.width/c.x,y=l.height/c.y;if(s){const b=_n(s),w=i&&rr(i)?_n(i):i;let S=b,E=gp(S);for(;E&&i&&w!==S;){const A=ao(E),T=E.getBoundingClientRect(),N=ar(E),R=T.left+(E.clientLeft+parseFloat(N.paddingLeft))*A.x,O=T.top+(E.clientTop+parseFloat(N.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,y*=A.y,d+=R,h+=O,S=_n(E),E=gp(S)}}return sc({width:m,height:y,x:d,y:h})}function Sm(e,n){const r=zc(e).scrollLeft;return n?n.left+r:ti(xr(e)).left+r}function Q1(e,n,r){r===void 0&&(r=!1);const i=e.getBoundingClientRect(),l=i.left+n.scrollLeft-(r?0:Sm(e,i)),s=i.top+n.scrollTop;return{x:l,y:s}}function $O(e){let{elements:n,rect:r,offsetParent:i,strategy:l}=e;const s=l==="fixed",c=xr(i),f=n?Lc(n.floating):!1;if(i===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=yr(1);const m=yr(0),y=vr(i);if((y||!y&&!s)&&((wo(i)!=="body"||as(c))&&(d=zc(i)),vr(i))){const w=ti(i);h=ao(i),m.x=w.x+i.clientLeft,m.y=w.y+i.clientTop}const b=c&&!y&&!s?Q1(c,d,!0):yr(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:r.y*h.y-d.scrollTop*h.y+m.y+b.y}}function GO(e){return Array.from(e.getClientRects())}function YO(e){const n=xr(e),r=zc(e),i=e.ownerDocument.body,l=Nn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=Nn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+Sm(e);const f=-r.scrollTop;return ar(i).direction==="rtl"&&(c+=Nn(n.clientWidth,i.clientWidth)-l),{width:l,height:s,x:c,y:f}}function KO(e,n){const r=_n(e),i=xr(e),l=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,d=0;if(l){s=l.width,c=l.height;const h=bm();(!h||h&&n==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}return{width:s,height:c,x:f,y:d}}const XO=new Set(["absolute","fixed"]);function QO(e,n){const r=ti(e,!0,n==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,s=vr(e)?ao(e):yr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=l*s.x,h=i*s.y;return{width:c,height:f,x:d,y:h}}function Hb(e,n,r){let i;if(n==="viewport")i=KO(e,r);else if(n==="document")i=YO(xr(e));else if(rr(n))i=QO(n,r);else{const l=X1(e);i={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return sc(i)}function Z1(e,n){const r=Ta(e);return r===n||!rr(r)||lo(r)?!1:ar(r).position==="fixed"||Z1(r,n)}function ZO(e,n){const r=n.get(e);if(r)return r;let i=Fl(e,[],!1).filter(f=>rr(f)&&wo(f)!=="body"),l=null;const s=ar(e).position==="fixed";let c=s?Ta(e):e;for(;rr(c)&&!lo(c);){const f=ar(c),d=xm(c);!d&&f.position==="fixed"&&(l=null),(s?!d&&!l:!d&&f.position==="static"&&!!l&&XO.has(l.position)||as(c)&&!d&&Z1(e,c))?i=i.filter(m=>m!==c):l=f,c=Ta(c)}return n.set(e,i),i}function WO(e){let{element:n,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?Lc(n)?[]:ZO(n,this._c):[].concat(r),i],f=c[0],d=c.reduce((h,m)=>{const y=Hb(n,m,l);return h.top=Nn(y.top,h.top),h.right=Aa(y.right,h.right),h.bottom=Aa(y.bottom,h.bottom),h.left=Nn(y.left,h.left),h},Hb(n,f,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function JO(e){const{width:n,height:r}=K1(e);return{width:n,height:r}}function e4(e,n,r){const i=vr(n),l=xr(n),s=r==="fixed",c=ti(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const d=yr(0);function h(){d.x=Sm(l)}if(i||!i&&!s)if((wo(n)!=="body"||as(l))&&(f=zc(n)),i){const w=ti(n,!0,s,n);d.x=w.x+n.clientLeft,d.y=w.y+n.clientTop}else l&&h();s&&!i&&l&&h();const m=l&&!i&&!s?Q1(l,f):yr(0),y=c.left+f.scrollLeft-d.x-m.x,b=c.top+f.scrollTop-d.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function jh(e){return ar(e).position==="static"}function Fb(e,n){if(!vr(e)||ar(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return xr(e)===r&&(r=r.ownerDocument.body),r}function W1(e,n){const r=_n(e);if(Lc(e))return r;if(!vr(e)){let l=Ta(e);for(;l&&!lo(l);){if(rr(l)&&!jh(l))return l;l=Ta(l)}return r}let i=Fb(e,n);for(;i&&LO(i)&&jh(i);)i=Fb(i,n);return i&&lo(i)&&jh(i)&&!xm(i)?r:i||HO(e)||r}const t4=async function(e){const n=this.getOffsetParent||W1,r=this.getDimensions,i=await r(e.floating);return{reference:e4(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function n4(e){return ar(e).direction==="rtl"}const r4={convertOffsetParentRelativeRectToViewportRelativeRect:$O,getDocumentElement:xr,getClippingRect:WO,getOffsetParent:W1,getElementRects:t4,getClientRects:GO,getDimensions:JO,getScale:ao,isElement:rr,isRTL:n4};function J1(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function a4(e,n){let r=null,i;const l=xr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:m,top:y,width:b,height:w}=h;if(f||n(),!b||!w)return;const S=zu(y),E=zu(l.clientWidth-(m+b)),A=zu(l.clientHeight-(y+w)),T=zu(m),R={rootMargin:-S+"px "+-E+"px "+-A+"px "+-T+"px",threshold:Nn(0,Aa(1,d))||1};let O=!0;function D(j){const B=j[0].intersectionRatio;if(B!==d){if(!O)return c();B?c(!1,B):i=setTimeout(()=>{c(!1,1e-7)},1e3)}B===1&&!J1(h,e.getBoundingClientRect())&&c(),O=!1}try{r=new IntersectionObserver(D,{...R,root:l.ownerDocument})}catch{r=new IntersectionObserver(D,R)}r.observe(e)}return c(!0),s}function i4(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=wm(e),m=l||s?[...h?Fl(h):[],...Fl(n)]:[];m.forEach(T=>{l&&T.addEventListener("scroll",r,{passive:!0}),s&&T.addEventListener("resize",r)});const y=h&&f?a4(h,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(T=>{let[N]=T;N&&N.target===h&&w&&(w.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=w)==null||R.observe(n)})),r()}),h&&!d&&w.observe(h),w.observe(n));let S,E=d?ti(e):null;d&&A();function A(){const T=ti(e);E&&!J1(E,T)&&r(),E=T,S=requestAnimationFrame(A)}return r(),()=>{var T;m.forEach(N=>{l&&N.removeEventListener("scroll",r),s&&N.removeEventListener("resize",r)}),y?.(),(T=w)==null||T.disconnect(),w=null,d&&cancelAnimationFrame(S)}}const o4=_O,l4=MO,s4=TO,u4=DO,c4=RO,qb=AO,f4=jO,d4=(e,n,r)=>{const i=new Map,l={platform:r4,...r},s={...l.platform,_c:i};return kO(e,n,{...l,platform:s})};var h4=typeof document<"u",p4=function(){},Xu=h4?x.useLayoutEffect:p4;function uc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,i,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(i=r;i--!==0;)if(!uc(e[i],n[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,l[i]))return!1;for(i=r;i--!==0;){const s=l[i];if(!(s==="_owner"&&e.$$typeof)&&!uc(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function eS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vb(e,n){const r=eS(e);return Math.round(n*r)/r}function Dh(e){const n=x.useRef(e);return Xu(()=>{n.current=e}),n}function m4(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[m,y]=x.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,w]=x.useState(i);uc(b,i)||w(i);const[S,E]=x.useState(null),[A,T]=x.useState(null),N=x.useCallback(H=>{H!==j.current&&(j.current=H,E(H))},[]),R=x.useCallback(H=>{H!==B.current&&(B.current=H,T(H))},[]),O=s||S,D=c||A,j=x.useRef(null),B=x.useRef(null),F=x.useRef(m),Z=d!=null,L=Dh(d),W=Dh(l),J=Dh(h),ae=x.useCallback(()=>{if(!j.current||!B.current)return;const H={placement:n,strategy:r,middleware:b};W.current&&(H.platform=W.current),d4(j.current,B.current,H).then(re=>{const k={...re,isPositioned:J.current!==!1};K.current&&!uc(F.current,k)&&(F.current=k,mo.flushSync(()=>{y(k)}))})},[b,n,r,W,J]);Xu(()=>{h===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,y(H=>({...H,isPositioned:!1})))},[h]);const K=x.useRef(!1);Xu(()=>(K.current=!0,()=>{K.current=!1}),[]),Xu(()=>{if(O&&(j.current=O),D&&(B.current=D),O&&D){if(L.current)return L.current(O,D,ae);ae()}},[O,D,ae,L,Z]);const ie=x.useMemo(()=>({reference:j,floating:B,setReference:N,setFloating:R}),[N,R]),z=x.useMemo(()=>({reference:O,floating:D}),[O,D]),X=x.useMemo(()=>{const H={position:r,left:0,top:0};if(!z.floating)return H;const re=Vb(z.floating,m.x),k=Vb(z.floating,m.y);return f?{...H,transform:"translate("+re+"px, "+k+"px)",...eS(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:k}},[r,f,z.floating,m.x,m.y]);return x.useMemo(()=>({...m,update:ae,refs:ie,elements:z,floatingStyles:X}),[m,ae,ie,z,X])}const g4=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?qb({element:i.current,padding:l}).fn(r):{}:i?qb({element:i,padding:l}).fn(r):{}}}},y4=(e,n)=>({...o4(e),options:[e,n]}),v4=(e,n)=>({...l4(e),options:[e,n]}),x4=(e,n)=>({...f4(e),options:[e,n]}),b4=(e,n)=>({...s4(e),options:[e,n]}),w4=(e,n)=>({...u4(e),options:[e,n]}),S4=(e,n)=>({...c4(e),options:[e,n]}),E4=(e,n)=>({...g4(e),options:[e,n]});var C4="Arrow",tS=x.forwardRef((e,n)=>{const{children:r,width:i=10,height:l=5,...s}=e;return g.jsx(Ne.svg,{...s,ref:n,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});tS.displayName=C4;var k4=tS;function nS(e){const[n,r]=x.useState(void 0);return qt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),n}var Em="Popper",[rS,So]=Gn(Em),[A4,aS]=rS(Em),iS=e=>{const{__scopePopper:n,children:r}=e,[i,l]=x.useState(null);return g.jsx(A4,{scope:n,anchor:i,onAnchorChange:l,children:r})};iS.displayName=Em;var oS="PopperAnchor",lS=x.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...l}=e,s=aS(oS,r),c=x.useRef(null),f=Be(n,c),d=x.useRef(null);return x.useEffect(()=>{const h=d.current;d.current=i?.current||c.current,h!==d.current&&s.onAnchorChange(d.current)}),i?null:g.jsx(Ne.div,{...l,ref:f})});lS.displayName=oS;var Cm="PopperContent",[T4,R4]=rS(Cm),sS=x.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:S,...E}=e,A=aS(Cm,r),[T,N]=x.useState(null),R=Be(n,se=>N(se)),[O,D]=x.useState(null),j=nS(O),B=j?.width??0,F=j?.height??0,Z=i+(s!=="center"?"-"+s:""),L=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},W=Array.isArray(h)?h:[h],J=W.length>0,ae={padding:L,boundary:W.filter(_4),altBoundary:J},{refs:K,floatingStyles:ie,placement:z,isPositioned:X,middlewareData:H}=m4({strategy:"fixed",placement:Z,whileElementsMounted:(...se)=>i4(...se,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[y4({mainAxis:l+F,alignmentAxis:c}),d&&v4({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?x4():void 0,...ae}),d&&b4({...ae}),w4({...ae,apply:({elements:se,rects:ge,availableWidth:Oe,availableHeight:De})=>{const{width:Pe,height:Ue}=ge.reference,ft=se.floating.style;ft.setProperty("--radix-popper-available-width",`${Oe}px`),ft.setProperty("--radix-popper-available-height",`${De}px`),ft.setProperty("--radix-popper-anchor-width",`${Pe}px`),ft.setProperty("--radix-popper-anchor-height",`${Ue}px`)}}),O&&E4({element:O,padding:f}),M4({arrowWidth:B,arrowHeight:F}),b&&S4({strategy:"referenceHidden",...ae})]}),[re,k]=fS(z),Q=_t(S);qt(()=>{X&&Q?.()},[X,Q]);const le=H.arrow?.x,M=H.arrow?.y,ce=H.arrow?.centerOffset!==0,[Se,me]=x.useState();return qt(()=>{T&&me(window.getComputedStyle(T).zIndex)},[T]),g.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:X?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(T4,{scope:r,placedSide:re,onArrowChange:D,arrowX:le,arrowY:M,shouldHideArrow:ce,children:g.jsx(Ne.div,{"data-side":re,"data-align":k,...E,ref:R,style:{...E.style,animation:X?void 0:"none"}})})})});sS.displayName=Cm;var uS="PopperArrow",N4={top:"bottom",right:"left",bottom:"top",left:"right"},cS=x.forwardRef(function(n,r){const{__scopePopper:i,...l}=n,s=R4(uS,i),c=N4[s.placedSide];return g.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:g.jsx(k4,{...l,ref:r,style:{...l.style,display:"block"}})})});cS.displayName=uS;function _4(e){return e!==null}var M4=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:l}=n,c=l.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,m]=fS(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(l.arrow?.x??0)+f/2,w=(l.arrow?.y??0)+d/2;let S="",E="";return h==="bottom"?(S=c?y:`${b}px`,E=`${-d}px`):h==="top"?(S=c?y:`${b}px`,E=`${i.floating.height+d}px`):h==="right"?(S=`${-d}px`,E=c?y:`${w}px`):h==="left"&&(S=`${i.floating.width+d}px`,E=c?y:`${w}px`),{data:{x:S,y:E}}}});function fS(e){const[n,r="center"]=e.split("-");return[n,r]}var km=iS,Am=lS,Tm=sS,Rm=cS,[Ic,GU]=Gn("Tooltip",[So]),Bc=So(),dS="TooltipProvider",j4=700,yp="tooltip.open",[D4,Nm]=Ic(dS),hS=e=>{const{__scopeTooltip:n,delayDuration:r=j4,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:s}=e,c=x.useRef(!0),f=x.useRef(!1),d=x.useRef(0);return x.useEffect(()=>{const h=d.current;return()=>window.clearTimeout(h)},[]),g.jsx(D4,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(d.current),c.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(h=>{f.current=h},[]),disableHoverableContent:l,children:s})};hS.displayName=dS;var ql="Tooltip",[O4,Uc]=Ic(ql),pS=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:l,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,d=Nm(ql,e.__scopeTooltip),h=Bc(n),[m,y]=x.useState(null),b=gr(),w=x.useRef(0),S=c??d.disableHoverableContent,E=f??d.delayDuration,A=x.useRef(!1),[T,N]=ka({prop:i,defaultProp:l??!1,onChange:B=>{B?(d.onOpen(),document.dispatchEvent(new CustomEvent(yp))):d.onClose(),s?.(B)},caller:ql}),R=x.useMemo(()=>T?A.current?"delayed-open":"instant-open":"closed",[T]),O=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,N(!0)},[N]),D=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,N(!1)},[N]),j=x.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,N(!0),w.current=0},E)},[E,N]);return x.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(km,{...h,children:g.jsx(O4,{scope:n,contentId:b,open:T,stateAttribute:R,trigger:m,onTriggerChange:y,onTriggerEnter:x.useCallback(()=>{d.isOpenDelayedRef.current?j():O()},[d.isOpenDelayedRef,j,O]),onTriggerLeave:x.useCallback(()=>{S?D():(window.clearTimeout(w.current),w.current=0)},[D,S]),onOpen:O,onClose:D,disableHoverableContent:S,children:r})})};pS.displayName=ql;var vp="TooltipTrigger",mS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=Uc(vp,r),s=Nm(vp,r),c=Bc(r),f=x.useRef(null),d=Be(n,f,l.onTriggerChange),h=x.useRef(!1),m=x.useRef(!1),y=x.useCallback(()=>h.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(Am,{asChild:!0,...c,children:g.jsx(Ne.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:d,onPointerMove:pe(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(l.onTriggerEnter(),m.current=!0)}),onPointerLeave:pe(e.onPointerLeave,()=>{l.onTriggerLeave(),m.current=!1}),onPointerDown:pe(e.onPointerDown,()=>{l.open&&l.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:pe(e.onFocus,()=>{h.current||l.onOpen()}),onBlur:pe(e.onBlur,l.onClose),onClick:pe(e.onClick,l.onClose)})})});mS.displayName=vp;var P4="TooltipPortal",[YU,L4]=Ic(P4,{forceMount:void 0}),so="TooltipContent",gS=x.forwardRef((e,n)=>{const r=L4(so,e.__scopeTooltip),{forceMount:i=r.forceMount,side:l="top",...s}=e,c=Uc(so,e.__scopeTooltip);return g.jsx(fn,{present:i||c.open,children:c.disableHoverableContent?g.jsx(yS,{side:l,...s,ref:n}):g.jsx(z4,{side:l,...s,ref:n})})}),z4=x.forwardRef((e,n)=>{const r=Uc(so,e.__scopeTooltip),i=Nm(so,e.__scopeTooltip),l=x.useRef(null),s=Be(n,l),[c,f]=x.useState(null),{trigger:d,onClose:h}=r,m=l.current,{onPointerInTransitChange:y}=i,b=x.useCallback(()=>{f(null),y(!1)},[y]),w=x.useCallback((S,E)=>{const A=S.currentTarget,T={x:S.clientX,y:S.clientY},N=F4(T,A.getBoundingClientRect()),R=q4(T,N),O=V4(E.getBoundingClientRect()),D=G4([...R,...O]);f(D),y(!0)},[y]);return x.useEffect(()=>()=>b(),[b]),x.useEffect(()=>{if(d&&m){const S=A=>w(A,m),E=A=>w(A,d);return d.addEventListener("pointerleave",S),m.addEventListener("pointerleave",E),()=>{d.removeEventListener("pointerleave",S),m.removeEventListener("pointerleave",E)}}},[d,m,w,b]),x.useEffect(()=>{if(c){const S=E=>{const A=E.target,T={x:E.clientX,y:E.clientY},N=d?.contains(A)||m?.contains(A),R=!$4(T,c);N?b():R&&(b(),h())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[d,m,c,h,b]),g.jsx(yS,{...e,ref:s})}),[I4,B4]=Ic(ql,{isInside:!1}),U4=xw("TooltipContent"),yS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,d=Uc(so,r),h=Bc(r),{onClose:m}=d;return x.useEffect(()=>(document.addEventListener(yp,m),()=>document.removeEventListener(yp,m)),[m]),x.useEffect(()=>{if(d.trigger){const y=b=>{b.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[d.trigger,m]),g.jsx(yo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(Tm,{"data-state":d.stateAttribute,...h,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(U4,{children:i}),g.jsx(I4,{scope:r,isInside:!0,children:g.jsx(w_,{id:d.contentId,role:"tooltip",children:l||i})})]})})});gS.displayName=so;var vS="TooltipArrow",H4=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,l=Bc(r);return B4(vS,r).isInside?null:g.jsx(Rm,{...l,...i,ref:n})});H4.displayName=vS;function F4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,l,s)){case s:return"left";case l:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function q4(e,n,r=5){const i=[];switch(n){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function V4(e){const{top:n,right:r,bottom:i,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:i},{x:l,y:i}]}function $4(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,b=d.y;m>i!=b>i&&r<(y-h)*(i-m)/(b-m)+h&&(l=!l)}return l}function G4(e){const n=e.slice();return n.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),Y4(n)}function Y4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const l=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const l=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(l.y-c.y)>=(s.y-c.y)*(l.x-c.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var K4=hS,X4=pS,Q4=mS,xS=gS;const Z4=K4,W4=X4,J4=Q4,bS=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(xS,{ref:i,sideOffset:n,className:ue("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));bS.displayName=xS.displayName;const eP="sidebar_state",tP=3600*24*7,nP="16rem",rP="18rem",aP="3rem",iP="b",wS=x.createContext(null);function Hc(){const e=x.useContext(wS);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const SS=x.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:l,children:s,...c},f)=>{const d=u1(),[h,m]=x.useState(!1),[y,b]=x.useState(e),w=n??y,S=x.useCallback(N=>{const R=typeof N=="function"?N(w):N;r?r(R):b(R),document.cookie=`${eP}=${R}; path=/; max-age=${tP}`},[r,w]),E=x.useCallback(()=>d?m(N=>!N):S(N=>!N),[d,S,m]);x.useEffect(()=>{const N=R=>{R.key===iP&&(R.metaKey||R.ctrlKey)&&(R.preventDefault(),E())};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[E]);const A=w?"expanded":"collapsed",T=x.useMemo(()=>({state:A,open:w,setOpen:S,isMobile:d,openMobile:h,setOpenMobile:m,toggleSidebar:E}),[A,w,S,d,h,m,E]);return g.jsx(wS.Provider,{value:T,children:g.jsx(Z4,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":nP,"--sidebar-width-icon":aP,...l},className:ue("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});SS.displayName="SidebarProvider";const ES=x.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:l,...s},c)=>{const{isMobile:f,state:d,openMobile:h,setOpenMobile:m}=Hc();return r==="none"?g.jsx("div",{className:ue("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:l}):f?g.jsx(H1,{open:h,onOpenChange:m,...s,children:g.jsxs(hm,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":rP},side:e,children:[g.jsxs(pm,{className:"sr-only",children:[g.jsx(mm,{children:"Sidebar"}),g.jsx(q1,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:l})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":d,"data-collapsible":d==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:ue("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",n==="floating"||n==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),g.jsx("div",{className:ue("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",n==="floating"||n==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",i),...s,children:g.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:l})})]})});ES.displayName="Sidebar";const CS=x.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:l}=Hc();return g.jsxs(kt,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ue("h-7 w-7",e),onClick:s=>{n?.(s),l()},...r,children:[g.jsx(FM,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});CS.displayName="SidebarTrigger";const oP=x.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=Hc();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:ue("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...n})});oP.displayName="SidebarRail";const kS=x.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:ue("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...n}));kS.displayName="SidebarInset";const lP=x.forwardRef(({className:e,...n},r)=>g.jsx(c1,{ref:r,"data-sidebar":"input",className:ue("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));lP.displayName="SidebarInput";const AS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:ue("flex flex-col gap-2 p-2",e),...n}));AS.displayName="SidebarHeader";const TS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:ue("flex flex-col gap-2 p-2",e),...n}));TS.displayName="SidebarFooter";const sP=x.forwardRef(({className:e,...n},r)=>g.jsx(h1,{ref:r,"data-sidebar":"separator",className:ue("mx-2 w-auto bg-sidebar-border",e),...n}));sP.displayName="SidebarSeparator";const RS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:ue("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));RS.displayName="SidebarContent";const Qu=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:ue("relative flex w-full min-w-0 flex-col p-2",e),...n}));Qu.displayName="SidebarGroup";const Zu=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?go:"div";return g.jsx(l,{ref:i,"data-sidebar":"group-label",className:ue("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})});Zu.displayName="SidebarGroupLabel";const uP=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const l=n?go:"button";return g.jsx(l,{ref:i,"data-sidebar":"group-action",className:ue("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...r})});uP.displayName="SidebarGroupAction";const Wu=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:ue("w-full text-sm",e),...n}));Wu.displayName="SidebarGroupContent";const Wi=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:ue("flex w-full min-w-0 flex-col gap-1",e),...n}));Wi.displayName="SidebarMenu";const Ji=x.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:ue("group/menu-item relative",e),...n}));Ji.displayName="SidebarMenuItem";const cP=Rc("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),eo=x.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:l,className:s,...c},f)=>{const d=e?go:"button",{isMobile:h,state:m}=Hc(),y=g.jsx(d,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:ue(cP({variant:r,size:i}),s),...c});return l?(typeof l=="string"&&(l={children:l}),g.jsxs(W4,{children:[g.jsx(J4,{asChild:!0,children:y}),g.jsx(bS,{side:"right",align:"center",hidden:m!=="collapsed"||h,...l})]})):y});eo.displayName="SidebarMenuButton";const fP=x.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},l)=>{const s=n?go:"button";return g.jsx(s,{ref:l,"data-sidebar":"menu-action",className:ue("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...i})});fP.displayName="SidebarMenuAction";const xp=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:ue("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-full px-1.5 text-xs font-semibold tabular-nums shadow-sm","transition-all duration-200 ease-in-out hover:scale-110","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...n}));xp.displayName="SidebarMenuBadge";const dP=x.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const l=x.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:ue("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(Ob,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(Ob,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]})});dP.displayName="SidebarMenuSkeleton";const hP=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:ue("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...n}));hP.displayName="SidebarMenuSub";const pP=x.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));pP.displayName="SidebarMenuSubItem";const mP=x.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...l},s)=>{const c=e?go:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:ue("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...l})});mP.displayName="SidebarMenuSubButton";const gP="1.0.71-alpha.2",yP={version:gP};function vP({className:e}){return g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:[g.jsx("path",{d:"M13 8c0-2.76-2.46-5-5.5-5S2 5.24 2 8h2l1-1 1 1h4"}),g.jsx("path",{d:"M13 7.14A5.82 5.82 0 0 1 16.5 6c3.04 0 5.5 2.24 5.5 5h-3l-1-1-1 1h-3"}),g.jsx("path",{d:"M5.89 9.71c-2.15 2.15-2.3 5.47-.35 7.43l4.24-4.25.7-.7.71-.71 2.12-2.12c-1.95-1.96-5.27-1.8-7.42.35"}),g.jsx("path",{d:"M11 15.5c.5 2.5-.17 4.5-1 6.5h4c2-5.5-.5-12-1-14"})]})}const xP=[{title:"Home",url:"/",icon:kM},{title:"Proposals",url:"/proposals",icon:hM},{title:"Agents",url:"/agents",icon:Ol},{title:"Code",url:"/code",icon:iM},{title:"Utilities",url:"/utilities",icon:yj}],bP=[{title:"Overview",url:"/context/project",icon:rc},{title:"Architecture",url:"/context/architecture",icon:QM},{title:"Knowledge",url:"/context/knowledge",icon:Y_},{title:"Resources",url:"/resources",icon:xM}],wP=[{title:"Source Control",url:"/git",icon:Yw},{title:"Terminal",url:"/terminal",icon:uj},{title:"Schedule",url:"/schedule",icon:X_},{title:"Identity",url:"/identity",icon:TM}],SP=[{title:"Documentation",url:"https://docs.coconut.dev/",icon:UM,external:!0},{title:"Settings",url:"/settings/user",icon:WM}];function EP(){const{badges:e}=qN();return g.jsxs(ES,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(AS,{children:g.jsx(Wi,{children:g.jsx(Ji,{children:g.jsx(eo,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs(Hr,{to:"/",children:[g.jsx(vP,{className:"size-8"}),g.jsxs("div",{className:"flex flex-col gap-0.5",children:[g.jsxs("span",{className:"font-semibold",children:[g.jsx("span",{className:"bg-gradient-to-r from-amber-500 via-orange-500 to-yellow-600 bg-clip-text text-transparent",children:"Coconut"}),g.jsx("span",{children:" Studio"})]}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:["v",yP.version]})]})]})})})})}),g.jsxs(RS,{children:[g.jsxs(Qu,{children:[g.jsx(Zu,{children:"Main"}),g.jsx(Wu,{children:g.jsx(Wi,{children:xP.map(n=>g.jsxs(Ji,{children:[g.jsx(eo,{asChild:!0,children:g.jsxs(Hr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),n.title==="Code"&&e.codeSessions>0&&g.jsx(xp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:e.codeSessions})]},n.title))})})]}),g.jsxs(Qu,{children:[g.jsx(Zu,{children:"Project"}),g.jsx(Wu,{children:g.jsx(Wi,{children:bP.map(n=>g.jsx(Ji,{children:g.jsx(eo,{asChild:!0,children:g.jsxs(Hr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]}),g.jsxs(Qu,{children:[g.jsx(Zu,{children:"System"}),g.jsx(Wu,{children:g.jsx(Wi,{children:wP.map(n=>{let r=0;return n.title==="Source Control"&&e.gitChanges>0?r=e.gitChanges:n.title==="Terminal"&&e.terminalSessions>0?r=e.terminalSessions:n.title==="Schedule"&&e.runningScheduledJobs>0&&(r=e.runningScheduledJobs),g.jsxs(Ji,{children:[g.jsx(eo,{asChild:!0,children:g.jsxs(Hr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})}),r>0&&g.jsx(xp,{className:"bg-blue-600 text-white dark:bg-blue-500",children:r})]},n.title)})})})]})]}),g.jsx(TS,{children:g.jsx(Wi,{children:SP.map(n=>g.jsx(Ji,{children:g.jsx(eo,{asChild:!0,children:n.external?g.jsxs("a",{href:n.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]}):g.jsxs(Hr,{to:n.url,children:[g.jsx(n.icon,{}),g.jsx("span",{children:n.title})]})})},n.title))})})]})}function bp(e,[n,r]){return Math.min(r,Math.max(n,e))}var CP=x.createContext(void 0);function Fc(e){const n=x.useContext(CP);return e||n||"ltr"}function NS(e){const n=x.useRef({value:e,previous:e});return x.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var kP=[" ","Enter","ArrowUp","ArrowDown"],AP=[" ","Enter"],ni="Select",[qc,Vc,TP]=kc(ni),[Eo,KU]=Gn(ni,[TP,So]),$c=So(),[RP,Ra]=Eo(ni),[NP,_P]=Eo(ni),_S=e=>{const{__scopeSelect:n,children:r,open:i,defaultOpen:l,onOpenChange:s,value:c,defaultValue:f,onValueChange:d,dir:h,name:m,autoComplete:y,disabled:b,required:w,form:S}=e,E=$c(n),[A,T]=x.useState(null),[N,R]=x.useState(null),[O,D]=x.useState(!1),j=Fc(h),[B,F]=ka({prop:i,defaultProp:l??!1,onChange:s,caller:ni}),[Z,L]=ka({prop:c,defaultProp:f,onChange:d,caller:ni}),W=x.useRef(null),J=A?S||!!A.closest("form"):!0,[ae,K]=x.useState(new Set),ie=Array.from(ae).map(z=>z.props.value).join(";");return g.jsx(km,{...E,children:g.jsxs(RP,{required:w,scope:n,trigger:A,onTriggerChange:T,valueNode:N,onValueNodeChange:R,valueNodeHasChildren:O,onValueNodeHasChildrenChange:D,contentId:gr(),value:Z,onValueChange:L,open:B,onOpenChange:F,dir:j,triggerPointerDownPosRef:W,disabled:b,children:[g.jsx(qc.Provider,{scope:n,children:g.jsx(NP,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(z=>{K(X=>new Set(X).add(z))},[]),onNativeOptionRemove:x.useCallback(z=>{K(X=>{const H=new Set(X);return H.delete(z),H})},[]),children:r})}),J?g.jsxs(eE,{"aria-hidden":!0,required:w,tabIndex:-1,name:m,autoComplete:y,value:Z,onChange:z=>L(z.target.value),disabled:b,form:S,children:[Z===void 0?g.jsx("option",{value:""}):null,Array.from(ae)]},ie):null]})})};_S.displayName=ni;var MS="SelectTrigger",jS=x.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:i=!1,...l}=e,s=$c(r),c=Ra(MS,r),f=c.disabled||i,d=Be(n,c.onTriggerChange),h=Vc(r),m=x.useRef("touch"),[y,b,w]=nE(E=>{const A=h().filter(R=>!R.disabled),T=A.find(R=>R.value===c.value),N=rE(A,E,T);N!==void 0&&c.onValueChange(N.value)}),S=E=>{f||(c.onOpenChange(!0),w()),E&&(c.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return g.jsx(Am,{asChild:!0,...s,children:g.jsx(Ne.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":tE(c.value)?"":void 0,...l,ref:d,onClick:pe(l.onClick,E=>{E.currentTarget.focus(),m.current!=="mouse"&&S(E)}),onPointerDown:pe(l.onPointerDown,E=>{m.current=E.pointerType;const A=E.target;A.hasPointerCapture(E.pointerId)&&A.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(S(E),E.preventDefault())}),onKeyDown:pe(l.onKeyDown,E=>{const A=y.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&b(E.key),!(A&&E.key===" ")&&kP.includes(E.key)&&(S(),E.preventDefault())})})})});jS.displayName=MS;var DS="SelectValue",OS=x.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,children:s,placeholder:c="",...f}=e,d=Ra(DS,r),{onValueNodeHasChildrenChange:h}=d,m=s!==void 0,y=Be(n,d.onValueNodeChange);return qt(()=>{h(m)},[h,m]),g.jsx(Ne.span,{...f,ref:y,style:{pointerEvents:"none"},children:tE(d.value)?g.jsx(g.Fragment,{children:c}):s})});OS.displayName=DS;var MP="SelectIcon",PS=x.forwardRef((e,n)=>{const{__scopeSelect:r,children:i,...l}=e;return g.jsx(Ne.span,{"aria-hidden":!0,...l,ref:n,children:i||"▼"})});PS.displayName=MP;var jP="SelectPortal",LS=e=>g.jsx(Wl,{asChild:!0,...e});LS.displayName=jP;var ri="SelectContent",zS=x.forwardRef((e,n)=>{const r=Ra(ri,e.__scopeSelect),[i,l]=x.useState();if(qt(()=>{l(new DocumentFragment)},[]),!r.open){const s=i;return s?mo.createPortal(g.jsx(IS,{scope:e.__scopeSelect,children:g.jsx(qc.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),s):null}return g.jsx(BS,{...e,ref:n})});zS.displayName=ri;var er=10,[IS,Na]=Eo(ri),DP="SelectContentImpl",OP=Ja("SelectContent.RemoveScroll"),BS=x.forwardRef((e,n)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:c,side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:E,avoidCollisions:A,...T}=e,N=Ra(ri,r),[R,O]=x.useState(null),[D,j]=x.useState(null),B=Be(n,se=>O(se)),[F,Z]=x.useState(null),[L,W]=x.useState(null),J=Vc(r),[ae,K]=x.useState(!1),ie=x.useRef(!1);x.useEffect(()=>{if(R)return lm(R)},[R]),om();const z=x.useCallback(se=>{const[ge,...Oe]=J().map(Ue=>Ue.ref.current),[De]=Oe.slice(-1),Pe=document.activeElement;for(const Ue of se)if(Ue===Pe||(Ue?.scrollIntoView({block:"nearest"}),Ue===ge&&D&&(D.scrollTop=0),Ue===De&&D&&(D.scrollTop=D.scrollHeight),Ue?.focus(),document.activeElement!==Pe))return},[J,D]),X=x.useCallback(()=>z([F,R]),[z,F,R]);x.useEffect(()=>{ae&&X()},[ae,X]);const{onOpenChange:H,triggerPointerDownPosRef:re}=N;x.useEffect(()=>{if(R){let se={x:0,y:0};const ge=De=>{se={x:Math.abs(Math.round(De.pageX)-(re.current?.x??0)),y:Math.abs(Math.round(De.pageY)-(re.current?.y??0))}},Oe=De=>{se.x<=10&&se.y<=10?De.preventDefault():R.contains(De.target)||H(!1),document.removeEventListener("pointermove",ge),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ge),document.addEventListener("pointerup",Oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ge),document.removeEventListener("pointerup",Oe,{capture:!0})}}},[R,H,re]),x.useEffect(()=>{const se=()=>H(!1);return window.addEventListener("blur",se),window.addEventListener("resize",se),()=>{window.removeEventListener("blur",se),window.removeEventListener("resize",se)}},[H]);const[k,Q]=nE(se=>{const ge=J().filter(Pe=>!Pe.disabled),Oe=ge.find(Pe=>Pe.ref.current===document.activeElement),De=rE(ge,se,Oe);De&&setTimeout(()=>De.ref.current.focus())}),le=x.useCallback((se,ge,Oe)=>{const De=!ie.current&&!Oe;(N.value!==void 0&&N.value===ge||De)&&(Z(se),De&&(ie.current=!0))},[N.value]),M=x.useCallback(()=>R?.focus(),[R]),ce=x.useCallback((se,ge,Oe)=>{const De=!ie.current&&!Oe;(N.value!==void 0&&N.value===ge||De)&&W(se)},[N.value]),Se=i==="popper"?wp:US,me=Se===wp?{side:f,sideOffset:d,align:h,alignOffset:m,arrowPadding:y,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:E,avoidCollisions:A}:{};return g.jsx(IS,{scope:r,content:R,viewport:D,onViewportChange:j,itemRefCallback:le,selectedItem:F,onItemLeave:M,itemTextRefCallback:ce,focusSelectedItem:X,selectedItemText:L,position:i,isPositioned:ae,searchRef:k,children:g.jsx(jc,{as:OP,allowPinchZoom:!0,children:g.jsx(_c,{asChild:!0,trapped:N.open,onMountAutoFocus:se=>{se.preventDefault()},onUnmountAutoFocus:pe(l,se=>{N.trigger?.focus({preventScroll:!0}),se.preventDefault()}),children:g.jsx(yo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:se=>se.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:g.jsx(Se,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:se=>se.preventDefault(),...T,...me,onPlaced:()=>K(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:pe(T.onKeyDown,se=>{const ge=se.ctrlKey||se.altKey||se.metaKey;if(se.key==="Tab"&&se.preventDefault(),!ge&&se.key.length===1&&Q(se.key),["ArrowUp","ArrowDown","Home","End"].includes(se.key)){let De=J().filter(Pe=>!Pe.disabled).map(Pe=>Pe.ref.current);if(["ArrowUp","End"].includes(se.key)&&(De=De.slice().reverse()),["ArrowUp","ArrowDown"].includes(se.key)){const Pe=se.target,Ue=De.indexOf(Pe);De=De.slice(Ue+1)}setTimeout(()=>z(De)),se.preventDefault()}})})})})})})});BS.displayName=DP;var PP="SelectItemAlignedPosition",US=x.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:i,...l}=e,s=Ra(ri,r),c=Na(ri,r),[f,d]=x.useState(null),[h,m]=x.useState(null),y=Be(n,B=>m(B)),b=Vc(r),w=x.useRef(!1),S=x.useRef(!0),{viewport:E,selectedItem:A,selectedItemText:T,focusSelectedItem:N}=c,R=x.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&h&&E&&A&&T){const B=s.trigger.getBoundingClientRect(),F=h.getBoundingClientRect(),Z=s.valueNode.getBoundingClientRect(),L=T.getBoundingClientRect();if(s.dir!=="rtl"){const Pe=L.left-F.left,Ue=Z.left-Pe,ft=B.left-Ue,Zt=B.width+ft,Vt=Math.max(Zt,F.width),lr=window.innerWidth-er,xt=bp(Ue,[er,Math.max(er,lr-Vt)]);f.style.minWidth=Zt+"px",f.style.left=xt+"px"}else{const Pe=F.right-L.right,Ue=window.innerWidth-Z.right-Pe,ft=window.innerWidth-B.right-Ue,Zt=B.width+ft,Vt=Math.max(Zt,F.width),lr=window.innerWidth-er,xt=bp(Ue,[er,Math.max(er,lr-Vt)]);f.style.minWidth=Zt+"px",f.style.right=xt+"px"}const W=b(),J=window.innerHeight-er*2,ae=E.scrollHeight,K=window.getComputedStyle(h),ie=parseInt(K.borderTopWidth,10),z=parseInt(K.paddingTop,10),X=parseInt(K.borderBottomWidth,10),H=parseInt(K.paddingBottom,10),re=ie+z+ae+H+X,k=Math.min(A.offsetHeight*5,re),Q=window.getComputedStyle(E),le=parseInt(Q.paddingTop,10),M=parseInt(Q.paddingBottom,10),ce=B.top+B.height/2-er,Se=J-ce,me=A.offsetHeight/2,se=A.offsetTop+me,ge=ie+z+se,Oe=re-ge;if(ge<=ce){const Pe=W.length>0&&A===W[W.length-1].ref.current;f.style.bottom="0px";const Ue=h.clientHeight-E.offsetTop-E.offsetHeight,ft=Math.max(Se,me+(Pe?M:0)+Ue+X),Zt=ge+ft;f.style.height=Zt+"px"}else{const Pe=W.length>0&&A===W[0].ref.current;f.style.top="0px";const ft=Math.max(ce,ie+E.offsetTop+(Pe?le:0)+me)+Oe;f.style.height=ft+"px",E.scrollTop=ge-ce+E.offsetTop}f.style.margin=`${er}px 0`,f.style.minHeight=k+"px",f.style.maxHeight=J+"px",i?.(),requestAnimationFrame(()=>w.current=!0)}},[b,s.trigger,s.valueNode,f,h,E,A,T,s.dir,i]);qt(()=>R(),[R]);const[O,D]=x.useState();qt(()=>{h&&D(window.getComputedStyle(h).zIndex)},[h]);const j=x.useCallback(B=>{B&&S.current===!0&&(R(),N?.(),S.current=!1)},[R,N]);return g.jsx(zP,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:j,children:g.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:g.jsx(Ne.div,{...l,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});US.displayName=PP;var LP="SelectPopperPosition",wp=x.forwardRef((e,n)=>{const{__scopeSelect:r,align:i="start",collisionPadding:l=er,...s}=e,c=$c(r);return g.jsx(Tm,{...c,...s,ref:n,align:i,collisionPadding:l,style:{boxSizing:"border-box",...s.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)"}})});wp.displayName=LP;var[zP,_m]=Eo(ri,{}),Sp="SelectViewport",HS=x.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:i,...l}=e,s=Na(Sp,r),c=_m(Sp,r),f=Be(n,s.onViewportChange),d=x.useRef(0);return g.jsxs(g.Fragment,{children:[g.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:i}),g.jsx(qc.Slot,{scope:r,children:g.jsx(Ne.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:pe(l.onScroll,h=>{const m=h.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:b}=c;if(b?.current&&y){const w=Math.abs(d.current-m.scrollTop);if(w>0){const S=window.innerHeight-er*2,E=parseFloat(y.style.minHeight),A=parseFloat(y.style.height),T=Math.max(E,A);if(T<S){const N=T+w,R=Math.min(S,N),O=N-R;y.style.height=R+"px",y.style.bottom==="0px"&&(m.scrollTop=O>0?O:0,y.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});HS.displayName=Sp;var FS="SelectGroup",[IP,BP]=Eo(FS),UP=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=gr();return g.jsx(IP,{scope:r,id:l,children:g.jsx(Ne.div,{role:"group","aria-labelledby":l,...i,ref:n})})});UP.displayName=FS;var qS="SelectLabel",VS=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=BP(qS,r);return g.jsx(Ne.div,{id:l.id,...i,ref:n})});VS.displayName=qS;var cc="SelectItem",[HP,$S]=Eo(cc),GS=x.forwardRef((e,n)=>{const{__scopeSelect:r,value:i,disabled:l=!1,textValue:s,...c}=e,f=Ra(cc,r),d=Na(cc,r),h=f.value===i,[m,y]=x.useState(s??""),[b,w]=x.useState(!1),S=Be(n,N=>d.itemRefCallback?.(N,i,l)),E=gr(),A=x.useRef("touch"),T=()=>{l||(f.onValueChange(i),f.onOpenChange(!1))};if(i==="")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 g.jsx(HP,{scope:r,value:i,disabled:l,textId:E,isSelected:h,onItemTextChange:x.useCallback(N=>{y(R=>R||(N?.textContent??"").trim())},[]),children:g.jsx(qc.ItemSlot,{scope:r,value:i,disabled:l,textValue:m,children:g.jsx(Ne.div,{role:"option","aria-labelledby":E,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...c,ref:S,onFocus:pe(c.onFocus,()=>w(!0)),onBlur:pe(c.onBlur,()=>w(!1)),onClick:pe(c.onClick,()=>{A.current!=="mouse"&&T()}),onPointerUp:pe(c.onPointerUp,()=>{A.current==="mouse"&&T()}),onPointerDown:pe(c.onPointerDown,N=>{A.current=N.pointerType}),onPointerMove:pe(c.onPointerMove,N=>{A.current=N.pointerType,l?d.onItemLeave?.():A.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(c.onPointerLeave,N=>{N.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:pe(c.onKeyDown,N=>{d.searchRef?.current!==""&&N.key===" "||(AP.includes(N.key)&&T(),N.key===" "&&N.preventDefault())})})})})});GS.displayName=cc;var _l="SelectItemText",YS=x.forwardRef((e,n)=>{const{__scopeSelect:r,className:i,style:l,...s}=e,c=Ra(_l,r),f=Na(_l,r),d=$S(_l,r),h=_P(_l,r),[m,y]=x.useState(null),b=Be(n,T=>y(T),d.onItemTextChange,T=>f.itemTextRefCallback?.(T,d.value,d.disabled)),w=m?.textContent,S=x.useMemo(()=>g.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:E,onNativeOptionRemove:A}=h;return qt(()=>(E(S),()=>A(S)),[E,A,S]),g.jsxs(g.Fragment,{children:[g.jsx(Ne.span,{id:d.textId,...s,ref:b}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren?mo.createPortal(s.children,c.valueNode):null]})});YS.displayName=_l;var KS="SelectItemIndicator",XS=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return $S(KS,r).isSelected?g.jsx(Ne.span,{"aria-hidden":!0,...i,ref:n}):null});XS.displayName=KS;var Ep="SelectScrollUpButton",QS=x.forwardRef((e,n)=>{const r=Na(Ep,e.__scopeSelect),i=_m(Ep,e.__scopeSelect),[l,s]=x.useState(!1),c=Be(n,i.onScrollButtonChange);return qt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollTop>0;s(h)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(WS,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null});QS.displayName=Ep;var Cp="SelectScrollDownButton",ZS=x.forwardRef((e,n)=>{const r=Na(Cp,e.__scopeSelect),i=_m(Cp,e.__scopeSelect),[l,s]=x.useState(!1),c=Be(n,i.onScrollButtonChange);return qt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const h=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<h;s(m)};const d=r.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),l?g.jsx(WS,{...e,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=r;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null});ZS.displayName=Cp;var WS=x.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:i,...l}=e,s=Na("SelectScrollButton",r),c=x.useRef(null),f=Vc(r),d=x.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return x.useEffect(()=>()=>d(),[d]),qt(()=>{f().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),g.jsx(Ne.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:pe(l.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:pe(l.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:pe(l.onPointerLeave,()=>{d()})})}),FP="SelectSeparator",JS=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e;return g.jsx(Ne.div,{"aria-hidden":!0,...i,ref:n})});JS.displayName=FP;var kp="SelectArrow",qP=x.forwardRef((e,n)=>{const{__scopeSelect:r,...i}=e,l=$c(r),s=Ra(kp,r),c=Na(kp,r);return s.open&&c.position==="popper"?g.jsx(Rm,{...l,...i,ref:n}):null});qP.displayName=kp;var VP="SelectBubbleInput",eE=x.forwardRef(({__scopeSelect:e,value:n,...r},i)=>{const l=x.useRef(null),s=Be(i,l),c=NS(n);return x.useEffect(()=>{const f=l.current;if(!f)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(c!==n&&m){const y=new Event("change",{bubbles:!0});m.call(f,n),f.dispatchEvent(y)}},[c,n]),g.jsx(Ne.select,{...r,style:{...Ew,...r.style},ref:s,defaultValue:n})});eE.displayName=VP;function tE(e){return e===""||e===void 0}function nE(e){const n=_t(e),r=x.useRef(""),i=x.useRef(0),l=x.useCallback(c=>{const f=r.current+c;n(f),(function d(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>d(""),1e3))})(f)},[n]),s=x.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,l,s]}function rE(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=$P(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.textValue.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function $P(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var GP=_S,aE=jS,YP=OS,KP=PS,XP=LS,iE=zS,QP=HS,oE=VS,lE=GS,ZP=YS,WP=XS,sE=QS,uE=ZS,cE=JS;const $b=GP,Gb=YP,Ap=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(aE,{ref:i,className:ue("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[n,g.jsx(KP,{asChild:!0,children:g.jsx(Gw,{className:"h-4 w-4 opacity-50"})})]}));Ap.displayName=aE.displayName;const fE=x.forwardRef(({className:e,...n},r)=>g.jsx(sE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(tM,{className:"h-4 w-4"})}));fE.displayName=sE.displayName;const dE=x.forwardRef(({className:e,...n},r)=>g.jsx(uE,{ref:r,className:ue("flex cursor-default items-center justify-center py-1",e),...n,children:g.jsx(Gw,{className:"h-4 w-4"})}));dE.displayName=uE.displayName;const Tp=x.forwardRef(({className:e,children:n,position:r="popper",...i},l)=>g.jsx(XP,{children:g.jsxs(iE,{ref:l,className:ue("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",r==="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",e),position:r,...i,children:[g.jsx(fE,{}),g.jsx(QP,{className:ue("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),g.jsx(dE,{})]})}));Tp.displayName=iE.displayName;const JP=x.forwardRef(({className:e,...n},r)=>g.jsx(oE,{ref:r,className:ue("px-2 py-1.5 text-sm font-semibold",e),...n}));JP.displayName=oE.displayName;const Wa=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(lE,{ref:i,className:ue("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(WP,{children:g.jsx(Nc,{className:"h-4 w-4"})})}),g.jsx(ZP,{children:n})]}));Wa.displayName=lE.displayName;const eL=x.forwardRef(({className:e,...n},r)=>g.jsx(cE,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));eL.displayName=cE.displayName;const Gc=fm,XU=U1,tL=dm,hE=x.forwardRef(({className:e,...n},r)=>g.jsx(es,{ref:r,className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));hE.displayName=es.displayName;const is=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(tL,{children:[g.jsx(hE,{}),g.jsxs(ts,{ref:i,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[n,g.jsxs(Oc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g.jsx(no,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));is.displayName=ts.displayName;const os=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});os.displayName="DialogHeader";const pE=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});pE.displayName="DialogFooter";const ls=x.forwardRef(({className:e,...n},r)=>g.jsx(ns,{ref:r,className:ue("text-lg font-semibold leading-none tracking-tight",e),...n}));ls.displayName=ns.displayName;const Ml=x.forwardRef(({className:e,...n},r)=>g.jsx(rs,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));Ml.displayName=rs.displayName;function Oh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:ue("inline-flex h-5 items-center justify-center rounded border border-muted-foreground/30 bg-muted/50 px-1.5 font-sans text-[11px] font-medium text-muted-foreground shadow-sm",e),...n})}function QU({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:ue("inline-flex items-center gap-0.5",e),...n})}function ZU(){}function WU(){}function JU(e){const n=[],r=String(e||"");let i=r.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(l,i).trim();(c||!s)&&n.push(c),l=i+1,i=r.indexOf(",",l)}return n}function nL(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const rL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iL={};function Yb(e,n){return(iL.jsx?aL:rL).test(e)}const oL=/[ \t\n\f\r]/g;function lL(e){return typeof e=="object"?e.type==="text"?Kb(e.value):!1:Kb(e)}function Kb(e){return e.replace(oL,"")===""}class ss{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}ss.prototype.normal={};ss.prototype.property={};ss.prototype.space=void 0;function mE(e,n){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new ss(r,i,n)}function Rp(e){return e.toLowerCase()}class vn{constructor(n,r){this.attribute=r,this.property=n}}vn.prototype.attribute="";vn.prototype.booleanish=!1;vn.prototype.boolean=!1;vn.prototype.commaOrSpaceSeparated=!1;vn.prototype.commaSeparated=!1;vn.prototype.defined=!1;vn.prototype.mustUseProperty=!1;vn.prototype.number=!1;vn.prototype.overloadedBoolean=!1;vn.prototype.property="";vn.prototype.spaceSeparated=!1;vn.prototype.space=void 0;let sL=0;const Ie=ii(),Dt=ii(),Np=ii(),he=ii(),ht=ii(),io=ii(),Rn=ii();function ii(){return 2**++sL}const _p=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ie,booleanish:Dt,commaOrSpaceSeparated:Rn,commaSeparated:io,number:he,overloadedBoolean:Np,spaceSeparated:ht},Symbol.toStringTag,{value:"Module"})),Ph=Object.keys(_p);class Mm extends vn{constructor(n,r,i,l){let s=-1;if(super(n,r),Xb(this,"space",l),typeof i=="number")for(;++s<Ph.length;){const c=Ph[s];Xb(this,Ph[s],(i&_p[c])===_p[c])}}}Mm.prototype.defined=!0;function Xb(e,n,r){r&&(e[n]=r)}function Co(e){const n={},r={};for(const[i,l]of Object.entries(e.properties)){const s=new Mm(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[Rp(i)]=i,r[Rp(s.attribute)]=i}return new ss(n,r,e.space)}const gE=Co({properties:{ariaActiveDescendant:null,ariaAtomic:Dt,ariaAutoComplete:null,ariaBusy:Dt,ariaChecked:Dt,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:ht,ariaCurrent:null,ariaDescribedBy:ht,ariaDetails:null,ariaDisabled:Dt,ariaDropEffect:ht,ariaErrorMessage:null,ariaExpanded:Dt,ariaFlowTo:ht,ariaGrabbed:Dt,ariaHasPopup:null,ariaHidden:Dt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ht,ariaLevel:he,ariaLive:null,ariaModal:Dt,ariaMultiLine:Dt,ariaMultiSelectable:Dt,ariaOrientation:null,ariaOwns:ht,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:Dt,ariaReadOnly:Dt,ariaRelevant:null,ariaRequired:Dt,ariaRoleDescription:ht,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:Dt,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function yE(e,n){return n in e?e[n]:n}function vE(e,n){return yE(e,n.toLowerCase())}const uL=Co({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:io,acceptCharset:ht,accessKey:ht,action:null,allow:null,allowFullScreen:Ie,allowPaymentRequest:Ie,allowUserMedia:Ie,alt:null,as:null,async:Ie,autoCapitalize:null,autoComplete:ht,autoFocus:Ie,autoPlay:Ie,blocking:ht,capture:null,charSet:null,checked:Ie,cite:null,className:ht,cols:he,colSpan:null,content:null,contentEditable:Dt,controls:Ie,controlsList:ht,coords:he|io,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ie,defer:Ie,dir:null,dirName:null,disabled:Ie,download:Np,draggable:Dt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ie,formTarget:null,headers:ht,height:he,hidden:Np,high:he,href:null,hrefLang:null,htmlFor:ht,httpEquiv:ht,id:null,imageSizes:null,imageSrcSet:null,inert:Ie,inputMode:null,integrity:null,is:null,isMap:Ie,itemId:null,itemProp:ht,itemRef:ht,itemScope:Ie,itemType:ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ie,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:Ie,muted:Ie,name:null,nonce:null,noModule:Ie,noValidate:Ie,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:Ie,optimum:he,pattern:null,ping:ht,placeholder:null,playsInline:Ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ie,referrerPolicy:null,rel:ht,required:Ie,reversed:Ie,rows:he,rowSpan:he,sandbox:ht,scope:null,scoped:Ie,seamless:Ie,selected:Ie,shadowRootClonable:Ie,shadowRootDelegatesFocus:Ie,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:Dt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:Ie,useMap:null,value:Dt,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ht,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ie,declare:Ie,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:Ie,noHref:Ie,noShade:Ie,noWrap:Ie,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:Dt,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ie,disableRemotePlayback:Ie,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:vE}),cL=Co({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:Rn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:ht,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:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:Ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,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:io,g2:io,glyphName:io,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:Rn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,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:he,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:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rn,rev:Rn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rn,requiredFeatures:Rn,requiredFonts:Rn,requiredFormats:Rn,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:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:Rn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),xE=Co({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),bE=Co({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vE}),wE=Co({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),fL={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"},dL=/[A-Z]/g,Qb=/-[a-z]/g,hL=/^data[-\w.:]+$/i;function pL(e,n){const r=Rp(n);let i=n,l=vn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&hL.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(Qb,gL);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!Qb.test(s)){let c=s.replace(dL,mL);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Mm}return new l(i,n)}function mL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}const yL=mE([gE,uL,xE,bE,wE],"html"),jm=mE([gE,cL,xE,bE,wE],"svg");function eH(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function vL(e){return e.join(" ").trim()}var Qi={},Lh,Zb;function xL(){if(Zb)return Lh;Zb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
|
356
|
+
`,h="/",m="*",y="",b="comment",w="declaration";Lh=function(E,A){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];A=A||{};var T=1,N=1;function R(ae){var K=ae.match(n);K&&(T+=K.length);var ie=ae.lastIndexOf(d);N=~ie?ae.length-ie:N+ae.length}function O(){var ae={line:T,column:N};return function(K){return K.position=new D(ae),F(),K}}function D(ae){this.start=ae,this.end={line:T,column:N},this.source=A.source}D.prototype.content=E;function j(ae){var K=new Error(A.source+":"+T+":"+N+": "+ae);if(K.reason=ae,K.filename=A.source,K.line=T,K.column=N,K.source=E,!A.silent)throw K}function B(ae){var K=ae.exec(E);if(K){var ie=K[0];return R(ie),E=E.slice(ie.length),K}}function F(){B(r)}function Z(ae){var K;for(ae=ae||[];K=L();)K!==!1&&ae.push(K);return ae}function L(){var ae=O();if(!(h!=E.charAt(0)||m!=E.charAt(1))){for(var K=2;y!=E.charAt(K)&&(m!=E.charAt(K)||h!=E.charAt(K+1));)++K;if(K+=2,y===E.charAt(K-1))return j("End of comment missing");var ie=E.slice(2,K-2);return N+=2,R(ie),E=E.slice(K),N+=2,ae({type:b,comment:ie})}}function W(){var ae=O(),K=B(i);if(K){if(L(),!B(l))return j("property missing ':'");var ie=B(s),z=ae({type:w,property:S(K[0].replace(e,y)),value:ie?S(ie[0].replace(e,y)):y});return B(c),z}}function J(){var ae=[];Z(ae);for(var K;K=W();)K!==!1&&(ae.push(K),Z(ae));return ae}return F(),J()};function S(E){return E?E.replace(f,y):y}return Lh}var Wb;function bL(){if(Wb)return Qi;Wb=1;var e=Qi&&Qi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=r;var n=e(xL());function r(i,l){var s=null;if(!i||typeof i!="string")return s;var c=(0,n.default)(i),f=typeof l=="function";return c.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;f?l(h,m,d):m&&(s=s||{},s[h]=m)}}),s}return Qi}var Al={},Jb;function wL(){if(Jb)return Al;Jb=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(h){return!h||r.test(h)||e.test(h)},c=function(h,m){return m.toUpperCase()},f=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),s(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(l,f):h=h.replace(i,f),h.replace(n,c))};return Al.camelCase=d,Al}var Tl,e0;function SL(){if(e0)return Tl;e0=1;var e=Tl&&Tl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},n=e(bL()),r=wL();function i(l,s){var c={};return!l||typeof l!="string"||(0,n.default)(l,function(f,d){f&&d&&(c[(0,r.camelCase)(f,s)]=d)}),c}return i.default=i,Tl=i,Tl}var EL=SL();const CL=vc(EL),SE=EE("end"),Dm=EE("start");function EE(e){return n;function n(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function CE(e){const n=Dm(e),r=SE(e);if(n&&r)return{start:n,end:r}}function Pl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?t0(e.position):"start"in e||"end"in e?t0(e):"line"in e||"column"in e?Mp(e):""}function Mp(e){return n0(e&&e.line)+":"+n0(e&&e.column)}function t0(e){return Mp(e&&e.start)+"-"+Mp(e&&e.end)}function n0(e){return e&&typeof e=="number"?e:1}class nn extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof n=="string"?l=n:!s.cause&&n&&(c=!0,l=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof i=="string"){const d=i.indexOf(":");d===-1?s.ruleId=i:(s.source=i.slice(0,d),s.ruleId=i.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=Pl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nn.prototype.file="";nn.prototype.name="";nn.prototype.reason="";nn.prototype.message="";nn.prototype.stack="";nn.prototype.column=void 0;nn.prototype.line=void 0;nn.prototype.ancestors=void 0;nn.prototype.cause=void 0;nn.prototype.fatal=void 0;nn.prototype.place=void 0;nn.prototype.ruleId=void 0;nn.prototype.source=void 0;const Om={}.hasOwnProperty,kL=new Map,AL=/[A-Z]/g,TL=new Set(["table","tbody","thead","tfoot","tr"]),RL=new Set(["td","th"]),kE="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function NL(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=zL(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=LL(r,n.jsx,n.jsxs)}const l={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?jm:yL,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=AE(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function AE(e,n,r){if(n.type==="element")return _L(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ML(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return DL(e,n,r);if(n.type==="mdxjsEsm")return jL(e,n);if(n.type==="root")return OL(e,n,r);if(n.type==="text")return PL(e,n)}function _L(e,n,r){const i=e.schema;let l=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=jm,e.schema=l),e.ancestors.push(n);const s=RE(e,n.tagName,!1),c=IL(e,n);let f=Lm(e,n);return TL.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!lL(d):!0})),TE(e,c,s,n),Pm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function ML(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Vl(e,n.position)}function jL(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Vl(e,n.position)}function DL(e,n,r){const i=e.schema;let l=i;n.name==="svg"&&i.space==="html"&&(l=jm,e.schema=l),e.ancestors.push(n);const s=n.name===null?e.Fragment:RE(e,n.name,!0),c=BL(e,n),f=Lm(e,n);return TE(e,c,s,n),Pm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function OL(e,n,r){const i={};return Pm(i,Lm(e,n)),e.create(n,e.Fragment,i,r)}function PL(e,n){return n.value}function TE(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function Pm(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function LL(e,n,r){return i;function i(l,s,c,f){const h=Array.isArray(c.children)?r:n;return f?h(s,c,f):h(s,c)}}function zL(e,n){return r;function r(i,l,s,c){const f=Array.isArray(s.children),d=Dm(i);return n(l,s,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function IL(e,n){const r={};let i,l;for(l in n.properties)if(l!=="children"&&Om.call(n.properties,l)){const s=UL(e,l,n.properties[l]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&RL.has(n.tagName)?i=f:r[c]=f}}if(i){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function BL(e,n){const r={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Vl(e,n.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Vl(e,n.position);else s=i.value===null?!0:i.value;r[l]=s}return r}function Lm(e,n){const r=[];let i=-1;const l=e.passKeys?new Map:kL;for(;++i<n.children.length;){const s=n.children[i];let c;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=l.get(d)||0;c=d+"-"+h,l.set(d,h+1)}}const f=AE(e,s,c);f!==void 0&&r.push(f)}return r}function UL(e,n,r){const i=pL(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?nL(r):vL(r)),i.property==="style"){let l=typeof r=="object"?r:HL(e,String(r));return e.stylePropertyNameCase==="css"&&(l=FL(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?fL[i.property]||i.property:i.attribute,r]}}function HL(e,n){try{return CL(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new nn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=kE+"#cannot-parse-style-attribute",l}}function RE(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const l=n.split(".");let s=-1,c;for(;++s<l.length;){const f=Yb(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=c}else i=Yb(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const l=i.value;return Om.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Vl(e)}function Vl(e,n){const r=new nn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=kE+"#cannot-handle-mdx-estrees-without-createevaluater",r}function FL(e){const n={};let r;for(r in e)Om.call(e,r)&&(n[qL(r)]=e[r]);return n}function qL(e){let n=e.replace(AL,VL);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function VL(e){return"-"+e.toLowerCase()}const zh={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"]},$L={};function zm(e,n){const r=$L,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return NE(e,i,l)}function NE(e,n,r){if(GL(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return r0(e.children,n,r)}return Array.isArray(e)?r0(e,n,r):""}function r0(e,n,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=NE(e[l],n,r);return i.join("")}function GL(e){return!!(e&&typeof e=="object")}const a0=document.createElement("i");function Im(e){const n="&"+e+";";a0.innerHTML=n;const r=a0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Mn(e,n,r,i){const l=e.length;let s=0,c;if(n<0?n=-n>l?0:l+n:n=n>l?l:n,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function Hn(e,n){return e.length>0?(Mn(e,e.length,0,n),e):n}const i0={}.hasOwnProperty;function _E(e){const n={};let r=-1;for(;++r<e.length;)YL(n,e[r]);return n}function YL(e,n){let r;for(r in n){const l=(i0.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){i0.call(l,c)||(l[c]=[]);const f=s[c];KL(l[c],Array.isArray(f)?f:f?[f]:[])}}}function KL(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);Mn(e,0,0,i)}function ME(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function nr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const cn=_a(/[A-Za-z]/),tn=_a(/[\dA-Za-z]/),XL=_a(/[#-'*+\--9=?A-Z^-~]/);function fc(e){return e!==null&&(e<32||e===127)}const jp=_a(/\d/),QL=_a(/[\dA-Fa-f]/),ZL=_a(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function ct(e){return e!==null&&(e<0||e===32)}function Ke(e){return e===-2||e===-1||e===32}const Yc=_a(new RegExp("\\p{P}|\\p{S}","u")),ai=_a(/\s/);function _a(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ko(e){const n=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&tn(e.charCodeAt(r+1))&&tn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),l=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return n.join("")+e.slice(i)}function We(e,n,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(d){return Ke(d)?(e.enter(r),f(d)):n(d)}function f(d){return Ke(d)&&s++<l?(e.consume(d),f):(e.exit(r),n(d))}}const WL={tokenize:JL};function JL(e){const n=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return n;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),We(e,n,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return ke(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const ez={tokenize:tz},o0={tokenize:nz};function tz(e){const n=this,r=[];let i=0,l,s,c;return f;function f(R){if(i<r.length){const O=r[i];return n.containerState=O[1],e.attempt(O[0].continuation,d,h)(R)}return h(R)}function d(R){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,l&&N();const O=n.events.length;let D=O,j;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){j=n.events[D][1].end;break}T(i);let B=O;for(;B<n.events.length;)n.events[B][1].end={...j},B++;return Mn(n.events,D+1,0,n.events.slice(O)),n.events.length=B,h(R)}return f(R)}function h(R){if(i===r.length){if(!l)return b(R);if(l.currentConstruct&&l.currentConstruct.concrete)return S(R);n.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(o0,m,y)(R)}function m(R){return l&&N(),T(i),b(R)}function y(R){return n.parser.lazy[n.now().line]=i!==r.length,c=n.now().offset,S(R)}function b(R){return n.containerState={},e.attempt(o0,w,S)(R)}function w(R){return i++,r.push([n.currentConstruct,n.containerState]),b(R)}function S(R){if(R===null){l&&N(),T(0),e.consume(R);return}return l=l||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),E(R)}function E(R){if(R===null){A(e.exit("chunkFlow"),!0),T(0),e.consume(R);return}return ke(R)?(e.consume(R),A(e.exit("chunkFlow")),i=0,n.interrupt=void 0,f):(e.consume(R),E)}function A(R,O){const D=n.sliceStream(R);if(O&&D.push(null),R.previous=s,s&&(s.next=R),s=R,l.defineSkip(R.start),l.write(D),n.parser.lazy[R.start.line]){let j=l.events.length;for(;j--;)if(l.events[j][1].start.offset<c&&(!l.events[j][1].end||l.events[j][1].end.offset>c))return;const B=n.events.length;let F=B,Z,L;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){if(Z){L=n.events[F][1].end;break}Z=!0}for(T(i),j=B;j<n.events.length;)n.events[j][1].end={...L},j++;Mn(n.events,F+1,0,n.events.slice(B)),n.events.length=j}}function T(R){let O=r.length;for(;O-- >R;){const D=r[O];n.containerState=D[1],D[0].exit.call(n,e)}r.length=R}function N(){l.write([null]),s=void 0,l=void 0,n.containerState._closeFlow=void 0}}function nz(e,n,r){return We(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function uo(e){if(e===null||ct(e)||ai(e))return 1;if(Yc(e))return 2}function Kc(e,n,r){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(n=s(n,r),i.push(s))}return n}const Dp={name:"attention",resolveAll:rz,tokenize:az};function rz(e,n){let r=-1,i,l,s,c,f,d,h,m;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&n.sliceSerialize(e[i][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[i][1].end},b={...e[r][1].start};l0(y,-d),l0(b,d),c={type:d>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[r][1].start={...f.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=Hn(h,[["enter",e[i][1],n],["exit",e[i][1],n]])),h=Hn(h,[["enter",l,n],["enter",c,n],["exit",c,n],["enter",s,n]]),h=Hn(h,Kc(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),h=Hn(h,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",l,n]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,h=Hn(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):m=0,Mn(e,i-1,r-i+3,h),r=i+h.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function az(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=uo(i);let s;return c;function c(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const h=e.exit("attentionSequence"),m=uo(d),y=!m||m===2&&l||r.includes(d),b=!l||l===2&&m||r.includes(i);return h._open=!!(s===42?y:y&&(l||!b)),h._close=!!(s===42?b:b&&(m||!y)),n(d)}}function l0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const iz={name:"autolink",tokenize:oz};function oz(e,n,r){let i=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return cn(w)?(e.consume(w),c):w===64?r(w):h(w)}function c(w){return w===43||w===45||w===46||tn(w)?(i=1,f(w)):h(w)}function f(w){return w===58?(e.consume(w),i=0,d):(w===43||w===45||w===46||tn(w))&&i++<32?(e.consume(w),f):(i=0,h(w))}function d(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):w===null||w===32||w===60||fc(w)?r(w):(e.consume(w),d)}function h(w){return w===64?(e.consume(w),m):XL(w)?(e.consume(w),h):r(w)}function m(w){return tn(w)?y(w):r(w)}function y(w){return w===46?(e.consume(w),i=0,m):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),n):b(w)}function b(w){if((w===45||tn(w))&&i++<63){const S=w===45?b:y;return e.consume(w),S}return r(w)}}const us={partial:!0,tokenize:lz};function lz(e,n,r){return i;function i(s){return Ke(s)?We(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||ke(s)?n(s):r(s)}}const jE={continuation:{tokenize:uz},exit:cz,name:"blockQuote",tokenize:sz};function sz(e,n,r){const i=this;return l;function l(c){if(c===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Ke(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function uz(e,n,r){const i=this;return l;function l(c){return Ke(c)?We(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(jE,n,r)(c)}}function cz(e){e.exit("blockQuote")}const DE={name:"characterEscape",tokenize:fz};function fz(e,n,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return ZL(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const OE={name:"characterReference",tokenize:dz};function dz(e,n,r){const i=this;let l=0,s,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),d}function d(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,c=tn,m(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=QL,m):(e.enter("characterReferenceValue"),s=7,c=jp,m(y))}function m(y){if(y===59&&l){const b=e.exit("characterReferenceValue");return c===tn&&!Im(i.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&l++<s?(e.consume(y),m):r(y)}}const s0={partial:!0,tokenize:pz},u0={concrete:!0,name:"codeFenced",tokenize:hz};function hz(e,n,r){const i=this,l={partial:!0,tokenize:D};let s=0,c=0,f;return d;function d(j){return h(j)}function h(j){const B=i.events[i.events.length-1];return s=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,f=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(j)}function m(j){return j===f?(c++,e.consume(j),m):c<3?r(j):(e.exit("codeFencedFenceSequence"),Ke(j)?We(e,y,"whitespace")(j):y(j))}function y(j){return j===null||ke(j)?(e.exit("codeFencedFence"),i.interrupt?n(j):e.check(s0,E,O)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(j))}function b(j){return j===null||ke(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(j)):Ke(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,w,"whitespace")(j)):j===96&&j===f?r(j):(e.consume(j),b)}function w(j){return j===null||ke(j)?y(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(j))}function S(j){return j===null||ke(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(j)):j===96&&j===f?r(j):(e.consume(j),S)}function E(j){return e.attempt(l,O,A)(j)}function A(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),T}function T(j){return s>0&&Ke(j)?We(e,N,"linePrefix",s+1)(j):N(j)}function N(j){return j===null||ke(j)?e.check(s0,E,O)(j):(e.enter("codeFlowValue"),R(j))}function R(j){return j===null||ke(j)?(e.exit("codeFlowValue"),N(j)):(e.consume(j),R)}function O(j){return e.exit("codeFenced"),n(j)}function D(j,B,F){let Z=0;return L;function L(ie){return j.enter("lineEnding"),j.consume(ie),j.exit("lineEnding"),W}function W(ie){return j.enter("codeFencedFence"),Ke(ie)?We(j,J,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):J(ie)}function J(ie){return ie===f?(j.enter("codeFencedFenceSequence"),ae(ie)):F(ie)}function ae(ie){return ie===f?(Z++,j.consume(ie),ae):Z>=c?(j.exit("codeFencedFenceSequence"),Ke(ie)?We(j,K,"whitespace")(ie):K(ie)):F(ie)}function K(ie){return ie===null||ke(ie)?(j.exit("codeFencedFence"),B(ie)):F(ie)}}}function pz(e,n,r){const i=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}const Ih={name:"codeIndented",tokenize:gz},mz={partial:!0,tokenize:yz};function gz(e,n,r){const i=this;return l;function l(h){return e.enter("codeIndented"),We(e,s,"linePrefix",5)(h)}function s(h){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?d(h):ke(h)?e.attempt(mz,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||ke(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function yz(e,n,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):We(e,s,"linePrefix",5)(c)}function s(c){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):ke(c)?l(c):r(c)}}const vz={name:"codeText",previous:bz,resolve:xz,tokenize:wz};function xz(e){let n=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=r;++i<n;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(i=r-1,n++;++i<=n;)l===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(l=i):(i===n||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),n-=i-l-2,i=l+2),l=void 0);return e}function bz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wz(e,n,r){let i=0,l,s;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),f(y)}function f(y){return y===96?(e.consume(y),i++,f):(e.exit("codeTextSequence"),d(y))}function d(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),d):y===96?(s=e.enter("codeTextSequence"),l=0,m(y)):ke(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||ke(y)?(e.exit("codeTextData"),d(y)):(e.consume(y),h)}function m(y){return y===96?(e.consume(y),l++,m):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(s.type="codeTextData",h(y))}}class Sz{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(n,i):n>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,r,i){const l=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&Rl(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Rl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Rl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Rl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Rl(this.left,r.reverse())}}}function Rl(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function PE(e){const n={};let r=-1,i,l,s,c,f,d,h;const m=new Sz(e);for(;++r<m.length;){for(;r in n;)r=n[r];if(i=m.get(r),r&&i[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(d=i[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,Ez(m,r)),r=n[r],h=!0);else if(i[1]._container){for(s=r,l=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(m.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...m.get(l)[1].start},f=m.slice(l,r),f.unshift(i),m.splice(l,r-l+1,f))}}return Mn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function Ez(e,n){const r=e.get(n)[1],i=e.get(n)[2];let l=n-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let m,y,b=-1,w=r,S=0,E=0;const A=[E];for(;w;){for(;e.get(++l)[1]!==w;);s.push(l),w._tokenizer||(m=i.sliceStream(w),w.next||m.push(null),y&&c.defineSkip(w.start),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(m),w._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=w,w=w.next}for(w=r;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(E=b+1,A.push(E),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(c.events=[],w?(w._tokenizer=void 0,w.previous=void 0):A.pop(),b=A.length;b--;){const T=f.slice(A[b],A[b+1]),N=s.pop();d.push([N,N+T.length-1]),e.splice(N,2,T)}for(d.reverse(),b=-1;++b<d.length;)h[S+d[b][0]]=S+d[b][1],S+=d[b][1]-d[b][0]-1;return h}const Cz={resolve:Az,tokenize:Tz},kz={partial:!0,tokenize:Rz};function Az(e){return PE(e),e}function Tz(e,n){let r;return i;function i(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):ke(f)?e.check(kz,c,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function Rz(e,n,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),We(e,s,"linePrefix")}function s(c){if(c===null||ke(c))return r(c);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(i.parser.constructs.flow,r,n)(c)}}function LE(e,n,r,i,l,s,c,f,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return y;function y(T){return T===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(T),e.exit(s),b):T===null||T===32||T===41||fc(T)?r(T):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(T))}function b(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(l),e.exit(i),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(T))}function w(T){return T===62?(e.exit("chunkString"),e.exit(f),b(T)):T===null||T===60||ke(T)?r(T):(e.consume(T),T===92?S:w)}function S(T){return T===60||T===62||T===92?(e.consume(T),w):w(T)}function E(T){return!m&&(T===null||T===41||ct(T))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),n(T)):m<h&&T===40?(e.consume(T),m++,E):T===41?(e.consume(T),m--,E):T===null||T===32||T===40||fc(T)?r(T):(e.consume(T),T===92?A:E)}function A(T){return T===40||T===41||T===92?(e.consume(T),E):E(T)}}function zE(e,n,r,i,l,s){const c=this;let f=0,d;return h;function h(w){return e.enter(i),e.enter(l),e.consume(w),e.exit(l),e.enter(s),m}function m(w){return f>999||w===null||w===91||w===93&&!d||w===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(s),e.enter(l),e.consume(w),e.exit(l),e.exit(i),n):ke(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||w===91||w===93||ke(w)||f++>999?(e.exit("chunkString"),m(w)):(e.consume(w),d||(d=!Ke(w)),w===92?b:y)}function b(w){return w===91||w===92||w===93?(e.consume(w),f++,y):y(w)}}function IE(e,n,r,i,l,s){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(i),e.enter(l),e.consume(b),e.exit(l),c=b===40?41:b,d):r(b)}function d(b){return b===c?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),n):(e.enter(s),h(b))}function h(b){return b===c?(e.exit(s),d(c)):b===null?r(b):ke(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),We(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||ke(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}function Ll(e,n){let r;return i;function i(l){return ke(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Ke(l)?We(e,i,r?"linePrefix":"lineSuffix")(l):n(l)}}const Nz={name:"definition",tokenize:Mz},_z={partial:!0,tokenize:jz};function Mz(e,n,r){const i=this;let l;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return zE.call(i,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return l=nr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),d):r(w)}function d(w){return ct(w)?Ll(e,h)(w):h(w)}function h(w){return LE(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(_z,y,y)(w)}function y(w){return Ke(w)?We(e,b,"whitespace")(w):b(w)}function b(w){return w===null||ke(w)?(e.exit("definition"),i.parser.defined.push(l),n(w)):r(w)}}function jz(e,n,r){return i;function i(f){return ct(f)?Ll(e,l)(f):r(f)}function l(f){return IE(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ke(f)?We(e,c,"whitespace")(f):c(f)}function c(f){return f===null||ke(f)?n(f):r(f)}}const Dz={name:"hardBreakEscape",tokenize:Oz};function Oz(e,n,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return ke(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const Pz={name:"headingAtx",resolve:Lz,tokenize:zz};function Lz(e,n){let r=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},Mn(e,i,r-i+1,[["enter",l,n],["enter",s,n],["exit",s,n],["exit",l,n]])),e}function zz(e,n,r){let i=0;return l;function l(m){return e.enter("atxHeading"),s(m)}function s(m){return e.enter("atxHeadingSequence"),c(m)}function c(m){return m===35&&i++<6?(e.consume(m),c):m===null||ct(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||ke(m)?(e.exit("atxHeading"),n(m)):Ke(m)?We(e,f,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),f(m))}function h(m){return m===null||m===35||ct(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),h)}}const Iz=["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"],c0=["pre","script","style","textarea"],Bz={concrete:!0,name:"htmlFlow",resolveTo:Fz,tokenize:qz},Uz={partial:!0,tokenize:$z},Hz={partial:!0,tokenize:Vz};function Fz(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function qz(e,n,r){const i=this;let l,s,c,f,d;return h;function h(M){return m(M)}function m(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),y}function y(M){return M===33?(e.consume(M),b):M===47?(e.consume(M),s=!0,E):M===63?(e.consume(M),l=3,i.interrupt?n:k):cn(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function b(M){return M===45?(e.consume(M),l=2,w):M===91?(e.consume(M),l=5,f=0,S):cn(M)?(e.consume(M),l=4,i.interrupt?n:k):r(M)}function w(M){return M===45?(e.consume(M),i.interrupt?n:k):r(M)}function S(M){const ce="CDATA[";return M===ce.charCodeAt(f++)?(e.consume(M),f===ce.length?i.interrupt?n:J:S):r(M)}function E(M){return cn(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function A(M){if(M===null||M===47||M===62||ct(M)){const ce=M===47,Se=c.toLowerCase();return!ce&&!s&&c0.includes(Se)?(l=1,i.interrupt?n(M):J(M)):Iz.includes(c.toLowerCase())?(l=6,ce?(e.consume(M),T):i.interrupt?n(M):J(M)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(M):s?N(M):R(M))}return M===45||tn(M)?(e.consume(M),c+=String.fromCharCode(M),A):r(M)}function T(M){return M===62?(e.consume(M),i.interrupt?n:J):r(M)}function N(M){return Ke(M)?(e.consume(M),N):L(M)}function R(M){return M===47?(e.consume(M),L):M===58||M===95||cn(M)?(e.consume(M),O):Ke(M)?(e.consume(M),R):L(M)}function O(M){return M===45||M===46||M===58||M===95||tn(M)?(e.consume(M),O):D(M)}function D(M){return M===61?(e.consume(M),j):Ke(M)?(e.consume(M),D):R(M)}function j(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),d=M,B):Ke(M)?(e.consume(M),j):F(M)}function B(M){return M===d?(e.consume(M),d=null,Z):M===null||ke(M)?r(M):(e.consume(M),B)}function F(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||ct(M)?D(M):(e.consume(M),F)}function Z(M){return M===47||M===62||Ke(M)?R(M):r(M)}function L(M){return M===62?(e.consume(M),W):r(M)}function W(M){return M===null||ke(M)?J(M):Ke(M)?(e.consume(M),W):r(M)}function J(M){return M===45&&l===2?(e.consume(M),z):M===60&&l===1?(e.consume(M),X):M===62&&l===4?(e.consume(M),Q):M===63&&l===3?(e.consume(M),k):M===93&&l===5?(e.consume(M),re):ke(M)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(Uz,le,ae)(M)):M===null||ke(M)?(e.exit("htmlFlowData"),ae(M)):(e.consume(M),J)}function ae(M){return e.check(Hz,K,le)(M)}function K(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),ie}function ie(M){return M===null||ke(M)?ae(M):(e.enter("htmlFlowData"),J(M))}function z(M){return M===45?(e.consume(M),k):J(M)}function X(M){return M===47?(e.consume(M),c="",H):J(M)}function H(M){if(M===62){const ce=c.toLowerCase();return c0.includes(ce)?(e.consume(M),Q):J(M)}return cn(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),H):J(M)}function re(M){return M===93?(e.consume(M),k):J(M)}function k(M){return M===62?(e.consume(M),Q):M===45&&l===2?(e.consume(M),k):J(M)}function Q(M){return M===null||ke(M)?(e.exit("htmlFlowData"),le(M)):(e.consume(M),Q)}function le(M){return e.exit("htmlFlow"),n(M)}}function Vz(e,n,r){const i=this;return l;function l(c){return ke(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):n(c)}}function $z(e,n,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(us,n,r)}}const Gz={name:"htmlText",tokenize:Yz};function Yz(e,n,r){const i=this;let l,s,c;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),h):k===47?(e.consume(k),D):k===63?(e.consume(k),R):cn(k)?(e.consume(k),F):r(k)}function h(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),s=0,S):cn(k)?(e.consume(k),N):r(k)}function m(k){return k===45?(e.consume(k),w):r(k)}function y(k){return k===null?r(k):k===45?(e.consume(k),b):ke(k)?(c=y,X(k)):(e.consume(k),y)}function b(k){return k===45?(e.consume(k),w):y(k)}function w(k){return k===62?z(k):k===45?b(k):y(k)}function S(k){const Q="CDATA[";return k===Q.charCodeAt(s++)?(e.consume(k),s===Q.length?E:S):r(k)}function E(k){return k===null?r(k):k===93?(e.consume(k),A):ke(k)?(c=E,X(k)):(e.consume(k),E)}function A(k){return k===93?(e.consume(k),T):E(k)}function T(k){return k===62?z(k):k===93?(e.consume(k),T):E(k)}function N(k){return k===null||k===62?z(k):ke(k)?(c=N,X(k)):(e.consume(k),N)}function R(k){return k===null?r(k):k===63?(e.consume(k),O):ke(k)?(c=R,X(k)):(e.consume(k),R)}function O(k){return k===62?z(k):R(k)}function D(k){return cn(k)?(e.consume(k),j):r(k)}function j(k){return k===45||tn(k)?(e.consume(k),j):B(k)}function B(k){return ke(k)?(c=B,X(k)):Ke(k)?(e.consume(k),B):z(k)}function F(k){return k===45||tn(k)?(e.consume(k),F):k===47||k===62||ct(k)?Z(k):r(k)}function Z(k){return k===47?(e.consume(k),z):k===58||k===95||cn(k)?(e.consume(k),L):ke(k)?(c=Z,X(k)):Ke(k)?(e.consume(k),Z):z(k)}function L(k){return k===45||k===46||k===58||k===95||tn(k)?(e.consume(k),L):W(k)}function W(k){return k===61?(e.consume(k),J):ke(k)?(c=W,X(k)):Ke(k)?(e.consume(k),W):Z(k)}function J(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),l=k,ae):ke(k)?(c=J,X(k)):Ke(k)?(e.consume(k),J):(e.consume(k),K)}function ae(k){return k===l?(e.consume(k),l=void 0,ie):k===null?r(k):ke(k)?(c=ae,X(k)):(e.consume(k),ae)}function K(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||ct(k)?Z(k):(e.consume(k),K)}function ie(k){return k===47||k===62||ct(k)?Z(k):r(k)}function z(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):r(k)}function X(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),H}function H(k){return Ke(k)?We(e,re,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):re(k)}function re(k){return e.enter("htmlTextData"),c(k)}}const Bm={name:"labelEnd",resolveAll:Zz,resolveTo:Wz,tokenize:Jz},Kz={tokenize:e3},Xz={tokenize:t3},Qz={tokenize:n3};function Zz(e){let n=-1;const r=[];for(;++n<e.length;){const i=e[n][1];if(r.push(e[n]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",n+=l}}return e.length!==r.length&&Mn(e,0,e.length,r),e}function Wz(e,n){let r=e.length,i=0,l,s,c,f;for(;r--;)if(l=e[r][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(c=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},m={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=Hn(f,e.slice(s+1,s+i+3)),f=Hn(f,[["enter",m,n]]),f=Hn(f,Kc(n.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),n)),f=Hn(f,[["exit",m,n],e[c-2],e[c-1],["exit",h,n]]),f=Hn(f,e.slice(c+1)),f=Hn(f,[["exit",d,n]]),Mn(e,s,e.length,f),e}function Jz(e,n,r){const i=this;let l=i.events.length,s,c;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return f;function f(b){return s?s._inactive?y(b):(c=i.parser.defined.includes(nr(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):r(b)}function d(b){return b===40?e.attempt(Kz,m,c?m:y)(b):b===91?e.attempt(Xz,m,c?h:y)(b):c?m(b):y(b)}function h(b){return e.attempt(Qz,m,y)(b)}function m(b){return n(b)}function y(b){return s._balanced=!0,r(b)}}function e3(e,n,r){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return ct(y)?Ll(e,s)(y):s(y)}function s(y){return y===41?m(y):LE(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return ct(y)?Ll(e,d)(y):m(y)}function f(y){return r(y)}function d(y){return y===34||y===39||y===40?IE(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function h(y){return ct(y)?Ll(e,m)(y):m(y)}function m(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),n):r(y)}}function t3(e,n,r){const i=this;return l;function l(f){return zE.call(i,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(nr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function n3(e,n,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const r3={name:"labelStartImage",resolveAll:Bm.resolveAll,tokenize:a3};function a3(e,n,r){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(f):n(f)}}const i3={name:"labelStartLink",resolveAll:Bm.resolveAll,tokenize:o3};function o3(e,n,r){const i=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):n(c)}}const Bh={name:"lineEnding",tokenize:l3};function l3(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),We(e,n,"linePrefix")}}const Ju={name:"thematicBreak",tokenize:s3};function s3(e,n,r){let i=0,l;return s;function s(h){return e.enter("thematicBreak"),c(h)}function c(h){return l=h,f(h)}function f(h){return h===l?(e.enter("thematicBreakSequence"),d(h)):i>=3&&(h===null||ke(h))?(e.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===l?(e.consume(h),i++,d):(e.exit("thematicBreakSequence"),Ke(h)?We(e,f,"whitespace")(h):f(h))}}const yn={continuation:{tokenize:d3},exit:p3,name:"list",tokenize:f3},u3={partial:!0,tokenize:m3},c3={partial:!0,tokenize:h3};function f3(e,n,r){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return f;function f(w){const S=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:jp(w)){if(i.containerState.type||(i.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Ju,r,h)(w):h(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(w)}return r(w)}function d(w){return jp(w)&&++c<10?(e.consume(w),d):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),h(w)):r(w)}function h(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(us,i.interrupt?r:m,e.attempt(u3,b,y))}function m(w){return i.containerState.initialBlankLine=!0,s++,b(w)}function y(w){return Ke(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),b):r(w)}function b(w){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(w)}}function d3(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(us,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,We(e,n,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!Ke(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(c3,n,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,We(e,e.attempt(yn,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function h3(e,n,r){const i=this;return We(e,l,"listItemIndent",i.containerState.size+1);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?n(s):r(s)}}function p3(e){e.exit(this.containerState.type)}function m3(e,n,r){const i=this;return We(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!Ke(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const f0={name:"setextUnderline",resolveTo:g3,tokenize:y3};function g3(e,n){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,n]),e.splice(s+1,0,["exit",e[i][1],n]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,n]),e}function y3(e,n,r){const i=this;let l;return s;function s(h){let m=i.events.length,y;for(;m--;)if(i.events[m][1].type!=="lineEnding"&&i.events[m][1].type!=="linePrefix"&&i.events[m][1].type!=="content"){y=i.events[m][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(e.enter("setextHeadingLine"),l=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===l?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Ke(h)?We(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||ke(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const v3={tokenize:x3};function x3(e){const n=this,r=e.attempt(us,i,e.attempt(this.parser.constructs.flowInitial,l,We(e,e.attempt(this.parser.constructs.flow,l,e.attempt(Cz,l)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const b3={resolveAll:UE()},w3=BE("string"),S3=BE("text");function BE(e){return{resolveAll:UE(e==="text"?E3:void 0),tokenize:n};function n(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,f);return c;function c(m){return h(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),d}function d(m){return h(m)?(r.exit("data"),s(m)):(r.consume(m),d)}function h(m){if(m===null)return!0;const y=l[m];let b=-1;if(y)for(;++b<y.length;){const w=y[b];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function UE(e){return n;function n(r,i){let l=-1,s;for(;++l<=r.length;)s===void 0?r[l]&&r[l][1].type==="data"&&(s=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==s+2&&(r[s][1].end=r[l-1][1].end,r.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(r,i):r}}function E3(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=n.sliceStream(i);let s=l.length,c=-1,f=0,d;for(;s--;){const h=l[s];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const h={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return e}const C3={42:yn,43:yn,45:yn,48:yn,49:yn,50:yn,51:yn,52:yn,53:yn,54:yn,55:yn,56:yn,57:yn,62:jE},k3={91:Nz},A3={[-2]:Ih,[-1]:Ih,32:Ih},T3={35:Pz,42:Ju,45:[f0,Ju],60:Bz,61:f0,95:Ju,96:u0,126:u0},R3={38:OE,92:DE},N3={[-5]:Bh,[-4]:Bh,[-3]:Bh,33:r3,38:OE,42:Dp,60:[iz,Gz],91:i3,92:[Dz,DE],93:Bm,95:Dp,96:vz},_3={null:[Dp,b3]},M3={null:[42,95]},j3={null:[]},D3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:M3,contentInitial:k3,disable:j3,document:C3,flow:T3,flowInitial:A3,insideSpan:_3,string:R3,text:N3},Symbol.toStringTag,{value:"Module"}));function O3(e,n,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let c=[],f=[];const d={attempt:B(D),check:B(j),consume:N,enter:R,exit:O,interrupt:B(j,{interrupt:!0})},h={code:null,containerState:{},defineSkip:E,events:[],now:S,parser:e,previous:null,sliceSerialize:b,sliceStream:w,write:y};let m=n.tokenize.call(h,d);return n.resolveAll&&s.push(n),h;function y(W){return c=Hn(c,W),A(),c[c.length-1]!==null?[]:(F(n,0),h.events=Kc(s,h.events,h),h.events)}function b(W,J){return L3(w(W),J)}function w(W){return P3(c,W)}function S(){const{_bufferIndex:W,_index:J,line:ae,column:K,offset:ie}=i;return{_bufferIndex:W,_index:J,line:ae,column:K,offset:ie}}function E(W){l[W.line]=W.column,L()}function A(){let W;for(;i._index<c.length;){const J=c[i._index];if(typeof J=="string")for(W=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===W&&i._bufferIndex<J.length;)T(J.charCodeAt(i._bufferIndex));else T(J)}}function T(W){m=m(W)}function N(W){ke(W)?(i.line++,i.column=1,i.offset+=W===-3?2:1,L()):W!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=W}function R(W,J){const ae=J||{};return ae.type=W,ae.start=S(),h.events.push(["enter",ae,h]),f.push(ae),ae}function O(W){const J=f.pop();return J.end=S(),h.events.push(["exit",J,h]),J}function D(W,J){F(W,J.from)}function j(W,J){J.restore()}function B(W,J){return ae;function ae(K,ie,z){let X,H,re,k;return Array.isArray(K)?le(K):"tokenize"in K?le([K]):Q(K);function Q(me){return se;function se(ge){const Oe=ge!==null&&me[ge],De=ge!==null&&me.null,Pe=[...Array.isArray(Oe)?Oe:Oe?[Oe]:[],...Array.isArray(De)?De:De?[De]:[]];return le(Pe)(ge)}}function le(me){return X=me,H=0,me.length===0?z:M(me[H])}function M(me){return se;function se(ge){return k=Z(),re=me,me.partial||(h.currentConstruct=me),me.name&&h.parser.constructs.disable.null.includes(me.name)?Se():me.tokenize.call(J?Object.assign(Object.create(h),J):h,d,ce,Se)(ge)}}function ce(me){return W(re,k),ie}function Se(me){return k.restore(),++H<X.length?M(X[H]):z}}}function F(W,J){W.resolveAll&&!s.includes(W)&&s.push(W),W.resolve&&Mn(h.events,J,h.events.length-J,W.resolve(h.events.slice(J),h)),W.resolveTo&&(h.events=W.resolveTo(h.events,h))}function Z(){const W=S(),J=h.previous,ae=h.currentConstruct,K=h.events.length,ie=Array.from(f);return{from:K,restore:z};function z(){i=W,h.previous=J,h.currentConstruct=ae,h.events.length=K,f=ie,L()}}function L(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function P3(e,n){const r=n.start._index,i=n.start._bufferIndex,l=n.end._index,s=n.end._bufferIndex;let c;if(r===l)c=[e[r].slice(i,s)];else{if(c=e.slice(r,l),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}s>0&&c.push(e[l].slice(0,s))}return c}function L3(e,n){let r=-1;const i=[];let l;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
357
|
+
`;break}case-3:{c=`\r
|
|
358
|
+
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}function z3(e){const i={constructs:_E([D3,...(e||{}).extensions||[]]),content:l(WL),defined:[],document:l(ez),flow:l(v3),lazy:{},string:l(w3),text:l(S3)};return i;function l(s){return c;function c(f){return O3(i,s,f)}}}function I3(e){for(;!PE(e););return e}const d0=/[\0\t\n\r]/g;function B3(){let e=1,n="",r=!0,i;return l;function l(s,c,f){const d=[];let h,m,y,b,w;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),y=0,n="",r&&(s.charCodeAt(0)===65279&&y++,r=void 0);y<s.length;){if(d0.lastIndex=y,h=d0.exec(s),b=h&&h.index!==void 0?h.index:s.length,w=s.charCodeAt(b),!h){n=s.slice(y);break}if(w===10&&y===b&&i)d.push(-3),i=void 0;else switch(i&&(d.push(-5),i=void 0),y<b&&(d.push(s.slice(y,b)),e+=b-y),w){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:i=!0,e=1}y=b+1}return f&&(i&&d.push(-5),n&&d.push(n),d.push(null)),d}}const U3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function H3(e){return e.replace(U3,F3)}function F3(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return ME(r.slice(s?2:1),s?16:10)}return Im(r)||e}const HE={}.hasOwnProperty;function q3(e,n,r){return typeof n!="string"&&(r=n,n=void 0),V3(r)(I3(z3(r).document().write(B3()(e,n,!0))))}function V3(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ma),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:s(Vt),blockQuote:s(De),characterEscape:Z,characterReference:Z,codeFenced:s(Pe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Pe,c),codeText:s(Ue,c),codeTextData:Z,data:Z,codeFlowValue:Z,definition:s(ft),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Zt),hardBreakEscape:s(lr),hardBreakTrailing:s(lr),htmlFlow:s(xt,c),htmlFlowData:Z,htmlText:s(xt,c),htmlTextData:Z,image:s(Ao),label:c,link:s(Ma),listItem:s(Sr),listItemValue:b,listOrdered:s(Kr,y),listUnordered:s(Kr),paragraph:s(si),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Vt),strong:s(Er),thematicBreak:s(Ro)},exit:{atxHeading:d(),atxHeadingSequence:D,autolink:d(),autolinkEmail:Oe,autolinkProtocol:ge,blockQuote:d(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:me,characterReference:se,codeFenced:d(A),codeFencedFence:E,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:L,codeIndented:d(T),codeText:d(ie),codeTextData:L,data:L,definition:d(),definitionDestinationString:O,definitionLabelString:N,definitionTitleString:R,emphasis:d(),hardBreakEscape:d(J),hardBreakTrailing:d(J),htmlFlow:d(ae),htmlFlowData:L,htmlText:d(K),htmlTextData:L,image:d(X),label:re,labelText:H,lineEnding:W,link:d(z),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:ce,resourceDestinationString:k,resourceTitleString:Q,resource:le,setextHeading:d(F),setextHeadingLineSequence:B,setextHeadingText:j,strong:d(),thematicBreak:d()}};FE(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(ee){let fe={type:"root",children:[]};const Ce={stack:[fe],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:m,data:r},Ae=[];let tt=-1;for(;++tt<ee.length;)if(ee[tt][1].type==="listOrdered"||ee[tt][1].type==="listUnordered")if(ee[tt][0]==="enter")Ae.push(tt);else{const rn=Ae.pop();tt=l(ee,rn,tt)}for(tt=-1;++tt<ee.length;){const rn=n[ee[tt][0]];HE.call(rn,ee[tt][1].type)&&rn[ee[tt][1].type].call(Object.assign({sliceSerialize:ee[tt][2].sliceSerialize},Ce),ee[tt][1])}if(Ce.tokenStack.length>0){const rn=Ce.tokenStack[Ce.tokenStack.length-1];(rn[1]||h0).call(Ce,void 0,rn[0])}for(fe.position={start:ba(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:ba(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<n.transforms.length;)fe=n.transforms[tt](fe)||fe;return fe}function l(ee,fe,Ce){let Ae=fe-1,tt=-1,rn=!1,Kn,Wt,xn,$t;for(;++Ae<=Ce;){const Tt=ee[Ae];switch(Tt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Tt[0]==="enter"?tt++:tt--,$t=void 0;break}case"lineEndingBlank":{Tt[0]==="enter"&&(Kn&&!$t&&!tt&&!xn&&(xn=Ae),$t=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$t=void 0}if(!tt&&Tt[0]==="enter"&&Tt[1].type==="listItemPrefix"||tt===-1&&Tt[0]==="exit"&&(Tt[1].type==="listUnordered"||Tt[1].type==="listOrdered")){if(Kn){let Ot=Ae;for(Wt=void 0;Ot--;){const an=ee[Ot];if(an[1].type==="lineEnding"||an[1].type==="lineEndingBlank"){if(an[0]==="exit")continue;Wt&&(ee[Wt][1].type="lineEndingBlank",rn=!0),an[1].type="lineEnding",Wt=Ot}else if(!(an[1].type==="linePrefix"||an[1].type==="blockQuotePrefix"||an[1].type==="blockQuotePrefixWhitespace"||an[1].type==="blockQuoteMarker"||an[1].type==="listItemIndent"))break}xn&&(!Wt||xn<Wt)&&(Kn._spread=!0),Kn.end=Object.assign({},Wt?ee[Wt][1].start:Tt[1].end),ee.splice(Wt||Ae,0,["exit",Kn,Tt[2]]),Ae++,Ce++}if(Tt[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Tt[1].start),end:void 0};Kn=Ot,ee.splice(Ae,0,["enter",Ot,Tt[2]]),Ae++,Ce++,xn=void 0,$t=!0}}}return ee[fe][1]._spread=rn,Ce}function s(ee,fe){return Ce;function Ce(Ae){f.call(this,ee(Ae),Ae),fe&&fe.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ee,fe,Ce){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([fe,Ce||void 0]),ee.position={start:ba(fe.start),end:void 0}}function d(ee){return fe;function fe(Ce){ee&&ee.call(this,Ce),h.call(this,Ce)}}function h(ee,fe){const Ce=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==ee.type&&(fe?fe.call(this,ee,Ae[0]):(Ae[1]||h0).call(this,ee,Ae[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Pl({start:ee.start,end:ee.end})+"): it’s not open");Ce.position.end=ba(ee.end)}function m(){return zm(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(ee){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function w(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=ee}function S(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=ee}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ee.replace(/(\r?\n|\r)$/g,"")}function N(ee){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=nr(this.sliceSerialize(ee)).toLowerCase()}function R(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.title=ee}function O(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.url=ee}function D(ee){const fe=this.stack[this.stack.length-1];if(!fe.depth){const Ce=this.sliceSerialize(ee).length;fe.depth=Ce}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function B(ee){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(ee){const Ce=this.stack[this.stack.length-1].children;let Ae=Ce[Ce.length-1];(!Ae||Ae.type!=="text")&&(Ae=To(),Ae.position={start:ba(ee.start),end:void 0},Ce.push(Ae)),this.stack.push(Ae)}function L(ee){const fe=this.stack.pop();fe.value+=this.sliceSerialize(ee),fe.position.end=ba(ee.end)}function W(ee){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=fe.children[fe.children.length-1];Ce.position.end=ba(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(fe.type)&&(Z.call(this,ee),L.call(this,ee))}function J(){this.data.atHardBreak=!0}function ae(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ee}function K(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ee}function ie(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ee}function z(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=fe,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function X(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=fe,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function H(ee){const fe=this.sliceSerialize(ee),Ce=this.stack[this.stack.length-2];Ce.label=H3(fe),Ce.identifier=nr(fe).toLowerCase()}function re(){const ee=this.stack[this.stack.length-1],fe=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const Ae=ee.children;Ce.children=Ae}else Ce.alt=fe}function k(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.url=ee}function Q(){const ee=this.resume(),fe=this.stack[this.stack.length-1];fe.title=ee}function le(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function ce(ee){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=nr(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Se(ee){this.data.characterReferenceType=ee.type}function me(ee){const fe=this.sliceSerialize(ee),Ce=this.data.characterReferenceType;let Ae;Ce?(Ae=ME(fe,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Im(fe);const tt=this.stack[this.stack.length-1];tt.value+=Ae}function se(ee){const fe=this.stack.pop();fe.position.end=ba(ee.end)}function ge(ee){L.call(this,ee);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(ee)}function Oe(ee){L.call(this,ee);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(ee)}function De(){return{type:"blockquote",children:[]}}function Pe(){return{type:"code",lang:null,meta:null,value:""}}function Ue(){return{type:"inlineCode",value:""}}function ft(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Zt(){return{type:"emphasis",children:[]}}function Vt(){return{type:"heading",depth:0,children:[]}}function lr(){return{type:"break"}}function xt(){return{type:"html",value:""}}function Ao(){return{type:"image",title:null,url:"",alt:null}}function Ma(){return{type:"link",title:null,url:"",children:[]}}function Kr(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Sr(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function si(){return{type:"paragraph",children:[]}}function Er(){return{type:"strong",children:[]}}function To(){return{type:"text",value:""}}function Ro(){return{type:"thematicBreak"}}}function ba(e){return{line:e.line,column:e.column,offset:e.offset}}function FE(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?FE(e,i):$3(e,i)}}function $3(e,n){let r;for(r in n)if(HE.call(n,r))switch(r){case"canContainEols":{const i=n[r];i&&e[r].push(...i);break}case"transforms":{const i=n[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=n[r];i&&Object.assign(e[r],i);break}}}function h0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Pl({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Pl({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Pl({start:n.start,end:n.end})+") is still open")}function G3(e){const n=this;n.parser=r;function r(i){return q3(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Y3(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function K3(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
359
|
+
`}]}function X3(e,n){const r=n.value?n.value+`
|
|
360
|
+
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Q3(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Z3(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function W3(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),l=ko(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(i,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,h),e.applyData(n,h)}function J3(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function e5(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function qE(e,n){const r=n.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const l=e.all(n),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=i:l.push({type:"text",value:i}),l}function t5(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return qE(e,n);const l={src:ko(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(n,s),e.applyData(n,s)}function n5(e,n){const r={src:ko(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,i),e.applyData(n,i)}function r5(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,i),e.applyData(n,i)}function a5(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return qE(e,n);const l={href:ko(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function i5(e,n){const r={href:ko(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function o5(e,n,r){const i=e.all(n),l=r?l5(r):VE(n),s={},c=[];if(typeof n.checked=="boolean"){const m=i[0];let y;m&&m.type==="element"&&m.tagName==="p"?y=m:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const m=i[f];(l||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
361
|
+
`}),m.type==="element"&&m.tagName==="p"&&!l?c.push(...m.children):c.push(m)}const d=i[i.length-1];d&&(l||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
|
|
362
|
+
`});const h={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,h),e.applyData(n,h)}function l5(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let i=-1;for(;!n&&++i<r.length;)n=VE(r[i])}return n}function VE(e){const n=e.spread;return n??e.children.length>1}function s5(e,n){const r={},i=e.all(n);let l=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(n,s),e.applyData(n,s)}function u5(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function c5(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function f5(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function d5(e,n){const r=e.all(n),i=r.shift(),l=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=Dm(n.children[1]),d=SE(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),l.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(n,s),e.applyData(n,s)}function h5(e,n,r){const i=r?r.children:void 0,s=(i?i.indexOf(n):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:n.children.length;let d=-1;const h=[];for(;++d<f;){const y=n.children[d],b={},w=c?c[d]:void 0;w&&(b.align=w);let S={type:"element",tagName:s,properties:b,children:[]};y&&(S.children=e.all(y),e.patch(y,S),S=e.applyData(y,S)),h.push(S)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,m),e.applyData(n,m)}function p5(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const p0=9,m0=32;function m5(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),l=0;const s=[];for(;i;)s.push(g0(n.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(n);return s.push(g0(n.slice(l),l>0,!1)),s.join("")}function g0(e,n,r){let i=0,l=e.length;if(n){let s=e.codePointAt(i);for(;s===p0||s===m0;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===p0||s===m0;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function g5(e,n){const r={type:"text",value:m5(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function y5(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const v5={blockquote:Y3,break:K3,code:X3,delete:Q3,emphasis:Z3,footnoteReference:W3,heading:J3,html:e5,imageReference:t5,image:n5,inlineCode:r5,linkReference:a5,link:i5,listItem:o5,list:s5,paragraph:u5,root:c5,strong:f5,table:d5,tableCell:p5,tableRow:h5,text:g5,thematicBreak:y5,toml:Iu,yaml:Iu,definition:Iu,footnoteDefinition:Iu};function Iu(){}const $E=-1,Xc=0,zl=1,dc=2,Um=3,Hm=4,Fm=5,qm=6,GE=7,YE=8,y0=typeof self=="object"?self:globalThis,x5=(e,n)=>{const r=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,c]=n[l];switch(s){case Xc:case $E:return r(c,l);case zl:{const f=r([],l);for(const d of c)f.push(i(d));return f}case dc:{const f=r({},l);for(const[d,h]of c)f[i(d)]=i(h);return f}case Um:return r(new Date(c),l);case Hm:{const{source:f,flags:d}=c;return r(new RegExp(f,d),l)}case Fm:{const f=r(new Map,l);for(const[d,h]of c)f.set(i(d),i(h));return f}case qm:{const f=r(new Set,l);for(const d of c)f.add(i(d));return f}case GE:{const{name:f,message:d}=c;return r(new y0[f](d),l)}case YE:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}}return r(new y0[s](c),l)};return i},v0=e=>x5(new Map,e)(0),Zi="",{toString:b5}={},{keys:w5}=Object,Nl=e=>{const n=typeof e;if(n!=="object"||!e)return[Xc,n];const r=b5.call(e).slice(8,-1);switch(r){case"Array":return[zl,Zi];case"Object":return[dc,Zi];case"Date":return[Um,Zi];case"RegExp":return[Hm,Zi];case"Map":return[Fm,Zi];case"Set":return[qm,Zi];case"DataView":return[zl,r]}return r.includes("Array")?[zl,r]:r.includes("Error")?[GE,r]:[dc,r]},Bu=([e,n])=>e===Xc&&(n==="function"||n==="symbol"),S5=(e,n,r,i)=>{const l=(c,f)=>{const d=i.push(c)-1;return r.set(f,d),d},s=c=>{if(r.has(c))return r.get(c);let[f,d]=Nl(c);switch(f){case Xc:{let m=c;switch(d){case"bigint":f=YE,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return l([$E],c)}return l([f,m],c)}case zl:{if(d){let b=c;return d==="DataView"?b=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(c)),l([d,[...b]],c)}const m=[],y=l([f,m],c);for(const b of c)m.push(s(b));return y}case dc:{if(d)switch(d){case"BigInt":return l([d,c.toString()],c);case"Boolean":case"Number":case"String":return l([d,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const m=[],y=l([f,m],c);for(const b of w5(c))(e||!Bu(Nl(c[b])))&&m.push([s(b),s(c[b])]);return y}case Um:return l([f,c.toISOString()],c);case Hm:{const{source:m,flags:y}=c;return l([f,{source:m,flags:y}],c)}case Fm:{const m=[],y=l([f,m],c);for(const[b,w]of c)(e||!(Bu(Nl(b))||Bu(Nl(w))))&&m.push([s(b),s(w)]);return y}case qm:{const m=[],y=l([f,m],c);for(const b of c)(e||!Bu(Nl(b)))&&m.push(s(b));return y}}const{message:h}=c;return l([f,{name:d,message:h}],c)};return s},x0=(e,{json:n,lossy:r}={})=>{const i=[];return S5(!(n||r),!!n,new Map,i)(e),i},$l=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?v0(x0(e,n)):structuredClone(e):(e,n)=>v0(x0(e,n));function E5(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function C5(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function k5(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||E5,i=e.options.footnoteBackLabel||C5,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),y=String(h.identifier).toUpperCase(),b=ko(y.toLowerCase());let w=0;const S=[],E=e.footnoteCounts.get(y);for(;E!==void 0&&++w<=E;){S.length>0&&S.push({type:"text",value:" "});let N=typeof r=="string"?r:r(d,w);typeof N=="string"&&(N={type:"text",value:N}),S.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(d,w),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const N=A.children[A.children.length-1];N&&N.type==="text"?N.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...S)}else m.push(...S);const T={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(m,!0)};e.patch(h,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...$l(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
363
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
364
|
+
`}]}}const Qc=(function(e){if(e==null)return N5;if(typeof e=="function")return Zc(e);if(typeof e=="object")return Array.isArray(e)?A5(e):T5(e);if(typeof e=="string")return R5(e);throw new Error("Expected function, string, or object as test")});function A5(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=Qc(e[r]);return Zc(i);function i(...l){let s=-1;for(;++s<n.length;)if(n[s].apply(this,l))return!0;return!1}}function T5(e){const n=e;return Zc(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==n[s])return!1;return!0}}function R5(e){return Zc(n);function n(r){return r&&r.type===e}}function Zc(e){return n;function n(r,i,l){return!!(_5(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function N5(){return!0}function _5(e){return e!==null&&typeof e=="object"&&"type"in e}const KE=[],M5=!0,Op=!1,j5="skip";function XE(e,n,r,i){let l;typeof n=="function"&&typeof r!="function"?(i=r,r=n):l=n;const s=Qc(l),c=i?-1:1;f(e,void 0,[])();function f(d,h,m){const y=d&&typeof d=="object"?d:{};if(typeof y.type=="string"){const w=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=KE,S,E,A;if((!n||s(d,h,m[m.length-1]||void 0))&&(w=D5(r(d,m)),w[0]===Op))return w;if("children"in d&&d.children){const T=d;if(T.children&&w[0]!==j5)for(E=(i?T.children.length:-1)+c,A=m.concat(T);E>-1&&E<T.children.length;){const N=T.children[E];if(S=f(N,E,A)(),S[0]===Op)return S;E=typeof S[1]=="number"?S[1]:E+c}}return w}}}function D5(e){return Array.isArray(e)?e:typeof e=="number"?[M5,e]:e==null?KE:[e]}function Vm(e,n,r,i){let l,s,c;typeof n=="function"&&typeof r!="function"?(s=void 0,c=n,l=r):(s=n,c=r,l=i),XE(e,s,f,l);function f(d,h){const m=h[h.length-1],y=m?m.children.indexOf(d):void 0;return c(d,y,m)}}const Pp={}.hasOwnProperty,O5={};function P5(e,n){const r=n||O5,i=new Map,l=new Map,s=new Map,c={...v5,...r.handlers},f={all:h,applyData:z5,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:d,options:r,patch:L5,wrap:B5};return Vm(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:l,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function d(m,y){const b=m.type,w=f.handlers[b];if(Pp.call(f.handlers,b)&&w)return w(f,m,y);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in m){const{children:E,...A}=m,T=$l(A);return T.children=f.all(m),T}return $l(m)}return(f.options.unknownHandler||I5)(f,m,y)}function h(m){const y=[];if("children"in m){const b=m.children;let w=-1;for(;++w<b.length;){const S=f.one(b[w],m);if(S){if(w&&b[w-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=b0(S.value)),!Array.isArray(S)&&S.type==="element")){const E=S.children[0];E&&E.type==="text"&&(E.value=b0(E.value))}Array.isArray(S)?y.push(...S):y.push(S)}}}return y}}function L5(e,n){e.position&&(n.position=CE(e))}function z5(e,n){let r=n;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,$l(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function I5(e,n){const r=n.data||{},i="value"in n&&!(Pp.call(r,"hProperties")||Pp.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function B5(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
|
|
365
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
366
|
+
`}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
367
|
+
`}),r}function b0(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function w0(e,n){const r=P5(e,n),i=r.one(e,void 0),l=k5(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
|
|
368
|
+
`},l),s}function U5(e,n){return e&&"run"in e?async function(r,i){const l=w0(r,{file:i,...n});await e.run(l,i)}:function(r,i){return w0(r,{file:i,...e||n})}}function S0(e){if(e)throw e}var Uh,E0;function H5(){if(E0)return Uh;E0=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},s=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},c=function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},f=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(i)return i(h,m).value}else return;return h[m]};return Uh=function d(){var h,m,y,b,w,S,E=arguments[0],A=1,T=arguments.length,N=!1;for(typeof E=="boolean"&&(N=E,E=arguments[1]||{},A=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});A<T;++A)if(h=arguments[A],h!=null)for(m in h)y=f(E,m),b=f(h,m),E!==b&&(N&&b&&(s(b)||(w=l(b)))?(w?(w=!1,S=y&&l(y)?y:[]):S=y&&s(y)?y:{},c(E,{name:m,newValue:d(N,S,b)})):typeof b<"u"&&c(E,{name:m,newValue:b}));return E},Uh}var F5=H5();const Hh=vc(F5);function Lp(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function q5(){const e=[],n={run:r,use:i};return n;function r(...l){let s=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...l);function f(d,...h){const m=e[++s];let y=-1;if(d){c(d);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,m?V5(m,f)(...h):c(null,...h)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),n}}function V5(e,n){let r;return i;function i(...c){const f=e.length>c.length;let d;f&&c.push(l);try{d=e.apply(this,c)}catch(h){const m=h;if(f&&r)throw m;return l(m)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,l):d instanceof Error?l(d):s(d))}function l(c,...f){r||(r=!0,n(c,...f))}function s(c){l(null,c)}}const hr={basename:$5,dirname:G5,extname:Y5,join:K5,sep:"/"};function $5(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');cs(e);let r=0,i=-1,l=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let c=-1,f=n.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){r=l+1;break}}else c<0&&(s=!0,c=l+1),f>-1&&(e.codePointAt(l)===n.codePointAt(f--)?f<0&&(i=l):(f=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function G5(e){if(cs(e),e.length===0)return".";let n=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){n=r;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Y5(e){cs(e);let n=e.length,r=-1,i=0,l=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){i=n+1;break}continue}r<0&&(c=!0,r=n+1),f===46?l<0?l=n:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||r<0||s===0||s===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function K5(...e){let n=-1,r;for(;++n<e.length;)cs(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":X5(r)}function X5(e){cs(e);const n=e.codePointAt(0)===47;let r=Q5(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function Q5(e,n){let r="",i=0,l=-1,s=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(l===c-1||s===1))if(l!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",i=0):(r=r.slice(0,d),i=r.length-1-r.lastIndexOf("/")),l=c,s=0;continue}}else if(r.length>0){r="",i=0,l=c,s=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),i=c-l-1;l=c,s=0}else f===46&&s>-1?s++:s=-1}return r}function cs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Z5={cwd:W5};function W5(){return"/"}function zp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function J5(e){if(typeof e=="string")e=new URL(e);else if(!zp(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return e6(e)}function e6(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const i=n.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(n)}const Fh=["history","path","basename","stem","extname","dirname"];class QE{constructor(n){let r;n?zp(n)?r={path:n}:typeof n=="string"||t6(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":Z5.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Fh.length;){const s=Fh[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)Fh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?hr.basename(this.path):void 0}set basename(n){Vh(n,"basename"),qh(n,"basename"),this.path=hr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?hr.dirname(this.path):void 0}set dirname(n){C0(this.basename,"dirname"),this.path=hr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?hr.extname(this.path):void 0}set extname(n){if(qh(n,"extname"),C0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){zp(n)&&(n=J5(n)),Vh(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?hr.basename(this.path,this.extname):void 0}set stem(n){Vh(n,"stem"),qh(n,"stem"),this.path=hr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const l=this.message(n,r,i);throw l.fatal=!0,l}info(n,r,i){const l=this.message(n,r,i);return l.fatal=void 0,l}message(n,r,i){const l=new nn(n,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function qh(e,n){if(e&&e.includes(hr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+hr.sep+"`")}function Vh(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function C0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function t6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const n6=(function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),r6={}.hasOwnProperty;class $m extends n6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=q5()}copy(){const n=new $m;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(Hh(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(Yh("data",this.frozen),this.namespace[n]=r,this):r6.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Yh("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(n,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Uu(n),i=this.parser||this.Parser;return $h("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),$h("process",this.parser||this.Parser),Gh("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const f=Uu(n),d=i.parse(f);i.run(d,f,function(m,y,b){if(m||!y||!b)return h(m);const w=y,S=i.stringify(w,b);o6(S)?b.value=S:b.result=S,h(m,b)});function h(m,y){m||!y?c(m):s?s(y):r(void 0,y)}}}processSync(n){let r=!1,i;return this.freeze(),$h("processSync",this.parser||this.Parser),Gh("processSync",this.compiler||this.Compiler),this.process(n,l),A0("processSync","process",r),i;function l(s,c){r=!0,S0(s),i=c}}run(n,r,i){k0(n),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,f){const d=Uu(r);l.run(n,d,h);function h(m,y,b){const w=y||n;m?f(m):c?c(w):i(void 0,w,b)}}}runSync(n,r){let i=!1,l;return this.run(n,r,s),A0("runSync","run",i),l;function s(c,f){S0(c),l=f,i=!0}}stringify(n,r){this.freeze();const i=Uu(r),l=this.compiler||this.Compiler;return Gh("stringify",l),k0(n),l(n,i)}use(n,...r){const i=this.attachers,l=this.namespace;if(Yh("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;d(m,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(h.plugins),h.settings&&(l.settings=Hh(!0,l.settings,h.settings))}function f(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];s(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===h){b=y;break}if(b===-1)i.push([h,...m]);else if(m.length>0){let[w,...S]=m;const E=i[b][1];Lp(E)&&Lp(w)&&(w=Hh(!0,E,w)),i[b]=[h,w,...S]}}}}const a6=new $m().freeze();function $h(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Yh(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function k0(e){if(!Lp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function A0(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Uu(e){return i6(e)?e:new QE(e)}function i6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o6(e){return typeof e=="string"||l6(e)}function l6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const s6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",T0=[],R0={allowDangerousHtml:!0},u6=/^(https?|ircs?|mailto|xmpp)$/i,c6=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function f6(e){const n=d6(e),r=h6(e);return p6(n.runSync(n.parse(r),r),e)}function d6(e){const n=e.rehypePlugins||T0,r=e.remarkPlugins||T0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...R0}:R0;return a6().use(G3).use(r).use(U5,i).use(n)}function h6(e){const n=e.children||"",r=new QE;return typeof n=="string"&&(r.value=n),r}function p6(e,n){const r=n.allowedElements,i=n.allowElement,l=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||m6;for(const m of c6)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+s6+m.id,void 0);return Vm(e,h),NL(e,{Fragment:g.Fragment,components:l,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let w;for(w in zh)if(Object.hasOwn(zh,w)&&Object.hasOwn(m.properties,w)){const S=m.properties[w],E=zh[w];(E===null||E.includes(m.tagName))&&(m.properties[w]=d(String(S||""),w,m))}}if(m.type==="element"){let w=r?!r.includes(m.tagName):s?s.includes(m.tagName):!1;if(!w&&i&&typeof y=="number"&&(w=!i(m,y,b)),w&&b&&typeof y=="number")return f&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}}function m6(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return n===-1||l!==-1&&n>l||r!==-1&&n>r||i!==-1&&n>i||u6.test(e.slice(0,n))?e:""}function N0(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,l=r.indexOf(n);for(;l!==-1;)i++,l=r.indexOf(n,l+n.length);return i}function g6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function y6(e,n,r){const l=Qc((r||{}).ignore||[]),s=v6(n);let c=-1;for(;++c<s.length;)XE(e,"text",f);function f(h,m){let y=-1,b;for(;++y<m.length;){const w=m[y],S=b?b.children:void 0;if(l(w,S?S.indexOf(w):void 0,b))return;b=w}if(b)return d(h,m)}function d(h,m){const y=m[m.length-1],b=s[c][0],w=s[c][1];let S=0;const A=y.children.indexOf(h);let T=!1,N=[];b.lastIndex=0;let R=b.exec(h.value);for(;R;){const O=R.index,D={index:R.index,input:R.input,stack:[...m,h]};let j=w(...R,D);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?b.lastIndex=O+1:(S!==O&&N.push({type:"text",value:h.value.slice(S,O)}),Array.isArray(j)?N.push(...j):j&&N.push(j),S=O+R[0].length,T=!0),!b.global)break;R=b.exec(h.value)}return T?(S<h.value.length&&N.push({type:"text",value:h.value.slice(S)}),y.children.splice(A,1,...N)):N=[h],A+N.length}}function v6(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const l=r[i];n.push([x6(l[0]),b6(l[1])])}return n}function x6(e){return typeof e=="string"?new RegExp(g6(e),"g"):e}function b6(e){return typeof e=="function"?e:function(){return e}}const Kh="phrasing",Xh=["autolink","link","image","label"];function w6(){return{transforms:[R6],enter:{literalAutolink:E6,literalAutolinkEmail:Qh,literalAutolinkHttp:Qh,literalAutolinkWww:Qh},exit:{literalAutolink:T6,literalAutolinkEmail:A6,literalAutolinkHttp:C6,literalAutolinkWww:k6}}}function S6(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Kh,notInConstruct:Xh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Kh,notInConstruct:Xh},{character:":",before:"[ps]",after:"\\/",inConstruct:Kh,notInConstruct:Xh}]}}function E6(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Qh(e){this.config.enter.autolinkProtocol.call(this,e)}function C6(e){this.config.exit.autolinkProtocol.call(this,e)}function k6(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function A6(e){this.config.exit.autolinkEmail.call(this,e)}function T6(e){this.exit(e)}function R6(e){y6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,N6],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),_6]],{ignore:["link","linkReference"]})}function N6(e,n,r,i,l){let s="";if(!ZE(l)||(/^w/i.test(n)&&(r=n+r,n="",s="http://"),!M6(r)))return!1;const c=j6(r+i);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function _6(e,n,r,i){return!ZE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function M6(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function j6(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],i=r.indexOf(")");const l=N0(e,"(");let s=N0(e,")");for(;i!==-1&&l>s;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),s++;return[e,r]}function ZE(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ai(r)||Yc(r))&&(!n||r!==47)}WE.peek=H6;function D6(){this.buffer()}function O6(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function P6(){this.buffer()}function L6(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function z6(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=nr(this.sliceSerialize(e)).toLowerCase(),r.label=n}function I6(e){this.exit(e)}function B6(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=nr(this.sliceSerialize(e)).toLowerCase(),r.label=n}function U6(e){this.exit(e)}function H6(){return"["}function WE(e,n,r,i){const l=r.createTracker(i);let s=l.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return s+=l.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),c(),s+=l.move("]"),s}function F6(){return{enter:{gfmFootnoteCallString:D6,gfmFootnoteCall:O6,gfmFootnoteDefinitionLabelString:P6,gfmFootnoteDefinition:L6},exit:{gfmFootnoteCallString:z6,gfmFootnoteCall:I6,gfmFootnoteDefinitionLabelString:B6,gfmFootnoteDefinition:U6}}}function q6(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:WE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,l,s,c){const f=s.createTracker(c);let d=f.move("[^");const h=s.enter("footnoteDefinition"),m=s.enter("label");return d+=f.move(s.safe(s.associationId(i),{before:d,after:"]"})),m(),d+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),d+=f.move((n?`
|
|
369
|
+
`:" ")+s.indentLines(s.containerFlow(i,f.current()),n?JE:V6))),h(),d}}function V6(e,n,r){return n===0?e:JE(e,n,r)}function JE(e,n,r){return(r?"":" ")+e}const $6=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];eC.peek=Q6;function G6(){return{canContainEols:["delete"],enter:{strikethrough:K6},exit:{strikethrough:X6}}}function Y6(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$6}],handlers:{delete:eC}}}function K6(e){this.enter({type:"delete",children:[]},e)}function X6(e){this.exit(e)}function eC(e,n,r,i){const l=r.createTracker(i),s=r.enter("strikethrough");let c=l.move("~~");return c+=r.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),s(),c}function Q6(){return"~"}function Z6(e){return e.length}function W6(e,n){const r=n||{},i=(r.align||[]).concat(),l=r.stringLength||Z6,s=[],c=[],f=[],d=[];let h=0,m=-1;for(;++m<e.length;){const E=[],A=[];let T=-1;for(e[m].length>h&&(h=e[m].length);++T<e[m].length;){const N=J6(e[m][T]);if(r.alignDelimiters!==!1){const R=l(N);A[T]=R,(d[T]===void 0||R>d[T])&&(d[T]=R)}E.push(N)}c[m]=E,f[m]=A}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<h;)s[y]=_0(i[y]);else{const E=_0(i);for(;++y<h;)s[y]=E}y=-1;const b=[],w=[];for(;++y<h;){const E=s[y];let A="",T="";E===99?(A=":",T=":"):E===108?A=":":E===114&&(T=":");let N=r.alignDelimiters===!1?1:Math.max(1,d[y]-A.length-T.length);const R=A+"-".repeat(N)+T;r.alignDelimiters!==!1&&(N=A.length+N+T.length,N>d[y]&&(d[y]=N),w[y]=N),b[y]=R}c.splice(1,0,b),f.splice(1,0,w),m=-1;const S=[];for(;++m<c.length;){const E=c[m],A=f[m];y=-1;const T=[];for(;++y<h;){const N=E[y]||"";let R="",O="";if(r.alignDelimiters!==!1){const D=d[y]-(A[y]||0),j=s[y];j===114?R=" ".repeat(D):j===99?D%2?(R=" ".repeat(D/2+.5),O=" ".repeat(D/2-.5)):(R=" ".repeat(D/2),O=R):O=" ".repeat(D)}r.delimiterStart!==!1&&!y&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&N==="")&&(r.delimiterStart!==!1||y)&&T.push(" "),r.alignDelimiters!==!1&&T.push(R),T.push(N),r.alignDelimiters!==!1&&T.push(O),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||y!==h-1)&&T.push("|")}S.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return S.join(`
|
|
370
|
+
`)}function J6(e){return e==null?"":String(e)}function _0(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function eI(e,n,r,i){const l=r.enter("blockquote"),s=r.createTracker(i);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(e,s.current()),tI);return l(),c}function tI(e,n,r){return">"+(r?"":" ")+e}function nI(e,n){return M0(e,n.inConstruct,!0)&&!M0(e,n.notInConstruct,!1)}function M0(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let i=-1;for(;++i<n.length;)if(e.includes(n[i]))return!0;return!1}function j0(e,n,r,i){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
371
|
+
`&&nI(r.stack,r.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
372
|
+
`}function rI(e,n){const r=String(e);let i=r.indexOf(n),l=i,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++s>c&&(c=s):s=1,l=i+n.length,i=r.indexOf(n,l);return c}function aI(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function iI(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function oI(e,n,r,i){const l=iI(r),s=e.value||"",c=l==="`"?"GraveAccent":"Tilde";if(aI(e,r)){const y=r.enter("codeIndented"),b=r.indentLines(s,lI);return y(),b}const f=r.createTracker(i),d=l.repeat(Math.max(rI(s,l)+1,3)),h=r.enter("codeFenced");let m=f.move(d);if(e.lang){const y=r.enter(`codeFencedLang${c}`);m+=f.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...f.current()})),y()}if(e.lang&&e.meta){const y=r.enter(`codeFencedMeta${c}`);m+=f.move(" "),m+=f.move(r.safe(e.meta,{before:m,after:`
|
|
373
|
+
`,encode:["`"],...f.current()})),y()}return m+=f.move(`
|
|
374
|
+
`),s&&(m+=f.move(s+`
|
|
375
|
+
`)),m+=f.move(d),h(),m}function lI(e,n,r){return(r?"":" ")+e}function Gm(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function sI(e,n,r,i){const l=Gm(r),s=l==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const d=r.createTracker(i);let h=d.move("[");return h+=d.move(r.safe(r.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
376
|
+
`,...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+l),h+=d.move(r.safe(e.title,{before:h,after:l,...d.current()})),h+=d.move(l),f()),c(),h}function uI(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Gl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function hc(e,n,r){const i=uo(e),l=uo(n);return i===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}tC.peek=cI;function tC(e,n,r,i){const l=uI(r),s=r.enter("emphasis"),c=r.createTracker(i),f=c.move(l);let d=c.move(r.containerPhrasing(e,{after:l,before:f,...c.current()}));const h=d.charCodeAt(0),m=hc(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(d=Gl(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=hc(i.after.charCodeAt(0),y,l);b.inside&&(d=d.slice(0,-1)+Gl(y));const w=c.move(l);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+d+w}function cI(e,n,r){return r.options.emphasis||"*"}function fI(e,n){let r=!1;return Vm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,Op}),!!((!e.depth||e.depth<3)&&zm(e)&&(n.options.setext||r))}function dI(e,n,r,i){const l=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(fI(e,r)){const m=r.enter("headingSetext"),y=r.enter("phrasing"),b=r.containerPhrasing(e,{...s.current(),before:`
|
|
377
|
+
`,after:`
|
|
378
|
+
`});return y(),m(),b+`
|
|
379
|
+
`+(l===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
380
|
+
`))+1))}const c="#".repeat(l),f=r.enter("headingAtx"),d=r.enter("phrasing");s.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
381
|
+
`,...s.current()});return/^[\t ]/.test(h)&&(h=Gl(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),d(),f(),h}nC.peek=hI;function nC(e){return e.value||""}function hI(){return"<"}rC.peek=pI;function rC(e,n,r,i){const l=Gm(r),s=l==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const d=r.createTracker(i);let h=d.move("![");return h+=d.move(r.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+l),h+=d.move(r.safe(e.title,{before:h,after:l,...d.current()})),h+=d.move(l),f()),h+=d.move(")"),c(),h}function pI(){return"!"}aC.peek=mI;function aC(e,n,r,i){const l=e.referenceType,s=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(i);let d=f.move("![");const h=r.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=m,s(),l==="full"||!h||h!==y?d+=f.move(y+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function mI(){return"!"}iC.peek=gI;function iC(e,n,r){let i=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<r.unsafe.length;){const c=r.unsafe[s],f=r.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(i);){let h=d.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(d.index+1)}}return l+i+l}function gI(){return"`"}function oC(e,n){const r=zm(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}lC.peek=yI;function lC(e,n,r,i){const l=Gm(r),s=l==='"'?"Quote":"Apostrophe",c=r.createTracker(i);let f,d;if(oC(e,r)){const m=r.stack;r.stack=[],f=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),f(),r.stack=m,y}f=r.enter("link"),d=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(d=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=r.enter(`title${s}`),h+=c.move(" "+l),h+=c.move(r.safe(e.title,{before:h,after:l,...c.current()})),h+=c.move(l),d()),h+=c.move(")"),f(),h}function yI(e,n,r){return oC(e,r)?"<":"["}sC.peek=vI;function sC(e,n,r,i){const l=e.referenceType,s=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(i);let d=f.move("[");const h=r.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=m,s(),l==="full"||!h||h!==y?d+=f.move(y+"]"):l==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function vI(){return"["}function Ym(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function xI(e){const n=Ym(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function bI(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function uC(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function wI(e,n,r,i){const l=r.enter("list"),s=r.bulletCurrent;let c=e.ordered?bI(r):Ym(r);const f=e.ordered?c==="."?")":".":xI(r);let d=n&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&m&&(!m.children||!m.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(d=!0),uC(r)===c&&m){let y=-1;for(;++y<e.children.length;){const b=e.children[y];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),r.bulletCurrent=c;const h=r.containerFlow(e,i);return r.bulletLastUsed=c,r.bulletCurrent=s,l(),h}function SI(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function EI(e,n,r,i){const l=SI(r);let s=r.bulletCurrent||Ym(r);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(l==="tab"||l==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(i);f.move(s+" ".repeat(c-s.length)),f.shift(c);const d=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,f.current()),m);return d(),h;function m(y,b,w){return b?(w?"":" ".repeat(c))+y:(w?s:s+" ".repeat(c-s.length))+y}}function CI(e,n,r,i){const l=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(e,i);return s(),l(),c}const kI=Qc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function AI(e,n,r,i){return(e.children.some(function(c){return kI(c)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function TI(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}cC.peek=RI;function cC(e,n,r,i){const l=TI(r),s=r.enter("strong"),c=r.createTracker(i),f=c.move(l+l);let d=c.move(r.containerPhrasing(e,{after:l,before:f,...c.current()}));const h=d.charCodeAt(0),m=hc(i.before.charCodeAt(i.before.length-1),h,l);m.inside&&(d=Gl(h)+d.slice(1));const y=d.charCodeAt(d.length-1),b=hc(i.after.charCodeAt(0),y,l);b.inside&&(d=d.slice(0,-1)+Gl(y));const w=c.move(l+l);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+d+w}function RI(e,n,r){return r.options.strong||"*"}function NI(e,n,r,i){return r.safe(e.value,i)}function _I(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function MI(e,n,r){const i=(uC(r)+(r.options.ruleSpaces?" ":"")).repeat(_I(r));return r.options.ruleSpaces?i.slice(0,-1):i}const fC={blockquote:eI,break:j0,code:oI,definition:sI,emphasis:tC,hardBreak:j0,heading:dI,html:nC,image:rC,imageReference:aC,inlineCode:iC,link:lC,linkReference:sC,list:wI,listItem:EI,paragraph:CI,root:AI,strong:cC,text:NI,thematicBreak:MI};function jI(){return{enter:{table:DI,tableData:D0,tableHeader:D0,tableRow:PI},exit:{codeText:LI,table:OI,tableData:Zh,tableHeader:Zh,tableRow:Zh}}}function DI(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function OI(e){this.exit(e),this.data.inTable=void 0}function PI(e){this.enter({type:"tableRow",children:[]},e)}function Zh(e){this.exit(e)}function D0(e){this.enter({type:"tableCell",children:[]},e)}function LI(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,zI));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function zI(e,n){return n==="|"?n:e}function II(e){const n=e||{},r=n.tableCellPadding,i=n.tablePipeAlign,l=n.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
382
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:d,tableRow:f}};function c(w,S,E,A){return h(m(w,E,A),w.align)}function f(w,S,E,A){const T=y(w,E,A),N=h([T]);return N.slice(0,N.indexOf(`
|
|
383
|
+
`))}function d(w,S,E,A){const T=E.enter("tableCell"),N=E.enter("phrasing"),R=E.containerPhrasing(w,{...A,before:s,after:s});return N(),T(),R}function h(w,S){return W6(w,{align:S,alignDelimiters:i,padding:r,stringLength:l})}function m(w,S,E){const A=w.children;let T=-1;const N=[],R=S.enter("table");for(;++T<A.length;)N[T]=y(A[T],S,E);return R(),N}function y(w,S,E){const A=w.children;let T=-1;const N=[],R=S.enter("tableRow");for(;++T<A.length;)N[T]=d(A[T],w,S,E);return R(),N}function b(w,S,E){let A=fC.inlineCode(w,S,E);return E.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function BI(){return{exit:{taskListCheckValueChecked:O0,taskListCheckValueUnchecked:O0,paragraph:HI}}}function UI(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:FI}}}function O0(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function HI(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const l=n.children;let s=-1,c;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){c=f;break}}c===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function FI(e,n,r,i){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(i);s&&f.move(c);let d=fC.listItem(e,n,r,{...i,...f.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+c}}function qI(){return[w6(),F6(),G6(),jI(),BI()]}function VI(e){return{extensions:[S6(),q6(e),Y6(),II(e),UI()]}}const $I={tokenize:ZI,partial:!0},dC={tokenize:WI,partial:!0},hC={tokenize:JI,partial:!0},pC={tokenize:e9,partial:!0},GI={tokenize:t9,partial:!0},mC={name:"wwwAutolink",tokenize:XI,previous:yC},gC={name:"protocolAutolink",tokenize:QI,previous:vC},Gr={name:"emailAutolink",tokenize:KI,previous:xC},br={};function YI(){return{text:br}}let Qa=48;for(;Qa<123;)br[Qa]=Gr,Qa++,Qa===58?Qa=65:Qa===91&&(Qa=97);br[43]=Gr;br[45]=Gr;br[46]=Gr;br[95]=Gr;br[72]=[Gr,gC];br[104]=[Gr,gC];br[87]=[Gr,mC];br[119]=[Gr,mC];function KI(e,n,r){const i=this;let l,s;return c;function c(y){return!Ip(y)||!xC.call(i,i.previous)||Km(i.events)?r(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return Ip(y)?(e.consume(y),f):y===64?(e.consume(y),d):r(y)}function d(y){return y===46?e.check(GI,m,h)(y):y===45||y===95||tn(y)?(s=!0,e.consume(y),d):m(y)}function h(y){return e.consume(y),l=!0,d}function m(y){return s&&l&&cn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):r(y)}}function XI(e,n,r){const i=this;return l;function l(c){return c!==87&&c!==119||!yC.call(i,i.previous)||Km(i.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($I,e.attempt(dC,e.attempt(hC,s),r),r)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function QI(e,n,r){const i=this;let l="",s=!1;return c;function c(y){return(y===72||y===104)&&vC.call(i,i.previous)&&!Km(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(y),e.consume(y),f):r(y)}function f(y){if(cn(y)&&l.length<5)return l+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=l.toLowerCase();if(b==="http"||b==="https")return e.consume(y),d}return r(y)}function d(y){return y===47?(e.consume(y),s?h:(s=!0,d)):r(y)}function h(y){return y===null||fc(y)||ct(y)||ai(y)||Yc(y)?r(y):e.attempt(dC,e.attempt(hC,m),r)(y)}function m(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function ZI(e,n,r){let i=0;return l;function l(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),l):c===46&&i===3?(e.consume(c),s):r(c)}function s(c){return c===null?r(c):n(c)}}function WI(e,n,r){let i,l,s;return c;function c(h){return h===46||h===95?e.check(pC,d,f)(h):h===null||ct(h)||ai(h)||h!==45&&Yc(h)?d(h):(s=!0,e.consume(h),c)}function f(h){return h===95?i=!0:(l=i,i=void 0),e.consume(h),c}function d(h){return l||i||!s?r(h):n(h)}}function JI(e,n){let r=0,i=0;return l;function l(c){return c===40?(r++,e.consume(c),l):c===41&&i<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(pC,n,s)(c):c===null||ct(c)||ai(c)?n(c):(e.consume(c),l)}function s(c){return c===41&&i++,e.consume(c),l}}function e9(e,n,r){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||ct(f)||ai(f)?n(f):r(f)}function l(f){return f===null||f===40||f===91||ct(f)||ai(f)?n(f):i(f)}function s(f){return cn(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),i):cn(f)?(e.consume(f),c):r(f)}}function t9(e,n,r){return i;function i(s){return e.consume(s),l}function l(s){return tn(s)?r(s):n(s)}}function yC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ct(e)}function vC(e){return!cn(e)}function xC(e){return!(e===47||Ip(e))}function Ip(e){return e===43||e===45||e===46||e===95||tn(e)}function Km(e){let n=e.length,r=!1;for(;n--;){const i=e[n][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const n9={tokenize:c9,partial:!0};function r9(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:l9,continuation:{tokenize:s9},exit:u9}},text:{91:{name:"gfmFootnoteCall",tokenize:o9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a9,resolveTo:i9}}}}function a9(e,n,r){const i=this;let l=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;l--;){const d=i.events[l][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return r(d);const h=nr(i.sliceSerialize({start:c.end,end:i.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?r(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function i9(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[r+1],e[r+2],["enter",i,n],e[r+3],e[r+4],["enter",l,n],["exit",l,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(r,e.length-r+1,...f),e}function o9(e,n,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,c;return f;function f(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),d}function d(y){return y!==94?r(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(s>999||y===93&&!c||y===null||y===91||ct(y))return r(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return l.includes(nr(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(y)}return ct(y)||(c=!0),s++,e.consume(y),y===92?m:h}function m(y){return y===91||y===92||y===93?(e.consume(y),s++,h):h(y)}}function l9(e,n,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,f;return d;function d(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(S)}function m(S){if(c>999||S===93&&!f||S===null||S===91||ct(S))return r(S);if(S===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return s=nr(i.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return ct(S)||(f=!0),c++,e.consume(S),S===92?y:m}function y(S){return S===91||S===92||S===93?(e.consume(S),c++,m):m(S)}function b(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),l.includes(s)||l.push(s),We(e,w,"gfmFootnoteDefinitionWhitespace")):r(S)}function w(S){return n(S)}}function s9(e,n,r){return e.check(us,n,e.attempt(n9,n,r))}function u9(e){e.exit("gfmFootnoteDefinition")}function c9(e,n,r){const i=this;return We(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):r(s)}}function f9(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:l};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let h=d;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[d][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[d][1].end)},y={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[d][1].start)},b=[["enter",m,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",y,f]],w=f.parser.constructs.insideSpan.null;w&&Mn(b,b.length,0,Kc(w,c.slice(h+1,d),f)),Mn(b,b.length,0,[["exit",y,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",m,f]]),Mn(c,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function s(c,f,d){const h=this.previous,m=this.events;let y=0;return b;function b(S){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(S):(c.enter("strikethroughSequenceTemporary"),w(S))}function w(S){const E=uo(h);if(S===126)return y>1?d(S):(c.consume(S),y++,w);if(y<2&&!r)return d(S);const A=c.exit("strikethroughSequenceTemporary"),T=uo(S);return A._open=!T||T===2&&!!E,A._close=!E||E===2&&!!T,f(S)}}}class d9{constructor(){this.map=[]}add(n,r,i){h9(this,n,r,i)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];i.push(n.slice()),n.length=0;let l=i.pop();for(;l;){for(const s of l)n.push(s);l=i.pop()}this.map.length=0}}function h9(e,n,r,i){let l=0;if(!(r===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===n){e.map[l][1]+=r,e.map[l][2].push(...i);return}l+=1}e.map.push([n,r,i])}}function p9(e,n){let r=!1;const i=[];for(;n<e.length;){const l=e[n];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return i}function m9(){return{flow:{null:{name:"table",tokenize:g9,resolveAll:y9}}}}function g9(e,n,r){const i=this;let l=0,s=0,c;return f;function f(L){let W=i.events.length-1;for(;W>-1;){const K=i.events[W][1].type;if(K==="lineEnding"||K==="linePrefix")W--;else break}const J=W>-1?i.events[W][1].type:null,ae=J==="tableHead"||J==="tableRow"?j:d;return ae===j&&i.parser.lazy[i.now().line]?r(L):ae(L)}function d(L){return e.enter("tableHead"),e.enter("tableRow"),h(L)}function h(L){return L===124||(c=!0,s+=1),m(L)}function m(L){return L===null?r(L):ke(L)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),w):r(L):Ke(L)?We(e,m,"whitespace")(L):(s+=1,c&&(c=!1,l+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),y(L)))}function y(L){return L===null||L===124||ct(L)?(e.exit("data"),m(L)):(e.consume(L),L===92?b:y)}function b(L){return L===92||L===124?(e.consume(L),y):y(L)}function w(L){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(L):(e.enter("tableDelimiterRow"),c=!1,Ke(L)?We(e,S,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):S(L))}function S(L){return L===45||L===58?A(L):L===124?(c=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),E):D(L)}function E(L){return Ke(L)?We(e,A,"whitespace")(L):A(L)}function A(L){return L===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),T):L===45?(s+=1,T(L)):L===null||ke(L)?O(L):D(L)}function T(L){return L===45?(e.enter("tableDelimiterFiller"),N(L)):D(L)}function N(L){return L===45?(e.consume(L),N):L===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),R):(e.exit("tableDelimiterFiller"),R(L))}function R(L){return Ke(L)?We(e,O,"whitespace")(L):O(L)}function O(L){return L===124?S(L):L===null||ke(L)?!c||l!==s?D(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(L)):D(L)}function D(L){return r(L)}function j(L){return e.enter("tableRow"),B(L)}function B(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),B):L===null||ke(L)?(e.exit("tableRow"),n(L)):Ke(L)?We(e,B,"whitespace")(L):(e.enter("data"),F(L))}function F(L){return L===null||L===124||ct(L)?(e.exit("data"),B(L)):(e.consume(L),L===92?Z:F)}function Z(L){return L===92||L===124?(e.consume(L),F):F(L)}}function y9(e,n){let r=-1,i=!0,l=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,h,m,y;const b=new d9;for(;++r<e.length;){const w=e[r],S=w[1];w[0]==="enter"?S.type==="tableHead"?(f=!1,d!==0&&(P0(b,n,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(r,0,[["enter",h,n]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(i=!0,y=void 0,s=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,m={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},b.add(r,0,[["enter",m,n]])),l=S.type==="tableDelimiterRow"?2:m?3:1):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],y=Hu(b,n,s,l,void 0,y),s=[0,0,0,0]),c[2]=r)):S.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],y=Hu(b,n,s,l,void 0,y)),s=c,c=[s[1],r,0,0])):S.type==="tableHead"?(f=!0,d=r):S.type==="tableRow"||S.type==="tableDelimiterRow"?(d=r,s[1]!==0?(c[0]=c[1],y=Hu(b,n,s,l,r,y)):c[1]!==0&&(y=Hu(b,n,c,l,r,y)),l=0):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(c[3]=r)}for(d!==0&&P0(b,n,d,h,m),b.consume(n.events),r=-1;++r<n.events.length;){const w=n.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=p9(n.events,r))}return e}function Hu(e,n,r,i,l,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},to(n.events,r[0])),e.add(r[0],0,[["exit",s,n]]));const d=to(n.events,r[1]);if(s={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",s,n]]),r[2]!==0){const h=to(n.events,r[2]),m=to(n.events,r[3]),y={type:f,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",y,n]]),i!==2){const b=n.events[r[2]],w=n.events[r[3]];if(b[1].end=Object.assign({},w[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const S=r[2]+1,E=r[3]-r[2]-1;e.add(S,E,[])}}e.add(r[3]+1,0,[["exit",y,n]])}return l!==void 0&&(s.end=Object.assign({},to(n.events,l)),e.add(l,0,[["exit",s,n]]),s=void 0),s}function P0(e,n,r,i,l){const s=[],c=to(n.events,r);l&&(l.end=Object.assign({},c),s.push(["exit",l,n])),i.end=Object.assign({},c),s.push(["exit",i,n]),e.add(r+1,0,s)}function to(e,n){const r=e[n],i=r[0]==="enter"?"start":"end";return r[1][i]}const v9={name:"tasklistCheck",tokenize:b9};function x9(){return{text:{91:v9}}}function b9(e,n,r){const i=this;return l;function l(d){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return ct(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):r(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(d)}function f(d){return ke(d)?n(d):Ke(d)?e.check({tokenize:w9},n,r)(d):r(d)}}function w9(e,n,r){return We(e,i,"whitespace");function i(l){return l===null?r(l):n(l)}}function S9(e){return _E([YI(),r9(),f9(e),m9(),x9()])}const E9={};function C9(e){const n=this,r=e||E9,i=n.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(S9(r)),s.push(qI()),c.push(VI(r))}const Za=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],L0={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Za,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Za],h2:[["className","sr-only"]],img:[...Za,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Za,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Za],table:[...Za],ul:[...Za,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ea={}.hasOwnProperty;function k9(e,n){let r={type:"root",children:[]};const i={schema:n?{...L0,...n}:L0,stack:[]},l=bC(i,e);return l&&(Array.isArray(l)?l.length===1?r=l[0]:r.children=l:r=l),r}function bC(e,n){if(n&&typeof n=="object"){const r=n;switch(typeof r.type=="string"?r.type:""){case"comment":return A9(e,r);case"doctype":return T9(e,r);case"element":return R9(e,r);case"root":return N9(e,r);case"text":return _9(e,r)}}}function A9(e,n){if(e.schema.allowComments){const r=typeof n.value=="string"?n.value:"",i=r.indexOf("-->"),s={type:"comment",value:i<0?r:r.slice(0,i)};return fs(s,n),s}}function T9(e,n){if(e.schema.allowDoctypes){const r={type:"doctype"};return fs(r,n),r}}function R9(e,n){const r=typeof n.tagName=="string"?n.tagName:"";e.stack.push(r);const i=wC(e,n.children),l=M9(e,n.properties);e.stack.pop();let s=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&Ea.call(e.schema.ancestors,r))){const f=e.schema.ancestors[r];let d=-1;for(s=!1;++d<f.length;)e.stack.includes(f[d])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const c={type:"element",tagName:r,properties:l,children:i};return fs(c,n),c}function N9(e,n){const i={type:"root",children:wC(e,n.children)};return fs(i,n),i}function _9(e,n){const i={type:"text",value:typeof n.value=="string"?n.value:""};return fs(i,n),i}function wC(e,n){const r=[];if(Array.isArray(n)){const i=n;let l=-1;for(;++l<i.length;){const s=bC(e,i[l]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}function M9(e,n){const r=e.stack[e.stack.length-1],i=e.schema.attributes,l=e.schema.required,s=i&&Ea.call(i,r)?i[r]:void 0,c=i&&Ea.call(i,"*")?i["*"]:void 0,f=n&&typeof n=="object"?n:{},d={};let h;for(h in f)if(Ea.call(f,h)){const m=f[h];let y=z0(e,I0(s,h),h,m);y==null&&(y=z0(e,I0(c,h),h,m)),y!=null&&(d[h]=y)}if(l&&Ea.call(l,r)){const m=l[r];for(h in m)Ea.call(m,h)&&!Ea.call(d,h)&&(d[h]=m[h])}return d}function z0(e,n,r,i){return n?Array.isArray(i)?j9(e,n,r,i):SC(e,n,r,i):void 0}function j9(e,n,r,i){let l=-1;const s=[];for(;++l<i.length;){const c=SC(e,n,r,i[l]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function SC(e,n,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&D9(e,r,i)){if(typeof n=="object"&&n.length>1){let l=!1,s=0;for(;++s<n.length;){const c=n[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){l=!0;break}}else if(c===i){l=!0;break}}if(!l)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function D9(e,n,r){const i=e.schema.protocols&&Ea.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!i||i.length===0)return!0;const l=String(r),s=l.indexOf(":"),c=l.indexOf("?"),f=l.indexOf("#"),d=l.indexOf("/");if(s<0||d>-1&&s>d||c>-1&&s>c||f>-1&&s>f)return!0;let h=-1;for(;++h<i.length;){const m=i[h];if(s===m.length&&l.slice(0,m.length)===m)return!0}return!1}function fs(e,n){const r=CE(n);n.data&&(e.data=$l(n.data)),r&&(e.position=r)}function I0(e,n){let r,i=-1;if(e)for(;++i<e.length;){const l=e[i],s=typeof l=="string"?l:l[0];if(s===n)return l;s==="data*"&&(r=l)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return r}function O9(e){return function(n){return k9(n,e)}}const ds=x.forwardRef(({children:e,className:n,...r},i)=>g.jsx("div",{ref:i,className:ue("prose prose-sm max-w-none dark:prose-invert","prose-headings:font-semibold prose-headings:text-foreground","prose-h1:text-2xl prose-h1:mb-4 prose-h1:mt-6 first:prose-h1:mt-0","prose-h2:text-xl prose-h2:mb-3 prose-h2:mt-5","prose-h3:text-lg prose-h3:mb-2 prose-h3:mt-4","prose-p:text-sm prose-p:leading-relaxed prose-p:text-foreground prose-p:mb-4","prose-code:text-xs prose-code:bg-muted prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded prose-code:text-foreground","prose-pre:bg-muted prose-pre:text-sm prose-pre:p-4 prose-pre:rounded-lg prose-pre:overflow-x-auto","prose-blockquote:border-l-4 prose-blockquote:border-muted-foreground prose-blockquote:pl-4 prose-blockquote:italic prose-blockquote:text-muted-foreground","prose-ul:text-sm prose-ul:mb-4 prose-ul:list-disc prose-ul:pl-6","prose-ol:text-sm prose-ol:mb-4 prose-ol:list-decimal prose-ol:pl-6","prose-li:text-sm prose-li:leading-relaxed prose-li:text-foreground prose-li:mb-1 prose-li:marker:text-muted-foreground","prose-table:text-sm prose-table:border-collapse prose-table:w-full","prose-th:text-xs prose-th:font-semibold prose-th:text-muted-foreground prose-th:border prose-th:border-border prose-th:p-2 prose-th:bg-muted/50","prose-td:text-sm prose-td:border prose-td:border-border prose-td:p-2","prose-strong:text-foreground prose-strong:font-semibold","prose-em:text-foreground prose-em:italic","prose-hr:border-border prose-hr:my-6",n),...r,children:g.jsx(f6,{remarkPlugins:[C9],rehypePlugins:[O9],components:{input:({type:l,checked:s,...c})=>l==="checkbox"?g.jsx("input",{type:"checkbox",checked:s,disabled:!0,className:"mr-2 h-4 w-4 rounded border-2 border-muted-foreground bg-background accent-primary flex-shrink-0 mt-0.5",...c}):g.jsx("input",{type:l,...c}),li:({children:l,...s})=>x.Children.toArray(l).some(f=>x.isValidElement(f)&&f.props&&f.props.type==="checkbox")?g.jsx("li",{className:"flex items-start gap-1 list-none pl-0",...s,children:l}):g.jsx("li",{...s,children:l}),a:({href:l,children:s,...c})=>g.jsx("a",{href:l,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",...c,children:s})},children:e})}));ds.displayName="MarkdownViewer";var EC="AlertDialog",[P9,tH]=Gn(EC,[C1]),Yr=C1(),CC=e=>{const{__scopeAlertDialog:n,...r}=e,i=Yr(n);return g.jsx(fm,{...i,...r,modal:!0})};CC.displayName=EC;var L9="AlertDialogTrigger",kC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Yr(r);return g.jsx(U1,{...l,...i,ref:n})});kC.displayName=L9;var z9="AlertDialogPortal",AC=e=>{const{__scopeAlertDialog:n,...r}=e,i=Yr(n);return g.jsx(dm,{...i,...r})};AC.displayName=z9;var I9="AlertDialogOverlay",TC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Yr(r);return g.jsx(es,{...l,...i,ref:n})});TC.displayName=I9;var oo="AlertDialogContent",[B9,U9]=P9(oo),H9=xw("AlertDialogContent"),RC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,children:i,...l}=e,s=Yr(r),c=x.useRef(null),f=Be(n,c),d=x.useRef(null);return g.jsx(sO,{contentName:oo,titleName:NC,docsSlug:"alert-dialog",children:g.jsx(B9,{scope:r,cancelRef:d,children:g.jsxs(ts,{role:"alertdialog",...s,...l,ref:f,onOpenAutoFocus:pe(l.onOpenAutoFocus,h=>{h.preventDefault(),d.current?.focus({preventScroll:!0})}),onPointerDownOutside:h=>h.preventDefault(),onInteractOutside:h=>h.preventDefault(),children:[g.jsx(H9,{children:i}),g.jsx(q9,{contentRef:c})]})})})});RC.displayName=oo;var NC="AlertDialogTitle",_C=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Yr(r);return g.jsx(ns,{...l,...i,ref:n})});_C.displayName=NC;var MC="AlertDialogDescription",jC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Yr(r);return g.jsx(rs,{...l,...i,ref:n})});jC.displayName=MC;var F9="AlertDialogAction",DC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,l=Yr(r);return g.jsx(Oc,{...l,...i,ref:n})});DC.displayName=F9;var OC="AlertDialogCancel",PC=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:l}=U9(OC,r),s=Yr(r),c=Be(n,l);return g.jsx(Oc,{...s,...i,ref:c})});PC.displayName=OC;var q9=({contentRef:e})=>{const n=`\`${oo}\` requires a description for the component to be accessible for screen reader users.
|
|
384
|
+
|
|
385
|
+
You can add a description to the \`${oo}\` by passing a \`${MC}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
386
|
+
|
|
387
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${oo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
388
|
+
|
|
389
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return x.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,e]),null},V9=CC,$9=kC,G9=AC,LC=TC,zC=RC,IC=DC,BC=PC,UC=_C,HC=jC;const Y9=V9,K9=$9,X9=G9,FC=x.forwardRef(({className:e,...n},r)=>g.jsx(LC,{className:ue("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));FC.displayName=LC.displayName;const qC=x.forwardRef(({className:e,...n},r)=>g.jsxs(X9,{children:[g.jsx(FC,{}),g.jsx(zC,{ref:r,className:ue("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n})]}));qC.displayName=zC.displayName;const VC=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col space-y-2 text-center sm:text-left",e),...n});VC.displayName="AlertDialogHeader";const $C=({className:e,...n})=>g.jsx("div",{className:ue("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});$C.displayName="AlertDialogFooter";const GC=x.forwardRef(({className:e,...n},r)=>g.jsx(UC,{ref:r,className:ue("text-lg font-semibold",e),...n}));GC.displayName=UC.displayName;const YC=x.forwardRef(({className:e,...n},r)=>g.jsx(HC,{ref:r,className:ue("text-sm text-muted-foreground",e),...n}));YC.displayName=HC.displayName;const KC=x.forwardRef(({className:e,...n},r)=>g.jsx(IC,{ref:r,className:ue(im(),e),...n}));KC.displayName=IC.displayName;const XC=x.forwardRef(({className:e,...n},r)=>g.jsx(BC,{ref:r,className:ue(im({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));XC.displayName=BC.displayName;var Wc="Checkbox",[Q9,nH]=Gn(Wc),[Z9,Xm]=Q9(Wc);function W9(e){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:l,disabled:s,form:c,name:f,onCheckedChange:d,required:h,value:m="on",internal_do_not_use_render:y}=e,[b,w]=ka({prop:r,defaultProp:l??!1,onChange:d,caller:Wc}),[S,E]=x.useState(null),[A,T]=x.useState(null),N=x.useRef(!1),R=S?!!c||!!S.closest("form"):!0,O={checked:b,disabled:s,setChecked:w,control:S,setControl:E,name:f,form:c,value:m,hasConsumerStoppedPropagationRef:N,required:h,defaultChecked:Ca(l)?!1:l,isFormControl:R,bubbleInput:A,setBubbleInput:T};return g.jsx(Z9,{scope:n,...O,children:J9(y)?y(O):i})}var QC="CheckboxTrigger",ZC=x.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...i},l)=>{const{control:s,value:c,disabled:f,checked:d,required:h,setControl:m,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:S}=Xm(QC,e),E=Be(l,m),A=x.useRef(d);return x.useEffect(()=>{const T=s?.form;if(T){const N=()=>y(A.current);return T.addEventListener("reset",N),()=>T.removeEventListener("reset",N)}},[s,y]),g.jsx(Ne.button,{type:"button",role:"checkbox","aria-checked":Ca(d)?"mixed":d,"aria-required":h,"data-state":nk(d),"data-disabled":f?"":void 0,disabled:f,value:c,...i,ref:E,onKeyDown:pe(n,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:pe(r,T=>{y(N=>Ca(N)?!0:!N),S&&w&&(b.current=T.isPropagationStopped(),b.current||T.stopPropagation())})})});ZC.displayName=QC;var Qm=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:i,checked:l,defaultChecked:s,required:c,disabled:f,value:d,onCheckedChange:h,form:m,...y}=e;return g.jsx(W9,{__scopeCheckbox:r,checked:l,defaultChecked:s,disabled:f,required:c,onCheckedChange:h,name:i,form:m,value:d,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(ZC,{...y,ref:n,__scopeCheckbox:r}),b&&g.jsx(tk,{__scopeCheckbox:r})]})})});Qm.displayName=Wc;var WC="CheckboxIndicator",JC=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:i,...l}=e,s=Xm(WC,r);return g.jsx(fn,{present:i||Ca(s.checked)||s.checked===!0,children:g.jsx(Ne.span,{"data-state":nk(s.checked),"data-disabled":s.disabled?"":void 0,...l,ref:n,style:{pointerEvents:"none",...e.style}})})});JC.displayName=WC;var ek="CheckboxBubbleInput",tk=x.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:l,checked:s,defaultChecked:c,required:f,disabled:d,name:h,value:m,form:y,bubbleInput:b,setBubbleInput:w}=Xm(ek,e),S=Be(r,w),E=NS(s),A=nS(i);x.useEffect(()=>{const N=b;if(!N)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,j=!l.current;if(E!==s&&D){const B=new Event("click",{bubbles:j});N.indeterminate=Ca(s),D.call(N,Ca(s)?!1:s),N.dispatchEvent(B)}},[b,E,s,l]);const T=x.useRef(Ca(s)?!1:s);return g.jsx(Ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??T.current,required:f,disabled:d,name:h,value:m,form:y,...n,tabIndex:-1,ref:S,style:{...n.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});tk.displayName=ek;function J9(e){return typeof e=="function"}function Ca(e){return e==="indeterminate"}function nk(e){return Ca(e)?"indeterminate":e?"checked":"unchecked"}const ec=x.forwardRef(({className:e,...n},r)=>g.jsx(Qm,{ref:r,className:ue("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...n,children:g.jsx(JC,{className:ue("flex items-center justify-center text-current"),children:g.jsx(Nc,{className:"h-4 w-4"})})}));ec.displayName=Qm.displayName;function eB(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var Zm="ScrollArea",[rk,rH]=Gn(Zm),[tB,Yn]=rk(Zm),ak=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,type:i="hover",dir:l,scrollHideDelay:s=600,...c}=e,[f,d]=x.useState(null),[h,m]=x.useState(null),[y,b]=x.useState(null),[w,S]=x.useState(null),[E,A]=x.useState(null),[T,N]=x.useState(0),[R,O]=x.useState(0),[D,j]=x.useState(!1),[B,F]=x.useState(!1),Z=Be(n,W=>d(W)),L=Fc(l);return g.jsx(tB,{scope:r,type:i,dir:L,scrollHideDelay:s,scrollArea:f,viewport:h,onViewportChange:m,content:y,onContentChange:b,scrollbarX:w,onScrollbarXChange:S,scrollbarXEnabled:D,onScrollbarXEnabledChange:j,scrollbarY:E,onScrollbarYChange:A,scrollbarYEnabled:B,onScrollbarYEnabledChange:F,onCornerWidthChange:N,onCornerHeightChange:O,children:g.jsx(Ne.div,{dir:L,...c,ref:Z,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":R+"px",...e.style}})})});ak.displayName=Zm;var ik="ScrollAreaViewport",ok=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,children:i,nonce:l,...s}=e,c=Yn(ik,r),f=x.useRef(null),d=Be(n,f,c.onViewportChange);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),g.jsx(Ne.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:g.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});ok.displayName=ik;var wr="ScrollAreaScrollbar",Wm=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Yn(wr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=l,f=e.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),l.type==="hover"?g.jsx(nB,{...i,ref:n,forceMount:r}):l.type==="scroll"?g.jsx(rB,{...i,ref:n,forceMount:r}):l.type==="auto"?g.jsx(lk,{...i,ref:n,forceMount:r}):l.type==="always"?g.jsx(Jm,{...i,ref:n}):null});Wm.displayName=wr;var nB=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Yn(wr,e.__scopeScrollArea),[s,c]=x.useState(!1);return x.useEffect(()=>{const f=l.scrollArea;let d=0;if(f){const h=()=>{window.clearTimeout(d),c(!0)},m=()=>{d=window.setTimeout(()=>c(!1),l.scrollHideDelay)};return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",m)}}},[l.scrollArea,l.scrollHideDelay]),g.jsx(fn,{present:r||s,children:g.jsx(lk,{"data-state":s?"visible":"hidden",...i,ref:n})})}),rB=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=Yn(wr,e.__scopeScrollArea),s=e.orientation==="horizontal",c=ef(()=>d("SCROLL_END"),100),[f,d]=eB("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return x.useEffect(()=>{if(f==="idle"){const h=window.setTimeout(()=>d("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(h)}},[f,l.scrollHideDelay,d]),x.useEffect(()=>{const h=l.viewport,m=s?"scrollLeft":"scrollTop";if(h){let y=h[m];const b=()=>{const w=h[m];y!==w&&(d("SCROLL"),c()),y=w};return h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[l.viewport,s,d,c]),g.jsx(fn,{present:r||f!=="hidden",children:g.jsx(Jm,{"data-state":f==="hidden"?"hidden":"visible",...i,ref:n,onPointerEnter:pe(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:pe(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),lk=x.forwardRef((e,n)=>{const r=Yn(wr,e.__scopeScrollArea),{forceMount:i,...l}=e,[s,c]=x.useState(!1),f=e.orientation==="horizontal",d=ef(()=>{if(r.viewport){const h=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(f?h:m)}},10);return co(r.viewport,d),co(r.content,d),g.jsx(fn,{present:i||s,children:g.jsx(Jm,{"data-state":s?"visible":"hidden",...l,ref:n})})}),Jm=x.forwardRef((e,n)=>{const{orientation:r="vertical",...i}=e,l=Yn(wr,e.__scopeScrollArea),s=x.useRef(null),c=x.useRef(0),[f,d]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=dk(f.viewport,f.content),m={...i,sizes:f,onSizesChange:d,hasThumb:h>0&&h<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,w){return uB(b,c.current,f,w)}return r==="horizontal"?g.jsx(aB,{...m,ref:n,onThumbPositionChange:()=>{if(l.viewport&&s.current){const b=l.viewport.scrollLeft,w=B0(b,f,l.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollLeft=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollLeft=y(b,l.dir))}}):r==="vertical"?g.jsx(iB,{...m,ref:n,onThumbPositionChange:()=>{if(l.viewport&&s.current){const b=l.viewport.scrollTop,w=B0(b,f);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{l.viewport&&(l.viewport.scrollTop=b)},onDragScroll:b=>{l.viewport&&(l.viewport.scrollTop=y(b))}}):null}),aB=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...l}=e,s=Yn(wr,e.__scopeScrollArea),[c,f]=x.useState(),d=x.useRef(null),h=Be(n,d,s.onScrollbarXChange);return x.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),g.jsx(uk,{"data-orientation":"horizontal",...l,ref:h,sizes:r,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Jc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollLeft+m.deltaX;e.onWheelScroll(b),pk(b,y)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:mc(c.paddingLeft),paddingEnd:mc(c.paddingRight)}})}})}),iB=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...l}=e,s=Yn(wr,e.__scopeScrollArea),[c,f]=x.useState(),d=x.useRef(null),h=Be(n,d,s.onScrollbarYChange);return x.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),g.jsx(uk,{"data-orientation":"vertical",...l,ref:h,sizes:r,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Jc(r)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,y)=>{if(s.viewport){const b=s.viewport.scrollTop+m.deltaY;e.onWheelScroll(b),pk(b,y)&&m.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:mc(c.paddingTop),paddingEnd:mc(c.paddingBottom)}})}})}),[oB,sk]=rk(wr),uk=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:l,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:d,onDragScroll:h,onWheelScroll:m,onResize:y,...b}=e,w=Yn(wr,r),[S,E]=x.useState(null),A=Be(n,Z=>E(Z)),T=x.useRef(null),N=x.useRef(""),R=w.viewport,O=i.content-i.viewport,D=_t(m),j=_t(d),B=ef(y,10);function F(Z){if(T.current){const L=Z.clientX-T.current.left,W=Z.clientY-T.current.top;h({x:L,y:W})}}return x.useEffect(()=>{const Z=L=>{const W=L.target;S?.contains(W)&&D(L,O)};return document.addEventListener("wheel",Z,{passive:!1}),()=>document.removeEventListener("wheel",Z,{passive:!1})},[R,S,O,D]),x.useEffect(j,[i,j]),co(S,B),co(w.content,B),g.jsx(oB,{scope:r,scrollbar:S,hasThumb:l,onThumbChange:_t(s),onThumbPointerUp:_t(c),onThumbPositionChange:j,onThumbPointerDown:_t(f),children:g.jsx(Ne.div,{...b,ref:A,style:{position:"absolute",...b.style},onPointerDown:pe(e.onPointerDown,Z=>{Z.button===0&&(Z.target.setPointerCapture(Z.pointerId),T.current=S.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),F(Z))}),onPointerMove:pe(e.onPointerMove,F),onPointerUp:pe(e.onPointerUp,Z=>{const L=Z.target;L.hasPointerCapture(Z.pointerId)&&L.releasePointerCapture(Z.pointerId),document.body.style.webkitUserSelect=N.current,w.viewport&&(w.viewport.style.scrollBehavior=""),T.current=null})})})}),pc="ScrollAreaThumb",ck=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,l=sk(pc,e.__scopeScrollArea);return g.jsx(fn,{present:r||l.hasThumb,children:g.jsx(lB,{ref:n,...i})})}),lB=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,style:i,...l}=e,s=Yn(pc,r),c=sk(pc,r),{onThumbPositionChange:f}=c,d=Be(n,y=>c.onThumbChange(y)),h=x.useRef(void 0),m=ef(()=>{h.current&&(h.current(),h.current=void 0)},100);return x.useEffect(()=>{const y=s.viewport;if(y){const b=()=>{if(m(),!h.current){const w=cB(y,f);h.current=w,f()}};return f(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[s.viewport,m,f]),g.jsx(Ne.div,{"data-state":c.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:pe(e.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),S=y.clientX-w.left,E=y.clientY-w.top;c.onThumbPointerDown({x:S,y:E})}),onPointerUp:pe(e.onPointerUp,c.onThumbPointerUp)})});ck.displayName=pc;var eg="ScrollAreaCorner",fk=x.forwardRef((e,n)=>{const r=Yn(eg,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(sB,{...e,ref:n}):null});fk.displayName=eg;var sB=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,...i}=e,l=Yn(eg,r),[s,c]=x.useState(0),[f,d]=x.useState(0),h=!!(s&&f);return co(l.scrollbarX,()=>{const m=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(m),d(m)}),co(l.scrollbarY,()=>{const m=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(m),c(m)}),h?g.jsx(Ne.div,{...i,ref:n,style:{width:s,height:f,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function mc(e){return e?parseInt(e,10):0}function dk(e,n){const r=e/n;return isNaN(r)?0:r}function Jc(e){const n=dk(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*n;return Math.max(i,18)}function uB(e,n,r,i="ltr"){const l=Jc(r),s=l/2,c=n||s,f=l-c,d=r.scrollbar.paddingStart+c,h=r.scrollbar.size-r.scrollbar.paddingEnd-f,m=r.content-r.viewport,y=i==="ltr"?[0,m]:[m*-1,0];return hk([d,h],y)(e)}function B0(e,n,r="ltr"){const i=Jc(n),l=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=n.scrollbar.size-l,c=n.content-n.viewport,f=s-i,d=r==="ltr"?[0,c]:[c*-1,0],h=bp(e,d);return hk([0,c],[0,f])(h)}function hk(e,n){return r=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const i=(n[1]-n[0])/(e[1]-e[0]);return n[0]+i*(r-e[0])}}function pk(e,n){return e>0&&e<n}var cB=(e,n=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function l(){const s={left:e.scrollLeft,top:e.scrollTop},c=r.left!==s.left,f=r.top!==s.top;(c||f)&&n(),r=s,i=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(i)};function ef(e,n){const r=_t(e),i=x.useRef(0);return x.useEffect(()=>()=>window.clearTimeout(i.current),[]),x.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,n)},[r,n])}function co(e,n){const r=_t(n);qt(()=>{let i=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return l.observe(e),()=>{window.cancelAnimationFrame(i),l.unobserve(e)}}},[e,r])}var mk=ak,fB=ok,dB=fk;const Yl=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(mk,{ref:i,className:ue("relative overflow-hidden",e),...r,children:[g.jsx(fB,{className:"h-full w-full rounded-[inherit]",children:n}),g.jsx(gk,{}),g.jsx(dB,{})]}));Yl.displayName=mk.displayName;const gk=x.forwardRef(({className:e,orientation:n="vertical",...r},i)=>g.jsx(Wm,{ref:i,orientation:n,className:ue("flex touch-none select-none transition-colors",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:g.jsx(ck,{className:"relative flex-1 rounded-full bg-border"})}));gk.displayName=Wm.displayName;async function yk(){const n=[...[{id:"project-md",name:"project.md",path:".nut/context/project.md",relativePath:"context/project.md",type:"context",content:"Loading..."},{id:"architecture-md",name:"architecture.md",path:".nut/context/architecture.md",relativePath:"context/architecture.md",type:"context",content:"Loading..."}]];try{const r=await fetch(`${At}/api/v1/context/knowledge`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.documents)){const l=i.documents.filter(s=>typeof s?.filename=="string").map(s=>({id:`knowledge-${s.filename.replace(".md","")}`,name:s.filename,path:`.nut/context/knowledge/${s.filename}`,relativePath:`context/knowledge/${s.filename}`,type:"knowledge",content:"Loading..."}));n.push(...l)}}}catch(r){console.error("Error fetching knowledge documents:",r)}try{const r=await fetch(`${At}/api/v1/proposals`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.data)){const l=i.data.filter(s=>typeof s?.id=="string"&&typeof s.intent=="string").map(s=>({id:`proposal-${s.id}`,name:`${s.id}: ${s.intent}`,path:`.nut/proposals/${s.id}.md`,relativePath:`proposals/${s.id}.md`,type:"proposal",content:"Loading..."}));n.push(...l)}}}catch(r){console.error("Error fetching proposals:",r)}return n}async function Bp(e){if(e.content&&e.content!=="Loading...")return e;try{let n=null;if(e.name==="project.md"?n="/api/v1/context/project":e.name==="architecture.md"?n="/api/v1/context/architecture":e.type==="knowledge"?n=`/api/v1/context/knowledge/${e.path?.split("/").pop()?.replace(".md","")||e.relativePath?.split("/").pop()?.replace(".md","")||e.name.replace(".md","")}`:e.type==="proposal"&&(n=`/api/v1/proposals/${e.id.replace("proposal-","")}`),n){const r=await fetch(`${At}${n}`);if(r.ok)if(e.type==="proposal"){const l=(await r.json()).data;if(l&&typeof l.intent=="string")return{...e,content:`# ${l.intent}
|
|
390
|
+
|
|
391
|
+
${l.content||"No content available"}`}}else{const l=(await r.json()).document?.content;return{...e,content:typeof l=="string"&&l.length>0?l:"Content not available"}}}}catch(n){console.error(`Error loading content for ${e.name}:`,n)}return{...e,content:e.content??"Content could not be loaded."}}function U0({open:e,onOpenChange:n,onSelectionConfirm:r,initialSelection:i=[]}){const[l,s]=x.useState([]),[c,f]=x.useState(i),[d,h]=x.useState(null),[m,y]=x.useState(!1);x.useEffect(()=>{e&&(b(),f(i))},[e,i]);const b=async()=>{y(!0);try{const R=await yk();s(R)}catch(R){console.error("Error loading context files:",R)}finally{y(!1)}},w=async R=>{if(R.content&&R.content!=="Loading...")return R;try{return await Bp(R)}catch(O){console.error("Error loading file content via API:",O)}try{let O="Content could not be loaded.";return R.name==="project.md"?O=`# Coconut - Project Context
|
|
392
|
+
|
|
393
|
+
## What is Coconut?
|
|
394
|
+
|
|
395
|
+
Coconut (Git-Adjacent Intent Tracking) revolutionizes software development by treating intent, plans, and product operations as first-class citizens alongside code. Built for the AI era where humans and agents collaborate seamlessly.
|
|
396
|
+
|
|
397
|
+
## Core Philosophy
|
|
398
|
+
|
|
399
|
+
1. **Lives with your code** - Build and manage your project context, backlog, agents, and knowledge that lives directly alongside your code
|
|
400
|
+
2. **Everyone is first-class** - PMs, designers, engineers, and AI agents are all first-class
|
|
401
|
+
3. **Accessible everywhere** - IDE, Web UI, CLI, Mobile
|
|
402
|
+
4. **Inline AI** - AI everywhere with flexible API key management
|
|
403
|
+
5. **File-first architecture** - Start with zero infrastructure (on premise or hosted), scale when needed
|
|
404
|
+
6. **Intent over diffs** - Express what you want to achieve, not just what changed`:R.name==="architecture.md"&&(O=`# Coconut Architecture
|
|
405
|
+
|
|
406
|
+
## Technology Stack
|
|
407
|
+
|
|
408
|
+
### Frontend
|
|
409
|
+
- **Next.js 14+**: React framework with App Router
|
|
410
|
+
- **TypeScript**: End-to-end type safety
|
|
411
|
+
- **Tailwind CSS**: Utility-first styling
|
|
412
|
+
- **shadcn/ui**: Modern component library
|
|
413
|
+
|
|
414
|
+
### Data Layer
|
|
415
|
+
- **File Storage**: Markdown files with YAML frontmatter in .nut/
|
|
416
|
+
- **Local State**: React Context + localStorage
|
|
417
|
+
- **Real-time**: File system watching with chokidar
|
|
418
|
+
|
|
419
|
+
### AI Integration
|
|
420
|
+
- **Vercel AI SDK**: Unified AI integration
|
|
421
|
+
- **OpenAI/Anthropic SDKs**: Direct model access
|
|
422
|
+
|
|
423
|
+
## Repository Structure
|
|
424
|
+
|
|
425
|
+
\`\`\`
|
|
426
|
+
project-root/
|
|
427
|
+
├── .nut/ # Coconut data directory
|
|
428
|
+
│ ├── config.json # Repository configuration
|
|
429
|
+
│ ├── proposals/ # Change proposals
|
|
430
|
+
│ ├── agents/ # AI agents
|
|
431
|
+
│ ├── context/ # Project context
|
|
432
|
+
│ └── knowledge/ # Team knowledge
|
|
433
|
+
└── your-actual-code/ # Your project files
|
|
434
|
+
\`\`\``),{...R,content:O}}catch(O){return console.error("Fallback content generation failed:",O),{...R,content:"Error loading content"}}},S=async R=>{const O=await w(R);h(O)},E=(R,O)=>{f(D=>O?[...D,R]:D.filter(j=>j!==R))},A=()=>{const R=l.filter(O=>c.includes(O.id));r({files:R,selectedIds:c}),n(!1)},T=R=>{switch(R){case"context":case"knowledge":return g.jsx(rc,{className:"h-4 w-4"});case"agent":return g.jsx(Ol,{className:"h-4 w-4"});case"proposal":return g.jsx(vb,{className:"h-4 w-4"});default:return g.jsx(vb,{className:"h-4 w-4"})}},N=l.reduce((R,O)=>{let D="context";return O.type==="knowledge"?D="knowledge":O.type==="proposal"&&(D="proposals"),R[D]||(R[D]=[]),R[D].push(O),R},{});return g.jsx(Gc,{open:e,onOpenChange:n,children:g.jsxs(is,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(os,{children:g.jsx(ls,{children:"Select Context Files"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsx("div",{className:"mb-2 text-sm font-medium",children:"Project Context"}),g.jsx(Yl,{className:"h-full",children:m?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(ac,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading files..."})]})}):l.length===0?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"text-center text-muted-foreground",children:[g.jsx(yM,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No context files available"})]})}):g.jsxs("div",{className:"space-y-1",children:[N.context&&g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Gu,{className:"h-3 w-3"}),g.jsx("span",{children:"Context"})]}),N.context.map(R=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===R.id&&"bg-muted"),onClick:()=>S(R),children:[g.jsx(ec,{checked:c.includes(R.id),onCheckedChange:O=>E(R.id,O),onClick:O=>O.stopPropagation()}),T(R.type),g.jsx("span",{className:"text-sm truncate flex-1",children:R.name})]},R.id))]}),N.knowledge&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Gu,{className:"h-3 w-3"}),g.jsx("span",{children:"Knowledge"})]}),N.knowledge.map(R=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===R.id&&"bg-muted"),onClick:()=>S(R),children:[g.jsx(ec,{checked:c.includes(R.id),onCheckedChange:O=>E(R.id,O),onClick:O=>O.stopPropagation()}),T(R.type),g.jsx("span",{className:"text-sm truncate flex-1",children:R.name})]},R.id))]}),N.proposals&&g.jsxs("div",{className:"space-y-1 mt-4",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-2",children:[g.jsx(Gu,{className:"h-3 w-3"}),g.jsx("span",{children:"Proposals"})]}),N.proposals.map(R=>g.jsxs("div",{className:ue("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",d?.id===R.id&&"bg-muted"),onClick:()=>S(R),children:[g.jsx(ec,{checked:c.includes(R.id),onCheckedChange:O=>E(R.id,O),onClick:O=>O.stopPropagation()}),T(R.type),g.jsx("span",{className:"text-sm truncate flex-1",title:R.name,children:R.name.length>30?`${R.name.substring(0,30)}...`:R.name})]},R.id))]})]})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:d?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[T(d.type),g.jsx("span",{className:"font-medium",children:d.name}),g.jsx("span",{className:"text-xs text-muted-foreground",children:d.relativePath})]})}),g.jsx(Yl,{className:"flex-1 border rounded-md p-4",children:d.content==="Loading..."?g.jsx("div",{className:"flex items-center justify-center py-8",children:g.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[g.jsx(ac,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading content..."})]})}):g.jsx(ds,{className:"[&_.prose]:max-w-none",children:d.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(rc,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a file to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsxs("div",{className:"text-sm text-muted-foreground",children:[c.length," file",c.length!==1?"s":""," selected"]}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(kt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(kt,{onClick:A,children:"Use Selected Context"})]})]})]})})}function H0({open:e,onOpenChange:n,onSelect:r,initialSelectedId:i=null}){const[l,s]=x.useState([]),[c,f]=x.useState(!1),[d,h]=x.useState(i);x.useEffect(()=>{e&&(h(i),f(!0),fetch(`${At}/api/v1/agents`).then(async b=>{if(!b.ok)throw new Error("Failed to load agents");const w=await b.json();s(w.documents||[])}).catch(()=>s([])).finally(()=>f(!1)))},[e,i]);const m=x.useMemo(()=>l.find(b=>b.filename.replace(".md","")===d)||null,[l,d]),y=()=>{m&&(r(m),n(!1))};return g.jsx(Gc,{open:e,onOpenChange:n,children:g.jsxs(is,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(os,{children:g.jsx(ls,{children:"Select an Agent"})}),g.jsxs("div",{className:"flex-1 flex gap-4 min-h-0",children:[g.jsxs("div",{className:"w-1/3 border-r pr-4",children:[g.jsxs("div",{className:"mb-2 text-sm font-medium flex items-center gap-2",children:[g.jsx(Gu,{className:"h-3 w-3"}),g.jsx("span",{children:"Agents"})]}),g.jsx(Yl,{className:"h-full",children:c?g.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):l.length===0?g.jsx("div",{className:"py-8 text-sm text-muted-foreground text-center",children:"No agents found"}):g.jsx("div",{className:"space-y-1",children:l.map(b=>{const w=b.filename.replace(".md",""),S=d===w;return g.jsxs("button",{onClick:()=>h(w),className:ue("w-full text-left p-2 rounded-md hover:bg-muted flex items-center gap-2",S&&"bg-muted"),children:[g.jsx("input",{type:"radio",checked:S,onChange:()=>h(w),className:"h-4 w-4"}),g.jsx(Ol,{className:"h-4 w-4"}),g.jsx("span",{className:"text-sm truncate flex-1",children:b.metadata?.name||b.title})]},w)})})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:m?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex items-center justify-between mb-4",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Ol,{className:"h-4 w-4"}),g.jsx("span",{className:"font-medium",children:m.metadata?.name||m.title}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:[".nut/agents/",m.filename]})]})}),g.jsx(Yl,{className:"flex-1 border rounded-md p-4",children:g.jsx(ds,{className:"[&_.prose]:max-w-none",children:m.content||"No content available"})})]}):g.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:g.jsxs("div",{className:"text-center",children:[g.jsx(Ol,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select an agent to preview"})]})})})]}),g.jsxs("div",{className:"flex items-center justify-between pt-4 border-t",children:[g.jsx("div",{className:"text-sm text-muted-foreground",children:m?`Selected: ${m.metadata?.name||m.title}`:"No agent selected"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(kt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(kt,{onClick:y,disabled:!m,children:"Use Agent"})]})]})]})})}const hB=[{id:"openai/gpt-4o",label:"GPT-4o",provider:"openai",supportsMCP:!0,strengths:["balanced","reasoning","code","tools"],notes:"Great general model with tool/function calling support."},{id:"openai/gpt-4o-mini",label:"GPT-4o Mini",provider:"openai",supportsMCP:!0,strengths:["cost-effective","fast","tools"],notes:"Good for quick, inexpensive tasks with function calling."},{id:"openai/gpt-4.1",label:"GPT-4.1",provider:"openai",supportsMCP:!0,strengths:["coding","instruction following","long context"],notes:"Latest GPT-4 series with enhanced capabilities."},{id:"openai/o3-mini",label:"o3-mini",provider:"openai",supportsMCP:!0,strengths:["reasoning","math","coding"],notes:"Reasoning model optimized for efficiency."},{id:"anthropic/claude-sonnet-4.5",label:"Claude Sonnet 4.5",provider:"anthropic",supportsMCP:!0,strengths:["agents","coding","tools","fast","long context"],notes:"Most advanced Sonnet - 1.5-2x faster, optimized for agents and tool orchestration."},{id:"anthropic/claude-sonnet-4",label:"Claude Sonnet 4",provider:"anthropic",supportsMCP:!0,strengths:["reasoning","analysis","tools","coding"],notes:"Excellent tool use and reasoning capabilities."},{id:"anthropic/claude-3.5-sonnet",label:"Claude 3.5 Sonnet",provider:"anthropic",supportsMCP:!0,strengths:["reasoning","analysis","tools"],notes:"Reliable Claude model with strong tool support."},{id:"google/gemini-2.0-flash-001",label:"Gemini 2.0 Flash",provider:"google",supportsMCP:!0,strengths:["speed","multimodal","tools"],notes:"Fast Google model with function calling."},{id:"meta-llama/llama-3.1-405b-instruct",label:"Llama 3.1 405B",provider:"meta-llama",supportsMCP:!0,strengths:["reasoning","open weights","code"],notes:"High-capacity open model; function calling often available."},{id:"qwen/qwen-2.5-72b-instruct",label:"Qwen 2.5 72B",provider:"qwen",supportsMCP:!0,strengths:["cost-effective","code","tools"],notes:"Strong value open model with tool support."}],pB={models:hB},vk=pB;function mB(){return vk.models}function gB(e){return vk.models.find(n=>n.id===e)}function yB(e){return!!gB(e)?.supportsMCP}const xk=x.forwardRef(({className:e,...n},r)=>g.jsx("textarea",{className:ue("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));xk.displayName="Textarea";const vB=/```knowledge_action\s*\n([\s\S]*?)```/gi;function Up(e){if(!e||typeof e!="object")return!1;const n=e;return!(typeof n.action!="string"||n.action!=="create"&&n.action!=="update"||typeof n.title!="string"||typeof n.content!="string"||n.action==="update"&&typeof n.filename!="string")}function Hp(e){const n=e.metadata?{...e.metadata,tags:Array.isArray(e.metadata.tags)?e.metadata.tags:e.metadata.tags?[e.metadata.tags].flat().map(String):[],sources:Array.isArray(e.metadata.sources)?e.metadata.sources:e.metadata.sources?[e.metadata.sources].flat().map(String):[],related:Array.isArray(e.metadata.related)?e.metadata.related:[],audience:Array.isArray(e.metadata.audience)?e.metadata.audience:[]}:void 0;return{...e,metadata:n}}function xB(e){if(!e)return[];const n=Array.isArray(e)?e:[e],r=[];for(const i of n)Up(i)&&r.push(Hp(i));return r}function bB(e){const n=e.trimEnd();if(!n.endsWith("}"))return null;let r=0,i=!1,l=!1;for(let s=n.length-1;s>=0;s--){const c=n[s];if(i){l?l=!1:c==="\\"?l=!0:c==='"'&&(i=!1);continue}if(c==='"'){i=!0;continue}if(c==="}"){r+=1;continue}if(c==="{"&&(r-=1,r===0)){const f=n.slice(s);try{const d=JSON.parse(f),h=xB(d);if(h.length>0)return{cleaned:n.slice(0,s).trimEnd(),actions:h}}catch(d){console.error("Failed to parse trailing knowledge action payload:",d)}return null}}return null}function wB(e){const n=[];let i=e.replace(vB,(l,s)=>{try{const c=JSON.parse(s.trim());Array.isArray(c)?c.forEach(f=>{Up(f)&&n.push(Hp(f))}):Up(c)&&n.push(Hp(c))}catch(c){console.error("Failed to parse knowledge_action block:",c)}return""}).replace(/\n{3,}/g,`
|
|
435
|
+
|
|
436
|
+
`).trim();if(n.length===0){const l=bB(i);l&&(n.push(...l.actions),i=l.cleaned)}return{cleanedContent:i,actions:n}}function SB(e){return e.action==="create"?`Proposed new knowledge document "${e.title}"`:`Proposed updates to ${e.filename||e.title}`}function EB(e,n){const r=e.split(`
|
|
437
|
+
`),i=n.split(`
|
|
438
|
+
`),l=r.length,s=i.length,c=Array.from({length:l+1},()=>Array(s+1).fill(0));for(let m=l-1;m>=0;m--)for(let y=s-1;y>=0;y--)r[m]===i[y]?c[m][y]=c[m+1][y+1]+1:c[m][y]=Math.max(c[m+1][y],c[m][y+1]);const f=[];let d=0,h=0;for(;d<l&&h<s;)r[d]===i[h]?(f.push({type:"context",value:r[d]}),d++,h++):c[d+1][h]>=c[d][h+1]?(f.push({type:"removed",value:r[d]}),d++):(f.push({type:"added",value:i[h]}),h++);for(;d<l;)f.push({type:"removed",value:r[d]}),d++;for(;h<s;)f.push({type:"added",value:i[h]}),h++;return f}function CB({original:e,updated:n}){const r=x.useMemo(()=>EB(e??"",n??""),[e,n]);return g.jsx("div",{className:"max-h-[60vh] overflow-auto border rounded-md bg-background",children:g.jsx("pre",{className:"text-xs leading-5 font-mono p-4 space-y-1",children:r.map((i,l)=>{const s=i.type==="added"?"+":i.type==="removed"?"-":" ",c=i.type==="added"?"bg-green-100 dark:bg-green-950/40 text-green-900 dark:text-green-200 border-l-2 border-green-500":i.type==="removed"?"bg-red-100 dark:bg-red-950/40 text-red-900 dark:text-red-200 border-l-2 border-red-500":"text-muted-foreground";return g.jsxs("div",{className:ue("px-2 py-1 whitespace-pre-wrap break-words rounded-sm",c),children:[s," ",i.value]},l)})})})}function kB({action:e,onApply:n,fetchDocumentContent:r}){const[i,l]=x.useState(!1),[s,c]=x.useState(null),[f,d]=x.useState(null),[h,m]=x.useState(!1),[y,b]=x.useState(!1),[w,S]=x.useState("idle"),[E,A]=x.useState(null),T=e.action==="create"?"Preview document":"View diff",N=e.action==="create"?"Add to knowledge":`Update ${e.filename||"document"}`,R=async()=>{if(d(null),e.action==="update"){if(!e.filename){d("Filename is required to load the existing document."),l(!0);return}l(!0),m(!0);try{const j=await r(e.filename);if(!j){d("Could not load the existing knowledge document.");return}c({mode:"diff",original:j,updated:e.content})}catch(j){d(j instanceof Error?j.message:"Failed to load preview.")}finally{m(!1)}}else c({mode:"content",updated:e.content}),l(!0)},O=async()=>{A(null),S("idle"),b(!0);try{await n(e),S("success")}catch(j){S("error"),A(j instanceof Error?j.message:"Failed to update knowledge document.")}finally{b(!1)}},D=()=>{l(!1),c(null),d(null)};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"border border-dashed border-primary/40 bg-primary/5 text-sm rounded-md p-3 space-y-2",children:[g.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[g.jsxs("div",{className:"space-y-1",children:[g.jsx("p",{className:"font-medium leading-tight",children:SB(e)}),e.summary&&g.jsx("p",{className:"text-xs text-muted-foreground leading-snug",children:e.summary})]}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(kt,{variant:"outline",size:"sm",onClick:R,disabled:h,children:h?"Loading…":T}),g.jsx(kt,{size:"sm",onClick:O,disabled:y||w==="success",children:y?"Applying…":N})]})]}),w==="success"&&g.jsx("p",{className:"text-xs text-green-600 dark:text-green-400",children:"Knowledge document saved."}),w==="error"&&E&&g.jsx("p",{className:"text-xs text-destructive",children:E})]}),g.jsx(Gc,{open:i,onOpenChange:j=>j?l(!0):D(),children:g.jsxs(is,{className:"max-w-3xl",children:[g.jsxs(os,{children:[g.jsx(ls,{children:e.action==="create"?e.title:`Proposed changes for ${e.filename||e.title}`}),f&&g.jsx(Ml,{className:"text-destructive",children:f}),h&&!f&&g.jsx(Ml,{children:"Loading preview…"}),s?.mode==="diff"&&!h&&!f&&g.jsx(Ml,{children:"Review differences before updating the knowledge document."}),s?.mode==="content"&&!h&&!f&&g.jsx(Ml,{children:"Review the drafted knowledge content before saving."})]}),!h&&!f&&s&&(s.mode==="diff"&&s.original?g.jsx(CB,{original:s.original,updated:s.updated}):g.jsx("div",{className:"border rounded-md p-4 max-h-[60vh] overflow-auto bg-background",children:g.jsx(ds,{className:"text-sm [&_.prose]:text-sm",children:s.updated})})),g.jsx(pE,{children:g.jsx(kt,{variant:"outline",size:"sm",onClick:D,children:"Close"})})]})})]})}function AB({isOpen:e,onToggle:n,contextInfo:r,discussDocument:i,onDiscussDocumentHandled:l}){const[s,c]=x.useState("openai/gpt-4o"),[f,d]=x.useState(""),[h,m]=x.useState([]),[y,b]=x.useState(!1),[w,S]=x.useState(!1),E=u1(),[A,T]=x.useState(!1),[N,R]=x.useState([]),[O,D]=x.useState(!1),[j,B]=x.useState(!1),[F,Z]=x.useState([]),[L,W]=x.useState([]),J=x.useRef([]),ae=x.useRef(new Map),K=x.useRef(!0),[ie,z]=x.useState([]),X=ie.length,H=X>0?`${X} file${X===1?"":"s"}`:"None",re=()=>g.jsxs(g.Fragment,{children:["Added context:"," ",g.jsx("span",{className:"text-emerald-500 font-medium",children:H})]}),[k,Q]=x.useState(!1),[le,M]=x.useState(null),[ce,Se]=x.useState(!1),[me,se]=x.useState([]),[ge,Oe]=x.useState(!1),[De,Pe]=x.useState(null),[Ue,ft]=x.useState(null);x.useEffect(()=>{const $=de=>{if(de.key==="Escape"){if(w){$t();return}if(ge){Oe(!1);return}}if((de.metaKey||de.ctrlKey)&&de.shiftKey&&de.key.toLowerCase()==="k"){de.preventDefault(),B(!0);return}if((de.metaKey||de.ctrlKey)&&de.shiftKey&&de.key.toLowerCase()==="n"){de.preventDefault(),(h.length>0||ie.length>0||le)&&(Vt.current&&(Vt.current.abort(),Vt.current=null),b(!1),S(!1),ft(null),m([]),z([]),W([]),J.current=[],M(null),Se(!1),d(""));return}if((de.metaKey||de.ctrlKey)&&de.shiftKey&&de.key.toLowerCase()==="e"){de.preventDefault(),Oe(ye=>!ye);return}};if(e)return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[e,ge,w,h.length,ie.length,le]);const Zt=x.useRef(null),Vt=x.useRef(null),lr=()=>{try{Zt.current?.scrollIntoView({behavior:"smooth"})}catch{console.error("Error scrolling to bottom")}};x.useEffect(()=>{lr()},[h,y]),x.useEffect(()=>{(async()=>{try{const de=await fetch(`${At}/api/v1/config?type=global`);if(de.ok){const ve=(await de.json())?.data?.defaults?.model;typeof ve=="string"&&ve.length>0&&c(ve)}}catch(de){console.error("Error loading default AI model configuration:",de)}})()},[]),x.useEffect(()=>()=>{K.current=!1},[]),x.useEffect(()=>{J.current=L},[L]),x.useEffect(()=>{let $=!1;return(async()=>{try{const ye=await yk();if($)return;Z(ye);const ve=ae.current;ye.forEach(Me=>{const Je=ve.get(Me.id);Je&&Je.content&&Je.content!=="Loading..."&&(!Me.content||Me.content==="Loading...")?ve.set(Me.id,Je):ve.set(Me.id,Me)})}catch(ye){$||console.error("Error loading context file list:",ye)}})(),()=>{$=!0}},[]),x.useEffect(()=>{(async()=>{try{const de=await fetch(`${At}/api/v1/mcp`);if(de.ok){const ye=await de.json();if(ye.tools){const ve=Object.entries(ye.tools).map(([Me,Je])=>({name:Me,...Je}));se(ve)}}}catch(de){console.error("Error loading MCP tools:",de)}})()},[]);const xt=x.useMemo(()=>mB().map($=>({value:$.id,label:$.label})),[]),Ao=yB(s),Ma=me.length>0,Kr=x.useCallback($=>{const de=ae.current.get($);if(de)return de;const ye=F.find(ve=>ve.id===$);return ye?(ae.current.set($,ye),ye):null},[F]),Sr=x.useCallback($=>{if($.startsWith("knowledge-")){const ye=`${$.replace("knowledge-","")}.md`;return{id:$,name:ye,type:"knowledge",path:`.nut/context/knowledge/${ye}`,relativePath:`context/knowledge/${ye}`,content:"Loading..."}}if($.startsWith("proposal-")){const de=$.replace("proposal-","");return{id:$,name:`${de}.md`,type:"proposal",path:`.nut/proposals/${de}.md`,relativePath:`proposals/${de}.md`,content:"Loading..."}}return $==="project-md"?{id:$,name:"project.md",type:"context",path:".nut/context/project.md",relativePath:"context/project.md",content:"Loading..."}:$==="architecture-md"?{id:$,name:"architecture.md",type:"context",path:".nut/context/architecture.md",relativePath:"context/architecture.md",content:"Loading..."}:null},[]),si=x.useCallback(async $=>{const de=$.filter((ve,Me,Je)=>Je.indexOf(ve)===Me),ye=[];for(const ve of de){let Me=Kr(ve);if(Me||(Me=Sr(ve),Me&&ae.current.set(ve,Me)),!!Me){if(Me.content&&Me.content!=="Loading..."){ae.current.set(ve,Me),ye.push(Me);continue}try{const Je=await Bp(Me);ae.current.set(ve,Je),ye.push(Je)}catch(Je){console.error(`Error ensuring content for context file ${Me.name}:`,Je),ye.push(Me)}}}return ye},[Sr,Kr]),Er=x.useCallback(async $=>{if($.length===0){z([]);return}try{const de=await si($);if(!K.current)return;const ye=new Map(de.map(Me=>[Me.id,Me])),ve=$.map(Me=>ye.get(Me)).filter(Me=>!!Me);z(ve)}catch(de){console.error("Error synchronizing selected context files:",de)}},[si]);x.useEffect(()=>{if(i&&e){const $={id:i.id,name:i.name,type:i.type||"knowledge",path:i.path,relativePath:i.path,content:"Loading..."};if(!J.current.includes(i.id)){const de=[...J.current,i.id];W(de),J.current=de,ae.current.set(i.id,$),z(ye=>ye.some(ve=>ve.id===i.id)?ye:[...ye,$]),Er(de).catch(ye=>{console.error("Error syncing context after discuss document:",ye)})}l?.()}},[i,e,l,Er]);const To=Ao&&Ma;x.useEffect(()=>{!new Set(xt.map(de=>de.value)).has(s)&&xt.length>0&&c(xt[0].value)},[xt,s]);const Ro=async()=>{if(h.length!==0)try{const $=await fetch(`${At}/api/v1/chats`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:h,model:s,context:r})});if(!$.ok){const ye=await $.json();throw new Error(ye.error||"Failed to save chat")}const de=await $.json();console.log("Chat saved:",de.chatId)}catch($){console.error("Error saving chat:",$)}},ee=async()=>{D(!0);try{const $=await fetch(`${At}/api/v1/chats`);if(!$.ok)throw new Error("Failed to load chat history");const de=await $.json();R(de.chats)}catch($){console.error("Error loading chat history:",$)}finally{D(!1)}},fe=async $=>{try{const de=await fetch(`${At}/api/v1/chats/${$}`);if(!de.ok)throw new Error("Failed to load chat");const ye=await de.json();m(ye.chat.messages),c(ye.chat.model),T(!1)}catch(de){console.error("Error loading chat:",de)}},Ce=async $=>{try{if(!(await fetch(`${At}/api/v1/chats/${$}`,{method:"DELETE"})).ok)throw new Error("Failed to delete chat");await ee()}catch(de){console.error("Error deleting chat:",de)}},Ae=()=>{w&&$t(),m([]),z([]),W([]),J.current=[],M(null),Se(!1),d("")},tt=async($,de)=>{try{await navigator.clipboard.writeText($),Pe(de),setTimeout(()=>Pe(null),2e3)}catch(ye){console.error("Failed to copy message:",ye)}},rn=$=>{const de=Ot(),ve=[...de.understand,...de.define,...de.explore,...de.synthesize,...de.capture].find(Me=>Me.label===$);ve&&d(ve.prompt)},Kn=async $=>{try{const de=$.endsWith(".md")?$.slice(0,-3):$,ye=await fetch(`${At}/api/v1/context/knowledge/${de}`);return ye.ok?(await ye.json()).document?.content||null:(console.error("Failed to fetch knowledge document:",ye.statusText),null)}catch(de){return console.error("Error fetching knowledge document:",de),null}},Wt=async $=>{const de={tool:"knowledge_documents",arguments:{operation:$.action==="create"?"create":"update",title:$.title,content:$.content,filename:$.filename,metadata:$.metadata,summary:$.summary}};try{const ye=await fetch(`${At}/api/v1/mcp/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(de)}),ve=await ye.json();if(!ye.ok||!ve.success)throw new Error(ve.error||"Knowledge tool execution failed");const Me=ve.data?.filename||$.filename||$.title,Je=$.action==="create"?"added to the knowledge base":"updated in the knowledge base";m(on=>[...on,{role:"system",content:`Knowledge document ${Me} ${Je}.`}])}catch(ye){throw console.error("Error applying knowledge action:",ye),ye instanceof Error?ye:new Error("Failed to apply knowledge action")}},xn=async()=>{if(!f.trim()||w)return;const $=f,ye=!h.some(Ve=>Ve.role==="user");let ve;ye&&le&&!ce&&(ve=`--- System Persona ---
|
|
439
|
+
You MUST adopt and consistently act as the following agent persona for this entire conversation.
|
|
440
|
+
- Follow its goals, tone, constraints, and tools.
|
|
441
|
+
- Prioritize the agent's specified skills and focus areas in your reasoning and responses.
|
|
442
|
+
- Do not disclaim or deviate unless the instructions explicitly permit.
|
|
443
|
+
|
|
444
|
+
Agent: ${le.name} (.nut/agents/${le.filename})
|
|
445
|
+
|
|
446
|
+
${le.content}
|
|
447
|
+
--- End System Persona ---`,Se(!0));const Je=(await Promise.all(ie.map(async Ve=>{if(Ve.content&&Ve.content!=="Loading..."&&Ve.content!=="Content not available")return Ve;try{const Gt=await Bp(Ve);return ae.current.set(Ve.id,Gt),Gt}catch(Gt){return console.error(`Failed to load content for ${Ve.name}:`,Gt),Ve}}))).filter(Ve=>Ve.content&&Ve.content!=="Loading..."&&Ve.content!=="Content not available").map(Ve=>({name:Ve.name,path:Ve.path,type:Ve.type,content:Ve.content})),on={role:"user",content:f};m(Ve=>[...Ve,on]),d(""),b(!0),S(!0);const wt=new AbortController;Vt.current=wt;try{const Gt=[...h,on].filter($e=>$e.role==="user"||$e.role==="assistant").map(($e,pt,Lt)=>pt===Lt.length-1&&$e.role==="user"?{role:$e.role,content:$}:$e),Xn={message:$,history:Gt,model:s,context:r?.type,contextContent:r?.content,agentPersona:ve,maxTokens:8e3,enableTools:To,attachedContextFiles:Je.length>0?Je:void 0,stream:!0},Pt=await fetch(`${At}/api/v1/ai`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Xn),signal:wt.signal});if(!Pt.ok){let $e="Failed to get AI response";try{const pt=await Pt.json();$e=pt.error||pt.message||$e,pt.status&&($e=`${$e} (${pt.status})`)}catch{$e=`${Pt.statusText||$e} (${Pt.status})`}throw new Error($e)}if(Xn.stream&&Pt.body){const $e=Pt.body.getReader(),pt=new TextDecoder;let Lt="",ja=null;const ui=new Map;let No=!1;const gs={role:"assistant",content:""};m(Yt=>[...Yt,gs]),b(!1);try{let Yt="";for(;;){const{done:ln,value:it}=await $e.read();if(ln)break;Yt+=pt.decode(it,{stream:!0});const Qn=Yt.split(`
|
|
448
|
+
`);Yt=Qn.pop()||"";for(const gt of Qn)if(gt.startsWith("data: ")){const mt=gt.slice(6).trim();if(mt==="[DONE]")break;try{const Qe=JSON.parse(mt);if(Qe.error){ja=Qe.error.message||Qe.error||"Unknown streaming error",console.error("Stream error from API:",Qe.error);break}const Cr=Qe.choices?.[0]?.delta?.content;Cr&&(Lt+=Cr,m(St=>{const Xr=[...St];return Xr[Xr.length-1]={role:"assistant",content:Lt},Xr}));const ci=Qe.choices?.[0]?.delta?.tool_calls;if(ci&&Array.isArray(ci)){No=!0;for(const St of ci){const Xr=St.index??0,Qr=ui.get(Xr);Qr?(St.id&&(Qr.id=St.id),St.type&&(Qr.type=St.type),St.function?.name&&(Qr.function.name+=St.function.name),St.function?.arguments&&(Qr.function.arguments+=St.function.arguments)):ui.set(Xr,{id:St.id||"",type:St.type||"function",function:{name:St.function?.name||"",arguments:St.function?.arguments||""}})}}const bn=Qe.choices?.[0]?.finish_reason;bn==="tool_calls"?No=!0:bn&&bn!=="stop"&&bn!=="length"&&console.warn("Unusual finish reason:",bn)}catch{mt&&mt!=="[DONE]"&&console.warn("Failed to parse stream chunk:",mt.substring(0,100))}}}if(No&&ui.size>0){const ln=Array.from(ui.values()).map((gt,mt)=>({id:gt.id||`call_${mt}`,type:gt.type,function:gt.function})),it=ln.map(gt=>gt.function.name).filter(Boolean),Qn=it.length>0?`Executing ${it.join(", ")}...`:"Executing tools...";ft(Qn),b(!0),m(gt=>{const mt=[...gt];return mt[mt.length-1]={role:"assistant",content:Lt||""},mt});try{const gt=await fetch(`${At}/api/v1/ai/tools`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolCalls:ln,model:s,history:Gt,context:r?.type,contextContent:r?.content,agentPersona:ve,attachedContextFiles:Je.length>0?Je:void 0,previousContent:Lt}),signal:wt.signal});if(gt.ok){const mt=await gt.json();ft(null),m(Qe=>{const Cr=[...Qe];return Cr[Cr.length-1]={role:"assistant",content:mt.response||Lt,toolCalls:ln,toolResults:mt.toolResults},Cr})}else ft(null),console.error("Tool execution failed:",await gt.text()),m(mt=>{const Qe=[...mt];return Qe[Qe.length-1]={role:"assistant",content:Lt||"I tried to use tools but encountered an error executing them."},Qe})}catch(gt){ft(null),gt instanceof DOMException&>.name==="AbortError"||(console.error("Tool execution error:",gt),m(mt=>{const Qe=[...mt];return Qe[Qe.length-1]={role:"assistant",content:Lt||"I tried to use tools but encountered an error."},Qe}))}}else ja?m(ln=>{const it=[...ln];return it[it.length-1]={role:"assistant",content:`Sorry, I encountered an error: ${ja}`},it}):Lt.trim()||(m(ln=>{const it=[...ln];return it[it.length-1]?.role==="assistant"&&!it[it.length-1]?.content&&it.pop(),it}),console.warn("Stream completed with no content"))}catch(Yt){Yt instanceof DOMException&&Yt.name==="AbortError"||(console.error("Streaming error:",Yt),m(ln=>{const it=[...ln];return it[it.length-1]?.role==="assistant"&&(it[it.length-1]={role:"assistant",content:`Sorry, I encountered a streaming error: ${Yt instanceof Error?Yt.message:"Unknown error"}`}),it}))}}else{const $e=await Pt.json(),pt={role:"assistant",content:$e.response,toolCalls:$e.toolCalls,toolResults:$e.toolResults};m(Lt=>[...Lt,pt])}}catch(Ve){if(Ve instanceof DOMException&&Ve.name==="AbortError")m(Gt=>{const Xn=[...Gt],Pt=Xn[Xn.length-1];return Pt?.role==="assistant"&&!Pt.content&&Xn.pop(),Xn});else{console.error("Error calling AI:",Ve);const Gt={role:"assistant",content:`Sorry, I encountered an error: ${Ve instanceof Error?Ve.message:"Unknown error"}`};m(Xn=>[...Xn,Gt])}}finally{Vt.current=null,b(!1),S(!1),ft(null)}},$t=()=>{Vt.current&&(Vt.current.abort(),Vt.current=null),b(!1),S(!1),ft(null)},Tt=$=>{$.files.forEach(ve=>{const Me=ae.current.get(ve.id);(!Me||Me.content!==ve.content)&&ae.current.set(ve.id,ve)}),W($.selectedIds),J.current=$.selectedIds;const de=new Map($.files.map(ve=>[ve.id,ve])),ye=$.selectedIds.map(ve=>{const Me=de.get(ve);if(Me)return Me;const Je=ae.current.get(ve);return Je||F.find(on=>on.id===ve)||null}).filter(ve=>ve!==null);z(ye),Er($.selectedIds).catch(ve=>{console.error("Error syncing context after manual selection:",ve)})},Ot=()=>({understand:[{label:"Summarize this context",prompt:"Summarize the key points from the attached context. What are the main themes and takeaways?"},{label:"Explain relationships",prompt:"How do the attached documents relate to each other? What connections and dependencies exist?"},{label:"Identify gaps",prompt:"Based on the attached context, what important information seems to be missing or could be better documented?"}],define:[{label:"Define my project",prompt:"Help me define my project. I'd like to create or update the project.md document that captures what we're building, who it's for, and what success looks like. Please ask me questions to understand the project."},{label:"Define my architecture",prompt:"Help me define the technical architecture. I'd like to create or update the architecture.md document that captures our tech stack, conventions, and system design. Please ask me questions about our technical setup."},{label:"Refine project definition",prompt:"I'd like to refine or add to my project.md document. Please read the current version and suggest improvements or ask what I'd like to change."},{label:"Refine architecture",prompt:"I'd like to refine or add to my architecture.md document. Please read the current version and suggest improvements or ask what I'd like to change."}],explore:[{label:"What's been happening?",prompt:"Show me recent activity in this Coconut. What's been happening with proposals, knowledge updates, or agent sessions?"},{label:"Search knowledge base",prompt:"Search the knowledge base for information about: "},{label:"Find proposals about...",prompt:"Find and summarize proposals related to: "},{label:"Show recent events",prompt:"Show me the most recent events. I want to see what's been happening."}],synthesize:[{label:"Extract key insights",prompt:"Extract the most important insights from the attached context that should be preserved in the knowledge base."},{label:"Connect the dots",prompt:"Find patterns and connections across the attached documents. What story do they tell together?"},{label:"Draft proposal content",prompt:"Help me draft content for a change proposal about: (I'll create it via the Proposals UI or a coding agent)"},{label:"Compare approaches",prompt:"Help me understand the tradeoffs between: "}],capture:[{label:"Save to knowledge base",prompt:"Save the key insights from our conversation to the knowledge base as a new document."},{label:"Document a decision",prompt:"Create a knowledge document capturing this decision and its rationale: "},{label:"Update knowledge document",prompt:"Update the knowledge document about: "},{label:"Add to project.md",prompt:"I'd like to add the following to my project.md document: "},{label:"Add to architecture.md",prompt:"I'd like to add the following to my architecture.md document: "}]}),an=g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex h-dvh flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between p-4 border-b flex-shrink-0",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(up,{className:ue(ge?"h-6 w-6":"h-5 w-5")}),g.jsxs("div",{children:[g.jsx("h2",{className:ue("font-semibold leading-tight",ge?"text-xl":"text-lg"),children:"Coconut Assistant"}),g.jsx("p",{className:"text-xs text-muted-foreground leading-tight",children:"Context Management"})]})]}),g.jsx("div",{className:ue("flex items-center gap-1",E&&"mr-8"),children:ge?g.jsx(kt,{onClick:()=>Oe(!1),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Exit Expanded View (Esc)",children:g.jsx(no,{className:"h-4 w-4"})}):g.jsxs(g.Fragment,{children:[g.jsx(kt,{onClick:()=>Oe(!0),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Expand View (⌘⇧E)",children:g.jsx(uM,{className:"h-4 w-4"})}),g.jsx(kt,{onClick:()=>{T(!A),A||ee()},size:"icon",variant:"ghost",className:"h-8 w-8",title:"Chat History",children:g.jsx(EM,{className:"h-4 w-4"})})]})})]}),g.jsx("div",{className:"p-4 border-b flex-shrink-0",children:g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsxs($b,{value:s,onValueChange:c,children:[g.jsx(Ap,{className:"flex-1",children:g.jsx(Gb,{placeholder:"Select AI model"})}),g.jsx(Tp,{children:xt.map($=>g.jsx(Wa,{value:$.value,children:$.label},$.value))})]}),g.jsx(kt,{onClick:Ro,disabled:h.length===0,size:"icon",variant:"outline",className:"h-9 w-9 shrink-0",title:"Save Chat",children:g.jsx(GM,{className:"h-4 w-4"})}),g.jsxs(Y9,{children:[g.jsx(K9,{asChild:!0,children:g.jsx(kt,{disabled:h.length===0&&ie.length===0&&!le,size:"icon",variant:"outline",className:"h-9 w-9 shrink-0",title:"New Chat (⌘⇧N)",children:g.jsx(ij,{className:"h-4 w-4"})})}),g.jsxs(qC,{children:[g.jsxs(VC,{children:[g.jsx(GC,{children:"Clear Chat"}),g.jsx(YC,{children:"This clears all messages, removes selected context files, and resets the selected agent. This action cannot be undone."})]}),g.jsxs($C,{children:[g.jsx(XC,{children:"Cancel"}),g.jsx(KC,{onClick:Ae,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Clear Chat"})]})]})]})]})}),g.jsx("div",{className:"p-4 border-b bg-muted/50 flex-shrink-0",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex-1 min-w-0",children:X>0?g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:re()}),g.jsx("div",{className:"flex flex-wrap gap-1",children:ie.map($=>g.jsxs("div",{className:ue("flex items-center gap-1 text-xs px-2 py-1 rounded-md","bg-primary/10 text-primary"),children:[g.jsx("span",{children:$.name}),g.jsx("button",{onClick:de=>{de.stopPropagation();const ye=J.current.filter(ve=>ve!==$.id);W(ye),J.current=ye,z(ve=>ve.filter(Me=>Me.id!==$.id)),Er(ye).catch(ve=>{console.error("Error syncing context after removal:",ve)})},className:ue("ml-1 rounded-full p-0.5 transition-colors","hover:bg-primary/20"),disabled:!1,title:"Remove from context",children:g.jsx(no,{className:"h-3 w-3"})})]},$.id))})]}):g.jsx("p",{className:"text-sm text-muted-foreground",children:re()})}),g.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:[g.jsx(kt,{onClick:()=>B(!0),size:"icon",variant:"ghost",className:"h-6 w-6",title:"Select Context Files (⌘⇧K)",disabled:!1,children:g.jsx(OM,{className:"h-4 w-4"})}),g.jsxs("span",{className:"hidden sm:inline-flex items-center gap-0.5 text-muted-foreground/60",children:[g.jsx(Oh,{className:"text-[9px] px-1 h-4",children:"⌘"}),g.jsx(Oh,{className:"text-[9px] px-1 h-4",children:"⇧"}),g.jsx(Oh,{className:"text-[9px] px-1 h-4",children:"K"})]})]})]})}),A&&g.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-2 min-h-0",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h3",{className:"font-medium",children:"Chat History"}),g.jsx(kt,{onClick:()=>T(!1),size:"sm",variant:"ghost",children:g.jsx(no,{className:"h-4 w-4"})})]}),O?g.jsx("div",{className:"text-center text-muted-foreground py-8",children:g.jsxs("div",{className:"flex items-center justify-center gap-2",children:[g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.1s]"}),g.jsx("div",{className:"w-2 h-2 bg-current rounded-full animate-bounce [animation-delay:0.2s]"})]})}):N.length===0?g.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[g.jsx(LM,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"No saved chats yet"})]}):g.jsx("div",{className:"space-y-2",children:N.map($=>g.jsx("div",{className:"border rounded-lg p-3 hover:bg-muted/50 cursor-pointer group",onClick:()=>fe($.id),children:g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h4",{className:"text-sm font-medium truncate",children:$.title}),g.jsxs("p",{className:"text-xs text-muted-foreground",children:[new Date($.updatedAt).toLocaleDateString()," • ",$.messages.length," messages"]}),g.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:$.model.split("/")[1]||$.model})]}),g.jsx(kt,{onClick:de=>{de.stopPropagation(),Ce($.id)},size:"icon",variant:"ghost",className:"h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",children:g.jsx(fj,{className:"h-3 w-3"})})]})},$.id))})]}),!A&&g.jsxs("div",{className:ue("flex-1 overflow-y-auto space-y-4 min-h-0",ge?"p-6 max-w-4xl mx-auto":"p-4"),children:[h.length===0&&g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-muted-foreground py-12",children:[g.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/5 flex items-center justify-center mb-4",children:g.jsx(up,{className:"h-5 w-5 text-primary/40"})}),g.jsx("p",{className:"text-sm font-medium text-foreground/70 mb-1",children:"Start a conversation"}),g.jsx("p",{className:"text-xs text-muted-foreground/70 mb-4 max-w-[200px]",children:"Ask questions, get help, or explore your project"}),g.jsxs("button",{onClick:()=>B(!0),className:"text-xs text-primary/70 hover:text-primary transition-colors flex items-center gap-1.5",children:[g.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current"}),re()]})]}),h.map(($,de)=>{const ye=$.role==="assistant",ve=ye?wB($.content):{cleanedContent:$.content,actions:[]},Me=ye?ve.cleanedContent.length>0?ve.cleanedContent:ve.actions.length>0?"Proposed knowledge update available below.":$.content:$.content;return g.jsx("div",{className:ue("rounded-lg",$.role==="user"?ue("bg-primary text-primary-foreground p-3",ge?"ml-16":"ml-8"):$.role==="system"?ue("bg-muted/50 text-muted-foreground text-center text-xs py-2 px-3",ge?"mx-16":"mx-8"):ue("bg-muted p-3",ge?"mr-16":"mr-8")),children:ye?g.jsxs("div",{className:"space-y-2",children:[$.toolCalls&&$.toolCalls.length>0&&g.jsxs("div",{className:"bg-blue-50 dark:bg-blue-950/20 p-2 rounded text-xs",children:[g.jsx("div",{className:"font-medium text-blue-700 dark:text-blue-300 mb-1",children:"Tool Calls:"}),$.toolCalls.map((Je,on)=>g.jsxs("div",{className:"text-blue-600 dark:text-blue-400",children:["• ",Je.function.name,"(",JSON.parse(Je.function.arguments).operation,")"]},on))]}),g.jsx(ds,{className:"text-sm [&_.prose]:text-sm [&_.prose-p]:text-sm [&_.prose-li]:text-sm [&_.prose-code]:text-xs",children:Me}),ve.actions.map((Je,on)=>g.jsx(kB,{action:Je,onApply:Wt,fetchDocumentContent:Kn},`${de}-knowledge-${on}`)),$.toolResults&&$.toolResults.length>0&&g.jsxs("div",{className:"bg-green-50 dark:bg-green-950/20 p-2 rounded text-xs",children:[g.jsx("div",{className:"font-medium text-green-700 dark:text-green-300 mb-1",children:"Tool Results:"}),$.toolResults.map((Je,on)=>{const wt=JSON.parse(Je.content);let Ve=null;return wt.success&&wt.data&&(wt.data.filename&&wt.message?.includes("knowledge document")?Ve=`/context/knowledge/${wt.data.filename.replace(/\.md$/,"")}`:wt.data.id&&(wt.message?.includes("proposal")||wt.data.intent)&&(Ve=`/proposals/${wt.data.id}`)),g.jsxs("div",{className:"text-green-600 dark:text-green-400 flex items-center gap-1",children:[g.jsxs("span",{children:["• ",wt.success?"✓":"✗"]}),Ve?g.jsxs(Hr,{to:Ve,className:"hover:underline inline-flex items-center gap-1",onClick:Gt=>Gt.stopPropagation(),children:[wt.message||wt.error,g.jsx(fM,{className:"h-3 w-3 opacity-70"})]}):g.jsx("span",{children:wt.message||wt.error})]},on)})]}),!y&&$.content.length>0&&g.jsx("div",{className:"flex justify-end",children:g.jsx(kt,{onClick:()=>tt($.content,de),size:"icon",variant:"ghost",className:"h-5 w-5 opacity-60 hover:opacity-100",title:De===de?"Copied!":"Copy message",children:De===de?g.jsx(Nc,{className:"h-3 w-3"}):g.jsx(lM,{className:"h-3 w-3"})})})]}):g.jsx("div",{className:"text-sm",children:$.content})},de)}),(y||Ue)&&g.jsx("div",{className:ue("p-3 rounded-lg text-sm",Ue?"bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-800":"bg-muted",ge?"mr-16":"mr-8"),children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("div",{className:ue("w-2 h-2 rounded-full animate-bounce",Ue?"bg-blue-500":"bg-current")}),g.jsx("div",{className:ue("w-2 h-2 rounded-full animate-bounce [animation-delay:0.1s]",Ue?"bg-blue-500":"bg-current")}),g.jsx("div",{className:ue("w-2 h-2 rounded-full animate-bounce [animation-delay:0.2s]",Ue?"bg-blue-500":"bg-current")}),Ue&&g.jsx("span",{className:"text-xs text-blue-700 dark:text-blue-300 ml-1 font-medium",children:Ue})]})}),g.jsx("div",{ref:Zt})]}),!A&&g.jsxs("div",{className:ue("border-t flex-shrink-0",ge?"p-6 max-w-4xl mx-auto w-full":"p-4"),children:[g.jsx("div",{className:"mb-4 flex gap-2 items-center",children:g.jsxs($b,{onValueChange:rn,children:[g.jsx(Ap,{className:"flex-1",children:g.jsx(Gb,{placeholder:"Actions..."})}),g.jsxs(Tp,{children:[g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider",children:"Understand"}),Ot().understand.map($=>g.jsx(Wa,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Define"}),Ot().define.map($=>g.jsx(Wa,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Explore"}),Ot().explore.map($=>g.jsx(Wa,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Synthesize"}),Ot().synthesize.map($=>g.jsx(Wa,{value:$.label,className:"text-sm",children:$.label},$.label)),g.jsx("div",{className:"px-2 py-1.5 text-[10px] font-semibold text-muted-foreground/70 uppercase tracking-wider border-t mt-1 pt-2",children:"Capture"}),Ot().capture.map($=>g.jsx(Wa,{value:$.label,className:"text-sm",children:$.label},$.label))]})]})}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(xk,{value:f,onChange:$=>d($.target.value),onKeyDown:$=>{$.key==="Enter"&&!$.shiftKey&&($.preventDefault(),xn())},placeholder:"Ask AI for help...",className:ue("flex-1 resize-none",ge?"min-h-[3rem] max-h-40 text-base":"min-h-[2.5rem] max-h-32"),"aria-label":"Assistant message input"}),w?g.jsx(kt,{onClick:$t,size:"icon",variant:"outline",className:"shrink-0",title:"Stop response (Esc)","aria-label":"Stop response",children:g.jsx(lj,{className:"h-4 w-4"})}):g.jsx(kt,{onClick:xn,disabled:!f.trim(),size:"icon",className:"shrink-0",children:g.jsx(KM,{className:"h-4 w-4"})})]})]})]})});return E?g.jsxs(g.Fragment,{children:[g.jsx(H1,{open:e,onOpenChange:n,children:g.jsxs(hm,{side:"right",className:"w-96 p-0 bg-sidebar border-l border-sidebar-border",children:[g.jsx(pm,{className:"sr-only",children:g.jsx(mm,{children:"Assistant"})}),an]})}),g.jsx(U0,{open:j,onOpenChange:B,onSelectionConfirm:Tt,initialSelection:L}),g.jsx(H0,{open:k,onOpenChange:Q,initialSelectedId:le?.filename?.replace(".md","")||null,onSelect:$=>{const de={id:$.filename.replace(".md",""),name:$.metadata?.name||$.title,filename:$.filename,content:$.content};M(de),m(ye=>[...ye,{role:"system",content:`${de.name} selected.`}])}})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ue("fixed inset-y-0 right-0 z-10 h-dvh bg-sidebar border-l border-sidebar-border transition-all duration-300 ease-in-out",e?"w-96":"w-0 overflow-hidden"),children:g.jsx("div",{className:"w-96",children:an})}),g.jsx(Gc,{open:ge,onOpenChange:Oe,children:g.jsxs(is,{className:"max-w-[90vw] w-[90vw] max-h-[90vh] h-[90vh] p-0 gap-0 [&>button]:hidden",children:[g.jsx(os,{className:"sr-only",children:g.jsx(ls,{children:"Assistant"})}),g.jsx("div",{className:"h-full flex flex-col bg-background rounded-lg overflow-hidden",children:an})]})}),g.jsx(U0,{open:j,onOpenChange:B,onSelectionConfirm:Tt,initialSelection:L}),g.jsx(H0,{open:k,onOpenChange:Q,initialSelectedId:le?.filename?.replace(".md","")||null,onSelect:$=>{const de={id:$.filename.replace(".md",""),name:$.metadata?.name||$.title,filename:$.filename,content:$.content};M(de),m(ye=>[...ye,{role:"system",content:`${de.name} selected.`}])}})]})}var Wh="rovingFocusGroup.onEntryFocus",TB={bubbles:!1,cancelable:!0},hs="RovingFocusGroup",[Fp,bk,RB]=kc(hs),[NB,wk]=Gn(hs,[RB]),[_B,MB]=NB(hs),Sk=x.forwardRef((e,n)=>g.jsx(Fp.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(Fp.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(jB,{...e,ref:n})})}));Sk.displayName=hs;var jB=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...y}=e,b=x.useRef(null),w=Be(n,b),S=Fc(s),[E,A]=ka({prop:c,defaultProp:f??null,onChange:d,caller:hs}),[T,N]=x.useState(!1),R=_t(h),O=bk(r),D=x.useRef(!1),[j,B]=x.useState(0);return x.useEffect(()=>{const F=b.current;if(F)return F.addEventListener(Wh,R),()=>F.removeEventListener(Wh,R)},[R]),g.jsx(_B,{scope:r,orientation:i,dir:S,loop:l,currentTabStopId:E,onItemFocus:x.useCallback(F=>A(F),[A]),onItemShiftTab:x.useCallback(()=>N(!0),[]),onFocusableItemAdd:x.useCallback(()=>B(F=>F+1),[]),onFocusableItemRemove:x.useCallback(()=>B(F=>F-1),[]),children:g.jsx(Ne.div,{tabIndex:T||j===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:pe(e.onMouseDown,()=>{D.current=!0}),onFocus:pe(e.onFocus,F=>{const Z=!D.current;if(F.target===F.currentTarget&&Z&&!T){const L=new CustomEvent(Wh,TB);if(F.currentTarget.dispatchEvent(L),!L.defaultPrevented){const W=O().filter(z=>z.focusable),J=W.find(z=>z.active),ae=W.find(z=>z.id===E),ie=[J,ae,...W].filter(Boolean).map(z=>z.ref.current);kk(ie,m)}}D.current=!1}),onBlur:pe(e.onBlur,()=>N(!1))})})}),Ek="RovingFocusGroupItem",Ck=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:s,children:c,...f}=e,d=gr(),h=s||d,m=MB(Ek,r),y=m.currentTabStopId===h,b=bk(r),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:E}=m;return x.useEffect(()=>{if(i)return w(),()=>S()},[i,w,S]),g.jsx(Fp.ItemSlot,{scope:r,id:h,focusable:i,active:l,children:g.jsx(Ne.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...f,ref:n,onMouseDown:pe(e.onMouseDown,A=>{i?m.onItemFocus(h):A.preventDefault()}),onFocus:pe(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:pe(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const T=PB(A,m.orientation,m.dir);if(T!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let R=b().filter(O=>O.focusable).map(O=>O.ref.current);if(T==="last")R.reverse();else if(T==="prev"||T==="next"){T==="prev"&&R.reverse();const O=R.indexOf(A.currentTarget);R=m.loop?LB(R,O+1):R.slice(O+1)}setTimeout(()=>kk(R))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:E!=null}):c})})});Ck.displayName=Ek;var DB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function OB(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function PB(e,n,r){const i=OB(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return DB[i]}function kk(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function LB(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var zB=Sk,IB=Ck,qp=["Enter"," "],BB=["ArrowDown","PageUp","Home"],Ak=["ArrowUp","PageDown","End"],UB=[...BB,...Ak],HB={ltr:[...qp,"ArrowRight"],rtl:[...qp,"ArrowLeft"]},FB={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ps="Menu",[Kl,qB,VB]=kc(ps),[oi,Tk]=Gn(ps,[VB,So,wk]),tf=So(),Rk=wk(),[$B,li]=oi(ps),[GB,ms]=oi(ps),Nk=e=>{const{__scopeMenu:n,open:r=!1,children:i,dir:l,onOpenChange:s,modal:c=!0}=e,f=tf(n),[d,h]=x.useState(null),m=x.useRef(!1),y=_t(s),b=Fc(l);return x.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),g.jsx(km,{...f,children:g.jsx($B,{scope:n,open:r,onOpenChange:y,content:d,onContentChange:h,children:g.jsx(GB,{scope:n,onClose:x.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:i})})})};Nk.displayName=ps;var YB="MenuAnchor",tg=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,l=tf(r);return g.jsx(Am,{...l,...i,ref:n})});tg.displayName=YB;var ng="MenuPortal",[KB,_k]=oi(ng,{forceMount:void 0}),Mk=e=>{const{__scopeMenu:n,forceMount:r,children:i,container:l}=e,s=li(ng,n);return g.jsx(KB,{scope:n,forceMount:r,children:g.jsx(fn,{present:r||s.open,children:g.jsx(Wl,{asChild:!0,container:l,children:i})})})};Mk.displayName=ng;var Fn="MenuContent",[XB,rg]=oi(Fn),jk=x.forwardRef((e,n)=>{const r=_k(Fn,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=li(Fn,e.__scopeMenu),c=ms(Fn,e.__scopeMenu);return g.jsx(Kl.Provider,{scope:e.__scopeMenu,children:g.jsx(fn,{present:i||s.open,children:g.jsx(Kl.Slot,{scope:e.__scopeMenu,children:c.modal?g.jsx(QB,{...l,ref:n}):g.jsx(ZB,{...l,ref:n})})})})}),QB=x.forwardRef((e,n)=>{const r=li(Fn,e.__scopeMenu),i=x.useRef(null),l=Be(n,i);return x.useEffect(()=>{const s=i.current;if(s)return lm(s)},[]),g.jsx(ag,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:pe(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ZB=x.forwardRef((e,n)=>{const r=li(Fn,e.__scopeMenu);return g.jsx(ag,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),WB=Ja("MenuContent.ScrollLock"),ag=x.forwardRef((e,n)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,disableOutsideScroll:S,...E}=e,A=li(Fn,r),T=ms(Fn,r),N=tf(r),R=Rk(r),O=qB(r),[D,j]=x.useState(null),B=x.useRef(null),F=Be(n,B,A.onContentChange),Z=x.useRef(0),L=x.useRef(""),W=x.useRef(0),J=x.useRef(null),ae=x.useRef("right"),K=x.useRef(0),ie=S?jc:x.Fragment,z=S?{as:WB,allowPinchZoom:!0}:void 0,X=re=>{const k=L.current+re,Q=O().filter(se=>!se.disabled),le=document.activeElement,M=Q.find(se=>se.ref.current===le)?.textValue,ce=Q.map(se=>se.textValue),Se=c8(ce,k,M),me=Q.find(se=>se.textValue===Se)?.ref.current;(function se(ge){L.current=ge,window.clearTimeout(Z.current),ge!==""&&(Z.current=window.setTimeout(()=>se(""),1e3))})(k),me&&setTimeout(()=>me.focus())};x.useEffect(()=>()=>window.clearTimeout(Z.current),[]),om();const H=x.useCallback(re=>ae.current===J.current?.side&&d8(re,J.current?.area),[]);return g.jsx(XB,{scope:r,searchRef:L,onItemEnter:x.useCallback(re=>{H(re)&&re.preventDefault()},[H]),onItemLeave:x.useCallback(re=>{H(re)||(B.current?.focus(),j(null))},[H]),onTriggerLeave:x.useCallback(re=>{H(re)&&re.preventDefault()},[H]),pointerGraceTimerRef:W,onPointerGraceIntentChange:x.useCallback(re=>{J.current=re},[]),children:g.jsx(ie,{...z,children:g.jsx(_c,{asChild:!0,trapped:l,onMountAutoFocus:pe(s,re=>{re.preventDefault(),B.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:g.jsx(yo,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,children:g.jsx(zB,{asChild:!0,...R,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:D,onCurrentTabStopIdChange:j,onEntryFocus:pe(d,re=>{T.isUsingKeyboardRef.current||re.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(Tm,{role:"menu","aria-orientation":"vertical","data-state":Kk(A.open),"data-radix-menu-content":"",dir:T.dir,...N,...E,ref:F,style:{outline:"none",...E.style},onKeyDown:pe(E.onKeyDown,re=>{const Q=re.target.closest("[data-radix-menu-content]")===re.currentTarget,le=re.ctrlKey||re.altKey||re.metaKey,M=re.key.length===1;Q&&(re.key==="Tab"&&re.preventDefault(),!le&&M&&X(re.key));const ce=B.current;if(re.target!==ce||!UB.includes(re.key))return;re.preventDefault();const me=O().filter(se=>!se.disabled).map(se=>se.ref.current);Ak.includes(re.key)&&me.reverse(),s8(me)}),onBlur:pe(e.onBlur,re=>{re.currentTarget.contains(re.target)||(window.clearTimeout(Z.current),L.current="")}),onPointerMove:pe(e.onPointerMove,Xl(re=>{const k=re.target,Q=K.current!==re.clientX;if(re.currentTarget.contains(k)&&Q){const le=re.clientX>K.current?"right":"left";ae.current=le,K.current=re.clientX}}))})})})})})})});jk.displayName=Fn;var JB="MenuGroup",ig=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Ne.div,{role:"group",...i,ref:n})});ig.displayName=JB;var e8="MenuLabel",Dk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Ne.div,{...i,ref:n})});Dk.displayName=e8;var gc="MenuItem",F0="menu.itemSelect",nf=x.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:i,...l}=e,s=x.useRef(null),c=ms(gc,e.__scopeMenu),f=rg(gc,e.__scopeMenu),d=Be(n,s),h=x.useRef(!1),m=()=>{const y=s.current;if(!r&&y){const b=new CustomEvent(F0,{bubbles:!0,cancelable:!0});y.addEventListener(F0,w=>i?.(w),{once:!0}),em(y,b),b.defaultPrevented?h.current=!1:c.onClose()}};return g.jsx(Ok,{...l,ref:d,disabled:r,onClick:pe(e.onClick,m),onPointerDown:y=>{e.onPointerDown?.(y),h.current=!0},onPointerUp:pe(e.onPointerUp,y=>{h.current||y.currentTarget?.click()}),onKeyDown:pe(e.onKeyDown,y=>{const b=f.searchRef.current!=="";r||b&&y.key===" "||qp.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});nf.displayName=gc;var Ok=x.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:i=!1,textValue:l,...s}=e,c=rg(gc,r),f=Rk(r),d=x.useRef(null),h=Be(n,d),[m,y]=x.useState(!1),[b,w]=x.useState("");return x.useEffect(()=>{const S=d.current;S&&w((S.textContent??"").trim())},[s.children]),g.jsx(Kl.ItemSlot,{scope:r,disabled:i,textValue:l??b,children:g.jsx(IB,{asChild:!0,...f,focusable:!i,children:g.jsx(Ne.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:h,onPointerMove:pe(e.onPointerMove,Xl(S=>{i?c.onItemLeave(S):(c.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:pe(e.onPointerLeave,Xl(S=>c.onItemLeave(S))),onFocus:pe(e.onFocus,()=>y(!0)),onBlur:pe(e.onBlur,()=>y(!1))})})})}),t8="MenuCheckboxItem",Pk=x.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:i,...l}=e;return g.jsx(Uk,{scope:e.__scopeMenu,checked:r,children:g.jsx(nf,{role:"menuitemcheckbox","aria-checked":yc(r)?"mixed":r,...l,ref:n,"data-state":lg(r),onSelect:pe(l.onSelect,()=>i?.(yc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Pk.displayName=t8;var Lk="MenuRadioGroup",[n8,r8]=oi(Lk,{value:void 0,onValueChange:()=>{}}),zk=x.forwardRef((e,n)=>{const{value:r,onValueChange:i,...l}=e,s=_t(i);return g.jsx(n8,{scope:e.__scopeMenu,value:r,onValueChange:s,children:g.jsx(ig,{...l,ref:n})})});zk.displayName=Lk;var Ik="MenuRadioItem",Bk=x.forwardRef((e,n)=>{const{value:r,...i}=e,l=r8(Ik,e.__scopeMenu),s=r===l.value;return g.jsx(Uk,{scope:e.__scopeMenu,checked:s,children:g.jsx(nf,{role:"menuitemradio","aria-checked":s,...i,ref:n,"data-state":lg(s),onSelect:pe(i.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Bk.displayName=Ik;var og="MenuItemIndicator",[Uk,a8]=oi(og,{checked:!1}),Hk=x.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:i,...l}=e,s=a8(og,r);return g.jsx(fn,{present:i||yc(s.checked)||s.checked===!0,children:g.jsx(Ne.span,{...l,ref:n,"data-state":lg(s.checked)})})});Hk.displayName=og;var i8="MenuSeparator",Fk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Ne.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});Fk.displayName=i8;var o8="MenuArrow",qk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,l=tf(r);return g.jsx(Rm,{...l,...i,ref:n})});qk.displayName=o8;var l8="MenuSub",[aH,Vk]=oi(l8),jl="MenuSubTrigger",$k=x.forwardRef((e,n)=>{const r=li(jl,e.__scopeMenu),i=ms(jl,e.__scopeMenu),l=Vk(jl,e.__scopeMenu),s=rg(jl,e.__scopeMenu),c=x.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,h={__scopeMenu:e.__scopeMenu},m=x.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return x.useEffect(()=>m,[m]),x.useEffect(()=>{const y=f.current;return()=>{window.clearTimeout(y),d(null)}},[f,d]),g.jsx(tg,{asChild:!0,...h,children:g.jsx(Ok,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":Kk(r.open),...e,ref:Cc(n,l.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:pe(e.onPointerMove,Xl(y=>{s.onItemEnter(y),!y.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),m()},100))})),onPointerLeave:pe(e.onPointerLeave,Xl(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const w=r.content?.dataset.side,S=w==="right",E=S?-5:5,A=b[S?"left":"right"],T=b[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:y.clientX+E,y:y.clientY},{x:A,y:b.top},{x:T,y:b.top},{x:T,y:b.bottom},{x:A,y:b.bottom}],side:w}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(y),y.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:pe(e.onKeyDown,y=>{const b=s.searchRef.current!=="";e.disabled||b&&y.key===" "||HB[i.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});$k.displayName=jl;var Gk="MenuSubContent",Yk=x.forwardRef((e,n)=>{const r=_k(Fn,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=li(Fn,e.__scopeMenu),c=ms(Fn,e.__scopeMenu),f=Vk(Gk,e.__scopeMenu),d=x.useRef(null),h=Be(n,d);return g.jsx(Kl.Provider,{scope:e.__scopeMenu,children:g.jsx(fn,{present:i||s.open,children:g.jsx(Kl.Slot,{scope:e.__scopeMenu,children:g.jsx(ag,{id:f.contentId,"aria-labelledby":f.triggerId,...l,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:pe(e.onFocusOutside,m=>{m.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:pe(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:pe(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=FB[c.dir].includes(m.key);y&&b&&(s.onOpenChange(!1),f.trigger?.focus(),m.preventDefault())})})})})})});Yk.displayName=Gk;function Kk(e){return e?"open":"closed"}function yc(e){return e==="indeterminate"}function lg(e){return yc(e)?"indeterminate":e?"checked":"unchecked"}function s8(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function u8(e,n){return e.map((r,i)=>e[(n+i)%e.length])}function c8(e,n,r){const l=n.length>1&&Array.from(n).every(h=>h===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=u8(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function f8(e,n){const{x:r,y:i}=e;let l=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],d=n[c],h=f.x,m=f.y,y=d.x,b=d.y;m>i!=b>i&&r<(y-h)*(i-m)/(b-m)+h&&(l=!l)}return l}function d8(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return f8(r,n)}function Xl(e){return n=>n.pointerType==="mouse"?e(n):void 0}var h8=Nk,p8=tg,m8=Mk,g8=jk,y8=ig,v8=Dk,x8=nf,b8=Pk,w8=zk,S8=Bk,E8=Hk,C8=Fk,k8=qk,A8=$k,T8=Yk,rf="DropdownMenu",[R8,iH]=Gn(rf,[Tk]),dn=Tk(),[N8,Xk]=R8(rf),Qk=e=>{const{__scopeDropdownMenu:n,children:r,dir:i,open:l,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,d=dn(n),h=x.useRef(null),[m,y]=ka({prop:l,defaultProp:s??!1,onChange:c,caller:rf});return g.jsx(N8,{scope:n,triggerId:gr(),triggerRef:h,contentId:gr(),open:m,onOpenChange:y,onOpenToggle:x.useCallback(()=>y(b=>!b),[y]),modal:f,children:g.jsx(h8,{...d,open:m,onOpenChange:y,dir:i,modal:f,children:r})})};Qk.displayName=rf;var Zk="DropdownMenuTrigger",Wk=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...l}=e,s=Xk(Zk,r),c=dn(r);return g.jsx(p8,{asChild:!0,...c,children:g.jsx(Ne.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:Cc(n,s.triggerRef),onPointerDown:pe(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:pe(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});Wk.displayName=Zk;var _8="DropdownMenuPortal",Jk=e=>{const{__scopeDropdownMenu:n,...r}=e,i=dn(n);return g.jsx(m8,{...i,...r})};Jk.displayName=_8;var e2="DropdownMenuContent",t2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=Xk(e2,r),s=dn(r),c=x.useRef(!1);return g.jsx(g8,{id:l.contentId,"aria-labelledby":l.triggerId,...s,...i,ref:n,onCloseAutoFocus:pe(e.onCloseAutoFocus,f=>{c.current||l.triggerRef.current?.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:pe(e.onInteractOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,m=d.button===2||h;(!l.modal||m)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t2.displayName=e2;var M8="DropdownMenuGroup",j8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(y8,{...l,...i,ref:n})});j8.displayName=M8;var D8="DropdownMenuLabel",n2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(v8,{...l,...i,ref:n})});n2.displayName=D8;var O8="DropdownMenuItem",r2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(x8,{...l,...i,ref:n})});r2.displayName=O8;var P8="DropdownMenuCheckboxItem",a2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(b8,{...l,...i,ref:n})});a2.displayName=P8;var L8="DropdownMenuRadioGroup",z8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(w8,{...l,...i,ref:n})});z8.displayName=L8;var I8="DropdownMenuRadioItem",i2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(S8,{...l,...i,ref:n})});i2.displayName=I8;var B8="DropdownMenuItemIndicator",o2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(E8,{...l,...i,ref:n})});o2.displayName=B8;var U8="DropdownMenuSeparator",l2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(C8,{...l,...i,ref:n})});l2.displayName=U8;var H8="DropdownMenuArrow",F8=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(k8,{...l,...i,ref:n})});F8.displayName=H8;var q8="DropdownMenuSubTrigger",s2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(A8,{...l,...i,ref:n})});s2.displayName=q8;var V8="DropdownMenuSubContent",u2=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,l=dn(r);return g.jsx(T8,{...l,...i,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});u2.displayName=V8;var $8=Qk,G8=Wk,Y8=Jk,c2=t2,f2=n2,d2=r2,h2=a2,p2=i2,m2=o2,g2=l2,y2=s2,v2=u2;const K8=$8,X8=G8,Q8=x.forwardRef(({className:e,inset:n,children:r,...i},l)=>g.jsxs(y2,{ref:l,className:ue("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",e),...i,children:[r,g.jsx(J_,{className:"ml-auto h-4 w-4"})]}));Q8.displayName=y2.displayName;const Z8=x.forwardRef(({className:e,...n},r)=>g.jsx(v2,{ref:r,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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),...n}));Z8.displayName=v2.displayName;const x2=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(Y8,{children:g.jsx(c2,{ref:i,sideOffset:n,className:ue("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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),...r})}));x2.displayName=c2.displayName;const b2=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(d2,{ref:i,className:ue("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",e),...r}));b2.displayName=d2.displayName;const W8=x.forwardRef(({className:e,children:n,checked:r,...i},l)=>g.jsxs(h2,{ref:l,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...i,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(m2,{children:g.jsx(Nc,{className:"h-4 w-4"})})}),n]}));W8.displayName=h2.displayName;const J8=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(p2,{ref:i,className:ue("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[g.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:g.jsx(m2,{children:g.jsx(rM,{className:"h-2 w-2 fill-current"})})}),n]}));J8.displayName=p2.displayName;const w2=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(f2,{ref:i,className:ue("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));w2.displayName=f2.displayName;const S2=x.forwardRef(({className:e,...n},r)=>g.jsx(g2,{ref:r,className:ue("-mx-1 my-1 h-px bg-muted",e),...n}));S2.displayName=g2.displayName;function eU(){const[e,n]=x.useState(!1),[r,i]=x.useState(null),[l,s]=x.useState(null),[c,f]=x.useState(null),[d,h]=x.useState("Coconut"),[m,y]=x.useState(null),b=$n(),w=bc(),S=b.pathname,{user:E,logout:A,authEnabled:T}=gw();x.useEffect(()=>{const D=localStorage.getItem("ai-sidebar-open");D!==null&&n(JSON.parse(D))},[]),x.useEffect(()=>{const D=j=>{const B=j.detail;B&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),y(B))};return window.addEventListener("discuss-in-chat",D),()=>{window.removeEventListener("discuss-in-chat",D)}},[]),x.useEffect(()=>{(async()=>{try{const j=await fetch(`${At}/api/v1/config`);if(j.ok){const B=await j.json();B.success&&B.data?.repository?.name&&h(B.data.repository.name)}}catch(j){console.error("Error fetching config:",j)}})()},[]);const N=()=>{const D=!e;n(D),localStorage.setItem("ai-sidebar-open",JSON.stringify(D))},R=async()=>{try{await A(),ap({title:"Logged out",description:"You have been logged out successfully"}),w("/login")}catch(D){console.error("Logout error:",D),ap({title:"Error",description:"Failed to logout",variant:"destructive"})}};x.useEffect(()=>{(async()=>{try{const j=await fetch(`${At}/api/v1/context/project`);if(j.ok){const B=await j.text();s(B)}else s(null)}catch(j){console.error("Error fetching project context:",j),s(null)}if(S.includes("/context/architecture")||S.includes("/proposals"))try{const j=await fetch(`${At}/api/v1/context/architecture`);if(j.ok){const B=await j.text();f(B)}else f(null)}catch(j){console.error("Error fetching architecture context:",j),f(null)}else f(null);if(S.includes("/proposals")&&(S.includes("/edit")||S.match(/\/proposals\/[^/]+$/))){const B=S.match(/\/proposals\/([^/]+)(?:\/edit)?/)?.[1];if(B)try{const Z=await(await fetch(`${At}/api/v1/proposals/${B}`)).json();if(Z.success){const L=Z.data,W=`Proposal ID: ${B}
|
|
449
|
+
Intent: ${L.intent}
|
|
450
|
+
Status: ${L.status}
|
|
451
|
+
Priority: ${L.metadata?.priority||"medium"}
|
|
452
|
+
Author: ${L.author?.name}
|
|
453
|
+
Description:
|
|
454
|
+
${L.content||""}`;i(W)}else i(null)}catch(F){console.error("Error fetching proposal:",F),i(null)}}else i(null)})()},[S]);const O=()=>{if(S.includes("/proposals")){const j=S.match(/\/proposals\/([^/]+)(?:\/edit)?/)?.[1];if(S.includes("/new"))return{type:"proposals-new",content:null};if(j){const F=["project.md",`${j}.md`].join(", "),Z=[l&&`=== PROJECT CONTEXT ===
|
|
455
|
+
${l}`,r&&`=== PROPOSAL CONTENT ===
|
|
456
|
+
${r}`].filter(Boolean),L=Z.length>0?Z.join(`
|
|
457
|
+
|
|
458
|
+
`):null;return{type:S.includes("/edit")?"proposals-edit":"proposals-view",content:L,displayId:j,contextFiles:F}}return{type:"proposals",content:l,contextFiles:"project.md"}}return S.includes("/context")?S.includes("/architecture")?{type:"context-architecture",content:c,contextFiles:"architecture.md"}:S.includes("/project")?{type:"context-project",content:l,contextFiles:"project.md"}:S.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:S.includes("/settings")?S.includes("/agents")?{type:"settings-agents",content:null}:S.includes("/integrations")?{type:"settings-integrations",content:null}:S.includes("/prompts")?{type:"settings-prompts",content:null}:S.includes("/rules")?{type:"settings-rules",content:null}:S.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:S.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(SS,{children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(EP,{}),g.jsxs(kS,{className:ue("flex-1 min-w-0 transition-all duration-300 ease-in-out",e&&"mr-96"),children:[g.jsxs("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b border-content-border px-4 bg-background",children:[g.jsx(CS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:d||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(kt,{onClick:N,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(up,{className:"h-4 w-4"})}),T&&E&&g.jsxs(K8,{children:[g.jsx(X8,{asChild:!0,children:g.jsx(kt,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(mj,{className:"h-4 w-4"})})}),g.jsxs(x2,{align:"end",children:[g.jsx(w2,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:E.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:E.email})]})}),g.jsx(S2,{}),g.jsxs(b2,{onClick:R,children:[g.jsx(jM,{className:"mr-2 h-4 w-4"}),"Logout"]})]})]})]})]})]}),g.jsx("main",{className:"flex flex-1 flex-col gap-4 p-4 overflow-auto bg-content-background",children:g.jsx(tw,{})})]}),g.jsx(AB,{isOpen:e,onToggle:N,contextInfo:O(),discussDocument:m,onDiscussDocumentHandled:()=>y(null)})]})})}const tU=[{title:"Coconut Profile",href:"/settings/user",icon:hj,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:nj,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:ej,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:NM,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:rc,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:VM,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:Yw,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:IM,description:"Model Context Protocol configuration and settings"}];function nU(){const e=$n();return g.jsxs("div",{className:"flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0",children:[g.jsx("aside",{className:"lg:w-1/5",children:g.jsx("nav",{className:"flex overflow-x-auto pb-2 gap-1 lg:flex-col lg:gap-0 lg:space-y-1 lg:overflow-visible lg:pb-0",children:tU.map(n=>g.jsxs(Hr,{to:n.href,className:ue("inline-flex items-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 hover:text-accent-foreground h-9 px-2 sm:px-3 lg:px-4 py-2 hover:bg-accent justify-start flex-shrink-0",e.pathname===n.href?"bg-accent text-accent-foreground":"text-muted-foreground"),children:[g.jsx(n.icon,{className:"h-4 w-4 lg:mr-2"}),g.jsx("span",{className:"hidden lg:inline",children:n.title})]},n.href))})}),g.jsx("div",{className:"flex-1 lg:max-w-2xl",children:g.jsx("div",{className:"space-y-6",children:g.jsx(tw,{})})})]})}const rU=x.lazy(()=>Xe(()=>import("./DashboardPage-BXu-fikP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),aU=x.lazy(()=>Xe(()=>import("./LoginPage-IIU6NAG9.js"),__vite__mapDeps([10,11,1,12]))),iU=x.lazy(()=>Xe(()=>import("./CallbackPage-CaAOpz4z.js"),__vite__mapDeps([13,5,14]))),oU=x.lazy(()=>Xe(()=>import("./ProposalsPage-DwQr1ycd.js"),__vite__mapDeps([15,1,2,9,16]))),lU=x.lazy(()=>Xe(()=>import("./ProposalDetailPage-KvjXUaaf.js"),__vite__mapDeps([17,18,1,2,11,19,20,21,4,7]))),sU=x.lazy(()=>Xe(()=>import("./ProposalEditPage-BmzkHL9a.js"),__vite__mapDeps([22,11,1,23,24,25,26,9,27,2,19])).then(e=>({default:e.ProposalEditPage}))),uU=x.lazy(()=>Xe(()=>import("./NewProposalPage-bFnfuuoA.js"),__vite__mapDeps([28,1,11,23,24,25,26,9,27,2,19])).then(e=>({default:e.NewProposalPage}))),cU=x.lazy(()=>Xe(()=>import("./TerminalPage-DsjOLnyY.js"),__vite__mapDeps([29,1,30,31,32,33,34,35,36]))),fU=x.lazy(()=>Xe(()=>import("./TerminalSessionPage-DQ065WYU.js"),__vite__mapDeps([37,1,2,38,25,11,30,32,33,39,40,34,35,9,41]))),dU=x.lazy(()=>Xe(()=>import("./UtilitiesPage-BmEW7eJ_.js"),__vite__mapDeps([42,1,30,36,35]))),hU=x.lazy(()=>Xe(()=>import("./CodePage-DEbgr8C1.js"),__vite__mapDeps([43,1,2,30,31,32,33,40,34,35]))),pU=x.lazy(()=>Xe(()=>import("./AgentsPage-D-Uy87Gh.js"),__vite__mapDeps([44,1,2,18,45,16,9,46]))),mU=x.lazy(()=>Xe(()=>import("./AgentDetailPage-DwWIjGx1.js"),__vite__mapDeps([47,1,2,19]))),gU=x.lazy(()=>Xe(()=>import("./NewAgentPage-DolltGy5.js"),__vite__mapDeps([48,1,11,2,18,19,20]))),yU=x.lazy(()=>Xe(()=>import("./AgentEditPage-BvVPfYR3.js"),__vite__mapDeps([49,1,11,2,18,19,20]))),vU=x.lazy(()=>Xe(()=>import("./ResourcesPage-B8Hm_j47.js"),__vite__mapDeps([50,1,11,2,18,21,6,4,9,16]))),xU=x.lazy(()=>Xe(()=>import("./KnowledgePage-CuuDTMa_.js"),__vite__mapDeps([51,1,2,18,45,16,9,52,39]))),bU=x.lazy(()=>Xe(()=>import("./KnowledgeDetailPage-DBOQQs3R.js"),__vite__mapDeps([53,1,2,18,19,4,46]))),wU=x.lazy(()=>Xe(()=>import("./KnowledgeEditPage-DHJxLPwi.js"),__vite__mapDeps([54,1,11,23,24,27,2,19]))),SU=x.lazy(()=>Xe(()=>import("./NewKnowledgePage-_jbUZqBU.js"),__vite__mapDeps([55,1,11,23,24,27,2,19]))),EU=x.lazy(()=>Xe(()=>import("./ProjectPage-DhwrnEq2.js"),__vite__mapDeps([56,1,2,18]))),CU=x.lazy(()=>Xe(()=>import("./ProjectEditPage-DTTjPnGj.js"),__vite__mapDeps([57,1,11,23,24,19,8]))),kU=x.lazy(()=>Xe(()=>import("./ArchitecturePage-ZjbdnDA7.js"),__vite__mapDeps([58,1,18]))),AU=x.lazy(()=>Xe(()=>import("./ArchitectureEditPage-BmAgJAMV.js"),__vite__mapDeps([59,1,11,23,24,19,8]))),TU=x.lazy(()=>Xe(()=>import("./IdentityPage-BR48gNhN.js"),__vite__mapDeps([60,1,11,2,61,12,41,62,9,20]))),q0=x.lazy(()=>Xe(()=>import("./UserSettingsPage-BZwb93B4.js"),__vite__mapDeps([63,1,11,20]))),RU=x.lazy(()=>Xe(()=>import("./AuthSettingsPage-_pXoewOB.js"),__vite__mapDeps([64,1,11,65,2,66]))),NU=x.lazy(()=>Xe(()=>import("./ApiKeysSettingsPage-Jug0kB7Z.js"),__vite__mapDeps([67,1,11,2,61,9,66]))),_U=x.lazy(()=>Xe(()=>import("./AgentsSettingsPage-CDuAvFxu.js"),__vite__mapDeps([68,1,11,2,9,69,35,41]))),MU=x.lazy(()=>Xe(()=>import("./IntegrationsSettingsPage-B1OHGlDC.js"),__vite__mapDeps([70,1,11]))),jU=x.lazy(()=>Xe(()=>import("./GitSettingsPage-D7GjdOnE.js"),__vite__mapDeps([71,1,11,38,34,5,14]))),DU=x.lazy(()=>Xe(()=>import("./McpSettingsPage-iz5gLGWt.js"),__vite__mapDeps([72,1,11,2,65,61,45,16,66,9,8]))),OU=x.lazy(()=>Xe(()=>import("./PromptsSettingsPage-DLOVysbE.js"),__vite__mapDeps([73,1,11,2,9,62,21]))),PU=x.lazy(()=>Xe(()=>import("./RulesSettingsPage-CsGXFTFY.js"),__vite__mapDeps([74,1,11,2,9]))),LU=x.lazy(()=>Xe(()=>import("./GitPage-B7qFcP-K.js"),__vite__mapDeps([75,1,11,12,5,14,39,52,34,66,3]))),zU=x.lazy(()=>Xe(()=>import("./SchedulePage-CY8GdQlp.js"),__vite__mapDeps([76,1,2,11,65,12,34,9,35,69,7]))),IU=x.lazy(()=>Xe(()=>import("./UserPreferencesPage-55VTrzfQ.js"),__vite__mapDeps([77,1,11])));function BU(){return g.jsxs($N,{children:[g.jsx(aN,{children:g.jsx(x.Suspense,{fallback:g.jsx(aD,{}),children:g.jsxs(OR,{children:[g.jsx(ze,{path:"/login",element:g.jsx(aU,{})}),g.jsx(ze,{path:"/auth/github/callback",element:g.jsx(iU,{})}),g.jsxs(ze,{path:"/",element:g.jsx(rD,{children:g.jsx(eU,{})}),children:[g.jsx(ze,{index:!0,element:g.jsx(rU,{})}),g.jsx(ze,{path:"proposals",element:g.jsx(oU,{})}),g.jsx(ze,{path:"proposals/new",element:g.jsx(uU,{})}),g.jsx(ze,{path:"proposals/:id",element:g.jsx(lU,{})}),g.jsx(ze,{path:"proposals/:id/edit",element:g.jsx(sU,{})}),g.jsx(ze,{path:"code",element:g.jsx(hU,{})}),g.jsx(ze,{path:"utilities",element:g.jsx(dU,{})}),g.jsx(ze,{path:"terminal",element:g.jsx(cU,{})}),g.jsx(ze,{path:"terminal/:proposalId",element:g.jsx(fU,{})}),g.jsx(ze,{path:"git",element:g.jsx(LU,{})}),g.jsx(ze,{path:"schedule",element:g.jsx(zU,{})}),g.jsx(ze,{path:"identity",element:g.jsx(TU,{})}),g.jsx(ze,{path:"agents",element:g.jsx(pU,{})}),g.jsx(ze,{path:"agents/new",element:g.jsx(gU,{})}),g.jsx(ze,{path:"agents/:id",element:g.jsx(mU,{})}),g.jsx(ze,{path:"agents/:id/edit",element:g.jsx(yU,{})}),g.jsx(ze,{path:"resources",element:g.jsx(vU,{})}),g.jsx(ze,{path:"context/project",element:g.jsx(EU,{})}),g.jsx(ze,{path:"context/project/edit",element:g.jsx(CU,{})}),g.jsx(ze,{path:"context/architecture",element:g.jsx(kU,{})}),g.jsx(ze,{path:"context/architecture/edit",element:g.jsx(AU,{})}),g.jsx(ze,{path:"context/knowledge",element:g.jsx(xU,{})}),g.jsx(ze,{path:"context/knowledge/new",element:g.jsx(SU,{})}),g.jsx(ze,{path:"context/knowledge/:filename",element:g.jsx(bU,{})}),g.jsx(ze,{path:"context/knowledge/:filename/edit",element:g.jsx(wU,{})}),g.jsxs(ze,{path:"settings",element:g.jsx(nU,{}),children:[g.jsx(ze,{index:!0,element:g.jsx(q0,{})}),g.jsx(ze,{path:"user",element:g.jsx(q0,{})}),g.jsx(ze,{path:"preferences",element:g.jsx(IU,{})}),g.jsx(ze,{path:"authentication",element:g.jsx(RU,{})}),g.jsx(ze,{path:"api-keys",element:g.jsx(NU,{})}),g.jsx(ze,{path:"agents",element:g.jsx(_U,{})}),g.jsx(ze,{path:"integrations",element:g.jsx(MU,{})}),g.jsx(ze,{path:"git",element:g.jsx(jU,{})}),g.jsx(ze,{path:"mcp",element:g.jsx(DU,{})}),g.jsx(ze,{path:"prompts",element:g.jsx(OU,{})}),g.jsx(ze,{path:"rules",element:g.jsx(PU,{})})]})]})]})})}),g.jsx(nD,{})]})}BT.createRoot(document.getElementById("root")).render(g.jsx(x.StrictMode,{children:g.jsx(BU,{})}));export{pE as $,At as A,kt as B,J_ as C,Gc as D,UU as E,hM as F,Yw as G,QN as H,c1 as I,ij as J,QU as K,Hr as L,Y9 as M,K9 as N,qC as O,VC as P,GC as Q,YC as R,Yl as S,fj as T,$C as U,XC as V,KC as W,no as X,ds as Y,mj as Z,XU as _,is as a,Fc as a$,xk as a0,h1 as a1,GM as a2,uj as a3,tD as a4,K8 as a5,X8 as a6,x2 as a7,w2 as a8,S2 as a9,pL as aA,ZU as aB,nL as aC,vL as aD,lL as aE,yL as aF,Rp as aG,Dm as aH,SE as aI,$l as aJ,a6 as aK,G3 as aL,U5 as aM,QE as aN,WU as aO,NL as aP,zh as aQ,wa as aR,nn as aS,N0 as aT,FU as aU,IM as aV,ej as aW,$i as aX,NM as aY,mB as aZ,wk as a_,b2 as aa,VU as ab,ec as ac,WM as ad,W8 as ae,yj as af,qN as ag,Nc as ah,lM as ai,up as aj,vb as ak,f6 as al,O9 as am,C9 as an,xM as ao,LM as ap,fM as aq,Qc as ar,vc as as,eH as at,JU as au,Im as av,Vm as aw,jm as ax,Op as ay,j5 as az,os as b,ka as b0,Gn as b1,zB as b2,Ne as b3,Be as b4,IB as b5,pe as b6,fn as b7,NS as b8,nS as b9,rM as ba,Rc as bb,gr as bc,qU as bd,X_ as be,EM as bf,je as c,ls as d,Ml as e,ue as f,rc as g,QM as h,Ol as i,g as j,iM as k,$n as l,gw as m,ac as n,HU as o,Oh as p,tM as q,x as r,Gw as s,ap as t,bc as u,$b as v,Ap as w,Gb as x,Tp as y,Wa as z};
|