titan-agent 6.3.1 → 6.3.3
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/utils/constants.js +1 -1
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
- package/ui/dist/assets/{AuditPanel-TdDAyJUQ.js → AuditPanel-srKuRJBx.js} +1 -1
- package/ui/dist/assets/{AutonomyPanel-B6EIpuFt.js → AutonomyPanel-DTOg92_8.js} +1 -1
- package/ui/dist/assets/{AutopilotPanel-CLe14-eq.js → AutopilotPanel-C-XlExji.js} +1 -1
- package/ui/dist/assets/{AutoresearchPanel-C14q_kh7.js → AutoresearchPanel-BYffkknO.js} +1 -1
- package/ui/dist/assets/{BackupPanel-CoEbryip.js → BackupPanel-BpqVqS2y.js} +1 -1
- package/ui/dist/assets/{BrowserPanel-CRTJOXQV.js → BrowserPanel-CpcHkt_q.js} +1 -1
- package/ui/dist/assets/{CPActivity-DjT8p5Dn.js → CPActivity-BDsBsGAV.js} +1 -1
- package/ui/dist/assets/{CPAgentDetail-CR1ciISN.js → CPAgentDetail-C8kfr8IG.js} +1 -1
- package/ui/dist/assets/{CPAgents-DIYCdpQR.js → CPAgents-DO7kdGWL.js} +1 -1
- package/ui/dist/assets/{CPApprovals-DAKmaSkN.js → CPApprovals-UJ-Rs0IT.js} +1 -1
- package/ui/dist/assets/{CPCosts-CCCh_VY0.js → CPCosts-C7ZevZP2.js} +1 -1
- package/ui/dist/assets/{CPDashboard-CyKZGlHB.js → CPDashboard-BZN7lJ4t.js} +1 -1
- package/ui/dist/assets/{CPFiles-CI252ucO.js → CPFiles-Bx4ttNJ8.js} +1 -1
- package/ui/dist/assets/{CPGoals-BtcgDUY5.js → CPGoals-Bvzkk8W6.js} +1 -1
- package/ui/dist/assets/{CPInbox-igQoKOuB.js → CPInbox-BczZjFbO.js} +1 -1
- package/ui/dist/assets/{CPIssueDetail-DD5iL5mT.js → CPIssueDetail-DRVr_aqu.js} +1 -1
- package/ui/dist/assets/{CPIssues-C1XUjgdv.js → CPIssues-DpeO_37Y.js} +1 -1
- package/ui/dist/assets/CPLayout-B2Odh1We.js +2 -0
- package/ui/dist/assets/{CPOrg-JyXp44DB.js → CPOrg-CZaFupL_.js} +1 -1
- package/ui/dist/assets/{CPRuns-C-gZX28e.js → CPRuns-LfgKZcY5.js} +1 -1
- package/ui/dist/assets/{CPSocial-sMl4vqmX.js → CPSocial-aV6eplfG.js} +1 -1
- package/ui/dist/assets/{CPVoice-BXTY3vl7.js → CPVoice-CJfW9Rmi.js} +1 -1
- package/ui/dist/assets/{ChannelsPanel-rF_yHmYD.js → ChannelsPanel-C2BO3kax.js} +1 -1
- package/ui/dist/assets/{CheckpointsPanel-DO0QSjuz.js → CheckpointsPanel-CBcHZncd.js} +1 -1
- package/ui/dist/assets/{CommandPostHub-BLnNTvBO.js → CommandPostHub-CLnqGM62.js} +3 -3
- package/ui/dist/assets/{CronPanel-DELTcCV-.js → CronPanel-DGraqIbo.js} +1 -1
- package/ui/dist/assets/{DataTable-BmbYppBc.js → DataTable-BJlvWF1y.js} +1 -1
- package/ui/dist/assets/{DreamPanel-B28qIraZ.js → DreamPanel-DfczImsZ.js} +1 -1
- package/ui/dist/assets/{EmptyState-CxJGUl_w.js → EmptyState-D_fRWCXx.js} +1 -1
- package/ui/dist/assets/{EvalHarnessPanel-DvI-dsqQ.js → EvalHarnessPanel-Benn3gFG.js} +1 -1
- package/ui/dist/assets/{EvalPanel-DKdn69V8.js → EvalPanel-DDDTr1W8.js} +1 -1
- package/ui/dist/assets/{FileViewer-Deg5Z7ng.js → FileViewer-CFDLpbl3.js} +1 -1
- package/ui/dist/assets/{FilesPanel-DDRjQukY.js → FilesPanel-g8k7Z_ea.js} +1 -1
- package/ui/dist/assets/{FleetPanel-eEudyOkP.js → FleetPanel-01gxZlxR.js} +1 -1
- package/ui/dist/assets/{HomelabPanel-Dov1f68P.js → HomelabPanel-C_Kpp-jq.js} +1 -1
- package/ui/dist/assets/InfraView-DLhemt3r.js +2 -0
- package/ui/dist/assets/{InlineEditableField-4ZA-KEfv.js → InlineEditableField-zyYfa5Jl.js} +1 -1
- package/ui/dist/assets/{Input-C7lzcGqx.js → Input-Cm4ppgbt.js} +1 -1
- package/ui/dist/assets/{IntegrationsPanel-BmnWsnvF.js → IntegrationsPanel-DLfYHy7-.js} +1 -1
- package/ui/dist/assets/IntelligenceView-I7i3t8kE.js +2 -0
- package/ui/dist/assets/{LearningPanel-BsKhgbeS.js → LearningPanel-2LcS5Vqm.js} +1 -1
- package/ui/dist/assets/{LogsPanel-C-H_axtp.js → LogsPanel-YDE1-OQU.js} +1 -1
- package/ui/dist/assets/{McpPanel-BizAlt2h.js → McpPanel-D1v3LwyX.js} +1 -1
- package/ui/dist/assets/{MemoryGraphPanel-Qle7Bodz.js → MemoryGraphPanel-CtWA8YuJ.js} +1 -1
- package/ui/dist/assets/{MemoryWikiPanel-CKY4HY4k.js → MemoryWikiPanel-Cqps7hGG.js} +1 -1
- package/ui/dist/assets/{MeshPanel-D35hLDX4.js → MeshPanel-BNBI60Kh.js} +1 -1
- package/ui/dist/assets/{MissionCanvas-BU6dvWdk.js → MissionCanvas-CPmsOHNs.js} +1 -1
- package/ui/dist/assets/{MissionChat-BCxqk708.js → MissionChat-BhdcG_8G.js} +1 -1
- package/ui/dist/assets/{MissionLibrary-DtovbHf7.js → MissionLibrary-Deks4dm7.js} +1 -1
- package/ui/dist/assets/{MissionStart-DQCW6cLo.js → MissionStart-ClQzNvvk.js} +1 -1
- package/ui/dist/assets/{Modal-CpcFi-Gm.js → Modal-D3kmdSBW.js} +1 -1
- package/ui/dist/assets/{NvidiaPanel-Dwvf8UD2.js → NvidiaPanel-BhSsBbMG.js} +1 -1
- package/ui/dist/assets/{OrganismPanel-mhCf2syl.js → OrganismPanel-5eKj-u5O.js} +1 -1
- package/ui/dist/assets/{OverviewPanel-DiOrl6LB.js → OverviewPanel-C7YJgjIS.js} +1 -1
- package/ui/dist/assets/{PageHeader-CPfyiZIM.js → PageHeader-0FZrM9sX.js} +1 -1
- package/ui/dist/assets/{PersonaProfilesPanel-BvQlozzS.js → PersonaProfilesPanel-Kbyz2S3M.js} +1 -1
- package/ui/dist/assets/{PersonasPanel-G5Jz55AB.js → PersonasPanel-DzJFmfaz.js} +1 -1
- package/ui/dist/assets/{PhoneDeskPanel-Cx4wlgRT.js → PhoneDeskPanel-DZDPkVmm.js} +1 -1
- package/ui/dist/assets/{RecipesPanel-DB6Kuo1a.js → RecipesPanel-sG2wIUOY.js} +1 -1
- package/ui/dist/assets/{SecurityPanel-BcnpsElV.js → SecurityPanel-R8QcTvYn.js} +1 -1
- package/ui/dist/assets/{SelfImprovePanel-do5xDzc8.js → SelfImprovePanel-Burrv2Jw.js} +1 -1
- package/ui/dist/assets/{SelfProposalsPanel-DM4B-HLa.js → SelfProposalsPanel-DdHyA7M7.js} +1 -1
- package/ui/dist/assets/{SessionsPanel-Bl8h6Bfu.js → SessionsPanel-ByV8dYnL.js} +1 -1
- package/ui/dist/assets/{SessionsTab-hihe8Dc7.js → SessionsTab-BRpcK3SC.js} +1 -1
- package/ui/dist/assets/{SettingsPanel-Cp8decIS.js → SettingsPanel-E5WyEqka.js} +1 -1
- package/ui/dist/assets/SettingsView-BPVPhIUK.js +2 -0
- package/ui/dist/assets/{SkeletonLoader-DLzSaIMH.js → SkeletonLoader-BxTaQoW_.js} +1 -1
- package/ui/dist/assets/{SkillsPanel-B0VL9cO1.js → SkillsPanel-BXyiyd7F.js} +1 -1
- package/ui/dist/assets/{SomaView-BejcfdMM.js → SomaView-w865kZBc.js} +1 -1
- package/ui/dist/assets/{StatCard-Bt-57DK2.js → StatCard-D2OzXAEF.js} +1 -1
- package/ui/dist/assets/{StatusBadge-BE0SQNPu.js → StatusBadge-9A-LF8XO.js} +1 -1
- package/ui/dist/assets/{Tabs-dEteLxhl.js → Tabs-C7UF63vs.js} +1 -1
- package/ui/dist/assets/{TeamsPanel-7UwGxnbj.js → TeamsPanel-BeNA1P-k.js} +1 -1
- package/ui/dist/assets/{TelemetryPanel-CqbkTW3V.js → TelemetryPanel-D8gu25aT.js} +1 -1
- package/ui/dist/assets/{TitanCanvas-RVuBEoV1.js → TitanCanvas-D7KEvDFz.js} +25 -25
- package/ui/dist/assets/{ToolsView-C97QnPeY.js → ToolsView-CDeB3RtS.js} +2 -2
- package/ui/dist/assets/{Tooltip-BGe4ZrLD.js → Tooltip-1mExUZjj.js} +1 -1
- package/ui/dist/assets/{TraceViewer-CSj_fZou.js → TraceViewer-MDRjeVoy.js} +1 -1
- package/ui/dist/assets/{TrainingPanel-43gDnkVS.js → TrainingPanel-CS9oWB58.js} +1 -1
- package/ui/dist/assets/{VoiceOverlay-CvZcewVV.js → VoiceOverlay-BeQ9oiym.js} +1 -1
- package/ui/dist/assets/{VramPanel-nadiVKRZ.js → VramPanel-BNOFAvif.js} +1 -1
- package/ui/dist/assets/{WatchView-CUGArdWk.js → WatchView-COyUaBza.js} +1 -1
- package/ui/dist/assets/{WorkTab-iCDNyX60.js → WorkTab-BFYrzFcn.js} +1 -1
- package/ui/dist/assets/{WorkflowsPanel-Do5EOPQ-.js → WorkflowsPanel-DEz8opv0.js} +1 -1
- package/ui/dist/assets/{archive-96Jj-QYz.js → archive-D0TMs-ec.js} +1 -1
- package/ui/dist/assets/{arrow-left-DvmiAV7y.js → arrow-left-BflMGFJr.js} +1 -1
- package/ui/dist/assets/{book-open-DvAaokKW.js → book-open-DucGf6Ry.js} +1 -1
- package/ui/dist/assets/{bot-DFsTWhzD.js → bot-DlZ9827e.js} +1 -1
- package/ui/dist/assets/{chart-column-BWW8khga.js → chart-column-Dva45R9X.js} +1 -1
- package/ui/dist/assets/{check-4bqUIREX.js → check-o_c7GSUi.js} +1 -1
- package/ui/dist/assets/{chevron-right-DhAaVOkv.js → chevron-right-B2xN7vZr.js} +1 -1
- package/ui/dist/assets/{chevron-up-DhONR6eV.js → chevron-up-DNehgPl9.js} +1 -1
- package/ui/dist/assets/{circle-check-big-CrrpTfnZ.js → circle-check-big-BTui49nQ.js} +1 -1
- package/ui/dist/assets/{circle-stop-BOU58Urf.js → circle-stop-GEGv_qUQ.js} +1 -1
- package/ui/dist/assets/{clipboard-list-GcIgVrYh.js → clipboard-list-Dy-3UtJn.js} +1 -1
- package/ui/dist/assets/{clock-D5MlrzQb.js → clock-DSVWc_hS.js} +1 -1
- package/ui/dist/assets/{dollar-sign-B9t2KmrG.js → dollar-sign-B57wYnbN.js} +1 -1
- package/ui/dist/assets/{download-DzgUP-io.js → download-BYoF2I2k.js} +1 -1
- package/ui/dist/assets/{external-link--90_rW_r.js → external-link-BbZ5ZMbT.js} +1 -1
- package/ui/dist/assets/{file-text-C-9as3zm.js → file-text-BsTFGmBj.js} +1 -1
- package/ui/dist/assets/{flask-conical-BJnD20AK.js → flask-conical-D8gouq57.js} +1 -1
- package/ui/dist/assets/{folder-BXotS0h-.js → folder-C0s6yhdf.js} +1 -1
- package/ui/dist/assets/{funnel-BkW9zcis.js → funnel-CYj9F_J0.js} +1 -1
- package/ui/dist/assets/{git-branch-D7pbvkyu.js → git-branch-BFjAPkNq.js} +1 -1
- package/ui/dist/assets/{index-DczEfArU.js → index-Dnvk3jCu.js} +63 -63
- package/ui/dist/assets/{layers-BgUh-m00.js → layers-7OM7j4xy.js} +1 -1
- package/ui/dist/assets/{legacy-Wbf7An22.js → legacy-DWFG28eD.js} +1 -1
- package/ui/dist/assets/{lightbulb-4Yox7P7Z.js → lightbulb-KE9dVLJ1.js} +1 -1
- package/ui/dist/assets/{list-todo-JeleiL5r.js → list-todo-I7S4ILfX.js} +1 -1
- package/ui/dist/assets/{message-square-C9bK5TAD.js → message-square-BktXdPkG.js} +1 -1
- package/ui/dist/assets/{mic-DwEnBcFd.js → mic-CQcJXVlD.js} +1 -1
- package/ui/dist/assets/{missions-Jbe_PHaT.js → missions-DoFF2JOc.js} +1 -1
- package/ui/dist/assets/{network-BjQmrmO8.js → network-CxR7yDrR.js} +1 -1
- package/ui/dist/assets/{pause-9vYiD-5Y.js → pause-CoNV7lxb.js} +1 -1
- package/ui/dist/assets/{pencil-CygyIvE1.js → pencil-BfcTfeAV.js} +1 -1
- package/ui/dist/assets/{play-7ImYx-M6.js → play-BQj0nGq2.js} +1 -1
- package/ui/dist/assets/{plug-DXmJpsfC.js → plug-Bt3RMNci.js} +1 -1
- package/ui/dist/assets/{plus-LIrhsu2s.js → plus-D3aWFzy1.js} +1 -1
- package/ui/dist/assets/{proxy-B72L9I2p.js → proxy-Dxc39wKi.js} +1 -1
- package/ui/dist/assets/{radio-DN9FsrLZ.js → radio-DwaUeLWj.js} +1 -1
- package/ui/dist/assets/{refresh-cw-DyPWslHB.js → refresh-cw-pV7an3cE.js} +1 -1
- package/ui/dist/assets/{rotate-ccw-C7z7lzst.js → rotate-ccw-DQ2_e6Ey.js} +1 -1
- package/ui/dist/assets/{save-Bl0vY0Ur.js → save-Bc5LT98_.js} +1 -1
- package/ui/dist/assets/{search-DLl1kVch.js → search-5DwwxYyL.js} +1 -1
- package/ui/dist/assets/{send-BqZ0Qzz-.js → send-D1b4UjEx.js} +1 -1
- package/ui/dist/assets/{server-DvPKxeOK.js → server-DjUE1pG1.js} +1 -1
- package/ui/dist/assets/{shield-check-DMM8OpD5.js → shield-check-CFFgZVUJ.js} +1 -1
- package/ui/dist/assets/{terminal-DD6OAIa2.js → terminal-BgivA6PX.js} +1 -1
- package/ui/dist/assets/{test-tube-BoC1tTKm.js → test-tube-dYWRJTXm.js} +1 -1
- package/ui/dist/assets/{toggle-right-CrEdx-9K.js → toggle-right-C0WDq8zW.js} +1 -1
- package/ui/dist/assets/{trash-2-Co50XYSn.js → trash-2-BYDarYfk.js} +1 -1
- package/ui/dist/assets/{trending-up-SFD19agk.js → trending-up-gomnMzHI.js} +1 -1
- package/ui/dist/assets/{trophy-DLTd-oCR.js → trophy-BdGosdNp.js} +1 -1
- package/ui/dist/assets/{volume-2-vQvjPYVu.js → volume-2-UXO66-b3.js} +1 -1
- package/ui/dist/assets/{wifi-off-DVwDeeLz.js → wifi-off-BBMJbZvM.js} +1 -1
- package/ui/dist/index.html +1 -1
- package/ui/dist/sw.js +1 -1
- package/ui/dist/assets/CPLayout-VXhuxAHd.js +0 -2
- package/ui/dist/assets/InfraView-DgasEqoR.js +0 -2
- package/ui/dist/assets/IntelligenceView-DXYSyS1a.js +0 -2
- package/ui/dist/assets/SettingsView-BZIgBz0P.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TitanCanvas-
|
|
2
|
-
var
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TitanCanvas-D7KEvDFz.js","assets/chevron-up-DNehgPl9.js","assets/plus-D3aWFzy1.js","assets/file-text-BsTFGmBj.js","assets/server-DjUE1pG1.js","assets/network-CxR7yDrR.js","assets/terminal-BgivA6PX.js","assets/book-open-DucGf6Ry.js","assets/save-Bc5LT98_.js","assets/pencil-BfcTfeAV.js","assets/rotate-ccw-DQ2_e6Ey.js","assets/search-5DwwxYyL.js","assets/send-D1b4UjEx.js","assets/message-square-BktXdPkG.js","assets/mic-CQcJXVlD.js","assets/flask-conical-D8gouq57.js","assets/clock-DSVWc_hS.js","assets/archive-D0TMs-ec.js","assets/radio-DwaUeLWj.js","assets/test-tube-dYWRJTXm.js","assets/VoiceOverlay-BeQ9oiym.js","assets/chevron-right-B2xN7vZr.js","assets/volume-2-UXO66-b3.js","assets/refresh-cw-pV7an3cE.js","assets/folder-C0s6yhdf.js","assets/check-o_c7GSUi.js","assets/shield-check-CFFgZVUJ.js","assets/external-link-BbZ5ZMbT.js","assets/bot-DlZ9827e.js","assets/wifi-off-BBMJbZvM.js","assets/TitanCanvas-BfitWg9R.css","assets/CPDashboard-BZN7lJ4t.js","assets/Input-Cm4ppgbt.js","assets/clsx-B-dksMZM.js","assets/StatusBadge-9A-LF8XO.js","assets/PageHeader-0FZrM9sX.js","assets/SkeletonLoader-BxTaQoW_.js","assets/list-todo-I7S4ILfX.js","assets/dollar-sign-B57wYnbN.js","assets/CPIssues-DpeO_37Y.js","assets/EmptyState-D_fRWCXx.js","assets/Tabs-C7UF63vs.js","assets/Modal-D3kmdSBW.js","assets/proxy-Dxc39wKi.js","assets/CPApprovals-UJ-Rs0IT.js","assets/approvalHeadline-DB9SgR-9.js","assets/CPActivity-BDsBsGAV.js","assets/CPGoals-Bvzkk8W6.js","assets/trash-2-BYDarYfk.js","assets/CPRuns-LfgKZcY5.js","assets/play-BQj0nGq2.js","assets/CPAgents-DO7kdGWL.js","assets/CPOrg-CZaFupL_.js","assets/CPFiles-Bx4ttNJ8.js","assets/CPVoice-CJfW9Rmi.js","assets/circle-stop-GEGv_qUQ.js","assets/CPCosts-C7ZevZP2.js","assets/MemoryGraphPanel-CtWA8YuJ.js","assets/MemoryWikiPanel-Cqps7hGG.js","assets/arrow-left-BflMGFJr.js","assets/AutoresearchPanel-BYffkknO.js","assets/pause-CoNV7lxb.js","assets/trophy-BdGosdNp.js","assets/trending-up-gomnMzHI.js","assets/SelfImprovePanel-Burrv2Jw.js","assets/circle-check-big-BTui49nQ.js","assets/DreamPanel-DfczImsZ.js","assets/TrainingPanel-CS9oWB58.js","assets/download-BYoF2I2k.js","assets/ToolsView-CDeB3RtS.js","assets/SkillsPanel-BXyiyd7F.js","assets/McpPanel-D1v3LwyX.js","assets/plug-Bt3RMNci.js","assets/IntegrationsPanel-DLfYHy7-.js","assets/ChannelsPanel-C2BO3kax.js","assets/MeshPanel-BNBI60Kh.js","assets/DataTable-BJlvWF1y.js","assets/BrowserPanel-CpcHkt_q.js","assets/RecipesPanel-sG2wIUOY.js","assets/SettingsPanel-E5WyEqka.js","assets/Tooltip-1mExUZjj.js","assets/SecurityPanel-R8QcTvYn.js","assets/AuditPanel-srKuRJBx.js","assets/clipboard-list-Dy-3UtJn.js","assets/funnel-CYj9F_J0.js","assets/BackupPanel-BpqVqS2y.js","assets/LogsPanel-YDE1-OQU.js","assets/HomelabPanel-C_Kpp-jq.js","assets/StatCard-D2OzXAEF.js","assets/chart-column-Dva45R9X.js","assets/NvidiaPanel-BhSsBbMG.js","assets/VramPanel-BNOFAvif.js","assets/FleetPanel-01gxZlxR.js","assets/CronPanel-DGraqIbo.js","assets/toggle-right-C0WDq8zW.js","assets/EvalPanel-DDDTr1W8.js","assets/PhoneDeskPanel-DZDPkVmm.js","assets/MissionStart-ClQzNvvk.js","assets/missions-DoFF2JOc.js","assets/MissionChat-BhdcG_8G.js","assets/FileViewer-CFDLpbl3.js","assets/MissionCanvas-CPmsOHNs.js","assets/MissionLibrary-Deks4dm7.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var qg=Object.defineProperty;var Rm=l=>{throw TypeError(l)};var Bg=(l,s,r)=>s in l?qg(l,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):l[s]=r;var Dm=(l,s,r)=>Bg(l,typeof s!="symbol"?s+"":s,r),Fc=(l,s,r)=>s.has(l)||Rm("Cannot "+r);var U=(l,s,r)=>(Fc(l,s,"read from private field"),r?r.call(l):s.get(l)),je=(l,s,r)=>s.has(l)?Rm("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(l):s.set(l,r),ce=(l,s,r,c)=>(Fc(l,s,"write to private field"),c?c.call(l,r):s.set(l,r),r),dt=(l,s,r)=>(Fc(l,s,"access private method"),r);var xu=(l,s,r,c)=>({set _(d){ce(l,s,d,r)},get _(){return U(l,s,c)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();var ES=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Pc={exports:{}},qi={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ var Hg=Object.defineProperty;var Rm=l=>{throw TypeError(l)};var qg=(l,s,r)=>s in
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var km;function Yg(){if(km)return qi;km=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function r(c,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:l,type:c,key:y,ref:d!==void 0?d:null,props:m}}return qi.Fragment=s,qi.jsx=r,qi.jsxs=r,qi}var Um;function Qg(){return Um||(Um=1,Pc.exports=Yg()),Pc.exports}var o=Qg(),Wc={exports:{}},de={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react.production.js
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ var Hg=Object.defineProperty;var Rm=l=>{throw TypeError(l)};var qg=(l,s,r)=>s in
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Lm;function
|
|
18
|
+
*/var Lm;function Vg(){if(Lm)return de;Lm=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),z=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=z&&S[z]||S["@@iterator"],typeof S=="function"?S:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,Y={};function G(S,D,$){this.props=S,this.context=D,this.refs=Y,this.updater=$||X}G.prototype.isReactComponent={},G.prototype.setState=function(S,D){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,D,"setState")},G.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function W(){}W.prototype=G.prototype;function K(S,D,$){this.props=S,this.context=D,this.refs=Y,this.updater=$||X}var V=K.prototype=new W;V.constructor=K,O(V,G.prototype),V.isPureReactComponent=!0;var ne=Array.isArray;function Q(){}var F={H:null,A:null,T:null,S:null},he=Object.prototype.hasOwnProperty;function le(S,D,$){var P=$.ref;return{$$typeof:l,type:S,key:D,ref:P!==void 0?P:null,props:$}}function Be(S,D){return le(S.type,D,S.props)}function ke(S){return typeof S=="object"&&S!==null&&S.$$typeof===l}function Ge(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function($){return D[$]})}var nt=/\/+/g;function we(S,D){return typeof S=="object"&&S!==null&&S.key!=null?Ge(""+S.key):D.toString(36)}function Ne(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Q,Q):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,D,$,P,se){var oe=typeof S;(oe==="undefined"||oe==="boolean")&&(S=null);var ee=!1;if(S===null)ee=!0;else switch(oe){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(S.$$typeof){case l:case s:ee=!0;break;case A:return ee=S._init,R(ee(S._payload),D,$,P,se)}}if(ee)return se=se(S),ee=P===""?"."+we(S,0):P,ne(se)?($="",ee!=null&&($=ee.replace(nt,"$&/")+"/"),R(se,D,$,"",function(la){return la})):se!=null&&(ke(se)&&(se=Be(se,$+(se.key==null||S&&S.key===se.key?"":(""+se.key).replace(nt,"$&/")+"/")+ee)),D.push(se)),1;ee=0;var et=P===""?".":P+":";if(ne(S))for(var Ue=0;Ue<S.length;Ue++)P=S[Ue],oe=et+we(P,Ue),ee+=R(P,D,$,oe,se);else if(Ue=q(S),typeof Ue=="function")for(S=Ue.call(S),Ue=0;!(P=S.next()).done;)P=P.value,oe=et+we(P,Ue++),ee+=R(P,D,$,oe,se);else if(oe==="object"){if(typeof S.then=="function")return R(Ne(S),D,$,P,se);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Z(S,D,$){if(S==null)return S;var P=[],se=0;return R(S,P,"","",function(oe){return D.call($,oe,se++)}),P}function J(S){if(S._status===-1){var D=S._result;D=D(),D.then(function($){(S._status===0||S._status===-1)&&(S._status=1,S._result=$)},function($){(S._status===0||S._status===-1)&&(S._status=2,S._result=$)}),S._status===-1&&(S._status=0,S._result=D)}if(S._status===1)return S._result.default;throw S._result}var re=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ge={map:Z,forEach:function(S,D,$){Z(S,function(){D.apply(this,arguments)},$)},count:function(S){var D=0;return Z(S,function(){D++}),D},toArray:function(S){return Z(S,function(D){return D})||[]},only:function(S){if(!ke(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return de.Activity=T,de.Children=ge,de.Component=G,de.Fragment=r,de.Profiler=d,de.PureComponent=K,de.StrictMode=c,de.Suspense=b,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,de.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},de.cache=function(S){return function(){return S.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(S,D,$){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var P=O({},S.props),se=S.key;if(D!=null)for(oe in D.key!==void 0&&(se=""+D.key),D)!he.call(D,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&D.ref===void 0||(P[oe]=D[oe]);var oe=arguments.length-2;if(oe===1)P.children=$;else if(1<oe){for(var ee=Array(oe),et=0;et<oe;et++)ee[et]=arguments[et+2];P.children=ee}return le(S.type,se,P)},de.createContext=function(S){return S={$$typeof:y,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},de.createElement=function(S,D,$){var P,se={},oe=null;if(D!=null)for(P in D.key!==void 0&&(oe=""+D.key),D)he.call(D,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(se[P]=D[P]);var ee=arguments.length-2;if(ee===1)se.children=$;else if(1<ee){for(var et=Array(ee),Ue=0;Ue<ee;Ue++)et[Ue]=arguments[Ue+2];se.children=et}if(S&&S.defaultProps)for(P in ee=S.defaultProps,ee)se[P]===void 0&&(se[P]=ee[P]);return le(S,oe,se)},de.createRef=function(){return{current:null}},de.forwardRef=function(S){return{$$typeof:g,render:S}},de.isValidElement=ke,de.lazy=function(S){return{$$typeof:A,_payload:{_status:-1,_result:S},_init:J}},de.memo=function(S,D){return{$$typeof:v,type:S,compare:D===void 0?null:D}},de.startTransition=function(S){var D=F.T,$={};F.T=$;try{var P=S(),se=F.S;se!==null&&se($,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(Q,re)}catch(oe){re(oe)}finally{D!==null&&$.types!==null&&(D.types=$.types),F.T=D}},de.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},de.use=function(S){return F.H.use(S)},de.useActionState=function(S,D,$){return F.H.useActionState(S,D,$)},de.useCallback=function(S,D){return F.H.useCallback(S,D)},de.useContext=function(S){return F.H.useContext(S)},de.useDebugValue=function(){},de.useDeferredValue=function(S,D){return F.H.useDeferredValue(S,D)},de.useEffect=function(S,D){return F.H.useEffect(S,D)},de.useEffectEvent=function(S){return F.H.useEffectEvent(S)},de.useId=function(){return F.H.useId()},de.useImperativeHandle=function(S,D,$){return F.H.useImperativeHandle(S,D,$)},de.useInsertionEffect=function(S,D){return F.H.useInsertionEffect(S,D)},de.useLayoutEffect=function(S,D){return F.H.useLayoutEffect(S,D)},de.useMemo=function(S,D){return F.H.useMemo(S,D)},de.useOptimistic=function(S,D){return F.H.useOptimistic(S,D)},de.useReducer=function(S,D,$){return F.H.useReducer(S,D,$)},de.useRef=function(S){return F.H.useRef(S)},de.useState=function(S){return F.H.useState(S)},de.useSyncExternalStore=function(S,D,$){return F.H.useSyncExternalStore(S,D,$)},de.useTransition=function(){return F.H.useTransition()},de.version="19.2.4",de}var Hm;function To(){return Hm||(Hm=1,Wc.exports=Vg()),Wc.exports}var p=To();const Nu=Gg(p);var Ic={exports:{}},Bi={},eo={exports:{}},to={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ var Hg=Object.defineProperty;var Rm=l=>{throw TypeError(l)};var qg=(l,s,r)=>s in
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var qm;function
|
|
26
|
+
*/var qm;function Xg(){return qm||(qm=1,(function(l){function s(R,Z){var J=R.length;R.push(Z);e:for(;0<J;){var re=J-1>>>1,ge=R[re];if(0<d(ge,Z))R[re]=Z,R[J]=ge,J=re;else break e}}function r(R){return R.length===0?null:R[0]}function c(R){if(R.length===0)return null;var Z=R[0],J=R.pop();if(J!==Z){R[0]=J;e:for(var re=0,ge=R.length,S=ge>>>1;re<S;){var D=2*(re+1)-1,$=R[D],P=D+1,se=R[P];if(0>d($,J))P<ge&&0>d(se,$)?(R[re]=se,R[P]=J,re=P):(R[re]=$,R[D]=J,re=D);else if(P<ge&&0>d(se,J))R[re]=se,R[P]=J,re=P;else break e}}return Z}function d(R,Z){var J=R.sortIndex-Z.sortIndex;return J!==0?J:R.id-Z.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;l.unstable_now=function(){return m.now()}}else{var y=Date,g=y.now();l.unstable_now=function(){return y.now()-g}}var b=[],v=[],A=1,T=null,z=3,q=!1,X=!1,O=!1,Y=!1,G=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function V(R){for(var Z=r(v);Z!==null;){if(Z.callback===null)c(v);else if(Z.startTime<=R)c(v),Z.sortIndex=Z.expirationTime,s(b,Z);else break;Z=r(v)}}function ne(R){if(O=!1,V(R),!X)if(r(b)!==null)X=!0,Q||(Q=!0,Ge());else{var Z=r(v);Z!==null&&Ne(ne,Z.startTime-R)}}var Q=!1,F=-1,he=5,le=-1;function Be(){return Y?!0:!(l.unstable_now()-le<he)}function ke(){if(Y=!1,Q){var R=l.unstable_now();le=R;var Z=!0;try{e:{X=!1,O&&(O=!1,W(F),F=-1),q=!0;var J=z;try{t:{for(V(R),T=r(b);T!==null&&!(T.expirationTime>R&&Be());){var re=T.callback;if(typeof re=="function"){T.callback=null,z=T.priorityLevel;var ge=re(T.expirationTime<=R);if(R=l.unstable_now(),typeof ge=="function"){T.callback=ge,V(R),Z=!0;break t}T===r(b)&&c(b),V(R)}else c(b);T=r(b)}if(T!==null)Z=!0;else{var S=r(v);S!==null&&Ne(ne,S.startTime-R),Z=!1}}break e}finally{T=null,z=J,q=!1}Z=void 0}}finally{Z?Ge():Q=!1}}}var Ge;if(typeof K=="function")Ge=function(){K(ke)};else if(typeof MessageChannel<"u"){var nt=new MessageChannel,we=nt.port2;nt.port1.onmessage=ke,Ge=function(){we.postMessage(null)}}else Ge=function(){G(ke,0)};function Ne(R,Z){F=G(function(){R(l.unstable_now())},Z)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(R){R.callback=null},l.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<R?Math.floor(1e3/R):5},l.unstable_getCurrentPriorityLevel=function(){return z},l.unstable_next=function(R){switch(z){case 1:case 2:case 3:var Z=3;break;default:Z=z}var J=z;z=Z;try{return R()}finally{z=J}},l.unstable_requestPaint=function(){Y=!0},l.unstable_runWithPriority=function(R,Z){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var J=z;z=R;try{return Z()}finally{z=J}},l.unstable_scheduleCallback=function(R,Z,J){var re=l.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?re+J:re):J=re,R){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=J+ge,R={id:A++,callback:Z,priorityLevel:R,startTime:J,expirationTime:ge,sortIndex:-1},J>re?(R.sortIndex=J,s(v,R),r(b)===null&&R===r(v)&&(O?(W(F),F=-1):O=!0,Ne(ne,J-re))):(R.sortIndex=ge,s(b,R),X||q||(X=!0,Q||(Q=!0,Ge()))),R},l.unstable_shouldYield=Be,l.unstable_wrapCallback=function(R){var Z=z;return function(){var J=z;z=Z;try{return R.apply(this,arguments)}finally{z=J}}}})(to)),to}var Bm;function Zg(){return Bm||(Bm=1,eo.exports=Xg()),eo.exports}var ao={exports:{}},mt={};/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.js
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ var Hg=Object.defineProperty;var Rm=l=>{throw TypeError(l)};var qg=(l,s,r)=>s in
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Gm;function
|
|
34
|
+
*/var Gm;function $g(){if(Gm)return mt;Gm=1;var l=To();function s(b){var v="https://react.dev/errors/"+b;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)v+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+b+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(s(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,v,A){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:T==null?null:""+T,children:b,containerInfo:v,implementation:A}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(b,v){if(b==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,mt.createPortal=function(b,v){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return m(b,v,null,A)},mt.flushSync=function(b){var v=y.T,A=c.p;try{if(y.T=null,c.p=2,b)return b()}finally{y.T=v,c.p=A,c.d.f()}},mt.preconnect=function(b,v){typeof b=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(b,v))},mt.prefetchDNS=function(b){typeof b=="string"&&c.d.D(b)},mt.preinit=function(b,v){if(typeof b=="string"&&v&&typeof v.as=="string"){var A=v.as,T=g(A,v.crossOrigin),z=typeof v.integrity=="string"?v.integrity:void 0,q=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;A==="style"?c.d.S(b,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:T,integrity:z,fetchPriority:q}):A==="script"&&c.d.X(b,{crossOrigin:T,integrity:z,fetchPriority:q,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},mt.preinitModule=function(b,v){if(typeof b=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var A=g(v.as,v.crossOrigin);c.d.M(b,{crossOrigin:A,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(b)},mt.preload=function(b,v){if(typeof b=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var A=v.as,T=g(A,v.crossOrigin);c.d.L(b,A,{crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},mt.preloadModule=function(b,v){if(typeof b=="string")if(v){var A=g(v.as,v.crossOrigin);c.d.m(b,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:A,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(b)},mt.requestFormReset=function(b){c.d.r(b)},mt.unstable_batchedUpdates=function(b,v){return b(v)},mt.useFormState=function(b,v,A){return y.H.useFormState(b,v,A)},mt.useFormStatus=function(){return y.H.useHostTransitionStatus()},mt.version="19.2.4",mt}var Ym;function Kg(){if(Ym)return ao.exports;Ym=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),ao.exports=$g(),ao.exports}/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-dom-client.production.js
|
|
37
37
|
*
|
|
@@ -39,15 +39,15 @@ var Hg=Object.defineProperty;var Rm=l=>{throw TypeError(l)};var qg=(l,s,r)=>s in
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Qm;function
|
|
42
|
+
*/var Qm;function Jg(){if(Qm)return Bi;Qm=1;var l=Zg(),s=To(),r=Kg();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(m(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,n=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(n=i.return,n!==null){a=n;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return b(i),e;if(u===n)return b(i),t;u=u.sibling}throw Error(c(188))}if(a.return!==n.return)a=i,n=u;else{for(var f=!1,h=i.child;h;){if(h===a){f=!0,a=i,n=u;break}if(h===n){f=!0,n=i,a=u;break}h=h.sibling}if(!f){for(h=u.child;h;){if(h===a){f=!0,a=u,n=i;break}if(h===n){f=!0,n=u,a=i;break}h=h.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==n)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function A(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=A(e),t!==null)return t;e=e.sibling}return null}var T=Object.assign,z=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),K=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),he=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),Be=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Ge(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var nt=Symbol.for("react.client.reference");function we(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case G:return"Profiler";case Y:return"StrictMode";case ne:return"Suspense";case Q:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case K:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:we(e.type)||"Memo";case he:t=e._payload,e=e._init;try{return we(e(t))}catch{}}return null}var Ne=Array.isArray,R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},re=[],ge=-1;function S(e){return{current:e}}function D(e){0>ge||(e.current=re[ge],re[ge]=null,ge--)}function $(e,t){ge++,re[ge]=e.current,e.current=t}var P=S(null),se=S(null),oe=S(null),ee=S(null);function et(e,t){switch($(oe,t),$(se,e),$(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=nm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(P),$(P,e)}function Ue(){D(P),D(se),D(oe)}function la(e){e.memoizedState!==null&&$(ee,e);var t=P.current,a=nm(t,e.type);t!==a&&($(se,e),$(P,a))}function Ft(e){se.current===e&&(D(P),D(se)),ee.current===e&&(D(ee),ki._currentValue=J)}var Qn,Wi;function ma(e){if(Qn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Qn=t&&t[1]||"",Wi=-1<a.stack.indexOf(`
|
|
43
43
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
44
|
`+Qn+e+Wi}var ia=!1;function Xl(e,t){if(!e||ia)return"";ia=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(M){var w=M}Reflect.construct(e,[],B)}else{try{B.call()}catch(M){w=M}e.call(B.prototype)}}else{try{throw Error()}catch(M){w=M}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(M){if(M&&w&&typeof M.stack=="string")return[M.stack,w.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),f=u[0],h=u[1];if(f&&h){var x=f.split(`
|
|
45
45
|
`),N=h.split(`
|
|
46
|
-
`);for(i=n=0;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;for(;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;if(n===x.length||i===N.length)for(n=x.length-1,i=N.length-1;1<=n&&0<=i&&x[n]!==N[i];)i--;for(;1<=n&&0<=i;n--,i--)if(x[n]!==N[i]){if(n!==1||i!==1)do if(n--,i--,0>i||x[n]!==N[i]){var
|
|
47
|
-
`+x[n].replace(" at new "," at ");return e.displayName&&
|
|
46
|
+
`);for(i=n=0;n<x.length&&!x[n].includes("DetermineComponentFrameRoot");)n++;for(;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;if(n===x.length||i===N.length)for(n=x.length-1,i=N.length-1;1<=n&&0<=i&&x[n]!==N[i];)i--;for(;1<=n&&0<=i;n--,i--)if(x[n]!==N[i]){if(n!==1||i!==1)do if(n--,i--,0>i||x[n]!==N[i]){var k=`
|
|
47
|
+
`+x[n].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=n&&0<=i);break}}}finally{ia=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ma(a):""}function Pt(e,t){switch(e.tag){case 26:case 27:case 5:return ma(e.type);case 16:return ma("Lazy");case 13:return e.child!==t&&t!==null?ma("Suspense Fallback"):ma("Suspense");case 19:return ma("SuspenseList");case 0:case 15:return Xl(e.type,!1);case 11:return Xl(e.type.render,!1);case 1:return Xl(e.type,!0);case 31:return ma("Activity");default:return""}}function Vn(e){try{var t="",a=null;do t+=Pt(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
48
48
|
Error generating stack: `+n.message+`
|
|
49
|
-
`+n.stack}}var Xn=Object.prototype.hasOwnProperty,Zl=l.unstable_scheduleCallback,Kl=l.unstable_cancelCallback,ku=l.unstable_shouldYield,Ii=l.unstable_requestPaint,ht=l.unstable_now,Lu=l.unstable_getCurrentPriorityLevel,es=l.unstable_ImmediatePriority,Zn=l.unstable_UserBlockingPriority,yn=l.unstable_NormalPriority,ts=l.unstable_LowPriority,as=l.unstable_IdlePriority,ns=l.log,C=l.unstable_setDisableYieldValue,me=null,Ye=null;function tt(e){if(typeof ns=="function"&&C(e),Ye&&typeof Ye.setStrictMode=="function")try{Ye.setStrictMode(me,e)}catch{}}var Ct=Math.clz32?Math.clz32:jp,Ep=Math.log,Tp=Math.LN2;function jp(e){return e>>>=0,e===0?32:31-(Ep(e)/Tp|0)|0}var ls=256,is=262144,ss=4194304;function gn(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function us(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?i=gn(n):(f&=h,f!==0?i=gn(f):a||(a=h&~e,a!==0&&(i=gn(a))))):(h=n&~u,h!==0?i=gn(h):f!==0?i=gn(f):a||(a=n&~e,a!==0&&(i=gn(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function $l(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ap(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 ko(){var e=ss;return ss<<=1,(ss&62914560)===0&&(ss=4194304),e}function Hu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Jl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _p(e,t,a,n,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,x=e.expirationTimes,N=e.hiddenUpdates;for(a=f&~a;0<a;){var U=31-Ct(a),B=1<<U;h[U]=0,x[U]=-1;var w=N[U];if(w!==null)for(N[U]=null,U=0;U<w.length;U++){var M=w[U];M!==null&&(M.lane&=-536870913)}a&=~B}n!==0&&Lo(e,n,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Lo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Ho(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function qo(e,t){var a=t&-t;return a=(a&42)!==0?1:qu(a),(a&(e.suspendedLanes|t))!==0?0:a}function qu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bo(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:_m(e.type))}function Go(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Ha=Math.random().toString(36).slice(2),ut="__reactFiber$"+Ha,bt="__reactProps$"+Ha,Kn="__reactContainer$"+Ha,Gu="__reactEvents$"+Ha,Np="__reactListeners$"+Ha,Cp="__reactHandles$"+Ha,Yo="__reactResources$"+Ha,Fl="__reactMarker$"+Ha;function Yu(e){delete e[ut],delete e[bt],delete e[Gu],delete e[Np],delete e[Cp]}function $n(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Kn]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[ut])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function Jn(e){if(e=e[ut]||e[Kn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Fn(e){var t=e[Yo];return t||(t=e[Yo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Fl]=!0}var Qo=new Set,Vo={};function vn(e,t){Pn(e,t),Pn(e+"Capture",t)}function Pn(e,t){for(Vo[e]=t,e=0;e<t.length;e++)Qo.add(t[e])}var wp=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]*$"),Xo={},Zo={};function Op(e){return Xn.call(Zo,e)?!0:Xn.call(Xo,e)?!1:wp.test(e)?Zo[e]=!0:(Xo[e]=!0,!1)}function rs(e,t,a){if(Op(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function cs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function pa(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ko(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mp(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qu(e){if(!e._valueTracker){var t=Ko(e)?"checked":"value";e._valueTracker=Mp(e,t,""+e[t])}}function $o(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Ko(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function os(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zp=/[\n"\\]/g;function qt(e){return e.replace(zp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vu(e,t,a,n,i,u,f,h){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Xu(e,f,Ht(t)):a!=null?Xu(e,f,Ht(a)):n!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ht(h):e.removeAttribute("name")}function Jo(e,t,a,n,i,u,f,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Qu(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=h?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Qu(e)}function Xu(e,t,a){t==="number"&&os(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Wn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Ht(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Fo(e,t,a){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ht(a):""}function Po(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(Ne(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Qu(e)}function In(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Rp=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 Wo(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Rp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Io(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Wo(e,i,n)}else for(var u in t)t.hasOwnProperty(u)&&Wo(e,u,t[u])}function Zu(e){if(e.indexOf("-")===-1)return!1;switch(e){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 Dp=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"]]),Up=/^[\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 fs(e){return Up.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ya(){}var Ku=null;function $u(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var el=null,tl=null;function ef(e){var t=Jn(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[bt]||null;if(!i)throw Error(c(90));Vu(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&$o(n)}break e;case"textarea":Fo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Wn(e,!!a.multiple,t,!1)}}}var Ju=!1;function tf(e,t,a){if(Ju)return e(t,a);Ju=!0;try{var n=e(t);return n}finally{if(Ju=!1,(el!==null||tl!==null)&&(Ws(),el&&(t=el,e=tl,tl=el=null,ef(t),e)))for(t=0;t<e.length;t++)ef(e[t])}}function Wl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[bt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(ga)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Fu=!1}var qa=null,Pu=null,ds=null;function af(){if(ds)return ds;var e,t=Pu,a=t.length,n,i="value"in qa?qa.value:qa.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===i[u-n];n++);return ds=i.slice(e,1<n?1-n:void 0)}function hs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ms(){return!0}function nf(){return!1}function xt(e){function t(a,n,i,u,f){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ms:nf,this.isPropagationStopped=nf,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ps=xt(bn),ei=T({},bn,{view:0,detail:0}),kp=xt(ei),Wu,Iu,ti,ys=T({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ti&&(ti&&e.type==="mousemove"?(Wu=e.screenX-ti.screenX,Iu=e.screenY-ti.screenY):Iu=Wu=0,ti=e),Wu)},movementY:function(e){return"movementY"in e?e.movementY:Iu}}),lf=xt(ys),Lp=T({},ys,{dataTransfer:0}),Hp=xt(Lp),qp=T({},ei,{relatedTarget:0}),er=xt(qp),Bp=T({},bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Gp=xt(Bp),Yp=T({},bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qp=xt(Yp),Vp=T({},bn,{data:0}),sf=xt(Vp),Xp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zp={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"},Kp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $p(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kp[e])?!!t[e]:!1}function tr(){return $p}var Jp=T({},ei,{key:function(e){if(e.key){var t=Xp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type==="keypress"?hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fp=xt(Jp),Pp=T({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=xt(Pp),Wp=T({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr}),Ip=xt(Wp),ey=T({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ty=xt(ey),ay=T({},ys,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ny=xt(ay),ly=T({},bn,{newState:0,oldState:0}),iy=xt(ly),sy=[9,13,27,32],ar=ga&&"CompositionEvent"in window,ai=null;ga&&"documentMode"in document&&(ai=document.documentMode);var uy=ga&&"TextEvent"in window&&!ai,rf=ga&&(!ar||ai&&8<ai&&11>=ai),cf=" ",of=!1;function ff(e,t){switch(e){case"keyup":return sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function ry(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function cy(e,t){if(al)return e==="compositionend"||!ar&&ff(e,t)?(e=af(),ds=Pu=qa=null,al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rf&&t.locale!=="ko"?null:t.data;default:return null}}var oy={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 hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oy[e.type]:t==="textarea"}function mf(e,t,a,n){el?tl?tl.push(n):tl=[n]:el=n,t=iu(t,"onChange"),0<t.length&&(a=new ps("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var ni=null,li=null;function fy(e){Fh(e,0)}function gs(e){var t=Pl(e);if($o(t))return e}function pf(e,t){if(e==="change")return t}var yf=!1;if(ga){var nr;if(ga){var lr="oninput"in document;if(!lr){var gf=document.createElement("div");gf.setAttribute("oninput","return;"),lr=typeof gf.oninput=="function"}nr=lr}else nr=!1;yf=nr&&(!document.documentMode||9<document.documentMode)}function vf(){ni&&(ni.detachEvent("onpropertychange",bf),li=ni=null)}function bf(e){if(e.propertyName==="value"&&gs(li)){var t=[];mf(t,li,e,$u(e)),tf(fy,t)}}function dy(e,t,a){e==="focusin"?(vf(),ni=t,li=a,ni.attachEvent("onpropertychange",bf)):e==="focusout"&&vf()}function hy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gs(li)}function my(e,t){if(e==="click")return gs(t)}function py(e,t){if(e==="input"||e==="change")return gs(t)}function yy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:yy;function ii(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!Xn.call(t,i)||!wt(e[i],t[i]))return!1}return!0}function xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sf(e,t){var a=xf(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xf(a)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=os(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=os(e.document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gy=ga&&"documentMode"in document&&11>=document.documentMode,nl=null,sr=null,si=null,ur=!1;function jf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ur||nl==null||nl!==os(n)||(n=nl,"selectionStart"in n&&ir(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),si&&ii(si,n)||(si=n,n=iu(sr,"onSelect"),0<n.length&&(t=new ps("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=nl)))}function xn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ll={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionrun:xn("Transition","TransitionRun"),transitionstart:xn("Transition","TransitionStart"),transitioncancel:xn("Transition","TransitionCancel"),transitionend:xn("Transition","TransitionEnd")},rr={},Af={};ga&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function Sn(e){if(rr[e])return rr[e];if(!ll[e])return e;var t=ll[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Af)return rr[e]=t[a];return e}var _f=Sn("animationend"),Nf=Sn("animationiteration"),Cf=Sn("animationstart"),vy=Sn("transitionrun"),by=Sn("transitionstart"),xy=Sn("transitioncancel"),wf=Sn("transitionend"),Of=new Map,cr="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(" ");cr.push("scrollEnd");function Wt(e,t){Of.set(e,t),vn(t,[e])}var vs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bt=[],il=0,or=0;function bs(){for(var e=il,t=or=il=0;t<e;){var a=Bt[t];Bt[t++]=null;var n=Bt[t];Bt[t++]=null;var i=Bt[t];Bt[t++]=null;var u=Bt[t];if(Bt[t++]=null,n!==null&&i!==null){var f=n.pending;f===null?i.next=i:(i.next=f.next,f.next=i),n.pending=i}u!==0&&Mf(a,i,u)}}function xs(e,t,a,n){Bt[il++]=e,Bt[il++]=t,Bt[il++]=a,Bt[il++]=n,or|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function fr(e,t,a,n){return xs(e,t,a,n),Ss(e)}function En(e,t){return xs(e,null,null,t),Ss(e)}function Mf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,n=u.alternate,n!==null&&(n.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Ct(a),e=u.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),u):null}function Ss(e){if(50<Ci)throw Ci=0,xc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var sl={};function Sy(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,a,n){return new Sy(e,t,a,n)}function dr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function va(e,t){var a=e.alternate;return a===null?(a=Ot(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Es(e,t,a,n,i,u){var f=0;if(n=e,typeof e=="function")dr(e)&&(f=1);else if(typeof e=="string")f=_g(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Ot(31,a,t,i),e.elementType=le,e.lanes=u,e;case O:return Tn(a.children,i,u,t);case Y:f=8,i|=24;break;case G:return e=Ot(12,a,t,i|2),e.elementType=G,e.lanes=u,e;case ne:return e=Ot(13,a,t,i),e.elementType=ne,e.lanes=u,e;case Q:return e=Ot(19,a,t,i),e.elementType=Q,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:f=10;break e;case W:f=9;break e;case V:f=11;break e;case F:f=14;break e;case he:f=16,n=null;break e}f=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=Ot(f,a,t,i),t.elementType=e,t.type=n,t.lanes=u,t}function Tn(e,t,a,n){return e=Ot(7,e,n,t),e.lanes=a,e}function hr(e,t,a){return e=Ot(6,e,null,t),e.lanes=a,e}function Rf(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function mr(e,t,a){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Df=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var a=Df.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Vn(t)},Df.set(e,t),t)}return{value:e,source:t,stack:Vn(t)}}var ul=[],rl=0,Ts=null,ui=0,Yt=[],Qt=0,Ba=null,sa=1,ua="";function ba(e,t){ul[rl++]=ui,ul[rl++]=Ts,Ts=e,ui=t}function Uf(e,t,a){Yt[Qt++]=sa,Yt[Qt++]=ua,Yt[Qt++]=Ba,Ba=e;var n=sa;e=ua;var i=32-Ct(n)-1;n&=~(1<<i),a+=1;var u=32-Ct(t)+i;if(30<u){var f=i-i%5;u=(n&(1<<f)-1).toString(32),n>>=f,i-=f,sa=1<<32-Ct(t)+i|a<<i|n,ua=u+e}else sa=1<<u|a<<i|n,ua=e}function pr(e){e.return!==null&&(ba(e,1),Uf(e,1,0))}function yr(e){for(;e===Ts;)Ts=ul[--rl],ul[rl]=null,ui=ul[--rl],ul[rl]=null;for(;e===Ba;)Ba=Yt[--Qt],Yt[Qt]=null,ua=Yt[--Qt],Yt[Qt]=null,sa=Yt[--Qt],Yt[Qt]=null}function kf(e,t){Yt[Qt++]=sa,Yt[Qt++]=ua,Yt[Qt++]=Ba,sa=t.id,ua=t.overflow,Ba=e}var rt=null,He=null,Te=!1,Ga=null,Vt=!1,gr=Error(c(519));function Ya(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ri(Gt(t,e)),gr}function Lf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ut]=e,t[bt]=n,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<Oi.length;a++)xe(Oi[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Jo(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Po(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||em(t.textContent,a)?(n.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),n.onScroll!=null&&xe("scroll",t),n.onScrollEnd!=null&&xe("scrollend",t),n.onClick!=null&&(t.onclick=ya),t=!0):t=!1,t||Ya(e,!0)}function Hf(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 31:case 13:Vt=!1;return;case 27:case 3:Vt=!0;return;default:rt=rt.return}}function cl(e){if(e!==rt)return!1;if(!Te)return Hf(e),Te=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Uc(e.type,e.memoizedProps)),a=!a),a&&He&&Ya(e),Hf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));He=cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));He=cm(e)}else t===27?(t=He,an(e.type)?(e=Bc,Bc=null,He=e):He=t):He=rt?Zt(e.stateNode.nextSibling):null;return!0}function jn(){He=rt=null,Te=!1}function vr(){var e=Ga;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Ga=null),e}function ri(e){Ga===null?Ga=[e]:Ga.push(e)}var br=S(null),An=null,xa=null;function Qa(e,t,a){K(br,t._currentValue),t._currentValue=a}function Sa(e){e._currentValue=br.current,D(br)}function xr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Sr(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var h=u;u=i;for(var x=0;x<t.length;x++)if(h.context===t[x]){u.lanes|=a,h=u.alternate,h!==null&&(h.lanes|=a),xr(u.return,a,e),n||(f=null);break e}u=h.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(c(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),xr(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function ol(e,t,a,n){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var h=i.type;wt(i.pendingProps.value,f.value)||(e!==null?e.push(h):e=[h])}}else if(i===ee.current){if(f=i.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ui):e=[Ui])}i=i.return}e!==null&&Sr(t,e,a,n),t.flags|=262144}function js(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _n(e){An=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return qf(An,e)}function As(e,t){return An===null&&_n(e),qf(e,t)}function qf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xa===null){if(e===null)throw Error(c(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return a}var Ey=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ty=l.unstable_scheduleCallback,jy=l.unstable_NormalPriority,Fe={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Er(){return{controller:new Ey,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&Ty(jy,function(){e.controller.abort()})}var oi=null,Tr=0,fl=0,dl=null;function Ay(e,t){if(oi===null){var a=oi=[];Tr=0,fl=_c(),dl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Tr++,t.then(Bf,Bf),t}function Bf(){if(--Tr===0&&oi!==null){dl!==null&&(dl.status="fulfilled");var e=oi;oi=null,fl=0,dl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _y(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var Gf=R.S;R.S=function(e,t){jh=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ay(e,t),Gf!==null&&Gf(e,t)};var Nn=S(null);function jr(){var e=Nn.current;return e!==null?e:Le.pooledCache}function _s(e,t){t===null?K(Nn,Nn.current):K(Nn,t.pool)}function Yf(){var e=jr();return e===null?null:{parent:Fe._currentValue,pool:e}}var hl=Error(c(460)),Ar=Error(c(474)),Ns=Error(c(542)),Cs={then:function(){}};function Qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ya,ya),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e;default:if(typeof t.status=="string")t.then(ya,ya);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e}throw wn=t,hl}}function Cn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wn=a,hl):a}}var wn=null;function Xf(){if(wn===null)throw Error(c(459));var e=wn;return wn=null,e}function Zf(e){if(e===hl||e===Ns)throw Error(c(483))}var ml=null,fi=0;function ws(e){var t=fi;return fi+=1,ml===null&&(ml=[]),Vf(ml,e,t)}function di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Os(e,t){throw t.$$typeof===z?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kf(e){function t(j,E){if(e){var _=j.deletions;_===null?(j.deletions=[E],j.flags|=16):_.push(E)}}function a(j,E){if(!e)return null;for(;E!==null;)t(j,E),E=E.sibling;return null}function n(j){for(var E=new Map;j!==null;)j.key!==null?E.set(j.key,j):E.set(j.index,j),j=j.sibling;return E}function i(j,E){return j=va(j,E),j.index=0,j.sibling=null,j}function u(j,E,_){return j.index=_,e?(_=j.alternate,_!==null?(_=_.index,_<E?(j.flags|=67108866,E):_):(j.flags|=67108866,E)):(j.flags|=1048576,E)}function f(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function h(j,E,_,L){return E===null||E.tag!==6?(E=hr(_,j.mode,L),E.return=j,E):(E=i(E,_),E.return=j,E)}function x(j,E,_,L){var ie=_.type;return ie===O?U(j,E,_.props.children,L,_.key):E!==null&&(E.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===he&&Cn(ie)===E.type)?(E=i(E,_.props),di(E,_),E.return=j,E):(E=Es(_.type,_.key,_.props,null,j.mode,L),di(E,_),E.return=j,E)}function N(j,E,_,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=mr(_,j.mode,L),E.return=j,E):(E=i(E,_.children||[]),E.return=j,E)}function U(j,E,_,L,ie){return E===null||E.tag!==7?(E=Tn(_,j.mode,L,ie),E.return=j,E):(E=i(E,_),E.return=j,E)}function B(j,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=hr(""+E,j.mode,_),E.return=j,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case q:return _=Es(E.type,E.key,E.props,null,j.mode,_),di(_,E),_.return=j,_;case X:return E=mr(E,j.mode,_),E.return=j,E;case he:return E=Cn(E),B(j,E,_)}if(Ne(E)||Ge(E))return E=Tn(E,j.mode,_,null),E.return=j,E;if(typeof E.then=="function")return B(j,ws(E),_);if(E.$$typeof===$)return B(j,As(j,E),_);Os(j,E)}return null}function w(j,E,_,L){var ie=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ie!==null?null:h(j,E,""+_,L);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case q:return _.key===ie?x(j,E,_,L):null;case X:return _.key===ie?N(j,E,_,L):null;case he:return _=Cn(_),w(j,E,_,L)}if(Ne(_)||Ge(_))return ie!==null?null:U(j,E,_,L,null);if(typeof _.then=="function")return w(j,E,ws(_),L);if(_.$$typeof===$)return w(j,E,As(j,_),L);Os(j,_)}return null}function M(j,E,_,L,ie){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return j=j.get(_)||null,h(E,j,""+L,ie);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case q:return j=j.get(L.key===null?_:L.key)||null,x(E,j,L,ie);case X:return j=j.get(L.key===null?_:L.key)||null,N(E,j,L,ie);case he:return L=Cn(L),M(j,E,_,L,ie)}if(Ne(L)||Ge(L))return j=j.get(_)||null,U(E,j,L,ie,null);if(typeof L.then=="function")return M(j,E,_,ws(L),ie);if(L.$$typeof===$)return M(j,E,_,As(E,L),ie);Os(E,L)}return null}function I(j,E,_,L){for(var ie=null,Ae=null,ae=E,ye=E=0,Ee=null;ae!==null&&ye<_.length;ye++){ae.index>ye?(Ee=ae,ae=null):Ee=ae.sibling;var _e=w(j,ae,_[ye],L);if(_e===null){ae===null&&(ae=Ee);break}e&&ae&&_e.alternate===null&&t(j,ae),E=u(_e,E,ye),Ae===null?ie=_e:Ae.sibling=_e,Ae=_e,ae=Ee}if(ye===_.length)return a(j,ae),Te&&ba(j,ye),ie;if(ae===null){for(;ye<_.length;ye++)ae=B(j,_[ye],L),ae!==null&&(E=u(ae,E,ye),Ae===null?ie=ae:Ae.sibling=ae,Ae=ae);return Te&&ba(j,ye),ie}for(ae=n(ae);ye<_.length;ye++)Ee=M(ae,j,ye,_[ye],L),Ee!==null&&(e&&Ee.alternate!==null&&ae.delete(Ee.key===null?ye:Ee.key),E=u(Ee,E,ye),Ae===null?ie=Ee:Ae.sibling=Ee,Ae=Ee);return e&&ae.forEach(function(rn){return t(j,rn)}),Te&&ba(j,ye),ie}function ue(j,E,_,L){if(_==null)throw Error(c(151));for(var ie=null,Ae=null,ae=E,ye=E=0,Ee=null,_e=_.next();ae!==null&&!_e.done;ye++,_e=_.next()){ae.index>ye?(Ee=ae,ae=null):Ee=ae.sibling;var rn=w(j,ae,_e.value,L);if(rn===null){ae===null&&(ae=Ee);break}e&&ae&&rn.alternate===null&&t(j,ae),E=u(rn,E,ye),Ae===null?ie=rn:Ae.sibling=rn,Ae=rn,ae=Ee}if(_e.done)return a(j,ae),Te&&ba(j,ye),ie;if(ae===null){for(;!_e.done;ye++,_e=_.next())_e=B(j,_e.value,L),_e!==null&&(E=u(_e,E,ye),Ae===null?ie=_e:Ae.sibling=_e,Ae=_e);return Te&&ba(j,ye),ie}for(ae=n(ae);!_e.done;ye++,_e=_.next())_e=M(ae,j,ye,_e.value,L),_e!==null&&(e&&_e.alternate!==null&&ae.delete(_e.key===null?ye:_e.key),E=u(_e,E,ye),Ae===null?ie=_e:Ae.sibling=_e,Ae=_e);return e&&ae.forEach(function(Lg){return t(j,Lg)}),Te&&ba(j,ye),ie}function De(j,E,_,L){if(typeof _=="object"&&_!==null&&_.type===O&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case q:e:{for(var ie=_.key;E!==null;){if(E.key===ie){if(ie=_.type,ie===O){if(E.tag===7){a(j,E.sibling),L=i(E,_.props.children),L.return=j,j=L;break e}}else if(E.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===he&&Cn(ie)===E.type){a(j,E.sibling),L=i(E,_.props),di(L,_),L.return=j,j=L;break e}a(j,E);break}else t(j,E);E=E.sibling}_.type===O?(L=Tn(_.props.children,j.mode,L,_.key),L.return=j,j=L):(L=Es(_.type,_.key,_.props,null,j.mode,L),di(L,_),L.return=j,j=L)}return f(j);case X:e:{for(ie=_.key;E!==null;){if(E.key===ie)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){a(j,E.sibling),L=i(E,_.children||[]),L.return=j,j=L;break e}else{a(j,E);break}else t(j,E);E=E.sibling}L=mr(_,j.mode,L),L.return=j,j=L}return f(j);case he:return _=Cn(_),De(j,E,_,L)}if(Ne(_))return I(j,E,_,L);if(Ge(_)){if(ie=Ge(_),typeof ie!="function")throw Error(c(150));return _=ie.call(_),ue(j,E,_,L)}if(typeof _.then=="function")return De(j,E,ws(_),L);if(_.$$typeof===$)return De(j,E,As(j,_),L);Os(j,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(a(j,E.sibling),L=i(E,_),L.return=j,j=L):(a(j,E),L=hr(_,j.mode,L),L.return=j,j=L),f(j)):a(j,E)}return function(j,E,_,L){try{fi=0;var ie=De(j,E,_,L);return ml=null,ie}catch(ae){if(ae===hl||ae===Ns)throw ae;var Ae=Ot(29,ae,null,j.mode);return Ae.lanes=L,Ae.return=j,Ae}finally{}}}var On=Kf(!0),$f=Kf(!1),Va=!1;function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Ss(e),Mf(e,null,a),t}return xs(e,n,t,a),Ss(e)}function hi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ho(e,a)}}function Cr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var wr=!1;function mi(){if(wr){var e=dl;if(e!==null)throw e}}function pi(e,t,a,n){wr=!1;var i=e.updateQueue;Va=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var x=h,N=x.next;x.next=null,f===null?u=N:f.next=N,f=x;var U=e.alternate;U!==null&&(U=U.updateQueue,h=U.lastBaseUpdate,h!==f&&(h===null?U.firstBaseUpdate=N:h.next=N,U.lastBaseUpdate=x))}if(u!==null){var B=i.baseState;f=0,U=N=x=null,h=u;do{var w=h.lane&-536870913,M=w!==h.lane;if(M?(Se&w)===w:(n&w)===w){w!==0&&w===fl&&(wr=!0),U!==null&&(U=U.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var I=e,ue=h;w=t;var De=a;switch(ue.tag){case 1:if(I=ue.payload,typeof I=="function"){B=I.call(De,B,w);break e}B=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ue.payload,w=typeof I=="function"?I.call(De,B,w):I,w==null)break e;B=T({},B,w);break e;case 2:Va=!0}}w=h.callback,w!==null&&(e.flags|=64,M&&(e.flags|=8192),M=i.callbacks,M===null?i.callbacks=[w]:M.push(w))}else M={lane:w,tag:h.tag,payload:h.payload,callback:h.callback,next:null},U===null?(N=U=M,x=B):U=U.next=M,f|=w;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;M=h,h=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);U===null&&(x=B),i.baseState=x,i.firstBaseUpdate=N,i.lastBaseUpdate=U,u===null&&(i.shared.lanes=0),Pa|=f,e.lanes=f,e.memoizedState=B}}function Jf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Ff(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jf(a[e],t)}var pl=S(null),Ms=S(0);function Pf(e,t){e=Oa,K(Ms,e),K(pl,t),Oa=e|t.baseLanes}function Or(){K(Ms,Oa),K(pl,pl.current)}function Mr(){Oa=Ms.current,D(pl),D(Ms)}var Mt=S(null),Xt=null;function Ka(e){var t=e.alternate;K($e,$e.current&1),K(Mt,e),Xt===null&&(t===null||pl.current!==null||t.memoizedState!==null)&&(Xt=e)}function zr(e){K($e,$e.current),K(Mt,e),Xt===null&&(Xt=e)}function Wf(e){e.tag===22?(K($e,$e.current),K(Mt,e),Xt===null&&(Xt=e)):$a()}function $a(){K($e,$e.current),K(Mt,Mt.current)}function zt(e){D(Mt),Xt===e&&(Xt=null),D($e)}var $e=S(0);function zs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hc(a)||qc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ea=0,pe=null,ze=null,Pe=null,Rs=!1,yl=!1,Mn=!1,Ds=0,yi=0,gl=null,Ny=0;function Xe(){throw Error(c(321))}function Rr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!wt(e[a],t[a]))return!1;return!0}function Dr(e,t,a,n,i,u){return Ea=u,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Ud:Jr,Mn=!1,u=a(n,i),Mn=!1,yl&&(u=ed(t,a,n,i)),If(e),u}function If(e){R.H=bi;var t=ze!==null&&ze.next!==null;if(Ea=0,Pe=ze=pe=null,Rs=!1,yi=0,gl=null,t)throw Error(c(300));e===null||We||(e=e.dependencies,e!==null&&js(e)&&(We=!0))}function ed(e,t,a,n){pe=e;var i=0;do{if(yl&&(gl=null),yi=0,yl=!1,25<=i)throw Error(c(301));if(i+=1,Pe=ze=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=kd,u=t(a,n)}while(yl);return u}function Cy(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?gi(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(pe.flags|=1024),t}function Ur(){var e=Ds!==0;return Ds=0,e}function kr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Lr(e){if(Rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rs=!1}Ea=0,Pe=ze=pe=null,yl=!1,yi=Ds=0,gl=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?pe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Je(){if(ze===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Pe===null?pe.memoizedState:Pe.next;if(t!==null)Pe=t,ze=e;else{if(e===null)throw pe.alternate===null?Error(c(467)):Error(c(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Pe===null?pe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function Us(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(e){var t=yi;return yi+=1,gl===null&&(gl=[]),e=Vf(gl,e,t),t=pe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Ud:Jr),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gi(e);if(e.$$typeof===$)return ct(e)}throw Error(c(438,String(e)))}function Hr(e){var t=null,a=pe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=pe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Us(),pe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Be;return t.index++,a}function Ta(e,t){return typeof t=="function"?t(e):t}function Ls(e){var t=Je();return qr(t,ze,e)}function qr(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var i=e.baseQueue,u=n.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,n.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var h=f=null,x=null,N=t,U=!1;do{var B=N.lane&-536870913;if(B!==N.lane?(Se&B)===B:(Ea&B)===B){var w=N.revertLane;if(w===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),B===fl&&(U=!0);else if((Ea&w)===w){N=N.next,w===fl&&(U=!0);continue}else B={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(h=x=B,f=u):x=x.next=B,pe.lanes|=w,Pa|=w;B=N.action,Mn&&a(u,B),u=N.hasEagerState?N.eagerState:a(u,B)}else w={lane:B,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(h=x=w,f=u):x=x.next=w,pe.lanes|=B,Pa|=B;N=N.next}while(N!==null&&N!==t);if(x===null?f=u:x.next=h,!wt(u,e.memoizedState)&&(We=!0,U&&(a=dl,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=x,n.lastRenderedState=u}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Br(e){var t=Je(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);wt(u,t.memoizedState)||(We=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,n]}function td(e,t,a){var n=pe,i=Je(),u=Te;if(u){if(a===void 0)throw Error(c(407));a=a()}else a=t();var f=!wt((ze||i).memoizedState,a);if(f&&(i.memoizedState=a,We=!0),i=i.queue,Qr(ld.bind(null,n,i,e),[e]),i.getSnapshot!==t||f||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,vl(9,{destroy:void 0},nd.bind(null,n,i,a,t),null),Le===null)throw Error(c(349));u||(Ea&127)!==0||ad(n,t,a)}return a}function ad(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=pe.updateQueue,t===null?(t=Us(),pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nd(e,t,a,n){t.value=a,t.getSnapshot=n,id(t)&&sd(e)}function ld(e,t,a){return a(function(){id(t)&&sd(e)})}function id(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!wt(e,a)}catch{return!0}}function sd(e){var t=En(e,2);t!==null&&At(t,e,2)}function Gr(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Mn){tt(!0);try{a()}finally{tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t}function ud(e,t,a,n){return e.baseState=a,qr(e,ze,typeof n=="function"?n:Ta)}function wy(e,t,a,n,i){if(Bs(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?a(!0):u.isTransition=!1,n(u),a=t.pending,a===null?(u.next=t.pending=u,rd(t,u)):(u.next=a.next,t.pending=a.next=u)}}function rd(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var u=R.T,f={};R.T=f;try{var h=a(i,n),x=R.S;x!==null&&x(f,h),cd(e,t,h)}catch(N){Yr(e,t,N)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=a(i,n),cd(e,t,u)}catch(N){Yr(e,t,N)}}function cd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){od(e,t,n)},function(n){return Yr(e,t,n)}):od(e,t,a)}function od(e,t,a){t.status="fulfilled",t.value=a,fd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,rd(e,a)))}function Yr(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,fd(t),t=t.next;while(t!==n)}e.action=null}function fd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dd(e,t){return t}function hd(e,t){if(Te){var a=Le.formState;if(a!==null){e:{var n=pe;if(Te){if(He){t:{for(var i=He,u=Vt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Zt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){He=Zt(i.nextSibling),n=i.data==="F!";break e}}Ya(n)}n=!1}n&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dd,lastRenderedState:t},a.queue=n,a=zd.bind(null,pe,n),n.dispatch=a,n=Gr(!1),u=$r.bind(null,pe,!1,n.queue),n=gt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=wy.bind(null,pe,i,u,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function md(e){var t=Je();return pd(t,ze,e)}function pd(e,t,a){if(t=qr(e,t,dd)[0],e=Ls(Ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=gi(t)}catch(f){throw f===hl?Ns:f}else n=t;t=Je();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(pe.flags|=2048,vl(9,{destroy:void 0},Oy.bind(null,i,a),null)),[n,u,e]}function Oy(e,t){e.action=t}function yd(e){var t=Je(),a=ze;if(a!==null)return pd(t,a,e);Je(),t=t.memoizedState,a=Je();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function vl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=pe.updateQueue,t===null&&(t=Us(),pe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function gd(){return Je().memoizedState}function Hs(e,t,a,n){var i=gt();pe.flags|=e,i.memoizedState=vl(1|t,{destroy:void 0},a,n===void 0?null:n)}function qs(e,t,a,n){var i=Je();n=n===void 0?null:n;var u=i.memoizedState.inst;ze!==null&&n!==null&&Rr(n,ze.memoizedState.deps)?i.memoizedState=vl(t,u,a,n):(pe.flags|=e,i.memoizedState=vl(1|t,u,a,n))}function vd(e,t){Hs(8390656,8,e,t)}function Qr(e,t){qs(2048,8,e,t)}function My(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=Us(),pe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function bd(e){var t=Je().memoizedState;return My({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function xd(e,t){return qs(4,2,e,t)}function Sd(e,t){return qs(4,4,e,t)}function Ed(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Td(e,t,a){a=a!=null?a.concat([e]):null,qs(4,4,Ed.bind(null,t,e),a)}function Vr(){}function jd(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Rr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Ad(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Rr(t,n[1]))return n[0];if(n=e(),Mn){tt(!0);try{e()}finally{tt(!1)}}return a.memoizedState=[n,t],n}function Xr(e,t,a){return a===void 0||(Ea&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=_h(),pe.lanes|=e,Pa|=e,a)}function _d(e,t,a,n){return wt(a,t)?a:pl.current!==null?(e=Xr(e,a,n),wt(e,t)||(We=!0),e):(Ea&42)===0||(Ea&1073741824)!==0&&(Se&261930)===0?(We=!0,e.memoizedState=a):(e=_h(),pe.lanes|=e,Pa|=e,t)}function Nd(e,t,a,n,i){var u=Z.p;Z.p=u!==0&&8>u?u:8;var f=R.T,h={};R.T=h,$r(e,!1,t,a);try{var x=i(),N=R.S;if(N!==null&&N(h,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var U=_y(x,n);vi(e,t,U,Ut(e))}else vi(e,t,n,Ut(e))}catch(B){vi(e,t,{then:function(){},status:"rejected",reason:B},Ut())}finally{Z.p=u,f!==null&&h.types!==null&&(f.types=h.types),R.T=f}}function zy(){}function Zr(e,t,a,n){if(e.tag!==5)throw Error(c(476));var i=Cd(e).queue;Nd(e,i,t,J,a===null?zy:function(){return wd(e),a(n)})}function Cd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wd(e){var t=Cd(e);t.next===null&&(t=e.alternate.memoizedState),vi(e,t.next.queue,{},Ut())}function Kr(){return ct(Ui)}function Od(){return Je().memoizedState}function Md(){return Je().memoizedState}function Ry(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ut();e=Xa(a);var n=Za(t,e,a);n!==null&&(At(n,t,a),hi(n,t,a)),t={cache:Er()},e.payload=t;return}t=t.return}}function Dy(e,t,a){var n=Ut();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Rd(t,a):(a=fr(e,t,a,n),a!==null&&(At(a,e,n),Dd(a,t,n)))}function zd(e,t,a){var n=Ut();vi(e,t,a,n)}function vi(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Rd(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,h=u(f,a);if(i.hasEagerState=!0,i.eagerState=h,wt(h,f))return xs(e,t,i,0),Le===null&&bs(),!1}catch{}finally{}if(a=fr(e,t,i,n),a!==null)return At(a,e,n),Dd(a,t,n),!0}return!1}function $r(e,t,a,n){if(n={lane:2,revertLane:_c(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(c(479))}else t=fr(e,a,n,2),t!==null&&At(t,e,2)}function Bs(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Rd(e,t){yl=Rs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Dd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ho(e,a)}}var bi={readContext:ct,use:ks,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};bi.useEffectEvent=Xe;var Ud={readContext:ct,use:ks,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:vd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Hs(4194308,4,Ed.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){Hs(4,2,e,t)},useMemo:function(e,t){var a=gt();t=t===void 0?null:t;var n=e();if(Mn){tt(!0);try{e()}finally{tt(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=gt();if(a!==void 0){var i=a(t);if(Mn){tt(!0);try{a(t)}finally{tt(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Dy.bind(null,pe,e),[n.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gr(e);var t=e.queue,a=zd.bind(null,pe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vr,useDeferredValue:function(e,t){var a=gt();return Xr(a,e,t)},useTransition:function(){var e=Gr(!1);return e=Nd.bind(null,pe,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=pe,i=gt();if(Te){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),Le===null)throw Error(c(349));(Se&127)!==0||ad(n,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,vd(ld.bind(null,n,u,e),[e]),n.flags|=2048,vl(9,{destroy:void 0},nd.bind(null,n,u,a,t),null),a},useId:function(){var e=gt(),t=Le.identifierPrefix;if(Te){var a=ua,n=sa;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ds++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Ny++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Kr,useFormState:hd,useActionState:hd,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=$r.bind(null,pe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Hr,useCacheRefresh:function(){return gt().memoizedState=Ry.bind(null,pe)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},Jr={readContext:ct,use:ks,useCallback:jd,useContext:ct,useEffect:Qr,useImperativeHandle:Td,useInsertionEffect:xd,useLayoutEffect:Sd,useMemo:Ad,useReducer:Ls,useRef:gd,useState:function(){return Ls(Ta)},useDebugValue:Vr,useDeferredValue:function(e,t){var a=Je();return _d(a,ze.memoizedState,e,t)},useTransition:function(){var e=Ls(Ta)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:td,useId:Od,useHostTransitionStatus:Kr,useFormState:md,useActionState:md,useOptimistic:function(e,t){var a=Je();return ud(a,ze,e,t)},useMemoCache:Hr,useCacheRefresh:Md};Jr.useEffectEvent=bd;var kd={readContext:ct,use:ks,useCallback:jd,useContext:ct,useEffect:Qr,useImperativeHandle:Td,useInsertionEffect:xd,useLayoutEffect:Sd,useMemo:Ad,useReducer:Br,useRef:gd,useState:function(){return Br(Ta)},useDebugValue:Vr,useDeferredValue:function(e,t){var a=Je();return ze===null?Xr(a,e,t):_d(a,ze.memoizedState,e,t)},useTransition:function(){var e=Br(Ta)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:td,useId:Od,useHostTransitionStatus:Kr,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var a=Je();return ze!==null?ud(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hr,useCacheRefresh:Md};kd.useEffectEvent=bd;function Fr(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:T({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Pr={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ut(),i=Xa(n);i.payload=t,a!=null&&(i.callback=a),t=Za(e,i,n),t!==null&&(At(t,e,n),hi(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ut(),i=Xa(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Za(e,i,n),t!==null&&(At(t,e,n),hi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ut(),n=Xa(a);n.tag=2,t!=null&&(n.callback=t),t=Za(e,n,a),t!==null&&(At(t,e,a),hi(t,e,a))}};function Ld(e,t,a,n,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,f):t.prototype&&t.prototype.isPureReactComponent?!ii(a,n)||!ii(i,u):!0}function Hd(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Pr.enqueueReplaceState(t,t.state,null)}function zn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=T({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function qd(e){vs(e)}function Bd(e){console.error(e)}function Gd(e){vs(e)}function Gs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Yd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Wr(e,t,a){return a=Xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Gs(e,t)},a}function Qd(e){return e=Xa(e),e.tag=3,e}function Vd(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=n.value;e.payload=function(){return i(u)},e.callback=function(){Yd(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Yd(t,a,n),typeof i!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function Uy(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ol(t,a,i,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Xt===null?Is():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Cs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Tc(e,n,i)),!1;case 22:return a.flags|=65536,n===Cs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Tc(e,n,i)),!1}throw Error(c(435,a.tag))}return Tc(e,n,i),Is(),!1}if(Te)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==gr&&(e=Error(c(422),{cause:n}),ri(Gt(e,a)))):(n!==gr&&(t=Error(c(423),{cause:n}),ri(Gt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Gt(n,a),i=Wr(e.stateNode,n,i),Cr(e,i),Ze!==4&&(Ze=2)),!1;var u=Error(c(520),{cause:n});if(u=Gt(u,a),Ni===null?Ni=[u]:Ni.push(u),Ze!==4&&(Ze=2),t===null)return!0;n=Gt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Wr(a.stateNode,n,e),Cr(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wa===null||!Wa.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Qd(i),Vd(i,e,a,n),Cr(a,i),!1}a=a.return}while(a!==null);return!1}var Ir=Error(c(461)),We=!1;function ot(e,t,a,n){t.child=e===null?$f(t,null,a,n):On(t,e.child,a,n)}function Xd(e,t,a,n,i){a=a.render;var u=t.ref;if("ref"in n){var f={};for(var h in n)h!=="ref"&&(f[h]=n[h])}else f=n;return _n(t),n=Dr(e,t,a,f,u,i),h=Ur(),e!==null&&!We?(kr(e,t,i),ja(e,t,i)):(Te&&h&&pr(t),t.flags|=1,ot(e,t,n,i),t.child)}function Zd(e,t,a,n,i){if(e===null){var u=a.type;return typeof u=="function"&&!dr(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Kd(e,t,u,n,i)):(e=Es(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!uc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:ii,a(f,n)&&e.ref===t.ref)return ja(e,t,i)}return t.flags|=1,e=va(u,n),e.ref=t.ref,e.return=t,t.child=e}function Kd(e,t,a,n,i){if(e!==null){var u=e.memoizedProps;if(ii(u,n)&&e.ref===t.ref)if(We=!1,t.pendingProps=n=u,uc(e,i))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,ja(e,t,i)}return ec(e,t,a,n,i)}function $d(e,t,a,n){var i=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~u}else n=0,t.child=null;return Jd(e,t,u,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_s(t,u!==null?u.cachePool:null),u!==null?Pf(t,u):Or(),Wf(t);else return n=t.lanes=536870912,Jd(e,t,u!==null?u.baseLanes|a:a,a,n)}else u!==null?(_s(t,u.cachePool),Pf(t,u),$a(),t.memoizedState=null):(e!==null&&_s(t,null),Or(),$a());return ot(e,t,i,a),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jd(e,t,a,n,i){var u=jr();return u=u===null?null:{parent:Fe._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&_s(t,null),Or(),Wf(t),e!==null&&ol(e,t,n,!0),t.childLanes=i,null}function Ys(e,t){return t=Vs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fd(e,t,a){return On(t,e.child,null,a),e=Ys(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function ky(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(n.mode==="hidden")return e=Ys(t,n),t.lanes=536870912,xi(null,e);if(zr(t),(e=He)?(e=rm(e,Vt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:sa,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=Rf(e),a.return=t,t.child=a,rt=t,He=null)):e=null,e===null)throw Ya(t);return t.lanes=536870912,null}return Ys(t,n)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(zr(t),i)if(t.flags&256)t.flags&=-257,t=Fd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(We||ol(e,t,a,!1),i=(a&e.childLanes)!==0,We||i){if(n=Le,n!==null&&(f=qo(n,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,En(e,f),At(n,e,f),Ir;Is(),t=Fd(e,t,a)}else e=u.treeContext,He=Zt(f.nextSibling),rt=t,Te=!0,Ga=null,Vt=!1,e!==null&&kf(t,e),t=Ys(t,n),t.flags|=4096;return t}return e=va(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ec(e,t,a,n,i){return _n(t),a=Dr(e,t,a,n,void 0,i),n=Ur(),e!==null&&!We?(kr(e,t,i),ja(e,t,i)):(Te&&n&&pr(t),t.flags|=1,ot(e,t,a,i),t.child)}function Pd(e,t,a,n,i,u){return _n(t),t.updateQueue=null,a=ed(t,n,a,i),If(e),n=Ur(),e!==null&&!We?(kr(e,t,u),ja(e,t,u)):(Te&&n&&pr(t),t.flags|=1,ot(e,t,a,u),t.child)}function Wd(e,t,a,n,i){if(_n(t),t.stateNode===null){var u=sl,f=a.contextType;typeof f=="object"&&f!==null&&(u=ct(f)),u=new a(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Pr,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},_r(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?ct(f):sl,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Fr(t,a,f,n),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Pr.enqueueReplaceState(u,u.state,null),pi(t,n,u,i),mi(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var h=t.memoizedProps,x=zn(a,h);u.props=x;var N=u.context,U=a.contextType;f=sl,typeof U=="object"&&U!==null&&(f=ct(U));var B=a.getDerivedStateFromProps;U=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||N!==f)&&Hd(t,u,n,f),Va=!1;var w=t.memoizedState;u.state=w,pi(t,n,u,i),mi(),N=t.memoizedState,h||w!==N||Va?(typeof B=="function"&&(Fr(t,a,B,n),N=t.memoizedState),(x=Va||Ld(t,a,x,n,w,N,f))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=N),u.props=n,u.state=N,u.context=f,n=x):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,Nr(e,t),f=t.memoizedProps,U=zn(a,f),u.props=U,B=t.pendingProps,w=u.context,N=a.contextType,x=sl,typeof N=="object"&&N!==null&&(x=ct(N)),h=a.getDerivedStateFromProps,(N=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==B||w!==x)&&Hd(t,u,n,x),Va=!1,w=t.memoizedState,u.state=w,pi(t,n,u,i),mi();var M=t.memoizedState;f!==B||w!==M||Va||e!==null&&e.dependencies!==null&&js(e.dependencies)?(typeof h=="function"&&(Fr(t,a,h,n),M=t.memoizedState),(U=Va||Ld(t,a,U,n,w,M,x)||e!==null&&e.dependencies!==null&&js(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,M,x),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,M,x)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=M),u.props=n,u.state=M,u.context=x,n=U):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,Qs(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=On(t,e.child,null,i),t.child=On(t,null,a,i)):ot(e,t,a,i),t.memoizedState=u.state,e=t.child):e=ja(e,t,i),e}function Id(e,t,a,n){return jn(),t.flags|=256,ot(e,t,a,n),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:Yf()}}function nc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Dt),e}function eh(e,t,a){var n=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(i?Ka(t):$a(),(e=He)?(e=rm(e,Vt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:sa,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=Rf(e),a.return=t,t.child=a,rt=t,He=null)):e=null,e===null)throw Ya(t);return qc(e)?t.lanes=32:t.lanes=536870912,null}var h=n.children;return n=n.fallback,i?($a(),i=t.mode,h=Vs({mode:"hidden",children:h},i),n=Tn(n,i,a,null),h.return=t,n.return=t,h.sibling=n,t.child=h,n=t.child,n.memoizedState=ac(a),n.childLanes=nc(e,f,a),t.memoizedState=tc,xi(null,n)):(Ka(t),lc(t,h))}var x=e.memoizedState;if(x!==null&&(h=x.dehydrated,h!==null)){if(u)t.flags&256?(Ka(t),t.flags&=-257,t=ic(e,t,a)):t.memoizedState!==null?($a(),t.child=e.child,t.flags|=128,t=null):($a(),h=n.fallback,i=t.mode,n=Vs({mode:"visible",children:n.children},i),h=Tn(h,i,a,null),h.flags|=2,n.return=t,h.return=t,n.sibling=h,t.child=n,On(t,e.child,null,a),n=t.child,n.memoizedState=ac(a),n.childLanes=nc(e,f,a),t.memoizedState=tc,t=xi(null,n));else if(Ka(t),qc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var N=f.dgst;f=N,n=Error(c(419)),n.stack="",n.digest=f,ri({value:n,source:null,stack:null}),t=ic(e,t,a)}else if(We||ol(e,t,a,!1),f=(a&e.childLanes)!==0,We||f){if(f=Le,f!==null&&(n=qo(f,a),n!==0&&n!==x.retryLane))throw x.retryLane=n,En(e,n),At(f,e,n),Ir;Hc(h)||Is(),t=ic(e,t,a)}else Hc(h)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,He=Zt(h.nextSibling),rt=t,Te=!0,Ga=null,Vt=!1,e!==null&&kf(t,e),t=lc(t,n.children),t.flags|=4096);return t}return i?($a(),h=n.fallback,i=t.mode,x=e.child,N=x.sibling,n=va(x,{mode:"hidden",children:n.children}),n.subtreeFlags=x.subtreeFlags&65011712,N!==null?h=va(N,h):(h=Tn(h,i,a,null),h.flags|=2),h.return=t,n.return=t,n.sibling=h,t.child=n,xi(null,n),n=t.child,h=e.child.memoizedState,h===null?h=ac(a):(i=h.cachePool,i!==null?(x=Fe._currentValue,i=i.parent!==x?{parent:x,pool:x}:i):i=Yf(),h={baseLanes:h.baseLanes|a,cachePool:i}),n.memoizedState=h,n.childLanes=nc(e,f,a),t.memoizedState=tc,xi(e.child,n)):(Ka(t),a=e.child,e=a.sibling,a=va(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function lc(e,t){return t=Vs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vs(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function ic(e,t,a){return On(t,e.child,null,a),e=lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function th(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),xr(e.return,t,a)}function sc(e,t,a,n,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function ah(e,t,a){var n=t.pendingProps,i=n.revealOrder,u=n.tail;n=n.children;var f=$e.current,h=(f&2)!==0;if(h?(f=f&1|2,t.flags|=128):f&=1,K($e,f),ot(e,t,n,a),n=Te?ui:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&th(e,a,t);else if(e.tag===19)th(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&zs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),sc(t,!1,i,a,u,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zs(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}sc(t,!0,a,null,u,n);break;case"together":sc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ja(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ol(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=va(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=va(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&js(e)))}function Ly(e,t,a){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),Qa(t,Fe,e.memoizedState.cache),jn();break;case 27:case 5:la(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:Qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ka(t),t.flags|=128,null):(a&t.child.childLanes)!==0?eh(e,t,a):(Ka(t),e=ja(e,t,a),e!==null?e.sibling:null);Ka(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ol(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return ah(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K($e,$e.current),n)break;return null;case 22:return t.lanes=0,$d(e,t,a,t.pendingProps);case 24:Qa(t,Fe,e.memoizedState.cache)}return ja(e,t,a)}function nh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!uc(e,a)&&(t.flags&128)===0)return We=!1,Ly(e,t,a);We=(e.flags&131072)!==0}else We=!1,Te&&(t.flags&1048576)!==0&&Uf(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Cn(t.elementType),t.type=e,typeof e=="function")dr(e)?(n=zn(e,n),t.tag=1,t=Wd(null,t,e,n,a)):(t.tag=0,t=ec(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=Xd(null,t,e,n,a);break e}else if(i===F){t.tag=14,t=Zd(null,t,e,n,a);break e}}throw t=we(e)||e,Error(c(306,t,""))}}return t;case 0:return ec(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=zn(n,t.pendingProps),Wd(e,t,n,i,a);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var u=t.memoizedState;i=u.element,Nr(e,t),pi(t,n,null,a);var f=t.memoizedState;if(n=f.cache,Qa(t,Fe,n),n!==u.cache&&Sr(t,[Fe],a,!0),mi(),n=f.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Id(e,t,n,a);break e}else if(n!==i){i=Gt(Error(c(424)),t),ri(i),t=Id(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Zt(e.firstChild),rt=t,Te=!0,Ga=null,Vt=!0,a=$f(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(jn(),n===i){t=ja(e,t,a);break e}ot(e,t,n,a)}t=t.child}return t;case 26:return Qs(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:Te||(a=t.type,e=t.pendingProps,n=su(oe.current).createElement(a),n[ut]=t,n[bt]=e,ft(n,a,e),lt(n),t.stateNode=n):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return la(t),e===null&&Te&&(n=t.stateNode=fm(t.type,t.pendingProps,oe.current),rt=t,Vt=!0,i=He,an(t.type)?(Bc=i,He=Zt(n.firstChild)):He=i),ot(e,t,t.pendingProps.children,a),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((i=n=He)&&(n=hg(n,t.type,t.pendingProps,Vt),n!==null?(t.stateNode=n,rt=t,He=Zt(n.firstChild),Vt=!1,i=!0):i=!1),i||Ya(t)),la(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,n=u.children,Uc(i,u)?n=null:f!==null&&Uc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Dr(e,t,Cy,null,null,a),Ui._currentValue=i),Qs(e,t),ot(e,t,n,a),t.child;case 6:return e===null&&Te&&((e=a=He)&&(a=mg(a,t.pendingProps,Vt),a!==null?(t.stateNode=a,rt=t,He=null,e=!0):e=!1),e||Ya(t)),null;case 13:return eh(e,t,a);case 4:return et(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=On(t,null,n,a):ot(e,t,n,a),t.child;case 11:return Xd(e,t,t.type,t.pendingProps,a);case 7:return ot(e,t,t.pendingProps,a),t.child;case 8:return ot(e,t,t.pendingProps.children,a),t.child;case 12:return ot(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Qa(t,t.type,n.value),ot(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,_n(t),i=ct(i),n=n(i),t.flags|=1,ot(e,t,n,a),t.child;case 14:return Zd(e,t,t.type,t.pendingProps,a);case 15:return Kd(e,t,t.type,t.pendingProps,a);case 19:return ah(e,t,a);case 31:return ky(e,t,a);case 22:return $d(e,t,a,t.pendingProps);case 24:return _n(t),n=ct(Fe),e===null?(i=jr(),i===null&&(i=Le,u=Er(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:n,cache:i},_r(t),Qa(t,Fe,i)):((e.lanes&a)!==0&&(Nr(e,t),pi(t,null,null,a),mi()),i=e.memoizedState,u=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Qa(t,Fe,n)):(n=u.cache,Qa(t,Fe,n),n!==i.cache&&Sr(t,[Fe],a,!0))),ot(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Aa(e){e.flags|=4}function rc(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Oh())e.flags|=8192;else throw wn=Cs,Ar}else e.flags&=-16777217}function lh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(Oh())e.flags|=8192;else throw wn=Cs,Ar}function Xs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ko():536870912,e.lanes|=t,El|=t)}function Si(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Hy(e,t,a){var n=t.pendingProps;switch(yr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sa(Fe),ke(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(cl(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,vr())),qe(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(qe(t),lh(t,u)):(qe(t),rc(t,i,null,n,a))):u?u!==e.memoizedState?(Aa(t),qe(t),lh(t,u)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Aa(t),qe(t),rc(t,i,e,n,a)),null;case 27:if(Ft(t),a=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return qe(t),null}e=P.current,cl(t)?Lf(t):(e=fm(i,n,a),t.stateNode=e,Aa(t))}return qe(t),null;case 5:if(Ft(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return qe(t),null}if(u=P.current,cl(t))Lf(t);else{var f=su(oe.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?f.createElement(i,{is:n.is}):f.createElement(i)}}u[ut]=t,u[bt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(ft(u,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Aa(t)}}return qe(t),rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,cl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=rt,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||em(e.nodeValue,a)),e||Ya(t,!0)}else e=su(e).createTextNode(n),e[ut]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=cl(t),a!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ut]=t}else jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return qe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=cl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[ut]=t}else jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Xs(t,t.updateQueue),qe(t),null);case 4:return ke(),e===null&&Oc(t.stateNode.containerInfo),qe(t),null;case 10:return Sa(t.type),qe(t),null;case 19:if(D($e),n=t.memoizedState,n===null)return qe(t),null;if(i=(t.flags&128)!==0,u=n.rendering,u===null)if(i)Si(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=zs(e),u!==null){for(t.flags|=128,Si(n,!1),e=u.updateQueue,t.updateQueue=e,Xs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zf(a,e),a=a.sibling;return K($e,$e.current&1|2),Te&&ba(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ht()>Fs&&(t.flags|=128,i=!0,Si(n,!1),t.lanes=4194304)}else{if(!i)if(e=zs(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Xs(t,e),Si(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!Te)return qe(t),null}else 2*ht()-n.renderingStartTime>Fs&&a!==536870912&&(t.flags|=128,i=!0,Si(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ht(),e.sibling=null,a=$e.current,K($e,i?a&1|2:a&1),Te&&ba(t,n.treeForkCount),e):(qe(t),null);case 22:case 23:return zt(t),Mr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&Xs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&D(Nn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sa(Fe),qe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function qy(e,t){switch(yr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa(Fe),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ft(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D($e),null;case 4:return ke(),null;case 10:return Sa(t.type),null;case 22:case 23:return zt(t),Mr(),e!==null&&D(Nn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sa(Fe),null;case 25:return null;default:return null}}function ih(e,t){switch(yr(t),t.tag){case 3:Sa(Fe),ke();break;case 26:case 27:case 5:Ft(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:D($e);break;case 10:Sa(t.type);break;case 22:case 23:zt(t),Mr(),e!==null&&D(Nn);break;case 24:Sa(Fe)}}function Ei(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var u=a.create,f=a.inst;n=u(),f.destroy=n}a=a.next}while(a!==i)}}catch(h){Me(t,t.return,h)}}function Ja(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){var f=n.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,i=t;var x=a,N=h;try{N()}catch(U){Me(i,x,U)}}}n=n.next}while(n!==u)}}catch(U){Me(t,t.return,U)}}function sh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Ff(t,a)}catch(n){Me(e,e.return,n)}}}function uh(e,t,a){a.props=zn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(e,t,n)}}function Ti(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){Me(e,t,i)}}function ra(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Me(e,t,i)}else a.current=null}function rh(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Me(e,e.return,i)}}function cc(e,t,a){try{var n=e.stateNode;ug(n,e.type,a,t),n[bt]=t}catch(i){Me(e,e.return,i)}}function ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&an(e.type)||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ch(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&an(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ya));else if(n!==4&&(n===27&&an(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(fc(e,t,a),e=e.sibling;e!==null;)fc(e,t,a),e=e.sibling}function Zs(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&an(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zs(e,t,a),e=e.sibling;e!==null;)Zs(e,t,a),e=e.sibling}function oh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ft(t,n,a),t[ut]=e,t[bt]=a}catch(u){Me(e,e.return,u)}}var _a=!1,Ie=!1,dc=!1,fh=typeof WeakSet=="function"?WeakSet:Set,it=null;function By(e,t){if(e=e.containerInfo,Rc=hu,e=Tf(e),ir(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,h=-1,x=-1,N=0,U=0,B=e,w=null;t:for(;;){for(var M;B!==a||i!==0&&B.nodeType!==3||(h=f+i),B!==u||n!==0&&B.nodeType!==3||(x=f+n),B.nodeType===3&&(f+=B.nodeValue.length),(M=B.firstChild)!==null;)w=B,B=M;for(;;){if(B===e)break t;if(w===a&&++N===i&&(h=f),w===u&&++U===n&&(x=f),(M=B.nextSibling)!==null)break;B=w,w=B.parentNode}B=M}a=h===-1||x===-1?null:{start:h,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Dc={focusedElem:e,selectionRange:a},hu=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,n=a.stateNode;try{var I=zn(a.type,i);e=n.getSnapshotBeforeUpdate(I,u),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Me(a,a.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Lc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Lc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function dh(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ca(e,a),n&4&&Ei(5,a);break;case 1:if(Ca(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(a,a.return,f)}else{var i=zn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(a,a.return,f)}}n&64&&sh(a),n&512&&Ti(a,a.return);break;case 3:if(Ca(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Ff(e,t)}catch(f){Me(a,a.return,f)}}break;case 27:t===null&&n&4&&oh(a);case 26:case 5:Ca(e,a),t===null&&n&4&&rh(a),n&512&&Ti(a,a.return);break;case 12:Ca(e,a);break;case 31:Ca(e,a),n&4&&ph(e,a);break;case 13:Ca(e,a),n&4&&yh(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Jy.bind(null,a),pg(e,a))));break;case 22:if(n=a.memoizedState!==null||_a,!n){t=t!==null&&t.memoizedState!==null||Ie,i=_a;var u=Ie;_a=n,(Ie=t)&&!u?wa(e,a,(a.subtreeFlags&8772)!==0):Ca(e,a),_a=i,Ie=u}break;case 30:break;default:Ca(e,a)}}function hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,St=!1;function Na(e,t,a){for(a=a.child;a!==null;)mh(e,t,a),a=a.sibling}function mh(e,t,a){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(me,a)}catch{}switch(a.tag){case 26:Ie||ra(a,t),Na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ie||ra(a,t);var n=Qe,i=St;an(a.type)&&(Qe=a.stateNode,St=!1),Na(e,t,a),zi(a.stateNode),Qe=n,St=i;break;case 5:Ie||ra(a,t);case 6:if(n=Qe,i=St,Qe=null,Na(e,t,a),Qe=n,St=i,Qe!==null)if(St)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(a.stateNode)}catch(u){Me(a,t,u)}else try{Qe.removeChild(a.stateNode)}catch(u){Me(a,t,u)}break;case 18:Qe!==null&&(St?(e=Qe,sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ol(e)):sm(Qe,a.stateNode));break;case 4:n=Qe,i=St,Qe=a.stateNode.containerInfo,St=!0,Na(e,t,a),Qe=n,St=i;break;case 0:case 11:case 14:case 15:Ja(2,a,t),Ie||Ja(4,a,t),Na(e,t,a);break;case 1:Ie||(ra(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&uh(a,t,n)),Na(e,t,a);break;case 21:Na(e,t,a);break;case 22:Ie=(n=Ie)||a.memoizedState!==null,Na(e,t,a),Ie=n;break;default:Na(e,t,a)}}function ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ol(e)}catch(a){Me(t,t.return,a)}}}function yh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ol(e)}catch(a){Me(t,t.return,a)}}function Gy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fh),t;default:throw Error(c(435,e.tag))}}function Ks(e,t){var a=Gy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Fy.bind(null,e,n);n.then(i,i)}})}function Et(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],u=e,f=t,h=f;e:for(;h!==null;){switch(h.tag){case 27:if(an(h.type)){Qe=h.stateNode,St=!1;break e}break;case 5:Qe=h.stateNode,St=!1;break e;case 3:case 4:Qe=h.stateNode.containerInfo,St=!0;break e}h=h.return}if(Qe===null)throw Error(c(160));mh(u,f,i),Qe=null,St=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gh(t,e),t=t.sibling}var It=null;function gh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Tt(e),n&4&&(Ja(3,e,e.return),Ei(3,e),Ja(5,e,e.return));break;case 1:Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),n&64&&_a&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=It;if(Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),n&4){var u=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":u=i.getElementsByTagName("title")[0],(!u||u[Fl]||u[ut]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(n),i.head.insertBefore(u,i.querySelector("head > title"))),ft(u,n,a),u[ut]=e,lt(u),n=u;break e;case"link":var f=gm("link","href",i).get(n+(a.href||""));if(f){for(var h=0;h<f.length;h++)if(u=f[h],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(h,1);break t}}u=i.createElement(n),ft(u,n,a),i.head.appendChild(u);break;case"meta":if(f=gm("meta","content",i).get(n+(a.content||""))){for(h=0;h<f.length;h++)if(u=f[h],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(h,1);break t}}u=i.createElement(n),ft(u,n,a),i.head.appendChild(u);break;default:throw Error(c(468,n))}u[ut]=e,lt(u),n=u}e.stateNode=n}else vm(i,e.type,e.stateNode);else e.stateNode=ym(i,n,e.memoizedProps);else u!==n?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,n===null?vm(i,e.type,e.stateNode):ym(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&cc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),a!==null&&n&4&&cc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),e.flags&32){i=e.stateNode;try{In(i,"")}catch(I){Me(e,e.return,I)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,cc(e,i,a!==null?a.memoizedProps:i)),n&1024&&(dc=!0);break;case 6:if(Et(t,e),Tt(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(I){Me(e,e.return,I)}}break;case 3:if(cu=null,i=It,It=uu(t.containerInfo),Et(t,e),It=i,Tt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Ol(t.containerInfo)}catch(I){Me(e,e.return,I)}dc&&(dc=!1,vh(e));break;case 4:n=It,It=uu(e.stateNode.containerInfo),Et(t,e),Tt(e),It=n;break;case 12:Et(t,e),Tt(e);break;case 31:Et(t,e),Tt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ks(e,n)));break;case 13:Et(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Js=ht()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ks(e,n)));break;case 22:i=e.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,N=_a,U=Ie;if(_a=N||i,Ie=U||x,Et(t,e),Ie=U,_a=N,Tt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||x||_a||Ie||Rn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){x=a=t;try{if(u=x.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=x.stateNode;var B=x.memoizedProps.style,w=B!=null&&B.hasOwnProperty("display")?B.display:null;h.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(I){Me(x,x.return,I)}}}else if(t.tag===6){if(a===null){x=t;try{x.stateNode.nodeValue=i?"":x.memoizedProps}catch(I){Me(x,x.return,I)}}}else if(t.tag===18){if(a===null){x=t;try{var M=x.stateNode;i?um(M,!0):um(x.stateNode,!1)}catch(I){Me(x,x.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Ks(e,a))));break;case 19:Et(t,e),Tt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Ks(e,n)));break;case 30:break;case 21:break;default:Et(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(ch(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,u=oc(e);Zs(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(In(f,""),a.flags&=-33);var h=oc(e);Zs(e,h,f);break;case 3:case 4:var x=a.stateNode.containerInfo,N=oc(e);fc(e,N,x);break;default:throw Error(c(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dh(e,t.alternate,t),t=t.sibling}function Rn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),Rn(t);break;case 1:ra(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&uh(t,t.return,a),Rn(t);break;case 27:zi(t.stateNode);case 26:case 5:ra(t,t.return),Rn(t);break;case 22:t.memoizedState===null&&Rn(t);break;case 30:Rn(t);break;default:Rn(t)}e=e.sibling}}function wa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:wa(i,u,a),Ei(4,u);break;case 1:if(wa(i,u,a),n=u,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(N){Me(n,n.return,N)}if(n=u,i=n.updateQueue,i!==null){var h=n.stateNode;try{var x=i.shared.hiddenCallbacks;if(x!==null)for(i.shared.hiddenCallbacks=null,i=0;i<x.length;i++)Jf(x[i],h)}catch(N){Me(n,n.return,N)}}a&&f&64&&sh(u),Ti(u,u.return);break;case 27:oh(u);case 26:case 5:wa(i,u,a),a&&n===null&&f&4&&rh(u),Ti(u,u.return);break;case 12:wa(i,u,a);break;case 31:wa(i,u,a),a&&f&4&&ph(i,u);break;case 13:wa(i,u,a),a&&f&4&&yh(i,u);break;case 22:u.memoizedState===null&&wa(i,u,a),Ti(u,u.return);break;case 30:break;default:wa(i,u,a)}t=t.sibling}}function hc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ci(a))}function mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function ea(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bh(e,t,a,n),t=t.sibling}function bh(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ea(e,t,a,n),i&2048&&Ei(9,t);break;case 1:ea(e,t,a,n);break;case 3:ea(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(i&2048){ea(e,t,a,n),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,h=u.onPostCommit;typeof h=="function"&&h(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Me(t,t.return,x)}}else ea(e,t,a,n);break;case 31:ea(e,t,a,n);break;case 13:ea(e,t,a,n);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?ea(e,t,a,n):ji(e,t):u._visibility&2?ea(e,t,a,n):(u._visibility|=2,bl(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&hc(f,t);break;case 24:ea(e,t,a,n),i&2048&&mc(t.alternate,t);break;default:ea(e,t,a,n)}}function bl(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,h=a,x=n,N=f.flags;switch(f.tag){case 0:case 11:case 15:bl(u,f,h,x,i),Ei(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?bl(u,f,h,x,i):ji(u,f):(U._visibility|=2,bl(u,f,h,x,i)),i&&N&2048&&hc(f.alternate,f);break;case 24:bl(u,f,h,x,i),i&&N&2048&&mc(f.alternate,f);break;default:bl(u,f,h,x,i)}t=t.sibling}}function ji(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:ji(a,n),i&2048&&hc(n.alternate,n);break;case 24:ji(a,n),i&2048&&mc(n.alternate,n);break;default:ji(a,n)}t=t.sibling}}var Ai=8192;function xl(e,t,a){if(e.subtreeFlags&Ai)for(e=e.child;e!==null;)xh(e,t,a),e=e.sibling}function xh(e,t,a){switch(e.tag){case 26:xl(e,t,a),e.flags&Ai&&e.memoizedState!==null&&Ng(a,It,e.memoizedState,e.memoizedProps);break;case 5:xl(e,t,a);break;case 3:case 4:var n=It;It=uu(e.stateNode.containerInfo),xl(e,t,a),It=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ai,Ai=16777216,xl(e,t,a),Ai=n):xl(e,t,a));break;default:xl(e,t,a)}}function Sh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,Th(n,e)}Sh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Eh(e),e=e.sibling}function Eh(e){switch(e.tag){case 0:case 11:case 15:_i(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:_i(e);break;case 12:_i(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$s(e)):_i(e);break;default:_i(e)}}function $s(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,Th(n,e)}Sh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),$s(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,$s(t));break;default:$s(t)}e=e.sibling}}function Th(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:Ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ci(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,it=n;else e:for(a=e;it!==null;){n=it;var i=n.sibling,u=n.return;if(hh(n),n===a){it=null;break e}if(i!==null){i.return=u,it=i;break e}it=u}}}var Yy={getCacheForType:function(e){var t=ct(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct(Fe).controller.signal}},Qy=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Le=null,be=null,Se=0,Oe=0,Rt=null,Fa=!1,Sl=!1,pc=!1,Oa=0,Ze=0,Pa=0,Dn=0,yc=0,Dt=0,El=0,Ni=null,jt=null,gc=!1,Js=0,jh=0,Fs=1/0,Ps=null,Wa=null,at=0,Ia=null,Tl=null,Ma=0,vc=0,bc=null,Ah=null,Ci=0,xc=null;function Ut(){return(Ce&2)!==0&&Se!==0?Se&-Se:R.T!==null?_c():Bo()}function _h(){if(Dt===0)if((Se&536870912)===0||Te){var e=is;is<<=1,(is&3932160)===0&&(is=262144),Dt=e}else Dt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Dt}function At(e,t,a){(e===Le&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(jl(e,0),en(e,Se,Dt,!1)),Jl(e,a),((Ce&2)===0||e!==Le)&&(e===Le&&((Ce&2)===0&&(Dn|=a),Ze===4&&en(e,Se,Dt,!1)),ca(e))}function Nh(e,t,a){if((Ce&6)!==0)throw Error(c(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||$l(e,t),i=n?Zy(e,t):Ec(e,t,!0),u=n;do{if(i===0){Sl&&!n&&en(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Vy(a)){i=Ec(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var h=e;i=Ni;var x=h.current.memoizedState.isDehydrated;if(x&&(jl(h,f).flags|=256),f=Ec(h,f,!1),f!==2){if(pc&&!x){h.errorRecoveryDisabledLanes|=u,Dn|=u,i=4;break e}u=jt,jt=i,u!==null&&(jt===null?jt=u:jt.push.apply(jt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){jl(e,0),en(e,t,0,!0);break}e:{switch(n=e,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:en(n,t,Dt,!Fa);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Js+300-ht(),10<i)){if(en(n,t,Dt,!Fa),us(n,0,!0)!==0)break e;Ma=t,n.timeoutHandle=lm(Ch.bind(null,n,a,jt,Ps,gc,t,Dt,Dn,El,Fa,u,"Throttled",-0,0),i);break e}Ch(n,a,jt,Ps,gc,t,Dt,Dn,El,Fa,u,null,-0,0)}}break}while(!0);ca(e)}function Ch(e,t,a,n,i,u,f,h,x,N,U,B,w,M){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ya},xh(t,u,B);var I=(u&62914560)===u?Js-ht():(u&4194048)===u?jh-ht():0;if(I=Cg(B,I),I!==null){Ma=u,e.cancelPendingCommit=I(kh.bind(null,e,t,u,a,n,i,f,h,x,U,B,null,w,M)),en(e,u,f,!N);return}}kh(e,t,u,a,n,i,f,h,x)}function Vy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],u=i.getSnapshot;i=i.value;try{if(!wt(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function en(e,t,a,n){t&=~yc,t&=~Dn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var u=31-Ct(i),f=1<<u;n[u]=-1,i&=~f}a!==0&&Lo(e,a,t)}function Ws(){return(Ce&6)===0?(wi(0),!1):!0}function Sc(){if(be!==null){if(Oe===0)var e=be.return;else e=be,xa=An=null,Lr(e),ml=null,fi=0,e=be;for(;e!==null;)ih(e.alternate,e),e=e.return;be=null}}function jl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,og(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ma=0,Sc(),Le=e,be=a=va(e.current,null),Se=t,Oe=0,Rt=null,Fa=!1,Sl=$l(e,t),pc=!1,El=Dt=yc=Dn=Pa=Ze=0,jt=Ni=null,gc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Ct(n),u=1<<i;t|=e[i],n&=~u}return Oa=t,bs(),a}function wh(e,t){pe=null,R.H=bi,t===hl||t===Ns?(t=Xf(),Oe=3):t===Ar?(t=Xf(),Oe=4):Oe=t===Ir?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,be===null&&(Ze=1,Gs(e,Gt(t,e.current)))}function Oh(){var e=Mt.current;return e===null?!0:(Se&4194048)===Se?Xt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Xt:!1}function Mh(){var e=R.H;return R.H=bi,e===null?bi:e}function zh(){var e=R.A;return R.A=Yy,e}function Is(){Ze=4,Fa||(Se&4194048)!==Se&&Mt.current!==null||(Sl=!0),(Pa&134217727)===0&&(Dn&134217727)===0||Le===null||en(Le,Se,Dt,!1)}function Ec(e,t,a){var n=Ce;Ce|=2;var i=Mh(),u=zh();(Le!==e||Se!==t)&&(Ps=null,jl(e,t)),t=!1;var f=Ze;e:do try{if(Oe!==0&&be!==null){var h=be,x=Rt;switch(Oe){case 8:Sc(),f=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var N=Oe;if(Oe=0,Rt=null,Al(e,h,x,N),a&&Sl){f=0;break e}break;default:N=Oe,Oe=0,Rt=null,Al(e,h,x,N)}}Xy(),f=Ze;break}catch(U){wh(e,U)}while(!0);return t&&e.shellSuspendCounter++,xa=An=null,Ce=n,R.H=i,R.A=u,be===null&&(Le=null,Se=0,bs()),f}function Xy(){for(;be!==null;)Rh(be)}function Zy(e,t){var a=Ce;Ce|=2;var n=Mh(),i=zh();Le!==e||Se!==t?(Ps=null,Fs=ht()+500,jl(e,t)):Sl=$l(e,t);e:do try{if(Oe!==0&&be!==null){t=be;var u=Rt;t:switch(Oe){case 1:Oe=0,Rt=null,Al(e,t,u,1);break;case 2:case 9:if(Qf(u)){Oe=0,Rt=null,Dh(t);break}t=function(){Oe!==2&&Oe!==9||Le!==e||(Oe=7),ca(e)},u.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Qf(u)?(Oe=0,Rt=null,Dh(t)):(Oe=0,Rt=null,Al(e,t,u,7));break;case 5:var f=null;switch(be.tag){case 26:f=be.memoizedState;case 5:case 27:var h=be;if(f?bm(f):h.stateNode.complete){Oe=0,Rt=null;var x=h.sibling;if(x!==null)be=x;else{var N=h.return;N!==null?(be=N,eu(N)):be=null}break t}}Oe=0,Rt=null,Al(e,t,u,5);break;case 6:Oe=0,Rt=null,Al(e,t,u,6);break;case 8:Sc(),Ze=6;break e;default:throw Error(c(462))}}Ky();break}catch(U){wh(e,U)}while(!0);return xa=An=null,R.H=n,R.A=i,Ce=a,be!==null?0:(Le=null,Se=0,bs(),Ze)}function Ky(){for(;be!==null&&!ku();)Rh(be)}function Rh(e){var t=nh(e.alternate,e,Oa);e.memoizedProps=e.pendingProps,t===null?eu(e):be=t}function Dh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Pd(a,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Pd(a,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Lr(t);default:ih(a,t),t=be=zf(t,Oa),t=nh(a,t,Oa)}e.memoizedProps=e.pendingProps,t===null?eu(e):be=t}function Al(e,t,a,n){xa=An=null,Lr(t),ml=null,fi=0;var i=t.return;try{if(Uy(e,i,t,a,Se)){Ze=1,Gs(e,Gt(a,e.current)),be=null;return}}catch(u){if(i!==null)throw be=i,u;Ze=1,Gs(e,Gt(a,e.current)),be=null;return}t.flags&32768?(Te||n===1?e=!0:Sl||(Se&536870912)!==0?e=!1:(Fa=e=!0,(n===2||n===9||n===3||n===6)&&(n=Mt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Uh(t,e)):eu(t)}function eu(e){var t=e;do{if((t.flags&32768)!==0){Uh(t,Fa);return}e=t.return;var a=Hy(t.alternate,t,Oa);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function Uh(e,t){do{var a=qy(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);Ze=6,be=null}function kh(e,t,a,n,i,u,f,h,x){e.cancelPendingCommit=null;do tu();while(at!==0);if((Ce&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(u=t.lanes|t.childLanes,u|=or,_p(e,a,u,f,h,x),e===Le&&(be=Le=null,Se=0),Tl=t,Ia=e,Ma=a,vc=u,bc=i,Ah=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Py(yn,function(){return Gh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null,i=Z.p,Z.p=2,f=Ce,Ce|=4;try{By(e,t,a)}finally{Ce=f,Z.p=i,R.T=n}}at=1,Lh(),Hh(),qh()}}function Lh(){if(at===1){at=0;var e=Ia,t=Tl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var n=Z.p;Z.p=2;var i=Ce;Ce|=4;try{gh(t,e);var u=Dc,f=Tf(e.containerInfo),h=u.focusedElem,x=u.selectionRange;if(f!==h&&h&&h.ownerDocument&&Ef(h.ownerDocument.documentElement,h)){if(x!==null&&ir(h)){var N=x.start,U=x.end;if(U===void 0&&(U=N),"selectionStart"in h)h.selectionStart=N,h.selectionEnd=Math.min(U,h.value.length);else{var B=h.ownerDocument||document,w=B&&B.defaultView||window;if(w.getSelection){var M=w.getSelection(),I=h.textContent.length,ue=Math.min(x.start,I),De=x.end===void 0?ue:Math.min(x.end,I);!M.extend&&ue>De&&(f=De,De=ue,ue=f);var j=Sf(h,ue),E=Sf(h,De);if(j&&E&&(M.rangeCount!==1||M.anchorNode!==j.node||M.anchorOffset!==j.offset||M.focusNode!==E.node||M.focusOffset!==E.offset)){var _=B.createRange();_.setStart(j.node,j.offset),M.removeAllRanges(),ue>De?(M.addRange(_),M.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),M.addRange(_))}}}}for(B=[],M=h;M=M.parentNode;)M.nodeType===1&&B.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var L=B[h];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}hu=!!Rc,Dc=Rc=null}finally{Ce=i,Z.p=n,R.T=a}}e.current=t,at=2}}function Hh(){if(at===2){at=0;var e=Ia,t=Tl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var n=Z.p;Z.p=2;var i=Ce;Ce|=4;try{dh(e,t.alternate,t)}finally{Ce=i,Z.p=n,R.T=a}}at=3}}function qh(){if(at===4||at===3){at=0,Ii();var e=Ia,t=Tl,a=Ma,n=Ah;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Tl=Ia=null,Bh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Wa=null),Bu(a),t=t.stateNode,Ye&&typeof Ye.onCommitFiberRoot=="function")try{Ye.onCommitFiberRoot(me,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=R.T,i=Z.p,Z.p=2,R.T=null;try{for(var u=e.onRecoverableError,f=0;f<n.length;f++){var h=n[f];u(h.value,{componentStack:h.stack})}}finally{R.T=t,Z.p=i}}(Ma&3)!==0&&tu(),ca(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===xc?Ci++:(Ci=0,xc=e):Ci=0,wi(0)}}function Bh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function tu(){return Lh(),Hh(),qh(),Gh()}function Gh(){if(at!==5)return!1;var e=Ia,t=vc;vc=0;var a=Bu(Ma),n=R.T,i=Z.p;try{Z.p=32>a?32:a,R.T=null,a=bc,bc=null;var u=Ia,f=Ma;if(at=0,Tl=Ia=null,Ma=0,(Ce&6)!==0)throw Error(c(331));var h=Ce;if(Ce|=4,Eh(u.current),bh(u,u.current,f,a),Ce=h,wi(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(me,u)}catch{}return!0}finally{Z.p=i,R.T=n,Bh(e,t)}}function Yh(e,t,a){t=Gt(a,t),t=Wr(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(Jl(e,2),ca(e))}function Me(e,t,a){if(e.tag===3)Yh(e,e,a);else for(;t!==null;){if(t.tag===3){Yh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Wa===null||!Wa.has(n))){e=Gt(a,e),a=Qd(2),n=Za(t,a,2),n!==null&&(Vd(a,n,t,e),Jl(n,2),ca(n));break}}t=t.return}}function Tc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Qy;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(pc=!0,i.add(a),e=$y.bind(null,e,t,a),t.then(e,e))}function $y(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(Se&a)===a&&(Ze===4||Ze===3&&(Se&62914560)===Se&&300>ht()-Js?(Ce&2)===0&&jl(e,0):yc|=a,El===Se&&(El=0)),ca(e)}function Qh(e,t){t===0&&(t=ko()),e=En(e,t),e!==null&&(Jl(e,t),ca(e))}function Jy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Qh(e,a)}function Fy(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),Qh(e,a)}function Py(e,t){return Zl(e,t)}var au=null,_l=null,jc=!1,nu=!1,Ac=!1,tn=0;function ca(e){e!==_l&&e.next===null&&(_l===null?au=_l=e:_l=_l.next=e),nu=!0,jc||(jc=!0,Iy())}function wi(e,t){if(!Ac&&nu){Ac=!0;do for(var a=!1,n=au;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var u=0;else{var f=n.suspendedLanes,h=n.pingedLanes;u=(1<<31-Ct(42|e)+1)-1,u&=i&~(f&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Kh(n,u))}else u=Se,u=us(n,n===Le?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||$l(n,u)||(a=!0,Kh(n,u));n=n.next}while(a);Ac=!1}}function Wy(){Vh()}function Vh(){nu=jc=!1;var e=0;tn!==0&&cg()&&(e=tn);for(var t=ht(),a=null,n=au;n!==null;){var i=n.next,u=Xh(n,t);u===0?(n.next=null,a===null?au=i:a.next=i,i===null&&(_l=a)):(a=n,(e!==0||(u&3)!==0)&&(nu=!0)),n=i}at!==0&&at!==5||wi(e),tn!==0&&(tn=0)}function Xh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Ct(u),h=1<<f,x=i[f];x===-1?((h&a)===0||(h&n)!==0)&&(i[f]=Ap(h,t)):x<=t&&(e.expiredLanes|=h),u&=~h}if(t=Le,a=Se,a=us(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Kl(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||$l(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Kl(n),Bu(a)){case 2:case 8:a=Zn;break;case 32:a=yn;break;case 268435456:a=as;break;default:a=yn}return n=Zh.bind(null,e),a=Zl(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Kl(n),e.callbackPriority=2,e.callbackNode=null,2}function Zh(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(tu()&&e.callbackNode!==a)return null;var n=Se;return n=us(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Nh(e,n,t),Xh(e,ht()),e.callbackNode!=null&&e.callbackNode===a?Zh.bind(null,e):null)}function Kh(e,t){if(tu())return null;Nh(e,t,!0)}function Iy(){fg(function(){(Ce&6)!==0?Zl(es,Wy):Vh()})}function _c(){if(tn===0){var e=fl;e===0&&(e=ls,ls<<=1,(ls&261888)===0&&(ls=256)),tn=e}return tn}function $h(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fs(""+e)}function Jh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function eg(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var u=$h((i[bt]||null).action),f=n.submitter;f&&(t=(t=f[bt]||null)?$h(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var h=new ps("action","action",null,n,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(tn!==0){var x=f?Jh(i,f):new FormData(i);Zr(a,{pending:!0,data:x,method:i.method,action:u},null,x)}}else typeof u=="function"&&(h.preventDefault(),x=f?Jh(i,f):new FormData(i),Zr(a,{pending:!0,data:x,method:i.method,action:u},u,x))},currentTarget:i}]})}}for(var Nc=0;Nc<cr.length;Nc++){var Cc=cr[Nc],tg=Cc.toLowerCase(),ag=Cc[0].toUpperCase()+Cc.slice(1);Wt(tg,"on"+ag)}Wt(_f,"onAnimationEnd"),Wt(Nf,"onAnimationIteration"),Wt(Cf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(vy,"onTransitionRun"),Wt(by,"onTransitionStart"),Wt(xy,"onTransitionCancel"),Wt(wf,"onTransitionEnd"),Pn("onMouseEnter",["mouseout","mouseover"]),Pn("onMouseLeave",["mouseout","mouseover"]),Pn("onPointerEnter",["pointerout","pointerover"]),Pn("onPointerLeave",["pointerout","pointerover"]),vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),ng=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function Fh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var f=n.length-1;0<=f;f--){var h=n[f],x=h.instance,N=h.currentTarget;if(h=h.listener,x!==u&&i.isPropagationStopped())break e;u=h,i.currentTarget=N;try{u(i)}catch(U){vs(U)}i.currentTarget=null,u=x}else for(f=0;f<n.length;f++){if(h=n[f],x=h.instance,N=h.currentTarget,h=h.listener,x!==u&&i.isPropagationStopped())break e;u=h,i.currentTarget=N;try{u(i)}catch(U){vs(U)}i.currentTarget=null,u=x}}}}function xe(e,t){var a=t[Gu];a===void 0&&(a=t[Gu]=new Set);var n=e+"__bubble";a.has(n)||(Ph(t,e,2,!1),a.add(n))}function wc(e,t,a){var n=0;t&&(n|=4),Ph(a,e,n,t)}var lu="_reactListening"+Math.random().toString(36).slice(2);function Oc(e){if(!e[lu]){e[lu]=!0,Qo.forEach(function(a){a!=="selectionchange"&&(ng.has(a)||wc(a,!1,e),wc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lu]||(t[lu]=!0,wc("selectionchange",!1,t))}}function Ph(e,t,a,n){switch(_m(t)){case 2:var i=Mg;break;case 8:i=zg;break;default:i=Xc}a=i.bind(null,t,a,e),i=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Mc(e,t,a,n,i){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var h=n.stateNode.containerInfo;if(h===i)break;if(f===4)for(f=n.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;h!==null;){if(f=$n(h),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){n=u=f;continue e}h=h.parentNode}}n=n.return}tf(function(){var N=u,U=$u(a),B=[];e:{var w=Of.get(e);if(w!==void 0){var M=ps,I=e;switch(e){case"keypress":if(hs(a)===0)break e;case"keydown":case"keyup":M=Fp;break;case"focusin":I="focus",M=er;break;case"focusout":I="blur",M=er;break;case"beforeblur":case"afterblur":M=er;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Hp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=Ip;break;case _f:case Nf:case Cf:M=Gp;break;case wf:M=ty;break;case"scroll":case"scrollend":M=kp;break;case"wheel":M=ny;break;case"copy":case"cut":case"paste":M=Qp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=uf;break;case"toggle":case"beforetoggle":M=iy}var ue=(t&4)!==0,De=!ue&&(e==="scroll"||e==="scrollend"),j=ue?w!==null?w+"Capture":null:w;ue=[];for(var E=N,_;E!==null;){var L=E;if(_=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||_===null||j===null||(L=Wl(E,j),L!=null&&ue.push(Mi(E,L,_))),De)break;E=E.return}0<ue.length&&(w=new M(w,I,null,a,U),B.push({event:w,listeners:ue}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",w&&a!==Ku&&(I=a.relatedTarget||a.fromElement)&&($n(I)||I[Kn]))break e;if((M||w)&&(w=U.window===U?U:(w=U.ownerDocument)?w.defaultView||w.parentWindow:window,M?(I=a.relatedTarget||a.toElement,M=N,I=I?$n(I):null,I!==null&&(De=m(I),ue=I.tag,I!==De||ue!==5&&ue!==27&&ue!==6)&&(I=null)):(M=null,I=N),M!==I)){if(ue=lf,L="onMouseLeave",j="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ue=uf,L="onPointerLeave",j="onPointerEnter",E="pointer"),De=M==null?w:Pl(M),_=I==null?w:Pl(I),w=new ue(L,E+"leave",M,a,U),w.target=De,w.relatedTarget=_,L=null,$n(U)===N&&(ue=new ue(j,E+"enter",I,a,U),ue.target=_,ue.relatedTarget=De,L=ue),De=L,M&&I)t:{for(ue=lg,j=M,E=I,_=0,L=j;L;L=ue(L))_++;L=0;for(var ie=E;ie;ie=ue(ie))L++;for(;0<_-L;)j=ue(j),_--;for(;0<L-_;)E=ue(E),L--;for(;_--;){if(j===E||E!==null&&j===E.alternate){ue=j;break t}j=ue(j),E=ue(E)}ue=null}else ue=null;M!==null&&Wh(B,w,M,ue,!1),I!==null&&De!==null&&Wh(B,De,I,ue,!0)}}e:{if(w=N?Pl(N):window,M=w.nodeName&&w.nodeName.toLowerCase(),M==="select"||M==="input"&&w.type==="file")var Ae=pf;else if(hf(w))if(yf)Ae=py;else{Ae=hy;var ae=dy}else M=w.nodeName,!M||M.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?N&&Zu(N.elementType)&&(Ae=pf):Ae=my;if(Ae&&(Ae=Ae(e,N))){mf(B,Ae,a,U);break e}ae&&ae(e,w,N),e==="focusout"&&N&&w.type==="number"&&N.memoizedProps.value!=null&&Xu(w,"number",w.value)}switch(ae=N?Pl(N):window,e){case"focusin":(hf(ae)||ae.contentEditable==="true")&&(nl=ae,sr=N,si=null);break;case"focusout":si=sr=nl=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,jf(B,a,U);break;case"selectionchange":if(gy)break;case"keydown":case"keyup":jf(B,a,U)}var ye;if(ar)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else al?ff(e,a)&&(Ee="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ee="onCompositionStart");Ee&&(rf&&a.locale!=="ko"&&(al||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&al&&(ye=af()):(qa=U,Pu="value"in qa?qa.value:qa.textContent,al=!0)),ae=iu(N,Ee),0<ae.length&&(Ee=new sf(Ee,e,null,a,U),B.push({event:Ee,listeners:ae}),ye?Ee.data=ye:(ye=df(a),ye!==null&&(Ee.data=ye)))),(ye=uy?ry(e,a):cy(e,a))&&(Ee=iu(N,"onBeforeInput"),0<Ee.length&&(ae=new sf("onBeforeInput","beforeinput",null,a,U),B.push({event:ae,listeners:Ee}),ae.data=ye)),eg(B,e,N,a,U)}Fh(B,t)})}function Mi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function iu(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Wl(e,a),i!=null&&n.unshift(Mi(e,i,u)),i=Wl(e,t),i!=null&&n.push(Mi(e,i,u))),e.tag===3)return n;e=e.return}return[]}function lg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wh(e,t,a,n,i){for(var u=t._reactName,f=[];a!==null&&a!==n;){var h=a,x=h.alternate,N=h.stateNode;if(h=h.tag,x!==null&&x===n)break;h!==5&&h!==26&&h!==27||N===null||(x=N,i?(N=Wl(a,u),N!=null&&f.unshift(Mi(a,N,x))):i||(N=Wl(a,u),N!=null&&f.push(Mi(a,N,x)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var ig=/\r\n?/g,sg=/\u0000|\uFFFD/g;function Ih(e){return(typeof e=="string"?e:""+e).replace(ig,`
|
|
50
|
-
`).replace(sg,"")}function em(e,t){return t=Ih(t),Ih(e)===t}function Re(e,t,a,n,i,u){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||In(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&In(e,""+n);break;case"className":cs(e,"class",n);break;case"tabIndex":cs(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":cs(e,a,n);break;case"style":Io(e,n,u);break;case"data":if(t!=="object"){cs(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=fs(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 u=="function"&&(a==="formAction"?(t!=="input"&&Re(e,t,"name",i.name,i,null),Re(e,t,"formEncType",i.formEncType,i,null),Re(e,t,"formMethod",i.formMethod,i,null),Re(e,t,"formTarget",i.formTarget,i,null)):(Re(e,t,"encType",i.encType,i,null),Re(e,t,"method",i.method,i,null),Re(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=fs(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ya);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=fs(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":xe("beforetoggle",e),xe("toggle",e),rs(e,"popover",n);break;case"xlinkActuate":pa(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":pa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":pa(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":pa(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":pa(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":pa(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":pa(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":pa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":pa(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":rs(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Dp.get(a)||a,rs(e,a,n))}}function zc(e,t,a,n,i,u){switch(a){case"style":Io(e,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?In(e,n):(typeof n=="number"||typeof n=="bigint")&&In(e,""+n);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vo.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[bt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof n=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):rs(e,a,n)}}}function ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var n=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,u,f,a,null)}}i&&Re(e,t,"srcSet",a.srcSet,a,null),n&&Re(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var h=u=f=i=null,x=null,N=null;for(n in a)if(a.hasOwnProperty(n)){var U=a[n];if(U!=null)switch(n){case"name":i=U;break;case"type":f=U;break;case"checked":x=U;break;case"defaultChecked":N=U;break;case"value":u=U;break;case"defaultValue":h=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:Re(e,t,n,U,a,null)}}Jo(e,u,h,x,N,f,i,!1);return;case"select":xe("invalid",e),n=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(h=a[i],h!=null))switch(i){case"value":u=h;break;case"defaultValue":f=h;break;case"multiple":n=h;default:Re(e,t,i,h,a,null)}t=u,a=f,e.multiple=!!n,t!=null?Wn(e,!!n,t,!1):a!=null&&Wn(e,!!n,a,!0);return;case"textarea":xe("invalid",e),u=i=n=null;for(f in a)if(a.hasOwnProperty(f)&&(h=a[f],h!=null))switch(f){case"value":n=h;break;case"defaultValue":i=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,f,h,a,null)}Po(e,n,i,u);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(n=a[x],n!=null))switch(x){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Re(e,t,x,n,a,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(n=0;n<Oi.length;n++)xe(Oi[n],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(n=a[N],n!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,N,n,a,null)}return;default:if(Zu(t)){for(U in a)a.hasOwnProperty(U)&&(n=a[U],n!==void 0&&zc(e,t,U,n,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(n=a[h],n!=null&&Re(e,t,h,n,a,null))}function ug(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,h=null,x=null,N=null,U=null;for(M in a){var B=a[M];if(a.hasOwnProperty(M)&&B!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":x=B;default:n.hasOwnProperty(M)||Re(e,t,M,null,n,B)}}for(var w in n){var M=n[w];if(B=a[w],n.hasOwnProperty(w)&&(M!=null||B!=null))switch(w){case"type":u=M;break;case"name":i=M;break;case"checked":N=M;break;case"defaultChecked":U=M;break;case"value":f=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:M!==B&&Re(e,t,w,M,n,B)}}Vu(e,f,h,x,N,U,u,i);return;case"select":M=f=h=w=null;for(u in a)if(x=a[u],a.hasOwnProperty(u)&&x!=null)switch(u){case"value":break;case"multiple":M=x;default:n.hasOwnProperty(u)||Re(e,t,u,null,n,x)}for(i in n)if(u=n[i],x=a[i],n.hasOwnProperty(i)&&(u!=null||x!=null))switch(i){case"value":w=u;break;case"defaultValue":h=u;break;case"multiple":f=u;default:u!==x&&Re(e,t,i,u,n,x)}t=h,a=f,n=M,w!=null?Wn(e,!!a,w,!1):!!n!=!!a&&(t!=null?Wn(e,!!a,t,!0):Wn(e,!!a,a?[]:"",!1));return;case"textarea":M=w=null;for(h in a)if(i=a[h],a.hasOwnProperty(h)&&i!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,n,i)}for(f in n)if(i=n[f],u=a[f],n.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":w=i;break;case"defaultValue":M=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Re(e,t,f,i,n,u)}Fo(e,w,M);return;case"option":for(var I in a)if(w=a[I],a.hasOwnProperty(I)&&w!=null&&!n.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Re(e,t,I,null,n,w)}for(x in n)if(w=n[x],M=a[x],n.hasOwnProperty(x)&&w!==M&&(w!=null||M!=null))switch(x){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Re(e,t,x,w,n,M)}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 ue in a)w=a[ue],a.hasOwnProperty(ue)&&w!=null&&!n.hasOwnProperty(ue)&&Re(e,t,ue,null,n,w);for(N in n)if(w=n[N],M=a[N],n.hasOwnProperty(N)&&w!==M&&(w!=null||M!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,t));break;default:Re(e,t,N,w,n,M)}return;default:if(Zu(t)){for(var De in a)w=a[De],a.hasOwnProperty(De)&&w!==void 0&&!n.hasOwnProperty(De)&&zc(e,t,De,void 0,n,w);for(U in n)w=n[U],M=a[U],!n.hasOwnProperty(U)||w===M||w===void 0&&M===void 0||zc(e,t,U,w,n,M);return}}for(var j in a)w=a[j],a.hasOwnProperty(j)&&w!=null&&!n.hasOwnProperty(j)&&Re(e,t,j,null,n,w);for(B in n)w=n[B],M=a[B],!n.hasOwnProperty(B)||w===M||w==null&&M==null||Re(e,t,B,w,n,M)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],u=i.transferSize,f=i.initiatorType,h=i.duration;if(u&&h&&tm(f)){for(f=0,h=i.responseEnd,n+=1;n<a.length;n++){var x=a[n],N=x.startTime;if(N>h)break;var U=x.transferSize,B=x.initiatorType;U&&tm(B)&&(x=x.responseEnd,f+=U*(x<h?1:(h-N)/(x-N)))}if(--n,t+=8*(u+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Dc=null;function su(e){return e.nodeType===9?e:e.ownerDocument}function am(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Uc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kc=null;function cg(){var e=window.event;return e&&e.type==="popstate"?e===kc?!1:(kc=e,!0):(kc=null,!1)}var lm=typeof setTimeout=="function"?setTimeout:void 0,og=typeof clearTimeout=="function"?clearTimeout:void 0,im=typeof Promise=="function"?Promise:void 0,fg=typeof queueMicrotask=="function"?queueMicrotask:typeof im<"u"?function(e){return im.resolve(null).then(e).catch(dg)}:lm;function dg(e){setTimeout(function(){throw e})}function an(e){return e==="head"}function sm(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),Ol(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")zi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,zi(a);for(var u=a.firstChild;u;){var f=u.nextSibling,h=u.nodeName;u[Fl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&zi(e.ownerDocument.body);a=i}while(a);Ol(t)}function um(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Lc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lc(a),Yu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hg(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Fl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function mg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Zt(e.nextSibling),e===null))return null;return e}function rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function Hc(e){return e.data==="$?"||e.data==="$~"}function qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bc=null;function cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Zt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=su(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function zi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yu(e)}var Kt=new Map,dm=new Set;function uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var za=Z.d;Z.d={f:yg,r:gg,D:vg,C:bg,L:xg,m:Sg,X:Tg,S:Eg,M:jg};function yg(){var e=za.f(),t=Ws();return e||t}function gg(e){var t=Jn(e);t!==null&&t.tag===5&&t.type==="form"?wd(t):za.r(e)}var Nl=typeof document>"u"?null:document;function hm(e,t,a){var n=Nl;if(n&&typeof t=="string"&&t){var i=qt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),dm.has(i)||(dm.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),ft(t,"link",e),lt(t),n.head.appendChild(t)))}}function vg(e){za.D(e),hm("dns-prefetch",e,null)}function bg(e,t){za.C(e,t),hm("preconnect",e,t)}function xg(e,t,a){za.L(e,t,a);var n=Nl;if(n&&e&&t){var i='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+qt(a.imageSizes)+'"]')):i+='[href="'+qt(e)+'"]';var u=i;switch(t){case"style":u=Cl(e);break;case"script":u=wl(e)}Kt.has(u)||(e=T({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Kt.set(u,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Ri(u))||t==="script"&&n.querySelector(Di(u))||(t=n.createElement("link"),ft(t,"link",e),lt(t),n.head.appendChild(t)))}}function Sg(e,t){za.m(e,t);var a=Nl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+qt(n)+'"][href="'+qt(e)+'"]',u=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wl(e)}if(!Kt.has(u)&&(e=T({rel:"modulepreload",href:e},t),Kt.set(u,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Di(u)))return}n=a.createElement("link"),ft(n,"link",e),lt(n),a.head.appendChild(n)}}}function Eg(e,t,a){za.S(e,t,a);var n=Nl;if(n&&e){var i=Fn(n).hoistableStyles,u=Cl(e);t=t||"default";var f=i.get(u);if(!f){var h={loading:0,preload:null};if(f=n.querySelector(Ri(u)))h.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Kt.get(u))&&Gc(e,a);var x=f=n.createElement("link");lt(x),ft(x,"link",e),x._p=new Promise(function(N,U){x.onload=N,x.onerror=U}),x.addEventListener("load",function(){h.loading|=1}),x.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ru(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:h},i.set(u,f)}}}function Tg(e,t){za.X(e,t);var a=Nl;if(a&&e){var n=Fn(a).hoistableScripts,i=wl(e),u=n.get(i);u||(u=a.querySelector(Di(i)),u||(e=T({src:e,async:!0},t),(t=Kt.get(i))&&Yc(e,t),u=a.createElement("script"),lt(u),ft(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function jg(e,t){za.M(e,t);var a=Nl;if(a&&e){var n=Fn(a).hoistableScripts,i=wl(e),u=n.get(i);u||(u=a.querySelector(Di(i)),u||(e=T({src:e,async:!0,type:"module"},t),(t=Kt.get(i))&&Yc(e,t),u=a.createElement("script"),lt(u),ft(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function mm(e,t,a,n){var i=(i=oe.current)?uu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Cl(a.href),a=Fn(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cl(a.href);var u=Fn(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(Ri(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Kt.set(e,a),u||Ag(i,e,a,f.state))),t&&n===null)throw Error(c(528,""));return f}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wl(a),a=Fn(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Cl(e){return'href="'+qt(e)+'"'}function Ri(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Ag(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ft(t,"link",a),lt(t),e.head.appendChild(t))}function wl(e){return'[src="'+qt(e)+'"]'}function Di(e){return"script[async]"+e}function ym(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+qt(a.href)+'"]');if(n)return t.instance=n,lt(n),n;var i=T({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),lt(n),ft(n,"style",i),ru(n,a.precedence,e),t.instance=n;case"stylesheet":i=Cl(a.href);var u=e.querySelector(Ri(i));if(u)return t.state.loading|=4,t.instance=u,lt(u),u;n=pm(a),(i=Kt.get(i))&&Gc(n,i),u=(e.ownerDocument||e).createElement("link"),lt(u);var f=u;return f._p=new Promise(function(h,x){f.onload=h,f.onerror=x}),ft(u,"link",n),t.state.loading|=4,ru(u,a.precedence,e),t.instance=u;case"script":return u=wl(a.src),(i=e.querySelector(Di(u)))?(t.instance=i,lt(i),i):(n=a,(i=Kt.get(u))&&(n=T({},a),Yc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),lt(i),ft(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ru(n,a.precedence,e));return t.instance}function ru(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,u=i,f=0;f<n.length;f++){var h=n[f];if(h.dataset.precedence===t)u=h;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cu=null;function gm(e,t,a){if(cu===null){var n=new Map,i=cu=new Map;i.set(a,n)}else i=cu,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[Fl]||u[ut]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var h=n.get(f);h?h.push(u):n.set(f,[u])}}return n}function vm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function _g(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ng(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Cl(n.href),u=t.querySelector(Ri(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ou.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,lt(u);return}u=t.ownerDocument||t,n=pm(n),(i=Kt.get(i))&&Gc(n,i),u=u.createElement("link"),lt(u);var f=u;f._p=new Promise(function(h,x){f.onload=h,f.onerror=x}),ft(u,"link",n),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ou.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Qc=0;function Cg(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Qc===0&&(Qc=62500*rg());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Qc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fu=new Map,t.forEach(wg,e),fu=null,ou.call(e))}function wg(e,t){if(!(t.state.loading&4)){var a=fu.get(e);if(a)var n=a.get(null);else{a=new Map,fu.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||n,u===n&&a.set(null,i),a.set(f,i),this.count++,n=ou.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ui={$$typeof:$,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Og(e,t,a,n,i,u,f,h,x){this.tag=1,this.containerInfo=e,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=Hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.hiddenUpdates=Hu(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function xm(e,t,a,n,i,u,f,h,x,N,U,B){return e=new Og(e,t,a,f,x,N,U,B,h),t=1,u===!0&&(t|=24),u=Ot(3,null,null,t),e.current=u,u.stateNode=e,t=Er(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:a,cache:t},_r(u),e}function Sm(e){return e?(e=sl,e):sl}function Em(e,t,a,n,i,u){i=Sm(i),n.context===null?n.context=i:n.pendingContext=i,n=Xa(t),n.payload={element:a},u=u===void 0?null:u,u!==null&&(n.callback=u),a=Za(e,n,t),a!==null&&(At(a,e,t),hi(a,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vc(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function jm(e){if(e.tag===13||e.tag===31){var t=En(e,67108864);t!==null&&At(t,e,67108864),Vc(e,67108864)}}function Am(e){if(e.tag===13||e.tag===31){var t=Ut();t=qu(t);var a=En(e,t);a!==null&&At(a,e,t),Vc(e,t)}}var hu=!0;function Mg(e,t,a,n){var i=R.T;R.T=null;var u=Z.p;try{Z.p=2,Xc(e,t,a,n)}finally{Z.p=u,R.T=i}}function zg(e,t,a,n){var i=R.T;R.T=null;var u=Z.p;try{Z.p=8,Xc(e,t,a,n)}finally{Z.p=u,R.T=i}}function Xc(e,t,a,n){if(hu){var i=Zc(n);if(i===null)Mc(e,t,n,mu,a),Nm(e,n);else if(Dg(i,e,t,a,n))n.stopPropagation();else if(Nm(e,n),t&4&&-1<Rg.indexOf(e)){for(;i!==null;){var u=Jn(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=gn(u.pendingLanes);if(f!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var x=1<<31-Ct(f);h.entanglements[1]|=x,f&=~x}ca(u),(Ce&6)===0&&(Fs=ht()+500,wi(0))}}break;case 31:case 13:h=En(u,2),h!==null&&At(h,u,2),Ws(),Vc(u,2)}if(u=Zc(n),u===null&&Mc(e,t,n,mu,a),u===i)break;i=u}i!==null&&n.stopPropagation()}else Mc(e,t,n,null,a)}}function Zc(e){return e=$u(e),Kc(e)}var mu=null;function Kc(e){if(mu=null,e=$n(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mu=e,null}function _m(e){switch(e){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(Lu()){case es:return 2;case Zn:return 8;case yn:case ts:return 32;case as:return 268435456;default:return 32}default:return 32}}var $c=!1,nn=null,ln=null,sn=null,ki=new Map,Li=new Map,un=[],Rg="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 Nm(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Li.delete(t.pointerId)}}function Hi(e,t,a,n,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Jn(t),t!==null&&jm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dg(e,t,a,n,i){switch(t){case"focusin":return nn=Hi(nn,e,t,a,n,i),!0;case"dragenter":return ln=Hi(ln,e,t,a,n,i),!0;case"mouseover":return sn=Hi(sn,e,t,a,n,i),!0;case"pointerover":var u=i.pointerId;return ki.set(u,Hi(ki.get(u)||null,e,t,a,n,i)),!0;case"gotpointercapture":return u=i.pointerId,Li.set(u,Hi(Li.get(u)||null,e,t,a,n,i)),!0}return!1}function Cm(e){var t=$n(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Go(e.priority,function(){Am(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Go(e.priority,function(){Am(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);Ku=n,a.target.dispatchEvent(n),Ku=null}else return t=Jn(a),t!==null&&jm(t),e.blockedOn=a,!1;t.shift()}return!0}function wm(e,t,a){pu(e)&&a.delete(t)}function Ug(){$c=!1,nn!==null&&pu(nn)&&(nn=null),ln!==null&&pu(ln)&&(ln=null),sn!==null&&pu(sn)&&(sn=null),ki.forEach(wm),Li.forEach(wm)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,$c||($c=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Ug)))}var gu=null;function Om(e){gu!==e&&(gu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){gu===e&&(gu=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if(Kc(n||a)===null)continue;break}var u=Jn(a);u!==null&&(e.splice(t,3),t-=3,Zr(u,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function Ol(e){function t(x){return yu(x,e)}nn!==null&&yu(nn,e),ln!==null&&yu(ln,e),sn!==null&&yu(sn,e),ki.forEach(t),Li.forEach(t);for(var a=0;a<un.length;a++){var n=un[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<un.length&&(a=un[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&un.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],u=a[n+1],f=i[bt]||null;if(typeof u=="function")f||Om(a);else if(f){var h=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[bt]||null)h=f.formAction;else if(Kc(i)!==null)continue}else h=f.action;typeof h=="function"?a[n+1]=h:(a.splice(n,3),n-=3),Om(a)}}}function Mm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Jc(e){this._internalRoot=e}vu.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=Ut();Em(a,n,e,t,null,null)},vu.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Em(e.current,2,null,e,null,null),Ws(),t[Kn]=null}};function vu(e){this._internalRoot=e}vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<un.length&&t!==0&&t<un[a].priority;a++);un.splice(a,0,e),a===0&&Cm(e)}};var zm=s.version;if(zm!=="19.2.4")throw Error(c(527,zm,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var kg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bu.isDisabled&&bu.supportsFiber)try{me=bu.inject(kg),Ye=bu}catch{}}return Bi.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,n="",i=qd,u=Bd,f=Gd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=xm(e,1,!1,null,null,a,n,null,i,u,f,Mm),e[Kn]=t.current,Oc(e),new Jc(t)},Bi.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var n=!1,i="",u=qd,f=Bd,h=Gd,x=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=xm(e,1,!0,t,a??null,n,i,x,u,f,h,Mm),t.context=Sm(null),a=t.current,n=Ut(),n=qu(n),i=Xa(n),i.callback=null,Za(a,i,n),a=n,t.current.lanes=a,Jl(t,a),ca(t),e[Kn]=t.current,Oc(e),new vu(t)},Bi.version="19.2.4",Bi}var Vm;function Jg(){if(Vm)return Ic.exports;Vm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Ic.exports=$g(),Ic.exports}var Fg=Jg();/**
|
|
49
|
+
`+n.stack}}var Xn=Object.prototype.hasOwnProperty,Zl=l.unstable_scheduleCallback,$l=l.unstable_cancelCallback,Uu=l.unstable_shouldYield,Ii=l.unstable_requestPaint,ht=l.unstable_now,Lu=l.unstable_getCurrentPriorityLevel,es=l.unstable_ImmediatePriority,Zn=l.unstable_UserBlockingPriority,yn=l.unstable_NormalPriority,ts=l.unstable_LowPriority,as=l.unstable_IdlePriority,ns=l.log,C=l.unstable_setDisableYieldValue,me=null,Ye=null;function tt(e){if(typeof ns=="function"&&C(e),Ye&&typeof Ye.setStrictMode=="function")try{Ye.setStrictMode(me,e)}catch{}}var Ct=Math.clz32?Math.clz32:Ap,Tp=Math.log,jp=Math.LN2;function Ap(e){return e>>>=0,e===0?32:31-(Tp(e)/jp|0)|0}var ls=256,is=262144,ss=4194304;function gn(e){var t=e&42;if(t!==0)return t;switch(e&-e){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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function us(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?i=gn(n):(f&=h,f!==0?i=gn(f):a||(a=h&~e,a!==0&&(i=gn(a))))):(h=n&~u,h!==0?i=gn(h):f!==0?i=gn(f):a||(a=n&~e,a!==0&&(i=gn(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function Kl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _p(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Uo(){var e=ss;return ss<<=1,(ss&62914560)===0&&(ss=4194304),e}function Hu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Jl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Np(e,t,a,n,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var h=e.entanglements,x=e.expirationTimes,N=e.hiddenUpdates;for(a=f&~a;0<a;){var k=31-Ct(a),B=1<<k;h[k]=0,x[k]=-1;var w=N[k];if(w!==null)for(N[k]=null,k=0;k<w.length;k++){var M=w[k];M!==null&&(M.lane&=-536870913)}a&=~B}n!==0&&Lo(e,n,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Lo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Ct(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Ho(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Ct(a),i=1<<n;i&t|e[n]&t&&(e[n]|=t),a&=~i}}function qo(e,t){var a=t&-t;return a=(a&42)!==0?1:qu(a),(a&(e.suspendedLanes|t))!==0?0:a}function qu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Bu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bo(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:_m(e.type))}function Go(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var Ha=Math.random().toString(36).slice(2),ut="__reactFiber$"+Ha,bt="__reactProps$"+Ha,$n="__reactContainer$"+Ha,Gu="__reactEvents$"+Ha,Cp="__reactListeners$"+Ha,wp="__reactHandles$"+Ha,Yo="__reactResources$"+Ha,Fl="__reactMarker$"+Ha;function Yu(e){delete e[ut],delete e[bt],delete e[Gu],delete e[Cp],delete e[wp]}function Kn(e){var t=e[ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[$n]||a[ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=om(e);e!==null;){if(a=e[ut])return a;e=om(e)}return t}e=a,a=e.parentNode}return null}function Jn(e){if(e=e[ut]||e[$n]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Fn(e){var t=e[Yo];return t||(t=e[Yo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Fl]=!0}var Qo=new Set,Vo={};function vn(e,t){Pn(e,t),Pn(e+"Capture",t)}function Pn(e,t){for(Vo[e]=t,e=0;e<t.length;e++)Qo.add(t[e])}var Op=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]*$"),Xo={},Zo={};function Mp(e){return Xn.call(Zo,e)?!0:Xn.call(Xo,e)?!1:Op.test(e)?Zo[e]=!0:(Xo[e]=!0,!1)}function rs(e,t,a){if(Mp(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function cs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function pa(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $o(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zp(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qu(e){if(!e._valueTracker){var t=$o(e)?"checked":"value";e._valueTracker=zp(e,t,""+e[t])}}function Ko(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=$o(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function os(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Rp=/[\n"\\]/g;function qt(e){return e.replace(Rp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vu(e,t,a,n,i,u,f,h){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Xu(e,f,Ht(t)):a!=null?Xu(e,f,Ht(a)):n!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ht(h):e.removeAttribute("name")}function Jo(e,t,a,n,i,u,f,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Qu(e);return}a=a!=null?""+Ht(a):"",t=t!=null?""+Ht(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=h?e.checked:!!n,e.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Qu(e)}function Xu(e,t,a){t==="number"&&os(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Wn(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Ht(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Fo(e,t,a){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ht(a):""}function Po(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(c(92));if(Ne(n)){if(1<n.length)throw Error(c(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ht(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Qu(e)}function In(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Dp=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 Wo(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Dp.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Io(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var i in t)n=t[i],t.hasOwnProperty(i)&&a[i]!==n&&Wo(e,i,n)}else for(var u in t)t.hasOwnProperty(u)&&Wo(e,u,t[u])}function Zu(e){if(e.indexOf("-")===-1)return!1;switch(e){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 kp=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"]]),Up=/^[\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 fs(e){return Up.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ya(){}var $u=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var el=null,tl=null;function ef(e){var t=Jn(e);if(t&&(e=t.stateNode)){var a=e[bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var i=n[bt]||null;if(!i)throw Error(c(90));Vu(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&Ko(n)}break e;case"textarea":Fo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Wn(e,!!a.multiple,t,!1)}}}var Ju=!1;function tf(e,t,a){if(Ju)return e(t,a);Ju=!0;try{var n=e(t);return n}finally{if(Ju=!1,(el!==null||tl!==null)&&(Ws(),el&&(t=el,e=tl,tl=el=null,ef(t),e)))for(t=0;t<e.length;t++)ef(e[t])}}function Wl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[bt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fu=!1;if(ga)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Fu=!1}var qa=null,Pu=null,ds=null;function af(){if(ds)return ds;var e,t=Pu,a=t.length,n,i="value"in qa?qa.value:qa.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(n=1;n<=f&&t[a-n]===i[u-n];n++);return ds=i.slice(e,1<n?1-n:void 0)}function hs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ms(){return!0}function nf(){return!1}function xt(e){function t(a,n,i,u,f){this._reactName=a,this._targetInst=i,this.type=n,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(a=e[h],this[h]=a?a(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ms:nf,this.isPropagationStopped=nf,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ps=xt(bn),ei=T({},bn,{view:0,detail:0}),Lp=xt(ei),Wu,Iu,ti,ys=T({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ti&&(ti&&e.type==="mousemove"?(Wu=e.screenX-ti.screenX,Iu=e.screenY-ti.screenY):Iu=Wu=0,ti=e),Wu)},movementY:function(e){return"movementY"in e?e.movementY:Iu}}),lf=xt(ys),Hp=T({},ys,{dataTransfer:0}),qp=xt(Hp),Bp=T({},ei,{relatedTarget:0}),er=xt(Bp),Gp=T({},bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Yp=xt(Gp),Qp=T({},bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Vp=xt(Qp),Xp=T({},bn,{data:0}),sf=xt(Xp),Zp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$p={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"},Kp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kp[e])?!!t[e]:!1}function tr(){return Jp}var Fp=T({},ei,{key:function(e){if(e.key){var t=Zp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$p[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,charCode:function(e){return e.type==="keypress"?hs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Pp=xt(Fp),Wp=T({},ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=xt(Wp),Ip=T({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr}),ey=xt(Ip),ty=T({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ay=xt(ty),ny=T({},ys,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ly=xt(ny),iy=T({},bn,{newState:0,oldState:0}),sy=xt(iy),uy=[9,13,27,32],ar=ga&&"CompositionEvent"in window,ai=null;ga&&"documentMode"in document&&(ai=document.documentMode);var ry=ga&&"TextEvent"in window&&!ai,rf=ga&&(!ar||ai&&8<ai&&11>=ai),cf=" ",of=!1;function ff(e,t){switch(e){case"keyup":return uy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function df(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var al=!1;function cy(e,t){switch(e){case"compositionend":return df(t);case"keypress":return t.which!==32?null:(of=!0,cf);case"textInput":return e=t.data,e===cf&&of?null:e;default:return null}}function oy(e,t){if(al)return e==="compositionend"||!ar&&ff(e,t)?(e=af(),ds=Pu=qa=null,al=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rf&&t.locale!=="ko"?null:t.data;default:return null}}var fy={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 hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fy[e.type]:t==="textarea"}function mf(e,t,a,n){el?tl?tl.push(n):tl=[n]:el=n,t=iu(t,"onChange"),0<t.length&&(a=new ps("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var ni=null,li=null;function dy(e){Fh(e,0)}function gs(e){var t=Pl(e);if(Ko(t))return e}function pf(e,t){if(e==="change")return t}var yf=!1;if(ga){var nr;if(ga){var lr="oninput"in document;if(!lr){var gf=document.createElement("div");gf.setAttribute("oninput","return;"),lr=typeof gf.oninput=="function"}nr=lr}else nr=!1;yf=nr&&(!document.documentMode||9<document.documentMode)}function vf(){ni&&(ni.detachEvent("onpropertychange",bf),li=ni=null)}function bf(e){if(e.propertyName==="value"&&gs(li)){var t=[];mf(t,li,e,Ku(e)),tf(dy,t)}}function hy(e,t,a){e==="focusin"?(vf(),ni=t,li=a,ni.attachEvent("onpropertychange",bf)):e==="focusout"&&vf()}function my(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gs(li)}function py(e,t){if(e==="click")return gs(t)}function yy(e,t){if(e==="input"||e==="change")return gs(t)}function gy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wt=typeof Object.is=="function"?Object.is:gy;function ii(e,t){if(wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var i=a[n];if(!Xn.call(t,i)||!wt(e[i],t[i]))return!1}return!0}function xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sf(e,t){var a=xf(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=xf(a)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=os(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=os(e.document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var vy=ga&&"documentMode"in document&&11>=document.documentMode,nl=null,sr=null,si=null,ur=!1;function jf(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ur||nl==null||nl!==os(n)||(n=nl,"selectionStart"in n&&ir(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),si&&ii(si,n)||(si=n,n=iu(sr,"onSelect"),0<n.length&&(t=new ps("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=nl)))}function xn(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ll={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionrun:xn("Transition","TransitionRun"),transitionstart:xn("Transition","TransitionStart"),transitioncancel:xn("Transition","TransitionCancel"),transitionend:xn("Transition","TransitionEnd")},rr={},Af={};ga&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete ll.animationend.animation,delete ll.animationiteration.animation,delete ll.animationstart.animation),"TransitionEvent"in window||delete ll.transitionend.transition);function Sn(e){if(rr[e])return rr[e];if(!ll[e])return e;var t=ll[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Af)return rr[e]=t[a];return e}var _f=Sn("animationend"),Nf=Sn("animationiteration"),Cf=Sn("animationstart"),by=Sn("transitionrun"),xy=Sn("transitionstart"),Sy=Sn("transitioncancel"),wf=Sn("transitionend"),Of=new Map,cr="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(" ");cr.push("scrollEnd");function Wt(e,t){Of.set(e,t),vn(t,[e])}var vs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bt=[],il=0,or=0;function bs(){for(var e=il,t=or=il=0;t<e;){var a=Bt[t];Bt[t++]=null;var n=Bt[t];Bt[t++]=null;var i=Bt[t];Bt[t++]=null;var u=Bt[t];if(Bt[t++]=null,n!==null&&i!==null){var f=n.pending;f===null?i.next=i:(i.next=f.next,f.next=i),n.pending=i}u!==0&&Mf(a,i,u)}}function xs(e,t,a,n){Bt[il++]=e,Bt[il++]=t,Bt[il++]=a,Bt[il++]=n,or|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function fr(e,t,a,n){return xs(e,t,a,n),Ss(e)}function En(e,t){return xs(e,null,null,t),Ss(e)}function Mf(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,n=u.alternate,n!==null&&(n.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Ct(a),e=u.hiddenUpdates,n=e[i],n===null?e[i]=[t]:n.push(t),t.lane=a|536870912),u):null}function Ss(e){if(50<Ci)throw Ci=0,xc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var sl={};function Ey(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,a,n){return new Ey(e,t,a,n)}function dr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function va(e,t){var a=e.alternate;return a===null?(a=Ot(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Es(e,t,a,n,i,u){var f=0;if(n=e,typeof e=="function")dr(e)&&(f=1);else if(typeof e=="string")f=Ng(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=Ot(31,a,t,i),e.elementType=le,e.lanes=u,e;case O:return Tn(a.children,i,u,t);case Y:f=8,i|=24;break;case G:return e=Ot(12,a,t,i|2),e.elementType=G,e.lanes=u,e;case ne:return e=Ot(13,a,t,i),e.elementType=ne,e.lanes=u,e;case Q:return e=Ot(19,a,t,i),e.elementType=Q,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:f=10;break e;case W:f=9;break e;case V:f=11;break e;case F:f=14;break e;case he:f=16,n=null;break e}f=29,a=Error(c(130,e===null?"null":typeof e,"")),n=null}return t=Ot(f,a,t,i),t.elementType=e,t.type=n,t.lanes=u,t}function Tn(e,t,a,n){return e=Ot(7,e,n,t),e.lanes=a,e}function hr(e,t,a){return e=Ot(6,e,null,t),e.lanes=a,e}function Rf(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function mr(e,t,a){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Df=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var a=Df.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Vn(t)},Df.set(e,t),t)}return{value:e,source:t,stack:Vn(t)}}var ul=[],rl=0,Ts=null,ui=0,Yt=[],Qt=0,Ba=null,sa=1,ua="";function ba(e,t){ul[rl++]=ui,ul[rl++]=Ts,Ts=e,ui=t}function kf(e,t,a){Yt[Qt++]=sa,Yt[Qt++]=ua,Yt[Qt++]=Ba,Ba=e;var n=sa;e=ua;var i=32-Ct(n)-1;n&=~(1<<i),a+=1;var u=32-Ct(t)+i;if(30<u){var f=i-i%5;u=(n&(1<<f)-1).toString(32),n>>=f,i-=f,sa=1<<32-Ct(t)+i|a<<i|n,ua=u+e}else sa=1<<u|a<<i|n,ua=e}function pr(e){e.return!==null&&(ba(e,1),kf(e,1,0))}function yr(e){for(;e===Ts;)Ts=ul[--rl],ul[rl]=null,ui=ul[--rl],ul[rl]=null;for(;e===Ba;)Ba=Yt[--Qt],Yt[Qt]=null,ua=Yt[--Qt],Yt[Qt]=null,sa=Yt[--Qt],Yt[Qt]=null}function Uf(e,t){Yt[Qt++]=sa,Yt[Qt++]=ua,Yt[Qt++]=Ba,sa=t.id,ua=t.overflow,Ba=e}var rt=null,He=null,Te=!1,Ga=null,Vt=!1,gr=Error(c(519));function Ya(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ri(Gt(t,e)),gr}function Lf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[ut]=e,t[bt]=n,a){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(a=0;a<Oi.length;a++)xe(Oi[a],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Jo(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Po(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||em(t.textContent,a)?(n.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),n.onScroll!=null&&xe("scroll",t),n.onScrollEnd!=null&&xe("scrollend",t),n.onClick!=null&&(t.onclick=ya),t=!0):t=!1,t||Ya(e,!0)}function Hf(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 31:case 13:Vt=!1;return;case 27:case 3:Vt=!0;return;default:rt=rt.return}}function cl(e){if(e!==rt)return!1;if(!Te)return Hf(e),Te=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||kc(e.type,e.memoizedProps)),a=!a),a&&He&&Ya(e),Hf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));He=cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));He=cm(e)}else t===27?(t=He,an(e.type)?(e=Bc,Bc=null,He=e):He=t):He=rt?Zt(e.stateNode.nextSibling):null;return!0}function jn(){He=rt=null,Te=!1}function vr(){var e=Ga;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Ga=null),e}function ri(e){Ga===null?Ga=[e]:Ga.push(e)}var br=S(null),An=null,xa=null;function Qa(e,t,a){$(br,t._currentValue),t._currentValue=a}function Sa(e){e._currentValue=br.current,D(br)}function xr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Sr(e,t,a,n){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var h=u;u=i;for(var x=0;x<t.length;x++)if(h.context===t[x]){u.lanes|=a,h=u.alternate,h!==null&&(h.lanes|=a),xr(u.return,a,e),n||(f=null);break e}u=h.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(c(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),xr(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function ol(e,t,a,n){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var h=i.type;wt(i.pendingProps.value,f.value)||(e!==null?e.push(h):e=[h])}}else if(i===ee.current){if(f=i.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ki):e=[ki])}i=i.return}e!==null&&Sr(t,e,a,n),t.flags|=262144}function js(e){for(e=e.firstContext;e!==null;){if(!wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _n(e){An=e,xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return qf(An,e)}function As(e,t){return An===null&&_n(e),qf(e,t)}function qf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},xa===null){if(e===null)throw Error(c(308));xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xa=xa.next=t;return a}var Ty=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},jy=l.unstable_scheduleCallback,Ay=l.unstable_NormalPriority,Fe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Er(){return{controller:new Ty,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&jy(Ay,function(){e.controller.abort()})}var oi=null,Tr=0,fl=0,dl=null;function _y(e,t){if(oi===null){var a=oi=[];Tr=0,fl=_c(),dl={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Tr++,t.then(Bf,Bf),t}function Bf(){if(--Tr===0&&oi!==null){dl!==null&&(dl.status="fulfilled");var e=oi;oi=null,fl=0,dl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ny(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(n.status="rejected",n.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),n}var Gf=R.S;R.S=function(e,t){jh=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&_y(e,t),Gf!==null&&Gf(e,t)};var Nn=S(null);function jr(){var e=Nn.current;return e!==null?e:Le.pooledCache}function _s(e,t){t===null?$(Nn,Nn.current):$(Nn,t.pool)}function Yf(){var e=jr();return e===null?null:{parent:Fe._currentValue,pool:e}}var hl=Error(c(460)),Ar=Error(c(474)),Ns=Error(c(542)),Cs={then:function(){}};function Qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ya,ya),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e;default:if(typeof t.status=="string")t.then(ya,ya);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=n}},function(n){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zf(e),e}throw wn=t,hl}}function Cn(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wn=a,hl):a}}var wn=null;function Xf(){if(wn===null)throw Error(c(459));var e=wn;return wn=null,e}function Zf(e){if(e===hl||e===Ns)throw Error(c(483))}var ml=null,fi=0;function ws(e){var t=fi;return fi+=1,ml===null&&(ml=[]),Vf(ml,e,t)}function di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Os(e,t){throw t.$$typeof===z?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $f(e){function t(j,E){if(e){var _=j.deletions;_===null?(j.deletions=[E],j.flags|=16):_.push(E)}}function a(j,E){if(!e)return null;for(;E!==null;)t(j,E),E=E.sibling;return null}function n(j){for(var E=new Map;j!==null;)j.key!==null?E.set(j.key,j):E.set(j.index,j),j=j.sibling;return E}function i(j,E){return j=va(j,E),j.index=0,j.sibling=null,j}function u(j,E,_){return j.index=_,e?(_=j.alternate,_!==null?(_=_.index,_<E?(j.flags|=67108866,E):_):(j.flags|=67108866,E)):(j.flags|=1048576,E)}function f(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function h(j,E,_,L){return E===null||E.tag!==6?(E=hr(_,j.mode,L),E.return=j,E):(E=i(E,_),E.return=j,E)}function x(j,E,_,L){var ie=_.type;return ie===O?k(j,E,_.props.children,L,_.key):E!==null&&(E.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===he&&Cn(ie)===E.type)?(E=i(E,_.props),di(E,_),E.return=j,E):(E=Es(_.type,_.key,_.props,null,j.mode,L),di(E,_),E.return=j,E)}function N(j,E,_,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=mr(_,j.mode,L),E.return=j,E):(E=i(E,_.children||[]),E.return=j,E)}function k(j,E,_,L,ie){return E===null||E.tag!==7?(E=Tn(_,j.mode,L,ie),E.return=j,E):(E=i(E,_),E.return=j,E)}function B(j,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=hr(""+E,j.mode,_),E.return=j,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case q:return _=Es(E.type,E.key,E.props,null,j.mode,_),di(_,E),_.return=j,_;case X:return E=mr(E,j.mode,_),E.return=j,E;case he:return E=Cn(E),B(j,E,_)}if(Ne(E)||Ge(E))return E=Tn(E,j.mode,_,null),E.return=j,E;if(typeof E.then=="function")return B(j,ws(E),_);if(E.$$typeof===K)return B(j,As(j,E),_);Os(j,E)}return null}function w(j,E,_,L){var ie=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ie!==null?null:h(j,E,""+_,L);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case q:return _.key===ie?x(j,E,_,L):null;case X:return _.key===ie?N(j,E,_,L):null;case he:return _=Cn(_),w(j,E,_,L)}if(Ne(_)||Ge(_))return ie!==null?null:k(j,E,_,L,null);if(typeof _.then=="function")return w(j,E,ws(_),L);if(_.$$typeof===K)return w(j,E,As(j,_),L);Os(j,_)}return null}function M(j,E,_,L,ie){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return j=j.get(_)||null,h(E,j,""+L,ie);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case q:return j=j.get(L.key===null?_:L.key)||null,x(E,j,L,ie);case X:return j=j.get(L.key===null?_:L.key)||null,N(E,j,L,ie);case he:return L=Cn(L),M(j,E,_,L,ie)}if(Ne(L)||Ge(L))return j=j.get(_)||null,k(E,j,L,ie,null);if(typeof L.then=="function")return M(j,E,_,ws(L),ie);if(L.$$typeof===K)return M(j,E,_,As(E,L),ie);Os(E,L)}return null}function I(j,E,_,L){for(var ie=null,Ae=null,ae=E,ye=E=0,Ee=null;ae!==null&&ye<_.length;ye++){ae.index>ye?(Ee=ae,ae=null):Ee=ae.sibling;var _e=w(j,ae,_[ye],L);if(_e===null){ae===null&&(ae=Ee);break}e&&ae&&_e.alternate===null&&t(j,ae),E=u(_e,E,ye),Ae===null?ie=_e:Ae.sibling=_e,Ae=_e,ae=Ee}if(ye===_.length)return a(j,ae),Te&&ba(j,ye),ie;if(ae===null){for(;ye<_.length;ye++)ae=B(j,_[ye],L),ae!==null&&(E=u(ae,E,ye),Ae===null?ie=ae:Ae.sibling=ae,Ae=ae);return Te&&ba(j,ye),ie}for(ae=n(ae);ye<_.length;ye++)Ee=M(ae,j,ye,_[ye],L),Ee!==null&&(e&&Ee.alternate!==null&&ae.delete(Ee.key===null?ye:Ee.key),E=u(Ee,E,ye),Ae===null?ie=Ee:Ae.sibling=Ee,Ae=Ee);return e&&ae.forEach(function(rn){return t(j,rn)}),Te&&ba(j,ye),ie}function ue(j,E,_,L){if(_==null)throw Error(c(151));for(var ie=null,Ae=null,ae=E,ye=E=0,Ee=null,_e=_.next();ae!==null&&!_e.done;ye++,_e=_.next()){ae.index>ye?(Ee=ae,ae=null):Ee=ae.sibling;var rn=w(j,ae,_e.value,L);if(rn===null){ae===null&&(ae=Ee);break}e&&ae&&rn.alternate===null&&t(j,ae),E=u(rn,E,ye),Ae===null?ie=rn:Ae.sibling=rn,Ae=rn,ae=Ee}if(_e.done)return a(j,ae),Te&&ba(j,ye),ie;if(ae===null){for(;!_e.done;ye++,_e=_.next())_e=B(j,_e.value,L),_e!==null&&(E=u(_e,E,ye),Ae===null?ie=_e:Ae.sibling=_e,Ae=_e);return Te&&ba(j,ye),ie}for(ae=n(ae);!_e.done;ye++,_e=_.next())_e=M(ae,j,ye,_e.value,L),_e!==null&&(e&&_e.alternate!==null&&ae.delete(_e.key===null?ye:_e.key),E=u(_e,E,ye),Ae===null?ie=_e:Ae.sibling=_e,Ae=_e);return e&&ae.forEach(function(Hg){return t(j,Hg)}),Te&&ba(j,ye),ie}function De(j,E,_,L){if(typeof _=="object"&&_!==null&&_.type===O&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case q:e:{for(var ie=_.key;E!==null;){if(E.key===ie){if(ie=_.type,ie===O){if(E.tag===7){a(j,E.sibling),L=i(E,_.props.children),L.return=j,j=L;break e}}else if(E.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===he&&Cn(ie)===E.type){a(j,E.sibling),L=i(E,_.props),di(L,_),L.return=j,j=L;break e}a(j,E);break}else t(j,E);E=E.sibling}_.type===O?(L=Tn(_.props.children,j.mode,L,_.key),L.return=j,j=L):(L=Es(_.type,_.key,_.props,null,j.mode,L),di(L,_),L.return=j,j=L)}return f(j);case X:e:{for(ie=_.key;E!==null;){if(E.key===ie)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){a(j,E.sibling),L=i(E,_.children||[]),L.return=j,j=L;break e}else{a(j,E);break}else t(j,E);E=E.sibling}L=mr(_,j.mode,L),L.return=j,j=L}return f(j);case he:return _=Cn(_),De(j,E,_,L)}if(Ne(_))return I(j,E,_,L);if(Ge(_)){if(ie=Ge(_),typeof ie!="function")throw Error(c(150));return _=ie.call(_),ue(j,E,_,L)}if(typeof _.then=="function")return De(j,E,ws(_),L);if(_.$$typeof===K)return De(j,E,As(j,_),L);Os(j,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(a(j,E.sibling),L=i(E,_),L.return=j,j=L):(a(j,E),L=hr(_,j.mode,L),L.return=j,j=L),f(j)):a(j,E)}return function(j,E,_,L){try{fi=0;var ie=De(j,E,_,L);return ml=null,ie}catch(ae){if(ae===hl||ae===Ns)throw ae;var Ae=Ot(29,ae,null,j.mode);return Ae.lanes=L,Ae.return=j,Ae}finally{}}}var On=$f(!0),Kf=$f(!1),Va=!1;function _r(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Ce&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=Ss(e),Mf(e,null,a),t}return xs(e,n,t,a),Ss(e)}function hi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ho(e,a)}}function Cr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var wr=!1;function mi(){if(wr){var e=dl;if(e!==null)throw e}}function pi(e,t,a,n){wr=!1;var i=e.updateQueue;Va=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var x=h,N=x.next;x.next=null,f===null?u=N:f.next=N,f=x;var k=e.alternate;k!==null&&(k=k.updateQueue,h=k.lastBaseUpdate,h!==f&&(h===null?k.firstBaseUpdate=N:h.next=N,k.lastBaseUpdate=x))}if(u!==null){var B=i.baseState;f=0,k=N=x=null,h=u;do{var w=h.lane&-536870913,M=w!==h.lane;if(M?(Se&w)===w:(n&w)===w){w!==0&&w===fl&&(wr=!0),k!==null&&(k=k.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var I=e,ue=h;w=t;var De=a;switch(ue.tag){case 1:if(I=ue.payload,typeof I=="function"){B=I.call(De,B,w);break e}B=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ue.payload,w=typeof I=="function"?I.call(De,B,w):I,w==null)break e;B=T({},B,w);break e;case 2:Va=!0}}w=h.callback,w!==null&&(e.flags|=64,M&&(e.flags|=8192),M=i.callbacks,M===null?i.callbacks=[w]:M.push(w))}else M={lane:w,tag:h.tag,payload:h.payload,callback:h.callback,next:null},k===null?(N=k=M,x=B):k=k.next=M,f|=w;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;M=h,h=M.next,M.next=null,i.lastBaseUpdate=M,i.shared.pending=null}}while(!0);k===null&&(x=B),i.baseState=x,i.firstBaseUpdate=N,i.lastBaseUpdate=k,u===null&&(i.shared.lanes=0),Pa|=f,e.lanes=f,e.memoizedState=B}}function Jf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Ff(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jf(a[e],t)}var pl=S(null),Ms=S(0);function Pf(e,t){e=Oa,$(Ms,e),$(pl,t),Oa=e|t.baseLanes}function Or(){$(Ms,Oa),$(pl,pl.current)}function Mr(){Oa=Ms.current,D(pl),D(Ms)}var Mt=S(null),Xt=null;function $a(e){var t=e.alternate;$(Ke,Ke.current&1),$(Mt,e),Xt===null&&(t===null||pl.current!==null||t.memoizedState!==null)&&(Xt=e)}function zr(e){$(Ke,Ke.current),$(Mt,e),Xt===null&&(Xt=e)}function Wf(e){e.tag===22?($(Ke,Ke.current),$(Mt,e),Xt===null&&(Xt=e)):Ka()}function Ka(){$(Ke,Ke.current),$(Mt,Mt.current)}function zt(e){D(Mt),Xt===e&&(Xt=null),D(Ke)}var Ke=S(0);function zs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hc(a)||qc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ea=0,pe=null,ze=null,Pe=null,Rs=!1,yl=!1,Mn=!1,Ds=0,yi=0,gl=null,Cy=0;function Xe(){throw Error(c(321))}function Rr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!wt(e[a],t[a]))return!1;return!0}function Dr(e,t,a,n,i,u){return Ea=u,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?kd:Jr,Mn=!1,u=a(n,i),Mn=!1,yl&&(u=ed(t,a,n,i)),If(e),u}function If(e){R.H=bi;var t=ze!==null&&ze.next!==null;if(Ea=0,Pe=ze=pe=null,Rs=!1,yi=0,gl=null,t)throw Error(c(300));e===null||We||(e=e.dependencies,e!==null&&js(e)&&(We=!0))}function ed(e,t,a,n){pe=e;var i=0;do{if(yl&&(gl=null),yi=0,yl=!1,25<=i)throw Error(c(301));if(i+=1,Pe=ze=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=Ud,u=t(a,n)}while(yl);return u}function wy(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?gi(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(pe.flags|=1024),t}function kr(){var e=Ds!==0;return Ds=0,e}function Ur(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Lr(e){if(Rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rs=!1}Ea=0,Pe=ze=pe=null,yl=!1,yi=Ds=0,gl=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?pe.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Je(){if(ze===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Pe===null?pe.memoizedState:Pe.next;if(t!==null)Pe=t,ze=e;else{if(e===null)throw pe.alternate===null?Error(c(467)):Error(c(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Pe===null?pe.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function ks(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(e){var t=yi;return yi+=1,gl===null&&(gl=[]),e=Vf(gl,e,t),t=pe,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?kd:Jr),e}function Us(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return gi(e);if(e.$$typeof===K)return ct(e)}throw Error(c(438,String(e)))}function Hr(e){var t=null,a=pe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=pe.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ks(),pe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Be;return t.index++,a}function Ta(e,t){return typeof t=="function"?t(e):t}function Ls(e){var t=Je();return qr(t,ze,e)}function qr(e,t,a){var n=e.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=a;var i=e.baseQueue,u=n.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,n.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var h=f=null,x=null,N=t,k=!1;do{var B=N.lane&-536870913;if(B!==N.lane?(Se&B)===B:(Ea&B)===B){var w=N.revertLane;if(w===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),B===fl&&(k=!0);else if((Ea&w)===w){N=N.next,w===fl&&(k=!0);continue}else B={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(h=x=B,f=u):x=x.next=B,pe.lanes|=w,Pa|=w;B=N.action,Mn&&a(u,B),u=N.hasEagerState?N.eagerState:a(u,B)}else w={lane:B,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},x===null?(h=x=w,f=u):x=x.next=w,pe.lanes|=B,Pa|=B;N=N.next}while(N!==null&&N!==t);if(x===null?f=u:x.next=h,!wt(u,e.memoizedState)&&(We=!0,k&&(a=dl,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=x,n.lastRenderedState=u}return i===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Br(e){var t=Je(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var n=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);wt(u,t.memoizedState)||(We=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,n]}function td(e,t,a){var n=pe,i=Je(),u=Te;if(u){if(a===void 0)throw Error(c(407));a=a()}else a=t();var f=!wt((ze||i).memoizedState,a);if(f&&(i.memoizedState=a,We=!0),i=i.queue,Qr(ld.bind(null,n,i,e),[e]),i.getSnapshot!==t||f||Pe!==null&&Pe.memoizedState.tag&1){if(n.flags|=2048,vl(9,{destroy:void 0},nd.bind(null,n,i,a,t),null),Le===null)throw Error(c(349));u||(Ea&127)!==0||ad(n,t,a)}return a}function ad(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=pe.updateQueue,t===null?(t=ks(),pe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nd(e,t,a,n){t.value=a,t.getSnapshot=n,id(t)&&sd(e)}function ld(e,t,a){return a(function(){id(t)&&sd(e)})}function id(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!wt(e,a)}catch{return!0}}function sd(e){var t=En(e,2);t!==null&&At(t,e,2)}function Gr(e){var t=gt();if(typeof e=="function"){var a=e;if(e=a(),Mn){tt(!0);try{a()}finally{tt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t}function ud(e,t,a,n){return e.baseState=a,qr(e,ze,typeof n=="function"?n:Ta)}function Oy(e,t,a,n,i){if(Bs(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?a(!0):u.isTransition=!1,n(u),a=t.pending,a===null?(u.next=t.pending=u,rd(t,u)):(u.next=a.next,t.pending=a.next=u)}}function rd(e,t){var a=t.action,n=t.payload,i=e.state;if(t.isTransition){var u=R.T,f={};R.T=f;try{var h=a(i,n),x=R.S;x!==null&&x(f,h),cd(e,t,h)}catch(N){Yr(e,t,N)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=a(i,n),cd(e,t,u)}catch(N){Yr(e,t,N)}}function cd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){od(e,t,n)},function(n){return Yr(e,t,n)}):od(e,t,a)}function od(e,t,a){t.status="fulfilled",t.value=a,fd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,rd(e,a)))}function Yr(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,fd(t),t=t.next;while(t!==n)}e.action=null}function fd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dd(e,t){return t}function hd(e,t){if(Te){var a=Le.formState;if(a!==null){e:{var n=pe;if(Te){if(He){t:{for(var i=He,u=Vt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Zt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){He=Zt(i.nextSibling),n=i.data==="F!";break e}}Ya(n)}n=!1}n&&(t=a[0])}}return a=gt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dd,lastRenderedState:t},a.queue=n,a=zd.bind(null,pe,n),n.dispatch=a,n=Gr(!1),u=Kr.bind(null,pe,!1,n.queue),n=gt(),i={state:t,dispatch:null,action:e,pending:null},n.queue=i,a=Oy.bind(null,pe,i,u,a),i.dispatch=a,n.memoizedState=e,[t,a,!1]}function md(e){var t=Je();return pd(t,ze,e)}function pd(e,t,a){if(t=qr(e,t,dd)[0],e=Ls(Ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=gi(t)}catch(f){throw f===hl?Ns:f}else n=t;t=Je();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(pe.flags|=2048,vl(9,{destroy:void 0},My.bind(null,i,a),null)),[n,u,e]}function My(e,t){e.action=t}function yd(e){var t=Je(),a=ze;if(a!==null)return pd(t,a,e);Je(),t=t.memoizedState,a=Je();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function vl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=pe.updateQueue,t===null&&(t=ks(),pe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function gd(){return Je().memoizedState}function Hs(e,t,a,n){var i=gt();pe.flags|=e,i.memoizedState=vl(1|t,{destroy:void 0},a,n===void 0?null:n)}function qs(e,t,a,n){var i=Je();n=n===void 0?null:n;var u=i.memoizedState.inst;ze!==null&&n!==null&&Rr(n,ze.memoizedState.deps)?i.memoizedState=vl(t,u,a,n):(pe.flags|=e,i.memoizedState=vl(1|t,u,a,n))}function vd(e,t){Hs(8390656,8,e,t)}function Qr(e,t){qs(2048,8,e,t)}function zy(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=ks(),pe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function bd(e){var t=Je().memoizedState;return zy({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function xd(e,t){return qs(4,2,e,t)}function Sd(e,t){return qs(4,4,e,t)}function Ed(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Td(e,t,a){a=a!=null?a.concat([e]):null,qs(4,4,Ed.bind(null,t,e),a)}function Vr(){}function jd(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Rr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Ad(e,t){var a=Je();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Rr(t,n[1]))return n[0];if(n=e(),Mn){tt(!0);try{e()}finally{tt(!1)}}return a.memoizedState=[n,t],n}function Xr(e,t,a){return a===void 0||(Ea&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=_h(),pe.lanes|=e,Pa|=e,a)}function _d(e,t,a,n){return wt(a,t)?a:pl.current!==null?(e=Xr(e,a,n),wt(e,t)||(We=!0),e):(Ea&42)===0||(Ea&1073741824)!==0&&(Se&261930)===0?(We=!0,e.memoizedState=a):(e=_h(),pe.lanes|=e,Pa|=e,t)}function Nd(e,t,a,n,i){var u=Z.p;Z.p=u!==0&&8>u?u:8;var f=R.T,h={};R.T=h,Kr(e,!1,t,a);try{var x=i(),N=R.S;if(N!==null&&N(h,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var k=Ny(x,n);vi(e,t,k,kt(e))}else vi(e,t,n,kt(e))}catch(B){vi(e,t,{then:function(){},status:"rejected",reason:B},kt())}finally{Z.p=u,f!==null&&h.types!==null&&(f.types=h.types),R.T=f}}function Ry(){}function Zr(e,t,a,n){if(e.tag!==5)throw Error(c(476));var i=Cd(e).queue;Nd(e,i,t,J,a===null?Ry:function(){return wd(e),a(n)})}function Cd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wd(e){var t=Cd(e);t.next===null&&(t=e.alternate.memoizedState),vi(e,t.next.queue,{},kt())}function $r(){return ct(ki)}function Od(){return Je().memoizedState}function Md(){return Je().memoizedState}function Dy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=kt();e=Xa(a);var n=Za(t,e,a);n!==null&&(At(n,t,a),hi(n,t,a)),t={cache:Er()},e.payload=t;return}t=t.return}}function ky(e,t,a){var n=kt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Rd(t,a):(a=fr(e,t,a,n),a!==null&&(At(a,e,n),Dd(a,t,n)))}function zd(e,t,a){var n=kt();vi(e,t,a,n)}function vi(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Rd(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,h=u(f,a);if(i.hasEagerState=!0,i.eagerState=h,wt(h,f))return xs(e,t,i,0),Le===null&&bs(),!1}catch{}finally{}if(a=fr(e,t,i,n),a!==null)return At(a,e,n),Dd(a,t,n),!0}return!1}function Kr(e,t,a,n){if(n={lane:2,revertLane:_c(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(c(479))}else t=fr(e,a,n,2),t!==null&&At(t,e,2)}function Bs(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Rd(e,t){yl=Rs=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Dd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ho(e,a)}}var bi={readContext:ct,use:Us,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};bi.useEffectEvent=Xe;var kd={readContext:ct,use:Us,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:vd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Hs(4194308,4,Ed.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Hs(4194308,4,e,t)},useInsertionEffect:function(e,t){Hs(4,2,e,t)},useMemo:function(e,t){var a=gt();t=t===void 0?null:t;var n=e();if(Mn){tt(!0);try{e()}finally{tt(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=gt();if(a!==void 0){var i=a(t);if(Mn){tt(!0);try{a(t)}finally{tt(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=ky.bind(null,pe,e),[n.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gr(e);var t=e.queue,a=zd.bind(null,pe,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vr,useDeferredValue:function(e,t){var a=gt();return Xr(a,e,t)},useTransition:function(){var e=Gr(!1);return e=Nd.bind(null,pe,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=pe,i=gt();if(Te){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),Le===null)throw Error(c(349));(Se&127)!==0||ad(n,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,vd(ld.bind(null,n,u,e),[e]),n.flags|=2048,vl(9,{destroy:void 0},nd.bind(null,n,u,a,t),null),a},useId:function(){var e=gt(),t=Le.identifierPrefix;if(Te){var a=ua,n=sa;a=(n&~(1<<32-Ct(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ds++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Cy++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:$r,useFormState:hd,useActionState:hd,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Kr.bind(null,pe,!0,a),a.dispatch=t,[e,t]},useMemoCache:Hr,useCacheRefresh:function(){return gt().memoizedState=Dy.bind(null,pe)},useEffectEvent:function(e){var t=gt(),a={impl:e};return t.memoizedState=a,function(){if((Ce&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},Jr={readContext:ct,use:Us,useCallback:jd,useContext:ct,useEffect:Qr,useImperativeHandle:Td,useInsertionEffect:xd,useLayoutEffect:Sd,useMemo:Ad,useReducer:Ls,useRef:gd,useState:function(){return Ls(Ta)},useDebugValue:Vr,useDeferredValue:function(e,t){var a=Je();return _d(a,ze.memoizedState,e,t)},useTransition:function(){var e=Ls(Ta)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:td,useId:Od,useHostTransitionStatus:$r,useFormState:md,useActionState:md,useOptimistic:function(e,t){var a=Je();return ud(a,ze,e,t)},useMemoCache:Hr,useCacheRefresh:Md};Jr.useEffectEvent=bd;var Ud={readContext:ct,use:Us,useCallback:jd,useContext:ct,useEffect:Qr,useImperativeHandle:Td,useInsertionEffect:xd,useLayoutEffect:Sd,useMemo:Ad,useReducer:Br,useRef:gd,useState:function(){return Br(Ta)},useDebugValue:Vr,useDeferredValue:function(e,t){var a=Je();return ze===null?Xr(a,e,t):_d(a,ze.memoizedState,e,t)},useTransition:function(){var e=Br(Ta)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:gi(e),t]},useSyncExternalStore:td,useId:Od,useHostTransitionStatus:$r,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var a=Je();return ze!==null?ud(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hr,useCacheRefresh:Md};Ud.useEffectEvent=bd;function Fr(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:T({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Pr={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=kt(),i=Xa(n);i.payload=t,a!=null&&(i.callback=a),t=Za(e,i,n),t!==null&&(At(t,e,n),hi(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=kt(),i=Xa(n);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Za(e,i,n),t!==null&&(At(t,e,n),hi(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=kt(),n=Xa(a);n.tag=2,t!=null&&(n.callback=t),t=Za(e,n,a),t!==null&&(At(t,e,a),hi(t,e,a))}};function Ld(e,t,a,n,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,f):t.prototype&&t.prototype.isPureReactComponent?!ii(a,n)||!ii(i,u):!0}function Hd(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&Pr.enqueueReplaceState(t,t.state,null)}function zn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=T({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function qd(e){vs(e)}function Bd(e){console.error(e)}function Gd(e){vs(e)}function Gs(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Yd(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Wr(e,t,a){return a=Xa(a),a.tag=3,a.payload={element:null},a.callback=function(){Gs(e,t)},a}function Qd(e){return e=Xa(e),e.tag=3,e}function Vd(e,t,a,n){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=n.value;e.payload=function(){return i(u)},e.callback=function(){Yd(t,a,n)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Yd(t,a,n),typeof i!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function Uy(e,t,a,n,i){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&ol(t,a,i,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Xt===null?Is():a.alternate===null&&Ze===0&&(Ze=3),a.flags&=-257,a.flags|=65536,a.lanes=i,n===Cs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Tc(e,n,i)),!1;case 22:return a.flags|=65536,n===Cs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Tc(e,n,i)),!1}throw Error(c(435,a.tag))}return Tc(e,n,i),Is(),!1}if(Te)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,n!==gr&&(e=Error(c(422),{cause:n}),ri(Gt(e,a)))):(n!==gr&&(t=Error(c(423),{cause:n}),ri(Gt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,n=Gt(n,a),i=Wr(e.stateNode,n,i),Cr(e,i),Ze!==4&&(Ze=2)),!1;var u=Error(c(520),{cause:n});if(u=Gt(u,a),Ni===null?Ni=[u]:Ni.push(u),Ze!==4&&(Ze=2),t===null)return!0;n=Gt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=Wr(a.stateNode,n,e),Cr(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wa===null||!Wa.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Qd(i),Vd(i,e,a,n),Cr(a,i),!1}a=a.return}while(a!==null);return!1}var Ir=Error(c(461)),We=!1;function ot(e,t,a,n){t.child=e===null?Kf(t,null,a,n):On(t,e.child,a,n)}function Xd(e,t,a,n,i){a=a.render;var u=t.ref;if("ref"in n){var f={};for(var h in n)h!=="ref"&&(f[h]=n[h])}else f=n;return _n(t),n=Dr(e,t,a,f,u,i),h=kr(),e!==null&&!We?(Ur(e,t,i),ja(e,t,i)):(Te&&h&&pr(t),t.flags|=1,ot(e,t,n,i),t.child)}function Zd(e,t,a,n,i){if(e===null){var u=a.type;return typeof u=="function"&&!dr(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,$d(e,t,u,n,i)):(e=Es(a.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!uc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:ii,a(f,n)&&e.ref===t.ref)return ja(e,t,i)}return t.flags|=1,e=va(u,n),e.ref=t.ref,e.return=t,t.child=e}function $d(e,t,a,n,i){if(e!==null){var u=e.memoizedProps;if(ii(u,n)&&e.ref===t.ref)if(We=!1,t.pendingProps=n=u,uc(e,i))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,ja(e,t,i)}return ec(e,t,a,n,i)}function Kd(e,t,a,n){var i=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~u}else n=0,t.child=null;return Jd(e,t,u,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_s(t,u!==null?u.cachePool:null),u!==null?Pf(t,u):Or(),Wf(t);else return n=t.lanes=536870912,Jd(e,t,u!==null?u.baseLanes|a:a,a,n)}else u!==null?(_s(t,u.cachePool),Pf(t,u),Ka(),t.memoizedState=null):(e!==null&&_s(t,null),Or(),Ka());return ot(e,t,i,a),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jd(e,t,a,n,i){var u=jr();return u=u===null?null:{parent:Fe._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&_s(t,null),Or(),Wf(t),e!==null&&ol(e,t,n,!0),t.childLanes=i,null}function Ys(e,t){return t=Vs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fd(e,t,a){return On(t,e.child,null,a),e=Ys(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function Ly(e,t,a){var n=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(n.mode==="hidden")return e=Ys(t,n),t.lanes=536870912,xi(null,e);if(zr(t),(e=He)?(e=rm(e,Vt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:sa,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=Rf(e),a.return=t,t.child=a,rt=t,He=null)):e=null,e===null)throw Ya(t);return t.lanes=536870912,null}return Ys(t,n)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(zr(t),i)if(t.flags&256)t.flags&=-257,t=Fd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(We||ol(e,t,a,!1),i=(a&e.childLanes)!==0,We||i){if(n=Le,n!==null&&(f=qo(n,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,En(e,f),At(n,e,f),Ir;Is(),t=Fd(e,t,a)}else e=u.treeContext,He=Zt(f.nextSibling),rt=t,Te=!0,Ga=null,Vt=!1,e!==null&&Uf(t,e),t=Ys(t,n),t.flags|=4096;return t}return e=va(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Qs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ec(e,t,a,n,i){return _n(t),a=Dr(e,t,a,n,void 0,i),n=kr(),e!==null&&!We?(Ur(e,t,i),ja(e,t,i)):(Te&&n&&pr(t),t.flags|=1,ot(e,t,a,i),t.child)}function Pd(e,t,a,n,i,u){return _n(t),t.updateQueue=null,a=ed(t,n,a,i),If(e),n=kr(),e!==null&&!We?(Ur(e,t,u),ja(e,t,u)):(Te&&n&&pr(t),t.flags|=1,ot(e,t,a,u),t.child)}function Wd(e,t,a,n,i){if(_n(t),t.stateNode===null){var u=sl,f=a.contextType;typeof f=="object"&&f!==null&&(u=ct(f)),u=new a(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Pr,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},_r(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?ct(f):sl,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Fr(t,a,f,n),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Pr.enqueueReplaceState(u,u.state,null),pi(t,n,u,i),mi(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var h=t.memoizedProps,x=zn(a,h);u.props=x;var N=u.context,k=a.contextType;f=sl,typeof k=="object"&&k!==null&&(f=ct(k));var B=a.getDerivedStateFromProps;k=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||N!==f)&&Hd(t,u,n,f),Va=!1;var w=t.memoizedState;u.state=w,pi(t,n,u,i),mi(),N=t.memoizedState,h||w!==N||Va?(typeof B=="function"&&(Fr(t,a,B,n),N=t.memoizedState),(x=Va||Ld(t,a,x,n,w,N,f))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=N),u.props=n,u.state=N,u.context=f,n=x):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,Nr(e,t),f=t.memoizedProps,k=zn(a,f),u.props=k,B=t.pendingProps,w=u.context,N=a.contextType,x=sl,typeof N=="object"&&N!==null&&(x=ct(N)),h=a.getDerivedStateFromProps,(N=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==B||w!==x)&&Hd(t,u,n,x),Va=!1,w=t.memoizedState,u.state=w,pi(t,n,u,i),mi();var M=t.memoizedState;f!==B||w!==M||Va||e!==null&&e.dependencies!==null&&js(e.dependencies)?(typeof h=="function"&&(Fr(t,a,h,n),M=t.memoizedState),(k=Va||Ld(t,a,k,n,w,M,x)||e!==null&&e.dependencies!==null&&js(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,M,x),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,M,x)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=M),u.props=n,u.state=M,u.context=x,n=k):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,Qs(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=On(t,e.child,null,i),t.child=On(t,null,a,i)):ot(e,t,a,i),t.memoizedState=u.state,e=t.child):e=ja(e,t,i),e}function Id(e,t,a,n){return jn(),t.flags|=256,ot(e,t,a,n),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ac(e){return{baseLanes:e,cachePool:Yf()}}function nc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Dt),e}function eh(e,t,a){var n=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(i?$a(t):Ka(),(e=He)?(e=rm(e,Vt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ba!==null?{id:sa,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=Rf(e),a.return=t,t.child=a,rt=t,He=null)):e=null,e===null)throw Ya(t);return qc(e)?t.lanes=32:t.lanes=536870912,null}var h=n.children;return n=n.fallback,i?(Ka(),i=t.mode,h=Vs({mode:"hidden",children:h},i),n=Tn(n,i,a,null),h.return=t,n.return=t,h.sibling=n,t.child=h,n=t.child,n.memoizedState=ac(a),n.childLanes=nc(e,f,a),t.memoizedState=tc,xi(null,n)):($a(t),lc(t,h))}var x=e.memoizedState;if(x!==null&&(h=x.dehydrated,h!==null)){if(u)t.flags&256?($a(t),t.flags&=-257,t=ic(e,t,a)):t.memoizedState!==null?(Ka(),t.child=e.child,t.flags|=128,t=null):(Ka(),h=n.fallback,i=t.mode,n=Vs({mode:"visible",children:n.children},i),h=Tn(h,i,a,null),h.flags|=2,n.return=t,h.return=t,n.sibling=h,t.child=n,On(t,e.child,null,a),n=t.child,n.memoizedState=ac(a),n.childLanes=nc(e,f,a),t.memoizedState=tc,t=xi(null,n));else if($a(t),qc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var N=f.dgst;f=N,n=Error(c(419)),n.stack="",n.digest=f,ri({value:n,source:null,stack:null}),t=ic(e,t,a)}else if(We||ol(e,t,a,!1),f=(a&e.childLanes)!==0,We||f){if(f=Le,f!==null&&(n=qo(f,a),n!==0&&n!==x.retryLane))throw x.retryLane=n,En(e,n),At(f,e,n),Ir;Hc(h)||Is(),t=ic(e,t,a)}else Hc(h)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,He=Zt(h.nextSibling),rt=t,Te=!0,Ga=null,Vt=!1,e!==null&&Uf(t,e),t=lc(t,n.children),t.flags|=4096);return t}return i?(Ka(),h=n.fallback,i=t.mode,x=e.child,N=x.sibling,n=va(x,{mode:"hidden",children:n.children}),n.subtreeFlags=x.subtreeFlags&65011712,N!==null?h=va(N,h):(h=Tn(h,i,a,null),h.flags|=2),h.return=t,n.return=t,n.sibling=h,t.child=n,xi(null,n),n=t.child,h=e.child.memoizedState,h===null?h=ac(a):(i=h.cachePool,i!==null?(x=Fe._currentValue,i=i.parent!==x?{parent:x,pool:x}:i):i=Yf(),h={baseLanes:h.baseLanes|a,cachePool:i}),n.memoizedState=h,n.childLanes=nc(e,f,a),t.memoizedState=tc,xi(e.child,n)):($a(t),a=e.child,e=a.sibling,a=va(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function lc(e,t){return t=Vs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vs(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function ic(e,t,a){return On(t,e.child,null,a),e=lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function th(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),xr(e.return,t,a)}function sc(e,t,a,n,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function ah(e,t,a){var n=t.pendingProps,i=n.revealOrder,u=n.tail;n=n.children;var f=Ke.current,h=(f&2)!==0;if(h?(f=f&1|2,t.flags|=128):f&=1,$(Ke,f),ot(e,t,n,a),n=Te?ui:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&th(e,a,t);else if(e.tag===19)th(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&zs(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),sc(t,!1,i,a,u,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zs(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}sc(t,!0,a,null,u,n);break;case"together":sc(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ja(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Pa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ol(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=va(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=va(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function uc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&js(e)))}function Hy(e,t,a){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),Qa(t,Fe,e.memoizedState.cache),jn();break;case 27:case 5:la(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:Qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?($a(t),t.flags|=128,null):(a&t.child.childLanes)!==0?eh(e,t,a):($a(t),e=ja(e,t,a),e!==null?e.sibling:null);$a(t);break;case 19:var i=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(ol(e,t,a,!1),n=(a&t.childLanes)!==0),i){if(n)return ah(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$(Ke,Ke.current),n)break;return null;case 22:return t.lanes=0,Kd(e,t,a,t.pendingProps);case 24:Qa(t,Fe,e.memoizedState.cache)}return ja(e,t,a)}function nh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!uc(e,a)&&(t.flags&128)===0)return We=!1,Hy(e,t,a);We=(e.flags&131072)!==0}else We=!1,Te&&(t.flags&1048576)!==0&&kf(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Cn(t.elementType),t.type=e,typeof e=="function")dr(e)?(n=zn(e,n),t.tag=1,t=Wd(null,t,e,n,a)):(t.tag=0,t=ec(null,t,e,n,a));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=Xd(null,t,e,n,a);break e}else if(i===F){t.tag=14,t=Zd(null,t,e,n,a);break e}}throw t=we(e)||e,Error(c(306,t,""))}}return t;case 0:return ec(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,i=zn(n,t.pendingProps),Wd(e,t,n,i,a);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(c(387));n=t.pendingProps;var u=t.memoizedState;i=u.element,Nr(e,t),pi(t,n,null,a);var f=t.memoizedState;if(n=f.cache,Qa(t,Fe,n),n!==u.cache&&Sr(t,[Fe],a,!0),mi(),n=f.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Id(e,t,n,a);break e}else if(n!==i){i=Gt(Error(c(424)),t),ri(i),t=Id(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Zt(e.firstChild),rt=t,Te=!0,Ga=null,Vt=!0,a=Kf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(jn(),n===i){t=ja(e,t,a);break e}ot(e,t,n,a)}t=t.child}return t;case 26:return Qs(e,t),e===null?(a=mm(t.type,null,t.pendingProps,null))?t.memoizedState=a:Te||(a=t.type,e=t.pendingProps,n=su(oe.current).createElement(a),n[ut]=t,n[bt]=e,ft(n,a,e),lt(n),t.stateNode=n):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return la(t),e===null&&Te&&(n=t.stateNode=fm(t.type,t.pendingProps,oe.current),rt=t,Vt=!0,i=He,an(t.type)?(Bc=i,He=Zt(n.firstChild)):He=i),ot(e,t,t.pendingProps.children,a),Qs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((i=n=He)&&(n=mg(n,t.type,t.pendingProps,Vt),n!==null?(t.stateNode=n,rt=t,He=Zt(n.firstChild),Vt=!1,i=!0):i=!1),i||Ya(t)),la(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,n=u.children,kc(i,u)?n=null:f!==null&&kc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=Dr(e,t,wy,null,null,a),ki._currentValue=i),Qs(e,t),ot(e,t,n,a),t.child;case 6:return e===null&&Te&&((e=a=He)&&(a=pg(a,t.pendingProps,Vt),a!==null?(t.stateNode=a,rt=t,He=null,e=!0):e=!1),e||Ya(t)),null;case 13:return eh(e,t,a);case 4:return et(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=On(t,null,n,a):ot(e,t,n,a),t.child;case 11:return Xd(e,t,t.type,t.pendingProps,a);case 7:return ot(e,t,t.pendingProps,a),t.child;case 8:return ot(e,t,t.pendingProps.children,a),t.child;case 12:return ot(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Qa(t,t.type,n.value),ot(e,t,n.children,a),t.child;case 9:return i=t.type._context,n=t.pendingProps.children,_n(t),i=ct(i),n=n(i),t.flags|=1,ot(e,t,n,a),t.child;case 14:return Zd(e,t,t.type,t.pendingProps,a);case 15:return $d(e,t,t.type,t.pendingProps,a);case 19:return ah(e,t,a);case 31:return Ly(e,t,a);case 22:return Kd(e,t,a,t.pendingProps);case 24:return _n(t),n=ct(Fe),e===null?(i=jr(),i===null&&(i=Le,u=Er(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:n,cache:i},_r(t),Qa(t,Fe,i)):((e.lanes&a)!==0&&(Nr(e,t),pi(t,null,null,a),mi()),i=e.memoizedState,u=t.memoizedState,i.parent!==n?(i={parent:n,cache:n},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Qa(t,Fe,n)):(n=u.cache,Qa(t,Fe,n),n!==i.cache&&Sr(t,[Fe],a,!0))),ot(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Aa(e){e.flags|=4}function rc(e,t,a,n,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Oh())e.flags|=8192;else throw wn=Cs,Ar}else e.flags&=-16777217}function lh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(Oh())e.flags|=8192;else throw wn=Cs,Ar}function Xs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Uo():536870912,e.lanes|=t,El|=t)}function Si(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags&65011712,n|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function qy(e,t,a){var n=t.pendingProps;switch(yr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sa(Fe),Ue(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(cl(t)?Aa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,vr())),qe(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(Aa(t),u!==null?(qe(t),lh(t,u)):(qe(t),rc(t,i,null,n,a))):u?u!==e.memoizedState?(Aa(t),qe(t),lh(t,u)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Aa(t),qe(t),rc(t,i,e,n,a)),null;case 27:if(Ft(t),a=oe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return qe(t),null}e=P.current,cl(t)?Lf(t):(e=fm(i,n,a),t.stateNode=e,Aa(t))}return qe(t),null;case 5:if(Ft(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(!n){if(t.stateNode===null)throw Error(c(166));return qe(t),null}if(u=P.current,cl(t))Lf(t);else{var f=su(oe.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?f.createElement(i,{is:n.is}):f.createElement(i)}}u[ut]=t,u[bt]=n;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(ft(u,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Aa(t)}}return qe(t),rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Aa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,cl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=rt,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[ut]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||em(e.nodeValue,a)),e||Ya(t,!0)}else e=su(e).createTextNode(n),e[ut]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=cl(t),a!==null){if(e===null){if(!n)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[ut]=t}else jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return qe(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=cl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[ut]=t}else jn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=vr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Xs(t,t.updateQueue),qe(t),null);case 4:return Ue(),e===null&&Oc(t.stateNode.containerInfo),qe(t),null;case 10:return Sa(t.type),qe(t),null;case 19:if(D(Ke),n=t.memoizedState,n===null)return qe(t),null;if(i=(t.flags&128)!==0,u=n.rendering,u===null)if(i)Si(n,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=zs(e),u!==null){for(t.flags|=128,Si(n,!1),e=u.updateQueue,t.updateQueue=e,Xs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zf(a,e),a=a.sibling;return $(Ke,Ke.current&1|2),Te&&ba(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&ht()>Fs&&(t.flags|=128,i=!0,Si(n,!1),t.lanes=4194304)}else{if(!i)if(e=zs(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Xs(t,e),Si(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!Te)return qe(t),null}else 2*ht()-n.renderingStartTime>Fs&&a!==536870912&&(t.flags|=128,i=!0,Si(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=ht(),e.sibling=null,a=Ke.current,$(Ke,i?a&1|2:a&1),Te&&ba(t,n.treeForkCount),e):(qe(t),null);case 22:case 23:return zt(t),Mr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&Xs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&D(Nn),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sa(Fe),qe(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function By(e,t){switch(yr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sa(Fe),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ft(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Ke),null;case 4:return Ue(),null;case 10:return Sa(t.type),null;case 22:case 23:return zt(t),Mr(),e!==null&&D(Nn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sa(Fe),null;case 25:return null;default:return null}}function ih(e,t){switch(yr(t),t.tag){case 3:Sa(Fe),Ue();break;case 26:case 27:case 5:Ft(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:D(Ke);break;case 10:Sa(t.type);break;case 22:case 23:zt(t),Mr(),e!==null&&D(Nn);break;case 24:Sa(Fe)}}function Ei(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var u=a.create,f=a.inst;n=u(),f.destroy=n}a=a.next}while(a!==i)}}catch(h){Me(t,t.return,h)}}function Ja(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){var f=n.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,i=t;var x=a,N=h;try{N()}catch(k){Me(i,x,k)}}}n=n.next}while(n!==u)}}catch(k){Me(t,t.return,k)}}function sh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Ff(t,a)}catch(n){Me(e,e.return,n)}}}function uh(e,t,a){a.props=zn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Me(e,t,n)}}function Ti(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){Me(e,t,i)}}function ra(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Me(e,t,i)}else a.current=null}function rh(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){Me(e,e.return,i)}}function cc(e,t,a){try{var n=e.stateNode;rg(n,e.type,a,t),n[bt]=t}catch(i){Me(e,e.return,i)}}function ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&an(e.type)||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ch(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&an(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ya));else if(n!==4&&(n===27&&an(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(fc(e,t,a),e=e.sibling;e!==null;)fc(e,t,a),e=e.sibling}function Zs(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&an(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zs(e,t,a),e=e.sibling;e!==null;)Zs(e,t,a),e=e.sibling}function oh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ft(t,n,a),t[ut]=e,t[bt]=a}catch(u){Me(e,e.return,u)}}var _a=!1,Ie=!1,dc=!1,fh=typeof WeakSet=="function"?WeakSet:Set,it=null;function Gy(e,t){if(e=e.containerInfo,Rc=hu,e=Tf(e),ir(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,h=-1,x=-1,N=0,k=0,B=e,w=null;t:for(;;){for(var M;B!==a||i!==0&&B.nodeType!==3||(h=f+i),B!==u||n!==0&&B.nodeType!==3||(x=f+n),B.nodeType===3&&(f+=B.nodeValue.length),(M=B.firstChild)!==null;)w=B,B=M;for(;;){if(B===e)break t;if(w===a&&++N===i&&(h=f),w===u&&++k===n&&(x=f),(M=B.nextSibling)!==null)break;B=w,w=B.parentNode}B=M}a=h===-1||x===-1?null:{start:h,end:x}}else a=null}a=a||{start:0,end:0}}else a=null;for(Dc={focusedElem:e,selectionRange:a},hu=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,n=a.stateNode;try{var I=zn(a.type,i);e=n.getSnapshotBeforeUpdate(I,u),n.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Me(a,a.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Lc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Lc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,it=e;break}it=t.return}}function dh(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ca(e,a),n&4&&Ei(5,a);break;case 1:if(Ca(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(a,a.return,f)}else{var i=zn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(a,a.return,f)}}n&64&&sh(a),n&512&&Ti(a,a.return);break;case 3:if(Ca(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Ff(e,t)}catch(f){Me(a,a.return,f)}}break;case 27:t===null&&n&4&&oh(a);case 26:case 5:Ca(e,a),t===null&&n&4&&rh(a),n&512&&Ti(a,a.return);break;case 12:Ca(e,a);break;case 31:Ca(e,a),n&4&&ph(e,a);break;case 13:Ca(e,a),n&4&&yh(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Fy.bind(null,a),yg(e,a))));break;case 22:if(n=a.memoizedState!==null||_a,!n){t=t!==null&&t.memoizedState!==null||Ie,i=_a;var u=Ie;_a=n,(Ie=t)&&!u?wa(e,a,(a.subtreeFlags&8772)!==0):Ca(e,a),_a=i,Ie=u}break;case 30:break;default:Ca(e,a)}}function hh(e){var t=e.alternate;t!==null&&(e.alternate=null,hh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qe=null,St=!1;function Na(e,t,a){for(a=a.child;a!==null;)mh(e,t,a),a=a.sibling}function mh(e,t,a){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(me,a)}catch{}switch(a.tag){case 26:Ie||ra(a,t),Na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ie||ra(a,t);var n=Qe,i=St;an(a.type)&&(Qe=a.stateNode,St=!1),Na(e,t,a),zi(a.stateNode),Qe=n,St=i;break;case 5:Ie||ra(a,t);case 6:if(n=Qe,i=St,Qe=null,Na(e,t,a),Qe=n,St=i,Qe!==null)if(St)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(a.stateNode)}catch(u){Me(a,t,u)}else try{Qe.removeChild(a.stateNode)}catch(u){Me(a,t,u)}break;case 18:Qe!==null&&(St?(e=Qe,sm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ol(e)):sm(Qe,a.stateNode));break;case 4:n=Qe,i=St,Qe=a.stateNode.containerInfo,St=!0,Na(e,t,a),Qe=n,St=i;break;case 0:case 11:case 14:case 15:Ja(2,a,t),Ie||Ja(4,a,t),Na(e,t,a);break;case 1:Ie||(ra(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&uh(a,t,n)),Na(e,t,a);break;case 21:Na(e,t,a);break;case 22:Ie=(n=Ie)||a.memoizedState!==null,Na(e,t,a),Ie=n;break;default:Na(e,t,a)}}function ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ol(e)}catch(a){Me(t,t.return,a)}}}function yh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ol(e)}catch(a){Me(t,t.return,a)}}function Yy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fh),t;default:throw Error(c(435,e.tag))}}function $s(e,t){var a=Yy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var i=Py.bind(null,e,n);n.then(i,i)}})}function Et(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],u=e,f=t,h=f;e:for(;h!==null;){switch(h.tag){case 27:if(an(h.type)){Qe=h.stateNode,St=!1;break e}break;case 5:Qe=h.stateNode,St=!1;break e;case 3:case 4:Qe=h.stateNode.containerInfo,St=!0;break e}h=h.return}if(Qe===null)throw Error(c(160));mh(u,f,i),Qe=null,St=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gh(t,e),t=t.sibling}var It=null;function gh(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Et(t,e),Tt(e),n&4&&(Ja(3,e,e.return),Ei(3,e),Ja(5,e,e.return));break;case 1:Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),n&64&&_a&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var i=It;if(Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),n&4){var u=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(n){case"title":u=i.getElementsByTagName("title")[0],(!u||u[Fl]||u[ut]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(n),i.head.insertBefore(u,i.querySelector("head > title"))),ft(u,n,a),u[ut]=e,lt(u),n=u;break e;case"link":var f=gm("link","href",i).get(n+(a.href||""));if(f){for(var h=0;h<f.length;h++)if(u=f[h],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(h,1);break t}}u=i.createElement(n),ft(u,n,a),i.head.appendChild(u);break;case"meta":if(f=gm("meta","content",i).get(n+(a.content||""))){for(h=0;h<f.length;h++)if(u=f[h],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(h,1);break t}}u=i.createElement(n),ft(u,n,a),i.head.appendChild(u);break;default:throw Error(c(468,n))}u[ut]=e,lt(u),n=u}e.stateNode=n}else vm(i,e.type,e.stateNode);else e.stateNode=ym(i,n,e.memoizedProps);else u!==n?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,n===null?vm(i,e.type,e.stateNode):ym(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&cc(e,e.memoizedProps,a.memoizedProps)}break;case 27:Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),a!==null&&n&4&&cc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Et(t,e),Tt(e),n&512&&(Ie||a===null||ra(a,a.return)),e.flags&32){i=e.stateNode;try{In(i,"")}catch(I){Me(e,e.return,I)}}n&4&&e.stateNode!=null&&(i=e.memoizedProps,cc(e,i,a!==null?a.memoizedProps:i)),n&1024&&(dc=!0);break;case 6:if(Et(t,e),Tt(e),n&4){if(e.stateNode===null)throw Error(c(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(I){Me(e,e.return,I)}}break;case 3:if(cu=null,i=It,It=uu(t.containerInfo),Et(t,e),It=i,Tt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Ol(t.containerInfo)}catch(I){Me(e,e.return,I)}dc&&(dc=!1,vh(e));break;case 4:n=It,It=uu(e.stateNode.containerInfo),Et(t,e),Tt(e),It=n;break;case 12:Et(t,e),Tt(e);break;case 31:Et(t,e),Tt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,$s(e,n)));break;case 13:Et(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Js=ht()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,$s(e,n)));break;case 22:i=e.memoizedState!==null;var x=a!==null&&a.memoizedState!==null,N=_a,k=Ie;if(_a=N||i,Ie=k||x,Et(t,e),Ie=k,_a=N,Tt(e),n&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||x||_a||Ie||Rn(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){x=a=t;try{if(u=x.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=x.stateNode;var B=x.memoizedProps.style,w=B!=null&&B.hasOwnProperty("display")?B.display:null;h.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(I){Me(x,x.return,I)}}}else if(t.tag===6){if(a===null){x=t;try{x.stateNode.nodeValue=i?"":x.memoizedProps}catch(I){Me(x,x.return,I)}}}else if(t.tag===18){if(a===null){x=t;try{var M=x.stateNode;i?um(M,!0):um(x.stateNode,!1)}catch(I){Me(x,x.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,$s(e,a))));break;case 19:Et(t,e),Tt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,$s(e,n)));break;case 30:break;case 21:break;default:Et(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(ch(n)){a=n;break}n=n.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var i=a.stateNode,u=oc(e);Zs(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(In(f,""),a.flags&=-33);var h=oc(e);Zs(e,h,f);break;case 3:case 4:var x=a.stateNode.containerInfo,N=oc(e);fc(e,N,x);break;default:throw Error(c(161))}}catch(k){Me(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dh(e,t.alternate,t),t=t.sibling}function Rn(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ja(4,t,t.return),Rn(t);break;case 1:ra(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&uh(t,t.return,a),Rn(t);break;case 27:zi(t.stateNode);case 26:case 5:ra(t,t.return),Rn(t);break;case 22:t.memoizedState===null&&Rn(t);break;case 30:Rn(t);break;default:Rn(t)}e=e.sibling}}function wa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:wa(i,u,a),Ei(4,u);break;case 1:if(wa(i,u,a),n=u,i=n.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(N){Me(n,n.return,N)}if(n=u,i=n.updateQueue,i!==null){var h=n.stateNode;try{var x=i.shared.hiddenCallbacks;if(x!==null)for(i.shared.hiddenCallbacks=null,i=0;i<x.length;i++)Jf(x[i],h)}catch(N){Me(n,n.return,N)}}a&&f&64&&sh(u),Ti(u,u.return);break;case 27:oh(u);case 26:case 5:wa(i,u,a),a&&n===null&&f&4&&rh(u),Ti(u,u.return);break;case 12:wa(i,u,a);break;case 31:wa(i,u,a),a&&f&4&&ph(i,u);break;case 13:wa(i,u,a),a&&f&4&&yh(i,u);break;case 22:u.memoizedState===null&&wa(i,u,a),Ti(u,u.return);break;case 30:break;default:wa(i,u,a)}t=t.sibling}}function hc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ci(a))}function mc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function ea(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bh(e,t,a,n),t=t.sibling}function bh(e,t,a,n){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ea(e,t,a,n),i&2048&&Ei(9,t);break;case 1:ea(e,t,a,n);break;case 3:ea(e,t,a,n),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(i&2048){ea(e,t,a,n),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,h=u.onPostCommit;typeof h=="function"&&h(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Me(t,t.return,x)}}else ea(e,t,a,n);break;case 31:ea(e,t,a,n);break;case 13:ea(e,t,a,n);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?ea(e,t,a,n):ji(e,t):u._visibility&2?ea(e,t,a,n):(u._visibility|=2,bl(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),i&2048&&hc(f,t);break;case 24:ea(e,t,a,n),i&2048&&mc(t.alternate,t);break;default:ea(e,t,a,n)}}function bl(e,t,a,n,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,h=a,x=n,N=f.flags;switch(f.tag){case 0:case 11:case 15:bl(u,f,h,x,i),Ei(8,f);break;case 23:break;case 22:var k=f.stateNode;f.memoizedState!==null?k._visibility&2?bl(u,f,h,x,i):ji(u,f):(k._visibility|=2,bl(u,f,h,x,i)),i&&N&2048&&hc(f.alternate,f);break;case 24:bl(u,f,h,x,i),i&&N&2048&&mc(f.alternate,f);break;default:bl(u,f,h,x,i)}t=t.sibling}}function ji(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,i=n.flags;switch(n.tag){case 22:ji(a,n),i&2048&&hc(n.alternate,n);break;case 24:ji(a,n),i&2048&&mc(n.alternate,n);break;default:ji(a,n)}t=t.sibling}}var Ai=8192;function xl(e,t,a){if(e.subtreeFlags&Ai)for(e=e.child;e!==null;)xh(e,t,a),e=e.sibling}function xh(e,t,a){switch(e.tag){case 26:xl(e,t,a),e.flags&Ai&&e.memoizedState!==null&&Cg(a,It,e.memoizedState,e.memoizedProps);break;case 5:xl(e,t,a);break;case 3:case 4:var n=It;It=uu(e.stateNode.containerInfo),xl(e,t,a),It=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ai,Ai=16777216,xl(e,t,a),Ai=n):xl(e,t,a));break;default:xl(e,t,a)}}function Sh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,Th(n,e)}Sh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Eh(e),e=e.sibling}function Eh(e){switch(e.tag){case 0:case 11:case 15:_i(e),e.flags&2048&&Ja(9,e,e.return);break;case 3:_i(e);break;case 12:_i(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ks(e)):_i(e);break;default:_i(e)}}function Ks(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];it=n,Th(n,e)}Sh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ja(8,t,t.return),Ks(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ks(t));break;default:Ks(t)}e=e.sibling}}function Th(e,t){for(;it!==null;){var a=it;switch(a.tag){case 0:case 11:case 15:Ja(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ci(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,it=n;else e:for(a=e;it!==null;){n=it;var i=n.sibling,u=n.return;if(hh(n),n===a){it=null;break e}if(i!==null){i.return=u,it=i;break e}it=u}}}var Qy={getCacheForType:function(e){var t=ct(Fe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct(Fe).controller.signal}},Vy=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Le=null,be=null,Se=0,Oe=0,Rt=null,Fa=!1,Sl=!1,pc=!1,Oa=0,Ze=0,Pa=0,Dn=0,yc=0,Dt=0,El=0,Ni=null,jt=null,gc=!1,Js=0,jh=0,Fs=1/0,Ps=null,Wa=null,at=0,Ia=null,Tl=null,Ma=0,vc=0,bc=null,Ah=null,Ci=0,xc=null;function kt(){return(Ce&2)!==0&&Se!==0?Se&-Se:R.T!==null?_c():Bo()}function _h(){if(Dt===0)if((Se&536870912)===0||Te){var e=is;is<<=1,(is&3932160)===0&&(is=262144),Dt=e}else Dt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),Dt}function At(e,t,a){(e===Le&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(jl(e,0),en(e,Se,Dt,!1)),Jl(e,a),((Ce&2)===0||e!==Le)&&(e===Le&&((Ce&2)===0&&(Dn|=a),Ze===4&&en(e,Se,Dt,!1)),ca(e))}function Nh(e,t,a){if((Ce&6)!==0)throw Error(c(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Kl(e,t),i=n?$y(e,t):Ec(e,t,!0),u=n;do{if(i===0){Sl&&!n&&en(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Xy(a)){i=Ec(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var h=e;i=Ni;var x=h.current.memoizedState.isDehydrated;if(x&&(jl(h,f).flags|=256),f=Ec(h,f,!1),f!==2){if(pc&&!x){h.errorRecoveryDisabledLanes|=u,Dn|=u,i=4;break e}u=jt,jt=i,u!==null&&(jt===null?jt=u:jt.push.apply(jt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){jl(e,0),en(e,t,0,!0);break}e:{switch(n=e,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:en(n,t,Dt,!Fa);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=Js+300-ht(),10<i)){if(en(n,t,Dt,!Fa),us(n,0,!0)!==0)break e;Ma=t,n.timeoutHandle=lm(Ch.bind(null,n,a,jt,Ps,gc,t,Dt,Dn,El,Fa,u,"Throttled",-0,0),i);break e}Ch(n,a,jt,Ps,gc,t,Dt,Dn,El,Fa,u,null,-0,0)}}break}while(!0);ca(e)}function Ch(e,t,a,n,i,u,f,h,x,N,k,B,w,M){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ya},xh(t,u,B);var I=(u&62914560)===u?Js-ht():(u&4194048)===u?jh-ht():0;if(I=wg(B,I),I!==null){Ma=u,e.cancelPendingCommit=I(Uh.bind(null,e,t,u,a,n,i,f,h,x,k,B,null,w,M)),en(e,u,f,!N);return}}Uh(e,t,u,a,n,i,f,h,x)}function Xy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var i=a[n],u=i.getSnapshot;i=i.value;try{if(!wt(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function en(e,t,a,n){t&=~yc,t&=~Dn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var i=t;0<i;){var u=31-Ct(i),f=1<<u;n[u]=-1,i&=~f}a!==0&&Lo(e,a,t)}function Ws(){return(Ce&6)===0?(wi(0),!1):!0}function Sc(){if(be!==null){if(Oe===0)var e=be.return;else e=be,xa=An=null,Lr(e),ml=null,fi=0,e=be;for(;e!==null;)ih(e.alternate,e),e=e.return;be=null}}function jl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,fg(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ma=0,Sc(),Le=e,be=a=va(e.current,null),Se=t,Oe=0,Rt=null,Fa=!1,Sl=Kl(e,t),pc=!1,El=Dt=yc=Dn=Pa=Ze=0,jt=Ni=null,gc=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Ct(n),u=1<<i;t|=e[i],n&=~u}return Oa=t,bs(),a}function wh(e,t){pe=null,R.H=bi,t===hl||t===Ns?(t=Xf(),Oe=3):t===Ar?(t=Xf(),Oe=4):Oe=t===Ir?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rt=t,be===null&&(Ze=1,Gs(e,Gt(t,e.current)))}function Oh(){var e=Mt.current;return e===null?!0:(Se&4194048)===Se?Xt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===Xt:!1}function Mh(){var e=R.H;return R.H=bi,e===null?bi:e}function zh(){var e=R.A;return R.A=Qy,e}function Is(){Ze=4,Fa||(Se&4194048)!==Se&&Mt.current!==null||(Sl=!0),(Pa&134217727)===0&&(Dn&134217727)===0||Le===null||en(Le,Se,Dt,!1)}function Ec(e,t,a){var n=Ce;Ce|=2;var i=Mh(),u=zh();(Le!==e||Se!==t)&&(Ps=null,jl(e,t)),t=!1;var f=Ze;e:do try{if(Oe!==0&&be!==null){var h=be,x=Rt;switch(Oe){case 8:Sc(),f=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var N=Oe;if(Oe=0,Rt=null,Al(e,h,x,N),a&&Sl){f=0;break e}break;default:N=Oe,Oe=0,Rt=null,Al(e,h,x,N)}}Zy(),f=Ze;break}catch(k){wh(e,k)}while(!0);return t&&e.shellSuspendCounter++,xa=An=null,Ce=n,R.H=i,R.A=u,be===null&&(Le=null,Se=0,bs()),f}function Zy(){for(;be!==null;)Rh(be)}function $y(e,t){var a=Ce;Ce|=2;var n=Mh(),i=zh();Le!==e||Se!==t?(Ps=null,Fs=ht()+500,jl(e,t)):Sl=Kl(e,t);e:do try{if(Oe!==0&&be!==null){t=be;var u=Rt;t:switch(Oe){case 1:Oe=0,Rt=null,Al(e,t,u,1);break;case 2:case 9:if(Qf(u)){Oe=0,Rt=null,Dh(t);break}t=function(){Oe!==2&&Oe!==9||Le!==e||(Oe=7),ca(e)},u.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Qf(u)?(Oe=0,Rt=null,Dh(t)):(Oe=0,Rt=null,Al(e,t,u,7));break;case 5:var f=null;switch(be.tag){case 26:f=be.memoizedState;case 5:case 27:var h=be;if(f?bm(f):h.stateNode.complete){Oe=0,Rt=null;var x=h.sibling;if(x!==null)be=x;else{var N=h.return;N!==null?(be=N,eu(N)):be=null}break t}}Oe=0,Rt=null,Al(e,t,u,5);break;case 6:Oe=0,Rt=null,Al(e,t,u,6);break;case 8:Sc(),Ze=6;break e;default:throw Error(c(462))}}Ky();break}catch(k){wh(e,k)}while(!0);return xa=An=null,R.H=n,R.A=i,Ce=a,be!==null?0:(Le=null,Se=0,bs(),Ze)}function Ky(){for(;be!==null&&!Uu();)Rh(be)}function Rh(e){var t=nh(e.alternate,e,Oa);e.memoizedProps=e.pendingProps,t===null?eu(e):be=t}function Dh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Pd(a,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Pd(a,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:Lr(t);default:ih(a,t),t=be=zf(t,Oa),t=nh(a,t,Oa)}e.memoizedProps=e.pendingProps,t===null?eu(e):be=t}function Al(e,t,a,n){xa=An=null,Lr(t),ml=null,fi=0;var i=t.return;try{if(Uy(e,i,t,a,Se)){Ze=1,Gs(e,Gt(a,e.current)),be=null;return}}catch(u){if(i!==null)throw be=i,u;Ze=1,Gs(e,Gt(a,e.current)),be=null;return}t.flags&32768?(Te||n===1?e=!0:Sl||(Se&536870912)!==0?e=!1:(Fa=e=!0,(n===2||n===9||n===3||n===6)&&(n=Mt.current,n!==null&&n.tag===13&&(n.flags|=16384))),kh(t,e)):eu(t)}function eu(e){var t=e;do{if((t.flags&32768)!==0){kh(t,Fa);return}e=t.return;var a=qy(t.alternate,t,Oa);if(a!==null){be=a;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ze===0&&(Ze=5)}function kh(e,t){do{var a=By(e.alternate,e);if(a!==null){a.flags&=32767,be=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=a}while(e!==null);Ze=6,be=null}function Uh(e,t,a,n,i,u,f,h,x){e.cancelPendingCommit=null;do tu();while(at!==0);if((Ce&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(u=t.lanes|t.childLanes,u|=or,Np(e,a,u,f,h,x),e===Le&&(be=Le=null,Se=0),Tl=t,Ia=e,Ma=a,vc=u,bc=i,Ah=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wy(yn,function(){return Gh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null,i=Z.p,Z.p=2,f=Ce,Ce|=4;try{Gy(e,t,a)}finally{Ce=f,Z.p=i,R.T=n}}at=1,Lh(),Hh(),qh()}}function Lh(){if(at===1){at=0;var e=Ia,t=Tl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var n=Z.p;Z.p=2;var i=Ce;Ce|=4;try{gh(t,e);var u=Dc,f=Tf(e.containerInfo),h=u.focusedElem,x=u.selectionRange;if(f!==h&&h&&h.ownerDocument&&Ef(h.ownerDocument.documentElement,h)){if(x!==null&&ir(h)){var N=x.start,k=x.end;if(k===void 0&&(k=N),"selectionStart"in h)h.selectionStart=N,h.selectionEnd=Math.min(k,h.value.length);else{var B=h.ownerDocument||document,w=B&&B.defaultView||window;if(w.getSelection){var M=w.getSelection(),I=h.textContent.length,ue=Math.min(x.start,I),De=x.end===void 0?ue:Math.min(x.end,I);!M.extend&&ue>De&&(f=De,De=ue,ue=f);var j=Sf(h,ue),E=Sf(h,De);if(j&&E&&(M.rangeCount!==1||M.anchorNode!==j.node||M.anchorOffset!==j.offset||M.focusNode!==E.node||M.focusOffset!==E.offset)){var _=B.createRange();_.setStart(j.node,j.offset),M.removeAllRanges(),ue>De?(M.addRange(_),M.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),M.addRange(_))}}}}for(B=[],M=h;M=M.parentNode;)M.nodeType===1&&B.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<B.length;h++){var L=B[h];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}hu=!!Rc,Dc=Rc=null}finally{Ce=i,Z.p=n,R.T=a}}e.current=t,at=2}}function Hh(){if(at===2){at=0;var e=Ia,t=Tl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var n=Z.p;Z.p=2;var i=Ce;Ce|=4;try{dh(e,t.alternate,t)}finally{Ce=i,Z.p=n,R.T=a}}at=3}}function qh(){if(at===4||at===3){at=0,Ii();var e=Ia,t=Tl,a=Ma,n=Ah;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?at=5:(at=0,Tl=Ia=null,Bh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Wa=null),Bu(a),t=t.stateNode,Ye&&typeof Ye.onCommitFiberRoot=="function")try{Ye.onCommitFiberRoot(me,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=R.T,i=Z.p,Z.p=2,R.T=null;try{for(var u=e.onRecoverableError,f=0;f<n.length;f++){var h=n[f];u(h.value,{componentStack:h.stack})}}finally{R.T=t,Z.p=i}}(Ma&3)!==0&&tu(),ca(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===xc?Ci++:(Ci=0,xc=e):Ci=0,wi(0)}}function Bh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function tu(){return Lh(),Hh(),qh(),Gh()}function Gh(){if(at!==5)return!1;var e=Ia,t=vc;vc=0;var a=Bu(Ma),n=R.T,i=Z.p;try{Z.p=32>a?32:a,R.T=null,a=bc,bc=null;var u=Ia,f=Ma;if(at=0,Tl=Ia=null,Ma=0,(Ce&6)!==0)throw Error(c(331));var h=Ce;if(Ce|=4,Eh(u.current),bh(u,u.current,f,a),Ce=h,wi(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(me,u)}catch{}return!0}finally{Z.p=i,R.T=n,Bh(e,t)}}function Yh(e,t,a){t=Gt(a,t),t=Wr(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(Jl(e,2),ca(e))}function Me(e,t,a){if(e.tag===3)Yh(e,e,a);else for(;t!==null;){if(t.tag===3){Yh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Wa===null||!Wa.has(n))){e=Gt(a,e),a=Qd(2),n=Za(t,a,2),n!==null&&(Vd(a,n,t,e),Jl(n,2),ca(n));break}}t=t.return}}function Tc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new Vy;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(pc=!0,i.add(a),e=Jy.bind(null,e,t,a),t.then(e,e))}function Jy(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Le===e&&(Se&a)===a&&(Ze===4||Ze===3&&(Se&62914560)===Se&&300>ht()-Js?(Ce&2)===0&&jl(e,0):yc|=a,El===Se&&(El=0)),ca(e)}function Qh(e,t){t===0&&(t=Uo()),e=En(e,t),e!==null&&(Jl(e,t),ca(e))}function Fy(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Qh(e,a)}function Py(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(t),Qh(e,a)}function Wy(e,t){return Zl(e,t)}var au=null,_l=null,jc=!1,nu=!1,Ac=!1,tn=0;function ca(e){e!==_l&&e.next===null&&(_l===null?au=_l=e:_l=_l.next=e),nu=!0,jc||(jc=!0,eg())}function wi(e,t){if(!Ac&&nu){Ac=!0;do for(var a=!1,n=au;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var u=0;else{var f=n.suspendedLanes,h=n.pingedLanes;u=(1<<31-Ct(42|e)+1)-1,u&=i&~(f&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,$h(n,u))}else u=Se,u=us(n,n===Le?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Kl(n,u)||(a=!0,$h(n,u));n=n.next}while(a);Ac=!1}}function Iy(){Vh()}function Vh(){nu=jc=!1;var e=0;tn!==0&&og()&&(e=tn);for(var t=ht(),a=null,n=au;n!==null;){var i=n.next,u=Xh(n,t);u===0?(n.next=null,a===null?au=i:a.next=i,i===null&&(_l=a)):(a=n,(e!==0||(u&3)!==0)&&(nu=!0)),n=i}at!==0&&at!==5||wi(e),tn!==0&&(tn=0)}function Xh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Ct(u),h=1<<f,x=i[f];x===-1?((h&a)===0||(h&n)!==0)&&(i[f]=_p(h,t)):x<=t&&(e.expiredLanes|=h),u&=~h}if(t=Le,a=Se,a=us(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&$l(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Kl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&$l(n),Bu(a)){case 2:case 8:a=Zn;break;case 32:a=yn;break;case 268435456:a=as;break;default:a=yn}return n=Zh.bind(null,e),a=Zl(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&$l(n),e.callbackPriority=2,e.callbackNode=null,2}function Zh(e,t){if(at!==0&&at!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(tu()&&e.callbackNode!==a)return null;var n=Se;return n=us(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Nh(e,n,t),Xh(e,ht()),e.callbackNode!=null&&e.callbackNode===a?Zh.bind(null,e):null)}function $h(e,t){if(tu())return null;Nh(e,t,!0)}function eg(){dg(function(){(Ce&6)!==0?Zl(es,Iy):Vh()})}function _c(){if(tn===0){var e=fl;e===0&&(e=ls,ls<<=1,(ls&261888)===0&&(ls=256)),tn=e}return tn}function Kh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fs(""+e)}function Jh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function tg(e,t,a,n,i){if(t==="submit"&&a&&a.stateNode===i){var u=Kh((i[bt]||null).action),f=n.submitter;f&&(t=(t=f[bt]||null)?Kh(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var h=new ps("action","action",null,n,i);e.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(tn!==0){var x=f?Jh(i,f):new FormData(i);Zr(a,{pending:!0,data:x,method:i.method,action:u},null,x)}}else typeof u=="function"&&(h.preventDefault(),x=f?Jh(i,f):new FormData(i),Zr(a,{pending:!0,data:x,method:i.method,action:u},u,x))},currentTarget:i}]})}}for(var Nc=0;Nc<cr.length;Nc++){var Cc=cr[Nc],ag=Cc.toLowerCase(),ng=Cc[0].toUpperCase()+Cc.slice(1);Wt(ag,"on"+ng)}Wt(_f,"onAnimationEnd"),Wt(Nf,"onAnimationIteration"),Wt(Cf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(by,"onTransitionRun"),Wt(xy,"onTransitionStart"),Wt(Sy,"onTransitionCancel"),Wt(wf,"onTransitionEnd"),Pn("onMouseEnter",["mouseout","mouseover"]),Pn("onMouseLeave",["mouseout","mouseover"]),Pn("onPointerEnter",["pointerout","pointerover"]),Pn("onPointerLeave",["pointerout","pointerover"]),vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),lg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function Fh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],i=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var f=n.length-1;0<=f;f--){var h=n[f],x=h.instance,N=h.currentTarget;if(h=h.listener,x!==u&&i.isPropagationStopped())break e;u=h,i.currentTarget=N;try{u(i)}catch(k){vs(k)}i.currentTarget=null,u=x}else for(f=0;f<n.length;f++){if(h=n[f],x=h.instance,N=h.currentTarget,h=h.listener,x!==u&&i.isPropagationStopped())break e;u=h,i.currentTarget=N;try{u(i)}catch(k){vs(k)}i.currentTarget=null,u=x}}}}function xe(e,t){var a=t[Gu];a===void 0&&(a=t[Gu]=new Set);var n=e+"__bubble";a.has(n)||(Ph(t,e,2,!1),a.add(n))}function wc(e,t,a){var n=0;t&&(n|=4),Ph(a,e,n,t)}var lu="_reactListening"+Math.random().toString(36).slice(2);function Oc(e){if(!e[lu]){e[lu]=!0,Qo.forEach(function(a){a!=="selectionchange"&&(lg.has(a)||wc(a,!1,e),wc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lu]||(t[lu]=!0,wc("selectionchange",!1,t))}}function Ph(e,t,a,n){switch(_m(t)){case 2:var i=zg;break;case 8:i=Rg;break;default:i=Xc}a=i.bind(null,t,a,e),i=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Mc(e,t,a,n,i){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var h=n.stateNode.containerInfo;if(h===i)break;if(f===4)for(f=n.return;f!==null;){var x=f.tag;if((x===3||x===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;h!==null;){if(f=Kn(h),f===null)return;if(x=f.tag,x===5||x===6||x===26||x===27){n=u=f;continue e}h=h.parentNode}}n=n.return}tf(function(){var N=u,k=Ku(a),B=[];e:{var w=Of.get(e);if(w!==void 0){var M=ps,I=e;switch(e){case"keypress":if(hs(a)===0)break e;case"keydown":case"keyup":M=Pp;break;case"focusin":I="focus",M=er;break;case"focusout":I="blur",M=er;break;case"beforeblur":case"afterblur":M=er;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=qp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=ey;break;case _f:case Nf:case Cf:M=Yp;break;case wf:M=ay;break;case"scroll":case"scrollend":M=Lp;break;case"wheel":M=ly;break;case"copy":case"cut":case"paste":M=Vp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=uf;break;case"toggle":case"beforetoggle":M=sy}var ue=(t&4)!==0,De=!ue&&(e==="scroll"||e==="scrollend"),j=ue?w!==null?w+"Capture":null:w;ue=[];for(var E=N,_;E!==null;){var L=E;if(_=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||_===null||j===null||(L=Wl(E,j),L!=null&&ue.push(Mi(E,L,_))),De)break;E=E.return}0<ue.length&&(w=new M(w,I,null,a,k),B.push({event:w,listeners:ue}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",w&&a!==$u&&(I=a.relatedTarget||a.fromElement)&&(Kn(I)||I[$n]))break e;if((M||w)&&(w=k.window===k?k:(w=k.ownerDocument)?w.defaultView||w.parentWindow:window,M?(I=a.relatedTarget||a.toElement,M=N,I=I?Kn(I):null,I!==null&&(De=m(I),ue=I.tag,I!==De||ue!==5&&ue!==27&&ue!==6)&&(I=null)):(M=null,I=N),M!==I)){if(ue=lf,L="onMouseLeave",j="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ue=uf,L="onPointerLeave",j="onPointerEnter",E="pointer"),De=M==null?w:Pl(M),_=I==null?w:Pl(I),w=new ue(L,E+"leave",M,a,k),w.target=De,w.relatedTarget=_,L=null,Kn(k)===N&&(ue=new ue(j,E+"enter",I,a,k),ue.target=_,ue.relatedTarget=De,L=ue),De=L,M&&I)t:{for(ue=ig,j=M,E=I,_=0,L=j;L;L=ue(L))_++;L=0;for(var ie=E;ie;ie=ue(ie))L++;for(;0<_-L;)j=ue(j),_--;for(;0<L-_;)E=ue(E),L--;for(;_--;){if(j===E||E!==null&&j===E.alternate){ue=j;break t}j=ue(j),E=ue(E)}ue=null}else ue=null;M!==null&&Wh(B,w,M,ue,!1),I!==null&&De!==null&&Wh(B,De,I,ue,!0)}}e:{if(w=N?Pl(N):window,M=w.nodeName&&w.nodeName.toLowerCase(),M==="select"||M==="input"&&w.type==="file")var Ae=pf;else if(hf(w))if(yf)Ae=yy;else{Ae=my;var ae=hy}else M=w.nodeName,!M||M.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?N&&Zu(N.elementType)&&(Ae=pf):Ae=py;if(Ae&&(Ae=Ae(e,N))){mf(B,Ae,a,k);break e}ae&&ae(e,w,N),e==="focusout"&&N&&w.type==="number"&&N.memoizedProps.value!=null&&Xu(w,"number",w.value)}switch(ae=N?Pl(N):window,e){case"focusin":(hf(ae)||ae.contentEditable==="true")&&(nl=ae,sr=N,si=null);break;case"focusout":si=sr=nl=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,jf(B,a,k);break;case"selectionchange":if(vy)break;case"keydown":case"keyup":jf(B,a,k)}var ye;if(ar)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else al?ff(e,a)&&(Ee="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ee="onCompositionStart");Ee&&(rf&&a.locale!=="ko"&&(al||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&al&&(ye=af()):(qa=k,Pu="value"in qa?qa.value:qa.textContent,al=!0)),ae=iu(N,Ee),0<ae.length&&(Ee=new sf(Ee,e,null,a,k),B.push({event:Ee,listeners:ae}),ye?Ee.data=ye:(ye=df(a),ye!==null&&(Ee.data=ye)))),(ye=ry?cy(e,a):oy(e,a))&&(Ee=iu(N,"onBeforeInput"),0<Ee.length&&(ae=new sf("onBeforeInput","beforeinput",null,a,k),B.push({event:ae,listeners:Ee}),ae.data=ye)),tg(B,e,N,a,k)}Fh(B,t)})}function Mi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function iu(e,t){for(var a=t+"Capture",n=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Wl(e,a),i!=null&&n.unshift(Mi(e,i,u)),i=Wl(e,t),i!=null&&n.push(Mi(e,i,u))),e.tag===3)return n;e=e.return}return[]}function ig(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wh(e,t,a,n,i){for(var u=t._reactName,f=[];a!==null&&a!==n;){var h=a,x=h.alternate,N=h.stateNode;if(h=h.tag,x!==null&&x===n)break;h!==5&&h!==26&&h!==27||N===null||(x=N,i?(N=Wl(a,u),N!=null&&f.unshift(Mi(a,N,x))):i||(N=Wl(a,u),N!=null&&f.push(Mi(a,N,x)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var sg=/\r\n?/g,ug=/\u0000|\uFFFD/g;function Ih(e){return(typeof e=="string"?e:""+e).replace(sg,`
|
|
50
|
+
`).replace(ug,"")}function em(e,t){return t=Ih(t),Ih(e)===t}function Re(e,t,a,n,i,u){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||In(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&In(e,""+n);break;case"className":cs(e,"class",n);break;case"tabIndex":cs(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":cs(e,a,n);break;case"style":Io(e,n,u);break;case"data":if(t!=="object"){cs(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=fs(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"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 u=="function"&&(a==="formAction"?(t!=="input"&&Re(e,t,"name",i.name,i,null),Re(e,t,"formEncType",i.formEncType,i,null),Re(e,t,"formMethod",i.formMethod,i,null),Re(e,t,"formTarget",i.formTarget,i,null)):(Re(e,t,"encType",i.encType,i,null),Re(e,t,"method",i.method,i,null),Re(e,t,"target",i.target,i,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=fs(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ya);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=fs(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":xe("beforetoggle",e),xe("toggle",e),rs(e,"popover",n);break;case"xlinkActuate":pa(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":pa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":pa(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":pa(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":pa(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":pa(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":pa(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":pa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":pa(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":rs(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=kp.get(a)||a,rs(e,a,n))}}function zc(e,t,a,n,i,u){switch(a){case"style":Io(e,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(a=n.__html,a!=null){if(i.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof n=="string"?In(e,n):(typeof n=="number"||typeof n=="bigint")&&In(e,""+n);break;case"onScroll":n!=null&&xe("scroll",e);break;case"onScrollEnd":n!=null&&xe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vo.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[bt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof n=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,i);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):rs(e,a,n)}}}function ft(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var n=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":n=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,u,f,a,null)}}i&&Re(e,t,"srcSet",a.srcSet,a,null),n&&Re(e,t,"src",a.src,a,null);return;case"input":xe("invalid",e);var h=u=f=i=null,x=null,N=null;for(n in a)if(a.hasOwnProperty(n)){var k=a[n];if(k!=null)switch(n){case"name":i=k;break;case"type":f=k;break;case"checked":x=k;break;case"defaultChecked":N=k;break;case"value":u=k;break;case"defaultValue":h=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(c(137,t));break;default:Re(e,t,n,k,a,null)}}Jo(e,u,h,x,N,f,i,!1);return;case"select":xe("invalid",e),n=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(h=a[i],h!=null))switch(i){case"value":u=h;break;case"defaultValue":f=h;break;case"multiple":n=h;default:Re(e,t,i,h,a,null)}t=u,a=f,e.multiple=!!n,t!=null?Wn(e,!!n,t,!1):a!=null&&Wn(e,!!n,a,!0);return;case"textarea":xe("invalid",e),u=i=n=null;for(f in a)if(a.hasOwnProperty(f)&&(h=a[f],h!=null))switch(f){case"value":n=h;break;case"defaultValue":i=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,f,h,a,null)}Po(e,n,i,u);return;case"option":for(x in a)if(a.hasOwnProperty(x)&&(n=a[x],n!=null))switch(x){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Re(e,t,x,n,a,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(n=0;n<Oi.length;n++)xe(Oi[n],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(n=a[N],n!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,N,n,a,null)}return;default:if(Zu(t)){for(k in a)a.hasOwnProperty(k)&&(n=a[k],n!==void 0&&zc(e,t,k,n,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(n=a[h],n!=null&&Re(e,t,h,n,a,null))}function rg(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,h=null,x=null,N=null,k=null;for(M in a){var B=a[M];if(a.hasOwnProperty(M)&&B!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":x=B;default:n.hasOwnProperty(M)||Re(e,t,M,null,n,B)}}for(var w in n){var M=n[w];if(B=a[w],n.hasOwnProperty(w)&&(M!=null||B!=null))switch(w){case"type":u=M;break;case"name":i=M;break;case"checked":N=M;break;case"defaultChecked":k=M;break;case"value":f=M;break;case"defaultValue":h=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:M!==B&&Re(e,t,w,M,n,B)}}Vu(e,f,h,x,N,k,u,i);return;case"select":M=f=h=w=null;for(u in a)if(x=a[u],a.hasOwnProperty(u)&&x!=null)switch(u){case"value":break;case"multiple":M=x;default:n.hasOwnProperty(u)||Re(e,t,u,null,n,x)}for(i in n)if(u=n[i],x=a[i],n.hasOwnProperty(i)&&(u!=null||x!=null))switch(i){case"value":w=u;break;case"defaultValue":h=u;break;case"multiple":f=u;default:u!==x&&Re(e,t,i,u,n,x)}t=h,a=f,n=M,w!=null?Wn(e,!!a,w,!1):!!n!=!!a&&(t!=null?Wn(e,!!a,t,!0):Wn(e,!!a,a?[]:"",!1));return;case"textarea":M=w=null;for(h in a)if(i=a[h],a.hasOwnProperty(h)&&i!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,n,i)}for(f in n)if(i=n[f],u=a[f],n.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":w=i;break;case"defaultValue":M=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Re(e,t,f,i,n,u)}Fo(e,w,M);return;case"option":for(var I in a)if(w=a[I],a.hasOwnProperty(I)&&w!=null&&!n.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Re(e,t,I,null,n,w)}for(x in n)if(w=n[x],M=a[x],n.hasOwnProperty(x)&&w!==M&&(w!=null||M!=null))switch(x){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Re(e,t,x,w,n,M)}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 ue in a)w=a[ue],a.hasOwnProperty(ue)&&w!=null&&!n.hasOwnProperty(ue)&&Re(e,t,ue,null,n,w);for(N in n)if(w=n[N],M=a[N],n.hasOwnProperty(N)&&w!==M&&(w!=null||M!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(c(137,t));break;default:Re(e,t,N,w,n,M)}return;default:if(Zu(t)){for(var De in a)w=a[De],a.hasOwnProperty(De)&&w!==void 0&&!n.hasOwnProperty(De)&&zc(e,t,De,void 0,n,w);for(k in n)w=n[k],M=a[k],!n.hasOwnProperty(k)||w===M||w===void 0&&M===void 0||zc(e,t,k,w,n,M);return}}for(var j in a)w=a[j],a.hasOwnProperty(j)&&w!=null&&!n.hasOwnProperty(j)&&Re(e,t,j,null,n,w);for(B in n)w=n[B],M=a[B],!n.hasOwnProperty(B)||w===M||w==null&&M==null||Re(e,t,B,w,n,M)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var i=a[n],u=i.transferSize,f=i.initiatorType,h=i.duration;if(u&&h&&tm(f)){for(f=0,h=i.responseEnd,n+=1;n<a.length;n++){var x=a[n],N=x.startTime;if(N>h)break;var k=x.transferSize,B=x.initiatorType;k&&tm(B)&&(x=x.responseEnd,f+=k*(x<h?1:(h-N)/(x-N)))}if(--n,t+=8*(u+f)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Dc=null;function su(e){return e.nodeType===9?e:e.ownerDocument}function am(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uc=null;function og(){var e=window.event;return e&&e.type==="popstate"?e===Uc?!1:(Uc=e,!0):(Uc=null,!1)}var lm=typeof setTimeout=="function"?setTimeout:void 0,fg=typeof clearTimeout=="function"?clearTimeout:void 0,im=typeof Promise=="function"?Promise:void 0,dg=typeof queueMicrotask=="function"?queueMicrotask:typeof im<"u"?function(e){return im.resolve(null).then(e).catch(hg)}:lm;function hg(e){setTimeout(function(){throw e})}function an(e){return e==="head"}function sm(e,t){var a=t,n=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(i),Ol(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")zi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,zi(a);for(var u=a.firstChild;u;){var f=u.nextSibling,h=u.nodeName;u[Fl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&zi(e.ownerDocument.body);a=i}while(a);Ol(t)}function um(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Lc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lc(a),Yu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function mg(e,t,a,n){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Fl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function pg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Zt(e.nextSibling),e===null))return null;return e}function rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function Hc(e){return e.data==="$?"||e.data==="$~"}function qc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yg(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bc=null;function cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Zt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function om(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function fm(e,t,a){switch(t=su(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function zi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yu(e)}var $t=new Map,dm=new Set;function uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var za=Z.d;Z.d={f:gg,r:vg,D:bg,C:xg,L:Sg,m:Eg,X:jg,S:Tg,M:Ag};function gg(){var e=za.f(),t=Ws();return e||t}function vg(e){var t=Jn(e);t!==null&&t.tag===5&&t.type==="form"?wd(t):za.r(e)}var Nl=typeof document>"u"?null:document;function hm(e,t,a){var n=Nl;if(n&&typeof t=="string"&&t){var i=qt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),dm.has(i)||(dm.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),ft(t,"link",e),lt(t),n.head.appendChild(t)))}}function bg(e){za.D(e),hm("dns-prefetch",e,null)}function xg(e,t){za.C(e,t),hm("preconnect",e,t)}function Sg(e,t,a){za.L(e,t,a);var n=Nl;if(n&&e&&t){var i='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+qt(a.imageSizes)+'"]')):i+='[href="'+qt(e)+'"]';var u=i;switch(t){case"style":u=Cl(e);break;case"script":u=wl(e)}$t.has(u)||(e=T({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),$t.set(u,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Ri(u))||t==="script"&&n.querySelector(Di(u))||(t=n.createElement("link"),ft(t,"link",e),lt(t),n.head.appendChild(t)))}}function Eg(e,t){za.m(e,t);var a=Nl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+qt(n)+'"][href="'+qt(e)+'"]',u=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wl(e)}if(!$t.has(u)&&(e=T({rel:"modulepreload",href:e},t),$t.set(u,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Di(u)))return}n=a.createElement("link"),ft(n,"link",e),lt(n),a.head.appendChild(n)}}}function Tg(e,t,a){za.S(e,t,a);var n=Nl;if(n&&e){var i=Fn(n).hoistableStyles,u=Cl(e);t=t||"default";var f=i.get(u);if(!f){var h={loading:0,preload:null};if(f=n.querySelector(Ri(u)))h.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},a),(a=$t.get(u))&&Gc(e,a);var x=f=n.createElement("link");lt(x),ft(x,"link",e),x._p=new Promise(function(N,k){x.onload=N,x.onerror=k}),x.addEventListener("load",function(){h.loading|=1}),x.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ru(f,t,n)}f={type:"stylesheet",instance:f,count:1,state:h},i.set(u,f)}}}function jg(e,t){za.X(e,t);var a=Nl;if(a&&e){var n=Fn(a).hoistableScripts,i=wl(e),u=n.get(i);u||(u=a.querySelector(Di(i)),u||(e=T({src:e,async:!0},t),(t=$t.get(i))&&Yc(e,t),u=a.createElement("script"),lt(u),ft(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function Ag(e,t){za.M(e,t);var a=Nl;if(a&&e){var n=Fn(a).hoistableScripts,i=wl(e),u=n.get(i);u||(u=a.querySelector(Di(i)),u||(e=T({src:e,async:!0,type:"module"},t),(t=$t.get(i))&&Yc(e,t),u=a.createElement("script"),lt(u),ft(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(i,u))}}function mm(e,t,a,n){var i=(i=oe.current)?uu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Cl(a.href),a=Fn(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cl(a.href);var u=Fn(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(Ri(e)))&&!u._p&&(f.instance=u,f.state.loading=5),$t.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},$t.set(e,a),u||_g(i,e,a,f.state))),t&&n===null)throw Error(c(528,""));return f}if(t&&n!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wl(a),a=Fn(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Cl(e){return'href="'+qt(e)+'"'}function Ri(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function _g(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ft(t,"link",a),lt(t),e.head.appendChild(t))}function wl(e){return'[src="'+qt(e)+'"]'}function Di(e){return"script[async]"+e}function ym(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+qt(a.href)+'"]');if(n)return t.instance=n,lt(n),n;var i=T({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),lt(n),ft(n,"style",i),ru(n,a.precedence,e),t.instance=n;case"stylesheet":i=Cl(a.href);var u=e.querySelector(Ri(i));if(u)return t.state.loading|=4,t.instance=u,lt(u),u;n=pm(a),(i=$t.get(i))&&Gc(n,i),u=(e.ownerDocument||e).createElement("link"),lt(u);var f=u;return f._p=new Promise(function(h,x){f.onload=h,f.onerror=x}),ft(u,"link",n),t.state.loading|=4,ru(u,a.precedence,e),t.instance=u;case"script":return u=wl(a.src),(i=e.querySelector(Di(u)))?(t.instance=i,lt(i),i):(n=a,(i=$t.get(u))&&(n=T({},a),Yc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),lt(i),ft(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,ru(n,a.precedence,e));return t.instance}function ru(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,u=i,f=0;f<n.length;f++){var h=n[f];if(h.dataset.precedence===t)u=h;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Gc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cu=null;function gm(e,t,a){if(cu===null){var n=new Map,i=cu=new Map;i.set(a,n)}else i=cu,n=i.get(a),n||(n=new Map,i.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[Fl]||u[ut]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var h=n.get(f);h?h.push(u):n.set(f,[u])}}return n}function vm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Ng(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cg(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Cl(n.href),u=t.querySelector(Ri(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ou.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,lt(u);return}u=t.ownerDocument||t,n=pm(n),(i=$t.get(i))&&Gc(n,i),u=u.createElement("link"),lt(u);var f=u;f._p=new Promise(function(h,x){f.onload=h,f.onerror=x}),ft(u,"link",n),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ou.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Qc=0;function wg(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Qc===0&&(Qc=62500*cg());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Qc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fu=new Map,t.forEach(Og,e),fu=null,ou.call(e))}function Og(e,t){if(!(t.state.loading&4)){var a=fu.get(e);if(a)var n=a.get(null);else{a=new Map,fu.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),n=f)}n&&a.set(null,n)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||n,u===n&&a.set(null,i),a.set(f,i),this.count++,n=ou.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ki={$$typeof:K,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Mg(e,t,a,n,i,u,f,h,x){this.tag=1,this.containerInfo=e,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=Hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.hiddenUpdates=Hu(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function xm(e,t,a,n,i,u,f,h,x,N,k,B){return e=new Mg(e,t,a,f,x,N,k,B,h),t=1,u===!0&&(t|=24),u=Ot(3,null,null,t),e.current=u,u.stateNode=e,t=Er(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:a,cache:t},_r(u),e}function Sm(e){return e?(e=sl,e):sl}function Em(e,t,a,n,i,u){i=Sm(i),n.context===null?n.context=i:n.pendingContext=i,n=Xa(t),n.payload={element:a},u=u===void 0?null:u,u!==null&&(n.callback=u),a=Za(e,n,t),a!==null&&(At(a,e,t),hi(a,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vc(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function jm(e){if(e.tag===13||e.tag===31){var t=En(e,67108864);t!==null&&At(t,e,67108864),Vc(e,67108864)}}function Am(e){if(e.tag===13||e.tag===31){var t=kt();t=qu(t);var a=En(e,t);a!==null&&At(a,e,t),Vc(e,t)}}var hu=!0;function zg(e,t,a,n){var i=R.T;R.T=null;var u=Z.p;try{Z.p=2,Xc(e,t,a,n)}finally{Z.p=u,R.T=i}}function Rg(e,t,a,n){var i=R.T;R.T=null;var u=Z.p;try{Z.p=8,Xc(e,t,a,n)}finally{Z.p=u,R.T=i}}function Xc(e,t,a,n){if(hu){var i=Zc(n);if(i===null)Mc(e,t,n,mu,a),Nm(e,n);else if(kg(i,e,t,a,n))n.stopPropagation();else if(Nm(e,n),t&4&&-1<Dg.indexOf(e)){for(;i!==null;){var u=Jn(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=gn(u.pendingLanes);if(f!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var x=1<<31-Ct(f);h.entanglements[1]|=x,f&=~x}ca(u),(Ce&6)===0&&(Fs=ht()+500,wi(0))}}break;case 31:case 13:h=En(u,2),h!==null&&At(h,u,2),Ws(),Vc(u,2)}if(u=Zc(n),u===null&&Mc(e,t,n,mu,a),u===i)break;i=u}i!==null&&n.stopPropagation()}else Mc(e,t,n,null,a)}}function Zc(e){return e=Ku(e),$c(e)}var mu=null;function $c(e){if(mu=null,e=Kn(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=y(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mu=e,null}function _m(e){switch(e){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(Lu()){case es:return 2;case Zn:return 8;case yn:case ts:return 32;case as:return 268435456;default:return 32}default:return 32}}var Kc=!1,nn=null,ln=null,sn=null,Ui=new Map,Li=new Map,un=[],Dg="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 Nm(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":Ui.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Li.delete(t.pointerId)}}function Hi(e,t,a,n,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Jn(t),t!==null&&jm(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kg(e,t,a,n,i){switch(t){case"focusin":return nn=Hi(nn,e,t,a,n,i),!0;case"dragenter":return ln=Hi(ln,e,t,a,n,i),!0;case"mouseover":return sn=Hi(sn,e,t,a,n,i),!0;case"pointerover":var u=i.pointerId;return Ui.set(u,Hi(Ui.get(u)||null,e,t,a,n,i)),!0;case"gotpointercapture":return u=i.pointerId,Li.set(u,Hi(Li.get(u)||null,e,t,a,n,i)),!0}return!1}function Cm(e){var t=Kn(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=y(a),t!==null){e.blockedOn=t,Go(e.priority,function(){Am(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Go(e.priority,function(){Am(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Zc(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);$u=n,a.target.dispatchEvent(n),$u=null}else return t=Jn(a),t!==null&&jm(t),e.blockedOn=a,!1;t.shift()}return!0}function wm(e,t,a){pu(e)&&a.delete(t)}function Ug(){Kc=!1,nn!==null&&pu(nn)&&(nn=null),ln!==null&&pu(ln)&&(ln=null),sn!==null&&pu(sn)&&(sn=null),Ui.forEach(wm),Li.forEach(wm)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,Kc||(Kc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Ug)))}var gu=null;function Om(e){gu!==e&&(gu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){gu===e&&(gu=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],i=e[t+2];if(typeof n!="function"){if($c(n||a)===null)continue;break}var u=Jn(a);u!==null&&(e.splice(t,3),t-=3,Zr(u,{pending:!0,data:i,method:a.method,action:n},n,i))}}))}function Ol(e){function t(x){return yu(x,e)}nn!==null&&yu(nn,e),ln!==null&&yu(ln,e),sn!==null&&yu(sn,e),Ui.forEach(t),Li.forEach(t);for(var a=0;a<un.length;a++){var n=un[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<un.length&&(a=un[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&un.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var i=a[n],u=a[n+1],f=i[bt]||null;if(typeof u=="function")f||Om(a);else if(f){var h=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[bt]||null)h=f.formAction;else if($c(i)!==null)continue}else h=f.action;typeof h=="function"?a[n+1]=h:(a.splice(n,3),n-=3),Om(a)}}}function Mm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Jc(e){this._internalRoot=e}vu.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,n=kt();Em(a,n,e,t,null,null)},vu.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Em(e.current,2,null,e,null,null),Ws(),t[$n]=null}};function vu(e){this._internalRoot=e}vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<un.length&&t!==0&&t<un[a].priority;a++);un.splice(a,0,e),a===0&&Cm(e)}};var zm=s.version;if(zm!=="19.2.4")throw Error(c(527,zm,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?A(e):null,e=e===null?null:e.stateNode,e};var Lg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bu.isDisabled&&bu.supportsFiber)try{me=bu.inject(Lg),Ye=bu}catch{}}return Bi.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,n="",i=qd,u=Bd,f=Gd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=xm(e,1,!1,null,null,a,n,null,i,u,f,Mm),e[$n]=t.current,Oc(e),new Jc(t)},Bi.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var n=!1,i="",u=qd,f=Bd,h=Gd,x=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(x=a.formState)),t=xm(e,1,!0,t,a??null,n,i,x,u,f,h,Mm),t.context=Sm(null),a=t.current,n=kt(),n=qu(n),i=Xa(n),i.callback=null,Za(a,i,n),a=n,t.current.lanes=a,Jl(t,a),ca(t),e[$n]=t.current,Oc(e),new vu(t)},Bi.version="19.2.4",Bi}var Vm;function Fg(){if(Vm)return Ic.exports;Vm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Ic.exports=Jg(),Ic.exports}var Pg=Fg();/**
|
|
51
51
|
* react-router v7.13.1
|
|
52
52
|
*
|
|
53
53
|
* Copyright (c) Remix Software Inc.
|
|
@@ -56,235 +56,235 @@ Error generating stack: `+n.message+`
|
|
|
56
56
|
* LICENSE.md file in the root directory of this source tree.
|
|
57
57
|
*
|
|
58
58
|
* @license MIT
|
|
59
|
-
*/var Xm="popstate";function Zm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Pg(l={}){function s(c,d){var v;let m=(v=d.state)==null?void 0:v.masked,{pathname:y,search:g,hash:b}=m||c.location;return oo("",{pathname:y,search:g,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,d){return typeof d=="string"?d:Vi(d)}return Ig(s,r,null,l)}function Ve(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function Jt(l,s){if(!l){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Wg(){return Math.random().toString(36).substring(2,10)}function Km(l,s){return{usr:l.state,key:l.key,idx:s,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function oo(l,s,r=null,c,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof s=="string"?Yl(s):s,state:r,key:s&&s.key||c||Wg(),unstable_mask:d}}function Vi({pathname:l="/",search:s="",hash:r=""}){return s&&s!=="?"&&(l+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(l+=r.charAt(0)==="#"?r:"#"+r),l}function Yl(l){let s={};if(l){let r=l.indexOf("#");r>=0&&(s.hash=l.substring(r),l=l.substring(0,r));let c=l.indexOf("?");c>=0&&(s.search=l.substring(c),l=l.substring(0,c)),l&&(s.pathname=l)}return s}function Ig(l,s,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,g="POP",b=null,v=A();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function A(){return(y.state||{idx:null}).idx}function T(){g="POP";let Y=A(),G=Y==null?null:Y-v;v=Y,b&&b({action:g,location:O.location,delta:G})}function z(Y,G){g="PUSH";let W=Zm(Y)?Y:oo(O.location,Y,G);v=A()+1;let $=Km(W,v),V=O.createHref(W.unstable_mask||W);try{y.pushState($,"",V)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;d.location.assign(V)}m&&b&&b({action:g,location:O.location,delta:1})}function q(Y,G){g="REPLACE";let W=Zm(Y)?Y:oo(O.location,Y,G);v=A();let $=Km(W,v),V=O.createHref(W.unstable_mask||W);y.replaceState($,"",V),m&&b&&b({action:g,location:O.location,delta:0})}function X(Y){return e1(Y)}let O={get action(){return g},get location(){return l(d,y)},listen(Y){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(Xm,T),b=Y,()=>{d.removeEventListener(Xm,T),b=null}},createHref(Y){return s(d,Y)},createURL:X,encodeLocation(Y){let G=X(Y);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:z,replace:q,go(Y){return y.go(Y)}};return O}function e1(l,s=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(r,"No window.location.(origin|href) available to create URL");let c=typeof l=="string"?l:Vi(l);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function z0(l,s,r="/"){return t1(l,s,r,!1)}function t1(l,s,r,c){let d=typeof s=="string"?Yl(s):s,m=La(d.pathname||"/",r);if(m==null)return null;let y=R0(l);a1(y);let g=null;for(let b=0;g==null&&b<y.length;++b){let v=h1(m);g=f1(y[b],v,c)}return g}function R0(l,s=[],r=[],c="",d=!1){let m=(y,g,b=d,v)=>{let A={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:g,route:y};if(A.relativePath.startsWith("/")){if(!A.relativePath.startsWith(c)&&b)return;Ve(A.relativePath.startsWith(c),`Absolute route path "${A.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),A.relativePath=A.relativePath.slice(c.length)}let T=ha([c,A.relativePath]),z=r.concat(A);y.children&&y.children.length>0&&(Ve(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${T}".`),R0(y.children,s,z,T,b)),!(y.path==null&&!y.index)&&s.push({path:T,score:c1(T,y.index),routesMeta:z})};return l.forEach((y,g)=>{var b;if(y.path===""||!((b=y.path)!=null&&b.includes("?")))m(y,g);else for(let v of D0(y.path))m(y,g,!0,v)}),s}function D0(l){let s=l.split("/");if(s.length===0)return[];let[r,...c]=s,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=D0(c.join("/")),g=[];return g.push(...y.map(b=>b===""?m:[m,b].join("/"))),d&&g.push(...y),g.map(b=>l.startsWith("/")&&b===""?"/":b)}function a1(l){l.sort((s,r)=>s.score!==r.score?r.score-s.score:o1(s.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var n1=/^:[\w-]+$/,l1=3,i1=2,s1=1,u1=10,r1=-2,$m=l=>l==="*";function c1(l,s){let r=l.split("/"),c=r.length;return r.some($m)&&(c+=r1),s&&(c+=i1),r.filter(d=>!$m(d)).reduce((d,m)=>d+(n1.test(m)?l1:m===""?s1:u1),c)}function o1(l,s){return l.length===s.length&&l.slice(0,-1).every((c,d)=>c===s[d])?l[l.length-1]-s[s.length-1]:0}function f1(l,s,r=!1){let{routesMeta:c}=l,d={},m="/",y=[];for(let g=0;g<c.length;++g){let b=c[g],v=g===c.length-1,A=m==="/"?s:s.slice(m.length)||"/",T=Cu({path:b.relativePath,caseSensitive:b.caseSensitive,end:v},A),z=b.route;if(!T&&v&&r&&!c[c.length-1].route.index&&(T=Cu({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},A)),!T)return null;Object.assign(d,T.params),y.push({params:d,pathname:ha([m,T.pathname]),pathnameBase:g1(ha([m,T.pathnameBase])),route:z}),T.pathnameBase!=="/"&&(m=ha([m,T.pathnameBase]))}return y}function Cu(l,s){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[r,c]=d1(l.path,l.caseSensitive,l.end),d=s.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((v,{paramName:A,isOptional:T},z)=>{if(A==="*"){let X=g[z]||"";y=m.slice(0,m.length-X.length).replace(/(.)\/+$/,"$1")}const q=g[z];return T&&!q?v[A]=void 0:v[A]=(q||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:l}}function d1(l,s=!1,r=!0){Jt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,g,b,v,A)=>{if(c.push({paramName:g,isOptional:b!=null}),b){let T=A.charAt(v+y.length);return T&&T!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),c]}function h1(l){try{return l.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Jt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),l}}function La(l,s){if(s==="/")return l;if(!l.toLowerCase().startsWith(s.toLowerCase()))return null;let r=s.endsWith("/")?s.length-1:s.length,c=l.charAt(r);return c&&c!=="/"?null:l.slice(r)||"/"}var m1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function p1(l,s="/"){let{pathname:r,search:c="",hash:d=""}=typeof l=="string"?Yl(l):l,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=Jm(r.substring(1),"/"):m=Jm(r,s)):m=s,{pathname:m,search:v1(c),hash:b1(d)}}function Jm(l,s){let r=s.replace(/\/+$/,"").split("/");return l.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function no(l,s,r,c){return`Cannot include a '${l}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. 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 y1(l){return l.filter((s,r)=>r===0||s.route.path&&s.route.path.length>0)}function jo(l){let s=y1(l);return s.map((r,c)=>c===s.length-1?r.pathname:r.pathnameBase)}function Mu(l,s,r,c=!1){let d;typeof l=="string"?d=Yl(l):(d={...l},Ve(!d.pathname||!d.pathname.includes("?"),no("?","pathname","search",d)),Ve(!d.pathname||!d.pathname.includes("#"),no("#","pathname","hash",d)),Ve(!d.search||!d.search.includes("#"),no("#","search","hash",d)));let m=l===""||d.pathname==="",y=m?"/":d.pathname,g;if(y==null)g=r;else{let T=s.length-1;if(!c&&y.startsWith("..")){let z=y.split("/");for(;z[0]==="..";)z.shift(),T-=1;d.pathname=z.join("/")}g=T>=0?s[T]:"/"}let b=p1(d,g),v=y&&y!=="/"&&y.endsWith("/"),A=(m||y===".")&&r.endsWith("/");return!b.pathname.endsWith("/")&&(v||A)&&(b.pathname+="/"),b}var ha=l=>l.join("/").replace(/\/\/+/g,"/"),g1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),v1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,b1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,x1=class{constructor(l,s,r,c=!1){this.status=l,this.statusText=s||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function S1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function E1(l){return l.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var U0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function k0(l,s){let r=l;if(typeof r!="string"||!m1.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(U0)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),g=La(y.pathname,s);y.origin===m.origin&&g!=null?r=g+y.search+y.hash:d=!0}catch{Jt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var L0=["POST","PUT","PATCH","DELETE"];new Set(L0);var T1=["GET",...L0];new Set(T1);var Ql=p.createContext(null);Ql.displayName="DataRouter";var zu=p.createContext(null);zu.displayName="DataRouterState";var j1=p.createContext(!1),H0=p.createContext({isTransitioning:!1});H0.displayName="ViewTransition";var A1=p.createContext(new Map);A1.displayName="Fetchers";var _1=p.createContext(null);_1.displayName="Await";var Lt=p.createContext(null);Lt.displayName="Navigation";var Fi=p.createContext(null);Fi.displayName="Location";var na=p.createContext({outlet:null,matches:[],isDataRoute:!1});na.displayName="Route";var Ao=p.createContext(null);Ao.displayName="RouteError";var q0="REACT_ROUTER_ERROR",N1="REDIRECT",C1="ROUTE_ERROR_RESPONSE";function w1(l){if(l.startsWith(`${q0}:${N1}:{`))try{let s=JSON.parse(l.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function O1(l){if(l.startsWith(`${q0}:${C1}:{`))try{let s=JSON.parse(l.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new x1(s.status,s.statusText,s.data)}catch{}}function M1(l,{relative:s}={}){Ve(Vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=p.useContext(Lt),{hash:d,pathname:m,search:y}=Pi(l,{relative:s}),g=m;return r!=="/"&&(g=m==="/"?r:ha([r,m])),c.createHref({pathname:g,search:y,hash:d})}function Vl(){return p.useContext(Fi)!=null}function Nt(){return Ve(Vl(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Fi).location}var B0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function G0(l){p.useContext(Lt).static||p.useLayoutEffect(l)}function _o(){let{isDataRoute:l}=p.useContext(na);return l?V1():z1()}function z1(){Ve(Vl(),"useNavigate() may be used only in the context of a <Router> component.");let l=p.useContext(Ql),{basename:s,navigator:r}=p.useContext(Lt),{matches:c}=p.useContext(na),{pathname:d}=Nt(),m=JSON.stringify(jo(c)),y=p.useRef(!1);return G0(()=>{y.current=!0}),p.useCallback((b,v={})=>{if(Jt(y.current,B0),!y.current)return;if(typeof b=="number"){r.go(b);return}let A=Mu(b,JSON.parse(m),d,v.relative==="path");l==null&&s!=="/"&&(A.pathname=A.pathname==="/"?s:ha([s,A.pathname])),(v.replace?r.replace:r.push)(A,v.state,v)},[s,r,m,d,l])}p.createContext(null);function mS(){let{matches:l}=p.useContext(na),s=l[l.length-1];return s?s.params:{}}function Pi(l,{relative:s}={}){let{matches:r}=p.useContext(na),{pathname:c}=Nt(),d=JSON.stringify(jo(r));return p.useMemo(()=>Mu(l,JSON.parse(d),c,s==="path"),[l,d,c,s])}function R1(l,s){return Y0(l,s)}function Y0(l,s,r){var Y;Ve(Vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=p.useContext(Lt),{matches:d}=p.useContext(na),m=d[d.length-1],y=m?m.params:{},g=m?m.pathname:"/",b=m?m.pathnameBase:"/",v=m&&m.route;{let G=v&&v.path||"";V0(g,!v||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${G}">) 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.
|
|
59
|
+
*/var Xm="popstate";function Zm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Wg(l={}){function s(c,d){var v;let m=(v=d.state)==null?void 0:v.masked,{pathname:y,search:g,hash:b}=m||c.location;return oo("",{pathname:y,search:g,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,d){return typeof d=="string"?d:Vi(d)}return e1(s,r,null,l)}function Ve(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function Jt(l,s){if(!l){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Ig(){return Math.random().toString(36).substring(2,10)}function $m(l,s){return{usr:l.state,key:l.key,idx:s,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function oo(l,s,r=null,c,d){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof s=="string"?Yl(s):s,state:r,key:s&&s.key||c||Ig(),unstable_mask:d}}function Vi({pathname:l="/",search:s="",hash:r=""}){return s&&s!=="?"&&(l+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(l+=r.charAt(0)==="#"?r:"#"+r),l}function Yl(l){let s={};if(l){let r=l.indexOf("#");r>=0&&(s.hash=l.substring(r),l=l.substring(0,r));let c=l.indexOf("?");c>=0&&(s.search=l.substring(c),l=l.substring(0,c)),l&&(s.pathname=l)}return s}function e1(l,s,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,g="POP",b=null,v=A();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function A(){return(y.state||{idx:null}).idx}function T(){g="POP";let Y=A(),G=Y==null?null:Y-v;v=Y,b&&b({action:g,location:O.location,delta:G})}function z(Y,G){g="PUSH";let W=Zm(Y)?Y:oo(O.location,Y,G);v=A()+1;let K=$m(W,v),V=O.createHref(W.unstable_mask||W);try{y.pushState(K,"",V)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;d.location.assign(V)}m&&b&&b({action:g,location:O.location,delta:1})}function q(Y,G){g="REPLACE";let W=Zm(Y)?Y:oo(O.location,Y,G);v=A();let K=$m(W,v),V=O.createHref(W.unstable_mask||W);y.replaceState(K,"",V),m&&b&&b({action:g,location:O.location,delta:0})}function X(Y){return t1(Y)}let O={get action(){return g},get location(){return l(d,y)},listen(Y){if(b)throw new Error("A history only accepts one active listener");return d.addEventListener(Xm,T),b=Y,()=>{d.removeEventListener(Xm,T),b=null}},createHref(Y){return s(d,Y)},createURL:X,encodeLocation(Y){let G=X(Y);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:z,replace:q,go(Y){return y.go(Y)}};return O}function t1(l,s=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(r,"No window.location.(origin|href) available to create URL");let c=typeof l=="string"?l:Vi(l);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function z0(l,s,r="/"){return a1(l,s,r,!1)}function a1(l,s,r,c){let d=typeof s=="string"?Yl(s):s,m=La(d.pathname||"/",r);if(m==null)return null;let y=R0(l);n1(y);let g=null;for(let b=0;g==null&&b<y.length;++b){let v=m1(m);g=d1(y[b],v,c)}return g}function R0(l,s=[],r=[],c="",d=!1){let m=(y,g,b=d,v)=>{let A={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:g,route:y};if(A.relativePath.startsWith("/")){if(!A.relativePath.startsWith(c)&&b)return;Ve(A.relativePath.startsWith(c),`Absolute route path "${A.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),A.relativePath=A.relativePath.slice(c.length)}let T=ha([c,A.relativePath]),z=r.concat(A);y.children&&y.children.length>0&&(Ve(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${T}".`),R0(y.children,s,z,T,b)),!(y.path==null&&!y.index)&&s.push({path:T,score:o1(T,y.index),routesMeta:z})};return l.forEach((y,g)=>{var b;if(y.path===""||!((b=y.path)!=null&&b.includes("?")))m(y,g);else for(let v of D0(y.path))m(y,g,!0,v)}),s}function D0(l){let s=l.split("/");if(s.length===0)return[];let[r,...c]=s,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=D0(c.join("/")),g=[];return g.push(...y.map(b=>b===""?m:[m,b].join("/"))),d&&g.push(...y),g.map(b=>l.startsWith("/")&&b===""?"/":b)}function n1(l){l.sort((s,r)=>s.score!==r.score?r.score-s.score:f1(s.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var l1=/^:[\w-]+$/,i1=3,s1=2,u1=1,r1=10,c1=-2,Km=l=>l==="*";function o1(l,s){let r=l.split("/"),c=r.length;return r.some(Km)&&(c+=c1),s&&(c+=s1),r.filter(d=>!Km(d)).reduce((d,m)=>d+(l1.test(m)?i1:m===""?u1:r1),c)}function f1(l,s){return l.length===s.length&&l.slice(0,-1).every((c,d)=>c===s[d])?l[l.length-1]-s[s.length-1]:0}function d1(l,s,r=!1){let{routesMeta:c}=l,d={},m="/",y=[];for(let g=0;g<c.length;++g){let b=c[g],v=g===c.length-1,A=m==="/"?s:s.slice(m.length)||"/",T=Cu({path:b.relativePath,caseSensitive:b.caseSensitive,end:v},A),z=b.route;if(!T&&v&&r&&!c[c.length-1].route.index&&(T=Cu({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},A)),!T)return null;Object.assign(d,T.params),y.push({params:d,pathname:ha([m,T.pathname]),pathnameBase:v1(ha([m,T.pathnameBase])),route:z}),T.pathnameBase!=="/"&&(m=ha([m,T.pathnameBase]))}return y}function Cu(l,s){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[r,c]=h1(l.path,l.caseSensitive,l.end),d=s.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((v,{paramName:A,isOptional:T},z)=>{if(A==="*"){let X=g[z]||"";y=m.slice(0,m.length-X.length).replace(/(.)\/+$/,"$1")}const q=g[z];return T&&!q?v[A]=void 0:v[A]=(q||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:l}}function h1(l,s=!1,r=!0){Jt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let c=[],d="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,g,b,v,A)=>{if(c.push({paramName:g,isOptional:b!=null}),b){let T=A.charAt(v+y.length);return T&&T!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(c.push({paramName:"*"}),d+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":l!==""&&l!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),c]}function m1(l){try{return l.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Jt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),l}}function La(l,s){if(s==="/")return l;if(!l.toLowerCase().startsWith(s.toLowerCase()))return null;let r=s.endsWith("/")?s.length-1:s.length,c=l.charAt(r);return c&&c!=="/"?null:l.slice(r)||"/"}var p1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function y1(l,s="/"){let{pathname:r,search:c="",hash:d=""}=typeof l=="string"?Yl(l):l,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=Jm(r.substring(1),"/"):m=Jm(r,s)):m=s,{pathname:m,search:b1(c),hash:x1(d)}}function Jm(l,s){let r=s.replace(/\/+$/,"").split("/");return l.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function no(l,s,r,c){return`Cannot include a '${l}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. 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 g1(l){return l.filter((s,r)=>r===0||s.route.path&&s.route.path.length>0)}function jo(l){let s=g1(l);return s.map((r,c)=>c===s.length-1?r.pathname:r.pathnameBase)}function Mu(l,s,r,c=!1){let d;typeof l=="string"?d=Yl(l):(d={...l},Ve(!d.pathname||!d.pathname.includes("?"),no("?","pathname","search",d)),Ve(!d.pathname||!d.pathname.includes("#"),no("#","pathname","hash",d)),Ve(!d.search||!d.search.includes("#"),no("#","search","hash",d)));let m=l===""||d.pathname==="",y=m?"/":d.pathname,g;if(y==null)g=r;else{let T=s.length-1;if(!c&&y.startsWith("..")){let z=y.split("/");for(;z[0]==="..";)z.shift(),T-=1;d.pathname=z.join("/")}g=T>=0?s[T]:"/"}let b=y1(d,g),v=y&&y!=="/"&&y.endsWith("/"),A=(m||y===".")&&r.endsWith("/");return!b.pathname.endsWith("/")&&(v||A)&&(b.pathname+="/"),b}var ha=l=>l.join("/").replace(/\/\/+/g,"/"),v1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),b1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,x1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,S1=class{constructor(l,s,r,c=!1){this.status=l,this.statusText=s||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function E1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function T1(l){return l.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var k0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function U0(l,s){let r=l;if(typeof r!="string"||!p1.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(k0)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),g=La(y.pathname,s);y.origin===m.origin&&g!=null?r=g+y.search+y.hash:d=!0}catch{Jt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var L0=["POST","PUT","PATCH","DELETE"];new Set(L0);var j1=["GET",...L0];new Set(j1);var Ql=p.createContext(null);Ql.displayName="DataRouter";var zu=p.createContext(null);zu.displayName="DataRouterState";var A1=p.createContext(!1),H0=p.createContext({isTransitioning:!1});H0.displayName="ViewTransition";var _1=p.createContext(new Map);_1.displayName="Fetchers";var N1=p.createContext(null);N1.displayName="Await";var Lt=p.createContext(null);Lt.displayName="Navigation";var Fi=p.createContext(null);Fi.displayName="Location";var na=p.createContext({outlet:null,matches:[],isDataRoute:!1});na.displayName="Route";var Ao=p.createContext(null);Ao.displayName="RouteError";var q0="REACT_ROUTER_ERROR",C1="REDIRECT",w1="ROUTE_ERROR_RESPONSE";function O1(l){if(l.startsWith(`${q0}:${C1}:{`))try{let s=JSON.parse(l.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function M1(l){if(l.startsWith(`${q0}:${w1}:{`))try{let s=JSON.parse(l.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new S1(s.status,s.statusText,s.data)}catch{}}function z1(l,{relative:s}={}){Ve(Vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=p.useContext(Lt),{hash:d,pathname:m,search:y}=Pi(l,{relative:s}),g=m;return r!=="/"&&(g=m==="/"?r:ha([r,m])),c.createHref({pathname:g,search:y,hash:d})}function Vl(){return p.useContext(Fi)!=null}function Nt(){return Ve(Vl(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Fi).location}var B0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function G0(l){p.useContext(Lt).static||p.useLayoutEffect(l)}function _o(){let{isDataRoute:l}=p.useContext(na);return l?X1():R1()}function R1(){Ve(Vl(),"useNavigate() may be used only in the context of a <Router> component.");let l=p.useContext(Ql),{basename:s,navigator:r}=p.useContext(Lt),{matches:c}=p.useContext(na),{pathname:d}=Nt(),m=JSON.stringify(jo(c)),y=p.useRef(!1);return G0(()=>{y.current=!0}),p.useCallback((b,v={})=>{if(Jt(y.current,B0),!y.current)return;if(typeof b=="number"){r.go(b);return}let A=Mu(b,JSON.parse(m),d,v.relative==="path");l==null&&s!=="/"&&(A.pathname=A.pathname==="/"?s:ha([s,A.pathname])),(v.replace?r.replace:r.push)(A,v.state,v)},[s,r,m,d,l])}p.createContext(null);function TS(){let{matches:l}=p.useContext(na),s=l[l.length-1];return s?s.params:{}}function Pi(l,{relative:s}={}){let{matches:r}=p.useContext(na),{pathname:c}=Nt(),d=JSON.stringify(jo(r));return p.useMemo(()=>Mu(l,JSON.parse(d),c,s==="path"),[l,d,c,s])}function D1(l,s){return Y0(l,s)}function Y0(l,s,r){var Y;Ve(Vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=p.useContext(Lt),{matches:d}=p.useContext(na),m=d[d.length-1],y=m?m.params:{},g=m?m.pathname:"/",b=m?m.pathnameBase:"/",v=m&&m.route;{let G=v&&v.path||"";V0(g,!v||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${G}">) 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
60
|
|
|
61
|
-
Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let A=Nt(),T;if(s){let G=typeof s=="string"?Yl(s):s;Ve(b==="/"||((Y=G.pathname)==null?void 0:Y.startsWith(b)),`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 "${b}" but pathname "${G.pathname}" was given in the \`location\` prop.`),T=G}else T=A;let z=T.pathname||"/",q=z;if(b!=="/"){let G=b.replace(/^\//,"").split("/");q="/"+z.replace(/^\//,"").split("/").slice(G.length).join("/")}let X=z0(l,{pathname:q});Jt(v||X!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),Jt(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.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 O=H1(X&&X.map(G=>Object.assign({},G,{params:Object.assign({},y,G.params),pathname:ha([b,c.encodeLocation?c.encodeLocation(G.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?b:ha([b,c.encodeLocation?c.encodeLocation(G.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),d,r);return s&&O?p.createElement(Fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...T},navigationType:"POP"}},O):O}function D1(){let l=Q1(),s=S1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),r=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",l),y=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:m},"ErrorBoundary")," or"," ",p.createElement("code",{style:m},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},s),r?p.createElement("pre",{style:d},r):null,y)}var U1=p.createElement(D1,null),Q0=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,s){return s.location!==l.location||s.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:s.error,location:s.location,revalidation:l.revalidation||s.revalidation}}componentDidCatch(l,s){this.props.onError?this.props.onError(l,s):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const r=O1(l.digest);r&&(l=r)}let s=l!==void 0?p.createElement(na.Provider,{value:this.props.routeContext},p.createElement(Ao.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?p.createElement(k1,{error:l},s):s}};Q0.contextType=j1;var lo=new WeakMap;function k1({children:l,error:s}){let{basename:r}=p.useContext(Lt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let c=w1(s.digest);if(c){let d=lo.get(s);if(d)throw d;let m=k0(c.location,r);if(U0&&!lo.get(s))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw lo.set(s,y),y}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return l}function L1({routeContext:l,match:s,children:r}){let c=p.useContext(Ql);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),p.createElement(na.Provider,{value:l},r)}function H1(l,s=[],r){let c=r==null?void 0:r.state;if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(s.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let d=l,m=c==null?void 0:c.errors;if(m!=null){let A=d.findIndex(T=>T.route.id&&(m==null?void 0:m[T.route.id])!==void 0);Ve(A>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,A+1))}let y=!1,g=-1;if(r&&c){y=c.renderFallback;for(let A=0;A<d.length;A++){let T=d[A];if((T.route.HydrateFallback||T.route.hydrateFallbackElement)&&(g=A),T.route.id){let{loaderData:z,errors:q}=c,X=T.route.loader&&!z.hasOwnProperty(T.route.id)&&(!q||q[T.route.id]===void 0);if(T.route.lazy||X){r.isStatic&&(y=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let b=r==null?void 0:r.onError,v=c&&b?(A,T)=>{var z,q;b(A,{location:c.location,params:((q=(z=c.matches)==null?void 0:z[0])==null?void 0:q.params)??{},unstable_pattern:E1(c.matches),errorInfo:T})}:void 0;return d.reduceRight((A,T,z)=>{let q,X=!1,O=null,Y=null;c&&(q=m&&T.route.id?m[T.route.id]:void 0,O=T.route.errorElement||U1,y&&(g<0&&z===0?(V0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,Y=null):g===z&&(X=!0,Y=T.route.hydrateFallbackElement||null)));let G=s.concat(d.slice(0,z+1)),W=()=>{let $;return q?$=O:X?$=Y:T.route.Component?$=p.createElement(T.route.Component,null):T.route.element?$=T.route.element:$=A,p.createElement(L1,{match:T,routeContext:{outlet:A,matches:G,isDataRoute:c!=null},children:$})};return c&&(T.route.ErrorBoundary||T.route.errorElement||z===0)?p.createElement(Q0,{location:c.location,revalidation:c.revalidation,component:O,error:q,children:W(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):W()},null)}function No(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function q1(l){let s=p.useContext(Ql);return Ve(s,No(l)),s}function B1(l){let s=p.useContext(zu);return Ve(s,No(l)),s}function G1(l){let s=p.useContext(na);return Ve(s,No(l)),s}function Co(l){let s=G1(l),r=s.matches[s.matches.length-1];return Ve(r.route.id,`${l} can only be used on routes that contain a unique "id"`),r.route.id}function Y1(){return Co("useRouteId")}function Q1(){var c;let l=p.useContext(Ao),s=B1("useRouteError"),r=Co("useRouteError");return l!==void 0?l:(c=s.errors)==null?void 0:c[r]}function V1(){let{router:l}=q1("useNavigate"),s=Co("useNavigate"),r=p.useRef(!1);return G0(()=>{r.current=!0}),p.useCallback(async(d,m={})=>{Jt(r.current,B0),r.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:s,...m}))},[l,s])}var Fm={};function V0(l,s,r){!s&&!Fm[l]&&(Fm[l]=!0,Jt(!1,r))}p.memo(X1);function X1({routes:l,future:s,state:r,isStatic:c,onError:d}){return Y0(l,void 0,{state:r,isStatic:c,onError:d})}function _t({to:l,replace:s,state:r,relative:c}){Ve(Vl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=p.useContext(Lt);Jt(!d,"<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:m}=p.useContext(na),{pathname:y}=Nt(),g=_o(),b=Mu(l,jo(m),y,c==="path"),v=JSON.stringify(b);return p.useEffect(()=>{g(JSON.parse(v),{replace:s,state:r,relative:c})},[g,v,c,s,r]),null}function te(l){Ve(!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 Z1({basename:l="/",children:s=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){Ve(!Vl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),b=p.useMemo(()=>({basename:g,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[g,d,m,y]);typeof r=="string"&&(r=Yl(r));let{pathname:v="/",search:A="",hash:T="",state:z=null,key:q="default",unstable_mask:X}=r,O=p.useMemo(()=>{let Y=La(v,g);return Y==null?null:{location:{pathname:Y,search:A,hash:T,state:z,key:q,unstable_mask:X},navigationType:c}},[g,v,A,T,z,q,c,X]);return Jt(O!=null,`<Router basename="${g}"> is not able to match the URL "${v}${A}${T}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:p.createElement(Lt.Provider,{value:b},p.createElement(Fi.Provider,{children:s,value:O}))}function K1({children:l,location:s}){return R1(fo(l),s)}function fo(l,s=[]){let r=[];return p.Children.forEach(l,(c,d)=>{if(!p.isValidElement(c))return;let m=[...s,d];if(c.type===p.Fragment){r.push.apply(r,fo(c.props.children,m));return}Ve(c.type===te,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=fo(c.props.children,m)),r.push(y)}),r}var Au="get",_u="application/x-www-form-urlencoded";function Ru(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function $1(l){return Ru(l)&&l.tagName.toLowerCase()==="button"}function J1(l){return Ru(l)&&l.tagName.toLowerCase()==="form"}function F1(l){return Ru(l)&&l.tagName.toLowerCase()==="input"}function P1(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function W1(l,s){return l.button===0&&(!s||s==="_self")&&!P1(l)}function ho(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((s,r)=>{let c=l[r];return s.concat(Array.isArray(c)?c.map(d=>[r,d]):[[r,c]])},[]))}function I1(l,s){let r=ho(l);return s&&s.forEach((c,d)=>{r.has(d)||s.getAll(d).forEach(m=>{r.append(d,m)})}),r}var Su=null;function ev(){if(Su===null)try{new FormData(document.createElement("form"),0),Su=!1}catch{Su=!0}return Su}var tv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function io(l){return l!=null&&!tv.has(l)?(Jt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):l}function av(l,s){let r,c,d,m,y;if(J1(l)){let g=l.getAttribute("action");c=g?La(g,s):null,r=l.getAttribute("method")||Au,d=io(l.getAttribute("enctype"))||_u,m=new FormData(l)}else if($1(l)||F1(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=l.getAttribute("formaction")||g.getAttribute("action");if(c=b?La(b,s):null,r=l.getAttribute("formmethod")||g.getAttribute("method")||Au,d=io(l.getAttribute("formenctype"))||io(g.getAttribute("enctype"))||_u,m=new FormData(g,l),!ev()){let{name:v,type:A,value:T}=l;if(A==="image"){let z=v?`${v}.`:"";m.append(`${z}x`,"0"),m.append(`${z}y`,"0")}else v&&m.append(v,T)}}else{if(Ru(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Au,c=null,d=_u,y=l}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wo(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function nv(l,s,r,c){let d=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:s&&La(d.pathname,s)==="/"?d.pathname=`${s.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function lv(l,s){if(l.id in s)return s[l.id];try{let r=await import(l.module);return s[l.id]=r,r}catch(r){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function iv(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function sv(l,s,r){let c=await Promise.all(l.map(async d=>{let m=s.routes[d.route.id];if(m){let y=await lv(m,r);return y.links?y.links():[]}return[]}));return ov(c.flat(1).filter(iv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Pm(l,s,r,c,d,m){let y=(b,v)=>r[v]?b.route.id!==r[v].route.id:!0,g=(b,v)=>{var A;return r[v].pathname!==b.pathname||((A=r[v].route.path)==null?void 0:A.endsWith("*"))&&r[v].params["*"]!==b.params["*"]};return m==="assets"?s.filter((b,v)=>y(b,v)||g(b,v)):m==="data"?s.filter((b,v)=>{var T;let A=c.routes[b.route.id];if(!A||!A.hasLoader)return!1;if(y(b,v)||g(b,v))return!0;if(b.route.shouldRevalidate){let z=b.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((T=r[0])==null?void 0:T.params)||{},nextUrl:new URL(l,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function uv(l,s,{includeHydrateFallback:r}={}){return rv(l.map(c=>{let d=s.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function rv(l){return[...new Set(l)]}function cv(l){let s={},r=Object.keys(l).sort();for(let c of r)s[c]=l[c];return s}function ov(l,s){let r=new Set;return new Set(s),l.reduce((c,d)=>{let m=JSON.stringify(cv(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function X0(){let l=p.useContext(Ql);return wo(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function fv(){let l=p.useContext(zu);return wo(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Oo=p.createContext(void 0);Oo.displayName="FrameworkContext";function Z0(){let l=p.useContext(Oo);return wo(l,"You must render this element inside a <HydratedRouter> element"),l}function dv(l,s){let r=p.useContext(Oo),[c,d]=p.useState(!1),[m,y]=p.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:v,onMouseLeave:A,onTouchStart:T}=s,z=p.useRef(null);p.useEffect(()=>{if(l==="render"&&y(!0),l==="viewport"){let O=G=>{G.forEach(W=>{y(W.isIntersecting)})},Y=new IntersectionObserver(O,{threshold:.5});return z.current&&Y.observe(z.current),()=>{Y.disconnect()}}},[l]),p.useEffect(()=>{if(c){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[c]);let q=()=>{d(!0)},X=()=>{d(!1),y(!1)};return r?l!=="intent"?[m,z,{}]:[m,z,{onFocus:Gi(g,q),onBlur:Gi(b,X),onMouseEnter:Gi(v,q),onMouseLeave:Gi(A,X),onTouchStart:Gi(T,q)}]:[!1,z,{}]}function Gi(l,s){return r=>{l&&l(r),r.defaultPrevented||s(r)}}function hv({page:l,...s}){let{router:r}=X0(),c=p.useMemo(()=>z0(r.routes,l,r.basename),[r.routes,l,r.basename]);return c?p.createElement(pv,{page:l,matches:c,...s}):null}function mv(l){let{manifest:s,routeModules:r}=Z0(),[c,d]=p.useState([]);return p.useEffect(()=>{let m=!1;return sv(l,s,r).then(y=>{m||d(y)}),()=>{m=!0}},[l,s,r]),c}function pv({page:l,matches:s,...r}){let c=Nt(),{future:d,manifest:m,routeModules:y}=Z0(),{basename:g}=X0(),{loaderData:b,matches:v}=fv(),A=p.useMemo(()=>Pm(l,s,v,m,c,"data"),[l,s,v,m,c]),T=p.useMemo(()=>Pm(l,s,v,m,c,"assets"),[l,s,v,m,c]),z=p.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let O=new Set,Y=!1;if(s.forEach(W=>{var V;let $=m.routes[W.route.id];!$||!$.hasLoader||(!A.some(ne=>ne.route.id===W.route.id)&&W.route.id in b&&((V=y[W.route.id])!=null&&V.shouldRevalidate)||$.hasClientLoader?Y=!0:O.add(W.route.id))}),O.size===0)return[];let G=nv(l,g,d.unstable_trailingSlashAwareDataRequests,"data");return Y&&O.size>0&&G.searchParams.set("_routes",s.filter(W=>O.has(W.route.id)).map(W=>W.route.id).join(",")),[G.pathname+G.search]},[g,d.unstable_trailingSlashAwareDataRequests,b,c,m,A,s,l,y]),q=p.useMemo(()=>uv(T,m),[T,m]),X=mv(T);return p.createElement(p.Fragment,null,z.map(O=>p.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),q.map(O=>p.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),X.map(({key:O,link:Y})=>p.createElement("link",{key:O,nonce:r.nonce,...Y,crossOrigin:Y.crossOrigin??r.crossOrigin})))}function yv(...l){return s=>{l.forEach(r=>{typeof r=="function"?r(s):r!=null&&(r.current=s)})}}var gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gv&&(window.__reactRouterVersion="7.13.1")}catch{}function vv({basename:l,children:s,unstable_useTransitions:r,window:c}){let d=p.useRef();d.current==null&&(d.current=Pg({window:c,v5Compat:!0}));let m=d.current,[y,g]=p.useState({action:m.action,location:m.location}),b=p.useCallback(v=>{r===!1?g(v):p.startTransition(()=>g(v))},[r]);return p.useLayoutEffect(()=>m.listen(b),[m,b]),p.createElement(Z1,{basename:l,children:s,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var K0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yn=p.forwardRef(function({onClick:s,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,unstable_mask:g,state:b,target:v,to:A,preventScrollReset:T,viewTransition:z,unstable_defaultShouldRevalidate:q,...X},O){let{basename:Y,navigator:G,unstable_useTransitions:W}=p.useContext(Lt),$=typeof A=="string"&&K0.test(A),V=k0(A,Y);A=V.to;let ne=M1(A,{relative:d}),Q=Nt(),F=null;if(g){let Ne=Mu(g,[],Q.unstable_mask?Q.unstable_mask.pathname:"/",!0);Y!=="/"&&(Ne.pathname=Ne.pathname==="/"?Y:ha([Y,Ne.pathname])),F=G.createHref(Ne)}let[he,le,Be]=dv(c,X),Ue=Sv(A,{replace:y,unstable_mask:g,state:b,target:v,preventScrollReset:T,relative:d,viewTransition:z,unstable_defaultShouldRevalidate:q,unstable_useTransitions:W});function Ge(Ne){s&&s(Ne),Ne.defaultPrevented||Ue(Ne)}let nt=!(V.isExternal||m),we=p.createElement("a",{...X,...Be,href:(nt?F:void 0)||V.absoluteURL||ne,onClick:nt?Ge:s,ref:yv(O,le),target:v,"data-discover":!$&&r==="render"?"true":void 0});return he&&!$?p.createElement(p.Fragment,null,we,p.createElement(hv,{page:ne})):we});Yn.displayName="Link";var zl=p.forwardRef(function({"aria-current":s="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:g,children:b,...v},A){let T=Pi(y,{relative:v.relative}),z=Nt(),q=p.useContext(zu),{navigator:X,basename:O}=p.useContext(Lt),Y=q!=null&&_v(T)&&g===!0,G=X.encodeLocation?X.encodeLocation(T).pathname:T.pathname,W=z.pathname,$=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;r||(W=W.toLowerCase(),$=$?$.toLowerCase():null,G=G.toLowerCase()),$&&O&&($=La($,O)||$);const V=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ne=W===G||!d&&W.startsWith(G)&&W.charAt(V)==="/",Q=$!=null&&($===G||!d&&$.startsWith(G)&&$.charAt(G.length)==="/"),F={isActive:ne,isPending:Q,isTransitioning:Y},he=ne?s:void 0,le;typeof c=="function"?le=c(F):le=[c,ne?"active":null,Q?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Be=typeof m=="function"?m(F):m;return p.createElement(Yn,{...v,"aria-current":he,className:le,ref:A,style:Be,to:y,viewTransition:g},typeof b=="function"?b(F):b)});zl.displayName="NavLink";var bv=p.forwardRef(({discover:l="render",fetcherKey:s,navigate:r,reloadDocument:c,replace:d,state:m,method:y=Au,action:g,onSubmit:b,relative:v,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z,...q},X)=>{let{unstable_useTransitions:O}=p.useContext(Lt),Y=jv(),G=Av(g,{relative:v}),W=y.toLowerCase()==="get"?"get":"post",$=typeof g=="string"&&K0.test(g),V=ne=>{if(b&&b(ne),ne.defaultPrevented)return;ne.preventDefault();let Q=ne.nativeEvent.submitter,F=(Q==null?void 0:Q.getAttribute("formmethod"))||y,he=()=>Y(Q||ne.currentTarget,{fetcherKey:s,method:F,navigate:r,replace:d,state:m,relative:v,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z});O&&r!==!1?p.startTransition(()=>he()):he()};return p.createElement("form",{ref:X,method:W,action:G,onSubmit:c?b:V,...q,"data-discover":!$&&l==="render"?"true":void 0})});bv.displayName="Form";function xv(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $0(l){let s=p.useContext(Ql);return Ve(s,xv(l)),s}function Sv(l,{target:s,replace:r,unstable_mask:c,state:d,preventScrollReset:m,relative:y,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:v}={}){let A=_o(),T=Nt(),z=Pi(l,{relative:y});return p.useCallback(q=>{if(W1(q,s)){q.preventDefault();let X=r!==void 0?r:Vi(T)===Vi(z),O=()=>A(l,{replace:X,unstable_mask:c,state:d,preventScrollReset:m,relative:y,viewTransition:g,unstable_defaultShouldRevalidate:b});v?p.startTransition(()=>O()):O()}},[T,A,z,r,c,d,s,l,m,y,g,b,v])}function pS(l){Jt(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 s=p.useRef(ho(l)),r=p.useRef(!1),c=Nt(),d=p.useMemo(()=>I1(c.search,r.current?null:s.current),[c.search]),m=_o(),y=p.useCallback((g,b)=>{const v=ho(typeof g=="function"?g(new URLSearchParams(d)):g);r.current=!0,m("?"+v,b)},[m,d]);return[d,y]}var Ev=0,Tv=()=>`__${String(++Ev)}__`;function jv(){let{router:l}=$0("useSubmit"),{basename:s}=p.useContext(Lt),r=Y1(),c=l.fetch,d=l.navigate;return p.useCallback(async(m,y={})=>{let{action:g,method:b,encType:v,formData:A,body:T}=av(m,s);if(y.navigate===!1){let z=y.fetcherKey||Tv();await c(z,r,y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:A,body:T,formMethod:y.method||b,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:A,body:T,formMethod:y.method||b,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,s,r])}function Av(l,{relative:s}={}){let{basename:r}=p.useContext(Lt),c=p.useContext(na);Ve(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...Pi(l||".",{relative:s})},y=Nt();if(l==null){m.search=y.search;let g=new URLSearchParams(m.search),b=g.getAll("index");if(b.some(A=>A==="")){g.delete("index"),b.filter(T=>T).forEach(T=>g.append("index",T));let A=g.toString();m.search=A?`?${A}`:""}}return(!l||l===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:ha([r,m.pathname])),Vi(m)}function _v(l,{relative:s}={}){let r=p.useContext(H0);Ve(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=$0("useViewTransitionState"),d=Pi(l,{relative:s});if(!r.isTransitioning)return!1;let m=La(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=La(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Cu(d.pathname,y)!=null||Cu(d.pathname,m)!=null}var Du=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},kn,on,Dl,T0,Nv=(T0=class extends Du{constructor(){super();je(this,kn);je(this,on);je(this,Dl);ce(this,Dl,s=>{if(typeof window<"u"&&window.addEventListener){const r=()=>s();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,on)||this.setEventListener(k(this,Dl))}onUnsubscribe(){var s;this.hasListeners()||((s=k(this,on))==null||s.call(this),ce(this,on,void 0))}setEventListener(s){var r;ce(this,Dl,s),(r=k(this,on))==null||r.call(this),ce(this,on,s(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(s){k(this,kn)!==s&&(ce(this,kn,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(r=>{r(s)})}isFocused(){var s;return typeof k(this,kn)=="boolean"?k(this,kn):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},kn=new WeakMap,on=new WeakMap,Dl=new WeakMap,T0),J0=new Nv,Cv={setTimeout:(l,s)=>setTimeout(l,s),clearTimeout:l=>clearTimeout(l),setInterval:(l,s)=>setInterval(l,s),clearInterval:l=>clearInterval(l)},fn,Eo,j0,wv=(j0=class{constructor(){je(this,fn,Cv);je(this,Eo,!1)}setTimeoutProvider(l){ce(this,fn,l)}setTimeout(l,s){return k(this,fn).setTimeout(l,s)}clearTimeout(l){k(this,fn).clearTimeout(l)}setInterval(l,s){return k(this,fn).setInterval(l,s)}clearInterval(l){k(this,fn).clearInterval(l)}},fn=new WeakMap,Eo=new WeakMap,j0),mo=new wv;function Ov(l){setTimeout(l,0)}var Mv=typeof window>"u"||"Deno"in globalThis;function ta(){}function zv(l,s){return typeof l=="function"?l(s):l}function Rv(l){return typeof l=="number"&&l>=0&&l!==1/0}function Dv(l,s){return Math.max(l+(s||0)-Date.now(),0)}function po(l,s){return typeof l=="function"?l(s):l}function Uv(l,s){return typeof l=="function"?l(s):l}function Wm(l,s){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:g}=l;if(y){if(c){if(s.queryHash!==Mo(y,s.options))return!1}else if(!Zi(s.queryKey,y))return!1}if(r!=="all"){const b=s.isActive();if(r==="active"&&!b||r==="inactive"&&b)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||d&&d!==s.state.fetchStatus||m&&!m(s))}function Im(l,s){const{exact:r,status:c,predicate:d,mutationKey:m}=l;if(m){if(!s.options.mutationKey)return!1;if(r){if(Xi(s.options.mutationKey)!==Xi(m))return!1}else if(!Zi(s.options.mutationKey,m))return!1}return!(c&&s.state.status!==c||d&&!d(s))}function Mo(l,s){return((s==null?void 0:s.queryKeyHashFn)||Xi)(l)}function Xi(l){return JSON.stringify(l,(s,r)=>yo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Zi(l,s){return l===s?!0:typeof l!=typeof s?!1:l&&s&&typeof l=="object"&&typeof s=="object"?Object.keys(s).every(r=>Zi(l[r],s[r])):!1}var kv=Object.prototype.hasOwnProperty;function F0(l,s,r=0){if(l===s)return l;if(r>500)return s;const c=e0(l)&&e0(s);if(!c&&!(yo(l)&&yo(s)))return s;const m=(c?l:Object.keys(l)).length,y=c?s:Object.keys(s),g=y.length,b=c?new Array(g):{};let v=0;for(let A=0;A<g;A++){const T=c?A:y[A],z=l[T],q=s[T];if(z===q){b[T]=z,(c?A<m:kv.call(l,T))&&v++;continue}if(z===null||q===null||typeof z!="object"||typeof q!="object"){b[T]=q;continue}const X=F0(z,q,r+1);b[T]=X,X===z&&v++}return m===g&&v===m?l:b}function e0(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function yo(l){if(!t0(l))return!1;const s=l.constructor;if(s===void 0)return!0;const r=s.prototype;return!(!t0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function t0(l){return Object.prototype.toString.call(l)==="[object Object]"}function Lv(l){return new Promise(s=>{mo.setTimeout(s,l)})}function Hv(l,s,r){return typeof r.structuralSharing=="function"?r.structuralSharing(l,s):r.structuralSharing!==!1?F0(l,s):s}function qv(l,s,r=0){const c=[...l,s];return r&&c.length>r?c.slice(1):c}function Bv(l,s,r=0){const c=[s,...l];return r&&c.length>r?c.slice(0,-1):c}var zo=Symbol();function P0(l,s){return!l.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!l.queryFn||l.queryFn===zo?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function Gv(l,s,r){let c=!1,d;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(d??(d=s()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),l}var W0=(()=>{let l=()=>Mv;return{isServer(){return l()},setIsServer(s){l=s}}})();function Yv(){let l,s;const r=new Promise((d,m)=>{l=d,s=m});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),l(d)},r.reject=d=>{c({status:"rejected",reason:d}),s(d)},r}var Qv=Ov;function Vv(){let l=[],s=0,r=g=>{g()},c=g=>{g()},d=Qv;const m=g=>{s?l.push(g):d(()=>{r(g)})},y=()=>{const g=l;l=[],g.length&&d(()=>{c(()=>{g.forEach(b=>{r(b)})})})};return{batch:g=>{let b;s++;try{b=g()}finally{s--,s||y()}return b},batchCalls:g=>(...b)=>{m(()=>{g(...b)})},schedule:m,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{d=g}}}var vt=Vv(),Ul,dn,kl,A0,Xv=(A0=class extends Du{constructor(){super();je(this,Ul,!0);je(this,dn);je(this,kl);ce(this,kl,s=>{if(typeof window<"u"&&window.addEventListener){const r=()=>s(!0),c=()=>s(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){k(this,dn)||this.setEventListener(k(this,kl))}onUnsubscribe(){var s;this.hasListeners()||((s=k(this,dn))==null||s.call(this),ce(this,dn,void 0))}setEventListener(s){var r;ce(this,kl,s),(r=k(this,dn))==null||r.call(this),ce(this,dn,s(this.setOnline.bind(this)))}setOnline(s){k(this,Ul)!==s&&(ce(this,Ul,s),this.listeners.forEach(c=>{c(s)}))}isOnline(){return k(this,Ul)}},Ul=new WeakMap,dn=new WeakMap,kl=new WeakMap,A0),wu=new Xv;function Zv(l){return Math.min(1e3*2**l,3e4)}function I0(l){return(l??"online")==="online"?wu.isOnline():!0}var go=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function ep(l){let s=!1,r=0,c;const d=Yv(),m=()=>d.status!=="pending",y=O=>{var Y;if(!m()){const G=new go(O);z(G),(Y=l.onCancel)==null||Y.call(l,G)}},g=()=>{s=!0},b=()=>{s=!1},v=()=>J0.isFocused()&&(l.networkMode==="always"||wu.isOnline())&&l.canRun(),A=()=>I0(l.networkMode)&&l.canRun(),T=O=>{m()||(c==null||c(),d.resolve(O))},z=O=>{m()||(c==null||c(),d.reject(O))},q=()=>new Promise(O=>{var Y;c=G=>{(m()||v())&&O(G)},(Y=l.onPause)==null||Y.call(l)}).then(()=>{var O;c=void 0,m()||(O=l.onContinue)==null||O.call(l)}),X=()=>{if(m())return;let O;const Y=r===0?l.initialPromise:void 0;try{O=Y??l.fn()}catch(G){O=Promise.reject(G)}Promise.resolve(O).then(T).catch(G=>{var Q;if(m())return;const W=l.retry??(W0.isServer()?0:3),$=l.retryDelay??Zv,V=typeof $=="function"?$(r,G):$,ne=W===!0||typeof W=="number"&&r<W||typeof W=="function"&&W(r,G);if(s||!ne){z(G);return}r++,(Q=l.onFail)==null||Q.call(l,r,G),Lv(V).then(()=>v()?void 0:q()).then(()=>{s?z(G):X()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:b,canStart:A,start:()=>(A()?X():q().then(X),d)}}var Ln,_0,tp=(_0=class{constructor(){je(this,Ln)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rv(this.gcTime)&&ce(this,Ln,mo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(W0.isServer()?1/0:300*1e3))}clearGcTimeout(){k(this,Ln)!==void 0&&(mo.clearTimeout(k(this,Ln)),ce(this,Ln,void 0))}},Ln=new WeakMap,_0),Hn,Ll,$t,qn,st,Ki,Bn,kt,ap,Da,N0,Kv=(N0=class extends tp{constructor(s){super();je(this,kt);je(this,Hn);je(this,Ll);je(this,$t);je(this,qn);je(this,st);je(this,Ki);je(this,Bn);ce(this,Bn,!1),ce(this,Ki,s.defaultOptions),this.setOptions(s.options),this.observers=[],ce(this,qn,s.client),ce(this,$t,k(this,qn).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,ce(this,Hn,n0(this.options)),this.state=s.state??k(this,Hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=k(this,st))==null?void 0:s.promise}setOptions(s){if(this.options={...k(this,Ki),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=n0(this.options);r.data!==void 0&&(this.setState(a0(r.data,r.dataUpdatedAt)),ce(this,Hn,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,$t).remove(this)}setData(s,r){const c=Hv(this.state.data,s,this.options);return dt(this,kt,Da).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(s,r){dt(this,kt,Da).call(this,{type:"setState",state:s,setStateOptions:r})}cancel(s){var c,d;const r=(c=k(this,st))==null?void 0:c.promise;return(d=k(this,st))==null||d.cancel(s),r?r.then(ta).catch(ta):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return k(this,Hn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>Uv(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>po(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!Dv(this.state.dataUpdatedAt,s)}onFocus(){var r;const s=this.observers.find(c=>c.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(r=k(this,st))==null||r.continue()}onOnline(){var r;const s=this.observers.find(c=>c.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(r=k(this,st))==null||r.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),k(this,$t).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(r=>r!==s),this.observers.length||(k(this,st)&&(k(this,Bn)||dt(this,kt,ap).call(this)?k(this,st).cancel({revert:!0}):k(this,st).cancelRetry()),this.scheduleGc()),k(this,$t).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||dt(this,kt,Da).call(this,{type:"invalidate"})}async fetch(s,r){var b,v,A,T,z,q,X,O,Y,G,W,$;if(this.state.fetchStatus!=="idle"&&((b=k(this,st))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,st))return k(this,st).continueRetry(),k(this,st).promise}if(s&&this.setOptions(s),!this.options.queryFn){const V=this.observers.find(ne=>ne.options.queryFn);V&&this.setOptions(V.options)}const c=new AbortController,d=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(ce(this,Bn,!0),c.signal)})},m=()=>{const V=P0(this.options,r),Q=(()=>{const F={client:k(this,qn),queryKey:this.queryKey,meta:this.meta};return d(F),F})();return ce(this,Bn,!1),this.options.persister?this.options.persister(V,Q,this):V(Q)},g=(()=>{const V={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,qn),state:this.state,fetchFn:m};return d(V),V})();(v=this.options.behavior)==null||v.onFetch(g,this),ce(this,Ll,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((A=g.fetchOptions)==null?void 0:A.meta))&&dt(this,kt,Da).call(this,{type:"fetch",meta:(T=g.fetchOptions)==null?void 0:T.meta}),ce(this,st,ep({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:V=>{V instanceof go&&V.revert&&this.setState({...k(this,Ll),fetchStatus:"idle"}),c.abort()},onFail:(V,ne)=>{dt(this,kt,Da).call(this,{type:"failed",failureCount:V,error:ne})},onPause:()=>{dt(this,kt,Da).call(this,{type:"pause"})},onContinue:()=>{dt(this,kt,Da).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const V=await k(this,st).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(q=(z=k(this,$t).config).onSuccess)==null||q.call(z,V,this),(O=(X=k(this,$t).config).onSettled)==null||O.call(X,V,this.state.error,this),V}catch(V){if(V instanceof go){if(V.silent)return k(this,st).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw dt(this,kt,Da).call(this,{type:"error",error:V}),(G=(Y=k(this,$t).config).onError)==null||G.call(Y,V,this),($=(W=k(this,$t).config).onSettled)==null||$.call(W,this.state.data,V,this),V}finally{this.scheduleGc()}}},Hn=new WeakMap,Ll=new WeakMap,$t=new WeakMap,qn=new WeakMap,st=new WeakMap,Ki=new WeakMap,Bn=new WeakMap,kt=new WeakSet,ap=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Da=function(s){const r=c=>{switch(s.type){case"failed":return{...c,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...$v(c.data,this.options),fetchMeta:s.meta??null};case"success":const d={...c,...a0(s.data,s.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Ll,s.manual?d:void 0),d;case"error":const m=s.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...s.state}}};this.state=r(this.state),vt.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),k(this,$t).notify({query:this,type:"updated",action:s})})},N0);function $v(l,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:I0(s.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function a0(l,s){return{data:l,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function n0(l){const s=typeof l.initialData=="function"?l.initialData():l.initialData,r=s!==void 0,c=r?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function l0(l){return{onFetch:(s,r)=>{var A,T,z,q,X;const c=s.options,d=(z=(T=(A=s.fetchOptions)==null?void 0:A.meta)==null?void 0:T.fetchMore)==null?void 0:z.direction,m=((q=s.state.data)==null?void 0:q.pages)||[],y=((X=s.state.data)==null?void 0:X.pageParams)||[];let g={pages:[],pageParams:[]},b=0;const v=async()=>{let O=!1;const Y=$=>{Gv($,()=>s.signal,()=>O=!0)},G=P0(s.options,s.fetchOptions),W=async($,V,ne)=>{if(O)return Promise.reject();if(V==null&&$.pages.length)return Promise.resolve($);const F=(()=>{const Ue={client:s.client,queryKey:s.queryKey,pageParam:V,direction:ne?"backward":"forward",meta:s.options.meta};return Y(Ue),Ue})(),he=await G(F),{maxPages:le}=s.options,Be=ne?Bv:qv;return{pages:Be($.pages,he,le),pageParams:Be($.pageParams,V,le)}};if(d&&m.length){const $=d==="backward",V=$?Jv:i0,ne={pages:m,pageParams:y},Q=V(c,ne);g=await W(ne,Q,$)}else{const $=l??m.length;do{const V=b===0?y[0]??c.initialPageParam:i0(c,g);if(b>0&&V==null)break;g=await W(g,V),b++}while(b<$)}return g};s.options.persister?s.fetchFn=()=>{var O,Y;return(Y=(O=s.options).persister)==null?void 0:Y.call(O,v,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},r)}:s.fetchFn=v}}}function i0(l,{pages:s,pageParams:r}){const c=s.length-1;return s.length>0?l.getNextPageParam(s[c],s,r[c],r):void 0}function Jv(l,{pages:s,pageParams:r}){var c;return s.length>0?(c=l.getPreviousPageParam)==null?void 0:c.call(l,s[0],s,r[0],r):void 0}var $i,oa,pt,Gn,fa,cn,C0,Fv=(C0=class extends tp{constructor(s){super();je(this,fa);je(this,$i);je(this,oa);je(this,pt);je(this,Gn);ce(this,$i,s.client),this.mutationId=s.mutationId,ce(this,pt,s.mutationCache),ce(this,oa,[]),this.state=s.state||Pv(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){k(this,oa).includes(s)||(k(this,oa).push(s),this.clearGcTimeout(),k(this,pt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){ce(this,oa,k(this,oa).filter(r=>r!==s)),this.scheduleGc(),k(this,pt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){k(this,oa).length||(this.state.status==="pending"?this.scheduleGc():k(this,pt).remove(this))}continue(){var s;return((s=k(this,Gn))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var y,g,b,v,A,T,z,q,X,O,Y,G,W,$,V,ne,Q,F;const r=()=>{dt(this,fa,cn).call(this,{type:"continue"})},c={client:k(this,$i),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,Gn,ep({fn:()=>this.options.mutationFn?this.options.mutationFn(s,c):Promise.reject(new Error("No mutationFn found")),onFail:(he,le)=>{dt(this,fa,cn).call(this,{type:"failed",failureCount:he,error:le})},onPause:()=>{dt(this,fa,cn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,pt).canRun(this)}));const d=this.state.status==="pending",m=!k(this,Gn).canStart();try{if(d)r();else{dt(this,fa,cn).call(this,{type:"pending",variables:s,isPaused:m}),k(this,pt).config.onMutate&&await k(this,pt).config.onMutate(s,this,c);const le=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,s,c));le!==this.state.context&&dt(this,fa,cn).call(this,{type:"pending",context:le,variables:s,isPaused:m})}const he=await k(this,Gn).start();return await((v=(b=k(this,pt).config).onSuccess)==null?void 0:v.call(b,he,s,this.state.context,this,c)),await((T=(A=this.options).onSuccess)==null?void 0:T.call(A,he,s,this.state.context,c)),await((q=(z=k(this,pt).config).onSettled)==null?void 0:q.call(z,he,null,this.state.variables,this.state.context,this,c)),await((O=(X=this.options).onSettled)==null?void 0:O.call(X,he,null,s,this.state.context,c)),dt(this,fa,cn).call(this,{type:"success",data:he}),he}catch(he){try{await((G=(Y=k(this,pt).config).onError)==null?void 0:G.call(Y,he,s,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await(($=(W=this.options).onError)==null?void 0:$.call(W,he,s,this.state.context,c))}catch(le){Promise.reject(le)}try{await((ne=(V=k(this,pt).config).onSettled)==null?void 0:ne.call(V,void 0,he,this.state.variables,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((F=(Q=this.options).onSettled)==null?void 0:F.call(Q,void 0,he,s,this.state.context,c))}catch(le){Promise.reject(le)}throw dt(this,fa,cn).call(this,{type:"error",error:he}),he}finally{k(this,pt).runNext(this)}}},$i=new WeakMap,oa=new WeakMap,pt=new WeakMap,Gn=new WeakMap,fa=new WeakSet,cn=function(s){const r=c=>{switch(s.type){case"failed":return{...c,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...c,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:s.error,failureCount:c.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=r(this.state),vt.batch(()=>{k(this,oa).forEach(c=>{c.onMutationUpdate(s)}),k(this,pt).notify({mutation:this,type:"updated",action:s})})},C0);function Pv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ka,aa,Ji,w0,Wv=(w0=class extends Du{constructor(s={}){super();je(this,ka);je(this,aa);je(this,Ji);this.config=s,ce(this,ka,new Set),ce(this,aa,new Map),ce(this,Ji,0)}build(s,r,c){const d=new Fv({client:s,mutationCache:this,mutationId:++xu(this,Ji)._,options:s.defaultMutationOptions(r),state:c});return this.add(d),d}add(s){k(this,ka).add(s);const r=Eu(s);if(typeof r=="string"){const c=k(this,aa).get(r);c?c.push(s):k(this,aa).set(r,[s])}this.notify({type:"added",mutation:s})}remove(s){if(k(this,ka).delete(s)){const r=Eu(s);if(typeof r=="string"){const c=k(this,aa).get(r);if(c)if(c.length>1){const d=c.indexOf(s);d!==-1&&c.splice(d,1)}else c[0]===s&&k(this,aa).delete(r)}}this.notify({type:"removed",mutation:s})}canRun(s){const r=Eu(s);if(typeof r=="string"){const c=k(this,aa).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===s}else return!0}runNext(s){var c;const r=Eu(s);if(typeof r=="string"){const d=(c=k(this,aa).get(r))==null?void 0:c.find(m=>m!==s&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{k(this,ka).forEach(s=>{this.notify({type:"removed",mutation:s})}),k(this,ka).clear(),k(this,aa).clear()})}getAll(){return Array.from(k(this,ka))}find(s){const r={exact:!0,...s};return this.getAll().find(c=>Im(r,c))}findAll(s={}){return this.getAll().filter(r=>Im(s,r))}notify(s){vt.batch(()=>{this.listeners.forEach(r=>{r(s)})})}resumePausedMutations(){const s=this.getAll().filter(r=>r.state.isPaused);return vt.batch(()=>Promise.all(s.map(r=>r.continue().catch(ta))))}},ka=new WeakMap,aa=new WeakMap,Ji=new WeakMap,w0);function Eu(l){var s;return(s=l.options.scope)==null?void 0:s.id}var da,O0,Iv=(O0=class extends Du{constructor(s={}){super();je(this,da);this.config=s,ce(this,da,new Map)}build(s,r,c){const d=r.queryKey,m=r.queryHash??Mo(d,r);let y=this.get(m);return y||(y=new Kv({client:s,queryKey:d,queryHash:m,options:s.defaultQueryOptions(r),state:c,defaultOptions:s.getQueryDefaults(d)}),this.add(y)),y}add(s){k(this,da).has(s.queryHash)||(k(this,da).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const r=k(this,da).get(s.queryHash);r&&(s.destroy(),r===s&&k(this,da).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){vt.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return k(this,da).get(s)}getAll(){return[...k(this,da).values()]}find(s){const r={exact:!0,...s};return this.getAll().find(c=>Wm(r,c))}findAll(s={}){const r=this.getAll();return Object.keys(s).length>0?r.filter(c=>Wm(s,c)):r}notify(s){vt.batch(()=>{this.listeners.forEach(r=>{r(s)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},da=new WeakMap,O0),Ke,hn,mn,Hl,ql,pn,Bl,Gl,M0,eb=(M0=class{constructor(l={}){je(this,Ke);je(this,hn);je(this,mn);je(this,Hl);je(this,ql);je(this,pn);je(this,Bl);je(this,Gl);ce(this,Ke,l.queryCache||new Iv),ce(this,hn,l.mutationCache||new Wv),ce(this,mn,l.defaultOptions||{}),ce(this,Hl,new Map),ce(this,ql,new Map),ce(this,pn,0)}mount(){xu(this,pn)._++,k(this,pn)===1&&(ce(this,Bl,J0.subscribe(async l=>{l&&(await this.resumePausedMutations(),k(this,Ke).onFocus())})),ce(this,Gl,wu.subscribe(async l=>{l&&(await this.resumePausedMutations(),k(this,Ke).onOnline())})))}unmount(){var l,s;xu(this,pn)._--,k(this,pn)===0&&((l=k(this,Bl))==null||l.call(this),ce(this,Bl,void 0),(s=k(this,Gl))==null||s.call(this),ce(this,Gl,void 0))}isFetching(l){return k(this,Ke).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return k(this,hn).findAll({...l,status:"pending"}).length}getQueryData(l){var r;const s=this.defaultQueryOptions({queryKey:l});return(r=k(this,Ke).get(s.queryHash))==null?void 0:r.state.data}ensureQueryData(l){const s=this.defaultQueryOptions(l),r=k(this,Ke).build(this,s),c=r.state.data;return c===void 0?this.fetchQuery(l):(l.revalidateIfStale&&r.isStaleByTime(po(s.staleTime,r))&&this.prefetchQuery(s),Promise.resolve(c))}getQueriesData(l){return k(this,Ke).findAll(l).map(({queryKey:s,state:r})=>{const c=r.data;return[s,c]})}setQueryData(l,s,r){const c=this.defaultQueryOptions({queryKey:l}),d=k(this,Ke).get(c.queryHash),m=d==null?void 0:d.state.data,y=zv(s,m);if(y!==void 0)return k(this,Ke).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(l,s,r){return vt.batch(()=>k(this,Ke).findAll(l).map(({queryKey:c})=>[c,this.setQueryData(c,s,r)]))}getQueryState(l){var r;const s=this.defaultQueryOptions({queryKey:l});return(r=k(this,Ke).get(s.queryHash))==null?void 0:r.state}removeQueries(l){const s=k(this,Ke);vt.batch(()=>{s.findAll(l).forEach(r=>{s.remove(r)})})}resetQueries(l,s){const r=k(this,Ke);return vt.batch(()=>(r.findAll(l).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...l},s)))}cancelQueries(l,s={}){const r={revert:!0,...s},c=vt.batch(()=>k(this,Ke).findAll(l).map(d=>d.cancel(r)));return Promise.all(c).then(ta).catch(ta)}invalidateQueries(l,s={}){return vt.batch(()=>(k(this,Ke).findAll(l).forEach(r=>{r.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},s)))}refetchQueries(l,s={}){const r={...s,cancelRefetch:s.cancelRefetch??!0},c=vt.batch(()=>k(this,Ke).findAll(l).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ta)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ta)}fetchQuery(l){const s=this.defaultQueryOptions(l);s.retry===void 0&&(s.retry=!1);const r=k(this,Ke).build(this,s);return r.isStaleByTime(po(s.staleTime,r))?r.fetch(s):Promise.resolve(r.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ta).catch(ta)}fetchInfiniteQuery(l){return l.behavior=l0(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ta).catch(ta)}ensureInfiniteQueryData(l){return l.behavior=l0(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return wu.isOnline()?k(this,hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Ke)}getMutationCache(){return k(this,hn)}getDefaultOptions(){return k(this,mn)}setDefaultOptions(l){ce(this,mn,l)}setQueryDefaults(l,s){k(this,Hl).set(Xi(l),{queryKey:l,defaultOptions:s})}getQueryDefaults(l){const s=[...k(this,Hl).values()],r={};return s.forEach(c=>{Zi(l,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(l,s){k(this,ql).set(Xi(l),{mutationKey:l,defaultOptions:s})}getMutationDefaults(l){const s=[...k(this,ql).values()],r={};return s.forEach(c=>{Zi(l,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(l){if(l._defaulted)return l;const s={...k(this,mn).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return s.queryHash||(s.queryHash=Mo(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===zo&&(s.enabled=!1),s}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...k(this,mn).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){k(this,Ke).clear(),k(this,hn).clear()}},Ke=new WeakMap,hn=new WeakMap,mn=new WeakMap,Hl=new WeakMap,ql=new WeakMap,pn=new WeakMap,Bl=new WeakMap,Gl=new WeakMap,M0),tb=p.createContext(void 0),ab=({client:l,children:s})=>(p.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),o.jsx(tb.Provider,{value:l,children:s}));const nb="modulepreload",lb=function(l){return"/"+l},s0={},fe=function(s,r,c){let d=Promise.resolve();if(r&&r.length>0){let y=function(v){return Promise.all(v.map(A=>Promise.resolve(A).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),b=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));d=y(r.map(v=>{if(v=lb(v),v in s0)return;s0[v]=!0;const A=v.endsWith(".css"),T=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${T}`))return;const z=document.createElement("link");if(z.rel=A?"stylesheet":nb,A||(z.as="script"),z.crossOrigin="",z.href=v,b&&z.setAttribute("nonce",b),document.head.appendChild(z),A)return new Promise((q,X)=>{z.addEventListener("load",q),z.addEventListener("error",()=>X(new Error(`Unable to preload CSS for ${v}`)))})}))}function m(y){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=y,window.dispatchEvent(g),!g.defaultPrevented)throw y}return d.then(y=>{for(const g of y||[])g.status==="rejected"&&m(g.reason);return s().catch(m)})};var ib=function(){return null};const Ro="";function Uu(){const l=localStorage.getItem("titan-token");return l?{Authorization:`Bearer ${l}`}:{}}function yt(l,s){const r={...Uu(),...s==null?void 0:s.headers};return fetch(l,{...s,headers:r})}async function H(l,s){const r=await fetch(`${Ro}${l}`,{...s,headers:{"Content-Type":"application/json",...Uu(),...s==null?void 0:s.headers}});if(!r.ok){const c=await r.text().catch(()=>"");throw new Error(`${r.status}: ${c||r.statusText}`)}return r.json()}function yS(l,s,r,c,d){return Do("chat_message_sent",{streaming:!0,hasSession:!!s}),new Promise((m,y)=>{fetch(`${Ro}/api/message`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...Uu()},body:JSON.stringify({content:l,sessionId:s,...(d==null?void 0:d.agentId)&&{agentId:d.agentId},...(d==null?void 0:d.systemPromptAppendix)&&{systemPromptAppendix:d.systemPromptAppendix}}),signal:c}).then(g=>{var Y;if(!g.ok){y(new Error(`${g.status}: ${g.statusText}`));return}const b=(Y=g.body)==null?void 0:Y.getReader();if(!b){y(new Error("No response body"));return}const v=new TextDecoder;let A="",T="";const z=6e4;let q=null;const X=()=>{q&&clearTimeout(q),q=setTimeout(()=>{try{b==null||b.cancel("stream-quiet-timeout")}catch{}y(new Error("SSE stream went silent for over 60s — connection appears dead."))},z)};X();function O(){b.read().then(({done:G,value:W})=>{if(G){q&&clearTimeout(q),m();return}X(),A+=v.decode(W,{stream:!0});const $=A.split(`
|
|
62
|
-
`);A=$.pop()||"";for(const V of $)if(V.startsWith("event: "))T=V.slice(7).trim();else if(V.startsWith("data: ")){const ne=V.slice(6);if(ne==="[DONE]"){m();return}try{const Q=JSON.parse(ne),F=T||Q.type||"token";F==="token"?r==null||r({type:"token",data:Q.text??Q.data??""}):F==="tool_call"?r==null||r({type:"tool_start",data:"",toolName:Q.name,toolArgs:Q.args}):F==="tool_end"?r==null||r({type:"tool_end",data:"",toolName:Q.name,toolResult:Q.result,toolDurationMs:Q.durationMs,toolSuccess:Q.success,toolDiff:Q.diff}):F==="thinking"?r==null||r({type:"thinking",data:""}):F==="round"?r==null||r({type:"round",data:"",round:Q.round,maxRounds:Q.maxRounds}):F==="done"?Q.error&&!Q.content?r==null||r({type:"error",data:Q.message??Q.error??"Unknown error",errorCode:Q.error,errorMessage:Q.message,errorAction:Q.action}):r==null||r({type:"done",data:Q.content??"",sessionId:Q.sessionId,model:Q.model,durationMs:Q.durationMs,toolsUsed:Q.toolsUsed,pendingApproval:Q.pendingApproval}):F==="error"?r==null||r({type:"error",data:Q.error??Q.message??""}):F==="widget"?r==null||r({type:"widget",data:"",widgetMode:Q.mode,widget:Q.widget,timestamp:Q.timestamp}):r==null||r({type:Q.type??"token",data:Q.text??Q.data??"",...Q})}catch{r==null||r({type:"token",data:ne})}T=""}else V===""&&(T="");O()}).catch(G=>{q&&clearTimeout(q),y(G)})}O()}).catch(y)})}async function gS(){return H("/api/sessions")}async function vS(l){return(await H(`/api/sessions/${l}/messages`)).map(r=>({role:r.role??"assistant",content:r.content??"",timestamp:r.createdAt??r.timestamp??void 0,model:r.model??void 0}))}async function bS(l){await H(`/api/sessions/${l}`,{method:"DELETE"})}async function xS(l,s){await H(`/api/sessions/${l}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s})})}async function np(){return H("/api/config")}async function sb(l){return H("/api/config",{method:"POST",body:JSON.stringify(l)})}async function ub(){return H("/api/voice/health")}async function SS(){const l=await H("/api/stats");return{uptime:l.uptime??0,totalRequests:l.totalRequests??0,activeAgents:l.activeAgents??0,activeSessions:l.activeSessions??0,memoryUsage:l.memoryUsage??{heapUsed:(l.memoryMB??0)*1024*1024,heapTotal:(l.memoryMB??0)*1024*1024*1.5,rss:0,external:0,arrayBuffers:0},version:l.version??"",model:l.model??l.activeModel??"",provider:l.provider??""}}async function ES(){return H("/api/skills")}async function TS(){const l=await H("/api/channels");return(Array.isArray(l)?l:[]).map(s=>{var r;return{name:s.name??"Unknown",type:s.type??((r=s.name)==null?void 0:r.toLowerCase())??"unknown",enabled:s.enabled??s.connected??!1,status:s.connected?"connected":"disconnected"}})}async function jS(){return(await np()).channels??{}}async function AS(l,s){return sb({channels:{[l]:s}})}async function _S(){const l=await H("/api/mesh/peers");return Array.isArray(l)?l:l.peers??[]}async function NS(){const l=await H("/api/mesh/pending");return Array.isArray(l)?l:l.pending??[]}async function CS(l){await H(`/api/mesh/approve/${l}`,{method:"POST"})}async function wS(l){await H(`/api/mesh/reject/${l}`,{method:"POST"})}async function OS(l){await H(`/api/mesh/revoke/${l}`,{method:"POST"})}async function MS(l,s){const r=new URLSearchParams;l&&r.set("level",l),s&&r.set("limit",String(s));const c=r.toString(),d=await H(`/api/logs${c?`?${c}`:""}`);return Array.isArray(d)?d:(d.lines??[]).map(y=>{const g=y.match(/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(DEBUG|INFO|WARN|ERROR)\s+(.*)$/);return g?{timestamp:g[1],level:g[2].toLowerCase(),message:g[3]}:{timestamp:"",level:"info",message:y}})}async function zS(){const l=await H("/api/models"),s=[];for(const[r,c]of Object.entries(l))if(Array.isArray(c))for(const d of c){const m=d.includes("/")?d.split("/").slice(1).join("/"):d;s.push({id:d,name:m,provider:r,available:!0})}return s}async function RS(l,s){await H("/api/model/switch",{method:"POST",body:JSON.stringify({model:l,provider:s})})}async function DS(){return H("/api/personas")}async function US(l){return H("/api/persona/switch",{method:"POST",body:JSON.stringify({persona:l})})}async function kS(){return H("/api/metrics/summary")}async function LS(){return(await H("/api/mcp/clients")).servers??[]}async function HS(l){return H("/api/mcp/clients",{method:"POST",body:JSON.stringify(l)})}async function qS(l){await H(`/api/mcp/clients/${l}`,{method:"DELETE"})}async function BS(l,s){await H(`/api/mcp/clients/${l}/toggle`,{method:"POST",body:JSON.stringify({enabled:s})})}async function GS(l){return H(`/api/mcp/clients/${l}/test`,{method:"POST"})}async function YS(){return(await H("/api/mcp/presets")).presets??[]}async function QS(l){const s=new URLSearchParams;l!=null&&l.since&&s.set("since",l.since),l!=null&&l.action&&s.set("action",l.action),l!=null&&l.source&&s.set("source",l.source),s.set("limit",String(l.limit));const r=s.toString();return(await H(`/api/audit${r?`?${r}`:""}`)).entries??[]}async function VS(l){const s=`?hours=${l}`;return H(`/api/audit/stats${s}`)}async function XS(){return H("/api/files/roots")}async function ZS(l,s){const r=new URLSearchParams;l&&r.set("path",l),s&&r.set("root",s);const c=r.toString();return H(`/api/files${c?`?${c}`:""}`)}async function KS(l,s){const r=new URLSearchParams({path:l});return s&&r.set("root",s),H(`/api/files/read?${r}`)}async function $S(l,s,r){return H("/api/files/write",{method:"POST",body:JSON.stringify({path:l,content:s,root:r})})}async function JS(l,s){return H("/api/files/mkdir",{method:"POST",body:JSON.stringify({path:l,root:s})})}async function FS(l,s,r){return H("/api/files/rename",{method:"POST",body:JSON.stringify({oldPath:l,newPath:s,root:r})})}async function PS(l,s){const r=new URLSearchParams({path:l});return s&&r.set("root",s),H(`/api/files/delete?${r}`,{method:"DELETE"})}async function WS(){return H("/api/voice/f5tts/status")}async function IS(){return H("/api/analytics/profile")}async function e5(){return H("/api/voice/clone/voices")}async function t5(l,s,r){return H("/api/voice/clone/upload",{method:"POST",body:JSON.stringify({name:l,audio:s,transcript:r})})}async function a5(l){return H(`/api/voice/clone/${encodeURIComponent(l)}`,{method:"DELETE"})}async function n5(l,s){const r=JSON.stringify({text:s||"Hello, how can I help you today?",voice:l}),c=await fetch(`${Ro}/api/voice/preview`,{method:"POST",headers:{"Content-Type":"application/json",...Uu()},body:r});if(!c.ok)throw new Error(`Preview failed: ${c.statusText}`);return c.arrayBuffer()}async function l5(){return H("/api/command-post/dashboard")}async function i5(){return H("/api/command-post/agents")}async function s5(){return H("/api/command-post/budgets")}async function u5(l){return H("/api/command-post/budgets",{method:"POST",body:JSON.stringify(l)})}async function r5(l,s){return H(`/api/command-post/budgets/${l}`,{method:"PUT",body:JSON.stringify(s)})}async function c5(l){return H(`/api/command-post/budgets/${l}`,{method:"DELETE"})}async function o5(l){return H(`/api/command-post/issues/${l}/context`)}async function f5(l=50,s){const r=new URLSearchParams({limit:String(l)});return H(`/api/command-post/activity?${r}`)}async function d5(){return H("/api/command-post/goals/tree")}async function h5(){return H("/api/command-post/org")}async function m5(l){const s=new URLSearchParams;l!=null&&l.status&&s.set("status",l.status),l!=null&&l.assignee&&s.set("assignee",l.assignee),l!=null&&l.goalId&&s.set("goalId",l.goalId);const r=s.toString();return H(`/api/command-post/issues${r?`?${r}`:""}`)}async function p5(l){return H("/api/command-post/issues",{method:"POST",body:JSON.stringify(l)})}async function y5(l){return H(`/api/command-post/issues/${l}`)}async function g5(l,s){return H(`/api/command-post/issues/${l}`,{method:"PATCH",body:JSON.stringify(s)})}async function v5(l){return H(`/api/command-post/issues/${l}`,{method:"DELETE"})}async function b5(l){return H(`/api/command-post/issues/${l}`)}async function x5(l,s,r={}){return H(`/api/command-post/issues/${l}/comments`,{method:"POST",body:JSON.stringify({body:s,...r})})}async function S5(l){const s=l?`?status=${l}`:"";return H(`/api/command-post/approvals${s}`)}async function E5(l,s,r){return H(`/api/command-post/approvals/${l}/approve`,{method:"POST",body:JSON.stringify({decidedBy:s,note:r})})}async function T5(l,s,r){return H(`/api/command-post/approvals/${l}/reject`,{method:"POST",body:JSON.stringify({decidedBy:s,note:r})})}async function j5(l,s=50){const r=new URLSearchParams({limit:String(s)});return l&&r.set("agentId",l),H(`/api/command-post/runs?${r}`)}async function A5(l,s){return H(`/api/command-post/agents/${l}`,{method:"PATCH",body:JSON.stringify(s)})}async function _5(l=50,s){const r=new URLSearchParams({limit:String(l)});return H(`/api/traces?${r}`)}async function N5(l){return H(`/api/traces/${l}`)}async function C5(l=50){return H(`/api/alerts?limit=${l}`)}async function w5(){return H("/api/soul/wisdom")}async function O5(l=50){return H(`/api/guardrails/violations?limit=${l}`)}async function M5(){return H("/api/checkpoints")}async function z5(){const l=await H("/api/companies");return Array.isArray(l)?l:l&&typeof l=="object"&&"companies"in l?l.companies:[]}async function R5(l){return H("/api/companies",{method:"POST",body:JSON.stringify(l)})}async function D5(l,s){return H(`/api/companies/${l}`,{method:"PATCH",body:JSON.stringify(s)})}async function U5(l){return H(`/api/companies/${l}`,{method:"DELETE"})}async function k5(l,s,r){return H(`/api/command-post/approvals/${l}/reply`,{method:"POST",body:JSON.stringify({author:s,body:r})})}async function L5(l,s){return H(`/api/command-post/approvals/${l}/snooze`,{method:"POST",body:JSON.stringify({until:s})})}async function H5(l,s,r,c){return H("/api/command-post/approvals/batch",{method:"POST",body:JSON.stringify({ids:l,action:s,decidedBy:r,note:c})})}async function q5(){return H("/api/social/state")}async function B5(l){return H("/api/social/autopilot/toggle",{method:"POST",body:JSON.stringify({enabled:l})})}async function G5(l){return H("/api/social/post",{method:"POST",body:JSON.stringify({content:l})})}async function Y5(l){return H(`/api/social/drafts/${l}/approve`,{method:"POST"})}async function Q5(l){return H(`/api/social/drafts/${l}/reject`,{method:"POST"})}async function V5(){return H("/api/social/graph-context")}async function rb(l){return H("/api/login",{method:"POST",body:JSON.stringify({password:l})})}async function X5(){return H("/api/backup/create",{method:"POST"})}async function Z5(){return H("/api/backup/list")}async function K5(l){return H("/api/backup/verify",{method:"POST",body:JSON.stringify(l?{path:l}:{})})}async function $5(){return H("/api/training/stats")}async function J5(){return H("/api/training/runs")}async function F5(){return H("/api/recipes")}async function P5(l){return H(`/api/recipes/${l}`,{method:"DELETE"})}async function W5(l,s){return H(`/api/recipes/${l}/run`,{method:"POST",body:JSON.stringify({})})}async function I5(){return H("/api/vram")}async function e4(){return H("/api/teams")}async function t4(l){return H(`/api/teams/${l}`,{method:"DELETE"})}async function a4(){return H("/api/cron")}async function n4(l){return H(`/api/cron/${l}/toggle`,{method:"POST"})}async function l4(l){return H(`/api/cron/${l}`,{method:"DELETE"})}async function i4(l){return H(`/api/checkpoints/${l}`,{method:"DELETE"})}async function s4(){return H("/api/organism/alerts")}async function u4(){return H("/api/organism/safety-metrics")}async function r4(l){return H(`/api/organism/alerts/${l}/acknowledge`,{method:"POST"})}async function c4(){try{return await H("/api/dreams/latest")}catch{return null}}async function o4(l=30){return H(`/api/dreams?limit=${l}`)}async function f4(l){try{return await H(`/api/dreams/${encodeURIComponent(l)}`)}catch{return null}}async function d4(){return H("/api/dreams/generate",{method:"POST"})}async function h4(){return H("/api/persona-profiles")}async function m4(l){return H("/api/persona-profiles/active")}async function p4(){return H("/api/fleet")}async function y4(l,s){return H("/api/browser/solve-captcha",{method:"POST",body:JSON.stringify({imageBase64:l,provider:s})})}async function g4(){return H("/api/telephony/dograh/status")}async function v4(l="active"){return H(`/api/telephony/dograh/workflows?status=${encodeURIComponent(l)}`)}async function b4(l=50){return H(`/api/telephony/dograh/calls?limit=${l}`)}async function x4(){return H("/api/telephony/dograh/opt-outs")}async function S4(l){return H("/api/telephony/dograh/call",{method:"POST",body:JSON.stringify(l)})}async function E4(){return H("/api/test-health/summary")}async function T4(){return H("/api/test-health/failing")}async function j4(){return H("/api/test-health/flaky")}async function A4(l){return H("/api/test-health/run",{method:"POST",body:JSON.stringify({})})}function Do(l,s){yt("/api/telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:l,properties:s,timestamp:new Date().toISOString()})}).catch(()=>{})}const lp=p.createContext({config:null,voiceHealth:null,voiceAvailable:!1,loading:!0,refresh:async()=>{}});function cb({children:l}){var A;const[s,r]=p.useState(null),[c,d]=p.useState(null),[m,y]=p.useState(!0),g=async()=>{var T;try{const z=await np();if(r(z),(T=z.voice)!=null&&T.enabled)try{const q=await ub();d(q)}catch{d(null)}}catch(z){console.error("Failed to load config:",z)}finally{y(!1)}};p.useEffect(()=>{g();let T=setInterval(g,3e4);const z=()=>{document.hidden?clearInterval(T):(g(),T=setInterval(g,3e4))};return document.addEventListener("visibilitychange",z),()=>{clearInterval(T),document.removeEventListener("visibilitychange",z)}},[]);const b=!!((A=s==null?void 0:s.voice)!=null&&A.enabled),v=p.useMemo(()=>({config:s,voiceHealth:c,voiceAvailable:b,loading:m,refresh:g}),[s,c,b,m,g]);return o.jsx(lp.Provider,{value:v,children:l})}function ob(){return p.useContext(lp)}const ip=p.createContext({isAuthenticated:!1,isLoading:!0,login:async()=>{},logout:()=>{}});function fb({children:l}){const[s,r]=p.useState(!1),[c,d]=p.useState(!0);p.useEffect(()=>{const b=localStorage.getItem("titan-token"),v={};b&&(v.Authorization=`Bearer ${b}`),fetch("/api/health",{headers:v}).then(A=>{A.ok?r(!0):A.status===401?(localStorage.removeItem("titan-token"),r(!1)):r(!0)}).catch(()=>{r(!0)}).finally(()=>d(!1))},[]);const m=p.useCallback(async b=>{const{token:v}=await rb(b);localStorage.setItem("titan-token",v),r(!0)},[]),y=p.useCallback(()=>{localStorage.removeItem("titan-token"),r(!1)},[]),g=p.useMemo(()=>({isAuthenticated:s,isLoading:c,login:m,logout:y}),[s,c,m,y]);return o.jsx(ip.Provider,{value:g,children:l})}function sp(){return p.useContext(ip)}/**
|
|
61
|
+
Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let A=Nt(),T;if(s){let G=typeof s=="string"?Yl(s):s;Ve(b==="/"||((Y=G.pathname)==null?void 0:Y.startsWith(b)),`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 "${b}" but pathname "${G.pathname}" was given in the \`location\` prop.`),T=G}else T=A;let z=T.pathname||"/",q=z;if(b!=="/"){let G=b.replace(/^\//,"").split("/");q="/"+z.replace(/^\//,"").split("/").slice(G.length).join("/")}let X=z0(l,{pathname:q});Jt(v||X!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),Jt(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.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 O=q1(X&&X.map(G=>Object.assign({},G,{params:Object.assign({},y,G.params),pathname:ha([b,c.encodeLocation?c.encodeLocation(G.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?b:ha([b,c.encodeLocation?c.encodeLocation(G.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),d,r);return s&&O?p.createElement(Fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...T},navigationType:"POP"}},O):O}function k1(){let l=V1(),s=E1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),r=l instanceof Error?l.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",l),y=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:m},"ErrorBoundary")," or"," ",p.createElement("code",{style:m},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},s),r?p.createElement("pre",{style:d},r):null,y)}var U1=p.createElement(k1,null),Q0=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,s){return s.location!==l.location||s.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:s.error,location:s.location,revalidation:l.revalidation||s.revalidation}}componentDidCatch(l,s){this.props.onError?this.props.onError(l,s):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const r=M1(l.digest);r&&(l=r)}let s=l!==void 0?p.createElement(na.Provider,{value:this.props.routeContext},p.createElement(Ao.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?p.createElement(L1,{error:l},s):s}};Q0.contextType=A1;var lo=new WeakMap;function L1({children:l,error:s}){let{basename:r}=p.useContext(Lt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let c=O1(s.digest);if(c){let d=lo.get(s);if(d)throw d;let m=U0(c.location,r);if(k0&&!lo.get(s))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw lo.set(s,y),y}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return l}function H1({routeContext:l,match:s,children:r}){let c=p.useContext(Ql);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),p.createElement(na.Provider,{value:l},r)}function q1(l,s=[],r){let c=r==null?void 0:r.state;if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(s.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let d=l,m=c==null?void 0:c.errors;if(m!=null){let A=d.findIndex(T=>T.route.id&&(m==null?void 0:m[T.route.id])!==void 0);Ve(A>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,A+1))}let y=!1,g=-1;if(r&&c){y=c.renderFallback;for(let A=0;A<d.length;A++){let T=d[A];if((T.route.HydrateFallback||T.route.hydrateFallbackElement)&&(g=A),T.route.id){let{loaderData:z,errors:q}=c,X=T.route.loader&&!z.hasOwnProperty(T.route.id)&&(!q||q[T.route.id]===void 0);if(T.route.lazy||X){r.isStatic&&(y=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let b=r==null?void 0:r.onError,v=c&&b?(A,T)=>{var z,q;b(A,{location:c.location,params:((q=(z=c.matches)==null?void 0:z[0])==null?void 0:q.params)??{},unstable_pattern:T1(c.matches),errorInfo:T})}:void 0;return d.reduceRight((A,T,z)=>{let q,X=!1,O=null,Y=null;c&&(q=m&&T.route.id?m[T.route.id]:void 0,O=T.route.errorElement||U1,y&&(g<0&&z===0?(V0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,Y=null):g===z&&(X=!0,Y=T.route.hydrateFallbackElement||null)));let G=s.concat(d.slice(0,z+1)),W=()=>{let K;return q?K=O:X?K=Y:T.route.Component?K=p.createElement(T.route.Component,null):T.route.element?K=T.route.element:K=A,p.createElement(H1,{match:T,routeContext:{outlet:A,matches:G,isDataRoute:c!=null},children:K})};return c&&(T.route.ErrorBoundary||T.route.errorElement||z===0)?p.createElement(Q0,{location:c.location,revalidation:c.revalidation,component:O,error:q,children:W(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):W()},null)}function No(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function B1(l){let s=p.useContext(Ql);return Ve(s,No(l)),s}function G1(l){let s=p.useContext(zu);return Ve(s,No(l)),s}function Y1(l){let s=p.useContext(na);return Ve(s,No(l)),s}function Co(l){let s=Y1(l),r=s.matches[s.matches.length-1];return Ve(r.route.id,`${l} can only be used on routes that contain a unique "id"`),r.route.id}function Q1(){return Co("useRouteId")}function V1(){var c;let l=p.useContext(Ao),s=G1("useRouteError"),r=Co("useRouteError");return l!==void 0?l:(c=s.errors)==null?void 0:c[r]}function X1(){let{router:l}=B1("useNavigate"),s=Co("useNavigate"),r=p.useRef(!1);return G0(()=>{r.current=!0}),p.useCallback(async(d,m={})=>{Jt(r.current,B0),r.current&&(typeof d=="number"?await l.navigate(d):await l.navigate(d,{fromRouteId:s,...m}))},[l,s])}var Fm={};function V0(l,s,r){!s&&!Fm[l]&&(Fm[l]=!0,Jt(!1,r))}p.memo(Z1);function Z1({routes:l,future:s,state:r,isStatic:c,onError:d}){return Y0(l,void 0,{state:r,isStatic:c,onError:d})}function _t({to:l,replace:s,state:r,relative:c}){Ve(Vl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=p.useContext(Lt);Jt(!d,"<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:m}=p.useContext(na),{pathname:y}=Nt(),g=_o(),b=Mu(l,jo(m),y,c==="path"),v=JSON.stringify(b);return p.useEffect(()=>{g(JSON.parse(v),{replace:s,state:r,relative:c})},[g,v,c,s,r]),null}function te(l){Ve(!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 $1({basename:l="/",children:s=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){Ve(!Vl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),b=p.useMemo(()=>({basename:g,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[g,d,m,y]);typeof r=="string"&&(r=Yl(r));let{pathname:v="/",search:A="",hash:T="",state:z=null,key:q="default",unstable_mask:X}=r,O=p.useMemo(()=>{let Y=La(v,g);return Y==null?null:{location:{pathname:Y,search:A,hash:T,state:z,key:q,unstable_mask:X},navigationType:c}},[g,v,A,T,z,q,c,X]);return Jt(O!=null,`<Router basename="${g}"> is not able to match the URL "${v}${A}${T}" because it does not start with the basename, so the <Router> won't render anything.`),O==null?null:p.createElement(Lt.Provider,{value:b},p.createElement(Fi.Provider,{children:s,value:O}))}function K1({children:l,location:s}){return D1(fo(l),s)}function fo(l,s=[]){let r=[];return p.Children.forEach(l,(c,d)=>{if(!p.isValidElement(c))return;let m=[...s,d];if(c.type===p.Fragment){r.push.apply(r,fo(c.props.children,m));return}Ve(c.type===te,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=fo(c.props.children,m)),r.push(y)}),r}var Au="get",_u="application/x-www-form-urlencoded";function Ru(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function J1(l){return Ru(l)&&l.tagName.toLowerCase()==="button"}function F1(l){return Ru(l)&&l.tagName.toLowerCase()==="form"}function P1(l){return Ru(l)&&l.tagName.toLowerCase()==="input"}function W1(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function I1(l,s){return l.button===0&&(!s||s==="_self")&&!W1(l)}function ho(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((s,r)=>{let c=l[r];return s.concat(Array.isArray(c)?c.map(d=>[r,d]):[[r,c]])},[]))}function ev(l,s){let r=ho(l);return s&&s.forEach((c,d)=>{r.has(d)||s.getAll(d).forEach(m=>{r.append(d,m)})}),r}var Su=null;function tv(){if(Su===null)try{new FormData(document.createElement("form"),0),Su=!1}catch{Su=!0}return Su}var av=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function io(l){return l!=null&&!av.has(l)?(Jt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_u}"`),null):l}function nv(l,s){let r,c,d,m,y;if(F1(l)){let g=l.getAttribute("action");c=g?La(g,s):null,r=l.getAttribute("method")||Au,d=io(l.getAttribute("enctype"))||_u,m=new FormData(l)}else if(J1(l)||P1(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=l.getAttribute("formaction")||g.getAttribute("action");if(c=b?La(b,s):null,r=l.getAttribute("formmethod")||g.getAttribute("method")||Au,d=io(l.getAttribute("formenctype"))||io(g.getAttribute("enctype"))||_u,m=new FormData(g,l),!tv()){let{name:v,type:A,value:T}=l;if(A==="image"){let z=v?`${v}.`:"";m.append(`${z}x`,"0"),m.append(`${z}y`,"0")}else v&&m.append(v,T)}}else{if(Ru(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Au,c=null,d=_u,y=l}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function wo(l,s){if(l===!1||l===null||typeof l>"u")throw new Error(s)}function lv(l,s,r,c){let d=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:s&&La(d.pathname,s)==="/"?d.pathname=`${s.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function iv(l,s){if(l.id in s)return s[l.id];try{let r=await import(l.module);return s[l.id]=r,r}catch(r){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sv(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function uv(l,s,r){let c=await Promise.all(l.map(async d=>{let m=s.routes[d.route.id];if(m){let y=await iv(m,r);return y.links?y.links():[]}return[]}));return fv(c.flat(1).filter(sv).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Pm(l,s,r,c,d,m){let y=(b,v)=>r[v]?b.route.id!==r[v].route.id:!0,g=(b,v)=>{var A;return r[v].pathname!==b.pathname||((A=r[v].route.path)==null?void 0:A.endsWith("*"))&&r[v].params["*"]!==b.params["*"]};return m==="assets"?s.filter((b,v)=>y(b,v)||g(b,v)):m==="data"?s.filter((b,v)=>{var T;let A=c.routes[b.route.id];if(!A||!A.hasLoader)return!1;if(y(b,v)||g(b,v))return!0;if(b.route.shouldRevalidate){let z=b.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((T=r[0])==null?void 0:T.params)||{},nextUrl:new URL(l,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function rv(l,s,{includeHydrateFallback:r}={}){return cv(l.map(c=>{let d=s.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function cv(l){return[...new Set(l)]}function ov(l){let s={},r=Object.keys(l).sort();for(let c of r)s[c]=l[c];return s}function fv(l,s){let r=new Set;return new Set(s),l.reduce((c,d)=>{let m=JSON.stringify(ov(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function X0(){let l=p.useContext(Ql);return wo(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function dv(){let l=p.useContext(zu);return wo(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var Oo=p.createContext(void 0);Oo.displayName="FrameworkContext";function Z0(){let l=p.useContext(Oo);return wo(l,"You must render this element inside a <HydratedRouter> element"),l}function hv(l,s){let r=p.useContext(Oo),[c,d]=p.useState(!1),[m,y]=p.useState(!1),{onFocus:g,onBlur:b,onMouseEnter:v,onMouseLeave:A,onTouchStart:T}=s,z=p.useRef(null);p.useEffect(()=>{if(l==="render"&&y(!0),l==="viewport"){let O=G=>{G.forEach(W=>{y(W.isIntersecting)})},Y=new IntersectionObserver(O,{threshold:.5});return z.current&&Y.observe(z.current),()=>{Y.disconnect()}}},[l]),p.useEffect(()=>{if(c){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[c]);let q=()=>{d(!0)},X=()=>{d(!1),y(!1)};return r?l!=="intent"?[m,z,{}]:[m,z,{onFocus:Gi(g,q),onBlur:Gi(b,X),onMouseEnter:Gi(v,q),onMouseLeave:Gi(A,X),onTouchStart:Gi(T,q)}]:[!1,z,{}]}function Gi(l,s){return r=>{l&&l(r),r.defaultPrevented||s(r)}}function mv({page:l,...s}){let{router:r}=X0(),c=p.useMemo(()=>z0(r.routes,l,r.basename),[r.routes,l,r.basename]);return c?p.createElement(yv,{page:l,matches:c,...s}):null}function pv(l){let{manifest:s,routeModules:r}=Z0(),[c,d]=p.useState([]);return p.useEffect(()=>{let m=!1;return uv(l,s,r).then(y=>{m||d(y)}),()=>{m=!0}},[l,s,r]),c}function yv({page:l,matches:s,...r}){let c=Nt(),{future:d,manifest:m,routeModules:y}=Z0(),{basename:g}=X0(),{loaderData:b,matches:v}=dv(),A=p.useMemo(()=>Pm(l,s,v,m,c,"data"),[l,s,v,m,c]),T=p.useMemo(()=>Pm(l,s,v,m,c,"assets"),[l,s,v,m,c]),z=p.useMemo(()=>{if(l===c.pathname+c.search+c.hash)return[];let O=new Set,Y=!1;if(s.forEach(W=>{var V;let K=m.routes[W.route.id];!K||!K.hasLoader||(!A.some(ne=>ne.route.id===W.route.id)&&W.route.id in b&&((V=y[W.route.id])!=null&&V.shouldRevalidate)||K.hasClientLoader?Y=!0:O.add(W.route.id))}),O.size===0)return[];let G=lv(l,g,d.unstable_trailingSlashAwareDataRequests,"data");return Y&&O.size>0&&G.searchParams.set("_routes",s.filter(W=>O.has(W.route.id)).map(W=>W.route.id).join(",")),[G.pathname+G.search]},[g,d.unstable_trailingSlashAwareDataRequests,b,c,m,A,s,l,y]),q=p.useMemo(()=>rv(T,m),[T,m]),X=pv(T);return p.createElement(p.Fragment,null,z.map(O=>p.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),q.map(O=>p.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),X.map(({key:O,link:Y})=>p.createElement("link",{key:O,nonce:r.nonce,...Y,crossOrigin:Y.crossOrigin??r.crossOrigin})))}function gv(...l){return s=>{l.forEach(r=>{typeof r=="function"?r(s):r!=null&&(r.current=s)})}}var vv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vv&&(window.__reactRouterVersion="7.13.1")}catch{}function bv({basename:l,children:s,unstable_useTransitions:r,window:c}){let d=p.useRef();d.current==null&&(d.current=Wg({window:c,v5Compat:!0}));let m=d.current,[y,g]=p.useState({action:m.action,location:m.location}),b=p.useCallback(v=>{r===!1?g(v):p.startTransition(()=>g(v))},[r]);return p.useLayoutEffect(()=>m.listen(b),[m,b]),p.createElement($1,{basename:l,children:s,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var $0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yn=p.forwardRef(function({onClick:s,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,unstable_mask:g,state:b,target:v,to:A,preventScrollReset:T,viewTransition:z,unstable_defaultShouldRevalidate:q,...X},O){let{basename:Y,navigator:G,unstable_useTransitions:W}=p.useContext(Lt),K=typeof A=="string"&&$0.test(A),V=U0(A,Y);A=V.to;let ne=z1(A,{relative:d}),Q=Nt(),F=null;if(g){let Ne=Mu(g,[],Q.unstable_mask?Q.unstable_mask.pathname:"/",!0);Y!=="/"&&(Ne.pathname=Ne.pathname==="/"?Y:ha([Y,Ne.pathname])),F=G.createHref(Ne)}let[he,le,Be]=hv(c,X),ke=Ev(A,{replace:y,unstable_mask:g,state:b,target:v,preventScrollReset:T,relative:d,viewTransition:z,unstable_defaultShouldRevalidate:q,unstable_useTransitions:W});function Ge(Ne){s&&s(Ne),Ne.defaultPrevented||ke(Ne)}let nt=!(V.isExternal||m),we=p.createElement("a",{...X,...Be,href:(nt?F:void 0)||V.absoluteURL||ne,onClick:nt?Ge:s,ref:gv(O,le),target:v,"data-discover":!K&&r==="render"?"true":void 0});return he&&!K?p.createElement(p.Fragment,null,we,p.createElement(mv,{page:ne})):we});Yn.displayName="Link";var zl=p.forwardRef(function({"aria-current":s="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:g,children:b,...v},A){let T=Pi(y,{relative:v.relative}),z=Nt(),q=p.useContext(zu),{navigator:X,basename:O}=p.useContext(Lt),Y=q!=null&&Nv(T)&&g===!0,G=X.encodeLocation?X.encodeLocation(T).pathname:T.pathname,W=z.pathname,K=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;r||(W=W.toLowerCase(),K=K?K.toLowerCase():null,G=G.toLowerCase()),K&&O&&(K=La(K,O)||K);const V=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ne=W===G||!d&&W.startsWith(G)&&W.charAt(V)==="/",Q=K!=null&&(K===G||!d&&K.startsWith(G)&&K.charAt(G.length)==="/"),F={isActive:ne,isPending:Q,isTransitioning:Y},he=ne?s:void 0,le;typeof c=="function"?le=c(F):le=[c,ne?"active":null,Q?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Be=typeof m=="function"?m(F):m;return p.createElement(Yn,{...v,"aria-current":he,className:le,ref:A,style:Be,to:y,viewTransition:g},typeof b=="function"?b(F):b)});zl.displayName="NavLink";var xv=p.forwardRef(({discover:l="render",fetcherKey:s,navigate:r,reloadDocument:c,replace:d,state:m,method:y=Au,action:g,onSubmit:b,relative:v,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z,...q},X)=>{let{unstable_useTransitions:O}=p.useContext(Lt),Y=Av(),G=_v(g,{relative:v}),W=y.toLowerCase()==="get"?"get":"post",K=typeof g=="string"&&$0.test(g),V=ne=>{if(b&&b(ne),ne.defaultPrevented)return;ne.preventDefault();let Q=ne.nativeEvent.submitter,F=(Q==null?void 0:Q.getAttribute("formmethod"))||y,he=()=>Y(Q||ne.currentTarget,{fetcherKey:s,method:F,navigate:r,replace:d,state:m,relative:v,preventScrollReset:A,viewTransition:T,unstable_defaultShouldRevalidate:z});O&&r!==!1?p.startTransition(()=>he()):he()};return p.createElement("form",{ref:X,method:W,action:G,onSubmit:c?b:V,...q,"data-discover":!K&&l==="render"?"true":void 0})});xv.displayName="Form";function Sv(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K0(l){let s=p.useContext(Ql);return Ve(s,Sv(l)),s}function Ev(l,{target:s,replace:r,unstable_mask:c,state:d,preventScrollReset:m,relative:y,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:v}={}){let A=_o(),T=Nt(),z=Pi(l,{relative:y});return p.useCallback(q=>{if(I1(q,s)){q.preventDefault();let X=r!==void 0?r:Vi(T)===Vi(z),O=()=>A(l,{replace:X,unstable_mask:c,state:d,preventScrollReset:m,relative:y,viewTransition:g,unstable_defaultShouldRevalidate:b});v?p.startTransition(()=>O()):O()}},[T,A,z,r,c,d,s,l,m,y,g,b,v])}function jS(l){Jt(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 s=p.useRef(ho(l)),r=p.useRef(!1),c=Nt(),d=p.useMemo(()=>ev(c.search,r.current?null:s.current),[c.search]),m=_o(),y=p.useCallback((g,b)=>{const v=ho(typeof g=="function"?g(new URLSearchParams(d)):g);r.current=!0,m("?"+v,b)},[m,d]);return[d,y]}var Tv=0,jv=()=>`__${String(++Tv)}__`;function Av(){let{router:l}=K0("useSubmit"),{basename:s}=p.useContext(Lt),r=Q1(),c=l.fetch,d=l.navigate;return p.useCallback(async(m,y={})=>{let{action:g,method:b,encType:v,formData:A,body:T}=nv(m,s);if(y.navigate===!1){let z=y.fetcherKey||jv();await c(z,r,y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:A,body:T,formMethod:y.method||b,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||g,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:A,body:T,formMethod:y.method||b,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,s,r])}function _v(l,{relative:s}={}){let{basename:r}=p.useContext(Lt),c=p.useContext(na);Ve(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...Pi(l||".",{relative:s})},y=Nt();if(l==null){m.search=y.search;let g=new URLSearchParams(m.search),b=g.getAll("index");if(b.some(A=>A==="")){g.delete("index"),b.filter(T=>T).forEach(T=>g.append("index",T));let A=g.toString();m.search=A?`?${A}`:""}}return(!l||l===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:ha([r,m.pathname])),Vi(m)}function Nv(l,{relative:s}={}){let r=p.useContext(H0);Ve(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=K0("useViewTransitionState"),d=Pi(l,{relative:s});if(!r.isTransitioning)return!1;let m=La(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=La(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Cu(d.pathname,y)!=null||Cu(d.pathname,m)!=null}var Du=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Un,on,Dl,T0,Cv=(T0=class extends Du{constructor(){super();je(this,Un);je(this,on);je(this,Dl);ce(this,Dl,s=>{if(typeof window<"u"&&window.addEventListener){const r=()=>s();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){U(this,on)||this.setEventListener(U(this,Dl))}onUnsubscribe(){var s;this.hasListeners()||((s=U(this,on))==null||s.call(this),ce(this,on,void 0))}setEventListener(s){var r;ce(this,Dl,s),(r=U(this,on))==null||r.call(this),ce(this,on,s(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(s){U(this,Un)!==s&&(ce(this,Un,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(r=>{r(s)})}isFocused(){var s;return typeof U(this,Un)=="boolean"?U(this,Un):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Un=new WeakMap,on=new WeakMap,Dl=new WeakMap,T0),J0=new Cv,wv={setTimeout:(l,s)=>setTimeout(l,s),clearTimeout:l=>clearTimeout(l),setInterval:(l,s)=>setInterval(l,s),clearInterval:l=>clearInterval(l)},fn,Eo,j0,Ov=(j0=class{constructor(){je(this,fn,wv);je(this,Eo,!1)}setTimeoutProvider(l){ce(this,fn,l)}setTimeout(l,s){return U(this,fn).setTimeout(l,s)}clearTimeout(l){U(this,fn).clearTimeout(l)}setInterval(l,s){return U(this,fn).setInterval(l,s)}clearInterval(l){U(this,fn).clearInterval(l)}},fn=new WeakMap,Eo=new WeakMap,j0),mo=new Ov;function Mv(l){setTimeout(l,0)}var zv=typeof window>"u"||"Deno"in globalThis;function ta(){}function Rv(l,s){return typeof l=="function"?l(s):l}function Dv(l){return typeof l=="number"&&l>=0&&l!==1/0}function kv(l,s){return Math.max(l+(s||0)-Date.now(),0)}function po(l,s){return typeof l=="function"?l(s):l}function Uv(l,s){return typeof l=="function"?l(s):l}function Wm(l,s){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:g}=l;if(y){if(c){if(s.queryHash!==Mo(y,s.options))return!1}else if(!Zi(s.queryKey,y))return!1}if(r!=="all"){const b=s.isActive();if(r==="active"&&!b||r==="inactive"&&b)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||d&&d!==s.state.fetchStatus||m&&!m(s))}function Im(l,s){const{exact:r,status:c,predicate:d,mutationKey:m}=l;if(m){if(!s.options.mutationKey)return!1;if(r){if(Xi(s.options.mutationKey)!==Xi(m))return!1}else if(!Zi(s.options.mutationKey,m))return!1}return!(c&&s.state.status!==c||d&&!d(s))}function Mo(l,s){return((s==null?void 0:s.queryKeyHashFn)||Xi)(l)}function Xi(l){return JSON.stringify(l,(s,r)=>yo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Zi(l,s){return l===s?!0:typeof l!=typeof s?!1:l&&s&&typeof l=="object"&&typeof s=="object"?Object.keys(s).every(r=>Zi(l[r],s[r])):!1}var Lv=Object.prototype.hasOwnProperty;function F0(l,s,r=0){if(l===s)return l;if(r>500)return s;const c=e0(l)&&e0(s);if(!c&&!(yo(l)&&yo(s)))return s;const m=(c?l:Object.keys(l)).length,y=c?s:Object.keys(s),g=y.length,b=c?new Array(g):{};let v=0;for(let A=0;A<g;A++){const T=c?A:y[A],z=l[T],q=s[T];if(z===q){b[T]=z,(c?A<m:Lv.call(l,T))&&v++;continue}if(z===null||q===null||typeof z!="object"||typeof q!="object"){b[T]=q;continue}const X=F0(z,q,r+1);b[T]=X,X===z&&v++}return m===g&&v===m?l:b}function e0(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function yo(l){if(!t0(l))return!1;const s=l.constructor;if(s===void 0)return!0;const r=s.prototype;return!(!t0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function t0(l){return Object.prototype.toString.call(l)==="[object Object]"}function Hv(l){return new Promise(s=>{mo.setTimeout(s,l)})}function qv(l,s,r){return typeof r.structuralSharing=="function"?r.structuralSharing(l,s):r.structuralSharing!==!1?F0(l,s):s}function Bv(l,s,r=0){const c=[...l,s];return r&&c.length>r?c.slice(1):c}function Gv(l,s,r=0){const c=[s,...l];return r&&c.length>r?c.slice(0,-1):c}var zo=Symbol();function P0(l,s){return!l.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!l.queryFn||l.queryFn===zo?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function Yv(l,s,r){let c=!1,d;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(d??(d=s()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),l}var W0=(()=>{let l=()=>zv;return{isServer(){return l()},setIsServer(s){l=s}}})();function Qv(){let l,s;const r=new Promise((d,m)=>{l=d,s=m});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),l(d)},r.reject=d=>{c({status:"rejected",reason:d}),s(d)},r}var Vv=Mv;function Xv(){let l=[],s=0,r=g=>{g()},c=g=>{g()},d=Vv;const m=g=>{s?l.push(g):d(()=>{r(g)})},y=()=>{const g=l;l=[],g.length&&d(()=>{c(()=>{g.forEach(b=>{r(b)})})})};return{batch:g=>{let b;s++;try{b=g()}finally{s--,s||y()}return b},batchCalls:g=>(...b)=>{m(()=>{g(...b)})},schedule:m,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{d=g}}}var vt=Xv(),kl,dn,Ul,A0,Zv=(A0=class extends Du{constructor(){super();je(this,kl,!0);je(this,dn);je(this,Ul);ce(this,Ul,s=>{if(typeof window<"u"&&window.addEventListener){const r=()=>s(!0),c=()=>s(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){U(this,dn)||this.setEventListener(U(this,Ul))}onUnsubscribe(){var s;this.hasListeners()||((s=U(this,dn))==null||s.call(this),ce(this,dn,void 0))}setEventListener(s){var r;ce(this,Ul,s),(r=U(this,dn))==null||r.call(this),ce(this,dn,s(this.setOnline.bind(this)))}setOnline(s){U(this,kl)!==s&&(ce(this,kl,s),this.listeners.forEach(c=>{c(s)}))}isOnline(){return U(this,kl)}},kl=new WeakMap,dn=new WeakMap,Ul=new WeakMap,A0),wu=new Zv;function $v(l){return Math.min(1e3*2**l,3e4)}function I0(l){return(l??"online")==="online"?wu.isOnline():!0}var go=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function ep(l){let s=!1,r=0,c;const d=Qv(),m=()=>d.status!=="pending",y=O=>{var Y;if(!m()){const G=new go(O);z(G),(Y=l.onCancel)==null||Y.call(l,G)}},g=()=>{s=!0},b=()=>{s=!1},v=()=>J0.isFocused()&&(l.networkMode==="always"||wu.isOnline())&&l.canRun(),A=()=>I0(l.networkMode)&&l.canRun(),T=O=>{m()||(c==null||c(),d.resolve(O))},z=O=>{m()||(c==null||c(),d.reject(O))},q=()=>new Promise(O=>{var Y;c=G=>{(m()||v())&&O(G)},(Y=l.onPause)==null||Y.call(l)}).then(()=>{var O;c=void 0,m()||(O=l.onContinue)==null||O.call(l)}),X=()=>{if(m())return;let O;const Y=r===0?l.initialPromise:void 0;try{O=Y??l.fn()}catch(G){O=Promise.reject(G)}Promise.resolve(O).then(T).catch(G=>{var Q;if(m())return;const W=l.retry??(W0.isServer()?0:3),K=l.retryDelay??$v,V=typeof K=="function"?K(r,G):K,ne=W===!0||typeof W=="number"&&r<W||typeof W=="function"&&W(r,G);if(s||!ne){z(G);return}r++,(Q=l.onFail)==null||Q.call(l,r,G),Hv(V).then(()=>v()?void 0:q()).then(()=>{s?z(G):X()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:b,canStart:A,start:()=>(A()?X():q().then(X),d)}}var Ln,_0,tp=(_0=class{constructor(){je(this,Ln)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dv(this.gcTime)&&ce(this,Ln,mo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(W0.isServer()?1/0:300*1e3))}clearGcTimeout(){U(this,Ln)!==void 0&&(mo.clearTimeout(U(this,Ln)),ce(this,Ln,void 0))}},Ln=new WeakMap,_0),Hn,Ll,Kt,qn,st,$i,Bn,Ut,ap,Da,N0,Kv=(N0=class extends tp{constructor(s){super();je(this,Ut);je(this,Hn);je(this,Ll);je(this,Kt);je(this,qn);je(this,st);je(this,$i);je(this,Bn);ce(this,Bn,!1),ce(this,$i,s.defaultOptions),this.setOptions(s.options),this.observers=[],ce(this,qn,s.client),ce(this,Kt,U(this,qn).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,ce(this,Hn,n0(this.options)),this.state=s.state??U(this,Hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=U(this,st))==null?void 0:s.promise}setOptions(s){if(this.options={...U(this,$i),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=n0(this.options);r.data!==void 0&&(this.setState(a0(r.data,r.dataUpdatedAt)),ce(this,Hn,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Kt).remove(this)}setData(s,r){const c=qv(this.state.data,s,this.options);return dt(this,Ut,Da).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(s,r){dt(this,Ut,Da).call(this,{type:"setState",state:s,setStateOptions:r})}cancel(s){var c,d;const r=(c=U(this,st))==null?void 0:c.promise;return(d=U(this,st))==null||d.cancel(s),r?r.then(ta).catch(ta):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,Hn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>Uv(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>po(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!kv(this.state.dataUpdatedAt,s)}onFocus(){var r;const s=this.observers.find(c=>c.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(r=U(this,st))==null||r.continue()}onOnline(){var r;const s=this.observers.find(c=>c.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(r=U(this,st))==null||r.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),U(this,Kt).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(r=>r!==s),this.observers.length||(U(this,st)&&(U(this,Bn)||dt(this,Ut,ap).call(this)?U(this,st).cancel({revert:!0}):U(this,st).cancelRetry()),this.scheduleGc()),U(this,Kt).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||dt(this,Ut,Da).call(this,{type:"invalidate"})}async fetch(s,r){var b,v,A,T,z,q,X,O,Y,G,W,K;if(this.state.fetchStatus!=="idle"&&((b=U(this,st))==null?void 0:b.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(U(this,st))return U(this,st).continueRetry(),U(this,st).promise}if(s&&this.setOptions(s),!this.options.queryFn){const V=this.observers.find(ne=>ne.options.queryFn);V&&this.setOptions(V.options)}const c=new AbortController,d=V=>{Object.defineProperty(V,"signal",{enumerable:!0,get:()=>(ce(this,Bn,!0),c.signal)})},m=()=>{const V=P0(this.options,r),Q=(()=>{const F={client:U(this,qn),queryKey:this.queryKey,meta:this.meta};return d(F),F})();return ce(this,Bn,!1),this.options.persister?this.options.persister(V,Q,this):V(Q)},g=(()=>{const V={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:U(this,qn),state:this.state,fetchFn:m};return d(V),V})();(v=this.options.behavior)==null||v.onFetch(g,this),ce(this,Ll,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((A=g.fetchOptions)==null?void 0:A.meta))&&dt(this,Ut,Da).call(this,{type:"fetch",meta:(T=g.fetchOptions)==null?void 0:T.meta}),ce(this,st,ep({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:V=>{V instanceof go&&V.revert&&this.setState({...U(this,Ll),fetchStatus:"idle"}),c.abort()},onFail:(V,ne)=>{dt(this,Ut,Da).call(this,{type:"failed",failureCount:V,error:ne})},onPause:()=>{dt(this,Ut,Da).call(this,{type:"pause"})},onContinue:()=>{dt(this,Ut,Da).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const V=await U(this,st).start();if(V===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(V),(q=(z=U(this,Kt).config).onSuccess)==null||q.call(z,V,this),(O=(X=U(this,Kt).config).onSettled)==null||O.call(X,V,this.state.error,this),V}catch(V){if(V instanceof go){if(V.silent)return U(this,st).promise;if(V.revert){if(this.state.data===void 0)throw V;return this.state.data}}throw dt(this,Ut,Da).call(this,{type:"error",error:V}),(G=(Y=U(this,Kt).config).onError)==null||G.call(Y,V,this),(K=(W=U(this,Kt).config).onSettled)==null||K.call(W,this.state.data,V,this),V}finally{this.scheduleGc()}}},Hn=new WeakMap,Ll=new WeakMap,Kt=new WeakMap,qn=new WeakMap,st=new WeakMap,$i=new WeakMap,Bn=new WeakMap,Ut=new WeakSet,ap=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Da=function(s){const r=c=>{switch(s.type){case"failed":return{...c,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Jv(c.data,this.options),fetchMeta:s.meta??null};case"success":const d={...c,...a0(s.data,s.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Ll,s.manual?d:void 0),d;case"error":const m=s.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...s.state}}};this.state=r(this.state),vt.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),U(this,Kt).notify({query:this,type:"updated",action:s})})},N0);function Jv(l,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:I0(s.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function a0(l,s){return{data:l,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function n0(l){const s=typeof l.initialData=="function"?l.initialData():l.initialData,r=s!==void 0,c=r?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function l0(l){return{onFetch:(s,r)=>{var A,T,z,q,X;const c=s.options,d=(z=(T=(A=s.fetchOptions)==null?void 0:A.meta)==null?void 0:T.fetchMore)==null?void 0:z.direction,m=((q=s.state.data)==null?void 0:q.pages)||[],y=((X=s.state.data)==null?void 0:X.pageParams)||[];let g={pages:[],pageParams:[]},b=0;const v=async()=>{let O=!1;const Y=K=>{Yv(K,()=>s.signal,()=>O=!0)},G=P0(s.options,s.fetchOptions),W=async(K,V,ne)=>{if(O)return Promise.reject();if(V==null&&K.pages.length)return Promise.resolve(K);const F=(()=>{const ke={client:s.client,queryKey:s.queryKey,pageParam:V,direction:ne?"backward":"forward",meta:s.options.meta};return Y(ke),ke})(),he=await G(F),{maxPages:le}=s.options,Be=ne?Gv:Bv;return{pages:Be(K.pages,he,le),pageParams:Be(K.pageParams,V,le)}};if(d&&m.length){const K=d==="backward",V=K?Fv:i0,ne={pages:m,pageParams:y},Q=V(c,ne);g=await W(ne,Q,K)}else{const K=l??m.length;do{const V=b===0?y[0]??c.initialPageParam:i0(c,g);if(b>0&&V==null)break;g=await W(g,V),b++}while(b<K)}return g};s.options.persister?s.fetchFn=()=>{var O,Y;return(Y=(O=s.options).persister)==null?void 0:Y.call(O,v,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},r)}:s.fetchFn=v}}}function i0(l,{pages:s,pageParams:r}){const c=s.length-1;return s.length>0?l.getNextPageParam(s[c],s,r[c],r):void 0}function Fv(l,{pages:s,pageParams:r}){var c;return s.length>0?(c=l.getPreviousPageParam)==null?void 0:c.call(l,s[0],s,r[0],r):void 0}var Ki,oa,pt,Gn,fa,cn,C0,Pv=(C0=class extends tp{constructor(s){super();je(this,fa);je(this,Ki);je(this,oa);je(this,pt);je(this,Gn);ce(this,Ki,s.client),this.mutationId=s.mutationId,ce(this,pt,s.mutationCache),ce(this,oa,[]),this.state=s.state||Wv(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){U(this,oa).includes(s)||(U(this,oa).push(s),this.clearGcTimeout(),U(this,pt).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){ce(this,oa,U(this,oa).filter(r=>r!==s)),this.scheduleGc(),U(this,pt).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){U(this,oa).length||(this.state.status==="pending"?this.scheduleGc():U(this,pt).remove(this))}continue(){var s;return((s=U(this,Gn))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var y,g,b,v,A,T,z,q,X,O,Y,G,W,K,V,ne,Q,F;const r=()=>{dt(this,fa,cn).call(this,{type:"continue"})},c={client:U(this,Ki),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,Gn,ep({fn:()=>this.options.mutationFn?this.options.mutationFn(s,c):Promise.reject(new Error("No mutationFn found")),onFail:(he,le)=>{dt(this,fa,cn).call(this,{type:"failed",failureCount:he,error:le})},onPause:()=>{dt(this,fa,cn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,pt).canRun(this)}));const d=this.state.status==="pending",m=!U(this,Gn).canStart();try{if(d)r();else{dt(this,fa,cn).call(this,{type:"pending",variables:s,isPaused:m}),U(this,pt).config.onMutate&&await U(this,pt).config.onMutate(s,this,c);const le=await((g=(y=this.options).onMutate)==null?void 0:g.call(y,s,c));le!==this.state.context&&dt(this,fa,cn).call(this,{type:"pending",context:le,variables:s,isPaused:m})}const he=await U(this,Gn).start();return await((v=(b=U(this,pt).config).onSuccess)==null?void 0:v.call(b,he,s,this.state.context,this,c)),await((T=(A=this.options).onSuccess)==null?void 0:T.call(A,he,s,this.state.context,c)),await((q=(z=U(this,pt).config).onSettled)==null?void 0:q.call(z,he,null,this.state.variables,this.state.context,this,c)),await((O=(X=this.options).onSettled)==null?void 0:O.call(X,he,null,s,this.state.context,c)),dt(this,fa,cn).call(this,{type:"success",data:he}),he}catch(he){try{await((G=(Y=U(this,pt).config).onError)==null?void 0:G.call(Y,he,s,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((K=(W=this.options).onError)==null?void 0:K.call(W,he,s,this.state.context,c))}catch(le){Promise.reject(le)}try{await((ne=(V=U(this,pt).config).onSettled)==null?void 0:ne.call(V,void 0,he,this.state.variables,this.state.context,this,c))}catch(le){Promise.reject(le)}try{await((F=(Q=this.options).onSettled)==null?void 0:F.call(Q,void 0,he,s,this.state.context,c))}catch(le){Promise.reject(le)}throw dt(this,fa,cn).call(this,{type:"error",error:he}),he}finally{U(this,pt).runNext(this)}}},Ki=new WeakMap,oa=new WeakMap,pt=new WeakMap,Gn=new WeakMap,fa=new WeakSet,cn=function(s){const r=c=>{switch(s.type){case"failed":return{...c,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...c,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:s.error,failureCount:c.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=r(this.state),vt.batch(()=>{U(this,oa).forEach(c=>{c.onMutationUpdate(s)}),U(this,pt).notify({mutation:this,type:"updated",action:s})})},C0);function Wv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ua,aa,Ji,w0,Iv=(w0=class extends Du{constructor(s={}){super();je(this,Ua);je(this,aa);je(this,Ji);this.config=s,ce(this,Ua,new Set),ce(this,aa,new Map),ce(this,Ji,0)}build(s,r,c){const d=new Pv({client:s,mutationCache:this,mutationId:++xu(this,Ji)._,options:s.defaultMutationOptions(r),state:c});return this.add(d),d}add(s){U(this,Ua).add(s);const r=Eu(s);if(typeof r=="string"){const c=U(this,aa).get(r);c?c.push(s):U(this,aa).set(r,[s])}this.notify({type:"added",mutation:s})}remove(s){if(U(this,Ua).delete(s)){const r=Eu(s);if(typeof r=="string"){const c=U(this,aa).get(r);if(c)if(c.length>1){const d=c.indexOf(s);d!==-1&&c.splice(d,1)}else c[0]===s&&U(this,aa).delete(r)}}this.notify({type:"removed",mutation:s})}canRun(s){const r=Eu(s);if(typeof r=="string"){const c=U(this,aa).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===s}else return!0}runNext(s){var c;const r=Eu(s);if(typeof r=="string"){const d=(c=U(this,aa).get(r))==null?void 0:c.find(m=>m!==s&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{U(this,Ua).forEach(s=>{this.notify({type:"removed",mutation:s})}),U(this,Ua).clear(),U(this,aa).clear()})}getAll(){return Array.from(U(this,Ua))}find(s){const r={exact:!0,...s};return this.getAll().find(c=>Im(r,c))}findAll(s={}){return this.getAll().filter(r=>Im(s,r))}notify(s){vt.batch(()=>{this.listeners.forEach(r=>{r(s)})})}resumePausedMutations(){const s=this.getAll().filter(r=>r.state.isPaused);return vt.batch(()=>Promise.all(s.map(r=>r.continue().catch(ta))))}},Ua=new WeakMap,aa=new WeakMap,Ji=new WeakMap,w0);function Eu(l){var s;return(s=l.options.scope)==null?void 0:s.id}var da,O0,eb=(O0=class extends Du{constructor(s={}){super();je(this,da);this.config=s,ce(this,da,new Map)}build(s,r,c){const d=r.queryKey,m=r.queryHash??Mo(d,r);let y=this.get(m);return y||(y=new Kv({client:s,queryKey:d,queryHash:m,options:s.defaultQueryOptions(r),state:c,defaultOptions:s.getQueryDefaults(d)}),this.add(y)),y}add(s){U(this,da).has(s.queryHash)||(U(this,da).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const r=U(this,da).get(s.queryHash);r&&(s.destroy(),r===s&&U(this,da).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){vt.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return U(this,da).get(s)}getAll(){return[...U(this,da).values()]}find(s){const r={exact:!0,...s};return this.getAll().find(c=>Wm(r,c))}findAll(s={}){const r=this.getAll();return Object.keys(s).length>0?r.filter(c=>Wm(s,c)):r}notify(s){vt.batch(()=>{this.listeners.forEach(r=>{r(s)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},da=new WeakMap,O0),$e,hn,mn,Hl,ql,pn,Bl,Gl,M0,tb=(M0=class{constructor(l={}){je(this,$e);je(this,hn);je(this,mn);je(this,Hl);je(this,ql);je(this,pn);je(this,Bl);je(this,Gl);ce(this,$e,l.queryCache||new eb),ce(this,hn,l.mutationCache||new Iv),ce(this,mn,l.defaultOptions||{}),ce(this,Hl,new Map),ce(this,ql,new Map),ce(this,pn,0)}mount(){xu(this,pn)._++,U(this,pn)===1&&(ce(this,Bl,J0.subscribe(async l=>{l&&(await this.resumePausedMutations(),U(this,$e).onFocus())})),ce(this,Gl,wu.subscribe(async l=>{l&&(await this.resumePausedMutations(),U(this,$e).onOnline())})))}unmount(){var l,s;xu(this,pn)._--,U(this,pn)===0&&((l=U(this,Bl))==null||l.call(this),ce(this,Bl,void 0),(s=U(this,Gl))==null||s.call(this),ce(this,Gl,void 0))}isFetching(l){return U(this,$e).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return U(this,hn).findAll({...l,status:"pending"}).length}getQueryData(l){var r;const s=this.defaultQueryOptions({queryKey:l});return(r=U(this,$e).get(s.queryHash))==null?void 0:r.state.data}ensureQueryData(l){const s=this.defaultQueryOptions(l),r=U(this,$e).build(this,s),c=r.state.data;return c===void 0?this.fetchQuery(l):(l.revalidateIfStale&&r.isStaleByTime(po(s.staleTime,r))&&this.prefetchQuery(s),Promise.resolve(c))}getQueriesData(l){return U(this,$e).findAll(l).map(({queryKey:s,state:r})=>{const c=r.data;return[s,c]})}setQueryData(l,s,r){const c=this.defaultQueryOptions({queryKey:l}),d=U(this,$e).get(c.queryHash),m=d==null?void 0:d.state.data,y=Rv(s,m);if(y!==void 0)return U(this,$e).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(l,s,r){return vt.batch(()=>U(this,$e).findAll(l).map(({queryKey:c})=>[c,this.setQueryData(c,s,r)]))}getQueryState(l){var r;const s=this.defaultQueryOptions({queryKey:l});return(r=U(this,$e).get(s.queryHash))==null?void 0:r.state}removeQueries(l){const s=U(this,$e);vt.batch(()=>{s.findAll(l).forEach(r=>{s.remove(r)})})}resetQueries(l,s){const r=U(this,$e);return vt.batch(()=>(r.findAll(l).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...l},s)))}cancelQueries(l,s={}){const r={revert:!0,...s},c=vt.batch(()=>U(this,$e).findAll(l).map(d=>d.cancel(r)));return Promise.all(c).then(ta).catch(ta)}invalidateQueries(l,s={}){return vt.batch(()=>(U(this,$e).findAll(l).forEach(r=>{r.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},s)))}refetchQueries(l,s={}){const r={...s,cancelRefetch:s.cancelRefetch??!0},c=vt.batch(()=>U(this,$e).findAll(l).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ta)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ta)}fetchQuery(l){const s=this.defaultQueryOptions(l);s.retry===void 0&&(s.retry=!1);const r=U(this,$e).build(this,s);return r.isStaleByTime(po(s.staleTime,r))?r.fetch(s):Promise.resolve(r.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ta).catch(ta)}fetchInfiniteQuery(l){return l.behavior=l0(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ta).catch(ta)}ensureInfiniteQueryData(l){return l.behavior=l0(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return wu.isOnline()?U(this,hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,$e)}getMutationCache(){return U(this,hn)}getDefaultOptions(){return U(this,mn)}setDefaultOptions(l){ce(this,mn,l)}setQueryDefaults(l,s){U(this,Hl).set(Xi(l),{queryKey:l,defaultOptions:s})}getQueryDefaults(l){const s=[...U(this,Hl).values()],r={};return s.forEach(c=>{Zi(l,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(l,s){U(this,ql).set(Xi(l),{mutationKey:l,defaultOptions:s})}getMutationDefaults(l){const s=[...U(this,ql).values()],r={};return s.forEach(c=>{Zi(l,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(l){if(l._defaulted)return l;const s={...U(this,mn).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return s.queryHash||(s.queryHash=Mo(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===zo&&(s.enabled=!1),s}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...U(this,mn).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){U(this,$e).clear(),U(this,hn).clear()}},$e=new WeakMap,hn=new WeakMap,mn=new WeakMap,Hl=new WeakMap,ql=new WeakMap,pn=new WeakMap,Bl=new WeakMap,Gl=new WeakMap,M0),ab=p.createContext(void 0),nb=({client:l,children:s})=>(p.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),o.jsx(ab.Provider,{value:l,children:s}));const lb="modulepreload",ib=function(l){return"/"+l},s0={},fe=function(s,r,c){let d=Promise.resolve();if(r&&r.length>0){let y=function(v){return Promise.all(v.map(A=>Promise.resolve(A).then(T=>({status:"fulfilled",value:T}),T=>({status:"rejected",reason:T}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),b=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));d=y(r.map(v=>{if(v=ib(v),v in s0)return;s0[v]=!0;const A=v.endsWith(".css"),T=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${T}`))return;const z=document.createElement("link");if(z.rel=A?"stylesheet":lb,A||(z.as="script"),z.crossOrigin="",z.href=v,b&&z.setAttribute("nonce",b),document.head.appendChild(z),A)return new Promise((q,X)=>{z.addEventListener("load",q),z.addEventListener("error",()=>X(new Error(`Unable to preload CSS for ${v}`)))})}))}function m(y){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=y,window.dispatchEvent(g),!g.defaultPrevented)throw y}return d.then(y=>{for(const g of y||[])g.status==="rejected"&&m(g.reason);return s().catch(m)})};var sb=function(){return null};const Ro="";function ku(){const l=localStorage.getItem("titan-token");return l?{Authorization:`Bearer ${l}`}:{}}function yt(l,s){const r={...ku(),...s==null?void 0:s.headers};return fetch(l,{...s,headers:r})}async function H(l,s){const r=await fetch(`${Ro}${l}`,{...s,headers:{"Content-Type":"application/json",...ku(),...s==null?void 0:s.headers}});if(!r.ok){const c=await r.text().catch(()=>"");throw new Error(`${r.status}: ${c||r.statusText}`)}return r.json()}function AS(l,s,r,c,d){return Do("chat_message_sent",{streaming:!0,hasSession:!!s}),new Promise((m,y)=>{fetch(`${Ro}/api/message`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...ku()},body:JSON.stringify({content:l,sessionId:s,...(d==null?void 0:d.agentId)&&{agentId:d.agentId},...(d==null?void 0:d.systemPromptAppendix)&&{systemPromptAppendix:d.systemPromptAppendix}}),signal:c}).then(g=>{var Y;if(!g.ok){y(new Error(`${g.status}: ${g.statusText}`));return}const b=(Y=g.body)==null?void 0:Y.getReader();if(!b){y(new Error("No response body"));return}const v=new TextDecoder;let A="",T="";const z=6e4;let q=null;const X=()=>{q&&clearTimeout(q),q=setTimeout(()=>{try{b==null||b.cancel("stream-quiet-timeout")}catch{}y(new Error("SSE stream went silent for over 60s — connection appears dead."))},z)};X();function O(){b.read().then(({done:G,value:W})=>{if(G){q&&clearTimeout(q),m();return}X(),A+=v.decode(W,{stream:!0});const K=A.split(`
|
|
62
|
+
`);A=K.pop()||"";for(const V of K)if(V.startsWith("event: "))T=V.slice(7).trim();else if(V.startsWith("data: ")){const ne=V.slice(6);if(ne==="[DONE]"){m();return}try{const Q=JSON.parse(ne),F=T||Q.type||"token";F==="token"?r==null||r({type:"token",data:Q.text??Q.data??""}):F==="tool_call"?r==null||r({type:"tool_start",data:"",toolName:Q.name,toolArgs:Q.args}):F==="tool_end"?r==null||r({type:"tool_end",data:"",toolName:Q.name,toolResult:Q.result,toolDurationMs:Q.durationMs,toolSuccess:Q.success,toolDiff:Q.diff}):F==="thinking"?r==null||r({type:"thinking",data:""}):F==="round"?r==null||r({type:"round",data:"",round:Q.round,maxRounds:Q.maxRounds}):F==="done"?Q.error&&!Q.content?r==null||r({type:"error",data:Q.message??Q.error??"Unknown error",errorCode:Q.error,errorMessage:Q.message,errorAction:Q.action}):r==null||r({type:"done",data:Q.content??"",sessionId:Q.sessionId,model:Q.model,durationMs:Q.durationMs,toolsUsed:Q.toolsUsed,pendingApproval:Q.pendingApproval}):F==="error"?r==null||r({type:"error",data:Q.error??Q.message??""}):F==="widget"?r==null||r({type:"widget",data:"",widgetMode:Q.mode,widget:Q.widget,timestamp:Q.timestamp}):r==null||r({type:Q.type??"token",data:Q.text??Q.data??"",...Q})}catch{r==null||r({type:"token",data:ne})}T=""}else V===""&&(T="");O()}).catch(G=>{q&&clearTimeout(q),y(G)})}O()}).catch(y)})}async function _S(){return H("/api/sessions")}async function NS(l){return(await H(`/api/sessions/${l}/messages`)).map(r=>({role:r.role??"assistant",content:r.content??"",timestamp:r.createdAt??r.timestamp??void 0,model:r.model??void 0}))}async function CS(l){await H(`/api/sessions/${l}`,{method:"DELETE"})}async function wS(l,s){await H(`/api/sessions/${l}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s})})}async function np(){return H("/api/config")}async function ub(l){return H("/api/config",{method:"POST",body:JSON.stringify(l)})}async function rb(){return H("/api/voice/health")}async function OS(){const l=await H("/api/stats");return{uptime:l.uptime??0,totalRequests:l.totalRequests??0,activeAgents:l.activeAgents??0,activeSessions:l.activeSessions??0,memoryUsage:l.memoryUsage??{heapUsed:(l.memoryMB??0)*1024*1024,heapTotal:(l.memoryMB??0)*1024*1024*1.5,rss:0,external:0,arrayBuffers:0},version:l.version??"",model:l.model??l.activeModel??"",provider:l.provider??""}}async function MS(){return H("/api/skills")}async function zS(){const l=await H("/api/channels");return(Array.isArray(l)?l:[]).map(s=>{var r;return{name:s.name??"Unknown",type:s.type??((r=s.name)==null?void 0:r.toLowerCase())??"unknown",enabled:s.enabled??s.connected??!1,status:s.connected?"connected":"disconnected"}})}async function RS(){return(await np()).channels??{}}async function DS(l,s){return ub({channels:{[l]:s}})}async function kS(){const l=await H("/api/mesh/peers");return Array.isArray(l)?l:l.peers??[]}async function US(){const l=await H("/api/mesh/pending");return Array.isArray(l)?l:l.pending??[]}async function LS(l){await H(`/api/mesh/approve/${l}`,{method:"POST"})}async function HS(l){await H(`/api/mesh/reject/${l}`,{method:"POST"})}async function qS(l){await H(`/api/mesh/revoke/${l}`,{method:"POST"})}async function BS(l,s){const r=new URLSearchParams;l&&r.set("level",l),s&&r.set("limit",String(s));const c=r.toString(),d=await H(`/api/logs${c?`?${c}`:""}`);return Array.isArray(d)?d:(d.lines??[]).map(y=>{const g=y.match(/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(DEBUG|INFO|WARN|ERROR)\s+(.*)$/);return g?{timestamp:g[1],level:g[2].toLowerCase(),message:g[3]}:{timestamp:"",level:"info",message:y}})}async function GS(){const l=await H("/api/models"),s=[];for(const[r,c]of Object.entries(l))if(Array.isArray(c))for(const d of c){const m=d.includes("/")?d.split("/").slice(1).join("/"):d;s.push({id:d,name:m,provider:r,available:!0})}return s}async function YS(l,s){await H("/api/model/switch",{method:"POST",body:JSON.stringify({model:l,provider:s})})}async function QS(){return H("/api/personas")}async function VS(l){return H("/api/persona/switch",{method:"POST",body:JSON.stringify({persona:l})})}async function XS(){return H("/api/metrics/summary")}async function ZS(){return(await H("/api/mcp/clients")).servers??[]}async function $S(l){return H("/api/mcp/clients",{method:"POST",body:JSON.stringify(l)})}async function KS(l){await H(`/api/mcp/clients/${l}`,{method:"DELETE"})}async function JS(l,s){await H(`/api/mcp/clients/${l}/toggle`,{method:"POST",body:JSON.stringify({enabled:s})})}async function FS(l){return H(`/api/mcp/clients/${l}/test`,{method:"POST"})}async function PS(){return(await H("/api/mcp/presets")).presets??[]}async function WS(l){const s=new URLSearchParams;l!=null&&l.since&&s.set("since",l.since),l!=null&&l.action&&s.set("action",l.action),l!=null&&l.source&&s.set("source",l.source),s.set("limit",String(l.limit));const r=s.toString();return(await H(`/api/audit${r?`?${r}`:""}`)).entries??[]}async function IS(l){const s=`?hours=${l}`;return H(`/api/audit/stats${s}`)}async function e5(){return H("/api/files/roots")}async function t5(l,s){const r=new URLSearchParams;l&&r.set("path",l),s&&r.set("root",s);const c=r.toString();return H(`/api/files${c?`?${c}`:""}`)}async function a5(l,s){const r=new URLSearchParams({path:l});return s&&r.set("root",s),H(`/api/files/read?${r}`)}async function n5(l,s,r){return H("/api/files/write",{method:"POST",body:JSON.stringify({path:l,content:s,root:r})})}async function l5(l,s){return H("/api/files/mkdir",{method:"POST",body:JSON.stringify({path:l,root:s})})}async function i5(l,s,r){return H("/api/files/rename",{method:"POST",body:JSON.stringify({oldPath:l,newPath:s,root:r})})}async function s5(l,s){const r=new URLSearchParams({path:l});return s&&r.set("root",s),H(`/api/files/delete?${r}`,{method:"DELETE"})}async function u5(){return H("/api/voice/f5tts/status")}async function r5(){return H("/api/analytics/profile")}async function c5(){return H("/api/voice/clone/voices")}async function o5(l,s,r){return H("/api/voice/clone/upload",{method:"POST",body:JSON.stringify({name:l,audio:s,transcript:r})})}async function f5(l){return H(`/api/voice/clone/${encodeURIComponent(l)}`,{method:"DELETE"})}async function d5(l,s){const r=JSON.stringify({text:s||"Hello, how can I help you today?",voice:l}),c=await fetch(`${Ro}/api/voice/preview`,{method:"POST",headers:{"Content-Type":"application/json",...ku()},body:r});if(!c.ok)throw new Error(`Preview failed: ${c.statusText}`);return c.arrayBuffer()}async function h5(){return H("/api/command-post/dashboard")}async function m5(){return H("/api/command-post/agents")}async function p5(){return H("/api/command-post/budgets")}async function y5(l){return H("/api/command-post/budgets",{method:"POST",body:JSON.stringify(l)})}async function g5(l,s){return H(`/api/command-post/budgets/${l}`,{method:"PUT",body:JSON.stringify(s)})}async function v5(l){return H(`/api/command-post/budgets/${l}`,{method:"DELETE"})}async function b5(l){return H(`/api/command-post/issues/${l}/context`)}async function x5(l=50,s){const r=new URLSearchParams({limit:String(l)});return H(`/api/command-post/activity?${r}`)}async function S5(){return H("/api/command-post/goals/tree")}async function E5(){return H("/api/command-post/org")}async function T5(l){const s=new URLSearchParams;l!=null&&l.status&&s.set("status",l.status),l!=null&&l.assignee&&s.set("assignee",l.assignee),l!=null&&l.goalId&&s.set("goalId",l.goalId);const r=s.toString();return H(`/api/command-post/issues${r?`?${r}`:""}`)}async function j5(l){return H("/api/command-post/issues",{method:"POST",body:JSON.stringify(l)})}async function A5(l){return H(`/api/command-post/issues/${l}`)}async function _5(l,s){return H(`/api/command-post/issues/${l}`,{method:"PATCH",body:JSON.stringify(s)})}async function N5(l){return H(`/api/command-post/issues/${l}`,{method:"DELETE"})}async function C5(l){return H(`/api/command-post/issues/${l}`)}async function w5(l,s,r={}){return H(`/api/command-post/issues/${l}/comments`,{method:"POST",body:JSON.stringify({body:s,...r})})}async function O5(l){const s=l?`?status=${l}`:"";return H(`/api/command-post/approvals${s}`)}async function M5(l,s,r){return H(`/api/command-post/approvals/${l}/approve`,{method:"POST",body:JSON.stringify({decidedBy:s,note:r})})}async function z5(l,s,r){return H(`/api/command-post/approvals/${l}/reject`,{method:"POST",body:JSON.stringify({decidedBy:s,note:r})})}async function R5(l,s=50){const r=new URLSearchParams({limit:String(s)});return l&&r.set("agentId",l),H(`/api/command-post/runs?${r}`)}async function D5(l,s){return H(`/api/command-post/agents/${l}`,{method:"PATCH",body:JSON.stringify(s)})}async function k5(l=50,s){const r=new URLSearchParams({limit:String(l)});return H(`/api/traces?${r}`)}async function U5(l){return H(`/api/traces/${l}`)}async function L5(l=50){return H(`/api/alerts?limit=${l}`)}async function H5(){return H("/api/soul/wisdom")}async function q5(l=50){return H(`/api/guardrails/violations?limit=${l}`)}async function B5(){return H("/api/checkpoints")}async function G5(){const l=await H("/api/companies");return Array.isArray(l)?l:l&&typeof l=="object"&&"companies"in l?l.companies:[]}async function Y5(l){return H("/api/companies",{method:"POST",body:JSON.stringify(l)})}async function Q5(l,s){return H(`/api/companies/${l}`,{method:"PATCH",body:JSON.stringify(s)})}async function V5(l){return H(`/api/companies/${l}`,{method:"DELETE"})}async function X5(l,s,r){return H(`/api/command-post/approvals/${l}/reply`,{method:"POST",body:JSON.stringify({author:s,body:r})})}async function Z5(l,s){return H(`/api/command-post/approvals/${l}/snooze`,{method:"POST",body:JSON.stringify({until:s})})}async function $5(l,s,r,c){return H("/api/command-post/approvals/batch",{method:"POST",body:JSON.stringify({ids:l,action:s,decidedBy:r,note:c})})}async function K5(){return H("/api/social/state")}async function J5(l){return H("/api/social/autopilot/toggle",{method:"POST",body:JSON.stringify({enabled:l})})}async function F5(l){return H("/api/social/post",{method:"POST",body:JSON.stringify({content:l})})}async function P5(l){return H(`/api/social/drafts/${l}/approve`,{method:"POST"})}async function W5(l){return H(`/api/social/drafts/${l}/reject`,{method:"POST"})}async function I5(){return H("/api/social/graph-context")}async function cb(l){return H("/api/login",{method:"POST",body:JSON.stringify({password:l})})}async function e4(){return H("/api/backup/create",{method:"POST"})}async function t4(){return H("/api/backup/list")}async function a4(l){return H("/api/backup/verify",{method:"POST",body:JSON.stringify(l?{path:l}:{})})}async function n4(){return H("/api/training/stats")}async function l4(){return H("/api/training/runs")}async function i4(){return H("/api/recipes")}async function s4(l){return H(`/api/recipes/${l}`,{method:"DELETE"})}async function u4(l,s){return H(`/api/recipes/${l}/run`,{method:"POST",body:JSON.stringify({})})}async function r4(){return H("/api/vram")}async function c4(){return H("/api/teams")}async function o4(l){return H(`/api/teams/${l}`,{method:"DELETE"})}async function f4(){return H("/api/cron")}async function d4(l){return H(`/api/cron/${l}/toggle`,{method:"POST"})}async function h4(l){return H(`/api/cron/${l}`,{method:"DELETE"})}async function m4(l){return H(`/api/checkpoints/${l}`,{method:"DELETE"})}async function p4(){return H("/api/organism/alerts")}async function y4(){return H("/api/organism/safety-metrics")}async function g4(l){return H(`/api/organism/alerts/${l}/acknowledge`,{method:"POST"})}async function v4(){try{return await H("/api/dreams/latest")}catch{return null}}async function b4(l=30){return H(`/api/dreams?limit=${l}`)}async function x4(l){try{return await H(`/api/dreams/${encodeURIComponent(l)}`)}catch{return null}}async function S4(){return H("/api/dreams/generate",{method:"POST"})}async function E4(){return H("/api/persona-profiles")}async function T4(l){return H("/api/persona-profiles/active")}async function j4(){return H("/api/fleet")}async function A4(l,s){return H("/api/browser/solve-captcha",{method:"POST",body:JSON.stringify({imageBase64:l,provider:s})})}async function _4(){return H("/api/telephony/dograh/status")}async function N4(l="active"){return H(`/api/telephony/dograh/workflows?status=${encodeURIComponent(l)}`)}async function C4(l=50){return H(`/api/telephony/dograh/calls?limit=${l}`)}async function w4(){return H("/api/telephony/dograh/opt-outs")}async function O4(l){return H("/api/telephony/dograh/call",{method:"POST",body:JSON.stringify(l)})}async function M4(){return H("/api/test-health/summary")}async function z4(){return H("/api/test-health/failing")}async function R4(){return H("/api/test-health/flaky")}async function D4(l){return H("/api/test-health/run",{method:"POST",body:JSON.stringify({})})}function Do(l,s){yt("/api/telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:l,properties:s,timestamp:new Date().toISOString()})}).catch(()=>{})}const lp=p.createContext({config:null,voiceHealth:null,voiceAvailable:!1,loading:!0,refresh:async()=>{}});function ob({children:l}){var A;const[s,r]=p.useState(null),[c,d]=p.useState(null),[m,y]=p.useState(!0),g=async()=>{var T;try{const z=await np();if(r(z),(T=z.voice)!=null&&T.enabled)try{const q=await rb();d(q)}catch{d(null)}}catch(z){console.error("Failed to load config:",z)}finally{y(!1)}};p.useEffect(()=>{g();let T=setInterval(g,3e4);const z=()=>{document.hidden?clearInterval(T):(g(),T=setInterval(g,3e4))};return document.addEventListener("visibilitychange",z),()=>{clearInterval(T),document.removeEventListener("visibilitychange",z)}},[]);const b=!!((A=s==null?void 0:s.voice)!=null&&A.enabled),v=p.useMemo(()=>({config:s,voiceHealth:c,voiceAvailable:b,loading:m,refresh:g}),[s,c,b,m,g]);return o.jsx(lp.Provider,{value:v,children:l})}function fb(){return p.useContext(lp)}const ip=p.createContext({isAuthenticated:!1,isLoading:!0,login:async()=>{},logout:()=>{}});function db({children:l}){const[s,r]=p.useState(!1),[c,d]=p.useState(!0);p.useEffect(()=>{const b=localStorage.getItem("titan-token"),v={};b&&(v.Authorization=`Bearer ${b}`),fetch("/api/health",{headers:v}).then(A=>{A.ok?r(!0):A.status===401?(localStorage.removeItem("titan-token"),r(!1)):r(!0)}).catch(()=>{r(!0)}).finally(()=>d(!1))},[]);const m=p.useCallback(async b=>{const{token:v}=await cb(b);localStorage.setItem("titan-token",v),r(!0)},[]),y=p.useCallback(()=>{localStorage.removeItem("titan-token"),r(!1)},[]),g=p.useMemo(()=>({isAuthenticated:s,isLoading:c,login:m,logout:y}),[s,c,m,y]);return o.jsx(ip.Provider,{value:g,children:l})}function sp(){return p.useContext(ip)}/**
|
|
63
63
|
* @license lucide-react v0.513.0 - ISC
|
|
64
64
|
*
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const
|
|
67
|
+
*/const hb=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mb=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,r,c)=>c?c.toUpperCase():r.toLowerCase()),u0=l=>{const s=mb(l);return s.charAt(0).toUpperCase()+s.slice(1)},up=(...l)=>l.filter((s,r,c)=>!!s&&s.trim()!==""&&c.indexOf(s)===r).join(" ").trim(),pb=l=>{for(const s in l)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/**
|
|
68
68
|
* @license lucide-react v0.513.0 - ISC
|
|
69
69
|
*
|
|
70
70
|
* This source code is licensed under the ISC license.
|
|
71
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var
|
|
72
|
+
*/var yb={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"};/**
|
|
73
73
|
* @license lucide-react v0.513.0 - ISC
|
|
74
74
|
*
|
|
75
75
|
* This source code is licensed under the ISC license.
|
|
76
76
|
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const
|
|
77
|
+
*/const gb=p.forwardRef(({color:l="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:y,...g},b)=>p.createElement("svg",{ref:b,...yb,width:s,height:s,stroke:l,strokeWidth:c?Number(r)*24/Number(s):r,className:up("lucide",d),...!m&&!pb(g)&&{"aria-hidden":"true"},...g},[...y.map(([v,A])=>p.createElement(v,A)),...Array.isArray(m)?m:[m]]));/**
|
|
78
78
|
* @license lucide-react v0.513.0 - ISC
|
|
79
79
|
*
|
|
80
80
|
* This source code is licensed under the ISC license.
|
|
81
81
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const ve=(l,s)=>{const r=p.forwardRef(({className:c,...d},m)=>p.createElement(
|
|
82
|
+
*/const ve=(l,s)=>{const r=p.forwardRef(({className:c,...d},m)=>p.createElement(gb,{ref:m,iconNode:s,className:up(`lucide-${hb(u0(l))}`,`lucide-${l}`,c),...d}));return r.displayName=u0(l),r};/**
|
|
83
83
|
* @license lucide-react v0.513.0 - ISC
|
|
84
84
|
*
|
|
85
85
|
* This source code is licensed under the ISC license.
|
|
86
86
|
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const
|
|
87
|
+
*/const vb=[["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"}]],bb=ve("activity",vb);/**
|
|
88
88
|
* @license lucide-react v0.513.0 - ISC
|
|
89
89
|
*
|
|
90
90
|
* This source code is licensed under the ISC license.
|
|
91
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const
|
|
92
|
+
*/const xb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Sb=ve("arrow-right",xb);/**
|
|
93
93
|
* @license lucide-react v0.513.0 - ISC
|
|
94
94
|
*
|
|
95
95
|
* This source code is licensed under the ISC license.
|
|
96
96
|
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const
|
|
97
|
+
*/const Eb=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Tb=ve("brain-circuit",Eb);/**
|
|
98
98
|
* @license lucide-react v0.513.0 - ISC
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the ISC license.
|
|
101
101
|
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const
|
|
102
|
+
*/const jb=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],Ab=ve("brain",jb);/**
|
|
103
103
|
* @license lucide-react v0.513.0 - ISC
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the ISC license.
|
|
106
106
|
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const
|
|
107
|
+
*/const _b=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nb=ve("chevron-down",_b);/**
|
|
108
108
|
* @license lucide-react v0.513.0 - ISC
|
|
109
109
|
*
|
|
110
110
|
* This source code is licensed under the ISC license.
|
|
111
111
|
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const
|
|
112
|
+
*/const Cb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],wb=ve("chevron-left",Cb);/**
|
|
113
113
|
* @license lucide-react v0.513.0 - ISC
|
|
114
114
|
*
|
|
115
115
|
* This source code is licensed under the ISC license.
|
|
116
116
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const
|
|
117
|
+
*/const Ob=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Mb=ve("circle-alert",Ob);/**
|
|
118
118
|
* @license lucide-react v0.513.0 - ISC
|
|
119
119
|
*
|
|
120
120
|
* This source code is licensed under the ISC license.
|
|
121
121
|
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const
|
|
122
|
+
*/const zb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],vo=ve("circle-check",zb);/**
|
|
123
123
|
* @license lucide-react v0.513.0 - ISC
|
|
124
124
|
*
|
|
125
125
|
* This source code is licensed under the ISC license.
|
|
126
126
|
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const
|
|
127
|
+
*/const Rb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Db=ve("circle-x",Rb);/**
|
|
128
128
|
* @license lucide-react v0.513.0 - ISC
|
|
129
129
|
*
|
|
130
130
|
* This source code is licensed under the ISC license.
|
|
131
131
|
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const
|
|
132
|
+
*/const kb=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],Ub=ve("cloud",kb);/**
|
|
133
133
|
* @license lucide-react v0.513.0 - ISC
|
|
134
134
|
*
|
|
135
135
|
* This source code is licensed under the ISC license.
|
|
136
136
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const
|
|
137
|
+
*/const Lb=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],bo=ve("cpu",Lb);/**
|
|
138
138
|
* @license lucide-react v0.513.0 - ISC
|
|
139
139
|
*
|
|
140
140
|
* This source code is licensed under the ISC license.
|
|
141
141
|
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const
|
|
142
|
+
*/const Hb=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],qb=ve("eye-off",Hb);/**
|
|
143
143
|
* @license lucide-react v0.513.0 - ISC
|
|
144
144
|
*
|
|
145
145
|
* This source code is licensed under the ISC license.
|
|
146
146
|
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const
|
|
147
|
+
*/const Bb=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gb=ve("eye",Bb);/**
|
|
148
148
|
* @license lucide-react v0.513.0 - ISC
|
|
149
149
|
*
|
|
150
150
|
* This source code is licensed under the ISC license.
|
|
151
151
|
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const
|
|
152
|
+
*/const Yb=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],rp=ve("flame",Yb);/**
|
|
153
153
|
* @license lucide-react v0.513.0 - ISC
|
|
154
154
|
*
|
|
155
155
|
* This source code is licensed under the ISC license.
|
|
156
156
|
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const
|
|
157
|
+
*/const Qb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Vb=ve("globe",Qb);/**
|
|
158
158
|
* @license lucide-react v0.513.0 - ISC
|
|
159
159
|
*
|
|
160
160
|
* This source code is licensed under the ISC license.
|
|
161
161
|
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const
|
|
162
|
+
*/const Xb=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["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"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],Zb=ve("hard-drive",Xb);/**
|
|
163
163
|
* @license lucide-react v0.513.0 - ISC
|
|
164
164
|
*
|
|
165
165
|
* This source code is licensed under the ISC license.
|
|
166
166
|
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const
|
|
167
|
+
*/const $b=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],r0=ve("hexagon",$b);/**
|
|
168
168
|
* @license lucide-react v0.513.0 - ISC
|
|
169
169
|
*
|
|
170
170
|
* This source code is licensed under the ISC license.
|
|
171
171
|
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const Kb=[["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"}]]
|
|
172
|
+
*/const Kb=[["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"}]],Jb=ve("house",Kb);/**
|
|
173
173
|
* @license lucide-react v0.513.0 - ISC
|
|
174
174
|
*
|
|
175
175
|
* This source code is licensed under the ISC license.
|
|
176
176
|
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const
|
|
177
|
+
*/const Fb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Pb=ve("info",Fb);/**
|
|
178
178
|
* @license lucide-react v0.513.0 - ISC
|
|
179
179
|
*
|
|
180
180
|
* This source code is licensed under the ISC license.
|
|
181
181
|
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const
|
|
182
|
+
*/const Wb=[["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"}]],Ib=ve("key",Wb);/**
|
|
183
183
|
* @license lucide-react v0.513.0 - ISC
|
|
184
184
|
*
|
|
185
185
|
* This source code is licensed under the ISC license.
|
|
186
186
|
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const
|
|
187
|
+
*/const ex=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tx=ve("loader-circle",ex);/**
|
|
188
188
|
* @license lucide-react v0.513.0 - ISC
|
|
189
189
|
*
|
|
190
190
|
* This source code is licensed under the ISC license.
|
|
191
191
|
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const
|
|
192
|
+
*/const ax=[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]],nx=ve("memory-stick",ax);/**
|
|
193
193
|
* @license lucide-react v0.513.0 - ISC
|
|
194
194
|
*
|
|
195
195
|
* This source code is licensed under the ISC license.
|
|
196
196
|
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const
|
|
197
|
+
*/const lx=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],ix=ve("menu",lx);/**
|
|
198
198
|
* @license lucide-react v0.513.0 - ISC
|
|
199
199
|
*
|
|
200
200
|
* This source code is licensed under the ISC license.
|
|
201
201
|
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const
|
|
202
|
+
*/const sx=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],cp=ve("message-circle",sx);/**
|
|
203
203
|
* @license lucide-react v0.513.0 - ISC
|
|
204
204
|
*
|
|
205
205
|
* This source code is licensed under the ISC license.
|
|
206
206
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const
|
|
207
|
+
*/const ux=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],rx=ve("monitor",ux);/**
|
|
208
208
|
* @license lucide-react v0.513.0 - ISC
|
|
209
209
|
*
|
|
210
210
|
* This source code is licensed under the ISC license.
|
|
211
211
|
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const
|
|
212
|
+
*/const cx=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],so=ve("rocket",cx);/**
|
|
213
213
|
* @license lucide-react v0.513.0 - ISC
|
|
214
214
|
*
|
|
215
215
|
* This source code is licensed under the ISC license.
|
|
216
216
|
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const
|
|
217
|
+
*/const ox=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fx=ve("settings",ox);/**
|
|
218
218
|
* @license lucide-react v0.513.0 - ISC
|
|
219
219
|
*
|
|
220
220
|
* This source code is licensed under the ISC license.
|
|
221
221
|
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
-
*/const
|
|
222
|
+
*/const dx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],hx=ve("shield-alert",dx);/**
|
|
223
223
|
* @license lucide-react v0.513.0 - ISC
|
|
224
224
|
*
|
|
225
225
|
* This source code is licensed under the ISC license.
|
|
226
226
|
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
-
*/const
|
|
227
|
+
*/const mx=[["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"}]],px=ve("shield",mx);/**
|
|
228
228
|
* @license lucide-react v0.513.0 - ISC
|
|
229
229
|
*
|
|
230
230
|
* This source code is licensed under the ISC license.
|
|
231
231
|
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
-
*/const
|
|
232
|
+
*/const yx=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],c0=ve("sparkles",yx);/**
|
|
233
233
|
* @license lucide-react v0.513.0 - ISC
|
|
234
234
|
*
|
|
235
235
|
* This source code is licensed under the ISC license.
|
|
236
236
|
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
-
*/const
|
|
237
|
+
*/const gx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],vx=ve("target",gx);/**
|
|
238
238
|
* @license lucide-react v0.513.0 - ISC
|
|
239
239
|
*
|
|
240
240
|
* This source code is licensed under the ISC license.
|
|
241
241
|
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
-
*/const
|
|
242
|
+
*/const bx=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],op=ve("telescope",bx);/**
|
|
243
243
|
* @license lucide-react v0.513.0 - ISC
|
|
244
244
|
*
|
|
245
245
|
* This source code is licensed under the ISC license.
|
|
246
246
|
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
-
*/const
|
|
247
|
+
*/const xx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],xo=ve("triangle-alert",xx);/**
|
|
248
248
|
* @license lucide-react v0.513.0 - ISC
|
|
249
249
|
*
|
|
250
250
|
* This source code is licensed under the ISC license.
|
|
251
251
|
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
-
*/const
|
|
252
|
+
*/const Sx=[["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"}]],Ex=ve("user",Sx);/**
|
|
253
253
|
* @license lucide-react v0.513.0 - ISC
|
|
254
254
|
*
|
|
255
255
|
* This source code is licensed under the ISC license.
|
|
256
256
|
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
-
*/const
|
|
257
|
+
*/const Tx=[["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"}]],jx=ve("users",Tx);/**
|
|
258
258
|
* @license lucide-react v0.513.0 - ISC
|
|
259
259
|
*
|
|
260
260
|
* This source code is licensed under the ISC license.
|
|
261
261
|
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
-
*/const
|
|
262
|
+
*/const Ax=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],o0=ve("waves",Ax);/**
|
|
263
263
|
* @license lucide-react v0.513.0 - ISC
|
|
264
264
|
*
|
|
265
265
|
* This source code is licensed under the ISC license.
|
|
266
266
|
* See the LICENSE file in the root directory of this source tree.
|
|
267
|
-
*/const
|
|
267
|
+
*/const _x=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Nx=ve("wifi",_x);/**
|
|
268
268
|
* @license lucide-react v0.513.0 - ISC
|
|
269
269
|
*
|
|
270
270
|
* This source code is licensed under the ISC license.
|
|
271
271
|
* See the LICENSE file in the root directory of this source tree.
|
|
272
|
-
*/const
|
|
272
|
+
*/const Cx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],wx=ve("wrench",Cx);/**
|
|
273
273
|
* @license lucide-react v0.513.0 - ISC
|
|
274
274
|
*
|
|
275
275
|
* This source code is licensed under the ISC license.
|
|
276
276
|
* See the LICENSE file in the root directory of this source tree.
|
|
277
|
-
*/const
|
|
277
|
+
*/const Ox=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ko=ve("x",Ox);/**
|
|
278
278
|
* @license lucide-react v0.513.0 - ISC
|
|
279
279
|
*
|
|
280
280
|
* This source code is licensed under the ISC license.
|
|
281
281
|
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
-
*/const Ox=[["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"}]],fp=ve("zap",Ox),dp=p.createContext({toast:()=>{}});function _4(){return p.useContext(dp)}const hp={success:"var(--theme-leather-stitch)",error:"var(--theme-accent)",warning:"var(--theme-metal-bright)",info:"var(--theme-metal)"};function Mx({type:l}){const r={size:16,style:{color:hp[l]}};switch(l){case"success":return o.jsx(vo,{...r});case"error":return o.jsx(Rb,{...r});case"warning":return o.jsx(Ob,{...r});case"info":return o.jsx(Fb,{...r})}}function zx({children:l}){const[s,r]=p.useState([]),c=p.useCallback((m,y)=>{const g=`toast-${Date.now()}-${Math.random().toString(36).slice(2)}`;r(b=>[...b,{id:g,type:m,message:y}]),setTimeout(()=>{r(b=>b.filter(v=>v.id!==g))},4e3)},[]),d=p.useCallback(m=>{r(y=>y.filter(g=>g.id!==m))},[]);return o.jsxs(dp.Provider,{value:{toast:c},children:[l,o.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 pointer-events-none",style:{fontFamily:"var(--theme-font-display)"},children:s.map(m=>o.jsxs("div",{role:"status",className:"titan-toast-surface pointer-events-auto flex items-center gap-2.5 px-4 py-3",style:{borderLeft:`3px solid ${hp[m.type]}`},children:[o.jsx(Mx,{type:m.type}),o.jsx("span",{className:"text-sm",style:{color:"var(--theme-ink)"},children:m.message}),o.jsx("button",{onClick:()=>d(m.id),className:"titan-close-btn ml-2","aria-label":"Dismiss",children:o.jsx(Uo,{size:14})})]},m.id))})]})}function Rx(){const{login:l}=sp(),[s,r]=p.useState(""),[c,d]=p.useState(""),[m,y]=p.useState(!1),[g,b]=p.useState(!1),[v,A]=p.useState(!1),T=p.useCallback(async q=>{if(q.preventDefault(),!!s.trim()){d(""),y(!0);try{await l(s)}catch{d("Incorrect access token. Please try again.")}finally{y(!1)}}},[s,l]),z=s.trim().length>0&&!m;return o.jsxs("div",{className:"relative flex items-center justify-center min-h-screen overflow-hidden px-6",style:{background:"linear-gradient(135deg, var(--theme-bg-base) 0%, var(--theme-bg-grain) 55%, var(--theme-leather-edge) 100%)",fontFamily:"var(--theme-font-display)"},children:[o.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse at center, transparent 40%, var(--theme-bg-vignette) 100%)"}}),o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[420px] h-[420px] rounded-full pointer-events-none",style:{background:"radial-gradient(circle, var(--theme-accent) 0%, transparent 65%)",opacity:.2,filter:"blur(60px)"}}),o.jsxs("div",{className:"relative z-10 w-[360px] max-w-full",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl mb-5",style:{background:"linear-gradient(135deg, var(--theme-metal) 0%, var(--theme-metal-dark) 100%)",border:"1px solid var(--theme-metal-dark)",boxShadow:"0 0 40px color-mix(in srgb, var(--theme-accent) 30%, transparent), inset 0 1px 0 var(--theme-metal-bright)"},children:o.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",className:"w-9 h-9",children:[o.jsx("path",{d:"M16 3L4 9.5v13L16 29l12-6.5v-13L16 3z",stroke:"var(--theme-bolt)",strokeWidth:1.5,strokeLinejoin:"round"}),o.jsx("path",{d:"M16 3v26M4 9.5L28 22.5M28 9.5L4 22.5",stroke:"var(--theme-bolt)",strokeWidth:1,opacity:.4}),o.jsx("circle",{cx:16,cy:16,r:4,fill:"var(--theme-bolt)",opacity:.85})]})}),o.jsx("h1",{className:"text-5xl font-bold",style:{color:"var(--theme-paper-fg)",fontFamily:"var(--theme-font-display)",letterSpacing:"0.05em",textShadow:"0 0 24px color-mix(in srgb, var(--theme-accent) 45%, transparent), 0 2px 12px var(--theme-shadow)"},children:"TITAN"}),o.jsx("p",{className:"text-sm mt-3 italic",style:{color:"var(--theme-ink-soft)",letterSpacing:"0.04em"},children:"Mission Control awaits"})]}),o.jsx("div",{className:"rounded-2xl",style:{padding:"40px",background:"linear-gradient(180deg, var(--theme-leather) 0%, var(--theme-leather-edge) 100%)",border:"1px solid var(--theme-metal-dark)",boxShadow:"0 18px 60px var(--theme-shadow), inset 0 1px 0 color-mix(in srgb, var(--theme-metal-bright) 18%, transparent), inset 0 -1px 0 var(--theme-leather-edge)"},children:o.jsxs("form",{onSubmit:T,className:"space-y-5",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"password",className:"block text-xs font-medium mb-2 uppercase",style:{color:"var(--theme-ink-soft)",letterSpacing:"0.12em"},children:"Access Token"}),o.jsxs("div",{className:"relative",children:[o.jsx("input",{id:"password",type:g?"text":"password",autoFocus:!0,autoComplete:"current-password",value:s,onChange:q=>{r(q.target.value),c&&d("")},onFocus:()=>A(!0),onBlur:()=>A(!1),placeholder:"Enter your TITAN access token",className:"w-full rounded-xl focus:outline-none transition-all",style:{padding:"12px 44px 12px 14px",fontFamily:"var(--theme-font-mono)",fontSize:"14px",letterSpacing:g?"0.02em":"0.18em",color:"var(--theme-paper-fg)",background:"color-mix(in srgb, var(--theme-paper) 10%, transparent)",border:c?"1px solid var(--theme-accent)":v?"1px solid var(--theme-metal-bright)":"1px solid var(--theme-metal-dark)",boxShadow:c?"0 0 0 4px color-mix(in srgb, var(--theme-accent) 18%, transparent), inset 0 2px 4px var(--theme-shadow)":v?"0 0 0 4px color-mix(in srgb, var(--theme-metal-bright) 20%, transparent), inset 0 2px 4px var(--theme-shadow)":"inset 0 2px 4px var(--theme-shadow)"}}),o.jsx("button",{type:"button",tabIndex:-1,onClick:()=>b(q=>!q),"aria-label":g?"Hide token":"Show token",className:"absolute top-1/2 -translate-y-1/2 right-3 inline-flex items-center justify-center w-7 h-7 rounded-md transition-colors",style:{color:"var(--theme-ink-soft)",background:"transparent",border:"none",cursor:"pointer"},onMouseEnter:q=>{q.currentTarget.style.color="var(--theme-paper)"},onMouseLeave:q=>{q.currentTarget.style.color="var(--theme-ink-soft)"},children:g?o.jsx(Hb,{size:16}):o.jsx(Bb,{size:16})})]}),c&&o.jsx("p",{className:"mt-2 text-xs",style:{color:"var(--theme-accent)",fontFamily:"var(--theme-font-mono)",letterSpacing:"0.02em"},role:"alert",children:c})]}),o.jsx("button",{type:"submit",disabled:!z,className:"w-full rounded-xl transition-all",style:{padding:"12px 16px",fontFamily:"var(--theme-font-display)",fontWeight:600,fontSize:"15px",letterSpacing:"0.04em",color:"var(--theme-bolt)",background:z?"linear-gradient(180deg, var(--theme-metal-bright) 0%, var(--theme-metal) 55%, var(--theme-metal-dark) 100%)":"linear-gradient(180deg, color-mix(in srgb, var(--theme-metal) 40%, transparent), color-mix(in srgb, var(--theme-metal-dark) 40%, transparent))",border:"1px solid var(--theme-metal-dark)",boxShadow:z?"0 4px 14px var(--theme-shadow), inset 0 1px 0 color-mix(in srgb, var(--theme-metal-bright) 60%, transparent)":"none",opacity:z?1:.55,cursor:z?"pointer":"not-allowed"},onMouseEnter:q=>{z&&(q.currentTarget.style.background="linear-gradient(180deg, var(--theme-metal-bright) 0%, var(--theme-metal-bright) 50%, var(--theme-metal) 100%)",q.currentTarget.style.boxShadow="0 8px 22px color-mix(in srgb, var(--theme-accent) 35%, transparent), 0 4px 14px var(--theme-shadow), inset 0 1px 0 var(--theme-paper)",q.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:q=>{z&&(q.currentTarget.style.background="linear-gradient(180deg, var(--theme-metal-bright) 0%, var(--theme-metal) 55%, var(--theme-metal-dark) 100%)",q.currentTarget.style.boxShadow="0 4px 14px var(--theme-shadow), inset 0 1px 0 color-mix(in srgb, var(--theme-metal-bright) 60%, transparent)",q.currentTarget.style.transform="translateY(0)")},children:m?o.jsxs("span",{className:"inline-flex items-center justify-center gap-2",children:[o.jsx(ex,{size:16,className:"animate-spin"}),"Signing in"]}):"Sign In"})]})}),o.jsx("p",{className:"text-center mt-8 text-xs",style:{color:"var(--theme-ink-soft)",fontFamily:"var(--theme-font-mono)",opacity:.5,letterSpacing:"0.04em"},children:"Built by Tony Elliott · github.com/Djtony707"})]})]})}const Tu={idle:{primary:[100,100,140],secondary:[80,80,120],glow:"rgba(100, 100, 200, 0.15)"},user:{primary:[34,211,238],secondary:[6,182,212],glow:"rgba(34, 211, 238, 0.25)"},assistant:{primary:[139,92,246],secondary:[124,58,237],glow:"rgba(139, 92, 246, 0.3)"},thinking:{primary:[245,158,11],secondary:[217,119,6],glow:"rgba(245, 158, 11, 0.25)"}};function f0({audioLevel:l,speaker:s,size:r=240}){const c=p.useRef(null),d=p.useRef(null),m=p.useRef(0),y=p.useRef(0),g=p.useRef(0),b=p.useRef(Tu.idle.primary),v=p.useRef([...Tu.idle.primary]),A=p.useRef(l),T=p.useRef(s),z=p.useRef(r);return A.current=l,T.current=s,z.current=r,p.useEffect(()=>{const q=new Image;q.src="/titan-logo.png",q.onload=()=>{d.current=q}},[]),p.useEffect(()=>{function q(){const X=c.current;if(!X){m.current=requestAnimationFrame(q);return}const O=X.getContext("2d");if(!O){m.current=requestAnimationFrame(q);return}const Y=z.current,G=A.current,W=T.current,$=window.devicePixelRatio||1,V=Y*$,ne=Y*$;(X.width!==V||X.height!==ne)&&(X.width=V,X.height=ne),O.clearRect(0,0,V,ne),y.current+=.016;const Q=y.current;g.current+=(G-g.current)*.12;const F=g.current,he=Tu[W];b.current=he.primary;for(let J=0;J<3;J++)v.current[J]+=(b.current[J]-v.current[J])*.04;const[le,Be,Ue]=v.current.map(Math.round),Ge=V/2,nt=ne/2,we=V*.35;for(let J=3;J>=0;J--){const re=1+J*.12+F*J*.08,ge=.06-J*.012+F*.03;O.save(),O.translate(Ge,nt),O.beginPath();const S=120;for(let K=0;K<=S;K++){const P=K/S*Math.PI*2,se=Math.sin(P*3+Q*1.2+J)*.08,oe=Math.sin(P*5-Q*.8+J*2)*.05,ee=Math.sin(P*7+Q*2.1)*.03*F,et=Math.sin(P*2+Q*3)*F*.12,ke=we*re*(1+se+oe+ee+et),la=Math.cos(P)*ke,Ft=Math.sin(P)*ke;K===0?O.moveTo(la,Ft):O.lineTo(la,Ft)}O.closePath();const D=O.createRadialGradient(0,0,0,0,0,we*re*1.2);D.addColorStop(0,`rgba(${le}, ${Be}, ${Ue}, ${ge*2})`),D.addColorStop(.6,`rgba(${le}, ${Be}, ${Ue}, ${ge})`),D.addColorStop(1,`rgba(${le}, ${Be}, ${Ue}, 0)`),O.fillStyle=D,O.fill(),O.restore()}O.save(),O.translate(Ge,nt),O.beginPath();const Ne=150;for(let J=0;J<=Ne;J++){const re=J/Ne*Math.PI*2,ge=Math.sin(re*3+Q*1.5)*.04,S=Math.sin(re*5-Q*1)*.025,D=Math.sin(re*4+Q*3.5)*F*.06,K=Math.sin(Q*.8)*.02,P=W==="thinking"?Math.sin(Q*2.5)*.06:0,se=we*(1+ge+S+D+K+P),oe=Math.cos(re)*se,ee=Math.sin(re)*se;J===0?O.moveTo(oe,ee):O.lineTo(oe,ee)}O.closePath();const R=O.createRadialGradient(-we*.2,-we*.2,we*.1,0,0,we*1.1);R.addColorStop(0,`rgba(${Math.min(255,le+80)}, ${Math.min(255,Be+80)}, ${Math.min(255,Ue+80)}, 0.95)`),R.addColorStop(.5,`rgba(${le}, ${Be}, ${Ue}, 0.85)`),R.addColorStop(1,`rgba(${Math.max(0,le-40)}, ${Math.max(0,Be-40)}, ${Math.max(0,Ue-40)}, 0.8)`),O.fillStyle=R,O.fill();const Z=O.createRadialGradient(-we*.25,-we*.3,0,-we*.1,-we*.15,we*.5);if(Z.addColorStop(0,"rgba(255, 255, 255, 0.35)"),Z.addColorStop(.5,"rgba(255, 255, 255, 0.08)"),Z.addColorStop(1,"rgba(255, 255, 255, 0)"),O.fillStyle=Z,O.fill(),O.restore(),d.current){const J=we*.8,re=Ge-J/2,ge=nt-J/2,S=Math.sin(Q*1.2)*3*$,D=Math.cos(Q*.9)*2*$;O.save(),O.globalAlpha=.9+F*.1,O.shadowColor=`rgba(${le}, ${Be}, ${Ue}, ${.4+F*.3})`,O.shadowBlur=20+F*30,O.beginPath(),O.arc(Ge+D,nt+S,J/2+2,0,Math.PI*2),O.closePath(),O.clip(),O.drawImage(d.current,re+D,ge+S,J,J),O.restore()}if(F>.1){const J=Math.floor(F*12);for(let re=0;re<J;re++){const ge=re/J*Math.PI*2+Q*.3,S=we*(1.2+Math.sin(Q*2+re*1.7)*.3+F*.2),D=Ge+Math.cos(ge)*S,K=nt+Math.sin(ge)*S,P=(1.5+Math.sin(Q*3+re)*1)*$,se=.3+Math.sin(Q*2+re*.5)*.2;O.beginPath(),O.arc(D,K,P,0,Math.PI*2),O.fillStyle=`rgba(${le}, ${Be}, ${Ue}, ${se})`,O.fill()}}m.current=requestAnimationFrame(q)}return m.current=requestAnimationFrame(q),()=>cancelAnimationFrame(m.current)},[]),o.jsx("canvas",{ref:c,style:{width:r,height:r,filter:`drop-shadow(0 0 ${20+l*40}px ${Tu[s].glow})`,transition:"filter 0.3s ease"}})}const d0=[{id:"ollama",name:"Ollama (Local)",desc:"Local models running on your machine",noKey:!0,icon:bo},{id:"anthropic",name:"Anthropic",desc:"Claude models for careful reasoning and coding",icon:Eb},{id:"openai",name:"OpenAI",desc:"GPT models for general work and tool use",icon:fp},{id:"google",name:"Google",desc:"Gemini models for long-context work",icon:Qb},{id:"groq",name:"Groq",desc:"Fast hosted inference for supported open models",icon:rp},{id:"openrouter",name:"OpenRouter",desc:"Many hosted models behind one API key",icon:_x},{id:"deepseek",name:"DeepSeek",desc:"Cost-effective reasoning and coding models",icon:op},{id:"xai",name:"xAI",desc:"Grok models through the xAI API",icon:cp}],uo={ollama:["ollama/llama3.3:8b","ollama/qwen3:8b","ollama/devstral-small-2","ollama/mistral:7b"],anthropic:["anthropic/claude-sonnet-4-20250514","anthropic/claude-haiku-4-5-20251001","anthropic/claude-opus-4-20250514"],openai:["openai/gpt-4o","openai/gpt-4o-mini","openai/o3-mini"],google:["google/gemini-2.5-pro","google/gemini-2.0-flash"],groq:["groq/llama-3.3-70b-versatile","groq/mixtral-8x7b-32768"],openrouter:["openrouter/anthropic/claude-sonnet-4-20250514","openrouter/openai/gpt-4o"],deepseek:["deepseek/deepseek-chat","deepseek/deepseek-reasoner"],xai:["xai/grok-3","xai/grok-3-mini"]},Dx=["ollama/qwen3:8b","ollama/llama3.3:8b","ollama/mistral:7b"],Yi={free:[{id:"openrouter/nvidia/nemotron-3-super-120b-a12b:free",name:"Nemotron 3 Super",desc:"Free 120B MoE model for broad tasks",badge:"free"},{id:"openrouter/nvidia/nemotron-3-nano-30b-a3b:free",name:"Nemotron 3 Nano",desc:"Free 30B model for lighter work",badge:"free"},{id:"openrouter/z-ai/glm-4.5-air:free",name:"GLM-4.5 Air",desc:"Free general-purpose model",badge:"free"}],paid:[{id:"openrouter/qwen/qwen3.5-397b-a17b",name:"Qwen 3.5 397B",desc:"Flagship MoE model for high-quality work",badge:"flagship"},{id:"openrouter/openai/gpt-5.4",name:"GPT-5.4",desc:"OpenAI premium model for demanding tasks",badge:"premium"},{id:"openrouter/anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",desc:"Anthropic premium model for reasoning and coding",badge:"premium"},{id:"openrouter/google/gemini-3.1-pro",name:"Gemini 3.1 Pro",desc:"Google premium model for long-context work",badge:"premium"},{id:"openrouter/moonshotai/kimi-k2.5",name:"Kimi K2.5",desc:"Reasoning model for complex analysis",badge:"midrange"},{id:"openrouter/deepseek/deepseek-v3.2",name:"DeepSeek V3.2",desc:"Cost-effective model for reasoning and coding",badge:"midrange"},{id:"openrouter/z-ai/glm-4.7-flash",name:"GLM-4.7 Flash",desc:"Fast model for agent workflows",badge:"agent"}]},h0=["TITAN keeps mission work visible with plans, logs, files, and approvals.","Mission Desk turns broad requests into coordinated specialist work.","Local installs keep config and workspace state under your TITAN_HOME.","Approval gates keep sensitive actions under human control.","You can route work across local and cloud models from Settings.","Mission starters can save preferred cadences for follow-up runs."];function Ml({children:l,icon:s}){return o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s&&o.jsx(s,{className:"w-5 h-5 text-accent"}),o.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-accent",children:l})]})}function Ux({onComplete:l}){var ns;const[s,r]=p.useState(0),[c,d]=p.useState(""),[m,y]=p.useState(""),[g,b]=p.useState(""),[v,A]=p.useState("TITAN"),[T,z]=p.useState("default"),[q,X]=p.useState([]),[O,Y]=p.useState(""),[G,W]=p.useState(!1),[$,V]=p.useState(!1),[ne,Q]=p.useState(""),[F,he]=p.useState(0),[le,Be]=p.useState(!1),[Ue,Ge]=p.useState(""),[nt,we]=p.useState("6.1"),[Ne,R]=p.useState(!0),[Z,J]=p.useState(!1),[re,ge]=p.useState("—"),[S,D]=p.useState("—"),[K,P]=p.useState("—"),[se,oe]=p.useState("—"),[ee,et]=p.useState(null),[ke,la]=p.useState([]),[Ft,Qn]=p.useState(!1),[Wi,ma]=p.useState(!1),[ia,Xl]=p.useState(!0),Pt=d0.find(C=>C.id===c),Vn=Pt&&!("noKey"in Pt&&Pt.noKey),Xn=(()=>{const C=uo[c]||[];if(!ee||le)return C;const me=ee.gpuVendor!=="none"&&ee.gpuVramMB>=4096,Ye=ee.ramTotalMB>=16384;return!me&&!Ye&&c==="ollama"?C.filter(tt=>Dx.includes(tt)):C})(),Zl=[...Yi.free,...Yi.paid];p.useEffect(()=>{yt("/api/cloud/config").then(C=>C.json()).then(C=>{var me;C.cloud&&(Be(!0),Ge(C.userEmail||""),d("openrouter"),b(((me=Yi.free[0])==null?void 0:me.id)||""))}).catch(()=>{})},[]),p.useEffect(()=>{yt("/api/onboarding/status").then(C=>C.json()).then(C=>{C.version&&we(String(C.version))}).catch(()=>{})},[]),p.useEffect(()=>{yt("/api/skills").then(C=>{if(!C.ok)throw new Error("Failed to load skills");return C.json()}).then(C=>{const me=Array.isArray(C==null?void 0:C.skills)?C.skills:Array.isArray(C)?C:null;me&&(ge(String(me.length)),D(String(me.reduce((Ye,tt)=>Ye+(Array.isArray(tt.tools)?tt.tools.length:0),0))))}).catch(()=>{ge("—"),D("—")})},[]),p.useEffect(()=>{yt("/api/providers").then(C=>{if(!C.ok)throw new Error("Failed to load providers");return C.json()}).then(C=>{const me=Array.isArray(C==null?void 0:C.providers)?C.providers:C&&typeof C=="object"&&!Array.isArray(C)?Object.keys(C):null;me&&P(String(me.length))}).catch(()=>P("—"))},[]),p.useEffect(()=>{yt("/api/channels").then(C=>{if(!C.ok)throw new Error("Failed to load channels");return C.json()}).then(C=>{const me=Array.isArray(C)?C:Array.isArray(C==null?void 0:C.channels)?C.channels:null;me&&oe(String(me.length))}).catch(()=>oe("—"))},[]),p.useEffect(()=>{yt("/api/personas").then(C=>C.json()).then(C=>{C.personas&&X(C.personas),C.active&&z(C.active)}).catch(()=>{})},[]),p.useEffect(()=>{Qn(!0),yt("/api/hardware/detect").then(C=>C.json()).then(C=>{C.profile&&et(C.profile),C.recommendations&&la(C.recommendations)}).catch(()=>{}).finally(()=>Qn(!1))},[]),p.useEffect(()=>{const C=setInterval(()=>{he(me=>(me+1)%h0.length)},5e3);return()=>clearInterval(C)},[]),p.useEffect(()=>{if(ee&&!c&&!le){const C=ee.gpuVendor!=="none"&&ee.gpuVramMB>=4096,me=ee.ramTotalMB>=8192;(C||me)&&(d("ollama"),b(uo.ollama[0]??""))}},[ee,c,le]);const Kl=()=>{if(le)switch(s){case 0:return!0;case 1:return!0;case 2:return!!g;case 3:return!!v;case 4:return!0;default:return!0}switch(s){case 0:return!0;case 1:return!0;case 2:return!!c&&(!Vn||m.length>5);case 3:return!!g;case 4:return!!v;case 5:return!0;default:return!0}},ku=async()=>{W(!0),Q("");try{if(ia&&ee&&!Wi)try{await yt("/api/hardware/apply",{method:"POST"}),ma(!0)}catch{}T!=="default"&&await yt("/api/persona/switch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:T})});const C=await yt("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:le?"openrouter":c,apiKey:le?void 0:Vn?m:void 0,model:g,agentName:v,persona:T})});if(!C.ok){const me=await C.json();throw new Error(me.error||"Setup failed")}try{await yt("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organism:{enabled:Ne}})})}catch{}try{await yt("/api/telemetry/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:Z,crashReports:Z})})}catch{}Do("onboarding_completed",{provider:le?"openrouter":c,model:g,cloudMode:le}),V(!0),setTimeout(l,1800)}catch(C){Q(C instanceof Error?C.message:"Something went wrong"),W(!1)}},Ii=q.filter(C=>!O||C.name.toLowerCase().includes(O.toLowerCase())||C.description.toLowerCase().includes(O.toLowerCase())||C.division.toLowerCase().includes(O.toLowerCase())),ht=le?5:6,Lu=s===0||s===ht?200:0,es=s===ht?"assistant":"idle",Zn=C=>C>=1024?`${(C/1024).toFixed(1)} GB`:`${C} MB`,yn=[o.jsxs("div",{className:"flex flex-col items-center text-center",children:[o.jsx("div",{className:"relative mb-8",style:{transition:"all 0.6s cubic-bezier(0.22, 1, 0.36, 1)"},children:o.jsx(f0,{audioLevel:0,speaker:"idle",size:Lu})}),o.jsx("h1",{className:"text-5xl font-bold text-white mb-3 tracking-tight",children:"Welcome Aboard"}),o.jsxs("p",{className:"text-xl text-text-secondary mb-2 font-light",children:["TITAN ",o.jsxs("span",{className:"text-accent font-medium",children:["v",nt]})]}),o.jsx("p",{className:"text-sm text-text-muted max-w-md mb-8 leading-relaxed",children:"Configure your local runtime, choose a model, and open Mission Control."}),o.jsxs("div",{className:"px-5 py-3 rounded-2xl border border-accent/20 bg-accent/5 mb-8 max-w-md",children:[o.jsxs("p",{className:"text-xs text-accent-hover font-medium mb-1 flex items-center gap-1.5",children:[o.jsx(c0,{size:12})," Did you know?"]}),o.jsx("p",{className:"text-xs text-text-secondary leading-relaxed transition-opacity duration-500",children:h0[F]},F)]}),o.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["Verified Missions","Approvals","Artifacts","Recurring Work","Voice Mode","Local First"].map(C=>o.jsx("span",{className:"px-3 py-1.5 text-[11px] rounded-full border border-border text-text-secondary bg-bg-secondary",children:C},C))})]},"welcome"),o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:ux,children:"Systems Check"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"System Diagnostic"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"TITAN is checking local resources so it can choose safe defaults for this machine."}),Ft&&o.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-3",children:[o.jsx("div",{className:"w-10 h-10 border-2 border-accent border-t-transparent rounded-full animate-spin"}),o.jsx("p",{className:"text-xs text-text-muted animate-pulse",children:"Scanning subsystems…"})]}),!Ft&&!ee&&o.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 text-sm text-text-secondary",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(xo,{className:"w-4 h-4 text-warning"}),o.jsx("span",{className:"font-medium text-warning",children:"Sensors offline"})]}),"Couldn't read hardware details. TITAN will use safe defaults and you can tweak later in Settings."]}),!Ft&&ee&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[{icon:bo,label:"CPU",value:`${ee.cpuCores} cores`,sub:ee.cpuModel},{icon:ax,label:"RAM",value:Zn(ee.ramTotalMB),sub:`${Zn(ee.ramFreeMB)} free`},{icon:fp,label:"GPU",value:ee.gpuVendor==="none"?"None":ee.gpuVendor.toUpperCase(),sub:ee.gpuVendor==="none"?"Cloud models recommended":`${ee.gpuName} · ${Zn(ee.gpuVramMB)}`},{icon:Xb,label:"Storage",value:`${ee.diskFreeGB} GB free`,sub:`of ${ee.diskTotalGB} GB total`}].map(({icon:C,label:me,value:Ye,sub:tt})=>o.jsxs("div",{className:"p-4 rounded-2xl border border-border bg-bg-secondary hover:border-border-light transition-colors",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(C,{className:"w-4 h-4 text-accent"}),o.jsx("span",{className:"text-[10px] text-text-muted uppercase tracking-widest",children:me})]}),o.jsx("p",{className:"text-sm font-semibold text-white",children:Ye}),o.jsx("p",{className:"text-[11px] text-text-muted mt-0.5 truncate",title:tt,children:tt})]},me))}),ke.length>0&&o.jsxs("div",{className:"mb-5",children:[o.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Recommendations"}),o.jsx("div",{className:"space-y-1.5",children:ke.slice(0,6).map((C,me)=>{const[Ye,tt]=C.split(": ");return tt?o.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-xl bg-bg-secondary border border-border text-xs",children:[o.jsx("span",{className:"text-text-secondary",children:Ye.replace(/\./g," › ")}),o.jsx("span",{className:"text-white font-mono",children:tt})]},me):null})})]}),ee.gpuVendor==="none"&&ee.ramTotalMB<16384&&o.jsxs("div",{className:"p-4 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[o.jsxs("p",{className:"text-xs text-[#fbbf24] font-semibold flex items-center gap-2",children:[o.jsx(xo,{className:"w-3.5 h-3.5"})," No dedicated GPU detected"]}),o.jsx("p",{className:"text-xs text-text-muted mt-1.5 leading-relaxed",children:"Local models will run on CPU — slower, but perfectly fine for small 7–8B models. For speed, grab an API key from Anthropic, OpenAI, or Groq."})]}),o.jsxs("button",{onClick:()=>Xl(!ia),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${ia?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:"Apply recommended settings"}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:ia?"TITAN will auto-tune for your hardware.":"You can change these in Settings later."})]}),o.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${ia?"bg-accent":"bg-bg-tertiary"}`,children:o.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${ia?"left-5":"left-0.5"}`})})]})]})]},"hardware"),le?o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:Ub,children:"TITAN Cloud"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick Your Brain"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Included with your subscription. Upgrade or downgrade anytime."}),Ue&&o.jsx("div",{className:"mb-4 p-3 rounded-xl border border-accent/30 bg-accent/5",children:o.jsxs("p",{className:"text-xs text-text-secondary",children:["Signed in as ",o.jsx("span",{className:"text-white font-semibold",children:Ue})]})}),o.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Free Tier"}),o.jsx("div",{className:"space-y-2 mb-5",children:Yi.free.map(C=>o.jsx("button",{onClick:()=>b(C.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:C.desc})]}),o.jsx("span",{className:"px-2.5 py-0.5 text-[10px] font-bold rounded-full bg-success/20 text-[#4ade80] uppercase",children:"free"})]})},C.id))}),o.jsxs("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:["Premium ",o.jsx("span",{className:"normal-case font-normal opacity-60",children:"— uses credits"})]}),o.jsx("div",{className:"space-y-2",children:Yi.paid.map(C=>o.jsx("button",{onClick:()=>b(C.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:C.desc})]}),o.jsx("span",{className:`px-2.5 py-0.5 text-[10px] font-bold rounded-full uppercase ${C.badge==="premium"?"bg-warning/20 text-[#fbbf24]":C.badge==="flagship"?"bg-accent/20 text-accent-hover":"bg-border/50 text-text-secondary"}`,children:C.badge})]})},C.id))})]},"cloud-model"):o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:Wb,children:"AI Provider"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Choose Your Engine"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Where should TITAN's brain live? Your machine, or someone else's?"}),o.jsx("div",{className:"grid grid-cols-2 gap-3 mb-6",children:d0.map(C=>{const me=C.icon;return o.jsxs("button",{onClick:()=>{var Ye;d(C.id),b(((Ye=uo[C.id])==null?void 0:Ye[0])??"")},className:`text-left p-4 rounded-2xl border transition-all ${c===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(me,{className:"w-4 h-4 text-accent"}),o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name})]}),o.jsx("p",{className:"text-xs text-text-muted leading-relaxed",children:C.desc})]},C.id)})}),Vn&&o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{className:"text-sm text-text-secondary",children:"API Key"}),o.jsx("input",{type:"password",value:m,onChange:C=>y(C.target.value),placeholder:`Paste your ${Pt==null?void 0:Pt.name} API key`,className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/50 transition-colors"}),o.jsx("p",{className:"text-xs text-text-muted",children:"Stored locally in ~/.titan/titan.json. Never leaves this machine except to talk to your provider."})]}),c==="ollama"&&o.jsxs("div",{className:"mt-4 p-4 rounded-2xl border border-success/30 bg-success/5",children:[o.jsxs("p",{className:"text-sm text-success font-semibold flex items-center gap-2",children:[o.jsx(vo,{className:"w-4 h-4"})," No API key needed"]}),o.jsx("p",{className:"text-xs text-text-muted mt-1 leading-relaxed",children:"Make sure Ollama is running. TITAN will auto-detect your models. If not, grab it from ollama.com."})]}),ee&&ee.gpuVendor==="none"&&ee.ramTotalMB<16384&&c==="ollama"&&o.jsxs("div",{className:"mt-3 p-3 rounded-2xl border border-warning/30 bg-warning/5",children:[o.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold",children:"CPU-only detected"}),o.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Large local models will be sluggish. Consider a cloud provider for daily driver work, or keep Ollama for offline tasks."})]})]},"provider"),...le?[]:[o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:bo,children:"Model"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick a Model"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Choose the default model for missions. You can change it later in Settings."}),Xn.length===0&&c==="ollama"&&o.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[o.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold mb-1",children:"No suggested local model available"}),o.jsxs("p",{className:"text-xs text-text-muted leading-relaxed",children:["Try entering a smaller model manually, for example ",o.jsx("code",{className:"text-white",children:"ollama/tinyllama:1b"}),"."]})]}),o.jsx("div",{className:"space-y-2 mb-5",children:Xn.map(C=>o.jsx("button",{onClick:()=>b(C),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===C?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:`w-2 h-2 rounded-full ${g===C?"bg-accent":"bg-text-muted"}`}),o.jsx("p",{className:"font-mono text-sm text-white",children:C})]})},C))}),o.jsxs("div",{children:[o.jsx("label",{className:"text-sm text-text-muted",children:"Or enter any model ID:"}),o.jsx("input",{type:"text",value:g,onChange:C=>b(C.target.value),placeholder:`${c}/any-model-you-want`,className:"w-full mt-2 px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent font-mono text-sm"}),o.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"TITAN works with local and hosted models that expose a compatible Ollama or OpenAI-style API."})]})]},"model")],o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:Sx,children:"Identity"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Who Is TITAN?"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Give your agent a name and a vibe. This is how TITAN introduces itself to the world."}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-sm text-text-secondary mb-2 block",children:"Agent Name"}),o.jsx("input",{type:"text",value:v,onChange:C=>A(C.target.value),placeholder:"TITAN",className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent text-lg font-semibold"}),o.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"This appears in chat, the Command Post, and anywhere TITAN signs its work."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"text-sm text-text-secondary mb-3 block",children:["Persona ",o.jsx("span",{className:"text-text-muted font-normal",children:"— optional"})]}),o.jsx("input",{type:"text",placeholder:"Search personas...",value:O,onChange:C=>Y(C.target.value),className:"w-full mb-3 px-3 py-2 rounded-xl border border-border bg-bg-secondary text-sm text-text placeholder:text-text-muted focus:outline-none focus:border-accent"}),o.jsxs("div",{className:"grid grid-cols-2 gap-3 max-h-[280px] overflow-y-auto pr-1",children:[Ii.map(C=>o.jsxs("button",{onClick:()=>z(C.id),className:`text-left p-4 rounded-2xl border transition-all ${T===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name}),o.jsx("p",{className:"text-xs text-text-muted mt-1 line-clamp-2",children:C.description}),o.jsx("p",{className:"text-[10px] text-text-muted mt-1 capitalize",children:C.division})]},C.id)),Ii.length===0&&o.jsx("p",{className:"col-span-2 text-sm text-text-muted text-center py-4",children:O?"No personas match your search.":"Loading personas…"})]})]})]})]},"profile"),o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:o0,children:"Soma Drives"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Enable Proactive Signals"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Soma is TITAN's homeostatic signal layer. It can propose useful work when configured signals cross thresholds; you approve sensitive actions before they run."}),o.jsx("div",{className:"grid grid-cols-3 gap-2 mb-5",children:[{name:"Purpose",desc:"Wants to be useful",icon:so},{name:"Curiosity",desc:"Wants to learn",icon:op},{name:"Hunger",desc:"Wants data",icon:rp},{name:"Safety",desc:"Wants stability",icon:mx},{name:"Social",desc:"Wants to talk",icon:cp},{name:"Rest",desc:"Wants downtime",icon:o0}].map(C=>o.jsxs("div",{className:"p-3 rounded-xl border border-border bg-bg-secondary text-center",children:[o.jsx(C.icon,{className:"w-4 h-4 text-accent mx-auto mb-1.5"}),o.jsx("p",{className:"text-[11px] font-semibold text-white",children:C.name}),o.jsx("p",{className:"text-[10px] text-text-muted",children:C.desc})]},C.name))}),o.jsxs("button",{onClick:()=>R(!Ne),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${Ne?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:"Enable Soma drives"}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:Ne?"TITAN can propose work when internal signals change.":"TITAN waits for your prompts only. Purely reactive."})]}),o.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${Ne?"bg-accent":"bg-bg-tertiary"}`,children:o.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${Ne?"left-5":"left-0.5"}`})})]})]},"soma"),o.jsxs("div",{className:"flex flex-col items-center text-center",children:[o.jsx("div",{className:"relative mb-8",children:o.jsx(f0,{audioLevel:.15,speaker:es,size:200})}),o.jsx("h2",{className:"text-3xl font-bold mb-2 tracking-widest",style:{background:"linear-gradient(90deg, #818cf8, #c084fc, #818cf8)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"shimmer 3s ease-in-out infinite"},children:"MISSION CONTROL READY"}),o.jsxs("p",{className:"text-text-secondary mb-2 max-w-md",children:[v," is locked and loaded with"," ",o.jsx("span",{className:"text-white font-semibold",children:le&&((ns=Zl.find(C=>C.id===g))==null?void 0:ns.name)||g}),le?o.jsxs(o.Fragment,{children:[" via ",o.jsx("span",{className:"text-white font-semibold",children:"TITAN Cloud"}),"."]}):o.jsxs(o.Fragment,{children:[" via ",o.jsx("span",{className:"text-white font-semibold",children:(Pt==null?void 0:Pt.name)||c}),"."]})]}),o.jsx("p",{className:"text-xs text-text-muted mb-6 max-w-sm",children:"Review settings at any time from Mission Control. Sensitive actions remain behind approval gates."}),o.jsx("div",{className:"grid grid-cols-4 gap-3 text-center max-w-lg w-full mb-8",children:[{label:"Skills",value:re},{label:"Tools",value:S},{label:"Providers",value:K},{label:"Channels",value:se}].map(({label:C,value:me})=>o.jsxs("div",{className:"p-4 rounded-2xl bg-bg-secondary border border-border",children:[o.jsx("p",{className:"text-2xl font-bold text-white",children:me}),o.jsx("p",{className:"text-[10px] text-text-muted mt-1 uppercase tracking-wider",children:C})]},C))}),Ne&&o.jsxs("p",{className:"text-xs text-accent-hover mb-4 flex items-center gap-2",children:[o.jsx(vb,{size:12})," Soma is online — ",v," can propose work from configured signals."]}),o.jsx("label",{className:`w-full max-w-lg p-4 mb-5 rounded-2xl border cursor-pointer transition-colors text-left ${Z?"border-accent/50 bg-accent/5":"border-border hover:border-accent/40 bg-bg-secondary/50"}`,children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("input",{type:"checkbox",checked:Z,onChange:C=>J(C.target.checked),className:"mt-1 w-4 h-4 accent-accent"}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"text-sm font-semibold text-white mb-1",children:"Help improve TITAN with anonymous stats"}),o.jsxs("div",{className:"text-xs text-text-secondary leading-relaxed",children:["OS, Node version, CPU/GPU model, RAM size, TITAN version."," ",o.jsx("span",{className:"text-text-muted",children:"Never: prompts, files, credentials, IP, or conversations."})," ",o.jsx("a",{href:"https://github.com/Djtony707/TITAN/blob/main/PRIVACY.md",target:"_blank",rel:"noreferrer",className:"text-accent hover:underline",onClick:C=>C.stopPropagation(),children:"Privacy policy →"})]})]})]})}),ne&&o.jsx("div",{className:"mb-4 p-3 rounded-2xl border border-error/50 bg-error/10 text-error text-sm w-full max-w-sm",children:ne}),o.jsx("style",{children:`
|
|
282
|
+
*/const Mx=[["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"}]],fp=ve("zap",Mx),dp=p.createContext({toast:()=>{}});function k4(){return p.useContext(dp)}const hp={success:"var(--theme-leather-stitch)",error:"var(--theme-accent)",warning:"var(--theme-metal-bright)",info:"var(--theme-metal)"};function zx({type:l}){const r={size:16,style:{color:hp[l]}};switch(l){case"success":return o.jsx(vo,{...r});case"error":return o.jsx(Db,{...r});case"warning":return o.jsx(Mb,{...r});case"info":return o.jsx(Pb,{...r})}}function Rx({children:l}){const[s,r]=p.useState([]),c=p.useCallback((m,y)=>{const g=`toast-${Date.now()}-${Math.random().toString(36).slice(2)}`;r(b=>[...b,{id:g,type:m,message:y}]),setTimeout(()=>{r(b=>b.filter(v=>v.id!==g))},4e3)},[]),d=p.useCallback(m=>{r(y=>y.filter(g=>g.id!==m))},[]);return o.jsxs(dp.Provider,{value:{toast:c},children:[l,o.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 pointer-events-none",style:{fontFamily:"var(--theme-font-display)"},children:s.map(m=>o.jsxs("div",{role:"status",className:"titan-toast-surface pointer-events-auto flex items-center gap-2.5 px-4 py-3",style:{borderLeft:`3px solid ${hp[m.type]}`},children:[o.jsx(zx,{type:m.type}),o.jsx("span",{className:"text-sm",style:{color:"var(--theme-ink)"},children:m.message}),o.jsx("button",{onClick:()=>d(m.id),className:"titan-close-btn ml-2","aria-label":"Dismiss",children:o.jsx(ko,{size:14})})]},m.id))})]})}function Dx(){const{login:l}=sp(),[s,r]=p.useState(""),[c,d]=p.useState(""),[m,y]=p.useState(!1),[g,b]=p.useState(!1),[v,A]=p.useState(!1),T=p.useCallback(async q=>{if(q.preventDefault(),!!s.trim()){d(""),y(!0);try{await l(s)}catch{d("Incorrect access token. Please try again.")}finally{y(!1)}}},[s,l]),z=s.trim().length>0&&!m;return o.jsxs("div",{className:"relative flex items-center justify-center min-h-screen overflow-hidden px-6",style:{background:"linear-gradient(135deg, var(--theme-bg-base) 0%, var(--theme-bg-grain) 55%, var(--theme-leather-edge) 100%)",fontFamily:"var(--theme-font-display)"},children:[o.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:"radial-gradient(ellipse at center, transparent 40%, var(--theme-bg-vignette) 100%)"}}),o.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[420px] h-[420px] rounded-full pointer-events-none",style:{background:"radial-gradient(circle, var(--theme-accent) 0%, transparent 65%)",opacity:.2,filter:"blur(60px)"}}),o.jsxs("div",{className:"relative z-10 w-[360px] max-w-full",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl mb-5",style:{background:"linear-gradient(135deg, var(--theme-metal) 0%, var(--theme-metal-dark) 100%)",border:"1px solid var(--theme-metal-dark)",boxShadow:"0 0 40px color-mix(in srgb, var(--theme-accent) 30%, transparent), inset 0 1px 0 var(--theme-metal-bright)"},children:o.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",className:"w-9 h-9",children:[o.jsx("path",{d:"M16 3L4 9.5v13L16 29l12-6.5v-13L16 3z",stroke:"var(--theme-bolt)",strokeWidth:1.5,strokeLinejoin:"round"}),o.jsx("path",{d:"M16 3v26M4 9.5L28 22.5M28 9.5L4 22.5",stroke:"var(--theme-bolt)",strokeWidth:1,opacity:.4}),o.jsx("circle",{cx:16,cy:16,r:4,fill:"var(--theme-bolt)",opacity:.85})]})}),o.jsx("h1",{className:"text-5xl font-bold",style:{color:"var(--theme-paper-fg)",fontFamily:"var(--theme-font-display)",letterSpacing:"0.05em",textShadow:"0 0 24px color-mix(in srgb, var(--theme-accent) 45%, transparent), 0 2px 12px var(--theme-shadow)"},children:"TITAN"}),o.jsx("p",{className:"text-sm mt-3 italic",style:{color:"var(--theme-ink-soft)",letterSpacing:"0.04em"},children:"Mission Control awaits"})]}),o.jsx("div",{className:"rounded-2xl",style:{padding:"40px",background:"linear-gradient(180deg, var(--theme-leather) 0%, var(--theme-leather-edge) 100%)",border:"1px solid var(--theme-metal-dark)",boxShadow:"0 18px 60px var(--theme-shadow), inset 0 1px 0 color-mix(in srgb, var(--theme-metal-bright) 18%, transparent), inset 0 -1px 0 var(--theme-leather-edge)"},children:o.jsxs("form",{onSubmit:T,className:"space-y-5",children:[o.jsxs("div",{children:[o.jsx("label",{htmlFor:"password",className:"block text-xs font-medium mb-2 uppercase",style:{color:"var(--theme-ink-soft)",letterSpacing:"0.12em"},children:"Access Token"}),o.jsxs("div",{className:"relative",children:[o.jsx("input",{id:"password",type:g?"text":"password",autoFocus:!0,autoComplete:"current-password",value:s,onChange:q=>{r(q.target.value),c&&d("")},onFocus:()=>A(!0),onBlur:()=>A(!1),placeholder:"Enter your TITAN access token",className:"w-full rounded-xl focus:outline-none transition-all",style:{padding:"12px 44px 12px 14px",fontFamily:"var(--theme-font-mono)",fontSize:"14px",letterSpacing:g?"0.02em":"0.18em",color:"var(--theme-paper-fg)",background:"color-mix(in srgb, var(--theme-paper) 10%, transparent)",border:c?"1px solid var(--theme-accent)":v?"1px solid var(--theme-metal-bright)":"1px solid var(--theme-metal-dark)",boxShadow:c?"0 0 0 4px color-mix(in srgb, var(--theme-accent) 18%, transparent), inset 0 2px 4px var(--theme-shadow)":v?"0 0 0 4px color-mix(in srgb, var(--theme-metal-bright) 20%, transparent), inset 0 2px 4px var(--theme-shadow)":"inset 0 2px 4px var(--theme-shadow)"}}),o.jsx("button",{type:"button",tabIndex:-1,onClick:()=>b(q=>!q),"aria-label":g?"Hide token":"Show token",className:"absolute top-1/2 -translate-y-1/2 right-3 inline-flex items-center justify-center w-7 h-7 rounded-md transition-colors",style:{color:"var(--theme-ink-soft)",background:"transparent",border:"none",cursor:"pointer"},onMouseEnter:q=>{q.currentTarget.style.color="var(--theme-paper)"},onMouseLeave:q=>{q.currentTarget.style.color="var(--theme-ink-soft)"},children:g?o.jsx(qb,{size:16}):o.jsx(Gb,{size:16})})]}),c&&o.jsx("p",{className:"mt-2 text-xs",style:{color:"var(--theme-accent)",fontFamily:"var(--theme-font-mono)",letterSpacing:"0.02em"},role:"alert",children:c})]}),o.jsx("button",{type:"submit",disabled:!z,className:"w-full rounded-xl transition-all",style:{padding:"12px 16px",fontFamily:"var(--theme-font-display)",fontWeight:600,fontSize:"15px",letterSpacing:"0.04em",color:"var(--theme-bolt)",background:z?"linear-gradient(180deg, var(--theme-metal-bright) 0%, var(--theme-metal) 55%, var(--theme-metal-dark) 100%)":"linear-gradient(180deg, color-mix(in srgb, var(--theme-metal) 40%, transparent), color-mix(in srgb, var(--theme-metal-dark) 40%, transparent))",border:"1px solid var(--theme-metal-dark)",boxShadow:z?"0 4px 14px var(--theme-shadow), inset 0 1px 0 color-mix(in srgb, var(--theme-metal-bright) 60%, transparent)":"none",opacity:z?1:.55,cursor:z?"pointer":"not-allowed"},onMouseEnter:q=>{z&&(q.currentTarget.style.background="linear-gradient(180deg, var(--theme-metal-bright) 0%, var(--theme-metal-bright) 50%, var(--theme-metal) 100%)",q.currentTarget.style.boxShadow="0 8px 22px color-mix(in srgb, var(--theme-accent) 35%, transparent), 0 4px 14px var(--theme-shadow), inset 0 1px 0 var(--theme-paper)",q.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:q=>{z&&(q.currentTarget.style.background="linear-gradient(180deg, var(--theme-metal-bright) 0%, var(--theme-metal) 55%, var(--theme-metal-dark) 100%)",q.currentTarget.style.boxShadow="0 4px 14px var(--theme-shadow), inset 0 1px 0 color-mix(in srgb, var(--theme-metal-bright) 60%, transparent)",q.currentTarget.style.transform="translateY(0)")},children:m?o.jsxs("span",{className:"inline-flex items-center justify-center gap-2",children:[o.jsx(tx,{size:16,className:"animate-spin"}),"Signing in"]}):"Sign In"})]})}),o.jsx("p",{className:"text-center mt-8 text-xs",style:{color:"var(--theme-ink-soft)",fontFamily:"var(--theme-font-mono)",opacity:.5,letterSpacing:"0.04em"},children:"Built by Tony Elliott · github.com/Djtony707"})]})]})}const Tu={idle:{primary:[100,100,140],secondary:[80,80,120],glow:"rgba(100, 100, 200, 0.15)"},user:{primary:[34,211,238],secondary:[6,182,212],glow:"rgba(34, 211, 238, 0.25)"},assistant:{primary:[139,92,246],secondary:[124,58,237],glow:"rgba(139, 92, 246, 0.3)"},thinking:{primary:[245,158,11],secondary:[217,119,6],glow:"rgba(245, 158, 11, 0.25)"}};function f0({audioLevel:l,speaker:s,size:r=240}){const c=p.useRef(null),d=p.useRef(null),m=p.useRef(0),y=p.useRef(0),g=p.useRef(0),b=p.useRef(Tu.idle.primary),v=p.useRef([...Tu.idle.primary]),A=p.useRef(l),T=p.useRef(s),z=p.useRef(r);return A.current=l,T.current=s,z.current=r,p.useEffect(()=>{const q=new Image;q.src="/titan-logo.png",q.onload=()=>{d.current=q}},[]),p.useEffect(()=>{function q(){const X=c.current;if(!X){m.current=requestAnimationFrame(q);return}const O=X.getContext("2d");if(!O){m.current=requestAnimationFrame(q);return}const Y=z.current,G=A.current,W=T.current,K=window.devicePixelRatio||1,V=Y*K,ne=Y*K;(X.width!==V||X.height!==ne)&&(X.width=V,X.height=ne),O.clearRect(0,0,V,ne),y.current+=.016;const Q=y.current;g.current+=(G-g.current)*.12;const F=g.current,he=Tu[W];b.current=he.primary;for(let J=0;J<3;J++)v.current[J]+=(b.current[J]-v.current[J])*.04;const[le,Be,ke]=v.current.map(Math.round),Ge=V/2,nt=ne/2,we=V*.35;for(let J=3;J>=0;J--){const re=1+J*.12+F*J*.08,ge=.06-J*.012+F*.03;O.save(),O.translate(Ge,nt),O.beginPath();const S=120;for(let $=0;$<=S;$++){const P=$/S*Math.PI*2,se=Math.sin(P*3+Q*1.2+J)*.08,oe=Math.sin(P*5-Q*.8+J*2)*.05,ee=Math.sin(P*7+Q*2.1)*.03*F,et=Math.sin(P*2+Q*3)*F*.12,Ue=we*re*(1+se+oe+ee+et),la=Math.cos(P)*Ue,Ft=Math.sin(P)*Ue;$===0?O.moveTo(la,Ft):O.lineTo(la,Ft)}O.closePath();const D=O.createRadialGradient(0,0,0,0,0,we*re*1.2);D.addColorStop(0,`rgba(${le}, ${Be}, ${ke}, ${ge*2})`),D.addColorStop(.6,`rgba(${le}, ${Be}, ${ke}, ${ge})`),D.addColorStop(1,`rgba(${le}, ${Be}, ${ke}, 0)`),O.fillStyle=D,O.fill(),O.restore()}O.save(),O.translate(Ge,nt),O.beginPath();const Ne=150;for(let J=0;J<=Ne;J++){const re=J/Ne*Math.PI*2,ge=Math.sin(re*3+Q*1.5)*.04,S=Math.sin(re*5-Q*1)*.025,D=Math.sin(re*4+Q*3.5)*F*.06,$=Math.sin(Q*.8)*.02,P=W==="thinking"?Math.sin(Q*2.5)*.06:0,se=we*(1+ge+S+D+$+P),oe=Math.cos(re)*se,ee=Math.sin(re)*se;J===0?O.moveTo(oe,ee):O.lineTo(oe,ee)}O.closePath();const R=O.createRadialGradient(-we*.2,-we*.2,we*.1,0,0,we*1.1);R.addColorStop(0,`rgba(${Math.min(255,le+80)}, ${Math.min(255,Be+80)}, ${Math.min(255,ke+80)}, 0.95)`),R.addColorStop(.5,`rgba(${le}, ${Be}, ${ke}, 0.85)`),R.addColorStop(1,`rgba(${Math.max(0,le-40)}, ${Math.max(0,Be-40)}, ${Math.max(0,ke-40)}, 0.8)`),O.fillStyle=R,O.fill();const Z=O.createRadialGradient(-we*.25,-we*.3,0,-we*.1,-we*.15,we*.5);if(Z.addColorStop(0,"rgba(255, 255, 255, 0.35)"),Z.addColorStop(.5,"rgba(255, 255, 255, 0.08)"),Z.addColorStop(1,"rgba(255, 255, 255, 0)"),O.fillStyle=Z,O.fill(),O.restore(),d.current){const J=we*.8,re=Ge-J/2,ge=nt-J/2,S=Math.sin(Q*1.2)*3*K,D=Math.cos(Q*.9)*2*K;O.save(),O.globalAlpha=.9+F*.1,O.shadowColor=`rgba(${le}, ${Be}, ${ke}, ${.4+F*.3})`,O.shadowBlur=20+F*30,O.beginPath(),O.arc(Ge+D,nt+S,J/2+2,0,Math.PI*2),O.closePath(),O.clip(),O.drawImage(d.current,re+D,ge+S,J,J),O.restore()}if(F>.1){const J=Math.floor(F*12);for(let re=0;re<J;re++){const ge=re/J*Math.PI*2+Q*.3,S=we*(1.2+Math.sin(Q*2+re*1.7)*.3+F*.2),D=Ge+Math.cos(ge)*S,$=nt+Math.sin(ge)*S,P=(1.5+Math.sin(Q*3+re)*1)*K,se=.3+Math.sin(Q*2+re*.5)*.2;O.beginPath(),O.arc(D,$,P,0,Math.PI*2),O.fillStyle=`rgba(${le}, ${Be}, ${ke}, ${se})`,O.fill()}}m.current=requestAnimationFrame(q)}return m.current=requestAnimationFrame(q),()=>cancelAnimationFrame(m.current)},[]),o.jsx("canvas",{ref:c,style:{width:r,height:r,filter:`drop-shadow(0 0 ${20+l*40}px ${Tu[s].glow})`,transition:"filter 0.3s ease"}})}const d0=[{id:"ollama",name:"Ollama (Local)",desc:"Local models running on your machine",noKey:!0,icon:bo},{id:"anthropic",name:"Anthropic",desc:"Claude models for careful reasoning and coding",icon:Tb},{id:"openai",name:"OpenAI",desc:"GPT models for general work and tool use",icon:fp},{id:"google",name:"Google",desc:"Gemini models for long-context work",icon:Vb},{id:"groq",name:"Groq",desc:"Fast hosted inference for supported open models",icon:rp},{id:"openrouter",name:"OpenRouter",desc:"Many hosted models behind one API key",icon:Nx},{id:"deepseek",name:"DeepSeek",desc:"Cost-effective reasoning and coding models",icon:op},{id:"xai",name:"xAI",desc:"Grok models through the xAI API",icon:cp}],uo={ollama:["ollama/llama3.3:8b","ollama/qwen3:8b","ollama/devstral-small-2","ollama/mistral:7b"],anthropic:["anthropic/claude-sonnet-4-20250514","anthropic/claude-haiku-4-5-20251001","anthropic/claude-opus-4-20250514"],openai:["openai/gpt-4o","openai/gpt-4o-mini","openai/o3-mini"],google:["google/gemini-2.5-pro","google/gemini-2.0-flash"],groq:["groq/llama-3.3-70b-versatile","groq/mixtral-8x7b-32768"],openrouter:["openrouter/anthropic/claude-sonnet-4-20250514","openrouter/openai/gpt-4o"],deepseek:["deepseek/deepseek-chat","deepseek/deepseek-reasoner"],xai:["xai/grok-3","xai/grok-3-mini"]},kx=["ollama/qwen3:8b","ollama/llama3.3:8b","ollama/mistral:7b"],Yi={free:[{id:"openrouter/nvidia/nemotron-3-super-120b-a12b:free",name:"Nemotron 3 Super",desc:"Free 120B MoE model for broad tasks",badge:"free"},{id:"openrouter/nvidia/nemotron-3-nano-30b-a3b:free",name:"Nemotron 3 Nano",desc:"Free 30B model for lighter work",badge:"free"},{id:"openrouter/z-ai/glm-4.5-air:free",name:"GLM-4.5 Air",desc:"Free general-purpose model",badge:"free"}],paid:[{id:"openrouter/qwen/qwen3.5-397b-a17b",name:"Qwen 3.5 397B",desc:"Flagship MoE model for high-quality work",badge:"flagship"},{id:"openrouter/openai/gpt-5.4",name:"GPT-5.4",desc:"OpenAI premium model for demanding tasks",badge:"premium"},{id:"openrouter/anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",desc:"Anthropic premium model for reasoning and coding",badge:"premium"},{id:"openrouter/google/gemini-3.1-pro",name:"Gemini 3.1 Pro",desc:"Google premium model for long-context work",badge:"premium"},{id:"openrouter/moonshotai/kimi-k2.5",name:"Kimi K2.5",desc:"Reasoning model for complex analysis",badge:"midrange"},{id:"openrouter/deepseek/deepseek-v3.2",name:"DeepSeek V3.2",desc:"Cost-effective model for reasoning and coding",badge:"midrange"},{id:"openrouter/z-ai/glm-4.7-flash",name:"GLM-4.7 Flash",desc:"Fast model for agent workflows",badge:"agent"}]},h0=["TITAN keeps mission work visible with plans, logs, files, and approvals.","Mission Desk turns broad requests into coordinated specialist work.","Local installs keep config and workspace state under your TITAN_HOME.","Approval gates keep sensitive actions under human control.","You can route work across local and cloud models from Settings.","Mission starters can save preferred cadences for follow-up runs."];function Ml({children:l,icon:s}){return o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s&&o.jsx(s,{className:"w-5 h-5 text-accent"}),o.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-accent",children:l})]})}function Ux({onComplete:l}){var ns;const[s,r]=p.useState(0),[c,d]=p.useState(""),[m,y]=p.useState(""),[g,b]=p.useState(""),[v,A]=p.useState("TITAN"),[T,z]=p.useState("default"),[q,X]=p.useState([]),[O,Y]=p.useState(""),[G,W]=p.useState(!1),[K,V]=p.useState(!1),[ne,Q]=p.useState(""),[F,he]=p.useState(0),[le,Be]=p.useState(!1),[ke,Ge]=p.useState(""),[nt,we]=p.useState("6.1"),[Ne,R]=p.useState(!0),[Z,J]=p.useState(!1),[re,ge]=p.useState("—"),[S,D]=p.useState("—"),[$,P]=p.useState("—"),[se,oe]=p.useState("—"),[ee,et]=p.useState(null),[Ue,la]=p.useState([]),[Ft,Qn]=p.useState(!1),[Wi,ma]=p.useState(!1),[ia,Xl]=p.useState(!0),Pt=d0.find(C=>C.id===c),Vn=Pt&&!("noKey"in Pt&&Pt.noKey),Xn=(()=>{const C=uo[c]||[];if(!ee||le)return C;const me=ee.gpuVendor!=="none"&&ee.gpuVramMB>=4096,Ye=ee.ramTotalMB>=16384;return!me&&!Ye&&c==="ollama"?C.filter(tt=>kx.includes(tt)):C})(),Zl=[...Yi.free,...Yi.paid];p.useEffect(()=>{yt("/api/cloud/config").then(C=>C.json()).then(C=>{var me;C.cloud&&(Be(!0),Ge(C.userEmail||""),d("openrouter"),b(((me=Yi.free[0])==null?void 0:me.id)||""))}).catch(()=>{})},[]),p.useEffect(()=>{yt("/api/onboarding/status").then(C=>C.json()).then(C=>{C.version&&we(String(C.version))}).catch(()=>{})},[]),p.useEffect(()=>{yt("/api/skills").then(C=>{if(!C.ok)throw new Error("Failed to load skills");return C.json()}).then(C=>{const me=Array.isArray(C==null?void 0:C.skills)?C.skills:Array.isArray(C)?C:null;me&&(ge(String(me.length)),D(String(me.reduce((Ye,tt)=>Ye+(Array.isArray(tt.tools)?tt.tools.length:0),0))))}).catch(()=>{ge("—"),D("—")})},[]),p.useEffect(()=>{yt("/api/providers").then(C=>{if(!C.ok)throw new Error("Failed to load providers");return C.json()}).then(C=>{const me=Array.isArray(C==null?void 0:C.providers)?C.providers:C&&typeof C=="object"&&!Array.isArray(C)?Object.keys(C):null;me&&P(String(me.length))}).catch(()=>P("—"))},[]),p.useEffect(()=>{yt("/api/channels").then(C=>{if(!C.ok)throw new Error("Failed to load channels");return C.json()}).then(C=>{const me=Array.isArray(C)?C:Array.isArray(C==null?void 0:C.channels)?C.channels:null;me&&oe(String(me.length))}).catch(()=>oe("—"))},[]),p.useEffect(()=>{yt("/api/personas").then(C=>C.json()).then(C=>{C.personas&&X(C.personas),C.active&&z(C.active)}).catch(()=>{})},[]),p.useEffect(()=>{Qn(!0),yt("/api/hardware/detect").then(C=>C.json()).then(C=>{C.profile&&et(C.profile),C.recommendations&&la(C.recommendations)}).catch(()=>{}).finally(()=>Qn(!1))},[]),p.useEffect(()=>{const C=setInterval(()=>{he(me=>(me+1)%h0.length)},5e3);return()=>clearInterval(C)},[]),p.useEffect(()=>{if(ee&&!c&&!le){const C=ee.gpuVendor!=="none"&&ee.gpuVramMB>=4096,me=ee.ramTotalMB>=8192;(C||me)&&(d("ollama"),b(uo.ollama[0]??""))}},[ee,c,le]);const $l=()=>{if(le)switch(s){case 0:return!0;case 1:return!0;case 2:return!!g;case 3:return!!v;case 4:return!0;default:return!0}switch(s){case 0:return!0;case 1:return!0;case 2:return!!c&&(!Vn||m.length>5);case 3:return!!g;case 4:return!!v;case 5:return!0;default:return!0}},Uu=async()=>{W(!0),Q("");try{if(ia&&ee&&!Wi)try{await yt("/api/hardware/apply",{method:"POST"}),ma(!0)}catch{}T!=="default"&&await yt("/api/persona/switch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:T})});const C=await yt("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:le?"openrouter":c,apiKey:le?void 0:Vn?m:void 0,model:g,agentName:v,persona:T})});if(!C.ok){const me=await C.json();throw new Error(me.error||"Setup failed")}try{await yt("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organism:{enabled:Ne}})})}catch{}try{await yt("/api/telemetry/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:Z,crashReports:Z})})}catch{}Do("onboarding_completed",{provider:le?"openrouter":c,model:g,cloudMode:le}),V(!0),setTimeout(l,1800)}catch(C){Q(C instanceof Error?C.message:"Something went wrong"),W(!1)}},Ii=q.filter(C=>!O||C.name.toLowerCase().includes(O.toLowerCase())||C.description.toLowerCase().includes(O.toLowerCase())||C.division.toLowerCase().includes(O.toLowerCase())),ht=le?5:6,Lu=s===0||s===ht?200:0,es=s===ht?"assistant":"idle",Zn=C=>C>=1024?`${(C/1024).toFixed(1)} GB`:`${C} MB`,yn=[o.jsxs("div",{className:"flex flex-col items-center text-center",children:[o.jsx("div",{className:"relative mb-8",style:{transition:"all 0.6s cubic-bezier(0.22, 1, 0.36, 1)"},children:o.jsx(f0,{audioLevel:0,speaker:"idle",size:Lu})}),o.jsx("h1",{className:"text-5xl font-bold text-white mb-3 tracking-tight",children:"Welcome Aboard"}),o.jsxs("p",{className:"text-xl text-text-secondary mb-2 font-light",children:["TITAN ",o.jsxs("span",{className:"text-accent font-medium",children:["v",nt]})]}),o.jsx("p",{className:"text-sm text-text-muted max-w-md mb-8 leading-relaxed",children:"Configure your local runtime, choose a model, and open Mission Control."}),o.jsxs("div",{className:"px-5 py-3 rounded-2xl border border-accent/20 bg-accent/5 mb-8 max-w-md",children:[o.jsxs("p",{className:"text-xs text-accent-hover font-medium mb-1 flex items-center gap-1.5",children:[o.jsx(c0,{size:12})," Did you know?"]}),o.jsx("p",{className:"text-xs text-text-secondary leading-relaxed transition-opacity duration-500",children:h0[F]},F)]}),o.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["Verified Missions","Approvals","Artifacts","Recurring Work","Voice Mode","Local First"].map(C=>o.jsx("span",{className:"px-3 py-1.5 text-[11px] rounded-full border border-border text-text-secondary bg-bg-secondary",children:C},C))})]},"welcome"),o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:rx,children:"Systems Check"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"System Diagnostic"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"TITAN is checking local resources so it can choose safe defaults for this machine."}),Ft&&o.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-3",children:[o.jsx("div",{className:"w-10 h-10 border-2 border-accent border-t-transparent rounded-full animate-spin"}),o.jsx("p",{className:"text-xs text-text-muted animate-pulse",children:"Scanning subsystems…"})]}),!Ft&&!ee&&o.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 text-sm text-text-secondary",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(xo,{className:"w-4 h-4 text-warning"}),o.jsx("span",{className:"font-medium text-warning",children:"Sensors offline"})]}),"Couldn't read hardware details. TITAN will use safe defaults and you can tweak later in Settings."]}),!Ft&&ee&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[{icon:bo,label:"CPU",value:`${ee.cpuCores} cores`,sub:ee.cpuModel},{icon:nx,label:"RAM",value:Zn(ee.ramTotalMB),sub:`${Zn(ee.ramFreeMB)} free`},{icon:fp,label:"GPU",value:ee.gpuVendor==="none"?"None":ee.gpuVendor.toUpperCase(),sub:ee.gpuVendor==="none"?"Cloud models recommended":`${ee.gpuName} · ${Zn(ee.gpuVramMB)}`},{icon:Zb,label:"Storage",value:`${ee.diskFreeGB} GB free`,sub:`of ${ee.diskTotalGB} GB total`}].map(({icon:C,label:me,value:Ye,sub:tt})=>o.jsxs("div",{className:"p-4 rounded-2xl border border-border bg-bg-secondary hover:border-border-light transition-colors",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(C,{className:"w-4 h-4 text-accent"}),o.jsx("span",{className:"text-[10px] text-text-muted uppercase tracking-widest",children:me})]}),o.jsx("p",{className:"text-sm font-semibold text-white",children:Ye}),o.jsx("p",{className:"text-[11px] text-text-muted mt-0.5 truncate",title:tt,children:tt})]},me))}),Ue.length>0&&o.jsxs("div",{className:"mb-5",children:[o.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Recommendations"}),o.jsx("div",{className:"space-y-1.5",children:Ue.slice(0,6).map((C,me)=>{const[Ye,tt]=C.split(": ");return tt?o.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-xl bg-bg-secondary border border-border text-xs",children:[o.jsx("span",{className:"text-text-secondary",children:Ye.replace(/\./g," › ")}),o.jsx("span",{className:"text-white font-mono",children:tt})]},me):null})})]}),ee.gpuVendor==="none"&&ee.ramTotalMB<16384&&o.jsxs("div",{className:"p-4 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[o.jsxs("p",{className:"text-xs text-[#fbbf24] font-semibold flex items-center gap-2",children:[o.jsx(xo,{className:"w-3.5 h-3.5"})," No dedicated GPU detected"]}),o.jsx("p",{className:"text-xs text-text-muted mt-1.5 leading-relaxed",children:"Local models will run on CPU — slower, but perfectly fine for small 7–8B models. For speed, grab an API key from Anthropic, OpenAI, or Groq."})]}),o.jsxs("button",{onClick:()=>Xl(!ia),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${ia?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:"Apply recommended settings"}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:ia?"TITAN will auto-tune for your hardware.":"You can change these in Settings later."})]}),o.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${ia?"bg-accent":"bg-bg-tertiary"}`,children:o.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${ia?"left-5":"left-0.5"}`})})]})]})]},"hardware"),le?o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:Ub,children:"TITAN Cloud"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick Your Brain"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Included with your subscription. Upgrade or downgrade anytime."}),ke&&o.jsx("div",{className:"mb-4 p-3 rounded-xl border border-accent/30 bg-accent/5",children:o.jsxs("p",{className:"text-xs text-text-secondary",children:["Signed in as ",o.jsx("span",{className:"text-white font-semibold",children:ke})]})}),o.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Free Tier"}),o.jsx("div",{className:"space-y-2 mb-5",children:Yi.free.map(C=>o.jsx("button",{onClick:()=>b(C.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:C.desc})]}),o.jsx("span",{className:"px-2.5 py-0.5 text-[10px] font-bold rounded-full bg-success/20 text-[#4ade80] uppercase",children:"free"})]})},C.id))}),o.jsxs("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:["Premium ",o.jsx("span",{className:"normal-case font-normal opacity-60",children:"— uses credits"})]}),o.jsx("div",{className:"space-y-2",children:Yi.paid.map(C=>o.jsx("button",{onClick:()=>b(C.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:C.desc})]}),o.jsx("span",{className:`px-2.5 py-0.5 text-[10px] font-bold rounded-full uppercase ${C.badge==="premium"?"bg-warning/20 text-[#fbbf24]":C.badge==="flagship"?"bg-accent/20 text-accent-hover":"bg-border/50 text-text-secondary"}`,children:C.badge})]})},C.id))})]},"cloud-model"):o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:Ib,children:"AI Provider"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Choose Your Engine"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Where should TITAN's brain live? Your machine, or someone else's?"}),o.jsx("div",{className:"grid grid-cols-2 gap-3 mb-6",children:d0.map(C=>{const me=C.icon;return o.jsxs("button",{onClick:()=>{var Ye;d(C.id),b(((Ye=uo[C.id])==null?void 0:Ye[0])??"")},className:`text-left p-4 rounded-2xl border transition-all ${c===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(me,{className:"w-4 h-4 text-accent"}),o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name})]}),o.jsx("p",{className:"text-xs text-text-muted leading-relaxed",children:C.desc})]},C.id)})}),Vn&&o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{className:"text-sm text-text-secondary",children:"API Key"}),o.jsx("input",{type:"password",value:m,onChange:C=>y(C.target.value),placeholder:`Paste your ${Pt==null?void 0:Pt.name} API key`,className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/50 transition-colors"}),o.jsx("p",{className:"text-xs text-text-muted",children:"Stored locally in ~/.titan/titan.json. Never leaves this machine except to talk to your provider."})]}),c==="ollama"&&o.jsxs("div",{className:"mt-4 p-4 rounded-2xl border border-success/30 bg-success/5",children:[o.jsxs("p",{className:"text-sm text-success font-semibold flex items-center gap-2",children:[o.jsx(vo,{className:"w-4 h-4"})," No API key needed"]}),o.jsx("p",{className:"text-xs text-text-muted mt-1 leading-relaxed",children:"Make sure Ollama is running. TITAN will auto-detect your models. If not, grab it from ollama.com."})]}),ee&&ee.gpuVendor==="none"&&ee.ramTotalMB<16384&&c==="ollama"&&o.jsxs("div",{className:"mt-3 p-3 rounded-2xl border border-warning/30 bg-warning/5",children:[o.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold",children:"CPU-only detected"}),o.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Large local models will be sluggish. Consider a cloud provider for daily driver work, or keep Ollama for offline tasks."})]})]},"provider"),...le?[]:[o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:bo,children:"Model"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick a Model"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Choose the default model for missions. You can change it later in Settings."}),Xn.length===0&&c==="ollama"&&o.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[o.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold mb-1",children:"No suggested local model available"}),o.jsxs("p",{className:"text-xs text-text-muted leading-relaxed",children:["Try entering a smaller model manually, for example ",o.jsx("code",{className:"text-white",children:"ollama/tinyllama:1b"}),"."]})]}),o.jsx("div",{className:"space-y-2 mb-5",children:Xn.map(C=>o.jsx("button",{onClick:()=>b(C),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===C?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:`w-2 h-2 rounded-full ${g===C?"bg-accent":"bg-text-muted"}`}),o.jsx("p",{className:"font-mono text-sm text-white",children:C})]})},C))}),o.jsxs("div",{children:[o.jsx("label",{className:"text-sm text-text-muted",children:"Or enter any model ID:"}),o.jsx("input",{type:"text",value:g,onChange:C=>b(C.target.value),placeholder:`${c}/any-model-you-want`,className:"w-full mt-2 px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent font-mono text-sm"}),o.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"TITAN works with local and hosted models that expose a compatible Ollama or OpenAI-style API."})]})]},"model")],o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:Ex,children:"Identity"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Who Is TITAN?"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Give your agent a name and a vibe. This is how TITAN introduces itself to the world."}),o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-sm text-text-secondary mb-2 block",children:"Agent Name"}),o.jsx("input",{type:"text",value:v,onChange:C=>A(C.target.value),placeholder:"TITAN",className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent text-lg font-semibold"}),o.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"This appears in chat, the Command Post, and anywhere TITAN signs its work."})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"text-sm text-text-secondary mb-3 block",children:["Persona ",o.jsx("span",{className:"text-text-muted font-normal",children:"— optional"})]}),o.jsx("input",{type:"text",placeholder:"Search personas...",value:O,onChange:C=>Y(C.target.value),className:"w-full mb-3 px-3 py-2 rounded-xl border border-border bg-bg-secondary text-sm text-text placeholder:text-text-muted focus:outline-none focus:border-accent"}),o.jsxs("div",{className:"grid grid-cols-2 gap-3 max-h-[280px] overflow-y-auto pr-1",children:[Ii.map(C=>o.jsxs("button",{onClick:()=>z(C.id),className:`text-left p-4 rounded-2xl border transition-all ${T===C.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:C.name}),o.jsx("p",{className:"text-xs text-text-muted mt-1 line-clamp-2",children:C.description}),o.jsx("p",{className:"text-[10px] text-text-muted mt-1 capitalize",children:C.division})]},C.id)),Ii.length===0&&o.jsx("p",{className:"col-span-2 text-sm text-text-muted text-center py-4",children:O?"No personas match your search.":"Loading personas…"})]})]})]})]},"profile"),o.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[o.jsx(Ml,{icon:o0,children:"Soma Drives"}),o.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Enable Proactive Signals"}),o.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Soma is TITAN's homeostatic signal layer. It can propose useful work when configured signals cross thresholds; you approve sensitive actions before they run."}),o.jsx("div",{className:"grid grid-cols-3 gap-2 mb-5",children:[{name:"Purpose",desc:"Wants to be useful",icon:so},{name:"Curiosity",desc:"Wants to learn",icon:op},{name:"Hunger",desc:"Wants data",icon:rp},{name:"Safety",desc:"Wants stability",icon:px},{name:"Social",desc:"Wants to talk",icon:cp},{name:"Rest",desc:"Wants downtime",icon:o0}].map(C=>o.jsxs("div",{className:"p-3 rounded-xl border border-border bg-bg-secondary text-center",children:[o.jsx(C.icon,{className:"w-4 h-4 text-accent mx-auto mb-1.5"}),o.jsx("p",{className:"text-[11px] font-semibold text-white",children:C.name}),o.jsx("p",{className:"text-[10px] text-text-muted",children:C.desc})]},C.name))}),o.jsxs("button",{onClick:()=>R(!Ne),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${Ne?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[o.jsxs("div",{className:"text-left",children:[o.jsx("p",{className:"font-semibold text-white text-sm",children:"Enable Soma drives"}),o.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:Ne?"TITAN can propose work when internal signals change.":"TITAN waits for your prompts only. Purely reactive."})]}),o.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${Ne?"bg-accent":"bg-bg-tertiary"}`,children:o.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${Ne?"left-5":"left-0.5"}`})})]})]},"soma"),o.jsxs("div",{className:"flex flex-col items-center text-center",children:[o.jsx("div",{className:"relative mb-8",children:o.jsx(f0,{audioLevel:.15,speaker:es,size:200})}),o.jsx("h2",{className:"text-3xl font-bold mb-2 tracking-widest",style:{background:"linear-gradient(90deg, #818cf8, #c084fc, #818cf8)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"shimmer 3s ease-in-out infinite"},children:"MISSION CONTROL READY"}),o.jsxs("p",{className:"text-text-secondary mb-2 max-w-md",children:[v," is locked and loaded with"," ",o.jsx("span",{className:"text-white font-semibold",children:le&&((ns=Zl.find(C=>C.id===g))==null?void 0:ns.name)||g}),le?o.jsxs(o.Fragment,{children:[" via ",o.jsx("span",{className:"text-white font-semibold",children:"TITAN Cloud"}),"."]}):o.jsxs(o.Fragment,{children:[" via ",o.jsx("span",{className:"text-white font-semibold",children:(Pt==null?void 0:Pt.name)||c}),"."]})]}),o.jsx("p",{className:"text-xs text-text-muted mb-6 max-w-sm",children:"Review settings at any time from Mission Control. Sensitive actions remain behind approval gates."}),o.jsx("div",{className:"grid grid-cols-4 gap-3 text-center max-w-lg w-full mb-8",children:[{label:"Skills",value:re},{label:"Tools",value:S},{label:"Providers",value:$},{label:"Channels",value:se}].map(({label:C,value:me})=>o.jsxs("div",{className:"p-4 rounded-2xl bg-bg-secondary border border-border",children:[o.jsx("p",{className:"text-2xl font-bold text-white",children:me}),o.jsx("p",{className:"text-[10px] text-text-muted mt-1 uppercase tracking-wider",children:C})]},C))}),Ne&&o.jsxs("p",{className:"text-xs text-accent-hover mb-4 flex items-center gap-2",children:[o.jsx(bb,{size:12})," Soma is online — ",v," can propose work from configured signals."]}),o.jsx("label",{className:`w-full max-w-lg p-4 mb-5 rounded-2xl border cursor-pointer transition-colors text-left ${Z?"border-accent/50 bg-accent/5":"border-border hover:border-accent/40 bg-bg-secondary/50"}`,children:o.jsxs("div",{className:"flex items-start gap-3",children:[o.jsx("input",{type:"checkbox",checked:Z,onChange:C=>J(C.target.checked),className:"mt-1 w-4 h-4 accent-accent"}),o.jsxs("div",{className:"flex-1",children:[o.jsx("div",{className:"text-sm font-semibold text-white mb-1",children:"Help improve TITAN with anonymous stats"}),o.jsxs("div",{className:"text-xs text-text-secondary leading-relaxed",children:["OS, Node version, CPU/GPU model, RAM size, TITAN version."," ",o.jsx("span",{className:"text-text-muted",children:"Never: prompts, files, credentials, IP, or conversations."})," ",o.jsx("a",{href:"https://github.com/Djtony707/TITAN/blob/main/PRIVACY.md",target:"_blank",rel:"noreferrer",className:"text-accent hover:underline",onClick:C=>C.stopPropagation(),children:"Privacy policy →"})]})]})]})}),ne&&o.jsx("div",{className:"mb-4 p-3 rounded-2xl border border-error/50 bg-error/10 text-error text-sm w-full max-w-sm",children:ne}),o.jsx("style",{children:`
|
|
283
283
|
@keyframes shimmer {
|
|
284
284
|
0%, 100% { background-position: -200% center; }
|
|
285
285
|
50% { background-position: 200% center; }
|
|
286
286
|
}
|
|
287
|
-
`})]},"launch")],ts=le?["Welcome","Hardware","Model","Profile","Soma","Launch"]:["Welcome","Hardware","Provider","Model","Profile","Soma","Launch"],as=s===yn.length-1;return $?o.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",role:"status","aria-live":"polite",children:[o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),o.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-5 text-center",children:[o.jsx("div",{className:"w-20 h-20 rounded-full bg-accent/20 ring-2 ring-accent flex items-center justify-center text-accent text-4xl animate-bounce",children:o.jsx(so,{className:"w-10 h-10"})}),o.jsxs("div",{children:[o.jsxs("div",{className:"text-2xl font-bold text-white",children:[v," is online"]}),o.jsx("div",{className:"text-sm text-text-muted mt-1",children:"Strapping in… opening Mission Control…"})]})]})]}):o.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",children:[o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),o.jsxs("div",{className:"relative z-10 w-full max-w-2xl mx-auto px-6",children:[o.jsx("div",{className:"flex items-center justify-center gap-2 mb-10",children:ts.map((C,me)=>o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full text-xs font-bold transition-all duration-500 ${me<s?"bg-accent text-white":me===s?"bg-accent/20 text-accent ring-2 ring-accent":"bg-bg-tertiary text-text-muted"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"},children:me<s?o.jsx(vo,{size:14}):me+1}),me<ts.length-1&&o.jsx("div",{className:`w-8 h-0.5 transition-colors duration-500 ${me<s?"bg-accent":"bg-bg-tertiary"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"}})]},C))}),o.jsx("div",{className:"min-h-[400px] flex items-center justify-center",style:{transition:"all 0.5s cubic-bezier(0.22, 1, 0.36, 1)"},children:yn[s]}),o.jsxs("div",{className:"flex items-center justify-between mt-10",children:[o.jsxs("button",{onClick:()=>r(C=>C-1),disabled:s===0,className:"flex items-center gap-2 px-5 py-2.5 text-sm text-text-secondary hover:text-white disabled:opacity-0 transition-all",children:[o.jsx(Cb,{size:16})," Back"]}),as?o.jsx("button",{onClick:ku,disabled:G,className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-50",children:G?o.jsxs(o.Fragment,{children:[o.jsx(c0,{size:16,className:"animate-spin"})," Calibrating…"]}):o.jsxs(o.Fragment,{children:["Launch Mission Control ",o.jsx(so,{size:16})]})}):o.jsxs("button",{onClick:()=>r(C=>C+1),disabled:!Kl(),className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:[s===0?"Begin Systems Check":"Continue"," ",o.jsx(xb,{size:16})]})]})]})]})}function kx(){const[l,s]=p.useState(null),[r,c]=p.useState(!1),[d,m]=p.useState(!1);if(p.useEffect(()=>{let g=!1;const b=async()=>{var A;try{const T=await yt("/api/config");if(!T.ok)return;const z=await T.json(),q=Object.values(z.providers??{}).filter(Y=>!!(Y!=null&&Y.configured)).length,X=String(((A=z.agent)==null?void 0:A.model)??z.model??""),O={ready:q>0||X.startsWith("ollama/"),providersConfigured:q,suggestion:"Configure a model provider before starting missions.",action:{type:"open",target:"/system/settings",label:"Open settings"}};if(g)return;s(O),O.ready&&m(!0)}catch{}};b();const v=setInterval(b,6e4);return()=>{g=!0,clearInterval(v)}},[]),!l||l.ready||d||r)return null;const y=l.action;return o.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/40 text-amber-100 px-4 py-2.5 flex items-center gap-3 text-[13px]",children:[o.jsx(xo,{size:16,className:"text-amber-400 flex-shrink-0"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("span",{className:"font-semibold",children:"TITAN isn't fully set up yet."}),l.suggestion&&o.jsxs("span",{className:"opacity-90",children:[" ",l.suggestion]})]}),y&&y.type==="open"&&o.jsx(Yn,{to:y.target,className:"px-3 py-1 rounded bg-amber-500/30 hover:bg-amber-500/50 text-amber-50 font-medium transition-colors flex-shrink-0",children:y.label}),o.jsx("button",{onClick:()=>c(!0),className:"text-amber-200 hover:text-amber-50 flex-shrink-0","aria-label":"Dismiss",title:"Dismiss",children:o.jsx(Uo,{size:16})})]})}function Lx(){var y;const{config:l}=ob(),s=(y=l==null?void 0:l.gateway)==null?void 0:y.auth;if(!s||s.openAccess!==!0)return null;const r=s.mode==="token"&&s.tokenConfigured===!1,c=r?"bg-red-500/15 border-red-500/50 text-red-100":"bg-amber-500/15 border-amber-500/40 text-amber-100",d=r?"text-red-400":"text-amber-400",m=r?"Gateway auth is not configured — remote API access is denied, but this instance has no token set.":'Open access — gateway auth is disabled (auth.mode: "none").';return o.jsxs("div",{className:`${c} border-b px-4 py-2.5 flex items-center gap-3 text-[13px]`,role:"alert",children:[o.jsx(dx,{size:16,className:`${d} flex-shrink-0`}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("span",{className:"font-semibold",children:m})," ",o.jsx("span",{className:"opacity-90",children:"Anyone with network access to this gateway can use it. Set a token in Settings → Security to lock it down."})]}),o.jsx(Yn,{to:"/settings",className:`px-3 py-1 rounded ${r?"bg-red-500/30 hover:bg-red-500/50 text-red-50":"bg-amber-500/30 hover:bg-amber-500/50 text-amber-50"} font-medium transition-colors flex-shrink-0`,children:"Configure auth"})]})}const mp=p.createContext(null);function Hx({children:l}){const[s,r]=p.useState(!1),c=p.useCallback(()=>r(!0),[]),d=p.useCallback(()=>r(!1),[]);return o.jsx(mp.Provider,{value:{isOpen:s,open:c,close:d},children:l})}function qx(){const l=p.useContext(mp);if(!l)throw new Error("useVoice must be used inside VoiceProvider");return l}const Bx="https://github.com/sponsors/Djtony707";function Gx({tone:l="dark",className:s=""}){const r=l==="wood"?{text:"#d9c08c",heart:"#ff7ab6"}:l==="light"?{text:"#6b6b6b",heart:"#ec4899"}:{text:"#a1a1aa",heart:"#ec4899"};return o.jsxs("a",{href:Bx,target:"_blank",rel:"noopener noreferrer",title:"If TITAN saves you time, a small monthly sponsorship keeps it open-source — thank you.",className:`inline-flex items-center gap-1.5 text-[11px] opacity-50 hover:opacity-95 transition-opacity tracking-wide ${s}`,style:{color:r.text,textDecoration:"none"},children:[o.jsx("span",{style:{color:r.heart,animation:"sponsorPulse 2.6s ease-in-out infinite"},"aria-hidden":!0,children:"♥"}),o.jsx("span",{children:"Built by Tony Elliott · Sponsor on GitHub"}),o.jsx("span",{"aria-hidden":!0,style:{opacity:.6},children:"→"}),o.jsx("style",{children:"@keyframes sponsorPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }"})]})}const Yx="#1a2030",Qx="#141925",m0="rgba(120,180,255,0.06)",Vx="rgba(180,210,255,0.10)",Xx="rgba(0,0,0,0.60)",Zx="rgba(190,210,235,0.35)";function pp({noMotes:l,className:s,children:r}){const c={background:[`radial-gradient(ellipse 80% 60% at 20% 0%, ${Vx} 0%, transparent 55%)`,`repeating-linear-gradient(95deg, ${Yx} 0 14px, ${Qx} 14px 28px)`].join(","),color:"#e8eef4"},d={backgroundImage:[`linear-gradient(${m0} 1px, transparent 1px)`,`linear-gradient(90deg, ${m0} 1px, transparent 1px)`].join(","),backgroundSize:"32px 32px, 32px 32px"},m={background:`radial-gradient(ellipse at 50% 50%, transparent 50%, ${Xx} 100%)`};return o.jsxs("div",{className:`fixed inset-0 overflow-hidden font-sans ${s??""}`,style:c,children:[o.jsx("div",{className:"pointer-events-none absolute inset-0",style:d}),o.jsx("div",{className:"pointer-events-none absolute inset-0",style:m}),!l&&o.jsx(Kx,{}),o.jsx("style",{children:$x}),o.jsx("div",{className:"relative z-10 w-full h-full",children:r})]})}pp.displayName="WorkshopSurface";function Kx(){const l=Nu.useMemo(()=>{const s=Jx(1463898952);return Array.from({length:18},(r,c)=>({id:c,left:`${(s()*100).toFixed(1)}%`,top:`${(s()*100).toFixed(1)}%`,delay:`${(s()*12).toFixed(1)}s`,duration:`${10+s()*6}s`,size:`${1+s()*1.5}px`,variant:c%2===0?"workshopMote1":"workshopMote2"}))},[]);return o.jsx("div",{className:"pointer-events-none absolute inset-0 z-0 overflow-hidden",children:l.map(s=>o.jsx("div",{className:"absolute rounded-full",style:{left:s.left,top:s.top,width:s.size,height:s.size,background:Zx,animation:`${s.variant} ${s.duration} linear ${s.delay} infinite`}},s.id))})}const $x=`
|
|
287
|
+
`})]},"launch")],ts=le?["Welcome","Hardware","Model","Profile","Soma","Launch"]:["Welcome","Hardware","Provider","Model","Profile","Soma","Launch"],as=s===yn.length-1;return K?o.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",role:"status","aria-live":"polite",children:[o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),o.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-5 text-center",children:[o.jsx("div",{className:"w-20 h-20 rounded-full bg-accent/20 ring-2 ring-accent flex items-center justify-center text-accent text-4xl animate-bounce",children:o.jsx(so,{className:"w-10 h-10"})}),o.jsxs("div",{children:[o.jsxs("div",{className:"text-2xl font-bold text-white",children:[v," is online"]}),o.jsx("div",{className:"text-sm text-text-muted mt-1",children:"Strapping in… opening Mission Control…"})]})]})]}):o.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",children:[o.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),o.jsxs("div",{className:"relative z-10 w-full max-w-2xl mx-auto px-6",children:[o.jsx("div",{className:"flex items-center justify-center gap-2 mb-10",children:ts.map((C,me)=>o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full text-xs font-bold transition-all duration-500 ${me<s?"bg-accent text-white":me===s?"bg-accent/20 text-accent ring-2 ring-accent":"bg-bg-tertiary text-text-muted"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"},children:me<s?o.jsx(vo,{size:14}):me+1}),me<ts.length-1&&o.jsx("div",{className:`w-8 h-0.5 transition-colors duration-500 ${me<s?"bg-accent":"bg-bg-tertiary"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"}})]},C))}),o.jsx("div",{className:"min-h-[400px] flex items-center justify-center",style:{transition:"all 0.5s cubic-bezier(0.22, 1, 0.36, 1)"},children:yn[s]}),o.jsxs("div",{className:"flex items-center justify-between mt-10",children:[o.jsxs("button",{onClick:()=>r(C=>C-1),disabled:s===0,className:"flex items-center gap-2 px-5 py-2.5 text-sm text-text-secondary hover:text-white disabled:opacity-0 transition-all",children:[o.jsx(wb,{size:16})," Back"]}),as?o.jsx("button",{onClick:Uu,disabled:G,className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-50",children:G?o.jsxs(o.Fragment,{children:[o.jsx(c0,{size:16,className:"animate-spin"})," Calibrating…"]}):o.jsxs(o.Fragment,{children:["Launch Mission Control ",o.jsx(so,{size:16})]})}):o.jsxs("button",{onClick:()=>r(C=>C+1),disabled:!$l(),className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:[s===0?"Begin Systems Check":"Continue"," ",o.jsx(Sb,{size:16})]})]})]})]})}function Lx(){const[l,s]=p.useState(null),[r,c]=p.useState(!1),[d,m]=p.useState(!1);if(p.useEffect(()=>{let g=!1;const b=async()=>{var A;try{const T=await yt("/api/config");if(!T.ok)return;const z=await T.json(),q=Object.values(z.providers??{}).filter(Y=>!!(Y!=null&&Y.configured)).length,X=String(((A=z.agent)==null?void 0:A.model)??z.model??""),O={ready:q>0||X.startsWith("ollama/"),providersConfigured:q,suggestion:"Configure a model provider before starting missions.",action:{type:"open",target:"/system/settings",label:"Open settings"}};if(g)return;s(O),O.ready&&m(!0)}catch{}};b();const v=setInterval(b,6e4);return()=>{g=!0,clearInterval(v)}},[]),!l||l.ready||d||r)return null;const y=l.action;return o.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/40 text-amber-100 px-4 py-2.5 flex items-center gap-3 text-[13px]",children:[o.jsx(xo,{size:16,className:"text-amber-400 flex-shrink-0"}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("span",{className:"font-semibold",children:"TITAN isn't fully set up yet."}),l.suggestion&&o.jsxs("span",{className:"opacity-90",children:[" ",l.suggestion]})]}),y&&y.type==="open"&&o.jsx(Yn,{to:y.target,className:"px-3 py-1 rounded bg-amber-500/30 hover:bg-amber-500/50 text-amber-50 font-medium transition-colors flex-shrink-0",children:y.label}),o.jsx("button",{onClick:()=>c(!0),className:"text-amber-200 hover:text-amber-50 flex-shrink-0","aria-label":"Dismiss",title:"Dismiss",children:o.jsx(ko,{size:16})})]})}function Hx(){var y;const{config:l}=fb(),s=(y=l==null?void 0:l.gateway)==null?void 0:y.auth;if(!s||s.openAccess!==!0)return null;const r=s.mode==="token"&&s.tokenConfigured===!1,c=r?"bg-red-500/15 border-red-500/50 text-red-100":"bg-amber-500/15 border-amber-500/40 text-amber-100",d=r?"text-red-400":"text-amber-400",m=r?"Gateway auth is not configured — remote API access is denied, but this instance has no token set.":'Open access — gateway auth is disabled (auth.mode: "none").';return o.jsxs("div",{className:`${c} border-b px-4 py-2.5 flex items-center gap-3 text-[13px]`,role:"alert",children:[o.jsx(hx,{size:16,className:`${d} flex-shrink-0`}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("span",{className:"font-semibold",children:m})," ",o.jsx("span",{className:"opacity-90",children:"Anyone with network access to this gateway can use it. Set a token in Settings → Security to lock it down."})]}),o.jsx(Yn,{to:"/settings",className:`px-3 py-1 rounded ${r?"bg-red-500/30 hover:bg-red-500/50 text-red-50":"bg-amber-500/30 hover:bg-amber-500/50 text-amber-50"} font-medium transition-colors flex-shrink-0`,children:"Configure auth"})]})}const mp=p.createContext(null);function qx({children:l}){const[s,r]=p.useState(!1),c=p.useCallback(()=>r(!0),[]),d=p.useCallback(()=>r(!1),[]);return o.jsx(mp.Provider,{value:{isOpen:s,open:c,close:d},children:l})}function Bx(){const l=p.useContext(mp);if(!l)throw new Error("useVoice must be used inside VoiceProvider");return l}const Gx="https://github.com/sponsors/Djtony707";function Yx({tone:l="dark",className:s=""}){const r=l==="wood"?{text:"#d9c08c",heart:"#ff7ab6"}:l==="light"?{text:"#6b6b6b",heart:"#ec4899"}:{text:"#a1a1aa",heart:"#ec4899"};return o.jsxs("a",{href:Gx,target:"_blank",rel:"noopener noreferrer",title:"If TITAN saves you time, a small monthly sponsorship keeps it open-source — thank you.",className:`inline-flex items-center gap-1.5 text-[11px] opacity-50 hover:opacity-95 transition-opacity tracking-wide ${s}`,style:{color:r.text,textDecoration:"none"},children:[o.jsx("span",{style:{color:r.heart,animation:"sponsorPulse 2.6s ease-in-out infinite"},"aria-hidden":!0,children:"♥"}),o.jsx("span",{children:"Built by Tony Elliott · Sponsor on GitHub"}),o.jsx("span",{"aria-hidden":!0,style:{opacity:.6},children:"→"}),o.jsx("style",{children:"@keyframes sponsorPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }"})]})}const Qx="https://api.github.com/repos/Djtony707/TITAN",pp="titan:github-star-count",Vx=900*1e3;function Xx(l=r=>typeof localStorage>"u"?null:localStorage.getItem(r),s=()=>Date.now()){try{const r=l(pp);if(!r)return null;const c=JSON.parse(r);return typeof(c==null?void 0:c.count)!="number"||typeof(c==null?void 0:c.fetchedAt)!="number"||s()-c.fetchedAt>Vx?null:c}catch{return null}}function Zx(l,s=(c,d)=>{typeof localStorage>"u"||localStorage.setItem(c,d)},r=()=>Date.now()){try{const c={count:l,fetchedAt:r()};s(pp,JSON.stringify(c))}catch{}}async function $x(l=fetch,s=d=>typeof localStorage>"u"?null:localStorage.getItem(d),r=(d,m)=>{typeof localStorage>"u"||localStorage.setItem(d,m)},c=()=>Date.now()){const d=Xx(s,c);if(d!==null)return d.count;try{const m=await l(Qx,{headers:{Accept:"application/vnd.github+json"}});if(!m.ok)return null;const y=await m.json();return typeof y.stargazers_count!="number"?null:(Zx(y.stargazers_count,r,c),y.stargazers_count)}catch{return null}}const Kx="https://github.com/Djtony707/TITAN";function Jx({tone:l="dark",className:s=""}){const r=l==="wood"?{text:"#d9c08c",star:"#ffd66e"}:l==="light"?{text:"#6b6b6b",star:"#f59e0b"}:{text:"#a1a1aa",star:"#fbbf24"},[c,d]=p.useState(null);p.useEffect(()=>{let y=!1;return $x().then(g=>{y||d(g)}),()=>{y=!0}},[]);const m=c===null?"Star on GitHub":c>=1e3?`${(c/1e3).toFixed(1).replace(/\.0$/,"")}k Star on GitHub`:`${c} Star on GitHub`;return o.jsxs("a",{href:Kx,target:"_blank",rel:"noopener noreferrer",title:"Open TITAN on GitHub — click the Star button there to support the project (takes ~2 seconds if you're signed in).",className:`inline-flex items-center gap-1.5 text-[11px] opacity-50 hover:opacity-95 transition-opacity tracking-wide ${s}`,style:{color:r.text,textDecoration:"none"},children:[o.jsx("span",{style:{color:r.star},"aria-hidden":!0,children:"★"}),o.jsx("span",{children:m}),o.jsx("span",{"aria-hidden":!0,style:{opacity:.6},children:"→"})]})}const Fx="#1a2030",Px="#141925",m0="rgba(120,180,255,0.06)",Wx="rgba(180,210,255,0.10)",Ix="rgba(0,0,0,0.60)",e2="rgba(190,210,235,0.35)";function yp({noMotes:l,className:s,children:r}){const c={background:[`radial-gradient(ellipse 80% 60% at 20% 0%, ${Wx} 0%, transparent 55%)`,`repeating-linear-gradient(95deg, ${Fx} 0 14px, ${Px} 14px 28px)`].join(","),color:"#e8eef4"},d={backgroundImage:[`linear-gradient(${m0} 1px, transparent 1px)`,`linear-gradient(90deg, ${m0} 1px, transparent 1px)`].join(","),backgroundSize:"32px 32px, 32px 32px"},m={background:`radial-gradient(ellipse at 50% 50%, transparent 50%, ${Ix} 100%)`};return o.jsxs("div",{className:`fixed inset-0 overflow-hidden font-sans ${s??""}`,style:c,children:[o.jsx("div",{className:"pointer-events-none absolute inset-0",style:d}),o.jsx("div",{className:"pointer-events-none absolute inset-0",style:m}),!l&&o.jsx(t2,{}),o.jsx("style",{children:a2}),o.jsx("div",{className:"relative z-10 w-full h-full",children:r})]})}yp.displayName="WorkshopSurface";function t2(){const l=Nu.useMemo(()=>{const s=n2(1463898952);return Array.from({length:18},(r,c)=>({id:c,left:`${(s()*100).toFixed(1)}%`,top:`${(s()*100).toFixed(1)}%`,delay:`${(s()*12).toFixed(1)}s`,duration:`${10+s()*6}s`,size:`${1+s()*1.5}px`,variant:c%2===0?"workshopMote1":"workshopMote2"}))},[]);return o.jsx("div",{className:"pointer-events-none absolute inset-0 z-0 overflow-hidden",children:l.map(s=>o.jsx("div",{className:"absolute rounded-full",style:{left:s.left,top:s.top,width:s.size,height:s.size,background:e2,animation:`${s.variant} ${s.duration} linear ${s.delay} infinite`}},s.id))})}const a2=`
|
|
288
288
|
@keyframes workshopMote1 {
|
|
289
289
|
0% { transform: translate(0, 0) scale(1); opacity: 0; }
|
|
290
290
|
10% { opacity: 0.5; }
|
|
@@ -297,12 +297,12 @@ Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}
|
|
|
297
297
|
90% { opacity: 0.25; }
|
|
298
298
|
100% { transform: translate(-8px, -90vh) scale(1); opacity: 0; }
|
|
299
299
|
}
|
|
300
|
-
`;function
|
|
300
|
+
`;function n2(l){return()=>{let s=l+=1831565813;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}const l2="#1a1235",i2="#0e0820",s2="rgba(140,160,255,0.10)",u2="rgba(0,0,0,0.70)";function gp({className:l,children:s}){const r={background:[`radial-gradient(ellipse 80% 60% at 20% 0%, ${s2} 0%, transparent 55%)`,`linear-gradient(180deg, ${l2} 0%, ${i2} 100%)`].join(","),color:"#e8e8ff"},c={background:["radial-gradient(2px 2px at 13% 22%, #fff 50%, transparent 51%)","radial-gradient(1.5px 1.5px at 67% 44%, #cce 50%, transparent 51%)","radial-gradient(1px 1px at 85% 18%, #fff 50%, transparent 51%)","radial-gradient(2px 2px at 30% 80%, #fff 50%, transparent 51%)","radial-gradient(1px 1px at 90% 70%, #cce 50%, transparent 51%)","radial-gradient(1.5px 1.5px at 50% 60%, #fff 50%, transparent 51%)","radial-gradient(1px 1px at 22% 50%, #fff 50%, transparent 51%)","radial-gradient(1.5px 1.5px at 75% 90%, #ace 50%, transparent 51%)"].join(","),opacity:.6,animation:"observatoryTwinkle 8s ease-in-out infinite"},d={background:`radial-gradient(ellipse at 50% 50%, transparent 50%, ${u2} 100%)`};return o.jsxs("div",{className:`fixed inset-0 overflow-hidden font-sans ${l??""}`,style:r,children:[o.jsx("div",{className:"pointer-events-none absolute inset-0",style:c}),o.jsx("div",{className:"pointer-events-none absolute inset-0",style:d}),o.jsx("style",{children:r2}),o.jsx("div",{className:"relative z-10 w-full h-full",children:s})]})}gp.displayName="ObservatorySurface";const r2=`
|
|
301
301
|
@keyframes observatoryTwinkle {
|
|
302
302
|
0%, 100% { opacity: 0.55; }
|
|
303
303
|
50% { opacity: 0.75; }
|
|
304
304
|
}
|
|
305
|
-
`,
|
|
305
|
+
`,c2="oak",o2="titan-desk-theme";function p0(){try{const l=localStorage.getItem(o2);if(l==="oak"||l==="walnut"||l==="mahogany"||l==="white")return l}catch{}return c2}const f2={oak:{base:["#6e4724","#5a3717","#482a13"],knot:"rgba(40,18,8,0.55)",knot2:"rgba(40,18,8,0.45)",grainLight:"rgba(255,180,90,0.05)",grainDark:"rgba(60,30,10,0.10)",glow:"rgba(255,220,140,0.18)",vignette:"rgba(0,0,0,0.45)",text:"#f3e9d0",accent:"#f3d27a",border:"#8a6a3a",paper:"#f7f5ee"},walnut:{base:["#4a2e18","#3a2210","#2a1808"],knot:"rgba(20,10,4,0.65)",knot2:"rgba(20,10,4,0.50)",grainLight:"rgba(180,140,80,0.04)",grainDark:"rgba(40,20,8,0.14)",glow:"rgba(210,170,100,0.14)",vignette:"rgba(0,0,0,0.55)",text:"#e8dcc8",accent:"#d4b06a",border:"#6e5030",paper:"#f0ebe0"},mahogany:{base:["#5e2a1a","#4a1f12","#38160c"],knot:"rgba(30,8,4,0.60)",knot2:"rgba(30,8,4,0.50)",grainLight:"rgba(200,120,80,0.04)",grainDark:"rgba(60,20,10,0.12)",glow:"rgba(230,160,110,0.15)",vignette:"rgba(0,0,0,0.50)",text:"#f0d8c8",accent:"#e8a87c",border:"#8a5030",paper:"#f5ebe4"},white:{base:["#f4f1ea","#e8e4db","#ddd9ce"],knot:"rgba(160,150,130,0.25)",knot2:"rgba(160,150,130,0.15)",grainLight:"rgba(200,190,170,0.12)",grainDark:"rgba(140,130,110,0.10)",glow:"rgba(255,255,255,0.30)",vignette:"rgba(0,0,0,0.08)",text:"#2a2825",accent:"#8a7a5a",border:"#b8b0a0",paper:"#ffffff"}};function Ou(l){const[s,r]=Nu.useState(()=>typeof document>"u"?null:document.documentElement.getAttribute("data-theme"));if(Nu.useEffect(()=>{if(typeof document>"u"||typeof MutationObserver>"u")return;const c=document.documentElement;r(c.getAttribute("data-theme"));const d=new MutationObserver(()=>{r(c.getAttribute("data-theme"))});return d.observe(c,{attributes:!0,attributeFilter:["data-theme"]}),()=>d.disconnect()},[]),l.theme)return o.jsx(y0,{...l});if(s==="workshop"){const{noMotes:c,className:d,children:m}=l;return o.jsx(yp,{noMotes:c,className:d,children:m})}if(s==="observatory"){const{noMotes:c,className:d,children:m}=l;return o.jsx(gp,{noMotes:c,className:d,children:m})}return o.jsx(y0,{...l})}Ou.displayName="DeskSurface";function y0({theme:l,noMotes:s,className:r,children:c}){const d=f2[l??p0()],m={background:[`radial-gradient(ellipse 120px 80px at 78% 28%, ${d.knot} 0%, transparent 70%)`,`radial-gradient(ellipse 90px 60px at 22% 72%, ${d.knot2} 0%, transparent 75%)`,`repeating-linear-gradient(92deg, ${d.grainLight} 0px, ${d.grainDark} 3px, ${d.grainLight} 7px, ${d.grainDark} 11px, ${d.grainLight} 16px)`,"repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, transparent 2px, rgba(0,0,0,0.03) 4px)",`linear-gradient(180deg, ${d.base[0]} 0%, ${d.base[1]} 50%, ${d.base[2]} 100%)`].join(","),color:d.text},y={background:`radial-gradient(ellipse 80% 60% at 20% 0%, ${d.glow} 0%, transparent 55%)`},g={background:`radial-gradient(ellipse at 50% 50%, transparent 50%, ${d.vignette} 100%)`};return o.jsxs("div",{className:`fixed inset-0 overflow-hidden font-sans ${r??""}`,style:m,children:[o.jsx("div",{className:"pointer-events-none absolute inset-0",style:y}),o.jsx("div",{className:"pointer-events-none absolute inset-0",style:g}),!s&&o.jsx(d2,{theme:l??p0()}),o.jsx("style",{children:h2}),o.jsx("div",{className:"relative z-10 w-full h-full",children:c})]})}function d2({theme:l}){const s=Nu.useMemo(()=>{const r=l.split("").reduce((d,m)=>d+m.charCodeAt(0),0),c=m2(r);return Array.from({length:24},(d,m)=>({id:m,left:`${(c()*100).toFixed(1)}%`,top:`${(c()*100).toFixed(1)}%`,delay:`${(c()*12).toFixed(1)}s`,duration:`${8+c()*6}s`,size:`${1+c()*2}px`,variant:m%2===0?"mote1":"mote2",color:l==="white"?"rgba(180,170,150,0.5)":"rgba(245,235,210,0.45)"}))},[l]);return o.jsx("div",{className:"pointer-events-none absolute inset-0 z-0 overflow-hidden",children:s.map(r=>o.jsx("div",{className:"absolute rounded-full",style:{left:r.left,top:r.top,width:r.size,height:r.size,background:r.color,animation:`${r.variant} ${r.duration} linear ${r.delay} infinite`}},r.id))})}const h2=`
|
|
306
306
|
@keyframes deskGlow {
|
|
307
307
|
0%, 100% { opacity: 0.5; }
|
|
308
308
|
50% { opacity: 0.8; }
|
|
@@ -319,7 +319,7 @@ Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}
|
|
|
319
319
|
90% { opacity: 0.3; }
|
|
320
320
|
100% { transform: translate(-12px, -90vh) scale(1); opacity: 0; }
|
|
321
321
|
}
|
|
322
|
-
`;function s2(l){return()=>{let s=l+=1831565813;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}const ro=[{label:"Home",route:"/",icon:$b,aliases:["/command-post","/dashboard"]},{label:"Missions & Work",route:"/missions",icon:gx,aliases:["/mission"],submenu:[{label:"Library",route:"/missions/library",aliases:["/mission/library"]},{label:"Goals",route:"/missions/goals",aliases:["/goals","/command-post/goals"]},{label:"Issues",route:"/missions/issues",aliases:["/issues","/command-post/issues"]},{label:"Approvals",route:"/missions/approvals",aliases:["/approvals","/command-post/approvals"]},{label:"Activity",route:"/missions/activity",aliases:["/activity","/watch","/command-post/activity"]},{label:"Work",route:"/missions/work",aliases:["/command-post/runs","/command-post/work"]}]},{label:"Team",route:"/team",icon:Tx,submenu:[{label:"Agents",route:"/team/agents",aliases:["/command-post/agents"]},{label:"Org Chart",route:"/team/org-chart",aliases:["/command-post/org"]},{label:"Personas",route:"/team/personas"}]},{label:"Knowledge",route:"/knowledge",icon:jb,aliases:["/soma","/intelligence"],submenu:[{label:"Memory Graph",route:"/knowledge/memory-graph"},{label:"Wiki",route:"/knowledge/wiki"},{label:"Autoresearch",route:"/knowledge/autoresearch"},{label:"Self-Improve",route:"/knowledge/self-improve"},{label:"Dreams",route:"/knowledge/dreams"},{label:"Training",route:"/knowledge/training"}]},{label:"Tools & Connections",route:"/tools",icon:Cx,submenu:[{label:"Skills",route:"/tools/skills"},{label:"MCP",route:"/tools/mcp"},{label:"Integrations",route:"/tools/integrations"},{label:"Channels",route:"/tools/channels"},{label:"Mesh",route:"/tools/mesh"},{label:"Browser",route:"/tools/browser"},{label:"Recipes",route:"/tools/recipes"},{label:"Files",route:"/tools/files",aliases:["/command-post/files"]},{label:"Voice",route:"/tools/voice"},{label:"Phone Desk",route:"/tools/phone-desk"}]},{label:"System",route:"/system",icon:ox,aliases:["/infra","/settings"],submenu:[{label:"Settings",route:"/system/settings",aliases:["/settings"]},{label:"Security",route:"/system/security"},{label:"Costs",route:"/system/costs",aliases:["/command-post/costs"]},{label:"Audit",route:"/system/audit"},{label:"Backup/Recovery",route:"/system/backup-recovery"},{label:"Logs",route:"/system/logs"},{label:"Homelab",route:"/system/homelab"},{label:"GPU",route:"/system/gpu"},{label:"VRAM",route:"/system/vram"},{label:"Fleet",route:"/system/fleet"},{label:"Cron",route:"/system/cron"},{label:"Quality Lab",route:"/system/quality-lab"}]}];function u2(l,s){return So(l,s)>0}function So(l,s){const r=[s.route,...s.aliases??[]];return Math.max(0,...r.map(c=>(c==="/"?l==="/"||l==="/command-post"||l==="/command-post/dashboard":l===c)?1e3+c.length:c!=="/"&&l.startsWith(`${c}/`)?c.length:0))}function r2(l,s){const r=So(l,s),c=Math.max(0,...(s.submenu??[]).map(d=>So(l,d)+100));return Math.max(r,c)}const Ua={background:"var(--theme-menu-bg-solid, var(--color-bg-secondary))",borderColor:"var(--theme-menu-border, var(--color-border))",color:"var(--theme-ink, var(--color-text))",fontFamily:"var(--theme-font-display, system-ui, sans-serif)"},Un={color:"var(--theme-ink-soft, var(--color-text-secondary))"},ju={background:"var(--theme-menu-active-bg, var(--color-accent))",color:"var(--theme-menu-active-fg, var(--color-bg))"},c2={background:"var(--theme-menu-hover, var(--color-bg-tertiary))",color:"var(--theme-ink, var(--color-text))"},gp="titan:shell-sidebar-collapsed";function o2(l){return/^\/mission\/[^/]+\/canvas\/?$/.test(l)}function g0(l,s=r=>typeof localStorage>"u"?null:localStorage.getItem(r)){try{const r=s(gp);if(r!==null)return r==="1"}catch{}return o2(l)}function f2(l){try{localStorage.setItem(gp,l?"1":"0")}catch{}}function v0({className:l="",onNavigate:s,collapsed:r=!1,onToggleCollapsed:c}){const d=Nt(),m=p.useMemo(()=>{var y;return(y=ro.map(g=>({section:g,score:r2(d.pathname,g)})).filter(({score:g})=>g>0).sort((g,b)=>b.score-g.score)[0])==null?void 0:y.section},[d.pathname]);return r?o.jsxs("aside",{className:`relative z-40 h-full w-14 shrink-0 flex-col border-r ${l}`,style:Ua,"aria-label":"Primary navigation — collapsed",children:[o.jsx("div",{className:"flex items-center justify-center border-b px-2 py-3",style:{borderColor:Ua.borderColor},children:o.jsx("button",{type:"button",onClick:c,className:"flex h-8 w-8 items-center justify-center rounded-md text-sm font-bold transition-colors hover:brightness-110",style:{background:"var(--theme-metal, var(--color-accent))",color:"var(--theme-bolt, var(--color-bg))",boxShadow:"0 1px 2px var(--theme-shadow, rgba(0, 0, 0, 0.3))"},title:"Expand navigation","aria-label":"Expand navigation",children:"T"})}),o.jsx("nav",{className:"flex-1 overflow-y-auto px-1.5 py-3","aria-label":"Sections",children:o.jsx("div",{className:"space-y-1",children:ro.map(y=>{const g=(m==null?void 0:m.route)===y.route,b=y.icon;return o.jsx(zl,{to:y.route,end:y.route==="/",onClick:s,className:"flex min-h-10 items-center justify-center rounded-md transition-colors",style:g?ju:Un,title:y.label,"aria-label":y.label,children:o.jsx(b,{className:"h-4 w-4","aria-hidden":"true"})},y.route)})})}),o.jsxs("div",{className:"space-y-1 border-t p-1.5",style:{borderColor:Ua.borderColor},children:[o.jsx(zl,{to:"/space/home",onClick:s,className:"flex min-h-10 items-center justify-center rounded-md transition-colors",style:d.pathname.startsWith("/space")?ju:Un,title:"Workspaces","aria-label":"Workspaces",children:o.jsx(r0,{className:"h-4 w-4","aria-hidden":"true"})}),o.jsx("button",{type:"button",onClick:c,className:"flex min-h-10 w-full items-center justify-center rounded-md transition-colors",style:Un,title:"Expand navigation","aria-label":"Expand navigation",children:"›"})]})]}):o.jsxs("aside",{className:`relative z-40 h-full w-64 shrink-0 flex-col border-r ${l}`,style:Ua,"aria-label":"Primary navigation",children:[o.jsxs("div",{className:"flex items-center gap-2 px-4 py-4 border-b",style:{borderColor:Ua.borderColor},children:[o.jsxs(Yn,{to:"/",onClick:s,className:"flex min-w-0 flex-1 items-center gap-2","aria-label":"TITAN home",children:[o.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-sm font-bold",style:{background:"var(--theme-metal, var(--color-accent))",color:"var(--theme-bolt, var(--color-bg))",boxShadow:"0 1px 2px var(--theme-shadow, rgba(0, 0, 0, 0.3))"},children:"T"}),o.jsx("span",{className:"truncate text-sm font-semibold tracking-[0.16em]",children:"TITAN"})]}),c&&o.jsx("button",{type:"button",onClick:c,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-lg leading-none transition-colors",style:Un,title:"Collapse navigation","aria-label":"Collapse navigation",children:"‹"})]}),o.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-3","aria-label":"Sections",children:o.jsx("div",{className:"space-y-1",children:ro.map(y=>{const g=(m==null?void 0:m.route)===y.route,b=y.icon,v=g&&y.submenu&&y.submenu.length>0;return o.jsxs("div",{children:[o.jsxs(zl,{to:y.route,end:y.route==="/",onClick:s,className:"group flex min-h-10 items-center gap-2 rounded-md px-2.5 py-2 text-sm font-medium transition-colors",style:g?ju:Un,children:[o.jsx(b,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:y.label}),y.submenu&&o.jsx(_b,{className:"h-3.5 w-3.5 shrink-0 opacity-70","aria-hidden":"true"})]}),v&&o.jsx("div",{className:"ml-5 mt-1 space-y-0.5 border-l pl-2",style:{borderColor:Ua.borderColor},children:y.submenu.map(A=>{const T=u2(d.pathname,A);return o.jsx(zl,{to:A.route,onClick:s,className:"block rounded-md px-2 py-1.5 text-xs transition-colors",style:T?c2:Un,children:A.label},A.route)})})]},y.route)})})}),o.jsx("div",{className:"border-t p-2",style:{borderColor:Ua.borderColor},children:o.jsxs(zl,{to:"/space/home",onClick:s,className:"flex min-h-10 items-center gap-2 rounded-md px-2.5 py-2 text-sm font-medium transition-colors",style:d.pathname.startsWith("/space")?ju:Un,children:[o.jsx(r0,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:"Workspaces"})]})})]})}function d2({children:l}){const[s,r]=p.useState(!1),c=Nt(),[d,m]=p.useState(()=>g0(typeof window<"u"?window.location.pathname:"/"));p.useEffect(()=>{m(g0(c.pathname))},[c.pathname]);const y=()=>{m(g=>{const b=!g;return f2(b),b})};return o.jsxs("div",{className:"flex h-screen min-h-0 w-full overflow-hidden",style:{background:"var(--theme-bg-base, var(--color-bg))",color:"var(--theme-paper-fg, var(--color-text))"},children:[o.jsx("button",{type:"button",className:"fixed left-3 top-3 z-[60] flex h-9 w-9 items-center justify-center rounded-md border md:hidden",style:{...Ua,borderColor:"var(--theme-menu-border, var(--color-border))",boxShadow:"0 6px 18px var(--theme-shadow, rgba(0, 0, 0, 0.35))"},onClick:()=>r(!0),"aria-label":"Open navigation",children:o.jsx(lx,{className:"h-4 w-4","aria-hidden":"true"})}),o.jsx(v0,{className:"hidden md:flex",collapsed:d,onToggleCollapsed:y}),s&&o.jsxs("div",{className:"fixed inset-0 z-[70] md:hidden",children:[o.jsx("button",{type:"button",className:"absolute inset-0",style:{background:"var(--theme-menu-overlay, rgba(0, 0, 0, 0.62))"},onClick:()=>r(!1),"aria-label":"Close navigation"}),o.jsx(v0,{className:"absolute inset-y-0 left-0 flex",onNavigate:()=>r(!1)}),o.jsx("button",{type:"button",className:"absolute left-[17rem] top-3 flex h-9 w-9 items-center justify-center rounded-md border",style:{...Ua,borderColor:"var(--theme-menu-border, var(--color-border))"},onClick:()=>r(!1),"aria-label":"Close navigation",children:o.jsx(Uo,{className:"h-4 w-4","aria-hidden":"true"})})]}),o.jsx("main",{className:"relative min-h-0 min-w-0 flex-1 overflow-y-auto pb-16 pt-16 md:pb-0 md:pt-0",children:l})]})}const b0="titan-desk-theme",vp=p.createContext(null);function h2({children:l}){const[s,r]=p.useState("oak");p.useEffect(()=>{try{const d=localStorage.getItem(b0);(d==="oak"||d==="walnut"||d==="mahogany"||d==="white")&&r(d)}catch{}},[]);const c=p.useCallback(d=>{r(d);try{localStorage.setItem(b0,d)}catch{}},[]);return o.jsx(vp.Provider,{value:{theme:s,setTheme:c},children:l})}function bp(){const l=p.useContext(vp);if(!l)throw new Error("useDeskTheme must be used inside a DeskThemeProvider");return l}const Qi="titan-theme-name";function Rl(){try{const l=localStorage.getItem(Qi);if(l==="office"||l==="workshop"||l==="observatory")return l}catch{}return null}function xp(l){switch(l){case"oak":case"walnut":case"mahogany":case"white":return"office";default:return"office"}}const m2="data-theme";function p2(){const{theme:l}=bp(),[s,r]=p.useState(()=>Rl());p.useEffect(()=>{const c=()=>r(Rl()),d=m=>{m.key===Qi&&r(Rl())};return window.addEventListener("titan-theme-change",c),window.addEventListener("storage",d),()=>{window.removeEventListener("titan-theme-change",c),window.removeEventListener("storage",d)}},[]),p.useEffect(()=>{const c=s??xp(l);try{document.documentElement.setAttribute(m2,c)}catch{}},[s,l])}function y2(){const{theme:l}=bp(),[s,r]=p.useState(()=>Rl());p.useEffect(()=>{const d=()=>r(Rl()),m=y=>{y.key===Qi&&r(Rl())};return window.addEventListener("titan-theme-change",d),window.addEventListener("storage",m),()=>{window.removeEventListener("titan-theme-change",d),window.removeEventListener("storage",m)}},[]);const c=p.useCallback(d=>{try{d==="office"?localStorage.removeItem(Qi):localStorage.setItem(Qi,d),window.dispatchEvent(new Event("titan-theme-change"))}catch{}r(d==="office"?null:d)},[]);return{theme:s??xp(l),setTheme:c}}const g2=[{value:"office",label:"Office"},{value:"workshop",label:"Workshop"},{value:"observatory",label:"Observatory"}];function v2({className:l=""}){const{theme:s,setTheme:r}=y2(),m=Nt().pathname.startsWith("/command-post")?"calc(var(--titan-agents-rail-width, 16rem) + 0.75rem)":"0.75rem";return o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`
|
|
322
|
+
`;function m2(l){return()=>{let s=l+=1831565813;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}const ro=[{label:"Home",route:"/",icon:Jb,aliases:["/command-post","/dashboard"]},{label:"Missions & Work",route:"/missions",icon:vx,aliases:["/mission"],submenu:[{label:"Library",route:"/missions/library",aliases:["/mission/library"]},{label:"Goals",route:"/missions/goals",aliases:["/goals","/command-post/goals"]},{label:"Issues",route:"/missions/issues",aliases:["/issues","/command-post/issues"]},{label:"Approvals",route:"/missions/approvals",aliases:["/approvals","/command-post/approvals"]},{label:"Activity",route:"/missions/activity",aliases:["/activity","/watch","/command-post/activity"]},{label:"Work",route:"/missions/work",aliases:["/command-post/runs","/command-post/work"]}]},{label:"Team",route:"/team",icon:jx,submenu:[{label:"Agents",route:"/team/agents",aliases:["/command-post/agents"]},{label:"Org Chart",route:"/team/org-chart",aliases:["/command-post/org"]},{label:"Personas",route:"/team/personas"}]},{label:"Knowledge",route:"/knowledge",icon:Ab,aliases:["/soma","/intelligence"],submenu:[{label:"Memory Graph",route:"/knowledge/memory-graph"},{label:"Wiki",route:"/knowledge/wiki"},{label:"Autoresearch",route:"/knowledge/autoresearch"},{label:"Self-Improve",route:"/knowledge/self-improve"},{label:"Dreams",route:"/knowledge/dreams"},{label:"Training",route:"/knowledge/training"}]},{label:"Tools & Connections",route:"/tools",icon:wx,submenu:[{label:"Skills",route:"/tools/skills"},{label:"MCP",route:"/tools/mcp"},{label:"Integrations",route:"/tools/integrations"},{label:"Channels",route:"/tools/channels"},{label:"Mesh",route:"/tools/mesh"},{label:"Browser",route:"/tools/browser"},{label:"Recipes",route:"/tools/recipes"},{label:"Files",route:"/tools/files",aliases:["/command-post/files"]},{label:"Voice",route:"/tools/voice"},{label:"Phone Desk",route:"/tools/phone-desk"}]},{label:"System",route:"/system",icon:fx,aliases:["/infra","/settings"],submenu:[{label:"Settings",route:"/system/settings",aliases:["/settings"]},{label:"Security",route:"/system/security"},{label:"Costs",route:"/system/costs",aliases:["/command-post/costs"]},{label:"Audit",route:"/system/audit"},{label:"Backup/Recovery",route:"/system/backup-recovery"},{label:"Logs",route:"/system/logs"},{label:"Homelab",route:"/system/homelab"},{label:"GPU",route:"/system/gpu"},{label:"VRAM",route:"/system/vram"},{label:"Fleet",route:"/system/fleet"},{label:"Cron",route:"/system/cron"},{label:"Quality Lab",route:"/system/quality-lab"}]}];function p2(l,s){return So(l,s)>0}function So(l,s){const r=[s.route,...s.aliases??[]];return Math.max(0,...r.map(c=>(c==="/"?l==="/"||l==="/command-post"||l==="/command-post/dashboard":l===c)?1e3+c.length:c!=="/"&&l.startsWith(`${c}/`)?c.length:0))}function y2(l,s){const r=So(l,s),c=Math.max(0,...(s.submenu??[]).map(d=>So(l,d)+100));return Math.max(r,c)}const ka={background:"var(--theme-menu-bg-solid, var(--color-bg-secondary))",borderColor:"var(--theme-menu-border, var(--color-border))",color:"var(--theme-ink, var(--color-text))",fontFamily:"var(--theme-font-display, system-ui, sans-serif)"},kn={color:"var(--theme-ink-soft, var(--color-text-secondary))"},ju={background:"var(--theme-menu-active-bg, var(--color-accent))",color:"var(--theme-menu-active-fg, var(--color-bg))"},g2={background:"var(--theme-menu-hover, var(--color-bg-tertiary))",color:"var(--theme-ink, var(--color-text))"},vp="titan:shell-sidebar-collapsed";function v2(l){return/^\/mission\/[^/]+\/canvas\/?$/.test(l)||/^\/space\/[^/]+\/?$/.test(l)||/^\/os(?:\/|$)/.test(l)}function b2(l){return/^\/os(?:\/|$)/.test(l)}function g0(l,s=r=>typeof localStorage>"u"?null:localStorage.getItem(r)){try{const r=s(vp);if(r!==null)return r==="1"}catch{}return v2(l)}function x2(l){try{localStorage.setItem(vp,l?"1":"0")}catch{}}function v0({className:l="",onNavigate:s,collapsed:r=!1,onToggleCollapsed:c}){const d=Nt(),m=p.useMemo(()=>{var y;return(y=ro.map(g=>({section:g,score:y2(d.pathname,g)})).filter(({score:g})=>g>0).sort((g,b)=>b.score-g.score)[0])==null?void 0:y.section},[d.pathname]);return r?o.jsxs("aside",{className:`relative z-40 h-full w-14 shrink-0 flex-col border-r ${l}`,style:ka,"aria-label":"Primary navigation — collapsed",children:[o.jsx("div",{className:"flex items-center justify-center border-b px-2 py-3",style:{borderColor:ka.borderColor},children:o.jsx("button",{type:"button",onClick:c,className:"flex h-8 w-8 items-center justify-center rounded-md text-sm font-bold transition-colors hover:brightness-110",style:{background:"var(--theme-metal, var(--color-accent))",color:"var(--theme-bolt, var(--color-bg))",boxShadow:"0 1px 2px var(--theme-shadow, rgba(0, 0, 0, 0.3))"},title:"Expand navigation","aria-label":"Expand navigation",children:"T"})}),o.jsx("nav",{className:"flex-1 overflow-y-auto px-1.5 py-3","aria-label":"Sections",children:o.jsx("div",{className:"space-y-1",children:ro.map(y=>{const g=(m==null?void 0:m.route)===y.route,b=y.icon;return o.jsx(zl,{to:y.route,end:y.route==="/",onClick:s,className:"flex min-h-10 items-center justify-center rounded-md transition-colors",style:g?ju:kn,title:y.label,"aria-label":y.label,children:o.jsx(b,{className:"h-4 w-4","aria-hidden":"true"})},y.route)})})}),o.jsxs("div",{className:"space-y-1 border-t p-1.5",style:{borderColor:ka.borderColor},children:[o.jsx(zl,{to:"/space/home",onClick:s,className:"flex min-h-10 items-center justify-center rounded-md transition-colors",style:d.pathname.startsWith("/space")?ju:kn,title:"Workspaces","aria-label":"Workspaces",children:o.jsx(r0,{className:"h-4 w-4","aria-hidden":"true"})}),o.jsx("button",{type:"button",onClick:c,className:"flex min-h-10 w-full items-center justify-center rounded-md transition-colors",style:kn,title:"Expand navigation","aria-label":"Expand navigation",children:"›"})]})]}):o.jsxs("aside",{className:`relative z-40 h-full w-64 shrink-0 flex-col border-r ${l}`,style:ka,"aria-label":"Primary navigation",children:[o.jsxs("div",{className:"flex items-center gap-2 px-4 py-4 border-b",style:{borderColor:ka.borderColor},children:[o.jsxs(Yn,{to:"/",onClick:s,className:"flex min-w-0 flex-1 items-center gap-2","aria-label":"TITAN home",children:[o.jsx("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-sm font-bold",style:{background:"var(--theme-metal, var(--color-accent))",color:"var(--theme-bolt, var(--color-bg))",boxShadow:"0 1px 2px var(--theme-shadow, rgba(0, 0, 0, 0.3))"},children:"T"}),o.jsx("span",{className:"truncate text-sm font-semibold tracking-[0.16em]",children:"TITAN"})]}),c&&o.jsx("button",{type:"button",onClick:c,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-lg leading-none transition-colors",style:kn,title:"Collapse navigation","aria-label":"Collapse navigation",children:"‹"})]}),o.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-3","aria-label":"Sections",children:o.jsx("div",{className:"space-y-1",children:ro.map(y=>{const g=(m==null?void 0:m.route)===y.route,b=y.icon,v=g&&y.submenu&&y.submenu.length>0;return o.jsxs("div",{children:[o.jsxs(zl,{to:y.route,end:y.route==="/",onClick:s,className:"group flex min-h-10 items-center gap-2 rounded-md px-2.5 py-2 text-sm font-medium transition-colors",style:g?ju:kn,children:[o.jsx(b,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:y.label}),y.submenu&&o.jsx(Nb,{className:"h-3.5 w-3.5 shrink-0 opacity-70","aria-hidden":"true"})]}),v&&o.jsx("div",{className:"ml-5 mt-1 space-y-0.5 border-l pl-2",style:{borderColor:ka.borderColor},children:y.submenu.map(A=>{const T=p2(d.pathname,A);return o.jsx(zl,{to:A.route,onClick:s,className:"block rounded-md px-2 py-1.5 text-xs transition-colors",style:T?g2:kn,children:A.label},A.route)})})]},y.route)})})}),o.jsx("div",{className:"border-t p-2",style:{borderColor:ka.borderColor},children:o.jsxs(zl,{to:"/space/home",onClick:s,className:"flex min-h-10 items-center gap-2 rounded-md px-2.5 py-2 text-sm font-medium transition-colors",style:d.pathname.startsWith("/space")?ju:kn,children:[o.jsx(r0,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:"Workspaces"})]})})]})}function S2({children:l}){const[s,r]=p.useState(!1),c=Nt(),d=b2(c.pathname),[m,y]=p.useState(()=>g0(typeof window<"u"?window.location.pathname:"/"));p.useEffect(()=>{y(g0(c.pathname))},[c.pathname]);const g=()=>{y(b=>{const v=!b;return x2(v),v})};return d?o.jsx("div",{className:"h-screen min-h-0 w-full overflow-hidden",style:{background:"var(--theme-bg-base, var(--color-bg))",color:"var(--theme-paper-fg, var(--color-text))"},children:l}):o.jsxs("div",{className:"flex h-screen min-h-0 w-full overflow-hidden",style:{background:"var(--theme-bg-base, var(--color-bg))",color:"var(--theme-paper-fg, var(--color-text))"},children:[o.jsx("button",{type:"button",className:"fixed left-3 top-3 z-[60] flex h-9 w-9 items-center justify-center rounded-md border md:hidden",style:{...ka,borderColor:"var(--theme-menu-border, var(--color-border))",boxShadow:"0 6px 18px var(--theme-shadow, rgba(0, 0, 0, 0.35))"},onClick:()=>r(!0),"aria-label":"Open navigation",children:o.jsx(ix,{className:"h-4 w-4","aria-hidden":"true"})}),o.jsx(v0,{className:"hidden md:flex",collapsed:m,onToggleCollapsed:g}),s&&o.jsxs("div",{className:"fixed inset-0 z-[70] md:hidden",children:[o.jsx("button",{type:"button",className:"absolute inset-0",style:{background:"var(--theme-menu-overlay, rgba(0, 0, 0, 0.62))"},onClick:()=>r(!1),"aria-label":"Close navigation"}),o.jsx(v0,{className:"absolute inset-y-0 left-0 flex",onNavigate:()=>r(!1)}),o.jsx("button",{type:"button",className:"absolute left-[17rem] top-3 flex h-9 w-9 items-center justify-center rounded-md border",style:{...ka,borderColor:"var(--theme-menu-border, var(--color-border))"},onClick:()=>r(!1),"aria-label":"Close navigation",children:o.jsx(ko,{className:"h-4 w-4","aria-hidden":"true"})})]}),o.jsx("main",{className:"relative min-h-0 min-w-0 flex-1 overflow-y-auto pb-16 pt-16 md:pb-0 md:pt-0",children:l})]})}const b0="titan-desk-theme",bp=p.createContext(null);function E2({children:l}){const[s,r]=p.useState("oak");p.useEffect(()=>{try{const d=localStorage.getItem(b0);(d==="oak"||d==="walnut"||d==="mahogany"||d==="white")&&r(d)}catch{}},[]);const c=p.useCallback(d=>{r(d);try{localStorage.setItem(b0,d)}catch{}},[]);return o.jsx(bp.Provider,{value:{theme:s,setTheme:c},children:l})}function xp(){const l=p.useContext(bp);if(!l)throw new Error("useDeskTheme must be used inside a DeskThemeProvider");return l}const Qi="titan-theme-name";function Rl(){try{const l=localStorage.getItem(Qi);if(l==="office"||l==="workshop"||l==="observatory")return l}catch{}return null}function Sp(l){switch(l){case"oak":case"walnut":case"mahogany":case"white":return"office";default:return"office"}}const T2="data-theme";function j2(){const{theme:l}=xp(),[s,r]=p.useState(()=>Rl());p.useEffect(()=>{const c=()=>r(Rl()),d=m=>{m.key===Qi&&r(Rl())};return window.addEventListener("titan-theme-change",c),window.addEventListener("storage",d),()=>{window.removeEventListener("titan-theme-change",c),window.removeEventListener("storage",d)}},[]),p.useEffect(()=>{const c=s??Sp(l);try{document.documentElement.setAttribute(T2,c)}catch{}},[s,l])}function A2(){const{theme:l}=xp(),[s,r]=p.useState(()=>Rl());p.useEffect(()=>{const d=()=>r(Rl()),m=y=>{y.key===Qi&&r(Rl())};return window.addEventListener("titan-theme-change",d),window.addEventListener("storage",m),()=>{window.removeEventListener("titan-theme-change",d),window.removeEventListener("storage",m)}},[]);const c=p.useCallback(d=>{try{d==="office"?localStorage.removeItem(Qi):localStorage.setItem(Qi,d),window.dispatchEvent(new Event("titan-theme-change"))}catch{}r(d==="office"?null:d)},[]);return{theme:s??Sp(l),setTheme:c}}const _2=[{value:"office",label:"Office"},{value:"workshop",label:"Workshop"},{value:"observatory",label:"Observatory"}];function N2({className:l=""}){const{theme:s,setTheme:r}=A2(),m=Nt().pathname.startsWith("/command-post")?"calc(var(--titan-agents-rail-width, 16rem) + 0.75rem)":"0.75rem";return o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`
|
|
323
323
|
@media (max-width: 640px) {
|
|
324
324
|
.titan-theme-picker {
|
|
325
325
|
top: 12px !important;
|
|
@@ -334,4 +334,4 @@ Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}
|
|
|
334
334
|
padding-right: 10px !important;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
`}),o.jsx("div",{role:"tablist","aria-label":"Visual theme",className:`titan-theme-picker fixed z-50 flex gap-0 rounded-full p-0.5 ${l}`,style:{top:48,right:m,background:"var(--theme-menu-bg)",border:"1px solid var(--theme-menu-border)",fontFamily:"var(--theme-font-display)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",boxShadow:"0 6px 18px var(--theme-shadow)"},children:g2.map(y=>{const g=s===y.value;return o.jsx("button",{type:"button",role:"tab","aria-pressed":g,onClick:()=>r(y.value),style:{border:0,cursor:"pointer",padding:"5px 12px",fontSize:11,fontWeight:g?600:500,color:g?"var(--theme-menu-active-fg)":"var(--theme-ink-soft)",background:g?"var(--theme-menu-active-bg)":"transparent",borderRadius:999,transition:"background 180ms ease, color 180ms ease",letterSpacing:"0.02em",fontFamily:"var(--theme-font-display)"},children:y.label},y.value)})})]})}const b2=p.lazy(()=>fe(()=>import("./TitanCanvas-RVuBEoV1.js").then(l=>l.T),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]))),x2=p.lazy(()=>fe(()=>import("./CPLayout-VXhuxAHd.js"),[]));p.lazy(()=>fe(()=>import("./CPDashboard-CyKZGlHB.js"),__vite__mapDeps([31,32,33,34,35,21,36,23,37,38])));const S2=p.lazy(()=>fe(()=>import("./CPIssues-C1XUjgdv.js"),__vite__mapDeps([39,32,33,34,35,21,40,41,42,43,36,2,37]))),E2=p.lazy(()=>fe(()=>import("./CPApprovals-DAKmaSkN.js"),__vite__mapDeps([44,32,33,34,35,21,40,41,36,45,26,25]))),T2=p.lazy(()=>fe(()=>import("./CPActivity-DjT8p5Dn.js"),__vite__mapDeps([46,32,33,35,21,40,41,36,26,38,28]))),j2=p.lazy(()=>fe(()=>import("./CPGoals-BtcgDUY5.js"),__vite__mapDeps([47,32,33,34,35,21,40,42,43,36,2,48]))),A2=p.lazy(()=>fe(()=>import("./CPRuns-C-gZX28e.js"),__vite__mapDeps([49,32,33,34,35,21,40,36,50]))),_2=p.lazy(()=>fe(()=>import("./CPAgents-DIYCdpQR.js"),__vite__mapDeps([51,32,33,34,35,21,40,36]))),N2=p.lazy(()=>fe(()=>import("./CPOrg-JyXp44DB.js"),__vite__mapDeps([52,32,33,34,35,21,40,36,5,48]))),C2=p.lazy(()=>fe(()=>import("./CPFiles-CI252ucO.js"),__vite__mapDeps([53,24,15,11,23,3]))),w2=p.lazy(()=>fe(()=>import("./CPVoice-BXTY3vl7.js"),__vite__mapDeps([54,32,33,35,21,55,14,22,12]))),O2=p.lazy(()=>fe(()=>import("./CPCosts-CCCh_VY0.js"),__vite__mapDeps([56,32,33,34,35,21,40,42,43,36,2,38,48]))),M2=p.lazy(()=>fe(()=>import("./PersonasPanel-G5Jz55AB.js"),[])),x0=p.lazy(()=>fe(()=>import("./MemoryGraphPanel-Qle7Bodz.js"),__vite__mapDeps([57,5,23,48,11]))),z2=p.lazy(()=>fe(()=>import("./MemoryWikiPanel-CKY4HY4k.js"),__vite__mapDeps([58,35,21,59,16,11,7]))),R2=p.lazy(()=>fe(()=>import("./AutoresearchPanel-C14q_kh7.js"),__vite__mapDeps([60,15,50,61,23,62,63,16,21]))),D2=p.lazy(()=>fe(()=>import("./SelfImprovePanel-do5xDzc8.js"),__vite__mapDeps([64,23,65,16,62,63,28,21,50,6,18,48]))),U2=p.lazy(()=>fe(()=>import("./DreamPanel-B28qIraZ.js"),__vite__mapDeps([66,35,21,23]))),k2=p.lazy(()=>fe(()=>import("./TrainingPanel-43gDnkVS.js"),__vite__mapDeps([67,35,21,23,68]))),L2=p.lazy(()=>fe(()=>import("./ToolsView-C97QnPeY.js"),__vite__mapDeps([69,33]))),H2=p.lazy(()=>fe(()=>import("./SkillsPanel-B0VL9cO1.js"),__vite__mapDeps([70,35,21,11,48,68]))),q2=p.lazy(()=>fe(()=>import("./McpPanel-BizAlt2h.js"),__vite__mapDeps([71,72,23,2,4,19,48]))),B2=p.lazy(()=>fe(()=>import("./IntegrationsPanel-BmnWsnvF.js"),__vite__mapDeps([73,72,65,8,21]))),G2=p.lazy(()=>fe(()=>import("./ChannelsPanel-rF_yHmYD.js"),__vite__mapDeps([74,35,21,23,65,8]))),Y2=p.lazy(()=>fe(()=>import("./MeshPanel-D35hLDX4.js"),__vite__mapDeps([75,76,23,26]))),Q2=p.lazy(()=>fe(()=>import("./BrowserPanel-CRTJOXQV.js"),__vite__mapDeps([77,35,21]))),V2=p.lazy(()=>fe(()=>import("./RecipesPanel-DB6Kuo1a.js"),__vite__mapDeps([78,35,21,23,7,50,48]))),S0=p.lazy(()=>fe(()=>import("./SettingsPanel-Cp8decIS.js"),__vite__mapDeps([79,32,33,35,21,80,65,14,23,29,68,50,8]))),X2=p.lazy(()=>fe(()=>import("./SecurityPanel-BcnpsElV.js"),__vite__mapDeps([81,35,21]))),Z2=p.lazy(()=>fe(()=>import("./AuditPanel-TdDAyJUQ.js"),__vite__mapDeps([82,83,23,84]))),K2=p.lazy(()=>fe(()=>import("./BackupPanel-CoEbryip.js"),__vite__mapDeps([85,35,21,2,23,17,65]))),$2=p.lazy(()=>fe(()=>import("./LogsPanel-C-H_axtp.js"),__vite__mapDeps([86,23]))),J2=p.lazy(()=>fe(()=>import("./HomelabPanel-Dov1f68P.js"),__vite__mapDeps([87,35,21,88,36,33,23,16,13,4,89,5,65,29,38]))),F2=p.lazy(()=>fe(()=>import("./NvidiaPanel-Dwvf8UD2.js"),__vite__mapDeps([90,23,8,65,27,11]))),P2=p.lazy(()=>fe(()=>import("./VramPanel-nadiVKRZ.js"),__vite__mapDeps([91,35,21,23]))),W2=p.lazy(()=>fe(()=>import("./FleetPanel-eEudyOkP.js"),__vite__mapDeps([92,35,21,23,18]))),I2=p.lazy(()=>fe(()=>import("./CronPanel-DELTcCV-.js"),__vite__mapDeps([93,35,21,23,16,94,48]))),eS=p.lazy(()=>fe(()=>import("./EvalPanel-DKdn69V8.js"),__vite__mapDeps([95,35,21,23,50]))),tS=p.lazy(()=>fe(()=>import("./PhoneDeskPanel-Cx4wlgRT.js"),__vite__mapDeps([96,32,33,34,35,21,23,18,26,83]))),co=p.lazy(()=>fe(()=>import("./MissionStart-DQCW6cLo.js"),__vite__mapDeps([97,98]))),aS=p.lazy(()=>fe(()=>import("./MissionChat-BCxqk708.js"),__vite__mapDeps([99,98,100]))),nS=p.lazy(()=>fe(()=>import("./MissionCanvas-BU6dvWdk.js"),__vite__mapDeps([101,98,100]))),E0=p.lazy(()=>fe(()=>import("./MissionLibrary-DtovbHf7.js"),__vite__mapDeps([102,98]))),lS=p.lazy(()=>fe(()=>import("./VoiceOverlay-CvZcewVV.js"),__vite__mapDeps([20,21,22,14])).then(l=>({default:l.VoiceOverlay})));function Sp(){return o.jsx("div",{className:"flex items-center justify-center h-full",children:o.jsx("div",{className:"text-sm font-serif",style:{color:"#c4b49a"},children:"Loading..."})})}function iS(){const{isOpen:l,close:s}=qx(),[r,c]=p.useState(null);return p.useEffect(()=>{yt("/api/onboarding/status").then(d=>d.json()).then(d=>c(d.onboarded!==!1)).catch(()=>c(!0))},[]),r===null?o.jsx(Ou,{noMotes:!0,children:o.jsx("div",{className:"flex items-center justify-center h-full",children:o.jsx("div",{className:"text-sm font-serif",style:{color:"#c4b49a"},children:"Loading..."})})}):r?o.jsx(Ou,{noMotes:!0,children:o.jsx(zx,{children:o.jsxs(cb,{children:[o.jsx(uS,{}),o.jsx(d2,{children:o.jsx(p.Suspense,{fallback:o.jsx(Sp,{}),children:o.jsxs(K1,{children:[o.jsx(te,{path:"/",element:o.jsx(co,{})}),o.jsx(te,{path:"/dashboard",element:o.jsx(_t,{to:"/missions",replace:!0})}),o.jsx(te,{path:"/missions",element:o.jsx(co,{})}),o.jsx(te,{path:"/missions/library",element:o.jsx(E0,{})}),o.jsx(te,{path:"/missions/goals",element:o.jsx(Ra,{title:"Goals",children:o.jsx(j2,{})})}),o.jsx(te,{path:"/missions/issues",element:o.jsx(Ra,{title:"Issues",children:o.jsx(S2,{})})}),o.jsx(te,{path:"/missions/approvals",element:o.jsx(Ra,{title:"Approvals",children:o.jsx(E2,{})})}),o.jsx(te,{path:"/missions/activity",element:o.jsx(Ra,{title:"Activity",children:o.jsx(T2,{})})}),o.jsx(te,{path:"/missions/work",element:o.jsx(Ra,{title:"Work",children:o.jsx(A2,{})})}),o.jsx(te,{path:"/team",element:o.jsx(_t,{to:"/team/agents",replace:!0})}),o.jsx(te,{path:"/team/agents",element:o.jsx(Ra,{title:"Agents",children:o.jsx(_2,{})})}),o.jsx(te,{path:"/team/org-chart",element:o.jsx(Ra,{title:"Org Chart",children:o.jsx(N2,{})})}),o.jsx(te,{path:"/team/personas",element:o.jsx(M2,{})}),o.jsx(te,{path:"/knowledge",element:o.jsx(x0,{})}),o.jsx(te,{path:"/knowledge/memory-graph",element:o.jsx(x0,{})}),o.jsx(te,{path:"/knowledge/wiki",element:o.jsx(z2,{})}),o.jsx(te,{path:"/knowledge/autoresearch",element:o.jsx(R2,{})}),o.jsx(te,{path:"/knowledge/self-improve",element:o.jsx(D2,{})}),o.jsx(te,{path:"/knowledge/dreams",element:o.jsx(U2,{})}),o.jsx(te,{path:"/knowledge/training",element:o.jsx(k2,{})}),o.jsx(te,{path:"/tools",element:o.jsx(L2,{})}),o.jsx(te,{path:"/tools/skills",element:o.jsx(H2,{})}),o.jsx(te,{path:"/tools/mcp",element:o.jsx(q2,{})}),o.jsx(te,{path:"/tools/integrations",element:o.jsx(B2,{})}),o.jsx(te,{path:"/tools/channels",element:o.jsx(G2,{})}),o.jsx(te,{path:"/tools/mesh",element:o.jsx(Y2,{})}),o.jsx(te,{path:"/tools/browser",element:o.jsx(Q2,{})}),o.jsx(te,{path:"/tools/recipes",element:o.jsx(V2,{})}),o.jsx(te,{path:"/tools/files",element:o.jsx(C2,{})}),o.jsx(te,{path:"/tools/voice",element:o.jsx(w2,{})}),o.jsx(te,{path:"/tools/phone-desk",element:o.jsx(tS,{})}),o.jsx(te,{path:"/system",element:o.jsx(S0,{})}),o.jsx(te,{path:"/system/settings",element:o.jsx(S0,{})}),o.jsx(te,{path:"/system/security",element:o.jsx(X2,{})}),o.jsx(te,{path:"/system/costs",element:o.jsx(Ra,{title:"Costs",children:o.jsx(O2,{})})}),o.jsx(te,{path:"/system/audit",element:o.jsx(Z2,{})}),o.jsx(te,{path:"/system/backup-recovery",element:o.jsx(K2,{})}),o.jsx(te,{path:"/system/logs",element:o.jsx($2,{})}),o.jsx(te,{path:"/system/homelab",element:o.jsx(J2,{})}),o.jsx(te,{path:"/system/gpu",element:o.jsx(F2,{})}),o.jsx(te,{path:"/system/vram",element:o.jsx(P2,{})}),o.jsx(te,{path:"/system/fleet",element:o.jsx(W2,{})}),o.jsx(te,{path:"/system/cron",element:o.jsx(I2,{})}),o.jsx(te,{path:"/system/quality-lab",element:o.jsx(eS,{})}),o.jsx(te,{path:"/soma",element:o.jsx(_t,{to:"/knowledge",replace:!0})}),o.jsx(te,{path:"/intelligence",element:o.jsx(_t,{to:"/knowledge",replace:!0})}),o.jsx(te,{path:"/infra",element:o.jsx(_t,{to:"/system",replace:!0})}),o.jsx(te,{path:"/settings",element:o.jsx(_t,{to:"/system/settings",replace:!0})}),o.jsx(te,{path:"/watch",element:o.jsx(_t,{to:"/missions/activity",replace:!0})}),o.jsx(te,{path:"/projects",element:o.jsx(_t,{to:"/missions/work",replace:!0})}),o.jsx(te,{path:"/issues",element:o.jsx(_t,{to:"/missions/issues",replace:!0})}),o.jsx(te,{path:"/goals",element:o.jsx(_t,{to:"/missions/goals",replace:!0})}),o.jsx(te,{path:"/approvals",element:o.jsx(_t,{to:"/missions/approvals",replace:!0})}),o.jsx(te,{path:"/activity",element:o.jsx(_t,{to:"/missions/activity",replace:!0})}),o.jsx(te,{path:"/command-post/*",element:o.jsx(Ra,{title:"Command Post",children:o.jsx(x2,{})})}),o.jsx(te,{path:"/mission",element:o.jsx(co,{})}),o.jsx(te,{path:"/mission/library",element:o.jsx(E0,{})}),o.jsx(te,{path:"/mission/:id",element:o.jsx(aS,{})}),o.jsx(te,{path:"/mission/:id/canvas",element:o.jsx(nS,{})}),o.jsx(te,{path:"/space",element:o.jsx(_t,{to:"/space/home",replace:!0})}),o.jsx(te,{path:"/space/:spaceId",element:o.jsx(b2,{})}),o.jsx(te,{path:"*",element:o.jsx(_t,{to:"/",replace:!0})})]})})}),o.jsx(Lx,{}),o.jsx(kx,{}),l&&o.jsx(p.Suspense,{fallback:null,children:o.jsx(lS,{onClose:s})}),o.jsx("div",{className:"fixed bottom-1.5 left-0 right-0 flex justify-center pointer-events-none",style:{zIndex:2147483647},children:o.jsx("div",{className:"pointer-events-auto px-3 py-1 rounded-full bg-black/55 backdrop-blur-md shadow-lg",children:o.jsx(Gx,{})})})]})})}):o.jsx(Ux,{onComplete:()=>c(!0)})}function Ra({children:l,title:s}){const[r,c]=p.useState(null);return p.useEffect(()=>{let d=!1;return yt("/api/config").then(m=>m.json()).then(m=>{var y;d||c(!!((y=m.commandPost)!=null&&y.enabled))}).catch(()=>{d||c(!1)}),()=>{d=!0}},[]),r===null?o.jsx(Sp,{}):r?o.jsx(o.Fragment,{children:l}):o.jsx("div",{className:"flex min-h-full items-center justify-center px-6 py-16",children:o.jsxs("div",{className:"max-w-md rounded-md border border-border bg-bg-secondary/80 p-6 text-center shadow-lg",children:[o.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.14em] text-text-muted",children:"Command Post is off"}),o.jsxs("h1",{className:"mb-3 text-2xl font-semibold text-text",children:[s," is not active yet"]}),o.jsx("p",{className:"mb-5 text-sm leading-relaxed text-text-secondary",children:"This view uses Command Post governance. Enable Command Post when you want managed agents, approval queues, activity tracking, and budget controls."}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[o.jsx(Yn,{to:"/missions",className:"rounded-md border border-border bg-bg-tertiary px-4 py-2 text-sm font-medium text-text hover:border-border-light",children:"Start a mission"}),o.jsx(Yn,{to:"/system/settings",className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent-hover",children:"Open settings"})]})]})})}function sS(){return o.jsx(Hx,{children:o.jsx(iS,{})})}function uS(){const l=Nt();return p.useEffect(()=>{const s=l.pathname;Do("feature_opened",{feature:s})},[l.pathname]),null}function rS(){const{isAuthenticated:l,isLoading:s}=sp();return s?o.jsx(Ou,{noMotes:!0,children:o.jsx("div",{className:"flex items-center justify-center h-full",children:o.jsx("div",{className:"text-sm font-serif",style:{color:"#c4b49a"},children:"Loading..."})})}):l?o.jsx(sS,{}):o.jsx(Rx,{})}function cS(){return p2(),o.jsxs(fb,{children:[o.jsx(rS,{}),o.jsx(v2,{})]})}const oS=new eb({defaultOptions:{queries:{staleTime:1e3*30,gcTime:1e3*60*5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(l,s)=>(s==null?void 0:s.status)>=400&&(s==null?void 0:s.status)<500?!1:l<2},mutations:{retry:!1}}});class fS extends p.Component{constructor(){super(...arguments);Dm(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}render(){return this.state.error?o.jsxs("div",{style:{padding:40,color:"var(--color-error)",fontFamily:"monospace",background:"var(--color-bg)",minHeight:"100vh"},children:[o.jsx("h1",{style:{fontSize:20,marginBottom:16},children:"TITAN UI Error"}),o.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:13,color:"var(--color-text)"},children:this.state.error.message}),o.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:11,color:"var(--color-text-muted)",marginTop:12},children:this.state.error.stack})]}):this.props.children}}Fg.createRoot(document.getElementById("root")).render(o.jsx(p.StrictMode,{children:o.jsx(fS,{children:o.jsx(h2,{children:o.jsxs(ab,{client:oS,children:[o.jsx(vv,{children:o.jsx(cS,{})}),o.jsx(ib,{initialIsOpen:!1})]})})})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{});export{i5 as $,vb as A,jb as B,bo as C,Yn as D,Bb as E,p5 as F,Qb as G,$b as H,Fb as I,_4 as J,xo as K,ex as L,ax as M,_t as N,E5 as O,T5 as P,d5 as Q,Nu as R,ox as S,gx as T,Tx as U,_b as V,Cx as W,Uo as X,j5 as Y,fp as Z,fe as _,hS as a,v4 as a$,h5 as a0,U5 as a1,s5 as a2,c5 as a3,u5 as a4,DS as a5,US as a6,so as a7,np as a8,sb as a9,WS as aA,zS as aB,ux as aC,Ub as aD,RS as aE,t5 as aF,e5 as aG,n5 as aH,a5 as aI,QS as aJ,VS as aK,Cb as aL,f0 as aM,Z5 as aN,X5 as aO,K5 as aP,MS as aQ,I5 as aR,p4 as aS,a4 as aT,n4 as aU,l4 as aV,E4 as aW,T4 as aX,j4 as aY,A4 as aZ,g4 as a_,o4 as aa,c4 as ab,f4 as ac,d4 as ad,$5 as ae,J5 as af,ES as ag,LS as ah,YS as ai,HS as aj,GS as ak,BS as al,qS as am,Hb as an,TS as ao,jS as ap,AS as aq,_S as ar,NS as as,CS as at,wS as au,OS as av,y4 as aw,F5 as ax,W5 as ay,P5 as az,yt as b,b4 as b0,x4 as b1,S4 as b2,Uu as b3,To as b4,Kg as b5,_5 as b6,z5 as b7,R5 as b8,D5 as b9,pS as bA,e4 as bB,t4 as bC,M5 as bD,i4 as bE,s4 as bF,u4 as bG,r4 as bH,y5 as bI,o5 as bJ,dx as bK,k5 as bL,H5 as bM,L5 as bN,N5 as bO,q5 as bP,V5 as bQ,B5 as bR,G5 as bS,Y5 as bT,Q5 as bU,g5 as ba,b5 as bb,v5 as bc,r5 as bd,A5 as be,x5 as bf,h4 as bg,m4 as bh,Sx as bi,XS as bj,ZS as bk,FS as bl,KS as bm,$S as bn,JS as bo,PS as bp,kS as bq,w5 as br,C5 as bs,O5 as bt,IS as bu,SS as bv,gS as bw,vS as bx,xS as by,bS as bz,ve as c,Nt as d,sp as e,c0 as f,Bg as g,mx as h,Ob as i,o as j,vo as k,Rb as l,_x as m,Xb as n,r0 as o,mS as p,K1 as q,p as r,yS as s,Do as t,_o as u,te as v,l5 as w,f5 as x,m5 as y,S5 as z};
|
|
337
|
+
`}),o.jsx("div",{role:"tablist","aria-label":"Visual theme",className:`titan-theme-picker fixed z-50 flex gap-0 rounded-full p-0.5 ${l}`,style:{top:48,right:m,background:"var(--theme-menu-bg)",border:"1px solid var(--theme-menu-border)",fontFamily:"var(--theme-font-display)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",boxShadow:"0 6px 18px var(--theme-shadow)"},children:_2.map(y=>{const g=s===y.value;return o.jsx("button",{type:"button",role:"tab","aria-pressed":g,onClick:()=>r(y.value),style:{border:0,cursor:"pointer",padding:"5px 12px",fontSize:11,fontWeight:g?600:500,color:g?"var(--theme-menu-active-fg)":"var(--theme-ink-soft)",background:g?"var(--theme-menu-active-bg)":"transparent",borderRadius:999,transition:"background 180ms ease, color 180ms ease",letterSpacing:"0.02em",fontFamily:"var(--theme-font-display)"},children:y.label},y.value)})})]})}const C2=p.lazy(()=>fe(()=>import("./TitanCanvas-D7KEvDFz.js").then(l=>l.T),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]))),w2=p.lazy(()=>fe(()=>import("./CPLayout-B2Odh1We.js"),[]));p.lazy(()=>fe(()=>import("./CPDashboard-BZN7lJ4t.js"),__vite__mapDeps([31,32,33,34,35,21,36,23,37,38])));const O2=p.lazy(()=>fe(()=>import("./CPIssues-DpeO_37Y.js"),__vite__mapDeps([39,32,33,34,35,21,40,41,42,43,36,2,37]))),M2=p.lazy(()=>fe(()=>import("./CPApprovals-UJ-Rs0IT.js"),__vite__mapDeps([44,32,33,34,35,21,40,41,36,45,26,25]))),z2=p.lazy(()=>fe(()=>import("./CPActivity-BDsBsGAV.js"),__vite__mapDeps([46,32,33,35,21,40,41,36,26,38,28]))),R2=p.lazy(()=>fe(()=>import("./CPGoals-Bvzkk8W6.js"),__vite__mapDeps([47,32,33,34,35,21,40,42,43,36,2,48]))),D2=p.lazy(()=>fe(()=>import("./CPRuns-LfgKZcY5.js"),__vite__mapDeps([49,32,33,34,35,21,40,36,50]))),k2=p.lazy(()=>fe(()=>import("./CPAgents-DO7kdGWL.js"),__vite__mapDeps([51,32,33,34,35,21,40,36]))),U2=p.lazy(()=>fe(()=>import("./CPOrg-CZaFupL_.js"),__vite__mapDeps([52,32,33,34,35,21,40,36,5,48]))),L2=p.lazy(()=>fe(()=>import("./CPFiles-Bx4ttNJ8.js"),__vite__mapDeps([53,24,15,11,23,3]))),H2=p.lazy(()=>fe(()=>import("./CPVoice-CJfW9Rmi.js"),__vite__mapDeps([54,32,33,35,21,55,14,22,12]))),q2=p.lazy(()=>fe(()=>import("./CPCosts-C7ZevZP2.js"),__vite__mapDeps([56,32,33,34,35,21,40,42,43,36,2,38,48]))),B2=p.lazy(()=>fe(()=>import("./PersonasPanel-DzJFmfaz.js"),[])),x0=p.lazy(()=>fe(()=>import("./MemoryGraphPanel-CtWA8YuJ.js"),__vite__mapDeps([57,5,23,48,11]))),G2=p.lazy(()=>fe(()=>import("./MemoryWikiPanel-Cqps7hGG.js"),__vite__mapDeps([58,35,21,59,16,11,7]))),Y2=p.lazy(()=>fe(()=>import("./AutoresearchPanel-BYffkknO.js"),__vite__mapDeps([60,15,50,61,23,62,63,16,21]))),Q2=p.lazy(()=>fe(()=>import("./SelfImprovePanel-Burrv2Jw.js"),__vite__mapDeps([64,23,65,16,62,63,28,21,50,6,18,48]))),V2=p.lazy(()=>fe(()=>import("./DreamPanel-DfczImsZ.js"),__vite__mapDeps([66,35,21,23]))),X2=p.lazy(()=>fe(()=>import("./TrainingPanel-CS9oWB58.js"),__vite__mapDeps([67,35,21,23,68]))),Z2=p.lazy(()=>fe(()=>import("./ToolsView-CDeB3RtS.js"),__vite__mapDeps([69,33]))),$2=p.lazy(()=>fe(()=>import("./SkillsPanel-BXyiyd7F.js"),__vite__mapDeps([70,35,21,11,48,68]))),K2=p.lazy(()=>fe(()=>import("./McpPanel-D1v3LwyX.js"),__vite__mapDeps([71,72,23,2,4,19,48]))),J2=p.lazy(()=>fe(()=>import("./IntegrationsPanel-DLfYHy7-.js"),__vite__mapDeps([73,72,65,8,21]))),F2=p.lazy(()=>fe(()=>import("./ChannelsPanel-C2BO3kax.js"),__vite__mapDeps([74,35,21,23,65,8]))),P2=p.lazy(()=>fe(()=>import("./MeshPanel-BNBI60Kh.js"),__vite__mapDeps([75,76,23,26]))),W2=p.lazy(()=>fe(()=>import("./BrowserPanel-CpcHkt_q.js"),__vite__mapDeps([77,35,21]))),I2=p.lazy(()=>fe(()=>import("./RecipesPanel-sG2wIUOY.js"),__vite__mapDeps([78,35,21,23,7,50,48]))),S0=p.lazy(()=>fe(()=>import("./SettingsPanel-E5WyEqka.js"),__vite__mapDeps([79,32,33,35,21,80,65,14,23,29,68,50,8]))),eS=p.lazy(()=>fe(()=>import("./SecurityPanel-R8QcTvYn.js"),__vite__mapDeps([81,35,21]))),tS=p.lazy(()=>fe(()=>import("./AuditPanel-srKuRJBx.js"),__vite__mapDeps([82,83,23,84]))),aS=p.lazy(()=>fe(()=>import("./BackupPanel-BpqVqS2y.js"),__vite__mapDeps([85,35,21,2,23,17,65]))),nS=p.lazy(()=>fe(()=>import("./LogsPanel-YDE1-OQU.js"),__vite__mapDeps([86,23]))),lS=p.lazy(()=>fe(()=>import("./HomelabPanel-C_Kpp-jq.js"),__vite__mapDeps([87,35,21,88,36,33,23,16,13,4,89,5,65,29,38]))),iS=p.lazy(()=>fe(()=>import("./NvidiaPanel-BhSsBbMG.js"),__vite__mapDeps([90,23,8,65,27,11]))),sS=p.lazy(()=>fe(()=>import("./VramPanel-BNOFAvif.js"),__vite__mapDeps([91,35,21,23]))),uS=p.lazy(()=>fe(()=>import("./FleetPanel-01gxZlxR.js"),__vite__mapDeps([92,35,21,23,18]))),rS=p.lazy(()=>fe(()=>import("./CronPanel-DGraqIbo.js"),__vite__mapDeps([93,35,21,23,16,94,48]))),cS=p.lazy(()=>fe(()=>import("./EvalPanel-DDDTr1W8.js"),__vite__mapDeps([95,35,21,23,50]))),oS=p.lazy(()=>fe(()=>import("./PhoneDeskPanel-DZDPkVmm.js"),__vite__mapDeps([96,32,33,34,35,21,23,18,26,83]))),co=p.lazy(()=>fe(()=>import("./MissionStart-ClQzNvvk.js"),__vite__mapDeps([97,98]))),fS=p.lazy(()=>fe(()=>import("./MissionChat-BhdcG_8G.js"),__vite__mapDeps([99,98,100]))),dS=p.lazy(()=>fe(()=>import("./MissionCanvas-CPmsOHNs.js"),__vite__mapDeps([101,98,100]))),E0=p.lazy(()=>fe(()=>import("./MissionLibrary-Deks4dm7.js"),__vite__mapDeps([102,98]))),hS=p.lazy(()=>fe(()=>import("./VoiceOverlay-BeQ9oiym.js"),__vite__mapDeps([20,21,22,14])).then(l=>({default:l.VoiceOverlay})));function Ep(){return o.jsx("div",{className:"flex items-center justify-center h-full",children:o.jsx("div",{className:"text-sm font-serif",style:{color:"#c4b49a"},children:"Loading..."})})}function mS(){const{isOpen:l,close:s}=Bx(),[r,c]=p.useState(null);return p.useEffect(()=>{yt("/api/onboarding/status").then(d=>d.json()).then(d=>c(d.onboarded!==!1)).catch(()=>c(!0))},[]),r===null?o.jsx(Ou,{noMotes:!0,children:o.jsx("div",{className:"flex items-center justify-center h-full",children:o.jsx("div",{className:"text-sm font-serif",style:{color:"#c4b49a"},children:"Loading..."})})}):r?o.jsx(Ou,{noMotes:!0,children:o.jsx(Rx,{children:o.jsxs(ob,{children:[o.jsx(yS,{}),o.jsx(S2,{children:o.jsx(p.Suspense,{fallback:o.jsx(Ep,{}),children:o.jsxs(K1,{children:[o.jsx(te,{path:"/",element:o.jsx(co,{})}),o.jsx(te,{path:"/dashboard",element:o.jsx(_t,{to:"/missions",replace:!0})}),o.jsx(te,{path:"/missions",element:o.jsx(co,{})}),o.jsx(te,{path:"/missions/library",element:o.jsx(E0,{})}),o.jsx(te,{path:"/missions/goals",element:o.jsx(Ra,{title:"Goals",children:o.jsx(R2,{})})}),o.jsx(te,{path:"/missions/issues",element:o.jsx(Ra,{title:"Issues",children:o.jsx(O2,{})})}),o.jsx(te,{path:"/missions/approvals",element:o.jsx(Ra,{title:"Approvals",children:o.jsx(M2,{})})}),o.jsx(te,{path:"/missions/activity",element:o.jsx(Ra,{title:"Activity",children:o.jsx(z2,{})})}),o.jsx(te,{path:"/missions/work",element:o.jsx(Ra,{title:"Work",children:o.jsx(D2,{})})}),o.jsx(te,{path:"/team",element:o.jsx(_t,{to:"/team/agents",replace:!0})}),o.jsx(te,{path:"/team/agents",element:o.jsx(Ra,{title:"Agents",children:o.jsx(k2,{})})}),o.jsx(te,{path:"/team/org-chart",element:o.jsx(Ra,{title:"Org Chart",children:o.jsx(U2,{})})}),o.jsx(te,{path:"/team/personas",element:o.jsx(B2,{})}),o.jsx(te,{path:"/knowledge",element:o.jsx(x0,{})}),o.jsx(te,{path:"/knowledge/memory-graph",element:o.jsx(x0,{})}),o.jsx(te,{path:"/knowledge/wiki",element:o.jsx(G2,{})}),o.jsx(te,{path:"/knowledge/autoresearch",element:o.jsx(Y2,{})}),o.jsx(te,{path:"/knowledge/self-improve",element:o.jsx(Q2,{})}),o.jsx(te,{path:"/knowledge/dreams",element:o.jsx(V2,{})}),o.jsx(te,{path:"/knowledge/training",element:o.jsx(X2,{})}),o.jsx(te,{path:"/tools",element:o.jsx(Z2,{})}),o.jsx(te,{path:"/tools/skills",element:o.jsx($2,{})}),o.jsx(te,{path:"/tools/mcp",element:o.jsx(K2,{})}),o.jsx(te,{path:"/tools/integrations",element:o.jsx(J2,{})}),o.jsx(te,{path:"/tools/channels",element:o.jsx(F2,{})}),o.jsx(te,{path:"/tools/mesh",element:o.jsx(P2,{})}),o.jsx(te,{path:"/tools/browser",element:o.jsx(W2,{})}),o.jsx(te,{path:"/tools/recipes",element:o.jsx(I2,{})}),o.jsx(te,{path:"/tools/files",element:o.jsx(L2,{})}),o.jsx(te,{path:"/tools/voice",element:o.jsx(H2,{})}),o.jsx(te,{path:"/tools/phone-desk",element:o.jsx(oS,{})}),o.jsx(te,{path:"/system",element:o.jsx(S0,{})}),o.jsx(te,{path:"/system/settings",element:o.jsx(S0,{})}),o.jsx(te,{path:"/system/security",element:o.jsx(eS,{})}),o.jsx(te,{path:"/system/costs",element:o.jsx(Ra,{title:"Costs",children:o.jsx(q2,{})})}),o.jsx(te,{path:"/system/audit",element:o.jsx(tS,{})}),o.jsx(te,{path:"/system/backup-recovery",element:o.jsx(aS,{})}),o.jsx(te,{path:"/system/logs",element:o.jsx(nS,{})}),o.jsx(te,{path:"/system/homelab",element:o.jsx(lS,{})}),o.jsx(te,{path:"/system/gpu",element:o.jsx(iS,{})}),o.jsx(te,{path:"/system/vram",element:o.jsx(sS,{})}),o.jsx(te,{path:"/system/fleet",element:o.jsx(uS,{})}),o.jsx(te,{path:"/system/cron",element:o.jsx(rS,{})}),o.jsx(te,{path:"/system/quality-lab",element:o.jsx(cS,{})}),o.jsx(te,{path:"/soma",element:o.jsx(_t,{to:"/knowledge",replace:!0})}),o.jsx(te,{path:"/intelligence",element:o.jsx(_t,{to:"/knowledge",replace:!0})}),o.jsx(te,{path:"/infra",element:o.jsx(_t,{to:"/system",replace:!0})}),o.jsx(te,{path:"/settings",element:o.jsx(_t,{to:"/system/settings",replace:!0})}),o.jsx(te,{path:"/watch",element:o.jsx(_t,{to:"/missions/activity",replace:!0})}),o.jsx(te,{path:"/projects",element:o.jsx(_t,{to:"/missions/work",replace:!0})}),o.jsx(te,{path:"/issues",element:o.jsx(_t,{to:"/missions/issues",replace:!0})}),o.jsx(te,{path:"/goals",element:o.jsx(_t,{to:"/missions/goals",replace:!0})}),o.jsx(te,{path:"/approvals",element:o.jsx(_t,{to:"/missions/approvals",replace:!0})}),o.jsx(te,{path:"/activity",element:o.jsx(_t,{to:"/missions/activity",replace:!0})}),o.jsx(te,{path:"/command-post/*",element:o.jsx(Ra,{title:"Command Post",children:o.jsx(w2,{})})}),o.jsx(te,{path:"/mission",element:o.jsx(co,{})}),o.jsx(te,{path:"/mission/library",element:o.jsx(E0,{})}),o.jsx(te,{path:"/mission/:id",element:o.jsx(fS,{})}),o.jsx(te,{path:"/mission/:id/canvas",element:o.jsx(dS,{})}),o.jsx(te,{path:"/space",element:o.jsx(_t,{to:"/space/home",replace:!0})}),o.jsx(te,{path:"/space/:spaceId",element:o.jsx(C2,{})}),o.jsx(te,{path:"*",element:o.jsx(_t,{to:"/",replace:!0})})]})})}),o.jsx(Hx,{}),o.jsx(Lx,{}),l&&o.jsx(p.Suspense,{fallback:null,children:o.jsx(hS,{onClose:s})}),o.jsx("div",{className:"fixed bottom-1.5 left-0 right-0 flex justify-center pointer-events-none",style:{zIndex:2147483647},children:o.jsxs("div",{className:"pointer-events-auto px-3 py-1 rounded-full bg-black/55 backdrop-blur-md shadow-lg inline-flex items-center gap-3",children:[o.jsx(Yx,{}),o.jsx("span",{"aria-hidden":!0,className:"h-3 w-px bg-white/20"}),o.jsx(Jx,{})]})})]})})}):o.jsx(Ux,{onComplete:()=>c(!0)})}function Ra({children:l,title:s}){const[r,c]=p.useState(null);return p.useEffect(()=>{let d=!1;return yt("/api/config").then(m=>m.json()).then(m=>{var y;d||c(!!((y=m.commandPost)!=null&&y.enabled))}).catch(()=>{d||c(!1)}),()=>{d=!0}},[]),r===null?o.jsx(Ep,{}):r?o.jsx(o.Fragment,{children:l}):o.jsx("div",{className:"flex min-h-full items-center justify-center px-6 py-16",children:o.jsxs("div",{className:"max-w-md rounded-md border border-border bg-bg-secondary/80 p-6 text-center shadow-lg",children:[o.jsx("div",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.14em] text-text-muted",children:"Command Post is off"}),o.jsxs("h1",{className:"mb-3 text-2xl font-semibold text-text",children:[s," is not active yet"]}),o.jsx("p",{className:"mb-5 text-sm leading-relaxed text-text-secondary",children:"This view uses Command Post governance. Enable Command Post when you want managed agents, approval queues, activity tracking, and budget controls."}),o.jsxs("div",{className:"flex flex-wrap justify-center gap-2",children:[o.jsx(Yn,{to:"/missions",className:"rounded-md border border-border bg-bg-tertiary px-4 py-2 text-sm font-medium text-text hover:border-border-light",children:"Start a mission"}),o.jsx(Yn,{to:"/system/settings",className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-white hover:bg-accent-hover",children:"Open settings"})]})]})})}function pS(){return o.jsx(qx,{children:o.jsx(mS,{})})}function yS(){const l=Nt();return p.useEffect(()=>{const s=l.pathname;Do("feature_opened",{feature:s})},[l.pathname]),null}function gS(){const{isAuthenticated:l,isLoading:s}=sp();return s?o.jsx(Ou,{noMotes:!0,children:o.jsx("div",{className:"flex items-center justify-center h-full",children:o.jsx("div",{className:"text-sm font-serif",style:{color:"#c4b49a"},children:"Loading..."})})}):l?o.jsx(pS,{}):o.jsx(Dx,{})}function vS(){return j2(),o.jsxs(db,{children:[o.jsx(gS,{}),o.jsx(N2,{})]})}const bS=new tb({defaultOptions:{queries:{staleTime:1e3*30,gcTime:1e3*60*5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(l,s)=>(s==null?void 0:s.status)>=400&&(s==null?void 0:s.status)<500?!1:l<2},mutations:{retry:!1}}});class xS extends p.Component{constructor(){super(...arguments);Dm(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}render(){return this.state.error?o.jsxs("div",{style:{padding:40,color:"var(--color-error)",fontFamily:"monospace",background:"var(--color-bg)",minHeight:"100vh"},children:[o.jsx("h1",{style:{fontSize:20,marginBottom:16},children:"TITAN UI Error"}),o.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:13,color:"var(--color-text)"},children:this.state.error.message}),o.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:11,color:"var(--color-text-muted)",marginTop:12},children:this.state.error.stack})]}):this.props.children}}Pg.createRoot(document.getElementById("root")).render(o.jsx(p.StrictMode,{children:o.jsx(xS,{children:o.jsx(E2,{children:o.jsxs(nb,{client:bS,children:[o.jsx(bv,{children:o.jsx(vS,{})}),o.jsx(sb,{initialIsOpen:!1})]})})})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{});export{m5 as $,bb as A,Ab as B,bo as C,Yn as D,Gb as E,j5 as F,Vb as G,Jb as H,Pb as I,k4 as J,xo as K,tx as L,nx as M,_t as N,M5 as O,z5 as P,S5 as Q,Nu as R,fx as S,vx as T,jx as U,Nb as V,wx as W,ko as X,R5 as Y,fp as Z,fe as _,ES as a,N4 as a$,E5 as a0,V5 as a1,p5 as a2,v5 as a3,y5 as a4,QS as a5,VS as a6,so as a7,np as a8,ub as a9,u5 as aA,GS as aB,rx as aC,Ub as aD,YS as aE,o5 as aF,c5 as aG,d5 as aH,f5 as aI,WS as aJ,IS as aK,wb as aL,f0 as aM,t4 as aN,e4 as aO,a4 as aP,BS as aQ,r4 as aR,j4 as aS,f4 as aT,d4 as aU,h4 as aV,M4 as aW,z4 as aX,R4 as aY,D4 as aZ,_4 as a_,b4 as aa,v4 as ab,x4 as ac,S4 as ad,n4 as ae,l4 as af,MS as ag,ZS as ah,PS as ai,$S as aj,FS as ak,JS as al,KS as am,qb as an,zS as ao,RS as ap,DS as aq,kS as ar,US as as,LS as at,HS as au,qS as av,A4 as aw,i4 as ax,u4 as ay,s4 as az,yt as b,C4 as b0,w4 as b1,O4 as b2,ku as b3,To as b4,Kg as b5,k5 as b6,G5 as b7,Y5 as b8,Q5 as b9,jS as bA,c4 as bB,o4 as bC,B5 as bD,m4 as bE,p4 as bF,y4 as bG,g4 as bH,A5 as bI,b5 as bJ,hx as bK,X5 as bL,$5 as bM,Z5 as bN,U5 as bO,K5 as bP,I5 as bQ,J5 as bR,F5 as bS,P5 as bT,W5 as bU,_5 as ba,C5 as bb,N5 as bc,g5 as bd,D5 as be,w5 as bf,E4 as bg,T4 as bh,Ex as bi,e5 as bj,t5 as bk,i5 as bl,a5 as bm,n5 as bn,l5 as bo,s5 as bp,XS as bq,H5 as br,L5 as bs,q5 as bt,r5 as bu,OS as bv,_S as bw,NS as bx,wS as by,CS as bz,ve as c,Nt as d,sp as e,c0 as f,Gg as g,px as h,Mb as i,o as j,vo as k,Db as l,Nx as m,Zb as n,r0 as o,TS as p,K1 as q,p as r,AS as s,Do as t,_o as u,te as v,h5 as w,x5 as x,T5 as y,O5 as z};
|