@p4code/cli 0.8.13 → 0.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-B9aQxlIK.mjs → binCli-IAUzRF0Y.mjs} +283 -105
- package/dist/client/.vite/manifest.json +2143 -2143
- package/dist/client/assets/AlertDialogRoot-DYtW2IF3.js +2 -0
- package/dist/client/assets/{AnimatedHeight-CH-N3JTc.js → AnimatedHeight-CzFc8xri.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-CJdXkxyH.js → AuthSurfaceShell-ByOYQAV0.js} +2 -2
- package/dist/client/assets/{CSPContext-4VAD2_gc.js → CSPContext-DcW0os5z.js} +2 -2
- package/dist/client/assets/{ChatGptUsageButton-7u9uPgbK.js → ChatGptUsageButton-KFBZLDN7.js} +2 -2
- package/dist/client/assets/{ChatMarkdown-C22JFyYa.js → ChatMarkdown-BoxySKsC.js} +4 -4
- package/dist/client/assets/{CheckboxIndicator-ClY0P0ol.js → CheckboxIndicator-DRAilQdq.js} +2 -2
- package/dist/client/assets/{CodexSetupSection.logic-CEAT7YdZ.js → CodexSetupSection.logic-d-rT4H0o.js} +2 -2
- package/dist/client/assets/{CollapsiblePanel-Cubscn-a.js → CollapsiblePanel-DMH4QH0_.js} +2 -2
- package/dist/client/assets/{ComboboxClear-qTthzuJh.js → ComboboxClear-DV4ygCOL.js} +2 -2
- package/dist/client/assets/{CommandBlock-CWt29kmi.js → CommandBlock-_boutMAe.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-Bt_L4smq.js → ComposerPromptEditor-BTCrYVhm.js} +4 -4
- package/dist/client/assets/{CompositeRoot-DUqf78yV.js → CompositeRoot-CsrLt1o5.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-cdpNRZhA.js → ConnectionStatusDot-uWbIqk3l.js} +2 -2
- package/dist/client/assets/{DevicePanel-CZm-f5TC.js → DevicePanel-DwMrOlt0.js} +2 -2
- package/dist/client/assets/{DeviceSetup-BdrkGme6.js → DeviceSetup-CbOHLIaV.js} +2 -2
- package/dist/client/assets/{DialogTitle-CQU6s1Wy.js → DialogTitle-BgclXafx.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-B-XoYYxb.js → DiffCommentAnnotation-Aq3V-yP1.js} +2 -2
- package/dist/client/assets/{DiffFileTree-CwTkSU3R.js → DiffFileTree-CKQPTUag.js} +2 -2
- package/dist/client/assets/{DiffPanel-BCI9XXpF.js → DiffPanel-BXML30Ty.js} +2 -2
- package/dist/client/assets/{DiffWorkerPoolProvider-OPZsOibX.js → DiffWorkerPoolProvider-CibTihO7.js} +2 -2
- package/dist/client/assets/{EmbeddedDesign-DwRAPHYl.js → EmbeddedDesign-722JShay.js} +2 -2
- package/dist/client/assets/{EnvironmentMachineIcon-DCdlTSYU.js → EnvironmentMachineIcon-Czk_PJpp.js} +2 -2
- package/dist/client/assets/{ExpandableText-BtdwzlFy.js → ExpandableText-Ggw0uVXl.js} +2 -2
- package/dist/client/assets/{FieldControl-BI2gK4Z0.js → FieldControl-Bw2_eFMa.js} +2 -2
- package/dist/client/assets/{FileDiff-BkJG5QAe.js → FileDiff-Cen-Dayi.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-CURtQAD1.js → FilePreviewPanel-BMK5AG_P.js} +2 -2
- package/dist/client/assets/{FoldedSettingsSection-B9B8i8Gg.js → FoldedSettingsSection-G9y7luve.js} +2 -2
- package/dist/client/assets/{FormContext-Bgwez2tv.js → FormContext-7fCTOXXA.js} +2 -2
- package/dist/client/assets/{Icons-B5JVkp3z.js → Icons-CSAp87pJ.js} +2 -2
- package/dist/client/assets/Input-Cr3X6dPy.js +2 -0
- package/dist/client/assets/{KeybindingsSettings.logic-6lVDnd1N.js → KeybindingsSettings.logic-CsSjvH9c.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-CkhVaJk9.js → NoProjectsHero-iGEFavkK.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-CxuV0JO3.js → PanelLayoutControls-C4Gm81F_.js} +4 -4
- package/dist/client/assets/{PierreEntryIcon-CPG-jnaN.js → PierreEntryIcon-CnGUKKOC.js} +2 -2
- package/dist/client/assets/{PopoverHandle-CBT8hFut.js → PopoverHandle-BkhR-kKK.js} +2 -2
- package/dist/client/assets/{PreviewPanel-Doh1peEu.js → PreviewPanel-BZNqorNM.js} +2 -2
- package/dist/client/assets/{ProjectDefaultsSettings-DfhAk0_Y.js → ProjectDefaultsSettings-DzMIpb2U.js} +2 -2
- package/dist/client/assets/{ProjectFavicon-DUW6Bo66.js → ProjectFavicon-Dk18tk1C.js} +3 -3
- package/dist/client/assets/{ProjectIconPickerDialog-C613hnVY.js → ProjectIconPickerDialog-DnmG78V1.js} +2 -2
- package/dist/client/assets/{ProjectMonogram-B9iJhcVp.js → ProjectMonogram-CWdfC9NP.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-eq346NX_.js → ProviderAuthTerminal-nDUEuuwR.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-DPb-88ui.js → ProviderModelPicker-DhOV_BIX.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-DTYqzs8W.js → ProviderSettingsForm-Cyw48DUr.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-BBz0FfLD.js → PullRequestCodeTab-BpjwcQvb.js} +2 -2
- package/dist/client/assets/{ReadOnlySourcePreview-CkeeLVAm.js → ReadOnlySourcePreview-DMF3eLls.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-mfAvIiFU.js → RenderErrorBoundary-DQC7sq87.js} +2 -2
- package/dist/client/assets/{ScheduledTasksSettings-BMUE9M9Z.js → ScheduledTasksSettings-CZK46eKO.js} +2 -2
- package/dist/client/assets/{ScopedSwitch-BKOdsllO.js → ScopedSwitch-BECzQob0.js} +2 -2
- package/dist/client/assets/{ScrollAreaCorner-CoeXGFSL.js → ScrollAreaCorner-DXYr9Xbu.js} +2 -2
- package/dist/client/assets/{SecretInput-CROqj1gF.js → SecretInput-WUih9JDs.js} +2 -2
- package/dist/client/assets/{SelectScrollUpArrow-SDOpV3nj.js → SelectScrollUpArrow-BIdW5z3c.js} +2 -2
- package/dist/client/assets/{SettingsPanels-BHhMJaVc.js → SettingsPanels-B3TcgEEZ.js} +2 -2
- package/dist/client/assets/{SettingsPanels.logic-BwmY39Sq.js → SettingsPanels.logic-DpJJdWIn.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-DAPsshab.js → SettingsScopeNotice-CcgRSc9E.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-CDuVbE2z.js → T3ConnectAccountPages-8GTdhVAB.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-BSQHp-Xq.js → T3ConnectSidebarSignIn-CY6WtOps.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-BiuI7Uiy.js → ThemeEditorPanel-i2RAKM6Z.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-B8n6TAqv.js → ThreadTerminalDrawer-D7lW_0Ez.js} +2 -2
- package/dist/client/assets/{TooltipViewport-BKD6QABG.js → TooltipViewport-Daddx30c.js} +2 -2
- package/dist/client/assets/{Virtualizer-CTnacEby.js → Virtualizer-CTxMd1UV.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-BmVcurpi.js → WorkspaceBreadcrumb-B3WecLwo.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BSjVd7h4.js → WorkspacePageContainer-rn16R8Ps.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-BLYOcS9Z.js → WorkspacePageHeader-B2wsiKGJ.js} +2 -2
- package/dist/client/assets/{_chat-z348gvgF.js → _chat-DCAacYa_.js} +6 -6
- package/dist/client/assets/{_chat.index-CBbUzaK7.js → _chat.index-CqT22uaz.js} +2 -2
- package/dist/client/assets/{_chat.new-7TTfcDf1.js → _chat.new-CTRPd-7l.js} +2 -2
- package/dist/client/assets/{_chat.pull-requests-BE7Q2lUu.js → _chat.pull-requests-DZwiHPhH.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-HaXM7twL.js → abnfDiagram-VCTEODGH-0sYdmV4a.js} +2 -2
- package/dist/client/assets/{alert-5swcxUBm.js → alert-CvIEaZOb.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-Cre3v_DI.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-BhWXFsXS.js → architectureDiagram-5GKGNRK7-CyILOixS.js} +2 -2
- package/dist/client/assets/{assets-DXnV2oRj.js → assets-CqHuBXjp.js} +2 -2
- package/dist/client/assets/{blockDiagram-I7D4REHJ-D213N9iF.js → blockDiagram-I7D4REHJ-x-VvNLUl.js} +2 -2
- package/dist/client/assets/{browserHistoryStore-DURO3U2L.js → browserHistoryStore-BpqZwrsk.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-DcGx3A8F.js → browserLinkTarget-EXHYn6yB.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-58POuQV-.js → c4Diagram-7LVT6UL2-B0k0wHF6.js} +2 -2
- package/dist/client/assets/channel-DQC0VAAf.js +2 -0
- package/dist/client/assets/{checkbox-1tz9neVf.js → checkbox-EHQPSidC.js} +2 -2
- package/dist/client/assets/{chunk-4HAMMTFA-Bcwcw8Wz.js → chunk-4HAMMTFA-Uul0p-TJ.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-BaYdZ0Fq.js → chunk-75Z2AOVW-SUa_8bmt.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-B6TRgw4-.js → chunk-DU6HZSFF-DZ_qPx6g.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-B5arSwg6.js → chunk-F27PBJKO-DNArajpV.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-XeNCd3gb.js → chunk-GMAD6QVW-DCcQWsDo.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-CWVbbWh7.js → chunk-GVQU2GXP-CUeM0ruH.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-Cb-yxIAE.js → chunk-IMKFNOWR-Dz48fQ1q.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-Di7nZhzu.js → chunk-L3NEJ4N5-Css7u6Lh.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-DcqBXKUK.js → chunk-OSK3NFVY-CDaAT2I-.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-DJ1kMiTY.js → chunk-P2QGCYS3-CrKr6f8Y.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-Ba9RYr-b.js → chunk-POPQ4Y6H-BqMK6oaX.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-D4Ch07S8.js → chunk-PWAF6VOD-CyuqbEJS.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-BafMUZgc.js → chunk-SHT3W25Y-BrH-w9EI.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-CsEVe0s3.js → chunk-SVP7TREG-DC8LP4Dl.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-D3tgdZlp.js → chunk-TICWLB2K-D9Rk3v5O.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-BnsjDrR7.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-BnsjDrR7.js +2 -0
- package/dist/client/assets/{color-picker-N6f_Hu7P.js → color-picker-Dd1K-QRk.js} +2 -2
- package/dist/client/assets/{combobox-B07cVaQY.js → combobox-BqpUmoio.js} +2 -2
- package/dist/client/assets/{command-B70eQIps.js → command-D1peviZr.js} +2 -2
- package/dist/client/assets/{connect-Vt7wlrih.js → connect-_R8iiudK.js} +2 -2
- package/dist/client/assets/{connect-agent-CX70rAkF.js → connect-agent-hovmaVDF.js} +2 -2
- package/dist/client/assets/{cynefin-OW5HDTMX-CU8HnD4F.js → cynefin-OW5HDTMX-EgbU-rQt.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Cvc6_oYZ.js → cynefinDiagram-5FMLGOSQ-D1_um-xk.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-Bx5buWLS.js → dagre-GXQ25YYZ-BUeriIID.js} +2 -2
- package/dist/client/assets/{device-BgvBRE7C.js → device-DIh4Fmq_.js} +2 -2
- package/dist/client/assets/{diagram-S7CK7UJ4-CPZrAy0P.js → diagram-S7CK7UJ4-Du3htb_X.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-kBtSnHpL.js → diagram-UQ7AKVKN-B02FTV2h.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-DQP2q1tS.js → diagram-VSXAHHWV-C-GXxjgO.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-DRUN0yEk.js → diagram-VX7I27RA-C9x6jBO2.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-D4WMsQZZ.js → diagram-Z3DM3KII-BOzwpZ6f.js} +2 -2
- package/dist/client/assets/{dialog-DmneyTGi.js → dialog-BfenC7sz.js} +2 -2
- package/dist/client/assets/{diffRendering-iR2meoVj.js → diffRendering-EPxtkQvT.js} +2 -2
- package/dist/client/assets/{discovery-list-ZGkddsst.js → discovery-list-NHMaJPrr.js} +2 -2
- package/dist/client/assets/{dist-vr51zfzA.js → dist-BgOJfdC2.js} +3 -3
- package/dist/client/assets/{draft-input-DHZ1J7B_.js → draft-input-rVkOduh_.js} +2 -2
- package/dist/client/assets/{duoViewer-DTVry3xd.js → duoViewer-CbfTiSKj.js} +2 -2
- package/dist/client/assets/{dynamic-CuoX2JEO.js → dynamic-7n-O1eEM.js} +2 -2
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-BNUtunQw.js → ebnfDiagram-PWID7BFC-B-aK7ztf.js} +2 -2
- package/dist/client/assets/{embeddedScripts-BMvBWRz_.js → embeddedScripts-D-v7UxHT.js} +2 -2
- package/dist/client/assets/{empty-hFNkAHps.js → empty-xf3NEL4p.js} +2 -2
- package/dist/client/assets/{entities-7B8nzlQw.js → entities-CyQRuOur.js} +2 -2
- package/dist/client/assets/{environments-DYIXXf7q.js → environments-CjU9SGCA.js} +2 -2
- package/dist/client/assets/{erDiagram-RLTQ6QDP-DHjjowZq.js → erDiagram-RLTQ6QDP-BUkP1ax_.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-an9DCCTW.js +1 -0
- package/dist/client/assets/{fileLinks-BYi-XNUG.js → fileLinks-sFAkJkUp.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-DIOxQqDo.js → fileTreeExpansion-BoG00fm4.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-pchK5tHw.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-DEPOqoj0.js → ganttDiagram-EL5Y4UJY-C9-_e4R8.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-DMj15wpy.js → getDiffFileInput-Eacwf1x6.js} +2 -2
- package/dist/client/assets/{gitGraph-4MIJSDKK-BGKW_zhb.js → gitGraph-4MIJSDKK-DpJxnpww.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-7UhsI5zi.js → gitGraphDiagram-WWUBYQGX-D1kbQfjj.js} +2 -2
- package/dist/client/assets/{guideRunStore-BEkwZ9H7.js → guideRunStore-pssxpidL.js} +2 -2
- package/dist/client/assets/{htmlRender-BxVc1PlI.js → htmlRender-CDbYs9Mi.js} +2 -2
- package/dist/client/assets/{index-C_MVyH59.js → index-BcfzEf8A.js} +3 -3
- package/dist/client/assets/{info-A6RAGUB7-jvyzx_4e.js → info-A6RAGUB7-NwzA9LEB.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-lTTpu3as.js → infoDiagram-27XIBGKW--zzuhsyp.js} +2 -2
- package/dist/client/assets/{input-RqvQJ9gh.js → input-CF-egQtG.js} +2 -2
- package/dist/client/assets/{input-group-BFtrsedw.js → input-group-CifPZlNg.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-DlrQNGG9.js → ishikawaDiagram-5VMMS53U-BtNAzuJP.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-Buy9e-fU.js → journeyDiagram-3NMN7TZE-CkOdxsrK.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-1KgAXH0g.js → kanban-definition-UXKFOSKX-L-Zve5xm.js} +2 -2
- package/dist/client/assets/{kbd-BnsXAHsc.js → kbd-DN9MXWor.js} +2 -2
- package/dist/client/assets/{keybindings-BtHOXkP-.js → keybindings-BlEA4Dlt.js} +2 -2
- package/dist/client/assets/{lazyRouteComponent-T0YE6Rn9.js → lazyRouteComponent-b9hpLjZB.js} +2 -2
- package/dist/client/assets/{line-DUV1hs6X.js → line-CUIFqVat.js} +2 -2
- package/dist/client/assets/{link-gKYnbTYT.js → link-BIudTto8.js} +2 -2
- package/dist/client/assets/{linkedPrompt-Da8rJho3.js → linkedPrompt-DQkjE7kc.js} +2 -2
- package/dist/client/assets/{main-Bh6Hj0_-.js → main-C58_iQqs.js} +7 -7
- package/dist/client/assets/{mediaReference-CLlAiRVc.js → mediaReference-D5Qxnp2d.js} +2 -2
- package/dist/client/assets/{mediaSource-BTCWn94E.js → mediaSource-DRXKCFCg.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-CsBuWV4-.js → mermaid-parser.core-Dy9NqIcU.js} +4 -4
- package/dist/client/assets/{mermaid.core-BcICv5EB.js → mermaid.core-C1Tbkxei.js} +5 -5
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-BqCqe4io.js → mindmap-definition-YA3MSWOX-CNHVmlJ4.js} +2 -2
- package/dist/client/assets/{number-field-DIYUxout.js → number-field-CydqGM9B.js} +2 -2
- package/dist/client/assets/{observeResize-D9ECzP-D.js → observeResize-BxVCxCXG.js} +2 -2
- package/dist/client/assets/{onboarding-COQ6KgRG.js → onboarding-DQxSrthd.js} +2 -2
- package/dist/client/assets/{openFileInPreview-BhRAqg63.js → openFileInPreview-tPdJXpV4.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-z5Hlq99W.js → p4ProjectFile-Dqppy-Sd.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-BYCaPqFA.js → packet-AYTQ26CC-D66WQAPv.js} +1 -1
- package/dist/client/assets/{pair-BDKjGij-.js → pair-BgezPXaC.js} +2 -2
- package/dist/client/assets/{pegDiagram-XKGWAZYB-CqCw5Z-L.js → pegDiagram-XKGWAZYB-D4RZHNwH.js} +2 -2
- package/dist/client/assets/{phoneViewer-DLSM0QXE.js → phoneViewer-DKIr7vIR.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-BfOlqQx1.js → pie-WAS4IAKB-ChXk3493.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-DZpCrUQF.js → pieDiagram-E7YTZNPT-BYlPIaAz.js} +2 -2
- package/dist/client/assets/{pierre-icons-BG7vd34x.js → pierre-icons-ByQ4P7uM.js} +2 -2
- package/dist/client/assets/{popover-DE9WCm99.js → popover-BunL7s_L.js} +2 -2
- package/dist/client/assets/{preview-Cl-7ojv-.js → preview-B_wcdd8X.js} +2 -2
- package/dist/client/assets/{preview-bd-MGMMz.js → preview-DDUAtKQn.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-Bz1T9oVV.js → previewMiniPlayerStore-gZV-IkW-.js} +2 -2
- package/dist/client/assets/{primary-BwHoAoya.js → primary-BI3yNRjI.js} +2 -2
- package/dist/client/assets/{primaryCloudLinkState-DtOYGRkF.js → primaryCloudLinkState-Dn_lMN_C.js} +2 -2
- package/dist/client/assets/{projectFilesQueryState-BP_JvI7-.js → projectFilesQueryState-DfToGDLi.js} +2 -2
- package/dist/client/assets/{projectScriptEditor-BGLshibY.js → projectScriptEditor-De4HeOtY.js} +2 -2
- package/dist/client/assets/{providerSkills-DxYtwoxJ.js → providerSkills-DrIXn_7R.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-C_aVDAY_.js → pullRequestDetail.logic-CGUKFcHo.js} +2 -2
- package/dist/client/assets/{pullRequestIcons-D5Yo5Zsn.js → pullRequestIcons-BZCS4C5B.js} +2 -2
- package/dist/client/assets/{pullRequestReviewStore-DaEzt1m1.js → pullRequestReviewStore-BqvYYzmT.js} +2 -2
- package/dist/client/assets/{pullRequests-D0no1PZS.js → pullRequests-tIwkUcK2.js} +2 -2
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-BTtuOXlL.js → quadrantDiagram-AXDQQJYC-kMIaUDbV.js} +2 -2
- package/dist/client/assets/{queries-DkmaXOL-.js → queries-DMjiMwzO.js} +2 -2
- package/dist/client/assets/{query-Bd5_Y_Vy.js → query-CRswjQ7f.js} +2 -2
- package/dist/client/assets/{radar-RG4KPBEZ-BiJgnIUY.js → radar-RG4KPBEZ-_vEYfKqV.js} +1 -1
- package/dist/client/assets/{radio-group-CBunNtTU.js → radio-group-DzD2uI5x.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-C0CA0mcr.js → railroad-74A4TZTK-BiD9GwPs.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Dx3SBIg8.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-DqrIX1EX.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-zKUem5fh.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-WczOSoF4.js → railroadDiagram-O6MQD6OU-VThEbY2-.js} +2 -2
- package/dist/client/assets/{renderScheduler-BLjFSKnt.js → renderScheduler-ZbiToRGe.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-B3qCIQP5.js → requirementDiagram-BXWQKSXE-CYlc8xoq.js} +2 -2
- package/dist/client/assets/{rightPanelStore-6-YhsfkE.js → rightPanelStore-CcmIdfDA.js} +2 -2
- package/dist/client/assets/{runtime-Bni_zt6P.js → runtime-BjJBBHTp.js} +2 -2
- package/dist/client/assets/{runtime-D8mKjOP-.js → runtime-D102A-Bu.js} +3 -3
- package/dist/client/assets/{runtimeModeConfig-C3q8YqVA.js → runtimeModeConfig-CGosfJJ5.js} +2 -2
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-e2-j7ERe.js → sankeyDiagram-P5KCCOFB-CHYSv9pX.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-BNC897-_.js → scheduledTasksSettings.logic-DhrwaClP.js} +2 -2
- package/dist/client/assets/{scroll-area-Davaj52_.js → scroll-area-OkcD8f0Y.js} +2 -2
- package/dist/client/assets/{select-B47XfaxQ.js → select-BUFUt6O3.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-DG7-8UJk.js → sequenceDiagram-WJ2MYXX4-D1y7ChUn.js} +2 -2
- package/dist/client/assets/{server-CaLEm3Wt.js → server-DTGT8WWf.js} +2 -2
- package/dist/client/assets/{session-2CRBJwS7.js → session-Dh8maTO3.js} +2 -2
- package/dist/client/assets/session-logic-CJeISKsG.js +26 -0
- package/dist/client/assets/{settings-BIwaDm1N.js → settings-CrZbdtKO.js} +2 -2
- package/dist/client/assets/{settings.appearance-ToUM8fHh.js → settings.appearance-BNB57wVJ.js} +2 -2
- package/dist/client/assets/settings.archived-C3Vs8tIa.js +2 -0
- package/dist/client/assets/{settings.computer-use-BEghs16L.js → settings.computer-use-CNLnfXe7.js} +2 -2
- package/dist/client/assets/{settings.connections-C_LVk0gJ.js → settings.connections-CKn7dmOC.js} +2 -2
- package/dist/client/assets/{settings.data-controls-BaTil8NB.js → settings.data-controls-B8uFJ36x.js} +2 -2
- package/dist/client/assets/{settings.decisions-JTbMt08J.js → settings.decisions-Cy46-IzS.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-ByG62ZGs.js → settings.diagnostics-BeATxGLt.js} +2 -2
- package/dist/client/assets/{settings.general-BT78z_Cn.js → settings.general-BAL2BKm_.js} +2 -2
- package/dist/client/assets/{settings.integrations-C3jj2T1d.js → settings.integrations-Bg8Ve2zj.js} +2 -2
- package/dist/client/assets/{settings.keybindings-CeqZWQEi.js → settings.keybindings-B3Yph4YE.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-BAFwkfI8.js → settings.open-source-licenses-Dx_Hoxhs.js} +2 -2
- package/dist/client/assets/settings.plugins-TfmhiHSr.js +5 -0
- package/dist/client/assets/{settings.projects-Cqx1zAvs.js → settings.projects-DyqRcoD5.js} +3 -3
- package/dist/client/assets/{settings.providers-CS55UrI1.js → settings.providers-CqMvOZmv.js} +3 -3
- package/dist/client/assets/{settings.scheduled-tasks-CFJTEOb1.js → settings.scheduled-tasks-gzepleP4.js} +2 -2
- package/dist/client/assets/{settings.snap-shot-E3AITJyC.js → settings.snap-shot-DPIz29B9.js} +2 -2
- package/dist/client/assets/{settings.source-control-CWWy9E3b.js → settings.source-control-BMPVT8GA.js} +2 -2
- package/dist/client/assets/{settings.storage-BnUI1rFT.js → settings.storage-Cd4Vn9s1.js} +2 -2
- package/dist/client/assets/{settingsLayout-DHc6oKfL.js → settingsLayout-BRcW18Dy.js} +2 -2
- package/dist/client/assets/{sidebar-BkujXU9U.js → sidebar-CNP67lTi.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-DD4nu9RX.js → sidebarProjectGrouping-BRC9yCnW.js} +2 -2
- package/dist/client/assets/{skeleton-C6_D5JUu.js → skeleton-DDh76jpd.js} +2 -2
- package/dist/client/assets/{sortable.esm-BAEGChD3.js → sortable.esm-KZlxUbRj.js} +2 -2
- package/dist/client/assets/{sourceControl-BAghu6LN.js → sourceControl-DXwrIEUZ.js} +2 -2
- package/dist/client/assets/{spinner-CpLstN6u.js → spinner-DYnZ-Bpa.js} +2 -2
- package/dist/client/assets/{standalone-page-7vaVYOp-.js → standalone-page-DUgQaNPq.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-CpZF58eW.js → stateDiagram-D77RDMKH-DhHX_ym0.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Dy0yVJgc.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-D1b49puG.js → swimlanes-42K2YHIH-gr_Fo6MW.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-CPHF5kgn.js +9 -0
- package/dist/client/assets/{terminal-links-CjmSI9gV.js → terminal-links-CV_3r1U3.js} +2 -2
- package/dist/client/assets/{terminalSessions-Q2t1JYPS.js → terminalSessions-aS2PVMmc.js} +2 -2
- package/dist/client/assets/{textarea-DKdxwZZC.js → textarea-Dt0w6mtc.js} +2 -2
- package/dist/client/assets/{themePalette-7p_LOU3J.js → themePalette-9CODTNe7.js} +2 -2
- package/dist/client/assets/{threadSort-C5oCCRfj.js → threadSort-BGtAZpdL.js} +2 -2
- package/dist/client/assets/{timeline-definition-24CTP7MA-89AJY6KO.js → timeline-definition-24CTP7MA-DOSB4Ras.js} +2 -2
- package/dist/client/assets/{toast-DhMYg_gN.js → toast-SPJYfh08.js} +2 -2
- package/dist/client/assets/{toggle-BshAsXT6.js → toggle-C3pF5hng.js} +2 -2
- package/dist/client/assets/{toggle-group-ZNzhUvHt.js → toggle-group-C4V_4iet.js} +2 -2
- package/dist/client/assets/{tooltip-Cq9yz15d.js → tooltip-Cco13jKX.js} +2 -2
- package/dist/client/assets/{treeView-Q6P3EWNA-CqNF2YcW.js → treeView-Q6P3EWNA-DTI4SxFY.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-LJa3ZEYA.js → treemap-WGGIJYW6-CVnkW1D0.js} +1 -1
- package/dist/client/assets/{usage-CJVyABbK.js → usage-539lpsjW.js} +2 -2
- package/dist/client/assets/{usageAccess-CieOJbVm.js → usageAccess-CeCsk7TS.js} +2 -2
- package/dist/client/assets/{usageFormat-BEGhDYfU.js → usageFormat-CQXspPhL.js} +2 -2
- package/dist/client/assets/{usageShortcuts-DxuByyhD.js → usageShortcuts-DaMuOxo1.js} +2 -2
- package/dist/client/assets/{use-atom-command-x4GQBtio.js → use-atom-command-BHmF32aL.js} +2 -2
- package/dist/client/assets/{useAriaLabelledBy-u5efXUxw.js → useAriaLabelledBy-BinWYOc0.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-CReGBX6y.js → useHandleNewThread-Tv2D0mTw.js} +2 -2
- package/dist/client/assets/{useLocation-B3ir4ben.js → useLocation-BQwksr61.js} +2 -2
- package/dist/client/assets/useNavigate-LjcLtV_e.js +2 -0
- package/dist/client/assets/{useNavigateBack-XQd0WINI.js → useNavigateBack-D2S1CDHR.js} +2 -2
- package/dist/client/assets/{useParams-Cil-ZIwd.js → useParams-D_8gJiai.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-C4aMrLLP.js → usePermissionStatus-Bl_cAihc.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-BL4mjngC.js → usePullRequestActions-DscMhi-m.js} +2 -2
- package/dist/client/assets/{useRegisterFieldControl-75QESVfk.js → useRegisterFieldControl-Bp078Il-.js} +2 -2
- package/dist/client/assets/{useScopedModelAvailability-CBOIiaXC.js → useScopedModelAvailability-BP4GoHk-.js} +2 -2
- package/dist/client/assets/{useSettings-Dx076NWT.js → useSettings-DUgjfqYw.js} +2 -2
- package/dist/client/assets/{useT3ConnectAuthPrompt-1zTdZLsH.js → useT3ConnectAuthPrompt-D0cW1Kb6.js} +2 -2
- package/dist/client/assets/utils-Dx_TSvdC.js +37 -0
- package/dist/client/assets/{vcsRefInvalidation-46AnO9mr.js → vcsRefInvalidation-CRBfa6Wz.js} +2 -2
- package/dist/client/assets/{vennDiagram-4TSXK5OY-CvvE7gMp.js → vennDiagram-4TSXK5OY-BVgFdMgp.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-Ca8Qzkpo.js → wardley-WFR3VGLG-Dmh19KFW.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-BBSNgSMI.js → wardleyDiagram-VM6X3IG4-CLjnvp-z.js} +2 -2
- package/dist/client/assets/{welcome-B3wsq5wK.js → welcome-BcEvYhrg.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-D8OhWe48.js → xychartDiagram-S5SC5T6Z-CmyAZ93b.js} +2 -2
- package/dist/client/index.html +1 -1
- package/dist/{renderer-C4CdFj__.mjs → renderer-B8qsc7RL.mjs} +2 -2
- package/dist/{runtime-CCVFqL3Y.mjs → runtime-CEdmfdaF.mjs} +20 -6
- package/package.json +1 -1
- package/dist/client/assets/AlertDialogRoot-DvQNG7Nt.js +0 -2
- package/dist/client/assets/Input-BQRZG5rU.js +0 -2
- package/dist/client/assets/architecture-7GRP2DOG-CiMEl2LX.js +0 -1
- package/dist/client/assets/channel-CDbYAV2D.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-Cdtwlmxc.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-Cdtwlmxc.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-DNKqiuCf.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-CbOoDtR7.js +0 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-BtC_0p6z.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-IeTBC6cs.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-DLoLKYq3.js +0 -1
- package/dist/client/assets/session-logic-BLOBsHEA.js +0 -26
- package/dist/client/assets/settings.archived-Cq_qclay.js +0 -2
- package/dist/client/assets/settings.plugins-D5l1ZPSB.js +0 -5
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-DewOo-MV.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-d9EGwk-5.js +0 -9
- package/dist/client/assets/useNavigate-DRqH9NhA.js +0 -2
- package/dist/client/assets/utils-BEVyjoxo.js +0 -37
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-oBChb5qS.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,f as l,v as u,w as d,y as f,z as p}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-oBChb5qS.js";import{D as n,H as r,K as i,U as a,a as o,b as s,c,f as l,v as u,w as d,y as f,z as p}from"./chunk-DU6HZSFF-DZ_qPx6g.js";import{t as m}from"./linear-BUnzfXgk.js";import{t as h}from"./ordinal-BDEzSJ7C.js";import{t as g}from"./init-C-OQMol4.js";import{i as _}from"./chunk-75Z2AOVW-SUa_8bmt.js";import{t as v}from"./line-CUIFqVat.js";import"./chunk-PWAF6VOD-CyuqbEJS.js";import{t as y}from"./chunk-GMAD6QVW-DCcQWsDo.js";import{f as b}from"./mermaid.core-C1Tbkxei.js";function x(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function S(){var e=h().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=x(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return S(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},g.apply(d(),arguments)}var C=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,10,12,14,16,18,19,21,23],r=[2,6],i=[1,3],a=[1,5],o=[1,6],s=[1,7],c=[1,5,10,12,14,16,18,19,21,23,36,37,38],l=[1,25],u=[1,26],d=[1,28],f=[1,29],p=[1,30],m=[1,31],h=[1,32],g=[1,33],_=[1,34],v=[1,35],y=[1,36],b=[1,37],x=[1,43],S=[1,42],C=[1,47],w=[1,50],T=[1,10,12,14,16,18,19,21,23,36,37,38],E=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],D=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],O=[1,65],k=[26,28],A={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:`error`,5:`XYCHART`,8:`CHART_ORIENTATION`,10:`title`,12:`X_AXIS`,14:`Y_AXIS`,16:`LINE`,18:`BAR`,19:`acc_title`,20:`acc_title_value`,21:`acc_descr`,22:`acc_descr_value`,23:`acc_descr_multiline_value`,24:`SQUARE_BRACES_START`,26:`SQUARE_BRACES_END`,28:`COMMA`,29:`NUMBER_WITH_DECIMAL`,30:`STR`,33:`ARROW_DELIMITER`,36:`NEWLINE`,37:`SEMI`,38:`EOF`,40:`MD_STR`,42:`AMP`,43:`NUM`,44:`ALPHA`,45:`PLUS`,46:`EQUALS`,47:`MULT`,48:`DOT`,49:`BRKT`,50:`MINUS`,51:`UNDERSCORE`},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setOrientation(a[s]);break;case 9:r.setDiagramTitle(a[s].text.trim());break;case 12:r.setLineData({text:``,type:`text`},a[s]);break;case 13:r.setLineData(a[s-1],a[s]);break;case 14:r.setBarData({text:``,type:`text`},a[s]);break;case 15:r.setBarData(a[s-1],a[s]);break;case 16:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:this.$=a[s-1];break;case 20:case 30:this.$=[a[s-2],...a[s]];break;case 21:case 31:this.$=[a[s]];break;case 22:this.$={value:Number(a[s-1]),label:a[s]};break;case 23:this.$={value:Number(a[s]),label:``};break;case 24:r.setXAxisTitle(a[s]);break;case 25:r.setXAxisTitle(a[s-1]);break;case 26:r.setXAxisTitle({type:`text`,text:``});break;case 27:r.setXAxisBand(a[s]);break;case 28:r.setXAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 29:this.$=a[s-1];break;case 32:r.setYAxisTitle(a[s]);break;case 33:r.setYAxisTitle(a[s-1]);break;case 34:r.setYAxisTitle({type:`text`,text:``});break;case 35:r.setYAxisRangeData(Number(a[s-2]),Number(a[s]));break;case 39:this.$={text:a[s],type:`text`};break;case 40:this.$={text:a[s],type:`text`};break;case 41:this.$={text:a[s],type:`markdown`};break;case 42:this.$=a[s];break;case 43:this.$=a[s-1]+``+a[s]}},`anonymous`),table:[t(n,r,{3:1,4:2,7:4,5:i,36:a,37:o,38:s}),{1:[3]},t(n,r,{4:2,7:4,3:8,5:i,36:a,37:o,38:s}),t(n,r,{4:2,7:4,6:9,3:10,5:i,8:[1,11],36:a,37:o,38:s}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(c,[2,36]),t(c,[2,37]),t(c,[2,38]),{1:[2,1]},t(n,r,{4:2,7:4,3:21,5:i,36:a,37:o,38:s}),{1:[2,3]},t(c,[2,5]),t(n,[2,7],{4:22,36:a,37:o,38:s}),{11:23,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:39,13:38,24:x,29:S,30:l,31:40,32:41,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:45,15:44,29:C,30:l,35:46,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:49,17:48,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{11:52,17:51,24:w,30:l,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},{20:[1,53]},{22:[1,54]},t(T,[2,18]),{1:[2,2]},t(T,[2,8]),t(T,[2,9]),t(E,[2,39],{41:55,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b}),t(E,[2,40]),t(E,[2,41]),t(D,[2,42]),t(D,[2,44]),t(D,[2,45]),t(D,[2,46]),t(D,[2,47]),t(D,[2,48]),t(D,[2,49]),t(D,[2,50]),t(D,[2,51]),t(D,[2,52]),t(D,[2,53]),t(T,[2,10]),t(T,[2,24],{32:41,31:56,24:x,29:S}),t(T,[2,26]),t(T,[2,27]),{33:[1,57]},{11:59,30:l,34:58,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},t(T,[2,11]),t(T,[2,32],{35:60,29:C}),t(T,[2,34]),{33:[1,61]},t(T,[2,12]),{17:62,24:w},{25:63,27:64,29:O},t(T,[2,14]),{17:66,24:w},t(T,[2,16]),t(T,[2,17]),t(D,[2,43]),t(T,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},t(T,[2,33]),{29:[1,70]},t(T,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},t(k,[2,23],{30:[1,73]}),t(T,[2,15]),t(T,[2,28]),t(T,[2,29]),{11:59,30:l,34:74,39:24,40:u,41:27,42:d,43:f,44:p,45:m,46:h,47:g,48:_,49:v,50:y,51:b},t(T,[2,35]),t(T,[2,19]),{25:75,27:64,29:O},t(k,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};A.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(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:e(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:e(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:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(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:e(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:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
5
5
|
`+t+`^`},`showPosition`),test_match:e(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:e(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
|
|
6
6
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:e(function(){return this.next()||this.lex()},`lex`),begin:e(function(e){this.conditionStack.push(e)},`begin`),popState:e(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:e(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:e(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:e(function(e){this.begin(e)},`pushState`),stateStackSize:e(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:e(function(e,t,n,r){switch(n){case 0:break;case 1:break;case 2:return this.popState(),36;case 3:return this.popState(),36;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState(`acc_title`),19;case 8:return this.popState(),`acc_title_value`;case 9:return this.pushState(`acc_descr`),21;case 10:return this.popState(),`acc_descr_value`;case 11:this.pushState(`acc_descr_multiline`);break;case 12:this.popState();break;case 13:return`acc_descr_multiline_value`;case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState(`axis_data`),`X_AXIS`;case 18:return this.pushState(`axis_data`),`Y_AXIS`;case 19:return this.pushState(`axis_band_data`),24;case 20:return 33;case 21:return this.pushState(`data`),16;case 22:return this.pushState(`data`),18;case 23:return this.pushState(`data_inner`),24;case 24:return 29;case 25:return this.popState(),26;case 26:this.popState();break;case 27:this.pushState(`string`);break;case 28:this.popState();break;case 29:return`STR`;case 30:return 24;case 31:return 26;case 32:return 44;case 33:return`COLON`;case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},`anonymous`),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}})();function j(){this.yy={}}return e(j,`Parser`),j.prototype=A,A.Parser=j,new j})();C.parser=C;var w=C;function T(e){return e.type===`bar`}e(T,`isBarPlot`);function E(e){return e.type===`band`}e(E,`isBandAxisData`);function D(e){return e.type===`linear`}e(D,`isLinearAxisData`);var O=class{constructor(e){this.parentGroup=e}static{e(this,`TextDimensionCalculatorWithFont`)}getMaxDimension(e,t){if(!this.parentGroup)return{width:e.reduce((e,t)=>Math.max(t.length,e),0)*t,height:t};let n={width:0,height:0},r=this.parentGroup.append(`g`).attr(`visibility`,`hidden`).attr(`font-size`,t);for(let i of e){let e=y(r,1,i),a=e?e.width:i.length*t,o=e?e.height:t;n.width=Math.max(n.width,a),n.height=Math.max(n.height,o)}return r.remove(),n}},k=.7,A=.2,j=class{constructor(e,t,n,r){this.axisConfig=e,this.title=t,this.textDimensionCalculator=n,this.axisThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition=`left`,this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{e(this,`BaseAxis`)}setRange(e){this.range=e,this.axisPosition===`left`||this.axisPosition===`right`?this.boundingRect.height=e[1]-e[0]:this.boundingRect.width=e[1]-e[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(e=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){k*this.getTickDistance()>this.outerPadding*2&&(this.outerPadding=Math.floor(k*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let t=e.height;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=A*e.width;this.outerPadding=Math.min(n.width/2,r);let i=n.height;this.axisPosition===`bottom`&&this.normalizedLabelRotationInRad!==0&&(i=Math.max(i,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*n.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*n.height))),i+=this.axisConfig.labelPadding*2,this.labelTextHeight=n.height,i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width,this.boundingRect.height=e.height-t}calculateSpaceIfDrawnVertical(e){let t=e.width;if(this.axisConfig.showAxisLine&&t>this.axisConfig.axisLineWidth&&(t-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){let n=this.getLabelDimension(),r=A*e.height;this.outerPadding=Math.min(n.height/2,r);let i=n.width+this.axisConfig.labelPadding*2;i<=t&&(t-=i,this.showLabel=!0)}if(this.axisConfig.showTick&&t>=this.axisConfig.tickLength&&(this.showTick=!0,t-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){let e=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),n=e.height+this.axisConfig.titlePadding*2;this.titleTextHeight=e.height,n<=t&&(t-=n,this.showTitle=!0)}this.boundingRect.width=e.width-t,this.boundingRect.height=e.height}calculateSpace(e){return this.axisPosition===`left`||this.axisPosition===`right`?this.calculateSpaceIfDrawnVertical(e):this.calculateSpaceIfDrawnHorizontally(e),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateOffsetByRotation(e){let t=this.normalizedLabelRotationInRad;return t===0?0:Math.sin(t)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`left-axis`,`axisl-line`],data:[{path:`M ${t},${this.boundingRect.y} L ${t},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`left-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(e),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`middle`,horizontalPos:`right`}))}),this.showTick){let t=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`left-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${t},${this.getScaleValue(e)} L ${t-this.axisConfig.tickLength},${this.getScaleValue(e)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`left-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`bottom-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`bottom-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e)+this.calculateOffsetByRotation(`height`),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation(`width`)),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:`path`,groupTexts:[`bottom-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t} L ${this.getScaleValue(e)},${t+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`bottom-axis`,`title`],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let t=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:`path`,groupTexts:[`top-axis`,`axis-line`],data:[{path:`M ${this.boundingRect.x},${t} L ${this.boundingRect.x+this.boundingRect.width},${t}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&e.push({type:`text`,groupTexts:[`top-axis`,`label`],data:this.getTickValues().map(e=>({text:e.toString(),x:this.getScaleValue(e),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}))}),this.showTick){let t=this.boundingRect.y;e.push({type:`path`,groupTexts:[`top-axis`,`ticks`],data:this.getTickValues().map(e=>({path:`M ${this.getScaleValue(e)},${t+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(e)},${t+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&e.push({type:`text`,groupTexts:[`top-axis`,`title`],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:`top`,horizontalPos:`center`}]}),e}getDrawableElements(){if(this.axisPosition===`left`)return this.getDrawableElementsForLeftAxis();if(this.axisPosition===`right`)throw Error(`Drawing of right axis is not implemented`);return this.axisPosition===`bottom`?this.getDrawableElementsForBottomAxis():this.axisPosition===`top`?this.getDrawableElementsForTopAxis():[]}},M=class extends j{static{e(this,`BandAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.categories=n,this.scale=S().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=S().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),t.trace(`BandAxis axis final categories, range: `,this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},ee=class extends j{static{e(this,`LinearAxis`)}constructor(e,t,n,r,i){super(e,r,i,t),this.domain=n,this.scale=m().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];this.axisPosition===`left`&&e.reverse(),this.scale=m().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}};function N(e,t,n,r){let i=new O(r);return E(e)?new M(t,n,e.categories,e.title,i):new ee(t,n,[e.min,e.max],e.title,i)}e(N,`getAxis`);var te=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{e(this,`ChartTitle`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let t=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),n=Math.max(t.width,e.width),r=t.height+2*this.chartConfig.titlePadding;return t.width<=n&&t.height<=r&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=n,this.boundingRect.height=r,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){let e=[];return this.showChartTitle&&e.push({groupTexts:[`chart-title`],type:`text`,data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:`middle`,horizontalPos:`center`,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),e}};function P(e,t,n,r){return new te(new O(r),e,t,n)}e(P,`getChartTitleComponent`);var ne=.75,re=.5,ie=.35;function F(e){return{fontSize:e,markerSize:e*ne,markerSpacing:e*ie,itemSpacing:e*re}}e(F,`getLegendLayout`);var ae=class{constructor(e,t,n,r){this.textDimensionCalculator=e,this.chartConfig=t,this.chartData=n,this.chartThemeConfig=r,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{e(this,`ChartLegend`)}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter(e=>e.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:t,markerSize:n,markerSpacing:r,itemSpacing:i}=F(this.chartConfig.legendFontSize),a=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map(e=>e.title),t),o=this.chartConfig.legendPadding*2+n+r+a.width,s=this.chartConfig.legendPadding*2+this.visiblePlots.length*t+(this.visiblePlots.length-1)*i;return o<=e.width&&s<=e.height?(this.boundingRect.width=o,this.boundingRect.height=s):(this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:t,markerSpacing:n,itemSpacing:r}=F(this.chartConfig.legendFontSize),i=e+r,a=this.boundingRect.x+this.chartConfig.legendPadding,o=this.boundingRect.y+this.chartConfig.legendPadding,s=[],c=[];for(let[e,n]of this.visiblePlots.entries())if(T(n))s.push({x:a,y:o+e*i,width:t,height:t,fill:n.fill,strokeFill:n.fill,strokeWidth:0});else{let r=o+e*i+t/2;c.push({path:`M ${a},${r} L ${a+t},${r}`,strokeFill:n.strokeFill,strokeWidth:n.strokeWidth})}return[{groupTexts:[`legend`,`markers`],type:`rect`,data:s},{groupTexts:[`legend`,`markers`],type:`path`,data:c},{groupTexts:[`legend`,`label`],type:`text`,data:this.visiblePlots.map((r,s)=>({text:r.title,x:a+t+n,y:o+s*i+t/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:`middle`,horizontalPos:`left`}))}]}};function I(e,t,n,r){return new ae(new O(r),e,t,n)}e(I,`getChartLegendComponent`);var oe=class{constructor(e,t,n,r,i){this.plotData=e,this.xAxis=t,this.yAxis=n,this.orientation=r,this.plotIndex=i}static{e(this,`LinePlot`)}getDrawableElement(){let e=this.plotData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t;if(t=this.orientation===`horizontal`?v().y(e=>e[0]).x(e=>e[1])(e):v().x(e=>e[0]).y(e=>e[1])(e),!t)return[];let n=[{groupTexts:[`plot`,`line-plot-${this.plotIndex}`],type:`path`,data:[{path:t,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let t=[];for(let[n,[r,i]]of e.entries()){let e=this.plotData.pointLabels[n];e&&(this.orientation===`horizontal`?t.push({x:i+10,y:r,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`left`,fontSize:12,rotation:0}):t.push({x:r,y:i-10,text:e,fill:this.plotData.strokeFill,verticalPos:`middle`,horizontalPos:`center`,fontSize:12,rotation:0}))}t.length>0&&n.push({groupTexts:[`plot`,`line-plot-${this.plotIndex}`,`labels`],type:`text`,data:t})}return n}},se=class{constructor(e,t,n,r,i,a){this.barData=e,this.boundingRect=t,this.xAxis=n,this.yAxis=r,this.orientation=i,this.plotIndex=a}static{e(this,`BarPlot`)}getDrawableElement(){let e=this.barData.data.map(e=>[this.xAxis.getScaleValue(e[0]),this.yAxis.getScaleValue(e[1])]),t=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*.95,n=t/2;return this.orientation===`horizontal`?[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:this.boundingRect.x,y:e[0]-n,height:t,width:e[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:[`plot`,`bar-plot-${this.plotIndex}`],type:`rect`,data:e.map(e=>({x:e[0]-n,y:e[1],width:t,height:this.boundingRect.y+this.boundingRect.height-e[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},ce=class{constructor(e,t,n){this.chartConfig=e,this.chartData=t,this.chartThemeConfig=n,this.boundingRect={x:0,y:0,width:0,height:0}}static{e(this,`BasePlot`)}setAxes(e,t){this.xAxis=e,this.yAxis=t}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error(`Axes must be passed to render Plots`);let e=[];for(let[t,n]of this.chartData.plots.entries())switch(n.type){case`line`:{let r=new oe(n,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}break;case`bar`:{let r=new se(n,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,t);e.push(...r.getDrawableElement())}}return e}};function le(e,t,n){return new ce(e,t,n)}e(le,`getPlotComponent`);var ue=class{constructor(e,t,n,r){this.chartConfig=e,this.chartData=t,this.componentStore={title:P(e,t,n,r),plot:le(e,t,n),legend:I(e,t,n,r),xAxis:N(t.xAxis,e.xAxis,{titleColor:n.xAxisTitleColor,labelColor:n.xAxisLabelColor,tickColor:n.xAxisTickColor,axisLineColor:n.xAxisLineColor},r),yAxis:N(t.yAxis,e.yAxis,{titleColor:n.yAxisTitleColor,labelColor:n.yAxisLabelColor,tickColor:n.yAxisTickColor,axisLineColor:n.yAxisLineColor},r)}}static{e(this,`Orchestrator`)}calculateVerticalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i={width:0,height:0},a=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),o=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),s=this.componentStore.plot.calculateSpace({width:a,height:o});e-=s.width,t-=s.height,s=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),r=s.height,t-=s.height,this.componentStore.xAxis.setAxisPosition(`bottom`),s=this.componentStore.xAxis.calculateSpace({width:e,height:t}),t-=s.height,this.componentStore.yAxis.setAxisPosition(`left`),s=this.componentStore.yAxis.calculateSpace({width:e,height:t}),n=s.width,e-=s.width,i=this.componentStore.legend.calculateSpace({width:e,height:o}),e-=i.width,e>0&&(a+=e,e=0),t>0&&(o+=t,t=0),this.componentStore.plot.calculateSpace({width:a,height:o}),this.componentStore.plot.setBoundingBoxXY({x:n,y:r}),this.componentStore.legend.setBoundingBoxXY({x:n+a,y:r+Math.max((o-i.height)/2,0)}),this.componentStore.xAxis.setRange([n,n+a]),this.componentStore.xAxis.setBoundingBoxXY({x:n,y:r+o}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:r}),this.chartData.plots.some(e=>T(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,t=this.chartConfig.height,n=0,r=0,i=0,a={width:0,height:0},o=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),s=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),c=this.componentStore.plot.calculateSpace({width:o,height:s});e-=c.width,t-=c.height,c=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:t}),n=c.height,t-=c.height,this.componentStore.xAxis.setAxisPosition(`left`),c=this.componentStore.xAxis.calculateSpace({width:e,height:t}),e-=c.width,r=c.width,this.componentStore.yAxis.setAxisPosition(`top`),c=this.componentStore.yAxis.calculateSpace({width:e,height:t}),t-=c.height,i=n+c.height,a=this.componentStore.legend.calculateSpace({width:e,height:s}),e-=a.width,e>0&&(o+=e,e=0),t>0&&(s+=t,t=0),this.componentStore.plot.calculateSpace({width:o,height:s}),this.componentStore.plot.setBoundingBoxXY({x:r,y:i}),this.componentStore.legend.setBoundingBoxXY({x:r+o,y:i+Math.max((s-a.height)/2,0)}),this.componentStore.yAxis.setRange([r,r+o]),this.componentStore.yAxis.setBoundingBoxXY({x:r,y:n}),this.componentStore.xAxis.setRange([i,i+s]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:i}),this.chartData.plots.some(e=>T(e))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){this.chartConfig.chartOrientation===`horizontal`?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let t of Object.values(this.componentStore))e.push(...t.getDrawableElements());return e}},de=class{static{e(this,`XYChartBuilder`)}static build(e,t,n,r){return new ue(e,t,n,r).getDrawableElement()}},L=0,R,z=K(),B=G(),V=q(),H=B.plotColorPalette.split(`,`).map(e=>e.trim()),U=!1,W=!1;function G(){let e=n(),t=s();return _(e.xyChart,t.themeVariables.xyChart)}e(G,`getChartDefaultThemeConfig`);function K(){let e=s();return _(l.xyChart,e.xyChart)}e(K,`getChartDefaultConfig`);function q(){return{yAxis:{type:`linear`,title:``,min:1/0,max:-1/0},xAxis:{type:`band`,title:``,categories:[]},title:``,plots:[]}}e(q,`getChartDefaultData`);function J(e){let t=s();return p(e.trim(),t)}e(J,`textSanitizer`);function Y(e){R=e}e(Y,`setTmpSVGG`);function fe(e){e===`horizontal`?z.chartOrientation=`horizontal`:z.chartOrientation=`vertical`}e(fe,`setOrientation`);function pe(e){V.xAxis.title=J(e.text)}e(pe,`setXAxisTitle`);function X(e,t){V.xAxis={type:`linear`,title:V.xAxis.title,min:e,max:t},U=!0}e(X,`setXAxisRangeData`);function me(e){V.xAxis={type:`band`,title:V.xAxis.title,categories:e.map(e=>J(e.text))},U=!0}e(me,`setXAxisBand`);function he(e){V.yAxis.title=J(e.text)}e(he,`setYAxisTitle`);function Z(e,t){V.yAxis={type:`linear`,title:V.yAxis.title,min:e,max:t},W=!0}e(Z,`setYAxisRangeData`);function ge(e){let t=Math.min(...e),n=Math.max(...e),r=D(V.yAxis)?V.yAxis.min:1/0,i=D(V.yAxis)?V.yAxis.max:-1/0;V.yAxis={type:`linear`,title:V.yAxis.title,min:Math.min(r,t),max:Math.max(i,n)}}e(ge,`setYAxisRangeFromPlotData`);function Q(e){let t=[];if(e.length===0)return t;if(!U){let t=D(V.xAxis)?V.xAxis.min:1/0,n=D(V.xAxis)?V.xAxis.max:-1/0;X(Math.min(t,1),Math.max(n,e.length))}if(E(V.xAxis)&&e.length>V.xAxis.categories.length&&(e=e.slice(0,V.xAxis.categories.length)),W||ge(e),E(V.xAxis)&&(t=V.xAxis.categories.map((t,n)=>[t,e[n]])),D(V.xAxis)){let n=V.xAxis.min,r=V.xAxis.max;if(e.length===1)t=[[`${n}`,e[0]]];else{let i=(r-n)/(e.length-1);t=e.map((e,t)=>[`${n+t*i}`,e])}}return t}e(Q,`transformDataWithoutCategory`);function $(e){return H[e===0?0:e%H.length]}e($,`getPlotColorFromPalette`);function _e(e,t){let n=t.map(e=>e.value),r=t.map(e=>e.label?J(e.label):``),i=Q(n),a=r.some(e=>e!==``);V.plots.push({type:`line`,title:J(e.text),strokeFill:$(L),strokeWidth:2,data:i,...a?{pointLabels:r}:{}}),L++}e(_e,`setLineData`);function ve(e,t){let n=Q(t.map(e=>e.value));V.plots.push({type:`bar`,title:J(e.text),fill:$(L),data:n}),L++}e(ve,`setBarData`);function ye(){if(V.plots.length===0)throw Error(`No Plot to render, please provide a plot with some data`);return V.title=d(),de.build(z,V,B,R)}e(ye,`getDrawableElem`);function be(){return B}e(be,`getChartThemeConfig`);function xe(){return z}e(xe,`getChartConfig`);function Se(){return V}e(Se,`getXYChartData`);var Ce={parser:w,db:{getDrawableElem:ye,clear:e(function(){o(),L=0,z=K(),V=q(),B=G(),H=B.plotColorPalette.split(`,`).map(e=>e.trim()),U=!1,W=!1},`clear`),setAccTitle:a,getAccTitle:f,setDiagramTitle:i,getDiagramTitle:d,getAccDescription:u,setAccDescription:r,setOrientation:fe,setXAxisTitle:pe,setXAxisRangeData:X,setXAxisBand:me,setYAxisTitle:he,setYAxisRangeData:Z,setLineData:_e,setBarData:ve,setTmpSVGG:Y,getChartThemeConfig:be,getChartConfig:xe,getXYChartData:Se},renderer:{draw:e((n,r,i,a)=>{let o=a.db,s=o.getChartThemeConfig(),l=o.getChartConfig(),u=o.getXYChartData().plots[0].data.map(e=>e[1]);function d(e){return e===`top`?`text-before-edge`:`middle`}e(d,`getDominantBaseLine`);function f(e){return e===`left`?`start`:e===`right`?`end`:`middle`}e(f,`getTextAnchor`);function p(e){return`translate(${e.x}, ${e.y}) rotate(${e.rotation||0})`}e(p,`getTextTransformation`),t.debug(`Rendering xychart chart
|
|
7
7
|
`+n);let m=b(r),h=m.append(`g`).attr(`class`,`main`),g=h.append(`rect`).attr(`width`,l.width).attr(`height`,l.height).attr(`class`,`background`);c(m,l.height,l.width,!0),m.attr(`viewBox`,`0 0 ${l.width} ${l.height}`),g.attr(`fill`,s.backgroundColor),o.setTmpSVGG(m.append(`g`).attr(`class`,`mermaid-tmp-group`));let _=o.getDrawableElem(),v={};function y(e){let t=h,n=``;for(let[r]of e.entries()){let i=h;r>0&&v[n]&&(i=v[n]),n+=e[r],t=v[n],t||=v[n]=i.append(`g`).attr(`class`,e[r])}return t}e(y,`getGroup`);for(let t of _){if(t.data.length===0)continue;let n=y(t.groupTexts);switch(t.type){case`rect`:if(n.selectAll(`rect`).data(t.data).enter().append(`rect`).attr(`x`,e=>e.x).attr(`y`,e=>e.y).attr(`width`,e=>e.width).attr(`height`,e=>e.height).attr(`fill`,e=>e.fill).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth),l.showDataLabel){let r=l.showDataLabelOutsideBar;if(l.chartOrientation===`horizontal`){let i=function(e,t){let{data:n,label:r}=e;return t*r.length*a<=n.width-o};e(i,`fitsHorizontally`);let a=.7,o=10,c=t.data.map((e,t)=>({data:e,label:u[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),l=c.map(e=>{let{data:t}=e,n=t.height*.7;for(;!i(e,n)&&n>0;)--n;return n}),d=Math.floor(Math.min(...l)),f=e(e=>r?e.data.x+e.data.width+10:e.data.x+e.data.width-10,`determineLabelXPosition`);n.selectAll(`text`).data(c).enter().append(`text`).attr(`x`,f).attr(`y`,e=>e.data.y+e.data.height/2).attr(`text-anchor`,r?`start`:`end`).attr(`dominant-baseline`,`middle`).attr(`fill`,s.dataLabelColor).attr(`font-size`,`${d}px`).text(e=>e.label)}else{let i=function(e,t,n){let{data:r,label:i}=e,a=t*i.length*.7,o=r.x+r.width/2,s=o-a/2,c=o+a/2,l=s>=r.x&&c<=r.x+r.width,u=r.y+n+t<=r.y+r.height;return l&&u};e(i,`fitsInBar`);let a=t.data.map((e,t)=>({data:e,label:u[t].toString()})).filter(e=>e.data.width>0&&e.data.height>0),o=a.map(e=>{let{data:t,label:n}=e,r=t.width/(n.length*.7);for(;!i(e,r,10)&&r>0;)--r;return r}),c=Math.floor(Math.min(...o)),l=e(e=>r?e.data.y-10:e.data.y+10,`determineLabelYPosition`);n.selectAll(`text`).data(a).enter().append(`text`).attr(`x`,e=>e.data.x+e.data.width/2).attr(`y`,l).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,r?`auto`:`hanging`).attr(`fill`,s.dataLabelColor).attr(`font-size`,`${c}px`).text(e=>e.label)}}break;case`text`:n.selectAll(`text`).data(t.data).enter().append(`text`).attr(`x`,0).attr(`y`,0).attr(`fill`,e=>e.fill).attr(`font-size`,e=>e.fontSize).attr(`dominant-baseline`,e=>d(e.verticalPos)).attr(`text-anchor`,e=>f(e.horizontalPos)).attr(`transform`,e=>p(e)).text(e=>e.text);break;case`path`:n.selectAll(`path`).data(t.data).enter().append(`path`).attr(`d`,e=>e.path).attr(`fill`,e=>e.fill?e.fill:`none`).attr(`stroke`,e=>e.strokeFill).attr(`stroke-width`,e=>e.strokeWidth)}}},`draw`)}};export{Ce as diagram};
|
|
8
|
-
//# sourceMappingURL=xychartDiagram-S5SC5T6Z-
|
|
8
|
+
//# sourceMappingURL=xychartDiagram-S5SC5T6Z-CmyAZ93b.js.map
|
package/dist/client/index.html
CHANGED
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
</script>
|
|
407
407
|
<style>html,body,#root{width:100%;height:100%;margin:0}body{color:#262626;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}html.dark body{color:#f5f5f5;background:#0a0a0a}#boot-shell{background:inherit;min-height:100%;color:inherit;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}html[data-theme-selected=true] #boot-shell{background:var(--boot-background);color:var(--boot-foreground)}#boot-shell-card{z-index:1;justify-content:center;align-items:center;width:96px;height:96px;display:flex;position:relative}#boot-shell-logo{object-fit:contain;width:64px;height:64px}#boot-error{text-align:center;justify-items:center;gap:16px;max-width:600px;padding:24px;display:grid}#boot-error p{overflow-wrap:anywhere;margin:0}#boot-error button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:1px solid;border-radius:4px;padding:8px 16px}</style>
|
|
408
408
|
<title>P4 Code</title>
|
|
409
|
-
<script type="module" crossorigin src="/assets/index-
|
|
409
|
+
<script type="module" crossorigin src="/assets/index-BcfzEf8A.js"></script>
|
|
410
410
|
</head>
|
|
411
411
|
<body>
|
|
412
412
|
<div id="root">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-
|
|
3
|
+
import { f as selectLayoutItems, r as computeLayout, u as resolveValue } from "./runtime-CEdmfdaF.mjs";
|
|
4
4
|
import { Canvas, DOMMatrix as DOMMatrix$1, FontLibrary, Image, Path2D } from "skia-canvas";
|
|
5
5
|
//#region ../../node_modules/.pnpm/konva@10.7.1_skia-canvas@3.0.8/node_modules/konva/lib/Global.js
|
|
6
6
|
/*
|
|
@@ -17643,4 +17643,4 @@ function createRenderer(width, height) {
|
|
|
17643
17643
|
//#endregion
|
|
17644
17644
|
export { createRenderer, rasterizeSvg, renderDesignExport, renderDesignPng };
|
|
17645
17645
|
|
|
17646
|
-
//# sourceMappingURL=renderer-
|
|
17646
|
+
//# sourceMappingURL=renderer-B8qsc7RL.mjs.map
|
|
@@ -18846,7 +18846,7 @@ const RESERVED_MCP_SERVER_NAME = "t3-code";
|
|
|
18846
18846
|
/** The name agents see as the server's tool prefix. */
|
|
18847
18847
|
const McpServerName = TrimmedNonEmptyString.check(isMaxLength(64), isPattern(/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/), makeFilter((value) => value.trim() !== RESERVED_MCP_SERVER_NAME, { expected: `a name other than ${RESERVED_MCP_SERVER_NAME}` }));
|
|
18848
18848
|
/**
|
|
18849
|
-
* Environment
|
|
18849
|
+
* Environment, header, and plugin option values are credentials: the server keeps them
|
|
18850
18850
|
* in its secret store and a client only ever sees the redaction marker.
|
|
18851
18851
|
*/
|
|
18852
18852
|
const SecretValues = Record(String$1, String$1).pipe(withDecodingDefault(succeed({})));
|
|
@@ -18899,11 +18899,25 @@ const mcpProviderSupport = (_driver, _transport) => {
|
|
|
18899
18899
|
*/
|
|
18900
18900
|
const MCP_PROVIDER_SIGN_IN_DRIVERS = ["codex", "claudeAgent"];
|
|
18901
18901
|
const supportsProviderMcpSignIn = (driver) => MCP_PROVIDER_SIGN_IN_DRIVERS.includes(driver);
|
|
18902
|
-
/** A
|
|
18902
|
+
/** A plugin folder on the server host (`.claude-plugin/` or `.codex-plugin/plugin.json`). */
|
|
18903
18903
|
const PluginConfig = Struct({
|
|
18904
18904
|
name: TrimmedNonEmptyString,
|
|
18905
18905
|
path: TrimmedNonEmptyString,
|
|
18906
|
-
enabled: Boolean.pipe(withDecodingDefault(succeed(true)))
|
|
18906
|
+
enabled: Boolean.pipe(withDecodingDefault(succeed(true))),
|
|
18907
|
+
/**
|
|
18908
|
+
* Values for the Claude Code manifest's `userConfig` keys, filled into
|
|
18909
|
+
* `${user_config.KEY}` for the plugin servers P4 hands to providers. Kept in
|
|
18910
|
+
* the secret store like registry server headers.
|
|
18911
|
+
*/
|
|
18912
|
+
options: SecretValues
|
|
18913
|
+
});
|
|
18914
|
+
/**
|
|
18915
|
+
* A plugin in a settings patch. Clients built before `options` existed send a
|
|
18916
|
+
* plugin without it, which keeps the stored options; `{}` clears them.
|
|
18917
|
+
*/
|
|
18918
|
+
const PluginConfigPatch = Struct({
|
|
18919
|
+
...PluginConfig.fields,
|
|
18920
|
+
options: optionalKey(Record(String$1, String$1))
|
|
18907
18921
|
});
|
|
18908
18922
|
/** A project's override of one registry entry. An absent `enabled` inherits. */
|
|
18909
18923
|
const ProjectRegistryEntryOverride = Struct({ enabled: optionalKey(Boolean) });
|
|
@@ -20404,7 +20418,7 @@ const ServerSettings = Struct({
|
|
|
20404
20418
|
mcpServers: Record(McpServerId, McpServerConfig).pipe(withDecodingDefault(succeed({}))),
|
|
20405
20419
|
/** Native skill enablement. External provider configuration files are never changed. */
|
|
20406
20420
|
skillOverrides: Record(TrimmedNonEmptyString, Boolean).pipe(withDecodingDefault(succeed({}))),
|
|
20407
|
-
/**
|
|
20421
|
+
/** Plugin folders on this host. Claude loads each folder; other providers get its MCP servers. */
|
|
20408
20422
|
plugins: Record(PluginId, PluginConfig).pipe(withDecodingDefault(succeed({}))),
|
|
20409
20423
|
/** Allows this server to read the Cursor CLI's macOS Keychain login for account usage. */
|
|
20410
20424
|
cursorKeychainUsageEnabled: Boolean.pipe(withDecodingDefault(succeed(false))),
|
|
@@ -20632,7 +20646,7 @@ const ServerSettingsPatch = Struct({
|
|
|
20632
20646
|
providerInstances: optionalKey(Record(ProviderInstanceId, ProviderInstanceConfig)),
|
|
20633
20647
|
usageLimitSources: optionalKey(Record(UsageLimitSourceId, NullOr(UsageLimitSourceConfig))),
|
|
20634
20648
|
mcpServers: optionalKey(Record(McpServerId, NullOr(McpServerConfig))),
|
|
20635
|
-
plugins: optionalKey(Record(PluginId, NullOr(
|
|
20649
|
+
plugins: optionalKey(Record(PluginId, NullOr(PluginConfigPatch))),
|
|
20636
20650
|
skillOverrides: optionalKey(Record(TrimmedNonEmptyString, NullOr(Boolean))),
|
|
20637
20651
|
cursorKeychainUsageEnabled: optionalKey(Boolean),
|
|
20638
20652
|
/** Each entry replaces one model's rates; `null` restores automatic pricing. */
|
|
@@ -30986,4 +31000,4 @@ function semanticDiff(before, after) {
|
|
|
30986
31000
|
//#endregion
|
|
30987
31001
|
export { WsSubscribeThreadDecisionsRpc as $, DeviceToolOpenInput as $a, VcsProcessOutputReadError as $c, ORCHESTRATION_PROTOCOL_QUERY_PARAM as $d, AcpRegistryListProvidersResult as $f, ResponseStreamingMode as $i, toHeaders as $l, AttachmentCreateUploadUrlInput as $n, RelayManagedEndpointRuntimeConfig as $o, ProviderTurnId as $p, OrchestrationDispatchCommandError as $r, OrchestrationV2ThreadShell as $s, PreviewAutomationEvaluateInput as $t, appendUrlParams as $u, SelfImproveLabel as A, ResolvedKeybindingRule as Aa, RuntimeMode as Ac, layer$1 as Ad, authScopeRequiredResponse as Af, TerminalCwdNotFoundError as Ai, patch as Al, PreviewAutomationTypeInput as An, EnvironmentAuthenticatedPrincipal as Ao, CheckpointRef as Ap, OrchestratorMcpRequestSecretResult as Ar, OrchestrationV2ProviderGoal as As, ClientAbort as At, isHttpServerResponse as Au, ComputerUseHostResponse as B, mcpProviderSupport as Ba, PullRequestUnavailableError as Bc, urlParams$1 as Bd, getWithHeadersAnnotation as Bf, BackgroundActivityProfile as Bi, serve as Bl, AssetGitHubMediaUrlValidationError as Bn, EnvironmentOperationForbiddenError as Bo, DpopFailureReason as Bp, OrchestratorMcpThreadReadInput as Br, OrchestrationV2RunStatus as Bs, ResourceMonitorCommand as Bt, stream as Bu, clean as C, PreviewStreamHostSetup as Ca, ProjectWriteFileError as Cc, StatusCodeError as Cd, AuthSettingsWriteScope as Cf, ExternalLauncherUnknownEditorError as Ci, make$3 as Cl, PreviewAutomationSetColorSchemeResult as Cn, DesktopBrowserCommand as Co, OrchestrationMessageContext as Cp, OrchestratorMcpDelegateTaskResult as Cr, OrchestrationV2DomainEventJson as Cs, DesignValidateReceipt as Ct, symbol$1 as Cu, SelfImproveDecision as D, KeybindingsConfig as Da, ProviderApprovalDecision as Dc, TypeId$17 as Dd, AuthTerminalReadScope as Df, ProviderUploadFeedbackError as Di, getErrorSchemas as Dl, PreviewAutomationTabTargetInput as Dn, RelayClientInstallFailedError as Do, AssistantCitation as Dp, OrchestratorMcpListScheduledTasksInput as Dr, OrchestrationV2GetThreadProjectionError as Ds, exitSchema as Dt, empty as Du, toBytes as E, KeybindingRule as Ea, DEFAULT_RUNTIME_MODE as Ec, CurrentErrorReporters as Ed, AuthTerminalOperateScope as Ef, ProviderSetupError as Ei, get as El, PreviewAutomationTabNotFoundError as En, DesktopBackendBootstrap as Eo, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Ep, OrchestratorMcpFailure as Er, OrchestrationV2GetShellSnapshotError as Es, ServerClient as Et, make$12 as Eu, COMPUTER_USE_MAX_OUTPUT_CHARS as F, McpServerName as Fa, PullRequestLinkedThreadsResult as Fc, jsonUnsafe$1 as Fd, getPayloadEncoding as Ff, TerminalProviderInstanceNotFoundError as Fi, RouteContext as Fl, SERVER_BROWSER_AUTOMATION_CLIENT_ID as Fn, EnvironmentHttpConflictError as Fo, ClientSurface as Fp, OrchestratorMcpTaskStatusInput as Fr, OrchestrationV2ProviderThreadJson as Fs, WorktreeMcpHandoffResult as Ft, removeHeader as Fu, clientRpcRequiredScopes as G, DeviceHostUnavailableError as Ga, SourceControlCloneRepositoryResult as Gc, BadArgument as Gd, isWithHeadersValue as Gf, DATABASE_COMPACTION_RECOMMENDED_BYTES as Gi, compression as Gl, AssetSigningKeyLoadError as Gn, RelayCloudEnvironmentHealthProofPayload as Go, NodeId as Gp, OrchestratorMcpThreadWaitResult as Gr, OrchestrationV2StopWorkflowError as Gs, PREVIEW_RECORDING_STOP_TIMEOUT_MS as Gt, filterStatusOk as Gu, ComputerUseOutput as H, supportsProviderMcpSignIn as Ha, pullRequestProviderRequirement as Hc, FileTypeId as Hd, isStreamSchema$1 as Hf, ClaudeSettings as Hi, HttpServer as Hl, AssetProjectFaviconInspectionError as Hn, EnvironmentResourceNotFoundError as Ho, EventId as Hp, OrchestratorMcpThreadSendInput as Hr, OrchestrationV2RuntimeRequestJson as Hs, McpCapabilityUnavailableError as Ht, uint8Array as Hu, ComputerUseError as I, McpServerRuntimeState as Ia, PullRequestOperationError as Ic, raw$1 as Id, getResponseEncoding as If, TerminalResizeError as Ii, add$1 as Il, McpAppRequestError as In, EnvironmentHttpForbiddenError as Io, ClientWebDeployment as Ip, OrchestratorMcpThreadInterruptInput as Ir, OrchestrationV2ProviderTurn as Is, WorktreeMcpStatusResult as It, setBody as Iu, WsMcpRegistryProviderSignInStartRpc as J, DevicePlatformAvailability as Ja, SourceControlRepositoryError as Jc, isPlatformError as Jd, hasBody as Jf, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as Ji, addHeaderAttributes as Jl, AssetWorkspaceContextNotFoundError as Jn, RelayEnvironmentLinkResponse as Jo, PortSchema as Jp, ScheduledTask as Jr, OrchestrationV2Subagent as Js, PreviewAutomationControlInterruptedError as Jt, MaxBodySize as Ju, RpcScopeAuthorization as K, DeviceNotFoundError as Ka, SourceControlProviderError as Kc, PlatformError as Kd, withHeaders as Kf, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as Ki, isTracerDisabledUnsafe as Kl, AssetWorkspaceAssetInspectionError as Kn, RelayCloudMintCredentialProofPayload as Ko, NonNegativeInt as Kp, OrchestratorMcpUpdateScheduledTaskInput as Kr, OrchestrationV2StopWorkflowInput as Ks, PreviewAutomationClickInput as Kt, fromWeb as Ku, ComputerUseHost as L, McpServerTransport as La, PullRequestStack as Lc, stream$1 as Ld, getResponseEncodingSchema as Lf, TerminalSessionLookupError as Li, cors as Ll, ATTACHMENT_UPLOAD_URL_TTL_MS as Ln, EnvironmentHttpInternalServerError as Lo, CommandId as Lp, OrchestratorMcpThreadInterruptResult as Lr, OrchestrationV2ProviderTurnJson as Ls, UsageReadError as Lt, setHeader as Lu, SelfImproveResult as M, THREAD_JUMP_KEYBINDING_COMMANDS as Ma, ThreadPullRequestKey as Mc, layer$2 as Md, NoContent as Mf, TerminalHistoryError as Mi, put as Ml, PreviewAutomationUnsupportedClientError as Mn, EnvironmentHttpApi as Mo, ClientConnectionMethod as Mp, OrchestratorMcpScheduleTaskResult as Mr, OrchestrationV2ProviderSession as Ms, isStreamSchema as Mt, mergeCookies as Mu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as N, McpRegistryRpcError as Na, ThreadPullRequestLink as Nc, layerWeak as Nd, StreamSse as Nf, TerminalNotRunningError as Ni, normalize as Nl, PreviewAutomationUploadInput as Nn, EnvironmentHttpBadRequestError as No, ClientDeviceType as Np, OrchestratorMcpTaskCancelInput as Nr, OrchestrationV2ProviderSessionJson as Ns, WorktreeMcpFailure as Nt, raw as Nu, SelfImproveError as O, KeybindingsConfigError as Oa, ProviderInteractionMode as Oc, ignore as Od, EnvironmentAuthorizationError as Of, DEFAULT_TERMINAL_ID as Oi, getPayloadSchemas as Ol, PreviewAutomationTargetNotEditableError as On, EnvironmentAuthInvalidError as Oo, AuthSessionId as Op, OrchestratorMcpListScheduledTasksResult as Or, OrchestrationV2PlanArtifact as Os, isWrapper as Ot, file as Ou, COMPUTER_USE_JEV_TAKE_CODE as P, McpServerId as Pa, ThreadPullRequestLinkSource as Pc, isHttpBody as Pd, asUint8Array as Pf, TerminalProviderEnvironmentError as Pi, HttpRouter as Pl, PreviewAutomationWaitForInput as Pn, EnvironmentHttpCommonError as Po, ClientOs as Pp, OrchestratorMcpTaskCancelResult as Pr, OrchestrationV2ProviderThread as Ps, WorktreeMcpHandoffInput as Pt, redirect as Pu, WsRpcGroup as Q, DeviceToolListResult as Qa, VcsProcessOutputLimitError as Qc, ORCHESTRATION_PROTOCOL_HEADER as Qd, encoder$1 as Qf, ProjectSettingsOverrides as Qi, fromHeaders as Ql, AssetWorkspaceRootNormalizationError as Qn, RelayManagedEndpointRecoveryResponse as Qo, ProviderThreadId as Qp, ApplicationProjectEvent as Qr, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as Qs, PreviewAutomationError as Qt, acceptJson as Qu, ComputerUseHostRegistration as R, PluginId as Ra, PullRequestState as Rc, text$1 as Rd, getStatusErrorSchema as Rf, TerminalWriteError as Ri, middleware as Rl, AssetAttachmentNotFoundError as Rn, EnvironmentHttpUnauthorizedError as Ro, ContextHandoffId as Rp, OrchestratorMcpThreadListInput as Rr, OrchestrationV2RunAttemptJson as Rs, DesktopHostTelemetryMessage as Rt, setHeaders as Ru, anumber as S, PreviewSessionLookupError as Sa, ProjectUpdatePayload as Sc, InvalidUrlError as Sd, AuthRelayWriteScope as Sf, ExternalLauncherEditorSpawnError as Si, getSlotParseOptions as Sl, PreviewAutomationSetColorSchemeInput as Sn, DesktopAppActivationResponse as So, ComposerContextRecord as Sp, OrchestratorMcpDelegateTaskInput as Sr, OrchestrationV2DomainEvent as Ss, DesignStylesRequest as St, causeResponse as Su, randomBytes as T, PreviewViewportSetting as Ta, DEFAULT_PROVIDER_INTERACTION_MODE as Tc, isHttpClientError as Td, AuthStandardClientScopes as Tf, ExternalLauncherUnsupportedTargetError as Ti, del as Tl, PreviewAutomationStatus as Tn, DESKTOP_UPDATE_RESTART_MARKER_FILE as To, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as Tp, OrchestratorMcpDeleteScheduledTaskResult as Tr, OrchestrationV2ExecutionNodeJson as Ts, make as Tt, HttpPlatform as Tu, computerUseJevStepCode as U, DeviceActionUnavailableError as Ua, resolvePullRequestAuthorFilter as Uc, WatchBackend as Ud, isStreamUint8Array as Uf, CodexSettings as Ui, make$6 as Ul, AssetProjectFaviconNotFoundError as Un, EnvironmentScopeRequiredError as Uo, IsoDateTime as Up, OrchestratorMcpThreadSendResult as Ur, OrchestrationV2SearchThreadError as Us, PREVIEW_AUTOMATION_SERVER_OPERATIONS as Ut, urlParams as Uu, ComputerUseJsInput as V, resolveRegistryEntryEnabled as Va, pullRequestHostOf as Vc, FileSystem as Vd, isNoContent as Vf, BackgroundActivityProfileSelection as Vi, use as Vl, AssetPreviewTypeValidationError as Vn, EnvironmentRequestInvalidError as Vo, EnvironmentId as Vp, OrchestratorMcpThreadReadResult as Vr, OrchestrationV2RuntimeRequest as Vs, ResourceMonitorEvent as Vt, text as Vu, CLIENT_GUARDED_RPC_SCOPES as W, DeviceBootError as Wa, SourceControlCloneRepositoryInput as Wc, make$16 as Wd, isWithHeaders as Wf, CompressMode as Wi, TracerDisabledWhen as Wl, AssetProjectFaviconResolutionError as Wn, RelayApi as Wo, MessageId as Wp, OrchestratorMcpThreadWaitInput as Wr, OrchestrationV2SearchThreadInput as Ws, PREVIEW_AUTOMATION_V1_OPERATIONS as Wt, TypeId$13 as Wu, WsMcpRegistryProviderSignInWaitRpc as X, DeviceToolCloseInput as Xa, VcsProcessExitError as Xc, make$17 as Xd, decode as Xf, GitHubHost as Xi, appendPreResponseHandlerUnsafe as Xl, AssetWorkspacePathValidationError as Xn, RelayManagedEndpointOrigin as Xo, ProjectId as Xp, ScheduledTaskWebhookDeliveryId as Xr, OrchestrationV2ThreadForkSourcePoint as Xs, PreviewAutomationDialogInput as Xt, inspect as Xu, WsMcpRegistryProviderSignInStateRpc as Y, DevicePlatformUnavailableError as Ya, VcsDriverKind as Yc, systemError as Yd, Retry as Yf, DEFAULT_SERVER_SETTINGS as Yi, addUrlAttributes as Yl, AssetWorkspaceContextResolutionError as Yn, RelayHookDeliveryProofPayload as Yo, PositiveInt as Yp, ScheduledTaskError as Yr, OrchestrationV2SubagentJson as Ys, PreviewAutomationControlReason as Yt, TypeId$14 as Yu, WsMcpRegistryProviderSignOutRpc as Z, DeviceToolError as Za, VcsProcessMissingExitCodeError as Zc, ExecutionEnvironmentDescriptor as Zd, decodeSchema as Zf, PROJECT_SCOPED_SERVER_SETTING_KEYS as Zi, requestPreResponseHandlers as Zl, AssetWorkspaceResolutionError as Zn, RelayManagedEndpointRecoveryRegistrationResponse as Zo, ProviderSessionId as Zp, ApplicationEventMetadata as Zr, OrchestrationV2ThreadLaunchError as Zs, PreviewAutomationDragInput as Zt, schemaBodyJson as Zu, sha512 as _, PREVIEW_VIEWPORT_PRESET_IDS as _a, ProjectMutationError as _c, setUrl as _d, AuthOrchestrationOperateScope as _f, isProviderTextGenerationCapable as _i, getProviderAttachmentLimitError as _l, set as _m, PreviewAutomationResizeResult as _n, DEFAULT_BROWSER_PROFILE_ID as _o, ProviderDriverKind as _p, ThreadMetadataMcpUpdateInput as _r, OrchestrationV2ContextTransferJson as _s, DesignRenderRequest as _t, ClientAbort$1 as _u, documentContentDigest as a, makeBinaryPathSetting as aa, isOrchestrationV2WorkActive as ac, bodyStream as ad, AuthAdministrativeScopes as af, GitPullRequestMaterializationError as ai, ModelSelection as al, ScheduledTaskId as am, PreviewAutomationNoAvailableHostError as an, LOCAL_DEVICE_HOST_ID as ao, resolveOfficialAcpRegistryIconUrl as ap, AgentSessionImportSource as ar, toRouterPath as as, DesignHumanApplyRequest as at, schemaSearchParams as au, aexists as b, PreviewInvalidUrlError as ba, ProjectSearchContentsError as bc, HttpClientError as bd, AuthProvidersManageScope as bf, ExternalLauncherBrowserSpawnError as bi, isSecurity as bl, PreviewAutomationSelectInput as bn, resolveBrowserProfiles as bo, defaultInstanceIdForDriver as bp, OrchestratorMcpCreateThreadsInput as br, OrchestrationV2DispatchCommandError as bs, DesignStatusRequest as bt, ResponseError as bu, parseDesign as c, requiredScopesForProjectMutation as ca, orchestrationV2RunWorkStartedAt as cc, del$1 as cd, AuthEnvironmentMaintainScope as cf, VcsListRefsResult as ci, OrchestrationGetTurnDiffResult as cl, TrimmedNonEmptyString as cm, PreviewAutomationRecordingArtifact as cn, value as co, DEFAULT_MODEL as cp, FilesystemBrowseError as cr, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as cs, DesignSubscribeRequest as ct, TypeId$9 as cu, reviewState as d, resolveProviderInstanceEnabled as da, UsageLimitSourceError as dc, post$1 as dd, AuthFilesystemWriteScope as df, ServerProvider as di, ChatFileAttachment as dl, CurrentRedactedNames as dm, PreviewAutomationRecordingStatus as dn, DecisionInput as do, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as dp, P4_PROJECT_FILE_NAME as dr, OrchestrationV2AppThread as ds, DesignGuideReceipt as dt, makeConfig as du, ServerSettings as ea, OrchestrationV2TurnItem as ec, basicAuth as ed, ThreadEnvMode as ef, PullRequestReviewGuide as ei, VcsProcessSpawnError as el, RawEventId as em, PreviewAutomationExecutionError as en, DeviceToolOpenResult as eo, AcpRegistryListSessionsResult as ep, AttachmentCreateUploadUrlResult as er, RelayOkResponse as es, SecretRequestError as et, HttpServerRequest as eu, selectLayoutItems as f, secretSetting as fa, OrchestrationProjectShell as fc, prependUrl as fd, AuthGrantScope as ff, ServerProviderCompatibilityStatus as fi, ChatImageAttachment as fl, empty$3 as fm, PreviewAutomationRecordingTooLargeError as fn, DecisionResult as fo, MODEL_SLUG_ALIASES_BY_PROVIDER as fp, PROJECT_FILE_BACKED_SETTINGS as fr, OrchestrationV2AppThreadJson as fs, DesignGuideRequest as ft, toPersisted as fu, sha384 as g, PREVIEW_URL_MAX_LENGTH as ga, ProjectMutation as gc, setHeaders$1 as gd, AuthMcpTokenError as gf, isProviderAvailable as gi, PersistChatAttachmentsError as gl, remove as gm, PreviewAutomationResizeInput as gn, BUILT_IN_BROWSER_PROFILES as go, PROVIDER_DISPLAY_NAMES as gp, OrchestrationThreadSearchSource as gr, OrchestrationV2ContextTransfer as gs, DesignRenderReceipt as gt, TypeId$10 as gu, sha256$1 as h, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as ha, ProjectListEntriesError as hc, setHeader$1 as hd, AuthMcpRegistrationError as hf, environmentThemeFileHasColors as hi, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as hl, merge as hm, PreviewAutomationRequestQueueClosedError as hn, resolveDecisionBackend as ho, PREFERRED_DEFAULT_CODEX_MODELS as hp, OrchestrationSearchThreadsResult as hr, OrchestrationV2ContextHandoffJson as hs, DesignLibraryManifest as ht, Path as hu, diagnostic as i, isUnconfiguredDefaultInstanceEnabled as ia, isKnownOrchestrationV2EventType as ic, bodyJsonUnsafe as id, AuthAccessWriteScope as if, GitManagerError as ii, VcsUnsupportedOperationError as il, RuntimeRequestId as im, PreviewAutomationNavigateInput as in, DeviceToolVersions as io, officialAcpRegistryIconUrlForAgentId as ip, AgentSessionImportProjectNotFoundError as ir, getParamNames as is, UserInputRankError as it, schemaHeaders as iu, SelfImproveRequest as j, SCRIPT_RUN_COMMAND_PATTERN as ja, ThreadLinkedPullRequest as jc, report as jd, authScopeResponse as jf, TerminalCwdStatError as ji, post as jl, PreviewAutomationUnavailableError as jn, EnvironmentCloudEndpointUnavailableError as jo, CheckpointScopeId as jp, OrchestratorMcpScheduleTaskInput as jr, OrchestrationV2ProviderRetry as js, getStreamSchemas as jt, jsonUnsafe as ju, SelfImproveEvidence as k, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as ka, ProviderUserInputAnswers as kc, isIgnored as kd, ServerAuthSessionMethod as kf, TerminalCwdNotDirectoryError as ki, getSuccessSchemas as kl, PreviewAutomationTimeoutError as kn, EnvironmentAuthenticatedAuth as ko, CheckpointId as kp, OrchestratorMcpRequestSecretInput as kr, OrchestrationV2ProviderFailure as ks, make$1 as kt, html as ku, patchNode as l, requiredScopesForServerSettingsPatch as la, ToolActivityIcon as lc, get$1 as ld, AuthEnvironmentScopes as lf, EnvironmentThemeFile as li, ChatAttachment as ll, TrimmedString as lm, PreviewAutomationRecordingDeadlineExpiredError as ln, DECISION_MODELS as lo, DEFAULT_MODEL_BY_PROVIDER as lp, LEGACY_PROJECT_FILE_NAME as lr, ORCHESTRATION_V2_WS_METHODS as ls, DesignApplyReceipt as lt, isPersistedFile as lu, validateDesign as m, FILL_PREVIEW_VIEWPORT as ma, ProjectCreatePayload as mc, setBody$1 as md, AuthMcpClientAccess as mf, ServerSelfUpdateError as mi, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as ml, fromRecordUnsafe as mm, PreviewAutomationRemoteUnavailableError as mn, ThreadDecisionsReadError as mo, ModelCapabilities as mp, OrchestrationSearchThreadsInput as mr, OrchestrationV2CheckpointScopeJson as ms, DesignInspectRequest as mt, make$8 as mu, canonicalSerialize as n, ServerSettingsPatch as na, OrchestrationWorkflowFileError as nc, bodyFormData as nd, AuthAccessStreamError as nf, PROJECT_CLONE_ERROR_MAX_LENGTH as ni, VcsProcessTimeoutError as nl, RunAttemptId as nm, PreviewAutomationInvalidSelectorError as nn, DeviceToolTargetInput as no, AcpRegistryOperationErrorReason as np, AttachmentUploadSigningKeyError as nr, annotations as ns, WORKTREE_SETUP_STAGE_ORDER as nt, TypeId$8 as nu, fileHash as o, makeProviderSettingsSchema as oa, isProviderNativeSubagentThread as oc, bodyText as od, AuthClientMetadataDeviceType as of, TextGenerationError as oi, OrchestrationGetFullThreadDiffError as ol, SecretRef as om, PreviewAutomationOpenInput as on, deviceToolInstallMessage as oo, ANTIGRAVITY_DEFAULT_MODEL as op, AgentSessionScanError as or, AUTO_WORKSPACE_NOTICE_TITLE as os, DesignRpcGroup as ot, toURL as ou, semanticDiff as p, secretSettingsFields as pa, Project as pc, put$1 as pd, AuthMcpApprovalError as pf, ServerProviderUpdateError as pi, PROVIDER_SEND_TURN_MAX_FILE_BYTES as pl, fromInput as pm, PreviewAutomationRecordingTransferError as pn, ThreadDecision as po, MUSE_DEFAULT_MODEL as pp, OrchestrationSearchThreadsError as pr, OrchestrationV2CheckpointJson as ps, DesignInspectReceipt as pt, decodeField as pu, WS_METHODS as q, DeviceOperationError as qa, SourceControlProviderKind as qc, badArgument as qd, allShort as qf, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as qi, tracer as ql, AssetWorkspaceAssetNotFoundError as qn, RelayEnvironmentLinkChallengeResponse as qo, PlanId as qp, MIN_SCHEDULED_TASK_INTERVAL_MS as qr, OrchestrationV2StoredEvent as qs, PreviewAutomationClientDisconnectedError as qt, matchStatus as qu, computeLayout as r, UsageLimitSourceConfig as ra, autoWorkspaceNoticeMessage as rc, bodyJson as rd, AuthAccessTokenType as rf, GitCommandError as ri, VcsRepositoryDetectionError as rl, RunId as rm, PreviewAutomationMalformedResponseError as rn, DeviceToolUnavailableError as ro, AcpRegistryProbeResult as rp, AgentSessionImportProjectChangedError as rr, fromApi as rs, Service as rt, schemaCookies as ru, isConfinedRelativePath as s, providerInstanceConfigEnabledFlag as sa, latestProviderTurnForAttempt as sc, bodyUrlParams as sd, AuthDiagnosticsReadScope as sf, VcsListRefsInput as si, OrchestrationGetTurnDiffError as sl, ThreadId as sm, PreviewAutomationPressInput as sn, symbol as so, CustomModelSetting as sp, AgentSessionSource as sr, AUTO_WORKSPACE_UNDECIDED_REASON as ss, DesignServiceError as st, MultipartError as su, buildIndexes as t, ServerSettingsError as ta, OrchestrationV2TurnItemJson as tc, bearerToken as td, AuthAccessReadScope as tf, PullRequestReviewGuideRun as ti, VcsProcessStdinWriteError as tl, RpcClientId as tm, PreviewAutomationHoverInput as tn, DeviceToolScreenshotResult as to, AcpRegistryOperationError as tp, AttachmentDeleteInput as tr, RelayProtectedError as ts, WORKTREE_SETUP_ERROR_MAX_LENGTH as tt, ParsedSearchParams as tu, resolveValue as u, resolveProjectProviderInstanceEnabled as ua, ToolActivityNativeAppReference as uc, make$14 as ud, AuthFilesystemReadScope as uf, EnvironmentThemeId as ui, ChatAttachmentId as ul, TurnItemId as um, PreviewAutomationRecordingDesktopUpdateRequiredError as un, DecisionError as uo, DEFAULT_TEXT_GENERATION_MODEL as up, P4ProjectFile as ur, OrchestrationGetWorkflowScriptError as us, DesignApplyRequest as ut, limitsServices as uu, Hash as v, PreviewClearProfileError as va, ProjectReadFileError as vc, make$15 as vd, AuthOrchestrationReadScope as vf, isProviderWorkspaceSnapshotCurrent as vi, isProviderSendTurnSupportedImageMimeType as vl, bytes as vm, PreviewAutomationResultTooLargeError as vn, INCOGNITO_BROWSER_PROFILE_ID as vo, ProviderInstanceId as vp, ThreadMetadataMcpUpdateResult as vr, OrchestrationV2ConversationMessage as vs, DesignSelection as vt, HttpServerError as vu, concatBytes as w, PreviewTabId as wa, StoredProjectIcon as wc, TransportError as wd, AuthSourceControlWriteScope as wf, ExternalLauncherUnsupportedEditorError as wi, reflect as wl, PreviewAutomationSnapshot as wn, DesktopBrowserEvent as wo, ReviewCommentContextRecord as wp, OrchestratorMcpDeleteScheduledTaskInput as wr, OrchestrationV2ExecutionNode as ws, DesignValidateRequest as wt, toResponse as wu, ahash as x, PreviewListResult as xa, ProjectSearchEntriesError as xc, HttpClientErrorSchema as xd, AuthRelayReadScope as xf, ExternalLauncherCommandNotFoundError as xi, make$2 as xl, PreviewAutomationSelectResult as xn, DesktopAppActivationErrorCode as xo, isProviderDriverKind as xp, OrchestratorMcpCreateThreadsResult as xr, OrchestrationV2DispatchCommandResult as xs, DesignStylesReceipt as xt, ServeError as xu, abytes as y, PreviewControlRequiredError as ya, ProjectScript as yc, DecodeError as yd, AuthPreviewOperateScope as yf, EDITORS as yi, Service$1 as yl, fromInputUnsafe as ym, PreviewAutomationScrollInput as yn, findBrowserProfile as yo, ProviderInstanceMutation as yp, OrchestratorMcpCapabilitiesResult as yr, OrchestrationV2ConversationMessageJson as ys, DesignStatusReceipt as yt, RequestParseError as yu, ComputerUseHostReport as z, RESERVED_MCP_SERVER_NAME as za, PullRequestSummary as zc, uint8Array$1 as zd, getStatusSuccessSchema as zf, AntigravitySettings as zi, route as zl, AssetCreateUrlInput as zn, EnvironmentInternalError as zo, ContextTransferId as zp, OrchestratorMcpThreadListResult as zr, OrchestrationV2RunJson as zs, DesktopTelemetryControlMessage as zt, setStatus as zu };
|
|
30988
31002
|
|
|
30989
|
-
//# sourceMappingURL=runtime-
|
|
31003
|
+
//# sourceMappingURL=runtime-CEdmfdaF.mjs.map
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{lE as n}from"./utils-BEVyjoxo.js";import{t as r}from"./FieldControl-BI2gK4Z0.js";var i=e(t()),a=e(n()),o=i.forwardRef(function(e,t){return(0,a.jsx)(r,{ref:t,...e})});export{o as t};
|
|
2
|
-
//# sourceMappingURL=Input-BQRZG5rU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{M as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createArchitectureServices};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-B6TRgw4-.js";import"./chunk-75Z2AOVW-BaYdZ0Fq.js";import"./chunk-PWAF6VOD-D4Ch07S8.js";import"./chunk-GMAD6QVW-XeNCd3gb.js";import"./chunk-P2QGCYS3-DJ1kMiTY.js";import"./chunk-4HAMMTFA-Bcwcw8Wz.js";import"./chunk-GVQU2GXP-CWVbbWh7.js";import"./chunk-OSK3NFVY-DcqBXKUK.js";import"./chunk-F27PBJKO-B5arSwg6.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-Ba9RYr-b.js";import"./chunk-L3NEJ4N5-Di7nZhzu.js";import{i as t,n,r,t as i}from"./chunk-TICWLB2K-D3tgdZlp.js";import"./mermaid.core-BcICv5EB.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=classDiagram-ZZMXUADV-Cdtwlmxc.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-B6TRgw4-.js";import"./chunk-75Z2AOVW-BaYdZ0Fq.js";import"./chunk-PWAF6VOD-D4Ch07S8.js";import"./chunk-GMAD6QVW-XeNCd3gb.js";import"./chunk-P2QGCYS3-DJ1kMiTY.js";import"./chunk-4HAMMTFA-Bcwcw8Wz.js";import"./chunk-GVQU2GXP-CWVbbWh7.js";import"./chunk-OSK3NFVY-DcqBXKUK.js";import"./chunk-F27PBJKO-B5arSwg6.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-Ba9RYr-b.js";import"./chunk-L3NEJ4N5-Di7nZhzu.js";import{i as t,n,r,t as i}from"./chunk-TICWLB2K-D3tgdZlp.js";import"./mermaid.core-BcICv5EB.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=classDiagram-v2-VYDZK3BY-Cdtwlmxc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{O as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createEventModelingServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-B6TRgw4-.js";import"./chunk-75Z2AOVW-BaYdZ0Fq.js";import"./chunk-PWAF6VOD-D4Ch07S8.js";import"./chunk-GMAD6QVW-XeNCd3gb.js";import"./chunk-P2QGCYS3-DJ1kMiTY.js";import"./chunk-4HAMMTFA-Bcwcw8Wz.js";import"./chunk-GVQU2GXP-CWVbbWh7.js";import"./chunk-OSK3NFVY-DcqBXKUK.js";import"./chunk-F27PBJKO-B5arSwg6.js";import"./chunk-XXDRQBXY-BvKO0v-W.js";import"./chunk-POPQ4Y6H-Ba9RYr-b.js";import"./chunk-L3NEJ4N5-Di7nZhzu.js";import{n as e}from"./chunk-SHT3W25Y-BafMUZgc.js";import"./mermaid.core-BcICv5EB.js";export{e as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{m as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createRailroadAbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{f as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createRailroadEbnfServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{u as e}from"./mermaid-parser.core-CsBuWV4-.js";export{e as createRailroadPegServices};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import{$T as e,Dg as t,Ms as n,Ot as r,Ps as i,Ub as a,V as o,XT as s,Yb as c,du as l,fu as u,hu as d,pu as f,wg as p}from"./utils-BEVyjoxo.js";import{Ft as m,Rt as ee,Xt as h,Zt as g,d as _,dn as te,zt as ne}from"./runtime-Bni_zt6P.js";import{m as re}from"./htmlRender-BxVc1PlI.js";import{n as ie,t as ae}from"./mediaSource-BTCWn94E.js";import{l as oe}from"./usageFormat-BEGhDYfU.js";function v(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function y(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function se(e,t){if(e!==`Skill`)return;let n=v(t),r=y(n?.skill);return r===void 0?void 0:{name:r,args:y(n?.args)}}function b(e){return e===`js`||e===`cua_repl.js`||e===`node_repl.js`}var ce={key:`computer-use`,name:`Computer Use`,kind:`computer`};function le(e,t){if(e===`cua_repl.js`)return`computer`;let n=v(t)?.code;return b(e)&&typeof n==`string`&&(/\bsky\s*\./u.test(n)||/["']@oai\/sky["']/u.test(n))?`computer`:void 0}function ue(e,t,n){if(b(e)){let r=y(n),i=r&&r.toLowerCase()!==`js`&&r.toLowerCase()!==e?.toLowerCase()?r:void 0;return y(v(t)?.title)??i??(le(e,t)===`computer`?`Computer use`:`Run JavaScript`)}let r=se(e,t);return r===void 0?void 0:`Skill: ${r.name}`}function de(e){return e!==void 0&&Object.keys(e).length>0}var fe=[`path`,`filePath`,`file_path`,`relativePath`,`filename`,`fileName`,`newPath`,`oldPath`];function x(e,t,n,r){if(r>4||t.length>=8)return;if(Array.isArray(e)){for(let i of e)if(x(i,t,n,r+1),t.length>=8)return;return}let i=v(e);if(i){for(let e of fe){let r=y(i[e]);if(r&&!n.has(r)&&(n.add(r),t.push(r),t.length>=8))return}for(let e of[`locations`,`item`,`input`,`result`,`rawInput`,`data`,`changes`])if(e in i&&(x(i[e],t,n,r+1),t.length>=8))return}}function pe(e){let t=[];return x(e,t,new Set,0),t}function me(e){let t=y(e);if(t&&!/__|[./]/u.test(t))return t.replace(/[_\s-]/gu,``).toLowerCase()}function he(e){let t=e.itemType??void 0,n=y(e.requestKind)?.toLowerCase(),r=y(e.data?.kind)?.toLowerCase(),i=me(y(e.data?.toolName)??y(v(e.data?.item)?.tool));return t===`command_execution`?`command`:t===`image_view`?`read`:t===`file_change`?`file_change`:t===`web_search`?`search`:n===`command`||r===`execute`?`command`:n===`file-change`||r===`edit`||r===`move`||r===`delete`||r===`write`?`file_change`:r===`search`||i===`find`||i===`grep`||i===`glob`||i===`rg`||i===`ls`?`search`:n===`file-read`||r===`read`?`read`:i===`terminal`||i===`bash`||i===`shell`?`command`:i===`read`||i===`readfile`?`read`:`other`}var ge=[`pattern`,`query`,`searchTerm`,`regex`,`grep`,`needle`],_e=[`glob`,`globPattern`,`glob_pattern`,`include`,`filePattern`,`file_pattern`],ve=[`path`,`target_directory`,`targetDirectory`,`directory`,`cwd`,`root`];function ye(e,t){if(e)for(let n of t){let t=y(e[n]);if(t)return t}}function be(e){return[e?.rawInput,e?.input,v(e?.item)?.input].map(v).find(e=>de(e??void 0))??e}function xe(e){if(e)return e.split(/[\\/]/u).findLast(e=>e.length>0&&e!==`.`)}function Se(e){let t=be(e),n=ye(t,ge),r=ye(t,_e),i=xe(ye(t,ve));if(n&&i)return`Searched ${n} in ${i}`;if(r&&i)return`Searched files ${r} in ${i}`;if(r)return`Searched files ${r}`;if(n)return`Searched ${n}`;if(i)return`Searched in ${i}`}function Ce(e,t=0){let n=e.trim(),r=t>0?` +${t} more`:``;return n?`Read ${n}${r}`:`Read file${r}`}function S(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function C(e,t){if(typeof e!=`string`)return;let n=e.trim();return n&&n.length<=t?n:void 0}function w(e){let t=C(e,4096);if(t)try{let e=new URL(t);return e.protocol===`http:`||e.protocol===`https:`||e.protocol===`data:`?e.href:void 0}catch{return}}function we(e){let t=C(e,4096);if(t)try{let e=new URL(t);return e.protocol===`http:`||e.protocol===`https:`?e.href:void 0}catch{return}}function Te(e){let t=S(e),n=C(t?.appId,512);if(t?._tag===`app-id`&&n&&/^[A-Za-z0-9._-]+$/u.test(n))return{_tag:`app-id`,appId:n};let r=C(t?.displayName,160);if(t?._tag===`display-name`&&r)return{_tag:`display-name`,displayName:r}}function Ee(e){let t=S(e);if(t?._tag===`website`){let e=we(t.pageUrl),n=w(t.faviconUrl),r=w(t.faviconUrlDark);if(e)return{_tag:`website`,pageUrl:e,...n?{faviconUrl:n}:{},...r?{faviconUrlDark:r}:{}}}if(t?._tag===`native-app`){let e=Te(t.app);if(e)return{_tag:`native-app`,app:e}}if(t?._tag===`themed-logo`){let e=w(t.logoUrl),n=w(t.logoUrlDark);if(e)return{_tag:`themed-logo`,logoUrl:e,...n?{logoUrlDark:n}:{}}}}function De(e){let t=S(e),n=C(t?.key,512),r=C(t?.name,160),i=t?.kind;if(!n||!r||i!==`browser`&&i!==`computer`&&i!==`integration`)return;let a=Ee(t?.icon);return{key:n,name:r,kind:i,...a?{icon:a}:{}}}function Oe(e){let t=S(e),n=De(t?.toolSource),r=t?.toolSurface===`browser`||t?.toolSurface===`computer`?t.toolSurface:n?.kind===`computer`||n?.kind===`browser`?n.kind:t?.type===`dynamic_tool`?le(typeof t.toolName==`string`?t.toolName:void 0,t.input):void 0,i=r===`computer`&&n?.kind!==`computer`?ce:n,a=Ee(t?.toolIcon),o=C(t?.viewedImagePath,4096);return{...r?{toolSurface:r}:{},...a?{toolIcon:a}:{},...i?{toolSource:i}:{},...o&&!/[\r\n]/.test(o)&&_(o)?{viewedImagePath:o}:{}}}var ke=`2026-01-26`,T=`t3McpApp`,Ae=80,je=2e3,Me=32,Ne=256,Pe=256,Fe=4096,Ie=/^(?:https?|wss?):\/\/(?:\*\.)?[a-z0-9-]+(?:\.[a-z0-9-]+)*(?::\d{1,5})?$/i;function Le(e){if(!Array.isArray(e))return;let t=e.filter(e=>typeof e==`string`&&e.length<=Ne&&Ie.test(e)).slice(0,Me);return t.length===0?void 0:t}function Re(t){if(!e(t))return;let n={};for(let e of[`connectDomains`,`resourceDomains`,`frameDomains`,`baseUriDomains`]){let r=Le(t[e]);r!==void 0&&(n[e]=r)}return Object.keys(n).length===0?void 0:n}var ze=[`camera`,`microphone`,`geolocation`,`clipboardWrite`];function Be(t){if(!e(t))return;let n={};for(let r of ze)e(t[r])&&(n[r]={});return Object.keys(n).length===0?void 0:n}var Ve=e=>typeof e==`string`&&e.trim()!==``&&e.length<=Pe?e:void 0;function He(t){if(!e(t))return;let n=Ve(t.attachmentId),r=Ve(t.server),i=Ve(t.tool),a=typeof t.resourceUri==`string`&&t.resourceUri.length<=Fe?t.resourceUri:void 0;if(n===void 0||r===void 0||i===void 0||a===void 0||!a.startsWith(`ui://`))return;let o=Re(t.csp),s=Be(t.permissions);return{attachmentId:n,server:r,tool:i,resourceUri:a,...o===void 0?{}:{csp:o},...s===void 0?{}:{permissions:s},...typeof t.prefersBorder==`boolean`?{prefersBorder:t.prefersBorder}:{}}}function Ue(e,t){return e.attachmentId===t.attachmentId&&e.server===t.server&&e.tool===t.tool&&e.resourceUri===t.resourceUri}function We(e){let t=[];return e?.camera&&t.push(`camera`),e?.microphone&&t.push(`microphone`),e?.geolocation&&t.push(`geolocation`),e?.clipboardWrite&&t.push(`clipboard-write`),t.join(`; `)}function Ge(e){return Number.isFinite(e)?Math.round(Math.min(je,Math.max(Ae,e))):320}function Ke(e){return`${e.tool.replace(/[^\w.-]+/g,`-`).slice(0,80)||`app`}.html`}function E(e,t,n=`t3-code`,r=`${e[0]} ${e[3]}`){return{displayName:r,labels:e,icon:n,summaryAction:t}}var qe=new Set([`t3-code`,`t3_code`,`t3code`,`p4-code`,`p4_code`,`p4code`]),Je={p4_computer_use:E([`Control`,`Controlling`,`Controlled`,`a computer`],`browser`,`browser`),p4_computer_use_reset:E([`Reset`,`Resetting`,`Reset`,`Computer Use`],`browser`,`browser`),p4_computer_use_hosts:E([`List`,`Listing`,`Listed`,`Computer Use hosts`],`browser`,`browser`),p4_decide:E([`Ask`,`Asking`,`Asked`,`Decisions`],`decide`),link_pull_request:E([`Link`,`Linking`,`Linked`,`a pull request`],`link-pr`,`pull-request`),unlink_pull_request:E([`Unlink`,`Unlinking`,`Unlinked`,`a pull request`],`unlink-pr`,`pull-request`),list_thread_pull_requests:E([`Check`,`Checking`,`Checked`,`linked pull requests`],`list-prs`,`pull-request`),watch_pull_request:E([`Watch`,`Watching`,`Watching`,`a pull request`],`watch-pr`,`pull-request`),unwatch_pull_request:E([`Stop watching`,`Stopping watching`,`Stopped watching`,`a pull request`],`unwatch-pr`,`pull-request`),write_pull_request_guides:E([`Write`,`Writing`,`Started`,`review guides`],`write-pr-guides`,`pull-request`),read_pull_request_guide:E([`Read`,`Reading`,`Read`,`a review guide`],`read-pr-guide`,`pull-request`),orchestrator_capabilities:E([`Get`,`Getting`,`Got`,`orchestration capabilities`],`capabilities`),delegate_task:E([`Delegate`,`Delegating`,`Delegated`,`a child task`],`delegate`),task_status:E([`Get`,`Getting`,`Got`,`delegated task status`],`task-status`),task_cancel:E([`Cancel`,`Canceling`,`Requested cancellation of`,`delegated task`],`task-cancel`),schedule_task:E([`Schedule`,`Scheduling`,`Scheduled`,`a recurring task`],`schedule-create`),list_scheduled_tasks:E([`List`,`Listing`,`Listed`,`scheduled tasks`],`schedule-list`),update_scheduled_task:E([`Update`,`Updating`,`Updated`,`a scheduled task`],`schedule-update`),delete_scheduled_task:E([`Delete`,`Deleting`,`Requested deletion of`,`a scheduled task`],`schedule-delete`),request_secret:E([`Ask for`,`Asking for`,`Asked for`,`a secret`],`secret-request`),create_threads:E([`Create`,`Creating`,`Created`,`P4 threads`],`thread-create`),p4_thread_start:E([`Start`,`Starting`,`Started`,`a P4 Code thread`],`thread-create`),p4_thread_list:E([`List`,`Listing`,`Listed`,`P4 threads`],`thread-list`),p4_thread_read:E([`Read`,`Reading`,`Read`,`a P4 Code thread`],`thread-read`),p4_thread_send:E([`Send`,`Sending`,`Sent`,`to a P4 Code thread`],`thread-send`),p4_thread_wait:E([`Wait`,`Waiting`,`Waited`,`for a P4 Code thread`],`thread-wait`),p4_workflow_stop:E([`Stop`,`Stopping`,`Requested a stop for`,`a workflow`],`workflow-stop`),p4_thread_interrupt:E([`Interrupt`,`Interrupting`,`Requested an interrupt of`,`a P4 Code thread`],`thread-interrupt`),p4_worktree_handoff:E([`Hand off`,`Handing off`,`Handed off`,`thread to a git worktree`],`worktree-handoff`),p4_worktree_status:E([`Get`,`Getting`,`Got`,`thread worktree status`],`worktree-status`),preview_status:E([`Get`,`Getting`,`Got`,`preview browser status`],`browser`,`browser`),preview_open:E([`Open`,`Opening`,`Opened`,`a page in the preview browser`],`browser`,`browser`),preview_navigate:E([`Navigate`,`Navigating`,`Navigated`,`the preview browser`],`browser`,`browser`),preview_dialog:E([`Respond`,`Responding`,`Responded`,`to a preview browser dialog`],`browser`,`browser`),preview_snapshot:E([`Take a snapshot of`,`Taking a snapshot of`,`Took a snapshot of`,`the preview page`],`browser`,`browser`,`Snapshot the preview page`),preview_click:E([`Click`,`Clicking`,`Clicked`,`in the preview browser`],`browser`,`browser`),preview_press:E([`Press`,`Pressing`,`Pressed`,`a key in the preview browser`],`browser`,`browser`),preview_type:E([`Type`,`Typing`,`Typed`,`in the preview browser`],`browser`,`browser`),preview_hover:E([`Hover`,`Hovering`,`Hovered`,`in the preview browser`],`browser`,`browser`),preview_select:E([`Choose`,`Choosing`,`Chose`,`an option in the preview browser`],`browser`,`browser`),preview_drag:E([`Drag`,`Dragging`,`Dragged`,`in the preview browser`],`browser`,`browser`),preview_upload:E([`Upload`,`Uploading`,`Uploaded`,`files to the preview browser`],`browser`,`browser`),preview_scroll:E([`Scroll`,`Scrolling`,`Scrolled`,`the preview browser`],`browser`,`browser`),preview_resize:E([`Resize`,`Resizing`,`Resized`,`the preview browser`],`browser`,`browser`),preview_evaluate:E([`Evaluate`,`Evaluating`,`Evaluated`,`script in the preview browser`],`browser`,`browser`),preview_wait_for:E([`Wait`,`Waiting`,`Waited`,`for the preview page`],`browser`,`browser`),preview_set_appearance:E([`Set`,`Setting`,`Set`,`preview browser appearance`],`browser`,`browser`),preview_recording_start:E([`Start`,`Starting`,`Started`,`recording the preview browser`],`browser`,`browser`),preview_recording_stop:E([`Stop`,`Stopping`,`Stopped`,`recording the preview browser`],`browser`,`browser`),device_list:E([`List`,`Listing`,`Listed`,`simulators and emulators`],`device`,`device`),device_open:E([`Open`,`Opening`,`Opened`,`a device in the Device panel`],`device`,`device`),device_screenshot:E([`Take a screenshot of`,`Taking a screenshot of`,`Took a screenshot of`,`the device`],`device`,`device`),device_close:E([`Close`,`Closing`,`Closed`,`a device`],`device`,`device`),run_scheduled_task_now:E([`Run`,`Running`,`Requested a run of`,`a scheduled task`],`schedule-run`),p4_queue_list:E([`List`,`Listing`,`Listed`,`queued messages`],`queue-list`),p4_queue_read:E([`Read`,`Reading`,`Read`,`a queued message`],`queue-read`),p4_queue_edit:E([`Edit`,`Editing`,`Edited`,`a queued message`],`queue-edit`),p4_queue_cancel:E([`Cancel`,`Canceling`,`Requested cancellation of`,`a queued run`],`queue-cancel`),p4_queue_reorder:E([`Reorder`,`Reordering`,`Reordered`,`a queued run`],`queue-reorder`),p4_queue_promote_to_steer:E([`Steer with`,`Steering with`,`Requested steering with`,`a queued message`],`queue-steer`),p4_pending_request_list:E([`List`,`Listing`,`Listed`,`pending questions`],`question-list`),p4_pending_request_read:E([`Read`,`Reading`,`Read`,`pending questions`],`question-read`),p4_pending_request_respond:E([`Answer`,`Answering`,`Answered`,`pending questions`],`question-respond`),p4_thread_configuration:E([`Read`,`Reading`,`Read`,`thread configuration`],`thread-configuration`),p4_thread_configure:E([`Set`,`Setting`,`Set`,`thread model`],`thread-configure`),p4_thread_fork:E([`Fork`,`Forking`,`Requested a fork of`,`this thread`],`thread-fork`),p4_thread_merge_back:E([`Merge`,`Merging`,`Requested a merge of`,`thread context`],`thread-merge`),p4_thread_search:E([`Search`,`Searching`,`Searched`,`thread content`],`thread-search`),p4_thread_transfers:E([`Read`,`Reading`,`Read`,`thread transfers`],`thread-transfers`),p4_thread_organize:E([`Organize`,`Organizing`,`Organized`,`a thread`],`thread-organize`),p4_thread_update:E([`Update`,`Updating`,`Updated`,`P4 Code thread metadata`],`thread-update`),p4_worktree_list:E([`List`,`Listing`,`Listed`,`workspace branches`],`worktree-list`),p4_preview_list:E([`List`,`Listing`,`Listed`,`preview tabs`],`browser`,`browser`),p4_preview_close:E([`Close`,`Closing`,`Closed`,`a preview tab`],`browser`,`browser`),p4_environment_read:E([`Read`,`Reading`,`Read`,`environment preferences`],`environment-read`),p4_environment_preferences_update:E([`Update`,`Updating`,`Updated`,`environment preferences`],`environment-update`),p4_mcp_server_list:E([`List`,`Listing`,`Listed`,`MCP servers`],`environment-read`),p4_mcp_server_set_enabled:E([`Update`,`Updating`,`Updated`,`an MCP server`],`environment-update`),p4_thread_launch:E([`Launch`,`Launching`,`Launched`,`a project thread`],`thread-create`),p4_project_list:E([`List`,`Listing`,`Listed`,`projects`],`project-list`),p4_project_read:E([`Read`,`Reading`,`Read`,`a project`],`project-read`),p4_project_create:E([`Register`,`Registering`,`Registered`,`a project`],`project-create`),p4_project_update:E([`Update`,`Updating`,`Updated`,`a project`],`project-update`),p4_project_delete:E([`Delete`,`Deleting`,`Deleted`,`a project`],`project-delete`),p4_project_clone:E([`Clone`,`Cloning`,`Cloned`,`a repository`],`project-clone`),p4_attachment_prepare_upload:E([`Prepare`,`Preparing`,`Prepared`,`an attachment upload`],`attachment-prepare`),p4_attachment_discard:E([`Discard`,`Discarding`,`Discarded`,`a pending attachment`],`attachment-discard`),p4_thread_send_attachments:E([`Send`,`Sending`,`Sent`,`attachments`],`attachment-send`),html_preview:E([`Preview`,`Previewing`,`Previewed`,`an HTML page`],`html-preview`),html_render:E([`Render`,`Rendering`,`Rendered`,`an HTML page`],`html-render`)},D={...Je,...Object.fromEntries(Object.entries(Je).filter(([e])=>e.startsWith(`p4_`)).map(([e,t])=>[`t3_${e.slice(3)}`,t]))};new Set(Object.keys(D));function Ye(e){return e.replace(/\s+(?:complete|completed)\s*$/i,``).trim()}function Xe(e){let t=Ye(e),n=/^mcp__(?<server>.+?)__(?<tool>.+)$/i.exec(t);if(n?.groups){let{server:e,tool:t}=n.groups;return e!==void 0&&t!==void 0&&qe.has(e.toLowerCase())?t:null}let r=/^(?<server>(?:t3|p4)[-_]?code)(?:[.:/]|\s*·\s*)(?<tool>.+)$/i.exec(t);if(r?.groups)return r.groups.tool??null;let i=/^(?:mcp[-_]{1,2})?(?:t3|p4)[-_ ]?code(?:__|[-_.:/ ])(?<tool>.+)$/i.exec(t)?.groups?.tool??t;if(Object.hasOwn(D,i))return i;if(!/^(?:t3|p4)-code-/i.test(t))return null;let a=null;for(let e of Object.keys(D))t.endsWith(`_${e}`)&&e.length>(a?.length??0)&&(a=e);return a}function Ze(e){let t=e==null?null:Xe(e);return t!==null&&Object.hasOwn(D,t)?t.replace(/^t3_/,`p4_`):null}function O(e){let t=e==null?null:Xe(e);return t!==null&&Object.hasOwn(D,t)?D[t]:null}var Qe=16384,$e=8192,et=256,tt=100,nt=32,rt=4,it=128,at=new TextEncoder;function k(t,n,r=0){if(r>rt||n.remainingNodes--<=0)return n.exceeded=!0,{failed:!1};if(typeof t==`string`){if(t.length>n.remainingBytes)return n.exceeded=!0,{failed:!1};let e=at.encode(t).byteLength;if(e>n.remainingBytes)return n.exceeded=!0,{failed:!1};n.remainingBytes-=e;try{return k(JSON.parse(t),n,r+1)}catch{return{failed:!1}}}if(Array.isArray(t)){if(t.length>nt)return n.exceeded=!0,{failed:!1};let i,a=!1;for(let o of t){let t=e(o)?o.text:void 0,s=k(e(t)?t.text??t:t,n,r+1);if(i??=s.data,a||=s.failed,n.exceeded)break}return{...i===void 0?{}:{data:i},failed:a}}if(!e(t))return{failed:!1};let i=t.isError===!0||t.is_error===!0||t._tag===`OrchestratorMcpFailure`||t.error!=null,a=t.structuredContent??t.content;if(a!==void 0){let e=k(a,n,r+1);return{...e,failed:i||e.failed}}return{data:t,failed:i}}function A(e){if(!(typeof e!=`string`||e.length>et||e.trim()===``))return Array.from(e).join(``)}function j(t){let n={remainingBytes:Qe,remainingNodes:it,exceeded:!1},r=k(t,n),i=r.failed?{isError:!0}:{},a=n.exceeded?void 0:r.data;if(a!==void 0){for(let e of[`threadId`,`messageId`,`taskId`,`scheduledTaskId`]){let t=A(a[e]);t!==void 0&&(i[e]=t)}a.status===`rolled_back`&&(i.status=`rolled_back`);let t=re(a.htmlRender);t!==void 0&&(i.htmlRender=t);let n=He(a[T]);n!==void 0&&(i[T]=n);let r=e(a.thread)?A(a.thread.threadId):void 0;if(r!==void 0&&(i.thread={threadId:r}),Array.isArray(a.threads)){let t=a.threads.length<=tt,n=[];if(t)for(let r of a.threads){if(!e(r)){t=!1;break}let i=A(r.threadId),a=r.status===`rolled_back`;if(i===void 0&&!a){t=!1;break}n.push({...i===void 0?{}:{threadId:i},...a?{status:`rolled_back`}:{}})}t?i.threads=n:(delete i.threadId,delete i.status)}}let o=()=>at.encode(JSON.stringify(i)).byteLength>$e;o()&&(delete i.threads,delete i.threadId,delete i.status);let s=i[T];if(s?.csp!==void 0&&o()){let{csp:e,...t}=s;i[T]=t}return o()&&delete i[T],Object.keys(i).length===0?void 0:i}function ot(e){if(Ze(e.toolName)!==`html_render`)return;let t=j(e.output);return t?.isError?void 0:t?.htmlRender}function st(e){let t=j(e.output)?.[T];return t!==void 0&&e.toolName===`${t.server}.${t.tool}`?t:void 0}function ct(e){return/file not found|no files found|enoent|no such file|commandnotfoundexception|command not found|is not recognized as the name of a cmdlet|a parameter cannot be found that matches parameter name/i.test(e)||/cannot find path/i.test(e)&&/because it does not exist/i.test(e)||/is not recognized/i.test(e)&&/the term '/i.test(e)||/<exited with exit code\s+[1-9]\d*\s*>/i.test(e)||/exit(?:ed)? with exit code\s+[1-9]\d*/i.test(e)||/exit code\s*[:\s]\s*[1-9]\d*\b/i.test(e)}function M(n){if(!e(n)||n.type!==`image`)return null;let r=e(n.source)?n.source:void 0;if(r!==void 0&&r.type!==`base64`)return null;let i=r===void 0?n.mimeType:r.media_type,a=r===void 0?n.data:r.data;if(typeof i!=`string`||!t(i))return null;let o={mimeType:i.toLowerCase()};return typeof a==`string`?{...o,data:a}:o}function lt(t){return Array.isArray(t)?t:e(t)&&Array.isArray(t.content)?t.content:[t]}Math.ceil(p/3)*4;function ut(e){let t=[];for(let n of lt(e))if(M(n)!==null&&(t.push(n),t.length===8))break;return t}function dt(e){return ut(e).flatMap(e=>M(e)??[])}var ft=4;function N(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function pt(e){return N(e)&&e.truncated===!0&&typeof e.summary==`string`}function P(e,t){if(t>ft)return null;if(typeof e==`string`)return e;if(Array.isArray(e)){let n=e.map(e=>P(e,t+1));return n.every(e=>e!==null)?n.filter(e=>e!==``).join(`
|
|
2
|
-
`):null}if(!N(e))return null;if(e.type===`text`&&typeof e.text==`string`)return e.text;if(e.type===`image`)return M(e)?``:`[image]`;if(e.type===`resource_link`&&typeof e.uri==`string`)return e.uri;if(e.type===`resource`&&N(e.resource)){let t=e.resource;if(typeof t.text==`string`)return t.text;if(typeof t.uri==`string`)return t.uri}let n=Object.keys(e).filter(e=>e!==`isError`&&e!==`is_error`);if(n.length===1&&n[0]===`content`)return P(e.content,t+1);if(n.length===2&&n.includes(`content`)&&n.includes(`structuredContent`)){let n=P(e.content,t+1);return n?.trim()?n:null}return null}function F(e){try{return JSON.parse(e)}catch{return}}function mt(e){let t=e.trim();if(!/^[[{]/.test(t))return e;let n=F(t);if(n!==void 0)return JSON.stringify(n,null,2);let r=t.split(`
|
|
3
|
-
`).filter(e=>e.trim()).map(e=>F(e.trim()));return r.some(e=>e===void 0)?e:r.map(e=>JSON.stringify(e,null,2)).join(`
|
|
4
|
-
|
|
5
|
-
`)}function ht(e,t=!1){if(e==null||t&&N(e)&&e.type===`image`)return null;let n=P(e,0);if(n!==null)return n.trim()?mt(n):null;let r;try{r=JSON.stringify(e,null,2)}catch{return String(e)}return r===void 0||r===`{}`||r===`[]`?null:r}function gt(e){if(e.command!==void 0)return{command:e.command.trim()||null,args:null,argsText:null};let t=e.args;if(N(t)&&!pt(t)){let e=Object.entries(t).flatMap(([e,t])=>t===void 0?[]:[[e,typeof t==`string`&&t!==``?t:JSON.stringify(t)??String(t)]]);return{command:null,args:e.length>0?e:null,argsText:null}}return{command:null,args:null,argsText:ht(t)}}function _t(e){return e.command!==null||e.args!==null||e.argsText!==null}var vt=new Set([`idle`,`pending`,`running`,`waiting`]);function yt(e){return vt.has(e.status)?`live`:a(e.updatedAt)}function bt(e){switch(e.type){case`command_execution`:return e.outputOmitted===!0;case`dynamic_tool`:return e.outputOmitted===!0||pt(e.input);default:return!1}}function xt(e){if(!e.trimStart().startsWith(`{"stdout"`))return e;let t=F(e.trim());return!N(t)||typeof t.stdout!=`string`||typeof t.stderr!=`string`||typeof t.interrupted!=`boolean`?e:[t.stdout,t.stderr].filter(e=>typeof e==`string`&&e.trim().length>0).join(`
|
|
6
|
-
`)}function St(e){switch(e.type){case`command_execution`:return e.output?.trim()&&xt(e.output)||null;case`dynamic_tool`:return e.outputOmitted===!0?null:ht(e.output,e.viewedImagePath!==void 0);case`file_search`:return e.results?.length?e.results.map(e=>[`${e.fileName}${e.line===void 0?``:`:${e.line}`}`,e.preview?.trim()].filter(Boolean).join(`
|
|
7
|
-
`)).join(`
|
|
8
|
-
`):null;case`web_search`:return e.results?.length?e.results.map(e=>[e.title?.trim()||e.url,e.title?e.url:void 0,e.snippet?.trim()].filter(Boolean).join(`
|
|
9
|
-
`)).join(`
|
|
10
|
-
|
|
11
|
-
`):null;default:return null}}function Ct(e){return e.type!==`dynamic_tool`||e.outputOmitted===!0?[]:dt(e.output).map((t,n)=>({_tag:`tool-output-image`,threadId:e.threadId,itemId:e.id,index:n}))}function wt(e){switch(e.type){case`reasoning`:return e.text.trim().length>0;case`command_execution`:return gt({command:e.input}).command!==null||e.outputOmitted===!0||!!e.output?.trim()||e.exitCode!==void 0&&e.exitCode!==0;case`file_change`:case`checkpoint`:case`fork`:case`handoff`:return!0;case`file_search`:return(e.results?.length??0)>0||!!e.pattern?.trim();case`web_search`:return(e.results?.length??0)>0||(e.patterns?.length??0)>0;case`dynamic_tool`:return e.outputOmitted===!0||_t(gt({args:e.input}));case`approval_request`:return!!e.prompt?.trim();case`user_input_request`:return e.questions.length>0;case`notification`:return!!e.detail?.trim();case`system_notice`:return e.message.trim().length>0;case`error`:return e.failure.message.trim().length>0;case`proposed_plan`:return e.markdown.trim().length>0;case`todo_list`:return e.steps.length>0;case`subagent`:return e.childThreadId!==null;default:return!1}}var Tt=64,Et=new Set([`sh`,`bash`,`zsh`,`dash`,`ash`,`ksh`,`fish`]),Dt=new Set([`cmd`,`cmd.exe`,`powershell`,`powershell.exe`,`pwsh`,`pwsh.exe`]),Ot=new Set([`-o`,`-O`,`--rcfile`,`--init-file`]),kt=new Set([`builtin`,`command`,`exec`]),At=new Set([`nocorrect`,`noglob`,`time`]),jt=new Set([`pop-location`,`push-location`,`set-location`]),Mt=new Set([`-mta`,`-nologo`,`-noninteractive`,`-noprofile`,`-sta`]),Nt=new Set([`-configurationname`,`-executionpolicy`,`-inputformat`,`-outputformat`,`-version`,`-windowstyle`,`-workingdirectory`]),Pt=new Set([`-confirm`,`-debug`,`-loaduserprofile`,`-nonewwindow`,`-passthru`,`-usenewenvironment`,`-verbose`,`-wait`,`-whatif`]),Ft=new Set([`-argumentlist`,`-credential`,`-environment`,`-erroraction`,`-errorvariable`,`-informationaction`,`-informationvariable`,`-outbuffer`,`-outvariable`,`-pipelinevariable`,`-progressaction`,`-redirectstandarderror`,`-redirectstandardinput`,`-redirectstandardoutput`,`-verb`,`-warningaction`,`-warningvariable`,`-windowstyle`,`-workingdirectory`]),It=new Set([`[`,`[[`,`test`,`true`]),Lt="<>(){}[];|&$`#!%@:",Rt="){]}`",I=new Set(`!,#,.,:,[,[[,alias,and,autoload,begin,bg,bind,bindkey,break,builtin,caller,case,catch,cd,command,compgen,complete,compopt,continue,coproc,declare,dirs,disown,do,done,elif,else,enable,end,esac,eval,exec,exit,export,false,fc,fg,fi,finally,for,foreach,function,getopts,history,if,in,jobs,let,local,logout,mapfile,nocorrect,noglob,not,or,popd,pushd,read,readarray,readonly,repeat,return,select,set,setopt,shift,shopt,source,switch,suspend,test,then,time,times,trap,try,true,type,typeset,ulimit,umask,unalias,until,unset,unsetopt,wait,while`.split(`,`)),zt=new Set(`and.begin.break.case.catch.continue.coproc.do.done.elif.else.end.esac.eval.exec.exit.false.fi.finally.for.foreach.function.if.in.not.or.repeat.return.select.switch.then.try.until.while`.split(`.`));function Bt(e,t){for(let n=t;n<e.length;n+=1){let t=e[n];if(t===`--`||!t.startsWith(`-`))return null;if(Ot.has(t)){n+=1;continue}if(t===`--command`||/^-[a-zA-Z]*c[a-zA-Z]*$/.test(t))return n+1}return null}var Vt={env:new Set([`-C`,`--chdir`,`-S`,`--split-string`,`-u`,`--unset`]),sudo:new Set([`-C`,`--close-from`,`-D`,`--chdir`,`-g`,`--group`,`-u`,`--user`])},Ht={env:new Set([`-0`,`--null`,`-i`,`--ignore-environment`,`--debug`,`-v`]),sudo:new Set([`-A`,`--askpass`,`-b`,`--background`,`-E`,`-H`,`-i`,`-n`,`-S`])};function L(e){let t=e.trim(),n=[],r=``,i=null,a=!1,o=!1,s=0,c=0,l=!1;for(let e=0;e<t.length;e+=1){let u=t[e];if(a){r+=u,a=!1,l=!0;continue}if(u===`\\`&&i!==`'`){let n=t[e+1],o=i===null&&/^(?:[A-Za-z]:|\.{1,2})(?:\\[^\s]*)?$/u.test(r);if((i===`"`||o)&&n!==void 0&&n!==`"`&&n!==`\\`&&n!==`$`&&n!=="`"&&n!==`
|
|
12
|
-
`){r+=u,l=!0;continue}a=!0,l=!0;continue}if(o){r+=u,u==="`"&&(o=!1),l=!0;continue}if(i!==null){u===i?i=null:r+=u,l=!0;continue}if(u==="`"){r+=u,o=!0,l=!0;continue}if(u===`$`&&t[e+1]===`{`){r+="${",c+=1,l=!0,e+=1;continue}if(u===`{`&&c>0){r+=u,c+=1,l=!0;continue}if(u===`}`&&c>0){r+=u,--c,l=!0;continue}if(u===`$`&&t[e+1]===`(`){r+=`$(`,s+=1,l=!0,e+=1;continue}if(u===`(`){r+=u,s+=1,l=!0;continue}if(u===`)`&&s>0){r+=u,--s,l=!0;continue}if(u===`"`||u===`'`){i=u,l=!0;continue}if(/\s/u.test(u)){if(s>0||c>0){r+=u,l=!0;continue}l&&=(n.push(r),r=``,!1);continue}r+=u,l=!0}return i!==null||a||o||s>0||c>0?null:(l&&n.push(r),n)}function Ut(e,t,n){let r=``,i=0;for(let a of n){if(a.start>=t)break;r+=e.slice(i,a.start),i=Math.min(a.end,t)}return r+e.slice(i,t)}function Wt(e,t,n){let r=t;for(;e[r]===` `||e[r]===` `;)r+=1;let i=``,a=null,o=!1;for(;r<e.length;r+=1){let t=e[r];if(o){i+=t,o=!1;continue}if(t===`\\`&&a!==`'`){o=!0;continue}if(a!==null){t===a?a=null:i+=t;continue}if(t===`"`||t===`'`){a=t;continue}if(/\s/u.test(t)||`;&|<>()`.includes(t))break;i+=t}return!i||a!==null||o?null:{heredoc:{delimiter:i,stripTabs:n},end:r}}function Gt(e,t,n){let r=t;for(let t of n){let n=!1;for(;r<=e.length;){let i=e.indexOf(`
|
|
13
|
-
`,r),a=i===-1?e.length:i,o=e.slice(r,a).replace(/\r$/u,``),s=t.stripTabs?o.replace(/^\t+/u,``):o;if(r=i===-1?e.length:i+1,s===t.delimiter){n=!0;break}if(i===-1)break}if(!n)return null}return e.slice(r).trim()||null}function R(e){let t=null,n=null,r=!1,i=!1,a=!1,o=0,s=0,c=[],l=[],u=0,d=null;for(let f=0;f<e.length;f+=1){let p=e[f];if(n!==null){p===n&&e[f+1]===`@`&&(f===0||e[f-1]===`
|
|
14
|
-
`)&&(n=null,f+=1);continue}if(a){if(p!==`
|
|
15
|
-
`)continue;a=!1,l.push({start:u,end:f})}if(r){r=!1;continue}if(p===`\\`&&t!==`'`){r=!0;continue}if(i){p==="`"&&(i=!1);continue}if(t!==null){p===t&&(t=null);continue}if(p===`@`&&(e[f+1]===`"`||e[f+1]===`'`)&&(e[f+2]===`
|
|
16
|
-
`||e[f+2]===`\r`&&e[f+3]===`
|
|
17
|
-
`)){n=e[f+1],f+=1;continue}if(p===`"`||p===`'`){t=p;continue}if(p==="`"){i=!0;continue}if(p===`#`&&(f===0||/\s/u.test(e[f-1])||`;&|(`.includes(e[f-1]))){a=!0,u=f;continue}if(p===`$`&&e[f+1]===`{`){s+=1,f+=1;continue}if(p===`{`&&s>0){s+=1;continue}if(p===`}`&&s>0){--s;continue}if(p===`(`){o+=1;continue}if(p===`)`&&o>0){--o;continue}if(o>0||s>0)continue;if(p===`<`&&e[f+1]===`<`&&e[f+2]!==`<`){let t=e[f+2]===`-`,n=Wt(e,f+(t?3:2),t);if(n===null)return{firstCommand:e.trim(),remainingCommand:null,separator:null};c.push(n.heredoc),f=n.end-1;continue}let m=p===`&`&&e[f+1]===`&`||p===`|`&&(e[f+1]===`|`||e[f+1]===`&`),ee=p===`&`&&(e[f-1]===`>`||e[f-1]===`<`||e[f+1]===`>`);if(!m&&!`;&|
|
|
18
|
-
`.includes(p)||ee)continue;if(p===`
|
|
19
|
-
`&&c.length>0){let t=d;return{firstCommand:Ut(e,t?.index??f,l).trimStart(),remainingCommand:[t?e.slice(t.index+t.length,f).trim():``,Gt(e,f+1,c)].filter(e=>!!e).join(`
|
|
20
|
-
`)||null,separator:t?e.slice(t.index,t.index+t.length):`
|
|
21
|
-
`}}if(c.length>0){d??={index:f,length:m?2:1},m&&(f+=1);continue}let h=Ut(e,f,l).trimStart(),g=f+(m?2:1);for(;/\s/u.test(e[g]??``);)g+=1;return{firstCommand:h,remainingCommand:e.slice(g).trim()||null,separator:m?e.slice(f,f+2):p}}return a&&l.push({start:u,end:e.length}),{firstCommand:Ut(e,e.length,l).trim(),remainingCommand:null,separator:null}}function Kt(e){let t=e.trimStart();for(;t.startsWith(`#`);){let e=t.indexOf(`
|
|
22
|
-
`);if(e===-1)return null;t=t.slice(e+1).trimStart()}return t||null}function qt(e){let t=``,n=null,r=!1;for(let i=0;i<e.length;i+=1){let a=e[i];if(r){t+=a,r=!1;continue}if(a===`\\`&&n!==`'`){if(e[i+1]===`
|
|
23
|
-
`){i+=1;continue}if(e[i+1]===`\r`&&e[i+2]===`
|
|
24
|
-
`){i+=2;continue}t+=a,r=!0;continue}n===null?(a===`"`||a===`'`)&&(n=a):a===n&&(n=null),t+=a}return t}function z(e,t){let n=e[t];if(!n||/^[<>]\(/u.test(n))return null;let r=n.match(/^(?:(?:(?:\d+|\*|\{[A-Za-z_][A-Za-z0-9_]*\})?(?:<<<|<<-|<<|<>|>>|>\||<&|>&|<|>))|&>>|&>)(.*)$/u);return r?r[1]?t+1:e[t+1]===void 0?e.length+1:t+2:null}function Jt(e){return e.map(e=>`'${e.replaceAll(`'`,`'\\''`)}'`).join(` `)}function Yt(e,t,n){if(e===`bundle`)return t[n+1]===`exec`&&t[n+2]!==void 0?n+2:null;if(e===`nohup`){let e=n+1;t[e]===`--`&&(e+=1);let r=t[e];return r&&!r.startsWith(`-`)?e:null}return e===`script`?/^-[adkpqr]+$/u.test(t[n+1]??``)&&t[n+3]!==void 0?n+3:null:e===`arch`?/^-(?:arm64|arm64e|i386|x86_64)$/u.test(t[n+1]??``)?t[n+2]===void 0?null:n+2:t[n+1]===`-arch`&&t[n+3]!==void 0?n+3:null:(e===`timeout`||e===`gtimeout`)&&/^(?:\d+(?:\.\d*)?|\.\d+)[smhd]?$/u.test(t[n+1]??``)&&t[n+2]!==void 0?n+2:null}function B(e){let t=e.trim();if(!t||/^[A-Za-z][A-Za-z0-9+.-]*:(?![\\/])/u.test(t))return null;let n=t.split(/[\\/]/u).at(-1);return!n||/\s/u.test(n)&&!/[\\/]/u.test(t)||Lt.includes(n[0]??``)||Rt.includes(n.at(-1)??``)?null:n}function Xt(e){let t=e.trimStart(),n=t[0];if(n!==`"`&&n!==`'`)return B(t.match(/^\S+/u)?.[0]??``);let r=``;for(let e=1;e<t.length;e+=1){let i=t[e];if(i==="`"&&t[e+1]!==void 0){r+=t[e+1],e+=1;continue}if(i===n){if(n===`'`&&t[e+1]===`'`){r+=`'`,e+=1;continue}return B(r)}r+=i}return null}function Zt(e){let t=e.match(/^\s*&\s+([\s\S]*)$/u);return t?Xt(t[1]):void 0}function Qt(e,t,n,r){let i=e.match(/^\s*\$(?:(env|global|local|script):)?[A-Za-z_][A-Za-z0-9_]*\s*=\s*([\s\S]*)$/iu);if(!i)return{matched:!1,program:null};if(i[1]?.toLowerCase()===`env`)return{matched:!0,program:n?V(n,t,`shell`,r-1):null};let a=i[2].trim();if(/^(?:\[ordered\]\s*)?@\s*[{(]/iu.test(a))return{matched:!0,program:null};let o=Zt(a);if(o!==void 0)return{matched:!0,program:o};let s=a.match(/^(?:@?\(\s*)?([A-Za-z][A-Za-z0-9_.-]*)\b/u)?.[1];return s&&!I.has(s.toLowerCase())?{matched:!0,program:V(a,t+1,`shell`,r)??s}:{matched:!0,program:n?V(n,t,`shell`,r-1):null}}function $t(e,t,n,r,i,a,o){let s=e=>e?V(i&&a?`${e} ${a} ${i}`:e,r+1,`shell`,o):null;if(e===`cmd`||e===`cmd.exe`){for(let e=n;e<t.length;e+=1){let n=t[e].toLowerCase();if(n!==`/c`&&n!==`/k`)continue;let r=t[e+1];return{matched:!0,program:s(r)}}return{matched:!1,program:null}}for(let e=n;e<t.length;e+=1){let n=t[e].toLowerCase();if(n===`-command`||n===`-c`){let n=t[e+1];return{matched:!0,program:s(n)}}if(n===`-file`||n===`-f`)return{matched:!0,program:B(t[e+1]??``)};if(n===`-encodedcommand`||n===`-enc`||n===`-e`)return{matched:!0,program:null};if(Nt.has(n)){e+=1;continue}if(!Mt.has(n)&&!n.startsWith(`-`))return{matched:!0,program:B(t[e])}}return{matched:!1,program:null}}function en(e,t){for(let n=t;n<e.length;n+=1){let t=e[n],r=t.toLowerCase();if(r===`-filepath`)return B(e[n+1]??``);if(!Pt.has(r)){if(Ft.has(r)){if(e[n+1]===void 0)return null;n+=1;continue}return t.startsWith(`-`)?null:B(t)}}return null}function tn(e){let t=e.match(/^([A-Za-z_][A-Za-z0-9_]*)=(.*)$/su);if(!t)return null;let n=t[1],r=t[2].trim();if(!r||/[$`]/u.test(r))return{name:n,program:null};if(r.startsWith(`(`)&&r.endsWith(`)`))r=L(r.slice(1,-1))?.[0]??``;else if(/\s/u.test(r)&&!/[\\/]/u.test(r))return{name:n,program:null};return{name:n,program:B(r)}}function nn(e){let t=e.match(/^\$(?:([A-Za-z_][A-Za-z0-9_]*)|\{([A-Za-z_][A-Za-z0-9_]*)(?:\[@\])?\})$/u);return t?.[1]??t?.[2]??null}function rn(e){let t=new Map,n=e,r=0;for(let e=0;n&&e<64;e+=1){let e=Kt(n);if(e===null)return null;let i=R(e),a=L(qt(i.firstCommand));if(a===null)return null;let o=+(a[0]===`do`||a[0]===`then`);for(;o<a.length;){let e=z(a,o);if(e!==null&&e<=a.length){o=e;continue}if(/^[A-Za-z_][A-Za-z0-9_]*\+?=/u.test(a[o]??``)){o+=1;continue}break}let s=nn(a[o]??``),c=s?t.get(s):void 0;if(c)return c;let l=a[0];if((l===`fi`||l===`done`||l===`esac`)&&(r=Math.max(0,r-1)),(l===`if`||l===`for`||l===`while`||l===`until`||l===`select`||l===`case`)&&(r+=1),r===0&&l===`unset`)for(let e of a.slice(1))t.delete(e);let u=+(a[0]===`export`),d=a.slice(u).map(tn);if(r===0&&d.length>0&&d.every(e=>e!==null))for(let e of d)e.program?t.set(e.name,e.program):t.delete(e.name);n=i.remainingCommand}return null}function an(e,t,n,r,i,a){let o=n;if(e===`command`)for(;o<t.length;){let e=t[o];if(e===`--`){o+=1;break}if(!e.startsWith(`-`)||e===`-`)break;if(e!==`-p`)return null;o+=1}else if(e===`builtin`){if(t[o]===`--`)o+=1;else if(t[o]?.startsWith(`-`))return null}else if(e===`exec`)for(;o<t.length;){let e=t[o];if(e===`--`){o+=1;break}if(e===`-a`){if(t[o+1]===void 0)return null;o+=2;continue}if(/^-a.+/u.test(e)||/^-[cl]+$/u.test(e)){o+=1;continue}if(e.startsWith(`-`)&&e!==`-`)return null;break}let s=t.slice(o);if(s.length===0)return null;let c=0;for(;c<s.length;){let e=z(s,c);if(e===null||e>s.length)break;c=e}let l=s[c];if(l&&/^[A-Za-z_][A-Za-z0-9_]*\+?=/u.test(l))return null;let u=V(Jt(s),r+1,e===`exec`?`exec`:`shell`,a);return u===null?e!==`exec`&&l&&l===l.toLowerCase()&&I.has(l)&&!zt.has(l)&&i?V(i,r,`shell`,a-1):null:u}function on(e,t,n,r){if(t>=8||r<=0)return null;let i=Kt(e);if(i===null||/^(?:catch|finally|for|foreach|function|if|param|switch|try|while)\s*[{(]/iu.test(i)||/^[A-Za-z_][A-Za-z0-9_]*\s*\(\s*\)\s*\{/u.test(i)||i.startsWith(`[[`))return null;let a=R(i);if(/^@["'](?:\r?\n)/u.test(a.firstCommand.trimStart()))return a.remainingCommand?V(a.remainingCommand,t,`shell`,r-1):null;let o=Qt(a.firstCommand,t,a.remainingCommand,r);if(o.matched)return o.program;let s=a.firstCommand.match(/^\s*((?:\.{1,2}|%[A-Za-z_][A-Za-z0-9_]*%|\$env:[A-Za-z_][A-Za-z0-9_]*)\\\S+)/iu)?.[1];if(s)return B(s);let c=L(qt(a.firstCommand));if(c===null)return null;let l=a.firstCommand.trimStart()[0];if(c.length===1&&(l===`"`||l===`'`)&&/[\s()=]/u.test(c[0]??``)&&!/[\\/]/u.test(c[0]??``))return a.remainingCommand?V(a.remainingCommand,t,n,r-1):null;let u=0,d=null,f=n,p=!1,m=!1;for(;u<c.length;){let e=c[u];if(!e)return null;let n=z(c,u);if(n!==null){if(n>c.length)return null;m=!0,u=n;continue}if(/^[A-Za-z_][A-Za-z0-9_]*\+?=/.test(e)){p=!0,u+=1;continue}if(f===`shell`&&e===`:`)return a.remainingCommand?V(a.remainingCommand,t,f,r-1):null;if(Lt.includes(e[0]??``)&&!(e.startsWith(`$`)&&e.includes(`/`)))return f===`shell`&&e.startsWith(`[`)&&a.remainingCommand?V(a.remainingCommand,t,f,r-1):null;let i=e.split(/[\\/]/).at(-1),o=e===i;if(i===`env`||i===`sudo`){d=i,f=`exec`,u+=1;continue}if(d!==null&&e===`--`){d=null,u+=1;continue}if(d!==null&&e.startsWith(`-`)){if(d===`env`&&(e===`-S`||e===`--split-string`)){let e=c[u+1];return e?V(e,t+1,f,r):null}if(d===`env`&&e.startsWith(`--split-string=`))return V(e.slice(15),t+1,f,r);if(Vt[d].has(e)){if(c[u+1]===void 0)return null;u+=2;continue}if(Ht[d].has(e)){u+=1;continue}let n=e.indexOf(`=`);if(e.startsWith(`--`)&&n>2){if(!Vt[d].has(e.slice(0,n)))return null;u+=1;continue}if(/^-[A-Za-z].+/.test(e)&&!e.startsWith(`--`)){let t=!1;for(let[n,r]of e.slice(1).split(``).entries()){let i=`-${r}`;if(Vt[d].has(i)){t=n===e.length-2;break}if(!Ht[d].has(i))return null}if(t&&c[u+1]===void 0)return null;u+=t?2:1;continue}return null}if(i&&Et.has(i.replace(/\.exe$/i,``).toLowerCase())){let e=Bt(c,u+1);if(e!==null){let n=c[e];return n?V(n,t+1,`shell`,r):null}}let s=i?.toLowerCase();if(s&&Dt.has(s)){let e=$t(s,c,u+1,t,a.remainingCommand,a.separator,r);if(e.matched)return e.program}if(s===`start-process`){let e=en(c,u+1);if(e!==null)return e}if(f===`shell`&&o&&i&&At.has(i)){if(u+=1,i===`time`&&c[u]===`-p`&&(u+=1),c[u]?.startsWith(`-`))return null;continue}if(o&&i){let e=Yt(i,c,u);if(e!==null){let n=V(Jt(c.slice(e)),t+1,`exec`,r);if(n!==null)return n}}return o&&i&&kt.has(i)?an(i,c,u+1,t,a.remainingCommand,r):(f===`shell`||d===`sudo`&&i&&It.has(i))&&o&&i&&I.has(i)&&(!zt.has(i)||i===`false`&&a.separator!==`&&`)&&a.remainingCommand||f===`shell`&&o&&s&&jt.has(s)&&a.remainingCommand?V(a.remainingCommand,t,`shell`,r-1):!i||o&&I.has(i)||Lt.includes(i[0]??``)||Rt.includes(i.at(-1)??``)||i.endsWith(`()`)||/^[A-Za-z_][A-Za-z0-9_]*\(\)\{$/u.test(i)?null:i||null}return(p||m)&&d===null&&a.remainingCommand?V(a.remainingCommand,t,f,r-1):null}function V(e,t,n,r=Tt){if(r<=0)return null;let i=Zt(e);return i===void 0?on(e,t,n,r)??(n===`shell`?rn(e):null):i}function sn(e,t=0){return V(e,t,`shell`,Tt)}var cn=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/gu;function ln(e){return pn(mn(e))}var un=/[a-z][\w+.-]*:\/\/\S+|(?:\b[a-z]:)?[^\s"'`=,;:()<>|&]+/giu;function dn(e){if(e.includes(`://`)||/[*?[{]/u.test(e))return e;let t=e.replaceAll(`\\`,`/`).replace(/\/+$/u,``),n=t.lastIndexOf(`/`);if(n<0)return e;let r=t.slice(n+1);if(!/[a-z]/iu.test(r))return e;let i=/^(?:~|\.{1,2}|[a-z]:)?\//iu.test(t),a=/.\.[a-z0-9]+$/iu.test(r),o=t.split(`/`).length-1;return i||a||o>=2?r:e}function fn(e){return e.replace(un,dn)}function pn(e){return e.replace(cn,e=>e===``?`␡`:String.fromCharCode(9216+e.charCodeAt(0)))}function mn(e){let t=e.trim();if(R(t).remainingCommand!==null)return t;let n=L(t),r=n?.[0]?.split(/[\\/]/u).at(-1)?.replace(/\.exe$/iu,``);if(!n||!r||!Et.has(r))return t;let i=Bt(n,1);return i===null||i!==n.length-1?t:n[i]?.trim()||t}var hn=new Set([`powershell`,`pwsh`]),gn=new Set(`Add Approve Assert Backup Block Build Checkpoint Clear Close Compare Complete Compress Confirm Connect Convert ConvertFrom ConvertTo Copy Debug Deny Deploy Disable Disconnect Dismount Edit Enable Enter Exit Expand Export Find ForEach Format Get Grant Group Hide Import Initialize Install Invoke Join Limit Lock Measure Merge Mount Move New Open Optimize Out Ping Pop Protect Publish Push Read Receive Redo Register Remove Rename Repair Request Reset Resize Resolve Restart Restore Resume Revoke Save Search Select Send Set Show Skip Sort Split Start Step Stop Submit Suspend Switch Sync Tee Test Trace Unblock Undo Uninstall Unlock Unprotect Unpublish Unregister Update Use Wait Watch Where Write`.split(` `));function _n(e){let t=/^([A-Z][a-z]+(?:[A-Z][a-z]+)?)-[A-Z][A-Za-z]*$/u.exec(e);return t!==null&&gn.has(t[1])}function vn(e){let t=/^(?:&\s*)?(?:"([^"]*)"|'([^']*)'|(\S+))/u.exec(e.trim()),n=(t?.[1]??t?.[2]??t?.[3]??``).split(/[\\/]/u).at(-1)?.toLowerCase().replace(/\.exe$/u,``);return n&&hn.has(n)||yn(e)?`powershell`:`shellscript`}function yn(e){let t=e.trim();if(/^&\s*\S/u.test(t))return!0;for(let e=0;t&&e<Tt;e+=1){let{firstCommand:e,remainingCommand:n}=R(t),r=e.trim();if(/^\$(?:env|global|local|script):/iu.test(r)||/^\$[A-Za-z_]\w*\s+=/u.test(r)||_n(r.match(/^\S+/u)?.[0]??``))return!0;t=n}return!1}var bn=new Set([`cat`,`head`,`tail`,`nl`,`less`,`more`,`bat`,`sed`]),xn=new Set([`grep`,`egrep`,`fgrep`,`rg`,`ag`]),Sn=new Set([`ls`,`tree`,`find`]),Cn=new Set([`head`,`tail`,`wc`,`sort`,`uniq`,`cut`,`grep`,`cat`]),wn={head:new Set([`-n`,`-c`]),tail:new Set([`-n`,`-c`]),sed:new Set([`-e`,`-f`]),grep:new Set([`-e`,`-f`,`-m`,`-A`,`-B`,`-C`,`--regexp`,`--file`,`--max-count`]),rg:new Set([`-e`,`-f`,`-g`,`-t`,`-T`,`-m`,`-A`,`-B`,`-C`,`-M`,`--regexp`,`--file`,`--glob`,`--iglob`,`--type`,`--type-not`,`--max-count`,`--max-columns`,`--context`,`--after-context`,`--before-context`]),ag:new Set([`-G`,`-A`,`-B`,`-C`,`-m`]),tree:new Set([`-L`,`-I`,`-P`])};function Tn(e,t){let n=wn[e]??new Set,r=[],i=[],a=!1;for(let e=0;e<t.length;e+=1){let o=t[e];if(/^\d*(?:>>?|<|>&)/u.test(o)){/^\d*(?:>>?|<|>&)$/u.test(o)&&(e+=1);continue}if(!a&&o===`--`){a=!0;continue}if(!a&&o.startsWith(`-`)&&o!==`-`){if(n.has(o)){let n=t[e+1];(o===`-e`||o===`--regexp`)&&n!==void 0&&i.push(n),e+=1}else o.startsWith(`--regexp=`)&&i.push(o.slice(9));continue}r.push(o)}return{positionals:r,patterns:i}}function En(e){let t=L(e);if(!t||t.length===0)return null;let n=t[0].split(`/`).at(-1),{positionals:r,patterns:i}=Tn(n===`egrep`||n===`fgrep`?`grep`:n,t.slice(1));if(bn.has(n)){if(n===`sed`){if(!t.includes(`-n`)||t.includes(`-i`))return null;let e=i.length>0?r:r.slice(1);return e.length>0?{kind:`read`,paths:e}:null}return r.length>0?{kind:`read`,paths:r}:null}if(xn.has(n)){let e=i[0]??r[0];return e?{kind:`search`,query:e,targets:i.length>0?r:r.slice(1)}:null}return Sn.has(n)?{kind:`list`,target:n===`find`?t.slice(1).find(e=>!e.startsWith(`-`)&&e!==`(`)??null:r[0]??null}:null}function Dn(e){let t=mn(e).trim(),n=null,r=null;for(;t;){let e=R(t),i=e.firstCommand.trim();if(r===null){if(/^cd(?:\s|$)/u.test(i)&&e.separator===`&&`){t=e.remainingCommand;continue}if(r=En(i),r===null)return null}else{let e=L(i)?.[0]?.split(`/`).at(-1);if(n!==`|`||!e||!Cn.has(e))return null}n=e.separator,t=e.remainingCommand}return r}function On(e){return e.replace(/[\\/]+$/u,``).split(/[\\/]/u).at(-1)||e}function kn(e,t,n=On){let r=Dn(e);if(!r)return null;let i=t===`past`,a=e=>e[0]===void 0?``:`${n(e[0])}${e.length>1?` +${e.length-1} more`:``}`;switch(r.kind){case`read`:return`${i?`Read`:`Reading`} ${a(r.paths)}`;case`search`:{let e=a(r.targets);return`${i?`Searched`:`Searching`} for ${r.query}${e?` in ${e}`:``}`}case`list`:return`${i?`Listed`:`Listing`} files${r.target?` in ${a([r.target])}`:``}`}}function H(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function U(e){return typeof e==`string`&&e.trim()!==``?e:void 0}function W(e,t=0){if(t>4)return{failed:!1};if(typeof e==`string`)try{return W(JSON.parse(e),t+1)}catch{return{failed:!1}}if(Array.isArray(e)){let n,r=!1;for(let i of e){let e=H(i),a=e?.text??H(e?.content)?.text,o=W(H(a)?.text??a,t+1);n??=o.data,r||=o.failed}return{...n?{data:n}:{},failed:r}}let n=H(e);if(!n)return{failed:!1};let r=n.isError===!0||n.is_error===!0||typeof n._tag==`string`&&/(?:Error|Failure)$/.test(n._tag)||n.error!=null,i=n.structuredContent??n.content;if(i!==void 0){let e=W(i,t+1);return{...e.data?{data:e.data}:{},failed:r||e.failed}}return{data:n,failed:r}}function An(e){let t=W(e).data;return t&&typeof t.toolName==`string`?H(t.args):t}function jn(e){return W(e).failed}function G(e){return new Set(e.filter(e=>e!==void 0)).size+e.filter(e=>e===void 0).length}function K(e,t,n=`${t}s`){return`${e} ${e===1?t:n}`}function Mn(e,t){let n=t.map(e=>{let t=W(e.output);return{input:An(e.input),output:t.data,outcome:t.failed?`failed`:e.outcome}}),r=n.filter(e=>e.outcome===`completed`),i=n.filter(e=>e.outcome===`failed`).length,a=r.length>0?r:n,o=K(a.length,`time`),s=(e,t,n)=>`${r.length>0?e:`Tried to ${t}`} ${n}`,c=e=>a.map(t=>U(t.output?.[e])??U(t.input?.[e])),l=a.map(e=>U(e.output?.id)??U(e.output?.projectId)??U(e.input?.projectId)),u=a.map(e=>U(e.output?.threadId)??U(H(e.output?.thread)?.threadId)??U(e.input?.threadId)),d;switch(e){case`thread-send`:{let e=G(a.map(e=>U(e.output?.messageId))),t=u.every(e=>e!==void 0),n=new Set(u).size;d=s(`Sent`,`send`,t?e===n&&e>1?`messages to ${K(n,`thread`)}`:`${K(e,`message`)} to ${K(n,`thread`)}`:K(e,`message`));break}case`thread-create`:{let e=[];d=r.length>0&&r.every(t=>(Array.isArray(t.output?.threads)?t.output.threads:[t.output]).every(t=>{let n=H(t);if(n?.status===`rolled_back`)return!0;let r=U(n?.threadId);return r?(e.push(r),!0):!1}))?`Created ${K(new Set(e).size,`thread`)}`:`Requested thread creation ${o}`;break}case`delegate`:d=s(`Delegated`,`delegate`,K(G(c(`taskId`)),`task`));break;case`thread-read`:case`thread-wait`:{let t=u.every(e=>e!==void 0)?K(new Set(u).size,`thread`):`threads ${o}`;d=e===`thread-read`?s(`Read`,`read`,t):s(`Waited on`,`wait on`,t);break}case`thread-list`:d=s(`Listed`,`list`,`threads ${o}`);break;case`thread-interrupt`:d=s(`Requested interrupts for`,`interrupt`,K(G(u),`thread`));break;case`workflow-stop`:d=s(`Requested stops for`,`stop`,K(G(c(`subagentId`)),`workflow`));break;case`task-status`:d=s(`Checked`,`check`,`task status ${o}`);break;case`task-cancel`:d=s(`Requested cancellation of`,`cancel`,K(G(c(`taskId`)),`task`));break;case`schedule-create`:d=s(`Scheduled`,`schedule`,K(G(c(`scheduledTaskId`)),`task`));break;case`schedule-list`:d=s(`Listed`,`list`,`scheduled tasks ${o}`);break;case`schedule-update`:d=s(`Updated`,`update`,K(G(c(`scheduledTaskId`)),`scheduled task`));break;case`schedule-delete`:d=s(`Requested deletion of`,`delete`,K(G(c(`scheduledTaskId`)),`scheduled task`));break;case`schedule-run`:d=s(`Requested`,`request`,K(a.length,`scheduled task run`));break;case`thread-configuration`:d=s(`Checked`,`check`,`thread configuration ${o}`);break;case`thread-configure`:d=s(`Set`,`set`,`thread model ${o}`);break;case`thread-fork`:d=s(`Requested`,`request`,K(a.length,`thread fork`));break;case`thread-merge`:d=s(`Requested`,`request`,K(a.length,`context merge`));break;case`thread-search`:d=s(`Searched`,`search`,`threads ${o}`);break;case`thread-transfers`:d=s(`Checked`,`check`,`thread transfers ${o}`);break;case`thread-organize`:d=s(`Organized`,`organize`,`threads ${o}`);break;case`thread-update`:d=s(`Updated`,`update`,K(G(u),`thread`));break;case`queue-list`:d=s(`Listed`,`list`,`queued messages ${o}`);break;case`queue-read`:d=s(`Read`,`read`,K(G(c(`queuedRunId`)),`queued message`));break;case`queue-edit`:d=s(`Edited`,`edit`,K(G(c(`queuedRunId`)),`queued message`));break;case`queue-cancel`:d=s(`Requested cancellation of`,`cancel`,K(G(c(`queuedRunId`)),`queued run`));break;case`queue-reorder`:d=s(`Reordered`,`reorder`,K(G(c(`queuedRunId`)),`queued run`));break;case`queue-steer`:d=s(`Requested steering with`,`steer with`,K(G(c(`queuedRunId`)),`queued message`));break;case`question-list`:d=s(`Listed`,`list`,`pending questions ${o}`);break;case`question-read`:d=s(`Read`,`read`,K(G(c(`requestId`)),`pending question request`));break;case`question-respond`:d=s(`Answered`,`answer`,K(G(c(`requestId`)),`pending question request`));break;case`secret-request`:d=s(`Asked for`,`ask for`,K(a.length,`secret`));break;case`worktree-handoff`:d=s(`Handed off to`,`hand off to`,K(G(c(`worktreePath`)),`worktree`));break;case`worktree-list`:d=s(`Listed`,`list`,`workspace branches ${o}`);break;case`worktree-status`:d=s(`Checked`,`check`,`worktree status ${o}`);break;case`project-list`:d=s(`Listed`,`list`,`projects ${o}`);break;case`project-read`:d=s(`Read`,`read`,K(G(l),`project`));break;case`project-create`:d=s(`Registered`,`register`,K(G(l),`project`));break;case`project-update`:d=s(`Updated`,`update`,K(G(l),`project`));break;case`project-delete`:d=s(`Deleted`,`delete`,K(G(l),`project`));break;case`project-clone`:d=s(`Cloned`,`clone`,K(G(c(`cwd`)),`repository`,`repositories`));break;case`environment-read`:d=s(`Checked`,`check`,`environment preferences ${o}`);break;case`environment-update`:d=s(`Updated`,`update`,`environment preferences ${o}`);break;case`attachment-prepare`:d=s(`Prepared`,`prepare`,K(G(c(`attachmentId`)),`attachment upload`));break;case`attachment-discard`:d=s(`Discarded`,`discard`,K(G(c(`attachmentId`)),`pending attachment`));break;case`attachment-send`:{let e=new Map;a.forEach((t,n)=>e.set(U(t.output?.messageId)??`call-${n}`,t));let t=[...e.values()].reduce((e,t)=>e+(Array.isArray(t.input?.attachments)?t.input.attachments.length:0),0),n=[...e.values()].every(e=>Array.isArray(e.input?.attachments)&&e.input.attachments.length>0),r=u.every(e=>e!==void 0)?` to ${K(new Set(u).size,`thread`)}`:``;d=s(`Sent`,`send`,n?`${K(t,`attachment`)}${r}`:`attachments${r} ${o}`);break}case`link-pr`:d=s(`Linked`,`link`,K(a.length,`pull request`));break;case`unlink-pr`:d=s(`Unlinked`,`unlink`,K(a.length,`pull request`));break;case`watch-pr`:d=s(`Watching`,`watch`,K(a.length,`pull request`));break;case`unwatch-pr`:d=s(`Stopped watching`,`stop watching`,K(a.length,`pull request`));break;case`list-prs`:d=s(`Checked`,`check`,`linked pull requests${a.length===1?``:` ${o}`}`);break;case`write-pr-guides`:{let e=a.flatMap(e=>Array.isArray(e.output?.guides)?e.output.guides.map(e=>H(e)?.outcome):[]),t=e.filter(e=>e!==`failed`).length,n=e.length-t;i+=n,d=e.length>0&&t===0?`Could not start ${K(n,`review guide`)}`:s(`Started`,`start`,e.length===0?`review guides ${o}`:`${K(t,`review guide`)}${n>0?`, ${n} failed`:``}`);break}case`read-pr-guide`:d=s(`Read`,`read`,K(a.length,`review guide`));break;case`browser`:d=s(`Used`,`use`,`browser ${o}`);break;case`decide`:d=s(`Asked`,`ask`,`Decisions ${o}`);break;case`device`:d=s(`Used`,`use`,`device controls ${o}`);break;case`html-preview`:d=s(`Previewed`,`preview`,K(a.length,`HTML page`));break;case`html-render`:d=s(`Rendered`,`render`,K(a.length,`HTML page`));break;case`capabilities`:d=s(`Checked`,`check`,`orchestration capabilities ${o}`)}return{label:d,failedCount:i}}function Nn(e){return e.status===`running`?`Compacting context`:e.beforeTokenCount!==void 0&&e.afterTokenCount!==void 0?`Context compacted ${oe(e.beforeTokenCount)} → ${oe(e.afterTokenCount)} tokens`:`Context compacted`}function Pn(e){return e.replace(/\s+(?:complete|completed)\s*$/i,``).trim()}function q(e){let t=e.structuredPayload;if(t?.type===`dynamic_tool`&&t.toolName)return t.toolName;let n=J(e.toolData);return typeof n?.server==`string`&&typeof n.tool==`string`?`${n.server}.${n.tool}`:typeof n?.toolName==`string`?n.toolName:O(e.toolTitle)?e.toolTitle:e.label}function Fn(e){let t=e.structuredPayload,n=J(e.toolData);return t?.type===`dynamic_tool`?t.output:n?.output??n?.result??n?.rawOutput??n?.content}function In(e,t,n){if(!e)return null;let[r,i,a,o]=e.labels,s=t===`inProgress`?i:t===`completed`?a:t===`failed`?`Failed to ${r.toLowerCase()}`:t===`declined`?`Declined to ${r.toLowerCase()}`:t===`stopped`?`Stopped ${i.toLowerCase()}`:i,c=e.summaryAction===`link-pr`||e.summaryAction===`unlink-pr`||e.summaryAction===`list-prs`||e.summaryAction===`watch-pr`||e.summaryAction===`unwatch-pr`?e.summaryAction:void 0,l=J(n),u=J(l?.arguments)??J(l?.input)??J(l?.rawInput),d=(typeof u?.url==`string`?te(u.url):null)?.number??u?.number;return{displayName:`${s} ${c!==void 0&&c!==`list-prs`&&typeof d==`number`&&Number.isSafeInteger(d)&&d>0?`PR #${d}`:o}`,icon:e.icon,...c===void 0?{}:{action:c}}}function Ln(e,t){return e===`failed`||e===`declined`||e===`stopped`||e===`idle`?e:t||e===`inProgress`?`inProgress`:`completed`}function Rn(e,t){let n=O(q(e)),r=e.toolLifecycleStatus??t;return In(n,n&&jn(Fn(e))?`failed`:r,e.toolData)}function J(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function zn(e){return e.tone===`tool`||e.tone===`thinking`||e.tone===`error`||e.command!==void 0&&e.command.trim().length>0||e.requestKind!==void 0||e.itemType!==void 0&&d(e.itemType)}function Bn(e,t){if(e.tone===`error`||e.toolLifecycleStatus===`failed`||e.toolLifecycleStatus===`declined`)return!0;if(!zn(e))return!1;if(O(q(e))&&jn(Fn(e)))return!0;let n=e.structuredPayload;if(n?.type===`command_execution`&&(n.outputIndicatesFailure||n.exitCode!==void 0&&n.exitCode!==0||n.output&&ct(n.output.slice(0,32768))))return!0;let r=t?[e.detail,e.command].filter(Boolean).join(`
|
|
25
|
-
`):e.detail??``;return r.length>0&&ct(r)}function Vn(e){return Bn(e,!0)}function Hn(e){return Bn(e,!1)}function Un(e){return e.itemType===`file_search`||e.itemType===`web_search`&&/\bgrep\b/i.test(Pn(e.toolTitle??e.label))}function Y(e){if(e.itemType===`thread_created`)return`thread-create`;let t=Rn(e);if(t?.action!==void 0)return t.action;if(t?.icon===`browser`)return`browser`;if(t?.icon===`device`)return`device`;if(e.requestKind===`file-read`||e.viewedImagePath!==void 0)return`read`;if(e.itemType===`approval_request`||e.itemType===`user_input_request`)return zn(e)?`other`:`update`;let n=e.itemType===`command_execution`&&e.command?Dn(e.command):null;if(n)return n.kind===`read`?`read`:`code-search`;let r=J(e.toolData)??{},i=e.structuredPayload?.type===`dynamic_tool`?e.structuredPayload.toolName:typeof r.toolName==`string`?r.toolName:e.toolTitle,a=he({itemType:e.itemType===`command_execution`||e.itemType===`file_change`||e.itemType===`web_search`?e.itemType:e.itemType===`dynamic_tool`?`dynamic_tool_call`:void 0,title:e.toolTitle??e.label,data:{...r,...i?{toolName:i}:{}}});return a===`read`?`read`:a===`file_change`||e.itemType===`file_change`?`edit`:a===`command`||e.itemType===`command_execution`||e.command?`command`:a===`search`?e.itemType===`web_search`&&!Un(e)?`search`:`code-search`:Un(e)?`code-search`:e.itemType===`web_search`?`search`:(e.changedFiles?.length??0)>0?`edit`:zn(e)?`other`:`update`}function Wn(e){let t=e.viewedImagePath?.trim();if(t!==void 0&&!/[\r\n]/.test(t)&&_(t))return t;let n=e.detail?.trim();return Y(e)===`read`&&n!==void 0&&!/[\r\n]/.test(n)&&_(n)?n:null}function Gn(e,t){let n=ie(e,t.workspaceRoot??`.`);if(n._tag!==`WorkspaceFile`)return null;let r=t.workspaceRoot==null&&n.path.startsWith(`./`)?n.path.slice(2):n.path,i=ae(e,{threadId:t.threadId,workspaceRoot:t.workspaceRoot,resolvedFilePath:r});return i===null||i.access!==`environment`?null:{resource:i.resource,alt:i.name,srcFragment:i.srcFragment}}function Kn(e,t){if(e!==`edit`)return t.length;let n=new Set,r=0;for(let e of t)if(!e.changedFiles||e.changedFiles.length===0)r+=1;else for(let t of e.changedFiles)n.add(t);return n.size+r}function qn(e,t){switch(e){case`link-pr`:return`Linked ${t} ${t===1?`pull request`:`pull requests`}`;case`unlink-pr`:return`Unlinked ${t} ${t===1?`pull request`:`pull requests`}`;case`watch-pr`:return`Watching ${t} ${t===1?`pull request`:`pull requests`}`;case`unwatch-pr`:return`Stopped watching ${t} ${t===1?`pull request`:`pull requests`}`;case`list-prs`:return t===1?`Checked linked pull requests`:`Checked linked pull requests ${t} times`;case`read`:return`Read ${t} ${t===1?`file`:`files`}`;case`edit`:return`Changed ${t} ${t===1?`file`:`files`}`;case`command`:return`Ran ${t} ${t===1?`command`:`commands`}`;case`thread-create`:return`Created ${t} ${t===1?`thread`:`threads`}`;case`device`:return`Used device controls ${t} ${t===1?`time`:`times`}`;case`browser`:return`Used browser ${t} ${t===1?`time`:`times`}`;case`search`:return`Searched the web ${t} ${t===1?`time`:`times`}`;case`code-search`:return`Searched code ${t} ${t===1?`time`:`times`}`;case`other`:return`Used ${t} ${t===1?`tool`:`tools`}`;case`update`:return`Received ${t} ${t===1?`update`:`updates`}`}}function Jn(e){let t=e.structuredPayload,n=e.toolData!==null&&typeof e.toolData==`object`?e.toolData:void 0;return{input:t?.type===`dynamic_tool`?t.input:n?.arguments??n?.input??n?.rawInput,output:Fn(e),outcome:e.toolLifecycleStatus===`failed`||e.toolLifecycleStatus===`declined`||e.tone===`error`?`failed`:e.toolLifecycleStatus===`completed`?`completed`:`unfinished`}}function Yn(e){switch(e){case`command`:case`edit`:case`delegate`:case`task-cancel`:case`thread-create`:case`thread-send`:case`thread-interrupt`:case`workflow-stop`:case`schedule-create`:case`schedule-update`:case`schedule-delete`:case`schedule-run`:case`thread-configure`:case`thread-fork`:case`thread-merge`:case`thread-organize`:case`thread-update`:case`queue-edit`:case`queue-cancel`:case`queue-reorder`:case`queue-steer`:case`question-respond`:case`worktree-handoff`:case`project-create`:case`project-update`:case`project-delete`:case`project-clone`:case`environment-update`:case`attachment-prepare`:case`attachment-discard`:case`attachment-send`:return 0;case`other`:case`update`:return 2;default:return 1}}function Xn(e){let t=e.filter(e=>e.itemType!==`reasoning`);if(e.length>0&&t.length===0)return{summary:e.length===1?`Thought`:`Thought (×${e.length})`,hasFailure:!1};e=t;let n=new Map,r=new Map;for(let t of e){let e=O(q(t))?.summaryAction??null;if(t.toolSource&&e===null){r.set(t.toolSource.key,t.toolSource);continue}let i=Y(t),a=e??i,o=n.get(a);o?o.entries.push(t):n.set(a,{action:i,t3Action:e,entries:[t]})}let i=[...n].map(([e,t],n)=>({index:n,count:t.entries.length,priority:Yn(e),...t.t3Action?Mn(t.t3Action,t.entries.map(Jn)):{label:qn(t.action,Kn(t.action,t.entries)),failedCount:t.entries.filter(Hn).length}})),a=[...i].sort((e,t)=>e.priority-t.priority||e.index-t.index).slice(0,2).sort((e,t)=>e.index-t.index),o=a.map(({label:e})=>e);if(r.size>0){let e=[...r.values()],t=[...new Set(e.map(e=>e.name))],n=t.length<2?t[0]:t.length===2?t.join(` and `):`${t.slice(0,-1).join(`, `)}, and ${t.at(-1)}`,i=e.every(e=>e.kind===`integration`);o.unshift(`Used ${n}${i?` ${t.length===1?`integration`:`integrations`}`:``}`)}let s=e.filter(e=>e.toolSource!==void 0&&O(q(e))===null).length,c=e.length-s-a.reduce((e,t)=>e+t.count,0);c>0&&o.push(`Performed ${c} other ${c===1?`action`:`actions`}`);let l=o.map((e,t)=>t===0?e:e.charAt(0).toLowerCase()+e.slice(1));return{summary:l.length<3?l.join(` and `):`${l.slice(0,-1).join(`, `)}, and ${l.at(-1)}`,hasFailure:i.some(e=>e.failedCount>0)}}function Zn(e){let t=e.filter(e=>e.itemType!==`reasoning`);if(e.length>0&&t.length===0)return`reasoning`;if(e=t,e.length>0&&e.every(e=>Rn(e)?.icon===`pull-request`))return`pull-request`;let n=new Set(e.map(Y));if(n.size!==1)return`mixed`;let r=n.values().next().value;if(r!==`other`)return r;let i=new Set(e.map(e=>e.itemType===`dynamic_tool`?`dynamic-tool`:e.itemType===`subagent`||e.tone===`thinking`?`agent-tool`:e.tone===`tool`?`tone-tool`:`other`));return i.size===1?i.values().next().value:`mixed`}function Qn(e){let t=/^\s*\*\*([^*\r\n]+)\*\*[ \t]*\r?(?:\n|$)/.exec(e)?.[1],n=(t??e).replace(/!?\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/^[ \t]*(?:#{1,6}|[-*+]|\d+\.)[ \t]+/gm,``).replace(/`+|\*\*|~~/g,``).replace(/(^|[^\w*])[*_]([^*_\n]+)[*_](?![\w*])/g,`$1$2`).replace(/\s+/g,` `).trim();if(t!==void 0)return n;let r=/[.?!]["'”’)]?(?=\s)/.exec(n);return r?n.slice(0,r.index+r[0].length):n}function $n(e,t){if(e?.status!==`failed`)return null;let n=null;for(let r of t)r.type===`error`&&r.status===`failed`&&r.runId===e.id&&r.nodeId===e.rootNodeId&&(n===null||c(r.updatedAt)>c(n.updatedAt)||c(r.updatedAt)===c(n.updatedAt)&&(r.ordinal>n.ordinal||r.ordinal===n.ordinal&&r.id>n.id))&&(n=r);return n?.failure??null}function er(e,t){let n=t!==null&&t!==e?.message?null:e;return{usageLimitResetAt:n?.class===`usage_limit`?n.resetAt??null:null,lastError:t??e?.message??null,lastErrorClass:t!==null&&t!==e?.message?null:e?.class??null}}function tr(e){let t=null;for(let n of e)n.status!==`queued`&&(n.status!==`cancelled`||n.startedAt!==null)&&(t===null||nr(n,t))&&(t=n);return t}function nr(e,t){let n=e=>e.completedAt?c(e.completedAt):1/0;return n(e)===n(t)?e.ordinal>t.ordinal:n(e)>n(t)}function rr(e,t,n){let r=tr(e);return r?.status===`failed`&&er($n(r,t),n).lastErrorClass===`usage_limit`?r:null}function ir(e,t,n){let r=rr(e,t,n);return r!==null&&e.some(e=>e.ordinal>r.ordinal)?r:null}function ar(e){let t=null;for(let n of e)(n.status!==`queued`||n.queueHeld!==!0)&&(t===null||n.ordinal>t.ordinal)&&(t=n);return t}function or(e,t){if(e.startedAt===null)return null;let n=l(e.status)?t:e.completedAt===null?null:Date.parse(e.completedAt);if(n===null)return null;let r=Date.parse(e.startedAt);return Number.isFinite(r)&&Number.isFinite(n)?Math.max(0,n-r):null}function sr(e){if(!Number.isFinite(e)||e<0)return`0ms`;if(e<1e3)return`${Math.max(1,Math.round(e))}ms`;if(e<1e4){let t=Math.round(e/100)/10;return t>=10?`10s`:`${t.toFixed(1)}s`}if(e<6e4)return`${Math.round(e/1e3)}s`;let t=Math.round(e/1e3),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=[];return n>0&&a.push(`${n}h`),r>0&&a.push(`${r}m`),i>0&&a.push(`${i}s`),a.join(` `)}var cr=new Set([`preparing`,`starting`,`running`,`waiting`]),lr=new Set([`preparing`,`starting`,`running`]);function ur(e,t){return e.runs.reduce((e,n)=>t(n)&&(e===null||n.ordinal>e.ordinal)?n:e,null)}function dr(e,t){return{runId:t.id,status:t.status,requestedAt:a(t.requestedAt),startedAt:t.startedAt===null?null:a(t.startedAt),completedAt:t.completedAt===null?null:a(t.completedAt),assistantMessageId:e.messages.findLast(e=>e.runId===t.id&&e.role===`assistant`)?.id??null,...t.sourcePlanRef===void 0?{}:{sourcePlanRef:t.sourcePlanRef}}}function fr(e){let t=e.providerSessions.findLast(t=>t.providerInstanceId===e.thread.providerInstanceId);return ir(e.runs,e.turnItems,t?.lastError??null)}function X(e){return fr(e)??ar(e.runs)}function pr(e){let t=X(e);return t===null?null:dr(e,t)}function mr(e){let t=ur(e,e=>cr.has(e.status))??X(e);return t===null?null:dr(e,t)}function hr(e){let t=gr(e);return t!==null&&l(t.status)?t.startedAt:null}function gr(e){if(!u(e.thread))return null;let t=e.nodes.findLast(e=>e.kind===`root_turn`&&e.runId===null);return t===void 0?null:{status:t.status,startedAt:t.startedAt===null?null:a(t.startedAt),completedAt:t.completedAt===null?null:a(t.completedAt)}}function _r(e){return e.providerThreads.find(t=>t.id===e.thread.activeProviderThreadId&&t.providerInstanceId===e.thread.modelSelection.instanceId)?.nativeMetadata?.modelSelection??null}var vr=[`reasoningEffort`,`effort`,`reasoning`,`variant`];function yr(e,t=[],r){let a=t.find(t=>t.slug===e.model)?.capabilities;if(!a)return null;let o=i({caps:a,selections:e.options});for(let t of vr){let i=o.find(e=>e.id===t);if(i?.type!==`select`)continue;let a=n(i,e,r);if(a)return a}return null}var br={idle:`Idle`,pending:`Working`,running:`Working`,waiting:`Waiting`,completed:`Completed`,interrupted:`Interrupted`,failed:`Failed`,cancelled:`Cancelled`,rolled_back:`Cancelled`};function xr(e,t){if(e===null)return`Starting`;let n=br[e.status],r=l(e.status);if(!r&&e.status!==`completed`)return n;let i=e.startedAt===null?NaN:Date.parse(e.startedAt),a=r?t:e.completedAt===null?NaN:Date.parse(e.completedAt);if(!Number.isFinite(i)||!Number.isFinite(a))return n;let o=sr(Math.max(1e3,Math.floor((a-i)/1e3)*1e3));return r?`${n} ${o}`:`${n} in ${o}`}function Sr(e){let t=pr(e),n=e.providerSessions.findLast(t=>t.providerInstanceId===e.thread.providerInstanceId),r=fr(e),i=X(e),o=mr(e),s=ur(e,e=>cr.has(e.status)),c=h(g({latestRun:i,providerThreads:e.providerThreads,turnItems:e.turnItems,activeProviderThreadId:e.thread.activeProviderThreadId,runs:e.runs,pullRequests:e.thread.pullRequests}));if(t===null&&e.thread.activeProviderThreadId===null&&!c)return null;let l=ur(e,e=>lr.has(e.status))?.id??null;return{status:r?`failed`:c&&i?.status!==`failed`?`idle`:o?.status??`idle`,activeRunId:l,activityStartedAt:s===null?null:a(f(s)),providerInstanceId:e.thread.providerInstanceId,providerName:n?.driver??null,...er($n(i,e.turnItems),n?.lastError??null),updatedAt:a(e.updatedAt)}}function Cr(e){return ee(e)&&e?.activeRunId!==null&&e?.activeRunId!==void 0}var Z={subagent:{order:0,singular:`subagent`,plural:`subagents`},command:{order:1,singular:`command`,plural:`commands`},monitor:{order:2,singular:`monitor`,plural:`monitors`},background_task:{order:3,singular:`background task`,plural:`background tasks`}};function wr(e){return e.length<=1?e.join(``):`${e.slice(0,-1).join(`, `)} and ${e.at(-1)}`}function Tr(e){if(e.length===0)return null;let t=h(e),n=e.map(e=>{let t=e.description?.trim(),n=e.kind===`subagent`&&t!==void 0?ne(t).trim():t;return{taskId:e.taskId,kind:e.kind,label:n===void 0||n.length===0?Z[e.kind].singular:n,childThreadId:e.kind===`subagent`?e.childThreadId:void 0}}).sort((e,t)=>Z[e.kind].order-Z[t.kind].order),[r]=n;if(n.length===1&&r!==void 0){let e=Z[r.kind].singular,i=r.label!==e;return{title:t?i?`${r.kind===`monitor`?``:`Waiting on ${e} `}${r.label}`:`Waiting on a ${e}`:i?`Running: ${r.label}`:`Running a ${e}`,items:n,waiting:t}}let i=new Map;for(let e of n)i.set(e.kind,(i.get(e.kind)??0)+1);let a=Array.from(i,([e,t])=>{let{singular:n,plural:r}=Z[e];return`${t} ${t===1?n:r}`});return{title:`${t?`Waiting on`:`Running`} ${wr(a)}`,items:n,waiting:t}}var Er={active:`Pursuing goal`,paused:`Goal paused`,blocked:`Goal blocked`,usage_limited:`Goal hit a usage limit`,budget_limited:`Goal reached its token budget`,complete:`Goal complete`};function Dr(e){return e<1e3?`${e}`:e<1e6?`${Math.round(e/1e3)}k`:`${(e/1e6).toFixed(1).replace(/\.0$/,``)}m`}function Or(e,t){let n=[];return e.tokensUsed!==void 0&&e.tokensUsed>0&&n.push(e.tokenBudget==null?`${Dr(e.tokensUsed)} tokens`:`${Dr(e.tokensUsed)} / ${Dr(e.tokenBudget)} tokens`),e.timeUsedSeconds!==void 0&&e.timeUsedSeconds>=60&&n.push(sr(e.timeUsedSeconds*1e3)),e.checks!==void 0&&e.checks>0&&n.push(`${e.checks} ${e.checks===1?`check`:`checks`}`),{title:e.status===`active`&&!t?`Goal set`:Er[e.status],objective:e.objective,usage:n.length===0?null:n.join(` · `),canResume:e.status!==`active`&&e.status!==`complete`}}function kr(e){switch(e.kind){case`subagent`:case`delegated_task`:return e.childThreadId;case`command`:case`monitor`:case`background_task`:case`system`:return;default:return}}var Ar=`Preparing workspace`;function jr(e){return e.type===`command_execution`&&e.input===Ar||e.type===`error`&&e.status===`cancelled`&&e.failure.code===`workspace_preparation_failed`}function Mr(e,t){let n=new Set(e.flatMap(e=>e.status===`failed`&&e.workspacePreparation!==void 0?[e.id]:[])),r=new Set;if(n.size===0)return r;for(let e of t)e.type===`error`&&e.status===`failed`&&e.failure.code===`workspace_preparation_failed`&&e.runId!==null&&n.has(e.runId)&&r.add(e.runId);return r}function Nr(e){return e.tone===`tool`||e.tone===`thinking`||e.tone===`error`||e.command!==void 0||e.requestKind!==void 0}function Pr(e){return e.itemType===`error`}function Fr(e){if(!Nr(e)||Vn(e)||e.tone===`thinking`&&e.itemType!==`reasoning`)return!1;let t=e.toolLifecycleStatus;return t!==`failed`&&t!==`declined`&&t!==`inProgress`&&t!==`stopped`&&t!==`idle`}function Ir(e){return Nr(e)&&!Vn(e)&&!Fr(e)}function Lr(e,t){return e===null||e.status===`preparing`||e.status===`queued`||e.status===`starting`||e.status===`running`||e.status===`waiting`?!1:t?.activeRunId!==e.runId}function Rr(e,t,n){return m({latestRun:e,runtime:t})??(t?.activeRunId==null?n:null)}function zr(e){return[...e].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function Br(e){return[...e].toSorted((e,t)=>e.createdAt.localeCompare(t.createdAt))}function Vr(e,t){if(e===null)return null;let n=e.plans.filter(e=>e.kind===`todo_list`),r=[...n].toReversed().find(e=>e.runId===t)??n.at(-1)??null;return r===null||r.steps.length===0?null:{createdAt:Q(e,r.id),runId:r.runId,explanation:r.explanation??null,steps:r.steps.map(({text:e,status:t,durationMs:n})=>({step:e,status:t===`running`?`inProgress`:t,...n===void 0?{}:{durationMs:n}}))}}function Q(e,t){let n=e.turnItems.findLast(e=>(e.type===`proposed_plan`||e.type===`todo_list`)&&e.planId===t);return a(n?.updatedAt??e.updatedAt)}function Hr(e,t){let n=Q(e,t.id);return{id:t.id,createdAt:n,updatedAt:n,runId:t.runId,planMarkdown:t.markdown,status:t.status}}function Ur(e,t){if(e===null)return null;let n=e.plans.filter(e=>e.kind===`proposed_plan`),r=t?n.filter(e=>e.runId===t):n,i=[...r.length>0?r:n].toSorted((t,n)=>Q(e,t.id).localeCompare(Q(e,n.id))||t.id.localeCompare(n.id)).at(-1);return i===void 0?null:Hr(e,i)}function Wr(e){return e?.status===`active`}var Gr=new Set([`fork`,`handoff`,`run_interrupt_request`,`run_interrupt_result`,`secret_request`,`subagent`]),Kr=new Set([`fork`,`thread_created`,`secret_request`]);function qr(e){return e.kind===`event`&&Kr.has(e.projectedItem.item.type)}function $(e){return a(e.item.startedAt??e.item.updatedAt)}function Jr(e){switch(e.status){case`pending`:case`running`:case`waiting`:return`inProgress`;case`completed`:return`completed`;case`idle`:return`idle`;case`failed`:return`failed`;case`cancelled`:case`interrupted`:return`stopped`}}function Yr(e){if(e.type===`error`)return`info`;if(e.type===`reasoning`)return`thinking`;switch(e.type){case`command_execution`:case`file_change`:case`file_search`:case`web_search`:case`dynamic_tool`:case`subagent`:case`thread_created`:case`user_input_request`:case`approval_request`:return`tool`;default:return`info`}}function Xr(e){if(e.retry===void 0)return{label:e.failure.class===`usage_limit`?`Usage limit reached`:e.title?.trim()||`Provider error`,detail:e.failure.message};let t=e.retry.maxAttempts===null?`${e.retry.attempt}`:`${e.retry.attempt}/${e.retry.maxAttempts}`,n=e.status===`running`?`Retrying provider (${t})`:e.status===`completed`?`Provider recovered (${t} retries)`:e.status===`failed`?`${e.failure.class===`usage_limit`?`Usage limit reached`:`Provider error`} after ${t} retries`:`Provider retry stopped (${t})`,r=e.status===`running`&&e.retry.retryDelayMs!==null&&e.retry.retryDelayMs>0?e.retry.retryDelayMs<1e3?` Retrying in ${e.retry.retryDelayMs}ms.`:` Retrying in ${(e.retry.retryDelayMs/1e3).toFixed(1).replace(/\.0$/u,``)}s.`:``;return{label:n,detail:`${e.failure.message}${r}`}}function Zr(e){let{item:t}=e,n=t.title?.trim()||null,r={id:t.id,createdAt:$(e),runId:t.runId,tone:Yr(t),itemType:t.type,toolLifecycleStatus:Jr(t),structuredPayload:t,projectedItem:e,...Oe(t)};switch(t.type){case`thread_created`:return{...r,label:`Created thread`};case`compaction`:return{...r,label:Nn(t),sourceActivityKind:`context-compaction`,...t.summary?{detail:t.summary}:{}};case`reasoning`:return{...r,label:n??`Thinking`,...t.text?{detail:t.text}:{}};case`command_execution`:return{...r,label:n??`Ran command`,command:t.input,rawCommand:t.input,toolTitle:n??`Command`,toolData:t};case`file_change`:return{...r,label:n??(t.changes!==void 0&&t.changes.length>1?`Changed ${t.changes.length} files`:`Changed ${t.fileName}`),changedFiles:t.changes?.map(e=>e.path)??[t.fileName],toolTitle:n??`File change`,toolData:t};case`file_search`:return{...r,label:n??Se(t)??`Searched files`,...t.pattern?{detail:t.pattern}:{},toolTitle:n??`File search`,toolData:t};case`web_search`:return{...r,label:n??`Searched the web`,...t.patterns?.length?{detail:t.patterns.join(`, `)}:{},toolTitle:n??`Web search`,toolData:t};case`checkpoint`:return{...r,label:n??`Checkpoint captured`,changedFiles:t.files.map(e=>e.path),toolData:t};case`system_notice`:return{...r,label:t.message,sourceActivityKind:`runtime.warning`};case`error`:{let e=Xr(t);return{...r,...e,...t.failure.class===`usage_limit`&&t.status!==`completed`?{sourceActivityKind:`runtime.warning`}:t.retry===void 0?{sourceActivityKind:`runtime.error`}:{},toolData:t}}case`dynamic_tool`:{let e=he({itemType:`dynamic_tool_call`,data:{toolName:t.toolName??void 0,input:t.input}}),[i]=pe({input:t.input});return{...r,label:n??(e===`read`?Ce(i??``):e===`search`?Se({input:t.input})??t.toolName??`Tool call`:t.toolName??`Tool call`),toolTitle:n??t.toolName??`Tool`,toolData:{input:t.input,output:t.output}}}case`approval_request`:return{...r,label:n??`Approval requested`,detail:t.prompt??t.requestKind,toolData:t};case`user_input_request`:return{...r,label:n??(t.questionAnswer?`Answered questions`:`Input requested`),...t.questionAnswer?{questionAnswer:t.questionAnswer}:{},toolData:t};default:return{...r,label:n??t.type.replaceAll(`_`,` `),toolData:t}}}function Qr(e){let t=new Set,n=[],r=new Map((e.attempts??[]).map(e=>[e.rootNodeId,e])),i=new Map((e.nodes??[]).map(e=>[e.id,e])),o=new Map((e.plans??[]).map(e=>[e.id,e])),s=e=>{if(e.nodeId===null||e.runId===null)return;let t=e.nodeId,n=new Set;for(;t!==null&&!n.has(t);){n.add(t);let a=r.get(t);if(a?.runId===e.runId)return a;let o=i.get(t);if(o===void 0)return;let s=r.get(o.rootNodeId);if(s?.runId===e.runId)return s;t=o.parentNodeId}},c=new Set(e.visibleTurnItems.flatMap(({item:e})=>e.type===`user_input_request`&&e.questionAnswer?[`async-answer:${e.questionAnswer.requestId}`]:[]));for(let r of e.visibleTurnItems){let{item:i}=r;if(jr(i)||i.type===`todo_list`||i.type===`checkpoint`||i.type===`user_message`&&c.has(i.messageId))continue;let l=$(r),u=s(i),d=u===void 0?{}:{attempt:u};if(i.type===`notification`){n.push({id:i.id,kind:`work`,createdAt:l,entry:{id:i.id,createdAt:l,runId:i.runId,label:i.summary,tone:`info`,itemType:i.type,structuredPayload:i,projectedItem:r},...d});continue}if(i.type===`user_message`||i.type===`assistant_message`){let o={id:i.messageId,role:i.type===`user_message`?`user`:`assistant`,text:i.text,...i.type===`user_message`&&i.context?{context:i.context}:{},...(i.attachments?.length??0)>0?{attachments:(i.attachments??[]).map(t=>{let n=e.attachmentUrlById?.get(t.id);return n?{...t,previewUrl:n}:t})}:{},runId:i.runId,streaming:i.type===`assistant_message`&&i.streaming,...i.type===`user_message`?{createdBy:i.createdBy,creationSource:i.creationSource,...i.senderThreadId===void 0?{}:{senderThreadId:i.senderThreadId},...i.scheduledTaskId===void 0?{}:{scheduledTaskId:i.scheduledTaskId}}:{},createdAt:l,updatedAt:a(i.updatedAt),...i.type===`user_message`?{inputIntent:i.inputIntent}:{}};t.add(o.id),n.push({id:o.id,kind:`message`,createdAt:l,message:o,projectedItem:r,...d});continue}if(i.type===`proposed_plan`){let e=o.get(i.planId),t={id:i.planId,runId:i.runId,planMarkdown:i.markdown,status:e?.kind===`proposed_plan`?e.status:`active`,createdAt:l,updatedAt:a(i.updatedAt)};n.push({id:i.id,kind:`proposed-plan`,createdAt:l,proposedPlan:t,...d});continue}let f=i.type===`dynamic_tool`&&i.status===`completed`?ot(i):void 0;if(f!==void 0){n.push({id:i.id,kind:`html-render`,createdAt:l,runId:i.runId,htmlRender:f,...d});continue}let p=i.type===`dynamic_tool`&&i.status===`completed`?st(i):void 0;if(p!==void 0){n.push({id:i.id,kind:`mcp-app`,createdAt:l,runId:i.runId,sourceThreadId:r.sourceThreadId,itemId:r.sourceItemId,revision:yt(i),mcpApp:p,...d});continue}if(Gr.has(i.type)){n.push({id:i.id,kind:`event`,createdAt:l,projectedItem:r,...d});continue}n.push({id:i.id,kind:`work`,createdAt:l,entry:Zr(r),...d})}let l=new Set([...t,...c]);for(let t of e.anchoredMessages??[]){if(l.has(t.id))continue;l.add(t.id);let e={id:t.id,kind:`message`,createdAt:t.createdAt,message:t},r=n.findIndex(e=>e.createdAt>t.createdAt);r===-1?n.push(e):n.splice(r,0,e)}for(let t of e.optimisticMessages)t.inputIntent!==`queued_turn`&&!l.has(t.id)&&(l.add(t.id),n.push({id:t.id,kind:`message`,createdAt:t.createdAt,message:t}));return n}var $r=Object.freeze([]);function ei(e){let t=new Set;for(let n of e??[]){if(!r(n))continue;let e=n.previewUrl;e?.startsWith(`blob:`)||e?.startsWith(`data:`)||t.add(n.id)}return t.size===0?$r:Array.from(t,e=>({_tag:`attachment`,attachmentId:e}))}function ti(e,t){if(Object.keys(t).length===0)return $r;let n=new Set;for(let i of e??[])if(i.role===`user`&&t[i.id]?.length)for(let e of i.attachments??[])r(e)&&n.add(e.id);return n.size===0?$r:Array.from(n,e=>({_tag:`attachment`,attachmentId:e}))}function ni(){let e=new WeakMap,t=new WeakMap;return(n,r)=>{let i=n.attachments;if(!i||i.length===0)return n;let a=e.get(i)??i,o,s=!1;for(let[e,t]of i.entries()){let n=r(t),i=`previewUrl`in t?t.previewUrl:void 0,c=a[e],l=`previewUrl`in c?c.previewUrl:void 0,u=!n||n===i?t:n===l?c:{...t,previewUrl:n};s||=u!==t,u!==c&&(o??=a.slice(),o[e]=u)}let c=s?o??a:i;if(e.set(i,c),c===i)return t.delete(n),n;let l=t.get(n);if(l?.attachments===c)return l;let u={...n,attachments:c};return t.set(n,u),u}}function ri(e,t){if(e.role!==`assistant`||t.role!==`assistant`||!e.streaming||!t.streaming)return!1;let{text:n,updatedAt:r,...i}=e,{text:a,updatedAt:s,...c}=t;return o(i,c)}function ii(e,t){let{item:n,...r}=e,{item:i,...a}=t;if(n.type!==`assistant_message`||i.type!==`assistant_message`||!n.streaming||!i.streaming||!o(r,a)||$(e)!==$(t))return!1;let{text:c,updatedAt:l,...u}=n,{text:d,updatedAt:f,...p}=i;return s(u,p)}function ai(e,t){let n=t.input;if(e.visibleTurnItems.length<n.visibleTurnItems.length||!o(e.optimisticMessages,n.optimisticMessages)||!o(e.anchoredMessages,n.anchoredMessages)||!o(e.attachmentUrlById,n.attachmentUrlById)||!o(e.attempts,n.attempts)||!o(e.nodes,n.nodes)||!o(e.plans,n.plans))return null;let r=e.visibleTurnItems.length>n.visibleTurnItems.length;if(r&&(e.optimisticMessages.length>0||(e.anchoredMessages?.length??0)>0)||r&&e.visibleTurnItems.slice(n.visibleTurnItems.length).some(({item:e})=>e.type===`user_input_request`&&e.questionAnswer!==void 0||e.type===`user_message`&&e.messageId.startsWith(`async-answer:`)))return null;let i=new Map;for(let[t,r]of n.visibleTurnItems.entries()){let n=e.visibleTurnItems[t];if(n!==r){if(!ii(r,n))return null;i.set(r,n)}}if(i.size===0&&!r)return t.entries;let s=t.entries.map(e=>{let t=e.kind===`message`&&e.projectedItem!==void 0?i.get(e.projectedItem):void 0;return e.kind!==`message`||t?.item.type!==`assistant_message`?e:{...e,projectedItem:t,message:{...e.message,text:t.item.text,updatedAt:a(t.item.updatedAt)}}});return r&&s.push(...Qr({...e,visibleTurnItems:e.visibleTurnItems.slice(n.visibleTurnItems.length)})),s}function oi(e,t=null){let n=t===null?null:ai(e,t);if(n!==null)return{input:e,entries:n};let r=Qr(e);if(t===null||!o(e.attachmentUrlById,t.input.attachmentUrlById))return{input:e,entries:r};let i=new Map(t.entries.flatMap(e=>e.kind===`message`?[[e.id,e]]:[]));return{input:e,entries:r.map(e=>{if(e.kind!==`message`||e.projectedItem===void 0)return e;let t=i.get(e.id);return t?.projectedItem===e.projectedItem?t.attempt===e.attempt?t:{...e,message:t.message}:e})}}function si(e){return Object.fromEntries(e.flatMap(e=>e.runId===null?[]:[[e.runId,e.checkpointTurnCount]]))}function ci(e){let t=new Map;for(let n of e.checkpoints)n.status===`ready`&&t.set(n.runId,n);let n=new Map;for(let r of e.timelineEntries){if(r.kind!==`message`||r.message.role!==`user`||r.message.inputIntent!==`turn_start`&&r.message.inputIntent!==`queued_turn`||r.message.runId===null)continue;let e=t.get(r.message.runId);e!==void 0&&n.set(r.message.id,Math.max(0,e.checkpointTurnCount-1))}return n}function li(e){return e===null?`disconnected`:e.status===`preparing`||e.status===`starting`||e.status===`queued`?`connecting`:e.status===`running`||e.status===`waiting`?`running`:`ready`}function ui(e,t){return e&&(li(t)===`running`||Cr(t))}export{sn as $,yr as A,ir as B,Mr as C,hr as D,_r as E,or as F,Rn as G,Qn as H,sr as I,Zn as J,Xn as K,tr as L,kr as M,Tr as N,mr as O,Or as P,vn as Q,$n as R,Nr as S,b as St,gr as T,Pn as U,Ln as V,Gn as W,Wn as X,Hn as Y,ln as Z,ti as _,se as _t,zr as a,wt as at,Ir as b,Ce as bt,ci as c,St as ct,Wr as d,je as dt,fn as et,si as f,ke as ft,Xr as g,Ue as gt,ii as h,Ke as ht,ui as i,yt as it,xr as j,Sr as k,oi as l,j as lt,ri as m,We as mt,Vr as n,pn as nt,Br as o,bt as ot,Lr as p,Ge as pt,Y as q,Rr as r,gt as rt,li as s,Ct as st,ni as t,kn as tt,Ur as u,O as ut,ei as v,pe as vt,pr as w,Pr as x,Se as xt,qr as y,ue as yt,ar as z};
|
|
26
|
-
//# sourceMappingURL=session-logic-BLOBsHEA.js.map
|