dorkos 0.125.2 → 0.125.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +359 -223
- package/dist/browser/native/package-manifest.json +1 -1
- package/dist/browser/source-manifest.json +1 -1
- package/dist/client/assets/{AboutPage-BqGlH1pd.js → AboutPage-CTG5VvGg.js} +1 -1
- package/dist/client/assets/{ActivityErrorState-C4hqCedX.js → ActivityErrorState-BSuvlEdx.js} +1 -1
- package/dist/client/assets/{ActivityPage-frpyizcK.js → ActivityPage-BoiN89nn.js} +1 -1
- package/dist/client/assets/{ActivityRow-DB9c3g1G.js → ActivityRow-Bj0V45d7.js} +1 -1
- package/dist/client/assets/{AdapterIcon-CEHkdca8.js → AdapterIcon-LFpWySMg.js} +1 -1
- package/dist/client/assets/{AdapterSetupWizard-DLJMkb-u.js → AdapterSetupWizard-D9V6g6ha.js} +1 -1
- package/dist/client/assets/{AgentOptionRow-D-QjHi5k.js → AgentOptionRow-nGR6PdC6.js} +1 -1
- package/dist/client/assets/{AgentPicker-DoGucmqI.js → AgentPicker-BhsmtQgu.js} +1 -1
- package/dist/client/assets/{AgentRequestCard--9GA9ymH.js → AgentRequestCard-DBVuClMO.js} +4 -4
- package/dist/client/assets/{AppearancePage-NHNiZrtY.js → AppearancePage-DoDVD6OA.js} +1 -1
- package/dist/client/assets/{ApplyToOverridesDialog-Clo55n6V.js → ApplyToOverridesDialog-56HrIRuZ.js} +1 -1
- package/dist/client/assets/{AttentionSignalRow-BOpClaCD.js → AttentionSignalRow-x8vRACw-.js} +1 -1
- package/dist/client/assets/{BaseTanStackRouterDevtoolsPanel-B-iktbLX-D9Tm8ual.js → BaseTanStackRouterDevtoolsPanel-B-iktbLX-Bxeb6ihh.js} +1 -1
- package/dist/client/assets/{BindingDialog-DZcTXLE8.js → BindingDialog-D6HqDfnK.js} +1 -1
- package/dist/client/assets/{BlintzCanvas-DzjdPTlx.js → BlintzCanvas-DFsdE-hF.js} +3 -3
- package/dist/client/assets/{CanvasCsvContent-xYUrbFeA.js → CanvasCsvContent-BsRV_kUK.js} +1 -1
- package/dist/client/assets/{CanvasFileContent-D6fTvMea.js → CanvasFileContent-BzGYGFSi.js} +2 -2
- package/dist/client/assets/{CanvasModel3dContent-DEassnBV.js → CanvasModel3dContent-dA90prow.js} +2 -2
- package/dist/client/assets/ChannelComposer-MROo35vI.js +44 -0
- package/dist/client/assets/{ChatAppsOff-C00Nl_w6.js → ChatAppsOff-4xIVwDUJ.js} +1 -1
- package/dist/client/assets/{CodeMirrorDiff-JYxkSqFi.js → CodeMirrorDiff-Cexj7RYA.js} +1 -1
- package/dist/client/assets/{CodeMirrorEditor-CVXZ9B5S.js → CodeMirrorEditor-D1-q0hSM.js} +1 -1
- package/dist/client/assets/{CommitmentList-CcCSwcZ8.js → CommitmentList-Bn7E15MO.js} +1 -1
- package/dist/client/assets/{CommitmentsPage-BrDbzpyR.js → CommitmentsPage-Ch-y0wr0.js} +1 -1
- package/dist/client/assets/{ComputerResourceView-BlLvMt1I.js → ComputerResourceView-Bbqh7e8R.js} +1 -1
- package/dist/client/assets/{ComputerViewer-B8SWICbj.js → ComputerViewer-XqZtg4O4.js} +1 -1
- package/dist/client/assets/{ConnectionAccessLists-Bsb-t24W.js → ConnectionAccessLists-D324Hahi.js} +1 -1
- package/dist/client/assets/{ConnectionsPage-RAhWxuWU.js → ConnectionsPage-5nIQrmtW.js} +1 -1
- package/dist/client/assets/{ConventionPage-CNij_BXA.js → ConventionPage-PFy9ASYy.js} +1 -1
- package/dist/client/assets/{ExtensionPageRoute-BsGqTcyI.js → ExtensionPageRoute-ClLEO5sJ.js} +1 -1
- package/dist/client/assets/{FloatingTanStackRouterDevtools-CqogiFob-eQVA1bL6.js → FloatingTanStackRouterDevtools-CqogiFob-D007PSSL.js} +1 -1
- package/dist/client/assets/HandlePage-DW4b2avU.js +1 -0
- package/dist/client/assets/{HeartbeatPage-D0tKoR6G.js → HeartbeatPage-IqTdsHR6.js} +1 -1
- package/dist/client/assets/{KeyEntry-CSmznLcG.js → KeyEntry-ZYnZcVmM.js} +1 -1
- package/dist/client/assets/{LexicalField-gYKPjFfN.js → LexicalField-PdcZjVov.js} +1 -1
- package/dist/client/assets/{ManagesPage-BF6MFrsv.js → ManagesPage-doVOC8Dk.js} +1 -1
- package/dist/client/assets/{Marketplace-BWDlXgwH.js → Marketplace-B9X8IIWI.js} +2 -2
- package/dist/client/assets/{MarketplaceSourcesView-BhKzgkiO.js → MarketplaceSourcesView-BZCnUvqP.js} +1 -1
- package/dist/client/assets/{McpAppFrame-BotrzoHd.js → McpAppFrame-BXdeDoQB.js} +1 -1
- package/dist/client/assets/{McpSigninBody-CdeX_lYs.js → McpSigninBody-CI-gwQuU.js} +1 -1
- package/dist/client/assets/{Model3dViewer-KHktOpbD.js → Model3dViewer-ws_p2e-Q.js} +1 -1
- package/dist/client/assets/NamePage-Cv95tb4E.js +1 -0
- package/dist/client/assets/{NewDirectMessageMenu-CuvKJEDY.js → NewDirectMessageMenu-PuW-lVGF.js} +1 -1
- package/dist/client/assets/{NotificationsPage-DWcgfZJD.js → NotificationsPage-D_qHMJYR.js} +1 -1
- package/dist/client/assets/{OpenMeshSwitch-DdJ7g4yD.js → OpenMeshSwitch-DiuAcyMj.js} +1 -1
- package/dist/client/assets/{OperatorIdentityForm-7FUOEWw_.js → OperatorIdentityForm-DBbsUGPX.js} +1 -1
- package/dist/client/assets/{PermissionHistory-CgQhZrvg.js → PermissionHistory-DNBswqms.js} +1 -1
- package/dist/client/assets/{PermissionsPage-CK34y1VF.js → PermissionsPage-D6cAIUTe.js} +1 -1
- package/dist/client/assets/{PersonalityPopover-3BA36sB0.js → PersonalityPopover-d_PR1nuF.js} +1 -1
- package/dist/client/assets/PhotoPage-D8f25EFY.js +1 -0
- package/dist/client/assets/{PreviewRefusedNotice-CnqAE9sr.js → PreviewRefusedNotice-p-KIYJVf.js} +1 -1
- package/dist/client/assets/{ProfileFields-CIbISW83.js → ProfileFields-D_e9XQav.js} +1 -1
- package/dist/client/assets/{ProfilePanelContainer-DPDHtTbI.js → ProfilePanelContainer-DxSkglaS.js} +1 -1
- package/dist/client/assets/{ProfileRolePicker-83GFtm2P.js → ProfileRolePicker-kNJMfzUF.js} +1 -1
- package/dist/client/assets/{PromptSuggestionChips-B9chKG4w.js → PromptSuggestionChips-Dpie7Ut6.js} +1 -1
- package/dist/client/assets/{ReportsToPopover-DUv03JZP.js → ReportsToPopover-kZWnpINs.js} +1 -1
- package/dist/client/assets/{RoomSurface-Bq6Slne3.js → RoomSurface-DyubmENi.js} +1 -1
- package/dist/client/assets/{RoomsPage-BKxzz-nN.js → RoomsPage-B88d-F2r.js} +1 -1
- package/dist/client/assets/{RunsOnPopover-BIdmMhs9.js → RunsOnPopover-C51USCpv.js} +1 -1
- package/dist/client/assets/RuntimeConnectFlow-DJMtgkZF.js +1 -0
- package/dist/client/assets/{RuntimeSetupDialog-Er-lzjmK.js → RuntimeSetupDialog-DQss2qqJ.js} +1 -1
- package/dist/client/assets/SeenDevices-DQnrqn19.js +19 -0
- package/dist/client/assets/{SessionsPage-CGic5VaN.js → SessionsPage-BxT6HETG.js} +1 -1
- package/dist/client/assets/SettingsDialog-BriAKBHz.js +12 -0
- package/dist/client/assets/{SkillsPage-VRYwez5T.js → SkillsPage-QfxMaHeF.js} +1 -1
- package/dist/client/assets/{TaskDialogWrapper-C9LMV8oe.js → TaskDialogWrapper-D54Nqlkr.js} +1 -1
- package/dist/client/assets/{TasksEmptyState-CagC0LAa.js → TasksEmptyState-rCcan38Y.js} +1 -1
- package/dist/client/assets/{TasksPage-3gkHB1Pv.js → TasksPage-rIqxyB15.js} +1 -1
- package/dist/client/assets/{TeamComputerEntry-BD89Y5e6.js → TeamComputerEntry-BtSsE94x.js} +1 -1
- package/dist/client/assets/{ToolsPage-Ds6LwY79.js → ToolsPage-CfM2Cdtm.js} +1 -1
- package/dist/client/assets/{TopologyGraph-CiZ2ACcQ.js → TopologyGraph-BMvLKLwd.js} +2 -2
- package/dist/client/assets/{TourHost-BISNaEzZ.js → TourHost-XxcgkZcj.js} +1 -1
- package/dist/client/assets/{UnlinkDialog-DTuXHNsi.js → UnlinkDialog-D1tIChdU.js} +1 -1
- package/dist/client/assets/{UnreadDivider-l_VZ7ECn.js → UnreadDivider-mAlJ1Ci7.js} +1 -1
- package/dist/client/assets/{WidgetErrorCard-I8WiJv2g.js → WidgetErrorCard-DQWpqcbG.js} +2 -2
- package/dist/client/assets/{WorkView-_wehEEl-.js → WorkView-D1V2vzFd.js} +3 -3
- package/dist/client/assets/{_shell-BLcPeb8K.js → _shell-C5LhHVEU.js} +22 -22
- package/dist/client/assets/{_shell._home-CcRH-M-A.js → _shell._home-BhaXi3EI.js} +1 -1
- package/dist/client/assets/{_shell._home.activity-cR24Vr9Q.js → _shell._home.activity-Bd8jIlgC.js} +1 -1
- package/dist/client/assets/{_shell._home.index-agU2ItcI.js → _shell._home.index-zoh1Ij4R.js} +2 -2
- package/dist/client/assets/{_shell._home.tasks-BDR9JTj3.js → _shell._home.tasks-CnfbD4z-.js} +1 -1
- package/dist/client/assets/{_shell._home.workspaces-B4nlcACK.js → _shell._home.workspaces-Cew8PET2.js} +1 -1
- package/dist/client/assets/_shell.channels-efUOy5uH.js +10 -0
- package/dist/client/assets/{_shell.connections-CWQYcH58.js → _shell.connections-DS8BI_M6.js} +1 -1
- package/dist/client/assets/{_shell.feedback-requests-BkgHtyZr.js → _shell.feedback-requests-C9nwY8FH.js} +1 -1
- package/dist/client/assets/_shell.marketplace-BxOR_qkR.js +1 -0
- package/dist/client/assets/_shell.marketplace_.sources-BdVMq5Gt.js +1 -0
- package/dist/client/assets/_shell.session-DxIjWGPk.js +1 -0
- package/dist/client/assets/{_shell.team-CTIVEpZQ.js → _shell.team-DejtvgcD.js} +3 -3
- package/dist/client/assets/{_shell.threads-ClWYrnld.js → _shell.threads-BiIjml5t.js} +1 -1
- package/dist/client/assets/_shell.x._extensionId-VrXvDnpj.js +1 -0
- package/dist/client/assets/_shell.x._extensionId_._-VrXvDnpj.js +1 -0
- package/dist/client/assets/{abnfDiagram-WEYOIA3C-0-Mx5lSG.js → abnfDiagram-WEYOIA3C-CAQusbaN.js} +1 -1
- package/dist/client/assets/{access-copy-Cj31J6PU.js → access-copy-DzgVmhna.js} +1 -1
- package/dist/client/assets/{arc-DVmpcNHP.js → arc-Dx6GrexJ.js} +1 -1
- package/dist/client/assets/{architectureDiagram-ZHVYKT53-BZhMXbuC.js → architectureDiagram-ZHVYKT53-wFr3hleP.js} +1 -1
- package/dist/client/assets/{banner-Ctq7kvQ0.js → banner-C0yzCrO7.js} +1 -1
- package/dist/client/assets/{blockDiagram-RJAE7QA3-Ctmof3-7.js → blockDiagram-RJAE7QA3-CnuvSqM0.js} +1 -1
- package/dist/client/assets/{c4Diagram-XDPPPE54-BPglmQhG.js → c4Diagram-XDPPPE54-DzLijAHt.js} +1 -1
- package/dist/client/assets/{card-DI7YtQh3.js → card-ZF4yWM1Y.js} +1 -1
- package/dist/client/assets/channel-BhigWC_Q.js +1 -0
- package/dist/client/assets/{chunk-2E7WHVMD-DIK6CHka.js → chunk-2E7WHVMD-SN1xBBT1.js} +1 -1
- package/dist/client/assets/{chunk-2Q5K7J3B-C3uATYd9.js → chunk-2Q5K7J3B-DbW-InNL.js} +1 -1
- package/dist/client/assets/{chunk-4EMNKR2T-Dl3iYXVl.js → chunk-4EMNKR2T-DxMZsEVE.js} +1 -1
- package/dist/client/assets/{chunk-55XCU76K-BJF-Hcs9.js → chunk-55XCU76K-9dknyxgR.js} +1 -1
- package/dist/client/assets/{chunk-5VM5RSS4-Cju3BnqQ.js → chunk-5VM5RSS4-CeL_dp1K.js} +1 -1
- package/dist/client/assets/{chunk-JWPE2WC7-v1omZzgE.js → chunk-JWPE2WC7-H-uQEL4m.js} +1 -1
- package/dist/client/assets/{chunk-VQ5W62QI-2HqA3jPL.js → chunk-VQ5W62QI-YZCtp46Q.js} +1 -1
- package/dist/client/assets/{chunk-XXDRQBXY-RDXwFs9Z.js → chunk-XXDRQBXY-CTsuviQ9.js} +1 -1
- package/dist/client/assets/{chunk-ZCHMQSOR-DhQsY-OT.js → chunk-ZCHMQSOR-Dymmj4ca.js} +2 -2
- package/dist/client/assets/{classDiagram-v2-4MYWR3UA-DC5N-GDk.js → classDiagram-v2-4MYWR3UA-AZrXuO6n.js} +1 -1
- package/dist/client/assets/{command-DpK0GpDM.js → command-D2uvj-5S.js} +1 -1
- package/dist/client/assets/{cose-bilkent-JH36ORCC-BriFsb6c.js → cose-bilkent-JH36ORCC-DH6uyH8n.js} +1 -1
- package/dist/client/assets/{cpu-DzCUBK-1.js → cpu-CxkuIIZ9.js} +1 -1
- package/dist/client/assets/{cynefin-EF2NZ3EQ-cj34OpiI.js → cynefin-EF2NZ3EQ-CPF1WTGP.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-WF24UDRP-DvAggKpl.js → cynefinDiagram-WF24UDRP-BvgLB9D2.js} +1 -1
- package/dist/client/assets/{dagre-NK4GIZVX-BskSpt7C.js → dagre-NK4GIZVX-Dbgki4TG.js} +1 -1
- package/dist/client/assets/{diagram-CBK3MWTC-C6BZljcO.js → diagram-CBK3MWTC-C84DYVUU.js} +1 -1
- package/dist/client/assets/{diagram-I5XIIV2D--4FPRmBZ.js → diagram-I5XIIV2D-DKFohwHa.js} +1 -1
- package/dist/client/assets/{diagram-ODIL2UCW-kZxp81Fr.js → diagram-ODIL2UCW-C80JpCDz.js} +1 -1
- package/dist/client/assets/{diagram-PFBEJUXE-BSXBAffS.js → diagram-PFBEJUXE-I7bZPRJw.js} +1 -1
- package/dist/client/assets/{diagram-RJA3I4VV-DLDPF6FG.js → diagram-RJA3I4VV-Gqdnf6A3.js} +1 -1
- package/dist/client/assets/{diagram-TYUNFSNR-CoU2knZy.js → diagram-TYUNFSNR-CCzmXB0d.js} +1 -1
- package/dist/client/assets/{ebnfDiagram-V4P3TTPT-C77T1UPB.js → ebnfDiagram-V4P3TTPT-DWKMGbp5.js} +1 -1
- package/dist/client/assets/{elk-QONTBCTQ-UFXrlbAn.js → elk-QONTBCTQ-BH9-VsJv.js} +1 -1
- package/dist/client/assets/{empty-state-aNwJA6H8.js → empty-state-CQVHyP7G.js} +1 -1
- package/dist/client/assets/{erDiagram-KYQIGQAA-CyLB8fKu.js → erDiagram-KYQIGQAA-Dw7o0PKQ.js} +1 -1
- package/dist/client/assets/{execution-config-D7JzMYC2.js → execution-config-B0Ip8o1B.js} +1 -1
- package/dist/client/assets/{file-bSD5jgk_.js → file-aWVIKIhu.js} +1 -1
- package/dist/client/assets/{file-exclamation-point-BcCIL-rE.js → file-exclamation-point-VqrEIkK2.js} +1 -1
- package/dist/client/assets/{file-text-DTvj1wzM.js → file-text-BcDT6eqO.js} +1 -1
- package/dist/client/assets/{find-latest-widget-fence-D01ENK2h.js → find-latest-widget-fence-BBx2mbzG.js} +1 -1
- package/dist/client/assets/{flowDiagram-IUGLLWBU-qmnUF-Ak.js → flowDiagram-IUGLLWBU-DUap_2VM.js} +1 -1
- package/dist/client/assets/{form-C_yPntkz.js → form-Bq-P02ub.js} +1 -1
- package/dist/client/assets/{format-cron-DUPWkOrW.js → format-cron-CoTCXmQp.js} +1 -1
- package/dist/client/assets/{ganttDiagram-R7GPNTJY-CBzoqGuU.js → ganttDiagram-R7GPNTJY-GAxFxszj.js} +1 -1
- package/dist/client/assets/{git-branch-ClXAt1_G.js → git-branch-Cvc-Sr6q.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-PDYL7XHY-DMh_n1S2.js → gitGraphDiagram-PDYL7XHY-CNXDdCW9.js} +1 -1
- package/dist/client/assets/{graph-BgkuepqW.js → graph-CtCYTWZj.js} +1 -1
- package/dist/client/assets/{heart-BrjEmIsl.js → heart-yvX6jsem.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-DlHNVEaV.js → highlighted-body-KPVGNVTW-B6iFwydl.js} +1 -1
- package/dist/client/assets/{image-lightbox-BtzkRztd.js → image-lightbox-COo7DKXH.js} +1 -1
- package/dist/client/assets/{image-off-4yaoLh32.js → image-off-BPRcQBvJ.js} +1 -1
- package/dist/client/assets/{index-f1W4Bd4W.js → index-7EayMDlv.js} +1 -1
- package/dist/client/assets/{index-WkQdt6Zo.js → index-B1UgkD5d.js} +1 -1
- package/dist/client/assets/{index-DB2t3GUm.js → index-B36G1Wt7.js} +3 -3
- package/dist/client/assets/{index-WxG6nG96.js → index-B7M2ny5y.js} +1 -1
- package/dist/client/assets/{index-DQ9ppIWv.js → index-B8YnzTmr.js} +1 -1
- package/dist/client/assets/{index-B-X82FND.js → index-BI7mYC3q.js} +1 -1
- package/dist/client/assets/{index-C_xSr5lb.js → index-BIoO-kFF.js} +1 -1
- package/dist/client/assets/{index-BUkUamu4.js → index-BJKRrppi.js} +1 -1
- package/dist/client/assets/{index-CNV11SW6.js → index-BSGg8ud2.js} +1 -1
- package/dist/client/assets/index-BSNB2iOV.js +1053 -0
- package/dist/client/assets/{index-A_qzw4D8.js → index-Bcv5Znqx.js} +1 -1
- package/dist/client/assets/{index-DgxXSEmR.js → index-BsmQ2VMC.js} +1 -1
- package/dist/client/assets/{index-CJhmUsIv.js → index-BzlepYwD.js} +1 -1
- package/dist/client/assets/{index-qdygDruh.js → index-CCo77KAN.js} +1 -1
- package/dist/client/assets/{index-DXalAOXT.js → index-CIIAns2d.js} +1 -1
- package/dist/client/assets/{index-Dj4I8KcL.js → index-CNlIRtiQ.js} +3 -3
- package/dist/client/assets/{index-Cefoks17.js → index-COenrxg6.js} +1 -1
- package/dist/client/assets/{index-CrQWuUpr.js → index-CXCoNv1T.js} +1 -1
- package/dist/client/assets/{index-CSyZb1X9.js → index-CYPbNdgY.js} +1 -1
- package/dist/client/assets/{index-CyfSPJ1D.js → index-CYl4FhO7.js} +1 -1
- package/dist/client/assets/{index-DGdKO24t.js → index-CZA2uFZQ.js} +1 -1
- package/dist/client/assets/index-CaOL5rt9.js +17 -0
- package/dist/client/assets/{index-CThGpHO2.js → index-Cbu89CsC.js} +1 -1
- package/dist/client/assets/{index-C_H6ZIel.js → index-Cdzlu1-P.js} +1 -1
- package/dist/client/assets/{index-DX546SK5.js → index-D1e3aPAe.js} +2 -2
- package/dist/client/assets/{index-C0LPB1iH.js → index-D9pvn-mm.js} +1 -1
- package/dist/client/assets/{index-CNiC7KUz.js → index-DRao3lV4.js} +1 -1
- package/dist/client/assets/{index-BqHUbNdh.js → index-DefXQdQA.js} +1 -1
- package/dist/client/assets/{index-DrnHzrt4.js → index-Dqq2lV9x.js} +1 -1
- package/dist/client/assets/{index-CMLDdOez.js → index-Drg391kA.js} +1 -1
- package/dist/client/assets/index-DtlBeLQB.css +1 -0
- package/dist/client/assets/{index-Bgg4cW4L.js → index-DuEmhl4K.js} +1 -1
- package/dist/client/assets/{index-BXtagrMY.js → index-FCztjyrm.js} +1 -1
- package/dist/client/assets/{index-Ckut3u-d.js → index-GEDh_fwN.js} +1 -1
- package/dist/client/assets/{index-BtG4vr8c.js → index-KLtoKDvx.js} +1 -1
- package/dist/client/assets/{index-FhmSwVD0.js → index-N3JAoXse.js} +1 -1
- package/dist/client/assets/{index-t-NyR7HD.js → index-NbnKjhyZ.js} +1 -1
- package/dist/client/assets/index-ZRwRzKll.js +1 -0
- package/dist/client/assets/index-bgXdb4vP.js +1 -0
- package/dist/client/assets/{index-Adjbt_HC.js → index-io81RE8o.js} +1 -1
- package/dist/client/assets/{index-D0yajRDv.js → index-p7yYM6Iz.js} +1 -1
- package/dist/client/assets/{index-6yT0Qr0s.js → index-sTYFlBEJ.js} +1 -1
- package/dist/client/assets/{index-DZ1BC5JW.js → index-thNMHUmT.js} +1 -1
- package/dist/client/assets/{index-BeVLPg9t.js → index-vWi6pOlY.js} +1 -1
- package/dist/client/assets/{index-DFWrO42z.js → index-xKvoBO92.js} +1 -1
- package/dist/client/assets/{index.esm-Bb3LMu5X.js → index.esm-BYS3OpKb.js} +1 -1
- package/dist/client/assets/{infoDiagram-MVDRKAX5-DbU4eDjZ.js → infoDiagram-MVDRKAX5-BB5v9AOj.js} +1 -1
- package/dist/client/assets/{inline-code-DwFNff3_.js → inline-code-Df1J1tQV.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-HPEHV2GE-DmHmF-HT.js → ishikawaDiagram-HPEHV2GE-D8Zw0Wka.js} +1 -1
- package/dist/client/assets/{journeyDiagram-BOSHW7O7-DsjOeP3J.js → journeyDiagram-BOSHW7O7-CIaVEmcq.js} +1 -1
- package/dist/client/assets/{kanban-definition-FNSA4HC5-ByQ1WGy2.js → kanban-definition-FNSA4HC5-D0jxBQB1.js} +1 -1
- package/dist/client/assets/{layers-DFZUUHM5.js → layers-Byywl2sz.js} +1 -1
- package/dist/client/assets/{lightbulb-Bbgsejp1.js → lightbulb-Cu6PlV7n.js} +1 -1
- package/dist/client/assets/{link-2-xieOmwOK.js → link-2-D2LX2bAn.js} +1 -1
- package/dist/client/assets/{list-runtime-types-B0CSonAi.js → list-runtime-types-C4Ik3n5A.js} +1 -1
- package/dist/client/assets/{markdown-content-ysBIqFAg.js → markdown-content-BbH7L0YO.js} +1 -1
- package/dist/client/assets/{mention-pill-Daeu1X92.js → mention-pill-DxRP9Bkp.js} +1 -1
- package/dist/client/assets/{mermaid.core-B1mQMOXd.js → mermaid.core-D9Vc69mt.js} +4 -4
- package/dist/client/assets/{message-square-off-D9hm8WNH.js → message-square-off-BP01X_ck.js} +1 -1
- package/dist/client/assets/{mindmap-definition-6OY57UG3-CoP-DGm1.js → mindmap-definition-6OY57UG3-DNd2V0AH.js} +1 -1
- package/dist/client/assets/{more-details-DHCpYDi7.js → more-details-7psgoF8x.js} +1 -1
- package/dist/client/assets/{owner-notice-Crxco7HN.js → owner-notice-83ejBJ3g.js} +1 -1
- package/dist/client/assets/{package-CD8xq7hk.js → package-DSJyi_sq.js} +1 -1
- package/dist/client/assets/{page-container-B9sDc2wq.js → page-container-D7q7ISl1.js} +1 -1
- package/dist/client/assets/{pane-resize-handle-DOchpdJ6.js → pane-resize-handle-BnQ8IKj6.js} +1 -1
- package/dist/client/assets/{paperclip-CzhXW5qi.js → paperclip-CeOJ8Nwp.js} +1 -1
- package/dist/client/assets/{path-input-Z2p922fj.js → path-input-BToXn1c2.js} +1 -1
- package/dist/client/assets/{pegDiagram-ECIUJNBX-TEsMAO1a.js → pegDiagram-ECIUJNBX-sCkH1RIT.js} +1 -1
- package/dist/client/assets/{pieDiagram-GNMPY74T-CMIDIiMP.js → pieDiagram-GNMPY74T-B4V9xf2z.js} +1 -1
- package/dist/client/assets/{plug-BEp9Ly3k.js → plug-CMcqk2p3.js} +1 -1
- package/dist/client/assets/{primer-trigger-4qUY83SX.js → primer-trigger-DtyY4fpx.js} +1 -1
- package/dist/client/assets/{profile-errors-CezsKqhA.js → profile-errors-DSKechEz.js} +1 -1
- package/dist/client/assets/{progress-eQl1UvNz.js → progress-8CDPI0xL.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-D57K4MC3-DXjohzOz.js → quadrantDiagram-D57K4MC3-DkcmqAD-.js} +1 -1
- package/dist/client/assets/{query-error-state-COuKRlU0.js → query-error-state-jrioxcrf.js} +1 -1
- package/dist/client/assets/{radio-Cdnkcg1w.js → radio-D3k0l1vj.js} +1 -1
- package/dist/client/assets/{railroadDiagram-Y72NRBL7-BojgH6Hw.js → railroadDiagram-Y72NRBL7-T9Qbdks1.js} +1 -1
- package/dist/client/assets/registry-B0s0gwF4.js +1 -0
- package/dist/client/assets/{relay-trace-schemas-XcVQg5Fa.js → relay-trace-schemas-epyobQGg.js} +1 -1
- package/dist/client/assets/{repeat-wB31CP7I.js → repeat-Cbe4MVvF.js} +1 -1
- package/dist/client/assets/{requirementDiagram-EQYSW5RA-Gojbrcvg.js → requirementDiagram-EQYSW5RA-BKrsOvZR.js} +1 -1
- package/dist/client/assets/{room-files-source-DXKpm43a.js → room-files-source-wUgOb12j.js} +1 -1
- package/dist/client/assets/{rotate-ccw-clock-LSKKAcnR.js → rotate-ccw-clock-CI-xhvb_.js} +1 -1
- package/dist/client/assets/{rotate-cw-scTEKxeZ.js → rotate-cw-BGDIfrKN.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-SY24JHO5-QS71aycL.js → sankeyDiagram-SY24JHO5-SVj2Csf7.js} +1 -1
- package/dist/client/assets/{scroll-area-BNFXgTKM.js → scroll-area-D3x48cAw.js} +1 -1
- package/dist/client/assets/{search-x-Cjf0n9z7.js → search-x-Dz-ryi0D.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-BLEHNHQU-Beg7mj69.js → sequenceDiagram-BLEHNHQU-CSliXD3t.js} +1 -1
- package/dist/client/assets/{shield-x-Dr4BZfo_.js → shield-x-FVhBth4G.js} +1 -1
- package/dist/client/assets/{signed-in-L9MLqTuc.js → signed-in-BQcV7AMx.js} +1 -1
- package/dist/client/assets/{sizeCapture-INFHLROL-3Oo1KjRp.js → sizeCapture-INFHLROL-4lP-N234.js} +1 -1
- package/dist/client/assets/{soul-file-CxpOawh5.js → soul-file-CS-EETV8.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-A6IESKWZ-DFYIDQ6C.js → stateDiagram-v2-A6IESKWZ-Cij5yf9S.js} +1 -1
- package/dist/client/assets/{swimlanes-B3ENRKFQ-BUgKOOrv.js → swimlanes-B3ENRKFQ-iSf_hOim.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-C8oY0fep.js +8 -0
- package/dist/client/assets/{table-B0LsKsEv.js → table-Cg_1lfh0.js} +1 -1
- package/dist/client/assets/{timeline-definition-JXYKGLGB-BsPZ0P_8.js → timeline-definition-JXYKGLGB-DVZj2yY_.js} +1 -1
- package/dist/client/assets/{trust-posture-Cm7OhCEx.js → trust-posture-CkEXRlxW.js} +1 -1
- package/dist/client/assets/{unplug-DLA7Ib_s.js → unplug-CASvw-Yn.js} +1 -1
- package/dist/client/assets/{unverified-catalog-notice-CxBO_pta.js → unverified-catalog-notice-CMDo7sp5.js} +1 -1
- package/dist/client/assets/{use-adapter-catalog-C333Z2Q6.js → use-adapter-catalog-BVeUe0tR.js} +1 -1
- package/dist/client/assets/{use-bindings-Bu4yLLR5.js → use-bindings-Clux6PJ0.js} +1 -1
- package/dist/client/assets/{use-composer-prefs-BnjCX9pM.js → use-composer-prefs-D0poHQqk.js} +1 -1
- package/dist/client/assets/{use-connector-management-Bo6wOJQS.js → use-connector-management-CQQGCFaL.js} +1 -1
- package/dist/client/assets/{use-deep-link-scroll-D867V6rs.js → use-deep-link-scroll-BdGMaupf.js} +1 -1
- package/dist/client/assets/{use-delete-binding-DKObM-zT.js → use-delete-binding-CSpocSwM.js} +1 -1
- package/dist/client/assets/{use-dev-links-C0Zc30aj.js → use-dev-links-c6K0en5G.js} +1 -1
- package/dist/client/assets/{use-direct-message-panel-DNWtQq4B.js → use-direct-message-panel-sq9_ehHu.js} +1 -1
- package/dist/client/assets/{use-external-adapter-catalog-Bv5rDkX4.js → use-external-adapter-catalog-C3T1MGxz.js} +1 -1
- package/dist/client/assets/{use-full-activity-feed-CFUj0qCS.js → use-full-activity-feed-Bmmagy2q.js} +1 -1
- package/dist/client/assets/use-is-below-desktop-CGj5vT8N.js +1 -0
- package/dist/client/assets/{use-local-browser-BeZjn0gA.js → use-local-browser-Di54G1yg.js} +1 -1
- package/dist/client/assets/{use-mesh-topology-DurMpvjU.js → use-mesh-topology-C_bdAJfy.js} +1 -1
- package/dist/client/assets/{use-mounted-ref-CBSuPNPv.js → use-mounted-ref-C_ChQ0xs.js} +1 -1
- package/dist/client/assets/{use-notification-prefs-b8iKvzB4.js → use-notification-prefs-BjGauolP.js} +1 -1
- package/dist/client/assets/{use-panel-tab-placements-BcKEux1G.js → use-panel-tab-placements-Bn-CIS6M.js} +1 -1
- package/dist/client/assets/use-pending-read-CIp204qI.js +1 -0
- package/dist/client/assets/{use-personality-commit-u3kQ6h3H.js → use-personality-commit-WeCQulwl.js} +1 -1
- package/dist/client/assets/{use-promo-activation-C8_cGmEW.js → use-promo-activation-C9I5YwBo.js} +1 -1
- package/dist/client/assets/{use-promo-dismissals-B3VuaQCf.js → use-promo-dismissals-BhTNS7LX.js} +1 -1
- package/dist/client/assets/{use-pulse-freshness-CSWQ0TZS.js → use-pulse-freshness-DDo5a3nh.js} +1 -1
- package/dist/client/assets/{use-relay-config-BA6c0FMB.js → use-relay-config-Bfjxr2lE.js} +1 -1
- package/dist/client/assets/{use-room-follow-claim-BV-MtDQ5.js → use-room-follow-claim-D_HTjK2r.js} +1 -1
- package/dist/client/assets/{use-room-sessions-W62Zl72O.js → use-room-sessions-UwyzNxeo.js} +1 -1
- package/dist/client/assets/{use-roving-tab-list-CMITzUHu.js → use-roving-tab-list-CXAJxnx0.js} +1 -1
- package/dist/client/assets/{use-session-canvas-u63m2mYH.js → use-session-canvas-CTDXU27z.js} +3 -3
- package/dist/client/assets/{use-status-budget-CbmPFvpQ.js → use-status-budget-CFS9gmSZ.js} +4 -4
- package/dist/client/assets/{use-unclaimed-chats-D7SEUfiO.js → use-unclaimed-chats-BlUFVbnm.js} +1 -1
- package/dist/client/assets/use-update-config-BwjEWlgj.js +1 -0
- package/dist/client/assets/{useMutationState-rOg4bnKv.js → useMutationState-CUuSnqrc.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-WPOLBNNX-C-w0e-nv.js → usecaseDiagram-WPOLBNNX-BTdq_YOC.js} +1 -1
- package/dist/client/assets/{vennDiagram-Q3Y3IDCW-BNm2WXT5.js → vennDiagram-Q3Y3IDCW-BLQwiECh.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-IVAIDKWA-BFyFLiir.js → wardleyDiagram-IVAIDKWA-Cp8QrBQm.js} +1 -1
- package/dist/client/assets/{xychartDiagram-4URNHDU4-BKxZlnEx.js → xychartDiagram-4URNHDU4-CrrAKTa0.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/extension-child.cjs +1701 -435
- package/dist/server/index.js +22346 -20856
- package/dist/server/index.js.map +2 -2
- package/package.json +5 -5
- package/dist/client/assets/ChannelComposer-CutghXOq.js +0 -44
- package/dist/client/assets/HandlePage-XG5mP_e9.js +0 -1
- package/dist/client/assets/NamePage-Cdd9-mZg.js +0 -1
- package/dist/client/assets/PhotoPage-DFic-gDH.js +0 -1
- package/dist/client/assets/RuntimeConnectFlow-IaRVgmqH.js +0 -1
- package/dist/client/assets/SeenDevices-9quCcdUW.js +0 -19
- package/dist/client/assets/SettingsDialog-BZ58IaK1.js +0 -12
- package/dist/client/assets/_shell.channels-B7lTxkqM.js +0 -10
- package/dist/client/assets/_shell.marketplace-BMqwT9qX.js +0 -1
- package/dist/client/assets/_shell.marketplace_.sources-pXGa7Cqb.js +0 -1
- package/dist/client/assets/_shell.session-CmoE1W38.js +0 -1
- package/dist/client/assets/_shell.x._extensionId-BiXilrSW.js +0 -1
- package/dist/client/assets/_shell.x._extensionId_._-BiXilrSW.js +0 -1
- package/dist/client/assets/channel-A2WD4smw.js +0 -1
- package/dist/client/assets/index-BMCDckcY.js +0 -17
- package/dist/client/assets/index-BOuCpkRb.js +0 -1
- package/dist/client/assets/index-BVq1p60h.js +0 -1
- package/dist/client/assets/index-CjUfPyOM.js +0 -1053
- package/dist/client/assets/index-D2ZFfqZZ.css +0 -1
- package/dist/client/assets/registry-BSucT23N.js +0 -1
- package/dist/client/assets/swimlanesDiagram-AYQRV4AK-Bqjv1MSj.js +0 -8
- package/dist/client/assets/use-is-below-desktop-BUS7OPGv.js +0 -1
- package/dist/client/assets/use-is-hub-CFhvDMHt.js +0 -1
- package/dist/client/assets/use-pending-read-BBBAnUYu.js +0 -1
- package/dist/client/assets/use-update-config-Dfd7KMde.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
2
|
-
var ki=Object.defineProperty;var vi=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var et=(e,t,n)=>vi(e,typeof t!="symbol"?t+"":t,n);import{fo as Ci,iu as ao,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Bcv5Znqx.js","assets/index-BSNB2iOV.js","assets/index-DtlBeLQB.css","assets/index-BsmQ2VMC.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var ki=Object.defineProperty;var vi=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var et=(e,t,n)=>vi(e,typeof t!="symbol"?t+"":t,n);import{fo as Ci,iu as ao,qi as Si,r as c,fl as ji,W as dt,dW as Oe,j as r,ar as H,by as me,ih as rs,a1 as ve,qj as io,q as lt,kf as _i,ch as wi,qk as lo,ql as Ni,qm as Ei,fW as Di,B as fe,a7 as Fe,fe as Ti,G as U,J as tn,X as ct,b9 as bt,qn as _t,qo as co,aY as le,qp as Ai,qq as qn,ie as Fi,as as os,du as Ri,ap as Mi,iW as Oi,qr as Bs,el as zs,a8 as ut,pd as Ii,qs as $i,pk as vt,qt as Qt,a2 as Je,jG as as,a4 as Ct,hI as wt,ek as is,cb as Nt,cT as Pi,cU as Li,cW as Bi,cX as zi,cY as qi,dU as Ui,e as qs,lc as Wi,dB as Hi,x as He,ld as Vi,pf as ls,eg as Gi,qu as Ki,qv as Qi,lq as cs,qw as uo,qx as fo,qy as Xi,qz as Yi,iP as nn,a3 as us,cJ as Et,ej as sn,dS as ds,ei as Ji,qA as Zi,jO as mo,qB as el,ph as tl,h$ as nl,es as sl,aU as Xe,ai as Dt,a9 as fs,qC as rl,iX as ol,qD as al,bc as il,T as Tt,i4 as Ge,i5 as Ke,aj as po,qE as rn,dV as At,k8 as ll,cj as ft,s as Ft,hh as cl,hd as Us,ia as ho,hl as ul,C as ms,dx as dl,dy as fl,qF as ml,l as pl,mN as go,aW as hl,qG as gl,qH as xl,qI as bl,qJ as yl,qK as kl,qL as We,n$ as De,o8 as vl,o0 as on,aQ as Cl,hU as Sl,cs as jl,bL as _l,ji as wl,qM as ot,a0 as ps,dX as Ws,dw as xo,f as bo,qN as Nl,eR as El,aZ as Dl,gB as yo,il as ko,hM as St,jP as vo,dY as Tl,qO as Al,qP as Fl,o as Co,y as an,aV as So,qQ as jo,qR as Rl,nk as xn,qS as Xt,jv as Ml,lh as Ol,be as _o,qT as Il,qU as $l,gi as Pl,gj as Hs,qV as wo,qW as Ll,qX as Bl,qY as No,qZ as Eo,eW as zl,q_ as ql,lX as Ul,fX as Wl,fY as Hl,fZ as Vl,f_ as Gl,f$ as Kl,g0 as Ql,g1 as Xl,g2 as Yl,q$ as hs,r0 as Jl,r1 as Zl,r2 as ec,mn as tc,jp as nc,jq as sc,jr as rc,js as bn,mH as oc,jt as Vs,k7 as ac,bQ as ic,k9 as lc,bS as cc,r3 as Gs,cv as uc,fM as Do,cA as To,cp as dc,cz as fc,ij as mc,cI as Ao,r4 as Fo,cl as Ro,cF as pc,r5 as gs,cG as hc,r6 as gc,aw as xc,cr as bc,r7 as yc,m4 as ae,r8 as kc,r9 as vc,cE as Cc,_ as Sc,m$ as Ks,ra as jc,iM as Qe,rb as yn,dZ as yt,rc as Qs,rd as Xs,re as Ys,ck as kn,rf as rt,eM as kt,rg as _c,cL as Mo,rh as Oo,ri as wc,rj as Nc,rk as Ec,cM as Io,rl as Dc,rm as Tc,rn as $o,ro as tt,rp as Po,rq as Ac,bP as Fc,rr as Rc,rs as Mc,ff as Lo,rt as Js,ru as Oc,bX as Un,j9 as Bo,cP as Ic,rv as $c,gX as Pc,gW as Lc,jb as Bc,cc as zc,cO as qc,c9 as Uc,ak as ln,rw as Wc,rx as Hc,gR as zo,gO as xs,kA as Vc,ry as Gc,rz as Kc,rA as Qc,rB as qo,oc as Xc,ju as Yc,rC as ht,rD as Jc,cK as Zc,ge as eu,rE as tu,fb as nu,rF as su,eb as ru,jH as ou,Y as au}from"./index-BSNB2iOV.js";import{P as iu}from"./PromptSuggestionChips-Dpie7Ut6.js";import{u as lu,a as cu,L as uu,f as du,b as fu,c as mu,B as pu,d as hu}from"./primer-trigger-DtyY4fpx.js";import{C as gu}from"./card-ZF4yWM1Y.js";import{a as xu,u as bu,i as yu}from"./use-notification-prefs-BjGauolP.js";import{e as ku,h as vu,o as Uo,f as Cu,P as Su,g as ju,d as _u,p as wu,j as Nu,b as Eu,G as Du,W as Wo,y as Tu,x as Au,z as Fu,u as Ru,t as Mu,w as Ou,n as Iu,k as $u,s as Pu,M as Lu,i as Bu,S as zu,U as qu,A as Uu,v as Wu,R as Hu,q as Vu}from"./use-status-budget-CFS9gmSZ.js";import{B as Gu}from"./banner-C0yzCrO7.js";import{t as It,f as Yt,d as Ku,N as Ho,l as Qu,u as Xu,C as jt,c as nt,h as Yu,F as Ju}from"./index-CNlIRtiQ.js";import{u as Zu,b as ed}from"./WidgetErrorCard-DQWpqcbG.js";import{u as td,D as nd,U as sd}from"./UnreadDivider-mAlJ1Ci7.js";import{a as rd,c as od}from"./composer-insert-BpyATrmR.js";import{u as ad}from"./use-composer-prefs-D0poHQqk.js";import{A as Wn,M as id}from"./McpAppFrame-BXdeDoQB.js";import{P as ld,W as cd,a as ud,C as dd,b as fd}from"./find-latest-widget-fence-BBx2mbzG.js";import{F as Vo}from"./file-aWVIKIhu.js";import{F as md,i as pd}from"./use-session-canvas-CTDXU27z.js";import{F as hd}from"./file-text-BcDT6eqO.js";import{a as gd,b as xd}from"./markdown-content-BbH7L0YO.js";import{b as Go,e as bd,R as yd,K as kd,a as vd,g as Cd}from"./RuntimeConnectFlow-DJMtgkZF.js";import{S as Sd}from"./shield-x-FVhBth4G.js";import{u as jd,M as _d}from"./McpSigninBody-CI-gwQuU.js";import{a as Ko,u as wd,I as Nd}from"./image-off-BPRcQBvJ.js";import{f as Ed}from"./format-duration-BCr6uzby.js";import{l as Dd}from"./use-connector-management-CQQGCFaL.js";import{A as Td}from"./AgentRequestCard-DBVuClMO.js";function Ad(e,t,n={}){const s=e.get();let o=null,a=s,i;const l=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,u=()=>{o&&(o.stop(),o=null),e.animation=void 0},d=()=>{const g=Zs(e.get()),m=Zs(a);if(g===m){u();return}const h=o?o.getGeneratorVelocity():e.getVelocity();u(),o=new Si({keyframes:[g,m],velocity:h,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:i})},f=()=>{var g;d(),e.animation=o??void 0,(g=e.events.animationStart)==null||g.notify(),o==null||o.then(()=>{var m;e.animation=void 0,(m=e.events.animationComplete)==null||m.notify()})};if(e.attach((g,m)=>{a=g,i=h=>m(vn(h,l)),Ci.postRender(f)},u),ao(t)){let g=n.skipInitialAnimation===!0;const m=t.on("change",x=>{g?(g=!1,e.jump(vn(x,l),!1)):e.set(vn(x,l))}),h=e.on("destroy",m);return()=>{m(),h()}}return u}function vn(e,t){return t?e+t:e}function Zs(e){return typeof e=="number"?e:parseFloat(e)}function Fd(e,t={}){const{isStatic:n}=c.useContext(ji),s=()=>ao(e)?e.get():e;if(n)return Ko(s);const o=wd(s());return c.useInsertionEffect(()=>Ad(o,e,t),[o,JSON.stringify(t)]),o}function Rd(e,t={}){return Fd(e,{type:"spring",...t})}function Md(e){const t=Math.floor(e/1e3);if(t<3600){const o=Math.floor(t/60),a=t%60;return`${o}m ${String(a).padStart(2,"0")}s`}const n=Math.floor(t/3600),s=Math.floor(t%3600/60);return`${n}h ${String(s).padStart(2,"0")}m`}function Qo(e){const[t,n]=c.useState(()=>Date.now()),s=c.useRef(null);if(c.useEffect(()=>{if(e===null){s.current&&(clearInterval(s.current),s.current=null);return}return n(Date.now()),s.current=setInterval(()=>n(Date.now()),1e3),()=>{s.current&&(clearInterval(s.current),s.current=null)}},[e]),e===null)return{formatted:"0m 00s",ms:0};const o=Math.max(0,t-e);return{formatted:Md(o),ms:o}}function Od(e={}){const{timeoutMs:t=3e4,onIdle:n,onReturn:s}=e,o=c.useRef(!1),a=c.useRef(null),i=c.useCallback(()=>{o.current||(o.current=!0,n==null||n())},[n]),l=c.useCallback(()=>{o.current&&(o.current=!1,s==null||s())},[s]),u=c.useCallback(()=>{a.current&&clearTimeout(a.current),a.current=setTimeout(i,t),l()},[t,i,l]);return c.useEffect(()=>{a.current=setTimeout(i,t);const d=["mousemove","keydown","scroll","touchstart"];d.forEach(g=>document.addEventListener(g,u,{passive:!0}));const f=()=>{document.hidden?i():u()};return document.addEventListener("visibilitychange",f),()=>{a.current&&clearTimeout(a.current),d.forEach(g=>document.removeEventListener(g,u)),document.removeEventListener("visibilitychange",f)}},[t,i,u]),{isIdle:o.current}}function Id({activeInteraction:e,onApprove:t,onAlwaysAllow:n,onDeny:s,onToggleOption:o,onNavigateOption:a,onNavigateQuestion:i,onSubmit:l,optionCount:u=0,focusedIndex:d=0}){const f=c.useRef(!1);c.useEffect(()=>{f.current=!1},[e==null?void 0:e.toolCallId]),c.useEffect(()=>{if(!e)return;function g(m){const h=m.target,x=(h.tagName==="TEXTAREA"||h.tagName==="INPUT")&&!h.disabled;if(!f.current&&!(m.metaKey||m.ctrlKey||m.altKey)){if(e.type==="approval"){if(m.key==="Enter"&&x&&h.closest("[data-approval-field]")!==null)return;m.key==="Enter"&&m.shiftKey?(m.preventDefault(),f.current=!0,n==null||n()):m.key==="Enter"?(m.preventDefault(),f.current=!0,t==null||t()):m.key==="Escape"&&(m.preventDefault(),f.current=!0,s==null||s());return}if(e.type==="question"){if(x){if(m.key==="Enter"&&!m.shiftKey){m.preventDefault(),l==null||l();return}if(m.key==="ArrowUp"){m.preventDefault(),a==null||a("up");return}if(m.key==="ArrowDown"){m.preventDefault(),a==null||a("down");return}return}const C=parseInt(m.key,10);if(C>=1&&C<=9){m.preventDefault(),C-1<u&&(o==null||o(C-1));return}switch(m.key){case"ArrowUp":m.preventDefault(),a==null||a("up");break;case"ArrowDown":m.preventDefault(),a==null||a("down");break;case" ":m.preventDefault(),o==null||o(d);break;case"ArrowLeft":case"[":m.preventDefault(),i==null||i("prev");break;case"ArrowRight":case"]":m.preventDefault(),i==null||i("next");break;case"Enter":m.preventDefault(),l==null||l();break}}}}return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[e,t,n,s,o,a,i,l,u,d])}function Xo(){const[e,t]=c.useState(()=>!document.hidden);return c.useEffect(()=>{const n=()=>t(!document.hidden);return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},[]),e}/**
|
|
3
3
|
* @license lucide-react v1.48.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
@@ -37,7 +37,7 @@ var ki=Object.defineProperty;var vi=(e,t,n)=>t in e?ki(e,t,{enumerable:!0,config
|
|
|
37
37
|
`);/\r./.test(o);)o=o.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,function(a,i,l){return l+i.slice(l.length)});return o}function t(o){for(var a=0,i=0;i<o.length;i++)o[a].length<=o[i].length&&(a=i);return a}function n(o){if(!/\r/.test(o))return o;for(var a=o.split("\r"),i=[];a.length>0;){var l=t(a);i.push(a[l]),a=a.slice(l+1)}return i.join("\r")}function s(o){if(!o)return"";if(!/\r/.test(o))return o;if(!/\n/.test(o))return n(o);o=o.replace(/\r+\n/gm,`
|
|
38
38
|
`);var a=o.lastIndexOf(`
|
|
39
39
|
`);return e(o.slice(0,a))+`
|
|
40
|
-
`+n(o.slice(a+1))}return gt.exports=e,gt.exports.escapeCarriageReturn=e,gt.exports.escapeCarriageReturnSafe=s,gt.exports}var Ve={},pr;function hh(){if(pr)return Ve;pr=1;var e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=/[\0-\x1F\x7F-\x9F]/,n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,s=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;return Ve.Any=e,Ve.Cc=t,Ve.Cf=n,Ve.P=s,Ve.S=o,Ve.Z=a,Ve}var An,hr;function gh(){if(hr)return An;hr=1;var e=hh();function t(k){const p={};k=k||{},p.src_Any=e.Any.source,p.src_Cc=e.Cc.source,p.src_Z=e.Z.source,p.src_P=e.P.source,p.src_ZPCc=[p.src_Z,p.src_P,p.src_Cc].join("|"),p.src_ZCc=[p.src_Z,p.src_Cc].join("|");const j="[><|]";return p.src_pseudo_letter=`(?:(?!${j}|${p.src_ZPCc})${p.src_Any})`,p.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",p.src_auth=`(?:(?:(?!${p.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,p.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",p.src_host_terminator=`(?=$|${j}|${p.src_ZPCc})(?!${k["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${p.src_ZPCc}))`,p.src_path=`(?:[/?#](?:(?!${p.src_ZCc}|${j}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${p.src_ZCc}|\\]).)*\\]|\\((?:(?!${p.src_ZCc}|[)]).)*\\)|\\{(?:(?!${p.src_ZCc}|[}]).)*\\}|\\"(?:(?!${p.src_ZCc}|["]).)+\\"|\\'(?:(?!${p.src_ZCc}|[']).)+\\'|\\'(?=${p.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${p.src_ZCc}|[.]|$)|`+(k["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${p.src_ZCc}|$)|;(?!${p.src_ZCc}|$)|\\!+(?!${p.src_ZCc}|[!]|$)|\\?(?!${p.src_ZCc}|[?]|$))+|\\/)?`,p.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',p.src_xn="xn--[a-z0-9\\-]{1,59}",p.src_domain_root="(?:"+p.src_xn+`|${p.src_pseudo_letter}{1,63})`,p.src_domain="(?:"+p.src_xn+`|(?:${p.src_pseudo_letter})|(?:${p.src_pseudo_letter}(?:-|${p.src_pseudo_letter}){0,61}${p.src_pseudo_letter}))`,p.src_host=`(?:(?:(?:(?:${p.src_domain})\\.)*${p.src_domain}))`,p.tpl_host_fuzzy="(?:"+p.src_ip4+`|(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%)))`,p.tpl_host_no_ip_fuzzy=`(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%))`,p.src_host_strict=p.src_host+p.src_host_terminator,p.tpl_host_fuzzy_strict=p.tpl_host_fuzzy+p.src_host_terminator,p.src_host_port_strict=p.src_host+p.src_port+p.src_host_terminator,p.tpl_host_port_fuzzy_strict=p.tpl_host_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_port_no_ip_fuzzy_strict=p.tpl_host_no_ip_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${p.src_ZPCc}|>|$))`,p.tpl_email_fuzzy=`(^|${j}|"|\\(|${p.src_ZCc})(${p.src_email_name}@${p.tpl_host_fuzzy_strict})`,p.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_fuzzy_strict}${p.src_path})`,p.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_no_ip_fuzzy_strict}${p.src_path})`,p}function n(k){return Array.prototype.slice.call(arguments,1).forEach(function(j){j&&Object.keys(j).forEach(function(_){k[_]=j[_]})}),k}function s(k){return Object.prototype.toString.call(k)}function o(k){return s(k)==="[object String]"}function a(k){return s(k)==="[object Object]"}function i(k){return s(k)==="[object RegExp]"}function l(k){return s(k)==="[object Function]"}function u(k){return k.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function f(k){return Object.keys(k||{}).reduce(function(p,j){return p||d.hasOwnProperty(j)},!1)}const g={"http:":{validate:function(k,p,j){const _=k.slice(p);return j.re.http||(j.re.http=new RegExp(`^\\/\\/${j.re.src_auth}${j.re.src_host_port_strict}${j.re.src_path}`,"i")),j.re.http.test(_)?_.match(j.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(k,p,j){const _=k.slice(p);return j.re.no_http||(j.re.no_http=new RegExp("^"+j.re.src_auth+`(?:localhost|(?:(?:${j.re.src_domain})\\.)+${j.re.src_domain_root})`+j.re.src_port+j.re.src_host_terminator+j.re.src_path,"i")),j.re.no_http.test(_)?p>=3&&k[p-3]===":"||p>=3&&k[p-3]==="/"?0:_.match(j.re.no_http)[0].length:0}},"mailto:":{validate:function(k,p,j){const _=k.slice(p);return j.re.mailto||(j.re.mailto=new RegExp(`^${j.re.src_email_name}@${j.re.src_host_strict}`,"i")),j.re.mailto.test(_)?_.match(j.re.mailto)[0].length:0}}},m="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",h="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function x(k){return function(p,j){const _=p.slice(j);return k.test(_)?_.match(k)[0].length:0}}function C(){return function(k,p){p.normalize(k)}}function b(k){const p=k.re=t(k.__opts__),j=k.__tlds__.slice();k.onCompile(),k.__tlds_replaced__||j.push(m),j.push(p.src_xn),p.src_tlds=j.join("|");function _(A){return A.replace("%TLDS%",p.src_tlds)}p.email_fuzzy=RegExp(_(p.tpl_email_fuzzy),"i"),p.email_fuzzy_global=RegExp(_(p.tpl_email_fuzzy),"ig"),p.link_fuzzy=RegExp(_(p.tpl_link_fuzzy),"i"),p.link_fuzzy_global=RegExp(_(p.tpl_link_fuzzy),"ig"),p.link_no_ip_fuzzy=RegExp(_(p.tpl_link_no_ip_fuzzy),"i"),p.link_no_ip_fuzzy_global=RegExp(_(p.tpl_link_no_ip_fuzzy),"ig"),p.host_fuzzy_test=RegExp(_(p.tpl_host_fuzzy_test),"i");const N=[];k.__compiled__={};function R(A,F){throw new Error(`(LinkifyIt) Invalid schema "${A}": ${F}`)}Object.keys(k.__schemas__).forEach(function(A){const F=k.__schemas__[A];if(F===null)return;const D={validate:null,link:null};if(k.__compiled__[A]=D,a(F)){i(F.validate)?D.validate=x(F.validate):l(F.validate)?D.validate=F.validate:R(A,F),l(F.normalize)?D.normalize=F.normalize:F.normalize?R(A,F):D.normalize=C();return}if(o(F)){N.push(A);return}R(A,F)}),N.forEach(function(A){k.__compiled__[k.__schemas__[A]]&&(k.__compiled__[A].validate=k.__compiled__[k.__schemas__[A]].validate,k.__compiled__[A].normalize=k.__compiled__[k.__schemas__[A]].normalize)}),k.__compiled__[""]={validate:null,normalize:C()};const w=Object.keys(k.__compiled__).filter(function(A){return A.length>0&&k.__compiled__[A]}).map(u).join("|");k.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"i"),k.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"ig"),k.re.schema_at_start=RegExp(`^${k.re.schema_search.source}`,"i"),k.re.pretest=RegExp(`(${k.re.schema_test.source})|(${k.re.host_fuzzy_test.source})|@`,"i")}function y(k,p,j,_){const N=k.slice(j,_);this.schema=p.toLowerCase(),this.index=j,this.lastIndex=_,this.raw=N,this.text=N,this.url=N}function v(k,p){if(!(this instanceof v))return new v(k,p);p||f(k)&&(p=k,k={}),this.__opts__=n({},d,p),this.__schemas__=n({},g,k),this.__compiled__={},this.__tlds__=h,this.__tlds_replaced__=!1,this.re={},b(this)}return v.prototype.add=function(p,j){return this.__schemas__[p]=j,b(this),this},v.prototype.set=function(p){return this.__opts__=n(this.__opts__,p),this},v.prototype.test=function(p){if(!p.length)return!1;let j,_;if(this.re.schema_test.test(p)){for(_=this.re.schema_search,_.lastIndex=0;(j=_.exec(p))!==null;)if(this.testSchemaAt(p,j[2],_.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&p.search(this.re.host_fuzzy_test)>=0&&p.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&p.indexOf("@")>=0&&p.match(this.re.email_fuzzy)!==null)},v.prototype.pretest=function(p){return this.re.pretest.test(p)},v.prototype.testSchemaAt=function(p,j,_){return this.__compiled__[j.toLowerCase()]?this.__compiled__[j.toLowerCase()].validate(p,_,this):0},v.prototype.match=function(p){const j=[],_=[],N=[],R=[];let w,A,F;function D(T,M){return T?M?T.index!==M.index?T.index<M.index?T:M:T.lastIndex>=M.lastIndex?T:M:T:M}if(!p.length)return null;if(this.re.schema_test.test(p))for(F=this.re.schema_search,F.lastIndex=0;(w=F.exec(p))!==null;)A=this.testSchemaAt(p,w[2],F.lastIndex),A&&_.push({schema:w[2],index:w.index+w[1].length,lastIndex:w.index+w[0].length+A});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(F=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)N.push({schema:"",index:w.index+w[1].length,lastIndex:w.index+w[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(F=this.re.email_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)R.push({schema:"mailto:",index:w.index+w[1].length,lastIndex:w.index+w[0].length});const S=[0,0,0];let E=0;for(;;){const T=[_[S[0]],R[S[1]],N[S[2]]],M=D(D(T[0],T[1]),T[2]);if(!M)break;if(M===T[0]?S[0]++:M===T[1]?S[1]++:S[2]++,M.index<E)continue;const I=new y(p,M.schema,M.index,M.lastIndex);this.__compiled__[I.schema].normalize(I,this),j.push(I),E=M.lastIndex}return j.length?j:null},v.prototype.matchAtStart=function(p){if(!p.length)return null;const j=this.re.schema_at_start.exec(p);if(!j)return null;const _=this.testSchemaAt(p,j[2],j[0].length);if(!_)return null;const N=new y(p,j[2],j.index+j[1].length,j.index+j[0].length+_);return this.__compiled__[N.schema].normalize(N,this),N},v.prototype.tlds=function(p,j){return p=Array.isArray(p)?p:[p],j?(this.__tlds__=this.__tlds__.concat(p).sort().filter(function(_,N,R){return _!==R[N-1]}).reverse(),b(this),this):(this.__tlds__=p.slice(),this.__tlds_replaced__=!0,b(this),this)},v.prototype.normalize=function(p){p.schema||(p.url=`http://${p.url}`),p.schema==="mailto:"&&!/^mailto:/i.test(p.url)&&(p.url=`mailto:${p.url}`)},v.prototype.onCompile=function(){},An=v,An}var gr;function xh(){if(gr)return Ae;gr=1;var e=Ae&&Ae.__createBinding||(Object.create?(function(b,y,v,k){k===void 0&&(k=v);var p=Object.getOwnPropertyDescriptor(y,v);(!p||("get"in p?!y.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return y[v]}}),Object.defineProperty(b,k,p)}):(function(b,y,v,k){k===void 0&&(k=v),b[k]=y[v]})),t=Ae&&Ae.__setModuleDefault||(Object.create?(function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}):function(b,y){b.default=y}),n=Ae&&Ae.__importStar||(function(){var b=function(y){return b=Object.getOwnPropertyNames||function(v){var k=[];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(k[k.length]=p);return k},b(y)};return function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var k=b(y),p=0;p<k.length;p++)k[p]!=="default"&&e(v,y,k[p]);return t(v,y),v}})(),s=Ae&&Ae.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=x;const o=s(mh()),a=ph(),i=s(gh()),l=n(Nl());function u(b,y=!1){return b=(0,a.escapeCarriageReturn)(C(b)),o.default.ansiToJson(b,{json:!0,remove_empty:!0,use_classes:y})}function d(b){let y="";return b.bg&&(y+=`${b.bg}-bg `),b.fg&&(y+=`${b.fg}-fg `),b.decoration&&(y+=`ansi-${b.decoration} `),y===""?null:(y=y.substring(0,y.length-1),y)}function f(b){const y={};switch(b.bg&&(y.backgroundColor=`rgb(${b.bg})`),b.fg&&(y.color=`rgb(${b.fg})`),b.decoration){case"bold":y.fontWeight="bold";break;case"dim":y.opacity="0.5";break;case"italic":y.fontStyle="italic";break;case"hidden":y.visibility="hidden";break;case"strikethrough":y.textDecoration="line-through";break;case"underline":y.textDecoration="underline";break;case"blink":y.textDecoration="blink";break}return y}function g(b,y,v,k){const p=y?null:f(v),j=y?d(v):null;return b?b==="fuzzy"?h(v,k,p,j):m(v,k,p,j):l.createElement("span",{style:p,key:k,className:j},v.content)}function m(b,y,v,k){const p=[],j=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let _=0,N;for(;(N=j.exec(b.content))!==null;){const[,R,w]=N,A=N.index+R.length;A>_&&p.push(b.content.substring(_,A));const F=w.startsWith("www.")?`http://${w}`:w;p.push(l.createElement("a",{key:_,href:F,target:"_blank"},`${w}`)),_=j.lastIndex}return _<b.content.length&&p.push(b.content.substring(_)),l.createElement("span",{style:v,key:y,className:k},p)}function h(b,y,v,k){var p;const j=(0,i.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!j.pretest(b.content))return l.createElement("span",{style:v,key:y,className:k},b.content);const _=j.match(b.content);if(!_)return l.createElement("span",{style:v,key:y,className:k},b.content);const N=[b.content.substring(0,(p=_[0])===null||p===void 0?void 0:p.index)];return _.forEach((R,w)=>{var A;N.push(l.createElement("a",{href:R.url,target:"_blank",key:w},b.content.substring(R.index,R.lastIndex))),_[w+1]&&N.push(b.content.substring(_[w].lastIndex,(A=_[w+1])===null||A===void 0?void 0:A.index))}),_[_.length-1].lastIndex!==b.content.length&&N.push(b.content.substring(_[_.length-1].lastIndex,b.content.length)),l.createElement("span",{style:v,key:y,className:k},N)}function x(b){const{className:y,useClasses:v,children:k,linkify:p}=b;return l.createElement("code",{className:y},u(k??"",v??!1).map(g.bind(null,p??!1,v??!1)))}function C(b){let y=b;do b=y,y=b.replace(/[^\n]\x08/gm,"");while(y.length<b.length);return b}return Ae}var bh=xh();const yh=El(bh),kh=c.lazy(()=>Dl(()=>import("./index-A_qzw4D8.js"),__vite__mapDeps([0,1,2,3]))),vh={...ch,container:"bg-transparent text-xs font-mono leading-relaxed",label:"text-muted-foreground font-medium mr-1",clickableLabel:"text-muted-foreground font-medium mr-1 cursor-pointer",nullValue:"text-muted-foreground italic",undefinedValue:"text-muted-foreground italic",stringValue:"text-foreground",booleanValue:"text-amber-400",numberValue:"text-blue-400",otherValue:"text-muted-foreground",punctuation:"text-muted-foreground",collapseIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▾"]',expandIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▸"]',collapsedContent:'text-muted-foreground mr-1 cursor-pointer after:text-[0.8em] after:content-["…"]'},xr=5120;function Ch(e){try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&("old_string"in t||"new_string"in t)?t:null}catch{return null}}function Fn({children:e,rawContent:t,supportsRawToggle:n,isRaw:s,onToggleRaw:o}){const[a,i]=c.useState(!1),l=t.length>xr,u=l&&!a?t.slice(0,xr):t;return r.jsxs("div",{className:"space-y-1",children:[n&&r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{onClick:o,className:"text-muted-foreground hover:text-foreground text-xs underline",children:s?"Formatted":"Raw"})}),s?r.jsxs(r.Fragment,{children:[r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:u}),l&&!a&&r.jsxs("button",{onClick:()=>i(!0),className:"text-muted-foreground hover:text-foreground text-xs underline",children:["Show full output (",(t.length/1024).toFixed(1),"KB)"]})]}):e]})}function Sh({oldValue:e,newValue:t,rawContent:n}){return r.jsx(c.Suspense,{fallback:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:n}),children:r.jsx(kh,{oldValue:e,newValue:t,splitView:!1,useDarkTheme:!0,hideLineNumbers:!0,showDiffOnly:!0,extraLinesSurroundingDiff:2,styles:{variables:{dark:{diffViewerBackground:"transparent",addedBackground:"rgba(34, 197, 94, 0.1)",addedColor:"rgb(134, 239, 172)",addedGutterBackground:"rgba(34, 197, 94, 0.08)",wordAddedBackground:"rgba(34, 197, 94, 0.2)",removedBackground:"rgba(239, 68, 68, 0.1)",removedColor:"rgb(252, 165, 165)",removedGutterBackground:"rgba(239, 68, 68, 0.08)",wordRemovedBackground:"rgba(239, 68, 68, 0.2)",gutterBackground:"hsl(0 0% 9%)",gutterBackgroundDark:"hsl(0 0% 7%)",gutterColor:"hsl(0 0% 40%)"}}}})})}function Fa({content:e,toolName:t,input:n}){const[s,o]=c.useState(!1);if(t==="Edit"&&n){const i=Ch(n);if(i)return r.jsx(Sh,{oldValue:i.old_string??"",newValue:i.new_string??"",rawContent:e})}const a=nf(e);if(a==="json"){let i;try{i=JSON.parse(e)}catch{i={}}return r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(l=>!l),children:r.jsx(fh,{data:i,style:vh,shouldExpandNode:dh})})}return a==="ansi"?r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(i=>!i),children:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:r.jsx(yh,{children:e})})}):r.jsx(Fn,{rawContent:e,supportsRawToggle:!1,isRaw:!0,onToggleRaw:()=>{},children:null})}function jh(e){try{const t=JSON.parse(e);if(!t||typeof t!="object")return e;const n=t;if(n.error&&typeof n.error=="object"){const s=n.error;if(typeof s.message=="string")return s.message}return typeof n.message=="string"?n.message:e}catch{return e}}function _h(e){const t=jh(e),n=t.match(/The ['"`]([^'"`]+)['"`] model requires a newer version of Codex\b/i);if(n)return{message:`The Codex version DorkOS is using is too old for ${n[1]}. Update DorkOS (or your custom Codex installation), then try again. You can also choose another model.`,category:"runtime_update_required",details:e};const s=t.match(/The ['"`]([^'"`]+)['"`] model is not supported when using Codex with a ChatGPT account\b/i);return s?{message:`${s[1]} isn’t available with a ChatGPT account. Choose another model from the model menu.`,category:"model_unavailable",details:e}:null}const Ra="runtimes";function wh({label:e}){const{open:t}=yo();return r.jsx("button",{type:"button",onClick:()=>t(Ra),className:"text-muted-foreground hover:text-foreground mt-2 block text-xs underline decoration-dotted underline-offset-2 transition-colors",children:e})}function Nh({runtime:e,sessionId:t,onRetry:n,onSigninComplete:s}){const[o,a]=c.useState(!1),i=vd(e,{sessionId:t,onCompleted:()=>a((s==null?void 0:s())??!1)}),l=Cd(e);return i.isSuccess?r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin-success",children:[r.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-sm",role:"status",children:[r.jsx(tn,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),o?"Signed in. Sending your message again…":"Signed in."]}),!o&&n&&r.jsxs(fe,{size:"sm",onClick:n,className:"mt-2 gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}):r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin",children:[r.jsx("p",{className:"text-muted-foreground mb-2 flex items-center gap-2 text-sm",role:"status",children:i.isPending&&r.jsxs(r.Fragment,{children:[r.jsx(He,{size:"xs",className:"shrink-0"}),l.signInPending]})}),i.isError&&r.jsx("p",{className:"text-destructive mb-2 text-sm",role:"alert",children:i.errorMessage}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:i.login,disabled:i.isPending,className:"gap-1.5","data-testid":"auth-error-signin-button",children:[r.jsx(ko,{className:"size-3"}),i.isError?"Try again":l.signInLabel]}),n&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:n,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}),r.jsx(wh,{label:"Use an API key instead"})]})}function br({onRetry:e}){return r.jsx("div",{className:"mt-3","data-testid":"auth-error-remote-guidance",children:r.jsx(yd,{...e?{onRetry:e}:{}})})}function Ma({onRetry:e}){const{open:t}=yo();return r.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:()=>t(Ra),className:"gap-1.5",children:[r.jsx(ko,{className:"size-3"}),"Fix sign-in"]}),e&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]})}function Eh({runtime:e,sessionId:t,onRetry:n,renderOffer:s,lead:o,children:a}){const i=!Go(),l=vo(),u=le(m=>m.setRetryAccount),d=At(e).label,f=s({runtime:e,origin:`auth-error:${t}`,note:`This makes new ${d} work on this computer run on your DorkOS credits.`,chosen:n?`New ${d} work on this computer now runs on your DorkOS credits. Sending your message again…`:`New ${d} work on this computer now runs on your DorkOS credits.`,...n?{confirmAfterLink:{prompt:"Linked. Send again on DorkOS credits?",action:"Send again"}}:{},onChoose:async()=>{await l.mutateAsync({runtime:e,useCredits:!0}),n&&(u({id:ut,sessionId:t}),n())}}),g=m=>r.jsxs("section",{"aria-label":"Other ways",children:[r.jsx("p",{className:"text-muted-foreground text-2xs font-medium tracking-wide uppercase",children:"Other ways"}),m]});return o?r.jsxs("div",{className:"mt-3 space-y-3","data-testid":"auth-error-credits-first",children:[f,g(a),r.jsx(kd,{ollama:Tl(e)==="provider-picker",remote:i})]}):r.jsxs("div",{"data-testid":"auth-error-credits-other-way",children:[a,r.jsx("div",{className:"mt-3",children:g(f)})]})}function Dh({sessionId:e,onRetry:t,onSigninComplete:n}){var g;const{sessions:s,isLoading:o}=rs(),a=Go(),i=(g=s.find(m=>m.id===e))==null?void 0:g.runtime,l=bd(i),u=mo(),d=i!==void 0&&u!==null&&(l==="lead"||l==="other-way");if(!a&&!d)return r.jsx(br,{onRetry:t});if(o)return null;const f=a?!i||!Al(i)?r.jsx(Ma,{onRetry:t}):r.jsx(Nh,{runtime:i,sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(br,{onRetry:t});return d&&i&&u?r.jsx(Eh,{runtime:i,sessionId:e,onRetry:t,renderOffer:u,lead:l==="lead",children:f}):f}function Th({sessionId:e,onRetry:t,onSigninComplete:n}){return e?r.jsx(Dh,{sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(Ma,{onRetry:t})}const Ah="credits_unavailable",Fh="folder-sign-in";function Rh({onRetry:e,sessionId:t,runtimeLabel:n,reason:s}){const o=le(x=>x.setRetryAccount),a=Fl(),i=vo(),l=Co(),u=cn(t),d=an(u??null);if(!e)return null;const f=Mh(d),g=n?`your ${n}`:"your own",m=()=>{if(d!==void 0){if(f==="pick-for-send"){t&&o({id:vt,sessionId:t}),e();return}i.mutate({runtime:d.type,useCredits:!1},{onSuccess:()=>f==="new-conversation"?l(void 0,{runtime:d.type}):e()})}},h=()=>{t&&a.mutate(t,{onSuccess:({launch:x})=>{x!=null&&x.ok&&o({id:x.accountId,sessionId:t}),e()}})};return r.jsxs("div",{className:"mt-2 flex flex-col gap-2","data-testid":"credits-error-actions",children:[r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(fe,{size:"sm",variant:"outline",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]}),t&&r.jsx(fe,{size:"sm",variant:"outline",onClick:m,disabled:d===void 0||i.isPending,children:f==="new-conversation"?`Start a new chat on ${g} sign-in`:`Use ${g} sign-in`}),t&&s===Fh&&r.jsx(fe,{size:"sm",variant:"outline",onClick:h,disabled:a.isPending,children:"Don’t use credits in this project"})]}),t&&f==="whole-runtime"&&r.jsxs("p",{className:"text-muted-foreground text-xs","data-testid":"credits-own-sign-in-reach",children:["This moves all ",n??"its"," chats to ",g," sign-in, not just this one."]}),a.error&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:a.error.message}),i.isError&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:"Couldn’t switch to your own sign-in. Try again in a moment."})]})}function Mh(e){var t;return e===void 0||e.supportsAccounts?"pick-for-send":((t=e.credits)==null?void 0:t.scope)==="conversation"?"new-conversation":"whole-runtime"}function Oh({category:e,onChooseModel:t}){return t?r.jsxs(fe,{size:"sm",onClick:t,className:"mt-3 gap-1.5",children:[r.jsx(So,{className:"size-3"}),e==="runtime_update_required"?"Choose another model":"Choose model"]}):null}const Ih="your agent",$h="agent",yr={max_turns:{heading:"Turn limit reached",subtext:"The agent ran for its maximum number of turns.",retryable:!1},execution_error:{heading:"Agent stopped unexpectedly",subtext:"Something went wrong before it finished.",retryable:!0},budget_exceeded:{heading:"Cost limit reached",subtext:"This chat hit its spending limit.",retryable:!1},output_format_error:{heading:"Output format error",subtext:"The agent couldn’t produce the required output format.",retryable:!1},auth_error:{heading:"Sign in again",subtext:"Your login stopped working. Sign in again to continue.",retryable:!0},model_unavailable:{heading:"Model unavailable",subtext:"Choose another model from the model menu.",retryable:!1},runtime_update_required:{heading:"Codex update required",subtext:"Update DorkOS or your Codex install, then try again. Or choose another model.",retryable:!1}},Ph=new Set(["max_turns","budget_exceeded","output_format_error","auth_error"]);function Lh(e){return`Sign in to ${e??Ih} again`}function Bh(e){return`Your ${e??$h} login stopped working. Sign in again to continue.`}const zh="rate_limit";function dn(e){const{code:t,at:n,sessionId:s,reason:o}=e;return t===jo&&o?r.jsx(ra,{agentId:o}):t===zh&&s?r.jsx(_m,{sessionId:s,at:n??"",fallback:r.jsx(kr,{...e})}):r.jsx(kr,{...e})}function kr({message:e,category:t,details:n,onRetry:s,heading:o,subtext:a,runtimeLabel:i,sessionId:l,onSigninComplete:u,onChooseModel:d,code:f,reason:g}){const[m,h]=c.useState(!1),x=f===Ah,C=c.useMemo(()=>_h(e),[e]),b=(C==null?void 0:C.category)??t,y=(C==null?void 0:C.message)??e,v=C?n!=null&&n.includes(C.details??"")?n:[n,C.details].filter(Boolean).join(`
|
|
40
|
+
`+n(o.slice(a+1))}return gt.exports=e,gt.exports.escapeCarriageReturn=e,gt.exports.escapeCarriageReturnSafe=s,gt.exports}var Ve={},pr;function hh(){if(pr)return Ve;pr=1;var e=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t=/[\0-\x1F\x7F-\x9F]/,n=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,s=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,o=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,a=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;return Ve.Any=e,Ve.Cc=t,Ve.Cf=n,Ve.P=s,Ve.S=o,Ve.Z=a,Ve}var An,hr;function gh(){if(hr)return An;hr=1;var e=hh();function t(k){const p={};k=k||{},p.src_Any=e.Any.source,p.src_Cc=e.Cc.source,p.src_Z=e.Z.source,p.src_P=e.P.source,p.src_ZPCc=[p.src_Z,p.src_P,p.src_Cc].join("|"),p.src_ZCc=[p.src_Z,p.src_Cc].join("|");const j="[><|]";return p.src_pseudo_letter=`(?:(?!${j}|${p.src_ZPCc})${p.src_Any})`,p.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",p.src_auth=`(?:(?:(?!${p.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,p.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",p.src_host_terminator=`(?=$|${j}|${p.src_ZPCc})(?!${k["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${p.src_ZPCc}))`,p.src_path=`(?:[/?#](?:(?!${p.src_ZCc}|${j}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${p.src_ZCc}|\\]).)*\\]|\\((?:(?!${p.src_ZCc}|[)]).)*\\)|\\{(?:(?!${p.src_ZCc}|[}]).)*\\}|\\"(?:(?!${p.src_ZCc}|["]).)+\\"|\\'(?:(?!${p.src_ZCc}|[']).)+\\'|\\'(?=${p.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${p.src_ZCc}|[.]|$)|`+(k["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${p.src_ZCc}|$)|;(?!${p.src_ZCc}|$)|\\!+(?!${p.src_ZCc}|[!]|$)|\\?(?!${p.src_ZCc}|[?]|$))+|\\/)?`,p.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',p.src_xn="xn--[a-z0-9\\-]{1,59}",p.src_domain_root="(?:"+p.src_xn+`|${p.src_pseudo_letter}{1,63})`,p.src_domain="(?:"+p.src_xn+`|(?:${p.src_pseudo_letter})|(?:${p.src_pseudo_letter}(?:-|${p.src_pseudo_letter}){0,61}${p.src_pseudo_letter}))`,p.src_host=`(?:(?:(?:(?:${p.src_domain})\\.)*${p.src_domain}))`,p.tpl_host_fuzzy="(?:"+p.src_ip4+`|(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%)))`,p.tpl_host_no_ip_fuzzy=`(?:(?:(?:${p.src_domain})\\.)+(?:%TLDS%))`,p.src_host_strict=p.src_host+p.src_host_terminator,p.tpl_host_fuzzy_strict=p.tpl_host_fuzzy+p.src_host_terminator,p.src_host_port_strict=p.src_host+p.src_port+p.src_host_terminator,p.tpl_host_port_fuzzy_strict=p.tpl_host_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_port_no_ip_fuzzy_strict=p.tpl_host_no_ip_fuzzy+p.src_port+p.src_host_terminator,p.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${p.src_ZPCc}|>|$))`,p.tpl_email_fuzzy=`(^|${j}|"|\\(|${p.src_ZCc})(${p.src_email_name}@${p.tpl_host_fuzzy_strict})`,p.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_fuzzy_strict}${p.src_path})`,p.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${p.src_ZPCc}))((?![$+<=>^\`||])${p.tpl_host_port_no_ip_fuzzy_strict}${p.src_path})`,p}function n(k){return Array.prototype.slice.call(arguments,1).forEach(function(j){j&&Object.keys(j).forEach(function(_){k[_]=j[_]})}),k}function s(k){return Object.prototype.toString.call(k)}function o(k){return s(k)==="[object String]"}function a(k){return s(k)==="[object Object]"}function i(k){return s(k)==="[object RegExp]"}function l(k){return s(k)==="[object Function]"}function u(k){return k.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function f(k){return Object.keys(k||{}).reduce(function(p,j){return p||d.hasOwnProperty(j)},!1)}const g={"http:":{validate:function(k,p,j){const _=k.slice(p);return j.re.http||(j.re.http=new RegExp(`^\\/\\/${j.re.src_auth}${j.re.src_host_port_strict}${j.re.src_path}`,"i")),j.re.http.test(_)?_.match(j.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(k,p,j){const _=k.slice(p);return j.re.no_http||(j.re.no_http=new RegExp("^"+j.re.src_auth+`(?:localhost|(?:(?:${j.re.src_domain})\\.)+${j.re.src_domain_root})`+j.re.src_port+j.re.src_host_terminator+j.re.src_path,"i")),j.re.no_http.test(_)?p>=3&&k[p-3]===":"||p>=3&&k[p-3]==="/"?0:_.match(j.re.no_http)[0].length:0}},"mailto:":{validate:function(k,p,j){const _=k.slice(p);return j.re.mailto||(j.re.mailto=new RegExp(`^${j.re.src_email_name}@${j.re.src_host_strict}`,"i")),j.re.mailto.test(_)?_.match(j.re.mailto)[0].length:0}}},m="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",h="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function x(k){return function(p,j){const _=p.slice(j);return k.test(_)?_.match(k)[0].length:0}}function C(){return function(k,p){p.normalize(k)}}function b(k){const p=k.re=t(k.__opts__),j=k.__tlds__.slice();k.onCompile(),k.__tlds_replaced__||j.push(m),j.push(p.src_xn),p.src_tlds=j.join("|");function _(A){return A.replace("%TLDS%",p.src_tlds)}p.email_fuzzy=RegExp(_(p.tpl_email_fuzzy),"i"),p.email_fuzzy_global=RegExp(_(p.tpl_email_fuzzy),"ig"),p.link_fuzzy=RegExp(_(p.tpl_link_fuzzy),"i"),p.link_fuzzy_global=RegExp(_(p.tpl_link_fuzzy),"ig"),p.link_no_ip_fuzzy=RegExp(_(p.tpl_link_no_ip_fuzzy),"i"),p.link_no_ip_fuzzy_global=RegExp(_(p.tpl_link_no_ip_fuzzy),"ig"),p.host_fuzzy_test=RegExp(_(p.tpl_host_fuzzy_test),"i");const N=[];k.__compiled__={};function R(A,F){throw new Error(`(LinkifyIt) Invalid schema "${A}": ${F}`)}Object.keys(k.__schemas__).forEach(function(A){const F=k.__schemas__[A];if(F===null)return;const D={validate:null,link:null};if(k.__compiled__[A]=D,a(F)){i(F.validate)?D.validate=x(F.validate):l(F.validate)?D.validate=F.validate:R(A,F),l(F.normalize)?D.normalize=F.normalize:F.normalize?R(A,F):D.normalize=C();return}if(o(F)){N.push(A);return}R(A,F)}),N.forEach(function(A){k.__compiled__[k.__schemas__[A]]&&(k.__compiled__[A].validate=k.__compiled__[k.__schemas__[A]].validate,k.__compiled__[A].normalize=k.__compiled__[k.__schemas__[A]].normalize)}),k.__compiled__[""]={validate:null,normalize:C()};const w=Object.keys(k.__compiled__).filter(function(A){return A.length>0&&k.__compiled__[A]}).map(u).join("|");k.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"i"),k.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${p.src_ZPCc}))(${w})`,"ig"),k.re.schema_at_start=RegExp(`^${k.re.schema_search.source}`,"i"),k.re.pretest=RegExp(`(${k.re.schema_test.source})|(${k.re.host_fuzzy_test.source})|@`,"i")}function y(k,p,j,_){const N=k.slice(j,_);this.schema=p.toLowerCase(),this.index=j,this.lastIndex=_,this.raw=N,this.text=N,this.url=N}function v(k,p){if(!(this instanceof v))return new v(k,p);p||f(k)&&(p=k,k={}),this.__opts__=n({},d,p),this.__schemas__=n({},g,k),this.__compiled__={},this.__tlds__=h,this.__tlds_replaced__=!1,this.re={},b(this)}return v.prototype.add=function(p,j){return this.__schemas__[p]=j,b(this),this},v.prototype.set=function(p){return this.__opts__=n(this.__opts__,p),this},v.prototype.test=function(p){if(!p.length)return!1;let j,_;if(this.re.schema_test.test(p)){for(_=this.re.schema_search,_.lastIndex=0;(j=_.exec(p))!==null;)if(this.testSchemaAt(p,j[2],_.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&p.search(this.re.host_fuzzy_test)>=0&&p.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&p.indexOf("@")>=0&&p.match(this.re.email_fuzzy)!==null)},v.prototype.pretest=function(p){return this.re.pretest.test(p)},v.prototype.testSchemaAt=function(p,j,_){return this.__compiled__[j.toLowerCase()]?this.__compiled__[j.toLowerCase()].validate(p,_,this):0},v.prototype.match=function(p){const j=[],_=[],N=[],R=[];let w,A,F;function D(T,M){return T?M?T.index!==M.index?T.index<M.index?T:M:T.lastIndex>=M.lastIndex?T:M:T:M}if(!p.length)return null;if(this.re.schema_test.test(p))for(F=this.re.schema_search,F.lastIndex=0;(w=F.exec(p))!==null;)A=this.testSchemaAt(p,w[2],F.lastIndex),A&&_.push({schema:w[2],index:w.index+w[1].length,lastIndex:w.index+w[0].length+A});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(F=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)N.push({schema:"",index:w.index+w[1].length,lastIndex:w.index+w[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(F=this.re.email_fuzzy_global,F.lastIndex=0;(w=F.exec(p))!==null;)R.push({schema:"mailto:",index:w.index+w[1].length,lastIndex:w.index+w[0].length});const S=[0,0,0];let E=0;for(;;){const T=[_[S[0]],R[S[1]],N[S[2]]],M=D(D(T[0],T[1]),T[2]);if(!M)break;if(M===T[0]?S[0]++:M===T[1]?S[1]++:S[2]++,M.index<E)continue;const I=new y(p,M.schema,M.index,M.lastIndex);this.__compiled__[I.schema].normalize(I,this),j.push(I),E=M.lastIndex}return j.length?j:null},v.prototype.matchAtStart=function(p){if(!p.length)return null;const j=this.re.schema_at_start.exec(p);if(!j)return null;const _=this.testSchemaAt(p,j[2],j[0].length);if(!_)return null;const N=new y(p,j[2],j.index+j[1].length,j.index+j[0].length+_);return this.__compiled__[N.schema].normalize(N,this),N},v.prototype.tlds=function(p,j){return p=Array.isArray(p)?p:[p],j?(this.__tlds__=this.__tlds__.concat(p).sort().filter(function(_,N,R){return _!==R[N-1]}).reverse(),b(this),this):(this.__tlds__=p.slice(),this.__tlds_replaced__=!0,b(this),this)},v.prototype.normalize=function(p){p.schema||(p.url=`http://${p.url}`),p.schema==="mailto:"&&!/^mailto:/i.test(p.url)&&(p.url=`mailto:${p.url}`)},v.prototype.onCompile=function(){},An=v,An}var gr;function xh(){if(gr)return Ae;gr=1;var e=Ae&&Ae.__createBinding||(Object.create?(function(b,y,v,k){k===void 0&&(k=v);var p=Object.getOwnPropertyDescriptor(y,v);(!p||("get"in p?!y.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return y[v]}}),Object.defineProperty(b,k,p)}):(function(b,y,v,k){k===void 0&&(k=v),b[k]=y[v]})),t=Ae&&Ae.__setModuleDefault||(Object.create?(function(b,y){Object.defineProperty(b,"default",{enumerable:!0,value:y})}):function(b,y){b.default=y}),n=Ae&&Ae.__importStar||(function(){var b=function(y){return b=Object.getOwnPropertyNames||function(v){var k=[];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(k[k.length]=p);return k},b(y)};return function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var k=b(y),p=0;p<k.length;p++)k[p]!=="default"&&e(v,y,k[p]);return t(v,y),v}})(),s=Ae&&Ae.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=x;const o=s(mh()),a=ph(),i=s(gh()),l=n(Nl());function u(b,y=!1){return b=(0,a.escapeCarriageReturn)(C(b)),o.default.ansiToJson(b,{json:!0,remove_empty:!0,use_classes:y})}function d(b){let y="";return b.bg&&(y+=`${b.bg}-bg `),b.fg&&(y+=`${b.fg}-fg `),b.decoration&&(y+=`ansi-${b.decoration} `),y===""?null:(y=y.substring(0,y.length-1),y)}function f(b){const y={};switch(b.bg&&(y.backgroundColor=`rgb(${b.bg})`),b.fg&&(y.color=`rgb(${b.fg})`),b.decoration){case"bold":y.fontWeight="bold";break;case"dim":y.opacity="0.5";break;case"italic":y.fontStyle="italic";break;case"hidden":y.visibility="hidden";break;case"strikethrough":y.textDecoration="line-through";break;case"underline":y.textDecoration="underline";break;case"blink":y.textDecoration="blink";break}return y}function g(b,y,v,k){const p=y?null:f(v),j=y?d(v):null;return b?b==="fuzzy"?h(v,k,p,j):m(v,k,p,j):l.createElement("span",{style:p,key:k,className:j},v.content)}function m(b,y,v,k){const p=[],j=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let _=0,N;for(;(N=j.exec(b.content))!==null;){const[,R,w]=N,A=N.index+R.length;A>_&&p.push(b.content.substring(_,A));const F=w.startsWith("www.")?`http://${w}`:w;p.push(l.createElement("a",{key:_,href:F,target:"_blank"},`${w}`)),_=j.lastIndex}return _<b.content.length&&p.push(b.content.substring(_)),l.createElement("span",{style:v,key:y,className:k},p)}function h(b,y,v,k){var p;const j=(0,i.default)({fuzzyEmail:!1}).tlds(["io"],!0);if(!j.pretest(b.content))return l.createElement("span",{style:v,key:y,className:k},b.content);const _=j.match(b.content);if(!_)return l.createElement("span",{style:v,key:y,className:k},b.content);const N=[b.content.substring(0,(p=_[0])===null||p===void 0?void 0:p.index)];return _.forEach((R,w)=>{var A;N.push(l.createElement("a",{href:R.url,target:"_blank",key:w},b.content.substring(R.index,R.lastIndex))),_[w+1]&&N.push(b.content.substring(_[w].lastIndex,(A=_[w+1])===null||A===void 0?void 0:A.index))}),_[_.length-1].lastIndex!==b.content.length&&N.push(b.content.substring(_[_.length-1].lastIndex,b.content.length)),l.createElement("span",{style:v,key:y,className:k},N)}function x(b){const{className:y,useClasses:v,children:k,linkify:p}=b;return l.createElement("code",{className:y},u(k??"",v??!1).map(g.bind(null,p??!1,v??!1)))}function C(b){let y=b;do b=y,y=b.replace(/[^\n]\x08/gm,"");while(y.length<b.length);return b}return Ae}var bh=xh();const yh=El(bh),kh=c.lazy(()=>Dl(()=>import("./index-Bcv5Znqx.js"),__vite__mapDeps([0,1,2,3]))),vh={...ch,container:"bg-transparent text-xs font-mono leading-relaxed",label:"text-muted-foreground font-medium mr-1",clickableLabel:"text-muted-foreground font-medium mr-1 cursor-pointer",nullValue:"text-muted-foreground italic",undefinedValue:"text-muted-foreground italic",stringValue:"text-foreground",booleanValue:"text-amber-400",numberValue:"text-blue-400",otherValue:"text-muted-foreground",punctuation:"text-muted-foreground",collapseIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▾"]',expandIcon:'text-muted-foreground mr-1 cursor-pointer text-[1.2em] select-none after:content-["▸"]',collapsedContent:'text-muted-foreground mr-1 cursor-pointer after:text-[0.8em] after:content-["…"]'},xr=5120;function Ch(e){try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&("old_string"in t||"new_string"in t)?t:null}catch{return null}}function Fn({children:e,rawContent:t,supportsRawToggle:n,isRaw:s,onToggleRaw:o}){const[a,i]=c.useState(!1),l=t.length>xr,u=l&&!a?t.slice(0,xr):t;return r.jsxs("div",{className:"space-y-1",children:[n&&r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{onClick:o,className:"text-muted-foreground hover:text-foreground text-xs underline",children:s?"Formatted":"Raw"})}),s?r.jsxs(r.Fragment,{children:[r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:u}),l&&!a&&r.jsxs("button",{onClick:()=>i(!0),className:"text-muted-foreground hover:text-foreground text-xs underline",children:["Show full output (",(t.length/1024).toFixed(1),"KB)"]})]}):e]})}function Sh({oldValue:e,newValue:t,rawContent:n}){return r.jsx(c.Suspense,{fallback:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:n}),children:r.jsx(kh,{oldValue:e,newValue:t,splitView:!1,useDarkTheme:!0,hideLineNumbers:!0,showDiffOnly:!0,extraLinesSurroundingDiff:2,styles:{variables:{dark:{diffViewerBackground:"transparent",addedBackground:"rgba(34, 197, 94, 0.1)",addedColor:"rgb(134, 239, 172)",addedGutterBackground:"rgba(34, 197, 94, 0.08)",wordAddedBackground:"rgba(34, 197, 94, 0.2)",removedBackground:"rgba(239, 68, 68, 0.1)",removedColor:"rgb(252, 165, 165)",removedGutterBackground:"rgba(239, 68, 68, 0.08)",wordRemovedBackground:"rgba(239, 68, 68, 0.2)",gutterBackground:"hsl(0 0% 9%)",gutterBackgroundDark:"hsl(0 0% 7%)",gutterColor:"hsl(0 0% 40%)"}}}})})}function Fa({content:e,toolName:t,input:n}){const[s,o]=c.useState(!1);if(t==="Edit"&&n){const i=Ch(n);if(i)return r.jsx(Sh,{oldValue:i.old_string??"",newValue:i.new_string??"",rawContent:e})}const a=nf(e);if(a==="json"){let i;try{i=JSON.parse(e)}catch{i={}}return r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(l=>!l),children:r.jsx(fh,{data:i,style:vh,shouldExpandNode:dh})})}return a==="ansi"?r.jsx(Fn,{rawContent:e,supportsRawToggle:!0,isRaw:s,onToggleRaw:()=>o(i=>!i),children:r.jsx("pre",{className:"max-h-64 overflow-y-auto text-xs whitespace-pre-wrap",children:r.jsx(yh,{children:e})})}):r.jsx(Fn,{rawContent:e,supportsRawToggle:!1,isRaw:!0,onToggleRaw:()=>{},children:null})}function jh(e){try{const t=JSON.parse(e);if(!t||typeof t!="object")return e;const n=t;if(n.error&&typeof n.error=="object"){const s=n.error;if(typeof s.message=="string")return s.message}return typeof n.message=="string"?n.message:e}catch{return e}}function _h(e){const t=jh(e),n=t.match(/The ['"`]([^'"`]+)['"`] model requires a newer version of Codex\b/i);if(n)return{message:`The Codex version DorkOS is using is too old for ${n[1]}. Update DorkOS (or your custom Codex installation), then try again. You can also choose another model.`,category:"runtime_update_required",details:e};const s=t.match(/The ['"`]([^'"`]+)['"`] model is not supported when using Codex with a ChatGPT account\b/i);return s?{message:`${s[1]} isn’t available with a ChatGPT account. Choose another model from the model menu.`,category:"model_unavailable",details:e}:null}const Ra="runtimes";function wh({label:e}){const{open:t}=yo();return r.jsx("button",{type:"button",onClick:()=>t(Ra),className:"text-muted-foreground hover:text-foreground mt-2 block text-xs underline decoration-dotted underline-offset-2 transition-colors",children:e})}function Nh({runtime:e,sessionId:t,onRetry:n,onSigninComplete:s}){const[o,a]=c.useState(!1),i=vd(e,{sessionId:t,onCompleted:()=>a((s==null?void 0:s())??!1)}),l=Cd(e);return i.isSuccess?r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin-success",children:[r.jsxs("p",{className:"text-status-success-fg flex items-center gap-2 text-sm",role:"status",children:[r.jsx(tn,{"aria-hidden":"true",className:"size-3.5 shrink-0"}),o?"Signed in. Sending your message again…":"Signed in."]}),!o&&n&&r.jsxs(fe,{size:"sm",onClick:n,className:"mt-2 gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}):r.jsxs("div",{className:"mt-3","data-testid":"auth-error-signin",children:[r.jsx("p",{className:"text-muted-foreground mb-2 flex items-center gap-2 text-sm",role:"status",children:i.isPending&&r.jsxs(r.Fragment,{children:[r.jsx(He,{size:"xs",className:"shrink-0"}),l.signInPending]})}),i.isError&&r.jsx("p",{className:"text-destructive mb-2 text-sm",role:"alert",children:i.errorMessage}),r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:i.login,disabled:i.isPending,className:"gap-1.5","data-testid":"auth-error-signin-button",children:[r.jsx(ko,{className:"size-3"}),i.isError?"Try again":l.signInLabel]}),n&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:n,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]}),r.jsx(wh,{label:"Use an API key instead"})]})}function br({onRetry:e}){return r.jsx("div",{className:"mt-3","data-testid":"auth-error-remote-guidance",children:r.jsx(yd,{...e?{onRetry:e}:{}})})}function Ma({onRetry:e}){const{open:t}=yo();return r.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[r.jsxs(fe,{size:"sm",onClick:()=>t(Ra),className:"gap-1.5",children:[r.jsx(ko,{className:"size-3"}),"Fix sign-in"]}),e&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]})}function Eh({runtime:e,sessionId:t,onRetry:n,renderOffer:s,lead:o,children:a}){const i=!Go(),l=vo(),u=le(m=>m.setRetryAccount),d=At(e).label,f=s({runtime:e,origin:`auth-error:${t}`,note:`This makes new ${d} work on this computer run on your DorkOS credits.`,chosen:n?`New ${d} work on this computer now runs on your DorkOS credits. Sending your message again…`:`New ${d} work on this computer now runs on your DorkOS credits.`,...n?{confirmAfterLink:{prompt:"Linked. Send again on DorkOS credits?",action:"Send again"}}:{},onChoose:async()=>{await l.mutateAsync({runtime:e,useCredits:!0}),n&&(u({id:ut,sessionId:t}),n())}}),g=m=>r.jsxs("section",{"aria-label":"Other ways",children:[r.jsx("p",{className:"text-muted-foreground text-2xs font-medium tracking-wide uppercase",children:"Other ways"}),m]});return o?r.jsxs("div",{className:"mt-3 space-y-3","data-testid":"auth-error-credits-first",children:[f,g(a),r.jsx(kd,{ollama:Tl(e)==="provider-picker",remote:i})]}):r.jsxs("div",{"data-testid":"auth-error-credits-other-way",children:[a,r.jsx("div",{className:"mt-3",children:g(f)})]})}function Dh({sessionId:e,onRetry:t,onSigninComplete:n}){var g;const{sessions:s,isLoading:o}=rs(),a=Go(),i=(g=s.find(m=>m.id===e))==null?void 0:g.runtime,l=bd(i),u=mo(),d=i!==void 0&&u!==null&&(l==="lead"||l==="other-way");if(!a&&!d)return r.jsx(br,{onRetry:t});if(o)return null;const f=a?!i||!Al(i)?r.jsx(Ma,{onRetry:t}):r.jsx(Nh,{runtime:i,sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(br,{onRetry:t});return d&&i&&u?r.jsx(Eh,{runtime:i,sessionId:e,onRetry:t,renderOffer:u,lead:l==="lead",children:f}):f}function Th({sessionId:e,onRetry:t,onSigninComplete:n}){return e?r.jsx(Dh,{sessionId:e,onRetry:t,onSigninComplete:n}):r.jsx(Ma,{onRetry:t})}const Ah="credits_unavailable",Fh="folder-sign-in";function Rh({onRetry:e,sessionId:t,runtimeLabel:n,reason:s}){const o=le(x=>x.setRetryAccount),a=Fl(),i=vo(),l=Co(),u=cn(t),d=an(u??null);if(!e)return null;const f=Mh(d),g=n?`your ${n}`:"your own",m=()=>{if(d!==void 0){if(f==="pick-for-send"){t&&o({id:vt,sessionId:t}),e();return}i.mutate({runtime:d.type,useCredits:!1},{onSuccess:()=>f==="new-conversation"?l(void 0,{runtime:d.type}):e()})}},h=()=>{t&&a.mutate(t,{onSuccess:({launch:x})=>{x!=null&&x.ok&&o({id:x.accountId,sessionId:t}),e()}})};return r.jsxs("div",{className:"mt-2 flex flex-col gap-2","data-testid":"credits-error-actions",children:[r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsxs(fe,{size:"sm",variant:"outline",onClick:e,className:"gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]}),t&&r.jsx(fe,{size:"sm",variant:"outline",onClick:m,disabled:d===void 0||i.isPending,children:f==="new-conversation"?`Start a new chat on ${g} sign-in`:`Use ${g} sign-in`}),t&&s===Fh&&r.jsx(fe,{size:"sm",variant:"outline",onClick:h,disabled:a.isPending,children:"Don’t use credits in this project"})]}),t&&f==="whole-runtime"&&r.jsxs("p",{className:"text-muted-foreground text-xs","data-testid":"credits-own-sign-in-reach",children:["This moves all ",n??"its"," chats to ",g," sign-in, not just this one."]}),a.error&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:a.error.message}),i.isError&&r.jsx("p",{className:"text-muted-foreground text-xs",role:"status",children:"Couldn’t switch to your own sign-in. Try again in a moment."})]})}function Mh(e){var t;return e===void 0||e.supportsAccounts?"pick-for-send":((t=e.credits)==null?void 0:t.scope)==="conversation"?"new-conversation":"whole-runtime"}function Oh({category:e,onChooseModel:t}){return t?r.jsxs(fe,{size:"sm",onClick:t,className:"mt-3 gap-1.5",children:[r.jsx(So,{className:"size-3"}),e==="runtime_update_required"?"Choose another model":"Choose model"]}):null}const Ih="your agent",$h="agent",yr={max_turns:{heading:"Turn limit reached",subtext:"The agent ran for its maximum number of turns.",retryable:!1},execution_error:{heading:"Agent stopped unexpectedly",subtext:"Something went wrong before it finished.",retryable:!0},budget_exceeded:{heading:"Cost limit reached",subtext:"This chat hit its spending limit.",retryable:!1},output_format_error:{heading:"Output format error",subtext:"The agent couldn’t produce the required output format.",retryable:!1},auth_error:{heading:"Sign in again",subtext:"Your login stopped working. Sign in again to continue.",retryable:!0},model_unavailable:{heading:"Model unavailable",subtext:"Choose another model from the model menu.",retryable:!1},runtime_update_required:{heading:"Codex update required",subtext:"Update DorkOS or your Codex install, then try again. Or choose another model.",retryable:!1}},Ph=new Set(["max_turns","budget_exceeded","output_format_error","auth_error"]);function Lh(e){return`Sign in to ${e??Ih} again`}function Bh(e){return`Your ${e??$h} login stopped working. Sign in again to continue.`}const zh="rate_limit";function dn(e){const{code:t,at:n,sessionId:s,reason:o}=e;return t===jo&&o?r.jsx(ra,{agentId:o}):t===zh&&s?r.jsx(_m,{sessionId:s,at:n??"",fallback:r.jsx(kr,{...e})}):r.jsx(kr,{...e})}function kr({message:e,category:t,details:n,onRetry:s,heading:o,subtext:a,runtimeLabel:i,sessionId:l,onSigninComplete:u,onChooseModel:d,code:f,reason:g}){const[m,h]=c.useState(!1),x=f===Ah,C=c.useMemo(()=>_h(e),[e]),b=(C==null?void 0:C.category)??t,y=(C==null?void 0:C.message)??e,v=C?n!=null&&n.includes(C.details??"")?n:[n,C.details].filter(Boolean).join(`
|
|
41
41
|
`):n,k=b==="auth_error",p=b?yr[b]??yr.execution_error:null,j=k?Lh(i):b==="runtime_update_required"&&i?`${i} update required`:p==null?void 0:p.heading,_=k?Bh(i):p==null?void 0:p.subtext,N=x?"Couldn’t reach DorkOS credits":C?j??"Error":o??j??"Error",R=y.trim(),w=b!==void 0&&Ph.has(b),A=x?R:(C&&(a==null?void 0:a.trim())===e.trim()?void 0:a)??(w?_:R||_)??R,F=A.trim(),D=c.useMemo(()=>Rl(R),[R]),S=!R||R===F||R===N,E=!S&&(!w||D)?R:null,T=S||E!==null||v!=null&&v.includes(R)?v:[v,R].filter(Boolean).join(`
|
|
42
42
|
`),M=(p==null?void 0:p.retryable)??!!s;return r.jsx("div",{"data-testid":"error-message-block",className:U("my-2 rounded-lg border px-4 py-3","border-destructive/30 bg-destructive/5 text-foreground"),children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(ps,{className:"text-destructive mt-0.5 size-4 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm font-medium",children:N}),r.jsx("p",{className:"text-muted-foreground mt-0.5 text-sm wrap-anywhere whitespace-pre-wrap",children:r.jsx(xn,{text:A})}),E&&r.jsx("p",{className:"text-muted-foreground mt-1 text-sm wrap-anywhere whitespace-pre-wrap",children:r.jsx(xn,{text:E})}),T&&r.jsxs("button",{type:"button",onClick:()=>h(!m),className:"text-muted-foreground hover:text-foreground mt-2 flex items-center gap-1 text-xs","aria-expanded":m,children:[r.jsx(H.div,{animate:{rotate:m?0:-90},transition:{type:"spring",stiffness:400,damping:30},children:r.jsx(Tt,{className:"size-3"})}),"Details"]}),r.jsx(me,{initial:!1,children:m&&T&&r.jsx(H.div,{variants:Ke,initial:"initial",animate:"animate",exit:"exit",transition:Ge,className:"overflow-hidden",children:r.jsx("pre",{className:"bg-muted/50 mt-1 max-h-40 overflow-auto rounded p-2 text-xs whitespace-pre-wrap",children:r.jsx(xn,{text:T})})})}),x&&r.jsx(Rh,{onRetry:s,sessionId:l,runtimeLabel:i,reason:g}),k&&r.jsx(Th,{sessionId:l,onRetry:s,onSigninComplete:u}),(b==="model_unavailable"||b==="runtime_update_required")&&r.jsx(Oh,{category:b,onChooseModel:d})]}),!k&&!x&&M&&s&&r.jsxs(fe,{variant:"outline",size:"sm",onClick:s,className:"shrink-0 gap-1.5",children:[r.jsx(St,{className:"size-3"}),"Retry"]})]})})}const qh=8;function Uh({toolName:e,reasonType:t,reason:n,message:s,agentId:o}){const a=n||s,i=t==="classifier",l=t==="asyncAgent",u=o!==void 0?`Helper ${o.slice(0,qh)}`:l?"A background helper":null,f=u!==null?`${u} was blocked from using ${e}${i?" by auto mode":""}: ${a}`:i?`Blocked by auto mode: ${a}`:`Blocked: ${a}`;return r.jsxs("div",{"data-testid":"permission-denied-chip","data-reason-type":t,"data-agent-id":o,className:U("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-amber-500/30 bg-amber-500/5"),children:[r.jsx(Sd,{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0 text-amber-600 dark:text-amber-500"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:f}),l?r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Background helpers can’t ask for approval, so this was blocked."}),r.jsx("p",{className:"text-muted-foreground mt-0.5 text-xs",children:"Do it yourself, or ask the agent to run it in the foreground."})]}):null,r.jsx("p",{className:"text-muted-foreground mt-0.5 font-mono text-xs",children:e})]})]})}const Wh=50;function Hh(e){return e.type==="tool_call"&&e.interactiveType==="approval"&&e.approvalOutcome!==void 0}function Vh(e,t){return e.approvalOutcome!==t.approvalOutcome||(e.approvalReasonGiven??!1)!==(t.approvalReasonGiven??!1)||e.approvalResolvedAt===void 0||t.approvalResolvedAt===void 0?!1:Math.abs(e.approvalResolvedAt-t.approvalResolvedAt)<=Wh}function Gh(e){const t=new Map;let n=null;for(let s=0;s<e.length;s++){const o=e[s];if(!Hh(o)){n=null;continue}if(n&&Vh(n.part,o)){n.group.indices.push(s),t.set(s,n.group);continue}const a={leadIndex:s,indices:[s],outcome:o.approvalOutcome,reasonGiven:o.approvalReasonGiven??!1};t.set(s,a),n={group:a,part:o}}return t}function Ss(e){return e.type==="thinking"||e.type==="memory_recall"||e.type==="background_task"?!0:e.type==="tool_call"&&!e.interactiveType&&!e.ui&&!bs(e.toolName)&&!Xt(e.toolName)}function Kh(e){let t=0;for(const n of e)(n.type==="background_task"||n.type==="tool_call"&&Ss(n))&&t++;return t}function Oa(e){return e.some(Ss)}function Qh(e){return e.questionOutcome!==void 0?e.questionOutcome==="answered":e.status!=="pending"}function Xh(e){return e.status==="pending"?void 0:e.questionOutcome}function Yh({message:e}){return r.jsx(ot,{"data-testid":"unreadable-entry-note",icon:r.jsx(Ml,{"aria-hidden":"true",className:"text-muted-foreground size-3 shrink-0"}),label:r.jsx("span",{className:"text-muted-foreground",children:e})})}function Jh({title:e}){return r.jsxs("div",{"data-testid":"capability-approval-timed-out",className:U("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-border bg-muted/40"),children:[r.jsx(bt,{"aria-hidden":"true",className:"text-muted-foreground mt-0.5 size-4 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("p",{className:"text-sm",children:"The agent stopped waiting for your answer."}),r.jsxs("p",{className:"text-muted-foreground mt-0.5 text-xs",children:["“",e,"” is still in Approvals. Answer it, then ask the agent to retry."]})]})]})}function Qn({testId:e,icon:t,children:n}){return r.jsxs("div",{"data-testid":e,className:U("my-2 flex items-start gap-2 rounded-md border px-3 py-2","text-foreground border-border bg-muted/40"),children:[t,r.jsx("div",{className:"min-w-0 flex-1",children:n})]})}function Zh({part:e}){return e.outcome==="failed"?r.jsx(Qn,{testId:"mcp-signin-failed",icon:r.jsx(ps,{"aria-hidden":"true",className:"text-status-warning-dot mt-0.5 size-4 shrink-0"}),children:r.jsxs("p",{className:"text-sm",children:["Sign-in to “",e.serverName,"” didn’t finish. Ask your agent to retry."]})}):r.jsx(Qn,{testId:"mcp-signin-receipt",icon:r.jsx(_o,{"aria-hidden":"true",className:"text-status-success mt-0.5 size-4 shrink-0"}),children:r.jsxs("p",{className:"text-sm",children:["Connected to ",e.serverName,e.toolCount===void 0?"":` · ${e.toolCount} tool${e.toolCount===1?"":"s"}`,"."]})})}function eg({part:e}){const t=jd(e.agentId,e.serverName),{adopt:n}=t,s=e.outcome!==void 0;return c.useEffect(()=>{s||n({flowId:e.flowId,authorizeUrl:e.authorizeUrl,disclosure:e.disclosure})},[s,n,e.flowId,e.authorizeUrl,e.disclosure]),e.outcome!==void 0?r.jsx(Zh,{part:e}):r.jsxs(Qn,{testId:"mcp-signin-card",icon:r.jsx(Ol,{"aria-hidden":"true",className:"text-muted-foreground mt-0.5 size-4 shrink-0"}),children:[r.jsxs("p",{className:"text-sm",children:["Sign in to ",e.serverName]}),r.jsx(_d,{flow:t,serverName:e.serverName,failedActions:r.jsx(fe,{variant:"secondary",size:"sm",onClick:()=>t.start(),className:"focus-visible:ring-2",children:"Try again"})})]})}function tg({fromName:e,toName:t}){return r.jsx(ot,{"data-testid":"model-substituted-row",icon:r.jsx(So,{"aria-hidden":"true",className:"text-muted-foreground size-3 shrink-0"}),label:r.jsxs("span",{className:"text-muted-foreground",children:["DorkOS credits don’t cover ",e,", so this ran on ",t,". Switch in the model menu."]})})}const ng={running:r.jsx(He,{size:"xs",className:"text-muted-foreground"}),success:r.jsx(tn,{className:"text-muted-foreground size-(--size-icon-xs)"}),error:r.jsx(ct,{className:"text-destructive size-(--size-icon-xs)"}),cancelled:r.jsx(ct,{className:"text-muted-foreground size-(--size-icon-xs)"})};function sg({hook:e}){const t=!!(e.stdout||e.stderr),[n,s]=c.useState(e.status==="error"),o=e.stderr||e.stdout;return r.jsxs("div",{children:[r.jsxs("button",{onClick:()=>t&&s(a=>!a),className:U("flex w-full items-center gap-1.5 py-0.5",!t&&"cursor-default"),"aria-expanded":t?n:void 0,disabled:!t,children:[ng[e.status],r.jsx("span",{className:U("text-3xs font-mono",e.status==="error"?"text-destructive":"text-muted-foreground"),children:e.hookName}),e.status==="error"&&r.jsx("span",{className:"text-3xs text-destructive",children:"Error"}),e.exitCode!==void 0&&r.jsxs("span",{className:"text-3xs text-muted-foreground ml-auto",children:["exit ",e.exitCode]})]}),r.jsx(me,{initial:!1,children:n&&t&&o&&r.jsx(H.div,{variants:Ke,initial:"initial",animate:"animate",exit:"exit",transition:Ge,className:"overflow-hidden",children:r.jsx("pre",{className:"text-muted-foreground max-h-32 overflow-y-auto py-1 text-xs whitespace-pre-wrap",children:o})})})]})}function rg({toolCall:e,defaultExpanded:t=!1}){const[n,s]=c.useState(t),o=!!e.progressOutput;c.useEffect(()=>{o&&!n&&s(!0)},[o]);const a=e.hooks&&e.hooks.length>0?r.jsx("div",{className:"border-border/50 space-y-0.5 border-t px-3 py-1",children:e.hooks.map(u=>r.jsx(sg,{hook:u},u.hookId))}):void 0,i=e.startedAt&&e.completedAt?e.completedAt-e.startedAt:void 0,l=Il(e.toolName);return r.jsxs(Rt,{expanded:n,onToggle:()=>s(!n),dimmed:e.status==="complete",extraContent:a,"data-testid":"tool-call-card","data-tool-name":e.toolName,"data-status":e.status,header:r.jsxs(r.Fragment,{children:[ba(e.status),l&&r.jsx("span",{className:"bg-muted text-muted-foreground text-3xs rounded px-1 py-0.5 font-medium",children:l}),r.jsx("span",{className:"text-3xs flex-1 text-left font-mono",children:_t(e.toolName,e.input)}),i!==void 0&&r.jsx("span",{className:"text-muted-foreground text-3xs tabular-nums",children:Ed(i)})]}),children:[e.status==="running"&&!e.input?r.jsxs("div",{className:"text-muted-foreground flex items-center gap-1.5 py-1 text-xs",children:[r.jsx(He,{size:"xs"}),r.jsx("span",{children:"Preparing…"})]}):e.input!==void 0&&e.input!==""?r.jsx($l,{toolName:e.toolName,input:e.input,isStreaming:e.status==="running"}):null,e.progressOutput&&!e.result&&r.jsx(co,{content:e.progressOutput,className:"mt-2 border-t pt-2"}),e.result&&r.jsx("div",{className:"mt-2 border-t pt-2",children:r.jsx(Fa,{content:e.result,toolName:e.toolName,input:e.input})})]})}function og(e){if(e.startsWith("mcp__"))return e.split("__")[1]||void 0}function Ia(e,t,n){const s=c.useRef(e),[o,a]=c.useState(!(t&&s.current==="complete"));return c.useEffect(()=>{if(t&&e==="complete"&&s.current!=="complete"&&!n){const i=setTimeout(()=>a(!1),on.TOOL_CALL_AUTO_HIDE_MS);return()=>clearTimeout(i)}},[e,t,n]),!t||n?!0:o}function ag({part:e,autoHide:t,expandToolCalls:n}){var a;const s=((a=e.hooks)==null?void 0:a.some(i=>i.status==="error"))??!1,o=Ia(e.status,t,s);return r.jsx(me,{children:o&&r.jsx(H.div,{exit:{height:0,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:r.jsx(rg,{toolCall:{toolCallId:e.toolCallId,toolName:e.toolName,input:e.input||"",result:e.result,progressOutput:e.progressOutput,status:e.status,hooks:e.hooks,startedAt:e.startedAt,completedAt:e.completedAt},defaultExpanded:n})},e.toolCallId)})}function Rn({part:e,sessionId:t,autoHide:n,expandToolCalls:s}){const o=e.ui?og(e.toolName):void 0,a=r.jsx(ag,{part:e,autoHide:n,expandToolCalls:s});return!e.ui||e.status!=="complete"||!o?a:r.jsxs("div",{className:"flex flex-col gap-2",children:[a,r.jsx(Ef,{sessionId:t,serverName:o,uri:e.ui.resourceUri})]})}function ig({part:e,autoHide:t,index:n}){const s=e.isStreaming?"running":"complete",o=Ia(s,t,!1);return r.jsx(me,{children:o&&r.jsx(H.div,{exit:{height:0,opacity:0},transition:{duration:.3,ease:[.4,0,.2,1]},className:"overflow-hidden",children:r.jsx(Bp,{text:e.text,isStreaming:e.isStreaming??!1,elapsedMs:e.elapsedMs})},`thinking-${n}`)})}const lg=4,vr=2;function cg({children:e}){const[t,n]=c.useState(!1);if(e.length<=lg||t)return r.jsx(r.Fragment,{children:e});const s=e.length-vr;return r.jsxs(r.Fragment,{children:[e.slice(0,vr),r.jsx(Rt,{expanded:!1,onToggle:()=>n(!0),ariaLabel:`Show ${s} more steps`,className:"border-l-muted-foreground/15",header:r.jsxs("span",{className:"text-3xs text-muted-foreground font-mono",children:["and ",s," more steps…"]}),children:r.jsx(r.Fragment,{})})]})}const ug=/\|\||&&|;|\|/,dg=/<<|>/,Cr=60;function fg(e){if(!e)return null;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:null}catch{return null}}function Be(e,t){const n=e[t];return typeof n=="string"&&n.length>0?n:void 0}function mg(e,t){const n=e.split(`
|
|
43
43
|
`),s=t.split(`
|