@datalayer/agent-runtimes 1.6.98 → 1.6.99
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-embed/chunks/{AgentDetails-CqMfY8zN.js → AgentDetails-Dc-zAfsd.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-lxnKA_dF.js → AgentDetailsDialog-D2ezFFlA.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-CrdbRLaE.js → CellSidebarExtension-umk7yQhN.js} +1 -1
- package/dist-embed/chunks/ChatView-BDvwDtXF.js +32 -0
- package/dist-embed/chunks/{CollapsiblePlugin-CnG1qA1e.js → CollapsiblePlugin-7P9eK3oU.js} +1 -1
- package/dist-embed/chunks/{ContextPie-DAZz2yzl.js → ContextPie-DaHEeHxd.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-qAMqKLzs.js → DeckComponent-DQ2W1Fj7.js} +1 -1
- package/dist-embed/chunks/{DeckRenderer-DQmjQ_vE.js → DeckRenderer-BdATImsV.js} +2 -2
- package/dist-embed/chunks/{DeckStage-LDi6nZOg.js → DeckStage-BaIwK7uO.js} +2 -2
- package/dist-embed/chunks/{DiagramView-CpCoC99y.js → DiagramView-CUf_ij9A.js} +1 -1
- package/dist-embed/chunks/{DocumentView-B-lWAJgm.js → DocumentView-BXE42g3H.js} +1 -1
- package/dist-embed/chunks/{DrawingStage-DEeTWKLT.js → DrawingStage-B9AOjEPj.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-CZNRDs_b.js → EphemeralDocument-BlvZagtH.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-BDutT9GQ.js → EphemeralNotebook-gz0sG8Hk.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-CmJy7bb4.js → ExcalidrawComponent-Bc1UIgcH.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-D_DmAro7.js → ExcalidrawModal-Cp4Da2nV.js} +1 -1
- package/dist-embed/chunks/{FormulaBar-f9U7lupQ.js → FormulaBar-BUs-n7Zc.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-DpGAnn7v.js → JupyterLexicalExtension-Be8mweC6.js} +9 -9
- package/dist-embed/chunks/{KernelVariables-BIWju6rZ.js → KernelVariables-xXzfdk5t.js} +1 -1
- package/dist-embed/chunks/{LexicalToolRegistry-BqxU1w4N.js → LexicalToolRegistry-DI_iHg04.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-CqU9CVCl.js → NotebookToolSurfaces-BmBGWX9x.js} +1 -1
- package/dist-embed/chunks/{NotebookView-CpOBHIut.js → NotebookView-D4hr5dD7.js} +1 -1
- package/dist-embed/chunks/{Output-DLpf2Of9.js → Output-WQnm0VN5.js} +6 -6
- package/dist-embed/chunks/{SandboxDetailsDialog-yUjpxBdw.js → SandboxDetailsDialog-DujTXXdD.js} +1 -1
- package/dist-embed/chunks/SchemaForm-CL6wJsI5.js +1 -0
- package/dist-embed/chunks/{SheetStage-gUVhALxR.js → SheetStage-BCq1DaET.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-sx_-jWyq.js → SheetTabs-BZP7_RGB.js} +1 -1
- package/dist-embed/chunks/SignInIcon-D1-wo8qx.js +1 -0
- package/dist-embed/chunks/{SpreadsheetPreviewView-C9LaI5mp.js → SpreadsheetPreviewView-D_LLvpPF.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-FfnOGHeU.js → SpreadsheetView-BT4Rr56c.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-CKcw-pPX.js → WidgetVariableView-DAz5YxtA.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-DUDVTb3B.js → YouTubePlugin-DgTStKvk.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-BM2pAacI.js → abnfDiagram-VCTEODGH-B5LqqmCZ.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-B0MQRzNo.js → abnfDiagram-VCTEODGH-BsJXEg6b.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-fcR8gNdJ.js → abnfDiagram-VCTEODGH-DP066SC3.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-BfVZMCow.js → ar-SA-G6X2FPQ2-DwPbQVyE.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CnP0s6uJ.js → architectureDiagram-5GKGNRK7-C7914IyO.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-GZ5981UE.js → architectureDiagram-5GKGNRK7-CAe4xseh.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-Cpu0tfD1.js → architectureDiagram-5GKGNRK7-O1s7O7KE.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-BeD9jzcd.js → az-AZ-76LH7QW2-CnpysEBO.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-VUraF-a0.js → bg-BG-XCXSNQG7-DJUiP_6F.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-BK7odeOZ.js → blockDiagram-868be97b-DNJtOmrO.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-BMQSOcOL.js → blockDiagram-I7D4REHJ-BDRQoIKI.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CZlh2u1A.js → blockDiagram-I7D4REHJ-BO6TccV1.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-DiBWN476.js → blockDiagram-I7D4REHJ-BWNVQ7Gz.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-DjghL9Ba.js → bn-BD-2XOGV67Q-VQD-Kmco.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-CMf0cOcM.js → c4Diagram-3f4bdde3-Cj02FLSR.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-plU3oizm.js → c4Diagram-7LVT6UL2-BPMcidFW.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-BYPUXI1P.js → c4Diagram-7LVT6UL2-CoSh2wjn.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-qmYneJtb.js → c4Diagram-7LVT6UL2-yq3lLpw3.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-J6FuV-ut.js → ca-ES-6MX7JW3Y-W4esLUmK.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-0MFBHjtq.js → celltoolbartracker-CxRPC2_P.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-B5DIEbuU.js → chunk-2Q5K7J3B-BM6msVjQ.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-Cj3jAIkT.js → chunk-2Q5K7J3B-ClmjTuJ8.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BfCPaxeK.js → chunk-2Q5K7J3B-Q4yuTBzL.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-DYeTGvz7.js → chunk-5VM5RSS4-BcDuf73d.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-g3id5Hpo.js → chunk-5VM5RSS4-daB-wV3g.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-BZGDG9GF.js → chunk-5VM5RSS4-g3qUjK0w.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DvclqQhV.js → chunk-F27PBJKO-BVFLgw2h.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-kACIRR-8.js → chunk-F27PBJKO-Bh4vuDL9.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-S3msebgW.js → chunk-F27PBJKO-CeF8R-xY.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DjIARM3y.js → chunk-IMKFNOWR-D0xfV4fA.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-SiS0o9FR.js → chunk-IMKFNOWR-DihmSer8.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-Ch7v5XHt.js → chunk-IMKFNOWR-JVdSvsGK.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-BwLKeh91.js → chunk-JWPE2WC7-B9R3G9XV.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-CVacxpin.js → chunk-JWPE2WC7-R5kOKFCi.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-M6oulZhu.js → chunk-JWPE2WC7-xLeWlifS.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DacAiEUG.js → chunk-POPQ4Y6H-BDTkHmFN.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-BCHaCocF.js → chunk-POPQ4Y6H-BWThom3B.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-DicNgh7k.js → chunk-POPQ4Y6H-DH11l_UL.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-COLBrDOd.js → chunk-SVP7TREG-B5krxfJG.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-Cit7UeF2.js → chunk-SVP7TREG-BIf35xVD.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-3X_ReA6d.js → chunk-SVP7TREG-gPNw7vXg.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-DfGZ1S46.js → chunk-TICWLB2K-BhQI0S0U.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-C4D-h9t1.js → chunk-TICWLB2K-BnmW9-rq.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-TaUeWpZb.js → chunk-TICWLB2K-ZniMXeAW.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-Bo_XDdf-.js → chunk-XXDRQBXY-B0pMdS4i.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-Bz5lFaJG.js → chunk-XXDRQBXY-CGxfHk6Z.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-B6fuzLc9.js → chunk-XXDRQBXY-CTBVYOwD.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-DDZ5U8jk.js → classDiagram-ZZMXUADV-BVgpaw2k.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-orzU8a0Z.js → classDiagram-ZZMXUADV-DZ_oaj8W.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-DpQTfwXC.js → classDiagram-ZZMXUADV-Pn2VInwp.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-CNI3U8Mt.js → classDiagram-f62afe4f-CbG4T64Y.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-CLQHn0oB.js → classDiagram-v2-604399ef-BY9qCJgc.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-DDZ5U8jk.js → classDiagram-v2-VYDZK3BY-BVgpaw2k.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-orzU8a0Z.js → classDiagram-v2-VYDZK3BY-DZ_oaj8W.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-DpQTfwXC.js → classDiagram-v2-VYDZK3BY-Pn2VInwp.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-DjmCcA6a.js → code-block-IT6T5CEO-BH-xK8dt.js} +1 -1
- package/dist-embed/chunks/{component-B62XEB_I.js → component-CHAmQtQO.js} +1 -1
- package/dist-embed/chunks/{core-CsMGn5rr.js → core-B-25xtEy.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-B_IELYPJ.js → cose-bilkent-JH36ORCC--dQRyne0.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CE9lt3OO.js → cose-bilkent-JH36ORCC-CCswhHys.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CJiHk5L4.js → cose-bilkent-JH36ORCC-CzSbL0t-.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-DTAS6DfQ.js → createText-aed3d8b3-C0l5-4ze.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-BJRVSuxc.js → cs-CZ-2BRQDIVT-BRaMX0Yn.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CyHkNAUC.js → cynefinDiagram-5FMLGOSQ-CCuKYj0g.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-B2073FgP.js → cynefinDiagram-5FMLGOSQ-Dv0bdW3s.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-HsJLw9Ow.js → cynefinDiagram-5FMLGOSQ-ULiO5ngX.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-DmvpQmCz.js → da-DK-5WZEPLOC-CHJSd-hL.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-DzmuuJ_r.js → dagre-GXQ25YYZ-BiEdL9_Y.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-R_lzFrVl.js → dagre-GXQ25YYZ-CQKZfFLy.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BkxHUUfX.js → dagre-GXQ25YYZ-CbxhqH-l.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-aRPZsjh8.js → de-DE-XR44H4JA-CtNUHnP5.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-1KpTTJPB.js → diagram-S7CK7UJ4-4cZ1l0Md.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-BANHWGqU.js → diagram-S7CK7UJ4-BbDaT9be.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-DsEYZOqE.js → diagram-S7CK7UJ4-C_K2XQ68.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BadWwEqS.js → diagram-UQ7AKVKN-BQGMd5WO.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-B-SbMZjY.js → diagram-UQ7AKVKN-DHkyqRGv.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-E5q5_JWL.js → diagram-UQ7AKVKN-NwCsVCGT.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-D_7x_Ody.js → diagram-VSXAHHWV-BOaVUYmv.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-BsdL7E17.js → diagram-VSXAHHWV-BRZfKN3x.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-B-ZTas3h.js → diagram-VSXAHHWV-C5Iv2HbC.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-BGyPrgPC.js → diagram-VX7I27RA-BRnBP8ma.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-C_1S9aIm.js → diagram-VX7I27RA-BYCgrvUs.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-CNSwTKHP.js → diagram-VX7I27RA-CRBBlvv5.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-B5t8N8ZT.js → diagram-Z3DM3KII-B3LW49_k.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-C2gtrmQ9.js → diagram-Z3DM3KII-CiCUrtKW.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-yVDxeysg.js → diagram-Z3DM3KII-CsjIQRhO.js} +1 -1
- package/dist-embed/chunks/dist-BwO-MYZO.js +1 -0
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-C7dUKFPT.js → ebnfDiagram-PWID7BFC-BaIi5Hrd.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-LCa7gn5F.js → ebnfDiagram-PWID7BFC-CCJeM8Fw.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-BgfF1EZn.js → ebnfDiagram-PWID7BFC-CopkaDiT.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-J2ON9YC7.js → edges-b2856ca0-C1lOjQnE.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-BBpO4fOL.js → el-GR-BZB4AONW-BdA68ZvY.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-BM5rHLzM.js → erDiagram-5d81789a-Dj3mpdgC.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CX1vL7D6.js → erDiagram-RLTQ6QDP-BB3sojlA.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-C35O3IA_.js → erDiagram-RLTQ6QDP-BtFCDuhD.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BguBlD55.js → erDiagram-RLTQ6QDP-CWSWn-p1.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-CyrQHwAL.js → es-ES-U4NZUMDT-O5foFWNy.js} +1 -1
- package/dist-embed/chunks/{esm-BaC41XaP.js → esm-Bx0lRTDo.js} +1 -1
- package/dist-embed/chunks/{esm-DNtiNaWu.js → esm-Som5GXlh.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-BJG9zHud.js → eu-ES-A7QVB2H4-DF43uSd5.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-BOnLqEaQ.js → fa-IR-HGAKTJCU-CodiokGb.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DdQTDw9O.js → fi-FI-Z5N7JZ37-C5RZVPNW.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-CLfj2Qv7.js → flowDb-185abca5-C-wCaq68.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-DjfIfqQ2.js → flowDiagram-1629c991-B0BqMZGm.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-DEVM2ZrI.js → flowDiagram-HODETNUW-l4GLkuOH.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-Cuv1YfzK.js → flowDiagram-HODETNUW-ncSEoBU5.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CmpkqsRJ.js → flowDiagram-HODETNUW-uoDrwD7v.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-4wSPcojK.js → flowDiagram-v2-1d953310-CbX1zFAU.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-Cb0xBerO.js → flowchart-elk-definition-6df44142-NO6Qs2xn.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-DQXpQs87.js → fr-FR-RHASNOE6-BecaN4ln.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-DI6DrFsY.js → ganttDiagram-3b0b3873-DJda4k6s.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DdKCj2ex.js → ganttDiagram-EL5Y4UJY-BNMzBAYm.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-CSmChevD.js → ganttDiagram-EL5Y4UJY-CyZOoQUx.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-drl1C7t5.js → ganttDiagram-EL5Y4UJY-D0pMMDIC.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-gYDVDk5C.js → gitGraphDiagram-WWUBYQGX-BbxTXier.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-PLhOfVTI.js → gitGraphDiagram-WWUBYQGX-DtiOT-6M.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Dna0JScG.js → gitGraphDiagram-WWUBYQGX-pM-0eEXc.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-BmE4UKm_.js → gitGraphDiagram-f01e8bc2-BY4Avza4.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DzfCce3N.js → gl-ES-HMX3MZ6V-v7rlIuX_.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-DRlcBbb7.js → he-IL-6SHJWFNN-CPDVuLW6.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-BrerMuM3.js → hi-IN-IWLTKZ5I-cv7JPHhI.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-DFTsPGh6.js → hu-HU-A5ZG7DT2-sIqhErzy.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-D0pKFdUL.js → id-ID-SAP4L64H-Bih05s5Z.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-Cc18qrXw.js → index-9bae90f3-B-h6Bmpj.js} +1 -1
- package/dist-embed/chunks/{index-46VEGuyz.js → index-B5fl-cx7.js} +2 -2
- package/dist-embed/chunks/{index-BQEWUnIX.js → index-B9DnJYjS.js} +1 -1
- package/dist-embed/chunks/{index-BzdaTJ02.js → index-BEkzae0W.js} +4 -4
- package/dist-embed/chunks/{index-B5W7CVUY.js → index-DE0JwlLw.js} +1 -1
- package/dist-embed/chunks/{index-BXY2kJ1z.js → index-Dm-b78og.js} +1 -1
- package/dist-embed/chunks/{index-CBWGYoQM.js → index-Dqc2hT2k.js} +1 -1
- package/dist-embed/chunks/{index-C-4crJTg.js → index-dBBA442C.js} +4 -4
- package/dist-embed/chunks/{index-h8lXpqtD.js → index-npitmnIA.js} +1 -1
- package/dist-embed/chunks/{index-CET7bv5d.js → index-qZXZK5qd.js} +1 -1
- package/dist-embed/chunks/index.esm-9neflYIr.js +1 -0
- package/dist-embed/chunks/{index.esm-fF--io5D.js → index.esm-shCygvgu.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DlOi-VkF.js → infoDiagram-27XIBGKW-BQ_FpbVx.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-BZLQcxTA.js → infoDiagram-27XIBGKW-BekHLcSS.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-Ir7z7vae.js → infoDiagram-27XIBGKW-CHWrtYbt.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-B_50LXsh.js → infoDiagram-a29d40f1-rAu-MoIO.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CmchLGEY.js → ishikawaDiagram-5VMMS53U-Cmb7AWZG.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CUxqPwbA.js → ishikawaDiagram-5VMMS53U-Cn4-zUna.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-Erx01g7S.js → ishikawaDiagram-5VMMS53U-Uk09zgQy.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-CbZLqWAE.js → it-IT-JPQ66NNP-C7yi7ISV.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-9xZnJjLg.js → ja-JP-DBVTYXUO-DfPIxAGi.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BRe0KiaN.js → journeyDiagram-3NMN7TZE-BuYQDwkV.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-C9s2og1s.js → journeyDiagram-3NMN7TZE-D86e9Y03.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-B6PqY62p.js → journeyDiagram-3NMN7TZE-DlZ7DnFk.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-BsoN0fKG.js → journeyDiagram-95396277-C2env92y.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-CO2r0Hb-.js → kaa-6HZHGXH3-DtvfFgz6.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-0WoWjCrc.js → kab-KAB-ZGHBKWFO-Cs_P0J-0.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CKIjAYbp.js → kanban-definition-UXKFOSKX-BgGOEpcs.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-B6PDcRlF.js → kanban-definition-UXKFOSKX-DBTVO8S2.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-BO0-y3yZ.js → kanban-definition-UXKFOSKX-jcrnmXSL.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DFQE1uuw.js → kk-KZ-P5N5QNE5-DX02WIig.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-D0Bja56Q.js → km-KH-HSX4SM5Z-C4yS0alE.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-C6MeQrMU.js → ko-KR-MTYHY66A-5P-CxGKE.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-CweepkXr.js → ku-TR-6OUDTVRD-B_CF--jS.js} +1 -1
- package/dist-embed/chunks/{layout-Bz98EP0E.js → layout-BzuSIVA6.js} +1 -1
- package/dist-embed/chunks/{layout-DPmNjViN.js → layout-DrQTHWcp.js} +1 -1
- package/dist-embed/chunks/{layout-mk0FGxVc.js → layout-ke1SehnF.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-Cj3BNPDC.js → lexicalHooks-mjCdxurM.js} +1 -1
- package/dist-embed/chunks/{lib-f60SfhfM.js → lib-77hal096.js} +1 -1
- package/dist-embed/chunks/{lib-tR3XRdBe.js → lib-BF0qLKx4.js} +1 -1
- package/dist-embed/chunks/{lib-0j0dfH8p.js → lib-BHN4er3T.js} +1 -1
- package/dist-embed/chunks/{lib-D8Ksfd49.js → lib-BL0Z7ZLN.js} +1 -1
- package/dist-embed/chunks/{lib-ku1U2GxE.js → lib-BbQRs6gq.js} +1 -1
- package/dist-embed/chunks/{lib-BItrfBU4.js → lib-BqYnt3B4.js} +1 -1
- package/dist-embed/chunks/{lib-DCBCbRKN.js → lib-C0IoKYd5.js} +1 -1
- package/dist-embed/chunks/{lib-DzVf9ZJD.js → lib-CSLo_71d.js} +1 -1
- package/dist-embed/chunks/{lib-CkKgTevD.js → lib-Clh_AUFx.js} +1 -1
- package/dist-embed/chunks/{lib-BmoHRaAo.js → lib-Cz1lLXyg.js} +1 -1
- package/dist-embed/chunks/{lib-Hgl-pfON.js → lib-DDBKY5pq.js} +1 -1
- package/dist-embed/chunks/{lib-B62N3zGB.js → lib-DJP5gvFi.js} +1 -1
- package/dist-embed/chunks/{lib-COg_k5cY.js → lib-DMTtt1wk.js} +1 -1
- package/dist-embed/chunks/{lib-DpZphKNm.js → lib-Jm05d6GV.js} +1 -1
- package/dist-embed/chunks/{lib-w650Gz0V.js → lib-KpC079PC.js} +1 -1
- package/dist-embed/chunks/{lib-CjicD0Pj.js → lib-WVhM2LQX.js} +1 -1
- package/dist-embed/chunks/{lib-BnAfx9wF.js → lib-_bLHZImL.js} +1 -1
- package/dist-embed/chunks/{lib-B01oDNlH.js → lib-jZS8hOW4.js} +1 -1
- package/dist-embed/chunks/{lib-CY6QUCzq.js → lib-q3E3Gmmk.js} +1 -1
- package/dist-embed/chunks/{lib-C-8NAvI1.js → lib-tF-FByVb.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-DrPOBOia.js → lt-LT-XHIRWOB4-BDdaHp0_.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-BlGiDUA0.js → lv-LV-5QDEKY6T-C4eEADZC.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-BiF8MSuv.js → mermaid.core-Do9KSWkx.js} +5 -5
- package/dist-embed/chunks/{mermaid.core-1p09QPXM.js → mermaid.core-ImjaHcFN.js} +3 -3
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-CEFrcqEk.js → mindmap-definition-YA3MSWOX-DQ5gBAUm.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-DpAy5heR.js → mindmap-definition-YA3MSWOX-DhjXREA8.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-t1pDKjS3.js → mindmap-definition-YA3MSWOX-DqaQ8KOs.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-DcepOwKv.js → mindmap-definition-e4c1d938-DoEOORm1.js} +1 -1
- package/dist-embed/chunks/{model-jLDiOPpQ.js → model-DUnnBi6P.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-BWEVprKf.js → mr-IN-CRQNXWMA-BWxvnaHu.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-BBxutJOz.js → my-MM-5M5IBNSE-CLLGJ71z.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-DJnrKa7W.js → nb-NO-T6EIAALU-CXXHz47F.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DQfv4h3e.js → nl-NL-IS3SIHDZ-DgvIFG1o.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-DiGj9RA6.js → nn-NO-6E72VCQL-CF-xs2ZW.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-WJRn50ji.js → oc-FR-POXYY2M6-Blnuf5JR.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-U7QCzNgm.js → pa-IN-N4M65BXN--oZas2yq.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-iE6rBtXO.js → pegDiagram-XKGWAZYB-B7vltnXv.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BlYwAwEo.js → pegDiagram-XKGWAZYB-D4e6HBvn.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-CudwiD3O.js → pegDiagram-XKGWAZYB-LNTV4YzJ.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-DhE6_GLO.js → percentages-BXMCSKIN-MAjQwr8F.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-CIawCiDR.js → pieDiagram-E7YTZNPT-BL6tcixN.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-Cy6Wueqp.js → pieDiagram-E7YTZNPT-DgV4Cy2T.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-DkhDYj7K.js → pieDiagram-E7YTZNPT-a4twxVx-.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-Ds-rlqjJ.js → pieDiagram-c941bede-C1NXxH3p.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-D5hzyBxL.js → pl-PL-T2D74RX3-CW7khEw8.js} +1 -1
- package/dist-embed/chunks/{plugin-BqLEv-U0.js → plugin-U4XZBswA.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-CAs1Vbwd.js → pt-BR-5N22H2LF-CBLbqrvY.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-f3BuGnIL.js → pt-PT-UZXXM6DQ-Boh5oA32.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-1ViFLfLW.js → quadrantDiagram-AXDQQJYC-BTBfnkpT.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-B30POsrM.js → quadrantDiagram-AXDQQJYC-CXiKbUwz.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CqArYUyr.js → quadrantDiagram-AXDQQJYC-Dy9EnqX6.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-QoN4fcns.js → quadrantDiagram-cf8b8fe0-BmuQ4zSn.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BelGMNLe.js → railroadDiagram-O6MQD6OU-BZgQtORC.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-nWQg4Zha.js → railroadDiagram-O6MQD6OU-D4ziu6ro.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BKrSAEIz.js → railroadDiagram-O6MQD6OU-DZJxMT9e.js} +1 -1
- package/dist-embed/chunks/{renderer-NdtLW87o.js → renderer-DTpEU9RO.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-DRQpj1S7.js → requirementDiagram-53bda41b-CZFqw_aX.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-C-ZNAzIA.js → requirementDiagram-BXWQKSXE-By8LT77q.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BsKIaNx-.js → requirementDiagram-BXWQKSXE-Dk3nxAMd.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-Dj_84sJE.js → requirementDiagram-BXWQKSXE-Dx1y_rw2.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-Ck6Pl6T-.js → ro-RO-JPDTUUEW-QpHkCZjx.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-B5ZFvbSm.js → ru-RU-B4JR7IUQ-C8-ztNrr.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BwrjNR9f.js → sankeyDiagram-P5KCCOFB-BARe0eo5.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DNcJ8lTV.js → sankeyDiagram-P5KCCOFB-D3-EpmdU.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CvESkMt0.js → sankeyDiagram-P5KCCOFB-DJG8GtNG.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-NSdOSIUQ.js → sankeyDiagram-c3ef121a-DzTFYWVL.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-Cxc06-S6.js → sequenceDiagram-82a5b84f-B0hIjr4n.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-vrbMF2lh.js → sequenceDiagram-WJ2MYXX4-BcB5M_uE.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-DYkcZR01.js → sequenceDiagram-WJ2MYXX4-CggwqzCL.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CdKf7EXa.js → sequenceDiagram-WJ2MYXX4-DD0JtyHN.js} +1 -1
- package/dist-embed/chunks/{sheet-BFp5lgzm.js → sheet-BQ9MLxvm.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-turarKuZ.js → si-LK-N5RQ5JYF-hqqq2gYS.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-B05-5pAF.js → sizeCapture-INFHLROL-BMuUFBVt.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-DBDGASUh.js → sizeCapture-INFHLROL-CpGgMlRe.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-BTK449Mq.js → sizeCapture-INFHLROL-DwbRJ4BV.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-B61Eejyh.js → sk-SK-C5VTKIMK-Cwov2m-p.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-Vmd7HFee.js → sl-SI-NN7IZMDC-BRxVCDIe.js} +1 -1
- package/dist-embed/chunks/{state-B-9Ja93T.js → state-OwYcN40e.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-BNfT8BMf.js → stateDiagram-43e79a5f-Bu9kA3H-.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-B4P4foWm.js → stateDiagram-D77RDMKH-CC58EPeY.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-DGy5pPcJ.js → stateDiagram-D77RDMKH-Cs4wIyOq.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-cX1LxuDW.js → stateDiagram-D77RDMKH-vD5bWUvd.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-DT_Cb2bL.js → stateDiagram-v2-2041ed4f-Od7A0mbg.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-CoF-m0JB.js → stateDiagram-v2-MP3YSRHH-DXfM0lWD.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-BSxDwfLM.js → stateDiagram-v2-MP3YSRHH-DwPQ0Ue3.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-GuE-uLPq.js → stateDiagram-v2-MP3YSRHH-l7s3F_nn.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-Cp1Ujuo8.js → styles-455b33cd-Ds_FotAH.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-CxoS5hwQ.js → styles-f932cba9-D0_uYfjw.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-ByLmqETE.js → styles-fcc2142b-Btmp_yd-.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-BsVAPxIg.js → subset-shared.chunk-Bwn3uV7D.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-BS8PIaQX.js → subset-worker.chunk-sLZsYGAm.js} +1 -1
- package/dist-embed/chunks/{substates-CeUNAPt2.js → substates-CRCFGJkO.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-C9lMr16n.js → sv-SE-XGPEYMSR-CFTcXTPe.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-BHhr6lti.js → svgDrawCommon-148a3cd9-BzG9z3G2.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DQJZa-xA.js → swimlanes-42K2YHIH-CXcSAQkI.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-RHIIyMRW.js → swimlanes-42K2YHIH-CbKvXXpE.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DKdFBGRm.js → swimlanes-42K2YHIH-Cn91OzZh.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-qQpIxgus.js → swimlanesDiagram-VR7AAH4N-BDYem9Qf.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-DPhzMK19.js → swimlanesDiagram-VR7AAH4N-C0oAnnos.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-rV-EK234.js → swimlanesDiagram-VR7AAH4N-KVXFaw6h.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-DDvtKbYb.js → ta-IN-2NMHFXQM-DOxRBGkF.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-Cuk9i9q1.js → th-TH-HPSO5L25-B66DJGUH.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-BYQXqujM.js → timeline-definition-24CTP7MA-BdFFNT8A.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CNJYLQV3.js → timeline-definition-24CTP7MA-BwHa8bSq.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-B0VfyyC9.js → timeline-definition-24CTP7MA-pOvrvUiT.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-B6u65RjP.js → timeline-definition-7545f45a-mktOQHwE.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-Dt5AbXXF.js → tr-TR-DEFEU3FU-4T2eEq6g.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-CqxkvO2g.js → uk-UA-QMV73CPH-DzInGHdV.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-ERcpoENM.js → vennDiagram-4TSXK5OY-DgP7uC-E.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-8GPjZ_rY.js → vennDiagram-4TSXK5OY-DpQuXqxB.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BC0uMGWS.js → vennDiagram-4TSXK5OY-DxCQybxm.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-CZtlZzss.js → vi-VN-M7AON7JQ-DqvR1smN.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DMJNYu8Y.js → wardleyDiagram-VM6X3IG4-1jMcvi60.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-Bubuc1xO.js → wardleyDiagram-VM6X3IG4-Dyv0LxbD.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DdRbpzRB.js → wardleyDiagram-VM6X3IG4-MyP5nqZ4.js} +1 -1
- package/dist-embed/chunks/workbook-5qhwFc45.js +1 -0
- package/dist-embed/chunks/{write-D-y9_9sL.js → write-DKnalcKH.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-CEkYRds9.js → xychartDiagram-3f383b91-CH6jxwtm.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-iG96dorC.js → xychartDiagram-S5SC5T6Z-CepDAfxw.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DKWKSC-B.js → xychartDiagram-S5SC5T6Z-FNQJ78h8.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-C0WCXM2P.js → xychartDiagram-S5SC5T6Z-euDlXTya.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-6_SDF9o2.js → zh-CN-LNUGB5OW-iQ1ZrxBq.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-em8dd9Nl.js → zh-HK-E62DVLB3-BjSHLy4a.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-BCzbAoXj.js → zh-TW-RAJ6MFWO-CqMWwcSn.js} +1 -1
- package/dist-embed/datalayer-app-main.js +62 -62
- package/lib/apps/agentUiPlugins.d.ts +7 -0
- package/lib/apps/agentUiPlugins.js +20 -0
- package/lib/apps/apps/AppRenderer.d.ts +1 -1
- package/lib/apps/apps/AppRenderer.js +22 -13
- package/lib/apps/core/index.d.ts +7 -0
- package/lib/apps/core/index.js +7 -0
- package/lib/apps/embed/AppEmbed.d.ts +3 -3
- package/lib/apps/embed/LoopEmbed.js +2 -0
- package/lib/apps/embed/embedConfig.d.ts +1 -1
- package/lib/apps/embed/embedConfig.js +1 -1
- package/lib/apps/plugins/chat/ChatView.js +11 -5
- package/lib/apps/plugins/chat/index.d.ts +6 -5
- package/lib/apps/plugins/limited-preview/LimitedPreviewIndicator.d.ts +31 -0
- package/lib/apps/plugins/limited-preview/LimitedPreviewIndicator.js +70 -0
- package/lib/apps/plugins/limited-preview/index.d.ts +37 -0
- package/lib/apps/plugins/limited-preview/index.js +53 -0
- package/lib/apps/plugins/limited-preview/preview.d.ts +101 -0
- package/lib/apps/plugins/limited-preview/preview.js +188 -0
- package/lib/apps/presets.d.ts +16 -0
- package/lib/apps/presets.js +18 -1
- package/lib/chat/anonymous/AnonymousChat.d.ts +8 -19
- package/lib/chat/anonymous/AnonymousChat.js +11 -43
- package/lib/chat/anonymous/anonymousMode.d.ts +8 -13
- package/lib/chat/anonymous/anonymousMode.js +0 -6
- package/lib/chat/index.d.ts +1 -1
- package/lib/chat/index.js +1 -1
- package/lib/chat/prompt/InputPrompt.d.ts +8 -1
- package/lib/chat/prompt/InputPrompt.js +8 -3
- package/lib/chat/prompt/stack.d.ts +9 -0
- package/lib/chat/prompt/stack.js +8 -4
- package/lib/specs/apps.js +0 -40
- package/package.json +1 -1
- package/scripts/codegen/generate_apps.py +4 -1
- package/dist-embed/chunks/ChatView-B9oVgZ72.js +0 -32
- package/dist-embed/chunks/SchemaForm-N0hu4z_p.js +0 -1
- package/dist-embed/chunks/SignInIcon-XIbntAUw.js +0 -1
- package/dist-embed/chunks/dist-BOLa5oLF.js +0 -1
- package/dist-embed/chunks/index.esm-DwyYEnhk.js +0 -1
- package/dist-embed/chunks/workbook-BQLbQvZ-.js +0 -1
package/lib/specs/apps.js
CHANGED
|
@@ -162,7 +162,6 @@ export const ACCOUNTING_APP_0_0_2 = {
|
|
|
162
162
|
emoji: '🧾',
|
|
163
163
|
avatar: '',
|
|
164
164
|
banner: '',
|
|
165
|
-
presentation: '',
|
|
166
165
|
setup: [],
|
|
167
166
|
};
|
|
168
167
|
export const AWS_STEWARD_AGENT_APP_0_0_1 = {
|
|
@@ -381,7 +380,6 @@ export const AWS_STEWARD_AGENT_APP_0_0_1 = {
|
|
|
381
380
|
emoji: '☁️',
|
|
382
381
|
avatar: '',
|
|
383
382
|
banner: '',
|
|
384
|
-
presentation: '',
|
|
385
383
|
setup: [],
|
|
386
384
|
};
|
|
387
385
|
export const BOOKKEEPING_DESK_APP_0_0_3 = {
|
|
@@ -588,7 +586,6 @@ export const BOOKKEEPING_DESK_APP_0_0_3 = {
|
|
|
588
586
|
emoji: '🗂️',
|
|
589
587
|
avatar: '',
|
|
590
588
|
banner: '',
|
|
591
|
-
presentation: '',
|
|
592
589
|
setup: [],
|
|
593
590
|
};
|
|
594
591
|
export const CHANGE_DETECTION_APP_0_0_2 = {
|
|
@@ -757,7 +754,6 @@ export const CHANGE_DETECTION_APP_0_0_2 = {
|
|
|
757
754
|
emoji: '🔍',
|
|
758
755
|
avatar: '',
|
|
759
756
|
banner: '',
|
|
760
|
-
presentation: '',
|
|
761
757
|
setup: ["The agent 'worker-change-detection:0.0.1' is not enabled."],
|
|
762
758
|
};
|
|
763
759
|
export const CODE_EXPLAINER_APP_0_0_1 = {
|
|
@@ -898,7 +894,6 @@ export const CODE_EXPLAINER_APP_0_0_1 = {
|
|
|
898
894
|
emoji: '🔦',
|
|
899
895
|
avatar: '',
|
|
900
896
|
banner: '',
|
|
901
|
-
presentation: '',
|
|
902
897
|
setup: ["The agent 'example-harness-opencode:0.0.1' is not enabled."],
|
|
903
898
|
};
|
|
904
899
|
export const CROP_MONITORING_APP_0_0_2 = {
|
|
@@ -1071,7 +1066,6 @@ export const CROP_MONITORING_APP_0_0_2 = {
|
|
|
1071
1066
|
emoji: '🌾',
|
|
1072
1067
|
avatar: '',
|
|
1073
1068
|
banner: '',
|
|
1074
|
-
presentation: '',
|
|
1075
1069
|
setup: ["The agent 'worker-crop-monitoring:0.0.1' is not enabled."],
|
|
1076
1070
|
};
|
|
1077
1071
|
export const CUSTOMER_INTERVIEW_APP_0_0_3 = {
|
|
@@ -1316,7 +1310,6 @@ export const CUSTOMER_INTERVIEW_APP_0_0_3 = {
|
|
|
1316
1310
|
emoji: '🎙️',
|
|
1317
1311
|
avatar: '',
|
|
1318
1312
|
banner: '',
|
|
1319
|
-
presentation: '',
|
|
1320
1313
|
setup: [],
|
|
1321
1314
|
};
|
|
1322
1315
|
export const DATA_QUALITY_APP_0_0_3 = {
|
|
@@ -1515,7 +1508,6 @@ export const DATA_QUALITY_APP_0_0_3 = {
|
|
|
1515
1508
|
emoji: '🧹',
|
|
1516
1509
|
avatar: '',
|
|
1517
1510
|
banner: '',
|
|
1518
|
-
presentation: '',
|
|
1519
1511
|
setup: [],
|
|
1520
1512
|
};
|
|
1521
1513
|
export const DECIDE_APP_0_0_2 = {
|
|
@@ -1651,7 +1643,6 @@ export const DECIDE_APP_0_0_2 = {
|
|
|
1651
1643
|
emoji: '⚖️',
|
|
1652
1644
|
avatar: '',
|
|
1653
1645
|
banner: '',
|
|
1654
|
-
presentation: '',
|
|
1655
1646
|
setup: [],
|
|
1656
1647
|
};
|
|
1657
1648
|
export const DECK_MAKER_APP_0_0_1 = {
|
|
@@ -1755,7 +1746,6 @@ export const DECK_MAKER_APP_0_0_1 = {
|
|
|
1755
1746
|
emoji: '🎞️',
|
|
1756
1747
|
avatar: '',
|
|
1757
1748
|
banner: '',
|
|
1758
|
-
presentation: '',
|
|
1759
1749
|
setup: ["The agent 'example-decks:0.0.1' is not enabled."],
|
|
1760
1750
|
};
|
|
1761
1751
|
export const DEMO_ACCOUNTANT_APP_0_0_8 = {
|
|
@@ -3052,7 +3042,6 @@ export const DEMO_SHOP_APP_0_0_1 = {
|
|
|
3052
3042
|
emoji: '🛍️',
|
|
3053
3043
|
avatar: '',
|
|
3054
3044
|
banner: '',
|
|
3055
|
-
presentation: '',
|
|
3056
3045
|
setup: [],
|
|
3057
3046
|
};
|
|
3058
3047
|
export const DEMO_SHOPPER_APP_0_0_12 = {
|
|
@@ -3717,7 +3706,6 @@ export const DISASTER_ASSESSMENT_APP_0_0_2 = {
|
|
|
3717
3706
|
emoji: '🌊',
|
|
3718
3707
|
avatar: '',
|
|
3719
3708
|
banner: '',
|
|
3720
|
-
presentation: '',
|
|
3721
3709
|
setup: ["The agent 'worker-disaster-assessment:0.0.1' is not enabled."],
|
|
3722
3710
|
};
|
|
3723
3711
|
export const ERRAND_RUNNER_APP_0_0_2 = {
|
|
@@ -3859,7 +3847,6 @@ export const ERRAND_RUNNER_APP_0_0_2 = {
|
|
|
3859
3847
|
emoji: '🏃',
|
|
3860
3848
|
avatar: '',
|
|
3861
3849
|
banner: '',
|
|
3862
|
-
presentation: '',
|
|
3863
3850
|
setup: [],
|
|
3864
3851
|
};
|
|
3865
3852
|
export const EVENT_RESPONSE_APP_0_0_3 = {
|
|
@@ -4005,7 +3992,6 @@ export const EVENT_RESPONSE_APP_0_0_3 = {
|
|
|
4005
3992
|
emoji: '🛡️',
|
|
4006
3993
|
avatar: '',
|
|
4007
3994
|
banner: '',
|
|
4008
|
-
presentation: '',
|
|
4009
3995
|
setup: ["The agent 'worker-event-response:0.0.1' is not enabled."],
|
|
4010
3996
|
};
|
|
4011
3997
|
export const EXCHANGE_DESK_APP_0_0_3 = {
|
|
@@ -4252,7 +4238,6 @@ export const EXCHANGE_DESK_APP_0_0_3 = {
|
|
|
4252
4238
|
emoji: '🏪',
|
|
4253
4239
|
avatar: '',
|
|
4254
4240
|
banner: '',
|
|
4255
|
-
presentation: '',
|
|
4256
4241
|
setup: [],
|
|
4257
4242
|
};
|
|
4258
4243
|
export const GUEST_DESK_APP_0_0_2 = {
|
|
@@ -4400,7 +4385,6 @@ export const GUEST_DESK_APP_0_0_2 = {
|
|
|
4400
4385
|
emoji: '🏨',
|
|
4401
4386
|
avatar: '',
|
|
4402
4387
|
banner: '',
|
|
4403
|
-
presentation: '',
|
|
4404
4388
|
setup: [],
|
|
4405
4389
|
};
|
|
4406
4390
|
export const INBOX_TRIAGE_APP_0_0_2 = {
|
|
@@ -4611,7 +4595,6 @@ export const INBOX_TRIAGE_APP_0_0_2 = {
|
|
|
4611
4595
|
emoji: '📬',
|
|
4612
4596
|
avatar: '',
|
|
4613
4597
|
banner: '',
|
|
4614
|
-
presentation: '',
|
|
4615
4598
|
setup: ["The agent 'worker-mail-triage:0.0.1' is not enabled."],
|
|
4616
4599
|
};
|
|
4617
4600
|
export const LIVE_SHOP_CHAT_APP_0_0_2 = {
|
|
@@ -4786,7 +4769,6 @@ export const LIVE_SHOP_CHAT_APP_0_0_2 = {
|
|
|
4786
4769
|
emoji: '💬',
|
|
4787
4770
|
avatar: '',
|
|
4788
4771
|
banner: '',
|
|
4789
|
-
presentation: '',
|
|
4790
4772
|
setup: [],
|
|
4791
4773
|
};
|
|
4792
4774
|
export const MARKETER_APP_0_0_1 = {
|
|
@@ -4975,7 +4957,6 @@ export const MARKETER_APP_0_0_1 = {
|
|
|
4975
4957
|
emoji: '📣',
|
|
4976
4958
|
avatar: '',
|
|
4977
4959
|
banner: '',
|
|
4978
|
-
presentation: '',
|
|
4979
4960
|
setup: [],
|
|
4980
4961
|
};
|
|
4981
4962
|
export const MODEL_CHOICE_APP_0_0_3 = {
|
|
@@ -5228,7 +5209,6 @@ export const MODEL_CHOICE_APP_0_0_3 = {
|
|
|
5228
5209
|
emoji: '🧠',
|
|
5229
5210
|
avatar: '',
|
|
5230
5211
|
banner: '',
|
|
5231
|
-
presentation: '',
|
|
5232
5212
|
setup: [],
|
|
5233
5213
|
};
|
|
5234
5214
|
export const MONTH_END_CLOSE_APP_0_0_2 = {
|
|
@@ -5398,7 +5378,6 @@ export const MONTH_END_CLOSE_APP_0_0_2 = {
|
|
|
5398
5378
|
emoji: '🗓️',
|
|
5399
5379
|
avatar: '',
|
|
5400
5380
|
banner: '',
|
|
5401
|
-
presentation: '',
|
|
5402
5381
|
setup: ["The agent 'worker-month-end-close:0.0.1' is not enabled."],
|
|
5403
5382
|
};
|
|
5404
5383
|
export const ORDER_DESK_APP_0_0_2 = {
|
|
@@ -5582,7 +5561,6 @@ export const ORDER_DESK_APP_0_0_2 = {
|
|
|
5582
5561
|
emoji: '📦',
|
|
5583
5562
|
avatar: '',
|
|
5584
5563
|
banner: '',
|
|
5585
|
-
presentation: '',
|
|
5586
5564
|
setup: [],
|
|
5587
5565
|
};
|
|
5588
5566
|
export const ORDER_TRACKER_APP_0_0_2 = {
|
|
@@ -5759,7 +5737,6 @@ export const ORDER_TRACKER_APP_0_0_2 = {
|
|
|
5759
5737
|
emoji: '🔖',
|
|
5760
5738
|
avatar: '',
|
|
5761
5739
|
banner: '',
|
|
5762
|
-
presentation: '',
|
|
5763
5740
|
setup: [],
|
|
5764
5741
|
};
|
|
5765
5742
|
export const PIPELINE_REPORT_APP_0_0_2 = {
|
|
@@ -6070,7 +6047,6 @@ export const PIPELINE_REPORT_APP_0_0_2 = {
|
|
|
6070
6047
|
emoji: '📈',
|
|
6071
6048
|
avatar: '',
|
|
6072
6049
|
banner: '',
|
|
6073
|
-
presentation: '',
|
|
6074
6050
|
setup: ["The agent 'cog-sales-pipeline-board-report:0.0.1' is not enabled."],
|
|
6075
6051
|
};
|
|
6076
6052
|
export const PLAYER_APP_0_0_1 = {
|
|
@@ -6174,7 +6150,6 @@ export const PLAYER_APP_0_0_1 = {
|
|
|
6174
6150
|
emoji: '🏓',
|
|
6175
6151
|
avatar: '',
|
|
6176
6152
|
banner: '',
|
|
6177
|
-
presentation: '',
|
|
6178
6153
|
setup: ["The agent 'example-player:0.0.1' is not enabled."],
|
|
6179
6154
|
};
|
|
6180
6155
|
export const QUOTE_CALCULATOR_APP_0_0_6 = {
|
|
@@ -6461,7 +6436,6 @@ export const QUOTE_CALCULATOR_APP_0_0_6 = {
|
|
|
6461
6436
|
emoji: '🧮',
|
|
6462
6437
|
avatar: '',
|
|
6463
6438
|
banner: '',
|
|
6464
|
-
presentation: '',
|
|
6465
6439
|
setup: [],
|
|
6466
6440
|
};
|
|
6467
6441
|
export const REPORT_FROM_A_FILE_APP_0_0_5 = {
|
|
@@ -6752,7 +6726,6 @@ export const REPORT_FROM_A_FILE_APP_0_0_5 = {
|
|
|
6752
6726
|
emoji: '📑',
|
|
6753
6727
|
avatar: '',
|
|
6754
6728
|
banner: '',
|
|
6755
|
-
presentation: '',
|
|
6756
6729
|
setup: [],
|
|
6757
6730
|
};
|
|
6758
6731
|
export const RETURNS_DESK_APP_0_0_2 = {
|
|
@@ -6939,7 +6912,6 @@ export const RETURNS_DESK_APP_0_0_2 = {
|
|
|
6939
6912
|
emoji: '↩️',
|
|
6940
6913
|
avatar: '',
|
|
6941
6914
|
banner: '',
|
|
6942
|
-
presentation: '',
|
|
6943
6915
|
setup: [],
|
|
6944
6916
|
};
|
|
6945
6917
|
export const SALES_APP_0_0_3 = {
|
|
@@ -7078,7 +7050,6 @@ export const SALES_APP_0_0_3 = {
|
|
|
7078
7050
|
emoji: '💼',
|
|
7079
7051
|
avatar: '',
|
|
7080
7052
|
banner: '',
|
|
7081
|
-
presentation: '',
|
|
7082
7053
|
setup: [
|
|
7083
7054
|
"The agent 'worker-sales-pipeline-board-report:0.0.1' is not enabled.",
|
|
7084
7055
|
],
|
|
@@ -7184,7 +7155,6 @@ export const SHEET_MAKER_APP_0_0_1 = {
|
|
|
7184
7155
|
emoji: '📊',
|
|
7185
7156
|
avatar: '',
|
|
7186
7157
|
banner: '',
|
|
7187
|
-
presentation: '',
|
|
7188
7158
|
setup: [
|
|
7189
7159
|
"The agent 'example-analyze-excel-spreadsheet:0.0.1' is not enabled.",
|
|
7190
7160
|
],
|
|
@@ -7409,7 +7379,6 @@ export const SHIP_OR_FIX_APP_0_0_3 = {
|
|
|
7409
7379
|
emoji: '🚢',
|
|
7410
7380
|
avatar: '',
|
|
7411
7381
|
banner: '',
|
|
7412
|
-
presentation: '',
|
|
7413
7382
|
setup: [],
|
|
7414
7383
|
};
|
|
7415
7384
|
export const SHOP_CONCIERGE_APP_0_0_2 = {
|
|
@@ -7586,7 +7555,6 @@ export const SHOP_CONCIERGE_APP_0_0_2 = {
|
|
|
7586
7555
|
emoji: '🛎️',
|
|
7587
7556
|
avatar: '',
|
|
7588
7557
|
banner: '',
|
|
7589
|
-
presentation: '',
|
|
7590
7558
|
setup: [],
|
|
7591
7559
|
};
|
|
7592
7560
|
export const SHOPPER_APP_0_0_2 = {
|
|
@@ -7710,7 +7678,6 @@ export const SHOPPER_APP_0_0_2 = {
|
|
|
7710
7678
|
emoji: '🧺',
|
|
7711
7679
|
avatar: '',
|
|
7712
7680
|
banner: '',
|
|
7713
|
-
presentation: '',
|
|
7714
7681
|
setup: [],
|
|
7715
7682
|
};
|
|
7716
7683
|
export const SHOPPING_DESK_APP_0_0_2 = {
|
|
@@ -7884,7 +7851,6 @@ export const SHOPPING_DESK_APP_0_0_2 = {
|
|
|
7884
7851
|
emoji: '🛍️',
|
|
7885
7852
|
avatar: '',
|
|
7886
7853
|
banner: '',
|
|
7887
|
-
presentation: '',
|
|
7888
7854
|
setup: [],
|
|
7889
7855
|
};
|
|
7890
7856
|
export const SIGN_IN_DESK_APP_0_0_2 = {
|
|
@@ -8061,7 +8027,6 @@ export const SIGN_IN_DESK_APP_0_0_2 = {
|
|
|
8061
8027
|
emoji: '🔐',
|
|
8062
8028
|
avatar: '',
|
|
8063
8029
|
banner: '',
|
|
8064
|
-
presentation: '',
|
|
8065
8030
|
setup: [],
|
|
8066
8031
|
};
|
|
8067
8032
|
export const SIGNED_READER_APP_0_0_2 = {
|
|
@@ -8204,7 +8169,6 @@ export const SIGNED_READER_APP_0_0_2 = {
|
|
|
8204
8169
|
emoji: '🔏',
|
|
8205
8170
|
avatar: '',
|
|
8206
8171
|
banner: '',
|
|
8207
|
-
presentation: '',
|
|
8208
8172
|
setup: [],
|
|
8209
8173
|
};
|
|
8210
8174
|
export const SUPPLIER_COMPARISON_APP_0_0_3 = {
|
|
@@ -8414,7 +8378,6 @@ export const SUPPLIER_COMPARISON_APP_0_0_3 = {
|
|
|
8414
8378
|
emoji: '🚚',
|
|
8415
8379
|
avatar: '',
|
|
8416
8380
|
banner: '',
|
|
8417
|
-
presentation: '',
|
|
8418
8381
|
setup: [],
|
|
8419
8382
|
};
|
|
8420
8383
|
export const SUPPORT_DESK_APP_0_0_5 = {
|
|
@@ -8747,7 +8710,6 @@ export const SUPPORT_DESK_APP_0_0_5 = {
|
|
|
8747
8710
|
emoji: '🛟',
|
|
8748
8711
|
avatar: '',
|
|
8749
8712
|
banner: '',
|
|
8750
|
-
presentation: '',
|
|
8751
8713
|
setup: ["The agent 'worker-document-qa:0.0.1' is not enabled."],
|
|
8752
8714
|
};
|
|
8753
8715
|
export const TRAVEL_DESK_APP_0_0_2 = {
|
|
@@ -8905,7 +8867,6 @@ export const TRAVEL_DESK_APP_0_0_2 = {
|
|
|
8905
8867
|
emoji: '✈️',
|
|
8906
8868
|
avatar: '',
|
|
8907
8869
|
banner: '',
|
|
8908
|
-
presentation: '',
|
|
8909
8870
|
setup: [],
|
|
8910
8871
|
};
|
|
8911
8872
|
export const WEB_RESEARCH_APP_0_0_2 = {
|
|
@@ -9056,7 +9017,6 @@ export const WEB_RESEARCH_APP_0_0_2 = {
|
|
|
9056
9017
|
emoji: '🔎',
|
|
9057
9018
|
avatar: '',
|
|
9058
9019
|
banner: '',
|
|
9059
|
-
presentation: '',
|
|
9060
9020
|
setup: [],
|
|
9061
9021
|
};
|
|
9062
9022
|
export const APP_CATALOGUE = {
|
package/package.json
CHANGED
|
@@ -405,7 +405,10 @@ def generate_typescript_code(
|
|
|
405
405
|
"",
|
|
406
406
|
]
|
|
407
407
|
for spec in specs:
|
|
408
|
-
|
|
408
|
+
# What TypeScript reads only when it is said: an application's presentation,
|
|
409
|
+
# as the Appspec's readers leave an empty one out.
|
|
410
|
+
said = {k: v for k, v in spec.items() if k != "presentation" or v}
|
|
411
|
+
body = json.dumps(_typescript_value(said), indent=2, ensure_ascii=False)
|
|
409
412
|
lines.extend([f"export const {_const_name(spec)}: AppSpec = {body};", ""])
|
|
410
413
|
lines.append("export const APP_CATALOGUE: Record<string, AppSpec> = {")
|
|
411
414
|
for spec in specs:
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import{ag as K,fi as To,r as s,j as n,hv as Eo,hw as Ro,cq as bs,B as S,H as Et,T as N,v as Q,dG as pn,fG as xn,hx as ce,a9 as Rt,y as Ao,hy as Mo,aI as Io,fm as Po,hz as Oo,bh as $o,hA as Uo,hB as _o,hC as Lo,hD as Fo,hE as Bo,hF as zo,hG as Os,f9 as $s,f7 as No,dC as Vo,fa as Sn,hH as Ho,hI as Do,hJ as Wo,hK as vs,hL as Go,hM as Us,hN as Ko,hO as Yo,hP as qo,hQ as _s,hR as Jo,hS as Ls,hT as Fs,hU as Qo,L as Zo,hV as Xo,dI as fn,I as Bs,hu as ea,bA as dt,D as zs,hW as xs,hX as ta,hY as na,E as sa,cP as oa,hZ as aa,h_ as ia,h$ as ra,i0 as la,i1 as ca,i2 as da,ab as mn,i3 as ua,i4 as pa,i5 as fa,i6 as ma,i7 as ga,i8 as ha,i9 as ba,ia as va,ib as xa,ic as Sa,id as ya,ie as wa,ig as ka,ih as Ca,ii as ja,ij as Ta,ik as Ea,il as Ra,im as Aa,io as Ma,ip as Ia,iq as pt,ir as Pa,is as Oa,it as $a,iu as Ua,iv as Ss,iw as _a,ix as Ke,iy as La,iz as Fa,cQ as ut,iA as Ba,iB as za,iC as ys,iD as Na,iE as Va,iF as Ha,iG as Da,iH as Wa,iI as Ga,iJ as Ka,iK as Ya,iL as qa,fQ as Ja,iM as At,iN as we,iO as Qa,iP as Za,iQ as Xa,iR as ei,iS as ws,iT as ti,iU as ni,iV as si,iW as oi,iX as ai,fO as ii,fS as ri,iY as li,iZ as ci,i_ as di,i$ as ui,j0 as pi,j1 as fi,j2 as mi,j3 as Mt,j4 as gi,j5 as hi,j6 as bi,j7 as vi,j8 as xi,j9 as Si,ja as yi,jb as ks,jc as wi,jd as ki,je as Ci,jf as ji,jg as Ti,jh as Cs,ji as yn,jj as Ei,a2 as gn,jk as Ri}from"../datalayer-app-main.js";import{S as Ai,E as Mi,a as Ii}from"./SignInIcon-XIbntAUw.js";import{F as Pi,a as Oi,b as $i}from"./LinkedInGreyIcon-eBP5iBjI.js";function Ns(){const e=K(To);return s.useMemo(()=>e.map(o=>o.value),[e])}const hn={github:{name:"github",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/github/callback"},google:{name:"google",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/google/callback"},linkedin:{name:"linkedin",oauth2CallbackServerRoute:"jupyter_iam/oauth2/callback",oauth2CallbackUIRoute:"/iam/oauth2/linkedin/callback"}},js=()=>{if(typeof document>"u")return"";const e=document.getElementById("datalayer-config-data");if(!e?.textContent)return"";try{const o=JSON.parse(e.textContent);return String(o?.iamUrl||"").replace(/\/$/,"")}catch{return""}},Ui=(e,o="Unable to start social sign-in.")=>{if(e instanceof Error&&e.message)return e.message;if(typeof e=="string"&&e.trim())return e;if(e&&typeof e=="object"&&"message"in e){const a=e.message;if(typeof a=="string"&&a.trim())return a}return o},_i=Oo`
|
|
2
|
-
.signin-input-theme-scope input:-webkit-autofill,
|
|
3
|
-
.signin-input-theme-scope input:-webkit-autofill:hover,
|
|
4
|
-
.signin-input-theme-scope input:-webkit-autofill:focus,
|
|
5
|
-
.signin-input-theme-scope input:-webkit-autofill:active,
|
|
6
|
-
.signin-input-theme-scope input:-webkit-autofill:disabled,
|
|
7
|
-
.signin-input-theme-scope textarea:-webkit-autofill,
|
|
8
|
-
.signin-input-theme-scope textarea:-webkit-autofill:hover,
|
|
9
|
-
.signin-input-theme-scope textarea:-webkit-autofill:focus,
|
|
10
|
-
.signin-input-theme-scope textarea:-webkit-autofill:active,
|
|
11
|
-
.signin-input-theme-scope textarea:-webkit-autofill:disabled {
|
|
12
|
-
-webkit-text-fill-color: var(--fgColor-default) !important;
|
|
13
|
-
caret-color: var(--fgColor-default) !important;
|
|
14
|
-
-webkit-box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
15
|
-
box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
16
|
-
background-color: var(--bgColor-default) !important;
|
|
17
|
-
transition: background-color 9999s ease-in-out 0s !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.signin-input-theme-scope input:disabled,
|
|
21
|
-
.signin-input-theme-scope textarea:disabled {
|
|
22
|
-
-webkit-text-fill-color: var(--fgColor-muted) !important;
|
|
23
|
-
-webkit-box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
24
|
-
box-shadow: 0 0 0 1000px var(--bgColor-default) inset !important;
|
|
25
|
-
background-color: var(--bgColor-default) !important;
|
|
26
|
-
opacity: 1 !important;
|
|
27
|
-
}
|
|
28
|
-
`,Li=({onSignIn:e,onApiKeySignIn:o,loginUrl:a,name:i,title:c="Datalayer OTEL",description:d="Sign in to access the observability dashboard.",icon:b,leadingIcon:l=n.jsx(Po,{size:24}),github:p=!1,google:h=!1,linkedin:y=!1,apiKey:g=!1,signUp:C=!0,socialSignInNavigationTarget:m,asDoc:f=!1,fillHeight:k=!0,hideHero:M=!1,calloutTitle:A,calloutDescription:ne,passwordToggleLabel:ke="Sign in with a password",signUpTitle:B="Don't have an account?",signUpDescription:It="Create a free Datalayer account with your email address.",signUpLabel:Pt="Sign up with email",signUpHref:Ot="https://datalayer.ai/signup",onSignUp:ue,forgotPasswordHref:Ce="/password",forgotPasswordLabel:pe="Forgot password?",showForgotPassword:$t=!0,socialButtonMarginTop:Ue=3,actionButtonMaxWidth:W=320})=>{const xe=f&&!M,Ye=i??(f&&c==="Datalayer OTEL"?"Datalayer Sign In":c),Ut=b??(f?n.jsx(Ai,{size:24}):l),j=s.useMemo(()=>{if(a)return a;const v=js();return v?`${v}/api/iam/v1/login`:"/api/iam/v1/login"},[a]),[te,ft]=s.useState(""),[Se,_t]=s.useState(""),[O,Lt]=s.useState(!1),[fe,Ft]=s.useState(!1),[$,_e]=s.useState(!1),[je,mt]=s.useState(!1),[me,qe]=s.useState(null),[Y,gt]=s.useState(null),[Te,Bt]=s.useState(""),[Ee,zt]=s.useState(null),[ht,se]=s.useState(null),{enqueueToast:ge}=Eo(),[Le,Je]=s.useState(!1),[he,Re]=s.useState(""),Qe=s.useRef(null),Ze=s.useCallback(v=>Ro()?bs.URLExt.join(bs.PageConfig.getBaseUrl(),v.oauth2CallbackServerRoute):`${window.location.protocol}//${window.location.hostname}${window.location.port?`:${window.location.port}`:""}${v.oauth2CallbackUIRoute}`,[]),oe=s.useMemo(()=>{if(typeof window>"u")return"/";const v=`${window.location.pathname}${window.location.search}${window.location.hash}`;return v.startsWith("/")?v:"/"},[]),Fe=s.useCallback(async v=>{if(!je){se(null),qe(v.name),mt(!0);try{const U=js(),q=new URLSearchParams({provider:v.name,callback_uri:Ze(v)}),J=m===void 0?void 0:String(m||"").trim(),tt=J===void 0?oe&&oe!=="/"?oe:void 0:J&&J.startsWith("/")&&!J.startsWith("//")?J:void 0;tt&&q.set("post_auth_redirect",tt);const I=`${U||""}/api/iam/v1/oauth2/authz/url?${q.toString()}`,L=await fetch(I),R=await L.json(),be=R?.autorization_url;if(!L.ok||!be)throw new Error(R?.message||"Unable to start social sign-in.");window.location.assign(be)}catch(U){const q=Ui(U);se(q),ge(q,{variant:"error"}),qe(null),mt(!1)}}},[Ze,oe,ge,je,m]);s.useEffect(()=>{Le&&Qe.current?.focus()},[Le]);const ae=s.useCallback(()=>{Je(!1),Re("")},[]),_=s.useCallback(()=>{!he.trim()||!o||(o(he.trim()),ae())},[he,o,ae]),Xe=s.useCallback(()=>{if(ue){ue();return}window.location.assign(Ot)},[ue,Ot]),Ae=s.useCallback(()=>{if(Ce){if(Ce.startsWith("http://")||Ce.startsWith("https://")){window.open(Ce,"_blank","noopener,noreferrer");return}window.location.assign(Ce)}},[Ce]),Be=s.useCallback(async()=>{if(!(f||!te||!Se||$)){_e(!0),se(null);try{const v=await fetch(j,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:te,password:Se})});if(!v.ok)throw new Error(`HTTP ${v.status}`);const U=await v.json();if(U.success&&U.token){const q=String(U?.user?.id||U?.user?.uid||"").trim();if(!!U?.user?.mfaUrl&&q){gt(q),zt(U.token),se(null);return}e&&e(U.token,te)}else se(U.message||"Invalid username or password.")}catch(v){se(v instanceof Error?v.message:String(v))}finally{_e(!1)}}},[f,te,Se,$,j,e]),ze=s.useCallback(async()=>{if(!(f||$||!Y||!Te.trim()||!Ee)){_e(!0),se(null);try{const v=new URL(j,window.location.origin),U=v.pathname.endsWith("/api/iam/v1/login")?v.href.replace(/\/api\/iam\/v1\/login$/,""):`${v.origin}`,q=await fetch(`${U}/api/iam/v1/users/${Y}/mfa/validate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userUid:Y,code:Te.trim()})}),J=await q.json();if(!q.ok||!J?.success)throw new Error(J?.message||"Failed to validate your MFA code.");e&&e(Ee,te)}catch(v){const U=v instanceof Error?v.message:String(v);se(U),ge(U,{variant:"error"})}finally{_e(!1)}}},[f,ge,te,$,j,Te,Ee,Y,e]),Z=s.useCallback(v=>{v.key==="Enter"&&(Y?ze():Be())},[Y,Be,ze]),et=je||$||f;return n.jsxs(S,{className:"signin-input-theme-scope",display:"flex",alignItems:M||xe||!k?"flex-start":"center",justifyContent:"center",minHeight:M||xe||!k?"auto":"100vh",bg:M?"transparent":"canvas.default",color:"fg.default",py:M?0:xe?2:4,children:[n.jsx(_i,{}),n.jsxs(S,{width:"100%",maxWidth:440,p:0,children:[!M&&n.jsxs(n.Fragment,{children:[n.jsxs(S,{display:"flex",alignItems:"center",gap:2,mb:xe?2:3,justifyContent:"center",children:[Ut,n.jsx(Et,{sx:{fontSize:3},children:Ye})]}),n.jsx(N,{as:"p",sx:{fontSize:1,color:"fg.muted",mb:xe?2:3,textAlign:"center"},children:d})]}),(A||ne)&&n.jsxs(S,{mb:3,textAlign:"center",children:[A&&n.jsx(Et,{as:"h3",sx:{fontSize:2,mb:1},children:A}),ne&&n.jsx(N,{sx:{color:"fg.muted",fontSize:1},children:ne})]}),!Y&&(p||h||y)&&n.jsxs(n.Fragment,{children:[p&&n.jsx(Q,{block:!0,size:"large",leadingVisual:me==="github"?()=>n.jsx(pn,{size:"small"}):Pi,disabled:et,onClick:()=>Fe(hn.github),sx:{mt:Ue,maxWidth:W,mx:"auto"},children:"Sign in with GitHub"}),h&&n.jsx(Q,{block:!0,size:"large",leadingVisual:me==="google"?()=>n.jsx(pn,{size:"small"}):Oi,disabled:et,onClick:()=>Fe(hn.google),sx:{mt:Ue,maxWidth:W,mx:"auto"},children:"Sign in with Google"}),y&&n.jsx(Q,{block:!0,size:"large",leadingVisual:me==="linkedin"?()=>n.jsx(pn,{size:"small"}):$i,disabled:et,onClick:()=>Fe(hn.linkedin),sx:{mt:Ue,maxWidth:W,mx:"auto"},children:"Sign in with LinkedIn"})]}),!Y&&!O&&n.jsx(S,{mt:3,display:"flex",justifyContent:"center",children:n.jsx(Q,{leadingVisual:xn,size:"large",block:!0,disabled:f||$||je,onClick:()=>Lt(!0),sx:{maxWidth:W,mx:"auto"},children:ke})}),!Y&&O&&n.jsxs(S,{mt:4,children:[n.jsxs(ce,{required:!0,sx:{mb:3},children:[n.jsx(ce.Label,{children:"Username"}),n.jsx(Rt,{autoFocus:!0,block:!0,placeholder:"Your username",value:te,disabled:$||f,onChange:v=>ft(v.target.value),onKeyDown:Z})]}),n.jsxs(ce,{required:!0,sx:{mb:3},children:[n.jsx(ce.Label,{children:"Password"}),n.jsx(Rt,{block:!0,placeholder:"Your password",type:fe?"text":"password",value:Se,disabled:$||f,onChange:v=>_t(v.target.value),onKeyDown:Z,trailingAction:n.jsx(Rt.Action,{onClick:()=>Ft(!fe),disabled:$||f,icon:fe?Mi:Ii,"aria-label":fe?"Hide password":"Show password",sx:{color:"var(--fgColor-muted)"}})})]}),n.jsxs(S,{display:"flex",alignItems:"center",justifyContent:"space-between",mt:3,children:[n.jsx(Q,{variant:"primary",disabled:$||f||!te||!Se,onClick:Be,children:$?"Signing in…":"Sign In"}),$t&&n.jsx(Ao,{as:"button",sx:{fontSize:1,cursor:f?"not-allowed":"pointer",background:"none",border:"none",opacity:f?.6:1},onClick:()=>{f||$||Ae()},children:pe})]})]}),Y&&n.jsxs(n.Fragment,{children:[n.jsxs(ce,{required:!0,sx:{mb:3,mt:2},children:[n.jsx(ce.Label,{children:"MFA Code"}),n.jsx(Rt,{autoFocus:!0,block:!0,placeholder:"Your MFA code",value:Te,disabled:$||f,onChange:v=>Bt(v.target.value),onKeyDown:Z})]}),n.jsx(Q,{variant:"primary",block:!0,disabled:$||f||!Te.trim(),onClick:ze,sx:{maxWidth:W,mx:"auto"},children:$?"Validating…":"Validate MFA Code"})]}),ht&&n.jsx(N,{sx:{color:"danger.fg",fontSize:1,mt:3,display:"block"},children:ht}),C&&n.jsxs(S,{mt:4,pt:4,textAlign:"center",borderTop:"1px solid",borderColor:"border.muted",children:[n.jsx(Et,{as:"h3",sx:{fontSize:2,mb:2},children:B}),n.jsx(N,{as:"p",sx:{color:"fg.muted",fontSize:1,mb:3},children:It}),n.jsx(S,{display:"flex",justifyContent:"center",children:n.jsx(Q,{variant:"primary",size:"large",leadingVisual:Mo,disabled:f||$,onClick:Xe,children:Pt})})]}),g&&o&&n.jsxs(n.Fragment,{children:[n.jsxs(S,{display:"flex",alignItems:"center",gap:2,my:3,children:[n.jsx(S,{flex:1,height:"1px",bg:"border.default"}),n.jsx(N,{sx:{fontSize:0,color:"fg.muted"},children:"or"}),n.jsx(S,{flex:1,height:"1px",bg:"border.default"})]}),n.jsx(Q,{block:!0,leadingVisual:xn,disabled:f||$||je,onClick:()=>Je(!0),sx:{maxWidth:W,mx:"auto"},children:"Sign in with an API Key"}),Le&&n.jsx(S,{role:"dialog","aria-modal":"true","aria-labelledby":"signin-api-key-title",onKeyDown:v=>{v.key==="Escape"&&ae()},onClick:ae,position:"fixed",inset:0,zIndex:200,p:3,bg:"canvas.backdrop",display:"flex",alignItems:"center",justifyContent:"center",children:n.jsxs(S,{as:"form",onClick:v=>v.stopPropagation(),onSubmit:v=>{v.preventDefault(),_()},width:"min(560px, 100%)",p:3,borderRadius:2,border:"1px solid",borderColor:"border.default",bg:"canvas.overlay",color:"fg.default",boxShadow:"shadow.large",children:[n.jsx(Et,{id:"signin-api-key-title",sx:{fontSize:2,mb:2},children:"Enter your API Key"}),n.jsxs(ce,{required:!0,children:[n.jsx(ce.Label,{children:"API Key"}),n.jsx(Io,{block:!0,required:!0,autoFocus:!0,placeholder:"Paste your API key here",value:he,onInput:v=>Re(v.currentTarget.value),ref:Qe})]}),n.jsxs(S,{mt:3,display:"flex",justifyContent:"flex-end",gap:2,children:[n.jsx(Q,{type:"button",onClick:ae,children:"Cancel"}),n.jsx(Q,{type:"submit",variant:"primary",disabled:!he.trim(),children:"Authenticate"})]})]})})]})]})]})},Ts=$o((e,o)=>({pending:void 0,suggest:(a,i)=>{const c=a.trim();c&&e({pending:{text:c,submit:i?.submit??!1,nonce:(o().pending?.nonce??0)+1}})},consume:()=>e({pending:void 0})}));function Fi(e){const{agentId:o,instructions:a,model:i,frontendTools:c,inference:d,subagents:b,sharing:l,onSubagentEvent:p,modeEffect:h}=e;return{type:"browser-vercel-ai",endpoint:"",agentId:o,enableConfigQuery:!1,options:{instructions:a,model:i,frontendTools:c,inference:d,subagents:b,sharing:l,onSubagentEvent:p,modeEffect:h}}}const Bi=({state:e})=>Uo[e];class zi extends Error{constructor(o,a){super(a),this.status=o,this.name="RuntimeRefusal"}status}function Ni({baseUrl:e,getAccessToken:o,fetch:a}){const i=e.replace(/\/+$/,""),c=(p={})=>{const h=o();return{...p,...h?{Authorization:`Bearer ${h}`}:{}}},d=async p=>{throw new zi(p.status,Fo(p.status,p.statusText,await Bo(p)))};return{json:async(p,h="GET",y)=>{const g=await a(`${i}${p}`,{method:h,headers:c({Accept:"application/json",...y===void 0?{}:{"Content-Type":"application/json"}}),...y===void 0?{}:{body:JSON.stringify(y)}});return g.ok?await g.json():d(g)},stream:async(p,h,{onEvent:y,signal:g},C="POST")=>{const m=await a(`${i}${p}`,{method:C,headers:c({"Content-Type":"application/json",Accept:"text/event-stream"}),body:JSON.stringify(h),signal:g});if(!m.ok)return d(m);await zo(m,y)},refused:d,headers:c,root:i,fetcher:a}}const D=e=>`/api/v1/apps/sessions/${encodeURIComponent(e)}`;function Vi(e){const{json:o,stream:a,fetcher:i,headers:c,refused:d,root:b}=Ni(e);return{serverUrl:b,accessToken:()=>e.getAccessToken(),start:(l,p)=>a("/api/v1/apps/sessions",{agent:l.agent,...l.deploymentUid?{deployment_uid:l.deploymentUid}:{},...l.appUid?{app_uid:l.appUid}:{},...l.version?{version:l.version}:{},...l.session?{session:l.session}:{},opener:l.opener},p),message:(l,p,h)=>a(`${D(l)}/messages`,{text:p},h),changeSettings:(l,p,h)=>a(`${D(l)}/settings`,{values:p},h,"PUT"),resume:(l,p,h)=>a(`${D(l)}/resume`,{agent:p},h),stop:l=>o(`${D(l)}/stop`,"POST"),end:l=>o(`${D(l)}/end`,"POST"),describe:l=>o(D(l)),described:async l=>Lo(await o(D(l))),list:(l={})=>{const p=new URLSearchParams;for(const[y,g]of Object.entries(l))g!==""&&g!==void 0&&g!==!1&&p.set(y,String(g));const h=p.toString();return o(`/api/v1/apps/sessions${h?`?${h}`:""}`)},swap:(l,p)=>o(`${D(l)}/agent`,"POST",{agent:p}),clone:(l,p={})=>o(`${D(l)}/clone`,"POST",{up_to_turn:p.upToTurn??null,agent:p.agent??null,title:p.title??""}),exportFile:async(l,p="")=>{const h=await i(`${b}${D(l)}/export${p?`?format=${encodeURIComponent(p)}`:""}`,{method:"GET",headers:c()});return h.ok?h.text():d(h)},importFile:async(l,p={})=>{const h=new URLSearchParams;p.agent&&h.set("agent",p.agent),p.format&&h.set("format",p.format);const y=h.toString(),g=await i(`${b}/api/v1/apps/sessions/import${y?`?${y}`:""}`,{method:"POST",headers:c({"Content-Type":"application/x-ndjson"}),body:l});return g.ok?await g.json():d(g)},rename:(l,p)=>o(`${D(l)}/title`,"PUT",{title:p}),archive:(l,p)=>o(`${D(l)}/archived`,"PUT",{archived:p}),switches:async l=>await o(`${D(l)}/switches`),switchIn:async(l,p)=>await o(`${D(l)}/switches`,"PUT",p),messages:async l=>_o((await o(`${D(l)}/messages`)).messages)}}const de="";function Hi(e){return{surfaceId:!e||e===Os?de:e,suspendedId:null}}function Di({agentName:e,sandboxStillRuns:o=!1,temporary:a=!0,onSignedIn:i,onSignUp:c}){const{configuration:d}=$s(),b=s.useCallback(l=>{No.getState().checkIAMToken(l),i?.()},[i]);return n.jsx(S,{height:"100%",minHeight:0,overflowY:"auto",bg:"canvas.default",px:4,py:4,children:n.jsxs(S,{maxWidth:440,mx:"auto",children:[n.jsxs(S,{display:"flex",alignItems:"center",justifyContent:"center",gap:2,color:"attention.fg",mb:2,children:[n.jsx(xn,{size:20}),n.jsx(N,{sx:{fontSize:2,fontWeight:"semibold",color:"fg.default"},children:a?"This demo runs on a shared key":"Your key has expired"})]}),n.jsxs(N,{as:"p",sx:{fontSize:1,color:"fg.muted",textAlign:"center",mb:3},children:[a?`${e??"The agent"} has used the time this key allows. Sign in to point your own agent at it, use your own data, and drop the time limit.`:`${e??"The agent"} stopped because your session ran out.`,o?" Your notebook is still running in this page.":""]}),a&&n.jsxs(S,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,mb:3,"data-anonymous-key-refresh":"",children:[n.jsx(N,{sx:{fontSize:1,color:"fg.muted",textAlign:"center"},children:"Or keep trying without an account: refreshing the page gives this demo a new key, and starts the conversation over."}),n.jsx(Q,{leadingVisual:Vo,onClick:()=>{typeof window<"u"&&window.location.reload()},children:"Refresh the page for a new key"})]}),n.jsx(Li,{hideHero:!0,fillHeight:!1,calloutTitle:"Sign in to keep going",github:!0,google:!0,linkedin:!0,socialSignInNavigationTarget:typeof window>"u"?void 0:`${window.location.pathname}${window.location.search}`,loginUrl:d?.iamUrl?`${d.iamUrl}/api/iam/v1/login`:void 0,onSignIn:b,onSignUp:c})]})})}const Wi="https://r1.datalayer.run";function Gi(e=!0,o=""){const{configuration:a}=$s(),i=Sn(p=>p.token),c=a?.aiInferenceUrl||Wi,d=Ho(c,e&&!i,o),b=i||d.token,l=s.useMemo(()=>({inferenceUrl:c,token:b||void 0}),[c,b]);return{inference:l,needsSignIn:Do(l),anonymous:d,inferenceUrl:c}}const Ki={name:"general-purpose",description:"A capable generalist for a task none of the specialists covers: research, reasoning, drafting, checking.",instructions:"You are a capable general-purpose assistant. Carry out the task you are given completely and report the result plainly, saying what you could not do."};function Es(e){const o=e?.subagents;if(!o)return[];const a=(o.subagents??[]).map(i=>{const c=i.ref?Wo(i.ref):void 0;return{name:i.name,description:i.description||c?.description||i.name,instructions:i.instructions??c?.systemPrompt,model:i.model??c?.model??o.defaultModel,icon:c?.icon}});return o.includeGeneralPurpose?[...a,Ki]:a}const Vs=e=>e.replace(/\/+$/,""),Yi=e=>e.split(":")[0];function qi(e,o){return`${Vs(e)}/api/v1/apps/agents/${encodeURIComponent(o)}/equipment`}function Ji(e,o){return`${Vs(e)}/api/v1/configure/models?agent_id=${encodeURIComponent(o)}`}const Qi=["started","starting","failed","not_started","left_out"],bn=e=>Array.isArray(e)?e.filter(o=>typeof o=="string"):[];function Zi(e){const o=e??{};return{servers:(o.mcp_servers??[]).map(a=>({id:String(a.id??""),name:String(a.name??a.id??""),optional:a.optional===!0,state:Qi.includes(a.state)?a.state:"not_started",...typeof a.reason=="string"&&a.reason?{reason:a.reason}:{},missingEnvVars:bn(a.missing_env_vars),...typeof a.tools=="number"?{tools:a.tools}:{}})),skills:(o.skills??[]).map(a=>({id:String(a.id??""),name:String(a.name??a.id??""),description:String(a.description??""),optional:a.optional===!0,state:a.state==="not_activated"?"not_activated":"active",...typeof a.reason=="string"&&a.reason?{reason:a.reason}:{},missingEnvVars:bn(a.missing_env_vars),oneOfEnvVars:bn(a.one_of_env_vars)}))}}function Xi(e){const o=e?vs[e]??vs[Yi(e)]:void 0,a=new Set(o?.optional?.mcpServers??[]),i=new Set(o?.optional?.skills??[]),c=o?[o.model,...o.modelAdditionals??[]].filter(d=>!!d):[];return{source:"declared",modelsSource:"declared",servers:(o?.mcpServers??[]).filter(Boolean).map(d=>({id:d.id,name:d.name||d.id,optional:a.has(d.id),missingEnvVars:[]})),skills:(o?.skills??[]).filter(Boolean).map(d=>({id:d.id,name:d.name||d.id,description:d.description??"",optional:i.has(d.id),missingEnvVars:[],oneOfEnvVars:[]})),models:[...new Set(c)].map((d,b)=>({id:d,name:Go(d)?.name??d,current:b===0}))}}function er(e,o){const a=Us(e),i=a.find(c=>c.id===o)?.id??a.find(c=>c.isAvailable!==!1)?.id;return a.map(c=>({...c,current:c.id===i}))}function tr({agentServerUrl:e,agentId:o,token:a,specId:i,model:c,enabled:d,refreshMs:b=3e4}){const l=s.useMemo(()=>Xi(i),[i]),[p,h]=s.useState(),[y,g]=s.useState();return s.useEffect(()=>{if(h(void 0),g(void 0),!d||!e||!o)return;let C=new AbortController;const m=a?{Authorization:`Bearer ${a}`}:{},f=()=>{C.abort(),C=new AbortController;const{signal:M}=C;fetch(qi(e,o),{headers:m,signal:M}).then(A=>A.ok?A.json():null).then(A=>{!M.aborted&&A&&h(Zi(A))}).catch(()=>{}),fetch(Ji(e,o),{headers:m,signal:M}).then(A=>A.ok?A.json():null).then(A=>{if(!M.aborted&&A){const ne=er(A,c);g(ne.some(ke=>ke.isAvailable!==!1)?ne:void 0)}}).catch(()=>{})};f();const k=setInterval(f,b);return()=>{clearInterval(k),C.abort()}},[d,e,o,a,c,b]),s.useMemo(()=>({source:p?"live":"declared",servers:p?.servers??l.servers,skills:p?.skills??l.skills,modelsSource:y&&y.length>0?"live":"declared",models:y&&y.length>0?y:l.models}),[p,y,l])}const Rs=new Map;function As(e,o){if(!_s.getState().sendRawMessage(e,o))throw new Error(`The runtime's monitoring stream is closed: ${String(e.type)} was not sent.`)}function nr(e,o,a){const i=o.find(c=>c.id===e);return i&&i.tools.length>0?i.tools.map(c=>c.name):(a?.servers.find(c=>c.id===e)?.tools??[]).map(c=>c.name)}function sr({agentId:e,status:o,servers:a}){const i=s.useMemo(()=>({enabled:Yo(o)??Rs,approved:Ko(o)??Rs}),[o]),[c,d]=s.useState({enabled:new Map,approved:new Map});s.useEffect(()=>{d({enabled:new Map,approved:new Map})},[i,e]);const b=s.useMemo(()=>new Map([...i.enabled,...c.enabled]),[i,c]),l=s.useMemo(()=>new Map([...i.approved,...c.approved]),[i,c]),p=s.useCallback((C,m)=>{As({type:"mcp_server_tools_set",serverId:C,enabledToolNames:Array.from(m)},e),d(f=>({...f,enabled:new Map(f.enabled).set(C,m)}))},[e]),h=s.useCallback((C,m)=>{const f=new Set(qo(b,C,nr(C,a,o)));f.has(m)?f.delete(m):f.add(m),p(C,f)},[b,a,o,p]),y=s.useCallback((C,m,f)=>p(C,f?new Set(m):new Set),[p]),g=s.useCallback((C,m)=>{const f=new Set(l.get(C)??[]),k=!f.has(m);As({type:"mcp_server_tool_approve",serverId:C,toolName:m,approved:k},e),k?f.add(m):f.delete(m),d(M=>({...M,approved:new Map(M.approved).set(C,f)}))},[l,e]);return{enabledMcpTools:b,approvedMcpTools:l,onToggleMcpTool:h,onToggleAllMcpServerTools:y,onToggleMcpToolApproval:g}}const Ms=e=>e instanceof Error?e.message:String(e);function or({client:e,uid:o,held:a,refresh:i,skillOn:c}){const[d,b]=s.useState(),[l,p]=s.useState();s.useEffect(()=>{if(p(void 0),!e||!o||!a){b(void 0);return}let m=!0;return e.switches(o).then(f=>{m&&b(f)},f=>{m&&(b(void 0),p(Ms(f)))}),()=>{m=!1}},[e,o,a,i]);const h=s.useCallback(m=>{if(!e||!d)throw new Error("This conversation is not held by its runtime yet: nothing to switch.");e.switchIn(o,m).then(f=>{b(f),p(void 0)},f=>p(Ms(f)))},[e,d,o]),y=s.useMemo(()=>new Map(Object.entries(d?.mcp_tools??{}).map(([m,f])=>[m,new Set(f)])),[d]),g=s.useMemo(()=>new Map(Object.entries(d?.mcp_approved??{}).map(([m,f])=>[m,new Set(f)])),[d]),C=s.useMemo(()=>new Set(Object.entries(d?.skills_approved??{}).filter(([,m])=>m).map(([m])=>m)),[d]);return{started:d!==void 0,refusal:l,enabledMcpTools:y,approvedMcpTools:g,skillsSwitched:d?.skills??{},approvedSkills:C,onToggleMcpTool:(m,f)=>h({kind:"tool",server:m,tool:f,enabled:!(y.get(m)?.has(f)??!0)}),onToggleAllMcpServerTools:(m,f,k)=>h({kind:"server",server:m,enabled:k}),onToggleMcpToolApproval:(m,f)=>h({kind:"tool_approval",server:m,tool:f,approved:!(g.get(m)?.has(f)??!1)}),onToggleSkill:m=>h({kind:"skill",skill:m,enabled:!(d?.skills[m]??c(m))}),onToggleAllSkills:(m,f)=>h({kind:"skills",skills:m,enabled:f}),onToggleSkillApproval:m=>h({kind:"skill_approval",skill:m,approved:!C.has(m)})}}function ar(e){return e.replace(/^datalayer_/,"").replace(/_lexical$/,"")}function ir(e){const o=ar(e);return/^executeCodeIn(Notebook|Document)$/.test(o)||/^(read|list)[A-Z]/.test(o)}function rr(e,o){return e.filter(a=>o?.has(a.name)||ir(a.name))}function lr(e,o){const a=i=>o&&i.value.id===`${o}-tools`?0:i.value.id==="notebook-tools"?1:2;return e.map((i,c)=>({entry:i,index:c,rank:a(i)})).sort((i,c)=>i.rank-c.rank||i.index-c.index).map(i=>i.entry)}function cr(e,o,a){if(!a||!e.endsWith("-tools"))return!1;const i=e.slice(0,-6);return o.has(i)&&i!==a}const dr={type:"object",properties:{}};function ur(e,o){const a=new Set(e.toolset);return e.commands.filter(i=>a.has(i.name)).map(i=>({name:i.name,description:i.description,parameters:i.parameters??dr,location:"frontend",handler:async c=>{if(!o)throw new Error(`${i.name}: the ${e.plugin??e.id} plugin is not mounted on this page.`);const d=Object.keys(c??{}).length>0?c:void 0,b=await o.executeCommand(i.command,d);return b===void 0?{ok:!0,command:i.command,argument:d}:b}}))}function Hs(e,o){return e.flatMap(a=>ur(a,o))}function pr(){const e=Jo(),o=Ns();return s.useMemo(()=>Hs(o,e),[o,e])}function fr(e){const o=e?.app_instance;if(!o||typeof o!="object")return"";const a=o.deployment_uid;return typeof a=="string"?a.trim():""}function mr(e,o,a){return e||!o?e:{id:a,messages:[]}}function gr(e){const o=(new URLSearchParams(e).get("session")??"").trim();if(!o)return"";if(!/^[A-Za-z0-9_-]{8,128}$/.test(o))throw new Error(`?session=${o} names no session: a session uid is 8 to 128 letters, digits, hyphens or underscores.`);return o}function hr({facts:e}){if(!e)return null;const o=Qo(e);return n.jsxs(S,{display:"inline-flex",alignItems:"center",gap:2,"data-session-state":e.state,children:[n.jsx(Zo,{size:"small",variant:e.state==="open"?"accent":e.state==="paused"?"attention":"secondary",children:Xo(e)}),o?n.jsx(N,{sx:{fontSize:0,color:"fg.muted"},"data-session-lineage":"",children:o}):null]})}function br({facts:e,turn:o,context:a}){const i=K(Ls),c=Fs(i,e,"turn");return!e||c.length===0||o<1?null:n.jsx(S,{display:"inline-flex",gap:1,"data-turn-actions":o,children:c.map(d=>n.jsx(Q,{size:"small",variant:"invisible","data-turn-action":d.id,onClick:()=>{Promise.resolve(d.run(e,{...a,atTurn:o})).catch(b=>a.say(String(b.message??b)))},children:d.label},d.id))})}function vr({uid:e,describe:o,context:a}){const i=K(Ls),[c,d]=s.useState(void 0),[b,l]=s.useState(!1),[p,h]=s.useState(""),[y,g]=s.useState(void 0),C={...a,show:a.show??g,say:k=>{h(k),a.say(k)}},m=s.useCallback(k=>{l(k),k&&e&&o(e).then(d,()=>d(void 0))},[o,e]);if(!e||i.length===0)return null;const f=Fs(i,c);return n.jsxs(n.Fragment,{children:[n.jsxs(fn,{open:b,onOpenChange:m,children:[n.jsx(fn.Anchor,{children:n.jsx(Bs,{icon:ea,"aria-label":"Session actions",variant:"invisible",size:"small","data-testid":"session-actions"})}),n.jsx(fn.Overlay,{width:"small",children:n.jsxs(dt,{children:[f.length===0?n.jsx(dt.Item,{disabled:!0,children:c?"Nothing applies to this session now.":"Reading the session…"}):f.map(k=>n.jsx(dt.Item,{"data-session-action":k.id,onSelect:()=>{c&&Promise.resolve(k.run(c,C)).catch(M=>C.say(String(M.message??M)))},children:k.label},k.id)),p?n.jsxs(n.Fragment,{children:[n.jsx(dt.Divider,{}),n.jsx(dt.Item,{disabled:!0,"data-testid":"session-actions-said",children:p})]}):null]})})]}),y?n.jsx(zs,{title:y.title,onClose:()=>g(void 0),width:"large",children:n.jsx(S,{"data-session-panel":"",children:y.render()})}):null]})}const Is={confirm:"Switch",cancel:"Keep it"};function xr({question:e,onPick:o}){const[a,i]=s.useState(e.options[0]?.id??""),[c,d]=s.useState("");s.useEffect(()=>{let l=!0;if(!e.says||!a){d("");return}return e.says(a).then(p=>l&&d(p),()=>l&&d("")),()=>{l=!1}},[a,e]);const b=e.options.find(l=>l.id===a);return n.jsx(zs,{title:e.title,onClose:()=>o(void 0),width:"medium",footerButtons:[{buttonType:"default",content:Is.cancel,onClick:()=>o(void 0)},{buttonType:"primary",content:Is.confirm,disabled:!a,onClick:()=>o(a||void 0)}],children:n.jsxs(S,{display:"grid",gap:3,"data-session-choose":"",children:[n.jsxs(ce,{children:[n.jsx(ce.Label,{children:e.title}),n.jsx(xs,{value:a,onChange:l=>i(l.target.value),block:!0,children:e.options.map(l=>n.jsx(xs.Option,{value:l.id,children:l.label},l.id))})]}),b?.description?n.jsx(N,{sx:{fontSize:1,color:"fg.muted"},children:b.description}):null,c?n.jsx(N,{as:"p",sx:{m:0,fontSize:1,fontStyle:"italic"},"data-session-choose-says":"",children:c}):null]})})}const Sr="var(--theme-accent)";function Ds({face:e,size:o}){return typeof e=="string"?n.jsx(ta,{emoji:e,size:o,label:""}):n.jsx(n.Fragment,{children:e})}function yr({face:e,size:o,state:a}){const i=a==="thinking"||a==="working",c=a==="paused";return n.jsxs(S,{as:"span","aria-hidden":!0,"data-presence":a,position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:o+8,height:o+8,flexShrink:0,fontSize:o,lineHeight:1,children:[n.jsx(S,{as:"span",position:"absolute",inset:0,borderRadius:"50%",boxShadow:c?"none":`0 0 0 2px ${Sr}`,border:c?"2px dashed":"none",borderColor:"border.default",opacity:i||a==="waiting"||c?.9:0,transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",animation:i?"loopPresenceBreath 1.8s ease-in-out infinite":"none",reducedMotion:{animation:"none"},sx:{"@keyframes loopPresenceBreath":{"0%, 100%":{transform:"scale(0.92)",opacity:.35},"50%":{transform:"scale(1.06)",opacity:.9}}}}),n.jsx(S,{as:"span",display:"inline-flex",opacity:c?.55:1,filter:c?"grayscale(0.6)":"none",transition:"opacity var(--theme-motion-status, 0ms) var(--theme-motion-easing, ease)",children:n.jsx(Ds,{face:e,size:o})})]})}function wr({state:e}){return n.jsx(N,{role:"status","aria-live":"polite","data-presence-line":e,sx:{fontSize:0,color:e==="waiting"?"fg.default":"fg.muted",fontWeight:e==="waiting"?"semibold":"normal",whiteSpace:"nowrap",flexShrink:0},children:Bi({state:e})})}const kr=yn(void 0),Cr=yn(""),jr=yn({}),Tr=1400,Ps=parseInt(Ri["--loop-face-large"],10),Er={};function Or({workspace:e}){const o=na(),a=sa(),i=s.useRef(null),c=s.useRef(void 0),{setViewControls:d}=e,b=s.useRef(e.setThread);b.current=e.setThread;const l=s.useCallback(()=>{const t=i.current?.thread();return t&&b.current?.(t),t},[]),[p,h]=s.useState(null),y=oa(),g=y.getConfig(aa),C=g?.placeholder||o.placeholder,m=g?.defaultSurface??"notebook",f=y.getConfig(ia),[k,M]=s.useState(de),[A,ne]=s.useState(null),ke=s.useRef(!1),B=K(ra),It=K(la),Pt=K(ca),ue=K(da)[0]?.value,pe=mn(ue?.promptStance??kr)??ue?.prompt,$t=K(ua),Ue=pa($t[0]?.value),W=s.useRef(Ue);W.current=Ue;const xe=s.useRef(""),Ye=K(fa),Ut=s.useMemo(()=>ma(()=>Ye.reduce((t,r)=>ga(t,r.value.extras.value),{})),[Ye]),j=mn(Ye.length>0?Ut:jr),te=s.useRef(new Set),ft=ha(Ei,e),Se=!ft.allowed,_t=Se?ft.reason??"Chat is unavailable for this sandbox":void 0,[O,Lt]=s.useState(!1),[fe,Ft]=s.useState(!1),[$,_e]=s.useState(!1),[je,mt]=s.useState({open:!1,pendingApproval:!1}),me=ba(O,je,g?.presence?.paused===!0),qe=g?.presence?.onPresence;s.useEffect(()=>{qe?.(me),W.current?.setPresence(me)},[qe,me]);const Y=s.useRef(g?.presence?.onSaying);Y.current=g?.presence?.onSaying;const gt=s.useRef({answering:!1}),Te=s.useCallback(t=>{i.current=t,Ft(!!t)},[]),Bt=s.useCallback(t=>{const{open:r,pendingApproval:u}=va(t);mt($e=>$e.open===r&&$e.pendingApproval===u?$e:{open:r,pendingApproval:u});const w={saying:Sa(t),answering:xa(t)},x=gt.current;(x.saying?.id!==w.saying?.id||x.saying?.text!==w.saying?.text||x.answering!==w.answering)&&(gt.current=w,Y.current?.(w));const ee=W.current;if(!ee)return;ee.items(t);const z=new Set(["complete","completed","done","error","failed","cancelled","canceled","rejected","denied","stopped"]),le={insertcell:"adding a cell",updatecell:"editing a cell",runcell:"running a cell",deletecells:"removing cells",readallcells:"reading the notebook",readcell:"reading a cell",executecode:"running code",insertblock:"adding a block",updateblock:"editing a block",runblock:"running a block",readdocument:"reading the document"};let E;for(let $e=t.length-1;$e>=0;$e-=1){const Tt=t[$e];if(typeof Tt.toolName=="string"&&Tt.toolCallId){z.has(String(Tt.status).toLowerCase())||(E=Tt);break}}if(!E){ee.activity(void 0);return}const Oe=E.toolName.toLowerCase().replace(/^datalayer_/,"").replace(/_lexical$/,"").replace(/[^a-z]/g,""),jo=le[Oe]??`using ${E.toolName}`;ee.activity(`${xe.current||"The agent"} is ${jo}…`)},[]),Ee=s.useRef(j);Ee.current=j;const zt=s.useCallback(t=>{so(t),W.current?.usage(t),Ee.current.onUsage?.(t)},[]),ht=s.useCallback(t=>{Lt(t),t||W.current?.end("done")},[]),se=s.useCallback(t=>{const r=W.current;if(!r)return;let u=-1;for(let x=t.length-1;x>=0;x-=1)if(t[x].role==="user"){u=x;break}const w=t.slice(u+1).filter(x=>x.role==="assistant").map(ya).filter(x=>x.trim().length>0).join(`
|
|
29
|
-
|
|
30
|
-
`);r.assistant(w)},[]),ge=s.useRef([]),Le=s.useRef(!1),Je=s.useRef(void 0),he=s.useRef(void 0),Re=s.useRef(void 0),Qe=K(wa),Ze=s.useRef(Qe);Ze.current=Qe;const oe=s.useCallback((t,r)=>{if(he.current)return he.current;const u=Re.current;Re.current=void 0;const w=ka(Ze.current.map(z=>z.value),u?{...r??{},voice:u}:r),x=w?.loop;if(Le.current&&x?.files&&x.files.length>0){const z=Je.current;if(!z)return"A file is given to an application running on a runtime: run it on Datalayer or on your machine to give it one.";let le;try{le=x.files.map(E=>({file:ja(String(E.name??"")),base64:Ca(String(E.data_url??""))}))}catch(E){return E instanceof Error?E.message:String(E)}z.execute(Ta(le)).then(E=>{if(!E.success){h(`The files could not be put in the sandbox: ${E.error??"it failed"}.`);return}oe(`${t}
|
|
31
|
-
|
|
32
|
-
${Ea(le.map(Oe=>Oe.file))}`,{...w,loop:Object.fromEntries(Object.entries(x).filter(([Oe])=>Oe!=="files"))})});return}W.current?.begin(t,l());const ee=i.current?.send;if(!ee){ge.current.push([t,w]);return}ee(t,w)},[l]);s.useEffect(()=>{d(fe?{busy:O,stop:i.current?.stop,newChat:i.current?.newChat,send:oe}:null)},[O,fe,d,oe]),s.useEffect(()=>()=>d(null),[d]),s.useEffect(()=>e.prompts.subscribe(oe),[e.prompts,oe]),s.useEffect(()=>{if(!fe||ge.current.length===0)return;const t=ge.current.splice(0,ge.current.length);for(const[r,u]of t)l(),i.current?.send(r,u)},[fe,l]);const Fe=s.useRef(!1),ae=s.useCallback(async t=>{h(null);const r=await Ra(Ee.current,t);if(r){r.sent?at(""):h(r.refused);return}Fe.current||(Fe.current=!0,f?.firstPromptHook?.());const u=await e.submit(t);if(!u.handled){h(u.reason??null);return}at(""),u.result?.content&&h(u.result.content)},[e,f?.firstPromptHook]),_=s.useMemo(()=>B.find(t=>t.value.surfaceId===k)?.value,[B,k]),Xe=s.useCallback(t=>{ke.current=!0;const r=Hi(t);ne(r.suspendedId),M(r.surfaceId)},[]);s.useEffect(()=>Aa(Xe),[Xe]),s.useEffect(()=>{Ma(B.map(t=>t.value.surfaceId))},[B]),s.useEffect(()=>{Ia(k&&k!==de?k:Os)},[k]);const Ae=s.useMemo(()=>m===de||m==="none"?void 0:B.find(t=>t.value.surfaceId===m),[B,m]);s.useEffect(()=>{ke.current||!Ae||pt(Ae.value,e)&&M(m)},[Ae,e,m]);const Be=s.useRef(null),ze=g?.fullScreenTopOffset??0,{fullScreen:Z,usingApi:et,toggle:v,topOffsetPx:U}=Pa(Be,{forceOverlay:!!ze,topOffset:ze}),[q,J]=s.useState(!1),tt=s.useRef(!1);s.useEffect(()=>{!O||tt.current||Z||(tt.current=!0,J(!0))},[O,Z]),s.useEffect(()=>{Z&&J(!1)},[Z]),s.useEffect(()=>{_&&!pt(_,e)&&(ne(_.surfaceId),M(de))},[_,e]);const bt=s.useMemo(()=>{if(A)return B.find(t=>t.value.surfaceId===A)?.value;if(!ke.current&&k===de)return Ae?.value},[B,A,k,Ae]);s.useEffect(()=>{if(!A||k!==de)return;const t=B.find(r=>r.value.surfaceId===A);t&&pt(t.value,e)&&(ne(null),M(A))},[B,k,A,e]);const I=e.agentId?.trim()||"default",L=Oa(e.sandbox.target??"local");Le.current=L;const R=$a(),be=mn(R?.selected??Cr),P=R?.members.find(t=>t.id===be),wn=K(Ua)[0]?.value,Nt=wn?.specId,F=Ss(P?.specId??I)??(Nt?Ss(Nt):void 0),Ne=P?void 0:wn,kn=L&&!P?Ti(Nt,F):void 0;xe.current=P?.name??F?.name??I;const Cn=K(_a),jn=j.hiddenOpeners,Tn=j.hideOpeners,Vt=j.openers,Ht=s.useMemo(()=>{if(Tn)return[];const t=new Set(jn??[]),r=E=>t.size===0?E:E.filter(Oe=>!t.has(Oe.text));if(Vt)return r(Vt);const u=Cn.flatMap(E=>E.value.suggestions);if(u.length>0)return r(u);const w=r(F?.suggestions??[]),x=r(R?.team.suggestions??[]);if(x.length===0)return w;const ee=new Set(x.map(E=>E.text)),z=R?.team.name??"Team",le=P?.name??F?.name??I;return[...x.map(E=>({...E,group:z})),...w.filter(E=>!ee.has(E.text)).map(E=>({...E,group:le}))]},[Cn,R,F,P,I,jn,Tn,Vt]),vt=s.useMemo(()=>Ht.map(t=>({title:t.summary??t.text,message:t.message??t.text,group:t.group})),[Ht]),Dt=Ke(F?.icon),G=g?.presence,Ws=Ke(R?.team.icon),En=K(La),xt=s.useMemo(()=>{const t=[],r=new Map,u=new Set,w=new Set(B.map(x=>x.value.surfaceId));for(const x of lr(En,_?.surfaceId)){if(cr(x.value.id,w,_?.surfaceId))continue;let ee;try{ee=x.value.tools(e)}catch(z){console.warn(`[loop] frontend tools from '${x.plugin}' failed:`,z);continue}for(const z of ee){const le=r.get(z.name);if(le){console.warn(`[loop] frontend tool '${z.name}' from '${x.plugin}' is shadowed by the one from '${le}'.`);continue}r.set(z.name,x.plugin),t.push(z),x.value.chatView&&u.add(z.name)}}for(const x of j.frontendTools??[])r.has(x.name)||(r.set(x.name,"chat-extras"),t.push(x),u.add(x.name));return _?t:rr(t,u)},[En,e.surfaceId,e.agentId,j.frontendTools,_?.surfaceId,B]),Wt=pr(),nt=s.useMemo(()=>{if(Wt.length===0)return xt;const t=new Set(xt.map(r=>r.name));return[...xt,...Wt.filter(r=>!t.has(r.name))]},[xt,Wt]),Rn=Ns(),Gt=j.agentToolBundles,Gs=s.useMemo(()=>{const t=j.frontendTools??[];if(!Gt?.length)return j.frontendTools;const r=Hs(Rn.filter(w=>Gt.includes(w.id)),y),u=new Set(t.map(w=>w.name));return[...t,...r.filter(w=>!u.has(w.name))]},[j.frontendTools,Gt,Rn,y]);Je.current=L&&nt.some(t=>t.name===Fa)?y.getOutput(ut)?.sandbox:void 0;const T=Ba(e.sandbox,e.serverUrl),Ve=s.useMemo(()=>Vi({baseUrl:T??"",getAccessToken:()=>c.current,fetch:(t,r)=>fetch(t,r)}),[T]),An=K(za),Ks=s.useMemo(()=>An.filter(t=>t.value.composer).map(t=>({name:t.value.name,description:t.value.description})),[An]),Ys=s.useMemo(()=>{if(!R||!P)return Es(F).map(u=>({name:u.name,description:u.description,icon:Ke(u.icon)}));const t=R.members.map(u=>({name:u.name,description:u.description,emoji:u.emoji,icon:Ke(u.icon),disabled:u.id===P.id,disabledReason:u.id===P.id?`You are already talking to ${u.name}`:void 0})),r=ys(R.team,P.id).filter(u=>!R.members.some(w=>w.name===u.name)).map(u=>({name:u.name,description:u.description,icon:Ke(u.icon)}));return[...t,...r]},[R,P,F]),qs=Na(y.getConfig(ut)),{inference:Mn,anonymous:Js}=Gi(L,qs),Kt=Sn(t=>t.user),Yt=L&&Js.status==="expired",In=!Kt,st=Va();he.current=st.disabled?st.disableReason||"This conversation is closed here.":void 0;const St=T===void 0?Ha(e.sandbox,o):void 0,yt=y.getConfig(ut)?.datalayerVisitors,qt=Da(yt),ie=g?.anonymous,Jt=Wa(ie?.maxTurns),Qt=!!(ie&&yt&&!qt.error&&e.sandbox.state!=="error"&&(!qt.token||T===void 0)),wt=ie?Jt.refused:"",Pn=s.useRef(!1),On=Jt.take;s.useEffect(()=>{ie&&O&&!Pn.current&&On(),Pn.current=O},[ie,O,On]);const Qs=Ga(ie??Er),ot=Qt||!!wt||Se||Yt||!!kn||!!St||st.disabled,$n=Qt?Ka.validating:wt||(Yt?In?o.demoKeyExpired:o.keyExpired:kn??St??_t??(st.disabled?st.disableReason:void 0)),[Zt,at]=s.useState(""),[Un]=Ya(),it=s.useMemo(()=>g?.voice?qa(g.voice,Un):void 0,[g?.voice,Un]),[Zs,Xs]=s.useState(!1),[eo,_n]=s.useState(),kt=eo??Ne?.model??F?.model??e.model??"",He=Ja(),Ln=s.useRef(He),Fn=s.useRef(be),Bn=s.useRef(He);Bn.current=He,s.useEffect(()=>{Fn.current!==be&&(Fn.current=be,Ln.current=Bn.current,_n(void 0))},[be]);const to=He&&He!==Ln.current?He:null,[no,so]=s.useState(),oo=to??no??null,ao=At(we.inpromptMenu),zn=At(we.promptAction),Nn=At(we.chatHeader),Vn=At(we.chatBanner),io=s.useMemo(()=>R?.members.map(t=>({id:t.id,name:t.name,description:t.description,icon:Ke(t.icon)}))??[],[R]),Me=Ts(t=>t.pending),[Hn,ro]=s.useState(0);s.useEffect(()=>Qa(()=>ro(t=>t+1)),[]),s.useEffect(()=>{Me&&(at(Me.text),Ts.getState().consume(),Me.submit&&ae(Me.text))},[Me]);const Xt=y.getConfig(ut)?.datalayerCreatePayload,V=!!(Ne?.createPayload?.app_spec||Xt?.app_spec),en=fr(Xt),lo=Sn(t=>t.token),co=y.getConfig(ut)?.embedToken,ve=yt?qt.token:co||lo;c.current=ve||void 0;const uo=s.useMemo(()=>Za(g?.voice,ve||void 0),[g?.voice,ve]),ye=!!(en||yt),Dn=!!G&&V&&!L,Wn=tr({agentServerUrl:T,agentId:I,token:ve||void 0,specId:Rr(Ne?.createPayload?.app_spec??Xt?.app_spec),enabled:Dn});if(ye&&!V)throw new Error("A deployment’s page runs its application: its host gave no app_spec.");const[Gn]=s.useState(Xa),[tn,po]=s.useMemo(()=>{try{return[gr(typeof window>"u"?"":window.location.search),""]}catch(t){return["",t instanceof Error?t.message:String(t)]}},[]),[Kn,fo]=s.useState(void 0),H=s.useMemo(()=>Kn??mr(g?.thread??(tn&&V?{id:tn,messages:[],fromRuntime:!0}:void 0),en,Gn),[Kn,g?.thread,tn,V,en,Gn]),[De,Yn]=s.useState(null),mo=!!(H?.fromRuntime&&De?.given!==H.id);s.useEffect(()=>{if(!H?.fromRuntime||!V||!T)return;let t=!0;return(async()=>{let r="";for(let u=0;u<4&&t;u+=1)try{const w=await ei({agentBaseUrl:T,agentId:I,uid:H.id,token:ve});t&&Yn({given:H.id,thread:{...H,fromRuntime:!1,messages:w}});return}catch(w){r=w instanceof Error?w.message:String(w),await new Promise(x=>setTimeout(x,1500))}t&&Yn({given:H.id,thread:{id:ti(),messages:[],onStarted:H.onStarted},said:ws.notOpened(r)})})(),()=>{t=!1}},[H?.id,H?.fromRuntime,V,T,I,ve]);const nn=H?.fromRuntime?De?.given===H.id?De.thread:void 0:H,re=e.thread||nn?.id||"",[qn,Jn]=s.useState(void 0),[go,Qn]=s.useState(0),Zn=s.useRef("");s.useEffect(()=>{O&&re&&(Zn.current=re)},[O,re]);const sn=!!H?.fromRuntime||!!(e.thread&&e.thread===re)||Zn.current===re;s.useEffect(()=>{if(!V||!T||!re||O||!sn)return;let t=!0;return Ve.described(re).then(r=>t&&Jn(r),()=>t&&Jn(void 0)),()=>{t=!1}},[V,T,re,O,sn,go,Ve]);const[Xn,es]=s.useState(po),[ts,ns]=s.useState(null),on=s.useRef(null),an=s.useRef(null),ss=s.useRef(null),os=s.useMemo(()=>({client:Ve,say:t=>{es(t),Qn(r=>r+1)},openThread:t=>{fo({id:t,messages:[],fromRuntime:!0}),Qn(r=>r+1)},download:(t,r,u)=>{const w=URL.createObjectURL(new Blob([r],{type:u})),x=document.createElement("a");x.href=w,x.download=t,x.click(),URL.revokeObjectURL(w)},choose:t=>new Promise(r=>{on.current=r,ns(t)}),pickFile:t=>new Promise(r=>{const u=ss.current;if(!u){r(void 0);return}an.current=r,u.accept=t,u.value="",u.click()})}),[Ve]),Ct=s.useMemo(()=>L?Fi({agentId:P?.specId??I,instructions:ni(F,Ne?.instructions),model:kt||void 0,inference:Mn,frontendTools:nt,subagents:R&&P?ys(R.team,P.id):Es(F),sharing:R?.sharing,onSubagentEvent:t=>_s.getState().appendSubagentEvent(t),modeEffect:Ne?.modeEffect}):T!==void 0?{type:"ag-ui",endpoint:V?`${T}/api/v1/apps/agents/${encodeURIComponent(I)}/ag-ui/`:`${T}/api/v1/ag-ui/${I}/`,...V&&ve?{authToken:ve}:{},...V?{uiSocket:`${T.replace(/^http/,"ws")}/api/v1/apps/ui`,uiFiles:`${T}/api/v1/apps/agents/${encodeURIComponent(I)}/files`,appSessions:`${T}/api/v1/apps/sessions`,...ye?{ownRoutesOnly:!0}:{}}:{},agentId:I,configEndpoint:`${T}/api/v1/configure`,enableConfigQuery:!0}:void 0,[I,L,Mn,P,nt,R,F,Ne,kt,T,V,ve,ye]),rt=si(!L&&Ct?.type==="ag-ui",Ct?.type==="ag-ui"?Ct.configEndpoint:void 0,void 0,I),Ie=oi(),We=ai(I),ho=ii(),as=j.mcpStatusData??ho??void 0,bo=ri(),lt=sr({agentId:I,status:as,servers:rt.data?.mcpServers??[]}),is=bo==="connected",rn=!is&&V&&!!T,[rs,ln]=s.useState(void 0),[vo,xo]=s.useState(void 0);s.useEffect(()=>{if(L||T===void 0)return;const t=li(T,I,ye);if(!t){ln([]);return}let r=!1;return fetch(t).then(u=>u.ok?u.json():null).then(u=>{r||(ln(u?Us(u):[]),xo(u?ci(u):void 0))}).catch(()=>{r||ln([])}),()=>{r=!0}},[T,I,L,ye]);const So=s.useMemo(()=>di(ui(rs,()=>Object.values(pi).filter(t=>t.available&&fi(t)).map(t=>({id:t.id,name:t.name,provider:t.provider}))),!!Kt),[rs,Kt]),ls=s.useMemo(()=>{const t=rt.data?.builtinTools??[],r=new Set(t.map(u=>u.name));return{runtime:t,frontend:nt.filter(u=>!r.has(u.name)).map(u=>({id:u.name,name:u.name}))}},[rt.data?.builtinTools,nt]),cn=s.useMemo(()=>new Set((Ie.data?.skills??[]).filter(t=>t.status==="enabled"||t.status==="loaded").map(t=>t.id)),[Ie.data]),cs=s.useMemo(()=>new Set((Ie.data?.skills??[]).filter(t=>t.approved===!0).map(t=>t.id)),[Ie.data]),X=or({client:rn?Ve:void 0,uid:re,held:sn,refresh:O,skillOn:t=>cn.has(t)||Wn.skills.some(r=>r.id===t&&r.state==="active")}),yo=is?void 0:rn?X.started?void 0:Cs.locked.notStarted:Cs.locked.notConnected,wo=s.useCallback(async t=>{if(ye)throw new Error("A deployment’s chat does not switch its runtime’s model.");_n(t),!(L||T===void 0)&&await fetch(`${T}/api/v1/configure/inference/provider`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({model:t})}).catch(()=>{})},[T,L,ye]),ds=g?.promptPlacement==="bottom-chat",ko=g?.promptPlacement==="floating",Ge=g?.promptPlacement==="top",ct=g?.hidePrompt===!0||j.hidePrompt===!0,dn=Pt[0]?.value.Component,un=!g?.hideHeader&&!!dn,Pe=ie?{...Jt,refused:wt,config:ie,name:G?.name??P?.name??F?.name??"",validating:Qt,headerShown:un,minutes:xi,signIn:Qs}:null,Co={onSend:()=>{ae(Zt)},input:Zt,setInput:at,focusTrigger:Me||Hn?(Me?.nonce??0)+Hn:void 0,placement:ko||pe==="floating"||pe==="floating-top"||pe==="floating-bottom"?"floating":"docked",floatingAnchor:pe==="floating-top"?"top":"bottom",isLoading:O,onStop:()=>e.viewControls.stop?.(),placeholder:$n??j.sendInstead?.says??C,typingSuggestions:Ht.map(t=>t.text),suggestions:vt,disableInputPrompt:ot,connectionConfirmed:!ot,interim:Zs,padding:Ge||pe==="floating-top"||pe==="floating-bottom"||pe==="docked-top"?2:3,promptVariant:"lexical",autoFocus:g?.autoFocusPrompt??!0,mentionableAgents:Ys,promptCommands:Ks,headerContent:ao.length>0?n.jsx(Mt,{slot:we.inpromptMenu,props:{workspace:e}}):void 0,footerExtras:ie||zn.length>0||it&&it.input!=="off"?n.jsxs(n.Fragment,{children:[ie?n.jsx(mi,{}):null,zn.length>0?n.jsx(Mt,{slot:we.promptAction,props:{workspace:e}}):null,it&&it.input!=="off"?n.jsx(gi,{voice:it,input:Zt,setInput:at,disabled:ot,speaking:$,onStopSpeaking:()=>i.current?.stopSpeaking?.(),playbackLevel:()=>i.current?.voiceLevel?.()??0,running:O,onStopRun:()=>(i.current?.interrupt??i.current?.stop)?.(),onInterrupted:()=>i.current?.markInterrupted(),onInterimChange:Xs,answers:!!(g?.voice?.output&&g.voice.output!=="off"&&g.voice.speechUrl),onSpoken:t=>{Re.current=t},send:(t,r)=>{Re.current=r,ae(t)}}):null]}):void 0,showAgentsMenu:!G,showInlineAgentsMenu:!1,agents:io,selectedAgentId:be,onSelectAgent:t=>R?.select(t),showTokenUsage:j.showTokenUsage??g?.showTokenUsage??!0,showContextRing:!0,agentUsage:oo??void 0,showModelSelector:!G&&!ye,models:So,decisions:vo,selectedModel:kt,onModelSelect:t=>{wo(t)},showToolsMenu:!G,availableTools:ls.runtime,availableFrontendTools:ls.frontend,mcpServers:rt.data?.mcpServers??[],mcpStatusData:as,showMcpMenu:!0,showSkillsMenu:!0,skills:Ie.data?.skills??[],skillsLoading:Ie.isLoading,enabledSkills:cn,...rn?{enabledMcpTools:X.enabledMcpTools,approvedMcpTools:X.approvedMcpTools,onToggleMcpTool:X.onToggleMcpTool,onToggleAllMcpServerTools:X.onToggleAllMcpServerTools,onToggleMcpToolApproval:X.onToggleMcpToolApproval,skillsSwitched:X.skillsSwitched,approvedSkills:X.approvedSkills,onToggleSkill:X.onToggleSkill,onToggleAllSkills:X.onToggleAllSkills,onToggleSkillApproval:X.onToggleSkillApproval,switchRefusal:X.refusal}:{enabledMcpTools:lt.enabledMcpTools,approvedMcpTools:lt.approvedMcpTools,onToggleMcpTool:lt.onToggleMcpTool,onToggleAllMcpServerTools:lt.onToggleAllMcpServerTools,onToggleMcpToolApproval:lt.onToggleMcpToolApproval,approvedSkills:cs,onToggleSkill:t=>cn.has(t)?We.disableSkill(t):We.enableSkill(t),onToggleAllSkills:(t,r)=>t.forEach(u=>r?We.enableSkill(u):We.disableSkill(u)),onToggleSkillApproval:t=>cs.has(t)?We.unapproveSkill(t):We.approveSkill(t)},codemodeEnabled:j.codemodeEnabled??!1,onToggleCodemode:j.onToggleCodemode,isA2AProtocol:!1,hasConfigData:!!rt.data,hasSkillsData:!!Ie.data,...Dn?{equipment:Wn}:{},switchesLocked:yo},us=It[0]?.value.Component,jt=us?n.jsx(us,{workspace:e,composer:Co}):null,ps=B.length>0&&g?.showSurfaceSelector!==!1?n.jsx(Ar,{surfaces:B.map(t=>t.value),active:_?.surfaceId??bt?.surfaceId??de,onChange:Xe,workspace:e}):null,fs=n.jsxs(n.Fragment,{children:[B.map(t=>{const r=t.value,u=_?.surfaceId===r.surfaceId;return u||te.current.has(r.surfaceId)||pt(r,e)?(te.current.add(r.surfaceId),n.jsx(S,{sx:u?{flex:"1 1 0",minWidth:0,minHeight:0}:{position:"absolute",inset:0,visibility:"hidden",pointerEvents:"none",zIndex:-1},children:n.jsx(hi,{load:r.load,props:{surfaceId:r.surfaceId,workspace:e},fallback:n.jsxs(vn,{children:["Loading ",r.title,"…"]}),errorFallback:x=>n.jsxs(vn,{children:[r.title," failed to load: ",x.message]})})},r.surfaceId)):null}),!_&&bt?n.jsx(S,{flex:"1 1 0",minWidth:0,minHeight:0,children:n.jsxs(vn,{children:["Starting ",bt.title,"…"]})}):null]}),ms=n.jsx(n.Fragment,{children:n.jsxs(S,{flex:Ge&&_?"0 0 34%":"1 1 0",maxWidth:Ge&&_?460:void 0,minWidth:0,minHeight:0,display:"flex",flexDirection:"column",borderLeft:_?"1px solid":void 0,borderColor:"border.default",position:"relative",children:[j.errorBanner?n.jsx(S,{flexShrink:0,px:3,py:2,fontSize:1,borderBottom:"1px solid",bg:j.errorBanner.variant==="warning"?"attention.subtle":"danger.subtle",color:j.errorBanner.variant==="warning"?"attention.fg":"danger.fg",borderColor:j.errorBanner.variant==="warning"?"attention.muted":"danger.muted",children:j.errorBanner.message}):null,De?.said&&De.given===H?.id?n.jsx(N,{as:"p",role:"status",sx:{m:0,px:3,py:2,fontSize:1,color:"fg.muted"},children:De.said}):null,Xn?n.jsxs(S,{display:"flex",alignItems:"baseline",gap:2,px:3,py:2,fontSize:1,color:"fg.muted",role:"status","data-session-said":"",children:[n.jsx(N,{sx:{flex:1},children:Xn}),n.jsx(Q,{size:"small",variant:"invisible",onClick:()=>es(""),children:"Dismiss"})]}):null,ts?n.jsx(xr,{question:ts,onPick:t=>{ns(null),on.current?.(t),on.current=null}}):null,n.jsx("input",{ref:ss,type:"file",hidden:!0,"data-session-file":"",onChange:async t=>{const r=t.target.files?.[0],u=r?await r.text():void 0;an.current?.(u),an.current=null}}),n.jsx(S,{flex:"1 1 auto",minHeight:0,display:"flex",children:mo?n.jsx(N,{as:"p",role:"status",sx:{m:0,p:3,fontSize:1,color:"fg.muted"},children:ws.opening}):n.jsx(bi,{themeVariant:g?.themeVariant,themeOverrides:g?.themeOverrides,colorMode:g?.colorMode,thread:nn,voice:uo,disabled:ot,disableReason:$n,protocol:Ct,frontendTools:L?void 0:Gs,initialModel:kt||void 0,title:G?.name??P?.name??F?.name??I,description:G?.welcome??F?.description,brandIcon:G?.face?n.jsx(yr,{face:G.face,size:20,state:me}):n.jsx(Dt,{size:20}),headerLeading:e.chatHeaderLeading,headerContent:G&&!St||Vn.length>0?n.jsxs(n.Fragment,{children:[G&&!St?n.jsx(wr,{state:me}):null,Vn.length>0?n.jsx(Mt,{slot:we.chatBanner,props:{workspace:e}}):null]}):void 0,emptyState:{icon:G?.face?n.jsx("span",{"aria-hidden":!0,style:{fontSize:Ps,lineHeight:1},children:n.jsx(Ds,{face:G.face,size:Ps})}):n.jsx(Dt,{size:48}),title:G?.name??P?.name??F?.name??I,...R&&P?{sections:[{group:R.team.name,icon:n.jsx(Ws,{size:48}),title:R.team.name,subtitle:R.team.description},{group:P.name,icon:n.jsx(Dt,{size:32}),title:P.name,subtitle:F?.description}]}:null},suggestions:Ge||ue||g?.suggestionLabels===!1?[]:vt,showHeader:un,headerButtons:{showNewChat:g?.headerButtons?.newChat??!1,showClear:g?.headerButtons?.clear??!1},renderHeader:dn?t=>n.jsx(dn,{workspace:e,header:e.chatViewModes?{...t,chatViewMode:e.chatViewModes.value,onChatViewModeChange:e.chatViewModes.onChange,offeredViewModes:e.chatViewModes.offered}:t}):void 0,showInformation:!0,headerItems:[...e.chatHeaderActions?[{key:"workspace-actions",type:"custom",pinned:!0,render:()=>e.chatHeaderActions}]:[],...Pe&&!Pe.validating&&!Pe.refused?[{key:"anonymous-key-clock",type:"custom",render:()=>n.jsx(vi,{state:Pe})}]:[],...V&&T?[{key:"session-state",type:"custom",render:()=>n.jsx(hr,{facts:qn})},{key:"session-actions",type:"custom",pinned:!0,render:()=>n.jsx(vr,{uid:re||void 0,describe:t=>Ve.described(t),context:os})}]:[],...Nn.map(t=>{const r=t.Component;return{key:`slot-${t.slot}:${t.id}`,type:"custom",priority:-1,render:()=>n.jsx(r,{workspace:e})}}),...e.chatHeaderTrailing?[{key:"right-panel-toggle",type:"custom",pinned:!0,render:()=>e.chatHeaderTrailing}]:[],{key:"full-screen",type:"custom",pinned:!0,render:()=>n.jsx(Bs,{icon:Z?Si:yi,"aria-label":Z?"Exit full screen":"Enter full screen",variant:"invisible",size:"small",onClick:()=>{J(!1),v()},sx:q?{"@keyframes dla-fullscreen-hint":{"0%, 100%":{opacity:1},"50%":{opacity:.4}},"&&":{bg:`color-mix(in srgb, ${a.primary} 16%, transparent)`,boxShadow:`inset 0 0 0 1.5px ${a.primary}`,animation:`dla-fullscreen-hint ${Tr}ms ease-in-out infinite`},"@media (prefers-reduced-motion: reduce)":{"&&":{animation:"none"}}}:void 0})}],showInput:!1,onSendReady:Te,notebookToolSurfacesId:_?void 0:e.surfaceId,showTurnFooter:j.showTokenUsage??g?.showTokenUsage??!0,onContextSnapshot:zt,onLoadingChange:ht,renderMessageFooter:V&&T?(t,r)=>t.role==="user"?n.jsx(br,{facts:qn,turn:r.turn,context:os}):null:void 0,onSpeakingChange:_e,onItemsChange:se,onDisplayItemsChange:Bt,enableStreaming:!0},nn?.id)}),!un&&Nn.length>0?n.jsx(S,{hidden:!0,children:n.jsx(Mt,{slot:we.chatHeader,props:{workspace:e}})}):null,ds&&!ct?jt:null]})}),gs=g?.suggestionLabels!==!1&&vt.length>0?n.jsx(S,{"aria-label":o.suggestedPrompts,display:"flex",flexWrap:"wrap",gap:2,px:2,pb:"6px",children:vt.map(t=>n.jsx(S,{as:"button",type:"button",title:t.message,disabled:O||ot,onClick:()=>{ae(t.message)},appearance:"none",font:"inherit",fontSize:0,fontWeight:"semibold",lineHeight:1.25,px:"10px",py:"5px",width:ks,flex:`0 0 ${ks}px`,borderRadius:"999px",border:"1px solid",bg:"canvas.subtle",whiteSpace:"nowrap",sx:{borderColor:"border.default",color:"fg.default",cursor:"pointer","&:hover:not(:disabled)":{borderColor:"accent.fg",color:"accent.fg"},"&:disabled":{opacity:.5,cursor:"default"}},children:n.jsx(wi,{title:t.title,maxWidth:"100%",sx:{minWidth:0},children:t.title})},t.title))}):null,hs=p?n.jsx(S,{flex:"0 0 auto",px:3,py:2,borderTop:"1px solid",borderColor:"border.default",bg:"canvas.subtle",fontSize:1,maxHeight:"40%",overflowY:"auto",children:p}):null;return n.jsx(ki,{value:Pe,children:n.jsxs(S,{ref:Be,sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",position:"relative",...Z?{bg:"canvas.default"}:null,...Z&&!et.current?{position:"fixed",top:U,right:0,bottom:0,left:0,height:"auto",zIndex:1e3}:null},children:[Pe?n.jsx(S,{flex:"0 0 auto",children:n.jsx(Ci,{state:Pe})}):null,ue?n.jsx(ue.Component,{workspace:e,editors:fs,hasEditor:!!_,transcript:ms,prompt:ct?null:jt,chips:ct?null:gs,picker:ps,transient:hs}):n.jsxs(n.Fragment,{children:[Ge&&!ct?n.jsxs(S,{flex:"0 0 auto",borderBottom:"1px solid",borderColor:"border.default",children:[jt,gs]}):null,ps,n.jsxs(S,{flex:"1 1 auto",minHeight:0,display:"flex",position:"relative",children:[fs,ms]}),hs,ds||ct||Ge?null:jt]}),Yt?n.jsx(S,{position:"absolute",inset:0,zIndex:5,bg:"canvas.default",display:"flex",flexDirection:"column",minHeight:0,children:n.jsx(Di,{agentName:P?.name??F?.name,sandboxStillRuns:L,temporary:In,onSignedIn:()=>ji.getState().clear()})}):null]})})}function Rr(e){const o=e?.agent;return typeof o=="string"&&o?o:void 0}function Ar({surfaces:e,active:o,onChange:a,workspace:i}){const c=[...e].sort((d,b)=>(d.order??100)-(b.order??100));return n.jsxs(S,{flex:"0 0 auto",display:"flex",alignItems:"center",gap:2,px:3,py:2,borderBottom:"1px solid",borderColor:"border.default",children:[n.jsx(N,{sx:{fontSize:0,color:"fg.muted"},children:"Beside the chat"}),n.jsxs(gn,{"aria-label":"Editor beside the chat",size:"small",children:[n.jsx(gn.Button,{selected:o===de,onClick:()=>a(de),children:"Chat"}),c.map(d=>{const b=pt(d,i),l=b?void 0:d.unavailableReason?.(i)??"Not available right now";return n.jsx(gn.Button,{selected:o===d.surfaceId,"aria-disabled":!b,title:l??d.title,leadingIcon:d.icon,onClick:()=>{b&&a(d.surfaceId)},children:d.title},d.surfaceId)})]})]})}function vn({children:e}){return n.jsx(S,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.muted",fontSize:1,px:3,textAlign:"center",children:e})}export{Or as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lc as ne,ld as se,le as ae,bB as ie,J as O,lf as le,j as t,lg as oe,lh as de,hx as F,li as H,a1 as ce,r as E,aF as T,fo as ue,I as ee,X as pe,a9 as te,T as K,dE as he,W as me,A as xe,v as re,lj as X,lk as fe,ll as ye,gq as ge,hW as Y,aI as be,lm as je,B as Ce,dD as Te}from"../datalayer-app-main.js";import{F as Se,T as D,a as J,g as A,b as Fe,e as Q,d as L,f as Be,h as ke,t as ve,i as we,c as Ae,j as Ie,A as De,s as Le,k as We,o as G,l as Oe,m as Re,n as v,u as Ve,p as _e,r as Ee,q as qe,v as $e}from"./index-BQEWUnIX.js";import{A as Ge,a as Pe}from"./ArrowUpIcon-y5enrVH9.js";import"./_baseRest-CxHO6LCs.js";import"./isObject-CeOzAI2h.js";import"./forEach-Bvicu226.js";import"./isSymbol-DfwdEMHq.js";import"./uniqueId-Dci46PXR.js";import"./toNumber-DUdf79Nr.js";import"./_baseClone-DJnceIKt.js";import"./merge-Bj_36vYI.js";import"./isEqual-BxgGIFfN.js";const Me=r=>{const e=ie.c(24);let n,s,a,o;e[0]!==r?({children:n,disabled:s,onChange:a,...o}=r,e[0]=r,e[1]=n,e[2]=s,e[3]=a,e[4]=o):(n=e[1],s=e[2],a=e[3],o=e[4]);let m;if(e[5]!==n){const y=O.Children.toArray(n).filter(Ne).map(Ue).flat();m=O.Children.toArray(y).filter(ze).map(He).filter(Boolean),e[5]=n,e[6]=m}else m=e[6];const u=m,[d,c]=le(u);let x;e[7]!==d||e[8]!==c?(x=y=>{const{value:b,checked:j}=y.currentTarget;if(j){c([...d.current||[],b]);return}c((d.current||[]).filter(S=>S!==b))},e[7]=d,e[8]=c,e[9]=x):x=e[9];const i=x;let l;e[10]!==a||e[11]!==d||e[12]!==i?(l=y=>{a&&(i(y),a(d.current||[],y))},e[10]=a,e[11]=d,e[12]=i,e[13]=l):l=e[13];let h;e[14]!==s||e[15]!==l?(h={disabled:s,onChange:l},e[14]=s,e[15]=l,e[16]=h):h=e[16];let p;e[17]!==n||e[18]!==s||e[19]!==o?(p=t.jsx(oe,{disabled:s,...o,children:n}),e[17]=n,e[18]=s,e[19]=o,e[20]=p):p=e[20];let f;return e[21]!==h||e[22]!==p?(f=t.jsx(de.Provider,{value:h,children:p}),e[21]=h,e[22]=p,e[23]=f):f=e[23],f};var Z=Object.assign(Me,{Caption:ae,Label:se,Validation:ne});function Ne(r){return O.isValidElement(r)&&r.type===F}function Ue(r){return O.isValidElement(r)?r.props.children:[]}function ze(r){return O.isValidElement(r)&&r.type===H}function He(r){return O.isValidElement(r)&&(r.props.checked||r.props.defaultChecked)&&r.props.value}const Ke=({name:r="slider",id:e="slider",min:n=0,max:s=10,value:a=5,label:o="label",step:m=1,markers:u=!1,displayValue:d=!0,disabled:c=!1,orientation:x="horizontal",width:i="200px",onChange:l})=>{const{colorMode:h}=ce(),p=s<n?n:n+(s-n)/2,[f,y]=E.useState(p);E.useEffect(()=>{y(a??p)},[a,p]);const b=S=>{const g=Number(S.target.value);y(g),l(g)},j={width:i,...x==="vertical"?{transform:"rotate(-90deg)"}:{},colorScheme:h=="day"?"light":"dark",accentColor:"var(--fgColor-accent)"};return t.jsxs(T,{display:"flex",alignItems:"center",children:[t.jsx("input",{type:"range",id:e,name:r,min:n,max:s,value:f,step:m??"any",list:"slider-markers",style:j,onChange:b,disabled:c}),u&&m&&t.jsx("datalist",{id:"slider-markers",children:Array.from({length:Math.floor((s-n)/m)+1},(S,g)=>n+g*m).map(S=>t.jsx("option",{value:S},`slider-marker-${S}`))}),o&&t.jsx(F.Label,{htmlFor:e,sx:{ml:2},children:o}),d&&x==="horizontal"&&t.jsx(ue,{sx:{ml:2},children:f})]})};function Je(r){return E.forwardRef(({fields:e,widgets:n,templates:s,...a},o)=>(e={...r?.fields,...e},n={...r?.widgets,...n},s={...r?.templates,...s,ButtonTemplates:{...r?.templates?.ButtonTemplates,...s?.ButtonTemplates}},t.jsx(Se,{...r,...a,fields:e,widgets:n,templates:s,ref:o})))}function Xe({uiSchema:r,registry:e,...n}){const{translateString:s}=e;return t.jsx(ee,{variant:"default",size:"small",icon:pe,"aria-label":s(D.AddItemButton),...n})}function Ye(r){const{children:e,disabled:n,hasToolbar:s,hasMoveDown:a,hasMoveUp:o,hasRemove:m,index:u,onDropIndexClick:d,onReorderClick:c,readonly:x,uiSchema:i,registry:l}=r,{MoveDownButton:h,MoveUpButton:p,RemoveButton:f}=l.templates.ButtonTemplates,y={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold",minWidth:0};return t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},alignItems:"center",children:[t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},style:{overflow:"auto"},children:t.jsx(T,{mb:2,p:2,sx:{borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:e})}),s&&t.jsxs(T,{p:1,children:[(o||a)&&t.jsx(p,{style:y,disabled:n||x||!o,onClick:c(u,u-1),uiSchema:i,registry:l}),(o||a)&&t.jsx(h,{style:y,disabled:n||x||!a,onClick:c(u,u+1),uiSchema:i,registry:l}),m&&t.jsx(f,{style:y,disabled:n||x,onClick:d(u),uiSchema:i,registry:l})]})]})}function Qe(r){const{canAdd:e,disabled:n,idSchema:s,uiSchema:a,items:o,onAddClick:m,readonly:u,registry:d,required:c,schema:x,title:i}=r,l=J(a),h=A("ArrayFieldDescriptionTemplate",d,l),p=A("ArrayFieldItemTemplate",d,l),f=A("ArrayFieldTitleTemplate",d,l),{ButtonTemplates:{AddButton:y}}=d.templates;return t.jsxs(T,{p:3,sx:{display:"flex",width:"100%",flexFlow:"row wrap",borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:[t.jsx(f,{idSchema:s,title:l.title||i,schema:x,uiSchema:a,required:c,registry:d}),t.jsx(h,{idSchema:s,description:l.description||x.description,schema:x,uiSchema:a,registry:d}),t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},children:[o&&o.map(({key:b,...j})=>t.jsx(p,{...j},b)),e&&t.jsx(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},justifyContent:"flex-end",children:t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsx(T,{mt:2,children:t.jsx(y,{className:"array-item-add",onClick:m,disabled:n||u,uiSchema:a,registry:d})})})})]},`array-item-list-${s.$id}`)]})}function Ze(r){const{id:e,placeholder:n,required:s,readonly:a,disabled:o,type:m,label:u,value:d,onChange:c,onBlur:x,onFocus:i,autofocus:l,options:h,schema:p,uiSchema:f,rawErrors:y=[],formContext:b,registry:j,hideLabel:S,hideError:g,...C}=r,w=Fe(p,m,h),{step:I,min:R,max:V,...M}=w,q={...Array.isArray(p.examples)?{list:Q(e)}:void 0,...M,...I!==void 0?{step:I}:void 0,...R!==void 0?{min:R}:void 0,...V!==void 0?{max:V}:void 0},N=({target:{value:B}})=>c(B===""?h.emptyValue:B),U=({target:{value:B}})=>x(e,B),z=({target:{value:B}})=>i(e,B),{schemaUtils:$}=j,k=$.getDisplayLabel(p,f);return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{visuallyHidden:!k,htmlFor:e,children:u||p.title}),t.jsx(te,{id:e,name:e,placeholder:n,autoFocus:l,required:s,disabled:o||a,...q,value:d||d===0?d:"",validationStatus:y.length>0?"error":void 0,onChange:N,onBlur:U,onFocus:z,block:!0,...C,"aria-describedby":L(e,!!p.examples)}),Array.isArray(p.examples)&&t.jsx("datalist",{id:Q(e),children:p.examples.concat(p.default&&!p.examples.includes(p.default)?[p.default]:[]).map(B=>t.jsx("option",{value:B},B))})]})}function et(r){const{id:e,description:n}=r;return n?t.jsx(K,{id:e,as:"p",mt:1,children:n}):null}function tt({errors:r,registry:e}){const{translateString:n}=e;return t.jsx(T,{mb:3,sx:{borderWidth:1,borderStyle:"solid",borderColor:"border.default",borderRadius:2},children:t.jsxs(T,{p:3,children:[t.jsx(T,{as:"h3",sx:{fontSize:3,fontWeight:"semibold",m:0},children:n(D.ErrorsLabel)}),t.jsx(t.Fragment,{children:r.map((s,a)=>t.jsx(he,{variant:"danger",sx:{marginTop:2},children:s.stack},a))})]})})}function P({color:r,title:e,icon:n,...s}){return r||(r="invisible"),t.jsx(ee,{variant:r,size:"small",icon:n,onClick:a=>a.preventDefault(),onSubmit:a=>a.preventDefault(),"aria-label":e,...s})}function rt(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.CopyButton),...r,icon:xe})}function nt(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.MoveDownButton),...r,icon:Pe})}function st(r){const{registry:{translateString:e}}=r;return t.jsx(P,{title:e(D.MoveUpButton),...r,icon:Ge})}function at(r){const{iconType:e,...n}=r,{registry:{translateString:s}}=n;return t.jsx(P,{title:s(D.RemoveButton),...n,icon:me})}function it(r){const{errors:e=[],idSchema:n}=r;if(e.length===0)return null;const s=Be(n);return t.jsx("div",{id:s,children:e.map((a,o)=>t.jsxs(K,{as:"p",mb:1,sx:{fontSize:"12px",display:"block",color:"danger.fg"},children:["•"," "+a]},o))})}function lt(r){const{idSchema:e,help:n}=r;if(!n)return null;const s=ke(e);return t.jsx(F.Caption,{id:s,children:n})}function ot(r){const{id:e,children:n,classNames:s,style:a,disabled:o,displayLabel:m,hidden:u,label:d,onDropPropertyClick:c,onKeyChange:x,readonly:i,required:l,rawErrors:h=[],errors:p,help:f,rawDescription:y,schema:b,uiSchema:j,registry:S}=r,g=J(j),C=A("WrapIfAdditionalTemplate",S,g);return u?t.jsx("div",{style:{display:"none"},children:n}):t.jsx(C,{classNames:s,style:a,disabled:o,id:e,label:d,onDropPropertyClick:c,onKeyChange:x,readonly:i,required:l,schema:b,uiSchema:j,registry:S,children:t.jsxs(F,{required:l,children:[t.jsx(F.Label,{visuallyHidden:!0}),n,m&&y?t.jsx(F.Caption,{id:e,children:y}):null,p,f]})})}function dt(r){const{description:e,title:n,properties:s,required:a,disabled:o,readonly:m,uiSchema:u,idSchema:d,schema:c,formData:x,onAddClick:i,registry:l}=r,h=J(u),p=A("TitleFieldTemplate",l,h),f=A("DescriptionFieldTemplate",l,h),{ButtonTemplates:{AddButton:y}}=l.templates;return t.jsxs(t.Fragment,{children:[(h.title||n)&&t.jsx(p,{id:ve(d),title:n,required:a,schema:c,uiSchema:u,registry:l}),(h.description||e)&&t.jsx(f,{id:we(d),description:h.description||e,schema:c,uiSchema:u,registry:l}),t.jsxs(T,{sx:{display:"flex",width:"100%",flexDirection:"column",flexFlow:"row wrap"},style:{marginTop:"10px"},children:[s.map((b,j)=>b.hidden?b.content:t.jsx(T,{sx:{flexBasis:"100%",flexGrow:0,maxWidth:"100%"},mb:1,children:b.content},j)),Ae(c,u,x)&&t.jsx(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},justifyContent:"flex-end",children:t.jsx(T,{sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsx(y,{className:"object-property-expand",onClick:b=>{b.preventDefault(),i(c)()},disabled:o||m,uiSchema:u,registry:l})})})]})]})}function ct({uiSchema:r}){const{submitText:e,norender:n,props:s={}}=Ie(r);return n?null:t.jsx(T,{marginTop:2,children:t.jsx(re,{type:"submit",variant:"primary",...s,children:e})})}function ut({id:r,title:e}){return t.jsx(T,{id:r,my:2,children:t.jsx(T,{as:"h5",sx:{fontSize:1,fontWeight:"semibold",m:0,borderBottom:"1px solid",borderColor:"border.default",paddingBottom:1},children:e})})}function pt(r){const{children:e,classNames:n,style:s,disabled:a,id:o,label:m,onDropPropertyClick:u,onKeyChange:d,readonly:c,required:x,schema:i,uiSchema:l,registry:h}=r,{templates:p,translateString:f}=h,{RemoveButton:y}=p.ButtonTemplates,b=f(D.KeyLabel,[m]),j=De in i,S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};if(!j)return t.jsx("div",{className:n,style:s,children:e});const g=({target:C})=>d(C.value);return t.jsxs(T,{sx:{display:"flex",width:"100%",flexFlow:"row wrap"},alignItems:"center",className:n,style:s,children:[t.jsx(T,{pr:2,sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:t.jsxs(F,{id:`${o}-key`,required:x,children:[t.jsx(F.Label,{children:b}),t.jsx(te,{defaultValue:m,disabled:a||c,name:`${o}-key`,onBlur:c?void 0:g,type:"text",block:!0})]})}),t.jsx(T,{pr:2,sx:{flexBasis:0,flexGrow:1,maxWidth:"100%"},children:e}),t.jsx(T,{children:t.jsx(y,{iconType:"default",style:S,disabled:a||c,onClick:u(m),uiSchema:l,registry:h})})]},`${o}-key`)}function ht(){return{ArrayFieldItemTemplate:Ye,ArrayFieldTemplate:Qe,BaseInputTemplate:Ze,ButtonTemplates:{AddButton:Xe,CopyButton:rt,MoveDownButton:nt,MoveUpButton:st,RemoveButton:at,SubmitButton:ct},DescriptionFieldTemplate:et,ErrorListTemplate:tt,FieldErrorTemplate:it,FieldHelpTemplate:lt,FieldTemplate:ot,ObjectFieldTemplate:dt,TitleFieldTemplate:ut,WrapIfAdditionalTemplate:pt}}function mt(r){const{schema:e,id:n,value:s,disabled:a,readonly:o,label:m,autofocus:u,onChange:d,onBlur:c,onFocus:x}=r,i=Le(e),l=({target:{checked:f}})=>d(f),h=({target:{value:f}})=>c(n,f),p=({target:{value:f}})=>x(n,f);return t.jsxs(F,{id:n,children:[t.jsx(H,{checked:typeof s>"u"?!1:!!s,required:i,disabled:a||o,autoFocus:u,onChange:l,onBlur:h,onFocus:p,"aria-describedby":L(n)}),t.jsx(F.Label,{children:m||""})]})}function xt({schema:r,label:e,id:n,disabled:s,options:a,value:o,autofocus:m,readonly:u,required:d,onChange:c,onBlur:x,onFocus:i}){const{enumOptions:l,enumDisabled:h,inline:p,emptyValue:f}=a,y=Array.isArray(o)?o:[o],b=g=>({target:{checked:C}})=>{c(C?Oe(g,y,l):Re(g,y,l))},j=({target:{value:g}})=>x(n,v(g,l,f)),S=({target:{value:g}})=>i(n,v(g,l,f));return t.jsxs(Z,{required:d,children:[t.jsx(Z.Label,{children:e||r.title}),Array.isArray(l)&&l.map((g,C)=>{const w=We(g.value,y),I=Array.isArray(h)&&h.indexOf(g.value)!==-1;return t.jsxs(F,{id:G(n,C),children:[t.jsx(H,{checked:w,disabled:s||I||u,autoFocus:m&&C===0,onChange:b(C),onBlur:j,onFocus:S,"aria-describedby":L(n)}),t.jsx(F.Label,{children:g.label})]},G(n,C))})]})}function ft(r){const{options:e,registry:n}=r,s=A("BaseInputTemplate",n,e);return t.jsx(s,{type:"date",InputLabelProps:{shrink:!0},...r})}function yt(r){const{options:e,registry:n}=r,s=A("BaseInputTemplate",n,e),a=Ve(r.value),o=m=>{r.onChange(_e(m))};return t.jsx(s,{type:"datetime-local",...r,value:a,onChange:o})}function gt({id:r,schema:e,options:n,value:s,required:a,disabled:o,readonly:m,label:u,onChange:d,onBlur:c,onFocus:x}){const{enumOptions:i,enumDisabled:l,emptyValue:h}=n,p=({target:{value:b}})=>d(v(b,i,h)),f=({target:{value:b}})=>c(r,v(b,i,h)),y=({target:{value:b}})=>x(r,v(b,i,h));return t.jsxs(X,{name:r,required:a,children:[t.jsx(X.Label,{children:u||e.title}),t.jsx(t.Fragment,{children:Array.isArray(i)&&i.map((b,j)=>{const S=Array.isArray(l)&&l.indexOf(b.value)!==-1;return t.jsxs(F,{id:G(r,j),children:[t.jsx(fe,{value:String(j),onChange:p,onBlur:f,onFocus:y,"aria-describedby":L(r),disabled:o||S||m},j),t.jsx(F.Label,{children:b.label})]},G(r,j))})})]})}function bt(r){const{value:e,readonly:n,disabled:s,options:a,schema:o,onChange:m,label:u,id:d}=r,c={value:e,label:u,id:d,name:d,...Ee(o)},x=i=>{m(i??a.emptyValue)};return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{htmlFor:d,children:u||o.title}),t.jsx(Ke,{disabled:s||n,onChange:x,...c,"aria-describedby":L(d)})]})}function jt({schema:r,id:e,options:n,label:s,required:a,disabled:o,placeholder:m,readonly:u,value:d,multiple:c,autofocus:x,onChange:i,onBlur:l,onFocus:h,rawErrors:p=[],registry:f,uiSchema:y,hideError:b,formContext:j,...S}){const{enumOptions:g,enumDisabled:C,emptyValue:w}=n,[I,R]=E.useState(!1);c=typeof c>"u"?!1:!!c;const V=c?[]:"",M=typeof d>"u"||c&&d.length<1||!c&&d===V,q=g?.map(({value:k,label:B},W)=>{const _=Array.isArray(C)&&C.indexOf(k)!==-1;return{text:B,id:W,disabled:_}}),N=({target:{value:k}})=>i(v(k,g,w)),U=({target:{value:k}})=>l(e,v(k,g,w)),z=({target:{value:k}})=>h(e,v(k,g,w)),$=qe(d,g,c);return t.jsxs(F,{id:e,required:a,children:[t.jsx(F.Label,{visuallyHidden:!(s||r.title),htmlFor:e,children:s||r.title}),c&&Array.isArray(g)?t.jsx(ye,{placeholderText:(s||r.title)??"",renderAnchor:({children:k,"aria-labelledby":B,...W})=>t.jsx(re,{trailingAction:ge,"aria-labelledby":` ${B}`,...W,onClick:_=>{R(!I),_.preventDefault()},children:k||`Select ${s||r.title}`}),open:I,onOpenChange:R,items:q??[],selected:(q??[]).filter((k,B)=>$?.includes(String(B))),onSelectedChange:k=>{i(v(k.map(B=>B.id),g,w))},onFilterChange:()=>null,overlayProps:{width:"small"}}):t.jsx(Y,{name:e,value:M?V:$,disabled:o||u,autoFocus:x,placeholder:s||r.title,validationStatus:p.length>0?"error":void 0,onChange:N,onBlur:U,onFocus:z,defaultValue:void 0,...S,"aria-describedby":L(e),children:Array.isArray(g)&&g.map(({value:k,label:B},W)=>{const _=Array.isArray(C)&&C.indexOf(k)!==-1;return t.jsx(Y.Option,{value:String(W),disabled:_,children:B},W)})})]})}function Ct({id:r,placeholder:e,value:n,label:s,disabled:a,autofocus:o,readonly:m,onBlur:u,onFocus:d,onChange:c,options:x,schema:i,uiSchema:l,required:h,rawErrors:p=[],registry:f}){const{schemaUtils:y}=f,b=y.getDisplayLabel(i,l)&&(!!s||!!i.title),j=({target:{value:C}})=>c(C===""?x.emptyValue:C),S=({target:{value:C}})=>u(r,C),g=({target:{value:C}})=>d(r,C);return t.jsxs(t.Fragment,{children:[t.jsx(F.Label,{visuallyHidden:!b,htmlFor:r,children:s||i.title}),t.jsx(be,{id:r,name:r,value:n??"",placeholder:e,autoFocus:o,required:h,disabled:a||m,validationStatus:p.length>0?"error":void 0,onChange:j,onBlur:S,onFocus:g,block:!0,"aria-describedby":L(r)})]})}function Tt(){return{CheckboxWidget:mt,CheckboxesWidget:xt,DateWidget:ft,DateTimeWidget:yt,RadioWidget:gt,RangeWidget:bt,SelectWidget:jt,TextareaWidget:Ct}}function St(){return{templates:ht(),widgets:Tt()}}function Ft(){return Je(St())}const Bt=Ft();function kt({id:r,value:e,label:n,disabled:s,readonly:a,onChange:o}){return t.jsxs(Ce,{display:"flex",flexDirection:"column",gap:1,children:[t.jsx(K,{as:"span",id:`${r}-label`,sx:{fontWeight:"semibold"},children:n}),t.jsx(Te,{size:"small","aria-labelledby":`${r}-label`,checked:!!e,disabled:s||a,onClick:()=>o(!e)})]})}function vt({id:r,value:e,label:n,disabled:s,readonly:a,placeholder:o,onChange:m}){const u=Array.isArray(e)?e.map(String):[],[d,c]=E.useState(""),x=()=>{const i=d.trim();i&&!u.includes(i)&&m([...u,i]),c("")};return t.jsxs(F,{id:r,disabled:s||a,children:[t.jsx(F.Label,{children:n}),t.jsx(je,{block:!0,placeholder:o,tokens:u.map((i,l)=>({id:l,text:i})),value:d,onChange:i=>c(i.target.value.replace(",","")),onKeyDown:i=>{(i.key==="Enter"||i.key===",")&&(i.preventDefault(),x())},onBlur:x,onTokenRemove:i=>{m(u.filter((l,h)=>h!==i))}})]})}const wt={switch:kt,tags:vt};function Gt(r){return t.jsx(Bt,{...r,widgets:wt,validator:$e})}export{Gt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as a,K as t}from"../datalayer-app-main.js";var n=["16","24"],h={16:{width:16,path:a.createElement("path",{d:"M8 2c1.981 0 3.671.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.45.678-1.367 1.932-2.637 3.023C11.67 13.008 9.981 14 8 14c-1.981 0-3.671-.992-4.933-2.078C1.797 10.83.88 9.576.43 8.898a1.62 1.62 0 0 1 0-1.798c.45-.677 1.367-1.931 2.637-3.022C4.33 2.992 6.019 2 8 2ZM1.679 7.932a.12.12 0 0 0 0 .136c.411.622 1.241 1.75 2.366 2.717C5.176 11.758 6.527 12.5 8 12.5c1.473 0 2.825-.742 3.955-1.715 1.124-.967 1.954-2.096 2.366-2.717a.12.12 0 0 0 0-.136c-.412-.621-1.242-1.75-2.366-2.717C10.824 4.242 9.473 3.5 8 3.5c-1.473 0-2.825.742-3.955 1.715-1.124.967-1.954 2.096-2.366 2.717ZM8 10a2 2 0 1 1-.001-3.999A2 2 0 0 1 8 10Z"})},24:{width:24,path:a.createElement(a.Fragment,null,a.createElement("path",{d:"M15.5 12a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z"}),a.createElement("path",{d:"M12 3.5c3.432 0 6.124 1.534 8.054 3.241 1.926 1.703 3.132 3.61 3.616 4.46a1.6 1.6 0 0 1 0 1.598c-.484.85-1.69 2.757-3.616 4.461-1.929 1.706-4.622 3.24-8.054 3.24-3.432 0-6.124-1.534-8.054-3.24C2.02 15.558.814 13.65.33 12.8a1.6 1.6 0 0 1 0-1.598c.484-.85 1.69-2.757 3.616-4.462C5.875 5.034 8.568 3.5 12 3.5ZM1.633 11.945a.115.115 0 0 0-.017.055c.001.02.006.039.017.056.441.774 1.551 2.527 3.307 4.08C6.691 17.685 9.045 19 12 19c2.955 0 5.31-1.315 7.06-2.864 1.756-1.553 2.866-3.306 3.307-4.08a.111.111 0 0 0 .017-.056.111.111 0 0 0-.017-.056c-.441-.773-1.551-2.527-3.307-4.08C17.309 6.315 14.955 5 12 5 9.045 5 6.69 6.314 4.94 7.865c-1.756 1.552-2.866 3.306-3.307 4.08Z"}))}},r=a.forwardRef(function(c,e){return t(c,e,"octicon octicon-eye",h,n)});r.displayName="EyeIcon";var o=["16","24"],i={16:{width:16,path:a.createElement("path",{d:"M.143 2.31a.75.75 0 0 1 1.047-.167l14.5 10.5a.75.75 0 1 1-.88 1.214l-2.248-1.628C11.346 13.19 9.792 14 8 14c-1.981 0-3.67-.992-4.933-2.078C1.797 10.832.88 9.577.43 8.9a1.619 1.619 0 0 1 0-1.797c.353-.533.995-1.42 1.868-2.305L.31 3.357A.75.75 0 0 1 .143 2.31Zm1.536 5.622A.12.12 0 0 0 1.657 8c0 .021.006.045.022.068.412.621 1.242 1.75 2.366 2.717C5.175 11.758 6.527 12.5 8 12.5c1.195 0 2.31-.488 3.29-1.191L9.063 9.695A2 2 0 0 1 6.058 7.52L3.529 5.688a14.207 14.207 0 0 0-1.85 2.244ZM8 3.5c-.516 0-1.017.09-1.499.251a.75.75 0 1 1-.473-1.423A6.207 6.207 0 0 1 8 2c1.981 0 3.67.992 4.933 2.078 1.27 1.091 2.187 2.345 2.637 3.023a1.62 1.62 0 0 1 0 1.798c-.11.166-.248.365-.41.587a.75.75 0 1 1-1.21-.887c.148-.201.272-.382.371-.53a.119.119 0 0 0 0-.137c-.412-.621-1.242-1.75-2.366-2.717C10.825 4.242 9.473 3.5 8 3.5Z"})},24:{width:24,path:a.createElement("path",{d:"M8.052 5.837A9.715 9.715 0 0 1 12 5c2.955 0 5.309 1.315 7.06 2.864 1.756 1.553 2.866 3.307 3.307 4.08a.11.11 0 0 1 .016.055.122.122 0 0 1-.017.06 16.766 16.766 0 0 1-1.53 2.218.75.75 0 1 0 1.163.946 18.253 18.253 0 0 0 1.67-2.42 1.607 1.607 0 0 0 .001-1.602c-.485-.85-1.69-2.757-3.616-4.46C18.124 5.034 15.432 3.5 12 3.5c-1.695 0-3.215.374-4.552.963a.75.75 0 0 0 .604 1.373Zm11.114 12.15C17.328 19.38 14.933 20.5 12 20.5c-3.432 0-6.125-1.534-8.054-3.24C2.02 15.556.814 13.648.33 12.798a1.606 1.606 0 0 1 .001-1.6A18.283 18.283 0 0 1 3.648 7.01L1.317 5.362a.75.75 0 1 1 .866-1.224l20.5 14.5a.75.75 0 1 1-.866 1.224ZM4.902 7.898c-1.73 1.541-2.828 3.273-3.268 4.044a.112.112 0 0 0-.017.059c0 .015.003.034.016.055.441.774 1.551 2.527 3.307 4.08C6.69 17.685 9.045 19 12 19c2.334 0 4.29-.82 5.874-1.927l-3.516-2.487a3.5 3.5 0 0 1-5.583-3.949L4.902 7.899Z"})}},l=a.forwardRef(function(c,e){return t(c,e,"octicon octicon-eye-closed",i,o)});l.displayName="EyeClosedIcon";var d=["16","24"],C={16:{width:16,path:a.createElement("path",{d:"M2 2.75C2 1.784 2.784 1 3.75 1h2.5a.75.75 0 0 1 0 1.5h-2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h2.5a.75.75 0 0 1 0 1.5h-2.5A1.75 1.75 0 0 1 2 13.25Zm6.56 4.5h5.69a.75.75 0 0 1 0 1.5H8.56l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L6.22 8.53a.75.75 0 0 1 0-1.06l3.25-3.25a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734Z"})},24:{width:24,path:a.createElement("path",{d:"M3 3.25c0-.966.784-1.75 1.75-1.75h5.5a.75.75 0 0 1 0 1.5h-5.5a.25.25 0 0 0-.25.25v17.5c0 .138.112.25.25.25h5.5a.75.75 0 0 1 0 1.5h-5.5A1.75 1.75 0 0 1 3 20.75Zm9.994 9.5 3.3 3.484a.75.75 0 0 1-1.088 1.032l-4.5-4.75a.75.75 0 0 1 0-1.032l4.5-4.75a.75.75 0 0 1 1.088 1.032l-3.3 3.484h8.256a.75.75 0 0 1 0 1.5Z"})}},m=a.forwardRef(function(c,e){return t(c,e,"octicon octicon-sign-in",C,d)});m.displayName="SignInIcon";export{l as E,m as S,r as a};
|