claude-code-zanii 2.8.4
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/README.md +146 -0
- package/dist/chunks/AddWorkspaceDirectory-y_rd6sRl.js +1 -0
- package/dist/chunks/App-DgWSavG1.js +1 -0
- package/dist/chunks/ApproveApiKey-CJKWha-a.js +1 -0
- package/dist/chunks/ApproveApiKey-DTs2ExZH.js +1 -0
- package/dist/chunks/AssistantSessionChooser-BAhVk4id.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-XU_JPh7R.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-DV0Pi7ys.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-6erm_8Fn.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-CjBvzB5s.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-ts0XnWwl.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-DySPdSqQ.js +1 -0
- package/dist/chunks/CustomSelect-DqZxzBZP.js +1 -0
- package/dist/chunks/DesktopHandoff-5c90JK88.js +1 -0
- package/dist/chunks/DevChannelsDialog-DCMderzu.js +1 -0
- package/dist/chunks/Dialog-Dgg8bqcG.js +1 -0
- package/dist/chunks/DiffDialog-BU765aqh.js +6 -0
- package/dist/chunks/Doctor-B73iDB-d.js +3 -0
- package/dist/chunks/Doctor-CLZDdNRo.js +1 -0
- package/dist/chunks/ExitFlow-DBqn2mUf.js +2 -0
- package/dist/chunks/Feedback-D-JHabwi.js +2 -0
- package/dist/chunks/Grove-D-uQNMMo.js +11 -0
- package/dist/chunks/HybridTransport-B-G4QJcy.js +4 -0
- package/dist/chunks/ITermBackend-KP1vKsRN.js +1 -0
- package/dist/chunks/InProcessTransport-ByBEKxrQ.js +1 -0
- package/dist/chunks/InvalidConfigDialog-CMqiZ5nG.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-CjPCKzVZ.js +1 -0
- package/dist/chunks/ListItem-B6MyhHvM.js +1 -0
- package/dist/chunks/MCPConnectionManager-BJ8PcYPe.js +1 -0
- package/dist/chunks/Message-DNxJ_tMS.js +1 -0
- package/dist/chunks/MessageSelector-D79Ug71B.js +3 -0
- package/dist/chunks/Messages-CtIbkB2M.js +11 -0
- package/dist/chunks/Onboarding-DVrgKrI9.js +1 -0
- package/dist/chunks/OverageCreditUpsell-D_td1ss4.js +1 -0
- package/dist/chunks/PermissionDialog-BCS22yEO.js +1 -0
- package/dist/chunks/PermissionDialog-C5O1fL53.js +1 -0
- package/dist/chunks/PermissionRequestTitle-CtlbBU9t.js +1 -0
- package/dist/chunks/PluginSettings-OPrg-_3N.js +17 -0
- package/dist/chunks/PressEnterToContinue-DmzxIgbZ.js +1 -0
- package/dist/chunks/PromptInputFooterSuggestions-CcsKj5DK.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-JedFdsxU.js +1 -0
- package/dist/chunks/REPL-ByhyIRnf.js +1 -0
- package/dist/chunks/REPL-Clve-8zC.js +157 -0
- package/dist/chunks/RemoteCallout-BZcabEKb.js +1 -0
- package/dist/chunks/RemoteSessionManager-C2PIFDHt.js +1 -0
- package/dist/chunks/ResumeConversation-D3ZRTFcF.js +1 -0
- package/dist/chunks/SSETransport-DmZWnH0k.js +4 -0
- package/dist/chunks/SearchBox-DQg2Ph0V.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-CLO4nt6N.js +1 -0
- package/dist/chunks/SentryErrorBoundary-BVfBaOOU.js +2 -0
- package/dist/chunks/SentryErrorBoundary-DIaVFad-.js +1 -0
- package/dist/chunks/Settings-rOCxQdS8.js +2 -0
- package/dist/chunks/TeleportProgress-CP8IY6bz.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-DMmHgBqo.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-D5wEAW1-.js +1 -0
- package/dist/chunks/ThemePicker-Bgr7yOQB.js +1 -0
- package/dist/chunks/TmuxBackend-BzbtUtP1.js +9 -0
- package/dist/chunks/TrustDialog-BI5U3BQ0.js +1 -0
- package/dist/chunks/TungstenTool-CiQclNwj.js +1 -0
- package/dist/chunks/TungstenTool-kMqy-ifa.js +1 -0
- package/dist/chunks/ValidationErrorsList-DprGtB2w.js +2 -0
- package/dist/chunks/WelcomeV2-C4vfBnIy.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-BSoezOCE.js +2 -0
- package/dist/chunks/add-dir-DpOmv6kv.js +1 -0
- package/dist/chunks/agentDisplay-DuYEwOwO.js +1 -0
- package/dist/chunks/agents-BlurXZrF.js +2 -0
- package/dist/chunks/agents-DhZf7ftU.js +103 -0
- package/dist/chunks/ajv-CDrSAj3O.js +8 -0
- package/dist/chunks/analytics-i6X1et4O.js +1 -0
- package/dist/chunks/ant-D9hd_iYy.js +1 -0
- package/dist/chunks/api-CoaOHwDQ.js +4 -0
- package/dist/chunks/api-DvyGR-L7.js +1 -0
- package/dist/chunks/api-YHYC4Zdk.js +1 -0
- package/dist/chunks/artifacts-BMAYdaqh.js +1 -0
- package/dist/chunks/asciicast-DpHRoebc.js +1 -0
- package/dist/chunks/asciicast-HG1EoAQe.js +4 -0
- package/dist/chunks/assistant-D4-qcNT1.js +1 -0
- package/dist/chunks/assistant-DO2ZmZn1.js +1 -0
- package/dist/chunks/assistant-Dd86NmJM.js +1 -0
- package/dist/chunks/attributionHooks-BUmHrLhB.js +1 -0
- package/dist/chunks/attributionTrailer-r2Pbpu2N.js +1 -0
- package/dist/chunks/auth-CF3BGNYT.js +1 -0
- package/dist/chunks/auth-DwWwG43F.js +1 -0
- package/dist/chunks/auth-V_Xk2iea.js +1 -0
- package/dist/chunks/autoMode-DUksX5_i.js +45 -0
- package/dist/chunks/autoModeDenials-0CPO-Jbu.js +1 -0
- package/dist/chunks/autonomy-C5mNhAdz.js +21 -0
- package/dist/chunks/autonomy-CLt1dWaC.js +1 -0
- package/dist/chunks/autonomyPanel-rioFnrQO.js +1 -0
- package/dist/chunks/axios-DPuSPBlH.js +1 -0
- package/dist/chunks/axios-Zh7qGPze.js +12 -0
- package/dist/chunks/backgroundHousekeeping-BGtfqu-J.js +1 -0
- package/dist/chunks/backgroundHousekeeping-BqKZEvy0.js +17 -0
- package/dist/chunks/banner-BGLr3KYQ.js +2 -0
- package/dist/chunks/base64-js-B1tFNiG0.js +1 -0
- package/dist/chunks/bedrockClient-BFzWuhQK.js +15 -0
- package/dist/chunks/bg-B-YgGwLj.js +9 -0
- package/dist/chunks/bg-IU4gG3jc.js +1 -0
- package/dist/chunks/branch-BWY5W7hf.js +3 -0
- package/dist/chunks/break-cache-CY-O23fJ.js +8 -0
- package/dist/chunks/bridge-CqWd70vK.js +2 -0
- package/dist/chunks/bridgeConfig-CWO8AmCY.js +1 -0
- package/dist/chunks/bridgeConfig-D38y9eXn.js +1 -0
- package/dist/chunks/bridgeConfig-EwUq__ct.js +1 -0
- package/dist/chunks/bridgeConfig-GYR-LUiu.js +1 -0
- package/dist/chunks/bridgeEnabled-DKqmLnKO.js +1 -0
- package/dist/chunks/bridgeEnabled-DZIGDtfY.js +1 -0
- package/dist/chunks/bridgeMain-CXVks2ND.js +1 -0
- package/dist/chunks/bridgeMain-D4nsECwJ.js +68 -0
- package/dist/chunks/bridgeMessaging-BUOZU_ba.js +1 -0
- package/dist/chunks/bridgePointer-BpzIEsD_.js +1 -0
- package/dist/chunks/browser-D1vC3BNd.js +1 -0
- package/dist/chunks/btw-CVXJwoXo.js +1 -0
- package/dist/chunks/buddy-BLcvL8lP.js +3 -0
- package/dist/chunks/bundledMode-DQNSSQbt.js +1 -0
- package/dist/chunks/caches-BrfvzKn5.js +1 -0
- package/dist/chunks/caches-CkSv3MfC.js +3 -0
- package/dist/chunks/capacityWake-BWCSatN6.js +1 -0
- package/dist/chunks/changeDetector-DEZU6tum.js +1 -0
- package/dist/chunks/changeDetector-Df7c6U3d.js +1 -0
- package/dist/chunks/channelAllowlist-BApjAS0V.js +1 -0
- package/dist/chunks/channelNotification-BjWwF85R.js +1 -0
- package/dist/chunks/channelNotification-D01YVwNj.js +1 -0
- package/dist/chunks/chokidar-DPwMBcWI.js +1 -0
- package/dist/chunks/chokidar-DkDXNCTz.js +1 -0
- package/dist/chunks/chrome-D7coxEOI.js +1 -0
- package/dist/chunks/chromeNativeHost-CPj9M_4-.js +1 -0
- package/dist/chunks/chunk-DR8-3Aex.js +1 -0
- package/dist/chunks/classPrivateFieldSet2-DZkxcFPS.js +1 -0
- package/dist/chunks/claudeAiLimitsHook-ATshVrOH.js +1 -0
- package/dist/chunks/claudeDesktop-PVa9tWsM.js +1 -0
- package/dist/chunks/cleanup-C-PGmKpV.js +1 -0
- package/dist/chunks/clear-CxGE9Ntr.js +1 -0
- package/dist/chunks/cliLaunch-CMXoY_LO.js +1 -0
- package/dist/chunks/client-BWED8Tbu.js +35 -0
- package/dist/chunks/client-CinDjeSq.js +7 -0
- package/dist/chunks/client-CpXGg9e0.js +1 -0
- package/dist/chunks/color-B3w_VQTn.js +1 -0
- package/dist/chunks/color-convert-BQZnVz_5.js +1 -0
- package/dist/chunks/commands-DFp48zwy.js +1 -0
- package/dist/chunks/commitAttribution-B0cXmbvv.js +2 -0
- package/dist/chunks/commitAttribution-DRSKRoH6.js +1 -0
- package/dist/chunks/common-BX7bn3hg.js +1 -0
- package/dist/chunks/common-Ce3LanTX.js +1 -0
- package/dist/chunks/common-DdLQuE2_.js +1 -0
- package/dist/chunks/common-HfKcqOYK.js +1 -0
- package/dist/chunks/compact-C8ljGMdo.js +3 -0
- package/dist/chunks/companion-mD1jw6xX.js +1 -0
- package/dist/chunks/completionCache-BqQXVTa9.js +1 -0
- package/dist/chunks/completionCache-BtP4vfAi.js +4 -0
- package/dist/chunks/computerUseLock-ADE_PhIK.js +1 -0
- package/dist/chunks/config-CmyaIIOY.js +1 -0
- package/dist/chunks/config-Rl1Y_Dtq.js +1 -0
- package/dist/chunks/connectHeadless-MFABhXpz.js +1 -0
- package/dist/chunks/constants-BM62Vf_X.js +1 -0
- package/dist/chunks/constants-BfXy-5cI.js +1 -0
- package/dist/chunks/context-BeiZkUNq.js +1 -0
- package/dist/chunks/context-noninteractive-CRdF3iv8.js +54 -0
- package/dist/chunks/controlMessageCompat-591iGHUK.js +1 -0
- package/dist/chunks/conversation-BoguXZEI.js +1 -0
- package/dist/chunks/conversation-yhs7tT-g.js +1 -0
- package/dist/chunks/copy-BpeUcqku.js +7 -0
- package/dist/chunks/createSSHSession-B3JOB4TE.js +6 -0
- package/dist/chunks/createSession-BJSnFBGt.js +1 -0
- package/dist/chunks/createSession-CnRHI3RU.js +1 -0
- package/dist/chunks/cron-iqTFGIos.js +1 -0
- package/dist/chunks/cronScheduler-zRXhgEEU.js +6 -0
- package/dist/chunks/cronTasks-CMJldfoP.js +2 -0
- package/dist/chunks/crossProjectResume-DxO6TX30.js +40 -0
- package/dist/chunks/cwd-B2guYBbl.js +1 -0
- package/dist/chunks/cwd-B5bbyUwz.js +1 -0
- package/dist/chunks/cwd-BXiaJzLh.js +1 -0
- package/dist/chunks/daemon-B3v4OoOu.js +2 -0
- package/dist/chunks/dangerousBackend-OmCzoW35.js +1 -0
- package/dist/chunks/datadog-3-Vvz0yz.js +1 -0
- package/dist/chunks/datadog-BQlp3bTs.js +1 -0
- package/dist/chunks/debug-BDBIipC1.js +2 -0
- package/dist/chunks/debug-C7tW7DFW.js +1 -0
- package/dist/chunks/debug-CjIaNjpK.js +5 -0
- package/dist/chunks/debugUtils-Dsg-UHeg.js +1 -0
- package/dist/chunks/defineProperty-CaCI0a5T.js +1 -0
- package/dist/chunks/desktop-C_SS0068.js +1 -0
- package/dist/chunks/detached-B7RNZeyl.js +5 -0
- package/dist/chunks/detect-libc-DFFGDzPC.js +1 -0
- package/dist/chunks/detectRepository-BnTCJAXR.js +1 -0
- package/dist/chunks/detectRepository-Gobn9eFt.js +1 -0
- package/dist/chunks/detection-CN_uLGU2.js +1 -0
- package/dist/chunks/detection-DW6grIlc.js +1 -0
- package/dist/chunks/diff-B8YmRG5T.js +1 -0
- package/dist/chunks/directoryCompletion-J560aATd.js +1 -0
- package/dist/chunks/dist-B1wOprSs.js +29 -0
- package/dist/chunks/dist-DZQOarNX.js +5 -0
- package/dist/chunks/dist-HZfkKiUF.js +20 -0
- package/dist/chunks/dist-es-4xyrZoNc2.js +1 -0
- package/dist/chunks/dist-es-6kjvVbJd.js +1 -0
- package/dist/chunks/dist-es-BJldFHbt.js +3 -0
- package/dist/chunks/dist-es-BM013UFT.js +1 -0
- package/dist/chunks/dist-es-BPPewn1A.js +1 -0
- package/dist/chunks/dist-es-BZGG3Hnm.js +1 -0
- package/dist/chunks/dist-es-BZjJL64k2.js +1 -0
- package/dist/chunks/dist-es-BctcPxLN.js +1 -0
- package/dist/chunks/dist-es-Bf2jR30y.js +1 -0
- package/dist/chunks/dist-es-BgLoR-hQ.js +1 -0
- package/dist/chunks/dist-es-BismPcTW.js +1 -0
- package/dist/chunks/dist-es-BrPzXmSP.js +1 -0
- package/dist/chunks/dist-es-Bu21Wvhs.js +1 -0
- package/dist/chunks/dist-es-BuWNNAXW.js +1 -0
- package/dist/chunks/dist-es-Bz11sFiK2.js +1 -0
- package/dist/chunks/dist-es-C5VplyPL2.js +5 -0
- package/dist/chunks/dist-es-C66BuLgn.js +1 -0
- package/dist/chunks/dist-es-CCIzgNln2.js +1 -0
- package/dist/chunks/dist-es-CLyx7Kge2.js +1 -0
- package/dist/chunks/dist-es-CUbatGdn.js +1 -0
- package/dist/chunks/dist-es-CYe_-TbD.js +1 -0
- package/dist/chunks/dist-es-C_IHUdzL.js +1 -0
- package/dist/chunks/dist-es-Ci_rKlMr.js +1 -0
- package/dist/chunks/dist-es-ClDZBAj7.js +1 -0
- package/dist/chunks/dist-es-Cp--qjOi.js +1 -0
- package/dist/chunks/dist-es-CzE4kW1L.js +9 -0
- package/dist/chunks/dist-es-DUg5w7-v.js +1 -0
- package/dist/chunks/dist-es-Dl0ZRczY.js +1 -0
- package/dist/chunks/dist-es-Do_155z5.js +1 -0
- package/dist/chunks/dist-es-DxIM0jd82.js +1 -0
- package/dist/chunks/dist-es-Fav2oBDs.js +1 -0
- package/dist/chunks/dist-es-TZjwPaGn.js +1 -0
- package/dist/chunks/dist-es-W22ud2el2.js +1 -0
- package/dist/chunks/dist-es-aU8-02YH.js +1 -0
- package/dist/chunks/dist-es-b3yZSGx82.js +1 -0
- package/dist/chunks/dist-es-dIP5JtXz.js +5 -0
- package/dist/chunks/dist-es-mQ4HvnYs2.js +1 -0
- package/dist/chunks/distRoot-CJaacAHy.js +1 -0
- package/dist/chunks/doctor-DLZPF4iY.js +1 -0
- package/dist/chunks/earlyInput-BTI1CSNt.js +2 -0
- package/dist/chunks/earlyInput-BwGtzhhP.js +1 -0
- package/dist/chunks/effort-BaHvpBWr.js +9 -0
- package/dist/chunks/entry-_e-lyRwv.js +14 -0
- package/dist/chunks/env-CesrOJJq.js +1 -0
- package/dist/chunks/envLessBridgeConfig-4oys0_9A.js +1 -0
- package/dist/chunks/envLessBridgeConfig-DJ1Sts3F.js +1 -0
- package/dist/chunks/envUtils-CFG7IQID.js +1 -0
- package/dist/chunks/errorLogSink-Ti4Suoz6.js +2 -0
- package/dist/chunks/escHotkey-CVn_80xM.js +259 -0
- package/dist/chunks/esm-BFnjHW38.js +1 -0
- package/dist/chunks/esm-BQg_LX3V.js +1 -0
- package/dist/chunks/esm-BtC6CMmM.js +1 -0
- package/dist/chunks/esm-BwzC0MQp.js +1 -0
- package/dist/chunks/esm-CFybeQ_Q.js +1 -0
- package/dist/chunks/esm-CK-5CT5X.js +1 -0
- package/dist/chunks/esm-CL1OwlZB.js +1 -0
- package/dist/chunks/esm-CMzgSTAl.js +1 -0
- package/dist/chunks/esm-CPE_H2Lx.js +1 -0
- package/dist/chunks/esm-CcWquv5a.js +10 -0
- package/dist/chunks/esm-CeNEpRZt.js +1 -0
- package/dist/chunks/esm-D7hykoRB.js +1 -0
- package/dist/chunks/esm-DUtcefEV.js +1 -0
- package/dist/chunks/esm-DhrUwJBp.js +1 -0
- package/dist/chunks/esm-Duu1fRQ8.js +1 -0
- package/dist/chunks/esm-Ght2BaU2.js +1 -0
- package/dist/chunks/esm-Q6Yz2GMx.js +56 -0
- package/dist/chunks/esm-WONEiurY.js +13 -0
- package/dist/chunks/event-streams-BumpU1aB.js +1 -0
- package/dist/chunks/eventLoopStallDetector-DxyFdg1h.js +1 -0
- package/dist/chunks/execAsync-ChKxDZ8C.js +1 -0
- package/dist/chunks/execFileNoThrow-DdmR1mBS.js +1 -0
- package/dist/chunks/execSyncWrapper-Ch4TNj8u.js +1 -0
- package/dist/chunks/execa-BMaINL7N.js +34 -0
- package/dist/chunks/executor-C7INr19-.js +1 -0
- package/dist/chunks/executor-Dnf3YYma.js +1604 -0
- package/dist/chunks/exit-BakzsOD0.js +1 -0
- package/dist/chunks/exit-CiDn2tN9.js +2 -0
- package/dist/chunks/export-b-6pqMqz.js +2 -0
- package/dist/chunks/exportRenderer-RxtEIyTm.js +1 -0
- package/dist/chunks/extra-usage-7EPJNjNW.js +1 -0
- package/dist/chunks/extra-usage-ChvuewCq.js +1 -0
- package/dist/chunks/extra-usage-core-BVhLtoDF.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-_Njh6q-q.js +1 -0
- package/dist/chunks/extraUsage-qOBMQB6g.js +1 -0
- package/dist/chunks/extractMemories-CRBVNiG1.js +1 -0
- package/dist/chunks/fast-C4uw_g7o.js +1 -0
- package/dist/chunks/fast-CEaIzaPl.js +1 -0
- package/dist/chunks/featureCheck-B1GSTyhh.js +1 -0
- package/dist/chunks/featureCheck-DKigAPal.js +1 -0
- package/dist/chunks/feedback-Bf3TjjuD.js +1 -0
- package/dist/chunks/figures-fES5sASd.js +1 -0
- package/dist/chunks/fileStateCache-DAsLEZau.js +1 -0
- package/dist/chunks/files-B-m_4X8b.js +2 -0
- package/dist/chunks/findExecutable-D8vJrFnO.js +1 -0
- package/dist/chunks/firstPartyEventLogger-BtrGagNa.js +1 -0
- package/dist/chunks/flushGate-2zqab-Pp.js +1 -0
- package/dist/chunks/foundry-sdk-CtX8C0x3.js +1 -0
- package/dist/chunks/fpsMetrics-ts_jaF3g.js +1 -0
- package/dist/chunks/fuse-ivQ_eRwF.js +1 -0
- package/dist/chunks/gates-CmKoQ0O-.js +1 -0
- package/dist/chunks/gates-_wbPDQ3M.js +1 -0
- package/dist/chunks/gemini-DRx495gn.js +3 -0
- package/dist/chunks/generateRecap-Cv8gd_QF.js +1 -0
- package/dist/chunks/generateSessionName-Dpjg-u_x.js +1 -0
- package/dist/chunks/genericProcessUtils-BFJMxLqn.js +23 -0
- package/dist/chunks/getMachineId-bsd-C9pL9Ajr.js +1 -0
- package/dist/chunks/getMachineId-darwin-Ma4F9rJg.js +2 -0
- package/dist/chunks/getMachineId-linux-C0lXMqsj.js +1 -0
- package/dist/chunks/getMachineId-unsupported-ByHQTXat.js +1 -0
- package/dist/chunks/getMachineId-win-DZsXZmTz.js +1 -0
- package/dist/chunks/git-Bj8Ow4pJ.js +6 -0
- package/dist/chunks/git-Q_b4oZ17.js +1 -0
- package/dist/chunks/githubRepoPathMapping-DGivBX9h.js +1 -0
- package/dist/chunks/goal-BrHEJv8o.js +3 -0
- package/dist/chunks/goalStorage-CsuPOQbk.js +1 -0
- package/dist/chunks/graceful-fs-BuPWC-vB.js +2 -0
- package/dist/chunks/grok-CDkDDaY_.js +1 -0
- package/dist/chunks/growthbook-D3_Cr9n-.js +1 -0
- package/dist/chunks/growthbook-p4aJ_UMv.js +32 -0
- package/dist/chunks/hash-KW-tVnPp.js +1 -0
- package/dist/chunks/heapdump-CloylIZ9.js +5 -0
- package/dist/chunks/help-DpSJlHIc.js +1 -0
- package/dist/chunks/hooks-2pogt8nv.js +79 -0
- package/dist/chunks/hooks-BBODdwnE.js +1 -0
- package/dist/chunks/hostAdapter-B5KTUqhv.js +1 -0
- package/dist/chunks/hostGuard-DyWr2TwE.js +1 -0
- package/dist/chunks/httpAuthSchemes-CgPbtGos.js +13 -0
- package/dist/chunks/ide-CJEcfBZq.js +2 -0
- package/dist/chunks/inboundAttachments-RNpYpRTO.js +1 -0
- package/dist/chunks/index.min-DCDiLq-j.js +1 -0
- package/dist/chunks/initReplBridge-D2E6IM2B.js +1 -0
- package/dist/chunks/initReplBridge-p2uwDBPx.js +1 -0
- package/dist/chunks/insights-DnpZScKs.js +822 -0
- package/dist/chunks/install-D_vTxUlG.js +1 -0
- package/dist/chunks/install-github-app-BK8A7g3i.js +147 -0
- package/dist/chunks/install-slack-app-C47R9VoI.js +1 -0
- package/dist/chunks/instinctParser-DxKdI3JC.js +1 -0
- package/dist/chunks/instrumentation-DkdAJFrZ.js +12 -0
- package/dist/chunks/intl-Pse97ORk.js +1 -0
- package/dist/chunks/isObject-DaxDnPKm.js +1 -0
- package/dist/chunks/isSymbol-D7QeUnS5.js +1 -0
- package/dist/chunks/job-opl00C4l.js +2 -0
- package/dist/chunks/json-bigint-BRRVs1dv.js +8 -0
- package/dist/chunks/jsx-runtime-BTgGEFjL.js +1 -0
- package/dist/chunks/jws-B_ieuaZg.js +3 -0
- package/dist/chunks/jwtUtils-D-tJzoJY.js +1 -0
- package/dist/chunks/keybindings-mRf9VSe8.js +2 -0
- package/dist/chunks/lang-eH4EJErj.js +1 -0
- package/dist/chunks/language-DD9ar6RA.js +1 -0
- package/dist/chunks/language-EZLNdETg.js +1 -0
- package/dist/chunks/launchAgentsPlatform-Cq0_7-IM.js +1 -0
- package/dist/chunks/launchAutofixPr-Bw7aUHUs.js +18 -0
- package/dist/chunks/launchCommand-Bk1Fn-qZ.js +1 -0
- package/dist/chunks/launchLocalMemory-CLBCUgwd.js +3 -0
- package/dist/chunks/launchLocalVault-BfWJWrBg.js +3 -0
- package/dist/chunks/launchMemoryStores-DdnSVSDZ.js +1 -0
- package/dist/chunks/launchOnboarding-ziCEX3GI.js +8 -0
- package/dist/chunks/launchSchedule-G_c7sgmy.js +1 -0
- package/dist/chunks/launchSkillStore-Z1Kd7nCg.js +1 -0
- package/dist/chunks/launchTeleport-Dp9AFbPx.js +3 -0
- package/dist/chunks/launchVault-hwK-Ljek.js +1 -0
- package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
- package/dist/chunks/lib-BHRYgENJ.js +8 -0
- package/dist/chunks/lib-DRyNc7xD.js +2 -0
- package/dist/chunks/lib-Ddq71jM5.js +14 -0
- package/dist/chunks/loadAgentsDir-Bz0FfcVt.js +5620 -0
- package/dist/chunks/loadAgentsDir-CLM0ws7u.js +1 -0
- package/dist/chunks/loadPluginHooks-B5SIS2uo.js +1 -0
- package/dist/chunks/loadSso-RY87rrJO.js +1 -0
- package/dist/chunks/localSearch-BLF6PSv2.js +1 -0
- package/dist/chunks/localSearch-CTycGe3E.js +1 -0
- package/dist/chunks/localSearch-inDahM8I.js +1 -0
- package/dist/chunks/lockfile--gk1HDM6.js +1 -0
- package/dist/chunks/log-B-Nj3Yed.js +1 -0
- package/dist/chunks/log-DVv8YiNo.js +1 -0
- package/dist/chunks/login-BeLvLowc.js +1 -0
- package/dist/chunks/login-DUUOeNoz.js +1 -0
- package/dist/chunks/logoV2Utils-D5SpeZ3C.js +1 -0
- package/dist/chunks/logout-C2QuTBdS.js +1 -0
- package/dist/chunks/magicDocs-CUXKi-Wv.js +57 -0
- package/dist/chunks/main-CFhpWtpC.js +1420 -0
- package/dist/chunks/main-sboa5RKc.js +31 -0
- package/dist/chunks/mappers-DLkk0PZz.js +1 -0
- package/dist/chunks/mcp-C2f6IgAp.js +2 -0
- package/dist/chunks/mcp-Djui9m3_.js +6 -0
- package/dist/chunks/mcp-DvTSxrJ4.js +1 -0
- package/dist/chunks/mcpServer-DMA0bdFC.js +1 -0
- package/dist/chunks/mcpServer-DxEHfW2v.js +1 -0
- package/dist/chunks/memoize-Bg2dXTzV.js +1 -0
- package/dist/chunks/memoize-DNnuA2aU.js +1 -0
- package/dist/chunks/memory-B9io9Zcv.js +1 -0
- package/dist/chunks/mobile-CPnnvkQV.js +2 -0
- package/dist/chunks/modalContext-B1b0Gsro.js +1 -0
- package/dist/chunks/mode-BDgwh_Xb.js +2 -0
- package/dist/chunks/model-B6cpEh-s.js +1 -0
- package/dist/chunks/model-BcunOCC9.js +1 -0
- package/dist/chunks/modelOptions-CHUHQ9WG.js +1 -0
- package/dist/chunks/normalization-cjPqid31.js +1 -0
- package/dist/chunks/oauth-CnBLewrU.js +1 -0
- package/dist/chunks/oauth-DMPGYAoZ.js +1 -0
- package/dist/chunks/observationStore-DVBxrSdI.js +4 -0
- package/dist/chunks/onChangeAppState-M61XDN6V.js +1 -0
- package/dist/chunks/open-CsUNPSNx.js +1 -0
- package/dist/chunks/openai-BHvlYW3m.js +2 -0
- package/dist/chunks/output-style-BtKuBrs4.js +1 -0
- package/dist/chunks/outputStyles-hHuIBkRB.js +84 -0
- package/dist/chunks/overageCreditGrant-BLFT-rF3.js +1 -0
- package/dist/chunks/p-map-C-WNcN6g.js +1 -0
- package/dist/chunks/p-map-CQ2NythB.js +1 -0
- package/dist/chunks/package-9IAs5Qf0.js +1 -0
- package/dist/chunks/panel-27xLZI7c.js +1 -0
- package/dist/chunks/panel-NoDfShEZ.js +1 -0
- package/dist/chunks/panelCall-CEOWVNCM.js +1 -0
- package/dist/chunks/parseConnectUrl-CxU4IX9o.js +1 -0
- package/dist/chunks/parser-DGlAnaNj.js +1 -0
- package/dist/chunks/parser-DGoLe2RS.js +1 -0
- package/dist/chunks/passes-CExcqu66.js +1 -0
- package/dist/chunks/path-uaxlnhva.js +1 -0
- package/dist/chunks/permissions-B3PceQul.js +1 -0
- package/dist/chunks/permissions-DezIL2xF.js +3 -0
- package/dist/chunks/permissions-DnpI8Whh.js +1 -0
- package/dist/chunks/pipeTransport-CB_Wq_Kx.js +1 -0
- package/dist/chunks/plan-cfZBclh9.js +1 -0
- package/dist/chunks/platform-BXz_rgpy.js +2 -0
- package/dist/chunks/plist-DLGDWBD6.js +6 -0
- package/dist/chunks/plugin-CuhENLRs.js +1 -0
- package/dist/chunks/pluginAutoupdate-wTeOXfQe.js +1 -0
- package/dist/chunks/pluginBlocklist-D6pkKfXr.js +1 -0
- package/dist/chunks/pluginCliCommands-DqxdCwsq.js +1 -0
- package/dist/chunks/pluginFlagging-CjH48f-K.js +1 -0
- package/dist/chunks/pluginOperations-DMFYB3pK.js +2 -0
- package/dist/chunks/pluginStartupCheck-BW3_KfZz.js +1 -0
- package/dist/chunks/pluginStartupCheck-Cj2BMjVw.js +1 -0
- package/dist/chunks/plugins-CarsG2v8.js +4 -0
- package/dist/chunks/policyLimits-DFn1vHkN.js +1 -0
- package/dist/chunks/pollConfig-C8nODJY1.js +1 -0
- package/dist/chunks/poller-DXZJ-dUP.js +1 -0
- package/dist/chunks/poor-C7GQ4a5X.js +1 -0
- package/dist/chunks/poorMode-CBe0rfxB.js +1 -0
- package/dist/chunks/poorMode-CbZTudtw.js +1 -0
- package/dist/chunks/postCommitAttribution--vvAWIqD.js +1 -0
- package/dist/chunks/print-CwwtGSbK.js +114 -0
- package/dist/chunks/privacy-settings-Bz8cAVp5.js +11 -0
- package/dist/chunks/privacyLevel-CRCHhztk.js +1 -0
- package/dist/chunks/process-CnhUplBr.js +1 -0
- package/dist/chunks/process-X4vCP9x0.js +1 -0
- package/dist/chunks/processBashCommand-NL0YEUqW.js +3 -0
- package/dist/chunks/processSlashCommand-FPMWElsI.js +6 -0
- package/dist/chunks/processSlashCommand-_oJs6_w8.js +6 -0
- package/dist/chunks/processUserInput-QAJK0XSn.js +1 -0
- package/dist/chunks/projectContext-B21hXj9q.js +1 -0
- package/dist/chunks/projectContext-DbTQHQS3.js +1 -0
- package/dist/chunks/prompt-C6eleu4x.js +1 -0
- package/dist/chunks/prompt-CUdoQXyN.js +1 -0
- package/dist/chunks/prompt-CsBCtw4l.js +228 -0
- package/dist/chunks/prompt-hnIDYhP4.js +54 -0
- package/dist/chunks/promptEditor-CrlVcc17.js +4 -0
- package/dist/chunks/protectedNamespace-Cn4901XG.js +1 -0
- package/dist/chunks/protocolHandler-DM_w7sJ5.js +13 -0
- package/dist/chunks/protocols-CpoQzjyI.js +7 -0
- package/dist/chunks/proxy-9WvtUy8E.js +99 -0
- package/dist/chunks/rate-limit-options-BehQ3MoX.js +1 -0
- package/dist/chunks/rcDebugLog-BbHlIxCm.js +11 -0
- package/dist/chunks/referral-BfAZEIZL.js +1 -0
- package/dist/chunks/refresh-Bl3Miver.js +1 -0
- package/dist/chunks/registerProtocol-BHZ3vZED.js +36 -0
- package/dist/chunks/registerSkillHooks-BR7v5qDA.js +1 -0
- package/dist/chunks/registry-C2igpRd-.js +1 -0
- package/dist/chunks/release-notes-C_Cou6ye.js +4 -0
- package/dist/chunks/releaseNotes-DveQShyB.js +2 -0
- package/dist/chunks/reload-plugins-D-pAUoB5.js +1 -0
- package/dist/chunks/remote-env-C_dBgbgo.js +1 -0
- package/dist/chunks/remoteBridgeCore-BxWhTy1u.js +1 -0
- package/dist/chunks/remoteControlServer-D3OjUlB-.js +3 -0
- package/dist/chunks/rename-f3m0ETSt.js +1 -0
- package/dist/chunks/renderOptions-QZLxGnh_.js +1 -0
- package/dist/chunks/replBridge-qeVmCJOb.js +1 -0
- package/dist/chunks/resume-CM_8p9Iu.js +2 -0
- package/dist/chunks/rewind-0cB7o6fx.js +1 -0
- package/dist/chunks/ripgrep-BEWqxrpl.js +5 -0
- package/dist/chunks/ripgrep-G82m12Ng.js +1 -0
- package/dist/chunks/rollback-CVo2gqgR.js +11 -0
- package/dist/chunks/runtimeObserver-1EdvvoYw.js +1 -0
- package/dist/chunks/runtimeObserver-CX6vepq9.js +10 -0
- package/dist/chunks/sandbox-adapter-DzHfW2tH.js +1 -0
- package/dist/chunks/sandbox-toggle-N6KgmH2T.js +1 -0
- package/dist/chunks/sanitization-CIBpY9KT.js +1 -0
- package/dist/chunks/satisfies-B7ZvBUQP.js +1 -0
- package/dist/chunks/schemas-Bwt-7U5W.js +40 -0
- package/dist/chunks/sdk-Drp69kIx.js +1 -0
- package/dist/chunks/sdkHeapDumpMonitor-B9GVkISU.js +1 -0
- package/dist/chunks/searchExtraTools-BphNJsl8.js +1 -0
- package/dist/chunks/semver-BsItM2Z4.js +1 -0
- package/dist/chunks/semver-D3lOjiBN.js +1 -0
- package/dist/chunks/sentry-ySzRCXGd.js +1 -0
- package/dist/chunks/server-C8nMDji6.js +1 -0
- package/dist/chunks/server-XZG51Slr.js +1 -0
- package/dist/chunks/serverBanner-D68EBGzH.js +1 -0
- package/dist/chunks/serverLog-hv2hc5US.js +1 -0
- package/dist/chunks/session-CVoGFb8a.js +2 -0
- package/dist/chunks/sessionDataUploader-BaD1Q7v3.js +1 -0
- package/dist/chunks/sessionDiscovery-D7g66TX6.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-9lPjspRX.js +1 -0
- package/dist/chunks/sessionManager-BhOjMNAP.js +1 -0
- package/dist/chunks/sessionMemory-BA6cdxqP.js +1 -0
- package/dist/chunks/sessionMemory-CtEhIRGF.js +1 -0
- package/dist/chunks/sessionMemoryUtils-D_B92ypa.js +1 -0
- package/dist/chunks/sessionObserver-CESI-uVZ.js +1 -0
- package/dist/chunks/sessionObserver-SpE_eglb.js +20 -0
- package/dist/chunks/sessionRestore-DqsqYK4K.js +1 -0
- package/dist/chunks/sessionState-Dgky34M4.js +1 -0
- package/dist/chunks/sessionStorage-DJb5HKhQ.js +1 -0
- package/dist/chunks/sessionStorage-DSMfHTcg.js +1 -0
- package/dist/chunks/sessionStoragePortable-DyM_hZnp.js +3 -0
- package/dist/chunks/sessionTitle-Bzxk_EW9.js +14 -0
- package/dist/chunks/sessionTracing-DR8O0686.js +12 -0
- package/dist/chunks/setup-BHNS9sBS.js +9 -0
- package/dist/chunks/setup-BafJxZ0F.js +4 -0
- package/dist/chunks/setup-MLNNYLi6.js +1 -0
- package/dist/chunks/shadowedRuleDetection-Ch9gTxfD.js +1 -0
- package/dist/chunks/shellQuote-3s6tV-hK.js +1 -0
- package/dist/chunks/sideQuestion-BBn6XIOD.js +20 -0
- package/dist/chunks/signal-BTxmab6r.js +1 -0
- package/dist/chunks/signin-ChbUAEGq.js +1 -0
- package/dist/chunks/sink-B1qICbRh.js +1 -0
- package/dist/chunks/sink-yBIcxQf1.js +1 -0
- package/dist/chunks/sinks-C7weduDR.js +1 -0
- package/dist/chunks/skill-learning-08nEdOJ2.js +5 -0
- package/dist/chunks/skillGapStore-CuvWGqFb.js +5 -0
- package/dist/chunks/skillGapStore-DmMuDXKO.js +1 -0
- package/dist/chunks/skillGenerator-mEMjcmmm.js +8 -0
- package/dist/chunks/skillLearning-B3a-8Ys3.js +1 -0
- package/dist/chunks/skillLearning-q5T6o0mH.js +1 -0
- package/dist/chunks/skillPanel-BuUMhONI.js +28 -0
- package/dist/chunks/skillSearchPanel-BUEv7Sm9.js +21 -0
- package/dist/chunks/skillUsageTracking-BBTiWOKB.js +1 -0
- package/dist/chunks/skills-DvQuQfDW.js +1 -0
- package/dist/chunks/slashCommandParsing-BkTC3GRb.js +1 -0
- package/dist/chunks/sleep-CC8jykQd.js +1 -0
- package/dist/chunks/slowOperations-niPqC54V.js +1 -0
- package/dist/chunks/sprites-C5X62Vyh.js +1 -0
- package/dist/chunks/src-58uAJYF_.js +6 -0
- package/dist/chunks/src-7Y8fx6gl.js +2 -0
- package/dist/chunks/src-BuserDTl.js +1 -0
- package/dist/chunks/src-CMY4XoRy.js +1 -0
- package/dist/chunks/src-CfeAM1FB.js +1 -0
- package/dist/chunks/src-CxT2FDXy.js +1 -0
- package/dist/chunks/src-CyQf7rVu.js +26 -0
- package/dist/chunks/src-DJLbU8sT.js +1 -0
- package/dist/chunks/src-DJQlyVK6.js +5 -0
- package/dist/chunks/src-DNHWYkls.js +53 -0
- package/dist/chunks/src-DU_g0n_Q.js +1 -0
- package/dist/chunks/src-DhqzQjMg.js +19 -0
- package/dist/chunks/src-Duzv1Znh.js +1 -0
- package/dist/chunks/src-OBx6GAig.js +1 -0
- package/dist/chunks/src-WjnK2Dbo.js +1 -0
- package/dist/chunks/src-hjAMxWFj.js +7 -0
- package/dist/chunks/src-lLwoqdC0.js +9 -0
- package/dist/chunks/src-yRsWbJp_.js +2 -0
- package/dist/chunks/sso-oidc-yfC-A2A2.js +1 -0
- package/dist/chunks/startupProfiler-4P7GdVw6.js +3 -0
- package/dist/chunks/startupProfiler-CipS0otN.js +1 -0
- package/dist/chunks/state-9wSimHaL.js +1 -0
- package/dist/chunks/state-BQkyHx88.js +1 -0
- package/dist/chunks/state-CEAUTY3A.js +1 -0
- package/dist/chunks/state-CUZTq6r0.js +1 -0
- package/dist/chunks/state-U0HNbTx8.js +1 -0
- package/dist/chunks/staticRender-BB3CisKd.js +1 -0
- package/dist/chunks/stats-Dyi2U_mq.js +1 -0
- package/dist/chunks/status-CSL-GMou.js +1 -0
- package/dist/chunks/statusNoticeHelpers-BaXE951d.js +1 -0
- package/dist/chunks/stdio-BuUJYJFs.js +3 -0
- package/dist/chunks/stdio-iX0TTmbp.js +1 -0
- package/dist/chunks/stickers-2CRSckfH.js +1 -0
- package/dist/chunks/store-DdfsZvtr.js +1 -0
- package/dist/chunks/stringUtils-U7kMYMJq.js +4 -0
- package/dist/chunks/sts-CJmdeT7s.js +1 -0
- package/dist/chunks/subprocessEnv-DKTILev5.js +1 -0
- package/dist/chunks/subprocessEnv-WjRguKWf.js +1 -0
- package/dist/chunks/supports-color-DaytqqjM.js +1 -0
- package/dist/chunks/systemPromptSections-BnrxBWdc.js +1 -0
- package/dist/chunks/systemPromptSections-Dk6azdAb.js +1 -0
- package/dist/chunks/systemTheme-C1GNqIfy.js +1 -0
- package/dist/chunks/tag-C4cH016L.js +11 -0
- package/dist/chunks/tasks-CEdUW3RQ.js +1 -0
- package/dist/chunks/teamHelpers-CTA_CtTT.js +1 -0
- package/dist/chunks/teamHelpers-D65qZInv.js +1 -0
- package/dist/chunks/teammate-C-FiRloZ.js +1 -0
- package/dist/chunks/teammateModeSnapshot-DWRG5-Us.js +1 -0
- package/dist/chunks/teammateModeSnapshot-DtgsNj1G.js +1 -0
- package/dist/chunks/teleport-C_UgMy0V.js +1 -0
- package/dist/chunks/templateJobs-CMbS0tuk.js +12 -0
- package/dist/chunks/terminalSetup--jwGVap8.js +33 -0
- package/dist/chunks/terminalSetup-zID-wokH.js +1 -0
- package/dist/chunks/theme-C6XwTpVy.js +1 -0
- package/dist/chunks/thinkback-CVLnmLAT.js +1 -0
- package/dist/chunks/thinkback-MeOOO7gf.js +1 -0
- package/dist/chunks/thinkback-play-D7G260F4.js +1 -0
- package/dist/chunks/tmux-DtYJuTWh.js +1 -0
- package/dist/chunks/toolEventObserver-BtC9xDYY.js +1 -0
- package/dist/chunks/toolEventObserver-MfsHAt8h.js +1 -0
- package/dist/chunks/toolPool-CEi_2xIH.js +1 -0
- package/dist/chunks/toolPool-CdYJcCnc.js +1 -0
- package/dist/chunks/trustedDevice-CjQTGAa4.js +1 -0
- package/dist/chunks/trustedDevice-DADcxAAs.js +1 -0
- package/dist/chunks/tui-B8Ijq4Pk.js +6 -0
- package/dist/chunks/turndown.es-T-Xe93nc.js +69 -0
- package/dist/chunks/types-BVelRhgb.js +17 -0
- package/dist/chunks/types-Bqp3meR4.js +1 -0
- package/dist/chunks/types-CNmINIu3.js +1 -0
- package/dist/chunks/types-DgzOOCDl.js +3 -0
- package/dist/chunks/udsClient-ClY_0CKr.js +1 -0
- package/dist/chunks/ultrareviewCommand-CqvHj9Io.js +3 -0
- package/dist/chunks/undercover-CVCVOSrs.js +1 -0
- package/dist/chunks/undercover-CbxiJO2b.js +31 -0
- package/dist/chunks/up-CBJhVVbd.js +12 -0
- package/dist/chunks/updateCCB-DPPpquAw.js +11 -0
- package/dist/chunks/upgrade-DaaHOvft.js +1 -0
- package/dist/chunks/upgrade-k7ZvAWZ0.js +1 -0
- package/dist/chunks/upload-CEDxwMa1.js +1 -0
- package/dist/chunks/upstreamproxy-BtGJ2LRi.js +11 -0
- package/dist/chunks/usage-CsUSu4fb.js +1 -0
- package/dist/chunks/usage-oABvixCs.js +1 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-CBce_-hb.js +1 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-CLYjTZXb.js +1 -0
- package/dist/chunks/useKeybinding-DAQL_dB_.js +1 -0
- package/dist/chunks/useMainLoopModel-QC_H3esG.js +1 -0
- package/dist/chunks/useManageMCPConnections-bf-VfJGD.js +1 -0
- package/dist/chunks/useManagePlugins-CXdYUpit.js +1 -0
- package/dist/chunks/useMergedTools-DERzhQOJ.js +1 -0
- package/dist/chunks/useSearchInput-nqhdILI2.js +1 -0
- package/dist/chunks/useTerminalSize-DzV4aaTi.js +1 -0
- package/dist/chunks/useVoice-CO69xtWC.js +1 -0
- package/dist/chunks/util-C8wqPqv0.js +1 -0
- package/dist/chunks/utils-CDFsSXHr.js +1 -0
- package/dist/chunks/utils-ZO5TryVH.js +1 -0
- package/dist/chunks/v4-DLhvDPkt.js +1 -0
- package/dist/chunks/validatePlugin-C4cd71Yz.js +1 -0
- package/dist/chunks/vertex-sdk-CC3U26o7.js +9 -0
- package/dist/chunks/vim-BNiQx5Vf.js +1 -0
- package/dist/chunks/voice-BCbnJzYL.js +8 -0
- package/dist/chunks/voice-BJyz9KZO.js +8 -0
- package/dist/chunks/voice-CP2ULpju.js +2 -0
- package/dist/chunks/voiceModeEnabled-C-pa8B3Q.js +1 -0
- package/dist/chunks/voiceModeEnabled-CMtRN2pa.js +1 -0
- package/dist/chunks/voiceStreamSTT-31b2u0rj.js +1 -0
- package/dist/chunks/voiceStreamSTT-Fkhm6Ftg.js +1 -0
- package/dist/chunks/voiceStreamSTT-sI-hg-aP.js +1 -0
- package/dist/chunks/web-tools-CLmlPgLk.js +1 -0
- package/dist/chunks/which-C0ex-06E.js +1 -0
- package/dist/chunks/windowsPaths-C5TNvKYu.js +1 -0
- package/dist/chunks/windowsPaths-Kue_7s52.js +1 -0
- package/dist/chunks/workSecret-Dh5Ayceu.js +1 -0
- package/dist/chunks/workerRegistry-B5iWYqpK.js +1 -0
- package/dist/chunks/worktree-BypJA0GB.js +1 -0
- package/dist/chunks/worktreeModeEnabled-DPTdK3JV.js +1 -0
- package/dist/chunks/worktreeModeEnabled-Dtrcn7eD.js +1 -0
- package/dist/chunks/wrapper-BDPb4PTV.js +6 -0
- package/dist/chunks/wrapper-DRTs77RK.js +1 -0
- package/dist/chunks/xdg-BaVL-FHd.js +1 -0
- package/dist/chunks/xml-E8VMPwdJ.js +1 -0
- package/dist/chunks/zod-B_P2Eo_D.js +1 -0
- package/dist/cli-bun.js +2 -0
- package/dist/cli-node.js +2 -0
- package/dist/cli.js +2 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/package.json +233 -0
- package/scripts/postinstall.cjs +389 -0
- package/scripts/run-parallel.mjs +10 -0
- package/scripts/setup-chrome-mcp.mjs +70 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import{i as e,n as t,o as n,t as r}from"./chunk-DR8-3Aex.js";import{c as i,n as a,s as o,t as s}from"./isObject-DaxDnPKm.js";import{n as c,t as l}from"./defineProperty-CaCI0a5T.js";import{i as u,n as d,r as f,t as p}from"./figures-fES5sASd.js";import{n as m,t as h}from"./supports-color-DaytqqjM.js";import{t as g}from"./semver-BsItM2Z4.js";import{n as _,t as v}from"./isSymbol-D7QeUnS5.js";import{t as y}from"./jsx-runtime-BTgGEFjL.js";import b from"node:process";import{Stream as x}from"stream";import{closeSync as S,constants as C,openSync as w,readFileSync as T,readSync as E,writeSync as D}from"fs";import O,{release as ee}from"node:os";import{Buffer as te}from"buffer";import{format as k}from"util";import ne from"node:tty";import{execFile as re}from"child_process";import{EventEmitter as ie}from"events";import ae from"process";function oe(e,{include:t,exclude:n}={}){let r=e=>{let r=t=>typeof t==`string`?e===t:t.test(e);return t?t.some(r):n?!n.some(r):!0};for(let[t,n]of se(e.constructor.prototype)){if(n===`constructor`||!r(n))continue;let i=Reflect.getOwnPropertyDescriptor(t,n);i&&typeof i.value==`function`&&(e[n]=e[n].bind(e))}return e}var se,ce=t((()=>{se=e=>{let t=new Set;do for(let n of Reflect.ownKeys(e))t.add([e,n]);while((e=Reflect.getPrototypeOf(e))&&e!==Object.prototype);return t}}));function le(){}var ue=t((()=>{})),de,fe=t((()=>{o(),de=function(){return i.Date.now()}}));function pe(e){for(var t=e.length;t--&&A.test(e.charAt(t)););return t}var A,me=t((()=>{A=/\s/}));function he(e){return e&&e.slice(0,pe(e)+1).replace(ge,``)}var ge,_e=t((()=>{me(),ge=/^\s+/}));function ve(e){if(typeof e==`number`)return e;if(_(e))return ye;if(a(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=a(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=he(e);var n=xe.test(e);return n||Se.test(e)?Ce(e.slice(2),n?2:8):be.test(e)?ye:+e}var ye,be,xe,Se,Ce,we=t((()=>{_e(),s(),v(),ye=NaN,be=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,Se=/^0o[0-7]+$/i,Ce=parseInt}));function Te(e,t,n){var r,i,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(Ee);t=ve(t)||0,a(n)&&(d=!!n.leading,f=`maxWait`in n,o=f?De(ve(n.maxWait)||0,t):o,p=`trailing`in n?!!n.trailing:p);function m(t){var n=r,a=i;return r=i=void 0,u=t,s=e.apply(a,n),s}function h(e){return u=e,c=setTimeout(v,t),d?m(e):s}function g(e){var n=e-l,r=e-u,i=t-n;return f?Oe(i,o-r):i}function _(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function v(){var e=de();if(_(e))return y(e);c=setTimeout(v,g(e))}function y(e){return c=void 0,p&&r?m(e):(r=i=void 0,s)}function b(){c!==void 0&&clearTimeout(c),u=0,r=l=i=c=void 0}function x(){return c===void 0?s:y(de())}function S(){var e=de(),n=_(e);if(r=arguments,i=this,l=e,n){if(c===void 0)return h(l);if(f)return clearTimeout(c),c=setTimeout(v,t),m(l)}return c===void 0&&(c=setTimeout(v,t)),s}return S.cancel=b,S.flush=x,S}var Ee,De,Oe,ke=t((()=>{s(),fe(),we(),Ee=`Expected a function`,De=Math.max,Oe=Math.min}));function Ae(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(je);return a(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Te(e,t,{leading:r,maxWait:t,trailing:i})}var je,Me=t((()=>{ke(),s(),je=`Expected a function`})),Ne=r((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function k(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function re(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,re(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+k(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),re(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+k(a,u),c+=re(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+k(a,u++),c+=re(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return re(ne(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ie(e,t,n){if(e==null)return e;var r=[],i=0;return re(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oe=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&&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)},se={map:ie,forEach:function(e,t,n){ie(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ie(e,function(){t++}),t},toArray:function(e){return ie(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=se,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,oe)}catch(e){oe(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.5`})),j=r(((e,t)=>{t.exports=Ne()})),Pe=r((e=>{e.ConcurrentRoot=1,e.ContinuousEventPriority=8,e.DefaultEventPriority=32,e.DiscreteEventPriority=2,e.NoEventPriority=0})),Fe=r(((e,t)=>{t.exports=Pe()})),M,Ie,Le,N,Re,ze,Be,Ve,P,He,Ue,We,Ge,Ke=t((()=>{M={Auto:0,FlexStart:1,Center:2,FlexEnd:3,Stretch:4,Baseline:5,SpaceBetween:6,SpaceAround:7,SpaceEvenly:8},Ie={Inherit:0,LTR:1,RTL:2},Le={Flex:0,None:1,Contents:2},N={Left:0,Top:1,Right:2,Bottom:3,Start:4,End:5,Horizontal:6,Vertical:7,All:8},Re={None:0,StretchFlexBasis:1,AbsolutePositionWithoutInsetsExcludesPadding:2,AbsolutePercentAgainstInnerSize:4,All:2147483647,Classic:2147483646},ze={Column:0,ColumnReverse:1,Row:2,RowReverse:3},Be={Column:0,Row:1,All:2},Ve={FlexStart:0,Center:1,FlexEnd:2,SpaceBetween:3,SpaceAround:4,SpaceEvenly:5},P={Undefined:0,Exactly:1,AtMost:2},He={Visible:0,Hidden:1,Scroll:2},Ue={Static:0,Relative:1,Absolute:2},We={Undefined:0,Point:1,Percent:2,Auto:3},Ge={NoWrap:0,Wrap:1,WrapReverse:2}}));function qe(e){return{unit:We.Point,value:e}}function Je(e){return{unit:We.Percent,value:e}}function F(e,t){switch(e.unit){case We.Point:return e.value;case We.Percent:return isNaN(t)?NaN:e.value*t/100;default:return NaN}}function I(e){return!isNaN(e)}function Ye(e,t){return e===t||e!==e&&t!==t}function Xe(){return{direction:Ie.Inherit,flexDirection:ze.Column,justifyContent:Ve.FlexStart,alignItems:M.Stretch,alignSelf:M.Auto,alignContent:M.FlexStart,flexWrap:Ge.NoWrap,overflow:He.Visible,display:Le.Flex,positionType:Ue.Relative,flexGrow:0,flexShrink:0,flexBasis:L,margin:Array(9).fill(Nt),padding:Array(9).fill(Nt),border:Array(9).fill(Nt),position:Array(9).fill(Nt),gap:[,,,].fill(Nt),width:L,height:L,minWidth:Nt,minHeight:Nt,maxWidth:Nt,maxHeight:Nt}}function Ze(e,t,n,r=!1){let i=e[t];return i.unit===We.Undefined&&(i=t===Pt||t===It?e[N.Horizontal]:e[N.Vertical]),i.unit===We.Undefined&&(i=e[N.All]),i.unit===We.Undefined&&(t===Pt&&(i=e[N.Start]),t===It&&(i=e[N.End])),i.unit===We.Undefined?0:i.unit===We.Auto?r?NaN:0:F(i,n)}function Qe(e,t){let n=e[t];return n.unit===We.Undefined&&(n=t===Pt||t===It?e[N.Horizontal]:e[N.Vertical]),n.unit===We.Undefined&&(n=e[N.All]),n.unit===We.Undefined&&(t===Pt&&(n=e[N.Start]),t===It&&(n=e[N.End])),n}function $e(e,t){return Qe(e,t).unit===We.Auto}function et(e){for(let t=0;t<9;t++)if(e[t].unit===3)return!0;return!1}function tt(e){for(let t=0;t<9;t++)if(e[t].unit!==0)return!0;return!1}function nt(e,t,n){let r=e[6],i=e[7],a=e[8],o=e[4],s=e[5],c=isNaN(t)?NaN:t/100,l=e[0];l.unit===0&&(l=r),l.unit===0&&(l=a),l.unit===0&&(l=o),n[0]=l.unit===1?l.value:l.unit===2?l.value*c:0,l=e[1],l.unit===0&&(l=i),l.unit===0&&(l=a),n[1]=l.unit===1?l.value:l.unit===2?l.value*c:0,l=e[2],l.unit===0&&(l=r),l.unit===0&&(l=a),l.unit===0&&(l=s),n[2]=l.unit===1?l.value:l.unit===2?l.value*c:0,l=e[3],l.unit===0&&(l=i),l.unit===0&&(l=a),n[3]=l.unit===1?l.value:l.unit===2?l.value*c:0}function rt(e){return e===ze.Row||e===ze.RowReverse}function it(e){return e===ze.RowReverse||e===ze.ColumnReverse}function at(e){return rt(e)?ze.Column:ze.Row}function ot(e){switch(e){case ze.Row:return Pt;case ze.RowReverse:return It;case ze.Column:return Ft;case ze.ColumnReverse:return Lt}}function st(e){switch(e){case ze.Row:return It;case ze.RowReverse:return Pt;case ze.Column:return Lt;case ze.ColumnReverse:return Ft}}function ct(){let e={pointScaleFactor:1,errata:Re.None,useWebDefaults:!1,free(){},isExperimentalFeatureEnabled(){return!1},setExperimentalFeatureEnabled(){},setPointScaleFactor(t){e.pointScaleFactor=t},getErrata(){return e.errata},setErrata(t){e.errata=t},setUseWebDefaults(t){e.useWebDefaults=t}};return e}function lt(e,t,n,r,i,a,o,s,c,l){e._cIn||(e._cIn=new Float64Array(Bt*8),e._cOut=new Float64Array(Bt*2)),l&&e._cGen!==Vt&&(e._cN=0,e._cWr=0);let u=e._cWr++%Bt;e._cN<Bt&&(e._cN=e._cWr);let d=u*8,f=e._cIn;f[d]=t,f[d+1]=n,f[d+2]=r,f[d+3]=i,f[d+4]=a,f[d+5]=o,f[d+6]=+!!s,f[d+7]=+!!c,e._cOut[u*2]=e.layout.width,e._cOut[u*2+1]=e.layout.height,e._cGen=Vt}function ut(e,t){t?(e._lOutW=e.layout.width,e._lOutH=e.layout.height):(e._mOutW=e.layout.width,e._mOutH=e.layout.height)}function dt(){return{visited:Ht,measured:Ut,cacheHits:Wt,live:Gt}}function ft(e,t,n,r,i,a,o,s,c=!1,l=!1){Ht++;let u=e.style,d=e.layout,f=e._cGen===Vt&&!s;if(!e.isDirty_||f){if(!e.isDirty_&&e._hasL&&e._lWM===r&&e._lHM===i&&e._lFW===c&&e._lFH===l&&Ye(e._lW,t)&&Ye(e._lH,n)&&Ye(e._lOW,a)&&Ye(e._lOH,o)){Wt++,d.width=e._lOutW,d.height=e._lOutH;return}if(e._cN>0&&(f||!e.isDirty_)){let s=e._cIn;for(let u=0;u<e._cN;u++){let f=u*8;if(s[f+2]===r&&s[f+3]===i&&s[f+6]===+!!c&&s[f+7]===+!!l&&Ye(s[f],t)&&Ye(s[f+1],n)&&Ye(s[f+4],a)&&Ye(s[f+5],o)){d.width=e._cOut[u*2],d.height=e._cOut[u*2+1],Wt++;return}}}if(!e.isDirty_&&!s&&e._hasM&&e._mWM===r&&e._mHM===i&&Ye(e._mW,t)&&Ye(e._mH,n)&&Ye(e._mOW,a)&&Ye(e._mOH,o)){d.width=e._mOutW,d.height=e._mOutH,Wt++;return}}let p=e.isDirty_;s?(e._lW=t,e._lH=n,e._lWM=r,e._lHM=i,e._lOW=a,e._lOH=o,e._lFW=c,e._lFH=l,e._hasL=!0,e.isDirty_=!1,p&&(e._hasM=!1)):(e._mW=t,e._mH=n,e._mWM=r,e._mHM=i,e._mOW=a,e._mOH=o,e._hasM=!0,p&&(e._hasL=!1));let m=d.padding,h=d.border,g=d.margin;e._hasPadding?nt(u.padding,a,m):m[0]=m[1]=m[2]=m[3]=0,e._hasBorder?nt(u.border,a,h):h[0]=h[1]=h[2]=h[3]=0,e._hasMargin?nt(u.margin,a,g):g[0]=g[1]=g[2]=g[3]=0;let _=m[0]+m[2]+h[0]+h[2],v=m[1]+m[3]+h[1]+h[3],y=c?NaN:F(u.width,a),b=l?NaN:F(u.height,o),x=t,S=n,C=r,w=i;if(I(y)&&(x=y,C=P.Exactly),I(b)&&(S=b,w=P.Exactly),x=Tt(u,!0,x,a,o),S=Tt(u,!1,S,a,o),e.measureFunc&&e.children.length===0){let d=C===P.Undefined?NaN:Math.max(0,x-_),f=w===P.Undefined?NaN:Math.max(0,S-v);Ut++;let m=e.measureFunc(d,C,f,w);e.layout.width=C===P.Exactly?x:Tt(u,!0,(m.width??0)+_,a,o),e.layout.height=w===P.Exactly?S:Tt(u,!1,(m.height??0)+v,a,o),ut(e,s),lt(e,t,n,r,i,a,o,c,l,p);return}if(e.children.length===0){e.layout.width=C===P.Exactly?x:Tt(u,!0,_,a,o),e.layout.height=w===P.Exactly?S:Tt(u,!1,v,a,o),ut(e,s),lt(e,t,n,r,i,a,o,c,l,p);return}let T=u.flexDirection,E=at(T),D=rt(T),O=D?x:S,ee=D?S:x,te=D?C:w,k=D?w:C,ne=D?_:v,re=D?v:_,ie=I(O)?Math.max(0,O-ne):NaN,ae=I(ee)?Math.max(0,ee-re):NaN,oe=wt(u,D?Be.Column:Be.Row,ie),se=[],ce=[];Dt(e,se,ce);let le=I(x)?x:NaN,ue=I(S)?S:NaN,de=u.flexWrap!==Ge.NoWrap,fe=wt(u,D?Be.Row:Be.Column,ae);for(let e of se)e._flexBasis=gt(e,T,ie,ae,k,le,ue);let pe=[];if(!de||!I(ie)||se.length===0){for(let e of se)e._lineIndex=0;pe.push(se)}else{let e=0,t=0;for(let n=0;n<se.length;n++){let r=se[n],i=Tt(r.style,D,r._flexBasis,le,ue),a=Math.max(0,i)+Ct(r,T,le),o=n>e?oe:0;n>e&&t+o+a>ie?(pe.push(se.slice(e,n)),e=n,t=a):t+=o+a,r._lineIndex=pe.length}pe.push(se.slice(e))}let A=pe.length,me=St(e,se),he=Array(A),ge=Array(A),_e=me?Array(A).fill(0):[],ve=0,ye=0;for(let t=0;t<A;t++){let n=pe[t],r=n.length>1?oe*(n.length-1):0,i=r;for(let e of n)i+=e._flexBasis+Ct(e,T,le);let c=ie;if(!I(c)){let e=D?a:o,t=F(D?u.minWidth:u.minHeight,e),n=F(D?u.maxWidth:u.maxHeight,e);I(n)&&i>n-ne?c=Math.max(0,n-ne):I(t)&&i<t-ne&&(c=Math.max(0,t-ne))}vt(n,c,i,D,le,ue);let l=0;for(let e of n){let t=e.style,n=t.alignSelf===M.Auto?u.alignItems:t.alignSelf,r=Ct(e,E,le),i=NaN,a=P.Undefined,o=F(D?t.height:t.width,D?ue:le),c=D?Ft:Pt,d=D?Lt:It,f=e._hasAutoMargin&&($e(t.margin,c)||$e(t.margin,d));I(o)?(i=o,a=P.Exactly):n===M.Stretch&&!f&&!de&&I(ae)&&k===P.Exactly?(i=Math.max(0,ae-r),a=P.Exactly):!de&&I(ae)&&(i=Math.max(0,ae-r),a=P.AtMost),ft(e,D?e._mainSize:i,D?i:e._mainSize,D?P.Exactly:a,D?a:P.Exactly,le,ue,s,D,!D),e._crossSize=D?e.layout.height:e.layout.width,l=Math.max(l,e._crossSize+r)}if(me){let r=0,i=0;for(let t of n){if(bt(e,t)!==M.Baseline)continue;let n=Ze(t.style.margin,Ft,le),a=Ze(t.style.margin,Lt,le),o=xt(t)+n,s=t.layout.height+n+a-o;o>r&&(r=o),s>i&&(i=s)}_e[t]=r,r+i>l&&(l=r+i)}let d=ot(T),f=st(T),p=r;for(let e of n){let t=e.layout.margin;p+=e._mainSize+t[d]+t[f]}he[t]=p,ge[t]=l,ve=Math.max(ve,p),ye+=l}let be=A>1?fe*(A-1):0;ye+=be;let xe=u.overflow===He.Scroll,Se=ve+ne,Ce=te===P.Exactly?O:te===P.AtMost&&xe?Math.max(Math.min(O,Se),ne):de&&A>1&&te===P.AtMost?O:Se,we=ye+re,Te=k===P.Exactly?ee:k===P.AtMost&&xe?Math.max(Math.min(ee,we),re):we;if(e.layout.width=Tt(u,!0,D?Ce:Te,a,o),e.layout.height=Tt(u,!1,D?Te:Ce,a,o),ut(e,s),lt(e,t,n,r,i,a,o,c,l,p),!s)return;let Ee=(D?e.layout.width:e.layout.height)-ne,De=(D?e.layout.height:e.layout.width)-re,Oe=ot(T),ke=st(T),Ae=D?Ft:Pt,je=D?Lt:It,Me=it(T),Ne=D?e.layout.width:e.layout.height,j=m[Ae]+h[Ae],Pe=fe,Fe=De-ye;if(A===1&&!de&&!me)ge[0]=De;else{let e=Math.max(0,Fe);switch(u.alignContent){case M.FlexStart:break;case M.Center:j+=Fe/2;break;case M.FlexEnd:j+=Fe;break;case M.Stretch:if(A>0&&e>0){let t=e/A;for(let e=0;e<A;e++)ge[e]+=t}break;case M.SpaceBetween:A>1&&(Pe+=e/(A-1));break;case M.SpaceAround:A>0&&(Pe+=e/A,j+=e/A/2);break;case M.SpaceEvenly:A>0&&(Pe+=e/(A+1),j+=e/(A+1));break;default:break}}let Ie=u.flexWrap===Ge.WrapReverse,Le=D?e.layout.height:e.layout.width,N=j;for(let e=0;e<A;e++){let t=pe[e],n=ge[e],r=he[e],i=t.length;if(de||k!==P.Exactly)for(let e of t){let t=e.style,r=t.alignSelf===M.Auto?u.alignItems:t.alignSelf,i=I(F(D?t.height:t.width,D?ue:le)),a=e._hasAutoMargin&&($e(t.margin,Ae)||$e(t.margin,je));if(r===M.Stretch&&!i&&!a){let t=Ct(e,E,le),r=Math.max(0,n-t);e._crossSize!==r&&(ft(e,D?e._mainSize:r,D?r:e._mainSize,P.Exactly,P.Exactly,le,ue,s,D,!D),e._crossSize=r)}}let a=m[Oe]+h[Oe],o=oe,c=0;for(let e of t)e._hasAutoMargin&&($e(e.style.margin,Oe)&&c++,$e(e.style.margin,ke)&&c++);let l=Ee-r,d=Math.max(0,l),f=c>0&&d>0?d/c:0;if(c===0)switch(u.justifyContent){case Ve.FlexStart:break;case Ve.Center:a+=l/2;break;case Ve.FlexEnd:a+=l;break;case Ve.SpaceBetween:i>1&&(o+=d/(i-1));break;case Ve.SpaceAround:i>0&&(o+=d/i,a+=d/i/2);break;case Ve.SpaceEvenly:i>0&&(o+=d/(i+1),a+=d/(i+1));break}let p=Ie?Le-N-n:N,g=a;for(let r of t){let t=r.style.margin,i=r.layout.margin,a=!1,s=!1,c=!1,l=!1,d,m,h,_;r._hasAutoMargin?(a=$e(t,Oe),s=$e(t,ke),c=$e(t,Ae),l=$e(t,je),d=a?f:i[Oe],m=s?f:i[ke],h=c?0:i[Ae],_=l?0:i[je]):(d=i[Oe],m=i[ke],h=i[Ae],_=i[je]);let v=Me?Ne-(g+d)-r._mainSize:g+d,y=r.style.alignSelf===M.Auto?u.alignItems:r.style.alignSelf,b=p+h,x=n-r._crossSize-h-_;if(c&&l)b+=Math.max(0,x)/2;else if(c)b+=Math.max(0,x);else if(!l)switch(y){case M.FlexStart:case M.Stretch:Ie&&(b+=x);break;case M.Center:b+=x/2;break;case M.FlexEnd:Ie||(b+=x);break;case M.Baseline:me&&(b=p+_e[e]-xt(r));break;default:break}let S=0,C=0;if(r._hasPosition){let e=F(Qe(r.style.position,Pt),le),t=F(Qe(r.style.position,It),le),n=F(Qe(r.style.position,Ft),le),i=F(Qe(r.style.position,Lt),le);S=I(e)?e:I(t)?-t:0,C=I(n)?n:I(i)?-i:0}D?(r.layout.left=v+S,r.layout.top=b+C):(r.layout.left=b+S,r.layout.top=v+C),g+=r._mainSize+d+m+o}N+=n+Pe}for(let t of ce)pt(e,t,e.layout.width,e.layout.height,m,h)}function pt(e,t,n,r,i,a){let o=t.style,s=Qe(o.position,Pt),c=Qe(o.position,It),l=Qe(o.position,Ft),u=Qe(o.position,Lt),d=F(s,n),f=F(c,n),p=F(l,r),m=F(u,r),h=n-a[0]-a[2],g=r-a[1]-a[3],_=F(o.width,h),v=F(o.height,g);!I(_)&&I(d)&&I(f)&&(_=h-d-f),!I(v)&&I(p)&&I(m)&&(v=g-p-m),ft(t,_,v,I(_)?P.Exactly:P.Undefined,I(v)?P.Exactly:P.Undefined,h,g,!0);let y=Ze(o.margin,Pt,n),b=Ze(o.margin,Ft,n),x=Ze(o.margin,It,n),S=Ze(o.margin,Lt,n),C=e.style.flexDirection,w=it(C),T=rt(C),E=e.style.flexWrap===Ge.WrapReverse,D=o.alignSelf===M.Auto?e.style.alignItems:o.alignSelf,O;if(I(d))O=a[0]+d+y;else if(I(f))O=n-a[2]-f-t.layout.width-x;else if(T){let r=i[0]+a[0],o=n-i[2]-a[2];O=w?o-t.layout.width-x:mt(e.style.justifyContent,r,o,t.layout.width)+y}else O=ht(D,i[0]+a[0],n-i[2]-a[2],t.layout.width,E)+y;let ee;if(I(p))ee=a[1]+p+b;else if(I(m))ee=r-a[3]-m-t.layout.height-S;else if(T)ee=ht(D,i[1]+a[1],r-i[3]-a[3],t.layout.height,E)+b;else{let n=i[1]+a[1],o=r-i[3]-a[3];ee=w?o-t.layout.height-S:mt(e.style.justifyContent,n,o,t.layout.height)+b}t.layout.left=O,t.layout.top=ee}function mt(e,t,n,r){switch(e){case Ve.Center:return t+(n-t-r)/2;case Ve.FlexEnd:return n-r;default:return t}}function ht(e,t,n,r,i){switch(e){case M.Center:return t+(n-t-r)/2;case M.FlexEnd:return i?t:n-r;default:return i?n-r:t}}function gt(e,t,n,r,i,a,o){if((e._fbGen===Vt||!e.isDirty_)&&e._fbCrossMode===i&&Ye(e._fbOwnerW,a)&&Ye(e._fbOwnerH,o)&&Ye(e._fbAvailMain,n)&&Ye(e._fbAvailCross,r))return e._fbBasis;let s=e.style,c=rt(t),l=F(s.flexBasis,n);if(I(l)){let t=Math.max(0,l);return e._fbBasis=t,e._fbOwnerW=a,e._fbOwnerH=o,e._fbAvailMain=n,e._fbAvailCross=r,e._fbCrossMode=i,e._fbGen=Vt,t}let u=F(c?s.width:s.height,c?a:o);if(I(u)){let t=Math.max(0,u);return e._fbBasis=t,e._fbOwnerW=a,e._fbOwnerH=o,e._fbAvailMain=n,e._fbAvailCross=r,e._fbCrossMode=i,e._fbGen=Vt,t}let d=F(c?s.height:s.width,c?o:a),f=I(d)?P.Exactly:P.Undefined;!I(d)&&I(r)&&(d=r,f=i===P.Exactly&&yt(e)?P.Exactly:P.AtMost);let p=NaN,m=P.Undefined;c&&I(n)&&_t(e)&&(p=n,m=P.AtMost),ft(e,c?p:d,c?d:p,c?m:f,c?f:m,a,o,!1);let h=c?e.layout.width:e.layout.height;return e._fbBasis=h,e._fbOwnerW=a,e._fbOwnerH=o,e._fbAvailMain=n,e._fbAvailCross=r,e._fbCrossMode=i,e._fbGen=Vt,h}function _t(e){if(e.measureFunc)return!0;for(let t of e.children)if(_t(t))return!0;return!1}function vt(e,t,n,r,i,a){let o=e.length,s=Array(o).fill(!1),c=I(t)?t-n:0;for(let n=0;n<o;n++){let o=e[n],l=Tt(o.style,r,o._flexBasis,i,a);!I(t)||(c>=0?o.style.flexGrow===0:o.style.flexShrink===0)?(o._mainSize=Math.max(0,l),s[n]=!0):o._mainSize=o._flexBasis}let l=Array(o);for(let t=0;t<=o;t++){let t=0,n=0,u=0,d=0;for(let r=0;r<o;r++){let i=e[r];s[r]?t+=i._mainSize-i._flexBasis:(n+=i.style.flexGrow,u+=i.style.flexShrink*i._flexBasis,d++)}if(d===0)break;let f=c-t;if(f>0&&n>0&&n<1){let e=c*n;e<f&&(f=e)}else if(f<0&&u>0){let t=0;for(let n=0;n<o;n++)s[n]||(t+=e[n].style.flexShrink);if(t<1){let e=c*t;e>f&&(f=e)}}let p=0;for(let t=0;t<o;t++){if(s[t])continue;let o=e[t],c=o._flexBasis;f>0&&n>0?c+=f*o.style.flexGrow/n:f<0&&u>0&&(c+=f*(o.style.flexShrink*o._flexBasis)/u),l[t]=c;let d=Math.max(0,Tt(o.style,r,c,i,a));o._mainSize=d,p+=d-c}if(p===0)break;let m=!1;for(let t=0;t<o;t++){if(s[t])continue;let n=e[t]._mainSize-l[t];(p>0&&n>0||p<0&&n<0)&&(s[t]=!0,m=!0)}if(!m)break}}function yt(e){let t=e.parent;return t?(e.style.alignSelf===M.Auto?t.style.alignItems:e.style.alignSelf)===M.Stretch:!1}function bt(e,t){return t.style.alignSelf===M.Auto?e.style.alignItems:t.style.alignSelf}function xt(e){let t=null;for(let n of e.children){if(n._lineIndex>0)break;if(n.style.positionType!==Ue.Absolute&&n.style.display!==Le.None){if(bt(e,n)===M.Baseline||n.isReferenceBaseline_){t=n;break}t===null&&(t=n)}}return t===null?e.layout.height:xt(t)+t.layout.top}function St(e,t){if(!rt(e.style.flexDirection))return!1;if(e.style.alignItems===M.Baseline)return!0;for(let e of t)if(e.style.alignSelf===M.Baseline)return!0;return!1}function Ct(e,t,n){return e._hasMargin?Ze(e.style.margin,ot(t),n)+Ze(e.style.margin,st(t),n):0}function wt(e,t,n){let r=e.gap[t];r.unit===We.Undefined&&(r=e.gap[Be.All]);let i=F(r,n);return I(i)?Math.max(0,i):0}function Tt(e,t,n,r,i){let a=t?e.minWidth:e.minHeight,o=t?e.maxWidth:e.maxHeight,s=a.unit,c=o.unit;if(s===0&&c===0)return n;let l=t?r:i,u=n;if(c===1)u>o.value&&(u=o.value);else if(c===2){let e=o.value*l/100;e===e&&u>e&&(u=e)}if(s===1)u<a.value&&(u=a.value);else if(s===2){let e=a.value*l/100;e===e&&u<e&&(u=e)}return u}function Et(e){for(let t of e.children)t.layout.left=0,t.layout.top=0,t.layout.width=0,t.layout.height=0,t.isDirty_=!0,t._hasL=!1,t._hasM=!1,Et(t)}function Dt(e,t,n){for(let r of e.children){let e=r.style.display;e===Le.None?(r.layout.left=0,r.layout.top=0,r.layout.width=0,r.layout.height=0,Et(r)):e===Le.Contents?(r.layout.left=0,r.layout.top=0,r.layout.width=0,r.layout.height=0,Dt(r,t,n)):r.style.positionType===Ue.Absolute?n.push(r):t.push(r)}}function Ot(e,t,n,r){if(t===0)return;let i=e.layout,a=i.left,o=i.top,s=i.width,c=i.height,l=n+a,u=r+o,d=e.measureFunc!==null;i.left=At(a,t,!1,d),i.top=At(o,t,!1,d);let f=l+s,p=u+c,m=!kt(s*t),h=!kt(c*t);i.width=At(f,t,d&&m,d&&!m)-At(l,t,!1,d),i.height=At(p,t,d&&h,d&&!h)-At(u,t,!1,d);for(let n of e.children)Ot(n,t,l,u)}function kt(e){let t=e-Math.floor(e);return t<1e-4||t>.9999}function At(e,t,n,r){let i=e*t,a=i-Math.floor(i);return a<0&&(a+=1),i=a<1e-4?Math.floor(i):a>.9999||n?Math.ceil(i):r?Math.floor(i):Math.floor(i)+ +(a>=.4999),i/t}function jt(e){if(e===void 0)return Nt;if(e===`auto`)return L;if(typeof e==`number`)return Number.isFinite(e)?qe(e):Nt;if(typeof e==`string`&&e.endsWith(`%`))return Je(parseFloat(e));let t=parseFloat(e);return isNaN(t)?Nt:qe(t)}function Mt(e){switch(e){case N.Left:case N.Start:return Pt;case N.Top:return Ft;case N.Right:case N.End:return It;case N.Bottom:return Lt;default:return Pt}}var Nt,L,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt=t((()=>{Ke(),c(),Nt={unit:We.Undefined,value:NaN},L={unit:We.Auto,value:NaN},Pt=0,Ft=1,It=2,Lt=3,Rt=class{constructor(e){l(this,`style`,void 0),l(this,`layout`,void 0),l(this,`parent`,void 0),l(this,`children`,void 0),l(this,`measureFunc`,void 0),l(this,`config`,void 0),l(this,`isDirty_`,void 0),l(this,`isReferenceBaseline_`,void 0),l(this,`_flexBasis`,0),l(this,`_mainSize`,0),l(this,`_crossSize`,0),l(this,`_lineIndex`,0),l(this,`_hasAutoMargin`,!1),l(this,`_hasPosition`,!1),l(this,`_hasPadding`,!1),l(this,`_hasBorder`,!1),l(this,`_hasMargin`,!1),l(this,`_lW`,NaN),l(this,`_lH`,NaN),l(this,`_lWM`,0),l(this,`_lHM`,0),l(this,`_lOW`,NaN),l(this,`_lOH`,NaN),l(this,`_lFW`,!1),l(this,`_lFH`,!1),l(this,`_lOutW`,NaN),l(this,`_lOutH`,NaN),l(this,`_hasL`,!1),l(this,`_mW`,NaN),l(this,`_mH`,NaN),l(this,`_mWM`,0),l(this,`_mHM`,0),l(this,`_mOW`,NaN),l(this,`_mOH`,NaN),l(this,`_mOutW`,NaN),l(this,`_mOutH`,NaN),l(this,`_hasM`,!1),l(this,`_fbBasis`,NaN),l(this,`_fbOwnerW`,NaN),l(this,`_fbOwnerH`,NaN),l(this,`_fbAvailMain`,NaN),l(this,`_fbAvailCross`,NaN),l(this,`_fbCrossMode`,0),l(this,`_fbGen`,-1),l(this,`_cIn`,null),l(this,`_cOut`,null),l(this,`_cGen`,-1),l(this,`_cN`,0),l(this,`_cWr`,0),this.style=Xe(),this.layout={left:0,top:0,width:0,height:0,border:[0,0,0,0],padding:[0,0,0,0],margin:[0,0,0,0]},this.parent=null,this.children=[],this.measureFunc=null,this.config=e??zt,this.isDirty_=!0,this.isReferenceBaseline_=!1,Gt++}insertChild(e,t){e.parent=this,this.children.splice(t,0,e),this.markDirty()}removeChild(e){let t=this.children.indexOf(e);t>=0&&(this.children.splice(t,1),e.parent=null,this.markDirty())}getChild(e){return this.children[e]}getChildCount(){return this.children.length}getParent(){return this.parent}free(){this.parent=null,this.children=[],this.measureFunc=null,this._cIn=null,this._cOut=null,Gt--}freeRecursive(){for(let e of this.children)e.freeRecursive();this.free()}reset(){this.style=Xe(),this.children=[],this.parent=null,this.measureFunc=null,this.isDirty_=!0,this._hasAutoMargin=!1,this._hasPosition=!1,this._hasPadding=!1,this._hasBorder=!1,this._hasMargin=!1,this._hasL=!1,this._hasM=!1,this._cN=0,this._cWr=0,this._fbBasis=NaN}markDirty(){this.isDirty_=!0,this.parent&&!this.parent.isDirty_&&this.parent.markDirty()}isDirty(){return this.isDirty_}hasNewLayout(){return!0}markLayoutSeen(){}setMeasureFunc(e){this.measureFunc=e,this.markDirty()}unsetMeasureFunc(){this.measureFunc=null,this.markDirty()}getComputedLeft(){return this.layout.left}getComputedTop(){return this.layout.top}getComputedWidth(){return this.layout.width}getComputedHeight(){return this.layout.height}getComputedRight(){let e=this.parent;return e?e.layout.width-this.layout.left-this.layout.width:0}getComputedBottom(){let e=this.parent;return e?e.layout.height-this.layout.top-this.layout.height:0}getComputedLayout(){return{left:this.layout.left,top:this.layout.top,right:this.getComputedRight(),bottom:this.getComputedBottom(),width:this.layout.width,height:this.layout.height}}getComputedBorder(e){return this.layout.border[Mt(e)]}getComputedPadding(e){return this.layout.padding[Mt(e)]}getComputedMargin(e){return this.layout.margin[Mt(e)]}setWidth(e){this.style.width=jt(e),this.markDirty()}setWidthPercent(e){this.style.width=Je(e),this.markDirty()}setWidthAuto(){this.style.width=L,this.markDirty()}setHeight(e){this.style.height=jt(e),this.markDirty()}setHeightPercent(e){this.style.height=Je(e),this.markDirty()}setHeightAuto(){this.style.height=L,this.markDirty()}setMinWidth(e){this.style.minWidth=jt(e),this.markDirty()}setMinWidthPercent(e){this.style.minWidth=Je(e),this.markDirty()}setMinHeight(e){this.style.minHeight=jt(e),this.markDirty()}setMinHeightPercent(e){this.style.minHeight=Je(e),this.markDirty()}setMaxWidth(e){this.style.maxWidth=jt(e),this.markDirty()}setMaxWidthPercent(e){this.style.maxWidth=Je(e),this.markDirty()}setMaxHeight(e){this.style.maxHeight=jt(e),this.markDirty()}setMaxHeightPercent(e){this.style.maxHeight=Je(e),this.markDirty()}setFlexDirection(e){this.style.flexDirection=e,this.markDirty()}setFlexGrow(e){this.style.flexGrow=e??0,this.markDirty()}setFlexShrink(e){this.style.flexShrink=e??0,this.markDirty()}setFlex(e){e===void 0||isNaN(e)?(this.style.flexGrow=0,this.style.flexShrink=0):e>0?(this.style.flexGrow=e,this.style.flexShrink=1,this.style.flexBasis=qe(0)):e<0?(this.style.flexGrow=0,this.style.flexShrink=-e):(this.style.flexGrow=0,this.style.flexShrink=0),this.markDirty()}setFlexBasis(e){this.style.flexBasis=jt(e),this.markDirty()}setFlexBasisPercent(e){this.style.flexBasis=Je(e),this.markDirty()}setFlexBasisAuto(){this.style.flexBasis=L,this.markDirty()}setFlexWrap(e){this.style.flexWrap=e,this.markDirty()}setAlignItems(e){this.style.alignItems=e,this.markDirty()}setAlignSelf(e){this.style.alignSelf=e,this.markDirty()}setAlignContent(e){this.style.alignContent=e,this.markDirty()}setJustifyContent(e){this.style.justifyContent=e,this.markDirty()}setDisplay(e){this.style.display=e,this.markDirty()}getDisplay(){return this.style.display}setPositionType(e){this.style.positionType=e,this.markDirty()}setPosition(e,t){this.style.position[e]=jt(t),this._hasPosition=tt(this.style.position),this.markDirty()}setPositionPercent(e,t){this.style.position[e]=Je(t),this._hasPosition=!0,this.markDirty()}setPositionAuto(e){this.style.position[e]=L,this._hasPosition=!0,this.markDirty()}setOverflow(e){this.style.overflow=e,this.markDirty()}setDirection(e){this.style.direction=e,this.markDirty()}setBoxSizing(e){}setMargin(e,t){let n=jt(t);this.style.margin[e]=n,n.unit===We.Auto?this._hasAutoMargin=!0:this._hasAutoMargin=et(this.style.margin),this._hasMargin=this._hasAutoMargin||tt(this.style.margin),this.markDirty()}setMarginPercent(e,t){this.style.margin[e]=Je(t),this._hasAutoMargin=et(this.style.margin),this._hasMargin=!0,this.markDirty()}setMarginAuto(e){this.style.margin[e]=L,this._hasAutoMargin=!0,this._hasMargin=!0,this.markDirty()}setPadding(e,t){this.style.padding[e]=jt(t),this._hasPadding=tt(this.style.padding),this.markDirty()}setPaddingPercent(e,t){this.style.padding[e]=Je(t),this._hasPadding=!0,this.markDirty()}setBorder(e,t){this.style.border[e]=t===void 0?Nt:qe(t),this._hasBorder=tt(this.style.border),this.markDirty()}setGap(e,t){this.style.gap[e]=jt(t),this.markDirty()}setGapPercent(e,t){this.style.gap[e]=Je(t),this.markDirty()}getFlexDirection(){return this.style.flexDirection}getJustifyContent(){return this.style.justifyContent}getAlignItems(){return this.style.alignItems}getAlignSelf(){return this.style.alignSelf}getAlignContent(){return this.style.alignContent}getFlexGrow(){return this.style.flexGrow}getFlexShrink(){return this.style.flexShrink}getFlexBasis(){return this.style.flexBasis}getFlexWrap(){return this.style.flexWrap}getWidth(){return this.style.width}getHeight(){return this.style.height}getOverflow(){return this.style.overflow}getPositionType(){return this.style.positionType}getDirection(){return this.style.direction}copyStyle(e){}setDirtiedFunc(e){}unsetDirtiedFunc(){}setIsReferenceBaseline(e){this.isReferenceBaseline_=e,this.markDirty()}isReferenceBaseline(){return this.isReferenceBaseline_}setAspectRatio(e){}getAspectRatio(){return NaN}setAlwaysFormsContainingBlock(e){}calculateLayout(e,t,n){Ht=0,Ut=0,Wt=0,Vt++;let r=e===void 0?NaN:e,i=t===void 0?NaN:t;ft(this,r,i,I(r)?P.Exactly:P.Undefined,I(i)?P.Exactly:P.Undefined,r,i,!0);let a=this.layout.margin,o=F(Qe(this.style.position,Pt),I(r)?r:0),s=F(Qe(this.style.position,Ft),I(r)?r:0);this.layout.left=a[Pt]+(I(o)?o:0),this.layout.top=a[Ft]+(I(s)?s:0),Ot(this,this.config.pointScaleFactor,0,0)}},zt=ct(),Bt=4,Vt=0,Ht=0,Ut=0,Wt=0,Gt=0,Kt={Config:{create:ct,destroy(){}},Node:{create:e=>new Rt(e),createDefault:()=>new Rt,createWithConfig:e=>new Rt(e),destroy(){}}}}));function Jt(){let e=new Map;for(let[t,n]of Object.entries(R)){for(let[t,r]of Object.entries(n))R[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=R[t],e.set(r[0],r[1]);Object.defineProperty(R,t,{value:n,enumerable:!1})}return Object.defineProperty(R,`codes`,{value:e,enumerable:!1}),R.color.close=`\x1B[39m`,R.bgColor.close=`\x1B[49m`,R.color.ansi=Xt(),R.color.ansi256=Zt(),R.color.ansi16m=Qt(),R.bgColor.ansi=Xt(Yt),R.bgColor.ansi256=Zt(Yt),R.bgColor.ansi16m=Qt(Yt),Object.defineProperties(R,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>R.rgbToAnsi256(...R.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>R.ansi256ToAnsi(R.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>R.ansi256ToAnsi(R.hexToAnsi256(e)),enumerable:!1}}),R}var Yt,Xt,Zt,Qt,R,$t,en,tn,nn=t((()=>{Yt=10,Xt=(e=0)=>t=>`\u001B[${t+e}m`,Zt=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,Qt=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,R={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Object.keys(R.modifier),$t=Object.keys(R.color),en=Object.keys(R.bgColor),[...$t,...en],tn=Jt()}));function rn(e,t=globalThis.Deno?globalThis.Deno.args:b.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}function an(){if(`FORCE_COLOR`in ln)return ln.FORCE_COLOR===`true`?1:ln.FORCE_COLOR===`false`?0:ln.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ln.FORCE_COLOR,10),3)}function on(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function sn(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=an();r!==void 0&&(un=r);let i=n?un:r;if(i===0)return 0;if(n){if(rn(`color=16m`)||rn(`color=full`)||rn(`color=truecolor`))return 3;if(rn(`color=256`))return 2}if(`TF_BUILD`in ln&&`AGENT_NAME`in ln)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(ln.TERM===`dumb`)return a;if(b.platform===`win32`){let e=O.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in ln)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in ln)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in ln)||ln.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in ln)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ln.TEAMCITY_VERSION);if(ln.COLORTERM===`truecolor`||ln.TERM===`xterm-kitty`||ln.TERM===`xterm-ghostty`||ln.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in ln){let e=Number.parseInt((ln.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(ln.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(ln.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ln.TERM)||`COLORTERM`in ln?1:a}function cn(e,t={}){return on(sn(e,{streamIsTTY:e&&e.isTTY,...t}))}var ln,un,dn,fn=t((()=>{({env:ln}=b),rn(`no-color`)||rn(`no-colors`)||rn(`color=false`)||rn(`color=never`)?un=0:(rn(`color`)||rn(`colors`)||rn(`color=true`)||rn(`color=always`))&&(un=1),dn={stdout:cn({isTTY:ne.isatty(1)}),stderr:cn({isTTY:ne.isatty(2)})}}));function pn(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}function mn(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
|
|
2
|
+
`:`
|
|
3
|
+
`)+n,i=r+1,r=e.indexOf(`
|
|
4
|
+
`,i)}while(r!==-1);return a+=e.slice(i),a}var hn=t((()=>{}));function gn(e){return En(e)}var _n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,z,Mn=t((()=>{nn(),fn(),hn(),{stdout:_n,stderr:vn}=dn,yn=Symbol(`GENERATOR`),bn=Symbol(`STYLER`),xn=Symbol(`IS_EMPTY`),Sn=[`ansi`,`ansi`,`ansi256`,`ansi16m`],Cn=Object.create(null),wn=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=_n?_n.level:0;e.level=t.level===void 0?n:t.level},Tn=class{constructor(e){return En(e)}},En=e=>{let t=(...e)=>e.join(` `);return wn(t,e),Object.setPrototypeOf(t,gn.prototype),t},Object.setPrototypeOf(gn.prototype,Function.prototype);for(let[e,t]of Object.entries(tn))Cn[e]={get(){let n=An(this,kn(t.open,t.close,this[bn]),this[xn]);return Object.defineProperty(this,e,{value:n}),n}};Cn.visible={get(){let e=An(this,this[bn],!0);return Object.defineProperty(this,`visible`,{value:e}),e}},Dn=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?tn[n].ansi16m(...r):t===`ansi256`?tn[n].ansi256(tn.rgbToAnsi256(...r)):tn[n].ansi(tn.rgbToAnsi(...r)):e===`hex`?Dn(`rgb`,t,n,...tn.hexToRgb(...r)):tn[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){Cn[e]={get(){let{level:t}=this;return function(...n){let r=kn(Dn(e,Sn[t],`color`,...n),tn.color.close,this[bn]);return An(this,r,this[xn])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);Cn[t]={get(){let{level:t}=this;return function(...n){let r=kn(Dn(e,Sn[t],`bgColor`,...n),tn.bgColor.close,this[bn]);return An(this,r,this[xn])}}}}On=Object.defineProperties(()=>{},{...Cn,level:{enumerable:!0,get(){return this[yn].level},set(e){this[yn].level=e}}}),kn=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},An=(e,t,n)=>{let r=(...e)=>jn(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,On),r[yn]=e,r[bn]=t,r[xn]=n,r},jn=(e,t)=>{if(e.level<=0||!t)return e[xn]?``:t;let n=e[bn];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=pn(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
|
|
5
|
+
`);return a!==-1&&(t=mn(t,i,r,a)),r+t+i},Object.defineProperties(gn.prototype,Cn),z=gn(),gn({level:vn?vn.level:0})}));function Nn(){return process.env.TERM_PROGRAM===`vscode`&&z.level===2?(z.level=3,!0):!1}function Pn(){return process.env.CLAUDE_CODE_TMUX_TRUECOLOR?!1:process.env.TMUX&&z.level>2?(z.level=2,!0):!1}function Fn(e,t){let n=e;return t.inverse&&(n=z.inverse(n)),t.strikethrough&&(n=z.strikethrough(n)),t.underline&&(n=z.underline(n)),t.italic&&(n=z.italic(n)),t.bold&&(n=z.bold(n)),t.dim&&(n=z.dim(n)),t.color&&(n=zn(n,t.color,`foreground`)),t.backgroundColor&&(n=zn(n,t.backgroundColor,`background`)),n}function In(e,t){return t?zn(e,t,`foreground`):e}var Ln,Rn,zn,Bn=t((()=>{Mn(),Nn(),Pn(),Ln=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/,Rn=/^ansi256\(\s?(\d+)\s?\)$/,zn=(e,t,n)=>{if(!t)return e;if(t.startsWith(`ansi:`))switch(t.substring(5)){case`black`:return n===`foreground`?z.black(e):z.bgBlack(e);case`red`:return n===`foreground`?z.red(e):z.bgRed(e);case`green`:return n===`foreground`?z.green(e):z.bgGreen(e);case`yellow`:return n===`foreground`?z.yellow(e):z.bgYellow(e);case`blue`:return n===`foreground`?z.blue(e):z.bgBlue(e);case`magenta`:return n===`foreground`?z.magenta(e):z.bgMagenta(e);case`cyan`:return n===`foreground`?z.cyan(e):z.bgCyan(e);case`white`:return n===`foreground`?z.white(e):z.bgWhite(e);case`blackBright`:return n===`foreground`?z.blackBright(e):z.bgBlackBright(e);case`redBright`:return n===`foreground`?z.redBright(e):z.bgRedBright(e);case`greenBright`:return n===`foreground`?z.greenBright(e):z.bgGreenBright(e);case`yellowBright`:return n===`foreground`?z.yellowBright(e):z.bgYellowBright(e);case`blueBright`:return n===`foreground`?z.blueBright(e):z.bgBlueBright(e);case`magentaBright`:return n===`foreground`?z.magentaBright(e):z.bgMagentaBright(e);case`cyanBright`:return n===`foreground`?z.cyanBright(e):z.bgCyanBright(e);case`whiteBright`:return n===`foreground`?z.whiteBright(e):z.bgWhiteBright(e)}if(t.startsWith(`#`))return n===`foreground`?z.hex(t)(e):z.bgHex(t)(e);if(t.startsWith(`ansi256`)){let r=Rn.exec(t);if(!r)return e;let i=Number(r[1]);return n===`foreground`?z.ansi256(i)(e):z.bgAnsi256(i)(e)}if(t.startsWith(`rgb`)){let r=Ln.exec(t);if(!r)return e;let i=Number(r[1]),a=Number(r[2]),o=Number(r[3]);return n===`foreground`?z.rgb(i,a,o)(e):z.bgRgb(i,a,o)(e)}return e}})),Vn,Hn=t((()=>{c(),Vn=class{constructor(){l(this,`_didStopImmediatePropagation`,!1)}didStopImmediatePropagation(){return this._didStopImmediatePropagation}stopImmediatePropagation(){this._didStopImmediatePropagation=!0}}})),Un,Wn=t((()=>{Hn(),Un=class extends ie{constructor(){super(),this.setMaxListeners(0)}emit(e,...t){if(e===`error`)return super.emit(e,...t);let n=this.rawListeners(e);if(n.length===0)return!1;let r=t[0]instanceof Vn?t[0]:null;for(let e of n)if(e.apply(this,t),r?.didStopImmediatePropagation())break;return!0}}}));function Gn(e){return e>=48&&e<=126}var Kn,qn,Jn=t((()=>{Kn={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},qn={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}}));function Yn(e){return e>=ur.PARAM_START&&e<=ur.PARAM_END}function Xn(e){return e>=ur.INTERMEDIATE_START&&e<=ur.INTERMEDIATE_END}function Zn(e){return e>=ur.FINAL_START&&e<=ur.FINAL_END}function B(...e){if(e.length===0)return lr;if(e.length===1)return`${lr}${e[0]}`;let t=e.slice(0,-1),n=e[e.length-1];return`${lr}${t.join(`;`)}${n}`}function Qn(e=1){return e===0?``:B(e,`A`)}function $n(e=1){return e===0?``:B(e,`B`)}function er(e=1){return e===0?``:B(e,`C`)}function tr(e=1){return e===0?``:B(e,`D`)}function nr(e){return B(e,`G`)}function rr(e,t){return B(e,t,`H`)}function ir(e,t){let n=``;return e<0?n+=tr(-e):e>0&&(n+=er(e)),t<0?n+=Qn(-t):t>0&&(n+=$n(t)),n}function ar(e){if(e<=0)return``;let t=``;for(let n=0;n<e;n++)t+=_r,n<e-1&&(t+=Qn(1));return t+=hr,t}function or(e=1){return e===0?``:B(e,`S`)}function sr(e=1){return e===0?``:B(e,`T`)}function cr(e,t){return B(e,t,`r`)}var lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr=t((()=>{Jn(),lr=`\x1B`+String.fromCharCode(qn.CSI),ur={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126},dr={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},fr=[`toEnd`,`toStart`,`all`,`scrollback`],pr=[`toEnd`,`toStart`,`all`],mr=[{style:`block`,blinking:!0},{style:`block`,blinking:!0},{style:`block`,blinking:!1},{style:`underline`,blinking:!0},{style:`underline`,blinking:!1},{style:`bar`,blinking:!0},{style:`bar`,blinking:!1}],hr=B(`G`),gr=B(`H`),B(`s`),B(`u`),_r=B(2,`K`),vr=B(2,`J`),yr=B(3,`J`),br=B(`r`),xr=B(`200~`),Sr=B(`201~`),Cr=B(`I`),wr=B(`O`),Tr=B(`>1u`),Er=B(`<u`),Dr=B(`>4;2m`),Or=B(`>4m`)}));function Ar(e){let t=`ground`,n=``,r=e?.x10Mouse??!1;return{feed(e){let i=jr(e,t,n,!1,r);return t=i.state.state,n=i.state.buffer,i.tokens},flush(){let e=jr(``,t,n,!0,r);return t=e.state.state,n=e.state.buffer,e.tokens},reset(){t=`ground`,n=``},buffer(){return n}}}function jr(e,t,n,r,i){let a=[],o={state:t,buffer:``},s=n+e,c=0,l=0,u=0,d=()=>{if(c>l){let e=s.slice(l,c);e&&a.push({type:`text`,value:e})}l=c},f=e=>{e&&a.push({type:`sequence`,value:e}),o.state=`ground`,l=c};for(;c<s.length;){let e=s.charCodeAt(c);switch(o.state){case`ground`:e===Kn.ESC?(d(),u=c,o.state=`escape`,c++):c++;break;case`escape`:e===qn.CSI?(o.state=`csi`,c++):e===qn.OSC?(o.state=`osc`,c++):e===qn.DCS?(o.state=`dcs`,c++):e===qn.APC?(o.state=`apc`,c++):e===79?(o.state=`ss3`,c++):Xn(e)?(o.state=`escapeIntermediate`,c++):Gn(e)?(c++,f(s.slice(u,c))):e===Kn.ESC?(f(s.slice(u,c)),u=c,o.state=`escape`,c++):(o.state=`ground`,l=u);break;case`escapeIntermediate`:Xn(e)?c++:Gn(e)?(c++,f(s.slice(u,c))):(o.state=`ground`,l=u);break;case`csi`:if(i&&e===77&&c-u===2&&(c+1>=s.length||s.charCodeAt(c+1)>=32)&&(c+2>=s.length||s.charCodeAt(c+2)>=32)&&(c+3>=s.length||s.charCodeAt(c+3)>=32)){c+4<=s.length?(c+=4,f(s.slice(u,c))):c=s.length;break}Zn(e)?(c++,f(s.slice(u,c))):Yn(e)||Xn(e)?c++:(o.state=`ground`,l=u);break;case`ss3`:e>=64&&e<=126?(c++,f(s.slice(u,c))):(o.state=`ground`,l=u);break;case`osc`:e===Kn.BEL?(c++,f(s.slice(u,c))):e===Kn.ESC&&c+1<s.length&&s.charCodeAt(c+1)===qn.ST?(c+=2,f(s.slice(u,c))):c++;break;case`dcs`:case`apc`:e===Kn.BEL?(c++,f(s.slice(u,c))):e===Kn.ESC&&c+1<s.length&&s.charCodeAt(c+1)===qn.ST?(c+=2,f(s.slice(u,c))):c++;break}}if(o.state===`ground`)d();else if(r){let e=s.slice(u);e&&a.push({type:`sequence`,value:e}),o.state=`ground`}else o.buffer=s.slice(u);return{tokens:a,state:o}}var Mr=t((()=>{Jn(),kr()}));function Nr(e){return{kind:`key`,name:``,fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,super:!1,sequence:e,raw:e,isPasted:!0}}function Pr(e){if(e.startsWith(`\x1B[`)){let t;return(t=qr.exec(e))?{type:`decrpm`,mode:parseInt(t[1],10),status:parseInt(t[2],10)}:(t=Jr.exec(e))?{type:`da1`,params:Fr(t[1])}:(t=Yr.exec(e))?{type:`da2`,params:Fr(t[1])}:(t=Xr.exec(e))?{type:`kittyKeyboard`,flags:parseInt(t[1],10)}:(t=Zr.exec(e))?{type:`cursorPosition`,row:parseInt(t[1],10),col:parseInt(t[2],10)}:null}if(e.startsWith(`\x1B]`)){let t=Qr.exec(e);if(t)return{type:`osc`,code:parseInt(t[1],10),data:t[2]}}if(e.startsWith(`\x1BP`)){let t=$r.exec(e);if(t)return{type:`xtversion`,name:t[1]}}return null}function Fr(e){return e?e.split(`;`).map(e=>parseInt(e,10)):[]}function Ir(e){return te.isBuffer(e)?e[0]>127&&e[1]===void 0?(e[0]-=128,`\x1B`+String(e)):String(e):e!==void 0&&typeof e!=`string`?String(e):e||``}function Lr(e,t=``){let n=t===null,r=n?``:Ir(t),i=e._tokenizer??Ar({x10Mouse:!0}),a=n?i.flush():i.feed(r),o=[],s=e.mode===`IN_PASTE`,c=e.pasteBuffer;for(let e of a)if(e.type===`sequence`)if(e.value===xr)s=!0,c=``;else if(e.value===Sr)o.push(Nr(c)),s=!1,c=``;else if(s)c+=e.value;else{let t=Pr(e.value);if(t)o.push({kind:`response`,sequence:e.value,response:t});else{let t=Br(e.value);t?o.push(t):o.push(Vr(e.value))}}else if(e.type===`text`)if(s)c+=e.value;else if(/^\[<\d+;\d+;\d+[Mm]$/.test(e.value)||/^\[M[\x60-\x7f][\x20-\uffff]{2}$/.test(e.value)){let t=`\x1B`+e.value,n=Br(t);o.push(n??Vr(t))}else o.push(Vr(e.value));return n&&s&&c&&(o.push(Nr(c)),s=!1,c=``),[o,{mode:s?`IN_PASTE`:`NORMAL`,incomplete:i.buffer(),pasteBuffer:c,_tokenizer:i}]}function Rr(e){let t=e-1;return{shift:!!(t&1),meta:!!(t&2),ctrl:!!(t&4),super:!!(t&8)}}function zr(e){switch(e){case 9:return`tab`;case 13:return`return`;case 27:return`escape`;case 32:return`space`;case 127:return`backspace`;case 57399:return`0`;case 57400:return`1`;case 57401:return`2`;case 57402:return`3`;case 57403:return`4`;case 57404:return`5`;case 57405:return`6`;case 57406:return`7`;case 57407:return`8`;case 57408:return`9`;case 57409:return`.`;case 57410:return`/`;case 57411:return`*`;case 57412:return`-`;case 57413:return`+`;case 57414:return`return`;case 57415:return`=`;default:return e>=32&&e<=126?String.fromCharCode(e).toLowerCase():void 0}}function Br(e){let t=ei.exec(e);if(!t)return null;let n=parseInt(t[1],10);return n&64?null:{kind:`mouse`,button:n,action:t[4]===`M`?`press`:`release`,col:parseInt(t[2],10),row:parseInt(t[3],10),sequence:e}}function Vr(e=``){let t,n={kind:`key`,name:``,fn:!1,ctrl:!1,meta:!1,shift:!1,option:!1,super:!1,sequence:e,raw:e,isPasted:!1};n.sequence=n.sequence||e||n.name;let r;if(r=Gr.exec(e)){let t=parseInt(r[1],10),n=Rr(r[2]?parseInt(r[2],10):1);return{kind:`key`,name:zr(t),fn:!1,ctrl:n.ctrl,meta:n.meta,shift:n.shift,option:!1,super:n.super,sequence:e,raw:e,isPasted:!1}}if(r=Kr.exec(e)){let t=Rr(parseInt(r[1],10));return{kind:`key`,name:zr(parseInt(r[2],10)),fn:!1,ctrl:t.ctrl,meta:t.meta,shift:t.shift,option:!1,super:t.super,sequence:e,raw:e,isPasted:!1}}if(r=ei.exec(e)){let t=parseInt(r[1],10);return(t&67)==64?Hr(e,`wheelup`,!1):(t&67)==65?Hr(e,`wheeldown`,!1):Hr(e,`mouse`,!1)}if(e.length===6&&e.startsWith(`\x1B[M`)){let t=e.charCodeAt(3)-32;return(t&67)==64?Hr(e,`wheelup`,!1):(t&67)==65?Hr(e,`wheeldown`,!1):Hr(e,`mouse`,!1)}if(e===`\r`)n.raw=void 0,n.name=`return`;else if(e===`
|
|
6
|
+
`)n.name=`enter`;else if(e===` `)n.name=`tab`;else if(e===`\b`||e===`\x1B\b`)n.name=`backspace`,n.meta=e.charAt(0)===`\x1B`;else if(e===``||e===`\x1B`)n.name=`backspace`,n.meta=e.charAt(0)===`\x1B`;else if(e===`\x1B`||e===`\x1B\x1B`)n.name=`escape`,n.meta=e.length===2;else if(e===` `||e===`\x1B `)n.name=`space`,n.meta=e.length===2;else if(e===``)n.name=`_`,n.ctrl=!0;else if(e<=``&&e.length===1)n.name=String.fromCharCode(e.charCodeAt(0)+97-1),n.ctrl=!0;else if(e.length===1&&e>=`0`&&e<=`9`)n.name=`number`;else if(e.length===1&&e>=`a`&&e<=`z`)n.name=e;else if(e.length===1&&e>=`A`&&e<=`Z`)n.name=e.toLowerCase(),n.shift=!0;else if(t=Ur.exec(e))n.meta=!0,n.shift=/^[A-Z]$/.test(t[1]);else if(t=Wr.exec(e)){let r=[...e];r[0]===`\x1B`&&r[1]===`\x1B`&&(n.option=!0);let i=[t[1],t[2],t[4],t[6]].filter(Boolean).join(``),a=(t[3]||t[5]||1)-1;n.ctrl=!!(a&4),n.meta=!!(a&2),n.super=!!(a&8),n.shift=!!(a&1),n.code=i,n.name=ni[i],n.shift=ii(i)||n.shift,n.ctrl=ai(i)||n.ctrl}switch(n.raw===`\x1Bb`?(n.meta=!0,n.name=`left`):n.raw===`\x1Bf`&&(n.meta=!0,n.name=`right`),e){case`\x1B[1~`:return Hr(e,`home`,!1);case`\x1B[4~`:return Hr(e,`end`,!1);case`\x1B[5~`:return Hr(e,`pageup`,!1);case`\x1B[6~`:return Hr(e,`pagedown`,!1);case`\x1B[1;5D`:return Hr(e,`left`,!0);case`\x1B[1;5C`:return Hr(e,`right`,!0)}return n}function Hr(e,t,n){return{kind:`key`,name:t,ctrl:n,meta:!1,shift:!1,option:!1,super:!1,fn:!1,sequence:e,raw:e,isPasted:!1}}var Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi=t((()=>{kr(),Mr(),Ur=/^(?:\x1b)([a-zA-Z0-9])$/,Wr=/^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/,Gr=/^\x1b\[(\d+)(?:;(\d+))?u/,Kr=/^\x1b\[27;(\d+);(\d+)~/,qr=/^\x1b\[\?(\d+);(\d+)\$y$/,Jr=/^\x1b\[\?([\d;]*)c$/,Yr=/^\x1b\[>([\d;]*)c$/,Xr=/^\x1b\[\?(\d+)u$/,Zr=/^\x1b\[\?(\d+);(\d+)R$/,Qr=/^\x1b\](\d+);(.*?)(?:\x07|\x1b\\)$/s,$r=/^\x1bP>\|(.*?)(?:\x07|\x1b\\)$/s,ei=/^\x1b\[<(\d+);(\d+);(\d+)([Mm])$/,ti={mode:`NORMAL`,incomplete:``,pasteBuffer:``},ni={OP:`f1`,OQ:`f2`,OR:`f3`,OS:`f4`,Op:`0`,Oq:`1`,Or:`2`,Os:`3`,Ot:`4`,Ou:`5`,Ov:`6`,Ow:`7`,Ox:`8`,Oy:`9`,Oj:`*`,Ok:`+`,Ol:`,`,Om:`-`,On:`.`,Oo:`/`,OM:`return`,"[11~":`f1`,"[12~":`f2`,"[13~":`f3`,"[14~":`f4`,"[[A":`f1`,"[[B":`f2`,"[[C":`f3`,"[[D":`f4`,"[[E":`f5`,"[15~":`f5`,"[17~":`f6`,"[18~":`f7`,"[19~":`f8`,"[20~":`f9`,"[21~":`f10`,"[23~":`f11`,"[24~":`f12`,"[A":`up`,"[B":`down`,"[C":`right`,"[D":`left`,"[E":`clear`,"[F":`end`,"[H":`home`,OA:`up`,OB:`down`,OC:`right`,OD:`left`,OE:`clear`,OF:`end`,OH:`home`,"[1~":`home`,"[2~":`insert`,"[3~":`delete`,"[4~":`end`,"[5~":`pageup`,"[6~":`pagedown`,"[[5~":`pageup`,"[[6~":`pagedown`,"[7~":`home`,"[8~":`end`,"[a":`up`,"[b":`down`,"[c":`right`,"[d":`left`,"[e":`clear`,"[2$":`insert`,"[3$":`delete`,"[5$":`pageup`,"[6$":`pagedown`,"[7$":`home`,"[8$":`end`,Oa:`up`,Ob:`down`,Oc:`right`,Od:`left`,Oe:`clear`,"[2^":`insert`,"[3^":`delete`,"[5^":`pageup`,"[6^":`pagedown`,"[7^":`home`,"[8^":`end`,"[Z":`tab`},ri=[...Object.values(ni).filter(e=>e.length>1),`escape`,`backspace`,`wheelup`,`wheeldown`,`mouse`],ii=e=>[`[a`,`[b`,`[c`,`[d`,`[e`,`[2$`,`[3$`,`[5$`,`[6$`,`[7$`,`[8$`,`[Z`].includes(e),ai=e=>[`Oa`,`Ob`,`Oc`,`Od`,`Oe`,`[2^`,`[3^`,`[5^`,`[6^`,`[7^`,`[8^`].includes(e)}));function si(e){let t={upArrow:e.name===`up`,downArrow:e.name===`down`,leftArrow:e.name===`left`,rightArrow:e.name===`right`,pageDown:e.name===`pagedown`,pageUp:e.name===`pageup`,wheelUp:e.name===`wheelup`,wheelDown:e.name===`wheeldown`,home:e.name===`home`,end:e.name===`end`,return:e.name===`return`,escape:e.name===`escape`,fn:e.fn,ctrl:e.ctrl,shift:e.shift,tab:e.name===`tab`,backspace:e.name===`backspace`,delete:e.name===`delete`,meta:e.meta||e.name===`escape`||e.option,super:e.super},n=e.ctrl?e.name:e.sequence;n===void 0&&(n=``),e.ctrl&&n===`space`&&(n=` `),e.code&&!e.name&&(n=``),!e.name&&/^\[<\d+;\d+;\d+[Mm]/.test(n)&&(n=``),n.startsWith(`\x1B`)&&(n=n.slice(1));let r=!1;return/^\[\d/.test(n)&&n.endsWith(`u`)&&(n=e.name?e.name===`space`?` `:e.name===`escape`?``:e.name:``,r=!0),n.startsWith(`[27;`)&&n.endsWith(`~`)&&(n=e.name?e.name===`space`?` `:e.name===`escape`?``:e.name:``,r=!0),n.startsWith(`O`)&&n.length===2&&e.name&&e.name.length===1&&(n=e.name,r=!0),!r&&e.name&&ri.includes(e.name)&&(n=``),n.length===1&&typeof n[0]==`string`&&n[0]>=`A`&&n[0]<=`Z`&&(t.shift=!0),[t,n]}var ci,li=t((()=>{oi(),Hn(),c(),ci=class extends Vn{constructor(e){super(),l(this,`keypress`,void 0),l(this,`key`,void 0),l(this,`input`,void 0);let[t,n]=si(e);this.keypress=e,this.key=t,this.input=n}}})),ui,di=t((()=>{Hn(),c(),ui=class extends Vn{constructor(e){super(),l(this,`type`,void 0),this.type=e}}})),fi=r((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&k(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&k(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function k(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,k(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),pi=r(((e,t)=>{t.exports=fi()})),mi=r(((e,t)=>{t.exports=function(e){function t(e,t,n,r){return new pa(e,t,n,r)}function n(){}function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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 i(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function a(e){if(i(e)!==e)throw Error(r(188))}function o(e){var t=e.alternate;if(!t){if(t=i(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,o=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(o=s.return,o!==null){n=o;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return a(s),e;if(c===o)return a(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==o.return)n=s,o=c;else{for(var l=!1,u=s.child;u;){if(u===n){l=!0,n=s,o=c;break}if(u===o){l=!0,o=s,n=c;break}u=u.sibling}if(!l){for(u=c.child;u;){if(u===n){l=!0,n=c,o=s;break}if(u===o){l=!0,o=c,n=s;break}u=u.sibling}if(!l)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function s(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=s(e),t!==null)return t;e=e.sibling}return null}function c(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(e.tag!==4&&(t=c(e),t!==null))return t;e=e.sibling}return null}function l(e){return typeof e!=`object`||!e?null:(e=Ka&&e[Ka]||e[`@@iterator`],typeof e==`function`?e:null)}function u(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===qa?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Fa:return`Fragment`;case La:return`Profiler`;case Ia:return`StrictMode`;case Va:return`Suspense`;case Ha:return`SuspenseList`;case Wa:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case Pa:return`Portal`;case za:return e.displayName||`Context`;case Ra:return(e._context.displayName||`Context`)+`.Consumer`;case Ba:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||``,e=e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Ua:return t=e.displayName||null,t===null?u(e.type)||`Memo`:t;case W:t=e._payload,e=e._init;try{return u(e(t))}catch{}}return null}function d(e){return{current:e}}function f(e){0>mc||(e.current=pc[mc],pc[mc]=null,mc--)}function p(e,t){mc++,pc[mc]=e.current,e.current=t}function m(e){return e>>>=0,e===0?32:31-(_c(e)/vc|0)|0}function h(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 g(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=h(n))):i=h(o):i=h(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=h(n))):i=h(o)):i=h(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function _(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function v(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 y(){var e=xc;return xc<<=1,!(xc&62914560)&&(xc=4194304),e}function b(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function x(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function S(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-gc(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&C(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function C(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-gc(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function w(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-gc(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function T(e,t){var n=t&-t;return n=n&42?1:E(n),(n&(e.suspendedLanes|t))===0?n:0}function E(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 D(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function O(e){if(typeof jc==`function`&&Mc(e),Pc&&typeof Pc.setStrictMode==`function`)try{Pc.setStrictMode(Nc,e)}catch{}}function ee(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function te(e){if(Rc===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Rc=t&&t[1]||``,zc=-1<e.stack.indexOf(`
|
|
7
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
8
|
+
`+Rc+e+zc}function k(e,t){if(!e||Bc)return``;Bc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
9
|
+
`),l=s.split(`
|
|
10
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
11
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Bc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?te(n):``}function ne(e,t){switch(e.tag){case 26:case 27:case 5:return te(e.type);case 16:return te(`Lazy`);case 13:return e.child!==t&&t!==null?te(`Suspense Fallback`):te(`Suspense`);case 19:return te(`SuspenseList`);case 0:case 15:return k(e.type,!1);case 11:return k(e.type.render,!1);case 1:return k(e.type,!0);case 31:return te(`Activity`);default:return``}}function re(e){try{var t=``,n=null;do t+=ne(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
12
|
+
Error generating stack: `+e.message+`
|
|
13
|
+
`+e.stack}}function ie(e,t){if(typeof e==`object`&&e){var n=Vc.get(e);return n===void 0?(t={value:e,source:t,stack:re(t)},Vc.set(e,t),t):n}return{value:e,source:t,stack:re(t)}}function ae(e,t){Hc[Uc++]=Gc,Hc[Uc++]=Wc,Wc=e,Gc=t}function oe(e,t,n){Kc[qc++]=Yc,Kc[qc++]=Xc,Kc[qc++]=Jc,Jc=e;var r=Yc;e=Xc;var i=32-gc(r)-1;r&=~(1<<i),n+=1;var a=32-gc(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yc=1<<32-gc(t)+i|n<<i|r,Xc=a+e}else Yc=1<<a|n<<i|r,Xc=e}function se(e){e.return!==null&&(ae(e,1),oe(e,1,0))}function ce(e){for(;e===Wc;)Wc=Hc[--Uc],Hc[Uc]=null,Gc=Hc[--Uc],Hc[Uc]=null;for(;e===Jc;)Jc=Kc[--qc],Kc[qc]=null,Xc=Kc[--qc],Kc[qc]=null,Yc=Kc[--qc],Kc[qc]=null}function le(e,t){Kc[qc++]=Yc,Kc[qc++]=Xc,Kc[qc++]=Jc,Yc=t.id,Xc=t.overflow,Jc=e}function ue(e,t){p($c,t),p(Qc,e),p(Zc,null),e=$a(t),f(Zc),p(Zc,e)}function de(){f(Zc),f(Qc),f($c)}function fe(e){e.memoizedState!==null&&p(el,e);var t=Zc.current,n=eo(t,e.type);t!==n&&(p(Qc,e),p(Zc,n))}function pe(e){Qc.current===e&&(f(Zc),f(Qc)),el.current===e&&(f(el),fo?jo._currentValue=Ao:jo._currentValue2=Ao)}function A(e){throw ye(ie(Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),al}function me(e,t){if(!ho)throw Error(r(175));Os(e.stateNode,e.type,e.memoizedProps,t,e)||A(e,!0)}function he(e){for(tl=e.return;tl;)switch(tl.tag){case 5:case 31:case 13:il=!1;return;case 27:case 3:il=!0;return;default:tl=tl.return}}function ge(e){if(!ho||e!==tl)return!1;if(!K)return he(e),K=!0,!1;var t=e.tag;if(sc?t!==3&&t!==27&&(t!==5||Ws(e.type)&&!oo(e.type,e.memoizedProps))&&nl&&A(e):t!==3&&(t!==5||Ws(e.type)&&!oo(e.type,e.memoizedProps))&&nl&&A(e),he(e),t===13){if(!ho)throw Error(r(316));if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));nl=Ns(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));nl=Ms(e)}else nl=sc&&t===27?vs(e.type,nl):tl?_s(e.stateNode):null;return!0}function _e(){ho&&(nl=tl=null,K=!1)}function ve(){var e=rl;return e!==null&&(Lu===null?Lu=e:Lu.push.apply(Lu,e),rl=null),e}function ye(e){rl===null?rl=[e]:rl.push(e)}function be(e,t,n){fo?(p(ol,t._currentValue),t._currentValue=n):(p(ol,t._currentValue2),t._currentValue2=n)}function xe(e){var t=ol.current;fo?e._currentValue=t:e._currentValue2=t,f(ol)}function Se(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ce(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Se(o.return,n,e),i||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(r(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Se(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function we(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var c=a.type;Fc(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===el.current){if(s=a.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[jo]:e.push(jo))}a=a.return}e!==null&&Ce(t,e,n,i),t.flags|=262144}function Te(e){for(e=e.firstContext;e!==null;){var t=e.context;if(!Fc(fo?t._currentValue:t._currentValue2,e.memoizedValue))return!0;e=e.next}return!1}function Ee(e){sl=e,cl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function De(e){return ke(sl,e)}function Oe(e,t){return sl===null&&Ee(e),ke(e,t)}function ke(e,t){var n=fo?t._currentValue:t._currentValue2;if(t={context:t,memoizedValue:n,next:null},cl===null){if(e===null)throw Error(r(308));cl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else cl=cl.next=t;return n}function Ae(){return{controller:new ll,data:new Map,refCount:0}}function je(e){e.refCount--,e.refCount===0&&ul(dl,function(){e.controller.abort()})}function Me(){}function Ne(e){e!==ml&&e.next===null&&(ml===null?pl=ml=e:ml=ml.next=e),gl=!0,hl||(hl=!0,Re())}function Pe(e,t){if(!_l&&gl){_l=!0;do for(var n=!1,r=pl;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-gc(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,N(r,a))}else a=Z,a=g(r,r===wu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==uo),!(a&3)||_(r,a)||(n=!0,N(r,a));r=r.next}while(n);_l=!1}}function Fe(){M()}function M(){gl=hl=!1;var e=0;vl!==0&&xo()&&(e=vl);for(var t=Ec(),n=null,r=pl;r!==null;){var i=r.next,a=Ie(r,t);a===0?(r.next=null,n===null?pl=i:n.next=i,i===null&&(ml=n)):(n=r,(e!==0||a&3)&&(gl=!0)),r=i}Wu!==0&&Wu!==5||Pe(e,!1),vl!==0&&(vl=0)}function Ie(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-gc(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=v(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=wu,n=Z,n=g(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==uo),r=e.callbackNode,n===0||e===t&&(Q===2||Q===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Cc(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||_(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Cc(r),D(n)){case 2:case 8:n=Oc;break;case 32:n=kc;break;case 268435456:n=Ac;break;default:n=kc}return r=Le.bind(null,e),n=Sc(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Cc(r),e.callbackPriority=2,e.callbackNode=null,2}function Le(e,t){if(Wu!==0&&Wu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ia()&&e.callbackNode!==n)return null;var r=Z;return r=g(e,e===wu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==uo),r===0?null:(Mi(e,r,t),Ie(e,Ec()),e.callbackNode!=null&&e.callbackNode===n?Le.bind(null,e):null)}function N(e,t){if(ia())return null;Mi(e,t,!0)}function Re(){No?Po(function(){Y&6?Sc(Dc,Fe):M()}):Sc(Dc,Fe)}function ze(){if(vl===0){var e=xl;e===0&&(e=yc,yc<<=1,!(yc&261888)&&(yc=256)),vl=e}return vl}function Be(e,t){if(yl===null){var n=yl=[];bl=0,xl=ze(),Sl={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return bl++,t.then(Ve,Ve),t}function Ve(){if(--bl===0&&yl!==null){Sl!==null&&(Sl.status=`fulfilled`);var e=yl;yl=null,xl=0,Sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function P(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function He(){var e=wl.current;return e===null?wu.pooledCache:e}function Ue(e,t){t===null?p(wl,wl.current):p(wl,t.pool)}function We(){var e=He();return e===null?null:{parent:fo?fl._currentValue:fl._currentValue2,pool:e}}function Ge(e,t){if(Fc(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Lc.call(t,i)||!Fc(e[i],t[i]))return!1}return!0}function Ke(e){return e=e.status,e===`fulfilled`||e===`rejected`}function qe(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Me,Me),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,I(e),e;default:if(typeof t.status==`string`)t.then(Me,Me);else{if(e=wu,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,I(e),e}throw kl=t,Tl}}function Je(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(kl=e,Tl):e}}function F(){if(kl===null)throw Error(r(459));var e=kl;return kl=null,e}function I(e){if(e===Tl||e===Dl)throw Error(r(483))}function Ye(e){var t=jl;return jl+=1,Al===null&&(Al=[]),qe(Al,e,t)}function Xe(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ze(e,t){throw t.$$typeof===Ma?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Qe(e){function n(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function i(t,r){if(!e)return null;for(;r!==null;)n(t,r),r=r.sibling;return null}function a(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function o(e,t){return e=ha(e,t),e.index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function c(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function u(e,t,n,r){return t===null||t.tag!==6?(t=ya(n,e.mode,r),t.return=e,t):(t=o(t,n),t.return=e,t)}function d(e,t,n,r){var i=n.type;return i===Fa?p(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===W&&Je(i)===t.type)?(t=o(t,n.props),Xe(t,n),t.return=e,t):(t=_a(n.type,n.key,n.props,null,e.mode,r),Xe(t,n),t.return=e,t)}function f(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=xa(n,e.mode,r),t.return=e,t):(t=o(t,n.children||[]),t.return=e,t)}function p(e,t,n,r,i){return t===null||t.tag!==7?(t=va(n,e.mode,r,i),t.return=e,t):(t=o(t,n),t.return=e,t)}function m(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ya(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Na:return n=_a(t.type,t.key,t.props,null,e.mode,n),Xe(n,t),n.return=e,n;case Pa:return t=xa(t,e.mode,n),t.return=e,t;case W:return t=Je(t),m(e,t,n)}if(Ja(t)||l(t))return t=va(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return m(e,Ye(t),n);if(t.$$typeof===za)return m(e,Oe(e,t),n);Ze(e,t)}return null}function h(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?u(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Na:return n.key===i?d(e,t,n,r):null;case Pa:return n.key===i?f(e,t,n,r):null;case W:return n=Je(n),h(e,t,n,r)}if(Ja(n)||l(n))return i===null?p(e,t,n,r,null):null;if(typeof n.then==`function`)return h(e,t,Ye(n),r);if(n.$$typeof===za)return h(e,t,Oe(e,n),r);Ze(e,n)}return null}function g(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,u(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Na:return e=e.get(r.key===null?n:r.key)||null,d(t,e,r,i);case Pa:return e=e.get(r.key===null?n:r.key)||null,f(t,e,r,i);case W:return r=Je(r),g(e,t,n,r,i)}if(Ja(r)||l(r))return e=e.get(n)||null,p(t,e,r,i,null);if(typeof r.then==`function`)return g(e,t,n,Ye(r),i);if(r.$$typeof===za)return g(e,t,n,Oe(t,r),i);Ze(t,r)}return null}function _(t,r,o,c){for(var l=null,u=null,d=r,f=r=0,p=null;d!==null&&f<o.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var _=h(t,d,o[f],c);if(_===null){d===null&&(d=p);break}e&&d&&_.alternate===null&&n(t,d),r=s(_,r,f),u===null?l=_:u.sibling=_,u=_,d=p}if(f===o.length)return i(t,d),K&&ae(t,f),l;if(d===null){for(;f<o.length;f++)d=m(t,o[f],c),d!==null&&(r=s(d,r,f),u===null?l=d:u.sibling=d,u=d);return K&&ae(t,f),l}for(d=a(d);f<o.length;f++)p=g(d,t,f,o[f],c),p!==null&&(e&&p.alternate!==null&&d.delete(p.key===null?f:p.key),r=s(p,r,f),u===null?l=p:u.sibling=p,u=p);return e&&d.forEach(function(e){return n(t,e)}),K&&ae(t,f),l}function v(t,o,c,l){if(c==null)throw Error(r(151));for(var u=null,d=null,f=o,p=o=0,_=null,v=c.next();f!==null&&!v.done;p++,v=c.next()){f.index>p?(_=f,f=null):_=f.sibling;var y=h(t,f,v.value,l);if(y===null){f===null&&(f=_);break}e&&f&&y.alternate===null&&n(t,f),o=s(y,o,p),d===null?u=y:d.sibling=y,d=y,f=_}if(v.done)return i(t,f),K&&ae(t,p),u;if(f===null){for(;!v.done;p++,v=c.next())v=m(t,v.value,l),v!==null&&(o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return K&&ae(t,p),u}for(f=a(f);!v.done;p++,v=c.next())v=g(f,t,p,v.value,l),v!==null&&(e&&v.alternate!==null&&f.delete(v.key===null?p:v.key),o=s(v,o,p),d===null?u=v:d.sibling=v,d=v);return e&&f.forEach(function(e){return n(t,e)}),K&&ae(t,p),u}function y(e,t,a,s){if(typeof a==`object`&&a&&a.type===Fa&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Na:a:{for(var u=a.key;t!==null;){if(t.key===u){if(u=a.type,u===Fa){if(t.tag===7){i(e,t.sibling),s=o(t,a.props.children),s.return=e,e=s;break a}}else if(t.elementType===u||typeof u==`object`&&u&&u.$$typeof===W&&Je(u)===t.type){i(e,t.sibling),s=o(t,a.props),Xe(s,a),s.return=e,e=s;break a}i(e,t);break}else n(e,t);t=t.sibling}a.type===Fa?(s=va(a.props.children,e.mode,s,a.key),s.return=e,e=s):(s=_a(a.type,a.key,a.props,null,e.mode,s),Xe(s,a),s.return=e,e=s)}return c(e);case Pa:a:{for(u=a.key;t!==null;){if(t.key===u)if(t.tag===4&&t.stateNode.containerInfo===a.containerInfo&&t.stateNode.implementation===a.implementation){i(e,t.sibling),s=o(t,a.children||[]),s.return=e,e=s;break a}else{i(e,t);break}else n(e,t);t=t.sibling}s=xa(a,e.mode,s),s.return=e,e=s}return c(e);case W:return a=Je(a),y(e,t,a,s)}if(Ja(a))return _(e,t,a,s);if(l(a)){if(u=l(a),typeof u!=`function`)throw Error(r(150));return a=u.call(a),v(e,t,a,s)}if(typeof a.then==`function`)return y(e,t,Ye(a),s);if(a.$$typeof===za)return y(e,t,Oe(e,a),s);Ze(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,t!==null&&t.tag===6?(i(e,t.sibling),s=o(t,a),s.return=e,e=s):(i(e,t),s=ya(a,e.mode,s),s.return=e,e=s),c(e)):i(e,t)}return function(e,n,r,i){try{jl=0;var a=y(e,n,r,i);return Al=null,a}catch(n){if(n===Tl||n===Dl)throw n;var o=t(29,n,null,e.mode);return o.lanes=i,o.return=e,o}}}function $e(){for(var e=Fl,t=Il=Fl=0;t<e;){var n=Pl[t];Pl[t++]=null;var r=Pl[t];Pl[t++]=null;var i=Pl[t];Pl[t++]=null;var a=Pl[t];if(Pl[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&rt(n,i,a)}}function et(e,t,n,r){Pl[Fl++]=e,Pl[Fl++]=t,Pl[Fl++]=n,Pl[Fl++]=r,Il|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function tt(e,t,n,r){return et(e,t,n,r),it(e)}function nt(e,t){return et(e,null,null,t),it(e)}function rt(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-gc(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function it(e){if(50<Zu)throw Zu=0,Qu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}function at(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ot(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 st(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ct(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Y&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=it(e),rt(e,null,n),t}return et(e,r,t,n),it(e)}function lt(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w(e,n)}}function ut(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function dt(){if(Rl){var e=Sl;if(e!==null)throw e}}function ft(e,t,n,r){Rl=!1;var i=e.updateQueue;Ll=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Z&f)===f:(r&f)===f){f!==0&&f===xl&&(Rl=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=ja({},d,f);break a;case 2:Ll=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ju|=o,e.lanes=o,e.memoizedState=d}}function pt(e,t){if(typeof e!=`function`)throw Error(r(191,e));e.call(t)}function mt(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)pt(n[e],t)}function ht(e,t){e=ku,p(Bl,e),p(zl,t),ku=e|t.baseLanes}function gt(){p(Bl,ku),p(zl,zl.current)}function _t(){ku=Bl.current,f(zl),f(Bl)}function vt(e){var t=e.alternate;p(Ul,Ul.current&1),p(Vl,e),Hl===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(Hl=e)}function yt(e){p(Ul,Ul.current),p(Vl,e),Hl===null&&(Hl=e)}function bt(e){e.tag===22?(p(Ul,Ul.current),p(Vl,e),Hl===null&&(Hl=e)):xt(e)}function xt(){p(Ul,Ul.current),p(Vl,Vl.current)}function St(e){f(Vl),Hl===e&&(Hl=null),f(Ul)}function Ct(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ds(n)||fs(n)))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)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}function wt(){throw Error(r(321))}function Tt(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fc(e[n],t[n]))return!1;return!0}function Et(e,t,n,r,i,a){return Wl=a,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?tu:nu,Yl=!1,a=n(r,i),Yl=!1,Jl&&(a=Ot(t,n,r,i)),Dt(e),a}function Dt(e){G.H=eu;var t=Gl!==null&&Gl.next!==null;if(Wl=0,Kl=Gl=q=null,ql=!1,Zl=0,Ql=null,t)throw Error(r(300));e===null||ou||(e=e.dependencies,e!==null&&Te(e)&&(ou=!0))}function Ot(e,t,n,i){q=e;var a=0;do{if(Jl&&(Ql=null),Zl=0,Jl=!1,25<=a)throw Error(r(301));if(a+=1,Kl=Gl=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}G.H=ru,o=t(n,i)}while(Jl);return o}function kt(){var e=G.H,t=e.useState()[0];return t=typeof t.then==`function`?Ft(t):t,e=e.useState()[0],(Gl===null?null:Gl.memoizedState)!==e&&(q.flags|=1024),t}function At(){var e=Xl!==0;return Xl=0,e}function jt(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Mt(e){if(ql){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ql=!1}Wl=0,Kl=Gl=q=null,Jl=!1,Zl=Xl=0,Ql=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kl===null?q.memoizedState=Kl=e:Kl=Kl.next=e,Kl}function L(){if(Gl===null){var e=q.alternate;e=e===null?null:e.memoizedState}else e=Gl.next;var t=Kl===null?q.memoizedState:Kl.next;if(t!==null)Kl=t,Gl=e;else{if(e===null)throw q.alternate===null?Error(r(467)):Error(r(310));Gl=e,e={memoizedState:Gl.memoizedState,baseState:Gl.baseState,baseQueue:Gl.baseQueue,queue:Gl.queue,next:null},Kl===null?q.memoizedState=Kl=e:Kl=Kl.next=e}return Kl}function Pt(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ft(e){var t=Zl;return Zl+=1,Ql===null&&(Ql=[]),e=qe(Ql,e,t),t=q,(Kl===null?t.memoizedState:Kl.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?tu:nu),e}function It(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ft(e);if(e.$$typeof===za)return De(e)}throw Error(r(438,String(e)))}function Lt(e){var t=null,n=q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=q.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??(t={data:[],index:0}),n===null&&(n=Pt(),q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Ga;return t.index++,n}function Rt(e,t){return typeof t==`function`?t(e):t}function zt(e){return Bt(L(),Gl,e)}function Bt(e,t,n){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Wl&f)===f:(Z&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===xl&&(d=!0);else if((Wl&p)===p){u=u.next,p===xl&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,q.lanes|=p,ju|=p;f=u.action,Yl&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,q.lanes|=f,ju|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Fc(o,e.memoizedState)&&(ou=!0,d&&(n=Sl,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Vt(e){var t=L(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fc(o,t.memoizedState)||(ou=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ht(e,t,n){var i=q,a=L(),o=K;if(o){if(n===void 0)throw Error(r(407));n=n()}else n=t();var s=!Fc((Gl||a).memoizedState,n);if(s&&(a.memoizedState=n,ou=!0),a=a.queue,pn(Gt.bind(null,i,a,e),[e]),a.getSnapshot!==t||s||Kl!==null&&Kl.memoizedState.tag&1){if(i.flags|=2048,cn(9,{destroy:void 0},Wt.bind(null,i,a,n,t),null),wu===null)throw Error(r(349));o||Wl&127||Ut(i,t,n)}return n}function Ut(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t=Pt(),q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wt(e,t,n,r){t.value=n,t.getSnapshot=r,Kt(t)&&qt(e)}function Gt(e,t,n){return n(function(){Kt(t)&&qt(e)})}function Kt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Fc(e,n)}catch{return!0}}function qt(e){var t=nt(e,2);t!==null&&ji(t,e,2)}function Jt(e){var t=Nt();if(typeof e==`function`){var n=e;if(e=n(),Yl){O(!0);try{n()}finally{O(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:e},t}function Yt(e,t,n,r){return e.baseState=n,Bt(e,Gl,typeof r==`function`?r:Rt)}function Xt(e,t,n,i,a){if(Pn(e))throw Error(r(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};G.T===null?o.isTransition=!1:n(!0),i(o),n=t.pending,n===null?(o.next=t.pending=o,Zt(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zt(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=G.T,o={};G.T=o;try{var s=n(i,r),c=G.S;c!==null&&c(o,s),Qt(e,t,s)}catch(n){$t(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),G.T=a}}else try{a=n(i,r),Qt(e,t,a)}catch(n){$t(e,t,n)}}function Qt(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){R(e,t,n)},function(n){return $t(e,t,n)}):R(e,t,n)}function R(e,t,n){t.status=`fulfilled`,t.value=n,en(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zt(e,n)))}function $t(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,en(t),t=t.next;while(t!==r)}e.action=null}function en(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function tn(e,t){return t}function nn(e,t){if(K){var n=wu.formState;if(n!==null){a:{var r=q;if(K){if(nl){var i=hs(nl,il);if(i){nl=_s(i),r=gs(i);break a}}A(r)}r=!1}r&&(t=n[0])}}n=Nt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},n.queue=r,n=z.bind(null,q,r),r.dispatch=n,r=Jt(!1);var a=Nn.bind(null,q,!1,r.queue);return r=Nt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xt.bind(null,q,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function rn(e){return an(L(),Gl,e)}function an(e,t,n){if(t=Bt(e,t,tn)[0],e=zt(Rt)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ft(t)}catch(e){throw e===Tl?Dl:e}else r=t;t=L();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(q.flags|=2048,cn(9,{destroy:void 0},on.bind(null,i,n),null)),[r,a,e]}function on(e,t){e.action=t}function sn(e){var t=L(),n=Gl;if(n!==null)return an(t,n,e);L(),t=t.memoizedState,n=L();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cn(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=q.updateQueue,t===null&&(t=Pt(),q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ln(){return L().memoizedState}function un(e,t,n,r){var i=Nt();q.flags|=e,i.memoizedState=cn(1|t,{destroy:void 0},n,r===void 0?null:r)}function dn(e,t,n,r){var i=L();r=r===void 0?null:r;var a=i.memoizedState.inst;Gl!==null&&r!==null&&Tt(r,Gl.memoizedState.deps)?i.memoizedState=cn(t,a,n,r):(q.flags|=e,i.memoizedState=cn(1|t,a,n,r))}function fn(e,t){un(8390656,8,e,t)}function pn(e,t){dn(2048,8,e,t)}function mn(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=Pt(),q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hn(e){var t=L().memoizedState;return mn({ref:t,nextImpl:e}),function(){if(Y&2)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gn(e,t){return dn(4,2,e,t)}function _n(e,t){return dn(4,4,e,t)}function vn(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yn(e,t,n){n=n==null?null:n.concat([e]),dn(4,4,vn.bind(null,t,e),n)}function bn(){}function xn(e,t){var n=L();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Tt(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sn(e,t){var n=L();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Tt(t,r[1]))return r[0];if(r=e(),Yl){O(!0);try{e()}finally{O(!1)}}return n.memoizedState=[r,t],r}function Cn(e,t,n){return n===void 0||Wl&1073741824&&!(Z&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ai(),q.lanes|=e,ju|=e,n)}function wn(e,t,n,r){return Fc(n,t)?n:zl.current===null?!(Wl&42)||Wl&1073741824&&!(Z&261930)?(ou=!0,e.memoizedState=n):(e=Ai(),q.lanes|=e,ju|=e,t):(e=Cn(e,n,r),Fc(e,t)||(ou=!0),e)}function Tn(e,t,n,r,i){var a=yo();vo(a!==0&&8>a?a:8);var o=G.T,s={};G.T=s,Nn(e,!1,t,n);try{var c=i(),l=G.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Mn(e,t,P(c,r),ki(e)):Mn(e,t,r,ki(e))}catch(n){Mn(e,t,{then:function(){},status:`rejected`,reason:n},ki())}finally{vo(a),o!==null&&s.types!==null&&(o.types=s.types),G.T=o}}function En(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ao,baseState:Ao,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:Ao},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rt,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Dn(){return De(jo)}function On(){return L().memoizedState}function kn(){return L().memoizedState}function An(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ki();e=st(n);var r=ct(t,e,n);r!==null&&(ji(r,t,n),lt(r,t,n)),t={cache:Ae()},e.payload=t;return}t=t.return}}function jn(e,t,n){var r=ki();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pn(e)?Fn(t,n):(n=tt(e,t,n,r),n!==null&&(ji(n,e,r),In(n,t,r)))}function z(e,t,n){Mn(e,t,n,ki())}function Mn(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pn(e))Fn(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Fc(s,o))return et(e,t,i,0),wu===null&&$e(),!1}catch{}if(n=tt(e,t,i,r),n!==null)return ji(n,e,r),In(n,t,r),!0}return!1}function Nn(e,t,n,i){if(i={lane:2,revertLane:ze(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Pn(e)){if(t)throw Error(r(479))}else t=tt(e,n,i,2),t!==null&&ji(t,e,2)}function Pn(e){var t=e.alternate;return e===q||t!==null&&t===q}function Fn(e,t){Jl=ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function In(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,w(e,n)}}function Ln(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ja({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function Rn(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ge(n,r)||!Ge(i,a):!0}function zn(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&iu.enqueueReplaceState(t,t.state,null)}function Bn(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=ja({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vn(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Hn(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Un(e,t,n){return n=st(n),n.tag=3,n.payload={element:null},n.callback=function(){Vn(e,t)},n}function Wn(e){return e=st(e),e.tag=3,e}function Gn(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Hn(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Hn(t,n,r),typeof i!=`function`&&(Uu===null?Uu=new Set([this]):Uu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Kn(e,t,n,i,a){if(n.flags|=32768,typeof i==`object`&&i&&typeof i.then==`function`){if(t=n.alternate,t!==null&&we(t,n,a,!0),n=Vl.current,n!==null){switch(n.tag){case 31:case 13:return Hl===null?Ui():n.alternate===null&&Au===0&&(Au=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Ol?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),sa(e,i,a)),!1;case 22:return n.flags|=65536,i===Ol?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),sa(e,i,a)),!1}throw Error(r(435,n.tag))}return sa(e,i,a),Ui(),!1}if(K)return t=Vl.current,t===null?(i!==al&&(t=Error(r(423),{cause:i}),ye(ie(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=ie(i,n),a=Un(e.stateNode,i,a),ut(e,a),Au!==4&&(Au=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==al&&(e=Error(r(422),{cause:i}),ye(ie(e,n)))),!1;var o=Error(r(520),{cause:i});if(o=ie(o,n),Iu===null?Iu=[o]:Iu.push(o),Au!==4&&(Au=2),t===null)return!0;i=ie(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Un(n.stateNode,i,e),ut(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Uu===null||!Uu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Wn(a),Gn(a,e,n,i),ut(n,a),!1}n=n.return}while(n!==null);return!1}function qn(e,t,n,r){t.child=e===null?Nl(t,null,n,r):Ml(t,e.child,n,r)}function Jn(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ee(t),r=Et(e,t,n,o,a,i),s=At(),e!==null&&!ou?(jt(e,t,i),gr(e,t,i)):(K&&s&&se(t),t.flags|=1,qn(e,t,r,i),t.child)}function Yn(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ma(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Xn(e,t,a,r,i)):(e=_a(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!_r(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ge:n,n(o,r)&&e.ref===t.ref)return gr(e,t,i)}return t.flags|=1,e=ha(a,r),e.ref=t.ref,e.return=t,t.child=e}function Xn(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ge(a,r)&&e.ref===t.ref)if(ou=!1,t.pendingProps=r=a,_r(e,i))e.flags&131072&&(ou=!0);else return t.lanes=e.lanes,gr(e,t,i)}return rr(e,t,n,r,i)}function Zn(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Qn(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ue(t,a===null?null:a.cachePool),a===null?gt():ht(t,a),bt(t);else return r=t.lanes=536870912,Qn(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ue(t,null),gt(),xt(t)):(Ue(t,a.cachePool),ht(t,a),xt(t),t.memoizedState=null);return qn(e,t,i,n),t.child}function B(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qn(e,t,n,r,i){var a=He();return a=a===null?null:{parent:fo?fl._currentValue:fl._currentValue2,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ue(t,null),gt(),bt(t),e!==null&&we(e,t,r,!0),t.childLanes=i,null}function $n(e,t){return t=dr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function er(e,t,n){return Ml(t,e.child,null,n),e=$n(t,t.pendingProps),e.flags|=2,St(t),t.memoizedState=null,e}function tr(e,t,n){var i=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(K){if(i.mode===`hidden`)return e=$n(t,i),t.lanes=536870912,B(null,e);if(yt(t),(e=nl)?(e=Es(e,il),e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jc===null?null:{id:Yc,overflow:Xc},retryLane:536870912,hydrationErrors:null},n=ba(e),n.return=t,t.child=n,tl=t,nl=null)):e=null,e===null)throw A(t);return t.lanes=536870912,null}return $n(t,i)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(yt(t),a)if(t.flags&256)t.flags&=-257,t=er(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(ou||we(e,t,n,!1),a=(n&e.childLanes)!==0,ou||a){if(i=wu,i!==null&&(s=T(i,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,nt(e,s),ji(i,e,s),au;Ui(),t=er(e,t,n)}else e=o.treeContext,ho&&(nl=xs(s),tl=t,K=!0,rl=null,il=!1,e!==null&&le(t,e)),t=$n(t,i),t.flags|=4096;return t}return e=ha(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function nr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function rr(e,t,n,r,i){return Ee(t),n=Et(e,t,n,r,void 0,i),r=At(),e!==null&&!ou?(jt(e,t,i),gr(e,t,i)):(K&&r&&se(t),t.flags|=1,qn(e,t,n,i),t.child)}function ir(e,t,n,r,i,a){return Ee(t),t.updateQueue=null,n=Ot(t,r,n,i),Dt(e),r=At(),e!==null&&!ou?(jt(e,t,a),gr(e,t,a)):(K&&r&&se(t),t.flags|=1,qn(e,t,n,a),t.child)}function ar(e,t,n,r,i){if(Ee(t),t.stateNode===null){var a=hc,o=n.contextType;typeof o==`object`&&o&&(a=De(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=iu,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},at(t),o=n.contextType,a.context=typeof o==`object`&&o?De(o):hc,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ln(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&iu.enqueueReplaceState(a,a.state,null),ft(t,r,a,i),dt(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bn(n,s);a.props=c;var l=a.context,u=n.contextType;o=hc,typeof u==`object`&&u&&(o=De(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zn(t,a,r,o),Ll=!1;var f=t.memoizedState;a.state=f,ft(t,r,a,i),dt(),l=t.memoizedState,s||f!==l||Ll?(typeof d==`function`&&(Ln(t,n,d,r),l=t.memoizedState),(c=Ll||Rn(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ot(e,t),o=t.memoizedProps,u=Bn(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=hc,typeof l==`object`&&l&&(c=De(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zn(t,a,r,c),Ll=!1,f=t.memoizedState,a.state=f,ft(t,r,a,i),dt();var p=t.memoizedState;o!==d||f!==p||Ll||e!==null&&e.dependencies!==null&&Te(e.dependencies)?(typeof s==`function`&&(Ln(t,n,s,r),p=t.memoizedState),(u=Ll||Rn(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Te(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,nr(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ml(t,e.child,null,i),t.child=Ml(t,null,n,i)):qn(e,t,n,i),t.memoizedState=a.state,e=t.child):e=gr(e,t,i),e}function or(e,t,n,r){return _e(),t.flags|=256,qn(e,t,n,r),t.child}function sr(e){return{baseLanes:e,cachePool:We()}}function cr(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Pu),e}function lr(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(Ul.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(K){if(a?vt(t):xt(t),(e=nl)?(e=Ds(e,il),e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jc===null?null:{id:Yc,overflow:Xc},retryLane:536870912,hydrationErrors:null},n=ba(e),n.return=t,t.child=n,tl=t,nl=null)):e=null,e===null)throw A(t);return fs(e)?t.lanes=32:t.lanes=536870912,null}var c=i.children;return i=i.fallback,a?(xt(t),a=t.mode,c=dr({mode:`hidden`,children:c},a),i=va(i,a,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=sr(n),i.childLanes=cr(e,s,n),t.memoizedState=su,B(null,i)):(vt(t),ur(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(vt(t),t.flags&=-257,t=fr(e,t,n)):t.memoizedState===null?(xt(t),c=i.fallback,a=t.mode,i=dr({mode:`visible`,children:i.children},a),c=va(c,a,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Ml(t,e.child,null,n),i=t.child,i.memoizedState=sr(n),i.childLanes=cr(e,s,n),t.memoizedState=su,t=B(null,i)):(xt(t),t.child=e.child,t.flags|=128,t=null);else if(vt(t),fs(c))s=ps(c).digest,i=Error(r(419)),i.stack=``,i.digest=s,ye({value:i,source:null,stack:null}),t=fr(e,t,n);else if(ou||we(e,t,n,!1),s=(n&e.childLanes)!==0,ou||s){if(s=wu,s!==null&&(i=T(s,n),i!==0&&i!==l.retryLane))throw l.retryLane=i,nt(e,i),ji(s,e,i),au;ds(c)||Ui(),t=fr(e,t,n)}else ds(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ho&&(nl=Ss(c),tl=t,K=!0,rl=null,il=!1,e!==null&&le(t,e)),t=ur(t,i.children),t.flags|=4096);return t}return a?(xt(t),c=i.fallback,a=t.mode,l=e.child,o=l.sibling,i=ha(l,{mode:`hidden`,children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,o===null?(c=va(c,a,n,null),c.flags|=2):c=ha(o,c),c.return=t,i.return=t,i.sibling=c,t.child=i,B(null,i),i=t.child,c=e.child.memoizedState,c===null?c=sr(n):(a=c.cachePool,a===null?a=We():(l=fo?fl._currentValue:fl._currentValue2,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),i.memoizedState=c,i.childLanes=cr(e,s,n),t.memoizedState=su,B(e.child,i)):(vt(t),n=e.child,e=n.sibling,n=ha(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function ur(e,t){return t=dr({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function dr(e,n){return e=t(22,e,null,n),e.lanes=0,e}function fr(e,t,n){return Ml(t,e.child,null,n),e=ur(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function pr(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Se(e.return,t,n)}function mr(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function hr(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ul.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,p(Ul,o),qn(e,t,r,n),r=K?Gc:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pr(e,n,t);else if(e.tag===19)pr(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ct(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),mr(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ct(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}mr(t,!0,n,null,a,r);break;case`together`:mr(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function gr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ju|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(we(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=ha(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ha(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _r(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Te(e))):!0}function vr(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),be(t,fl,e.memoizedState.cache),_e();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:be(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yt(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(vt(t),e=gr(e,t,n),e===null?null:e.sibling):lr(e,t,n):(vt(t),t.flags|=128,null);vt(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||(we(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return hr(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),p(Ul,Ul.current),r)break;return null;case 22:return t.lanes=0,Zn(e,t,n,t.pendingProps);case 24:be(t,fl,e.memoizedState.cache)}return gr(e,t,n)}function yr(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ou=!0;else{if(!_r(e,n)&&!(t.flags&128))return ou=!1,vr(e,t,n);ou=!!(e.flags&131072)}else ou=!1,K&&t.flags&1048576&&oe(t,Gc,t.index);switch(t.lanes=0,t.tag){case 16:a:{var i=t.pendingProps;if(e=Je(t.elementType),t.type=e,typeof e==`function`)ma(e)?(i=Bn(e,i),t.tag=1,t=ar(null,t,e,i,n)):(t.tag=0,t=rr(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===Ba){t.tag=11,t=Jn(null,t,e,i,n);break a}else if(a===Ua){t.tag=14,t=Yn(null,t,e,i,n);break a}}throw t=u(e)||e,Error(r(306,t,``))}}return t;case 0:return rr(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=Bn(i,t.pendingProps),ar(e,t,i,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(r(387));var o=t.pendingProps;a=t.memoizedState,i=a.element,ot(e,t),ft(t,o,null,n);var s=t.memoizedState;if(o=s.cache,be(t,fl,o),o!==a.cache&&Ce(t,[fl],n,!0),dt(),o=s.element,ho&&a.isDehydrated)if(a={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=or(e,t,o,n);break a}else if(o!==i){i=ie(Error(r(424)),t),ye(i),t=or(e,t,o,n);break a}else for(ho&&(nl=bs(t.stateNode.containerInfo),tl=t,K=!0,rl=null,il=!0),n=Nl(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_e(),o===i){t=gr(e,t,n);break a}qn(e,t,o,n)}t=t.child}return t;case 26:if(qs)return nr(e,t),e===null?(n=Xs(t.type,null,t.pendingProps,null))?t.memoizedState=n:K||(t.stateNode=nc(t.type,t.pendingProps,$c.current,t)):t.memoizedState=Xs(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:if(sc)return fe(t),e===null&&sc&&K&&(i=t.stateNode=cc(t.type,t.pendingProps,$c.current,Zc.current,!1),tl=t,il=!0,nl=Cs(t.type,i,nl)),qn(e,t,t.pendingProps.children,n),nr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&K&&(Gs(t.type,t.pendingProps,Zc.current),(a=i=nl)&&(i=ws(i,t.type,t.pendingProps,il),i===null?a=!1:(t.stateNode=i,tl=t,nl=ys(i),il=!1,a=!0)),a||A(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,i=o.children,oo(a,o)?i=null:s!==null&&oo(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Et(e,t,kt,null,null,n),fo?jo._currentValue=a:jo._currentValue2=a),nr(e,t),qn(e,t,i,n),t.child;case 6:return e===null&&K&&(Ks(t.pendingProps,Zc.current),(e=n=nl)&&(n=Ts(n,t.pendingProps,il),n===null?e=!1:(t.stateNode=n,tl=t,nl=null,e=!0)),e||A(t)),null;case 13:return lr(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ml(t,null,i,n):qn(e,t,i,n),t.child;case 11:return Jn(e,t,t.type,t.pendingProps,n);case 7:return qn(e,t,t.pendingProps,n),t.child;case 8:return qn(e,t,t.pendingProps.children,n),t.child;case 12:return qn(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,be(t,t.type,i.value),qn(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,Ee(t),a=De(a),i=i(a),t.flags|=1,qn(e,t,i,n),t.child;case 14:return Yn(e,t,t.type,t.pendingProps,n);case 15:return Xn(e,t,t.type,t.pendingProps,n);case 19:return hr(e,t,n);case 31:return tr(e,t,n);case 22:return Zn(e,t,n,t.pendingProps);case 24:return Ee(t),i=De(fl),e===null?(a=He(),a===null&&(a=wu,o=Ae(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},at(t),be(t,fl,a)):((e.lanes&n)!==0&&(ot(e,t),ft(t,null,null,n),dt()),a=e.memoizedState,o=t.memoizedState,a.parent===i?(i=o.cache,be(t,fl,i),i!==a.cache&&Ce(t,[fl],n,!0)):(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),be(t,fl,i))),qn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function br(e){e.flags|=4}function xr(e){mo&&(e.flags|=8)}function Sr(e,t){if(e!==null&&e.child===t.child)return!1;if(t.flags&16)return!0;for(e=t.child;e!==null;){if(e.flags&8218||e.subtreeFlags&8218)return!0;e=e.sibling}return!1}function Cr(e,t,n,r){if(po)for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)io(e,n.stateNode);else if(!(n.tag===4||sc&&n.tag===27)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else if(mo)for(var i=t.child;i!==null;){if(i.tag===5){var a=i.stateNode;n&&r&&(a=ls(a,i.type,i.memoizedProps)),io(e,a)}else if(i.tag===6)a=i.stateNode,n&&r&&(a=us(a,i.memoizedProps)),io(e,a);else if(i.tag!==4){if(i.tag===22&&i.memoizedState!==null)a=i.child,a!==null&&(a.return=i),Cr(e,i,!0,!0);else if(i.child!==null){i.child.return=i,i=i.child;continue}}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function wr(e,t,n,r){var i=!1;if(mo)for(var a=t.child;a!==null;){if(a.tag===5){var o=a.stateNode;n&&r&&(o=ls(o,a.type,a.memoizedProps)),os(e,o)}else if(a.tag===6)o=a.stateNode,n&&r&&(o=us(o,a.memoizedProps)),os(e,o);else if(a.tag!==4){if(a.tag===22&&a.memoizedState!==null)i=a.child,i!==null&&(i.return=a),wr(e,a,!0,!0),i=!0;else if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return i;a=a.return}a.sibling.return=a.return,a=a.sibling}return i}function Tr(e,t){if(mo&&Sr(e,t)){e=t.stateNode;var n=e.containerInfo,r=as();wr(r,t,!1,!1),e.pendingChildren=r,br(t),ss(n,r)}}function Er(e,t,n,r){if(po)e.memoizedProps!==r&&br(t);else if(mo){var i=e.stateNode,a=e.memoizedProps;if((e=Sr(e,t))||a!==r){var o=Zc.current;a=is(i,n,a,r,!e,null),a===i?t.stateNode=i:(xr(t),ao(a,n,r,o)&&br(t),t.stateNode=a,e&&Cr(a,t,!1,!1))}else t.stateNode=i}}function Dr(e,t,n,r,i){if(e.mode&32&&(n===null?Co(t,r):wo(t,n,r))){if(e.flags|=16777216,(i&335544128)===i||To(t,r))if(Eo(e.stateNode,t,r))e.flags|=8192;else if(Bi())e.flags|=8192;else throw kl=Ol,El}else e.flags&=-16777217}function Or(e,t){if(ic(t)){if(e.flags|=16777216,!ac(t))if(Bi())e.flags|=8192;else throw kl=Ol,El}else e.flags&=-16777217}function kr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:y(),e.lanes|=t,Fu|=t)}function Ar(e,t){if(!K)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function jr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Mr(e,t,n){var i=t.pendingProps;switch(ce(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jr(t),null;case 1:return jr(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),xe(fl),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ge(t)?br(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ve())),Tr(e,t),jr(t),null;case 26:if(qs){var a=t.type,o=t.memoizedState;return e===null?(br(t),o===null?(jr(t),Dr(t,a,null,i,n)):(jr(t),Or(t,o))):o?o===e.memoizedState?(jr(t),t.flags&=-16777217):(br(t),jr(t),Or(t,o)):(o=e.memoizedProps,po?o!==i&&br(t):Er(e,t,a,i),jr(t),Dr(t,a,o,i,n)),null}case 27:if(sc){if(pe(t),n=$c.current,a=t.type,e!==null&&t.stateNode!=null)po?e.memoizedProps!==i&&br(t):Er(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return jr(t),null}e=Zc.current,ge(t)?me(t,e):(e=cc(a,i,n,e,!0),t.stateNode=e,br(t))}return jr(t),null}case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)Er(e,t,a,i);else{if(!i){if(t.stateNode===null)throw Error(r(166));return jr(t),null}if(o=Zc.current,ge(t))me(t,o),Rs(t.stateNode,a,i,o)&&(t.flags|=64);else{var s=ro(a,i,$c.current,o,t);xr(t),Cr(s,t,!1,!1),t.stateNode=s,ao(s,a,i,o)&&br(t)}}return jr(t),Dr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)n=e.memoizedProps,po?n!==i&&br(t):mo&&(n===i?t.stateNode=e.stateNode:(e=$c.current,n=Zc.current,xr(t),t.stateNode=so(i,e,n,t)));else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(e=$c.current,n=Zc.current,ge(t)){if(!ho)throw Error(r(176));if(e=t.stateNode,n=t.memoizedProps,i=null,a=tl,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}ks(e,n,t,i)||A(t,!0)}else xr(t),t.stateNode=so(i,e,n,t)}return jr(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=ge(t),n!==null){if(e===null){if(!i)throw Error(r(318));if(!ho)throw Error(r(556));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(557));As(e,t)}else _e(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),e=!1}else n=ve(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(St(t),t):(St(t),null);if(t.flags&128)throw Error(r(558))}return jr(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ge(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(r(318));if(!ho)throw Error(r(344));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(r(317));js(a,t)}else _e(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jr(t),a=!1}else a=ve(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(St(t),t):(St(t),null)}return St(t),t.flags&128?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kr(t,t.updateQueue),jr(t),null);case 4:return de(),Tr(e,t),e===null&&_o(t.stateNode.containerInfo),jr(t),null;case 10:return xe(t.type),jr(t),null;case 19:if(f(Ul),i=t.memoizedState,i===null)return jr(t),null;if(a=(t.flags&128)!=0,o=i.rendering,o===null)if(a)Ar(i,!1);else{if(Au!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ct(e),o!==null){for(t.flags|=128,Ar(i,!1),e=o.updateQueue,t.updateQueue=e,kr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ga(n,e),n=n.sibling;return p(Ul,Ul.current&1|2),K&&ae(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ec()>Vu&&(t.flags|=128,a=!0,Ar(i,!1),t.lanes=4194304)}else{if(!a)if(e=Ct(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kr(t,e),Ar(i,!0),i.tail===null&&i.tailMode===`hidden`&&!o.alternate&&!K)return jr(t),null}else 2*Ec()-i.renderingStartTime>Vu&&n!==536870912&&(t.flags|=128,a=!0,Ar(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e===null?t.child=o:e.sibling=o,i.last=o)}return i.tail===null?(jr(t),null):(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ec(),e.sibling=null,n=Ul.current,p(Ul,a?n&1|2:n&1),K&&ae(t,i.treeForkCount),e);case 22:case 23:return St(t),_t(),i=t.memoizedState!==null,e===null?i&&(t.flags|=8192):e.memoizedState!==null!==i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(jr(t),t.subtreeFlags&6&&(t.flags|=8192)):jr(t),n=t.updateQueue,n!==null&&kr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&f(wl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xe(fl),jr(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Nr(e,t){switch(ce(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xe(fl),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(St(t),t.alternate===null)throw Error(r(340));_e()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(St(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));_e()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return f(Ul),null;case 4:return de(),null;case 10:return xe(t.type),null;case 22:case 23:return St(t),_t(),e!==null&&f(wl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xe(fl),null;case 25:return null;default:return null}}function Pr(e,t){switch(ce(t),t.tag){case 3:xe(fl),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&St(t);break;case 13:St(t);break;case 19:f(Ul);break;case 10:xe(t.type);break;case 22:case 23:St(t),_t(),e!==null&&f(wl);break;case 24:xe(fl)}}function Fr(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){H(t,t.return,e)}}function Ir(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){H(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){H(t,t.return,e)}}function Lr(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{mt(t,n)}catch(t){H(e,e.return,t)}}}function Rr(e,t,n){n.props=Bn(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){H(e,t,n)}}function zr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=Qa(e.stateNode);break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){H(e,t,n)}}function Br(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){H(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){H(e,t,n)}else n.current=null}function Vr(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{Ko(r,t,n,e)}catch(t){H(e,e.return,t)}}function Hr(e,t,n){try{qo(e.stateNode,e.type,n,t,e)}catch(t){H(e,e.return,t)}}function Ur(e){return e.tag===5||e.tag===3||(qs?e.tag===26:!1)||(sc?e.tag===27&&fc(e.type):!1)||e.tag===4}function Wr(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ur(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(sc&&e.tag===27&&fc(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Yo(n,e,t):Wo(n,e);else if(r!==4&&(sc&&r===27&&fc(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gr(e,t,n),e=e.sibling;e!==null;)Gr(e,t,n),e=e.sibling}function Kr(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?Jo(n,e,t):Uo(n,e);else if(r!==4&&(sc&&r===27&&fc(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Kr(e,t,n),e=e.sibling;e!==null;)Kr(e,t,n),e=e.sibling}function qr(e,t,n){e=e.containerInfo;try{cs(e,n)}catch(e){H(t,t.return,e)}}function Jr(e){var t=e.stateNode,n=e.memoizedProps;try{lc(e.type,n,t,e)}catch(t){H(e,e.return,t)}}function Yr(e,t){for(to(e.containerInfo),fu=t;fu!==null;)if(e=fu,t=e.child,e.subtreeFlags&1028&&t!==null)t.return=e,fu=t;else for(;fu!==null;){e=fu;var n=e.alternate;switch(t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t===null?null:t.events,t!==null))for(var i=0;i<t.length;i++){var a=t[i];a.ref.impl=a.nextImpl}break;case 11:case 15:break;case 1:if(t&1024&&n!==null){t=void 0,i=e,a=n.memoizedProps,n=n.memoizedState;var o=i.stateNode;try{var s=Bn(i.type,a);t=o.getSnapshotBeforeUpdate(s,n),o.__reactInternalSnapshotBeforeUpdate=t}catch(e){H(i,i.return,e)}}break;case 3:t&1024&&po&&rs(e.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,fu=t;break}fu=e.return}}function Xr(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ci(e,n),r&4&&Fr(5,n);break;case 1:if(ci(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){H(n,n.return,e)}else{var i=Bn(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){H(n,n.return,e)}}r&64&&Lr(n),r&512&&zr(n,n.return);break;case 3:if(ci(e,n),r&64&&(r=n.updateQueue,r!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=Qa(n.child.stateNode);break;case 1:e=n.child.stateNode}try{mt(r,e)}catch(e){H(n,n.return,e)}}break;case 27:sc&&t===null&&r&4&&Jr(n);case 26:case 5:if(ci(e,n),t===null){if(r&4)Vr(n);else if(r&64){e=n.type,t=n.memoizedProps,i=n.stateNode;try{Ps(i,e,t,n)}catch(e){H(n,n.return,e)}}}r&512&&zr(n,n.return);break;case 12:ci(e,n);break;case 31:ci(e,n),r&4&&ei(e,n);break;case 13:ci(e,n),r&4&&ti(e,n),r&64&&(r=n.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(n=ua.bind(null,n),ms(r,n))));break;case 22:if(r=n.memoizedState!==null||cu,!r){t=t!==null&&t.memoizedState!==null||lu,i=cu;var a=lu;cu=r,(lu=t)&&!a?ui(e,n,(n.subtreeFlags&8772)!=0):ci(e,n),cu=i,lu=a}break;case 30:break;default:ci(e,n)}}function Zr(e){var t=e.alternate;t!==null&&(e.alternate=null,Zr(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&So(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}function Qr(e,t,n){for(n=n.child;n!==null;)$r(e,t,n),n=n.sibling}function $r(e,t,n){if(Pc&&typeof Pc.onCommitFiberUnmount==`function`)try{Pc.onCommitFiberUnmount(Nc,n)}catch{}switch(n.tag){case 26:if(qs){lu||Br(n,t),Qr(e,t,n),n.memoizedState?Qs(n.memoizedState):n.stateNode&&tc(n.stateNode);break}case 27:if(sc){lu||Br(n,t);var r=pu,i=mu;fc(n.type)&&(pu=n.stateNode,mu=!1),Qr(e,t,n),uc(n.stateNode),pu=r,mu=i;break}case 5:lu||Br(n,t);case 6:if(po){if(r=pu,i=mu,pu=null,Qr(e,t,n),pu=r,mu=i,pu!==null)if(mu)try{Zo(pu,n.stateNode)}catch(e){H(n,t,e)}else try{Xo(pu,n.stateNode)}catch(e){H(n,t,e)}}else Qr(e,t,n);break;case 18:po&&pu!==null&&(mu?Vs(pu,n.stateNode):Bs(pu,n.stateNode));break;case 4:po?(r=pu,i=mu,pu=n.stateNode.containerInfo,mu=!0,Qr(e,t,n),pu=r,mu=i):(mo&&qr(n.stateNode,n,as()),Qr(e,t,n));break;case 0:case 11:case 14:case 15:Ir(2,n,t),lu||Ir(4,n,t),Qr(e,t,n);break;case 1:lu||(Br(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Rr(n,t,r)),Qr(e,t,n);break;case 21:Qr(e,t,n);break;case 22:lu=(r=lu)||n.memoizedState!==null,Qr(e,t,n),lu=r;break;default:Qr(e,t,n)}}function ei(e,t){if(ho&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Is(e)}catch(e){H(t,t.return,e)}}}function ti(e,t){if(ho&&t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ls(e)}catch(e){H(t,t.return,e)}}function ni(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new du),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new du),t;default:throw Error(r(435,e.tag))}}function ri(e,t){var n=ni(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=da.bind(null,e,t);t.then(r,r)}})}function ii(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],o=e,s=t;if(po){var c=s;a:for(;c!==null;){switch(c.tag){case 27:if(sc){if(fc(c.type)){pu=c.stateNode,mu=!1;break a}break}case 5:pu=c.stateNode,mu=!1;break a;case 3:case 4:pu=c.stateNode.containerInfo,mu=!0;break a}c=c.return}if(pu===null)throw Error(r(160));$r(o,s,a),pu=null,mu=!1}else $r(o,s,a);o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ai(t,e),t=t.sibling}function ai(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ii(t,e),oi(e),i&4&&(Ir(3,e,e.return),Fr(3,e),Ir(5,e,e.return));break;case 1:ii(t,e),oi(e),i&512&&(lu||n===null||Br(n,n.return)),i&64&&cu&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:if(qs){var a=J;if(ii(t,e),oi(e),i&512&&(lu||n===null||Br(n,n.return)),i&4){i=n===null?null:n.memoizedState;var o=e.memoizedState;n===null?o===null?e.stateNode===null?e.stateNode=$s(a,e.type,e.memoizedProps,e):ec(a,e.type,e.stateNode):e.stateNode=Zs(a,o,e.memoizedProps):i===o?o===null&&e.stateNode!==null&&Hr(e,e.memoizedProps,n.memoizedProps):(i===null?n.stateNode!==null&&tc(n.stateNode):Qs(i),o===null?ec(a,e.type,e.stateNode):Zs(a,o,e.memoizedProps))}break}case 27:if(sc){ii(t,e),oi(e),i&512&&(lu||n===null||Br(n,n.return)),n!==null&&i&4&&Hr(e,e.memoizedProps,n.memoizedProps);break}case 5:if(ii(t,e),oi(e),i&512&&(lu||n===null||Br(n,n.return)),po){if(e.flags&32){a=e.stateNode;try{Qo(a)}catch(t){H(e,e.return,t)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,Hr(e,a,n===null?a:n.memoizedProps)),i&1024&&(uu=!0)}else mo&&e.alternate!==null&&(e.alternate.stateNode=e.stateNode);break;case 6:if(ii(t,e),oi(e),i&4&&po){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,n=n===null?i:n.memoizedProps,a=e.stateNode;try{Go(a,n,i)}catch(t){H(e,e.return,t)}}break;case 3:if(qs?(rc(),a=J,J=Ys(t.containerInfo),ii(t,e),J=a):ii(t,e),oi(e),i&4){if(po&&ho&&n!==null&&n.memoizedState.isDehydrated)try{Fs(t.containerInfo)}catch(t){H(e,e.return,t)}if(mo){i=t.containerInfo,n=t.pendingChildren;try{cs(i,n)}catch(t){H(e,e.return,t)}}}uu&&(uu=!1,si(e));break;case 4:qs?(n=J,J=Ys(e.stateNode.containerInfo),ii(t,e),oi(e),J=n):(ii(t,e),oi(e)),i&4&&mo&&qr(e.stateNode,e,e.stateNode.pendingChildren);break;case 12:ii(t,e),oi(e);break;case 31:ii(t,e),oi(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ri(e,i)));break;case 13:ii(t,e),oi(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(zu=Ec()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ri(e,i)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=cu,l=lu;if(cu=c||a,lu=l||s,ii(t,e),lu=l,cu=c,oi(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||cu||lu||li(e)),po)){a:if(n=null,po)for(t=e;;){if(t.tag===5||qs&&t.tag===26){if(n===null){s=n=t;try{o=s.stateNode,a?$o(o):ts(s.stateNode,s.memoizedProps)}catch(e){H(s,s.return,e)}}}else if(t.tag===6){if(n===null){s=t;try{var u=s.stateNode;a?es(u):ns(u,s.memoizedProps)}catch(e){H(s,s.return,e)}}}else if(t.tag===18){if(n===null){s=t;try{var d=s.stateNode;a?Hs(d):Us(s.stateNode)}catch(e){H(s,s.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ri(e,n))));break;case 19:ii(t,e),oi(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ri(e,i)));break;case 30:break;case 21:break;default:ii(t,e),oi(e)}}function oi(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Ur(i)){n=i;break}i=i.return}if(po){if(n==null)throw Error(r(160));switch(n.tag){case 27:if(sc){var a=n.stateNode;Kr(e,Wr(e),a);break}case 5:var o=n.stateNode;n.flags&32&&(Qo(o),n.flags&=-33),Kr(e,Wr(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Gr(e,Wr(e),s);break;default:throw Error(r(161))}}}catch(t){H(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function si(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;si(t),t.tag===5&&t.flags&1024&&Mo(t.stateNode),e=e.sibling}}function ci(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Xr(e,t.alternate,t),t=t.sibling}function li(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ir(4,t,t.return),li(t);break;case 1:Br(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Rr(t,t.return,n),li(t);break;case 27:sc&&uc(t.stateNode);case 26:case 5:Br(t,t.return),li(t);break;case 22:t.memoizedState===null&&li(t);break;case 30:li(t);break;default:li(t)}e=e.sibling}}function ui(e,t,n){for(n=n&&(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:ui(i,a,n),Fr(4,a);break;case 1:if(ui(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){H(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)pt(c[i],s)}catch(e){H(r,r.return,e)}}n&&o&64&&Lr(a),zr(a,a.return);break;case 27:sc&&Jr(a);case 26:case 5:ui(i,a,n),n&&r===null&&o&4&&Vr(a),zr(a,a.return);break;case 12:ui(i,a,n);break;case 31:ui(i,a,n),n&&o&4&&ei(i,a);break;case 13:ui(i,a,n),n&&o&4&&ti(i,a);break;case 22:a.memoizedState===null&&ui(i,a,n),zr(a,a.return);break;case 30:break;default:ui(i,a,n)}t=t.sibling}}function di(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&je(n))}function fi(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&je(e))}function mi(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hi(e,t,n,r),t=t.sibling}function hi(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:mi(e,t,n,r),i&2048&&Fr(9,t);break;case 1:mi(e,t,n,r);break;case 3:mi(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&je(e)));break;case 12:if(i&2048){mi(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){H(t,t.return,e)}}else mi(e,t,n,r);break;case 31:mi(e,t,n,r);break;case 13:mi(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?mi(e,t,n,r):(a._visibility|=2,V(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?mi(e,t,n,r):gi(e,t),i&2048&&di(o,t);break;case 24:mi(e,t,n,r),i&2048&&fi(t.alternate,t);break;default:mi(e,t,n,r)}}function V(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!=0||!1),t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:V(a,o,s,c,i),Fr(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,V(a,o,s,c,i)):u._visibility&2?V(a,o,s,c,i):gi(a,o),i&&l&2048&&di(o.alternate,o);break;case 24:V(a,o,s,c,i),i&&l&2048&&fi(o.alternate,o);break;default:V(a,o,s,c,i)}t=t.sibling}}function gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:gi(n,r),i&2048&&di(r.alternate,r);break;case 24:gi(n,r),i&2048&&fi(r.alternate,r);break;default:gi(n,r)}t=t.sibling}}function _i(e,t,n){if(e.subtreeFlags&hu)for(e=e.child;e!==null;)vi(e,t,n),e=e.sibling}function vi(e,t,n){switch(e.tag){case 26:if(_i(e,t,n),e.flags&hu)if(e.memoizedState!==null)oc(n,J,e.memoizedState,e.memoizedProps);else{var r=e.stateNode,i=e.type;e=e.memoizedProps,((t&335544128)===t||To(i,e))&&Oo(n,r,i,e)}break;case 5:_i(e,t,n),e.flags&hu&&(r=e.stateNode,i=e.type,e=e.memoizedProps,((t&335544128)===t||To(i,e))&&Oo(n,r,i,e));break;case 3:case 4:qs?(r=J,J=Ys(e.stateNode.containerInfo),_i(e,t,n),J=r):_i(e,t,n);break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=hu,hu=16777216,_i(e,t,n),hu=r):_i(e,t,n));break;default:_i(e,t,n)}}function yi(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 bi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];fu=r,Ci(r,e)}yi(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xi(e),e=e.sibling}function xi(e){switch(e.tag){case 0:case 11:case 15:bi(e),e.flags&2048&&Ir(9,e,e.return);break;case 3:bi(e);break;case 12:bi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Si(e)):bi(e);break;default:bi(e)}}function Si(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];fu=r,Ci(r,e)}yi(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ir(8,t,t.return),Si(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Si(t));break;default:Si(t)}e=e.sibling}}function Ci(e,t){for(;fu!==null;){var n=fu;switch(n.tag){case 0:case 11:case 15:Ir(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:je(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,fu=r;else a:for(n=e;fu!==null;){r=fu;var i=r.sibling,a=r.return;if(Zr(r),r===n){fu=null;break a}if(i!==null){i.return=a,fu=i;break a}fu=a}}}function wi(e){var t=go(e);if(t!=null){if(typeof t.memoizedProps[`data-testname`]!=`string`)throw Error(r(364));return t}if(e=Io(e),e===null)throw Error(r(362));return e.stateNode.current}function Ti(e,t){var n=e.tag;switch(t.$$typeof){case _u:if(e.type===t.value)return!0;break;case vu:a:{for(t=t.value,e=[e,0],n=0;n<e.length;){var i=e[n++],a=i.tag,o=e[n++],s=t[o];if(a!==5&&a!==26&&a!==27||!zo(i)){for(;s!=null&&Ti(i,s);)o++,s=t[o];if(o===t.length){t=!0;break a}else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}t=!1}return t;case yu:if((n===5||n===26||n===27)&&Bo(e.stateNode,t.value))return!0;break;case xu:if((n===5||n===6||n===26||n===27)&&(e=Ro(e),e!==null&&0<=e.indexOf(t.value)))return!0;break;case bu:if((n===5||n===26||n===27)&&(e=e.memoizedProps[`data-testname`],typeof e==`string`&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(r(365))}return!1}function Ei(e){switch(e.$$typeof){case _u:return`<`+(u(e.value)||`Unknown`)+`>`;case vu:return`:has(`+(Ei(e)||``)+`)`;case yu:return`[role="`+e.value+`"]`;case xu:return`"`+e.value+`"`;case bu:return`[data-testname="`+e.value+`"]`;default:throw Error(r(365))}}function Di(e,t){var n=[];e=[e,0];for(var r=0;r<e.length;){var i=e[r++],a=i.tag,o=e[r++],s=t[o];if(a!==5&&a!==26&&a!==27||!zo(i)){for(;s!=null&&Ti(i,s);)o++,s=t[o];if(o===t.length)n.push(i);else for(i=i.child;i!==null;)e.push(i,o),i=i.sibling}}return n}function Oi(e,t){if(!Fo)throw Error(r(363));e=wi(e),e=Di(e,t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++],a=i.tag;if(a===5||a===26||a===27)zo(i)||t.push(i.stateNode);else for(i=i.child;i!==null;)e.push(i),i=i.sibling}return t}function ki(){return Y&2&&Z!==0?Z&-Z:G.T===null?bo():ze()}function Ai(){if(Pu===0)if(!(Z&536870912)||K){var e=bc;bc<<=1,!(bc&3932160)&&(bc=262144),Pu=e}else Pu=536870912;return e=Vl.current,e!==null&&(e.flags|=32),Pu}function ji(e,t,n){(e===wu&&(Q===2||Q===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),Fi(e,Z,Pu,!1)),x(e,n),(!(Y&2)||e!==wu)&&(e===wu&&(!(Y&2)&&(Mu|=n),Au===4&&Fi(e,Z,Pu,!1)),Ne(e))}function Mi(e,t,n){if(Y&6)throw Error(r(327));var i=!n&&(t&127)==0&&(t&e.expiredLanes)===0||_(e,t),a=i?Ki(e,t):Wi(e,t,!0),o=i;do{if(a===0){Du&&!i&&Fi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Pi(n)){a=Wi(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Iu;var l=ho&&c.current.memoizedState.isDehydrated;if(l&&(Ri(c,s).flags|=256),s=Wi(c,s,!1),s!==2){if(Ou&&!l){c.errorRecoveryDisabledLanes|=o,Mu|=o,a=4;break a}o=Lu,Lu=a,o!==null&&(Lu===null?Lu=o:Lu.push.apply(Lu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Ri(e,0),Fi(e,t,0,!0);break}a:{switch(i=e,o=a,o){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Fi(i,t,Pu,!Eu);break a;case 2:Lu=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(a=zu+300-Ec(),10<a)){if(Fi(i,t,Pu,!Eu),g(i,0,!0)!==0)break a;qu=t,i.timeoutHandle=co(Ni.bind(null,i,n,Lu,Hu,Ru,t,Pu,Mu,Fu,Eu,o,`Throttled`,-0,0),a);break a}Ni(i,n,Lu,Hu,Ru,t,Pu,Mu,Fu,Eu,o,null,-0,0)}}break}while(1);Ne(e)}function Ni(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=uo,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d=Do(),vi(t,a,d);var m=(a&62914560)===a?zu-Ec():(a&4194048)===a?Bu-Ec():0;if(m=ko(d,m),m!==null){qu=a,e.cancelPendingCommit=m($i.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Fi(e,a,o,!l);return}}$i(e,t,a,n,r,i,o,s,c)}function Pi(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Fc(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Fi(e,t,n,r){t&=~Nu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-gc(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&C(e,n,t)}function Ii(){return Y&6?!0:(Pe(0,!1),!1)}function Li(){if(X!==null){if(Q===0)var e=X.return;else e=X,cl=sl=null,Mt(e),Al=null,jl=0,e=X;for(;e!==null;)Pr(e.alternate,e),e=e.return;X=null}}function Ri(e,t){var n=e.timeoutHandle;n!==uo&&(e.timeoutHandle=uo,lo(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),qu=0,Li(),wu=e,X=n=ha(e.current,null),Z=t,Q=0,Tu=null,Eu=!1,Du=_(e,t),Ou=!1,Fu=Pu=Nu=Mu=ju=Au=0,Lu=Iu=null,Ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-gc(r),a=1<<i;t|=e[i],r&=~a}return ku=t,$e(),n}function zi(e,t){q=null,G.H=eu,t===Tl||t===Dl?(t=F(),Q=3):t===El?(t=F(),Q=4):Q=t===au?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Tu=t,X===null&&(Au=1,Vn(e,ie(t,e.current)))}function Bi(){var e=Vl.current;return e===null?!0:(Z&4194048)===Z?Hl===null:(Z&62914560)===Z||Z&536870912?e===Hl:!1}function Vi(){var e=G.H;return G.H=eu,e===null?eu:e}function Hi(){var e=G.A;return G.A=gu,e}function Ui(){Au=4,Eu||(Z&4194048)!==Z&&Vl.current!==null||(Du=!0),!(ju&134217727)&&!(Mu&134217727)||wu===null||Fi(wu,Z,Pu,!1)}function Wi(e,t,n){var r=Y;Y|=2;var i=Vi(),a=Hi();(wu!==e||Z!==t)&&(Hu=null,Ri(e,t)),t=!1;var o=Au;a:do try{if(Q!==0&&X!==null){var s=X,c=Tu;switch(Q){case 8:Li(),o=6;break a;case 3:case 2:case 9:case 6:Vl.current===null&&(t=!0);var l=Q;if(Q=0,Tu=null,Xi(e,s,c,l),n&&Du){o=0;break a}break;default:l=Q,Q=0,Tu=null,Xi(e,s,c,l)}}Gi(),o=Au;break}catch(t){zi(e,t)}while(1);return t&&e.shellSuspendCounter++,cl=sl=null,Y=r,G.H=i,G.A=a,X===null&&(wu=null,Z=0,$e()),o}function Gi(){for(;X!==null;)Ji(X)}function Ki(e,t){var n=Y;Y|=2;var i=Vi(),a=Hi();wu!==e||Z!==t?(Hu=null,Vu=Ec()+500,Ri(e,t)):Du=_(e,t);a:do try{if(Q!==0&&X!==null){t=X;var o=Tu;b:switch(Q){case 1:Q=0,Tu=null,Xi(e,t,o,1);break;case 2:case 9:if(Ke(o)){Q=0,Tu=null,Yi(t);break}t=function(){Q!==2&&Q!==9||wu!==e||(Q=7),Ne(e)},o.then(t,t);break a;case 3:Q=7;break a;case 4:Q=5;break a;case 7:Ke(o)?(Q=0,Tu=null,Yi(t)):(Q=0,Tu=null,Xi(e,t,o,7));break;case 5:var s=null;switch(X.tag){case 26:s=X.memoizedState;case 5:case 27:var c=X,l=c.type,u=c.pendingProps;if(s?ac(s):Eo(c.stateNode,l,u)){Q=0,Tu=null;var d=c.sibling;if(d!==null)X=d;else{var f=c.return;f===null?X=null:(X=f,Zi(f))}break b}}Q=0,Tu=null,Xi(e,t,o,5);break;case 6:Q=0,Tu=null,Xi(e,t,o,6);break;case 8:Li(),Au=6;break a;default:throw Error(r(462))}}qi();break}catch(t){zi(e,t)}while(1);return cl=sl=null,G.H=i,G.A=a,Y=n,X===null?(wu=null,Z=0,$e(),Au):0}function qi(){for(;X!==null&&!wc();)Ji(X)}function Ji(e){var t=yr(e.alternate,e,ku);e.memoizedProps=e.pendingProps,t===null?Zi(e):X=t}function Yi(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ir(n,t,t.pendingProps,t.type,void 0,Z);break;case 11:t=ir(n,t,t.pendingProps,t.type.render,t.ref,Z);break;case 5:Mt(t);default:Pr(n,t),t=X=ga(t,ku),t=yr(n,t,ku)}e.memoizedProps=e.pendingProps,t===null?Zi(e):X=t}function Xi(e,t,n,r){cl=sl=null,Mt(t),Al=null,jl=0;var i=t.return;try{if(Kn(e,i,t,n,Z)){Au=1,Vn(e,ie(n,e.current)),X=null;return}}catch(t){if(i!==null)throw X=i,t;Au=1,Vn(e,ie(n,e.current)),X=null;return}t.flags&32768?(K||r===1?e=!0:Du||Z&536870912?e=!1:(Eu=e=!0,(r===2||r===9||r===3||r===6)&&(r=Vl.current,r!==null&&r.tag===13&&(r.flags|=16384))),Qi(t,e)):Zi(t)}function Zi(e){var t=e;do{if(t.flags&32768){Qi(t,Eu);return}e=t.return;var n=Mr(t.alternate,t,ku);if(n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);Au===0&&(Au=5)}function Qi(e,t){do{var n=Nr(e.alternate,e);if(n!==null){n.flags&=32767,X=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){X=e;return}X=e=n}while(e!==null);Au=6,X=null}function $i(e,t,n,i,a,o,s,c,l){e.cancelPendingCommit=null;do ia();while(Wu!==0);if(Y&6)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(o=t.lanes|t.childLanes,o|=Il,S(e,n,o,s,c,l),e===wu&&(X=wu=null,Z=0),Ku=t,Gu=e,qu=n,Ju=o,Yu=a,Xu=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,fa(kc,function(){return aa(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!=0,t.subtreeFlags&13878||i){i=G.T,G.T=null,a=yo(),vo(2),s=Y,Y|=4;try{Yr(e,t,n)}finally{Y=s,vo(a),G.T=i}}Wu=1,ea(),ta(),na()}}function ea(){if(Wu===1){Wu=0;var e=Gu,t=Ku,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=G.T,G.T=null;var r=yo();vo(2);var i=Y;Y|=4;try{ai(t,e),no(e.containerInfo)}finally{Y=i,vo(r),G.T=n}}e.current=t,Wu=2}}function ta(){if(Wu===2){Wu=0;var e=Gu,t=Ku,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=G.T,G.T=null;var r=yo();vo(2);var i=Y;Y|=4;try{Xr(e,t.alternate,t)}finally{Y=i,vo(r),G.T=n}}Wu=3}}function na(){if(Wu===4||Wu===3){Wu=0,Tc();var e=Gu,t=Ku,n=qu,r=Xu;t.subtreeFlags&10256||t.flags&10256?Wu=5:(Wu=0,Ku=Gu=null,ra(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Uu=null),D(n),t=t.stateNode,Pc&&typeof Pc.onCommitFiberRoot==`function`)try{Pc.onCommitFiberRoot(Nc,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=G.T,i=yo(),vo(2),G.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{G.T=t,vo(i)}}qu&3&&ia(),Ne(e),i=e.pendingLanes,n&261930&&i&42?e===Qu?Zu++:(Zu=0,Qu=e):Zu=0,ho&&zs(),Pe(0,!1)}}function ra(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,je(t)))}function ia(){return ea(),ta(),na(),aa()}function aa(){if(Wu!==5)return!1;var e=Gu,t=Ju;Ju=0;var n=D(qu),i=32>n?32:n;n=G.T;var a=yo();try{vo(i),G.T=null,i=Yu,Yu=null;var o=Gu,s=qu;if(Wu=0,Ku=Gu=null,qu=0,Y&6)throw Error(r(331));var c=Y;if(Y|=4,xi(o.current),hi(o,o.current,s,i),Y=c,Pe(0,!1),Pc&&typeof Pc.onPostCommitFiberRoot==`function`)try{Pc.onPostCommitFiberRoot(Nc,o)}catch{}return!0}finally{vo(a),G.T=n,ra(e,t)}}function oa(e,t,n){t=ie(n,t),t=Un(e.stateNode,t,2),e=ct(e,t,2),e!==null&&(x(e,2),Ne(e))}function H(e,t,n){if(e.tag===3)oa(e,e,n);else for(;t!==null;){if(t.tag===3){oa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Uu===null||!Uu.has(r))){e=ie(n,e),n=Wn(2),r=ct(t,n,2),r!==null&&(Gn(n,r,t,e),x(r,2),Ne(r));break}}t=t.return}}function sa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ou=!0,i.add(n),e=ca.bind(null,e,t,n),t.then(e,e))}function ca(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,wu===e&&(Z&n)===n&&(Au===4||Au===3&&(Z&62914560)===Z&&300>Ec()-zu?!(Y&2)&&Ri(e,0):Nu|=n,Fu===Z&&(Fu=0)),Ne(e)}function la(e,t){t===0&&(t=y()),e=nt(e,t),e!==null&&(x(e,t),Ne(e))}function ua(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),la(e,n)}function da(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),la(e,n)}function fa(e,t){return Sc(e,t)}function pa(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ma(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,n){var r=e.alternate;return r===null?(r=t(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function ga(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _a(e,n,i,a,o,s){var c=0;if(a=e,typeof e==`function`)ma(e)&&(c=1);else if(typeof e==`string`)c=qs&&sc?Js(e,i,Zc.current)?26:dc(e)?27:5:qs?Js(e,i,Zc.current)?26:5:sc&&dc(e)?27:5;else a:switch(e){case Wa:return e=t(31,i,n,o),e.elementType=Wa,e.lanes=s,e;case Fa:return va(i.children,o,s,n);case Ia:c=8,o|=24;break;case La:return e=t(12,i,n,o|2),e.elementType=La,e.lanes=s,e;case Va:return e=t(13,i,n,o),e.elementType=Va,e.lanes=s,e;case Ha:return e=t(19,i,n,o),e.elementType=Ha,e.lanes=s,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case za:c=10;break a;case Ra:c=9;break a;case Ba:c=11;break a;case Ua:c=14;break a;case W:c=16,a=null;break a}c=29,i=Error(r(130,e===null?`null`:typeof e,``)),a=null}return n=t(c,i,n,o),n.elementType=e,n.type=a,n.lanes=s,n}function va(e,n,r,i){return e=t(7,e,i,n),e.lanes=r,e}function ya(e,n,r){return e=t(6,e,null,n),e.lanes=r,e}function ba(e){var n=t(18,null,null,0);return n.stateNode=e,n}function xa(e,n,r){return n=t(4,e.children===null?[]:e.children,e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Sa(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=uo,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=b(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=b(0),this.hiddenUpdates=b(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Ca(e,n,r,i,a,o,s,c,l,u,d,f){return e=new Sa(e,n,r,s,l,u,d,f,c),n=1,!0===o&&(n|=24),o=t(3,null,null,n),e.current=o,o.stateNode=e,n=Ae(),n.refCount++,e.pooledCache=n,n.refCount++,o.memoizedState={element:i,isDehydrated:r,cache:n},at(o),e}function wa(e){return e?(e=hc,e):hc}function Ta(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=o(t),e=e===null?null:s(e),e===null?null:Qa(e.stateNode)}function Ea(e,t,n,r,i,a){i=wa(i),r.context===null?r.context=i:r.pendingContext=i,r=st(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ct(e,r,t),n!==null&&(ji(n,e,t),lt(n,e,t))}function Da(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Oa(e,t){Da(e,t),(e=e.alternate)&&Da(e,t)}var U={},ka=j(),Aa=pi(),ja=Object.assign,Ma=Symbol.for(`react.element`),Na=Symbol.for(`react.transitional.element`),Pa=Symbol.for(`react.portal`),Fa=Symbol.for(`react.fragment`),Ia=Symbol.for(`react.strict_mode`),La=Symbol.for(`react.profiler`),Ra=Symbol.for(`react.consumer`),za=Symbol.for(`react.context`),Ba=Symbol.for(`react.forward_ref`),Va=Symbol.for(`react.suspense`),Ha=Symbol.for(`react.suspense_list`),Ua=Symbol.for(`react.memo`),W=Symbol.for(`react.lazy`),Wa=Symbol.for(`react.activity`),Ga=Symbol.for(`react.memo_cache_sentinel`),Ka=Symbol.iterator,qa=Symbol.for(`react.client.reference`),Ja=Array.isArray,G=ka.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ya=e.rendererVersion,Xa=e.rendererPackageName,Za=e.extraDevToolsConfig,Qa=e.getPublicInstance,$a=e.getRootHostContext,eo=e.getChildHostContext,to=e.prepareForCommit,no=e.resetAfterCommit,ro=e.createInstance;e.cloneMutableInstance;var io=e.appendInitialChild,ao=e.finalizeInitialChildren,oo=e.shouldSetTextContent,so=e.createTextInstance;e.cloneMutableTextInstance;var co=e.scheduleTimeout,lo=e.cancelTimeout,uo=e.noTimeout,fo=e.isPrimaryRenderer;e.warnsIfNotActing;var po=e.supportsMutation,mo=e.supportsPersistence,ho=e.supportsHydration,go=e.getInstanceFromNode;e.beforeActiveInstanceBlur;var _o=e.preparePortalMount;e.prepareScopeUpdate,e.getInstanceFromScope;var vo=e.setCurrentUpdatePriority,yo=e.getCurrentUpdatePriority,bo=e.resolveUpdatePriority;e.trackSchedulerEvent,e.resolveEventType,e.resolveEventTimeStamp;var xo=e.shouldAttemptEagerTransition,So=e.detachDeletedInstance;e.requestPostPaintCallback;var Co=e.maySuspendCommit,wo=e.maySuspendCommitOnUpdate,To=e.maySuspendCommitInSyncRender,Eo=e.preloadInstance,Do=e.startSuspendingCommit,Oo=e.suspendInstance;e.suspendOnActiveViewTransition;var ko=e.waitForCommitToBeReady;e.getSuspendedCommitReason;var Ao=e.NotPendingTransition,jo=e.HostTransitionContext,Mo=e.resetFormInstance;e.bindToConsole;var No=e.supportsMicrotasks,Po=e.scheduleMicrotask,Fo=e.supportsTestSelectors,Io=e.findFiberRoot,Lo=e.getBoundingRect,Ro=e.getTextContent,zo=e.isHiddenSubtree,Bo=e.matchAccessibilityRole,Vo=e.setFocusIfFocusable,Ho=e.setupIntersectionObserver,Uo=e.appendChild,Wo=e.appendChildToContainer,Go=e.commitTextUpdate,Ko=e.commitMount,qo=e.commitUpdate,Jo=e.insertBefore,Yo=e.insertInContainerBefore,Xo=e.removeChild,Zo=e.removeChildFromContainer,Qo=e.resetTextContent,$o=e.hideInstance,es=e.hideTextInstance,ts=e.unhideInstance,ns=e.unhideTextInstance;e.cancelViewTransitionName,e.cancelRootViewTransitionName,e.restoreRootViewTransitionName,e.cloneRootViewTransitionContainer,e.removeRootViewTransitionClone,e.measureClonedInstance,e.hasInstanceChanged,e.hasInstanceAffectedParent,e.startViewTransition,e.startGestureTransition,e.stopViewTransition,e.getCurrentGestureOffset,e.createViewTransitionInstance;var rs=e.clearContainer;e.createFragmentInstance,e.updateFragmentInstanceFiber,e.commitNewChildToFragmentInstance,e.deleteChildFromFragmentInstance;var is=e.cloneInstance,as=e.createContainerChildSet,os=e.appendChildToContainerChildSet,ss=e.finalizeContainerChildren,cs=e.replaceContainerChildren,ls=e.cloneHiddenInstance,us=e.cloneHiddenTextInstance,ds=e.isSuspenseInstancePending,fs=e.isSuspenseInstanceFallback,ps=e.getSuspenseInstanceFallbackErrorDetails,ms=e.registerSuspenseInstanceRetry,hs=e.canHydrateFormStateMarker,gs=e.isFormStateMarkerMatching,_s=e.getNextHydratableSibling,vs=e.getNextHydratableSiblingAfterSingleton,ys=e.getFirstHydratableChild,bs=e.getFirstHydratableChildWithinContainer,xs=e.getFirstHydratableChildWithinActivityInstance,Ss=e.getFirstHydratableChildWithinSuspenseInstance,Cs=e.getFirstHydratableChildWithinSingleton,ws=e.canHydrateInstance,Ts=e.canHydrateTextInstance,Es=e.canHydrateActivityInstance,Ds=e.canHydrateSuspenseInstance,Os=e.hydrateInstance,ks=e.hydrateTextInstance,As=e.hydrateActivityInstance,js=e.hydrateSuspenseInstance,Ms=e.getNextHydratableInstanceAfterActivityInstance,Ns=e.getNextHydratableInstanceAfterSuspenseInstance,Ps=e.commitHydratedInstance,Fs=e.commitHydratedContainer,Is=e.commitHydratedActivityInstance,Ls=e.commitHydratedSuspenseInstance,Rs=e.finalizeHydratedChildren,zs=e.flushHydrationEvents;e.clearActivityBoundary;var Bs=e.clearSuspenseBoundary;e.clearActivityBoundaryFromContainer;var Vs=e.clearSuspenseBoundaryFromContainer,Hs=e.hideDehydratedBoundary,Us=e.unhideDehydratedBoundary,Ws=e.shouldDeleteUnhydratedTailInstances;e.diffHydratedPropsForDevWarnings,e.diffHydratedTextForDevWarnings,e.describeHydratableInstanceForDevWarnings;var Gs=e.validateHydratableInstance,Ks=e.validateHydratableTextInstance,qs=e.supportsResources,Js=e.isHostHoistableType,Ys=e.getHoistableRoot,Xs=e.getResource,Zs=e.acquireResource,Qs=e.releaseResource,$s=e.hydrateHoistable,ec=e.mountHoistable,tc=e.unmountHoistable,nc=e.createHoistableInstance,rc=e.prepareToCommitHoistables,ic=e.mayResourceSuspendCommit,ac=e.preloadResource,oc=e.suspendResource,sc=e.supportsSingletons,cc=e.resolveSingletonInstance,lc=e.acquireSingletonInstance,uc=e.releaseSingletonInstance,dc=e.isHostSingletonType,fc=e.isSingletonScope,pc=[],mc=-1,hc={},gc=Math.clz32?Math.clz32:m,_c=Math.log,vc=Math.LN2,yc=256,bc=262144,xc=4194304,Sc=Aa.unstable_scheduleCallback,Cc=Aa.unstable_cancelCallback,wc=Aa.unstable_shouldYield,Tc=Aa.unstable_requestPaint,Ec=Aa.unstable_now,Dc=Aa.unstable_ImmediatePriority,Oc=Aa.unstable_UserBlockingPriority,kc=Aa.unstable_NormalPriority,Ac=Aa.unstable_IdlePriority,jc=Aa.log,Mc=Aa.unstable_setDisableYieldValue,Nc=null,Pc=null,Fc=typeof Object.is==`function`?Object.is:ee,Ic=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&&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)},Lc=Object.prototype.hasOwnProperty,Rc,zc,Bc=!1,Vc=new WeakMap,Hc=[],Uc=0,Wc=null,Gc=0,Kc=[],qc=0,Jc=null,Yc=1,Xc=``,Zc=d(null),Qc=d(null),$c=d(null),el=d(null),tl=null,nl=null,K=!1,rl=null,il=!1,al=Error(r(519)),ol=d(null),sl=null,cl=null,ll=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ul=Aa.unstable_scheduleCallback,dl=Aa.unstable_NormalPriority,fl={$$typeof:za,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},pl=null,ml=null,hl=!1,gl=!1,_l=!1,vl=0,yl=null,bl=0,xl=0,Sl=null,Cl=G.S;G.S=function(e,t){Bu=Ec(),typeof t==`object`&&t&&typeof t.then==`function`&&Be(e,t),Cl!==null&&Cl(e,t)};var wl=d(null),Tl=Error(r(460)),El=Error(r(474)),Dl=Error(r(542)),Ol={then:function(){}},kl=null,Al=null,jl=0,Ml=Qe(!0),Nl=Qe(!1),Pl=[],Fl=0,Il=0,Ll=!1,Rl=!1,zl=d(null),Bl=d(0),Vl=d(null),Hl=null,Ul=d(0),Wl=0,q=null,Gl=null,Kl=null,ql=!1,Jl=!1,Yl=!1,Xl=0,Zl=0,Ql=null,$l=0,eu={readContext:De,use:It,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};eu.useEffectEvent=wt;var tu={readContext:De,use:It,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:fn,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),un(4194308,4,vn.bind(null,t,e),n)},useLayoutEffect:function(e,t){return un(4194308,4,e,t)},useInsertionEffect:function(e,t){un(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var r=e();if(Yl){O(!0);try{e()}finally{O(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Nt();if(n!==void 0){var i=n(t);if(Yl){O(!0);try{n(t)}finally{O(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=jn.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Jt(e);var t=e.queue,n=z.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bn,useDeferredValue:function(e,t){return Cn(Nt(),e,t)},useTransition:function(){var e=Jt(!1);return e=Tn.bind(null,q,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=q,a=Nt();if(K){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),wu===null)throw Error(r(349));Z&127||Ut(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fn(Gt.bind(null,i,o,e),[e]),i.flags|=2048,cn(9,{destroy:void 0},Wt.bind(null,i,o,n,t),null),n},useId:function(){var e=Nt(),t=wu.identifierPrefix;if(K){var n=Xc,r=Yc;n=(r&~(1<<32-gc(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Xl++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=$l++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Dn,useFormState:nn,useActionState:nn,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Nn.bind(null,q,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lt,useCacheRefresh:function(){return Nt().memoizedState=An.bind(null,q)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if(Y&2)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},nu={readContext:De,use:It,useCallback:xn,useContext:De,useEffect:pn,useImperativeHandle:yn,useInsertionEffect:gn,useLayoutEffect:_n,useMemo:Sn,useReducer:zt,useRef:ln,useState:function(){return zt(Rt)},useDebugValue:bn,useDeferredValue:function(e,t){return wn(L(),Gl.memoizedState,e,t)},useTransition:function(){var e=zt(Rt)[0],t=L().memoizedState;return[typeof e==`boolean`?e:Ft(e),t]},useSyncExternalStore:Ht,useId:On,useHostTransitionStatus:Dn,useFormState:rn,useActionState:rn,useOptimistic:function(e,t){return Yt(L(),Gl,e,t)},useMemoCache:Lt,useCacheRefresh:kn};nu.useEffectEvent=hn;var ru={readContext:De,use:It,useCallback:xn,useContext:De,useEffect:pn,useImperativeHandle:yn,useInsertionEffect:gn,useLayoutEffect:_n,useMemo:Sn,useReducer:Vt,useRef:ln,useState:function(){return Vt(Rt)},useDebugValue:bn,useDeferredValue:function(e,t){var n=L();return Gl===null?Cn(n,e,t):wn(n,Gl.memoizedState,e,t)},useTransition:function(){var e=Vt(Rt)[0],t=L().memoizedState;return[typeof e==`boolean`?e:Ft(e),t]},useSyncExternalStore:Ht,useId:On,useHostTransitionStatus:Dn,useFormState:sn,useActionState:sn,useOptimistic:function(e,t){var n=L();return Gl===null?(n.baseState=e,[e,n.queue.dispatch]):Yt(n,Gl,e,t)},useMemoCache:Lt,useCacheRefresh:kn};ru.useEffectEvent=hn;var iu={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ki(),i=st(r);i.payload=t,n!=null&&(i.callback=n),t=ct(e,i,r),t!==null&&(ji(t,e,r),lt(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ki(),i=st(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ct(e,i,r),t!==null&&(ji(t,e,r),lt(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ki(),r=st(n);r.tag=2,t!=null&&(r.callback=t),t=ct(e,r,n),t!==null&&(ji(t,e,n),lt(t,e,n))}},au=Error(r(461)),ou=!1,su={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},cu=!1,lu=!1,uu=!1,du=typeof WeakSet==`function`?WeakSet:Set,fu=null,pu=null,mu=!1,J=null,hu=8192,gu={getCacheForType:function(e){var t=De(fl),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return De(fl).controller.signal}},_u=0,vu=1,yu=2,bu=3,xu=4;if(typeof Symbol==`function`&&Symbol.for){var Su=Symbol.for;_u=Su(`selector.component`),vu=Su(`selector.has_pseudo_class`),yu=Su(`selector.role`),bu=Su(`selector.test_id`),xu=Su(`selector.text`)}var Cu=typeof WeakMap==`function`?WeakMap:Map,Y=0,wu=null,X=null,Z=0,Q=0,Tu=null,Eu=!1,Du=!1,Ou=!1,ku=0,Au=0,ju=0,Mu=0,Nu=0,Pu=0,Fu=0,Iu=null,Lu=null,Ru=!1,zu=0,Bu=0,Vu=1/0,Hu=null,Uu=null,Wu=0,Gu=null,Ku=null,qu=0,Ju=0,Yu=null,Xu=null,Zu=0,Qu=null;return U.attemptContinuousHydration=function(e){if(e.tag===13||e.tag===31){var t=nt(e,67108864);t!==null&&ji(t,e,67108864),Oa(e,67108864)}},U.attemptHydrationAtCurrentPriority=function(e){if(e.tag===13||e.tag===31){var t=ki();t=E(t);var n=nt(e,t);n!==null&&ji(n,e,t),Oa(e,t)}},U.attemptSynchronousHydration=function(e){switch(e.tag){case 3:if(e=e.stateNode,e.current.memoizedState.isDehydrated){var t=h(e.pendingLanes);if(t!==0){for(e.pendingLanes|=2,e.entangledLanes|=2;t;){var n=1<<31-gc(t);e.entanglements[1]|=n,t&=~n}Ne(e),!(Y&6)&&(Vu=Ec()+500,Pe(0,!1))}}break;case 31:case 13:t=nt(e,2),t!==null&&ji(t,e,2),Ii(),Oa(e,2)}},U.batchedUpdates=function(e,t){return e(t)},U.createComponentSelector=function(e){return{$$typeof:_u,value:e}},U.createContainer=function(e,t,n,r,i,a,o,s,c,l){return Ca(e,t,!1,null,n,r,a,null,o,s,c,l)},U.createHasPseudoClassSelector=function(e){return{$$typeof:vu,value:e}},U.createHydrationContainer=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){return e=Ca(n,r,!0,e,i,a,s,p,c,l,u,d),e.context=wa(null),n=e.current,r=ki(),r=E(r),i=st(r),i.callback=t??null,ct(n,i,r),t=r,e.current.lanes=t,x(e,t),Ne(e),e},U.createPortal=function(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pa,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}},U.createRoleSelector=function(e){return{$$typeof:yu,value:e}},U.createTestNameSelector=function(e){return{$$typeof:bu,value:e}},U.createTextSelector=function(e){return{$$typeof:xu,value:e}},U.defaultOnCaughtError=function(e){console.error(e)},U.defaultOnRecoverableError=function(e){Ic(e)},U.defaultOnUncaughtError=function(e){Ic(e)},U.deferredUpdates=function(e){var t=G.T,n=yo();try{return vo(32),G.T=null,e()}finally{vo(n),G.T=t}},U.discreteUpdates=function(e,t,n,r,i){var a=G.T,o=yo();try{return vo(2),G.T=null,e(t,n,r,i)}finally{vo(o),G.T=a,Y===0&&(Vu=Ec()+500)}},U.findAllNodes=Oi,U.findBoundingRects=function(e,t){if(!Fo)throw Error(r(363));t=Oi(e,t),e=[];for(var n=0;n<t.length;n++)e.push(Lo(t[n]));for(t=e.length-1;0<t;t--){n=e[t];for(var i=n.x,a=i+n.width,o=n.y,s=o+n.height,c=t-1;0<=c;c--)if(t!==c){var l=e[c],u=l.x,d=u+l.width,f=l.y,p=f+l.height;if(i>=u&&o>=f&&a<=d&&s<=p){e.splice(t,1);break}else if(!(i!==u||n.width!==l.width||p<o||f>s)){f>o&&(l.height+=f-o,l.y=o),p<s&&(l.height=s-f),e.splice(t,1);break}else if(!(o!==f||n.height!==l.height||d<i||u>a)){u>i&&(l.width+=u-i,l.x=i),d<a&&(l.width=a-u),e.splice(t,1);break}}}return e},U.findHostInstance=Ta,U.findHostInstanceWithNoPortals=function(e){return e=o(e),e=e===null?null:c(e),e===null?null:Qa(e.stateNode)},U.findHostInstanceWithWarning=function(e){return Ta(e)},U.flushPassiveEffects=ia,U.flushSyncFromReconciler=function(e){var t=Y;Y|=1;var n=G.T,r=yo();try{if(vo(2),G.T=null,e)return e()}finally{vo(r),G.T=n,Y=t,!(Y&6)&&Pe(0,!1)}},U.flushSyncWork=Ii,U.focusWithin=function(e,t){if(!Fo)throw Error(r(363));for(e=wi(e),t=Di(e,t),t=Array.from(t),e=0;e<t.length;){var n=t[e++],i=n.tag;if(!zo(n)){if((i===5||i===26||i===27)&&Vo(n.stateNode))return!0;for(n=n.child;n!==null;)t.push(n),n=n.sibling}}return!1},U.getFindAllNodesFailureDescription=function(e,t){if(!Fo)throw Error(r(363));var n=0,i=[];e=[wi(e),0];for(var a=0;a<e.length;){var o=e[a++],s=o.tag,c=e[a++],l=t[c];if((s!==5&&s!==26&&s!==27||!zo(o))&&(Ti(o,l)&&(i.push(Ei(l)),c++,c>n&&(n=c)),c<t.length))for(o=o.child;o!==null;)e.push(o,c),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Ei(t[n]));return`findAllNodes was able to match part of the selector:
|
|
14
|
+
`+(i.join(` > `)+`
|
|
15
|
+
|
|
16
|
+
No matching component was found for:
|
|
17
|
+
`)+e.join(` > `)}return null},U.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 27:case 5:return Qa(e.child.stateNode);default:return e.child.stateNode}},U.injectIntoDevTools=function(){var e={bundleType:0,version:Ya,rendererPackageName:Xa,currentDispatcherRef:G,reconcilerVersion:`19.2.0`};if(Za!==null&&(e.rendererConfig=Za),typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{Nc=t.inject(e),Pc=t}catch{}e=!!t.checkDCE}}return e},U.isAlreadyRendering=function(){return(Y&6)!=0},U.observeVisibleRects=function(e,t,n,i){if(!Fo)throw Error(r(363));e=Oi(e,t);var a=Ho(e,n,i).disconnect;return{disconnect:function(){a()}}},U.shouldError=function(){return null},U.shouldSuspend=function(){return!1},U.startHostTransition=function(e,t,i,a){if(e.tag!==5)throw Error(r(476));var o=En(e).queue;Tn(e,o,t,Ao,i===null?n:function(){var t=En(e);return t.next===null&&(t=e.alternate.memoizedState),Mn(e,t.next.queue,{},ki()),i(a)})},U.updateContainer=function(e,t,n,r){var i=t.current,a=ki();return Ea(i,a,e,t,n,r),a},U.updateContainerSync=function(e,t,n,r){return Ea(t.current,2,e,t,n,r),2},U},t.exports.default=t.exports,Object.defineProperty(t.exports,`__esModule`,{value:!0})})),hi=r(((e,t)=>{t.exports=mi()})),V,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti=t((()=>{V={All:`all`,Horizontal:`horizontal`,Vertical:`vertical`,Left:`left`,Right:`right`,Top:`top`,Bottom:`bottom`,Start:`start`,End:`end`},gi={All:`all`,Column:`column`,Row:`row`},_i={Flex:`flex`,None:`none`},vi={Row:`row`,RowReverse:`row-reverse`,Column:`column`,ColumnReverse:`column-reverse`},yi={Auto:`auto`,Stretch:`stretch`,FlexStart:`flex-start`,Center:`center`,FlexEnd:`flex-end`},bi={FlexStart:`flex-start`,Center:`center`,FlexEnd:`flex-end`,SpaceBetween:`space-between`,SpaceAround:`space-around`,SpaceEvenly:`space-evenly`},xi={NoWrap:`nowrap`,Wrap:`wrap`,WrapReverse:`wrap-reverse`},Si={Relative:`relative`,Absolute:`absolute`},Ci={Visible:`visible`,Hidden:`hidden`,Scroll:`scroll`},wi={Undefined:`undefined`,Exactly:`exactly`,AtMost:`at-most`}}));function Ei(){return new ki(Kt.Node.create())}var Di,Oi,ki,Ai=t((()=>{qt(),Ti(),c(),Di={all:N.All,horizontal:N.Horizontal,vertical:N.Vertical,left:N.Left,right:N.Right,top:N.Top,bottom:N.Bottom,start:N.Start,end:N.End},Oi={all:Be.All,column:Be.Column,row:Be.Row},ki=class e{constructor(e){l(this,`yoga`,void 0),this.yoga=e}insertChild(e,t){this.yoga.insertChild(e.yoga,t)}removeChild(e){this.yoga.removeChild(e.yoga)}getChildCount(){return this.yoga.getChildCount()}getParent(){let t=this.yoga.getParent();return t?new e(t):null}calculateLayout(e,t){this.yoga.calculateLayout(e,void 0,Ie.LTR)}setMeasureFunc(e){this.yoga.setMeasureFunc((t,n)=>e(t,n===P.Exactly?wi.Exactly:n===P.AtMost?wi.AtMost:wi.Undefined))}unsetMeasureFunc(){this.yoga.unsetMeasureFunc()}markDirty(){this.yoga.markDirty()}getComputedLeft(){return this.yoga.getComputedLeft()}getComputedTop(){return this.yoga.getComputedTop()}getComputedWidth(){return this.yoga.getComputedWidth()}getComputedHeight(){return this.yoga.getComputedHeight()}getComputedBorder(e){return this.yoga.getComputedBorder(Di[e])}getComputedPadding(e){return this.yoga.getComputedPadding(Di[e])}setWidth(e){this.yoga.setWidth(e)}setWidthPercent(e){this.yoga.setWidthPercent(e)}setWidthAuto(){this.yoga.setWidthAuto()}setHeight(e){this.yoga.setHeight(e)}setHeightPercent(e){this.yoga.setHeightPercent(e)}setHeightAuto(){this.yoga.setHeightAuto()}setMinWidth(e){this.yoga.setMinWidth(e)}setMinWidthPercent(e){this.yoga.setMinWidthPercent(e)}setMinHeight(e){this.yoga.setMinHeight(e)}setMinHeightPercent(e){this.yoga.setMinHeightPercent(e)}setMaxWidth(e){this.yoga.setMaxWidth(e)}setMaxWidthPercent(e){this.yoga.setMaxWidthPercent(e)}setMaxHeight(e){this.yoga.setMaxHeight(e)}setMaxHeightPercent(e){this.yoga.setMaxHeightPercent(e)}setFlexDirection(e){let t={row:ze.Row,"row-reverse":ze.RowReverse,column:ze.Column,"column-reverse":ze.ColumnReverse};this.yoga.setFlexDirection(t[e])}setFlexGrow(e){this.yoga.setFlexGrow(e)}setFlexShrink(e){this.yoga.setFlexShrink(e)}setFlexBasis(e){this.yoga.setFlexBasis(e)}setFlexBasisPercent(e){this.yoga.setFlexBasisPercent(e)}setFlexWrap(e){let t={nowrap:Ge.NoWrap,wrap:Ge.Wrap,"wrap-reverse":Ge.WrapReverse};this.yoga.setFlexWrap(t[e])}setAlignItems(e){let t={auto:M.Auto,stretch:M.Stretch,"flex-start":M.FlexStart,center:M.Center,"flex-end":M.FlexEnd};this.yoga.setAlignItems(t[e])}setAlignSelf(e){let t={auto:M.Auto,stretch:M.Stretch,"flex-start":M.FlexStart,center:M.Center,"flex-end":M.FlexEnd};this.yoga.setAlignSelf(t[e])}setJustifyContent(e){let t={"flex-start":Ve.FlexStart,center:Ve.Center,"flex-end":Ve.FlexEnd,"space-between":Ve.SpaceBetween,"space-around":Ve.SpaceAround,"space-evenly":Ve.SpaceEvenly};this.yoga.setJustifyContent(t[e])}setDisplay(e){this.yoga.setDisplay(e===`flex`?Le.Flex:Le.None)}getDisplay(){return this.yoga.getDisplay()===Le.None?_i.None:_i.Flex}setPositionType(e){this.yoga.setPositionType(e===`absolute`?Ue.Absolute:Ue.Relative)}setPosition(e,t){this.yoga.setPosition(Di[e],t)}setPositionPercent(e,t){this.yoga.setPositionPercent(Di[e],t)}setOverflow(e){let t={visible:He.Visible,hidden:He.Hidden,scroll:He.Scroll};this.yoga.setOverflow(t[e])}setMargin(e,t){this.yoga.setMargin(Di[e],t)}setPadding(e,t){this.yoga.setPadding(Di[e],t)}setBorder(e,t){this.yoga.setBorder(Di[e],t)}setGap(e,t){this.yoga.setGap(Oi[e],t)}free(){this.yoga.free()}freeRecursive(){this.yoga.freeRecursive()}}}));function ji(){return Ei()}var Mi=t((()=>{Ai()})),Ni,Pi=t((()=>{Ni=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g})),Fi,Ii,Li,Ri,zi,Bi=t((()=>{Fi=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Ii=[12288,12288,65281,65376,65504,65510],Li=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Ri=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],zi=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]})),Vi,Hi=t((()=>{Vi=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1}}));function Ui(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(Xi>=i&&Xi<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}var Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na=t((()=>{Bi(),Hi(),Wi=Fi[0],Gi=Fi.at(-1),Ki=Ii[0],qi=Ii.at(-1),Li[0],Li.at(-1),Ri[0],Ri.at(-1),Ji=zi[0],Yi=zi.at(-1),Xi=19968,[Zi,Qi]=Ui(zi),$i=e=>e<Wi||e>Gi?!1:Vi(Fi,e),ea=e=>e<Ki||e>qi?!1:Vi(Ii,e),ta=e=>e>=Zi&&e<=Qi?!0:e<Ji||e>Yi?!1:Vi(zi,e)}));function ra(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function ia(e,{ambiguousAsWide:t=!1}={}){return ra(e),ea(e)||ta(e)||t&&$i(e)?2:1}var aa=t((()=>{na()}));function oa({onlyFirst:e=!1}={}){return RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,e?void 0:`g`)}var H=t((()=>{}));function sa(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes(`\x1B`)&&!e.includes(``)?e:e.replace(ca,``)}var ca,la=t((()=>{H(),ca=oa()}));function ua(){return da||(da=new Intl.Segmenter(void 0,{granularity:`grapheme`})),da}var da,fa=t((()=>{da=null}));function pa(e){if(typeof e!=`string`||e.length===0)return 0;let t=!0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=127||r===27){t=!1;break}}if(t){let t=0;for(let n=0;n<e.length;n++)e.charCodeAt(n)>31&&t++;return t}if(e.includes(`\x1B`)&&(e=sa(e),e.length===0))return 0;if(!ma(e)){let t=0;for(let n of e){let e=n.codePointAt(0);ga(e)||(t+=ia(e,{ambiguousAsWide:!1}))}return t}let n=0;for(let{segment:t}of ua().segment(e)){if(_a.lastIndex=0,_a.test(t)){n+=ha(t);continue}for(let e of t){let t=e.codePointAt(0);if(!ga(t)){n+=ia(t,{ambiguousAsWide:!1});break}}}return n}function ma(e){for(let t of e){let e=t.codePointAt(0);if(e>=127744&&e<=129791||e>=9728&&e<=10175||e>=127462&&e<=127487||e>=65024&&e<=65039||e===8205)return!0}return!1}function ha(e){let t=e.codePointAt(0);if(t>=127462&&t<=127487){let t=0;for(let n of e)t++;return t===1?1:2}return e.length===2&&e.codePointAt(1)===65039&&(t>=48&&t<=57||t===35||t===42)?1:2}function ga(e){if(e>=32&&e<127)return!1;if(e>=160&&e<768)return e===173;if(e<=31||e>=127&&e<=159||e>=8203&&e<=8205||e===65279||e>=8288&&e<=8292||e>=65024&&e<=65039||e>=917760&&e<=917999||e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071)return!0;if(e>=2304&&e<=3407){let t=e&127;if(t<=3||t>=58&&t<=79||t>=81&&t<=87||t>=98&&t<=99)return!0}return e===3633||e>=3636&&e<=3642||e>=3655&&e<=3662||e===3761||e>=3764&&e<=3772||e>=3784&&e<=3789||e>=1536&&e<=1541||e===1757||e===1807||e===2274||e>=55296&&e<=57343||e>=917504&&e<=917631}var _a,va,ya,ba,xa=t((()=>{Pi(),aa(),la(),fa(),_a=Ni(),va=typeof Bun<`u`&&typeof Bun.stringWidth==`function`?Bun.stringWidth:null,ya={ambiguousIsNarrow:!0},ba=va?e=>va(e,ya):pa}));function Sa(e){let t=Ca.get(e);if(t!==void 0)return t;let n=ba(e);return Ca.size>=wa&&Ca.clear(),Ca.set(e,n),n}var Ca,wa,Ta=t((()=>{xa(),Ca=new Map,wa=4096}));function Ea(e,t){if(e.length===0)return{width:0,height:0};let n=t<=0||!Number.isFinite(t),r=0,i=0,a=0;for(;a<=e.length;){let o=e.indexOf(`
|
|
18
|
+
`,a),s=Sa(o===-1?e.substring(a):e.substring(a,o));if(i=Math.max(i,s),n?r++:r+=s===0?1:Math.ceil(s/t),o===-1)break;a=o+1}return{width:i,height:r}}var Da=t((()=>{Ta()}));function Oa(e,t,n){let r=Aa.get(e);r?r.push(t):Aa.set(e,[t]),n&&(ja=!0)}function U(){let e=ja;return ja=!1,e}var ka,Aa,ja,Ma=t((()=>{ka=new WeakMap,Aa=new WeakMap,ja=!1}));function Na(e,t={},n,r=[]){let i=e.textStyles?{...t,...e.textStyles}:t;for(let t of e.childNodes)if(t!==void 0){if(t.nodeName===`#text`)t.nodeValue.length>0&&r.push({text:t.nodeValue,styles:i,hyperlink:n});else if(t.nodeName===`ink-text`||t.nodeName===`ink-virtual-text`)Na(t,i,n,r);else if(t.nodeName===`ink-link`){let e=t.attributes.href;Na(t,i,e||n,r)}}return r}function Pa(e){let t=``;for(let n of e.childNodes)n!==void 0&&(n.nodeName===`#text`?t+=n.nodeValue:(n.nodeName===`ink-text`||n.nodeName===`ink-virtual-text`||n.nodeName===`ink-link`)&&(t+=Pa(n)));return t}var Fa=t((()=>{}));function Ia(e,t=La){if(!e.includes(` `))return e;let n=Ar(),r=n.feed(e);r.push(...n.flush());let i=``,a=0;for(let e of r)if(e.type===`sequence`)i+=e.value;else{let n=e.value.split(/(\t|\n)/);for(let e of n)if(e===` `){let e=t-a%t;i+=` `.repeat(e),a+=e}else e===`
|
|
19
|
+
`?(i+=e,a=0):(i+=e,a+=ba(e))}return i}var La,Ra=t((()=>{xa(),Mr(),La=8}));function za(){let e=new Map;for(let[t,n]of Object.entries(W)){for(let[t,r]of Object.entries(n))W[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=W[t],e.set(r[0],r[1]);Object.defineProperty(W,t,{value:n,enumerable:!1})}return Object.defineProperty(W,`codes`,{value:e,enumerable:!1}),W.color.close=`\x1B[39m`,W.bgColor.close=`\x1B[49m`,W.color.ansi=Va(),W.color.ansi256=Ha(),W.color.ansi16m=Ua(),W.bgColor.ansi=Va(Ba),W.bgColor.ansi256=Ha(Ba),W.bgColor.ansi16m=Ua(Ba),Object.defineProperties(W,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>W.rgbToAnsi256(...W.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>W.ansi256ToAnsi(W.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>W.ansi256ToAnsi(W.hexToAnsi256(e)),enumerable:!1}}),W}var Ba,Va,Ha,Ua,W,Wa,Ga,Ka,qa=t((()=>{Ba=10,Va=(e=0)=>t=>`\u001B[${t+e}m`,Ha=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,Ua=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,W={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Object.keys(W.modifier),Wa=Object.keys(W.color),Ga=Object.keys(W.bgColor),[...Wa,...Ga],Ka=za()})),Ja,G,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo=t((()=>{Ja=`\x07`,G=`\x1B`,Ya=`\\`,Xa=`[`,Za=`]`,Qa=``,$a=Ja.charCodeAt(0),eo=G.charCodeAt(0),to=Ya.charCodeAt(0),no=Xa.charCodeAt(0),ro=Za.charCodeAt(0),io=Qa.charCodeAt(0),ao=new Set([eo,155]),oo=`${G}${Za}8;`,so=oo.split(``).map(e=>e.charCodeAt(0)),co=`${G}${Za}8;;${Ja}`,lo=`${G}${Za}8;;${G}${Ya}`,uo=`${G}${Za}8;;${Qa}`}));function po(e){if(go.has(e))return e;if(_o.has(e))return _o.get(e);if(e.startsWith(oo))return e.endsWith(`\x1B\\`)?lo:e.endsWith(``)?uo:co;if(e=e.slice(2),e.startsWith(`38`))return Ka.color.close;if(e.startsWith(`48`))return Ka.bgColor.close;let t=Ka.codes.get(parseInt(e,10));return t?Ka.color.ansi(t):Ka.reset.open}function mo(e){return[...new Set(e.map(e=>e.code))].join(``)}function ho(e){return e.code===Ka.bold.open||e.code===Ka.dim.open}var go,_o,vo=t((()=>{qa(),fo(),go=new Set,_o=new Map;for(let[e,t]of Ka.codes)go.add(Ka.color.ansi(t)),_o.set(Ka.color.ansi(e),Ka.color.ansi(t))}));function yo(e){return bo([],e)}function bo(e,t){let n=[...e];for(let e of t)e.code===Ka.reset.open?n=[]:go.has(e.code)?n=n.filter(t=>t.endCode!==e.code):ho(e)?n.find(t=>t.code===e.code&&t.endCode===e.endCode)||n.push(e):(n=n.filter(t=>t.endCode!==e.endCode),n.push(e));return n}var xo=t((()=>{qa(),vo()}));function So(e){return yo(e).reverse().map(e=>({...e,code:e.endCode}))}var Co=t((()=>{xo()}));function wo(e,t){let n=new Set(t.map(e=>e.endCode)),r=new Set(t.map(e=>e.code)),i=new Set(e.map(e=>e.code));return[...So(e.filter(e=>ho(e)?!r.has(e.code):!n.has(e.endCode))),...t.filter(e=>!i.has(e.code))]}var To=t((()=>{vo(),Co()}));function Eo(e){let t=[],n=[];for(let r of e)r.type===`ansi`?t=bo(t,[r]):r.type===`char`&&n.push({...r,styles:[...t]});return n}var Do=t((()=>{vo(),To(),xo()}));function Oo(e){return Number.isInteger(e)?ea(e)||ta(e):!1}var ko=t((()=>{aa()}));function Ao(e,t){return!!(Oo(t)||e.includes(`️`)||t>=127462&&t<=127487)}function jo(e,t){e=e.slice(t);for(let t=1;t<so.length;t++)if(e.charCodeAt(t)!==so[t])return;let n=e.indexOf(`;`,oo.length);if(n===-1)return;let r=No(e,n+1);if(r!==-1)return e.slice(0,r+1)}function Mo(e,t){e=e.slice(t);let n=No(e,2);if(n!==-1)return e.slice(0,n+1)}function No(e,t){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===$a||t===io)return n;if(t===eo&&n+1<e.length&&e.charCodeAt(n+1)===to)return n+1}return-1}function Po(e){for(let t=2;t<e.length;t++){let n=e.charCodeAt(t);if(n===109)return t;if(n!==59&&!(n>=48&&n<=57))break}return-1}function Fo(e,t){e=e.slice(t);let n=Po(e);if(n!==-1)return e.slice(0,n+1)}function Io(e){if(!e.includes(`;`))return[e];let t=e.slice(2,-1).split(`;`),n=[];for(let e=0;e<t.length;e++){let r=t[e];if(r===`38`||r===`48`){if(e+2<t.length&&t[e+1]===`5`){n.push(t.slice(e,e+3).join(`;`)),e+=2;continue}else if(e+4<t.length&&t[e+1]===`2`){n.push(t.slice(e,e+5).join(`;`)),e+=4;continue}}n.push(r)}return n.map(e=>`\x1b[${e}m`)}function Lo(e,t=1/0){let n=[],r=0,i=0;for(let{segment:a,index:o}of Ro.segment(e)){if(o<i)continue;let s=a.codePointAt(0);if(ao.has(s)){let t,r=e.codePointAt(o+1);if(r===ro)t=jo(e,o),t?n.push({type:`ansi`,code:t,endCode:po(t)}):(t=Mo(e,o),t&&n.push({type:`control`,code:t}));else if(r===no&&(t=Fo(e,o),t)){let e=Io(t);for(let t of e)n.push({type:`ansi`,code:t,endCode:po(t)})}if(t){i=o+t.length;continue}}let c=Ao(a,s);if(n.push({type:`char`,value:a,fullWidth:c}),r+=c?2:1,r>=t)break}return n}var Ro,zo=t((()=>{ko(),vo(),fo(),Ro=new Intl.Segmenter(void 0,{granularity:`grapheme`})})),Bo=t((()=>{vo(),To(),xo(),Do(),zo(),Co()}));function Vo(e){return e.code===e.endCode}function Ho(e){return e.filter(e=>!Vo(e))}function Uo(e,t,n){let r=Lo(e),i=[],a=0,o=``,s=!1;for(let e of r){let r=e.type===`ansi`?0:e.type===`char`?e.fullWidth?2:ba(e.value):0;if(n!==void 0&&a>=n&&(e.type===`ansi`||r>0||!s))break;if(e.type===`ansi`)i.push(e),s&&(o+=e.code);else{if(!s&&a>=t){if(t>0&&r===0)continue;s=!0,i=Ho(yo(i)),o=mo(i)}s&&(o+=e.value),a+=r}}let c=Ho(yo(i));return o+=mo(So(c)),o}var Wo=t((()=>{Bo(),xa()}));function Go(e){if(e.length>50)return!1;if(es.test(e))return!0;if(e.includes(``)){let t=e.match(ts);return t!==null&&t.length>=2}return!1}function Ko(e){return e.replace(Qo,``)}function qo(e){return Zo.test(e)}function Jo(e,t){let n=0;if(e.length>1)for(let r of e.slice(1))r>=``&&r<=``&&(n+=ia(r.codePointAt(0),t));return n}function Yo(e,t={}){if(typeof e!=`string`||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t,i=e;if(!r&&(i.includes(`\x1B`)||i.includes(``))&&(i=sa(i)),i.length===0)return 0;if(/^[\u0020-\u007E]*$/.test(i))return i.length;let a=0,o={ambiguousAsWide:!n};for(let{segment:e}of Xo.segment(i)){if(qo(e))continue;if($o.test(e)||Go(e)){a+=2;continue}let t=Ko(e).codePointAt(0);a+=ia(t,o),a+=Jo(e,o)}return a}var Xo,Zo,Qo,$o,es,ts,ns=t((()=>{la(),aa(),Xo=new Intl.Segmenter,Zo=RegExp(`^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$`,`v`),Qo=RegExp(`^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+`,`v`),$o=RegExp(`^\\p{RGI_Emoji}$`,`v`),es=/^[\d#*]\u20E3$/,ts=/\p{Extended_Pictographic}/gu}));function rs(e,t,n){return String(e).normalize().replaceAll(`\r
|
|
20
|
+
`,`
|
|
21
|
+
`).split(`
|
|
22
|
+
`).map(e=>Gs(Ws(e),t,n)).join(`
|
|
23
|
+
`)}var is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks=t((()=>{ns(),la(),qa(),is=`\x1B`,as=``,os=new Set([is,as]),ss=`\x07`,cs=`[`,ls=`]`,us=`m`,ds=0,fs=39,ps=49,ms=59,hs=38,gs=48,_s=58,vs=5,ys=2,bs=`${ls}8;;`,xs=RegExp(`^\\u001B(?:\\${cs}(?<sgr>[0-9;]*)${us}|${bs}(?<uri>[^\\u0007\\u001B]*)(?:\\u0007|\\u001B\\\\))`),Ss=RegExp(`^\\u009B(?<sgr>[0-9;]*)${us}`),Cs=new Set(Ka.codes.values()),Cs.delete(ds),ws=new Intl.Segmenter,Ts=e=>Array.from(ws.segment(e),({segment:e})=>e),Es=8,Ds=e=>`${is}${cs}${e}${us}`,Os=e=>`${is}${bs}${e}${ss}`,ks=e=>{let t=e.split(`;`).map(e=>e===``?ds:Number.parseInt(e,10)),n=[];for(let e=0;e<t.length;e++){let r=t[e];if(Number.isFinite(r)){if(r===hs||r===gs||r===_s){if(e+1>=t.length)break;let i=t[e+1];if(i===vs&&Number.isFinite(t[e+2])){n.push([r,i,t[e+2]]),e+=2;continue}let a=t[e+2],o=t[e+3],s=t[e+4];if(i===ys&&Number.isFinite(a)&&Number.isFinite(o)&&Number.isFinite(s)){n.push([r,i,a,o,s]),e+=4;continue}break}n.push([r])}}return n},As=(e,t)=>{let n=e.findIndex(e=>e.family===t);n!==-1&&e.splice(n,1)},js=(e,t)=>{As(e,t.family),e.push(t)},Ms=(e,t)=>{for(let n=e.length-1;n>=0;n--){let r=e[n];r.family.startsWith(`modifier-`)&&r.close===t&&e.splice(n,1)}},Ns=(e,t)=>{if(e>=30&&e<=37||e>=90&&e<=97||e===hs&&t.length>1)return{family:`foreground`,open:t.join(`;`),close:fs};if(e>=40&&e<=47||e>=100&&e<=107||e===gs&&t.length>1)return{family:`background`,open:t.join(`;`),close:ps};if(e===_s&&t.length>1)return{family:`underlineColor`,open:t.join(`;`),close:ms}},Ps=(e,t)=>e===ds?(t.length=0,!0):e===fs?(As(t,`foreground`),!0):e===ps?(As(t,`background`),!0):e===ms?(As(t,`underlineColor`),!0):Cs.has(e)?(Ms(t,e),!0):!1,Fs=(e,t)=>{let[n]=e;if(Ps(n,t))return;let r=Ns(n,e);if(r){js(t,r);return}let i=Ka.codes.get(n);i!==void 0&&i!==ds&&js(t,{family:`modifier-${n}`,open:e.join(`;`),close:i})},Is=(e,t)=>{for(let n of ks(e))Fs(n,t)},Ls=(e,t)=>{for(let n of ks(e)){let[e]=n;Ps(e,t)}},Rs=(e,t)=>{let n=e;for(;n.length>0;){if(n.startsWith(is)&&n[1]!==`\\`){let e=xs.exec(n);if(!e)break;e.groups.sgr!==void 0&&Ls(e.groups.sgr,t),n=n.slice(e[0].length);continue}if(n.startsWith(as)){let e=Ss.exec(n);if(!e||e.groups.sgr===void 0)break;Ls(e.groups.sgr,t),n=n.slice(e[0].length);continue}break}},zs=e=>[...e].reverse().map(e=>Ds(e.close)).join(``),Bs=e=>e.map(e=>Ds(e.open)).join(``),Vs=e=>e.split(` `).map(e=>Yo(e)),Hs=(e,t,n)=>{let r=Ts(t),i=!1,a=!1,o=Yo(sa(e.at(-1)));for(let[t,s]of r.entries()){let c=Yo(s);if(o+c<=n?e[e.length-1]+=s:(e.push(s),o=0),os.has(s)&&!(a&&s===is&&r[t+1]===`\\`)&&(i=!0,a=r.slice(t+1,t+1+bs.length).join(``)===bs),i){a?(s===ss||s===`\\`&&t>0&&r[t-1]===is)&&(i=!1,a=!1):s===us&&(i=!1);continue}o+=c,o===n&&t<r.length-1&&(e.push(``),o=0)}!o&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Us=e=>{let t=e.split(` `),n=t.length;for(;n>0&&!(Yo(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},Ws=e=>{if(!e.includes(` `))return e;let t=e.split(` `),n=0,r=``;for(let[e,i]of t.entries())if(r+=i,n+=Yo(i),e<t.length-1){let e=Es-n%Es;r+=` `.repeat(e),n+=e}return r},Gs=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a=[],o=Vs(e),s=[``];for(let[r,i]of e.split(` `).entries()){n.trim!==!1&&(s[s.length-1]=s.at(-1).trimStart());let e=Yo(s.at(-1));if(r!==0&&(e>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),e=0),(e>0||n.trim===!1)&&(s[s.length-1]+=` `,e++)),n.hard&&n.wordWrap!==!1&&o[r]>t){let n=t-e,a=1+Math.floor((o[r]-n-1)/t);Math.floor((o[r]-1)/t)<a&&s.push(``),Hs(s,i,t);continue}if(e+o[r]>t&&e>0&&o[r]>0){if(n.wordWrap===!1&&e<t){Hs(s,i,t);continue}s.push(``)}if(e+o[r]>t&&n.wordWrap===!1){Hs(s,i,t);continue}s[s.length-1]+=i}n.trim!==!1&&(s=s.map(e=>Us(e)));let c=s.join(`
|
|
24
|
+
`),l=Ts(c),u=0;for(let[e,t]of l.entries()){if(r+=t,t===is&&l[e+1]!==`\\`){let{groups:e}=xs.exec(c.slice(u))||{groups:{}};e.sgr===void 0?e.uri!==void 0&&(i=e.uri.length===0?void 0:e.uri):Is(e.sgr,a)}else if(t===as){let{groups:e}=Ss.exec(c.slice(u))||{groups:{}};e.sgr!==void 0&&Is(e.sgr,a)}if(l[e+1]===`
|
|
25
|
+
`)i&&(r+=Os(``)),r+=zs(a);else if(t===`
|
|
26
|
+
`){let e=[...a];Rs(c.slice(u+1),e),r+=Bs(e),i&&(r+=Os(i))}u+=t.length}return r}})),qs,Js=t((()=>{Ks(),qs=(typeof Bun<`u`&&typeof Bun.wrapAnsi==`function`?Bun.wrapAnsi:null)??rs}));function Ys(e,t,n){let r=Uo(e,t,n);return ba(r)>n-t?Uo(e,t,n-1):r}function Xs(e,t,n){if(t<1)return``;if(t===1)return Qs;let r=ba(e);if(r<=t)return e;if(n===`start`)return Qs+Ys(e,r-t+1,r);if(n===`middle`){let n=Math.floor(t/2);return Ys(e,0,n)+Qs+Ys(e,r-(t-n)+1,r)}return Ys(e,0,t-1)+Qs}function Zs(e,t,n){if(n===`wrap`)return qs(e,t,{trim:!1,hard:!0});if(n===`wrap-trim`)return qs(e,t,{trim:!0,hard:!0});if(n.startsWith(`truncate`)){let r=`end`;return n===`truncate-middle`&&(r=`middle`),n===`truncate-start`&&(r=`start`),Xs(e,t,r)}return e}var Qs,$s=t((()=>{Wo(),xa(),Js(),Qs=`…`}));function ec(e,t,n=!1){if(t.nodeName===`#text`)return;let r=t,i=n||r.style.position===`absolute`,a=ka.get(r);a&&(Oa(e,a,i),ka.delete(r));for(let t of r.childNodes)ec(e,t,i)}function tc(e,t){return nc(e,t)}function nc(e,t){if(e===t)return!0;if(e===void 0||t===void 0)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(e[r]!==t[r])return!1;return!0}function rc(e){return e.nodeName!==`#text`}function ic(e,t){let n=[];return r(e,0),n;function r(e,i){let a=e.yogaNode;if(!a||a.getDisplay()===_i.None)return;let o=i+a.getComputedTop(),s=a.getComputedHeight();if(!(t<o||t>=o+s)){e.debugOwnerChain&&(n=e.debugOwnerChain);for(let t of e.childNodes)rc(t)&&r(t,o)}}}var ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc=t((()=>{Mi(),Ti(),Da(),Ma(),Fa(),Ra(),$s(),ac=e=>{let t={nodeName:e,style:{},attributes:{},childNodes:[],parentNode:void 0,yogaNode:e!==`ink-virtual-text`&&e!==`ink-link`&&e!==`ink-progress`?ji():void 0,dirty:!1};return e===`ink-text`?t.yogaNode?.setMeasureFunc(pc.bind(null,t)):e===`ink-raw-ansi`&&t.yogaNode?.setMeasureFunc(mc.bind(null,t)),t},oc=(e,t)=>{t.parentNode&&cc(t.parentNode,t),t.parentNode=e,e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),hc(e)},sc=(e,t,n)=>{t.parentNode&&cc(t.parentNode,t),t.parentNode=e;let r=e.childNodes.indexOf(n);if(r>=0){let n=0;if(t.yogaNode&&e.yogaNode)for(let t=0;t<r;t++)e.childNodes[t]?.yogaNode&&n++;e.childNodes.splice(r,0,t),t.yogaNode&&e.yogaNode&&e.yogaNode.insertChild(t.yogaNode,n),hc(e);return}e.childNodes.push(t),t.yogaNode&&e.yogaNode?.insertChild(t.yogaNode,e.yogaNode.getChildCount()),hc(e)},cc=(e,t)=>{t.yogaNode&&t.parentNode?.yogaNode?.removeChild(t.yogaNode),ec(e,t),t.parentNode=void 0;let n=e.childNodes.indexOf(t);n>=0&&e.childNodes.splice(n,1),hc(e)},lc=(e,t,n)=>{t!==`children`&&e.attributes[t]!==n&&(e.attributes[t]=n,hc(e))},uc=(e,t)=>{tc(e.style,t)||(e.style=t,hc(e))},dc=(e,t)=>{nc(e.textStyles,t)||(e.textStyles=t,hc(e))},fc=e=>{let t={nodeName:`#text`,nodeValue:e,yogaNode:void 0,parentNode:void 0,style:{}};return _c(t,e),t},pc=function(e,t,n){let r=Ia(e.nodeName===`#text`?e.nodeValue:Pa(e)),i=Ea(r,t);return i.width<=t||i.width>=1&&t>0&&t<1?i:r.includes(`
|
|
27
|
+
`)&&n===wi.Undefined?Ea(r,Math.max(t,i.width)):Ea(Zs(r,t,e.style?.textWrap??`wrap`),t)},mc=function(e){return{width:e.attributes.rawWidth,height:e.attributes.rawHeight}},hc=e=>{let t=e,n=!1;for(;t;)t.nodeName!==`#text`&&(t.dirty=!0,!n&&(t.nodeName===`ink-text`||t.nodeName===`ink-raw-ansi`)&&t.yogaNode&&(t.yogaNode.markDirty(),n=!0)),t=t.parentNode},gc=e=>{let t=e;for(;t?.parentNode;)t=t.parentNode;t&&t.nodeName!==`#text`&&t.onRender?.()},_c=(e,t)=>{typeof t!=`string`&&(t=String(t)),e.nodeValue!==t&&(e.nodeValue=t,hc(e))},vc=e=>{if(`childNodes`in e)for(let t of e.childNodes)vc(t);e.yogaNode=void 0}})),bc,xc,Sc=t((()=>{bc={keydown:{bubble:`onKeyDown`,capture:`onKeyDownCapture`},focus:{bubble:`onFocus`,capture:`onFocusCapture`},blur:{bubble:`onBlur`,capture:`onBlurCapture`},paste:{bubble:`onPaste`,capture:`onPasteCapture`},resize:{bubble:`onResize`},click:{bubble:`onClick`},mousedown:{bubble:`onMouseDown`},mouseup:{bubble:`onMouseUp`},mousedrag:{bubble:`onMouseDrag`}},xc=new Set([`onKeyDown`,`onKeyDownCapture`,`onFocus`,`onFocusCapture`,`onBlur`,`onBlurCapture`,`onPaste`,`onPasteCapture`,`onResize`,`onClick`,`onMouseDown`,`onMouseUp`,`onMouseDrag`,`onMouseEnter`,`onMouseLeave`])}));function Cc(e,t,n){let r=e._eventHandlers;if(!r)return;let i=bc[t];if(!i)return;let a=n?i.capture:i.bubble;if(a)return r[a]}function wc(e,t){let n=[],r=e;for(;r;){let i=r===e,a=Cc(r,t.type,!0),o=Cc(r,t.type,!1);a&&n.unshift({node:r,handler:a,phase:i?`at_target`:`capturing`}),o&&(t.bubbles||i)&&n.push({node:r,handler:o,phase:i?`at_target`:`bubbling`}),r=r.parentNode}return n}function Tc(e,t){let n;for(let{node:r,handler:i,phase:a}of e){if(t._isImmediatePropagationStopped()||t._isPropagationStopped()&&r!==n)break;t._setEventPhase(a),t._setCurrentTarget(r),t._prepareForTarget(r);try{i(t)}catch(e){Oc(e)}n=r}}function Ec(e){switch(e){case`keydown`:case`keyup`:case`click`:case`focus`:case`blur`:case`paste`:return Dc.DiscreteEventPriority;case`resize`:case`scroll`:case`mousemove`:return Dc.ContinuousEventPriority;default:return Dc.DefaultEventPriority}}var Dc,Oc,kc,Ac=t((()=>{Dc=Fe(),Sc(),c(),Oc=e=>{console.error(e)},kc=class{constructor(){l(this,`currentEvent`,null),l(this,`currentUpdatePriority`,Dc.DefaultEventPriority),l(this,`discreteUpdates`,null)}resolveEventPriority(){return this.currentUpdatePriority===0?this.currentEvent?Ec(this.currentEvent.type):Dc.DefaultEventPriority:this.currentUpdatePriority}dispatch(e,t){let n=this.currentEvent;this.currentEvent=t;try{return t._setTarget(e),Tc(wc(e,t),t),t._setEventPhase(`none`),t._setCurrentTarget(null),!t.defaultPrevented}finally{this.currentEvent=n}}dispatchDiscrete(e,t){return this.discreteUpdates?this.discreteUpdates((e,t)=>this.dispatch(e,t),e,t,void 0,void 0):this.dispatch(e,t)}dispatchContinuous(e,t){let n=this.currentUpdatePriority;try{return this.currentUpdatePriority=Dc.ContinuousEventPriority,this.dispatch(e,t)}finally{this.currentUpdatePriority=n}}}})),jc,Mc=t((()=>{Hn(),c(),jc=class extends Vn{constructor(e,t){super(),l(this,`type`,void 0),l(this,`timeStamp`,void 0),l(this,`bubbles`,void 0),l(this,`cancelable`,void 0),l(this,`_target`,null),l(this,`_currentTarget`,null),l(this,`_eventPhase`,`none`),l(this,`_propagationStopped`,!1),l(this,`_defaultPrevented`,!1),this.type=e,this.timeStamp=performance.now(),this.bubbles=t?.bubbles??!0,this.cancelable=t?.cancelable??!0}get target(){return this._target}get currentTarget(){return this._currentTarget}get eventPhase(){return this._eventPhase}get defaultPrevented(){return this._defaultPrevented}stopPropagation(){this._propagationStopped=!0}stopImmediatePropagation(){super.stopImmediatePropagation(),this._propagationStopped=!0}preventDefault(){this.cancelable&&(this._defaultPrevented=!0)}_setTarget(e){this._target=e}_setCurrentTarget(e){this._currentTarget=e}_setEventPhase(e){this._eventPhase=e}_isPropagationStopped(){return this._propagationStopped}_isImmediatePropagationStopped(){return this.didStopImmediatePropagation()}_prepareForTarget(e){}}})),Nc,Pc=t((()=>{Mc(),c(),Nc=class extends jc{constructor(e,t=null){super(e,{bubbles:!0,cancelable:!1}),l(this,`relatedTarget`,void 0),this.relatedTarget=t}}}));function Fc(e){let t=[];return Ic(e,t),t}function Ic(e,t){let n=e.attributes.tabIndex;typeof n==`number`&&n>=0&&t.push(e);for(let n of e.childNodes)n.nodeName!==`#text`&&Ic(n,t)}function Lc(e,t){let n=e;for(;n;){if(n===t)return!0;n=n.parentNode}return!1}function Rc(e){let t=e;for(;t;){if(t.focusManager)return t;t=t.parentNode}throw Error(`Node is not in a tree with a FocusManager`)}function zc(e){return Rc(e).focusManager}var Bc,Vc,Hc=t((()=>{Pc(),c(),Bc=32,Vc=class{constructor(e){l(this,`activeElement`,null),l(this,`dispatchFocusEvent`,void 0),l(this,`enabled`,!0),l(this,`focusStack`,[]),this.dispatchFocusEvent=e}focus(e){if(e===this.activeElement||!this.enabled)return;let t=this.activeElement;if(t){let n=this.focusStack.indexOf(t);n!==-1&&this.focusStack.splice(n,1),this.focusStack.push(t),this.focusStack.length>Bc&&this.focusStack.shift(),this.dispatchFocusEvent(t,new Nc(`blur`,e))}this.activeElement=e,this.dispatchFocusEvent(e,new Nc(`focus`,t))}blur(){if(!this.activeElement)return;let e=this.activeElement;this.activeElement=null,this.dispatchFocusEvent(e,new Nc(`blur`,null))}handleNodeRemoved(e,t){if(this.focusStack=this.focusStack.filter(n=>n!==e&&Lc(n,t)),!this.activeElement||this.activeElement!==e&&Lc(this.activeElement,t))return;let n=this.activeElement;for(this.activeElement=null,this.dispatchFocusEvent(n,new Nc(`blur`,null));this.focusStack.length>0;){let e=this.focusStack.pop();if(Lc(e,t)){this.activeElement=e,this.dispatchFocusEvent(e,new Nc(`focus`,n));return}}}handleAutoFocus(e){this.focus(e)}handleClickFocus(e){typeof e.attributes.tabIndex==`number`&&this.focus(e)}enable(){this.enabled=!0}disable(){this.enabled=!1}focusNext(e){this.moveFocus(1,e)}focusPrevious(e){this.moveFocus(-1,e)}moveFocus(e,t){if(!this.enabled)return;let n=Fc(t);if(n.length===0)return;let r=this.activeElement?n.indexOf(this.activeElement):-1,i=n[r===-1?e===1?0:n.length-1:(r+e+n.length)%n.length];i&&this.focus(i)}}}));function Uc(e,t,n){typeof n==`string`?e.setPositionPercent(t,Number.parseInt(n,10)):typeof n==`number`?e.setPosition(t,n):e.setPosition(t,NaN)}var Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el=t((()=>{Ti(),Wc=(e,t)=>{`position`in t&&e.setPositionType(t.position===`absolute`?Si.Absolute:Si.Relative),`top`in t&&Uc(e,`top`,t.top),`bottom`in t&&Uc(e,`bottom`,t.bottom),`left`in t&&Uc(e,`left`,t.left),`right`in t&&Uc(e,`right`,t.right)},Gc=(e,t)=>{let n=t.overflowY??t.overflow,r=t.overflowX??t.overflow;n===`scroll`||r===`scroll`?e.setOverflow(Ci.Scroll):n===`hidden`||r===`hidden`?e.setOverflow(Ci.Hidden):(`overflow`in t||`overflowX`in t||`overflowY`in t)&&e.setOverflow(Ci.Visible)},Kc=(e,t)=>{`margin`in t&&e.setMargin(V.All,t.margin??0),`marginX`in t&&e.setMargin(V.Horizontal,t.marginX??0),`marginY`in t&&e.setMargin(V.Vertical,t.marginY??0),`marginLeft`in t&&e.setMargin(V.Start,t.marginLeft||0),`marginRight`in t&&e.setMargin(V.End,t.marginRight||0),`marginTop`in t&&e.setMargin(V.Top,t.marginTop||0),`marginBottom`in t&&e.setMargin(V.Bottom,t.marginBottom||0)},qc=(e,t)=>{`padding`in t&&e.setPadding(V.All,t.padding??0),`paddingX`in t&&e.setPadding(V.Horizontal,t.paddingX??0),`paddingY`in t&&e.setPadding(V.Vertical,t.paddingY??0),`paddingLeft`in t&&e.setPadding(V.Left,t.paddingLeft||0),`paddingRight`in t&&e.setPadding(V.Right,t.paddingRight||0),`paddingTop`in t&&e.setPadding(V.Top,t.paddingTop||0),`paddingBottom`in t&&e.setPadding(V.Bottom,t.paddingBottom||0)},Jc=(e,t)=>{`flexGrow`in t&&e.setFlexGrow(t.flexGrow??0),`flexShrink`in t&&e.setFlexShrink(typeof t.flexShrink==`number`?t.flexShrink:1),`flexWrap`in t&&(t.flexWrap===`nowrap`&&e.setFlexWrap(xi.NoWrap),t.flexWrap===`wrap`&&e.setFlexWrap(xi.Wrap),t.flexWrap===`wrap-reverse`&&e.setFlexWrap(xi.WrapReverse)),`flexDirection`in t&&(t.flexDirection===`row`&&e.setFlexDirection(vi.Row),t.flexDirection===`row-reverse`&&e.setFlexDirection(vi.RowReverse),t.flexDirection===`column`&&e.setFlexDirection(vi.Column),t.flexDirection===`column-reverse`&&e.setFlexDirection(vi.ColumnReverse)),`flexBasis`in t&&(typeof t.flexBasis==`number`?e.setFlexBasis(t.flexBasis):typeof t.flexBasis==`string`?e.setFlexBasisPercent(Number.parseInt(t.flexBasis,10)):e.setFlexBasis(NaN)),`alignItems`in t&&((t.alignItems===`stretch`||!t.alignItems)&&e.setAlignItems(yi.Stretch),t.alignItems===`flex-start`&&e.setAlignItems(yi.FlexStart),t.alignItems===`center`&&e.setAlignItems(yi.Center),t.alignItems===`flex-end`&&e.setAlignItems(yi.FlexEnd)),`alignSelf`in t&&((t.alignSelf===`auto`||!t.alignSelf)&&e.setAlignSelf(yi.Auto),t.alignSelf===`flex-start`&&e.setAlignSelf(yi.FlexStart),t.alignSelf===`center`&&e.setAlignSelf(yi.Center),t.alignSelf===`flex-end`&&e.setAlignSelf(yi.FlexEnd)),`justifyContent`in t&&((t.justifyContent===`flex-start`||!t.justifyContent)&&e.setJustifyContent(bi.FlexStart),t.justifyContent===`center`&&e.setJustifyContent(bi.Center),t.justifyContent===`flex-end`&&e.setJustifyContent(bi.FlexEnd),t.justifyContent===`space-between`&&e.setJustifyContent(bi.SpaceBetween),t.justifyContent===`space-around`&&e.setJustifyContent(bi.SpaceAround),t.justifyContent===`space-evenly`&&e.setJustifyContent(bi.SpaceEvenly))},Yc=(e,t)=>{`width`in t&&(typeof t.width==`number`?e.setWidth(t.width):typeof t.width==`string`?e.setWidthPercent(Number.parseInt(t.width,10)):e.setWidthAuto()),`height`in t&&(typeof t.height==`number`?e.setHeight(t.height):typeof t.height==`string`?e.setHeightPercent(Number.parseInt(t.height,10)):e.setHeightAuto()),`minWidth`in t&&(typeof t.minWidth==`string`?e.setMinWidthPercent(Number.parseInt(t.minWidth,10)):e.setMinWidth(t.minWidth??0)),`minHeight`in t&&(typeof t.minHeight==`string`?e.setMinHeightPercent(Number.parseInt(t.minHeight,10)):e.setMinHeight(t.minHeight??0)),`maxWidth`in t&&(typeof t.maxWidth==`string`?e.setMaxWidthPercent(Number.parseInt(t.maxWidth,10)):e.setMaxWidth(t.maxWidth??0)),`maxHeight`in t&&(typeof t.maxHeight==`string`?e.setMaxHeightPercent(Number.parseInt(t.maxHeight,10)):e.setMaxHeight(t.maxHeight??0))},Xc=(e,t)=>{`display`in t&&e.setDisplay(t.display===`flex`?_i.Flex:_i.None)},Zc=(e,t,n)=>{let r=n??t;if(`borderStyle`in t){let n=+!!t.borderStyle;e.setBorder(V.Top,r.borderTop===!1?0:n),e.setBorder(V.Bottom,r.borderBottom===!1?0:n),e.setBorder(V.Left,r.borderLeft===!1?0:n),e.setBorder(V.Right,r.borderRight===!1?0:n)}else `borderTop`in t&&t.borderTop!==void 0&&e.setBorder(V.Top,t.borderTop===!1?0:1),`borderBottom`in t&&t.borderBottom!==void 0&&e.setBorder(V.Bottom,t.borderBottom===!1?0:1),`borderLeft`in t&&t.borderLeft!==void 0&&e.setBorder(V.Left,t.borderLeft===!1?0:1),`borderRight`in t&&t.borderRight!==void 0&&e.setBorder(V.Right,t.borderRight===!1?0:1)},Qc=(e,t)=>{`gap`in t&&e.setGap(gi.All,t.gap??0),`columnGap`in t&&e.setGap(gi.Column,t.columnGap??0),`rowGap`in t&&e.setGap(gi.Row,t.rowGap??0)},$c=(e,t={},n)=>{Wc(e,t),Gc(e,t),Kc(e,t),qc(e,t),Jc(e,t),Yc(e,t),Xc(e,t),Zc(e,t,n),Qc(e,t)}}));function tl(e,t,n){e._eventHandlers||(e._eventHandlers={}),e._eventHandlers[t]=n}function nl(e,t,n){if(t!==`children`){if(t===`style`){uc(e,n),e.yogaNode&&$c(e.yogaNode,n);return}if(t===`textStyles`){e.textStyles=n;return}if(xc.has(t)){tl(e,t,n);return}lc(e,t,n)}}function K(e){let t=[],n=new Set,r=e;for(let e=0;r&&e<50&&!n.has(r);e++){n.add(r);let e=r.elementType,i=typeof e==`function`?e.displayName||e.name:typeof e==`string`?void 0:e?.displayName||e?.name;i&&i!==t[t.length-1]&&t.push(i),r=r._debugOwner??r.return}return t}function rl(){return pl===void 0&&(pl=process.env.CLAUDE_CODE_DEBUG_REPAINTS===`1`),pl}function il(e){console.warn(`[ink-commit] ${e}`)}function al(e){Sl=e}function ol(){return Sl}function sl(){wl=performance.now()}function cl(){return Cl}function ll(){Sl=0,Cl=0,wl=0}var ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El=t((()=>{ul=n(hi(),1),qt(),yc(),Ac(),Sc(),Hc(),Ti(),el(),dl=(e,t)=>{if(e===t)return;if(!e)return t;let n={},r=!1;for(let i of Object.keys(e))(!t||!Object.hasOwn(t,i))&&(n[i]=void 0,r=!0);if(t)for(let i of Object.keys(t))t[i]!==e[i]&&(n[i]=t[i],r=!0);return r?n:void 0},fl=e=>{let t=e.yogaNode;t&&(t.unsetMeasureFunc(),vc(e),t.freeRecursive())},ml=new kc,hl=process.env.CLAUDE_CODE_COMMIT_LOG,gl=0,_l=0,vl=0,yl=0,bl=0,xl=0,Sl=0,Cl=0,wl=0,Tl=(0,ul.default)({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>(hl&&(xl=performance.now()),null),preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(e){if(Cl=wl>0?performance.now()-wl:0,wl=0,hl){let e=performance.now();gl++;let t=vl>0?e-vl:0;t>yl&&(yl=t),vl=e;let n=xl>0?e-xl:0;(t>30||n>20||bl>50)&&il(`${e.toFixed(1)} gap=${t.toFixed(1)}ms reconcile=${n.toFixed(1)}ms creates=${bl}`),bl=0,e-_l>1e3&&(il(`${e.toFixed(1)} commits=${gl}/s maxGap=${yl.toFixed(1)}ms`),gl=0,yl=0,_l=e)}let t=hl?performance.now():0;if(typeof e.onComputeLayout==`function`&&e.onComputeLayout(),hl){let e=performance.now()-t;if(e>20){let n=dt();il(`${t.toFixed(1)} SLOW_YOGA ${e.toFixed(1)}ms visited=${n.visited} measured=${n.measured} hits=${n.cacheHits} live=${n.live}`)}}let n=hl?performance.now():0;if(e.onRender?.(),hl){let e=performance.now()-n;e>10&&il(`${n.toFixed(1)} SLOW_PAINT ${e.toFixed(1)}ms`)}},getChildHostContext(e,t){let n=e.isInsideText,r=t===`ink-text`||t===`ink-virtual-text`||t===`ink-link`;return n===r?e:{isInsideText:r}},shouldSetTextContent:()=>!1,createInstance(e,t,n,r,i){if(r.isInsideText&&e===`ink-box`)throw Error(`<Box> can't be nested inside <Text> component`);let a=ac(e===`ink-text`&&r.isInsideText?`ink-virtual-text`:e);hl&&bl++;for(let[e,n]of Object.entries(t))nl(a,e,n);return rl()&&(a.debugOwnerChain=K(i)),a},createTextInstance(e,t,n){if(!n.isInsideText)throw Error(`Text string "${e}" must be rendered inside <Text> component`);return fc(e)},resetTextContent(){},hideTextInstance(e){_c(e,``)},unhideTextInstance(e,t){_c(e,t)},getPublicInstance:e=>e,hideInstance(e){e.isHidden=!0,e.yogaNode?.setDisplay(_i.None),hc(e)},unhideInstance(e){e.isHidden=!1,e.yogaNode?.setDisplay(_i.Flex),hc(e)},appendInitialChild:oc,appendChild:oc,insertBefore:sc,finalizeInitialChildren(e,t,n){return n.autoFocus===!0},commitMount(e){zc(e).handleAutoFocus(e)},isPrimaryRenderer:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,getCurrentUpdatePriority:()=>ml.currentUpdatePriority,beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},detachDeletedInstance(){},getInstanceFromNode:()=>null,prepareScopeUpdate(){},getInstanceFromScope:()=>null,appendChildToContainer:oc,insertInContainerBefore:sc,removeChildFromContainer(e,t){cc(e,t),fl(t),zc(e).handleNodeRemoved(t,e)},commitUpdate(e,t,n,r){let i=dl(n,r),a=dl(n.style,r.style);if(i)for(let[t,n]of Object.entries(i)){if(t===`style`){uc(e,n);continue}if(t===`textStyles`){dc(e,n);continue}if(xc.has(t)){tl(e,t,n);continue}lc(e,t,n)}a&&e.yogaNode&&$c(e.yogaNode,a,r.style)},commitTextUpdate(e,t,n){_c(e,n)},removeChild(e,t){if(cc(e,t),fl(t),t.nodeName!==`#text`){let n=Rc(e);n.focusManager.handleNodeRemoved(t,n)}},maySuspendCommit(){return!1},preloadInstance(){return!0},startSuspendingCommit(){},suspendInstance(){},waitForCommitToBeReady(){return null},NotPendingTransition:null,HostTransitionContext:{$$typeof:Symbol.for(`react.context`),_currentValue:null},setCurrentUpdatePriority(e){ml.currentUpdatePriority=e},resolveUpdatePriority(){return ml.resolveEventPriority()},resetFormInstance(){},requestPostPaintCallback(){},shouldAttemptEagerTransition(){return!1},trackSchedulerEvent(){},resolveEventType(){return ml.currentEvent?.type??null},resolveEventTimeStamp(){return ml.currentEvent?.timeStamp??-1.1}}),ml.discreteUpdates=Tl.discreteUpdates.bind(Tl)}));function Dl(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y),i=Math.max(e.x+e.width,t.x+t.width),a=Math.max(e.y+e.height,t.y+t.height);return{x:n,y:r,width:i-n,height:a-r}}function Ol(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}var kl=t((()=>{})),Al=t((()=>{}));function jl(e,t){e!==void 0&&(Number.isInteger(e)||`${t}${e}`)}var Ml=t((()=>{Al()}));function Nl(e){for(let t of e)if(mu.has(t.endCode))return!0;return!1}function Pl(){let e=new Int32Array(128);return e.fill(-1),e[32]=hu,e}function Fl(e,t,n){return e<<_u|t<<vu|n}function Il(e,t){let n=t<<1;return e.cells[n]===0&&e.cells[n|1]===0}function Ll(e,t,n){return t<0||n<0||t>=e.width||n>=e.height?!0:Il(e,n*e.width+t)}function Rl(e,t){return e.hyperlinkPool.intern(t)}function zl(e,t,n,r,i){jl(e,`createScreen width`),jl(t,`createScreen height`),(!Number.isInteger(e)||e<0)&&(e=Math.max(0,Math.floor(e)||0)),(!Number.isInteger(t)||t<0)&&(t=Math.max(0,Math.floor(t)||0));let a=e*t,o=new ArrayBuffer(a<<3),s=new Int32Array(o),c=new BigInt64Array(o);return{width:e,height:t,cells:s,cells64:c,charPool:r,hyperlinkPool:i,emptyStyleId:n.none,damage:void 0,noSelect:new Uint8Array(a),softWrap:new Int32Array(t)}}function Bl(e,t,n){jl(t,`resetScreen width`),jl(n,`resetScreen height`),(!Number.isInteger(t)||t<0)&&(t=Math.max(0,Math.floor(t)||0)),(!Number.isInteger(n)||n<0)&&(n=Math.max(0,Math.floor(n)||0));let r=t*n;if(e.cells64.length<r){let t=new ArrayBuffer(r<<3);e.cells=new Int32Array(t),e.cells64=new BigInt64Array(t),e.noSelect=new Uint8Array(r)}e.softWrap.length<n&&(e.softWrap=new Int32Array(n)),e.cells64.fill(xu,0,r),e.noSelect.fill(0,0,r),e.softWrap.fill(0,0,n),e.width=t,e.height=n,e.damage=void 0}function Vl(e,t,n){let r=e.charPool,i=e.hyperlinkPool;if(r===t&&i===n)return;let a=e.width*e.height,o=e.cells;for(let e=0;e<a<<1;e+=2){let a=o[e];o[e]=t.intern(r.get(a));let s=o[e+1],c=s>>>vu&yu;if(c!==0){let t=i.get(c),r=n.intern(t),a=s>>>_u,l=s&bu;o[e+1]=Fl(a,r,l)}}e.charPool=t,e.hyperlinkPool=n}function Hl(e,t,n){if(!(t<0||n<0||t>=e.width||n>=e.height))return Ul(e,n*e.width+t)}function Ul(e,t){let n=t<<1,r=e.cells[n+1],i=r>>>vu&yu;return{char:e.charPool.get(e.cells[n]),styleId:r>>>_u,width:r&bu,hyperlink:i===0?void 0:e.hyperlinkPool.get(i)}}function Wl(e,t,n,r,i){let a=r<<1,o=e[a];if(o===1)return;let s=e[a+1];if(o===0&&!(s&262140)){let e=s>>>_u;if(e===0||e===i)return}let c=s>>>vu&yu;return{char:t.get(o),styleId:s>>>_u,width:s&bu,hyperlink:c===0?void 0:n.get(c)}}function q(e,t,n){let r=t|1,i=e.cells[r];n.char=e.charPool.get(e.cells[t]),n.styleId=i>>>_u,n.width=i&bu;let a=i>>>vu&yu;n.hyperlink=a===0?void 0:e.hyperlinkPool.get(a)}function Gl(e,t,n){if(t<0||n<0||t>=e.width||n>=e.height)return;let r=n*e.width+t<<1;return e.charPool.get(e.cells[r])}function Kl(e,t,n,r){if(t<0||n<0||t>=e.width||n>=e.height)return;let i=n*e.width+t<<1,a=e.cells,o=a[i+1]&bu;if(o===J.Wide&&r.width!==J.Wide&&t+1<e.width){let t=i+2;(a[t+1]&bu)===J.SpacerTail&&(a[t]=hu,a[t+1]=Fl(e.emptyStyleId,0,J.Narrow))}let s=-1;if(o===J.SpacerTail&&r.width!==J.SpacerTail&&t>0){let n=i-2;(a[n+1]&bu)===J.Wide&&(a[n]=hu,a[n+1]=Fl(e.emptyStyleId,0,J.Narrow),s=t-1)}a[i]=Jl(e,r.char),a[i+1]=Fl(r.styleId,Rl(e,r.hyperlink),r.width);let c=s>=0?Math.min(t,s):t,l=e.damage;if(l){let e=l.x+l.width,r=l.y+l.height;c<l.x?(l.width+=l.x-c,l.x=c):t>=e&&(l.width=t-l.x+1),n<l.y?(l.height+=l.y-n,l.y=n):n>=r&&(l.height=n-l.y+1)}else e.damage={x:c,y:n,width:t-c+1,height:1};if(r.width===J.Wide){let n=t+1;if(n<e.width){let t=i+2;if((a[t+1]&bu)===J.Wide){let r=t+2;n+1<e.width&&(a[r+1]&bu)===J.SpacerTail&&(a[r]=hu,a[r+1]=Fl(e.emptyStyleId,0,J.Narrow))}a[t]=gu,a[t+1]=Fl(e.emptyStyleId,0,J.SpacerTail);let r=e.damage;r&&n>=r.x+r.width&&(r.width=n-r.x+1)}}}function ql(e,t,n,r){if(t<0||n<0||t>=e.width||n>=e.height)return;let i=n*e.width+t<<1,a=e.cells,o=a[i+1],s=o&bu;if(s===J.SpacerTail||s===J.SpacerHead)return;let c=o>>>vu&yu;a[i+1]=Fl(r,c,s);let l=e.damage;l?e.damage=Dl(l,{x:t,y:n,width:1,height:1}):e.damage={x:t,y:n,width:1,height:1}}function Jl(e,t){return e.charPool.intern(t)}function Yl(e,t,n,r,i,a){if(n=Math.max(0,n),r=Math.max(0,r),n>=i||r>=a)return;let o=i-n,s=t.width<<1,c=e.width<<1,l=o<<1,u=t.cells,d=e.cells,f=t.noSelect,p=e.noSelect;if(e.softWrap.set(t.softWrap.subarray(r,a),r),n===0&&i===t.width&&t.width===e.width){let e=r*s,n=(a-r)*s;d.set(u.subarray(e,e+n),e);let i=r*t.width,o=(a-r)*t.width;p.set(f.subarray(i,i+o),i)}else{let i=r*s+(n<<1),m=r*c+(n<<1),h=r*t.width+n,g=r*e.width+n;for(let n=r;n<a;n++)d.set(u.subarray(i,i+l),m),p.set(f.subarray(h,h+o),g),i+=s,m+=c,h+=t.width,g+=e.width}let m={x:n,y:r,width:o,height:a-r};if(e.damage?e.damage=Dl(e.damage,m):e.damage=m,i<e.width){let n=r*t.width+(i-1)<<1,o=r*e.width+i<<1,l=!1;for(let t=r;t<a;t++)(u[n+1]&bu)===J.Wide&&(d[o]=gu,d[o+1]=Fl(e.emptyStyleId,0,J.SpacerTail),l=!0),n+=s,o+=c;l&&e.damage&&e.damage.x+e.damage.width===i&&(e.damage={...e.damage,width:e.damage.width+1})}}function Xl(e,t,n,r){if(r===0||t<0||n>=e.height||t>n)return;let i=e.width,a=e.cells64,o=e.noSelect,s=e.softWrap;if(Math.abs(r)>n-t){a.fill(xu,t*i,(n+1)*i),o.fill(0,t*i,(n+1)*i),s.fill(0,t,n+1);return}r>0?(a.copyWithin(t*i,(t+r)*i,(n+1)*i),o.copyWithin(t*i,(t+r)*i,(n+1)*i),s.copyWithin(t,t+r,n+1),a.fill(xu,(n-r+1)*i,(n+1)*i),o.fill(0,(n-r+1)*i,(n+1)*i),s.fill(0,n-r+1,n+1)):(a.copyWithin((t-r)*i,t*i,(n+r+1)*i),o.copyWithin((t-r)*i,t*i,(n+r+1)*i),s.copyWithin(t-r,t,n+r+1),a.fill(xu,t*i,(t-r)*i),o.fill(0,t*i,(t-r)*i),s.fill(0,t,t-r))}function Zl(e){for(let t of e){let e=t.code;if(e.length<5||!e.startsWith(Cu))continue;let n=e.match(Su);if(n)return n[1]||null}return null}function Ql(e){return e.filter(e=>!e.code.startsWith(Cu)||!Su.test(e.code))}function $l(e,t,n){let r=e.width,i=t.width,a=e.height,o=t.height,s;r===0&&a===0?s={x:0,y:0,width:i,height:o}:t.damage?(s=t.damage,e.damage&&(s=Dl(s,e.damage))):s=e.damage?e.damage:{x:0,y:0,width:0,height:0},a>o&&(s=Dl(s,{x:0,y:o,width:r,height:a-o})),r>i&&(s=Dl(s,{x:i,y:0,width:r-i,height:a}));let c=Math.max(a,o),l=Math.max(r,i),u=Math.min(s.y+s.height,c),d=Math.min(s.x+s.width,l);return r===i?iu(e,t,s.x,d,s.y,u,n):au(e,t,s.x,d,s.y,u,n)}function eu(e,t,n,r){for(let i=0;i<r;i++,n+=2){let r=n|1;if(e[n]!==t[n]||e[r]!==t[r])return i}return r}function tu(e,t,n,r,i,a,o,s,c,l,u){let d=o;for(;d<s;){let o=eu(e,t,i,s-d);if(d+=o,i+=o<<1,d>=s)break;if(q(n,i,c),q(r,i,l),u(d,a,c,l))return!0;d++,i+=2}return!1}function nu(e,t,n,r,i,a,o){for(let s=r;s<i;s++,t+=2)if(q(e,t,a),o(s,n,a,void 0))return!0;return!1}function ru(e,t,n,r,i,a,o,s){for(let c=i;c<a;c++,n+=2)if(!(e[n]===0&&e[n|1]===0)&&(q(t,n,o),s(c,r,void 0,o)))return!0;return!1}function iu(e,t,n,r,i,a,o){let s=e.cells,c=t.cells,l=e.width,u=e.height,d=t.height,f=l<<1,p={char:` `,styleId:0,width:J.Narrow,hyperlink:void 0},m={char:` `,styleId:0,width:J.Narrow,hyperlink:void 0},h=Math.min(r,l),g=i*l+n<<1;for(let r=i;r<a;r++){let i=r<u,a=r<d;if(i&&a){if(tu(s,c,e,t,g,r,n,h,p,m,o))return!0}else if(i){if(nu(e,g,r,n,h,p,o))return!0}else if(a&&ru(c,t,g,r,n,h,m,o))return!0;g+=f}return!1}function au(e,t,n,r,i,a,o){let s=e.width,c=t.width,l=e.cells,u=t.cells,d={char:` `,styleId:0,width:J.Narrow,hyperlink:void 0},f={char:` `,styleId:0,width:J.Narrow,hyperlink:void 0},p=s<<1,m=c<<1,h=i*s+n<<1,g=i*c+n<<1;for(let _=i;_<a;_++){let i=_<e.height,a=_<t.height,v=i?Math.min(r,s):n,y=a?Math.min(r,c):n,b=Math.min(v,y),x=h,S=g;for(let r=n;r<b;r++){if(l[x]===u[S]&&l[x+1]===u[S+1]){x+=2,S+=2;continue}if(q(e,x,d),q(t,S,f),x+=2,S+=2,o(r,_,d,f))return!0}if(v>b){x=h+(b-n<<1);for(let t=b;t<v;t++)if(q(e,x,d),x+=2,o(t,_,d,void 0))return!0}if(y>b){S=g+(b-n<<1);for(let e=b;e<y;e++){if(u[S]===0&&u[S|1]===0){S+=2;continue}if(q(t,S,f),S+=2,o(e,_,void 0,f))return!0}}h+=p,g+=m}return!1}function ou(e,t,n,r,i){let a=Math.min(t+r,e.width),o=Math.min(n+i,e.height),s=e.noSelect,c=e.width;for(let e=Math.max(0,n);e<o;e++){let n=e*c;s.fill(1,n+Math.max(0,t),n+a)}}var su,cu,lu,uu,du,fu,pu,mu,J,hu,gu,_u,vu,yu,bu,xu,Su,Cu,Y=t((()=>{Bo(),kl(),Jn(),Ml(),c(),su=class{constructor(){l(this,`strings`,[` `,``]),l(this,`stringMap`,new Map([[` `,0],[``,1]])),l(this,`ascii`,Pl())}intern(e){if(e.length===1){let t=e.charCodeAt(0);if(t<128){let n=this.ascii[t];if(n!==-1)return n;let r=this.strings.length;return this.strings.push(e),this.ascii[t]=r,r}}let t=this.stringMap.get(e);if(t!==void 0)return t;let n=this.strings.length;return this.strings.push(e),this.stringMap.set(e,n),n}get(e){return this.strings[e]??` `}},cu=class{constructor(){l(this,`strings`,[``]),l(this,`stringMap`,new Map)}intern(e){if(!e)return 0;let t=this.stringMap.get(e);return t===void 0&&(t=this.strings.length,this.strings.push(e),this.stringMap.set(e,t)),t}get(e){return e===0?void 0:this.strings[e]}},lu={type:`ansi`,code:`\x1B[7m`,endCode:`\x1B[27m`},uu={type:`ansi`,code:`\x1B[1m`,endCode:`\x1B[22m`},du={type:`ansi`,code:`\x1B[4m`,endCode:`\x1B[24m`},fu={type:`ansi`,code:`\x1B[33m`,endCode:`\x1B[39m`},pu=class e{constructor(){l(this,`ids`,new Map),l(this,`styles`,[]),l(this,`transitionCache`,new Map),l(this,`none`,void 0),l(this,`inverseCache`,new Map),l(this,`currentMatchCache`,new Map),l(this,`selectionBgCode`,null),l(this,`selectionBgCache`,new Map),this.none=this.intern([])}evictCacheIfNeeded(){if(this.transitionCache.size>e.CACHE_MAX){let t=this.transitionCache.keys();for(let n=0;n<this.transitionCache.size-e.CACHE_MAX;n++){let e=t.next().value;e!==void 0&&this.transitionCache.delete(e)}}if(this.inverseCache.size>e.CACHE_MAX){let t=this.inverseCache.keys();for(let n=0;n<this.inverseCache.size-e.CACHE_MAX;n++){let e=t.next().value;e!==void 0&&this.inverseCache.delete(e)}}if(this.currentMatchCache.size>e.CACHE_MAX){let t=this.currentMatchCache.keys();for(let n=0;n<this.currentMatchCache.size-e.CACHE_MAX;n++){let e=t.next().value;e!==void 0&&this.currentMatchCache.delete(e)}}}intern(e){let t=e.length===0?``:e.map(e=>e.code).join(`\0`),n=this.ids.get(t);if(n===void 0){let r=this.styles.length;this.styles.push(e.length===0?[]:e),n=r<<1|(e.length>0&&Nl(e)?1:0),this.ids.set(t,n),this.evictCacheIfNeeded()}return n}get(e){return this.styles[e>>>1]??[]}transition(e,t){if(e===t)return``;let n=e*1048576+t,r=this.transitionCache.get(n);return r===void 0&&(r=mo(wo(this.get(e),this.get(t))),this.transitionCache.set(n,r)),r}withInverse(e){let t=this.inverseCache.get(e);if(t===void 0){let n=this.get(e);t=n.some(e=>e.endCode===`\x1B[27m`)?e:this.intern([...n,lu]),this.inverseCache.set(e,t)}return t}withCurrentMatch(e){let t=this.currentMatchCache.get(e);if(t===void 0){let n=this.get(e),r=n.filter(e=>e.endCode!==`\x1B[39m`&&e.endCode!==`\x1B[49m`);r.push(fu),n.some(e=>e.endCode===`\x1B[27m`)||r.push(lu),n.some(e=>e.endCode===`\x1B[22m`)||r.push(uu),n.some(e=>e.endCode===`\x1B[24m`)||r.push(du),t=this.intern(r),this.currentMatchCache.set(e,t)}return t}setSelectionBg(e){this.selectionBgCode?.code!==e?.code&&(this.selectionBgCode=e,this.selectionBgCache.clear())}withSelectionBg(e){let t=this.selectionBgCode;if(t===null)return this.withInverse(e);let n=this.selectionBgCache.get(e);if(n===void 0){let r=this.get(e).filter(e=>e.endCode!==`\x1B[49m`&&e.endCode!==`\x1B[27m`);r.push(t),n=this.intern(r),this.selectionBgCache.set(e,n)}return n}},l(pu,`CACHE_MAX`,1e3),mu=new Set([`\x1B[49m`,`\x1B[27m`,`\x1B[24m`,`\x1B[29m`,`\x1B[55m`]),J=function(e){return e[e.Narrow=0]=`Narrow`,e[e.Wide=1]=`Wide`,e[e.SpacerTail=2]=`SpacerTail`,e[e.SpacerHead=3]=`SpacerHead`,e}({}),hu=0,gu=1,_u=17,vu=2,yu=32767,bu=3,xu=0n,Su=RegExp(`^\x1B\\]8;;([^\x07]*)\x07$`),Cu=`\x1B]8;`}));function wu(){return{anchor:null,focus:null,isDragging:!1,anchorSpan:null,scrolledOffAbove:[],scrolledOffBelow:[],scrolledOffAboveSW:[],scrolledOffBelowSW:[],lastPressHadAlt:!1}}function X(e,t,n){e.anchor={col:t,row:n},e.focus=null,e.isDragging=!0,e.anchorSpan=null,e.scrolledOffAbove=[],e.scrolledOffBelow=[],e.scrolledOffAboveSW=[],e.scrolledOffBelowSW=[],e.virtualAnchorRow=void 0,e.virtualFocusRow=void 0,e.lastPressHadAlt=!1}function Z(e,t,n){e.isDragging&&(!e.focus&&e.anchor&&e.anchor.col===t&&e.anchor.row===n||(e.focus={col:t,row:n}))}function Q(e){e.isDragging=!1}function Tu(e){e.anchor=null,e.focus=null,e.isDragging=!1,e.anchorSpan=null,e.scrolledOffAbove=[],e.scrolledOffBelow=[],e.scrolledOffAboveSW=[],e.scrolledOffBelowSW=[],e.virtualAnchorRow=void 0,e.virtualFocusRow=void 0,e.lastPressHadAlt=!1}function Eu(e){return e===` `||e===``?0:Gu.test(e)?1:2}function Du(e,t,n){if(n<0||n>=e.height)return null;let r=e.width,i=e.noSelect,a=n*r,o=t;if(o>0){let t=Hl(e,o,n);t&&t.width===J.SpacerTail&&--o}if(o<0||o>=r||i[a+o]===1)return null;let s=Hl(e,o,n);if(!s)return null;let c=Eu(s.char),l=o;for(;l>0;){let t=l-1;if(i[a+t]===1)break;let r=Hl(e,t,n);if(!r)break;if(r.width===J.SpacerTail){if(t===0||i[a+t-1]===1)break;let r=Hl(e,t-1,n);if(!r||Eu(r.char)!==c)break;l=t-1;continue}if(Eu(r.char)!==c)break;l=t}let u=o;for(;u<r-1;){let t=u+1;if(i[a+t]===1)break;let r=Hl(e,t,n);if(!r)break;if(r.width===J.SpacerTail){u=t;continue}if(Eu(r.char)!==c)break;u=t}return{lo:l,hi:u}}function Ou(e,t){return e.row===t.row?e.col===t.col?0:e.col<t.col?-1:1:e.row<t.row?-1:1}function ku(e,t,n,r){let i=Du(t,n,r);if(!i)return;let a={col:i.lo,row:r},o={col:i.hi,row:r};e.anchor=a,e.focus=o,e.isDragging=!0,e.anchorSpan={lo:a,hi:o,kind:`word`}}function Au(e){if(e.length!==1)return!1;let t=e.charCodeAt(0);return t>=33&&t<=126&&!Ku.has(e)}function ju(e,t,n){if(n<0||n>=e.height)return;let r=e.width,i=e.noSelect,a=n*r,o=t;if(o>0){let t=Hl(e,o,n);t&&t.width===J.SpacerTail&&--o}if(o<0||o>=r||i[a+o]===1)return;let s=Hl(e,o,n);if(!s||!Au(s.char))return;let c=o;for(;c>0;){let t=c-1;if(i[a+t]===1)break;let r=Hl(e,t,n);if(!r||r.width!==J.Narrow||!Au(r.char))break;c=t}let l=o;for(;l<r-1;){let t=l+1;if(i[a+t]===1)break;let r=Hl(e,t,n);if(!r||r.width!==J.Narrow||!Au(r.char))break;l=t}let u=``;for(let t=c;t<=l;t++)u+=Hl(e,t,n).char;let d=o-c,f=/(?:https?|file):\/\//g,p=-1,m=u.length;for(let e;e=f.exec(u);){if(e.index>d){m=e.index;break}p=e.index}if(p<0)return;let h=u.slice(p,m),g={")":`(`,"]":`[`,"}":`{`};for(;h.length>0;){let e=h.at(-1);if(`.,;:!?`.includes(e)){h=h.slice(0,-1);continue}let t=g[e];if(!t)break;let n=0,r=0;for(let i=0;i<h.length;i++){let a=h.charAt(i);a===t?n++:a===e&&r++}if(r>n)h=h.slice(0,-1);else break}if(!(d>=p+h.length))return h}function Mu(e,t,n){if(n<0||n>=t.height)return;let r={col:0,row:n},i={col:t.width-1,row:n};e.anchor=r,e.focus=i,e.isDragging=!0,e.anchorSpan={lo:r,hi:i,kind:`line`}}function Nu(e,t,n,r){if(!e.isDragging||!e.anchorSpan)return;let i=e.anchorSpan,a,o;if(i.kind===`word`){let e=Du(t,n,r);a={col:e?e.lo:n,row:r},o={col:e?e.hi:n,row:r}}else{let e=Ol(r,0,t.height-1);a={col:0,row:e},o={col:t.width-1,row:e}}Ou(o,i.lo)<0?(e.anchor=i.hi,e.focus=a):Ou(a,i.hi)>0?(e.anchor=i.lo,e.focus=o):(e.anchor=i.lo,e.focus=i.hi)}function Pu(e,t,n){e.focus&&(e.anchorSpan=null,e.focus={col:t,row:n},e.virtualFocusRow=void 0)}function Fu(e,t,n,r,i){if(!e.anchor||!e.focus)return;let a=(e.virtualAnchorRow??e.anchor.row)+t,o=(e.virtualFocusRow??e.focus.row)+t;if(a<n&&o<n||a>r&&o>r){Tu(e);return}let s=Math.min(e.virtualAnchorRow??e.anchor.row,e.virtualFocusRow??e.focus.row),c=Math.max(e.virtualAnchorRow??e.anchor.row,e.virtualFocusRow??e.focus.row),l=Math.max(0,n-s),u=Math.max(0,c-r),d=Math.max(0,n-Math.min(a,o)),f=Math.max(0,Math.max(a,o)-r);if(d<l){let t=l-d;e.scrolledOffAbove.length-=t,e.scrolledOffAboveSW.length=e.scrolledOffAbove.length}if(f<u){let t=u-f;e.scrolledOffBelow.splice(0,t),e.scrolledOffBelowSW.splice(0,t)}e.scrolledOffAbove.length>d&&(e.scrolledOffAbove=d>0?e.scrolledOffAbove.slice(-d):[],e.scrolledOffAboveSW=d>0?e.scrolledOffAboveSW.slice(-d):[]),e.scrolledOffBelow.length>f&&(e.scrolledOffBelow=e.scrolledOffBelow.slice(0,f),e.scrolledOffBelowSW=e.scrolledOffBelowSW.slice(0,f));let p=(e,t)=>t<n?{col:0,row:n}:t>r?{col:i-1,row:r}:{col:e.col,row:t};if(e.anchor=p(e.anchor,a),e.focus=p(e.focus,o),e.virtualAnchorRow=a<n||a>r?a:void 0,e.virtualFocusRow=o<n||o>r?o:void 0,e.anchorSpan){let a=e=>{let a=e.row+t;return a<n?{col:0,row:n}:a>r?{col:i-1,row:r}:{col:e.col,row:a}};e.anchorSpan={lo:a(e.anchorSpan.lo),hi:a(e.anchorSpan.hi),kind:e.anchorSpan.kind}}}function Iu(e,t,n,r){if(!e.anchor)return;let i=(e.virtualAnchorRow??e.anchor.row)+t;if(e.anchor={col:e.anchor.col,row:Ol(i,n,r)},e.virtualAnchorRow=i<n||i>r?i:void 0,e.anchorSpan){let i=e=>({col:e.col,row:Ol(e.row+t,n,r)});e.anchorSpan={lo:i(e.anchorSpan.lo),hi:i(e.anchorSpan.hi),kind:e.anchorSpan.kind}}}function Lu(e,t,n,r){if(!e.anchor)return!1;let i=(e.virtualAnchorRow??e.anchor.row)+t,a=e.focus?(e.virtualFocusRow??e.focus.row)+t:void 0;if(i<n&&a!==void 0&&a<n)return Tu(e),!0;if(e.anchor={col:e.anchor.col,row:Ol(i,n,r)},e.focus&&a!==void 0&&(e.focus={col:e.focus.col,row:Ol(a,n,r)}),e.virtualAnchorRow=i<n||i>r?i:void 0,e.virtualFocusRow=a!==void 0&&(a<n||a>r)?a:void 0,e.anchorSpan){let i=e=>({col:e.col,row:Ol(e.row+t,n,r)});e.anchorSpan={lo:i(e.anchorSpan.lo),hi:i(e.anchorSpan.hi),kind:e.anchorSpan.kind}}return!1}function Ru(e){return e.anchor!==null&&e.focus!==null}function zu(e){return!e.anchor||!e.focus?null:Ou(e.anchor,e.focus)<=0?{start:e.anchor,end:e.focus}:{start:e.focus,end:e.anchor}}function Bu(e,t,n,r){let i=e.noSelect,a=t*e.width,o=t+1<e.height?e.softWrap[t+1]:0,s=o>0?Math.min(r,o-1):r,c=``;for(let r=n;r<=s;r++){if(i[a+r]===1)continue;let n=Hl(e,r,t);n&&(n.width===J.SpacerTail||n.width===J.SpacerHead||(c+=n.char))}return o>0?c:c.replace(/\s+$/,``)}function Vu(e,t,n){n&&e.length>0?e[e.length-1]+=t:e.push(t)}function Hu(e,t){let n=zu(e);if(!n)return``;let{start:r,end:i}=n,a=t.softWrap,o=[];for(let t=0;t<e.scrolledOffAbove.length;t++)Vu(o,e.scrolledOffAbove[t],e.scrolledOffAboveSW[t]);for(let e=r.row;e<=i.row;e++){let n=e===r.row?r.col:0,s=e===i.row?i.col:t.width-1;Vu(o,Bu(t,e,n,s),a[e]>0)}for(let t=0;t<e.scrolledOffBelow.length;t++)Vu(o,e.scrolledOffBelow[t],e.scrolledOffBelowSW[t]);return o.join(`
|
|
28
|
+
`)}function Uu(e,t,n,r,i){let a=zu(e);if(!a||n>r)return;let{start:o,end:s}=a,c=Math.max(n,o.row),l=Math.min(r,s.row);if(c>l)return;let u=t.width,d=t.softWrap,f=[],p=[];for(let e=c;e<=l;e++){let n=e===o.row?o.col:0,r=e===s.row?s.col:u-1;f.push(Bu(t,e,n,r)),p.push(d[e]>0)}i===`above`?(e.scrolledOffAbove.push(...f),e.scrolledOffAboveSW.push(...p),e.anchor&&e.anchor.row===o.row&&c===o.row&&(e.anchor={col:0,row:e.anchor.row},e.anchorSpan&&(e.anchorSpan={kind:e.anchorSpan.kind,lo:{col:0,row:e.anchorSpan.lo.row},hi:{col:u-1,row:e.anchorSpan.hi.row}}))):(e.scrolledOffBelow.unshift(...f),e.scrolledOffBelowSW.unshift(...p),e.anchor&&e.anchor.row===s.row&&l===s.row&&(e.anchor={col:u-1,row:e.anchor.row},e.anchorSpan&&(e.anchorSpan={kind:e.anchorSpan.kind,lo:{col:0,row:e.anchorSpan.lo.row},hi:{col:u-1,row:e.anchorSpan.hi.row}})))}function Wu(e,t,n){let r=zu(t);if(!r)return;let{start:i,end:a}=r,o=e.width,s=e.noSelect;for(let t=i.row;t<=a.row&&t<e.height;t++){let r=t===i.row?i.col:0,c=t===a.row?Math.min(a.col,o-1):o-1,l=t*o;for(let i=r;i<=c;i++){let r=l+i;if(s[r]===1)continue;let a=Ul(e,r);ql(e,i,t,n.withSelectionBg(a.styleId))}}}var Gu,Ku,qu=t((()=>{kl(),Y(),Gu=/[\p{L}\p{N}_/.\-+~\\]/u,Ku=new Set([...`<>"'\` `])}));function Ju(){return process.platform===`win32`&&!!process.env.WT_SESSION}function Yu(){return!!(process.env.TERM_PROGRAM===`mintty`||process.platform===`win32`&&process.env.MSYSTEM)}function Xu(){return!!(Ju()||process.platform===`win32`&&process.env.TERM_PROGRAM===`vscode`&&process.env.TERM_PROGRAM_VERSION||Yu())}function Zu(){return process.platform===`win32`?Xu()?vr+yr+gr:vr+Qu:vr+yr+gr}var Qu,$u=t((()=>{kr(),Qu=B(0,`f`),Zu()}));function ed(e){return B(`?${e}h`)}function td(e){return B(`?${e}l`)}var nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd=t((()=>{kr(),nd={CURSOR_VISIBLE:25,ALT_SCREEN:47,ALT_SCREEN_CLEAR:1049,MOUSE_NORMAL:1e3,MOUSE_BUTTON:1002,MOUSE_ANY:1003,MOUSE_SGR:1006,FOCUS_EVENTS:1004,BRACKETED_PASTE:2004,SYNCHRONIZED_UPDATE:2026},rd=ed(nd.SYNCHRONIZED_UPDATE),id=td(nd.SYNCHRONIZED_UPDATE),ad=ed(nd.BRACKETED_PASTE),od=td(nd.BRACKETED_PASTE),sd=ed(nd.FOCUS_EVENTS),cd=td(nd.FOCUS_EVENTS),ld=ed(nd.CURSOR_VISIBLE),ud=td(nd.CURSOR_VISIBLE),dd=ed(nd.ALT_SCREEN_CLEAR),fd=td(nd.ALT_SCREEN_CLEAR),pd=ed(nd.MOUSE_NORMAL)+ed(nd.MOUSE_BUTTON)+ed(nd.MOUSE_ANY)+ed(nd.MOUSE_SGR),md=td(nd.MOUSE_SGR)+td(nd.MOUSE_ANY)+td(nd.MOUSE_BUTTON)+td(nd.MOUSE_NORMAL)}));function gd(e,t,n={}){return new Promise(r=>{let{input:i,timeout:a}=n,o=re(e,t,{timeout:a},(e,t,n)=>{r({code:+!!e,stdout:t??``,stderr:n??``})});i&&o.stdin&&(o.stdin.write(i),o.stdin.end())})}function _d(...e){let t=process.env.TERM_PROGRAM===`kitty`?Nd:`\x07`;return`${Md}${e.join(`;`)}${t}`}function vd(e){return process.env.TMUX?`\x1bPtmux;${e.replaceAll(`\x1B`,`\x1B\x1B`)}\x1b\\`:process.env.STY?`\x1bP${e}\x1b\\`:e}function yd(){return process.platform===`darwin`&&!process.env.SSH_CONNECTION?`native`:process.env.TMUX?`tmux-buffer`:`osc52`}function bd(e){return`Ptmux;${e.replaceAll(`\x1B`,`\x1B\x1B`)}${Nd}`}async function xd(e){if(!process.env.TMUX)return!1;let{code:t}=await gd(`tmux`,process.env.LC_TERMINAL===`iTerm2`?[`load-buffer`,`-`]:[`load-buffer`,`-w`,`-`],{input:e,useCwd:!1,timeout:2e3});return t===0}async function Sd(e){let t=te.from(e,`utf8`).toString(`base64`),n=_d(Fd.CLIPBOARD,`c`,t);return process.env.SSH_CONNECTION||Cd(e),await xd(e)?bd(`]52;c;${t}`):n}function Cd(e){let t={input:e,useCwd:!1,timeout:2e3};switch(process.platform){case`darwin`:gd(`pbcopy`,[],t);return;case`linux`:if(Pd===null)return;if(Pd===`wl-copy`){gd(`wl-copy`,[],t);return}if(Pd===`xclip`){gd(`xclip`,[`-selection`,`clipboard`],t);return}if(Pd===`xsel`){gd(`xsel`,[`--clipboard`,`--input`],t);return}gd(`wl-copy`,[],t).then(e=>{if(e.code===0){Pd=`wl-copy`;return}gd(`xclip`,[`-selection`,`clipboard`],t).then(e=>{if(e.code===0){Pd=`xclip`;return}gd(`xsel`,[`--clipboard`,`--input`],t).then(e=>{Pd=e.code===0?`xsel`:null})})});return;case`win32`:gd(`clip`,[],t);return}}function wd(e){let t=e.indexOf(`;`),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):``,i=parseInt(n,10);if(i===Fd.SET_TITLE_AND_ICON)return{type:`title`,action:{type:`both`,title:r}};if(i===Fd.SET_ICON)return{type:`title`,action:{type:`iconName`,name:r}};if(i===Fd.SET_TITLE)return{type:`title`,action:{type:`windowTitle`,title:r}};if(i===Fd.HYPERLINK){let e=r.split(`;`),t=e[0]??``,n=e.slice(1).join(`;`);if(n===``)return{type:`link`,action:{type:`end`}};let i={};if(t)for(let e of t.split(`:`)){let t=e.indexOf(`=`);t>=0&&(i[e.slice(0,t)]=e.slice(t+1))}return{type:`link`,action:{type:`start`,url:n,params:Object.keys(i).length>0?i:void 0}}}return i===Fd.TAB_STATUS?{type:`tabStatus`,action:Ed(r)}:{type:`unknown`,sequence:`\x1b]${e}`}}function Td(e){let t=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);if(t)return{type:`rgb`,r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)};let n=e.match(/^rgb:([0-9a-f]{1,4})\/([0-9a-f]{1,4})\/([0-9a-f]{1,4})$/i);if(n){let e=e=>Math.round(parseInt(e,16)/(16**e.length-1)*255);return{type:`rgb`,r:e(n[1]),g:e(n[2]),b:e(n[3])}}return null}function Ed(e){let t={};for(let[n,r]of Dd(e))switch(n){case`indicator`:t.indicator=r===``?null:Td(r);break;case`status`:t.status=r===``?null:r;break;case`status-color`:t.statusColor=r===``?null:Td(r);break}return t}function*Dd(e){let t=``,n=``,r=!1,i=!1;for(let a of e)i?(r?n+=a:t+=a,i=!1):a===`\\`?i=!0:a===`;`?(yield[t,n],t=``,n=``,r=!1):a===`=`&&!r?r=!0:r?n+=a:t+=a;(t||r)&&(yield[t,n])}function Od(e,t){if(!e)return Id;let n={id:kd(e),...t},r=Object.entries(n).map(([e,t])=>`${e}=${t}`).join(`:`);return _d(Fd.HYPERLINK,r,e)}function kd(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(t>>>0).toString(36)}function Ad(){return process.env.USER_TYPE===`ant`}function jd(e){let t=[],n=e=>e.type===`rgb`?`#${[e.r,e.g,e.b].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`:``;return`indicator`in e&&t.push(`indicator=${e.indicator?n(e.indicator):``}`),`status`in e&&t.push(`status=${e.status?.replaceAll(`\\`,`\\\\`).replaceAll(`;`,`\\;`)??``}`),`statusColor`in e&&t.push(`status-color=${e.statusColor?n(e.statusColor):``}`),_d(Fd.TAB_STATUS,t.join(`;`))}var Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd=t((()=>{Jn(),Md=`\x1B`+String.fromCharCode(qn.OSC),Nd=`\x1B\\`,Fd={SET_TITLE_AND_ICON:0,SET_ICON:1,SET_TITLE:2,SET_COLOR:4,SET_CWD:7,HYPERLINK:8,ITERM2:9,SET_FG_COLOR:10,SET_BG_COLOR:11,SET_CURSOR_COLOR:12,CLIPBOARD:52,KITTY:99,RESET_COLOR:104,RESET_FG_COLOR:110,RESET_BG_COLOR:111,RESET_CURSOR_COLOR:112,SEMANTIC_PROMPT:133,GHOSTTY:777,TAB_STATUS:21337},Id=_d(Fd.HYPERLINK,``,``),Ld={NOTIFY:0,BADGE:2,PROGRESS:4},Rd={CLEAR:0,SET:1,ERROR:2,INDETERMINATE:3},zd=`${Md}${Fd.ITERM2};${Ld.PROGRESS};${Rd.CLEAR};`,Bd=`${Md}${Fd.SET_TITLE_AND_ICON};`,Vd=_d(Fd.TAB_STATUS,`indicator=;status=;status-color=`)}));function Ud(){if(!process.stdout.isTTY||process.env.WT_SESSION)return!1;if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return!0;let e=(0,Xd.coerce)(process.env.TERM_PROGRAM_VERSION);return e?process.env.TERM_PROGRAM===`ghostty`?(0,Xd.gte)(e.version,`1.2.0`):process.env.TERM_PROGRAM===`iTerm.app`?(0,Xd.gte)(e.version,`3.6.6`):!1:!1}function Wd(){if(process.env.TMUX)return!1;let e=process.env.TERM_PROGRAM,t=process.env.TERM;if(e===`iTerm.app`||e===`WezTerm`||e===`WarpTerminal`||e===`ghostty`||e===`contour`||e===`vscode`||e===`alacritty`||t?.includes(`kitty`)||process.env.KITTY_WINDOW_ID||t===`xterm-ghostty`||t?.startsWith(`foot`)||t?.includes(`alacritty`)||process.env.ZED_TERM||process.env.WT_SESSION)return!0;let n=process.env.VTE_VERSION;return!!(n&&parseInt(n,10)>=6800)}function Gd(e){Zd===void 0&&(Zd=e)}function Kd(){return process.env.TERM_PROGRAM===`vscode`?!0:Zd?.startsWith(`xterm.js`)??!1}function qd(){return Qd.includes(process.env.TERM_PROGRAM??``)}function Jd(){return process.platform===`win32`||!!process.env.WT_SESSION}function Yd(e,t,n=!1){if(t.length===0)return;let r=!n,i=r?rd:``;for(let e of t)switch(e.type){case`stdout`:i+=e.content;break;case`clear`:e.count>0&&(i+=ar(e.count));break;case`clearTerminal`:i+=Zu();break;case`cursorHide`:i+=ud;break;case`cursorShow`:i+=ld;break;case`cursorMove`:i+=ir(e.x,e.y);break;case`cursorTo`:i+=nr(e.col);break;case`carriageReturn`:i+=`\r`;break;case`hyperlink`:i+=Od(e.uri);break;case`styleStr`:i+=e.str;break}r&&(i+=id),e.stdout.write(i)}var Xd,Zd,Qd,$d,ef=t((()=>{Xd=g(),$u(),kr(),hd(),Hd(),Qd=[`iTerm.app`,`kitty`,`WezTerm`,`ghostty`,`tmux`,`windows-terminal`],$d=Wd()}));function tf(e){of=e?`focused`:`blurred`;for(let e of cf)e();if(!e){for(let e of sf)e();sf.clear()}}function nf(){return of!==`blurred`}function rf(){return of}function af(e){return cf.add(e),()=>{cf.delete(e)}}var of,sf,cf,lf=t((()=>{of=`unknown`,sf=new Set,cf=new Set}));function uf(){return{request:B(`>0q`),match:e=>e.type===`xtversion`}}var df,ff,pf=t((()=>{kr(),Hd(),c(),df=B(`c`),ff=class{constructor(e){l(this,`queue`,[]),this.stdout=e}send(e){return new Promise(t=>{this.queue.push({kind:`query`,match:e.match,resolve:e=>t(e)}),this.stdout.write(e.request)})}flush(){return new Promise(e=>{this.queue.push({kind:`sentinel`,resolve:e}),this.stdout.write(df)})}onResponse(e){let t=this.queue.findIndex(t=>t.kind===`query`&&t.match(e));if(t!==-1){let[n]=this.queue.splice(t,1);n?.kind===`query`&&n.resolve(e);return}if(e.type===`da1`){let e=this.queue.findIndex(e=>e.kind===`sentinel`);if(e===-1)return;for(let t of this.queue.splice(0,e+1))t.kind===`query`?t.resolve(void 0):t.resolve()}}}})),mf,hf,gf=t((()=>{mf=n(j(),1),hf=(0,mf.createContext)({exit(){}}),hf.displayName=`InternalAppContext`})),_f=t((()=>{}));function vf({children:e}){let t=(0,yf.useSyncExternalStore)(af,nf),n=(0,yf.useSyncExternalStore)(af,rf),r=(0,yf.useMemo)(()=>({isTerminalFocused:t,terminalFocusState:n}),[t,n]);return(0,bf.jsx)(xf.Provider,{value:r,children:e})}var yf,bf,xf,Sf=t((()=>{yf=n(j(),1),lf(),bf=y(),xf=(0,yf.createContext)({isTerminalFocused:!0,terminalFocusState:`unknown`}),xf.displayName=`TerminalFocusContext`}));function Cf(){let{isTerminalFocused:e}=(0,wf.useContext)(xf);return e}var wf,Tf=t((()=>{wf=n(j(),1),Sf()}));function Ef(e){let t=new Map,n=null,r=e,i=0,a=0;function o(){a=Date.now()-i;for(let e of t.keys())e()}function s(){[...t.values()].some(Boolean)?(n&&(clearInterval(n),n=null),i===0&&(i=Date.now()),n=setInterval(o,r)):n&&(clearInterval(n),n=null)}return{subscribe(e,n){return t.set(e,n),s(),()=>{t.delete(e),s()}},now(){return i===0&&(i=Date.now()),n&&a?a:Date.now()-i},setTickInterval(e){e!==r&&(r=e,s())}}}function Df({children:e}){let[t]=(0,Of.useState)(()=>Ef(16)),n=Cf();return(0,Of.useEffect)(()=>{t.setTickInterval(n?16:jf)},[t,n]),(0,kf.jsx)(Af.Provider,{value:t,children:e})}var Of,kf,Af,jf,Mf=t((()=>{Of=n(j(),1),_f(),Tf(),kf=y(),Af=(0,Of.createContext)(null),jf=32})),Nf,Pf,Ff=t((()=>{Nf=n(j(),1),Pf=(0,Nf.createContext)(()=>{})})),If,Lf=t((()=>{If=(e,t=2)=>e.replace(/^\t+/gm,e=>` `.repeat(e.length*t))})),Rf,zf,Bf=t((()=>{Lf(),Rf=(e,t)=>{let n=[],r=e-t,i=e+t;for(let e=r;e<=i;e++)n.push(e);return n},zf=(e,t,n={})=>{if(typeof e!=`string`)throw TypeError(`Source code is missing.`);if(!t||t<1)throw TypeError("Line number must start from `1`.");let r=If(e).split(/\r?\n/);if(!(t>r.length))return Rf(t,n.around??3).filter(e=>r[e-1]!==void 0).map(e=>({line:e,value:r[e-1]}))}})),Vf=r(((e,t)=>{var n=/[|\\{}()[\]^$+*?.-]/g;t.exports=e=>{if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(n,`\\$&`)}})),Hf=r(((t,n)=>{var r=Vf(),i=typeof process==`object`&&process&&typeof process.cwd==`function`?process.cwd():`.`,a=[].concat(e(`module`).builtinModules,`bootstrap_node`,`node`).map(e=>RegExp(`(?:\\((?:node:)?${e}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${e}(?:\\.js)?:\\d+:\\d+$)`));a.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var o=class e{constructor(t){t={ignoredPackages:[],...t},`internals`in t||(t.internals=e.nodeInternals()),`cwd`in t||(t.cwd=i),this._cwd=t.cwd.replace(/\\/g,`/`),this._internals=[].concat(t.internals,c(t.ignoredPackages)),this._wrapCallSite=t.wrapCallSite||!1}static nodeInternals(){return[...a]}clean(e,t=0){t=` `.repeat(t),Array.isArray(e)||(e=e.split(`
|
|
29
|
+
`)),!/^\s*at /.test(e[0])&&/^\s*at /.test(e[1])&&(e=e.slice(1));let n=!1,r=null,i=[];return e.forEach(e=>{if(e=e.replace(/\\/g,`/`),this._internals.some(t=>t.test(e)))return;let t=/^\s*at /.test(e);n?e=e.trimEnd().replace(/^(\s+)at /,`$1`):(e=e.trim(),t&&(e=e.slice(3))),e=e.replace(`${this._cwd}/`,``),e&&(t?(r&&(i.push(r),r=null),i.push(e)):(n=!0,r=e))}),i.map(e=>`${t}${e}\n`).join(``)}captureString(e,t=this.captureString){typeof e==`function`&&(t=e,e=1/0);let{stackTraceLimit:n}=Error;e&&(Error.stackTraceLimit=e);let r={};Error.captureStackTrace(r,t);let{stack:i}=r;return Error.stackTraceLimit=n,this.clean(i)}capture(e,t=this.capture){typeof e==`function`&&(t=e,e=1/0);let{prepareStackTrace:n,stackTraceLimit:r}=Error;Error.prepareStackTrace=(e,t)=>this._wrapCallSite?t.map(this._wrapCallSite):t,e&&(Error.stackTraceLimit=e);let i={};Error.captureStackTrace(i,t);let{stack:a}=i;return Object.assign(Error,{prepareStackTrace:n,stackTraceLimit:r}),a}at(e=this.at){let[t]=this.capture(1,e);if(!t)return{};let n={line:t.getLineNumber(),column:t.getColumnNumber()};s(n,t.getFileName(),this._cwd),t.isConstructor()&&Object.defineProperty(n,`constructor`,{value:!0,configurable:!0}),t.isEval()&&(n.evalOrigin=t.getEvalOrigin()),t.isNative()&&(n.native=!0);let r;try{r=t.getTypeName()}catch{}r&&r!==`Object`&&r!==`[object Object]`&&(n.type=r);let i=t.getFunctionName();i&&(n.function=i);let a=t.getMethodName();return a&&i!==a&&(n.method=a),n}parseLine(e){let t=e&&e.match(l);if(!t)return null;let n=t[1]===`new`,r=t[2],i=t[3],a=t[4],o=Number(t[5]),c=Number(t[6]),d=t[7],f=t[8],p=t[9],m=t[10]===`native`,h=t[11]===`)`,g,_={};if(f&&(_.line=Number(f)),p&&(_.column=Number(p)),h&&d){let e=0;for(let t=d.length-1;t>0;t--)if(d.charAt(t)===`)`)e++;else if(d.charAt(t)===`(`&&d.charAt(t-1)===` `&&(e--,e===-1&&d.charAt(t-1)===` `)){let e=d.slice(0,t-1);d=d.slice(t+1),r+=` (${e}`;break}}if(r){let e=r.match(u);e&&(r=e[1],g=e[2])}return s(_,d,this._cwd),n&&Object.defineProperty(_,`constructor`,{value:!0,configurable:!0}),i&&(_.evalOrigin=i,_.evalLine=o,_.evalColumn=c,_.evalFile=a&&a.replace(/\\/g,`/`)),m&&(_.native=!0),r&&(_.function=r),g&&r!==g&&(_.method=g),_}};function s(e,t,n){t&&(t=t.replace(/\\/g,`/`),t.startsWith(`${n}/`)&&(t=t.slice(n.length+1)),e.file=t)}function c(e){if(e.length===0)return[];let t=e.map(e=>r(e));return RegExp(`[\/\\\\]node_modules[\/\\\\](?:${t.join(`|`)})[\/\\\\][^:]+:\\d+:\\d+`)}var l=RegExp(`^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$`),u=/^(.*?) \[as (.*?)\]$/;n.exports=o}));function Uf({children:e,flexWrap:t=`nowrap`,flexDirection:n=`row`,flexGrow:r=0,flexShrink:i=1,ref:a,tabIndex:o,autoFocus:s,onClick:c,onFocus:l,onFocusCapture:u,onBlur:d,onBlurCapture:f,onMouseEnter:p,onMouseLeave:m,onKeyDown:h,onKeyDownCapture:g,..._}){return jl(_.margin,`margin`),jl(_.marginX,`marginX`),jl(_.marginY,`marginY`),jl(_.marginTop,`marginTop`),jl(_.marginBottom,`marginBottom`),jl(_.marginLeft,`marginLeft`),jl(_.marginRight,`marginRight`),jl(_.padding,`padding`),jl(_.paddingX,`paddingX`),jl(_.paddingY,`paddingY`),jl(_.paddingTop,`paddingTop`),jl(_.paddingBottom,`paddingBottom`),jl(_.paddingLeft,`paddingLeft`),jl(_.paddingRight,`paddingRight`),jl(_.gap,`gap`),jl(_.columnGap,`columnGap`),jl(_.rowGap,`rowGap`),(0,Wf.jsx)(`ink-box`,{ref:a,tabIndex:o,autoFocus:s,onClick:c,onFocus:l,onFocusCapture:u,onBlur:d,onBlurCapture:f,onMouseEnter:p,onMouseLeave:m,onKeyDown:h,onKeyDownCapture:g,style:{flexWrap:t,flexDirection:n,flexGrow:r,flexShrink:i,..._,overflowX:_.overflowX??_.overflow??`visible`,overflowY:_.overflowY??_.overflow??`visible`},children:e})}var Wf,Gf=t((()=>{j(),Ml(),Wf=y()}));function Kf({color:e,backgroundColor:t,bold:n,dim:r,italic:i=!1,underline:a=!1,strikethrough:o=!1,inverse:s=!1,wrap:c=`wrap`,children:l}){if(l==null)return null;let u={...e&&{color:e},...t&&{backgroundColor:t},...r&&{dim:r},...n&&{bold:n},...i&&{italic:i},...a&&{underline:a},...o&&{strikethrough:o},...s&&{inverse:s}};return(0,qf.jsx)(`ink-text`,{style:Jf[c],textStyles:u,children:l})}var qf,Jf,Yf=t((()=>{j(),qf=y(),Jf={wrap:{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`wrap`},"wrap-trim":{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`wrap-trim`},end:{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`end`},middle:{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`middle`},"truncate-end":{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`truncate-end`},truncate:{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`truncate`},"truncate-middle":{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`truncate-middle`},"truncate-start":{flexGrow:0,flexShrink:1,flexDirection:`row`,textWrap:`truncate-start`}}}));function Xf(){return tp??(tp=new Qf.default({cwd:process.cwd(),internals:Qf.default.nodeInternals()}))}function Zf({error:e}){let t=e.stack?e.stack.split(`
|
|
30
|
+
`).slice(1):void 0,n=t?Xf().parseLine(t[0]):void 0,r=ep(n?.file),i,a=0;if(r&&n?.line)try{if(i=zf(T(r,`utf8`),n.line),i)for(let{line:e}of i)a=Math.max(a,String(e).length)}catch{}return(0,$f.jsxs)(Uf,{flexDirection:`column`,padding:1,children:[(0,$f.jsxs)(Uf,{children:[(0,$f.jsxs)(Kf,{backgroundColor:`ansi:red`,color:`ansi:white`,children:[` `,`ERROR`,` `]}),(0,$f.jsxs)(Kf,{children:[` `,e.message]})]}),n&&r&&(0,$f.jsx)(Uf,{marginTop:1,children:(0,$f.jsxs)(Kf,{dim:!0,children:[r,`:`,n.line,`:`,n.column]})}),n&&i&&(0,$f.jsx)(Uf,{marginTop:1,flexDirection:`column`,children:i.map(({line:e,value:t})=>(0,$f.jsxs)(Uf,{children:[(0,$f.jsx)(Uf,{width:a+1,children:(0,$f.jsxs)(Kf,{dim:e!==n.line,backgroundColor:e===n.line?`ansi:red`:void 0,color:e===n.line?`ansi:white`:void 0,children:[String(e).padStart(a,` `),`:`]})}),(0,$f.jsx)(Kf,{backgroundColor:e===n.line?`ansi:red`:void 0,color:e===n.line?`ansi:white`:void 0,children:` `+t},e)]},e))}),e.stack&&(0,$f.jsx)(Uf,{marginTop:1,flexDirection:`column`,children:e.stack.split(`
|
|
31
|
+
`).slice(1).map(e=>{let t=Xf().parseLine(e);return t?(0,$f.jsxs)(Uf,{children:[(0,$f.jsx)(Kf,{dim:!0,children:`- `}),(0,$f.jsx)(Kf,{bold:!0,children:t.function}),(0,$f.jsxs)(Kf,{dim:!0,children:[` `,`(`,ep(t.file)??``,`:`,t.line,`:`,t.column,`)`]})]},e):(0,$f.jsxs)(Uf,{children:[(0,$f.jsx)(Kf,{dim:!0,children:`- `}),(0,$f.jsx)(Kf,{bold:!0,children:e})]},e)})})]})}var Qf,$f,ep,tp,np=t((()=>{Bf(),j(),Qf=n(Hf(),1),Gf(),Yf(),$f=y(),ep=e=>e?.replace(`file://${process.cwd()}/`,``)})),rp,ip,ap=t((()=>{rp=n(j(),1),Wn(),ip=(0,rp.createContext)({stdin:process.stdin,internal_eventEmitter:new Un,setRawMode(){},isRawModeSupported:!1,internal_exitOnCtrlC:!0,internal_querier:null}),ip.displayName=`InternalStdinContext`})),op,sp,cp=t((()=>{op=n(j(),1),sp=(0,op.createContext)(null)}));function lp(e){return e===`1`||e===`true`}function up(e,t,n,r){t.some(e=>e.kind===`key`||e.kind===`mouse`&&!(e.button&32&&(e.button&3)==3))&&mp.updateLastInteractionTime();for(let n of t){if(n.kind===`response`){e.querier.onResponse(n.response);continue}if(n.kind===`mouse`){dp(e,n);continue}let t=n.sequence;if(t===Cr){e.handleTerminalFocus(!0);let t=new ui(`terminalfocus`);e.internal_eventEmitter.emit(`terminalfocus`,t);continue}if(t===wr){e.handleTerminalFocus(!1),e.props.selection.isDragging&&(Q(e.props.selection),e.props.onSelectionChange());let t=new ui(`terminalblur`);e.internal_eventEmitter.emit(`terminalblur`,t);continue}if(nf()||tf(!0),n.name===`z`&&n.ctrl&&hp){e.handleSuspend();continue}e.handleInput(t);let r=new ci(n);e.internal_eventEmitter.emit(`input`,r),e.props.dispatchKeyboardEvent(n)}}function dp(e,t){if(mp.isMouseClicksDisabled())return;let n=e.props.selection,r=t.col-1,i=t.row-1,a=t.button&3;if(t.action===`press`){if(t.button&32&&a===3){if(n.isDragging&&(Q(n),e.props.onSelectionChange()),r===e.lastHoverCol&&i===e.lastHoverRow)return;e.lastHoverCol=r,e.lastHoverRow=i,e.props.onHoverAt(r,i);return}if(a!==0){e.clickCount=0;return}if(t.button&32){e.props.onSelectionDrag(r,i);return}n.isDragging&&(Q(n),e.props.onSelectionChange());let o=Date.now();if(e.clickCount=o-e.lastClickTime<_p&&Math.abs(r-e.lastClickCol)<=vp&&Math.abs(i-e.lastClickRow)<=vp?e.clickCount+1:1,e.lastClickTime=o,e.lastClickCol=r,e.lastClickRow=i,e.clickCount>=2){e.pendingHyperlinkTimer&&(clearTimeout(e.pendingHyperlinkTimer),e.pendingHyperlinkTimer=null);let t=e.clickCount===2?2:3;e.props.onMultiClick(r,i,t);return}X(n,r,i),n.lastPressHadAlt=(t.button&8)!=0,e.props.onSelectionChange();return}if(a!==0){if(!n.isDragging)return;Q(n),e.props.onSelectionChange();return}if(Q(n),!Ru(n)&&n.anchor&&!e.props.onClickAt(r,i)){let t=e.props.getHyperlinkAt(r,i);t&&process.env.TERM_PROGRAM!==`vscode`&&!Kd()&&(e.pendingHyperlinkTimer&&clearTimeout(e.pendingHyperlinkTimer),e.pendingHyperlinkTimer=setTimeout((e,t)=>{e.pendingHyperlinkTimer=null,e.props.onOpenHyperlink(t)},_p,e,t))}e.props.onSelectionChange()}var fp,pp,mp,hp,gp,_p,vp,yp,bp=t((()=>{fp=n(j(),1),pp=y(),c(),Wn(),li(),di(),oi(),El(),qu(),ef(),lf(),pf(),kr(),hd(),gf(),Mf(),Ff(),np(),ap(),Sf(),cp(),mp={updateLastInteractionTime:()=>{},stopCapturingEarlyInput:()=>{},isMouseClicksDisabled:()=>!1,logError:e=>console.error(e),logForDebugging:(e,t)=>{}},hp=process.platform!==`win32`,gp=5e3,_p=500,vp=1,yp=class extends fp.PureComponent{constructor(...e){super(...e),l(this,`state`,{error:void 0}),l(this,`rawModeEnabledCount`,0),l(this,`internal_eventEmitter`,new Un),l(this,`keyParseState`,ti),l(this,`incompleteEscapeTimer`,null),l(this,`NORMAL_TIMEOUT`,50),l(this,`PASTE_TIMEOUT`,500),l(this,`querier`,new ff(this.props.stdout)),l(this,`lastClickTime`,0),l(this,`lastClickCol`,-1),l(this,`lastClickRow`,-1),l(this,`clickCount`,0),l(this,`pendingHyperlinkTimer`,null),l(this,`lastHoverCol`,-1),l(this,`lastHoverRow`,-1),l(this,`lastStdinTime`,Date.now()),l(this,`handleSetRawMode`,e=>{let{stdin:t}=this.props;if(!this.isRawModeSupported())throw t===process.stdin?Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
|
|
32
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`):Error(`Raw mode is not supported on the stdin provided to Ink.
|
|
33
|
+
Read about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported`);if(t.setEncoding(`utf8`),e){if(this.rawModeEnabledCount===0){mp.stopCapturingEarlyInput();let e=t.listeners(`readable`);for(let n of e)n!==this.handleReadable&&t.removeListener(`readable`,n);t.ref(),t.setRawMode(!0),t.addListener(`readable`,this.handleReadable),this.props.stdout.write(ad),this.props.stdout.write(sd),qd()&&(this.props.stdout.write(Tr),this.props.stdout.write(Dr)),setImmediate(()=>{Promise.all([this.querier.send(uf()),this.querier.flush()]).then(([e])=>{e?(Gd(e.name),mp.logForDebugging(`XTVERSION: terminal identified as "${e.name}"`)):mp.logForDebugging(`XTVERSION: no reply (terminal ignored query)`)})})}this.rawModeEnabledCount++;return}if(--this.rawModeEnabledCount===0){let e=this.internal_eventEmitter.listenerCount(`input`);if(e>0){this.rawModeEnabledCount=e;return}this.props.stdout.write(Or),this.props.stdout.write(Er),this.props.stdout.write(cd),this.props.stdout.write(od),t.setRawMode(!1),t.removeListener(`readable`,this.handleReadable),t.unref()}}),l(this,`flushIncomplete`,()=>{if(this.incompleteEscapeTimer=null,this.keyParseState.incomplete){if(this.props.stdin.readableLength>0){this.incompleteEscapeTimer=setTimeout(this.flushIncomplete,this.NORMAL_TIMEOUT);return}this.processInput(null)}}),l(this,`processInput`,e=>{let[t,n]=Lr(this.keyParseState,e);this.keyParseState=n,t.length>0&&Tl.discreteUpdates(up,this,t,void 0,void 0),this.keyParseState.incomplete&&(this.incompleteEscapeTimer&&clearTimeout(this.incompleteEscapeTimer),this.incompleteEscapeTimer=setTimeout(this.flushIncomplete,this.keyParseState.mode===`IN_PASTE`?this.PASTE_TIMEOUT:this.NORMAL_TIMEOUT))}),l(this,`handleReadable`,()=>{let e=Date.now();e-this.lastStdinTime>gp&&this.props.onStdinResume?.(),this.lastStdinTime=e;try{let e;for(;(e=this.props.stdin.read())!==null;)this.processInput(e)}catch(e){mp.logError(e);let{stdin:t}=this.props;this.rawModeEnabledCount>0&&!t.listeners(`readable`).includes(this.handleReadable)&&(mp.logForDebugging(`handleReadable: re-attaching stdin readable listener after error recovery`,{level:`warn`}),t.addListener(`readable`,this.handleReadable))}}),l(this,`handleInput`,e=>{e===``&&this.props.exitOnCtrlC&&this.handleExit()}),l(this,`handleExit`,e=>{this.isRawModeSupported()&&this.handleSetRawMode(!1),this.props.onExit(e)}),l(this,`handleTerminalFocus`,e=>{tf(e)}),l(this,`handleSuspend`,()=>{if(!this.isRawModeSupported())return;let e=this.rawModeEnabledCount;for(;this.rawModeEnabledCount>0;)this.handleSetRawMode(!1);this.props.stdout.isTTY&&this.props.stdout.write(ld+cd+md),this.internal_eventEmitter.emit(`suspend`);let t=()=>{for(let t=0;t<e;t++)this.isRawModeSupported()&&this.handleSetRawMode(!0);this.props.stdout.isTTY&&(lp(process.env.CLAUDE_CODE_ACCESSIBILITY)||this.props.stdout.write(ud),this.props.stdout.write(sd)),this.internal_eventEmitter.emit(`resume`),process.removeListener(`SIGCONT`,t)};process.on(`SIGCONT`,t),process.kill(process.pid,`SIGSTOP`)})}static getDerivedStateFromError(e){return{error:{message:e.message,stack:e.stack}}}isRawModeSupported(){return this.props.stdin.isTTY}render(){return(0,pp.jsx)(sp.Provider,{value:{columns:this.props.terminalColumns,rows:this.props.terminalRows},children:(0,pp.jsx)(hf.Provider,{value:{exit:this.handleExit},children:(0,pp.jsx)(ip.Provider,{value:{stdin:this.props.stdin,setRawMode:this.handleSetRawMode,isRawModeSupported:this.isRawModeSupported(),internal_exitOnCtrlC:this.props.exitOnCtrlC,internal_eventEmitter:this.internal_eventEmitter,internal_querier:this.querier},children:(0,pp.jsx)(vf,{children:(0,pp.jsx)(Df,{children:(0,pp.jsx)(Pf.Provider,{value:this.props.onCursorDeclaration??(()=>{}),children:this.state.error?(0,pp.jsx)(Zf,{error:this.state.error}):this.props.children})})})})})})}componentDidMount(){this.props.stdout.isTTY&&!lp(process.env.CLAUDE_CODE_ACCESSIBILITY)&&this.props.stdout.write(ud)}componentWillUnmount(){if(this.props.stdout.isTTY&&this.props.stdout.write(ld),this.incompleteEscapeTimer&&(clearTimeout(this.incompleteEscapeTimer),this.incompleteEscapeTimer=null),this.pendingHyperlinkTimer&&(clearTimeout(this.pendingHyperlinkTimer),this.pendingHyperlinkTimer=null),this.isRawModeSupported())this.handleSetRawMode(!1);else try{this.props.stdin.unref()}catch{}}componentDidCatch(e){this.handleExit(e)}},l(yp,`displayName`,`InternalApp`)}));function xp(e){let t=e.sequence??``,n=e.name??``;if(e.ctrl)return n;if(t.length===1){let e=t.charCodeAt(0);if(e>=32&&e!==127)return t}return n||t}var Sp,Cp=t((()=>{Mc(),c(),Sp=class extends jc{constructor(e){super(`keydown`,{bubbles:!0,cancelable:!0}),l(this,`key`,void 0),l(this,`ctrl`,void 0),l(this,`shift`,void 0),l(this,`meta`,void 0),l(this,`superKey`,void 0),l(this,`fn`,void 0),this.key=xp(e),this.ctrl=e.ctrl,this.shift=e.shift,this.meta=e.meta||e.option,this.superKey=e.super,this.fn=e.fn}}}));function wp(e,t,n,r,i){return{screen:zl(0,0,n,r,i),viewport:{width:t,height:e},cursor:{x:0,y:0,visible:!0}}}var Tp=t((()=>{Y()})),Ep,Dp=t((()=>{Hn(),c(),Ep=class extends Vn{constructor(e,t,n){super(),l(this,`col`,void 0),l(this,`row`,void 0),l(this,`localCol`,0),l(this,`localRow`,0),l(this,`cellIsBlank`,void 0),this.col=e,this.row=t,this.cellIsBlank=n}}}));function Op(e,t,n){let r=ka.get(e);if(!r||t<r.x||t>=r.x+r.width||n<r.y||n>=r.y+r.height)return null;for(let r=e.childNodes.length-1;r>=0;r--){let i=e.childNodes[r];if(i.nodeName===`#text`)continue;let a=Op(i,t,n);if(a)return a}return e}function kp(e,t,n,r=!1){let i=Op(e,t,n)??void 0;if(!i)return!1;if(e.focusManager){let t=i;for(;t;){if(typeof t.attributes.tabIndex==`number`){e.focusManager.handleClickFocus(t);break}t=t.parentNode}}let a=new Ep(t,n,r),o=!1;for(;i;){let e=i._eventHandlers?.onClick;if(e){o=!0;let r=ka.get(i);if(r&&(a.localCol=t-r.x,a.localRow=n-r.y),e(a),a.didStopImmediatePropagation())return!0}i=i.parentNode}return o}function Ap(e,t,n,r){let i=new Set,a=Op(e,t,n)??void 0;for(;a;){let e=a._eventHandlers;(e?.onMouseEnter||e?.onMouseLeave)&&i.add(a),a=a.parentNode}for(let e of r)i.has(e)||(r.delete(e),e.parentNode&&e._eventHandlers?.onMouseLeave?.());for(let e of i)r.has(e)||(r.add(e),e._eventHandlers?.onMouseEnter?.())}var jp=t((()=>{Dp(),Ma()})),Mp,Np=t((()=>{Mp=new Map}));function Pp(e){let t=Number(e.split(`.`)[2]);return Number.isFinite(t)&&t<17763}function Fp(e,t){return e===`0`?`off`:e===`2`||e===`always`?`always`:e===`1`||t?`periodic`:`off`}function Ip(e){if(e===void 0||e.trim()===``)return 1e3;let t=Number(e);return Number.isFinite(t)?Math.min(1e4,Math.max(100,Math.floor(t))):1e3}function Lp(){return Vp===void 0&&(Vp=Fp(process.env.CLAUDE_CODE_LEGACY_CONSOLE,process.platform===`win32`&&Pp(ee()))),Vp}function Rp(){return Lp()!==`off`}function zp(){return Hp===void 0&&(Hp=Ip(process.env.CLAUDE_CODE_LEGACY_CONSOLE_RESET_MS)),Hp}function Bp(e){let t=e||80;return Rp()?Math.max(20,t-1):t}var Vp,Hp,Up=t((()=>{}));function Wp(e,t,n){return t===n?t:(e.push({type:`hyperlink`,uri:n??``}),n)}function Gp(e,t,n,r){let i=t.transition(n,r);return i.length>0&&e.push({type:`styleStr`,str:i}),r}function Kp(e,t){let n=``;for(let r=0;r<e.width;r++)n+=Gl(e,r,t)??` `;return n.trimEnd()}function qp(e,t,n,r){let i=new rm({x:0,y:0},e.viewport.width);return Jp(i,e,n),[{type:`clearTerminal`,reason:t,debug:r},...i.diff]}function Jp(e,t,n){Yp(e,t,0,t.screen.height,n)}function Yp(e,t,n,r,i){let a=i.none,o,s=-1,{width:c,cells:l,charPool:u,hyperlinkPool:d}=t.screen,f=n*c;for(let t=n;t<r;t+=1){if(e.cursor.y<t){let n=t-e.cursor.y;e.txn(e=>{let t=Array(1+n);t[0]=em;for(let e=0;e<n;e++)t[1+e]=tm;return[t,{dx:-e.x,dy:n}]})}s=-1;for(let n=0;n<c;n+=1,f+=1){let r=Wl(l,u,d,f,s);if(!r)continue;Zp(e,n,t);let c=r.hyperlink;o=Wp(e.diff,o,c),Xp(e,r,i.transition(a,r.styleId))&&(a=r.styleId,s=r.styleId)}a=Gp(e.diff,i,a,i.none),o=Wp(e.diff,o,void 0),e.txn(e=>[[em,tm],{dx:-e.x,dy:1}])}return Gp(e.diff,i,a,i.none),Wp(e.diff,o,void 0),e}function Xp(e,t,n){let r=t.width===J.Wide?2:1,i=e.cursor.x,a=e.viewportWidth;if(r===2&&i<a){let e=t.char.length>2?a:a+1;if(i+2>=e)return!1}let o=e.diff;n.length>0&&o.push({type:`styleStr`,str:n});let s=r===2&&Qp(t.char);return s&&i+1<a&&(o.push({type:`cursorTo`,col:i+2}),o.push({type:`stdout`,content:` `}),o.push({type:`cursorTo`,col:i+1})),o.push({type:`stdout`,content:t.char}),s&&o.push({type:`cursorTo`,col:i+r+1}),i>=a?(e.cursor.x=r,e.cursor.y++):e.cursor.x=i+r,!0}function Zp(e,t,n){e.txn(r=>{let i=t-r.x,a=n-r.y;return r.x>=e.viewportWidth||a!==0?[[em,{type:`cursorMove`,x:t,y:a}],{dx:i,dy:a}]:[[{type:`cursorMove`,x:i,y:a}],{dx:i,dy:a}]})}function Qp(e){let t=e.codePointAt(0);if(t===void 0)return!1;if(t>=129648&&t<=129791||t>=129792&&t<=130047)return!0;if(e.length>=2){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)===65039)return!0}return!1}var $p,em,tm,nm,rm,im=t((()=>{Bo(),c(),Y(),kr(),Hd(),Up(),$p=e=>{},em={type:`carriageReturn`},tm={type:`stdout`,content:`
|
|
34
|
+
`},nm=class{constructor(e){l(this,`state`,void 0),l(this,`lastLegacyReset`,0),this.options=e,this.state={previousOutput:``}}renderPreviousOutput_DEPRECATED(e){return this.options.isTTY?this.getRenderOpsForDone(e):[tm]}reset(){this.state.previousOutput=``}renderFullFrame(e){let{screen:t}=e,n=[],r=[],i;for(let e=0;e<t.height;e++){let a=``;for(let n=0;n<t.width;n++){let o=Hl(t,n,e);if(o&&o.width!==J.SpacerTail){o.hyperlink!==i&&(i!==void 0&&(a+=Id),o.hyperlink!==void 0&&(a+=Od(o.hyperlink)),i=o.hyperlink);let e=this.options.stylePool.get(o.styleId),t=wo(r,e);t.length>0&&(a+=mo(t),r=e),a+=o.char}}i!==void 0&&(a+=Id,i=void 0);let o=wo(r,[]);o.length>0&&(a+=mo(o),r=[]),n.push(a.trimEnd())}return n.length===0?[]:[{type:`stdout`,content:n.join(`
|
|
35
|
+
`)}]}getRenderOpsForDone(e){return this.state.previousOutput=``,e.cursor.visible?[]:[{type:`cursorShow`}]}render(e,t,n=!1,r=!0){if(!this.options.isTTY)return this.renderFullFrame(t);let i=performance.now(),a=this.options.stylePool;if(t.viewport.height<e.viewport.height||e.viewport.width!==0&&t.viewport.width!==e.viewport.width)return qp(t,`resize`,a);if(Rp()&&(Lp()===`always`||i-this.lastLegacyReset>=zp()))return this.lastLegacyReset=i,qp(t,`clear`,a);let o=[];if(n&&t.scrollHint&&r){let{top:n,bottom:r,delta:i}=t.scrollHint;n>=0&&r<e.screen.height&&r<t.screen.height&&(Xl(e.screen,n,r,i),o=[{type:`stdout`,content:cr(n+1,r+1)+(i>0?or(i):sr(-i))+br+gr}])}let s=e.cursor.y>=e.screen.height,c=t.screen.height>e.screen.height,l=s&&e.screen.height>=e.viewport.height,u=t.screen.height<e.screen.height,d=t.screen.height<=e.viewport.height;if(l&&d&&u)return $p(`Full reset (shrink->below): prevHeight=${e.screen.height}, nextHeight=${t.screen.height}, viewport=${e.viewport.height}`),qp(t,`offscreen`,a);if(e.screen.height>=e.viewport.height&&e.screen.height>0&&s&&!c){let n=e.screen.height-e.viewport.height+1,r=-1;if($l(e.screen,t.screen,(e,t)=>{if(t<n)return r=t,!0}),r>=0){let n=Kp(e.screen,r),i=Kp(t.screen,r);return qp(t,`offscreen`,a,{triggerY:r,prevLine:n,nextLine:i})}}let f=new rm(e.cursor,t.viewport.width),p=Math.max(t.screen.height,1)-Math.max(e.screen.height,1),m=p<0,h=p>0;if(m){let n=e.screen.height-t.screen.height;if(n>e.viewport.height)return qp(t,`offscreen`,this.options.stylePool);f.txn(e=>[[{type:`clear`,count:n},{type:`cursorMove`,x:0,y:-1}],{dx:-e.x,dy:-n}])}let g=+!!l,_=h?Math.max(0,e.screen.height-e.viewport.height+g):Math.max(e.screen.height,t.screen.height)-t.viewport.height+g,v=a.none,y,b=!1,x=-1;if($l(e.screen,t.screen,(n,r,i,o)=>{if(!(h&&r>=e.screen.height)&&!(o&&(o.width===J.SpacerTail||o.width===J.SpacerHead))&&!(i&&(i.width===J.SpacerTail||i.width===J.SpacerHead)&&!o)&&!(o&&Ll(t.screen,n,r)&&!i)){if(r<_)return b=!0,x=r,!0;if(Zp(f,n,r),o){let e=o.hyperlink;y=Wp(f.diff,y,e),Xp(f,o,a.transition(v,o.styleId))&&(v=o.styleId)}else if(i){let e=v,t=y;v=a.none,y=void 0,f.txn(()=>{let n=[];return Gp(n,a,e,a.none),Wp(n,t,void 0),n.push({type:`stdout`,content:` `}),[n,{dx:1,dy:0}]})}}}),b)return qp(t,`offscreen`,a,{triggerY:x,prevLine:Kp(e.screen,x),nextLine:Kp(t.screen,x)});v=Gp(f.diff,a,v,a.none),y=Wp(f.diff,y,void 0),h&&Yp(f,t,e.screen.height,t.screen.height,a),n||(t.cursor.y>=t.screen.height?f.txn(e=>{let n=t.cursor.y-e.y;if(n>0){let t=Array(1+n);t[0]=em;for(let e=0;e<n;e++)t[1+e]=tm;return[t,{dx:-e.x,dy:n}]}let r=t.cursor.y-e.y;if(r!==0||e.x!==t.cursor.x){let n=[em];return n.push({type:`cursorMove`,x:t.cursor.x,y:r}),[n,{dx:t.cursor.x-e.x,dy:r}]}return[[],{dx:0,dy:0}]}):Zp(f,t.cursor.x,t.cursor.y));let S=performance.now()-i;if(S>50){let e=t.screen.damage,n=e?`${e.width}x${e.height} at (${e.x},${e.y})`:`none`;$p(`Slow render: ${S.toFixed(1)}ms, screen: ${t.screen.height}x${t.screen.width}, damage: ${n}, changes: ${f.diff.length}`)}return o.length>0?[...o,...f.diff]:f.diff}},rm=class{constructor(e,t){l(this,`cursor`,void 0),l(this,`diff`,[]),this.viewportWidth=t,this.cursor={...e}}txn(e){let[t,n]=e(this.cursor);for(let e of t)this.diff.push(e);this.cursor.x+=n.dx,this.cursor.y+=n.dy}}}));function am(e){if(e.length<=1)return e;let t=[],n=0;for(let r of e){let e=r.type;if(e===`stdout`){if(r.content===``)continue}else if(e===`cursorMove`){if(r.x===0&&r.y===0)continue}else if(e===`clear`&&r.count===0)continue;if(n>0){let i=n-1,a=t[i],o=a.type;if(e===`cursorMove`&&o===`cursorMove`){t[i]={type:`cursorMove`,x:a.x+r.x,y:a.y+r.y};continue}if(e===`cursorTo`&&o===`cursorTo`){t[i]=r;continue}if(e===`styleStr`&&o===`styleStr`){t[i]={type:`styleStr`,str:a.str+r.str};continue}if(e===`hyperlink`&&o===`hyperlink`&&r.uri===a.uri)continue;if(e===`cursorShow`&&o===`cursorHide`||e===`cursorHide`&&o===`cursorShow`){t.pop(),n--;continue}}t.push(r),n++}return t}var om=t((()=>{}));function sm(){return function(e){var t={R:`13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73`,EN:`1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9`,ES:`17,2,6dp+1,f+1,av,16vr,mx+1,4o,2`,ET:`z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj`,AN:`16o+5,2j+9,2+1,35,ed,1ff2+9,87+u`,CS:`18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b`,B:`a,3,f+2,2v,690`,S:`9,2,k`,WS:`c,k,4f4,1vk+a,u,1j,335`,ON:`x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i`,BN:`0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1`,NSM:`lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n`,AL:`16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d`,LRO:`6ct`,RLO:`6cu`,LRE:`6cq`,RLE:`6cr`,PDF:`6cs`,LRI:`6ee`,RLI:`6ef`,FSI:`6eg`,PDI:`6eh`},n={},r={};n.L=1,r[1]=`L`,Object.keys(t).forEach(function(e,t){n[e]=1<<t+1,r[n[e]]=e}),Object.freeze(n);var i=n.LRI|n.RLI|n.FSI,a=n.L|n.R|n.AL,o=n.B|n.S|n.WS|n.ON|n.FSI|n.LRI|n.RLI|n.PDI,s=n.BN|n.RLE|n.LRE|n.RLO|n.LRO|n.PDF,c=n.S|n.WS|n.B|i|n.PDI|s,l=null;function u(){if(!l){l=new Map;var e=function(e){if(t.hasOwnProperty(e)){var r=0;t[e].split(`,`).forEach(function(t){var i=t.split(`+`),a=i[0],o=i[1];a=parseInt(a,36),o=o?parseInt(o,36):0,l.set(r+=a,n[e]);for(var s=0;s<o;s++)l.set(++r,n[e])})}};for(var r in t)e(r)}}function d(e){return u(),l.get(e.codePointAt(0))||n.L}function f(e){return r[d(e)]}var p={pairs:`14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1`,canonical:`6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye`};function m(e,t){var n=36,r=0,i=new Map,a=t&&new Map,o;return e.split(`,`).forEach(function e(s){if(s.indexOf(`+`)!==-1)for(var c=+s;c--;)e(o);else{o=s;var l=s.split(`>`),u=l[0],d=l[1];u=String.fromCodePoint(r+=parseInt(u,n)),d=String.fromCodePoint(r+=parseInt(d,n)),i.set(u,d),t&&a.set(d,u)}}),{map:i,reverseMap:a}}var h,g,_;function v(){if(!h){var e=m(p.pairs,!0),t=e.map,n=e.reverseMap;h=t,g=n,_=m(p.canonical,!1).map}}function y(e){return v(),h.get(e)||null}function b(e){return v(),g.get(e)||null}function x(e){return v(),_.get(e)||null}var S=n.L,C=n.R,w=n.EN,T=n.ES,E=n.ET,D=n.AN,O=n.CS,ee=n.B,te=n.S,k=n.ON,ne=n.BN,re=n.NSM,ie=n.AL,ae=n.LRO,oe=n.RLO,se=n.LRE,ce=n.RLE,le=n.PDF,ue=n.LRI,de=n.RLI,fe=n.FSI,pe=n.PDI;function A(e,t){for(var n=125,r=new Uint32Array(e.length),l=0;l<e.length;l++)r[l]=d(e[l]);var u=new Map;function f(e,t){var n=r[e];r[e]=t,u.set(n,u.get(n)-1),n&o&&u.set(o,u.get(o)-1),u.set(t,(u.get(t)||0)+1),t&o&&u.set(o,(u.get(o)||0)+1)}for(var p=new Uint8Array(e.length),m=new Map,h=[],g=null,_=0;_<e.length;_++)g||h.push(g={start:_,end:e.length-1,level:t===`rtl`?1:t===`ltr`?0:nn(_,!1)}),r[_]&ee&&(g.end=_,g=null);for(var v=ce|se|oe|ae|i|pe|le|ee,A=function(e){return e+(e&1?1:2)},me=function(e){return e+(e&1?2:1)},he=0;he<h.length;he++){g=h[he];var ge=[{_level:g.level,_override:0,_isolate:0}],_e=void 0,ve=0,ye=0,be=0;u.clear();for(var xe=g.start;xe<=g.end;xe++){var Se=r[xe];if(_e=ge[ge.length-1],u.set(Se,(u.get(Se)||0)+1),Se&o&&u.set(o,(u.get(o)||0)+1),Se&v)if(Se&(ce|se)){p[xe]=_e._level;var Ce=(Se===ce?me:A)(_e._level);Ce<=n&&!ve&&!ye?ge.push({_level:Ce,_override:0,_isolate:0}):ve||ye++}else if(Se&(oe|ae)){p[xe]=_e._level;var we=(Se===oe?me:A)(_e._level);we<=n&&!ve&&!ye?ge.push({_level:we,_override:Se&oe?C:S,_isolate:0}):ve||ye++}else if(Se&i){Se&fe&&(Se=nn(xe+1,!0)===1?de:ue),p[xe]=_e._level,_e._override&&f(xe,_e._override);var Te=(Se===de?me:A)(_e._level);Te<=n&&ve===0&&ye===0?(be++,ge.push({_level:Te,_override:0,_isolate:1,_isolInitIndex:xe})):ve++}else if(Se&pe){if(ve>0)ve--;else if(be>0){for(ye=0;!ge[ge.length-1]._isolate;)ge.pop();var Ee=ge[ge.length-1]._isolInitIndex;Ee!=null&&(m.set(Ee,xe),m.set(xe,Ee)),ge.pop(),be--}_e=ge[ge.length-1],p[xe]=_e._level,_e._override&&f(xe,_e._override)}else Se&le?(ve===0&&(ye>0?ye--:!_e._isolate&&ge.length>1&&(ge.pop(),_e=ge[ge.length-1])),p[xe]=_e._level):Se&ee&&(p[xe]=g.level);else p[xe]=_e._level,_e._override&&Se!==ne&&f(xe,_e._override)}for(var De=[],Oe=null,ke=g.start;ke<=g.end;ke++){var Ae=r[ke];if(!(Ae&s)){var je=p[ke],Me=Ae&i,Ne=Ae===pe;Oe&&je===Oe._level?(Oe._end=ke,Oe._endsWithIsolInit=Me):De.push(Oe={_start:ke,_end:ke,_level:je,_startsWithPDI:Ne,_endsWithIsolInit:Me})}}for(var j=[],Pe=0;Pe<De.length;Pe++){var Fe=De[Pe];if(!Fe._startsWithPDI||Fe._startsWithPDI&&!m.has(Fe._start)){for(var M=[Oe=Fe],Ie=void 0;Oe&&Oe._endsWithIsolInit&&(Ie=m.get(Oe._end))!=null;)for(var Le=Pe+1;Le<De.length;Le++)if(De[Le]._start===Ie){M.push(Oe=De[Le]);break}for(var N=[],Re=0;Re<M.length;Re++)for(var ze=M[Re],Be=ze._start;Be<=ze._end;Be++)N.push(Be);for(var Ve=p[N[0]],P=g.level,He=N[0]-1;He>=0;He--)if(!(r[He]&s)){P=p[He];break}var Ue=N[N.length-1],We=p[Ue],Ge=g.level;if(!(r[Ue]&i)){for(var Ke=Ue+1;Ke<=g.end;Ke++)if(!(r[Ke]&s)){Ge=p[Ke];break}}j.push({_seqIndices:N,_sosType:Math.max(P,Ve)%2?C:S,_eosType:Math.max(Ge,We)%2?C:S})}}for(var qe=0;qe<j.length;qe++){var Je=j[qe],F=Je._seqIndices,I=Je._sosType,Ye=Je._eosType,Xe=p[F[0]]&1?C:S;if(u.get(re))for(var Ze=0;Ze<F.length;Ze++){var Qe=F[Ze];if(r[Qe]&re){for(var $e=I,et=Ze-1;et>=0;et--)if(!(r[F[et]]&s)){$e=r[F[et]];break}f(Qe,$e&(i|pe)?k:$e)}}if(u.get(w))for(var tt=0;tt<F.length;tt++){var nt=F[tt];if(r[nt]&w)for(var rt=tt-1;rt>=-1;rt--){var it=rt===-1?I:r[F[rt]];if(it&a){it===ie&&f(nt,D);break}}}if(u.get(ie))for(var at=0;at<F.length;at++){var ot=F[at];r[ot]&ie&&f(ot,C)}if(u.get(T)||u.get(O))for(var st=1;st<F.length-1;st++){var ct=F[st];if(r[ct]&(T|O)){for(var lt=0,ut=0,dt=st-1;dt>=0&&(lt=r[F[dt]],lt&s);dt--);for(var ft=st+1;ft<F.length&&(ut=r[F[ft]],ut&s);ft++);lt===ut&&(r[ct]===T?lt===w:lt&(w|D))&&f(ct,lt)}}if(u.get(w)){for(var pt=0;pt<F.length;pt++)if(r[F[pt]]&w){for(var mt=pt-1;mt>=0&&r[F[mt]]&(E|s);mt--)f(F[mt],w);for(pt++;pt<F.length&&r[F[pt]]&(E|s|w);pt++)r[F[pt]]!==w&&f(F[pt],w)}}if(u.get(E)||u.get(T)||u.get(O))for(var ht=0;ht<F.length;ht++){var gt=F[ht];if(r[gt]&(E|T|O)){f(gt,k);for(var _t=ht-1;_t>=0&&r[F[_t]]&s;_t--)f(F[_t],k);for(var vt=ht+1;vt<F.length&&r[F[vt]]&s;vt++)f(F[vt],k)}}if(u.get(w))for(var yt=0,bt=I;yt<F.length;yt++){var xt=F[yt],St=r[xt];St&w?bt===S&&f(xt,S):St&a&&(bt=St)}if(u.get(o)){for(var Ct=C|w|D,wt=Ct|S,Tt=[],Et=[],Dt=0;Dt<F.length;Dt++)if(r[F[Dt]]&o){var Ot=e[F[Dt]],kt=void 0;if(y(Ot)!==null)if(Et.length<63)Et.push({char:Ot,seqIndex:Dt});else break;else if((kt=b(Ot))!==null)for(var At=Et.length-1;At>=0;At--){var jt=Et[At].char;if(jt===kt||jt===b(x(Ot))||y(x(jt))===Ot){Tt.push([Et[At].seqIndex,Dt]),Et.length=At;break}}}Tt.sort(function(e,t){return e[0]-t[0]});for(var Mt=0;Mt<Tt.length;Mt++){for(var Nt=Tt[Mt],L=Nt[0],Pt=Nt[1],Ft=!1,It=0,Lt=L+1;Lt<Pt;Lt++){var Rt=F[Lt];if(r[Rt]&wt){Ft=!0;var zt=r[Rt]&Ct?C:S;if(zt===Xe){It=zt;break}}}if(Ft&&!It){It=I;for(var Bt=L-1;Bt>=0;Bt--){var Vt=F[Bt];if(r[Vt]&wt){var Ht=r[Vt]&Ct?C:S;It=Ht===Xe?Xe:Ht;break}}}if(It){if(r[F[L]]=r[F[Pt]]=It,It!==Xe){for(var Ut=L+1;Ut<F.length;Ut++)if(!(r[F[Ut]]&s)){d(e[F[Ut]])&re&&(r[F[Ut]]=It);break}}if(It!==Xe){for(var Wt=Pt+1;Wt<F.length;Wt++)if(!(r[F[Wt]]&s)){d(e[F[Wt]])&re&&(r[F[Wt]]=It);break}}}}for(var Gt=0;Gt<F.length;Gt++)if(r[F[Gt]]&o){for(var Kt=Gt,qt=Gt,Jt=I,Yt=Gt-1;Yt>=0;Yt--)if(r[F[Yt]]&s)Kt=Yt;else{Jt=r[F[Yt]]&Ct?C:S;break}for(var Xt=Ye,Zt=Gt+1;Zt<F.length;Zt++)if(r[F[Zt]]&(o|s))qt=Zt;else{Xt=r[F[Zt]]&Ct?C:S;break}for(var Qt=Kt;Qt<=qt;Qt++)r[F[Qt]]=Jt===Xt?Jt:Xe;Gt=qt}}}for(var R=g.start;R<=g.end;R++){var $t=p[R],en=r[R];if($t&1?en&(S|w|D)&&p[R]++:en&C?p[R]++:en&(D|w)&&(p[R]+=2),en&s&&(p[R]=R===0?g.level:p[R-1]),R===g.end||d(e[R])&(te|ee))for(var tn=R;tn>=0&&d(e[tn])&c;tn--)p[tn]=g.level}}return{levels:p,paragraphs:h};function nn(t,n){for(var a=t;a<e.length;a++){var o=r[a];if(o&(C|ie))return 1;if(o&(ee|S)||n&&o===pe)return 0;if(o&i){var s=rn(a);a=s===-1?e.length:s}}return 0}function rn(t){for(var n=1,a=t+1;a<e.length;a++){var o=r[a];if(o&ee)break;if(o&pe){if(--n===0)return a}else o&i&&n++}return-1}}var me=`14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1`,he;function ge(){if(!he){var e=m(me,!0),t=e.map;e.reverseMap.forEach(function(e,n){t.set(n,e)}),he=t}}function _e(e){return ge(),he.get(e)||null}function ve(e,t,n,r){var i=e.length;n=Math.max(0,n==null?0:+n),r=Math.min(i-1,r==null?i-1:+r);for(var a=new Map,o=n;o<=r;o++)if(t[o]&1){var s=_e(e[o]);s!==null&&a.set(o,s)}return a}function ye(e,t,n,r){var i=e.length;n=Math.max(0,n==null?0:+n),r=Math.min(i-1,r==null?i-1:+r);var a=[];return t.paragraphs.forEach(function(i){var o=Math.max(n,i.start),s=Math.min(r,i.end);if(o<s){for(var l=t.levels.slice(o,s+1),u=s;u>=o&&d(e[u])&c;u--)l[u]=i.level;for(var f=i.level,p=1/0,m=0;m<l.length;m++){var h=l[m];h>f&&(f=h),h<p&&(p=h|1)}for(var g=f;g>=p;g--)for(var _=0;_<l.length;_++)if(l[_]>=g){for(var v=_;_+1<l.length&&l[_+1]>=g;)_++;_>v&&a.push([v+o,_+o])}}}),a}function be(e,t,n,r){var i=xe(e,t,n,r),a=[].concat(e);return i.forEach(function(n,r){a[r]=(t.levels[n]&1?_e(e[n]):null)||e[n]}),a.join(``)}function xe(e,t,n,r){for(var i=ye(e,t,n,r),a=[],o=0;o<e.length;o++)a[o]=o;return i.forEach(function(e){for(var t=e[0],n=e[1],r=a.slice(t,n+1),i=r.length;i--;)a[n-i]=r[i]}),a}return e.closingToOpeningBracket=b,e.getBidiCharType=d,e.getBidiCharTypeName=f,e.getCanonicalBracket=x,e.getEmbeddingLevels=A,e.getMirroredCharacter=_e,e.getMirroredCharactersMap=ve,e.getReorderSegments=ye,e.getReorderedIndices=xe,e.getReorderedString=be,e.openingToClosingBracket=y,Object.defineProperty(e,`__esModule`,{value:!0}),e}({})}var cm=t((()=>{}));function lm(){return gm===void 0&&(gm=process.platform===`win32`||typeof process.env.WT_SESSION==`string`||process.env.TERM_PROGRAM===`vscode`),gm}function um(){return hm||(hm=sm()),hm}function dm(e){if(!lm()||e.length===0)return e;let t=e.map(e=>e.value).join(``);if(!mm(t))return e;let{levels:n}=um().getEmbeddingLevels(t,`auto`),r=[],i=0;for(let t=0;t<e.length;t++)r.push(n[i]),i+=e[t].value.length;let a=[...e],o=Math.max(...r);for(let e=o;e>=1;e--){let t=0;for(;t<a.length;)if(r[t]>=e){let n=t+1;for(;n<a.length&&r[n]>=e;)n++;fm(a,t,n-1),pm(r,t,n-1),t=n}else t++}return a}function fm(e,t,n){for(;t<n;){let r=e[t];e[t]=e[n],e[n]=r,t++,n--}}function pm(e,t,n){for(;t<n;){let r=e[t];e[t]=e[n],e[n]=r,t++,n--}}function mm(e){return/[\u0590-\u05FF\uFB1D-\uFB4F\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF\u0780-\u07BF\u0700-\u074F]/u.test(e)}var hm,gm,_m=t((()=>{cm()}));function vm(e){let t=0,n=0;for(;n<=e.length;){let r=e.indexOf(`
|
|
36
|
+
`,n),i=r===-1?e.substring(n):e.substring(n,r);if(t=Math.max(t,Sa(i)),r===-1)break;n=r+1}return t}var ym=t((()=>{Ta()}));function bm(e,t){return e?{x1:xm(e.x1,t.x1),x2:Sm(e.x2,t.x2),y1:xm(e.y1,t.y1),y2:Sm(e.y2,t.y2)}:t}function xm(e,t){return e===void 0?t:t===void 0?e:Math.max(e,t)}function Sm(e,t){return e===void 0?t:t===void 0?e:Math.min(e,t)}function Cm(e,t){if(e===t)return!0;let n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(let r=0;r<n;r++)if(e[r].code!==t[r].code)return!1;return!0}function wm(e,t){let n=e.length;if(n===0)return[];let r=[],i=[],a=e[0].styles;for(let o=0;o<n;o++){let n=e[o],s=n.styles;i.length>0&&!Cm(s,a)&&(Tm(i.join(``),a,t,r),i.length=0),i.push(n.value),a=s}return i.length>0&&Tm(i.join(``),a,t,r),r}function Tm(e,t,n,r){let i=Zl(t)??void 0,a=i!==void 0||t.some(e=>e.code.length>=Cu.length&&e.code.startsWith(Cu))?Ql(t):t,o=n.intern(a);for(let{segment:t}of ua().segment(e))r.push({value:t,width:ba(t),styleId:o,hyperlink:i})}function Em(e,t,n,r,i,a,o){let s=o.get(t);s||(s=dm(wm(Eo(Lo(t)),a)),o.set(t,s));let c=n;for(let t=0;t<s.length;t++){let n=s[t],o=n.value.codePointAt(0);if(o!==void 0&&o<=31){if(o===9){let t=8-c%8;for(let n=0;n<t&&c<i;n++)Kl(e,c,r,{char:` `,styleId:a.none,width:J.Narrow,hyperlink:void 0}),c++}else if(o===27){let e=s[t+1]?.value,n=e?.codePointAt(0);if(e===`(`||e===`)`||e===`*`||e===`+`)t+=2;else if(e===`[`)for(t++;t<s.length-1;){t++;let e=s[t]?.value.codePointAt(0);if(e!==void 0&&e>=64&&e<=126)break}else if(e===`]`||e===`P`||e===`_`||e===`^`||e===`X`)for(t++;t<s.length-1;){t++;let e=s[t]?.value;if(e===`\x07`)break;if(e===`\x1B`&&s[t+1]?.value===`\\`){t++;break}}else n!==void 0&&n>=48&&n<=126&&t++}continue}let l=n.width;if(l===0)continue;let u=l>=2;if(u&&c+2>i){Kl(e,c,r,{char:` `,styleId:a.none,width:J.SpacerHead,hyperlink:void 0}),c++;continue}Kl(e,c,r,{char:n.value,styleId:n.styleId,width:u?J.Wide:J.Narrow,hyperlink:n.hyperlink}),c+=u?2:1}return c}var Dm,Om,km=t((()=>{Bo(),fa(),Wo(),c(),_m(),kl(),Y(),xa(),ym(),Dm=e=>{},Om=class{constructor(e){l(this,`width`,void 0),l(this,`height`,void 0),l(this,`stylePool`,void 0),l(this,`screen`,void 0),l(this,`operations`,[]),l(this,`charCache`,new Map);let{width:t,height:n,stylePool:r,screen:i}=e;this.width=t,this.height=n,this.stylePool=r,this.screen=i,Bl(i,t,n)}reset(e,t,n){this.width=e,this.height=t,this.screen=n,this.operations.length=0,Bl(n,e,t),this.charCache.size>16384&&this.charCache.clear()}blit(e,t,n,r,i){this.operations.push({type:`blit`,src:e,x:t,y:n,width:r,height:i})}shift(e,t,n){this.operations.push({type:`shift`,top:e,bottom:t,n})}clear(e,t){this.operations.push({type:`clear`,region:e,fromAbsolute:t})}noSelect(e){this.operations.push({type:`noSelect`,region:e})}write(e,t,n,r){n&&this.operations.push({type:`write`,x:e,y:t,text:n,softWrap:r})}clip(e){this.operations.push({type:`clip`,clip:e})}unclip(){this.operations.push({type:`unclip`})}get(){let e=this.screen,t=this.width,n=this.height,r=0,i=0,a=[];for(let r of this.operations){if(r.type!==`clear`)continue;let{x:i,y:o,width:s,height:c}=r.region,l=Math.max(0,i),u=Math.max(0,o),d=Math.min(i+s,t),f=Math.min(o+c,n);if(l>=d||u>=f)continue;let p={x:l,y:u,width:d-l,height:f-u};e.damage=e.damage?Dl(e.damage,p):p,r.fromAbsolute&&a.push(p)}let o=[];for(let s of this.operations)switch(s.type){case`clear`:continue;case`clip`:o.push(bm(o.at(-1),s.clip));continue;case`unclip`:o.pop();continue;case`blit`:{let{src:i,x:c,y:l,width:u,height:d}=s,f=o.at(-1),p=Math.max(c,f?.x1??0),m=Math.max(l,f?.y1??0),h=Math.min(l+d,n,i.height,f?.y2??1/0),g=Math.min(c+u,t,i.width,f?.x2??1/0);if(p>=g||m>=h)continue;if(a.length===0){Yl(e,i,p,m,g,h),r+=(h-m)*(g-p);continue}let _=m;for(let t=m;t<=h;t++)(t<h&&a.some(e=>t>=e.y&&t<e.y+e.height&&p>=e.x&&g<=e.x+e.width)||t===h)&&(t>_&&(Yl(e,i,p,_,g,t),r+=(t-_)*(g-p)),_=t+1);continue}case`shift`:Xl(e,s.top,s.bottom,s.n);continue;case`write`:{let{text:r,softWrap:a}=s,{x:c,y:l}=s,u=r.split(`
|
|
37
|
+
`),d=0,f=0,p=o.at(-1);if(p){let e=typeof p?.x1==`number`&&typeof p?.x2==`number`,t=typeof p?.y1==`number`&&typeof p?.y2==`number`;if(e){let e=vm(r);if(c+e<=p.x1||c>=p.x2)continue}if(t){let e=u.length;if(l+e<=p.y1||l>=p.y2)continue}if(e&&(u=u.map(e=>{let t=c<p.x1?p.x1-c:0,n=ba(e),r=c+n>p.x2?p.x2-c:n,i=Uo(e,t,r);return ba(i)>r-t&&(i=Uo(e,t,r-1)),i}),c<p.x1&&(c=p.x1)),t){let e=l<p.y1?p.y1-l:0,t=u.length,n=l+t>p.y2?p.y2-l:t;a&&e>0&&a[e]===!0&&(f=c+ba(u[e-1])),u=u.slice(e,n),d=e,l<p.y1&&(l=p.y1)}}let m=e.softWrap,h=0;for(let r of u){let o=l+h;if(o>=n)break;let s=Em(e,r,c,o,t,this.stylePool,this.charCache);i+=s-c,a&&(m[o]=a[d+h]===!0?f:0,f=s),h++}continue}}for(let t of this.operations)if(t.type===`noSelect`){let{x:n,y:r,width:i,height:a}=t.region;ou(e,n,r,i,a)}let s=r+i;return s>1e3&&i>r&&Dm(`High write ratio: blit=${r}, write=${i} (${(i/s*100).toFixed(1)}% writes), screen=${n}x${t}`),e}}}));function Am(e,t=1,n={}){let{indent:r=` `,includeEmptyLines:i=!1}=n;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!=`number`)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof r!=`string`)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r}\``);if(t===0)return e;let a=i?/^/gm:/^(?!\s*$)/gm;return e.replace(a,r.repeat(t))}var jm=t((()=>{})),Mm,Nm=t((()=>{Ti(),Mm=e=>e.getComputedWidth()-e.getComputedPadding(V.Left)-e.getComputedPadding(V.Right)-e.getComputedBorder(V.Left)-e.getComputedBorder(V.Right)})),Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um=t((()=>{Pm={topLeft:`┌`,top:`─`,topRight:`┐`,right:`│`,bottomRight:`┘`,bottom:`─`,bottomLeft:`└`,left:`│`},Fm={topLeft:`╔`,top:`═`,topRight:`╗`,right:`║`,bottomRight:`╝`,bottom:`═`,bottomLeft:`╚`,left:`║`},Im={topLeft:`╭`,top:`─`,topRight:`╮`,right:`│`,bottomRight:`╯`,bottom:`─`,bottomLeft:`╰`,left:`│`},Lm={topLeft:`┏`,top:`━`,topRight:`┓`,right:`┃`,bottomRight:`┛`,bottom:`━`,bottomLeft:`┗`,left:`┃`},Rm={topLeft:`╓`,top:`─`,topRight:`╖`,right:`║`,bottomRight:`╜`,bottom:`─`,bottomLeft:`╙`,left:`║`},zm={topLeft:`╒`,top:`═`,topRight:`╕`,right:`│`,bottomRight:`╛`,bottom:`═`,bottomLeft:`╘`,left:`│`},Bm={topLeft:`+`,top:`-`,topRight:`+`,right:`|`,bottomRight:`+`,bottom:`-`,bottomLeft:`+`,left:`|`},Vm={topLeft:`↘`,top:`↓`,topRight:`↙`,right:`←`,bottomRight:`↖`,bottom:`↑`,bottomLeft:`↗`,left:`→`},Hm={single:Pm,double:Fm,round:Im,bold:Lm,singleDouble:Rm,doubleSingle:zm,classic:Bm,arrow:Vm}})),Wm,Gm=t((()=>{Um(),Wm=Hm}));function Km(e,t,n,r=0,i){let a=ba(t),o=e.length;if(a>=o-2)return[``,t.substring(0,o),``];let s;return s=n===`center`?Math.floor((o-a)/2):n===`start`?r+1:o-a-r-1,s=Math.max(1,Math.min(s,o-a-1)),[e.substring(0,1)+i.repeat(s-1),t,i.repeat(o-s-a-1)+e.substring(o-1)]}function qm(e,t,n){let r=In(e,t);return n&&(r=z.dim(r)),r}var Jm,Ym,Xm=t((()=>{Mn(),Gm(),Bn(),xa(),Jm={dashed:{top:`╌`,left:`╎`,right:`╎`,bottom:`╌`,topLeft:` `,topRight:` `,bottomLeft:` `,bottomRight:` `}},Ym=(e,t,n,r)=>{if(n.style.borderStyle){let i=Math.floor(n.yogaNode.getComputedWidth()),a=Math.floor(n.yogaNode.getComputedHeight()),o=typeof n.style.borderStyle==`string`?Jm[n.style.borderStyle]??Wm[n.style.borderStyle]:n.style.borderStyle,s=n.style.borderTopColor??n.style.borderColor,c=n.style.borderBottomColor??n.style.borderColor,l=n.style.borderLeftColor??n.style.borderColor,u=n.style.borderRightColor??n.style.borderColor,d=n.style.borderTopDimColor??n.style.borderDimColor,f=n.style.borderBottomDimColor??n.style.borderDimColor,p=n.style.borderLeftDimColor??n.style.borderDimColor,m=n.style.borderRightDimColor??n.style.borderDimColor,h=n.style.borderTop!==!1,g=n.style.borderBottom!==!1,_=n.style.borderLeft!==!1,v=n.style.borderRight!==!1,y=Math.max(0,i-+!!_-!!v),b=h?(_?o.topLeft:``)+o.top.repeat(y)+(v?o.topRight:``):``,x;if(h&&n.style.borderText?.position===`top`){let[e,t,r]=Km(b,n.style.borderText.content,n.style.borderText.align,n.style.borderText.offset,o.top);x=qm(e,s,d)+t+qm(r,s,d)}else h&&(x=qm(b,s,d));let S=a;h&&--S,g&&--S,S=Math.max(0,S);let C=(In(o.left,l)+`
|
|
38
|
+
`).repeat(S);p&&(C=z.dim(C));let w=(In(o.right,u)+`
|
|
39
|
+
`).repeat(S);m&&(w=z.dim(w));let T=g?(_?o.bottomLeft:``)+o.bottom.repeat(y)+(v?o.bottomRight:``):``,E;if(g&&n.style.borderText?.position===`bottom`){let[e,t,r]=Km(T,n.style.borderText.content,n.style.borderText.align,n.style.borderText.offset,o.bottom);E=qm(e,c,f)+t+qm(r,c,f)}else g&&(E=qm(T,c,f));let D=+!!h;x&&r.write(e,t,x),_&&r.write(e,t+D,C),v&&r.write(e+i-1,t+D,w),E&&r.write(e,t+a-1,E)}}}));function Zm(){return process.env.TERM_PROGRAM===`vscode`||Kd()}function Qm(){yh=!1}function $m(){return yh}function eh(){bh=null,xh=Sh,Sh=[]}function th(){return bh}function nh(){Ch=null}function rh(){return Ch}function ih(){let e=wh;return wh=null,e}function ah(e,t,n){let r=t>0?1:-1,i=Math.abs(t),a=0;i>Ah&&(a+=r*(i-Ah),i=Ah);let o=i<=Eh?i:i<Dh?Oh:kh;a+=r*o;let s=i-o,c=Math.max(1,n-1),l=Math.abs(a);return l>c?(e.pendingScrollDelta=r*(s+(l-c)),r*c):(e.pendingScrollDelta=s>0?r*s:void 0,a)}function oh(e,t,n){let r=Math.abs(t),i=Math.max(1,n-1),a=Math.min(i,Math.max(Th,r*3>>2));if(r<=a)return e.pendingScrollDelta=void 0,t;let o=t>0?a:-a;return e.pendingScrollDelta=t-o,o}function sh(e,t){return`${jh}8;;${t}${Mh}${e}${jh}8;;${Mh}`}function ch(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n].text.length;for(let e=0;e<r;e++)t.push(n)}return t}function lh(e,t,n,r,i=!1){let a=e.split(`
|
|
40
|
+
`),o=[],s=0;for(let e=0;e<a.length;e++){let c=a[e];if(i&&c.length>0){let e=/\s/.test(c[0]);if(s<r.length&&/\s/.test(r[s])&&!e)for(;s<r.length&&/\s/.test(r[s]);)s++}let l=``,u=0,d=n[s]??0;for(let e=0;e<c.length;e++){let r=n[s]??d;if(r!==d){let n=c.slice(u,e),i=t[d];if(i){let e=Fn(n,i.styles);i.hyperlink&&(e=sh(e,i.hyperlink)),l+=e}else l+=n;u=e,d=r}s++}let f=c.slice(u),p=t[d];if(p){let e=Fn(f,p.styles);p.hyperlink&&(e=sh(e,p.hyperlink)),l+=e}else l+=f;if(o.push(l),s<r.length&&r[s]===`
|
|
41
|
+
`&&s++,i&&e<a.length-1){let t=a[e+1],n=t.length>0?t[0]:null;for(;s<r.length&&/\s/.test(r[s])&&!(n!==null&&r[s]===n);)s++}}return o.join(`
|
|
42
|
+
`)}function uh(e,t,n){if(n!==`wrap`&&n!==`wrap-trim`)return{wrapped:Zs(e,t,n),softWrap:void 0};let r=e.split(`
|
|
43
|
+
`),i=[],a=[];for(let e of r){let r=Zs(e,t,n).split(`
|
|
44
|
+
`);for(let e=0;e<r.length;e++)i.push(r[e]),a.push(e>0)}return{wrapped:i.join(`
|
|
45
|
+
`),softWrap:a}}function dh(e,t,n){let r=e.childNodes[0]?.yogaNode;if(r){let e=r.getComputedLeft(),i=r.getComputedTop();t=`
|
|
46
|
+
`.repeat(i)+Am(t,e),n&&i>0&&n.unshift(...Array(i).fill(!1))}return t}function fh(e,t,{offsetX:n=0,offsetY:r=0,prevScreen:i,skipSelfBlit:a=!1,inheritedBackgroundColor:o}){let{yogaNode:s}=e;if(s){if(s.getDisplay()===_i.None){if(e.dirty){let n=ka.get(e);n&&(t.clear({x:Math.floor(n.x),y:Math.floor(n.y),width:Math.floor(n.width),height:Math.floor(n.height)}),vh(e),yh=!0)}return}let c=n+s.getComputedLeft(),l=s.getComputedTop(),u=r+l,d=s.getComputedWidth(),f=s.getComputedHeight();u<0&&e.style.position===`absolute`&&(u=0);let p=ka.get(e);if(!e.dirty&&!a&&e.pendingScrollDelta===void 0&&p&&p.x===c&&p.y===u&&p.width===d&&p.height===f&&i){let n=Math.floor(c),r=Math.floor(u),a=Math.floor(d),o=Math.floor(f);t.blit(i,n,r,a,o),e.style.position===`absolute`&&Sh.push(p),gh(e,t,i,n,r,a,o);return}let m=p!==void 0&&(p.x!==c||p.y!==u||p.width!==d||p.height!==f);m&&(yh=!0),p&&(e.dirty||m)&&t.clear({x:Math.floor(p.x),y:Math.floor(p.y),width:Math.floor(p.width),height:Math.floor(p.height)},e.style.position===`absolute`);let h=Aa.get(e),g=h!==void 0;if(g){yh=!0;for(let e of h)t.clear({x:Math.floor(e.x),y:Math.floor(e.y),width:Math.floor(e.width),height:Math.floor(e.height)});Aa.delete(e)}if(f===0&&hh(e,s)){ka.set(e,{x:c,y:u,width:d,height:f,top:l}),e.dirty=!1;return}if(e.nodeName===`ink-raw-ansi`){let n=e.attributes.rawText;n&&t.write(c,u,n)}else if(e.nodeName===`ink-text`){let n=Na(e,o?{backgroundColor:o}:void 0),r=n.map(e=>e.text).join(``);if(r.length>0){let i=Math.min(Mm(s),t.width-c),a=e.style.textWrap??`wrap`,o=vm(r)>i,l,d;if(o&&n.length===1){let e=n[0],t=uh(r,i,a);d=t.softWrap,l=t.wrapped.split(`
|
|
47
|
+
`).map(t=>{let n=Fn(t,e.styles);return e.hyperlink&&(n=sh(n,e.hyperlink)),n}).join(`
|
|
48
|
+
`)}else if(o){let e=uh(r,i,a);d=e.softWrap;let t=ch(n);l=lh(e.wrapped,n,t,r,a===`wrap-trim`)}else l=n.map(e=>{let t=Fn(e.text,e.styles);return e.hyperlink&&(t=sh(t,e.hyperlink)),t}).join(``);l=dh(e,l,d),t.write(c,u,l,d)}}else if(e.nodeName===`ink-box`){let n=e.style.backgroundColor??o;if(e.style.noSelect){let n=Math.floor(c),r=e.style.noSelect===`from-left-edge`;t.noSelect({x:r?0:n,y:Math.floor(u),width:r?n+Math.floor(d):Math.floor(d),height:Math.floor(f)})}let r=e.style.overflowX??e.style.overflow,a=e.style.overflowY??e.style.overflow,l=r===`hidden`||r===`scroll`,h=a===`hidden`||a===`scroll`,_=a===`scroll`,v=l||h,y,b;if(v){let e=l?c+s.getComputedBorder(V.Left):void 0,n=l?c+s.getComputedWidth()-s.getComputedBorder(V.Right):void 0;y=h?u+s.getComputedBorder(V.Top):void 0,b=h?u+s.getComputedHeight()-s.getComputedBorder(V.Bottom):void 0,t.clip({x1:e,x2:n,y1:y,y2:b})}if(_){let r=s.getComputedPadding(V.Top),a=Math.max(0,(b??u+f)-(y??u)-r-s.getComputedPadding(V.Bottom)),o=e.childNodes.find(e=>e.yogaNode),l=o?.yogaNode,h=l?.getComputedHeight()??0,_=e.scrollHeight??h,v=e.scrollViewportHeight??a;e.scrollHeight=h,e.scrollViewportHeight=a,e.scrollViewportTop=(y??u)+r;let x=Math.max(0,h-a);if(e.scrollAnchor){let t=e.scrollAnchor.el.yogaNode?.getComputedTop();t!=null&&(e.scrollTop=t+e.scrollAnchor.offset,e.pendingScrollDelta=void 0),e.scrollAnchor=void 0}let S=e.scrollTop??0,C=e.stickyScroll??!!e.attributes.stickyScroll,w=Math.max(0,_-v);(C||h>=_&&S>=w)&&(e.pendingScrollDelta??0)>=0&&(e.scrollTop=x,e.pendingScrollDelta=void 0,e.stickyScroll===!1&&S>=w&&(e.stickyScroll=!0));let T=(e.scrollTop??0)-S;if(T>0){let t=e.scrollViewportTop??0;wh={delta:T,viewportTop:t,viewportBottom:t+a-1}}let E=e.scrollTop??0,D=e.pendingScrollDelta,O=e.scrollClampMin,ee=e.scrollClampMax,te=O!==void 0&&ee!==void 0;if(D!==void 0&&D!==0){let t=te&&(D<0&&E<O||D>0&&E>ee)?Math.min(4,a>>3):a;E+=Zm()?ah(e,D,t):oh(e,D,t)}else D===0&&(e.pendingScrollDelta=void 0);let k=Math.max(0,Math.min(E,x)),ne=te?Math.max(O,Math.min(k,ee)):k;if(e.scrollTop=k,k!==E&&(e.pendingScrollDelta=void 0),e.pendingScrollDelta!==void 0&&(Ch=e),k=ne,o&&l){let e=c+l.getComputedLeft(),s=u+l.getComputedTop()-k,h=ka.get(o),_=null;if(h&&h.y!==s){let e=h.y-s,t=Math.floor(u+l.getComputedTop()),n=t+a-1;p?.y===u&&p.height===f&&a>0&&Math.abs(e)<a?(_={top:t,bottom:n,delta:e},bh=_):yh=!0}let v=l.getComputedHeight(),x=v-(h?.height??v),S=!_||x===0||_.delta>0&&x===_.delta;if(S||(bh=null),_&&i&&S){let{top:l,bottom:f,delta:p}=_,m=Math.floor(d);t.blit(i,Math.floor(c),l,m,f-l+1),t.shift(l,f,p);let h=p>0?f-p+1:l,v=p>0?f:l-p-1;t.clear({x:Math.floor(c),y:h,width:m,height:v-h+1}),t.clip({x1:void 0,x2:void 0,y1:h,y2:v+1});let b=o.dirty?new Set(o.childNodes.filter(e=>e.dirty)):null;if(_h(o,t,e,s,g,void 0,h-s,v+1-s,n,!0),t.unclip(),b){let i=h-s,l=v+1-s,d=` `.repeat(m),f=0;for(let m of o.childNodes){let o=m,h=b.has(m);if(!h&&f===0&&ka.has(o))continue;let g=o.yogaNode;if(!g)continue;let _=g.getComputedTop(),v=g.getComputedHeight(),x=_+v;if(h){let e=ka.get(o);f+=v-(e?e.height:0)}if(x<=k||_>=k+a||_>=i&&x<=l)continue;let S=Math.floor(s+_);if(!h){let e=ka.get(o);if(e&&Math.floor(e.y)-p===S)continue}let C=Math.min(Math.floor(s+x),Math.floor((y??u)+r+a));if(S<C){let r=Array(C-S).fill(d).join(`
|
|
49
|
+
`);t.write(Math.floor(c),S,r),t.clip({x1:void 0,x2:void 0,y1:S,y2:C}),fh(o,t,{offsetX:e,offsetY:s,prevScreen:void 0,inheritedBackgroundColor:n}),t.unclip()}}}let x=xh.length?` `.repeat(m):``;for(let r of xh){if(r.y>=f+1||r.y+r.height<=l)continue;let i=Math.max(l,Math.floor(r.y)-p),a=Math.min(f+1,Math.floor(r.y+r.height)-p);if(i>=h&&a<=v+1||i>=a)continue;let u=Array(a-i).fill(x).join(`
|
|
50
|
+
`);t.write(Math.floor(c),i,u),t.clip({x1:void 0,x2:void 0,y1:i,y2:a}),_h(o,t,e,s,g,void 0,i-s,a-s,n,!0),t.unclip()}}else{let r=h&&h.y!==s;r&&y!==void 0&&b!==void 0&&t.clear({x:Math.floor(c),y:Math.floor(y),width:Math.floor(d),height:Math.floor(b-y)}),_h(o,t,e,s,g,r||m?void 0:i,k,k+a,n)}ka.set(o,{x:e,y:s,width:l.getComputedWidth(),height:l.getComputedHeight()}),o.dirty=!1}}else{let r=e.style.backgroundColor;if(r||e.style.opaque){let e=s.getComputedBorder(V.Left),n=s.getComputedBorder(V.Right),i=s.getComputedBorder(V.Top),a=s.getComputedBorder(V.Bottom),o=Math.floor(d)-e-n,l=Math.floor(f)-i-a;if(o>0&&l>0){let n=` `.repeat(o),a=r?Fn(n,{backgroundColor:r}):n,s=Array(l).fill(a).join(`
|
|
51
|
+
`);t.write(c+e,u+i,s)}}ph(e,t,c,u,g,r||e.style.opaque?void 0:i,n)}v&&t.unclip(),Ym(c,u,e,t)}else e.nodeName===`ink-root`&&ph(e,t,c,u,g,i,o);let _={x:c,y:u,width:d,height:f,top:l};ka.set(e,_),e.style.position===`absolute`&&Sh.push(_),e.dirty=!1}}function ph(e,t,n,r,i,a,o){let s=!1,c=!1;for(let l of e.childNodes){let e=l,u=e.dirty,d=e.style.position===`absolute`;fh(e,t,{offsetX:n,offsetY:r,prevScreen:i||s?void 0:a,skipSelfBlit:c&&d&&!e.style.opaque&&e.style.backgroundColor===void 0,inheritedBackgroundColor:o}),u&&!s&&(!mh(e)||d?s=!0:c=!0)}}function mh(e){let t=e.style.overflowX??e.style.overflow,n=e.style.overflowY??e.style.overflow;return(t===`hidden`||t===`scroll`)&&(n===`hidden`||n===`scroll`)}function hh(e,t){let n=e.parentNode;if(!n)return!1;let r=t.getComputedTop(),i=n.childNodes,a=i.indexOf(e);for(let e=a+1;e<i.length;e++){let t=i[e].yogaNode;if(t)return t.getComputedTop()===r}for(let e=a-1;e>=0;e--){let t=i[e].yogaNode;if(t)return t.getComputedTop()===r}return!1}function gh(e,t,n,r,i,a,o){let s=r+a,c=i+o;for(let l of e.childNodes){if(l.nodeName===`#text`)continue;let e=l;if(e.style.position===`absolute`){let a=ka.get(e);if(a){Sh.push(a);let e=Math.floor(a.x),o=Math.floor(a.y),l=Math.floor(a.width),u=Math.floor(a.height);(e<r||o<i||e+l>s||o+u>c)&&t.blit(n,e,o,l,u)}}gh(e,t,n,r,i,a,o)}}function _h(e,t,n,r,i,a,o,s,c,l=!1){let u=!1,d=0;for(let f of e.childNodes){let e=f,p=e.yogaNode;if(p){let t=ka.get(e),n,r;if(t?.top!==void 0&&!e.dirty&&d===0?(n=t.top,r=t.height):(n=p.getComputedTop(),r=p.getComputedHeight(),e.dirty&&(d+=r-(t?t.height:0)),t&&(t.top=n)),n+r<=o||n>=s){l||vh(e);continue}}let m=e.dirty;fh(e,t,{offsetX:n,offsetY:r,prevScreen:i||u?void 0:a,inheritedBackgroundColor:c}),m&&(u=!0)}}function vh(e){ka.delete(e);for(let t of e.childNodes)t.nodeName!==`#text`&&vh(t)}var yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh=t((()=>{jm(),Bn(),Nm(),Ti(),Ma(),Xm(),Fa(),ef(),ym(),$s(),yh=!1,bh=null,xh=[],Sh=[],Ch=null,wh=null,Th=4,Eh=5,Dh=12,Oh=2,kh=3,Ah=30,jh=`\x1B]`,Mh=`\x07`}));function Ph(e,t){let n=t.toLowerCase();if(!n)return[];let r=n.length,i=e.width,a=e.height,o=e.noSelect,s=[],c=performance.now();for(let t=0;t<a;t++){let a=t*i,c=``,l=[],u=[];for(let t=0;t<i;t++){let n=a+t,r=Ul(e,n);if(r.width===J.SpacerTail||r.width===J.SpacerHead||o[n]===1)continue;let i=r.char.toLowerCase(),s=l.length;for(let e=0;e<i.length;e++)u.push(s);c+=i,l.push(t)}let d=c.indexOf(n);for(;d>=0;){let e=u[d],i=u[d+r-1],a=l[e],o=l[i]+1;s.push({row:t,col:a,len:o-a}),d=c.indexOf(n,d+r)}}return Ih.scan+=performance.now()-c,s}function Fh(e,t,n,r,i){if(i<0||i>=n.length)return!1;let a=n[i],o=a.row+r;if(o<0||o>=e.height)return!1;let s=e=>t.withCurrentMatch(e),c=o*e.width;for(let t=a.col;t<a.col+a.len;t++){if(t<0||t>=e.width)continue;let n=Ul(e,c+t);ql(e,t,o,s(n.styleId))}return!0}var Ih,Lh=t((()=>{Fe(),yc(),km(),El(),Nh(),Y(),Ih={reconcile:0,yoga:0,paint:0,scan:0,calls:0}}));function Rh(e,t){let n;return r=>{let{frontFrame:i,backFrame:a,isTTY:o,terminalWidth:s,terminalRows:c}=r,l=i.screen,u=a.screen,d=u.charPool,f=u.hyperlinkPool,p=e.yogaNode?.getComputedHeight(),m=e.yogaNode?.getComputedWidth(),h=p===void 0||!Number.isFinite(p)||p<0,g=m===void 0||!Number.isFinite(m)||m<0;if(!e.yogaNode||h||g)return e.yogaNode&&(h||g)&&zh(`Invalid yoga dimensions: width=${m}, height=${p}, childNodes=${e.childNodes.length}, terminalWidth=${s}, terminalRows=${c}`),{screen:zl(s,0,t,d,f),viewport:{width:s,height:c},cursor:{x:0,y:0,visible:!0}};let _=Math.floor(e.yogaNode.getComputedWidth()),v=Math.floor(e.yogaNode.getComputedHeight()),y=r.altScreen?c:v;r.altScreen&&v>c&&zh(`alt-screen: yoga height ${v} > terminalRows ${c} — something is rendering outside <AlternateScreen>. Overflow clipped.`,{level:`warn`});let b=u??zl(_,y,t,d,f);n?n.reset(_,y,b):n=new Om({width:_,height:y,stylePool:t,screen:b}),Qm(),eh(),nh();let x=U();fh(e,n,{prevScreen:x||r.prevFrameContaminated?void 0:l});let S=n.get(),C=rh();return C&&hc(C),{scrollHint:r.altScreen?th():null,scrollDrainPending:C!==null,screen:S,viewport:{width:s,height:r.altScreen?c+1:c},cursor:{x:0,y:r.altScreen?Math.max(0,Math.min(b.height,c)-1):b.height,visible:!o||b.height===0}}}}var zh,Bh=t((()=>{yc(),Ma(),km(),Nh(),Y(),zh=(e,t)=>{}}));function Vh(e,t,n){if(!t)return!1;let r=t.toLowerCase(),i=r.length,a=e.width,o=e.noSelect,s=e.height,c=!1;for(let t=0;t<s;t++){let s=t*a,l=``,u=[],d=[];for(let t=0;t<a;t++){let n=s+t,r=Ul(e,n);if(r.width===J.SpacerTail||r.width===J.SpacerHead||o[n]===1)continue;let i=r.char.toLowerCase(),a=u.length;for(let e=0;e<i.length;e++)d.push(a);l+=i,u.push(t)}let f=l.indexOf(r);for(;f>=0;){c=!0;let a=d[f],o=d[f+i-1];for(let r=a;r<=o;r++){let i=u[r],a=Ul(e,s+i);ql(e,i,t,n.withInverse(a.styleId))}f=l.indexOf(r,f+i)}}return c}var Hh=t((()=>{Y()}));function Uh(){let e=(0,Wh.useContext)(Gh);if(!e)throw Error(`useTerminalNotification must be used within TerminalWriteProvider`);let t=(0,Wh.useCallback)(({message:t,title:n})=>{let r=n?`${n}:\n${t}`:t;e(vd(_d(Fd.ITERM2,`\n\n${r}`)))},[e]),n=(0,Wh.useCallback)(({message:t,title:n,id:r})=>{e(vd(_d(Fd.KITTY,`i=${r}:d=0:p=title`,n))),e(vd(_d(Fd.KITTY,`i=${r}:p=body`,t))),e(vd(_d(Fd.KITTY,`i=${r}:d=1:a=focus`,``)))},[e]),r=(0,Wh.useCallback)(({message:t,title:n})=>{e(vd(_d(Fd.GHOSTTY,`notify`,n,t)))},[e]),i=(0,Wh.useCallback)(()=>{e(`\x07`)},[e]),a=(0,Wh.useCallback)((t,n)=>{if(!Ud())return;if(!t){e(vd(_d(Fd.ITERM2,Ld.PROGRESS,Rd.CLEAR,``)));return}let r=Math.max(0,Math.min(100,Math.round(n??0)));switch(t){case`completed`:e(vd(_d(Fd.ITERM2,Ld.PROGRESS,Rd.CLEAR,``)));break;case`error`:e(vd(_d(Fd.ITERM2,Ld.PROGRESS,Rd.ERROR,r)));break;case`indeterminate`:e(vd(_d(Fd.ITERM2,Ld.PROGRESS,Rd.INDETERMINATE,``)));break;case`running`:e(vd(_d(Fd.ITERM2,Ld.PROGRESS,Rd.SET,r)));break;case null:break}},[e]);return(0,Wh.useMemo)(()=>({notifyITerm2:t,notifyKitty:n,notifyGhostty:r,notifyBell:i,progress:a}),[t,n,r,i,a])}var Wh,Gh,Kh,qh=t((()=>{Wh=n(j(),1),ef(),Jn(),Hd(),Gh=(0,Wh.createContext)(null),Kh=Gh.Provider}));function Jh(e){return Object.freeze({type:`stdout`,content:rr(e,1)})}function Yh(e=process.stdin){if(!e.isTTY)return;try{for(;e.read()!==null;);}catch{}if(process.platform===`win32`)return;let t=e,n=t.isRaw===!0,r=-1;try{n||t.setRawMode?.(!0),r=w(`/dev/tty`,C.O_RDONLY|C.O_NONBLOCK);let e=Buffer.alloc(1024);for(let t=0;t<64&&!(E(r,e,0,e.length,null)<=0);t++);}catch{}finally{if(r>=0)try{S(r)}catch{}if(!n)try{t.setRawMode?.(!1)}catch{}}}var Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag=t((()=>{ce(),ue(),Me(),j(),Xh=Fe(),f(),qt(),Bn(),bp(),_f(),yc(),Cp(),Hc(),Tp(),jp(),Np(),im(),Ma(),om(),km(),El(),Nh(),Lh(),Bh(),Y(),Hh(),qu(),ef(),kr(),hd(),Hd(),qh(),Up(),Zh=y(),c(),Qh=Object.freeze({x:0,y:0,visible:!1}),$h=Object.freeze({type:`stdout`,content:gr}),eg=Object.freeze({type:`stdout`,content:vr+gr}),tg={debug(){},error(){}},ng=class{constructor(e){l(this,`log`,void 0),l(this,`terminal`,void 0),l(this,`scheduleRender`,void 0),l(this,`isUnmounted`,!1),l(this,`isPaused`,!1),l(this,`container`,void 0),l(this,`rootNode`,void 0),l(this,`focusManager`,void 0),l(this,`renderer`,void 0),l(this,`stylePool`,void 0),l(this,`charPool`,void 0),l(this,`hyperlinkPool`,void 0),l(this,`exitPromise`,void 0),l(this,`restoreConsole`,void 0),l(this,`restoreStderr`,void 0),l(this,`unsubscribeTTYHandlers`,void 0),l(this,`terminalColumns`,void 0),l(this,`terminalRows`,void 0),l(this,`currentNode`,null),l(this,`frontFrame`,void 0),l(this,`backFrame`,void 0),l(this,`lastPoolResetTime`,performance.now()),l(this,`drainTimer`,null),l(this,`lastYogaCounters`,{ms:0,visited:0,measured:0,cacheHits:0,live:0}),l(this,`altScreenParkPatch`,void 0),l(this,`selection`,wu()),l(this,`searchHighlightQuery`,``),l(this,`searchPositions`,null),l(this,`selectionListeners`,new Set),l(this,`hoveredNodes`,new Set),l(this,`altScreenActive`,!1),l(this,`altScreenMouseTracking`,!1),l(this,`prevFrameContaminated`,!1),l(this,`needsEraseBeforePaint`,!1),l(this,`cursorDeclaration`,null),l(this,`displayCursor`,null),l(this,`logger`,void 0),l(this,`handleResume`,()=>{if(this.options.stdout.isTTY){if(this.altScreenActive){this.reenterAltScreen();return}this.frontFrame=wp(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=wp(this.backFrame.viewport.height,this.backFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset(),this.displayCursor=null}}),l(this,`handleResize`,()=>{let e=Bp(this.options.stdout.columns),t=this.options.stdout.rows||24;e===this.terminalColumns&&t===this.terminalRows||(this.terminalColumns=e,this.terminalRows=t,this.altScreenParkPatch=Jh(this.terminalRows),this.altScreenActive&&!this.isPaused&&this.options.stdout.isTTY&&(this.altScreenMouseTracking&&this.options.stdout.write(pd),this.resetFramesForAltScreen(),this.needsEraseBeforePaint=!0),this.currentNode!==null&&this.render(this.currentNode))}),l(this,`resolveExitPromise`,()=>{}),l(this,`rejectExitPromise`,()=>{}),l(this,`unsubscribeExit`,()=>{}),l(this,`reassertTerminalModes`,(e=!1)=>{this.options.stdout.isTTY&&(this.isPaused||(qd()&&this.options.stdout.write(Er+Tr+Dr),this.altScreenActive&&(this.altScreenMouseTracking&&this.options.stdout.write(pd),e&&this.reenterAltScreen())))}),l(this,`onHyperlinkClick`,void 0),l(this,`stdinListeners`,[]),l(this,`wasRawMode`,!1),l(this,`setCursorDeclaration`,(e,t)=>{e===null&&t!==void 0&&this.cursorDeclaration?.node!==t||(this.cursorDeclaration=e)}),this.options=e,oe(this),this.logger=e.logger??tg,this.options.patchConsole&&(this.restoreConsole=this.patchConsole(),this.restoreStderr=this.patchStderr()),this.terminal={stdout:e.stdout,stderr:e.stderr},this.terminalColumns=Bp(e.stdout.columns),this.terminalRows=e.stdout.rows||24,this.altScreenParkPatch=Jh(this.terminalRows),this.stylePool=new pu,this.charPool=new su,this.hyperlinkPool=new cu,this.frontFrame=wp(this.terminalRows,this.terminalColumns,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=wp(this.terminalRows,this.terminalColumns,this.stylePool,this.charPool,this.hyperlinkPool),this.log=new nm({isTTY:e.stdout.isTTY||!1,stylePool:this.stylePool}),this.scheduleRender=Ae(()=>queueMicrotask(this.onRender),16,{leading:!0,trailing:!0}),this.isUnmounted=!1,this.unsubscribeExit=u(this.unmount,{alwaysLast:!1}),e.stdout.isTTY&&(e.stdout.on(`resize`,this.handleResize),process.on(`SIGCONT`,this.handleResume),this.unsubscribeTTYHandlers=()=>{e.stdout.off(`resize`,this.handleResize),process.off(`SIGCONT`,this.handleResume)}),this.rootNode=ac(`ink-root`),this.focusManager=new Vc((e,t)=>ml.dispatchDiscrete(e,t)),this.rootNode.focusManager=this.focusManager,this.renderer=Rh(this.rootNode,this.stylePool),this.rootNode.onRender=this.scheduleRender,this.rootNode.onImmediateRender=this.onRender,this.rootNode.onComputeLayout=()=>{if(!this.isUnmounted&&this.rootNode.yogaNode){let e=performance.now();this.rootNode.yogaNode.setWidth(this.terminalColumns),this.rootNode.yogaNode.calculateLayout(this.terminalColumns);let t=performance.now()-e;al(t),this.lastYogaCounters={ms:t,...dt()}}},this.container=Tl.createContainer(this.rootNode,Xh.ConcurrentRoot,null,!1,null,`id`,le,le,le,le)}enterAlternateScreen(){this.pause(),this.suspendStdin(),this.options.stdout.write(Er+Or+(this.altScreenMouseTracking?md:``)+(this.altScreenActive?``:`\x1B[?1049h`)+`\x1B[?1004l\x1B[0m\x1B[?25h\x1B[2J\x1B[H`)}exitAlternateScreen(){this.options.stdout.write((this.altScreenActive?dd:``)+`\x1B[2J\x1B[H`+(this.altScreenMouseTracking?pd:``)+(this.altScreenActive?``:`\x1B[?1049l`)+`\x1B[?25l`),this.resumeStdin(),this.altScreenActive?this.resetFramesForAltScreen():this.repaint(),this.resume(),this.options.stdout.write(`\x1B[?1004h`+(qd()?Er+Tr+Dr:``))}onRender(){if(this.isUnmounted||this.isPaused)return;this.drainTimer!==null&&(clearTimeout(this.drainTimer),this.drainTimer=null),this.options.onBeforeRender?.();let e=performance.now(),t=Bp(this.options.stdout.columns),n=this.options.stdout.rows||24,r=this.renderer({frontFrame:this.frontFrame,backFrame:this.backFrame,isTTY:this.options.stdout.isTTY,terminalWidth:t,terminalRows:n,altScreen:this.altScreenActive,prevFrameContaminated:this.prevFrameContaminated}),i=performance.now()-e,a=ih();if(a&&this.selection.anchor&&this.selection.anchor.row>=a.viewportTop&&this.selection.anchor.row<=a.viewportBottom){let{delta:e,viewportTop:t,viewportBottom:n}=a;if(this.selection.isDragging)Ru(this.selection)&&Uu(this.selection,this.frontFrame.screen,t,t+e-1,`above`),Iu(this.selection,-e,t,n);else if((!this.selection.focus||this.selection.focus.row>=t&&this.selection.focus.row<=n)&&(Ru(this.selection)&&Uu(this.selection,this.frontFrame.screen,t,t+e-1,`above`),Lu(this.selection,-e,t,n)))for(let e of this.selectionListeners)e()}let o=!1,s=!1;if(this.altScreenActive&&(o=Ru(this.selection),o&&Wu(r.screen,this.selection,this.stylePool),s=Vh(r.screen,this.searchHighlightQuery,this.stylePool),this.searchPositions)){let e=this.searchPositions,t=Fh(r.screen,this.stylePool,e.positions,e.rowOffset,e.currentIdx);s=s||t}($m()||o||s||this.prevFrameContaminated)&&(r.screen.damage={x:0,y:0,width:r.screen.width,height:r.screen.height});let c=this.frontFrame;this.altScreenActive&&(c={...this.frontFrame,cursor:Qh});let l=performance.now(),u=this.log.render(c,r,this.altScreenActive,$d),d=performance.now()-l;this.backFrame=this.frontFrame,this.frontFrame=r,e-this.lastPoolResetTime>300*1e3&&(this.resetPools(),this.lastPoolResetTime=e);let f=[];for(let e of u)if(e.type===`clearTerminal`&&(f.push({desiredHeight:r.screen.height,availableHeight:r.viewport.height,reason:e.reason}),rl()&&e.debug)){let t=ic(this.rootNode,e.debug.triggerY);this.logger.debug(`[REPAINT] full reset · ${e.reason} · row ${e.debug.triggerY}\n prev: "${e.debug.prevLine}"\n next: "${e.debug.nextLine}"\n culprit: ${t.length?t.join(` < `):`(no owner chain captured)`}`,{level:`warn`})}let p=performance.now(),m=am(u),h=performance.now()-p,g=m.length>0;this.altScreenActive&&g&&(this.needsEraseBeforePaint?(this.needsEraseBeforePaint=!1,m.unshift(eg)):m.unshift($h),m.push(this.altScreenParkPatch));let _=this.cursorDeclaration,v=_===null?void 0:ka.get(_.node),y=_!==null&&v!==void 0?{x:v.x+_.relativeX,y:v.y+_.relativeY}:null,b=this.displayCursor,x=y!==null&&(b===null||b.x!==y.x||b.y!==y.y);if(g||x||y===null&&b!==null){if(b!==null&&!this.altScreenActive&&g){let e=c.cursor.x-b.x,t=c.cursor.y-b.y;(e!==0||t!==0)&&m.unshift({type:`stdout`,content:ir(e,t)})}if(y!==null){if(this.altScreenActive){let e=Math.min(Math.max(y.y+1,1),n),r=Math.min(Math.max(y.x+1,1),t);m.push({type:`stdout`,content:rr(e,r)})}else{let e=!g&&b!==null?b:{x:r.cursor.x,y:r.cursor.y},t=y.x-e.x,n=y.y-e.y;(t!==0||n!==0)&&m.push({type:`stdout`,content:ir(t,n)})}this.displayCursor=y}else{if(b!==null&&!this.altScreenActive&&!g){let e=r.cursor.x-b.x,t=r.cursor.y-b.y;(e!==0||t!==0)&&m.push({type:`stdout`,content:ir(e,t)})}this.displayCursor=null}}let S=performance.now();Yd(this.terminal,m,this.altScreenActive&&!$d);let C=performance.now()-S;this.prevFrameContaminated=o||s,r.scrollDrainPending&&(this.drainTimer=setTimeout(()=>this.onRender(),4));let w=ol(),T=cl(),E=this.lastYogaCounters;ll(),this.lastYogaCounters={ms:0,visited:0,measured:0,cacheHits:0,live:0},this.options.onFrame?.({durationMs:performance.now()-e,phases:{renderer:i,diff:d,optimize:h,write:C,patches:u.length,yoga:w,commit:T,yogaVisited:E.visited,yogaMeasured:E.measured,yogaCacheHits:E.cacheHits,yogaLive:E.live},flickers:f})}pause(){Tl.flushSyncFromReconciler(),this.onRender(),this.isPaused=!0}resume(){this.isPaused=!1,this.onRender()}repaint(){this.frontFrame=wp(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.backFrame=wp(this.backFrame.viewport.height,this.backFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset(),this.displayCursor=null}forceRedraw(){!this.options.stdout.isTTY||this.isUnmounted||this.isPaused||(this.options.stdout.write(vr+gr),this.altScreenActive?this.resetFramesForAltScreen():(this.repaint(),this.prevFrameContaminated=!0),this.onRender())}invalidatePrevFrame(){this.prevFrameContaminated=!0}setAltScreenActive(e,t=!1){this.altScreenActive!==e&&(this.altScreenActive=e,this.altScreenMouseTracking=e&&t,e?this.resetFramesForAltScreen():this.repaint())}get isAltScreenActive(){return this.altScreenActive}detachForShutdown(){this.isUnmounted=!0,this.scheduleRender.cancel?.();let e=this.options.stdin;this.drainStdin(),e.isTTY&&e.isRaw&&e.setRawMode&&e.setRawMode(!1)}drainStdin(){Yh(this.options.stdin)}reenterAltScreen(){this.options.stdout.write(dd+vr+gr+(this.altScreenMouseTracking?pd:``)),this.resetFramesForAltScreen()}resetFramesForAltScreen(){let e=this.terminalRows,t=this.terminalColumns,n=()=>({screen:zl(t,e,this.stylePool,this.charPool,this.hyperlinkPool),viewport:{width:t,height:e+1},cursor:{x:0,y:0,visible:!0}});this.frontFrame=n(),this.backFrame=n(),this.log.reset(),this.displayCursor=null,this.prevFrameContaminated=!0}copySelectionNoClear(){if(!Ru(this.selection))return``;let e=Hu(this.selection,this.frontFrame.screen);return e&&Sd(e).then(e=>{e&&this.options.stdout.write(e)}),e}copySelection(){if(!Ru(this.selection))return``;let e=this.copySelectionNoClear();return Tu(this.selection),this.notifySelectionChange(),e}clearTextSelection(){Ru(this.selection)&&(Tu(this.selection),this.notifySelectionChange())}setSearchHighlight(e){this.searchHighlightQuery!==e&&(this.searchHighlightQuery=e,this.scheduleRender())}scanElementSubtree(e){if(!this.searchHighlightQuery||!e.yogaNode)return[];let t=Math.ceil(e.yogaNode.getComputedWidth()),n=Math.ceil(e.yogaNode.getComputedHeight());if(t<=0||n<=0)return[];let r=e.yogaNode.getComputedLeft(),i=e.yogaNode.getComputedTop(),a=zl(t,n,this.stylePool,this.charPool,this.hyperlinkPool),o=new Om({width:t,height:n,stylePool:this.stylePool,screen:a});fh(e,o,{offsetX:-r,offsetY:-i,prevScreen:void 0});let s=o.get();hc(e);let c=Ph(s,this.searchHighlightQuery);return this.logger.debug(`scanElementSubtree: q='${this.searchHighlightQuery}' el=${t}x${n}@(${r},${i}) n=${c.length} [${c.slice(0,10).map(e=>`${e.row}:${e.col}`).join(`,`)}${c.length>10?`,…`:``}]`),c}setSearchPositions(e){this.searchPositions=e,this.scheduleRender()}setSelectionBgColor(e){let t=zn(`\0`,e,`background`),n=t.indexOf(`\0`);if(n<=0||n===t.length-1){this.stylePool.setSelectionBg(null);return}this.stylePool.setSelectionBg({type:`ansi`,code:t.slice(0,n),endCode:t.slice(n+1)})}captureScrolledRows(e,t,n){Uu(this.selection,this.frontFrame.screen,e,t,n)}shiftSelectionForScroll(e,t,n){let r=Ru(this.selection);Fu(this.selection,e,t,n,this.frontFrame.screen.width),r&&!Ru(this.selection)&&this.notifySelectionChange()}moveSelectionFocus(e){if(!this.altScreenActive)return;let{focus:t}=this.selection;if(!t)return;let{width:n,height:r}=this.frontFrame.screen,i=n-1,a=r-1,{col:o,row:s}=t;switch(e){case`left`:o>0?o--:s>0&&(o=i,s--);break;case`right`:o<i?o++:s<a&&(o=0,s++);break;case`up`:s>0&&s--;break;case`down`:s<a&&s++;break;case`lineStart`:o=0;break;case`lineEnd`:o=i;break}o===t.col&&s===t.row||(Pu(this.selection,o,s),this.notifySelectionChange())}hasTextSelection(){return Ru(this.selection)}subscribeToSelectionChange(e){return this.selectionListeners.add(e),()=>this.selectionListeners.delete(e)}notifySelectionChange(){this.onRender();for(let e of this.selectionListeners)e()}dispatchClick(e,t){if(!this.altScreenActive)return!1;let n=Ll(this.frontFrame.screen,e,t);return kp(this.rootNode,e,t,n)}dispatchHover(e,t){this.altScreenActive&&Ap(this.rootNode,e,t,this.hoveredNodes)}dispatchKeyboardEvent(e){let t=this.focusManager.activeElement??this.rootNode,n=new Sp(e);ml.dispatchDiscrete(t,n),!n.defaultPrevented&&e.name===`tab`&&!e.ctrl&&!e.meta&&(e.shift?this.focusManager.focusPrevious(this.rootNode):this.focusManager.focusNext(this.rootNode))}getHyperlinkAt(e,t){if(!this.altScreenActive)return;let n=this.frontFrame.screen,r=Hl(n,e,t),i=r?.hyperlink;return!i&&r?.width===J.SpacerTail&&e>0&&(i=Hl(n,e-1,t)?.hyperlink),i??ju(n,e,t)}openHyperlink(e){this.onHyperlinkClick?.(e)}handleMultiClick(e,t,n){if(!this.altScreenActive)return;let r=this.frontFrame.screen;X(this.selection,e,t),n===2?ku(this.selection,r,e,t):Mu(this.selection,r,t),this.selection.focus||(this.selection.focus=this.selection.anchor),this.notifySelectionChange()}handleSelectionDrag(e,t){if(!this.altScreenActive)return;let n=this.selection;n.anchorSpan?Nu(n,this.frontFrame.screen,e,t):Z(n,e,t),this.notifySelectionChange()}suspendStdin(){let e=this.options.stdin;if(!e.isTTY)return;let t=e.listeners(`readable`);this.logger.debug(`[stdin] suspendStdin: removing ${t.length} readable listener(s), wasRawMode=${e.isRaw??!1}`),t.forEach(t=>{this.stdinListeners.push({event:`readable`,listener:t}),e.removeListener(`readable`,t)});let n=e;n.isRaw&&n.setRawMode&&(n.setRawMode(!1),this.wasRawMode=!0)}resumeStdin(){let e=this.options.stdin;if(e.isTTY&&(this.stdinListeners.length===0&&!this.wasRawMode&&this.logger.debug(`[stdin] resumeStdin: called with no stored listeners and wasRawMode=false (possible desync)`,{level:`warn`}),this.logger.debug(`[stdin] resumeStdin: re-attaching ${this.stdinListeners.length} listener(s), wasRawMode=${this.wasRawMode}`),this.stdinListeners.forEach(({event:t,listener:n})=>{e.addListener(t,n)}),this.stdinListeners=[],this.wasRawMode)){let t=e;t.setRawMode&&t.setRawMode(!0),this.wasRawMode=!1}}writeRaw(e){this.options.stdout.write(e)}render(e){this.currentNode=e;let t=(0,Zh.jsx)(yp,{stdin:this.options.stdin,stdout:this.options.stdout,stderr:this.options.stderr,exitOnCtrlC:this.options.exitOnCtrlC,onExit:this.unmount,terminalColumns:this.terminalColumns,terminalRows:this.terminalRows,selection:this.selection,onSelectionChange:this.notifySelectionChange,onClickAt:this.dispatchClick,onHoverAt:this.dispatchHover,getHyperlinkAt:this.getHyperlinkAt,onOpenHyperlink:this.openHyperlink,onMultiClick:this.handleMultiClick,onSelectionDrag:this.handleSelectionDrag,onStdinResume:this.reassertTerminalModes,onCursorDeclaration:this.setCursorDeclaration,dispatchKeyboardEvent:this.dispatchKeyboardEvent,children:(0,Zh.jsx)(Kh,{value:this.writeRaw,children:e})});Tl.updateContainerSync(t,this.container,null,le),Tl.flushSyncWork()}unmount(e){if(this.isUnmounted)return;this.onRender(),this.unsubscribeExit(),typeof this.restoreConsole==`function`&&this.restoreConsole(),this.restoreStderr?.(),this.unsubscribeTTYHandlers?.();let t=this.log.renderPreviousOutput_DEPRECATED(this.frontFrame);Yd(this.terminal,am(t)),this.options.stdout.isTTY&&(this.altScreenActive&&D(1,fd),D(1,md),this.drainStdin(),D(1,Or),D(1,Er),D(1,cd),D(1,od),D(1,ld),D(1,zd),Ad()&&D(1,vd(Vd))),this.isUnmounted=!0,this.scheduleRender.cancel?.(),this.drainTimer!==null&&(clearTimeout(this.drainTimer),this.drainTimer=null),Tl.updateContainerSync(null,this.container,null,le),Tl.flushSyncWork(),Mp.delete(this.options.stdout),this.rootNode.yogaNode?.free(),this.rootNode.yogaNode=void 0,e instanceof Error?this.rejectExitPromise(e):this.resolveExitPromise()}async waitUntilExit(){return this.exitPromise||(this.exitPromise=new Promise((e,t)=>{this.resolveExitPromise=e,this.rejectExitPromise=t})),this.exitPromise}resetLineCount(){this.options.stdout.isTTY&&(this.backFrame=this.frontFrame,this.frontFrame=wp(this.frontFrame.viewport.height,this.frontFrame.viewport.width,this.stylePool,this.charPool,this.hyperlinkPool),this.log.reset(),this.displayCursor=null)}resetPools(){this.charPool=new su,this.hyperlinkPool=new cu,Vl(this.frontFrame.screen,this.charPool,this.hyperlinkPool),this.backFrame.screen.charPool=this.charPool,this.backFrame.screen.hyperlinkPool=this.hyperlinkPool}patchConsole(){let e=console,t={},n=(...e)=>this.logger.debug(`console.log: ${k(...e)}`),r=(...e)=>this.logger.error(Error(`console.error: ${k(...e)}`));for(let r of rg)t[r]=e[r],e[r]=n;for(let n of ig)t[n]=e[n],e[n]=r;return t.assert=e.assert,e.assert=(e,...t)=>{e||r(...t)},()=>Object.assign(e,t)}patchStderr(){let e=process.stderr,t=e.write,n=!1,r=(r,i,a)=>{let o=typeof i==`function`?i:a;if(n){let n=typeof i==`string`?i:void 0;return t.call(e,r,n,o)}n=!0;try{let e=typeof r==`string`?r:Buffer.from(r).toString(`utf8`);this.logger.debug(`[stderr] ${e}`,{level:`warn`}),this.altScreenActive&&!this.isUnmounted&&!this.isPaused&&(this.prevFrameContaminated=!0,this.scheduleRender())}finally{n=!1,o?.()}return!0};return e.write=r,()=>{e.write===r&&(e.write=t)}}},rg=[`log`,`info`,`debug`,`dir`,`dirxml`,`count`,`countReset`,`group`,`groupCollapsed`,`groupEnd`,`table`,`time`,`timeEnd`,`timeLog`],ig=[`warn`,`error`,`trace`]}));async function og({stdout:e=process.stdout,stdin:t=process.stdin,stderr:n=process.stderr,exitOnCtrlC:r=!0,patchConsole:i=!0,onFrame:a}={}){await Promise.resolve();let o=new ng({stdout:e,stdin:t,stderr:n,exitOnCtrlC:r,patchConsole:i,onFrame:a});return Mp.set(e,o),{render:e=>o.render(e),unmount:()=>o.unmount(),waitUntilExit:()=>o.waitUntilExit()}}var sg,cg,lg,ug,dg=t((()=>{ag(),Np(),sg=(e,t)=>{let n=lg(t),r={stdout:process.stdout,stdin:process.stdin,stderr:process.stderr,exitOnCtrlC:!0,patchConsole:!0,...n},i=ug(r.stdout,()=>new ng(r));return i.render(e),{rerender:i.render,unmount(){i.unmount()},waitUntilExit:i.waitUntilExit,cleanup:()=>Mp.delete(r.stdout)}},cg=async(e,t)=>{await Promise.resolve();let n=sg(e,t);return process.env.CLAUDE_CODE_DEBUG_REPAINTS===`1`&&console.warn(`[render] first ink render: ${Math.round(process.uptime()*1e3)}ms since process start`),n},lg=(e={})=>e instanceof x?{stdout:e,stdin:process.stdin}:e,ug=(e,t)=>{let n=Mp.get(e);return n||(n=t(),Mp.set(e,n)),n}}));function fg(e){switch(e){case`light`:return gg;case`light-ansi`:return _g;case`dark-ansi`:return vg;case`light-daltonized`:return yg;case`dark-daltonized`:return xg;default:return bg}}function pg(e){let t=e.match(/rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)/);if(t){let e=parseInt(t[1],10),n=parseInt(t[2],10),r=parseInt(t[3],10),i=Sg.rgb(e,n,r)(`X`);return i.slice(0,i.indexOf(`X`))}return`\x1B[35m`}var mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg=t((()=>{Mn(),mg=[`dark`,`light`,`light-daltonized`,`dark-daltonized`,`light-ansi`,`dark-ansi`],hg=[`auto`,...mg],gg={autoAccept:`rgb(135,0,255)`,bashBorder:`rgb(255,0,135)`,claude:`rgb(215,119,87)`,claudeShimmer:`rgb(245,149,117)`,claudeBlue_FOR_SYSTEM_SPINNER:`rgb(87,105,247)`,claudeBlueShimmer_FOR_SYSTEM_SPINNER:`rgb(117,135,255)`,permission:`rgb(87,105,247)`,permissionShimmer:`rgb(137,155,255)`,planMode:`rgb(0,102,102)`,ide:`rgb(71,130,200)`,promptBorder:`rgb(153,153,153)`,promptBorderShimmer:`rgb(183,183,183)`,text:`rgb(0,0,0)`,inverseText:`rgb(255,255,255)`,inactive:`rgb(102,102,102)`,inactiveShimmer:`rgb(142,142,142)`,subtle:`rgb(175,175,175)`,suggestion:`rgb(87,105,247)`,remember:`rgb(0,0,255)`,background:`rgb(0,153,153)`,success:`rgb(44,122,57)`,error:`rgb(171,43,63)`,warning:`rgb(150,108,30)`,merged:`rgb(135,0,255)`,warningShimmer:`rgb(200,158,80)`,diffAdded:`rgb(105,219,124)`,diffRemoved:`rgb(255,168,180)`,diffAddedDimmed:`rgb(199,225,203)`,diffRemovedDimmed:`rgb(253,210,216)`,diffAddedWord:`rgb(47,157,68)`,diffRemovedWord:`rgb(209,69,75)`,red_FOR_SUBAGENTS_ONLY:`rgb(220,38,38)`,blue_FOR_SUBAGENTS_ONLY:`rgb(37,99,235)`,green_FOR_SUBAGENTS_ONLY:`rgb(22,163,74)`,yellow_FOR_SUBAGENTS_ONLY:`rgb(202,138,4)`,purple_FOR_SUBAGENTS_ONLY:`rgb(147,51,234)`,orange_FOR_SUBAGENTS_ONLY:`rgb(234,88,12)`,pink_FOR_SUBAGENTS_ONLY:`rgb(219,39,119)`,cyan_FOR_SUBAGENTS_ONLY:`rgb(8,145,178)`,professionalBlue:`rgb(106,155,204)`,chromeYellow:`rgb(251,188,4)`,clawd_body:`rgb(215,119,87)`,clawd_background:`rgb(0,0,0)`,userMessageBackground:`rgb(240, 240, 240)`,userMessageBackgroundHover:`rgb(252, 252, 252)`,messageActionsBackground:`rgb(232, 236, 244)`,selectionBg:`rgb(180, 213, 255)`,bashMessageBackgroundColor:`rgb(250, 245, 250)`,memoryBackgroundColor:`rgb(230, 245, 250)`,rate_limit_fill:`rgb(87,105,247)`,rate_limit_empty:`rgb(39,47,111)`,fastMode:`rgb(255,106,0)`,fastModeShimmer:`rgb(255,150,50)`,briefLabelYou:`rgb(37,99,235)`,briefLabelClaude:`rgb(215,119,87)`,rainbow_red:`rgb(235,95,87)`,rainbow_orange:`rgb(245,139,87)`,rainbow_yellow:`rgb(250,195,95)`,rainbow_green:`rgb(145,200,130)`,rainbow_blue:`rgb(130,170,220)`,rainbow_indigo:`rgb(155,130,200)`,rainbow_violet:`rgb(200,130,180)`,rainbow_red_shimmer:`rgb(250,155,147)`,rainbow_orange_shimmer:`rgb(255,185,137)`,rainbow_yellow_shimmer:`rgb(255,225,155)`,rainbow_green_shimmer:`rgb(185,230,180)`,rainbow_blue_shimmer:`rgb(180,205,240)`,rainbow_indigo_shimmer:`rgb(195,180,230)`,rainbow_violet_shimmer:`rgb(230,180,210)`},_g={autoAccept:`ansi:magenta`,bashBorder:`ansi:magenta`,claude:`ansi:redBright`,claudeShimmer:`ansi:yellowBright`,claudeBlue_FOR_SYSTEM_SPINNER:`ansi:blue`,claudeBlueShimmer_FOR_SYSTEM_SPINNER:`ansi:blueBright`,permission:`ansi:blue`,permissionShimmer:`ansi:blueBright`,planMode:`ansi:cyan`,ide:`ansi:blueBright`,promptBorder:`ansi:white`,promptBorderShimmer:`ansi:whiteBright`,text:`ansi:black`,inverseText:`ansi:white`,inactive:`ansi:blackBright`,inactiveShimmer:`ansi:white`,subtle:`ansi:blackBright`,suggestion:`ansi:blue`,remember:`ansi:blue`,background:`ansi:cyan`,success:`ansi:green`,error:`ansi:red`,warning:`ansi:yellow`,merged:`ansi:magenta`,warningShimmer:`ansi:yellowBright`,diffAdded:`ansi:green`,diffRemoved:`ansi:red`,diffAddedDimmed:`ansi:green`,diffRemovedDimmed:`ansi:red`,diffAddedWord:`ansi:greenBright`,diffRemovedWord:`ansi:redBright`,red_FOR_SUBAGENTS_ONLY:`ansi:red`,blue_FOR_SUBAGENTS_ONLY:`ansi:blue`,green_FOR_SUBAGENTS_ONLY:`ansi:green`,yellow_FOR_SUBAGENTS_ONLY:`ansi:yellow`,purple_FOR_SUBAGENTS_ONLY:`ansi:magenta`,orange_FOR_SUBAGENTS_ONLY:`ansi:redBright`,pink_FOR_SUBAGENTS_ONLY:`ansi:magentaBright`,cyan_FOR_SUBAGENTS_ONLY:`ansi:cyan`,professionalBlue:`ansi:blueBright`,chromeYellow:`ansi:yellow`,clawd_body:`ansi:redBright`,clawd_background:`ansi:black`,userMessageBackground:`ansi:white`,userMessageBackgroundHover:`ansi:whiteBright`,messageActionsBackground:`ansi:white`,selectionBg:`ansi:cyan`,bashMessageBackgroundColor:`ansi:whiteBright`,memoryBackgroundColor:`ansi:white`,rate_limit_fill:`ansi:yellow`,rate_limit_empty:`ansi:black`,fastMode:`ansi:red`,fastModeShimmer:`ansi:redBright`,briefLabelYou:`ansi:blue`,briefLabelClaude:`ansi:redBright`,rainbow_red:`ansi:red`,rainbow_orange:`ansi:redBright`,rainbow_yellow:`ansi:yellow`,rainbow_green:`ansi:green`,rainbow_blue:`ansi:cyan`,rainbow_indigo:`ansi:blue`,rainbow_violet:`ansi:magenta`,rainbow_red_shimmer:`ansi:redBright`,rainbow_orange_shimmer:`ansi:yellow`,rainbow_yellow_shimmer:`ansi:yellowBright`,rainbow_green_shimmer:`ansi:greenBright`,rainbow_blue_shimmer:`ansi:cyanBright`,rainbow_indigo_shimmer:`ansi:blueBright`,rainbow_violet_shimmer:`ansi:magentaBright`},vg={autoAccept:`ansi:magentaBright`,bashBorder:`ansi:magentaBright`,claude:`ansi:redBright`,claudeShimmer:`ansi:yellowBright`,claudeBlue_FOR_SYSTEM_SPINNER:`ansi:blueBright`,claudeBlueShimmer_FOR_SYSTEM_SPINNER:`ansi:blueBright`,permission:`ansi:blueBright`,permissionShimmer:`ansi:blueBright`,planMode:`ansi:cyanBright`,ide:`ansi:blue`,promptBorder:`ansi:white`,promptBorderShimmer:`ansi:whiteBright`,text:`ansi:whiteBright`,inverseText:`ansi:black`,inactive:`ansi:white`,inactiveShimmer:`ansi:whiteBright`,subtle:`ansi:white`,suggestion:`ansi:blueBright`,remember:`ansi:blueBright`,background:`ansi:cyanBright`,success:`ansi:greenBright`,error:`ansi:redBright`,warning:`ansi:yellowBright`,merged:`ansi:magentaBright`,warningShimmer:`ansi:yellowBright`,diffAdded:`ansi:green`,diffRemoved:`ansi:red`,diffAddedDimmed:`ansi:green`,diffRemovedDimmed:`ansi:red`,diffAddedWord:`ansi:greenBright`,diffRemovedWord:`ansi:redBright`,red_FOR_SUBAGENTS_ONLY:`ansi:redBright`,blue_FOR_SUBAGENTS_ONLY:`ansi:blueBright`,green_FOR_SUBAGENTS_ONLY:`ansi:greenBright`,yellow_FOR_SUBAGENTS_ONLY:`ansi:yellowBright`,purple_FOR_SUBAGENTS_ONLY:`ansi:magentaBright`,orange_FOR_SUBAGENTS_ONLY:`ansi:redBright`,pink_FOR_SUBAGENTS_ONLY:`ansi:magentaBright`,cyan_FOR_SUBAGENTS_ONLY:`ansi:cyanBright`,professionalBlue:`rgb(106,155,204)`,chromeYellow:`ansi:yellowBright`,clawd_body:`ansi:redBright`,clawd_background:`ansi:black`,userMessageBackground:`ansi:blackBright`,userMessageBackgroundHover:`ansi:white`,messageActionsBackground:`ansi:blackBright`,selectionBg:`ansi:blue`,bashMessageBackgroundColor:`ansi:black`,memoryBackgroundColor:`ansi:blackBright`,rate_limit_fill:`ansi:yellow`,rate_limit_empty:`ansi:white`,fastMode:`ansi:redBright`,fastModeShimmer:`ansi:redBright`,briefLabelYou:`ansi:blueBright`,briefLabelClaude:`ansi:redBright`,rainbow_red:`ansi:red`,rainbow_orange:`ansi:redBright`,rainbow_yellow:`ansi:yellow`,rainbow_green:`ansi:green`,rainbow_blue:`ansi:cyan`,rainbow_indigo:`ansi:blue`,rainbow_violet:`ansi:magenta`,rainbow_red_shimmer:`ansi:redBright`,rainbow_orange_shimmer:`ansi:yellow`,rainbow_yellow_shimmer:`ansi:yellowBright`,rainbow_green_shimmer:`ansi:greenBright`,rainbow_blue_shimmer:`ansi:cyanBright`,rainbow_indigo_shimmer:`ansi:blueBright`,rainbow_violet_shimmer:`ansi:magentaBright`},yg={autoAccept:`rgb(135,0,255)`,bashBorder:`rgb(0,102,204)`,claude:`rgb(255,153,51)`,claudeShimmer:`rgb(255,183,101)`,claudeBlue_FOR_SYSTEM_SPINNER:`rgb(51,102,255)`,claudeBlueShimmer_FOR_SYSTEM_SPINNER:`rgb(101,152,255)`,permission:`rgb(51,102,255)`,permissionShimmer:`rgb(101,152,255)`,planMode:`rgb(51,102,102)`,ide:`rgb(71,130,200)`,promptBorder:`rgb(153,153,153)`,promptBorderShimmer:`rgb(183,183,183)`,text:`rgb(0,0,0)`,inverseText:`rgb(255,255,255)`,inactive:`rgb(102,102,102)`,inactiveShimmer:`rgb(142,142,142)`,subtle:`rgb(175,175,175)`,suggestion:`rgb(51,102,255)`,remember:`rgb(51,102,255)`,background:`rgb(0,153,153)`,success:`rgb(0,102,153)`,error:`rgb(204,0,0)`,warning:`rgb(255,153,0)`,merged:`rgb(135,0,255)`,warningShimmer:`rgb(255,183,50)`,diffAdded:`rgb(153,204,255)`,diffRemoved:`rgb(255,204,204)`,diffAddedDimmed:`rgb(209,231,253)`,diffRemovedDimmed:`rgb(255,233,233)`,diffAddedWord:`rgb(51,102,204)`,diffRemovedWord:`rgb(153,51,51)`,red_FOR_SUBAGENTS_ONLY:`rgb(204,0,0)`,blue_FOR_SUBAGENTS_ONLY:`rgb(0,102,204)`,green_FOR_SUBAGENTS_ONLY:`rgb(0,204,0)`,yellow_FOR_SUBAGENTS_ONLY:`rgb(255,204,0)`,purple_FOR_SUBAGENTS_ONLY:`rgb(128,0,128)`,orange_FOR_SUBAGENTS_ONLY:`rgb(255,128,0)`,pink_FOR_SUBAGENTS_ONLY:`rgb(255,102,178)`,cyan_FOR_SUBAGENTS_ONLY:`rgb(0,178,178)`,professionalBlue:`rgb(106,155,204)`,chromeYellow:`rgb(251,188,4)`,clawd_body:`rgb(215,119,87)`,clawd_background:`rgb(0,0,0)`,userMessageBackground:`rgb(220, 220, 220)`,userMessageBackgroundHover:`rgb(232, 232, 232)`,messageActionsBackground:`rgb(210, 216, 226)`,selectionBg:`rgb(180, 213, 255)`,bashMessageBackgroundColor:`rgb(250, 245, 250)`,memoryBackgroundColor:`rgb(230, 245, 250)`,rate_limit_fill:`rgb(51,102,255)`,rate_limit_empty:`rgb(23,46,114)`,fastMode:`rgb(255,106,0)`,fastModeShimmer:`rgb(255,150,50)`,briefLabelYou:`rgb(37,99,235)`,briefLabelClaude:`rgb(255,153,51)`,rainbow_red:`rgb(235,95,87)`,rainbow_orange:`rgb(245,139,87)`,rainbow_yellow:`rgb(250,195,95)`,rainbow_green:`rgb(145,200,130)`,rainbow_blue:`rgb(130,170,220)`,rainbow_indigo:`rgb(155,130,200)`,rainbow_violet:`rgb(200,130,180)`,rainbow_red_shimmer:`rgb(250,155,147)`,rainbow_orange_shimmer:`rgb(255,185,137)`,rainbow_yellow_shimmer:`rgb(255,225,155)`,rainbow_green_shimmer:`rgb(185,230,180)`,rainbow_blue_shimmer:`rgb(180,205,240)`,rainbow_indigo_shimmer:`rgb(195,180,230)`,rainbow_violet_shimmer:`rgb(230,180,210)`},bg={autoAccept:`rgb(175,135,255)`,bashBorder:`rgb(253,93,177)`,claude:`rgb(215,119,87)`,claudeShimmer:`rgb(235,159,127)`,claudeBlue_FOR_SYSTEM_SPINNER:`rgb(147,165,255)`,claudeBlueShimmer_FOR_SYSTEM_SPINNER:`rgb(177,195,255)`,permission:`rgb(177,185,249)`,permissionShimmer:`rgb(207,215,255)`,planMode:`rgb(72,150,140)`,ide:`rgb(71,130,200)`,promptBorder:`rgb(136,136,136)`,promptBorderShimmer:`rgb(166,166,166)`,text:`rgb(255,255,255)`,inverseText:`rgb(0,0,0)`,inactive:`rgb(153,153,153)`,inactiveShimmer:`rgb(193,193,193)`,subtle:`rgb(80,80,80)`,suggestion:`rgb(177,185,249)`,remember:`rgb(177,185,249)`,background:`rgb(0,204,204)`,success:`rgb(78,186,101)`,error:`rgb(255,107,128)`,warning:`rgb(255,193,7)`,merged:`rgb(175,135,255)`,warningShimmer:`rgb(255,223,57)`,diffAdded:`rgb(34,92,43)`,diffRemoved:`rgb(122,41,54)`,diffAddedDimmed:`rgb(71,88,74)`,diffRemovedDimmed:`rgb(105,72,77)`,diffAddedWord:`rgb(56,166,96)`,diffRemovedWord:`rgb(179,89,107)`,red_FOR_SUBAGENTS_ONLY:`rgb(220,38,38)`,blue_FOR_SUBAGENTS_ONLY:`rgb(37,99,235)`,green_FOR_SUBAGENTS_ONLY:`rgb(22,163,74)`,yellow_FOR_SUBAGENTS_ONLY:`rgb(202,138,4)`,purple_FOR_SUBAGENTS_ONLY:`rgb(147,51,234)`,orange_FOR_SUBAGENTS_ONLY:`rgb(234,88,12)`,pink_FOR_SUBAGENTS_ONLY:`rgb(219,39,119)`,cyan_FOR_SUBAGENTS_ONLY:`rgb(8,145,178)`,professionalBlue:`rgb(106,155,204)`,chromeYellow:`rgb(251,188,4)`,clawd_body:`rgb(215,119,87)`,clawd_background:`rgb(0,0,0)`,userMessageBackground:`rgb(55, 55, 55)`,userMessageBackgroundHover:`rgb(70, 70, 70)`,messageActionsBackground:`rgb(44, 50, 62)`,selectionBg:`rgb(38, 79, 120)`,bashMessageBackgroundColor:`rgb(65, 60, 65)`,memoryBackgroundColor:`rgb(55, 65, 70)`,rate_limit_fill:`rgb(177,185,249)`,rate_limit_empty:`rgb(80,83,112)`,fastMode:`rgb(255,120,20)`,fastModeShimmer:`rgb(255,165,70)`,briefLabelYou:`rgb(122,180,232)`,briefLabelClaude:`rgb(215,119,87)`,rainbow_red:`rgb(235,95,87)`,rainbow_orange:`rgb(245,139,87)`,rainbow_yellow:`rgb(250,195,95)`,rainbow_green:`rgb(145,200,130)`,rainbow_blue:`rgb(130,170,220)`,rainbow_indigo:`rgb(155,130,200)`,rainbow_violet:`rgb(200,130,180)`,rainbow_red_shimmer:`rgb(250,155,147)`,rainbow_orange_shimmer:`rgb(255,185,137)`,rainbow_yellow_shimmer:`rgb(255,225,155)`,rainbow_green_shimmer:`rgb(185,230,180)`,rainbow_blue_shimmer:`rgb(180,205,240)`,rainbow_indigo_shimmer:`rgb(195,180,230)`,rainbow_violet_shimmer:`rgb(230,180,210)`},xg={autoAccept:`rgb(175,135,255)`,bashBorder:`rgb(51,153,255)`,claude:`rgb(255,153,51)`,claudeShimmer:`rgb(255,183,101)`,claudeBlue_FOR_SYSTEM_SPINNER:`rgb(153,204,255)`,claudeBlueShimmer_FOR_SYSTEM_SPINNER:`rgb(183,224,255)`,permission:`rgb(153,204,255)`,permissionShimmer:`rgb(183,224,255)`,planMode:`rgb(102,153,153)`,ide:`rgb(71,130,200)`,promptBorder:`rgb(136,136,136)`,promptBorderShimmer:`rgb(166,166,166)`,text:`rgb(255,255,255)`,inverseText:`rgb(0,0,0)`,inactive:`rgb(153,153,153)`,inactiveShimmer:`rgb(193,193,193)`,subtle:`rgb(80,80,80)`,suggestion:`rgb(153,204,255)`,remember:`rgb(153,204,255)`,background:`rgb(0,204,204)`,success:`rgb(51,153,255)`,error:`rgb(255,102,102)`,warning:`rgb(255,204,0)`,merged:`rgb(175,135,255)`,warningShimmer:`rgb(255,234,50)`,diffAdded:`rgb(0,68,102)`,diffRemoved:`rgb(102,0,0)`,diffAddedDimmed:`rgb(62,81,91)`,diffRemovedDimmed:`rgb(62,44,44)`,diffAddedWord:`rgb(0,119,179)`,diffRemovedWord:`rgb(179,0,0)`,red_FOR_SUBAGENTS_ONLY:`rgb(255,102,102)`,blue_FOR_SUBAGENTS_ONLY:`rgb(102,178,255)`,green_FOR_SUBAGENTS_ONLY:`rgb(102,255,102)`,yellow_FOR_SUBAGENTS_ONLY:`rgb(255,255,102)`,purple_FOR_SUBAGENTS_ONLY:`rgb(178,102,255)`,orange_FOR_SUBAGENTS_ONLY:`rgb(255,178,102)`,pink_FOR_SUBAGENTS_ONLY:`rgb(255,153,204)`,cyan_FOR_SUBAGENTS_ONLY:`rgb(102,204,204)`,professionalBlue:`rgb(106,155,204)`,chromeYellow:`rgb(251,188,4)`,clawd_body:`rgb(215,119,87)`,clawd_background:`rgb(0,0,0)`,userMessageBackground:`rgb(55, 55, 55)`,userMessageBackgroundHover:`rgb(70, 70, 70)`,messageActionsBackground:`rgb(44, 50, 62)`,selectionBg:`rgb(38, 79, 120)`,bashMessageBackgroundColor:`rgb(65, 60, 65)`,memoryBackgroundColor:`rgb(55, 65, 70)`,rate_limit_fill:`rgb(153,204,255)`,rate_limit_empty:`rgb(69,92,115)`,fastMode:`rgb(255,120,20)`,fastModeShimmer:`rgb(255,165,70)`,briefLabelYou:`rgb(122,180,232)`,briefLabelClaude:`rgb(255,153,51)`,rainbow_red:`rgb(235,95,87)`,rainbow_orange:`rgb(245,139,87)`,rainbow_yellow:`rgb(250,195,95)`,rainbow_green:`rgb(145,200,130)`,rainbow_blue:`rgb(130,170,220)`,rainbow_indigo:`rgb(155,130,200)`,rainbow_violet:`rgb(200,130,180)`,rainbow_red_shimmer:`rgb(250,155,147)`,rainbow_orange_shimmer:`rgb(255,185,137)`,rainbow_yellow_shimmer:`rgb(255,225,155)`,rainbow_green_shimmer:`rgb(185,230,180)`,rainbow_blue_shimmer:`rgb(180,205,240)`,rainbow_indigo_shimmer:`rgb(195,180,230)`,rainbow_violet_shimmer:`rgb(230,180,210)`},Sg=process.env.TERM_PROGRAM===`Apple_Terminal`?new Tn({level:2}):z})),wg=r(((e,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype.toString,m=Math.max,h=Math.min,g=function(){return f.Date.now()};function _(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=x(t)||0,v(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?m(x(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function _(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function y(e){return u=e,c=setTimeout(C,t),d?_(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?h(i,o-r):i}function S(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=g();if(S(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?_(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(g())}function D(){var e=g(),n=S(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return y(l);if(f)return c=setTimeout(C,t),_(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function v(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function y(e){return!!e&&typeof e==`object`}function b(e){return typeof e==`symbol`||y(e)&&p.call(e)==i}function x(e){if(typeof e==`number`)return e;if(b(e))return r;if(v(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=v(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=_}));function Tg(e,t){let n=(0,kg.useRef)(e);jg(()=>{n.current=e},[e]),(0,kg.useEffect)(()=>{if(t===null)return;let e=setInterval(()=>{n.current()},t);return()=>{clearInterval(e)}},[t])}function Eg(e){let t=(0,kg.useRef)(()=>{throw Error(`Cannot call an event handler while rendering.`)});return jg(()=>{t.current=e},[e]),(0,kg.useCallback)((...e)=>t.current?.call(t,...e),[t])}function Dg(e){let t=(0,kg.useRef)(e);t.current=e,(0,kg.useEffect)(()=>()=>{t.current()},[])}function Og(e,t=500,n){let r=(0,kg.useRef)();Dg(()=>{r.current&&r.current.cancel()});let i=(0,kg.useMemo)(()=>{let i=(0,Ag.default)(e,t,n),a=(...e)=>i(...e);return a.cancel=()=>{i.cancel()},a.isPending=()=>!!r.current,a.flush=()=>i.flush(),a},[e,t,n]);return(0,kg.useEffect)(()=>{r.current=(0,Ag.default)(e,t,n)},[e,t,n]),i}var kg,Ag,jg,Mg=t((()=>{kg=n(j(),1),Ag=n(wg(),1),jg=typeof window<`u`?kg.useLayoutEffect:kg.useEffect})),Ng,Pg,Fg=t((()=>{Ng=n(j(),1),ap(),Pg=()=>(0,Ng.useContext)(ip)})),Ig,Lg,Rg=t((()=>{Ig=n(j(),1),Mg(),Fg(),Lg=(e,t={})=>{let{setRawMode:n,internal_exitOnCtrlC:r,internal_eventEmitter:i}=Pg();(0,Ig.useLayoutEffect)(()=>{if(t.isActive!==!1)return n(!0),()=>{n(!1)}},[t.isActive,n]);let a=Eg(n=>{if(t.isActive===!1)return;let{input:i,key:a}=n;(!(i===`c`&&a.ctrl)||!r)&&e(i,a,n)});(0,Ig.useEffect)(()=>(i?.on(`input`,a),()=>{i?.removeListener(`input`,a)}),[i,a])}}));function zg(e){return{ctrl:e.ctrl,shift:e.shift,meta:e.meta,super:e.super}}function Bg(e,t){return t.escape?`escape`:t.return?`enter`:t.tab?`tab`:t.backspace?`backspace`:t.delete?`delete`:t.upArrow?`up`:t.downArrow?`down`:t.leftArrow?`left`:t.rightArrow?`right`:t.pageUp?`pageup`:t.pageDown?`pagedown`:t.wheelUp?`wheelup`:t.wheelDown?`wheeldown`:t.home?`home`:t.end?`end`:e.length===1?e.toLowerCase():null}function Vg(e,t){if(e.ctrl!==t.ctrl||e.shift!==t.shift)return!1;let n=t.alt||t.meta;return!(e.meta!==n||e.super!==t.super)}function Hg(e,t,n){if(Bg(e,t)!==n.key)return!1;let r=zg(t);return t.escape?Vg({...r,meta:!1},n):Vg(r,n)}function Ug(e,t,n){if(n.chord.length!==1)return!1;let r=n.chord[0];return r?Hg(e,t,r):!1}var Wg=t((()=>{}));function Gg(e){let t=e.split(`+`),n={key:``,ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let e of t){let t=e.toLowerCase();switch(t){case`ctrl`:case`control`:n.ctrl=!0;break;case`alt`:case`opt`:case`option`:n.alt=!0;break;case`shift`:n.shift=!0;break;case`meta`:n.meta=!0;break;case`cmd`:case`command`:case`super`:case`win`:n.super=!0;break;case`esc`:n.key=`escape`;break;case`return`:n.key=`enter`;break;case`space`:n.key=` `;break;case`↑`:n.key=`up`;break;case`↓`:n.key=`down`;break;case`←`:n.key=`left`;break;case`→`:n.key=`right`;break;default:n.key=t;break}}return n}function Kg(e){return e===` `?[Gg(`space`)]:e.trim().split(/\s+/).map(Gg)}function qg(e){let t=[];e.ctrl&&t.push(`ctrl`),e.alt&&t.push(`alt`),e.shift&&t.push(`shift`),e.meta&&t.push(`meta`),e.super&&t.push(`cmd`);let n=Jg(e.key);return t.push(n),t.join(`+`)}function Jg(e){switch(e){case`escape`:return`Esc`;case` `:return`Space`;case`tab`:return`tab`;case`enter`:return`Enter`;case`backspace`:return`Backspace`;case`delete`:return`Delete`;case`up`:return`↑`;case`down`:return`↓`;case`left`:return`←`;case`right`:return`→`;case`pageup`:return`PageUp`;case`pagedown`:return`PageDown`;case`home`:return`Home`;case`end`:return`End`;default:return e}}function Yg(e){return e.map(qg).join(` `)}function Xg(e,t=`linux`){let n=[];e.ctrl&&n.push(`ctrl`),(e.alt||e.meta)&&n.push(t===`macos`?`opt`:`alt`),e.shift&&n.push(`shift`),e.super&&n.push(t===`macos`?`cmd`:`super`);let r=Jg(e.key);return n.push(r),n.join(`+`)}function Zg(e,t=`linux`){return e.map(e=>Xg(e,t)).join(` `)}function Qg(e){let t=[];for(let n of e)for(let[e,r]of Object.entries(n.bindings))t.push({chord:Kg(e),action:r,context:n.context});return t}var $g=t((()=>{}));function e_(e,t,n,r){let i,a=new Set(n);for(let n of r)n.chord.length===1&&a.has(n.context)&&Ug(e,t,n)&&(i=n);return i?i.action===null?{type:`unbound`}:{type:`match`,action:i.action}:{type:`none`}}function t_(e,t,n){let r=n.findLast(n=>n.action===e&&n.context===t);return r?Yg(r.chord):void 0}function n_(e,t){let n=Bg(e,t);if(!n)return null;let r=t.escape?!1:t.meta;return{key:n,ctrl:t.ctrl,alt:r,shift:t.shift,meta:r,super:t.super}}function r_(e,t){return e.key===t.key&&e.ctrl===t.ctrl&&e.shift===t.shift&&(e.alt||e.meta)===(t.alt||t.meta)&&e.super===t.super}function i_(e,t){if(e.length>=t.chord.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t.chord[n];if(!r||!i||!r_(r,i))return!1}return!0}function a_(e,t){if(e.length!==t.chord.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],i=t.chord[n];if(!r||!i||!r_(r,i))return!1}return!0}function o_(e,t,n,r,i){if(t.escape&&i!==null)return{type:`chord_cancelled`};let a=n_(e,t);if(!a)return i===null?{type:`none`}:{type:`chord_cancelled`};let o=i?[...i,a]:[a],s=new Set(n),c=r.filter(e=>s.has(e.context)),l=new Map;for(let e of c)e.chord.length>o.length&&i_(o,e)&&l.set(Yg(e.chord),e.action);let u=!1;for(let e of l.values())if(e!==null){u=!0;break}if(u)return{type:`chord_started`,pending:o};let d;for(let e of c)a_(o,e)&&(d=e);return d?d.action===null?{type:`unbound`}:{type:`match`,action:d.action}:i===null?{type:`none`}:{type:`chord_cancelled`}}var s_=t((()=>{Wg(),$g()}));function c_({bindings:e,pendingChordRef:t,pendingChord:n,setPendingChord:r,activeContexts:i,registerActiveContext:a,unregisterActiveContext:o,handlerRegistryRef:s,children:c}){let l=(0,f_.useMemo)(()=>({resolve:(n,r,i)=>o_(n,r,i,e,t.current),setPendingChord:r,getDisplayText:(t,n)=>t_(t,n,e),bindings:e,pendingChord:n,activeContexts:i,registerActiveContext:a,unregisterActiveContext:o,registerHandler:e=>{let t=s.current;return t?(t.has(e.action)||t.set(e.action,new Set),t.get(e.action).add(e),()=>{let n=t.get(e.action);n&&(n.delete(e),n.size===0&&t.delete(e.action))}):()=>{}},invokeAction:e=>{let t=s.current;if(!t)return!1;let n=t.get(e);if(!n||n.size===0)return!1;for(let e of n)if(i.has(e.context))return e.handler(),!0;return!1}}),[e,t,n,r,i,a,o,s]);return(0,p_.jsx)(m_.Provider,{value:l,children:c})}function l_(){let e=(0,f_.useContext)(m_);if(!e)throw Error(`useKeybindingContext must be used within KeybindingProvider`);return e}function u_(){return(0,f_.useContext)(m_)}function d_(e,t=!0){let n=u_();(0,f_.useLayoutEffect)(()=>{if(!(!n||!t))return n.registerActiveContext(e),()=>{n.unregisterActiveContext(e)}},[e,n,t])}var f_,p_,m_,h_=t((()=>{f_=n(j(),1),s_(),p_=y(),m_=(0,f_.createContext)(null)}));function g_(e,t,n={}){let{context:r=`Global`,isActive:i=!0}=n,a=u_();(0,v_.useEffect)(()=>{if(!(!a||!i))return a.registerHandler({action:e,context:r,handler:t})},[e,r,t,a,i]),Lg((0,v_.useCallback)((n,i,o)=>{if(!a)return;let s=[...a.activeContexts,r,`Global`],c=[...new Set(s)],l=a.resolve(n,i,c);switch(l.type){case`match`:a.setPendingChord(null),l.action===e&&t()!==!1&&o.stopImmediatePropagation();break;case`chord_started`:a.setPendingChord(l.pending),o.stopImmediatePropagation();break;case`chord_cancelled`:a.setPendingChord(null);break;case`unbound`:a.setPendingChord(null),o.stopImmediatePropagation();break;case`none`:break}},[e,r,t,a]),{isActive:i})}function __(e,t={}){let{context:n=`Global`,isActive:r=!0}=t,i=u_();(0,v_.useEffect)(()=>{if(!i||!r)return;let t=[];for(let[r,a]of Object.entries(e))t.push(i.registerHandler({action:r,context:n,handler:a}));return()=>{for(let e of t)e()}},[n,e,i,r]),Lg((0,v_.useCallback)((t,r,a)=>{if(!i)return;let o=[...i.activeContexts,n,`Global`],s=[...new Set(o)],c=i.resolve(t,r,s);switch(c.type){case`match`:if(i.setPendingChord(null),c.action in e){let t=e[c.action];t&&t()!==!1&&a.stopImmediatePropagation()}break;case`chord_started`:i.setPendingChord(c.pending),a.stopImmediatePropagation();break;case`chord_cancelled`:i.setPendingChord(null);break;case`unbound`:i.setPendingChord(null),a.stopImmediatePropagation();break;case`none`:break}},[n,e,i]),{isActive:r})}var v_,y_=t((()=>{v_=n(j(),1),Rg(),h_()}));function b_({children:e,loadBindings:t,subscribeToChanges:n,initWatcher:r,onWarnings:i,onDebugLog:a}){let[o,s]=(0,S_.useState)(()=>{let e=t();return a?.(`[keybindings] KeybindingSetup initialized with ${e.bindings.length} bindings, ${e.warnings.length} warnings`),e}),{bindings:c,warnings:l}=o,[u,d]=(0,S_.useState)(!1);(0,S_.useEffect)(()=>{i?.(l,u)},[l,u,i]);let f=(0,S_.useRef)(null),[p,m]=(0,S_.useState)(null),h=(0,S_.useRef)(null),g=(0,S_.useRef)(new Map),_=(0,S_.useRef)(new Set),v=(0,S_.useCallback)(e=>{_.current.add(e)},[]),y=(0,S_.useCallback)(e=>{_.current.delete(e)},[]),b=(0,S_.useCallback)(()=>{h.current&&(clearTimeout(h.current),h.current=null)},[]),x=(0,S_.useCallback)(e=>{b(),e!==null&&(h.current=setTimeout((e,t)=>{a?.(`[keybindings] Chord timeout - cancelling`),e.current=null,t(null)},w_,f,m)),f.current=e,m(e)},[b,a]);return(0,S_.useEffect)(()=>{r?.();let e=n(e=>{d(!0),s(e),a?.(`[keybindings] Reloaded: ${e.bindings.length} bindings, ${e.warnings.length} warnings`)});return()=>{e(),b()}},[n,r,b,a]),(0,C_.jsxs)(c_,{bindings:c,pendingChordRef:f,pendingChord:p,setPendingChord:x,activeContexts:_.current,registerActiveContext:v,unregisterActiveContext:y,handlerRegistryRef:g,children:[(0,C_.jsx)(x_,{bindings:c,pendingChordRef:f,setPendingChord:x,activeContexts:_.current,handlerRegistryRef:g}),e]})}function x_({bindings:e,pendingChordRef:t,setPendingChord:n,activeContexts:r,handlerRegistryRef:i}){return Lg((0,S_.useCallback)((a,o,s)=>{if((o.wheelUp||o.wheelDown)&&t.current===null)return;let c=i.current,l=new Set;if(c)for(let e of c.values())for(let t of e)l.add(t.context);let u=[...l,...r,`Global`],d=t.current!==null,f=o_(a,o,u,e,t.current);switch(f.type){case`chord_started`:n(f.pending),s.stopImmediatePropagation();break;case`match`:if(n(null),d){let e=new Set(u);if(c){let t=c.get(f.action);if(t&&t.size>0){for(let n of t)if(e.has(n.context)){n.handler(),s.stopImmediatePropagation();break}}}}break;case`chord_cancelled`:n(null),s.stopImmediatePropagation();break;case`unbound`:n(null),s.stopImmediatePropagation();break;case`none`:break}},[e,t,n,r,i])),null}var S_,C_,w_,T_=t((()=>{S_=n(j(),1),Rg(),h_(),s_(),C_=y(),w_=1e3}));function E_(e,t=ae.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}var D_=t((()=>{}));function O_(e=``){if(/^\d{3,4}$/.test(e)){let t=/(\d{1,2})(\d{2})/.exec(e)??[];return{major:0,minor:Number.parseInt(t[1],10),patch:Number.parseInt(t[2],10)}}let t=(e??``).split(`.`).map(e=>Number.parseInt(e,10));return{major:t[0],minor:t[1],patch:t[2]}}function k_(e){let{CI:t,CURSOR_TRACE_ID:n,FORCE_HYPERLINK:r,NETLIFY:i,TEAMCITY_VERSION:a,TERM_PROGRAM:o,TERM_PROGRAM_VERSION:s,VTE_VERSION:c,TERM:l}=b.env;if(r)return!(r.length>0&&Number.parseInt(r,10)===0);if(E_(`no-hyperlink`)||E_(`no-hyperlinks`)||E_(`hyperlink=false`)||E_(`hyperlink=never`))return!1;if(E_(`hyperlink=true`)||E_(`hyperlink=always`)||i)return!0;if(!h(e)||e&&!e.isTTY)return!1;if(`WT_SESSION`in b.env)return!0;if(b.platform===`win32`||t||a)return!1;if(o){let e=O_(s);switch(o){case`iTerm.app`:return e.major===3?e.minor>=1:e.major>3;case`WezTerm`:return/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(s)?s.slice(11)>=`2020-06-20`:e.major>=20200620;case`vscode`:return n?!0:e.major>1||e.major===1&&e.minor>=72;case`ghostty`:return!0;case`zed`:return!0}}if(c){if(c===`0.50.0`)return!1;let e=O_(c);return e.major>0||e.minor>=50}switch(l){case`alacritty`:return!0;case`xterm-kitty`:return!0}return!1}var A_,j_=t((()=>{m(),D_(),A_={stdout:k_(b.stdout),stderr:k_(b.stderr)}}));function M_(e){if(e?.stdoutSupported??A_.stdout)return!0;let t=e?.env??process.env,n=t.TERM_PROGRAM;if(n&&N_.includes(n))return!0;let r=t.LC_TERMINAL;return!!(r&&N_.includes(r)||t.TERM?.includes(`kitty`))}var N_,P_=t((()=>{j_(),N_=[`ghostty`,`Hyper`,`kitty`,`alacritty`,`iTerm.app`,`iTerm2`]}));function F_({children:e,url:t,fallback:n}){let r=e??t;return M_()?(0,I_.jsx)(Kf,{children:(0,I_.jsx)(`ink-link`,{href:t,children:r})}):(0,I_.jsx)(Kf,{children:n??r})}var I_,L_=t((()=>{j(),P_(),Yf(),I_=y()}));function R_(e){if(e.length===0)return null;let t=e[0];return t===`c`?{type:`reset`}:t===`7`?{type:`cursor`,action:{type:`save`}}:t===`8`?{type:`cursor`,action:{type:`restore`}}:t===`D`?{type:`cursor`,action:{type:`move`,direction:`down`,count:1}}:t===`M`?{type:`cursor`,action:{type:`move`,direction:`up`,count:1}}:t===`E`?{type:`cursor`,action:{type:`nextLine`,count:1}}:t===`H`||`()`.includes(t)&&e.length>=2?null:{type:`unknown`,sequence:`\x1b${e}`}}var z_=t((()=>{}));function B_(){return{bold:!1,dim:!1,italic:!1,underline:`none`,blink:!1,inverse:!1,hidden:!1,strikethrough:!1,overline:!1,fg:{type:`default`},bg:{type:`default`},underlineColor:{type:`default`}}}var V_=t((()=>{}));function H_(e){if(e===``)return[{value:0,subparams:[],colon:!1}];let t=[],n={value:null,subparams:[],colon:!1},r=``,i=!1;for(let a=0;a<=e.length;a++){let o=e[a];if(o===`;`||o===void 0){let e=r===``?null:parseInt(r,10);i?e!==null&&n.subparams.push(e):n.value=e,t.push(n),n={value:null,subparams:[],colon:!1},r=``,i=!1}else if(o===`:`){let e=r===``?null:parseInt(r,10);i?e!==null&&n.subparams.push(e):(n.value=e,n.colon=!0,i=!0),r=``}else o>=`0`&&o<=`9`&&(r+=o)}return t}function U_(e,t){let n=e[t];if(!n)return null;if(n.colon&&n.subparams.length>=1){if(n.subparams[0]===5&&n.subparams.length>=2)return{index:n.subparams[1]};if(n.subparams[0]===2&&n.subparams.length>=4){let e=+(n.subparams.length>=5);return{r:n.subparams[1+e],g:n.subparams[2+e],b:n.subparams[3+e]}}}let r=e[t+1];if(!r)return null;if(r.value===5&&e[t+2]?.value!==null&&e[t+2]?.value!==void 0)return{index:e[t+2].value};if(r.value===2){let n=e[t+2]?.value,r=e[t+3]?.value,i=e[t+4]?.value;if(n!=null&&r!=null&&i!=null)return{r:n,g:r,b:i}}return null}function W_(e,t){let n=H_(e),r={...t},i=0;for(;i<n.length;){let e=n[i],t=e.value??0;if(t===0){r=B_(),i++;continue}if(t===1){r.bold=!0,i++;continue}if(t===2){r.dim=!0,i++;continue}if(t===3){r.italic=!0,i++;continue}if(t===4){r.underline=e.colon?K_[e.subparams[0]]??`single`:`single`,i++;continue}if(t===5||t===6){r.blink=!0,i++;continue}if(t===7){r.inverse=!0,i++;continue}if(t===8){r.hidden=!0,i++;continue}if(t===9){r.strikethrough=!0,i++;continue}if(t===21){r.underline=`double`,i++;continue}if(t===22){r.bold=!1,r.dim=!1,i++;continue}if(t===23){r.italic=!1,i++;continue}if(t===24){r.underline=`none`,i++;continue}if(t===25){r.blink=!1,i++;continue}if(t===27){r.inverse=!1,i++;continue}if(t===28){r.hidden=!1,i++;continue}if(t===29){r.strikethrough=!1,i++;continue}if(t===53){r.overline=!0,i++;continue}if(t===55){r.overline=!1,i++;continue}if(t>=30&&t<=37){r.fg={type:`named`,name:G_[t-30]},i++;continue}if(t===39){r.fg={type:`default`},i++;continue}if(t>=40&&t<=47){r.bg={type:`named`,name:G_[t-40]},i++;continue}if(t===49){r.bg={type:`default`},i++;continue}if(t>=90&&t<=97){r.fg={type:`named`,name:G_[t-90+8]},i++;continue}if(t>=100&&t<=107){r.bg={type:`named`,name:G_[t-100+8]},i++;continue}if(t===38){let t=U_(n,i);if(t){r.fg=`index`in t?{type:`indexed`,index:t.index}:{type:`rgb`,...t},i+=e.colon?1:`index`in t?3:5;continue}}if(t===48){let t=U_(n,i);if(t){r.bg=`index`in t?{type:`indexed`,index:t.index}:{type:`rgb`,...t},i+=e.colon?1:`index`in t?3:5;continue}}if(t===58){let t=U_(n,i);if(t){r.underlineColor=`index`in t?{type:`indexed`,index:t.index}:{type:`rgb`,...t},i+=e.colon?1:`index`in t?3:5;continue}}if(t===59){r.underlineColor={type:`default`},i++;continue}i++}return r}var G_,K_,q_=t((()=>{V_(),G_=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],K_=[`none`,`single`,`double`,`curly`,`dotted`,`dashed`]}));function J_(e){return e>=9728&&e<=9983||e>=9984&&e<=10175||e>=127744&&e<=129535||e>=129536&&e<=129791||e>=127456&&e<=127487}function Y_(e){return e>=4352&&e<=4447||e>=11904&&e<=40959||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65055||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141}function X_(e){let t=0;for(let n of e)if(t++,t>1)return!0;return!1}function Z_(e){if(X_(e))return 2;let t=e.codePointAt(0);return t===void 0?1:J_(t)||Y_(t)?2:1}function*Q_(e){for(let{segment:t}of ua().segment(e))yield{value:t,width:Z_(t)}}function $_(e){return e===``?[]:e.split(/[;:]/).map(e=>e===``?0:parseInt(e,10))}function ev(e){let t=e.slice(2);if(t.length===0)return null;let n=t.charCodeAt(t.length-1),r=t.slice(0,-1),i=``,a=r,o=``;r.length>0&&`?>=`.includes(r[0])&&(i=r[0],a=r.slice(1));let s=a.match(/([^0-9;:]+)$/);s&&(o=s[1],a=a.slice(0,-o.length));let c=$_(a),l=c[0]??1,u=c[1]??1;if(n===dr.SGR&&i===``)return{type:`sgr`,params:a};if(n===dr.CUU)return{type:`cursor`,action:{type:`move`,direction:`up`,count:l}};if(n===dr.CUD)return{type:`cursor`,action:{type:`move`,direction:`down`,count:l}};if(n===dr.CUF)return{type:`cursor`,action:{type:`move`,direction:`forward`,count:l}};if(n===dr.CUB)return{type:`cursor`,action:{type:`move`,direction:`back`,count:l}};if(n===dr.CNL)return{type:`cursor`,action:{type:`nextLine`,count:l}};if(n===dr.CPL)return{type:`cursor`,action:{type:`prevLine`,count:l}};if(n===dr.CHA)return{type:`cursor`,action:{type:`column`,col:l}};if(n===dr.CUP||n===dr.HVP)return{type:`cursor`,action:{type:`position`,row:l,col:u}};if(n===dr.VPA)return{type:`cursor`,action:{type:`row`,row:l}};if(n===dr.ED)return{type:`erase`,action:{type:`display`,region:fr[c[0]??0]??`toEnd`}};if(n===dr.EL)return{type:`erase`,action:{type:`line`,region:pr[c[0]??0]??`toEnd`}};if(n===dr.ECH)return{type:`erase`,action:{type:`chars`,count:l}};if(n===dr.SU)return{type:`scroll`,action:{type:`up`,count:l}};if(n===dr.SD)return{type:`scroll`,action:{type:`down`,count:l}};if(n===dr.DECSTBM)return{type:`scroll`,action:{type:`setRegion`,top:l,bottom:u}};if(n===dr.SCOSC)return{type:`cursor`,action:{type:`save`}};if(n===dr.SCORC)return{type:`cursor`,action:{type:`restore`}};if(n===dr.DECSCUSR&&o===` `)return{type:`cursor`,action:{type:`style`,...mr[l]??mr[0]}};if(i===`?`&&(n===dr.SM||n===dr.RM)){let e=n===dr.SM;if(l===nd.CURSOR_VISIBLE)return{type:`cursor`,action:e?{type:`show`}:{type:`hide`}};if(l===nd.ALT_SCREEN_CLEAR||l===nd.ALT_SCREEN)return{type:`mode`,action:{type:`alternateScreen`,enabled:e}};if(l===nd.BRACKETED_PASTE)return{type:`mode`,action:{type:`bracketedPaste`,enabled:e}};if(l===nd.MOUSE_NORMAL)return{type:`mode`,action:{type:`mouseTracking`,mode:e?`normal`:`off`}};if(l===nd.MOUSE_BUTTON)return{type:`mode`,action:{type:`mouseTracking`,mode:e?`button`:`off`}};if(l===nd.MOUSE_ANY)return{type:`mode`,action:{type:`mouseTracking`,mode:e?`any`:`off`}};if(l===nd.FOCUS_EVENTS)return{type:`mode`,action:{type:`focusEvents`,enabled:e}}}return{type:`unknown`,sequence:e}}function tv(e){if(e.length<2||e.charCodeAt(0)!==Kn.ESC)return`unknown`;let t=e.charCodeAt(1);return t===91?`csi`:t===93?`osc`:t===79?`ss3`:`esc`}var nv,rv=t((()=>{fa(),Jn(),kr(),hd(),z_(),Hd(),q_(),Mr(),V_(),c(),nv=class{constructor(){l(this,`tokenizer`,Ar()),l(this,`style`,B_()),l(this,`inLink`,!1),l(this,`linkUrl`,void 0)}reset(){this.tokenizer.reset(),this.style=B_(),this.inLink=!1,this.linkUrl=void 0}feed(e){let t=this.tokenizer.feed(e),n=[];for(let e of t){let t=this.processToken(e);n.push(...t)}return n}processToken(e){switch(e.type){case`text`:return this.processText(e.value);case`sequence`:return this.processSequence(e.value)}}processText(e){let t=[],n=``;for(let r of e)if(r.charCodeAt(0)===Kn.BEL){if(n){let e=[...Q_(n)];e.length>0&&t.push({type:`text`,graphemes:e,style:{...this.style}}),n=``}t.push({type:`bell`})}else n+=r;if(n){let e=[...Q_(n)];e.length>0&&t.push({type:`text`,graphemes:e,style:{...this.style}})}return t}processSequence(e){switch(tv(e)){case`csi`:{let t=ev(e);return t?t.type===`sgr`?(this.style=W_(t.params,this.style),[]):[t]:[]}case`osc`:{let t=e.slice(2);t.endsWith(`\x07`)?t=t.slice(0,-1):t.endsWith(`\x1B\\`)&&(t=t.slice(0,-2));let n=wd(t);return n?(n.type===`link`&&(n.action.type===`start`?(this.inLink=!0,this.linkUrl=n.action.url):(this.inLink=!1,this.linkUrl=void 0)),[n]):[]}case`esc`:{let t=R_(e.slice(1));return t?[t]:[]}case`ss3`:return[{type:`unknown`,sequence:e}];default:return[{type:`unknown`,sequence:e}]}}}})),iv=t((()=>{rv(),V_()}));function av(e){let t=new nv().feed(e),n=[],r;for(let e of t){if(e.type===`link`){r=e.action.type===`start`?e.action.url:void 0;continue}if(e.type===`text`){let t=e.graphemes.map(e=>e.value).join(``);if(!t)continue;let i=ov(e.style);r&&(i.hyperlink=r);let a=n[n.length-1];a&&cv(a.props,i)?a.text+=t:n.push({text:t,props:i})}}return n}function ov(e){let t={};e.bold&&(t.bold=!0),e.dim&&(t.dim=!0),e.italic&&(t.italic=!0),e.underline!==`none`&&(t.underline=!0),e.strikethrough&&(t.strikethrough=!0),e.inverse&&(t.inverse=!0);let n=sv(e.fg);n&&(t.color=n);let r=sv(e.bg);return r&&(t.backgroundColor=r),t}function sv(e){switch(e.type){case`named`:return hv[e.name];case`indexed`:return`ansi256(${e.index})`;case`rgb`:return`rgb(${e.r},${e.g},${e.b})`;case`default`:return}}function cv(e,t){return e.color===t.color&&e.backgroundColor===t.backgroundColor&&e.bold===t.bold&&e.dim===t.dim&&e.italic===t.italic&&e.underline===t.underline&&e.strikethrough===t.strikethrough&&e.inverse===t.inverse&&e.hyperlink===t.hyperlink}function lv(e){return e.color!==void 0||e.backgroundColor!==void 0||e.dim===!0||e.bold===!0||e.italic===!0||e.underline===!0||e.strikethrough===!0||e.inverse===!0||e.hyperlink!==void 0}function uv(e){return e.color!==void 0||e.backgroundColor!==void 0||e.dim===!0||e.bold===!0||e.italic===!0||e.underline===!0||e.strikethrough===!0||e.inverse===!0}function dv({bold:e,dim:t,children:n,...r}){return t?(0,pv.jsx)(Kf,{...r,dim:!0,children:n}):e?(0,pv.jsx)(Kf,{...r,bold:!0,children:n}):(0,pv.jsx)(Kf,{...r,children:n})}var fv,pv,mv,hv,gv=t((()=>{fv=n(j(),1),L_(),Yf(),iv(),pv=y(),mv=fv.memo(function({children:e,dimColor:t}){if(typeof e!=`string`)return t?(0,pv.jsx)(Kf,{dim:!0,children:String(e)}):(0,pv.jsx)(Kf,{children:String(e)});if(e===``)return null;let n=av(e);if(n.length===0)return null;if(n.length===1&&!lv(n[0].props))return t?(0,pv.jsx)(Kf,{dim:!0,children:n[0].text}):(0,pv.jsx)(Kf,{children:n[0].text});let r=n.map((e,n)=>{let r=e.props.hyperlink;t&&(e.props.dim=!0);let i=uv(e.props);return r?i?(0,pv.jsx)(F_,{url:r,children:(0,pv.jsx)(dv,{color:e.props.color,backgroundColor:e.props.backgroundColor,dim:e.props.dim,bold:e.props.bold,italic:e.props.italic,underline:e.props.underline,strikethrough:e.props.strikethrough,inverse:e.props.inverse,children:e.text})},n):(0,pv.jsx)(F_,{url:r,children:e.text},n):i?(0,pv.jsx)(dv,{color:e.props.color,backgroundColor:e.props.backgroundColor,dim:e.props.dim,bold:e.props.bold,italic:e.props.italic,underline:e.props.underline,strikethrough:e.props.strikethrough,inverse:e.props.inverse,children:e.text},n):e.text});return t?(0,pv.jsx)(Kf,{dim:!0,children:r}):(0,pv.jsx)(Kf,{children:r})}),hv={black:`ansi:black`,red:`ansi:red`,green:`ansi:green`,yellow:`ansi:yellow`,blue:`ansi:blue`,magenta:`ansi:magenta`,cyan:`ansi:cyan`,white:`ansi:white`,brightBlack:`ansi:blackBright`,brightRed:`ansi:redBright`,brightGreen:`ansi:greenBright`,brightYellow:`ansi:yellowBright`,brightBlue:`ansi:blueBright`,brightMagenta:`ansi:magentaBright`,brightCyan:`ansi:cyanBright`,brightWhite:`ansi:whiteBright`}})),_v,vv=t((()=>{_v=e=>({width:e.yogaNode?.getComputedWidth()??0,height:e.yogaNode?.getComputedHeight()??0})}));function yv({onAction:e,tabIndex:t=0,autoFocus:n,children:r,ref:i,...a}){let[o,s]=(0,bv.useState)(!1),[c,l]=(0,bv.useState)(!1),[u,d]=(0,bv.useState)(!1),f=(0,bv.useRef)(null);(0,bv.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]);let p=(0,bv.useCallback)(t=>{(t.key===`return`||t.key===` `)&&(t.preventDefault(),d(!0),e(),f.current&&clearTimeout(f.current),f.current=setTimeout(e=>e(!1),100,d))},[e]),m=(0,bv.useCallback)(t=>{e()},[e]),h=(0,bv.useCallback)(e=>s(!0),[]),g=(0,bv.useCallback)(e=>s(!1),[]),_=(0,bv.useCallback)(()=>l(!0),[]),v=(0,bv.useCallback)(()=>l(!1),[]),y=typeof r==`function`?r({focused:o,hovered:c,active:u}):r;return(0,xv.jsx)(Uf,{ref:i,tabIndex:t,autoFocus:n,onKeyDown:p,onClick:m,onFocus:h,onBlur:g,onMouseEnter:_,onMouseLeave:v,...a,children:y})}var bv,xv,Sv=t((()=>{bv=n(j(),1),Gf(),xv=y()}));function Cv({count:e=1}){return(0,wv.jsx)(`ink-text`,{children:`
|
|
52
|
+
`.repeat(e)})}var wv,Tv=t((()=>{j(),wv=y()}));function Ev(){return(0,Dv.jsx)(Uf,{flexGrow:1})}var Dv,Ov=t((()=>{j(),Gf(),Dv=y()}));function kv({children:e,fromLeftEdge:t,...n}){return(0,Av.jsx)(Uf,{...n,noSelect:t?`from-left-edge`:!0,children:e})}var Av,jv=t((()=>{j(),Gf(),Av=y()}));function Mv({lines:e,width:t}){return e.length===0?null:(0,Nv.jsx)(`ink-raw-ansi`,{rawText:e.join(`
|
|
53
|
+
`),rawWidth:t,rawHeight:e.length})}var Nv,Pv=t((()=>{j(),Nv=y()}));function Fv({children:e,ref:t,stickyScroll:n,...r}){let i=(0,Iv.useRef)(null),[,a]=(0,Iv.useState)(0),o=(0,Iv.useRef)(new Set),s=(0,Iv.useRef)(!1),c=()=>{for(let e of o.current)e()};function l(e){hc(e),sl(),c(),!s.current&&(s.current=!0,queueMicrotask(()=>{s.current=!1,gc(e)}))}return(0,Iv.useImperativeHandle)(t,()=>({scrollTo(e){let t=i.current;t&&(t.stickyScroll=!1,t.pendingScrollDelta=void 0,t.scrollAnchor=void 0,t.scrollTop=Math.max(0,Math.floor(e)),l(t))},scrollToElement(e,t=0){let n=i.current;n&&(n.stickyScroll=!1,n.pendingScrollDelta=void 0,n.scrollAnchor={el:e,offset:t},l(n))},scrollBy(e){let t=i.current;t&&(t.stickyScroll=!1,t.scrollAnchor=void 0,t.pendingScrollDelta=(t.pendingScrollDelta??0)+Math.floor(e),l(t))},scrollToBottom(){let e=i.current;e&&(e.pendingScrollDelta=void 0,e.stickyScroll=!0,hc(e),c(),a(e=>e+1))},getScrollTop(){return i.current?.scrollTop??0},getPendingDelta(){return i.current?.pendingScrollDelta??0},getScrollHeight(){return i.current?.scrollHeight??0},getFreshScrollHeight(){return(i.current?.childNodes[0])?.yogaNode?.getComputedHeight()??i.current?.scrollHeight??0},getViewportHeight(){return i.current?.scrollViewportHeight??0},getViewportTop(){return i.current?.scrollViewportTop??0},isSticky(){let e=i.current;return e?e.stickyScroll??!!e.attributes.stickyScroll:!1},subscribe(e){return o.current.add(e),()=>o.current.delete(e)},setClampBounds(e,t){let n=i.current;n&&(n.scrollClampMin=e,n.scrollClampMax=t)}}),[]),(0,Lv.jsx)(`ink-box`,{ref:e=>{i.current=e,e&&(e.scrollTop??(e.scrollTop=0))},style:{flexWrap:`nowrap`,flexDirection:r.flexDirection??`row`,flexGrow:r.flexGrow??0,flexShrink:r.flexShrink??1,...r,overflowX:`scroll`,overflowY:`scroll`},...n?{stickyScroll:!0}:{},children:(0,Lv.jsx)(Uf,{flexDirection:`column`,flexGrow:1,flexShrink:0,width:`100%`,children:e})})}var Iv,Lv,Rv=t((()=>{Iv=n(j(),1),yc(),El(),Gf(),Lv=y()}));function zv({children:e,mouseTracking:t=!0}){let n=(0,Bv.useContext)(sp),r=(0,Bv.useContext)(Gh);return(0,Bv.useInsertionEffect)(()=>{let e=Mp.get(process.stdout);if(r)return r(dd+`\x1B[2J\x1B[H`+(t?pd:``)),e?.setAltScreenActive(!0,t),()=>{e?.setAltScreenActive(!1),e?.clearTextSelection(),r((t?md:``)+fd)}},[r,t]),(0,Vv.jsx)(Uf,{flexDirection:`column`,height:n?.rows??24,width:`100%`,flexShrink:0,children:e})}var Bv,Vv,Hv=t((()=>{Bv=n(j(),1),Np(),hd(),qh(),Gf(),cp(),Vv=y()})),Uv,Wv,Gv=t((()=>{Uv=n(j(),1),gf(),Wv=()=>(0,Uv.useContext)(hf)}));function Kv(){let e=(0,qv.useContext)(sp),t=(0,qv.useRef)(null),n=(0,qv.useRef)({isVisible:!0}),r=(0,qv.useCallback)(e=>{t.current=e},[]);return(0,qv.useLayoutEffect)(()=>{let r=t.current;if(!r?.yogaNode||!e)return;let i=r.yogaNode.getComputedHeight(),a=e.rows,o=r.yogaNode.getComputedTop(),s=r.parentNode,c=r.yogaNode;for(;s;)s.yogaNode&&(o+=s.yogaNode.getComputedTop(),c=s.yogaNode),s.scrollTop&&(o-=s.scrollTop),s=s.parentNode;let l=c.getComputedHeight(),u=o+i,d=+(l>a),f=Math.max(0,l-a)+d,p=f+a,m=u>f&&o<p;m!==n.current.isVisible&&(n.current={isVisible:m})}),[r,n.current]}var qv,Jv=t((()=>{qv=n(j(),1),cp()}));function Yv(e=16){let t=(0,Xv.useContext)(Af),[n,{isVisible:r}]=Kv(),[i,a]=(0,Xv.useState)(()=>t?.now()??0),o=r&&e!==null;return(0,Xv.useEffect)(()=>{if(!t||!o)return;let n=t.now();return t.subscribe(()=>{let r=t.now();r-n>=e&&(n=r,a(r))},!0)},[t,e,o]),[n,i]}var Xv,Zv=t((()=>{Xv=n(j(),1),Mf(),Jv()}));function Qv(e){let t=(0,ey.useContext)(Af),[n,r]=(0,ey.useState)(()=>t?.now()??0);return(0,ey.useEffect)(()=>{if(!t)return;let n=t.now();return t.subscribe(()=>{let i=t.now();i-n>=e&&(n=i,r(i))},!1)},[t,e]),n}function $v(e,t){let n=(0,ey.useRef)(e);n.current=e;let r=(0,ey.useContext)(Af);(0,ey.useEffect)(()=>{if(!r||t===null)return;let e=r.now();return r.subscribe(()=>{let i=r.now();i-e>=t&&(e=i,n.current())},!1)},[r,t])}var ey,ty=t((()=>{ey=n(j(),1),Mf()}));function ny(){(0,iy.useContext)(ip);let e=Mp.get(process.stdout);return(0,iy.useMemo)(()=>e?{copySelection:()=>e.copySelection(),copySelectionNoClear:()=>e.copySelectionNoClear(),clearSelection:()=>e.clearTextSelection(),hasSelection:()=>e.hasTextSelection(),getState:()=>e.selection,subscribe:t=>e.subscribeToSelectionChange(t),shiftAnchor:(t,n,r)=>Iu(e.selection,t,n,r),shiftSelection:(t,n,r)=>e.shiftSelectionForScroll(t,n,r),moveFocus:t=>e.moveSelectionFocus(t),captureScrolledRows:(t,n,r)=>e.captureScrolledRows(t,n,r),setSelectionBgColor:t=>e.setSelectionBgColor(t)}:{copySelection:()=>``,copySelectionNoClear:()=>``,clearSelection:()=>{},hasSelection:()=>!1,getState:()=>null,subscribe:()=>()=>{},shiftAnchor:()=>{},shiftSelection:()=>{},moveFocus:()=>{},captureScrolledRows:()=>{},setSelectionBgColor:()=>{}},[e])}function ry(){(0,iy.useContext)(ip);let e=Mp.get(process.stdout);return(0,iy.useSyncExternalStore)(e?e.subscribeToSelectionChange:ay,e?e.hasTextSelection:oy)}var iy,ay,oy,sy=t((()=>{iy=n(j(),1),ap(),Np(),qu(),ay=()=>()=>{},oy=()=>!1}));function cy(){let e=(0,ly.useContext)(sp);if(!e)throw Error(`useTerminalSize must be used within an Ink App component`);return e}var ly,uy=t((()=>{ly=n(j(),1),cp()}));function dy(e,t){let[n,r]=(0,fy.useState)(!1);return(0,fy.useEffect)(()=>{r(!1);let t=setTimeout(r,e,!0);return()=>clearTimeout(t)},[e,t]),n}var fy,py=t((()=>{fy=n(j(),1)}));function my(e,t){let[n,r]=(0,hy.useState)(e),i=(0,hy.useRef)(0);return(0,hy.useEffect)(()=>{let n=Date.now()-i.current;if(n>=t){i.current=Date.now(),r(e);return}let a=setTimeout((e,t,n)=>{e.current=Date.now(),t(n)},t-n,i,r,e);return()=>clearTimeout(a)},[e,t]),n}var hy,gy=t((()=>{hy=n(j(),1)}));function _y(e,t,n){let r=(0,vy.useRef)(0),i=(0,vy.useRef)(void 0),a=(0,vy.useCallback)(()=>{i.current&&(clearTimeout(i.current),i.current=void 0)},[]);return(0,vy.useEffect)(()=>()=>{a()},[a]),(0,vy.useCallback)(()=>{let o=Date.now();o-r.current<=800&&i.current!==void 0?(a(),e(!1),t()):(n?.(),e(!0),a(),i.current=setTimeout((e,t)=>{e(!1),t.current=void 0},800,e,i)),r.current=o},[e,t,n,a])}var vy,yy,by=t((()=>{vy=n(j(),1),yy=800}));function xy(e){let t=(0,Sy.useContext)(Gh),n=(0,Sy.useRef)(null);(0,Sy.useEffect)(()=>{if(e===null){n.current!==null&&t&&Ad()&&t(vd(Vd)),n.current=null;return}n.current=e,!(!t||!Ad())&&t(vd(jd(wy[e])))},[e,t])}var Sy,Cy,wy,Ty=t((()=>{Sy=n(j(),1),Hd(),qh(),Cy=(e,t,n)=>({type:`rgb`,r:e,g:t,b:n}),wy={idle:{indicator:Cy(0,215,95),status:`Idle`,statusColor:Cy(136,136,136)},busy:{indicator:Cy(255,149,0),status:`Working…`,statusColor:Cy(255,149,0)},waiting:{indicator:Cy(95,135,255),status:`Waiting`,statusColor:Cy(95,135,255)}}}));function Ey(e){let t=(0,Dy.useContext)(Gh);(0,Dy.useEffect)(()=>{if(e===null||!t)return;let n=sa(e);process.platform===`win32`?process.title=n:t(_d(Fd.SET_TITLE_AND_ICON,n))},[e,t])}var Dy,Oy=t((()=>{Dy=n(j(),1),la(),Hd(),qh()}));function ky(){(0,Ay.useContext)(ip);let e=Mp.get(process.stdout);return(0,Ay.useMemo)(()=>e?{setQuery:t=>e.setSearchHighlight(t),scanElement:t=>e.scanElementSubtree(t),setPositions:t=>e.setSearchPositions(t)}:{setQuery:()=>{},scanElement:()=>[],setPositions:()=>{}},[e])}var Ay,jy=t((()=>{Ay=n(j(),1),ap(),Np()}));function My({line:e,column:t,active:n}){let r=(0,Ny.useContext)(Pf),i=(0,Ny.useRef)(null),a=(0,Ny.useCallback)(e=>{i.current=e},[]);return(0,Ny.useLayoutEffect)(()=>{let a=i.current;n&&a?r({relativeX:t,relativeY:e,node:a}):r(null,a)}),(0,Ny.useLayoutEffect)(()=>()=>{r(null,i.current)},[r]),a}var Ny,Py=t((()=>{Ny=n(j(),1),Ff()}));function Fy(){let e=process.env.COLORFGBG;if(!e)return;let t=e.split(`;`);if(t.length<2)return;let n=parseInt(t[t.length-1],10);if(!isNaN(n))return n>=8?`light`:`dark`}function Iy(){return Ly===void 0&&(Ly=Fy()??`dark`),Ly}var Ly,Ry=t((()=>{}));function zy(e){Jy=e.loadTheme,Yy=e.saveTheme}function By(){return Jy()}function Vy(e){Yy(e)}function Hy({children:e,initialState:t,onThemeSave:n=Vy}){let[r,i]=(0,Ky.useState)(t??By),[a,o]=(0,Ky.useState)(null),[s,c]=(0,Ky.useState)(()=>(t??r)===`auto`?Iy():`dark`),l=a??r,{internal_querier:u}=Pg();(0,Ky.useEffect)(()=>{},[l,u]);let d=l===`auto`?s:l,f=(0,Ky.useMemo)(()=>({themeSetting:r,setThemeSetting:e=>{i(e),o(null),e===`auto`&&c(Iy()),n?.(e)},setPreviewTheme:e=>{o(e),e===`auto`&&c(Iy())},savePreview:()=>{a!==null&&(i(a),o(null),n?.(a))},cancelPreview:()=>{a!==null&&o(null)},currentTheme:d}),[r,a,d,n]);return(0,qy.jsx)(Zy.Provider,{value:f,children:e})}function Uy(){let{currentTheme:e,setThemeSetting:t}=(0,Ky.useContext)(Zy);return[e,t]}function Wy(){return(0,Ky.useContext)(Zy).themeSetting}function Gy(){let{setPreviewTheme:e,savePreview:t,cancelPreview:n}=(0,Ky.useContext)(Zy);return{setPreviewTheme:e,savePreview:t,cancelPreview:n}}var Ky,qy,Jy,Yy,Xy,Zy,Qy=t((()=>{Ky=n(j(),1),Fg(),Ry(),qy=y(),Jy=()=>`dark`,Yy=()=>{},Xy=`dark`,Zy=(0,Ky.createContext)({themeSetting:Xy,setThemeSetting:()=>{},setPreviewTheme:()=>{},savePreview:()=>{},cancelPreview:()=>{},currentTheme:Xy})}));function $y(e,t){if(e)return e.startsWith(`rgb(`)||e.startsWith(`#`)||e.startsWith(`ansi256(`)||e.startsWith(`ansi:`)?e:t[e]}function eb({borderColor:e,borderTopColor:t,borderBottomColor:n,borderLeftColor:r,borderRightColor:i,backgroundColor:a,children:o,ref:s,...c}){let[l]=Uy(),u=fg(l);return(0,tb.jsx)(Uf,{ref:s,borderColor:$y(e,u),borderTopColor:$y(t,u),borderBottomColor:$y(n,u),borderLeftColor:$y(r,u),borderRightColor:$y(i,u),backgroundColor:$y(a,u),...c,children:o})}var tb,nb=t((()=>{j(),Gf(),Cg(),Qy(),tb=y()}));function rb(e,t){if(e)return e.startsWith(`rgb(`)||e.startsWith(`#`)||e.startsWith(`ansi256(`)||e.startsWith(`ansi:`)?e:t[e]}function $({color:e,backgroundColor:t,dimColor:n=!1,bold:r=!1,italic:i=!1,underline:a=!1,strikethrough:o=!1,inverse:s=!1,wrap:c=`wrap`,children:l}){let[u]=Uy(),d=fg(u),f=(0,ib.useContext)(ob);return(0,ab.jsx)(Kf,{color:!e&&f?rb(f,d):n?d.inactive:rb(e,d),backgroundColor:t?d[t]:void 0,bold:r,italic:i,underline:a,strikethrough:o,inverse:s,wrap:c,children:l})}var ib,ab,ob,sb=t((()=>{ib=n(j(),1),Yf(),Cg(),Qy(),ab=y(),ob=ib.createContext(void 0)}));function cb(e,t,n=`foreground`){return r=>e?e.startsWith(`rgb(`)||e.startsWith(`#`)||e.startsWith(`ansi256(`)||e.startsWith(`ansi:`)?zn(r,e,n):zn(r,fg(t)[e],n):r}var lb=t((()=>{Bn(),Cg()}));function ub({query:e,placeholder:t=`Search…`,isFocused:n,isTerminalFocused:r,prefix:i=`⌕`,width:a,cursorOffset:o,borderless:s=!1}){let c=o??e.length;return(0,db.jsx)(eb,{flexShrink:0,borderStyle:s?void 0:`round`,borderColor:n?`suggestion`:void 0,borderDimColor:!n,paddingX:+!s,width:a,children:(0,db.jsxs)($,{dimColor:!n,children:[i,` `,n?(0,db.jsx)(db.Fragment,{children:e?r?(0,db.jsxs)(db.Fragment,{children:[(0,db.jsx)($,{children:e.slice(0,c)}),(0,db.jsx)($,{inverse:!0,children:c<e.length?e[c]:` `}),c<e.length&&(0,db.jsx)($,{children:e.slice(c+1)})]}):(0,db.jsx)($,{children:e}):r?(0,db.jsxs)(db.Fragment,{children:[(0,db.jsx)($,{inverse:!0,children:t.charAt(0)}),(0,db.jsx)($,{dimColor:!0,children:t.slice(1)})]}):(0,db.jsx)($,{dimColor:!0,children:t})}):e?(0,db.jsx)($,{children:e}):(0,db.jsx)($,{children:t})]})})}var db,fb=t((()=>{j(),Mx(),db=y()}));function pb(e,t){let n=0,r;return()=>{let i=Date.now();i-n<=gb&&r!==void 0?(clearTimeout(r),r=void 0,e(!1),t()):(e(!0),clearTimeout(r),r=setTimeout(()=>{e(!1),r=void 0},gb)),n=i}}function mb(e,t,n=!0){let[r,i]=(0,hb.useState)({pending:!1,keyName:null}),a=pb(e=>i({pending:e,keyName:e?`Ctrl-C`:null}),()=>process.exit(0)),o=pb(e=>i({pending:e,keyName:e?`Ctrl-D`:null}),()=>process.exit(0));return Lg((0,hb.useCallback)((e,t)=>{n&&(t.ctrl&&t.name===`c`?a():t.ctrl&&t.name===`d`&&o())},[n,a,o]),{isActive:n}),r}var hb,gb,_b=t((()=>{hb=n(j(),1),Rg(),gb=800}));function vb({shortcut:e,action:t,parens:n=!1,bold:r=!1}){let i=r?(0,yb.jsx)(Kf,{bold:!0,children:e}):e;return n?(0,yb.jsxs)(Kf,{children:[`(`,i,` to `,t,`)`]}):(0,yb.jsxs)(Kf,{children:[i,` to `,t]})}var yb,bb=t((()=>{j(),Yf(),yb=y()}));function xb({fallback:e,description:t,parens:n,bold:r}){return(0,Sb.jsx)(vb,{shortcut:e,action:t,parens:n,bold:r})}var Sb,Cb=t((()=>{j(),bb(),Sb=y()}));function wb({children:e}){let t=Tb.Children.toArray(e);return t.length===0?null:(0,Eb.jsx)(Eb.Fragment,{children:t.map((e,t)=>(0,Eb.jsxs)(Tb.Fragment,{children:[t>0&&(0,Eb.jsx)($,{dimColor:!0,children:` · `}),e]},(0,Tb.isValidElement)(e)?e.key??t:t))})}var Tb,Eb,Db=t((()=>{Tb=n(j(),1),Mx(),Eb=y()}));function Ob(){return(0,Ab.useContext)(jb)!==null}function kb(){return(0,Ab.useContext)(jb)?.scrollRef??null}var Ab,jb,Mb=t((()=>{Ab=n(j(),1),jb=(0,Ab.createContext)(null)}));function Nb({width:e,color:t,char:n=`─`,padding:r=0,title:i}){let{columns:a}=cy(),o=Math.max(0,(e??a)-r);if(i){let e=ba(i)+2,r=Math.max(0,o-e),a=Math.floor(r/2),s=r-a;return(0,Pb.jsxs)($,{color:t,dimColor:!t,children:[n.repeat(a),` `,(0,Pb.jsx)($,{dimColor:!0,children:(0,Pb.jsx)(mv,{children:i})}),` `,n.repeat(s)]})}return(0,Pb.jsx)($,{color:t,dimColor:!t,children:n.repeat(o)})}var Pb,Fb=t((()=>{j(),uy(),xa(),Mx(),Pb=y()}));function Ib({children:e,color:t}){return Ob()?(0,Lb.jsx)(eb,{flexDirection:`column`,paddingX:1,flexShrink:0,children:e}):(0,Lb.jsxs)(eb,{flexDirection:`column`,paddingTop:1,children:[(0,Lb.jsx)(Nb,{color:t}),(0,Lb.jsx)(eb,{flexDirection:`column`,paddingX:2,children:e})]})}var Lb,Rb=t((()=>{j(),Mb(),Mx(),Fb(),Lb=y()}));function zb({title:e,subtitle:t,children:n,onCancel:r,color:i=`permission`,hideInputGuide:a,hideBorder:o,inputGuide:s,isCancelActive:c=!0}){let l=mb(void 0,void 0,c);g_(`confirm:no`,r,{context:`Confirmation`,isActive:c});let u=l.pending?(0,Bb.jsxs)($,{children:[`Press `,l.keyName,` again to exit`]}):(0,Bb.jsxs)(wb,{children:[(0,Bb.jsx)(vb,{shortcut:`Enter`,action:`confirm`}),(0,Bb.jsx)(xb,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}),d=(0,Bb.jsxs)(Bb.Fragment,{children:[(0,Bb.jsxs)(eb,{flexDirection:`column`,gap:1,children:[(0,Bb.jsxs)(eb,{flexDirection:`column`,children:[(0,Bb.jsx)($,{bold:!0,color:i,children:e}),t&&(0,Bb.jsx)($,{dimColor:!0,children:t})]}),n]}),!a&&(0,Bb.jsx)(eb,{marginTop:1,children:(0,Bb.jsx)($,{dimColor:!0,italic:!0,children:s?s(l):u})})]});return o?d:(0,Bb.jsx)(Ib,{color:i,children:d})}var Bb,Vb=t((()=>{j(),_b(),Mx(),y_(),Cb(),Db(),bb(),Rb(),Bb=y()}));function Hb({isActive:e,onExit:t,onCancel:n,onExitUp:r,columns:i,initialQuery:a=``,backspaceExitsOnEmpty:o=!0}){let{columns:s}=cy(),[c,l]=(0,Ub.useState)(a),[u,d]=(0,Ub.useState)(a.length),f=(0,Ub.useCallback)(e=>{l(e),d(e.length)},[]),p=i=>{if(e){if(i.key===`return`||i.key===`down`){i.preventDefault(),t();return}if(i.key===`up`){i.preventDefault(),r?.();return}if(i.key===`escape`){i.preventDefault(),n?n():c.length>0?(l(``),d(0)):t();return}if(i.key===`backspace`){if(i.preventDefault(),c.length===0){o&&(n??t)();return}let e=Math.max(0,u-1);l(c.slice(0,e)+c.slice(u)),d(e);return}if(i.key===`delete`){i.preventDefault(),u<c.length&&l(c.slice(0,u)+c.slice(u+1));return}if(i.key===`left`){i.preventDefault(),d(Math.max(0,u-1));return}if(i.key===`right`){i.preventDefault(),d(Math.min(c.length,u+1));return}if(i.key===`home`){i.preventDefault(),d(0);return}if(i.key===`end`){i.preventDefault(),d(c.length);return}if(i.ctrl){switch(i.key.toLowerCase()){case`a`:i.preventDefault(),d(0);return;case`e`:i.preventDefault(),d(c.length);return;case`b`:i.preventDefault(),d(Math.max(0,u-1));return;case`f`:i.preventDefault(),d(Math.min(c.length,u+1));return;case`d`:if(i.preventDefault(),c.length===0){(n??t)();return}u<c.length&&l(c.slice(0,u)+c.slice(u+1));return;case`h`:{if(i.preventDefault(),c.length===0){o&&(n??t)();return}let e=Math.max(0,u-1);l(c.slice(0,e)+c.slice(u)),d(e);return}case`c`:i.preventDefault(),n?.();return;case`u`:i.preventDefault(),l(c.slice(u)),d(0);return;case`k`:i.preventDefault(),l(c.slice(0,u));return;case`w`:{i.preventDefault();let e=c.slice(0,u),t=c.slice(u),n=e.replace(/\S+\s*$/,``);l(n+t),d(n.length);return}}return}i.key!==`tab`&&i.key.length>=1&&!Wb.has(i.key)&&(i.preventDefault(),l(c.slice(0,u)+i.key+c.slice(u)),d(u+1))}};return Lg((e,t,n)=>{p(new Sp(n.keypress))},{isActive:e}),{query:c,setQuery:f,cursorOffset:u,handleKeyDown:p}}var Ub,Wb,Gb=t((()=>{Ub=n(j(),1),Cp(),Rg(),uy(),Wb=new Set([`pageup`,`pagedown`,`insert`,`wheelup`,`wheeldown`,`mouse`,`f1`,`f2`,`f3`,`f4`,`f5`,`f6`,`f7`,`f8`,`f9`,`f10`,`f11`,`f12`])}));function Kb({isFocused:e,isSelected:t=!1,children:n,description:r,showScrollDown:i,showScrollUp:a,styled:o=!0,disabled:s=!1,declareCursor:c}){function l(){return s?(0,qb.jsx)($,{children:` `}):e?(0,qb.jsx)($,{color:`suggestion`,children:p.pointer}):i?(0,qb.jsx)($,{dimColor:!0,children:p.arrowDown}):a?(0,qb.jsx)($,{dimColor:!0,children:p.arrowUp}):(0,qb.jsx)($,{children:` `})}function u(){if(s)return`inactive`;if(o){if(t)return`success`;if(e)return`suggestion`}}let d=u();return(0,qb.jsxs)(eb,{ref:My({line:0,column:0,active:e&&!s&&c!==!1}),flexDirection:`column`,children:[(0,qb.jsxs)(eb,{flexDirection:`row`,gap:1,children:[l(),o?(0,qb.jsx)($,{color:d,dimColor:s,children:n}):n,t&&!s&&(0,qb.jsx)($,{color:`success`,children:p.tick})]}),r&&(0,qb.jsx)(eb,{paddingLeft:2,children:(0,qb.jsx)($,{color:`inactive`,children:r})})]})}var qb,Jb=t((()=>{d(),j(),Py(),Mx(),qb=y()}));function Yb({title:e,placeholder:t=`Type to search…`,initialQuery:n,items:r,getKey:i,renderItem:a,renderPreview:o,previewPosition:s=`bottom`,visibleCount:c=ex,direction:l=`down`,onQueryChange:u,onSelect:d,onTab:f,onShiftTab:p,onFocus:m,onCancel:h,emptyMessage:g=`No results`,matchLabel:_,selectAction:v=`select`,extraHints:y}){let b=Cf(),{rows:x,columns:S}=cy(),[C,w]=(0,Qb.useState)(0),T=Math.max(nx,Math.min(c,x-tx-+!!_)),E=S<120,D=e=>{w(t=>Ol(t+e,0,r.length-1))},{query:O,cursorOffset:ee}=Hb({isActive:!0,onExit:()=>{},onCancel:h,initialQuery:n,backspaceExitsOnEmpty:!1}),te=e=>{if(e.key===`up`||e.ctrl&&e.key===`p`){e.preventDefault(),e.stopImmediatePropagation(),D(l===`up`?1:-1);return}if(e.key===`down`||e.ctrl&&e.key===`n`){e.preventDefault(),e.stopImmediatePropagation(),D(l===`up`?-1:1);return}if(e.key===`return`){e.preventDefault(),e.stopImmediatePropagation();let t=r[C];t&&d(t);return}if(e.key===`tab`){e.preventDefault(),e.stopImmediatePropagation();let t=r[C];if(!t)return;let n=e.shift?p??f:f;n?n.handler(t):d(t)}};(0,Qb.useEffect)(()=>{u(O),w(0)},[O]),(0,Qb.useEffect)(()=>{w(e=>Ol(e,0,r.length-1))},[r.length]);let k=r[C];(0,Qb.useEffect)(()=>{m?.(k)},[k]);let ne=Ol(C-T+1,0,r.length-T),re=r.slice(ne,ne+T),ie=typeof g==`function`?g(O):g,ae=(0,$b.jsx)(ub,{query:O,cursorOffset:ee,placeholder:t,isFocused:!0,isTerminalFocused:b}),oe=(0,$b.jsx)(Xb,{visible:re,windowStart:ne,visibleCount:T,total:r.length,focusedIndex:C,direction:l,getKey:i,renderItem:a,emptyText:ie}),se=o&&k?(0,$b.jsx)(eb,{flexDirection:`column`,flexGrow:1,children:o(k)}):null,ce=o&&s===`right`?(0,$b.jsxs)(eb,{flexDirection:`row`,gap:2,height:T+ +!!_,children:[(0,$b.jsxs)(eb,{flexDirection:`column`,flexShrink:0,children:[oe,_&&(0,$b.jsx)($,{dimColor:!0,children:_})]}),se??(0,$b.jsx)(eb,{flexGrow:1})]}):(0,$b.jsxs)(eb,{flexDirection:`column`,children:[oe,_&&(0,$b.jsx)($,{dimColor:!0,children:_}),se]}),le=l!==`up`;return(0,$b.jsx)(Ib,{color:`permission`,children:(0,$b.jsxs)(eb,{flexDirection:`column`,gap:1,tabIndex:0,autoFocus:!0,onKeyDown:te,children:[(0,$b.jsx)($,{bold:!0,color:`permission`,children:e}),le&&ae,ce,!le&&ae,(0,$b.jsx)($,{dimColor:!0,children:(0,$b.jsxs)(wb,{children:[(0,$b.jsx)(vb,{shortcut:`↑/↓`,action:E?`nav`:`navigate`}),(0,$b.jsx)(vb,{shortcut:`Enter`,action:E?Zb(v):v}),f&&(0,$b.jsx)(vb,{shortcut:`Tab`,action:f.action}),p&&!E&&(0,$b.jsx)(vb,{shortcut:`shift+tab`,action:p.action}),(0,$b.jsx)(vb,{shortcut:`Esc`,action:`cancel`}),y]})})]})})}function Xb({visible:e,windowStart:t,visibleCount:n,total:r,focusedIndex:i,direction:a,getKey:o,renderItem:s,emptyText:c}){if(e.length===0)return(0,$b.jsx)(eb,{height:n,flexShrink:0,children:(0,$b.jsx)($,{dimColor:!0,children:c})});let l=e.map((c,l)=>{let u=t+l===i,d=l===0&&t>0,f=l===e.length-1&&t+n<r;return(0,$b.jsx)(Kb,{isFocused:u,showScrollUp:a===`up`?f:d,showScrollDown:a===`up`?d:f,styled:!1,children:s(c,u)},o(c))});return(0,$b.jsx)(eb,{height:n,flexShrink:0,flexDirection:a===`up`?`column-reverse`:`column`,children:l})}function Zb(e){let t=e.indexOf(` `);return t===-1?e:e.slice(0,t)}var Qb,$b,ex,tx,nx,rx=t((()=>{j(),Qb=n(j(),1),Gb(),uy(),kl(),Mx(),fb(),Db(),bb(),Jb(),Rb(),$b=y(),ex=8,tx=10,nx=2}));function ix(){let[e,t]=(0,ax.useState)(0);return(0,ax.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%sx.length)},80);return()=>clearInterval(e)},[]),(0,ox.jsx)($,{children:sx[e]})}var ax,ox,sx,cx=t((()=>{ax=n(j(),1),Mx(),ox=y(),sx=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`]}));function lx({message:e,bold:t=!1,dimColor:n=!1,subtitle:r}){return(0,ux.jsxs)(eb,{flexDirection:`column`,children:[(0,ux.jsxs)(eb,{flexDirection:`row`,children:[(0,ux.jsx)(ix,{}),(0,ux.jsxs)($,{bold:t,dimColor:n,children:[` `,e]})]}),r&&(0,ux.jsx)($,{dimColor:!0,children:r})]})}var ux,dx=t((()=>{j(),Mx(),cx(),ux=y()}));function fx({ratio:e,width:t,fillColor:n,emptyColor:r}){let i=Math.min(1,Math.max(0,e)),a=Math.floor(i*t),o=[mx[mx.length-1].repeat(a)];if(a<t){let e=i*t-a,n=Math.floor(e*mx.length);o.push(mx[n]);let r=t-a-1;r>0&&o.push(mx[0].repeat(r))}return(0,px.jsx)($,{color:n,backgroundColor:r,children:o.join(``)})}var px,mx,hx=t((()=>{j(),Mx(),px=y(),mx=[` `,`▏`,`▎`,`▍`,`▌`,`▋`,`▊`,`▉`,`█`]}));function gx({children:e,lock:t=`always`}){let[n,{isVisible:r}]=Kv(),{rows:i}=cy(),a=(0,_x.useRef)(null),o=(0,_x.useRef)(0),[s,c]=(0,_x.useState)(0),l=(0,_x.useCallback)(e=>{n(e)},[n]),u=t===`always`||!r;return(0,_x.useLayoutEffect)(()=>{if(!a.current)return;let{height:e}=_v(a.current);e>o.current&&(o.current=Math.min(e,i),c(o.current))}),(0,vx.jsx)(eb,{minHeight:u?s:void 0,ref:l,children:(0,vx.jsx)(eb,{ref:a,flexDirection:`column`,children:e})})}var _x,vx,yx=t((()=>{_x=n(j(),1),uy(),Jv(),Mx(),vx=y()}));function bx({status:e,withSpace:t=!1}){let n=Sx[e];return(0,xx.jsxs)($,{color:n.color,dimColor:!n.color,children:[n.icon,t&&` `]})}var xx,Sx,Cx=t((()=>{d(),j(),Mx(),xx=y(),Sx={success:{icon:p.tick,color:`success`},error:{icon:p.cross,color:`error`},warning:{icon:p.warning,color:`warning`},info:{icon:p.info,color:`suggestion`},pending:{icon:p.circle,color:void 0},loading:{icon:`…`,color:void 0}}}));function wx({title:e,color:t,defaultTab:n,children:r,hidden:i,useFullWidth:a,selectedTab:o,onTabChange:s,banner:c,disableNavigation:l,initialHeaderFocused:u=!0,contentHeight:d,navFromContent:f=!1}){let{columns:p}=cy(),m=r.map(e=>[e.props.id??e.props.title,e.props.title]),h=n?m.findIndex(e=>n===e[0]):0,g=o!==void 0,[_,v]=(0,Ox.useState)(h===-1?0:h),y=g?m.findIndex(e=>e[0]===o):-1,b=g?y===-1?0:y:_,x=kb(),[S,C]=(0,Ox.useState)(u),w=(0,Ox.useCallback)(()=>C(!0),[]),T=(0,Ox.useCallback)(()=>C(!1),[]),[E,D]=(0,Ox.useState)(0),O=(0,Ox.useCallback)(()=>(D(e=>e+1),()=>D(e=>e-1)),[]),ee=E>0,te=e=>{let t=(b+m.length+e)%m.length,n=m[t]?.[0];g&&s&&n?s(n):v(t),C(!0)};__({"tabs:next":()=>te(1),"tabs:previous":()=>te(-1)},{context:`Tabs`,isActive:!i&&!l&&S});let k=e=>{!S||!ee||i||e.key===`down`&&(e.preventDefault(),C(!1))};__({"tabs:next":()=>{te(1),C(!0)},"tabs:previous":()=>{te(-1),C(!0)}},{context:`Tabs`,isActive:f&&!S&&ee&&!i&&!l});let ne=(e?ba(e)+1:0)+m.reduce((e,[,t])=>e+(t?ba(t):0)+2+1,0),re=a?Math.max(0,p-ne):0,ie=a?p:void 0;return(0,kx.jsx)(Ax.Provider,{value:{selectedTab:m[b][0],width:ie,headerFocused:S,focusHeader:w,blurHeader:T,registerOptIn:O},children:(0,kx.jsxs)(eb,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:k,flexShrink:x?0:void 0,children:[!i&&(0,kx.jsxs)(eb,{flexDirection:`row`,gap:1,flexShrink:x?0:void 0,children:[e!==void 0&&(0,kx.jsx)($,{bold:!0,color:t,children:e}),m.map(([e,n],r)=>{let i=b===r,a=t&&i&&S;return(0,kx.jsxs)($,{backgroundColor:a?t:void 0,color:a?`inverseText`:void 0,inverse:i&&!a,bold:i,children:[` `,n,` `]},e)}),re>0&&(0,kx.jsx)($,{children:` `.repeat(re)})]}),c,x?(0,kx.jsx)(eb,{width:ie,marginTop:+!i,flexShrink:0,children:(0,kx.jsx)(Fv,{ref:x,flexDirection:`column`,flexShrink:0,children:r},b)}):(0,kx.jsx)(eb,{width:ie,marginTop:+!i,height:d,overflowY:d===void 0?void 0:`hidden`,children:r})]})})}function Tx({title:e,id:t,children:n}){let{selectedTab:r,width:i}=(0,Ox.useContext)(Ax),a=Ob();return r===(t??e)?(0,kx.jsx)(eb,{width:i,flexShrink:a?0:void 0,children:n}):null}function Ex(){let{width:e}=(0,Ox.useContext)(Ax);return e}function Dx(){let{headerFocused:e,focusHeader:t,blurHeader:n,registerOptIn:r}=(0,Ox.useContext)(Ax);return(0,Ox.useEffect)(r,[r]),{headerFocused:e,focusHeader:t,blurHeader:n}}var Ox,kx,Ax,jx=t((()=>{Ox=n(j(),1),Mb(),uy(),Rv(),xa(),Mx(),y_(),kx=y(),Ax=(0,Ox.createContext)({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})})),Mx=t((()=>{dg(),Cg(),ag(),y_(),h_(),s_(),$g(),Wg(),T_(),Dp(),Wn(),Hn(),li(),di(),Cp(),Pc(),Hc(),gv(),xa(),$s(),vv(),Hd(),kr(),hd(),Np(),Xm(),ef(),Bn(),Js(),el(),kl(),lf(),P_(),Gf(),Yf(),Sv(),L_(),Tv(),Ov(),jv(),Pv(),Rv(),Hv(),cp(),Gv(),Rg(),Zv(),ty(),sy(),Fg(),uy(),py(),gy(),by(),Ty(),Tf(),Oy(),Jv(),jy(),Py(),qh(),Qy(),nb(),sb(),lb(),fb(),Vb(),Fb(),rx(),Jb(),dx(),Rb(),hx(),yx(),Cx(),jx(),Db(),bb()}));export{M_ as $,Bd as $t,xy as A,Un as An,og as At,Yv as B,le as Bn,sp as Bt,zy as C,ba as Cn,Mg as Ct,My as D,ci as Dn,hg as Dt,Wy as E,ui as En,mg as Et,cy as F,Tn as Fn,Uh as Ft,Mv as G,nf as Gt,Wv as H,Uf as Ht,ry as I,z as In,Ym as It,Cv as J,Wd as Jt,kv as K,af as Kt,ny as L,Mn as Ln,Mp as Lt,_y as M,In as Mn,cg as Mt,my as N,Fn as Nn,ng as Nt,ky as O,Er as On,fg as Ot,dy as P,zn as Pn,Kh as Pt,F_ as Q,Vd as Qt,Qv as R,j as Rn,Ep as Rt,Hy as S,mo as Sn,Pg as St,Uy as T,sa as Tn,Tg as Tt,zv as U,Cf as Ut,Kv as V,Kf as Vt,Fv as W,rf as Wt,_v as X,Yd as Xt,yv as Y,Kd as Yt,mv as Z,zd as Zt,ub as _,qs as _n,Gg as _t,Ex as a,cd as an,u_ as at,$ as b,So as bn,Hg as bt,fx as c,dd as cn,r_ as ct,Kb as d,ld as dn,Zg as dt,yd as en,b_ as et,zb as f,Ol as fn,Yg as ft,vb as g,Zs as gn,Kg as gt,wb as h,Nc as hn,Qg as ht,Dx as i,od as in,l_ as it,yy as j,Vn as jn,sg as jt,Ey as k,Or as kn,pg as kt,lx as l,fd as ln,e_ as lt,Nb as m,Vc as mn,qg as mt,Tx as n,Ad as nn,__ as nt,bx as o,md as on,d_ as ot,Ib as p,$c as pn,Xg as pt,Ev as q,Jd as qt,wx as r,vd as rn,c_ as rt,gx as s,pd as sn,t_ as st,Mx as t,Sd as tn,g_ as tt,Yb as u,ud as un,o_ as ut,cb as v,Bo as vn,Bg as vt,Gy as w,la as wn,Og as wt,eb as x,yo as xn,Lg as xt,ob as y,Lo as yn,Ug as yt,$v as z,ue as zn,Sp as zt};
|