@p4code/cli 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-C1tFongj.mjs → binCli-DouSNynJ.mjs} +17297 -3439
- package/dist/client/.vite/manifest.json +2164 -2147
- package/dist/client/assets/{AnimatedHeight-PJxVEp27.js → AnimatedHeight-DoG4b7y8.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-BrPHaco9.js → AuthSurfaceShell-DbeJoeXz.js} +2 -2
- package/dist/client/assets/{CSPContext-C7uwFl6f.js → CSPContext-DkFc4cYo.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-D93cMeTp.js +2 -0
- package/dist/client/assets/ChatMarkdown-CLD9Y6dg.js +65 -0
- package/dist/client/assets/CodexSetupSection.logic-DJw6xB7P.js +2 -0
- package/dist/client/assets/ComboboxClear-ZQvkAjz8.js +2 -0
- package/dist/client/assets/{CommandBlock-JrUX9e8E.js → CommandBlock-c98wFxMU.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-Ba1dvqDN.js → ComposerPromptEditor-CBuOXkT9.js} +55 -55
- package/dist/client/assets/CompositeRoot-BMUI_bmJ.js +2 -0
- package/dist/client/assets/{ConnectionStatusDot-Cjh57o6i.js → ConnectionStatusDot-B69zfKRh.js} +2 -2
- package/dist/client/assets/DevicePanel-1xw7KQ15.js +2 -0
- package/dist/client/assets/{DeviceSetup-DccRVnjb.js → DeviceSetup-DemgUuG-.js} +2 -2
- package/dist/client/assets/DialogTitle-BXot7RA0.js +2 -0
- package/dist/client/assets/{DiffCommentAnnotation-DDBZcMFv.js → DiffCommentAnnotation-vAZP7JBy.js} +3 -3
- package/dist/client/assets/DiffFileTree-BhqF8nD5.js +2 -0
- package/dist/client/assets/DiffPanel-Dqh76p3E.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-RcplgHGv.js → DiffWorkerPoolProvider-D4VIo5Vu.js} +3 -3
- package/dist/client/assets/{EnvironmentMachineIcon-DMZGa766.js → EnvironmentMachineIcon-DPQkDtvr.js} +2 -2
- package/dist/client/assets/{ExpandableText-DfY-qqRW.js → ExpandableText-EZ9C25tN.js} +3 -3
- package/dist/client/assets/{FieldControl-C9UnFGZn.js → FieldControl-C4IsJLMZ.js} +2 -2
- package/dist/client/assets/{FileDiff-BXlBWSxx.js → FileDiff-H9QHqXa0.js} +2 -2
- package/dist/client/assets/FilePreviewPanel-DGm_SU_e.js +34 -0
- package/dist/client/assets/FoldedSettingsSection-BSYFyChk.js +2 -0
- package/dist/client/assets/{FormContext-haYZgWIK.js → FormContext-DiXpMuU8.js} +2 -2
- package/dist/client/assets/{Icons-C12feMOO.js → Icons-DA4msgfR.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-DhXMdk5O.js → KeybindingsSettings.logic-7EBA0xLE.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-CDoSxJVV.js → NoProjectsHero-YjEc2OIw.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-CCKUTh1H.js → PanelLayoutControls-BfRIRM0o.js} +13 -13
- package/dist/client/assets/{PierreEntryIcon-7x50Pz_C.js → PierreEntryIcon-BxxykifK.js} +2 -2
- package/dist/client/assets/PreviewPanel-QkMfuC1J.js +2 -0
- package/dist/client/assets/ProjectDefaultsSettings-C6wxaRmJ.js +2 -0
- package/dist/client/assets/{ProjectFavicon-ExMHrN16.js → ProjectFavicon-CiauSitF.js} +3 -3
- package/dist/client/assets/ProjectIconPickerDialog-GDqk2LEH.js +2 -0
- package/dist/client/assets/{ProjectMonogram-um8sYqIi.js → ProjectMonogram-Bqe3OyZR.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-Tw3kH5vc.js → ProviderAuthTerminal-D_OC5vdS.js} +2 -2
- package/dist/client/assets/ProviderModelPicker-Bfpy_Rw1.js +2 -0
- package/dist/client/assets/ProviderSettingsForm-BA6yGdRn.js +2 -0
- package/dist/client/assets/PullRequestCodeTab-BOM7mgfd.js +6 -0
- package/dist/client/assets/{ReadOnlySourcePreview-Cw6lfMjA.js → ReadOnlySourcePreview-C3LnvSkA.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-D21mPr47.js → RenderErrorBoundary-C-EIIrrq.js} +2 -2
- package/dist/client/assets/ScheduledTasksSettings-DFtwNfb8.js +4 -0
- package/dist/client/assets/ScopedSwitch-DsEcG6rk.js +2 -0
- package/dist/client/assets/SecretInput-Be5Akw8x.js +2 -0
- package/dist/client/assets/{SettingsPanels-DjzXV7Dm.js → SettingsPanels-CI-FknGh.js} +7 -7
- package/dist/client/assets/{SettingsPanels.logic-DpdMN_lX.js → SettingsPanels.logic-CLB8Pu-U.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-CdNfxmW3.js → SettingsScopeNotice-CVoWG1oN.js} +2 -2
- package/dist/client/assets/T3ConnectAccountPages-ClNzwIQw.js +2 -0
- package/dist/client/assets/{T3ConnectSidebarSignIn-DewmE1PI.js → T3ConnectSidebarSignIn-BqM_Vqe1.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-aEsLfkYx.js → ThemeEditorPanel-vVmQV_Vv.js} +3 -3
- package/dist/client/assets/ThreadTerminalDrawer-aLeVbe6g.js +5 -0
- package/dist/client/assets/{Virtualizer-B2BG0GB9.js → Virtualizer-DTOYU5Jp.js} +2 -2
- package/dist/client/assets/WorkspaceBreadcrumb-C9OPPGJE.js +2 -0
- package/dist/client/assets/WorkspacePageContainer-DtXJ5ept.js +2 -0
- package/dist/client/assets/{WorkspacePageHeader-BCZXPSxj.js → WorkspacePageHeader-5zzLFpEN.js} +2 -2
- package/dist/client/assets/_chat-BKcYL38S.js +45 -0
- package/dist/client/assets/{_chat.index-7o1_qjfU.js → _chat.index-BP1JWABB.js} +2 -2
- package/dist/client/assets/{_chat.new-W2E0MZ4y.js → _chat.new-BX5LyFum.js} +3 -3
- package/dist/client/assets/{_chat.pull-requests-DnQ-MKRG.js → _chat.pull-requests-B6-Vck8B.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-DJY5x2uS.js → abnfDiagram-VCTEODGH-BXvAfzAg.js} +2 -2
- package/dist/client/assets/{alert-yllEf0yh.js → alert-B-or1ble.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-DqzmsB35.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-6YiKazHv.js → architectureDiagram-5GKGNRK7-MEUA3QVe.js} +2 -2
- package/dist/client/assets/arrow-left-DI1Oo3nI.js +1 -0
- package/dist/client/assets/arrow-right-DRgAj8le.js +1 -0
- package/dist/client/assets/arrow-up-down-C6OEPUz7.js +1 -0
- package/dist/client/assets/assets-_CWIS9vb.js +2 -0
- package/dist/client/assets/bell-DW1iPWzH.js +1 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-D_EURhbV.js → blockDiagram-I7D4REHJ-BOdLeYJh.js} +2 -2
- package/dist/client/assets/blocks-DKOyf4K4.js +1 -0
- package/dist/client/assets/bot-DYcBiSui.js +1 -0
- package/dist/client/assets/{browserHistoryStore-B-t3Vc_Z.js → browserHistoryStore-BJD0OPpb.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-CiQS1wUg.js → browserLinkTarget-CoogLhhO.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-CmfPrrIj.js → c4Diagram-7LVT6UL2-COZrm1O8.js} +2 -2
- package/dist/client/assets/calendar-clock-BqL7OneL.js +1 -0
- package/dist/client/assets/channel-DbsUczqI.js +2 -0
- package/dist/client/assets/chart-no-axes-column-CtQ7A5KE.js +1 -0
- package/dist/client/assets/checkbox-CaZu1EKJ.js +2 -0
- package/dist/client/assets/{chunk-4HAMMTFA-BdvKUuii.js → chunk-4HAMMTFA-Bs-Fo0v1.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-DXz8BlJz.js → chunk-75Z2AOVW-DpOWzc3R.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-ebFBoLTT.js → chunk-DU6HZSFF-Bgpi4W6E.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-B1MlVcaX.js → chunk-F27PBJKO-CLxgnzXS.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-CEXqem_-.js → chunk-GMAD6QVW-D98J5Pan.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-wsgr7T0u.js → chunk-GVQU2GXP-VuCIOHGI.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-Daxc_3WP.js → chunk-IMKFNOWR-DXIyBsaE.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-C4NnipZ0.js → chunk-L3NEJ4N5-CrMlU3ZU.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-DDd2Ay5_.js → chunk-OSK3NFVY-V2__4gNB.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-I9iEYMEJ.js → chunk-P2QGCYS3-BrPw6V5F.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-Cgwl0wkZ.js → chunk-POPQ4Y6H-DBQ9Y51x.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-kBB0Jquc.js → chunk-PWAF6VOD-BN6AAbfF.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-gtUoMWd0.js → chunk-SHT3W25Y-Vay44dCU.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-CbL5vJ0z.js → chunk-SVP7TREG-CcGlNErV.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-CMgrptzc.js → chunk-TICWLB2K-Dk1P_xkD.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-DotTjRcO.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-DotTjRcO.js +2 -0
- package/dist/client/assets/{color-picker-Cj2frYnP.js → color-picker-gBclRe5T.js} +2 -2
- package/dist/client/assets/{combobox-DixSlhgy.js → combobox-C81z_216.js} +2 -2
- package/dist/client/assets/{command-B45LRbFT.js → command-DnJZPOmf.js} +2 -2
- package/dist/client/assets/{connect-CYM5DIkv.js → connect-Am2IS-vZ.js} +2 -2
- package/dist/client/assets/{connect-agent-nn3QLMb4.js → connect-agent-Cw1s7hYt.js} +2 -2
- package/dist/client/assets/corner-left-up-BT-2gfvH.js +1 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-CmLjrFzm.js → cynefin-OW5HDTMX-0s30RxOq.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-xQBevUIj.js → cynefinDiagram-5FMLGOSQ-Drd0Msog.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-Ck8BwJaT.js → dagre-GXQ25YYZ-BMfu7T0o.js} +2 -2
- package/dist/client/assets/device-C_oIGJqy.js +2 -0
- package/dist/client/assets/{diagram-S7CK7UJ4-Bl0e661x.js → diagram-S7CK7UJ4-8egngY0E.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-TO9a3uQI.js → diagram-UQ7AKVKN-BALPQoDH.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-BZ7xQ8wz.js → diagram-VSXAHHWV-BjyJZVGC.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-C4cA30qa.js → diagram-VX7I27RA-B9f6eKkq.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-Hl3MmqeP.js → diagram-Z3DM3KII-CRUj2d3v.js} +2 -2
- package/dist/client/assets/{dialog-DhJeevKt.js → dialog-Bn1u_Xoc.js} +2 -2
- package/dist/client/assets/{diffRendering-QVeYVRDU.js → diffRendering-C26rfQBu.js} +2 -2
- package/dist/client/assets/{discovery-list-VoilmsP7.js → discovery-list-Fg_u6w-x.js} +2 -2
- package/dist/client/assets/{dist-CxgL3edJ.js → dist-DtKaGeij.js} +5 -5
- package/dist/client/assets/download-DNjijPHR.js +1 -0
- package/dist/client/assets/{draft-input-BrEXLyuj.js → draft-input-D8eUYug0.js} +2 -2
- package/dist/client/assets/{duoViewer-D-_bD3-L.js → duoViewer-CBoAg4hS.js} +2 -2
- package/dist/client/assets/dynamic-p5s8CQGu.js +3 -0
- package/dist/client/assets/earth-DGA4iwBJ.js +1 -0
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-Bo_ALmgV.js → ebnfDiagram-PWID7BFC-BSbPiqg7.js} +2 -2
- package/dist/client/assets/ellipsis-Cbd-Ac19.js +1 -0
- package/dist/client/assets/{embeddedScripts-DKKE5k7D.js → embeddedScripts-Dsi0aZEx.js} +2 -2
- package/dist/client/assets/empty-C-gDaZ_z.js +2 -0
- package/dist/client/assets/entities-82m-Smm-.js +2 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-B38FLl2U.js → erDiagram-RLTQ6QDP-sL_q0j_k.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-OEIkdS25.js +1 -0
- package/dist/client/assets/eye-BUplLfz9.js +1 -0
- package/dist/client/assets/file-search-CcnLiCku.js +1 -0
- package/dist/client/assets/fileContextMenu-Dcs50sFI.js +2 -0
- package/dist/client/assets/{fileLinks-VfyxNu8P.js → fileLinks-DubkPNVt.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-BfMZMaRV.js → fileTreeExpansion-VtSAPhxL.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-BDZPeVYD.js +1 -0
- package/dist/client/assets/fold-vertical-BMLbHh0a.js +2 -0
- package/dist/client/assets/folder-cog-BMK_9DOi.js +2 -0
- package/dist/client/assets/folder-git-2-5RczFn6m.js +1 -0
- package/dist/client/assets/folder-open-PwiT4lvQ.js +1 -0
- package/dist/client/assets/folder-plus--IokSBmG.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-Cj0Kstgh.js → ganttDiagram-EL5Y4UJY-DCiKb0rQ.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-XUe1xsym.js → getDiffFileInput-DU5zpXo3.js} +2 -2
- package/dist/client/assets/git-branch-jf-x2c63.js +1 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-C84uaaYZ.js → gitGraph-4MIJSDKK-DfRe6ZT5.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-CvyimLfZ.js → gitGraphDiagram-WWUBYQGX-Bt7diV1n.js} +2 -2
- package/dist/client/assets/grip-vertical-OASdudbE.js +1 -0
- package/dist/client/assets/{guideRunStore-DwmmS8D0.js → guideRunStore-CF9bByzk.js} +2 -2
- package/dist/client/assets/hard-drive-BxN5msOb.js +1 -0
- package/dist/client/assets/history-DdVU5lcf.js +1 -0
- package/dist/client/assets/house-mbks5FAa.js +1 -0
- package/dist/client/assets/{htmlRender-DRfZ8nFp.js → htmlRender-vOqAdlJH.js} +2 -2
- package/dist/client/assets/index-1HGbj0-7.js +3 -0
- package/dist/client/assets/{info-A6RAGUB7-AXJa674d.js → info-A6RAGUB7-0FtL6-Am.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-CgaIIar7.js → infoDiagram-27XIBGKW-BPLvtPCc.js} +2 -2
- package/dist/client/assets/{input-u5qjnfMr.js → input-Cd_0h7h_.js} +2 -2
- package/dist/client/assets/{input-group-DIOgVvbV.js → input-group-CJ7ZOvDN.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DSDzMD_t.js → ishikawaDiagram-5VMMS53U-DVcx0XTh.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-Be6o5a7O.js → journeyDiagram-3NMN7TZE-w46bbjL2.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-Fpr0ne16.js → kanban-definition-UXKFOSKX-C41yE_yV.js} +2 -2
- package/dist/client/assets/kbd-c17EHIx1.js +2 -0
- package/dist/client/assets/keybindings-uYm_vnXl.js +2 -0
- package/dist/client/assets/keyboard-DckDn_SM.js +1 -0
- package/dist/client/assets/{lazyRouteComponent-dLOOuQ-r.js → lazyRouteComponent-CTVuEvaz.js} +2 -2
- package/dist/client/assets/{line-BXhbrPh0.js → line-tu9XZ0qp.js} +2 -2
- package/dist/client/assets/{link-YLDgrmSN.js → link-C4sEUNOK.js} +2 -2
- package/dist/client/assets/link-Dw3ue0Rm.js +1 -0
- package/dist/client/assets/{linkedPrompt-E32o3H76.js → linkedPrompt-VYl90REW.js} +2 -2
- package/dist/client/assets/list-1rglB5Lq.js +1 -0
- package/dist/client/assets/main-BB3F4O6Y.js +30 -0
- package/dist/client/assets/main-CnVegMVf.css +2 -0
- package/dist/client/assets/{mediaReference-C-grVzJf.js → mediaReference-BTVvzs2e.js} +2 -2
- package/dist/client/assets/{mediaSource-CxVHZYDj.js → mediaSource-DXHFWHMA.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-BFPy42Wg.js → mermaid-parser.core-DNd412Oc.js} +4 -4
- package/dist/client/assets/{mermaid.core-zK2u82e-.js → mermaid.core-CyE6QOQY.js} +5 -5
- package/dist/client/assets/message-circle-question-mark-CLPs5tYP.js +1 -0
- package/dist/client/assets/message-square-BInn4EwR.js +1 -0
- package/dist/client/assets/message-square-dashed-Dea7_sXv.js +1 -0
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-RzkTvFrT.js → mindmap-definition-YA3MSWOX-DH1uxdTm.js} +2 -2
- package/dist/client/assets/mouse-pointer-2-BPl1Yb5N.js +1 -0
- package/dist/client/assets/number-field-CVtwAsLe.js +2 -0
- package/dist/client/assets/{observeResize-WQaFQjbx.js → observeResize-Csvw3hy4.js} +2 -2
- package/dist/client/assets/{onboarding-DNafmm6s.js → onboarding-CJPrQc71.js} +2 -2
- package/dist/client/assets/openFileInPreview-C3O_ayUT.js +2 -0
- package/dist/client/assets/{p4ProjectFile-BzCYJ8I-.js → p4ProjectFile-BWszgcDk.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-rDYSbNWh.js → packet-AYTQ26CC-DflCOkCN.js} +1 -1
- package/dist/client/assets/{pair-nG9A6oxp.js → pair-Dd_e1jxq.js} +2 -2
- package/dist/client/assets/palette-DC6st-Ld.js +1 -0
- package/dist/client/assets/panel-left-BxNE-mqR.js +1 -0
- package/dist/client/assets/panels-top-left-CpwWAaSX.js +1 -0
- package/dist/client/assets/{pegDiagram-XKGWAZYB-8wodyYDi.js → pegDiagram-XKGWAZYB-Cnx9j2xX.js} +2 -2
- package/dist/client/assets/{phoneViewer-Bei8FsYJ.js → phoneViewer-B9EUVDD2.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-Ce0_zpeP.js → pie-WAS4IAKB-CDwew7fN.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-C3QJYWCY.js → pieDiagram-E7YTZNPT-BxejSN6k.js} +2 -2
- package/dist/client/assets/{pierre-icons-CsjmRq9p.js → pierre-icons-C839Otpo.js} +2 -2
- package/dist/client/assets/plug-Cdxb0djR.js +2 -0
- package/dist/client/assets/popover-CKyetthu.js +2 -0
- package/dist/client/assets/{preview-DFDpDpup.js → preview-CEMnbqVB.js} +2 -2
- package/dist/client/assets/{preview-BpTu6A2K.js → preview-CjgXQQdj.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-BfMwexwO.js → previewMiniPlayerStore-B9Lqaaij.js} +2 -2
- package/dist/client/assets/primary-uszZTzpR.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-CWT2YTBZ.js +2 -0
- package/dist/client/assets/projectFilesQueryState-ELgLflk5.js +2 -0
- package/dist/client/assets/projectScriptEditor-BAuP_HeU.js +2 -0
- package/dist/client/assets/{pullRequestDetail.logic-CE7fVOsp.js → pullRequestDetail.logic-DTxWqKoX.js} +4 -4
- package/dist/client/assets/{pullRequestReviewStore-BHEIYvsP.js → pullRequestReviewStore-C5gaoGaz.js} +2 -2
- package/dist/client/assets/pullRequests-DjbQ49mZ.js +2 -0
- package/dist/client/assets/puzzle-foT3lPUZ.js +1 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-Cqx4Dcqi.js → quadrantDiagram-AXDQQJYC-Bj4FEpOg.js} +2 -2
- package/dist/client/assets/queries-Cq5C9N-K.js +2 -0
- package/dist/client/assets/query-DpwJQzeq.js +2 -0
- package/dist/client/assets/{radar-RG4KPBEZ-DsccxBWq.js → radar-RG4KPBEZ-DEopr2Gv.js} +1 -1
- package/dist/client/assets/radio-group-fljQQ7Xp.js +2 -0
- package/dist/client/assets/{railroad-74A4TZTK-B-UN2mSQ.js → railroad-74A4TZTK-BSAOgUn6.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-C_4g8TOP.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-CHZB5YoP.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-B-PbMjlp.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-B_PdDy5r.js → railroadDiagram-O6MQD6OU-BSOJGJ6v.js} +2 -2
- package/dist/client/assets/{renderScheduler-D1ml_j--.js → renderScheduler-v8LIpnE2.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-CKZ6HpQu.js → requirementDiagram-BXWQKSXE-Bp5TqEho.js} +2 -2
- package/dist/client/assets/rightPanelStore-DqMd0tFH.js +2 -0
- package/dist/client/assets/rotate-ccw-rssHZoOL.js +1 -0
- package/dist/client/assets/rotate-cw-D726GGah.js +1 -0
- package/dist/client/assets/runtime-BQJQC-Ny.js +6 -0
- package/dist/client/assets/runtime-C6FwphD-.js +2 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BLF-VPcj.js → sankeyDiagram-P5KCCOFB-C7KUHrP7.js} +2 -2
- package/dist/client/assets/scheduledTasksSettings.logic-C3Mbc4mh.js +3 -0
- package/dist/client/assets/{scroll-area-CsrtHuL8.js → scroll-area-LhpLVf8r.js} +2 -2
- package/dist/client/assets/select-B4VvMEs2.js +2 -0
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BpJGkNAx.js → sequenceDiagram-WJ2MYXX4-Bs9mfTLC.js} +2 -2
- package/dist/client/assets/server-BD_Y5Gsn.js +2 -0
- package/dist/client/assets/session-DsbInyNV.js +2 -0
- package/dist/client/assets/session-logic-DneZDyPZ.js +26 -0
- package/dist/client/assets/settings-2-Qrnq-5XQ.js +1 -0
- package/dist/client/assets/settings-C8FiUQu0.js +2 -0
- package/dist/client/assets/settings-MUAsYy_j.js +1 -0
- package/dist/client/assets/settings.appearance-B5-X4oyX.js +2 -0
- package/dist/client/assets/settings.archived-DVUmF0nS.js +2 -0
- package/dist/client/assets/{settings.computer-use-DuW-mXPO.js → settings.computer-use-B3Ujc2AS.js} +2 -2
- package/dist/client/assets/settings.connections-EQYBOa7e.js +2 -0
- package/dist/client/assets/settings.decisions-C5UE4drK.js +2 -0
- package/dist/client/assets/{settings.diagnostics-DSw1QN-I.js → settings.diagnostics-CBcOEqPM.js} +2 -2
- package/dist/client/assets/settings.general-BOmr4mSV.js +2 -0
- package/dist/client/assets/settings.integrations-BCtpk2dY.js +2 -0
- package/dist/client/assets/{settings.keybindings-BeQmUtKv.js → settings.keybindings-DfFrYXxY.js} +2 -2
- package/dist/client/assets/settings.open-source-licenses-CqRM1gRd.js +2 -0
- package/dist/client/assets/settings.plugins-DC4js6dE.js +5 -0
- package/dist/client/assets/{settings.projects--jLA2A5b.js → settings.projects-CT-l0EfX.js} +4 -4
- package/dist/client/assets/settings.providers-CJuBTAiR.js +3 -0
- package/dist/client/assets/settings.scheduled-tasks-CvLNaadX.js +2 -0
- package/dist/client/assets/{settings.snap-shot-CUZNOX9M.js → settings.snap-shot-BMxV-ClC.js} +2 -2
- package/dist/client/assets/settings.source-control-DJWucVsM.js +2 -0
- package/dist/client/assets/settings.storage-DKm6BZ2r.js +2 -0
- package/dist/client/assets/settingsLayout-jP1a50ek.js +3 -0
- package/dist/client/assets/shield-question-mark-kKJBH4Uj.js +1 -0
- package/dist/client/assets/{sidebar-Dj0htG-5.js → sidebar-DI1ZJMkM.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-DxzT7QCQ.js → sidebarProjectGrouping-DXRKqrOP.js} +2 -2
- package/dist/client/assets/skeleton-BlMPaSbD.js +2 -0
- package/dist/client/assets/{sortable.esm-n8ce5zjO.js → sortable.esm-CnSn9HhJ.js} +2 -2
- package/dist/client/assets/{sourceControl-C3RSledt.js → sourceControl-ogZI3Qhj.js} +2 -2
- package/dist/client/assets/{spinner-BXr4m38K.js → spinner-I_NrXl2i.js} +2 -2
- package/dist/client/assets/square-menu-dCwciC39.js +2 -0
- package/dist/client/assets/square-pen-DilH8raK.js +1 -0
- package/dist/client/assets/square-plus-CeFmBUPF.js +2 -0
- package/dist/client/assets/{standalone-page-DSQDdNcR.js → standalone-page-C0mvdk0N.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-DFGb4Fx3.js → stateDiagram-D77RDMKH-lcvbm4gc.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DuLLhUia.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-D0z9osG6.js → swimlanes-42K2YHIH-BftXRbCQ.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-BrHQKVnf.js +9 -0
- package/dist/client/assets/terminal-links-BWEpET__.js +2 -0
- package/dist/client/assets/terminalLabels-BgLOlb2G.js +2 -0
- package/dist/client/assets/{terminalSessions-3aynRXX1.js → terminalSessions-CQOPPXfy.js} +2 -2
- package/dist/client/assets/text-search-DpDcKspl.js +1 -0
- package/dist/client/assets/{textarea-DZLyhzuZ.js → textarea-Bu723jDd.js} +2 -2
- package/dist/client/assets/themePalette-CAxv2FDZ.js +5 -0
- package/dist/client/assets/threadSort-BoaTqeGH.js +2 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-oHM5IS4i.js → timeline-definition-24CTP7MA-_aV_EuqE.js} +2 -2
- package/dist/client/assets/toast-CjelgyqV.js +2 -0
- package/dist/client/assets/{toggle-BzIEPTf7.js → toggle-B5fidRv0.js} +2 -2
- package/dist/client/assets/{toggle-group-_C7nJPTT.js → toggle-group-DCQTLIPb.js} +2 -2
- package/dist/client/assets/tooltip-taOyJZax.js +2 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-ONHv8oqx.js → treeView-Q6P3EWNA-ALGd5g_W.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-Go2hwkyn.js → treemap-WGGIJYW6-CGQrkzMs.js} +1 -1
- package/dist/client/assets/unfold-vertical-BLnEY4R7.js +2 -0
- package/dist/client/assets/usage-DmGxFUdr.js +2 -0
- package/dist/client/assets/{usageAccess-BNLOTFbF.js → usageAccess-CY-JtQnU.js} +2 -2
- package/dist/client/assets/{usageFormat-DKCO_wk0.js → usageFormat-Cs-UHzLq.js} +2 -2
- package/dist/client/assets/{usageShortcuts-DxLRXv0W.js → usageShortcuts-CP952NDO.js} +2 -2
- package/dist/client/assets/use-atom-command-CQHjSXPR.js +2 -0
- package/dist/client/assets/{useAriaLabelledBy-CJjXf8Fd.js → useAriaLabelledBy-4I5xhNlP.js} +2 -2
- package/dist/client/assets/useHandleNewThread-Bzaf_PDE.js +2 -0
- package/dist/client/assets/{useLocation-9axGTsrg.js → useLocation-QINZoaPz.js} +2 -2
- package/dist/client/assets/useNavigate-4thj06GJ.js +2 -0
- package/dist/client/assets/{useNavigateBack-AIHPN0Oo.js → useNavigateBack-CbbWf0z6.js} +2 -2
- package/dist/client/assets/{useParams-CCV3vN4E.js → useParams-BTKEXLBT.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-BnBF7CdE.js → usePermissionStatus-Zbsv_90x.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-aKrHzIiJ.js → usePullRequestActions-DGTJ6ne6.js} +3 -3
- package/dist/client/assets/useRegisterFieldControl-Cr87Snzk.js +2 -0
- package/dist/client/assets/useScopedModelAvailability-BEfh0WXx.js +2 -0
- package/dist/client/assets/useSettings-CLtJrOYI.js +3 -0
- package/dist/client/assets/{useT3ConnectAuthPrompt-CK8il-7e.js → useT3ConnectAuthPrompt-BYqrzQIx.js} +2 -2
- package/dist/client/assets/utils-DmfMX1v5.js +37 -0
- package/dist/client/assets/vcsRefInvalidation-nP-qgsHs.js +2 -0
- package/dist/client/assets/{vennDiagram-4TSXK5OY-BwVRZPOj.js → vennDiagram-4TSXK5OY-9Jx7JrgE.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-CYl4h3U-.js → wardley-WFR3VGLG-qG58RzFw.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-yHMYVGhg.js → wardleyDiagram-VM6X3IG4-8Ml3tzfR.js} +2 -2
- package/dist/client/assets/welcome-CPcQsM9H.js +2 -0
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-Td7MQ_xN.js → xychartDiagram-S5SC5T6Z-C-u_0wo0.js} +2 -2
- package/dist/client/index.html +11 -8
- package/package.json +1 -1
- package/dist/client/assets/ChatGptUsageButton-7IZqWaQq.js +0 -2
- package/dist/client/assets/ChatMarkdown-D3ITm4U-.js +0 -65
- package/dist/client/assets/CodexSetupSection.logic-DyTuN6tg.js +0 -2
- package/dist/client/assets/ComboboxClear-BXGqqvsR.js +0 -2
- package/dist/client/assets/CompositeRoot-CW06ANMY.js +0 -2
- package/dist/client/assets/DevicePanel-zG3feCFw.js +0 -2
- package/dist/client/assets/DialogTitle-7tvQYVxE.js +0 -2
- package/dist/client/assets/DiffFileTree-BhSPT6m_.js +0 -2
- package/dist/client/assets/DiffPanel-D7QMWq_A.js +0 -2
- package/dist/client/assets/FilePreviewPanel-CSKeM-xZ.js +0 -34
- package/dist/client/assets/FoldedSettingsSection-BJm8ZaTy.js +0 -2
- package/dist/client/assets/PreviewPanel-BEWZuH6o.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-BRRQlvgR.js +0 -2
- package/dist/client/assets/ProjectIconPickerDialog-DXSyEGg8.js +0 -2
- package/dist/client/assets/ProviderModelPicker-CpgHpUCG.js +0 -2
- package/dist/client/assets/ProviderSettingsForm-CaNO8FYK.js +0 -2
- package/dist/client/assets/PullRequestCodeTab-DwqL4aAJ.js +0 -6
- package/dist/client/assets/RedactedSensitiveText-citJBx4E.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-BXOG7dPV.js +0 -4
- package/dist/client/assets/ScopedSwitch-2MBm4Srn.js +0 -2
- package/dist/client/assets/T3ConnectAccountPages-C6qHq26m.js +0 -2
- package/dist/client/assets/ThreadTerminalDrawer-C1NDkTSs.js +0 -5
- package/dist/client/assets/UsageLimits-BUS51Bjr.js +0 -2
- package/dist/client/assets/WorkspaceBreadcrumb-DX3xH6tC.js +0 -2
- package/dist/client/assets/WorkspacePageContainer-BFo6qTGJ.js +0 -2
- package/dist/client/assets/_chat-B3j3XTUJ.js +0 -58
- package/dist/client/assets/architecture-7GRP2DOG-nO5xG-8k.js +0 -1
- package/dist/client/assets/arrow-left-yEW5WFYj.js +0 -1
- package/dist/client/assets/arrow-right-BzVZfSb7.js +0 -1
- package/dist/client/assets/arrow-up-down-DjL7trCL.js +0 -1
- package/dist/client/assets/assets-BxSVuao2.js +0 -2
- package/dist/client/assets/bell-ue7A6JFg.js +0 -1
- package/dist/client/assets/blocks-De0WwZYY.js +0 -1
- package/dist/client/assets/bot-_T9E-nkd.js +0 -1
- package/dist/client/assets/calendar-clock-DXFNSdXM.js +0 -1
- package/dist/client/assets/channel-BE0ymtNV.js +0 -2
- package/dist/client/assets/chart-no-axes-column-Dx_cyfN9.js +0 -1
- package/dist/client/assets/checkbox-CIeee0-J.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-YRduSbl9.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-YRduSbl9.js +0 -2
- package/dist/client/assets/collapsible-C3qenpEI.js +0 -2
- package/dist/client/assets/corner-left-up-DohBMTTI.js +0 -1
- package/dist/client/assets/device-BRhRKysY.js +0 -2
- package/dist/client/assets/download-B587khDU.js +0 -1
- package/dist/client/assets/dynamic-R3OtJZHK.js +0 -3
- package/dist/client/assets/earth-26IFbzWm.js +0 -1
- package/dist/client/assets/ellipsis-BScTTB_n.js +0 -1
- package/dist/client/assets/empty-uoiaKPHo.js +0 -2
- package/dist/client/assets/entities-DNKDCsf2.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-6XFarcvj.js +0 -1
- package/dist/client/assets/eye-DTlv8Vet.js +0 -1
- package/dist/client/assets/file-search-gFHOfI6S.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-DQXavjl4.js +0 -1
- package/dist/client/assets/fold-vertical-BNQMJ6gu.js +0 -1
- package/dist/client/assets/folder-cog-CYwPj2H1.js +0 -2
- package/dist/client/assets/folder-git-2-6ON-nxul.js +0 -1
- package/dist/client/assets/folder-open-Rja0vZjv.js +0 -1
- package/dist/client/assets/folder-plus-CfJ5c8wa.js +0 -1
- package/dist/client/assets/git-branch-BuWXMpmq.js +0 -1
- package/dist/client/assets/grip-vertical-qjSy6wXX.js +0 -1
- package/dist/client/assets/hard-drive-DAxFba08.js +0 -1
- package/dist/client/assets/history-CrY611k2.js +0 -1
- package/dist/client/assets/house-CKS51Vx8.js +0 -1
- package/dist/client/assets/index-G0rP4C-v.js +0 -3
- package/dist/client/assets/kbd-D4mDfHPa.js +0 -2
- package/dist/client/assets/keybindings-CzL-fWkh.js +0 -2
- package/dist/client/assets/keyboard-Y7zJXIRo.js +0 -1
- package/dist/client/assets/link-CbhoiCa8.js +0 -1
- package/dist/client/assets/list-Cq4wtMwR.js +0 -1
- package/dist/client/assets/main-D9nJEeym.css +0 -2
- package/dist/client/assets/main-D9z9rMK1.js +0 -27
- package/dist/client/assets/message-circle-question-mark-BwzHSg4C.js +0 -1
- package/dist/client/assets/message-square-DcSgYDZ6.js +0 -1
- package/dist/client/assets/message-square-dashed-Cu56tC0F.js +0 -1
- package/dist/client/assets/mouse-pointer-2-DxhF1Woc.js +0 -1
- package/dist/client/assets/number-field-BLz8W5SU.js +0 -2
- package/dist/client/assets/openFileInPreview-l6IXWIxV.js +0 -2
- package/dist/client/assets/palette-B79srcx1.js +0 -1
- package/dist/client/assets/panel-left-Bp59PK2R.js +0 -1
- package/dist/client/assets/panel-tab-close-button-B2GW1bDy.js +0 -2
- package/dist/client/assets/panels-top-left-CC3HCiIs.js +0 -1
- package/dist/client/assets/plug-B1ccrQcT.js +0 -2
- package/dist/client/assets/popover-6BYEGLLK.js +0 -2
- package/dist/client/assets/primary-Cc8Am8Ju.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-N7pLty-_.js +0 -2
- package/dist/client/assets/projectFilesQueryState-CrGsc81w.js +0 -2
- package/dist/client/assets/projectScriptEditor-RR3KkKhh.js +0 -2
- package/dist/client/assets/pullRequests-KhjrMCa0.js +0 -2
- package/dist/client/assets/puzzle-Df6hPSJS.js +0 -2
- package/dist/client/assets/queries-Cn1FJB1_.js +0 -2
- package/dist/client/assets/query-CK8MOmXr.js +0 -2
- package/dist/client/assets/radio-group-CM6Ra-QS.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-CIxA0Vp4.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-Czs81Kdn.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-B7O8OPsa.js +0 -1
- package/dist/client/assets/rightPanelStore-6LLb3GY0.js +0 -2
- package/dist/client/assets/rotate-ccw-dcahmZQ2.js +0 -1
- package/dist/client/assets/rotate-cw-CIep6yNT.js +0 -1
- package/dist/client/assets/runtime-BVgeNXTV.js +0 -2
- package/dist/client/assets/runtime-CCr9UADV.js +0 -6
- package/dist/client/assets/scheduledTasksSettings.logic-ozIaTRfT.js +0 -3
- package/dist/client/assets/select-BiARKKgd.js +0 -2
- package/dist/client/assets/server-B26doYv6.js +0 -2
- package/dist/client/assets/session-CQXL-cTI.js +0 -2
- package/dist/client/assets/session-logic-C0mrkZ0j.js +0 -13
- package/dist/client/assets/settings-2-C2dIdVBr.js +0 -1
- package/dist/client/assets/settings-B5Dj0jhP.js +0 -2
- package/dist/client/assets/settings-DiBtchmK.js +0 -1
- package/dist/client/assets/settings.appearance-Di8HZa2Q.js +0 -2
- package/dist/client/assets/settings.archived-By34XjbG.js +0 -2
- package/dist/client/assets/settings.connections-BJuKrJhl.js +0 -2
- package/dist/client/assets/settings.decisions-BO8hfyYm.js +0 -2
- package/dist/client/assets/settings.general-RyWWgxqp.js +0 -2
- package/dist/client/assets/settings.integrations--N8SMmw7.js +0 -2
- package/dist/client/assets/settings.open-source-licenses-BmgFSigO.js +0 -2
- package/dist/client/assets/settings.providers-Cvt1-bmr.js +0 -3
- package/dist/client/assets/settings.scheduled-tasks-D5IG4nj_.js +0 -2
- package/dist/client/assets/settings.source-control-R63Z9kEM.js +0 -2
- package/dist/client/assets/settings.storage-J1kthey9.js +0 -2
- package/dist/client/assets/settingsLayout-BzyY4qHt.js +0 -3
- package/dist/client/assets/shield-question-mark-l31p7uuJ.js +0 -1
- package/dist/client/assets/skeleton-CtSxs1y1.js +0 -2
- package/dist/client/assets/square-menu-Bq3HnG2U.js +0 -2
- package/dist/client/assets/square-pen-CxvvUOOt.js +0 -1
- package/dist/client/assets/square-plus-B9j2jkOq.js +0 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-BFcRJjAO.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-B7z2b1Qv.js +0 -9
- package/dist/client/assets/text-search-DsadxNJw.js +0 -1
- package/dist/client/assets/themePalette-BZeqG2Hu.js +0 -5
- package/dist/client/assets/threadSort-BvhI6zOp.js +0 -2
- package/dist/client/assets/toast-Bm36EaG6.js +0 -2
- package/dist/client/assets/tooltip-Df-4YKs5.js +0 -2
- package/dist/client/assets/unfold-vertical--twzQtvn.js +0 -1
- package/dist/client/assets/usage-B26GT0RK.js +0 -2
- package/dist/client/assets/use-atom-command-CiEeUGsC.js +0 -2
- package/dist/client/assets/useHandleNewThread-DTz3ztCG.js +0 -2
- package/dist/client/assets/useNavigate-BK_XZ1It.js +0 -2
- package/dist/client/assets/useRegisterFieldControl-Daf1iBkI.js +0 -2
- package/dist/client/assets/useScopedModelAvailability-IKTxpeQL.js +0 -2
- package/dist/client/assets/useSettings-CckatJFa.js +0 -3
- package/dist/client/assets/utils-DmS758az.js +0 -37
- package/dist/client/assets/vcsRefInvalidation-lkYjTxah.js +0 -2
- package/dist/client/assets/welcome-CGBWwWzE.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Al as n,Bt as r,Db as i,Ft as a,Kb as o,Mt as s,Pt as c,Tb as l,Un as u,Vt as d,kl as f,ma as p,or as m,qt as h,sr as g,t as _,tn as v,vl as y,wx as b,xs as x}from"./utils-DmS758az.js";import{t as S}from"./chevron-down-DHV04o66.js";import{t as C}from"./external-link-NWS0I_zo.js";import{t as w}from"./eye-off-BJFC-Vn7.js";import{a as T,n as E,t as D}from"./tooltip-Df-4YKs5.js";import{a as O,i as k,n as A,r as j,t as M}from"./number-field-BLz8W5SU.js";import{a as N,c as P,o as F,s as ee,t as te}from"./select-BiARKKgd.js";import{t as ne}from"./useNavigate-BK_XZ1It.js";import{i as re}from"./toast-Bm36EaG6.js";import{F as ie,I as ae,N as oe,P as se,f as ce,z as le}from"./useSettings-CckatJFa.js";import{f as ue,t as de}from"./server-B26doYv6.js";import{n as fe}from"./query-CK8MOmXr.js";import{t as pe}from"./use-atom-command-CiEeUGsC.js";import{t as I}from"./skeleton-CtSxs1y1.js";import{t as me}from"./textarea-DZLyhzuZ.js";import{t as he}from"./input-u5qjnfMr.js";import{a as ge,i as _e,n as ve,o as L,r as ye,t as be}from"./empty-uoiaKPHo.js";import{n as xe,t as R}from"./collapsible-C3qenpEI.js";import{t as Se}from"./sourceControl-C3RSledt.js";import{g as Ce,m as we}from"./Icons-C12feMOO.js";import{o as Te,s as z}from"./threadSort-BvhI6zOp.js";import{n as B}from"./pullRequestIcons-BWiN_14V.js";import{I as Ee,N as De,P as Oe,a as V,f as ke,i as Ae,n as je,o as Me,r as Ne,s as Pe,t as Fe,z as Ie}from"./settingsLayout-BzyY4qHt.js";import{Ea as Le,Ia as H,Ti as Re,ar as ze,ir as U,yn as Be,zo as Ve}from"./main-D9z9rMK1.js";import{n as He,t as Ue}from"./RedactedSensitiveText-citJBx4E.js";import{t as We}from"./ProviderModelPicker-CpgHpUCG.js";import{t as Ge}from"./useScopedModelAvailability-IKTxpeQL.js";import{t as Ke}from"./ProjectDefaultsSettings-BRRQlvgR.js";import{r as qe,t as Je}from"./ProviderSettingsForm-CaNO8FYK.js";var W=b(),G=e(t(),1),K=e(p(),1);function Ye({environmentId:e,definition:t,onSaved:n}){let r=ce(e,e=>e.sourceControlHosts[t.kind]),i=pe(ue.updateSettings,{label:`save ${t.label} settings`}),[a,o]=(0,G.useState)(!1),s={settingsSchema:t.settings},c=Object.values(r??{}).some(e=>e!==``),l=async r=>{o(!0);try{(await i({environmentId:e,input:{patch:{sourceControlHosts:{[t.kind]:r}}}}))._tag===`Success`&&n()}finally{o(!1)}};return(0,K.jsxs)(`fieldset`,{disabled:a,className:`contents`,children:[(0,K.jsx)(Je,{definition:s,value:r??{},idPrefix:`source-control-${t.kind}-${e}`,variant:`settings`,onChange:e=>{let t=e??{},n=Object.fromEntries(Object.entries(t).filter(([e,t])=>r?.[e]!==t)),i=Object.keys(r??{}).filter(e=>!(e in t));l({...n,...Object.fromEntries(i.map(e=>[e,``]))})}}),c?(0,K.jsx)(`div`,{className:`flex justify-end pt-2`,children:(0,K.jsx)(m,{size:`xs`,variant:`outline`,onClick:()=>void l(Object.fromEntries(Object.keys(r??{}).map(e=>[e,``]))),children:`Remove`})}):null]})}function Xe(e){return[...new Set(e.map(e=>e.host))].map(t=>{let n=e.filter(e=>e.host===t),r=n.filter(e=>e.environmentVariable===void 0),i=r.filter(e=>e.authenticated);return{host:t,activeAccount:(i.find(e=>e.active)??i[0])?.account??null,selectable:i.map(e=>e.account),broken:r.filter(e=>!e.authenticated),environmentVariable:n.find(e=>e.environmentVariable)?.environmentVariable??null}})}function Ze(e,t,n){let r=e[t],i=n.enabled??r?.enabled??!0,a=n.account===void 0?r?.account:n.account??void 0,{[t]:o,...s}=e;return i&&a===void 0?s:{...s,[t]:{enabled:i,...a===void 0?{}:{account:a}}}}var q=`active gh account`;function J(e){let t=(0,W.c)(4),n;return t[0]!==e.account||t[1]!==e.label||t[2]!==e.revealed?(n=e.revealed?(0,K.jsx)(`span`,{className:`min-w-0 truncate font-mono text-2xs`,children:e.account}):(0,K.jsxs)(`span`,{className:`min-w-0 truncate font-mono text-2xs`,children:[(0,K.jsx)(`span`,{className:`select-none blur-xs`,"aria-hidden":!0,children:He(e.account)}),(0,K.jsx)(`span`,{className:`sr-only`,children:e.label??`Hidden account`})]}),t[0]=e.account,t[1]=e.label,t[2]=e.revealed,t[3]=n):n=t[3],n}function Qe({environmentId:e,auth:t,onSaved:n}){let r=ce(e,Te).hosts,i=pe(ue.updateSettings,{label:`save GitHub account settings`}),[a,o]=(0,G.useState)(!1),[s,c]=(0,G.useState)(!1),l=Xe(t.accounts??[]),u=async(t,a)=>{o(!0);try{(await i({environmentId:e,input:{patch:{sourceControlHosts:{github:{hosts:Ze(r,t,a)}}}}}))._tag===`Success`&&n()}finally{o(!1)}};return l.length===0?(0,K.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Sign in with `,(0,K.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-2xs`,children:`gh auth login`}),` on the server host, then rescan to choose accounts here.`]}):(0,K.jsxs)(`div`,{className:`grid gap-4`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,K.jsxs)(`p`,{className:`max-w-2xl text-xs leading-relaxed text-muted-foreground`,children:[`Choose which `,(0,K.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-2xs`,children:`gh`}),` login each GitHub host uses, or turn a host off.`]}),(0,K.jsx)(m,{size:`icon-xs`,variant:`ghost-muted`,onClick:()=>c(e=>!e),"aria-label":s?`Hide GitHub accounts`:`Reveal GitHub accounts`,"aria-pressed":s,children:s?(0,K.jsx)(w,{}):(0,K.jsx)(Ve,{})})]}),l.map(e=>{let t=r[e.host],n=t?.enabled??!0,i=t?.account!==void 0&&!e.selectable.includes(t.account),o=t?.account!==void 0&&!i?t.account:q;return(0,K.jsxs)(`div`,{className:`grid gap-2`,children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,K.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,K.jsx)(`span`,{className:`text-xs font-medium text-foreground`,children:e.host}),e.selectable.length===1&&e.selectable[0]!==void 0?(0,K.jsxs)(`p`,{className:`flex min-w-0 items-center gap-1 text-xs text-muted-foreground`,children:[(0,K.jsx)(`span`,{children:`Signed in as`}),(0,K.jsx)(J,{revealed:s,account:e.selectable[0]})]}):null]}),(0,K.jsx)(Le,{checked:n,disabled:a,"aria-label":`Use GitHub on ${e.host}`,onCheckedChange:t=>void u(e.host,{enabled:t})})]}),e.selectable.length>1?(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,K.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Account`}),(0,K.jsx)(`div`,{className:`w-64 max-w-full`,children:(0,K.jsxs)(te,{value:o,disabled:a||!n,onValueChange:t=>{typeof t==`string`&&u(e.host,{account:t===q?null:t})},children:[(0,K.jsx)(ee,{size:`sm`,"aria-label":`GitHub account for ${e.host}`,children:(0,K.jsx)(P,{children:t=>t===q?(0,K.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[`Active gh account`,e.activeAccount?(0,K.jsxs)(K.Fragment,{children:[`(`,(0,K.jsx)(J,{revealed:s,account:e.activeAccount}),`)`]}):null]}):(0,K.jsx)(J,{revealed:s,account:t})})}),(0,K.jsxs)(F,{align:`end`,alignItemWithTrigger:!1,children:[(0,K.jsx)(N,{value:q,children:(0,K.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1`,children:[`Active gh account`,e.activeAccount?(0,K.jsxs)(K.Fragment,{children:[`(`,(0,K.jsx)(J,{revealed:s,account:e.activeAccount}),`)`]}):null]})}),e.selectable.map((e,t)=>(0,K.jsx)(N,{value:e,children:(0,K.jsx)(J,{revealed:s,account:e,label:`Account ${t+1}`})},e))]})]})})]}):null,i?(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,K.jsx)(`p`,{className:`text-xs text-warning`,children:`The chosen login is no longer signed in, so the active gh login is used.`}),(0,K.jsx)(m,{size:`xs`,variant:`outline`,disabled:a,onClick:()=>void u(e.host,{account:null}),children:`Use active login`})]}):null,e.broken.map(e=>(0,K.jsxs)(`p`,{className:`flex min-w-0 flex-wrap items-center gap-1 text-xs text-muted-foreground/70`,children:[(0,K.jsx)(J,{revealed:s,account:e.account}),(0,K.jsxs)(`span`,{children:[`can't be used: `,e.error??`gh reports this login as invalid.`]})]},e.account)),e.environmentVariable?(0,K.jsxs)(`p`,{className:`text-xs text-warning`,children:[e.environmentVariable,` is set on the server, so it overrides the account chosen here until it is unset.`]}):null]},e.host)})]})}var Y=`github.com`;function $e(e){return`https://${e}/settings/personal-access-tokens/new`}function et({environmentId:e,onSaved:t}){let{tokens:n}=ce(e,Te),r=pe(ue.updateSettings,{label:`save GitHub token`}),[i,a]=(0,G.useState)(Y),[o,s]=(0,G.useState)(``),[c,l]=(0,G.useState)(!1),u=i.trim().toLowerCase(),d=(n[u]??``).length>0,f=Object.entries(n).filter(([,e])=>e.length>0).map(([e])=>e),p=async(i,a)=>{l(!0);try{(await r({environmentId:e,input:{patch:{sourceControlHosts:{github:{tokens:{...n,[i]:a}}}}}}))._tag===`Success`&&(s(``),t())}finally{l(!1)}};return(0,K.jsx)(`form`,{className:`grid gap-3`,onSubmit:e=>{e.preventDefault(),u&&o.trim()&&p(u,o.trim())},children:(0,K.jsxs)(`fieldset`,{disabled:c,className:`contents`,children:[(0,K.jsxs)(`p`,{className:`max-w-2xl text-xs leading-relaxed text-muted-foreground`,children:[`A token saved here is used before`,` `,(0,K.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-2xs`,children:`GH_TOKEN`}),` and the`,` `,(0,K.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-2xs`,children:`gh`}),` login, so GitHub works without the GitHub CLI. Give it read and write access to pull requests and contents.`,` `,(0,K.jsxs)(g,{render:(0,K.jsx)(`a`,{href:$e(u||Y),target:`_blank`,rel:`noreferrer noopener`}),children:[`Create a token`,(0,K.jsx)(C,{"aria-hidden":!0,className:`size-3`})]})]}),(0,K.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-[12rem_1fr]`,children:[(0,K.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,K.jsx)(Re,{htmlFor:`github-token-host-${e}`,children:`Host`}),(0,K.jsx)(he,{id:`github-token-host-${e}`,autoComplete:`off`,size:`sm`,placeholder:Y,value:i,onChange:e=>a(e.target.value)})]}),(0,K.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,K.jsx)(Re,{htmlFor:`github-token-${e}`,children:`Token`}),(0,K.jsx)(qe,{id:`github-token-${e}`,size:`sm`,configured:d,value:o,onChange:e=>s(e.target.value)})]})]}),(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:f.length===0?`No token saved; the server uses GH_TOKEN or the gh login.`:`Saved for ${f.join(`, `)}.`}),(0,K.jsxs)(`div`,{className:`flex shrink-0 gap-2`,children:[d?(0,K.jsx)(m,{size:`xs`,variant:`outline`,disabled:c,onClick:()=>void p(u,``),children:`Remove`}):null,(0,K.jsx)(m,{type:`submit`,size:`xs`,disabled:!u||!o.trim()||c,children:`Save`})]})]})]})})}var X={static:`Static prefix`,semantic:`Semantic prefix`,custom:`Custom instructions`};function tt(){let e=(0,W.c)(40),t=De(),{targets:n}=Ie(),r;e[0]===n?r=e[1]:(r=n.map(it).join(`,`),e[0]=n,e[1]=r);let i=r,a=(0,G.useRef)(!1),o=(0,G.useRef)(!1),s=Ee(),c;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=[`branchNamingMode`],e[2]=c):c=e[2];let l=Oe(c),u;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`branchNamePrefix`],e[3]=u):u=e[3];let d=Oe(u),p;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=[`branchNameInstructions`],e[4]=p):p=e[4];let m=Oe(p),h,g;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(h=[`branchNamingMode`],g=U(`worktree-branch-naming`),e[5]=h,e[6]=g):(h=e[5],g=e[6]);let _=!l&&t.branchNamingMode===`semantic`?`The model chooses a prefix that describes the work, such as feat/add-search, fix/login-timeout, or refactor/auth.`:void 0,v;e[7]!==l||e[8]!==t.branchNamingMode||e[9]!==s?(v=t.branchNamingMode!==f.branchNamingMode||l?(0,K.jsx)(Ne,{label:`branch naming`,onClick:()=>s({branchNamingMode:f.branchNamingMode})}):null,e[7]=l,e[8]=t.branchNamingMode,e[9]=s,e[10]=v):v=e[10];let b=l?null:t.branchNamingMode,x;e[11]===s?x=e[12]:(x=e=>{y.literals.includes(e)&&s({branchNamingMode:e})},e[11]=s,e[12]=x);let S;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,K.jsx)(ee,{size:`sm`,"aria-label":`Worktree branch naming`,children:(0,K.jsx)(P,{children:rt})}),e[13]=S):S=e[13];let C;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,K.jsx)(F,{align:`end`,alignItemWithTrigger:!1,children:y.literals.map(nt)}),e[14]=C):C=e[14];let w;e[15]!==b||e[16]!==x?(w=(0,K.jsxs)(te,{value:b,onValueChange:x,children:[S,C]}),e[15]=b,e[16]=x,e[17]=w):w=e[17];let T;e[18]!==w||e[19]!==_||e[20]!==v?(T=(0,K.jsx)(V,{serverScoped:!0,settingKeys:h,...g,description:`Choose how new worktree branches are named from your first message.`,status:_,resetAction:v,control:w}),e[18]=w,e[19]=_,e[20]=v,e[21]=T):T=e[21];let E;e[22]!==l||e[23]!==d||e[24]!==i||e[25]!==t.branchNamePrefix||e[26]!==t.branchNamingMode||e[27]!==s?(E=!l&&t.branchNamingMode===`static`?(0,K.jsx)(V,{serverScoped:!0,settingKeys:[`branchNamePrefix`],title:`Branch prefix`,description:`For example, p4 or p4/ produces p4/add-search. Leave empty for no prefix.`,resetAction:d||t.branchNamePrefix!==f.branchNamePrefix?(0,K.jsx)(Ne,{label:`branch prefix`,onClick:()=>s({branchNamePrefix:f.branchNamePrefix})}):null,control:(0,K.jsx)(he,{"aria-label":`Branch prefix`,autoCapitalize:`none`,spellCheck:!1,onChange:()=>{a.current=!0},placeholder:d?`Mixed`:`No prefix`,defaultValue:d?``:t.branchNamePrefix,onBlur:e=>{let n=e.target.value.trim();a.current&&(d||n!==t.branchNamePrefix)&&s({branchNamePrefix:n}),a.current=!1}},`${i}:${d}:${t.branchNamePrefix}`)}):null,e[22]=l,e[23]=d,e[24]=i,e[25]=t.branchNamePrefix,e[26]=t.branchNamingMode,e[27]=s,e[28]=E):E=e[28];let D;e[29]!==m||e[30]!==l||e[31]!==i||e[32]!==t.branchNameInstructions||e[33]!==t.branchNamingMode||e[34]!==s?(D=!l&&t.branchNamingMode===`custom`?(0,K.jsx)(V,{serverScoped:!0,settingKeys:[`branchNameInstructions`],title:`Branch naming instructions`,description:`Appended to the naming prompt. The model returns the complete branch name; no prefix or suffix is added.`,resetAction:m||t.branchNameInstructions!==``?(0,K.jsx)(Ne,{label:`branch naming instructions`,onClick:()=>s({branchNameInstructions:``})}):null,children:(0,K.jsx)(`div`,{className:`mt-3 max-w-2xl pb-3.5`,children:(0,K.jsx)(me,{"aria-label":`Branch naming instructions`,onChange:()=>{o.current=!0},rows:4,defaultValue:m?``:t.branchNameInstructions,placeholder:m?`Mixed. Enter instructions to apply to all selected targets.`:`Use julius/ followed by the issue ID and a short description.`,onBlur:e=>{let n=e.target.value.trim();o.current&&(m||n!==t.branchNameInstructions)&&s({branchNameInstructions:n}),o.current=!1}},`${i}:${m}:${t.branchNameInstructions}`)})}):null,e[29]=m,e[30]=l,e[31]=i,e[32]=t.branchNameInstructions,e[33]=t.branchNamingMode,e[34]=s,e[35]=D):D=e[35];let O;return e[36]!==T||e[37]!==E||e[38]!==D?(O=(0,K.jsxs)(K.Fragment,{children:[T,E,D]}),e[36]=T,e[37]=E,e[38]=D,e[39]=O):O=e[39],O}function nt(e){return(0,K.jsx)(N,{value:e,children:X[e]},e)}function rt(e){return e===null?`Mixed`:X[e]}function it(e){return`${e.environmentId}:${e.projectId}`}var at={repo_conventions:{label:`Repository conventions`,description:`In each project, matches recent change descriptions and change request titles.`},conventional_commits:{label:`Conventional Commits`,description:`Use Conventional Commit prefixes and keep change request text concise.`},custom:{label:`Custom instructions`,description:`Use your instructions for change descriptions and change requests in every project.`}};function ot(){let e=(0,W.c)(80),t=De(),i=Ee(),o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[`reviewGuidesEnabled`],e[0]=o):o=e[0];let l=Oe(o),u=ne(),{environment:f,connectedEnvironments:p,targets:g,target:_}=Ie(),y=f?.environmentId??null,b=p.length>0,S=f?.serverConfig?.providers??de,C;e[1]===g?C=e[2]:(C=e=>{let t=g[0];return t!==void 0&&g.some(n=>n.settings.sourceControlWritingStyle[e]!==t.settings.sourceControlWritingStyle[e])},e[1]=g,e[2]=C);let w=C,T;e[3]===w?T=e[4]:(T=w(`mode`),e[3]=w,e[4]=T);let E=T,D;e[5]===w?D=e[6]:(D=w(`customInstructions`),e[5]=w,e[6]=D);let O=D,k;e[7]===w?k=e[8]:(k=w(`followChangeRequestTemplates`),e[7]=w,e[8]=k);let A=k,j=E||O,M;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(M=[`sourceControlWriterModelSelection`],e[9]=M):M=e[9];let N=Oe(M),ie;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(ie=[`reviewGuideModelSelection`],e[10]=ie):ie=e[10];let ae=Oe(ie),ce;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(ce=[`reviewGuideInstructions`],e[11]=ce):ce=e[11];let le=Oe(ce),ue=(0,G.useRef)(!1),fe;e[12]===g?fe=e[13]:(fe=g.map(mt).join(`,`),e[12]=g,e[13]=fe);let pe=fe,I=(0,G.useRef)(null),[he,ge]=(0,G.useState)(!1),[_e,ve]=(0,G.useState)(null),L=t.sourceControlWritingStyle,ye=n.sourceControlWritingStyle,be=j||L.mode!==ye.mode||L.customInstructions!==ye.customInstructions,xe=S.filter(pt),R=h(r(d(xe),t,_?.projectId??null)),Se=new Set(R.filter(ft).map(dt)),Ce=xe.filter(e=>Se.has(e.instanceId)),we=c(t,Ce),Te=t.sourceControlWriterModelSelection!==null,z=c({...t,textGenerationModelSelection:se(t,Ce,_?.projectId??null)},Ce),B=R.some(e=>e.instanceId===we.instanceId&&e.enabled&&e.isAvailable),ke=s(t,Ce,z.instanceId,z.model),Ae=Ge(t,R),Me=R.find(e=>e.instanceId===z.instanceId),Fe=t.reviewGuideModelSelection!==null,H=c({...t,textGenerationModelSelection:oe(t,xe,_?.projectId??null)},xe),Re=s(t,xe,H.instanceId,H.model),ze=R.find(e=>e.instanceId===H.instanceId),Be=Pe,Ve;e[14]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=(0,K.jsx)(tt,{}),e[14]=Ve):Ve=e[14];let He;e[15]===Symbol.for(`react.memo_cache_sentinel`)?(He=[`sourceControlWritingStyle`],e[15]=He):He=e[15];let Ue;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=U(`source-control-writing-style`),e[16]=Ue):Ue=e[16];let Ke=at[L.mode],qe;e[17]!==be||e[18]!==i?(qe=be?(0,K.jsx)(Ne,{label:`source control writing style`,onClick:()=>i({sourceControlWritingStyle:{mode:ye.mode,customInstructions:ye.customInstructions}})}):null,e[17]=be,e[18]=i,e[19]=qe):qe=e[19];let Je=E?null:L.mode,Ye;e[20]===i?Ye=e[21]:(Ye=e=>{let t=I.current?.value.trim();i({sourceControlWritingStyle:{mode:e,...t===void 0?{}:{customInstructions:t}}})},e[20]=i,e[21]=Ye);let Xe;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(Xe=(0,K.jsx)(ee,{size:`sm`,className:`w-full sm:w-56`,"aria-label":`Source control writing style`,children:(0,K.jsx)(P,{children:ut})}),e[22]=Xe):Xe=e[22];let Ze;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(Ze=Object.keys(at),e[23]=Ze):Ze=e[23];let q;e[24]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,K.jsx)(F,{align:`end`,alignItemWithTrigger:!1,children:Ze.map(lt)}),e[24]=q):q=e[24];let J;e[25]!==Je||e[26]!==Ye?(J=(0,K.jsxs)(te,{value:Je,onValueChange:Ye,children:[Xe,q]}),e[25]=Je,e[26]=Ye,e[27]=J):J=e[27];let Qe;e[28]!==_e||e[29]!==he||e[30]!==L.customInstructions||e[31]!==L.mode||e[32]!==i||e[33]!==j?(Qe=j?(0,K.jsx)(`div`,{className:`mt-3 max-w-2xl space-y-2 pb-3.5`,children:he?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(me,{value:_e??``,onChange:e=>ve(e.target.value),rows:4,"aria-label":`Custom source control instructions for all selected environments`,placeholder:`Write the instructions each selected environment should use.`}),(0,K.jsx)(m,{size:`sm`,variant:`outline`,disabled:_e===null,onClick:()=>{_e!==null&&(i({sourceControlWritingStyle:{mode:`custom`,customInstructions:_e.trim()}}),ge(!1))},children:`Apply instructions to all`})]}):(0,K.jsx)(m,{size:`sm`,variant:`outline`,onClick:()=>{ve(null),ge(!0)},children:`Write custom instructions for all`})}):L.mode===`custom`?(0,K.jsx)(`div`,{className:`mt-3 max-w-2xl pb-3.5`,children:(0,K.jsx)(me,{ref:I,defaultValue:L.customInstructions,onBlur:e=>{let t=e.target.value.trim();t!==L.customInstructions&&i({sourceControlWritingStyle:{customInstructions:t}})},rows:4,placeholder:`Keep titles concise. Use short bullet points in descriptions.`,"aria-label":`Custom source control writing instructions`},L.customInstructions)}):null,e[28]=_e,e[29]=he,e[30]=L.customInstructions,e[31]=L.mode,e[32]=i,e[33]=j,e[34]=Qe):Qe=e[34];let Y;e[35]!==Ke.description||e[36]!==qe||e[37]!==J||e[38]!==Qe||e[39]!==j?(Y=(0,K.jsx)(V,{serverScoped:!0,settingKeys:He,mixed:j,...Ue,description:Ke.description,resetAction:qe,control:J,children:Qe}),e[35]=Ke.description,e[36]=qe,e[37]=J,e[38]=Qe,e[39]=j,e[40]=Y):Y=e[40];let $e;e[41]===Symbol.for(`react.memo_cache_sentinel`)?($e=[`sourceControlWritingStyle`],e[41]=$e):$e=e[41];let et;e[42]===Symbol.for(`react.memo_cache_sentinel`)?(et=U(`follow-change-request-templates`),e[42]=et):et=e[42];let X;e[43]!==L.followChangeRequestTemplates||e[44]!==A||e[45]!==i?(X=A||L.followChangeRequestTemplates!==ye.followChangeRequestTemplates?(0,K.jsx)(Ne,{label:`change request templates`,onClick:()=>i({sourceControlWritingStyle:{followChangeRequestTemplates:ye.followChangeRequestTemplates}})}):null,e[43]=L.followChangeRequestTemplates,e[44]=A,e[45]=i,e[46]=X):X=e[46];let nt=!A&&L.followChangeRequestTemplates,rt;e[47]===i?rt=e[48]:(rt=e=>i({sourceControlWritingStyle:{followChangeRequestTemplates:!!e}}),e[47]=i,e[48]=rt);let it;e[49]!==nt||e[50]!==rt||e[51]!==A?(it=(0,K.jsx)(Le,{mixed:A,checked:nt,onCheckedChange:rt,"aria-label":`Follow change request templates`}),e[49]=nt,e[50]=rt,e[51]=A,e[52]=it):it=e[52];let ot;e[53]!==X||e[54]!==it||e[55]!==A?(ot=(0,K.jsx)(V,{serverScoped:!0,settingKeys:$e,mixed:A,...et,description:`Use the repository's template for change request descriptions when available.`,resetAction:X,control:it}),e[53]=X,e[54]=it,e[55]=A,e[56]=ot):ot=e[56];let ht,gt;e[57]===Symbol.for(`react.memo_cache_sentinel`)?(ht=[`sourceControlWriterModelSelection`],gt=U(`source-control-writer-model`),e[57]=ht,e[58]=gt):(ht=e[57],gt=e[58]);let _t=b?(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[Te&&!B?(0,K.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`No text generation providers available.`}):null,Te&&B?(0,K.jsx)(We,{environmentId:y,activeInstanceId:z.instanceId,model:z.model,lockedProvider:null,instanceEntries:R,modelOptionsByInstance:ke,triggerClassName:je,triggerAriaLabel:`Source control writer model`,...N?{triggerLabel:`Mixed`}:{},...y?{onOpenProviderSetup:e=>{u({to:`/settings/providers`,search:{environmentId:y,instanceId:e}})}}:{},getModelDisabledReason:Ae,onInstanceModelChange:(e,t)=>{let n=Ae(e,t);if(n){re.add({type:`error`,title:`Source control writer model not saved`,description:n});return}i({sourceControlWriterModelSelection:x(e,t)})}}):null,Te&&B&&!N&&Me?(0,K.jsx)(v,{provider:Me.driverKind,models:Me.models,model:z.model,prompt:``,onPromptChange:ct,modelOptions:z.options??[],allowPromptInjectedEffort:!1,planModeEnabled:t.planModeEnabled||a(z.options),triggerClassName:je,onModelOptionsChange:e=>i({sourceControlWriterModelSelection:x(z.instanceId,z.model,e)})}):null,(0,K.jsx)(Le,{checked:Te,disabled:!Te&&!B,onCheckedChange:e=>i({sourceControlWriterModelSelection:e?x(we.instanceId,we.model,we.options):null}),"aria-label":`Use a separate source control writer model`})]}):(0,K.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Connect an environment to choose its source control writer model.`}),vt;e[59]===_t?vt=e[60]:(vt=(0,K.jsx)(V,{serverScoped:!0,settingKeys:ht,...gt,description:`Model for source control text and branch or bookmark names. Off uses the environment's text generation model.`,control:_t}),e[59]=_t,e[60]=vt);let yt;e[61]===Symbol.for(`react.memo_cache_sentinel`)?(yt=[`reviewGuidesEnabled`],e[61]=yt):yt=e[61];let bt;e[62]===Symbol.for(`react.memo_cache_sentinel`)?(bt=U(`review-guides`),e[62]=bt):bt=e[62];let xt=!l&&t.reviewGuidesEnabled,Z;e[63]===i?Z=e[64]:(Z=e=>i({reviewGuidesEnabled:!!e}),e[63]=i,e[64]=Z);let Q;e[65]!==l||e[66]!==xt||e[67]!==Z?(Q=(0,K.jsx)(Le,{mixed:l,checked:xt,onCheckedChange:Z,"aria-label":`Review guides`}),e[65]=l,e[66]=xt,e[67]=Z,e[68]=Q):Q=e[68];let $;e[69]!==l||e[70]!==Q?($=(0,K.jsx)(V,{serverScoped:!0,settingKeys:yt,mixed:l,...bt,description:`Adds a Guide tab to pull requests: an agent writes a tour of the change, stop by stop, with the calls a maintainer should make.`,control:Q}),e[69]=l,e[70]=Q,e[71]=$):$=e[71];let St=t.reviewGuidesEnabled||l?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(V,{serverScoped:!0,settingKeys:[`reviewGuideModelSelection`],...U(`review-guide-model`),description:`Model that reads a pull request to write its review guide. It reads the change itself over many steps, so a stronger model helps. Off uses the source control writer model.`,control:b?(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(Fe||ae)&&B?(0,K.jsx)(We,{environmentId:y,activeInstanceId:H.instanceId,model:H.model,lockedProvider:null,instanceEntries:R,modelOptionsByInstance:Re,triggerClassName:je,triggerAriaLabel:`Review guide model`,...ae?{triggerLabel:`Mixed`}:{},getModelDisabledReason:Ae,onInstanceModelChange:(e,t)=>{let n=Ae(e,t);if(n){re.add({type:`error`,title:`Review guide model not saved`,description:n});return}i({reviewGuideModelSelection:x(e,t)})}}):null,Fe&&B&&!ae&&ze?(0,K.jsx)(v,{provider:ze.driverKind,models:ze.models,model:H.model,prompt:``,onPromptChange:st,modelOptions:H.options??[],allowPromptInjectedEffort:!1,planModeEnabled:t.planModeEnabled||a(H.options),triggerClassName:je,onModelOptionsChange:e=>i({reviewGuideModelSelection:x(H.instanceId,H.model,e)})}):null,(0,K.jsx)(Le,{mixed:ae,checked:!ae&&Fe,disabled:!Fe&&!B,onCheckedChange:e=>{if(!e){i({reviewGuideModelSelection:null});return}let t=Ae(z.instanceId,z.model);if(t){re.add({type:`error`,title:`Review guide model not saved`,description:t});return}i({reviewGuideModelSelection:x(z.instanceId,z.model,z.options)})},"aria-label":`Use a separate review guide model`})]}):(0,K.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Connect an environment to choose its review guide model.`})}),(0,K.jsx)(V,{serverScoped:!0,settingKeys:[`reviewGuideInstructions`],...U(`review-guide-instructions`),description:`Your preferences for review guides: what to show first, dwell on, or skip. The guide's format and coverage stay the same.`,resetAction:le||t.reviewGuideInstructions!==``?(0,K.jsx)(Ne,{label:`review guide instructions`,onClick:()=>i({reviewGuideInstructions:``})}):null,children:(0,K.jsx)(`div`,{className:`mt-3 max-w-2xl pb-3.5`,children:(0,K.jsx)(me,{"aria-label":`Review guide instructions`,onChange:()=>{ue.current=!0},rows:4,defaultValue:le?``:t.reviewGuideInstructions,placeholder:le?`Mixed. Enter instructions to apply to all selected targets.`:`Show service interfaces before implementations. Skip test files unless they change behavior. Keep summaries to two sentences.`,onBlur:e=>{let n=e.target.value.trim();ue.current&&(le||n!==t.reviewGuideInstructions)&&i({reviewGuideInstructions:n}),ue.current=!1}},`${pe}:${le}:${t.reviewGuideInstructions}`)})})]}):null,Ct;return e[72]!==Be||e[73]!==Ve||e[74]!==Y||e[75]!==ot||e[76]!==vt||e[77]!==$||e[78]!==St?(Ct=(0,K.jsxs)(Be,{id:`source-control-text-generation`,title:`Text generation`,children:[Ve,Y,ot,vt,$,St]}),e[72]=Be,e[73]=Ve,e[74]=Y,e[75]=ot,e[76]=vt,e[77]=$,e[78]=St,e[79]=Ct):Ct=e[79],Ct}function st(){}function ct(){}function lt(e){return(0,K.jsx)(N,{hideIndicator:!0,value:e,children:at[e].label},e)}function ut(e){return e===null?`Mixed`:at[e].label}function dt(e){return e.instanceId}function ft(e){return e.enabled&&e.isAvailable}function pt(e){return e.supportsTextGeneration!==!1}function mt(e){return`${e.environmentId}:${e.projectId}`}var ht={versionControlSystems:[],sourceControlProviders:[]},gt={git:we,jj:Ce},_t=[`primary`,`secondary`],vt=5;function yt(e){return Math.round(i(e)/1e3)}function bt(e){return e===null||!Number.isFinite(e)?0:Math.max(0,Math.round(e))}function xt(e,t){let n={...e.overrides,...t};for(let[e,t]of Object.entries(n))t===void 0&&delete n[e];return{backgroundActivity:{schemaVersion:1,profile:`custom`,baseProfile:ie(e),overrides:n}}}function Z(e){return o(e)}function Q(e){return`auth`in e}function $(e){return!Q(e)&&!e.implemented}function St(e){return e.status===`authenticated`?{label:`Authenticated`,badge:null}:e.status===`unauthenticated`?{label:`Not authenticated`,badge:`warning`}:{label:`Status unknown`,badge:null}}function Ct(e){let t=(0,W.c)(2),n;return t[0]===e.account?n=t[1]:(n=(0,K.jsx)(Ue,{value:e.account,ariaLabel:`Toggle source control account visibility`,revealTooltip:`Click to reveal account`,hideTooltip:`Click to hide account`}),t[0]=e.account,t[1]=n),n}function wt(e){return $(e)?`bg-muted-foreground/35`:e.status!==`available`||Q(e)&&e.auth.status!==`authenticated`?`bg-warning`:`bg-success`}function Tt(e){let t=(0,W.c)(13),{item:n}=e,r,i,a,o;if(t[0]!==n){o=Symbol.for(`react.early_return_sentinel`);bb0:{let e=wt(n),s=Q(n)?z.find(n.kind):void 0,c=Q(n)?s&&Be(s):gt[n.kind];if(!c){o=(0,K.jsx)(`span`,{className:_(`size-2 shrink-0 rounded-full`,e),"aria-hidden":!0});break bb0}i=`relative inline-flex size-5 shrink-0 items-center justify-center`,t[5]===c?a=t[6]:(a=(0,K.jsx)(c,{className:`size-4.5 text-foreground/80`,"aria-hidden":!0}),t[5]=c,t[6]=a),r=_(`pointer-events-none absolute -left-0.5 -top-0.5 size-2 rounded-full ring-2 ring-background`,e)}t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o}else r=t[1],i=t[2],a=t[3],o=t[4];if(o!==Symbol.for(`react.early_return_sentinel`))return o;let s;t[7]===r?s=t[8]:(s=(0,K.jsx)(`span`,{className:r,"aria-hidden":!0}),t[7]=r,t[8]=s);let c;return t[9]!==i||t[10]!==a||t[11]!==s?(c=(0,K.jsxs)(`span`,{className:i,children:[a,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=c):c=t[12],c}function Et({item:e,auth:t,authAccount:n}){if($(e))return(0,K.jsxs)(`span`,{children:[`Support for `,e.label,` is coming soon.`]});if(e.status!==`available`)return(0,K.jsxs)(`span`,{children:[`Not available on this server: `,e.installHint]});if(t){if(t.status===`authenticated`){let e=Z(t.detail);return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{children:`Authenticated`}),n?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{"aria-hidden":!0,children:`as`}),(0,K.jsx)(Ct,{account:n})]}):null,e?(0,K.jsxs)(`span`,{children:[`· `,e]}):null]})}if(!e.executable&&t.status===`unauthenticated`)return(0,K.jsxs)(`span`,{children:[`Available. `,e.installHint]});if(t.status===`unauthenticated`&&t.accounts?.some(e=>e.authenticated))return(0,K.jsx)(`span`,{children:Z(t.detail)??`Every ${e.label} host is turned off.`});if(t.status===`unauthenticated`)return(0,K.jsxs)(`span`,{children:[e.label,` is not authenticated on this server. Sign in or configure credentials using the `,(0,K.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-2xs`,children:e.executable}),` tool on the server host to enable change request features.`]});let r=Z(t.detail);return(0,K.jsxs)(`span`,{children:[`Could not verify `,e.label,`. `,r??e.installHint]})}return(0,K.jsx)(`span`,{children:`Available`})}function Dt(e){let t=(0,W.c)(57),{item:n,children:r}=e,i;t[0]===n.version?i=t[1]:(i=Z(n.version),t[0]=n.version,t[1]=i);let a=i,o=Q(n)?n.status===`available`&&n.auth.status===`authenticated`:n.status===`available`&&n.implemented,s=Q(n)?n.auth:null,c;t[2]===s?c=t[3]:(c=s?St(s):null,t[2]=s,t[3]=c);let l=c,d=s?Z(s.account):null,[f,p]=(0,G.useState)(!1),h=r!==void 0,g=ke(),v;t[4]!==n.kind||t[5]!==g||t[6]!==p?(v=()=>{(n.kind===`git`&&g===U(`git-fetch-interval`).id||g===ze(n.kind)||n.kind===`github`&&g===U(`github-accounts`).id)&&p(!0)},t[4]=n.kind,t[5]=g,t[6]=p,t[7]=v):v=t[7];let y;t[8]!==n.kind||t[9]!==g?(y=[n.kind,g],t[8]=n.kind,t[9]=g,t[10]=y):y=t[10],(0,G.useEffect)(v,y);let b;t[11]===n?b=t[12]:(b=_(`first:rounded-t-xl last:rounded-b-xl transition-colors hover:bg-muted/20`,$(n)&&`opacity-80`),t[11]=n,t[12]=b);let x;t[13]===n?x=t[14]:(x=(0,K.jsx)(Tt,{item:n}),t[13]=n,t[14]=x);let C;t[15]===n.label?C=t[16]:(C=(0,K.jsx)(`span`,{className:`truncate text-sm font-medium text-foreground`,children:n.label}),t[15]=n.label,t[16]=C);let w;t[17]===a?w=t[18]:(w=a?(0,K.jsx)(`code`,{className:`text-xs text-muted-foreground`,children:a}):null,t[17]=a,t[18]=w);let T;t[19]===n?T=t[20]:(T=$(n)?(0,K.jsx)(u,{variant:`warning`,size:`sm`,children:`Coming Soon`}):null,t[19]=n,t[20]=T);let E;t[21]===l?E=t[22]:(E=l?.badge?(0,K.jsx)(u,{variant:l.badge,size:`sm`,children:l.label}):null,t[21]=l,t[22]=E);let D;t[23]!==C||t[24]!==w||t[25]!==T||t[26]!==E||t[27]!==x?(D=(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[x,C,w,T,E]}),t[23]=C,t[24]=w,t[25]=T,t[26]=E,t[27]=x,t[28]=D):D=t[28];let O=Et({item:n,auth:s,authAccount:d}),k;t[29]===O?k=t[30]:(k=(0,K.jsx)(`p`,{className:`flex min-w-0 flex-wrap items-center gap-x-1 text-xs leading-normal text-muted-foreground/80`,children:O}),t[29]=O,t[30]=k);let A;t[31]!==D||t[32]!==k?(A=(0,K.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[D,k]}),t[31]=D,t[32]=k,t[33]=A):A=t[33];let j;t[34]!==h||t[35]!==f||t[36]!==n.label||t[37]!==p?(j=h?(0,K.jsx)(m,{size:`icon-xs`,variant:`ghost-muted`,onClick:()=>p(Ot),"aria-expanded":f,"aria-label":`Toggle ${n.label} details`,children:(0,K.jsx)(S,{className:_(`size-3.5 transition-transform`,f&&`rotate-180`)})}):null,t[34]=h,t[35]=f,t[36]=n.label,t[37]=p,t[38]=j):j=t[38];let M;t[39]!==o||t[40]!==n?(M=$(n)?null:(0,K.jsx)(Le,{checked:o,disabled:!0,"aria-label":`${n.label} availability`}),t[39]=o,t[40]=n,t[41]=M):M=t[41];let N;t[42]!==j||t[43]!==M?(N=(0,K.jsxs)(`div`,{className:`flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end`,children:[j,M]}),t[42]=j,t[43]=M,t[44]=N):N=t[44];let P;t[45]!==A||t[46]!==N?(P=(0,K.jsx)(`div`,{className:`px-3 py-3 sm:px-4`,children:(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[A,N]})}),t[45]=A,t[46]=N,t[47]=P):P=t[47];let F;t[48]!==r||t[49]!==h||t[50]!==f||t[51]!==p?(F=h?(0,K.jsx)(R,{open:f,onOpenChange:p,children:(0,K.jsx)(xe,{children:(0,K.jsx)(`div`,{className:`px-3 pb-4 pt-1 sm:px-4`,children:r})})}):null,t[48]=r,t[49]=h,t[50]=f,t[51]=p,t[52]=F):F=t[52];let ee;return t[53]!==P||t[54]!==F||t[55]!==b?(ee=(0,K.jsxs)(`div`,{className:b,children:[P,F]}),t[53]=P,t[54]=F,t[55]=b,t[56]=ee):ee=t[56],ee}function Ot(e){return!e}function kt(){let e=(0,W.c)(33),t=De(),n=Ee(),r;e[0]===t?r=e[1]:(r=yt(le(t).automaticGitFetchInterval),e[0]=t,e[1]=r);let i=r,a;e[2]===t.backgroundActivity?a=e[3]:(a=yt(ae(ie(t.backgroundActivity)).automaticGitFetchInterval),e[2]=t.backgroundActivity,e[3]=a);let o=i!==a,s;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=U(`git-fetch-interval`),e[4]=s):s=e[4];let c=s,u=c.id,d,f;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,K.jsx)(`span`,{className:`text-xs font-medium text-foreground`,children:c.title}),f=(0,K.jsx)(Fe,{children:`This interval is configured for Git only. The shared Background activity policy still decides whether Git refreshes may run when the timer fires. Custom intervals appear as Advanced in General settings.`}),e[5]=d,e[6]=f):(d=e[5],f=e[6]);let p=o?`opacity-100`:`pointer-events-none opacity-0`,m;e[7]===p?m=e[8]:(m=_(`inline-flex size-5 shrink-0 items-center justify-center transition-opacity`,p),e[7]=p,e[8]=m);let h=!o,g;e[9]!==o||e[10]!==t.backgroundActivity||e[11]!==n?(g=o?(0,K.jsx)(Ne,{label:`fetch interval`,onClick:()=>n(xt(t.backgroundActivity,{automaticGitFetchInterval:void 0}))}):null,e[9]=o,e[10]=t.backgroundActivity,e[11]=n,e[12]=g):g=e[12];let v;e[13]!==m||e[14]!==h||e[15]!==g?(v=(0,K.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[d,f,(0,K.jsx)(`span`,{className:m,"aria-hidden":h,children:g})]}),e[13]=m,e[14]=h,e[15]=g,e[16]=v):v=e[16];let y;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,K.jsx)(`p`,{className:`max-w-2xl text-xs leading-relaxed text-muted-foreground`,children:`Refresh remote branches in the background. Set to 0 to avoid automatic Git prompts.`}),e[17]=y):y=e[17];let b;e[18]===v?b=e[19]:(b=(0,K.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[v,y]}),e[18]=v,e[19]=b);let x;e[20]!==t.backgroundActivity||e[21]!==n?(x=e=>n(xt(t.backgroundActivity,{automaticGitFetchInterval:l(bt(e))})),e[20]=t.backgroundActivity,e[21]=n,e[22]=x):x=e[22];let S;e[23]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,K.jsxs)(j,{children:[(0,K.jsx)(A,{"aria-label":`Decrease fetch interval`}),(0,K.jsx)(O,{"aria-label":`Automatic Git fetch interval in seconds`}),(0,K.jsx)(k,{"aria-label":`Increase fetch interval`})]}),e[23]=S):S=e[23];let C;e[24]!==i||e[25]!==x?(C=(0,K.jsx)(M,{value:i,min:0,step:vt,size:`sm`,className:`w-32`,onValueChange:x,children:S}),e[24]=i,e[25]=x,e[26]=C):C=e[26];let w;e[27]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,K.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`seconds`}),e[27]=w):w=e[27];let T;e[28]===C?T=e[29]:(T=(0,K.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[C,w]}),e[28]=C,e[29]=T);let E;return e[30]!==b||e[31]!==T?(E=(0,K.jsx)(Me,{id:u,className:`grid gap-3`,children:(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between`,children:[b,T]})}),e[30]=b,e[31]=T,e[32]=E):E=e[32],E}function At(e){let t=(0,W.c)(4),{title:n,headerAction:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=_t.map(jt),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,K.jsx)(Pe,{title:n,headerAction:r,children:i}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function jt(e){return(0,K.jsx)(`div`,{className:`first:rounded-t-xl last:rounded-b-xl px-3 py-3 sm:px-4`,children:(0,K.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,K.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,K.jsxs)(`span`,{className:`relative inline-flex size-5 shrink-0 items-center justify-center`,children:[(0,K.jsx)(I,{className:`size-4.5`}),(0,K.jsx)(I,{shape:`pill`,className:`pointer-events-none absolute -left-0.5 -top-0.5 size-2`,"aria-hidden":!0})]}),(0,K.jsx)(I,{shape:`pill`,className:`h-4 w-28`}),(0,K.jsx)(I,{shape:`pill`,className:`h-5 w-14`})]}),(0,K.jsx)(I,{shape:`pill`,className:`h-3 w-full max-w-xs`})]}),(0,K.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,K.jsx)(I,{className:`size-7`}),(0,K.jsx)(I,{shape:`pill`,className:`h-5 w-9`})]})]})},e)}function Mt(e){let t=(0,W.c)(18),{error:n,isPending:r,onScan:i}=e,a=n!==null,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=U(`source-control`),t[0]=o):o=t[0];let s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,K.jsx)(ge,{variant:`icon`,children:(0,K.jsx)(B.pullRequest,{})}),t[1]=s):s=t[1];let c=a?`Could not scan the server environment`:`Nothing detected yet`,l;t[2]===c?l=t[3]:(l=(0,K.jsx)(L,{children:c}),t[2]=c,t[3]=l);let u=a?n:`Install Git on the server, add optional hosting integrations or credentials your workspace needs, then rescan.`,d;t[4]===u?d=t[5]:(d=(0,K.jsx)(ye,{children:u}),t[4]=u,t[5]=d);let f;t[6]!==l||t[7]!==d?(f=(0,K.jsxs)(_e,{children:[l,d]}),t[6]=l,t[7]=d,t[8]=f):f=t[8];let p;t[9]===r?p=t[10]:(p=(0,K.jsx)(H,{size:`sm`,refreshing:r}),t[9]=r,t[10]=p);let h;t[11]!==r||t[12]!==i||t[13]!==p?(h=(0,K.jsx)(ve,{children:(0,K.jsxs)(m,{size:`sm`,variant:`outline`,onClick:i,disabled:r,children:[p,`Scan`]})}),t[11]=r,t[12]=i,t[13]=p,t[14]=h):h=t[14];let g;return t[15]!==f||t[16]!==h?(g=(0,K.jsx)(Pe,{id:o.id,title:`Server environment`,children:(0,K.jsxs)(be,{children:[s,f,h]})}),t[15]=f,t[16]=h,t[17]=g):g=t[17],g}function Nt(){let e=(0,W.c)(33),{scope:t,environment:n,connectedEnvironments:r}=Ie(),i=n?.connection.phase===`connected`?n.environmentId:null,a=t.environmentIds.length!==1&&r.length>1&&n?` · ${n.label}`:``,o;e[0]===i?o=e[1]:(o=i===null?null:Se.discovery({environmentId:i,input:{}}),e[0]=i,e[1]=o);let s=fe(o),c=s.data??ht,l=c.versionControlSystems.length>0,u=l||c.sourceControlProviders.length>0,d=s.isPending&&s.data===null,f;e[2]===s?f=e[3]:(f=()=>{s.refresh()},e[2]=s,e[3]=f);let p=f,h;e[4]!==i||e[5]!==p?(h=e=>{let t=z.find(e);if(t?.settings&&i!==null)return(0,K.jsx)(Me,{id:ze(e),children:(0,K.jsx)(Ye,{environmentId:i,definition:{...t,settings:t.settings},onSaved:p},i)})},e[4]=i,e[5]=p,e[6]=h):h=e[6];let g=h,_;e[7]===s.isPending?_=e[8]:(_=(0,K.jsx)(H,{refreshing:s.isPending}),e[7]=s.isPending,e[8]=_);let v;e[9]!==s.isPending||e[10]!==p||e[11]!==_?(v=(0,K.jsx)(T,{render:(0,K.jsx)(m,{size:`icon-xs`,variant:`ghost-muted`,onClick:p,disabled:s.isPending,"aria-label":`Rescan server environment`,children:_})}),e[9]=s.isPending,e[10]=p,e[11]=_,e[12]=v):v=e[12];let y;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,K.jsx)(E,{side:`top`,children:`Rescan Git and hosting integrations`}),e[13]=y):y=e[13];let b;e[14]===v?b=e[15]:(b=(0,K.jsxs)(D,{children:[v,y]}),e[14]=v,e[15]=b);let x=b,S;e[16]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,K.jsx)(Ke,{category:`source-control`}),e[16]=S):S=e[16];let C;e[17]!==s.error||e[18]!==s.isPending||e[19]!==i||e[20]!==a||e[21]!==p||e[22]!==u||e[23]!==l||e[24]!==g||e[25]!==d||e[26]!==c.sourceControlProviders||e[27]!==c.versionControlSystems||e[28]!==x?(C=i===null?(0,K.jsx)(Pe,{id:U(`source-control`).id,title:`Server environment`,children:(0,K.jsx)(`p`,{className:`px-4 py-3 text-sm text-muted-foreground`,children:`Connect an environment to inspect its version control tools and hosting integrations.`})}):d?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(At,{title:`Version Control${a}`,headerAction:x}),(0,K.jsx)(At,{title:`Source Control Providers`})]}):u?(0,K.jsxs)(K.Fragment,{children:[l?(0,K.jsx)(Pe,{id:U(`source-control`).id,title:`Version Control${a}`,headerAction:x,children:c.versionControlSystems.map(Pt)}):null,c.sourceControlProviders.length>0?(0,K.jsx)(Pe,{id:l?void 0:U(`source-control`).id,title:l?`Source Control Providers`:`Source Control Providers${a}`,headerAction:l?null:x,children:c.sourceControlProviders.map(e=>(0,K.jsx)(Dt,{item:e,children:e.kind===`github`?(0,K.jsx)(Me,{id:U(`github-accounts`).id,children:(0,K.jsxs)(`div`,{className:`grid gap-6`,children:[(0,K.jsx)(et,{environmentId:i,onSaved:p},`token-${i}`),e.status===`available`?(0,K.jsx)(Qe,{environmentId:i,auth:e.auth,onSaved:p},i):null]})}):g(e.kind)},`provider:${e.kind}`))}):null]}):(0,K.jsx)(Mt,{error:s.error,isPending:s.isPending,onScan:p}),e[17]=s.error,e[18]=s.isPending,e[19]=i,e[20]=a,e[21]=p,e[22]=u,e[23]=l,e[24]=g,e[25]=d,e[26]=c.sourceControlProviders,e[27]=c.versionControlSystems,e[28]=x,e[29]=C):C=e[29];let w;e[30]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,K.jsx)(ot,{}),e[30]=w):w=e[30];let O;return e[31]===C?O=e[32]:(O=(0,K.jsxs)(Ae,{children:[S,C,w]}),e[31]=C,e[32]=O),O}function Pt(e){return(0,K.jsx)(Dt,{item:e,children:e.kind===`git`?(0,K.jsx)(kt,{}):void 0},`vcs:${e.kind}`)}var Ft=Nt;export{Ft as component};
|
|
2
|
-
//# sourceMappingURL=settings.source-control-R63Z9kEM.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Go as n,Vo as r,ma as i,or as a,wx as o}from"./utils-DmS758az.js";import{L as s,U as c}from"./runtime-CCr9UADV.js";import{a as l,i as u,n as d,r as f,t as p}from"./number-field-BLz8W5SU.js";import{a as m,c as h,o as g,s as _,t as v}from"./select-BiARKKgd.js";import{i as y}from"./toast-Bm36EaG6.js";import{f as b}from"./server-B26doYv6.js";import{t as x}from"./use-atom-command-CiEeUGsC.js";import{o as S}from"./timestampFormat-wac2e_Jz.js";import{t as C}from"./input-u5qjnfMr.js";import{a as w}from"./p4ProjectFile-BzCYJ8I-.js";import{H as T,I as E,N as D,P as O,a as k,i as A,j,r as M,s as N,u as P,z as F}from"./settingsLayout-BzyY4qHt.js";import{Ea as I,ir as L}from"./main-D9z9rMK1.js";import{t as R}from"./FoldedSettingsSection-BJm8ZaTy.js";import{t as z}from"./formatBytes-D8LhsSVR.js";import{t as B}from"./SettingsScopeNotice-CdNfxmW3.js";var V=o(),H=e(t(),1),U=e(i(),1);function W(){let e=(0,V.c)(22),{connectedEnvironments:t,targets:n}=F(),r=D(),i=E(),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=[`worktreesDirectory`],e[0]=a):a=e[0];let o=O(a),s=(0,H.useRef)(!1);if(t.some(K))return null;let c;e[1]===n?c=e[2]:(c=n.map(G).join(`,`),e[1]=n,e[2]=c);let l=c,u;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(u=L(`storage-worktrees-location`),e[3]=u):u=e[3];let d;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(d=[`worktreesDirectory`],e[4]=d):d=e[4];let f;e[5]!==o||e[6]!==r.worktreesDirectory||e[7]!==i?(f=o||r.worktreesDirectory!==``?(0,U.jsx)(M,{label:`worktree location`,onClick:()=>i({worktreesDirectory:``})}):null,e[5]=o,e[6]=r.worktreesDirectory,e[7]=i,e[8]=f):f=e[8];let p=`${l}:${o}:${r.worktreesDirectory}`,m=o?`Mixed`:`Default`,h=o?``:r.worktreesDirectory,g;e[9]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{s.current=!0},e[9]=g):g=e[9];let _;e[10]!==o||e[11]!==r.worktreesDirectory||e[12]!==i?(_=e=>{let t=e.target.value.trim();s.current&&(o||t!==r.worktreesDirectory)&&i({worktreesDirectory:t}),s.current=!1},e[10]=o,e[11]=r.worktreesDirectory,e[12]=i,e[13]=_):_=e[13];let v;e[14]!==p||e[15]!==m||e[16]!==h||e[17]!==_?(v=(0,U.jsx)(C,{"aria-label":`Worktree location`,autoCapitalize:`none`,spellCheck:!1,placeholder:m,defaultValue:h,onChange:g,onBlur:_},p),e[14]=p,e[15]=m,e[16]=h,e[17]=_,e[18]=v):v=e[18];let y;return e[19]!==v||e[20]!==f?(y=(0,U.jsx)(k,{...u,description:`Folder where new worktrees are created, on any drive, such as D:\\worktrees or ~/worktrees. Existing worktrees stay where they are. Leave empty to use the P4 Code home folder.`,serverScoped:!0,settingKeys:d,resetAction:f,control:v}),e[19]=v,e[20]=f,e[21]=y):y=e[21],y}function G(e){return e.environmentId}function K(e){return e.serverConfig?.environment.capabilities.worktreesDirectory!==!0}function q(e){let t=(0,V.c)(14),{label:n,value:r,onChange:i}=e,[a,o]=(0,H.useState)(r),[s,c]=(0,H.useState)(r);s!==r&&(c(r),o(r));let m;t[0]!==a||t[1]!==n||t[2]!==i||t[3]!==r?(m=r===null?(0,U.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Off`}):(0,U.jsx)(p,{value:a,min:1,max:3650,step:1,size:`sm`,className:`w-auto`,onValueChange:o,onValueCommitted:e=>{if(e===null)o(r);else{let t=Math.min(3650,Math.max(1,Math.round(e)));o(t),i(t)}},children:(0,U.jsxs)(f,{children:[(0,U.jsx)(d,{"aria-label":`Decrease ${n}`}),(0,U.jsx)(l,{"aria-label":`${n} in days`,size:new Intl.NumberFormat().format(a??r).length,className:`field-sizing-content w-auto min-w-[1ch] grow-0 text-right`}),(0,U.jsx)(`span`,{"aria-hidden":`true`,className:`self-center pr-2 text-xs`,children:`days`}),(0,U.jsx)(u,{"aria-label":`Increase ${n}`})]})}),t[0]=a,t[1]=n,t[2]=i,t[3]=r,t[4]=m):m=t[4];let h=r!==null,g;t[5]===i?g=t[6]:(g=e=>i(e?8:null),t[5]=i,t[6]=g);let _;t[7]!==n||t[8]!==h||t[9]!==g?(_=(0,U.jsx)(I,{"aria-label":n,checked:h,onCheckedChange:g}),t[7]=n,t[8]=h,t[9]=g,t[10]=_):_=t[10];let v;return t[11]!==m||t[12]!==_?(v=(0,U.jsxs)(`div`,{className:`flex items-center gap-3`,children:[m,_]}),t[11]=m,t[12]=_,t[13]=v):v=t[13],v}var J={"any-local-files":`Any local files`,"uncommitted-changes":`Uncommitted changes`,"tracked-changes":`Edited tracked files`};function Y(e){let t=(0,V.c)(16),{report:n,environmentLabel:r}=e,i;if(t[0]!==r||t[1]!==n.entries){let e;t[3]===r?e=t[4]:(e=(e,t)=>{let n=e.kind===`worktree`?e.path?.split(/[\\/]/).findLast(Boolean)??`Worktrees`:e.kind===`logs`?`Rotated logs`:`Browser artifacts`;return(0,U.jsx)(k,{title:r?`${r}: ${n}`:n,description:(0,U.jsxs)(`span`,{className:`wrap-anywhere ${e.outcome===`failed`?`text-destructive`:``}`,children:[e.threadTitle&&e.threadTitle!==n?`${e.threadTitle}. `:``,e.reason]}),control:e.outcome===`removed`&&(0,U.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:[e.kind!==`worktree`&&e.files!==null?`${e.files.toLocaleString()} ${e.files===1?`file`:`files`}`:null,e.bytes===null?null:z(e.bytes)].filter(Boolean).join(` · `)})},`${e.path??e.kind}:${e.threadId??t}`)},t[3]=r,t[4]=e),i=n.entries.map(e),t[0]=r,t[1]=n.entries,t[2]=i}else i=t[2];let a;t[5]!==r||t[6]!==n.omittedCount?(a=n.omittedCount>0&&(0,U.jsxs)(`p`,{className:`px-3 py-2.5 text-xs text-muted-foreground sm:px-4`,children:[r?`${r}: `:``,n.omittedCount.toLocaleString(),` more results.`]}),t[5]=r,t[6]=n.omittedCount,t[7]=a):a=t[7];let o;t[8]!==r||t[9]!==n.entries.length||t[10]!==n.omittedCount?(o=n.entries.length===0&&n.omittedCount===0&&(0,U.jsxs)(`p`,{className:`px-3 py-2.5 text-xs text-muted-foreground sm:px-4`,children:[r?`${r}: `:``,`Nothing needed cleanup.`]}),t[8]=r,t[9]=n.entries.length,t[10]=n.omittedCount,t[11]=o):o=t[11];let s;return t[12]!==i||t[13]!==a||t[14]!==o?(s=(0,U.jsxs)(U.Fragment,{children:[i,a,o]}),t[12]=i,t[13]=a,t[14]=o,t[15]=s):s=t[15],s}function X(){P(6e4);let{connectedEnvironments:e}=F(),[t,i]=(0,H.useState)(!1),o=x(b.runStorageCleanup),l=e.filter(e=>e.serverConfig?.environment.capabilities.storageCleanupRun===!0),u=r((0,H.useMemo)(()=>n(t=>e.flatMap(e=>{if(e.serverConfig?.environment.capabilities.storageCleanupRun!==!0)return[];let n=t(b.storageCleanupReport({environmentId:e.environmentId,input:{}}));return[{environmentId:e.environmentId,allowed:t(b.runStorageCleanup.permissionAtom(e.environmentId)),report:n._tag===`Success`?n.value:null,loading:n.waiting,failed:n._tag===`Failure`}]})),[e])),d=l.some(e=>{let t=e.serverConfig?.settings;if(!t)return!1;let n=e=>e.worktreeAfterDays!==null||e.worktreeOnMerge||e.worktreeOnDelete||e.worktreeUnchanged;return t.storageCleanup.browserArtifactsAfterDays!==null||t.storageCleanup.logsAfterDays!==null||n(w(t,null))||Object.values(t.projectSettingsOverrides).some(e=>e.worktreeCleanup?.mode===`custom`&&n(e.worktreeCleanup.rules))});if(l.length===0)return null;let f=l.map(e=>{let t=u.find(t=>t.environmentId===e.environmentId),n=t?.report??null;return{environment:e,report:n,description:n?`Last run ${S(n.finishedAt)}. ${z(n.bytesFreed)} recovered.${n.counts.failed>0?` ${n.counts.failed} ${n.counts.failed===1?`item`:`items`} couldn't be removed.`:``}`:t?.failed?`Could not load the last run.`:t?.loading?`Loading last run…`:`Cleanup hasn't run yet.`}}),p=async()=>{if(!t){i(!0);try{await Promise.all(l.filter(e=>u.some(t=>t.environmentId===e.environmentId&&t.allowed)).map(async e=>{let t=await o({environmentId:e.environmentId,input:{}});if(t._tag===`Success`){let n=t.value.entries.filter(e=>e.outcome===`failed`);n.length>0&&y.add({type:`error`,title:`Cleanup failed on ${e.label}`,description:n[0].reason})}else s(t)||y.add({type:`error`,title:`Could not run cleanup on ${e.label}`,description:String(c(t))})}))}finally{i(!1)}}};return(0,U.jsxs)(N,{id:`storage-cleanup`,title:`Cleanup`,variant:`plain`,children:[(0,U.jsx)(T,{children:(0,U.jsx)(k,{...L(`storage-delete-now`),description:(0,U.jsx)(`span`,{children:d?f.map(({environment:e,description:t})=>(0,U.jsxs)(`span`,{className:`block`,children:[l.length>1?`${e.label}: `:``,t]},e.environmentId)):`Turn on a cleanup rule to use this.`}),control:(0,U.jsx)(a,{variant:`outline`,size:`sm`,disabled:t||!d||!u.some(e=>e.allowed),onClick:()=>void p(),children:t?`Deleting…`:`Delete now`})})}),f.some(({report:e})=>e!==null)&&(0,U.jsx)(R,{id:`storage-cleanup-last-run`,title:`Last run`,headerPlacement:`inside`,summary:f.flatMap(({environment:t,report:n})=>n?[`${e.length>1?`${t.label}: `:``}${n.counts.removed} removed, ${n.counts.kept} kept${n.counts.failed>0?`, ${n.counts.failed} failed`:``}`]:[]).join(` · `),children:f.map(({environment:t,report:n})=>n&&(0,U.jsx)(Y,{report:n,environmentLabel:e.length>1?t.label:void 0},t.environmentId))})]})}function Z(){let e=(0,V.c)(57),{scope:t,connectedEnvironments:n,targets:r,target:i}=F(),a=D(),o=t.kind===`project`||t.kind===`checkout`,s=a.storageCleanup,c;e[0]===a?c=e[1]:(c=w(a,null),e[0]=a,e[1]=c);let l;e[2]!==a.storageCleanup||e[3]!==c?(l={...s,...c},e[2]=a.storageCleanup,e[3]=c,e[4]=l):l=e[4];let u=l,d=ie,f;e[5]===i?f=e[6]:(f=d(i),e[5]=i,e[6]=f);let p=f,y;if(e[7]!==p||e[8]!==r){let t;e[10]===p?t=e[11]:(t=e=>d(e)!==p,e[10]=p,e[11]=t),y=r.some(t),e[7]=p,e[8]=r,e[9]=y}else y=e[9];let b=y,x=E(),S=j(),C;e[12]!==u||e[13]!==r?(C=e=>r.some(t=>({...t.settings.storageCleanup,...w(t.settings,null)})[e]!==u[e])?`Mixed across selected machines`:void 0,e[12]=u,e[13]=r,e[14]=C):C=e[14];let T=C,O;e[15]===x?O=e[16]:(O=e=>x({storageCleanup:e}),e[15]=x,e[16]=O);let M=O,P;e[17]!==o||e[18]!==M||e[19]!==x?(P=e=>o?x({worktreeCleanup:{mode:`custom`,rules:e}}):M(e),e[17]=o,e[18]=M,e[19]=x,e[20]=P):P=e[20];let R=P;if(o&&n.some(re)){let t;return e[21]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,U.jsx)(B,{target:`all`,children:`Update the selected machines to configure project worktree cleanup.`}),e[21]=t):t=e[21],t}if(n.some(ne)){let t;e[22]===n?t=e[23]:(t=n.filter(te).map(ee),e[22]=n,e[23]=t);let r;return e[24]===t?r=e[25]:(r=(0,U.jsx)(B,{target:`environment`,eligibleEnvironmentIds:t,children:`Update the selected environments to use storage cleanup, or choose a machine that supports it.`}),e[24]=t,e[25]=r),r}let z;e[26]===o?z=e[27]:(z=!o&&(0,U.jsx)(W,{}),e[26]=o,e[27]=z);let H;e[28]!==S||e[29]!==o||e[30]!==b||e[31]!==p||e[32]!==x?(H=o&&(0,U.jsx)(k,{title:`Automatic worktree cleanup`,description:p===`off`?`Keep this project's worktrees until you delete them manually.`:p===`custom`?`Use these rules for this project.`:`Use each machine's worktree cleanup settings.`,serverScoped:!0,settingKeys:[`worktreeCleanup`],mixed:b,control:(0,U.jsxs)(v,{value:b?null:p,onValueChange:e=>{e===`inherit`?S([`worktreeCleanup`]):e===`off`?x({worktreeCleanup:{mode:`off`}}):e===`custom`&&x({worktreeCleanup:{mode:`custom`,rules:{}}})},children:[(0,U.jsx)(_,{size:`sm`,"aria-label":`Automatic worktree cleanup`,children:(0,U.jsx)(h,{children:b?`Mixed`:p===`inherit`?`Inherit`:p===`off`?`Off`:`Custom`})}),(0,U.jsxs)(g,{align:`end`,alignItemWithTrigger:!1,children:[(0,U.jsx)(m,{value:`inherit`,children:`Inherit`}),(0,U.jsx)(m,{value:`off`,children:`Off`}),(0,U.jsx)(m,{value:`custom`,children:`Custom`})]})]})}),e[28]=S,e[29]=o,e[30]=b,e[31]=p,e[32]=x,e[33]=H):H=e[33];let G;e[34]!==n||e[35]!==o||e[36]!==b||e[37]!==p||e[38]!==T||e[39]!==u||e[40]!==R?(G=(!o||!b&&p===`custom`)&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(k,{title:`Delete worktrees with deleted threads`,status:T(`worktreeOnDelete`),description:`Remove unused worktrees when active or archived threads are deleted. Worktrees with local changes are kept.`,serverScoped:!o,control:(0,U.jsx)(I,{"aria-label":`Delete worktrees with deleted threads`,checked:u.worktreeOnDelete,onCheckedChange:e=>R({worktreeOnDelete:e})})}),(0,U.jsx)(k,{title:`Delete inactive worktrees`,status:T(`worktreeAfterDays`),description:`Remove worktrees after their threads have been inactive for this many days. Branches and thread history are kept.`,serverScoped:!o,control:(0,U.jsx)(q,{label:`Delete inactive worktrees`,value:u.worktreeAfterDays,onChange:e=>R({worktreeAfterDays:e})})}),(0,U.jsx)(k,{title:`Delete merged worktrees`,status:T(`worktreeOnMerge`),description:`Remove worktrees whose pull request is merged and whose commits are included in the default branch.`,serverScoped:!o,control:(0,U.jsx)(I,{"aria-label":`Delete merged worktrees`,checked:u.worktreeOnMerge,onCheckedChange:e=>R({worktreeOnMerge:e})})}),(0,U.jsx)(k,{title:`Delete unchanged worktrees`,status:T(`worktreeUnchanged`),description:`Remove worktrees with no commits beyond the default branch.`,serverScoped:!o,control:(0,U.jsx)(I,{"aria-label":`Delete unchanged worktrees`,checked:u.worktreeUnchanged,onCheckedChange:e=>R({worktreeUnchanged:e})})}),n.every(Q)&&(0,U.jsx)(k,{...L(`storage-worktree-keep-when`),status:T(`worktreeKeepWhen`),description:u.worktreeKeepWhen===`any-local-files`?`Includes ignored files, except node_modules.`:u.worktreeKeepWhen===`tracked-changes`?`Deletes untracked and ignored files, including .env.`:`Keeps edits and untracked files. Deletes ignored files, including .env.`,serverScoped:!o,control:(0,U.jsxs)(v,{value:T(`worktreeKeepWhen`)?null:u.worktreeKeepWhen,onValueChange:e=>{(e===`any-local-files`||e===`uncommitted-changes`||e===`tracked-changes`)&&R({worktreeKeepWhen:e})},children:[(0,U.jsx)(_,{size:`sm`,"aria-label":`Keep worktrees with local changes`,children:(0,U.jsx)(h,{children:T(`worktreeKeepWhen`)?`Mixed`:J[u.worktreeKeepWhen]})}),(0,U.jsxs)(g,{align:`end`,alignItemWithTrigger:!1,children:[(0,U.jsx)(m,{value:`any-local-files`,children:`Any local files`}),(0,U.jsx)(m,{value:`uncommitted-changes`,children:`Uncommitted changes`}),(0,U.jsx)(m,{value:`tracked-changes`,children:`Edited tracked files`})]})]})})]}),e[34]=n,e[35]=o,e[36]=b,e[37]=p,e[38]=T,e[39]=u,e[40]=R,e[41]=G):G=e[41];let K;e[42]!==G||e[43]!==z||e[44]!==H?(K=(0,U.jsxs)(N,{id:`storage-worktrees`,title:`Worktrees`,children:[z,H,G]}),e[42]=G,e[43]=z,e[44]=H,e[45]=K):K=e[45];let Y;e[46]!==o||e[47]!==T||e[48]!==u||e[49]!==M?(Y=!o&&(0,U.jsxs)(N,{id:`storage-artifacts`,title:`Artifacts and logs`,children:[(0,U.jsx)(k,{title:`Delete old browser artifacts`,status:T(`browserArtifactsAfterDays`),description:`Delete saved browser captures after this many days. Older capture links will no longer open.`,serverScoped:!0,control:(0,U.jsx)(q,{label:`Delete old browser artifacts`,value:u.browserArtifactsAfterDays,onChange:e=>M({browserArtifactsAfterDays:e})})}),(0,U.jsx)(k,{title:`Delete old rotated logs`,status:T(`logsAfterDays`),description:`Delete inactive rotated log files after this many days. Current logs are kept.`,serverScoped:!0,control:(0,U.jsx)(q,{label:`Delete old rotated logs`,value:u.logsAfterDays,onChange:e=>M({logsAfterDays:e})})})]}),e[46]=o,e[47]=T,e[48]=u,e[49]=M,e[50]=Y):Y=e[50];let Z;e[51]===o?Z=e[52]:(Z=!o&&(0,U.jsx)(X,{}),e[51]=o,e[52]=Z);let $;return e[53]!==K||e[54]!==Y||e[55]!==Z?($=(0,U.jsxs)(A,{children:[K,Y,Z]}),e[53]=K,e[54]=Y,e[55]=Z,e[56]=$):$=e[56],$}function Q(e){return e.serverConfig?.environment.capabilities.storageCleanupRun===!0}function ee(e){return e.environmentId}function te(e){return e.serverConfig?.environment.capabilities.storageCleanup===!0}function ne(e){return e.serverConfig?.environment.capabilities.storageCleanup!==!0}function re(e){return e.serverConfig?.environment.capabilities.projectWorktreeCleanup!==!0}function ie(e){return e?.sources.worktreeCleanup===`project`?e.settings.worktreeCleanup?.mode??`inherit`:`inherit`}var $=Z;export{$ as component};
|
|
2
|
-
//# sourceMappingURL=settings.storage-J1kthey9.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$n as n,Af as r,Go as i,Hc as a,If as o,Il as s,Kb as c,Ml as l,Nl as u,Qn as d,Uc as f,Um as p,Vl as m,Vo as h,Vv as g,Wn as _,Xn as v,Zn as y,al as b,ar as x,ay as S,bl as C,er as w,kl as T,ma as E,ms as D,or as ee,os as te,sr as O,t as k,ux as ne,wx as A}from"./utils-DmS758az.js";import{t as j}from"./check-Cmy7pM2Y.js";import{t as M}from"./chevron-down-DHV04o66.js";import{t as re}from"./info-BHB-83EA.js";import{t as N}from"./layers-BqgDAlx3.js";import{t as P}from"./undo-2-ZlIXiNdF.js";import{C as ie}from"./entities-DNKDCsf2.js";import{a as ae,n as oe,t as se}from"./tooltip-Df-4YKs5.js";import{t as ce}from"./useNavigate-BK_XZ1It.js";import{t as F}from"./useLocation-9axGTsrg.js";import{i as le}from"./toast-Bm36EaG6.js";import{D as ue,E as I,O as de,a as fe,g as pe,i as me,p as he,s as L,t as ge}from"./useSettings-CckatJFa.js";import{f as _e}from"./server-B26doYv6.js";import{i as ve,n as ye,o as be}from"./session-CQXL-cTI.js";import{t as xe}from"./use-atom-command-CiEeUGsC.js";import{m as Se}from"./queries-Cn1FJB1_.js";import{a as Ce}from"./threadSort-BvhI6zOp.js";import{i as we,o as Te,t as Ee}from"./popover-6BYEGLLK.js";import{t as R}from"./ProjectFavicon-ExMHrN16.js";import{o as z,r as De}from"./projectFilesQueryState-CrGsc81w.js";import{t as Oe}from"./pullRequestDetail.logic-CE7fVOsp.js";import{a as B,f as V,i as H,n as U,t as W}from"./p4ProjectFile-BzCYJ8I-.js";import{r as G}from"./sidebarProjectGrouping-DxzT7QCQ.js";import{n as K}from"./EnvironmentMachineIcon-DMZGa766.js";import{t as q}from"./WorkspacePageContainer-BFo6qTGJ.js";var J=A(),Y=e(E(),1);function X(e){let t=(0,J.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({variant:i,divided:a,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`grouped`:i,s=a===void 0||a,c=o===`grouped`?`rounded-xl border border-border/60 bg-card/40 shadow-xs/5`:`space-y-1`,l=o===`grouped`&&s&&`[&>*+*]:border-t [&>*+*]:border-border/50 [&>[data-slot=settings-row]]:rounded-none`,u;t[5]!==n||t[6]!==c||t[7]!==l?(u=k(`relative overflow-visible text-foreground`,c,l,n),t[5]=n,t[6]=c,t[7]=l,t[8]=u):u=t[8];let d;return t[9]!==r||t[10]!==u?(d=(0,Y.jsx)(`div`,{...r,className:u}),t[9]=r,t[10]=u,t[11]=d):d=t[11],d}var Z=e(t(),1);function Q(){let e=(0,J.c)(5),t=ie(),n=L(V),r=de(),{environments:i}=I(),a;if(e[0]!==i||e[1]!==r||e[2]!==t||e[3]!==n){let o=new Map(i.map(Ae));a=G({projects:t,settings:n,primaryEnvironmentId:r,resolveEnvironmentLabel:e=>o.get(e)??null}).sort(ke),e[0]=i,e[1]=r,e[2]=t,e[3]=n,e[4]=a}else a=e[4];return a}function ke(e,t){return e.displayName.localeCompare(t.displayName)}function Ae(e){return[e.environmentId,e.label]}var je=new Set(Object.keys(u.fields)),Me=new Set(Object.keys(C.fields)),Ne=new Set(l);function $(e){return Ne.has(e)}function Pe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Fe(e,t,n){let r=new Set(e.environmentIds),i=t.filter(e=>r.has(e.environmentId)),a=i.filter(e=>e.connection.phase===`connected`&&e.serverConfig!==null);return{environments:i,connectedEnvironments:a,environment:a.find(e=>e.environmentId===n)??a[0]??null}}function Ie(e,t,n){let r=new Map(t.map(e=>[e.environmentId,e]));return e.kind===`project`||e.kind===`checkout`?e.members.flatMap(e=>{let t=r.get(e.environmentId);if(!t?.serverConfig)return[];let i=n?.get(e.physicalProjectKey),a=i===void 0?H(t.serverConfig.settings,e.id):H(t.serverConfig.settings,e.id,null,i);return[{environmentId:e.environmentId,label:t.label,projectId:e.id,settings:a.settings,sources:a.sources}]}):t.flatMap(e=>e.serverConfig?[{environmentId:e.environmentId,label:e.label,projectId:null,settings:e.serverConfig.settings,sources:H(e.serverConfig.settings,null).sources}]:[])}function Le(e,t){let n=e[0];return n!==void 0&&e.some(e=>t.some(t=>!ne(n.settings[t],e.settings[t])))}function Re(e,t){let n=t.filter($);if(n.length===0||e.length===0)return`environment`;let r=new Set(e.flatMap(e=>n.map(t=>e.sources[t])));return r.size>1?`mixed`:r.has(`project`)?`project`:r.has(`p4.json`)?`p4.json`:`environment`}function ze(e,t,n){let r=new Map(t.map(e=>[e.environmentId,e])),i=new Map;for(let t of e.members){let e=r.get(t.environmentId);if(!e?.serverConfig||e.connection.phase!==`connected`||e.serverConfig.environment?.capabilities.projectSettingsOverrides!==!0)continue;let a=e.serverConfig.settings,o=n(a.projectSettingsOverrides[t.id]??{},a,t.id),s=i.get(t.environmentId);i.set(t.environmentId,{environmentId:t.environmentId,label:e.label,previous:a,patch:{projectSettingsOverrides:{...s?.patch.projectSettingsOverrides,[t.id]:o}}})}return[...i.values()]}function Be(e,t,n){let r=Object.fromEntries(Object.entries(n).filter(([e])=>Me.has(e)&&!je.has(e))),i=Object.fromEntries(Object.entries(n).filter(([e])=>je.has(e))),a=Object.keys(i),{connectedEnvironments:o}=Fe(e,t,null),c=e.kind===`project`||e.kind===`checkout`,l=c?a.filter(e=>!$(e)):[],u=a.length===0?[]:c?l.length>0?[]:ze(e,t,(e,t,n)=>{let r=H(t,n).settings,a={...e};for(let[e,o]of Object.entries(i)){if(e===`worktreeCleanup`&&i.worktreeCleanup?.mode===`custom`){a[e]={mode:`custom`,rules:{...B(t,n),...i.worktreeCleanup.rules}};continue}if(o===null&&!s(e)){delete a[e];continue}let c=r[e];a[e]=Pe(o)&&Pe(c)?{...c,...o}:o}return a}):e.kind===`all`||e.kind===`environment`?o.flatMap(e=>{let t=e.serverConfig?.settings;return t?[{environmentId:e.environmentId,label:e.label,previous:t,patch:t.worktreeCleanup!=null&&i.storageCleanup&&Object.keys(i.storageCleanup).some(e=>e.startsWith(`worktree`))?{...i,worktreeCleanup:{mode:`custom`,rules:{...B(t,null),...Object.fromEntries(Object.entries(i.storageCleanup).filter(([e])=>e.startsWith(`worktree`)))}}}:i}]:[]}):[],d=Object.keys(r).length>0;return{clientPatch:r,hasClientWrite:d,serverWrites:u,unavailableReason:d||u.length>0||Object.keys(n).length===0?null:e.kind===`unavailable`?e.message:l.length>0?`This setting is environment-wide and cannot be overridden by a project.`:c?`Connect the selected checkouts, or update their environments, to save a project override.`:`Connect ${e.kind===`environment`?e.label:`an environment`} to save this setting.`}}function Ve(e,t,n){let r=e.kind===`project`||e.kind===`checkout`?ze(e,t,(e,t,r)=>U(t,r,n)):[];return{clientPatch:{},hasClientWrite:!1,serverWrites:r,unavailableReason:r.length>0?null:`Connect the selected checkouts, or update their environments, to reset this override.`}}function He(e,t){let n=t.filter($);return n.length===0?[]:e.flatMap(e=>{let t=e.serverConfig?.settings.projectSettingsOverrides;return t?Object.entries(t).flatMap(([t,r])=>n.some(e=>Object.hasOwn(r,e))?[{environmentId:e.environmentId,projectId:t}]:[]):[]})}function Ue(e,t,n){let r=new Map(e.map(e=>[e.environmentId,e])),i=new Map;for(let{environmentId:e,projectId:a}of t){let t=r.get(e);if(!t?.serverConfig||t.connection.phase!==`connected`)continue;let o=t.serverConfig.settings,s=i.get(e);i.set(e,{environmentId:e,label:t.label,previous:o,patch:{projectSettingsOverrides:{...s?.patch.projectSettingsOverrides,[a]:U(o,a,n)}}})}let a=[...i.values()];return{clientPatch:{},hasClientWrite:!1,serverWrites:a,unavailableReason:a.length>0?null:`Connect the environments to reset these overrides.`}}function We(e,t,n){if(e===null)return t!=null&&ne(n,t);if(Pe(e)&&!Array.isArray(t)&&!Array.isArray(n)){let r=(e,t)=>Pe(e)?e[t]:void 0;return Object.entries(e).some(([e,i])=>We(i,r(t,e),r(n,e)))}return!(typeof e==`string`&&typeof t==`string`?e.trim()===t:ne(e,t))&&ne(n,t)}function Ge(e,t){return t===void 0?[]:Object.entries(e.patch).flatMap(([n,r])=>We(r,e.previous[n],t[n])?[n]:[])}async function Ke(e,t,n){e.hasClientWrite&&n(e.clientPatch);let r=await Promise.allSettled(e.serverWrites.map(({environmentId:e,patch:n})=>t({environmentId:e,input:{patch:n}}))),i=t=>{let n=r[t];return n?.status===`fulfilled`&&n.value._tag===`Success`&&Ge(e.serverWrites[t],n.value.value).length===0},a=e.serverWrites.flatMap((e,t)=>{if(i(t))return[];let n=r[t];if(n?.status===`fulfilled`&&n.value._tag===`Success`)return[{...e,message:`This environment does not support this setting. Update P4 Code on it.`}];let a=n?.status===`rejected`?n.reason:n?.status===`fulfilled`&&n.value.cause?S(n.value.cause):void 0;return[{...e,message:a instanceof Error?a.message:`The save failed. Try reconnecting and saving again.`}]}),o=e.serverWrites.filter((e,t)=>i(t));return{failedEnvironments:a,savedEnvironments:o,savedEnvironmentCount:o.length}}function qe(e){let t=e=>typeof e==`string`&&e.trim().length>0?e:void 0,n=t(e.project),r=t(e.machine),i=t(e.checkout);return{...n===void 0?{}:{project:n},...r===void 0?{}:{machine:r},...i===void 0?{}:{checkout:i}}}function Je(e,t,n){let r=(e,t)=>({kind:`unavailable`,reason:e,label:`Unavailable selection`,message:t,members:[],environmentIds:[]});if(e.checkout&&!e.project)return r(`project-required`,`Select a project to choose one of its checkouts.`);let i=n.find(t=>t.environmentId===e.machine);if(e.machine&&!i)return r(`environment-missing`,`This environment is no longer available.`);if(e.project){let a=t.find(t=>t.projectKey===e.project);if(!a)return r(`project-missing`,`This project is no longer available.`);let o=a.memberProjects.filter(t=>(e.machine===void 0||t.environmentId===e.machine)&&(e.checkout===void 0||t.physicalProjectKey===e.checkout));if(o.length===0)return r(`checkout-missing`,e.checkout?`This checkout is no longer available in the selected project and environment.`:`This project has no checkout on this environment.`);if(e.checkout){let e=o[0],t=n.find(t=>t.environmentId===e.environmentId);if(!t)return r(`environment-missing`,`This checkout's environment is no longer available.`);let i=a.memberProjects.some(t=>t.environmentId===e.environmentId&&t.physicalProjectKey!==e.physicalProjectKey);return{kind:`checkout`,group:a,checkout:e,environmentId:e.environmentId,label:`${a.displayName} / ${t.label}${i?` · ${e.workspaceRoot}`:``}`,members:o,environmentIds:[e.environmentId]}}return{kind:`project`,group:a,environmentId:i?.environmentId??null,label:`${a.displayName} / ${i?.label??`All checkouts`}`,members:o,environmentIds:[...new Set(o.map(e=>e.environmentId))]}}return i?{kind:`environment`,environmentId:i.environmentId,label:i.label,members:[],environmentIds:[i.environmentId]}:{kind:`all`,label:`All environments`,members:[],environmentIds:n.map(e=>e.environmentId)}}function Ye(e,t){return t.some(t=>t.environmentId!==e.environmentId&&t.label===e.label)?`${e.label} · ${e.displayUrl??e.environmentId}`:e.label}function Xe(e,t){return e.machine??t??`all`}function Ze(e){return e.project??`all`}function Qe(e,t){let n={};return e.project&&(n.project=e.project),t!==`all`&&(n.machine=t),n}function $e(e,t){let n={};return t!==`all`&&(n.project=t),e.machine&&(n.machine=e.machine),n}function et(e,t,n,r){if(e.machine||t.kind===`unavailable`)return e;let i=new Set(t.environmentIds),a=n.filter(e=>i.has(e.environmentId)),o=a.find(e=>e.environmentId===r)??a.find(e=>e.connection.phase===`connected`)??a[0];return o?{...e,machine:o.environmentId}:e}function tt(e){let t=(0,J.c)(5),n;t[0]!==e.kind||t[1]!==e.members?(n=e.kind===`project`||e.kind===`checkout`?e.members:[],t[0]=e.kind,t[1]=e.members,t[2]=n):n=t[2];let r=n,o;return t[3]===r?o=t[4]:(o=i(e=>{let t=new Map;for(let n of r){let r=e(De(n.environmentId,n.workspaceRoot,a));if(r.waiting)continue;let i=c(D(r)),o=e(z(n.environmentId,n.workspaceRoot,`p4.json`))?.data??e(z(n.environmentId,n.workspaceRoot,i?.relativePath??`p4.json`))?.data??i;t.set(n.physicalProjectKey,o===null||o.truncated?null:W(o.contents))}return t}),t[3]=r,t[4]=o),h(o)}function nt(e,t){let n=(0,J.c)(24),r=Q(),{environments:i}=I(),a=de(),o;n[0]!==i||n[1]!==r||n[2]!==a||n[3]!==e||n[4]!==t?(o=t?et(e,Je(e,r,i),i,a):e,n[0]=i,n[1]=r,n[2]=a,n[3]=e,n[4]=t,n[5]=o):o=n[5];let s=o,c;n[6]!==i||n[7]!==r||n[8]!==s?(c=Je(s,r,i),n[6]=i,n[7]=r,n[8]=s,n[9]=c):c=n[9];let l=c,u=tt(l),d,f,p;n[10]!==i||n[11]!==a||n[12]!==u||n[13]!==l?(d=Fe(l,i,a),p=Ie(l,d.connectedEnvironments,u),f=p.find(e=>e.environmentId===d.environment?.environmentId)??p[0]??null,n[10]=i,n[11]=a,n[12]=u,n[13]=l,n[14]=d,n[15]=f,n[16]=p):(d=n[14],f=n[15],p=n[16]);let m=f,h;return n[17]!==r||n[18]!==l||n[19]!==s||n[20]!==d||n[21]!==m||n[22]!==p?(h={scope:l,groups:r,search:s,...d,targets:p,target:m},n[17]=r,n[18]=l,n[19]=s,n[20]=d,n[21]=m,n[22]=p,n[23]=h):h=n[23],h}var rt=(0,Z.createContext)(null);function it(e){let t=(0,J.c)(7),{search:n,onChange:r,children:i,singleEnvironment:a}=e,o=a!==void 0&&a,s=nt(n,o),c;t[0]!==r||t[1]!==s||t[2]!==o?(c={...s,singleEnvironment:o,selectScope:r},t[0]=r,t[1]=s,t[2]=o,t[3]=c):c=t[3];let l=c,u;return t[4]!==i||t[5]!==l?(u=(0,Y.jsx)(rt,{value:l,children:i}),t[4]=i,t[5]=l,t[6]=u):u=t[6],u}function at(){return(0,Z.useContext)(rt)}function ot(){let e=at();if(e===null)throw Error(`Settings scope must be read inside SettingsScopeProvider.`);return e}var st=new Set([`/settings/appearance`,`/settings/snap-shot`,`/settings/connections`]);function ct(){let e=(0,J.c)(20),t=at(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={select:lt},e[0]=n):n=e[0];let r=F(n),{environments:i}=I();if(t===null||st.has(r))return null;let a;e[1]!==i||e[2]!==t.groups||e[3]!==t.search||e[4]!==t.selectScope||e[5]!==t.singleEnvironment?(a={value:t.search,singleEnvironment:t.singleEnvironment,groups:t.groups,environments:i,onChange:t.selectScope},e[1]=i,e[2]=t.groups,e[3]=t.search,e[4]=t.selectScope,e[5]=t.singleEnvironment,e[6]=a):a=e[6];let o=a,s;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(`span`,{className:`shrink-0`,children:`Applying settings for`}),e[7]=s):s=e[7];let c;e[8]===o?c=e[9]:(c=(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[s,(0,Y.jsx)(ft,{...o})]}),e[8]=o,e[9]=c);let l=t.search.machine||t.scope.kind===`checkout`?`on`:`across`,u;e[10]===l?u=e[11]:(u=(0,Y.jsx)(`span`,{className:`shrink-0`,children:l}),e[10]=l,e[11]=u);let d;e[12]===o?d=e[13]:(d=(0,Y.jsx)(dt,{...o}),e[12]=o,e[13]=d);let f;e[14]!==u||e[15]!==d?(f=(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[u,d]}),e[14]=u,e[15]=d,e[16]=f):f=e[16];let p;return e[17]!==c||e[18]!==f?(p=(0,Y.jsxs)(`p`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1 px-3 text-base text-muted-foreground sm:px-4`,children:[c,f]}),e[17]=c,e[18]=f,e[19]=p):p=e[19],p}function lt(e){return e.pathname}function ut(e){let t=(0,J.c)(13),{ariaLabel:n,icon:r,label:i,children:a}=e,o=`${n}: ${i}`,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,Y.jsx)(O,{tone:`picker`}),t[0]=s):s=t[0];let c;t[1]===i?c=t[2]:(c=(0,Y.jsx)(`span`,{className:`min-w-0 truncate`,children:i}),t[1]=i,t[2]=c);let l;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,Y.jsx)(M,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-muted-foreground`}),t[3]=l):l=t[3];let u;t[4]!==r||t[5]!==o||t[6]!==c?(u=(0,Y.jsxs)(x,{"aria-label":o,render:s,className:`min-w-0 max-w-72`,children:[r,c,l]}),t[4]=r,t[5]=o,t[6]=c,t[7]=u):u=t[7];let d;t[8]===a?d=t[9]:(d=(0,Y.jsx)(v,{align:`start`,children:a}),t[8]=a,t[9]=d);let f;return t[10]!==u||t[11]!==d?(f=(0,Y.jsxs)(_,{children:[u,d]}),t[10]=u,t[11]=d,t[12]=f):f=t[12],f}function dt(e){let t=(0,J.c)(31),{value:r,groups:i,environments:a,onChange:o,singleEnvironment:s}=e,c;if(t[0]!==a||t[1]!==i||t[2]!==r){let e=Je(r,i,a);c=Xe(r,e.kind===`checkout`?e.environmentId:null),t[0]=a,t[1]=i,t[2]=r,t[3]=c}else c=t[3];let l=c,u,f,p,m;if(t[4]!==l||t[5]!==a||t[6]!==s){let e;t[11]===l?e=t[12]:(e=e=>e.environmentId===l,t[11]=l,t[12]=e);let n=a.find(e);u=ut,f=`Environment scope`,p=n?(0,Y.jsx)(K,{"aria-hidden":!0,kind:b(n.serverConfig),className:`size-3.5 shrink-0`}):null,m=n?Ye(n,a):l===`all`?s?`No environments`:`All environments`:`Unavailable environment`,t[4]=l,t[5]=a,t[6]=s,t[7]=u,t[8]=f,t[9]=p,t[10]=m}else u=t[7],f=t[8],p=t[9],m=t[10];let h;t[13]!==o||t[14]!==r?(h=e=>{typeof e==`string`&&o(Qe(r,e))},t[13]=o,t[14]=r,t[15]=h):h=t[15];let g;t[16]===s?g=t[17]:(g=s?null:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(d,{value:`all`,closeOnClick:!0,children:(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Y.jsx)(N,{"aria-hidden":!0,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:`All environments`}),(0,Y.jsx)(n,{})]})}),(0,Y.jsx)(w,{})]}),t[16]=s,t[17]=g);let _;t[18]===a?_=t[19]:(_=a.map(e=>(0,Y.jsx)(d,{value:e.environmentId,closeOnClick:!0,children:(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Y.jsx)(K,{"aria-hidden":!0,kind:b(e.serverConfig),className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:Ye(e,a)}),e.connection.phase===`connected`?null:(0,Y.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:`Offline`}),(0,Y.jsx)(n,{})]})},e.environmentId)),t[18]=a,t[19]=_);let v;t[20]!==l||t[21]!==h||t[22]!==g||t[23]!==_?(v=(0,Y.jsxs)(y,{value:l,onValueChange:h,children:[g,_]}),t[20]=l,t[21]=h,t[22]=g,t[23]=_,t[24]=v):v=t[24];let x;return t[25]!==u||t[26]!==f||t[27]!==p||t[28]!==m||t[29]!==v?(x=(0,Y.jsx)(u,{ariaLabel:f,icon:p,label:m,children:v}),t[25]=u,t[26]=f,t[27]=p,t[28]=m,t[29]=v,t[30]=x):x=t[30],x}function ft(e){let t=(0,J.c)(24),{value:r,groups:i,onChange:a}=e,o;if(t[0]!==i||t[1]!==r){let e;t[3]===r?e=t[4]:(e=e=>e.projectKey===r.project,t[3]=r,t[4]=e),o=i.find(e),t[0]=i,t[1]=r,t[2]=o}else o=t[2];let s=o,c;t[5]===s?c=t[6]:(c=s?(0,Y.jsx)(R,{project:s,className:`size-3.5 shrink-0`}):null,t[5]=s,t[6]=c);let l=s?.displayName??(r.project?`Unavailable project`:`All projects`),u;t[7]===r?u=t[8]:(u=Ze(r),t[7]=r,t[8]=u);let f;t[9]!==a||t[10]!==r?(f=e=>{typeof e==`string`&&a($e(r,e))},t[9]=a,t[10]=r,t[11]=f):f=t[11];let p,m;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsx)(d,{value:`all`,closeOnClick:!0,children:(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:`All projects`}),(0,Y.jsx)(n,{})]})}),m=(0,Y.jsx)(w,{}),t[12]=p,t[13]=m):(p=t[12],m=t[13]);let h;t[14]===i?h=t[15]:(h=i.map(pt),t[14]=i,t[15]=h);let g;t[16]!==u||t[17]!==f||t[18]!==h?(g=(0,Y.jsxs)(y,{value:u,onValueChange:f,children:[p,m,h]}),t[16]=u,t[17]=f,t[18]=h,t[19]=g):g=t[19];let _;return t[20]!==c||t[21]!==l||t[22]!==g?(_=(0,Y.jsx)(ut,{ariaLabel:`Project scope`,icon:c,label:l,children:g}),t[20]=c,t[21]=l,t[22]=g,t[23]=_):_=t[23],_}function pt(e){return(0,Y.jsx)(d,{value:e.projectKey,closeOnClick:!0,children:(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Y.jsx)(R,{project:e,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.displayName}),(0,Y.jsx)(n,{})]})},e.projectKey)}function mt(e){let t=(0,J.c)(6),{target:n}=ot(),r=L(),i=n?.settings??T;he(n?.environmentId??null,n?.settings??null);let a;t[0]!==r||t[1]!==i?(a=me(i,r),t[0]=r,t[1]=i,t[2]=a):a=t[2];let o=a,s;return t[3]!==e||t[4]!==o?(s=e?e(o):o,t[3]=e,t[4]=o,t[5]=s):s=t[5],s}function ht(e){let t=(0,J.c)(3),{targets:n}=ot(),r;return t[0]!==e||t[1]!==n?(r=Le(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function gt(e){let t=(0,J.c)(3),{targets:n}=ot(),r;return t[0]!==e||t[1]!==n?(r=Re(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}function _t(){let e=(0,J.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={reportFailure:!1},e[0]=t):t=e[0];let n=xe(_e.updateSettings,t),r;return e[1]===n?r=e[2]:(r=e=>{if(e.unavailableReason){le.add({type:`warning`,title:`Setting not saved`,description:e.unavailableReason});return}Ke(e,async e=>{let t=m(e.input.patch).find(t=>!ye(e.environmentId,t));return t?te(g(new o({requiredScope:t,message:`This connection lacks permission to change these settings.`}))):n(e)},fe).then(vt)},e[1]=n,e[2]=r),r}function vt(e){let{failedEnvironments:t,savedEnvironments:n,savedEnvironmentCount:r}=e;t.length!==0&&le.add({type:`error`,title:r>0?`Setting saved on some environments`:`Setting not saved`,description:[...t.map(bt),...r>0?[`Saved on ${n.map(yt).join(`, `)}.`]:[]].join(`
|
|
2
|
-
`)})}function yt(e){let{label:t}=e;return t}function bt(e){let{label:t,message:n}=e;return`Could not save on ${t}: ${n}`}function xt(){let e=(0,J.c)(4),{scope:t,environments:n}=ot(),r=_t(),i;return e[0]!==n||e[1]!==r||e[2]!==t?(i=e=>r(Be(t,n,e)),e[0]=n,e[1]=r,e[2]=t,e[3]=i):i=e[3],i}function St(){let e=(0,J.c)(3),t=at(),n=_t(),r;return e[0]!==t||e[1]!==n?(r=e=>{t!==null&&n(Ve(t.scope,t.environments,e))},e[0]=t,e[1]=n,e[2]=r):r=e[2],r}function Ct(){let e=(0,J.c)(3),t=at(),n=_t(),r;return e[0]!==t||e[1]!==n?(r=(e,r)=>{t!==null&&n(Ue(t.environments,e,r))},e[0]=t,e[1]=n,e[2]=r):r=e[2],r}function wt(){let e=(0,J.c)(3),{connectedEnvironments:t}=ot(),n=be(t,r),i;return e[0]!==t||e[1]!==n?(i=t.length>0&&t.every(e=>n.has(e.environmentId)),e[0]=t,e[1]=n,e[2]=i):i=e[2],i}p([`local`,`worktree`]);var Tt=new Set([`local`,`local environment`]);function Et(e){let t=e?.trim();return t&&t.length>0?t:null}function Dt(e){let t=Et(e.runtimeLabel),n=Et(e.savedLabel);return e.isPrimary?[t,n].find(e=>e?!Tt.has(e.toLowerCase()):!1)??`This device`:t??n??e.environmentId}function Ot(e){return e.canPickEnvironment?!0:e.activeEnvironment!==null&&!e.activeEnvironment.isPrimary}function kt(e){return e.hasActiveProject&&(e.isDraftHeroState||e.persistInActiveThreads)&&(e.isGitRepo||e.showEnvironmentIndicator||e.hostsRestingComposerControls)}var At=16;function jt(e){return e.compact?e.neededWidth>e.availableWidth-At:e.neededWidth>e.availableWidth}function Mt(e){return e===`worktree`?`New worktree`:`Current checkout`}var Nt={recursive:`Recursive`,"top-level":`Top level only`,none:`Skip`};function Pt(e){return e?`Current worktree`:Mt(`local`)}function Ft(e,t){return e?`Worktree`:t===`worktree`?Mt(`worktree`):`Local checkout`}function It(e){let t=null;for(let n of e.threads){if(!n.worktreePath||n.worktreePath===e.currentWorktreePath||(n.archivedAt??null)!==null)continue;let r=Ce(n.updatedAt);r!==null&&(t===null||r>t.updatedAt)&&(t={branch:n.branch,worktreePath:n.worktreePath,updatedAt:r})}return t===null?null:{branch:t.branch,worktreePath:t.worktreePath}}function Lt(e){return e.branch?`Previous worktree (${e.branch})`:`Previous worktree`}function Rt(e){let{activeWorktreePath:t,hasServerThread:n,draftThreadEnvMode:r,preparingWorktree:i}=e;return n?t||i?`worktree`:`local`:t?`local`:r===`worktree`?`worktree`:`local`}function zt(e){let{nextWorktreePath:t,currentWorktreePath:n,effectiveEnvMode:r}=e;return t||r===`worktree`&&!n?`worktree`:`local`}function Bt(e){let{envMode:t,activeWorktreePath:n,activeThreadBranch:r,currentGitBranch:i}=e;return t===`worktree`&&!n?r??i:i??r}function Vt(e){let{activeWorktreePath:t,effectiveEnvMode:n,resolvedActiveBranch:r,resolvedActiveBranchIsRemote:i,startFromOrigin:a}=e;return r?n===`worktree`&&!t?`From ${a&&i===!1?`origin/${r}`:r}`:r:`Select ref`}function Ht(e){return e.activeThreadBranch===e.resolvedActiveBranch?e.activeThreadBranch:null}function Ut(e){let{effectiveEnvMode:t,activeWorktreePath:n,activeThreadBranch:r,currentGitBranch:i}=e;return t!==`local`||n!==null||!r||!i||r===i?null:{threadBranch:r,currentBranch:i}}function Wt(e){let{activeProjectCwd:t,activeWorktreePath:n,refName:r}=e;if(r.worktreePath)return{checkoutCwd:r.worktreePath,nextWorktreePath:r.worktreePath===t?null:r.worktreePath,reuseExistingWorktree:!0};let i=n!==null&&r.isDefault?null:n;return{checkoutCwd:i??t,nextWorktreePath:i,reuseExistingWorktree:!1}}function Gt(e){let{itemValue:t,normalizedQuery:n,createBranchItemValue:r,checkoutPullRequestItemValue:i}=e;if(n.length===0||r&&t===r||i&&t===i)return!0;let a=t.toLowerCase();if(a.includes(n))return!0;let o=Se(n);return o.length>0&&o!==n&&a.includes(o)}var Kt={repo_conventions:`Repository conventions`,conventional_commits:`Conventional Commits`,custom:`Custom instructions`};function qt(e,t){if(t==null)return e===`pullRequestMergeMethod`?`Last selected`:e===`sidebarAutoSettleAfterDays`?`Never`:e===`defaultModelSelection`?`Automatic`:e===`sourceControlWriterModelSelection`?`Text generation model`:e===`reviewGuideModelSelection`?`Source control writer model`:e===`defaultThreadEnvMode`||e===`worktreeSubmodules`?`Inherit`:`Not set`;if(typeof t==`boolean`)return t?`On`:`Off`;if(typeof t==`number`)return e===`sidebarAutoSettleAfterDays`?`${t} ${t===1?`day`:`days`}`:String(t);if(typeof t==`string`)return e===`defaultThreadEnvMode`&&(t===`local`||t===`worktree`)?Mt(t):e===`worktreeSubmodules`&&t in Nt?Nt[t]:e===`pullRequestMergeMethod`&&t in Oe?Oe[t]:t===``?`Empty`:t;if(Array.isArray(t))return`${t.length} ${t.length===1?`item`:`items`}`;if(typeof t==`object`){if(`model`in t&&typeof t.model==`string`)return t.model;if(`mode`in t&&typeof t.mode==`string`)return Kt[t.mode]??t.mode}return`Custom`}function Jt(e,t,n){let r=t[n],i=$(n)?e.sources[n]:`environment`,a=!ne(r,T[n]),o=Yt(n),s=[];e.projectId!==null&&$(n)&&s.push({key:`project`,label:`Project`,value:i===`project`?qt(n,e.settings[n]):`Inherits`,effective:i===`project`,set:i===`project`}),s.push({key:`environment`,label:e.label,value:a?qt(n,r):`Inherits`,effective:i===`environment`&&a,set:a}),o&&e.projectId!==null&&s.push({key:`p4.json`,label:`p4.json`,value:i===`p4.json`?qt(n,e.settings[n]):`Inherits`,effective:i===`p4.json`,set:i===`p4.json`});let c=o?f[n].builtIn:T[n];return s.push({key:`built-in`,label:`Default`,value:qt(n,c),effective:i===`environment`&&!a,set:!0}),s}function Yt(e){return Object.hasOwn(f,e)}function Xt(e){let t=(0,J.c)(52),{state:n,summary:r,targets:i,environments:a,keys:o,overridingProjects:s,onClearOverrides:c}=e,l;t[0]===s?l=t[1]:(l=s===void 0?[]:s,t[0]=s,t[1]=l);let u=l,d=o[0];if(!d||i.length===0)return null;let f=u.length>0?`${r} · ${u.length} project ${u.length===1?`override`:`overrides`}`:r,p,m,h,g,_,v,y,x;if(t[2]!==a||t[3]!==d||t[4]!==c||t[5]!==f||t[6]!==u||t[7]!==n||t[8]!==i){let e;t[17]!==a||t[18]!==d?(e=e=>{let t=a.find(t=>t.environmentId===e.environmentId);return t?.serverConfig?[{target:e,environment:{...t,serverConfig:t.serverConfig},machine:b(t.serverConfig),layers:Jt(e,t.serverConfig.settings,d)}]:[]},t[17]=a,t[18]=d,t[19]=e):e=t[19];let r=i.flatMap(e);m=Ee;let o=`${f}. Show where this value comes from`,s;t[20]===o?s=t[21]:(s=(0,Y.jsx)(Te,{render:(0,Y.jsx)(ee,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":o})}),t[20]=o,t[21]=s);let l=n===`overridden`&&`text-primary`,S=n===`mixed`&&`text-warning`,C;t[22]!==l||t[23]!==S?(C=k(`size-3`,l,S),t[22]=l,t[23]=S,t[24]=C):C=t[24];let w;t[25]===C?w=t[26]:(w=(0,Y.jsx)(N,{className:C}),t[25]=C,t[26]=w);let T;t[27]!==s||t[28]!==w?(T=(0,Y.jsx)(ae,{render:s,children:w}),t[27]=s,t[28]=w,t[29]=T):T=t[29];let E;t[30]===f?E=t[31]:(E=(0,Y.jsx)(oe,{side:`top`,children:f}),t[30]=f,t[31]=E),t[32]!==T||t[33]!==E?(x=(0,Y.jsxs)(se,{children:[T,E]}),t[32]=T,t[33]=E,t[34]=x):x=t[34],p=we,_=`start`,v=`md`,y=`none`,h=`divide-y divide-border/60`;let D;t[35]!==d||t[36]!==c||t[37]!==u?(D=e=>{let{target:t,environment:n,machine:r,layers:i}=e;return(0,Y.jsxs)(`section`,{className:`px-3 py-2.5`,children:[(0,Y.jsxs)(`h4`,{className:`flex items-center gap-1.5 pb-1.5 text-xs font-medium text-muted-foreground`,children:[(0,Y.jsx)(K,{"aria-hidden":!0,kind:r,className:`size-3.5 shrink-0`}),(0,Y.jsx)(`span`,{className:`min-w-0 truncate`,children:t.label})]}),(0,Y.jsx)(`ol`,{role:`list`,className:`text-sm`,children:i.map(Zt)}),(()=>{let e=u.filter(e=>e.environmentId===t.environmentId);if(e.length===0)return null;let r=n.serverConfig.settings.projectSettingsOverrides;return(0,Y.jsxs)(`div`,{className:`mt-2 border-t border-border/60 pt-2`,children:[(0,Y.jsxs)(`div`,{className:`flex items-center justify-between gap-3 px-2 text-xs text-muted-foreground`,children:[(0,Y.jsx)(`span`,{children:`Overridden by`}),c?(0,Y.jsxs)(O,{onClick:()=>c(e),children:[`Reset `,e.length===1?`it`:`all`]}):null]}),(0,Y.jsx)(`ul`,{role:`list`,className:`mt-0.5 text-sm`,children:e.map(e=>(0,Y.jsxs)(`li`,{className:`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 px-2 py-1`,children:[(0,Y.jsx)(O,{className:`min-w-0 justify-start`,onClick:e.open,children:(0,Y.jsx)(`span`,{className:`truncate`,children:e.label})}),(0,Y.jsx)(`span`,{className:`max-w-32 truncate text-muted-foreground tabular-nums`,children:$(d)?qt(d,r[e.projectId]?.[d]):null})]},e.projectId))})]})})()]},`${t.environmentId}:${t.projectId??``}`)},t[35]=d,t[36]=c,t[37]=u,t[38]=D):D=t[38],g=r.map(D),t[2]=a,t[3]=d,t[4]=c,t[5]=f,t[6]=u,t[7]=n,t[8]=i,t[9]=p,t[10]=m,t[11]=h,t[12]=g,t[13]=_,t[14]=v,t[15]=y,t[16]=x}else p=t[9],m=t[10],h=t[11],g=t[12],_=t[13],v=t[14],y=t[15],x=t[16];let S;t[39]!==h||t[40]!==g?(S=(0,Y.jsx)(`div`,{className:h,children:g}),t[39]=h,t[40]=g,t[41]=S):S=t[41];let C;t[42]!==p||t[43]!==_||t[44]!==v||t[45]!==y||t[46]!==S?(C=(0,Y.jsx)(p,{align:_,width:v,padding:y,children:S}),t[42]=p,t[43]=_,t[44]=v,t[45]=y,t[46]=S,t[47]=C):C=t[47];let w;return t[48]!==m||t[49]!==C||t[50]!==x?(w=(0,Y.jsxs)(m,{children:[x,C]}),t[48]=m,t[49]=C,t[50]=x,t[51]=w):w=t[51],w}function Zt(e){return(0,Y.jsxs)(`li`,{className:k(`grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 rounded-md px-2 py-1`,e.effective&&`bg-foreground/[0.06]`),children:[(0,Y.jsx)(`span`,{className:k(`min-w-0 truncate`,e.effective?`font-medium text-foreground`:`text-muted-foreground`),children:e.key===`environment`?`Environment`:e.label}),(0,Y.jsxs)(`span`,{className:k(`flex items-center gap-1.5 tabular-nums`,e.effective?`text-foreground`:e.set?`text-muted-foreground`:`text-muted-foreground/60`),children:[(0,Y.jsx)(`span`,{className:`max-w-32 truncate`,children:e.value}),e.effective?(0,Y.jsx)(j,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-primary`}):(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`size-3.5 shrink-0`})]})]},e.key)}var Qt=[],$t=()=>void 0,en=(0,Z.createContext)({targetId:null,highlightTarget:!0,onTargetHandled:$t});function tn(e){let t=(0,J.c)(7),{targetId:n,highlightTarget:r,onTargetHandled:i,children:a}=e,o=r===void 0||r,s=i===void 0?$t:i,c;t[0]!==o||t[1]!==s||t[2]!==n?(c={targetId:n,highlightTarget:o,onTargetHandled:s},t[0]=o,t[1]=s,t[2]=n,t[3]=c):c=t[3];let l=c,u;return t[4]!==a||t[5]!==l?(u=(0,Y.jsx)(en,{value:l,children:a}),t[4]=a,t[5]=l,t[6]=u):u=t[6],u}function nn(e,t=!0){let n=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;((typeof e.querySelector==`function`?e.querySelector(`:scope > [data-settings-scroll-target]`):null)??(e.tagName===`SECTION`&&e.firstElementChild?e.firstElementChild:e)).scrollIntoView({behavior:n?`auto`:`smooth`,block:`center`}),e.focus({preventScroll:!0}),e.classList.remove(`settings-search-target-pulse`),t&&!n&&(e.offsetWidth,e.classList.add(`settings-search-target-pulse`),e.addEventListener(`blur`,()=>e.classList.remove(`settings-search-target-pulse`),{once:!0}))}function rn(){return(0,Z.useContext)(en).targetId}function an(e){let t=(0,J.c)(4),{targetId:n,highlightTarget:r,onTargetHandled:i}=(0,Z.useContext)(en),a=e!==void 0&&e===n,o;return t[0]!==r||t[1]!==a||t[2]!==i?(o=e=>{e&&a&&(nn(e,r),i())},t[0]=r,t[1]=a,t[2]=i,t[3]=o):o=t[3],o}function on(e){let t=(0,J.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=an(r.id),a=r.id?-1:r.tabIndex,o;return t[3]!==n||t[4]!==a||t[5]!==r||t[6]!==i?(o=(0,Y.jsx)(`div`,{...r,ref:i,tabIndex:a,children:n}),t[3]=n,t[4]=a,t[5]=r,t[6]=i,t[7]=o):o=t[7],o}var sn=`min-w-0 max-w-none shrink-0`;function cn(e){let t=(0,J.c)(3),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Y.jsx)(ae,{delay:200,render:(0,Y.jsx)(ee,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":`Background policy details`,children:(0,Y.jsx)(re,{className:`size-3.5`})})}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,Y.jsxs)(se,{children:[r,(0,Y.jsx)(oe,{side:`top`,children:n})]}),t[1]=n,t[2]=i),i}function ln(e){let t=(0,J.c)(3),n=e===void 0?1e3:e,[r,i]=(0,Z.useState)(un),a,o;return t[0]===n?(a=t[1],o=t[2]):(a=()=>{let e=setInterval(()=>i(Date.now()),n);return()=>clearInterval(e)},o=[n],t[0]=n,t[1]=a,t[2]=o),(0,Z.useEffect)(a,o),r}function un(){return Date.now()}function dn(e){let t=(0,J.c)(30),n,r,i,a,o,s,c,l,u;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9]):({title:l,hideTitle:s,icon:a,titleAction:u,headerAction:i,variant:c,children:n,className:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u);let d=s!==void 0&&s,f=c===void 0?`grouped`:c,p=an(o.id),m=o.id?-1:o.tabIndex,h=!d&&`space-y-2.5`,g;t[10]!==r||t[11]!==h?(g=k(h,r),t[10]=r,t[11]=h,t[12]=g):g=t[12];let _;t[13]!==i||t[14]!==d||t[15]!==a||t[16]!==l||t[17]!==u?(_=d?(0,Y.jsx)(`h2`,{className:`sr-only`,children:l}):(0,Y.jsxs)(`div`,{"data-settings-scroll-target":!0,className:`flex min-h-7 items-start justify-between gap-4 px-3 sm:px-4`,children:[(0,Y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,Y.jsxs)(`h2`,{className:`flex min-h-7 items-center gap-2 text-sm font-normal text-foreground/70`,children:[a,l]}),u]}),(0,Y.jsx)(`div`,{className:`flex min-h-7 min-w-7 items-center justify-end`,children:i})]}),t[13]=i,t[14]=d,t[15]=a,t[16]=l,t[17]=u,t[18]=_):_=t[18];let v=d?``:void 0,y;t[19]!==n||t[20]!==v||t[21]!==f?(y=(0,Y.jsx)(X,{"data-settings-scroll-target":v,variant:f,children:n}),t[19]=n,t[20]=v,t[21]=f,t[22]=y):y=t[22];let b;return t[23]!==o||t[24]!==m||t[25]!==g||t[26]!==_||t[27]!==y||t[28]!==p?(b=(0,Y.jsxs)(`section`,{...o,ref:p,tabIndex:m,className:g,children:[_,y]}),t[23]=o,t[24]=m,t[25]=g,t[26]=_,t[27]=y,t[28]=p,t[29]=b):b=t[29],b}function fn(e){let t=(0,J.c)(8),{children:n,message:r}=e;if(r===void 0)return n;let i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(re,{className:`mt-0.5 size-3.5 shrink-0 text-warning`}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=(0,Y.jsxs)(`div`,{className:`flex items-start gap-2 px-3 py-2 text-xs leading-relaxed text-muted-foreground sm:px-4`,children:[i,(0,Y.jsx)(`p`,{children:r})]}),t[1]=r,t[2]=a);let o;t[3]===n?o=t[4]:(o=(0,Y.jsx)(`div`,{className:`[&_h3]:opacity-64 [&_p]:opacity-64`,children:n}),t[3]=n,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,Y.jsxs)(`div`,{className:`border-border/60 bg-muted/20 py-1.5`,children:[a,o]}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function pn(e){let t=(0,J.c)(118),n,i,a,o,s,c,l,u,d,f,p,m;t[0]===e?(n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12]):({title:m,description:o,status:d,resetAction:l,onResetOverride:c,control:a,serverScoped:f,settingKeys:p,mixed:s,children:n,className:i,...u}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m);let h=f!==void 0&&f,g=p===void 0?Qt:p,_=an(u.id),v=pe(),y=at(),b=de(),x=ue(),S=ve(b,r),C;t[13]===y?.connectedEnvironments?C=t[14]:(C=y?.connectedEnvironments??[],t[13]=y?.connectedEnvironments,t[14]=C);let w=be(C,r),E;t[15]!==y||t[16]!==S||t[17]!==w?(E=y?y.connectedEnvironments.length>0&&y.connectedEnvironments.every(e=>w.has(e.environmentId)):S,t[15]=y,t[16]=S,t[17]=w,t[18]=E):E=t[18];let D=E,ee=St(),te=Ct(),O=y!==null&&(y.scope.kind===`project`||y.scope.kind===`checkout`),A,j,M,re;if(t[19]!==y||t[20]!==O||t[21]!==s||t[22]!==h||t[23]!==g){M=g.filter($),A=O&&h&&M.length===0;let e;t[28]!==y||t[29]!==s||t[30]!==g?(e=s??(y!==null&&Le(y.targets,g)),t[28]=y,t[29]=s,t[30]=g,t[31]=e):e=t[31],j=e,re=y&&O?Re(y.targets,M):null,t[19]=y,t[20]=O,t[21]=s,t[22]=h,t[23]=g,t[24]=A,t[25]=j,t[26]=M,t[27]=re}else A=t[24],j=t[25],M=t[26],re=t[27];let N=re,P=h&&(!D||!(y?y.connectedEnvironments.length>0:v)),ie;t[32]!==y||t[33]!==N?(ie=N===`environment`&&y?.scope.environmentIds.length===1?y.environments.find(e=>e.environmentId===y.scope.environmentIds[0])?.label??`environment`:`environment`,t[32]=y,t[33]=N,t[34]=ie):ie=t[34];let ce=ie;y?.connectedEnvironments;let F;t[35]===y?.connectedEnvironments?F=t[36]:(F=new Map((y?.connectedEnvironments??[]).flatMap(hn)),t[35]=y?.connectedEnvironments,t[36]=F);let le=F,I;bb0:{if(y===null||O||M.length===0){let e;t[37]===Symbol.for(`react.memo_cache_sentinel`)?(e=[],t[37]=e):e=t[37],I=e;break bb0}let e;if(t[38]!==y||t[39]!==M){let n;t[41]===y?n=t[42]:(n=e=>{let t=y.groups.find(t=>t.memberProjects.some(t=>t.environmentId===e.environmentId&&t.id===e.projectId));return t?[{...e,label:t.displayName,open:()=>y.selectScope({project:t.projectKey,...y.search.machine?{machine:y.search.machine}:{}})}]:[]},t[41]=y,t[42]=n),e=He(y.connectedEnvironments,M).flatMap(n),t[38]=y,t[39]=M,t[40]=e}else e=t[40];I=e}let fe=I,me;t[43]!==ee||t[44]!==O||t[45]!==c||t[46]!==l||t[47]!==M||t[48]!==N||t[49]!==m||t[50]!==P?(me=P?null:O&&M.length>0?N===`project`||N===`mixed`?(0,Y.jsx)(gn,{label:typeof m==`string`?m:`override`,tooltip:`Reset to inherited value`,onClick:()=>c?c():ee(M)}):null:l,t[43]=ee,t[44]=O,t[45]=c,t[46]=l,t[47]=M,t[48]=N,t[49]=m,t[50]=P,t[51]=me):me=t[51];let he=me,L;t[52]===a?L=t[53]:(L=e=>(0,Y.jsxs)(se,{children:[(0,Y.jsx)(ae,{render:(0,Y.jsx)(`span`,{tabIndex:0,className:`flex w-full items-center rounded-md outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring @min-[32rem]/settings-row:w-auto`}),children:(0,Y.jsx)(`div`,{inert:!0,className:`flex w-full items-center gap-2 opacity-50 @min-[32rem]/settings-row:w-auto`,children:a})}),(0,Y.jsx)(oe,{side:`top`,children:e})]}),t[52]=a,t[53]=L);let _e=L,ye;t[54]!==D||t[55]!==y||t[56]!==a||t[57]!==A||t[58]!==_e||t[59]!==x?.label||t[60]!==P||t[61]!==w?(ye=P&&a?_e(D?y?`Reconnect the selected environment to change this setting.`:ge:`This connection lacks permission to change settings on ${y?y.connectedEnvironments.filter(e=>!w.has(e.environmentId)).map(mn).join(`, `)||`the selected environment`:x?.label??`the primary environment`}.`):A&&a?_e(`Environment-wide setting. Select an environment to change it.`):a,t[54]=D,t[55]=y,t[56]=a,t[57]=A,t[58]=_e,t[59]=x?.label,t[60]=P,t[61]=w,t[62]=ye):ye=t[62];let xe=ye,Se;t[63]!==y||t[64]!==le||t[65]!==g?(Se=y!==null&&g.some(e=>y.targets.some(t=>{let n=le.get(t.environmentId);return n!==void 0&&!ne(n[e],T[e])})),t[63]=y,t[64]=le,t[65]=g,t[66]=Se):Se=t[66];let Ce=Se,we;t[67]!==Ce||t[68]!==ce||t[69]!==j||t[70]!==M||t[71]!==N?(we=j?{state:`mixed`,summary:`Mixed across selected environments`}:N===`project`?{state:`overridden`,summary:`Overridden for this project`}:N===`p4.json`?{state:`inherited`,summary:`Inherited from the repository's p4.json`}:N===`environment`&&M.length>0?{state:`inherited`,summary:`Inherited from ${ce}`}:Ce?{state:`environment`,summary:`Set on the environment`}:{state:`default`,summary:`Built-in default`},t[67]=Ce,t[68]=ce,t[69]=j,t[70]=M,t[71]=N,t[72]=we):we=t[72];let Te=we,Ee;t[73]!==D||t[74]!==te||t[75]!==y||t[76]!==Te||t[77]!==fe||t[78]!==M||t[79]!==h||t[80]!==g?(Ee=y&&h&&g.length>0?(0,Y.jsx)(Xt,{state:Te.state,summary:Te.summary,targets:y.targets,environments:y.connectedEnvironments,keys:g,overridingProjects:fe,...D?{onClearOverrides:e=>te(e,M)}:{}}):null,t[73]=D,t[74]=te,t[75]=y,t[76]=Te,t[77]=fe,t[78]=M,t[79]=h,t[80]=g,t[81]=Ee):Ee=t[81];let R=Ee,z=d,De=u.id?-1:u.tabIndex,Oe=n?`pt-3 pb-1`:`py-3`,B;t[82]!==i||t[83]!==Oe?(B=k(`@container/settings-row rounded-xl px-3 sm:px-4 aria-disabled:opacity-64 aria-disabled:[&_*]:text-muted-foreground`,Oe,i),t[82]=i,t[83]=Oe,t[84]=B):B=t[84];let V;t[85]===m?V=t[86]:(V=(0,Y.jsx)(`h3`,{className:`text-sm font-medium text-foreground`,children:m}),t[85]=m,t[86]=V);let H;t[87]===R?H=t[88]:(H=R?(0,Y.jsx)(`span`,{className:`inline-flex h-5 w-5 shrink-0 items-center justify-center`,children:R}):null,t[87]=R,t[88]=H);let U;t[89]===he?U=t[90]:(U=(0,Y.jsx)(`span`,{className:`inline-flex h-5 w-5 shrink-0 items-center justify-center`,children:he}),t[89]=he,t[90]=U);let W;t[91]!==V||t[92]!==H||t[93]!==U?(W=(0,Y.jsxs)(`div`,{className:`flex min-h-5 items-center gap-1.5`,children:[V,H,U]}),t[91]=V,t[92]=H,t[93]=U,t[94]=W):W=t[94];let G;t[95]===o?G=t[96]:(G=o?(0,Y.jsx)(`p`,{className:`max-w-xl text-xs leading-normal text-muted-foreground/80`,children:o}):null,t[95]=o,t[96]=G);let K;t[97]===z?K=t[98]:(K=z?(0,Y.jsx)(`div`,{className:`pt-0.5 text-xs text-muted-foreground`,children:z}):null,t[97]=z,t[98]=K);let q;t[99]!==W||t[100]!==G||t[101]!==K?(q=(0,Y.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-1`,children:[W,G,K]}),t[99]=W,t[100]=G,t[101]=K,t[102]=q):q=t[102];let X;t[103]===xe?X=t[104]:(X=xe?(0,Y.jsx)(`div`,{className:`flex w-full min-w-0 shrink-0 items-center gap-2 @min-[32rem]/settings-row:w-auto @min-[32rem]/settings-row:justify-end`,children:xe}):null,t[103]=xe,t[104]=X);let Z;t[105]!==q||t[106]!==X?(Z=(0,Y.jsxs)(`div`,{className:`flex flex-col gap-3 @min-[32rem]/settings-row:grid @min-[32rem]/settings-row:grid-cols-[minmax(0,1fr)_minmax(10rem,auto)] @min-[32rem]/settings-row:items-center @min-[32rem]/settings-row:gap-8`,children:[q,X]}),t[105]=q,t[106]=X,t[107]=Z):Z=t[107];let Q;t[108]!==n||t[109]!==P?(Q=P&&n?(0,Y.jsx)(`div`,{inert:!0,className:`opacity-50`,children:n}):n,t[108]=n,t[109]=P,t[110]=Q):Q=t[110];let ke;return t[111]!==u||t[112]!==De||t[113]!==B||t[114]!==Z||t[115]!==Q||t[116]!==_?(ke=(0,Y.jsxs)(`div`,{...u,ref:_,tabIndex:De,"data-slot":`settings-row`,className:B,children:[Z,Q]}),t[111]=u,t[112]=De,t[113]=B,t[114]=Z,t[115]=Q,t[116]=_,t[117]=ke):ke=t[117],ke}function mn(e){return e.label}function hn(e){return e.serverConfig?[[e.environmentId,e.serverConfig.settings]]:[]}function gn(e){let t=(0,J.c)(12),{label:n,tooltip:r,disabled:i,onClick:a}=e,o=r===void 0?`Reset to default`:r,s=i!==void 0&&i,c=`Reset ${n} to default`,l;t[0]===a?l=t[1]:(l=e=>{e.stopPropagation(),a()},t[0]=a,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(P,{className:`size-3`}),t[2]=u):u=t[2];let d;t[3]!==s||t[4]!==c||t[5]!==l?(d=(0,Y.jsx)(ae,{render:(0,Y.jsx)(ee,{size:`icon-micro`,variant:`ghost-muted`,"aria-label":c,disabled:s,onClick:l,children:u})}),t[3]=s,t[4]=c,t[5]=l,t[6]=d):d=t[6];let f;t[7]===o?f=t[8]:(f=(0,Y.jsx)(oe,{side:`top`,children:o}),t[7]=o,t[8]=f);let p;return t[9]!==d||t[10]!==f?(p=(0,Y.jsxs)(se,{children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11],p}function _n(e){let t=(0,J.c)(18),{children:n,className:r,width:i}=e,a=i===void 0?`readable`:i,o=ce(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={select:yn},t[0]=s):s=t[0];let c=F(s),l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l={select:vn},t[1]=l):l=t[1];let u=F(l),d;t[2]===c?d=t[3]:(d=c.replace(/^#/,``)||null,t[2]=c,t[3]=d);let f=d,p;t[4]===o?p=t[5]:(p=()=>{o({hash:``,replace:!0,resetScroll:!1,hashScrollIntoView:!1,state:{settingsTargetHighlight:!0}})},t[4]=o,t[5]=p);let m=p,h;t[6]===r?h=t[7]:(h=k(`gap-8`,r),t[6]=r,t[7]=h);let g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(ct,{}),t[8]=g):g=t[8];let _;t[9]!==n||t[10]!==h||t[11]!==a?(_=(0,Y.jsx)(`div`,{className:`topbar-scroll-fade scrollbar-gutter-both flex-1 overflow-y-auto`,"data-settings-page-scroll":!0,children:(0,Y.jsxs)(q,{width:a,className:h,children:[g,n]})}),t[9]=n,t[10]=h,t[11]=a,t[12]=_):_=t[12];let v;return t[13]!==m||t[14]!==u||t[15]!==_||t[16]!==f?(v=(0,Y.jsx)(tn,{targetId:f,highlightTarget:u,onTargetHandled:m,children:_}),t[13]=m,t[14]=u,t[15]=_,t[16]=f,t[17]=v):v=t[17],v}function vn(e){return e.state.settingsTargetHighlight!==!1}function yn(e){return e.hash}function bn(e,{highlight:t=!0}={}){let n=document.getElementById(e);return n?(nn(n,t),!0):!1}export{Ot as A,qe as B,Dt as C,It as D,Lt as E,wt as F,X as H,xt as I,st as L,gt as M,mt as N,Gt as O,ht as P,it as R,Mt as S,Ft as T,Q as V,Vt as _,pn as a,zt as b,fn as c,an as d,rn as f,Bt as g,Ht as h,_n as i,St as j,kt as k,bn as l,Wt as m,sn as n,on as o,Nt as p,gn as r,dn as s,cn as t,ln as u,jt as v,Ut as w,Rt as x,Pt as y,ot as z};
|
|
3
|
-
//# sourceMappingURL=settingsLayout-BzyY4qHt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ua as e,Wa as t}from"./main-D9z9rMK1.js";export{t as __iconNode,e as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Cx as t,ma as n,t as r,wx as i}from"./utils-DmS758az.js";var a=i(),o=e(n(),1),s=t(`bg-muted-foreground/15 motion-safe:animate-skeleton`,{variants:{shape:{block:`rounded-sm`,card:`rounded-lg`,pill:`rounded-full`}},defaultVariants:{shape:`block`}});function c(e){let t=(0,a.c)(10),n,i,c;t[0]===e?(n=t[1],i=t[2],c=t[3]):({className:n,shape:c,...i}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=c);let l;t[4]!==n||t[5]!==c?(l=r(s({shape:c}),n),t[4]=n,t[5]=c,t[6]=l):l=t[6];let u;return t[7]!==i||t[8]!==l?(u=(0,o.jsx)(`div`,{className:l,"data-slot":`skeleton`,...i}),t[7]=i,t[8]=l,t[9]=u):u=t[9],u}export{c as t};
|
|
2
|
-
//# sourceMappingURL=skeleton-CtSxs1y1.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{t}from"./createLucideIcon-CacG5mZC.js";var n=e({__iconNode:()=>r,default:()=>i}),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 8h10`,key:`1jw688`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}],[`path`,{d:`M7 16h10`,key:`wp8him`}]],i=t(`square-menu`,r);export{n,i as t};
|
|
2
|
-
//# sourceMappingURL=square-menu-Bq3HnG2U.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ha as e,Va as t}from"./main-D9z9rMK1.js";export{e as __iconNode,t as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./createLucideIcon-CacG5mZC.js";var t=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]],n=e(`square-plus`,t);export{t as __iconNode,n as default};
|
|
2
|
-
//# sourceMappingURL=square-plus-B9j2jkOq.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-ebFBoLTT.js";import"./chunk-75Z2AOVW-DXz8BlJz.js";import"./chunk-PWAF6VOD-kBB0Jquc.js";import"./chunk-GMAD6QVW-CEXqem_-.js";import"./chunk-P2QGCYS3-I9iEYMEJ.js";import"./chunk-4HAMMTFA-BdvKUuii.js";import"./chunk-GVQU2GXP-wsgr7T0u.js";import"./chunk-OSK3NFVY-DDd2Ay5_.js";import"./chunk-F27PBJKO-B1MlVcaX.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-Cgwl0wkZ.js";import"./chunk-L3NEJ4N5-C4NnipZ0.js";import{i as t,n,r,t as i}from"./chunk-IMKFNOWR-Daxc_3WP.js";import"./mermaid.core-zK2u82e-.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=stateDiagram-v2-MP3YSRHH-BFcRJjAO.js.map
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-ebFBoLTT.js";import"./chunk-75Z2AOVW-DXz8BlJz.js";import"./chunk-PWAF6VOD-kBB0Jquc.js";import"./chunk-GMAD6QVW-CEXqem_-.js";import"./chunk-P2QGCYS3-I9iEYMEJ.js";import"./chunk-4HAMMTFA-BdvKUuii.js";import"./chunk-GVQU2GXP-wsgr7T0u.js";import"./chunk-OSK3NFVY-DDd2Ay5_.js";import"./chunk-F27PBJKO-B1MlVcaX.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-Cgwl0wkZ.js";import"./chunk-L3NEJ4N5-C4NnipZ0.js";import{r as t,t as n}from"./chunk-SHT3W25Y-gtUoMWd0.js";import"./mermaid.core-zK2u82e-.js";var r=n({defaultLayout:`swimlane`,styles:e(e=>`${t(e)}
|
|
2
|
-
.swimlane.cluster rect {
|
|
3
|
-
stroke: ${e.clusterBorder} !important;
|
|
4
|
-
}
|
|
5
|
-
[data-look="neo"].cluster rect {
|
|
6
|
-
filter: none;
|
|
7
|
-
}
|
|
8
|
-
`,`getStyles`)});export{r as diagram};
|
|
9
|
-
//# sourceMappingURL=swimlanesDiagram-VR7AAH4N-B7z2b1Qv.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ba as e,za as t}from"./main-D9z9rMK1.js";export{e as __iconNode,t as default};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{Eh as e,Rm as t,Um as n,Zm as r,th as i,ux as a}from"./utils-DmS758az.js";var o=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},s={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},c=e=>o(s[e.toLowerCase()],6),l=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,u=e=>{let t;return(t=e.match(l))?o(parseInt(t[1],16),t[1].length):void 0},d=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${d}`;var f=`${d}%`;`${d}`;var p=`(?:${d}%|${d})`,m=`(?:${d}%|${d}|none)`,h=`(?:${d}(deg|grad|rad|turn)|${d})`;`${d}${d}`;var g=`\\s*,\\s*`;RegExp(`^`+m+`$`);var ee=RegExp(`^rgba?\\(\\s*${d}${g}${d}${g}${d}\\s*(?:,\\s*${p}\\s*)?\\)$`),te=RegExp(`^rgba?\\(\\s*${f}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),ne=e=>{let t={mode:`rgb`},n;if(n=e.match(ee))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(te))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t},re=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:ve(e),ie=(e=`rgb`)=>t=>(t=re(t,e))===void 0?void 0:t.mode===e?t:_[t.mode][e]?_[t.mode][e](t):e===`rgb`?_[t.mode].rgb(t):_.rgb[e](_[t.mode].rgb(t)),_={},ae={},v=[],oe={},se=e=>e,y=e=>(_[e.mode]={..._[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{_[t]||(_[t]={}),_[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=se)}),ae[e.mode]=e,(e.parse||[]).forEach(t=>{le(t,e.mode)}),ie(e.mode)),ce=e=>ae[e],le=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);oe[e]=t}else typeof e==`function`&&v.indexOf(e)<0&&v.push(e)},ue=/[^\x00-\x7F]|[a-zA-Z_]/,de=/[^\x00-\x7F]|[-\w]/,b={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`},x=0;function S(e){let t=e[x],n=e[x+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[x+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function C(e){if(x>=e.length)return!1;let t=e[x];if(ue.test(t))return!0;if(t===`-`){if(e.length-x<2)return!1;let t=e[x+1];return!!(t===`-`||ue.test(t))}return!1}var fe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function w(e){let t=``;if((e[x]===`-`||e[x]===`+`)&&(t+=e[x++]),t+=T(e),e[x]===`.`&&/\d/.test(e[x+1])&&(t+=e[x++]+T(e)),(e[x]===`e`||e[x]===`E`)&&((e[x+1]===`-`||e[x+1]===`+`)&&/\d/.test(e[x+2])?t+=e[x++]+e[x++]+T(e):/\d/.test(e[x+1])&&(t+=e[x++]+T(e))),C(e)){let n=E(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:b.Hue,value:t*fe[n]}:void 0}return e[x]===`%`?(x++,{type:b.Percentage,value:+t}):{type:b.Number,value:+t}}function T(e){let t=``;for(;/\d/.test(e[x]);)t+=e[x++];return t}function E(e){let t=``;for(;x<e.length&&de.test(e[x]);)t+=e[x++];return t}function pe(e){let t=E(e);return e[x]===`(`?(x++,{type:b.Function,value:t}):t===`none`?{type:b.None,value:void 0}:{type:b.Ident,value:t}}function me(e=``){let t=e.trim(),n=[],r;for(x=0;x<t.length;){if(r=t[x++],r===`
|
|
2
|
-
`||r===` `||r===` `){for(;x<t.length&&(t[x]===`
|
|
3
|
-
`||t[x]===` `||t[x]===` `);)x++;continue}if(r===`,`)return;if(r===`)`){n.push({type:b.ParenClose});continue}if(r===`+`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`-`){if(x--,S(t)){n.push(w(t));continue}if(C(t)){n.push({type:b.Ident,value:E(t)});continue}return}if(r===`.`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`/`){for(;x<t.length&&(t[x]===`
|
|
4
|
-
`||t[x]===` `||t[x]===` `);)x++;let e;if(S(t)&&(e=w(t),e.type!==b.Hue)){n.push({type:b.Alpha,value:e});continue}if(C(t)&&E(t)===`none`){n.push({type:b.Alpha,value:{type:b.None,value:void 0}});continue}return}if(/\d/.test(r)){x--,n.push(w(t));continue}if(ue.test(r)){x--,n.push(pe(t));continue}return}return n}function he(e){e._i=0;let t=e[e._i++];if(!t||t.type!==b.Function||t.value!==`color`||(t=e[e._i++],t.type!==b.Ident))return;let n=oe[t.value];if(!n)return;let r={mode:n},i=ge(e,!1);if(!i)return;let a=ce(n).channels;for(let e=0,t,n;e<a.length;e++)t=i[e],n=a[e],t.type!==b.None&&(r[n]=t.type===b.Number?t.value:t.value/100,n===`alpha`&&(r[n]=Math.max(0,Math.min(1,r[n]))));return r}function ge(e,t){let n=[],r;for(;e._i<e.length;){if(r=e[e._i++],r.type===b.None||r.type===b.Number||r.type===b.Alpha||r.type===b.Percentage||t&&r.type===b.Hue){n.push(r);continue}if(r.type===b.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==b.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:b.None,value:void 0}),n.every(e=>e.type!==b.Alpha)?n:void 0}}function _e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==b.Function)return;let r=ge(e,t);if(r)return r.unshift(n.value),r}var ve=e=>{if(typeof e!=`string`)return;let t=me(e),n=t?_e(t,!0):void 0,r,i=0,a=v.length;for(;i<a;)if((r=v[i++](e,n))!==void 0)return r;return t?he(t):void 0};function ye(e,t){if(!t||t[0]!==`rgb`&&t[0]!==`rgba`)return;let n={mode:`rgb`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.r=r.type===b.Number?r.value/255:r.value/100),i.type!==b.None&&(n.g=i.type===b.Number?i.value/255:i.value/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value/255:a.value/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var be=e=>e===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,xe=(e,t,n)=>e+n*(t-e),Se=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r===void 0?[i,i]:[r,r])}return t},D=(e=>t=>{let n=Se(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(xe),O=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},k={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ye,u,ne,c,be,`srgb`],serialize:`srgb`,interpolate:{r:D,g:D,b:D,alpha:{use:D,fixup:O}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ce=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),we=e=>{let t=Ce(e.r),n=Ce(e.g),r=Ce(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Te=e=>Math.abs(e)**(256/563)*Math.sign(e),Ee=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:Te(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:Te(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:Te(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},De=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},Oe=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:De(e),g:De(t),b:De(n)};return r!==void 0&&(i.alpha=r),i},ke=e=>{let{r:t,g:n,b:r,alpha:i}=Oe(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},Ae=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},A=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:Ae(e),g:Ae(t),b:Ae(n)};return r!==void 0&&(a.alpha=r),a},j=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=A({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},je={...k,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>Ee(ke(e)),xyz65:Ee},toMode:{rgb:e=>j(we(e)),xyz65:we}},M=e=>(e%=360)<0?e+360:e;function Me({h:e,s:t,l:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),a=i-(i-n)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:i,g:a,b:2*n-i};break;case 1:o={r:a,g:i,b:2*n-i};break;case 2:o={r:2*n-i,g:i,b:a};break;case 3:o={r:2*n-i,g:a,b:i};break;case 4:o={r:a,g:2*n-i,b:i};break;case 5:o={r:i,g:2*n-i,b:a};break;default:o={r:2*n-i,g:2*n-i,b:2*n-i}}return o.mode=`rgb`,r!==void 0&&(o.alpha=r),o}function Ne({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsl`,s:i===a?0:(i-a)/(1-Math.abs(i+a-1)),l:.5*(i+a)};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var Pe=(e,t)=>{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},Fe=RegExp(`^hsla?\\(\\s*${h}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),Ie=e=>{let t=e.match(Fe);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=Pe(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function Le(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.s=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.l=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Re=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=M(n);return r===0||e[r-1]===void 0?a:t(a-M(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),ze=e=>Re(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Be=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},Ve=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=M(e.h),r=M(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},He=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Ue=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},We={mode:`hsl`,toMode:{rgb:Me},fromMode:{rgb:Ne},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Le,Ie],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},s:D,l:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Ge({h:e,s:t,v:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function Ke({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var qe={mode:`hsv`,toMode:{rgb:Ge},parse:[`--hsv`],serialize:`--hsv`,fromMode:{rgb:Ke},channels:[`h`,`s`,`v`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,interpolate:{h:{use:D,fixup:ze},s:D,v:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Je({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let e=t+n;t/=e,n/=e}return Ge({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function Ye(e){let t=Ke(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function Xe(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.w=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.b=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ze={mode:`hwb`,toMode:{rgb:Je},fromMode:{rgb:Ye},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Xe],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},w:D,b:D,alpha:{use:D,fixup:O}},difference:{h:Ve},average:{h:Ue}},Qe=29**3/27,$e=216/29**3,N={X:.3457/.3585,Y:1,Z:.2958/.3585},P={X:.3127/.329,Y:1,Z:.3583/.329},et=e=>e**3>$e?e**3:(116*e-16)/Qe,tt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:et(a)*N.X,y:et(i)*N.Y,z:et(o)*N.Z};return r!==void 0&&(s.alpha=r),s},nt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=A({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},rt=e=>nt(tt(e)),it=e=>{let{r:t,g:n,b:r,alpha:i}=Oe(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},at=e=>e>$e?Math.cbrt(e):(Qe*e+16)/116,ot=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=at(e/N.X),a=at(t/N.Y),o=at(n/N.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},st=e=>{let t=ot(it(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function ct(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*125/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*125/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var lt={mode:`lab`,toMode:{xyz50:tt,rgb:rt},fromMode:{xyz50:ot,rgb:st},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[ct],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:D,a:D,b:D,alpha:{use:D,fixup:O}}},ut=29**3/27,dt=216/29**3,ft=e=>e**3>dt?e**3:(116*e-16)/ut,pt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:ft(a)*P.X,y:ft(i)*P.Y,z:ft(o)*P.Z};return r!==void 0&&(s.alpha=r),s},mt=e=>j(pt(e)),ht=e=>e>dt?Math.cbrt(e):(ut*e+16)/116,gt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ht(e/P.X),a=ht(t/P.Y),o=ht(n/P.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},_t=e=>{let t=gt(ke(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},vt={...lt,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:pt,rgb:mt},fromMode:{xyz65:gt,rgb:_t},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},F=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=M(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},I=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};function yt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*150/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var bt={mode:`lch`,toMode:{lab:I,rgb:e=>rt(I(e))},fromMode:{rgb:e=>F(st(e)),lab:F},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[yt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},c:D,l:D,alpha:{use:D,fixup:O}},difference:{h:He},average:{h:Ue}},xt={...bt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>I(e,`lab65`),rgb:e=>mt(I(e,`lab65`))},fromMode:{rgb:e=>F(_t(e),`lch65`),lab65:e=>F(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},St={...k,mode:`lrgb`,toMode:{rgb:A},fromMode:{rgb:Oe},parse:[`srgb-linear`],serialize:`srgb-linear`},Ct=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},wt=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},Tt=e=>{let t=wt(Oe(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Et=e=>A(Ct(e));function Dt(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*.4/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*.4/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ot={...lt,mode:`oklab`,toMode:{lrgb:Ct,rgb:Et},fromMode:{lrgb:wt,rgb:Tt},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Dt],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function kt(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*.4/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var At={...bt,mode:`oklch`,toMode:{oklab:e=>I(e,`oklab`),rgb:e=>Et(I(e,`oklab`))},fromMode:{rgb:e=>F(Tt(e),`oklch`),oklab:e=>F(e,`oklch`)},parse:[kt],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},jt=e=>{let{r:t,g:n,b:r,alpha:i}=Oe(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Mt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=A({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},Nt={...k,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Mt(ke(e)),xyz65:Mt},toMode:{rgb:e=>j(jt(e)),xyz65:jt}},Pt=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},Ft=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Pt(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Pt(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Pt(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},It=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Lt=e=>{let t=It(e.r),n=It(e.g),r=It(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Rt={...k,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:Ft,rgb:e=>Ft(it(e))},toMode:{xyz50:Lt,rgb:e=>nt(Lt(e))}},zt=1.09929682680944,Bt=.018053968510807,Vt=e=>{let t=Math.abs(e);return t>Bt?(Math.sign(e)||1)*(zt*t**.45-.09929682680944008):4.5*e},Ht=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:Vt(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:Vt(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:Vt(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Ut=1.09929682680944,Wt=.018053968510807,Gt=(e=0)=>{let t=Math.abs(e);return t<Wt*4.5?e/4.5:(Math.sign(e)||1)*((t+Ut-1)/Ut)**(1/.45)},Kt=e=>{let t=Gt(e.r),n=Gt(e.g),r=Gt(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},qt={...k,mode:`rec2020`,fromMode:{xyz65:Ht,rgb:e=>Ht(ke(e))},toMode:{xyz65:Kt,rgb:e=>j(Kt(e))},parse:[`rec2020`],serialize:`rec2020`},Jt={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:nt,lab:ot},fromMode:{rgb:it,lab:tt},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}},Yt={mode:`xyz65`,toMode:{rgb:j,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:ke,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}};y(je),y(We),y(qe),y(Ze),y(lt),y(vt),y(bt),y(xt),y(St),y(Ot),y(At),y(Nt),y(Rt),y(qt),y(k),y(Jt),y(Yt);var Xt=[`t3-chat`,`grove`,`ocean`,`ember`,`iris`];[...Xt];var L=new Set([`system`,`light`,`dark`,...Xt,`t3-chat-dark`,`t3-grove`,`t3-ocean`,`t3-ember`,`t3-iris`]);[...L];var Zt=`canvas.chrome.toolbar.toolbarForeground.toolbarBorder.toolbarControl.toolbarControlForeground.toolbarControlHover.surface.surfaceRaised.surfaceOverlay.text.textMuted.border.input.focus.accent.accentForeground.secondary.secondaryForeground.muted.mutedForeground.placeholder.secondaryLabel.iconMuted.error.errorForeground.errorSurface.warning.warningForeground.warningSurface.update.updateForeground.updateSurface.accentSurface.accentSurfaceForeground.messageSurface.messageForeground.messageAction.messageActionForeground.messageActionHover.codeBackground.codeForeground.searchMatchBackground.searchMatchForeground.searchMatchActiveBackground.searchMatchActiveForeground.sidebar.sidebarForeground.sidebarMutedForeground.sidebarControlSurface.sidebarRowHover.sidebarRowActive.sidebarRowSelected.sidebarBorder.terminalBackground.terminalForeground.terminalCursor.terminalSelection.terminalScrollbar.terminalScrollbarHover`.split(`.`),Qt={searchMatchBackground:`#ffde8b`,searchMatchForeground:`#21180a`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(1 0 0)`,chrome:`#f4f4f4`,toolbar:`#f4f4f4`,toolbarForeground:`oklch(0.274 0.006 286.033)`,toolbarBorder:`oklch(0.92 0.004 286)`,toolbarControl:`oklch(1 0 0)`,toolbarControlForeground:`oklch(0.274 0.006 286.033)`,toolbarControlHover:`#f4f4f4`,surface:`oklch(1 0 0)`,surfaceRaised:`oklch(1 0 0)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.274 0.006 286.033)`,textMuted:`oklch(0.442 0.017 285.786)`,border:`oklch(0.92 0.004 286)`,input:`oklch(0.871 0.006 286)`,focus:`oklch(0.546 0.215 262.881)`,accent:`oklch(0.546 0.215 262.881)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.977 0.001 286)`,secondaryForeground:`oklch(0.274 0.006 286.033)`,muted:`oklch(0.977 0.001 286)`,mutedForeground:`oklch(0.442 0.017 285.786)`,placeholder:`oklch(0.442 0.017 285.786)`,secondaryLabel:`oklch(0.442 0.017 285.786)`,iconMuted:`oklch(0.442 0.017 285.786)`,error:`oklch(0.637 0.237 25.331)`,errorForeground:`oklch(0.505 0.213 27.518)`,errorSurface:`#fcebec`,warning:`#fe9a00`,warningForeground:`#bb4d00`,warningSurface:`#fcf4e8`,update:`oklch(0.546 0.215 262.881)`,updateForeground:`oklch(0.546 0.215 262.881)`,updateSurface:`#e0e6f7`,accentSurface:`#f4f4f4`,accentSurfaceForeground:`oklch(0.21 0.006 286)`,messageSurface:`oklch(0.967 0.001 286)`,messageForeground:`oklch(0.274 0.006 286.033)`,messageAction:`oklch(0.546 0.215 262.881)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`#3a72ed`,codeBackground:`oklch(1 0 0)`,codeForeground:`oklch(0.274 0.006 286.033)`,sidebar:`#f4f4f4`,sidebarForeground:`oklch(0.274 0.006 286.033)`,sidebarMutedForeground:`oklch(0.442 0.017 285.786)`,sidebarControlSurface:`oklch(0.977 0.001 286)`,sidebarRowHover:`#f4f4f4`,sidebarRowActive:`#e7e8e8`,sidebarRowSelected:`#e7e8e8`,sidebarBorder:`oklch(0.92 0.004 286)`,terminalBackground:`oklch(0.988 0.001 286)`,terminalForeground:`oklch(0.274 0.006 286.033)`,terminalCursor:`oklch(0.546 0.215 262.881)`,terminalSelection:`#d0d6dd`,terminalScrollbar:`#d6d6d6`,terminalScrollbarHover:`#bdbdbd`},$t={searchMatchBackground:`#8c6c1f`,searchMatchForeground:`#f5f5f5`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(0.145 0.005 286)`,chrome:`oklch(0.185 0.006 286)`,toolbar:`oklch(0.185 0.006 286)`,toolbarForeground:`oklch(0.967 0.001 286)`,toolbarBorder:`oklch(0.274 0.006 286)`,toolbarControl:`oklch(0.205 0.006 286)`,toolbarControlForeground:`oklch(0.967 0.001 286)`,toolbarControlHover:`oklch(0.245 0.006 286)`,surface:`oklch(0.185 0.006 286)`,surfaceRaised:`oklch(0.185 0.006 286)`,surfaceOverlay:`oklch(0.205 0.006 286)`,text:`oklch(0.967 0.001 286)`,textMuted:`oklch(0.674 0.006 286)`,border:`oklch(0.274 0.006 286)`,input:`oklch(0.311 0.006 286)`,focus:`oklch(0.707 0.165 254.624)`,accent:`oklch(0.707 0.165 254.624)`,accentForeground:`oklch(0.145 0.005 286)`,secondary:`oklch(0.225 0.006 286)`,secondaryForeground:`oklch(0.967 0.001 286)`,muted:`oklch(0.225 0.006 286)`,mutedForeground:`oklch(0.674 0.006 286)`,placeholder:`oklch(0.674 0.006 286)`,secondaryLabel:`oklch(0.674 0.006 286)`,iconMuted:`oklch(0.674 0.006 286)`,error:`oklch(0.704 0.191 22.216)`,errorForeground:`oklch(0.783 0.157 21.5)`,errorSurface:`#301214`,warning:`#fe9a00`,warningForeground:`#ffb900`,warningSurface:`#312108`,update:`oklch(0.707 0.165 254.624)`,updateForeground:`oklch(0.707 0.165 254.624)`,updateSurface:`#121b34`,accentSurface:`oklch(0.245 0.006 286)`,accentSurfaceForeground:`oklch(0.967 0.001 286)`,messageSurface:`oklch(0.245 0.006 286)`,messageForeground:`oklch(0.967 0.001 286)`,messageAction:`oklch(0.707 0.165 254.624)`,messageActionForeground:`oklch(0.145 0.005 286)`,messageActionHover:`#4993ec`,codeBackground:`oklch(0.185 0.006 286)`,codeForeground:`oklch(0.967 0.001 286)`,sidebar:`oklch(0.185 0.006 286)`,sidebarForeground:`oklch(0.967 0.001 286)`,sidebarMutedForeground:`oklch(0.674 0.006 286)`,sidebarControlSurface:`oklch(0.225 0.006 286)`,sidebarRowHover:`oklch(0.245 0.006 286)`,sidebarRowActive:`oklch(0.245 0.006 286)`,sidebarRowSelected:`oklch(0.245 0.006 286)`,sidebarBorder:`oklch(0.274 0.006 286)`,terminalBackground:`oklch(0.145 0.005 286)`,terminalForeground:`oklch(0.967 0.001 286)`,terminalCursor:`oklch(0.707 0.165 254.624)`,terminalSelection:`#343a47`,terminalScrollbar:`#222222`,terminalScrollbarHover:`#363636`},en={id:`t3-chat`,label:`T3 Chat`,appearance:`light`,colors:{canvas:`oklch(0.982446 0.010114 325.653)`,chrome:`oklch(0.982446 0.010114 325.653)`,toolbar:`oklch(0.982446 0.010114 325.653)`,toolbarForeground:`oklch(0.325698 0.116116 325.037)`,toolbarBorder:`oklch(0.856784 0.082879 328.911)`,toolbarControl:`oklch(0.939552 0.024286 321.664)`,toolbarControlForeground:`oklch(0.325698 0.116116 325.037)`,toolbarControlHover:`oklch(0.884525 0.041658 337.177)`,surface:`oklch(0.971835 0.012884 321.894)`,surfaceRaised:`oklch(0.988235 0.005049 325.615)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.325698 0.116116 325.037)`,textMuted:`oklch(0.494754 0.190937 354.544)`,border:`oklch(0.923531 0.021247 328.096)`,input:`oklch(0.851713 0.055822 336.6)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.591646 0.217985 0.584)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.869588 0.06751 334.899)`,secondaryForeground:`oklch(0.444777 0.134061 324.799)`,muted:`oklch(0.802407 0.090963 345.892)`,mutedForeground:`oklch(0.428932 0.163929 354.332)`,placeholder:`oklch(0.549927 0.090215 323.149)`,secondaryLabel:`oklch(0.494754 0.190937 354.544)`,iconMuted:`oklch(0.494754 0.190937 354.544)`,error:`oklch(0.627117 0.248974 7.734)`,errorForeground:`oklch(0.458704 0.169677 3.815)`,errorSurface:`oklch(0.942787 0.032076 344.963)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.54612 0.143036 48.949)`,warningSurface:`oklch(0.962901 0.015297 48.56)`,update:`oklch(0.591646 0.217985 0.584)`,updateForeground:`oklch(0.494754 0.190937 354.544)`,updateSurface:`oklch(0.930264 0.036194 341.45)`,accentSurface:`oklch(0.939552 0.024286 321.664)`,accentSurfaceForeground:`oklch(0.396296 0.025134 285.196)`,messageSurface:`oklch(0.926746 0.037898 332.6)`,messageForeground:`oklch(0.354591 0.093575 307.568)`,messageAction:`oklch(0.591646 0.217985 0.584)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`oklch(0.539042 0.197866 0.305)`,codeBackground:`oklch(0.953855 0.019695 315.668)`,codeForeground:`oklch(0.445128 0.13005 307.026)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.928886 0.031178 322.592)`,sidebarForeground:`oklch(0.396296 0.025134 285.196)`,sidebarMutedForeground:`oklch(0.494754 0.190937 354.544)`,sidebarControlSurface:`oklch(0.978851 0.001321 106.424)`,sidebarRowHover:`oklch(0.978851 0.001321 106.424)`,sidebarRowActive:`oklch(0.978851 0.001321 106.424)`,sidebarRowSelected:`oklch(0.978851 0.001321 106.424)`,sidebarBorder:`oklch(0.938313 0.002552 48.717)`,terminalBackground:`oklch(0.982446 0.010114 325.653)`,terminalForeground:`oklch(0.325698 0.116116 325.037)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.869588 0.06751 334.899)`,terminalScrollbar:`oklch(0.851713 0.055822 336.6)`,terminalScrollbarHover:`oklch(0.802407 0.090963 345.892)`},variants:{dark:{canvas:`oklch(0.22813 0.020366 307.469)`,chrome:`oklch(0.22813 0.020366 307.469)`,toolbar:`oklch(0.22813 0.020366 307.469)`,toolbarForeground:`oklch(0.980735 0.004092 301.426)`,toolbarBorder:`oklch(0.266943 0.015262 302.425)`,toolbarControl:`oklch(0.313674 0.030572 310.061)`,toolbarControlForeground:`oklch(0.848252 0.038248 307.961)`,toolbarControlHover:`oklch(0.364912 0.050794 308.491)`,surface:`oklch(0.267101 0.02016 311.799)`,surfaceRaised:`oklch(0.279864 0.021572 309.532)`,surfaceOverlay:`oklch(0.154761 0.01316 338.901)`,text:`oklch(0.980735 0.004092 301.426)`,textMuted:`oklch(0.880303 0.03077 342.696)`,border:`oklch(0.266943 0.015262 302.425)`,input:`oklch(0.266817 0.02897 344.461)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.460685 0.185347 4.099)`,accentForeground:`oklch(0.901233 0.057189 343.694)`,secondary:`oklch(0.313674 0.030572 310.061)`,secondaryForeground:`oklch(0.848252 0.038248 307.961)`,muted:`oklch(0.360924 0.021469 316.83)`,mutedForeground:`oklch(0.880303 0.03077 342.696)`,placeholder:`oklch(0.657087 0.028226 307.985)`,secondaryLabel:`oklch(0.880303 0.03077 342.696)`,iconMuted:`oklch(0.848252 0.038248 307.961)`,error:`oklch(0.458704 0.169677 3.815)`,errorForeground:`oklch(0.901233 0.057189 343.694)`,errorSurface:`oklch(0.259022 0.04799 340.062)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.836861 0.164422 84.429)`,warningSurface:`oklch(0.321706 0.036256 60.806)`,update:`oklch(0.460685 0.185347 4.099)`,updateForeground:`oklch(0.901233 0.057189 343.694)`,updateSurface:`oklch(0.256077 0.063004 342.914)`,accentSurface:`oklch(0.364912 0.050794 308.491)`,accentSurfaceForeground:`oklch(0.964695 0.009139 341.803)`,messageSurface:`oklch(0.273791 0.025541 309.079)`,messageForeground:`oklch(0.949872 0.021269 306.838)`,messageAction:`oklch(0.460685 0.185347 4.099)`,messageActionForeground:`oklch(0.901233 0.057189 343.694)`,messageActionHover:`oklch(0.458754 0.184639 3.857)`,codeBackground:`oklch(0.22813 0.020366 307.469)`,codeForeground:`oklch(0.848703 0.064239 306.645)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.185778 0.019368 322.159)`,sidebarForeground:`oklch(0.967434 0.001326 286.375)`,sidebarMutedForeground:`oklch(0.880303 0.03077 342.696)`,sidebarControlSurface:`oklch(0.23366 0.026081 338.196)`,sidebarRowHover:`oklch(0.23366 0.026081 338.196)`,sidebarRowActive:`oklch(0.23366 0.026081 338.196)`,sidebarRowSelected:`oklch(0.23366 0.026081 338.196)`,sidebarBorder:`oklch(0.269132 0.030766 351.067)`,terminalBackground:`oklch(0.22813 0.020366 307.469)`,terminalForeground:`oklch(0.980735 0.004092 301.426)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.313674 0.030572 310.061)`,terminalScrollbar:`oklch(0.266817 0.02897 344.461)`,terminalScrollbarHover:`oklch(0.360924 0.021469 316.83)`}},sidebarArtwork:!0},tn={id:`grove`,label:`Grove`,appearance:`light`,colors:{canvas:`oklch(0.972369 0.005497 157.15)`,chrome:`oklch(0.972369 0.005497 157.15)`,toolbar:`oklch(0.972369 0.005497 157.15)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.864831 0.01312 167.255)`,toolbarControl:`oklch(0.932695 0.003778 160.944)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.949276 0.004496 159.002)`,surface:`oklch(0.972369 0.005497 157.15)`,surfaceRaised:`oklch(0.972369 0.005497 157.15)`,surfaceOverlay:`oklch(0.932695 0.003778 160.944)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.527266 0.012309 320.683)`,border:`oklch(0.864831 0.01312 167.255)`,input:`oklch(0.829746 0.016084 168.234)`,focus:`oklch(0.523295 0.112292 158.089)`,accent:`oklch(0.523295 0.112292 158.089)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.945455 0.012308 162.879)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.945455 0.012308 162.879)`,mutedForeground:`oklch(0.527266 0.012309 320.683)`,placeholder:`oklch(0.527266 0.012309 320.683)`,secondaryLabel:`oklch(0.527266 0.012309 320.683)`,iconMuted:`oklch(0.527266 0.012309 320.683)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.936968 0.014243 26.295)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.545036 0.155019 45.359)`,warningSurface:`oklch(0.953175 0.02009 93.379)`,update:`oklch(0.523295 0.112292 158.089)`,updateForeground:`oklch(0.523295 0.112292 158.089)`,updateSurface:`oklch(0.900411 0.02384 164.795)`,accentSurface:`oklch(0.949276 0.004496 159.002)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.949276 0.004496 159.002)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.523295 0.112292 158.089)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.488753 0.096536 77.829)`,codeBackground:`oklch(0.972369 0.005497 157.15)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.972369 0.005497 157.15)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.527266 0.012309 320.683)`,sidebarControlSurface:`oklch(0.945455 0.012308 162.879)`,sidebarRowHover:`oklch(0.949276 0.004496 159.002)`,sidebarRowActive:`oklch(0.949276 0.004496 159.002)`,sidebarRowSelected:`oklch(0.949276 0.004496 159.002)`,sidebarBorder:`oklch(0.864831 0.01312 167.255)`,terminalBackground:`oklch(0.972369 0.005497 157.15)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.523295 0.112292 158.089)`,terminalSelection:`oklch(0.891377 0.026164 164.929)`,terminalScrollbar:`oklch(0.824752 0.001392 294.641)`,terminalScrollbarHover:`oklch(0.755495 0.004415 318.776)`},variants:{dark:{canvas:`oklch(0.260865 0.02152 162.75)`,chrome:`oklch(0.260865 0.02152 162.75)`,toolbar:`oklch(0.260865 0.02152 162.75)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.457475 0.044046 160.971)`,toolbarControl:`oklch(0.411828 0.014378 166.627)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.363192 0.016572 165.32)`,surface:`oklch(0.260865 0.02152 162.75)`,surfaceRaised:`oklch(0.260865 0.02152 162.75)`,surfaceOverlay:`oklch(0.411828 0.014378 166.627)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.715427 0.010896 171.428)`,border:`oklch(0.457475 0.044046 160.971)`,input:`oklch(0.519849 0.049896 160.863)`,focus:`oklch(0.796228 0.133058 157.319)`,accent:`oklch(0.796228 0.133058 157.319)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.339728 0.039456 160.274)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.339728 0.039456 160.274)`,mutedForeground:`oklch(0.715427 0.010896 171.428)`,placeholder:`oklch(0.715427 0.010896 171.428)`,secondaryLabel:`oklch(0.715427 0.010896 171.428)`,iconMuted:`oklch(0.715427 0.010896 171.428)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.704237 0.187511 22.228)`,errorSurface:`oklch(0.312773 0.02923 32.121)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.345524 0.046882 99.736)`,update:`oklch(0.796228 0.133058 157.319)`,updateForeground:`oklch(0.796228 0.133058 157.319)`,updateSurface:`oklch(0.448116 0.062637 158.86)`,accentSurface:`oklch(0.363192 0.016572 165.32)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.363192 0.016572 165.32)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.796228 0.133058 157.319)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815227 0.117902 84.21)`,codeBackground:`oklch(0.260865 0.02152 162.75)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.260865 0.02152 162.75)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.715427 0.010896 171.428)`,sidebarControlSurface:`oklch(0.339728 0.039456 160.274)`,sidebarRowHover:`oklch(0.363192 0.016572 165.32)`,sidebarRowActive:`oklch(0.363192 0.016572 165.32)`,sidebarRowSelected:`oklch(0.363192 0.016572 165.32)`,sidebarBorder:`oklch(0.457475 0.044046 160.971)`,terminalBackground:`oklch(0.260865 0.02152 162.75)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.796228 0.133058 157.319)`,terminalSelection:`oklch(0.464636 0.066083 158.72)`,terminalScrollbar:`oklch(0.594692 0.006862 176.022)`,terminalScrollbarHover:`oklch(0.687968 0.00354 193.55)`}},sidebarArtwork:!0},nn={id:`ocean`,label:`Ocean`,appearance:`light`,colors:{canvas:`oklch(0.974199 0.002856 241.597)`,chrome:`oklch(0.974199 0.002856 241.597)`,toolbar:`oklch(0.974199 0.002856 241.597)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.867646 0.013482 252.362)`,toolbarControl:`oklch(0.934442 0.003181 269.1)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.951058 0.002962 258.339)`,surface:`oklch(0.974199 0.002856 241.597)`,surfaceRaised:`oklch(0.974199 0.002856 241.597)`,surfaceOverlay:`oklch(0.934442 0.003181 269.1)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.528741 0.01828 313.823)`,border:`oklch(0.867646 0.013482 252.362)`,input:`oklch(0.832939 0.017389 252.598)`,focus:`oklch(0.536684 0.120219 247.01)`,accent:`oklch(0.536684 0.120219 247.01)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.948004 0.009649 241.695)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.948004 0.009649 241.695)`,mutedForeground:`oklch(0.528741 0.01828 313.823)`,placeholder:`oklch(0.528741 0.01828 313.823)`,secondaryLabel:`oklch(0.528741 0.01828 313.823)`,iconMuted:`oklch(0.528741 0.01828 313.823)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.938747 0.016377 7.186)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.546927 0.155556 45.359)`,warningSurface:`oklch(0.954846 0.016009 81.731)`,update:`oklch(0.536684 0.120219 247.01)`,updateForeground:`oklch(0.536684 0.120219 247.01)`,updateSurface:`oklch(0.904165 0.021144 241.874)`,accentSurface:`oklch(0.951058 0.002962 258.339)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.951058 0.002962 258.339)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.536684 0.120219 247.01)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.45151 0.074407 201.516)`,codeBackground:`oklch(0.974199 0.002856 241.597)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.974199 0.002856 241.597)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.528741 0.01828 313.823)`,sidebarControlSurface:`oklch(0.948004 0.009649 241.695)`,sidebarRowHover:`oklch(0.951058 0.002962 258.339)`,sidebarRowActive:`oklch(0.951058 0.002962 258.339)`,sidebarRowSelected:`oklch(0.951058 0.002962 258.339)`,sidebarBorder:`oklch(0.867646 0.013482 252.362)`,terminalBackground:`oklch(0.974199 0.002856 241.597)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.536684 0.120219 247.01)`,terminalSelection:`oklch(0.895373 0.023469 241.913)`,terminalScrollbar:`oklch(0.826271 0.006191 305.456)`,terminalScrollbarHover:`oklch(0.756866 0.008685 313.721)`},variants:{dark:{canvas:`oklch(0.242641 0.024125 250.573)`,chrome:`oklch(0.242641 0.024125 250.573)`,toolbar:`oklch(0.242641 0.024125 250.573)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.438653 0.039496 245.44)`,toolbarControl:`oklch(0.398517 0.018232 255.72)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.348439 0.019942 253.696)`,surface:`oklch(0.242641 0.024125 250.573)`,surfaceRaised:`oklch(0.242641 0.024125 250.573)`,surfaceOverlay:`oklch(0.398517 0.018232 255.72)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.691936 0.016294 261.588)`,border:`oklch(0.438653 0.039496 245.44)`,input:`oklch(0.500905 0.043574 244.781)`,focus:`oklch(0.758933 0.105833 241.548)`,accent:`oklch(0.758933 0.105833 241.548)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.319287 0.036766 246.065)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.319287 0.036766 246.065)`,mutedForeground:`oklch(0.691936 0.016294 261.588)`,placeholder:`oklch(0.691936 0.016294 261.588)`,secondaryLabel:`oklch(0.691936 0.016294 261.588)`,iconMuted:`oklch(0.691936 0.016294 261.588)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.298933 0.036443 350.094)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.329449 0.028712 84.495)`,update:`oklch(0.758933 0.105833 241.548)`,updateForeground:`oklch(0.758933 0.105833 241.548)`,updateSurface:`oklch(0.424017 0.053575 243.695)`,accentSurface:`oklch(0.348439 0.019942 253.696)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.348439 0.019942 253.696)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.758933 0.105833 241.548)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815308 0.096174 199.862)`,codeBackground:`oklch(0.242641 0.024125 250.573)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.242641 0.024125 250.573)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.691936 0.016294 261.588)`,sidebarControlSurface:`oklch(0.319287 0.036766 246.065)`,sidebarRowHover:`oklch(0.348439 0.019942 253.696)`,sidebarRowActive:`oklch(0.348439 0.019942 253.696)`,sidebarRowSelected:`oklch(0.348439 0.019942 253.696)`,sidebarBorder:`oklch(0.438653 0.039496 245.44)`,terminalBackground:`oklch(0.242641 0.024125 250.573)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.758933 0.105833 241.548)`,terminalSelection:`oklch(0.439946 0.0561 243.479)`,terminalScrollbar:`oklch(0.58613 0.012959 267.22)`,terminalScrollbarHover:`oklch(0.681569 0.010909 276.465)`}},sidebarArtwork:!0},rn={id:`ember`,label:`Ember`,appearance:`light`,colors:{canvas:`oklch(0.976527 0.002685 60.725)`,chrome:`oklch(0.976527 0.002685 60.725)`,toolbar:`oklch(0.976527 0.002685 60.725)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.870631 0.013204 39.431)`,toolbarControl:`oklch(0.936659 0.002879 29.96)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953321 0.002701 42.266)`,surface:`oklch(0.976527 0.002685 60.725)`,surfaceRaised:`oklch(0.976527 0.002685 60.725)`,surfaceOverlay:`oklch(0.936659 0.002879 29.96)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.530413 0.018453 341.181)`,border:`oklch(0.870631 0.013204 39.431)`,input:`oklch(0.836213 0.017153 38.661)`,focus:`oklch(0.552831 0.129438 44.656)`,accent:`oklch(0.552831 0.129438 44.656)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950842 0.009273 51.528)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950842 0.009273 51.528)`,mutedForeground:`oklch(0.530413 0.018453 341.181)`,placeholder:`oklch(0.530413 0.018453 341.181)`,secondaryLabel:`oklch(0.530413 0.018453 341.181)`,iconMuted:`oklch(0.530413 0.018453 341.181)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941094 0.019938 19.375)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957148 0.020843 76.702)`,update:`oklch(0.552831 0.129438 44.656)`,updateForeground:`oklch(0.552831 0.129438 44.656)`,updateSurface:`oklch(0.907902 0.020621 49.36)`,accentSurface:`oklch(0.953321 0.002701 42.266)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953321 0.002701 42.266)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.552831 0.129438 44.656)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471223 0.145843 24.688)`,codeBackground:`oklch(0.976527 0.002685 60.725)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976527 0.002685 60.725)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.530413 0.018453 341.181)`,sidebarControlSurface:`oklch(0.950842 0.009273 51.528)`,sidebarRowHover:`oklch(0.953321 0.002701 42.266)`,sidebarRowActive:`oklch(0.953321 0.002701 42.266)`,sidebarRowSelected:`oklch(0.953321 0.002701 42.266)`,sidebarBorder:`oklch(0.870631 0.013204 39.431)`,terminalBackground:`oklch(0.976527 0.002685 60.725)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.552831 0.129438 44.656)`,terminalSelection:`oklch(0.899296 0.022939 49.163)`,terminalScrollbar:`oklch(0.828185 0.005884 349.533)`,terminalScrollbarHover:`oklch(0.758584 0.008423 341.16)`},variants:{dark:{canvas:`oklch(0.245899 0.019144 42.044)`,chrome:`oklch(0.245899 0.019144 42.044)`,toolbar:`oklch(0.245899 0.019144 42.044)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.44099 0.040202 48.807)`,toolbarControl:`oklch(0.401111 0.014308 34.896)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.351262 0.01565 37.592)`,surface:`oklch(0.245899 0.019144 42.044)`,surfaceRaised:`oklch(0.245899 0.019144 42.044)`,surfaceOverlay:`oklch(0.401111 0.014308 34.896)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.692479 0.015227 30.963)`,border:`oklch(0.44099 0.040202 48.807)`,input:`oklch(0.503003 0.045721 49.44)`,focus:`oklch(0.762174 0.124117 52.082)`,accent:`oklch(0.762174 0.124117 52.082)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.322144 0.03574 48.309)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.322144 0.03574 48.309)`,mutedForeground:`oklch(0.692479 0.015227 30.963)`,placeholder:`oklch(0.692479 0.015227 30.963)`,secondaryLabel:`oklch(0.692479 0.015227 30.963)`,iconMuted:`oklch(0.692479 0.015227 30.963)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.310955 0.059624 24.334)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.339137 0.055638 66.911)`,update:`oklch(0.762174 0.124117 52.082)`,updateForeground:`oklch(0.762174 0.124117 52.082)`,updateSurface:`oklch(0.426749 0.057547 50.618)`,accentSurface:`oklch(0.351262 0.01565 37.592)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.351262 0.01565 37.592)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.762174 0.124117 52.082)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.775116 0.117953 29.014)`,codeBackground:`oklch(0.245899 0.019144 42.044)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.245899 0.019144 42.044)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.692479 0.015227 30.963)`,sidebarControlSurface:`oklch(0.322144 0.03574 48.309)`,sidebarRowHover:`oklch(0.351262 0.01565 37.592)`,sidebarRowActive:`oklch(0.351262 0.01565 37.592)`,sidebarRowSelected:`oklch(0.351262 0.01565 37.592)`,sidebarBorder:`oklch(0.44099 0.040202 48.807)`,terminalBackground:`oklch(0.245899 0.019144 42.044)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.762174 0.124117 52.082)`,terminalSelection:`oklch(0.442681 0.0608 50.795)`,terminalScrollbar:`oklch(0.587861 0.010463 20.444)`,terminalScrollbarHover:`oklch(0.682876 0.009156 9.796)`}},sidebarArtwork:!0},an={id:`iris`,label:`Iris`,appearance:`light`,colors:{canvas:`oklch(0.976531 0.003855 303.226)`,chrome:`oklch(0.976531 0.003855 303.226)`,toolbar:`oklch(0.976531 0.003855 303.226)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.869608 0.018226 303.859)`,toolbarControl:`oklch(0.936665 0.005041 310.132)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953326 0.004536 307.676)`,surface:`oklch(0.976531 0.003855 303.226)`,surfaceRaised:`oklch(0.976531 0.003855 303.226)`,surfaceOverlay:`oklch(0.936665 0.005041 310.132)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.529955 0.022319 321.556)`,border:`oklch(0.869608 0.018226 303.859)`,input:`oklch(0.834773 0.023405 303.676)`,focus:`oklch(0.525348 0.15373 294.176)`,accent:`oklch(0.525348 0.15373 294.176)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950194 0.011956 300.733)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950194 0.011956 300.733)`,mutedForeground:`oklch(0.529955 0.022319 321.556)`,placeholder:`oklch(0.529955 0.022319 321.556)`,secondaryLabel:`oklch(0.529955 0.022319 321.556)`,iconMuted:`oklch(0.529955 0.022319 321.556)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941043 0.019582 4.235)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957054 0.016197 69.932)`,update:`oklch(0.525348 0.15373 294.176)`,updateForeground:`oklch(0.525348 0.15373 294.176)`,updateSurface:`oklch(0.90602 0.025754 299.867)`,accentSurface:`oklch(0.953326 0.004536 307.676)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953326 0.004536 307.676)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.525348 0.15373 294.176)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471003 0.16748 340.687)`,codeBackground:`oklch(0.976531 0.003855 303.226)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976531 0.003855 303.226)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.529955 0.022319 321.556)`,sidebarControlSurface:`oklch(0.950194 0.011956 300.733)`,sidebarRowHover:`oklch(0.953326 0.004536 307.676)`,sidebarRowActive:`oklch(0.953326 0.004536 307.676)`,sidebarRowSelected:`oklch(0.953326 0.004536 307.676)`,sidebarBorder:`oklch(0.869608 0.018226 303.859)`,terminalBackground:`oklch(0.976531 0.003855 303.226)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.525348 0.15373 294.176)`,terminalSelection:`oklch(0.897143 0.028558 299.758)`,terminalScrollbar:`oklch(0.828195 0.008526 318.858)`,terminalScrollbarHover:`oklch(0.758596 0.010892 321.538)`},variants:{dark:{canvas:`oklch(0.225975 0.031062 293.741)`,chrome:`oklch(0.225975 0.031062 293.741)`,toolbar:`oklch(0.225975 0.031062 293.741)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.40874 0.058536 295.893)`,toolbarControl:`oklch(0.386739 0.024023 297.509)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.335291 0.026008 296.394)`,surface:`oklch(0.225975 0.031062 293.741)`,surfaceRaised:`oklch(0.225975 0.031062 293.741)`,surfaceOverlay:`oklch(0.386739 0.024023 297.509)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.663321 0.025932 301.862)`,border:`oklch(0.40874 0.058536 295.893)`,input:`oklch(0.46756 0.065775 296.265)`,focus:`oklch(0.671712 0.169136 293.929)`,accent:`oklch(0.671712 0.169136 293.929)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.291515 0.05276 294.209)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.291515 0.05276 294.209)`,mutedForeground:`oklch(0.663321 0.025932 301.862)`,placeholder:`oklch(0.663321 0.025932 301.862)`,secondaryLabel:`oklch(0.663321 0.025932 301.862)`,iconMuted:`oklch(0.663321 0.025932 301.862)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.291658 0.054707 352.238)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.318952 0.033845 51.646)`,update:`oklch(0.671712 0.169136 293.929)`,updateForeground:`oklch(0.671712 0.169136 293.929)`,updateSurface:`oklch(0.381668 0.081286 294.195)`,accentSurface:`oklch(0.335291 0.026008 296.394)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.335291 0.026008 296.394)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.671712 0.169136 293.929)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.813537 0.114101 337.23)`,codeBackground:`oklch(0.225975 0.031062 293.741)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.225975 0.031062 293.741)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.663321 0.025932 301.862)`,sidebarControlSurface:`oklch(0.291515 0.05276 294.209)`,sidebarRowHover:`oklch(0.335291 0.026008 296.394)`,sidebarRowActive:`oklch(0.335291 0.026008 296.394)`,sidebarRowSelected:`oklch(0.335291 0.026008 296.394)`,sidebarBorder:`oklch(0.40874 0.058536 295.893)`,terminalBackground:`oklch(0.225975 0.031062 293.741)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.671712 0.169136 293.929)`,terminalSelection:`oklch(0.395417 0.085554 294.182)`,terminalScrollbar:`oklch(0.578663 0.017888 302.229)`,terminalScrollbarHover:`oklch(0.676012 0.015271 305.433)`}},sidebarArtwork:!0},on=[en,tn,nn,rn,an],sn=`t3-chat`,cn=`grove`,ln=`ocean`,un=`ember`,dn=`iris`,R=`t3code:themes:v1`,fn=`t3code:theme-follow-system`,pn=`t3code:theme-appearance-mode`,mn=`t3code:theme-halves:v1`,hn=`t3-chat-dark`,gn=r,_n=new Set(Zt),vn=[],yn=new Set,z=null,bn=new Set,xn=null;function Sn(){return xn}function Cn(e){return bn.add(e),()=>bn.delete(e)}function wn(e){if(xn!==e){xn=e;for(let e of bn)e()}}function B(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Tn(e){return e===`light`||e===`dark`}function En(e){return typeof e==`string`&&H(e)!==null}function Dn(e){return typeof e==`string`&&/^[a-z0-9](?:[a-z0-9-]{0,47})$/.test(e)}function On(e){return typeof e==`string`&&e.trim().length>0&&e.trim().length<=48}function kn(e){return B(e)&&typeof e.id==`string`&&/^[a-z0-9][a-z0-9.:-]{0,127}$/i.test(e.id)&&On(e.label)?{id:e.id,label:e.label.trim()}:void 0}function An(e){let t={};for(let[n,r]of Object.entries(e)){let e=H(r);_n.has(n)&&e&&(t[n]=e)}return t}function jn(e,t){return B(e)?{...Z(t),...An(e)}:null}function Mn(e,t){if(e===void 0)return;if(!B(e))return null;let n={};for(let[r,i]of Object.entries(e)){if(!Tn(r))return null;if(r===t)continue;let e=jn(i,r);if(!e)return null;n[r]=e}return Object.keys(n).length>0?n:void 0}function Nn(e){if(!B(e)||!Dn(e.id)||L.has(e.id)||!On(e.label)||!Tn(e.appearance))return null;let t=jn(e.colors,e.appearance);if(!t)return null;let n=Mn(e.variants,e.appearance);if(e.variants!==void 0&&n===null)return null;let r=kn(e.collection);return{id:e.id,label:e.label.trim(),appearance:e.appearance,colors:t,...n?{variants:n}:{},...r?{collection:r}:{},...e.managed===!0?{managed:!0}:{}}}function Pn(e){let t=[];for(let n of e){let e=Nn(n);e&&!t.some(t=>t.id===e.id)&&t.push(e)}return t}function Fn(){if(typeof window>`u`)return{status:`ready`,storedThemes:[],themes:[]};let e;try{e=window.localStorage.getItem(R)}catch(e){return{status:`unavailable`,reason:`storage-unavailable`,cause:e}}if(!e)return{status:`ready`,storedThemes:[],themes:[]};let t;try{t=JSON.parse(e)}catch{return{status:`unavailable`,reason:`malformed`}}return Array.isArray(t)?{status:`ready`,storedThemes:t,themes:Pn(t)}:{status:`unavailable`,reason:`malformed`}}function In(){return z===null&&(z=Fn()),z}function Ln(){for(let e of yn)e()}function Rn(){z=null,Ln()}var zn=[];function Bn(){let e=In();return e.status===`ready`?e.themes:zn}function Vn(){return vn}function Hn(e){return!a(vn,e)&&(vn=e,Ln(),!0)}function Un(e){return L.has(e)}function Wn(e){return Fr().themes.filter(t=>t.collection?.id===e)}function Gn(e){if(yn.add(e),typeof window>`u`)return()=>yn.delete(e);let t=e=>{(e.key===`t3code:themes:v1`||e.key===null)&&Rn()};return window.addEventListener(`storage`,t),()=>{yn.delete(e),window.removeEventListener(`storage`,t)}}var Kn={[hn]:sn,"t3-grove":cn,"t3-ocean":ln,"t3-ember":un,"t3-iris":dn};function qn(e){return Kn[e]??e}function Jn(e){return e===hn?e:qn(e)}function Yn(e){return qn(e)}function Xn(e){return e===hn?`dark`:null}function Zn(e){return e===`dark`?$n??=lr($t):Qn??=lr(Qt)}var Qn,$n,er={r:255,g:250,b:255},tr={r:36,g:21,b:35},nr={r:255,g:255,b:255},rr={r:0,g:0,b:0},ir=ie(`oklch`);function ar(e){if(typeof e!=`string`)return null;let t=e.trim(),n=ve(t);if(!n)return null;let r=ir(n),i=r.l??0,a=r.c??0,o=r.h??0,s=/\/\s*none\s*\)$/i.test(t)?0:r.alpha??1;return[i,a,o,s].every(Number.isFinite)?{color:{L:Math.min(1,Math.max(0,i)),C:Math.max(0,a),h:o},alpha:Math.min(1,Math.max(0,s))}:null}function or(e,t){return(Math.abs(e)<10**-t/2?0:e).toFixed(t).replace(/(?:\.0+|(?:(\.[0-9]*?)0+))$/,`$1`)}function V(e,t=1){let n=e.C<5e-7?0:(e.h%360+360)%360,r=`${or(e.L,6)} ${or(e.C,6)} ${or(n,3)}`;return t<1?`oklch(${r} / ${or(t,4)})`:`oklch(${r})`}function H(e){let t=ar(e);return t?V(t.color,t.alpha):null}function sr(e){let t=ar(e),n=t?{rgb:J(t.color),alpha:t.alpha}:null;if(!n)return null;let r=cr(n.rgb);return n.alpha>=1?r:`${r}${Math.round(n.alpha*255).toString(16).padStart(2,`0`)}`}function U(e,t){let n=ar(e);return n?J(n.color):t}function cr(e){return`#${[e.r,e.g,e.b].map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`}function W(e){return V(q(e))}function lr(e){return Object.fromEntries(Zt.map(t=>{let n=H(e[t]);if(!n)throw Error(`The color for "${t}" must be a literal CSS color such as oklch(0.62 0.2 280).`);return[t,n]}))}function ur(e){return{...e,colors:lr(e.colors),...e.variants?{variants:Object.fromEntries(Object.entries(e.variants).map(([e,t])=>[e,lr(t)]))}:{}}}function G(e,t,n){return{r:e.r+(t.r-e.r)*n,g:e.g+(t.g-e.g)*n,b:e.b+(t.b-e.b)*n}}function K(e){let t=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function dr(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function fr(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(1,Math.max(0,t))*255)}function q(e){let t=dr(e.r),n=dr(e.g),r=dr(e.b),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return{L:s,C:Math.hypot(c,l),h:Math.atan2(l,c)*180/Math.PI}}function pr({L:e,C:t,h:n}){let r=n*Math.PI/180,i=t*Math.cos(r),a=t*Math.sin(r),o=(e+.3963377774*i+.2158037573*a)**3,s=(e-.1055613458*i-.0638541728*a)**3,c=(e-.0894841775*i-1.291485548*a)**3;return{r:4.0767416621*o-3.3077115913*s+.2309699292*c,g:-1.2684380046*o+2.6097574011*s-.3413193965*c,b:-.0041960863*o-.7034186147*s+1.707614701*c}}function mr(e){let t=t=>{let n=pr({...e,C:t});return[n.r,n.g,n.b].every(e=>e>=-1e-4&&e<=1.0001)};if(t(e.C))return e;let n=0,r=e.C,i=1e-6,a=Math.max(1,Math.ceil(Math.log2(Math.max(e.C,i))-Math.log2(i)));for(let e=0;e<a;e+=1){let e=(n+r)/2;t(e)?n=e:r=e}return{...e,C:n}}function J(e){let t=pr(mr(e));return{r:fr(t.r),g:fr(t.g),b:fr(t.b)}}function hr(e){return V(mr(e))}function gr(e,t,n,r){let i=r===`lighter`?e.L:0,a=r===`lighter`?1:e.L,o={...e};if(Y(J(o),t)>=n)return o;for(let s=0;s<18;s+=1){let s=(i+a)/2;o={...e,L:s},Y(J(o),t)>=n?r===`lighter`?a=s:i=s:r===`lighter`?i=s:a=s}return{...e,L:r===`lighter`?a:i}}var _r={light:{error:`#fb2c36`,errorForeground:`#c10007`,warning:`#fe9a00`,warningForeground:`#bb4d00`},dark:{error:`#fb414a`,errorForeground:`#ff6467`,warning:`#fe9a00`,warningForeground:`#ffb900`}};function vr(e){let t=K(e)<.179?`dark`:`light`,n=_r[t],r=t===`dark`?.16:.08,i=t=>G(e,U(t,e),r),a=(n,r)=>hr(gr(q(U(n,e)),r,4.6,t===`dark`?`lighter`:`darker`)),o=i(n.error),s=i(n.warning);return{error:H(n.error),errorForeground:a(n.errorForeground,o),errorSurface:W(o),warning:H(n.warning),warningForeground:a(n.warningForeground,s),warningSurface:W(s)}}function yr(e,t,n){let r=Z(e),i=U(t,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),a=U(n,{r:168,g:67,b:112}),o=q(i),s=q(a),c=K(i)<.179,l=s.C<.02?o.h:s.h,u=Math.min(.045,Math.max(.008,s.C*.22)),d=c?1:-1,f=(e,t=u)=>({L:Math.min(.98,Math.max(.05,o.L+d*e)),C:t,h:l}),p=e=>hr(e),m={L:c?.95:.2,C:Math.min(.035,s.C*.25),h:l},h=J(gr(m,i,7,c?`lighter`:`darker`)),g=Cr(i,h),ee={L:Math.min(.85,Math.max(.35,s.L+(c?.06:-.02))),C:Math.max(s.C*.9,.06),h:(l+50)%360},te=J(ee),ne=X(te),re=X(a),ie=f(.045,u*1.4),_=J(ie),ae=f(.015),v=f(.05),oe=J(v),se=f(.075),y=f(c?.16:.12,Math.min(.07,s.C*.35)),ce=f(c?.21:.16,Math.min(.08,s.C*.4)),le=f(c?.1:.06,Math.min(.09,s.C*.5)),ue=J(le),de=f(c?.06:.04,Math.min(.06,s.C*.35)),b=J(de),x=f(c?.13:.08,Math.min(.11,s.C*.55)),S=J(x),C=f(c?.16:.1,Math.min(.13,s.C*.6)),fe=J(C),w=f(.035,u*.8),T=f(c?.14:.09,Math.min(.12,s.C*.55)),E=e=>hr(gr(m,e,4.6,c?`lighter`:`darker`)),pe=W(br(b,h,1,4.6)),me=W(br(oe,h,1,4.6)),he=J(f(.22,Math.min(.12,s.C))),ge=J(f(.4,Math.min(.18,s.C))),_e={...ee,L:ee.L+(c?.06:-.06)};return{...r,...vr(i),canvas:W(i),chrome:W(i),toolbar:W(i),toolbarForeground:W(h),toolbarBorder:p(f(c?.14:.1,Math.min(.08,s.C*.4))),toolbarControl:p(f(c?.09:.05,u*1.3)),toolbarControlForeground:W(h),toolbarControlHover:p(f(c?.14:.09,u*1.6)),surface:p(ae),surfaceRaised:p(v),surfaceOverlay:p(se),text:W(h),textMuted:W(g),border:p(y),input:p(ce),focus:W(a),accent:W(a),accentForeground:W(re),secondary:p(le),secondaryForeground:E(ue),muted:p(de),mutedForeground:pe,placeholder:me,secondaryLabel:W(g),iconMuted:W(g),update:W(a),updateForeground:E(J(T)),updateSurface:p(T),accentSurface:p(x),accentSurfaceForeground:E(S),messageSurface:p(C),messageForeground:E(fe),messageAction:W(te),messageActionForeground:W(ne),messageActionHover:p(_e),codeBackground:p(w),codeForeground:W(h),searchMatchBackground:W(he),searchMatchForeground:W(X(he)),searchMatchActiveBackground:W(ge),searchMatchActiveForeground:W(X(ge)),sidebar:p(ie),sidebarForeground:E(_),sidebarMutedForeground:W(Cr(_,h)),sidebarControlSurface:p(f(c?.1:.07,u*1.5)),sidebarRowHover:p(f(c?.08:.06,Math.min(.08,s.C*.45))),sidebarRowActive:p(f(c?.12:.09,Math.min(.1,s.C*.55))),sidebarRowSelected:p(f(c?.14:.1,Math.min(.11,s.C*.6))),sidebarBorder:p(f(c?.17:.12,Math.min(.08,s.C*.4))),terminalBackground:W(i),terminalForeground:W(h),terminalCursor:W(a),terminalSelection:p(f(c?.18:.12,Math.min(.12,s.C*.55))),terminalScrollbar:p(f(c?.22:.16,u)),terminalScrollbarHover:p(f(c?.3:.22,u))}}function Y(e,t){let n=K(e),r=K(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function X(e){let t=Y(e,er),n=Y(e,tr);return Math.max(t,n)>=4.5?t>=n?er:tr:Y(e,nr)>=Y(e,rr)?nr:rr}function br(e,t,n,r){let i=G(t,e,n);if(Y(i,e)>=r)return i;let a=t,o=0,s=n;for(let n=0;n<12;n+=1){let n=(o+s)/2,i=G(t,e,n);Y(i,e)>=r?(a=i,o=n):s=n}return a}var xr=4.705,Sr=5.082;function Cr(e,t){return br(e,t,1,K(e)<.179?Sr:xr)}function Z(e){return e===`dark`?en.variants.dark:en.colors}function wr(e,t,n,r){let i=ar(r);if(!i)return{...t,[n]:r};let a=V(i.color,i.alpha),o=U(t.canvas,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),s=J(i.color),c=e=>G(e,s,i.alpha),l=c(o),u=U(t.accent,{r:168,g:67,b:112}),d=K(o)<.179,f=K(l)<.179,p=e=>W(e),m=e=>p(X(e)),h=e=>hr(gr(i.color,e,4.6,K(e)<.179?`lighter`:`darker`)),g=()=>{let e=G(o,l,d?.16:.08);return{foreground:h(e),surface:p(e)}};switch(n){case`canvas`:return{...t,canvas:a,chrome:a,toolbar:a};case`surface`:case`surfaceRaised`:case`surfaceOverlay`:case`input`:case`sidebarControlSurface`:return{...t,[n]:a};case`text`:return{...t,text:a,toolbarForeground:a,toolbarControlForeground:a};case`mutedForeground`:return{...t,textMuted:a,mutedForeground:a,placeholder:a,secondaryLabel:a,iconMuted:a,sidebarMutedForeground:a};case`border`:return{...t,border:a,toolbarBorder:a,sidebarBorder:a};case`secondary`:return{...t,secondary:a,secondaryForeground:m(l),muted:a,toolbarControl:a};case`accentSurface`:return{...t,accentSurface:a,accentSurfaceForeground:m(l),toolbarControlHover:a};case`accent`:{let e=G(o,l,d?.32:.16);return{...t,accent:a,accentForeground:m(l),focus:a,update:a,updateForeground:h(e),updateSurface:p(e),terminalCursor:a}}case`messageAction`:{let e=X(l),n=G(s,e===er||e===nr?rr:nr,.12);return{...t,messageAction:a,messageActionForeground:p(e),messageActionHover:V(q(n),i.alpha)}}case`messageSurface`:return{...t,messageSurface:a,messageForeground:m(l)};case`searchMatchBackground`:return{...t,searchMatchBackground:p(l),searchMatchForeground:m(l)};case`searchMatchActiveBackground`:return{...t,searchMatchActiveBackground:p(l),searchMatchActiveForeground:m(l)};case`codeBackground`:return{...t,codeBackground:a,codeForeground:m(l)};case`sidebar`:return{...t,sidebar:a,sidebarForeground:m(l)};case`sidebarRowSelected`:{let e=U(t.sidebar,o),n=c(e);return{...t,sidebarRowHover:p(G(e,n,.5)),sidebarRowActive:p(G(e,n,.8)),sidebarRowSelected:a}}case`terminalBackground`:{let e=X(l);return{...t,terminalBackground:a,terminalForeground:p(e),terminalSelection:p(G(l,u,f?.35:.18)),terminalScrollbar:p(G(l,e,f?.42:.22)),terminalScrollbarHover:p(G(l,e,f?.55:.32))}}case`error`:{let e=g();return{...t,error:a,errorForeground:e.foreground,errorSurface:e.surface}}case`warning`:{let e=g();return{...t,warning:a,warningForeground:e.foreground,warningSurface:e.surface}}default:return{...t,[n]:a}}}var Tr=on;function Q(e){let t=Yn(e);return Tr.find(e=>e.id===t)??Bn().find(e=>e.id===t)??vn.find(e=>e.id===t)??null}function Er(e){let t=Yn(e);return Tr.find(e=>e.id===t)?.sidebarArtwork===!0}function Dr(e){let t=Or(e);return t.length===1?t[0]:null}function $(e,t){return t===e.appearance?e.colors:e.variants?.[t]??null}function Or(e){return[`light`,`dark`].filter(t=>$(e,t)!==null)}function kr(e){return e===`system`?null:e===`light`||e===`dark`?e:Xn(e)||(Q(e)?.appearance??null)}function Ar(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,48)||`custom-theme`}var jr=class extends i()(`ThemeLibraryStorageError`,{storageKey:r,operation:n([`read`,`write`]),reason:n([`malformed`,`storage-unavailable`]),cause:e(t())}){get message(){let e=this.operation===`read`?`from`:`to`;return`Failed to ${this.operation} the theme library ${e} ${this.storageKey}.`}};function Mr(e,t){if(typeof window<`u`){try{window.localStorage.setItem(R,JSON.stringify(e)),z={status:`ready`,storedThemes:e,themes:t}}catch(e){throw new jr({storageKey:R,operation:`write`,reason:`storage-unavailable`,cause:e})}Ln()}}function Nr(e){if(e.status===`unavailable`)throw new jr({storageKey:R,operation:`read`,reason:e.reason,...`cause`in e?{cause:e.cause}:{}});return e}function Pr(){return Nr(In())}function Fr(){return Nr(Fn())}function Ir(e,t){return B(e)&&e.id===t}function Lr(e,t){return B(e)&&B(e.collection)&&e.collection.id===t}function Rr(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Pr();if(Tr.some(t=>t.id===e.id)||t.storedThemes.some(t=>Ir(t,e.id)))throw Error(`A theme named "${e.label}" is already installed.`);let n=ur(e),r=[...t.themes,n];return Mr([...t.storedThemes,n],r),n}function zr(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Pr(),n=t.themes,r=n.findIndex(t=>t.id===e.id);if(r===-1)throw Error(`The theme "${e.label}" is not installed.`);let i=ur(e),a=[...n];a[r]=i;let o=[],s=!1;for(let n of t.storedThemes)Ir(n,e.id)?s||=(o.push(i),!0):o.push(n);return Mr(o,a),i}function Br(e,t,n){if(t.length===0)throw Error(`A theme collection cannot be empty.`);let r=t.map(e=>Nn(e));if(r.some(t=>t===null||t.collection?.id!==e)||new Set(r.map(e=>e?.id)).size!==r.length)throw Error(`That theme collection is invalid.`);let i=r,a=Fr(),o=a.themes.filter(t=>t.collection?.id===e);if(n?.expectedCollection&&JSON.stringify(o)!==JSON.stringify(n.expectedCollection))throw Error(`Your installed themes changed while this package was downloading. Try again.`);let s=new Set(Tr.map(e=>e.id));for(let t of a.storedThemes)!Lr(t,e)&&B(t)&&typeof t.id==`string`&&s.add(t.id);let c=i.find(e=>L.has(e.id)||s.has(e.id));if(c)throw Error(`A theme named "${c.label}" is already installed.`);let l=[],u=!1;for(let t of a.storedThemes)Lr(t,e)?u||=(l.push(...i),!0):l.push(t);return u||l.push(...i),Mr(l,Pn(l)),i}function Vr(e){Hr([e])}function Hr(e){let t=new Set(e);if(t.size===0)return;let n=Pr(),r=n.themes.filter(e=>!t.has(e.id));r.length!==n.themes.length&&Mr(n.storedThemes.filter(e=>!B(e)||typeof e.id!=`string`||!t.has(e.id)),r)}function Ur(e){if(!B(e))throw Error(`Theme colors must be objects.`);let t={};for(let[n,r]of Object.entries(e)){if(!_n.has(n))throw Error(`"${n}" is not a supported theme color role.`);let e=H(r);if(!e)throw Error(`The color for "${n}" must be a literal CSS color such as oklch(0.62 0.2 280).`);t[n]=e}if(Object.keys(t).length===0)throw Error(`Add at least one color role to the theme file.`);return t}function Wr(e){if(!B(e))throw Error(`Theme files must contain a JSON object.`);if(e.version!==1)throw Error(`This theme file uses an unsupported version. Expected 1.`);let t=e.name,n=e.appearance,r=e.colors;if(!On(t))throw Error(`Theme files need a name (48 characters or fewer).`);if(!Tn(n))throw Error(`Theme files need an appearance of "light" or "dark".`);if(!B(r))throw Error(`Theme files need a colors object.`);let i=e.id===void 0?Ar(t):e.id;if(!Dn(i))throw Error(`Theme ids may only contain lowercase letters, numbers, and hyphens.`);if(L.has(i))throw Error(`The theme id "${i}" is reserved.`);let a=Ur(r),o=kn(e.collection);if(e.collection!==void 0&&!o)throw Error(`Theme collections need a valid id and label.`);let s=Z(n),c={};if(e.variants!==void 0){if(!B(e.variants))throw Error(`Theme variants must be an object.`);for(let[t,r]of Object.entries(e.variants)){if(!Tn(t))throw Error(`Theme variants may only be named "light" or "dark".`);if(t===n)throw Error(`Theme variants must not repeat the base appearance "${n}".`);c[t]={...Z(t),...Ur(r)}}}return{id:i,label:t.trim(),appearance:n,colors:{...s,...a},...Object.keys(c).length>0?{variants:c}:{},...o?{collection:o}:{},...e.managed===!0?{managed:!0}:{}}}function Gr(e){let t=ur(e),n={version:1,id:t.id,name:t.label,appearance:t.appearance,colors:t.colors,...t.variants?{variants:t.variants}:{},...t.collection?{collection:t.collection}:{},...t.managed?{managed:!0}:{}};return`${JSON.stringify(n,null,2)}\n`}var Kr={canvas:`--app-theme-canvas`,chrome:`--app-theme-chrome`,toolbar:`--app-theme-toolbar`,toolbarForeground:`--app-theme-toolbar-foreground`,toolbarBorder:`--app-theme-toolbar-border`,toolbarControl:`--app-theme-toolbar-control`,toolbarControlForeground:`--app-theme-toolbar-control-foreground`,toolbarControlHover:`--app-theme-toolbar-control-hover`,surface:`--app-theme-surface`,surfaceRaised:`--app-theme-surface-raised`,surfaceOverlay:`--app-theme-surface-overlay`,text:`--app-theme-text`,textMuted:`--app-theme-text-muted`,border:`--app-theme-border`,input:`--app-theme-input`,focus:`--app-theme-focus`,accent:`--app-theme-accent`,accentForeground:`--app-theme-accent-foreground`,secondary:`--app-theme-secondary`,secondaryForeground:`--app-theme-secondary-foreground`,muted:`--app-theme-muted`,mutedForeground:`--app-theme-muted-foreground`,placeholder:`--app-theme-placeholder`,secondaryLabel:`--app-theme-secondary-label`,iconMuted:`--app-theme-icon-muted`,error:`--app-theme-error`,errorForeground:`--app-theme-error-foreground`,errorSurface:`--app-theme-error-surface`,warning:`--app-theme-warning`,warningForeground:`--app-theme-warning-foreground`,warningSurface:`--app-theme-warning-surface`,update:`--app-theme-update`,updateForeground:`--app-theme-update-foreground`,updateSurface:`--app-theme-update-surface`,accentSurface:`--app-theme-accent-surface`,accentSurfaceForeground:`--app-theme-accent-surface-foreground`,messageSurface:`--app-theme-message-surface`,messageForeground:`--app-theme-message-foreground`,messageAction:`--app-theme-message-action`,messageActionForeground:`--app-theme-message-action-foreground`,messageActionHover:`--app-theme-message-action-hover`,codeBackground:`--app-theme-code-background`,codeForeground:`--app-theme-code-foreground`,searchMatchBackground:`--app-theme-search-match-background`,searchMatchForeground:`--app-theme-search-match-foreground`,searchMatchActiveBackground:`--app-theme-search-match-active-background`,searchMatchActiveForeground:`--app-theme-search-match-active-foreground`,sidebar:`--app-theme-sidebar`,sidebarForeground:`--app-theme-sidebar-foreground`,sidebarMutedForeground:`--app-theme-sidebar-muted-foreground`,sidebarControlSurface:`--app-theme-sidebar-control-surface`,sidebarRowHover:`--app-theme-sidebar-row-hover`,sidebarRowActive:`--app-theme-sidebar-row-active`,sidebarRowSelected:`--app-theme-sidebar-row-selected`,sidebarBorder:`--app-theme-sidebar-border`,terminalBackground:`--app-theme-terminal-background`,terminalForeground:`--app-theme-terminal-foreground`,terminalCursor:`--app-theme-terminal-cursor`,terminalSelection:`--app-theme-terminal-selection-background`,terminalScrollbar:`--app-theme-terminal-scrollbar`,terminalScrollbarHover:`--app-theme-terminal-scrollbar-hover`};function qr(e){return Kr[e]}var Jr=`__preview`;function Yr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(n?.style){wn(!1),n.dataset.themeId=Jr,n.classList.toggle(`dark`,t===`dark`);for(let[t,r]of Object.entries(e))En(r)&&n.style.setProperty(Kr[t],r)}}function Xr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(!n?.style)return;wn(null);let r=Q(e);if(r){n.dataset.themeId=r.id;let i=$(r,t??Xn(e)??r.appearance)??r.colors;for(let[e,t]of Object.entries(i))n.style.setProperty(Kr[e],t);return}delete n.dataset.themeId;for(let e of Object.values(Kr))n.style.removeProperty(e)}function Zr(e,t,n,r,i){let a=t?`dark`:`light`,o=r??(n??e===`system`?`system`:null);if(o===`system`){if(i?.[a])return a;let t=Q(e);return t&&$(t,a)===null?t.appearance:a}if(o===`light`||o===`dark`){if(i?.[o])return o;let t=Q(e);return t&&$(t,o)===null?t.appearance:o}return kr(e)??`light`}function Qr(e,t,n,r){let i=n??(t??e===`system`?`system`:null);if(i===`system`){let t=Q(e),n=r?.light!==void 0||t!==null&&$(t,`light`)!==null,i=r?.dark!==void 0||t!==null&&$(t,`dark`)!==null;return t&&(!n||!i)?t.appearance:`system`}if(i===`light`||i===`dark`){if(r?.[i])return i;let t=Q(e);return t&&$(t,i)===null?t.appearance:i}return kr(e)??`system`}function $r(e){return e===`light`||e===`dark`||e===`system`||Q(e)!==null}function ei(e){if(!e)return null;try{let t=JSON.parse(e);if(!B(t))return null;let n={};for(let e of[`light`,`dark`]){let r=t[e];if(typeof r!=`string`)continue;let i=Q(r);i&&$(i,e)!==null&&(n[e]=i.id)}return n.light!==void 0||n.dark!==void 0?n:null}catch{return null}}function ti(e,t,n){return t?.[n]??e}export{Qt as $,Vr as A,Cn as B,Rn as C,An as D,En as E,ti as F,wr as G,sr as H,Gr as I,tn as J,on as K,Hn as L,Br as M,Qr as N,Wr as O,Zr as P,$t as Q,Dr as R,Rr as S,Un as T,Ar as U,Er as V,zr as W,nn as X,an as Y,en as Z,$ as _,Jr as a,kr as b,Xr as c,Bn as d,Zt as et,Z as f,qr as g,Wn as h,mn as i,Hr as j,ei as k,Jn as l,Zn as m,pn as n,gn as o,Vn as p,rn as q,fn as r,Yr as s,R as t,yr as u,Q as v,$r as w,Sn as x,Or as y,Gn as z};
|
|
5
|
-
//# sourceMappingURL=themePalette-BZeqG2Hu.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$m as e,Bl as t,Dh as n,Im as r,Md as i,Nm as a,Pd as o,Ph as s,Pm as c,Wl as l,Ym as u,ev as d,jl as f,mh as p,sh as m}from"./utils-DmS758az.js";import{pn as h}from"./runtime-BVgeNXTV.js";function g(e,t){try{let n=new URL(e).pathname,r=n.indexOf(t);return r>0&&/^\d+(?:\/|$)/u.test(n.slice(r+t.length))}catch{return!1}}function _(e){return e}function v(e,t){if(t.authority===void 0)return!0;try{let n=new URL(e.locator.remoteUrl);if(n.protocol===`http:`||n.protocol===`https:`)return n.host.toLowerCase()===t.authority}catch{}return!0}function y(e,t,n){if(!v(t,n))return!1;let r=i(t,e);return r===n.host.toLowerCase()||r===n.authority}function b(e){return e.displayName??(e.owner&&e.name?`${e.owner}/${e.name}`:null)}function x(e,t,n){let r=b(t);return r!==null&&r.toLowerCase()===n.repository.toLowerCase()&&y(e,t,n)}var S={kind:o.make(`unknown`),label:`source control`,pickerLabel:`source control`,icon:`change-request`,changeRequest:{shortLabel:`change request`,singular:`change request`},repositoryPathHint:`URL`,publicHost:null,publishDescription:`Your signed-in server`,publishHost:e=>e??`your server`,newRepositoryOwner:()=>null,defaultCloneTransport:`ssh`,changeRequestUrl:()=>null,changeRequestActions:new Set,checkoutCommand:()=>null,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:()=>null,isChangeRequestReference:()=>!1,changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>x(o.make(`unknown`),e,t),canReadChangeRequestOnHost:(e,t)=>y(o.make(`unknown`),e,t),isChangeRequestUrl:()=>!1};function ee(e){let t=new Map;for(let n of e){if(t.has(n.kind))throw Error(`Source control host '${n.kind}' is defined more than once.`);t.set(n.kind,n)}return{definitions:e,get:n=>(n==null?e[0]:t.get(n))??S,find:e=>t.get(e),findByPublicHost:t=>{let n=t.toLowerCase();return e.find(e=>e.publicHost===n)},findByChangeRequestUrl:t=>e.find(e=>e.isChangeRequestUrl(t)),hostLabelForChangeRequestUrl:t=>e.find(e=>e.isChangeRequestUrl(t))?.label??`the host`}}function te(e,t){let n=p(e),r=n(t??{});if(r._tag===`Some`)return r.value;let i=n({});if(i._tag===`Some`)return i.value;throw Error(`A source control host settings schema must decode an empty object.`)}var ne=/^az\s+repos\s+pr\s+checkout\s+(.+)$/i,re=/^https:\/\/(?:dev\.azure\.com\/[^/\s]+\/[^/\s]+|[^/\s]+\.visualstudio\.com\/[^/\s]+)\/_git\/[^/\s]+\/pullrequest\/(\d+)(?:[/?#].*)?$/i;function ie(e){let t=e.trim().split(/\s+/).filter(Boolean);for(let[e,n]of t.entries()){if(n===`--id`||n===`-i`)return t[e+1]??null;if(n.startsWith(`--id=`))return n.slice(5)||null}return t.find(e=>!e.startsWith(`-`))??null}var C=_({kind:o.make(`azure-devops`),label:`Azure DevOps`,pickerLabel:`Azure DevOps`,icon:`azure-devops`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`project/repository`,publicHost:null,publishDescription:`dev.azure.com`,publishHost:()=>`dev.azure.com`,newRepositoryOwner:()=>null,defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${h(`${e}/${t}`.toLowerCase())}/pullrequest/${n}`,changeRequestActions:new Set([`merge`,`ready`,`draft`,`close`,`reopen`,`enable-auto-merge`,`disable-auto-merge`]),checkoutCommand:({number:e})=>`az repos pr checkout --id ${e}`,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:e=>{let t=ne.exec(e)?.[1];return t?ie(t):null},isChangeRequestReference:e=>re.test(e),changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>v(e,t)&&h(e.canonicalKey.toLowerCase())===h(`${t.host}/${t.repository}`.toLowerCase()),canReadChangeRequestOnHost:()=>!1,isChangeRequestUrl:e=>g(e,`/pullrequest/`)}),w=/^[A-Za-z0-9._/@+=,-]+$/,T=/^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/,E=o.make(`bitbucket`),D=e=>c.pipe(s(d(``)),m(e)),O=t({accessToken:D({title:`Access token`,description:`Scoped to one repository, project, or workspace. Create it in that item's Bitbucket settings.`,settingsSecret:!0,providerSettingsForm:{control:`password`}}),email:D({title:`Atlassian account email`,description:`With an API token instead of an access token.`,providerSettingsForm:{placeholder:`you@example.com`}}),apiToken:D({title:`API token`,description:`Reaches every repository your Atlassian account can. Give it read and write access to repositories and pull requests, and read:user:bitbucket.`,settingsSecret:!0,providerSettingsForm:{control:`password`}})},{order:[`accessToken`,`email`,`apiToken`]}),k=_({kind:E,label:`Bitbucket`,pickerLabel:`Bitbucket`,icon:`bitbucket`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`workspace/repository`,publicHost:`bitbucket.org`,publishDescription:`bitbucket.org`,publishHost:()=>`bitbucket.org`,newRepositoryOwner:()=>null,defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/pull-requests/${n}`,changeRequestActions:new Set([`merge`,`close`]),checkoutCommand:({number:e,headBranch:t,headRepositoryNameWithOwner:n})=>n&&T.test(n)&&w.test(t)?`git clone --single-branch --branch ${t} https://bitbucket.org/${n}.git t3code-pr-${e}`:null,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:()=>null,isChangeRequestReference:()=>!1,changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>x(E,e,t),canReadChangeRequestOnHost:(e,t)=>y(E,e,t),isChangeRequestUrl:e=>g(e,`/pull-requests/`),settings:O}),A=/^tea\s+(?:pr|pulls)\s+checkout\s+(.+)$/i,ae=/^https?:\/\/[^/\s]+\/(?:[^/\s]+\/)+[^/\s]+\/pulls\/(\d+)(?:[/?#].*)?$/i,j=o.make(`forgejo`);function M(e){if(!e.webUrl)return null;try{let t=new URL(e.webUrl);return t.protocol===`http:`||t.protocol===`https:`?t:null}catch{return null}}var N=_({kind:j,label:`Forgejo`,pickerLabel:`Forgejo / Gitea`,icon:`forgejo`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`owner/repo`,publicHost:null,publishDescription:`Your signed-in server`,publishHost:e=>e??`your server`,newRepositoryOwner:e=>e?{owner:e}:null,defaultCloneTransport:`https`,changeRequestUrl:({host:e,repository:t,number:n,remoteUrl:r,webUrl:i})=>{if(i)return`${i.replace(/\/+$/,``)}/pulls/${n}`;try{let i=new URL(r??``);if((i.protocol===`http:`||i.protocol===`https:`)&&(i.hostname.toLowerCase()===e.toLowerCase()||i.host.toLowerCase()===e.toLowerCase()))return`${i.origin}/${t}/pulls/${n}`}catch{}return`https://${e}/${t}/pulls/${n}`},changeRequestActions:new Set([`merge`,`close`,`reopen`,`update-branch`]),checkoutCommand:({number:e,repositoryUrl:t})=>t?`git fetch '${t.replaceAll(`'`,`'\\''`)}' refs/pull/${e}/head && git checkout -B pulls/${e} FETCH_HEAD`:null,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:e=>e===`request-changes`,checkoutCommandArgument:e=>A.exec(e)?.[1]?.trim()??null,isChangeRequestReference:e=>ae.test(e),changeRequestUrlHost:e=>e.host,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>{if(!v(e,t))return!1;let n=M(e);return n?n.host.toLowerCase()===(t.authority??t.host).toLowerCase()&&n.pathname.replace(/^\/+|\/+$/g,``).toLowerCase()===t.repository.toLowerCase():x(j,e,t)},canReadChangeRequestOnHost:(e,t)=>{let n=M(e);if(!n)return y(j,e,t);let r=n.pathname.replace(/^\/+|\/+$/g,``).split(`/`).slice(0,-2).join(`/`);return n.host.toLowerCase()===(t.authority??t.host).toLowerCase()&&(!r||t.repository.toLowerCase().startsWith(`${r.toLowerCase()}/`))},isChangeRequestUrl:e=>g(e,`/pulls/`)}),P=new Set([`git.cafe`,`staging.git.cafe`]),F=o.make(`gitcafe`),I=t({token:c.pipe(l,s(d(``)),m({title:`Token`,description:`A git.cafe token, used before CAFE_TOKEN and the cafe login, so GitCafe works without the CLI signed in.`,providerSettingsForm:{control:`password`}}))}),L=_({kind:F,label:`GitCafe`,pickerLabel:`GitCafe`,icon:`gitcafe`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`owner/repo`,publicHost:null,publishDescription:`git.cafe`,publishHost:()=>`git.cafe`,newRepositoryOwner:e=>e?{owner:e}:null,defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/pulls/${n}`,changeRequestActions:new Set([`ready`,`draft`,`close`,`reopen`,`merge`,`update-branch`]),checkoutCommand:({number:e})=>`cafe pr checkout ${e}`,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:()=>null,isChangeRequestReference:()=>!1,changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>x(F,e,t),canReadChangeRequestOnHost:(e,t)=>y(F,e,t),isChangeRequestUrl:e=>{try{return P.has(new URL(e).hostname.toLowerCase())&&g(e,`/pulls/`)}catch{return!1}},settings:I}),R=/^gh\s+pr\s+checkout\s+(.+)$/i,z=/^https:\/\/github\.com\/[^/\s]+\/[^/\s]+\/pull\/(\d+)(?:[/?#].*)?$/i,B=o.make(`github`),V=e({account:n(a),enabled:r.pipe(s(d(!0)))}),H=t({hosts:u(f,V).pipe(s(d({})),m({providerSettingsForm:{hidden:!0}})),tokens:u(f,c).pipe(s(d({})),l,m({providerSettingsForm:{hidden:!0}}))}),U=_({kind:B,label:`GitHub`,pickerLabel:`GitHub`,icon:`github`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`owner/repo`,publicHost:`github.com`,publishDescription:`github.com`,publishHost:()=>`github.com`,newRepositoryOwner:e=>({owner:e}),defaultCloneTransport:`https`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/pull/${n}`,changeRequestActions:new Set([`merge`,`ready`,`draft`,`close`,`reopen`,`update-branch`,`enable-auto-merge`,`disable-auto-merge`,`revert`,`approve-workflows`]),checkoutCommand:({number:e})=>`gh pr checkout ${e}`,authorProfileUrl:(e,t)=>e.endsWith(`[bot]`)?null:new URL(`/${encodeURIComponent(e)}`,t).toString(),referenceAutolinkRepositoryUrl:e=>e,reviewSummaryRequired:()=>!1,checkoutCommandArgument:e=>R.exec(e)?.[1]?.trim()??null,isChangeRequestReference:e=>z.test(e),changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:e=>i(e,B),isChangeRequestInRepository:(e,t)=>x(B,e,t),canReadChangeRequestOnHost:(e,t)=>y(B,e,t),isChangeRequestUrl:e=>g(e,`/pull/`),settings:H}),W=/^glab\s+mr\s+checkout\s+(.+)$/i,G=/^https:\/\/[^/\s]*gitlab[^/\s]*\/.+\/-\/merge_requests\/(\d+)(?:[/?#].*)?$/i,K=o.make(`gitlab`),q=ee([U,_({kind:K,label:`GitLab`,pickerLabel:`GitLab`,icon:`gitlab`,changeRequest:{shortLabel:`MR`,singular:`merge request`},repositoryPathHint:`group/project`,publicHost:`gitlab.com`,publishDescription:`gitlab.com`,publishHost:()=>`gitlab.com`,newRepositoryOwner:e=>({owner:e}),defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/-/merge_requests/${n}`,changeRequestActions:new Set([`merge`,`ready`,`draft`,`close`,`reopen`,`update-branch`,`enable-auto-merge`,`disable-auto-merge`]),checkoutCommand:({number:e})=>`glab mr checkout ${e}`,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:e=>W.exec(e)?.[1]?.trim()??null,isChangeRequestReference:e=>G.test(e),changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>x(K,e,t),canReadChangeRequestOnHost:(e,t)=>y(K,e,t),isChangeRequestUrl:e=>g(e,`/-/merge_requests/`)}),L,N,k,C]);function oe(e){return te(H,e.sourceControlHosts.github)}function J(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Y(...e){for(let t of e){let e=J(t??void 0);if(e!==null)return e}return null}function se(e){if(e.latestUserMessageAt){let t=J(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=J(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?Y(e.updatedAt,e.createdAt)??-1/0:t}function X(e,t){return t===`created_at`?Y(e.createdAt,e.updatedAt)??-1/0:se(e)}function ce(e,t){return e.length<2?[...e]:e.map(e=>({thread:e,timestamp:X(e,t)})).sort((e,t)=>t.timestamp-e.timestamp||(e.thread.id<t.thread.id?1:e.thread.id>t.thread.id?-1:0)).map(({thread:e})=>e)}function le(e,t,n){let r=null,i=-1/0;for(let a of e){if(a.projectId!==t||a.archivedAt!==null)continue;let e=X(a,n);(r===null||e>i||e===i&&a.id>r.id)&&(r=a,i=e)}return r}var Z=`abcdefghijklmnopqrstuvwxyz`;function Q(e){if(e.length===0)return!1;for(let t of e)if(!Z.includes(t))return!1;return e.at(-1)!==Z[0]}function $(e,t){if(t!==``&&e>=t)throw Error(`pinOrderMidpoint: bounds out of order`);if(t!==``){let n=0;for(;(e.charAt(n)||Z[0])===t.charAt(n);)n+=1;if(n>0)return t.slice(0,n)+$(e.slice(n),t.slice(n))}let n=e===``?0:Z.indexOf(e.charAt(0)),r=t===``?26:Z.indexOf(t.charAt(0));return r-n>1?Z.charAt(Math.round((n+r)/2)):t.length>1?t.charAt(0):Z.charAt(n)+$(e.slice(1),``)}function ue(e,t){let n=e??``,r=t??``;return n!==``&&!Q(n)||r!==``&&!Q(r)||r!==``&&n>=r?null:$(n,r)}export{J as a,S as c,ce as i,X as n,oe as o,ue as r,q as s,le as t};
|
|
2
|
-
//# sourceMappingURL=threadSort-BvhI6zOp.js.map
|