ryco-cli 0.1.30 → 0.1.31
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/{AcpAdapter-DjP0IHpH.cjs → AcpAdapter-ByUp9-wk.cjs} +71 -51
- package/dist/{AcpAdapter-CKWzfB3Q.mjs → AcpAdapter-CY_ANTKu.mjs} +73 -53
- package/dist/{AcpNativeLogging-Do0LktDb.mjs → AcpNativeLogging-C7PC6imv.mjs} +30 -4
- package/dist/{AcpNativeLogging-5gTPK9Fq.cjs → AcpNativeLogging-OQeAya9d.cjs} +33 -1
- package/dist/{AcpRegistryDriver-BblCFfev.cjs → AcpRegistryDriver-CD9GN7rI.cjs} +3 -3
- package/dist/{AcpRegistryDriver-BzohT-PC.mjs → AcpRegistryDriver-DMZ5VBWJ.mjs} +4 -4
- package/dist/AzureDevOpsSourceControlProvider-5giVYoNi.mjs +2053 -0
- package/dist/AzureDevOpsSourceControlProvider-BKMXEUaN.cjs +2055 -0
- package/dist/{BitbucketSourceControlProvider-D5UVAc9z.mjs → BitbucketSourceControlProvider-BVUBsEUF.mjs} +63 -23
- package/dist/{BitbucketSourceControlProvider-Bvl_q1o2.cjs → BitbucketSourceControlProvider-BWnnrbch.cjs} +62 -22
- package/dist/{BunPTY-Dcl1Lp62.mjs → BunPTY-CMbDQ1Xb.mjs} +1 -1
- package/dist/{ClaudeDriver-DZkz0QPr.cjs → ClaudeDriver-DCrqouOR.cjs} +1373 -191
- package/dist/{ClaudeDriver-BuQ_azDw.mjs → ClaudeDriver-DVOss8cC.mjs} +1375 -193
- package/dist/{CodexDriver-6Ph2cjAW.cjs → CodexDriver-CBQPHJqU.cjs} +258 -28
- package/dist/{CodexDriver-Bi49RIL4.mjs → CodexDriver-DJoTky7Z.mjs} +261 -31
- package/dist/{CodexTextGeneration-C5TIspJA.mjs → CodexTextGeneration-BSgNgfZv.mjs} +6 -6
- package/dist/{CodexTextGeneration-sXPR9eld.cjs → CodexTextGeneration-C9MDQmZm.cjs} +7 -7
- package/dist/{CopilotDriver-Bcdpz6U_.mjs → CopilotDriver-CUkdPXcH.mjs} +78 -20
- package/dist/{CopilotDriver-D6P0xgRX.cjs → CopilotDriver-DbaMDH16.cjs} +76 -18
- package/dist/{CursorDriver-CRnDGwEv.mjs → CursorDriver-B-ZilXJB.mjs} +114 -97
- package/dist/{CursorDriver-DMJ7sGSx.cjs → CursorDriver-DKQqPbKH.cjs} +114 -97
- package/dist/{ForgejoSourceControlProvider-D4jGdaJX.cjs → ForgejoSourceControlProvider-CgpjFECj.cjs} +94 -60
- package/dist/{ForgejoSourceControlProvider-Dl_Fk3RY.mjs → ForgejoSourceControlProvider-DemMYUye.mjs} +95 -61
- package/dist/{GitHubSourceControlProvider-QMe-zymI.cjs → GitHubSourceControlProvider-C4un6hOK.cjs} +218 -119
- package/dist/{GitHubSourceControlProvider-DnwKf0ap.mjs → GitHubSourceControlProvider-CRSDYcjc.mjs} +206 -108
- package/dist/GitLabSourceControlProvider-D8W1ZLPh.cjs +2260 -0
- package/dist/GitLabSourceControlProvider-DpWkJ0M3.mjs +2258 -0
- package/dist/{GrokDriver-jy8JIvYY.cjs → GrokDriver-BQ6G_7ZZ.cjs} +6 -7
- package/dist/{GrokDriver-Bvq1jP3S.mjs → GrokDriver-Buvas9-q.mjs} +5 -6
- package/dist/{Metrics-CnmjpbWk.mjs → Metrics-C3vLS9rz.mjs} +123 -13
- package/dist/{Metrics-C0LSU8s7.cjs → Metrics-DjRPLE98.cjs} +170 -12
- package/dist/{NodePTY-D7tFWuQe.mjs → NodePTY-DgnuBruq.mjs} +1 -1
- package/dist/{OpenCodeDriver-DhyVaBMT.mjs → OpenCodeDriver-BWEZD841.mjs} +183 -49
- package/dist/{OpenCodeDriver-Bu5D19tl.cjs → OpenCodeDriver-qUiX0RLH.cjs} +183 -49
- package/dist/{SideQuestionIsolation-B-aE6aBz.mjs → SideQuestionIsolation-B1T-DsR0.mjs} +1 -1
- package/dist/{SideQuestionIsolation-CtJ4wX83.cjs → SideQuestionIsolation-BPC-Bxsz.cjs} +1 -1
- package/dist/bin.cjs +37021 -10253
- package/dist/bin.mjs +36892 -10178
- package/dist/client/assets/AccountSettings-B88Q_w9Y.js +1 -0
- package/dist/client/assets/AiFocusSettings-Bb0TrCPn.js +1 -0
- package/dist/client/assets/{AnimatedHeight-UXn4-nUd.js → AnimatedHeight-epXOsgdm.js} +1 -1
- package/dist/client/assets/AppearanceSettings-XS9WRVPU.js +1 -0
- package/dist/client/assets/AutomationsDialog-bZckh4Y3.js +1 -0
- package/dist/client/assets/AutomationsSummary-wPFZCF49.js +1 -0
- package/dist/client/assets/BranchToolbar.logic-DjzLKbbB.js +3 -0
- package/dist/client/assets/BrowserPanel-CdBLnnfz.js +1 -0
- package/dist/client/assets/ChatRightPanel-BCINd0vP.js +34 -0
- package/dist/client/assets/ChatThreadRouteView-BFZ0Si-l.js +1 -0
- package/dist/client/assets/ColorSwatchPicker-CGyo99o0.js +1 -0
- package/dist/client/assets/CommandPalette.logic-BIOMtnEQ.js +1 -0
- package/dist/client/assets/CommandPaletteDialog-Db4LH--z.js +2 -0
- package/dist/client/assets/CompositeRoot-DtnwMJKj.js +1 -0
- package/dist/client/assets/ComputerUseSettings-CkqCqDsU.js +1 -0
- package/dist/client/assets/ConnectionsSettings-B9mxExdG.js +7 -0
- package/dist/client/assets/CreatePullRequestDialog-CJ7pNCue.js +1 -0
- package/dist/client/assets/CreatePullRequestDialogHost-n4ZjdSr4.js +1 -0
- package/dist/client/assets/DiagnosticsSettings-f9rFG9re.js +2 -0
- package/dist/client/assets/DiagnosticsSettings.logic-Byf-Bu4S.js +1 -0
- package/dist/client/assets/DialogHandle-C0c_rK3I.js +1 -0
- package/dist/client/assets/{DialogPopup-NfwDyR5c.js → DialogPopup-BKW1PEEa.js} +1 -1
- package/dist/client/assets/DialogRoot-BIubqrv0.js +1 -0
- package/dist/client/assets/DialogTitle-BAX_FLoG.js +1 -0
- package/dist/client/assets/{DialogViewport-B6w_ROOE.js → DialogViewport-C2iOUx0O.js} +1 -1
- package/dist/client/assets/DiffPanel-BkqDt_SS.js +25 -0
- package/dist/client/assets/DisclosureRegion-B8556yU0.js +1 -0
- package/dist/client/assets/DraftChatThreadRouteView-BKgRKJ2w.js +1 -0
- package/dist/client/assets/{ExternalIdentityWeb.logic-BlKX8J9h.js → ExternalIdentityWeb.logic-Cu6suNrN.js} +1 -1
- package/dist/client/assets/GlassSurface-DLYYzRdP.js +1 -0
- package/dist/client/assets/HostedConnectionControls-CoVqtnrK.js +1 -0
- package/dist/client/assets/HostedHubRoot-CM2CwPUr.js +2 -0
- package/dist/client/assets/{HostedNativeAuthorizationRoute-j7oSlakZ.js → HostedNativeAuthorizationRoute-Bizmqrh_.js} +2 -2
- package/dist/client/assets/HostedNodeRenameDialog-SXWMsTO0.js +1 -0
- package/dist/client/assets/HostedRelayTrustNotice-BfTyrBi5.js +1 -0
- package/dist/client/assets/InboxStatusGlyph-BPTqzp7l.js +1 -0
- package/dist/client/assets/IntegrationsSettingsPanel-DAPvkV4i.js +1 -0
- package/dist/client/assets/KeybindingsSettings-B8g-YI2O.js +1 -0
- package/dist/client/assets/LazyBrowserPanel-Ds9cdOC_.js +2 -0
- package/dist/client/assets/McpServersSettings-Dw6G3ff3.js +6 -0
- package/dist/client/assets/MobileSheet-DfgXNWbd.js +1 -0
- package/dist/client/assets/ModelTuningDial-DQBAbuNL.js +1 -0
- package/dist/client/assets/NewWorktreeDialog-CDZAJmK6.js +4 -0
- package/dist/client/assets/NodeSecuritySettings-3MELA9ru.js +1 -0
- package/dist/client/assets/NullStore-gT_6_xZE.js +1 -0
- package/dist/client/assets/OnboardingDialog-CAAtNnJf.js +1 -0
- package/dist/client/assets/OpinionatedPluginsSettings-AiDB0Vl4.js +1 -0
- package/dist/client/assets/{PdfAttachmentPreview-C8-hT8KQ.js → PdfAttachmentPreview-BFNW2wjN.js} +2 -2
- package/dist/client/assets/{PhoneGetAppInterstitial-Zh0zpBgT.js → PhoneGetAppInterstitial-D8fwZ8E9.js} +1 -1
- package/dist/client/assets/PhoneHome-YHgHljA0.js +1 -0
- package/dist/client/assets/PhoneSettingsSurface-BVxJppvK.js +2 -0
- package/dist/client/assets/PreviewPanel-BYcEnkv9.js +643 -0
- package/dist/client/assets/ProjectScriptDialog-K34K2Kzm.js +1 -0
- package/dist/client/assets/ProjectsPage-DXnMYLjb.js +1 -0
- package/dist/client/assets/PromoteChatDialog-CAY7_wJ-.js +1 -0
- package/dist/client/assets/ProviderLimitWindow-CK04BSkM.js +1 -0
- package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BMBrDDOC.js +1 -0
- package/dist/client/assets/ProvidersSettingsPanel-C85PX9Es.js +1 -0
- package/dist/client/assets/PullRequestsPage-C0rgfGwB.js +1 -0
- package/dist/client/assets/{QuitShortcutFeedback-Qs9XsuZ4.js → QuitShortcutFeedback-DSkKqETs.js} +1 -1
- package/dist/client/assets/RedactedSensitiveText-DQ0YveQd.js +1 -0
- package/dist/client/assets/RollingText-BzvpP5fa.js +1 -0
- package/dist/client/assets/RootAppShell-BYQ-eGNT.js +6 -0
- package/dist/client/assets/{Separator-B6Esv57Y.js → Separator-DpiW19Vw.js} +1 -1
- package/dist/client/assets/SettingsPage-BCFN7Ju2.js +2 -0
- package/dist/client/assets/SettingsPanels-CP6z2b1x.js +3 -0
- package/dist/client/assets/SettingsPanels.editor-D8U-TWWG.js +1 -0
- package/dist/client/assets/SettingsSelect-DEhNaz3E.js +1 -0
- package/dist/client/assets/Sidebar.logic-D_ODfSpl.js +1 -0
- package/dist/client/assets/SimulatorPanel-DCT6fZ0X.js +1 -0
- package/dist/client/assets/SourceControlSettings-DxUtvPMK.js +1 -0
- package/dist/client/assets/StatisticsPage-C9SrwtM4.js +1 -0
- package/dist/client/assets/StatisticsPanel-BMYLETs0.js +1 -0
- package/dist/client/assets/ThreadLinkList-BN5z5EpS.js +169 -0
- package/dist/client/assets/ThreadTerminalDrawer-CgIFOlR-.js +18 -0
- package/dist/client/assets/ThreadWorkspacePanel-DvXoqQPF.js +3 -0
- package/dist/client/assets/ToolbarRootContext-8FsV9Cpj.js +1 -0
- package/dist/client/assets/TraitsPicker-DcrpJahy.js +1 -0
- package/dist/client/assets/Virtualizer-CwXeUPla.js +1345 -0
- package/dist/client/assets/WorkspacePullRequestPanel-3mlcJn9G.js +1 -0
- package/dist/client/assets/WorkspaceReview-UGbCgXeK.js +2 -0
- package/dist/client/assets/{abnfDiagram-N423BO3Z-ByEe3mC0.js → abnfDiagram-N423BO3Z-DVEM6Scc.js} +1 -1
- package/dist/client/assets/{activity-CwTUF6lv.js → activity-DVCuAejY.js} +1 -1
- package/dist/client/assets/{alert-DQEkrtUJ.js → alert-FV7ZIit_.js} +1 -1
- package/dist/client/assets/alert-dialog-CgXR9tED.js +1 -0
- package/dist/client/assets/app-window-3xtwqZgI.js +1 -0
- package/dist/client/assets/appChrome-COCz-T7w.js +1 -0
- package/dist/client/assets/{appearancePreferences-nFx4MHoI.js → appearancePreferences-NnsvXwBe.js} +1 -1
- package/dist/client/assets/architecture-7GRP2DOG-DXXb_0_g.js +1 -0
- package/dist/client/assets/{architectureDiagram-T3A2C74G-Bd-yxaTr.js → architectureDiagram-T3A2C74G-B6pcKiCj.js} +1 -1
- package/dist/client/assets/{arrow-left-DUOpzEbP.js → arrow-left-Blu3LSE2.js} +1 -1
- package/dist/client/assets/{arrow-right-HOYJnPKw.js → arrow-right-CO3CH0ne.js} +1 -1
- package/dist/client/assets/arrow-up-B69gV2Bq.js +1 -0
- package/dist/client/assets/{arrow-up-right-DHnMKuVA.js → arrow-up-right-BbPGFOLA.js} +1 -1
- package/dist/client/assets/authorization-Ob6YwWiI.js +1 -0
- package/dist/client/assets/autocomplete-RVpjsrDv.js +1 -0
- package/dist/client/assets/ban-BIm2PVkE.js +1 -0
- package/dist/client/assets/{blockDiagram-VBNYF7ZC-CPDBonMC.js → blockDiagram-VBNYF7ZC-WNerGp9V.js} +1 -1
- package/dist/client/assets/{bot-DxjPA7Bw.js → bot-C9nWtaWq.js} +1 -1
- package/dist/client/assets/browserState-jt47YsqD.js +1 -0
- package/dist/client/assets/{c4Diagram-5PPSVZJV-BM6pAiqT.js → c4Diagram-5PPSVZJV-wp1ioOoM.js} +1 -1
- package/dist/client/assets/camera-C13VoW3c.js +1 -0
- package/dist/client/assets/capabilities-CfOhq009.js +1 -0
- package/dist/client/assets/channel-56r2qL2v.js +1 -0
- package/dist/client/assets/{chart-column-Cg7d41tb.js → chart-column-DRv0YtL_.js} +1 -1
- package/dist/client/assets/checkbox-CIIIY9FA.js +1 -0
- package/dist/client/assets/checks-Dw022Bvy.js +1 -0
- package/dist/client/assets/{chunk-2GRJ4B5K-DVKozJ41.js → chunk-2GRJ4B5K-DRl3ILpc.js} +1 -1
- package/dist/client/assets/{chunk-4I5QYGJK-BRoMwPkW.js → chunk-4I5QYGJK-CYTRl4bo.js} +1 -1
- package/dist/client/assets/{chunk-5RXB4S5H-DFMKyoqP.js → chunk-5RXB4S5H-VCNwRsOa.js} +1 -1
- package/dist/client/assets/{chunk-6Q2QTUOP-Ba6UENe9.js → chunk-6Q2QTUOP-DnSeKGPG.js} +1 -1
- package/dist/client/assets/{chunk-7Z6QIM7H-B87gYLWH.js → chunk-7Z6QIM7H-Cjilh9TF.js} +1 -1
- package/dist/client/assets/{chunk-GF5L2VYU-DZ840GRQ.js → chunk-GF5L2VYU-CGR7AW0t.js} +1 -1
- package/dist/client/assets/{chunk-I66GZJ75-BO6p4Aqg.js → chunk-I66GZJ75-CXSn8dDu.js} +1 -1
- package/dist/client/assets/{chunk-JQJVKLGR-5dTfVinz.js → chunk-JQJVKLGR-Dro-75lU.js} +1 -1
- package/dist/client/assets/{chunk-KBJHAD2P-BeWfBZdP.js → chunk-KBJHAD2P-BDqN2kVf.js} +1 -1
- package/dist/client/assets/{chunk-NSK5VX7P-DuRkdn5k.js → chunk-NSK5VX7P-DGo5UczH.js} +1 -1
- package/dist/client/assets/{chunk-QR6OTTB3-Duz4Y_uE.js → chunk-QR6OTTB3-RWuyWnBI.js} +1 -1
- package/dist/client/assets/{chunk-UBXNYLIW-D-z8URgN.js → chunk-UBXNYLIW-BPRzeB0w.js} +1 -1
- package/dist/client/assets/{chunk-W5SLKNZC-AGjFjjoJ.js → chunk-W5SLKNZC-DYWocTFi.js} +1 -1
- package/dist/client/assets/{chunk-WRU74C26-BgY3UiXB.js → chunk-WRU74C26-ChbB1jY3.js} +1 -1
- package/dist/client/assets/circle-stop-D8B4hRpY.js +1 -0
- package/dist/client/assets/circle-x-CNLfrTqR.js +1 -0
- package/dist/client/assets/classDiagram-JCYQIIEL-DGvmFev3.js +1 -0
- package/dist/client/assets/classDiagram-v2-OCEON4UE-DGvmFev3.js +1 -0
- package/dist/client/assets/{clipboard-copy-BWf3JuTE.js → clipboard-copy-DGi8FKNO.js} +1 -1
- package/dist/client/assets/clock-3-DmJ4_XPI.js +1 -0
- package/dist/client/assets/clock-DZIuPtNG.js +1 -0
- package/dist/client/assets/color-picker-BdBXje-a.js +1 -0
- package/dist/client/assets/columns-2-CWlMOClK.js +1 -0
- package/dist/client/assets/combobox-Dtjtf7AB.js +1 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-BuOAGqlK.js → cynefin-OW5HDTMX-TuShvMuM.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-MW4NZA55-DqV0Aokp.js → cynefinDiagram-MW4NZA55-B0Edt2Em.js} +1 -1
- package/dist/client/assets/{dagre-VZM6K2ZE-D_GFquDW.js → dagre-VZM6K2ZE-D-eiuqHx.js} +1 -1
- package/dist/client/assets/{data-list-BJCq3CVP.js → data-list-BAx6jBY1.js} +1 -1
- package/dist/client/assets/desktopUpdateAtoms-BjrLa3tl.js +1 -0
- package/dist/client/assets/desktopWorkspace-C2wXVBhc.js +1 -0
- package/dist/client/assets/{deviceName-C2N8ZRX3.js → deviceName-B4youG0v.js} +1 -1
- package/dist/client/assets/{diagram-7IWD3JNH-B1wlsNg2.js → diagram-7IWD3JNH-DgM6lMlR.js} +1 -1
- package/dist/client/assets/{diagram-B4RE2ZJO-D-CYoym7.js → diagram-B4RE2ZJO-CyHNDjzV.js} +1 -1
- package/dist/client/assets/{diagram-LBJQPF4R-DqJ9NCqt.js → diagram-LBJQPF4R-DDzuLIN5.js} +1 -1
- package/dist/client/assets/{diagram-Q27KOJAE-3yp1D2u4.js → diagram-Q27KOJAE-BaBvK9QB.js} +1 -1
- package/dist/client/assets/{diagram-UB23O5K3-Byp25nGC.js → diagram-UB23O5K3-CzZ2ewuZ.js} +1 -1
- package/dist/client/assets/dialogWords-Cg0YkJVg.js +1 -0
- package/dist/client/assets/diffRouteSearch-D2MKN_ah.js +1 -0
- package/dist/client/assets/disclosureMotion-cbMJn5-z.js +1 -0
- package/dist/client/assets/{download-DsYNYJeu.js → download-TvtXS4hE.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-BXEA7PRR-B_IM1l6o.js → ebnfDiagram-BXEA7PRR-CL1vdOKi.js} +1 -1
- package/dist/client/assets/editorPreferences-DqKyA-2Z.js +1 -0
- package/dist/client/assets/ellipsis-CDK1dNFZ.js +1 -0
- package/dist/client/assets/ellipsis-vertical-CwzEUTwV.js +1 -0
- package/dist/client/assets/{empty-BbJHvskr.js → empty-BovKoxbn.js} +1 -1
- package/dist/client/assets/{erDiagram-JOGREHBK--OtcrCRJ.js → erDiagram-JOGREHBK-DmQR2if6.js} +1 -1
- package/dist/client/assets/eventmodeling-NTZA5JFV-D272GIcY.js +1 -0
- package/dist/client/assets/external-link-CJeVJZ7s.js +1 -0
- package/dist/client/assets/eye-BUmrXqzg.js +1 -0
- package/dist/client/assets/file-diff-BWc3mYsz.js +1 -0
- package/dist/client/assets/flowDiagram-UKHOOZJN-DLyS38Mm.js +1 -0
- package/dist/client/assets/folder-git-2-CPxg5wKP.js +1 -0
- package/dist/client/assets/folder-open-DcMymvp1.js +1 -0
- package/dist/client/assets/formatCount-B4KLI651.js +1 -0
- package/dist/client/assets/{ganttDiagram-PKOTCBZU-w0seBi3Q.js → ganttDiagram-PKOTCBZU-1q2nUL92.js} +1 -1
- package/dist/client/assets/git-pull-request-BFPwpm3c.js +1 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-BOJ0lcSW.js → gitGraph-4MIJSDKK-COtwmv2S.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-DS77QQ5N-BMfOCCYn.js → gitGraphDiagram-DS77QQ5N-ChsvaxX4.js} +1 -1
- package/dist/client/assets/{group-tVMKGp7Q.js → group-DWWn0dTx.js} +1 -1
- package/dist/client/assets/hammer-BXo-EU88.js +1 -0
- package/dist/client/assets/hostedConnectionCoordinator-BkAE-RhA.js +1 -0
- package/dist/client/assets/{index-BqZvnGNr.js → index-DARIYokI.js} +2 -2
- package/dist/client/assets/{info-A6RAGUB7-acjBTQ5o.js → info-A6RAGUB7-CI2qZ9wW.js} +1 -1
- package/dist/client/assets/{infoDiagram-6WML65LV-DB01Nc2m.js → infoDiagram-6WML65LV-BPmgcTPH.js} +1 -1
- package/dist/client/assets/{input-BDWSVClC.js → input-CCie4mm1.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-WSZJBQD7-KhZTvm-J.js → ishikawaDiagram-WSZJBQD7-LyS9p3Yg.js} +1 -1
- package/dist/client/assets/{journeyDiagram-NVQOT4AX-C3JCYk-2.js → journeyDiagram-NVQOT4AX-BYaAmN65.js} +1 -1
- package/dist/client/assets/{kanban-definition-27J2QSJJ-Dbo0C1s6.js → kanban-definition-27J2QSJJ-D-pwzqFt.js} +1 -1
- package/dist/client/assets/{key-round-CETZqe3h.js → key-round-BlrUTfxB.js} +1 -1
- package/dist/client/assets/keyboard-DlBdq6sz.js +1 -0
- package/dist/client/assets/label-ChtVI9lp.js +1 -0
- package/dist/client/assets/layers-BB-ruGvd.js +1 -0
- package/dist/client/assets/lifecycleSuggestionPolicy-0ERe_O53.js +1 -0
- package/dist/client/assets/list-checks-BkM_ZRsj.js +1 -0
- package/dist/client/assets/loader-3vQnfqIT.js +1 -0
- package/dist/client/assets/{log-out-D5-aSBAz.js → log-out-CKq9YiLY.js} +1 -1
- package/dist/client/assets/{logging-B_qXVrk6.js → logging-CCg76rgn.js} +1 -1
- package/dist/client/assets/main-Ch0bwS-M.js +9 -0
- package/dist/client/assets/main-Di0isH9D.css +2 -0
- package/dist/client/assets/{mermaid-parser.core-B6Q-3x_q.js → mermaid-parser.core-RK9ah5RM.js} +2 -2
- package/dist/client/assets/{mermaidEngine-DksLcesB.js → mermaidEngine-Dr8UsPhH.js} +3 -3
- package/dist/client/assets/message-circle-dashed-BrjwqS7-.js +1 -0
- package/dist/client/assets/messageQueueDrain-B7R7Qmq6.js +1 -0
- package/dist/client/assets/messages-square-cDTkDJv_.js +1 -0
- package/dist/client/assets/{mindmap-definition-FAOFIHXS-LaMzRxqw.js → mindmap-definition-FAOFIHXS-DVudWasx.js} +1 -1
- package/dist/client/assets/{packet-AYTQ26CC-BHhg59Si.js → packet-AYTQ26CC-DnkTsVhD.js} +1 -1
- package/dist/client/assets/panels-top-left-B7jZiLth.js +1 -0
- package/dist/client/assets/path-text-3Rfu6lt8.js +1 -0
- package/dist/client/assets/{pegDiagram-VL7TDLO6-s7l7UD9d.js → pegDiagram-VL7TDLO6-Do5PIp8B.js} +1 -1
- package/dist/client/assets/pencil-Bzg-nc6d.js +1 -0
- package/dist/client/assets/{pie-WAS4IAKB-DygX31Z9.js → pie-WAS4IAKB-B_nNQOzn.js} +1 -1
- package/dist/client/assets/{pieDiagram-7S7Q4E2Y-bb6I9TtZ.js → pieDiagram-7S7Q4E2Y-D_IG4xwA.js} +1 -1
- package/dist/client/assets/{play-DUvOxTpL.js → play-DpXXQ1qB.js} +1 -1
- package/dist/client/assets/popover-OWEv6cQz.js +48 -0
- package/dist/client/assets/presentationTier-DPVAxTK4.js +1 -0
- package/dist/client/assets/previewRouteSearch-BjZdTuSf.js +1 -0
- package/dist/client/assets/primary-Cf-xJExj.js +4 -0
- package/dist/client/assets/primitives-CxTBN7D4.js +1 -0
- package/dist/client/assets/projectCheckouts.logic-DUT4AxXr.js +1 -0
- package/dist/client/assets/projectPaths-B8aVmOZX.js +1 -0
- package/dist/client/assets/projectPreferences-CzWBItFj.js +1 -0
- package/dist/client/assets/providerCapabilities-B2YOPsLN.js +1 -0
- package/dist/client/assets/providerDriverMeta-BHHL9uw0.js +1 -0
- package/dist/client/assets/providerModels-v9PYbzRE.js +1 -0
- package/dist/client/assets/providerStatus-CDPaqb0S.js +1 -0
- package/dist/client/assets/pullRequestsModel.logic-Dv_om_C4.js +1 -0
- package/dist/client/assets/{qr-code-dbkTo07n.js → qr-code-BlbiBIwH.js} +1 -1
- package/dist/client/assets/{qr-code-D4CtBq2F.js → qr-code-DywzVgQC.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-CIZ2JOQS-Cj1Y68ZF.js → quadrantDiagram-CIZ2JOQS-DY6fJyrM.js} +1 -1
- package/dist/client/assets/{radar-RG4KPBEZ-FHM3ftPp.js → radar-RG4KPBEZ-D9689I5m.js} +1 -1
- package/dist/client/assets/radio-group-DVwD6Cuy.js +1 -0
- package/dist/client/assets/{railroad-74A4TZTK-CPMn18Cm.js → railroad-74A4TZTK-DVzWbQnl.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-C_2P6umA.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-aGlR3R3z.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-DCB9oE8y.js +1 -0
- package/dist/client/assets/{railroadDiagram-AXF67PYL-DyV3SuDj.js → railroadDiagram-AXF67PYL-D1oJ6Jtl.js} +1 -1
- package/dist/client/assets/readCache-B7cDPz2O.js +1 -0
- package/dist/client/assets/{refresh-cw-CgDa2Ok_.js → refresh-cw-CRUTivd6.js} +1 -1
- package/dist/client/assets/{requirementDiagram-LRYGKXZP-_xEAGWaH.js → requirementDiagram-LRYGKXZP-7RM8iREp.js} +1 -1
- package/dist/client/assets/rotate-ccw-BE2ZCwL6.js +1 -0
- package/dist/client/assets/roving-radio-group-NMPWrDqe.js +1 -0
- package/dist/client/assets/rows-2-DDS4dGTX.js +1 -0
- package/dist/client/assets/runtime-DjjjAcTE.js +18 -0
- package/dist/client/assets/safePolygon-C1AzMRS4.js +1 -0
- package/dist/client/assets/{sankeyDiagram-W5VNT64P-Clf6oTLi.js → sankeyDiagram-W5VNT64P-C1tKAPGN.js} +1 -1
- package/dist/client/assets/{save-C8h0AMdl.js → save-OZdkPs_y.js} +1 -1
- package/dist/client/assets/scroll-area-80P7vbjw.js +1 -0
- package/dist/client/assets/{scrollEdges-BXYnwntN.js → scrollEdges-C0Oc-5qi.js} +1 -1
- package/dist/client/assets/select-Cb9FUPHD.js +1 -0
- package/dist/client/assets/separator-CO8bC7Wc.js +1 -0
- package/dist/client/assets/{sequenceDiagram-SI44F4Z6-CcYtQLSe.js → sequenceDiagram-SI44F4Z6-DGVpb7jL.js} +1 -1
- package/dist/client/assets/settings-2-PrRDu6Lc.js +1 -0
- package/dist/client/assets/settingsLayout-CRFNCk_D.js +1 -0
- package/dist/client/assets/sheet-C5DW7qVO.js +1 -0
- package/dist/client/assets/{shield-DPC4oHTi.js → shield-CBHYqlkR.js} +1 -1
- package/dist/client/assets/{shield-alert-CwH36qZb.js → shield-alert-Dc2cGwyR.js} +1 -1
- package/dist/client/assets/{shield-check-CGD7sEeF.js → shield-check-_wl7R4Js.js} +1 -1
- package/dist/client/assets/sidebar-0BBaFNm3.js +1 -0
- package/dist/client/assets/sidebarProjectFolders-BjWzbt8C.js +3 -0
- package/dist/client/assets/sidebarProjectGrouping-nQRStWrZ.js +1 -0
- package/dist/client/assets/sidebarStatusText-BBKuNies.js +1 -0
- package/dist/client/assets/sidebarUndo-Dfq1lvyF.js +1 -0
- package/dist/client/assets/{skeleton-rS3IgBob.js → skeleton-DfUe6VV_.js} +1 -1
- package/dist/client/assets/sliders-horizontal-BGXkwvKv.js +1 -0
- package/dist/client/assets/sliding-tabs-BnDSjRU3.js +39 -0
- package/dist/client/assets/{smartphone-DgVJfbv3.js → smartphone-OEAQOTdv.js} +1 -1
- package/dist/client/assets/spinner-lHRJWsym.js +1 -0
- package/dist/client/assets/square-B05NKv3e.js +1 -0
- package/dist/client/assets/{star-Cqay-Cae.js → star-C8mHmfZu.js} +1 -1
- package/dist/client/assets/{stateDiagram-OKZ733FA-DEKURpRP.js → stateDiagram-OKZ733FA-CCOAegCG.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-UEYNNEHI-D60qqBed.js +1 -0
- package/dist/client/assets/storeSelectors-BichCKDC.js +1 -0
- package/dist/client/assets/surfaceMorph-BTRijmlU.js +1 -0
- package/dist/client/assets/{swimlanes-SLNWSIFB-DrR6sbi6.js → swimlanes-SLNWSIFB-CFsLYT4h.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-D0SaJgSn.js +8 -0
- package/dist/client/assets/switch-oQc7Ifbl.js +1 -0
- package/dist/client/assets/text-wrap-DSRdSfDm.js +1 -0
- package/dist/client/assets/textarea-VyiIZ0wQ.js +1 -0
- package/dist/client/assets/threadPriorityRefreshRuntime-H656C1J_.js +1 -0
- package/dist/client/assets/ticker-CPutfhZ4.js +1 -0
- package/dist/client/assets/{timeline-definition-Z64GVDOM-bQJvmJx5.js → timeline-definition-Z64GVDOM-B4agmO7R.js} +1 -1
- package/dist/client/assets/toggle-DFqtCPt-.js +1 -0
- package/dist/client/assets/toggle-group-C5ICmqkI.js +1 -0
- package/dist/client/assets/{tokenModePresentation-BkS-mry_.js → tokenModePresentation-umDRm4k1.js} +1 -1
- package/dist/client/assets/tooltip-DbqhseXd.js +1 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-D4Ex5QTp.js → treeView-Q6P3EWNA-C_S3udFB.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-C4B6Y6qM.js → treemap-WGGIJYW6-B-kUSAkE.js} +1 -1
- package/dist/client/assets/undo-2-lyluTGMW.js +1 -0
- package/dist/client/assets/{unplug-B1dczi-t.js → unplug-D6iu-qlh.js} +1 -1
- package/dist/client/assets/usage-ClF-eUmy.js +1 -0
- package/dist/client/assets/useActiveIndicator-R5NWu8Fg.js +1 -0
- package/dist/client/assets/useAppSidebarCollapsed-BbMxfio5.js +1 -0
- package/dist/client/assets/useAppearancePreference-Ix13pMKy.js +1 -0
- package/dist/client/assets/useAtlassian-BYDCc9lv.js +0 -0
- package/dist/client/assets/useCheckoutResolution-CR-oOp5-.js +1 -0
- package/dist/client/assets/useDesktopRelaunchGuard-Jmh615iZ.js +1 -0
- package/dist/client/assets/useDiffFileNavigation-DeuzdD5E.js +15 -0
- package/dist/client/assets/useDiffLayout-DhcXwhBL.js +1 -0
- package/dist/client/assets/useEnvironmentSettingsTarget-DM6BRDT7.js +1 -0
- package/dist/client/assets/useFocus-CV0KIZwg.js +1 -0
- package/dist/client/assets/useGit-CUcs7h5_.js +1 -0
- package/dist/client/assets/useGitBranchSearch-CeKFtnCL.js +1 -0
- package/dist/client/assets/useHostedDraftExecutionTarget-DvQU5UOq.js +1 -0
- package/dist/client/assets/useLabelableId-CEgCRi6q.js +1 -0
- package/dist/client/assets/useLandingFlash-BfOOlFtW.js +1 -0
- package/dist/client/assets/useLogicalProjectSnapshots-CRNZke74.js +1 -0
- package/dist/client/assets/useNavigate-sQZthdyT.js +1 -0
- package/dist/client/assets/usePageLeadingInsetClass-Bf4nUvx4.js +1 -0
- package/dist/client/assets/usePhoneThreadActions-VaQ-mZex.js +1 -0
- package/dist/client/assets/usePopupHandleStore-DimKo2Yy.js +1 -0
- package/dist/client/assets/usePopupViewport-YeqX_UM3.js +1 -0
- package/dist/client/assets/usePresentationTier-B9kCQ4YH.js +1 -0
- package/dist/client/assets/useProject-Kt74Z12J.js +1 -0
- package/dist/client/assets/useProviderOptionsUpdater-CTzNh2B7.js +2 -0
- package/dist/client/assets/usePullRequestFilesViewed-D5Snmzys.js +1 -0
- package/dist/client/assets/usePullRequestsModel-DJL5HHbP.js +40 -0
- package/dist/client/assets/useScrollLock-CLZ31xsK.js +1 -0
- package/dist/client/assets/useSidebarThreadActions-n6EkLATf.js +6 -0
- package/dist/client/assets/{useStatistics-B76_r68I.js → useStatistics-DD0mYS4J.js} +14 -14
- package/dist/client/assets/{useTheme-B441xg4F.js → useTheme-Bdy-BDs-.js} +1 -1
- package/dist/client/assets/useValueChanged-DoumqMnV.js +1 -0
- package/dist/client/assets/{user-round-CLy1Qy1Y.js → user-round-BPDXr8Gq.js} +1 -1
- package/dist/client/assets/{vennDiagram-T6HMQDX7-8iiroXim.js → vennDiagram-T6HMQDX7-B1UEn_j_.js} +1 -1
- package/dist/client/assets/{vscode-icons-CJBVQtq5.js → vscode-icons-Ccy-gzFN.js} +1 -1
- package/dist/client/assets/{wardley-WFR3VGLG-DpyNUbTc.js → wardley-WFR3VGLG-gPdyDc-7.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-T6FBY63Y-CI7is3QO.js → wardleyDiagram-T6FBY63Y-2aDcwOA4.js} +1 -1
- package/dist/client/assets/workspaceLifecycle-OJ1aKksw.js +3 -0
- package/dist/client/assets/workspaceMetadataProjection-CyEyJhUa.js +1 -0
- package/dist/client/assets/workspaceRouteSearch-CCavUdbH.js +1 -0
- package/dist/client/assets/{wrench-7pbbxqrZ.js → wrench-CPUCA_rn.js} +1 -1
- package/dist/client/assets/wsTransport-C88seBPA.js +15 -0
- package/dist/client/assets/{xychartDiagram-ELKLHX3M-BTEX3m2y.js → xychartDiagram-ELKLHX3M-C1_7Q-1i.js} +1 -1
- package/dist/client/favicon.svg +1 -1
- package/dist/client/index.html +1 -1
- package/dist/collectUint8StreamText-BsLSgI8i.mjs +710 -0
- package/dist/collectUint8StreamText-D5olwfpM.cjs +757 -0
- package/dist/{deviceHostWorker-L8C9wy38.mjs → deviceHostWorker-B-Dn-6An.mjs} +1 -1
- package/dist/{makeManagedServerProvider-CF776SAO.cjs → makeManagedServerProvider-B5tP7tvg.cjs} +1 -1
- package/dist/{makeManagedServerProvider-B90UKjnv.mjs → makeManagedServerProvider-B65ipCxM.mjs} +2 -2
- package/dist/resource-monitor/linux-arm64/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
- package/dist/{runtimeSession-V3RIy8Ao.mjs → runtimeSession-D_BZ-wRH.mjs} +1 -1
- package/dist/{src-CARHuYkT.cjs → src-FmeCeBJ9.cjs} +2291 -72
- package/dist/{src-CtsgPPhb.mjs → src-VTj60bUm.mjs} +1974 -61
- package/package.json +1 -1
- package/dist/AzureDevOpsSourceControlProvider-CKSvfuDS.cjs +0 -190
- package/dist/AzureDevOpsSourceControlProvider-DRWSXTml.mjs +0 -188
- package/dist/GitLabSourceControlProvider-Cj07OTBD.mjs +0 -186
- package/dist/GitLabSourceControlProvider-CvvN5pHt.cjs +0 -188
- package/dist/client/assets/AccountSettings-v6-r6gYl.js +0 -1
- package/dist/client/assets/AiFocusSettings-BVdLON0q.js +0 -1
- package/dist/client/assets/AppearanceSettings-DRChsQnN.js +0 -1
- package/dist/client/assets/BranchToolbar.logic-YN3KjVr9.js +0 -3
- package/dist/client/assets/BrowserPanel-Dxw3stFP.js +0 -1
- package/dist/client/assets/ChatRightPanel-CygpcJiF.js +0 -201
- package/dist/client/assets/ChatThreadRouteView-DYLZFHu0.js +0 -1
- package/dist/client/assets/CommandPaletteDialog-BRvBzP1R.js +0 -1
- package/dist/client/assets/CompositeRoot-BeEGGWwn.js +0 -1
- package/dist/client/assets/ComputerUseSettings-Cq8Pi0ZU.js +0 -1
- package/dist/client/assets/ConnectionsSettings-RSYtexxd.js +0 -7
- package/dist/client/assets/ContextHandoffEndpointLabel-CeGDLNA4.js +0 -4
- package/dist/client/assets/DiagnosticsSettings-CDa6MVx4.js +0 -2
- package/dist/client/assets/DialogHandle-BE7egDQQ.js +0 -1
- package/dist/client/assets/DialogRoot-C4mtzigX.js +0 -1
- package/dist/client/assets/DialogTitle-B_Q4DykI.js +0 -1
- package/dist/client/assets/DialogTrigger-BSqd4Crj.js +0 -1
- package/dist/client/assets/DraftChatThreadRouteView-JW_bXVrM.js +0 -1
- package/dist/client/assets/GlassSurface-DDG4eTlj.js +0 -1
- package/dist/client/assets/HostedConnectionControls-CscV6hm1.js +0 -1
- package/dist/client/assets/HostedHubRoot-gp7-ClBP.js +0 -2
- package/dist/client/assets/HostedNodeRenameDialog-D1DSiTpx.js +0 -1
- package/dist/client/assets/HostedRelayTrustNotice-B9jp4SRh.js +0 -1
- package/dist/client/assets/IntegrationsSettingsPanel-DH7SfWtV.js +0 -2
- package/dist/client/assets/KeybindingsSettings-DkgYYSHS.js +0 -7
- package/dist/client/assets/LazyBrowserPanel-D4e76vc_.js +0 -2
- package/dist/client/assets/McpServersSettings-Dc1kPa-X.js +0 -6
- package/dist/client/assets/MobileSheet-lT--mLEz.js +0 -1
- package/dist/client/assets/NodeSecuritySettings-DcfSx4KT.js +0 -1
- package/dist/client/assets/NullStore-8d2s-Re3.js +0 -1
- package/dist/client/assets/OnboardingDialog-CnLjwM6Z.js +0 -1
- package/dist/client/assets/OpinionatedPluginsSettings-BTJyS3rN.js +0 -1
- package/dist/client/assets/PhoneHome-CIMkuDJF.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-CfZQxJNI.js +0 -2
- package/dist/client/assets/ProvidersSettingsPanel-DAVSiwE1.js +0 -1
- package/dist/client/assets/RedactedSensitiveText-BHGbQJwB.js +0 -1
- package/dist/client/assets/RootAppShell-T056pByH.js +0 -7
- package/dist/client/assets/SettingsDialog-BERU2Qg7.js +0 -2
- package/dist/client/assets/SettingsPanels-De_XZOQF.js +0 -3
- package/dist/client/assets/SettingsPanels.editor-Dkva9gX_.js +0 -2
- package/dist/client/assets/SourceControlSettings-B4HS17cB.js +0 -1
- package/dist/client/assets/StatisticsPage-Bj2ftFdH.js +0 -1
- package/dist/client/assets/StatisticsPanel-Dw7GBBmd.js +0 -1
- package/dist/client/assets/StatisticsSettingsLink-_XL3ABoI.js +0 -1
- package/dist/client/assets/ThreadTerminalDrawer-CPPzQSXN.js +0 -18
- package/dist/client/assets/ThreadWorkspacePanel-DWKU7Omm.js +0 -2073
- package/dist/client/assets/appChrome-TkWLAGxk.js +0 -1
- package/dist/client/assets/architecture-7GRP2DOG-HS59zfrk.js +0 -1
- package/dist/client/assets/authorization-D8dOcEYq.js +0 -1
- package/dist/client/assets/badge-2AZ3HfVS.js +0 -1
- package/dist/client/assets/capabilities-CsHjxjab.js +0 -1
- package/dist/client/assets/channel-Dn3_cOkm.js +0 -1
- package/dist/client/assets/chevron-right-Dsw16yGn.js +0 -1
- package/dist/client/assets/classDiagram-JCYQIIEL-ZQvrS8No.js +0 -1
- package/dist/client/assets/classDiagram-v2-OCEON4UE-ZQvrS8No.js +0 -1
- package/dist/client/assets/compiler-runtime-C4g8XhC5.js +0 -1
- package/dist/client/assets/desktopWorkspace-_iM6B9Kf.js +0 -1
- package/dist/client/assets/editorPreferences-D8q1ItMW.js +0 -1
- package/dist/client/assets/eventmodeling-NTZA5JFV-Dj71kuPV.js +0 -1
- package/dist/client/assets/flowDiagram-UKHOOZJN-BaAiwuvL.js +0 -1
- package/dist/client/assets/hostedConnectionCoordinator-BuRWCvUG.js +0 -1
- package/dist/client/assets/hubRoutes-jcMPIFy3.js +0 -1
- package/dist/client/assets/kbd-Dxm5Elqj.js +0 -1
- package/dist/client/assets/layers-Dqez1Uq8.js +0 -1
- package/dist/client/assets/liquidGlass-CA2o_Cq0.js +0 -1
- package/dist/client/assets/liquidGlass.worker-icvLJKHf.js +0 -1
- package/dist/client/assets/main-BqSANuAs.css +0 -2
- package/dist/client/assets/main-DAbEANjY.js +0 -9
- package/dist/client/assets/motion-BdscFixQ.js +0 -1
- package/dist/client/assets/palette-92ylWqeC.js +0 -1
- package/dist/client/assets/perfInstrumentation-BT27w4tn.js +0 -1
- package/dist/client/assets/presentationTier-xlIjcFab.js +0 -1
- package/dist/client/assets/primary-DZjgHvyf.js +0 -5
- package/dist/client/assets/providerDriverMeta-T2YbXzuS.js +0 -1
- package/dist/client/assets/providerStatus-DBGvvkyF.js +0 -1
- package/dist/client/assets/radio-group-CRnHYWa8.js +0 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-DxU7Mt1k.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BYAPVjRd.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-BOqgR_X7.js +0 -1
- package/dist/client/assets/runtime-BwHA1GUS.js +0 -18
- package/dist/client/assets/scroll-area-7n2X_RLQ.js +0 -1
- package/dist/client/assets/separator-CL1qjMqJ.js +0 -1
- package/dist/client/assets/settingsLayout-DxsFwhF0.js +0 -1
- package/dist/client/assets/sheet-CGiaw8-i.js +0 -1
- package/dist/client/assets/sidebar-Cc6ANbOP.js +0 -1
- package/dist/client/assets/sidebarProjectFolders-DO2Uv84F.js +0 -4
- package/dist/client/assets/sidebarStatusText-B4AtFXZo.js +0 -1
- package/dist/client/assets/sidebarUndo-gdSrfa4O.js +0 -1
- package/dist/client/assets/square-Cr9X8U6y.js +0 -1
- package/dist/client/assets/src-C3Y_imaX.js +0 -14
- package/dist/client/assets/stateDiagram-v2-UEYNNEHI-CWtHILqh.js +0 -1
- package/dist/client/assets/storeSelectors-CTDWheMy.js +0 -1
- package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-DuaPce9O.js +0 -8
- package/dist/client/assets/switch-DnpJB2xv.js +0 -48
- package/dist/client/assets/toggle-D10FsFoE.js +0 -1
- package/dist/client/assets/toggle-group-BhzbQPEQ.js +0 -1
- package/dist/client/assets/tooltip-BlweKBxc.js +0 -1
- package/dist/client/assets/usage-BBwaxMif.js +0 -1
- package/dist/client/assets/useAppSidebarCollapsed-CFy476E3.js +0 -1
- package/dist/client/assets/useAppearancePreference-Dlh9P8iu.js +0 -1
- package/dist/client/assets/useBaseUiId-DKOjzmu3.js +0 -1
- package/dist/client/assets/useLabelableId-DQbY2GG1.js +0 -1
- package/dist/client/assets/useNavigate-B8oXtF30.js +0 -1
- package/dist/client/assets/usePhoneThreadActions-6DCLiyJ5.js +0 -1
- package/dist/client/assets/usePopupViewport-CNWcP7Od.js +0 -1
- package/dist/client/assets/usePresentationTier-hxB7Yv_Q.js +0 -1
- package/dist/client/assets/useScrollLock-BbKeKZdj.js +0 -1
- package/dist/client/assets/useTriggerFocusGuards-BC4Wb3GI.js +0 -1
- package/dist/client/assets/useValueChanged-BkTbyZdO.js +0 -1
- package/dist/client/assets/workspaceMetadataProjection-aqZEXDrQ.js +0 -1
- package/dist/collectUint8StreamText-BAUF-vzz.mjs +0 -37
- package/dist/collectUint8StreamText-vagpNUMJ.cjs +0 -42
- package/dist/git-9xWsJYIH.mjs +0 -132
- package/dist/git-xIkXFy_l.cjs +0 -218
- package/dist/sourceControl-B0D1Op29.cjs +0 -253
- package/dist/sourceControl-BiEBxN01.mjs +0 -224
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{an as t,ln as n,q as r}from"./primary-Cf-xJExj.js";import{Fa as i,Ga as a,Ho as o,Nc as s,Pi as c,Pt as l,_ as u,_o as d,b as f,g as p,h as m,jc as h,kc as g,qa as _,v,yc as y}from"./wsTransport-C88seBPA.js";import{$i as b,Bi as x,Bu as S,Gi as C,Qr as w,S as T,Tr as E,Wt as ee,Xi as te,Zi as D,Zr as ne,_a as re,ad as ie,bd as ae,ga as oe,gr as se,gs as ce,hs as le,ii as ue,la as de,na as O,p as fe,ud as pe,va as me,wr as he,ws as k,y as ge,ys as _e}from"./runtime-DjjjAcTE.js";import{t as ve}from"./react-CwJFpaho.js";import{At as ye,B as be,H as xe,Mt as Se,Q as Ce,St as we,V as Te,X as Ee,Z as De,et as Oe,gt as ke,j as A,k as Ae,nt as je,t as Me,tt as Ne,y as Pe}from"./sliding-tabs-BnDSjRU3.js";import{A as Fe,D as Ie,M as Le,N as Re,P as ze,Q as Be,Z as Ve,a as He,j as Ue,k as We,r as Ge,t as Ke}from"./popover-OWEv6cQz.js";import{i as qe}from"./presentationTier-DPVAxTK4.js";import{a as Je,r as Ye,t as Xe}from"./tooltip-DbqhseXd.js";import{n as Ze,t as Qe}from"./external-link-CJeVJZ7s.js";import{t as $e}from"./circle-x-CNLfrTqR.js";import{t as et}from"./clock-3-DmJ4_XPI.js";import{C as tt,S as nt,g as rt,h as it,m as at,x as ot,y as st}from"./workspaceLifecycle-OJ1aKksw.js";import{i as ct}from"./capabilities-CfOhq009.js";import{t as j}from"./toastHelpers-CSQRKo4F.js";import{t as lt}from"./shallow-B--PNURq.js";import{t as M}from"./input-CCie4mm1.js";import{a as ut,c as dt,i as ft,o as pt,s as mt,t as ht}from"./select-Cb9FUPHD.js";import{t as gt}from"./spinner-lHRJWsym.js";import{t as _t}from"./textarea-VyiIZ0wQ.js";import{a as vt,g as yt,h as bt,m as xt,o as St,p as Ct,r as wt,t as Tt}from"./useAtlassian-BYDCc9lv.js";import{t as Et}from"./label-ChtVI9lp.js";import{Ut as Dt}from"./main-Ch0bwS-M.js";var Ot={name:`circle-pause`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]],aliases:[`pause-circle`]};Ot.node;var kt=k(Ot),At={name:`flag`,size:24,node:[[`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`,key:`1jaruq`}]]};At.node;var jt=k(At),Mt={name:`git-fork`,size:24,node:[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]]};Mt.node;var Nt=k(Mt),Pt={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};Pt.node;var Ft=k(Pt),It={name:`skip-forward`,size:24,node:[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]};It.node;var Lt=k(It),Rt=S(),N=e(ve(),1),zt=(0,N.createContext)(null);function Bt(){return(0,N.useContext)(zt)?.defaultOptions??{}}function Vt(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=Ht(e);if(n.length!==Ht(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function Ht(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function Ut(e,t){return e===t}function Wt(e,t=e=>e,n){let r=n?.compare??Ut,i=(0,N.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,N.useCallback)(()=>e.get(),[e]);return(0,Rt.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Gt(e,t,n=()=>({})){let r={...Bt().debouncer,...t},[i]=(0,N.useState)(()=>{let t=new oe(e,r);return t.Subscribe=function(e){let n=Wt(t.store,e.selector,{compare:Vt});return typeof e.children==`function`?e.children(n):e.children},t});i.fn=e,i.setOptions(r),(0,N.useEffect)(()=>()=>{r.onUnmount?r.onUnmount(i):i.cancel()},[]);let a=Wt(i.store,n,{compare:Vt});return(0,N.useMemo)(()=>({...i,state:a}),[i,a])}function Kt(e,t,n){let[r,i]=(0,N.useState)(e),a=Gt(i,t,n);return[r,a.maybeExecute,a]}function qt(e,t,n){let[r,i,a]=Kt(e,t,n);return(0,N.useEffect)(()=>{i(e)},[e,i]),[r,a]}var Jt=`/pull-requests`;function Yt(e){return{to:Jt,search:e?{env:e.environmentId,project:e.projectId}:{}}}function Xt(e){return{to:Jt,search:{env:e.environmentId,project:e.projectId,pr:e.number,...e.tab&&e.tab!==`conversation`?{tab:e.tab}:{}}}}function Zt(e){return e.metaKey||e.ctrlKey||e.button===1}function Qt(e,t){t&&!Zt(e)&&(e.preventDefault(),t())}var P=qe(),F=ie(),$t=(0,N.memo)(function(e){let t=(0,P.c)(13),n,r,i,a;if(t[0]!==e.className||t[1]!==e.iconOnly||t[2]!==e.kind){a=Symbol.for(`react.early_return_sentinel`);bb0:{let t=en(e.kind);if(n=t.Icon,r=t.label??tn(e.kind),e.iconOnly){a=(0,F.jsx)(`span`,{"aria-label":r,title:r,className:b(`inline-flex items-center justify-center rounded-full`,t.badgeClassName,`bg-transparent p-0`,e.className),children:(0,F.jsx)(n,{className:`size-3.5`})});break bb0}i=b(`inline-flex items-center gap-1 rounded-full px-2 py-0.5 font-medium text-xs`,t.badgeClassName,e.className)}t[0]=e.className,t[1]=e.iconOnly,t[2]=e.kind,t[3]=n,t[4]=r,t[5]=i,t[6]=a}else n=t[3],r=t[4],i=t[5],a=t[6];if(a!==Symbol.for(`react.early_return_sentinel`))return a;let o;t[7]===n?o=t[8]:(o=(0,F.jsx)(n,{className:`size-3`}),t[7]=n,t[8]=o);let s;return t[9]!==r||t[10]!==i||t[11]!==o?(s=(0,F.jsxs)(`span`,{className:i,children:[o,r]}),t[9]=r,t[10]=i,t[11]=o,t[12]=s):s=t[12],s});function en(e){switch(e){case`issue-open`:return A({kind:`issue`,state:`open`});case`issue-closed`:return A({kind:`issue`,state:`closed`});case`issue-unknown`:return A({kind:`issue`,state:null});case`pr-open`:return A({kind:`pr`,state:`open`,isDraft:!1});case`pr-draft`:return A({kind:`pr`,state:`open`,isDraft:!0});case`pr-merged`:return A({kind:`pr`,state:`merged`});case`pr-closed`:return A({kind:`pr`,state:`closed`});case`pr-unknown`:return A({kind:`pr`,state:null})}}function tn(e){return e.startsWith(`issue`)?`Issue`:`PR`}var nn=/^[0-9a-fA-F]{6}$/;function rn(e){if(!e)return null;let t=e.replace(/^#/,``).trim();return nn.test(t)?{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}:null}function an(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function on({r:e,g:t,b:n}){return .2126*an(e)+.7152*an(t)+.0722*an(n)}function sn(e){let t=on(e);if(t>=.4)return e;let n=Math.min(.7,(.4-t)*1.6);return{r:Math.round(e.r+(255-e.r)*n),g:Math.round(e.g+(255-e.g)*n),b:Math.round(e.b+(255-e.b)*n)}}var cn=(0,N.memo)(function(e){let t=(0,P.c)(16),n;t[0]===e.label?n=t[1]:(n=typeof e.label==`string`?{name:e.label}:e.label,t[0]=e.label,t[1]=n);let r=n,i;if(t[2]!==r.color){bb0:{let e=rn(r.color);if(e===null){i=null;break bb0}let n=sn(e),a=`rgba(${e.r}, ${e.g}, ${e.b}, 0.12)`,o=`rgba(${e.r}, ${e.g}, ${e.b}, 0.35)`,s=`rgb(${n.r}, ${n.g}, ${n.b})`,c;t[4]!==a||t[5]!==o||t[6]!==s?(c={backgroundColor:a,borderColor:o,color:s},t[4]=a,t[5]=o,t[6]=s,t[7]=c):c=t[7],i=c}t[2]=r.color,t[3]=i}else i=t[3];let a=i,o=a===null?`border-border/60 bg-muted/40 text-muted-foreground`:null,s;t[8]!==e.className||t[9]!==o?(s=b(`inline-flex items-center rounded-full border px-1.5 py-0.5 font-medium text-[10px]`,o,e.className),t[8]=e.className,t[9]=o,t[10]=s):s=t[10];let c=a??void 0,l=r.description??r.name,u;return t[11]!==r.name||t[12]!==s||t[13]!==c||t[14]!==l?(u=(0,F.jsx)(`span`,{className:s,style:c,title:l,children:r.name}),t[11]=r.name,t[12]=s,t[13]=c,t[14]=l,t[15]=u):u=t[15],u});function ln(e){let t=(0,P.c)(11),n;if(t[0]!==e.className||t[1]!==e.icon){n=Symbol.for(`react.early_return_sentinel`);bb0:{let r=b(`size-3.5 shrink-0`,e.className);switch(e.icon){case`check`:n=(0,F.jsx)(_e,{className:r});break bb0;case`clock`:n=(0,F.jsx)(et,{className:r});break bb0;case`error`:n=(0,F.jsx)(le,{className:r});break bb0;case`loader`:n=(0,F.jsx)(ce,{className:b(r,`animate-spin`)});break bb0;case`pause`:{let e;t[3]===r?e=t[4]:(e=(0,F.jsx)(kt,{className:r}),t[3]=r,t[4]=e),n=e;break bb0}case`skip`:{let e;t[5]===r?e=t[6]:(e=(0,F.jsx)(Lt,{className:r}),t[5]=r,t[6]=e),n=e;break bb0}case`unavailable`:{let e;t[7]===r?e=t[8]:(e=(0,F.jsx)(Ze,{className:r}),t[7]=r,t[8]=e),n=e;break bb0}case`x`:{let e;t[9]===r?e=t[10]:(e=(0,F.jsx)($e,{className:r}),t[9]=r,t[10]=e),n=e;break bb0}}}t[0]=e.className,t[1]=e.icon,t[2]=n}else n=t[2];if(n!==Symbol.for(`react.early_return_sentinel`))return n}function un(e){let t=(0,P.c)(32),n=e.mode??`full`,r=n===`compact`?e.view.shortLabel:e.view.label,i,a,o,s;if(t[0]!==r||t[1]!==n||t[2]!==e.className||t[3]!==e.onClick||t[4]!==e.title||t[5]!==e.view.ariaLabel||t[6]!==e.view.className||t[7]!==e.view.icon||t[8]!==e.view.iconClassName||t[9]!==e.view.label){o=Symbol.for(`react.early_return_sentinel`);bb0:{a=b(`inline-flex shrink-0 items-center rounded-md border font-medium leading-none`,n===`icon`?`size-6 justify-center p-0`:`gap-1 px-1.5 py-0.5 text-[11px]`,e.view.className,e.className),s=e.title??e.view.ariaLabel;let c;t[14]!==e.view.icon||t[15]!==e.view.iconClassName?(c=(0,F.jsx)(ln,{icon:e.view.icon,className:e.view.iconClassName}),t[14]=e.view.icon,t[15]=e.view.iconClassName,t[16]=c):c=t[16];let l;t[17]!==r||t[18]!==n||t[19]!==e.view.label?(l=n===`icon`?(0,F.jsx)(`span`,{className:`sr-only`,children:e.view.label}):r,t[17]=r,t[18]=n,t[19]=e.view.label,t[20]=l):l=t[20];let u;if(t[21]!==c||t[22]!==l?(u=(0,F.jsxs)(F.Fragment,{children:[c,l]}),t[21]=c,t[22]=l,t[23]=u):u=t[23],i=u,e.onClick){let n={type:`button`,className:b(a,`cursor-pointer transition-colors hover:brightness-95`),"aria-label":e.view.ariaLabel,title:s,onClick:e.onClick},r;t[24]!==n||t[25]!==i?(r=(0,F.jsx)(`button`,{...n,children:i}),t[24]=n,t[25]=i,t[26]=r):r=t[26],o=r;break bb0}}t[0]=r,t[1]=n,t[2]=e.className,t[3]=e.onClick,t[4]=e.title,t[5]=e.view.ariaLabel,t[6]=e.view.className,t[7]=e.view.icon,t[8]=e.view.iconClassName,t[9]=e.view.label,t[10]=i,t[11]=a,t[12]=o,t[13]=s}else i=t[10],a=t[11],o=t[12],s=t[13];if(o!==Symbol.for(`react.early_return_sentinel`))return o;let c;return t[27]!==i||t[28]!==a||t[29]!==e.view.ariaLabel||t[30]!==s?(c=(0,F.jsx)(`span`,{className:a,"aria-label":e.view.ariaLabel,title:s,children:i}),t[27]=i,t[28]=a,t[29]=e.view.ariaLabel,t[30]=s,t[31]=c):c=t[31],c}var I={neutral:{className:`border-border bg-muted/30 text-muted-foreground`,dotClassName:`bg-muted-foreground/55`,iconClassName:`text-muted-foreground`},pending:{className:`border-amber-500/30 bg-amber-500/8 text-amber-700 dark:text-amber-300`,dotClassName:`bg-amber-500`,iconClassName:`text-amber-600 dark:text-amber-300`},running:{className:`border-sky-500/30 bg-sky-500/8 text-sky-700 dark:text-sky-300`,dotClassName:`bg-sky-500`,iconClassName:`text-sky-600 dark:text-sky-300`},success:{className:`border-emerald-500/30 bg-emerald-500/8 text-emerald-700 dark:text-emerald-300`,dotClassName:`bg-emerald-500`,iconClassName:`text-emerald-600 dark:text-emerald-300`},failure:{className:`border-rose-500/35 bg-rose-500/10 text-rose-700 dark:text-rose-300`,dotClassName:`bg-rose-500`,iconClassName:`text-rose-600 dark:text-rose-300`},cancelled:{className:`border-zinc-500/30 bg-zinc-500/8 text-zinc-700 dark:text-zinc-300`,dotClassName:`bg-zinc-500`,iconClassName:`text-zinc-600 dark:text-zinc-300`},error:{className:`border-destructive/30 bg-destructive/8 text-destructive`,dotClassName:`bg-destructive`,iconClassName:`text-destructive`}};function L(e){return typeof e==`object`&&e&&`_tag`in e&&(e._tag===`Some`||e._tag===`None`)?g(e):e??null}function dn(e){return L(e)}function fn(e){return e?.trim().toLowerCase().replaceAll(`_`,` `).replaceAll(`-`,` `)??``}function pn(e){return[`action required`,`error`,`failure`,`failed`,`startup failure`,`timed out`,`timeout`].includes(e)}function mn(e){return[`cancelled`,`canceled`,`stale`].includes(e)}function hn(e){return[`expected`,`pending`,`queued`,`requested`,`waiting`].includes(e)}function gn(e){return[`in progress`,`running`].includes(e)}function _n(e){return[`completed successfully`,`neutral`,`passed`,`skipped`,`success`,`successful`].includes(e)}function vn(e){let t=fn(e.conclusion),n=fn(e.status);return pn(t)||pn(n)?`failed`:mn(t)||mn(n)?`cancelled`:gn(n)?`running`:hn(n)?`pending`:_n(t)||_n(n)?`passed`:`unavailable`}function yn(e){switch(e){case`loading`:return{kind:e,tone:`running`,icon:`loader`,label:`Loading checks`,shortLabel:`loading`,description:`Check status is loading.`,...I.running,isTerminal:!1,isRefreshable:!0};case`pending`:return{kind:e,tone:`pending`,icon:`clock`,label:`Checks pending`,shortLabel:`pending`,description:`Checks are queued or waiting to start.`,...I.pending,isTerminal:!1,isRefreshable:!0};case`running`:return{kind:e,tone:`running`,icon:`loader`,label:`Checks running`,shortLabel:`running`,description:`Checks are currently running.`,...I.running,isTerminal:!1,isRefreshable:!0};case`passed`:return{kind:e,tone:`success`,icon:`check`,label:`All checks passed`,shortLabel:`passed`,description:`Every reported check passed.`,...I.success,isTerminal:!0,isRefreshable:!1};case`failed`:return{kind:e,tone:`failure`,icon:`x`,label:`Checks failed`,shortLabel:`failed`,description:`One or more checks failed.`,...I.failure,isTerminal:!0,isRefreshable:!1};case`cancelled`:return{kind:e,tone:`cancelled`,icon:`skip`,label:`Checks cancelled/skipped`,shortLabel:`cancelled`,description:`Checks completed without all required jobs passing.`,...I.cancelled,isTerminal:!0,isRefreshable:!1};case`api-error`:return{kind:e,tone:`error`,icon:`error`,label:`Checks unavailable`,shortLabel:`API error`,description:`Ryco could not load check status from the provider.`,...I.error,isTerminal:!1,isRefreshable:!0};case`unavailable`:return{kind:e,tone:`neutral`,icon:`unavailable`,label:`Checks unavailable`,shortLabel:`unavailable`,description:`No check status is available for this pull request.`,...I.neutral,isTerminal:!1,isRefreshable:!1}}}function R(e){let t=e.failedChecks??[],n=yn(e.kind),r=t.length>0?` Failed: ${t.slice(0,3).map(e=>e.workflowName?`${e.workflowName} / ${e.name}`:e.name).join(`, `)}${t.length>3?`, ...`:``}.`:``,i=e.description??`${n.description}${r}`;return{...n,description:i,ariaLabel:`${n.label}. ${i}`,failedChecks:t,...e.headSha?{headSha:e.headSha}:{}}}function bn(e){return e.filter(e=>vn({status:e.status,conclusion:e.conclusion})===`failed`).map(e=>{let t={name:e.name};return e.workflowName&&(t.workflowName=e.workflowName),e.url&&(t.url=e.url),t})}function xn(e){if(!e.checks||e.checks.length===0)return R({kind:`unavailable`,headSha:e.headSha,description:e.unavailableDescription});let t=e.checks.map(e=>vn({status:e.status,conclusion:e.conclusion})),n=bn(e.checks);return t.includes(`failed`)?R({kind:`failed`,failedChecks:n,headSha:e.headSha}):t.includes(`running`)?R({kind:`running`,headSha:e.headSha}):t.includes(`pending`)?R({kind:`pending`,headSha:e.headSha}):t.includes(`cancelled`)?R({kind:`cancelled`,headSha:e.headSha}):t.every(e=>e===`passed`)?R({kind:`passed`,headSha:e.headSha}):R({kind:`unavailable`,headSha:e.headSha})}function Sn(e){return xn({headSha:e.headSha,checks:e.rollup?.map(e=>({name:e.name,workflowName:e.workflowName,status:L(e.status),conclusion:L(e.conclusion),url:L(e.url)})),unavailableDescription:e.rollup&&e.rollup.length===0?`No checks have been reported for this pull request head commit.`:void 0})}function z(e){return Sn({rollup:e.checkRollup,headSha:e.headSha})}function Cn(e){let t=e.checkRollup;if(!t||t.length===0)return null;let n=new Map,r=t.map(e=>{let t=`${e.workflowName??``}/${e.name}`,r=(n.get(t)??0)+1;return n.set(t,r),{id:`${t}#${r}`,kind:vn({status:L(e.status),conclusion:L(e.conclusion)})}}),i=r.map(e=>e.kind),a=e=>i.filter(e).length;return{view:z(e),items:r,passed:a(e=>e===`passed`),failed:a(e=>e===`failed`),active:a(e=>e===`running`||e===`pending`),total:i.length}}function wn(e){return Tn({headSha:e.commit.oid,name:e.workflowName,workflowName:e.workflowName,status:e.status,conclusion:L(e.conclusion),url:e.url})}function Tn(e){return xn({headSha:e.headSha,checks:[{name:e.name,workflowName:e.workflowName,status:e.status,conclusion:e.conclusion,url:e.url}]})}function En(e){return xn({headSha:e.headSha,checks:e.runs?.map(e=>({name:e.workflowName,workflowName:e.workflowName,status:e.status,conclusion:L(e.conclusion),url:e.url})),unavailableDescription:e.runs&&e.runs.length===0?`No workflow runs were found for this pull request head commit.`:void 0})}function Dn(e){return e.error?R({kind:`api-error`}):e.isLoading&&e.status===null?R({kind:`loading`}):e.status??R({kind:`unavailable`})}function On(e){return e.isRefreshable&&e.kind!==`api-error`}function kn(e){return e.failedChecks.find(e=>e.url)?.url??null}var An=(0,N.memo)(function(e){let t=(0,P.c)(7),n=e.tabs,r=e.activeId,i=e.onSelect,a=e.density===`compact`?`px-1.5 py-1`:`px-3 py-1.5`,o;t[0]===a?o=t[1]:(o=b(`border-border border-b`,a),t[0]=a,t[1]=o);let s;return t[2]!==e.activeId||t[3]!==e.onSelect||t[4]!==e.tabs||t[5]!==o?(s=(0,F.jsx)(Me,{tabs:n,activeId:r,onSelect:i,variant:`pill`,className:o}),t[2]=e.activeId,t[3]=e.onSelect,t[4]=e.tabs,t[5]=o,t[6]=s):s=t[6],s});function jn(e){let t=(0,P.c)(19),n=e.appearance??`badge`,r=`Stack #${e.stack.number}, pull request ${e.stack.position} of ${e.stack.size}`,i=n===`badge`?`rounded-md border border-border/60 bg-muted/45 px-1.5 py-0.5 text-[10px] text-muted-foreground`:`text-xs text-muted-foreground`,a;t[0]!==e.className||t[1]!==i?(a=b(`inline-flex shrink-0 items-center gap-1 font-medium tabular-nums`,i,e.className),t[0]=e.className,t[1]=i,t[2]=a):a=t[2];let o;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(Nt,{className:`size-3`,"aria-hidden":`true`}),t[3]=o):o=t[3];let s;t[4]!==e.stack.position||t[5]!==e.stack.size?(s=(0,F.jsxs)(`span`,{children:[e.stack.position,`/`,e.stack.size]}),t[4]=e.stack.position,t[5]=e.stack.size,t[6]=s):s=t[6];let c;t[7]!==r||t[8]!==a||t[9]!==s?(c=(0,F.jsxs)(`span`,{"aria-label":r,className:a,children:[o,s]}),t[7]=r,t[8]=a,t[9]=s,t[10]=c):c=t[10];let l=c,u;t[11]===l?u=t[12]:(u=(0,F.jsx)(Je,{render:l}),t[11]=l,t[12]=u);let d;t[13]!==e.stack.baseRefName||t[14]!==e.stack.number?(d=(0,F.jsxs)(Ye,{children:[`Stack #`,e.stack.number,` · targets `,e.stack.baseRefName]}),t[13]=e.stack.baseRefName,t[14]=e.stack.number,t[15]=d):d=t[15];let f;return t[16]!==u||t[17]!==d?(f=(0,F.jsxs)(Xe,{children:[u,d]}),t[16]=u,t[17]=d,t[18]=f):f=t[18],f}var Mn=`ryco:pr-check-pass-notifications:v1`,Nn=250,Pn=_({key:a,status:a,updatedAt:a,notifiedAt:d(a)}),Fn=i(Pn);function In(e){let t=e.status.headSha;return!e.environmentId||!e.cwd||!t?null:[e.environmentId,e.cwd,e.provider,e.number,t].join(`|`)}function Ln(){try{return[...re(Mn,Fn)??[]]}catch{return[]}}function Rn(e){try{me(Mn,e.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).slice(0,Nn),Fn)}catch{}}function zn(e){return[`cancelled`,`failed`,`passed`,`pending`,`running`].includes(e.kind)}function Bn(e){let t=e.status.headSha?.slice(0,12);C.add(j({type:`success`,title:`Checks passed for PR #${e.number}`,description:t?`${e.title} · ${t}`:e.title,timeout:6e3,...e.url?{actionProps:{children:`Open PR`,onClick:()=>window.open(e.url,`_blank`,`noopener,noreferrer`)},actionVariant:`outline`}:{}}))}function Vn(e){let t=(0,P.c)(3),n,r;t[0]===e?(n=t[1],r=t[2]):(n=()=>{if(e.length===0)return;let t=Ln(),n=new Map(t.map(Hn)),r=!1;for(let t of e){if(!zn(t.status))continue;let e=In(t);if(!e)continue;let i=new Date().toISOString(),a=n.get(e);if(t.status.kind===`passed`){if(a?.status===`passed`)continue;let o=a!==void 0&&a.status!==`passed`&&a.notifiedAt===void 0,s={key:e,status:`passed`,updatedAt:i,...a?.notifiedAt?{notifiedAt:a.notifiedAt}:{},...o?{notifiedAt:i}:{}};n.set(e,s),r=!0,o&&Bn(t);continue}a?.status!==t.status.kind&&(n.set(e,{key:e,status:t.status.kind,updatedAt:i,...a?.notifiedAt?{notifiedAt:a.notifiedAt}:{}}),r=!0)}r&&Rn(Array.from(n.values()))},r=[e],t[0]=e,t[1]=n,t[2]=r),(0,N.useEffect)(n,r)}function Hn(e){return[e.key,e]}function Un(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Wn(e){return e.trim().toUpperCase()}function Gn(e,t){let n=Wn(e);return n.length!==0&&RegExp(`(?:^|[^A-Z0-9])${Un(n)}(?=$|[^A-Z0-9])`,`i`).test(t)}function Kn(e){return e.refs.filter(t=>Gn(e.key,t.name))}function qn(e){let t=Wn(e.key),n=new Map;for(let r of e.worktrees)(r.workItemProvider===`jira`&&r.workItemKey!==null&&Wn(r.workItemKey)===t||Gn(t,r.branch))&&n.set(r.id,{id:r.id,branch:r.branch,title:r.title??r.workItemTitle??null,worktreePath:r.worktreePath,archivedAt:r.archivedAt});return Array.from(n.values()).toSorted((e,t)=>e.archivedAt===null&&t.archivedAt!==null?-1:e.archivedAt!==null&&t.archivedAt===null?1:e.branch.localeCompare(t.branch))}function Jn(e){let t=new Map(e.worktrees.map(e=>[e.branch,e]));return e.branches.map(e=>{let n=t.get(e.name);return{branchName:e.name,label:e.name,description:n?n.worktreePath??`Already checked out in a worktree`:e.worktreePath?e.worktreePath:e.isRemote?e.remoteName??`Remote branch`:`Local branch`,hasWorktree:n!==void 0||e.worktreePath!==null}})}function Yn(e){let t=e.link,n=t?.jiraProjectKeys[0]?.trim().toUpperCase();if(!t||!t.jiraConnectionId||!n)return null;let r=e.connections?.find(e=>e.connectionId===t.jiraConnectionId),i=Xn(t.jiraSiteUrl??r?.baseUrl??``);return i?`${i}/jira/software/projects/${encodeURIComponent(n)}`:null}function Xn(e){return e.trim().replace(/\/+$/u,``)}function Zn(e){switch(e){case`open`:return`Open`;case`in_progress`:return`In progress`;case`done`:return`Done`;case`closed`:return`Closed`;case`unknown`:return`Unknown`}}function Qn(e){return e.stateName?.trim()||Zn(e.state)}function $n(e){switch(e){case`github`:return`GitHub`;case`gitlab`:return`GitLab`;case`forgejo`:return`Forgejo`;case`azure-devops`:return`Azure DevOps`;case`bitbucket`:return`Bitbucket`;default:return`Remote`}}function er(e){switch(e){case`github`:return ot;case`gitlab`:return tt;case`forgejo`:return st;case`azure-devops`:return it;case`bitbucket`:return rt;default:return nt}}function tr(e){return e.replace(/\/+$/g,``).replace(/\.git$/i,``)}function nr(e,t){if(e!==`ssh.dev.azure.com`)return null;let n=t.indexOf(`v3`);if(n===-1||t.length<n+4)return null;let r=t[n+1],i=t[n+2],a=t[n+3];return!r||!i||!a?null:`https://dev.azure.com/${r}/${i}/_git/${a}`}function rr(e){let t=e.trim();if(t.length===0)return null;if(/^https?:\/\//i.test(t))try{let e=new URL(t);return e.pathname=tr(e.pathname),e.search=``,e.hash=``,e.toString()}catch{return null}if(/^(?:ssh|git):\/\//i.test(t))try{let e=new URL(t),n=tr(e.pathname).split(`/`).filter(e=>e.length>0),r=nr(e.hostname,n);if(r)return r;let i=n.join(`/`);return e.hostname&&i?`https://${e.hostname}/${i}`:null}catch{return null}let n=/^git@([^:/\s]+)[:/]([^#?\s]+)$/i.exec(t);if(n?.[1]&&n[2]){let e=n[1],t=tr(n[2]);return nr(e,t.split(`/`).filter(e=>e.length>0))||`https://${e}/${t}`}return null}function ir(e,t){if(!e)return null;let n=(()=>{if(t){let n=(e.remotes??[]).find(e=>e.name===t);if(n)return{url:n.url,label:n.ownerRepo??n.url,provider:n.provider??void 0}}return{url:e.locator.remoteUrl,label:e.displayName??e.canonicalKey,provider:e.provider??void 0}})(),r=rr(n.url);return r?{url:r,label:n.label,provider:n.provider,providerLabel:$n(n.provider)}:null}function ar(){let e=(0,P.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={onCopy:lr,onError:cr},e[0]=t):t=e[0];let{copyToClipboard:n}=te(t),r;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r={onCopy:sr,onError:or},e[1]=r):r=e[1];let{copyToClipboard:i}=te(r),a;return e[2]!==i||e[3]!==n?(a={copyThreadIdToClipboard:n,copyPathToClipboard:i},e[2]=i,e[3]=n,e[4]=a):a=e[4],a}function or(e){C.add(j({type:`error`,title:`Failed to copy path`,description:e instanceof Error?e.message:`An error occurred.`}))}function sr(e){C.add({type:`success`,title:`Path copied`,description:e.path})}function cr(e){C.add(j({type:`error`,title:`Failed to copy thread ID`,description:e instanceof Error?e.message:`An error occurred.`}))}function lr(e){C.add({type:`success`,title:`Thread ID copied`,description:e.threadId})}function ur(e){let t=ne(e);if(!t)throw Error(`Project API unavailable.`);return t}async function dr(e,t){await ur(e.environmentId).orchestration.dispatchCommand({type:`project.meta.update`,commandId:O(),projectId:e.id,...t.title===void 0?{}:{title:t.title},...t.workspaceRoot===void 0?{}:{workspaceRoot:t.workspaceRoot},...t.customSystemPrompt===void 0?{}:{customSystemPrompt:t.customSystemPrompt},...t.preferredRemoteName===void 0?{}:{preferredRemoteName:t.preferredRemoteName},...t.scripts===void 0?{}:{scripts:[...t.scripts]}})}var fr=`Project image upload is unavailable in hosted mode because node HTTP routes are not relayed.`;function pr(){return r()?fr:null}async function mr(e,t){let n=pr();if(n)throw Error(n);let r=ur(e.environmentId),i=ue({environmentId:e.environmentId,pathname:`/api/project-avatar/upload`,searchParams:{projectId:e.id}}),a=new FormData;a.append(`avatar`,t);let o=await fetch(i,{method:`POST`,body:a,credentials:`include`});if(!o.ok){let e=await o.text().catch(()=>``);throw Error(e||`Upload failed: ${o.status}`)}let{contentHash:s}=await o.json();return await r.orchestration.dispatchCommand({type:`project.avatar.set`,commandId:O(),projectId:e.id,contentHash:s}),s}async function hr(e){await ur(e.environmentId).orchestration.dispatchCommand({type:`project.avatar.set`,commandId:O(),projectId:e.id,contentHash:null})}function gr(e,t){let n=t===void 0?ir(e.repositoryIdentity,e.preferredRemoteName)?.url??null:rr((e.repositoryIdentity?.remotes??[]).find(e=>e.name===t)?.url??``);if(!n){C.add({type:`warning`,title:`No remote link available`});return}Pe(n,`Unable to open remote repository`)}async function _r(e,n={}){let r=t(e.environmentId,e.id),i=de.getState(),a=i.getDraftThreadByProjectRef(r);a&&i.clearDraftThread(a.draftId),i.clearProjectDraftThreadId(r),await ur(e.environmentId).orchestration.dispatchCommand({type:`project.delete`,commandId:O(),projectId:e.id,...n.force===!0?{force:!0}:{}})}function vr(e){let t=`${e.threadCount} thread${e.threadCount===1?``:`s`}`;return{title:e.threadCount>0?`Remove project "${e.name}" and delete its ${t}?`:`Remove project "${e.name}"?`,lines:[`Path: ${e.cwd}`,...e.environmentLabel?[`Environment: ${e.environmentLabel}`]:[],...e.threadCount>0?[`This permanently clears conversation history for those threads.`]:[],`This removes only this project entry.`,...e.threadCount>0?[`This action cannot be undone.`]:[]]}}function yr(e,t){return e?.[T(t)]??`inherit`}function br(e,t,n){let r=T(t),i={...e};return n===`inherit`?delete i[r]:i[r]=n,i}async function xr(e,t){let n=ne(e.environmentId);if(!n)throw Error(`This device is not connected.`);await n.orchestration.dispatchCommand({type:`thread.meta.update`,commandId:O(),threadId:e.threadId,title:t})}function Sr(e,t){let n=t.trim().toLowerCase();if(n.length===0)return e;let r=e.flatMap(e=>{let t=e.title.toLowerCase(),r=String(e.number);return r===n||r.startsWith(n)?[{item:e,score:0}]:t.startsWith(n)?[{item:e,score:1}]:t.includes(n)?[{item:e,score:2}]:[]});return r.sort((e,t)=>e.score-t.score||e.item.title.length-t.item.title.length),r.map(e=>e.item)}var Cr=[{prefix:`jira`,scope:`jira`},{prefix:`pr`,scope:`prs`},{prefix:`i`,scope:`issues`}];function wr(e){for(let{prefix:t,scope:n}of Cr){if(e===t)return{scope:n,search:``};if(e.length>t.length&&e.startsWith(t)){let r=e.charAt(t.length);if(r===` `||r===` `)return{scope:n,search:e.slice(t.length).replace(/^\s+/,``)}}}return{scope:`mixed`,search:e}}function Tr(e){let t=(0,P.c)(38),[n,r]=(0,N.useState)(``),i,a,o,s,c,l,u,d,f;if(t[0]!==e||t[1]!==n){let p=n.toLowerCase(),m=e.available.filter(e=>e.login.toLowerCase().includes(p)||(e.displayName?.toLowerCase().includes(p)??!1)),h;t[11]===e?h=t[12]:(h=t=>{let n=e.selected.includes(t);e.onChange(n?e.selected.filter(e=>e!==t):[...e.selected,t])},t[11]=e,t[12]=h);let g=h;if(d=`flex flex-wrap items-center gap-1.5`,t[13]!==e.selected||t[14]!==g){let n;t[16]===g?n=t[17]:(n=e=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(e),className:`rounded-full border border-border bg-muted/50 px-2 py-0.5 text-xs`,children:[`@`,e]},e),t[16]=g,t[17]=n),f=e.selected.map(n),t[13]=e.selected,t[14]=g,t[15]=f}else f=t[15];a=Ke,t[18]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,F.jsx)(He,{className:`rounded-full border border-border border-dashed px-2 py-0.5 text-muted-foreground text-xs`,children:`+ assign`}),t[18]=u):u=t[18],i=Ge,c=`w-64 p-0`;let _;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>r(e.target.value),t[19]=_):_=t[19],t[20]===n?l=t[21]:(l=(0,F.jsx)(M,{value:n,onChange:_,placeholder:`Filter people…`,className:`m-2 h-8 text-sm`}),t[20]=n,t[21]=l),o=`max-h-60 overflow-y-auto`,s=e.isLoading?(0,F.jsx)(`p`,{className:`px-3 py-2 text-muted-foreground text-xs`,children:`Loading assignees…`}):e.error?(0,F.jsxs)(`p`,{className:`px-3 py-2 text-destructive text-xs`,children:[`Failed to load assignees: `,e.error]}):m.length===0?(0,F.jsx)(`p`,{className:`px-3 py-2 text-muted-foreground text-xs`,children:n?`No matching people.`:`No assignable users for this repository.`}):m.map(t=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(t.login),className:`flex w-full items-center justify-between px-3 py-1.5 text-left text-sm hover:bg-muted/60 ${e.selected.includes(t.login)?`bg-muted/80`:``}`,children:[(0,F.jsxs)(`span`,{children:[`@`,t.login,t.displayName?(0,F.jsxs)(`span`,{className:`text-muted-foreground`,children:[` — `,t.displayName]}):null]}),e.selected.includes(t.login)?(0,F.jsx)(`span`,{className:`text-xs`,children:`✓`}):null]},t.login)),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}else 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];let p;t[22]!==o||t[23]!==s?(p=(0,F.jsx)(`div`,{className:o,children:s}),t[22]=o,t[23]=s,t[24]=p):p=t[24];let m;t[25]!==i||t[26]!==c||t[27]!==l||t[28]!==p?(m=(0,F.jsxs)(i,{className:c,children:[l,p]}),t[25]=i,t[26]=c,t[27]=l,t[28]=p,t[29]=m):m=t[29];let h;t[30]!==a||t[31]!==u||t[32]!==m?(h=(0,F.jsxs)(a,{children:[u,m]}),t[30]=a,t[31]=u,t[32]=m,t[33]=h):h=t[33];let g;return t[34]!==d||t[35]!==f||t[36]!==h?(g=(0,F.jsxs)(`div`,{className:d,children:[f,h]}),t[34]=d,t[35]=f,t[36]=h,t[37]=g):g=t[37],g}function Er(e){let t=(0,P.c)(42),[n,r]=(0,N.useState)(``),i,a,o,s,c,l,u,d,f;if(t[0]!==e||t[1]!==n){let p;t[11]===n?p=t[12]:(p=e=>e.name.toLowerCase().includes(n.toLowerCase()),t[11]=n,t[12]=p);let m=e.available.filter(p),h;t[13]===e?h=t[14]:(h=t=>{let n=e.selected.includes(t);e.onChange(n?e.selected.filter(e=>e!==t):[...e.selected,t])},t[13]=e,t[14]=h);let g=h;if(d=`flex flex-wrap items-center gap-1.5`,t[15]!==e.available||t[16]!==e.selected||t[17]!==g){let n;t[19]!==e.available||t[20]!==g?(n=t=>{let n=e.available.find(e=>e.name===t);return(0,F.jsx)(`button`,{type:`button`,onClick:()=>g(t),className:`rounded-full border border-border bg-muted/50 px-2 py-0.5 text-xs`,style:n?.color?{borderColor:`#${n.color}`}:void 0,children:t},t)},t[19]=e.available,t[20]=g,t[21]=n):n=t[21],f=e.selected.map(n),t[15]=e.available,t[16]=e.selected,t[17]=g,t[18]=f}else f=t[18];a=Ke,t[22]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,F.jsx)(He,{className:`rounded-full border border-border border-dashed px-2 py-0.5 text-muted-foreground text-xs`,children:`+ add label`}),t[22]=u):u=t[22],i=Ge,c=`w-64 p-0`;let _;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>r(e.target.value),t[23]=_):_=t[23],t[24]===n?l=t[25]:(l=(0,F.jsx)(M,{value:n,onChange:_,placeholder:`Filter labels…`,className:`m-2 h-8 text-sm`}),t[24]=n,t[25]=l),o=`max-h-60 overflow-y-auto`,s=e.isLoading?(0,F.jsx)(`p`,{className:`px-3 py-2 text-muted-foreground text-xs`,children:`Loading labels…`}):e.error?(0,F.jsxs)(`p`,{className:`px-3 py-2 text-destructive text-xs`,children:[`Failed to load labels: `,e.error]}):m.length===0?(0,F.jsx)(`p`,{className:`px-3 py-2 text-muted-foreground text-xs`,children:n?`No matching labels.`:`No labels defined in this repository.`}):m.map(t=>(0,F.jsxs)(`button`,{type:`button`,onClick:()=>g(t.name),className:`flex w-full items-center justify-between px-3 py-1.5 text-left text-sm hover:bg-muted/60 ${e.selected.includes(t.name)?`bg-muted/80`:``}`,children:[(0,F.jsx)(`span`,{children:t.name}),e.selected.includes(t.name)?(0,F.jsx)(`span`,{className:`text-xs`,children:`✓`}):null]},t.name)),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}else 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];let p;t[26]!==o||t[27]!==s?(p=(0,F.jsx)(`div`,{className:o,children:s}),t[26]=o,t[27]=s,t[28]=p):p=t[28];let m;t[29]!==i||t[30]!==c||t[31]!==l||t[32]!==p?(m=(0,F.jsxs)(i,{className:c,children:[l,p]}),t[29]=i,t[30]=c,t[31]=l,t[32]=p,t[33]=m):m=t[33];let h;t[34]!==a||t[35]!==u||t[36]!==m?(h=(0,F.jsxs)(a,{children:[u,m]}),t[34]=a,t[35]=u,t[36]=m,t[37]=h):h=t[37];let g;return t[38]!==d||t[39]!==f||t[40]!==h?(g=(0,F.jsxs)(`div`,{className:d,children:[f,h]}),t[38]=d,t[39]=f,t[40]=h,t[41]=g):g=t[41],g}var Dr={title:``,body:``,polishInstructions:``,labels:[],assignees:[],worktreeEnabled:!0,worktreeBranchName:null,ai:{polishStatus:`idle`,titleStatus:`idle`,branchStatus:`idle`,lastError:null},submitStatus:`idle`,submitError:null};function Or(e,t){switch(t.type){case`setTitle`:return{...e,title:t.value};case`setBody`:return{...e,body:t.value};case`setPolishInstructions`:return{...e,polishInstructions:t.value};case`setLabels`:return{...e,labels:[...t.labels]};case`setAssignees`:return{...e,assignees:[...t.assignees]};case`setWorktreeEnabled`:return{...e,worktreeEnabled:t.value};case`setWorktreeBranchName`:return{...e,worktreeBranchName:t.value};case`branchGenerated`:return{...e,worktreeBranchName:t.branch,ai:{...e.ai,branchStatus:`idle`}};case`aiPolishStarted`:return{...e,ai:{...e.ai,polishStatus:`running`,lastError:null}};case`aiPolishSucceeded`:return{...e,title:e.title===``&&t.result.title?t.result.title:e.title,body:t.result.body??e.body,ai:{...e.ai,polishStatus:`idle`}};case`aiPolishFailed`:return{...e,ai:{...e.ai,polishStatus:`error`,lastError:t.error}};case`aiTitleStarted`:return{...e,ai:{...e.ai,titleStatus:`running`}};case`aiTitleSucceeded`:return{...e,title:t.result.title??e.title,ai:{...e.ai,titleStatus:`idle`}};case`aiTitleFailed`:return{...e,ai:{...e.ai,titleStatus:`error`,lastError:t.error}};case`aiBranchStarted`:return{...e,ai:{...e.ai,branchStatus:`running`}};case`aiBranchFailed`:return{...e,ai:{...e.ai,branchStatus:`error`,lastError:t.error}};case`submitStarted`:return{...e,submitStatus:`submitting`,submitError:null};case`submitFailed`:return{...e,submitStatus:`error`,submitError:t.error};default:return e}}function kr(e){return!(e.title.trim()===``||e.submitStatus===`submitting`||e.ai.polishStatus===`running`||e.ai.titleStatus===`running`||e.ai.branchStatus===`running`||e.worktreeEnabled&&(!e.worktreeBranchName||e.worktreeBranchName.trim()===``))}function Ar(e){let[t,n]=(0,N.useReducer)(Or,Dr),r=Oe({environmentId:e.environmentId,cwd:e.cwd}),i=Ce({environmentId:e.environmentId,cwd:e.cwd}),a=xe({environmentId:e.environmentId}),o=Te({environmentId:e.environmentId}),s=be({environmentId:e.environmentId});(0,N.useEffect)(()=>{e.open&&t.worktreeEnabled&&t.worktreeBranchName===null&&(t.body.trim().length<10||t.ai.branchStatus===`idle`&&(n({type:`aiBranchStarted`}),o.mutateAsync({cwd:e.cwd,message:`${t.title}\n\n${t.body}`}).then(e=>n({type:`branchGenerated`,branch:e.branch})).catch(e=>n({type:`aiBranchFailed`,error:e instanceof Error?e.message:`Failed to generate branch name.`}))))},[e.open,e.cwd,t.worktreeEnabled,t.worktreeBranchName,t.body,t.title,t.ai.branchStatus,o]);let c=async()=>{n({type:`aiPolishStarted`});try{let r=t.polishInstructions.trim(),i=await a.mutateAsync({cwd:e.cwd,mode:`polish`,rough:t.body,...t.title?{currentTitle:t.title}:{},...r?{customInstructions:r}:{}});n({type:`aiPolishSucceeded`,result:i})}catch(e){n({type:`aiPolishFailed`,error:e instanceof Error?e.message:`Polish failed.`})}},l=async()=>{n({type:`aiTitleStarted`});try{let r=await a.mutateAsync({cwd:e.cwd,mode:`title`,body:t.body});n({type:`aiTitleSucceeded`,result:r})}catch(e){n({type:`aiTitleFailed`,error:e instanceof Error?e.message:`Title suggest failed.`})}},u=async()=>{n({type:`aiBranchStarted`});try{let r=await o.mutateAsync({cwd:e.cwd,message:`${t.title}\n\n${t.body}`});n({type:`branchGenerated`,branch:r.branch})}catch(e){n({type:`aiBranchFailed`,error:e instanceof Error?e.message:`Branch generation failed.`})}},d=async()=>{n({type:`submitStarted`});try{let n=await s.mutateAsync({cwd:e.cwd,title:t.title,body:t.body,...t.labels.length>0?{labels:t.labels}:{},...t.assignees.length>0?{assignees:t.assignees}:{},...t.worktreeEnabled&&t.worktreeBranchName?{worktree:{enabled:!0,branchName:t.worktreeBranchName}}:{}});e.onCreated?.(n.issue.number),e.onOpenChange(!1)}catch(e){n({type:`submitFailed`,error:e instanceof Error?e.message:`Create issue failed.`})}};return(0,F.jsx)(Ie,{open:e.open,onOpenChange:e.onOpenChange,children:(0,F.jsxs)(Re,{className:`flex max-h-[80vh] w-full max-w-2xl flex-col p-0`,children:[(0,F.jsxs)(Ue,{className:`border-border/60 border-b px-5 py-3`,children:[(0,F.jsx)(ze,{className:`text-base`,children:`New issue`}),(0,F.jsx)(We,{className:`text-xs`,children:e.cwd})]}),(0,F.jsxs)(Le,{className:`flex-1 space-y-4 overflow-y-auto px-5 py-4`,children:[(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:[(0,F.jsx)(`span`,{children:`Title`}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>void l(),disabled:t.body.length===0||t.ai.titleStatus===`running`,className:`inline-flex items-center gap-1 text-primary text-xs disabled:opacity-50`,children:[(0,F.jsx)(ct,{className:`size-3`}),t.ai.titleStatus===`running`?`Suggesting…`:`Suggest from body`]})]}),(0,F.jsx)(M,{value:t.title,onChange:e=>n({type:`setTitle`,value:e.target.value}),placeholder:`Short summary`})]}),(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:[(0,F.jsx)(`span`,{children:`Description`}),(0,F.jsxs)(`button`,{type:`button`,onClick:()=>void c(),disabled:t.body.length===0||t.ai.polishStatus===`running`,className:`inline-flex items-center gap-1 text-primary text-xs disabled:opacity-50`,children:[(0,F.jsx)(ct,{className:`size-3`}),t.ai.polishStatus===`running`?`Polishing…`:`Polish with AI`]})]}),(0,F.jsx)(_t,{value:t.body,onChange:e=>n({type:`setBody`,value:e.target.value}),placeholder:`Describe the issue, paste error logs, etc. — rough is fine, AI will polish it.`,className:`min-h-[120px]`}),t.ai.polishStatus===`error`&&t.ai.lastError?(0,F.jsxs)(`p`,{className:`text-destructive text-xs`,children:[`Polish failed: `,t.ai.lastError]}):null,(0,F.jsx)(M,{value:t.polishInstructions,onChange:e=>n({type:`setPolishInstructions`,value:e.target.value}),placeholder:`Polish guidance (optional) — e.g. "make it more detailed", "add use cases"`,className:`mt-2 h-8 text-xs`})]}),(0,F.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsx)(`div`,{className:`font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:`Labels`}),(0,F.jsx)(Er,{available:r.data??[],selected:t.labels,onChange:e=>n({type:`setLabels`,labels:e}),isLoading:r.isLoading,error:r.error instanceof Error?r.error.message:r.error?String(r.error):null})]}),(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsx)(`div`,{className:`font-medium text-muted-foreground text-xs uppercase tracking-wide`,children:`Assignees`}),(0,F.jsx)(Tr,{available:i.data??[],selected:t.assignees,onChange:e=>n({type:`setAssignees`,assignees:e}),isLoading:i.isLoading,error:i.error instanceof Error?i.error.message:i.error?String(i.error):null})]})]}),(0,F.jsxs)(`div`,{className:`rounded-lg border border-border bg-muted/30 p-3`,children:[(0,F.jsxs)(`label`,{className:`flex items-center gap-2 text-sm`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:t.worktreeEnabled,onChange:e=>n({type:`setWorktreeEnabled`,value:e.target.checked})}),`Create worktree on submit`]}),t.worktreeEnabled?(0,F.jsxs)(`div`,{className:`mt-2 flex items-center gap-2`,children:[(0,F.jsx)(M,{value:t.worktreeBranchName??``,onChange:e=>n({type:`setWorktreeBranchName`,value:e.target.value}),placeholder:t.ai.branchStatus===`running`?`Generating…`:`Branch name (auto-suggested)`,className:`font-mono text-xs`}),(0,F.jsx)(D,{type:`button`,size:`icon`,variant:`ghost`,onClick:()=>void u(),disabled:t.body.length===0||t.ai.branchStatus===`running`,"aria-label":`Regenerate branch name`,children:(0,F.jsx)(ye,{className:t.ai.branchStatus===`running`?`size-3.5 animate-spin`:`size-3.5`})})]}):null]}),t.submitError?(0,F.jsx)(`p`,{className:`text-destructive text-sm`,children:t.submitError}):null]}),(0,F.jsxs)(Fe,{className:`border-border/60 border-t px-5 py-3`,children:[(0,F.jsx)(D,{variant:`outline`,onClick:()=>e.onOpenChange(!1),children:`Cancel`}),(0,F.jsx)(D,{disabled:!kr(t),onClick:()=>void d(),children:t.submitStatus===`submitting`?`Creating…`:`Create issue`})]})]})})}var jr=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`short`,day:`numeric`});function Mr(e){return!e||h(e)?``:jr.format(o(e.value))}var Nr=(0,N.memo)(function(e){let t=(0,P.c)(17),n=e.density===`compact`;if(e.isLoading&&e.items.length===0){let e=n?`px-3 py-6`:`px-4 py-8`,r;t[0]===e?r=t[1]:(r=b(`text-center text-muted-foreground text-sm`,e),t[0]=e,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,F.jsx)(`div`,{className:r,children:`Loading…`}),t[2]=r,t[3]=i),i}if(e.items.length===0){let r=n?`px-3 py-6`:`px-4 py-8`,i;t[4]===r?i=t[5]:(i=b(`text-center text-muted-foreground text-sm`,r),t[4]=r,t[5]=i);let a;return t[6]!==e.emptyText||t[7]!==i?(a=(0,F.jsx)(`div`,{className:i,children:e.emptyText}),t[6]=e.emptyText,t[7]=i,t[8]=a):a=t[8],a}if(n){let n;t[9]===e?n=t[10]:(n=e.items.map(t=>{let n=`${t.provider}:${t.number}`,r=e.selectedKey===n;return(0,F.jsx)(`li`,{children:(0,F.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":r,onClick:()=>e.onSelect(t),className:b(`flex w-full items-center gap-2 px-2.5 py-1.5 text-left`,`hover:bg-accent/40 focus-visible:bg-accent/60 focus-visible:outline-none`,r&&`bg-accent/55`),children:[(0,F.jsx)($t,{kind:t.state===`open`?`issue-open`:`issue-closed`,iconOnly:!0,className:`shrink-0`}),(0,F.jsxs)(`span`,{className:`shrink-0 text-muted-foreground text-xs tabular-nums`,children:[`#`,t.number]}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:t.title}),t.author?(0,F.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground/60`,children:t.author}):null,t.updatedAt&&s(t.updatedAt)?(0,F.jsx)(`span`,{className:`shrink-0 text-[11px] text-muted-foreground/60`,children:Mr(t.updatedAt)}):null]})},n)}),t[9]=e,t[10]=n);let r;return t[11]===n?r=t[12]:(r=(0,F.jsx)(`ul`,{role:`listbox`,className:`divide-y divide-border/25`,children:n}),t[11]=n,t[12]=r),r}let r;t[13]===e?r=t[14]:(r=e.items.map(t=>{let n=`${t.provider}:${t.number}`,r=e.selectedKey===n,i=t.labels??[],a=i.slice(0,3),o=i.length-a.length;return(0,F.jsx)(`li`,{children:(0,F.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":r,onClick:()=>e.onSelect(t),className:b(`flex w-full items-start gap-3 px-4 py-3 text-left`,`hover:bg-accent/40 focus-visible:bg-accent/60 focus-visible:outline-none`,r&&`bg-accent/55`),children:[(0,F.jsx)($t,{kind:t.state===`open`?`issue-open`:`issue-closed`,className:`mt-0.5 shrink-0`}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,F.jsxs)(`span`,{className:`text-muted-foreground text-xs`,children:[`#`,t.number]}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-medium text-sm`,children:t.title})]}),(0,F.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-1.5 text-muted-foreground text-xs`,children:[t.author?(0,F.jsxs)(`span`,{children:[`by `,t.author]}):null,a.map(Pr),o>0?(0,F.jsxs)(`span`,{className:`text-[10px]`,children:[`+`,o]}):null,typeof t.commentsCount==`number`&&t.commentsCount>0?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[(0,F.jsx)(Se,{className:`size-3`}),t.commentsCount]}):null,t.updatedAt&&s(t.updatedAt)?(0,F.jsx)(`span`,{className:`ml-auto`,children:Mr(t.updatedAt)}):null]})]})]})},n)}),t[13]=e,t[14]=r);let i;return t[15]===r?i=t[16]:(i=(0,F.jsx)(`ul`,{role:`listbox`,className:`divide-y divide-border/40`,children:r}),t[15]=r,t[16]=i),i});function Pr(e){return(0,F.jsx)(cn,{label:e},e.name)}var Fr=[{id:`open`,label:`Open`},{id:`closed`,label:`Closed`},{id:`all`,label:`All`}],Ir=[{id:`open`,label:`Open`},{id:`merged`,label:`Merged`},{id:`closed`,label:`Closed`},{id:`all`,label:`All`}];function Lr(e){let t=(0,P.c)(19),n=(0,N.useRef)(null),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={width:0,x:0,visible:!1},t[0]=r):r=t[0];let[i,a]=(0,N.useState)(r),o;t[1]===e.value?o=t[2]:(o=()=>{let t=n.current;if(!t)return;let r=t.querySelector(`[data-state-filter-id="${CSS.escape(e.value)}"]`);if(!r){a(Rr);return}a({width:r.offsetWidth,x:r.offsetLeft,visible:!0})},t[1]=e.value,t[2]=o);let s;t[3]!==e.options||t[4]!==e.value?(s=[e.options,e.value],t[3]=e.options,t[4]=e.value,t[5]=s):s=t[5],(0,N.useLayoutEffect)(o,s);let c=i.visible?`opacity-100`:`opacity-0`,l;t[6]===c?l=t[7]:(l=b(`pointer-events-none absolute top-0.5 bottom-0.5 left-0 z-0 rounded bg-background shadow-sm transition-[transform,width,opacity] duration-[240ms] ease-out`,c),t[6]=c,t[7]=l);let u=`translateX(${i.x}px)`,d;t[8]!==i.width||t[9]!==u?(d={width:i.width,transform:u},t[8]=i.width,t[9]=u,t[10]=d):d=t[10];let f;t[11]!==l||t[12]!==d?(f=(0,F.jsx)(`span`,{className:l,style:d,"aria-hidden":!0}),t[11]=l,t[12]=d,t[13]=f):f=t[13];let p;t[14]===e?p=t[15]:(p=e.options.map(t=>(0,F.jsx)(`button`,{type:`button`,onClick:()=>e.onChange(t.id),"aria-pressed":e.value===t.id,"data-state-filter-id":t.id,className:b(`relative z-10 rounded px-2 py-0.5 text-xs transition-colors duration-150`,e.value===t.id?`text-foreground`:`text-muted-foreground hover:text-foreground`),children:t.label},t.id)),t[14]=e,t[15]=p);let m;return t[16]!==f||t[17]!==p?(m=(0,F.jsxs)(`div`,{ref:n,className:`relative isolate flex items-center gap-0.5 rounded-md border border-border/60 bg-muted/40 p-0.5`,children:[f,p]}),t[16]=f,t[17]=p,t[18]=m):m=t[18],m}function Rr(e){return{...e,visible:!1}}var zr=(0,N.memo)(function(e){let t=(0,P.c)(3),n;return t[0]!==e.onChange||t[1]!==e.value?(n=(0,F.jsx)(Lr,{value:e.value,options:Fr,onChange:e.onChange}),t[0]=e.onChange,t[1]=e.value,t[2]=n):n=t[2],n}),Br=(0,N.memo)(function(e){let t=(0,P.c)(3),n;return t[0]!==e.onChange||t[1]!==e.value?(n=(0,F.jsx)(Lr,{value:e.value,options:Ir,onChange:e.onChange}),t[0]=e.onChange,t[1]=e.value,t[2]=n):n=t[2],n});function Vr(e){let[t]=qt(e.query,{wait:200}),[n,r]=(0,N.useState)(!1),i=Ne({environmentId:e.environmentId,cwd:e.cwd,state:e.stateFilter,limit:100}),a=(0,N.useMemo)(()=>i.data??[],[i.data]),o=(0,N.useMemo)(()=>Sr(a,e.query),[a,e.query]),s=o.length===0&&t.trim().length>=2,c=je({environmentId:e.environmentId,cwd:e.cwd,query:t,limit:50,enabled:s}),l=s?c.data??[]:o,u=i.isLoading||s&&c.isLoading,d=i.error??(s?c.error:null),f=i.isFetching||s&&c.isFetching,p=(0,N.useCallback)(()=>{e.environmentId!==null&&e.cwd!==null&&ke({environmentId:e.environmentId,cwd:e.cwd})},[e.environmentId,e.cwd]);return(0,F.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,F.jsxs)(`div`,{className:b(`flex items-center gap-2 border-border/60 border-b`,e.density===`compact`?`px-2 py-1.5`:`px-4 py-2.5`),children:[(0,F.jsxs)(`div`,{className:`relative flex-1`,children:[(0,F.jsx)(Ve,{className:`-translate-y-1/2 absolute top-1/2 left-2 size-3.5 text-muted-foreground`}),(0,F.jsx)(M,{ref:e.searchInputRef,value:e.query,onChange:t=>e.onQueryChange(t.target.value),placeholder:`Search issues by title or number…`,className:`h-8 pl-7 text-sm`})]}),(0,F.jsx)(zr,{value:e.stateFilter,onChange:e.onStateFilterChange}),e.environmentId&&e.cwd?(0,F.jsx)(D,{type:`button`,size:`icon`,variant:`ghost`,onClick:()=>r(!0),"aria-label":`New issue`,children:(0,F.jsx)(Dt,{className:`size-3.5`})}):null,(0,F.jsx)(D,{type:`button`,size:`icon`,variant:`ghost`,onClick:p,disabled:f,"aria-label":`Refresh`,children:(0,F.jsx)(ye,{className:f?`size-3.5 animate-spin`:`size-3.5`})})]}),(0,F.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:d?(0,F.jsx)(`p`,{className:b(`text-destructive text-sm`,e.density===`compact`?`px-2.5 py-4`:`px-4 py-6`),children:d instanceof Error?d.message:`Failed to load issues.`}):(0,F.jsx)(Nr,{...e.density?{density:e.density}:{},items:l,isLoading:u,emptyText:e.query.trim().length>0?`No issues match this search.`:`No issues to show.`,selectedKey:e.selectedKey,onSelect:e.onSelect})}),n&&e.environmentId&&e.cwd?(0,F.jsx)(Ar,{open:n,onOpenChange:r,environmentId:e.environmentId,cwd:e.cwd,onCreated:p}):null]})}var Hr=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`short`,day:`numeric`});function Ur(e){return!e||h(e)?``:Hr.format(o(e.value))}var Wr=(0,N.memo)(function(e){let t=(0,P.c)(17),n=e.density===`compact`;if(e.isLoading&&e.items.length===0){let e=n?`px-3 py-6`:`px-4 py-8`,r;t[0]===e?r=t[1]:(r=b(`text-center text-muted-foreground text-sm`,e),t[0]=e,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,F.jsx)(`div`,{className:r,children:`Loading…`}),t[2]=r,t[3]=i),i}if(e.items.length===0){let r=n?`px-3 py-6`:`px-4 py-8`,i;t[4]===r?i=t[5]:(i=b(`text-center text-muted-foreground text-sm`,r),t[4]=r,t[5]=i);let a;return t[6]!==e.emptyText||t[7]!==i?(a=(0,F.jsx)(`div`,{className:i,children:e.emptyText}),t[6]=e.emptyText,t[7]=i,t[8]=a):a=t[8],a}let r=n?`divide-y divide-border/25`:`divide-y divide-border/40`,i;t[9]===r?i=t[10]:(i=b(r),t[9]=r,t[10]=i);let a;t[11]!==n||t[12]!==e?(a=e.items.map(t=>{let r=`${t.provider}:${t.number}`,i=e.selectedKey===r,a=t.labels??[],o=a.slice(0,3),c=a.length-o.length,l=z(t),u=Ae(t.state,t.isDraft);return(0,F.jsx)(`li`,{children:(0,F.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":i,onClick:()=>e.onSelect(t),className:b(`flex w-full text-left`,`hover:bg-accent/40 focus-visible:bg-accent/60 focus-visible:outline-none`,n?`items-center gap-2 px-2.5 py-1.5`:`items-start gap-3 px-4 py-3`,i&&`bg-accent/55`),children:[(0,F.jsx)($t,{kind:u,iconOnly:n,className:n?`shrink-0`:`mt-0.5 shrink-0`}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsxs)(`span`,{className:`shrink-0 text-muted-foreground text-xs tabular-nums`,children:[`#`,t.number]}),t.provider===`github`&&t.stackSummary?(0,F.jsx)(jn,{stack:t.stackSummary}):null,(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-medium text-sm`,children:t.title}),(0,F.jsx)(un,{view:l,mode:`compact`})]}),n?(0,F.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-1.5 text-muted-foreground text-[11px]`,children:[(0,F.jsx)(Be,{className:`size-3 shrink-0`}),(0,F.jsx)(`span`,{className:`min-w-0 truncate font-mono`,children:t.headRefName}),t.author?(0,F.jsxs)(`span`,{className:`shrink-0 text-muted-foreground/60`,children:[`· `,t.author]}):null,t.updatedAt&&s(t.updatedAt)?(0,F.jsx)(`span`,{className:`ml-auto shrink-0 text-muted-foreground/60`,children:Ur(t.updatedAt)}):null]}):(0,F.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-1.5 text-muted-foreground text-xs`,children:[t.author?(0,F.jsxs)(`span`,{children:[`by `,t.author]}):null,(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,F.jsx)(Be,{className:`size-3`}),(0,F.jsxs)(`span`,{className:`truncate font-mono`,children:[t.headRefName,` → `,t.baseRefName]})]}),o.map(Gr),c>0?(0,F.jsxs)(`span`,{className:`text-[10px]`,children:[`+`,c]}):null,typeof t.commentsCount==`number`&&t.commentsCount>0?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[(0,F.jsx)(Se,{className:`size-3`}),t.commentsCount]}):null,t.updatedAt&&s(t.updatedAt)?(0,F.jsx)(`span`,{className:`ml-auto`,children:Ur(t.updatedAt)}):null]})]})]})},r)}),t[11]=n,t[12]=e,t[13]=a):a=t[13];let o;return t[14]!==i||t[15]!==a?(o=(0,F.jsx)(`ul`,{role:`listbox`,className:i,children:a}),t[14]=i,t[15]=a,t[16]=o):o=t[16],o});function Gr(e){return(0,F.jsx)(cn,{label:e},e.name)}function Kr(e){let[t]=qt(e.query,{wait:200}),n=x(e=>e.sourceControlRefreshMode),r=(0,N.useCallback)(e=>{let t=e?.some(e=>On(z(e)))??!1;return we({mode:n,phase:t?`active`:`settled`})},[n]),i=Ee({environmentId:e.environmentId,cwd:e.cwd,state:e.stateFilter,limit:100},r),a=(0,N.useMemo)(()=>i.data??[],[i.data]),o=(0,N.useMemo)(()=>Sr(a,e.query),[a,e.query]),s=o.length===0&&t.trim().length>=2,c=De({environmentId:e.environmentId,cwd:e.cwd,query:t,limit:50,enabled:s}),l=(0,N.useMemo)(()=>s?c.data??[]:o,[o,s,c.data]),u=i.isLoading||s&&c.isLoading,d=i.error??(s?c.error:null);Vn((0,N.useMemo)(()=>l.map(t=>({environmentId:e.environmentId,cwd:e.cwd,provider:t.provider,number:t.number,title:t.title,url:t.url,status:z(t)})),[l,e.cwd,e.environmentId]));let f=(0,N.useCallback)(()=>{e.environmentId!==null&&e.cwd!==null&&ke({environmentId:e.environmentId,cwd:e.cwd})},[e.environmentId,e.cwd]);return(0,F.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col`,children:[(0,F.jsxs)(`div`,{className:b(`flex items-center gap-2 border-border/60 border-b`,e.density===`compact`?`px-2 py-1.5`:`px-4 py-2.5`),children:[(0,F.jsxs)(`div`,{className:`relative flex-1`,children:[(0,F.jsx)(Ve,{className:`-translate-y-1/2 absolute top-1/2 left-2 size-3.5 text-muted-foreground`}),(0,F.jsx)(M,{ref:e.searchInputRef,value:e.query,onChange:t=>e.onQueryChange(t.target.value),placeholder:`Search pull requests by title or number…`,className:`h-8 pl-7 text-sm`})]}),(0,F.jsx)(Br,{value:e.stateFilter,onChange:e.onStateFilterChange}),(0,F.jsx)(D,{type:`button`,size:`icon`,variant:`ghost`,onClick:f,disabled:i.isFetching,"aria-label":`Refresh`,children:(0,F.jsx)(ye,{className:i.isFetching?`size-3.5 animate-spin`:`size-3.5`})})]}),(0,F.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:d?(0,F.jsx)(`p`,{className:b(`text-destructive text-sm`,e.density===`compact`?`px-2.5 py-4`:`px-4 py-6`),children:d instanceof Error?d.message:`Failed to load pull requests.`}):(0,F.jsx)(Wr,{...e.density?{density:e.density}:{},items:l,isLoading:u,emptyText:e.query.trim().length>0?`No pull requests match this search.`:`No pull requests to show.`,selectedKey:e.selectedKey,onSelect:e.onSelect})})]})}var qr=`{issueKey}-{titleSlug}`,Jr=`{issueKey}: {summary}`;function Yr(e){return{projectId:e.projectId,jiraConnectionId:e.jiraConnectionId,bitbucketConnectionId:e.existing?.bitbucketConnectionId??null,jiraCloudId:e.existing?.jiraCloudId??null,jiraSiteUrl:e.jiraSiteUrl,jiraProjectKeys:[...e.jiraProjectKeys],bitbucketWorkspace:e.existing?.bitbucketWorkspace??null,bitbucketRepoSlug:e.existing?.bitbucketRepoSlug??null,defaultIssueTypeName:e.existing?.defaultIssueTypeName??null,branchNameTemplate:e.existing?.branchNameTemplate??qr,commitMessageTemplate:e.existing?.commitMessageTemplate??Jr,pullRequestTitleTemplate:e.existing?.pullRequestTitleTemplate??Jr,smartLinkingEnabled:e.existing?.smartLinkingEnabled??!0,autoAttachWorkItems:e.existing?.autoAttachWorkItems??!0}}function Xr(e){return{...Yr({projectId:e.projectId,existing:e.existing,jiraConnectionId:null,jiraSiteUrl:null,jiraProjectKeys:[]}),jiraCloudId:null}}var Zr=`__ryco_empty_jira_project__`,Qr=[];function $r(e){return e.split(/[,\s]+/u).map(e=>e.trim().toUpperCase()).filter(Boolean)}function ei(e){let t=$r(e.projectKeys);if(t.length!==1)return Zr;let n=t[0];return n&&e.projects.some(e=>e.key===n)?n:Zr}function ti(e){let t=(0,P.c)(44),{environmentId:n,connectionId:r,siteUrl:i,projectKeys:a,disabled:o,onProjectKeysChange:s}=e,c=o!==void 0&&o,l=!c,u;t[0]!==r||t[1]!==n||t[2]!==i||t[3]!==l?(u={environmentId:n,connectionId:r,siteUrl:i,enabled:l},t[0]=r,t[1]=n,t[2]=i,t[3]=l,t[4]=u):u=t[4];let d=xt(u),f=d.data??Qr,p;t[5]!==a||t[6]!==f?(p=ei({projectKeys:a,projects:f}),t[5]=a,t[6]=f,t[7]=p):p=t[7];let m=p,h;t[8]!==c||t[9]!==s||t[10]!==a||t[11]!==f[0]||t[12]!==f.length?(h=()=>{if(c||a.trim().length>0||f.length!==1)return;let e=f[0];e&&s(e.key)},t[8]=c,t[9]=s,t[10]=a,t[11]=f[0],t[12]=f.length,t[13]=h):h=t[13];let g;t[14]!==c||t[15]!==s||t[16]!==a||t[17]!==f?(g=[c,s,a,f],t[14]=c,t[15]=s,t[16]=a,t[17]=f,t[18]=g):g=t[18],(0,N.useEffect)(h,g);let _;t[19]===s?_=t[20]:(_=e=>{typeof e==`string`&&e!==Zr&&s(e)},t[19]=s,t[20]=_);let v=c||r===null,y=d.isLoading?`Loading Jira projects`:f.length>0?`Select Jira project`:`No Jira projects found`,b;t[21]===y?b=t[22]:(b=(0,F.jsx)(mt,{placeholder:y}),t[21]=y,t[22]=b);let x;t[23]!==v||t[24]!==b?(x=(0,F.jsx)(pt,{size:`sm`,disabled:v,children:b}),t[23]=v,t[24]=b,t[25]=x):x=t[25];let S;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,F.jsx)(ft,{value:Zr,children:`Select Jira project`}),t[26]=S):S=t[26];let C;t[27]===f?C=t[28]:(C=f.map(ni),t[27]=f,t[28]=C);let w;t[29]===C?w=t[30]:(w=(0,F.jsxs)(ut,{children:[S,C]}),t[29]=C,t[30]=w);let T;t[31]!==m||t[32]!==x||t[33]!==w||t[34]!==_?(T=(0,F.jsxs)(ht,{value:m,onValueChange:_,children:[x,w]}),t[31]=m,t[32]=x,t[33]=w,t[34]=_,t[35]=T):T=t[35];let E;t[36]!==r||t[37]!==f.length||t[38]!==d.error||t[39]!==d.isLoading?(E=d.error?(0,F.jsx)(`p`,{className:`text-destructive text-[11px]`,children:d.error instanceof Error?d.error.message:`Failed to load Jira projects.`}):f.length>0?(0,F.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:`Select a project to fill the project key automatically.`}):r!==null&&!d.isLoading?(0,F.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:`Enter project keys manually if this token cannot list projects.`}):null,t[36]=r,t[37]=f.length,t[38]=d.error,t[39]=d.isLoading,t[40]=E):E=t[40];let ee;return t[41]!==T||t[42]!==E?(ee=(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[T,E]}),t[41]=T,t[42]=E,t[43]=ee):ee=t[43],ee}function ni(e){return(0,F.jsxs)(ft,{value:e.key,children:[e.key,` - `,e.name]},e.key)}var ri=[{id:`open`,label:`Open`},{id:`in_progress`,label:`In progress`},{id:`done`,label:`Done`},{id:`all`,label:`All`}],ii=new Intl.DateTimeFormat(void 0,{year:`numeric`,month:`short`,day:`numeric`});function ai(e){return e.split(/[,\s]+/u).map(e=>e.trim().toUpperCase()).filter(Boolean)}function oi(e){return e??``}function si(e){let[n]=qt(e.query,{wait:200}),r=(e.environmentId===null?null:fe(e.environmentId))?.client??null,i=wt({environmentId:e.environmentId,projectId:e.projectId,enabled:r!==null&&e.projectId!==null}),a=Tt({environmentId:e.environmentId,enabled:r!==null}),o=(0,N.useMemo)(()=>(a.data??[]).filter(e=>e.status===`connected`&&e.products.includes(`jira`)),[a.data]),s=i.data??null,c=s?.jiraConnectionId!==null&&s?.jiraConnectionId!==void 0&&s.jiraProjectKeys.length>0,l=Ct({environmentId:e.environmentId,projectId:e.projectId,state:e.stateFilter,limit:100,enabled:c}),u=(0,N.useMemo)(()=>l.data??[],[l.data]),d=(0,N.useMemo)(()=>{let t=e.query.trim().toLowerCase();return t?u.filter(e=>e.key.toLowerCase().includes(t)||e.title.toLowerCase().includes(t)||(e.issueType?.toLowerCase().includes(t)??!1)):u},[u,e.query]),f=d.length===0&&n.trim().length>=2,p=bt({environmentId:e.environmentId,projectId:e.projectId,query:n,limit:50,enabled:c&&f}),m=(0,N.useMemo)(()=>f?p.data??[]:d,[d,f,p.data]),h=i.isLoading||l.isLoading||p.isLoading,g=i.error??l.error??p.error,_=he(lt(n=>e.environmentId&&e.projectId?se(n,t(e.environmentId,e.projectId)):[])),v=ee({queryKey:[`workItems`,`localBranches`,e.environmentId,e.cwd??null],environmentId:e.environmentId,queryFn:async()=>{let t=e.environmentId?ne(e.environmentId):null;return!t||!e.cwd?[]:(await t.vcs.listRefs({cwd:e.cwd,limit:100})).refs},enabled:c&&e.environmentId!==null&&e.cwd!==null&&e.cwd!==void 0,staleTime:3e4}),y=(0,N.useMemo)(()=>fi({items:m,refs:v.data??[],worktrees:_}),[v.data,m,_]),b=()=>{St({environmentId:e.environmentId}),yt({environmentId:e.environmentId,projectId:e.projectId})},x=vt({environmentId:e.environmentId,onSuccess:()=>{e.onQueryChange(``),b(),C.add(j({type:`success`,title:`Jira project unlinked`,description:`Jira work items are no longer loaded for this project.`}))},onError:e=>{C.add(j({type:`error`,title:`Could not unlink Jira project`,description:e.message}))}});return(0,F.jsx)(`div`,{className:`flex h-full min-h-0 flex-col`,children:c?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`flex items-center gap-2 border-border/60 border-b px-4 py-2.5`,children:[(0,F.jsxs)(`div`,{className:`relative flex-1`,children:[(0,F.jsx)(Ve,{className:`-translate-y-1/2 absolute top-1/2 left-2 size-3.5 text-muted-foreground`}),(0,F.jsx)(M,{ref:e.searchInputRef,value:e.query,onChange:t=>e.onQueryChange(t.target.value),placeholder:`Search Jira work items by key or title…`,className:`h-8 pl-7 text-sm`})]}),(0,F.jsx)(ci,{value:e.stateFilter,onChange:e.onStateFilterChange}),(0,F.jsx)(D,{type:`button`,size:`icon`,variant:`ghost`,onClick:()=>l.refetch(),disabled:l.isFetching||x.isPending,"aria-label":`Refresh`,children:(0,F.jsx)(ye,{className:l.isFetching?`size-3.5 animate-spin`:`size-3.5`})}),(0,F.jsxs)(D,{type:`button`,size:`sm`,variant:`destructive-outline`,className:`h-8`,disabled:x.isPending||e.projectId===null,onClick:()=>x.mutate(Xr({projectId:e.projectId,existing:s})),children:[x.isPending?(0,F.jsx)(gt,{className:`size-3.5`}):null,`Unlink Jira`]})]}),(0,F.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:g?(0,F.jsx)(`p`,{className:`px-4 py-6 text-destructive text-sm`,children:g instanceof Error?g.message:`Failed to load Jira work items.`}):(0,F.jsx)(li,{items:m,isLoading:h,emptyText:e.query.trim().length>0?`No Jira work items match this search.`:`No Jira work items to show.`,localLinksByWorkItemKey:y,onSelect:e.onSelect})})]}):(0,F.jsx)(gi,{environmentId:e.environmentId,projectId:e.projectId,client:r,connections:o,connectionsPending:a.isLoading,projectLink:s,onSaved:b})})}function ci(e){let t=(0,P.c)(4),n;t[0]===e?n=t[1]:(n=ri.map(t=>(0,F.jsx)(`button`,{type:`button`,className:b(`h-6 rounded-sm px-2 text-xs transition`,e.value===t.id?`bg-accent text-accent-foreground`:`text-muted-foreground hover:text-foreground`),onClick:()=>e.onChange(t.id),children:t.label},t.id)),t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,F.jsx)(`div`,{className:`inline-flex rounded-md border border-border/70 bg-background p-0.5`,children:n}),t[2]=n,t[3]=r),r}function li(e){let t=(0,P.c)(7);if(e.isLoading&&e.items.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,F.jsx)(`div`,{className:`px-4 py-8 text-center text-muted-foreground text-sm`,children:`Loading…`}),t[0]=e):e=t[0],e}if(e.items.length===0){let n;return t[1]===e.emptyText?n=t[2]:(n=(0,F.jsx)(`div`,{className:`px-4 py-8 text-center text-muted-foreground text-sm`,children:e.emptyText}),t[1]=e.emptyText,t[2]=n),n}let n;t[3]===e?n=t[4]:(n=e.items.map(t=>(0,F.jsxs)(`li`,{className:`flex items-stretch`,children:[(0,F.jsxs)(`button`,{type:`button`,onClick:()=>e.onSelect(t),className:b(`flex min-w-0 flex-1 items-start gap-3 px-4 py-3 text-left`,`hover:bg-accent/40 focus-visible:bg-accent/60 focus-visible:outline-none`),children:[(0,F.jsx)(at,{className:`mt-0.5 size-4 shrink-0`}),(0,F.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,F.jsxs)(`div`,{className:`flex items-baseline gap-2`,children:[(0,F.jsx)(`span`,{className:`text-muted-foreground text-xs`,children:t.key}),(0,F.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-medium text-sm`,children:t.title}),(0,F.jsx)(dt,{variant:t.state===`done`||t.state===`closed`?`secondary`:`outline`,size:`sm`,children:Qn(t)})]}),(0,F.jsxs)(`div`,{className:`mt-1 flex flex-wrap items-center gap-1.5 text-muted-foreground text-xs`,children:[t.issueType?(0,F.jsx)(`span`,{children:t.issueType}):null,t.reporter?(0,F.jsxs)(`span`,{children:[`reported by `,t.reporter]}):null,t.assignee?(0,F.jsxs)(`span`,{children:[`assigned to `,t.assignee]}):null,t.priorityDetail??t.priority?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,F.jsx)(di,{priority:t.priorityDetail??t.priority}),t.priority]}):null,t.dueDate?(0,F.jsxs)(`span`,{children:[`due `,t.dueDate]}):null,(0,F.jsx)(pi,{links:e.localLinksByWorkItemKey.get(t.key)}),t.labels?.slice(0,3).map(ui),t.labels&&t.labels.length>3?(0,F.jsxs)(`span`,{className:`text-[10px]`,children:[`+`,t.labels.length-3,` labels`]}):null,t.updatedAt&&s(t.updatedAt)?(0,F.jsx)(`span`,{className:`ml-auto`,children:ii.format(o(t.updatedAt.value))}):null]})]})]}),(0,F.jsx)(`a`,{href:t.url,target:`_blank`,rel:`noopener noreferrer`,className:`flex w-10 shrink-0 items-center justify-center text-muted-foreground hover:bg-accent/40 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,title:`Open ${t.key} in Jira`,"aria-label":`Open ${t.key} in Jira`,children:(0,F.jsx)(Qe,{className:`size-3.5`})})]},`${t.provider}:${t.key}`)),t[3]=e,t[4]=n);let r;return t[5]===n?r=t[6]:(r=(0,F.jsx)(`ul`,{role:`listbox`,className:`divide-y divide-border/40`,children:n}),t[5]=n,t[6]=r),r}function ui(e){return(0,F.jsx)(cn,{label:e},e)}function di(e){let t=(0,P.c)(4),n=typeof e.priority==`string`?e.priority:e.priority?.name,r=typeof e.priority==`string`?void 0:e.priority?.iconUrl;if(r){let e;return t[0]===r?e=t[1]:(e=(0,F.jsx)(`img`,{src:r,alt:``,className:`size-3`,loading:`lazy`,decoding:`async`}),t[0]=r,t[1]=e),e}let i=n??`Priority`,a;return t[2]===i?a=t[3]:(a=(0,F.jsx)(jt,{className:`size-3`,"aria-label":i}),t[2]=i,t[3]=a),a}function fi(e){let t=new Map;for(let n of e.items){let r=Kn({key:n.key,refs:e.refs}),i=qn({key:n.key,worktrees:e.worktrees});(r.length>0||i.length>0)&&t.set(n.key,{branches:r,worktrees:i})}return t}function pi(e){let t=(0,P.c)(9);if(!e.links||e.links.branches.length===0&&e.links.worktrees.length===0)return null;let n=e.links.branches.length,r=e.links.worktrees.length,i;t[0]!==n||t[1]!==e.links.branches?(i=n>0?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded border border-border/60 px-1.5 py-0.5 text-[10px]`,title:e.links.branches.map(hi).join(`, `),children:[(0,F.jsx)(Be,{className:`size-3`}),n,` branch`,n===1?``:`es`]}):null,t[0]=n,t[1]=e.links.branches,t[2]=i):i=t[2];let a;t[3]!==e.links.worktrees||t[4]!==r?(a=r>0?(0,F.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded border border-border/60 px-1.5 py-0.5 text-[10px]`,title:e.links.worktrees.map(mi).join(`, `),children:[(0,F.jsx)(at,{className:`size-3`}),r,` worktree`,r===1?``:`s`]}):null,t[3]=e.links.worktrees,t[4]=r,t[5]=a):a=t[5];let o;return t[6]!==i||t[7]!==a?(o=(0,F.jsxs)(F.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=o):o=t[8],o}function mi(e){return e.branch}function hi(e){return e.name}function gi(e){let t=(0,P.c)(42),[n,r]=(0,N.useState)(``),[i,a]=(0,N.useState)(``),o=(0,N.useRef)(!1),s=(0,N.useRef)(null),c;t[0]!==e.connections[0]||t[1]!==e.projectId||t[2]!==e.projectLink?.jiraConnectionId||t[3]!==e.projectLink?.jiraProjectKeys?(c=()=>{if(s.current!==e.projectId&&(s.current=e.projectId,o.current=!1),o.current)return;let t=e.connections[0];r(oi(e.projectLink?.jiraConnectionId??t?.connectionId)),a(e.projectLink?.jiraProjectKeys.join(`, `)??``)},t[0]=e.connections[0],t[1]=e.projectId,t[2]=e.projectLink?.jiraConnectionId,t[3]=e.projectLink?.jiraProjectKeys,t[4]=c):c=t[4];let l;t[5]!==e.connections||t[6]!==e.projectId||t[7]!==e.projectLink?(l=[e.connections,e.projectId,e.projectLink],t[5]=e.connections,t[6]=e.projectId,t[7]=e.projectLink,t[8]=l):l=t[8],(0,N.useEffect)(c,l);let u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{o.current=!0},t[9]=u):u=t[9];let d=u,f;t[10]===e?f=t[11]:(f=()=>{o.current=!1,e.onSaved(),C.add(j({type:`success`,title:`Jira project linked`,description:`Work items will now load in the project explorer.`}))},t[10]=e,t[11]=f);let p;t[12]!==e.environmentId||t[13]!==f?(p={environmentId:e.environmentId,onSuccess:f,onError:vi},t[12]=e.environmentId,t[13]=f,t[14]=p):p=t[14];let m=vt(p),h;t[15]!==n||t[16]!==i||t[17]!==e.client||t[18]!==e.projectId||t[19]!==m?(h=e.client!==null&&e.projectId!==null&&n.trim().length>0&&ai(i).length>0&&!m.isPending,t[15]=n,t[16]=i,t[17]=e.client,t[18]=e.projectId,t[19]=m,t[20]=h):h=t[20];let g=h,_;t[21]===n?_=t[22]:(_=n.trim().length>0?n.trim():null,t[21]=n,t[22]=_);let v=_,y;if(t[23]!==e.connections||t[24]!==v){let n;t[26]===v?n=t[27]:(n=e=>e.connectionId===v,t[26]=v,t[27]=n),y=e.connections.find(n),t[23]=e.connections,t[24]=v,t[25]=y}else y=t[25];let b=y?.baseUrl??e.projectLink?.jiraSiteUrl??``,x;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,F.jsx)(`div`,{className:`flex size-9 items-center justify-center rounded-md border border-border/70 bg-muted/50`,children:(0,F.jsx)(at,{className:`size-4`})}),t[28]=x):x=t[28];let S;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,F.jsxs)(`div`,{className:`flex items-start gap-3`,children:[x,(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`h3`,{className:`font-semibold text-sm`,children:`Link this project to Jira`}),(0,F.jsx)(`p`,{className:`mt-1 text-muted-foreground text-xs leading-relaxed`,children:`Save a Jira token in Source Control settings, then choose the project keys that belong to this repository.`})]})]}),t[29]=S):S=t[29];let w;return t[30]!==g||t[31]!==n||t[32]!==i||t[33]!==e.connections||t[34]!==e.connectionsPending||t[35]!==e.environmentId||t[36]!==e.projectId||t[37]!==e.projectLink||t[38]!==m||t[39]!==v||t[40]!==b?(w=(0,F.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-5`,children:(0,F.jsxs)(`div`,{className:`mx-auto max-w-xl space-y-4`,children:[S,e.connectionsPending?(0,F.jsxs)(`div`,{className:`flex items-center gap-2 rounded-md border border-border/70 px-3 py-3 text-muted-foreground text-sm`,children:[(0,F.jsx)(gt,{className:`size-4`}),`Loading Jira connections…`]}):e.connections.length===0?(0,F.jsx)(`div`,{className:`rounded-md border border-border/70 px-3 py-3 text-muted-foreground text-sm`,children:`No Jira token is stored yet. Add one from Settings, Source Control, Atlassian Workflow.`}):(0,F.jsxs)(`form`,{className:`grid gap-3`,onSubmit:t=>{if(t.preventDefault(),!g||!e.projectId)return;let r=n.trim(),a=ai(i);r&&a.length!==0&&m.mutate(Yr({projectId:e.projectId,existing:e.projectLink,jiraConnectionId:r,jiraSiteUrl:null,jiraProjectKeys:a}))},children:[(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsx)(Et,{className:`text-xs`,children:`Jira connection`}),(0,F.jsxs)(ht,{value:n,onValueChange:e=>{typeof e==`string`&&(d(),r(e))},children:[(0,F.jsx)(pt,{size:`sm`,children:(0,F.jsx)(mt,{placeholder:`Select Jira connection`})}),(0,F.jsx)(ut,{children:e.connections.map(_i)})]})]}),(0,F.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,F.jsx)(Et,{htmlFor:`work-item-jira-project-keys`,className:`text-xs`,children:`Project keys`}),(0,F.jsx)(ti,{environmentId:e.environmentId,connectionId:v,siteUrl:b,projectKeys:i,disabled:m.isPending,onProjectKeysChange:e=>{d(),a(e)}}),(0,F.jsx)(M,{id:`work-item-jira-project-keys`,size:`sm`,value:i,onChange:e=>{d(),a(e.currentTarget.value)},placeholder:`WEB, API`})]}),(0,F.jsxs)(D,{type:`submit`,size:`sm`,className:`h-8 justify-self-start`,disabled:!g,children:[m.isPending?(0,F.jsx)(gt,{className:`size-3.5`}):null,`Link Jira Project`]})]})]})}),t[30]=g,t[31]=n,t[32]=i,t[33]=e.connections,t[34]=e.connectionsPending,t[35]=e.environmentId,t[36]=e.projectId,t[37]=e.projectLink,t[38]=m,t[39]=v,t[40]=b,t[41]=w):w=t[41],w}function _i(e){return(0,F.jsx)(ft,{value:e.connectionId,children:e.label},e.connectionId)}function vi(e){C.add(j({type:`error`,title:`Could not link Jira project`,description:e.message}))}var yi={hydrated:!1,revision:0,proposalsById:{}},bi=20,xi=new Set(f);function Si(e){return xi.has(e)}var Ci={"pending-user-approval":0,approved:1,executing:2,rejected:3,expired:3,completed:3,failed:3,cancelled:3},wi=e=>e.completionReturns?.some(e=>e.status===`waiting`||e.status===`ready`||e.status===`dispatching`)??!1;function Ti(e,t){if(!t?.length)return e;let n=new Map((e??[]).map(e=>[e.childThreadId,e])),r=!1;for(let e of t){let t=n.get(e.childThreadId);t&&(e.revision<=t.revision||e.parentThreadId!==t.parentThreadId||e.parentTurnId!==t.parentTurnId||e.initialMessageId!==t.initialMessageId)||(n.set(e.childThreadId,e),r=!0)}return r?[...n.values()]:e}function Ei(e){let t=Object.values(e).filter(e=>Si(e.status)&&!wi(e));if(t.length<=bi)return e;let n=t.toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)).slice(bi),r={...e};for(let e of n)delete r[e.proposalId];return r}function Di(e,t){if(t.type===`snapshot`){let e={};for(let n of[...t.queue.active,...t.queue.recent])e[n.proposalId]=n;return{hydrated:!0,revision:t.queue.revision,proposalsById:e}}if(!e.hydrated)return e;let n=t.proposal,r=e.proposalsById[n.proposalId];if(r!==void 0){let t=Ci[r.status],i=Ci[n.status];if(i<t)return e;let a=Ti(r.completionReturns,n.completionReturns);if(i===t){if(a===r.completionReturns)return e;n={...r,completionReturns:a,updatedAt:n.updatedAt>r.updatedAt?n.updatedAt:r.updatedAt}}else a&&(n={...n,completionReturns:a})}return{hydrated:!0,revision:Math.max(e.revision,t.revision),proposalsById:Ei({...e.proposalsById,[n.proposalId]:n})}}function Oi(e){return Object.values(e.proposalsById).filter(e=>!Si(e.status)||wi(e)).toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt)||e.proposalId.localeCompare(t.proposalId))}function ki(e){let t=Oi(e).filter(e=>e.principal.kind===`external-integration`);return{pending:t.filter(e=>e.status===`pending-user-approval`),activity:t.filter(e=>e.status!==`pending-user-approval`).toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)||t.proposalId.localeCompare(e.proposalId)),managerThreadId:null,delegatedFromThreadId:null}}var Ai=e=>e?.principal.kind===`provider-session`?e.principal.threadId:null;function ji(e,t,n){if(t===null)return{pending:[],activity:[],managerThreadId:null,delegatedFromThreadId:null};let r=Object.values(e.proposalsById).toSorted((e,t)=>t.updatedAt.localeCompare(e.updatedAt)||t.proposalId.localeCompare(e.proposalId)),i=r.filter(e=>e.principal.kind===`provider-session`&&e.principal.threadId===t),a=r.filter(e=>{if(e.principal.kind!==`provider-session`||e.principal.threadId===t||![`approved`,`executing`,`completed`].includes(e.status))return!1;switch(e.plan.kind){case`createThreads`:return e.completionReturns?.some(e=>e.childThreadId===t)||e.result?.outcome===`completed`&&e.result.createdThreadIds?.includes(t)||e.result?.execution?.affectedThreadIds.includes(t);case`sendMessage`:case`interruptThread`:case`updateThread`:return e.plan.threadId===t;default:return!1}}).toSorted((e,t)=>(t.decidedAt??t.createdAt).localeCompare(e.decidedAt??e.createdAt)||t.proposalId.localeCompare(e.proposalId)),o=Ai(a[0]),s=Ai(a.find(e=>e.plan.kind===`createThreads`)),c=E(n)?n.parentThreadId:s;return{pending:i.filter(e=>e.status===`pending-user-approval`).toReversed(),activity:i.filter(e=>e.status!==`pending-user-approval`),managerThreadId:o===c?null:o,delegatedFromThreadId:c}}var Mi={"pending-user-approval":{label:`Awaiting approval`,tone:`pending`},approved:{label:`Approved · awaiting executor`,tone:`info`},executing:{label:`Executing`,tone:`info`},completed:{label:`Completed`,tone:`success`},failed:{label:`Failed`,tone:`danger`},rejected:{label:`Rejected`,tone:`muted`},expired:{label:`Expired`,tone:`muted`},cancelled:{label:`Cancelled`,tone:`muted`}},B=e=>e.length>10?`${e.slice(0,8)}…`:e,Ni=e=>e.replaceAll(`-`,` `);function Pi(e){let t=e.principal;return t.kind===`automation-owner`?{label:`You · Automations`,threadId:null}:t.kind===`provider-session`?{label:`Agent in thread ${B(t.threadId)} (${t.providerInstanceId})`,threadId:t.threadId}:{label:`External integration ${t.label??B(t.integrationId)}`,threadId:null}}function Fi(e){let t=e=>e.kind===`once`?[`Schedule: one-shot`,`Next run: ${e.runAt}`]:[`Schedule: every ${e.intervalMs}ms`,`Next run: ${e.startsAt}`,`Ends: ${e.endsAt}`,`Missed intervals coalesce into at most one pending run.`],n=[`Limits: 25 active schedules per project; minimum interval ${p}ms.`,`Horizon: ${m}ms; retained run history: 50.`],r=e=>[`Project: ${e.projectId}`,`Provider: ${e.modelSelection.instanceId} · ${e.modelSelection.model}`,`Runtime: ${e.runtimeMode} · ${e.envMode}`,...e.tokenMode===void 0?[]:[`Token mode: ${e.tokenMode}`],...e.baseRef===void 0?[]:[`Base ref: ${e.baseRef}`],`Intended work: ${e.title}`,`Prompt: ${e.prompt}`],i=e.plan,a=(e,t)=>[{heading:`Exact governed Simulator action`,lines:[`Device UDID: ${e.udid}`,`Thread: ${e.threadId}`,`Project: ${e.projectId}`,`Expected project revision: ${e.expectedProjectUpdatedAt}`,`Provider instance: ${e.providerInstanceId}`,`Expected attachment version: ${e.expectedThreadDeviceVersion}`,`Expected attached device: ${e.expectedAttachedDeviceUdid??`none`}`,`Expected lifecycle: ${e.expectedDeviceState}`,`Expected boot owner: ${e.expectedDeviceBootSource}`,`Expected recording: ${e.expectedRecording?`yes`:`no`}`,...t,`Execution stops if the device, attachment, thread, project, provider, or owner authority changes.`]}];switch(i.kind){case`createThreads`:{let e=i.entries.length,t=[...new Set(i.entries.map(e=>String(e.projectId)))],n=[...new Set(i.entries.map(e=>`${e.runtimeMode} · ${e.envMode}`))];return{actionLabel:e===1?`Create 1 thread`:`Create ${e} threads`,targetLabel:t.length===1?`project ${B(t[0])}`:`${t.length} projects`,runtimeLabel:n.length===1?n[0]:`mixed runtime modes`,detailSections:i.entries.map((e,t)=>({heading:`Thread ${t+1}: ${e.title}`,lines:[`Project: ${e.projectId}`,`Model: ${e.modelSelection.instanceId} · ${e.modelSelection.model}`,`Runtime: ${e.runtimeMode} · ${e.envMode}`,...e.returnToOrigin?[`Completion return: result or stop notice is sent back to the originating chat automatically, batched with sibling tasks.`]:[],...e.tokenMode===void 0?[]:[`Token mode: ${e.tokenMode}`],...e.baseRef===void 0?[]:[`Base ref: ${e.baseRef}`],`Prompt: ${e.prompt}`]}))}}case`sendMessage`:return{actionLabel:i.delivery===`steer`?`Steer thread`:`Queue message`,targetLabel:`thread ${B(i.threadId)}`,runtimeLabel:null,detailSections:[{heading:`Message`,lines:[`Thread: ${i.threadId}`,i.text]}]};case`interruptThread`:return{actionLabel:`Interrupt thread`,targetLabel:`thread ${B(i.threadId)}`,runtimeLabel:null,detailSections:[{heading:`Interrupt`,lines:[`Thread: ${i.threadId}`,...i.turnId===void 0?[]:[`Only turn: ${i.turnId}`]]}]};case`updateThread`:{let e=[];return i.title!==void 0&&e.push(`Title: ${i.title}`),i.modelSelection!==void 0&&e.push(`Model: ${JSON.stringify(i.modelSelection)}`),i.runtimeMode!==void 0&&e.push(`Runtime permissions: ${i.runtimeMode}`),i.interactionMode!==void 0&&e.push(`Interaction: ${i.interactionMode}`),i.tokenMode!==void 0&&e.push(`Token mode: ${i.tokenMode}`),i.archived!==void 0&&e.push(i.archived?`Archive thread`:`Unarchive thread`),i.persistentGoal!==void 0&&e.push(i.persistentGoal===null?`Clear persistent goal`:`Goal: ${i.persistentGoal}`),{actionLabel:`Update thread`,targetLabel:`thread ${B(i.threadId)}`,runtimeLabel:null,detailSections:[{heading:`Changes`,lines:[`Thread: ${i.threadId}`,...e]}]}}case`createProject`:return{actionLabel:`Create project`,targetLabel:`project ${B(i.projectId)}`,runtimeLabel:null,detailSections:[{heading:`Before`,lines:[`No Ryco project record with this ID.`]},{heading:`After`,lines:[`Project ID: ${i.projectId}`,`Display name: ${i.title}`,`Workspace path: ${i.workspaceRoot}`,`Metadata directory: ${i.projectMetadataDir}`,`Repository identity: ${i.repositoryIdentityKey??`none`}`,`Workspace must already exist; no directory is created by this action.`]}]};case`updateProject`:return{actionLabel:`Update project metadata`,targetLabel:`project ${B(i.projectId)}`,runtimeLabel:null,detailSections:[{heading:`Before`,lines:[`Display name: ${i.before.title}`,`Workspace path: ${i.before.workspaceRoot}`,`Repository identity: ${i.before.repositoryIdentityKey??`none`}`,`Expected revision: ${i.before.updatedAt}`,...zi(i.before)]},{heading:`After`,lines:[`Display name: ${i.after.title}`,`Workspace path: ${i.after.workspaceRoot}`,`Repository identity: ${i.after.repositoryIdentityKey??`none`}`,...zi(i.after)]}]};case`workspaceLifecycle`:return{actionLabel:`${i.action} workspace`,targetLabel:i.expected.workspaceId,runtimeLabel:null,detailSections:[{heading:`Exact workspace lifecycle plan`,lines:[`Project: ${i.projectId}`,`Workspace record: ${i.expected.worktreeId}`,`Path: ${i.expected.path}`,`Checkout action: ${i.checkoutMode}`,`Branch: ${i.expected.branch} (${i.deleteBranch?`delete`:`retain`})`,`Expected branch commit: ${i.expected.branchHead??`missing`}`,`Merged into project HEAD: ${i.expected.unmerged===!1?`yes`:`unverified`}`,`Expected revision: ${i.expected.updatedAt}`,`Conversations: ${i.sessions===`delete`?`deletion requested (always refused; conversations are never deleted by workspace actions)`:i.checkoutMode===`remove-checkout`||i.action!==`restore`&&i.expected.checkout===`missing`?`archived; history, attachments and terminal history kept`:`unchanged; history kept`}`,...i.expected.sessions.map(e=>`${e.threadId}${e.archived?` (archived)`:``}`),`Execution rechecks this plan. Interrupted filesystem steps are never replayed automatically.`]}]};case`removeProject`:return{actionLabel:`Unlink project`,targetLabel:`project ${B(i.projectId)}`,runtimeLabel:null,detailSections:[{heading:`Before · destructive Ryco record removal`,lines:[`Project ID: ${i.projectId}`,`Display name: ${i.expected.title}`,`Workspace path: ${i.expected.workspaceRoot}`,`Expected revision: ${i.expected.updatedAt}`,`Force removal: ${i.force?`yes`:`no`}`,...i.expectedThreadIds.length===0?[`Ryco thread records removed: none`]:i.expectedThreadIds.map(e=>`Ryco thread record removed: ${e}`),`Workspace files and repository contents will be retained.`]},{heading:`After`,lines:[`The Ryco project record and the exact listed Ryco thread records are unlinked.`,`The workspace directory and repository are unchanged.`]}]};case`changeSettings`:return{actionLabel:`Change setting`,targetLabel:i.change.kind,runtimeLabel:null,detailSections:[{heading:`Exact setting change`,lines:[`Setting: ${i.change.kind}`,`Before: ${String(i.change.before)}`,`After: ${String(i.change.after)}`,`Fresh owner reauthentication is required at approval and execution.`]}]};case`createAutomation`:return{actionLabel:`Create schedule definition`,targetLabel:`automation ${B(i.automationId)}`,runtimeLabel:`${i.definition.execution.runtimeMode} · ${i.definition.execution.envMode}`,detailSections:[{heading:`Schedule definition approval`,lines:[...t(i.definition.schedule),...n,`Enabled: ${i.definition.enabled?`yes`:`no`}`,...r(i.definition.execution),`This approval authorizes only the schedule definition.`,`Every due run creates a fresh exact proposal and waits for user approval.`,`At most one pending or executing run is allowed for this automation.`]}]};case`updateAutomation`:return{actionLabel:`Update schedule definition`,targetLabel:`automation ${B(i.automationId)}`,runtimeLabel:`${i.after.execution.runtimeMode} · ${i.after.execution.envMode}`,detailSections:[{heading:`Before · revision ${i.before.revision}`,lines:[...t(i.before.definition.schedule),`Enabled: ${i.before.definition.enabled?`yes`:`no`}`,`Last changed: ${i.before.updatedAt}`]},{heading:`After · schedule approval only`,lines:[...t(i.after.schedule),...n,`Enabled: ${i.after.enabled?`yes`:`no`}`,...r(i.after.execution),`Pending, unaccepted runs from the old definition are cancelled.`,`Already accepted or executing runs are not interrupted.`,`Future runs still require separate approval.`]}]};case`cancelAutomation`:return{actionLabel:`Cancel future scheduled runs`,targetLabel:`automation ${B(i.automationId)}`,runtimeLabel:null,detailSections:[{heading:`Expected revision ${i.expected.revision}`,lines:[...t(i.expected.definition.schedule),`Project: ${i.expected.definition.execution.projectId}`,`Provider: ${i.expected.definition.execution.modelSelection.instanceId}`,`Cancellation prevents future run proposals and cancels a pending, unaccepted run.`,`It does not delete project/thread data or interrupt an accepted/executing run.`]}]};case`automationRun`:return{actionLabel:`Approve one scheduled run`,targetLabel:`run ${B(i.runId)}`,runtimeLabel:`${i.execution.runtimeMode} · ${i.execution.envMode}`,detailSections:[{heading:`Fresh run approval`,lines:[`Automation: ${i.automationId} · revision ${i.automationRevision}`,`Scheduled for: ${i.scheduledFor}`,`Missed intervals coalesced: ${i.coalescedOccurrences}`,...r(i.execution),`Approving the schedule did not approve this run; this exact proposal does.`]}]};case`deviceBoot`:return{actionLabel:`Boot iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Action: boot this exact Simulator.`])};case`deviceAttach`:return{actionLabel:`Attach iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Action: attach this device to the exact thread.`])};case`deviceDetach`:return{actionLabel:`Detach iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Action: detach this device from the exact thread.`])};case`deviceInstall`:return{actionLabel:`Install Simulator application`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Workspace-relative artifact: ${i.artifactPath}`,`The canonical artifact path is revalidated inside the project workspace at execution.`])};case`deviceLaunch`:return{actionLabel:`Launch Simulator application`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Installed bundle ID: ${i.bundleId}`,`Launch arguments are not permitted through Agent Control.`])};case`deviceOpenUrl`:return{actionLabel:`Open URL on iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`high risk · open world`,detailSections:a(i,[`Exact URL/deep link: ${i.url}`,`Credentials, file URLs, and unsafe schemes are rejected again at execution.`])};case`deviceTap`:return{actionLabel:`Tap iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Point: (${String(i.x)}, ${String(i.y)})`])};case`deviceSwipe`:return{actionLabel:`Swipe iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`From: (${i.fromX}, ${i.fromY})`,`To: (${i.toX}, ${i.toY})`,`Duration: ${i.durationMs}ms`])};case`devicePressButton`:return{actionLabel:`Press Simulator hardware control`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Button: ${i.button}`])};case`deviceStartRecording`:case`deviceStopRecording`:return{actionLabel:i.kind===`deviceStartRecording`?`Start Simulator recording`:`Stop Simulator recording`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Action: ${i.kind===`deviceStartRecording`?`start`:`stop`} recording.`,`Recording paths and frame content are excluded from proposals and audit.`])};case`deviceShutdown`:return{actionLabel:`Shut down iOS Simulator`,targetLabel:`device ${B(i.udid)}`,runtimeLabel:`explicit approval required`,detailSections:a(i,[`Action: shut down this exact Simulator.`])}}}function Ii(e){let t=e.result;if(t===null)return null;if(t.outcome===`completed`){let e=t.createdThreadIds?.length??0,n=t.createdProjectIds?.length??0,r=t.detail===void 0?``:` · ${t.detail}`;return n>0?`Completed · created ${n} project${n===1?``:`s`}${r}`:e>0?`Completed · created ${e} thread${e===1?``:`s`}${r}`:`Completed${r}`}return`${t.error.code}: ${t.error.message}`}function Li(e){let t=e.result?.execution;if(t===void 0)return{label:null,affectedThreadIds:[],affectedProjectIds:[]};let n=[`Operation ${B(t.operationId)}`,`${t.commands.length} command${t.commands.length===1?``:`s`}`];return t.worktreeIds.length>0&&n.push(`${t.worktreeIds.length} worktree${t.worktreeIds.length===1?``:`s`}`),t.delivery!==void 0&&n.push(`delivery: ${t.delivery}`),t.interrupt!==void 0&&n.push(`interrupt settled: ${t.interrupt.settledStatus}`),t.compensation!==void 0&&n.push(t.compensation.completed?`cleanup completed`:`cleanup needs attention`),{label:n.join(` · `),affectedThreadIds:t.affectedThreadIds,affectedProjectIds:t.affectedProjectIds??[]}}function Ri(e,t){let n=Mi[e.status],r=Pi(e),i=Fi(e),a=Li(e),o=r.threadId===null?void 0:t?.(r.threadId),s=`threadId`in e.plan?t?.(e.plan.threadId):void 0;return{proposalId:e.proposalId,status:e.status,statusLabel:n.label,statusTone:n.tone,originLabel:o&&e.principal.kind===`provider-session`?`Agent in ${o} (${e.principal.providerInstanceId})`:r.label,originThreadId:r.threadId,actionLabel:i.actionLabel,targetLabel:s&&`threadId`in e.plan&&i.targetLabel===`thread ${B(e.plan.threadId)}`?s:i.targetLabel,runtimeLabel:i.runtimeLabel,riskLabels:e.riskTags.map(e=>Ni(String(e))),isDestructive:e.plan.kind===`removeProject`||e.plan.kind===`workspaceLifecycle`&&e.plan.action!==`restore`,warningLabel:e.plan.kind===`deviceOpenUrl`?`High risk · opens an external URL or deep link`:null,summary:e.promptSummary,expiresAt:e.expiresAt,isPending:e.status===`pending-user-approval`,outcomeLabel:Ii(e),executionLabel:a.label,completionReturns:e.completionReturns,affectedThreadIds:a.affectedThreadIds,affectedProjectIds:a.affectedProjectIds,detailSections:i.detailSections}}function zi(e){return Object.entries(e).filter(([e])=>[`customSystemPrompt`,`scripts`,`preferredRemoteName`].includes(e)).map(([e,t])=>`${e}: ${JSON.stringify(t)}`)}var Bi=n(e=>({queueByEnvironmentId:{},applyStreamEvent:(t,n)=>e(e=>{let r=e.queueByEnvironmentId[t]??yi,i=Di(r,n);return i===r?e:{queueByEnvironmentId:{...e.queueByEnvironmentId,[t]:i}}}),clearEnvironment:t=>e(e=>{if(!(t in e.queueByEnvironmentId))return e;let n={...e.queueByEnvironmentId};return delete n[t],{queueByEnvironmentId:n}})}));function Vi(e){let{environmentId:t,source:n,sink:r}=e,i=!1,a=n.subscribeProposals(e=>{i||r.applyStreamEvent(t,e)},{onError:()=>{i||(r.clearEnvironment(t),e.onError?.())}});return()=>{i||(i=!0,a())}}function Hi(e){let t=!1,n=0,r=!1,i=!1;return{refresh:async()=>{if(!t){if(r){i=!0;return}r=!0;do{i=!1;let r=n;try{let i=await e.read();!t&&r===n&&e.onValue(i)}catch(i){!t&&r===n&&e.onError(i)}if(t)break}while(i);r=!1}},invalidate:()=>{n++,i=!1},stop:()=>{t=!0}}}var V=6e4,H=60*V,U=24*H,W=7*U,G={minIntervalMs:p,horizonMs:m,perProject:25,promptMax:u,titleMax:200,approvalTtlMs:v,historyMax:50};function K(e){return typeof e==`number`?e:typeof e==`string`?Date.parse(e):NaN}function Ui(e){return Number.isFinite(e)?new Date(e).toISOString():``}function q(e){return e.kind===`once`?{kind:`once`,runAt:K(e.runAt)}:{kind:`fixed-interval`,startsAt:K(e.startsAt),intervalMs:Number(e.intervalMs),endsAt:K(e.endsAt)}}function Wi(e){let t=q(e);return t.kind===`once`?{kind:`once`,runAt:Ui(t.runAt)}:{kind:`fixed-interval`,startsAt:Ui(t.startsAt),intervalMs:Math.round(t.intervalMs),endsAt:Ui(t.endsAt)}}var J=e=>String(e).padStart(2,`0`),Gi=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Ki=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],qi=Gi,Ji=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],Yi=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],Xi=Ji;function Zi(e){let t=new Date(e);return t.setHours(0,0,0,0),t.getTime()}function Qi(e,t){let n=new Date(e);return n.setDate(n.getDate()+t),n.getTime()}function $i(e,t){let n=new Date(e),r=n.getDate();return n.setDate(1),n.setMonth(n.getMonth()+t),n.setDate(Math.min(r,ea(n.getFullYear(),n.getMonth()))),n.getTime()}function ea(e,t){return new Date(e,t+1,0).getDate()}function ta(e){let t=new Date(e);return t.getHours()*60+t.getMinutes()}function na(e,t){let n=new Date(e);return n.setHours(Math.floor(t/60),t%60,0,0),n.getTime()}function ra(e,t){return Zi(e)===Zi(t)}function Y(e,t){return Math.round((Zi(t)-Zi(e))/U)}var ia=e=>Math.floor(e/V)*V,aa=e=>Math.round(e/V)*V,oa=e=>Math.ceil(e/(15*V))*15*V,sa=e=>Math.floor(e/(15*V))*15*V;function ca(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||`Local time`}catch{return`Local time`}}var la=(e,t)=>t!=null&&new Date(e).getFullYear()!==new Date(t).getFullYear()?`, ${new Date(e).getFullYear()}`:``;function X(e){let t=new Date(K(e));return`${J(t.getHours())}:${J(t.getMinutes())}`}function ua(e,t=!1){let n=new Date(K(e)).getDay();return(t?Yi:Ji)[n]??``}function da(e,t){let n=K(e),r=new Date(n);return`${Ji[r.getDay()]}, ${Gi[r.getMonth()]} ${r.getDate()}${la(n,t)}`}function Z(e,t){let n=K(e),r=new Date(n);return`${Gi[r.getMonth()]} ${r.getDate()}${la(n,t)}`}function fa(e,t){return`${da(e,t)} · ${X(e)}`}function pa(e,t){return`${Z(e,t)}, ${X(e)}`}function ma(e){if(!Number.isFinite(e)||e<=0)return`—`;if(e%6048e5==0)return e===6048e5?`1 week`:`${e/W} weeks`;if(e%864e5==0)return e===864e5?`1 day`:`${e/U} days`;let t=Math.floor(e/H),n=Math.round(e%H/V);return t?n?`${t} h ${n} min`:`${t} h`:`${n} min`}function ha(e){if(e>=8634e4){let t=Math.round(e/U);return`${t} ${t===1?`day`:`days`}`}return e>=36e5?`${Math.round(e/H)} h`:`${Math.round(e/V)} min`}function ga(e){let t=Math.max(0,Math.ceil(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n?`${n}:${J(r)}:${J(i)}`:`${r}:${J(i)}`}function _a(e,t={}){if(t.exact)return ga(e);let n=Math.max(0,e);if(n<12e4)return ga(n);if(n<36e5)return`${Math.ceil(n/V)}m`;let r=Math.ceil(n/V);return r%60?`${Math.floor(r/60)}h ${r%60}m`:`${r/60}h`}function va(e,t,n=` `){let r=K(e),i=Y(t,r),a=X(r);return i===0?`today${n}${a}`:i===1?`tomorrow${n}${a}`:i===-1?`yesterday${n}${a}`:`${Z(r,t)}, ${a}`}function ya(e,t){let n=K(e),r=Y(t,n),i=X(n);return r===0?`today at ${i}`:r===1?`tomorrow at ${i}`:r===-1?`yesterday at ${i}`:`${da(n,t)} at ${i}`}function Q(e,t){let n=K(e),r=Y(t,n),i=X(n);return r===0?`today ${i}`:r===1?`tomorrow ${i}`:r===-1?`yesterday ${i}`:fa(n)}function ba(e,t){let n=K(e),r=n-t,i=Math.abs(r),a=r>0,o=e=>a?`in ${e}`:`${e} ago`;if(i<45e3)return`now`;if(i<432e5){let e=Math.floor(i/H),t=Math.max(+!e,Math.floor(i%H/V));return o(e?t?`${e}h ${t}m`:`${e}h`:`${t}m`)}let s=Math.abs(Y(t,n));return s===0||i<1296e5?o(`${Math.round(i/H)}h`):s===1?a?`tomorrow`:`yesterday`:o(`${s} days`)}function xa(e){let t=q(e);return t.kind===`once`?t.runAt:t.startsAt}function Sa(e){let t=q(e);return t.kind===`once`?t.runAt:!(t.intervalMs>0)||t.endsAt<t.startsAt?t.startsAt:t.startsAt+Math.floor((t.endsAt-t.startsAt)/t.intervalMs)*t.intervalMs}function Ca(e,t=-1/0,n=1/0,r=500){if(!e)return[];let i=q(e);if(i.kind===`once`)return i.runAt>=t&&i.runAt<=n&&r>0?[i.runAt]:[];let{startsAt:a,intervalMs:o,endsAt:s}=i;if(!(o>0)||!Number.isFinite(a)||!Number.isFinite(s))return[];let c=[],l=t>a?Math.ceil((t-a)/o):0,u=Math.min(s,n);for(let e=a+l*o;e<=u&&c.length<r;e+=o)c.push(e);return c}function wa(e,t){if(!e)return null;let n=q(e);return n.kind===`once`?n.runAt>t?n.runAt:null:Ca(n,t+1,1/0,1)[0]??null}function Ta(e,t=-1/0){if(!e)return 0;let n=q(e);if(n.kind===`once`)return+(n.runAt>=t);if(!(n.intervalMs>0)||!(n.endsAt>=n.startsAt))return 0;let r=t>n.startsAt?Math.ceil((t-n.startsAt)/n.intervalMs):0,i=Math.floor((n.endsAt-n.startsAt)/n.intervalMs);return Math.max(0,i-r+1)}function Ea(e,t,n={}){let r=q(e),i=t+Math.max(0,n.leadMs??0);if(r.kind===`once`||r.startsAt>i)return r;let a=wa(r,i)??(r.startsAt>t?null:wa(r,t));return a==null?r:{...r,startsAt:a}}function Da(e,t){if(!e)return null;let n=q(e);if(n.kind===`once`||n.intervalMs%36e5!=0||n.intervalMs<864e5)return null;let r=Ca(n,t,1/0,120);for(let e=1;e<r.length;e++){let t=X(r[e-1]),n=X(r[e]);if(t!==n)return{at:r[e],from:t,to:n}}return null}var Oa=e=>{let t=new Date(e);return Math.round(new Date(t.getFullYear(),t.getMonth(),t.getDate(),12).getTime()/U)};function ka(e,t){if(!e)return null;let n=q(e);if(n.kind===`once`||!Da(n,t))return null;let r=Ca(n,t,1/0,160),i=r.findIndex((e,t)=>t>0&&X(e)!==X(r[t-1]));if(i<1)return null;let a=r[i-1],o=r[i],s=e=>new Date(e).getTimezoneOffset(),c=a,l=o;for(;l-c>V;){let e=Math.floor((c+l)/2);s(e)===s(c)?c=e:l=e}let u=n.intervalMs,d=u===864e5?`24-hour`:u%6048e5==0?`${u/W}-week`:u%864e5==0?`${u/U}-day`:ma(u),f=s(o)>s(a)?`back`:`forward`,p=Oa(o)===Oa(l)?`from then on`:`from ${da(o)}`;return{change:l,run:o,from:X(a),to:X(o),text:`Clocks go ${f} ${Z(l,t)} — ${p} it runs at ${X(o)}, not ${X(a)} (fixed ${d} interval).`}}function Aa(e,t){return e.startsAt>t?e.startsAt:wa(e,t)??e.startsAt}function ja(e,t){if(!e)return``;let n=q(e);if(n.kind===`once`)return`Once`;let r=n.intervalMs;if(r%864e5==0){let e=Aa(n,t),i=r===864e5?X(e):`${ua(e)} ${X(e)}`;return`Every ${r===864e5?`24 h`:`${r/U} days`} from ${i}`}return r===36e5?`Hourly`:`Every ${ma(r)}`}function Ma(e,t){if(!e)return``;let n=q(e);return n.kind===`once`?`Once · ${va(n.runAt,t)}`:`${ja(n,t)} · until ${Z(n.endsAt,t)}`}function Na(e,t,n={}){if(!e)return``;let r=q(e);if(r.kind===`once`){let e=Y(t,r.runAt),n=X(r.runAt);return e===0?`once, today at ${n}`:e===1?`once, tomorrow at ${n}`:`once, on ${da(r.runAt)} at ${n}`}let i=r.intervalMs,a=r.startsAt>t,o=n.dst?Da(r,t):null,s=o?` (${o.to} from ${Z(o.at,t)})`:``,c;if(i%864e5==0){let e=i===864e5?`every 24 hours`:`every ${i/U} days`,n=Aa(r,t);c=`${e} from ${a?ya(n,t):i===864e5?X(n):`${ua(n)} ${X(n)}`}${s}`}else{let e=i===36e5?`every hour`:i%36e5==0?`every ${i/H} hours`:`every ${Math.round(i/V)} minutes`;c=a?`${e} from ${ya(r.startsAt,t)}${s}`:`${e}${s}`}return`${c} until ${Z(r.endsAt,t)}`}function Pa(e){let t=e;if(t===864e5)return`day`;if(t===6048e5)return`week`;if(t%6048e5==0)return`${t/W} weeks`;if(t%864e5==0)return`${t/U} days`;if(t===36e5)return`hour`;if(t%36e5==0)return`${t/H} hours`;let n=Math.round(t/V);return n<60?`${n} minutes`:`${Math.floor(n/60)} h ${n%60} min`}function Fa(e){if(!(e>0))return`—`;if(e%6048e5==0)return e===6048e5?`Every week`:`Every ${e/W} weeks`;if(e%864e5==0)return e===864e5?`Every day`:`Every ${e/U} days`;if(e%36e5==0)return e===36e5?`Every hour`:`Every ${e/H} hours`;let t=Math.round(e/V);return t<180?`Every ${t} minutes`:`Every ${Math.floor(t/60)} h ${t%60} min`}var Ia=[{label:`15m`,ms:15*V},{label:`30m`,ms:30*V},{label:`1h`,ms:H},{label:`2h`,ms:2*H},{label:`6h`,ms:6*H},{label:`Daily`,ms:U},{label:`Weekly`,ms:W}],La=[{label:`1 day`,ms:U},{label:`1 week`,ms:W},{label:`2 weeks`,ms:2*W},{label:`30 days`,ms:30*U}];function Ra(e,t){return t%864e5==0?Qi(e,Math.round(t/U)):e+t}function za(e){return ia(e+G.horizonMs)}function Ba(e,t){return La.find(n=>Math.abs(t-Ra(e,n.ms))<6e4||Math.abs(t-e-n.ms)<6e4)??null}function Va(e,t,n){let r=Ba(e,t);if(r)return{kind:`dur`,ms:r.ms};let i=za(n);return t<=i+6e4&&t>i-864e5&&t-e>864e5?{kind:`max`}:{kind:`date`}}function Ha(e,t,n){let r=Ba(e,t);return r?{conn:`for`,text:r.label,dur:!0}:{conn:`until`,text:Z(t,n),dur:!1}}function Ua(e,t){if(!e)return null;let n=q(e),r=Ca(n,t,1/0,5),i=Ta(n,t);return r.length?{kind:n.kind,next:r,count:i,first:r[0],last:Sa(n)}:{kind:n.kind,next:r,count:0,first:null,last:null}}function Wa(e,t,n=`auto`){if(!e)return``;let r=q(e),i=Ua(r,t);if(!i||!i.count)return``;if(r.kind===`fixed-interval`&&r.intervalMs%864e5==0){let e=Ca(r,t,1/0,400),n=ta(e[0]),i=e.findIndex(e=>ta(e)!==n);if(i>=1){let n=e[i-1],r=new Date(n).getTimezoneOffset(),a=n;for(;a<e[i]&&new Date(a).getTimezoneOffset()===r;)a+=H;return`Clocks go ${new Date(e[i]).getTimezoneOffset()>r?`back`:`forward`} on ${Z(a,t)} — from then on runs land at ${X(e[i])}, since the interval is elapsed time.`}}if(n===!1)return``;if(r.kind===`once`)return n===!0?`It waits up to 15 min for your approval when it's due.`:``;let a=U/r.intervalMs;return a>8&&i.count>8?`About ${Math.round(a)} runs a day — each waits up to 15 min for your approval.`:n===!0?`Each run waits up to 15 min for your approval.`:``}function Ga(e){return e.displayName?.trim()||l[e.driver]||e.instanceId}function Ka(e){return e.enabled!==!1&&e.installed!==!1&&(e.status??`ready`)===`ready`&&(e.availability??`available`)===`available`}function qa(e,t){return t.find(t=>t.instanceId===e.instanceId)?.models.find(t=>t.slug===e.model)??null}var Ja=(e,t)=>e.type===`boolean`?typeof t==`boolean`:typeof t==`string`&&e.options.some(e=>e.id===t);function Ya(e,t){if(!e?.instanceId||!e.model)return`Pick a model.`;let n=t.find(t=>t.instanceId===e.instanceId);if(!n)return`${e.instanceId} isn't set up on this device.`;let r=Ga(n);if(!Ka(n))return`${r} ${n.enabled===!1?`is turned off`:n.installed===!1?`isn't installed`:`isn't ready`} on this device. Pick another model.`;let i=qa(e,t);if(!i)return`${e.model} isn't available on ${r} any more. Pick another model.`;let a=pe(i),o=new Set;for(let t of e.options??[]){if(o.has(t.id))return`${a} has ${t.id} set twice. Pick the model again.`;o.add(t.id);let e=i.capabilities?.optionDescriptors?.find(e=>e.id===t.id);if(!e)return`${a} has no ${t.id} setting any more. Pick the model again.`;if(!Ja(e,t.value))return`${a} doesn't offer ${e.label} “${String(t.value)}” any more. Pick the model again.`}return null}function Xa(e,t){let n=qa(e,t),r=e.options??[];if(!n||r.length===0)return e;let i=new Set,a=r.filter(e=>{if(i.has(e.id))return!1;i.add(e.id);let t=n.capabilities?.optionDescriptors?.find(t=>t.id===e.id);return t!==void 0&&Ja(t,e.value)});if(a.length===r.length)return e;let{options:o,...s}=e;return a.length>0?{...s,options:a}:s}function Za(e,t,n={}){let r={},i=G,a=e.execution.title.trim();a?a.length>i.titleMax&&(r.title=`Keep the title under ${i.titleMax} characters.`):r.title=`Give it a short title.`;let o=e.execution.prompt.trim();o?o.length>i.promptMax&&(r.prompt=`The prompt is ${o.length.toLocaleString(`en-US`)} characters; the limit is ${i.promptMax.toLocaleString(`en-US`)}.`):r.prompt=`Tell the agent what to do on each run.`;let s=e.execution.modelSelection;if(!s?.instanceId||!s.model)r.model=`Pick a model.`;else if(n.providers){let e=Ya(s,n.providers);e&&(r.model=e)}let c=t+i.horizonMs;if(!e.schedule)r.start=`Pick when it runs.`;else{let n=q(e.schedule);n.kind===`once`?Number.isFinite(n.runAt)?n.runAt<=t?r.start=`That time has passed. Pick a time after ${va(t,t)}.`:n.runAt>c&&(r.start=`Schedules reach at most 90 days ahead — ${Z(c,t)} at the latest.`):r.start=`Pick a date and time.`:(Number.isFinite(n.startsAt)?n.startsAt<=t&&(r.start=`The first run has to be in the future — after ${va(t,t)}.`):r.start=`Pick when the first run happens.`,!Number.isFinite(n.intervalMs)||n.intervalMs<=0?r.interval=`Pick how often it runs.`:n.intervalMs<i.minIntervalMs&&(r.interval=`Runs can be at most every 15 minutes.`),Number.isFinite(n.endsAt)?Number.isFinite(n.startsAt)&&n.endsAt<n.startsAt?r.end=`It ends before the first run.`:n.endsAt>c&&(r.end=`Recurring schedules end within 90 days — ${Z(c,t)} at the latest.`):r.end=`Recurring schedules need an end.`)}return e.enabled!==!1&&!n.editingActive&&n.activeCount!=null&&n.activeCount>=i.perProject&&(r.limit=`${n.projectName??`This project`} already has ${i.perProject} active schedules, the most a project can have. Pause or cancel one first.`),{ok:Object.keys(r).length===0,errors:r}}var Qa={materializing:{label:`Preparing`,tone:`zinc`,active:!0},"pending-approval":{label:`Waiting for approval`,tone:`wait`,active:!0},approved:{label:`Approved`,tone:`fg`,active:!0},executing:{label:`Starting`,tone:`fg`,active:!0},completed:{label:`Dispatched`,tone:`fg`,active:!1},failed:{label:`Failed`,tone:`err`,active:!1},rejected:{label:`Rejected`,tone:`faint`,active:!1},expired:{label:`Expired`,tone:`faint`,active:!1},cancelled:{label:`Cancelled`,tone:`faint`,active:!1}},$a=new Set([`materializing`,`approved`,`executing`]),eo=new Set([`rejected`,`expired`,`cancelled`]),to=e=>Qa[e.run.status].active,no={edit:`Change proposed`,pause:`Pause proposed`,resume:`Resume proposed`,cancel:`Cancel proposed`},ro={edit:`Change expired`,pause:`Pause expired`,resume:`Resume expired`,cancel:`Cancel expired`};function io(e){return!!e&&!e.cancelled&&!e.definition.enabled}function ao(e){return!!e&&e.enabled&&!e.cancelled&&e.nextRunAt!==null}function oo(e){return e?e.automations.filter(ao).length:0}var so=(e,t)=>e.projectId===t.projectId&&e.title===t.title&&e.prompt===t.prompt&&e.runtimeMode===t.runtimeMode&&e.envMode===t.envMode&&(e.baseRef??null)===(t.baseRef??null)&&(e.tokenMode??null)===(t.tokenMode??null)&&ae(e.modelSelection,t.modelSelection),co=(e,t)=>{let n=q(e),r=q(t);return n.kind===`once`||r.kind===`once`?n.kind===r.kind&&xa(n)===xa(r):n.intervalMs===r.intervalMs&&n.endsAt===r.endsAt&&(r.startsAt-n.startsAt)%n.intervalMs===0};function lo(e,t){return e.enabled!==t.enabled&&so(e.execution,t.execution)&&co(e.schedule,t.schedule)?t.enabled?`resume`:`pause`:`edit`}var uo=`The change couldn't be applied.`,fo=/^Agent Control plan validation failed \(([a-z-]+)\): ([\s\S]*)$/;function po(e,t){switch(e){case`schedule-invalid`:return/first scheduled run/i.test(t)?`The first run time passed before approval. Edit the start and save again.`:`The schedule no longer fits the limits. Edit it and save again.`;case`automation-limit`:return`This project already has ${G.perProject} active schedules.`;case`automation-stale`:return/already exists/i.test(t)?`A schedule with this id already exists.`:/cancelled/i.test(t)?`Cancelled schedules can't be changed.`:`The schedule changed since this was proposed. Review it again.`;case`automation-unavailable`:return/^Automation is unavailable/i.test(t)?`This schedule no longer exists.`:`Schedules aren't available on this device right now.`;case`provider-unavailable`:case`model-unavailable`:case`invalid-options`:return`The model isn't available on this device any more. Edit the model and save again.`;case`worktree-preflight`:return`The branch isn't available any more. Pick another and save again.`;default:return null}}function mo(e){if(e.status!==`failed`)return null;let t=e.result,n=t?.outcome===`failed`?t.error.message.trim():``,r=fo.exec(n);if(!r)return n||uo;let i=r[2]?.trim()??``;return po(r[1]??``,i)??(i||uo)}function ho(e){let t={id:e.proposalId,status:e.status,createdAt:e.createdAt,expiresAt:e.expiresAt,expiresAtMs:K(e.expiresAt),failure:mo(e),proposal:e},n=e.plan;switch(n.kind){case`createAutomation`:return{...t,kind:`create`,automationId:n.automationId,projectId:n.definition.execution.projectId,title:n.definition.execution.title,before:null,after:n.definition,expectedRevision:null};case`updateAutomation`:return{...t,kind:lo(n.before.definition,n.after),automationId:n.automationId,projectId:n.after.execution.projectId,title:n.after.execution.title,before:n.before.definition,after:n.after,expectedRevision:n.before.revision};case`cancelAutomation`:return{...t,kind:`cancel`,automationId:n.automationId,projectId:n.expected.definition.execution.projectId,title:n.expected.definition.execution.title,before:n.expected.definition,after:null,expectedRevision:n.expected.revision};default:return null}}var go={"pending-user-approval":0,approved:1,executing:2,rejected:3,expired:3,completed:3,failed:3,cancelled:3};function _o(...e){let t=new Map;for(let n of e)for(let e of n){let n=t.get(e.proposalId);(!n||go[e.status]>go[n.status]||go[e.status]===go[n.status]&&e.updatedAt>n.updatedAt)&&t.set(e.proposalId,e)}return[...t.values()]}var vo=(e,t)=>e.createdAt.localeCompare(t.createdAt)||e.id.localeCompare(t.id),yo=(e,t)=>e.status===`pending-user-approval`&&(t==null||e.expiresAtMs>t);function bo(e,t={}){return _o(e).map(ho).filter(e=>e!==null&&(t.projectId===void 0||e.projectId===t.projectId)&&yo(e,t.nowMs)).toSorted(vo)}function xo(e){let t=new Map;for(let n of _o(e.snapshot.proposals,e.queueProposals??[])){let r=ho(n);if(!r||r.projectId!==e.projectId)continue;let i=t.get(r.automationId);(!i||vo(i,r)<0)&&t.set(r.automationId,r)}return t}function So(e){let t=new Map(e.snapshot.automations.map(e=>[e.automationId,e])),n=new Map;for(let[r,i]of xo(e)){if(!(i.status===`expired`||i.status===`pending-user-approval`&&i.expiresAtMs<=e.nowMs)||e.dismissedLapsed?.has(i.id))continue;let a=t.get(r);(i.kind===`create`?a!==void 0:!a||a.cancelled)||n.set(r,i)}return n}function Co(e,t){let{run:n}=e,r=(n.proposalId===null?void 0:t.find(e=>e.proposalId===n.proposalId))?.expiresAt??Ui(K(n.updatedAt)+9e5);return{entry:e,proposalId:n.proposalId,expiresAt:r,expiresAtMs:K(r),scheduledFor:n.scheduledFor,scheduledForMs:K(n.scheduledFor),coalescedOccurrences:n.coalescedOccurrences}}var wo=(e,t)=>K(t.run.createdAt)-K(e.run.createdAt)||K(t.run.scheduledFor)-K(e.run.scheduledFor);function To(e){let{snapshot:t,nowMs:n}=e,r=e.queueProposals??[],i=_o(t.proposals,r),a=bo(i,{projectId:e.projectId,nowMs:n}),o=new Map;for(let e of a)o.set(e.automationId,e);let s=So(e),c=new Map;for(let e of t.runs){let t=c.get(e.run.automationId);t?t.push(e):c.set(e.run.automationId,[e])}let l=[];for(let n of t.automations){if(n.cancelled||n.projectId!==e.projectId)continue;let t=(c.get(n.automationId)??[]).toSorted(wo),r=t.find(e=>e.run.status===`pending-approval`)??null,a=t.find(e=>$a.has(e.run.status))??null,u=t.filter(e=>!to(e)),d=o.get(n.automationId)??null,f=r?`awaiting-approval`:a?`running`:io(n)?`paused`:!n.enabled||n.nextRunAt===null?`finished`:`scheduled`;l.push({id:n.automationId,automation:n,proposal:d,lapsed:d?null:s.get(n.automationId)??null,def:n.definition,title:n.definition.execution.title,projectId:n.projectId,state:f,nextRunAt:n.nextRunAt===null?null:K(n.nextRunAt),dueRun:r?Co(r,i):null,activeRun:a,lastRun:u[0]??null,runs:t,history:u})}let u=new Set(l.map(e=>e.id));for(let e of a)e.kind===`create`&&e.after&&!u.has(e.automationId)&&(t.automations.some(t=>t.automationId===e.automationId)||(u.add(e.automationId),l.push(Eo(e,e.after,`pending-create`,xa(e.after.schedule)))));for(let e of s.values())e.kind===`create`&&e.after&&!u.has(e.automationId)&&(u.add(e.automationId),l.push(Eo(e,e.after,`lapsed`,null)));let d=e=>e.state===`pending-create`||e.state===`lapsed`?0:1;return l.toSorted((e,t)=>d(e)-d(t)||(e.title||``).localeCompare(t.title||``))}function Eo(e,t,n,r){return{id:e.automationId,automation:null,proposal:n===`pending-create`?e:null,lapsed:n===`lapsed`?e:null,def:t,title:t.execution.title,projectId:e.projectId,state:n,nextRunAt:r,dueRun:null,activeRun:null,lastRun:null,runs:[],history:[]}}function Do(e){return e.flatMap(e=>e.dueRun?[e.dueRun]:[]).toSorted((e,t)=>e.expiresAtMs-t.expiresAtMs)}function Oo(e,t){let n=``,r=``,i=null;switch(e.state){case`awaiting-approval`:n=`Waiting for approval`,r=`fg`;break;case`running`:n=Qa[e.activeRun?.run.status??`executing`].label,r=`fg`;break;case`paused`:n=`Paused`;break;case`finished`:n=`Finished`;break;case`pending-create`:n=`Not active yet`;break;case`lapsed`:n=`Proposal expired`,r=`fg`;break;default:i=e.nextRunAt}let a=``,o=``;return e.proposal&&e.proposal.kind!==`create`?(a=no[e.proposal.kind],o=`prop`):e.lapsed&&e.lapsed.kind!==`create`?(a=ro[e.lapsed.kind],o=`lapsed`):e.lastRun?.run.status===`failed`&&(a=`Last run failed`,o=`err`),{title:e.title||`Untitled schedule`,summary:ja(e.def.schedule,t),meta:n,metaTone:r,soonAt:i,tag:a,tagTone:o}}var $={missing:`This run is no longer available.`,failed:`Delivery is uncertain for a failed dispatch. Open its thread or check the device before scheduling new work.`,status:`Only rejected, expired or cancelled runs can be retried.`,started:`This run may have started work. Open its thread to inspect or stop it before scheduling another task.`,retried:`This run was already retried.`,cancelled:`The schedule was cancelled.`,changed:`The schedule changed since this run. Review it before running again.`,busy:`Another run of this schedule is already waiting or running.`};function ko(e,t){let n=e=>({ok:!1,reason:e,block:null});if(!e)return n($.missing);let{run:r}=e;if(r.status===`failed`)return n($.failed);if(!eo.has(r.status))return n($.status);let i=t.find(e=>e.id===r.automationId)??null,a=i?.runs??[],o=a.find(to)??null,s=e.threadIds.length>0||r.status===`cancelled`&&r.proposalId!==null?$.started:a.some(e=>e.retryOfRunId===r.runId)?$.retried:!i?.automation||i.automation.cancelled?$.cancelled:i.automation.revision===r.automationRevision?o?$.busy:null:$.changed;return s===null?{ok:!0,reason:null,block:null}:s===$.started?n(s):o?{ok:!1,reason:s,block:{short:o.run.status===`pending-approval`?`Retry opens once the waiting run is decided.`:`Retry opens once the current run is dispatched.`,long:s,active:!0}}:a.some(e=>e.retryOfRunId===r.runId)?{ok:!1,reason:s,block:{short:`Retried`,long:s,active:!1}}:s===$.changed?{ok:!1,reason:s,block:{short:`Schedule changed since`,long:s,active:!1}}:n(s)}function Ao(e){return e===`local`?`the main checkout`:`a new worktree`}var jo=[`effort`,`reasoningEffort`];function Mo(e,t=[],n={}){if(!e)return`No model`;let r=t.find(t=>t.instanceId===e.instanceId)?.models.find(t=>t.slug===e.model),i=r?pe(r):e.model;if(!n.effort)return i;let a=e.options?.find(e=>jo.includes(e.id));if(!a||typeof a.value!=`string`||!a.value)return i;let o=a.value,s=r?.capabilities?.optionDescriptors?.find(e=>e.id===a.id);return`${i} · ${(s?.type===`select`?s.options.find(e=>e.id===o)?.label:void 0)??`${o[0]?.toUpperCase()??``}${o.slice(1)}`}`}function No(e,t,n){let{nowMs:r}=n,i=[],a=(e,t,n,r)=>i.push({key:e,label:t,before:n,after:r}),o=q(e.schedule),s=q(t.schedule);if(o.kind!==s.kind)a(`when`,`When`,Ma(o,r),Ma(s,r));else if(o.kind===`once`&&s.kind===`once`)o.runAt!==s.runAt&&a(`runsAt`,`Runs at`,Q(o.runAt,r),Q(s.runAt,r));else if(o.kind===`fixed-interval`&&s.kind===`fixed-interval`){o.intervalMs!==s.intervalMs&&a(`every`,`Every`,Pa(o.intervalMs),Pa(s.intervalMs));let e=wa(o,r)??o.startsAt;(o.intervalMs!==s.intervalMs||(s.startsAt-o.startsAt)%s.intervalMs!==0)&&e!==s.startsAt&&a(`nextRun`,`Next run`,Q(e,r),Q(s.startsAt,r)),o.endsAt!==s.endsAt&&a(`ends`,`Ends`,Z(o.endsAt,r),Z(s.endsAt,r))}let c=e.execution,l=t.execution;if(c.title!==l.title&&a(`title`,`Title`,c.title,l.title),c.prompt!==l.prompt){let e=l.prompt.startsWith(c.prompt)?l.prompt.slice(c.prompt.length).trim():null;a(`prompt`,`Prompt`,null,e?`+ “${e}”`:`Rewritten`)}let u=n.providers??[];if(c.modelSelection.model!==l.modelSelection.model||c.modelSelection.instanceId!==l.modelSelection.instanceId)a(`model`,`Model`,Mo(c.modelSelection,u),Mo(l.modelSelection,u));else{let e=Mo(c.modelSelection,u,{effort:!0}),t=Mo(l.modelSelection,u,{effort:!0});e!==t&&a(`effort`,`Effort`,e,t)}return c.runtimeMode!==l.runtimeMode&&a(`permissions`,`Permissions`,n.runtimeModeLabel(c.runtimeMode),n.runtimeModeLabel(l.runtimeMode)),c.envMode===l.envMode?l.envMode===`worktree`&&(c.baseRef??``)!==(l.baseRef??``)&&a(`branch`,`Branch`,c.baseRef??`—`,l.baseRef??`—`):a(`runsIn`,`Runs in`,Ao(c.envMode),Ao(l.envMode)),i}function Po(e,t={}){let n=e.execution,r=q(e.schedule),i=r.kind===`once`?r.runAt:r.startsAt;return{id:t.id??null,projectId:n.projectId,title:n.title,prompt:n.prompt,modelSelection:n.modelSelection,runtimeMode:n.runtimeMode,envMode:n.envMode,baseRef:n.envMode===`worktree`?n.baseRef??``:t.defaultBaseRef??`main`,tokenMode:n.tokenMode??null,kind:r.kind,start:i,intervalMs:r.kind===`once`?U:r.intervalMs,endsAt:r.kind===`once`?Qi(i,7):r.endsAt,enabled:e.enabled}}function Fo(e){return e.kind===`once`?{kind:`once`,runAt:e.start}:{kind:`fixed-interval`,startsAt:e.start,intervalMs:e.intervalMs,endsAt:e.endsAt}}function Io(e){let t=e.baseRef.trim();return{execution:{projectId:e.projectId,title:e.title.trim(),prompt:e.prompt.trim(),modelSelection:e.modelSelection,runtimeMode:e.runtimeMode,...e.tokenMode?{tokenMode:e.tokenMode}:{},envMode:e.envMode,...e.envMode===`worktree`&&t?{baseRef:t}:{}},schedule:Wi(Fo(e)),enabled:e.enabled}}function Lo(e){return JSON.stringify(Io(e))}function Ro(e){let t=new Date(e.nowMs);t.setDate(t.getDate()+1),t.setHours(9,0,0,0);let n=t.getTime();return{id:null,projectId:e.projectId,title:``,prompt:``,modelSelection:e.modelSelection,runtimeMode:`auto-accept-edits`,envMode:`worktree`,baseRef:e.baseRef??`main`,tokenMode:null,kind:`fixed-interval`,start:n,intervalMs:U,endsAt:n+30*U,enabled:!0}}function zo(e,t,n={}){let r=`definition`in e?e.definition:e.after??e.before,i=e.automationId;if(!r)throw Error(`A schedule proposal always carries a definition.`);return Po({...r,schedule:Wi(Ea(r.schedule,t))},{id:i,...n.defaultBaseRef?{defaultBaseRef:n.defaultBaseRef}:{}})}function Bo(e,t,n){return{...e.definition,schedule:Wi(Ea(e.definition.schedule,n,{leadMs:v})),enabled:t}}function Vo(e,t){let n=e.id&&t.snapshot?t.snapshot.automations.find(t=>t.automationId===e.id):void 0;return Za({execution:{title:e.title,prompt:e.prompt,modelSelection:e.modelSelection},schedule:Fo(e),enabled:e.enabled},t.nowMs,{...t.snapshot?{activeCount:oo(t.snapshot)}:{},editingActive:ao(n),...t.projectName?{projectName:t.projectName}:{},...t.providers?{providers:t.providers}:{}})}function Ho(e,t){if(e.kind!==`once`){let n=Ea(Fo(e),t),r=n.kind===`once`?n.runAt:n.startsAt;if(r>t&&r<=t+G.horizonMs)return r}return oa(t+V)}function Uo(e,t,n){let r=n.nowMs,i=[];if(t.start){let t=e.start<=r,n=t?Ho(e,r):oa(r+G.horizonMs-15*V);i.push({key:`start`,text:t?e.kind===`once`?`That time has passed.`:`Starts in the past.`:`More than 90 days ahead.`,fix:{label:`Use ${Q(n,r)}`,value:n}})}if(t.interval&&i.push({key:`interval`,text:`Under the 15-minute minimum.`,fix:{label:`Use 15 minutes`,value:15*V}}),t.end){let t=ia(r+G.horizonMs);if(e.endsAt<e.start){let n=Math.min(Qi(e.start,7),t);i.push({key:`end`,text:`Ends before the first run.`,fix:n>=e.start?{label:`End ${Z(n,r)}`,value:n}:null})}else i.push({key:`end`,text:`Ends past the 90-day limit.`,fix:{label:`End ${Z(t,r)}`,value:t}})}return t.title&&(n.attempted||n.titleTouched)&&i.push({key:`title`,text:t.title,fix:null}),i}var Wo=y(Qa,e=>e.label);function Go(e){return e.status===`pending-user-approval`&&e.plan.kind===`automationRun`}function Ko(e,t){let n=0;for(let r of t)for(let t of Object.values(e[r]?.proposalsById??{}))Go(t)&&(n+=1);return n}function qo(e){return Hi({read:()=>e.api.snapshot({projectId:e.projectId}),onValue:e.onSnapshot,onError:()=>e.onError()})}var Jo={};function Yo(e){let t=e.plan;return t.kind===`createAutomation`||t.kind===`updateAutomation`||t.kind===`cancelAutomation`?t.automationId:null}var Xo=(e,t)=>(e.createdAt.localeCompare(t.createdAt)||e.proposalId.localeCompare(t.proposalId))>0;function Zo(e){let t=Object.entries(e);return t.length<=200?e:Object.fromEntries(t.toSorted(([,e],[,t])=>t.updatedAt.localeCompare(e.updatedAt)).slice(0,200))}function Qo(e,t){let n=null;for(let r of t){if(!Si(r.status))continue;let t=Yo(r);if(t===null)continue;let i=(n??e)[t];(!i||i.proposalId!==r.proposalId&&Xo(r,i))&&(n??={...e},n[t]=r)}return n?Zo(n):e}function $o(e){return e.type===`snapshot`?[...e.queue.active,...e.queue.recent]:[e.proposal]}var es=n()(()=>({byEnvironment:{}}));function ts(e,t){let n=es.getState(),r=n.byEnvironment[e]??Jo,i=Qo(r,t);i!==r&&es.setState({byEnvironment:{...n.byEnvironment,[e]:i}})}function ns(e){let t=es.getState();if(!(e in t.byEnvironment))return;let n={...t.byEnvironment};delete n[e],es.setState({byEnvironment:n})}var rs=new WeakSet;function is(e){let t=()=>{let t=fe(e)?.client??null;if(!t||rs.has(t))return;let n=w(e,t)?.agentControl;n&&(rs.add(t),n.listProposals({recentLimit:100}).then(n=>{fe(e)?.client===t&&ts(e,n.recent)},()=>rs.delete(t)))},n=ge(t);return t(),n}function as(e){let t=null,n=null,r=()=>{let r=fe(e)?.client??null;if(r===t)return;n?.(),n=null,t=r;let i=r?w(e,r)?.agentControl:void 0;if(!i)return;let a=Bi.getState();n=Vi({environmentId:e,source:i,sink:{applyStreamEvent:(e,t)=>{a.applyStreamEvent(e,t),ts(e,$o(t))},clearEnvironment:e=>{a.clearEnvironment(e),ns(e)}}})},i=ge(r);return r(),()=>{i(),n?.()}}var os=new Map;function ss(e){let t=os.get(e);t||(t={count:0,stop:as(e),teardownScheduled:!1},os.set(e,t)),t.count+=1;let n=t,r=!1;return()=>{r||(r=!0,--n.count,!(n.count>0||n.teardownScheduled)&&(n.teardownScheduled=!0,queueMicrotask(()=>{n.teardownScheduled=!1,!(n.count>0||os.get(e)!==n)&&(os.delete(e),n.stop())})))}}function cs(e){return JSON.stringify([...new Set(e)].toSorted())}function ls(e){let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>typeof e==`string`).map(e=>c.make(e)):[]}function us(e){let t=(0,P.c)(5),n;t[0]===e?n=t[1]:(n=cs(e),t[0]=e,t[1]=n);let r=n,i,a;t[2]===r?(i=t[3],a=t[4]):(i=()=>{let e=ls(r).map(ss);return()=>{for(let t of e)t()}},a=[r],t[2]=r,t[3]=i,t[4]=a),(0,N.useEffect)(i,a)}function ds(e,t,n=`${t}s`){return`${e.toLocaleString(`en-US`)} ${e===1?t:n}`}export{ha as $,$n as $t,Oo as A,Nt as An,Bi as At,Yi as B,wr as Bt,io as C,Jt as Cn,Ma as Ct,Mo as D,Zt as Dn,Q as Dt,Uo as E,Qt as En,Za as Et,Ia as F,si as Ft,Y as G,pr as Gt,W as H,xr as Ht,V as I,ti as It,Ta as J,_r as Jt,oa as K,yr as Kt,Ki as L,Xr as Lt,G as M,yi as Mt,U as N,ki as Nt,mo as O,qt as On,na as Ot,H as P,ji as Pt,Va as Q,ar as Qt,qi as R,Kr as Rt,Ao as S,$t as Sn,ra as St,Lo as T,Yt as Tn,za as Tt,Qi as U,vr as Ut,Xi as V,Sr as Vt,$i as W,gr as Wt,Zi as X,mr as Xt,_a as Y,dr as Yt,ea as Z,br as Zt,No as _,On as _n,Na as _t,us as a,qn as an,ia as at,Fo as b,un as bn,Wa as bt,Wo as c,jn as cn,fa as ct,Qa as d,wn as dn,X as dt,ir as en,Ra as et,oo as f,Dn as fn,Fa as ft,To as g,kn as gn,wa as gt,Bo as h,fn as hn,ta as ht,ss as i,Kn as in,Xa as it,Vo as j,jt as jn,Ri as jt,ko as k,Ft as kn,Hi as kt,qo as l,An as ln,da as lt,Io as m,En as mn,ca as mt,ls as n,Qn as nn,Pa as nt,is as o,Yn as on,sa as ot,Ro as p,z as pn,Sa as pt,ka as q,hr as qt,cs as r,Jn as rn,xa as rt,es as s,Vn as sn,Z as st,ds as t,er as tn,Ha as tt,Ko as u,Tn as un,pa as ut,Po as v,dn as vn,ba as vt,bo as w,Xt as wn,q as wt,Do as x,cn as xn,Ua as xt,zo as y,Cn as yn,aa as yt,La as z,Vr as zt};
|
package/dist/client/assets/{ganttDiagram-PKOTCBZU-w0seBi3Q.js → ganttDiagram-PKOTCBZU-1q2nUL92.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{a as n,c as r,d as i,f as a,l as o,o as s,p as c}from"./noop-CdBy4H-p.js";import{t as l}from"./dist-v5Q1xZ2K.js";import{g as u}from"./chunk-NSK5VX7P-DuRkdn5k.js";import{t as d}from"./linear-DCT4R0u9.js";import{D as f,O as p,S as m,T as h,b as g,c as _,d as v,f as y,g as b,h as x,m as S,n as C,p as w,r as T,u as E,v as D,w as O}from"./time-DQ1f7CYz.js";import{i as k,n as A,t as j}from"./src-BISxbUej.js";import{n as M}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as ee,K as te,U as N,a as ne,c as re,s as ie,v as ae,w as oe,x as P,y as se}from"./chunk-I66GZJ75-BO6p4Aqg.js";var ce=Math.PI/180,le=180/Math.PI,F=18,ue=.96422,de=1,fe=.82521,pe=4/29,I=6/29,me=3*I*I,he=I*I*I;function ge(e){if(e instanceof L)return new L(e.l,e.a,e.b,e.opacity);if(e instanceof R)return we(e);e instanceof o||(e=i(e));var t=xe(e.r),n=xe(e.g),r=xe(e.b),a=ve((.2225045*t+.7168786*n+.0606169*r)/de),s,c;return t===n&&n===r?s=c=a:(s=ve((.4360747*t+.3850649*n+.1430804*r)/ue),c=ve((.0139322*t+.0971045*n+.7141733*r)/fe)),new L(116*a-16,500*(s-a),200*(a-c),e.opacity)}function _e(e,t,n,r){return arguments.length===1?ge(e):new L(e,t,n,r??1)}function L(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}a(L,_e,c(r,{brighter(e){return new L(this.l+F*(e??1),this.a,this.b,this.opacity)},darker(e){return new L(this.l-F*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=ue*ye(t),e=de*ye(e),n=fe*ye(n),new o(be(3.1338561*t-1.6168667*e-.4906146*n),be(-.9787684*t+1.9161415*e+.033454*n),be(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function ve(e){return e>he?e**(1/3):e/me+pe}function ye(e){return e>I?e*e*e:me*(e-pe)}function be(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function xe(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Se(e){if(e instanceof R)return new R(e.h,e.c,e.l,e.opacity);if(e instanceof L||(e=ge(e)),e.a===0&&e.b===0)return new R(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*le;return new R(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Ce(e,t,n,r){return arguments.length===1?Se(e):new R(e,t,n,r??1)}function R(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function we(e){if(isNaN(e.h))return new L(e.l,0,0,e.opacity);var t=e.h*ce;return new L(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}a(R,Ce,c(r,{brighter(e){return new R(this.h,this.c,this.l+F*(e??1),this.opacity)},darker(e){return new R(this.h,this.c,this.l-F*(e??1),this.opacity)},rgb(){return we(this).rgb()}}));function Te(e){return function(t,n){var r=e((t=Ce(t)).h,(n=Ce(n)).h),i=s(t.c,n.c),a=s(t.l,n.l),o=s(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var Ee=Te(n);function De(e){return e}var z=1,Oe=2,ke=3,B=4,Ae=1e-6;function je(e){return`translate(`+e+`,0)`}function Me(e){return`translate(0,`+e+`)`}function Ne(e){return t=>+e(t)}function Pe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Fe(){return!this.__axis}function Ie(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===z||e===B?-1:1,u=e===B||e===Oe?`x`:`y`,d=e===z||e===ke?je:Me;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):De),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?Pe:Ne)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===z?`0em`:e===ke?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,Ae).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,Ae).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===B||e===Oe?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(Fe).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Oe?`start`:e===B?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function Le(e){return Ie(z,e)}function Re(e){return Ie(ke,e)}var ze=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),Be=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Ve=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),He=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),Ue=l(),V=e(k(),1),We=e(ze(),1),Ge=e(Be(),1),Ke=e(Ve(),1),qe=e(He(),1),Je=(function(){var e=M(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],c=[1,32],l=[1,33],u=[1,34],d=[1,9],f=[1,10],p=[1,11],m=[1,12],h=[1,13],g=[1,14],_=[1,15],v=[1,16],y=[1,19],b=[1,20],x=[1,21],S=[1,22],C=[1,23],w=[1,25],T=[1,35],E={trace:M(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:M(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:M(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:M(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}M(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}M(b,`lex`);for(var x,S,C,w,T,E={},D,O,k,A;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var j=``;for(D in A=[],o[C])this.terminals_[D]&&D>d&&A.push(`'`+this.terminals_[D]+`'`);j=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-hePW80VL.js";import{a as n,c as r,d as i,f as a,l as o,o as s,p as c}from"./noop-CdBy4H-p.js";import{t as l}from"./dist-v5Q1xZ2K.js";import{g as u}from"./chunk-NSK5VX7P-DGo5UczH.js";import{t as d}from"./linear-DCT4R0u9.js";import{D as f,O as p,S as m,T as h,b as g,c as _,d as v,f as y,g as b,h as x,m as S,n as C,p as w,r as T,u as E,v as D,w as O}from"./time-DQ1f7CYz.js";import{i as k,n as A,t as j}from"./src-BISxbUej.js";import{n as M}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as ee,K as te,U as N,a as ne,c as re,s as ie,v as ae,w as oe,x as P,y as se}from"./chunk-I66GZJ75-CXSn8dDu.js";var ce=Math.PI/180,le=180/Math.PI,F=18,ue=.96422,de=1,fe=.82521,pe=4/29,I=6/29,me=3*I*I,he=I*I*I;function ge(e){if(e instanceof L)return new L(e.l,e.a,e.b,e.opacity);if(e instanceof R)return we(e);e instanceof o||(e=i(e));var t=xe(e.r),n=xe(e.g),r=xe(e.b),a=ve((.2225045*t+.7168786*n+.0606169*r)/de),s,c;return t===n&&n===r?s=c=a:(s=ve((.4360747*t+.3850649*n+.1430804*r)/ue),c=ve((.0139322*t+.0971045*n+.7141733*r)/fe)),new L(116*a-16,500*(s-a),200*(a-c),e.opacity)}function _e(e,t,n,r){return arguments.length===1?ge(e):new L(e,t,n,r??1)}function L(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}a(L,_e,c(r,{brighter(e){return new L(this.l+F*(e??1),this.a,this.b,this.opacity)},darker(e){return new L(this.l-F*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=ue*ye(t),e=de*ye(e),n=fe*ye(n),new o(be(3.1338561*t-1.6168667*e-.4906146*n),be(-.9787684*t+1.9161415*e+.033454*n),be(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function ve(e){return e>he?e**(1/3):e/me+pe}function ye(e){return e>I?e*e*e:me*(e-pe)}function be(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function xe(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Se(e){if(e instanceof R)return new R(e.h,e.c,e.l,e.opacity);if(e instanceof L||(e=ge(e)),e.a===0&&e.b===0)return new R(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*le;return new R(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Ce(e,t,n,r){return arguments.length===1?Se(e):new R(e,t,n,r??1)}function R(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function we(e){if(isNaN(e.h))return new L(e.l,0,0,e.opacity);var t=e.h*ce;return new L(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}a(R,Ce,c(r,{brighter(e){return new R(this.h,this.c,this.l+F*(e??1),this.opacity)},darker(e){return new R(this.h,this.c,this.l-F*(e??1),this.opacity)},rgb(){return we(this).rgb()}}));function Te(e){return function(t,n){var r=e((t=Ce(t)).h,(n=Ce(n)).h),i=s(t.c,n.c),a=s(t.l,n.l),o=s(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var Ee=Te(n);function De(e){return e}var z=1,Oe=2,ke=3,B=4,Ae=1e-6;function je(e){return`translate(`+e+`,0)`}function Me(e){return`translate(0,`+e+`)`}function Ne(e){return t=>+e(t)}function Pe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Fe(){return!this.__axis}function Ie(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===z||e===B?-1:1,u=e===B||e===Oe?`x`:`y`,d=e===z||e===ke?je:Me;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):De),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?Pe:Ne)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===z?`0em`:e===ke?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,Ae).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,Ae).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===B||e===Oe?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(Fe).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===Oe?`start`:e===B?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function Le(e){return Ie(z,e)}function Re(e){return Ie(ke,e)}var ze=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),Be=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Ve=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),He=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),Ue=l(),V=e(k(),1),We=e(ze(),1),Ge=e(Be(),1),Ke=e(Ve(),1),qe=e(He(),1),Je=(function(){var e=M(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],o=[1,30],s=[1,31],c=[1,32],l=[1,33],u=[1,34],d=[1,9],f=[1,10],p=[1,11],m=[1,12],h=[1,13],g=[1,14],_=[1,15],v=[1,16],y=[1,19],b=[1,20],x=[1,21],S=[1,22],C=[1,23],w=[1,25],T=[1,35],E={trace:M(function(){},`trace`),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:`error`,4:`gantt`,6:`EOF`,8:`SPACE`,10:`NL`,12:`weekday_monday`,13:`weekday_tuesday`,14:`weekday_wednesday`,15:`weekday_thursday`,16:`weekday_friday`,17:`weekday_saturday`,18:`weekday_sunday`,20:`weekend_friday`,21:`weekend_saturday`,22:`dateFormat`,23:`inclusiveEndDates`,24:`topAxis`,25:`axisFormat`,26:`tickInterval`,27:`excludes`,28:`includes`,29:`todayMarker`,30:`title`,31:`acc_title`,32:`acc_title_value`,33:`acc_descr`,34:`acc_descr_value`,35:`acc_descr_multiline_value`,36:`section`,38:`taskTxt`,39:`taskData`,40:`click`,41:`callbackname`,42:`callbackargs`,43:`href`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:M(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:o,17:s,18:c,19:18,20:l,21:u,22:d,23:f,24:p,25:m,26:h,27:g,28:_,29:v,30:y,31:b,33:x,35:S,36:C,37:24,38:w,40:T},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:M(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:M(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}M(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}M(b,`lex`);for(var x,S,C,w,T,E={},D,O,k,A;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var j=``;for(D in A=[],o[C])this.terminals_[D]&&D>d&&A.push(`'`+this.terminals_[D]+`'`);j=m.showPosition?`Parse error on line `+(c+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+A.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(j,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:A})}if(w[0]instanceof Array&&w.length>1)throw Error(`Parse Error: multiple actions possible at state: `+C+`, token: `+x);switch(w[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(w[1]),x=null,S?(x=S,S=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[w[1]][1],E.$=i[i.length-O],E._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},v&&(E._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(E,[s,l,c,h.yy,w[1],i,a].concat(p)),T!==void 0)return T;O&&(n=n.slice(0,-1*O*2),i=i.slice(0,-1*O),a=a.slice(0,-1*O)),n.push(this.productions_[w[1]][0]),i.push(E.$),a.push(E._$),k=o[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0},`parse`)};E.lexer=(function(){return{EOF:1,parseError:M(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:M(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:M(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:M(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:M(function(){return this._more=!0,this},`more`),reject:M(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:M(function(e){this.unput(this.match.slice(e))},`less`),pastInput:M(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:M(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:M(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ws as e}from"./runtime-DjjjAcTE.js";var t={name:`git-pull-request`,size:24,node:[[`circle`,{cx:`18`,cy:`18`,r:`3`,key:`1xkwt0`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M13 6h3a2 2 0 0 1 2 2v7`,key:`1yeb86`}],[`line`,{x1:`6`,x2:`6`,y1:`9`,y2:`21`,key:`rroup`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-CoA4358r.js";import{E as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-CoA4358r.js";import{E as e}from"./mermaid-parser.core-RK9ah5RM.js";export{e as createGitGraphServices};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e,i as t,m as n}from"./chunk-NSK5VX7P-DuRkdn5k.js";import{n as r,t as i}from"./src-BISxbUej.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as o,K as s,U as c,Y as l,a as u,b as d,f,s as p,v as m,w as h,x as g,y as _}from"./chunk-I66GZJ75-BO6p4Aqg.js";import{n as v}from"./mermaid-parser.core-B6Q-3x_q.js";import{t as y}from"./chunk-JWPE2WC7-DVXcaiue.js";import{t as b}from"./chunk-2Q5K7J3B-C1jixKkw.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=f.gitGraph,S=a(()=>t({...ee,...d().gitGraph}),`getConfig`),C=new b(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return n({length:7})}a(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}a(T,`uniqBy`);var te=a(function(e){C.records.direction=e},`setDirection`),ne=a(function(e){r.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){r.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=a(function(){return C.records.options},`getOptions`),ie=a(function(e){let t=e.msg,n=e.id,i=e.type,a=e.tags;r.info(`commit`,t,n,i,a),r.debug(`Entering commit:`,t,n,i,a);let o=S();n=p.sanitizeText(n,o),t=p.sanitizeText(t,o),a=a?.map(e=>p.sanitizeText(e,o));let s={id:n||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:i??x.NORMAL,tags:a??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=s,r.info(`main branch`,o.mainBranchName),C.records.commits.has(s.id)&&r.warn(`Commit ID ${s.id} already exists`),C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),r.debug(`in pushCommit `+s.id)},`commit`),ae=a(function(e){let t=e.name,n=e.order;if(t=p.sanitizeText(t,S()),C.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:n}),E(t),r.debug(`in createBranch`)},`branch`),oe=a(e=>{let t=e.branch,n=e.id,i=e.type,a=e.tags,o=S();t=p.sanitizeText(t,o),n&&=p.sanitizeText(n,o);let s=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(t),l=s?C.records.commits.get(s):void 0,u=c?C.records.commits.get(c):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&C.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${i} ${a?.join(` `)}`,token:`merge ${t} ${n} ${i} ${a?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${i} ${a?.join(` `)}`]},e}let d=c||``,f={id:n||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,d],branch:C.records.currBranch,type:x.MERGE,customType:i,customId:!!n,tags:a??[]};C.records.head=f,C.records.commits.set(f.id,f),C.records.branches.set(C.records.currBranch,f.id),r.debug(C.records.branches),r.debug(`in mergeBranch`)},`merge`),se=a(function(e){let t=e.id,n=e.targetId,i=e.tags,a=e.parent;r.debug(`Entering cherryPick:`,t,n,i);let o=S();if(t=p.sanitizeText(t,o),n=p.sanitizeText(n,o),i=i?.map(e=>p.sanitizeText(e,o)),a=p.sanitizeText(a,o),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let s=C.records.commits.get(t);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===x.MERGE&&!a)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!C.records.commits.has(n)){if(c===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(e);if(o===void 0||!o){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:C.records.seq+`-`+w(),message:`cherry-picked ${s?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,s.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${s.id}${s.type===x.MERGE?`|parent:${a}`:``}`]};C.records.head=l,C.records.commits.set(l.id,l),C.records.branches.set(C.records.currBranch,l.id),r.debug(C.records.branches),r.debug(`in cherryPick`)}},`cherryPick`),E=a(function(e){if(e=p.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}a(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let i=[n,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&i.push(e);if(r.debug(i.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}a(O,`prettyPrintCommitHistory`);var ce=a(function(){r.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=a(function(){C.reset(),u()},`clear`),ue=a(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=a(function(){return C.records.branches},`getBranches`),fe=a(function(){return C.records.commits},`getCommits`),k=a(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){r.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:a(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:a(function(){return C.records.direction},`getDirection`),getHead:a(function(){return C.records.head},`getHead`),setAccTitle:c,getAccTitle:_,getAccDescription:m,setAccDescription:o,setDiagramTitle:s,getDiagramTitle:h},pe=a((e,t)=>{y(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)me(n,t)},`populate`),me=a((e,t)=>{let n={Commit:a(e=>t.commit(he(e)),`Commit`),Branch:a(e=>t.branch(ge(e)),`Branch`),Merge:a(e=>t.merge(_e(e)),`Merge`),Checkout:a(e=>t.checkout(ve(e)),`Checkout`),CherryPicking:a(e=>t.cherryPick(ye(e)),`CherryPicking`)}[e.$type];n?n(e):r.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),he=a(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=a(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=a(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=a(e=>e.branch,`parseCheckout`),ye=a(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:a(async e=>{let t=await v(`gitGraph`,e);r.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=a((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,q=a(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),J=a(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),Y=a(e=>{let t,n,r;return K===`BT`?(n=a((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=a((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),Se=a(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=a((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Se(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=a(e=>{let t=Y(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=a(e=>we(e)+M,`calculateCommitPosition`),Ee=a((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=a((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=a((e,t,n,r,i,a)=>{let{theme:o}=g(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ke=a((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Ae=a((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
1
|
+
import{g as e,i as t,m as n}from"./chunk-NSK5VX7P-DGo5UczH.js";import{n as r,t as i}from"./src-BISxbUej.js";import{n as a}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as o,K as s,U as c,Y as l,a as u,b as d,f,s as p,v as m,w as h,x as g,y as _}from"./chunk-I66GZJ75-CXSn8dDu.js";import{n as v}from"./mermaid-parser.core-RK9ah5RM.js";import{t as y}from"./chunk-JWPE2WC7-DVXcaiue.js";import{t as b}from"./chunk-2Q5K7J3B-C1jixKkw.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=f.gitGraph,S=a(()=>t({...ee,...d().gitGraph}),`getConfig`),C=new b(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return n({length:7})}a(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}a(T,`uniqBy`);var te=a(function(e){C.records.direction=e},`setDirection`),ne=a(function(e){r.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){r.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=a(function(){return C.records.options},`getOptions`),ie=a(function(e){let t=e.msg,n=e.id,i=e.type,a=e.tags;r.info(`commit`,t,n,i,a),r.debug(`Entering commit:`,t,n,i,a);let o=S();n=p.sanitizeText(n,o),t=p.sanitizeText(t,o),a=a?.map(e=>p.sanitizeText(e,o));let s={id:n||C.records.seq+`-`+w(),message:t,seq:C.records.seq++,type:i??x.NORMAL,tags:a??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=s,r.info(`main branch`,o.mainBranchName),C.records.commits.has(s.id)&&r.warn(`Commit ID ${s.id} already exists`),C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),r.debug(`in pushCommit `+s.id)},`commit`),ae=a(function(e){let t=e.name,n=e.order;if(t=p.sanitizeText(t,S()),C.records.branches.has(t))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);C.records.branches.set(t,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(t,{name:t,order:n}),E(t),r.debug(`in createBranch`)},`branch`),oe=a(e=>{let t=e.branch,n=e.id,i=e.type,a=e.tags,o=S();t=p.sanitizeText(t,o),n&&=p.sanitizeText(n,o);let s=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(t),l=s?C.records.commits.get(s):void 0,u=c?C.records.commits.get(c):void 0;if(l&&u&&l.branch===t)throw Error(`Cannot merge branch '${t}' into itself.`);if(C.records.currBranch===t){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(l===void 0||!l){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`commit`]},e}if(!C.records.branches.has(t)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) does not exist`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch ${t}`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+t+`) has no commits`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`"commit"`]},e}if(l===u){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${t}`,token:`merge ${t}`,expected:[`branch abc`]},e}if(n&&C.records.commits.has(n)){let e=Error(`Incorrect usage of "merge". Commit with id:`+n+` already exists, use different custom id`);throw e.hash={text:`merge ${t} ${n} ${i} ${a?.join(` `)}`,token:`merge ${t} ${n} ${i} ${a?.join(` `)}`,expected:[`merge ${t} ${n}_UNIQUE ${i} ${a?.join(` `)}`]},e}let d=c||``,f={id:n||`${C.records.seq}-${w()}`,message:`merged branch ${t} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,d],branch:C.records.currBranch,type:x.MERGE,customType:i,customId:!!n,tags:a??[]};C.records.head=f,C.records.commits.set(f.id,f),C.records.branches.set(C.records.currBranch,f.id),r.debug(C.records.branches),r.debug(`in mergeBranch`)},`merge`),se=a(function(e){let t=e.id,n=e.targetId,i=e.tags,a=e.parent;r.debug(`Entering cherryPick:`,t,n,i);let o=S();if(t=p.sanitizeText(t,o),n=p.sanitizeText(n,o),i=i?.map(e=>p.sanitizeText(e,o)),a=p.sanitizeText(a,o),!t||!C.records.commits.has(t)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let s=C.records.commits.get(t);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===x.MERGE&&!a)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!n||!C.records.commits.has(n)){if(c===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(e);if(o===void 0||!o){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${t} ${n}`,token:`cherryPick ${t} ${n}`,expected:[`cherry-pick abc`]},e}let l={id:C.records.seq+`-`+w(),message:`cherry-picked ${s?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,s.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${s.id}${s.type===x.MERGE?`|parent:${a}`:``}`]};C.records.head=l,C.records.commits.set(l.id,l),C.records.branches.set(C.records.currBranch,l.id),r.debug(C.records.branches),r.debug(`in cherryPick`)}},`cherryPick`),E=a(function(e){if(e=p.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}a(D,`upsert`);function O(e){let t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),n=``;e.forEach(function(e){n+=e===t?` *`:` |`});let i=[n,t.id,t.seq];for(let e in C.records.branches)C.records.branches.get(e)===t.id&&i.push(e);if(r.debug(i.join(` `)),t.parents&&t.parents.length==2&&t.parents[0]&&t.parents[1]){let n=C.records.commits.get(t.parents[0]);D(e,t,n),t.parents[1]&&e.push(C.records.commits.get(t.parents[1]))}else if(t.parents.length==0)return;else if(t.parents[0]){let n=C.records.commits.get(t.parents[0]);D(e,t,n)}e=T(e,e=>e.id),O(e)}a(O,`prettyPrintCommitHistory`);var ce=a(function(){r.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=a(function(){C.reset(),u()},`clear`),ue=a(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=a(function(){return C.records.branches},`getBranches`),fe=a(function(){return C.records.commits},`getCommits`),k=a(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){r.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:a(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:a(function(){return C.records.direction},`getDirection`),getHead:a(function(){return C.records.head},`getHead`),setAccTitle:c,getAccTitle:_,getAccDescription:m,setAccDescription:o,setDiagramTitle:s,getDiagramTitle:h},pe=a((e,t)=>{y(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)me(n,t)},`populate`),me=a((e,t)=>{let n={Commit:a(e=>t.commit(he(e)),`Commit`),Branch:a(e=>t.branch(ge(e)),`Branch`),Merge:a(e=>t.merge(_e(e)),`Merge`),Checkout:a(e=>t.checkout(ve(e)),`Checkout`),CherryPicking:a(e=>t.cherryPick(ye(e)),`CherryPicking`)}[e.$type];n?n(e):r.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),he=a(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=a(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=a(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=a(e=>e.branch,`parseCheckout`),ye=a(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:a(async e=>{let t=await v(`gitGraph`,e);r.debug(t),pe(t,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=a((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,q=a(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),J=a(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),Y=a(e=>{let t,n,r;return K===`BT`?(n=a((e,t)=>e<=t,`comparisonFunc`),r=1/0):(n=a((e,t)=>e>=t,`comparisonFunc`),r=0),e.forEach(e=>{let i=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;i!==void 0&&n(i,r)&&(t=e,r=i)}),t},`findClosestParent`),Se=a(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=a((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Se(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=a(e=>{let t=Y(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=a(e=>we(e)+M,`calculateCommitPosition`),Ee=a((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=a((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=a((e,t,n,r,i,a)=>{let{theme:o}=g(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ke=a((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel)){if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}}},`drawCommitLabel`),Ae=a((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
|
|
2
2
|
${r-a/2-N/2},${l+P}
|
|
3
3
|
${r-a/2-N/2},${l-P}
|
|
4
4
|
${n.posWithOffset-a/2-N},${l-s-P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$
|
|
1
|
+
import{$i as e,ad as t,fs as n}from"./runtime-DjjjAcTE.js";import{i as r}from"./presentationTier-DPVAxTK4.js";import{t as i}from"./separator-CO8bC7Wc.js";var a=r(),o=t(),s=n(`flex w-fit *:focus-visible:z-1 has-[>[data-slot=group]]:gap-2 *:has-focus-visible:z-1 dark:*:[[data-slot=button]:hover~[data-slot=separator]:not([data-slot]:hover~[data-slot=separator]~[data-slot=separator]),[data-slot][data-pressed]~[data-slot=separator]:not([data-slot][data-pressed]~[data-slot=separator]~[data-slot=separator])]:before:bg-input/64 dark:*:[[data-slot=separator]:has(~[data-slot=button]:hover):not(:has(~[data-slot=separator]~[data-slot]:hover)),[data-slot=separator]:has(~[data-slot][data-pressed]):not(:has(~[data-slot=separator]~[data-slot][data-pressed]))]:before:bg-input/64`,{defaultVariants:{orientation:`horizontal`},variants:{orientation:{horizontal:`*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-start-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-end-[0.5px] *:pointer-coarse:after:min-w-auto *:data-slot:has-[~[data-slot]]:rounded-e-none *:data-slot:has-[~[data-slot]]:border-e-0 *:data-slot:has-[~[data-slot]]:before:rounded-e-none *:[[data-slot]~[data-slot]]:rounded-s-none *:[[data-slot]~[data-slot]]:border-s-0 *:[[data-slot]~[data-slot]]:before:rounded-s-none`,vertical:`*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-top-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-bottom-[0.5px] flex-col *:pointer-coarse:after:min-h-auto *:data-slot:has-[~[data-slot]]:rounded-b-none *:data-slot:has-[~[data-slot]]:border-b-0 *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:hidden *:data-slot:has-[~[data-slot]]:before:rounded-b-none dark:*:last:before:hidden dark:*:first:before:block *:[[data-slot]~[data-slot]]:rounded-t-none *:[[data-slot]~[data-slot]]:border-t-0 *:[[data-slot]~[data-slot]]:before:rounded-t-none`}}});function c(t){let n=(0,a.c)(13),r,i,c,l;n[0]===t?(r=n[1],i=n[2],c=n[3],l=n[4]):({className:i,orientation:c,children:r,...l}=t,n[0]=t,n[1]=r,n[2]=i,n[3]=c,n[4]=l);let u;n[5]!==i||n[6]!==c?(u=e(s({orientation:c}),i),n[5]=i,n[6]=c,n[7]=u):u=n[7];let d;return n[8]!==r||n[9]!==c||n[10]!==l||n[11]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":c,"data-slot":`group`,role:`group`,...l,children:r}),n[8]=r,n[9]=c,n[10]=l,n[11]=u,n[12]=d):d=n[12],d}function l(t){let n=(0,a.c)(10),r,s,c;n[0]===t?(r=n[1],s=n[2],c=n[3]):({className:r,orientation:c,...s}=t,n[0]=t,n[1]=r,n[2]=s,n[3]=c);let l=c===void 0?`vertical`:c,u;n[4]===r?u=n[5]:(u=e(`[[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+input+&]:-translate-x-px pointer-events-none relative z-2 bg-input before:absolute before:inset-0 has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:translate-x-px has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:bg-ring dark:before:bg-input/32 [[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+&,[data-slot=number-field]:focus-within+input+&]:bg-ring`,r),n[4]=r,n[5]=u);let d;return n[6]!==l||n[7]!==s||n[8]!==u?(d=(0,o.jsx)(i,{className:u,orientation:l,...s}),n[6]=l,n[7]=s,n[8]=u,n[9]=d):d=n[9],d}export{l as n,c as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ws as e}from"./runtime-DjjjAcTE.js";var t={name:`hammer`,size:24,node:[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]};t.node;var n=e(t);export{n as t};
|