@lovelybunch/api 1.0.76-alpha.9 → 1.0.76
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/git.d.ts +3 -0
- package/dist/lib/git.js +35 -0
- package/dist/routes/api/v1/ai/route.js +214 -152
- package/dist/routes/api/v1/config/route.js +13 -9
- package/dist/routes/api/v1/context/agents/route.d.ts +3 -0
- package/dist/routes/api/v1/context/agents/route.js +159 -0
- package/dist/routes/api/v1/context/index.js +6 -4
- package/dist/routes/api/v1/context/memory/route.d.ts +3 -0
- package/dist/routes/api/v1/context/memory/route.js +163 -0
- package/dist/routes/api/v1/context/team/route.d.ts +3 -0
- package/dist/routes/api/v1/context/team/route.js +159 -0
- package/dist/routes/api/v1/git/index.js +27 -1
- package/dist/routes/api/v1/jobs/[id]/route.d.ts +26 -32
- package/dist/routes/api/v1/jobs/[id]/route.js +3 -3
- package/dist/routes/api/v1/jobs/route.d.ts +33 -33
- package/dist/routes/api/v1/jobs/route.js +17 -2
- package/dist/routes/api/v1/mcp/index.js +194 -21
- package/dist/routes/api/v1/resources/generate/route.js +10 -3
- package/package.json +4 -4
- package/static/assets/ActivityPage-sJEQn6DK.js +1 -0
- package/static/assets/AgentsContextEditPage-DU3qIXk9.js +9 -0
- package/static/assets/AgentsContextPage-tJ-LhFYb.js +1 -0
- package/static/assets/{ApiKeysSettingsPage-CjrCuHHE.js → ApiKeysSettingsPage-Bg84BQHV.js} +2 -2
- package/static/assets/{AuthSettingsPage-elJX4TCV.js → AuthSettingsPage-Bwr7uP3z.js} +1 -1
- package/static/assets/{CallbackPage-CUuZYgBL.js → CallbackPage-BFn0Np2S.js} +1 -1
- package/static/assets/CodePage-kp4s3wCJ.js +2 -0
- package/static/assets/{CollapsibleSection-DfTxWX0X.js → CollapsibleSection-CNs1mvsZ.js} +1 -1
- package/static/assets/{DashboardPage-CmS8UPSm.js → DashboardPage-DMJSzzgD.js} +9 -19
- package/static/assets/{GitPage-DSfn76oO.js → GitPage-uqene8zj.js} +3 -3
- package/static/assets/{GitSettingsPage-Bu8h7hcr.js → GitSettingsPage-CLswbZsT.js} +2 -2
- package/static/assets/{IdentityPage-NFKq2FHi.js → IdentityPage-BDTPXEo7.js} +2 -2
- package/static/assets/{ImplementationStepsEditor-Cn-MshnR.js → ImplementationStepsEditor-D4cvhPhz.js} +2 -2
- package/static/assets/IntegrationsSettingsPage-o7NXZGt9.js +1 -0
- package/static/assets/JobDetailPage-DuEiPz6X.js +1 -0
- package/static/assets/KnowledgeDetailPage-DFVud_VC.js +1 -0
- package/static/assets/{KnowledgeEditPage-B28N-7vM.js → KnowledgeEditPage-XG6HKK7E.js} +1 -1
- package/static/assets/{KnowledgePage-C3zoPEcH.js → KnowledgePage-B2zI3xwW.js} +2 -2
- package/static/assets/{LoginPage-BYNLGEnz.js → LoginPage-CUJRxwXy.js} +1 -1
- package/static/assets/MailInboxPage-BlCG-tba.js +1 -0
- package/static/assets/MailProcessingModal-BJIdHOqK.js +1 -0
- package/static/assets/MailReadPage-MoNo_gmW.js +1 -0
- package/static/assets/{MailSentPage-ClaVWZCR.js → MailSentPage-QzpuIJmT.js} +1 -1
- package/static/assets/{McpSettingsPage-CfhBioEH.js → McpSettingsPage-BZcCGkGM.js} +1 -1
- package/static/assets/MemoryEditPage-DXSQoCT4.js +13 -0
- package/static/assets/MemoryPage-oBnyuvSf.js +1 -0
- package/static/assets/{NewKnowledgePage-BUwh_DFd.js → NewKnowledgePage-deMsezK8.js} +1 -1
- package/static/assets/{NewSkillPage-B2rztwzD.js → NewSkillPage-DRYWdrlV.js} +1 -1
- package/static/assets/{NewTaskPage-Cvw20nug.js → NewTaskPage-B6xdic5_.js} +2 -2
- package/static/assets/{NotFoundPage-CXvLVHsT.js → NotFoundPage-Bxu9uKFO.js} +1 -1
- package/static/assets/{NotificationsSettingsPage-Df_GZ7_p.js → NotificationsSettingsPage-CLgtsCVM.js} +1 -1
- package/static/assets/{PromptsSettingsPage-QTxJgO5-.js → PromptsSettingsPage-BWaELCjG.js} +1 -1
- package/static/assets/{ResourceDetailPage-C9RHHVKu.js → ResourceDetailPage-CMPDRdVM.js} +1 -1
- package/static/assets/ResourcesPage-DspYILfG.js +41 -0
- package/static/assets/{RoleEditPage-N2-v2MXN.js → RoleEditPage-DXtzicVZ.js} +1 -1
- package/static/assets/{RolePage-Da0kZMUH.js → RolePage-DafGURGp.js} +1 -1
- package/static/assets/{RulesSettingsPage-CSd5iz22.js → RulesSettingsPage-E8V9cexV.js} +1 -1
- package/static/assets/RunDetailPage-DsxkqFst.js +1 -0
- package/static/assets/SchedulePage-B2YvNDHr.js +4 -0
- package/static/assets/{SkillDetailPage-QjqBAuFU.js → SkillDetailPage-CWkqSfuT.js} +1 -1
- package/static/assets/{SkillEditPage-BB0x4VVH.js → SkillEditPage-DwyebzFV.js} +1 -1
- package/static/assets/{SkillsPage-BMDNxMmZ.js → SkillsPage-CauK65X_.js} +2 -2
- package/static/assets/{SkillsSettingsPage-DcdeOlAl.js → SkillsSettingsPage-DXMRv3jR.js} +1 -1
- package/static/assets/{SourceInput-rc4KSqcv.js → SourceInput-C0iKqbQ1.js} +1 -1
- package/static/assets/{TagInput-bxFcAknC.js → TagInput-Ct-WRvTs.js} +1 -1
- package/static/assets/{TaskDetailPage-CAmREdfh.js → TaskDetailPage-CApk2iBh.js} +1 -1
- package/static/assets/{TaskEditPage-BDgZtG36.js → TaskEditPage-NgOVShfK.js} +1 -1
- package/static/assets/{TasksPage-BQ6eLw0T.js → TasksPage-BoPrP_Rl.js} +3 -3
- package/static/assets/TeamEditPage-ChY6mYm8.js +9 -0
- package/static/assets/TeamPage-DH-dJhFG.js +1 -0
- package/static/assets/{TerminalPage-BhWGRGf1.js → TerminalPage-CRhcscF2.js} +1 -1
- package/static/assets/{TerminalSessionPage-Bu-WiE0d.js → TerminalSessionPage-CSCQg2sn.js} +2 -2
- package/static/assets/{UserPreferencesPage-B_Tu1a8h.js → UserPreferencesPage-DxCSWJnS.js} +1 -1
- package/static/assets/{UserSettingsPage-BnEGtrGo.js → UserSettingsPage-DKkOLNPV.js} +1 -1
- package/static/assets/UtilitiesPage-CBNSvixW.js +1 -0
- package/static/assets/{alert-C42EBWiI.js → alert-Dw_RSroN.js} +1 -1
- package/static/assets/{arrow-down-CuFFg288.js → arrow-down-UClxXzT-.js} +1 -1
- package/static/assets/{arrow-left-C8VbyW3d.js → arrow-left-DWmf9YJp.js} +1 -1
- package/static/assets/{arrow-up-down-GN3qK2mU.js → arrow-up-down-Btc3okb3.js} +1 -1
- package/static/assets/{arrow-up-vC1c-5gW.js → arrow-up-fLCh7Hvh.js} +1 -1
- package/static/assets/{badge-CKwUSKzT.js → badge-vIqE5SOP.js} +1 -1
- package/static/assets/{browser-modal-C9VBJ_El.js → browser-modal-DgMJTsMd.js} +2 -2
- package/static/assets/{card-DRBgMGuU.js → card-DPLdBoa5.js} +1 -1
- package/static/assets/{chevron-left-2sP4ienq.js → chevron-left-CiNaLX-v.js} +1 -1
- package/static/assets/{chevron-up-DJfyvHso.js → chevron-up-DFd-7wxW.js} +1 -1
- package/static/assets/{chevrons-up-DfFpzHXf.js → chevrons-up-BfU70OcQ.js} +1 -1
- package/static/assets/{circle-alert-DP4rtmEK.js → circle-alert-Mv00T-P2.js} +1 -1
- package/static/assets/{circle-check-big-3mrGMFVn.js → circle-check-big-BEY1IoIP.js} +1 -1
- package/static/assets/{circle-check-Cnp-EoKX.js → circle-check-xMiP6SLO.js} +1 -1
- package/static/assets/{circle-play-7F5AVehH.js → circle-play-iZZwaGbV.js} +1 -1
- package/static/assets/{circle-x-DxbiyJ6w.js → circle-x-z3iynaE7.js} +1 -1
- package/static/assets/{clipboard-CQNR4_yT.js → clipboard-C8wZRPDH.js} +1 -1
- package/static/assets/{clock-DGw3R_UL.js → clock-C_9shc08.js} +1 -1
- package/static/assets/{code-DSNMK8tD.js → code-DH-sRhus.js} +1 -1
- package/static/assets/{download-BWL6PFiw.js → download-CE8b59ER.js} +1 -1
- package/static/assets/{external-link-BqUE-DMN.js → external-link-DPyKt8NE.js} +1 -1
- package/static/assets/{eye-BD57N1qQ.js → eye-BpGD-yoS.js} +1 -1
- package/static/assets/{folder-git-2-CW5Zi8Bm.js → folder-git-2-BIw4zbmy.js} +1 -1
- package/static/assets/globe-CUo7eHKN.js +6 -0
- package/static/assets/{index-CheR43vH.js → index-B07hel4U.js} +1 -1
- package/static/assets/{index-B0fLM-4F.js → index-BCwmQxLC.js} +1 -1
- package/static/assets/{index-DO47L-WG.js → index-BOKaM9K-.js} +1 -1
- package/static/assets/{index-EpelXypg.js → index-BaR4iUzg.js} +1 -1
- package/static/assets/index-BcCuKdbf.css +1 -0
- package/static/assets/{index-BG5vEV31.js → index-Bfb3OTwj.js} +1 -1
- package/static/assets/{index-CMQcknsg.js → index-Bkt1rQVV.js} +1 -1
- package/static/assets/{index-BmTTXfmk.js → index-C65b3D5_.js} +1 -1
- package/static/assets/{index-CXWGFCS-.js → index-CGbmjmEy.js} +1 -1
- package/static/assets/{index-BArpuuuE.js → index-CTouvf2d.js} +1 -1
- package/static/assets/{index-D4awulBm.js → index-Cdwx6Zps.js} +1 -1
- package/static/assets/{index-CMt1ExW-.js → index-ClO9-JVh.js} +1 -1
- package/static/assets/{index-CVVL2h9f.js → index-CpJ0uBf3.js} +1 -1
- package/static/assets/{index-B9OOTqx4.js → index-CsBxEWw5.js} +1 -1
- package/static/assets/{index-stPObw-o.js → index-DZAYfTI2.js} +1 -1
- package/static/assets/{index-X4fPPLHI.js → index-Dkr9CBL7.js} +1 -1
- package/static/assets/{index-Bedu89qc.js → index-DnZKG-_7.js} +1 -1
- package/static/assets/index-UXL5-kaP.js +497 -0
- package/static/assets/{index-uxv5vQZF.js → index-iB8oed57.js} +1 -1
- package/static/assets/{index-BWktaW8U.js → index-jaRIZ6SY.js} +1 -1
- package/static/assets/{info-DMJxIp7i.js → info-D-UNBNx2.js} +1 -1
- package/static/assets/{label-DxDedS8x.js → label-8VKluf9w.js} +1 -1
- package/static/assets/{markdown-editor-DJ2CscSp.js → markdown-editor-DBdRsbP2.js} +3 -3
- package/static/assets/{message-square-DF58cqKJ.js → message-square-CO8kDUed.js} +1 -1
- package/static/assets/{paperclip-CHyfSVll.js → paperclip-DlLXZbru.js} +1 -1
- package/static/assets/{pause-B-ouFhaQ.js → pause-zSiaxJBu.js} +1 -1
- package/static/assets/{play-B0y1weCV.js → play-DVBhRokt.js} +1 -1
- package/static/assets/{radio-group-DFNQiPDU.js → radio-group-CThYUcA4.js} +1 -1
- package/static/assets/{refresh-cw-5y5jTc6x.js → refresh-cw-tXYl1ePu.js} +1 -1
- package/static/assets/{search-B5deRThk.js → search-BxF7Wwex.js} +1 -1
- package/static/assets/{select-BzOa_wZx.js → select-CyHFRA1Y.js} +1 -1
- package/static/assets/server-lRxThHjr.js +6 -0
- package/static/assets/{switch-Bf2z8aaj.js → switch-BUpDbrux.js} +1 -1
- package/static/assets/{tabs-DkdBSep3.js → tabs-DkvCmQEX.js} +1 -1
- package/static/assets/{tag-gRsTk0jY.js → tag-CkcZNLnh.js} +1 -1
- package/static/assets/{terminal-preview-BfrUN2ok.js → terminal-preview-CLWDhoOZ.js} +1 -1
- package/static/assets/triangle-alert-CmjG_mbF.js +6 -0
- package/static/assets/{use-terminal-D6Qe1nwM.js → use-terminal-D3iV7-iC.js} +1 -1
- package/static/assets/{video-DXo9sCfT.js → video-CY_dOujm.js} +1 -1
- package/static/index.html +2 -2
- package/static/assets/ActivityPage-BaSoKgwZ.js +0 -1
- package/static/assets/ArchitectureEditPage-MYU7btLs.js +0 -21
- package/static/assets/ArchitecturePage-CGqWy8b1.js +0 -1
- package/static/assets/CodePage-C_bzfOnI.js +0 -2
- package/static/assets/IntegrationsSettingsPage-Cw6ItrNf.js +0 -1
- package/static/assets/JobDetailPage-DLSD4HiU.js +0 -1
- package/static/assets/KnowledgeDetailPage-DY8PpD9X.js +0 -1
- package/static/assets/MailInboxPage-DDYg0W70.js +0 -1
- package/static/assets/MailProcessingModal-CXIrtSz0.js +0 -6
- package/static/assets/MailReadPage-CVz6oD-y.js +0 -1
- package/static/assets/ProjectEditPage-DKf6ZoiG.js +0 -11
- package/static/assets/ProjectPage-CHhx9s1k.js +0 -1
- package/static/assets/ResourcesPage-BI8tfYZ2.js +0 -41
- package/static/assets/SchedulePage-CS8g2Db-.js +0 -4
- package/static/assets/UtilitiesPage-k7ABCAig.js +0 -1
- package/static/assets/index-Cht-fo9a.css +0 -1
- package/static/assets/index-DB2Tq9wz.js +0 -487
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-DMJSzzgD.js","assets/card-DPLdBoa5.js","assets/badge-vIqE5SOP.js","assets/status-utils-PwF3DXLL.js","assets/label-8VKluf9w.js","assets/select-CyHFRA1Y.js","assets/index-DnZKG-_7.js","assets/chevron-up-DFd-7wxW.js","assets/use-terminal-D3iV7-iC.js","assets/terminal-preview-CLWDhoOZ.js","assets/xterm-DTxiCjtJ.js","assets/xterm-qxJ8_QYu.css","assets/circle-check-xMiP6SLO.js","assets/chevron-left-CiNaLX-v.js","assets/search-BxF7Wwex.js","assets/globe-CUo7eHKN.js","assets/code-DH-sRhus.js","assets/folder-git-2-BIw4zbmy.js","assets/external-link-DPyKt8NE.js","assets/play-DVBhRokt.js","assets/clock-C_9shc08.js","assets/circle-check-big-BEY1IoIP.js","assets/LoginPage-CUJRxwXy.js","assets/tabs-DkvCmQEX.js","assets/CallbackPage-BFn0Np2S.js","assets/circle-x-z3iynaE7.js","assets/TasksPage-BoPrP_Rl.js","assets/TaskDetailPage-CApk2iBh.js","assets/clipboard-B9ndUJKl.js","assets/arrow-left-DWmf9YJp.js","assets/clipboard-C8wZRPDH.js","assets/arrow-up-down-Btc3okb3.js","assets/info-D-UNBNx2.js","assets/message-square-CO8kDUed.js","assets/TaskEditPage-NgOVShfK.js","assets/markdown-editor-DBdRsbP2.js","assets/markdown-editor-B6HEtSkH.css","assets/CollapsibleSection-CNs1mvsZ.js","assets/ImplementationStepsEditor-D4cvhPhz.js","assets/TagInput-Ct-WRvTs.js","assets/NewTaskPage-B6xdic5_.js","assets/TerminalPage-CRhcscF2.js","assets/refresh-cw-tXYl1ePu.js","assets/chevrons-up-BfU70OcQ.js","assets/circle-play-iZZwaGbV.js","assets/terminal-xj47PT8r.css","assets/TerminalSessionPage-CSCQg2sn.js","assets/radio-group-CThYUcA4.js","assets/arrow-down-UClxXzT-.js","assets/pipeline-builders-Bkf0wt_O.js","assets/eye-BpGD-yoS.js","assets/server-lRxThHjr.js","assets/UtilitiesPage-CBNSvixW.js","assets/CodePage-kp4s3wCJ.js","assets/SkillsPage-CauK65X_.js","assets/browser-modal-DgMJTsMd.js","assets/registry-ANRa5WBi.js","assets/SkillDetailPage-CWkqSfuT.js","assets/NewSkillPage-DRYWdrlV.js","assets/SkillEditPage-DwyebzFV.js","assets/ResourcesPage-DspYILfG.js","assets/video-CY_dOujm.js","assets/download-CE8b59ER.js","assets/tag-CkcZNLnh.js","assets/ResourceDetailPage-CMPDRdVM.js","assets/KnowledgePage-B2zI3xwW.js","assets/arrow-up-fLCh7Hvh.js","assets/KnowledgeDetailPage-DFVud_VC.js","assets/KnowledgeEditPage-XG6HKK7E.js","assets/SourceInput-C0iKqbQ1.js","assets/NewKnowledgePage-deMsezK8.js","assets/RolePage-DafGURGp.js","assets/RoleEditPage-DXtzicVZ.js","assets/AgentsContextPage-tJ-LhFYb.js","assets/AgentsContextEditPage-DU3qIXk9.js","assets/TeamPage-DH-dJhFG.js","assets/TeamEditPage-ChY6mYm8.js","assets/MemoryPage-oBnyuvSf.js","assets/MemoryEditPage-DXSQoCT4.js","assets/IdentityPage-BDTPXEo7.js","assets/alert-Dw_RSroN.js","assets/UserSettingsPage-DKkOLNPV.js","assets/AuthSettingsPage-Bwr7uP3z.js","assets/switch-BUpDbrux.js","assets/circle-alert-Mv00T-P2.js","assets/ApiKeysSettingsPage-Bg84BQHV.js","assets/SkillsSettingsPage-DXMRv3jR.js","assets/IntegrationsSettingsPage-o7NXZGt9.js","assets/GitSettingsPage-CLswbZsT.js","assets/McpSettingsPage-BZcCGkGM.js","assets/PromptsSettingsPage-BWaELCjG.js","assets/RulesSettingsPage-E8V9cexV.js","assets/NotificationsSettingsPage-CLgtsCVM.js","assets/GitPage-uqene8zj.js","assets/SchedulePage-B2YvNDHr.js","assets/pause-zSiaxJBu.js","assets/JobDetailPage-DuEiPz6X.js","assets/RunDetailPage-DsxkqFst.js","assets/triangle-alert-CmjG_mbF.js","assets/UserPreferencesPage-DxCSWJnS.js","assets/ActivityPage-sJEQn6DK.js","assets/MailInboxPage-BlCG-tba.js","assets/MailProcessingModal-BJIdHOqK.js","assets/paperclip-DlLXZbru.js","assets/MailReadPage-MoNo_gmW.js","assets/MailSentPage-QzpuIJmT.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function PA(e,n){for(var r=0;r<n.length;r++){const i=n[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const s of o)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(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();var FB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xd={exports:{}},go={};/**
|
|
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 wx;function IA(){if(wx)return go;wx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return go.Fragment=n,go.jsx=r,go.jsxs=r,go}var Sx;function BA(){return Sx||(Sx=1,Xd.exports=IA()),Xd.exports}var g=BA(),Qd={exports:{}},Oe={};/**
|
|
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 Ex;function UA(){if(Ex)return Oe;Ex=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=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(){}},E=Object.assign,C={};function A(k,X,oe){this.props=k,this.context=X,this.refs=C,this.updater=oe||w}A.prototype.isReactComponent={},A.prototype.setState=function(k,X){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,X,"setState")},A.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=A.prototype;function N(k,X,oe){this.props=k,this.context=X,this.refs=C,this.updater=oe||w}var _=N.prototype=new T;_.constructor=N,E(_,A.prototype),_.isPureReactComponent=!0;var j=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function $(k,X,oe,M,fe,Ce){return oe=Ce.ref,{$$typeof:e,type:k,key:X,ref:oe!==void 0?oe:null,props:Ce}}function G(k,X){return $(k.type,X,void 0,void 0,void 0,k.props)}function ee(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function P(k){var X={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(oe){return X[oe]})}var re=/\/+/g;function Q(k,X){return typeof k=="object"&&k!==null&&k.key!=null?P(""+k.key):X.toString(36)}function W(){}function q(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(W,W):(k.status="pending",k.then(function(X){k.status==="pending"&&(k.status="fulfilled",k.value=X)},function(X){k.status==="pending"&&(k.status="rejected",k.reason=X)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function le(k,X,oe,M,fe){var Ce=typeof k;(Ce==="undefined"||Ce==="boolean")&&(k=null);var de=!1;if(k===null)de=!0;else switch(Ce){case"bigint":case"string":case"number":de=!0;break;case"object":switch(k.$$typeof){case e:case n:de=!0;break;case m:return de=k._init,le(de(k._payload),X,oe,M,fe)}}if(de)return fe=fe(k),de=M===""?"."+Q(k,0):M,j(fe)?(oe="",de!=null&&(oe=de.replace(re,"$&/")+"/"),le(fe,X,oe,"",function(lt){return lt})):fe!=null&&(ee(fe)&&(fe=G(fe,oe+(fe.key==null||k&&k.key===fe.key?"":(""+fe.key).replace(re,"$&/")+"/")+de)),X.push(fe)),1;de=0;var xe=M===""?".":M+":";if(j(k))for(var De=0;De<k.length;De++)M=k[De],Ce=xe+Q(M,De),de+=le(M,X,oe,Ce,fe);else if(De=b(k),typeof De=="function")for(k=De.call(k),De=0;!(M=k.next()).done;)M=M.value,Ce=xe+Q(M,De++),de+=le(M,X,oe,Ce,fe);else if(Ce==="object"){if(typeof k.then=="function")return le(q(k),X,oe,M,fe);throw X=String(k),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return de}function z(k,X,oe){if(k==null)return k;var M=[],fe=0;return le(k,M,"","",function(Ce){return X.call(oe,Ce,fe++)}),M}function K(k){if(k._status===-1){var X=k._result;X=X(),X.then(function(oe){(k._status===0||k._status===-1)&&(k._status=1,k._result=oe)},function(oe){(k._status===0||k._status===-1)&&(k._status=2,k._result=oe)}),k._status===-1&&(k._status=0,k._result=X)}if(k._status===1)return k._result.default;throw k._result}var U=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=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(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function ae(){}return Oe.Children={map:z,forEach:function(k,X,oe){z(k,function(){X.apply(this,arguments)},oe)},count:function(k){var X=0;return z(k,function(){X++}),X},toArray:function(k){return z(k,function(X){return X})||[]},only:function(k){if(!ee(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Oe.Component=A,Oe.Fragment=r,Oe.Profiler=o,Oe.PureComponent=N,Oe.StrictMode=i,Oe.Suspense=h,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Oe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return L.H.useMemoCache(k)}},Oe.cache=function(k){return function(){return k.apply(null,arguments)}},Oe.cloneElement=function(k,X,oe){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var M=E({},k.props),fe=k.key,Ce=void 0;if(X!=null)for(de in X.ref!==void 0&&(Ce=void 0),X.key!==void 0&&(fe=""+X.key),X)!O.call(X,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&X.ref===void 0||(M[de]=X[de]);var de=arguments.length-2;if(de===1)M.children=oe;else if(1<de){for(var xe=Array(de),De=0;De<de;De++)xe[De]=arguments[De+2];M.children=xe}return $(k.type,fe,void 0,void 0,Ce,M)},Oe.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},Oe.createElement=function(k,X,oe){var M,fe={},Ce=null;if(X!=null)for(M in X.key!==void 0&&(Ce=""+X.key),X)O.call(X,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(fe[M]=X[M]);var de=arguments.length-2;if(de===1)fe.children=oe;else if(1<de){for(var xe=Array(de),De=0;De<de;De++)xe[De]=arguments[De+2];fe.children=xe}if(k&&k.defaultProps)for(M in de=k.defaultProps,de)fe[M]===void 0&&(fe[M]=de[M]);return $(k,Ce,void 0,void 0,null,fe)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(k){return{$$typeof:f,render:k}},Oe.isValidElement=ee,Oe.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:K}},Oe.memo=function(k,X){return{$$typeof:d,type:k,compare:X===void 0?null:X}},Oe.startTransition=function(k){var X=L.T,oe={};L.T=oe;try{var M=k(),fe=L.S;fe!==null&&fe(oe,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(ae,U)}catch(Ce){U(Ce)}finally{L.T=X}},Oe.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Oe.use=function(k){return L.H.use(k)},Oe.useActionState=function(k,X,oe){return L.H.useActionState(k,X,oe)},Oe.useCallback=function(k,X){return L.H.useCallback(k,X)},Oe.useContext=function(k){return L.H.useContext(k)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(k,X){return L.H.useDeferredValue(k,X)},Oe.useEffect=function(k,X,oe){var M=L.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return M.useEffect(k,X)},Oe.useId=function(){return L.H.useId()},Oe.useImperativeHandle=function(k,X,oe){return L.H.useImperativeHandle(k,X,oe)},Oe.useInsertionEffect=function(k,X){return L.H.useInsertionEffect(k,X)},Oe.useLayoutEffect=function(k,X){return L.H.useLayoutEffect(k,X)},Oe.useMemo=function(k,X){return L.H.useMemo(k,X)},Oe.useOptimistic=function(k,X){return L.H.useOptimistic(k,X)},Oe.useReducer=function(k,X,oe){return L.H.useReducer(k,X,oe)},Oe.useRef=function(k){return L.H.useRef(k)},Oe.useState=function(k){return L.H.useState(k)},Oe.useSyncExternalStore=function(k,X,oe){return L.H.useSyncExternalStore(k,X,oe)},Oe.useTransition=function(){return L.H.useTransition()},Oe.version="19.1.1",Oe}var kx;function wp(){return kx||(kx=1,Qd.exports=UA()),Qd.exports}var x=wp();const ha=cc(x),k0=PA({__proto__:null,default:ha},[x]);var Zd={exports:{}},yo={},Wd={exports:{}},Jd={};/**
|
|
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 Cx;function HA(){return Cx||(Cx=1,(function(e){function n(z,K){var U=z.length;z.push(K);e:for(;0<U;){var ae=U-1>>>1,k=z[ae];if(0<o(k,K))z[ae]=K,z[U]=k,U=ae;else break e}}function r(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var K=z[0],U=z.pop();if(U!==K){z[0]=U;e:for(var ae=0,k=z.length,X=k>>>1;ae<X;){var oe=2*(ae+1)-1,M=z[oe],fe=oe+1,Ce=z[fe];if(0>o(M,U))fe<k&&0>o(Ce,M)?(z[ae]=Ce,z[fe]=U,ae=fe):(z[ae]=M,z[oe]=U,ae=oe);else if(fe<k&&0>o(Ce,U))z[ae]=Ce,z[fe]=U,ae=fe;else break e}}return K}function o(z,K){var U=z.sortIndex-K.sortIndex;return U!==0?U:z.id-K.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 h=[],d=[],m=1,y=null,b=3,w=!1,E=!1,C=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function j(z){for(var K=r(d);K!==null;){if(K.callback===null)i(d);else if(K.startTime<=z)i(d),K.sortIndex=K.expirationTime,n(h,K);else break;K=r(d)}}function L(z){if(C=!1,j(z),!E)if(r(h)!==null)E=!0,O||(O=!0,Q());else{var K=r(d);K!==null&&le(L,K.startTime-z)}}var O=!1,$=-1,G=5,ee=-1;function P(){return A?!0:!(e.unstable_now()-ee<G)}function re(){if(A=!1,O){var z=e.unstable_now();ee=z;var K=!0;try{e:{E=!1,C&&(C=!1,N($),$=-1),w=!0;var U=b;try{t:{for(j(z),y=r(h);y!==null&&!(y.expirationTime>z&&P());){var ae=y.callback;if(typeof ae=="function"){y.callback=null,b=y.priorityLevel;var k=ae(y.expirationTime<=z);if(z=e.unstable_now(),typeof k=="function"){y.callback=k,j(z),K=!0;break t}y===r(h)&&i(h),j(z)}else i(h);y=r(h)}if(y!==null)K=!0;else{var X=r(d);X!==null&&le(L,X.startTime-z),K=!1}}break e}finally{y=null,b=U,w=!1}K=void 0}}finally{K?Q():O=!1}}}var Q;if(typeof _=="function")Q=function(){_(re)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,q=W.port2;W.port1.onmessage=re,Q=function(){q.postMessage(null)}}else Q=function(){T(re,0)};function le(z,K){$=T(function(){z(e.unstable_now())},K)}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"):G=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 K=3;break;default:K=b}var U=b;b=K;try{return z()}finally{b=U}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var U=b;b=z;try{return K()}finally{b=U}},e.unstable_scheduleCallback=function(z,K,U){var ae=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?ae+U:ae):U=ae,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=U+k,z={id:m++,callback:K,priorityLevel:z,startTime:U,expirationTime:k,sortIndex:-1},U>ae?(z.sortIndex=U,n(d,z),r(h)===null&&z===r(d)&&(C?(N($),$=-1):C=!0,le(L,U-ae))):(z.sortIndex=k,n(h,z),E||w||(E=!0,O||(O=!0,Q()))),z},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(z){var K=b;return function(){var U=b;b=K;try{return z.apply(this,arguments)}finally{b=U}}}})(Jd)),Jd}var Ax;function FA(){return Ax||(Ax=1,Wd.exports=HA()),Wd.exports}var eh={exports:{}},Ht={};/**
|
|
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 Tx;function qA(){if(Tx)return Ht;Tx=1;var e=wp();function n(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+h+"; visit "+d+" 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},o=Symbol.for("react.portal");function s(h,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:d,implementation:m}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ht.createPortal=function(h,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return s(h,d,null,m)},Ht.flushSync=function(h){var d=c.T,m=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=d,i.p=m,i.d.f()}},Ht.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},Ht.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Ht.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,w=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):m==="script"&&i.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ht.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},Ht.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=f(m,d.crossOrigin);i.d.L(h,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Ht.preloadModule=function(h,d){if(typeof h=="string")if(d){var m=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},Ht.requestFormReset=function(h){i.d.r(h)},Ht.unstable_batchedUpdates=function(h,d){return h(d)},Ht.useFormState=function(h,d,m){return c.H.useFormState(h,d,m)},Ht.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ht.version="19.1.1",Ht}var Rx;function C0(){if(Rx)return eh.exports;Rx=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(),eh.exports=qA(),eh.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 _x;function VA(){if(_x)return yo;_x=1;var e=FA(),n=wp(),r=C0();function i(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var a=t,l=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(l=a.return),t=a.return;while(t)}return a.tag===3?l: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 h(t){var a=t.alternate;if(!a){if(a=s(t),a===null)throw Error(i(188));return a!==t?null:t}for(var l=t,u=a;;){var p=l.return;if(p===null)break;var v=p.alternate;if(v===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===l)return f(p),t;if(v===u)return f(p),a;v=v.sibling}throw Error(i(188))}if(l.return!==u.return)l=p,u=v;else{for(var S=!1,R=p.child;R;){if(R===l){S=!0,l=p,u=v;break}if(R===u){S=!0,u=p,l=v;break}R=R.sibling}if(!S){for(R=v.child;R;){if(R===l){S=!0,l=v,u=p;break}if(R===u){S=!0,u=v,l=p;break}R=R.sibling}if(!S)throw Error(i(189))}}if(l.alternate!==u)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:a}function d(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=d(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"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),_=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function Q(t){return t===null||typeof t!="object"?null:(t=re&&t[re]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function q(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case O:return"SuspenseList";case ee:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case w:return"Portal";case _:return(t.displayName||"Context")+".Provider";case N:return(t._context.displayName||"Context")+".Consumer";case j:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return a=t.displayName||null,a!==null?a:q(t.type)||"Memo";case G:a=t._payload,t=t._init;try{return q(t(a))}catch{}}return null}var le=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},ae=[],k=-1;function X(t){return{current:t}}function oe(t){0>k||(t.current=ae[k],ae[k]=null,k--)}function M(t,a){k++,ae[k]=t.current,t.current=a}var fe=X(null),Ce=X(null),de=X(null),xe=X(null);function De(t,a){switch(M(de,a),M(Ce,t),M(fe,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?Xv(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=Xv(a),t=Qv(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}oe(fe),M(fe,t)}function lt(){oe(fe),oe(Ce),oe(de)}function Ze(t){t.memoizedState!==null&&M(xe,t);var a=fe.current,l=Qv(a,t.type);a!==l&&(M(Ce,t),M(fe,l))}function dt(t){Ce.current===t&&(oe(fe),oe(Ce)),xe.current===t&&(oe(xe),co._currentValue=U)}var $t=Object.prototype.hasOwnProperty,un=e.unstable_scheduleCallback,mr=e.unstable_cancelCallback,gr=e.unstable_shouldYield,Ja=e.unstable_requestPaint,Ct=e.unstable_now,yr=e.unstable_getCurrentPriorityLevel,vr=e.unstable_ImmediatePriority,Zn=e.unstable_UserBlockingPriority,Gt=e.unstable_NormalPriority,Wn=e.unstable_LowPriority,Sa=e.unstable_IdlePriority,ei=e.log,ti=e.unstable_setDisableYieldValue,J=null,se=null;function Ee(t){if(typeof ei=="function"&&ti(t),se&&typeof se.setStrictMode=="function")try{se.setStrictMode(J,t)}catch{}}var Ae=Math.clz32?Math.clz32:Bn,Ge=Math.log,Yt=Math.LN2;function Bn(t){return t>>>=0,t===0?32:31-(Ge(t)/Yt|0)|0}var It=256,En=4194304;function Kt(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 yt(t,a,l){var u=t.pendingLanes;if(u===0)return 0;var p=0,v=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var R=u&134217727;return R!==0?(u=R&~v,u!==0?p=Kt(u):(S&=R,S!==0?p=Kt(S):l||(l=R&~t,l!==0&&(p=Kt(l))))):(R=u&~v,R!==0?p=Kt(R):S!==0?p=Kt(S):l||(l=u&~t,l!==0&&(p=Kt(l)))),p===0?0:a!==0&&a!==p&&(a&v)===0&&(v=p&-p,l=a&-a,v>=l||v===32&&(l&4194048)!==0)?a:p}function Bt(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function en(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 ni(){var t=It;return It<<=1,(It&4194048)===0&&(It=256),t}function Z(){var t=En;return En<<=1,(En&62914560)===0&&(En=4194304),t}function he(t){for(var a=[],l=0;31>l;l++)a.push(t);return a}function pe(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function be(t,a,l,u,p,v){var S=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var R=t.entanglements,D=t.expirationTimes,F=t.hiddenUpdates;for(l=S&~l;0<l;){var te=31-Ae(l),ie=1<<te;R[te]=0,D[te]=-1;var V=F[te];if(V!==null)for(F[te]=null,te=0;te<V.length;te++){var Y=V[te];Y!==null&&(Y.lane&=-536870913)}l&=~ie}u!==0&&Me(t,u,0),v!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=v&~(S&~a))}function Me(t,a,l){t.pendingLanes|=a,t.suspendedLanes&=~a;var u=31-Ae(a);t.entangledLanes|=a,t.entanglements[u]=t.entanglements[u]|1073741824|l&4194090}function We(t,a){var l=t.entangledLanes|=a;for(t=t.entanglements;l;){var u=31-Ae(l),p=1<<u;p&a|t[u]&a&&(t[u]|=a),l&=~p}}function Dt(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 Fr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ye(){var t=K.p;return t!==0?t:(t=window.event,t===void 0?32:mx(t.type))}function kn(t,a){var l=K.p;try{return K.p=t,a()}finally{K.p=l}}var Ot=Math.random().toString(36).slice(2),ot="__reactFiber$"+Ot,Ke="__reactProps$"+Ot,Xt="__reactContainer$"+Ot,Jn="__reactEvents$"+Ot,wl="__reactListeners$"+Ot,xr="__reactHandles$"+Ot,Ea="__reactResources$"+Ot,cn="__reactMarker$"+Ot;function fn(t){delete t[ot],delete t[Ke],delete t[Jn],delete t[wl],delete t[xr]}function ri(t){var a=t[ot];if(a)return a;for(var l=t.parentNode;l;){if(a=l[Xt]||l[ot]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(t=ex(t);t!==null;){if(l=t[ot])return l;t=ex(t)}return a}t=l,l=t.parentNode}return null}function ai(t){if(t=t[ot]||t[Xt]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function Sl(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(i(33))}function ii(t){var a=t[Ea];return a||(a=t[Ea]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function _t(t){t[cn]=!0}var Im=new Set,Bm={};function ka(t,a){li(t,a),li(t+"Capture",a)}function li(t,a){for(Bm[t]=a,t=0;t<a.length;t++)Im.add(a[t])}var _C=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]*$"),Um={},Hm={};function NC(t){return $t.call(Hm,t)?!0:$t.call(Um,t)?!1:_C.test(t)?Hm[t]=!0:(Um[t]=!0,!1)}function fs(t,a,l){if(NC(a))if(l===null)t.removeAttribute(a);else{switch(typeof l){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,""+l)}}function ds(t,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+l)}}function br(t,a,l,u){if(u===null)t.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(a,l,""+u)}}var Fc,Fm;function oi(t){if(Fc===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Fc=a&&a[1]||"",Fm=-1<l.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Fc+t+Fm}var qc=!1;function Vc(t,a){if(!t||qc)return"";qc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(Y){var V=Y}Reflect.construct(t,[],ie)}else{try{ie.call()}catch(Y){V=Y}t.call(ie.prototype)}}else{try{throw Error()}catch(Y){V=Y}(ie=t())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(Y){if(Y&&V&&typeof Y.stack=="string")return[Y.stack,V.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(),S=v[0],R=v[1];if(S&&R){var D=S.split(`
|
|
45
|
+
`),F=R.split(`
|
|
46
|
+
`);for(p=u=0;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;for(;p<F.length&&!F[p].includes("DetermineComponentFrameRoot");)p++;if(u===D.length||p===F.length)for(u=D.length-1,p=F.length-1;1<=u&&0<=p&&D[u]!==F[p];)p--;for(;1<=u&&0<=p;u--,p--)if(D[u]!==F[p]){if(u!==1||p!==1)do if(u--,p--,0>p||D[u]!==F[p]){var te=`
|
|
47
|
+
`+D[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{qc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?oi(l):""}function MC(t){switch(t.tag){case 26:case 27:case 5:return oi(t.type);case 16:return oi("Lazy");case 13:return oi("Suspense");case 19:return oi("SuspenseList");case 0:case 15:return Vc(t.type,!1);case 11:return Vc(t.type.render,!1);case 1:return Vc(t.type,!0);case 31:return oi("Activity");default:return""}}function qm(t){try{var a="";do a+=MC(t),t=t.return;while(t);return a}catch(l){return`
|
|
48
|
+
Error generating stack: `+l.message+`
|
|
49
|
+
`+l.stack}}function Cn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Vm(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function jC(t){var a=Vm(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),u=""+t[a];if(!t.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,v=l.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return p.call(this)},set:function(S){u=""+S,v.call(this,S)}}),Object.defineProperty(t,a,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(S){u=""+S},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function hs(t){t._valueTracker||(t._valueTracker=jC(t))}function $m(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var l=a.getValue(),u="";return t&&(u=Vm(t)?t.checked?"true":"false":t.value),t=u,t!==l?(a.setValue(t),!0):!1}function ps(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 DC=/[\n"\\]/g;function An(t){return t.replace(DC,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function $c(t,a,l,u,p,v,S,R){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),a!=null?S==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Cn(a)):t.value!==""+Cn(a)&&(t.value=""+Cn(a)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),a!=null?Gc(t,S,Cn(a)):l!=null?Gc(t,S,Cn(l)):u!=null&&t.removeAttribute("value"),p==null&&v!=null&&(t.defaultChecked=!!v),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?t.name=""+Cn(R):t.removeAttribute("name")}function Gm(t,a,l,u,p,v,S,R){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.type=v),a!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||a!=null))return;l=l!=null?""+Cn(l):"",a=a!=null?""+Cn(a):l,R||a===t.value||(t.value=a),t.defaultValue=a}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=R?t.checked:!!u,t.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S)}function Gc(t,a,l){a==="number"&&ps(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function si(t,a,l,u){if(t=t.options,a){a={};for(var p=0;p<l.length;p++)a["$"+l[p]]=!0;for(l=0;l<t.length;l++)p=a.hasOwnProperty("$"+t[l].value),t[l].selected!==p&&(t[l].selected=p),p&&u&&(t[l].defaultSelected=!0)}else{for(l=""+Cn(l),a=null,p=0;p<t.length;p++){if(t[p].value===l){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}a!==null||t[p].disabled||(a=t[p])}a!==null&&(a.selected=!0)}}function Ym(t,a,l){if(a!=null&&(a=""+Cn(a),a!==t.value&&(t.value=a),l==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=l!=null?""+Cn(l):""}function Km(t,a,l,u){if(a==null){if(u!=null){if(l!=null)throw Error(i(92));if(le(u)){if(1<u.length)throw Error(i(93));u=u[0]}l=u}l==null&&(l=""),a=l}l=Cn(a),t.defaultValue=l,u=t.textContent,u===l&&u!==""&&u!==null&&(t.value=u)}function ui(t,a){if(a){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=a;return}}t.textContent=a}var OC=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 Xm(t,a,l){var u=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":u?t.setProperty(a,l):typeof l!="number"||l===0||OC.has(a)?a==="float"?t.cssFloat=l:t[a]=(""+l).trim():t[a]=l+"px"}function Qm(t,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(t=t.style,l!=null){for(var u in l)!l.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)&&l[p]!==u&&Xm(t,p,u)}else for(var v in a)a.hasOwnProperty(v)&&Xm(t,v,a[v])}function Yc(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 LC=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"]]),zC=/^[\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 ms(t){return zC.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Kc=null;function Xc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ci=null,fi=null;function Zm(t){var a=ai(t);if(a&&(t=a.stateNode)){var l=t[Ke]||null;e:switch(t=a.stateNode,a.type){case"input":if($c(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+An(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var u=l[a];if(u!==t&&u.form===t.form){var p=u[Ke]||null;if(!p)throw Error(i(90));$c(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<l.length;a++)u=l[a],u.form===t.form&&$m(u)}break e;case"textarea":Ym(t,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&si(t,!!l.multiple,a,!1)}}}var Qc=!1;function Wm(t,a,l){if(Qc)return t(a,l);Qc=!0;try{var u=t(a);return u}finally{if(Qc=!1,(ci!==null||fi!==null)&&(eu(),ci&&(a=ci,t=fi,fi=ci=null,Zm(a),t)))for(a=0;a<t.length;a++)Zm(t[a])}}function El(t,a){var l=t.stateNode;if(l===null)return null;var u=l[Ke]||null;if(u===null)return null;l=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(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zc=!1;if(wr)try{var kl={};Object.defineProperty(kl,"passive",{get:function(){Zc=!0}}),window.addEventListener("test",kl,kl),window.removeEventListener("test",kl,kl)}catch{Zc=!1}var qr=null,Wc=null,gs=null;function Jm(){if(gs)return gs;var t,a=Wc,l=a.length,u,p="value"in qr?qr.value:qr.textContent,v=p.length;for(t=0;t<l&&a[t]===p[t];t++);var S=l-t;for(u=1;u<=S&&a[l-u]===p[v-u];u++);return gs=p.slice(t,1<u?1-u:void 0)}function ys(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 vs(){return!0}function eg(){return!1}function tn(t){function a(l,u,p,v,S){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=v,this.target=S,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(l=t[R],this[R]=l?l(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?vs:eg,this.isPropagationStopped=eg,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vs)},persist:function(){},isPersistent:vs}),a}var Ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xs=tn(Ca),Cl=m({},Ca,{view:0,detail:0}),PC=tn(Cl),Jc,ef,Al,bs=m({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nf,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!==Al&&(Al&&t.type==="mousemove"?(Jc=t.screenX-Al.screenX,ef=t.screenY-Al.screenY):ef=Jc=0,Al=t),Jc)},movementY:function(t){return"movementY"in t?t.movementY:ef}}),tg=tn(bs),IC=m({},bs,{dataTransfer:0}),BC=tn(IC),UC=m({},Cl,{relatedTarget:0}),tf=tn(UC),HC=m({},Ca,{animationName:0,elapsedTime:0,pseudoElement:0}),FC=tn(HC),qC=m({},Ca,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),VC=tn(qC),$C=m({},Ca,{data:0}),ng=tn($C),GC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YC={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"},KC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function XC(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=KC[t])?!!a[t]:!1}function nf(){return XC}var QC=m({},Cl,{key:function(t){if(t.key){var a=GC[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=ys(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?YC[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nf,charCode:function(t){return t.type==="keypress"?ys(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ys(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ZC=tn(QC),WC=m({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rg=tn(WC),JC=m({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nf}),e2=tn(JC),t2=m({},Ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),n2=tn(t2),r2=m({},bs,{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}),a2=tn(r2),i2=m({},Ca,{newState:0,oldState:0}),l2=tn(i2),o2=[9,13,27,32],rf=wr&&"CompositionEvent"in window,Tl=null;wr&&"documentMode"in document&&(Tl=document.documentMode);var s2=wr&&"TextEvent"in window&&!Tl,ag=wr&&(!rf||Tl&&8<Tl&&11>=Tl),ig=" ",lg=!1;function og(t,a){switch(t){case"keyup":return o2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var di=!1;function u2(t,a){switch(t){case"compositionend":return sg(a);case"keypress":return a.which!==32?null:(lg=!0,ig);case"textInput":return t=a.data,t===ig&&lg?null:t;default:return null}}function c2(t,a){if(di)return t==="compositionend"||!rf&&og(t,a)?(t=Jm(),gs=Wc=qr=null,di=!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 ag&&a.locale!=="ko"?null:a.data;default:return null}}var f2={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 ug(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!f2[t.type]:a==="textarea"}function cg(t,a,l,u){ci?fi?fi.push(u):fi=[u]:ci=u,a=lu(a,"onChange"),0<a.length&&(l=new xs("onChange","change",null,l,u),t.push({event:l,listeners:a}))}var Rl=null,_l=null;function d2(t){Vv(t,0)}function ws(t){var a=Sl(t);if($m(a))return t}function fg(t,a){if(t==="change")return a}var dg=!1;if(wr){var af;if(wr){var lf="oninput"in document;if(!lf){var hg=document.createElement("div");hg.setAttribute("oninput","return;"),lf=typeof hg.oninput=="function"}af=lf}else af=!1;dg=af&&(!document.documentMode||9<document.documentMode)}function pg(){Rl&&(Rl.detachEvent("onpropertychange",mg),_l=Rl=null)}function mg(t){if(t.propertyName==="value"&&ws(_l)){var a=[];cg(a,_l,t,Xc(t)),Wm(d2,a)}}function h2(t,a,l){t==="focusin"?(pg(),Rl=a,_l=l,Rl.attachEvent("onpropertychange",mg)):t==="focusout"&&pg()}function p2(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ws(_l)}function m2(t,a){if(t==="click")return ws(a)}function g2(t,a){if(t==="input"||t==="change")return ws(a)}function y2(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var dn=typeof Object.is=="function"?Object.is:y2;function Nl(t,a){if(dn(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var l=Object.keys(t),u=Object.keys(a);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!$t.call(a,p)||!dn(t[p],a[p]))return!1}return!0}function gg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yg(t,a){var l=gg(t);t=0;for(var u;l;){if(l.nodeType===3){if(u=t+l.textContent.length,t<=a&&u>=a)return{node:l,offset:a-t};t=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=gg(l)}}function vg(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?vg(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function xg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=ps(t.document);a instanceof t.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)t=a.contentWindow;else break;a=ps(t.document)}return a}function of(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 v2=wr&&"documentMode"in document&&11>=document.documentMode,hi=null,sf=null,Ml=null,uf=!1;function bg(t,a,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;uf||hi==null||hi!==ps(u)||(u=hi,"selectionStart"in u&&of(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}),Ml&&Nl(Ml,u)||(Ml=u,u=lu(sf,"onSelect"),0<u.length&&(a=new xs("onSelect","select",null,a,l),t.push({event:a,listeners:u}),a.target=hi)))}function Aa(t,a){var l={};return l[t.toLowerCase()]=a.toLowerCase(),l["Webkit"+t]="webkit"+a,l["Moz"+t]="moz"+a,l}var pi={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionrun:Aa("Transition","TransitionRun"),transitionstart:Aa("Transition","TransitionStart"),transitioncancel:Aa("Transition","TransitionCancel"),transitionend:Aa("Transition","TransitionEnd")},cf={},wg={};wr&&(wg=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function Ta(t){if(cf[t])return cf[t];if(!pi[t])return t;var a=pi[t],l;for(l in a)if(a.hasOwnProperty(l)&&l in wg)return cf[t]=a[l];return t}var Sg=Ta("animationend"),Eg=Ta("animationiteration"),kg=Ta("animationstart"),x2=Ta("transitionrun"),b2=Ta("transitionstart"),w2=Ta("transitioncancel"),Cg=Ta("transitionend"),Ag=new Map,ff="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(" ");ff.push("scrollEnd");function Un(t,a){Ag.set(t,a),ka(a,[t])}var Tg=new WeakMap;function Tn(t,a){if(typeof t=="object"&&t!==null){var l=Tg.get(t);return l!==void 0?l:(a={value:t,source:a,stack:qm(a)},Tg.set(t,a),a)}return{value:t,source:a,stack:qm(a)}}var Rn=[],mi=0,df=0;function Ss(){for(var t=mi,a=df=mi=0;a<t;){var l=Rn[a];Rn[a++]=null;var u=Rn[a];Rn[a++]=null;var p=Rn[a];Rn[a++]=null;var v=Rn[a];if(Rn[a++]=null,u!==null&&p!==null){var S=u.pending;S===null?p.next=p:(p.next=S.next,S.next=p),u.pending=p}v!==0&&Rg(l,p,v)}}function Es(t,a,l,u){Rn[mi++]=t,Rn[mi++]=a,Rn[mi++]=l,Rn[mi++]=u,df|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function hf(t,a,l,u){return Es(t,a,l,u),ks(t)}function gi(t,a){return Es(t,null,null,a),ks(t)}function Rg(t,a,l){t.lanes|=l;var u=t.alternate;u!==null&&(u.lanes|=l);for(var p=!1,v=t.return;v!==null;)v.childLanes|=l,u=v.alternate,u!==null&&(u.childLanes|=l),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(l),t=v.hiddenUpdates,u=t[p],u===null?t[p]=[a]:u.push(a),a.lane=l|536870912),v):null}function ks(t){if(50<no)throw no=0,xd=null,Error(i(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var yi={};function S2(t,a,l,u){this.tag=t,this.key=l,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 hn(t,a,l,u){return new S2(t,a,l,u)}function pf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Sr(t,a){var l=t.alternate;return l===null?(l=hn(t.tag,a,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=a,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,a=t.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function _g(t,a){t.flags&=65011714;var l=t.alternate;return l===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=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,a=l.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Cs(t,a,l,u,p,v){var S=0;if(u=t,typeof t=="function")pf(t)&&(S=1);else if(typeof t=="string")S=kA(t,l,fe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ee:return t=hn(31,l,a,p),t.elementType=ee,t.lanes=v,t;case E:return Ra(l.children,p,v,a);case C:S=8,p|=24;break;case A:return t=hn(12,l,a,p|2),t.elementType=A,t.lanes=v,t;case L:return t=hn(13,l,a,p),t.elementType=L,t.lanes=v,t;case O:return t=hn(19,l,a,p),t.elementType=O,t.lanes=v,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case _:S=10;break e;case N:S=9;break e;case j:S=11;break e;case $:S=14;break e;case G:S=16,u=null;break e}S=29,l=Error(i(130,t===null?"null":typeof t,"")),u=null}return a=hn(S,l,a,p),a.elementType=t,a.type=u,a.lanes=v,a}function Ra(t,a,l,u){return t=hn(7,t,u,a),t.lanes=l,t}function mf(t,a,l){return t=hn(6,t,null,a),t.lanes=l,t}function gf(t,a,l){return a=hn(4,t.children!==null?t.children:[],t.key,a),a.lanes=l,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var vi=[],xi=0,As=null,Ts=0,_n=[],Nn=0,_a=null,Er=1,kr="";function Na(t,a){vi[xi++]=Ts,vi[xi++]=As,As=t,Ts=a}function Ng(t,a,l){_n[Nn++]=Er,_n[Nn++]=kr,_n[Nn++]=_a,_a=t;var u=Er;t=kr;var p=32-Ae(u)-1;u&=~(1<<p),l+=1;var v=32-Ae(a)+p;if(30<v){var S=p-p%5;v=(u&(1<<S)-1).toString(32),u>>=S,p-=S,Er=1<<32-Ae(a)+p|l<<p|u,kr=v+t}else Er=1<<v|l<<p|u,kr=t}function yf(t){t.return!==null&&(Na(t,1),Ng(t,1,0))}function vf(t){for(;t===As;)As=vi[--xi],vi[xi]=null,Ts=vi[--xi],vi[xi]=null;for(;t===_a;)_a=_n[--Nn],_n[Nn]=null,kr=_n[--Nn],_n[Nn]=null,Er=_n[--Nn],_n[Nn]=null}var Qt=null,mt=null,Xe=!1,Ma=null,er=!1,xf=Error(i(519));function ja(t){var a=Error(i(418,""));throw Ol(Tn(a,t)),xf}function Mg(t){var a=t.stateNode,l=t.type,u=t.memoizedProps;switch(a[ot]=t,a[Ke]=u,l){case"dialog":Ue("cancel",a),Ue("close",a);break;case"iframe":case"object":case"embed":Ue("load",a);break;case"video":case"audio":for(l=0;l<ao.length;l++)Ue(ao[l],a);break;case"source":Ue("error",a);break;case"img":case"image":case"link":Ue("error",a),Ue("load",a);break;case"details":Ue("toggle",a);break;case"input":Ue("invalid",a),Gm(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),hs(a);break;case"select":Ue("invalid",a);break;case"textarea":Ue("invalid",a),Km(a,u.value,u.defaultValue,u.children),hs(a)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||u.suppressHydrationWarning===!0||Kv(a.textContent,l)?(u.popover!=null&&(Ue("beforetoggle",a),Ue("toggle",a)),u.onScroll!=null&&Ue("scroll",a),u.onScrollEnd!=null&&Ue("scrollend",a),u.onClick!=null&&(a.onclick=ou),a=!0):a=!1,a||ja(t)}function jg(t){for(Qt=t.return;Qt;)switch(Qt.tag){case 5:case 13:er=!1;return;case 27:case 3:er=!0;return;default:Qt=Qt.return}}function jl(t){if(t!==Qt)return!1;if(!Xe)return jg(t),Xe=!0,!1;var a=t.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Ld(t.type,t.memoizedProps)),l=!l),l&&mt&&ja(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(l=t.data,l==="/$"){if(a===0){mt=Fn(t.nextSibling);break e}a--}else l!=="$"&&l!=="$!"&&l!=="$?"||a++;t=t.nextSibling}mt=null}}else a===27?(a=mt,ia(t.type)?(t=Bd,Bd=null,mt=t):mt=a):mt=Qt?Fn(t.stateNode.nextSibling):null;return!0}function Dl(){mt=Qt=null,Xe=!1}function Dg(){var t=Ma;return t!==null&&(an===null?an=t:an.push.apply(an,t),Ma=null),t}function Ol(t){Ma===null?Ma=[t]:Ma.push(t)}var bf=X(null),Da=null,Cr=null;function Vr(t,a,l){M(bf,a._currentValue),a._currentValue=l}function Ar(t){t._currentValue=bf.current,oe(bf)}function wf(t,a,l){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===l)break;t=t.return}}function Sf(t,a,l,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var v=p.dependencies;if(v!==null){var S=p.child;v=v.firstContext;e:for(;v!==null;){var R=v;v=p;for(var D=0;D<a.length;D++)if(R.context===a[D]){v.lanes|=l,R=v.alternate,R!==null&&(R.lanes|=l),wf(v.return,l,t),u||(S=null);break e}v=R.next}}else if(p.tag===18){if(S=p.return,S===null)throw Error(i(341));S.lanes|=l,v=S.alternate,v!==null&&(v.lanes|=l),wf(S,l,t),S=null}else S=p.child;if(S!==null)S.return=p;else for(S=p;S!==null;){if(S===t){S=null;break}if(p=S.sibling,p!==null){p.return=S.return,S=p;break}S=S.return}p=S}}function Ll(t,a,l,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 S=p.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var R=p.type;dn(p.pendingProps.value,S.value)||(t!==null?t.push(R):t=[R])}}else if(p===xe.current){if(S=p.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(co):t=[co])}p=p.return}t!==null&&Sf(a,t,l,u),a.flags|=262144}function Rs(t){for(t=t.firstContext;t!==null;){if(!dn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Oa(t){Da=t,Cr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ut(t){return Og(Da,t)}function _s(t,a){return Da===null&&Oa(t),Og(t,a)}function Og(t,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Cr===null){if(t===null)throw Error(i(308));Cr=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Cr=Cr.next=a;return l}var E2=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(l,u){t.push(u)}};this.abort=function(){a.aborted=!0,t.forEach(function(l){return l()})}},k2=e.unstable_scheduleCallback,C2=e.unstable_NormalPriority,At={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new E2,data:new Map,refCount:0}}function zl(t){t.refCount--,t.refCount===0&&k2(C2,function(){t.controller.abort()})}var Pl=null,kf=0,bi=0,wi=null;function A2(t,a){if(Pl===null){var l=Pl=[];kf=0,bi=Ad(),wi={status:"pending",value:void 0,then:function(u){l.push(u)}}}return kf++,a.then(Lg,Lg),a}function Lg(){if(--kf===0&&Pl!==null){wi!==null&&(wi.status="fulfilled");var t=Pl;Pl=null,bi=0,wi=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function T2(t,a){var l=[],u={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return t.then(function(){u.status="fulfilled",u.value=a;for(var p=0;p<l.length;p++)(0,l[p])(a)},function(p){for(u.status="rejected",u.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),u}var zg=z.S;z.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&A2(t,a),zg!==null&&zg(t,a)};var La=X(null);function Cf(){var t=La.current;return t!==null?t:st.pooledCache}function Ns(t,a){a===null?M(La,La.current):M(La,a.pool)}function Pg(){var t=Cf();return t===null?null:{parent:At._currentValue,pool:t}}var Il=Error(i(460)),Ig=Error(i(474)),Ms=Error(i(542)),Af={then:function(){}};function Bg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function js(){}function Ug(t,a,l){switch(l=t[l],l===void 0?t.push(a):l!==a&&(a.then(js,js),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,Fg(t),t;default:if(typeof a.status=="string")a.then(js,js);else{if(t=st,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,Fg(t),t}throw Bl=a,Il}}var Bl=null;function Hg(){if(Bl===null)throw Error(i(459));var t=Bl;return Bl=null,t}function Fg(t){if(t===Il||t===Ms)throw Error(i(483))}var $r=!1;function Tf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rf(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 Gr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Yr(t,a,l){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Je&2)!==0){var p=u.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),u.pending=a,a=ks(t),Rg(t,null,l),a}return Es(t,u,a,l),ks(t)}function Ul(t,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var u=a.lanes;u&=t.pendingLanes,l|=u,a.lanes=l,We(t,l)}}function _f(t,a){var l=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var S={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?p=v=S:v=v.next=S,l=l.next}while(l!==null);v===null?p=v=a:v=v.next=a}else p=v=a;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:u.shared,callbacks:u.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=a:t.next=a,l.lastBaseUpdate=a}var Nf=!1;function Hl(){if(Nf){var t=wi;if(t!==null)throw t}}function Fl(t,a,l,u){Nf=!1;var p=t.updateQueue;$r=!1;var v=p.firstBaseUpdate,S=p.lastBaseUpdate,R=p.shared.pending;if(R!==null){p.shared.pending=null;var D=R,F=D.next;D.next=null,S===null?v=F:S.next=F,S=D;var te=t.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==S&&(R===null?te.firstBaseUpdate=F:R.next=F,te.lastBaseUpdate=D))}if(v!==null){var ie=p.baseState;S=0,te=F=D=null,R=v;do{var V=R.lane&-536870913,Y=V!==R.lane;if(Y?(qe&V)===V:(u&V)===V){V!==0&&V===bi&&(Nf=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var je=t,Re=R;V=a;var rt=l;switch(Re.tag){case 1:if(je=Re.payload,typeof je=="function"){ie=je.call(rt,ie,V);break e}ie=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Re.payload,V=typeof je=="function"?je.call(rt,ie,V):je,V==null)break e;ie=m({},ie,V);break e;case 2:$r=!0}}V=R.callback,V!==null&&(t.flags|=64,Y&&(t.flags|=8192),Y=p.callbacks,Y===null?p.callbacks=[V]:Y.push(V))}else Y={lane:V,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(F=te=Y,D=ie):te=te.next=Y,S|=V;if(R=R.next,R===null){if(R=p.shared.pending,R===null)break;Y=R,R=Y.next,Y.next=null,p.lastBaseUpdate=Y,p.shared.pending=null}}while(!0);te===null&&(D=ie),p.baseState=D,p.firstBaseUpdate=F,p.lastBaseUpdate=te,v===null&&(p.shared.lanes=0),ta|=S,t.lanes=S,t.memoizedState=ie}}function qg(t,a){if(typeof t!="function")throw Error(i(191,t));t.call(a)}function Vg(t,a){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)qg(l[t],a)}var Si=X(null),Ds=X(0);function $g(t,a){t=Dr,M(Ds,t),M(Si,a),Dr=t|a.baseLanes}function Mf(){M(Ds,Dr),M(Si,Si.current)}function jf(){Dr=Ds.current,oe(Si),oe(Ds)}var Kr=0,ze=null,tt=null,bt=null,Os=!1,Ei=!1,za=!1,Ls=0,ql=0,ki=null,R2=0;function vt(){throw Error(i(321))}function Df(t,a){if(a===null)return!1;for(var l=0;l<a.length&&l<t.length;l++)if(!dn(t[l],a[l]))return!1;return!0}function Of(t,a,l,u,p,v){return Kr=v,ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=t===null||t.memoizedState===null?Ry:_y,za=!1,v=l(u,p),za=!1,Ei&&(v=Yg(a,l,u,p)),Gg(t),v}function Gg(t){z.H=Hs;var a=tt!==null&&tt.next!==null;if(Kr=0,bt=tt=ze=null,Os=!1,ql=0,ki=null,a)throw Error(i(300));t===null||Nt||(t=t.dependencies,t!==null&&Rs(t)&&(Nt=!0))}function Yg(t,a,l,u){ze=t;var p=0;do{if(Ei&&(ki=null),ql=0,Ei=!1,25<=p)throw Error(i(301));if(p+=1,bt=tt=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=L2,v=a(l,u)}while(Ei);return v}function _2(){var t=z.H,a=t.useState()[0];return a=typeof a.then=="function"?Vl(a):a,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(ze.flags|=1024),a}function Lf(){var t=Ls!==0;return Ls=0,t}function zf(t,a,l){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~l}function Pf(t){if(Os){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Os=!1}Kr=0,bt=tt=ze=null,Ei=!1,ql=Ls=0,ki=null}function nn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?ze.memoizedState=bt=t:bt=bt.next=t,bt}function wt(){if(tt===null){var t=ze.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var a=bt===null?ze.memoizedState:bt.next;if(a!==null)bt=a,tt=t;else{if(t===null)throw ze.alternate===null?Error(i(467)):Error(i(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},bt===null?ze.memoizedState=bt=t:bt=bt.next=t}return bt}function If(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vl(t){var a=ql;return ql+=1,ki===null&&(ki=[]),t=Ug(ki,t,a),a=ze,(bt===null?a.memoizedState:bt.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?Ry:_y),t}function zs(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Vl(t);if(t.$$typeof===_)return Ut(t)}throw Error(i(438,String(t)))}function Bf(t){var a=null,l=ze.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var u=ze.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}),l===null&&(l=If(),ze.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(t),u=0;u<t;u++)l[u]=P;return a.index++,l}function Tr(t,a){return typeof a=="function"?a(t):a}function Ps(t){var a=wt();return Uf(a,tt,t)}function Uf(t,a,l){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=l;var p=t.baseQueue,v=u.pending;if(v!==null){if(p!==null){var S=p.next;p.next=v.next,v.next=S}a.baseQueue=p=v,u.pending=null}if(v=t.baseState,p===null)t.memoizedState=v;else{a=p.next;var R=S=null,D=null,F=a,te=!1;do{var ie=F.lane&-536870913;if(ie!==F.lane?(qe&ie)===ie:(Kr&ie)===ie){var V=F.revertLane;if(V===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),ie===bi&&(te=!0);else if((Kr&V)===V){F=F.next,V===bi&&(te=!0);continue}else ie={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},D===null?(R=D=ie,S=v):D=D.next=ie,ze.lanes|=V,ta|=V;ie=F.action,za&&l(v,ie),v=F.hasEagerState?F.eagerState:l(v,ie)}else V={lane:ie,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},D===null?(R=D=V,S=v):D=D.next=V,ze.lanes|=ie,ta|=ie;F=F.next}while(F!==null&&F!==a);if(D===null?S=v:D.next=R,!dn(v,t.memoizedState)&&(Nt=!0,te&&(l=wi,l!==null)))throw l;t.memoizedState=v,t.baseState=S,t.baseQueue=D,u.lastRenderedState=v}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Hf(t){var a=wt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var u=l.dispatch,p=l.pending,v=a.memoizedState;if(p!==null){l.pending=null;var S=p=p.next;do v=t(v,S.action),S=S.next;while(S!==p);dn(v,a.memoizedState)||(Nt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),l.lastRenderedState=v}return[v,u]}function Kg(t,a,l){var u=ze,p=wt(),v=Xe;if(v){if(l===void 0)throw Error(i(407));l=l()}else l=a();var S=!dn((tt||p).memoizedState,l);S&&(p.memoizedState=l,Nt=!0),p=p.queue;var R=Zg.bind(null,u,p,t);if($l(2048,8,R,[t]),p.getSnapshot!==a||S||bt!==null&&bt.memoizedState.tag&1){if(u.flags|=2048,Ci(9,Is(),Qg.bind(null,u,p,l,a),null),st===null)throw Error(i(349));v||(Kr&124)!==0||Xg(u,a,l)}return l}function Xg(t,a,l){t.flags|=16384,t={getSnapshot:a,value:l},a=ze.updateQueue,a===null?(a=If(),ze.updateQueue=a,a.stores=[t]):(l=a.stores,l===null?a.stores=[t]:l.push(t))}function Qg(t,a,l,u){a.value=l,a.getSnapshot=u,Wg(a)&&Jg(t)}function Zg(t,a,l){return l(function(){Wg(a)&&Jg(t)})}function Wg(t){var a=t.getSnapshot;t=t.value;try{var l=a();return!dn(t,l)}catch{return!0}}function Jg(t){var a=gi(t,2);a!==null&&vn(a,t,2)}function Ff(t){var a=nn();if(typeof t=="function"){var l=t;if(t=l(),za){Ee(!0);try{l()}finally{Ee(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:t},a}function ey(t,a,l,u){return t.baseState=l,Uf(t,tt,typeof u=="function"?u:Tr)}function N2(t,a,l,u,p){if(Us(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(S){v.listeners.push(S)}};z.T!==null?l(!0):v.isTransition=!1,u(v),l=a.pending,l===null?(v.next=a.pending=v,ty(a,v)):(v.next=l.next,a.pending=l.next=v)}}function ty(t,a){var l=a.action,u=a.payload,p=t.state;if(a.isTransition){var v=z.T,S={};z.T=S;try{var R=l(p,u),D=z.S;D!==null&&D(S,R),ny(t,a,R)}catch(F){qf(t,a,F)}finally{z.T=v}}else try{v=l(p,u),ny(t,a,v)}catch(F){qf(t,a,F)}}function ny(t,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){ry(t,a,u)},function(u){return qf(t,a,u)}):ry(t,a,l)}function ry(t,a,l){a.status="fulfilled",a.value=l,ay(a),t.state=l,a=t.pending,a!==null&&(l=a.next,l===a?t.pending=null:(l=l.next,a.next=l,ty(t,l)))}function qf(t,a,l){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=l,ay(a),a=a.next;while(a!==u)}t.action=null}function ay(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function iy(t,a){return a}function ly(t,a){if(Xe){var l=st.formState;if(l!==null){e:{var u=ze;if(Xe){if(mt){t:{for(var p=mt,v=er;p.nodeType!==8;){if(!v){p=null;break t}if(p=Fn(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v==="F!"||v==="F"?p:null}if(p){mt=Fn(p.nextSibling),u=p.data==="F!";break e}}ja(u)}u=!1}u&&(a=l[0])}}return l=nn(),l.memoizedState=l.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iy,lastRenderedState:a},l.queue=u,l=Cy.bind(null,ze,u),u.dispatch=l,u=Ff(!1),v=Kf.bind(null,ze,!1,u.queue),u=nn(),p={state:a,dispatch:null,action:t,pending:null},u.queue=p,l=N2.bind(null,ze,p,v,l),p.dispatch=l,u.memoizedState=t,[a,l,!1]}function oy(t){var a=wt();return sy(a,tt,t)}function sy(t,a,l){if(a=Uf(t,a,iy)[0],t=Ps(Tr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Vl(a)}catch(S){throw S===Il?Ms:S}else u=a;a=wt();var p=a.queue,v=p.dispatch;return l!==a.memoizedState&&(ze.flags|=2048,Ci(9,Is(),M2.bind(null,p,l),null)),[u,v,t]}function M2(t,a){t.action=a}function uy(t){var a=wt(),l=tt;if(l!==null)return sy(a,l,t);wt(),a=a.memoizedState,l=wt();var u=l.queue.dispatch;return l.memoizedState=t,[a,u,!1]}function Ci(t,a,l,u){return t={tag:t,create:l,deps:u,inst:a,next:null},a=ze.updateQueue,a===null&&(a=If(),ze.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=t.next=t:(u=l.next,l.next=t,t.next=u,a.lastEffect=t),t}function Is(){return{destroy:void 0,resource:void 0}}function cy(){return wt().memoizedState}function Bs(t,a,l,u){var p=nn();u=u===void 0?null:u,ze.flags|=t,p.memoizedState=Ci(1|a,Is(),l,u)}function $l(t,a,l,u){var p=wt();u=u===void 0?null:u;var v=p.memoizedState.inst;tt!==null&&u!==null&&Df(u,tt.memoizedState.deps)?p.memoizedState=Ci(a,v,l,u):(ze.flags|=t,p.memoizedState=Ci(1|a,v,l,u))}function fy(t,a){Bs(8390656,8,t,a)}function dy(t,a){$l(2048,8,t,a)}function hy(t,a){return $l(4,2,t,a)}function py(t,a){return $l(4,4,t,a)}function my(t,a){if(typeof a=="function"){t=t();var l=a(t);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function gy(t,a,l){l=l!=null?l.concat([t]):null,$l(4,4,my.bind(null,a,t),l)}function Vf(){}function yy(t,a){var l=wt();a=a===void 0?null:a;var u=l.memoizedState;return a!==null&&Df(a,u[1])?u[0]:(l.memoizedState=[t,a],t)}function vy(t,a){var l=wt();a=a===void 0?null:a;var u=l.memoizedState;if(a!==null&&Df(a,u[1]))return u[0];if(u=t(),za){Ee(!0);try{t()}finally{Ee(!1)}}return l.memoizedState=[u,a],u}function $f(t,a,l){return l===void 0||(Kr&1073741824)!==0?t.memoizedState=a:(t.memoizedState=l,t=wv(),ze.lanes|=t,ta|=t,l)}function xy(t,a,l,u){return dn(l,a)?l:Si.current!==null?(t=$f(t,l,u),dn(t,a)||(Nt=!0),t):(Kr&42)===0?(Nt=!0,t.memoizedState=l):(t=wv(),ze.lanes|=t,ta|=t,a)}function by(t,a,l,u,p){var v=K.p;K.p=v!==0&&8>v?v:8;var S=z.T,R={};z.T=R,Kf(t,!1,a,l);try{var D=p(),F=z.S;if(F!==null&&F(R,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var te=T2(D,u);Gl(t,a,te,yn(t))}else Gl(t,a,u,yn(t))}catch(ie){Gl(t,a,{then:function(){},status:"rejected",reason:ie},yn())}finally{K.p=v,z.T=S}}function j2(){}function Gf(t,a,l,u){if(t.tag!==5)throw Error(i(476));var p=wy(t).queue;by(t,p,a,U,l===null?j2:function(){return Sy(t),l(u)})}function wy(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:U},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:l},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Sy(t){var a=wy(t).next.queue;Gl(t,a,{},yn())}function Yf(){return Ut(co)}function Ey(){return wt().memoizedState}function ky(){return wt().memoizedState}function D2(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var l=yn();t=Gr(l);var u=Yr(a,t,l);u!==null&&(vn(u,a,l),Ul(u,a,l)),a={cache:Ef()},t.payload=a;return}a=a.return}}function O2(t,a,l){var u=yn();l={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Us(t)?Ay(a,l):(l=hf(t,a,l,u),l!==null&&(vn(l,t,u),Ty(l,a,u)))}function Cy(t,a,l){var u=yn();Gl(t,a,l,u)}function Gl(t,a,l,u){var p={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Us(t))Ay(a,p);else{var v=t.alternate;if(t.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var S=a.lastRenderedState,R=v(S,l);if(p.hasEagerState=!0,p.eagerState=R,dn(R,S))return Es(t,a,p,0),st===null&&Ss(),!1}catch{}finally{}if(l=hf(t,a,p,u),l!==null)return vn(l,t,u),Ty(l,a,u),!0}return!1}function Kf(t,a,l,u){if(u={lane:2,revertLane:Ad(),action:u,hasEagerState:!1,eagerState:null,next:null},Us(t)){if(a)throw Error(i(479))}else a=hf(t,l,u,2),a!==null&&vn(a,t,2)}function Us(t){var a=t.alternate;return t===ze||a!==null&&a===ze}function Ay(t,a){Ei=Os=!0;var l=t.pending;l===null?a.next=a:(a.next=l.next,l.next=a),t.pending=a}function Ty(t,a,l){if((l&4194048)!==0){var u=a.lanes;u&=t.pendingLanes,l|=u,a.lanes=l,We(t,l)}}var Hs={readContext:Ut,use:zs,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt},Ry={readContext:Ut,use:zs,useCallback:function(t,a){return nn().memoizedState=[t,a===void 0?null:a],t},useContext:Ut,useEffect:fy,useImperativeHandle:function(t,a,l){l=l!=null?l.concat([t]):null,Bs(4194308,4,my.bind(null,a,t),l)},useLayoutEffect:function(t,a){return Bs(4194308,4,t,a)},useInsertionEffect:function(t,a){Bs(4,2,t,a)},useMemo:function(t,a){var l=nn();a=a===void 0?null:a;var u=t();if(za){Ee(!0);try{t()}finally{Ee(!1)}}return l.memoizedState=[u,a],u},useReducer:function(t,a,l){var u=nn();if(l!==void 0){var p=l(a);if(za){Ee(!0);try{l(a)}finally{Ee(!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=O2.bind(null,ze,t),[u.memoizedState,t]},useRef:function(t){var a=nn();return t={current:t},a.memoizedState=t},useState:function(t){t=Ff(t);var a=t.queue,l=Cy.bind(null,ze,a);return a.dispatch=l,[t.memoizedState,l]},useDebugValue:Vf,useDeferredValue:function(t,a){var l=nn();return $f(l,t,a)},useTransition:function(){var t=Ff(!1);return t=by.bind(null,ze,t.queue,!0,!1),nn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,l){var u=ze,p=nn();if(Xe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),st===null)throw Error(i(349));(qe&124)!==0||Xg(u,a,l)}p.memoizedState=l;var v={value:l,getSnapshot:a};return p.queue=v,fy(Zg.bind(null,u,v,t),[t]),u.flags|=2048,Ci(9,Is(),Qg.bind(null,u,v,l,a),null),l},useId:function(){var t=nn(),a=st.identifierPrefix;if(Xe){var l=kr,u=Er;l=(u&~(1<<32-Ae(u)-1)).toString(32)+l,a="«"+a+"R"+l,l=Ls++,0<l&&(a+="H"+l.toString(32)),a+="»"}else l=R2++,a="«"+a+"r"+l.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:Yf,useFormState:ly,useActionState:ly,useOptimistic:function(t){var a=nn();a.memoizedState=a.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Kf.bind(null,ze,!0,l),l.dispatch=a,[t,a]},useMemoCache:Bf,useCacheRefresh:function(){return nn().memoizedState=D2.bind(null,ze)}},_y={readContext:Ut,use:zs,useCallback:yy,useContext:Ut,useEffect:dy,useImperativeHandle:gy,useInsertionEffect:hy,useLayoutEffect:py,useMemo:vy,useReducer:Ps,useRef:cy,useState:function(){return Ps(Tr)},useDebugValue:Vf,useDeferredValue:function(t,a){var l=wt();return xy(l,tt.memoizedState,t,a)},useTransition:function(){var t=Ps(Tr)[0],a=wt().memoizedState;return[typeof t=="boolean"?t:Vl(t),a]},useSyncExternalStore:Kg,useId:Ey,useHostTransitionStatus:Yf,useFormState:oy,useActionState:oy,useOptimistic:function(t,a){var l=wt();return ey(l,tt,t,a)},useMemoCache:Bf,useCacheRefresh:ky},L2={readContext:Ut,use:zs,useCallback:yy,useContext:Ut,useEffect:dy,useImperativeHandle:gy,useInsertionEffect:hy,useLayoutEffect:py,useMemo:vy,useReducer:Hf,useRef:cy,useState:function(){return Hf(Tr)},useDebugValue:Vf,useDeferredValue:function(t,a){var l=wt();return tt===null?$f(l,t,a):xy(l,tt.memoizedState,t,a)},useTransition:function(){var t=Hf(Tr)[0],a=wt().memoizedState;return[typeof t=="boolean"?t:Vl(t),a]},useSyncExternalStore:Kg,useId:Ey,useHostTransitionStatus:Yf,useFormState:uy,useActionState:uy,useOptimistic:function(t,a){var l=wt();return tt!==null?ey(l,tt,t,a):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Bf,useCacheRefresh:ky},Ai=null,Yl=0;function Fs(t){var a=Yl;return Yl+=1,Ai===null&&(Ai=[]),Ug(Ai,t,a)}function Kl(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function qs(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 Ny(t){var a=t._init;return a(t._payload)}function My(t){function a(B,I){if(t){var H=B.deletions;H===null?(B.deletions=[I],B.flags|=16):H.push(I)}}function l(B,I){if(!t)return null;for(;I!==null;)a(B,I),I=I.sibling;return null}function u(B){for(var I=new Map;B!==null;)B.key!==null?I.set(B.key,B):I.set(B.index,B),B=B.sibling;return I}function p(B,I){return B=Sr(B,I),B.index=0,B.sibling=null,B}function v(B,I,H){return B.index=H,t?(H=B.alternate,H!==null?(H=H.index,H<I?(B.flags|=67108866,I):H):(B.flags|=67108866,I)):(B.flags|=1048576,I)}function S(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function R(B,I,H,ne){return I===null||I.tag!==6?(I=mf(H,B.mode,ne),I.return=B,I):(I=p(I,H),I.return=B,I)}function D(B,I,H,ne){var ge=H.type;return ge===E?te(B,I,H.props.children,ne,H.key):I!==null&&(I.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&Ny(ge)===I.type)?(I=p(I,H.props),Kl(I,H),I.return=B,I):(I=Cs(H.type,H.key,H.props,null,B.mode,ne),Kl(I,H),I.return=B,I)}function F(B,I,H,ne){return I===null||I.tag!==4||I.stateNode.containerInfo!==H.containerInfo||I.stateNode.implementation!==H.implementation?(I=gf(H,B.mode,ne),I.return=B,I):(I=p(I,H.children||[]),I.return=B,I)}function te(B,I,H,ne,ge){return I===null||I.tag!==7?(I=Ra(H,B.mode,ne,ge),I.return=B,I):(I=p(I,H),I.return=B,I)}function ie(B,I,H){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=mf(""+I,B.mode,H),I.return=B,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case b:return H=Cs(I.type,I.key,I.props,null,B.mode,H),Kl(H,I),H.return=B,H;case w:return I=gf(I,B.mode,H),I.return=B,I;case G:var ne=I._init;return I=ne(I._payload),ie(B,I,H)}if(le(I)||Q(I))return I=Ra(I,B.mode,H,null),I.return=B,I;if(typeof I.then=="function")return ie(B,Fs(I),H);if(I.$$typeof===_)return ie(B,_s(B,I),H);qs(B,I)}return null}function V(B,I,H,ne){var ge=I!==null?I.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ge!==null?null:R(B,I,""+H,ne);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case b:return H.key===ge?D(B,I,H,ne):null;case w:return H.key===ge?F(B,I,H,ne):null;case G:return ge=H._init,H=ge(H._payload),V(B,I,H,ne)}if(le(H)||Q(H))return ge!==null?null:te(B,I,H,ne,null);if(typeof H.then=="function")return V(B,I,Fs(H),ne);if(H.$$typeof===_)return V(B,I,_s(B,H),ne);qs(B,H)}return null}function Y(B,I,H,ne,ge){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return B=B.get(H)||null,R(I,B,""+ne,ge);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return B=B.get(ne.key===null?H:ne.key)||null,D(I,B,ne,ge);case w:return B=B.get(ne.key===null?H:ne.key)||null,F(I,B,ne,ge);case G:var Ie=ne._init;return ne=Ie(ne._payload),Y(B,I,H,ne,ge)}if(le(ne)||Q(ne))return B=B.get(H)||null,te(I,B,ne,ge,null);if(typeof ne.then=="function")return Y(B,I,H,Fs(ne),ge);if(ne.$$typeof===_)return Y(B,I,H,_s(I,ne),ge);qs(I,ne)}return null}function je(B,I,H,ne){for(var ge=null,Ie=null,we=I,_e=I=0,jt=null;we!==null&&_e<H.length;_e++){we.index>_e?(jt=we,we=null):jt=we.sibling;var $e=V(B,we,H[_e],ne);if($e===null){we===null&&(we=jt);break}t&&we&&$e.alternate===null&&a(B,we),I=v($e,I,_e),Ie===null?ge=$e:Ie.sibling=$e,Ie=$e,we=jt}if(_e===H.length)return l(B,we),Xe&&Na(B,_e),ge;if(we===null){for(;_e<H.length;_e++)we=ie(B,H[_e],ne),we!==null&&(I=v(we,I,_e),Ie===null?ge=we:Ie.sibling=we,Ie=we);return Xe&&Na(B,_e),ge}for(we=u(we);_e<H.length;_e++)jt=Y(we,B,_e,H[_e],ne),jt!==null&&(t&&jt.alternate!==null&&we.delete(jt.key===null?_e:jt.key),I=v(jt,I,_e),Ie===null?ge=jt:Ie.sibling=jt,Ie=jt);return t&&we.forEach(function(ca){return a(B,ca)}),Xe&&Na(B,_e),ge}function Re(B,I,H,ne){if(H==null)throw Error(i(151));for(var ge=null,Ie=null,we=I,_e=I=0,jt=null,$e=H.next();we!==null&&!$e.done;_e++,$e=H.next()){we.index>_e?(jt=we,we=null):jt=we.sibling;var ca=V(B,we,$e.value,ne);if(ca===null){we===null&&(we=jt);break}t&&we&&ca.alternate===null&&a(B,we),I=v(ca,I,_e),Ie===null?ge=ca:Ie.sibling=ca,Ie=ca,we=jt}if($e.done)return l(B,we),Xe&&Na(B,_e),ge;if(we===null){for(;!$e.done;_e++,$e=H.next())$e=ie(B,$e.value,ne),$e!==null&&(I=v($e,I,_e),Ie===null?ge=$e:Ie.sibling=$e,Ie=$e);return Xe&&Na(B,_e),ge}for(we=u(we);!$e.done;_e++,$e=H.next())$e=Y(we,B,_e,$e.value,ne),$e!==null&&(t&&$e.alternate!==null&&we.delete($e.key===null?_e:$e.key),I=v($e,I,_e),Ie===null?ge=$e:Ie.sibling=$e,Ie=$e);return t&&we.forEach(function(zA){return a(B,zA)}),Xe&&Na(B,_e),ge}function rt(B,I,H,ne){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case b:e:{for(var ge=H.key;I!==null;){if(I.key===ge){if(ge=H.type,ge===E){if(I.tag===7){l(B,I.sibling),ne=p(I,H.props.children),ne.return=B,B=ne;break e}}else if(I.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===G&&Ny(ge)===I.type){l(B,I.sibling),ne=p(I,H.props),Kl(ne,H),ne.return=B,B=ne;break e}l(B,I);break}else a(B,I);I=I.sibling}H.type===E?(ne=Ra(H.props.children,B.mode,ne,H.key),ne.return=B,B=ne):(ne=Cs(H.type,H.key,H.props,null,B.mode,ne),Kl(ne,H),ne.return=B,B=ne)}return S(B);case w:e:{for(ge=H.key;I!==null;){if(I.key===ge)if(I.tag===4&&I.stateNode.containerInfo===H.containerInfo&&I.stateNode.implementation===H.implementation){l(B,I.sibling),ne=p(I,H.children||[]),ne.return=B,B=ne;break e}else{l(B,I);break}else a(B,I);I=I.sibling}ne=gf(H,B.mode,ne),ne.return=B,B=ne}return S(B);case G:return ge=H._init,H=ge(H._payload),rt(B,I,H,ne)}if(le(H))return je(B,I,H,ne);if(Q(H)){if(ge=Q(H),typeof ge!="function")throw Error(i(150));return H=ge.call(H),Re(B,I,H,ne)}if(typeof H.then=="function")return rt(B,I,Fs(H),ne);if(H.$$typeof===_)return rt(B,I,_s(B,H),ne);qs(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,I!==null&&I.tag===6?(l(B,I.sibling),ne=p(I,H),ne.return=B,B=ne):(l(B,I),ne=mf(H,B.mode,ne),ne.return=B,B=ne),S(B)):l(B,I)}return function(B,I,H,ne){try{Yl=0;var ge=rt(B,I,H,ne);return Ai=null,ge}catch(we){if(we===Il||we===Ms)throw we;var Ie=hn(29,we,null,B.mode);return Ie.lanes=ne,Ie.return=B,Ie}finally{}}}var Ti=My(!0),jy=My(!1),Mn=X(null),tr=null;function Xr(t){var a=t.alternate;M(Tt,Tt.current&1),M(Mn,t),tr===null&&(a===null||Si.current!==null||a.memoizedState!==null)&&(tr=t)}function Dy(t){if(t.tag===22){if(M(Tt,Tt.current),M(Mn,t),tr===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(tr=t)}}else Qr()}function Qr(){M(Tt,Tt.current),M(Mn,Mn.current)}function Rr(t){oe(Mn),tr===t&&(tr=null),oe(Tt)}var Tt=X(0);function Vs(t){for(var a=t;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Id(l)))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 Xf(t,a,l,u){a=t.memoizedState,l=l(u,a),l=l==null?a:m({},a,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Qf={enqueueSetState:function(t,a,l){t=t._reactInternals;var u=yn(),p=Gr(u);p.payload=a,l!=null&&(p.callback=l),a=Yr(t,p,u),a!==null&&(vn(a,t,u),Ul(a,t,u))},enqueueReplaceState:function(t,a,l){t=t._reactInternals;var u=yn(),p=Gr(u);p.tag=1,p.payload=a,l!=null&&(p.callback=l),a=Yr(t,p,u),a!==null&&(vn(a,t,u),Ul(a,t,u))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var l=yn(),u=Gr(l);u.tag=2,a!=null&&(u.callback=a),a=Yr(t,u,l),a!==null&&(vn(a,t,l),Ul(a,t,l))}};function Oy(t,a,l,u,p,v,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,v,S):a.prototype&&a.prototype.isPureReactComponent?!Nl(l,u)||!Nl(p,v):!0}function Ly(t,a,l,u){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==t&&Qf.enqueueReplaceState(a,a.state,null)}function Pa(t,a){var l=a;if("ref"in a){l={};for(var u in a)u!=="ref"&&(l[u]=a[u])}if(t=t.defaultProps){l===a&&(l=m({},l));for(var p in t)l[p]===void 0&&(l[p]=t[p])}return l}var $s=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 zy(t){$s(t)}function Py(t){console.error(t)}function Iy(t){$s(t)}function Gs(t,a){try{var l=t.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function By(t,a,l){try{var u=t.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Zf(t,a,l){return l=Gr(l),l.tag=3,l.payload={element:null},l.callback=function(){Gs(t,a)},l}function Uy(t){return t=Gr(t),t.tag=3,t}function Hy(t,a,l,u){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var v=u.value;t.payload=function(){return p(v)},t.callback=function(){By(a,l,u)}}var S=l.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){By(a,l,u),typeof p!="function"&&(na===null?na=new Set([this]):na.add(this));var R=u.stack;this.componentDidCatch(u.value,{componentStack:R!==null?R:""})})}function z2(t,a,l,u,p){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=l.alternate,a!==null&&Ll(a,l,p,!0),l=Mn.current,l!==null){switch(l.tag){case 13:return tr===null?wd():l.alternate===null&>===0&&(gt=3),l.flags&=-257,l.flags|=65536,l.lanes=p,u===Af?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([u]):a.add(u),Ed(t,u,p)),!1;case 22:return l.flags|=65536,u===Af?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([u]):l.add(u)),Ed(t,u,p)),!1}throw Error(i(435,l.tag))}return Ed(t,u,p),wd(),!1}if(Xe)return a=Mn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,u!==xf&&(t=Error(i(422),{cause:u}),Ol(Tn(t,l)))):(u!==xf&&(a=Error(i(423),{cause:u}),Ol(Tn(a,l))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=Tn(u,l),p=Zf(t.stateNode,u,p),_f(t,p),gt!==4&&(gt=2)),!1;var v=Error(i(520),{cause:u});if(v=Tn(v,l),to===null?to=[v]:to.push(v),gt!==4&&(gt=2),a===null)return!0;u=Tn(u,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,t=p&-p,l.lanes|=t,t=Zf(l.stateNode,u,t),_f(l,t),!1;case 1:if(a=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(na===null||!na.has(v))))return l.flags|=65536,p&=-p,l.lanes|=p,p=Uy(p),Hy(p,t,l,u),_f(l,p),!1}l=l.return}while(l!==null);return!1}var Fy=Error(i(461)),Nt=!1;function Lt(t,a,l,u){a.child=t===null?jy(a,null,l,u):Ti(a,t.child,l,u)}function qy(t,a,l,u,p){l=l.render;var v=a.ref;if("ref"in u){var S={};for(var R in u)R!=="ref"&&(S[R]=u[R])}else S=u;return Oa(a),u=Of(t,a,l,S,v,p),R=Lf(),t!==null&&!Nt?(zf(t,a,p),_r(t,a,p)):(Xe&&R&&yf(a),a.flags|=1,Lt(t,a,u,p),a.child)}function Vy(t,a,l,u,p){if(t===null){var v=l.type;return typeof v=="function"&&!pf(v)&&v.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=v,$y(t,a,v,u,p)):(t=Cs(l.type,null,u,a,a.mode,p),t.ref=a.ref,t.return=a,a.child=t)}if(v=t.child,!id(t,p)){var S=v.memoizedProps;if(l=l.compare,l=l!==null?l:Nl,l(S,u)&&t.ref===a.ref)return _r(t,a,p)}return a.flags|=1,t=Sr(v,u),t.ref=a.ref,t.return=a,a.child=t}function $y(t,a,l,u,p){if(t!==null){var v=t.memoizedProps;if(Nl(v,u)&&t.ref===a.ref)if(Nt=!1,a.pendingProps=u=v,id(t,p))(t.flags&131072)!==0&&(Nt=!0);else return a.lanes=t.lanes,_r(t,a,p)}return Wf(t,a,l,u,p)}function Gy(t,a,l){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|l:l,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 Yy(t,a,u,l)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ns(a,v!==null?v.cachePool:null),v!==null?$g(a,v):Mf(),Dy(a);else return a.lanes=a.childLanes=536870912,Yy(t,a,v!==null?v.baseLanes|l:l,l)}else v!==null?(Ns(a,v.cachePool),$g(a,v),Qr(),a.memoizedState=null):(t!==null&&Ns(a,null),Mf(),Qr());return Lt(t,a,p,l),a.child}function Yy(t,a,l,u){var p=Cf();return p=p===null?null:{parent:At._currentValue,pool:p},a.memoizedState={baseLanes:l,cachePool:p},t!==null&&Ns(a,null),Mf(),Dy(a),t!==null&&Ll(t,a,u,!0),null}function Ys(t,a){var l=a.ref;if(l===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(t===null||t.ref!==l)&&(a.flags|=4194816)}}function Wf(t,a,l,u,p){return Oa(a),l=Of(t,a,l,u,void 0,p),u=Lf(),t!==null&&!Nt?(zf(t,a,p),_r(t,a,p)):(Xe&&u&&yf(a),a.flags|=1,Lt(t,a,l,p),a.child)}function Ky(t,a,l,u,p,v){return Oa(a),a.updateQueue=null,l=Yg(a,u,l,p),Gg(t),u=Lf(),t!==null&&!Nt?(zf(t,a,v),_r(t,a,v)):(Xe&&u&&yf(a),a.flags|=1,Lt(t,a,l,v),a.child)}function Xy(t,a,l,u,p){if(Oa(a),a.stateNode===null){var v=yi,S=l.contextType;typeof S=="object"&&S!==null&&(v=Ut(S)),v=new l(u,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Qf,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=u,v.state=a.memoizedState,v.refs={},Tf(a),S=l.contextType,v.context=typeof S=="object"&&S!==null?Ut(S):yi,v.state=a.memoizedState,S=l.getDerivedStateFromProps,typeof S=="function"&&(Xf(a,l,S,u),v.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(S=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),S!==v.state&&Qf.enqueueReplaceState(v,v.state,null),Fl(a,u,v,p),Hl(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(t===null){v=a.stateNode;var R=a.memoizedProps,D=Pa(l,R);v.props=D;var F=v.context,te=l.contextType;S=yi,typeof te=="object"&&te!==null&&(S=Ut(te));var ie=l.getDerivedStateFromProps;te=typeof ie=="function"||typeof v.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,te||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R||F!==S)&&Ly(a,v,u,S),$r=!1;var V=a.memoizedState;v.state=V,Fl(a,u,v,p),Hl(),F=a.memoizedState,R||V!==F||$r?(typeof ie=="function"&&(Xf(a,l,ie,u),F=a.memoizedState),(D=$r||Oy(a,l,D,u,V,F,S))?(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=F),v.props=u,v.state=F,v.context=S,u=D):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{v=a.stateNode,Rf(t,a),S=a.memoizedProps,te=Pa(l,S),v.props=te,ie=a.pendingProps,V=v.context,F=l.contextType,D=yi,typeof F=="object"&&F!==null&&(D=Ut(F)),R=l.getDerivedStateFromProps,(F=typeof R=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==ie||V!==D)&&Ly(a,v,u,D),$r=!1,V=a.memoizedState,v.state=V,Fl(a,u,v,p),Hl();var Y=a.memoizedState;S!==ie||V!==Y||$r||t!==null&&t.dependencies!==null&&Rs(t.dependencies)?(typeof R=="function"&&(Xf(a,l,R,u),Y=a.memoizedState),(te=$r||Oy(a,l,te,u,V,Y,D)||t!==null&&t.dependencies!==null&&Rs(t.dependencies))?(F||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(u,Y,D),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(u,Y,D)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=Y),v.props=u,v.state=Y,v.context=D,u=te):(typeof v.componentDidUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&V===t.memoizedState||(a.flags|=1024),u=!1)}return v=u,Ys(t,a),u=(a.flags&128)!==0,v||u?(v=a.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,t!==null&&u?(a.child=Ti(a,t.child,null,p),a.child=Ti(a,null,l,p)):Lt(t,a,l,p),a.memoizedState=v.state,t=a.child):t=_r(t,a,p),t}function Qy(t,a,l,u){return Dl(),a.flags|=256,Lt(t,a,l,u),a.child}var Jf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ed(t){return{baseLanes:t,cachePool:Pg()}}function td(t,a,l){return t=t!==null?t.childLanes&~l:0,a&&(t|=jn),t}function Zy(t,a,l){var u=a.pendingProps,p=!1,v=(a.flags&128)!==0,S;if((S=v)||(S=t!==null&&t.memoizedState===null?!1:(Tt.current&2)!==0),S&&(p=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,t===null){if(Xe){if(p?Xr(a):Qr(),Xe){var R=mt,D;if(D=R){e:{for(D=R,R=er;D.nodeType!==8;){if(!R){R=null;break e}if(D=Fn(D.nextSibling),D===null){R=null;break e}}R=D}R!==null?(a.memoizedState={dehydrated:R,treeContext:_a!==null?{id:Er,overflow:kr}:null,retryLane:536870912,hydrationErrors:null},D=hn(18,null,null,0),D.stateNode=R,D.return=a,a.child=D,Qt=a,mt=null,D=!0):D=!1}D||ja(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return Id(R)?a.lanes=32:a.lanes=536870912,null;Rr(a)}return R=u.children,u=u.fallback,p?(Qr(),p=a.mode,R=Ks({mode:"hidden",children:R},p),u=Ra(u,p,l,null),R.return=a,u.return=a,R.sibling=u,a.child=R,p=a.child,p.memoizedState=ed(l),p.childLanes=td(t,S,l),a.memoizedState=Jf,u):(Xr(a),nd(a,R))}if(D=t.memoizedState,D!==null&&(R=D.dehydrated,R!==null)){if(v)a.flags&256?(Xr(a),a.flags&=-257,a=rd(t,a,l)):a.memoizedState!==null?(Qr(),a.child=t.child,a.flags|=128,a=null):(Qr(),p=u.fallback,R=a.mode,u=Ks({mode:"visible",children:u.children},R),p=Ra(p,R,l,null),p.flags|=2,u.return=a,p.return=a,u.sibling=p,a.child=u,Ti(a,t.child,null,l),u=a.child,u.memoizedState=ed(l),u.childLanes=td(t,S,l),a.memoizedState=Jf,a=p);else if(Xr(a),Id(R)){if(S=R.nextSibling&&R.nextSibling.dataset,S)var F=S.dgst;S=F,u=Error(i(419)),u.stack="",u.digest=S,Ol({value:u,source:null,stack:null}),a=rd(t,a,l)}else if(Nt||Ll(t,a,l,!1),S=(l&t.childLanes)!==0,Nt||S){if(S=st,S!==null&&(u=l&-l,u=(u&42)!==0?1:Dt(u),u=(u&(S.suspendedLanes|l))!==0?0:u,u!==0&&u!==D.retryLane))throw D.retryLane=u,gi(t,u),vn(S,t,u),Fy;R.data==="$?"||wd(),a=rd(t,a,l)}else R.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=D.treeContext,mt=Fn(R.nextSibling),Qt=a,Xe=!0,Ma=null,er=!1,t!==null&&(_n[Nn++]=Er,_n[Nn++]=kr,_n[Nn++]=_a,Er=t.id,kr=t.overflow,_a=a),a=nd(a,u.children),a.flags|=4096);return a}return p?(Qr(),p=u.fallback,R=a.mode,D=t.child,F=D.sibling,u=Sr(D,{mode:"hidden",children:u.children}),u.subtreeFlags=D.subtreeFlags&65011712,F!==null?p=Sr(F,p):(p=Ra(p,R,l,null),p.flags|=2),p.return=a,u.return=a,u.sibling=p,a.child=u,u=p,p=a.child,R=t.child.memoizedState,R===null?R=ed(l):(D=R.cachePool,D!==null?(F=At._currentValue,D=D.parent!==F?{parent:F,pool:F}:D):D=Pg(),R={baseLanes:R.baseLanes|l,cachePool:D}),p.memoizedState=R,p.childLanes=td(t,S,l),a.memoizedState=Jf,u):(Xr(a),l=t.child,t=l.sibling,l=Sr(l,{mode:"visible",children:u.children}),l.return=a,l.sibling=null,t!==null&&(S=a.deletions,S===null?(a.deletions=[t],a.flags|=16):S.push(t)),a.child=l,a.memoizedState=null,l)}function nd(t,a){return a=Ks({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function Ks(t,a){return t=hn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function rd(t,a,l){return Ti(a,t.child,null,l),t=nd(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function Wy(t,a,l){t.lanes|=a;var u=t.alternate;u!==null&&(u.lanes|=a),wf(t.return,a,l)}function ad(t,a,l,u,p){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=l,v.tailMode=p)}function Jy(t,a,l){var u=a.pendingProps,p=u.revealOrder,v=u.tail;if(Lt(t,a,u.children,l),u=Tt.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&&Wy(t,l,a);else if(t.tag===19)Wy(t,l,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(Tt,u),p){case"forwards":for(l=a.child,p=null;l!==null;)t=l.alternate,t!==null&&Vs(t)===null&&(p=l),l=l.sibling;l=p,l===null?(p=a.child,a.child=null):(p=l.sibling,l.sibling=null),ad(a,!1,p,l,v);break;case"backwards":for(l=null,p=a.child,a.child=null;p!==null;){if(t=p.alternate,t!==null&&Vs(t)===null){a.child=p;break}t=p.sibling,p.sibling=l,l=p,p=t}ad(a,!0,l,null,v);break;case"together":ad(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function _r(t,a,l){if(t!==null&&(a.dependencies=t.dependencies),ta|=a.lanes,(l&a.childLanes)===0)if(t!==null){if(Ll(t,a,l,!1),(l&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,l=Sr(t,t.pendingProps),a.child=l,l.return=a;t.sibling!==null;)t=t.sibling,l=l.sibling=Sr(t,t.pendingProps),l.return=a;l.sibling=null}return a.child}function id(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&Rs(t)))}function P2(t,a,l){switch(a.tag){case 3:De(a,a.stateNode.containerInfo),Vr(a,At,t.memoizedState.cache),Dl();break;case 27:case 5:Ze(a);break;case 4:De(a,a.stateNode.containerInfo);break;case 10:Vr(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(Xr(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Zy(t,a,l):(Xr(a),t=_r(t,a,l),t!==null?t.sibling:null);Xr(a);break;case 19:var p=(t.flags&128)!==0;if(u=(l&a.childLanes)!==0,u||(Ll(t,a,l,!1),u=(l&a.childLanes)!==0),p){if(u)return Jy(t,a,l);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),M(Tt,Tt.current),u)break;return null;case 22:case 23:return a.lanes=0,Gy(t,a,l);case 24:Vr(a,At,t.memoizedState.cache)}return _r(t,a,l)}function ev(t,a,l){if(t!==null)if(t.memoizedProps!==a.pendingProps)Nt=!0;else{if(!id(t,l)&&(a.flags&128)===0)return Nt=!1,P2(t,a,l);Nt=(t.flags&131072)!==0}else Nt=!1,Xe&&(a.flags&1048576)!==0&&Ng(a,Ts,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")pf(u)?(t=Pa(u,t),a.tag=1,a=Xy(null,a,u,t,l)):(a.tag=0,a=Wf(null,a,u,t,l));else{if(u!=null){if(p=u.$$typeof,p===j){a.tag=11,a=qy(null,a,u,t,l);break e}else if(p===$){a.tag=14,a=Vy(null,a,u,t,l);break e}}throw a=q(u)||u,Error(i(306,a,""))}}return a;case 0:return Wf(t,a,a.type,a.pendingProps,l);case 1:return u=a.type,p=Pa(u,a.pendingProps),Xy(t,a,u,p,l);case 3:e:{if(De(a,a.stateNode.containerInfo),t===null)throw Error(i(387));u=a.pendingProps;var v=a.memoizedState;p=v.element,Rf(t,a),Fl(a,u,null,l);var S=a.memoizedState;if(u=S.cache,Vr(a,At,u),u!==v.cache&&Sf(a,[At],l,!0),Hl(),u=S.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=Qy(t,a,u,l);break e}else if(u!==p){p=Tn(Error(i(424)),a),Ol(p),a=Qy(t,a,u,l);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(mt=Fn(t.firstChild),Qt=a,Xe=!0,Ma=null,er=!0,l=jy(a,null,u,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Dl(),u===p){a=_r(t,a,l);break e}Lt(t,a,u,l)}a=a.child}return a;case 26:return Ys(t,a),t===null?(l=ax(a.type,null,a.pendingProps,null))?a.memoizedState=l:Xe||(l=a.type,t=a.pendingProps,u=su(de.current).createElement(l),u[ot]=a,u[Ke]=t,Pt(u,l,t),_t(u),a.stateNode=u):a.memoizedState=ax(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Ze(a),t===null&&Xe&&(u=a.stateNode=tx(a.type,a.pendingProps,de.current),Qt=a,er=!0,p=mt,ia(a.type)?(Bd=p,mt=Fn(u.firstChild)):mt=p),Lt(t,a,a.pendingProps.children,l),Ys(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Xe&&((p=u=mt)&&(u=fA(u,a.type,a.pendingProps,er),u!==null?(a.stateNode=u,Qt=a,mt=Fn(u.firstChild),er=!1,p=!0):p=!1),p||ja(a)),Ze(a),p=a.type,v=a.pendingProps,S=t!==null?t.memoizedProps:null,u=v.children,Ld(p,v)?u=null:S!==null&&Ld(p,S)&&(a.flags|=32),a.memoizedState!==null&&(p=Of(t,a,_2,null,null,l),co._currentValue=p),Ys(t,a),Lt(t,a,u,l),a.child;case 6:return t===null&&Xe&&((t=l=mt)&&(l=dA(l,a.pendingProps,er),l!==null?(a.stateNode=l,Qt=a,mt=null,t=!0):t=!1),t||ja(a)),null;case 13:return Zy(t,a,l);case 4:return De(a,a.stateNode.containerInfo),u=a.pendingProps,t===null?a.child=Ti(a,null,u,l):Lt(t,a,u,l),a.child;case 11:return qy(t,a,a.type,a.pendingProps,l);case 7:return Lt(t,a,a.pendingProps,l),a.child;case 8:return Lt(t,a,a.pendingProps.children,l),a.child;case 12:return Lt(t,a,a.pendingProps.children,l),a.child;case 10:return u=a.pendingProps,Vr(a,a.type,u.value),Lt(t,a,u.children,l),a.child;case 9:return p=a.type._context,u=a.pendingProps.children,Oa(a),p=Ut(p),u=u(p),a.flags|=1,Lt(t,a,u,l),a.child;case 14:return Vy(t,a,a.type,a.pendingProps,l);case 15:return $y(t,a,a.type,a.pendingProps,l);case 19:return Jy(t,a,l);case 31:return u=a.pendingProps,l=a.mode,u={mode:u.mode,children:u.children},t===null?(l=Ks(u,l),l.ref=a.ref,a.child=l,l.return=a,a=l):(l=Sr(t.child,u),l.ref=a.ref,a.child=l,l.return=a,a=l),a;case 22:return Gy(t,a,l);case 24:return Oa(a),u=Ut(At),t===null?(p=Cf(),p===null&&(p=st,v=Ef(),p.pooledCache=v,v.refCount++,v!==null&&(p.pooledCacheLanes|=l),p=v),a.memoizedState={parent:u,cache:p},Tf(a),Vr(a,At,p)):((t.lanes&l)!==0&&(Rf(t,a),Fl(a,null,null,l),Hl()),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),Vr(a,At,u)):(u=v.cache,Vr(a,At,u),u!==p.cache&&Sf(a,[At],l,!0))),Lt(t,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Nr(t){t.flags|=4}function tv(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ux(a)){if(a=Mn.current,a!==null&&((qe&4194048)===qe?tr!==null:(qe&62914560)!==qe&&(qe&536870912)===0||a!==tr))throw Bl=Af,Ig;t.flags|=8192}}function Xs(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Z():536870912,t.lanes|=a,Mi|=a)}function Xl(t,a){if(!Xe)switch(t.tailMode){case"hidden":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function ht(t){var a=t.alternate!==null&&t.alternate.child===t.child,l=0,u=0;if(a)for(var p=t.child;p!==null;)l|=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;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=l,a}function I2(t,a,l){var u=a.pendingProps;switch(vf(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(a),null;case 1:return ht(a),null;case 3:return l=a.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Ar(At),lt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(jl(a)?Nr(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Dg())),ht(a),null;case 26:return l=a.memoizedState,t===null?(Nr(a),l!==null?(ht(a),tv(a,l)):(ht(a),a.flags&=-16777217)):l?l!==t.memoizedState?(Nr(a),ht(a),tv(a,l)):(ht(a),a.flags&=-16777217):(t.memoizedProps!==u&&Nr(a),ht(a),a.flags&=-16777217),null;case 27:dt(a),l=de.current;var p=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Nr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return ht(a),null}t=fe.current,jl(a)?Mg(a):(t=tx(p,u,l),a.stateNode=t,Nr(a))}return ht(a),null;case 5:if(dt(a),l=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==u&&Nr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return ht(a),null}if(t=fe.current,jl(a))Mg(a);else{switch(p=su(de.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",l);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(l,{is:u.is}):p.createElement(l)}}t[ot]=a,t[Ke]=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(Pt(t,l,u),l){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Nr(a)}}return ht(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==u&&Nr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(t=de.current,jl(a)){if(t=a.stateNode,l=a.memoizedProps,u=null,p=Qt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[ot]=a,t=!!(t.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Kv(t.nodeValue,l)),t||ja(a)}else t=su(t).createTextNode(u),t[ot]=a,a.stateNode=t}return ht(a),null;case 13:if(u=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=jl(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[ot]=a}else Dl(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ht(a),p=!1}else p=Dg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(Rr(a),a):(Rr(a),null)}if(Rr(a),(a.flags&128)!==0)return a.lanes=l,a;if(l=u!==null,t=t!==null&&t.memoizedState!==null,l){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 l!==t&&l&&(a.child.flags|=8192),Xs(a,a.updateQueue),ht(a),null;case 4:return lt(),t===null&&Nd(a.stateNode.containerInfo),ht(a),null;case 10:return Ar(a.type),ht(a),null;case 19:if(oe(Tt),p=a.memoizedState,p===null)return ht(a),null;if(u=(a.flags&128)!==0,v=p.rendering,v===null)if(u)Xl(p,!1);else{if(gt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(v=Vs(t),v!==null){for(a.flags|=128,Xl(p,!1),t=v.updateQueue,a.updateQueue=t,Xs(a,t),a.subtreeFlags=0,t=l,l=a.child;l!==null;)_g(l,t),l=l.sibling;return M(Tt,Tt.current&1|2),a.child}t=t.sibling}p.tail!==null&&Ct()>Ws&&(a.flags|=128,u=!0,Xl(p,!1),a.lanes=4194304)}else{if(!u)if(t=Vs(v),t!==null){if(a.flags|=128,u=!0,t=t.updateQueue,a.updateQueue=t,Xs(a,t),Xl(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Xe)return ht(a),null}else 2*Ct()-p.renderingStartTime>Ws&&l!==536870912&&(a.flags|=128,u=!0,Xl(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=Ct(),a.sibling=null,t=Tt.current,M(Tt,u?t&1|2:t&1),a):(ht(a),null);case 22:case 23:return Rr(a),jf(),u=a.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(l&536870912)!==0&&(a.flags&128)===0&&(ht(a),a.subtreeFlags&6&&(a.flags|=8192)):ht(a),l=a.updateQueue,l!==null&&Xs(a,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==l&&(a.flags|=2048),t!==null&&oe(La),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Ar(At),ht(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function B2(t,a){switch(vf(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Ar(At),lt(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return dt(a),null;case 13:if(Rr(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Dl()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return oe(Tt),null;case 4:return lt(),null;case 10:return Ar(a.type),null;case 22:case 23:return Rr(a),jf(),t!==null&&oe(La),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Ar(At),null;case 25:return null;default:return null}}function nv(t,a){switch(vf(a),a.tag){case 3:Ar(At),lt();break;case 26:case 27:case 5:dt(a);break;case 4:lt();break;case 13:Rr(a);break;case 19:oe(Tt);break;case 10:Ar(a.type);break;case 22:case 23:Rr(a),jf(),t!==null&&oe(La);break;case 24:Ar(At)}}function Ql(t,a){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var p=u.next;l=p;do{if((l.tag&t)===t){u=void 0;var v=l.create,S=l.inst;u=v(),S.destroy=u}l=l.next}while(l!==p)}}catch(R){at(a,a.return,R)}}function Zr(t,a,l){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 S=u.inst,R=S.destroy;if(R!==void 0){S.destroy=void 0,p=a;var D=l,F=R;try{F()}catch(te){at(p,D,te)}}}u=u.next}while(u!==v)}}catch(te){at(a,a.return,te)}}function rv(t){var a=t.updateQueue;if(a!==null){var l=t.stateNode;try{Vg(a,l)}catch(u){at(t,t.return,u)}}}function av(t,a,l){l.props=Pa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(u){at(t,a,u)}}function Zl(t,a){try{var l=t.ref;if(l!==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 l=="function"?t.refCleanup=l(u):l.current=u}}catch(p){at(t,a,p)}}function nr(t,a){var l=t.ref,u=t.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(p){at(t,a,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(p){at(t,a,p)}else l.current=null}function iv(t){var a=t.type,l=t.memoizedProps,u=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(p){at(t,t.return,p)}}function ld(t,a,l){try{var u=t.stateNode;lA(u,t.type,l,a),u[Ke]=a}catch(p){at(t,t.return,p)}}function lv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ia(t.type)||t.tag===4}function od(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||lv(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&&ia(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 sd(t,a,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(t),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=ou));else if(u!==4&&(u===27&&ia(t.type)&&(l=t.stateNode,a=null),t=t.child,t!==null))for(sd(t,a,l),t=t.sibling;t!==null;)sd(t,a,l),t=t.sibling}function Qs(t,a,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,a?l.insertBefore(t,a):l.appendChild(t);else if(u!==4&&(u===27&&ia(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Qs(t,a,l),t=t.sibling;t!==null;)Qs(t,a,l),t=t.sibling}function ov(t){var a=t.stateNode,l=t.memoizedProps;try{for(var u=t.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Pt(a,u,l),a[ot]=t,a[Ke]=l}catch(v){at(t,t.return,v)}}var Mr=!1,xt=!1,ud=!1,sv=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function U2(t,a){if(t=t.containerInfo,Dd=pu,t=xg(t),of(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var S=0,R=-1,D=-1,F=0,te=0,ie=t,V=null;t:for(;;){for(var Y;ie!==l||p!==0&&ie.nodeType!==3||(R=S+p),ie!==v||u!==0&&ie.nodeType!==3||(D=S+u),ie.nodeType===3&&(S+=ie.nodeValue.length),(Y=ie.firstChild)!==null;)V=ie,ie=Y;for(;;){if(ie===t)break t;if(V===l&&++F===p&&(R=S),V===v&&++te===u&&(D=S),(Y=ie.nextSibling)!==null)break;ie=V,V=ie.parentNode}ie=Y}l=R===-1||D===-1?null:{start:R,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Od={focusedElem:t,selectionRange:l},pu=!1,Mt=a;Mt!==null;)if(a=Mt,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,Mt=t;else for(;Mt!==null;){switch(a=Mt,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,l=a,p=v.memoizedProps,v=v.memoizedState,u=l.stateNode;try{var je=Pa(l.type,p,l.elementType===l.type);t=u.getSnapshotBeforeUpdate(je,v),u.__reactInternalSnapshotBeforeUpdate=t}catch(Re){at(l,l.return,Re)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,l=t.nodeType,l===9)Pd(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Pd(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,Mt=t;break}Mt=a.return}}function uv(t,a,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Wr(t,l),u&4&&Ql(5,l);break;case 1:if(Wr(t,l),u&4)if(t=l.stateNode,a===null)try{t.componentDidMount()}catch(S){at(l,l.return,S)}else{var p=Pa(l.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(p,a,t.__reactInternalSnapshotBeforeUpdate)}catch(S){at(l,l.return,S)}}u&64&&rv(l),u&512&&Zl(l,l.return);break;case 3:if(Wr(t,l),u&64&&(t=l.updateQueue,t!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Vg(t,a)}catch(S){at(l,l.return,S)}}break;case 27:a===null&&u&4&&ov(l);case 26:case 5:Wr(t,l),a===null&&u&4&&iv(l),u&512&&Zl(l,l.return);break;case 12:Wr(t,l);break;case 13:Wr(t,l),u&4&&dv(t,l),u&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=X2.bind(null,l),hA(t,l))));break;case 22:if(u=l.memoizedState!==null||Mr,!u){a=a!==null&&a.memoizedState!==null||xt,p=Mr;var v=xt;Mr=u,(xt=a)&&!v?Jr(t,l,(l.subtreeFlags&8772)!==0):Wr(t,l),Mr=p,xt=v}break;case 30:break;default:Wr(t,l)}}function cv(t){var a=t.alternate;a!==null&&(t.alternate=null,cv(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&fn(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 ct=null,rn=!1;function jr(t,a,l){for(l=l.child;l!==null;)fv(t,a,l),l=l.sibling}function fv(t,a,l){if(se&&typeof se.onCommitFiberUnmount=="function")try{se.onCommitFiberUnmount(J,l)}catch{}switch(l.tag){case 26:xt||nr(l,a),jr(t,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:xt||nr(l,a);var u=ct,p=rn;ia(l.type)&&(ct=l.stateNode,rn=!1),jr(t,a,l),lo(l.stateNode),ct=u,rn=p;break;case 5:xt||nr(l,a);case 6:if(u=ct,p=rn,ct=null,jr(t,a,l),ct=u,rn=p,ct!==null)if(rn)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(l.stateNode)}catch(v){at(l,a,v)}else try{ct.removeChild(l.stateNode)}catch(v){at(l,a,v)}break;case 18:ct!==null&&(rn?(t=ct,Jv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),mo(t)):Jv(ct,l.stateNode));break;case 4:u=ct,p=rn,ct=l.stateNode.containerInfo,rn=!0,jr(t,a,l),ct=u,rn=p;break;case 0:case 11:case 14:case 15:xt||Zr(2,l,a),xt||Zr(4,l,a),jr(t,a,l);break;case 1:xt||(nr(l,a),u=l.stateNode,typeof u.componentWillUnmount=="function"&&av(l,a,u)),jr(t,a,l);break;case 21:jr(t,a,l);break;case 22:xt=(u=xt)||l.memoizedState!==null,jr(t,a,l),xt=u;break;default:jr(t,a,l)}}function dv(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{mo(t)}catch(l){at(a,a.return,l)}}function H2(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new sv),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new sv),a;default:throw Error(i(435,t.tag))}}function cd(t,a){var l=H2(t);a.forEach(function(u){var p=Q2.bind(null,t,u);l.has(u)||(l.add(u),u.then(p,p))})}function pn(t,a){var l=a.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u],v=t,S=a,R=S;e:for(;R!==null;){switch(R.tag){case 27:if(ia(R.type)){ct=R.stateNode,rn=!1;break e}break;case 5:ct=R.stateNode,rn=!1;break e;case 3:case 4:ct=R.stateNode.containerInfo,rn=!0;break e}R=R.return}if(ct===null)throw Error(i(160));fv(v,S,p),ct=null,rn=!1,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)hv(a,t),a=a.sibling}var Hn=null;function hv(t,a){var l=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:pn(a,t),mn(t),u&4&&(Zr(3,t,t.return),Ql(3,t),Zr(5,t,t.return));break;case 1:pn(a,t),mn(t),u&512&&(xt||l===null||nr(l,l.return)),u&64&&Mr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var p=Hn;if(pn(a,t),mn(t),u&512&&(xt||l===null||nr(l,l.return)),u&4){var v=l!==null?l.memoizedState:null;if(u=t.memoizedState,l===null)if(u===null)if(t.stateNode===null){e:{u=t.type,l=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":v=p.getElementsByTagName("title")[0],(!v||v[cn]||v[ot]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=p.createElement(u),p.head.insertBefore(v,p.querySelector("head > title"))),Pt(v,u,l),v[ot]=t,_t(v),u=v;break e;case"link":var S=ox("link","href",p).get(u+(l.href||""));if(S){for(var R=0;R<S.length;R++)if(v=S[R],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){S.splice(R,1);break t}}v=p.createElement(u),Pt(v,u,l),p.head.appendChild(v);break;case"meta":if(S=ox("meta","content",p).get(u+(l.content||""))){for(R=0;R<S.length;R++)if(v=S[R],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){S.splice(R,1);break t}}v=p.createElement(u),Pt(v,u,l),p.head.appendChild(v);break;default:throw Error(i(468,u))}v[ot]=t,_t(v),u=v}t.stateNode=u}else sx(p,t.type,t.stateNode);else t.stateNode=lx(p,u,t.memoizedProps);else v!==u?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,u===null?sx(p,t.type,t.stateNode):lx(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&ld(t,t.memoizedProps,l.memoizedProps)}break;case 27:pn(a,t),mn(t),u&512&&(xt||l===null||nr(l,l.return)),l!==null&&u&4&&ld(t,t.memoizedProps,l.memoizedProps);break;case 5:if(pn(a,t),mn(t),u&512&&(xt||l===null||nr(l,l.return)),t.flags&32){p=t.stateNode;try{ui(p,"")}catch(Y){at(t,t.return,Y)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,ld(t,p,l!==null?l.memoizedProps:p)),u&1024&&(ud=!0);break;case 6:if(pn(a,t),mn(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,l=t.stateNode;try{l.nodeValue=u}catch(Y){at(t,t.return,Y)}}break;case 3:if(fu=null,p=Hn,Hn=uu(a.containerInfo),pn(a,t),Hn=p,mn(t),u&4&&l!==null&&l.memoizedState.isDehydrated)try{mo(a.containerInfo)}catch(Y){at(t,t.return,Y)}ud&&(ud=!1,pv(t));break;case 4:u=Hn,Hn=uu(t.stateNode.containerInfo),pn(a,t),mn(t),Hn=u;break;case 12:pn(a,t),mn(t);break;case 13:pn(a,t),mn(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(gd=Ct()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,cd(t,u)));break;case 22:p=t.memoizedState!==null;var D=l!==null&&l.memoizedState!==null,F=Mr,te=xt;if(Mr=F||p,xt=te||D,pn(a,t),xt=te,Mr=F,mn(t),u&8192)e:for(a=t.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(l===null||D||Mr||xt||Ia(t)),l=null,a=t;;){if(a.tag===5||a.tag===26){if(l===null){D=l=a;try{if(v=D.stateNode,p)S=v.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{R=D.stateNode;var ie=D.memoizedProps.style,V=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;R.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(Y){at(D,D.return,Y)}}}else if(a.tag===6){if(l===null){D=a;try{D.stateNode.nodeValue=p?"":D.memoizedProps}catch(Y){at(D,D.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;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=t.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,cd(t,l))));break;case 19:pn(a,t),mn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,cd(t,u)));break;case 30:break;case 21:break;default:pn(a,t),mn(t)}}function mn(t){var a=t.flags;if(a&2){try{for(var l,u=t.return;u!==null;){if(lv(u)){l=u;break}u=u.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var p=l.stateNode,v=od(t);Qs(t,v,p);break;case 5:var S=l.stateNode;l.flags&32&&(ui(S,""),l.flags&=-33);var R=od(t);Qs(t,R,S);break;case 3:case 4:var D=l.stateNode.containerInfo,F=od(t);sd(t,F,D);break;default:throw Error(i(161))}}catch(te){at(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 Wr(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)uv(t,a.alternate,a),a=a.sibling}function Ia(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Zr(4,a,a.return),Ia(a);break;case 1:nr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&av(a,a.return,l),Ia(a);break;case 27:lo(a.stateNode);case 26:case 5:nr(a,a.return),Ia(a);break;case 22:a.memoizedState===null&&Ia(a);break;case 30:Ia(a);break;default:Ia(a)}t=t.sibling}}function Jr(t,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,p=t,v=a,S=v.flags;switch(v.tag){case 0:case 11:case 15:Jr(p,v,l),Ql(4,v);break;case 1:if(Jr(p,v,l),u=v,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(F){at(u,u.return,F)}if(u=v,p=u.updateQueue,p!==null){var R=u.stateNode;try{var D=p.shared.hiddenCallbacks;if(D!==null)for(p.shared.hiddenCallbacks=null,p=0;p<D.length;p++)qg(D[p],R)}catch(F){at(u,u.return,F)}}l&&S&64&&rv(v),Zl(v,v.return);break;case 27:ov(v);case 26:case 5:Jr(p,v,l),l&&u===null&&S&4&&iv(v),Zl(v,v.return);break;case 12:Jr(p,v,l);break;case 13:Jr(p,v,l),l&&S&4&&dv(p,v);break;case 22:v.memoizedState===null&&Jr(p,v,l),Zl(v,v.return);break;case 30:break;default:Jr(p,v,l)}a=a.sibling}}function fd(t,a){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&zl(l))}function dd(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&zl(t))}function rr(t,a,l,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)mv(t,a,l,u),a=a.sibling}function mv(t,a,l,u){var p=a.flags;switch(a.tag){case 0:case 11:case 15:rr(t,a,l,u),p&2048&&Ql(9,a);break;case 1:rr(t,a,l,u);break;case 3:rr(t,a,l,u),p&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&zl(t)));break;case 12:if(p&2048){rr(t,a,l,u),t=a.stateNode;try{var v=a.memoizedProps,S=v.id,R=v.onPostCommit;typeof R=="function"&&R(S,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){at(a,a.return,D)}}else rr(t,a,l,u);break;case 13:rr(t,a,l,u);break;case 23:break;case 22:v=a.stateNode,S=a.alternate,a.memoizedState!==null?v._visibility&2?rr(t,a,l,u):Wl(t,a):v._visibility&2?rr(t,a,l,u):(v._visibility|=2,Ri(t,a,l,u,(a.subtreeFlags&10256)!==0)),p&2048&&fd(S,a);break;case 24:rr(t,a,l,u),p&2048&&dd(a.alternate,a);break;default:rr(t,a,l,u)}}function Ri(t,a,l,u,p){for(p=p&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var v=t,S=a,R=l,D=u,F=S.flags;switch(S.tag){case 0:case 11:case 15:Ri(v,S,R,D,p),Ql(8,S);break;case 23:break;case 22:var te=S.stateNode;S.memoizedState!==null?te._visibility&2?Ri(v,S,R,D,p):Wl(v,S):(te._visibility|=2,Ri(v,S,R,D,p)),p&&F&2048&&fd(S.alternate,S);break;case 24:Ri(v,S,R,D,p),p&&F&2048&&dd(S.alternate,S);break;default:Ri(v,S,R,D,p)}a=a.sibling}}function Wl(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=t,u=a,p=u.flags;switch(u.tag){case 22:Wl(l,u),p&2048&&fd(u.alternate,u);break;case 24:Wl(l,u),p&2048&&dd(u.alternate,u);break;default:Wl(l,u)}a=a.sibling}}var Jl=8192;function _i(t){if(t.subtreeFlags&Jl)for(t=t.child;t!==null;)gv(t),t=t.sibling}function gv(t){switch(t.tag){case 26:_i(t),t.flags&Jl&&t.memoizedState!==null&&AA(Hn,t.memoizedState,t.memoizedProps);break;case 5:_i(t);break;case 3:case 4:var a=Hn;Hn=uu(t.stateNode.containerInfo),_i(t),Hn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Jl,Jl=16777216,_i(t),Jl=a):_i(t));break;default:_i(t)}}function yv(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 eo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Mt=u,xv(u,t)}yv(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vv(t),t=t.sibling}function vv(t){switch(t.tag){case 0:case 11:case 15:eo(t),t.flags&2048&&Zr(9,t,t.return);break;case 3:eo(t);break;case 12:eo(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Zs(t)):eo(t);break;default:eo(t)}}function Zs(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Mt=u,xv(u,t)}yv(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Zr(8,a,a.return),Zs(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Zs(a));break;default:Zs(a)}t=t.sibling}}function xv(t,a){for(;Mt!==null;){var l=Mt;switch(l.tag){case 0:case 11:case 15:Zr(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:zl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Mt=u;else e:for(l=t;Mt!==null;){u=Mt;var p=u.sibling,v=u.return;if(cv(u),u===l){Mt=null;break e}if(p!==null){p.return=v,Mt=p;break e}Mt=v}}}var F2={getCacheForType:function(t){var a=Ut(At),l=a.data.get(t);return l===void 0&&(l=t(),a.data.set(t,l)),l}},q2=typeof WeakMap=="function"?WeakMap:Map,Je=0,st=null,Be=null,qe=0,et=0,gn=null,ea=!1,Ni=!1,hd=!1,Dr=0,gt=0,ta=0,Ba=0,pd=0,jn=0,Mi=0,to=null,an=null,md=!1,gd=0,Ws=1/0,Js=null,na=null,zt=0,ra=null,ji=null,Di=0,yd=0,vd=null,bv=null,no=0,xd=null;function yn(){if((Je&2)!==0&&qe!==0)return qe&-qe;if(z.T!==null){var t=bi;return t!==0?t:Ad()}return Ye()}function wv(){jn===0&&(jn=(qe&536870912)===0||Xe?ni():536870912);var t=Mn.current;return t!==null&&(t.flags|=32),jn}function vn(t,a,l){(t===st&&(et===2||et===9)||t.cancelPendingCommit!==null)&&(Oi(t,0),aa(t,qe,jn,!1)),pe(t,l),((Je&2)===0||t!==st)&&(t===st&&((Je&2)===0&&(Ba|=l),gt===4&&aa(t,qe,jn,!1)),ar(t))}function Sv(t,a,l){if((Je&6)!==0)throw Error(i(327));var u=!l&&(a&124)===0&&(a&t.expiredLanes)===0||Bt(t,a),p=u?G2(t,a):Sd(t,a,!0),v=u;do{if(p===0){Ni&&!u&&aa(t,a,0,!1);break}else{if(l=t.current.alternate,v&&!V2(l)){p=Sd(t,a,!1),v=!1;continue}if(p===2){if(v=a,t.errorRecoveryDisabledLanes&v)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var R=t;p=to;var D=R.current.memoizedState.isDehydrated;if(D&&(Oi(R,S).flags|=256),S=Sd(R,S,!1),S!==2){if(hd&&!D){R.errorRecoveryDisabledLanes|=v,Ba|=v,p=4;break e}v=an,an=p,v!==null&&(an===null?an=v:an.push.apply(an,v))}p=S}if(v=!1,p!==2)continue}}if(p===1){Oi(t,0),aa(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:aa(u,a,jn,!ea);break e;case 2:an=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=gd+300-Ct(),10<p)){if(aa(u,a,jn,!ea),yt(u,0,!0)!==0)break e;u.timeoutHandle=Zv(Ev.bind(null,u,l,an,Js,md,a,jn,Ba,Mi,ea,v,2,-0,0),p);break e}Ev(u,l,an,Js,md,a,jn,Ba,Mi,ea,v,0,-0,0)}}break}while(!0);ar(t)}function Ev(t,a,l,u,p,v,S,R,D,F,te,ie,V,Y){if(t.timeoutHandle=-1,ie=a.subtreeFlags,(ie&8192||(ie&16785408)===16785408)&&(uo={stylesheets:null,count:0,unsuspend:CA},gv(a),ie=TA(),ie!==null)){t.cancelPendingCommit=ie(Nv.bind(null,t,a,v,l,u,p,S,R,D,te,1,V,Y)),aa(t,v,S,!F);return}Nv(t,a,v,l,u,p,S,R,D)}function V2(t){for(var a=t;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var p=l[u],v=p.getSnapshot;p=p.value;try{if(!dn(v(),p))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;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 aa(t,a,l,u){a&=~pd,a&=~Ba,t.suspendedLanes|=a,t.pingedLanes&=~a,u&&(t.warmLanes|=a),u=t.expirationTimes;for(var p=a;0<p;){var v=31-Ae(p),S=1<<v;u[v]=-1,p&=~S}l!==0&&Me(t,l,a)}function eu(){return(Je&6)===0?(ro(0),!1):!0}function bd(){if(Be!==null){if(et===0)var t=Be.return;else t=Be,Cr=Da=null,Pf(t),Ai=null,Yl=0,t=Be;for(;t!==null;)nv(t.alternate,t),t=t.return;Be=null}}function Oi(t,a){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,sA(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),bd(),st=t,Be=l=Sr(t.current,null),qe=a,et=0,gn=null,ea=!1,Ni=Bt(t,a),hd=!1,Mi=jn=pd=Ba=ta=gt=0,an=to=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 Dr=a,Ss(),l}function kv(t,a){ze=null,z.H=Hs,a===Il||a===Ms?(a=Hg(),et=3):a===Ig?(a=Hg(),et=4):et=a===Fy?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,gn=a,Be===null&&(gt=1,Gs(t,Tn(a,t.current)))}function Cv(){var t=z.H;return z.H=Hs,t===null?Hs:t}function Av(){var t=z.A;return z.A=F2,t}function wd(){gt=4,ea||(qe&4194048)!==qe&&Mn.current!==null||(Ni=!0),(ta&134217727)===0&&(Ba&134217727)===0||st===null||aa(st,qe,jn,!1)}function Sd(t,a,l){var u=Je;Je|=2;var p=Cv(),v=Av();(st!==t||qe!==a)&&(Js=null,Oi(t,a)),a=!1;var S=gt;e:do try{if(et!==0&&Be!==null){var R=Be,D=gn;switch(et){case 8:bd(),S=6;break e;case 3:case 2:case 9:case 6:Mn.current===null&&(a=!0);var F=et;if(et=0,gn=null,Li(t,R,D,F),l&&Ni){S=0;break e}break;default:F=et,et=0,gn=null,Li(t,R,D,F)}}$2(),S=gt;break}catch(te){kv(t,te)}while(!0);return a&&t.shellSuspendCounter++,Cr=Da=null,Je=u,z.H=p,z.A=v,Be===null&&(st=null,qe=0,Ss()),S}function $2(){for(;Be!==null;)Tv(Be)}function G2(t,a){var l=Je;Je|=2;var u=Cv(),p=Av();st!==t||qe!==a?(Js=null,Ws=Ct()+500,Oi(t,a)):Ni=Bt(t,a);e:do try{if(et!==0&&Be!==null){a=Be;var v=gn;t:switch(et){case 1:et=0,gn=null,Li(t,a,v,1);break;case 2:case 9:if(Bg(v)){et=0,gn=null,Rv(a);break}a=function(){et!==2&&et!==9||st!==t||(et=7),ar(t)},v.then(a,a);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:Bg(v)?(et=0,gn=null,Rv(a)):(et=0,gn=null,Li(t,a,v,7));break;case 5:var S=null;switch(Be.tag){case 26:S=Be.memoizedState;case 5:case 27:var R=Be;if(!S||ux(S)){et=0,gn=null;var D=R.sibling;if(D!==null)Be=D;else{var F=R.return;F!==null?(Be=F,tu(F)):Be=null}break t}}et=0,gn=null,Li(t,a,v,5);break;case 6:et=0,gn=null,Li(t,a,v,6);break;case 8:bd(),gt=6;break e;default:throw Error(i(462))}}Y2();break}catch(te){kv(t,te)}while(!0);return Cr=Da=null,z.H=u,z.A=p,Je=l,Be!==null?0:(st=null,qe=0,Ss(),gt)}function Y2(){for(;Be!==null&&!gr();)Tv(Be)}function Tv(t){var a=ev(t.alternate,t,Dr);t.memoizedProps=t.pendingProps,a===null?tu(t):Be=a}function Rv(t){var a=t,l=a.alternate;switch(a.tag){case 15:case 0:a=Ky(l,a,a.pendingProps,a.type,void 0,qe);break;case 11:a=Ky(l,a,a.pendingProps,a.type.render,a.ref,qe);break;case 5:Pf(a);default:nv(l,a),a=Be=_g(a,Dr),a=ev(l,a,Dr)}t.memoizedProps=t.pendingProps,a===null?tu(t):Be=a}function Li(t,a,l,u){Cr=Da=null,Pf(a),Ai=null,Yl=0;var p=a.return;try{if(z2(t,p,a,l,qe)){gt=1,Gs(t,Tn(l,t.current)),Be=null;return}}catch(v){if(p!==null)throw Be=p,v;gt=1,Gs(t,Tn(l,t.current)),Be=null;return}a.flags&32768?(Xe||u===1?t=!0:Ni||(qe&536870912)!==0?t=!1:(ea=t=!0,(u===2||u===9||u===3||u===6)&&(u=Mn.current,u!==null&&u.tag===13&&(u.flags|=16384))),_v(a,t)):tu(a)}function tu(t){var a=t;do{if((a.flags&32768)!==0){_v(a,ea);return}t=a.return;var l=I2(a.alternate,a,Dr);if(l!==null){Be=l;return}if(a=a.sibling,a!==null){Be=a;return}Be=a=t}while(a!==null);gt===0&&(gt=5)}function _v(t,a){do{var l=B2(t.alternate,t);if(l!==null){l.flags&=32767,Be=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(t=t.sibling,t!==null)){Be=t;return}Be=t=l}while(t!==null);gt=6,Be=null}function Nv(t,a,l,u,p,v,S,R,D){t.cancelPendingCommit=null;do nu();while(zt!==0);if((Je&6)!==0)throw Error(i(327));if(a!==null){if(a===t.current)throw Error(i(177));if(v=a.lanes|a.childLanes,v|=df,be(t,l,v,S,R,D),t===st&&(Be=st=null,qe=0),ji=a,ra=t,Di=l,yd=v,vd=p,bv=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Z2(Gt,function(){return Lv(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=z.T,z.T=null,p=K.p,K.p=2,S=Je,Je|=4;try{U2(t,a,l)}finally{Je=S,K.p=p,z.T=u}}zt=1,Mv(),jv(),Dv()}}function Mv(){if(zt===1){zt=0;var t=ra,a=ji,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var u=K.p;K.p=2;var p=Je;Je|=4;try{hv(a,t);var v=Od,S=xg(t.containerInfo),R=v.focusedElem,D=v.selectionRange;if(S!==R&&R&&R.ownerDocument&&vg(R.ownerDocument.documentElement,R)){if(D!==null&&of(R)){var F=D.start,te=D.end;if(te===void 0&&(te=F),"selectionStart"in R)R.selectionStart=F,R.selectionEnd=Math.min(te,R.value.length);else{var ie=R.ownerDocument||document,V=ie&&ie.defaultView||window;if(V.getSelection){var Y=V.getSelection(),je=R.textContent.length,Re=Math.min(D.start,je),rt=D.end===void 0?Re:Math.min(D.end,je);!Y.extend&&Re>rt&&(S=rt,rt=Re,Re=S);var B=yg(R,Re),I=yg(R,rt);if(B&&I&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var H=ie.createRange();H.setStart(B.node,B.offset),Y.removeAllRanges(),Re>rt?(Y.addRange(H),Y.extend(I.node,I.offset)):(H.setEnd(I.node,I.offset),Y.addRange(H))}}}}for(ie=[],Y=R;Y=Y.parentNode;)Y.nodeType===1&&ie.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ie.length;R++){var ne=ie[R];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}pu=!!Dd,Od=Dd=null}finally{Je=p,K.p=u,z.T=l}}t.current=a,zt=2}}function jv(){if(zt===2){zt=0;var t=ra,a=ji,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var u=K.p;K.p=2;var p=Je;Je|=4;try{uv(t,a.alternate,a)}finally{Je=p,K.p=u,z.T=l}}zt=3}}function Dv(){if(zt===4||zt===3){zt=0,Ja();var t=ra,a=ji,l=Di,u=bv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?zt=5:(zt=0,ji=ra=null,Ov(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(na=null),Fr(l),a=a.stateNode,se&&typeof se.onCommitFiberRoot=="function")try{se.onCommitFiberRoot(J,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=z.T,p=K.p,K.p=2,z.T=null;try{for(var v=t.onRecoverableError,S=0;S<u.length;S++){var R=u[S];v(R.value,{componentStack:R.stack})}}finally{z.T=a,K.p=p}}(Di&3)!==0&&nu(),ar(t),p=t.pendingLanes,(l&4194090)!==0&&(p&42)!==0?t===xd?no++:(no=0,xd=t):no=0,ro(0)}}function Ov(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,zl(a)))}function nu(t){return Mv(),jv(),Dv(),Lv()}function Lv(){if(zt!==5)return!1;var t=ra,a=yd;yd=0;var l=Fr(Di),u=z.T,p=K.p;try{K.p=32>l?32:l,z.T=null,l=vd,vd=null;var v=ra,S=Di;if(zt=0,ji=ra=null,Di=0,(Je&6)!==0)throw Error(i(331));var R=Je;if(Je|=4,vv(v.current),mv(v,v.current,S,l),Je=R,ro(0,!1),se&&typeof se.onPostCommitFiberRoot=="function")try{se.onPostCommitFiberRoot(J,v)}catch{}return!0}finally{K.p=p,z.T=u,Ov(t,a)}}function zv(t,a,l){a=Tn(l,a),a=Zf(t.stateNode,a,2),t=Yr(t,a,2),t!==null&&(pe(t,2),ar(t))}function at(t,a,l){if(t.tag===3)zv(t,t,l);else for(;a!==null;){if(a.tag===3){zv(a,t,l);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(na===null||!na.has(u))){t=Tn(l,t),l=Uy(2),u=Yr(a,l,2),u!==null&&(Hy(l,u,a,t),pe(u,2),ar(u));break}}a=a.return}}function Ed(t,a,l){var u=t.pingCache;if(u===null){u=t.pingCache=new q2;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(l)||(hd=!0,p.add(l),t=K2.bind(null,t,a,l),a.then(t,t))}function K2(t,a,l){var u=t.pingCache;u!==null&&u.delete(a),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,st===t&&(qe&l)===l&&(gt===4||gt===3&&(qe&62914560)===qe&&300>Ct()-gd?(Je&2)===0&&Oi(t,0):pd|=l,Mi===qe&&(Mi=0)),ar(t)}function Pv(t,a){a===0&&(a=Z()),t=gi(t,a),t!==null&&(pe(t,a),ar(t))}function X2(t){var a=t.memoizedState,l=0;a!==null&&(l=a.retryLane),Pv(t,l)}function Q2(t,a){var l=0;switch(t.tag){case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(l=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),Pv(t,l)}function Z2(t,a){return un(t,a)}var ru=null,zi=null,kd=!1,au=!1,Cd=!1,Ua=0;function ar(t){t!==zi&&t.next===null&&(zi===null?ru=zi=t:zi=zi.next=t),au=!0,kd||(kd=!0,J2())}function ro(t,a){if(!Cd&&au){Cd=!0;do for(var l=!1,u=ru;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var v=0;else{var S=u.suspendedLanes,R=u.pingedLanes;v=(1<<31-Ae(42|t)+1)-1,v&=p&~(S&~R),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,Hv(u,v))}else v=qe,v=yt(u,u===st?v:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(v&3)===0||Bt(u,v)||(l=!0,Hv(u,v));u=u.next}while(l);Cd=!1}}function W2(){Iv()}function Iv(){au=kd=!1;var t=0;Ua!==0&&(oA()&&(t=Ua),Ua=0);for(var a=Ct(),l=null,u=ru;u!==null;){var p=u.next,v=Bv(u,a);v===0?(u.next=null,l===null?ru=p:l.next=p,p===null&&(zi=l)):(l=u,(t!==0||(v&3)!==0)&&(au=!0)),u=p}ro(t)}function Bv(t,a){for(var l=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,v=t.pendingLanes&-62914561;0<v;){var S=31-Ae(v),R=1<<S,D=p[S];D===-1?((R&l)===0||(R&u)!==0)&&(p[S]=en(R,a)):D<=a&&(t.expiredLanes|=R),v&=~R}if(a=st,l=qe,l=yt(t,t===a?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,l===0||t===a&&(et===2||et===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&mr(u),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Bt(t,l)){if(a=l&-l,a===t.callbackPriority)return a;switch(u!==null&&mr(u),Fr(l)){case 2:case 8:l=Zn;break;case 32:l=Gt;break;case 268435456:l=Sa;break;default:l=Gt}return u=Uv.bind(null,t),l=un(l,u),t.callbackPriority=a,t.callbackNode=l,a}return u!==null&&u!==null&&mr(u),t.callbackPriority=2,t.callbackNode=null,2}function Uv(t,a){if(zt!==0&&zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(nu()&&t.callbackNode!==l)return null;var u=qe;return u=yt(t,t===st?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(Sv(t,u,a),Bv(t,Ct()),t.callbackNode!=null&&t.callbackNode===l?Uv.bind(null,t):null)}function Hv(t,a){if(nu())return null;Sv(t,a,!0)}function J2(){uA(function(){(Je&6)!==0?un(vr,W2):Iv()})}function Ad(){return Ua===0&&(Ua=ni()),Ua}function Fv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ms(""+t)}function qv(t,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,t.id&&l.setAttribute("form",t.id),a.parentNode.insertBefore(l,a),t=new FormData(t),l.parentNode.removeChild(l),t}function eA(t,a,l,u,p){if(a==="submit"&&l&&l.stateNode===p){var v=Fv((p[Ke]||null).action),S=u.submitter;S&&(a=(a=S[Ke]||null)?Fv(a.formAction):S.getAttribute("formAction"),a!==null&&(v=a,S=null));var R=new xs("action","action",null,u,p);t.push({event:R,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ua!==0){var D=S?qv(p,S):new FormData(p);Gf(l,{pending:!0,data:D,method:p.method,action:v},null,D)}}else typeof v=="function"&&(R.preventDefault(),D=S?qv(p,S):new FormData(p),Gf(l,{pending:!0,data:D,method:p.method,action:v},v,D))},currentTarget:p}]})}}for(var Td=0;Td<ff.length;Td++){var Rd=ff[Td],tA=Rd.toLowerCase(),nA=Rd[0].toUpperCase()+Rd.slice(1);Un(tA,"on"+nA)}Un(Sg,"onAnimationEnd"),Un(Eg,"onAnimationIteration"),Un(kg,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(x2,"onTransitionRun"),Un(b2,"onTransitionStart"),Un(w2,"onTransitionCancel"),Un(Cg,"onTransitionEnd"),li("onMouseEnter",["mouseout","mouseover"]),li("onMouseLeave",["mouseout","mouseover"]),li("onPointerEnter",["pointerout","pointerover"]),li("onPointerLeave",["pointerout","pointerover"]),ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ao="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(" "),rA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ao));function Vv(t,a){a=(a&4)!==0;for(var l=0;l<t.length;l++){var u=t[l],p=u.event;u=u.listeners;e:{var v=void 0;if(a)for(var S=u.length-1;0<=S;S--){var R=u[S],D=R.instance,F=R.currentTarget;if(R=R.listener,D!==v&&p.isPropagationStopped())break e;v=R,p.currentTarget=F;try{v(p)}catch(te){$s(te)}p.currentTarget=null,v=D}else for(S=0;S<u.length;S++){if(R=u[S],D=R.instance,F=R.currentTarget,R=R.listener,D!==v&&p.isPropagationStopped())break e;v=R,p.currentTarget=F;try{v(p)}catch(te){$s(te)}p.currentTarget=null,v=D}}}}function Ue(t,a){var l=a[Jn];l===void 0&&(l=a[Jn]=new Set);var u=t+"__bubble";l.has(u)||($v(a,t,2,!1),l.add(u))}function _d(t,a,l){var u=0;a&&(u|=4),$v(l,t,u,a)}var iu="_reactListening"+Math.random().toString(36).slice(2);function Nd(t){if(!t[iu]){t[iu]=!0,Im.forEach(function(l){l!=="selectionchange"&&(rA.has(l)||_d(l,!1,t),_d(l,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[iu]||(a[iu]=!0,_d("selectionchange",!1,a))}}function $v(t,a,l,u){switch(mx(a)){case 2:var p=NA;break;case 8:p=MA;break;default:p=Vd}l=p.bind(null,a,l,t),p=void 0,!Zc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(a,l,{capture:!0,passive:p}):t.addEventListener(a,l,!0):p!==void 0?t.addEventListener(a,l,{passive:p}):t.addEventListener(a,l,!1)}function Md(t,a,l,u,p){var v=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var R=u.stateNode.containerInfo;if(R===p)break;if(S===4)for(S=u.return;S!==null;){var D=S.tag;if((D===3||D===4)&&S.stateNode.containerInfo===p)return;S=S.return}for(;R!==null;){if(S=ri(R),S===null)return;if(D=S.tag,D===5||D===6||D===26||D===27){u=v=S;continue e}R=R.parentNode}}u=u.return}Wm(function(){var F=v,te=Xc(l),ie=[];e:{var V=Ag.get(t);if(V!==void 0){var Y=xs,je=t;switch(t){case"keypress":if(ys(l)===0)break e;case"keydown":case"keyup":Y=ZC;break;case"focusin":je="focus",Y=tf;break;case"focusout":je="blur",Y=tf;break;case"beforeblur":case"afterblur":Y=tf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=tg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=BC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=e2;break;case Sg:case Eg:case kg:Y=FC;break;case Cg:Y=n2;break;case"scroll":case"scrollend":Y=PC;break;case"wheel":Y=a2;break;case"copy":case"cut":case"paste":Y=VC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=rg;break;case"toggle":case"beforetoggle":Y=l2}var Re=(a&4)!==0,rt=!Re&&(t==="scroll"||t==="scrollend"),B=Re?V!==null?V+"Capture":null:V;Re=[];for(var I=F,H;I!==null;){var ne=I;if(H=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||H===null||B===null||(ne=El(I,B),ne!=null&&Re.push(io(I,ne,H))),rt)break;I=I.return}0<Re.length&&(V=new Y(V,je,null,l,te),ie.push({event:V,listeners:Re}))}}if((a&7)===0){e:{if(V=t==="mouseover"||t==="pointerover",Y=t==="mouseout"||t==="pointerout",V&&l!==Kc&&(je=l.relatedTarget||l.fromElement)&&(ri(je)||je[Xt]))break e;if((Y||V)&&(V=te.window===te?te:(V=te.ownerDocument)?V.defaultView||V.parentWindow:window,Y?(je=l.relatedTarget||l.toElement,Y=F,je=je?ri(je):null,je!==null&&(rt=s(je),Re=je.tag,je!==rt||Re!==5&&Re!==27&&Re!==6)&&(je=null)):(Y=null,je=F),Y!==je)){if(Re=tg,ne="onMouseLeave",B="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Re=rg,ne="onPointerLeave",B="onPointerEnter",I="pointer"),rt=Y==null?V:Sl(Y),H=je==null?V:Sl(je),V=new Re(ne,I+"leave",Y,l,te),V.target=rt,V.relatedTarget=H,ne=null,ri(te)===F&&(Re=new Re(B,I+"enter",je,l,te),Re.target=H,Re.relatedTarget=rt,ne=Re),rt=ne,Y&&je)t:{for(Re=Y,B=je,I=0,H=Re;H;H=Pi(H))I++;for(H=0,ne=B;ne;ne=Pi(ne))H++;for(;0<I-H;)Re=Pi(Re),I--;for(;0<H-I;)B=Pi(B),H--;for(;I--;){if(Re===B||B!==null&&Re===B.alternate)break t;Re=Pi(Re),B=Pi(B)}Re=null}else Re=null;Y!==null&&Gv(ie,V,Y,Re,!1),je!==null&&rt!==null&&Gv(ie,rt,je,Re,!0)}}e:{if(V=F?Sl(F):window,Y=V.nodeName&&V.nodeName.toLowerCase(),Y==="select"||Y==="input"&&V.type==="file")var ge=fg;else if(ug(V))if(dg)ge=g2;else{ge=p2;var Ie=h2}else Y=V.nodeName,!Y||Y.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?F&&Yc(F.elementType)&&(ge=fg):ge=m2;if(ge&&(ge=ge(t,F))){cg(ie,ge,l,te);break e}Ie&&Ie(t,V,F),t==="focusout"&&F&&V.type==="number"&&F.memoizedProps.value!=null&&Gc(V,"number",V.value)}switch(Ie=F?Sl(F):window,t){case"focusin":(ug(Ie)||Ie.contentEditable==="true")&&(hi=Ie,sf=F,Ml=null);break;case"focusout":Ml=sf=hi=null;break;case"mousedown":uf=!0;break;case"contextmenu":case"mouseup":case"dragend":uf=!1,bg(ie,l,te);break;case"selectionchange":if(v2)break;case"keydown":case"keyup":bg(ie,l,te)}var we;if(rf)e:{switch(t){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else di?og(t,l)&&(_e="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(_e="onCompositionStart");_e&&(ag&&l.locale!=="ko"&&(di||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&di&&(we=Jm()):(qr=te,Wc="value"in qr?qr.value:qr.textContent,di=!0)),Ie=lu(F,_e),0<Ie.length&&(_e=new ng(_e,t,null,l,te),ie.push({event:_e,listeners:Ie}),we?_e.data=we:(we=sg(l),we!==null&&(_e.data=we)))),(we=s2?u2(t,l):c2(t,l))&&(_e=lu(F,"onBeforeInput"),0<_e.length&&(Ie=new ng("onBeforeInput","beforeinput",null,l,te),ie.push({event:Ie,listeners:_e}),Ie.data=we)),eA(ie,t,F,l,te)}Vv(ie,a)})}function io(t,a,l){return{instance:t,listener:a,currentTarget:l}}function lu(t,a){for(var l=a+"Capture",u=[];t!==null;){var p=t,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=El(t,l),p!=null&&u.unshift(io(t,p,v)),p=El(t,a),p!=null&&u.push(io(t,p,v))),t.tag===3)return u;t=t.return}return[]}function Pi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Gv(t,a,l,u,p){for(var v=a._reactName,S=[];l!==null&&l!==u;){var R=l,D=R.alternate,F=R.stateNode;if(R=R.tag,D!==null&&D===u)break;R!==5&&R!==26&&R!==27||F===null||(D=F,p?(F=El(l,v),F!=null&&S.unshift(io(l,F,D))):p||(F=El(l,v),F!=null&&S.push(io(l,F,D)))),l=l.return}S.length!==0&&t.push({event:a,listeners:S})}var aA=/\r\n?/g,iA=/\u0000|\uFFFD/g;function Yv(t){return(typeof t=="string"?t:""+t).replace(aA,`
|
|
50
|
+
`).replace(iA,"")}function Kv(t,a){return a=Yv(a),Yv(t)===a}function ou(){}function nt(t,a,l,u,p,v){switch(l){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||ui(t,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&ui(t,""+u);break;case"className":ds(t,"class",u);break;case"tabIndex":ds(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ds(t,l,u);break;case"style":Qm(t,u,v);break;case"data":if(a!=="object"){ds(t,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||l!=="href")){t.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=ms(""+u),t.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(l,"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"&&(l==="formAction"?(a!=="input"&&nt(t,a,"name",p.name,p,null),nt(t,a,"formEncType",p.formEncType,p,null),nt(t,a,"formMethod",p.formMethod,p,null),nt(t,a,"formTarget",p.formTarget,p,null)):(nt(t,a,"encType",p.encType,p,null),nt(t,a,"method",p.method,p,null),nt(t,a,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=ms(""+u),t.setAttribute(l,u);break;case"onClick":u!=null&&(t.onclick=ou);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=l}}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}l=ms(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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(l,""+u):t.removeAttribute(l);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(l,""):t.removeAttribute(l);break;case"capture":case"download":u===!0?t.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,u):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(l,u):t.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(l):t.setAttribute(l,u);break;case"popover":Ue("beforetoggle",t),Ue("toggle",t),fs(t,"popover",u);break;case"xlinkActuate":br(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":br(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":br(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":br(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":br(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":br(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":br(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":br(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":br(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":fs(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=LC.get(l)||l,fs(t,l,u))}}function jd(t,a,l,u,p,v){switch(l){case"style":Qm(t,u,v);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=l}}break;case"children":typeof u=="string"?ui(t,u):(typeof u=="number"||typeof u=="bigint")&&ui(t,""+u);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"onClick":u!=null&&(t.onclick=ou);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bm.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),a=l.slice(2,p?l.length-7:void 0),v=t[Ke]||null,v=v!=null?v[l]:null,typeof v=="function"&&t.removeEventListener(a,v,p),typeof u=="function")){typeof v!="function"&&v!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(a,u,p);break e}l in t?t[l]=u:u===!0?t.setAttribute(l,""):fs(t,l,u)}}}function Pt(t,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",t),Ue("load",t);var u=!1,p=!1,v;for(v in l)if(l.hasOwnProperty(v)){var S=l[v];if(S!=null)switch(v){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:nt(t,a,v,S,l,null)}}p&&nt(t,a,"srcSet",l.srcSet,l,null),u&&nt(t,a,"src",l.src,l,null);return;case"input":Ue("invalid",t);var R=v=S=p=null,D=null,F=null;for(u in l)if(l.hasOwnProperty(u)){var te=l[u];if(te!=null)switch(u){case"name":p=te;break;case"type":S=te;break;case"checked":D=te;break;case"defaultChecked":F=te;break;case"value":v=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:nt(t,a,u,te,l,null)}}Gm(t,v,R,D,F,S,p,!1),hs(t);return;case"select":Ue("invalid",t),u=S=v=null;for(p in l)if(l.hasOwnProperty(p)&&(R=l[p],R!=null))switch(p){case"value":v=R;break;case"defaultValue":S=R;break;case"multiple":u=R;default:nt(t,a,p,R,l,null)}a=v,l=S,t.multiple=!!u,a!=null?si(t,!!u,a,!1):l!=null&&si(t,!!u,l,!0);return;case"textarea":Ue("invalid",t),v=p=u=null;for(S in l)if(l.hasOwnProperty(S)&&(R=l[S],R!=null))switch(S){case"value":u=R;break;case"defaultValue":p=R;break;case"children":v=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:nt(t,a,S,R,l,null)}Km(t,u,p,v),hs(t);return;case"option":for(D in l)if(l.hasOwnProperty(D)&&(u=l[D],u!=null))switch(D){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:nt(t,a,D,u,l,null)}return;case"dialog":Ue("beforetoggle",t),Ue("toggle",t),Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":Ue("load",t);break;case"video":case"audio":for(u=0;u<ao.length;u++)Ue(ao[u],t);break;case"image":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"embed":case"source":case"link":Ue("error",t),Ue("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(F in l)if(l.hasOwnProperty(F)&&(u=l[F],u!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:nt(t,a,F,u,l,null)}return;default:if(Yc(a)){for(te in l)l.hasOwnProperty(te)&&(u=l[te],u!==void 0&&jd(t,a,te,u,l,void 0));return}}for(R in l)l.hasOwnProperty(R)&&(u=l[R],u!=null&&nt(t,a,R,u,l,null))}function lA(t,a,l,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,S=null,R=null,D=null,F=null,te=null;for(Y in l){var ie=l[Y];if(l.hasOwnProperty(Y)&&ie!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":D=ie;default:u.hasOwnProperty(Y)||nt(t,a,Y,null,u,ie)}}for(var V in u){var Y=u[V];if(ie=l[V],u.hasOwnProperty(V)&&(Y!=null||ie!=null))switch(V){case"type":v=Y;break;case"name":p=Y;break;case"checked":F=Y;break;case"defaultChecked":te=Y;break;case"value":S=Y;break;case"defaultValue":R=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:Y!==ie&&nt(t,a,V,Y,u,ie)}}$c(t,S,R,D,F,te,v,p);return;case"select":Y=S=R=V=null;for(v in l)if(D=l[v],l.hasOwnProperty(v)&&D!=null)switch(v){case"value":break;case"multiple":Y=D;default:u.hasOwnProperty(v)||nt(t,a,v,null,u,D)}for(p in u)if(v=u[p],D=l[p],u.hasOwnProperty(p)&&(v!=null||D!=null))switch(p){case"value":V=v;break;case"defaultValue":R=v;break;case"multiple":S=v;default:v!==D&&nt(t,a,p,v,u,D)}a=R,l=S,u=Y,V!=null?si(t,!!l,V,!1):!!u!=!!l&&(a!=null?si(t,!!l,a,!0):si(t,!!l,l?[]:"",!1));return;case"textarea":Y=V=null;for(R in l)if(p=l[R],l.hasOwnProperty(R)&&p!=null&&!u.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:nt(t,a,R,null,u,p)}for(S in u)if(p=u[S],v=l[S],u.hasOwnProperty(S)&&(p!=null||v!=null))switch(S){case"value":V=p;break;case"defaultValue":Y=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==v&&nt(t,a,S,p,u,v)}Ym(t,V,Y);return;case"option":for(var je in l)if(V=l[je],l.hasOwnProperty(je)&&V!=null&&!u.hasOwnProperty(je))switch(je){case"selected":t.selected=!1;break;default:nt(t,a,je,null,u,V)}for(D in u)if(V=u[D],Y=l[D],u.hasOwnProperty(D)&&V!==Y&&(V!=null||Y!=null))switch(D){case"selected":t.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:nt(t,a,D,V,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 Re in l)V=l[Re],l.hasOwnProperty(Re)&&V!=null&&!u.hasOwnProperty(Re)&&nt(t,a,Re,null,u,V);for(F in u)if(V=u[F],Y=l[F],u.hasOwnProperty(F)&&V!==Y&&(V!=null||Y!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,a));break;default:nt(t,a,F,V,u,Y)}return;default:if(Yc(a)){for(var rt in l)V=l[rt],l.hasOwnProperty(rt)&&V!==void 0&&!u.hasOwnProperty(rt)&&jd(t,a,rt,void 0,u,V);for(te in u)V=u[te],Y=l[te],!u.hasOwnProperty(te)||V===Y||V===void 0&&Y===void 0||jd(t,a,te,V,u,Y);return}}for(var B in l)V=l[B],l.hasOwnProperty(B)&&V!=null&&!u.hasOwnProperty(B)&&nt(t,a,B,null,u,V);for(ie in u)V=u[ie],Y=l[ie],!u.hasOwnProperty(ie)||V===Y||V==null&&Y==null||nt(t,a,ie,V,u,Y)}var Dd=null,Od=null;function su(t){return t.nodeType===9?t:t.ownerDocument}function Xv(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 Qv(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 Ld(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 zd=null;function oA(){var t=window.event;return t&&t.type==="popstate"?t===zd?!1:(zd=t,!0):(zd=null,!1)}var Zv=typeof setTimeout=="function"?setTimeout:void 0,sA=typeof clearTimeout=="function"?clearTimeout:void 0,Wv=typeof Promise=="function"?Promise:void 0,uA=typeof queueMicrotask=="function"?queueMicrotask:typeof Wv<"u"?function(t){return Wv.resolve(null).then(t).catch(cA)}:Zv;function cA(t){setTimeout(function(){throw t})}function ia(t){return t==="head"}function Jv(t,a){var l=a,u=0,p=0;do{var v=l.nextSibling;if(t.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"){if(0<u&&8>u){l=u;var S=t.ownerDocument;if(l&1&&lo(S.documentElement),l&2&&lo(S.body),l&4)for(l=S.head,lo(l),S=l.firstChild;S;){var R=S.nextSibling,D=S.nodeName;S[cn]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&S.rel.toLowerCase()==="stylesheet"||l.removeChild(S),S=R}}if(p===0){t.removeChild(v),mo(a);return}p--}else l==="$"||l==="$?"||l==="$!"?p++:u=l.charCodeAt(0)-48;else u=0;l=v}while(l);mo(a)}function Pd(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Pd(l),fn(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function fA(t,a,l,u){for(;t.nodeType===1;){var p=l;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[cn])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=Fn(t.nextSibling),t===null)break}return null}function dA(t,a,l){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Fn(t.nextSibling),t===null))return null;return t}function Id(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function hA(t,a){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")a();else{var u=function(){a(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Fn(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 Bd=null;function ex(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(a===0)return t;a--}else l==="/$"&&a++}t=t.previousSibling}return null}function tx(t,a,l){switch(a=su(l),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 lo(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);fn(t)}var Dn=new Map,nx=new Set;function uu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Or=K.d;K.d={f:pA,r:mA,D:gA,C:yA,L:vA,m:xA,X:wA,S:bA,M:SA};function pA(){var t=Or.f(),a=eu();return t||a}function mA(t){var a=ai(t);a!==null&&a.tag===5&&a.type==="form"?Sy(a):Or.r(t)}var Ii=typeof document>"u"?null:document;function rx(t,a,l){var u=Ii;if(u&&typeof a=="string"&&a){var p=An(a);p='link[rel="'+t+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),nx.has(p)||(nx.add(p),t={rel:t,crossOrigin:l,href:a},u.querySelector(p)===null&&(a=u.createElement("link"),Pt(a,"link",t),_t(a),u.head.appendChild(a)))}}function gA(t){Or.D(t),rx("dns-prefetch",t,null)}function yA(t,a){Or.C(t,a),rx("preconnect",t,a)}function vA(t,a,l){Or.L(t,a,l);var u=Ii;if(u&&t&&a){var p='link[rel="preload"][as="'+An(a)+'"]';a==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+An(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+An(l.imageSizes)+'"]')):p+='[href="'+An(t)+'"]';var v=p;switch(a){case"style":v=Bi(t);break;case"script":v=Ui(t)}Dn.has(v)||(t=m({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:t,as:a},l),Dn.set(v,t),u.querySelector(p)!==null||a==="style"&&u.querySelector(oo(v))||a==="script"&&u.querySelector(so(v))||(a=u.createElement("link"),Pt(a,"link",t),_t(a),u.head.appendChild(a)))}}function xA(t,a){Or.m(t,a);var l=Ii;if(l&&t){var u=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+An(u)+'"][href="'+An(t)+'"]',v=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Ui(t)}if(!Dn.has(v)&&(t=m({rel:"modulepreload",href:t},a),Dn.set(v,t),l.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(so(v)))return}u=l.createElement("link"),Pt(u,"link",t),_t(u),l.head.appendChild(u)}}}function bA(t,a,l){Or.S(t,a,l);var u=Ii;if(u&&t){var p=ii(u).hoistableStyles,v=Bi(t);a=a||"default";var S=p.get(v);if(!S){var R={loading:0,preload:null};if(S=u.querySelector(oo(v)))R.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":a},l),(l=Dn.get(v))&&Ud(t,l);var D=S=u.createElement("link");_t(D),Pt(D,"link",t),D._p=new Promise(function(F,te){D.onload=F,D.onerror=te}),D.addEventListener("load",function(){R.loading|=1}),D.addEventListener("error",function(){R.loading|=2}),R.loading|=4,cu(S,a,u)}S={type:"stylesheet",instance:S,count:1,state:R},p.set(v,S)}}}function wA(t,a){Or.X(t,a);var l=Ii;if(l&&t){var u=ii(l).hoistableScripts,p=Ui(t),v=u.get(p);v||(v=l.querySelector(so(p)),v||(t=m({src:t,async:!0},a),(a=Dn.get(p))&&Hd(t,a),v=l.createElement("script"),_t(v),Pt(v,"link",t),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function SA(t,a){Or.M(t,a);var l=Ii;if(l&&t){var u=ii(l).hoistableScripts,p=Ui(t),v=u.get(p);v||(v=l.querySelector(so(p)),v||(t=m({src:t,async:!0,type:"module"},a),(a=Dn.get(p))&&Hd(t,a),v=l.createElement("script"),_t(v),Pt(v,"link",t),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},u.set(p,v))}}function ax(t,a,l,u){var p=(p=de.current)?uu(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Bi(l.href),l=ii(p).hoistableStyles,u=l.get(a),u||(u={type:"style",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Bi(l.href);var v=ii(p).hoistableStyles,S=v.get(t);if(S||(p=p.ownerDocument||p,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(t,S),(v=p.querySelector(oo(t)))&&!v._p&&(S.instance=v,S.state.loading=5),Dn.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Dn.set(t,l),v||EA(p,t,l,S.state))),a&&u===null)throw Error(i(528,""));return S}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ui(l),l=ii(p).hoistableScripts,u=l.get(a),u||(u={type:"script",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Bi(t){return'href="'+An(t)+'"'}function oo(t){return'link[rel="stylesheet"]['+t+"]"}function ix(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function EA(t,a,l,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}),Pt(a,"link",l),_t(a),t.head.appendChild(a))}function Ui(t){return'[src="'+An(t)+'"]'}function so(t){return"script[async]"+t}function lx(t,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var u=t.querySelector('style[data-href~="'+An(l.href)+'"]');if(u)return a.instance=u,_t(u),u;var p=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),_t(u),Pt(u,"style",p),cu(u,l.precedence,t),a.instance=u;case"stylesheet":p=Bi(l.href);var v=t.querySelector(oo(p));if(v)return a.state.loading|=4,a.instance=v,_t(v),v;u=ix(l),(p=Dn.get(p))&&Ud(u,p),v=(t.ownerDocument||t).createElement("link"),_t(v);var S=v;return S._p=new Promise(function(R,D){S.onload=R,S.onerror=D}),Pt(v,"link",u),a.state.loading|=4,cu(v,l.precedence,t),a.instance=v;case"script":return v=Ui(l.src),(p=t.querySelector(so(v)))?(a.instance=p,_t(p),p):(u=l,(p=Dn.get(v))&&(u=m({},l),Hd(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),_t(p),Pt(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,cu(u,l.precedence,t));return a.instance}function cu(t,a,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,v=p,S=0;S<u.length;S++){var R=u[S];if(R.dataset.precedence===a)v=R;else if(v!==p)break}v?v.parentNode.insertBefore(t,v.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(t,a.firstChild))}function Ud(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function Hd(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var fu=null;function ox(t,a,l){if(fu===null){var u=new Map,p=fu=new Map;p.set(l,u)}else p=fu,u=p.get(l),u||(u=new Map,p.set(l,u));if(u.has(t))return u;for(u.set(t,null),l=l.getElementsByTagName(t),p=0;p<l.length;p++){var v=l[p];if(!(v[cn]||v[ot]||t==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var S=v.getAttribute(a)||"";S=t+S;var R=u.get(S);R?R.push(v):u.set(S,[v])}}return u}function sx(t,a,l){t=t.ownerDocument||t,t.head.insertBefore(l,a==="title"?t.querySelector("head > title"):null)}function kA(t,a,l){if(l===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 ux(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var uo=null;function CA(){}function AA(t,a,l){if(uo===null)throw Error(i(475));var u=uo;if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var p=Bi(l.href),v=t.querySelector(oo(p));if(v){t=v._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=du.bind(u),t.then(u,u)),a.state.loading|=4,a.instance=v,_t(v);return}v=t.ownerDocument||t,l=ix(l),(p=Dn.get(p))&&Ud(l,p),v=v.createElement("link"),_t(v);var S=v;S._p=new Promise(function(R,D){S.onload=R,S.onerror=D}),Pt(v,"link",l),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=du.bind(u),t.addEventListener("load",a),t.addEventListener("error",a))}}function TA(){if(uo===null)throw Error(i(475));var t=uo;return t.stylesheets&&t.count===0&&Fd(t,t.stylesheets),0<t.count?function(a){var l=setTimeout(function(){if(t.stylesheets&&Fd(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l)}}:null}function du(){if(this.count--,this.count===0){if(this.stylesheets)Fd(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var hu=null;function Fd(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,hu=new Map,a.forEach(RA,t),hu=null,du.call(t))}function RA(t,a){if(!(a.state.loading&4)){var l=hu.get(t);if(l)var u=l.get(null);else{l=new Map,hu.set(t,l);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var S=p[v];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(l.set(S.dataset.precedence,S),u=S)}u&&l.set(null,u)}p=a.instance,S=p.getAttribute("data-precedence"),v=l.get(S)||u,v===u&&l.set(null,p),l.set(S,p),this.count++,u=du.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 co={$$typeof:_,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function _A(t,a,l,u,p,v,S,R){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=he(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=he(0),this.hiddenUpdates=he(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function cx(t,a,l,u,p,v,S,R,D,F,te,ie){return t=new _A(t,a,l,S,R,D,F,ie),a=1,v===!0&&(a|=24),v=hn(3,null,null,a),t.current=v,v.stateNode=t,a=Ef(),a.refCount++,t.pooledCache=a,a.refCount++,v.memoizedState={element:u,isDehydrated:l,cache:a},Tf(v),t}function fx(t){return t?(t=yi,t):yi}function dx(t,a,l,u,p,v){p=fx(p),u.context===null?u.context=p:u.pendingContext=p,u=Gr(a),u.payload={element:l},v=v===void 0?null:v,v!==null&&(u.callback=v),l=Yr(t,u,a),l!==null&&(vn(l,t,a),Ul(l,t,a))}function hx(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<a?l:a}}function qd(t,a){hx(t,a),(t=t.alternate)&&hx(t,a)}function px(t){if(t.tag===13){var a=gi(t,67108864);a!==null&&vn(a,t,67108864),qd(t,67108864)}}var pu=!0;function NA(t,a,l,u){var p=z.T;z.T=null;var v=K.p;try{K.p=2,Vd(t,a,l,u)}finally{K.p=v,z.T=p}}function MA(t,a,l,u){var p=z.T;z.T=null;var v=K.p;try{K.p=8,Vd(t,a,l,u)}finally{K.p=v,z.T=p}}function Vd(t,a,l,u){if(pu){var p=$d(u);if(p===null)Md(t,a,u,mu,l),gx(t,u);else if(DA(p,t,a,l,u))u.stopPropagation();else if(gx(t,u),a&4&&-1<jA.indexOf(t)){for(;p!==null;){var v=ai(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var S=Kt(v.pendingLanes);if(S!==0){var R=v;for(R.pendingLanes|=2,R.entangledLanes|=2;S;){var D=1<<31-Ae(S);R.entanglements[1]|=D,S&=~D}ar(v),(Je&6)===0&&(Ws=Ct()+500,ro(0))}}break;case 13:R=gi(v,2),R!==null&&vn(R,v,2),eu(),qd(v,2)}if(v=$d(u),v===null&&Md(t,a,u,mu,l),v===p)break;p=v}p!==null&&u.stopPropagation()}else Md(t,a,u,null,l)}}function $d(t){return t=Xc(t),Gd(t)}var mu=null;function Gd(t){if(mu=null,t=ri(t),t!==null){var a=s(t);if(a===null)t=null;else{var l=a.tag;if(l===13){if(t=c(a),t!==null)return t;t=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return mu=t,null}function mx(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(yr()){case vr:return 2;case Zn:return 8;case Gt:case Wn:return 32;case Sa:return 268435456;default:return 32}default:return 32}}var Yd=!1,la=null,oa=null,sa=null,fo=new Map,ho=new Map,ua=[],jA="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 gx(t,a){switch(t){case"focusin":case"focusout":la=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":sa=null;break;case"pointerover":case"pointerout":fo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ho.delete(a.pointerId)}}function po(t,a,l,u,p,v){return t===null||t.nativeEvent!==v?(t={blockedOn:a,domEventName:l,eventSystemFlags:u,nativeEvent:v,targetContainers:[p]},a!==null&&(a=ai(a),a!==null&&px(a)),t):(t.eventSystemFlags|=u,a=t.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),t)}function DA(t,a,l,u,p){switch(a){case"focusin":return la=po(la,t,a,l,u,p),!0;case"dragenter":return oa=po(oa,t,a,l,u,p),!0;case"mouseover":return sa=po(sa,t,a,l,u,p),!0;case"pointerover":var v=p.pointerId;return fo.set(v,po(fo.get(v)||null,t,a,l,u,p)),!0;case"gotpointercapture":return v=p.pointerId,ho.set(v,po(ho.get(v)||null,t,a,l,u,p)),!0}return!1}function yx(t){var a=ri(t.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){t.blockedOn=a,kn(t.priority,function(){if(l.tag===13){var u=yn();u=Dt(u);var p=gi(l,u);p!==null&&vn(p,l,u),qd(l,u)}});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function gu(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var l=$d(t.nativeEvent);if(l===null){l=t.nativeEvent;var u=new l.constructor(l.type,l);Kc=u,l.target.dispatchEvent(u),Kc=null}else return a=ai(l),a!==null&&px(a),t.blockedOn=l,!1;a.shift()}return!0}function vx(t,a,l){gu(t)&&l.delete(a)}function OA(){Yd=!1,la!==null&&gu(la)&&(la=null),oa!==null&&gu(oa)&&(oa=null),sa!==null&&gu(sa)&&(sa=null),fo.forEach(vx),ho.forEach(vx)}function yu(t,a){t.blockedOn===a&&(t.blockedOn=null,Yd||(Yd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,OA)))}var vu=null;function xx(t){vu!==t&&(vu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vu===t&&(vu=null);for(var a=0;a<t.length;a+=3){var l=t[a],u=t[a+1],p=t[a+2];if(typeof u!="function"){if(Gd(u||l)===null)continue;break}var v=ai(l);v!==null&&(t.splice(a,3),a-=3,Gf(v,{pending:!0,data:p,method:l.method,action:u},u,p))}}))}function mo(t){function a(D){return yu(D,t)}la!==null&&yu(la,t),oa!==null&&yu(oa,t),sa!==null&&yu(sa,t),fo.forEach(a),ho.forEach(a);for(var l=0;l<ua.length;l++){var u=ua[l];u.blockedOn===t&&(u.blockedOn=null)}for(;0<ua.length&&(l=ua[0],l.blockedOn===null);)yx(l),l.blockedOn===null&&ua.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var p=l[u],v=l[u+1],S=p[Ke]||null;if(typeof v=="function")S||xx(l);else if(S){var R=null;if(v&&v.hasAttribute("formAction")){if(p=v,S=v[Ke]||null)R=S.formAction;else if(Gd(p)!==null)continue}else R=S.action;typeof R=="function"?l[u+1]=R:(l.splice(u,3),u-=3),xx(l)}}}function Kd(t){this._internalRoot=t}xu.prototype.render=Kd.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,u=yn();dx(l,u,t,a,null,null)},xu.prototype.unmount=Kd.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),eu(),a[Xt]=null}};function xu(t){this._internalRoot=t}xu.prototype.unstable_scheduleHydration=function(t){if(t){var a=Ye();t={blockedOn:null,target:t,priority:a};for(var l=0;l<ua.length&&a!==0&&a<ua[l].priority;l++);ua.splice(l,0,t),l===0&&yx(t)}};var bx=n.version;if(bx!=="19.1.1")throw Error(i(527,bx,"19.1.1"));K.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=h(a),t=t!==null?d(t):null,t=t===null?null:t.stateNode,t};var LA={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bu.isDisabled&&bu.supportsFiber)try{J=bu.inject(LA),se=bu}catch{}}return yo.createRoot=function(t,a){if(!o(t))throw Error(i(299));var l=!1,u="",p=zy,v=Py,S=Iy,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!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&&(S=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=cx(t,1,!1,null,null,l,u,p,v,S,R,null),t[Xt]=a.current,Nd(t),new Kd(a)},yo.hydrateRoot=function(t,a,l){if(!o(t))throw Error(i(299));var u=!1,p="",v=zy,S=Py,R=Iy,D=null,F=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(S=l.onCaughtError),l.onRecoverableError!==void 0&&(R=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(D=l.unstable_transitionCallbacks),l.formState!==void 0&&(F=l.formState)),a=cx(t,1,!0,a,l??null,u,p,v,S,R,D,F),a.context=fx(null),l=a.current,u=yn(),u=Dt(u),p=Gr(u),p.callback=null,Yr(l,p,u),l=u,a.current.lanes=l,pe(a,l),ar(a),t[Xt]=a.current,Nd(t),new xu(a)},yo.version="19.1.1",yo}var Nx;function $A(){if(Nx)return Zd.exports;Nx=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(),Zd.exports=VA(),Zd.exports}var GA=$A();const YA="modulepreload",KA=function(e){return"/"+e},Mx={},Ne=function(n,r,i){let o=Promise.resolve();if(r&&r.length>0){let h=function(d){return Promise.all(d.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");o=h(r.map(d=>{if(d=KA(d),d in Mx)return;Mx[d]=!0;const m=d.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${y}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":YA,m||(b.as="script"),b.crossOrigin="",b.href=d,f&&b.setAttribute("nonce",f),document.head.appendChild(b),m)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${d}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return o.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 XA(e={}){function n(i,o){let{pathname:s,search:c,hash:f}=i.location;return Ih("",{pathname:s,search:c,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(i,o){return typeof o=="string"?o:jo(o)}return ZA(n,r,null,e)}function ft(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function zn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function QA(){return Math.random().toString(36).substring(2,10)}function Dx(e,n){return{usr:e.state,key:e.key,idx:n}}function Ih(e,n,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?cl(n):n,state:r,key:n&&n.key||i||QA()}}function jo({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 cl(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 ZA(e,n,r,i={}){let{window:o=document.defaultView,v5Compat:s=!1}=i,c=o.history,f="POP",h=null,d=m();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function m(){return(c.state||{idx:null}).idx}function y(){f="POP";let A=m(),T=A==null?null:A-d;d=A,h&&h({action:f,location:C.location,delta:T})}function b(A,T){f="PUSH";let N=Ih(C.location,A,T);d=m()+1;let _=Dx(N,d),j=C.createHref(N);try{c.pushState(_,"",j)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;o.location.assign(j)}s&&h&&h({action:f,location:C.location,delta:1})}function w(A,T){f="REPLACE";let N=Ih(C.location,A,T);d=m();let _=Dx(N,d),j=C.createHref(N);c.replaceState(_,"",j),s&&h&&h({action:f,location:C.location,delta:0})}function E(A){return WA(A)}let C={get action(){return f},get location(){return e(o,c)},listen(A){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(jx,y),h=A,()=>{o.removeEventListener(jx,y),h=null}},createHref(A){return n(o,A)},createURL:E,encodeLocation(A){let T=E(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:w,go(A){return c.go(A)}};return C}function WA(e,n=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ft(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:jo(e);return i=i.replace(/ $/,"%20"),!n&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function A0(e,n,r="/"){return JA(e,n,r,!1)}function JA(e,n,r,i){let o=typeof n=="string"?cl(n):n,s=Pr(o.pathname||"/",r);if(s==null)return null;let c=T0(e);eT(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let d=fT(s);f=uT(c[h],d,i)}return f}function T0(e,n=[],r=[],i="",o=!1){let s=(c,f,h=o,d)=>{let m={relativePath:d===void 0?c.path||"":d,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(i)&&h)return;ft(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=zr([i,m.relativePath]),b=r.concat(m);c.children&&c.children.length>0&&(ft(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),T0(c.children,n,b,y,h)),!(c.path==null&&!c.index)&&n.push({path:y,score:oT(y,c.index),routesMeta:b})};return e.forEach((c,f)=>{if(c.path===""||!c.path?.includes("?"))s(c,f);else for(let h of R0(c.path))s(c,f,!0,h)}),n}function R0(e){let n=e.split("/");if(n.length===0)return[];let[r,...i]=n,o=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let c=R0(i.join("/")),f=[];return f.push(...c.map(h=>h===""?s:[s,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function eT(e){e.sort((n,r)=>n.score!==r.score?r.score-n.score:sT(n.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var tT=/^:[\w-]+$/,nT=3,rT=2,aT=1,iT=10,lT=-2,Ox=e=>e==="*";function oT(e,n){let r=e.split("/"),i=r.length;return r.some(Ox)&&(i+=lT),n&&(i+=rT),r.filter(o=>!Ox(o)).reduce((o,s)=>o+(tT.test(s)?nT:s===""?aT:iT),i)}function sT(e,n){return e.length===n.length&&e.slice(0,-1).every((i,o)=>i===n[o])?e[e.length-1]-n[n.length-1]:0}function uT(e,n,r=!1){let{routesMeta:i}=e,o={},s="/",c=[];for(let f=0;f<i.length;++f){let h=i[f],d=f===i.length-1,m=s==="/"?n:n.slice(s.length)||"/",y=Ku({path:h.relativePath,caseSensitive:h.caseSensitive,end:d},m),b=h.route;if(!y&&d&&r&&!i[i.length-1].route.index&&(y=Ku({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},m)),!y)return null;Object.assign(o,y.params),c.push({params:o,pathname:zr([s,y.pathname]),pathnameBase:mT(zr([s,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(s=zr([s,y.pathnameBase]))}return c}function Ku(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=cT(e.path,e.caseSensitive,e.end),o=n.match(r);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:i.reduce((d,{paramName:m,isOptional:y},b)=>{if(m==="*"){let E=f[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const w=f[b];return y&&!w?d[m]=void 0:d[m]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:c,pattern:e}}function cT(e,n=!1,r=!0){zn(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,h)=>(i.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),i]}function fT(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return zn(!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 Pr(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 dT(e,n="/"){let{pathname:r,search:i="",hash:o=""}=typeof e=="string"?cl(e):e;return{pathname:r?r.startsWith("/")?r:hT(r,n):n,search:gT(i),hash:yT(o)}}function hT(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function th(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 pT(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function Sp(e){let n=pT(e);return n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase)}function Ep(e,n,r,i=!1){let o;typeof e=="string"?o=cl(e):(o={...e},ft(!o.pathname||!o.pathname.includes("?"),th("?","pathname","search",o)),ft(!o.pathname||!o.pathname.includes("#"),th("#","pathname","hash",o)),ft(!o.search||!o.search.includes("#"),th("#","search","hash",o)));let s=e===""||o.pathname==="",c=s?"/":o.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;o.pathname=b.join("/")}f=y>=0?n[y]:"/"}let h=dT(o,f),d=c&&c!=="/"&&c.endsWith("/"),m=(s||c===".")&&r.endsWith("/");return!h.pathname.endsWith("/")&&(d||m)&&(h.pathname+="/"),h}var zr=e=>e.join("/").replace(/\/\/+/g,"/"),mT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),gT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function vT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var _0=["POST","PUT","PATCH","DELETE"];new Set(_0);var xT=["GET",..._0];new Set(xT);var fl=x.createContext(null);fl.displayName="DataRouter";var fc=x.createContext(null);fc.displayName="DataRouterState";x.createContext(!1);var N0=x.createContext({isTransitioning:!1});N0.displayName="ViewTransition";var bT=x.createContext(new Map);bT.displayName="Fetchers";var wT=x.createContext(null);wT.displayName="Await";var Kn=x.createContext(null);Kn.displayName="Navigation";var $o=x.createContext(null);$o.displayName="Location";var Pn=x.createContext({outlet:null,matches:[],isDataRoute:!1});Pn.displayName="Route";var kp=x.createContext(null);kp.displayName="RouteError";function ST(e,{relative:n}={}){ft(dl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=x.useContext(Kn),{hash:o,pathname:s,search:c}=Yo(e,{relative:n}),f=s;return r!=="/"&&(f=s==="/"?r:zr([r,s])),i.createHref({pathname:f,search:c,hash:o})}function dl(){return x.useContext($o)!=null}function on(){return ft(dl(),"useLocation() may be used only in the context of a <Router> component."),x.useContext($o).location}var M0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function j0(e){x.useContext(Kn).static||x.useLayoutEffect(e)}function Go(){let{isDataRoute:e}=x.useContext(Pn);return e?PT():ET()}function ET(){ft(dl(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(fl),{basename:n,navigator:r}=x.useContext(Kn),{matches:i}=x.useContext(Pn),{pathname:o}=on(),s=JSON.stringify(Sp(i)),c=x.useRef(!1);return j0(()=>{c.current=!0}),x.useCallback((h,d={})=>{if(zn(c.current,M0),!c.current)return;if(typeof h=="number"){r.go(h);return}let m=Ep(h,JSON.parse(s),o,d.relative==="path");e==null&&n!=="/"&&(m.pathname=m.pathname==="/"?n:zr([n,m.pathname])),(d.replace?r.replace:r.push)(m,d.state,d)},[n,r,s,o,e])}var kT=x.createContext(null);function CT(e){let n=x.useContext(Pn).outlet;return n&&x.createElement(kT.Provider,{value:e},n)}function qB(){let{matches:e}=x.useContext(Pn),n=e[e.length-1];return n?n.params:{}}function Yo(e,{relative:n}={}){let{matches:r}=x.useContext(Pn),{pathname:i}=on(),o=JSON.stringify(Sp(r));return x.useMemo(()=>Ep(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function AT(e,n){return D0(e,n)}function D0(e,n,r,i,o){ft(dl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(Kn),{matches:c}=x.useContext(Pn),f=c[c.length-1],h=f?f.params:{},d=f?f.pathname:"/",m=f?f.pathnameBase:"/",y=f&&f.route;{let N=y&&y.path||"";O0(d,!y||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (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=on(),w;if(n){let N=typeof n=="string"?cl(n):n;ft(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 E=w.pathname||"/",C=E;if(m!=="/"){let N=m.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(N.length).join("/")}let A=A0(e,{pathname:C});zn(y||A!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),zn(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=MT(A&&A.map(N=>Object.assign({},N,{params:Object.assign({},h,N.params),pathname:zr([m,s.encodeLocation?s.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:zr([m,s.encodeLocation?s.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),c,r,i,o);return n&&T?x.createElement($o.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},T):T}function TT(){let e=zT(),n=vT(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)",o={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:o},r):null,c)}var RT=x.createElement(TT,null),_T=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(Pn.Provider,{value:this.props.routeContext},x.createElement(kp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function NT({routeContext:e,match:n,children:r}){let i=x.useContext(fl);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(Pn.Provider,{value:e},r)}function MT(e,n=[],r=null,i=null,o=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 d=s.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);ft(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let f=!1,h=-1;if(r)for(let d=0;d<s.length;d++){let m=s[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(h=d),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,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((d,m,y)=>{let b,w=!1,E=null,C=null;r&&(b=c&&m.route.id?c[m.route.id]:void 0,E=m.route.errorElement||RT,f&&(h<0&&y===0?(O0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,C=null):h===y&&(w=!0,C=m.route.hydrateFallbackElement||null)));let A=n.concat(s.slice(0,y+1)),T=()=>{let N;return b?N=E:w?N=C:m.route.Component?N=x.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=d,x.createElement(NT,{match:m,routeContext:{outlet:d,matches:A,isDataRoute:r!=null},children:N})};return r&&(m.route.ErrorBoundary||m.route.errorElement||y===0)?x.createElement(_T,{location:r.location,revalidation:r.revalidation,component:E,error:b,children:T(),routeContext:{outlet:null,matches:A,isDataRoute:!0},unstable_onError:i}):T()},null)}function Cp(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jT(e){let n=x.useContext(fl);return ft(n,Cp(e)),n}function DT(e){let n=x.useContext(fc);return ft(n,Cp(e)),n}function OT(e){let n=x.useContext(Pn);return ft(n,Cp(e)),n}function Ap(e){let n=OT(e),r=n.matches[n.matches.length-1];return ft(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function LT(){return Ap("useRouteId")}function zT(){let e=x.useContext(kp),n=DT("useRouteError"),r=Ap("useRouteError");return e!==void 0?e:n.errors?.[r]}function PT(){let{router:e}=jT("useNavigate"),n=Ap("useNavigate"),r=x.useRef(!1);return j0(()=>{r.current=!0}),x.useCallback(async(o,s={})=>{zn(r.current,M0),r.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...s}))},[e,n])}var Lx={};function O0(e,n,r){!n&&!Lx[e]&&(Lx[e]=!0,zn(!1,r))}x.memo(IT);function IT({routes:e,future:n,state:r,unstable_onError:i}){return D0(e,void 0,r,i,n)}function L0({to:e,replace:n,state:r,relative:i}){ft(dl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=x.useContext(Kn);zn(!o,"<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(Pn),{pathname:c}=on(),f=Go(),h=Ep(e,Sp(s),c,i==="path"),d=JSON.stringify(h);return x.useEffect(()=>{f(JSON.parse(d),{replace:n,state:r,relative:i})},[f,d,i,n,r]),null}function Tp(e){return CT(e.context)}function Se(e){ft(!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 BT({basename:e="/",children:n=null,location:r,navigationType:i="POP",navigator:o,static:s=!1}){ft(!dl(),"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:o,static:s,future:{}}),[c,o,s]);typeof r=="string"&&(r=cl(r));let{pathname:h="/",search:d="",hash:m="",state:y=null,key:b="default"}=r,w=x.useMemo(()=>{let E=Pr(h,c);return E==null?null:{location:{pathname:E,search:d,hash:m,state:y,key:b},navigationType:i}},[c,h,d,m,y,b,i]);return zn(w!=null,`<Router basename="${c}"> is not able to match the URL "${h}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:x.createElement(Kn.Provider,{value:f},x.createElement($o.Provider,{children:n,value:w}))}function UT({children:e,location:n}){return AT(Bh(e),n)}function Bh(e,n=[]){let r=[];return x.Children.forEach(e,(i,o)=>{if(!x.isValidElement(i))return;let s=[...n,o];if(i.type===x.Fragment){r.push.apply(r,Bh(i.props.children,s));return}ft(i.type===Se,`[${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>`),ft(!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=Bh(i.props.children,s)),r.push(c)}),r}var zu="get",Pu="application/x-www-form-urlencoded";function dc(e){return e!=null&&typeof e.tagName=="string"}function HT(e){return dc(e)&&e.tagName.toLowerCase()==="button"}function FT(e){return dc(e)&&e.tagName.toLowerCase()==="form"}function qT(e){return dc(e)&&e.tagName.toLowerCase()==="input"}function VT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $T(e,n){return e.button===0&&(!n||n==="_self")&&!VT(e)}function Uh(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(o=>[r,o]):[[r,i]])},[]))}function GT(e,n){let r=Uh(e);return n&&n.forEach((i,o)=>{r.has(o)||n.getAll(o).forEach(s=>{r.append(o,s)})}),r}var wu=null;function YT(){if(wu===null)try{new FormData(document.createElement("form"),0),wu=!1}catch{wu=!0}return wu}var KT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nh(e){return e!=null&&!KT.has(e)?(zn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pu}"`),null):e}function XT(e,n){let r,i,o,s,c;if(FT(e)){let f=e.getAttribute("action");i=f?Pr(f,n):null,r=e.getAttribute("method")||zu,o=nh(e.getAttribute("enctype"))||Pu,s=new FormData(e)}else if(HT(e)||qT(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 h=e.getAttribute("formaction")||f.getAttribute("action");if(i=h?Pr(h,n):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||zu,o=nh(e.getAttribute("formenctype"))||nh(f.getAttribute("enctype"))||Pu,s=new FormData(f,e),!YT()){let{name:d,type:m,value:y}=e;if(m==="image"){let b=d?`${d}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else d&&s.append(d,y)}}else{if(dc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=zu,i=null,o=Pu,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Rp(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function QT(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&&Pr(i.pathname,n)==="/"?i.pathname=`${n.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function ZT(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 WT(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 JT(e,n,r){let i=await Promise.all(e.map(async o=>{let s=n.routes[o.route.id];if(s){let c=await ZT(s,r);return c.links?c.links():[]}return[]}));return rR(i.flat(1).filter(WT).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function zx(e,n,r,i,o,s){let c=(h,d)=>r[d]?h.route.id!==r[d].route.id:!0,f=(h,d)=>r[d].pathname!==h.pathname||r[d].route.path?.endsWith("*")&&r[d].params["*"]!==h.params["*"];return s==="assets"?n.filter((h,d)=>c(h,d)||f(h,d)):s==="data"?n.filter((h,d)=>{let m=i.routes[h.route.id];if(!m||!m.hasLoader)return!1;if(c(h,d)||f(h,d))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function eR(e,n,{includeHydrateFallback:r}={}){return tR(e.map(i=>{let o=n.routes[i.route.id];if(!o)return[];let s=[o.module];return o.clientActionModule&&(s=s.concat(o.clientActionModule)),o.clientLoaderModule&&(s=s.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(s=s.concat(o.hydrateFallbackModule)),o.imports&&(s=s.concat(o.imports)),s}).flat(1))}function tR(e){return[...new Set(e)]}function nR(e){let n={},r=Object.keys(e).sort();for(let i of r)n[i]=e[i];return n}function rR(e,n){let r=new Set;return new Set(n),e.reduce((i,o)=>{let s=JSON.stringify(nR(o));return r.has(s)||(r.add(s),i.push({key:s,link:o})),i},[])}function z0(){let e=x.useContext(fl);return Rp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function aR(){let e=x.useContext(fc);return Rp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var _p=x.createContext(void 0);_p.displayName="FrameworkContext";function P0(){let e=x.useContext(_p);return Rp(e,"You must render this element inside a <HydratedRouter> element"),e}function iR(e,n){let r=x.useContext(_p),[i,o]=x.useState(!1),[s,c]=x.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=n,b=x.useRef(null);x.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let C=T=>{T.forEach(N=>{c(N.isIntersecting)})},A=new IntersectionObserver(C,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),x.useEffect(()=>{if(i){let C=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(C)}}},[i]);let w=()=>{o(!0)},E=()=>{o(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:vo(f,w),onBlur:vo(h,E),onMouseEnter:vo(d,w),onMouseLeave:vo(m,E),onTouchStart:vo(y,w)}]:[!1,b,{}]}function vo(e,n){return r=>{e&&e(r),r.defaultPrevented||n(r)}}function lR({page:e,...n}){let{router:r}=z0(),i=x.useMemo(()=>A0(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?x.createElement(sR,{page:e,matches:i,...n}):null}function oR(e){let{manifest:n,routeModules:r}=P0(),[i,o]=x.useState([]);return x.useEffect(()=>{let s=!1;return JT(e,n,r).then(c=>{s||o(c)}),()=>{s=!0}},[e,n,r]),i}function sR({page:e,matches:n,...r}){let i=on(),{manifest:o,routeModules:s}=P0(),{basename:c}=z0(),{loaderData:f,matches:h}=aR(),d=x.useMemo(()=>zx(e,n,h,o,i,"data"),[e,n,h,o,i]),m=x.useMemo(()=>zx(e,n,h,o,i,"assets"),[e,n,h,o,i]),y=x.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,C=!1;if(n.forEach(T=>{let N=o.routes[T.route.id];!N||!N.hasLoader||(!d.some(_=>_.route.id===T.route.id)&&T.route.id in f&&s[T.route.id]?.shouldRevalidate||N.hasClientLoader?C=!0:E.add(T.route.id))}),E.size===0)return[];let A=QT(e,c,"data");return C&&E.size>0&&A.searchParams.set("_routes",n.filter(T=>E.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[c,f,i,o,d,n,e,s]),b=x.useMemo(()=>eR(m,o),[m,o]),w=oR(m);return x.createElement(x.Fragment,null,y.map(E=>x.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>x.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),w.map(({key:E,link:C})=>x.createElement("link",{key:E,nonce:r.nonce,...C})))}function uR(...e){return n=>{e.forEach(r=>{typeof r=="function"?r(n):r!=null&&(r.current=n)})}}var I0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I0&&(window.__reactRouterVersion="7.8.2")}catch{}function cR({basename:e,children:n,window:r}){let i=x.useRef();i.current==null&&(i.current=XA({window:r,v5Compat:!0}));let o=i.current,[s,c]=x.useState({action:o.action,location:o.location}),f=x.useCallback(h=>{x.startTransition(()=>c(h))},[c]);return x.useLayoutEffect(()=>o.listen(f),[o,f]),x.createElement(BT,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:o})}var B0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vn=x.forwardRef(function({onClick:n,discover:r="render",prefetch:i="none",relative:o,reloadDocument:s,replace:c,state:f,target:h,to:d,preventScrollReset:m,viewTransition:y,...b},w){let{basename:E}=x.useContext(Kn),C=typeof d=="string"&&B0.test(d),A,T=!1;if(typeof d=="string"&&C&&(A=d,I0))try{let ee=new URL(window.location.href),P=d.startsWith("//")?new URL(ee.protocol+d):new URL(d),re=Pr(P.pathname,E);P.origin===ee.origin&&re!=null?d=re+P.search+P.hash:T=!0}catch{zn(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let N=ST(d,{relative:o}),[_,j,L]=iR(i,b),O=pR(d,{replace:c,state:f,target:h,preventScrollReset:m,relative:o,viewTransition:y});function $(ee){n&&n(ee),ee.defaultPrevented||O(ee)}let G=x.createElement("a",{...b,...L,href:A||N,onClick:T||s?n:$,ref:uR(w,j),target:h,"data-discover":!C&&r==="render"?"true":void 0});return _&&!C?x.createElement(x.Fragment,null,G,x.createElement(lR,{page:N})):G});Vn.displayName="Link";var fR=x.forwardRef(function({"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:c,viewTransition:f,children:h,...d},m){let y=Yo(c,{relative:d.relative}),b=on(),w=x.useContext(fc),{navigator:E,basename:C}=x.useContext(Kn),A=w!=null&&xR(y)&&f===!0,T=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,N=b.pathname,_=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(N=N.toLowerCase(),_=_?_.toLowerCase():null,T=T.toLowerCase()),_&&C&&(_=Pr(_,C)||_);const j=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let L=N===T||!o&&N.startsWith(T)&&N.charAt(j)==="/",O=_!=null&&(_===T||!o&&_.startsWith(T)&&_.charAt(T.length)==="/"),$={isActive:L,isPending:O,isTransitioning:A},G=L?n:void 0,ee;typeof i=="function"?ee=i($):ee=[i,L?"active":null,O?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let P=typeof s=="function"?s($):s;return x.createElement(Vn,{...d,"aria-current":G,className:ee,ref:m,style:P,to:c,viewTransition:f},typeof h=="function"?h($):h)});fR.displayName="NavLink";var dR=x.forwardRef(({discover:e="render",fetcherKey:n,navigate:r,reloadDocument:i,replace:o,state:s,method:c=zu,action:f,onSubmit:h,relative:d,preventScrollReset:m,viewTransition:y,...b},w)=>{let E=yR(),C=vR(f,{relative:d}),A=c.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&B0.test(f),N=_=>{if(h&&h(_),_.defaultPrevented)return;_.preventDefault();let j=_.nativeEvent.submitter,L=j?.getAttribute("formmethod")||c;E(j||_.currentTarget,{fetcherKey:n,method:L,navigate:r,replace:o,state:s,relative:d,preventScrollReset:m,viewTransition:y})};return x.createElement("form",{ref:w,method:A,action:C,onSubmit:i?h:N,...b,"data-discover":!T&&e==="render"?"true":void 0})});dR.displayName="Form";function hR(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U0(e){let n=x.useContext(fl);return ft(n,hR(e)),n}function pR(e,{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:c}={}){let f=Go(),h=on(),d=Yo(e,{relative:s});return x.useCallback(m=>{if($T(m,n)){m.preventDefault();let y=r!==void 0?r:jo(h)===jo(d);f(e,{replace:y,state:i,preventScrollReset:o,relative:s,viewTransition:c})}},[h,f,d,r,i,n,e,o,s,c])}function VB(e){zn(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(Uh(e)),r=x.useRef(!1),i=on(),o=x.useMemo(()=>GT(i.search,r.current?null:n.current),[i.search]),s=Go(),c=x.useCallback((f,h)=>{const d=Uh(typeof f=="function"?f(new URLSearchParams(o)):f);r.current=!0,s("?"+d,h)},[s,o]);return[o,c]}var mR=0,gR=()=>`__${String(++mR)}__`;function yR(){let{router:e}=U0("useSubmit"),{basename:n}=x.useContext(Kn),r=LT();return x.useCallback(async(i,o={})=>{let{action:s,method:c,encType:f,formData:h,body:d}=XT(i,n);if(o.navigate===!1){let m=o.fetcherKey||gR();await e.fetch(m,r,o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:h,body:d,formMethod:o.method||c,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,r])}function vR(e,{relative:n}={}){let{basename:r}=x.useContext(Kn),i=x.useContext(Pn);ft(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),s={...Yo(e||".",{relative:n})},c=on();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),h=f.getAll("index");if(h.some(m=>m==="")){f.delete("index"),h.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:zr([r,s.pathname])),jo(s)}function xR(e,{relative:n}={}){let r=x.useContext(N0);ft(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=U0("useViewTransitionState"),o=Yo(e,{relative:n});if(!r.isTransitioning)return!1;let s=Pr(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=Pr(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Ku(o.pathname,c)!=null||Ku(o.pathname,s)!=null}var hc=C0();const bR=cc(hc);var pc=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(){}},mc=typeof window>"u"||"Deno"in globalThis;function qn(){}function wR(e,n){return typeof e=="function"?e(n):e}function SR(e){return typeof e=="number"&&e>=0&&e!==1/0}function ER(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Hh(e,n){return typeof e=="function"?e(n):e}function kR(e,n){return typeof e=="function"?e(n):e}function Px(e,n){const{type:r="all",exact:i,fetchStatus:o,predicate:s,queryKey:c,stale:f}=e;if(c){if(i){if(n.queryHash!==Np(c,n.options))return!1}else if(!Oo(n.queryKey,c))return!1}if(r!=="all"){const h=n.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||o&&o!==n.state.fetchStatus||s&&!s(n))}function Ix(e,n){const{exact:r,status:i,predicate:o,mutationKey:s}=e;if(s){if(!n.options.mutationKey)return!1;if(r){if(Do(n.options.mutationKey)!==Do(s))return!1}else if(!Oo(n.options.mutationKey,s))return!1}return!(i&&n.state.status!==i||o&&!o(n))}function Np(e,n){return(n?.queryKeyHashFn||Do)(e)}function Do(e){return JSON.stringify(e,(n,r)=>Fh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Oo(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Oo(e[r],n[r])):!1}function H0(e,n){if(e===n)return e;const r=Bx(e)&&Bx(n);if(r||Fh(e)&&Fh(n)){const i=r?e:Object.keys(e),o=i.length,s=r?n:Object.keys(n),c=s.length,f=r?[]:{},h=new Set(i);let d=0;for(let m=0;m<c;m++){const y=r?m:s[m];(!r&&h.has(y)||r)&&e[y]===void 0&&n[y]===void 0?(f[y]=void 0,d++):(f[y]=H0(e[y],n[y]),f[y]===e[y]&&e[y]!==void 0&&d++)}return o===c&&d===o?e:f}return n}function Bx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Fh(e){if(!Ux(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!Ux(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ux(e){return Object.prototype.toString.call(e)==="[object Object]"}function CR(e){return new Promise(n=>{setTimeout(n,e)})}function AR(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?H0(e,n):n}function TR(e,n,r=0){const i=[...e,n];return r&&i.length>r?i.slice(1):i}function RR(e,n,r=0){const i=[n,...e];return r&&i.length>r?i.slice(0,-1):i}var Mp=Symbol();function F0(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Mp?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var _R=class extends pc{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!mc&&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"}},q0=new _R,NR=class extends pc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!mc&&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}},Xu=new NR;function MR(){let e,n;const r=new Promise((o,s)=>{e=o,n=s});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},r.reject=o=>{i({status:"rejected",reason:o}),n(o)},r}function jR(e){return Math.min(1e3*2**e,3e4)}function V0(e){return(e??"online")==="online"?Xu.isOnline():!0}var $0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function G0(e){let n=!1,r=0,i;const o=MR(),s=()=>o.status!=="pending",c=C=>{s()||(b(new $0(C)),e.abort?.())},f=()=>{n=!0},h=()=>{n=!1},d=()=>q0.isFocused()&&(e.networkMode==="always"||Xu.isOnline())&&e.canRun(),m=()=>V0(e.networkMode)&&e.canRun(),y=C=>{s()||(i?.(),o.resolve(C))},b=C=>{s()||(i?.(),o.reject(C))},w=()=>new Promise(C=>{i=A=>{(s()||d())&&C(A)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),E=()=>{if(s())return;let C;const A=r===0?e.initialPromise:void 0;try{C=A??e.fn()}catch(T){C=Promise.reject(T)}Promise.resolve(C).then(y).catch(T=>{if(s())return;const N=e.retry??(mc?0:3),_=e.retryDelay??jR,j=typeof _=="function"?_(r,T):_,L=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,T);if(n||!L){b(T);return}r++,e.onFail?.(r,T),CR(j).then(()=>d()?void 0:w()).then(()=>{n?b(T):E()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(i?.(),o),cancelRetry:f,continueRetry:h,canStart:m,start:()=>(m()?E():w().then(E),o)}}var DR=e=>setTimeout(e,0);function OR(){let e=[],n=0,r=f=>{f()},i=f=>{f()},o=DR;const s=f=>{n?e.push(f):o(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&o(()=>{i(()=>{f.forEach(h=>{r(h)})})})};return{batch:f=>{let h;n++;try{h=f()}finally{n--,n||c()}return h},batchCalls:f=>(...h)=>{s(()=>{f(...h)})},schedule:s,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{o=f}}}var Zt=OR(),Y0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),SR(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mc?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},LR=class extends Y0{#e;#t;#n;#a;#r;#l;#o;constructor(e){super(),this.#o=!1,this.#l=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=PR(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.#l,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=AR(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(qn).catch(qn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>kR(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mp||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Hh(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:!ER(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.#o?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(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},o=()=>{const f=F0(this.options,n),d=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(m),m})();return this.#o=!1,this.options.persister?this.options.persister(f,d,this):f(d)},c=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};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=G0({initialPromise:n?.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onFail:(f,h)=>{this.#i({type:"failed",failureCount:f,error:h})},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 $0){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,...zR(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 o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function zR(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:V0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function PR(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 IR=class extends pc{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const i=n.queryKey,o=n.queryHash??Np(i,n);let s=this.get(o);return s||(s=new LR({client:e,queryKey:i,queryHash:o,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(){Zt.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=>Px(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Px(e,r)):n}notify(e){Zt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},BR=class extends Y0{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||UR(),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=G0({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,s)=>{this.#a({type:"failed",failureCount:o,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 o=await this.#n.start();return await this.#t.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#a({type:"error",error:o})}}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),Zt.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function UR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var HR=class extends pc{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 BR({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(i),i}add(e){this.#e.add(e);const n=Su(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=Su(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=Su(e);if(typeof n=="string"){const i=this.#t.get(n)?.find(o=>o.state.status==="pending");return!i||i===e}else return!0}runNext(e){const n=Su(e);return typeof n=="string"?this.#t.get(n)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.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=>Ix(n,r))}findAll(e={}){return this.getAll().filter(n=>Ix(e,n))}notify(e){Zt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Zt.batch(()=>Promise.all(e.map(n=>n.continue().catch(qn))))}};function Su(e){return e.options.scope?.id}function Hx(e){return{onFetch:(n,r)=>{const i=n.options,o=n.fetchOptions?.meta?.fetchMore?.direction,s=n.state.data?.pages||[],c=n.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const d=async()=>{let m=!1;const y=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(n.signal.aborted?m=!0:n.signal.addEventListener("abort",()=>{m=!0}),n.signal)})},b=F0(n.options,n.fetchOptions),w=async(E,C,A)=>{if(m)return Promise.reject();if(C==null&&E.pages.length)return Promise.resolve(E);const N=(()=>{const O={client:n.client,queryKey:n.queryKey,pageParam:C,direction:A?"backward":"forward",meta:n.options.meta};return y(O),O})(),_=await b(N),{maxPages:j}=n.options,L=A?RR:TR;return{pages:L(E.pages,_,j),pageParams:L(E.pageParams,C,j)}};if(o&&s.length){const E=o==="backward",C=E?FR:Fx,A={pages:s,pageParams:c},T=C(i,A);f=await w(A,T,E)}else{const E=e??s.length;do{const C=h===0?c[0]??i.initialPageParam:Fx(i,f);if(h>0&&C==null)break;f=await w(f,C),h++}while(h<E)}return f};n.options.persister?n.fetchFn=()=>n.options.persister?.(d,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=d}}}function Fx(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 FR(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var qR=class{#e;#t;#n;#a;#r;#l;#o;#i;constructor(e={}){this.#e=e.queryCache||new IR,this.#t=e.mutationCache||new HR,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#o=q0.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Xu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#o?.(),this.#o=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(Hh(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=wR(n,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return Zt.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;Zt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Zt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},i=Zt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(i).then(qn).catch(qn)}invalidateQueries(e,n={}){return Zt.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=Zt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,r);return r.throwOnError||(s=s.catch(qn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(qn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Hh(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qn).catch(qn)}fetchInfiniteQuery(e){return e.behavior=Hx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qn).catch(qn)}ensureInfiniteQueryData(e){return e.behavior=Hx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Xu.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(Do(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(i=>{Oo(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,n){this.#r.set(Do(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(i=>{Oo(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=Np(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===Mp&&(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()}},VR=x.createContext(void 0),$R=({client:e,children:n})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(VR.Provider,{value:e,children:n}));const GR={theme:"system",setTheme:()=>null},K0=x.createContext(GR);function YR({children:e,defaultTheme:n="system",storageKey:r="ui-theme",...i}){const[o,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"),o==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";f.classList.add(h);return}f.classList.add(o)},[o]);const c={theme:o,setTheme:f=>{localStorage?.setItem(r,f),s(f)}};return g.jsx(K0.Provider,{...i,value:c,children:e})}const $B=()=>{const e=x.useContext(K0);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},Et="",GB="https://app.coconut.dev";async function Hi(e,n={}){const r=`${Et}${e}`,i={headers:{"Content-Type":"application/json",...n.headers},...n},o=await fetch(r,i);if(!o.ok)throw new Error(`API request failed: ${o.status} ${o.statusText}`);return o.json()}const YB=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}`,X0=x.createContext(void 0);function KR({children:e}){const[n,r]=x.useState({user:null,isAuthenticated:!1,isLoading:!0,authEnabled:!1}),i=x.useCallback(async()=>{try{const h=await Hi("/api/v1/auth/status");if(!h.success){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}if(!(h.data?.enabled||!1)){r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1});return}try{const m=await Hi("/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(h){console.error("Failed to check auth status:",h),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!1})}},[]);x.useEffect(()=>{i()},[i]);const o=x.useCallback(async(h,d)=>{const m=await Hi("/api/v1/auth/login",{method:"POST",body:JSON.stringify({email:h,password:d})});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(h,d,m)=>{const y=await Hi("/api/v1/auth/register",{method:"POST",body:JSON.stringify({email:h,password:d,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 Hi("/api/v1/auth/logout",{method:"POST"}),r({user:null,isAuthenticated:!1,isLoading:!1,authEnabled:!0})},[]),f=x.useCallback(async()=>{try{const h=await Hi("/api/v1/auth/me");h.success&&h.data?.user&&r(d=>({...d,user:h.data.user,isAuthenticated:!0}))}catch(h){console.error("Failed to refresh user:",h)}},[]);return g.jsx(X0.Provider,{value:{...n,login:o,register:s,logout:c,refreshUser:f,checkAuthStatus:i},children:e})}function Q0(){const e=x.useContext(X0);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const Z0=x.createContext(null);function XR(){const e=x.useContext(Z0);if(!e)throw new Error("useSidebarBadges must be used within SidebarBadgeProvider");return e}function QR({children:e,pollInterval:n=1e4}){const[r,i]=x.useState({codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0}),[o,s]=x.useState(!0),c=x.useCallback(async()=>{try{const[h,d,m]=await Promise.allSettled([fetch(`${Et}/api/v1/terminal/sessions`).then(b=>b.json()),fetch(`${Et}/api/v1/git/status`).then(b=>b.json()),fetch(`${Et}/api/v1/jobs`).then(b=>b.json())]),y={codeSessions:0,gitChanges:0,terminalSessions:0,runningScheduledJobs:0};if(h.status==="fulfilled"&&h.value?.sessions){const b=h.value.sessions;y.codeSessions=b.filter(w=>w.taskId?.startsWith("cp-")||w.taskId?.startsWith("sk-")).length,y.terminalSessions=b.filter(w=>!w.taskId?.startsWith("cp-")&&!w.taskId?.startsWith("sk-")).length}if(d.status==="fulfilled"&&d.value?.success&&d.value?.data?.changes&&(y.gitChanges=d.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(E=>{if(!E.runs||!Array.isArray(E.runs)||E.runs.length===0)return!1;const C=E.runs[0],A=C&&C.status==="running";return A&&console.log("[SidebarBadge] Running job detected:",{name:E.name,status:C.status,startedAt:C.startedAt,finishedAt:C.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(E=>E.name)})}i(y)}catch(h){console.error("Failed to fetch sidebar badges:",h)}finally{s(!1)}},[]);x.useEffect(()=>{c()},[c]),x.useEffect(()=>{const h=setInterval(c,n);return()=>clearInterval(h)},[c,n]),x.useEffect(()=>{const h=()=>{console.log("[SidebarBadge] Tab focused, refreshing badges..."),c()};return window.addEventListener("focus",h),()=>window.removeEventListener("focus",h)},[c]);const f={badges:r,loading:o,refresh:c};return g.jsx(Z0.Provider,{value:f,children:e})}function ZR({children:e}){const[n]=x.useState(()=>new qR({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return g.jsx($R,{client:n,children:g.jsx(YR,{defaultTheme:"system",storageKey:"coconut-ui-theme",children:g.jsx(KR,{children:g.jsx(QR,{children:e})})})})}const WR=1,JR=1e6;let rh=0;function e_(){return rh=(rh+1)%Number.MAX_SAFE_INTEGER,rh.toString()}const ah=new Map,qx=e=>{if(ah.has(e))return;const n=setTimeout(()=>{ah.delete(e),To({type:"REMOVE_TOAST",toastId:e})},JR);ah.set(e,n)},t_=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,WR)};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?qx(r):e.toasts.forEach(i=>{qx(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)}}},Iu=[];let Bu={toasts:[]};function To(e){Bu=t_(Bu,e),Iu.forEach(n=>{n(Bu)})}function qh({...e}){const n=e_(),r=o=>To({type:"UPDATE_TOAST",toast:{...o,id:n}}),i=()=>To({type:"DISMISS_TOAST",toastId:n});return To({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:o=>{o||i()}}}),{id:n,dismiss:i,update:r}}function n_(){const[e,n]=x.useState(Bu);return x.useEffect(()=>(Iu.push(n),()=>{const r=Iu.indexOf(n);r>-1&&Iu.splice(r,1)}),[e]),{...e,toast:qh,dismiss:r=>To({type:"DISMISS_TOAST",toastId:r})}}function me(e,n,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return n?.(o)}}function Vx(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function gc(...e){return n=>{let r=!1;const i=e.map(o=>{const s=Vx(o,n);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():Vx(e[o],null)}}}}function Qe(...e){return x.useCallback(gc(...e),e)}function r_(e,n){const r=x.createContext(n),i=s=>{const{children:c,...f}=s,h=x.useMemo(()=>f,Object.values(f));return g.jsx(r.Provider,{value:h,children:c})};i.displayName=e+"Provider";function o(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,o]}function Xn(e,n=[]){let r=[];function i(s,c){const f=x.createContext(c),h=r.length;r=[...r,c];const d=y=>{const{scope:b,children:w,...E}=y,C=b?.[e]?.[h]||f,A=x.useMemo(()=>E,Object.values(E));return g.jsx(C.Provider,{value:A,children:w})};d.displayName=s+"Provider";function m(y,b){const w=b?.[e]?.[h]||f,E=x.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${y}\` must be used within \`${s}\``)}return[d,m]}const o=()=>{const s=r.map(c=>x.createContext(c));return function(f){const h=f?.[e]||s;return x.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[i,a_(o,...n)]}function a_(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=i.reduce((f,{useScope:h,scopeName:d})=>{const y=h(s)[`__scope${d}`];return{...f,...y}},{});return x.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function nl(e){const n=i_(e),r=x.forwardRef((i,o)=>{const{children:s,...c}=i,f=x.Children.toArray(s),h=f.find(l_);if(h){const d=h.props.children,m=f.map(y=>y===h?x.Children.count(d)>1?x.Children.only(null):x.isValidElement(d)?d.props.children:null:y);return g.jsx(n,{...c,ref:o,children:x.isValidElement(d)?x.cloneElement(d,void 0,m):null})}return g.jsx(n,{...c,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var hl=nl("Slot");function i_(e){const n=x.forwardRef((r,i)=>{const{children:o,...s}=r;if(x.isValidElement(o)){const c=s_(o),f=o_(s,o.props);return o.type!==x.Fragment&&(f.ref=i?gc(i,c):c),x.cloneElement(o,f)}return x.Children.count(o)>1?x.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var W0=Symbol("radix.slottable");function J0(e){const n=({children:r})=>g.jsx(g.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=W0,n}function l_(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===W0}function o_(e,n){const r={...n};for(const i in n){const o=e[i],s=n[i];/^on[A-Z]/.test(i)?o&&s?r[i]=(...f)=>{const h=s(...f);return o(...f),h}:o&&(r[i]=o):i==="style"?r[i]={...o,...s}:i==="className"&&(r[i]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function s_(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 jp(e){const n=e+"CollectionProvider",[r,i]=Xn(n),[o,s]=r(n,{collectionRef:{current:null},itemMap:new Map}),c=C=>{const{scope:A,children:T}=C,N=ha.useRef(null),_=ha.useRef(new Map).current;return g.jsx(o,{scope:A,itemMap:_,collectionRef:N,children:T})};c.displayName=n;const f=e+"CollectionSlot",h=nl(f),d=ha.forwardRef((C,A)=>{const{scope:T,children:N}=C,_=s(f,T),j=Qe(A,_.collectionRef);return g.jsx(h,{ref:j,children:N})});d.displayName=f;const m=e+"CollectionItemSlot",y="data-radix-collection-item",b=nl(m),w=ha.forwardRef((C,A)=>{const{scope:T,children:N,..._}=C,j=ha.useRef(null),L=Qe(A,j),O=s(m,T);return ha.useEffect(()=>(O.itemMap.set(j,{ref:j,..._}),()=>void O.itemMap.delete(j))),g.jsx(b,{[y]:"",ref:L,children:N})});w.displayName=m;function E(C){const A=s(e+"CollectionConsumer",C);return ha.useCallback(()=>{const N=A.collectionRef.current;if(!N)return[];const _=Array.from(N.querySelectorAll(`[${y}]`));return Array.from(A.itemMap.values()).sort((O,$)=>_.indexOf(O.ref.current)-_.indexOf($.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:c,Slot:d,ItemSlot:w},E,i]}var u_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=u_.reduce((e,n)=>{const r=nl(`Primitive.${n}`),i=x.forwardRef((o,s)=>{const{asChild:c,...f}=o,h=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...f,ref:s})});return i.displayName=`Primitive.${n}`,{...e,[n]:i}},{});function Dp(e,n){e&&hc.flushSync(()=>e.dispatchEvent(n))}function kt(e){const n=x.useRef(e);return x.useEffect(()=>{n.current=e}),x.useMemo(()=>(...r)=>n.current?.(...r),[])}function c_(e,n=globalThis?.document){const r=kt(e);x.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return n.addEventListener("keydown",i,{capture:!0}),()=>n.removeEventListener("keydown",i,{capture:!0})},[r,n])}var f_="DismissableLayer",Vh="dismissableLayer.update",d_="dismissableLayer.pointerDownOutside",h_="dismissableLayer.focusOutside",$x,e1=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ko=x.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...h}=e,d=x.useContext(e1),[m,y]=x.useState(null),b=m?.ownerDocument??globalThis?.document,[,w]=x.useState({}),E=Qe(n,$=>y($)),C=Array.from(d.layers),[A]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),T=C.indexOf(A),N=m?C.indexOf(m):-1,_=d.layersWithOutsidePointerEventsDisabled.size>0,j=N>=T,L=m_($=>{const G=$.target,ee=[...d.branches].some(P=>P.contains(G));!j||ee||(o?.($),c?.($),$.defaultPrevented||f?.())},b),O=g_($=>{const G=$.target;[...d.branches].some(P=>P.contains(G))||(s?.($),c?.($),$.defaultPrevented||f?.())},b);return c_($=>{N===d.layers.size-1&&(i?.($),!$.defaultPrevented&&f&&($.preventDefault(),f()))},b),x.useEffect(()=>{if(m)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&($x=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Gx(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=$x)}},[m,b,r,d]),x.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Gx())},[m,d]),x.useEffect(()=>{const $=()=>w({});return document.addEventListener(Vh,$),()=>document.removeEventListener(Vh,$)},[]),g.jsx(Fe.div,{...h,ref:E,style:{pointerEvents:_?j?"auto":"none":void 0,...e.style},onFocusCapture:me(e.onFocusCapture,O.onFocusCapture),onBlurCapture:me(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:me(e.onPointerDownCapture,L.onPointerDownCapture)})});Ko.displayName=f_;var p_="DismissableLayerBranch",t1=x.forwardRef((e,n)=>{const r=x.useContext(e1),i=x.useRef(null),o=Qe(n,i);return x.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),g.jsx(Fe.div,{...e,ref:o})});t1.displayName=p_;function m_(e,n=globalThis?.document){const r=kt(e),i=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const s=f=>{if(f.target&&!i.current){let h=function(){n1(d_,r,d,{discrete:!0})};const d={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);i.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",s),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function g_(e,n=globalThis?.document){const r=kt(e),i=x.useRef(!1);return x.useEffect(()=>{const o=s=>{s.target&&!i.current&&n1(h_,r,{originalEvent:s},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Gx(){const e=new CustomEvent(Vh);document.dispatchEvent(e)}function n1(e,n,r,{discrete:i}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&o.addEventListener(e,n,{once:!0}),i?Dp(o,s):o.dispatchEvent(s)}var y_=Ko,v_=t1,cr=globalThis?.document?x.useLayoutEffect:()=>{},x_="Portal",Xo=x.forwardRef((e,n)=>{const{container:r,...i}=e,[o,s]=x.useState(!1);cr(()=>s(!0),[]);const c=r||o&&globalThis?.document?.body;return c?bR.createPortal(g.jsx(Fe.div,{...i,ref:n}),c):null});Xo.displayName=x_;function b_(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var qt=e=>{const{present:n,children:r}=e,i=w_(n),o=typeof r=="function"?r({present:i.isPresent}):x.Children.only(r),s=Qe(i.ref,S_(o));return typeof r=="function"||i.isPresent?x.cloneElement(o,{ref:s}):null};qt.displayName="Presence";function w_(e){const[n,r]=x.useState(),i=x.useRef(null),o=x.useRef(e),s=x.useRef("none"),c=e?"mounted":"unmounted",[f,h]=b_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const d=Eu(i.current);s.current=f==="mounted"?d:"none"},[f]),cr(()=>{const d=i.current,m=o.current;if(m!==e){const b=s.current,w=Eu(d);e?h("MOUNT"):w==="none"||d?.display==="none"?h("UNMOUNT"):h(m&&b!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),cr(()=>{if(n){let d;const m=n.ownerDocument.defaultView??window,y=w=>{const C=Eu(i.current).includes(CSS.escape(w.animationName));if(w.target===n&&C&&(h("ANIMATION_END"),!o.current)){const A=n.style.animationFillMode;n.style.animationFillMode="forwards",d=m.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=A)})}},b=w=>{w.target===n&&(s.current=Eu(i.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",y),n.addEventListener("animationend",y),()=>{m.clearTimeout(d),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",y),n.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:x.useCallback(d=>{i.current=d?getComputedStyle(d):null,r(d)},[])}}function Eu(e){return e?.animationName||"none"}function S_(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 E_=k0[" useInsertionEffect ".trim().toString()]||cr;function pl({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){const[o,s,c]=k_({defaultProp:n,onChange:r}),f=e!==void 0,h=f?e:o;{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 d=x.useCallback(m=>{if(f){const y=C_(m)?m(e):m;y!==e&&c.current?.(y)}else s(m)},[f,e,s,c]);return[h,d]}function k_({defaultProp:e,onChange:n}){const[r,i]=x.useState(e),o=x.useRef(r),s=x.useRef(n);return E_(()=>{s.current=n},[n]),x.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,i,s]}function C_(e){return typeof e=="function"}var A_=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"}),T_="VisuallyHidden",yc=x.forwardRef((e,n)=>g.jsx(Fe.span,{...e,ref:n,style:{...A_,...e.style}}));yc.displayName=T_;var R_=yc,Op="ToastProvider",[Lp,__,N_]=jp("Toast"),[r1,KB]=Xn("Toast",[N_]),[M_,vc]=r1(Op),a1=e=>{const{__scopeToast:n,label:r="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:c}=e,[f,h]=x.useState(null),[d,m]=x.useState(0),y=x.useRef(!1),b=x.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Op}\`. Expected non-empty \`string\`.`),g.jsx(Lp.Provider,{scope:n,children:g.jsx(M_,{scope:n,label:r,duration:i,swipeDirection:o,swipeThreshold:s,toastCount:d,viewport:f,onViewportChange:h,onToastAdd:x.useCallback(()=>m(w=>w+1),[]),onToastRemove:x.useCallback(()=>m(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:y,isClosePausedRef:b,children:c})})};a1.displayName=Op;var i1="ToastViewport",j_=["F8"],$h="toast.viewportPause",Gh="toast.viewportResume",l1=x.forwardRef((e,n)=>{const{__scopeToast:r,hotkey:i=j_,label:o="Notifications ({hotkey})",...s}=e,c=vc(i1,r),f=__(r),h=x.useRef(null),d=x.useRef(null),m=x.useRef(null),y=x.useRef(null),b=Qe(n,y,c.onViewportChange),w=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=c.toastCount>0;x.useEffect(()=>{const A=T=>{i.length!==0&&i.every(_=>T[_]||T.code===_)&&y.current?.focus()};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[i]),x.useEffect(()=>{const A=h.current,T=y.current;if(E&&A&&T){const N=()=>{if(!c.isClosePausedRef.current){const O=new CustomEvent($h);T.dispatchEvent(O),c.isClosePausedRef.current=!0}},_=()=>{if(c.isClosePausedRef.current){const O=new CustomEvent(Gh);T.dispatchEvent(O),c.isClosePausedRef.current=!1}},j=O=>{!A.contains(O.relatedTarget)&&_()},L=()=>{A.contains(document.activeElement)||_()};return A.addEventListener("focusin",N),A.addEventListener("focusout",j),A.addEventListener("pointermove",N),A.addEventListener("pointerleave",L),window.addEventListener("blur",N),window.addEventListener("focus",_),()=>{A.removeEventListener("focusin",N),A.removeEventListener("focusout",j),A.removeEventListener("pointermove",N),A.removeEventListener("pointerleave",L),window.removeEventListener("blur",N),window.removeEventListener("focus",_)}}},[E,c.isClosePausedRef]);const C=x.useCallback(({tabbingDirection:A})=>{const N=f().map(_=>{const j=_.ref.current,L=[j,...$_(j)];return A==="forwards"?L:L.reverse()});return(A==="forwards"?N.reverse():N).flat()},[f]);return x.useEffect(()=>{const A=y.current;if(A){const T=N=>{const _=N.altKey||N.ctrlKey||N.metaKey;if(N.key==="Tab"&&!_){const L=document.activeElement,O=N.shiftKey;if(N.target===A&&O){d.current?.focus();return}const ee=C({tabbingDirection:O?"backwards":"forwards"}),P=ee.findIndex(re=>re===L);ih(ee.slice(P+1))?N.preventDefault():O?d.current?.focus():m.current?.focus()}};return A.addEventListener("keydown",T),()=>A.removeEventListener("keydown",T)}},[f,C]),g.jsxs(v_,{ref:h,role:"region","aria-label":o.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&g.jsx(Yh,{ref:d,onFocusFromOutsideViewport:()=>{const A=C({tabbingDirection:"forwards"});ih(A)}}),g.jsx(Lp.Slot,{scope:r,children:g.jsx(Fe.ol,{tabIndex:-1,...s,ref:b})}),E&&g.jsx(Yh,{ref:m,onFocusFromOutsideViewport:()=>{const A=C({tabbingDirection:"backwards"});ih(A)}})]})});l1.displayName=i1;var o1="ToastFocusProxy",Yh=x.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:i,...o}=e,s=vc(o1,r);return g.jsx(yc,{tabIndex:0,...o,ref:n,style:{position:"fixed"},onFocus:c=>{const f=c.relatedTarget;!s.viewport?.contains(f)&&i()}})});Yh.displayName=o1;var Qo="Toast",D_="toast.swipeStart",O_="toast.swipeMove",L_="toast.swipeCancel",z_="toast.swipeEnd",s1=x.forwardRef((e,n)=>{const{forceMount:r,open:i,defaultOpen:o,onOpenChange:s,...c}=e,[f,h]=pl({prop:i,defaultProp:o??!0,onChange:s,caller:Qo});return g.jsx(qt,{present:r||f,children:g.jsx(B_,{open:f,...c,ref:n,onClose:()=>h(!1),onPause:kt(e.onPause),onResume:kt(e.onResume),onSwipeStart:me(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:me(e.onSwipeMove,d=>{const{x:m,y}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${y}px`)}),onSwipeCancel:me(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:me(e.onSwipeEnd,d=>{const{x:m,y}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${y}px`),h(!1)})})})});s1.displayName=Qo;var[P_,I_]=r1(Qo,{onClose(){}}),B_=x.forwardRef((e,n)=>{const{__scopeToast:r,type:i="foreground",duration:o,open:s,onClose:c,onEscapeKeyDown:f,onPause:h,onResume:d,onSwipeStart:m,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...E}=e,C=vc(Qo,r),[A,T]=x.useState(null),N=Qe(n,q=>T(q)),_=x.useRef(null),j=x.useRef(null),L=o||C.duration,O=x.useRef(0),$=x.useRef(L),G=x.useRef(0),{onToastAdd:ee,onToastRemove:P}=C,re=kt(()=>{A?.contains(document.activeElement)&&C.viewport?.focus(),c()}),Q=x.useCallback(q=>{!q||q===1/0||(window.clearTimeout(G.current),O.current=new Date().getTime(),G.current=window.setTimeout(re,q))},[re]);x.useEffect(()=>{const q=C.viewport;if(q){const le=()=>{Q($.current),d?.()},z=()=>{const K=new Date().getTime()-O.current;$.current=$.current-K,window.clearTimeout(G.current),h?.()};return q.addEventListener($h,z),q.addEventListener(Gh,le),()=>{q.removeEventListener($h,z),q.removeEventListener(Gh,le)}}},[C.viewport,L,h,d,Q]),x.useEffect(()=>{s&&!C.isClosePausedRef.current&&Q(L)},[s,L,C.isClosePausedRef,Q]),x.useEffect(()=>(ee(),()=>P()),[ee,P]);const W=x.useMemo(()=>A?m1(A):null,[A]);return C.viewport?g.jsxs(g.Fragment,{children:[W&&g.jsx(U_,{__scopeToast:r,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:W}),g.jsx(P_,{scope:r,onClose:re,children:hc.createPortal(g.jsx(Lp.ItemSlot,{scope:r,children:g.jsx(y_,{asChild:!0,onEscapeKeyDown:me(f,()=>{C.isFocusedToastEscapeKeyDownRef.current||re(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx(Fe.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":C.swipeDirection,...E,ref:N,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:me(e.onKeyDown,q=>{q.key==="Escape"&&(f?.(q.nativeEvent),q.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,re()))}),onPointerDown:me(e.onPointerDown,q=>{q.button===0&&(_.current={x:q.clientX,y:q.clientY})}),onPointerMove:me(e.onPointerMove,q=>{if(!_.current)return;const le=q.clientX-_.current.x,z=q.clientY-_.current.y,K=!!j.current,U=["left","right"].includes(C.swipeDirection),ae=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,k=U?ae(0,le):0,X=U?0:ae(0,z),oe=q.pointerType==="touch"?10:2,M={x:k,y:X},fe={originalEvent:q,delta:M};K?(j.current=M,ku(O_,y,fe,{discrete:!1})):Yx(M,C.swipeDirection,oe)?(j.current=M,ku(D_,m,fe,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(le)>oe||Math.abs(z)>oe)&&(_.current=null)}),onPointerUp:me(e.onPointerUp,q=>{const le=j.current,z=q.target;if(z.hasPointerCapture(q.pointerId)&&z.releasePointerCapture(q.pointerId),j.current=null,_.current=null,le){const K=q.currentTarget,U={originalEvent:q,delta:le};Yx(le,C.swipeDirection,C.swipeThreshold)?ku(z_,w,U,{discrete:!0}):ku(L_,b,U,{discrete:!0}),K.addEventListener("click",ae=>ae.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),U_=e=>{const{__scopeToast:n,children:r,...i}=e,o=vc(Qo,n),[s,c]=x.useState(!1),[f,h]=x.useState(!1);return q_(()=>c(!0)),x.useEffect(()=>{const d=window.setTimeout(()=>h(!0),1e3);return()=>window.clearTimeout(d)},[]),f?null:g.jsx(Xo,{asChild:!0,children:g.jsx(yc,{...i,children:s&&g.jsxs(g.Fragment,{children:[o.label," ",r]})})})},H_="ToastTitle",u1=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Fe.div,{...i,ref:n})});u1.displayName=H_;var F_="ToastDescription",c1=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e;return g.jsx(Fe.div,{...i,ref:n})});c1.displayName=F_;var f1="ToastAction",d1=x.forwardRef((e,n)=>{const{altText:r,...i}=e;return r.trim()?g.jsx(p1,{altText:r,asChild:!0,children:g.jsx(zp,{...i,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${f1}\`. Expected non-empty \`string\`.`),null)});d1.displayName=f1;var h1="ToastClose",zp=x.forwardRef((e,n)=>{const{__scopeToast:r,...i}=e,o=I_(h1,r);return g.jsx(p1,{asChild:!0,children:g.jsx(Fe.button,{type:"button",...i,ref:n,onClick:me(e.onClick,o.onClose)})})});zp.displayName=h1;var p1=x.forwardRef((e,n)=>{const{__scopeToast:r,altText:i,...o}=e;return g.jsx(Fe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:n})});function m1(e){const n=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&n.push(i.textContent),V_(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const c=i.dataset.radixToastAnnounceAlt;c&&n.push(c)}else n.push(...m1(i))}}),n}function ku(e,n,r,{discrete:i}){const o=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&o.addEventListener(e,n,{once:!0}),i?Dp(o,s):o.dispatchEvent(s)}var Yx=(e,n,r=0)=>{const i=Math.abs(e.x),o=Math.abs(e.y),s=i>o;return n==="left"||n==="right"?s&&i>r:!s&&o>r};function q_(e=()=>{}){const n=kt(e);cr(()=>{let r=0,i=0;return r=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(i)}},[n])}function V_(e){return e.nodeType===e.ELEMENT_NODE}function $_(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function ih(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var G_=a1,g1=l1,y1=s1,v1=u1,x1=c1,b1=d1,w1=zp;function S1(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=S1(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function E1(){for(var e,n,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=S1(e))&&(i&&(i+=" "),i+=n);return i}const Kx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Xx=E1,xc=(e,n)=>r=>{var i;if(n?.variants==null)return Xx(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=n,c=Object.keys(o).map(d=>{const m=r?.[d],y=s?.[d];if(m===null)return null;const b=Kx(m)||Kx(y);return o[d][b]}),f=r&&Object.entries(r).reduce((d,m)=>{let[y,b]=m;return b===void 0||(d[y]=b),d},{}),h=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((d,m)=>{let{class:y,className:b,...w}=m;return Object.entries(w).every(E=>{let[C,A]=E;return Array.isArray(A)?A.includes({...s,...f}[C]):{...s,...f}[C]===A})?[...d,y,b]:d},[]);return Xx(e,c,h,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 Y_=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase()),Qx=e=>{const n=K_(e);return n.charAt(0).toUpperCase()+n.slice(1)},k1=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim(),X_=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 Z_=x.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:s,iconNode:c,...f},h)=>x.createElement("svg",{ref:h,...Q_,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:k1("lucide",o),...!s&&!X_(f)&&{"aria-hidden":"true"},...f},[...c.map(([d,m])=>x.createElement(d,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 ke=(e,n)=>{const r=x.forwardRef(({className:i,...o},s)=>x.createElement(Z_,{ref:s,iconNode:n,className:k1(`lucide-${Y_(Qx(e))}`,`lucide-${e}`,i),...o}));return r.displayName=Qx(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 W_=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],J_=ke("activity",W_);/**
|
|
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 eN=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],tN=ke("bell",eN);/**
|
|
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 nN=[["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"}]],Ro=ke("bot",nN);/**
|
|
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 rN=[["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"}]],aN=ke("brain",rN);/**
|
|
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 iN=[["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"}]],lN=ke("calendar-clock",iN);/**
|
|
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 oN=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],sN=ke("calendar",oN);/**
|
|
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 uN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Pp=ke("check",uN);/**
|
|
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 cN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fN=ke("chevron-down",cN);/**
|
|
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 dN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hN=ke("chevron-right",dN);/**
|
|
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 pN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],mN=ke("circle",pN);/**
|
|
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 gN=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],yN=ke("code-xml",gN);/**
|
|
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 vN=[["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"}]],xN=ke("copy",vN);/**
|
|
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 bN=[["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"}]],wN=ke("expand",bN);/**
|
|
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 SN=[["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"}]],Qu=ke("file-text",SN);/**
|
|
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 EN=[["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"}]],Zx=ke("file",EN);/**
|
|
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 kN=[["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"}]],CN=ke("files",kN);/**
|
|
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 AN=[["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"}]],TN=ke("folder-open",AN);/**
|
|
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 RN=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],_N=ke("folder-tree",RN);/**
|
|
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 NN=[["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"}]],Uu=ke("folder",NN);/**
|
|
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 MN=[["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"}]],C1=ke("git-branch",MN);/**
|
|
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 jN=[["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"}]],DN=ke("history",jN);/**
|
|
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 ON=[["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"}]],LN=ke("house",ON);/**
|
|
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 zN=[["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"}]],PN=ke("id-card",zN);/**
|
|
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 IN=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],BN=ke("inbox",IN);/**
|
|
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 UN=[["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"}]],HN=ke("key",UN);/**
|
|
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 FN=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Zu=ke("loader-circle",FN);/**
|
|
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 qN=[["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"}]],VN=ke("log-out",qN);/**
|
|
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 $N=[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]],GN=ke("mail-open",$N);/**
|
|
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 YN=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],KN=ke("mail",YN);/**
|
|
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 XN=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],QN=ke("menu",XN);/**
|
|
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 ZN=[["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"}]],lh=ke("message-circle",ZN);/**
|
|
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 WN=[["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"}]],JN=ke("network",WN);/**
|
|
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 eM=[["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"}]],tM=ke("notebook",eM);/**
|
|
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 nM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],rM=ke("panel-left",nM);/**
|
|
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 aM=[["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"}]],iM=ke("plug",aM);/**
|
|
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 lM=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],oM=ke("plus",lM);/**
|
|
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 sM=[["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"}]],uM=ke("save",sM);/**
|
|
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 cM=[["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"}]],A1=ke("send",cM);/**
|
|
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 fM=[["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"}]],dM=ke("settings",fM);/**
|
|
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 hM=[["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"}]],pM=ke("shield",hM);/**
|
|
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 mM=[["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"}]],gM=ke("sliders-horizontal",mM);/**
|
|
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 yM=[["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"}]],Hu=ke("sparkles",yM);/**
|
|
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 vM=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],xM=ke("square-check-big",vM);/**
|
|
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 bM=[["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"}]],wM=ke("square-pen",bM);/**
|
|
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 SM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],EM=ke("square",SM);/**
|
|
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 kM=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],CM=ke("terminal",kM);/**
|
|
312
|
+
* @license lucide-react v0.542.0 - ISC
|
|
313
|
+
*
|
|
314
|
+
* This source code is licensed under the ISC license.
|
|
315
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
316
|
+
*/const AM=[["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"}]],TM=ke("trash-2",AM);/**
|
|
317
|
+
* @license lucide-react v0.542.0 - ISC
|
|
318
|
+
*
|
|
319
|
+
* This source code is licensed under the ISC license.
|
|
320
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
321
|
+
*/const RM=[["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"}]],_M=ke("tree-palm",RM);/**
|
|
322
|
+
* @license lucide-react v0.542.0 - ISC
|
|
323
|
+
*
|
|
324
|
+
* This source code is licensed under the ISC license.
|
|
325
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
326
|
+
*/const NM=[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]],MM=ke("user-pen",NM);/**
|
|
327
|
+
* @license lucide-react v0.542.0 - ISC
|
|
328
|
+
*
|
|
329
|
+
* This source code is licensed under the ISC license.
|
|
330
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
331
|
+
*/const jM=[["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"}]],DM=ke("user",jM);/**
|
|
332
|
+
* @license lucide-react v0.542.0 - ISC
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the ISC license.
|
|
335
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/const OM=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],LM=ke("users",OM);/**
|
|
337
|
+
* @license lucide-react v0.542.0 - ISC
|
|
338
|
+
*
|
|
339
|
+
* This source code is licensed under the ISC license.
|
|
340
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
341
|
+
*/const zM=[["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"}]],Kh=ke("wrench",zM);/**
|
|
342
|
+
* @license lucide-react v0.542.0 - ISC
|
|
343
|
+
*
|
|
344
|
+
* This source code is licensed under the ISC license.
|
|
345
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
346
|
+
*/const PM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Zi=ke("x",PM);/**
|
|
347
|
+
* @license lucide-react v0.542.0 - ISC
|
|
348
|
+
*
|
|
349
|
+
* This source code is licensed under the ISC license.
|
|
350
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
351
|
+
*/const IM=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],BM=ke("zap",IM),Ip="-",UM=e=>{const n=FM(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const f=c.split(Ip);return f[0]===""&&f.length!==1&&f.shift(),T1(f,n)||HM(c)},getConflictingClassGroupIds:(c,f)=>{const h=r[c]||[];return f&&i[c]?[...h,...i[c]]:h}}},T1=(e,n)=>{if(e.length===0)return n.classGroupId;const r=e[0],i=n.nextPart.get(r),o=i?T1(e.slice(1),i):void 0;if(o)return o;if(n.validators.length===0)return;const s=e.join(Ip);return n.validators.find(({validator:c})=>c(s))?.classGroupId},Wx=/^\[(.+)\]$/,HM=e=>{if(Wx.test(e)){const n=Wx.exec(e)[1],r=n?.substring(0,n.indexOf(":"));if(r)return"arbitrary.."+r}},FM=e=>{const{theme:n,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const o in r)Xh(r[o],i,o,n);return i},Xh=(e,n,r,i)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?n:Jx(n,o);s.classGroupId=r;return}if(typeof o=="function"){if(qM(o)){Xh(o(i),n,r,i);return}n.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,c])=>{Xh(c,Jx(n,s),r,i)})})},Jx=(e,n)=>{let r=e;return n.split(Ip).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},qM=e=>e.isThemeGetter,VM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=new Map,i=new Map;const o=(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 o(s,c),c},set(s,c){r.has(s)?r.set(s,c):o(s,c)}}},Qh="!",Zh=":",$M=Zh.length,GM=e=>{const{prefix:n,experimentalParseClassName:r}=e;let i=o=>{const s=[];let c=0,f=0,h=0,d;for(let E=0;E<o.length;E++){let C=o[E];if(c===0&&f===0){if(C===Zh){s.push(o.slice(h,E)),h=E+$M;continue}if(C==="/"){d=E;continue}}C==="["?c++:C==="]"?c--:C==="("?f++:C===")"&&f--}const m=s.length===0?o:o.substring(h),y=YM(m),b=y!==m,w=d&&d>h?d-h:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(n){const o=n+Zh,s=i;i=c=>c.startsWith(o)?s(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(r){const o=i;i=s=>r({className:s,parseClassName:o})}return i},YM=e=>e.endsWith(Qh)?e.substring(0,e.length-1):e.startsWith(Qh)?e.substring(1):e,KM=e=>{const n=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let s=[];return i.forEach(c=>{c[0]==="["||n[c]?(o.push(...s.sort(),c),s=[]):s.push(c)}),o.push(...s.sort()),o}},XM=e=>({cache:VM(e.cacheSize),parseClassName:GM(e),sortModifiers:KM(e),...UM(e)}),QM=/\s+/,ZM=(e,n)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:s}=n,c=[],f=e.trim().split(QM);let h="";for(let d=f.length-1;d>=0;d-=1){const m=f[d],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}=r(m);if(y){h=m+(h.length>0?" "+h:h);continue}let A=!!C,T=i(A?E.substring(0,C):E);if(!T){if(!A){h=m+(h.length>0?" "+h:h);continue}if(T=i(E),!T){h=m+(h.length>0?" "+h:h);continue}A=!1}const N=s(b).join(":"),_=w?N+Qh:N,j=_+T;if(c.includes(j))continue;c.push(j);const L=o(T,A);for(let O=0;O<L.length;++O){const $=L[O];c.push(_+$)}h=m+(h.length>0?" "+h:h)}return h};function WM(){let e=0,n,r,i="";for(;e<arguments.length;)(n=arguments[e++])&&(r=R1(n))&&(i&&(i+=" "),i+=r);return i}const R1=e=>{if(typeof e=="string")return e;let n,r="";for(let i=0;i<e.length;i++)e[i]&&(n=R1(e[i]))&&(r&&(r+=" "),r+=n);return r};function JM(e,...n){let r,i,o,s=c;function c(h){const d=n.reduce((m,y)=>y(m),e());return r=XM(d),i=r.cache.get,o=r.cache.set,s=f,f(h)}function f(h){const d=i(h);if(d)return d;const m=ZM(h,r);return o(h,m),m}return function(){return s(WM.apply(null,arguments))}}const Rt=e=>{const n=r=>r[e]||[];return n.isThemeGetter=!0,n},_1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,N1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ej=/^\d+\/\d+$/,tj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nj=/\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$/,rj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ij=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fi=e=>ej.test(e),Pe=e=>!!e&&!Number.isNaN(Number(e)),fa=e=>!!e&&Number.isInteger(Number(e)),oh=e=>e.endsWith("%")&&Pe(e.slice(0,-1)),Lr=e=>tj.test(e),lj=()=>!0,oj=e=>nj.test(e)&&!rj.test(e),M1=()=>!1,sj=e=>aj.test(e),uj=e=>ij.test(e),cj=e=>!ye(e)&&!ve(e),fj=e=>ml(e,O1,M1),ye=e=>_1.test(e),Ha=e=>ml(e,L1,oj),sh=e=>ml(e,gj,Pe),eb=e=>ml(e,j1,M1),dj=e=>ml(e,D1,uj),Cu=e=>ml(e,z1,sj),ve=e=>N1.test(e),xo=e=>gl(e,L1),hj=e=>gl(e,yj),tb=e=>gl(e,j1),pj=e=>gl(e,O1),mj=e=>gl(e,D1),Au=e=>gl(e,z1,!0),ml=(e,n,r)=>{const i=_1.exec(e);return i?i[1]?n(i[1]):r(i[2]):!1},gl=(e,n,r=!1)=>{const i=N1.exec(e);return i?i[1]?n(i[1]):r:!1},j1=e=>e==="position"||e==="percentage",D1=e=>e==="image"||e==="url",O1=e=>e==="length"||e==="size"||e==="bg-size",L1=e=>e==="length",gj=e=>e==="number",yj=e=>e==="family-name",z1=e=>e==="shadow",vj=()=>{const e=Rt("color"),n=Rt("font"),r=Rt("text"),i=Rt("font-weight"),o=Rt("tracking"),s=Rt("leading"),c=Rt("breakpoint"),f=Rt("container"),h=Rt("spacing"),d=Rt("radius"),m=Rt("shadow"),y=Rt("inset-shadow"),b=Rt("text-shadow"),w=Rt("drop-shadow"),E=Rt("blur"),C=Rt("perspective"),A=Rt("aspect"),T=Rt("ease"),N=Rt("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...j(),ve,ye],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],G=()=>[ve,ye,h],ee=()=>[Fi,"full","auto",...G()],P=()=>[fa,"none","subgrid",ve,ye],re=()=>["auto",{span:["full",fa,ve,ye]},fa,ve,ye],Q=()=>[fa,"auto",ve,ye],W=()=>["auto","min","max","fr",ve,ye],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...G()],K=()=>[Fi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],U=()=>[e,ve,ye],ae=()=>[...j(),tb,eb,{position:[ve,ye]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",pj,fj,{size:[ve,ye]}],oe=()=>[oh,xo,Ha],M=()=>["","none","full",d,ve,ye],fe=()=>["",Pe,xo,Ha],Ce=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[Pe,oh,tb,eb],De=()=>["","none",E,ve,ye],lt=()=>["none",Pe,ve,ye],Ze=()=>["none",Pe,ve,ye],dt=()=>[Pe,ve,ye],$t=()=>[Fi,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lr],breakpoint:[Lr],color:[lj],container:[Lr],"drop-shadow":[Lr],ease:["in","out","in-out"],font:[cj],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lr],shadow:[Lr],spacing:["px",Pe],text:[Lr],"text-shadow":[Lr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fi,ye,ve,A]}],container:["container"],columns:[{columns:[Pe,ye,ve,f]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:L()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[fa,"auto",ve,ye]}],basis:[{basis:[Fi,"full","auto",f,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Fi,"auto","initial","none",ye]}],grow:[{grow:["",Pe,ve,ye]}],shrink:[{shrink:["",Pe,ve,ye]}],order:[{order:[fa,"first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],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":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[f,"screen",...K()]}],"min-w":[{"min-w":[f,"screen","none",...K()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,xo,Ha]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ve,sh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",oh,ye]}],"font-family":[{font:[hj,ye,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:[o,ve,ye]}],"line-clamp":[{"line-clamp":[Pe,"none",ve,sh]}],leading:[{leading:[s,...G()]}],"list-image":[{"list-image":["none",ve,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ve,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ve,Ha]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[Pe,"auto",ve,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve,ye]}],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",ve,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},fa,ve,ye],radial:["",ve,ye],conic:[fa,ve,ye]},mj,dj]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],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:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ce(),"hidden","none"]}],"divide-style":[{divide:[...Ce(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...Ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ve,ye]}],"outline-w":[{outline:["",Pe,xo,Ha]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",m,Au,Cu]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",y,Au,Cu]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[Pe,Ha]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",b,Au,Cu]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[Pe,ve,ye]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[ve,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"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":j()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ve,ye]}],filter:[{filter:["","none",ve,ye]}],blur:[{blur:De()}],brightness:[{brightness:[Pe,ve,ye]}],contrast:[{contrast:[Pe,ve,ye]}],"drop-shadow":[{"drop-shadow":["","none",w,Au,Cu]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",Pe,ve,ye]}],"hue-rotate":[{"hue-rotate":[Pe,ve,ye]}],invert:[{invert:["",Pe,ve,ye]}],saturate:[{saturate:[Pe,ve,ye]}],sepia:[{sepia:["",Pe,ve,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",ve,ye]}],"backdrop-blur":[{"backdrop-blur":De()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ve,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ve,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ve,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ve,ye]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ve,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ve,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ve,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ve,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ve,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ve,ye]}],ease:[{ease:["linear","initial",T,ve,ye]}],delay:[{delay:[Pe,ve,ye]}],animate:[{animate:["none",N,ve,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ve,ye]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:lt()}],"rotate-x":[{"rotate-x":lt()}],"rotate-y":[{"rotate-y":lt()}],"rotate-z":[{"rotate-z":lt()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:dt()}],"skew-x":[{"skew-x":dt()}],"skew-y":[{"skew-y":dt()}],transform:[{transform:[ve,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$t()}],"translate-x":[{"translate-x":$t()}],"translate-y":[{"translate-y":$t()}],"translate-z":[{"translate-z":$t()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"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",ve,ye]}],"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":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"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",ve,ye]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[Pe,xo,Ha,sh]}],stroke:[{stroke:["none",...U()]}],"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"]}},xj=JM(vj);function ce(...e){return xj(E1(e))}const bj=G_,P1=x.forwardRef(({className:e,...n},r)=>g.jsx(g1,{ref:r,className:ce("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}));P1.displayName=g1.displayName;const wj=xc("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(y1,{ref:i,className:ce(wj({variant:n}),e),...r}));I1.displayName=y1.displayName;const Sj=x.forwardRef(({className:e,...n},r)=>g.jsx(b1,{ref:r,className:ce("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}));Sj.displayName=b1.displayName;const B1=x.forwardRef(({className:e,...n},r)=>g.jsx(w1,{ref:r,className:ce("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(Zi,{className:"h-4 w-4"})}));B1.displayName=w1.displayName;const U1=x.forwardRef(({className:e,...n},r)=>g.jsx(v1,{ref:r,className:ce("text-sm font-semibold",e),...n}));U1.displayName=v1.displayName;const H1=x.forwardRef(({className:e,...n},r)=>g.jsx(x1,{ref:r,className:ce("text-sm opacity-90",e),...n}));H1.displayName=x1.displayName;function Ej(){const{toasts:e}=n_();return g.jsxs(bj,{children:[e.map(function({id:n,title:r,description:i,action:o,...s}){return g.jsxs(I1,{...s,children:[g.jsxs("div",{className:"grid gap-1",children:[r&&g.jsx(U1,{children:r}),i&&g.jsx(H1,{children:i})]}),o,g.jsx(B1,{})]},n)}),g.jsx(P1,{})]})}function kj({children:e}){const{isAuthenticated:n,authEnabled:r,isLoading:i}=Q0(),o=on();return i?g.jsx("div",{className:"min-h-screen flex items-center justify-center",children:g.jsx(Zu,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):r?n?g.jsx(g.Fragment,{children:e}):g.jsx(L0,{to:"/login",state:{from:o},replace:!0}):g.jsx(g.Fragment,{children:e})}function Cj(){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(Zu,{className:"h-8 w-8 animate-spin text-primary"}),g.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]})})}const uh=768;function F1(){const[e,n]=x.useState(void 0);return x.useEffect(()=>{const r=window.matchMedia(`(max-width: ${uh-1}px)`),i=()=>{n(window.innerWidth<uh)};return r.addEventListener("change",i),n(window.innerWidth<uh),()=>r.removeEventListener("change",i)},[]),!!e}const Bp=xc("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"}}),pt=x.forwardRef(({className:e,variant:n,size:r,asChild:i=!1,...o},s)=>{const c=i?hl:"button";return g.jsx(c,{className:ce(Bp({variant:n,size:r,className:e})),ref:s,...o})});pt.displayName="Button";const q1=x.forwardRef(({className:e,type:n,...r},i)=>g.jsx("input",{type:n,className:ce("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}));q1.displayName="Input";var Aj="Separator",nb="horizontal",Tj=["horizontal","vertical"],V1=x.forwardRef((e,n)=>{const{decorative:r,orientation:i=nb,...o}=e,s=Rj(i)?i:nb,f=r?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return g.jsx(Fe.div,{"data-orientation":s,...f,...o,ref:n})});V1.displayName=Aj;function Rj(e){return Tj.includes(e)}var $1=V1;const G1=x.forwardRef(({className:e,orientation:n="horizontal",decorative:r=!0,...i},o)=>g.jsx($1,{ref:o,decorative:r,orientation:n,className:ce("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...i}));G1.displayName=$1.displayName;var _j=k0[" useId ".trim().toString()]||(()=>{}),Nj=0;function Ga(e){const[n,r]=x.useState(_j());return cr(()=>{r(i=>i??String(Nj++))},[e]),e||(n?`radix-${n}`:"")}var ch="focusScope.autoFocusOnMount",fh="focusScope.autoFocusOnUnmount",rb={bubbles:!1,cancelable:!0},Mj="FocusScope",Up=x.forwardRef((e,n)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[f,h]=x.useState(null),d=kt(o),m=kt(s),y=x.useRef(null),b=Qe(n,C=>h(C)),w=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(i){let C=function(_){if(w.paused||!f)return;const j=_.target;f.contains(j)?y.current=j:pa(y.current,{select:!0})},A=function(_){if(w.paused||!f)return;const j=_.relatedTarget;j!==null&&(f.contains(j)||pa(y.current,{select:!0}))},T=function(_){if(document.activeElement===document.body)for(const L of _)L.removedNodes.length>0&&pa(f)};document.addEventListener("focusin",C),document.addEventListener("focusout",A);const N=new MutationObserver(T);return f&&N.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",A),N.disconnect()}}},[i,f,w.paused]),x.useEffect(()=>{if(f){ib.add(w);const C=document.activeElement;if(!f.contains(C)){const T=new CustomEvent(ch,rb);f.addEventListener(ch,d),f.dispatchEvent(T),T.defaultPrevented||(jj(Pj(Y1(f)),{select:!0}),document.activeElement===C&&pa(f))}return()=>{f.removeEventListener(ch,d),setTimeout(()=>{const T=new CustomEvent(fh,rb);f.addEventListener(fh,m),f.dispatchEvent(T),T.defaultPrevented||pa(C??document.body,{select:!0}),f.removeEventListener(fh,m),ib.remove(w)},0)}}},[f,d,m,w]);const E=x.useCallback(C=>{if(!r&&!i||w.paused)return;const A=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,T=document.activeElement;if(A&&T){const N=C.currentTarget,[_,j]=Dj(N);_&&j?!C.shiftKey&&T===j?(C.preventDefault(),r&&pa(_,{select:!0})):C.shiftKey&&T===_&&(C.preventDefault(),r&&pa(j,{select:!0})):T===N&&C.preventDefault()}},[r,i,w.paused]);return g.jsx(Fe.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});Up.displayName=Mj;function jj(e,{select:n=!1}={}){const r=document.activeElement;for(const i of e)if(pa(i,{select:n}),document.activeElement!==r)return}function Dj(e){const n=Y1(e),r=ab(n,e),i=ab(n.reverse(),e);return[r,i]}function Y1(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function ab(e,n){for(const r of e)if(!Oj(r,{upTo:n}))return r}function Oj(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 Lj(e){return e instanceof HTMLInputElement&&"select"in e}function pa(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Lj(e)&&n&&e.select()}}var ib=zj();function zj(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=lb(e,n),e.unshift(n)},remove(n){e=lb(e,n),e[0]?.resume()}}}function lb(e,n){const r=[...e],i=r.indexOf(n);return i!==-1&&r.splice(i,1),r}function Pj(e){return e.filter(n=>n.tagName!=="A")}var dh=0;function K1(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ob()),document.body.insertAdjacentElement("beforeend",e[1]??ob()),dh++,()=>{dh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),dh--}},[])}function ob(){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 or=function(){return or=Object.assign||function(n){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},or.apply(this,arguments)};function X1(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 o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)n.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r}function Ij(e,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,s;i<o;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 Fu="right-scroll-bar-position",qu="width-before-scroll-bar",Bj="with-scroll-bars-hidden",Uj="--removed-body-scroll-bar-size";function hh(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function Hj(e,n){var r=x.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=n,r.facade}var Fj=typeof window<"u"?x.useLayoutEffect:x.useEffect,sb=new WeakMap;function qj(e,n){var r=Hj(null,function(i){return e.forEach(function(o){return hh(o,i)})});return Fj(function(){var i=sb.get(r);if(i){var o=new Set(i),s=new Set(e),c=r.current;o.forEach(function(f){s.has(f)||hh(f,null)}),s.forEach(function(f){o.has(f)||hh(f,c)})}sb.set(r,e)},[e]),r}function Vj(e){return e}function $j(e,n){n===void 0&&(n=Vj);var r=[],i=!1,o={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 h=function(){var m=c;c=[],m.forEach(s)},d=function(){return Promise.resolve().then(h)};d(),r={push:function(m){c.push(m),d()},filter:function(m){return c=c.filter(m),r}}}};return o}function Gj(e){e===void 0&&(e={});var n=$j(null);return n.options=or({async:!0,ssr:!1},e),n}var Q1=function(e){var n=e.sideCar,r=X1(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,or({},r))};Q1.isSideCarExport=!0;function Yj(e,n){return e.useMedium(n),Q1}var Z1=Gj(),ph=function(){},bc=x.forwardRef(function(e,n){var r=x.useRef(null),i=x.useState({onScrollCapture:ph,onWheelCapture:ph,onTouchMoveCapture:ph}),o=i[0],s=i[1],c=e.forwardProps,f=e.children,h=e.className,d=e.removeScrollBar,m=e.enabled,y=e.shards,b=e.sideCar,w=e.noRelative,E=e.noIsolation,C=e.inert,A=e.allowPinchZoom,T=e.as,N=T===void 0?"div":T,_=e.gapMode,j=X1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=b,O=qj([r,n]),$=or(or({},j),o);return x.createElement(x.Fragment,null,m&&x.createElement(L,{sideCar:Z1,removeScrollBar:d,shards:y,noRelative:w,noIsolation:E,inert:C,setCallbacks:s,allowPinchZoom:!!A,lockRef:r,gapMode:_}),c?x.cloneElement(x.Children.only(f),or(or({},$),{ref:O})):x.createElement(N,or({},$,{className:h,ref:O}),f))});bc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};bc.classNames={fullWidth:qu,zeroRight:Fu};var Kj=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Xj(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Kj();return n&&e.setAttribute("nonce",n),e}function Qj(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function Zj(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Wj=function(){var e=0,n=null;return{add:function(r){e==0&&(n=Xj())&&(Qj(n,r),Zj(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Jj=function(){var e=Wj();return function(n,r){x.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},W1=function(){var e=Jj(),n=function(r){var i=r.styles,o=r.dynamic;return e(i,o),null};return n},eD={left:0,top:0,right:0,gap:0},mh=function(e){return parseInt(e||"",10)||0},tD=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],i=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[mh(r),mh(i),mh(o)]},nD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eD;var n=tD(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])}},rD=W1(),Wi="data-scroll-locked",aD=function(e,n,r,i){var o=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
352
|
+
.`.concat(Bj,` {
|
|
353
|
+
overflow: hidden `).concat(i,`;
|
|
354
|
+
padding-right: `).concat(f,"px ").concat(i,`;
|
|
355
|
+
}
|
|
356
|
+
body[`).concat(Wi,`] {
|
|
357
|
+
overflow: hidden `).concat(i,`;
|
|
358
|
+
overscroll-behavior: contain;
|
|
359
|
+
`).concat([n&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
360
|
+
padding-left: `.concat(o,`px;
|
|
361
|
+
padding-top: `).concat(s,`px;
|
|
362
|
+
padding-right: `).concat(c,`px;
|
|
363
|
+
margin-left:0;
|
|
364
|
+
margin-top:0;
|
|
365
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
366
|
+
`),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.`).concat(Fu,` {
|
|
370
|
+
right: `).concat(f,"px ").concat(i,`;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.`).concat(qu,` {
|
|
374
|
+
margin-right: `).concat(f,"px ").concat(i,`;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.`).concat(Fu," .").concat(Fu,` {
|
|
378
|
+
right: 0 `).concat(i,`;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.`).concat(qu," .").concat(qu,` {
|
|
382
|
+
margin-right: 0 `).concat(i,`;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
body[`).concat(Wi,`] {
|
|
386
|
+
`).concat(Uj,": ").concat(f,`px;
|
|
387
|
+
}
|
|
388
|
+
`)},ub=function(){var e=parseInt(document.body.getAttribute(Wi)||"0",10);return isFinite(e)?e:0},iD=function(){x.useEffect(function(){return document.body.setAttribute(Wi,(ub()+1).toString()),function(){var e=ub()-1;e<=0?document.body.removeAttribute(Wi):document.body.setAttribute(Wi,e.toString())}},[])},lD=function(e){var n=e.noRelative,r=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;iD();var s=x.useMemo(function(){return nD(o)},[o]);return x.createElement(rD,{styles:aD(s,!n,o,r?"":"!important")})},Wh=!1;if(typeof window<"u")try{var Tu=Object.defineProperty({},"passive",{get:function(){return Wh=!0,!0}});window.addEventListener("test",Tu,Tu),window.removeEventListener("test",Tu,Tu)}catch{Wh=!1}var qi=Wh?{passive:!1}:!1,oD=function(e){return e.tagName==="TEXTAREA"},J1=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!oD(e)&&r[n]==="visible")},sD=function(e){return J1(e,"overflowY")},uD=function(e){return J1(e,"overflowX")},cb=function(e,n){var r=n.ownerDocument,i=n;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=ew(e,i);if(o){var s=tw(e,i),c=s[1],f=s[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},cD=function(e){var n=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[n,r,i]},fD=function(e){var n=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[n,r,i]},ew=function(e,n){return e==="v"?sD(n):uD(n)},tw=function(e,n){return e==="v"?cD(n):fD(n)},dD=function(e,n){return e==="h"&&n==="rtl"?-1:1},hD=function(e,n,r,i,o){var s=dD(e,window.getComputedStyle(n).direction),c=s*i,f=r.target,h=n.contains(f),d=!1,m=c>0,y=0,b=0;do{if(!f)break;var w=tw(e,f),E=w[0],C=w[1],A=w[2],T=C-A-s*E;(E||T)&&ew(e,f)&&(y+=T,b+=E);var N=f.parentNode;f=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(m&&Math.abs(y)<1||!m&&Math.abs(b)<1)&&(d=!0),d},Ru=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},fb=function(e){return[e.deltaX,e.deltaY]},db=function(e){return e&&"current"in e?e.current:e},pD=function(e,n){return e[0]===n[0]&&e[1]===n[1]},mD=function(e){return`
|
|
389
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
390
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
391
|
+
`)},gD=0,Vi=[];function yD(e){var n=x.useRef([]),r=x.useRef([0,0]),i=x.useRef(),o=x.useState(gD++)[0],s=x.useState(W1)[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(o));var C=Ij([e.lockRef.current],(e.shards||[]).map(db),!0).filter(Boolean);return C.forEach(function(A){return A.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),C.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=x.useCallback(function(C,A){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!c.current.allowPinchZoom;var T=Ru(C),N=r.current,_="deltaX"in C?C.deltaX:N[0]-T[0],j="deltaY"in C?C.deltaY:N[1]-T[1],L,O=C.target,$=Math.abs(_)>Math.abs(j)?"h":"v";if("touches"in C&&$==="h"&&O.type==="range")return!1;var G=cb($,O);if(!G)return!0;if(G?L=$:(L=$==="v"?"h":"v",G=cb($,O)),!G)return!1;if(!i.current&&"changedTouches"in C&&(_||j)&&(i.current=L),!L)return!0;var ee=i.current||L;return hD(ee,A,C,ee==="h"?_:j)},[]),h=x.useCallback(function(C){var A=C;if(!(!Vi.length||Vi[Vi.length-1]!==s)){var T="deltaY"in A?fb(A):Ru(A),N=n.current.filter(function(L){return L.name===A.type&&(L.target===A.target||A.target===L.shadowParent)&&pD(L.delta,T)})[0];if(N&&N.should){A.cancelable&&A.preventDefault();return}if(!N){var _=(c.current.shards||[]).map(db).filter(Boolean).filter(function(L){return L.contains(A.target)}),j=_.length>0?f(A,_[0]):!c.current.noIsolation;j&&A.cancelable&&A.preventDefault()}}},[]),d=x.useCallback(function(C,A,T,N){var _={name:C,delta:A,target:T,should:N,shadowParent:vD(T)};n.current.push(_),setTimeout(function(){n.current=n.current.filter(function(j){return j!==_})},1)},[]),m=x.useCallback(function(C){r.current=Ru(C),i.current=void 0},[]),y=x.useCallback(function(C){d(C.type,fb(C),C.target,f(C,e.lockRef.current))},[]),b=x.useCallback(function(C){d(C.type,Ru(C),C.target,f(C,e.lockRef.current))},[]);x.useEffect(function(){return Vi.push(s),e.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:b}),document.addEventListener("wheel",h,qi),document.addEventListener("touchmove",h,qi),document.addEventListener("touchstart",m,qi),function(){Vi=Vi.filter(function(C){return C!==s}),document.removeEventListener("wheel",h,qi),document.removeEventListener("touchmove",h,qi),document.removeEventListener("touchstart",m,qi)}},[]);var w=e.removeScrollBar,E=e.inert;return x.createElement(x.Fragment,null,E?x.createElement(s,{styles:mD(o)}):null,w?x.createElement(lD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vD(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const xD=Yj(Z1,yD);var Hp=x.forwardRef(function(e,n){return x.createElement(bc,or({},e,{ref:n,sideCar:xD}))});Hp.classNames=bc.classNames;var bD=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},$i=new WeakMap,_u=new WeakMap,Nu={},gh=0,nw=function(e){return e&&(e.host||nw(e.parentNode))},wD=function(e,n){return n.map(function(r){if(e.contains(r))return r;var i=nw(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})},SD=function(e,n,r,i){var o=wD(n,Array.isArray(e)?e:[e]);Nu[r]||(Nu[r]=new WeakMap);var s=Nu[r],c=[],f=new Set,h=new Set(o),d=function(y){!y||f.has(y)||(f.add(y),d(y.parentNode))};o.forEach(d);var m=function(y){!y||h.has(y)||Array.prototype.forEach.call(y.children,function(b){if(f.has(b))m(b);else try{var w=b.getAttribute(i),E=w!==null&&w!=="false",C=($i.get(b)||0)+1,A=(s.get(b)||0)+1;$i.set(b,C),s.set(b,A),c.push(b),C===1&&E&&_u.set(b,!0),A===1&&b.setAttribute(r,"true"),E||b.setAttribute(i,"true")}catch(T){console.error("aria-hidden: cannot operate on ",b,T)}})};return m(n),f.clear(),gh++,function(){c.forEach(function(y){var b=$i.get(y)-1,w=s.get(y)-1;$i.set(y,b),s.set(y,w),b||(_u.has(y)||y.removeAttribute(i),_u.delete(y)),w||y.removeAttribute(r)}),gh--,gh||($i=new WeakMap,$i=new WeakMap,_u=new WeakMap,Nu={})}},rw=function(e,n,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=bD(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),SD(i,o,r,"aria-hidden")):function(){return null}},wc="Dialog",[aw,iw]=Xn(wc),[ED,Qn]=aw(wc),lw=e=>{const{__scopeDialog:n,children:r,open:i,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,f=x.useRef(null),h=x.useRef(null),[d,m]=pl({prop:i,defaultProp:o??!1,onChange:s,caller:wc});return g.jsx(ED,{scope:n,triggerRef:f,contentRef:h,contentId:Ga(),titleId:Ga(),descriptionId:Ga(),open:d,onOpenChange:m,onOpenToggle:x.useCallback(()=>m(y=>!y),[m]),modal:c,children:r})};lw.displayName=wc;var ow="DialogTrigger",sw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qn(ow,r),s=Qe(n,o.triggerRef);return g.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vp(o.open),...i,ref:s,onClick:me(e.onClick,o.onOpenToggle)})});sw.displayName=ow;var Fp="DialogPortal",[kD,uw]=aw(Fp,{forceMount:void 0}),cw=e=>{const{__scopeDialog:n,forceMount:r,children:i,container:o}=e,s=Qn(Fp,n);return g.jsx(kD,{scope:n,forceMount:r,children:x.Children.map(i,c=>g.jsx(qt,{present:r||s.open,children:g.jsx(Xo,{asChild:!0,container:o,children:c})}))})};cw.displayName=Fp;var Wu="DialogOverlay",fw=x.forwardRef((e,n)=>{const r=uw(Wu,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Qn(Wu,e.__scopeDialog);return s.modal?g.jsx(qt,{present:i||s.open,children:g.jsx(AD,{...o,ref:n})}):null});fw.displayName=Wu;var CD=nl("DialogOverlay.RemoveScroll"),AD=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qn(Wu,r);return g.jsx(Hp,{as:CD,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx(Fe.div,{"data-state":Vp(o.open),...i,ref:n,style:{pointerEvents:"auto",...i.style}})})}),Ya="DialogContent",dw=x.forwardRef((e,n)=>{const r=uw(Ya,e.__scopeDialog),{forceMount:i=r.forceMount,...o}=e,s=Qn(Ya,e.__scopeDialog);return g.jsx(qt,{present:i||s.open,children:s.modal?g.jsx(TD,{...o,ref:n}):g.jsx(RD,{...o,ref:n})})});dw.displayName=Ya;var TD=x.forwardRef((e,n)=>{const r=Qn(Ya,e.__scopeDialog),i=x.useRef(null),o=Qe(n,r.contentRef,i);return x.useEffect(()=>{const s=i.current;if(s)return rw(s)},[]),g.jsx(hw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:me(e.onCloseAutoFocus,s=>{s.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:me(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault())})}),RD=x.forwardRef((e,n)=>{const r=Qn(Ya,e.__scopeDialog),i=x.useRef(!1),o=x.useRef(!1);return g.jsx(hw,{...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,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;r.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),hw=x.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,f=Qn(Ya,r),h=x.useRef(null),d=Qe(n,h);return K1(),g.jsxs(g.Fragment,{children:[g.jsx(Up,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s,children:g.jsx(Ko,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Vp(f.open),...c,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(ND,{titleId:f.titleId}),g.jsx(jD,{contentRef:h,descriptionId:f.descriptionId})]})]})}),qp="DialogTitle",pw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qn(qp,r);return g.jsx(Fe.h2,{id:o.titleId,...i,ref:n})});pw.displayName=qp;var mw="DialogDescription",gw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qn(mw,r);return g.jsx(Fe.p,{id:o.descriptionId,...i,ref:n})});gw.displayName=mw;var yw="DialogClose",vw=x.forwardRef((e,n)=>{const{__scopeDialog:r,...i}=e,o=Qn(yw,r);return g.jsx(Fe.button,{type:"button",...i,ref:n,onClick:me(e.onClick,()=>o.onOpenChange(!1))})});vw.displayName=yw;function Vp(e){return e?"open":"closed"}var xw="DialogTitleWarning",[_D,bw]=r_(xw,{contentName:Ya,titleName:qp,docsSlug:"dialog"}),ND=({titleId:e})=>{const n=bw(xw),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
392
|
+
|
|
393
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
394
|
+
|
|
395
|
+
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},MD="DialogDescriptionWarning",jD=({contentRef:e,descriptionId:n})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${bw(MD).contentName}}.`;return x.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(i))},[i,e,n]),null},$p=lw,ww=sw,Gp=cw,Zo=fw,Wo=dw,Jo=pw,es=gw,Sc=vw;const Sw=$p,DD=Gp,Ew=x.forwardRef(({className:e,...n},r)=>g.jsx(Zo,{className:ce("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}));Ew.displayName=Zo.displayName;const OD=xc("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"}}),Yp=x.forwardRef(({side:e="right",className:n,children:r,...i},o)=>g.jsxs(DD,{children:[g.jsx(Ew,{}),g.jsxs(Wo,{ref:o,className:ce(OD({side:e}),n),...i,children:[r,g.jsxs(Sc,{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(Zi,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Yp.displayName=Wo.displayName;const Kp=({className:e,...n})=>g.jsx("div",{className:ce("flex flex-col space-y-2 text-center sm:text-left",e),...n});Kp.displayName="SheetHeader";const Xp=x.forwardRef(({className:e,...n},r)=>g.jsx(Jo,{ref:r,className:ce("text-lg font-semibold text-foreground",e),...n}));Xp.displayName=Jo.displayName;const kw=x.forwardRef(({className:e,...n},r)=>g.jsx(es,{ref:r,className:ce("text-sm text-muted-foreground",e),...n}));kw.displayName=es.displayName;function hb({className:e,...n}){return g.jsx("div",{className:ce("animate-pulse rounded-md bg-muted",e),...n})}const LD=["top","right","bottom","left"],xa=Math.min,bn=Math.max,Ju=Math.round,Mu=Math.floor,ur=e=>({x:e,y:e}),zD={left:"right",right:"left",bottom:"top",top:"bottom"},PD={start:"end",end:"start"};function Jh(e,n,r){return bn(e,xa(n,r))}function Ir(e,n){return typeof e=="function"?e(n):e}function Br(e){return e.split("-")[0]}function yl(e){return e.split("-")[1]}function Qp(e){return e==="x"?"y":"x"}function Zp(e){return e==="y"?"height":"width"}const ID=new Set(["top","bottom"]);function sr(e){return ID.has(Br(e))?"y":"x"}function Wp(e){return Qp(sr(e))}function BD(e,n,r){r===void 0&&(r=!1);const i=yl(e),o=Wp(e),s=Zp(o);let c=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(c=ec(c)),[c,ec(c)]}function UD(e){const n=ec(e);return[ep(e),n,ep(n)]}function ep(e){return e.replace(/start|end/g,n=>PD[n])}const pb=["left","right"],mb=["right","left"],HD=["top","bottom"],FD=["bottom","top"];function qD(e,n,r){switch(e){case"top":case"bottom":return r?n?mb:pb:n?pb:mb;case"left":case"right":return n?HD:FD;default:return[]}}function VD(e,n,r,i){const o=yl(e);let s=qD(Br(e),r==="start",i);return o&&(s=s.map(c=>c+"-"+o),n&&(s=s.concat(s.map(ep)))),s}function ec(e){return e.replace(/left|right|bottom|top/g,n=>zD[n])}function $D(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cw(e){return typeof e!="number"?$D(e):{top:e,right:e,bottom:e,left:e}}function tc(e){const{x:n,y:r,width:i,height:o}=e;return{width:i,height:o,top:r,left:n,right:n+i,bottom:r+o,x:n,y:r}}function gb(e,n,r){let{reference:i,floating:o}=e;const s=sr(n),c=Wp(n),f=Zp(c),h=Br(n),d=s==="y",m=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,b=i[f]/2-o[f]/2;let w;switch(h){case"top":w={x:m,y:i.y-o.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-o.width,y};break;default:w={x:i.x,y:i.y}}switch(yl(n)){case"start":w[c]-=b*(r&&d?-1:1);break;case"end":w[c]+=b*(r&&d?-1:1);break}return w}const GD=async(e,n,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(n));let d=await c.getElementRects({reference:e,floating:n,strategy:o}),{x:m,y}=gb(d,i,h),b=i,w={},E=0;for(let C=0;C<f.length;C++){const{name:A,fn:T}=f[C],{x:N,y:_,data:j,reset:L}=await T({x:m,y,initialPlacement:i,placement:b,strategy:o,middlewareData:w,rects:d,platform:c,elements:{reference:e,floating:n}});m=N??m,y=_??y,w={...w,[A]:{...w[A],...j}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(b=L.placement),L.rects&&(d=L.rects===!0?await c.getElementRects({reference:e,floating:n,strategy:o}):L.rects),{x:m,y}=gb(d,b,h)),C=-1)}return{x:m,y,placement:b,strategy:o,middlewareData:w}};async function Lo(e,n){var r;n===void 0&&(n={});const{x:i,y:o,platform:s,rects:c,elements:f,strategy:h}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=Ir(n,e),E=Cw(w),A=f[b?y==="floating"?"reference":"floating":y],T=tc(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:d,rootBoundary:m,strategy:h})),N=y==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),j=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},L=tc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:N,offsetParent:_,strategy:h}):N);return{top:(T.top-L.top+E.top)/j.y,bottom:(L.bottom-T.bottom+E.bottom)/j.y,left:(T.left-L.left+E.left)/j.x,right:(L.right-T.right+E.right)/j.x}}const YD=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:i,placement:o,rects:s,platform:c,elements:f,middlewareData:h}=n,{element:d,padding:m=0}=Ir(e,n)||{};if(d==null)return{};const y=Cw(m),b={x:r,y:i},w=Wp(o),E=Zp(w),C=await c.getDimensions(d),A=w==="y",T=A?"top":"left",N=A?"bottom":"right",_=A?"clientHeight":"clientWidth",j=s.reference[E]+s.reference[w]-b[w]-s.floating[E],L=b[w]-s.reference[w],O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d));let $=O?O[_]:0;(!$||!await(c.isElement==null?void 0:c.isElement(O)))&&($=f.floating[_]||s.floating[E]);const G=j/2-L/2,ee=$/2-C[E]/2-1,P=xa(y[T],ee),re=xa(y[N],ee),Q=P,W=$-C[E]-re,q=$/2-C[E]/2+G,le=Jh(Q,q,W),z=!h.arrow&&yl(o)!=null&&q!==le&&s.reference[E]/2-(q<Q?P:re)-C[E]/2<0,K=z?q<Q?q-Q:q-W:0;return{[w]:b[w]+K,data:{[w]:le,centerOffset:q-le-K,...z&&{alignmentOffset:K}},reset:z}}}),KD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,i;const{placement:o,middlewareData:s,rects:c,initialPlacement:f,platform:h,elements:d}=n,{mainAxis:m=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...A}=Ir(e,n);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const T=Br(o),N=sr(f),_=Br(f)===f,j=await(h.isRTL==null?void 0:h.isRTL(d.floating)),L=b||(_||!C?[ec(f)]:UD(f)),O=E!=="none";!b&&O&&L.push(...VD(f,C,E,j));const $=[f,...L],G=await Lo(n,A),ee=[];let P=((i=s.flip)==null?void 0:i.overflows)||[];if(m&&ee.push(G[T]),y){const q=BD(o,c,j);ee.push(G[q[0]],G[q[1]])}if(P=[...P,{placement:o,overflows:ee}],!ee.every(q=>q<=0)){var re,Q;const q=(((re=s.flip)==null?void 0:re.index)||0)+1,le=$[q];if(le&&(!(y==="alignment"?N!==sr(le):!1)||P.every(U=>sr(U.placement)===N?U.overflows[0]>0:!0)))return{data:{index:q,overflows:P},reset:{placement:le}};let z=(Q=P.filter(K=>K.overflows[0]<=0).sort((K,U)=>K.overflows[1]-U.overflows[1])[0])==null?void 0:Q.placement;if(!z)switch(w){case"bestFit":{var W;const K=(W=P.filter(U=>{if(O){const ae=sr(U.placement);return ae===N||ae==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(ae=>ae>0).reduce((ae,k)=>ae+k,0)]).sort((U,ae)=>U[1]-ae[1])[0])==null?void 0:W[0];K&&(z=K);break}case"initialPlacement":z=f;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function yb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function vb(e){return LD.some(n=>e[n]>=0)}const XD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r}=n,{strategy:i="referenceHidden",...o}=Ir(e,n);switch(i){case"referenceHidden":{const s=await Lo(n,{...o,elementContext:"reference"}),c=yb(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:vb(c)}}}case"escaped":{const s=await Lo(n,{...o,altBoundary:!0}),c=yb(s,r.floating);return{data:{escapedOffsets:c,escaped:vb(c)}}}default:return{}}}}},Aw=new Set(["left","top"]);async function QD(e,n){const{placement:r,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=Br(r),f=yl(r),h=sr(r)==="y",d=Aw.has(c)?-1:1,m=s&&h?-1:1,y=Ir(n,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),h?{x:w*m,y:b*d}:{x:b*d,y:w*m}}const ZD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,i;const{x:o,y:s,placement:c,middlewareData:f}=n,h=await QD(n,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+h.x,y:s+h.y,data:{...h,placement:c}}}}},WD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:i,placement:o}=n,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:A=>{let{x:T,y:N}=A;return{x:T,y:N}}},...h}=Ir(e,n),d={x:r,y:i},m=await Lo(n,h),y=sr(Br(o)),b=Qp(y);let w=d[b],E=d[y];if(s){const A=b==="y"?"top":"left",T=b==="y"?"bottom":"right",N=w+m[A],_=w-m[T];w=Jh(N,w,_)}if(c){const A=y==="y"?"top":"left",T=y==="y"?"bottom":"right",N=E+m[A],_=E-m[T];E=Jh(N,E,_)}const C=f.fn({...n,[b]:w,[y]:E});return{...C,data:{x:C.x-r,y:C.y-i,enabled:{[b]:s,[y]:c}}}}}},JD=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:i,placement:o,rects:s,middlewareData:c}=n,{offset:f=0,mainAxis:h=!0,crossAxis:d=!0}=Ir(e,n),m={x:r,y:i},y=sr(o),b=Qp(y);let w=m[b],E=m[y];const C=Ir(f,n),A=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(h){const _=b==="y"?"height":"width",j=s.reference[b]-s.floating[_]+A.mainAxis,L=s.reference[b]+s.reference[_]-A.mainAxis;w<j?w=j:w>L&&(w=L)}if(d){var T,N;const _=b==="y"?"width":"height",j=Aw.has(Br(o)),L=s.reference[y]-s.floating[_]+(j&&((T=c.offset)==null?void 0:T[y])||0)+(j?0:A.crossAxis),O=s.reference[y]+s.reference[_]+(j?0:((N=c.offset)==null?void 0:N[y])||0)-(j?A.crossAxis:0);E<L?E=L:E>O&&(E=O)}return{[b]:w,[y]:E}}}},eO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,i;const{placement:o,rects:s,platform:c,elements:f}=n,{apply:h=()=>{},...d}=Ir(e,n),m=await Lo(n,d),y=Br(o),b=yl(o),w=sr(o)==="y",{width:E,height:C}=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=C-m.top-m.bottom,_=E-m.left-m.right,j=xa(C-m[A],N),L=xa(E-m[T],_),O=!n.middlewareData.shift;let $=j,G=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(G=_),(i=n.middlewareData.shift)!=null&&i.enabled.y&&($=N),O&&!b){const P=bn(m.left,0),re=bn(m.right,0),Q=bn(m.top,0),W=bn(m.bottom,0);w?G=E-2*(P!==0||re!==0?P+re:bn(m.left,m.right)):$=C-2*(Q!==0||W!==0?Q+W:bn(m.top,m.bottom))}await h({...n,availableWidth:G,availableHeight:$});const ee=await c.getDimensions(f.floating);return E!==ee.width||C!==ee.height?{reset:{rects:!0}}:{}}}};function Ec(){return typeof window<"u"}function vl(e){return Tw(e)?(e.nodeName||"").toLowerCase():"#document"}function wn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function dr(e){var n;return(n=(Tw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function Tw(e){return Ec()?e instanceof Node||e instanceof wn(e).Node:!1}function Gn(e){return Ec()?e instanceof Element||e instanceof wn(e).Element:!1}function fr(e){return Ec()?e instanceof HTMLElement||e instanceof wn(e).HTMLElement:!1}function xb(e){return!Ec()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wn(e).ShadowRoot}const tO=new Set(["inline","contents"]);function ts(e){const{overflow:n,overflowX:r,overflowY:i,display:o}=Yn(e);return/auto|scroll|overlay|hidden|clip/.test(n+i+r)&&!tO.has(o)}const nO=new Set(["table","td","th"]);function rO(e){return nO.has(vl(e))}const aO=[":popover-open",":modal"];function kc(e){return aO.some(n=>{try{return e.matches(n)}catch{return!1}})}const iO=["transform","translate","scale","rotate","perspective"],lO=["transform","translate","scale","rotate","perspective","filter"],oO=["paint","layout","strict","content"];function Jp(e){const n=em(),r=Gn(e)?Yn(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)||lO.some(i=>(r.willChange||"").includes(i))||oO.some(i=>(r.contain||"").includes(i))}function sO(e){let n=ba(e);for(;fr(n)&&!rl(n);){if(Jp(n))return n;if(kc(n))return null;n=ba(n)}return null}function em(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uO=new Set(["html","body","#document"]);function rl(e){return uO.has(vl(e))}function Yn(e){return wn(e).getComputedStyle(e)}function Cc(e){return Gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ba(e){if(vl(e)==="html")return e;const n=e.assignedSlot||e.parentNode||xb(e)&&e.host||dr(e);return xb(n)?n.host:n}function Rw(e){const n=ba(e);return rl(n)?e.ownerDocument?e.ownerDocument.body:e.body:fr(n)&&ts(n)?n:Rw(n)}function zo(e,n,r){var i;n===void 0&&(n=[]),r===void 0&&(r=!0);const o=Rw(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),c=wn(o);if(s){const f=tp(c);return n.concat(c,c.visualViewport||[],ts(o)?o:[],f&&r?zo(f):[])}return n.concat(o,zo(o,[],r))}function tp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function _w(e){const n=Yn(e);let r=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const o=fr(e),s=o?e.offsetWidth:r,c=o?e.offsetHeight:i,f=Ju(r)!==s||Ju(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function tm(e){return Gn(e)?e:e.contextElement}function Ji(e){const n=tm(e);if(!fr(n))return ur(1);const r=n.getBoundingClientRect(),{width:i,height:o,$:s}=_w(n);let c=(s?Ju(r.width):r.width)/i,f=(s?Ju(r.height):r.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const cO=ur(0);function Nw(e){const n=wn(e);return!em()||!n.visualViewport?cO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function fO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==wn(e)?!1:n}function Ka(e,n,r,i){n===void 0&&(n=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=tm(e);let c=ur(1);n&&(i?Gn(i)&&(c=Ji(i)):c=Ji(e));const f=fO(s,r,i)?Nw(s):ur(0);let h=(o.left+f.x)/c.x,d=(o.top+f.y)/c.y,m=o.width/c.x,y=o.height/c.y;if(s){const b=wn(s),w=i&&Gn(i)?wn(i):i;let E=b,C=tp(E);for(;C&&i&&w!==E;){const A=Ji(C),T=C.getBoundingClientRect(),N=Yn(C),_=T.left+(C.clientLeft+parseFloat(N.paddingLeft))*A.x,j=T.top+(C.clientTop+parseFloat(N.paddingTop))*A.y;h*=A.x,d*=A.y,m*=A.x,y*=A.y,h+=_,d+=j,E=wn(C),C=tp(E)}}return tc({width:m,height:y,x:h,y:d})}function Ac(e,n){const r=Cc(e).scrollLeft;return n?n.left+r:Ka(dr(e)).left+r}function Mw(e,n){const r=e.getBoundingClientRect(),i=r.left+n.scrollLeft-Ac(e,r),o=r.top+n.scrollTop;return{x:i,y:o}}function dO(e){let{elements:n,rect:r,offsetParent:i,strategy:o}=e;const s=o==="fixed",c=dr(i),f=n?kc(n.floating):!1;if(i===c||f&&s)return r;let h={scrollLeft:0,scrollTop:0},d=ur(1);const m=ur(0),y=fr(i);if((y||!y&&!s)&&((vl(i)!=="body"||ts(c))&&(h=Cc(i)),fr(i))){const w=Ka(i);d=Ji(i),m.x=w.x+i.clientLeft,m.y=w.y+i.clientTop}const b=c&&!y&&!s?Mw(c,h):ur(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-h.scrollLeft*d.x+m.x+b.x,y:r.y*d.y-h.scrollTop*d.y+m.y+b.y}}function hO(e){return Array.from(e.getClientRects())}function pO(e){const n=dr(e),r=Cc(e),i=e.ownerDocument.body,o=bn(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),s=bn(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+Ac(e);const f=-r.scrollTop;return Yn(i).direction==="rtl"&&(c+=bn(n.clientWidth,i.clientWidth)-o),{width:o,height:s,x:c,y:f}}const bb=25;function mO(e,n){const r=wn(e),i=dr(e),o=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,h=0;if(o){s=o.width,c=o.height;const m=em();(!m||m&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const d=Ac(i);if(d<=0){const m=i.ownerDocument,y=m.body,b=getComputedStyle(y),w=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(i.clientWidth-y.clientWidth-w);E<=bb&&(s-=E)}else d<=bb&&(s+=d);return{width:s,height:c,x:f,y:h}}const gO=new Set(["absolute","fixed"]);function yO(e,n){const r=Ka(e,!0,n==="fixed"),i=r.top+e.clientTop,o=r.left+e.clientLeft,s=fr(e)?Ji(e):ur(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,h=o*s.x,d=i*s.y;return{width:c,height:f,x:h,y:d}}function wb(e,n,r){let i;if(n==="viewport")i=mO(e,r);else if(n==="document")i=pO(dr(e));else if(Gn(n))i=yO(n,r);else{const o=Nw(e);i={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return tc(i)}function jw(e,n){const r=ba(e);return r===n||!Gn(r)||rl(r)?!1:Yn(r).position==="fixed"||jw(r,n)}function vO(e,n){const r=n.get(e);if(r)return r;let i=zo(e,[],!1).filter(f=>Gn(f)&&vl(f)!=="body"),o=null;const s=Yn(e).position==="fixed";let c=s?ba(e):e;for(;Gn(c)&&!rl(c);){const f=Yn(c),h=Jp(c);!h&&f.position==="fixed"&&(o=null),(s?!h&&!o:!h&&f.position==="static"&&!!o&&gO.has(o.position)||ts(c)&&!h&&jw(e,c))?i=i.filter(m=>m!==c):o=f,c=ba(c)}return n.set(e,i),i}function xO(e){let{element:n,boundary:r,rootBoundary:i,strategy:o}=e;const c=[...r==="clippingAncestors"?kc(n)?[]:vO(n,this._c):[].concat(r),i],f=c[0],h=c.reduce((d,m)=>{const y=wb(n,m,o);return d.top=bn(y.top,d.top),d.right=xa(y.right,d.right),d.bottom=xa(y.bottom,d.bottom),d.left=bn(y.left,d.left),d},wb(n,f,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function bO(e){const{width:n,height:r}=_w(e);return{width:n,height:r}}function wO(e,n,r){const i=fr(n),o=dr(n),s=r==="fixed",c=Ka(e,!0,s,n);let f={scrollLeft:0,scrollTop:0};const h=ur(0);function d(){h.x=Ac(o)}if(i||!i&&!s)if((vl(n)!=="body"||ts(o))&&(f=Cc(n)),i){const w=Ka(n,!0,s,n);h.x=w.x+n.clientLeft,h.y=w.y+n.clientTop}else o&&d();s&&!i&&o&&d();const m=o&&!i&&!s?Mw(o,f):ur(0),y=c.left+f.scrollLeft-h.x-m.x,b=c.top+f.scrollTop-h.y-m.y;return{x:y,y:b,width:c.width,height:c.height}}function yh(e){return Yn(e).position==="static"}function Sb(e,n){if(!fr(e)||Yn(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return dr(e)===r&&(r=r.ownerDocument.body),r}function Dw(e,n){const r=wn(e);if(kc(e))return r;if(!fr(e)){let o=ba(e);for(;o&&!rl(o);){if(Gn(o)&&!yh(o))return o;o=ba(o)}return r}let i=Sb(e,n);for(;i&&rO(i)&&yh(i);)i=Sb(i,n);return i&&rl(i)&&yh(i)&&!Jp(i)?r:i||sO(e)||r}const SO=async function(e){const n=this.getOffsetParent||Dw,r=this.getDimensions,i=await r(e.floating);return{reference:wO(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function EO(e){return Yn(e).direction==="rtl"}const kO={convertOffsetParentRelativeRectToViewportRelativeRect:dO,getDocumentElement:dr,getClippingRect:xO,getOffsetParent:Dw,getElementRects:SO,getClientRects:hO,getDimensions:bO,getScale:Ji,isElement:Gn,isRTL:EO};function Ow(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function CO(e,n){let r=null,i;const o=dr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:m,top:y,width:b,height:w}=d;if(f||n(),!b||!w)return;const E=Mu(y),C=Mu(o.clientWidth-(m+b)),A=Mu(o.clientHeight-(y+w)),T=Mu(m),_={rootMargin:-E+"px "+-C+"px "+-A+"px "+-T+"px",threshold:bn(0,xa(1,h))||1};let j=!0;function L(O){const $=O[0].intersectionRatio;if($!==h){if(!j)return c();$?c(!1,$):i=setTimeout(()=>{c(!1,1e-7)},1e3)}$===1&&!Ow(d,e.getBoundingClientRect())&&c(),j=!1}try{r=new IntersectionObserver(L,{..._,root:o.ownerDocument})}catch{r=new IntersectionObserver(L,_)}r.observe(e)}return c(!0),s}function AO(e,n,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,d=tm(e),m=o||s?[...d?zo(d):[],...zo(n)]:[];m.forEach(T=>{o&&T.addEventListener("scroll",r,{passive:!0}),s&&T.addEventListener("resize",r)});const y=d&&f?CO(d,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(T=>{let[N]=T;N&&N.target===d&&w&&(w.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var _;(_=w)==null||_.observe(n)})),r()}),d&&!h&&w.observe(d),w.observe(n));let E,C=h?Ka(e):null;h&&A();function A(){const T=Ka(e);C&&!Ow(C,T)&&r(),C=T,E=requestAnimationFrame(A)}return r(),()=>{var T;m.forEach(N=>{o&&N.removeEventListener("scroll",r),s&&N.removeEventListener("resize",r)}),y?.(),(T=w)==null||T.disconnect(),w=null,h&&cancelAnimationFrame(E)}}const TO=ZD,RO=WD,_O=KD,NO=eO,MO=XD,Eb=YD,jO=JD,DO=(e,n,r)=>{const i=new Map,o={platform:kO,...r},s={...o.platform,_c:i};return GD(e,n,{...o,platform:s})};var OO=typeof document<"u",LO=function(){},Vu=OO?x.useLayoutEffect:LO;function nc(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,o;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(!nc(e[i],n[i]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){const s=o[i];if(!(s==="_owner"&&e.$$typeof)&&!nc(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}function Lw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kb(e,n){const r=Lw(e);return Math.round(n*r)/r}function vh(e){const n=x.useRef(e);return Vu(()=>{n.current=e}),n}function zO(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:h,open:d}=e,[m,y]=x.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[b,w]=x.useState(i);nc(b,i)||w(i);const[E,C]=x.useState(null),[A,T]=x.useState(null),N=x.useCallback(U=>{U!==O.current&&(O.current=U,C(U))},[]),_=x.useCallback(U=>{U!==$.current&&($.current=U,T(U))},[]),j=s||E,L=c||A,O=x.useRef(null),$=x.useRef(null),G=x.useRef(m),ee=h!=null,P=vh(h),re=vh(o),Q=vh(d),W=x.useCallback(()=>{if(!O.current||!$.current)return;const U={placement:n,strategy:r,middleware:b};re.current&&(U.platform=re.current),DO(O.current,$.current,U).then(ae=>{const k={...ae,isPositioned:Q.current!==!1};q.current&&!nc(G.current,k)&&(G.current=k,hc.flushSync(()=>{y(k)}))})},[b,n,r,re,Q]);Vu(()=>{d===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,y(U=>({...U,isPositioned:!1})))},[d]);const q=x.useRef(!1);Vu(()=>(q.current=!0,()=>{q.current=!1}),[]),Vu(()=>{if(j&&(O.current=j),L&&($.current=L),j&&L){if(P.current)return P.current(j,L,W);W()}},[j,L,W,P,ee]);const le=x.useMemo(()=>({reference:O,floating:$,setReference:N,setFloating:_}),[N,_]),z=x.useMemo(()=>({reference:j,floating:L}),[j,L]),K=x.useMemo(()=>{const U={position:r,left:0,top:0};if(!z.floating)return U;const ae=kb(z.floating,m.x),k=kb(z.floating,m.y);return f?{...U,transform:"translate("+ae+"px, "+k+"px)",...Lw(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:k}},[r,f,z.floating,m.x,m.y]);return x.useMemo(()=>({...m,update:W,refs:le,elements:z,floatingStyles:K}),[m,W,le,z,K])}const PO=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:o}=typeof e=="function"?e(r):e;return i&&n(i)?i.current!=null?Eb({element:i.current,padding:o}).fn(r):{}:i?Eb({element:i,padding:o}).fn(r):{}}}},IO=(e,n)=>({...TO(e),options:[e,n]}),BO=(e,n)=>({...RO(e),options:[e,n]}),UO=(e,n)=>({...jO(e),options:[e,n]}),HO=(e,n)=>({..._O(e),options:[e,n]}),FO=(e,n)=>({...NO(e),options:[e,n]}),qO=(e,n)=>({...MO(e),options:[e,n]}),VO=(e,n)=>({...PO(e),options:[e,n]});var $O="Arrow",zw=x.forwardRef((e,n)=>{const{children:r,width:i=10,height:o=5,...s}=e;return g.jsx(Fe.svg,{...s,ref:n,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});zw.displayName=$O;var GO=zw;function Pw(e){const[n,r]=x.useState(void 0);return cr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,f;if("borderBoxSize"in s){const h=s.borderBoxSize,d=Array.isArray(h)?h[0]:h;c=d.inlineSize,f=d.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 nm="Popper",[Iw,Tc]=Xn(nm),[YO,Bw]=Iw(nm),Uw=e=>{const{__scopePopper:n,children:r}=e,[i,o]=x.useState(null);return g.jsx(YO,{scope:n,anchor:i,onAnchorChange:o,children:r})};Uw.displayName=nm;var Hw="PopperAnchor",Fw=x.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:i,...o}=e,s=Bw(Hw,r),c=x.useRef(null),f=Qe(n,c),h=x.useRef(null);return x.useEffect(()=>{const d=h.current;h.current=i?.current||c.current,d!==h.current&&s.onAnchorChange(h.current)}),i?null:g.jsx(Fe.div,{...o,ref:f})});Fw.displayName=Hw;var rm="PopperContent",[KO,XO]=Iw(rm),qw=x.forwardRef((e,n)=>{const{__scopePopper:r,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:E,...C}=e,A=Bw(rm,r),[T,N]=x.useState(null),_=Qe(n,xe=>N(xe)),[j,L]=x.useState(null),O=Pw(j),$=O?.width??0,G=O?.height??0,ee=i+(s!=="center"?"-"+s:""),P=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},re=Array.isArray(d)?d:[d],Q=re.length>0,W={padding:P,boundary:re.filter(ZO),altBoundary:Q},{refs:q,floatingStyles:le,placement:z,isPositioned:K,middlewareData:U}=zO({strategy:"fixed",placement:ee,whileElementsMounted:(...xe)=>AO(...xe,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[IO({mainAxis:o+G,alignmentAxis:c}),h&&BO({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?UO():void 0,...W}),h&&HO({...W}),FO({...W,apply:({elements:xe,rects:De,availableWidth:lt,availableHeight:Ze})=>{const{width:dt,height:$t}=De.reference,un=xe.floating.style;un.setProperty("--radix-popper-available-width",`${lt}px`),un.setProperty("--radix-popper-available-height",`${Ze}px`),un.setProperty("--radix-popper-anchor-width",`${dt}px`),un.setProperty("--radix-popper-anchor-height",`${$t}px`)}}),j&&VO({element:j,padding:f}),WO({arrowWidth:$,arrowHeight:G}),b&&qO({strategy:"referenceHidden",...W})]}),[ae,k]=Gw(z),X=kt(E);cr(()=>{K&&X?.()},[K,X]);const oe=U.arrow?.x,M=U.arrow?.y,fe=U.arrow?.centerOffset!==0,[Ce,de]=x.useState();return cr(()=>{T&&de(window.getComputedStyle(T).zIndex)},[T]),g.jsx("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:K?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[U.transformOrigin?.x,U.transformOrigin?.y].join(" "),...U.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(KO,{scope:r,placedSide:ae,onArrowChange:L,arrowX:oe,arrowY:M,shouldHideArrow:fe,children:g.jsx(Fe.div,{"data-side":ae,"data-align":k,...C,ref:_,style:{...C.style,animation:K?void 0:"none"}})})})});qw.displayName=rm;var Vw="PopperArrow",QO={top:"bottom",right:"left",bottom:"top",left:"right"},$w=x.forwardRef(function(n,r){const{__scopePopper:i,...o}=n,s=XO(Vw,i),c=QO[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(GO,{...o,ref:r,style:{...o.style,display:"block"}})})});$w.displayName=Vw;function ZO(e){return e!==null}var WO=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:i,middlewareData:o}=n,c=o.arrow?.centerOffset!==0,f=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[d,m]=Gw(r),y={start:"0%",center:"50%",end:"100%"}[m],b=(o.arrow?.x??0)+f/2,w=(o.arrow?.y??0)+h/2;let E="",C="";return d==="bottom"?(E=c?y:`${b}px`,C=`${-h}px`):d==="top"?(E=c?y:`${b}px`,C=`${i.floating.height+h}px`):d==="right"?(E=`${-h}px`,C=c?y:`${w}px`):d==="left"&&(E=`${i.floating.width+h}px`,C=c?y:`${w}px`),{data:{x:E,y:C}}}});function Gw(e){const[n,r="center"]=e.split("-");return[n,r]}var Yw=Uw,Kw=Fw,Xw=qw,Qw=$w,[Rc,XB]=Xn("Tooltip",[Tc]),_c=Tc(),Zw="TooltipProvider",JO=700,np="tooltip.open",[e4,am]=Rc(Zw),Ww=e=>{const{__scopeTooltip:n,delayDuration:r=JO,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:s}=e,c=x.useRef(!0),f=x.useRef(!1),h=x.useRef(0);return x.useEffect(()=>{const d=h.current;return()=>window.clearTimeout(d)},[]),g.jsx(e4,{scope:n,isOpenDelayedRef:c,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(h.current),c.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.current=!0,i)},[i]),isPointerInTransitRef:f,onPointerInTransitChange:x.useCallback(d=>{f.current=d},[]),disableHoverableContent:o,children:s})};Ww.displayName=Zw;var Po="Tooltip",[t4,ns]=Rc(Po),Jw=e=>{const{__scopeTooltip:n,children:r,open:i,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:f}=e,h=am(Po,e.__scopeTooltip),d=_c(n),[m,y]=x.useState(null),b=Ga(),w=x.useRef(0),E=c??h.disableHoverableContent,C=f??h.delayDuration,A=x.useRef(!1),[T,N]=pl({prop:i,defaultProp:o??!1,onChange:$=>{$?(h.onOpen(),document.dispatchEvent(new CustomEvent(np))):h.onClose(),s?.($)},caller:Po}),_=x.useMemo(()=>T?A.current?"delayed-open":"instant-open":"closed",[T]),j=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,N(!0)},[N]),L=x.useCallback(()=>{window.clearTimeout(w.current),w.current=0,N(!1)},[N]),O=x.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,N(!0),w.current=0},C)},[C,N]);return x.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),g.jsx(Yw,{...d,children:g.jsx(t4,{scope:n,contentId:b,open:T,stateAttribute:_,trigger:m,onTriggerChange:y,onTriggerEnter:x.useCallback(()=>{h.isOpenDelayedRef.current?O():j()},[h.isOpenDelayedRef,O,j]),onTriggerLeave:x.useCallback(()=>{E?L():(window.clearTimeout(w.current),w.current=0)},[L,E]),onOpen:j,onClose:L,disableHoverableContent:E,children:r})})};Jw.displayName=Po;var rp="TooltipTrigger",eS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,o=ns(rp,r),s=am(rp,r),c=_c(r),f=x.useRef(null),h=Qe(n,f,o.onTriggerChange),d=x.useRef(!1),m=x.useRef(!1),y=x.useCallback(()=>d.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(Kw,{asChild:!0,...c,children:g.jsx(Fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:h,onPointerMove:me(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),m.current=!0)}),onPointerLeave:me(e.onPointerLeave,()=>{o.onTriggerLeave(),m.current=!1}),onPointerDown:me(e.onPointerDown,()=>{o.open&&o.onClose(),d.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:me(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:me(e.onBlur,o.onClose),onClick:me(e.onClick,o.onClose)})})});eS.displayName=rp;var im="TooltipPortal",[n4,r4]=Rc(im,{forceMount:void 0}),tS=e=>{const{__scopeTooltip:n,forceMount:r,children:i,container:o}=e,s=ns(im,n);return g.jsx(n4,{scope:n,forceMount:r,children:g.jsx(qt,{present:r||s.open,children:g.jsx(Xo,{asChild:!0,container:o,children:i})})})};tS.displayName=im;var al="TooltipContent",nS=x.forwardRef((e,n)=>{const r=r4(al,e.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...s}=e,c=ns(al,e.__scopeTooltip);return g.jsx(qt,{present:i||c.open,children:c.disableHoverableContent?g.jsx(rS,{side:o,...s,ref:n}):g.jsx(a4,{side:o,...s,ref:n})})}),a4=x.forwardRef((e,n)=>{const r=ns(al,e.__scopeTooltip),i=am(al,e.__scopeTooltip),o=x.useRef(null),s=Qe(n,o),[c,f]=x.useState(null),{trigger:h,onClose:d}=r,m=o.current,{onPointerInTransitChange:y}=i,b=x.useCallback(()=>{f(null),y(!1)},[y]),w=x.useCallback((E,C)=>{const A=E.currentTarget,T={x:E.clientX,y:E.clientY},N=s4(T,A.getBoundingClientRect()),_=u4(T,N),j=c4(C.getBoundingClientRect()),L=d4([..._,...j]);f(L),y(!0)},[y]);return x.useEffect(()=>()=>b(),[b]),x.useEffect(()=>{if(h&&m){const E=A=>w(A,m),C=A=>w(A,h);return h.addEventListener("pointerleave",E),m.addEventListener("pointerleave",C),()=>{h.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",C)}}},[h,m,w,b]),x.useEffect(()=>{if(c){const E=C=>{const A=C.target,T={x:C.clientX,y:C.clientY},N=h?.contains(A)||m?.contains(A),_=!f4(T,c);N?b():_&&(b(),d())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[h,m,c,d,b]),g.jsx(rS,{...e,ref:s})}),[i4,l4]=Rc(Po,{isInside:!1}),o4=J0("TooltipContent"),rS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...f}=e,h=ns(al,r),d=_c(r),{onClose:m}=h;return x.useEffect(()=>(document.addEventListener(np,m),()=>document.removeEventListener(np,m)),[m]),x.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&m()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,m]),g.jsx(Ko,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:y=>y.preventDefault(),onDismiss:m,children:g.jsxs(Xw,{"data-state":h.stateAttribute,...d,...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(o4,{children:i}),g.jsx(i4,{scope:r,isInside:!0,children:g.jsx(R_,{id:h.contentId,role:"tooltip",children:o||i})})]})})});nS.displayName=al;var aS="TooltipArrow",iS=x.forwardRef((e,n)=>{const{__scopeTooltip:r,...i}=e,o=_c(r);return l4(aS,r).isInside?null:g.jsx(Qw,{...o,...i,ref:n})});iS.displayName=aS;function s4(e,n){const r=Math.abs(n.top-e.y),i=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),s=Math.abs(n.left-e.x);switch(Math.min(r,i,o,s)){case s:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function u4(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 c4(e){const{top:n,right:r,bottom:i,left:o}=e;return[{x:o,y:n},{x:r,y:n},{x:r,y:i},{x:o,y:i}]}function f4(e,n){const{x:r,y:i}=e;let o=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],h=n[c],d=f.x,m=f.y,y=h.x,b=h.y;m>i!=b>i&&r<(y-d)*(i-m)/(b-m)+d&&(o=!o)}return o}function d4(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),h4(n)}function h4(e){if(e.length<=1)return e.slice();const n=[];for(let i=0;i<e.length;i++){const o=e[i];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}n.pop();const r=[];for(let i=e.length-1;i>=0;i--){const o=e[i];for(;r.length>=2;){const s=r[r.length-1],c=r[r.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))r.pop();else break}r.push(o)}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 p4=Ww,m4=Jw,g4=eS,QB=tS,lS=nS,ZB=iS;const y4=p4,v4=m4,x4=g4,oS=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(lS,{ref:i,sideOffset:n,className:ce("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}));oS.displayName=lS.displayName;const b4="sidebar_state",w4=3600*24*7,S4="16rem",E4="18rem",k4="3rem",C4="b",sS=x.createContext(null);function Nc(){const e=x.useContext(sS);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const uS=x.forwardRef(({defaultOpen:e=!0,open:n,onOpenChange:r,className:i,style:o,children:s,...c},f)=>{const h=F1(),[d,m]=x.useState(!1),[y,b]=x.useState(e),w=n??y,E=x.useCallback(N=>{const _=typeof N=="function"?N(w):N;r?r(_):b(_),document.cookie=`${b4}=${_}; path=/; max-age=${w4}`},[r,w]),C=x.useCallback(()=>h?m(N=>!N):E(N=>!N),[h,E,m]);x.useEffect(()=>{const N=_=>{_.key===C4&&(_.metaKey||_.ctrlKey)&&(_.preventDefault(),C())};return window.addEventListener("keydown",N),()=>window.removeEventListener("keydown",N)},[C]);const A=w?"expanded":"collapsed",T=x.useMemo(()=>({state:A,open:w,setOpen:E,isMobile:h,openMobile:d,setOpenMobile:m,toggleSidebar:C}),[A,w,E,h,d,m,C]);return g.jsx(sS.Provider,{value:T,children:g.jsx(y4,{delayDuration:0,children:g.jsx("div",{style:{"--sidebar-width":S4,"--sidebar-width-icon":k4,...o},className:ce("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",i),ref:f,...c,children:s})})})});uS.displayName="SidebarProvider";const cS=x.forwardRef(({side:e="left",variant:n="sidebar",collapsible:r="offcanvas",className:i,children:o,...s},c)=>{const{isMobile:f,state:h,openMobile:d,setOpenMobile:m}=Nc();return r==="none"?g.jsx("div",{className:ce("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",i),ref:c,...s,children:o}):f?g.jsx(Sw,{open:d,onOpenChange:m,...s,children:g.jsxs(Yp,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":E4},side:e,children:[g.jsxs(Kp,{className:"sr-only",children:[g.jsx(Xp,{children:"Sidebar"}),g.jsx(kw,{children:"Displays the mobile sidebar."})]}),g.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):g.jsxs("div",{ref:c,className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":h==="collapsed"?r:"","data-variant":n,"data-side":e,children:[g.jsx("div",{className:ce("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:ce("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:o})})]})});cS.displayName="Sidebar";const fS=x.forwardRef(({className:e,onClick:n,...r},i)=>{const{toggleSidebar:o}=Nc();return g.jsxs(pt,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ce("h-7 w-7",e),onClick:s=>{n?.(s),o()},...r,children:[g.jsx(rM,{}),g.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});fS.displayName="SidebarTrigger";const A4=x.forwardRef(({className:e,...n},r)=>{const{toggleSidebar:i}=Nc();return g.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:i,title:"Toggle Sidebar",className:ce("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})});A4.displayName="SidebarRail";const dS=x.forwardRef(({className:e,...n},r)=>g.jsx("main",{ref:r,className:ce("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}));dS.displayName="SidebarInset";const T4=x.forwardRef(({className:e,...n},r)=>g.jsx(q1,{ref:r,"data-sidebar":"input",className:ce("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...n}));T4.displayName="SidebarInput";const hS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"header",className:ce("flex flex-col gap-2 p-2",e),...n}));hS.displayName="SidebarHeader";const pS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"footer",className:ce("flex flex-col gap-2 p-2",e),...n}));pS.displayName="SidebarFooter";const R4=x.forwardRef(({className:e,...n},r)=>g.jsx(G1,{ref:r,"data-sidebar":"separator",className:ce("mx-2 w-auto bg-sidebar-border",e),...n}));R4.displayName="SidebarSeparator";const mS=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"content",className:ce("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...n}));mS.displayName="SidebarContent";const ko=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group",className:ce("relative flex w-full min-w-0 flex-col p-2",e),...n}));ko.displayName="SidebarGroup";const $u=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const o=n?hl:"div";return g.jsx(o,{ref:i,"data-sidebar":"group-label",className:ce("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})});$u.displayName="SidebarGroupLabel";const _4=x.forwardRef(({className:e,asChild:n=!1,...r},i)=>{const o=n?hl:"button";return g.jsx(o,{ref:i,"data-sidebar":"group-action",className:ce("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})});_4.displayName="SidebarGroupAction";const Co=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"group-content",className:ce("w-full text-sm",e),...n}));Co.displayName="SidebarGroupContent";const $a=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu",className:ce("flex w-full min-w-0 flex-col gap-1",e),...n}));$a.displayName="SidebarMenu";const ma=x.forwardRef(({className:e,...n},r)=>g.jsx("li",{ref:r,"data-sidebar":"menu-item",className:ce("group/menu-item relative",e),...n}));ma.displayName="SidebarMenuItem";const N4=xc("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-active data-[active=true]:font-medium data-[active=true]:text-sidebar-active-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"}}),ga=x.forwardRef(({asChild:e=!1,isActive:n=!1,variant:r="default",size:i="default",tooltip:o,className:s,...c},f)=>{const h=e?hl:"button",{isMobile:d,state:m}=Nc(),y=g.jsx(h,{ref:f,"data-sidebar":"menu-button","data-size":i,"data-active":n,className:ce(N4({variant:r,size:i}),s),...c});return o?(typeof o=="string"&&(o={children:o}),g.jsxs(v4,{children:[g.jsx(x4,{asChild:!0,children:y}),g.jsx(oS,{side:"right",align:"center",hidden:m!=="collapsed"||d,...o})]})):y});ga.displayName="SidebarMenuButton";const M4=x.forwardRef(({className:e,asChild:n=!1,showOnHover:r=!1,...i},o)=>{const s=n?hl:"button";return g.jsx(s,{ref:o,"data-sidebar":"menu-action",className:ce("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-active-foreground md:opacity-0",e),...i})});M4.displayName="SidebarMenuAction";const ap=x.forwardRef(({className:e,...n},r)=>g.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:ce("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}));ap.displayName="SidebarMenuBadge";const j4=x.forwardRef(({className:e,showIcon:n=!1,...r},i)=>{const o=x.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return g.jsxs("div",{ref:i,"data-sidebar":"menu-skeleton",className:ce("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[n&&g.jsx(hb,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),g.jsx(hb,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});j4.displayName="SidebarMenuSkeleton";const gS=x.forwardRef(({className:e,...n},r)=>g.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:ce("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}));gS.displayName="SidebarMenuSub";const yS=x.forwardRef(({...e},n)=>g.jsx("li",{ref:n,...e}));yS.displayName="SidebarMenuSubItem";const vS=x.forwardRef(({asChild:e=!1,size:n="md",isActive:r,className:i,...o},s)=>{const c=e?hl:"a";return g.jsx(c,{ref:s,"data-sidebar":"menu-sub-button","data-size":n,"data-active":r,className:ce("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-active data-[active=true]:text-sidebar-active-foreground",n==="sm"&&"text-xs",n==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",i),...o})});vS.displayName="SidebarMenuSubButton";const D4="1.0.76",O4={version:D4};function L4({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"})]})}function Fa(e,n){if(n==="/")return e==="/";const r=e.match(/^\/terminal\/([^/]+)/);if(r){const i=r[1];if(n==="/agents")return i.startsWith("cp-")||i.startsWith("sk-");if(n==="/terminal")return!i.startsWith("cp-")&&!i.startsWith("sk-")}return e===n||e.startsWith(n+"/")}const z4=[{title:"Home",url:"/",icon:LN},{title:"Tasks",url:"/tasks",icon:xM},{title:"Skills",url:"/skills",icon:BM},{title:"Mail",url:"/mail",icon:KN}],P4=[{title:"Agents",url:"/agents",icon:Ro},{title:"Jobs",url:"/schedule",icon:lN},{title:"Utilities",url:"/utilities",icon:Kh}],I4=[{title:"Knowledge",url:"/knowledge",icon:Qu},{title:"Resources",url:"/resources",icon:TN}],Cb=[{title:"Role",url:"/context/role",icon:MM},{title:"Agents",url:"/context/agents",icon:yN},{title:"Team",url:"/context/team",icon:LM},{title:"Memory",url:"/context/memory",icon:aN}],B4=[{title:"Source Control",url:"/git",icon:C1},{title:"Terminal",url:"/terminal",icon:CM},{title:"Identity",url:"/identity",icon:PN},{title:"Activity",url:"/activity",icon:J_}],U4=[{title:"Documentation",url:"https://docs.coconut.dev/studio",icon:tM,external:!0},{title:"Settings",url:"/settings/user",icon:dM}];function H4(){const{badges:e}=XR(),n=on(),[r,i]=x.useState(!1);return x.useEffect(()=>{Cb.some(s=>Fa(n.pathname,s.url))&&i(!0)},[n.pathname]),g.jsxs(cS,{className:"bg-sidebar border-r border-sidebar-border",children:[g.jsx(hS,{children:g.jsx($a,{children:g.jsx(ma,{children:g.jsx(ga,{size:"lg",asChild:!0,className:"[&>svg]:!size-8",children:g.jsxs(Vn,{to:"/",children:[g.jsx(L4,{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",O4.version]})]})]})})})})}),g.jsxs(mS,{children:[g.jsx(ko,{children:g.jsx(Co,{children:g.jsx($a,{children:z4.map(o=>g.jsx(ma,{children:g.jsx(ga,{asChild:!0,isActive:Fa(n.pathname,o.url),children:g.jsxs(Vn,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title))})})}),g.jsxs(ko,{children:[g.jsx($u,{children:"Work"}),g.jsx(Co,{children:g.jsx($a,{children:P4.map(o=>{let s=0;return o.title==="Agents"&&e.codeSessions>0?s=e.codeSessions:o.title==="Jobs"&&e.runningScheduledJobs>0&&(s=e.runningScheduledJobs),g.jsxs(ma,{children:[g.jsx(ga,{asChild:!0,isActive:Fa(n.pathname,o.url),children:g.jsxs(Vn,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})}),s>0&&g.jsx(ap,{className:"bg-blue-600 text-white dark:bg-blue-500",children:s})]},o.title)})})})]}),g.jsxs(ko,{children:[g.jsx($u,{children:"Assets"}),g.jsx(Co,{children:g.jsxs($a,{children:[I4.map(o=>g.jsx(ma,{children:g.jsx(ga,{asChild:!0,isActive:Fa(n.pathname,o.url),children:g.jsxs(Vn,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title)),g.jsxs(ma,{children:[g.jsxs(ga,{onClick:()=>i(o=>!o),"data-state":r?"open":"closed",className:"w-full",children:[g.jsx(_N,{}),g.jsx("span",{children:"Context"}),g.jsx(fN,{className:`ml-auto size-4 shrink-0 transition-transform duration-200 ${r?"rotate-180":""}`})]}),r&&g.jsx(gS,{children:Cb.map(o=>g.jsx(yS,{children:g.jsx(vS,{asChild:!0,isActive:Fa(n.pathname,o.url),children:g.jsxs(Vn,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title))})]})]})})]}),g.jsxs(ko,{children:[g.jsx($u,{children:"System"}),g.jsx(Co,{children:g.jsx($a,{children:B4.map(o=>{let s=0;return o.title==="Source Control"&&e.gitChanges>0?s=e.gitChanges:o.title==="Terminal"&&e.terminalSessions>0&&(s=e.terminalSessions),g.jsxs(ma,{children:[g.jsx(ga,{asChild:!0,isActive:Fa(n.pathname,o.url),children:g.jsxs(Vn,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})}),s>0&&g.jsx(ap,{className:"bg-blue-600 text-white dark:bg-blue-500",children:s})]},o.title)})})})]})]}),g.jsx(pS,{children:g.jsx($a,{children:U4.map(o=>g.jsx(ma,{children:g.jsx(ga,{asChild:!0,isActive:!o.external&&Fa(n.pathname,o.url==="/settings/user"?"/settings":o.url),children:o.external?g.jsxs("a",{href:o.url,target:"_blank",rel:"noopener noreferrer",children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]}):g.jsxs(Vn,{to:o.url,children:[g.jsx(o.icon,{}),g.jsx("span",{children:o.title})]})})},o.title))})})]})}function F4(e){const n=e.match(/\bres-\d+-[a-z0-9]+\b/g);return n?[...new Set(n)]:[]}const Io=$p,WB=ww,q4=Gp,xS=x.forwardRef(({className:e,...n},r)=>g.jsx(Zo,{ref:r,className:ce("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}));xS.displayName=Zo.displayName;const il=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(q4,{children:[g.jsx(xS,{}),g.jsxs(Wo,{ref:i,className:ce("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(Sc,{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(Zi,{className:"h-4 w-4"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));il.displayName=Wo.displayName;const ll=({className:e,...n})=>g.jsx("div",{className:ce("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});ll.displayName="DialogHeader";const bS=({className:e,...n})=>g.jsx("div",{className:ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});bS.displayName="DialogFooter";const ol=x.forwardRef(({className:e,...n},r)=>g.jsx(Jo,{ref:r,className:ce("text-lg font-semibold leading-none tracking-tight",e),...n}));ol.displayName=Jo.displayName;const Qi=x.forwardRef(({className:e,...n},r)=>g.jsx(es,{ref:r,className:ce("text-sm text-muted-foreground",e),...n}));Qi.displayName=es.displayName;function xh({className:e,...n}){return g.jsx("kbd",{"data-slot":"kbd",className:ce("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 JB({className:e,...n}){return g.jsx("span",{"data-slot":"kbd-group",className:ce("inline-flex items-center gap-0.5",e),...n})}function eU(){}function V4(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const $4=/[$_\p{ID_Start}]/u,G4=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Y4=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,K4=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,X4=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wS={};function tU(e){return e?$4.test(String.fromCodePoint(e)):!1}function nU(e,n){const i=(n||wS).jsx?Y4:G4;return e?i.test(String.fromCodePoint(e)):!1}function Ab(e,n){return(wS.jsx?X4:K4).test(e)}const Q4=/[ \t\n\f\r]/g;function Z4(e){return typeof e=="object"?e.type==="text"?Tb(e.value):!1:Tb(e)}function Tb(e){return e.replace(Q4,"")===""}class rs{constructor(n,r,i){this.normal=r,this.property=n,i&&(this.space=i)}}rs.prototype.normal={};rs.prototype.property={};rs.prototype.space=void 0;function SS(e,n){const r={},i={};for(const o of e)Object.assign(r,o.property),Object.assign(i,o.normal);return new rs(r,i,n)}function ip(e){return e.toLowerCase()}class sn{constructor(n,r){this.attribute=r,this.property=n}}sn.prototype.attribute="";sn.prototype.booleanish=!1;sn.prototype.boolean=!1;sn.prototype.commaOrSpaceSeparated=!1;sn.prototype.commaSeparated=!1;sn.prototype.defined=!1;sn.prototype.mustUseProperty=!1;sn.prototype.number=!1;sn.prototype.overloadedBoolean=!1;sn.prototype.property="";sn.prototype.spaceSeparated=!1;sn.prototype.space=void 0;let W4=0;const Le=Qa(),St=Qa(),lp=Qa(),ue=Qa(),ut=Qa(),el=Qa(),xn=Qa();function Qa(){return 2**++W4}const op=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:St,commaOrSpaceSeparated:xn,commaSeparated:el,number:ue,overloadedBoolean:lp,spaceSeparated:ut},Symbol.toStringTag,{value:"Module"})),bh=Object.keys(op);class lm extends sn{constructor(n,r,i,o){let s=-1;if(super(n,r),Rb(this,"space",o),typeof i=="number")for(;++s<bh.length;){const c=bh[s];Rb(this,bh[s],(i&op[c])===op[c])}}}lm.prototype.defined=!0;function Rb(e,n,r){r&&(e[n]=r)}function xl(e){const n={},r={};for(const[i,o]of Object.entries(e.properties)){const s=new lm(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),n[i]=s,r[ip(i)]=i,r[ip(s.attribute)]=i}return new rs(n,r,e.space)}const ES=xl({properties:{ariaActiveDescendant:null,ariaAtomic:St,ariaAutoComplete:null,ariaBusy:St,ariaChecked:St,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:ut,ariaCurrent:null,ariaDescribedBy:ut,ariaDetails:null,ariaDisabled:St,ariaDropEffect:ut,ariaErrorMessage:null,ariaExpanded:St,ariaFlowTo:ut,ariaGrabbed:St,ariaHasPopup:null,ariaHidden:St,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ut,ariaLevel:ue,ariaLive:null,ariaModal:St,ariaMultiLine:St,ariaMultiSelectable:St,ariaOrientation:null,ariaOwns:ut,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:St,ariaReadOnly:St,ariaRelevant:null,ariaRequired:St,ariaRoleDescription:ut,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:St,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function kS(e,n){return n in e?e[n]:n}function CS(e,n){return kS(e,n.toLowerCase())}const J4=xl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:el,acceptCharset:ut,accessKey:ut,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:ut,autoFocus:Le,autoPlay:Le,blocking:ut,capture:null,charSet:null,checked:Le,cite:null,className:ut,cols:ue,colSpan:null,content:null,contentEditable:St,controls:Le,controlsList:ut,coords:ue|el,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:lp,draggable:St,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:ut,height:ue,hidden:lp,high:ue,href:null,hrefLang:null,htmlFor:ut,httpEquiv:ut,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:ut,itemRef:ut,itemScope:Le,itemType:ut,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:ue,pattern:null,ping:ut,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:ut,required:Le,reversed:Le,rows:ue,rowSpan:ue,sandbox:ut,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:St,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:St,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ut,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:St,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:CS}),e3=xl({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:xn,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:ut,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:el,g2:el,glyphName:el,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ut,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kS}),AS=xl({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()}}),TS=xl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:CS}),RS=xl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),t3={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"},n3=/[A-Z]/g,_b=/-[a-z]/g,r3=/^data[-\w.:]+$/i;function a3(e,n){const r=ip(n);let i=n,o=sn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&r3.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(_b,l3);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!_b.test(s)){let c=s.replace(n3,i3);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=lm}return new o(i,n)}function i3(e){return"-"+e.toLowerCase()}function l3(e){return e.charAt(1).toUpperCase()}const o3=SS([ES,J4,AS,TS,RS],"html"),om=SS([ES,e3,AS,TS,RS],"svg");function s3(e){return e.join(" ").trim()}var Gi={},wh,Nb;function u3(){if(Nb)return wh;Nb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
396
|
+
`,d="/",m="*",y="",b="comment",w="declaration";wh=function(C,A){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];A=A||{};var T=1,N=1;function _(W){var q=W.match(n);q&&(T+=q.length);var le=W.lastIndexOf(h);N=~le?W.length-le:N+W.length}function j(){var W={line:T,column:N};return function(q){return q.position=new L(W),G(),q}}function L(W){this.start=W,this.end={line:T,column:N},this.source=A.source}L.prototype.content=C;function O(W){var q=new Error(A.source+":"+T+":"+N+": "+W);if(q.reason=W,q.filename=A.source,q.line=T,q.column=N,q.source=C,!A.silent)throw q}function $(W){var q=W.exec(C);if(q){var le=q[0];return _(le),C=C.slice(le.length),q}}function G(){$(r)}function ee(W){var q;for(W=W||[];q=P();)q!==!1&&W.push(q);return W}function P(){var W=j();if(!(d!=C.charAt(0)||m!=C.charAt(1))){for(var q=2;y!=C.charAt(q)&&(m!=C.charAt(q)||d!=C.charAt(q+1));)++q;if(q+=2,y===C.charAt(q-1))return O("End of comment missing");var le=C.slice(2,q-2);return N+=2,_(le),C=C.slice(q),N+=2,W({type:b,comment:le})}}function re(){var W=j(),q=$(i);if(q){if(P(),!$(o))return O("property missing ':'");var le=$(s),z=W({type:w,property:E(q[0].replace(e,y)),value:le?E(le[0].replace(e,y)):y});return $(c),z}}function Q(){var W=[];ee(W);for(var q;q=re();)q!==!1&&(W.push(q),ee(W));return W}return G(),Q()};function E(C){return C?C.replace(f,y):y}return wh}var Mb;function c3(){if(Mb)return Gi;Mb=1;var e=Gi&&Gi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=r;var n=e(u3());function r(i,o){var s=null;if(!i||typeof i!="string")return s;var c=(0,n.default)(i),f=typeof o=="function";return c.forEach(function(h){if(h.type==="declaration"){var d=h.property,m=h.value;f?o(d,m,h):m&&(s=s||{},s[d]=m)}}),s}return Gi}var bo={},jb;function f3(){if(jb)return bo;jb=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(d){return!d||r.test(d)||e.test(d)},c=function(d,m){return m.toUpperCase()},f=function(d,m){return"".concat(m,"-")},h=function(d,m){return m===void 0&&(m={}),s(d)?d:(d=d.toLowerCase(),m.reactCompat?d=d.replace(o,f):d=d.replace(i,f),d.replace(n,c))};return bo.camelCase=h,bo}var wo,Db;function d3(){if(Db)return wo;Db=1;var e=wo&&wo.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(c3()),r=f3();function i(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,h){f&&h&&(c[(0,r.camelCase)(f,s)]=h)}),c}return i.default=i,wo=i,wo}var h3=d3();const p3=cc(h3),_S=NS("end"),sm=NS("start");function NS(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 MS(e){const n=sm(e),r=_S(e);if(n&&r)return{start:n,end:r}}function _o(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ob(e.position):"start"in e||"end"in e?Ob(e):"line"in e||"column"in e?sp(e):""}function sp(e){return Lb(e&&e.line)+":"+Lb(e&&e.column)}function Ob(e){return sp(e&&e.start)+"-"+sp(e&&e.end)}function Lb(e){return e&&typeof e=="number"?e:1}class Vt extends Error{constructor(n,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let o="",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"?o=n:!s.cause&&n&&(c=!0,o=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.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=o,this.line=f?f.line:void 0,this.name=_o(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}}Vt.prototype.file="";Vt.prototype.name="";Vt.prototype.reason="";Vt.prototype.message="";Vt.prototype.stack="";Vt.prototype.column=void 0;Vt.prototype.line=void 0;Vt.prototype.ancestors=void 0;Vt.prototype.cause=void 0;Vt.prototype.fatal=void 0;Vt.prototype.place=void 0;Vt.prototype.ruleId=void 0;Vt.prototype.source=void 0;const um={}.hasOwnProperty,m3=new Map,g3=/[A-Z]/g,y3=new Set(["table","tbody","thead","tfoot","tr"]),v3=new Set(["td","th"]),jS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function x3(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=T3(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=A3(r,n.jsx,n.jsxs)}const o={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"?om:o3,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=DS(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function DS(e,n,r){if(n.type==="element")return b3(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return w3(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return E3(e,n,r);if(n.type==="mdxjsEsm")return S3(e,n);if(n.type==="root")return k3(e,n,r);if(n.type==="text")return C3(e,n)}function b3(e,n,r){const i=e.schema;let o=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=om,e.schema=o),e.ancestors.push(n);const s=LS(e,n.tagName,!1),c=R3(e,n);let f=fm(e,n);return y3.has(n.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!Z4(h):!0})),OS(e,c,s,n),cm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function w3(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)}Bo(e,n.position)}function S3(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Bo(e,n.position)}function E3(e,n,r){const i=e.schema;let o=i;n.name==="svg"&&i.space==="html"&&(o=om,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:LS(e,n.name,!0),c=_3(e,n),f=fm(e,n);return OS(e,c,s,n),cm(c,f),e.ancestors.pop(),e.schema=i,e.create(n,s,c,r)}function k3(e,n,r){const i={};return cm(i,fm(e,n)),e.create(n,e.Fragment,i,r)}function C3(e,n){return n.value}function OS(e,n,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=i)}function cm(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function A3(e,n,r){return i;function i(o,s,c,f){const d=Array.isArray(c.children)?r:n;return f?d(s,c,f):d(s,c)}}function T3(e,n){return r;function r(i,o,s,c){const f=Array.isArray(s.children),h=sm(i);return n(o,s,c,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function R3(e,n){const r={};let i,o;for(o in n.properties)if(o!=="children"&&um.call(n.properties,o)){const s=N3(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&v3.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 _3(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 Bo(e,n.position);else{const o=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 Bo(e,n.position);else s=i.value===null?!0:i.value;r[o]=s}return r}function fm(e,n){const r=[];let i=-1;const o=e.passKeys?new Map:m3;for(;++i<n.children.length;){const s=n.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=o.get(h)||0;c=h+"-"+d,o.set(h,d+1)}}const f=DS(e,s,c);f!==void 0&&r.push(f)}return r}function N3(e,n,r){const i=a3(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?V4(r):s3(r)),i.property==="style"){let o=typeof r=="object"?r:M3(e,String(r));return e.stylePropertyNameCase==="css"&&(o=j3(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?t3[i.property]||i.property:i.attribute,r]}}function M3(e,n){try{return p3(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new Vt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=jS+"#cannot-parse-style-attribute",o}}function LS(e,n,r){let i;if(!r)i={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let s=-1,c;for(;++s<o.length;){const f=Ab(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=c}else i=Ab(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(i.type==="Literal"){const o=i.value;return um.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);Bo(e)}function Bo(e,n){const r=new Vt("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=jS+"#cannot-handle-mdx-estrees-without-createevaluater",r}function j3(e){const n={};let r;for(r in e)um.call(e,r)&&(n[D3(r)]=e[r]);return n}function D3(e){let n=e.replace(g3,O3);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function O3(e){return"-"+e.toLowerCase()}const Sh={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"]},L3={};function dm(e,n){const r=L3,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return zS(e,i,o)}function zS(e,n,r){if(z3(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 zb(e.children,n,r)}return Array.isArray(e)?zb(e,n,r):""}function zb(e,n,r){const i=[];let o=-1;for(;++o<e.length;)i[o]=zS(e[o],n,r);return i.join("")}function z3(e){return!!(e&&typeof e=="object")}const Pb=document.createElement("i");function hm(e){const n="&"+e+";";Pb.innerHTML=n;const r=Pb.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Sn(e,n,r,i){const o=e.length;let s=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o: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 On(e,n){return e.length>0?(Sn(e,e.length,0,n),e):n}const Ib={}.hasOwnProperty;function PS(e){const n={};let r=-1;for(;++r<e.length;)P3(n,e[r]);return n}function P3(e,n){let r;for(r in n){const o=(Ib.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){Ib.call(o,c)||(o[c]=[]);const f=s[c];I3(o[c],Array.isArray(f)?f:f?[f]:[])}}}function I3(e,n){let r=-1;const i=[];for(;++r<n.length;)(n[r].add==="after"?e:i).push(n[r]);Sn(e,0,0,i)}function IS(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 $n(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=wa(/[A-Za-z]/),Ft=wa(/[\dA-Za-z]/),B3=wa(/[#-'*+\--9=?A-Z^-~]/);function rc(e){return e!==null&&(e<32||e===127)}const up=wa(/\d/),U3=wa(/[\dA-Fa-f]/),H3=wa(/[!-/:-@[-`{-~]/);function Te(e){return e!==null&&e<-2}function it(e){return e!==null&&(e<0||e===32)}function He(e){return e===-2||e===-1||e===32}const Mc=wa(new RegExp("\\p{P}|\\p{S}","u")),Xa=wa(/\s/);function wa(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function bl(e){const n=[];let r=-1,i=0,o=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Ft(e.charCodeAt(r+1))&&Ft(e.charCodeAt(r+2)))o=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),o=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(i,r),encodeURIComponent(c)),i=r+o+1,c=""),o&&(r+=o,o=0)}return n.join("")+e.slice(i)}function Ve(e,n,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return He(h)?(e.enter(r),f(h)):n(h)}function f(h){return He(h)&&s++<o?(e.consume(h),f):(e.exit(r),n(h))}}const F3={tokenize:q3};function q3(e){const n=e.attempt(this.parser.constructs.contentInitial,i,o);let r;return n;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ve(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Te(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const V3={tokenize:$3},Bb={tokenize:G3};function $3(e){const n=this,r=[];let i=0,o,s,c;return f;function f(_){if(i<r.length){const j=r[i];return n.containerState=j[1],e.attempt(j[0].continuation,h,d)(_)}return d(_)}function h(_){if(i++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&N();const j=n.events.length;let L=j,O;for(;L--;)if(n.events[L][0]==="exit"&&n.events[L][1].type==="chunkFlow"){O=n.events[L][1].end;break}T(i);let $=j;for(;$<n.events.length;)n.events[$][1].end={...O},$++;return Sn(n.events,L+1,0,n.events.slice(j)),n.events.length=$,d(_)}return f(_)}function d(_){if(i===r.length){if(!o)return b(_);if(o.currentConstruct&&o.currentConstruct.concrete)return E(_);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Bb,m,y)(_)}function m(_){return o&&N(),T(i),b(_)}function y(_){return n.parser.lazy[n.now().line]=i!==r.length,c=n.now().offset,E(_)}function b(_){return n.containerState={},e.attempt(Bb,w,E)(_)}function w(_){return i++,r.push([n.currentConstruct,n.containerState]),b(_)}function E(_){if(_===null){o&&N(),T(0),e.consume(_);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),C(_)}function C(_){if(_===null){A(e.exit("chunkFlow"),!0),T(0),e.consume(_);return}return Te(_)?(e.consume(_),A(e.exit("chunkFlow")),i=0,n.interrupt=void 0,f):(e.consume(_),C)}function A(_,j){const L=n.sliceStream(_);if(j&&L.push(null),_.previous=s,s&&(s.next=_),s=_,o.defineSkip(_.start),o.write(L),n.parser.lazy[_.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<c&&(!o.events[O][1].end||o.events[O][1].end.offset>c))return;const $=n.events.length;let G=$,ee,P;for(;G--;)if(n.events[G][0]==="exit"&&n.events[G][1].type==="chunkFlow"){if(ee){P=n.events[G][1].end;break}ee=!0}for(T(i),O=$;O<n.events.length;)n.events[O][1].end={...P},O++;Sn(n.events,G+1,0,n.events.slice($)),n.events.length=O}}function T(_){let j=r.length;for(;j-- >_;){const L=r[j];n.containerState=L[1],L[0].exit.call(n,e)}r.length=_}function N(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function G3(e,n,r){return Ve(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function sl(e){if(e===null||it(e)||Xa(e))return 1;if(Mc(e))return 2}function jc(e,n,r){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(n=s(n,r),i.push(s))}return n}const cp={name:"attention",resolveAll:Y3,tokenize:K3};function Y3(e,n){let r=-1,i,o,s,c,f,h,d,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;h=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};Ub(y,-h),Ub(b,h),c={type:h>1?"strongSequence":"emphasisSequence",start:y,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[i][1].end={...c.start},e[r][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=On(d,[["enter",e[i][1],n],["exit",e[i][1],n]])),d=On(d,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),d=On(d,jc(n.parser.constructs.insideSpan.null,e.slice(i+1,r),n)),d=On(d,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[r][1].end.offset-e[r][1].start.offset?(m=2,d=On(d,[["enter",e[r][1],n],["exit",e[r][1],n]])):m=0,Sn(e,i-1,r-i+3,d),r=i+d.length-m-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function K3(e,n){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=sl(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),m=sl(h),y=!m||m===2&&o||r.includes(h),b=!o||o===2&&m||r.includes(i);return d._open=!!(s===42?y:y&&(o||!b)),d._close=!!(s===42?b:b&&(m||!y)),n(h)}}function Ub(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const X3={name:"autolink",tokenize:Q3};function Q3(e,n,r){let i=0;return o;function o(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return Wt(w)?(e.consume(w),c):w===64?r(w):d(w)}function c(w){return w===43||w===45||w===46||Ft(w)?(i=1,f(w)):d(w)}function f(w){return w===58?(e.consume(w),i=0,h):(w===43||w===45||w===46||Ft(w))&&i++<32?(e.consume(w),f):(i=0,d(w))}function h(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||rc(w)?r(w):(e.consume(w),h)}function d(w){return w===64?(e.consume(w),m):B3(w)?(e.consume(w),d):r(w)}function m(w){return Ft(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||Ft(w))&&i++<63){const E=w===45?b:y;return e.consume(w),E}return r(w)}}const as={partial:!0,tokenize:Z3};function Z3(e,n,r){return i;function i(s){return He(s)?Ve(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||Te(s)?n(s):r(s)}}const BS={continuation:{tokenize:J3},exit:eL,name:"blockQuote",tokenize:W3};function W3(e,n,r){const i=this;return o;function o(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 He(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function J3(e,n,r){const i=this;return o;function o(c){return He(c)?Ve(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(BS,n,r)(c)}}function eL(e){e.exit("blockQuote")}const US={name:"characterEscape",tokenize:tL};function tL(e,n,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return H3(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const HS={name:"characterReference",tokenize:nL};function nL(e,n,r){const i=this;let o=0,s,c;return f;function f(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),h}function h(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,c=Ft,m(y))}function d(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=U3,m):(e.enter("characterReferenceValue"),s=7,c=up,m(y))}function m(y){if(y===59&&o){const b=e.exit("characterReferenceValue");return c===Ft&&!hm(i.sliceSerialize(b))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(y)&&o++<s?(e.consume(y),m):r(y)}}const Hb={partial:!0,tokenize:aL},Fb={concrete:!0,name:"codeFenced",tokenize:rL};function rL(e,n,r){const i=this,o={partial:!0,tokenize:L};let s=0,c=0,f;return h;function h(O){return d(O)}function d(O){const $=i.events[i.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,f=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(O)}function m(O){return O===f?(c++,e.consume(O),m):c<3?r(O):(e.exit("codeFencedFenceSequence"),He(O)?Ve(e,y,"whitespace")(O):y(O))}function y(O){return O===null||Te(O)?(e.exit("codeFencedFence"),i.interrupt?n(O):e.check(Hb,C,j)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||Te(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(O)):He(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ve(e,w,"whitespace")(O)):O===96&&O===f?r(O):(e.consume(O),b)}function w(O){return O===null||Te(O)?y(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(O))}function E(O){return O===null||Te(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(O)):O===96&&O===f?r(O):(e.consume(O),E)}function C(O){return e.attempt(o,j,A)(O)}function A(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),T}function T(O){return s>0&&He(O)?Ve(e,N,"linePrefix",s+1)(O):N(O)}function N(O){return O===null||Te(O)?e.check(Hb,C,j)(O):(e.enter("codeFlowValue"),_(O))}function _(O){return O===null||Te(O)?(e.exit("codeFlowValue"),N(O)):(e.consume(O),_)}function j(O){return e.exit("codeFenced"),n(O)}function L(O,$,G){let ee=0;return P;function P(le){return O.enter("lineEnding"),O.consume(le),O.exit("lineEnding"),re}function re(le){return O.enter("codeFencedFence"),He(le)?Ve(O,Q,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):Q(le)}function Q(le){return le===f?(O.enter("codeFencedFenceSequence"),W(le)):G(le)}function W(le){return le===f?(ee++,O.consume(le),W):ee>=c?(O.exit("codeFencedFenceSequence"),He(le)?Ve(O,q,"whitespace")(le):q(le)):G(le)}function q(le){return le===null||Te(le)?(O.exit("codeFencedFence"),$(le)):G(le)}}}function aL(e,n,r){const i=this;return o;function o(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 Eh={name:"codeIndented",tokenize:lL},iL={partial:!0,tokenize:oL};function lL(e,n,r){const i=this;return o;function o(d){return e.enter("codeIndented"),Ve(e,s,"linePrefix",5)(d)}function s(d){const m=i.events[i.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?c(d):r(d)}function c(d){return d===null?h(d):Te(d)?e.attempt(iL,c,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||Te(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),n(d)}}function oL(e,n,r){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?r(c):Te(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):Ve(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):Te(c)?o(c):r(c)}}const sL={name:"codeText",previous:cL,resolve:uL,tokenize:fL};function uL(e){let n=e.length-4,r=3,i,o;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;)o===void 0?i!==n&&e[i][1].type!=="lineEnding"&&(o=i):(i===n||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),n-=i-o-2,i=o+2),o=void 0);return e}function cL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fL(e,n,r){let i=0,o,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"),h(y))}function h(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),h):y===96?(s=e.enter("codeTextSequence"),o=0,m(y)):Te(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(y))}function d(y){return y===null||y===32||y===96||Te(y)?(e.exit("codeTextData"),h(y)):(e.consume(y),d)}function m(y){return y===96?(e.consume(y),o++,m):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(y)):(s.type="codeTextData",d(y))}}class dL{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 o=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&So(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),So(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),So(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);So(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);So(this.left,r.reverse())}}}function So(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 FS(e){const n={};let r=-1,i,o,s,c,f,h,d;const m=new dL(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"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(n,hL(m,r)),r=n[r],d=!0);else if(i[1]._container){for(s=r,o=void 0;s--;)if(c=m.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...m.get(o)[1].start},f=m.slice(o,r),f.unshift(i),m.splice(o,r-o+1,f))}}return Sn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!d}function hL(e,n){const r=e.get(n)[1],i=e.get(n)[2];let o=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,h=[],d={};let m,y,b=-1,w=r,E=0,C=0;const A=[C];for(;w;){for(;e.get(++o)[1]!==w;);s.push(o),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&&(C=b+1,A.push(C),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();h.push([N,N+T.length-1]),e.splice(N,2,T)}for(h.reverse(),b=-1;++b<h.length;)d[E+h[b][0]]=E+h[b][1],E+=h[b][1]-h[b][0]-1;return d}const pL={resolve:gL,tokenize:yL},mL={partial:!0,tokenize:vL};function gL(e){return FS(e),e}function yL(e,n){let r;return i;function i(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?s(f):Te(f)?e.check(mL,c,s)(f):(e.consume(f),o)}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,o}}function vL(e,n,r){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ve(e,s,"linePrefix")}function s(c){if(c===null||Te(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 qS(e,n,r,i,o,s,c,f,h){const d=h||Number.POSITIVE_INFINITY;let m=0;return y;function y(T){return T===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(T),e.exit(s),b):T===null||T===32||T===41||rc(T)?r(T):(e.enter(i),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(T))}function b(T){return T===62?(e.enter(s),e.consume(T),e.exit(s),e.exit(o),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||Te(T)?r(T):(e.consume(T),T===92?E:w)}function E(T){return T===60||T===62||T===92?(e.consume(T),w):w(T)}function C(T){return!m&&(T===null||T===41||it(T))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(i),n(T)):m<d&&T===40?(e.consume(T),m++,C):T===41?(e.consume(T),m--,C):T===null||T===32||T===40||rc(T)?r(T):(e.consume(T),T===92?A:C)}function A(T){return T===40||T===41||T===92?(e.consume(T),C):C(T)}}function VS(e,n,r,i,o,s){const c=this;let f=0,h;return d;function d(w){return e.enter(i),e.enter(o),e.consume(w),e.exit(o),e.enter(s),m}function m(w){return f>999||w===null||w===91||w===93&&!h||w===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(w):w===93?(e.exit(s),e.enter(o),e.consume(w),e.exit(o),e.exit(i),n):Te(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||Te(w)||f++>999?(e.exit("chunkString"),m(w)):(e.consume(w),h||(h=!He(w)),w===92?b:y)}function b(w){return w===91||w===92||w===93?(e.consume(w),f++,y):y(w)}}function $S(e,n,r,i,o,s){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(i),e.enter(o),e.consume(b),e.exit(o),c=b===40?41:b,h):r(b)}function h(b){return b===c?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),n):(e.enter(s),d(b))}function d(b){return b===c?(e.exit(s),h(c)):b===null?r(b):Te(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Ve(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===c||b===null||Te(b)?(e.exit("chunkString"),d(b)):(e.consume(b),b===92?y:m)}function y(b){return b===c||b===92?(e.consume(b),m):m(b)}}function No(e,n){let r;return i;function i(o){return Te(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i):He(o)?Ve(e,i,r?"linePrefix":"lineSuffix")(o):n(o)}}const xL={name:"definition",tokenize:wL},bL={partial:!0,tokenize:SL};function wL(e,n,r){const i=this;let o;return s;function s(w){return e.enter("definition"),c(w)}function c(w){return VS.call(i,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return o=$n(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),h):r(w)}function h(w){return it(w)?No(e,d)(w):d(w)}function d(w){return qS(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return e.attempt(bL,y,y)(w)}function y(w){return He(w)?Ve(e,b,"whitespace")(w):b(w)}function b(w){return w===null||Te(w)?(e.exit("definition"),i.parser.defined.push(o),n(w)):r(w)}}function SL(e,n,r){return i;function i(f){return it(f)?No(e,o)(f):r(f)}function o(f){return $S(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return He(f)?Ve(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Te(f)?n(f):r(f)}}const EL={name:"hardBreakEscape",tokenize:kL};function kL(e,n,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Te(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const CL={name:"headingAtx",resolve:AL,tokenize:TL};function AL(e,n){let r=e.length-2,i=3,o,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&&(o={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"},Sn(e,i,r-i+1,[["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n]])),e}function TL(e,n,r){let i=0;return o;function o(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||it(m)?(e.exit("atxHeadingSequence"),f(m)):r(m)}function f(m){return m===35?(e.enter("atxHeadingSequence"),h(m)):m===null||Te(m)?(e.exit("atxHeading"),n(m)):He(m)?Ve(e,f,"whitespace")(m):(e.enter("atxHeadingText"),d(m))}function h(m){return m===35?(e.consume(m),h):(e.exit("atxHeadingSequence"),f(m))}function d(m){return m===null||m===35||it(m)?(e.exit("atxHeadingText"),f(m)):(e.consume(m),d)}}const RL=["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"],qb=["pre","script","style","textarea"],_L={concrete:!0,name:"htmlFlow",resolveTo:jL,tokenize:DL},NL={partial:!0,tokenize:LL},ML={partial:!0,tokenize:OL};function jL(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 DL(e,n,r){const i=this;let o,s,c,f,h;return d;function d(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,C):M===63?(e.consume(M),o=3,i.interrupt?n:k):Wt(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function b(M){return M===45?(e.consume(M),o=2,w):M===91?(e.consume(M),o=5,f=0,E):Wt(M)?(e.consume(M),o=4,i.interrupt?n:k):r(M)}function w(M){return M===45?(e.consume(M),i.interrupt?n:k):r(M)}function E(M){const fe="CDATA[";return M===fe.charCodeAt(f++)?(e.consume(M),f===fe.length?i.interrupt?n:Q:E):r(M)}function C(M){return Wt(M)?(e.consume(M),c=String.fromCharCode(M),A):r(M)}function A(M){if(M===null||M===47||M===62||it(M)){const fe=M===47,Ce=c.toLowerCase();return!fe&&!s&&qb.includes(Ce)?(o=1,i.interrupt?n(M):Q(M)):RL.includes(c.toLowerCase())?(o=6,fe?(e.consume(M),T):i.interrupt?n(M):Q(M)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(M):s?N(M):_(M))}return M===45||Ft(M)?(e.consume(M),c+=String.fromCharCode(M),A):r(M)}function T(M){return M===62?(e.consume(M),i.interrupt?n:Q):r(M)}function N(M){return He(M)?(e.consume(M),N):P(M)}function _(M){return M===47?(e.consume(M),P):M===58||M===95||Wt(M)?(e.consume(M),j):He(M)?(e.consume(M),_):P(M)}function j(M){return M===45||M===46||M===58||M===95||Ft(M)?(e.consume(M),j):L(M)}function L(M){return M===61?(e.consume(M),O):He(M)?(e.consume(M),L):_(M)}function O(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),h=M,$):He(M)?(e.consume(M),O):G(M)}function $(M){return M===h?(e.consume(M),h=null,ee):M===null||Te(M)?r(M):(e.consume(M),$)}function G(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||it(M)?L(M):(e.consume(M),G)}function ee(M){return M===47||M===62||He(M)?_(M):r(M)}function P(M){return M===62?(e.consume(M),re):r(M)}function re(M){return M===null||Te(M)?Q(M):He(M)?(e.consume(M),re):r(M)}function Q(M){return M===45&&o===2?(e.consume(M),z):M===60&&o===1?(e.consume(M),K):M===62&&o===4?(e.consume(M),X):M===63&&o===3?(e.consume(M),k):M===93&&o===5?(e.consume(M),ae):Te(M)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(NL,oe,W)(M)):M===null||Te(M)?(e.exit("htmlFlowData"),W(M)):(e.consume(M),Q)}function W(M){return e.check(ML,q,oe)(M)}function q(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),le}function le(M){return M===null||Te(M)?W(M):(e.enter("htmlFlowData"),Q(M))}function z(M){return M===45?(e.consume(M),k):Q(M)}function K(M){return M===47?(e.consume(M),c="",U):Q(M)}function U(M){if(M===62){const fe=c.toLowerCase();return qb.includes(fe)?(e.consume(M),X):Q(M)}return Wt(M)&&c.length<8?(e.consume(M),c+=String.fromCharCode(M),U):Q(M)}function ae(M){return M===93?(e.consume(M),k):Q(M)}function k(M){return M===62?(e.consume(M),X):M===45&&o===2?(e.consume(M),k):Q(M)}function X(M){return M===null||Te(M)?(e.exit("htmlFlowData"),oe(M)):(e.consume(M),X)}function oe(M){return e.exit("htmlFlow"),n(M)}}function OL(e,n,r){const i=this;return o;function o(c){return Te(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 LL(e,n,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(as,n,r)}}const zL={name:"htmlText",tokenize:PL};function PL(e,n,r){const i=this;let o,s,c;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),h}function h(k){return k===33?(e.consume(k),d):k===47?(e.consume(k),L):k===63?(e.consume(k),_):Wt(k)?(e.consume(k),G):r(k)}function d(k){return k===45?(e.consume(k),m):k===91?(e.consume(k),s=0,E):Wt(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):Te(k)?(c=y,K(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 E(k){const X="CDATA[";return k===X.charCodeAt(s++)?(e.consume(k),s===X.length?C:E):r(k)}function C(k){return k===null?r(k):k===93?(e.consume(k),A):Te(k)?(c=C,K(k)):(e.consume(k),C)}function A(k){return k===93?(e.consume(k),T):C(k)}function T(k){return k===62?z(k):k===93?(e.consume(k),T):C(k)}function N(k){return k===null||k===62?z(k):Te(k)?(c=N,K(k)):(e.consume(k),N)}function _(k){return k===null?r(k):k===63?(e.consume(k),j):Te(k)?(c=_,K(k)):(e.consume(k),_)}function j(k){return k===62?z(k):_(k)}function L(k){return Wt(k)?(e.consume(k),O):r(k)}function O(k){return k===45||Ft(k)?(e.consume(k),O):$(k)}function $(k){return Te(k)?(c=$,K(k)):He(k)?(e.consume(k),$):z(k)}function G(k){return k===45||Ft(k)?(e.consume(k),G):k===47||k===62||it(k)?ee(k):r(k)}function ee(k){return k===47?(e.consume(k),z):k===58||k===95||Wt(k)?(e.consume(k),P):Te(k)?(c=ee,K(k)):He(k)?(e.consume(k),ee):z(k)}function P(k){return k===45||k===46||k===58||k===95||Ft(k)?(e.consume(k),P):re(k)}function re(k){return k===61?(e.consume(k),Q):Te(k)?(c=re,K(k)):He(k)?(e.consume(k),re):ee(k)}function Q(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(e.consume(k),o=k,W):Te(k)?(c=Q,K(k)):He(k)?(e.consume(k),Q):(e.consume(k),q)}function W(k){return k===o?(e.consume(k),o=void 0,le):k===null?r(k):Te(k)?(c=W,K(k)):(e.consume(k),W)}function q(k){return k===null||k===34||k===39||k===60||k===61||k===96?r(k):k===47||k===62||it(k)?ee(k):(e.consume(k),q)}function le(k){return k===47||k===62||it(k)?ee(k):r(k)}function z(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),n):r(k)}function K(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),U}function U(k){return He(k)?Ve(e,ae,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):ae(k)}function ae(k){return e.enter("htmlTextData"),c(k)}}const pm={name:"labelEnd",resolveAll:HL,resolveTo:FL,tokenize:qL},IL={tokenize:VL},BL={tokenize:$L},UL={tokenize:GL};function HL(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 o=i.type==="labelImage"?4:2;i.type="data",n+=o}}return e.length!==r.length&&Sn(e,0,e.length,r),e}function FL(e,n){let r=e.length,i=0,o,s,c,f;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=r);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={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",h,n],["enter",d,n]],f=On(f,e.slice(s+1,s+i+3)),f=On(f,[["enter",m,n]]),f=On(f,jc(n.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),n)),f=On(f,[["exit",m,n],e[c-2],e[c-1],["exit",d,n]]),f=On(f,e.slice(c+1)),f=On(f,[["exit",h,n]]),Sn(e,s,e.length,f),e}function qL(e,n,r){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return f;function f(b){return s?s._inactive?y(b):(c=i.parser.defined.includes($n(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),h):r(b)}function h(b){return b===40?e.attempt(IL,m,c?m:y)(b):b===91?e.attempt(BL,m,c?d:y)(b):c?m(b):y(b)}function d(b){return e.attempt(UL,m,y)(b)}function m(b){return n(b)}function y(b){return s._balanced=!0,r(b)}}function VL(e,n,r){return i;function i(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),o}function o(y){return it(y)?No(e,s)(y):s(y)}function s(y){return y===41?m(y):qS(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return it(y)?No(e,h)(y):m(y)}function f(y){return r(y)}function h(y){return y===34||y===39||y===40?$S(e,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):m(y)}function d(y){return it(y)?No(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 $L(e,n,r){const i=this;return o;function o(f){return VS.call(i,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes($n(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function GL(e,n,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const YL={name:"labelStartImage",resolveAll:pm.resolveAll,tokenize:KL};function KL(e,n,r){const i=this;return o;function o(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 XL={name:"labelStartLink",resolveAll:pm.resolveAll,tokenize:QL};function QL(e,n,r){const i=this;return o;function o(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 kh={name:"lineEnding",tokenize:ZL};function ZL(e,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ve(e,n,"linePrefix")}}const Gu={name:"thematicBreak",tokenize:WL};function WL(e,n,r){let i=0,o;return s;function s(d){return e.enter("thematicBreak"),c(d)}function c(d){return o=d,f(d)}function f(d){return d===o?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||Te(d))?(e.exit("thematicBreak"),n(d)):r(d)}function h(d){return d===o?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),He(d)?Ve(e,f,"whitespace")(d):f(d))}}const ln={continuation:{tokenize:nz},exit:az,name:"list",tokenize:tz},JL={partial:!0,tokenize:iz},ez={partial:!0,tokenize:rz};function tz(e,n,r){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(w){const E=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:up(w)){if(i.containerState.type||(i.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Gu,r,d)(w):d(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(w)}return r(w)}function h(w){return up(w)&&++c<10?(e.consume(w),h):(!i.interrupt||c<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),d(w)):r(w)}function d(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(as,i.interrupt?r:m,e.attempt(JL,b,y))}function m(w){return i.containerState.initialBlankLine=!0,s++,b(w)}function y(w){return He(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 nz(e,n,r){const i=this;return i.containerState._closeFlow=void 0,e.check(as,o,s);function o(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ve(e,n,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!He(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(ez,n,c)(f))}function c(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ve(e,e.attempt(ln,n,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function rz(e,n,r){const i=this;return Ve(e,o,"listItemIndent",i.containerState.size+1);function o(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 az(e){e.exit(this.containerState.type)}function iz(e,n,r){const i=this;return Ve(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!He(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const Vb={name:"setextUnderline",resolveTo:lz,tokenize:oz};function lz(e,n){let r=e.length,i,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=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[o][1].type="setextHeadingText",s?(e.splice(o,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 oz(e,n,r){const i=this;let o;return s;function s(d){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"),o=d,c(d)):r(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===o?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),He(d)?Ve(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||Te(d)?(e.exit("setextHeadingLine"),n(d)):r(d)}}const sz={tokenize:uz};function uz(e){const n=this,r=e.attempt(as,i,e.attempt(this.parser.constructs.flowInitial,o,Ve(e,e.attempt(this.parser.constructs.flow,o,e.attempt(pL,o)),"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 o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const cz={resolveAll:YS()},fz=GS("string"),dz=GS("text");function GS(e){return{resolveAll:YS(e==="text"?hz:void 0),tokenize:n};function n(r){const i=this,o=this.parser.constructs[e],s=r.attempt(o,c,f);return c;function c(m){return d(m)?s(m):f(m)}function f(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),h}function h(m){return d(m)?(r.exit("data"),s(m)):(r.consume(m),h)}function d(m){if(m===null)return!0;const y=o[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 YS(e){return n;function n(r,i){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,i):r}}function hz(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],o=n.sliceStream(i);let s=o.length,c=-1,f=0,h;for(;s--;){const d=o[s];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)h=!0,f++;else if(d!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const d={type:r===e.length||h||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={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(r,0,["enter",d,n],["exit",d,n]),r+=2)}r++}return e}const pz={42:ln,43:ln,45:ln,48:ln,49:ln,50:ln,51:ln,52:ln,53:ln,54:ln,55:ln,56:ln,57:ln,62:BS},mz={91:xL},gz={[-2]:Eh,[-1]:Eh,32:Eh},yz={35:CL,42:Gu,45:[Vb,Gu],60:_L,61:Vb,95:Gu,96:Fb,126:Fb},vz={38:HS,92:US},xz={[-5]:kh,[-4]:kh,[-3]:kh,33:YL,38:HS,42:cp,60:[X3,zL],91:XL,92:[EL,US],93:pm,95:cp,96:sL},bz={null:[cp,cz]},wz={null:[42,95]},Sz={null:[]},Ez=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:wz,contentInitial:mz,disable:Sz,document:pz,flow:yz,flowInitial:gz,insideSpan:bz,string:vz,text:xz},Symbol.toStringTag,{value:"Module"}));function kz(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 o={},s=[];let c=[],f=[];const h={attempt:$(L),check:$(O),consume:N,enter:_,exit:j,interrupt:$(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:C,events:[],now:E,parser:e,previous:null,sliceSerialize:b,sliceStream:w,write:y};let m=n.tokenize.call(d,h);return n.resolveAll&&s.push(n),d;function y(re){return c=On(c,re),A(),c[c.length-1]!==null?[]:(G(n,0),d.events=jc(s,d.events,d),d.events)}function b(re,Q){return Az(w(re),Q)}function w(re){return Cz(c,re)}function E(){const{_bufferIndex:re,_index:Q,line:W,column:q,offset:le}=i;return{_bufferIndex:re,_index:Q,line:W,column:q,offset:le}}function C(re){o[re.line]=re.column,P()}function A(){let re;for(;i._index<c.length;){const Q=c[i._index];if(typeof Q=="string")for(re=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===re&&i._bufferIndex<Q.length;)T(Q.charCodeAt(i._bufferIndex));else T(Q)}}function T(re){m=m(re)}function N(re){Te(re)?(i.line++,i.column=1,i.offset+=re===-3?2:1,P()):re!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=re}function _(re,Q){const W=Q||{};return W.type=re,W.start=E(),d.events.push(["enter",W,d]),f.push(W),W}function j(re){const Q=f.pop();return Q.end=E(),d.events.push(["exit",Q,d]),Q}function L(re,Q){G(re,Q.from)}function O(re,Q){Q.restore()}function $(re,Q){return W;function W(q,le,z){let K,U,ae,k;return Array.isArray(q)?oe(q):"tokenize"in q?oe([q]):X(q);function X(de){return xe;function xe(De){const lt=De!==null&&de[De],Ze=De!==null&&de.null,dt=[...Array.isArray(lt)?lt:lt?[lt]:[],...Array.isArray(Ze)?Ze:Ze?[Ze]:[]];return oe(dt)(De)}}function oe(de){return K=de,U=0,de.length===0?z:M(de[U])}function M(de){return xe;function xe(De){return k=ee(),ae=de,de.partial||(d.currentConstruct=de),de.name&&d.parser.constructs.disable.null.includes(de.name)?Ce():de.tokenize.call(Q?Object.assign(Object.create(d),Q):d,h,fe,Ce)(De)}}function fe(de){return re(ae,k),le}function Ce(de){return k.restore(),++U<K.length?M(K[U]):z}}}function G(re,Q){re.resolveAll&&!s.includes(re)&&s.push(re),re.resolve&&Sn(d.events,Q,d.events.length-Q,re.resolve(d.events.slice(Q),d)),re.resolveTo&&(d.events=re.resolveTo(d.events,d))}function ee(){const re=E(),Q=d.previous,W=d.currentConstruct,q=d.events.length,le=Array.from(f);return{from:q,restore:z};function z(){i=re,d.previous=Q,d.currentConstruct=W,d.events.length=q,f=le,P()}}function P(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function Cz(e,n){const r=n.start._index,i=n.start._bufferIndex,o=n.end._index,s=n.end._bufferIndex;let c;if(r===o)c=[e[r].slice(i,s)];else{if(c=e.slice(r,o),i>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function Az(e,n){let r=-1;const i=[];let o;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=`
|
|
397
|
+
`;break}case-3:{c=`\r
|
|
398
|
+
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function Tz(e){const i={constructs:PS([Ez,...(e||{}).extensions||[]]),content:o(F3),defined:[],document:o(V3),flow:o(sz),lazy:{},string:o(fz),text:o(dz)};return i;function o(s){return c;function c(f){return kz(i,s,f)}}}function Rz(e){for(;!FS(e););return e}const $b=/[\0\t\n\r]/g;function _z(){let e=1,n="",r=!0,i;return o;function o(s,c,f){const h=[];let d,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($b.lastIndex=y,d=$b.exec(s),b=d&&d.index!==void 0?d.index:s.length,w=s.charCodeAt(b),!d){n=s.slice(y);break}if(w===10&&y===b&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),y<b&&(h.push(s.slice(y,b)),e+=b-y),w){case 0:{h.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,h.push(-2);e++<m;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}y=b+1}return f&&(i&&h.push(-5),n&&h.push(n),h.push(null)),h}}const Nz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mz(e){return e.replace(Nz,jz)}function jz(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return IS(r.slice(s?2:1),s?16:10)}return hm(r)||e}const KS={}.hasOwnProperty;function Dz(e,n,r){return typeof n!="string"&&(r=n,n=void 0),Oz(r)(Rz(Tz(r).document().write(_z()(e,n,!0))))}function Oz(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(vr),autolinkProtocol:ee,autolinkEmail:ee,atxHeading:s(gr),blockQuote:s(Ze),characterEscape:ee,characterReference:ee,codeFenced:s(dt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(dt,c),codeText:s($t,c),codeTextData:ee,data:ee,codeFlowValue:ee,definition:s(un),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(mr),hardBreakEscape:s(Ja),hardBreakTrailing:s(Ja),htmlFlow:s(Ct,c),htmlFlowData:ee,htmlText:s(Ct,c),htmlTextData:ee,image:s(yr),label:c,link:s(vr),listItem:s(Gt),listItemValue:b,listOrdered:s(Zn,y),listUnordered:s(Zn),paragraph:s(Wn),reference:M,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(gr),strong:s(Sa),thematicBreak:s(ti)},exit:{atxHeading:h(),atxHeadingSequence:L,autolink:h(),autolinkEmail:lt,autolinkProtocol:De,blockQuote:h(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:de,characterReference:xe,codeFenced:h(A),codeFencedFence:C,codeFencedFenceInfo:w,codeFencedFenceMeta:E,codeFlowValue:P,codeIndented:h(T),codeText:h(le),codeTextData:P,data:P,definition:h(),definitionDestinationString:j,definitionLabelString:N,definitionTitleString:_,emphasis:h(),hardBreakEscape:h(Q),hardBreakTrailing:h(Q),htmlFlow:h(W),htmlFlowData:P,htmlText:h(q),htmlTextData:P,image:h(K),label:ae,labelText:U,lineEnding:re,link:h(z),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:fe,resourceDestinationString:k,resourceTitleString:X,resource:oe,setextHeading:h(G),setextHeadingLineSequence:$,setextHeadingText:O,strong:h(),thematicBreak:h()}};XS(n,(e||{}).mdastExtensions||[]);const r={};return i;function i(J){let se={type:"root",children:[]};const Ee={stack:[se],tokenStack:[],config:n,enter:f,exit:d,buffer:c,resume:m,data:r},Ae=[];let Ge=-1;for(;++Ge<J.length;)if(J[Ge][1].type==="listOrdered"||J[Ge][1].type==="listUnordered")if(J[Ge][0]==="enter")Ae.push(Ge);else{const Yt=Ae.pop();Ge=o(J,Yt,Ge)}for(Ge=-1;++Ge<J.length;){const Yt=n[J[Ge][0]];KS.call(Yt,J[Ge][1].type)&&Yt[J[Ge][1].type].call(Object.assign({sliceSerialize:J[Ge][2].sliceSerialize},Ee),J[Ge][1])}if(Ee.tokenStack.length>0){const Yt=Ee.tokenStack[Ee.tokenStack.length-1];(Yt[1]||Gb).call(Ee,void 0,Yt[0])}for(se.position={start:da(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:da(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<n.transforms.length;)se=n.transforms[Ge](se)||se;return se}function o(J,se,Ee){let Ae=se-1,Ge=-1,Yt=!1,Bn,It,En,Kt;for(;++Ae<=Ee;){const yt=J[Ae];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?Ge++:Ge--,Kt=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Bn&&!Kt&&!Ge&&!En&&(En=Ae),Kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kt=void 0}if(!Ge&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||Ge===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Bn){let Bt=Ae;for(It=void 0;Bt--;){const en=J[Bt];if(en[1].type==="lineEnding"||en[1].type==="lineEndingBlank"){if(en[0]==="exit")continue;It&&(J[It][1].type="lineEndingBlank",Yt=!0),en[1].type="lineEnding",It=Bt}else if(!(en[1].type==="linePrefix"||en[1].type==="blockQuotePrefix"||en[1].type==="blockQuotePrefixWhitespace"||en[1].type==="blockQuoteMarker"||en[1].type==="listItemIndent"))break}En&&(!It||En<It)&&(Bn._spread=!0),Bn.end=Object.assign({},It?J[It][1].start:yt[1].end),J.splice(It||Ae,0,["exit",Bn,yt[2]]),Ae++,Ee++}if(yt[1].type==="listItemPrefix"){const Bt={type:"listItem",_spread:!1,start:Object.assign({},yt[1].start),end:void 0};Bn=Bt,J.splice(Ae,0,["enter",Bt,yt[2]]),Ae++,Ee++,En=void 0,Kt=!0}}}return J[se][1]._spread=Yt,Ee}function s(J,se){return Ee;function Ee(Ae){f.call(this,J(Ae),Ae),se&&se.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(J,se,Ee){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([se,Ee||void 0]),J.position={start:da(se.start),end:void 0}}function h(J){return se;function se(Ee){J&&J.call(this,Ee),d.call(this,Ee)}}function d(J,se){const Ee=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==J.type&&(se?se.call(this,J,Ae[0]):(Ae[1]||Gb).call(this,J,Ae[0]));else throw new Error("Cannot close `"+J.type+"` ("+_o({start:J.start,end:J.end})+"): it’s not open");Ee.position.end=da(J.end)}function m(){return dm(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function b(J){if(this.data.expectingFirstListItemValue){const se=this.stack[this.stack.length-2];se.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),se=this.stack[this.stack.length-1];se.lang=J}function E(){const J=this.resume(),se=this.stack[this.stack.length-1];se.meta=J}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const J=this.resume(),se=this.stack[this.stack.length-1];se.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const J=this.resume(),se=this.stack[this.stack.length-1];se.value=J.replace(/(\r?\n|\r)$/g,"")}function N(J){const se=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=se,Ee.identifier=$n(this.sliceSerialize(J)).toLowerCase()}function _(){const J=this.resume(),se=this.stack[this.stack.length-1];se.title=J}function j(){const J=this.resume(),se=this.stack[this.stack.length-1];se.url=J}function L(J){const se=this.stack[this.stack.length-1];if(!se.depth){const Ee=this.sliceSerialize(J).length;se.depth=Ee}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function $(J){const se=this.stack[this.stack.length-1];se.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function ee(J){const Ee=this.stack[this.stack.length-1].children;let Ae=Ee[Ee.length-1];(!Ae||Ae.type!=="text")&&(Ae=ei(),Ae.position={start:da(J.start),end:void 0},Ee.push(Ae)),this.stack.push(Ae)}function P(J){const se=this.stack.pop();se.value+=this.sliceSerialize(J),se.position.end=da(J.end)}function re(J){const se=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ee=se.children[se.children.length-1];Ee.position.end=da(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(se.type)&&(ee.call(this,J),P.call(this,J))}function Q(){this.data.atHardBreak=!0}function W(){const J=this.resume(),se=this.stack[this.stack.length-1];se.value=J}function q(){const J=this.resume(),se=this.stack[this.stack.length-1];se.value=J}function le(){const J=this.resume(),se=this.stack[this.stack.length-1];se.value=J}function z(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=se,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function K(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const se=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=se,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function U(J){const se=this.sliceSerialize(J),Ee=this.stack[this.stack.length-2];Ee.label=Mz(se),Ee.identifier=$n(se).toLowerCase()}function ae(){const J=this.stack[this.stack.length-1],se=this.resume(),Ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ee.type==="link"){const Ae=J.children;Ee.children=Ae}else Ee.alt=se}function k(){const J=this.resume(),se=this.stack[this.stack.length-1];se.url=J}function X(){const J=this.resume(),se=this.stack[this.stack.length-1];se.title=J}function oe(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function fe(J){const se=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=se,Ee.identifier=$n(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function Ce(J){this.data.characterReferenceType=J.type}function de(J){const se=this.sliceSerialize(J),Ee=this.data.characterReferenceType;let Ae;Ee?(Ae=IS(se,Ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=hm(se);const Ge=this.stack[this.stack.length-1];Ge.value+=Ae}function xe(J){const se=this.stack.pop();se.position.end=da(J.end)}function De(J){P.call(this,J);const se=this.stack[this.stack.length-1];se.url=this.sliceSerialize(J)}function lt(J){P.call(this,J);const se=this.stack[this.stack.length-1];se.url="mailto:"+this.sliceSerialize(J)}function Ze(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function $t(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function mr(){return{type:"emphasis",children:[]}}function gr(){return{type:"heading",depth:0,children:[]}}function Ja(){return{type:"break"}}function Ct(){return{type:"html",value:""}}function yr(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function Zn(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function Gt(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Wn(){return{type:"paragraph",children:[]}}function Sa(){return{type:"strong",children:[]}}function ei(){return{type:"text",value:""}}function ti(){return{type:"thematicBreak"}}}function da(e){return{line:e.line,column:e.column,offset:e.offset}}function XS(e,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?XS(e,i):Lz(e,i)}}function Lz(e,n){let r;for(r in n)if(KS.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 Gb(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+_o({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+_o({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+_o({start:n.start,end:n.end})+") is still open")}function zz(e){const n=this;n.parser=r;function r(i){return Dz(i,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Pz(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 Iz(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
399
|
+
`}]}function Bz(e,n){const r=n.value?n.value+`
|
|
400
|
+
`:"",i={};n.lang&&(i.className=["language-"+n.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Uz(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Hz(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Fz(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),o=bl(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 h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(n,d),e.applyData(n,d)}function qz(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 Vz(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function QS(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 o=e.all(n),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function $z(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return QS(e,n);const o={src:bl(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,s),e.applyData(n,s)}function Gz(e,n){const r={src:bl(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 Yz(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 Kz(e,n){const r=String(n.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return QS(e,n);const o={href:bl(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function Xz(e,n){const r={href:bl(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 Qz(e,n,r){const i=e.all(n),o=r?Zz(r):ZS(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];(o||f!==0||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
401
|
+
`}),m.type==="element"&&m.tagName==="p"&&!o?c.push(...m.children):c.push(m)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
|
|
402
|
+
`});const d={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,d),e.applyData(n,d)}function Zz(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=ZS(r[i])}return n}function ZS(e){const n=e.spread;return n??e.children.length>1}function Wz(e,n){const r={},i=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++o<i.length;){const c=i[o];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 Jz(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function eP(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function tP(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function nP(e,n){const r=e.all(n),i=r.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(n.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=sm(n.children[1]),h=_S(n.children[n.children.length-1]);f&&h&&(c.position={start:f,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,s),e.applyData(n,s)}function rP(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 h=-1;const d=[];for(;++h<f;){const y=n.children[h],b={},w=c?c[h]:void 0;w&&(b.align=w);let E={type:"element",tagName:s,properties:b,children:[]};y&&(E.children=e.all(y),e.patch(y,E),E=e.applyData(y,E)),d.push(E)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,m),e.applyData(n,m)}function aP(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const Yb=9,Kb=32;function iP(e){const n=String(e),r=/\r?\n|\r/g;let i=r.exec(n),o=0;const s=[];for(;i;)s.push(Xb(n.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=r.exec(n);return s.push(Xb(n.slice(o),o>0,!1)),s.join("")}function Xb(e,n,r){let i=0,o=e.length;if(n){let s=e.codePointAt(i);for(;s===Yb||s===Kb;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(o-1);for(;s===Yb||s===Kb;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function lP(e,n){const r={type:"text",value:iP(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function oP(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const sP={blockquote:Pz,break:Iz,code:Bz,delete:Uz,emphasis:Hz,footnoteReference:Fz,heading:qz,html:Vz,imageReference:$z,image:Gz,inlineCode:Yz,linkReference:Kz,link:Xz,listItem:Qz,list:Wz,paragraph:Jz,root:eP,strong:tP,table:nP,tableCell:aP,tableRow:rP,text:lP,thematicBreak:oP,toml:ju,yaml:ju,definition:ju,footnoteDefinition:ju};function ju(){}const WS=-1,Dc=0,Mo=1,ac=2,mm=3,gm=4,ym=5,vm=6,JS=7,eE=8,Qb=typeof self=="object"?self:globalThis,uP=(e,n)=>{const r=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,c]=n[o];switch(s){case Dc:case WS:return r(c,o);case Mo:{const f=r([],o);for(const h of c)f.push(i(h));return f}case ac:{const f=r({},o);for(const[h,d]of c)f[i(h)]=i(d);return f}case mm:return r(new Date(c),o);case gm:{const{source:f,flags:h}=c;return r(new RegExp(f,h),o)}case ym:{const f=r(new Map,o);for(const[h,d]of c)f.set(i(h),i(d));return f}case vm:{const f=r(new Set,o);for(const h of c)f.add(i(h));return f}case JS:{const{name:f,message:h}=c;return r(new Qb[f](h),o)}case eE:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);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 Qb[s](c),o)};return i},Zb=e=>uP(new Map,e)(0),Yi="",{toString:cP}={},{keys:fP}=Object,Eo=e=>{const n=typeof e;if(n!=="object"||!e)return[Dc,n];const r=cP.call(e).slice(8,-1);switch(r){case"Array":return[Mo,Yi];case"Object":return[ac,Yi];case"Date":return[mm,Yi];case"RegExp":return[gm,Yi];case"Map":return[ym,Yi];case"Set":return[vm,Yi];case"DataView":return[Mo,r]}return r.includes("Array")?[Mo,r]:r.includes("Error")?[JS,r]:[ac,r]},Du=([e,n])=>e===Dc&&(n==="function"||n==="symbol"),dP=(e,n,r,i)=>{const o=(c,f)=>{const h=i.push(c)-1;return r.set(f,h),h},s=c=>{if(r.has(c))return r.get(c);let[f,h]=Eo(c);switch(f){case Dc:{let m=c;switch(h){case"bigint":f=eE,m=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);m=null;break;case"undefined":return o([WS],c)}return o([f,m],c)}case Mo:{if(h){let b=c;return h==="DataView"?b=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(b=new Uint8Array(c)),o([h,[...b]],c)}const m=[],y=o([f,m],c);for(const b of c)m.push(s(b));return y}case ac:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const m=[],y=o([f,m],c);for(const b of fP(c))(e||!Du(Eo(c[b])))&&m.push([s(b),s(c[b])]);return y}case mm:return o([f,c.toISOString()],c);case gm:{const{source:m,flags:y}=c;return o([f,{source:m,flags:y}],c)}case ym:{const m=[],y=o([f,m],c);for(const[b,w]of c)(e||!(Du(Eo(b))||Du(Eo(w))))&&m.push([s(b),s(w)]);return y}case vm:{const m=[],y=o([f,m],c);for(const b of c)(e||!Du(Eo(b)))&&m.push(s(b));return y}}const{message:d}=c;return o([f,{name:h,message:d}],c)};return s},Wb=(e,{json:n,lossy:r}={})=>{const i=[];return dP(!(n||r),!!n,new Map,i)(e),i},Uo=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Zb(Wb(e,n)):structuredClone(e):(e,n)=>Zb(Wb(e,n));function hP(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 pP(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function mP(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||hP,i=e.options.footnoteBackLabel||pP,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const m=e.all(d),y=String(d.identifier).toUpperCase(),b=bl(y.toLowerCase());let w=0;const E=[],C=e.footnoteCounts.get(y);for(;C!==void 0&&++w<=C;){E.length>0&&E.push({type:"text",value:" "});let N=typeof r=="string"?r:r(h,w);typeof N=="string"&&(N={type:"text",value:N}),E.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,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(...E)}else m.push(...E);const T={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(m,!0)};e.patch(d,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Uo(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
403
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
404
|
+
`}]}}const Oc=(function(e){if(e==null)return xP;if(typeof e=="function")return Lc(e);if(typeof e=="object")return Array.isArray(e)?gP(e):yP(e);if(typeof e=="string")return vP(e);throw new Error("Expected function, string, or object as test")});function gP(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=Oc(e[r]);return Lc(i);function i(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function yP(e){const n=e;return Lc(r);function r(i){const o=i;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function vP(e){return Lc(n);function n(r){return r&&r.type===e}}function Lc(e){return n;function n(r,i,o){return!!(bP(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function xP(){return!0}function bP(e){return e!==null&&typeof e=="object"&&"type"in e}const tE=[],wP=!0,fp=!1,SP="skip";function nE(e,n,r,i){let o;typeof n=="function"&&typeof r!="function"?(i=r,r=n):o=n;const s=Oc(o),c=i?-1:1;f(e,void 0,[])();function f(h,d,m){const y=h&&typeof h=="object"?h:{};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 ("+(h.type+(w?"<"+w+">":""))+")"})}return b;function b(){let w=tE,E,C,A;if((!n||s(h,d,m[m.length-1]||void 0))&&(w=EP(r(h,m)),w[0]===fp))return w;if("children"in h&&h.children){const T=h;if(T.children&&w[0]!==SP)for(C=(i?T.children.length:-1)+c,A=m.concat(T);C>-1&&C<T.children.length;){const N=T.children[C];if(E=f(N,C,A)(),E[0]===fp)return E;C=typeof E[1]=="number"?E[1]:C+c}}return w}}}function EP(e){return Array.isArray(e)?e:typeof e=="number"?[wP,e]:e==null?tE:[e]}function xm(e,n,r,i){let o,s,c;typeof n=="function"&&typeof r!="function"?(s=void 0,c=n,o=r):(s=n,c=r,o=i),nE(e,s,f,o);function f(h,d){const m=d[d.length-1],y=m?m.children.indexOf(h):void 0;return c(h,y,m)}}const dp={}.hasOwnProperty,kP={};function CP(e,n){const r=n||kP,i=new Map,o=new Map,s=new Map,c={...sP,...r.handlers},f={all:d,applyData:TP,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:r,patch:AP,wrap:_P};return xm(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const y=m.type==="definition"?i:o,b=String(m.identifier).toUpperCase();y.has(b)||y.set(b,m)}}),f;function h(m,y){const b=m.type,w=f.handlers[b];if(dp.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:C,...A}=m,T=Uo(A);return T.children=f.all(m),T}return Uo(m)}return(f.options.unknownHandler||RP)(f,m,y)}function d(m){const y=[];if("children"in m){const b=m.children;let w=-1;for(;++w<b.length;){const E=f.one(b[w],m);if(E){if(w&&b[w-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Jb(E.value)),!Array.isArray(E)&&E.type==="element")){const C=E.children[0];C&&C.type==="text"&&(C.value=Jb(C.value))}Array.isArray(E)?y.push(...E):y.push(E)}}}return y}}function AP(e,n){e.position&&(n.position=MS(e))}function TP(e,n){let r=n;if(e&&e.data){const i=e.data.hName,o=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,Uo(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function RP(e,n){const r=n.data||{},i="value"in n&&!(dp.call(r,"hProperties")||dp.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 _P(e,n){const r=[];let i=-1;for(n&&r.push({type:"text",value:`
|
|
405
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
406
|
+
`}),r.push(e[i]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
407
|
+
`}),r}function Jb(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function e0(e,n){const r=CP(e,n),i=r.one(e,void 0),o=mP(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
408
|
+
`},o),s}function NP(e,n){return e&&"run"in e?async function(r,i){const o=e0(r,{file:i,...n});await e.run(o,i)}:function(r,i){return e0(r,{file:i,...e||n})}}function t0(e){if(e)throw e}var Ch,n0;function MP(){if(n0)return Ch;n0=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},s=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var m=e.call(d,"constructor"),y=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!m&&!y)return!1;var b;for(b in d);return typeof b>"u"||e.call(d,b)},c=function(d,m){r&&m.name==="__proto__"?r(d,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):d[m.name]=m.newValue},f=function(d,m){if(m==="__proto__")if(e.call(d,m)){if(i)return i(d,m).value}else return;return d[m]};return Ch=function h(){var d,m,y,b,w,E,C=arguments[0],A=1,T=arguments.length,N=!1;for(typeof C=="boolean"&&(N=C,C=arguments[1]||{},A=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});A<T;++A)if(d=arguments[A],d!=null)for(m in d)y=f(C,m),b=f(d,m),C!==b&&(N&&b&&(s(b)||(w=o(b)))?(w?(w=!1,E=y&&o(y)?y:[]):E=y&&s(y)?y:{},c(C,{name:m,newValue:h(N,E,b)})):typeof b<"u"&&c(C,{name:m,newValue:b}));return C},Ch}var jP=MP();const Ah=cc(jP);function hp(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 DP(){const e=[],n={run:r,use:i};return n;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(h,...d){const m=e[++s];let y=-1;if(h){c(h);return}for(;++y<o.length;)(d[y]===null||d[y]===void 0)&&(d[y]=o[y]);o=d,m?OP(m,f)(...d):c(null,...d)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function OP(e,n){let r;return i;function i(...c){const f=e.length>c.length;let h;f&&c.push(o);try{h=e.apply(this,c)}catch(d){const m=d;if(f&&r)throw m;return o(m)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...f){r||(r=!0,n(c,...f))}function s(c){o(null,c)}}const lr={basename:LP,dirname:zP,extname:PP,join:IP,sep:"/"};function LP(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');is(e);let r=0,i=-1,o=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(r,i)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(i=o):(f=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function zP(e){if(is(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 PP(e){is(e);let n=e.length,r=-1,i=0,o=-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?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===i+1?"":e.slice(o,r)}function IP(...e){let n=-1,r;for(;++n<e.length;)is(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":BP(r)}function BP(e){is(e);const n=e.codePointAt(0)===47;let r=UP(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function UP(e,n){let r="",i=0,o=-1,s=0,c=-1,f,h;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||s===1))if(o!==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(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",i=0):(r=r.slice(0,h),i=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",i=0,o=c,s=0;continue}}n&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,s=0}else f===46&&s>-1?s++:s=-1}return r}function is(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const HP={cwd:FP};function FP(){return"/"}function pp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qP(e){if(typeof e=="string")e=new URL(e);else if(!pp(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 VP(e)}function VP(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 o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const Th=["history","path","basename","stem","extname","dirname"];class rE{constructor(n){let r;n?pp(n)?r={path:n}:typeof n=="string"||$P(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":HP.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Th.length;){const s=Th[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Th.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?lr.basename(this.path):void 0}set basename(n){_h(n,"basename"),Rh(n,"basename"),this.path=lr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?lr.dirname(this.path):void 0}set dirname(n){r0(this.basename,"dirname"),this.path=lr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?lr.extname(this.path):void 0}set extname(n){if(Rh(n,"extname"),r0(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=lr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){pp(n)&&(n=qP(n)),_h(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?lr.basename(this.path,this.extname):void 0}set stem(n){_h(n,"stem"),Rh(n,"stem"),this.path=lr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,i){const o=this.message(n,r,i);throw o.fatal=!0,o}info(n,r,i){const o=this.message(n,r,i);return o.fatal=void 0,o}message(n,r,i){const o=new Vt(n,r,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Rh(e,n){if(e&&e.includes(lr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+lr.sep+"`")}function _h(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function r0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function $P(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const GP=(function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),YP={}.hasOwnProperty;class bm extends GP{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=DP()}copy(){const n=new bm;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];n.use(...i)}return n.data(Ah(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(jh("data",this.frozen),this.namespace[n]=r,this):YP.call(this.namespace,n)&&this.namespace[n]||void 0:n?(jh("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 o=r.call(n,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Ou(n),i=this.parser||this.Parser;return Nh("parse",i),i(String(r),r)}process(n,r){const i=this;return this.freeze(),Nh("process",this.parser||this.Parser),Mh("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const f=Ou(n),h=i.parse(f);i.run(h,f,function(m,y,b){if(m||!y||!b)return d(m);const w=y,E=i.stringify(w,b);QP(E)?b.value=E:b.result=E,d(m,b)});function d(m,y){m||!y?c(m):s?s(y):r(void 0,y)}}}processSync(n){let r=!1,i;return this.freeze(),Nh("processSync",this.parser||this.Parser),Mh("processSync",this.compiler||this.Compiler),this.process(n,o),i0("processSync","process",r),i;function o(s,c){r=!0,t0(s),i=c}}run(n,r,i){a0(n),this.freeze();const o=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 h=Ou(r);o.run(n,h,d);function d(m,y,b){const w=y||n;m?f(m):c?c(w):i(void 0,w,b)}}}runSync(n,r){let i=!1,o;return this.run(n,r,s),i0("runSync","run",i),o;function s(c,f){t0(c),o=f,i=!0}}stringify(n,r){this.freeze();const i=Ou(r),o=this.compiler||this.Compiler;return Mh("stringify",o),a0(n),o(n,i)}use(n,...r){const i=this.attachers,o=this.namespace;if(jh("use",this.frozen),n!=null)if(typeof n=="function")h(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(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[m,...y]=d;h(m,y)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))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(d.plugins),d.settings&&(o.settings=Ah(!0,o.settings,d.settings))}function f(d){let m=-1;if(d!=null)if(Array.isArray(d))for(;++m<d.length;){const y=d[m];s(y)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,m){let y=-1,b=-1;for(;++y<i.length;)if(i[y][0]===d){b=y;break}if(b===-1)i.push([d,...m]);else if(m.length>0){let[w,...E]=m;const C=i[b][1];hp(C)&&hp(w)&&(w=Ah(!0,C,w)),i[b]=[d,w,...E]}}}}const KP=new bm().freeze();function Nh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mh(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function jh(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 a0(e){if(!hp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function i0(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ou(e){return XP(e)?e:new rE(e)}function XP(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function QP(e){return typeof e=="string"||ZP(e)}function ZP(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const WP="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",l0=[],o0={allowDangerousHtml:!0},JP=/^(https?|ircs?|mailto|xmpp)$/i,e5=[{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 t5(e){const n=n5(e),r=r5(e);return a5(n.runSync(n.parse(r),r),e)}function n5(e){const n=e.rehypePlugins||l0,r=e.remarkPlugins||l0,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...o0}:o0;return KP().use(zz).use(r).use(NP,i).use(n)}function r5(e){const n=e.children||"",r=new rE;return typeof n=="string"&&(r.value=n),r}function a5(e,n){const r=n.allowedElements,i=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,h=n.urlTransform||i5;for(const m of e5)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+WP+m.id,void 0);return xm(e,d),x3(e,{Fragment:g.Fragment,components:o,ignoreInvalidStyle:!0,jsx:g.jsx,jsxs:g.jsxs,passKeys:!0,passNode:!0});function d(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 Sh)if(Object.hasOwn(Sh,w)&&Object.hasOwn(m.properties,w)){const E=m.properties[w],C=Sh[w];(C===null||C.includes(m.tagName))&&(m.properties[w]=h(String(E||""),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 i5(e){const n=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||r!==-1&&n>r||i!==-1&&n>i||JP.test(e.slice(0,n))?e:""}function s0(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,o=r.indexOf(n);for(;o!==-1;)i++,o=r.indexOf(n,o+n.length);return i}function l5(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function o5(e,n,r){const o=Oc((r||{}).ignore||[]),s=s5(n);let c=-1;for(;++c<s.length;)nE(e,"text",f);function f(d,m){let y=-1,b;for(;++y<m.length;){const w=m[y],E=b?b.children:void 0;if(o(w,E?E.indexOf(w):void 0,b))return;b=w}if(b)return h(d,m)}function h(d,m){const y=m[m.length-1],b=s[c][0],w=s[c][1];let E=0;const A=y.children.indexOf(d);let T=!1,N=[];b.lastIndex=0;let _=b.exec(d.value);for(;_;){const j=_.index,L={index:_.index,input:_.input,stack:[...m,d]};let O=w(..._,L);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?b.lastIndex=j+1:(E!==j&&N.push({type:"text",value:d.value.slice(E,j)}),Array.isArray(O)?N.push(...O):O&&N.push(O),E=j+_[0].length,T=!0),!b.global)break;_=b.exec(d.value)}return T?(E<d.value.length&&N.push({type:"text",value:d.value.slice(E)}),y.children.splice(A,1,...N)):N=[d],A+N.length}}function s5(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 o=r[i];n.push([u5(o[0]),c5(o[1])])}return n}function u5(e){return typeof e=="string"?new RegExp(l5(e),"g"):e}function c5(e){return typeof e=="function"?e:function(){return e}}const Dh="phrasing",Oh=["autolink","link","image","label"];function f5(){return{transforms:[v5],enter:{literalAutolink:h5,literalAutolinkEmail:Lh,literalAutolinkHttp:Lh,literalAutolinkWww:Lh},exit:{literalAutolink:y5,literalAutolinkEmail:g5,literalAutolinkHttp:p5,literalAutolinkWww:m5}}}function d5(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Oh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Dh,notInConstruct:Oh},{character:":",before:"[ps]",after:"\\/",inConstruct:Dh,notInConstruct:Oh}]}}function h5(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Lh(e){this.config.enter.autolinkProtocol.call(this,e)}function p5(e){this.config.exit.autolinkProtocol.call(this,e)}function m5(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 g5(e){this.config.exit.autolinkEmail.call(this,e)}function y5(e){this.exit(e)}function v5(e){o5(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,x5],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),b5]],{ignore:["link","linkReference"]})}function x5(e,n,r,i,o){let s="";if(!aE(o)||(/^w/i.test(n)&&(r=n+r,n="",s="http://"),!w5(r)))return!1;const c=S5(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 b5(e,n,r,i){return!aE(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function w5(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 S5(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 o=s0(e,"(");let s=s0(e,")");for(;i!==-1&&o>s;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),s++;return[e,r]}function aE(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Xa(r)||Mc(r))&&(!n||r!==47)}iE.peek=M5;function E5(){this.buffer()}function k5(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function C5(){this.buffer()}function A5(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T5(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=$n(this.sliceSerialize(e)).toLowerCase(),r.label=n}function R5(e){this.exit(e)}function _5(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=$n(this.sliceSerialize(e)).toLowerCase(),r.label=n}function N5(e){this.exit(e)}function M5(){return"["}function iE(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return s+=o.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),c(),s+=o.move("]"),s}function j5(){return{enter:{gfmFootnoteCallString:E5,gfmFootnoteCall:k5,gfmFootnoteDefinitionLabelString:C5,gfmFootnoteDefinition:A5},exit:{gfmFootnoteCallString:T5,gfmFootnoteCall:R5,gfmFootnoteDefinitionLabelString:_5,gfmFootnoteDefinition:N5}}}function D5(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:iE},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,o,s,c){const f=s.createTracker(c);let h=f.move("[^");const d=s.enter("footnoteDefinition"),m=s.enter("label");return h+=f.move(s.safe(s.associationId(i),{before:h,after:"]"})),m(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((n?`
|
|
409
|
+
`:" ")+s.indentLines(s.containerFlow(i,f.current()),n?lE:O5))),d(),h}}function O5(e,n,r){return n===0?e:lE(e,n,r)}function lE(e,n,r){return(r?"":" ")+e}const L5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];oE.peek=U5;function z5(){return{canContainEols:["delete"],enter:{strikethrough:I5},exit:{strikethrough:B5}}}function P5(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:L5}],handlers:{delete:oE}}}function I5(e){this.enter({type:"delete",children:[]},e)}function B5(e){this.exit(e)}function oE(e,n,r,i){const o=r.createTracker(i),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function U5(){return"~"}function H5(e){return e.length}function F5(e,n){const r=n||{},i=(r.align||[]).concat(),o=r.stringLength||H5,s=[],c=[],f=[],h=[];let d=0,m=-1;for(;++m<e.length;){const C=[],A=[];let T=-1;for(e[m].length>d&&(d=e[m].length);++T<e[m].length;){const N=q5(e[m][T]);if(r.alignDelimiters!==!1){const _=o(N);A[T]=_,(h[T]===void 0||_>h[T])&&(h[T]=_)}C.push(N)}c[m]=C,f[m]=A}let y=-1;if(typeof i=="object"&&"length"in i)for(;++y<d;)s[y]=u0(i[y]);else{const C=u0(i);for(;++y<d;)s[y]=C}y=-1;const b=[],w=[];for(;++y<d;){const C=s[y];let A="",T="";C===99?(A=":",T=":"):C===108?A=":":C===114&&(T=":");let N=r.alignDelimiters===!1?1:Math.max(1,h[y]-A.length-T.length);const _=A+"-".repeat(N)+T;r.alignDelimiters!==!1&&(N=A.length+N+T.length,N>h[y]&&(h[y]=N),w[y]=N),b[y]=_}c.splice(1,0,b),f.splice(1,0,w),m=-1;const E=[];for(;++m<c.length;){const C=c[m],A=f[m];y=-1;const T=[];for(;++y<d;){const N=C[y]||"";let _="",j="";if(r.alignDelimiters!==!1){const L=h[y]-(A[y]||0),O=s[y];O===114?_=" ".repeat(L):O===99?L%2?(_=" ".repeat(L/2+.5),j=" ".repeat(L/2-.5)):(_=" ".repeat(L/2),j=_):j=" ".repeat(L)}r.delimiterStart!==!1&&!y&&T.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&N==="")&&(r.delimiterStart!==!1||y)&&T.push(" "),r.alignDelimiters!==!1&&T.push(_),T.push(N),r.alignDelimiters!==!1&&T.push(j),r.padding!==!1&&T.push(" "),(r.delimiterEnd!==!1||y!==d-1)&&T.push("|")}E.push(r.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return E.join(`
|
|
410
|
+
`)}function q5(e){return e==null?"":String(e)}function u0(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 V5(e,n,r,i){const o=r.enter("blockquote"),s=r.createTracker(i);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(e,s.current()),$5);return o(),c}function $5(e,n,r){return">"+(r?"":" ")+e}function G5(e,n){return c0(e,n.inConstruct,!0)&&!c0(e,n.notInConstruct,!1)}function c0(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 f0(e,n,r,i){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
411
|
+
`&&G5(r.stack,r.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
412
|
+
`}function Y5(e,n){const r=String(e);let i=r.indexOf(n),o=i,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++s>c&&(c=s):s=1,o=i+n.length,i=r.indexOf(n,o);return c}function K5(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 X5(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 Q5(e,n,r,i){const o=X5(r),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(K5(e,r)){const y=r.enter("codeIndented"),b=r.indentLines(s,Z5);return y(),b}const f=r.createTracker(i),h=o.repeat(Math.max(Y5(s,o)+1,3)),d=r.enter("codeFenced");let m=f.move(h);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:`
|
|
413
|
+
`,encode:["`"],...f.current()})),y()}return m+=f.move(`
|
|
414
|
+
`),s&&(m+=f.move(s+`
|
|
415
|
+
`)),m+=f.move(h),d(),m}function Z5(e,n,r){return(r?"":" ")+e}function wm(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 W5(e,n,r,i){const o=wm(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const h=r.createTracker(i);let d=h.move("[");return d+=h.move(r.safe(r.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(r.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=r.enter("destinationRaw"),d+=h.move(r.safe(e.url,{before:d,after:e.title?" ":`
|
|
416
|
+
`,...h.current()}))),f(),e.title&&(f=r.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(r.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),c(),d}function J5(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 Ho(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ic(e,n,r){const i=sl(e),o=sl(n);return i===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sE.peek=e6;function sE(e,n,r,i){const o=J5(r),s=r.enter("emphasis"),c=r.createTracker(i),f=c.move(o);let h=c.move(r.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),m=ic(i.before.charCodeAt(i.before.length-1),d,o);m.inside&&(h=Ho(d)+h.slice(1));const y=h.charCodeAt(h.length-1),b=ic(i.after.charCodeAt(0),y,o);b.inside&&(h=h.slice(0,-1)+Ho(y));const w=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+h+w}function e6(e,n,r){return r.options.emphasis||"*"}function t6(e,n){let r=!1;return xm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,fp}),!!((!e.depth||e.depth<3)&&dm(e)&&(n.options.setext||r))}function n6(e,n,r,i){const o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(t6(e,r)){const m=r.enter("headingSetext"),y=r.enter("phrasing"),b=r.containerPhrasing(e,{...s.current(),before:`
|
|
417
|
+
`,after:`
|
|
418
|
+
`});return y(),m(),b+`
|
|
419
|
+
`+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
420
|
+
`))+1))}const c="#".repeat(o),f=r.enter("headingAtx"),h=r.enter("phrasing");s.move(c+" ");let d=r.containerPhrasing(e,{before:"# ",after:`
|
|
421
|
+
`,...s.current()});return/^[\t ]/.test(d)&&(d=Ho(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,r.options.closeAtx&&(d+=" "+c),h(),f(),d}uE.peek=r6;function uE(e){return e.value||""}function r6(){return"<"}cE.peek=a6;function cE(e,n,r,i){const o=wm(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const h=r.createTracker(i);let d=h.move("![");return d+=h.move(r.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(r.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=r.enter("destinationRaw"),d+=h.move(r.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=r.enter(`title${s}`),d+=h.move(" "+o),d+=h.move(r.safe(e.title,{before:d,after:o,...h.current()})),d+=h.move(o),f()),d+=h.move(")"),c(),d}function a6(){return"!"}fE.peek=i6;function fE(e,n,r,i){const o=e.referenceType,s=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(i);let h=f.move("![");const d=r.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:h,after:"]",...f.current()});return c(),r.stack=m,s(),o==="full"||!d||d!==y?h+=f.move(y+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function i6(){return"!"}dE.peek=l6;function dE(e,n,r){let i=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(i);)o+="`";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 h;if(c.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return o+i+o}function l6(){return"`"}function hE(e,n){const r=dm(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))}pE.peek=o6;function pE(e,n,r,i){const o=wm(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(i);let f,h;if(hE(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"),h=r.enter("label");let d=c.move("[");return d+=c.move(r.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(r.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(h=r.enter("destinationRaw"),d+=c.move(r.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),h(),e.title&&(h=r.enter(`title${s}`),d+=c.move(" "+o),d+=c.move(r.safe(e.title,{before:d,after:o,...c.current()})),d+=c.move(o),h()),d+=c.move(")"),f(),d}function o6(e,n,r){return hE(e,r)?"<":"["}mE.peek=s6;function mE(e,n,r,i){const o=e.referenceType,s=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(i);let h=f.move("[");const d=r.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),c();const m=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:h,after:"]",...f.current()});return c(),r.stack=m,s(),o==="full"||!d||d!==y?h+=f.move(y+"]"):o==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function s6(){return"["}function Sm(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 u6(e){const n=Sm(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 c6(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 gE(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 f6(e,n,r,i){const o=r.enter("list"),s=r.bulletCurrent;let c=e.ordered?c6(r):Sm(r);const f=e.ordered?c==="."?")":".":u6(r);let h=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&&(h=!0),gE(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"){h=!0;break}}}}h&&(c=f),r.bulletCurrent=c;const d=r.containerFlow(e,i);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),d}function d6(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 h6(e,n,r,i){const o=d6(r);let s=r.bulletCurrent||Sm(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;(o==="tab"||o==="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 h=r.enter("listItem"),d=r.indentLines(r.containerFlow(e,f.current()),m);return h(),d;function m(y,b,w){return b?(w?"":" ".repeat(c))+y:(w?s:s+" ".repeat(c-s.length))+y}}function p6(e,n,r,i){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(e,i);return s(),o(),c}const m6=Oc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function g6(e,n,r,i){return(e.children.some(function(c){return m6(c)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function y6(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}yE.peek=v6;function yE(e,n,r,i){const o=y6(r),s=r.enter("strong"),c=r.createTracker(i),f=c.move(o+o);let h=c.move(r.containerPhrasing(e,{after:o,before:f,...c.current()}));const d=h.charCodeAt(0),m=ic(i.before.charCodeAt(i.before.length-1),d,o);m.inside&&(h=Ho(d)+h.slice(1));const y=h.charCodeAt(h.length-1),b=ic(i.after.charCodeAt(0),y,o);b.inside&&(h=h.slice(0,-1)+Ho(y));const w=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},f+h+w}function v6(e,n,r){return r.options.strong||"*"}function x6(e,n,r,i){return r.safe(e.value,i)}function b6(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 w6(e,n,r){const i=(gE(r)+(r.options.ruleSpaces?" ":"")).repeat(b6(r));return r.options.ruleSpaces?i.slice(0,-1):i}const vE={blockquote:V5,break:f0,code:Q5,definition:W5,emphasis:sE,hardBreak:f0,heading:n6,html:uE,image:cE,imageReference:fE,inlineCode:dE,link:pE,linkReference:mE,list:f6,listItem:h6,paragraph:p6,root:g6,strong:yE,text:x6,thematicBreak:w6};function S6(){return{enter:{table:E6,tableData:d0,tableHeader:d0,tableRow:C6},exit:{codeText:A6,table:k6,tableData:zh,tableHeader:zh,tableRow:zh}}}function E6(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 k6(e){this.exit(e),this.data.inTable=void 0}function C6(e){this.enter({type:"tableRow",children:[]},e)}function zh(e){this.exit(e)}function d0(e){this.enter({type:"tableCell",children:[]},e)}function A6(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,T6));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function T6(e,n){return n==="|"?n:e}function R6(e){const n=e||{},r=n.tableCellPadding,i=n.tablePipeAlign,o=n.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
422
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:h,tableRow:f}};function c(w,E,C,A){return d(m(w,C,A),w.align)}function f(w,E,C,A){const T=y(w,C,A),N=d([T]);return N.slice(0,N.indexOf(`
|
|
423
|
+
`))}function h(w,E,C,A){const T=C.enter("tableCell"),N=C.enter("phrasing"),_=C.containerPhrasing(w,{...A,before:s,after:s});return N(),T(),_}function d(w,E){return F5(w,{align:E,alignDelimiters:i,padding:r,stringLength:o})}function m(w,E,C){const A=w.children;let T=-1;const N=[],_=E.enter("table");for(;++T<A.length;)N[T]=y(A[T],E,C);return _(),N}function y(w,E,C){const A=w.children;let T=-1;const N=[],_=E.enter("tableRow");for(;++T<A.length;)N[T]=h(A[T],w,E,C);return _(),N}function b(w,E,C){let A=vE.inlineCode(w,E,C);return C.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function _6(){return{exit:{taskListCheckValueChecked:h0,taskListCheckValueUnchecked:h0,paragraph:M6}}}function N6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:j6}}}function h0(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function M6(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 o=n.children;let s=-1,c;for(;++s<o.length;){const f=o[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 j6(e,n,r,i){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(i);s&&f.move(c);let h=vE.listItem(e,n,r,{...i,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(m){return m+c}}function D6(){return[f5(),j5(),z5(),S6(),_6()]}function O6(e){return{extensions:[d5(),D5(e),P5(),R6(e),N6()]}}const L6={tokenize:H6,partial:!0},xE={tokenize:F6,partial:!0},bE={tokenize:q6,partial:!0},wE={tokenize:V6,partial:!0},z6={tokenize:$6,partial:!0},SE={name:"wwwAutolink",tokenize:B6,previous:kE},EE={name:"protocolAutolink",tokenize:U6,previous:CE},Ur={name:"emailAutolink",tokenize:I6,previous:AE},hr={};function P6(){return{text:hr}}let qa=48;for(;qa<123;)hr[qa]=Ur,qa++,qa===58?qa=65:qa===91&&(qa=97);hr[43]=Ur;hr[45]=Ur;hr[46]=Ur;hr[95]=Ur;hr[72]=[Ur,EE];hr[104]=[Ur,EE];hr[87]=[Ur,SE];hr[119]=[Ur,SE];function I6(e,n,r){const i=this;let o,s;return c;function c(y){return!mp(y)||!AE.call(i,i.previous)||Em(i.events)?r(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(y))}function f(y){return mp(y)?(e.consume(y),f):y===64?(e.consume(y),h):r(y)}function h(y){return y===46?e.check(z6,m,d)(y):y===45||y===95||Ft(y)?(s=!0,e.consume(y),h):m(y)}function d(y){return e.consume(y),o=!0,h}function m(y){return s&&o&&Wt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(y)):r(y)}}function B6(e,n,r){const i=this;return o;function o(c){return c!==87&&c!==119||!kE.call(i,i.previous)||Em(i.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(L6,e.attempt(xE,e.attempt(bE,s),r),r)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function U6(e,n,r){const i=this;let o="",s=!1;return c;function c(y){return(y===72||y===104)&&CE.call(i,i.previous)&&!Em(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(y),e.consume(y),f):r(y)}function f(y){if(Wt(y)&&o.length<5)return o+=String.fromCodePoint(y),e.consume(y),f;if(y===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(y),h}return r(y)}function h(y){return y===47?(e.consume(y),s?d:(s=!0,h)):r(y)}function d(y){return y===null||rc(y)||it(y)||Xa(y)||Mc(y)?r(y):e.attempt(xE,e.attempt(bE,m),r)(y)}function m(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(y)}}function H6(e,n,r){let i=0;return o;function o(c){return(c===87||c===119)&&i<3?(i++,e.consume(c),o):c===46&&i===3?(e.consume(c),s):r(c)}function s(c){return c===null?r(c):n(c)}}function F6(e,n,r){let i,o,s;return c;function c(d){return d===46||d===95?e.check(wE,h,f)(d):d===null||it(d)||Xa(d)||d!==45&&Mc(d)?h(d):(s=!0,e.consume(d),c)}function f(d){return d===95?i=!0:(o=i,i=void 0),e.consume(d),c}function h(d){return o||i||!s?r(d):n(d)}}function q6(e,n){let r=0,i=0;return o;function o(c){return c===40?(r++,e.consume(c),o):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(wE,n,s)(c):c===null||it(c)||Xa(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&i++,e.consume(c),o}}function V6(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),o):f===60||f===null||it(f)||Xa(f)?n(f):r(f)}function o(f){return f===null||f===40||f===91||it(f)||Xa(f)?n(f):i(f)}function s(f){return Wt(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),i):Wt(f)?(e.consume(f),c):r(f)}}function $6(e,n,r){return i;function i(s){return e.consume(s),o}function o(s){return Ft(s)?r(s):n(s)}}function kE(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||it(e)}function CE(e){return!Wt(e)}function AE(e){return!(e===47||mp(e))}function mp(e){return e===43||e===45||e===46||e===95||Ft(e)}function Em(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 G6={tokenize:e9,partial:!0};function Y6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Z6,continuation:{tokenize:W6},exit:J6}},text:{91:{name:"gfmFootnoteCall",tokenize:Q6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:K6,resolveTo:X6}}}}function K6(e,n,r){const i=this;let o=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let c;for(;o--;){const h=i.events[o][1];if(h.type==="labelImage"){c=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!c||!c._balanced)return r(h);const d=$n(i.sliceSerialize({start:c.end,end:i.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?r(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),n(h))}}function X6(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)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.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",o,n],["exit",o,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 Q6(e,n,r){const i=this,o=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"),h}function h(y){return y!==94?r(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(y){if(s>999||y===93&&!c||y===null||y===91||it(y))return r(y);if(y===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes($n(i.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(y)}return it(y)||(c=!0),s++,e.consume(y),y===92?m:d}function m(y){return y===91||y===92||y===93?(e.consume(y),s++,d):d(y)}}function Z6(e,n,r){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,c=0,f;return h;function h(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(E)}function m(E){if(c>999||E===93&&!f||E===null||E===91||it(E))return r(E);if(E===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return s=$n(i.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return it(E)||(f=!0),c++,e.consume(E),E===92?y:m}function y(E){return E===91||E===92||E===93?(e.consume(E),c++,m):m(E)}function b(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),o.includes(s)||o.push(s),Ve(e,w,"gfmFootnoteDefinitionWhitespace")):r(E)}function w(E){return n(E)}}function W6(e,n,r){return e.check(as,n,e.attempt(G6,n,r))}function J6(e){e.exit("gfmFootnoteDefinition")}function e9(e,n,r){const i=this;return Ve(e,o,"gfmFootnoteDefinitionIndent",5);function o(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 t9(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function o(c,f){let h=-1;for(;++h<c.length;)if(c[h][0]==="enter"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._close){let d=h;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[h][1].end.offset-c[h][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[h][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[h][1].end)},y={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[h][1].start)},b=[["enter",m,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",y,f]],w=f.parser.constructs.insideSpan.null;w&&Sn(b,b.length,0,jc(w,c.slice(d+1,h),f)),Sn(b,b.length,0,[["exit",y,f],["enter",c[h][1],f],["exit",c[h][1],f],["exit",m,f]]),Sn(c,d-1,h-d+3,b),h=d+b.length-2;break}}for(h=-1;++h<c.length;)c[h][1].type==="strikethroughSequenceTemporary"&&(c[h][1].type="data");return c}function s(c,f,h){const d=this.previous,m=this.events;let y=0;return b;function b(E){return d===126&&m[m.length-1][1].type!=="characterEscape"?h(E):(c.enter("strikethroughSequenceTemporary"),w(E))}function w(E){const C=sl(d);if(E===126)return y>1?h(E):(c.consume(E),y++,w);if(y<2&&!r)return h(E);const A=c.exit("strikethroughSequenceTemporary"),T=sl(E);return A._open=!T||T===2&&!!C,A._close=!C||C===2&&!!T,f(E)}}}class n9{constructor(){this.map=[]}add(n,r,i){r9(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 o=i.pop();for(;o;){for(const s of o)n.push(s);o=i.pop()}this.map.length=0}}function r9(e,n,r,i){let o=0;if(!(r===0&&i.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=r,e.map[o][2].push(...i);return}o+=1}e.map.push([n,r,i])}}function a9(e,n){let r=!1;const i=[];for(;n<e.length;){const o=e[n];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&i.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return i}function i9(){return{flow:{null:{name:"table",tokenize:l9,resolveAll:o9}}}}function l9(e,n,r){const i=this;let o=0,s=0,c;return f;function f(P){let re=i.events.length-1;for(;re>-1;){const q=i.events[re][1].type;if(q==="lineEnding"||q==="linePrefix")re--;else break}const Q=re>-1?i.events[re][1].type:null,W=Q==="tableHead"||Q==="tableRow"?O:h;return W===O&&i.parser.lazy[i.now().line]?r(P):W(P)}function h(P){return e.enter("tableHead"),e.enter("tableRow"),d(P)}function d(P){return P===124||(c=!0,s+=1),m(P)}function m(P){return P===null?r(P):Te(P)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),w):r(P):He(P)?Ve(e,m,"whitespace")(P):(s+=1,c&&(c=!1,o+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),c=!0,m):(e.enter("data"),y(P)))}function y(P){return P===null||P===124||it(P)?(e.exit("data"),m(P)):(e.consume(P),P===92?b:y)}function b(P){return P===92||P===124?(e.consume(P),y):y(P)}function w(P){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(P):(e.enter("tableDelimiterRow"),c=!1,He(P)?Ve(e,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):E(P))}function E(P){return P===45||P===58?A(P):P===124?(c=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),C):L(P)}function C(P){return He(P)?Ve(e,A,"whitespace")(P):A(P)}function A(P){return P===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),T):P===45?(s+=1,T(P)):P===null||Te(P)?j(P):L(P)}function T(P){return P===45?(e.enter("tableDelimiterFiller"),N(P)):L(P)}function N(P){return P===45?(e.consume(P),N):P===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(P))}function _(P){return He(P)?Ve(e,j,"whitespace")(P):j(P)}function j(P){return P===124?E(P):P===null||Te(P)?!c||o!==s?L(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(P)):L(P)}function L(P){return r(P)}function O(P){return e.enter("tableRow"),$(P)}function $(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),$):P===null||Te(P)?(e.exit("tableRow"),n(P)):He(P)?Ve(e,$,"whitespace")(P):(e.enter("data"),G(P))}function G(P){return P===null||P===124||it(P)?(e.exit("data"),$(P)):(e.consume(P),P===92?ee:G)}function ee(P){return P===92||P===124?(e.consume(P),G):G(P)}}function o9(e,n){let r=-1,i=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,h=0,d,m,y;const b=new n9;for(;++r<e.length;){const w=e[r],E=w[1];w[0]==="enter"?E.type==="tableHead"?(f=!1,h!==0&&(p0(b,n,h,d,m),m=void 0,h=0),d={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},b.add(r,0,[["enter",d,n]])):E.type==="tableRow"||E.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({},E.start),end:Object.assign({},E.end)},b.add(r,0,[["enter",m,n]])),o=E.type==="tableDelimiterRow"?2:m?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(i=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],y=Lu(b,n,s,o,void 0,y),s=[0,0,0,0]),c[2]=r)):E.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(c[0]=c[1],y=Lu(b,n,s,o,void 0,y)),s=c,c=[s[1],r,0,0])):E.type==="tableHead"?(f=!0,h=r):E.type==="tableRow"||E.type==="tableDelimiterRow"?(h=r,s[1]!==0?(c[0]=c[1],y=Lu(b,n,s,o,r,y)):c[1]!==0&&(y=Lu(b,n,c,o,r,y)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(c[3]=r)}for(h!==0&&p0(b,n,h,d,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=a9(n.events,r))}return e}function Lu(e,n,r,i,o,s){const c=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},Xi(n.events,r[0])),e.add(r[0],0,[["exit",s,n]]));const h=Xi(n.events,r[1]);if(s={type:c,start:Object.assign({},h),end:Object.assign({},h)},e.add(r[1],0,[["enter",s,n]]),r[2]!==0){const d=Xi(n.events,r[2]),m=Xi(n.events,r[3]),y={type:f,start:Object.assign({},d),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 E=r[2]+1,C=r[3]-r[2]-1;e.add(E,C,[])}}e.add(r[3]+1,0,[["exit",y,n]])}return o!==void 0&&(s.end=Object.assign({},Xi(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function p0(e,n,r,i,o){const s=[],c=Xi(n.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,n])),i.end=Object.assign({},c),s.push(["exit",i,n]),e.add(r+1,0,s)}function Xi(e,n){const r=e[n],i=r[0]==="enter"?"start":"end";return r[1][i]}const s9={name:"tasklistCheck",tokenize:c9};function u9(){return{text:{91:s9}}}function c9(e,n,r){const i=this;return o;function o(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return it(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),c):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),c):r(h)}function c(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(h)}function f(h){return Te(h)?n(h):He(h)?e.check({tokenize:f9},n,r)(h):r(h)}}function f9(e,n,r){return Ve(e,i,"whitespace");function i(o){return o===null?r(o):n(o)}}function d9(e){return PS([P6(),Y6(),t9(e),i9(),u9()])}const h9={};function p9(e){const n=this,r=e||h9,i=n.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(d9(r)),s.push(D6()),c.push(O6(r))}const Va=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],m0={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Va,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Va],h2:[["className","sr-only"]],img:[...Va,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Va,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Va],table:[...Va],ul:[...Va,["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"]},ya={}.hasOwnProperty;function m9(e,n){let r={type:"root",children:[]};const i={schema:n?{...m0,...n}:m0,stack:[]},o=TE(i,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}function TE(e,n){if(n&&typeof n=="object"){const r=n;switch(typeof r.type=="string"?r.type:""){case"comment":return g9(e,r);case"doctype":return y9(e,r);case"element":return v9(e,r);case"root":return x9(e,r);case"text":return b9(e,r)}}}function g9(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 ls(s,n),s}}function y9(e,n){if(e.schema.allowDoctypes){const r={type:"doctype"};return ls(r,n),r}}function v9(e,n){const r=typeof n.tagName=="string"?n.tagName:"";e.stack.push(r);const i=RE(e,n.children),o=w9(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&&ya.call(e.schema.ancestors,r))){const f=e.schema.ancestors[r];let h=-1;for(s=!1;++h<f.length;)e.stack.includes(f[h])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const c={type:"element",tagName:r,properties:o,children:i};return ls(c,n),c}function x9(e,n){const i={type:"root",children:RE(e,n.children)};return ls(i,n),i}function b9(e,n){const i={type:"text",value:typeof n.value=="string"?n.value:""};return ls(i,n),i}function RE(e,n){const r=[];if(Array.isArray(n)){const i=n;let o=-1;for(;++o<i.length;){const s=TE(e,i[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}function w9(e,n){const r=e.stack[e.stack.length-1],i=e.schema.attributes,o=e.schema.required,s=i&&ya.call(i,r)?i[r]:void 0,c=i&&ya.call(i,"*")?i["*"]:void 0,f=n&&typeof n=="object"?n:{},h={};let d;for(d in f)if(ya.call(f,d)){const m=f[d];let y=g0(e,y0(s,d),d,m);y==null&&(y=g0(e,y0(c,d),d,m)),y!=null&&(h[d]=y)}if(o&&ya.call(o,r)){const m=o[r];for(d in m)ya.call(m,d)&&!ya.call(h,d)&&(h[d]=m[d])}return h}function g0(e,n,r,i){return n?Array.isArray(i)?S9(e,n,r,i):_E(e,n,r,i):void 0}function S9(e,n,r,i){let o=-1;const s=[];for(;++o<i.length;){const c=_E(e,n,r,i[o]);(typeof c=="number"||typeof c=="string")&&s.push(c)}return s}function _E(e,n,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&E9(e,r,i)){if(typeof n=="object"&&n.length>1){let o=!1,s=0;for(;++s<n.length;){const c=n[s];if(c&&typeof c=="object"&&"flags"in c){if(c.test(String(i))){o=!0;break}}else if(c===i){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function E9(e,n,r){const i=e.schema.protocols&&ya.call(e.schema.protocols,n)?e.schema.protocols[n]:void 0;if(!i||i.length===0)return!0;const o=String(r),s=o.indexOf(":"),c=o.indexOf("?"),f=o.indexOf("#"),h=o.indexOf("/");if(s<0||h>-1&&s>h||c>-1&&s>c||f>-1&&s>f)return!0;let d=-1;for(;++d<i.length;){const m=i[d];if(s===m.length&&o.slice(0,m.length)===m)return!0}return!1}function ls(e,n){const r=MS(n);n.data&&(e.data=Uo(n.data)),r&&(e.position=r)}function y0(e,n){let r,i=-1;if(e)for(;++i<e.length;){const o=e[i],s=typeof o=="string"?o:o[0];if(s===n)return o;s==="data*"&&(r=o)}if(n.length>4&&n.slice(0,4).toLowerCase()==="data")return r}function k9(e){return function(n){return m9(n,e)}}const os=x.forwardRef(({children:e,className:n,...r},i)=>g.jsx("div",{ref:i,className:ce("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(t5,{remarkPlugins:[p9],rehypePlugins:[k9],components:{input:({type:o,checked:s,...c})=>o==="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:o,...c}),li:({children:o,...s})=>x.Children.toArray(o).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:o}):g.jsx("li",{...s,children:o}),a:({href:o,children:s,...c})=>g.jsx("a",{href:o,className:"text-primary hover:underline",target:"_blank",rel:"noopener noreferrer",...c,children:s}),img:({src:o,alt:s,...c})=>{let f=o;return o?.startsWith("../images/")&&(f=`/api/v1/context/images/${o.replace("../images/","")}`),g.jsx("img",{src:f,alt:s||"",className:"max-w-full h-auto rounded-lg",loading:"lazy",...c})}},children:e})}));os.displayName="MarkdownViewer";var NE="AlertDialog",[C9,rU]=Xn(NE,[iw]),Hr=iw(),ME=e=>{const{__scopeAlertDialog:n,...r}=e,i=Hr(n);return g.jsx($p,{...i,...r,modal:!0})};ME.displayName=NE;var A9="AlertDialogTrigger",jE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Hr(r);return g.jsx(ww,{...o,...i,ref:n})});jE.displayName=A9;var T9="AlertDialogPortal",DE=e=>{const{__scopeAlertDialog:n,...r}=e,i=Hr(n);return g.jsx(Gp,{...i,...r})};DE.displayName=T9;var R9="AlertDialogOverlay",OE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Hr(r);return g.jsx(Zo,{...o,...i,ref:n})});OE.displayName=R9;var tl="AlertDialogContent",[_9,N9]=C9(tl),M9=J0("AlertDialogContent"),LE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,children:i,...o}=e,s=Hr(r),c=x.useRef(null),f=Qe(n,c),h=x.useRef(null);return g.jsx(_D,{contentName:tl,titleName:zE,docsSlug:"alert-dialog",children:g.jsx(_9,{scope:r,cancelRef:h,children:g.jsxs(Wo,{role:"alertdialog",...s,...o,ref:f,onOpenAutoFocus:me(o.onOpenAutoFocus,d=>{d.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[g.jsx(M9,{children:i}),g.jsx(D9,{contentRef:c})]})})})});LE.displayName=tl;var zE="AlertDialogTitle",PE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Hr(r);return g.jsx(Jo,{...o,...i,ref:n})});PE.displayName=zE;var IE="AlertDialogDescription",BE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Hr(r);return g.jsx(es,{...o,...i,ref:n})});BE.displayName=IE;var j9="AlertDialogAction",UE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,o=Hr(r);return g.jsx(Sc,{...o,...i,ref:n})});UE.displayName=j9;var HE="AlertDialogCancel",FE=x.forwardRef((e,n)=>{const{__scopeAlertDialog:r,...i}=e,{cancelRef:o}=N9(HE,r),s=Hr(r),c=Qe(n,o);return g.jsx(Sc,{...s,...i,ref:c})});FE.displayName=HE;var D9=({contentRef:e})=>{const n=`\`${tl}\` requires a description for the component to be accessible for screen reader users.
|
|
424
|
+
|
|
425
|
+
You can add a description to the \`${tl}\` by passing a \`${IE}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
426
|
+
|
|
427
|
+
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 \`${tl}\`. 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.
|
|
428
|
+
|
|
429
|
+
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},O9=ME,L9=jE,z9=DE,qE=OE,VE=LE,$E=UE,GE=FE,YE=PE,KE=BE;const P9=O9,I9=L9,B9=z9,XE=x.forwardRef(({className:e,...n},r)=>g.jsx(qE,{className:ce("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}));XE.displayName=qE.displayName;const QE=x.forwardRef(({className:e,...n},r)=>g.jsxs(B9,{children:[g.jsx(XE,{}),g.jsx(VE,{ref:r,className:ce("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})]}));QE.displayName=VE.displayName;const ZE=({className:e,...n})=>g.jsx("div",{className:ce("flex flex-col space-y-2 text-center sm:text-left",e),...n});ZE.displayName="AlertDialogHeader";const WE=({className:e,...n})=>g.jsx("div",{className:ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...n});WE.displayName="AlertDialogFooter";const JE=x.forwardRef(({className:e,...n},r)=>g.jsx(YE,{ref:r,className:ce("text-lg font-semibold",e),...n}));JE.displayName=YE.displayName;const ek=x.forwardRef(({className:e,...n},r)=>g.jsx(KE,{ref:r,className:ce("text-sm text-muted-foreground",e),...n}));ek.displayName=KE.displayName;const tk=x.forwardRef(({className:e,...n},r)=>g.jsx($E,{ref:r,className:ce(Bp(),e),...n}));tk.displayName=$E.displayName;const nk=x.forwardRef(({className:e,...n},r)=>g.jsx(GE,{ref:r,className:ce(Bp({variant:"outline"}),"mt-2 sm:mt-0",e),...n}));nk.displayName=GE.displayName;function U9(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 zc="Checkbox",[H9,aU]=Xn(zc),[F9,km]=H9(zc);function q9(e){const{__scopeCheckbox:n,checked:r,children:i,defaultChecked:o,disabled:s,form:c,name:f,onCheckedChange:h,required:d,value:m="on",internal_do_not_use_render:y}=e,[b,w]=pl({prop:r,defaultProp:o??!1,onChange:h,caller:zc}),[E,C]=x.useState(null),[A,T]=x.useState(null),N=x.useRef(!1),_=E?!!c||!!E.closest("form"):!0,j={checked:b,disabled:s,setChecked:w,control:E,setControl:C,name:f,form:c,value:m,hasConsumerStoppedPropagationRef:N,required:d,defaultChecked:va(o)?!1:o,isFormControl:_,bubbleInput:A,setBubbleInput:T};return g.jsx(F9,{scope:n,...j,children:V9(y)?y(j):i})}var rk="CheckboxTrigger",ak=x.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...i},o)=>{const{control:s,value:c,disabled:f,checked:h,required:d,setControl:m,setChecked:y,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:E}=km(rk,e),C=Qe(o,m),A=x.useRef(h);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(Fe.button,{type:"button",role:"checkbox","aria-checked":va(h)?"mixed":h,"aria-required":d,"data-state":uk(h),"data-disabled":f?"":void 0,disabled:f,value:c,...i,ref:C,onKeyDown:me(n,T=>{T.key==="Enter"&&T.preventDefault()}),onClick:me(r,T=>{y(N=>va(N)?!0:!N),E&&w&&(b.current=T.isPropagationStopped(),b.current||T.stopPropagation())})})});ak.displayName=rk;var Cm=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:i,checked:o,defaultChecked:s,required:c,disabled:f,value:h,onCheckedChange:d,form:m,...y}=e;return g.jsx(q9,{__scopeCheckbox:r,checked:o,defaultChecked:s,disabled:f,required:c,onCheckedChange:d,name:i,form:m,value:h,internal_do_not_use_render:({isFormControl:b})=>g.jsxs(g.Fragment,{children:[g.jsx(ak,{...y,ref:n,__scopeCheckbox:r}),b&&g.jsx(sk,{__scopeCheckbox:r})]})})});Cm.displayName=zc;var ik="CheckboxIndicator",lk=x.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:i,...o}=e,s=km(ik,r);return g.jsx(qt,{present:i||va(s.checked)||s.checked===!0,children:g.jsx(Fe.span,{"data-state":uk(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})});lk.displayName=ik;var ok="CheckboxBubbleInput",sk=x.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:c,required:f,disabled:h,name:d,value:m,form:y,bubbleInput:b,setBubbleInput:w}=km(ok,e),E=Qe(r,w),C=U9(s),A=Pw(i);x.useEffect(()=>{const N=b;if(!N)return;const _=window.HTMLInputElement.prototype,L=Object.getOwnPropertyDescriptor(_,"checked").set,O=!o.current;if(C!==s&&L){const $=new Event("click",{bubbles:O});N.indeterminate=va(s),L.call(N,va(s)?!1:s),N.dispatchEvent($)}},[b,C,s,o]);const T=x.useRef(va(s)?!1:s);return g.jsx(Fe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??T.current,required:f,disabled:h,name:d,value:m,form:y,...n,tabIndex:-1,ref:E,style:{...n.style,...A,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});sk.displayName=ok;function V9(e){return typeof e=="function"}function va(e){return e==="indeterminate"}function uk(e){return va(e)?"indeterminate":e?"checked":"unchecked"}const Yu=x.forwardRef(({className:e,...n},r)=>g.jsx(Cm,{ref:r,className:ce("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(lk,{className:ce("flex items-center justify-center text-current"),children:g.jsx(Pp,{className:"h-4 w-4"})})}));Yu.displayName=Cm.displayName;var $9=x.createContext(void 0);function Am(e){const n=x.useContext($9);return e||n||"ltr"}function G9(e,[n,r]){return Math.min(r,Math.max(n,e))}function Y9(e,n){return x.useReducer((r,i)=>n[r][i]??r,e)}var Tm="ScrollArea",[ck,iU]=Xn(Tm),[K9,In]=ck(Tm),fk=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:s=600,...c}=e,[f,h]=x.useState(null),[d,m]=x.useState(null),[y,b]=x.useState(null),[w,E]=x.useState(null),[C,A]=x.useState(null),[T,N]=x.useState(0),[_,j]=x.useState(0),[L,O]=x.useState(!1),[$,G]=x.useState(!1),ee=Qe(n,re=>h(re)),P=Am(o);return g.jsx(K9,{scope:r,type:i,dir:P,scrollHideDelay:s,scrollArea:f,viewport:d,onViewportChange:m,content:y,onContentChange:b,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:O,scrollbarY:C,onScrollbarYChange:A,scrollbarYEnabled:$,onScrollbarYEnabledChange:G,onCornerWidthChange:N,onCornerHeightChange:j,children:g.jsx(Fe.div,{dir:P,...c,ref:ee,style:{position:"relative","--radix-scroll-area-corner-width":T+"px","--radix-scroll-area-corner-height":_+"px",...e.style}})})});fk.displayName=Tm;var dk="ScrollAreaViewport",hk=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,children:i,nonce:o,...s}=e,c=In(dk,r),f=x.useRef(null),h=Qe(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:o}),g.jsx(Fe.div,{"data-radix-scroll-area-viewport":"",...s,ref:h,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})})]})});hk.displayName=dk;var pr="ScrollAreaScrollbar",Rm=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=In(pr,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=o,f=e.orientation==="horizontal";return x.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),o.type==="hover"?g.jsx(X9,{...i,ref:n,forceMount:r}):o.type==="scroll"?g.jsx(Q9,{...i,ref:n,forceMount:r}):o.type==="auto"?g.jsx(pk,{...i,ref:n,forceMount:r}):o.type==="always"?g.jsx(_m,{...i,ref:n}):null});Rm.displayName=pr;var X9=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=In(pr,e.__scopeScrollArea),[s,c]=x.useState(!1);return x.useEffect(()=>{const f=o.scrollArea;let h=0;if(f){const d=()=>{window.clearTimeout(h),c(!0)},m=()=>{h=window.setTimeout(()=>c(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",d),f.addEventListener("pointerleave",m),()=>{window.clearTimeout(h),f.removeEventListener("pointerenter",d),f.removeEventListener("pointerleave",m)}}},[o.scrollArea,o.scrollHideDelay]),g.jsx(qt,{present:r||s,children:g.jsx(pk,{"data-state":s?"visible":"hidden",...i,ref:n})})}),Q9=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=In(pr,e.__scopeScrollArea),s=e.orientation==="horizontal",c=Ic(()=>h("SCROLL_END"),100),[f,h]=Y9("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 d=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(d)}},[f,o.scrollHideDelay,h]),x.useEffect(()=>{const d=o.viewport,m=s?"scrollLeft":"scrollTop";if(d){let y=d[m];const b=()=>{const w=d[m];y!==w&&(h("SCROLL"),c()),y=w};return d.addEventListener("scroll",b),()=>d.removeEventListener("scroll",b)}},[o.viewport,s,h,c]),g.jsx(qt,{present:r||f!=="hidden",children:g.jsx(_m,{"data-state":f==="hidden"?"hidden":"visible",...i,ref:n,onPointerEnter:me(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:me(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),pk=x.forwardRef((e,n)=>{const r=In(pr,e.__scopeScrollArea),{forceMount:i,...o}=e,[s,c]=x.useState(!1),f=e.orientation==="horizontal",h=Ic(()=>{if(r.viewport){const d=r.viewport.offsetWidth<r.viewport.scrollWidth,m=r.viewport.offsetHeight<r.viewport.scrollHeight;c(f?d:m)}},10);return ul(r.viewport,h),ul(r.content,h),g.jsx(qt,{present:i||s,children:g.jsx(_m,{"data-state":s?"visible":"hidden",...o,ref:n})})}),_m=x.forwardRef((e,n)=>{const{orientation:r="vertical",...i}=e,o=In(pr,e.__scopeScrollArea),s=x.useRef(null),c=x.useRef(0),[f,h]=x.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=xk(f.viewport,f.content),m={...i,sizes:f,onSizesChange:h,hasThumb:d>0&&d<1,onThumbChange:b=>s.current=b,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:b=>c.current=b};function y(b,w){return n8(b,c.current,f,w)}return r==="horizontal"?g.jsx(Z9,{...m,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){const b=o.viewport.scrollLeft,w=v0(b,f,o.dir);s.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=y(b,o.dir))}}):r==="vertical"?g.jsx(W9,{...m,ref:n,onThumbPositionChange:()=>{if(o.viewport&&s.current){const b=o.viewport.scrollTop,w=v0(b,f);s.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=y(b))}}):null}),Z9=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...o}=e,s=In(pr,e.__scopeScrollArea),[c,f]=x.useState(),h=x.useRef(null),d=Qe(n,h,s.onScrollbarXChange);return x.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),g.jsx(gk,{"data-orientation":"horizontal",...o,ref:d,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":Pc(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),wk(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&s.viewport&&c&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:oc(c.paddingLeft),paddingEnd:oc(c.paddingRight)}})}})}),W9=x.forwardRef((e,n)=>{const{sizes:r,onSizesChange:i,...o}=e,s=In(pr,e.__scopeScrollArea),[c,f]=x.useState(),h=x.useRef(null),d=Qe(n,h,s.onScrollbarYChange);return x.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),g.jsx(gk,{"data-orientation":"vertical",...o,ref:d,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":Pc(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),wk(b,y)&&m.preventDefault()}},onResize:()=>{h.current&&s.viewport&&c&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:oc(c.paddingTop),paddingEnd:oc(c.paddingBottom)}})}})}),[J9,mk]=ck(pr),gk=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:d,onWheelScroll:m,onResize:y,...b}=e,w=In(pr,r),[E,C]=x.useState(null),A=Qe(n,ee=>C(ee)),T=x.useRef(null),N=x.useRef(""),_=w.viewport,j=i.content-i.viewport,L=kt(m),O=kt(h),$=Ic(y,10);function G(ee){if(T.current){const P=ee.clientX-T.current.left,re=ee.clientY-T.current.top;d({x:P,y:re})}}return x.useEffect(()=>{const ee=P=>{const re=P.target;E?.contains(re)&&L(P,j)};return document.addEventListener("wheel",ee,{passive:!1}),()=>document.removeEventListener("wheel",ee,{passive:!1})},[_,E,j,L]),x.useEffect(O,[i,O]),ul(E,$),ul(w.content,$),g.jsx(J9,{scope:r,scrollbar:E,hasThumb:o,onThumbChange:kt(s),onThumbPointerUp:kt(c),onThumbPositionChange:O,onThumbPointerDown:kt(f),children:g.jsx(Fe.div,{...b,ref:A,style:{position:"absolute",...b.style},onPointerDown:me(e.onPointerDown,ee=>{ee.button===0&&(ee.target.setPointerCapture(ee.pointerId),T.current=E.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),G(ee))}),onPointerMove:me(e.onPointerMove,G),onPointerUp:me(e.onPointerUp,ee=>{const P=ee.target;P.hasPointerCapture(ee.pointerId)&&P.releasePointerCapture(ee.pointerId),document.body.style.webkitUserSelect=N.current,w.viewport&&(w.viewport.style.scrollBehavior=""),T.current=null})})})}),lc="ScrollAreaThumb",yk=x.forwardRef((e,n)=>{const{forceMount:r,...i}=e,o=mk(lc,e.__scopeScrollArea);return g.jsx(qt,{present:r||o.hasThumb,children:g.jsx(e8,{ref:n,...i})})}),e8=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,style:i,...o}=e,s=In(lc,r),c=mk(lc,r),{onThumbPositionChange:f}=c,h=Qe(n,y=>c.onThumbChange(y)),d=x.useRef(void 0),m=Ic(()=>{d.current&&(d.current(),d.current=void 0)},100);return x.useEffect(()=>{const y=s.viewport;if(y){const b=()=>{if(m(),!d.current){const w=r8(y,f);d.current=w,f()}};return f(),y.addEventListener("scroll",b),()=>y.removeEventListener("scroll",b)}},[s.viewport,m,f]),g.jsx(Fe.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:me(e.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),E=y.clientX-w.left,C=y.clientY-w.top;c.onThumbPointerDown({x:E,y:C})}),onPointerUp:me(e.onPointerUp,c.onThumbPointerUp)})});yk.displayName=lc;var Nm="ScrollAreaCorner",vk=x.forwardRef((e,n)=>{const r=In(Nm,e.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?g.jsx(t8,{...e,ref:n}):null});vk.displayName=Nm;var t8=x.forwardRef((e,n)=>{const{__scopeScrollArea:r,...i}=e,o=In(Nm,r),[s,c]=x.useState(0),[f,h]=x.useState(0),d=!!(s&&f);return ul(o.scrollbarX,()=>{const m=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(m),h(m)}),ul(o.scrollbarY,()=>{const m=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(m),c(m)}),d?g.jsx(Fe.div,{...i,ref:n,style:{width:s,height:f,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function oc(e){return e?parseInt(e,10):0}function xk(e,n){const r=e/n;return isNaN(r)?0:r}function Pc(e){const n=xk(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=(e.scrollbar.size-r)*n;return Math.max(i,18)}function n8(e,n,r,i="ltr"){const o=Pc(r),s=o/2,c=n||s,f=o-c,h=r.scrollbar.paddingStart+c,d=r.scrollbar.size-r.scrollbar.paddingEnd-f,m=r.content-r.viewport,y=i==="ltr"?[0,m]:[m*-1,0];return bk([h,d],y)(e)}function v0(e,n,r="ltr"){const i=Pc(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,s=n.scrollbar.size-o,c=n.content-n.viewport,f=s-i,h=r==="ltr"?[0,c]:[c*-1,0],d=G9(e,h);return bk([0,c],[0,f])(d)}function bk(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 wk(e,n){return e>0&&e<n}var r8=(e,n=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},i=0;return(function o(){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(o)})(),()=>window.cancelAnimationFrame(i)};function Ic(e,n){const r=kt(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 ul(e,n){const r=kt(n);cr(()=>{let i=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(i),o.unobserve(e)}}},[e,r])}var Sk=fk,a8=hk,i8=vk;const Fo=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(Sk,{ref:i,className:ce("relative overflow-hidden",e),...r,children:[g.jsx(a8,{className:"h-full w-full rounded-[inherit]",children:n}),g.jsx(Ek,{}),g.jsx(i8,{})]}));Fo.displayName=Sk.displayName;const Ek=x.forwardRef(({className:e,orientation:n="vertical",...r},i)=>g.jsx(Rm,{ref:i,orientation:n,className:ce("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(yk,{className:"relative flex-1 rounded-full bg-border"})}));Ek.displayName=Rm.displayName;async function kk(){const n=[...[{id:"role-md",name:"role.md",path:".nut/context/role.md",relativePath:"context/role.md",type:"context",content:"Loading..."},{id:"agents-md",name:"agents.md",path:".nut/context/agents.md",relativePath:"context/agents.md",type:"context",content:"Loading..."},{id:"team-md",name:"team.md",path:".nut/context/team.md",relativePath:"context/team.md",type:"context",content:"Loading..."},{id:"memory-md",name:"memory.md",path:".nut/context/memory.md",relativePath:"context/memory.md",type:"context",content:"Loading..."}]];try{const r=await fetch(`${Et}/api/v1/knowledge`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.documents)){const o=i.documents.filter(s=>typeof s?.filename=="string").map(s=>({id:`knowledge-${s.filename.replace(".md","")}`,name:s.filename,path:`.nut/knowledge/${s.filename}`,relativePath:`knowledge/${s.filename}`,type:"knowledge",content:"Loading..."}));n.push(...o)}}}catch(r){console.error("Error fetching knowledge documents:",r)}try{const r=await fetch(`${Et}/api/v1/tasks`);if(r.ok){const i=await r.json();if(i.success&&Array.isArray(i.data)){const o=i.data.filter(s=>typeof s?.id=="string"&&(typeof s.title=="string"||typeof s.intent=="string")).map(s=>({id:`task-${s.id}`,name:`${s.id}: ${s.title||s.intent}`,path:`.nut/tasks/${s.id}.md`,relativePath:`tasks/${s.id}.md`,type:"task",content:"Loading..."}));n.push(...o)}}}catch(r){console.error("Error fetching tasks:",r)}return n}async function gp(e){if(e.content&&e.content!=="Loading...")return e;try{let n=null;if(e.name==="role.md"?n="/api/v1/context/role":e.name==="agents.md"?n="/api/v1/context/agents":e.name==="team.md"?n="/api/v1/context/team":e.name==="memory.md"?n="/api/v1/context/memory":e.type==="knowledge"?n=`/api/v1/knowledge/${e.path?.split("/").pop()?.replace(".md","")||e.relativePath?.split("/").pop()?.replace(".md","")||e.name.replace(".md","")}`:e.type==="task"&&(n=`/api/v1/tasks/${e.id.replace("task-","")}`),n){const r=await fetch(`${Et}${n}`);if(r.ok)if(e.type==="task"){const o=(await r.json()).data;if(o&&(typeof o.title=="string"||typeof o.intent=="string"))return{...e,content:`# ${o.title||o.intent}
|
|
430
|
+
|
|
431
|
+
${o.content||"No content available"}`}}else{const o=(await r.json()).document?.content;return{...e,content:typeof o=="string"&&o.length>0?o:"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 x0({open:e,onOpenChange:n,onSelectionConfirm:r,initialSelection:i=[]}){const[o,s]=x.useState([]),[c,f]=x.useState(i),[h,d]=x.useState(null),[m,y]=x.useState(!1);x.useEffect(()=>{e&&(b(),f(i))},[e,i]);const b=async()=>{y(!0);try{const _=await kk();s(_)}catch(_){console.error("Error loading context files:",_)}finally{y(!1)}},w=async _=>{if(_.content&&_.content!=="Loading...")return _;try{return await gp(_)}catch(j){console.error("Error loading file content via API:",j)}try{let j="Content could not be loaded.";return _.name==="project.md"?j=`# Coconut - Project Context
|
|
432
|
+
|
|
433
|
+
## What is Coconut?
|
|
434
|
+
|
|
435
|
+
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.
|
|
436
|
+
|
|
437
|
+
## Core Philosophy
|
|
438
|
+
|
|
439
|
+
1. **Lives with your code** - Build and manage your project context, backlog, agents, and knowledge that lives directly alongside your code
|
|
440
|
+
2. **Everyone is first-class** - PMs, designers, engineers, and AI agents are all first-class
|
|
441
|
+
3. **Accessible everywhere** - IDE, Web UI, CLI, Mobile
|
|
442
|
+
4. **Inline AI** - AI everywhere with flexible API key management
|
|
443
|
+
5. **File-first architecture** - Start with zero infrastructure (on premise or hosted), scale when needed
|
|
444
|
+
6. **Intent over diffs** - Express what you want to achieve, not just what changed`:_.name==="architecture.md"&&(j=`# Coconut Architecture
|
|
445
|
+
|
|
446
|
+
## Technology Stack
|
|
447
|
+
|
|
448
|
+
### Frontend
|
|
449
|
+
- **Next.js 14+**: React framework with App Router
|
|
450
|
+
- **TypeScript**: End-to-end type safety
|
|
451
|
+
- **Tailwind CSS**: Utility-first styling
|
|
452
|
+
- **shadcn/ui**: Modern component library
|
|
453
|
+
|
|
454
|
+
### Data Layer
|
|
455
|
+
- **File Storage**: Markdown files with YAML frontmatter in .nut/
|
|
456
|
+
- **Local State**: React Context + localStorage
|
|
457
|
+
- **Real-time**: File system watching with chokidar
|
|
458
|
+
|
|
459
|
+
### AI Integration
|
|
460
|
+
- **Vercel AI SDK**: Unified AI integration
|
|
461
|
+
- **OpenAI/Anthropic SDKs**: Direct model access
|
|
462
|
+
|
|
463
|
+
## Repository Structure
|
|
464
|
+
|
|
465
|
+
\`\`\`
|
|
466
|
+
project-root/
|
|
467
|
+
├── .nut/ # Coconut data directory
|
|
468
|
+
│ ├── config.json # Repository configuration
|
|
469
|
+
│ ├── tasks/ # Tasks
|
|
470
|
+
│ ├── agents/ # AI agents
|
|
471
|
+
│ ├── context/ # Project context
|
|
472
|
+
│ └── knowledge/ # Team knowledge
|
|
473
|
+
└── your-actual-code/ # Your project files
|
|
474
|
+
\`\`\``),{..._,content:j}}catch(j){return console.error("Fallback content generation failed:",j),{..._,content:"Error loading content"}}},E=async _=>{const j=await w(_);d(j)},C=(_,j)=>{f(L=>j?[...L,_]:L.filter(O=>O!==_))},A=()=>{const _=o.filter(j=>c.includes(j.id));r({files:_,selectedIds:c}),n(!1)},T=_=>{switch(_){case"context":case"knowledge":return g.jsx(Qu,{className:"h-4 w-4"});case"agent":return g.jsx(Ro,{className:"h-4 w-4"});case"task":return g.jsx(Zx,{className:"h-4 w-4"});default:return g.jsx(Zx,{className:"h-4 w-4"})}},N=o.reduce((_,j)=>{let L="context";return j.type==="knowledge"?L="knowledge":j.type==="task"&&(L="tasks"),_[L]||(_[L]=[]),_[L].push(j),_},{});return g.jsx(Io,{open:e,onOpenChange:n,children:g.jsxs(il,{className:"max-w-7xl h-[80vh] flex flex-col",children:[g.jsx(ll,{children:g.jsx(ol,{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(Fo,{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(Zu,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading files..."})]})}):o.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(CN,{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(Uu,{className:"h-3 w-3"}),g.jsx("span",{children:"Context"})]}),N.context.map(_=>g.jsxs("div",{className:ce("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",h?.id===_.id&&"bg-muted"),onClick:()=>E(_),children:[g.jsx(Yu,{checked:c.includes(_.id),onCheckedChange:j=>C(_.id,j),onClick:j=>j.stopPropagation()}),T(_.type),g.jsx("span",{className:"text-sm truncate flex-1",children:_.name})]},_.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(Uu,{className:"h-3 w-3"}),g.jsx("span",{children:"Knowledge"})]}),N.knowledge.map(_=>g.jsxs("div",{className:ce("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",h?.id===_.id&&"bg-muted"),onClick:()=>E(_),children:[g.jsx(Yu,{checked:c.includes(_.id),onCheckedChange:j=>C(_.id,j),onClick:j=>j.stopPropagation()}),T(_.type),g.jsx("span",{className:"text-sm truncate flex-1",children:_.name})]},_.id))]}),N.tasks&&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(Uu,{className:"h-3 w-3"}),g.jsx("span",{children:"Tasks"})]}),N.tasks.map(_=>g.jsxs("div",{className:ce("flex items-center gap-2 p-2 rounded-md cursor-pointer hover:bg-muted",h?.id===_.id&&"bg-muted"),onClick:()=>E(_),children:[g.jsx(Yu,{checked:c.includes(_.id),onCheckedChange:j=>C(_.id,j),onClick:j=>j.stopPropagation()}),T(_.type),g.jsx("span",{className:"text-sm truncate flex-1",title:_.name,children:_.name.length>30?`${_.name.substring(0,30)}...`:_.name})]},_.id))]})]})})]}),g.jsx("div",{className:"flex-1 flex flex-col min-w-0",children:h?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(h.type),g.jsx("span",{className:"font-medium",children:h.name}),g.jsx("span",{className:"text-xs text-muted-foreground",children:h.relativePath})]})}),g.jsx(Fo,{className:"flex-1 border rounded-md p-4",children:h.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(Zu,{className:"h-4 w-4 animate-spin"}),g.jsx("span",{className:"text-sm",children:"Loading content..."})]})}):g.jsx(os,{className:"[&_.prose]:max-w-none",children:h.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(Qu,{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(pt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(pt,{onClick:A,children:"Use Selected Context"})]})]})]})})}function b0({open:e,onOpenChange:n,onSelect:r,initialSelectedId:i=null}){const[o,s]=x.useState([]),[c,f]=x.useState(!1),[h,d]=x.useState(i);x.useEffect(()=>{e&&(d(i),f(!0),fetch(`${Et}/api/v1/skills`).then(async b=>{if(!b.ok)throw new Error("Failed to load skills");const w=await b.json();s(w.documents||[])}).catch(()=>s([])).finally(()=>f(!1)))},[e,i]);const m=x.useMemo(()=>o.find(b=>b.id===h)||null,[o,h]),y=()=>{m&&(r(m),n(!1))};return g.jsx(Io,{open:e,onOpenChange:n,children:g.jsxs(il,{className:"max-w-4xl h-[80vh] flex flex-col",children:[g.jsx(ll,{children:g.jsx(ol,{children:"Select a Skill"})}),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(Uu,{className:"h-3 w-3"}),g.jsx("span",{children:"Skills"})]}),g.jsx(Fo,{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]"})]})}):o.length===0?g.jsx("div",{className:"py-8 text-sm text-muted-foreground text-center",children:"No skills found"}):g.jsx("div",{className:"space-y-1",children:o.map(b=>{const w=h===b.id;return g.jsxs("button",{onClick:()=>d(b.id),className:ce("w-full text-left p-2 rounded-md hover:bg-muted flex items-center gap-2",w&&"bg-muted"),children:[g.jsx("input",{type:"radio",checked:w,onChange:()=>d(b.id),className:"h-4 w-4"}),g.jsx(Ro,{className:"h-4 w-4"}),g.jsx("span",{className:"text-sm truncate flex-1",children:b.name})]},b.id)})})})]}),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(Ro,{className:"h-4 w-4"}),g.jsx("span",{className:"font-medium",children:m.name}),g.jsxs("span",{className:"text-xs text-muted-foreground",children:[".nut/skills/",m.id,"/SKILL.md"]})]})}),g.jsx(Fo,{className:"flex-1 border rounded-md p-4",children:g.jsx(os,{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(Ro,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),g.jsx("p",{className:"text-sm",children:"Select a skill 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.name}`:"No skill selected"}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(pt,{variant:"outline",onClick:()=>n(!1),children:"Cancel"}),g.jsx(pt,{onClick:y,disabled:!m,children:"Use Skill"})]})]})]})})}const Ck=x.forwardRef(({className:e,...n},r)=>g.jsx("textarea",{className:ce("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}));Ck.displayName="Textarea";const l8=/```knowledge_action\s*\n([\s\S]*?)```/gi;function yp(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 vp(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 o8(e){if(!e)return[];const n=Array.isArray(e)?e:[e],r=[];for(const i of n)yp(i)&&r.push(vp(i));return r}function s8(e){const n=e.trimEnd();if(!n.endsWith("}"))return null;let r=0,i=!1,o=!1;for(let s=n.length-1;s>=0;s--){const c=n[s];if(i){o?o=!1:c==="\\"?o=!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 h=JSON.parse(f),d=o8(h);if(d.length>0)return{cleaned:n.slice(0,s).trimEnd(),actions:d}}catch(h){console.error("Failed to parse trailing knowledge action payload:",h)}return null}}return null}function u8(e){const n=[];let i=e.replace(l8,(o,s)=>{try{const c=JSON.parse(s.trim());Array.isArray(c)?c.forEach(f=>{yp(f)&&n.push(vp(f))}):yp(c)&&n.push(vp(c))}catch(c){console.error("Failed to parse knowledge_action block:",c)}return""}).replace(/\n{3,}/g,`
|
|
475
|
+
|
|
476
|
+
`).trim();if(n.length===0){const o=s8(i);o&&(n.push(...o.actions),i=o.cleaned)}return{cleanedContent:i,actions:n}}function c8(e){return e.action==="create"?`Proposed new knowledge document "${e.title}"`:`Proposed updates to ${e.filename||e.title}`}function f8(e,n){const r=e.split(`
|
|
477
|
+
`),i=n.split(`
|
|
478
|
+
`),o=r.length,s=i.length,c=Array.from({length:o+1},()=>Array(s+1).fill(0));for(let m=o-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 h=0,d=0;for(;h<o&&d<s;)r[h]===i[d]?(f.push({type:"context",value:r[h]}),h++,d++):c[h+1][d]>=c[h][d+1]?(f.push({type:"removed",value:r[h]}),h++):(f.push({type:"added",value:i[d]}),d++);for(;h<o;)f.push({type:"removed",value:r[h]}),h++;for(;d<s;)f.push({type:"added",value:i[d]}),d++;return f}function d8({original:e,updated:n}){const r=x.useMemo(()=>f8(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,o)=>{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:ce("px-2 py-1 whitespace-pre-wrap break-words rounded-sm",c),children:[s," ",i.value]},o)})})})}function h8({action:e,onApply:n,fetchDocumentContent:r}){const[i,o]=x.useState(!1),[s,c]=x.useState(null),[f,h]=x.useState(null),[d,m]=x.useState(!1),[y,b]=x.useState(!1),[w,E]=x.useState("idle"),[C,A]=x.useState(null),T=e.action==="create"?"Preview document":"View diff",N=e.action==="create"?"Add to knowledge":`Update ${e.filename||"document"}`,_=async()=>{if(h(null),e.action==="update"){if(!e.filename){h("Filename is required to load the existing document."),o(!0);return}o(!0),m(!0);try{const O=await r(e.filename);if(!O){h("Could not load the existing knowledge document.");return}c({mode:"diff",original:O,updated:e.content})}catch(O){h(O instanceof Error?O.message:"Failed to load preview.")}finally{m(!1)}}else c({mode:"content",updated:e.content}),o(!0)},j=async()=>{A(null),E("idle"),b(!0);try{await n(e),E("success")}catch(O){E("error"),A(O instanceof Error?O.message:"Failed to update knowledge document.")}finally{b(!1)}},L=()=>{o(!1),c(null),h(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:c8(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(pt,{variant:"outline",size:"sm",onClick:_,disabled:d,children:d?"Loading…":T}),g.jsx(pt,{size:"sm",onClick:j,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"&&C&&g.jsx("p",{className:"text-xs text-destructive",children:C})]}),g.jsx(Io,{open:i,onOpenChange:O=>O?o(!0):L(),children:g.jsxs(il,{className:"max-w-3xl",children:[g.jsxs(ll,{children:[g.jsx(ol,{children:e.action==="create"?e.title:`Proposed changes for ${e.filename||e.title}`}),f&&g.jsx(Qi,{className:"text-destructive",children:f}),d&&!f&&g.jsx(Qi,{children:"Loading preview…"}),s?.mode==="diff"&&!d&&!f&&g.jsx(Qi,{children:"Review differences before updating the knowledge document."}),s?.mode==="content"&&!d&&!f&&g.jsx(Qi,{children:"Review the drafted knowledge content before saving."})]}),!d&&!f&&s&&(s.mode==="diff"&&s.original?g.jsx(d8,{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(os,{className:"text-sm [&_.prose]:text-sm",children:s.updated})})),g.jsx(bS,{children:g.jsx(pt,{variant:"outline",size:"sm",onClick:L,children:"Close"})})]})})]})}function p8({isOpen:e,onToggle:n,contextInfo:r,discussDocument:i,onDiscussDocumentHandled:o,pendingPrompt:s,onPendingPromptHandled:c,openInFullScreen:f,onFullScreenHandled:h,fullScreenNoEscape:d}){const[m,y]=x.useState(""),[b,w]=x.useState([]),[E,C]=x.useState(!1),[A,T]=x.useState(!1),N=F1(),_=Go(),[j,L]=x.useState(!1),[O,$]=x.useState([]),[G,ee]=x.useState(!1),[P,re]=x.useState(!1),[Q,W]=x.useState(!1),[q,le]=x.useState([]),[z,K]=x.useState([]),U=x.useRef([]),ae=x.useRef(new Map),k=x.useRef(!0),[X,oe]=x.useState([]),M=X.length,[fe,Ce]=x.useState(!1),[de,xe]=x.useState(null),[De,lt]=x.useState(!1),[Ze,dt]=x.useState(!1),[$t,un]=x.useState(null),[mr,gr]=x.useState(null),[Ja,Ct]=x.useState(!1),yr=x.useRef(0);x.useEffect(()=>{b.length>0&&b.length!==yr.current&&Ct(!0)},[b.length]),x.useEffect(()=>{const Z=he=>{if(he.key==="Escape"){if(A){Bt();return}if(Ze&&!d){dt(!1);return}}if((he.metaKey||he.ctrlKey)&&he.shiftKey&&he.key.toLowerCase()==="k"){he.preventDefault(),W(!0);return}if((he.metaKey||he.ctrlKey)&&he.shiftKey&&he.key.toLowerCase()==="n"){he.preventDefault(),(b.length>0||X.length>0||de)&&(Gt.current&&(Gt.current.abort(),Gt.current=null),C(!1),T(!1),w([]),oe([]),K([]),U.current=[],xe(null),lt(!1),y(""),gr(null),Ct(!1),yr.current=0);return}if((he.metaKey||he.ctrlKey)&&he.shiftKey&&he.key.toLowerCase()==="e"){he.preventDefault(),dt(pe=>!pe);return}};if(e)return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[e,Ze,A,b.length,X.length,de]);const vr=x.useRef(null),Zn=x.useRef(null),Gt=x.useRef(null),Wn=x.useRef(null);x.useEffect(()=>{e&&setTimeout(()=>Wn.current?.focus(),100)},[e]);const Sa=x.useCallback((Z=!1)=>{try{Zn.current?Zn.current.scrollTop=Zn.current.scrollHeight:vr.current&&vr.current.scrollIntoView({behavior:Z?"auto":"smooth"})}catch{console.error("Error scrolling to bottom")}},[]);x.useEffect(()=>{Sa(A)},[b,E,A,Sa]),x.useEffect(()=>()=>{k.current=!1},[]),x.useEffect(()=>{U.current=z},[z]),x.useEffect(()=>{let Z=!1;return(async()=>{try{const pe=await kk();if(Z)return;le(pe);const be=ae.current;pe.forEach(Me=>{const We=be.get(Me.id);We&&We.content&&We.content!=="Loading..."&&(!Me.content||Me.content==="Loading...")?be.set(Me.id,We):be.set(Me.id,Me)})}catch(pe){Z||console.error("Error loading context file list:",pe)}})(),()=>{Z=!0}},[]);const ei=x.useCallback(Z=>{const he=ae.current.get(Z);if(he)return he;const pe=q.find(be=>be.id===Z);return pe?(ae.current.set(Z,pe),pe):null},[q]),ti=x.useCallback(Z=>{if(Z.startsWith("knowledge-")){const pe=`${Z.replace("knowledge-","")}.md`;return{id:Z,name:pe,type:"knowledge",path:`.nut/knowledge/${pe}`,relativePath:`knowledge/${pe}`,content:"Loading..."}}if(Z.startsWith("task-")){const he=Z.replace("task-","");return{id:Z,name:`${he}.md`,type:"task",path:`.nut/tasks/${he}.md`,relativePath:`tasks/${he}.md`,content:"Loading..."}}return null},[]),J=x.useCallback(async Z=>{const he=Z.filter((be,Me,We)=>We.indexOf(be)===Me),pe=[];for(const be of he){let Me=ei(be);if(Me||(Me=ti(be),Me&&ae.current.set(be,Me)),!!Me){if(Me.content&&Me.content!=="Loading..."){ae.current.set(be,Me),pe.push(Me);continue}try{const We=await gp(Me);ae.current.set(be,We),pe.push(We)}catch(We){console.error(`Error ensuring content for context file ${Me.name}:`,We),pe.push(Me)}}}return pe},[ti,ei]),se=x.useCallback(async Z=>{if(Z.length===0){oe([]);return}try{const he=await J(Z);if(!k.current)return;const pe=new Map(he.map(Me=>[Me.id,Me])),be=Z.map(Me=>pe.get(Me)).filter(Me=>!!Me);oe(be)}catch(he){console.error("Error synchronizing selected context files:",he)}},[J]);x.useEffect(()=>{if(i&&e){const Z={id:i.id,name:i.name,type:i.type||"knowledge",path:i.path,relativePath:i.path,content:"Loading..."};if(!U.current.includes(i.id)){const he=[...U.current,i.id];K(he),U.current=he,ae.current.set(i.id,Z),oe(pe=>pe.some(be=>be.id===i.id)?pe:[...pe,Z]),se(he).catch(pe=>{console.error("Error syncing context after discuss document:",pe)})}o?.()}},[i,e,o,se]),x.useEffect(()=>{s&&e&&(y(s),c?.())},[s,e,c]),x.useEffect(()=>{f&&(dt(!0),h?.(),setTimeout(()=>Wn.current?.focus(),100))},[f,h]),x.useEffect(()=>{const Z=()=>{dt(he=>!he),setTimeout(()=>Wn.current?.focus(),100)};return window.addEventListener("toggle-assistant-fullscreen",Z),()=>{window.removeEventListener("toggle-assistant-fullscreen",Z)}},[]);const Ee=async()=>{if(b.length!==0)try{const Z=!!mr,he=Z?`${Et}/api/v1/chats/${mr}`:`${Et}/api/v1/chats`,be=await fetch(he,{method:Z?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:b,model:"anthropic/claude-sonnet-4.5",context:r})});if(!be.ok){const We=await be.json();throw new Error(We.error||"Failed to save chat")}const Me=await be.json();!Z&&Me.chatId&&gr(Me.chatId),Ct(!1),yr.current=b.length,console.log("Chat saved:",Me.chatId||mr)}catch(Z){console.error("Error saving chat:",Z)}},Ae=async()=>{ee(!0);try{const Z=await fetch(`${Et}/api/v1/chats`);if(!Z.ok)throw new Error("Failed to load chat history");const he=await Z.json();$(he.chats)}catch(Z){console.error("Error loading chat history:",Z)}finally{ee(!1)}},Ge=async Z=>{try{const he=await fetch(`${Et}/api/v1/chats/${Z}`);if(!he.ok)throw new Error("Failed to load chat");const pe=await he.json();w(pe.chat.messages),gr(Z),Ct(!1),yr.current=pe.chat.messages.length,L(!1)}catch(he){console.error("Error loading chat:",he)}},Yt=async Z=>{try{if(!(await fetch(`${Et}/api/v1/chats/${Z}`,{method:"DELETE"})).ok)throw new Error("Failed to delete chat");await Ae()}catch(he){console.error("Error deleting chat:",he)}},Bn=()=>{A&&Bt(),w([]),oe([]),K([]),U.current=[],xe(null),lt(!1),y(""),gr(null),Ct(!1),yr.current=0},It=async(Z,he)=>{try{await navigator.clipboard.writeText(Z),un(he),setTimeout(()=>un(null),2e3)}catch(pe){console.error("Failed to copy message:",pe)}},En=async Z=>{try{const he=Z.endsWith(".md")?Z.slice(0,-3):Z,pe=await fetch(`${Et}/api/v1/knowledge/${he}`);return pe.ok?(await pe.json()).document?.content||null:(console.error("Failed to fetch knowledge document:",pe.statusText),null)}catch(he){return console.error("Error fetching knowledge document:",he),null}},Kt=async Z=>{const he={tool:"knowledge_documents",arguments:{operation:Z.action==="create"?"create":"update",title:Z.title,content:Z.content,filename:Z.filename,metadata:Z.metadata,summary:Z.summary}};try{const pe=await fetch(`${Et}/api/v1/mcp/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(he)}),be=await pe.json();if(!pe.ok||!be.success)throw new Error(be.error||"Knowledge tool execution failed");const Me=be.data?.filename||Z.filename||Z.title,We=Z.action==="create"?"added to the knowledge base":"updated in the knowledge base";w(Dt=>[...Dt,{role:"system",content:`Knowledge document ${Me} ${We}.`}])}catch(pe){throw console.error("Error applying knowledge action:",pe),pe instanceof Error?pe:new Error("Failed to apply knowledge action")}},yt=async()=>{if(!m.trim()||A)return;const Z=m,pe=!b.some(Ye=>Ye.role==="user");let be;pe&&de&&!De&&(be=`--- System Persona ---
|
|
479
|
+
You MUST adopt and consistently act as the following skill persona for this entire conversation.
|
|
480
|
+
- Follow its goals, tone, constraints, and tools.
|
|
481
|
+
- Prioritize the skill's specified focus areas in your reasoning and responses.
|
|
482
|
+
- Do not disclaim or deviate unless the instructions explicitly permit.
|
|
483
|
+
|
|
484
|
+
Skill: ${de.name} (.nut/skills/${de.id}/SKILL.md)
|
|
485
|
+
|
|
486
|
+
${de.content}
|
|
487
|
+
--- End System Persona ---`,lt(!0));const We=(await Promise.all(X.map(async Ye=>{if(Ye.content&&Ye.content!=="Loading..."&&Ye.content!=="Content not available")return Ye;try{const kn=await gp(Ye);return ae.current.set(Ye.id,kn),kn}catch(kn){return console.error(`Failed to load content for ${Ye.name}:`,kn),Ye}}))).filter(Ye=>Ye.content&&Ye.content!=="Loading..."&&Ye.content!=="Content not available").map(Ye=>({name:Ye.name,path:Ye.path,type:Ye.type,content:Ye.content})),Dt={role:"user",content:m};w(Ye=>[...Ye,Dt]),y(""),C(!0),T(!0);const Fr=new AbortController;Gt.current=Fr;try{const kn=[...b,Dt].filter(Ke=>Ke.role==="user"||Ke.role==="assistant").map((Ke,Xt,Jn)=>Xt===Jn.length-1&&Ke.role==="user"?{role:Ke.role,content:Z}:Ke),Ot={message:Z,history:kn,context:r?.type,contextContent:r?.content,skillPersona:be,attachedContextFiles:We.length>0?We:void 0},ot=await fetch(`${Et}/api/v1/ai`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ot),signal:Fr.signal});if(!ot.ok){let Ke="Failed to get AI response";try{const Xt=await ot.json();Ke=Xt.error||Xt.message||Ke,Xt.status&&(Ke=`${Ke} (${Xt.status})`)}catch{Ke=`${ot.statusText||Ke} (${ot.status})`}throw new Error(Ke)}if(ot.body){const Ke=ot.body.getReader(),Xt=new TextDecoder;let Jn="",wl=!1;try{for(;;){const{done:xr,value:Ea}=await Ke.read();if(xr)break;Jn+=Xt.decode(Ea,{stream:!0}),wl?w(cn=>{const fn=[...cn];return fn[fn.length-1]={role:"assistant",content:Jn},fn}):(w(cn=>[...cn,{role:"assistant",content:Jn}]),C(!1),wl=!0)}Jn.trim()||console.warn("Stream completed with no content")}catch(xr){if(!(xr instanceof DOMException&&xr.name==="AbortError")){console.error("Streaming error:",xr);const Ea=`Sorry, I encountered a streaming error: ${xr instanceof Error?xr.message:"Unknown error"}`;w(wl?cn=>{const fn=[...cn];return fn[fn.length-1]?.role==="assistant"&&(fn[fn.length-1]={role:"assistant",content:Ea}),fn}:cn=>[...cn,{role:"assistant",content:Ea}])}}}}catch(Ye){if(Ye instanceof DOMException&&Ye.name==="AbortError")w(kn=>{const Ot=[...kn],ot=Ot[Ot.length-1];return ot?.role==="assistant"&&!ot.content&&Ot.pop(),Ot});else{console.error("Error calling AI:",Ye);const kn={role:"assistant",content:`Sorry, I encountered an error: ${Ye instanceof Error?Ye.message:"Unknown error"}`};w(Ot=>[...Ot,kn])}}finally{Gt.current=null,C(!1),T(!1)}},Bt=()=>{Gt.current&&(Gt.current.abort(),Gt.current=null),C(!1),T(!1)},en=Z=>{Z.files.forEach(be=>{const Me=ae.current.get(be.id);(!Me||Me.content!==be.content)&&ae.current.set(be.id,be)}),K(Z.selectedIds),U.current=Z.selectedIds;const he=new Map(Z.files.map(be=>[be.id,be])),pe=Z.selectedIds.map(be=>{const Me=he.get(be);if(Me)return Me;const We=ae.current.get(be);return We||q.find(Dt=>Dt.id===be)||null}).filter(be=>be!==null);oe(pe),se(Z.selectedIds).catch(be=>{console.error("Error syncing context after manual selection:",be)})},ni=g.jsx(g.Fragment,{children:g.jsxs("div",{className:"flex h-full w-full 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(Hu,{className:ce(Ze?"h-6 w-6":"h-5 w-5")}),g.jsx("div",{children:g.jsx("h2",{className:ce("font-semibold leading-tight",Ze?"text-xl":"text-lg"),children:"Coconut Assistant"})})]}),g.jsx("div",{className:ce("flex items-center gap-1",N&&"mr-8"),children:Ze&&!d?g.jsx(pt,{onClick:()=>dt(!1),size:"icon",variant:"ghost",className:"h-8 w-8",title:"Exit Expanded View (Esc)",children:g.jsx(Zi,{className:"h-4 w-4"})}):Ze?null:g.jsx(pt,{onClick:()=>{dt(!0),setTimeout(()=>Wn.current?.focus(),100)},size:"icon",variant:"outline",className:"h-8 w-8",title:"Expand View (⌘⇧L)",children:g.jsx(wN,{className:"h-4 w-4"})})})]}),g.jsx("div",{className:"px-4 py-2 border-b flex-shrink-0",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsxs(pt,{onClick:()=>{L(!j),j||Ae()},size:"sm",variant:"outline",className:"h-8 shrink-0 gap-1.5",title:j?"View Chat":"Chat History",children:[g.jsx(DN,{className:"h-4 w-4"}),j?"View Chat":"History"]}),g.jsx(pt,{onClick:()=>re(!0),size:"sm",variant:"outline",className:"h-8 w-8 shrink-0 p-0",title:"Available Tools",children:g.jsx(Kh,{className:"h-4 w-4"})})]}),g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsx(pt,{onClick:Ee,disabled:b.length===0||!Ja,size:"sm",variant:"outline",className:"h-8 w-8 shrink-0 p-0",title:"Save Chat",children:g.jsx(uM,{className:"h-4 w-4"})}),g.jsxs(P9,{children:[g.jsx(I9,{asChild:!0,children:g.jsxs(pt,{disabled:b.length===0&&X.length===0&&!de,size:"sm",variant:"outline",className:"h-8 shrink-0 gap-1.5 bg-red-500 text-white border-red-500 hover:bg-red-600 hover:text-white hover:border-red-600",title:"New Chat (⌘⇧N)",children:[g.jsx(wM,{className:"h-4 w-4"}),"New"]})}),g.jsxs(QE,{children:[g.jsxs(ZE,{children:[g.jsx(JE,{children:"Clear Chat"}),g.jsx(ek,{children:"This clears all messages, removes selected context files, and resets the selected agent. This action cannot be undone."})]}),g.jsxs(WE,{children:[g.jsx(nk,{children:"Cancel"}),g.jsx(tk,{onClick:Bn,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Clear Chat"})]})]})]})]})]})}),j&&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(pt,{onClick:()=>L(!1),size:"sm",variant:"ghost",children:g.jsx(Zi,{className:"h-4 w-4"})})]}),G?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]"})]})}):O.length===0?g.jsxs("div",{className:"text-center text-muted-foreground py-8",children:[g.jsx(lh,{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:O.map(Z=>g.jsx("div",{className:"border rounded-lg p-3 bg-muted/30 hover:bg-muted/60 cursor-pointer group transition-colors",onClick:()=>Ge(Z.id),children:g.jsxs("div",{className:"flex items-start justify-between gap-2",children:[g.jsxs("div",{className:"flex items-start gap-2.5 flex-1 min-w-0",children:[g.jsx("div",{className:"mt-0.5 shrink-0 w-7 h-7 rounded-md bg-primary/10 flex items-center justify-center",children:g.jsx(lh,{className:"h-3.5 w-3.5 text-primary/70"})}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("h4",{className:"text-sm font-medium truncate",children:Z.title}),g.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[g.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(sN,{className:"h-3 w-3"}),new Date(Z.updatedAt).toLocaleDateString()]}),g.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(lh,{className:"h-3 w-3"}),Z.messages.length]}),g.jsxs("span",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[g.jsx(Hu,{className:"h-3 w-3"}),Z.model.split("/")[1]||Z.model]})]})]})]}),g.jsx(pt,{onClick:he=>{he.stopPropagation(),Yt(Z.id)},size:"icon",variant:"ghost",className:"h-6 w-6 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:g.jsx(TM,{className:"h-3 w-3"})})]})},Z.id))})]}),!j&&g.jsxs("div",{ref:Zn,className:ce("flex-1 w-full overflow-y-auto space-y-4 min-h-0",Ze?"p-6 max-w-4xl mx-auto":"p-4"),children:[b.length===0&&g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground py-12 px-2",children:[g.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-6",children:g.jsx(Hu,{className:"h-5 w-5 text-primary"})}),g.jsx("h3",{className:"text-base font-semibold text-foreground mb-1",children:"Coconut Assistant"}),g.jsx("p",{className:"text-sm text-muted-foreground/70 mb-4 text-center max-w-[260px]",children:"Try one of these to get started, or type your own question below."}),g.jsx("div",{className:"flex flex-col gap-1.5 items-center",children:["What's been happening?","Search the knowledge base for ","Create an image showing ","Help me research ","Add the following task "].map(Z=>g.jsxs("a",{href:"#",onClick:he=>{he.preventDefault(),y(Z),setTimeout(()=>{const pe=Wn.current;pe&&(pe.focus(),pe.setSelectionRange(Z.length,Z.length))},0)},className:"text-sm text-primary hover:text-primary/80 transition-colors",children:["“",Z.trim(),"”"]},Z))}),g.jsxs("p",{className:"mt-4 text-xs text-muted-foreground/50 flex items-center gap-1.5",children:[g.jsx(xh,{className:"text-[10px] px-1.5 h-4",children:"⌘"}),g.jsx(xh,{className:"text-[10px] px-1.5 h-4",children:"⇧"}),g.jsx(xh,{className:"text-[10px] px-1.5 h-4",children:"L"}),"to go full screen"]})]}),b.map((Z,he)=>{const pe=Z.role==="assistant",be=pe?u8(Z.content):{cleanedContent:Z.content,actions:[]},Me=pe?be.cleanedContent.length>0?be.cleanedContent:be.actions.length>0?"Proposed knowledge update available below.":Z.content:Z.content;return g.jsx("div",{className:ce(Z.role==="user"?ce("rounded-2xl bg-primary text-primary-foreground p-3 min-w-[80px] max-w-[85%] ml-auto",Ze&&"max-w-[70%]"):Z.role==="system"?"rounded-lg bg-muted/50 text-muted-foreground text-center text-xs py-2 px-3 mx-auto max-w-[90%]":"px-1 mr-auto w-full"),children:pe?g.jsxs("div",{className:"space-y-2",children:[g.jsx(os,{className:"text-sm [&_.prose]:text-sm [&_.prose-p]:text-sm [&_.prose-li]:text-sm [&_.prose-code]:text-xs",children:Me}),(()=>{const We=F4(Z.content);return We.length===0?null:g.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:We.map(Dt=>g.jsx("div",{className:"block cursor-pointer",onClick:()=>_(`/resources/${Dt}`),children:g.jsx("img",{src:`${Et}/api/v1/resources/${Dt}/thumbnail`,alt:Dt,className:"w-32 h-24 object-cover rounded-lg border hover:opacity-80 transition-opacity",onError:Fr=>{Fr.target.style.display="none"}})},Dt))})})(),be.actions.map((We,Dt)=>g.jsx(h8,{action:We,onApply:Kt,fetchDocumentContent:En},`${he}-knowledge-${Dt}`)),!E&&Z.content.length>0&&g.jsx("div",{className:"flex justify-start gap-1",children:g.jsx(pt,{onClick:()=>It(Z.content,he),size:"icon",variant:"ghost",className:"h-5 w-5 opacity-60 hover:opacity-100",title:$t===he?"Copied!":"Copy message",children:$t===he?g.jsx(Pp,{className:"h-3 w-3"}):g.jsx(xN,{className:"h-3 w-3"})})})]}):g.jsx("div",{className:"text-sm",children:Z.content})},he)}),E&&g.jsx("div",{className:"px-1 mr-auto",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]"})]})}),g.jsx("div",{ref:vr})]}),!j&&g.jsx("div",{className:"border-t flex-shrink-0 w-full",children:g.jsxs("div",{className:ce(Ze?"px-6 pb-6 pt-3 max-w-4xl mx-auto":"px-4 pb-4 pt-2"),children:[g.jsx("div",{className:"mb-2",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex-1 min-w-0",children:M>0?g.jsx("div",{className:"flex flex-wrap gap-1",children:X.map(Z=>g.jsxs("div",{className:ce("flex items-center gap-1 text-xs px-2 py-1 rounded-md","bg-primary/10 text-primary"),children:[g.jsx("span",{children:Z.name}),g.jsx("button",{onClick:he=>{he.stopPropagation();const pe=U.current.filter(be=>be!==Z.id);K(pe),U.current=pe,oe(be=>be.filter(Me=>Me.id!==Z.id)),se(pe).catch(be=>{console.error("Error syncing context after removal:",be)})},className:ce("ml-1 rounded-full p-0.5 transition-colors","hover:bg-primary/20"),disabled:!1,title:"Remove from context",children:g.jsx(Zi,{className:"h-3 w-3"})})]},Z.id))}):g.jsxs("button",{onClick:()=>W(!0),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",disabled:!1,children:[g.jsx(oM,{className:"h-3.5 w-3.5"}),"Add context"]})}),g.jsx("div",{className:"flex items-center gap-1.5 shrink-0 ml-2",children:g.jsx(pt,{onClick:()=>W(!0),size:"icon",variant:"ghost",className:"h-6 w-6",title:"Select Context Files (⌘⇧K)",disabled:!1,children:g.jsx(QN,{className:"h-4 w-4"})})})]})}),g.jsxs("div",{className:"flex gap-2",children:[g.jsx(Ck,{ref:Wn,value:m,onChange:Z=>y(Z.target.value),onKeyDown:Z=>{Z.key==="Enter"&&!Z.shiftKey&&(Z.preventDefault(),yt())},placeholder:"How can I help?",className:ce("flex-1 resize-none",Ze?"min-h-[3rem] max-h-40":"min-h-[2.5rem] max-h-32"),"aria-label":"Assistant message input"}),A?g.jsx(pt,{onClick:Bt,size:"icon",variant:"outline",className:"shrink-0",title:"Stop response (Esc)","aria-label":"Stop response",children:g.jsx(EM,{className:"h-4 w-4"})}):g.jsx(pt,{onClick:yt,disabled:!m.trim(),size:"icon",className:"shrink-0",children:g.jsx(A1,{className:"h-4 w-4"})})]})]})})]})});return N?g.jsxs(g.Fragment,{children:[g.jsx(Sw,{open:e,onOpenChange:n,children:g.jsxs(Yp,{side:"right",className:"w-96 h-full p-0 bg-sidebar border-l border-sidebar-border",children:[g.jsx(Kp,{className:"sr-only",children:g.jsx(Xp,{children:"Assistant"})}),ni]})}),g.jsx(x0,{open:Q,onOpenChange:W,onSelectionConfirm:en,initialSelection:z}),g.jsx(b0,{open:fe,onOpenChange:Ce,initialSelectedId:de?.id||null,onSelect:Z=>{const he={id:Z.id,name:Z.name,content:Z.content||""};xe(he),w(pe=>[...pe,{role:"system",content:`${he.name} selected.`}])}})]}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ce("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 h-full",children:ni})}),g.jsx(Io,{open:Ze,onOpenChange:Z=>{!Z&&d||dt(Z)},children:g.jsxs(il,{className:ce("p-0 gap-0 [&>button]:hidden",d?"w-screen h-screen max-w-none max-h-none rounded-none":"max-w-[96vw] w-[96vw] max-h-[96vh] h-[96vh]"),onPointerDownOutside:d?Z=>Z.preventDefault():void 0,onEscapeKeyDown:d?Z=>Z.preventDefault():void 0,children:[g.jsx(ll,{className:"sr-only",children:g.jsx(ol,{children:"Assistant"})}),g.jsx("div",{className:"h-full w-full flex flex-col bg-background rounded-lg overflow-hidden",children:ni})]})}),g.jsx(x0,{open:Q,onOpenChange:W,onSelectionConfirm:en,initialSelection:z}),g.jsx(b0,{open:fe,onOpenChange:Ce,initialSelectedId:de?.id||null,onSelect:Z=>{const he={id:Z.id,name:Z.name,content:Z.content||""};xe(he),w(pe=>[...pe,{role:"system",content:`${he.name} selected.`}])}}),g.jsx(Io,{open:P,onOpenChange:re,children:g.jsxs(il,{className:"max-w-lg max-h-[80vh] flex flex-col",children:[g.jsxs(ll,{children:[g.jsxs(ol,{className:"flex items-center gap-2",children:[g.jsx(Kh,{className:"h-5 w-5"}),"Available Tools"]}),g.jsx(Qi,{children:"Tools the assistant can use to help you manage your project."})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto space-y-5 pr-1",children:[g.jsx(Ki,{label:"Tasks",children:g.jsx(ir,{name:"tasks",description:"Create, read, update, and delete tasks with filtering and search"})}),g.jsx(Ki,{label:"Knowledge",children:g.jsx(ir,{name:"knowledge_documents",description:"Create and manage knowledge base markdown documents"})}),g.jsxs(Ki,{label:"Context",children:[g.jsx(ir,{name:"role_context",description:"Read or update the role definition document"}),g.jsx(ir,{name:"agents_context",description:"Read or update the agents definition document"}),g.jsx(ir,{name:"team_context",description:"Read or update the team definition document"}),g.jsx(ir,{name:"memory_context",description:"Read or update the memory document"})]}),g.jsx(Ki,{label:"Resources",children:g.jsx(ir,{name:"resources",description:"Generate images, audio, and video via AI, or save files from URLs"})}),g.jsx(Ki,{label:"Activity",children:g.jsx(ir,{name:"activity_events",description:"Fetch recent activity events from this instance"})}),g.jsxs(Ki,{label:"Connectors",children:[g.jsx(ir,{name:"list_connectors",description:"List connected third-party services (e.g. Slack, GitHub, Stripe)"}),g.jsx(ir,{name:"connector_request",description:"Make authenticated API requests to connected services"})]})]})]})})]})}function Ki({label:e,children:n}){return g.jsxs("div",{children:[g.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-2",children:e}),g.jsx("div",{className:"space-y-2",children:n})]})}function ir({name:e,description:n}){return g.jsxs("div",{className:"border rounded-lg px-3 py-2.5 bg-muted/30",children:[g.jsxs("div",{className:"flex items-center justify-between gap-2",children:[g.jsx("span",{className:"font-medium text-sm font-mono",children:e}),g.jsx("span",{className:"text-[10px] font-medium text-emerald-500 border border-emerald-500/30 rounded px-1.5 py-0.5 shrink-0",children:"Available"})]}),g.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:n})]})}var Ph="rovingFocusGroup.onEntryFocus",m8={bubbles:!1,cancelable:!0},ss="RovingFocusGroup",[xp,Ak,g8]=jp(ss),[y8,Tk]=Xn(ss,[g8]),[v8,x8]=y8(ss),Rk=x.forwardRef((e,n)=>g.jsx(xp.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(xp.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(b8,{...e,ref:n})})}));Rk.displayName=ss;var b8=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...y}=e,b=x.useRef(null),w=Qe(n,b),E=Am(s),[C,A]=pl({prop:c,defaultProp:f??null,onChange:h,caller:ss}),[T,N]=x.useState(!1),_=kt(d),j=Ak(r),L=x.useRef(!1),[O,$]=x.useState(0);return x.useEffect(()=>{const G=b.current;if(G)return G.addEventListener(Ph,_),()=>G.removeEventListener(Ph,_)},[_]),g.jsx(v8,{scope:r,orientation:i,dir:E,loop:o,currentTabStopId:C,onItemFocus:x.useCallback(G=>A(G),[A]),onItemShiftTab:x.useCallback(()=>N(!0),[]),onFocusableItemAdd:x.useCallback(()=>$(G=>G+1),[]),onFocusableItemRemove:x.useCallback(()=>$(G=>G-1),[]),children:g.jsx(Fe.div,{tabIndex:T||O===0?-1:0,"data-orientation":i,...y,ref:w,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,()=>{L.current=!0}),onFocus:me(e.onFocus,G=>{const ee=!L.current;if(G.target===G.currentTarget&&ee&&!T){const P=new CustomEvent(Ph,m8);if(G.currentTarget.dispatchEvent(P),!P.defaultPrevented){const re=j().filter(z=>z.focusable),Q=re.find(z=>z.active),W=re.find(z=>z.id===C),le=[Q,W,...re].filter(Boolean).map(z=>z.ref.current);Mk(le,m)}}L.current=!1}),onBlur:me(e.onBlur,()=>N(!1))})})}),_k="RovingFocusGroupItem",Nk=x.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:s,children:c,...f}=e,h=Ga(),d=s||h,m=x8(_k,r),y=m.currentTabStopId===d,b=Ak(r),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:C}=m;return x.useEffect(()=>{if(i)return w(),()=>E()},[i,w,E]),g.jsx(xp.ItemSlot,{scope:r,id:d,focusable:i,active:o,children:g.jsx(Fe.span,{tabIndex:y?0:-1,"data-orientation":m.orientation,...f,ref:n,onMouseDown:me(e.onMouseDown,A=>{i?m.onItemFocus(d):A.preventDefault()}),onFocus:me(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:me(e.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){m.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const T=E8(A,m.orientation,m.dir);if(T!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let _=b().filter(j=>j.focusable).map(j=>j.ref.current);if(T==="last")_.reverse();else if(T==="prev"||T==="next"){T==="prev"&&_.reverse();const j=_.indexOf(A.currentTarget);_=m.loop?k8(_,j+1):_.slice(j+1)}setTimeout(()=>Mk(_))}}),children:typeof c=="function"?c({isCurrentTabStop:y,hasTabStop:C!=null}):c})})});Nk.displayName=_k;var w8={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S8(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function E8(e,n,r){const i=S8(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return w8[i]}function Mk(e,n=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:n}),document.activeElement!==r))return}function k8(e,n){return e.map((r,i)=>e[(n+i)%e.length])}var C8=Rk,A8=Nk,bp=["Enter"," "],T8=["ArrowDown","PageUp","Home"],jk=["ArrowUp","PageDown","End"],R8=[...T8,...jk],_8={ltr:[...bp,"ArrowRight"],rtl:[...bp,"ArrowLeft"]},N8={ltr:["ArrowLeft"],rtl:["ArrowRight"]},us="Menu",[qo,M8,j8]=jp(us),[Za,Dk]=Xn(us,[j8,Tc,Tk]),Bc=Tc(),Ok=Tk(),[D8,Wa]=Za(us),[O8,cs]=Za(us),Lk=e=>{const{__scopeMenu:n,open:r=!1,children:i,dir:o,onOpenChange:s,modal:c=!0}=e,f=Bc(n),[h,d]=x.useState(null),m=x.useRef(!1),y=kt(s),b=Am(o);return x.useEffect(()=>{const w=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),g.jsx(Yw,{...f,children:g.jsx(D8,{scope:n,open:r,onOpenChange:y,content:h,onContentChange:d,children:g.jsx(O8,{scope:n,onClose:x.useCallback(()=>y(!1),[y]),isUsingKeyboardRef:m,dir:b,modal:c,children:i})})})};Lk.displayName=us;var L8="MenuAnchor",Mm=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,o=Bc(r);return g.jsx(Kw,{...o,...i,ref:n})});Mm.displayName=L8;var jm="MenuPortal",[z8,zk]=Za(jm,{forceMount:void 0}),Pk=e=>{const{__scopeMenu:n,forceMount:r,children:i,container:o}=e,s=Wa(jm,n);return g.jsx(z8,{scope:n,forceMount:r,children:g.jsx(qt,{present:r||s.open,children:g.jsx(Xo,{asChild:!0,container:o,children:i})})})};Pk.displayName=jm;var Ln="MenuContent",[P8,Dm]=Za(Ln),Ik=x.forwardRef((e,n)=>{const r=zk(Ln,e.__scopeMenu),{forceMount:i=r.forceMount,...o}=e,s=Wa(Ln,e.__scopeMenu),c=cs(Ln,e.__scopeMenu);return g.jsx(qo.Provider,{scope:e.__scopeMenu,children:g.jsx(qt,{present:i||s.open,children:g.jsx(qo.Slot,{scope:e.__scopeMenu,children:c.modal?g.jsx(I8,{...o,ref:n}):g.jsx(B8,{...o,ref:n})})})})}),I8=x.forwardRef((e,n)=>{const r=Wa(Ln,e.__scopeMenu),i=x.useRef(null),o=Qe(n,i);return x.useEffect(()=>{const s=i.current;if(s)return rw(s)},[]),g.jsx(Om,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:me(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),B8=x.forwardRef((e,n)=>{const r=Wa(Ln,e.__scopeMenu);return g.jsx(Om,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),U8=nl("MenuContent.ScrollLock"),Om=x.forwardRef((e,n)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:h,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,disableOutsideScroll:E,...C}=e,A=Wa(Ln,r),T=cs(Ln,r),N=Bc(r),_=Ok(r),j=M8(r),[L,O]=x.useState(null),$=x.useRef(null),G=Qe(n,$,A.onContentChange),ee=x.useRef(0),P=x.useRef(""),re=x.useRef(0),Q=x.useRef(null),W=x.useRef("right"),q=x.useRef(0),le=E?Hp:x.Fragment,z=E?{as:U8,allowPinchZoom:!0}:void 0,K=ae=>{const k=P.current+ae,X=j().filter(xe=>!xe.disabled),oe=document.activeElement,M=X.find(xe=>xe.ref.current===oe)?.textValue,fe=X.map(xe=>xe.textValue),Ce=W8(fe,k,M),de=X.find(xe=>xe.textValue===Ce)?.ref.current;(function xe(De){P.current=De,window.clearTimeout(ee.current),De!==""&&(ee.current=window.setTimeout(()=>xe(""),1e3))})(k),de&&setTimeout(()=>de.focus())};x.useEffect(()=>()=>window.clearTimeout(ee.current),[]),K1();const U=x.useCallback(ae=>W.current===Q.current?.side&&eI(ae,Q.current?.area),[]);return g.jsx(P8,{scope:r,searchRef:P,onItemEnter:x.useCallback(ae=>{U(ae)&&ae.preventDefault()},[U]),onItemLeave:x.useCallback(ae=>{U(ae)||($.current?.focus(),O(null))},[U]),onTriggerLeave:x.useCallback(ae=>{U(ae)&&ae.preventDefault()},[U]),pointerGraceTimerRef:re,onPointerGraceIntentChange:x.useCallback(ae=>{Q.current=ae},[]),children:g.jsx(le,{...z,children:g.jsx(Up,{asChild:!0,trapped:o,onMountAutoFocus:me(s,ae=>{ae.preventDefault(),$.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:g.jsx(Ko,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:w,children:g.jsx(C8,{asChild:!0,..._,dir:T.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:O,onEntryFocus:me(h,ae=>{T.isUsingKeyboardRef.current||ae.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(Xw,{role:"menu","aria-orientation":"vertical","data-state":eC(A.open),"data-radix-menu-content":"",dir:T.dir,...N,...C,ref:G,style:{outline:"none",...C.style},onKeyDown:me(C.onKeyDown,ae=>{const X=ae.target.closest("[data-radix-menu-content]")===ae.currentTarget,oe=ae.ctrlKey||ae.altKey||ae.metaKey,M=ae.key.length===1;X&&(ae.key==="Tab"&&ae.preventDefault(),!oe&&M&&K(ae.key));const fe=$.current;if(ae.target!==fe||!R8.includes(ae.key))return;ae.preventDefault();const de=j().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);jk.includes(ae.key)&&de.reverse(),Q8(de)}),onBlur:me(e.onBlur,ae=>{ae.currentTarget.contains(ae.target)||(window.clearTimeout(ee.current),P.current="")}),onPointerMove:me(e.onPointerMove,Vo(ae=>{const k=ae.target,X=q.current!==ae.clientX;if(ae.currentTarget.contains(k)&&X){const oe=ae.clientX>q.current?"right":"left";W.current=oe,q.current=ae.clientX}}))})})})})})})});Ik.displayName=Ln;var H8="MenuGroup",Lm=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Fe.div,{role:"group",...i,ref:n})});Lm.displayName=H8;var F8="MenuLabel",Bk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Fe.div,{...i,ref:n})});Bk.displayName=F8;var sc="MenuItem",w0="menu.itemSelect",Uc=x.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:i,...o}=e,s=x.useRef(null),c=cs(sc,e.__scopeMenu),f=Dm(sc,e.__scopeMenu),h=Qe(n,s),d=x.useRef(!1),m=()=>{const y=s.current;if(!r&&y){const b=new CustomEvent(w0,{bubbles:!0,cancelable:!0});y.addEventListener(w0,w=>i?.(w),{once:!0}),Dp(y,b),b.defaultPrevented?d.current=!1:c.onClose()}};return g.jsx(Uk,{...o,ref:h,disabled:r,onClick:me(e.onClick,m),onPointerDown:y=>{e.onPointerDown?.(y),d.current=!0},onPointerUp:me(e.onPointerUp,y=>{d.current||y.currentTarget?.click()}),onKeyDown:me(e.onKeyDown,y=>{const b=f.searchRef.current!=="";r||b&&y.key===" "||bp.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Uc.displayName=sc;var Uk=x.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...s}=e,c=Dm(sc,r),f=Ok(r),h=x.useRef(null),d=Qe(n,h),[m,y]=x.useState(!1),[b,w]=x.useState("");return x.useEffect(()=>{const E=h.current;E&&w((E.textContent??"").trim())},[s.children]),g.jsx(qo.ItemSlot,{scope:r,disabled:i,textValue:o??b,children:g.jsx(A8,{asChild:!0,...f,focusable:!i,children:g.jsx(Fe.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:d,onPointerMove:me(e.onPointerMove,Vo(E=>{i?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:me(e.onPointerLeave,Vo(E=>c.onItemLeave(E))),onFocus:me(e.onFocus,()=>y(!0)),onBlur:me(e.onBlur,()=>y(!1))})})})}),q8="MenuCheckboxItem",Hk=x.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:i,...o}=e;return g.jsx(Gk,{scope:e.__scopeMenu,checked:r,children:g.jsx(Uc,{role:"menuitemcheckbox","aria-checked":uc(r)?"mixed":r,...o,ref:n,"data-state":Pm(r),onSelect:me(o.onSelect,()=>i?.(uc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Hk.displayName=q8;var Fk="MenuRadioGroup",[V8,$8]=Za(Fk,{value:void 0,onValueChange:()=>{}}),qk=x.forwardRef((e,n)=>{const{value:r,onValueChange:i,...o}=e,s=kt(i);return g.jsx(V8,{scope:e.__scopeMenu,value:r,onValueChange:s,children:g.jsx(Lm,{...o,ref:n})})});qk.displayName=Fk;var Vk="MenuRadioItem",$k=x.forwardRef((e,n)=>{const{value:r,...i}=e,o=$8(Vk,e.__scopeMenu),s=r===o.value;return g.jsx(Gk,{scope:e.__scopeMenu,checked:s,children:g.jsx(Uc,{role:"menuitemradio","aria-checked":s,...i,ref:n,"data-state":Pm(s),onSelect:me(i.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});$k.displayName=Vk;var zm="MenuItemIndicator",[Gk,G8]=Za(zm,{checked:!1}),Yk=x.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:i,...o}=e,s=G8(zm,r);return g.jsx(qt,{present:i||uc(s.checked)||s.checked===!0,children:g.jsx(Fe.span,{...o,ref:n,"data-state":Pm(s.checked)})})});Yk.displayName=zm;var Y8="MenuSeparator",Kk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e;return g.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:n})});Kk.displayName=Y8;var K8="MenuArrow",Xk=x.forwardRef((e,n)=>{const{__scopeMenu:r,...i}=e,o=Bc(r);return g.jsx(Qw,{...o,...i,ref:n})});Xk.displayName=K8;var X8="MenuSub",[lU,Qk]=Za(X8),Ao="MenuSubTrigger",Zk=x.forwardRef((e,n)=>{const r=Wa(Ao,e.__scopeMenu),i=cs(Ao,e.__scopeMenu),o=Qk(Ao,e.__scopeMenu),s=Dm(Ao,e.__scopeMenu),c=x.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:h}=s,d={__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),h(null)}},[f,h]),g.jsx(Mm,{asChild:!0,...d,children:g.jsx(Uk,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":eC(r.open),...e,ref:gc(n,o.onTriggerChange),onClick:y=>{e.onClick?.(y),!(e.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:me(e.onPointerMove,Vo(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:me(e.onPointerLeave,Vo(y=>{m();const b=r.content?.getBoundingClientRect();if(b){const w=r.content?.dataset.side,E=w==="right",C=E?-5:5,A=b[E?"left":"right"],T=b[E?"right":"left"];s.onPointerGraceIntentChange({area:[{x:y.clientX+C,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:me(e.onKeyDown,y=>{const b=s.searchRef.current!=="";e.disabled||b&&y.key===" "||_8[i.dir].includes(y.key)&&(r.onOpenChange(!0),r.content?.focus(),y.preventDefault())})})})});Zk.displayName=Ao;var Wk="MenuSubContent",Jk=x.forwardRef((e,n)=>{const r=zk(Ln,e.__scopeMenu),{forceMount:i=r.forceMount,...o}=e,s=Wa(Ln,e.__scopeMenu),c=cs(Ln,e.__scopeMenu),f=Qk(Wk,e.__scopeMenu),h=x.useRef(null),d=Qe(n,h);return g.jsx(qo.Provider,{scope:e.__scopeMenu,children:g.jsx(qt,{present:i||s.open,children:g.jsx(qo.Slot,{scope:e.__scopeMenu,children:g.jsx(Om,{id:f.contentId,"aria-labelledby":f.triggerId,...o,ref:d,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{c.isUsingKeyboardRef.current&&h.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:me(e.onFocusOutside,m=>{m.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:me(e.onEscapeKeyDown,m=>{c.onClose(),m.preventDefault()}),onKeyDown:me(e.onKeyDown,m=>{const y=m.currentTarget.contains(m.target),b=N8[c.dir].includes(m.key);y&&b&&(s.onOpenChange(!1),f.trigger?.focus(),m.preventDefault())})})})})})});Jk.displayName=Wk;function eC(e){return e?"open":"closed"}function uc(e){return e==="indeterminate"}function Pm(e){return uc(e)?"indeterminate":e?"checked":"unchecked"}function Q8(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function Z8(e,n){return e.map((r,i)=>e[(n+i)%e.length])}function W8(e,n,r){const o=n.length>1&&Array.from(n).every(d=>d===n[0])?n[0]:n,s=r?e.indexOf(r):-1;let c=Z8(e,Math.max(s,0));o.length===1&&(c=c.filter(d=>d!==r));const h=c.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return h!==r?h:void 0}function J8(e,n){const{x:r,y:i}=e;let o=!1;for(let s=0,c=n.length-1;s<n.length;c=s++){const f=n[s],h=n[c],d=f.x,m=f.y,y=h.x,b=h.y;m>i!=b>i&&r<(y-d)*(i-m)/(b-m)+d&&(o=!o)}return o}function eI(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return J8(r,n)}function Vo(e){return n=>n.pointerType==="mouse"?e(n):void 0}var tI=Lk,nI=Mm,rI=Pk,aI=Ik,iI=Lm,lI=Bk,oI=Uc,sI=Hk,uI=qk,cI=$k,fI=Yk,dI=Kk,hI=Xk,pI=Zk,mI=Jk,Hc="DropdownMenu",[gI,oU]=Xn(Hc,[Dk]),Jt=Dk(),[yI,tC]=gI(Hc),nC=e=>{const{__scopeDropdownMenu:n,children:r,dir:i,open:o,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,h=Jt(n),d=x.useRef(null),[m,y]=pl({prop:o,defaultProp:s??!1,onChange:c,caller:Hc});return g.jsx(yI,{scope:n,triggerId:Ga(),triggerRef:d,contentId:Ga(),open:m,onOpenChange:y,onOpenToggle:x.useCallback(()=>y(b=>!b),[y]),modal:f,children:g.jsx(tI,{...h,open:m,onOpenChange:y,dir:i,modal:f,children:r})})};nC.displayName=Hc;var rC="DropdownMenuTrigger",aC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=e,s=tC(rC,r),c=Jt(r);return g.jsx(nI,{asChild:!0,...c,children:g.jsx(Fe.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,...o,ref:gc(n,s.triggerRef),onPointerDown:me(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:me(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});aC.displayName=rC;var vI="DropdownMenuPortal",iC=e=>{const{__scopeDropdownMenu:n,...r}=e,i=Jt(n);return g.jsx(rI,{...i,...r})};iC.displayName=vI;var lC="DropdownMenuContent",oC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=tC(lC,r),s=Jt(r),c=x.useRef(!1);return g.jsx(aI,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...i,ref:n,onCloseAutoFocus:me(e.onCloseAutoFocus,f=>{c.current||o.triggerRef.current?.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:me(e.onInteractOutside,f=>{const h=f.detail.originalEvent,d=h.button===0&&h.ctrlKey===!0,m=h.button===2||d;(!o.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)"}})});oC.displayName=lC;var xI="DropdownMenuGroup",bI=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(iI,{...o,...i,ref:n})});bI.displayName=xI;var wI="DropdownMenuLabel",sC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(lI,{...o,...i,ref:n})});sC.displayName=wI;var SI="DropdownMenuItem",uC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(oI,{...o,...i,ref:n})});uC.displayName=SI;var EI="DropdownMenuCheckboxItem",cC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(sI,{...o,...i,ref:n})});cC.displayName=EI;var kI="DropdownMenuRadioGroup",CI=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(uI,{...o,...i,ref:n})});CI.displayName=kI;var AI="DropdownMenuRadioItem",fC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(cI,{...o,...i,ref:n})});fC.displayName=AI;var TI="DropdownMenuItemIndicator",dC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(fI,{...o,...i,ref:n})});dC.displayName=TI;var RI="DropdownMenuSeparator",hC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(dI,{...o,...i,ref:n})});hC.displayName=RI;var _I="DropdownMenuArrow",NI=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(hI,{...o,...i,ref:n})});NI.displayName=_I;var MI="DropdownMenuSubTrigger",pC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(pI,{...o,...i,ref:n})});pC.displayName=MI;var jI="DropdownMenuSubContent",mC=x.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...i}=e,o=Jt(r);return g.jsx(mI,{...o,...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)"}})});mC.displayName=jI;var DI=nC,OI=aC,LI=iC,gC=oC,yC=sC,vC=uC,xC=cC,bC=fC,wC=dC,SC=hC,EC=pC,kC=mC;const zI=DI,PI=OI,II=x.forwardRef(({className:e,inset:n,children:r,...i},o)=>g.jsxs(EC,{ref:o,className:ce("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(hN,{className:"ml-auto h-4 w-4"})]}));II.displayName=EC.displayName;const BI=x.forwardRef(({className:e,...n},r)=>g.jsx(kC,{ref:r,className:ce("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}));BI.displayName=kC.displayName;const CC=x.forwardRef(({className:e,sideOffset:n=4,...r},i)=>g.jsx(LI,{children:g.jsx(gC,{ref:i,sideOffset:n,className:ce("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})}));CC.displayName=gC.displayName;const AC=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(vC,{ref:i,className:ce("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}));AC.displayName=vC.displayName;const UI=x.forwardRef(({className:e,children:n,checked:r,...i},o)=>g.jsxs(xC,{ref:o,className:ce("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(wC,{children:g.jsx(Pp,{className:"h-4 w-4"})})}),n]}));UI.displayName=xC.displayName;const HI=x.forwardRef(({className:e,children:n,...r},i)=>g.jsxs(bC,{ref:i,className:ce("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(wC,{children:g.jsx(mN,{className:"h-2 w-2 fill-current"})})}),n]}));HI.displayName=bC.displayName;const TC=x.forwardRef(({className:e,inset:n,...r},i)=>g.jsx(yC,{ref:i,className:ce("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));TC.displayName=yC.displayName;const RC=x.forwardRef(({className:e,...n},r)=>g.jsx(SC,{ref:r,className:ce("-mx-1 my-1 h-px bg-muted",e),...n}));RC.displayName=SC.displayName;function FI(){const[e,n]=x.useState(!1),[r,i]=x.useState(null),[o,s]=x.useState(null),[c,f]=x.useState("Coconut"),[h,d]=x.useState(null),[m,y]=x.useState(null),[b,w]=x.useState(!1),E=on(),C=Go(),A=E.pathname,{user:T,logout:N,authEnabled:_}=Q0(),j=new URLSearchParams(E.search),L=j.get("hideNav")==="true",O=j.get("hideAssistant")==="true",$=j.get("expandAssistant")==="true",G=j.get("fullScreenNoEscape")==="true";x.useEffect(()=>{if(O){n(!1);return}if(G||$){n(!0),w(!0);return}const Q=localStorage.getItem("ai-sidebar-open");Q!==null&&n(JSON.parse(Q))},[]),x.useEffect(()=>{const Q=W=>{const q=W.detail;q&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),d(q))};return window.addEventListener("discuss-in-chat",Q),()=>{window.removeEventListener("discuss-in-chat",Q)}},[]),x.useEffect(()=>{const Q=W=>{const q=W.detail;q?.prompt&&(n(!0),localStorage.setItem("ai-sidebar-open","true"),y(q.prompt))};return window.addEventListener("customize-prompt-in-assistant",Q),()=>{window.removeEventListener("customize-prompt-in-assistant",Q)}},[]),x.useEffect(()=>{const Q=()=>{n(!0),localStorage.setItem("ai-sidebar-open","true"),w(!0)};return window.addEventListener("open-assistant-expanded",Q),()=>{window.removeEventListener("open-assistant-expanded",Q)}},[]),x.useEffect(()=>{const Q=W=>{if((W.metaKey||W.ctrlKey)&&W.shiftKey&&W.key==="l"){W.preventDefault(),e||(n(!0),localStorage.setItem("ai-sidebar-open","true")),window.dispatchEvent(new CustomEvent("toggle-assistant-fullscreen"));return}(W.metaKey||W.ctrlKey)&&W.key==="l"&&(W.preventDefault(),ee())};return window.addEventListener("keydown",Q),()=>{window.removeEventListener("keydown",Q)}},[e]),x.useEffect(()=>{const Q=async()=>{try{const q=await fetch(`${Et}/api/v1/config`);if(q.ok){const le=await q.json();if(le.success&&le.data?.coconut){const{firstName:z,lastName:K}=le.data.coconut;z&&K?f(`${z} ${K}`):(z||K)&&f(z||K)}}}catch(q){console.error("Error fetching config:",q)}};Q();const W=()=>{Q()};return window.addEventListener("config-updated",W),()=>{window.removeEventListener("config-updated",W)}},[]);const ee=()=>{const Q=!e;n(Q),localStorage.setItem("ai-sidebar-open",JSON.stringify(Q))},P=async()=>{try{await N(),qh({title:"Logged out",description:"You have been logged out successfully"}),C("/login")}catch(Q){console.error("Logout error:",Q),qh({title:"Error",description:"Failed to logout",variant:"destructive"})}};x.useEffect(()=>{(async()=>{try{const W=await fetch(`${Et}/api/v1/context/role`);if(W.ok){const q=await W.text();s(q)}else s(null)}catch(W){console.error("Error fetching role context:",W),s(null)}if(A.includes("/tasks")&&(A.includes("/edit")||A.match(/\/tasks\/[^/]+$/))){const q=A.match(/\/tasks\/([^/]+)(?:\/edit)?/)?.[1];if(q)try{const z=await(await fetch(`${Et}/api/v1/tasks/${q}`)).json();if(z.success){const K=z.data,U=`Task ID: ${q}
|
|
488
|
+
Title: ${K.title||K.intent}
|
|
489
|
+
Status: ${K.status}
|
|
490
|
+
Priority: ${K.metadata?.priority||"medium"}
|
|
491
|
+
Author: ${K.author?.name}
|
|
492
|
+
Description:
|
|
493
|
+
${K.content||""}`;i(U)}else i(null)}catch(le){console.error("Error fetching task:",le),i(null)}}else i(null)})()},[A]);const re=()=>{if(A.includes("/tasks")){const W=A.match(/\/tasks\/([^/]+)(?:\/edit)?/)?.[1];if(A.includes("/new"))return{type:"tasks-new",content:null};if(W){const le=["role.md",`${W}.md`].join(", "),z=[o&&`=== ROLE CONTEXT ===
|
|
494
|
+
${o}`,r&&`=== TASK CONTENT ===
|
|
495
|
+
${r}`].filter(Boolean),K=z.length>0?z.join(`
|
|
496
|
+
|
|
497
|
+
`):null;return{type:A.includes("/edit")?"tasks-edit":"tasks-view",content:K,displayId:W,contextFiles:le}}return{type:"tasks",content:o,contextFiles:"role.md"}}return A.includes("/context")?A.includes("/knowledge")?{type:"context-knowledge",content:null}:{type:"context",content:null}:A.includes("/settings")?A.includes("/skills")?{type:"settings-skills",content:null}:A.includes("/integrations")?{type:"settings-integrations",content:null}:A.includes("/prompts")?{type:"settings-prompts",content:null}:A.includes("/rules")?{type:"settings-rules",content:null}:A.includes("/user")?{type:"settings-user",content:null}:{type:"settings",content:null}:A.includes("/terminal")?{type:"terminal",content:null}:{type:"dashboard",content:null}};return g.jsx(uS,{defaultOpen:!L,children:g.jsxs("div",{className:"flex min-h-screen w-full overflow-hidden",children:[g.jsx(H4,{}),g.jsxs(dS,{className:ce("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(fS,{className:"-ml-1"}),g.jsxs("div",{className:"flex items-center justify-between flex-1",children:[g.jsx("h1",{className:"text-lg font-semibold",children:c||"Coconut"}),g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(pt,{onClick:ee,size:"icon",className:"h-8 w-8 rounded-full",children:g.jsx(Hu,{className:"h-4 w-4"})}),_&&T&&g.jsxs(zI,{children:[g.jsx(PI,{asChild:!0,children:g.jsx(pt,{size:"icon",variant:"outline",className:"h-8 w-8 rounded-full",children:g.jsx(DM,{className:"h-4 w-4"})})}),g.jsxs(CC,{align:"end",children:[g.jsx(TC,{children:g.jsxs("div",{className:"flex flex-col space-y-1",children:[g.jsx("p",{className:"text-sm font-medium leading-none",children:T.name}),g.jsx("p",{className:"text-xs leading-none text-muted-foreground",children:T.email})]})}),g.jsx(RC,{}),g.jsxs(AC,{onClick:P,children:[g.jsx(VN,{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(Tp,{})})]}),g.jsx(p8,{isOpen:e,onToggle:ee,contextInfo:re(),discussDocument:h,onDiscussDocumentHandled:()=>d(null),pendingPrompt:m,onPendingPromptHandled:()=>y(null),openInFullScreen:b,onFullScreenHandled:()=>w(!1),fullScreenNoEscape:G})]})})}const qI=[{title:"Coconut Profile",href:"/settings/user",icon:_M,description:"Manage the Coconut's profile information."},{title:"User Preferences",href:"/settings/preferences",icon:gM,description:"Configure individual workspace preferences"},{title:"Authentication",href:"/settings/authentication",icon:pM,description:"Configure authentication and user access"},{title:"API Keys",href:"/settings/api-keys",icon:HN,description:"Manage API keys for programmatic access"},{title:"Symlinks",href:"/settings/rules",icon:Qu,description:"Manage symlinks for easy access to project rules and configurations"},{title:"AI & LLM",href:"/settings/integrations",icon:iM,description:"Connect Coconut to LLM providers and automation hooks"},{title:"Git",href:"/settings/git",icon:C1,description:"Configure repository defaults like worktree paths"},{title:"MCP",href:"/settings/mcp",icon:JN,description:"Model Context Protocol configuration and settings"},{title:"Notifications",href:"/settings/notifications",icon:tN,description:"Configure Slack notifications for Coconut events"}];function VI(){const e=on();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:qI.map(n=>g.jsxs(Vn,{to:n.href,className:ce("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(Tp,{})})})]})}const $I=[{title:"Inbox",href:"/mail/inbox",icon:BN,description:"Incoming emails"},{title:"Read",href:"/mail/read",icon:GN,description:"Emails you've already read"},{title:"Sent",href:"/mail/sent",icon:A1,description:"Emails you've sent"}];function GI(){const e=on();return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Mail"}),g.jsx("p",{className:"text-muted-foreground",children:"View and manage mail"})]}),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:$I.map(n=>g.jsxs(Vn,{to:n.href,className:ce("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",children:g.jsx("div",{className:"space-y-6",children:g.jsx(Tp,{})})})]})]})}const YI=x.lazy(()=>Ne(()=>import("./DashboardPage-DMJSzzgD.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),KI=x.lazy(()=>Ne(()=>import("./LoginPage-CUJRxwXy.js"),__vite__mapDeps([22,4,1,23]))),XI=x.lazy(()=>Ne(()=>import("./CallbackPage-BFn0Np2S.js"),__vite__mapDeps([24,12,25]))),QI=x.lazy(()=>Ne(()=>import("./TasksPage-BoPrP_Rl.js"),__vite__mapDeps([26,1,2,5,6,7,3,14,13]))),ZI=x.lazy(()=>Ne(()=>import("./TaskDetailPage-CApk2iBh.js"),__vite__mapDeps([27,28,1,2,4,5,6,7,3,29,30,31,32,19,20,33]))),WI=x.lazy(()=>Ne(()=>import("./TaskEditPage-NgOVShfK.js"),__vite__mapDeps([34,4,5,6,7,1,35,36,37,38,39,2,29])).then(e=>({default:e.TaskEditPage}))),JI=x.lazy(()=>Ne(()=>import("./NewTaskPage-B6xdic5_.js"),__vite__mapDeps([40,1,4,35,6,36,5,7,37,38,39,2,29])).then(e=>({default:e.NewTaskPage}))),eB=x.lazy(()=>Ne(()=>import("./TerminalPage-CRhcscF2.js"),__vite__mapDeps([41,1,8,9,10,11,42,43,7,19,44,45]))),tB=x.lazy(()=>Ne(()=>import("./TerminalSessionPage-CSCQg2sn.js"),__vite__mapDeps([46,1,2,5,6,7,47,37,4,8,10,11,48,49,16,42,19,50,51,33,45]))),nB=x.lazy(()=>Ne(()=>import("./UtilitiesPage-CBNSvixW.js"),__vite__mapDeps([52,1,8,44,19]))),rB=x.lazy(()=>Ne(()=>import("./CodePage-kp4s3wCJ.js"),__vite__mapDeps([53,1,2,8,9,10,11,5,6,7,49,42,43,19,16,51]))),aB=x.lazy(()=>Ne(()=>import("./SkillsPage-CauK65X_.js"),__vite__mapDeps([54,1,28,55,2,56,14]))),iB=x.lazy(()=>Ne(()=>import("./SkillDetailPage-CWkqSfuT.js"),__vite__mapDeps([57,1,2,29]))),lB=x.lazy(()=>Ne(()=>import("./NewSkillPage-DRYWdrlV.js"),__vite__mapDeps([58,1,4,2,28,29,30]))),oB=x.lazy(()=>Ne(()=>import("./SkillEditPage-DwyebzFV.js"),__vite__mapDeps([59,1,4,2,28,29,30]))),sB=x.lazy(()=>Ne(()=>import("./ResourcesPage-DspYILfG.js"),__vite__mapDeps([60,1,4,2,28,5,6,7,56,61,62,13,63,14]))),uB=x.lazy(()=>Ne(()=>import("./ResourceDetailPage-CMPDRdVM.js"),__vite__mapDeps([64,2,28,29,61,62,63]))),cB=x.lazy(()=>Ne(()=>import("./KnowledgePage-B2zI3xwW.js"),__vite__mapDeps([65,1,2,28,55,56,14,31,66,48]))),fB=x.lazy(()=>Ne(()=>import("./KnowledgeDetailPage-DFVud_VC.js"),__vite__mapDeps([67,1,2,28,29,63,18]))),dB=x.lazy(()=>Ne(()=>import("./KnowledgeEditPage-XG6HKK7E.js"),__vite__mapDeps([68,1,4,35,6,36,39,2,69,18,29]))),hB=x.lazy(()=>Ne(()=>import("./NewKnowledgePage-deMsezK8.js"),__vite__mapDeps([70,1,4,35,6,36,39,2,69,18,29]))),pB=x.lazy(()=>Ne(()=>import("./RolePage-DafGURGp.js"),__vite__mapDeps([71,1,28]))),mB=x.lazy(()=>Ne(()=>import("./RoleEditPage-DXtzicVZ.js"),__vite__mapDeps([72,1,4,5,6,7,35,36,29,21]))),gB=x.lazy(()=>Ne(()=>import("./AgentsContextPage-tJ-LhFYb.js"),__vite__mapDeps([73,1,28]))),yB=x.lazy(()=>Ne(()=>import("./AgentsContextEditPage-DU3qIXk9.js"),__vite__mapDeps([74,1,35,6,36,29,21]))),vB=x.lazy(()=>Ne(()=>import("./TeamPage-DH-dJhFG.js"),__vite__mapDeps([75,1,28]))),xB=x.lazy(()=>Ne(()=>import("./TeamEditPage-ChY6mYm8.js"),__vite__mapDeps([76,1,35,6,36,29,21]))),bB=x.lazy(()=>Ne(()=>import("./MemoryPage-oBnyuvSf.js"),__vite__mapDeps([77,1,28]))),wB=x.lazy(()=>Ne(()=>import("./MemoryEditPage-DXSQoCT4.js"),__vite__mapDeps([78,1,35,6,36,29,21]))),SB=x.lazy(()=>Ne(()=>import("./IdentityPage-BDTPXEo7.js"),__vite__mapDeps([79,1,4,2,5,6,7,80,23,50,30]))),S0=x.lazy(()=>Ne(()=>import("./UserSettingsPage-DKkOLNPV.js"),__vite__mapDeps([81,1,4,30]))),EB=x.lazy(()=>Ne(()=>import("./AuthSettingsPage-Bwr7uP3z.js"),__vite__mapDeps([82,1,4,5,6,7,83,2,84]))),kB=x.lazy(()=>Ne(()=>import("./ApiKeysSettingsPage-Bg84BQHV.js"),__vite__mapDeps([85,1,4,2,80,32,84]))),CB=x.lazy(()=>Ne(()=>import("./SkillsSettingsPage-DXMRv3jR.js"),__vite__mapDeps([86,1,18]))),AB=x.lazy(()=>Ne(()=>import("./IntegrationsSettingsPage-o7NXZGt9.js"),__vite__mapDeps([87,1,4,5,6,7,15]))),TB=x.lazy(()=>Ne(()=>import("./GitSettingsPage-CLswbZsT.js"),__vite__mapDeps([88,1,4,47,42,18,12,25]))),RB=x.lazy(()=>Ne(()=>import("./McpSettingsPage-BZcCGkGM.js"),__vite__mapDeps([89,1,4,2,83,80,55,56,14,84,21]))),_B=x.lazy(()=>Ne(()=>import("./PromptsSettingsPage-BWaELCjG.js"),__vite__mapDeps([90,1,4,5,6,7,2,50,62]))),NB=x.lazy(()=>Ne(()=>import("./RulesSettingsPage-E8V9cexV.js"),__vite__mapDeps([91,1,4,2]))),MB=x.lazy(()=>Ne(()=>import("./NotificationsSettingsPage-CLgtsCVM.js"),__vite__mapDeps([92,1,4,83,5,6,7,33,12,25,42]))),jB=x.lazy(()=>Ne(()=>import("./GitPage-uqene8zj.js"),__vite__mapDeps([93,1,4,23,12,25,48,66,42,84,7,17]))),DB=x.lazy(()=>Ne(()=>import("./SchedulePage-B2YvNDHr.js"),__vite__mapDeps([94,1,2,5,6,7,4,83,23,42,19,95,20,51]))),OB=x.lazy(()=>Ne(()=>import("./JobDetailPage-DuEiPz6X.js"),__vite__mapDeps([96,28,1,2,29,19,30,51,42,95,20]))),LB=x.lazy(()=>Ne(()=>import("./RunDetailPage-DsxkqFst.js"),__vite__mapDeps([97,1,2,29,98,20]))),zB=x.lazy(()=>Ne(()=>import("./UserPreferencesPage-DxCSWJnS.js"),__vite__mapDeps([99,1,4,5,6,7]))),PB=x.lazy(()=>Ne(()=>import("./ActivityPage-sJEQn6DK.js"),__vite__mapDeps([100,1,2,42]))),IB=x.lazy(()=>Ne(()=>import("./MailInboxPage-BlCG-tba.js"),__vite__mapDeps([101,1,2,102,98,20,42,103,7]))),BB=x.lazy(()=>Ne(()=>import("./MailReadPage-MoNo_gmW.js"),__vite__mapDeps([104,1,2,102,98,20,42,103,7]))),UB=x.lazy(()=>Ne(()=>import("./MailSentPage-QzpuIJmT.js"),__vite__mapDeps([105,1,2,42,103,7]))),E0=x.lazy(()=>Ne(()=>import("./NotFoundPage-Bxu9uKFO.js"),[]));function HB(){return g.jsxs(ZR,{children:[g.jsx(cR,{children:g.jsx(x.Suspense,{fallback:g.jsx(Cj,{}),children:g.jsxs(UT,{children:[g.jsx(Se,{path:"/login",element:g.jsx(KI,{})}),g.jsx(Se,{path:"/auth/github/callback",element:g.jsx(XI,{})}),g.jsxs(Se,{path:"/",element:g.jsx(kj,{children:g.jsx(FI,{})}),children:[g.jsx(Se,{index:!0,element:g.jsx(YI,{})}),g.jsx(Se,{path:"tasks",element:g.jsx(QI,{})}),g.jsx(Se,{path:"tasks/new",element:g.jsx(JI,{})}),g.jsx(Se,{path:"tasks/:id",element:g.jsx(ZI,{})}),g.jsx(Se,{path:"tasks/:id/edit",element:g.jsx(WI,{})}),g.jsx(Se,{path:"agents",element:g.jsx(rB,{})}),g.jsx(Se,{path:"utilities",element:g.jsx(nB,{})}),g.jsx(Se,{path:"terminal",element:g.jsx(eB,{})}),g.jsx(Se,{path:"terminal/:taskId",element:g.jsx(tB,{})}),g.jsx(Se,{path:"git",element:g.jsx(jB,{})}),g.jsx(Se,{path:"schedule",element:g.jsx(DB,{})}),g.jsx(Se,{path:"schedule/:id",element:g.jsx(OB,{})}),g.jsx(Se,{path:"schedule/:id/run/:runId",element:g.jsx(LB,{})}),g.jsx(Se,{path:"identity",element:g.jsx(SB,{})}),g.jsx(Se,{path:"skills",element:g.jsx(aB,{})}),g.jsx(Se,{path:"skills/new",element:g.jsx(lB,{})}),g.jsx(Se,{path:"skills/:id",element:g.jsx(iB,{})}),g.jsx(Se,{path:"skills/:id/edit",element:g.jsx(oB,{})}),g.jsx(Se,{path:"activity",element:g.jsx(PB,{})}),g.jsx(Se,{path:"resources",element:g.jsx(sB,{})}),g.jsx(Se,{path:"resources/:id",element:g.jsx(uB,{})}),g.jsx(Se,{path:"context/role",element:g.jsx(pB,{})}),g.jsx(Se,{path:"context/role/edit",element:g.jsx(mB,{})}),g.jsx(Se,{path:"context/agents",element:g.jsx(gB,{})}),g.jsx(Se,{path:"context/agents/edit",element:g.jsx(yB,{})}),g.jsx(Se,{path:"context/team",element:g.jsx(vB,{})}),g.jsx(Se,{path:"context/team/edit",element:g.jsx(xB,{})}),g.jsx(Se,{path:"context/memory",element:g.jsx(bB,{})}),g.jsx(Se,{path:"context/memory/edit",element:g.jsx(wB,{})}),g.jsx(Se,{path:"knowledge",element:g.jsx(cB,{})}),g.jsx(Se,{path:"knowledge/new",element:g.jsx(hB,{})}),g.jsx(Se,{path:"knowledge/:filename",element:g.jsx(fB,{})}),g.jsx(Se,{path:"knowledge/:filename/edit",element:g.jsx(dB,{})}),g.jsxs(Se,{path:"mail",element:g.jsx(GI,{}),children:[g.jsx(Se,{index:!0,element:g.jsx(L0,{to:"inbox",replace:!0})}),g.jsx(Se,{path:"inbox",element:g.jsx(IB,{})}),g.jsx(Se,{path:"read",element:g.jsx(BB,{})}),g.jsx(Se,{path:"sent",element:g.jsx(UB,{})})]}),g.jsxs(Se,{path:"settings",element:g.jsx(VI,{}),children:[g.jsx(Se,{index:!0,element:g.jsx(S0,{})}),g.jsx(Se,{path:"user",element:g.jsx(S0,{})}),g.jsx(Se,{path:"preferences",element:g.jsx(zB,{})}),g.jsx(Se,{path:"authentication",element:g.jsx(EB,{})}),g.jsx(Se,{path:"api-keys",element:g.jsx(kB,{})}),g.jsx(Se,{path:"skills",element:g.jsx(CB,{})}),g.jsx(Se,{path:"integrations",element:g.jsx(AB,{})}),g.jsx(Se,{path:"git",element:g.jsx(TB,{})}),g.jsx(Se,{path:"mcp",element:g.jsx(RB,{})}),g.jsx(Se,{path:"prompts",element:g.jsx(_B,{})}),g.jsx(Se,{path:"rules",element:g.jsx(NB,{})}),g.jsx(Se,{path:"notifications",element:g.jsx(MB,{})})]}),g.jsx(Se,{path:"*",element:g.jsx(E0,{})})]}),g.jsx(Se,{path:"*",element:g.jsx(E0,{})})]})})}),g.jsx(Ej,{})]})}GA.createRoot(document.getElementById("root")).render(g.jsx(x.StrictMode,{children:g.jsx(HB,{})}));export{os as $,Et as A,pt as B,hN as C,Io as D,I9 as E,Qu as F,C1 as G,TM as H,q1 as I,QE as J,JB as K,Vn as L,lh as M,ZE as N,JE as O,oM as P,ek as Q,WE as R,Fo as S,CM as T,nk as U,tk as V,WB as W,Zi as X,bS as Y,BM as Z,wM as _,n_ as a,_6 as a$,DM as a0,uM as a1,Sj as a2,YB as a3,zI as a4,PI as a5,CC as a6,TC as a7,RC as a8,UI as a9,Ho as aA,G5 as aB,vE as aC,ha as aD,hm as aE,s0 as aF,Vt as aG,eU as aH,_o as aI,Sn as aJ,jc as aK,sl as aL,Te as aM,He as aN,Ve as aO,it as aP,Xa as aQ,tU as aR,nU as aS,Dz as aT,P5 as aU,t9 as aV,z5 as aW,hc as aX,cc as aY,N6 as aZ,u9 as a_,Yu as aa,Kh as ab,XR as ac,Pp as ad,xN as ae,pl as af,Xn as ag,jp as ah,me as ai,Fe as aj,Qe as ak,Am as al,G9 as am,Pw as an,U9 as ao,Zx as ap,t5 as aq,k9 as ar,p9 as as,AC as at,TN as au,yN as av,LM as aw,K5 as ax,t6 as ay,Mz as az,il as b,Tc as b0,Yw as b1,Ga as b2,Kw as b3,qt as b4,Xo as b5,Qw as b6,rw as b7,Hp as b8,nl as b9,A_ as bA,kt as bB,mN as bC,Hi as bD,HN as bE,A1 as bF,tN as bG,GB as bH,lN as bI,DN as bJ,J_ as bK,hb as bL,BN as bM,GN as bN,EM as bO,K1 as ba,Up as bb,Ko as bc,Xw as bd,Tk as be,A8 as bf,C8 as bg,$1 as bh,R6 as bi,i9 as bj,S6 as bk,or as bl,Ne as bm,p4 as bn,m4 as bo,g4 as bp,QB as bq,lS as br,ZB as bs,FB as bt,$B as bu,JN as bv,KN as bw,G1 as bx,xc as by,cr as bz,ke as c,ll as d,ce as e,ol as f,Qi as g,Hu as h,pM as i,g as j,Ro as k,dM as l,sN as m,fN as n,Ck as o,xh as p,aN as q,x as r,on as s,Q0 as t,Go as u,Zu as v,qh as w,VB as x,qB as y,P9 as z};
|