@yuriai/web 0.3.4 → 0.3.6-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/AgentAvatar-C_s-cMy0.js +1 -0
- package/dist/assets/AgentSelector-Df4rBNQs.js +1 -0
- package/dist/assets/ArchivedSessionsDialog-BQdqEIFM.js +1 -0
- package/dist/assets/{AssistantConversationSurface-36aP0hRf.js → AssistantConversationSurface-BOsGik2U.js} +3 -3
- package/dist/assets/AssistantSessionCard-DFi6eIIE.js +2 -0
- package/dist/assets/AssistantUnreadBadge-B9IS5LPM.js +1 -0
- package/dist/assets/AssistantView-yCnV95Dr.js +1 -0
- package/dist/assets/AssistantWorkingAvatar-Bp1KXuhO.js +1 -0
- package/dist/assets/AssistantsSettingsPage-pPeanepy.js +1 -0
- package/dist/assets/BinaryFileFallback-C3sgeTIN.js +1 -0
- package/dist/assets/BtwPanel-BvqTaKLQ.js +6 -0
- package/dist/assets/BusyDots-CU41Xq9E.js +4 -0
- package/dist/assets/ChatContainer-DXRL0aB2.js +65 -0
- package/dist/assets/ChatView-AcZ0Fl7_.js +3 -0
- package/dist/assets/{DiagramView-DGnmjS2b.js → DiagramView-CyGBR2qn.js} +1 -1
- package/dist/assets/{DiffView-Bbit6OZ8.js → DiffView-z4ArmNTm.js} +2 -2
- package/dist/assets/DiffViewToggle-BBxj5Yby.js +1 -0
- package/dist/assets/ErrorBoundary-B4CbFTTY.js +1 -0
- package/dist/assets/FadeInOnReveal-C2UMs63r.js +1 -0
- package/dist/assets/{GuiPluginMount-TC5FELtQ.js → GuiPluginMount-JWmLTeLO.js} +1 -1
- package/dist/assets/GuiPluginPage-BB6qitNb.js +1 -0
- package/dist/assets/GuiPluginSurface-CKW1UPZD.js +1 -0
- package/dist/assets/GuiPluginTitlebarItems-Bmo9W0sn.js +1 -0
- package/dist/assets/{GuiPluginWindow-BkAFJyFd.js → GuiPluginWindow-B-6WWulE.js} +1 -1
- package/dist/assets/Icon-CMNOrIAp.js +1 -0
- package/dist/assets/ImageLoadingPlaceholder-FqoECDc5.js +1 -0
- package/dist/assets/{LoadingImage-Df22Rkor.js → LoadingImage-U4z75PsW.js} +1 -1
- package/dist/assets/MarkdownRenderer-CckbVkti.js +2 -0
- package/dist/assets/{MarkdownRendererImpl-D8q0FMnr.js → MarkdownRendererImpl-CO17sAsd.js} +1 -1
- package/dist/assets/MarkstreamRendererImpl-FOsYqre1.js +3 -0
- package/dist/assets/{MobileAssistantSettingsPage-Dgq5FMho.js → MobileAssistantSettingsPage-CYnXMlRV.js} +1 -1
- package/dist/assets/MobileAssistantTab-CtIoTTOV.js +1 -0
- package/dist/assets/{MobileBtwPage-DQUkSO6N.js → MobileBtwPage-CqiEtHuG.js} +1 -1
- package/dist/assets/{MobileChangesSurface-DsYNmAuM.js → MobileChangesSurface-D7AUZxEK.js} +2 -2
- package/dist/assets/MobileChatScreen-CCNqpS3r.js +1 -0
- package/dist/assets/MobileDetailNavigation-BncgS1Gb.js +1 -0
- package/dist/assets/MobileFilesSurface-D6Fzko7m.js +2 -0
- package/dist/assets/MobileHtmlNetworkBoundary-DXkpR8iy.js +2 -0
- package/dist/assets/MobileOverlayPanel-dc8EKqfh.js +1 -0
- package/dist/assets/MobileResizableSheet-Ddf0s-Dp.js +1 -0
- package/dist/assets/{MobileSettingsTab-DaTtRHo1.js → MobileSettingsTab-DoCREe-W.js} +1 -1
- package/dist/assets/{MobileShareBridge-CZpFYmiy.js → MobileShareBridge-DIIhDUmO.js} +1 -1
- package/dist/assets/MobileSurface-bA5ONMXf.js +1 -0
- package/dist/assets/MobileTabPageHeader-DuWdhFAU.js +1 -0
- package/dist/assets/ModelLogo-Bb63bM4S.js +1 -0
- package/dist/assets/ModelSelector-Dpt_OeOA.js +1 -0
- package/dist/assets/MultiRunWindow-CIueenaz.js +1 -0
- package/dist/assets/OnboardingScreen-DQz9jluT.js +1 -0
- package/dist/assets/OverlayScrollbar-Dsj-t--1.js +1 -0
- package/dist/assets/{PierreDiffViewer-DVKsdwJR.js → PierreDiffViewer-BPY2vUDa.js} +3 -3
- package/dist/assets/ProviderLogo-pBVtlU5X.js +1 -0
- package/dist/assets/{RemoteAssistantSessionCard-DAoFvZht.js → RemoteAssistantSessionCard-DV_D7Lmx.js} +1 -1
- package/dist/assets/RemoteDesktopPanel-DvF7mNsC.js +1 -0
- package/dist/assets/ScheduledTasksDialog-DbV9D6t0.js +3 -0
- package/dist/assets/ScrollableOverlay-T7ADHNbV.js +1 -0
- package/dist/assets/SettingsGroup-ZY4tnwQZ.js +1 -0
- package/dist/assets/SettingsView-C1cFkPEn.js +29 -0
- package/dist/assets/SettingsWindow-CPqIwaDs.js +1 -0
- package/dist/assets/SetupTourDialog-D8MqnViH.js +1 -0
- package/dist/assets/{SyncActions-CrOoREWF.js → SyncActions-BUkOsuvk.js} +1 -1
- package/dist/assets/TerminalView-CoeBAVr1.js +8 -0
- package/dist/assets/TextSelectionMenu-CZWUVT4Q.js +11 -0
- package/dist/assets/{ToolOutputDialog-DpaaQ1uZ.js → ToolOutputDialog-DLxoc22s.js} +1 -1
- package/dist/assets/{YuriLogo-Cp6vWDWp.js → YuriLogo-CnV3RxpE.js} +1 -1
- package/dist/assets/{YuriWordmark-CLGHwobA.js → YuriWordmark-Bn5KdqMC.js} +1 -1
- package/dist/assets/{assistant-attachment-cache-bRIIESGe.js → assistant-attachment-cache-Y7yhlQcv.js} +1 -1
- package/dist/assets/assistantMessagePreview-DyHFl0Zy.js +1 -0
- package/dist/assets/assistantQueries-BLm65-22.js +1 -0
- package/dist/assets/{auto-read-context-ClBUErN2.js → auto-read-context-eOYxlJjR.js} +1 -1
- package/dist/assets/{capgoAdapter-pfQJmvW2.js → capgoAdapter-DYyTs76s.js} +1 -1
- package/dist/assets/card-Csh0Af72.js +1 -0
- package/dist/assets/chatUpwardIntent-CivAb4ux.js +1 -0
- package/dist/assets/checkbox-CK288doZ.js +1 -0
- package/dist/assets/{client-B_907PBv.js → client-QcYZg8_d.js} +3 -3
- package/dist/assets/collapsible-C8knwYWk.js +1 -0
- package/dist/assets/{connection-hint-B-kOWome.js → connection-hint-BboPqLXQ.js} +1 -1
- package/dist/assets/context-menu-CBjNNTDr.js +1 -0
- package/dist/assets/{desktopHosts-BsTrBVja.js → desktopHosts-DFa3lf0i.js} +1 -1
- package/dist/assets/{desktopRelayRestore-BxbRKak_.js → desktopRelayRestore-CGq-Ylgq.js} +1 -1
- package/dist/assets/{device-EIfSfSWk.js → device-CtdJ8KBJ.js} +1 -1
- package/dist/assets/diagram-DuMpiER6.js +1 -0
- package/dist/assets/dialog-BPtWiCtF.js +1 -0
- package/dist/assets/dropdown-menu-BWP9Nxwt.js +1 -0
- package/dist/assets/{es-DqYZgeC6.js → es-BelVk9R_.js} +3 -3
- package/dist/assets/{fileMentionTouchSelection-BQEUty_A.js → fileMentionTouchSelection-3GZYNOSd.js} +1 -1
- package/dist/assets/{fileReferenceActions-TmbrIHBI.js → fileReferenceActions-DEUhs_7h.js} +1 -1
- package/dist/assets/{fr-BHaun7Zq.js → fr-DtUzwB6h.js} +3 -3
- package/dist/assets/{gitApi-CoVwjIDy.js → gitApi-CwF3k_rj.js} +1 -1
- package/dist/assets/gitApiHttp-C8AU1uiY.js +3 -0
- package/dist/assets/githubAuthQueries-IJPWBo0B.js +1 -0
- package/dist/assets/historyImportQueries-B3QBdaKo.js +1 -0
- package/dist/assets/host-DchPrZpw.js +1 -0
- package/dist/assets/{i18n-DXc6czdR.js → i18n-BU8XOKjS.js} +1 -1
- package/dist/assets/{icons-Bd-INsoy.js → icons-C25QjTQy.js} +1 -1
- package/dist/assets/{imageSource-BR4C9TuS.js → imageSource-B39pFDdo.js} +1 -1
- package/dist/assets/input-DHQ_HUNG.js +1 -0
- package/dist/assets/{input-store-BSJBQTMi.js → input-store-PqhVEhUI.js} +1 -1
- package/dist/assets/insertionBoundaries-6VDrFW8E.js +1 -0
- package/dist/assets/{ja-BGNugvrx.js → ja-CWta3CAu.js} +3 -3
- package/dist/assets/kbd-CVXHcAl2.js +1 -0
- package/dist/assets/{ko-CGbNBfDe.js → ko-CJFoAZPE.js} +3 -3
- package/dist/assets/main-BGVs-a-z.js +2 -0
- package/dist/assets/main-CHSIwKhf.js +169 -0
- package/dist/assets/{markdownHeightCache-CHGGNhWI.js → markdownHeightCache-BsFEgT5Y.js} +1 -1
- package/dist/assets/mcpQueries-BGNMOHKb.js +1 -0
- package/dist/assets/miniChat-ByGJ6Q_E.js +2 -0
- package/dist/assets/mobile-txc-T67P.js +2 -0
- package/dist/assets/{mobileBackNavigation-C94n2eLT.js → mobileBackNavigation-Cpb7IiCG.js} +1 -1
- package/dist/assets/mobileConnections-5xypkCyd.js +2 -0
- package/dist/assets/multirun-B5_-5JYt.js +3 -0
- package/dist/assets/{native-config-DVg8_Zx1.js → native-config-DLw0Zm99.js} +1 -1
- package/dist/assets/{nativeComposerCover-Bhv1EKPT.js → nativeComposerCover-Btj57e5V.js} +1 -1
- package/dist/assets/navigation-C2qzByuq.js +2 -0
- package/dist/assets/openRemoteProjectSession-BFp0YlF-.js +1 -0
- package/dist/assets/openSessionFromDeepLink-DUPajGkN.js +2 -0
- package/dist/assets/pathNormalization-ewtPqJWn.js +1 -0
- package/dist/assets/{pl-k8-4URiE.js → pl-BwZ6CWJm.js} +3 -3
- package/dist/assets/platform-CNdx57HN.js +1 -0
- package/dist/assets/pluginPresentation-wl8POjDE.js +2 -0
- package/dist/assets/{project-preview-BCtFY4Rg.js → project-preview-CIkGbBPZ.js} +1 -1
- package/dist/assets/{projectActions-BPmI9_mW.js → projectActions-D84EVh3q.js} +1 -1
- package/dist/assets/{prompt-attachment-upload-B5DHrw6U.js → prompt-attachment-upload-D1c308Ba.js} +1 -1
- package/dist/assets/{pt-BR-DdwCzXBH.js → pt-BR-DPAcgEDe.js} +3 -3
- package/dist/assets/pwa-FAC1qERc.js +2 -0
- package/dist/assets/queue-abort-optimistic-s-DVErY6.js +1 -0
- package/dist/assets/{quota-CqWNkFzw.js → quota-BEyQ6n-w.js} +1 -1
- package/dist/assets/{reference-history-IEuzG8KC.js → reference-history-B9H6MkUC.js} +1 -1
- package/dist/assets/{remote-input-store-C6UIEZxp.js → remote-input-store-CquhCIoR.js} +1 -1
- package/dist/assets/remoteProjectQueries-BunVM5PM.js +1 -0
- package/dist/assets/remoteSessionReference-BHvAalXk.js +1 -0
- package/dist/assets/renderElectronMiniChatApp-D3Vd8ffe.js +2 -0
- package/dist/assets/renderMobileApp-BulRo1RJ.js +17 -0
- package/dist/assets/{runtime-file-download-BWeoSXRb.js → runtime-file-download-wMVtKk2v.js} +1 -1
- package/dist/assets/runtime-file-resource-DKJJoOOc.js +6 -0
- package/dist/assets/{runtimeConfig-CyvlrO58.js → runtimeConfig-8Z7A5ncj.js} +1 -1
- package/dist/assets/runtimeEndpointReset-D5p8n8Z1.js +4 -0
- package/dist/assets/{scheduledTaskNavigation-VVTOq9n2.js → scheduledTaskNavigation-DpfZSGu8.js} +1 -1
- package/dist/assets/select-BL02HQzN.js +1 -0
- package/dist/assets/sessionChangeSummary-BCF9VwAA.js +1 -0
- package/dist/assets/sessionLookup-CLqpm_Sq.js +1 -0
- package/dist/assets/sessionOwnership-Zl2YX7dC.js +2 -0
- package/dist/assets/shortcuts-2XAaIaaK.js +1 -0
- package/dist/assets/sortable-tabs-strip-BsjgK90l.js +1 -0
- package/dist/assets/speechSettingsQueries-cQ6M7fJ3.js +1 -0
- package/dist/assets/src-DYCPWwUH.css +2 -0
- package/dist/assets/{store-C1ifDY0C.js → store-DWS9gJPW.js} +4 -4
- package/dist/assets/summaries-BQMyJaaw.js +1 -0
- package/dist/assets/switch-ps5COI8_.js +1 -0
- package/dist/assets/{terminalApi-DXvEquBF.js → terminalApi-D2ECmoAo.js} +1 -1
- package/dist/assets/textarea-DXs25Z8k.js +1 -0
- package/dist/assets/{timeFormat-dCsf2MQv.js → timeFormat-CUbYRR40.js} +1 -1
- package/dist/assets/tooltip-DYZonA8U.js +1 -0
- package/dist/assets/truncated-path-DJfRXALm.js +1 -0
- package/dist/assets/types-b90cIxfC.js +2 -0
- package/dist/assets/ui-z2JsXLmb.js +13 -0
- package/dist/assets/{uk-DU-7fAP4.js → uk-Dw75NtHH.js} +3 -3
- package/dist/assets/useAppFontEffects-tKUtvOIn.js +7 -0
- package/dist/assets/{useAssistantUIStore-CpJZ4Rqs.js → useAssistantUIStore-DEiMjSqf.js} +1 -1
- package/dist/assets/useDesktopWindowControlsLayout-CNAzDasQ.js +1 -0
- package/dist/assets/{useDictation-CZzAlsW0.js → useDictation-CUADIj-o.js} +1 -1
- package/dist/assets/{useEffectiveDirectory-DiJBIfai.js → useEffectiveDirectory-hu13SCnK.js} +1 -1
- package/dist/assets/{useFontPreferences-BiRBKhti.js → useFontPreferences-BY0TXvWI.js} +1 -1
- package/dist/assets/{useGitStore-Bv8xmXDa.js → useGitStore-Dsh_ZiT1.js} +1 -1
- package/dist/assets/{useInlineCommentDraftStore-B2mkmAZd.js → useInlineCommentDraftStore-C75YIRui.js} +1 -1
- package/dist/assets/useMcpConfigStore-BfdokvWe.js +1 -0
- package/dist/assets/useMobileSwipeActions-jAZpJVTB.js +1 -0
- package/dist/assets/useMobileTranscriptSyncHint-XT7TWzKn.js +10 -0
- package/dist/assets/useModelLists-DrXScJk8.js +1 -0
- package/dist/assets/useOpenCodeReadiness-DLqT6fD5.js +1 -0
- package/dist/assets/usePluginsStore-DYO8nss8.js +1 -0
- package/dist/assets/useProjectGitActions-CYWPTGNa.js +1 -0
- package/dist/assets/{useProjectGitStore-DzU2pvrH.js → useProjectGitStore-C1Tswys-.js} +1 -1
- package/dist/assets/{useProjectRuntimeAPIs-tjGuODhu.js → useProjectRuntimeAPIs-BpdOaT67.js} +1 -1
- package/dist/assets/useQuotaStore-CZU1NU_Z.js +1 -0
- package/dist/assets/{useSessionBtwStore-CwvlMabN.js → useSessionBtwStore-PdQPx7tm.js} +2 -2
- package/dist/assets/{useStreamingTextThrottle-C9SaKeil.js → useStreamingTextThrottle-Btl31Wol.js} +1 -1
- package/dist/assets/{useUIStore-C3ewjGgP.js → useUIStore-P32bzAJc.js} +1 -1
- package/dist/assets/worktreeManager-DIrqBI6K.js +1 -0
- package/dist/assets/{worktreeSourceBranchPreference-CuLKwxkx.js → worktreeSourceBranchPreference-DncAXqYk.js} +1 -1
- package/dist/assets/{zh-CN-DOHH7nht.js → zh-CN-D5Jwengx.js} +3 -3
- package/dist/assets/{zh-TW-t1qlXGOg.js → zh-TW-CbbaPcxZ.js} +3 -3
- package/dist/index.html +18 -17
- package/dist/mini-chat.html +18 -17
- package/dist/mobile.html +2 -2
- package/package.json +1 -1
- package/server/index.js +1 -0
- package/server/lib/assistants/builtin-skills.js +1 -1
- package/server/lib/assistants/builtin-skills.test.js +1 -0
- package/server/lib/gui-customization/DOCUMENTATION.md +37 -1
- package/server/lib/gui-customization/projects-client.mjs +14 -3
- package/server/lib/gui-customization/projects-lifecycle.js +89 -0
- package/server/lib/gui-customization/projects-lifecycle.test.js +199 -0
- package/server/lib/gui-customization/projects.js +19 -3
- package/server/lib/gui-customization/projects.test.js +6 -0
- package/server/lib/gui-customization/session-skill.js +3 -3
- package/server/lib/gui-customization/session-skill.test.js +20 -1
- package/server/lib/gui-customization/skill/SKILL.md +5 -1
- package/server/lib/gui-customization/skill/references/deep-links.md +43 -0
- package/server/lib/gui-customization/skill/references/gui-api.md +50 -1
- package/server/lib/gui-customization/skill/references/projects.md +49 -0
- package/server/lib/opencode/DOCUMENTATION.md +1 -0
- package/server/lib/opencode/custom-provider.test.js +41 -0
- package/server/lib/opencode/feature-routes-runtime.js +5 -0
- package/server/lib/opencode/feature-routes-runtime.test.js +6 -0
- package/server/lib/opencode/settings-helpers.js +9 -0
- package/server/lib/opencode/settings-helpers.test.js +10 -0
- package/dist/assets/AgentAvatar-CHCjMxCF.js +0 -1
- package/dist/assets/AgentSelector-uBoLtut8.js +0 -1
- package/dist/assets/ArchivedSessionsDialog-DZcicxVO.js +0 -1
- package/dist/assets/AssistantSessionCard-CZ-1oJiE.js +0 -2
- package/dist/assets/AssistantUnreadBadge-p9mkpbMC.js +0 -1
- package/dist/assets/AssistantView-8fyAae7J.js +0 -1
- package/dist/assets/AssistantWorkingAvatar-CoxhuMvM.js +0 -1
- package/dist/assets/AssistantsSettingsPage-DD6spbXz.js +0 -1
- package/dist/assets/BinaryFileFallback-DgYaMG9f.js +0 -1
- package/dist/assets/BtwPanel-BkobGcf3.js +0 -6
- package/dist/assets/BusyDots-COTTwItx.js +0 -4
- package/dist/assets/ChatContainer-BfQ7RXwY.js +0 -65
- package/dist/assets/ChatView-ByMRjY1h.js +0 -3
- package/dist/assets/DiffViewToggle-BwJ6MYB7.js +0 -1
- package/dist/assets/ErrorBoundary-D7QcwhmL.js +0 -1
- package/dist/assets/FadeInOnReveal-B3uT04YJ.js +0 -1
- package/dist/assets/GuiPluginPage-BPjU8N49.js +0 -1
- package/dist/assets/GuiPluginSurface-CYPH6XzX.js +0 -1
- package/dist/assets/GuiPluginTitlebarItems-DxFINwbr.js +0 -1
- package/dist/assets/Icon-DmykXZL1.js +0 -1
- package/dist/assets/ImageLoadingPlaceholder-DgM_EFHn.js +0 -1
- package/dist/assets/MarkdownRenderer-VvziwyJB.js +0 -2
- package/dist/assets/MarkstreamRendererImpl-U_m_ZKG7.js +0 -3
- package/dist/assets/MobileAssistantTab-CMIQansR.js +0 -1
- package/dist/assets/MobileChatScreen-p356_BCN.js +0 -1
- package/dist/assets/MobileDetailNavigation-ldTzGo19.js +0 -1
- package/dist/assets/MobileFilesSurface-CF3EW_SK.js +0 -2
- package/dist/assets/MobileHtmlNetworkBoundary-DlPF4iPS.js +0 -2
- package/dist/assets/MobileOverlayPanel-C36VWWmN.js +0 -1
- package/dist/assets/MobileResizableSheet-CqphcaKq.js +0 -1
- package/dist/assets/MobileSurface-cmaGf3hZ.js +0 -1
- package/dist/assets/MobileTabPageHeader-D6P4K98S.js +0 -1
- package/dist/assets/ModelLogo-BkbD514M.js +0 -1
- package/dist/assets/ModelSelector-EmtltPnd.js +0 -1
- package/dist/assets/MultiRunWindow-CeSxAB8w.js +0 -1
- package/dist/assets/OnboardingScreen-BubjTNcy.js +0 -1
- package/dist/assets/OverlayScrollbar-D6vmoMkQ.js +0 -1
- package/dist/assets/ProviderLogo-DA98yu7M.js +0 -1
- package/dist/assets/RemoteDesktopPanel-f3vRj4ZP.js +0 -1
- package/dist/assets/ScheduledTasksDialog-D_hBP47Y.js +0 -3
- package/dist/assets/ScrollableOverlay-stxT7gLf.js +0 -1
- package/dist/assets/SettingsGroup-CvaPYznp.js +0 -1
- package/dist/assets/SettingsView-DEU94-h1.js +0 -29
- package/dist/assets/SettingsWindow-DMVAV_el.js +0 -1
- package/dist/assets/SetupTourDialog-BlR7FJvd.js +0 -1
- package/dist/assets/TerminalView-Xcwp3SG1.js +0 -8
- package/dist/assets/TextSelectionMenu-h8iUeNzE.js +0 -11
- package/dist/assets/assistantMessagePreview-DLBvPQtq.js +0 -1
- package/dist/assets/assistantQueries-NdPqu6rx.js +0 -1
- package/dist/assets/card-DmysoUAV.js +0 -1
- package/dist/assets/chatUpwardIntent-B2NrGMm-.js +0 -1
- package/dist/assets/checkbox-BMN5hAVm.js +0 -1
- package/dist/assets/collapsible-Z0IjDAMO.js +0 -1
- package/dist/assets/context-menu-CKlB6wxo.js +0 -1
- package/dist/assets/diagram-CzY6n_4N.js +0 -1
- package/dist/assets/dialog-BeFBA6ja.js +0 -1
- package/dist/assets/dropdown-menu-BblI9sN2.js +0 -1
- package/dist/assets/gitApiHttp-Dd-FwgCq.js +0 -3
- package/dist/assets/githubAuthQueries-DqregESf.js +0 -1
- package/dist/assets/historyImportQueries-D00KjUT2.js +0 -1
- package/dist/assets/host-ChBHl_Vl.js +0 -1
- package/dist/assets/input-Cf16qJ6g.js +0 -1
- package/dist/assets/insertionBoundaries-Btqgsu1M.js +0 -1
- package/dist/assets/kbd-CamdaxHJ.js +0 -1
- package/dist/assets/main-CXH2hObl.js +0 -169
- package/dist/assets/main-ClH7cLKr.js +0 -2
- package/dist/assets/mcpQueries-Rmp1BKeo.js +0 -1
- package/dist/assets/miniChat-B_Bw6udu.js +0 -2
- package/dist/assets/mobile-BR73yoNi.js +0 -2
- package/dist/assets/mobileConnections-x07fHO_5.js +0 -2
- package/dist/assets/multirun-CKQymP08.js +0 -3
- package/dist/assets/navigation-D1klsD7k.js +0 -2
- package/dist/assets/openRemoteProjectSession-DNr74gHD.js +0 -1
- package/dist/assets/platform-CiUKDeXd.js +0 -1
- package/dist/assets/pluginPresentation-DtyC8NF2.js +0 -2
- package/dist/assets/pwa-CtDladgB.js +0 -2
- package/dist/assets/queue-abort-optimistic-DFbWDRKT.js +0 -1
- package/dist/assets/remoteProjectQueries-C8382jM8.js +0 -1
- package/dist/assets/remoteSessionReference-ex07CtrZ.js +0 -1
- package/dist/assets/renderElectronMiniChatApp-DM9y9qXo.js +0 -2
- package/dist/assets/renderMobileApp-DqpPYtZI.js +0 -17
- package/dist/assets/runtime-file-resource-Bc_ss-sW.js +0 -2
- package/dist/assets/runtimeEndpointReset-C0zNrsI9.js +0 -4
- package/dist/assets/select-vZCgcnYG.js +0 -1
- package/dist/assets/session-startup-barrier-DT-hIBRf.js +0 -1
- package/dist/assets/sessionLookup-DQOiycHr.js +0 -1
- package/dist/assets/sessionOwnership-BjhXe6pi.js +0 -2
- package/dist/assets/shortcuts-WkN3Gh8v.js +0 -1
- package/dist/assets/sortable-tabs-strip-DmtfYPz0.js +0 -1
- package/dist/assets/speechSettingsQueries-BmkXNn4w.js +0 -1
- package/dist/assets/src-QTj33Z0x.css +0 -2
- package/dist/assets/switch-CNmsFYfY.js +0 -1
- package/dist/assets/textarea-ZiXxEOHK.js +0 -1
- package/dist/assets/tooltip-CpTbxEOE.js +0 -1
- package/dist/assets/truncated-path-CcmWjgCQ.js +0 -1
- package/dist/assets/types-DpcA-uDW.js +0 -2
- package/dist/assets/ui-ee2iN869.js +0 -13
- package/dist/assets/useAppFontEffects-rbTKcF0f.js +0 -7
- package/dist/assets/useDesktopWindowControlsLayout-BOkRz-p9.js +0 -1
- package/dist/assets/useMcpConfigStore-DKTl0PvE.js +0 -1
- package/dist/assets/useMobileSwipeActions-XoxrtaUo.js +0 -1
- package/dist/assets/useMobileTranscriptSyncHint-DM8WG7kz.js +0 -10
- package/dist/assets/useModelLists-Bf60FIJu.js +0 -1
- package/dist/assets/useOpenCodeReadiness-Dm6BjA1T.js +0 -1
- package/dist/assets/usePluginsStore-Du4WlceO.js +0 -1
- package/dist/assets/useProjectGitActions-D3B9ma9z.js +0 -1
- package/dist/assets/useQuotaStore-CSn2pk3T.js +0 -1
- package/dist/assets/worktreeManager-DGu8M01Z.js +0 -1
- package/dist/assets/yuriEvents-BFrD5fMU.js +0 -5
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{R as n,s as r}from"./platform-CNdx57HN.js";import{o as i}from"./vendor-zustand-CTekDqaS.js";import{ot as a,st as o}from"./vendor-base-ui-wXsskyKm.js";import{Lt as s,n as c}from"./client-QcYZg8_d.js";import{n as l}from"./pathNormalization-ewtPqJWn.js";import{n as u}from"./vendor-react-BkccXcWz.js";import{o as d,s as f,u as p}from"./vendor-tanstack-react-query-DIb_ItL-.js";import{E as m,G as h,O as g}from"./runtime-file-resource-DKJJoOOc.js";import{h as _,r as v,u as y}from"./vendor-reactuses-core-DjKFMfz7.js";import{n as b,r as x,t as S}from"./useUIStore-P32bzAJc.js";import{r as C}from"./vendor-sonner-DX3nfJx4.js";import{Ba as w,Qr as T,U as E,Ua as D,W as O,Yn as k,at as A,f as j,hn as M,ir as N,no as ee,pn as te,pr as ne,to as P,ur as F}from"./ui-z2JsXLmb.js";import{n as I}from"./Icon-CMNOrIAp.js";import{t as L}from"./i18n-BU8XOKjS.js";import{n as R}from"./react-CPBNl-S9.js";import{n as z}from"./useEffectiveDirectory-hu13SCnK.js";import{n as B}from"./useProjectRuntimeAPIs-BpdOaT67.js";import{a as re,o as ie,r as V,s as ae}from"./useProjectGitStore-C1Tswys-.js";import{t as oe}from"./AgentAvatar-C_s-cMy0.js";import{i as H,n as U,r as W,t as G}from"./card-Csh0Af72.js";import{g as K,h as q,m as J,t as se,v as ce}from"./ChatContainer-DXRL0aB2.js";import{f as le,g as ue,h as Y,m as X,p as de}from"./ToolOutputDialog-DLxoc22s.js";var Z=u(),Q=t(o(),1),$=a(),fe=class extends Q.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t})}handleReset=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})};render(){return this.state.hasError?(0,$.jsx)(`div`,{className:`flex items-center justify-center min-h-screen p-4`,children:(0,$.jsxs)(G,{className:`w-full max-w-md`,children:[(0,$.jsx)(W,{className:`text-center`,children:(0,$.jsxs)(H,{className:`flex items-center justify-center gap-2 text-destructive`,children:[(0,$.jsx)(I,{name:`chat-3`,className:`h-5 w-5`}),this.props.texts.title]})}),(0,$.jsxs)(U,{className:`space-y-4`,children:[(0,$.jsx)(`p`,{className:`text-sm text-muted-foreground text-center`,children:this.props.texts.description}),this.props.sessionId&&(0,$.jsxs)(`div`,{className:`text-xs text-muted-foreground text-center`,children:[this.props.texts.sessionLabel,`: `,this.props.sessionId]}),this.state.error&&(0,$.jsxs)(`details`,{className:`text-xs font-mono bg-muted p-3 rounded`,children:[(0,$.jsx)(`summary`,{className:`cursor-pointer hover:bg-interactive-hover/80`,children:this.props.texts.detailsSummary}),(0,$.jsx)(`pre`,{className:`mt-2 max-h-48 overflow-auto`,children:this.state.error.toString()})]}),(0,$.jsx)(`div`,{className:`flex gap-2`,children:(0,$.jsxs)(k,{onClick:this.handleReset,variant:`outline`,className:`flex-1`,children:[(0,$.jsx)(I,{name:`restart`,className:`h-4 w-4 mr-2`}),this.props.texts.resetAction]})}),(0,$.jsx)(`div`,{className:`text-xs text-muted-foreground text-center`,children:this.props.texts.persistentHint})]})]})}):this.props.children}};function pe(e){let t=(0,Z.c)(22),{t:n}=L(),r;t[0]===n?r=t[1]:(r=n(`chat.errorBoundary.title`),t[0]=n,t[1]=r);let i;t[2]===n?i=t[3]:(i=n(`chat.errorBoundary.description`),t[2]=n,t[3]=i);let a;t[4]===n?a=t[5]:(a=n(`chat.errorBoundary.sessionLabel`),t[4]=n,t[5]=a);let o;t[6]===n?o=t[7]:(o=n(`chat.errorBoundary.detailsSummary`),t[6]=n,t[7]=o);let s;t[8]===n?s=t[9]:(s=n(`chat.errorBoundary.resetAction`),t[8]=n,t[9]=s);let c;t[10]===n?c=t[11]:(c=n(`chat.errorBoundary.persistentHint`),t[10]=n,t[11]=c);let l;t[12]!==r||t[13]!==i||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c?(l={title:r,description:i,sessionLabel:a,detailsSummary:o,resetAction:s,persistentHint:c},t[12]=r,t[13]=i,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l):l=t[18];let u;return t[19]!==e||t[20]!==l?(u=(0,$.jsx)(fe,{...e,texts:l}),t[19]=e,t[20]=l,t[21]=u):u=t[21],u}var me=1440,he=e=>{let t=(0,Z.c)(10),{isMobile:n,isVSCode:r,directory:i}=e,a=y(`(min-width: ${me}px)`),o;t[0]===i?o=t[1]:(o=i?b(i):``,t[0]=i,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c=e=>{let t=S(e,s);return t?.isOpen?(t.tabs.find(e=>e.id===t.activeTabId)??t.tabs[t.tabs.length-1]??null)?.mode!==`chat`:!1},t[2]=s,t[3]=c);let l=x(c),u=x(ge),d;t[4]===s?d=t[5]:(d=e=>e.isRightSidebarOpen&&!!S(e,s)?.isOpen,t[4]=s,t[5]=d);let f=x(d),p=!n&&!r&&!l&&!f,m=p&&a,h=u&&m,g;return t[6]!==m||t[7]!==p||t[8]!==h?(g={visible:h,fits:m,layoutAllows:p},t[6]=m,t[7]=p,t[8]=h,t[9]=g):g=t[9],g};function ge(e){return e.workStatusPanelEnabled}var _e=async({directory:e,sessionID:t,signal:n})=>{let r=await c.getScopedSdkClient(e).session.list({directory:e,parentID:t,limit:200},{signal:n});if(!Array.isArray(r?.data))throw Error(`session.list children returned no data`);return r.data.flatMap(e=>{if(!e?.id)return[];let t=typeof e.title==`string`?e.title:void 0;return[{id:e.id,title:t}]})},ve=(e,t,n={})=>{let r=n.entry,i=n.listChildren??(r?async({directory:e,sessionID:t,signal:n})=>{let i=await r.sdk().session.list({directory:e,parentID:t,limit:200},{signal:n});if(r.sdk(),!Array.isArray(i?.data))throw Error(`session.list children returned no data`);return i.data.map(e=>({id:e.id,title:e.title}))}:_e);return d({queryKey:[...h.workStatusChildren.list(e,t,n.transport),...r?.queryScope??[]],enabled:!!(e&&t),queryFn:({signal:n})=>i({directory:e,sessionID:t,signal:n}),staleTime:5e3,refetchInterval:1e4})},ye=[],be=(...e)=>{let t=K(...e);return t?t.charAt(0).toUpperCase()+t.slice(1):``},xe=(...e)=>{for(let t of e){if(!t||typeof t!=`object`)continue;let e=t.description;if(typeof e!=`string`)continue;let n=e.trim();if(n)return n}return``},Se=e=>e===`pending`||e===`running`,Ce=e=>{let t=[],n=new Set;for(let r of e.messageOrder){let i=e.partsByMessageID[r];if(i)for(let e of i){if(!e?.id||n.has(e.id))continue;if(e.type===`tool`&&J(e.tool)){n.add(e.id);let r=e.state;t.push({id:e.id,sessionID:q(e),label:be(r?.input,r?.metadata,e.metadata),description:xe(r?.input,e.metadata,r?.metadata),running:Se(r?.status)});continue}if(e.type!==`subtask`)continue;let r=e,i=typeof r.taskSessionID==`string`?r.taskSessionID.trim():``,a=typeof r.agent==`string`?r.agent.trim():``,o=typeof r.description==`string`?r.description.trim():``;n.add(e.id),t.push({id:e.id,sessionID:i||void 0,label:a?a.charAt(0).toUpperCase()+a.slice(1):``,description:o,running:Se(r.status)})}}return t.length===0?ye:t},we=(e,t)=>{if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n+=1){let r=e[n],i=t[n];if(!r||!i||r.id!==i.id||r.sessionID!==i.sessionID||r.label!==i.label||r.description!==i.description||r.running!==i.running)return!1}return!0},Te=e=>e.childTitle||e.description||e.agent,Ee=e=>({key:e.key,sessionID:e.sessionID,seed:e.key,label:Te(e),phase:e.working?`working`:`done`}),De=(e,t,n)=>{let r=new Map(t.map(e=>[e.id,e])),i=new Set,a=[],o=new Map,s=e=>{let t=e.sessionID;if(!t){a.push(e);return}i.add(t);let n=o.get(t);if(n===void 0){o.set(t,a.length),a.push({...e,key:t,sessionID:t});return}let r=a[n];r&&(a[n]={...r,description:r.description||e.description,agent:r.agent||e.agent,childTitle:e.childTitle||r.childTitle,working:r.working||e.working})};for(let t of e){let e=t.sessionID?r.get(t.sessionID):void 0;s({key:t.id,sessionID:t.sessionID,description:t.description,agent:t.label,childTitle:e?.title?.trim()||``,working:t.running||!!e?.busy||!!(t.sessionID&&n?.has(t.sessionID))})}for(let e of t)i.has(e.id)||s({key:e.id,sessionID:e.id,description:``,agent:``,childTitle:e.title?.trim()||``,working:e.busy});let c=a.map(Ee),l=c.filter(e=>e.phase===`working`),u=c.filter(e=>e.phase===`done`);return l.length===0?u:u.length===0?l:[...l,...u]},Oe=new Set,ke=e=>{if(!e)return``;let t=[];for(let n of Object.keys(e)){let r=e[n]?.type;(r===`busy`||r===`retry`)&&t.push(n)}return t.sort(),t.join(`
|
|
2
|
+
`)},Ae=(e,t)=>{let n=(0,Z.c)(4),r;n[0]===t?r=n[1]:(r=e=>t?ke(e.session_status):``,n[0]=t,n[1]=r);let a=i(e,r),o;return n[2]===a?o=n[3]:(o=a?new Set(a.split(`
|
|
3
|
+
`)):Oe,n[2]=a,n[3]=o),o},je=(e,t)=>{let n=[];for(let r of e)!r.id||r.parentID!==t||n.push(`${r.id}\u0001${r.title??``}`);return n.join(``)},Me=e=>e?e.split(``).map(e=>{let t=e.indexOf(``);return{id:e.slice(0,t),title:e.slice(t+1)}}):[],Ne=(e,t,n)=>{let r=new Map;for(let t of e)t.id&&r.set(t.id,{id:t.id,title:t.title,busy:n.has(t.id)});for(let e of t??[]){if(!e.id)continue;let t=r.get(e.id),i=e.title?.trim()||t?.title;r.set(e.id,{id:e.id,title:i,busy:n.has(e.id)})}return[...r.values()]},Pe=(e,t)=>{let n=(0,Z.c)(18),r=!!(e&&t),a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={bootstrap:!1},n[0]=a):a=n[0];let o=E(t||void 0,a),c;n[1]!==r||n[2]!==e?(c=t=>r&&e?je(t.session,e):``,n[1]=r,n[2]=e,n[3]=c):c=n[3];let l=i(o,c),u=t??``,d=e??``,p;n[4]!==u||n[5]!==d?(p=ve(u,d),n[4]=u,n[5]=d,n[6]=p):p=n[6];let m;n[7]!==r||n[8]!==p?(m={...p,enabled:r},n[7]=r,n[8]=p,n[9]=m):m=n[9];let h=f(m),g;n[10]===r?g=n[11]:(g={enabled:r},n[10]=r,n[11]=g);let _=s(e??``,t??``,o,Ce,we,g),v=Ae(o,r),y;bb0:{if(!e){let e;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],n[12]=e):e=n[12],y=e;break bb0}let t;n[13]!==v||n[14]!==l||n[15]!==h.data||n[16]!==_?(t=De(_,Ne(Me(l),h.data,v),v),n[13]=v,n[14]=l,n[15]=h.data,n[16]=_,n[17]=t):t=n[17],y=t}return y},Fe=[],Ie=e=>{let t=(0,Z.c)(11),{sessionId:n,directory:r}=e,i;t[0]===n?i=t[1]:(i=e=>(n?e.todo[n]:void 0)??Fe,t[0]=n,t[1]=i);let a=O(i,r??void 0),o;t[2]===n?o=t[3]:(o=e=>{let t=n?e.session_status?.[n]?.type:void 0;return t===`busy`||t===`retry`},t[2]=n,t[3]=o);let s=O(o,r??void 0),c;t[4]===n?c=t[5]:(c=e=>n?e.sessions[n]?.todos:void 0,t[4]=n,t[5]=c);let l=M(c),u=A(n??``,r??void 0)??(a.length>0?a:l??Fe),d;t[6]===u?d=t[7]:(d=u.filter(ze),t[6]=u,t[7]=d);let f=d,p;return t[8]!==s||t[9]!==f?(p=(0,$.jsx)(Re,{todos:f,isWorking:s}),t[8]=s,t[9]=f,t[10]=p):p=t[10],p},Le=e=>{let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({remote:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=r?(0,$.jsx)(Re,{...r}):(0,$.jsx)(Ie,{...n}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i},Re=e=>{let t=(0,Z.c)(52),{todos:n,isWorking:r}=e,{t:i}=L(),a=Q.useId(),[o,s]=Q.useState(!0),[c,l]=Q.useState(!1),u,d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{l(!0)},d=[],t[0]=u,t[1]=d):(u=t[0],d=t[1]),Q.useEffect(u,d);let f;t[2]===n?f=t[3]:(f=n.filter(Be),t[2]=n,t[3]=f);let p=f.length,m;t[4]===n?m=t[5]:(m=n.filter(ue),t[4]=n,t[5]=m);let h=m.length,g=Q.useRef(null),_=n.findIndex(Ve),v,y;if(t[6]===_?(v=t[7],y=t[8]):(v=()=>{_<0||g.current?.children[_]?.scrollIntoView?.({block:`nearest`})},y=[_],t[6]=_,t[7]=v,t[8]=y),Q.useEffect(v,y),n.length===0)return null;let b=h===n.length,x=r&&!b,S;t[9]===i?S=t[10]:(S=i(`chat.workStatus.todos.title`),t[9]=i,t[10]=S);let C;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(C=()=>s(He),t[11]=C):C=t[11];let w=b?`done`:`open`,T=c&&`yuri-todo-icon-pop`,E;t[12]===T?E=t[13]:(E=ee(`inline-flex shrink-0`,T),t[12]=T,t[13]=E);let D;t[14]!==b||t[15]!==p||t[16]!==x||t[17]!==n.length?(D=b?(0,$.jsx)(le,{}):(0,$.jsx)(Y,{done:p,total:n.length,spinning:x}),t[14]=b,t[15]=p,t[16]=x,t[17]=n.length,t[18]=D):D=t[18];let O;t[19]!==E||t[20]!==D||t[21]!==w?(O=(0,$.jsx)(`span`,{className:E,children:D},w),t[19]=E,t[20]=D,t[21]=w,t[22]=O):O=t[22];let A;t[23]===i?A=t[24]:(A=i(`chat.workStatus.todos.title`),t[23]=i,t[24]=A);let j;t[25]===A?j=t[26]:(j=(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-foreground`,children:A}),t[25]=A,t[26]=j);let M;t[27]!==p||t[28]!==n.length?(M=(0,$.jsx)(de,{done:p,total:n.length,className:`text-[0.92em]`}),t[27]=p,t[28]=n.length,t[29]=M):M=t[29];let N;t[30]!==o||t[31]!==a||t[32]!==O||t[33]!==j||t[34]!==M?(N=(0,$.jsxs)(k,{type:`button`,variant:`ghost`,size:`sm`,className:`yuri-work-status-action flex w-full min-w-0 items-center justify-start gap-2 px-2 text-left text-[1em] font-normal leading-5 tracking-normal text-muted-foreground [&_svg]:size-3.5`,"aria-expanded":o,"aria-controls":a,onClick:C,children:[O,j,M]}),t[30]=o,t[31]=a,t[32]=O,t[33]=j,t[34]=M,t[35]=N):N=t[35];let te=!o,ne=!o,P=o?`grid-rows-[1fr] opacity-100`:`grid-rows-[0fr] opacity-0`,F;t[36]===P?F=t[37]:(F=ee(`grid min-w-0 transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none`,P),t[36]=P,t[37]=F);let I;t[38]!==r||t[39]!==c||t[40]!==n?(I=(0,$.jsx)(X,{id:void 0,todos:n,isWorking:r,animate:c,listRef:g,rowClassName:`px-2 gap-2 [&_svg]:size-3.5 [&>span:first-child]:w-3.5`,className:`max-h-[15em] min-h-0 overflow-y-auto pt-[0.125em]`}),t[38]=r,t[39]=c,t[40]=n,t[41]=I):I=t[41];let R;t[42]!==a||t[43]!==te||t[44]!==ne||t[45]!==F||t[46]!==I?(R=(0,$.jsx)(`div`,{id:a,"aria-hidden":te,inert:ne,className:F,children:I}),t[42]=a,t[43]=te,t[44]=ne,t[45]=F,t[46]=I,t[47]=R):R=t[47];let z;return t[48]!==N||t[49]!==R||t[50]!==S?(z=(0,$.jsxs)(`div`,{role:`group`,"aria-label":S,className:`mt-2 flex min-w-0 flex-col text-[13px]`,children:[N,R]}),t[48]=N,t[49]=R,t[50]=S,t[51]=z):z=t[51],z};function ze(e){return e.content.length>0}function Be(e){return e.status===`completed`}function Ve(e){return e.status===`in_progress`}function He(e){return!e}var Ue=Q.memo(function(e){let t=(0,Z.c)(19),{host:n,entry:r,input:i}=e,a=Q.useRef(null),o=Q.useRef(null),s;t[0]!==r||t[1]!==n||t[2]!==i?(s=e=>n.mountWorkStatus(r,e,i),t[0]=r,t[1]=n,t[2]=i,t[3]=s):s=t[3];let c=v(s),l;t[4]===c?l=t[5]:(l=()=>{if(!a.current)return;let e=c(a.current);return o.current=e,()=>{o.current=null,e.dispose()}},t[4]=c,t[5]=l);let u;t[6]!==r.generation||t[7]!==r.key||t[8]!==n||t[9]!==i.directory||t[10]!==i.scope||t[11]!==i.sessionId||t[12]!==c?(u=[n,r.key,r.generation,i.sessionId,i.directory,i.scope,c],t[6]=r.generation,t[7]=r.key,t[8]=n,t[9]=i.directory,t[10]=i.scope,t[11]=i.sessionId,t[12]=c,t[13]=u):u=t[13],Q.useLayoutEffect(l,u);let d,f;t[14]===i?(d=t[15],f=t[16]):(d=()=>{o.current?.update(i)},f=[i],t[14]=i,t[15]=d,t[16]=f),Q.useLayoutEffect(d,f);let p;return t[17]===r.key?p=t[18]:(p=(0,$.jsx)(`div`,{ref:a,"data-gui-plugin-mount":`work-status`,"data-gui-work-status":r.key,className:`min-w-0 empty:hidden`}),t[17]=r.key,t[18]=p),p}),We=Q.memo(function(e){let t=(0,Z.c)(9),{host:n,input:r}=e,i=Q.useSyncExternalStore(n.workStatus.subscribe,n.workStatus.getSnapshot,n.workStatus.getSnapshot),a;if(t[0]!==i||t[1]!==n||t[2]!==r){let e;t[4]!==n||t[5]!==r?(e=e=>(0,$.jsx)(Ue,{host:n,entry:e,input:r},e.key),t[4]=n,t[5]=r,t[6]=e):e=t[6],a=i.map(e),t[0]=i,t[1]=n,t[2]=r,t[3]=a}else a=t[3];let o;return t[7]===a?o=t[8]:(o=(0,$.jsx)($.Fragment,{children:a}),t[7]=a,t[8]=o),o}),Ge=Q.memo(function(e){let t=(0,Z.c)(3),{input:n}=e,r=Q.useContext(R),i;return t[0]!==r||t[1]!==n?(i=r?(0,$.jsx)(We,{host:r,input:n}):null,t[0]=r,t[1]=n,t[2]=i):i=t[2],i}),Ke=[],qe=(e,t)=>{let n=l(e),r=l(t);return!!(n&&r&&(n===r||n.startsWith(`${r}/`)))};function Je(e){let t=(0,Z.c)(103),n=m();if(!n?.entry.location.hostId)throw Error(`Remote work status requires Host scope`);let{entry:r,registry:i}=n,{directory:a,hubId:o}=r.location,s=r.location.hostId,c;t[0]!==r||t[1]!==i?(c=F(i,r),t[0]=r,t[1]=i,t[2]=c):c=t[2];let u=c,h,_;t[3]===u?(h=t[4],_=t[5]):(h=()=>u.retain(),_=[u],t[3]=u,t[4]=h,t[5]=_),Q.useEffect(h,_);let[v,y]=Q.useState(),b;t[6]!==u.state||t[7]!==e?(b=()=>e?u.state.observe(e,y):void 0,t[6]=u.state,t[7]=e,t[8]=b):b=t[8];let x;t[9]!==u||t[10]!==e?(x=[u,e],t[9]=u,t[10]=e,t[11]=x):x=t[11],Q.useEffect(b,x);let S;t[12]!==u.state||t[13]!==e?(S=t=>e?u.state.repository.subscribe(u.state.scope(e),t):et,t[12]=u.state,t[13]=e,t[14]=S):S=t[14];let C=S,T;t[15]!==u.state||t[16]!==e?(T=()=>e?u.state.repository.getTranscript(u.state.scope(e)):null,t[15]=u.state,t[16]=e,t[17]=T):T=t[17];let E=T,O=Q.useSyncExternalStore(C,E,E),k=u.state.subscribeSnapshot,A;t[18]!==u.state||t[19]!==e?(A=()=>u.state.getSnapshot(e??``),t[18]=u.state,t[19]=e,t[20]=A):A=t[20];let j=A,M=Q.useSyncExternalStore(k,j,j),ee=w($e),P=D(Qe),I;t[21]===r?I=t[22]:(I=N(r),t[21]=r,t[22]=I);let L=I,R=ie(Ze),z;if(t[23]!==a||t[24]!==r.queryScope||t[25]!==L){let e;t[27]!==a||t[28]!==L?(e=()=>L.listGitWorktrees(a),t[27]=a,t[28]=L,t[29]=e):e=t[29],z=d({queryKey:[...r.queryScope,`work-status`,`worktrees`],queryFn:e,staleTime:3e4}),t[23]=a,t[24]=r.queryScope,t[25]=L,t[26]=z}else z=t[26];let B=z,re;t[30]===r?re=t[31]:(re=ne(r),t[30]=r,t[31]=re);let V=re,ae=e??``,oe;t[32]!==a||t[33]!==r||t[34]!==ae?(oe=ve(a,ae,{entry:r}),t[32]=a,t[33]=r,t[34]=ae,t[35]=oe):oe=t[35];let H=oe,U=f(B),W=f(V),G=!!e,K;t[36]!==H||t[37]!==G?(K={...H,enabled:G},t[36]=H,t[37]=G,t[38]=K):K=t[38];let q=f(K),J=p(),se;t[39]!==H||t[40]!==J||t[41]!==a||t[42]!==R||t[43]!==L||t[44]!==V||t[45]!==B?(se=async()=>{await Promise.all([J.fetchQuery({...B,staleTime:0}),J.fetchQuery({...V,staleTime:0}),J.fetchQuery({...H,staleTime:0}),R(a,L,{silent:!0})]),y(void 0)},t[39]=H,t[40]=J,t[41]=a,t[42]=R,t[43]=L,t[44]=V,t[45]=B,t[46]=se):se=t[46],g(e,se,y);let ce,le;t[47]!==H.queryKey||t[48]!==J||t[49]!==a||t[50]!==R||t[51]!==L||t[52]!==s||t[53]!==i||t[54]!==V.queryKey||t[55]!==B.queryKey?(ce=()=>i.subscribeEvents(s,e=>{if(e.directory&&l(e.directory)!==l(a))return;let t=e.payload?.type??``;t.startsWith(`session.`)&&!t.startsWith(`session.message.`)&&!t.startsWith(`session.tool.`)&&(/status|execution|retry|idle/.test(t)&&J.invalidateQueries({queryKey:V.queryKey}),/created|updated|renamed|deleted/.test(t)&&J.invalidateQueries({queryKey:H.queryKey})),t.startsWith(`worktree.`)||t===`vcs.branch.updated`?(J.invalidateQueries({queryKey:B.queryKey}),R(a,L,{silent:!0})):/^session\.(execution\.(succeeded|failed|interrupted)|idle)$/.test(t)&&R(a,L,{silent:!0})}),le=[i,s,a,J,V.queryKey,H.queryKey,B.queryKey,R,L],t[47]=H.queryKey,t[48]=J,t[49]=a,t[50]=R,t[51]=L,t[52]=s,t[53]=i,t[54]=V.queryKey,t[55]=B.queryKey,t[56]=ce,t[57]=le):(ce=t[56],le=t[57]),Q.useEffect(ce,le);let ue;if(t[58]!==a||t[59]!==s||t[60]!==o||t[61]!==ee||t[62]!==P||t[63]!==U.data){bb0:{let e;t[65]!==s||t[66]!==o?(e=e=>e.hostId===s&&e.hubId===o,t[65]=s,t[66]=o,t[67]=e):e=t[67];let n=ee.filter(e),r=P&&P.location.hostId===s&&P.location.hubId===o?n.find(e=>e.id===P.projectId):void 0;if(r){ue=r;break bb0}let i;t[68]!==a||t[69]!==U.data?(i=e=>qe(a,e.path)||U.data?.some(t=>l(t.path)===l(e.path)),t[68]=a,t[69]=U.data,t[70]=i):i=t[70],ue=n.filter(i).sort(Xe)[0]}t[58]=a,t[59]=s,t[60]=o,t[61]=ee,t[62]=P,t[63]=U.data,t[64]=ue}else ue=t[64];let Y=ue,X;t[71]!==a||t[72]!==Y?.path||t[73]!==U.data?(X=()=>{let e=U.data?.filter(e=>qe(a,e.path)).sort(Ye)[0];if(e)return{...e,projectDirectory:Y?.path??a,label:e.name,worktreeStatus:`ready`}},t[71]=a,t[72]=Y?.path,t[73]=U.data,t[74]=X):X=t[74],Y?.path;let de;t[75]===X?de=t[76]:(de=X(),t[75]=X,t[76]=de);let $=de,fe;if(t[77]!==q.data||t[78]!==W.data||t[79]!==O){let e;t[81]===W.data?e=t[82]:(e=W.data??{},t[81]=W.data,t[82]=e);let n=new Set(Object.keys(e));fe=De(O?Ce(O):[],(q.data??[]).map(e=>({...e,busy:n.has(e.id)})),n),t[77]=q.data,t[78]=W.data,t[79]=O,t[80]=fe}else fe=t[80];let pe=fe,me;t[83]!==M.session?.revert?.messageID||t[84]!==M.status?.type||t[85]!==O?(me=()=>({todos:(O?te(O,M.session?.revert?.messageID):void 0)??Ke,isWorking:M.status?.type===`busy`||M.status?.type===`retry`}),t[83]=M.session?.revert?.messageID,t[84]=M.status?.type,t[85]=O,t[86]=me):me=t[86],M.session?.revert?.messageID;let he;t[87]===me?he=t[88]:(he=me(),t[87]=me,t[88]=he);let ge=he,_e;t[89]!==q||t[90]!==u.state||t[91]!==e||t[92]!==W||t[93]!==U?(_e=async()=>{y(void 0),await Promise.allSettled([U.refetch(),W.refetch(),q.refetch(),e?u.state.refreshMetadata(e):Promise.resolve()])},t[89]=q,t[90]=u.state,t[91]=e,t[92]=W,t[93]=U,t[94]=_e):_e=t[94];let ye=_e,be=v??U.error??W.error??q.error,xe;return t[95]!==r.key||t[96]!==Y||t[97]!==ge||t[98]!==ye||t[99]!==pe||t[100]!==be||t[101]!==$?(xe={project:Y,worktree:$,subagents:pe,remoteTodos:ge,stateKey:r.key,error:be,retry:ye},t[95]=r.key,t[96]=Y,t[97]=ge,t[98]=ye,t[99]=pe,t[100]=be,t[101]=$,t[102]=xe):xe=t[102],xe}function Ye(e,t){return t.path.length-e.path.length}function Xe(e,t){return t.path.length-e.path.length}function Ze(e){return e.fetchStatus}function Qe(e){return e.remoteSession}function $e(e){return e.projects}function et(){}var tt=`flex w-full min-w-0 items-center justify-start gap-2 text-left text-[13px] font-normal leading-5 tracking-normal text-muted-foreground`,nt=`size-3.5 shrink-0`,rt=`yuri-work-status-action pointer-events-none shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover/copy:pointer-events-auto group-hover/copy:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100`,it=e=>e.split(/[\\/]/).filter(Boolean).pop()||e,at=e=>{let t=(0,Z.c)(3),n=m(),r;return t[0]!==n||t[1]!==e?(r=n?.entry.location.hostId?(0,$.jsx)(ot,{...e},n.entry.key):(0,$.jsx)(st,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r},ot=Q.memo(function(e){let t=(0,Z.c)(9),{t:n}=L(),r=Je(e.sessionId),i;t[0]!==r||t[1]!==e?(i=(0,$.jsx)(ct,{...e,...r}),t[0]=r,t[1]=e,t[2]=i):i=t[2];let a;t[3]!==r||t[4]!==n?(a=r.error?(0,$.jsxs)(`div`,{role:`status`,className:`px-2 text-xs text-muted-foreground`,title:String(r.error),children:[n(`common.unavailable`),(0,$.jsx)(k,{variant:`ghost`,size:`xs`,onClick:()=>void r.retry(),children:n(`chat.history.retry`)})]}):null,t[3]=r,t[4]=n,t[5]=a):a=t[5];let o;return t[6]!==i||t[7]!==a?(o=(0,$.jsxs)($.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=o):o=t[8],o}),st=e=>{let t=(0,Z.c)(16),{sessionId:n,directory:r}=e,i=w(lt),a=j(ut),o;t[0]===n?o=t[1]:(o=e=>n?e.worktreeMetadata.get(n):void 0,t[0]=n,t[1]=o);let s=j(o),c,u;if(t[2]!==a||t[3]!==r||t[4]!==i||t[5]!==s){let e=l(r),n=t=>{let n=l(t);return!!(e&&n&&(e===n||e.startsWith(`${n}/`)))},o=s&&n(s.path)?s:void 0;c=T(i.filter(dt),a,o?.projectDirectory||r);let d=c?a.get(c.path):void 0;u=o??d?.filter(e=>n(e.path)).sort(ft)[0],t[2]=a,t[3]=r,t[4]=i,t[5]=s,t[6]=c,t[7]=u}else c=t[6],u=t[7];let d=u,f;t[8]!==c||t[9]!==d?(f={project:c,worktree:d},t[8]=c,t[9]=d,t[10]=f):f=t[10];let{project:p,worktree:m}=f,h=Pe(n,r),g=p??void 0,_;return t[11]!==e||t[12]!==h||t[13]!==g||t[14]!==m?(_=(0,$.jsx)(ct,{...e,project:g,worktree:m,subagents:h}),t[11]=e,t[12]=h,t[13]=g,t[14]=m,t[15]=_):_=t[15],_},ct=({sessionId:e,directory:t,active:n=!0,placement:r=`inline`,project:i,worktree:a,subagents:o,remoteTodos:s,stateKey:c})=>{let{t:u}=L(),{git:d}=B(),f=m(),p=f?.entry.location.hostId?f.entry:void 0,h=ie(e=>e.ensureStatus),g=re(t),y=V(t),b=ae(t),S=i?.path||a?.projectDirectory||t,w=i?.label?.trim()||(S?it(S):null),T=a&&l(a.path)!==l(S)?a.name?.trim()||it(a.path):null,E=[{phase:`working`,labelKey:`chat.workStatus.subagent.workingCount`,items:o.filter(e=>e.phase===`working`)},{phase:`done`,labelKey:`chat.workStatus.subagent.doneCount`,items:o.filter(e=>e.phase===`done`)}],D=E[0].items,O=(D.length>0?D:o).slice(0,3),[A,j]=Q.useState(!1),M=Q.useId(),N=x(e=>e.setRightSidebarOpen),ee=x(e=>e.openContextPanel),te=x(e=>e.openContextPanelTab),ne=x(e=>e.setRightSidebarTab),[F,R]=Q.useState(null),[,z]=_(()=>R(null),1500,{immediate:!1}),H=v(async(e,t)=>{try{let n=await P(t);if(!n.ok)throw Error(n.error);R(e),z()}catch{C.error(u(`gitView.toast.copyFailed`))}});Q.useEffect(()=>{!t||!d||h(t,d)},[t,h,d]);let U=g?.current||null,W=a?.worktreeStatus===`pending`?0:g?.files.length??0,{additions:G,deletions:K}=Q.useMemo(()=>{let e=0,t=0;for(let n of Object.values(g?.diffStats??{}))e+=n?.insertions??0,t+=n?.deletions??0;return{additions:e,deletions:t}},[g?.diffStats]),q=a?.worktreeStatus===`pending`,J=!q&&!!g&&b!==!1,se=q?`unknown`:b===!1?`not-repository`:J?`ready`:`unknown`,ce=J&&!!g?.diffStats,le=Q.useMemo(()=>({state:se,loading:y,branch:J?U:null,changedFiles:J?W:null,additions:ce?G:null,deletions:ce?K:null}),[se,y,J,U,W,ce,G,K]),ue=Q.useMemo(()=>({sessionId:e,directory:t,placement:r,scope:p,project:S&&w?{id:i?.id,name:w,directory:S}:null,worktree:a?{name:a.name?.trim()||it(a.path),directory:a.path}:null,git:le}),[e,t,r,p,S,w,i?.id,a,le]),Y=U?`branch:${U}`:``,X=a?.path?`worktree:${a.path}`:``,de=!!(Y&&F===Y),Z=!!(X&&F===X),fe=v(()=>{U&&H(Y,U)}),pe=v(()=>{let e=a?.path;e&&H(X,e)}),me=v(()=>{t&&(ee(c??t),ne(`git`),N(!0))});return(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[w?(0,$.jsxs)(`div`,{className:`${tt} h-8 px-2`,title:`${u(`chat.workStatus.section.project`)}: ${S}`,children:[(0,$.jsx)(I,{name:`folder`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:w})]}):null,U?(0,$.jsxs)(`div`,{className:`${tt} group/copy h-8 px-2`,title:`${u(`gitView.branch.currentBranchTooltip`)}: ${U}`,children:[(0,$.jsx)(I,{name:`git-branch`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:U}),(0,$.jsx)(k,{variant:`ghost`,size:`xs`,className:rt,"aria-label":u(`chat.workStatus.action.copyBranch`),title:u(de?`contextSidebar.actions.copied`:`chat.workStatus.action.copyBranch`),onClick:fe,children:(0,$.jsx)(I,{name:de?`check`:`file-copy`,className:nt})})]}):null,T?(0,$.jsxs)(`div`,{className:`${tt} group/copy h-8 px-2`,title:`${u(`sessions.sidebar.sessionDialogs.worktree.label`)}: ${a?.path}`,children:[(0,$.jsx)(I,{name:`node-tree`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:T}),(0,$.jsx)(k,{variant:`ghost`,size:`xs`,className:rt,"aria-label":u(`agentManager.detail.actions.copyWorktreePath`),title:u(Z?`contextSidebar.actions.copied`:`agentManager.detail.actions.copyWorktreePath`),onClick:pe,children:(0,$.jsx)(I,{name:Z?`check`:`file-copy`,className:nt})})]}):null,W>0?(0,$.jsxs)(k,{variant:`ghost`,size:`sm`,className:`yuri-work-status-action ${tt}`,title:u(W===1?`chat.workStatus.git.changedFileSingle`:`chat.workStatus.git.changedFilePlural`,{count:W}),"aria-label":u(`chat.workStatus.action.openGit`),onClick:me,children:[(0,$.jsx)(I,{name:`changes`,weight:`medium`,className:nt}),(0,$.jsx)(`span`,{className:`min-w-0 truncate`,children:u(`chat.workStatus.compact.changes`)}),G>0||K>0?(0,$.jsxs)(`span`,{className:`ml-auto flex shrink-0 gap-1.5 text-[12px] tabular-nums`,children:[(0,$.jsx)(`span`,{className:`text-[var(--status-success)]`,children:`+${G}`}),(0,$.jsx)(`span`,{className:`text-[var(--status-error)]`,children:`−${K}`})]}):(0,$.jsx)(`span`,{className:`ml-auto tabular-nums`,children:W})]}):null,n?(0,$.jsx)(Ge,{input:ue}):null,(0,$.jsx)(Le,{sessionId:e,directory:t,remote:s}),o.length>0?(0,$.jsxs)(`div`,{role:`group`,"aria-label":u(`chat.workStatus.section.subagents`),className:`flex min-w-0 flex-col`,children:[(0,$.jsxs)(k,{type:`button`,variant:`ghost`,size:`sm`,className:`yuri-work-status-action ${tt} gap-1.5`,"aria-expanded":A,"aria-controls":M,onClick:()=>j(e=>!e),children:[(0,$.jsx)(`span`,{"aria-hidden":`true`,className:`inline-flex shrink-0 items-center`,children:O.map((e,t)=>{let n=e.label.trim()||u(`chat.workStatus.subagent.untitled`);return(0,$.jsx)(oe,{name:e.seed,label:n,size:14,className:`relative bg-background ring-2 ring-background ${t>0?`-ml-1`:``}`},e.key)})}),(0,$.jsx)(`span`,{className:`flex min-w-0 flex-1 items-center gap-x-1 whitespace-nowrap text-left text-[11px] leading-5 tabular-nums`,children:E.filter(e=>e.items.length>0).map((e,t)=>(0,$.jsxs)(Q.Fragment,{children:[t>0?(0,$.jsx)(`span`,{"aria-hidden":`true`,children:`·`}):null,(0,$.jsx)(`span`,{children:u(e.labelKey,{count:e.items.length})})]},e.phase))}),(0,$.jsx)(I,{name:A?`arrow-down-s`:`arrow-right-s`,className:`size-3.5 shrink-0 text-muted-foreground opacity-70`})]}),(0,$.jsx)(`div`,{id:M,hidden:!A,className:A?`mt-1 mb-1 flex min-w-0 flex-col gap-1`:`hidden`,children:A?E.filter(e=>e.items.length>0).map(e=>(0,$.jsxs)(`section`,{"aria-label":u(e.labelKey,{count:e.items.length}),className:`flex min-w-0 flex-col gap-1 [&+section]:mt-2`,children:[(0,$.jsx)(`div`,{className:`px-2 py-1 text-[11px] leading-4 text-muted-foreground/70`,children:u(e.labelKey,{count:e.items.length})}),e.items.map(e=>{let n=e.label.trim()||u(`chat.workStatus.subagent.untitled`);return(0,$.jsxs)(k,{variant:`ghost`,size:`sm`,disabled:!e.sessionID||!t,className:`yuri-work-status-action flex w-full min-w-0 items-center justify-start gap-2 text-left text-[12px] font-normal leading-5 text-muted-foreground`,onClick:()=>{!e.sessionID||!t||te(c??t,{mode:`chat`,dedupeKey:`session:${e.sessionID}`,label:n,readOnly:!0})},children:[(0,$.jsx)(oe,{name:e.seed,label:n,size:14}),(0,$.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,title:n,children:n})]},e.key)})]},e.phase)):null})]}):null]})};function lt(e){return e.projects}function ut(e){return e.availableWorktreesByProject}function dt(e){return!e.hostId}function ft(e,t){return t.path.length-e.path.length}var pt=200,mt=264,ht=e=>{let t=(0,Z.c)(31),{sessionId:n,directory:r,visible:i,overlay:a}=e,o=a!==void 0&&a,{t:s}=L(),c=x(gt),l=Q.useRef(null),[u,d]=Q.useState(i),f,p;t[0]===i?(f=t[1],p=t[2]):(f=()=>{if(i){d(!0);return}let e=window.setTimeout(()=>d(!1),pt);return()=>window.clearTimeout(e)},p=[i],t[0]=i,t[1]=f,t[2]=p),Q.useEffect(f,p);let m,h;t[3]!==o||t[4]!==c||t[5]!==i?(m=()=>{if(!o||!i)return;let e=e=>{let t=e.target instanceof Element?e.target:null;l.current?.contains(t)||t?.closest(`[data-work-status-toggle]`)||c(!1)},t=e=>{e.key===`Escape`&&c(!1)};return document.addEventListener(`pointerdown`,e,!0),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e,!0),document.removeEventListener(`keydown`,t)}},h=[o,c,i],t[3]=o,t[4]=c,t[5]=i,t[6]=m,t[7]=h):(m=t[6],h=t[7]),Q.useEffect(m,h);let g;t[8]===s?g=t[9]:(g=s(`chat.workStatus.ariaLabel`),t[8]=s,t[9]=g);let _=!i,v=!i,y=o?`top-3 z-30 max-h-[calc(100%-1.5rem)] rounded-xl p-2 ${ce}`:`top-2`,b;t[10]===y?b=t[11]:(b=ee(`absolute z-20 flex max-h-[calc(100%-1rem)] flex-col overflow-x-hidden overflow-y-auto scrollbar-hidden bg-transparent`,y),t[10]=y,t[11]=b);let S=o?mt:i?196:0,C=+!!i,w=i?`none`:o?`translateY(-6px)`:`translateX(24px)`,T=o?`opacity, transform`:`none`,E=i?void 0:`none`,D;t[12]!==S||t[13]!==C||t[14]!==w||t[15]!==T||t[16]!==E?(D={right:14,width:S,opacity:C,transform:w,transitionProperty:T,transitionDuration:`${pt}ms`,transitionTimingFunction:`cubic-bezier(0.22, 1, 0.36, 1)`,pointerEvents:E},t[12]=S,t[13]=C,t[14]=w,t[15]=T,t[16]=E,t[17]=D):D=t[17];let O;t[18]!==u||t[19]!==r||t[20]!==o||t[21]!==n||t[22]!==i?(O=i||o&&u?(0,$.jsx)(at,{sessionId:n,directory:r,active:i,placement:o?`popover`:`inline`}):null,t[18]=u,t[19]=r,t[20]=o,t[21]=n,t[22]=i,t[23]=O):O=t[23];let k;return t[24]!==b||t[25]!==D||t[26]!==O||t[27]!==g||t[28]!==_||t[29]!==v?(k=(0,$.jsx)(`aside`,{ref:l,"aria-label":g,"aria-hidden":_,inert:v,className:b,style:D,children:O}),t[24]=b,t[25]=D,t[26]=O,t[27]=g,t[28]=_,t[29]=v,t[30]=k):k=t[30],k};function gt(e){return e.setWorkStatusOverlayOpen}var _t=e({ChatView:()=>yt}),vt=e=>{let t=(0,Z.c)(10),{sessionId:n,directory:r,visible:i,overlay:a,publishVisible:o}=e,s=a!==void 0&&a,c=o!==void 0&&o,l=x(bt),u,d;t[0]!==c||t[1]!==l||t[2]!==i?(u=()=>{if(c)return l(i),()=>l(!1)},d=[c,l,i],t[0]=c,t[1]=l,t[2]=i,t[3]=u,t[4]=d):(u=t[3],d=t[4]),Q.useEffect(u,d);let f;return t[5]!==r||t[6]!==s||t[7]!==n||t[8]!==i?(f=(0,$.jsx)(ht,{overlay:s,visible:i,sessionId:n,directory:r}),t[5]=r,t[6]=s,t[7]=n,t[8]=i,t[9]=f):f=t[9],f},yt=({readOnly:e=!1,active:t=!0,selectionOverride:i})=>{let a=m(),o=D(e=>e.remoteSession),s=i?.location??(a?.entry.location.hostId?a.entry.location:void 0),c=i?{...i,active:t,...s?{location:s,directory:i.directory??s.directory,sessionId:i.sessionId||(o&&r(o.location)===r(s)?o.sessionId:null)}:{}}:void 0,l=j(e=>e.currentSessionId),u=j(e=>e.currentSessionDirectory),d=j(e=>!!e.newSessionDraft?.open),f=j(e=>!!(e.newSessionDraft?.open&&e.newSessionDraft.pendingUserMessage&&(e.newSessionDraft.draftEstablishing||e.newSessionDraft.draftSubmitting))),p=z(),h=x(e=>e.isMobile),g=x(e=>e.isExpandedInput),_=n(),v=x(e=>e.workStatusPanelEnabled),y=x(e=>e.workStatusOverlayOpen),b=x(e=>e.setWorkStatusPanelFits),S=s&&o&&r(o.location)===r(s)?o:null,C=s?c?.sessionId??S?.sessionId??null:i?.sessionId??l,w=C,T=s?s.directory:i?.directory??u??p??null,{visible:E,fits:O,layoutAllows:k}=he({isMobile:h,isVSCode:_,directory:s?r(s):T}),A=s?!!C:i?!!i.sessionId:d?f:!!C,M=t&&!h&&!_&&!g&&A,N=M&&E,te=M&&v&&!O&&y;return Q.useEffect(()=>(b(M&&O),()=>b(!1)),[O,M,b]),(0,$.jsxs)(`div`,{className:ee(`relative h-full min-h-0 min-w-0`,N&&`yuri-chat-work-status-inline`),style:N?{"--yuri-work-status-reserve":`210px`}:void 0,children:[(0,$.jsx)(`div`,{className:`absolute inset-0 min-h-0 min-w-0`,children:(0,$.jsx)(pe,{sessionId:w||void 0,children:(0,$.jsx)(se,{readOnly:e,active:t,explicitSession:c})})}),M&&k?(0,$.jsx)(vt,{publishVisible:!0,visible:N,sessionId:C,directory:T}):null,M&&v&&!O?(0,$.jsx)(vt,{overlay:!0,visible:te,sessionId:C,directory:T}):null]})};function bt(e){return e.setWorkStatusPanelVisible}export{_t as n,yt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./runtime-switch-DEPKHgdL.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{u as i}from"./vendor-tanstack-react-query-DIb_ItL-.js";import{S as a,_ as o,x as s}from"./runtime-file-resource-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./runtime-switch-DEPKHgdL.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{u as i}from"./vendor-tanstack-react-query-DIb_ItL-.js";import{S as a,_ as o,x as s}from"./runtime-file-resource-DKJJoOOc.js";import{r as c}from"./useUIStore-P32bzAJc.js";import{r as l}from"./vendor-sonner-DX3nfJx4.js";import{n as u}from"./Icon-CMNOrIAp.js";import{t as d}from"./i18n-BU8XOKjS.js";import{n as f}from"./useEffectiveDirectory-hu13SCnK.js";import{n as p}from"./useProjectRuntimeAPIs-BpdOaT67.js";import{t as m}from"./diagram-DuMpiER6.js";var h=e(r(),1),g=n();function _(){let{t:e}=d(),{files:n}=p(),r=i(),_=f()??null,v=t(),[y,b]=h.useState(null),[x,S]=h.useState(``),C=h.useRef(null),w=h.useRef(!1),T=h.useRef(null),E=h.useRef(0),D=h.useRef(Promise.resolve()),O=c(e=>e.pendingDiagramFile),k=a({scopeDirectory:_,path:y},{enabled:!!y});if(y&&(T.current?.path!==y||T.current.transport!==v||T.current.scopeDirectory!==_)){let e=E.current+1;E.current=e,T.current={path:y,generation:e,transport:v,scopeDirectory:_}}h.useEffect(()=>(w.current=!0,()=>{w.current=!1,E.current+=1}),[]),h.useEffect(()=>{if(!O)return;let e=c.getState().consumePendingDiagramFile();if(e){let t=E.current+1;E.current=t,T.current={path:e,generation:t,transport:v,scopeDirectory:_},b(e)}},[_,O,v]),h.useEffect(()=>{let e=T.current;if(!(!e||e.path!==y||e.transport!==v||e.scopeDirectory!==_)){if(k.data!==void 0){S(k.data);return}k.isError&&S(``)}},[_,y,k.data,k.isError,v]);let A=h.useCallback(async()=>{let t=C.current?.getXml(),i=T.current,a=n?.writeFile;if(!y||!a||!t||t===x||i?.path!==y)return;let{path:c,generation:u,scopeDirectory:d,transport:f}=i,p=D.current.then(async()=>{try{if(!(await a(c,t))?.success)throw Error(e(`filesView.toast.writeFileFailed`));let n={scopeDirectory:d,path:c};await r.cancelQueries({queryKey:o(n,f),exact:!0}),s(r,n,f,t);let i=T.current;w.current&&i?.path===c&&i.generation===u&&i.transport===f&&i.scopeDirectory===d&&S(t)}catch(t){l.error(t instanceof Error?t.message:e(`filesView.toast.saveFailed`))}});D.current=p.catch(()=>void 0),await p},[y,n,r,e,x]),j=y?y.split(`/`).pop()||y:``;return y?k.isPending?(0,g.jsx)(`div`,{className:`flex h-full items-center justify-center p-3`,children:(0,g.jsx)(u,{name:`loader-4`,className:`size-4 animate-spin`})}):(0,g.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,g.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-border/30 px-3 py-1.5`,children:[(0,g.jsx)(u,{name:`file`,className:`size-4 shrink-0 text-muted-foreground`}),(0,g.jsx)(`span`,{className:`typography-ui text-muted-foreground truncate flex-1`,children:j}),(0,g.jsx)(`button`,{type:`button`,onClick:()=>void A(),className:`size-6 flex items-center justify-center rounded-md text-foreground hover:bg-interactive-hover/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,title:e(`filesView.diagram.saveDiagram`),children:(0,g.jsx)(u,{name:`save-3`,className:`size-4`})}),(0,g.jsx)(`button`,{type:`button`,onClick:()=>c.getState().setActiveMainTab(`chat`),className:`size-6 flex items-center justify-center rounded-md text-muted-foreground hover:bg-interactive-hover/50 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,title:e(`filesView.diagram.closeDiagramView`),children:(0,g.jsx)(u,{name:`close`,className:`size-4`})})]}),(0,g.jsx)(`div`,{className:`flex-1 min-h-0`,children:(0,g.jsx)(m,{ref:C,xml:x,className:`h-full`})})]}):(0,g.jsx)(`div`,{className:`flex h-full items-center justify-center p-3`,children:(0,g.jsx)(`div`,{className:`typography-ui text-muted-foreground`,children:e(`filesView.editor.pickFileFromTree`)})})}export{_ as DiagramView};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{i as n}from"./runtime-switch-DEPKHgdL.js";import{n as r}from"./runtime-fetch-V-iMWR8t.js";import{ot as i,st as a}from"./vendor-base-ui-wXsskyKm.js";import{n as o}from"./client-
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{i as n}from"./runtime-switch-DEPKHgdL.js";import{n as r}from"./runtime-fetch-V-iMWR8t.js";import{ot as i,st as a}from"./vendor-base-ui-wXsskyKm.js";import{n as o}from"./client-QcYZg8_d.js";import{n as s}from"./vendor-react-BkccXcWz.js";import{s as c}from"./vendor-tanstack-react-query-DIb_ItL-.js";import{G as l}from"./runtime-file-resource-DKJJoOOc.js";import{o as u}from"./path-utils-jGozTg9d.js";import{r as d}from"./vendor-reactuses-core-DjKFMfz7.js";import{r as f}from"./useUIStore-P32bzAJc.js";import{a as p,d as m,f as h,u as g}from"./vendor-pierre-diffs-B0OmIhMO.js";import{Yn as _,ar as v,f as y,no as b,t as x,ut as S}from"./ui-z2JsXLmb.js";import{n as C}from"./Icon-CMNOrIAp.js";import{t as ee}from"./i18n-BU8XOKjS.js";import{a as w,c as T}from"./toolHelpers-iEHVHQ9p.js";import{t as E}from"./ScrollableOverlay-T7ADHNbV.js";import{n as D}from"./MobileResizableSheet-Ddf0s-Dp.js";import{n as O}from"./mobileAppContext-BQgdTp5T.js";import{i as k,n as A,t as j}from"./tooltip-DYZonA8U.js";import{n as M}from"./useInlineCommentDraftStore-C75YIRui.js";import{t as N}from"./truncated-path-DJfRXALm.js";import{r as te}from"./device-CtdJ8KBJ.js";import{a as ne,c as P,n as F,o as re,t as ie}from"./dropdown-menu-BWP9Nxwt.js";import{n as I}from"./PierreDiffViewer-BPY2vUDa.js";import{n as ae,t as oe}from"./useProjectRuntimeAPIs-BpdOaT67.js";import{a as se,o as L,r as ce,s as le}from"./useProjectGitStore-C1Tswys-.js";import{t as R}from"./LoadingImage-U4z75PsW.js";import{t as ue}from"./DiffViewToggle-BBxj5Yby.js";var z=t(a(),1),B=s(),de=64,fe=3,V=new Map,H=(e,t,n=fe)=>{let r=`${e}\0${n}\0${t}`,i=V.get(r);if(i)return V.delete(r),V.set(r,i),i;let a=pe(t),o=a?h(p(t,n),{oldFile:{name:e,contents:a.before},newFile:{name:e,contents:a.after}})??W(e):m(U(e,t))[0]?.files[0]??W(e);for(V.set(r,o);V.size>de;){let e=V.keys().next().value;if(!e)break;V.delete(e)}return o},U=(e,t)=>!t.trim()||t.startsWith(`diff --git `)||/^--- [^\n]*\r?\n\+\+\+ /m.test(t)?t:`Index: ${e}\n===================================================================\n--- ${e}\t\n+++ ${e}\t\n${t}`,pe=e=>{if(!e.startsWith(`diff --git `)&&!/^--- [^\n]*\t?\r?\n\+\+\+ [^\n]*\t?(?:\r?\n|$)/m.test(e))return;let t=[...e.matchAll(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@[^\n]*(?:\r?\n|$)/gm)];if(t.length!==1)return;let n=t[0],r=Number.parseInt(n[1]??``,10),i=Number.parseInt(n[2]??``,10);if(r>1||i>1||!Number.isFinite(r)||!Number.isFinite(i))return;let a=(n.index??0)+n[0].length,o=e.slice(a),s=[],c=[],l;for(let e of o.split(/\r?\n/)){if(e.startsWith(`diff --git `)||e.startsWith(`@@ `))break;if(e.startsWith(`\\`)){if(l===`-`||l===` `){let e=s.at(-1);e&&(e.newline=!1)}if(l===`+`||l===` `){let e=c.at(-1);e&&(e.newline=!1)}continue}if(e.startsWith(`-`)){s.push({text:e.slice(1),newline:!0}),l=`-`;continue}if(e.startsWith(`+`)){c.push({text:e.slice(1),newline:!0}),l=`+`;continue}e.startsWith(` `)&&(s.push({text:e.slice(1),newline:!0}),c.push({text:e.slice(1),newline:!0}),l=` `)}return{before:me(s),after:me(c)}},me=e=>e.map(e=>e.text+(e.newline?`
|
|
2
2
|
`:``)).join(``),W=e=>g({name:e,contents:``},{name:e,contents:``}),he=e=>{if(!e)return null;let t=e.split(`
|
|
3
3
|
`),n=null;for(let e of t){let t=e.match(/^@@\s*-\d+(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s*@@/);if(t){let e=Number.parseInt(t[1]??``,10);n=Number.isFinite(e)&&e>=1?e:null;continue}if(n!==null){if(e.startsWith(` `)){n+=1;continue}if(e.startsWith(`+`))return n;if(e.startsWith(`-`))return Math.max(1,n)}}return null},G=e=>{let t=[],n=new Set;for(let r of e){let e=r.path.trim(),i=r.patch;if(!e||!i.trim()||n.has(e))continue;n.add(e);let a=0,o=0;for(let e of i.split(`
|
|
4
4
|
`))e.startsWith(`+++`)||e.startsWith(`---`)||(e.startsWith(`+`)&&(a+=1),e.startsWith(`-`)&&(o+=1));let s=/^---\s+\/dev\/null(?:\s|$)/m.test(i)?`added`:/^\+\+\+\s+\/dev\/null(?:\s|$)/m.test(i)?`deleted`:`modified`;t.push({file:e,patch:i,status:s,additions:a,deletions:o})}return t},ge=e=>`${e.scope}:${e.navigationRequestKey??``}:${(e.targetFilePath??``).trim()}:${e.targetLine??``}`,_e=(e,t,n)=>n&&e!==t,ve=e=>`/api/yuri/sessions/${encodeURIComponent(e)}/changes`,ye=e=>e.trim(),be=e=>e===404||e===405||e===501,K=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e.diff;return!!t&&typeof t==`object`&&!Array.isArray(t)},xe=(e,t)=>{if(!Array.isArray(e))return null;for(let n of e)if(n&&typeof n==`object`&&!Array.isArray(n)&&n.file===t)return n;return null},Se=async(e,t)=>{let n={messageID:e.messageID,directory:e.directory};return typeof e.file==`string`&&e.file.length>0&&(n.file=e.file),r(ve(e.sessionID),{method:`GET`,headers:{Accept:`application/json`,"x-opencode-directory":e.directory},query:n,signal:t})},Ce=async(e,t)=>{if(t.aborted)throw new DOMException(`Aborted`,`AbortError`);return o.getSessionDiff({sessionID:e.sessionID,directory:e.directory,messageID:e.messageID},{signal:t})},we=(e,t=n())=>l.sessionTurnChanges.file(e.directory,e.sessionID,e.messageID,e.file,e.diffCount,t),Te=(e,t=n())=>({queryKey:we(e,t),queryFn:async({signal:t})=>{let n=await Se(e,t);if(n.ok){let e=await n.json().catch(()=>null);if(K(e))return e}else if(!be(n.status))throw Error(`Session turn change file request failed (${n.status})`);let r=xe(await Ce(e,t),e.file);if(!r)throw Error(`change file not found`);return{diff:r}},staleTime:0,gcTime:6e4,retry:!1}),Ee=(e,t)=>{let r=(0,B.c)(10),i;r[0]===t?i=r[1]:(i=t===void 0?{}:t,r[0]=t,r[1]=i);let a=i,o,s,l;if(r[2]!==e||r[3]!==a){let t=n();o=!!e&&!!e?.sessionID?.trim()&&!!e?.directory?.trim()&&!!e?.messageID?.trim()&&!!e?.file?.trim()&&a.enabled!==!1;let i=e??{sessionID:``,directory:``,messageID:``,file:``};l=c,s=Te({...i,directory:ye(i.directory),file:i.file},t),r[2]=e,r[3]=a,r[4]=o,r[5]=s,r[6]=l}else o=r[4],s=r[5],l=r[6];let u;return r[7]!==o||r[8]!==s?(u={...s,enabled:o},r[7]=o,r[8]=s,r[9]=u):u=r[9],l(u)},De=e({DiffView:()=>it}),q=i(),Oe=1100,J=15e3,ke=500,Ae=300,je=1e6,Me=3,Ne=e=>e<=6?e:e<=12?6:e<=25?4:2,Pe=z.memo(()=>{let e=(0,B.c)(4),{t}=ee(),n;e[0]===t?n=e[1]:(n=t(`diffView.binary.unavailable`),e[0]=t,e[1]=n);let r;return e[2]===n?r=e[3]:(r=(0,q.jsx)(`div`,{className:`rounded-lg border border-border/60 bg-background px-3 py-2`,children:(0,q.jsx)(`div`,{className:`typography-meta text-muted-foreground`,children:n})}),e[2]=n,e[3]=r),r}),Fe={"?":{code:`?`,color:`var(--status-info)`,descriptionKey:`diffView.change.untracked`},A:{code:`A`,color:`var(--status-success)`,descriptionKey:`diffView.change.new`},D:{code:`D`,color:`var(--status-error)`,descriptionKey:`diffView.change.deleted`},R:{code:`R`,color:`var(--status-info)`,descriptionKey:`diffView.change.renamed`},C:{code:`C`,color:`var(--status-info)`,descriptionKey:`diffView.change.copied`},M:{code:`M`,color:`var(--status-warning)`,descriptionKey:`diffView.change.modified`}},Ie=Fe.M,Le=e=>{let t=e.index?.trim(),n=e.working_dir?.trim();return t&&t!==`?`?t.charAt(0):n?n.charAt(0):t?.charAt(0)||n?.charAt(0)||`M`},Re=e=>Fe[Le(e)]??Ie,ze=e=>{let{index:t,working_dir:n}=e;return t===`A`||n===`A`||t===`?`||n===`?`},Be=e=>{let t=e.index?.trim();return!!(t&&t!==`?`)},Ve=e=>!!e.working_dir?.trim()||e.index===`?`,He=(e,t)=>u(e,t),Ue=e=>(e||``).replace(/\\/g,`/`).replace(/\/+$/,``),We=(e,t)=>{let n=e.split(`
|
|
5
5
|
`),r=t.split(`
|
|
6
|
-
`),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1)if(n[e]!==r[e])return e+1;return r.length>n.length?n.length+1:n.length>r.length?Math.max(1,r.length):1},Ge=e=>/^Binary files .+ differ$/m.test(e)||/^GIT binary patch$/m.test(e),Ke=e=>Array.isArray(e)?e.filter(e=>!e||typeof e!=`object`?!1:typeof e.file==`string`):[],qe=e=>e===`added`?`A`:e===`deleted`?`D`:`M`,Je=e=>e.isBinary||typeof e.patch==`string`&&e.patch.length>0||e.fileDiff?!0:e.original.length>0||e.modified.length>0,Ye=(e,t,n)=>Ge(t)?{original:``,modified:``,isBinary:!0,patch:t,contextMode:n}:{original:``,modified:``,patch:t,fileDiff:H(e,t),contextMode:n},Xe=(e,t,n)=>{let r=e??0,i=t??0;return!r&&!i?null:(0,q.jsxs)(`span`,{className:v(`typography-code flex items-center gap-1 whitespace-nowrap`,n?.shrink?`min-w-0 overflow-hidden`:`flex-shrink-0`,n?.className),children:[r?(0,q.jsxs)(`span`,{style:{color:`var(--status-success)`},children:[`+`,r]}):null,i?(0,q.jsxs)(`span`,{style:{color:`var(--status-error)`},children:[`-`,i]}):null]})},Ze=z.memo(e=>{let t=(0,B.c)(53),{scope:n,workingCount:r,stagedCount:i,turnCount:a,onScopeChange:o}=e,{t:s}=ee(),[c,l]=z.useState(!1),u=n===`staged`?i:n===`turn`?a:r,d;t[0]!==n||t[1]!==s?(d=s(n===`staged`?`diffView.scope.staged`:n===`turn`?`diffView.scope.lastTurn`:`diffView.scope.changed`),t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d,p;t[3]===s?p=t[4]:(p=s(`diffView.scope.selectorAria`),t[3]=s,t[4]=p);let m;t[5]===u?m=t[6]:(m=(0,q.jsxs)(`span`,{className:`diff-toolbar__scope-count`,children:[`: `,u]}),t[5]=u,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,q.jsxs)(`span`,{className:`whitespace-nowrap`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,q.jsx)(y,{name:`arrow-down-s`,className:`size-4 flex-shrink-0 opacity-60`}),t[10]=g):g=t[10];let _;t[11]!==p||t[12]!==h?(_=(0,q.jsx)(P,{asChild:!0,children:(0,q.jsxs)(`button`,{type:`button`,className:`flex h-7 flex-shrink-0 items-center gap-1.5 rounded-md px-2 typography-code font-semibold text-foreground outline-none hover:bg-interactive-hover focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":p,children:[h,g]})}),t[11]=p,t[12]=h,t[13]=_):_=t[13];let v;t[14]===o?v=t[15]:(v=e=>{(e===`working`||e===`staged`||e===`turn`)&&(o?.(e),l(!1))},t[14]=o,t[15]=v);let b;t[16]===s?b=t[17]:(b=s(`diffView.scope.changed`),t[16]=s,t[17]=b);let x;t[18]===b?x=t[19]:(x=(0,q.jsx)(`span`,{children:b}),t[18]=b,t[19]=x);let S;t[20]===r?S=t[21]:(S=(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground`,children:r}),t[20]=r,t[21]=S);let C;t[22]!==S||t[23]!==x?(C=(0,q.jsx)(re,{value:`working`,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center justify-between gap-3`,children:[x,S]})}),t[22]=S,t[23]=x,t[24]=C):C=t[24];let w;t[25]===s?w=t[26]:(w=s(`diffView.scope.staged`),t[25]=s,t[26]=w);let T;t[27]===w?T=t[28]:(T=(0,q.jsx)(`span`,{children:w}),t[27]=w,t[28]=T);let E;t[29]===i?E=t[30]:(E=(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground`,children:i}),t[29]=i,t[30]=E);let D;t[31]!==T||t[32]!==E?(D=(0,q.jsx)(re,{value:`staged`,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center justify-between gap-3`,children:[T,E]})}),t[31]=T,t[32]=E,t[33]=D):D=t[33];let O;t[34]===s?O=t[35]:(O=s(`diffView.scope.lastTurn`),t[34]=s,t[35]=O);let k;t[36]===O?k=t[37]:(k=(0,q.jsx)(`span`,{children:O}),t[36]=O,t[37]=k);let A;t[38]===a?A=t[39]:(A=(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground`,children:a}),t[38]=a,t[39]=A);let j;t[40]!==k||t[41]!==A?(j=(0,q.jsx)(re,{value:`turn`,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center justify-between gap-3`,children:[k,A]})}),t[40]=k,t[41]=A,t[42]=j):j=t[42];let M;t[43]!==n||t[44]!==C||t[45]!==D||t[46]!==j||t[47]!==v?(M=(0,q.jsx)(F,{align:`start`,className:`w-40`,children:(0,q.jsxs)(ne,{value:n,onValueChange:v,children:[C,D,j]})}),t[43]=n,t[44]=C,t[45]=D,t[46]=j,t[47]=v,t[48]=M):M=t[48];let N;return t[49]!==c||t[50]!==M||t[51]!==_?(N=(0,q.jsxs)(ie,{open:c,onOpenChange:l,children:[_,M]}),t[49]=c,t[50]=M,t[51]=_,t[52]=N):N=t[52],N}),Qe=z.memo(e=>{let t=(0,B.c)(11),{changedFiles:n,selectedFile:r,onSelectFile:i}=e,{t:a}=ee();if(n.length===0)return null;let o;if(t[0]!==n||t[1]!==i||t[2]!==r||t[3]!==a){let e;t[5]!==i||t[6]!==r||t[7]!==a?(e=e=>{let t=Re(e),n=r===e.path;return(0,q.jsx)(`li`,{children:(0,q.jsxs)(`button`,{type:`button`,onClick:()=>i(e.path),className:v(`flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left transition-colors`,n?`bg-interactive-selection text-interactive-selection-foreground`:`text-muted-foreground hover:bg-interactive-hover hover:text-foreground`),children:[(0,q.jsx)(M,{filePath:e.path,className:`size-3 flex-shrink-0`}),(0,q.jsx)(`span`,{className:`typography-code font-semibold w-3.5 text-center uppercase`,style:{color:t.color},title:a(t.descriptionKey),"aria-label":a(t.descriptionKey),children:t.code}),(0,q.jsx)(N,{path:e.path,className:`min-w-0 flex-1 typography-code`,dirClassName:n?`text-interactive-selection-foreground`:`text-muted-foreground`,nameClassName:n?`text-interactive-selection-foreground`:`text-foreground`}),Xe(e.insertions,e.deletions)]})},e.path)},t[5]=i,t[6]=r,t[7]=a,t[8]=e):e=t[8],o=n.map(e),t[0]=n,t[1]=i,t[2]=r,t[3]=a,t[4]=o}else o=t[4];let s;return t[9]===o?s=t[10]:(s=(0,q.jsx)(E,{outerClassName:`flex-1 min-h-0`,className:`px-2 py-2`,children:(0,q.jsx)(`ul`,{className:`flex flex-col gap-1`,children:o})}),t[9]=o,t[10]=s),s}),$e=z.memo(e=>{let t=(0,B.c)(20),{filePath:n,diff:r,renderSideBySide:i}=e,{t:a}=ee(),o=r.original.length>0,s=r.modified.length>0,c=i?`flex flex-row gap-6 items-start justify-center`:`flex flex-col gap-4 items-center`,l=i?`flex flex-col items-center gap-2 flex-1 min-w-0`:`flex flex-col items-center gap-2`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={contain:`layout`},t[0]=u):u=t[0];let d;t[1]!==r.original||t[2]!==n||t[3]!==o||t[4]!==l||t[5]!==i||t[6]!==a?(d=o&&(0,q.jsxs)(`div`,{className:l,children:[(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground font-medium`,children:a(`diffView.image.original`)}),(0,q.jsx)(R,{src:r.original,alt:a(`diffView.image.originalAlt`,{path:n}),className:i?`max-w-full max-h-[70vh] object-contain`:`max-w-full object-contain`,style:{imageRendering:`auto`}})]}),t[1]=r.original,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=a,t[7]=d):d=t[7];let f;t[8]!==r.modified||t[9]!==n||t[10]!==s||t[11]!==o||t[12]!==l||t[13]!==i||t[14]!==a?(f=s&&(0,q.jsxs)(`div`,{className:l,children:[(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground font-medium`,children:a(o?`diffView.image.modified`:`diffView.image.new`)}),(0,q.jsx)(R,{src:r.modified,alt:a(`diffView.image.modifiedAlt`,{path:n}),className:i?`max-w-full max-h-[70vh] object-contain`:`max-w-full object-contain`,style:{imageRendering:`auto`}})]}),t[8]=r.modified,t[9]=n,t[10]=s,t[11]=o,t[12]=l,t[13]=i,t[14]=a,t[15]=f):f=t[15];let p;return t[16]!==c||t[17]!==d||t[18]!==f?(p=(0,q.jsx)(`div`,{className:`w-full overflow-auto p-4`,style:u,children:(0,q.jsxs)(`div`,{className:c,children:[d,f]})}),t[16]=c,t[17]=d,t[18]=f,t[19]=p):p=t[19],p}),et=z.memo(e=>{let t=(0,B.c)(18),{filePath:n,diff:r,renderSideBySide:i,wrapLines:a,expandUnchanged:o,focusLine:s}=e,c=o!==void 0&&o,l;t[0]===n?l=t[1]:(l=w(n)||`text`,t[0]=n,t[1]=l);let u=l;if(r.isBinary){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(Pe,{}),t[2]=e):e=t[2],e}if(T(n)){let e;return t[3]!==r||t[4]!==n||t[5]!==i?(e=(0,q.jsx)($e,{filePath:n,diff:r,renderSideBySide:i}),t[3]=r,t[4]=n,t[5]=i,t[6]=e):e=t[6],e}let d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d={contain:`layout`},t[7]=d):d=t[7];let f=c&&!r.fileDiff?.isPartial,p;return t[8]!==r.fileDiff||t[9]!==r.modified||t[10]!==r.original||t[11]!==n||t[12]!==s||t[13]!==u||t[14]!==i||t[15]!==f||t[16]!==a?(p=(0,q.jsx)(`div`,{className:`w-full`,style:d,children:(0,q.jsx)(I,{original:r.original,modified:r.modified,fileDiff:r.fileDiff,language:u,fileName:n,renderSideBySide:i,wrapLines:a,expandUnchanged:f,focusLine:s,layout:`inline`,enableSelectionActions:!0})}),t[8]=r.fileDiff,t[9]=r.modified,t[10]=r.original,t[11]=n,t[12]=s,t[13]=u,t[14]=i,t[15]=f,t[16]=a,t[17]=p):p=t[17],p}),tt=z.memo(e=>{let t=(0,B.c)(7),{filePath:n,staged:r,busyAction:i,disabled:a,onAction:o}=e,{t:s}=ee(),c;return t[0]!==i||t[1]!==a||t[2]!==n||t[3]!==o||t[4]!==r||t[5]!==s?(c=(0,q.jsx)(`div`,{className:`flex items-center gap-0.5 rounded-full border border-[var(--interactive-border)]/45 bg-[var(--surface-background)]/95 px-1 py-0.5 shadow-lg backdrop-blur-md`,children:r?(0,q.jsx)(nt,{label:s(`gitView.changes.unstageFileAria`,{path:n}),icon:`arrow-go-back`,loading:i===`unstage`,disabled:a,onClick:()=>o(`unstage`)}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(nt,{label:s(`gitView.changes.revertFileAria`,{path:n}),icon:`arrow-go-back`,loading:i===`discard`,disabled:a,tone:`failure`,onClick:()=>o(`discard`)}),(0,q.jsx)(nt,{label:s(`gitView.changes.stageFileAria`,{path:n}),icon:`add`,loading:i===`stage`,disabled:a,tone:`success`,onClick:()=>o(`stage`)})]})}),t[0]=i,t[1]=a,t[2]=n,t[3]=o,t[4]=r,t[5]=s,t[6]=c):c=t[6],c}),nt=e=>{let t=(0,B.c)(14),{label:n,icon:r,loading:i,disabled:a,tone:o,onClick:s}=e,c=o===`failure`&&`text-[var(--status-error)] hover:text-[var(--status-error)]`,l=o===`success`&&`text-[var(--status-success)] hover:text-[var(--status-success)]`,u;t[0]!==c||t[1]!==l?(u=v(`h-6 w-6 rounded-none bg-transparent p-0 text-muted-foreground opacity-70 hover:bg-transparent hover:text-foreground hover:opacity-100`,c,l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d;t[3]===s?d=t[4]:(d=e=>{e.stopPropagation(),s()},t[3]=s,t[4]=d);let f;t[5]!==r||t[6]!==i?(f=i?(0,q.jsx)(y,{name:`loader-4`,className:`size-3.5 animate-spin`}):(0,q.jsx)(y,{name:r,className:r===`add`?`size-4`:`size-3.5`}),t[5]=r,t[6]=i,t[7]=f):f=t[7];let p;return t[8]!==a||t[9]!==n||t[10]!==u||t[11]!==d||t[12]!==f?(p=(0,q.jsx)(_,{variant:`ghost`,size:`sm`,className:u,disabled:a,title:n,"aria-label":n,onClick:d,children:f}),t[8]=a,t[9]=n,t[10]=u,t[11]=d,t[12]=f,t[13]=p):p=t[13],p},rt=z.memo(({directory:e,file:t,layout:n,wrapLines:r,isSelected:i,isExpanded:a,isMounted:o,onSelect:s,onExpandedChange:c,registerSectionRef:l,showOpenInEditorAction:u=!1,isOpeningInEditor:d=!1,onOpenInEditor:f,onOpenFile:p,staged:m=!1,loadFullFiles:h=!1,preloadFullFiles:g=!1,initialDiffData:b=null,focusLine:x=null,showFileActions:S=!0,disableGitFetch:w=!1,turnChangesRequest:E=null,loadTurnChangeFile:D=!1})=>{let{t:O}=ee(),{git:k}=ae(),A=L(z.useCallback(n=>n.directories.get(e)?.diffCache.get(t.path)??null,[e,t.path])),j=L(e=>e.setDiff),te=L(e=>e.fetchStatus),[ne,P]=z.useState(0),[F,re]=z.useState(null),[ie,I]=z.useState(!1),[oe,se]=z.useState(null),[ce,le]=z.useState(!1),[R,ue]=z.useState(null),[B,de]=z.useState(null),fe=z.useRef(null),V=z.useMemo(()=>Re(t),[t]),H=n===`side-by-side`,U=g||h,pe=U?`full`:`patch`,me=`${t.index}:${t.working_dir}:${t.insertions}:${t.deletions}`,W=Ee({sessionID:E?.sessionID??``,directory:E?.directory??``,messageID:E?.messageID??``,diffCount:E?.diffCount,file:t.path},{enabled:D&&!!E&&a&&o}),he=z.useMemo(()=>{let e=W.data?.diff;return e?typeof e.patch==`string`&&e.patch.length>0?Ye(t.path,e.patch,`patch`):typeof e.before==`string`&&e.before.length>0||typeof e.after==`string`&&e.after.length>0?{original:e.before??``,modified:e.after??``,contextMode:`full`}:null:null},[t.path,W.data]),G=z.useMemo(()=>{if(b)return b;if(he)return he;if(m)return B;if(R)return R;if(!A)return null;let e={original:A.original,modified:A.modified,isBinary:A.isBinary,contextMode:`full`};return Je(e)?e:null},[A,b,R,m,B,he]),ge=W.error instanceof Error?W.error.message:W.error?String(W.error):null,_e=G?null:ge??F,ve=D&&W.isPending||ie,ye=z.useCallback(e=>{fe.current=e,l(t.path,e)},[t.path,l]),be=z.useCallback(e=>{c(t.path,e)},[t.path,c]),K=z.useCallback(()=>{s(t.path)},[t.path,s]);z.useEffect(()=>{if(!a||!o||w||!e||b){I(!1);return}re(null),I(!0);let n=!1,r=U?je:Me,i=T(t.path)||U?k.getGitFileDiff(e,{path:t.path,staged:m}):k.getGitDiff(e,{path:t.path,staged:m,contextLines:r}),s=J,c,l=new Promise((e,t)=>{c=setTimeout(()=>t(Error(`Timed out after ${s}ms`)),s)});return Promise.race([i,l]).then(r=>{if(!n){if(`diff`in r){let e=Ye(t.path,r.diff,pe);m?de(e):ue(e)}else{let n={original:r.original??``,modified:r.modified??``,isBinary:r.isBinary,contextMode:`full`};m?de(n):(ue(n),j(e,t.path,n))}I(!1)}}).catch(e=>{if(n)return;let t=e instanceof Error?e.message:String(e);re(t),I(!1)}).finally(()=>clearTimeout(c)),()=>{n=!0,clearTimeout(c)}},[pe,ne,e,w,t.path,me,k,b,a,o,U,j,m]);let xe=z.useCallback(()=>{be(!a),K()},[be,K,a]),Se=z.useCallback(async n=>{if(!(!e||oe!==null)){se(n);try{n===`stage`?await k.stageGitFile(e,t.path):n===`unstage`?await k.unstageGitFile(e,t.path):await k.revertGitFile(e,t.path,{scope:`working`}),P(e=>e+1),await te(e,k)}catch(e){let t=n===`unstage`?`gitView.toast.unstageFileFailed`:n===`stage`?`gitView.toast.stageFileFailed`:`gitView.toast.revertFailed`;C.error(e instanceof Error?e.message:O(t))}finally{se(e=>e===n?null:e)}}},[e,te,t.path,oe,k,O]);return(0,q.jsxs)(`div`,{ref:ye,"aria-busy":ve,className:`scroll-mt-9 border-b border-[var(--interactive-border)]/40 last:border-b-0`,children:[(0,q.jsx)(`div`,{className:`sticky top-0 z-30 border-b border-[var(--interactive-border)]/35 bg-background/95 backdrop-blur-md supports-[backdrop-filter]:bg-background/90`,"data-diff-file-header":!0,children:(0,q.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:xe,onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),xe())},className:v(`cursor-pointer`,`group/header relative grid min-h-8 w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-1.5 overflow-hidden px-2 py-1`,`bg-transparent`,`text-muted-foreground hover:text-foreground`,i?`bg-[var(--interactive-selection)]/35`:null),children:[(0,q.jsx)(`div`,{className:`absolute inset-0 pointer-events-none group-hover/header:bg-[var(--interactive-hover)]/50`}),(0,q.jsxs)(`div`,{className:`relative flex min-w-0 flex-1 items-center gap-1.5`,children:[(0,q.jsx)(`span`,{className:`flex size-4 items-center justify-center opacity-70 group-hover/header:opacity-100`,children:a?(0,q.jsx)(y,{name:`arrow-down-s`,className:`size-3.5`}):(0,q.jsx)(y,{name:`arrow-right-s`,className:`size-3.5`})}),(0,q.jsx)(`span`,{className:`typography-code font-semibold leading-none w-3.5 text-center uppercase`,style:{color:V.color},title:O(V.descriptionKey),"aria-label":O(V.descriptionKey),children:V.code}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 overflow-hidden typography-code`,title:t.path,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,q.jsx)(M,{filePath:t.path,className:`size-3 flex-shrink-0 align-middle`}),(0,q.jsx)(N,{path:t.path,className:`min-w-0 flex-1 typography-code`})]})})]}),(0,q.jsxs)(`div`,{className:`relative flex shrink-0 items-center justify-self-end gap-1.5`,children:[ve&&G?(0,q.jsx)(`span`,{role:`status`,"aria-label":O(`diffView.state.loadingDiff`),children:(0,q.jsx)(y,{name:`loader-4`,className:`size-3.5 animate-spin`})}):null,Xe(t.insertions,t.deletions),u&&f?(0,q.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 w-5 p-0 opacity-70 hover:opacity-100`,title:O(`diffView.actions.openFileInEditorAtChange`),onClick:e=>{e.stopPropagation(),f(t.path,G)},disabled:d,children:d?(0,q.jsx)(y,{name:`loader-4`,className:`size-3.5 animate-spin`}):(0,q.jsx)(y,{name:`edit`,className:`size-3.5`})}):null,p?(0,q.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 w-5 p-0 opacity-70 hover:opacity-100`,title:O(`diffView.actions.openFilePreview`),"aria-label":O(`diffView.actions.openFilePreview`),onClick:e=>{e.stopPropagation(),p(t.path)},children:(0,q.jsx)(y,{name:`eye`,className:`size-3.5`})}):null]})]})}),a&&(0,q.jsxs)(`div`,{className:`relative bg-background overflow-hidden`,children:[G&&F?(0,q.jsxs)(`div`,{role:`alert`,className:`flex items-center gap-2 px-3 py-2 typography-meta text-muted-foreground`,children:[(0,q.jsxs)(`span`,{className:`min-w-0 flex-1 break-words`,children:[O(`diffView.state.failedToLoadDiff`),`: `,F]}),(0,q.jsx)(_,{variant:`ghost`,size:`xs`,onClick:()=>P(e=>e+1),children:O(`diffView.actions.retry`)})]}):null,!o&&!_e?(0,q.jsx)(`div`,{className:`h-40 border border-border/40 bg-background/40`}):null,_e?(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-4 py-8 text-sm text-muted-foreground`,children:[(0,q.jsx)(`div`,{className:`typography-ui-label font-semibold text-foreground`,children:O(`diffView.state.failedToLoadDiff`)}),(0,q.jsx)(`div`,{className:`typography-meta text-muted-foreground max-w-[32rem] text-center`,children:_e}),(0,q.jsx)(`button`,{type:`button`,className:`typography-ui-label text-primary hover:underline`,onClick:()=>{if(D){W.refetch();return}P(e=>e+1)},children:O(`diffView.actions.retry`)})]}):null,o&&ve&&!G&&!_e?(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-2 px-4 py-8 text-sm text-muted-foreground`,children:[(0,q.jsx)(y,{name:`loader-4`,className:`size-4 animate-spin`}),O(`diffView.state.loadingDiff`)]}):null,o&&G&&!ce&&t.insertions+t.deletions>ke?(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-4 py-8 text-sm text-muted-foreground`,children:[(0,q.jsx)(`div`,{className:`typography-ui-label font-semibold text-foreground`,children:O(`diffView.state.largeDiff`,{count:t.insertions+t.deletions})}),(0,q.jsx)(`div`,{className:`typography-meta text-muted-foreground`,children:O(`diffView.state.largeDiffDescription`)}),(0,q.jsx)(`button`,{type:`button`,className:`typography-ui-label text-primary hover:underline`,onClick:()=>le(!0),children:O(`diffView.actions.renderAnyway`)})]}):null,o&&G&&(ce||t.insertions+t.deletions<=ke)?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(et,{filePath:t.path,diff:G,renderSideBySide:H,wrapLines:r,expandUnchanged:h&&G.contextMode===`full`,focusLine:x}),S?(0,q.jsx)(`div`,{className:`pointer-events-none absolute bottom-3 right-3 z-20`,children:(0,q.jsx)(`div`,{className:`pointer-events-auto`,children:(0,q.jsx)(tt,{filePath:t.path,staged:m,busyAction:oe,disabled:oe!==null,onAction:Se})})}):null]}):null]})]})}),it=({hideStackedFileSidebar:e=!1,stackedDefaultCollapsedAll:t=!1,pinSelectedFileHeaderToTopOnNavigate:n=!1,showOpenInEditorAction:r=!1,diffScope:i=`all`,turnMessageId:a=null,sessionId:o=null,directory:s=null,onDiffScopeChange:c,targetFilePath:l=null,targetLine:u=null,toolPatches:p=null,flushContent:m=!1,singleFileView:h=!1,toolbarInSheetHeader:g=!1,preloadFullFiles:C=!1,navigationRequestKey:w})=>{let{t:M}=ee(),{git:N}=ae(),ne=oe(),P=typeof s==`string`&&s.trim()?s.trim():ne,{screenWidth:F,isMobile:re}=te({includeScreenWidth:!0}),ie=le(P??null),I=se(P??null),R=ce(P??null),B=L(e=>e.setActiveDirectory),de=L(e=>e.ensureStatus),fe=L(e=>e.fetchStatus),V=L(e=>e.setDiff),[H,U]=z.useState(null),[pe,me]=z.useState(!1),[W,ve]=z.useState(null),[ye,be]=z.useState(null),[K,xe]=z.useState(()=>new Set),[Se,Ce]=z.useState(()=>new Set),[we,Te]=z.useState(!1),[Ee,De]=z.useState(0),[J,ke]=z.useState(i);z.useEffect(()=>{ke(i)},[i]);let je=f(e=>e.pendingDiffFile),Me=f(e=>e.pendingDiffStaged),Pe=f(e=>e.pendingDiffScope),Fe=f(e=>e.pendingDiffLine),Ie=f(e=>e.setPendingDiffFile),Le=f(e=>e.diffLayoutPreference),Re=f(e=>e.diffFileLayout),Ge=f(e=>e.setDiffFileLayout),Je=f(e=>e.diffWrapLines),Xe=f(e=>e.setDiffWrapLines),$e=f(e=>e.openContextFileAtLine),et=f(e=>e.openContextFile),tt=O(),nt=x(e=>e.currentSessionId),it=typeof o==`string`&&o.trim()?o.trim():nt,at=S(it??``,P??void 0),ot=Je,st=J===`staged`||J!==`working`&&null,ct=st??pe,lt=!e&&!(re||F<=768)&&F>=1024,ut=z.useRef(null),dt=z.useRef(new Map),ft=z.useRef(null),Y=z.useRef(null),pt=z.useRef(!1),mt=z.useRef(null),ht=z.useRef(null),gt=z.useRef(null),_t=z.useRef(null),vt=z.useCallback(()=>{ft.current=null,pt.current=!1,be(null),Y.current!==null&&(window.cancelAnimationFrame(Y.current),Y.current=null)},[]),yt=z.useCallback(e=>{xe(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})},[]),X=z.useMemo(()=>{let e=at.length-1;if(a&&(e=at.findIndex(e=>e.id===a),e<0))return{messageID:null,count:0,hasDiffs:!1,thinDiffs:[]};for(let t=e;t>=0;--t){let e=at[t];if(e.role!==`user`)continue;let n=Ke(e.summary?.diffs),r=typeof e.summary?.diffCount==`number`&&Number.isFinite(e.summary.diffCount)?Math.max(0,Math.trunc(e.summary.diffCount)):n.length;return{messageID:typeof e.id==`string`&&e.id?e.id:null,count:r,hasDiffs:e.summary?.hasDiffs===!0||r>0||n.length>0,thinDiffs:n}}return{messageID:null,count:0,hasDiffs:!1,thinDiffs:[]}},[at,a]),bt=z.useMemo(()=>G(p??[]),[p]),xt=bt.length>0,St=z.useMemo(()=>!it||!P||!X.messageID?null:{sessionID:it,directory:P,messageID:X.messageID,diffCount:X.count},[P,it,X.count,X.messageID]),Ct=z.useMemo(()=>xt?bt:X.thinDiffs,[bt,X.thinDiffs,xt]),wt=z.useMemo(()=>{let e=new Map;for(let t of Ct)if(t.file){if(typeof t.patch==`string`&&t.patch.length>0){e.set(t.file,Ye(t.file,t.patch,`patch`));continue}(typeof t.before==`string`&&t.before.length>0||typeof t.after==`string`&&t.after.length>0)&&e.set(t.file,{original:t.before??``,modified:t.after??``,contextMode:`full`})}return e},[Ct]),Z=z.useMemo(()=>{if(J===`turn`)return Ct.map(e=>({path:e.file??``,index:``,working_dir:qe(e.status),insertions:e.additions??0,deletions:e.deletions??0,isNew:e.status===`added`})).filter(e=>e.path).sort((e,t)=>e.path.localeCompare(t.path));if(!I?.files)return[];let e=I.diffStats??{},t=J===`staged`?Be:J===`working`?Ve:()=>!0;return I.files.filter(t).map(t=>({...t,insertions:e[t.path]?.insertions??0,deletions:e[t.path]?.deletions??0,isNew:ze(t)})).sort((e,t)=>e.path.localeCompare(t.path))},[J,Ct,I]),Tt=z.useMemo(()=>I?.files?I.files.filter(Ve).length:0,[I]),Et=z.useMemo(()=>I?.files?I.files.filter(Be).length:0,[I]),Dt=xt?Ct.length:X.count,Ot=z.useMemo(()=>Z.map(e=>e.path).join(`\0`),[Z]),Q=z.useMemo(()=>{if(!h)return Z;let e=l?.trim()||H;return e?Z.filter(t=>t.path===e):[]},[Z,H,h,l]);z.useEffect(()=>{let e=Ot?Ot.split(`\0`):[],n=new Set(e),r=`${P??``}:${J}:${a??``}:${t?`collapsed`:`default`}`,i=p!==null&>.current!==p,o=ht.current!==r||i;ht.current=r,gt.current=p,xe(r=>{if(o){let n=t||J===`turn`&&!xt?0:Ne(e.length);return new Set(e.slice(0,n))}let i=!1,a=new Set;for(let e of r){if(!n.has(e)){i=!0;continue}a.add(e)}return i?a:r}),Ce(e=>{if(o)return new Set;let t=!1,r=new Set;for(let i of e){if(!n.has(i)){t=!0;continue}r.add(i)}return t?r:e})},[J,Ot,P,t,p,a,xt]);let kt=z.useCallback(()=>{mt.current=null;let e=ut.current;if(!e)return;let t=e.getBoundingClientRect(),n=t.top-Ae,r=t.bottom+Ae,i={};for(let[e,t]of dt.current){if(!t||!K.has(e))continue;let a=t.getBoundingClientRect();a.bottom<n||a.top>r||(i[e]=!0)}Ce(e=>{let t=!1,n=new Set(e);for(let e of Object.keys(i))n.has(e)||(n.add(e),t=!0);return t?n:e})},[K]),$=z.useCallback(()=>{typeof window>`u`||mt.current===null&&(mt.current=window.requestAnimationFrame(kt))},[kt]);z.useEffect(()=>{let e=ut.current;if(e)return $(),e.addEventListener(`scroll`,$,{passive:!0}),window.addEventListener(`resize`,$),()=>{e.removeEventListener(`scroll`,$),window.removeEventListener(`resize`,$),mt.current!==null&&(window.cancelAnimationFrame(mt.current),mt.current=null)}},[Z,K,$]);let At=z.useCallback(e=>{let t=Re[e.path];if(t)return t;if(Le===`inline`)return`inline`;if(Le===`side-by-side`)return`side-by-side`;let n=F<Oe;return e.isNew||n?`inline`:`side-by-side`},[Re,Le,F]),jt=z.useMemo(()=>Q.length===0?null:Q.every(e=>At(e)===`side-by-side`)?`side-by-side`:`inline`,[At,Q]);z.useEffect(()=>{P&&(B(P),de(P,N))},[P,B,de,N]),z.useEffect(()=>{if(P)return b.onGitRefreshHint(e=>{Ue(e.directory)===Ue(P)&&fe(P,N)})},[P,fe,N]),z.useEffect(()=>{J!==`all`&&!Pe||je&&(Pe&&ke(Pe),U(je),me(Pe===`staged`||!Pe&&Me),ve(Fe),Ie(null),pt.current=!0,ft.current=je,yt(je),De(e=>e+1))},[J,yt,je,Fe,Pe,Me,Ie]),z.useEffect(()=>{if(J===`all`)return;let e=l?.trim();if(!e)return;yt(e),U(e),me(J===`staged`),ve(u);let t=ge({scope:J,navigationRequestKey:w,targetFilePath:e,targetLine:u}),n=Z.some(t=>t.path===e);_e(_t.current,t,n)&&(_t.current=t,pt.current=!0,ft.current=e,De(e=>e+1))},[J,Z,yt,w,l,u]),z.useEffect(()=>{H&&(Z.some(e=>e.path===H)||(U(null),me(!1)))},[Z,H]);let Mt=z.useCallback((e,t)=>{let n=dt.current;t?n.set(e,t):n.delete(e),$()},[$]),Nt=z.useCallback((e,t)=>{vt(),xe(n=>{if(t===n.has(e))return n;let r=new Set(n);return t?r.add(e):r.delete(e),r}),t||Ce(t=>{if(!t.has(e))return t;let n=new Set(t);return n.delete(e),n}),$()},[vt,$]),Pt=z.useCallback(()=>{vt(),xe(e=>e.size>0?new Set:new Set(Z.map(e=>e.path))),Ce(new Set),$()},[vt,Z,$]),Ft=z.useCallback(e=>{let t=dt.current.get(e),n=ut.current;if(!t||!n)return!1;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect().top-r.top,a=Math.max(0,n.scrollHeight-n.clientHeight);return n.scrollTop=Math.min(a,Math.max(0,n.scrollTop+i)),!0},[]);z.useEffect(()=>{if(!ft.current)return;let e=0,t=!1,r=()=>{t||(t=!0,ft.current=null,pt.current=!1,be(null),Y.current!==null&&(window.cancelAnimationFrame(Y.current),Y.current=null))},i=()=>{if(t){Y.current=null;return}let a=ft.current;if(!a){r(),Y.current=null;return}if(!Ft(a)){e+=1,e<20?Y.current=window.requestAnimationFrame(i):(r(),Y.current=null);return}n&&pt.current&&be(a),r()};return Y.current=window.requestAnimationFrame(i),()=>{t=!0,Y.current!==null&&(window.cancelAnimationFrame(Y.current),Y.current=null)}},[n,Ee,Ft]);let It=z.useCallback(e=>{},[]),Lt=z.useCallback(e=>{vt(),U(e),me(!1),pt.current=!0,ft.current=e,yt(e),De(e=>e+1),Ft(e)},[vt,yt,Ft]),Rt=z.useCallback(e=>{let t=e===`side-by-side`?`side-by-side`:`inline`;Q.forEach(e=>{Ge(e.path,t)})},[Ge,Q]),[zt,Bt]=z.useState(null),Vt=z.useCallback(async(e,t)=>{if(!(!P||!e)){Bt(e);try{let n=null;if(t?.patch&&!t.isBinary&&!T(e)?n=he(t.patch):t&&t.contextMode===`full`&&!t.isBinary&&!T(e)&&(n=We(t.original,t.modified)),n===null)try{n=he((await N.getGitDiff(P,{path:e,staged:ct,contextLines:3})).diff)}catch{n=null}let r=t;if(n===null||!r){let t=await N.getGitFileDiff(P,{path:e,staged:ct});r={original:t.original??``,modified:t.modified??``,isBinary:t.isBinary},ct||V(P,e,r)}let i=n??(r.isBinary||T(e)?1:We(r.original,r.modified)),a=He(P,e);$e(P,a,i,1)}finally{Bt(t=>t===e?null:t)}}},[ct,P,N,$e,V]),Ht=d(e=>{if(!P||!e)return;let t=He(P,e);if(tt){tt.openFile({path:t});return}et(P,t)}),Ut=()=>{if(!P)return null;let e=e=>st===null?pe&&e===H:st;return(0,q.jsxs)(`div`,{className:v(`flex min-w-0 flex-1 min-h-0 h-full`,m?`gap-0`:`gap-3 px-3 pb-3 pt-2`),children:[lt&&(0,q.jsxs)(`section`,{className:`hidden lg:flex w-72 flex-col rounded-xl border border-border/60 bg-background/70 overflow-hidden`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-1.5 border-b border-border/40`,children:[(0,q.jsx)(`span`,{className:`typography-code font-semibold text-foreground`,children:M(`diffView.section.files`)}),(0,q.jsx)(`span`,{className:`typography-code text-muted-foreground`,children:Z.length})]}),(0,q.jsx)(Qe,{changedFiles:Z,selectedFile:null,onSelectFile:Lt})]}),(0,q.jsx)(`div`,{className:`relative flex-1 min-w-0 min-h-0 h-full`,children:(0,q.jsx)(E,{ref:ut,outerClassName:`min-h-0 h-full`,className:`[overflow-anchor:none] pb-16 pwa-overlay-scroll`,disableHorizontal:!0,observeMutations:!1,preventOverscroll:!0,"data-diff-virtual-root":!0,children:(0,q.jsx)(`div`,{className:`flex flex-col [overflow-anchor:none]`,"data-diff-virtual-content":!0,children:Q.map(t=>(0,q.jsx)(rt,{directory:P,file:t,layout:At(t),wrapLines:ot,isSelected:!1,isExpanded:K.has(t.path),isMounted:Se.has(t.path)||t.path===ye||h&&Q.length===1,onSelect:It,onExpandedChange:Nt,registerSectionRef:Mt,showOpenInEditorAction:r&&J!==`turn`,isOpeningInEditor:zt===t.path,onOpenInEditor:(e,t)=>{Vt(e,t)},onOpenFile:Ht,staged:e(t.path),loadFullFiles:we,preloadFullFiles:C,initialDiffData:J===`turn`?wt.get(t.path)??null:null,focusLine:t.path===(l?.trim()||H)?u??W:null,showFileActions:J!==`turn`,disableGitFetch:J===`turn`,turnChangesRequest:St,loadTurnChangeFile:J===`turn`&&!xt},t.path))})})})]})},Wt=()=>P?J!==`turn`&&R&&!I?(0,q.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-sm text-muted-foreground`,children:[(0,q.jsx)(y,{name:`loader-4`,className:`size-4 animate-spin`}),M(`diffView.state.loadingRepositoryStatus`)]}):J!==`turn`&&ie===!1?(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:M(`diffView.state.notGitRepository`)}):Q.length===0?(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:M(J===`turn`?`diffView.state.noLastTurnChanges`:`diffView.state.cleanWorkingTree`)}):Ut():(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:M(`diffView.state.selectSessionDirectory`)}),Gt=h?null:(0,q.jsxs)(q.Fragment,{children:[!re&&!g&&(J===`working`||J===`staged`||J===`turn`?(0,q.jsx)(Ze,{scope:J,workingCount:Tt,stagedCount:Et,turnCount:Dt,onScopeChange:e=>{ke(e),c?.(e)}}):(0,q.jsx)(`div`,{className:`flex items-center gap-1 rounded-md px-2 py-1 text-muted-foreground shrink-0`,children:(0,q.jsx)(`span`,{className:`typography-code font-semibold text-foreground`,children:R&&!I?M(`diffView.state.loadingChanges`):Q.length===1?M(`diffView.summary.changedFilesSingle`,{count:Q.length}):M(`diffView.summary.changedFilesPlural`,{count:Q.length})})})),!h&&Z.length>0&&(J!==`turn`||xt)&&(0,q.jsxs)(_,{variant:`ghost`,size:`sm`,onClick:Pt,className:v(`diff-toolbar__expand-button h-7 flex-shrink-0 gap-1 px-1.5 text-muted-foreground hover:text-foreground`,`ml-auto`),title:K.size>0?M(`diffView.actions.collapseAll`):M(`diffView.actions.expandAll`),children:[(0,q.jsx)(y,{name:`expand-up-down`,className:`size-4`}),(0,q.jsx)(`span`,{className:v(`diff-toolbar__expand-label typography-code`,g&&`hidden`),children:K.size>0?M(`diffView.actions.collapseAll`):M(`diffView.actions.expandAll`)})]}),Z.length>0&&J!==`turn`&&(0,q.jsxs)(j,{children:[(0,q.jsx)(k,{asChild:!0,children:(0,q.jsx)(_,{variant:`ghost`,size:`sm`,onClick:()=>Te(e=>!e),"aria-pressed":we,"aria-label":M(we?`diffView.actions.disableFullFiles`:`diffView.actions.loadFullFiles`),className:v(`h-7 w-7 flex-shrink-0 p-0 text-muted-foreground hover:text-foreground`,we&&`bg-interactive-selection text-interactive-selection-foreground`),children:(0,q.jsx)(y,{name:`file-download`,className:`size-4`})})}),(0,q.jsx)(A,{children:(0,q.jsx)(`p`,{children:M(we?`diffView.actions.disableFullFiles`:`diffView.actions.loadFullFiles`)})})]}),Z.length>0&&(0,q.jsx)(_,{variant:`ghost`,size:`sm`,onClick:()=>Xe(!Je),className:v(`h-5 w-5 p-0 transition-opacity`,ot?`text-foreground opacity-100`:`text-muted-foreground opacity-60 hover:opacity-100`),title:M(ot?`diffView.actions.disableLineWrap`:`diffView.actions.enableLineWrap`),children:(0,q.jsx)(y,{name:`text-wrap`,className:`size-4`})}),jt&&(0,q.jsx)(ue,{mode:jt===`side-by-side`?`side-by-side`:`unified`,onModeChange:Rt})]});return(0,q.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden bg-background`,children:[Gt?g?(0,q.jsx)(D,{children:Gt}):(0,q.jsx)(`div`,{className:`@container/diff-toolbar flex min-w-0 items-center gap-1.5 px-2 py-1.5 bg-background`,children:Gt}):null,Wt()]})};export{De as n,it as t};
|
|
6
|
+
`),i=Math.min(n.length,r.length);for(let e=0;e<i;e+=1)if(n[e]!==r[e])return e+1;return r.length>n.length?n.length+1:n.length>r.length?Math.max(1,r.length):1},Ge=e=>/^Binary files .+ differ$/m.test(e)||/^GIT binary patch$/m.test(e),Ke=e=>Array.isArray(e)?e.filter(e=>!e||typeof e!=`object`?!1:typeof e.file==`string`):[],qe=e=>e===`added`?`A`:e===`deleted`?`D`:`M`,Je=e=>e.isBinary||typeof e.patch==`string`&&e.patch.length>0||e.fileDiff?!0:e.original.length>0||e.modified.length>0,Ye=(e,t,n)=>Ge(t)?{original:``,modified:``,isBinary:!0,patch:t,contextMode:n}:{original:``,modified:``,patch:t,fileDiff:H(e,t),contextMode:n},Xe=(e,t,n)=>{let r=e??0,i=t??0;return!r&&!i?null:(0,q.jsxs)(`span`,{className:b(`typography-code flex items-center gap-1 whitespace-nowrap`,n?.shrink?`min-w-0 overflow-hidden`:`flex-shrink-0`,n?.className),children:[r?(0,q.jsxs)(`span`,{style:{color:`var(--status-success)`},children:[`+`,r]}):null,i?(0,q.jsxs)(`span`,{style:{color:`var(--status-error)`},children:[`-`,i]}):null]})},Ze=z.memo(e=>{let t=(0,B.c)(53),{scope:n,workingCount:r,stagedCount:i,turnCount:a,onScopeChange:o}=e,{t:s}=ee(),[c,l]=z.useState(!1),u=n===`staged`?i:n===`turn`?a:r,d;t[0]!==n||t[1]!==s?(d=s(n===`staged`?`diffView.scope.staged`:n===`turn`?`diffView.scope.lastTurn`:`diffView.scope.changed`),t[0]=n,t[1]=s,t[2]=d):d=t[2];let f=d,p;t[3]===s?p=t[4]:(p=s(`diffView.scope.selectorAria`),t[3]=s,t[4]=p);let m;t[5]===u?m=t[6]:(m=(0,q.jsxs)(`span`,{className:`diff-toolbar__scope-count`,children:[`: `,u]}),t[5]=u,t[6]=m);let h;t[7]!==f||t[8]!==m?(h=(0,q.jsxs)(`span`,{className:`whitespace-nowrap`,children:[f,m]}),t[7]=f,t[8]=m,t[9]=h):h=t[9];let g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,q.jsx)(C,{name:`arrow-down-s`,className:`size-4 flex-shrink-0 opacity-60`}),t[10]=g):g=t[10];let _;t[11]!==p||t[12]!==h?(_=(0,q.jsx)(P,{asChild:!0,children:(0,q.jsxs)(`button`,{type:`button`,className:`flex h-7 flex-shrink-0 items-center gap-1.5 rounded-md px-2 typography-code font-semibold text-foreground outline-none hover:bg-interactive-hover focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":p,children:[h,g]})}),t[11]=p,t[12]=h,t[13]=_):_=t[13];let v;t[14]===o?v=t[15]:(v=e=>{(e===`working`||e===`staged`||e===`turn`)&&(o?.(e),l(!1))},t[14]=o,t[15]=v);let y;t[16]===s?y=t[17]:(y=s(`diffView.scope.changed`),t[16]=s,t[17]=y);let b;t[18]===y?b=t[19]:(b=(0,q.jsx)(`span`,{children:y}),t[18]=y,t[19]=b);let x;t[20]===r?x=t[21]:(x=(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground`,children:r}),t[20]=r,t[21]=x);let S;t[22]!==x||t[23]!==b?(S=(0,q.jsx)(re,{value:`working`,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center justify-between gap-3`,children:[b,x]})}),t[22]=x,t[23]=b,t[24]=S):S=t[24];let w;t[25]===s?w=t[26]:(w=s(`diffView.scope.staged`),t[25]=s,t[26]=w);let T;t[27]===w?T=t[28]:(T=(0,q.jsx)(`span`,{children:w}),t[27]=w,t[28]=T);let E;t[29]===i?E=t[30]:(E=(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground`,children:i}),t[29]=i,t[30]=E);let D;t[31]!==T||t[32]!==E?(D=(0,q.jsx)(re,{value:`staged`,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center justify-between gap-3`,children:[T,E]})}),t[31]=T,t[32]=E,t[33]=D):D=t[33];let O;t[34]===s?O=t[35]:(O=s(`diffView.scope.lastTurn`),t[34]=s,t[35]=O);let k;t[36]===O?k=t[37]:(k=(0,q.jsx)(`span`,{children:O}),t[36]=O,t[37]=k);let A;t[38]===a?A=t[39]:(A=(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground`,children:a}),t[38]=a,t[39]=A);let j;t[40]!==k||t[41]!==A?(j=(0,q.jsx)(re,{value:`turn`,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center justify-between gap-3`,children:[k,A]})}),t[40]=k,t[41]=A,t[42]=j):j=t[42];let M;t[43]!==n||t[44]!==S||t[45]!==D||t[46]!==j||t[47]!==v?(M=(0,q.jsx)(F,{align:`start`,className:`w-40`,children:(0,q.jsxs)(ne,{value:n,onValueChange:v,children:[S,D,j]})}),t[43]=n,t[44]=S,t[45]=D,t[46]=j,t[47]=v,t[48]=M):M=t[48];let N;return t[49]!==c||t[50]!==M||t[51]!==_?(N=(0,q.jsxs)(ie,{open:c,onOpenChange:l,children:[_,M]}),t[49]=c,t[50]=M,t[51]=_,t[52]=N):N=t[52],N}),Qe=z.memo(e=>{let t=(0,B.c)(11),{changedFiles:n,selectedFile:r,onSelectFile:i}=e,{t:a}=ee();if(n.length===0)return null;let o;if(t[0]!==n||t[1]!==i||t[2]!==r||t[3]!==a){let e;t[5]!==i||t[6]!==r||t[7]!==a?(e=e=>{let t=Re(e),n=r===e.path;return(0,q.jsx)(`li`,{children:(0,q.jsxs)(`button`,{type:`button`,onClick:()=>i(e.path),className:b(`flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left transition-colors`,n?`bg-interactive-selection text-interactive-selection-foreground`:`text-muted-foreground hover:bg-interactive-hover hover:text-foreground`),children:[(0,q.jsx)(M,{filePath:e.path,className:`size-3 flex-shrink-0`}),(0,q.jsx)(`span`,{className:`typography-code font-semibold w-3.5 text-center uppercase`,style:{color:t.color},title:a(t.descriptionKey),"aria-label":a(t.descriptionKey),children:t.code}),(0,q.jsx)(N,{path:e.path,className:`min-w-0 flex-1 typography-code`,dirClassName:n?`text-interactive-selection-foreground`:`text-muted-foreground`,nameClassName:n?`text-interactive-selection-foreground`:`text-foreground`}),Xe(e.insertions,e.deletions)]})},e.path)},t[5]=i,t[6]=r,t[7]=a,t[8]=e):e=t[8],o=n.map(e),t[0]=n,t[1]=i,t[2]=r,t[3]=a,t[4]=o}else o=t[4];let s;return t[9]===o?s=t[10]:(s=(0,q.jsx)(E,{outerClassName:`flex-1 min-h-0`,className:`px-2 py-2`,children:(0,q.jsx)(`ul`,{className:`flex flex-col gap-1`,children:o})}),t[9]=o,t[10]=s),s}),$e=z.memo(e=>{let t=(0,B.c)(20),{filePath:n,diff:r,renderSideBySide:i}=e,{t:a}=ee(),o=r.original.length>0,s=r.modified.length>0,c=i?`flex flex-row gap-6 items-start justify-center`:`flex flex-col gap-4 items-center`,l=i?`flex flex-col items-center gap-2 flex-1 min-w-0`:`flex flex-col items-center gap-2`,u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u={contain:`layout`},t[0]=u):u=t[0];let d;t[1]!==r.original||t[2]!==n||t[3]!==o||t[4]!==l||t[5]!==i||t[6]!==a?(d=o&&(0,q.jsxs)(`div`,{className:l,children:[(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground font-medium`,children:a(`diffView.image.original`)}),(0,q.jsx)(R,{src:r.original,alt:a(`diffView.image.originalAlt`,{path:n}),className:i?`max-w-full max-h-[70vh] object-contain`:`max-w-full object-contain`,style:{imageRendering:`auto`}})]}),t[1]=r.original,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=a,t[7]=d):d=t[7];let f;t[8]!==r.modified||t[9]!==n||t[10]!==s||t[11]!==o||t[12]!==l||t[13]!==i||t[14]!==a?(f=s&&(0,q.jsxs)(`div`,{className:l,children:[(0,q.jsx)(`span`,{className:`typography-meta text-muted-foreground font-medium`,children:a(o?`diffView.image.modified`:`diffView.image.new`)}),(0,q.jsx)(R,{src:r.modified,alt:a(`diffView.image.modifiedAlt`,{path:n}),className:i?`max-w-full max-h-[70vh] object-contain`:`max-w-full object-contain`,style:{imageRendering:`auto`}})]}),t[8]=r.modified,t[9]=n,t[10]=s,t[11]=o,t[12]=l,t[13]=i,t[14]=a,t[15]=f):f=t[15];let p;return t[16]!==c||t[17]!==d||t[18]!==f?(p=(0,q.jsx)(`div`,{className:`w-full overflow-auto p-4`,style:u,children:(0,q.jsxs)(`div`,{className:c,children:[d,f]})}),t[16]=c,t[17]=d,t[18]=f,t[19]=p):p=t[19],p}),et=z.memo(e=>{let t=(0,B.c)(18),{filePath:n,diff:r,renderSideBySide:i,wrapLines:a,expandUnchanged:o,focusLine:s}=e,c=o!==void 0&&o,l;t[0]===n?l=t[1]:(l=w(n)||`text`,t[0]=n,t[1]=l);let u=l;if(r.isBinary){let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(Pe,{}),t[2]=e):e=t[2],e}if(T(n)){let e;return t[3]!==r||t[4]!==n||t[5]!==i?(e=(0,q.jsx)($e,{filePath:n,diff:r,renderSideBySide:i}),t[3]=r,t[4]=n,t[5]=i,t[6]=e):e=t[6],e}let d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d={contain:`layout`},t[7]=d):d=t[7];let f=c&&!r.fileDiff?.isPartial,p;return t[8]!==r.fileDiff||t[9]!==r.modified||t[10]!==r.original||t[11]!==n||t[12]!==s||t[13]!==u||t[14]!==i||t[15]!==f||t[16]!==a?(p=(0,q.jsx)(`div`,{className:`w-full`,style:d,children:(0,q.jsx)(I,{original:r.original,modified:r.modified,fileDiff:r.fileDiff,language:u,fileName:n,renderSideBySide:i,wrapLines:a,expandUnchanged:f,focusLine:s,layout:`inline`,enableSelectionActions:!0})}),t[8]=r.fileDiff,t[9]=r.modified,t[10]=r.original,t[11]=n,t[12]=s,t[13]=u,t[14]=i,t[15]=f,t[16]=a,t[17]=p):p=t[17],p}),tt=z.memo(e=>{let t=(0,B.c)(7),{filePath:n,staged:r,busyAction:i,disabled:a,onAction:o}=e,{t:s}=ee(),c;return t[0]!==i||t[1]!==a||t[2]!==n||t[3]!==o||t[4]!==r||t[5]!==s?(c=(0,q.jsx)(`div`,{className:`flex items-center gap-0.5 rounded-full border border-[var(--interactive-border)]/45 bg-[var(--surface-background)]/95 px-1 py-0.5 shadow-lg backdrop-blur-md`,children:r?(0,q.jsx)(nt,{label:s(`gitView.changes.unstageFileAria`,{path:n}),icon:`arrow-go-back`,loading:i===`unstage`,disabled:a,onClick:()=>o(`unstage`)}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(nt,{label:s(`gitView.changes.revertFileAria`,{path:n}),icon:`arrow-go-back`,loading:i===`discard`,disabled:a,tone:`failure`,onClick:()=>o(`discard`)}),(0,q.jsx)(nt,{label:s(`gitView.changes.stageFileAria`,{path:n}),icon:`add`,loading:i===`stage`,disabled:a,tone:`success`,onClick:()=>o(`stage`)})]})}),t[0]=i,t[1]=a,t[2]=n,t[3]=o,t[4]=r,t[5]=s,t[6]=c):c=t[6],c}),nt=e=>{let t=(0,B.c)(14),{label:n,icon:r,loading:i,disabled:a,tone:o,onClick:s}=e,c=o===`failure`&&`text-[var(--status-error)] hover:text-[var(--status-error)]`,l=o===`success`&&`text-[var(--status-success)] hover:text-[var(--status-success)]`,u;t[0]!==c||t[1]!==l?(u=b(`h-6 w-6 rounded-none bg-transparent p-0 text-muted-foreground opacity-70 hover:bg-transparent hover:text-foreground hover:opacity-100`,c,l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d;t[3]===s?d=t[4]:(d=e=>{e.stopPropagation(),s()},t[3]=s,t[4]=d);let f;t[5]!==r||t[6]!==i?(f=i?(0,q.jsx)(C,{name:`loader-4`,className:`size-3.5 animate-spin`}):(0,q.jsx)(C,{name:r,className:r===`add`?`size-4`:`size-3.5`}),t[5]=r,t[6]=i,t[7]=f):f=t[7];let p;return t[8]!==a||t[9]!==n||t[10]!==u||t[11]!==d||t[12]!==f?(p=(0,q.jsx)(_,{variant:`ghost`,size:`sm`,className:u,disabled:a,title:n,"aria-label":n,onClick:d,children:f}),t[8]=a,t[9]=n,t[10]=u,t[11]=d,t[12]=f,t[13]=p):p=t[13],p},rt=z.memo(({directory:e,file:t,layout:n,wrapLines:r,isSelected:i,isExpanded:a,isMounted:o,onSelect:s,onExpandedChange:c,registerSectionRef:l,showOpenInEditorAction:u=!1,isOpeningInEditor:d=!1,onOpenInEditor:f,onOpenFile:p,staged:m=!1,loadFullFiles:h=!1,preloadFullFiles:g=!1,initialDiffData:v=null,focusLine:y=null,showFileActions:S=!0,disableGitFetch:w=!1,turnChangesRequest:E=null,loadTurnChangeFile:D=!1})=>{let{t:O}=ee(),{git:k}=ae(),A=L(z.useCallback(n=>n.directories.get(e)?.diffCache.get(t.path)??null,[e,t.path])),j=L(e=>e.setDiff),te=L(e=>e.fetchStatus),[ne,P]=z.useState(0),[F,re]=z.useState(null),[ie,I]=z.useState(!1),[oe,se]=z.useState(null),[ce,le]=z.useState(!1),[R,ue]=z.useState(null),[B,de]=z.useState(null),fe=z.useRef(null),V=z.useMemo(()=>Re(t),[t]),H=n===`side-by-side`,U=g||h,pe=U?`full`:`patch`,me=`${t.index}:${t.working_dir}:${t.insertions}:${t.deletions}`,W=Ee({sessionID:E?.sessionID??``,directory:E?.directory??``,messageID:E?.messageID??``,diffCount:E?.diffCount,file:t.path},{enabled:D&&!!E&&a&&o}),he=z.useMemo(()=>{let e=W.data?.diff;return e?typeof e.patch==`string`&&e.patch.length>0?Ye(t.path,e.patch,`patch`):typeof e.before==`string`&&e.before.length>0||typeof e.after==`string`&&e.after.length>0?{original:e.before??``,modified:e.after??``,contextMode:`full`}:null:null},[t.path,W.data]),G=z.useMemo(()=>{if(v)return v;if(he)return he;if(m)return B;if(R)return R;if(!A)return null;let e={original:A.original,modified:A.modified,isBinary:A.isBinary,contextMode:`full`};return Je(e)?e:null},[A,v,R,m,B,he]),ge=W.error instanceof Error?W.error.message:W.error?String(W.error):null,_e=G?null:ge??F,ve=D&&W.isPending||ie,ye=z.useCallback(e=>{fe.current=e,l(t.path,e)},[t.path,l]),be=z.useCallback(e=>{c(t.path,e)},[t.path,c]),K=z.useCallback(()=>{s(t.path)},[t.path,s]);z.useEffect(()=>{if(!a||!o||w||!e||v){I(!1);return}re(null),I(!0);let n=!1,r=U?je:Me,i=T(t.path)||U?k.getGitFileDiff(e,{path:t.path,staged:m}):k.getGitDiff(e,{path:t.path,staged:m,contextLines:r}),s=J,c,l=new Promise((e,t)=>{c=setTimeout(()=>t(Error(`Timed out after ${s}ms`)),s)});return Promise.race([i,l]).then(r=>{if(!n){if(`diff`in r){let e=Ye(t.path,r.diff,pe);m?de(e):ue(e)}else{let n={original:r.original??``,modified:r.modified??``,isBinary:r.isBinary,contextMode:`full`};m?de(n):(ue(n),j(e,t.path,n))}I(!1)}}).catch(e=>{if(n)return;let t=e instanceof Error?e.message:String(e);re(t),I(!1)}).finally(()=>clearTimeout(c)),()=>{n=!0,clearTimeout(c)}},[pe,ne,e,w,t.path,me,k,v,a,o,U,j,m]);let xe=z.useCallback(()=>{be(!a),K()},[be,K,a]),Se=z.useCallback(async n=>{if(!(!e||oe!==null)){se(n);try{n===`stage`?await k.stageGitFile(e,t.path):n===`unstage`?await k.unstageGitFile(e,t.path):await k.revertGitFile(e,t.path,{scope:`working`}),P(e=>e+1),await te(e,k)}catch(e){let t=n===`unstage`?`gitView.toast.unstageFileFailed`:n===`stage`?`gitView.toast.stageFileFailed`:`gitView.toast.revertFailed`;x.error(e instanceof Error?e.message:O(t))}finally{se(e=>e===n?null:e)}}},[e,te,t.path,oe,k,O]);return(0,q.jsxs)(`div`,{ref:ye,"aria-busy":ve,className:`scroll-mt-9 border-b border-[var(--interactive-border)]/40 last:border-b-0`,children:[(0,q.jsx)(`div`,{className:`sticky top-0 z-30 border-b border-[var(--interactive-border)]/35 bg-background/95 backdrop-blur-md supports-[backdrop-filter]:bg-background/90`,"data-diff-file-header":!0,children:(0,q.jsxs)(`div`,{role:`button`,tabIndex:0,onClick:xe,onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),xe())},className:b(`cursor-pointer`,`group/header relative grid min-h-8 w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-1.5 overflow-hidden px-2 py-1`,`bg-transparent`,`text-muted-foreground hover:text-foreground`,i?`bg-[var(--interactive-selection)]/35`:null),children:[(0,q.jsx)(`div`,{className:`absolute inset-0 pointer-events-none group-hover/header:bg-[var(--interactive-hover)]/50`}),(0,q.jsxs)(`div`,{className:`relative flex min-w-0 flex-1 items-center gap-1.5`,children:[(0,q.jsx)(`span`,{className:`flex size-4 items-center justify-center opacity-70 group-hover/header:opacity-100`,children:a?(0,q.jsx)(C,{name:`arrow-down-s`,className:`size-3.5`}):(0,q.jsx)(C,{name:`arrow-right-s`,className:`size-3.5`})}),(0,q.jsx)(`span`,{className:`typography-code font-semibold leading-none w-3.5 text-center uppercase`,style:{color:V.color},title:O(V.descriptionKey),"aria-label":O(V.descriptionKey),children:V.code}),(0,q.jsx)(`span`,{className:`min-w-0 flex-1 overflow-hidden typography-code`,title:t.path,children:(0,q.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,q.jsx)(M,{filePath:t.path,className:`size-3 flex-shrink-0 align-middle`}),(0,q.jsx)(N,{path:t.path,className:`min-w-0 flex-1 typography-code`})]})})]}),(0,q.jsxs)(`div`,{className:`relative flex shrink-0 items-center justify-self-end gap-1.5`,children:[ve&&G?(0,q.jsx)(`span`,{role:`status`,"aria-label":O(`diffView.state.loadingDiff`),children:(0,q.jsx)(C,{name:`loader-4`,className:`size-3.5 animate-spin`})}):null,Xe(t.insertions,t.deletions),u&&f?(0,q.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 w-5 p-0 opacity-70 hover:opacity-100`,title:O(`diffView.actions.openFileInEditorAtChange`),onClick:e=>{e.stopPropagation(),f(t.path,G)},disabled:d,children:d?(0,q.jsx)(C,{name:`loader-4`,className:`size-3.5 animate-spin`}):(0,q.jsx)(C,{name:`edit`,className:`size-3.5`})}):null,p?(0,q.jsx)(_,{variant:`ghost`,size:`sm`,className:`h-5 w-5 p-0 opacity-70 hover:opacity-100`,title:O(`diffView.actions.openFilePreview`),"aria-label":O(`diffView.actions.openFilePreview`),onClick:e=>{e.stopPropagation(),p(t.path)},children:(0,q.jsx)(C,{name:`eye`,className:`size-3.5`})}):null]})]})}),a&&(0,q.jsxs)(`div`,{className:`relative bg-background overflow-hidden`,children:[G&&F?(0,q.jsxs)(`div`,{role:`alert`,className:`flex items-center gap-2 px-3 py-2 typography-meta text-muted-foreground`,children:[(0,q.jsxs)(`span`,{className:`min-w-0 flex-1 break-words`,children:[O(`diffView.state.failedToLoadDiff`),`: `,F]}),(0,q.jsx)(_,{variant:`ghost`,size:`xs`,onClick:()=>P(e=>e+1),children:O(`diffView.actions.retry`)})]}):null,!o&&!_e?(0,q.jsx)(`div`,{className:`h-40 border border-border/40 bg-background/40`}):null,_e?(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-4 py-8 text-sm text-muted-foreground`,children:[(0,q.jsx)(`div`,{className:`typography-ui-label font-semibold text-foreground`,children:O(`diffView.state.failedToLoadDiff`)}),(0,q.jsx)(`div`,{className:`typography-meta text-muted-foreground max-w-[32rem] text-center`,children:_e}),(0,q.jsx)(`button`,{type:`button`,className:`typography-ui-label text-primary hover:underline`,onClick:()=>{if(D){W.refetch();return}P(e=>e+1)},children:O(`diffView.actions.retry`)})]}):null,o&&ve&&!G&&!_e?(0,q.jsxs)(`div`,{className:`flex items-center justify-center gap-2 px-4 py-8 text-sm text-muted-foreground`,children:[(0,q.jsx)(C,{name:`loader-4`,className:`size-4 animate-spin`}),O(`diffView.state.loadingDiff`)]}):null,o&&G&&!ce&&t.insertions+t.deletions>ke?(0,q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-4 py-8 text-sm text-muted-foreground`,children:[(0,q.jsx)(`div`,{className:`typography-ui-label font-semibold text-foreground`,children:O(`diffView.state.largeDiff`,{count:t.insertions+t.deletions})}),(0,q.jsx)(`div`,{className:`typography-meta text-muted-foreground`,children:O(`diffView.state.largeDiffDescription`)}),(0,q.jsx)(`button`,{type:`button`,className:`typography-ui-label text-primary hover:underline`,onClick:()=>le(!0),children:O(`diffView.actions.renderAnyway`)})]}):null,o&&G&&(ce||t.insertions+t.deletions<=ke)?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(et,{filePath:t.path,diff:G,renderSideBySide:H,wrapLines:r,expandUnchanged:h&&G.contextMode===`full`,focusLine:y}),S?(0,q.jsx)(`div`,{className:`pointer-events-none absolute bottom-3 right-3 z-20`,children:(0,q.jsx)(`div`,{className:`pointer-events-auto`,children:(0,q.jsx)(tt,{filePath:t.path,staged:m,busyAction:oe,disabled:oe!==null,onAction:Se})})}):null]}):null]})]})}),it=({hideStackedFileSidebar:e=!1,stackedDefaultCollapsedAll:t=!1,pinSelectedFileHeaderToTopOnNavigate:n=!1,showOpenInEditorAction:r=!1,diffScope:i=`all`,turnMessageId:a=null,sessionId:o=null,directory:s=null,onDiffScopeChange:c,targetFilePath:l=null,targetLine:u=null,toolPatches:p=null,flushContent:m=!1,singleFileView:h=!1,toolbarInSheetHeader:g=!1,preloadFullFiles:x=!1,navigationRequestKey:w})=>{let{t:M}=ee(),{git:N}=ae(),ne=oe(),P=typeof s==`string`&&s.trim()?s.trim():ne,{screenWidth:F,isMobile:re}=te({includeScreenWidth:!0}),ie=le(P??null),I=se(P??null),R=ce(P??null),B=L(e=>e.setActiveDirectory),de=L(e=>e.ensureStatus),fe=L(e=>e.fetchStatus),V=L(e=>e.setDiff),[H,U]=z.useState(null),[pe,me]=z.useState(!1),[W,ve]=z.useState(null),[ye,be]=z.useState(null),[K,xe]=z.useState(()=>new Set),[Se,Ce]=z.useState(()=>new Set),[we,Te]=z.useState(!1),[Ee,De]=z.useState(0),[J,ke]=z.useState(i);z.useEffect(()=>{ke(i)},[i]);let je=f(e=>e.pendingDiffFile),Me=f(e=>e.pendingDiffStaged),Pe=f(e=>e.pendingDiffScope),Fe=f(e=>e.pendingDiffLine),Ie=f(e=>e.setPendingDiffFile),Le=f(e=>e.diffLayoutPreference),Re=f(e=>e.diffFileLayout),Ge=f(e=>e.setDiffFileLayout),Je=f(e=>e.diffWrapLines),Xe=f(e=>e.setDiffWrapLines),$e=f(e=>e.openContextFileAtLine),et=f(e=>e.openContextFile),tt=O(),nt=y(e=>e.currentSessionId),it=typeof o==`string`&&o.trim()?o.trim():nt,at=S(it??``,P??void 0),ot=Je,st=J===`staged`||J!==`working`&&null,ct=st??pe,lt=!e&&!(re||F<=768)&&F>=1024,ut=z.useRef(null),dt=z.useRef(new Map),ft=z.useRef(null),Y=z.useRef(null),pt=z.useRef(!1),mt=z.useRef(null),ht=z.useRef(null),gt=z.useRef(null),_t=z.useRef(null),vt=z.useCallback(()=>{ft.current=null,pt.current=!1,be(null),Y.current!==null&&(window.cancelAnimationFrame(Y.current),Y.current=null)},[]),yt=z.useCallback(e=>{xe(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n})},[]),X=z.useMemo(()=>{let e=at.length-1;if(a&&(e=at.findIndex(e=>e.id===a),e<0))return{messageID:null,count:0,hasDiffs:!1,thinDiffs:[]};for(let t=e;t>=0;--t){let e=at[t];if(e.role!==`user`)continue;let n=Ke(e.summary?.diffs),r=typeof e.summary?.diffCount==`number`&&Number.isFinite(e.summary.diffCount)?Math.max(0,Math.trunc(e.summary.diffCount)):n.length;return{messageID:typeof e.id==`string`&&e.id?e.id:null,count:r,hasDiffs:e.summary?.hasDiffs===!0||r>0||n.length>0,thinDiffs:n}}return{messageID:null,count:0,hasDiffs:!1,thinDiffs:[]}},[at,a]),bt=z.useMemo(()=>G(p??[]),[p]),xt=bt.length>0,St=z.useMemo(()=>!it||!P||!X.messageID?null:{sessionID:it,directory:P,messageID:X.messageID,diffCount:X.count},[P,it,X.count,X.messageID]),Ct=z.useMemo(()=>xt?bt:X.thinDiffs,[bt,X.thinDiffs,xt]),wt=z.useMemo(()=>{let e=new Map;for(let t of Ct)if(t.file){if(typeof t.patch==`string`&&t.patch.length>0){e.set(t.file,Ye(t.file,t.patch,`patch`));continue}(typeof t.before==`string`&&t.before.length>0||typeof t.after==`string`&&t.after.length>0)&&e.set(t.file,{original:t.before??``,modified:t.after??``,contextMode:`full`})}return e},[Ct]),Z=z.useMemo(()=>{if(J===`turn`)return Ct.map(e=>({path:e.file??``,index:``,working_dir:qe(e.status),insertions:e.additions??0,deletions:e.deletions??0,isNew:e.status===`added`})).filter(e=>e.path).sort((e,t)=>e.path.localeCompare(t.path));if(!I?.files)return[];let e=I.diffStats??{},t=J===`staged`?Be:J===`working`?Ve:()=>!0;return I.files.filter(t).map(t=>({...t,insertions:e[t.path]?.insertions??0,deletions:e[t.path]?.deletions??0,isNew:ze(t)})).sort((e,t)=>e.path.localeCompare(t.path))},[J,Ct,I]),Tt=z.useMemo(()=>I?.files?I.files.filter(Ve).length:0,[I]),Et=z.useMemo(()=>I?.files?I.files.filter(Be).length:0,[I]),Dt=xt?Ct.length:X.count,Ot=z.useMemo(()=>Z.map(e=>e.path).join(`\0`),[Z]),Q=z.useMemo(()=>{if(!h)return Z;let e=l?.trim()||H;return e?Z.filter(t=>t.path===e):[]},[Z,H,h,l]);z.useEffect(()=>{let e=Ot?Ot.split(`\0`):[],n=new Set(e),r=`${P??``}:${J}:${a??``}:${t?`collapsed`:`default`}`,i=p!==null&>.current!==p,o=ht.current!==r||i;ht.current=r,gt.current=p,xe(r=>{if(o){let n=t||J===`turn`&&!xt?0:Ne(e.length);return new Set(e.slice(0,n))}let i=!1,a=new Set;for(let e of r){if(!n.has(e)){i=!0;continue}a.add(e)}return i?a:r}),Ce(e=>{if(o)return new Set;let t=!1,r=new Set;for(let i of e){if(!n.has(i)){t=!0;continue}r.add(i)}return t?r:e})},[J,Ot,P,t,p,a,xt]);let kt=z.useCallback(()=>{mt.current=null;let e=ut.current;if(!e)return;let t=e.getBoundingClientRect(),n=t.top-Ae,r=t.bottom+Ae,i={};for(let[e,t]of dt.current){if(!t||!K.has(e))continue;let a=t.getBoundingClientRect();a.bottom<n||a.top>r||(i[e]=!0)}Ce(e=>{let t=!1,n=new Set(e);for(let e of Object.keys(i))n.has(e)||(n.add(e),t=!0);return t?n:e})},[K]),$=z.useCallback(()=>{typeof window>`u`||mt.current===null&&(mt.current=window.requestAnimationFrame(kt))},[kt]);z.useEffect(()=>{let e=ut.current;if(e)return $(),e.addEventListener(`scroll`,$,{passive:!0}),window.addEventListener(`resize`,$),()=>{e.removeEventListener(`scroll`,$),window.removeEventListener(`resize`,$),mt.current!==null&&(window.cancelAnimationFrame(mt.current),mt.current=null)}},[Z,K,$]);let At=z.useCallback(e=>{let t=Re[e.path];if(t)return t;if(Le===`inline`)return`inline`;if(Le===`side-by-side`)return`side-by-side`;let n=F<Oe;return e.isNew||n?`inline`:`side-by-side`},[Re,Le,F]),jt=z.useMemo(()=>Q.length===0?null:Q.every(e=>At(e)===`side-by-side`)?`side-by-side`:`inline`,[At,Q]);z.useEffect(()=>{P&&(B(P),de(P,N))},[P,B,de,N]),z.useEffect(()=>{if(P)return v.onGitRefreshHint(e=>{Ue(e.directory)===Ue(P)&&fe(P,N)})},[P,fe,N]),z.useEffect(()=>{J!==`all`&&!Pe||je&&(Pe&&ke(Pe),U(je),me(Pe===`staged`||!Pe&&Me),ve(Fe),Ie(null),pt.current=!0,ft.current=je,yt(je),De(e=>e+1))},[J,yt,je,Fe,Pe,Me,Ie]),z.useEffect(()=>{if(J===`all`)return;let e=l?.trim();if(!e)return;yt(e),U(e),me(J===`staged`),ve(u);let t=ge({scope:J,navigationRequestKey:w,targetFilePath:e,targetLine:u}),n=Z.some(t=>t.path===e);_e(_t.current,t,n)&&(_t.current=t,pt.current=!0,ft.current=e,De(e=>e+1))},[J,Z,yt,w,l,u]),z.useEffect(()=>{H&&(Z.some(e=>e.path===H)||(U(null),me(!1)))},[Z,H]);let Mt=z.useCallback((e,t)=>{let n=dt.current;t?n.set(e,t):n.delete(e),$()},[$]),Nt=z.useCallback((e,t)=>{vt(),xe(n=>{if(t===n.has(e))return n;let r=new Set(n);return t?r.add(e):r.delete(e),r}),t||Ce(t=>{if(!t.has(e))return t;let n=new Set(t);return n.delete(e),n}),$()},[vt,$]),Pt=z.useCallback(()=>{vt(),xe(e=>e.size>0?new Set:new Set(Z.map(e=>e.path))),Ce(new Set),$()},[vt,Z,$]),Ft=z.useCallback(e=>{let t=dt.current.get(e),n=ut.current;if(!t||!n)return!1;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect().top-r.top,a=Math.max(0,n.scrollHeight-n.clientHeight);return n.scrollTop=Math.min(a,Math.max(0,n.scrollTop+i)),!0},[]);z.useEffect(()=>{if(!ft.current)return;let e=0,t=!1,r=()=>{t||(t=!0,ft.current=null,pt.current=!1,be(null),Y.current!==null&&(window.cancelAnimationFrame(Y.current),Y.current=null))},i=()=>{if(t){Y.current=null;return}let a=ft.current;if(!a){r(),Y.current=null;return}if(!Ft(a)){e+=1,e<20?Y.current=window.requestAnimationFrame(i):(r(),Y.current=null);return}n&&pt.current&&be(a),r()};return Y.current=window.requestAnimationFrame(i),()=>{t=!0,Y.current!==null&&(window.cancelAnimationFrame(Y.current),Y.current=null)}},[n,Ee,Ft]);let It=z.useCallback(e=>{},[]),Lt=z.useCallback(e=>{vt(),U(e),me(!1),pt.current=!0,ft.current=e,yt(e),De(e=>e+1),Ft(e)},[vt,yt,Ft]),Rt=z.useCallback(e=>{let t=e===`side-by-side`?`side-by-side`:`inline`;Q.forEach(e=>{Ge(e.path,t)})},[Ge,Q]),[zt,Bt]=z.useState(null),Vt=z.useCallback(async(e,t)=>{if(!(!P||!e)){Bt(e);try{let n=null;if(t?.patch&&!t.isBinary&&!T(e)?n=he(t.patch):t&&t.contextMode===`full`&&!t.isBinary&&!T(e)&&(n=We(t.original,t.modified)),n===null)try{n=he((await N.getGitDiff(P,{path:e,staged:ct,contextLines:3})).diff)}catch{n=null}let r=t;if(n===null||!r){let t=await N.getGitFileDiff(P,{path:e,staged:ct});r={original:t.original??``,modified:t.modified??``,isBinary:t.isBinary},ct||V(P,e,r)}let i=n??(r.isBinary||T(e)?1:We(r.original,r.modified)),a=He(P,e);$e(P,a,i,1)}finally{Bt(t=>t===e?null:t)}}},[ct,P,N,$e,V]),Ht=d(e=>{if(!P||!e)return;let t=He(P,e);if(tt){tt.openFile({path:t});return}et(P,t)}),Ut=()=>{if(!P)return null;let e=e=>st===null?pe&&e===H:st;return(0,q.jsxs)(`div`,{className:b(`flex min-w-0 flex-1 min-h-0 h-full`,m?`gap-0`:`gap-3 px-3 pb-3 pt-2`),children:[lt&&(0,q.jsxs)(`section`,{className:`hidden lg:flex w-72 flex-col rounded-xl border border-border/60 bg-background/70 overflow-hidden`,children:[(0,q.jsxs)(`div`,{className:`flex items-center justify-between px-3 py-1.5 border-b border-border/40`,children:[(0,q.jsx)(`span`,{className:`typography-code font-semibold text-foreground`,children:M(`diffView.section.files`)}),(0,q.jsx)(`span`,{className:`typography-code text-muted-foreground`,children:Z.length})]}),(0,q.jsx)(Qe,{changedFiles:Z,selectedFile:null,onSelectFile:Lt})]}),(0,q.jsx)(`div`,{className:`relative flex-1 min-w-0 min-h-0 h-full`,children:(0,q.jsx)(E,{ref:ut,outerClassName:`min-h-0 h-full`,className:`[overflow-anchor:none] pb-16 pwa-overlay-scroll`,disableHorizontal:!0,observeMutations:!1,preventOverscroll:!0,"data-diff-virtual-root":!0,children:(0,q.jsx)(`div`,{className:`flex flex-col [overflow-anchor:none]`,"data-diff-virtual-content":!0,children:Q.map(t=>(0,q.jsx)(rt,{directory:P,file:t,layout:At(t),wrapLines:ot,isSelected:!1,isExpanded:K.has(t.path),isMounted:Se.has(t.path)||t.path===ye||h&&Q.length===1,onSelect:It,onExpandedChange:Nt,registerSectionRef:Mt,showOpenInEditorAction:r&&J!==`turn`,isOpeningInEditor:zt===t.path,onOpenInEditor:(e,t)=>{Vt(e,t)},onOpenFile:Ht,staged:e(t.path),loadFullFiles:we,preloadFullFiles:x,initialDiffData:J===`turn`?wt.get(t.path)??null:null,focusLine:t.path===(l?.trim()||H)?u??W:null,showFileActions:J!==`turn`,disableGitFetch:J===`turn`,turnChangesRequest:St,loadTurnChangeFile:J===`turn`&&!xt},t.path))})})})]})},Wt=()=>P?J!==`turn`&&R&&!I?(0,q.jsxs)(`div`,{className:`flex flex-1 items-center justify-center gap-2 text-sm text-muted-foreground`,children:[(0,q.jsx)(C,{name:`loader-4`,className:`size-4 animate-spin`}),M(`diffView.state.loadingRepositoryStatus`)]}):J!==`turn`&&ie===!1?(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:M(`diffView.state.notGitRepository`)}):Q.length===0?(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:M(J===`turn`?`diffView.state.noLastTurnChanges`:`diffView.state.cleanWorkingTree`)}):Ut():(0,q.jsx)(`div`,{className:`flex flex-1 items-center justify-center text-sm text-muted-foreground`,children:M(`diffView.state.selectSessionDirectory`)}),Gt=h?null:(0,q.jsxs)(q.Fragment,{children:[!re&&!g&&(J===`working`||J===`staged`||J===`turn`?(0,q.jsx)(Ze,{scope:J,workingCount:Tt,stagedCount:Et,turnCount:Dt,onScopeChange:e=>{ke(e),c?.(e)}}):(0,q.jsx)(`div`,{className:`flex items-center gap-1 rounded-md px-2 py-1 text-muted-foreground shrink-0`,children:(0,q.jsx)(`span`,{className:`typography-code font-semibold text-foreground`,children:R&&!I?M(`diffView.state.loadingChanges`):Q.length===1?M(`diffView.summary.changedFilesSingle`,{count:Q.length}):M(`diffView.summary.changedFilesPlural`,{count:Q.length})})})),!h&&Z.length>0&&(J!==`turn`||xt)&&(0,q.jsxs)(_,{variant:`ghost`,size:`sm`,onClick:Pt,className:b(`diff-toolbar__expand-button h-7 flex-shrink-0 gap-1 px-1.5 text-muted-foreground hover:text-foreground`,`ml-auto`),title:K.size>0?M(`diffView.actions.collapseAll`):M(`diffView.actions.expandAll`),children:[(0,q.jsx)(C,{name:`expand-up-down`,className:`size-4`}),(0,q.jsx)(`span`,{className:b(`diff-toolbar__expand-label typography-code`,g&&`hidden`),children:K.size>0?M(`diffView.actions.collapseAll`):M(`diffView.actions.expandAll`)})]}),Z.length>0&&J!==`turn`&&(0,q.jsxs)(j,{children:[(0,q.jsx)(k,{asChild:!0,children:(0,q.jsx)(_,{variant:`ghost`,size:`sm`,onClick:()=>Te(e=>!e),"aria-pressed":we,"aria-label":M(we?`diffView.actions.disableFullFiles`:`diffView.actions.loadFullFiles`),className:b(`h-7 w-7 flex-shrink-0 p-0 text-muted-foreground hover:text-foreground`,we&&`bg-interactive-selection text-interactive-selection-foreground`),children:(0,q.jsx)(C,{name:`file-download`,className:`size-4`})})}),(0,q.jsx)(A,{children:(0,q.jsx)(`p`,{children:M(we?`diffView.actions.disableFullFiles`:`diffView.actions.loadFullFiles`)})})]}),Z.length>0&&(0,q.jsx)(_,{variant:`ghost`,size:`sm`,onClick:()=>Xe(!Je),className:b(`h-5 w-5 p-0 transition-opacity`,ot?`text-foreground opacity-100`:`text-muted-foreground opacity-60 hover:opacity-100`),title:M(ot?`diffView.actions.disableLineWrap`:`diffView.actions.enableLineWrap`),children:(0,q.jsx)(C,{name:`text-wrap`,className:`size-4`})}),jt&&(0,q.jsx)(ue,{mode:jt===`side-by-side`?`side-by-side`:`unified`,onModeChange:Rt})]});return(0,q.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden bg-background`,children:[Gt?g?(0,q.jsx)(D,{children:Gt}):(0,q.jsx)(`div`,{className:`@container/diff-toolbar flex min-w-0 items-center gap-1.5 px-2 py-1.5 bg-background`,children:Gt}):null,Wt()]})};export{De as n,it as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime-hePW80VL.js";import{ot as e,st as t}from"./vendor-base-ui-wXsskyKm.js";import{n}from"./vendor-react-BkccXcWz.js";import{Yn as r,no as i}from"./ui-z2JsXLmb.js";import{n as a}from"./Icon-CMNOrIAp.js";var o=n();t();var s=e(),c=e=>{let t=(0,o.c)(12),{mode:n,onModeChange:c,className:l}=e,u;t[0]!==n||t[1]!==c?(u=e=>{e.stopPropagation(),c(n===`side-by-side`?`unified`:`side-by-side`)},t[0]=n,t[1]=c,t[2]=u):u=t[2];let d=u,f;t[3]===l?f=t[4]:(f=i(`h-5 w-5 p-0 opacity-60 hover:opacity-100`,l),t[3]=l,t[4]=f);let p=n===`side-by-side`?`Switch to unified view`:`Switch to side-by-side view`,m;t[5]===n?m=t[6]:(m=n===`side-by-side`?(0,s.jsx)(a,{name:`align-justify`,className:`h-3 w-3`}):(0,s.jsx)(a,{name:`layout-column`,className:`h-3 w-3`}),t[5]=n,t[6]=m);let h;return t[7]!==d||t[8]!==f||t[9]!==p||t[10]!==m?(h=(0,s.jsx)(r,{size:`sm`,variant:`ghost`,className:f,onClick:d,title:p,children:m}),t[7]=d,t[8]=f,t[9]=p,t[10]=m,t[11]=h):h=t[11],h};export{c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{Yn as i,to as a}from"./ui-z2JsXLmb.js";import{n as o}from"./Icon-CMNOrIAp.js";import{t as s}from"./i18n-BU8XOKjS.js";import{i as c,n as l,r as u,t as d}from"./card-Csh0Af72.js";var f=r(),p=e(n(),1),m=t(),h=class extends p.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t,copied:!1}),console.error(`Error caught by boundary:`,e,t)}handleReset=()=>{this.setState({hasError:!1,error:void 0,errorInfo:void 0})};handleCopy=async()=>{let{strings:e}=this.props,t=`${this.state.error?String(this.state.error):e.unknownError}${this.state.error?.stack?`\n\nStack:\n${this.state.error.stack}`:``}${this.state.errorInfo?.componentStack?`\n\n${e.componentStackLabel}${this.state.errorInfo.componentStack}`:``}`;(await a(t)).ok&&(this.setState({copied:!0}),window.setTimeout(()=>{this.setState(e=>e.copied?{copied:!1}:null)},1500))};render(){let{strings:e}=this.props;return this.state.hasError?this.props.fallback?this.props.fallback:(0,m.jsx)(`div`,{className:`p-4 flex items-center justify-center min-h-screen`,children:(0,m.jsxs)(d,{className:`w-full max-w-md`,children:[(0,m.jsx)(u,{className:`text-center`,children:(0,m.jsxs)(c,{className:`flex items-center justify-center gap-2 text-destructive`,children:[(0,m.jsx)(o,{name:`error-warning`,className:`h-5 w-5`}),e.title]})}),(0,m.jsxs)(l,{className:`space-y-4`,children:[(0,m.jsx)(`p`,{className:`text-sm text-muted-foreground text-center`,children:e.description}),this.state.error&&(0,m.jsxs)(`details`,{className:`text-xs font-mono bg-muted p-3 rounded`,children:[(0,m.jsx)(`summary`,{className:`cursor-pointer hover:bg-interactive-hover/80`,children:e.detailsSummary}),(0,m.jsxs)(`pre`,{className:`mt-2 max-h-48 overflow-auto`,children:[this.state.error.toString(),this.state.errorInfo?.componentStack?`\n\n${e.componentStackLabel}${this.state.errorInfo.componentStack}`:``]})]}),(0,m.jsxs)(`div`,{className:`flex gap-2`,children:[(0,m.jsxs)(i,{onClick:this.handleReset,variant:`outline`,className:`flex-1`,children:[(0,m.jsx)(o,{name:`restart`,className:`h-4 w-4 mr-2`}),e.tryAgain]}),(0,m.jsx)(i,{onClick:this.handleCopy,variant:`outline`,className:`flex-1`,children:this.state.copied?e.copied:e.copy})]})]})]})}):this.props.children}},g=e=>{let t=(0,f.c)(29),{children:n,fallback:r}=e,{t:i}=s(),a;t[0]===i?a=t[1]:(a=i(`errorBoundary.state.unknownError`),t[0]=i,t[1]=a);let o;t[2]===i?o=t[3]:(o=i(`errorBoundary.title`),t[2]=i,t[3]=o);let c;t[4]===i?c=t[5]:(c=i(`errorBoundary.description`),t[4]=i,t[5]=c);let l;t[6]===i?l=t[7]:(l=i(`errorBoundary.actions.errorDetails`),t[6]=i,t[7]=l);let u;t[8]===i?u=t[9]:(u=i(`errorBoundary.state.componentStackLabel`),t[8]=i,t[9]=u);let d;t[10]===i?d=t[11]:(d=i(`errorBoundary.actions.tryAgain`),t[10]=i,t[11]=d);let p;t[12]===i?p=t[13]:(p=i(`errorBoundary.actions.copied`),t[12]=i,t[13]=p);let g;t[14]===i?g=t[15]:(g=i(`errorBoundary.actions.copy`),t[14]=i,t[15]=g);let _;t[16]!==a||t[17]!==o||t[18]!==c||t[19]!==l||t[20]!==u||t[21]!==d||t[22]!==p||t[23]!==g?(_={unknownError:a,title:o,description:c,detailsSummary:l,componentStackLabel:u,tryAgain:d,copied:p,copy:g},t[16]=a,t[17]=o,t[18]=c,t[19]=l,t[20]=u,t[21]=d,t[22]=p,t[23]=g,t[24]=_):_=t[24];let v=_,y;return t[25]!==n||t[26]!==r||t[27]!==v?(y=(0,m.jsx)(h,{fallback:r,strings:v,children:n}),t[25]=n,t[26]=r,t[27]=v,t[28]=y):y=t[28],y};export{g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{no as i}from"./ui-z2JsXLmb.js";var a=[`user-blocking`,`visible`,`background`],o=e=>{let t={"user-blocking":{head:null,tail:null},visible:{head:null,tail:null},background:{head:null,tail:null}},n=Math.max(1,Math.floor(e.maxTasksPerFrame)),r=Math.max(1,e.frameBudgetMs),i=null,o=!1,s=0,c=e=>{let n=t[e.priority];e.previous=n.tail,n.tail?n.tail.next=e:n.head=e,n.tail=e},l=e=>{let n=t[e.priority];e.previous?e.previous.next=e.next:n.head=e.next,e.next?e.next.previous=e.previous:n.tail=e.previous,e.next=null,e.previous=null},u=()=>{for(let e of a){let n=t[e].head;if(n)return l(n),n.consumed=!0,--s,n}return null},d=()=>{i===null&&s!==0&&(i=e.requestFrame(f))},f=()=>{i=null;let t=e.now(),a=0;for(;s>0&&a<n;){let n=u();if(!n||(n.run(),a+=1,e.now()-t>=r))break}d()},p=()=>{i!==null||o||s===0||(o=!0,i=e.requestFrame(()=>{i=null,o=!1,d()}))};return{enqueue(t,n){let r={cancelled:!1,consumed:!1,next:null,previous:null,priority:n?.priority??`background`,run:t};return c(r),s+=1,!o&&i===null&&p(),()=>{r.cancelled||r.consumed||(r.cancelled=!0,l(r),--s,s===0&&(i!==null&&(e.cancelFrame(i),i=null),o=!1))}},clear(){for(let e of a){let n=t[e],r=n.head;for(;r;){let e=r.next;r.cancelled=!0,r.next=null,r.previous=null,r=e}n.head=null,n.tail=null}s=0,i!==null&&(e.cancelFrame(i),i=null),o=!1}}},s=null,c=()=>typeof window>`u`?null:s||(s=o({requestFrame:e=>window.requestAnimationFrame(e),cancelFrame:e=>window.cancelAnimationFrame(e),now:()=>performance.now(),maxTasksPerFrame:2,frameBudgetMs:6}),s),l=(e,t)=>{let n=c();return n?n.enqueue(e,t):(e(),()=>{})},u={textThrottleMs:20,markdownPaceMs:64},d={textThrottleMs:100,markdownPaceMs:128},f=e=>e===`android`?d:u,p=r(),m=e(n(),1),h=t(),g=m.createContext(!1),_=e=>{let t=(0,p.c)(3),{disabled:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,h.jsx)(g.Provider,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i},v=e=>{let t=(0,p.c)(6),{children:n,className:r,animate:a}=e,o=a===void 0||a,[s]=m.useState(o),c=s&&`animate-in fade-in slide-in-from-bottom-2 duration-300 ease-out`,l;t[0]!==r||t[1]!==c?(l=i(`w-full`,c,r),t[0]=r,t[1]=c,t[2]=l):l=t[2];let u;return t[3]!==n||t[4]!==l?(u=(0,h.jsx)(`div`,{className:l,children:n}),t[3]=n,t[4]=l,t[5]=u):u=t[5],u},y=e=>{let t=(0,p.c)(11),{children:n,className:r,skipAnimation:i,forceAnimation:a,ignoreContextDisabled:o,respectReducedMotion:s}=e,c=a!==void 0&&a,l=o!==void 0&&o,u=s!==void 0&&s,d=m.useContext(g),f;t[0]===u?f=t[1]:(f=u&&typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,t[0]=u,t[1]=f);let _=!!i||!l&&d||f,y=c;if(c){let e=!_,i;return t[2]!==n||t[3]!==r||t[4]!==e?(i=(0,h.jsx)(v,{className:r,animate:e,children:n}),t[2]=n,t[3]=r,t[4]=e,t[5]=i):i=t[5],i}if(!y||_){let e;return t[6]===n?e=t[7]:(e=(0,h.jsx)(h.Fragment,{children:n}),t[6]=n,t[7]=e),e}let b;return t[8]!==n||t[9]!==r?(b=(0,h.jsx)(v,{className:r,children:n}),t[8]=n,t[9]=r,t[10]=b):b=t[10],b};export{l as i,y as n,f as r,_ as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./platform-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./platform-CNdx57HN.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{n as i}from"./vendor-react-BkccXcWz.js";import{r as a}from"./vendor-reactuses-core-DjKFMfz7.js";import{t as o}from"./ui-z2JsXLmb.js";import{t as s}from"./i18n-BU8XOKjS.js";import{i as c,t as l}from"./MobileHtmlNetworkBoundary-DXkpR8iy.js";function u(e,t){return JSON.stringify(e.filter(({id:e})=>t===void 0||e===t).map(({id:e,status:t,revision:n})=>[e,t,n]))}var d=i(),f=e(r(),1),p=n();function m(e){let t=(0,d.c)(4),{target:n}=e,r=f.useRef(null),i,a;t[0]===n?(i=t[1],a=t[2]):(i=()=>(r.current?.append(n),()=>{n.remove()}),a=[n],t[0]=n,t[1]=i,t[2]=a),f.useLayoutEffect(i,a);let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,p.jsx)(`div`,{ref:r,className:`relative z-30 flex items-center gap-1 empty:hidden [&>div]:flex [&>div]:items-center [&>div]:gap-1`,"data-gui-preview-actions":!0}),t[3]=o):o=t[3],o}var h=f.memo(function(e){let n=(0,d.c)(2),r;return n[0]===e?r=n[1]:(r=t()?(0,p.jsx)(l,{connect:!1,children:()=>(0,p.jsx)(g,{...e})}):(0,p.jsx)(g,{...e}),n[0]=e,n[1]=r),r});function g({host:e,contributionKey:t,kind:n,revision:r,fallback:i,actions:l}){let{t:u}=s(),d=f.useRef(null),[h]=f.useState(()=>document.createElement(`div`)),g=l??h,[_,v]=f.useState(null),y=i!=null,[b,x]=f.useState(y),S=a(e=>{o.error(e instanceof Error?e.message:u(`guiPlugins.error`))});return f.useLayoutEffect(()=>{let r=d.current;if(!r)return;v(null),x(y);let i,a=!1,o=0,s=()=>{if(!a)try{i=n===`panel`?e.mountPanel(t,r,g):n===`page`?e.mountPage(t,r):e.mountSettings(t,r)}catch(e){r.replaceChildren(),v({cause:e})}finally{x(!1)}};return y?o=requestAnimationFrame(()=>{o=requestAnimationFrame(s)}):s(),()=>{a=!0,cancelAnimationFrame(o);try{i?.()}catch(e){S(e)}finally{r.replaceChildren()}}},[e,t,n,r,y,S,g]),(0,p.jsxs)(`div`,{className:`relative flex flex-1 flex-col ${b?`min-h-[240px]!`:`min-h-0`}`,children:[n===`panel`&&!l?(0,p.jsx)(`div`,{className:`absolute right-3 top-3 z-30 flex items-center gap-1`,children:(0,p.jsx)(m,{target:h})}):null,_?(0,p.jsx)(c,{message:_.cause instanceof Error?_.cause.message:u(`guiPlugins.error`)}):null,(0,p.jsx)(`div`,{ref:d,className:`min-h-0 min-w-0 flex-1 overflow-auto${n===`page`?` overlay-scrollbar-target`:``}${_?` hidden`:``}`,"data-gui-plugin-mount":n}),b?(0,p.jsx)(`div`,{className:`absolute inset-0 flex`,children:i}):null]})}export{m as n,u as r,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./platform-CNdx57HN.js";import{ot as n,st as r}from"./vendor-base-ui-wXsskyKm.js";import{n as i}from"./vendor-react-BkccXcWz.js";import{r as a}from"./useUIStore-P32bzAJc.js";import{Yn as o,no as s}from"./ui-z2JsXLmb.js";import{n as c}from"./Icon-CMNOrIAp.js";import{t as l}from"./i18n-BU8XOKjS.js";import{a as u}from"./react-CPBNl-S9.js";import{i as d}from"./MobileHtmlNetworkBoundary-DXkpR8iy.js";import{t as f}from"./GuiPluginMount-JWmLTeLO.js";import{t as p}from"./ErrorBoundary-B4CbFTTY.js";import{i as m}from"./pages-CYkE04ml.js";var h=e(r(),1),g=i(),_=n();function v(e){let t=(0,g.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===r?a=t[5]:(a=s(`relative isolate flex min-h-0 flex-1 flex-col overflow-hidden rounded-xl bg-background shadow-sm [--background:oklch(from_var(--surface-background)_min(1,calc(l_+_0.015))_c_h)] dark:[--background:color-mix(in_srgb,var(--surface-foreground)_4%,var(--surface-background))]`,r),t[4]=r,t[5]=a);let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsx)(`span`,{"aria-hidden":`true`,"data-workspace-surface-ring":!0,className:`pointer-events-none absolute inset-0 z-50 rounded-[inherit] ring-1 ring-inset ring-[var(--interactive-border)]`}),t[6]=o):o=t[6];let c;return t[7]!==n||t[8]!==i||t[9]!==a?(c=(0,_.jsxs)(`section`,{...i,"data-workspace-surface":!0,className:a,children:[n,o]}),t[7]=n,t[8]=i,t[9]=a,t[10]=c):c=t[10],c}function y(){let e=(0,g.c)(33),{host:n,snapshot:r,inventory:i,error:s,loading:y,requested:S,requestLoad:C,refresh:w}=u(),{t:T}=l(),E=a(x),D=a(b),O,k;e[0]!==C||e[1]!==S?(O=()=>{S||C()},k=[S,C],e[0]=C,e[1]=S,e[2]=O,e[3]=k):(O=e[2],k=e[3]),h.useEffect(O,k);let A=r.pages,j,M,N,P,F,I;if(e[4]!==s||e[5]!==n||e[6]!==i||e[7]!==D||e[8]!==E||e[9]!==y||e[10]!==w||e[11]!==S||e[12]!==r.pages||e[13]!==r.plugins||e[14]!==T){I=Symbol.for(`react.early_return_sentinel`);bb0:{let a;e[21]===E?a=e[22]:(a=e=>e.key===E,e[21]=E,e[22]=a);let l=A.find(a),u=r.plugins.find(e=>e.id===l?.pluginId)?.revision,h=m(E),g=r.plugins.some(e=>e.id===h&&e.status===`failed`)||i.some(e=>e.id===h&&e.error)||!l&&!!s;if(D){let r=!t()||s===`unsupported`?(0,_.jsx)(d,{message:T(`guiPlugins.mobile.unsupported`)}):n&&l?(0,_.jsx)(p,{fallback:(0,_.jsx)(d,{message:T(`guiPlugins.error`)}),children:(0,_.jsx)(f,{host:n,kind:`page`,contributionKey:l.key,revision:u})},JSON.stringify([l.key,u])):g?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(d,{message:T(s===`relay_required`?`guiPlugins.mobile.relayRequired`:s===`relay_unavailable`?`guiPlugins.mobile.networkFailed`:`guiPlugins.error`)}),s?(0,_.jsx)(o,{className:`m-4 self-center`,onClick:w,children:T(`guiPlugins.mobile.retry`)}):null]}):y||!S?(0,_.jsxs)(`div`,{role:`status`,className:`flex min-h-0 flex-1 items-center justify-center gap-2 text-muted-foreground`,children:[(0,_.jsx)(c,{name:`loader-4`,className:`size-4 animate-spin motion-reduce:animate-none`}),T(`guiPlugins.loading`)]}):null,i;e[23]===r?i=e[24]:(i=(0,_.jsx)(`div`,{"data-gui-plugin-page":!0,className:`flex min-h-0 min-w-0 flex-1 flex-col`,"data-mobile-edge-to-edge-preview":`true`,children:r}),e[23]=r,e[24]=i),I=i;break bb0}P=!0,F=`flex h-full min-h-0 min-w-0 flex-col py-1.5 pl-1 pr-1.5 text-foreground`,j=v,M=!0,N=n&&l?(0,_.jsx)(p,{fallback:(0,_.jsx)(d,{message:T(`guiPlugins.error`)}),children:(0,_.jsx)(f,{host:n,kind:`page`,contributionKey:l.key,revision:u})},JSON.stringify([l.key,u])):g?(0,_.jsx)(d,{message:T(`guiPlugins.error`)}):null}e[4]=s,e[5]=n,e[6]=i,e[7]=D,e[8]=E,e[9]=y,e[10]=w,e[11]=S,e[12]=r.pages,e[13]=r.plugins,e[14]=T,e[15]=j,e[16]=M,e[17]=N,e[18]=P,e[19]=F,e[20]=I}else j=e[15],M=e[16],N=e[17],P=e[18],F=e[19],I=e[20];if(I!==Symbol.for(`react.early_return_sentinel`))return I;let L;e[25]!==j||e[26]!==M||e[27]!==N?(L=(0,_.jsx)(j,{"data-gui-plugin-page-surface":M,children:N}),e[25]=j,e[26]=M,e[27]=N,e[28]=L):L=e[28];let R;return e[29]!==P||e[30]!==F||e[31]!==L?(R=(0,_.jsx)(`div`,{"data-gui-plugin-page":P,className:F,children:L}),e[29]=P,e[30]=F,e[31]=L,e[32]=R):R=e[32],R}function b(e){return e.isMobile}function x(e){return e.activeGuiPage}export{v as n,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{r as i}from"./useUIStore-P32bzAJc.js";import{Yn as a}from"./ui-z2JsXLmb.js";import{t as o}from"./i18n-BU8XOKjS.js";import{a as s}from"./react-CPBNl-S9.js";import{r as c}from"./device-CtdJ8KBJ.js";import{n as l,r as u,t as d}from"./GuiPluginMount-JWmLTeLO.js";import{t as f}from"./GuiPluginWindow-B-6WWulE.js";import{t as p}from"./GuiPluginPage-BB6qitNb.js";import{i as m}from"./pages-CYkE04ml.js";var h=r(),g=e(n(),1),_=t();function v(){let e=(0,h.c)(57),{host:t,snapshot:n,inventory:r,error:v,loading:S,requested:C}=s(),{t:w}=o(),{isMobile:T}=c(),E=i(x),D;if(e[0]!==E||e[1]!==n.pages){let t;e[3]===E?t=e[4]:(t=e=>e.key===E,e[3]=E,e[4]=t),D=n.pages.find(t),e[0]=E,e[1]=n.pages,e[2]=D}else D=e[2];let O=D,k;e[5]===E?k=e[6]:(k=m(E),e[5]=E,e[6]=k);let A=k,j;e[7]!==v||e[8]!==r||e[9]!==A||e[10]!==n.plugins?(j=!!v||n.plugins.some(e=>e.id===A&&e.status===`failed`)||r.some(e=>e.id===A&&e.error),e[7]=v,e[8]=r,e[9]=A,e[10]=n.plugins,e[11]=j):j=e[11];let M=j,N,P;e[12]!==M||e[13]!==T||e[14]!==S||e[15]!==O||e[16]!==E||e[17]!==C?(N=()=>{T&&E&&C&&!S&&!O&&!M&&i.getState().closeGuiPage()},P=[T,E,C,S,O,M],e[12]=M,e[13]=T,e[14]=S,e[15]=O,e[16]=E,e[17]=C,e[18]=N,e[19]=P):(N=e[18],P=e[19]),g.useEffect(N,P);let[F]=g.useState(b),I,L,R,z,B,V,H,U;if(e[20]!==F||e[21]!==t||e[22]!==T||e[23]!==O?.title||e[24]!==E||e[25]!==n.activePanel||e[26]!==n.panels||e[27]!==n.plugins||e[28]!==w){let r;e[37]===n.activePanel?r=e[38]:(r=e=>e.key===n.activePanel&&!e.inline,e[37]=n.activePanel,e[38]=r);let i=n.panels.find(r);e[39]!==T||e[40]!==O?.title||e[41]!==E||e[42]!==w?(R=T&&E?(0,_.jsx)(f,{id:`gui-plugin-page`,open:!0,title:O?.title??w(`guiPlugins.title`),onClose:y,children:(0,_.jsx)(p,{})}):null,e[39]=T,e[40]=O?.title,e[41]=E,e[42]=w,e[43]=R):R=e[43],I=f,z=`gui-plugin-panel`,B=!!(t&&i),V=i?.title??w(`guiPlugins.title`),e[44]===t?H=e[45]:(H=()=>t?.hidePanel(),e[44]=t,e[45]=H),U=T&&i?(0,_.jsx)(l,{target:F}):null,L=t&&i?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(`div`,{className:`flex shrink-0 flex-wrap gap-1`,"aria-label":w(`guiPlugins.panels`),children:n.panels.map(e=>(0,_.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,_.jsx)(a,{variant:`chip`,size:`sm`,"aria-pressed":e.key===i.key,onClick:()=>t.selectPanel(e.key),className:`max-w-64 truncate`,children:e.title}),(0,_.jsx)(a,{variant:`ghost`,size:`xs`,"aria-label":w(`guiPlugins.closePanel`,{title:e.title}),onClick:()=>t.closePanel(e.key),children:w(`guiPlugins.close`)})]},e.key))}),(0,_.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col`,"data-mobile-edge-to-edge-preview":`true`,children:(0,_.jsx)(d,{host:t,contributionKey:i.key,kind:`panel`,actions:T?F:void 0,revision:u(n.plugins,i.pluginId)})})]}):null,e[20]=F,e[21]=t,e[22]=T,e[23]=O?.title,e[24]=E,e[25]=n.activePanel,e[26]=n.panels,e[27]=n.plugins,e[28]=w,e[29]=I,e[30]=L,e[31]=R,e[32]=z,e[33]=B,e[34]=V,e[35]=H,e[36]=U}else I=e[29],L=e[30],R=e[31],z=e[32],B=e[33],V=e[34],H=e[35],U=e[36];let W;e[46]!==I||e[47]!==L||e[48]!==z||e[49]!==B||e[50]!==V||e[51]!==H||e[52]!==U?(W=(0,_.jsx)(I,{id:z,open:B,title:V,onClose:H,actions:U,children:L}),e[46]=I,e[47]=L,e[48]=z,e[49]=B,e[50]=V,e[51]=H,e[52]=U,e[53]=W):W=e[53];let G;return e[54]!==R||e[55]!==W?(G=(0,_.jsxs)(_.Fragment,{children:[R,W]}),e[54]=R,e[55]=W,e[56]=G):G=e[56],G}function y(){return i.getState().closeGuiPage()}function b(){return document.createElement(`div`)}function x(e){return e.activeMainTab===`plugin`?e.activeGuiPage:null}export{v as GuiPluginSurface};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{Yn as i,no as a}from"./ui-z2JsXLmb.js";import{n as o}from"./Icon-CMNOrIAp.js";import{a as s}from"./react-CPBNl-S9.js";import{t as c}from"./icons-C25QjTQy.js";var l=r(),u=e(n(),1),d=t();function f(e){let t=(0,l.c)(28),{item:n,host:r,mobile:s,sidebar:f}=e,[p,m]=(0,u.useState)(),h;t[0]===n.icon?h=t[1]:(h=c(n.icon),t[0]=n.icon,t[1]=h);let g=h,_;t[2]!==p||t[3]!==n.icon?(_=n.icon?.startsWith(`data:image/`)&&n.icon!==p?n.icon:void 0,t[2]=p,t[3]=n.icon,t[4]=_):_=t[4];let v=_,y=!!(g||v),b;t[5]!==g||t[6]!==v||t[7]!==n.busy||t[8]!==f?(b=n.busy?(0,d.jsx)(o,{name:`loader-4`,className:a(f?`size-4`:`size-3.5`,`shrink-0 animate-spin motion-reduce:animate-none`)}):g?(0,d.jsx)(o,{name:g,className:f?`size-4 shrink-0`:`size-3.5`}):v?(0,d.jsx)(`img`,{src:v,alt:``,draggable:!1,className:a(f?`size-4`:`size-3.5`,`shrink-0 object-contain`),onError:()=>m(v)},v):f?(0,d.jsx)(`span`,{"aria-hidden":`true`,className:`size-4 shrink-0`}):null,t[5]=g,t[6]=v,t[7]=n.busy,t[8]=f,t[9]=b):b=t[9];let x;t[10]!==y||t[11]!==n.label||t[12]!==f?(x=f||!y?(0,d.jsx)(`span`,{className:f?`truncate`:`max-w-24 truncate`,children:n.label}):null,t[10]=y,t[11]=n.label,t[12]=f,t[13]=x):x=t[13];let S;t[14]!==b||t[15]!==x?(S=(0,d.jsxs)(d.Fragment,{children:[b,x]}),t[14]=b,t[15]=x,t[16]=S):S=t[16];let C=S,w;return t[17]!==C||t[18]!==r||t[19]!==n.actionable||t[20]!==n.busy||t[21]!==n.key||t[22]!==n.label||t[23]!==n.pressed||t[24]!==n.title||t[25]!==s||t[26]!==f?(w=n.actionable?(0,d.jsx)(i,{size:f||s?`sm`:`xs`,variant:f?`ghost`:`default`,className:a(`aria-pressed:bg-interactive-selection aria-pressed:text-interactive-selection-foreground`,f&&`w-full justify-start px-2 font-normal`,f&&s&&`h-11`),title:n.label,"aria-label":n.title??n.label,"aria-pressed":n.pressed,"aria-busy":!!n.busy,disabled:!!n.busy,onClick:()=>void r.runTitlebarItem(n.key),children:C}):(0,d.jsx)(`span`,{role:`status`,title:n.label,"aria-label":n.title??n.label,"aria-busy":!!n.busy,className:a(`inline-flex shrink-0 items-center gap-1 rounded-md px-2 py-1 text-muted-foreground`,f?`w-full text-sm`:`bg-muted text-xs`),children:C}),t[17]=C,t[18]=r,t[19]=n.actionable,t[20]=n.busy,t[21]=n.key,t[22]=n.label,t[23]=n.pressed,t[24]=n.title,t[25]=s,t[26]=f,t[27]=w):w=t[27],w}function p(e){let t=(0,l.c)(14),{mobile:n,sidebar:r}=e,i=n!==void 0&&n,a=r!==void 0&&r,{host:o,snapshot:c}=s();if(!o||c.titlebarItems.length===0)return null;let u=!a||void 0,p=a||void 0,m=a?`app-region-no-drag space-y-0.5`:`app-region-no-drag flex min-w-0 max-w-32 items-center gap-1 overflow-x-auto scrollbar-hidden`,h;if(t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==c.titlebarItems){let e;t[5]!==o||t[6]!==i||t[7]!==a?(e=e=>(0,d.jsx)(f,{item:e,host:o,mobile:i,sidebar:a},e.key),t[5]=o,t[6]=i,t[7]=a,t[8]=e):e=t[8],h=c.titlebarItems.map(e),t[0]=o,t[1]=i,t[2]=a,t[3]=c.titlebarItems,t[4]=h}else h=t[4];let g;return t[9]!==u||t[10]!==p||t[11]!==m||t[12]!==h?(g=(0,d.jsx)(`div`,{"data-gui-titlebar-items":u,"data-gui-sidebar-items":p,className:m,children:h}),t[9]=u,t[10]=p,t[11]=m,t[12]=h,t[13]=g):g=t[13],g}export{p as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ot as e}from"./vendor-base-ui-wXsskyKm.js";import{n as t}from"./vendor-react-BkccXcWz.js";import{t as n}from"./i18n-
|
|
1
|
+
import{ot as e}from"./vendor-base-ui-wXsskyKm.js";import{n as t}from"./vendor-react-BkccXcWz.js";import{t as n}from"./i18n-BU8XOKjS.js";import{t as r}from"./MobileResizableSheet-Ddf0s-Dp.js";import{a as i,n as a,o,t as s}from"./dialog-BPtWiCtF.js";import{r as c}from"./device-CtdJ8KBJ.js";var l=t(),u=e();function d(e){let t=(0,l.c)(24),{id:d,open:f,title:p,onClose:m,children:h,actions:g}=e,{isMobile:_}=c(),{t:v}=n(),y;t[0]===m?y=t[1]:(y=e=>{e||m()},t[0]=m,t[1]=y);let b=y;if(_){let e;t[2]===v?e=t[3]:(e=v(`guiPlugins.close`),t[2]=v,t[3]=e);let n;t[4]===v?n=t[5]:(n=v(`guiPlugins.resize`),t[4]=v,t[5]=n);let i;return t[6]!==g||t[7]!==h||t[8]!==d||t[9]!==b||t[10]!==f||t[11]!==e||t[12]!==n||t[13]!==p?(i=(0,u.jsx)(r,{id:d,open:f,onOpenChange:b,title:p,ariaLabel:p,closeAriaLabel:e,resizeAriaLabel:n,trailing:g,initiallyExpanded:!0,compactHeader:!0,showCloseButton:!1,children:h}),t[6]=g,t[7]=h,t[8]=d,t[9]=b,t[10]=f,t[11]=e,t[12]=n,t[13]=p,t[14]=i):i=t[14],i}let x;t[15]===p?x=t[16]:(x=(0,u.jsx)(i,{children:(0,u.jsx)(o,{children:p})}),t[15]=p,t[16]=x);let S;t[17]!==h||t[18]!==x?(S=(0,u.jsxs)(a,{className:`flex h-[80dvh] max-w-5xl flex-col overflow-hidden`,"aria-describedby":void 0,children:[x,h]}),t[17]=h,t[18]=x,t[19]=S):S=t[19];let C;return t[20]!==b||t[21]!==f||t[22]!==S?(C=(0,u.jsx)(s,{open:f,onOpenChange:b,children:S}),t[20]=b,t[21]=f,t[22]=S,t[23]=C):C=t[23],C}export{d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{no as r}from"./ui-z2JsXLmb.js";var i=e(n(),1),a={add:`<path d="M5 12h14" /> <path d="M12 5v14" />`,"add-circle":`<circle cx="12" cy="12" r="10" /> <path d="M8 12h8" /> <path d="M12 8v8" />`,"ai-agent":`<rect x="4" y="7.5" width="16" height="13" rx="4.5" /><path d="M12 7.5V4.75" /><circle cx="12" cy="3.5" r="1.25" /><path d="M1.75 12.5v3M22.25 12.5v3M9 12.5v2M15 12.5v2" />`,"ai-agent-fill":`<path d="M12 8V4H8" fill="currentColor"/> <rect width="16" height="12" x="4" y="8" rx="2" /> <path d="M2 14h2" fill="currentColor"/> <path d="M20 14h2" fill="currentColor"/> <path d="M15 13v2" fill="currentColor"/> <path d="M9 13v2" fill="currentColor"/>`,"ai-generate-2":`<path d="m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72" /> <path d="m14 7 3 3" /> <path d="M5 6v4" /> <path d="M19 14v4" /> <path d="M10 2v2" /> <path d="M7 8H3" /> <path d="M21 16h-4" /> <path d="M11 3H9" />`,alert:`<circle cx="12" cy="12" r="10" /> <line x1="12" x2="12" y1="8" y2="12" /> <line x1="12" x2="12.01" y1="16" y2="16" />`,"align-justify":`<path d="M3 5h18" /> <path d="M3 12h18" /> <path d="M3 19h18" />`,apple:`<path d="M12 6.528V3a1 1 0 0 1 1-1h0" /> <path d="M18.237 21A15 15 0 0 0 22 11a6 6 0 0 0-10-4.472A6 6 0 0 0 2 11a15.1 15.1 0 0 0 3.763 10 3 3 0 0 0 3.648.648 5.5 5.5 0 0 1 5.178 0A3 3 0 0 0 18.237 21" />`,"apps-2-ai":`<rect width="7" height="7" x="3" y="3" rx="1" /> <rect width="7" height="7" x="14" y="3" rx="1" /> <rect width="7" height="7" x="14" y="14" rx="1" /> <rect width="7" height="7" x="3" y="14" rx="1" />`,archive:`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" /> <path d="M10 12h4" />`,"archive-stack":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" /> <path d="M10 12h4" />`,"arrow-down":`<path d="M12 5v14" /> <path d="m19 12-7 7-7-7" />`,"arrow-down-s":`<path d="m6 9 6 6 6-6" />`,"arrow-go-back":`<path d="M9 14 4 9l5-5" /><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H12" />`,"arrow-go-forward":`<path d="m15 14 5-5-5-5" /> <path d="M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13" />`,"arrow-left":`<path d="m12 19-7-7 7-7" /> <path d="M19 12H5" />`,"arrow-left-long":`<path d="m12 19-7-7 7-7" /> <path d="M19 12H5" />`,"arrow-left-right":`<path d="M8 7H3v5" /><path d="m3 7 7 7" /><path d="M16 17h5v-5" /><path d="m21 17-7-7" />`,"arrow-left-s":`<path d="m15 18-6-6 6-6" />`,"arrow-right":`<path d="M5 12h14" /> <path d="m12 5 7 7-7 7" />`,"arrow-right-circle":`<circle cx="12" cy="12" r="10" /> <path d="m12 16 4-4-4-4" /> <path d="M8 12h8" />`,"arrow-right-s":`<path d="m9 18 6-6-6-6" />`,"arrow-right-to-line":`<path d="M17 12H3" /> <path d="m11 18 6-6-6-6" /> <path d="M21 5v14" />`,"arrow-up":`<path d="m5 12 7-7 7 7" /> <path d="M12 19V5" />`,"arrow-up-double":`<path d="m17 11-5-5-5 5" /> <path d="m17 18-5-5-5 5" />`,"arrow-up-s":`<path d="m18 15-6-6-6 6" />`,"attachment-2":`<path d="m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551" />`,"bar-chart-2":`<path d="M3 3v16a2 2 0 0 0 2 2h16" /> <path d="M18 17V9" /> <path d="M13 17V5" /> <path d="M8 17v-3" />`,"bar-chart-box":`<path d="M3 3v16a2 2 0 0 0 2 2h16" /> <path d="M18 17V9" /> <path d="M13 17V5" /> <path d="M8 17v-3" />`,book:`<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />`,"book-open":`<path d="M12 7v14" /> <path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z" />`,booklet:`<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" />`,brain:`<path d="M12 18V5" /> <path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4" /> <path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" /> <path d="M17.997 5.125a4 4 0 0 1 2.526 5.77" /> <path d="M18 18a4 4 0 0 0 2-7.464" /> <path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" /> <path d="M6 18a4 4 0 0 1-2-7.464" /> <path d="M6.003 5.125a4 4 0 0 0-2.526 5.77" />`,"brain-ai-3":`<path d="M12 18V5" /> <path d="M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4" /> <path d="M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5" /> <path d="M17.997 5.125a4 4 0 0 1 2.526 5.77" /> <path d="M18 18a4 4 0 0 0 2-7.464" /> <path d="M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" /> <path d="M6 18a4 4 0 0 1-2-7.464" /> <path d="M6.003 5.125a4 4 0 0 0-2.526 5.77" />`,briefcase:`<path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16" /> <rect width="20" height="14" x="2" y="6" rx="2" />`,bug:`<path d="M12 20v-9" /> <path d="M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z" /> <path d="M14.12 3.88 16 2" /> <path d="M21 21a4 4 0 0 0-3.81-4" /> <path d="M21 5a4 4 0 0 1-3.55 3.97" /> <path d="M22 13h-4" /> <path d="M3 21a4 4 0 0 1 3.81-4" /> <path d="M3 5a4 4 0 0 0 3.55 3.97" /> <path d="M6 13H2" /> <path d="m8 2 1.88 1.88" /> <path d="M9 7.13V6a3 3 0 1 1 6 0v1.13" />`,calendar:`<path d="M8 2v4" /> <path d="M16 2v4" /> <rect width="18" height="18" x="3" y="4" rx="2" /> <path d="M3 10h18" />`,"calendar-schedule":`<path d="M16 14v2.2l1.6 1" /> <path d="M16 2v4" /> <path d="M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5" /> <path d="M3 10h5" /> <path d="M8 2v4" /> <circle cx="16" cy="16" r="6" />`,camera:`<path d="M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" /> <circle cx="12" cy="13" r="3" />`,changes:`<path d="M6 8h12M12 2v12M6 21h12" />`,"chat-1":`<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" />`,"chat-3":`<path d="M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z" />`,"chat-4":`<path d="M12 3a9 9 0 0 1 7.45 14.05L21 21l-4.05-1.55A9 9 0 1 1 12 3Z" />`,"chat-ai-3":`<path d="M12 6V2H8" /> <path d="M15 11v2" /> <path d="M2 12h2" /> <path d="M20 12h2" /> <path d="M20 16a2 2 0 0 1-2 2H8.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 4 20.286V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2z" /> <path d="M9 11v2" />`,"chat-history":`<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" /> <path d="M12 7v5l4 2" />`,"chat-new":`<path d="M11.5 4.5H9A4.5 4.5 0 0 0 4.5 9v6.5A4.5 4.5 0 0 0 9 20h6.5a4.5 4.5 0 0 0 4.5-4.5V13" /><path d="m10 14.25.6-1.8a2 2 0 0 1 .48-.78l6.62-6.62a1.91 1.91 0 0 1 2.7 2.7l-6.62 6.62a2 2 0 0 1-.78.48l-1.8.6a.95.95 0 0 1-1.2-1.2Z" />`,"chat-thread":`<path d="M10.5 7C11.3 4.9 13.1 3.5 15.25 3.5c3.45 0 6.25 2.45 6.25 5.5 0 1.13-.38 2.18-1.03 3.06l.58 2.14-2.3-.75c-.4.18-.8.32-1.2.43" /><path d="M8.5 8.25c-3.6 0-6.5 2.55-6.5 5.75 0 1.21.42 2.33 1.13 3.25l-.63 2.27 2.48-.8c1.04.56 2.24.88 3.52.88 3.6 0 6.5-2.55 6.5-5.75S12.1 8.25 8.5 8.25Z" />`,check:`<path d="M20 6 9 17l-5-5" />`,"check-double":`<path d="M18 6 7 17l-5-5" /> <path d="m22 10-7.5 7.5L13 16" />`,checkbox:`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="m9 12 2 2 4-4" />`,"checkbox-blank":`<rect width="18" height="18" x="3" y="3" rx="2" />`,"checkbox-blank-circle-fill":`<circle cx="12" cy="12" r="10" fill="currentColor"/>`,"checkbox-circle":`<circle cx="12" cy="12" r="10" /> <path d="m9 12 2 2 4-4" />`,"checkbox-multiple":`<path d="m12 15 2 2 4-4" /> <rect width="14" height="14" x="8" y="8" rx="2" ry="2" /> <path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />`,"circle-dashed":`<path d="M10.1 2.182a10 10 0 0 1 3.8 0" /> <path d="M13.9 21.818a10 10 0 0 1-3.8 0" /> <path d="M17.609 3.721a10 10 0 0 1 2.69 2.7" /> <path d="M2.182 13.9a10 10 0 0 1 0-3.8" /> <path d="M20.279 17.609a10 10 0 0 1-2.7 2.69" /> <path d="M21.818 10.1a10 10 0 0 1 0 3.8" /> <path d="M3.721 6.391a10 10 0 0 1 2.7-2.69" /> <path d="M6.391 20.279a10 10 0 0 1-2.69-2.7" />`,clipboard:`<rect width="8" height="4" x="8" y="2" rx="1" ry="1" /> <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" />`,close:`<path d="M18 6 6 18" /> <path d="m6 6 12 12" />`,"close-circle":`<circle cx="12" cy="12" r="10" /> <path d="m15 9-6 6" /> <path d="m9 9 6 6" />`,cloud:`<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" />`,"cloud-off":`<path d="M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057" /> <path d="M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78" /> <path d="m2 2 20 20" />`,code:`<path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" />`,"code-ai":`<path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" />`,"code-box":`<path d="m18 16 4-4-4-4" /> <path d="m6 8-4 4 4 4" /> <path d="m14.5 4-5 16" />`,"code-sslash":`<path d="m16 18 6-6-6-6" /> <path d="m8 6-6 6 6 6" />`,"collapse-diagonal":`<path d="m14 10 7-7" /> <path d="M20 10h-6V4" /> <path d="m3 21 7-7" /> <path d="M4 14h6v6" />`,command:`<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />`,"compass-3":`<circle cx="12" cy="12" r="10" /> <path d="m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z" />`,computer:`<rect width="20" height="14" x="2" y="3" rx="2" /> <line x1="8" x2="16" y1="21" y2="21" /> <line x1="12" x2="12" y1="17" y2="21" />`,"connection-lan":`<g transform="scale(.75)" stroke-width="1.65"><rect x="5" y="18" width="22" height="9" rx="4"/><path d="M10 18v-4m12 4v-4M10 8a9 9 0 0 1 12 0m-9 3a4.7 4.7 0 0 1 6 0M10 22.5h3m8 0h1"/><circle cx="16" cy="14" r="1" fill="currentColor" stroke="none"/></g>`,"connection-local":`<g transform="scale(.75)" stroke-width="1.65"><rect x="6" y="5" width="20" height="17" rx="4"/><path d="M12 26h8m-4-4v4M3 27h26M10 18h12"/></g>`,"connection-relay":`<g transform="scale(.75)" stroke-width="1.65"><path d="M9 21H8a5 5 0 0 1-1-9.9A7.2 7.2 0 0 1 20.8 9a5.9 5.9 0 0 1 4 11.5M11 19h10m-3-3 3 3-3 3M21 25H11m3-3-3 3 3 3"/><path d="m25 4 .5 1.5L27 6l-1.5.5L25 8l-.5-1.5L23 6l1.5-.5Z" fill="currentColor" stroke="none"/></g>`,"connection-ssh":`<g transform="scale(.75)" stroke-width="1.65"><path d="M18 27H9a5 5 0 0 1-5-5V11a5 5 0 0 1 5-5h14a5 5 0 0 1 5 5v8M4 12h24m-19-3h.1m3 0h.1m-3 7 3.5 3L9 22m7 0h2M23 24v-2a2 2 0 0 1 4 0v2"/><rect x="21.5" y="24" width="7" height="5" rx="1.6"/></g>`,"contract-up-down":`<path d="m7 20 5-5 5 5" /> <path d="m7 4 5 5 5-5" />`,"corner-down-left":`<path d="M20 4v7a4 4 0 0 1-4 4H4" /> <path d="m9 10-5 5 5 5" />`,"corner-up-left":`<path d="M20 20v-7a4 4 0 0 0-4-4H4" /> <path d="M9 14 4 9l5-5" />`,cursor:`<path d="M12.586 12.586 19 19" /> <path d="M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z" />`,"database-2":`<ellipse cx="12" cy="5" rx="9" ry="3" /> <path d="M3 5V19A9 3 0 0 0 21 19V5" /> <path d="M3 12A9 3 0 0 0 21 12" />`,"delete-back":`<path d="M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z" /> <path d="m12 9 6 6" /> <path d="m18 9-6 6" />`,"delete-bin":`<path d="M10 11v6" /> <path d="M14 11v6" /> <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" /> <path d="M3 6h18" /> <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />`,"device-android":`<path d="m7 9-2-3.5M17 9l2-3.5" /><path d="M2 18a10 10 0 0 1 20 0H2Z" /><path d="M7.5 14h.01M16.5 14h.01" />`,"device-apple":`<path d="M12.9 6.3c.9-.1 2-.6 2.6-1.5.6-.8.9-1.9.8-2.8-1 .1-2.1.7-2.8 1.5-.6.7-1 1.8-.9 2.8Z" /><path d="M16.4 12.6c0-2 1.6-3 1.7-3.1-.9-1.4-2.4-1.6-2.9-1.6-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.6-.7-1.3 0-2.6.8-3.3 2-1.4 2.5-.4 6.1 1 8.1.7 1 1.5 2.1 2.5 2 1-.04 1.4-.6 2.6-.6s1.5.6 2.6.6c1.1 0 1.8-1 2.5-2 .8-1.2 1.1-2.3 1.1-2.4-.02-.01-2.2-.9-2.2-3z" />`,"device-cli":`<rect x="2.5" y="3.5" width="19" height="17" rx="4" /><path d="m8 10 2.25 2L8 14" /><path d="M12.75 14h3.5" />`,"device-desktop":`<rect x="2.5" y="4" width="19" height="12.5" rx="3.5" /><path d="M9 20h6" /><path d="M12 16.5V20" />`,"device-ios":`<path d="M12.9 6.3c.9-.1 2-.6 2.6-1.5.6-.8.9-1.9.8-2.8-1 .1-2.1.7-2.8 1.5-.6.7-1 1.8-.9 2.8Z" /><path d="M16.4 12.6c0-2 1.6-3 1.7-3.1-.9-1.4-2.4-1.6-2.9-1.6-1.2-.1-2.4.7-3 .7-.6 0-1.6-.7-2.6-.7-1.3 0-2.6.8-3.3 2-1.4 2.5-.4 6.1 1 8.1.7 1 1.5 2.1 2.5 2 1-.04 1.4-.6 2.6-.6s1.5.6 2.6.6c1.1 0 1.8-1 2.5-2 .8-1.2 1.1-2.3 1.1-2.4-.02-.01-2.2-.9-2.2-3z" />`,"device-linux":`<rect x="2.5" y="3.5" width="19" height="17" rx="4" /><path d="m8 10 2.25 2L8 14" /><path d="M12.75 14h3.5" />`,"device-macos":`<rect x="2.5" y="4" width="19" height="12.5" rx="3.5" /><path d="M9 20h6" /><path d="M12 16.5V20" />`,"device-tablet":`<rect x="4.5" y="2.5" width="15" height="19" rx="4" /><path d="M11.5 18h1" />`,"device-windows":`<rect x="2.5" y="4" width="19" height="12.5" rx="3.5" /><path d="M9 20h6" /><path d="M12 16.5V20" />`,"devices-connected":`<path d="M13 17H5a2.5 2.5 0 0 1-2.5-2.5v-8A2.5 2.5 0 0 1 5 4h12a2.5 2.5 0 0 1 2.5 2.5V8M8 20h4M10 17v3" /><rect x="15" y="10" width="7" height="11" rx="2" /><path d="M18 18.5h1" />`,"discord-fill":`<path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" fill="currentColor"/>`,"donut-chart":`<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" /> <path d="M21.21 15.89A10 10 0 1 1 8 2.83" />`,"donut-chart-fill":`<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" fill="currentColor"/> <path d="M21.21 15.89A10 10 0 1 1 8 2.83" fill="currentColor"/>`,download:`<path d="M12 15V3" /> <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /> <path d="m7 10 5 5 5-5" />`,"download-2-fill":`<path d="M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM14 9H19L12 16L5 9H10V3H14V9Z" fill="currentColor" stroke="none"/>`,"download-cloud":`<path d="M12 13v8l-4-4" /> <path d="m12 21 4-4" /> <path d="M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284" />`,"drag-move-2":`<circle cx="9" cy="12" r="1" /> <circle cx="9" cy="5" r="1" /> <circle cx="9" cy="19" r="1" /> <circle cx="15" cy="12" r="1" /> <circle cx="15" cy="5" r="1" /> <circle cx="15" cy="19" r="1" />`,draggable:`<circle cx="9" cy="12" r="1" /> <circle cx="9" cy="5" r="1" /> <circle cx="9" cy="19" r="1" /> <circle cx="15" cy="12" r="1" /> <circle cx="15" cy="5" r="1" /> <circle cx="15" cy="19" r="1" />`,earth:`<circle cx="12" cy="12" r="10" /> <path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /> <path d="M2 12h20" />`,edit:`<path d="M15 5.5 18.5 9" /><path d="M4.5 19.5 5.75 14.75 15.25 5.25a2.1 2.1 0 0 1 3 0l.5.5a2.1 2.1 0 0 1 0 3L9.25 18.25Z" />`,"edit-2":`<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" />`,"emotion-happy":`<circle cx="12" cy="12" r="10" /> <path d="M8 14s1.5 2 4 2 4-2 4-2" /> <line x1="9" x2="9.01" y1="9" y2="9" /> <line x1="15" x2="15.01" y1="9" y2="9" />`,"equalizer-2":`<path d="M10 5H3" /> <path d="M12 19H3" /> <path d="M14 3v4" /> <path d="M16 17v4" /> <path d="M21 12h-9" /> <path d="M21 19h-5" /> <path d="M21 5h-7" /> <path d="M8 10v4" /> <path d="M8 12H3" />`,"error-warning":`<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" /> <path d="M12 9v4" /> <path d="M12 17h.01" />`,"error-warning-fill":`<path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z" fill="currentColor" stroke="none"/>`,"exclamation-fill":`<path d="M10.5 4h3v10h-3zm0 13h3v3h-3z" fill="currentColor" stroke="none" />`,"expand-diagonal":`<path d="M15 3h6v6" /> <path d="m21 3-7 7" /> <path d="m3 21 7-7" /> <path d="M9 21H3v-6" />`,"expand-up-down":`<path d="m7 15 5 5 5-5" /> <path d="m7 9 5-5 5 5" />`,"external-link":`<path d="M15 3h6v6" /> <path d="M10 14 21 3" /> <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />`,eye:`<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" /> <circle cx="12" cy="12" r="3" />`,"eye-off":`<path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" /> <path d="M14.084 14.158a3 3 0 0 1-4.242-4.242" /> <path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" /> <path d="m2 2 20 20" />`,file:`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" />`,"file-add":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M9 15h6" /> <path d="M12 18v-6" />`,"file-check":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="m9 15 2 2 4-4" />`,"file-check-fill":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" fill="currentColor"/> <path d="M14 2v5a1 1 0 0 0 1 1h5" fill="currentColor"/> <path d="m9 15 2 2 4-4" fill="currentColor"/>`,"file-code":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 12.5 8 15l2 2.5" /> <path d="m14 12.5 2 2.5-2 2.5" />`,"file-copy":`<rect width="14" height="14" x="8" y="8" rx="3.5" ry="3.5" /><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />`,"file-copy-2":`<path d="M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8" /> <path d="M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z" /> <path d="M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1" />`,"file-download":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M12 18v-6" /> <path d="m9 15 3 3 3-3" />`,"file-edit":`<path d="M10 21H7a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h5.2c.8 0 1.6.3 2.1.9l2.8 2.8c.6.5.9 1.3.9 2.1V10M12 3.2V7a2 2 0 0 0 2 2h3.8" /><path d="m12 17 6-6a2.1 2.1 0 0 1 3 3l-6 6-4 1 1-4ZM17 12l3 3" />`,"file-image":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <circle cx="10" cy="12" r="2" /> <path d="m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22" />`,"file-list-2":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" />`,"file-music":`<path d="M11.65 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v10.35" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M8 20v-7l3 1.474" /> <circle cx="6" cy="20" r="2" />`,"file-pdf":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" />`,"file-search":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <circle cx="11.5" cy="14.5" r="2.5" /> <path d="M13.3 16.3 15 18" />`,"file-text":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M10 9H8" /> <path d="M16 13H8" /> <path d="M16 17H8" />`,"file-transfer":`<path d="M4 11V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M2 15h10" /> <path d="m9 18 3-3-3-3" />`,"file-video":`<path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" /> <path d="M14 2v5a1 1 0 0 0 1 1h5" /> <path d="M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z" />`,flashlight:`<path d="M12 13v1" /> <path d="M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z" /> <path d="M6 6h12" />`,flask:`<path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2" /> <path d="M6.453 15h11.094" /> <path d="M8.5 2h7" />`,"fold-vertical":`<path d="M12 22v-6" /> <path d="M12 8V2" /> <path d="M4 12H2" /> <path d="M10 12H8" /> <path d="M16 12h-2" /> <path d="M22 12h-2" /> <path d="m15 19-3-3-3 3" /> <path d="m15 5-3 3-3-3" />`,folder:`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-3":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-3-fill":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-6":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-add":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" /><path d="M12 11v6" /><path d="M9 14h6" />`,"folder-open":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-open-fill":`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,"folder-received":`<path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1" /> <path d="M2 13h10" /> <path d="m9 16 3-3-3-3" />`,"folder-tree":`<path d="M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z" /> <path d="M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z" /> <path d="M3 5a2 2 0 0 0 2 2h3" /> <path d="M3 3v13a2 2 0 0 0 2 2h3" />`,folders:`<path d="M3 17V6a3 3 0 0 1 3-3h2.2c.9 0 1.7.4 2.2 1.1l.6.8c.5.7 1.3 1.1 2.2 1.1H18a3 3 0 0 1 3 3v1M3 17l3-5a3 3 0 0 1 2.6-1.5h10.6a2 2 0 0 1 1.9 2.6l-1.5 5a2.7 2.7 0 0 1-2.6 1.9H6a3 3 0 0 1-3-3Z" />`,fullscreen:`<path d="M8 3H5a2 2 0 0 0-2 2v3" /> <path d="M21 8V5a2 2 0 0 0-2-2h-3" /> <path d="M3 16v3a2 2 0 0 0 2 2h3" /> <path d="M16 21h3a2 2 0 0 0 2-2v-3" />`,"fullscreen-exit":`<path d="M8 3v3a2 2 0 0 1-2 2H3" /> <path d="M21 8h-3a2 2 0 0 1-2-2V3" /> <path d="M3 16h3a2 2 0 0 1 2 2v3" /> <path d="M16 21v-3a2 2 0 0 1 2-2h3" />`,gamepad:`<line x1="6" x2="10" y1="11" y2="11" /> <line x1="8" x2="8" y1="9" y2="13" /> <line x1="15" x2="15.01" y1="12" y2="12" /> <line x1="18" x2="18.01" y1="10" y2="10" /> <path d="M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z" />`,"git-branch":`<circle cx="6" cy="17.5" r="2.75" /><circle cx="18" cy="6.5" r="2.75" /><path d="M6 14.75V3.5M18 9.25c0 4.75-3.5 8.25-9.25 8.25" />`,"git-close-pull-request":`<circle cx="6" cy="6" r="3" /> <path d="M6 9v12" /> <path d="m21 3-6 6" /> <path d="m21 9-6-6" /> <path d="M18 11.5V15" /> <circle cx="18" cy="18" r="3" />`,"git-commit":`<circle cx="12" cy="12" r="3" /> <line x1="3" x2="9" y1="12" y2="12" /> <line x1="15" x2="21" y1="12" y2="12" />`,"git-merge":`<circle cx="18" cy="18" r="3" /> <circle cx="6" cy="6" r="3" /> <path d="M6 21V9a9 9 0 0 0 9 9" />`,"git-pr-draft":`<circle cx="18" cy="18" r="3" /> <circle cx="6" cy="6" r="3" /> <path d="M18 6V5" /> <path d="M18 11v-1" /> <line x1="6" x2="6" y1="9" y2="21" />`,"git-pull-request":`<circle cx="18" cy="18" r="3" /> <circle cx="6" cy="6" r="3" /> <path d="M13 6h3a2 2 0 0 1 2 2v7" /> <line x1="6" x2="6" y1="9" y2="21" />`,"git-repository":`<path d="M18 19a5 5 0 0 1-5-5v8" /> <path d="M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5" /> <circle cx="13" cy="12" r="2" /> <circle cx="20" cy="19" r="2" />`,github:`<path d="M5.88401 18.6533C5.58404 18.4526 5.32587 18.1975 5.0239 17.8369C4.91473 17.7065 4.47283 17.1524 4.55811 17.2583C4.09533 16.6833 3.80296 16.417 3.50156 16.3089C2.9817 16.1225 2.7114 15.5499 2.89784 15.0301C3.08428 14.5102 3.65685 14.2399 4.17672 14.4263C4.92936 14.6963 5.43847 15.1611 6.12425 16.0143C6.03025 15.8974 6.46364 16.441 6.55731 16.5529C6.74784 16.7804 6.88732 16.9182 6.99629 16.9911C7.20118 17.1283 7.58451 17.1874 8.14709 17.1311C8.17065 16.7489 8.24136 16.3783 8.34919 16.0358C5.38097 15.3104 3.70116 13.3952 3.70116 9.63971C3.70116 8.40085 4.0704 7.28393 4.75917 6.3478C4.5415 5.45392 4.57433 4.37284 5.06092 3.15636C5.1725 2.87739 5.40361 2.66338 5.69031 2.57352C5.77242 2.54973 5.81791 2.53915 5.89878 2.52673C6.70167 2.40343 7.83573 2.69705 9.31449 3.62336C10.181 3.41879 11.0885 3.315 12.0012 3.315C12.9129 3.315 13.8196 3.4186 14.6854 3.62277C16.1619 2.69 17.2986 2.39649 18.1072 2.52651C18.1919 2.54013 18.2645 2.55783 18.3249 2.57766C18.6059 2.66991 18.8316 2.88179 18.9414 3.15636C19.4279 4.37256 19.4608 5.45344 19.2433 6.3472C19.9342 7.28337 20.3012 8.39208 20.3012 9.63971C20.3012 13.3968 18.627 15.3048 15.6588 16.032C15.7837 16.447 15.8496 16.9105 15.8496 17.4121C15.8496 18.0765 15.8471 18.711 15.8424 19.4225C15.8412 19.6127 15.8397 19.8159 15.8375 20.1281C16.2129 20.2109 16.5229 20.5077 16.6031 20.9089C16.7114 21.4504 16.3602 21.9773 15.8186 22.0856C14.6794 22.3134 13.8353 21.5538 13.8353 20.5611C13.8353 20.4708 13.836 20.3417 13.8375 20.1145C13.8398 19.8015 13.8412 19.599 13.8425 19.4094C13.8471 18.7019 13.8496 18.0716 13.8496 17.4121C13.8496 16.7148 13.6664 16.2602 13.4237 16.051C12.7627 15.4812 13.0977 14.3973 13.965 14.2999C16.9314 13.9666 18.3012 12.8177 18.3012 9.63971C18.3012 8.68508 17.9893 7.89571 17.3881 7.23559C17.1301 6.95233 17.0567 6.54659 17.199 6.19087C17.3647 5.77663 17.4354 5.23384 17.2941 4.57702L17.2847 4.57968C16.7928 4.71886 16.1744 5.0198 15.4261 5.5285C15.182 5.69438 14.8772 5.74401 14.5932 5.66413C13.7729 5.43343 12.8913 5.315 12.0012 5.315C11.111 5.315 10.2294 5.43343 9.40916 5.66413C9.12662 5.74359 8.82344 5.69492 8.57997 5.53101C7.8274 5.02439 7.2056 4.72379 6.71079 4.58376C6.56735 5.23696 6.63814 5.77782 6.80336 6.19087C6.94565 6.54659 6.87219 6.95233 6.61423 7.23559C6.01715 7.8912 5.70116 8.69376 5.70116 9.63971C5.70116 12.8116 7.07225 13.9683 10.023 14.2999C10.8883 14.3971 11.2246 15.4769 10.5675 16.0482C10.3751 16.2156 10.1384 16.7802 10.1384 17.4121V20.5611C10.1384 21.5474 9.30356 22.2869 8.17878 22.09C7.63476 21.9948 7.27093 21.4766 7.36613 20.9326C7.43827 20.5204 7.75331 20.2116 8.13841 20.1276V19.1381C7.22829 19.1994 6.47656 19.0498 5.88401 18.6533Z" fill="currentColor"/>`,"github-fill":`<path d="M12.001 2C6.47598 2 2.00098 6.475 2.00098 12C2.00098 16.425 4.86348 20.1625 8.83848 21.4875C9.33848 21.575 9.52598 21.275 9.52598 21.0125C9.52598 20.775 9.51348 19.9875 9.51348 19.15C7.00098 19.6125 6.35098 18.5375 6.15098 17.975C6.03848 17.6875 5.55098 16.8 5.12598 16.5625C4.77598 16.375 4.27598 15.9125 5.11348 15.9C5.90098 15.8875 6.46348 16.625 6.65098 16.925C7.55098 18.4375 8.98848 18.0125 9.56348 17.75C9.65098 17.1 9.91348 16.6625 10.201 16.4125C7.97598 16.1625 5.65098 15.3 5.65098 11.475C5.65098 10.3875 6.03848 9.4875 6.67598 8.7875C6.57598 8.5375 6.22598 7.5125 6.77598 6.1375C6.77598 6.1375 7.61348 5.875 9.52598 7.1625C10.326 6.9375 11.176 6.825 12.026 6.825C12.876 6.825 13.726 6.9375 14.526 7.1625C16.4385 5.8625 17.276 6.1375 17.276 6.1375C17.826 7.5125 17.476 8.5375 17.376 8.7875C18.0135 9.4875 18.401 10.375 18.401 11.475C18.401 15.3125 16.0635 16.1625 13.8385 16.4125C14.201 16.725 14.5135 17.325 14.5135 18.2625C14.5135 19.6 14.501 20.675 14.501 21.0125C14.501 21.275 14.6885 21.5875 15.1885 21.4875C19.259 20.1133 21.9999 16.2963 22.001 12C22.001 6.475 17.526 2 12.001 2Z" fill="currentColor"/>`,global:`<circle cx="12" cy="12" r="10" /> <path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /> <path d="M2 12h20" />`,globe:`<path d="M13.0003 21H18.0003V23H6.00032V21H11.0003V19.9506C7.70689 19.6236 4.88351 17.6987 3.31641 14.9622L5.05319 13.9697C6.43208 16.3776 9.02674 18 12.0003 18C16.4186 18 20.0003 14.4182 20.0003 9.99995C20.0003 7.02637 18.378 4.43171 15.9701 3.05282L16.9626 1.31604C19.9724 3.03965 22.0003 6.28297 22.0003 9.99995C22.0003 15.1853 18.0536 19.4489 13.0003 19.9506V21ZM12.0003 17C8.13433 17 5.00032 13.8659 5.00032 9.99995C5.00032 6.13396 8.13433 2.99995 12.0003 2.99995C15.8663 2.99995 19.0003 6.13396 19.0003 9.99995C19.0003 13.8659 15.8663 17 12.0003 17ZM12.0003 15C14.7617 15 17.0003 12.7614 17.0003 9.99995C17.0003 7.23853 14.7617 4.99995 12.0003 4.99995C9.2389 4.99995 7.00032 7.23853 7.00032 9.99995C7.00032 12.7614 9.2389 15 12.0003 15Z" fill="currentColor" stroke="none"/>`,"graduation-cap":`<path d="M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z" /> <path d="M22 10v6" /> <path d="M6 12.5V16a6 3 0 0 0 12 0v-3.5" />`,hammer:`<path d="m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9" /> <path d="m18 15 4-4" /> <path d="m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" />`,hand:`<path d="M12.5002 2C12.2241 2 12.0002 2.22386 12.0002 2.5V12H10.0002V4.5C10.0002 4.22386 9.77634 4 9.5002 4C9.22405 4 9.0002 4.22386 9.0002 4.5V14C8.64653 14 7.00024 14 7.00024 14C6.61911 12.3792 5.64236 11.4407 4.5954 11.3216C4.87926 12.0664 5.36117 13.2592 6.16634 15.0995C7.02511 17.0622 7.89128 18.5218 9.00374 19.4986C10.0783 20.442 11.4586 21 13.5002 21C16.5378 21 19.0002 18.5377 19.0002 15.5002V7C19.0002 6.72386 18.7763 6.5 18.5002 6.5C18.2241 6.5 18.0002 6.72386 18.0002 7V12H16.0002V4C16.0002 3.72386 15.7763 3.5 15.5002 3.5C15.2241 3.5 15.0002 3.72386 15.0002 4V12H13.0002V2.5C13.0002 2.22386 12.7763 2 12.5002 2ZM21.0002 15.5002C21.0002 19.6424 17.6423 23 13.5002 23C11.0417 23 9.17214 22.308 7.68416 21.0015C6.23411 19.7283 5.22528 17.9381 4.33405 15.9012C3.40393 13.7753 2.89004 12.4804 2.60991 11.7235C2.25318 10.7597 2.74616 9.41212 4.08583 9.31846C5.24076 9.23771 6.22061 9.61249 7.0002 10.2587V4.5C7.0002 3.11929 8.11949 2 9.5002 2C9.68522 2 9.86554 2.0201 10.0391 2.05823C10.2477 0.888227 11.2702 0 12.5002 0C13.5602 0 14.4661 0.659694 14.8298 1.59091C15.0431 1.53167 15.268 1.5 15.5002 1.5C16.8809 1.5 18.0002 2.61929 18.0002 4V4.55001C18.1618 4.51722 18.329 4.5 18.5002 4.5C19.8809 4.5 21.0002 5.61929 21.0002 7V15.5002Z" fill="currentColor" stroke="none"/>`,heart:`<path d="M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" />`,history:`<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" /> <path d="M12 7v5l4 2" />`,home:`<path d="M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" /> <path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />`,"home-fill":`<path d="M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2h-4v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8H5a2 2 0 0 1-2-2Z" fill="currentColor" stroke="none"/>`,hourglass:`<path d="M8 3.5h8c.8 0 1.5.7 1.5 1.5 0 2.6-1.8 4.5-3.8 5.9-.4.3-.7.6-.7 1.1s.3.8.7 1.1c2 1.4 3.8 3.3 3.8 5.9 0 .8-.7 1.5-1.5 1.5H8c-.8 0-1.5-.7-1.5-1.5 0-2.6 1.8-4.5 3.8-5.9.4-.3.7-.6.7-1.1s-.3-.8-.7-1.1C8.3 9.5 6.5 7.6 6.5 5c0-.8.7-1.5 1.5-1.5z" />`,"hourglass-fill":`<path d="M5 22h14" fill="currentColor"/> <path d="M5 2h14" fill="currentColor"/> <path d="M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22" fill="currentColor"/> <path d="M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2" fill="currentColor"/>`,"image-download":`<path d="M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21" /> <path d="m14 19 3 3v-5.5" /> <path d="m17 22 3-3" /> <circle cx="9" cy="9" r="2" />`,"inbox-archive":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8" /> <path d="M10 12h4" />`,"inbox-unarchive":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h2" /> <path d="M20 8v11a2 2 0 0 1-2 2h-2" /> <path d="m9 15 3-3 3 3" /> <path d="M12 12v9" />`,"inbox-unarchive-fill":`<rect width="20" height="5" x="2" y="3" rx="1" /> <path d="M4 8v11a2 2 0 0 0 2 2h2" fill="currentColor"/> <path d="M20 8v11a2 2 0 0 1-2 2h-2" fill="currentColor"/> <path d="m9 15 3-3 3 3" fill="currentColor"/> <path d="M12 12v9" fill="currentColor"/>`,information:`<circle cx="12" cy="12" r="10" /> <path d="M12 16v-4" /> <path d="M12 8h.01" />`,key:`<path d="m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4" /> <path d="m21 2-9.6 9.6" /> <circle cx="7.5" cy="15.5" r="5.5" />`,keyboard:`<path d="M3 17H21V19H3V17ZM3 11H6V14H3V11ZM8 11H11V14H8V11ZM3 5H6V8H3V5ZM13 5H16V8H13V5ZM18 5H21V8H18V5ZM13 11H16V14H13V11ZM18 11H21V14H18V11ZM8 5H11V8H8V5Z" fill="currentColor" stroke="none"/>`,"layout-column":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M12 3v18" />`,"layout-left":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M9 3v18" />`,"layout-left-rounded":`<rect width="18" height="18" x="3" y="3" rx="4" /><path d="M9.5 3v18" />`,"layout-right":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M15 3v18" />`,leaf:`<path d="M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z" /> <path d="M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12" />`,lightbulb:`<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5" /> <path d="M9 18h6" /> <path d="M10 22h4" />`,"link-unlink-m":`<path d="m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" /> <path d="m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" /> <line x1="8" x2="8" y1="2" y2="5" /> <line x1="2" x2="5" y1="8" y2="8" /> <line x1="16" x2="16" y1="19" y2="22" /> <line x1="19" x2="22" y1="16" y2="16" />`,"list-check-2":`<path d="M13 5h8" /> <path d="M13 12h8" /> <path d="M13 19h8" /> <path d="m3 17 2 2 4-4" /> <path d="m3 7 2 2 4-4" />`,"list-check-3":`<path d="M13 5h8" /> <path d="M13 12h8" /> <path d="M13 19h8" /> <path d="m3 17 2 2 4-4" /> <rect x="3" y="4" width="6" height="6" rx="1" />`,"list-unordered":`<path d="M3 5h.01" /> <path d="M3 12h.01" /> <path d="M3 19h.01" /> <path d="M8 5h13" /> <path d="M8 12h13" /> <path d="M8 19h13" />`,loader:`<path d="M12 2v4" /> <path d="m16.2 7.8 2.9-2.9" /> <path d="M18 12h4" /> <path d="m16.2 16.2 2.9 2.9" /> <path d="M12 18v4" /> <path d="m4.9 19.1 2.9-2.9" /> <path d="M2 12h4" /> <path d="m4.9 4.9 2.9 2.9" />`,"loader-4":`<path d="M21 12a9 9 0 1 1-6.219-8.56" />`,lock:`<rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 10 0v4" />`,"lock-2":`<rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 10 0v4" />`,"lock-unlock":`<rect width="18" height="11" x="3" y="11" rx="2" ry="2" /> <path d="M7 11V7a5 5 0 0 1 9.9-1" />`,"loop-right-ai":`<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /> <path d="M21 3v5h-5" /> <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /> <path d="M8 16H3v5" />`,macbook:`<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z" /> <path d="M20.054 15.987H3.946" />`,mail:`<path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" /> <rect x="2" y="4" width="20" height="16" rx="2" />`,"mail-open":`<path d="M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z" /> <path d="m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10" />`,"menu-2":`<path d="M4 5h16" /> <path d="M4 12h16" /> <path d="M4 19h16" />`,"menu-fold-2":`<rect width="18" height="18" x="3" y="3" rx="2" /> <path d="M9 3v18" /> <path d="m16 15-3-3 3-3" />`,"menu-search":`<path d="m21 21-4.34-4.34" /> <circle cx="11" cy="11" r="8" />`,mic:`<path d="M12 19v3" /> <path d="M19 10v2a7 7 0 0 1-14 0v-2" /> <rect x="9" y="2" width="6" height="13" rx="3" />`,"mic-fill":`<path d="M11.9998 1C14.7612 1 16.9998 3.23858 16.9998 6V10C16.9998 12.7614 14.7612 15 11.9998 15C9.23833 15 6.99976 12.7614 6.99976 10V6C6.99976 3.23858 9.23833 1 11.9998 1ZM3.05469 11H5.07065C5.55588 14.3923 8.47329 17 11.9998 17C15.5262 17 18.4436 14.3923 18.9289 11H20.9448C20.4837 15.1716 17.1714 18.4839 12.9998 18.9451V23H10.9998V18.9451C6.82814 18.4839 3.51584 15.1716 3.05469 11Z" fill="currentColor" stroke="none"/>`,moon:`<path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" />`,more:`<circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" />`,"more-2":`<circle cx="12" cy="12" r="1" /> <circle cx="19" cy="12" r="1" /> <circle cx="5" cy="12" r="1" />`,"more-2-fill":`<circle cx="12" cy="12" r="1" fill="currentColor"/> <circle cx="19" cy="12" r="1" fill="currentColor"/> <circle cx="5" cy="12" r="1" fill="currentColor"/>`,music:`<path d="M9 18V5l12-2v13" /> <circle cx="6" cy="18" r="3" /> <circle cx="18" cy="16" r="3" />`,"node-tree":`<rect x="9" y="3" width="6" height="5" rx="2" /><path d="M12 8v1.5c0 4-6 2-6 6.5M12 9.5c0 4 6 2 6 6.5" /><rect x="3" y="16" width="6" height="5" rx="2" /><rect x="15" y="16" width="6" height="5" rx="2" />`,"notification-3":`<path d="M10.268 21a2 2 0 0 0 3.464 0" /> <path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" />`,palette:`<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" /> <circle cx="13.5" cy="6.5" r=".5" fill="currentColor" /> <circle cx="17.5" cy="10.5" r=".5" fill="currentColor" /> <circle cx="6.5" cy="12.5" r=".5" fill="currentColor" /> <circle cx="8.5" cy="7.5" r=".5" fill="currentColor" />`,pause:`<path d="M6 5H8V19H6V5ZM16 5H18V19H16V5Z" fill="currentColor" stroke="none"/>`,"pause-circle":`<circle cx="12" cy="12" r="10" /> <line x1="10" x2="10" y1="15" y2="9" /> <line x1="14" x2="14" y1="15" y2="9" />`,pencil:`<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" /> <path d="m15 5 4 4" />`,"pencil-ai":`<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" />`,"pencil-ai-2":`<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" />`,"picture-in-picture-2":`<path d="M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4" /> <rect width="10" height="7" x="12" y="13" rx="2" />`,"pie-chart":`<path d="M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" /> <path d="M21.21 15.89A10 10 0 1 1 8 2.83" />`,play:`<path d="M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" />`,"play-list-add":`<path d="M16 5H3" /> <path d="M11 12H3" /> <path d="M16 19H3" /> <path d="M18 9v6" /> <path d="M21 12h-6" />`,plug:`<path d="M12 22v-5" /> <path d="M15 8V2" /> <path d="M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" /> <path d="M9 8V2" />`,"plug-2":`<path d="M12 22v-5" /> <path d="M15 8V2" /> <path d="M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z" /> <path d="M9 8V2" />`,pulse:`<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" />`,pushpin:`<path d="M12 17v5" /> <path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" />`,"pushpin-2":`<path d="M12 17v5" /> <path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z" />`,"pushpin-2-fill":`<path d="M22.3126 10.1753L20.8984 11.5895L20.1913 10.8824L15.9486 15.125L15.2415 18.6606L13.8273 20.0748L9.58466 15.8321L4.63492 20.7819L3.2207 19.3677L8.17045 14.4179L3.92781 10.1753L5.34202 8.76107L8.87756 8.05396L13.1202 3.81132L12.4131 3.10422L13.8273 1.69L22.3126 10.1753Z" fill="currentColor" />`,question:`<circle cx="12" cy="12" r="10" /> <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" /> <path d="M12 17h.01" />`,"record-circle":`<circle cx="12" cy="12" r="10" /> <circle cx="12" cy="12" r="1" />`,refresh:`<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" /> <path d="M21 3v5h-5" /> <path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" /> <path d="M8 16H3v5" />`,restart:`<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /> <path d="M3 3v5h5" />`,robot:`<path d="M12 8V4H8" /> <rect width="16" height="12" x="4" y="8" rx="2" /> <path d="M2 14h2" /> <path d="M20 14h2" /> <path d="M15 13v2" /> <path d="M9 13v2" />`,"robot-2":`<path d="M12 8V4H8" /> <rect width="16" height="12" x="4" y="8" rx="2" /> <path d="M2 14h2" /> <path d="M20 14h2" /> <path d="M15 13v2" /> <path d="M9 13v2" />`,rocket:`<path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" /> <path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09" /> <path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z" /> <path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05" />`,"save-3":`<path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" /> <path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" /> <path d="M7 3v4a1 1 0 0 0 1 1h7" />`,"scales-3":`<path d="M12 3v18" /> <path d="m19 8 3 8a5 5 0 0 1-6 0zV7" /> <path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1" /> <path d="m5 8 3 8a5 5 0 0 1-6 0zV7" /> <path d="M7 21h10" />`,"scan-2":`<path d="M3 7V5a2 2 0 0 1 2-2h2" /> <path d="M17 3h2a2 2 0 0 1 2 2v2" /> <path d="M21 17v2a2 2 0 0 1-2 2h-2" /> <path d="M7 21H5a2 2 0 0 1-2-2v-2" />`,scissors:`<circle cx="6" cy="6" r="3" /> <path d="M8.12 8.12 12 12" /> <path d="M20 4 8.12 15.88" /> <circle cx="6" cy="18" r="3" /> <path d="M14.8 14.8 20 20" />`,search:`<path d="m21 21-4.34-4.34" /> <circle cx="11" cy="11" r="8" />`,"search-eye":`<path d="M3 7V5a2 2 0 0 1 2-2h2" /> <path d="M17 3h2a2 2 0 0 1 2 2v2" /> <path d="M21 17v2a2 2 0 0 1-2 2h-2" /> <path d="M7 21H5a2 2 0 0 1-2-2v-2" /> <circle cx="12" cy="12" r="3" /> <path d="m16 16-1.9-1.9" />`,"send-plane":`<path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z" /> <path d="m21.854 2.147-10.94 10.939" />`,"send-plane-2":`<path d="M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z" /> <path d="M6 12h16" />`,server:`<rect width="20" height="8" x="2" y="2" rx="2" ry="2" /> <rect width="20" height="8" x="2" y="14" rx="2" ry="2" /> <line x1="6" x2="6.01" y1="6" y2="6" /> <line x1="6" x2="6.01" y1="18" y2="18" />`,"settings-2":`<path d="M14 17H5" /> <path d="M19 7h-9" /> <circle cx="17" cy="17" r="3" /> <circle cx="7" cy="7" r="3" />`,"settings-3":`<path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" /> <circle cx="12" cy="12" r="3" />`,"share-2":`<path d="M12 2v13" /> <path d="m16 6-4-4-4 4" /> <path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" />`,shield:`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />`,"shield-check":`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /> <path d="m9 12 2 2 4-4" />`,"shield-keyhole":`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" />`,"shield-user":`<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" /> <path d="M6.376 18.91a6 6 0 0 1 11.249.003" /> <circle cx="12" cy="11" r="4" />`,shuffle:`<path d="m18 14 4 4-4 4" /> <path d="m18 2 4 4-4 4" /> <path d="M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22" /> <path d="M2 6h1.972a4 4 0 0 1 3.6 2.2" /> <path d="M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45" />`,"slash-commands-2":`<path d="M12 19h8" /> <path d="m4 17 6-6-6-6" />`,smartphone:`<rect width="14" height="20" x="5" y="2" rx="2" ry="2" /> <path d="M12 18h.01" />`,sparkling:`<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" /> <path d="M20 2v4" /> <path d="M22 4h-4" /> <circle cx="4" cy="20" r="2" />`,"split-cells-horizontal":`<path d="M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3" /> <path d="M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3" /> <line x1="12" x2="12" y1="4" y2="20" />`,stack:`<path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" /> <path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" /> <path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" />`,star:`<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" />`,"star-fill":`<path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" fill="currentColor"/>`,"sticky-note":`<path d="M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z" /> <path d="M15 3v5a1 1 0 0 0 1 1h5" />`,stop:`<rect width="18" height="18" x="3" y="3" rx="2" />`,"stop-circle":`<circle cx="12" cy="12" r="9" /><rect x="9.25" y="9.25" width="5.5" height="5.5" rx="1.25" />`,subtract:`<path d="M5 12h14" />`,survey:`<rect width="8" height="4" x="8" y="2" rx="1" ry="1" /> <path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" /> <path d="M12 11h4" /> <path d="M12 16h4" /> <path d="M8 11h.01" /> <path d="M8 16h.01" />`,target:`<circle cx="12" cy="12" r="10" /> <circle cx="12" cy="12" r="6" /> <circle cx="12" cy="12" r="2" />`,task:`<path d="M21.801 10A10 10 0 1 1 17 3.335" /> <path d="m9 11 3 3L22 4" />`,terminal:`<path d="M12 19h8" /> <path d="m4 17 6-6-6-6" />`,"terminal-box":`<path d="M12 19h8" /> <path d="m4 17 6-6-6-6" />`,"terminal-window":`<path d="m7 11 2-2-2-2" /> <path d="M11 13h4" /> <rect width="18" height="18" x="3" y="3" rx="2" ry="2" />`,text:`<path d="M12 4v16" /> <path d="M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" /> <path d="M9 20h6" />`,"text-wrap":`<path d="m16 16-3 3 3 3" /> <path d="M3 12h14.5a1 1 0 0 1 0 7H13" /> <path d="M3 19h6" /> <path d="M3 5h18" />`,time:`<circle cx="12" cy="12" r="9" /><path d="M12 7v5.25l3.25 1.75" />`,timer:`<line x1="10" x2="14" y1="2" y2="2" /> <line x1="12" x2="15" y1="14" y2="11" /> <circle cx="12" cy="14" r="8" />`,tools:`<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z" />`,"twitter-xfill":`<path d="M17.6874 3.0625L12.6907 8.77425L8.37045 3.0625H2.11328L9.58961 12.8387L2.50378 20.9375H5.53795L11.0068 14.6886L15.7863 20.9375H21.8885L14.095 10.6342L20.7198 3.0625H17.6874ZM16.6232 19.1225L5.65436 4.78217H7.45745L18.3034 19.1225H16.6232Z" fill="currentColor"/>`,"undo-2":`<path d="M9 14 4 9l5-5" /> <path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" />`,unpin:`<path d="M12 17v5" /> <path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89" /> <path d="m2 2 20 20" /> <path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11" />`,user:`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> <circle cx="12" cy="7" r="4" />`,"user-3":`<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> <circle cx="12" cy="7" r="4" />`,"video-chat":`<path d="m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" /> <rect x="2" y="6" width="14" height="12" rx="2" />`,"volume-up":`<path d="M11.5 4.25a.75.75 0 0 0-1.25-.56L6 7.5H3.5A1.5 1.5 0 0 0 2 9v6a1.5 1.5 0 0 0 1.5 1.5H6l4.25 3.81a.75.75 0 0 0 1.25-.56Z" /><path d="M16 8a6 6 0 0 1 0 8M19 4.5a10.5 10.5 0 0 1 0 15" />`,"volume-up-fill":`<path d="M2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" fill="currentColor" stroke="none"/>`,window:`<rect x="2" y="4" width="20" height="16" rx="2" /> <path d="M10 4v4" /> <path d="M2 8h20" /> <path d="M6 4v4" />`},o=t(),s=`yuri-icon-sprite-v2`,c=1.5,l=(()=>{let e=2166136261;for(let[t,n]of Object.entries(a)){let r=`${t}:${n};`;for(let t=0;t<r.length;t+=1)e=Math.imul(e^r.charCodeAt(t),16777619)}return(e>>>0).toString(36)})(),u=!1,d=new Set,f=null;function p(e){if(u&&d.has(e)&&f===l||typeof document>`u`)return;let t=document.body;if(!t)return;let n=document.getElementById(s);if(n){let t=new Set(Array.from(n.querySelectorAll(`symbol[id^="yuri-"]`),e=>e.id.slice(3)));if(!n.innerHTML.includes(`--yuri-icon-stroke`)||n.dataset.spriteSignature!==l||!t.has(e))n.remove();else{u=!0,d=t,f=l;return}}let r=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);r.id=s,r.setAttribute(`aria-hidden`,`true`),r.dataset.spriteSignature=l,r.style.display=`none`,r.innerHTML=Object.entries(a).map(([e,t])=>`<symbol id="yuri-${e}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--yuri-icon-stroke, ${c})" stroke-linecap="round" stroke-linejoin="round">${t}</symbol>`).join(``),t.insertBefore(r,t.firstChild),u=!0,d=new Set(Object.keys(a)),f=l}var m=i.memo(({name:e,className:t,weight:n=`regular`,style:i,...a})=>{typeof document<`u`&&p(e);let s=n===`medium`?2:c;return(0,o.jsx)(`svg`,{className:r(`yuri-icon`,t),viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,stroke:`currentColor`,strokeWidth:s,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,style:{"--yuri-icon-stroke":s,...i},...a,children:(0,o.jsx)(`use`,{href:`#yuri-${e}`})})});m.displayName=`Icon`;export{m as n,a as r,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ot as e}from"./vendor-base-ui-wXsskyKm.js";import{n as t}from"./vendor-react-BkccXcWz.js";import{no as n}from"./ui-z2JsXLmb.js";import{t as r}from"./i18n-BU8XOKjS.js";/* empty css */var i=t(),a=e();function o(e){let t=(0,i.c)(7),{className:o}=e,{t:s}=r(),c;t[0]===o?c=t[1]:(c=n(`yuri-image-loading`,o),t[0]=o,t[1]=c);let l;t[2]===s?l=t[3]:(l=s(`chat.fileAttachment.image.loading`),t[2]=s,t[3]=l);let u;return t[4]!==c||t[5]!==l?(u=(0,a.jsx)(`span`,{className:c,role:`status`,"aria-label":l}),t[4]=c,t[5]=l,t[6]=u):u=t[6],u}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{r as i}from"./useUIStore-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ot as t,st as n}from"./vendor-base-ui-wXsskyKm.js";import{n as r}from"./vendor-react-BkccXcWz.js";import{r as i}from"./useUIStore-P32bzAJc.js";import{t as a}from"./i18n-BU8XOKjS.js";import{t as o}from"./ImageLoadingPlaceholder-FqoECDc5.js";var s=r(),c=e(n(),1),l=t();function u(e){let t=(0,s.c)(39),n,r,u,f,p,m,h;t[0]===e?(n=t[1],r=t[2],u=t[3],f=t[4],p=t[5],m=t[6],h=t[7]):({resourceError:m,fill:r,contentFrame:n,onLoad:f,onError:u,style:h,...p}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=u,t[4]=f,t[5]=p,t[6]=m,t[7]=h);let g=i(d),{t:_}=a(),v=c.useRef(null),[y,b]=c.useState(`loading`),x=m?`error`:y,S,C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(S=()=>{let e=v.current;e?.complete&&e.naturalWidth>0&&b(`loaded`)},C=[],t[8]=S,t[9]=C):(S=t[8],C=t[9]),c.useLayoutEffect(S,C);let w=r||void 0,T=n?g?`mobile`:`desktop`:void 0,E=x===`loading`,D=p.src||void 0,O;t[10]===x?O=t[11]:(O=x===`loaded`?{}:{opacity:0},t[10]=x,t[11]=O);let k;t[12]!==h||t[13]!==O?(k={...h,...O},t[12]=h,t[13]=O,t[14]=k):k=t[14];let A;t[15]===f?A=t[16]:(A=e=>{b(`loaded`),f?.(e)},t[15]=f,t[16]=A);let j;t[17]!==u||t[18]!==p.src?(j=e=>{p.src&&(b(`error`),u?.(e))},t[17]=u,t[18]=p.src,t[19]=j):j=t[19];let M;t[20]!==p||t[21]!==j||t[22]!==D||t[23]!==k||t[24]!==A?(M=(0,l.jsx)(`img`,{...p,ref:v,src:D,style:k,onLoad:A,onError:j}),t[20]=p,t[21]=j,t[22]=D,t[23]=k,t[24]=A,t[25]=M):M=t[25];let N;t[26]===x?N=t[27]:(N=x===`loading`&&(0,l.jsx)(o,{}),t[26]=x,t[27]=N);let P;t[28]!==x||t[29]!==_?(P=x===`error`&&(0,l.jsx)(`span`,{className:`yuri-image-error`,role:`status`,children:_(`chat.fileAttachment.image.loadFailed`)}),t[28]=x,t[29]=_,t[30]=P):P=t[30];let F;return t[31]!==x||t[32]!==M||t[33]!==N||t[34]!==P||t[35]!==w||t[36]!==T||t[37]!==E?(F=(0,l.jsxs)(`span`,{className:`yuri-image-frame`,"data-image-state":x,"data-image-fill":w,"data-image-content":T,"aria-busy":E,children:[M,N,P]}),t[31]=x,t[32]=M,t[33]=N,t[34]=P,t[35]=w,t[36]=T,t[37]=E,t[38]=F):F=t[38],F}function d(e){return e.isMobile}var f=c.memo(function(e){let t=(0,s.c)(11),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({resourceError:a,fill:r,contentFrame:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=`${i.src??``}\n${i.srcSet??``}`,c;return t[5]!==n||t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==o?(c=(0,l.jsx)(u,{...i,resourceError:a,fill:r,contentFrame:n},o),t[5]=n,t[6]=r,t[7]=i,t[8]=a,t[9]=o,t[10]=c):c=t[10],c});export{f as t};
|