@datalayer/agent-runtimes 1.6.97 → 1.6.98
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-B5csrqWi.js → AgentDetails-CqMfY8zN.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-gGnV2mTY.js → AgentDetailsDialog-lxnKA_dF.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-B4QBsTRy.js → CellSidebarExtension-CrdbRLaE.js} +1 -1
- package/dist-embed/chunks/ChatView-B9oVgZ72.js +32 -0
- package/dist-embed/chunks/{CollapsiblePlugin-vjE7wFOu.js → CollapsiblePlugin-CnG1qA1e.js} +1 -1
- package/dist-embed/chunks/{ContextPie-Dqj618Q2.js → ContextPie-DAZz2yzl.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-CSxElvrq.js → DeckComponent-qAMqKLzs.js} +1 -1
- package/dist-embed/chunks/{DeckRenderer-DcyoBlq5.js → DeckRenderer-DQmjQ_vE.js} +2 -2
- package/dist-embed/chunks/{DeckStage-DJJkDWlM.js → DeckStage-LDi6nZOg.js} +2 -2
- package/dist-embed/chunks/{DiagramView-D8385Uvy.js → DiagramView-CpCoC99y.js} +1 -1
- package/dist-embed/chunks/{DocumentView-pHXY2GUy.js → DocumentView-B-lWAJgm.js} +1 -1
- package/dist-embed/chunks/{DrawingStage-CBhXNP2j.js → DrawingStage-DEeTWKLT.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-C12bJ2Zi.js → EphemeralDocument-CZNRDs_b.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-DW9uU70P.js → EphemeralNotebook-BDutT9GQ.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-BvB8s8DF.js → ExcalidrawComponent-CmJy7bb4.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-CLGo6lxD.js → ExcalidrawModal-D_DmAro7.js} +1 -1
- package/dist-embed/chunks/{FormulaBar-IFoQ6yN8.js → FormulaBar-f9U7lupQ.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-DhlGUbc0.js → JupyterLexicalExtension-DpGAnn7v.js} +9 -9
- package/dist-embed/chunks/{KernelVariables-COPHuvQe.js → KernelVariables-BIWju6rZ.js} +1 -1
- package/dist-embed/chunks/{LexicalToolRegistry-mRwpy8uR.js → LexicalToolRegistry-BqxU1w4N.js} +1 -1
- package/dist-embed/chunks/{NotebookToolSurfaces-f0K0s6tk.js → NotebookToolSurfaces-CqU9CVCl.js} +1 -1
- package/dist-embed/chunks/{NotebookView-CkgduWGZ.js → NotebookView-CpOBHIut.js} +1 -1
- package/dist-embed/chunks/{Output-BlVb0nsN.js → Output-DLpf2Of9.js} +6 -6
- package/dist-embed/chunks/{SandboxDetailsDialog-BWr3ZHmy.js → SandboxDetailsDialog-yUjpxBdw.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-BYx28f9R.js → SchemaForm-N0hu4z_p.js} +1 -1
- package/dist-embed/chunks/{SheetStage-UDDuD0c-.js → SheetStage-gUVhALxR.js} +1 -1
- package/dist-embed/chunks/{SheetTabs-CRqCh6SH.js → SheetTabs-sx_-jWyq.js} +1 -1
- package/dist-embed/chunks/{SignInIcon-C0lCx6yN.js → SignInIcon-XIbntAUw.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetPreviewView-D3bm2FuW.js → SpreadsheetPreviewView-C9LaI5mp.js} +1 -1
- package/dist-embed/chunks/{SpreadsheetView-C0jqVlH0.js → SpreadsheetView-FfnOGHeU.js} +1 -1
- package/dist-embed/chunks/{WidgetVariableView-CEWGssAP.js → WidgetVariableView-CKcw-pPX.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-CwtVeT4X.js → YouTubePlugin-DUDVTb3B.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-JXHACDBz.js → abnfDiagram-VCTEODGH-B0MQRzNo.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-C-5M28HY.js → abnfDiagram-VCTEODGH-BM2pAacI.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Bwv6WjS-.js → abnfDiagram-VCTEODGH-fcR8gNdJ.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-BM34ImM5.js → ar-SA-G6X2FPQ2-BfVZMCow.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DpujQos2.js → architectureDiagram-5GKGNRK7-CnP0s6uJ.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-KCUb-Mex.js → architectureDiagram-5GKGNRK7-Cpu0tfD1.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-CAgLqF4a.js → architectureDiagram-5GKGNRK7-GZ5981UE.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-ClbRZkch.js → az-AZ-76LH7QW2-BeD9jzcd.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-C9-xTdL3.js → bg-BG-XCXSNQG7-VUraF-a0.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-BIKcIMyQ.js → blockDiagram-868be97b-BK7odeOZ.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-6rNTajX4.js → blockDiagram-I7D4REHJ-BMQSOcOL.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Dk3ubhN6.js → blockDiagram-I7D4REHJ-CZlh2u1A.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Dg9wRDSP.js → blockDiagram-I7D4REHJ-DiBWN476.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-yHaSEyU7.js → bn-BD-2XOGV67Q-DjghL9Ba.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-DX31j648.js → c4Diagram-3f4bdde3-CMf0cOcM.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-Blhl5Ivg.js → c4Diagram-7LVT6UL2-BYPUXI1P.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DotUFrPy.js → c4Diagram-7LVT6UL2-plU3oizm.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-kO868bTp.js → c4Diagram-7LVT6UL2-qmYneJtb.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-Co3yrY97.js → ca-ES-6MX7JW3Y-J6FuV-ut.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-DzouPWbZ.js → celltoolbartracker-0MFBHjtq.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BC8SN0W_.js → chunk-2Q5K7J3B-B5DIEbuU.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BB4YNChb.js → chunk-2Q5K7J3B-BfCPaxeK.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-COf2HInf.js → chunk-2Q5K7J3B-Cj3jAIkT.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-C3jze8cb.js → chunk-5VM5RSS4-BZGDG9GF.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-DiJWlaEG.js → chunk-5VM5RSS4-DYeTGvz7.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-cXmhCpsu.js → chunk-5VM5RSS4-g3id5Hpo.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BXMw8fcU.js → chunk-F27PBJKO-DvclqQhV.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DaAtxZ3_.js → chunk-F27PBJKO-S3msebgW.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-DZJGymAh.js → chunk-F27PBJKO-kACIRR-8.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CR3C15pD.js → chunk-IMKFNOWR-Ch7v5XHt.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-C4f2Xvwg.js → chunk-IMKFNOWR-DjIARM3y.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-Ct7GddYG.js → chunk-IMKFNOWR-SiS0o9FR.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-9KydF4Cl.js → chunk-JWPE2WC7-BwLKeh91.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-B54sCK-y.js → chunk-JWPE2WC7-CVacxpin.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-D9_2-oUP.js → chunk-JWPE2WC7-M6oulZhu.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-BaMRoQVu.js → chunk-POPQ4Y6H-BCHaCocF.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-BgtIg837.js → chunk-POPQ4Y6H-DacAiEUG.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-Db5GUGhc.js → chunk-POPQ4Y6H-DicNgh7k.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-CeM8qf58.js → chunk-SVP7TREG-3X_ReA6d.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-F4uclbvM.js → chunk-SVP7TREG-COLBrDOd.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-BYkF4CFZ.js → chunk-SVP7TREG-Cit7UeF2.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-D-Wwl7XB.js → chunk-TICWLB2K-C4D-h9t1.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BFf8Le3M.js → chunk-TICWLB2K-DfGZ1S46.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BHq2Ystt.js → chunk-TICWLB2K-TaUeWpZb.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-BHMLcU9A.js → chunk-XXDRQBXY-B6fuzLc9.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-BlVD4u-l.js → chunk-XXDRQBXY-Bo_XDdf-.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-DTCYLV17.js → chunk-XXDRQBXY-Bz5lFaJG.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-B1H5YR5N.js → classDiagram-ZZMXUADV-DDZ5U8jk.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-C69Ng482.js → classDiagram-ZZMXUADV-DpQTfwXC.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-fah4qQBw.js → classDiagram-ZZMXUADV-orzU8a0Z.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-BpmDNOf_.js → classDiagram-f62afe4f-CNI3U8Mt.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-DXSVTZaU.js → classDiagram-v2-604399ef-CLQHn0oB.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-B1H5YR5N.js → classDiagram-v2-VYDZK3BY-DDZ5U8jk.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-C69Ng482.js → classDiagram-v2-VYDZK3BY-DpQTfwXC.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-fah4qQBw.js → classDiagram-v2-VYDZK3BY-orzU8a0Z.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-BzV6dOeo.js → code-block-IT6T5CEO-DjmCcA6a.js} +1 -1
- package/dist-embed/chunks/{component-DQ0vRpmL.js → component-B62XEB_I.js} +1 -1
- package/dist-embed/chunks/{core-YLcIWC_X.js → core-CsMGn5rr.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DUgmse9Z.js → cose-bilkent-JH36ORCC-B_IELYPJ.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-CFC6-4OL.js → cose-bilkent-JH36ORCC-CE9lt3OO.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-B13OR0_2.js → cose-bilkent-JH36ORCC-CJiHk5L4.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-Cft4GZJy.js → createText-aed3d8b3-DTAS6DfQ.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-BXDHJOy0.js → cs-CZ-2BRQDIVT-BJRVSuxc.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Baap8yDb.js → cynefinDiagram-5FMLGOSQ-B2073FgP.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-B7_plLD6.js → cynefinDiagram-5FMLGOSQ-CyHkNAUC.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-kHl-Cu_e.js → cynefinDiagram-5FMLGOSQ-HsJLw9Ow.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-Bv_vMRQS.js → da-DK-5WZEPLOC-DmvpQmCz.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-l25rB3RT.js → dagre-GXQ25YYZ-BkxHUUfX.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-DLkLgXkX.js → dagre-GXQ25YYZ-DzmuuJ_r.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-De_KrzkJ.js → dagre-GXQ25YYZ-R_lzFrVl.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-Bko2COU8.js → de-DE-XR44H4JA-aRPZsjh8.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-uPenisEP.js → diagram-S7CK7UJ4-1KpTTJPB.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-uDpubVD_.js → diagram-S7CK7UJ4-BANHWGqU.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-BiZ-ex3Q.js → diagram-S7CK7UJ4-DsEYZOqE.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-FzXo7K78.js → diagram-UQ7AKVKN-B-SbMZjY.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BzBp2O2s.js → diagram-UQ7AKVKN-BadWwEqS.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-DbPeWUnW.js → diagram-UQ7AKVKN-E5q5_JWL.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-DLDYySj7.js → diagram-VSXAHHWV-B-ZTas3h.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-CwicQwvc.js → diagram-VSXAHHWV-BsdL7E17.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-BcQHUbuO.js → diagram-VSXAHHWV-D_7x_Ody.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-Ft45yb-L.js → diagram-VX7I27RA-BGyPrgPC.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-BscrabRG.js → diagram-VX7I27RA-CNSwTKHP.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-BSiMudGz.js → diagram-VX7I27RA-C_1S9aIm.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-C5mNapBw.js → diagram-Z3DM3KII-B5t8N8ZT.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-B86lp0dM.js → diagram-Z3DM3KII-C2gtrmQ9.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-Y-lVwha7.js → diagram-Z3DM3KII-yVDxeysg.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DuGxLmkd.js → ebnfDiagram-PWID7BFC-BgfF1EZn.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-COn39ksr.js → ebnfDiagram-PWID7BFC-C7dUKFPT.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-Tzta9jsh.js → ebnfDiagram-PWID7BFC-LCa7gn5F.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-B0fzIYH0.js → edges-b2856ca0-J2ON9YC7.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-CGifhWk7.js → el-GR-BZB4AONW-BBpO4fOL.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-Bs2AlkA7.js → erDiagram-5d81789a-BM5rHLzM.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-gNk7K_1a.js → erDiagram-RLTQ6QDP-BguBlD55.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-dY0zbwz5.js → erDiagram-RLTQ6QDP-C35O3IA_.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-69KYQDkg.js → erDiagram-RLTQ6QDP-CX1vL7D6.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-CG3eLB2T.js → es-ES-U4NZUMDT-CyrQHwAL.js} +1 -1
- package/dist-embed/chunks/{esm-jxjWs5qw.js → esm-BaC41XaP.js} +1 -1
- package/dist-embed/chunks/{esm-DXOCHrTC.js → esm-DNtiNaWu.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-DzPN5Wvi.js → eu-ES-A7QVB2H4-BJG9zHud.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-DFiN2zZy.js → fa-IR-HGAKTJCU-BOnLqEaQ.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-DoWgfc_V.js → fi-FI-Z5N7JZ37-DdQTDw9O.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-CX3GWJVI.js → flowDb-185abca5-CLfj2Qv7.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-CLqeIp_x.js → flowDiagram-1629c991-DjfIfqQ2.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-BHSFqLFz.js → flowDiagram-HODETNUW-CmpkqsRJ.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CJEJhhfg.js → flowDiagram-HODETNUW-Cuv1YfzK.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-Du69fYws.js → flowDiagram-HODETNUW-DEVM2ZrI.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-CBHgUV1p.js → flowDiagram-v2-1d953310-4wSPcojK.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-DeZ--5a6.js → flowchart-elk-definition-6df44142-Cb0xBerO.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-J88GG3aE.js → fr-FR-RHASNOE6-DQXpQs87.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-C2r1fH39.js → ganttDiagram-3b0b3873-DI6DrFsY.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-7MMvC1fh.js → ganttDiagram-EL5Y4UJY-CSmChevD.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-DKaPd3MM.js → ganttDiagram-EL5Y4UJY-DdKCj2ex.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-C3YxQe7W.js → ganttDiagram-EL5Y4UJY-drl1C7t5.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-Cnig1EpR.js → gitGraphDiagram-WWUBYQGX-Dna0JScG.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-BhAiY2G7.js → gitGraphDiagram-WWUBYQGX-PLhOfVTI.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DL75-74K.js → gitGraphDiagram-WWUBYQGX-gYDVDk5C.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-DpCnh99K.js → gitGraphDiagram-f01e8bc2-BmE4UKm_.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DCx-cx3z.js → gl-ES-HMX3MZ6V-DzfCce3N.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-DSVCS7oh.js → he-IL-6SHJWFNN-DRlcBbb7.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-dYf4Ui9C.js → hi-IN-IWLTKZ5I-BrerMuM3.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-D62ZhqXS.js → hu-HU-A5ZG7DT2-DFTsPGh6.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-CPbEyEGt.js → id-ID-SAP4L64H-D0pKFdUL.js} +1 -1
- package/dist-embed/chunks/{index-DUo_Q0bE.js → index-46VEGuyz.js} +2 -2
- package/dist-embed/chunks/{index-9bae90f3-BXKxYnBg.js → index-9bae90f3-Cc18qrXw.js} +1 -1
- package/dist-embed/chunks/{index-h3ezbReI.js → index-B5W7CVUY.js} +1 -1
- package/dist-embed/chunks/{index-BeTQYXBa.js → index-BQEWUnIX.js} +1 -1
- package/dist-embed/chunks/{index-C1V3QrNG.js → index-BXY2kJ1z.js} +1 -1
- package/dist-embed/chunks/{index-BDfHQl3F.js → index-BzdaTJ02.js} +4 -4
- package/dist-embed/chunks/{index-BxqT3iXs.js → index-C-4crJTg.js} +4 -4
- package/dist-embed/chunks/{index-BrEfsSSF.js → index-CBWGYoQM.js} +1 -1
- package/dist-embed/chunks/{index-D6Jo2GVI.js → index-CET7bv5d.js} +1 -1
- package/dist-embed/chunks/{index-BAjfjlr1.js → index-h8lXpqtD.js} +1 -1
- package/dist-embed/chunks/index.esm-DwyYEnhk.js +1 -0
- package/dist-embed/chunks/{index.esm-hHiWwus_.js → index.esm-fF--io5D.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DR9uGGbg.js → infoDiagram-27XIBGKW-BZLQcxTA.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-BWng8B0-.js → infoDiagram-27XIBGKW-DlOi-VkF.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CUOzYTfJ.js → infoDiagram-27XIBGKW-Ir7z7vae.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-HEc-jV3D.js → infoDiagram-a29d40f1-B_50LXsh.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-bN5K7Z_H.js → ishikawaDiagram-5VMMS53U-CUxqPwbA.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-D-4s54qG.js → ishikawaDiagram-5VMMS53U-CmchLGEY.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-A0e9fSuG.js → ishikawaDiagram-5VMMS53U-Erx01g7S.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-B82xwLEQ.js → it-IT-JPQ66NNP-CbZLqWAE.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-CM-98LRm.js → ja-JP-DBVTYXUO-9xZnJjLg.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-Bi4bGCmh.js → journeyDiagram-3NMN7TZE-B6PqY62p.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-BxzwEGdA.js → journeyDiagram-3NMN7TZE-BRe0KiaN.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-8G4uOxBl.js → journeyDiagram-3NMN7TZE-C9s2og1s.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-eqSlSLqg.js → journeyDiagram-95396277-BsoN0fKG.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-Ef811qmk.js → kaa-6HZHGXH3-CO2r0Hb-.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-DXBRnDqR.js → kab-KAB-ZGHBKWFO-0WoWjCrc.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-CmTw15_j.js → kanban-definition-UXKFOSKX-B6PDcRlF.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DMF43A4Q.js → kanban-definition-UXKFOSKX-BO0-y3yZ.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DMkqn8yL.js → kanban-definition-UXKFOSKX-CKIjAYbp.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DXPHFZv8.js → kk-KZ-P5N5QNE5-DFQE1uuw.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-fcVwn7la.js → km-KH-HSX4SM5Z-D0Bja56Q.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-fPmaSt-R.js → ko-KR-MTYHY66A-C6MeQrMU.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-DLO8mEqc.js → ku-TR-6OUDTVRD-CweepkXr.js} +1 -1
- package/dist-embed/chunks/{layout-BQJeAUxn.js → layout-Bz98EP0E.js} +1 -1
- package/dist-embed/chunks/{layout-DKKRYrOx.js → layout-DPmNjViN.js} +1 -1
- package/dist-embed/chunks/{layout-BiwLrHFv.js → layout-mk0FGxVc.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-CJT40c-i.js → lexicalHooks-Cj3BNPDC.js} +1 -1
- package/dist-embed/chunks/{lib-CCs8IFk9.js → lib-0j0dfH8p.js} +1 -1
- package/dist-embed/chunks/{lib-BWVYnyap.js → lib-B01oDNlH.js} +1 -1
- package/dist-embed/chunks/{lib-DGyQX8HH.js → lib-B62N3zGB.js} +1 -1
- package/dist-embed/chunks/{lib-DjnzrDLN.js → lib-BItrfBU4.js} +1 -1
- package/dist-embed/chunks/{lib-DiaM9sQK.js → lib-BmoHRaAo.js} +1 -1
- package/dist-embed/chunks/{lib-Bt7-2uko.js → lib-BnAfx9wF.js} +1 -1
- package/dist-embed/chunks/{lib-5GRWA8Zf.js → lib-C-8NAvI1.js} +1 -1
- package/dist-embed/chunks/{lib-D-sHfT2H.js → lib-COg_k5cY.js} +1 -1
- package/dist-embed/chunks/{lib-DlJpF03q.js → lib-CY6QUCzq.js} +1 -1
- package/dist-embed/chunks/{lib-Bkasfzit.js → lib-CjicD0Pj.js} +1 -1
- package/dist-embed/chunks/{lib-Ct98HeTv.js → lib-CkKgTevD.js} +1 -1
- package/dist-embed/chunks/{lib-CAO9TgtV.js → lib-D8Ksfd49.js} +1 -1
- package/dist-embed/chunks/{lib-hGDX-thU.js → lib-DCBCbRKN.js} +1 -1
- package/dist-embed/chunks/{lib-C9Xg-F1Z.js → lib-DpZphKNm.js} +1 -1
- package/dist-embed/chunks/{lib-D63-MDjq.js → lib-DzVf9ZJD.js} +1 -1
- package/dist-embed/chunks/{lib-Duu9jvZE.js → lib-Hgl-pfON.js} +1 -1
- package/dist-embed/chunks/{lib-D7hI6faK.js → lib-f60SfhfM.js} +1 -1
- package/dist-embed/chunks/{lib-Bp97CI40.js → lib-ku1U2GxE.js} +1 -1
- package/dist-embed/chunks/{lib-B9ZzlHt8.js → lib-tR3XRdBe.js} +1 -1
- package/dist-embed/chunks/{lib-BBunDtjl.js → lib-w650Gz0V.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-CDj2NwJ7.js → lt-LT-XHIRWOB4-DrPOBOia.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-DM0UmntK.js → lv-LV-5QDEKY6T-BlGiDUA0.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-BFu8E2Ch.js → mermaid.core-1p09QPXM.js} +3 -3
- package/dist-embed/chunks/{mermaid.core-oCOrUXH6.js → mermaid.core-BiF8MSuv.js} +5 -5
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BBOAmrK9.js → mindmap-definition-YA3MSWOX-CEFrcqEk.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-D5P4dsfO.js → mindmap-definition-YA3MSWOX-DpAy5heR.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-k9DaqQ85.js → mindmap-definition-YA3MSWOX-t1pDKjS3.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-pjtVjzMw.js → mindmap-definition-e4c1d938-DcepOwKv.js} +1 -1
- package/dist-embed/chunks/{model-BlGqAZ_E.js → model-jLDiOPpQ.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-DKu7Lbyh.js → mr-IN-CRQNXWMA-BWEVprKf.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-OpXhxQFy.js → my-MM-5M5IBNSE-BBxutJOz.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-CaW58ARR.js → nb-NO-T6EIAALU-DJnrKa7W.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-D4WjKwio.js → nl-NL-IS3SIHDZ-DQfv4h3e.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-n-7vV9Cs.js → nn-NO-6E72VCQL-DiGj9RA6.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-CB6dwikR.js → oc-FR-POXYY2M6-WJRn50ji.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-Cq4oiAGn.js → pa-IN-N4M65BXN-U7QCzNgm.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-oNVN1IG9.js → pegDiagram-XKGWAZYB-BlYwAwEo.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BTn5P1TU.js → pegDiagram-XKGWAZYB-CudwiD3O.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Cge-GlZ7.js → pegDiagram-XKGWAZYB-iE6rBtXO.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-DRR-eJCX.js → percentages-BXMCSKIN-DhE6_GLO.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-C9syugZr.js → pieDiagram-E7YTZNPT-CIawCiDR.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-LKAJV-f9.js → pieDiagram-E7YTZNPT-Cy6Wueqp.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-LRVEFdTA.js → pieDiagram-E7YTZNPT-DkhDYj7K.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-DjCRmn-L.js → pieDiagram-c941bede-Ds-rlqjJ.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-C1YHW5JY.js → pl-PL-T2D74RX3-D5hzyBxL.js} +1 -1
- package/dist-embed/chunks/{plugin-DdlXgZum.js → plugin-BqLEv-U0.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-CeAhQlI9.js → pt-BR-5N22H2LF-CAs1Vbwd.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-GWUC3hdB.js → pt-PT-UZXXM6DQ-f3BuGnIL.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-8vY1ABOf.js → quadrantDiagram-AXDQQJYC-1ViFLfLW.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-C2i8SYpJ.js → quadrantDiagram-AXDQQJYC-B30POsrM.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DFP2Eoj5.js → quadrantDiagram-AXDQQJYC-CqArYUyr.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-Bgejfr6D.js → quadrantDiagram-cf8b8fe0-QoN4fcns.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-D8iXssMi.js → railroadDiagram-O6MQD6OU-BKrSAEIz.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-Ck2bziJ8.js → railroadDiagram-O6MQD6OU-BelGMNLe.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-B54ysFcl.js → railroadDiagram-O6MQD6OU-nWQg4Zha.js} +1 -1
- package/dist-embed/chunks/{renderer-Dsm4_V5Z.js → renderer-NdtLW87o.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-Don9LmwH.js → requirementDiagram-53bda41b-DRQpj1S7.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BKfTxvAx.js → requirementDiagram-BXWQKSXE-BsKIaNx-.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-BluOoSWL.js → requirementDiagram-BXWQKSXE-C-ZNAzIA.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-DzYOora7.js → requirementDiagram-BXWQKSXE-Dj_84sJE.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-CfstrBRj.js → ro-RO-JPDTUUEW-Ck6Pl6T-.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CprdF87i.js → ru-RU-B4JR7IUQ-B5ZFvbSm.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BbWM5efa.js → sankeyDiagram-P5KCCOFB-BwrjNR9f.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-BO6yMQvy.js → sankeyDiagram-P5KCCOFB-CvESkMt0.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CFPCOaBB.js → sankeyDiagram-P5KCCOFB-DNcJ8lTV.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-foGV8N2_.js → sankeyDiagram-c3ef121a-NSdOSIUQ.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-6pLDiDbB.js → sequenceDiagram-82a5b84f-Cxc06-S6.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-C0zWhG8B.js → sequenceDiagram-WJ2MYXX4-CdKf7EXa.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-w41G2RsH.js → sequenceDiagram-WJ2MYXX4-DYkcZR01.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-BGIbaSlI.js → sequenceDiagram-WJ2MYXX4-vrbMF2lh.js} +1 -1
- package/dist-embed/chunks/{sheet-4YYsjTBK.js → sheet-BFp5lgzm.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-CBECC-z7.js → si-LK-N5RQ5JYF-turarKuZ.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-C4Um3fMN.js → sizeCapture-INFHLROL-B05-5pAF.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-WE85tnHS.js → sizeCapture-INFHLROL-BTK449Mq.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-DAIM469w.js → sizeCapture-INFHLROL-DBDGASUh.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-DMJnHZkB.js → sk-SK-C5VTKIMK-B61Eejyh.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-7Z4OGoYj.js → sl-SI-NN7IZMDC-Vmd7HFee.js} +1 -1
- package/dist-embed/chunks/{state-DWaoyyF_.js → state-B-9Ja93T.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-S14mEvLi.js → stateDiagram-43e79a5f-BNfT8BMf.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-BC6_D1er.js → stateDiagram-D77RDMKH-B4P4foWm.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-BKswuz-D.js → stateDiagram-D77RDMKH-DGy5pPcJ.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-DaQTz1j_.js → stateDiagram-D77RDMKH-cX1LxuDW.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-3GcjyBy-.js → stateDiagram-v2-2041ed4f-DT_Cb2bL.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-Bm6DUSD7.js → stateDiagram-v2-MP3YSRHH-BSxDwfLM.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-z0Ujpn87.js → stateDiagram-v2-MP3YSRHH-CoF-m0JB.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-DOLQNFRH.js → stateDiagram-v2-MP3YSRHH-GuE-uLPq.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-BRr4X9hL.js → styles-455b33cd-Cp1Ujuo8.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-UDBXX5a8.js → styles-f932cba9-CxoS5hwQ.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-CSFZuop9.js → styles-fcc2142b-ByLmqETE.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-B3u5KdN0.js → subset-shared.chunk-BsVAPxIg.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-CT6VKIPU.js → subset-worker.chunk-BS8PIaQX.js} +1 -1
- package/dist-embed/chunks/{substates-CZP38fPi.js → substates-CeUNAPt2.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-FpJ1BpmI.js → sv-SE-XGPEYMSR-C9lMr16n.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-F4sRB6k0.js → svgDrawCommon-148a3cd9-BHhr6lti.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-EibPKc5o.js → swimlanes-42K2YHIH-DKdFBGRm.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-Bm2EMEIj.js → swimlanes-42K2YHIH-DQJZa-xA.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-60OSS3vA.js → swimlanes-42K2YHIH-RHIIyMRW.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-C5g-ZOer.js → swimlanesDiagram-VR7AAH4N-DPhzMK19.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-mQfKwLBP.js → swimlanesDiagram-VR7AAH4N-qQpIxgus.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-Dd4rkKxx.js → swimlanesDiagram-VR7AAH4N-rV-EK234.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-CGrfHW-T.js → ta-IN-2NMHFXQM-DDvtKbYb.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-XSyuAjYd.js → th-TH-HPSO5L25-Cuk9i9q1.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-Dw-j__OF.js → timeline-definition-24CTP7MA-B0VfyyC9.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-DrK86SXx.js → timeline-definition-24CTP7MA-BYQXqujM.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-4xcdFEe3.js → timeline-definition-24CTP7MA-CNJYLQV3.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-BbuRGmnt.js → timeline-definition-7545f45a-B6u65RjP.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-Bmilf4wA.js → tr-TR-DEFEU3FU-Dt5AbXXF.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-D7__x2rc.js → uk-UA-QMV73CPH-CqxkvO2g.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Dyygo0QE.js → vennDiagram-4TSXK5OY-8GPjZ_rY.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-DU_TiJPw.js → vennDiagram-4TSXK5OY-BC0uMGWS.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-aBwLZ5sI.js → vennDiagram-4TSXK5OY-ERcpoENM.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-Cp1NNDFR.js → vi-VN-M7AON7JQ-CZtlZzss.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-BUupZELs.js → wardleyDiagram-VM6X3IG4-Bubuc1xO.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-8uoJ6em9.js → wardleyDiagram-VM6X3IG4-DMJNYu8Y.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DJsJzMBH.js → wardleyDiagram-VM6X3IG4-DdRbpzRB.js} +1 -1
- package/dist-embed/chunks/workbook-BQLbQvZ-.js +1 -0
- package/dist-embed/chunks/{write-DDDJmUTa.js → write-D-y9_9sL.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-CbuvIhMQ.js → xychartDiagram-3f383b91-CEkYRds9.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-D2_kfHro.js → xychartDiagram-S5SC5T6Z-C0WCXM2P.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-AUNwwAUK.js → xychartDiagram-S5SC5T6Z-DKWKSC-B.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-B9ZiyRsR.js → xychartDiagram-S5SC5T6Z-iG96dorC.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-1W7T5K4d.js → zh-CN-LNUGB5OW-6_SDF9o2.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-6wLRdIMH.js → zh-HK-E62DVLB3-em8dd9Nl.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-Bq3E0gIc.js → zh-TW-RAJ6MFWO-BCzbAoXj.js} +1 -1
- package/dist-embed/datalayer-app-main.js +68 -74
- package/lib/apps/plugins/chat/ChatView.js +96 -38
- package/lib/chat/anonymous/AnonymousChat.d.ts +0 -3
- package/lib/chat/anonymous/anonymousMode.d.ts +0 -4
- package/lib/chat/anonymous/anonymousMode.js +0 -4
- package/lib/chat/base/ChatBase.js +2 -58
- package/lib/chat/index.d.ts +1 -1
- package/lib/chat/index.js +1 -1
- package/lib/chat/indicators/index.d.ts +3 -12
- package/lib/chat/indicators/index.js +0 -15
- package/lib/chat/prompt/InputPrompt.d.ts +28 -16
- package/lib/chat/prompt/InputPrompt.js +60 -12
- package/lib/chat/prompt/menus/EquipmentMenus.d.ts +58 -81
- package/lib/chat/prompt/menus/EquipmentMenus.js +190 -127
- package/lib/chat/prompt/menus/ToolsMenu.d.ts +2 -11
- package/lib/chat/prompt/menus/ToolsMenu.js +8 -43
- package/lib/chat/prompt/menus/equipmentRows.d.ts +160 -0
- package/lib/chat/prompt/menus/equipmentRows.js +349 -0
- package/lib/chat/prompt/menus/index.d.ts +2 -1
- package/lib/chat/prompt/menus/index.js +2 -1
- package/lib/hooks/useConversationSwitches.d.ts +29 -0
- package/lib/hooks/useConversationSwitches.js +102 -0
- package/lib/hooks/useMcpToolSwitches.d.ts +13 -0
- package/lib/hooks/useMcpToolSwitches.js +96 -0
- package/lib/portable/index.d.ts +1 -1
- package/lib/portable/sessions.d.ts +47 -0
- package/lib/portable/sessions.js +7 -0
- package/lib/types/chat.d.ts +2 -3
- package/package.json +1 -1
- package/dist-embed/chunks/ChatView-BxxW10wd.js +0 -32
- package/dist-embed/chunks/index.esm-ClpGzk_d.js +0 -1
- package/dist-embed/chunks/workbook-B-AfiHkC.js +0 -1
- package/lib/chat/indicators/DisabledIndicator.d.ts +0 -18
- package/lib/chat/indicators/DisabledIndicator.js +0 -22
- package/lib/chat/indicators/McpStatusIndicator.d.ts +0 -18
- package/lib/chat/indicators/McpStatusIndicator.js +0 -106
- package/lib/chat/indicators/SkillsStatusIndicator.d.ts +0 -13
- package/lib/chat/indicators/SkillsStatusIndicator.js +0 -88
- package/lib/chat/prompt/menus/SkillsMenu.d.ts +0 -10
- package/lib/chat/prompt/menus/SkillsMenu.js +0 -49
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{r as d,j as l,bH as $e,aF as z,T as V,v as C,kv as qe,kw as Ge,fn as Xe,dE as X,a5 as se,H as Ye,fW as Ke,U as fe,fp as Je,V as Qe,j5 as Ze,j6 as et,bM as tt,b1 as nt}from"../datalayer-app-main.js";import{u as st,a as rt,D as ot,b as it}from"./DeckRenderer-DcyoBlq5.js";import{V as at}from"./VideoIcon-BTOb9gRv.js";import{P as ct}from"./index-Cz10oMGc.js";const Q=4e3,lt=700,ut=12,he=/[.!?…](?=["'»”’)\]]*(\s|$))/g,ie=e=>{const t=(e??"").replace(/[*_`]+/g,"").replace(/\s+/g," ").trim();if(!t)return[];const s=[];let n=0;he.lastIndex=0;let r;for(;(r=he.exec(t))!==null;){const i=r.index+r[0].length,a=t.slice(n,i).trim();a.length>=ut&&(s.push(a),n=i)}const o=t.slice(n).trim();return o&&s.push(o),s},Pe={status:"idle",script:[],slide:0,sentence:0,run:0},te=e=>e.status==="playing"||e.status==="paused",dt=(e,t)=>{switch(t.type){case"play":{const s=t.script.length-1;return s<0?{...Pe,status:"ended",run:e.run+1}:{status:"playing",script:t.script,slide:Math.min(Math.max(0,t.slide),s),sentence:0,run:e.run+1}}case"sentence":return e.status!=="playing"?e:{...e,sentence:Math.min(Math.max(0,t.index),Math.max(0,(e.script[e.slide]?.length??1)-1))};case"slideDone":return e.status!=="playing"?e:e.slide+1>=e.script.length?{...e,status:"ended",sentence:0}:{...e,slide:e.slide+1,sentence:0,run:e.run+1};case"pause":return e.status==="playing"?{...e,status:"paused"}:e;case"resume":return e.status==="paused"?{...e,status:"playing",run:e.run+1}:e;case"stop":return te(e)?{...e,status:"idle",reason:void 0}:e;case"refused":return te(e)?{...e,status:"refused",reason:t.reason}:e;case"moved":return!te(e)||t.slide===e.slide||t.slide<0||t.slide>=e.script.length?e:{...e,slide:t.slide,sentence:0,run:e.run+1};default:return e}},ft=e=>(e.script[e.slide]??[]).slice(e.sentence),ht=e=>{const t=e.script[e.slide]??[],s=Math.max(0,e.sentence-1);return t.slice(s,e.sentence+2).map((n,r)=>({text:n,index:s+r,current:s+r===e.sentence}))},Ie=(e,t=ie)=>e.map(s=>t(s.notes)),mt=(e,t,s)=>{const[n,r]=d.useReducer(dt,Pe);d.useEffect(()=>{if(n.status!=="playing"||!t)return;const h=s.current,g=!!h&&h.getIndices().h!==n.slide;g&&h.slide(n.slide);const p=ft(n),j=n.sentence;if(!p.length){const w=window.setTimeout(()=>r({type:"slideDone"}),Q);return()=>window.clearTimeout(w)}let D=!1;const S=()=>{D=!0,t.speak(p,{onSentence:w=>r({type:"sentence",index:j+w}),onEnd:()=>r({type:"slideDone"}),onRefused:w=>r({type:"refused",reason:w})})},F=g?window.setTimeout(S,lt):void 0;return g||S(),()=>{window.clearTimeout(F),D&&t.stop()}},[n.run,n.status,t]),d.useEffect(()=>()=>t?.stop(),[t]);const o=d.useCallback(h=>{t?.unlock?.(),r({type:"play",slide:h,script:Ie(e.slides,t?.sentences??ie)})},[t,e.slides]),i=d.useCallback(()=>r({type:"pause"}),[]),a=d.useCallback(()=>{t?.unlock?.(),r({type:"resume"})},[t]),c=d.useCallback(()=>r({type:"stop"}),[]),m=d.useCallback(h=>r({type:"moved",slide:h}),[]),u=n.status==="playing"||n.status==="paused",f=n.status==="paused";return d.useEffect(()=>{if(!u)return;const h=g=>{const p=g.target;p&&/^(INPUT|TEXTAREA|SELECT)$/.test(p.tagName)||(g.key===" "||g.key==="Spacebar"?(g.preventDefault(),g.stopPropagation(),f?a():i()):g.key==="Escape"&&c())};return window.addEventListener("keydown",h,!0),()=>window.removeEventListener("keydown",h,!0)},[u,f,i,a,c]),{state:n,play:o,pause:i,resume:a,stop:c,moved:m}},Me={position:"absolute",left:"6%",right:"6%",bottom:"5%",zIndex:40,padding:"0.6em 1em",borderRadius:10,background:"rgba(15, 18, 24, 0.82)",color:"#f6f8fa",fontFamily:"var(--dla-deck-font, inherit)",fontSize:"clamp(13px, 1.5vw, 30px)",lineHeight:1.45,textAlign:"center",pointerEvents:"none"},me=({state:e,target:t})=>{if(!t||e.status!=="playing"&&e.status!=="paused")return null;const s=ht(e),n=s.length?s.map(r=>l.jsxs("span",{"data-caption":r.current?"current":"context",style:{opacity:r.current?1:.45,fontWeight:r.current?600:400},children:[r.text," "]},r.index)):l.jsxs("span",{"data-caption":"silent",style:{opacity:.8,fontStyle:"italic"},children:["No notes on this slide — the next one follows in ",Math.round(Q/1e3)," ","seconds."]});return $e.createPortal(l.jsxs("div",{className:"dla-deck-captions",role:"status","aria-live":"polite",style:Me,children:[n,e.status==="paused"&&l.jsx("div",{style:{fontSize:"0.7em",opacity:.8,marginTop:"0.3em"},children:"Paused · space resumes · Escape stops"})]}),t)},gt=({notes:e,presenting:t,target:s})=>{const n=e?.trim(),r=n?l.jsx("span",{style:{whiteSpace:"pre-wrap"},children:n}):l.jsx("span",{style:{fontStyle:"italic",opacity:.75},children:"No speaker notes on this slide."});return t?s?$e.createPortal(l.jsx("div",{className:"dla-deck-speaker-notes","data-speaker-notes":"",style:{...Me,textAlign:"left",fontSize:"clamp(13px, 1.1vw, 22px)",maxHeight:"30%",overflowY:"auto",pointerEvents:"auto"},children:r}),s):null:l.jsxs("div",{className:"dla-deck-speaker-notes","data-speaker-notes":"",style:{padding:"12px 16px",borderRadius:6,border:"1px solid var(--borderColor-default, #d0d7de)",fontSize:14,lineHeight:1.5},children:[l.jsx("strong",{style:{display:"block",fontSize:12,marginBottom:4},children:"Speaker notes"}),r]})};function pt(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const s=document.implementation.createHTMLDocument(),n=s.createElement("base"),r=s.createElement("a");return s.head.appendChild(n),s.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}const wt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function A(e){const t=[];for(let s=0,n=e.length;s<n;s++)t.push(e[s]);return t}let U=null;function De(e={}){return U||(e.includeStyleProperties?(U=e.includeStyleProperties,U):(U=A(window.getComputedStyle(document.documentElement)),U))}function Y(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function yt(e){const t=Y(e,"border-left-width"),s=Y(e,"border-right-width");return e.clientWidth+t+s}function xt(e){const t=Y(e,"border-top-width"),s=Y(e,"border-bottom-width");return e.clientHeight+t+s}function Le(e,t={}){const s=t.width||yt(e),n=t.height||xt(e);return{width:s,height:n}}function St(){let e,t;try{t=process}catch{}const s=t&&t.env?t.env.devicePixelRatio:null;return s&&(e=parseInt(s,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const I=16384;function bt(e){(e.width>I||e.height>I)&&(e.width>I&&e.height>I?e.width>e.height?(e.height*=I/e.width,e.width=I):(e.width*=I/e.height,e.height=I):e.width>I?(e.height*=I/e.width,e.width=I):(e.width*=I/e.height,e.height=I))}function K(e){return new Promise((t,s)=>{const n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=s,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function Et(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function kt(e,t,s){const n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${s}`),r.setAttribute("viewBox",`0 0 ${t} ${s}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),r.appendChild(o),o.appendChild(e),Et(r)}const P=(e,t)=>{if(e instanceof t)return!0;const s=Object.getPrototypeOf(e);return s===null?!1:s.constructor.name===t.name||P(s,t)};function vt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Ct(e,t){return De(t).map(s=>{const n=e.getPropertyValue(s),r=e.getPropertyPriority(s);return`${s}: ${n}${r?" !important":""};`}).join(" ")}function Tt(e,t,s,n){const r=`.${e}:${t}`,o=s.cssText?vt(s):Ct(s,n);return document.createTextNode(`${r}{${o}}`)}function ge(e,t,s,n){const r=window.getComputedStyle(e,s),o=r.getPropertyValue("content");if(o===""||o==="none")return;const i=wt();try{t.className=`${t.className} ${i}`}catch{return}const a=document.createElement("style");a.appendChild(Tt(i,s,r,n)),t.appendChild(a)}function Rt(e,t,s){ge(e,t,":before",s),ge(e,t,":after",s)}const pe="application/font-woff",we="image/jpeg",$t={woff:pe,woff2:pe,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:we,jpeg:we,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Pt(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function ae(e){const t=Pt(e).toLowerCase();return $t[t]||""}function It(e){return e.split(/,/)[1]}function re(e){return e.search(/^(data:)/)!==-1}function Mt(e,t){return`data:${t};base64,${e}`}async function je(e,t,s){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const r=await n.blob();return new Promise((o,i)=>{const a=new FileReader;a.onerror=i,a.onloadend=()=>{try{o(s({res:n,result:a.result}))}catch(c){i(c)}},a.readAsDataURL(r)})}const ne={};function Dt(e,t,s){let n=e.replace(/\?.*/,"");return s&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function ce(e,t,s){const n=Dt(e,t,s.includeQueryParams);if(ne[n]!=null)return ne[n];s.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const o=await je(e,s.fetchRequestInit,({res:i,result:a})=>(t||(t=i.headers.get("Content-Type")||""),It(a)));r=Mt(o,t)}catch(o){r=s.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return ne[n]=r,r}async function Lt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):K(t)}async function jt(e,t){if(e.currentSrc){const o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i?.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return K(a)}const s=e.poster,n=ae(s),r=await ce(s,n,t);return K(r)}async function Ft(e,t){var s;try{if(!((s=e?.contentDocument)===null||s===void 0)&&s.body)return await Z(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function At(e,t){return P(e,HTMLCanvasElement)?Lt(e):P(e,HTMLVideoElement)?jt(e,t):P(e,HTMLIFrameElement)?Ft(e,t):e.cloneNode(Fe(e))}const _t=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Fe=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Vt(e,t,s){var n,r;if(Fe(t))return t;let o=[];return _t(e)&&e.assignedNodes?o=A(e.assignedNodes()):P(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?o=A(e.contentDocument.body.childNodes):o=A(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),o.length===0||P(e,HTMLVideoElement)||await o.reduce((i,a)=>i.then(()=>Z(a,s)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function Ht(e,t,s){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):De(s).forEach(o=>{let i=r.getPropertyValue(o);o==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),P(e,HTMLIFrameElement)&&o==="display"&&i==="inline"&&(i="block"),o==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))})}function Ot(e,t){P(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),P(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ut(e,t){if(P(e,HTMLSelectElement)){const n=Array.from(t.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Bt(e,t,s){return P(t,Element)&&(Ht(e,t,s),Rt(e,t,s),Ot(e,t),Ut(e,t)),t}async function zt(e,t){const s=e.querySelectorAll?e.querySelectorAll("use"):[];if(s.length===0)return e;const n={};for(let o=0;o<s.length;o++){const a=s[o].getAttribute("xlink:href");if(a){const c=e.querySelector(a),m=document.querySelector(a);!c&&m&&!n[a]&&(n[a]=await Z(m,t,!0))}}const r=Object.values(n);if(r.length){const o="http://www.w3.org/1999/xhtml",i=document.createElementNS(o,"svg");i.setAttribute("xmlns",o),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const a=document.createElementNS(o,"defs");i.appendChild(a);for(let c=0;c<r.length;c++)a.appendChild(r[c]);e.appendChild(i)}return e}async function Z(e,t,s){return!s&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>At(n,t)).then(n=>Vt(e,n,t)).then(n=>Bt(e,n,t)).then(n=>zt(n,t))}const Ae=/url\((['"]?)([^'"]+?)\1\)/g,Wt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Nt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function qt(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Gt(e){const t=[];return e.replace(Ae,(s,n,r)=>(t.push(r),s)),t.filter(s=>!re(s))}async function Xt(e,t,s,n,r){try{const o=s?pt(t,s):t,i=ae(t);let a;return r||(a=await ce(o,i,n)),e.replace(qt(t),`$1${a}$3`)}catch{}return e}function Yt(e,{preferredFontFormat:t}){return t?e.replace(Nt,s=>{for(;;){const[n,,r]=Wt.exec(s)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function _e(e){return e.search(Ae)!==-1}async function Ve(e,t,s){if(!_e(e))return e;const n=Yt(e,s);return Gt(n).reduce((o,i)=>o.then(a=>Xt(a,i,t,s)),Promise.resolve(n))}async function B(e,t,s){var n;const r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){const o=await Ve(r,null,s);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function Kt(e,t){await B("background",e,t)||await B("background-image",e,t),await B("mask",e,t)||await B("-webkit-mask",e,t)||await B("mask-image",e,t)||await B("-webkit-mask-image",e,t)}async function Jt(e,t){const s=P(e,HTMLImageElement);if(!(s&&!re(e.src))&&!(P(e,SVGImageElement)&&!re(e.href.baseVal)))return;const n=s?e.src:e.href.baseVal,r=await ce(n,ae(n),t);await new Promise((o,i)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...c)=>{try{o(t.onImageErrorHandler(...c))}catch(m){i(m)}}:i;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),s?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){const n=A(e.childNodes).map(r=>He(r,t));await Promise.all(n).then(()=>e)}async function He(e,t){P(e,Element)&&(await Kt(e,t),await Jt(e,t),await Qt(e,t))}function Zt(e,t){const{style:s}=e;t.backgroundColor&&(s.backgroundColor=t.backgroundColor),t.width&&(s.width=`${t.width}px`),t.height&&(s.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(r=>{s[r]=n[r]}),e}const ye={};async function xe(e){let t=ye[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},ye[e]=t,t}async function Se(e,t){let s=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=(s.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(n,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),je(a,t.fetchRequestInit,({result:c})=>(s=s.replace(i,`url(${c})`),[i,c]))});return Promise.all(o).then(()=>s)}function be(e){if(e==null)return[];const t=[],s=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(s,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(n);if(c===null)break;t.push(c[0])}n=n.replace(r,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(i,"gi");for(;;){let c=o.exec(n);if(c===null){if(c=a.exec(n),c===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(c[0])}return t}async function en(e,t){const s=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{A(r.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let a=i+1;const c=o.href,m=xe(c).then(u=>Se(u,t)).then(u=>be(u).forEach(f=>{try{r.insertRule(f,f.startsWith("@import")?a+=1:r.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:f,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});n.push(m)}})}catch(o){const i=e.find(a=>a.href==null)||document.styleSheets[0];r.href!=null&&n.push(xe(r.href).then(a=>Se(a,t)).then(a=>be(a).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{A(r.cssRules||[]).forEach(o=>{s.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${r.href}`,o)}}),s))}function tn(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>_e(t.style.getPropertyValue("src")))}async function nn(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const s=A(e.ownerDocument.styleSheets),n=await en(s,t);return tn(n)}function Oe(e){return e.trim().replace(/["']/g,"")}function sn(e){const t=new Set;function s(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(o=>{t.add(Oe(o))}),Array.from(n.children).forEach(o=>{o instanceof HTMLElement&&s(o)})}return s(e),t}async function Ue(e,t){const s=await nn(e,t),n=sn(e);return(await Promise.all(s.filter(o=>n.has(Oe(o.style.fontFamily))).map(o=>{const i=o.parentStyleSheet?o.parentStyleSheet.href:null;return Ve(o.cssText,i,t)}))).join(`
|
|
1
|
+
import{r as d,j as l,bH as $e,aF as z,T as V,v as C,kz as qe,kA as Ge,fn as Xe,dE as X,a5 as se,H as Ye,fW as Ke,U as fe,fp as Je,V as Qe,j9 as Ze,ja as et,bM as tt,b1 as nt}from"../datalayer-app-main.js";import{u as st,a as rt,D as ot,b as it}from"./DeckRenderer-DQmjQ_vE.js";import{V as at}from"./VideoIcon-BTOb9gRv.js";import{P as ct}from"./index-Cz10oMGc.js";const Q=4e3,lt=700,ut=12,he=/[.!?…](?=["'»”’)\]]*(\s|$))/g,ie=e=>{const t=(e??"").replace(/[*_`]+/g,"").replace(/\s+/g," ").trim();if(!t)return[];const s=[];let n=0;he.lastIndex=0;let r;for(;(r=he.exec(t))!==null;){const i=r.index+r[0].length,a=t.slice(n,i).trim();a.length>=ut&&(s.push(a),n=i)}const o=t.slice(n).trim();return o&&s.push(o),s},Pe={status:"idle",script:[],slide:0,sentence:0,run:0},te=e=>e.status==="playing"||e.status==="paused",dt=(e,t)=>{switch(t.type){case"play":{const s=t.script.length-1;return s<0?{...Pe,status:"ended",run:e.run+1}:{status:"playing",script:t.script,slide:Math.min(Math.max(0,t.slide),s),sentence:0,run:e.run+1}}case"sentence":return e.status!=="playing"?e:{...e,sentence:Math.min(Math.max(0,t.index),Math.max(0,(e.script[e.slide]?.length??1)-1))};case"slideDone":return e.status!=="playing"?e:e.slide+1>=e.script.length?{...e,status:"ended",sentence:0}:{...e,slide:e.slide+1,sentence:0,run:e.run+1};case"pause":return e.status==="playing"?{...e,status:"paused"}:e;case"resume":return e.status==="paused"?{...e,status:"playing",run:e.run+1}:e;case"stop":return te(e)?{...e,status:"idle",reason:void 0}:e;case"refused":return te(e)?{...e,status:"refused",reason:t.reason}:e;case"moved":return!te(e)||t.slide===e.slide||t.slide<0||t.slide>=e.script.length?e:{...e,slide:t.slide,sentence:0,run:e.run+1};default:return e}},ft=e=>(e.script[e.slide]??[]).slice(e.sentence),ht=e=>{const t=e.script[e.slide]??[],s=Math.max(0,e.sentence-1);return t.slice(s,e.sentence+2).map((n,r)=>({text:n,index:s+r,current:s+r===e.sentence}))},Ie=(e,t=ie)=>e.map(s=>t(s.notes)),mt=(e,t,s)=>{const[n,r]=d.useReducer(dt,Pe);d.useEffect(()=>{if(n.status!=="playing"||!t)return;const h=s.current,g=!!h&&h.getIndices().h!==n.slide;g&&h.slide(n.slide);const p=ft(n),j=n.sentence;if(!p.length){const w=window.setTimeout(()=>r({type:"slideDone"}),Q);return()=>window.clearTimeout(w)}let D=!1;const S=()=>{D=!0,t.speak(p,{onSentence:w=>r({type:"sentence",index:j+w}),onEnd:()=>r({type:"slideDone"}),onRefused:w=>r({type:"refused",reason:w})})},A=g?window.setTimeout(S,lt):void 0;return g||S(),()=>{window.clearTimeout(A),D&&t.stop()}},[n.run,n.status,t]),d.useEffect(()=>()=>t?.stop(),[t]);const o=d.useCallback(h=>{t?.unlock?.(),r({type:"play",slide:h,script:Ie(e.slides,t?.sentences??ie)})},[t,e.slides]),i=d.useCallback(()=>r({type:"pause"}),[]),a=d.useCallback(()=>{t?.unlock?.(),r({type:"resume"})},[t]),c=d.useCallback(()=>r({type:"stop"}),[]),m=d.useCallback(h=>r({type:"moved",slide:h}),[]),u=n.status==="playing"||n.status==="paused",f=n.status==="paused";return d.useEffect(()=>{if(!u)return;const h=g=>{const p=g.target;p&&/^(INPUT|TEXTAREA|SELECT)$/.test(p.tagName)||(g.key===" "||g.key==="Spacebar"?(g.preventDefault(),g.stopPropagation(),f?a():i()):g.key==="Escape"&&c())};return window.addEventListener("keydown",h,!0),()=>window.removeEventListener("keydown",h,!0)},[u,f,i,a,c]),{state:n,play:o,pause:i,resume:a,stop:c,moved:m}},Me={position:"absolute",left:"6%",right:"6%",bottom:"5%",zIndex:40,padding:"0.6em 1em",borderRadius:10,background:"rgba(15, 18, 24, 0.82)",color:"#f6f8fa",fontFamily:"var(--dla-deck-font, inherit)",fontSize:"clamp(13px, 1.5vw, 30px)",lineHeight:1.45,textAlign:"center",pointerEvents:"none"},me=({state:e,target:t})=>{if(!t||e.status!=="playing"&&e.status!=="paused")return null;const s=ht(e),n=s.length?s.map(r=>l.jsxs("span",{"data-caption":r.current?"current":"context",style:{opacity:r.current?1:.45,fontWeight:r.current?600:400},children:[r.text," "]},r.index)):l.jsxs("span",{"data-caption":"silent",style:{opacity:.8,fontStyle:"italic"},children:["No notes on this slide — the next one follows in ",Math.round(Q/1e3)," ","seconds."]});return $e.createPortal(l.jsxs("div",{className:"dla-deck-captions",role:"status","aria-live":"polite",style:Me,children:[n,e.status==="paused"&&l.jsx("div",{style:{fontSize:"0.7em",opacity:.8,marginTop:"0.3em"},children:"Paused · space resumes · Escape stops"})]}),t)},gt=({notes:e,presenting:t,target:s})=>{const n=e?.trim(),r=n?l.jsx("span",{style:{whiteSpace:"pre-wrap"},children:n}):l.jsx("span",{style:{fontStyle:"italic",opacity:.75},children:"No speaker notes on this slide."});return t?s?$e.createPortal(l.jsx("div",{className:"dla-deck-speaker-notes","data-speaker-notes":"",style:{...Me,textAlign:"left",fontSize:"clamp(13px, 1.1vw, 22px)",maxHeight:"30%",overflowY:"auto",pointerEvents:"auto"},children:r}),s):null:l.jsxs("div",{className:"dla-deck-speaker-notes","data-speaker-notes":"",style:{padding:"12px 16px",borderRadius:6,border:"1px solid var(--borderColor-default, #d0d7de)",fontSize:14,lineHeight:1.5},children:[l.jsx("strong",{style:{display:"block",fontSize:12,marginBottom:4},children:"Speaker notes"}),r]})};function pt(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const s=document.implementation.createHTMLDocument(),n=s.createElement("base"),r=s.createElement("a");return s.head.appendChild(n),s.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}const wt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function F(e){const t=[];for(let s=0,n=e.length;s<n;s++)t.push(e[s]);return t}let U=null;function De(e={}){return U||(e.includeStyleProperties?(U=e.includeStyleProperties,U):(U=F(window.getComputedStyle(document.documentElement)),U))}function Y(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function yt(e){const t=Y(e,"border-left-width"),s=Y(e,"border-right-width");return e.clientWidth+t+s}function xt(e){const t=Y(e,"border-top-width"),s=Y(e,"border-bottom-width");return e.clientHeight+t+s}function Le(e,t={}){const s=t.width||yt(e),n=t.height||xt(e);return{width:s,height:n}}function St(){let e,t;try{t=process}catch{}const s=t&&t.env?t.env.devicePixelRatio:null;return s&&(e=parseInt(s,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const I=16384;function bt(e){(e.width>I||e.height>I)&&(e.width>I&&e.height>I?e.width>e.height?(e.height*=I/e.width,e.width=I):(e.width*=I/e.height,e.height=I):e.width>I?(e.height*=I/e.width,e.width=I):(e.width*=I/e.height,e.height=I))}function K(e){return new Promise((t,s)=>{const n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=s,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function Et(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function kt(e,t,s){const n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${s}`),r.setAttribute("viewBox",`0 0 ${t} ${s}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),r.appendChild(o),o.appendChild(e),Et(r)}const P=(e,t)=>{if(e instanceof t)return!0;const s=Object.getPrototypeOf(e);return s===null?!1:s.constructor.name===t.name||P(s,t)};function vt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Ct(e,t){return De(t).map(s=>{const n=e.getPropertyValue(s),r=e.getPropertyPriority(s);return`${s}: ${n}${r?" !important":""};`}).join(" ")}function Tt(e,t,s,n){const r=`.${e}:${t}`,o=s.cssText?vt(s):Ct(s,n);return document.createTextNode(`${r}{${o}}`)}function ge(e,t,s,n){const r=window.getComputedStyle(e,s),o=r.getPropertyValue("content");if(o===""||o==="none")return;const i=wt();try{t.className=`${t.className} ${i}`}catch{return}const a=document.createElement("style");a.appendChild(Tt(i,s,r,n)),t.appendChild(a)}function Rt(e,t,s){ge(e,t,":before",s),ge(e,t,":after",s)}const pe="application/font-woff",we="image/jpeg",$t={woff:pe,woff2:pe,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:we,jpeg:we,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Pt(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function ae(e){const t=Pt(e).toLowerCase();return $t[t]||""}function It(e){return e.split(/,/)[1]}function re(e){return e.search(/^(data:)/)!==-1}function Mt(e,t){return`data:${t};base64,${e}`}async function je(e,t,s){const n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const r=await n.blob();return new Promise((o,i)=>{const a=new FileReader;a.onerror=i,a.onloadend=()=>{try{o(s({res:n,result:a.result}))}catch(c){i(c)}},a.readAsDataURL(r)})}const ne={};function Dt(e,t,s){let n=e.replace(/\?.*/,"");return s&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function ce(e,t,s){const n=Dt(e,t,s.includeQueryParams);if(ne[n]!=null)return ne[n];s.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const o=await je(e,s.fetchRequestInit,({res:i,result:a})=>(t||(t=i.headers.get("Content-Type")||""),It(a)));r=Mt(o,t)}catch(o){r=s.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;o&&(i=typeof o=="string"?o:o.message),i&&console.warn(i)}return ne[n]=r,r}async function Lt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):K(t)}async function jt(e,t){if(e.currentSrc){const o=document.createElement("canvas"),i=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,i?.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return K(a)}const s=e.poster,n=ae(s),r=await ce(s,n,t);return K(r)}async function At(e,t){var s;try{if(!((s=e?.contentDocument)===null||s===void 0)&&s.body)return await Z(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Ft(e,t){return P(e,HTMLCanvasElement)?Lt(e):P(e,HTMLVideoElement)?jt(e,t):P(e,HTMLIFrameElement)?At(e,t):e.cloneNode(Ae(e))}const _t=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Ae=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Vt(e,t,s){var n,r;if(Ae(t))return t;let o=[];return _t(e)&&e.assignedNodes?o=F(e.assignedNodes()):P(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?o=F(e.contentDocument.body.childNodes):o=F(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),o.length===0||P(e,HTMLVideoElement)||await o.reduce((i,a)=>i.then(()=>Z(a,s)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function Ht(e,t,s){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):De(s).forEach(o=>{let i=r.getPropertyValue(o);o==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),P(e,HTMLIFrameElement)&&o==="display"&&i==="inline"&&(i="block"),o==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),n.setProperty(o,i,r.getPropertyPriority(o))})}function Ot(e,t){P(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),P(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ut(e,t){if(P(e,HTMLSelectElement)){const n=Array.from(t.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Bt(e,t,s){return P(t,Element)&&(Ht(e,t,s),Rt(e,t,s),Ot(e,t),Ut(e,t)),t}async function zt(e,t){const s=e.querySelectorAll?e.querySelectorAll("use"):[];if(s.length===0)return e;const n={};for(let o=0;o<s.length;o++){const a=s[o].getAttribute("xlink:href");if(a){const c=e.querySelector(a),m=document.querySelector(a);!c&&m&&!n[a]&&(n[a]=await Z(m,t,!0))}}const r=Object.values(n);if(r.length){const o="http://www.w3.org/1999/xhtml",i=document.createElementNS(o,"svg");i.setAttribute("xmlns",o),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const a=document.createElementNS(o,"defs");i.appendChild(a);for(let c=0;c<r.length;c++)a.appendChild(r[c]);e.appendChild(i)}return e}async function Z(e,t,s){return!s&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Ft(n,t)).then(n=>Vt(e,n,t)).then(n=>Bt(e,n,t)).then(n=>zt(n,t))}const Fe=/url\((['"]?)([^'"]+?)\1\)/g,Wt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Nt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function qt(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Gt(e){const t=[];return e.replace(Fe,(s,n,r)=>(t.push(r),s)),t.filter(s=>!re(s))}async function Xt(e,t,s,n,r){try{const o=s?pt(t,s):t,i=ae(t);let a;return r||(a=await ce(o,i,n)),e.replace(qt(t),`$1${a}$3`)}catch{}return e}function Yt(e,{preferredFontFormat:t}){return t?e.replace(Nt,s=>{for(;;){const[n,,r]=Wt.exec(s)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function _e(e){return e.search(Fe)!==-1}async function Ve(e,t,s){if(!_e(e))return e;const n=Yt(e,s);return Gt(n).reduce((o,i)=>o.then(a=>Xt(a,i,t,s)),Promise.resolve(n))}async function B(e,t,s){var n;const r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){const o=await Ve(r,null,s);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function Kt(e,t){await B("background",e,t)||await B("background-image",e,t),await B("mask",e,t)||await B("-webkit-mask",e,t)||await B("mask-image",e,t)||await B("-webkit-mask-image",e,t)}async function Jt(e,t){const s=P(e,HTMLImageElement);if(!(s&&!re(e.src))&&!(P(e,SVGImageElement)&&!re(e.href.baseVal)))return;const n=s?e.src:e.href.baseVal,r=await ce(n,ae(n),t);await new Promise((o,i)=>{e.onload=o,e.onerror=t.onImageErrorHandler?(...c)=>{try{o(t.onImageErrorHandler(...c))}catch(m){i(m)}}:i;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),s?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){const n=F(e.childNodes).map(r=>He(r,t));await Promise.all(n).then(()=>e)}async function He(e,t){P(e,Element)&&(await Kt(e,t),await Jt(e,t),await Qt(e,t))}function Zt(e,t){const{style:s}=e;t.backgroundColor&&(s.backgroundColor=t.backgroundColor),t.width&&(s.width=`${t.width}px`),t.height&&(s.height=`${t.height}px`);const n=t.style;return n!=null&&Object.keys(n).forEach(r=>{s[r]=n[r]}),e}const ye={};async function xe(e){let t=ye[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},ye[e]=t,t}async function Se(e,t){let s=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=(s.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(n,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),je(a,t.fetchRequestInit,({result:c})=>(s=s.replace(i,`url(${c})`),[i,c]))});return Promise.all(o).then(()=>s)}function be(e){if(e==null)return[];const t=[],s=/(\/\*[\s\S]*?\*\/)/gi;let n=e.replace(s,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(n);if(c===null)break;t.push(c[0])}n=n.replace(r,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(i,"gi");for(;;){let c=o.exec(n);if(c===null){if(c=a.exec(n),c===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(c[0])}return t}async function en(e,t){const s=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{F(r.cssRules||[]).forEach((o,i)=>{if(o.type===CSSRule.IMPORT_RULE){let a=i+1;const c=o.href,m=xe(c).then(u=>Se(u,t)).then(u=>be(u).forEach(f=>{try{r.insertRule(f,f.startsWith("@import")?a+=1:r.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:f,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});n.push(m)}})}catch(o){const i=e.find(a=>a.href==null)||document.styleSheets[0];r.href!=null&&n.push(xe(r.href).then(a=>Se(a,t)).then(a=>be(a).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{F(r.cssRules||[]).forEach(o=>{s.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${r.href}`,o)}}),s))}function tn(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>_e(t.style.getPropertyValue("src")))}async function nn(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const s=F(e.ownerDocument.styleSheets),n=await en(s,t);return tn(n)}function Oe(e){return e.trim().replace(/["']/g,"")}function sn(e){const t=new Set;function s(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(o=>{t.add(Oe(o))}),Array.from(n.children).forEach(o=>{o instanceof HTMLElement&&s(o)})}return s(e),t}async function Ue(e,t){const s=await nn(e,t),n=sn(e);return(await Promise.all(s.filter(o=>n.has(Oe(o.style.fontFamily))).map(o=>{const i=o.parentStyleSheet?o.parentStyleSheet.href:null;return Ve(o.cssText,i,t)}))).join(`
|
|
2
2
|
`)}async function rn(e,t){const s=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Ue(e,t);if(s){const n=document.createElement("style"),r=document.createTextNode(s);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function on(e,t={}){const{width:s,height:n}=Le(e,t),r=await Z(e,t,!0);return await rn(r,t),await He(r,t),Zt(r,t),await kt(r,s,n)}async function an(e,t={}){const{width:s,height:n}=Le(e,t),r=await on(e,t),o=await K(r),i=document.createElement("canvas"),a=i.getContext("2d"),c=t.pixelRatio||St(),m=t.canvasWidth||s,u=t.canvasHeight||n;return i.width=m*c,i.height=u*c,t.skipAutoScale||bt(i),i.style.width=`${m}`,i.style.height=`${u}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,i.width,i.height)),a.drawImage(o,0,0,i.width,i.height),i}async function cn(e,t={}){return Ue(e,t)}const Ee=(e,t,s,n)=>{const r=e.replace(/\s+/g," ").trim().split(" ").filter(Boolean),o=[];let i="";for(const a of r){const c=i?`${i} ${a}`:a;!i||n(c,s)<=t?i=c:(o.push(i),i=a)}return i&&o.push(i),o},ln=(e,t,s,n,r)=>{if(!n.length)throw new Error("A caption needs at least one size.");for(const i of n){const a=Ee(e,t,i,r);if(a.length<=s)return{size:i,lines:a}}const o=n[n.length-1];return{size:o,lines:Ee(e,t,o,r)}},un=(e,t)=>{const s=e.createGain();return s.gain.value=t?1:0,s.connect(e.destination),s},dn=(e,t)=>{e.gain.value=t?1:0},fn=(e,t,s)=>{const n=e.createGain();return n.connect(t),s&&n.connect(s),n},hn=.6,mn=.35,gn=.9,pn=Q/1e3,wn=(e,t)=>{if(e.length!==t.length)throw new Error(`The deck has ${e.length} slides but ${t.length} were voiced.`);const s=[],n=[];let r=0;return e.forEach((o,i)=>{const a=t[i];if(a.length!==o.length)throw new Error(`Slide ${i+1} has ${o.length} sentences but ${a.length} were voiced.`);const c=r;if(!o.length){r+=pn,s.push({slide:i,start:c,end:r,cues:[]});return}r+=hn;const m=o.map((u,f)=>{const h=a[f];if(!Number.isFinite(h)||h<0)throw new Error(`Slide ${i+1}, sentence ${f+1} has no length.`);f>0&&(r+=mn);const g={slide:i,sentence:f,text:u,start:r,end:r+h};return r+=h,g});r+=gn,s.push({slide:i,start:c,end:r,cues:m}),n.push(...m)}),{slides:s,cues:n,duration:r}},Be=(e,t)=>{const{slides:s}=e;if(!s.length)return{slide:0};const n=s.find(o=>t<o.end)??s[s.length-1],r=n.cues.find(o=>t>=o.start&&t<o.end);return{slide:n.slide,cue:r}},yn=(e,t)=>{const{slide:s}=Be(e,t),n=e.slides.find(o=>o.slide===s)?.cues??[];let r=0;for(const o of n)t>=o.start&&(r=o.sentence);return{slide:s,sentence:r}},oe=e=>{const t=Math.max(0,Math.floor(e)),s=Math.floor(t/3600),n=Math.floor(t%3600/60),r=String(t%60).padStart(2,"0");return s?`${s}:${String(n).padStart(2,"0")}:${r}`:`${n}:${r}`},xn=e=>e.normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,80)||"deck",ke=e=>{const t=Math.max(0,Math.round(e*1e3)),s=Math.floor(t/36e5),n=Math.floor(t%36e5/6e4),r=Math.floor(t%6e4/1e3),o=t%1e3,i=a=>String(a).padStart(2,"0");return`${i(s)}:${i(n)}:${i(r)}.${String(o).padStart(3,"0")}`},ve=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\s+/g," ").trim(),Sn=(e,t)=>{const s=t?`WEBVTT - ${ve(t)}`:"WEBVTT",n=e.map((r,o)=>`${o+1} · slide ${r.slide+1}
|
|
3
3
|
${ke(r.start)} --> ${ke(r.end)}
|
|
4
4
|
`+ve(r.text));return[s,...n].join(`
|
|
5
5
|
|
|
6
6
|
`)+`
|
|
7
|
-
`},q=1920,ee=1080,bn=30,En=2,Ce=15e3,kn=3e3,vn=["video/mp4;codecs=avc1,mp4a.40.2","video/mp4;codecs=avc1,mp4a","video/mp4;codecs=avc1,opus","video/webm;codecs=vp9,opus","video/webm;codecs=vp8,opus"],Cn=()=>typeof MediaRecorder>"u"?void 0:vn.find(e=>MediaRecorder.isTypeSupported(e)),Tn=e=>new Promise((t,s)=>e.toBlob(n=>n?t(n):s(new Error("The slide could not be made a picture.")),"image/png"));class le extends Error{constructor(){super("Making the video was cancelled."),this.name="VideoCancelled"}}const J=e=>{if(e.aborted)throw new le},ze=e=>new Promise(t=>window.setTimeout(t,e)),Rn=["controls","progress","slide-number","pause-overlay","dla-deck-captions","dla-deck-speaker-notes"],Te=e=>!(e.classList&&Rn.some(t=>e.classList.contains(t))),$n=async(e,t)=>{await document.fonts.ready;const s=Date.now()+Ce;for(;;){const n=[...e.querySelectorAll("img")].every(o=>o.complete),r=[...e.querySelectorAll(".dla-mermaid-svg")].every(o=>o.querySelector("svg")!==null||o.classList.contains("dla-mermaid-svg--hidden"));if(n&&r)return;if(Date.now()>s)throw new Error(`Slide ${t} did not finish drawing its ${n?"diagram":"pictures"} in ${Ce/1e3} seconds.`);await ze(100)}},Pn=/^(transparent|rgba\(.*,\s*0\))$/,In=e=>{for(let t=e;t;t=t.parentElement){const s=getComputedStyle(t).backgroundColor;if(s&&!Pn.test(s))return s}return"#ffffff"},We=(e,t)=>{e.slide(t,0);const s=e.getCurrentSlide(),n=[...s.querySelectorAll(".fragment")].map(r=>Number(r.getAttribute("data-fragment-index"))).filter(Number.isFinite);return n.length&&e.slide(t,0,Math.max(...n)),s},W="dla-deck--capturing",Mn=`.${W}, .${W} *, .${W} *::before, .${W} *::after { transition: none !important; animation: none !important; }`,Dn=async(e,t)=>{const s=e.getRevealElement();if(!s)throw new Error("The deck is not on screen.");const n=e.getIndices(),r=document.createElement("style");r.textContent=Mn,document.head.appendChild(r),s.classList.add(W);try{const o=s.clientWidth,i=s.clientHeight;if(!o||!i)throw new Error("The deck has no size on screen.");const a=In(s),c=await cn(s,{filter:Te});return await t(async(m,u)=>{const f=We(e,m);await $n(f,m+1),await ze(80);const h=await an(s,{filter:Te,fontEmbedCSS:c,backgroundColor:a,pixelRatio:u.width/o,width:o,height:i,skipAutoScale:!0}),g=document.createElement("canvas");g.width=u.width,g.height=u.height;const p=g.getContext("2d");if(!p)throw new Error("This browser gives no canvas to draw the slides on.");return p.fillStyle=a,p.fillRect(0,0,u.width,u.height),p.drawImage(h,0,0,u.width,u.height),g})}finally{e.slide(n.h,n.v,n.f),window.setTimeout(()=>{s.classList.remove(W),r.remove()},100)}},Ln=(e,t,s,n)=>Dn(e,async r=>{const o=[];for(let i=0;i<t;i++)J(s),n({phase:"slides",done:i,total:t}),o.push(await r(i,{width:q,height:ee}));return n({phase:"slides",done:t,total:t}),o}),jn=async(e,t,s,n,r)=>{const o=e.flatMap((u,f)=>u.map((h,g)=>({slide:f,sentence:g,text:h}))),i=e.map(()=>[]);let a=0,c=0;r({phase:"voice",done:c,total:o.length});const m=async()=>{for(;a<o.length;){J(n);const u=o[a++],f=await t(u.text);J(n);try{i[u.slide][u.sentence]=await s.decodeAudioData(f.slice(0))}catch(h){throw new Error(`The voice of slide ${u.slide+1} could not be decoded: ${h instanceof Error?h.message:String(h)}`)}c+=1,r({phase:"voice",done:c,total:o.length})}};return await Promise.all(Array.from({length:Math.min(En,o.length)},m)),i},M={side:q*.06,bottom:ee*.05,padX:44,padY:24,radius:15,lineHeight:1.45,maxLines:3,sizes:[44,40,36,32,28],background:"rgba(15, 18, 24, 0.82)",color:"#f6f8fa",weight:600},Fn=(e,t,s,n)=>{if(e.drawImage(t,0,0),!s)return;const r=q-2*M.side,o=f=>`${M.weight} ${f}px ${n}`,{size:i,lines:a}=ln(s,r-2*M.padX,M.maxLines,M.sizes,(f,h)=>(e.font=o(h),e.measureText(f).width)),c=i*M.lineHeight,m=a.length*c+2*M.padY,u=ee-M.bottom-m;e.fillStyle=M.background,e.beginPath(),e.roundRect(M.side,u,r,m,M.radius),e.fill(),e.font=o(i),e.fillStyle=M.color,e.textAlign="center",e.textBaseline="middle",a.forEach((f,h)=>{e.fillText(f,q/2,u+M.padY+c*(h+.5))})},An=(e,t,s)=>{const n=URL.createObjectURL(new Blob([`setInterval(() => postMessage(0), ${e});`],{type:"text/javascript"})),r=new Worker(n);return r.onmessage=t,r.onerror=()=>s("The page would not start the timer that paces the video."),()=>{r.terminate(),URL.revokeObjectURL(n)}},_n=async({pictures:e,timeline:t,voiced:s,audio:n,font:r,mimeType:o,speakers:i,signal:a,onProgress:c})=>{const m=document.createElement("canvas");m.width=q,m.height=ee;const u=m.getContext("2d");if(!u)throw new Error("This browser gives no canvas to draw the video on.");const f=m.captureStream(0).getVideoTracks()[0],h=n.createMediaStreamDestination(),g=fn(n,h,i),p=new MediaRecorder(new MediaStream([f,...h.stream.getAudioTracks()]),{mimeType:o,videoBitsPerSecond:6e6,audioBitsPerSecond:128e3}),j=[];p.ondataavailable=x=>{x.data.size&&j.push(x.data)};const D=new Promise(x=>{p.onstop=()=>x()}),S=x=>{const E=Be(t,x);return Fn(u,e[E.slide],E.cue?.text,r),f.requestFrame(),E};await n.resume(),S(0),p.start(1e3);const F=n.currentTime,w=t.cues.map(x=>{const E=n.createBufferSource();return E.buffer=s[x.slide][x.sentence],E.connect(g),E.start(F+x.start),E});let _;try{await new Promise((x,E)=>{const v=Date.now(),y=n.currentTime;_=An(1e3/bn,()=>{if(a.aborted){E(new le);return}if(n.currentTime===y&&Date.now()-v>kn){E(new Error("The browser would not start the sound. Press Video again."));return}const k=Math.max(0,n.currentTime-F),T=S(k);c({phase:"recording",slide:T.slide,sentence:yn(t,k).sentence,slides:t.slides.length,time:Math.min(k,t.duration),duration:t.duration}),k>=t.duration&&x()},k=>E(new Error(k)))})}finally{_?.(),w.forEach(x=>{try{x.stop()}catch{}x.disconnect()}),g.disconnect(),p.stop(),await D,f.stop()}return new Blob(j,{type:p.mimeType||o})},Vn=async({deck:e,script:t,synthesize:s,audio:n,speakers:r,title:o,signal:i,onProgress:a})=>{const c=Cn();if(!c)throw new Error("This browser cannot record a video (MediaRecorder records neither MP4 nor WebM).");const m=e.getRevealElement(),u=m&&getComputedStyle(m).getPropertyValue("--dla-deck-font").trim()||"system-ui, sans-serif",f=await Ln(e,t.length,i,a),h=await Tn(f[0]),g=await jn(t,s,n,i,a);J(i);const p=wn(t,g.map(D=>D.map(S=>S.duration)));return{video:await _n({pictures:f,timeline:p,voiced:g,audio:n,font:u,mimeType:c,speakers:r,signal:i,onProgress:a}),extension:c.startsWith("video/mp4")?"mp4":"webm",vtt:Sn(p.cues,o),poster:h,timeline:p}},Hn=(e,t,s)=>{const n=`The video is ready: ${oe(e)}, with its captions.`;if(!t||!s)return n;switch(t.status){case"keeping":return`${n} Uploading it…`;case"kept":return`${n} ${s.published}`;case"refused":return`${n} It could not be uploaded: ${t.reason}`}},On=(e,t,s,n)=>{const[r,o]=d.useState({status:"idle"}),i=d.useRef(null),[a,c]=d.useState(!0),m=d.useRef(!0),u=d.useRef(null),[f,h]=d.useState([]),g=d.useRef([]),p=d.useRef(null),j=d.useRef(e),D=d.useRef(n);D.current=n;const S=d.useCallback(()=>{g.current.forEach(y=>URL.revokeObjectURL(y)),g.current=[],p.current=null},[]),F=d.useCallback(()=>{const y=p.current,k=D.current;if(!y||!k)return;const T=L=>o(R=>R.status==="done"&&p.current===y?{...R,kept:L}:R);T({status:"keeping"}),k.publish(y,j.current).then(()=>T({status:"kept"})).catch(L=>T({status:"refused",reason:L instanceof Error?L.message:String(L)}))},[]),w=d.useCallback(()=>{const y=t?.synthesize,k=s.current;if(!y||!k||i.current)return;S(),j.current=e;const T=k.getIndices(),L=Ie(e.slides,t?.sentences??ie);h(L);let R=-1;const H=new AbortController;i.current=H;const O=new AudioContext;O.resume(),u.current=un(O,m.current),o({status:"making",progress:{phase:"slides",done:0,total:e.slides.length}});const G=e.deck.title;Vn({deck:k,script:L,synthesize:y,audio:O,speakers:u.current,title:G,signal:H.signal,onProgress:b=>{H.signal.aborted||(b.phase==="recording"&&b.slide!==R&&(R=b.slide,We(k,b.slide)),o({status:"making",progress:b}))}}).then(b=>{const $=xn(G),ue=URL.createObjectURL(b.video),de=URL.createObjectURL(new Blob([b.vtt],{type:"text/vtt;charset=utf-8"}));g.current=[ue,de],p.current=b,o({status:"done",videoUrl:ue,videoName:`${$}.${b.extension}`,captionsUrl:de,captionsName:`${$}.vtt`,duration:b.timeline.duration}),F()}).catch(b=>{o(b instanceof le?{status:"idle"}:{status:"failed",reason:b instanceof Error?b.message:String(b)})}).finally(()=>{if(i.current=null,u.current=null,R>=0)try{k.slide(T.h,T.v,T.f)}catch{}O.close()})},[s,S,F,t,e]),_=d.useCallback(()=>i.current?.abort(),[]),x=d.useCallback(y=>{m.current=y,c(y),u.current&&dn(u.current,y)},[]),E=d.useCallback(()=>{S(),o({status:"idle"})},[S]);d.useEffect(()=>()=>{i.current?.abort(),S()},[S]);const v=r.status==="making"&&r.progress.phase==="recording"?{status:"playing",script:f,slide:r.progress.slide,sentence:r.progress.sentence,run:0}:void 0;return{state:r,start:w,cancel:_,heard:a,setHeard:x,following:v,dismiss:E,publisher:n,keep:F}},Un=e=>{switch(e.phase){case"slides":return{text:`Drawing slide ${Math.min(e.done+1,e.total)} of ${e.total}`,percent:100*e.done/Math.max(1,e.total)};case"voice":return{text:`Voicing sentence ${Math.min(e.done+1,e.total)} of ${e.total}`,percent:100*e.done/Math.max(1,e.total)};case"recording":return{text:`Recording slide ${e.slide+1} of ${e.slides} · ${oe(e.time)} / ${oe(e.duration)} — in real time; the tab may go to the background`,percent:100*e.time/Math.max(1,e.duration)};default:return{text:"",percent:0}}},Bn=({control:e})=>{const{state:t,cancel:s,dismiss:n,heard:r,setHeard:o,publisher:i,keep:a}=e;if(t.status==="making"){const{text:c,percent:m}=Un(t.progress);return l.jsxs(z,{"data-deck-video":"making",sx:{display:"flex",alignItems:"center",gap:3,p:3,borderRadius:2,border:"1px solid",borderColor:"border.default"},children:[l.jsxs(z,{sx:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[l.jsx(V,{sx:{fontSize:1},children:c}),l.jsx(ct,{progress:m,"aria-label":"Making the video"})]}),l.jsx(C,{leadingVisual:r?qe:Ge,"aria-pressed":!r,title:r?"Silence the speakers; the video keeps its sound":"Hear the narration as it is recorded",onClick:()=>o(!r),children:r?"Sound on":"Sound off"}),l.jsx(C,{leadingVisual:Xe,onClick:s,children:"Cancel"})]})}if(t.status==="done"){const c=(m,u)=>{const f=document.createElement("a");f.href=m,f.download=u,f.click()};return l.jsxs(X,{variant:t.kept?.status==="refused"?"warning":"success","data-deck-video":"done","data-deck-video-kept":t.kept?.status,sx:{display:"flex",alignItems:"center",gap:3,flexWrap:"wrap"},children:[l.jsx(V,{sx:{flex:1},children:Hn(t.duration,t.kept,i)}),t.kept?.status==="refused"&&l.jsx(C,{size:"small",onClick:a,children:"Upload again"}),l.jsx(C,{size:"small",leadingVisual:se,onClick:()=>c(t.videoUrl,t.videoName),children:t.videoName}),l.jsx(C,{size:"small",leadingVisual:se,onClick:()=>c(t.captionsUrl,t.captionsName),children:t.captionsName}),l.jsx(C,{size:"small",variant:"invisible",onClick:n,children:"Close"})]})}return t.status==="failed"?l.jsxs(X,{variant:"danger",sx:{display:"flex",alignItems:"center",gap:3},children:[l.jsxs(V,{sx:{flex:1},children:["The video could not be made: ",t.reason]}),l.jsx(C,{size:"small",variant:"invisible",onClick:n,children:"Close"})]}):null},Ne={};let N=Ne;const zn=new Set,Wn=()=>{zn.forEach(e=>e())},Re=e=>{const t=e&&(e.variant||e.colorMode)?e:Ne;t!==N&&(t.variant===N.variant&&t.colorMode===N.colorMode||(N=t,Wn()))},Nn=()=>N,qn=Math.round(Q/1e3),Gn=e=>{const[t,s]=d.useState(260);return d.useLayoutEffect(()=>{const n=()=>{const r=e.current;if(!r)return;const o=r.getBoundingClientRect().top+window.scrollY;s(Math.max(120,Math.round(o+48)))};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t},Xn=e=>{const[t,s]=d.useState(!1),n=d.useCallback(()=>e.current?.querySelector(".dla-deck"),[e]);d.useEffect(()=>{const o=()=>s(document.fullscreenElement===n());return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[n]);const r=d.useCallback(()=>{if(document.fullscreenElement){document.exitFullscreen();return}const o=n();o?.requestFullscreen?.(),o?.dispatchEvent(new Event("pointerdown"))},[n]);return[t,r]},Yn=["notes","pdf","play","video","present"],Kn=e=>{const t=e.deck.theme,s=e.deck.colorMode;d.useEffect(()=>{const n=t&&t in tt?t:void 0,r=s==="light"||s==="dark"||s==="auto"?s:void 0;if(!n&&!r)return;const o=Nn();return Re({variant:n,colorMode:r}),()=>Re(o)},[t,s])},Jn=({spec:e,controls:t=Yn,printPath:s,slide:n,onSlideChange:r,videoPublisher:o})=>{const i=d.useRef(null),a=Gn(i),[c,m]=Xn(i);Kn(e);const u=$=>t.includes($),f=d.useRef(null),[h,g]=d.useState(null),p=d.useCallback($=>{f.current=$,g($?$.getRevealElement()??null:null)},[]),[j,D]=d.useState(Math.max(0,(n??1)-1));d.useEffect(()=>{n&&D(Math.min(e.slides.length-1,Math.max(0,n-1)))},[n,e.slides.length]);const[S,F]=d.useState(!1),w=st(),{signIn:_,videoPublisher:x}=rt(),E=o??x,v=mt(e,w,f),y=On(e,w,f,E),[k,T]=d.useState(!1),L=v.state.status==="playing",R=v.state.status==="paused",H=y.state.status==="making",O=()=>{if(w?.unavailable){T(!0);return}T(!1),v.play(f.current?.getIndices().h??j)},G=()=>{if(w?.unavailable){T(!0);return}T(!1),y.start()},b=d.useCallback($=>{D($-1),v.moved($-1),r?.($)},[r,v.moved]);return l.jsxs(z,{sx:{display:"flex",flexDirection:"column",gap:3,maxWidth:1280,mx:"auto",px:4,py:4},children:[l.jsxs(z,{sx:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",flexWrap:"wrap",gap:3},children:[l.jsxs(z,{children:[l.jsx(Ye,{as:"h2",sx:{fontSize:4},children:e.deck.title}),e.deck.subtitle&&l.jsx(V,{sx:{color:"fg.muted",fontSize:1},children:e.deck.subtitle})]}),l.jsxs(z,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap"},children:[u("notes")&&l.jsx(C,{leadingVisual:Ke,"aria-pressed":S,onClick:()=>F($=>!$),children:S?"Hide notes":"Notes"}),u("pdf")&&s&&l.jsx(C,{leadingVisual:se,onClick:()=>window.open(s,"_blank","noopener"),children:"Download PDF"}),u("play")&&w&&(L||R?l.jsxs(l.Fragment,{children:[l.jsx(C,{leadingVisual:R?fe:Je,onClick:R?v.resume:v.pause,children:R?"Resume":"Pause"}),l.jsx(C,{leadingVisual:Qe,onClick:v.stop,children:"Stop"})]}):l.jsx(C,{leadingVisual:fe,onClick:O,disabled:H,children:"Play"})),u("video")&&w?.synthesize&&l.jsx(C,{leadingVisual:at,onClick:G,disabled:H||L||R,children:E?.label??"Video"}),(u("present")||c)&&l.jsx(C,{leadingVisual:c?Ze:et,onClick:m,children:c?"Exit":"Present"})]})]}),w&&k&&w.unavailable&&l.jsxs(X,{variant:"warning",sx:{display:"flex",alignItems:"center",gap:3},children:[l.jsx(V,{sx:{flex:1},children:w.unavailable}),w.needsSignIn&&_&&l.jsx(C,{size:"small",onClick:()=>_(window.location.pathname+window.location.search),children:"Sign in"})]}),l.jsx(Bn,{control:y}),v.state.status==="refused"&&l.jsxs(X,{variant:"danger",children:["Playing stopped: ",v.state.reason]}),v.state.status==="ended"&&l.jsx(V,{sx:{color:"fg.muted",fontSize:1},children:"Played to the last slide."}),l.jsx(ot,{spec:e,deckRef:p,frameRef:i,chrome:a,slide:n,onSlideChange:b}),l.jsx(me,{state:v.state,target:h}),y.following&&l.jsx(me,{state:y.following,target:h}),S&&!(c&&(L||R))&&l.jsx(gt,{notes:e.slides[j]?.notes,presenting:c,target:h}),l.jsxs(V,{sx:{color:"fg.muted",fontSize:0,textAlign:"center"},children:["Click the deck to steer it, then arrow keys or space to move ·"," ",l.jsx("strong",{children:"f"})," or Present for fullscreen · ",l.jsx("strong",{children:"o"})," for the overview · ",l.jsx("strong",{children:"?"})," for the rest · Download PDF opens the print dialog, where “Save as PDF” keeps the text and the links · Notes shows the speaker notes",w?l.jsxs(l.Fragment,{children:[" ","· Play reads them aloud, slide after slide, as captions (space pauses, Escape stops; a slide without notes stays ",qn," seconds)"]}):null,w?.synthesize?l.jsxs(l.Fragment,{children:[" ","· Video records the same, voice and captions, as a video file with its captions file (in real time)"]}):null]})]})},Qn=["notes","present"];function Zn(e){const{theme:t,colorMode:s,...n}=e.deck;return{spec:{...e,deck:n},theme:t,colorMode:s}}function rs({spec:e,moves:t,shown:s}){const n=d.useMemo(()=>Zn(e),[e]),r=d.useMemo(()=>({useTheme:()=>{const o=nt();return{theme:n.theme??o.theme,colorMode:n.colorMode??o.colorMode}}}),[n.theme,n.colorMode]);return l.jsx(it,{host:r,children:l.jsx(Jn,{spec:n.spec,controls:Qn,slide:s??n.spec.slides.length},t)})}export{Qn as PAGE_DECK_CONTROLS,rs as default,Zn as stagedDeck};
|
|
7
|
+
`},q=1920,ee=1080,bn=30,En=2,Ce=15e3,kn=3e3,vn=["video/mp4;codecs=avc1,mp4a.40.2","video/mp4;codecs=avc1,mp4a","video/mp4;codecs=avc1,opus","video/webm;codecs=vp9,opus","video/webm;codecs=vp8,opus"],Cn=()=>typeof MediaRecorder>"u"?void 0:vn.find(e=>MediaRecorder.isTypeSupported(e)),Tn=e=>new Promise((t,s)=>e.toBlob(n=>n?t(n):s(new Error("The slide could not be made a picture.")),"image/png"));class le extends Error{constructor(){super("Making the video was cancelled."),this.name="VideoCancelled"}}const J=e=>{if(e.aborted)throw new le},ze=e=>new Promise(t=>window.setTimeout(t,e)),Rn=["controls","progress","slide-number","pause-overlay","dla-deck-captions","dla-deck-speaker-notes"],Te=e=>!(e.classList&&Rn.some(t=>e.classList.contains(t))),$n=async(e,t)=>{await document.fonts.ready;const s=Date.now()+Ce;for(;;){const n=[...e.querySelectorAll("img")].every(o=>o.complete),r=[...e.querySelectorAll(".dla-mermaid-svg")].every(o=>o.querySelector("svg")!==null||o.classList.contains("dla-mermaid-svg--hidden"));if(n&&r)return;if(Date.now()>s)throw new Error(`Slide ${t} did not finish drawing its ${n?"diagram":"pictures"} in ${Ce/1e3} seconds.`);await ze(100)}},Pn=/^(transparent|rgba\(.*,\s*0\))$/,In=e=>{for(let t=e;t;t=t.parentElement){const s=getComputedStyle(t).backgroundColor;if(s&&!Pn.test(s))return s}return"#ffffff"},We=(e,t)=>{e.slide(t,0);const s=e.getCurrentSlide(),n=[...s.querySelectorAll(".fragment")].map(r=>Number(r.getAttribute("data-fragment-index"))).filter(Number.isFinite);return n.length&&e.slide(t,0,Math.max(...n)),s},W="dla-deck--capturing",Mn=`.${W}, .${W} *, .${W} *::before, .${W} *::after { transition: none !important; animation: none !important; }`,Dn=async(e,t)=>{const s=e.getRevealElement();if(!s)throw new Error("The deck is not on screen.");const n=e.getIndices(),r=document.createElement("style");r.textContent=Mn,document.head.appendChild(r),s.classList.add(W);try{const o=s.clientWidth,i=s.clientHeight;if(!o||!i)throw new Error("The deck has no size on screen.");const a=In(s),c=await cn(s,{filter:Te});return await t(async(m,u)=>{const f=We(e,m);await $n(f,m+1),await ze(80);const h=await an(s,{filter:Te,fontEmbedCSS:c,backgroundColor:a,pixelRatio:u.width/o,width:o,height:i,skipAutoScale:!0}),g=document.createElement("canvas");g.width=u.width,g.height=u.height;const p=g.getContext("2d");if(!p)throw new Error("This browser gives no canvas to draw the slides on.");return p.fillStyle=a,p.fillRect(0,0,u.width,u.height),p.drawImage(h,0,0,u.width,u.height),g})}finally{e.slide(n.h,n.v,n.f),window.setTimeout(()=>{s.classList.remove(W),r.remove()},100)}},Ln=(e,t,s,n)=>Dn(e,async r=>{const o=[];for(let i=0;i<t;i++)J(s),n({phase:"slides",done:i,total:t}),o.push(await r(i,{width:q,height:ee}));return n({phase:"slides",done:t,total:t}),o}),jn=async(e,t,s,n,r)=>{const o=e.flatMap((u,f)=>u.map((h,g)=>({slide:f,sentence:g,text:h}))),i=e.map(()=>[]);let a=0,c=0;r({phase:"voice",done:c,total:o.length});const m=async()=>{for(;a<o.length;){J(n);const u=o[a++],f=await t(u.text);J(n);try{i[u.slide][u.sentence]=await s.decodeAudioData(f.slice(0))}catch(h){throw new Error(`The voice of slide ${u.slide+1} could not be decoded: ${h instanceof Error?h.message:String(h)}`)}c+=1,r({phase:"voice",done:c,total:o.length})}};return await Promise.all(Array.from({length:Math.min(En,o.length)},m)),i},M={side:q*.06,bottom:ee*.05,padX:44,padY:24,radius:15,lineHeight:1.45,maxLines:3,sizes:[44,40,36,32,28],background:"rgba(15, 18, 24, 0.82)",color:"#f6f8fa",weight:600},An=(e,t,s,n)=>{if(e.drawImage(t,0,0),!s)return;const r=q-2*M.side,o=f=>`${M.weight} ${f}px ${n}`,{size:i,lines:a}=ln(s,r-2*M.padX,M.maxLines,M.sizes,(f,h)=>(e.font=o(h),e.measureText(f).width)),c=i*M.lineHeight,m=a.length*c+2*M.padY,u=ee-M.bottom-m;e.fillStyle=M.background,e.beginPath(),e.roundRect(M.side,u,r,m,M.radius),e.fill(),e.font=o(i),e.fillStyle=M.color,e.textAlign="center",e.textBaseline="middle",a.forEach((f,h)=>{e.fillText(f,q/2,u+M.padY+c*(h+.5))})},Fn=(e,t,s)=>{const n=URL.createObjectURL(new Blob([`setInterval(() => postMessage(0), ${e});`],{type:"text/javascript"})),r=new Worker(n);return r.onmessage=t,r.onerror=()=>s("The page would not start the timer that paces the video."),()=>{r.terminate(),URL.revokeObjectURL(n)}},_n=async({pictures:e,timeline:t,voiced:s,audio:n,font:r,mimeType:o,speakers:i,signal:a,onProgress:c})=>{const m=document.createElement("canvas");m.width=q,m.height=ee;const u=m.getContext("2d");if(!u)throw new Error("This browser gives no canvas to draw the video on.");const f=m.captureStream(0).getVideoTracks()[0],h=n.createMediaStreamDestination(),g=fn(n,h,i),p=new MediaRecorder(new MediaStream([f,...h.stream.getAudioTracks()]),{mimeType:o,videoBitsPerSecond:6e6,audioBitsPerSecond:128e3}),j=[];p.ondataavailable=x=>{x.data.size&&j.push(x.data)};const D=new Promise(x=>{p.onstop=()=>x()}),S=x=>{const E=Be(t,x);return An(u,e[E.slide],E.cue?.text,r),f.requestFrame(),E};await n.resume(),S(0),p.start(1e3);const A=n.currentTime,w=t.cues.map(x=>{const E=n.createBufferSource();return E.buffer=s[x.slide][x.sentence],E.connect(g),E.start(A+x.start),E});let _;try{await new Promise((x,E)=>{const v=Date.now(),y=n.currentTime;_=Fn(1e3/bn,()=>{if(a.aborted){E(new le);return}if(n.currentTime===y&&Date.now()-v>kn){E(new Error("The browser would not start the sound. Press Video again."));return}const k=Math.max(0,n.currentTime-A),T=S(k);c({phase:"recording",slide:T.slide,sentence:yn(t,k).sentence,slides:t.slides.length,time:Math.min(k,t.duration),duration:t.duration}),k>=t.duration&&x()},k=>E(new Error(k)))})}finally{_?.(),w.forEach(x=>{try{x.stop()}catch{}x.disconnect()}),g.disconnect(),p.stop(),await D,f.stop()}return new Blob(j,{type:p.mimeType||o})},Vn=async({deck:e,script:t,synthesize:s,audio:n,speakers:r,title:o,signal:i,onProgress:a})=>{const c=Cn();if(!c)throw new Error("This browser cannot record a video (MediaRecorder records neither MP4 nor WebM).");const m=e.getRevealElement(),u=m&&getComputedStyle(m).getPropertyValue("--dla-deck-font").trim()||"system-ui, sans-serif",f=await Ln(e,t.length,i,a),h=await Tn(f[0]),g=await jn(t,s,n,i,a);J(i);const p=wn(t,g.map(D=>D.map(S=>S.duration)));return{video:await _n({pictures:f,timeline:p,voiced:g,audio:n,font:u,mimeType:c,speakers:r,signal:i,onProgress:a}),extension:c.startsWith("video/mp4")?"mp4":"webm",vtt:Sn(p.cues,o),poster:h,timeline:p}},Hn=(e,t,s)=>{const n=`The video is ready: ${oe(e)}, with its captions.`;if(!t||!s)return n;switch(t.status){case"keeping":return`${n} Uploading it…`;case"kept":return`${n} ${s.published}`;case"refused":return`${n} It could not be uploaded: ${t.reason}`}},On=(e,t,s,n)=>{const[r,o]=d.useState({status:"idle"}),i=d.useRef(null),[a,c]=d.useState(!0),m=d.useRef(!0),u=d.useRef(null),[f,h]=d.useState([]),g=d.useRef([]),p=d.useRef(null),j=d.useRef(e),D=d.useRef(n);D.current=n;const S=d.useCallback(()=>{g.current.forEach(y=>URL.revokeObjectURL(y)),g.current=[],p.current=null},[]),A=d.useCallback(()=>{const y=p.current,k=D.current;if(!y||!k)return;const T=L=>o(R=>R.status==="done"&&p.current===y?{...R,kept:L}:R);T({status:"keeping"}),k.publish(y,j.current).then(()=>T({status:"kept"})).catch(L=>T({status:"refused",reason:L instanceof Error?L.message:String(L)}))},[]),w=d.useCallback(()=>{const y=t?.synthesize,k=s.current;if(!y||!k||i.current)return;S(),j.current=e;const T=k.getIndices(),L=Ie(e.slides,t?.sentences??ie);h(L);let R=-1;const H=new AbortController;i.current=H;const O=new AudioContext;O.resume(),u.current=un(O,m.current),o({status:"making",progress:{phase:"slides",done:0,total:e.slides.length}});const G=e.deck.title;Vn({deck:k,script:L,synthesize:y,audio:O,speakers:u.current,title:G,signal:H.signal,onProgress:b=>{H.signal.aborted||(b.phase==="recording"&&b.slide!==R&&(R=b.slide,We(k,b.slide)),o({status:"making",progress:b}))}}).then(b=>{const $=xn(G),ue=URL.createObjectURL(b.video),de=URL.createObjectURL(new Blob([b.vtt],{type:"text/vtt;charset=utf-8"}));g.current=[ue,de],p.current=b,o({status:"done",videoUrl:ue,videoName:`${$}.${b.extension}`,captionsUrl:de,captionsName:`${$}.vtt`,duration:b.timeline.duration}),A()}).catch(b=>{o(b instanceof le?{status:"idle"}:{status:"failed",reason:b instanceof Error?b.message:String(b)})}).finally(()=>{if(i.current=null,u.current=null,R>=0)try{k.slide(T.h,T.v,T.f)}catch{}O.close()})},[s,S,A,t,e]),_=d.useCallback(()=>i.current?.abort(),[]),x=d.useCallback(y=>{m.current=y,c(y),u.current&&dn(u.current,y)},[]),E=d.useCallback(()=>{S(),o({status:"idle"})},[S]);d.useEffect(()=>()=>{i.current?.abort(),S()},[S]);const v=r.status==="making"&&r.progress.phase==="recording"?{status:"playing",script:f,slide:r.progress.slide,sentence:r.progress.sentence,run:0}:void 0;return{state:r,start:w,cancel:_,heard:a,setHeard:x,following:v,dismiss:E,publisher:n,keep:A}},Un=e=>{switch(e.phase){case"slides":return{text:`Drawing slide ${Math.min(e.done+1,e.total)} of ${e.total}`,percent:100*e.done/Math.max(1,e.total)};case"voice":return{text:`Voicing sentence ${Math.min(e.done+1,e.total)} of ${e.total}`,percent:100*e.done/Math.max(1,e.total)};case"recording":return{text:`Recording slide ${e.slide+1} of ${e.slides} · ${oe(e.time)} / ${oe(e.duration)} — in real time; the tab may go to the background`,percent:100*e.time/Math.max(1,e.duration)};default:return{text:"",percent:0}}},Bn=({control:e})=>{const{state:t,cancel:s,dismiss:n,heard:r,setHeard:o,publisher:i,keep:a}=e;if(t.status==="making"){const{text:c,percent:m}=Un(t.progress);return l.jsxs(z,{"data-deck-video":"making",sx:{display:"flex",alignItems:"center",gap:3,p:3,borderRadius:2,border:"1px solid",borderColor:"border.default"},children:[l.jsxs(z,{sx:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[l.jsx(V,{sx:{fontSize:1},children:c}),l.jsx(ct,{progress:m,"aria-label":"Making the video"})]}),l.jsx(C,{leadingVisual:r?qe:Ge,"aria-pressed":!r,title:r?"Silence the speakers; the video keeps its sound":"Hear the narration as it is recorded",onClick:()=>o(!r),children:r?"Sound on":"Sound off"}),l.jsx(C,{leadingVisual:Xe,onClick:s,children:"Cancel"})]})}if(t.status==="done"){const c=(m,u)=>{const f=document.createElement("a");f.href=m,f.download=u,f.click()};return l.jsxs(X,{variant:t.kept?.status==="refused"?"warning":"success","data-deck-video":"done","data-deck-video-kept":t.kept?.status,sx:{display:"flex",alignItems:"center",gap:3,flexWrap:"wrap"},children:[l.jsx(V,{sx:{flex:1},children:Hn(t.duration,t.kept,i)}),t.kept?.status==="refused"&&l.jsx(C,{size:"small",onClick:a,children:"Upload again"}),l.jsx(C,{size:"small",leadingVisual:se,onClick:()=>c(t.videoUrl,t.videoName),children:t.videoName}),l.jsx(C,{size:"small",leadingVisual:se,onClick:()=>c(t.captionsUrl,t.captionsName),children:t.captionsName}),l.jsx(C,{size:"small",variant:"invisible",onClick:n,children:"Close"})]})}return t.status==="failed"?l.jsxs(X,{variant:"danger",sx:{display:"flex",alignItems:"center",gap:3},children:[l.jsxs(V,{sx:{flex:1},children:["The video could not be made: ",t.reason]}),l.jsx(C,{size:"small",variant:"invisible",onClick:n,children:"Close"})]}):null},Ne={};let N=Ne;const zn=new Set,Wn=()=>{zn.forEach(e=>e())},Re=e=>{const t=e&&(e.variant||e.colorMode)?e:Ne;t!==N&&(t.variant===N.variant&&t.colorMode===N.colorMode||(N=t,Wn()))},Nn=()=>N,qn=Math.round(Q/1e3),Gn=e=>{const[t,s]=d.useState(260);return d.useLayoutEffect(()=>{const n=()=>{const r=e.current;if(!r)return;const o=r.getBoundingClientRect().top+window.scrollY;s(Math.max(120,Math.round(o+48)))};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),t},Xn=e=>{const[t,s]=d.useState(!1),n=d.useCallback(()=>e.current?.querySelector(".dla-deck"),[e]);d.useEffect(()=>{const o=()=>s(document.fullscreenElement===n());return document.addEventListener("fullscreenchange",o),()=>document.removeEventListener("fullscreenchange",o)},[n]);const r=d.useCallback(()=>{if(document.fullscreenElement){document.exitFullscreen();return}const o=n();o?.requestFullscreen?.(),o?.dispatchEvent(new Event("pointerdown"))},[n]);return[t,r]},Yn=["notes","pdf","play","video","present"],Kn=e=>{const t=e.deck.theme,s=e.deck.colorMode;d.useEffect(()=>{const n=t&&t in tt?t:void 0,r=s==="light"||s==="dark"||s==="auto"?s:void 0;if(!n&&!r)return;const o=Nn();return Re({variant:n,colorMode:r}),()=>Re(o)},[t,s])},Jn=({spec:e,controls:t=Yn,printPath:s,slide:n,onSlideChange:r,videoPublisher:o})=>{const i=d.useRef(null),a=Gn(i),[c,m]=Xn(i);Kn(e);const u=$=>t.includes($),f=d.useRef(null),[h,g]=d.useState(null),p=d.useCallback($=>{f.current=$,g($?$.getRevealElement()??null:null)},[]),[j,D]=d.useState(Math.max(0,(n??1)-1));d.useEffect(()=>{n&&D(Math.min(e.slides.length-1,Math.max(0,n-1)))},[n,e.slides.length]);const[S,A]=d.useState(!1),w=st(),{signIn:_,videoPublisher:x}=rt(),E=o??x,v=mt(e,w,f),y=On(e,w,f,E),[k,T]=d.useState(!1),L=v.state.status==="playing",R=v.state.status==="paused",H=y.state.status==="making",O=()=>{if(w?.unavailable){T(!0);return}T(!1),v.play(f.current?.getIndices().h??j)},G=()=>{if(w?.unavailable){T(!0);return}T(!1),y.start()},b=d.useCallback($=>{D($-1),v.moved($-1),r?.($)},[r,v.moved]);return l.jsxs(z,{sx:{display:"flex",flexDirection:"column",gap:3,maxWidth:1280,mx:"auto",px:4,py:4},children:[l.jsxs(z,{sx:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",flexWrap:"wrap",gap:3},children:[l.jsxs(z,{children:[l.jsx(Ye,{as:"h2",sx:{fontSize:4},children:e.deck.title}),e.deck.subtitle&&l.jsx(V,{sx:{color:"fg.muted",fontSize:1},children:e.deck.subtitle})]}),l.jsxs(z,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap"},children:[u("notes")&&l.jsx(C,{leadingVisual:Ke,"aria-pressed":S,onClick:()=>A($=>!$),children:S?"Hide notes":"Notes"}),u("pdf")&&s&&l.jsx(C,{leadingVisual:se,onClick:()=>window.open(s,"_blank","noopener"),children:"Download PDF"}),u("play")&&w&&(L||R?l.jsxs(l.Fragment,{children:[l.jsx(C,{leadingVisual:R?fe:Je,onClick:R?v.resume:v.pause,children:R?"Resume":"Pause"}),l.jsx(C,{leadingVisual:Qe,onClick:v.stop,children:"Stop"})]}):l.jsx(C,{leadingVisual:fe,onClick:O,disabled:H,children:"Play"})),u("video")&&w?.synthesize&&l.jsx(C,{leadingVisual:at,onClick:G,disabled:H||L||R,children:E?.label??"Video"}),(u("present")||c)&&l.jsx(C,{leadingVisual:c?Ze:et,onClick:m,children:c?"Exit":"Present"})]})]}),w&&k&&w.unavailable&&l.jsxs(X,{variant:"warning",sx:{display:"flex",alignItems:"center",gap:3},children:[l.jsx(V,{sx:{flex:1},children:w.unavailable}),w.needsSignIn&&_&&l.jsx(C,{size:"small",onClick:()=>_(window.location.pathname+window.location.search),children:"Sign in"})]}),l.jsx(Bn,{control:y}),v.state.status==="refused"&&l.jsxs(X,{variant:"danger",children:["Playing stopped: ",v.state.reason]}),v.state.status==="ended"&&l.jsx(V,{sx:{color:"fg.muted",fontSize:1},children:"Played to the last slide."}),l.jsx(ot,{spec:e,deckRef:p,frameRef:i,chrome:a,slide:n,onSlideChange:b}),l.jsx(me,{state:v.state,target:h}),y.following&&l.jsx(me,{state:y.following,target:h}),S&&!(c&&(L||R))&&l.jsx(gt,{notes:e.slides[j]?.notes,presenting:c,target:h}),l.jsxs(V,{sx:{color:"fg.muted",fontSize:0,textAlign:"center"},children:["Click the deck to steer it, then arrow keys or space to move ·"," ",l.jsx("strong",{children:"f"})," or Present for fullscreen · ",l.jsx("strong",{children:"o"})," for the overview · ",l.jsx("strong",{children:"?"})," for the rest · Download PDF opens the print dialog, where “Save as PDF” keeps the text and the links · Notes shows the speaker notes",w?l.jsxs(l.Fragment,{children:[" ","· Play reads them aloud, slide after slide, as captions (space pauses, Escape stops; a slide without notes stays ",qn," seconds)"]}):null,w?.synthesize?l.jsxs(l.Fragment,{children:[" ","· Video records the same, voice and captions, as a video file with its captions file (in real time)"]}):null]})]})},Qn=["notes","present"];function Zn(e){const{theme:t,colorMode:s,...n}=e.deck;return{spec:{...e,deck:n},theme:t,colorMode:s}}function rs({spec:e,moves:t,shown:s}){const n=d.useMemo(()=>Zn(e),[e]),r=d.useMemo(()=>({useTheme:()=>{const o=nt();return{theme:n.theme??o.theme,colorMode:n.colorMode??o.colorMode}}}),[n.theme,n.colorMode]);return l.jsx(it,{host:r,children:l.jsx(Jn,{spec:n.spec,controls:Qn,slide:s??n.spec.slides.length},t)})}export{Qn as PAGE_DECK_CONTROLS,rs as default,Zn as stagedDeck};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as p,r as c,_ as v,a3 as _,j as r,B as a,a4 as w,H as g,T as j}from"../datalayer-app-main.js";let S=0;function E({diagrams:o,revision:u}){const{resolvedColorScheme:f}=p(),n=f?.startsWith("dark")??!1,[m,x]=c.useState([]);return c.useEffect(()=>{let e=!0;return(async()=>{const l=await o.host.listDiagrams(),h=[...l.filter(t=>t.id===o.current),...l.filter(t=>t.id!==o.current).reverse()],d=(await v(async()=>{const{default:t}=await import("./mermaid.core-
|
|
1
|
+
import{a1 as p,r as c,_ as v,a3 as _,j as r,B as a,a4 as w,H as g,T as j}from"../datalayer-app-main.js";let S=0;function E({diagrams:o,revision:u}){const{resolvedColorScheme:f}=p(),n=f?.startsWith("dark")??!1,[m,x]=c.useState([]);return c.useEffect(()=>{let e=!0;return(async()=>{const l=await o.host.listDiagrams(),h=[...l.filter(t=>t.id===o.current),...l.filter(t=>t.id!==o.current).reverse()],d=(await v(async()=>{const{default:t}=await import("./mermaid.core-1p09QPXM.js").then(s=>s.N);return{default:t}},[],import.meta.url)).default;await _(),d.initialize({startOnLoad:!1,securityLevel:"strict",theme:n?"dark":"default"});const i=[];for(const t of h)try{const{svg:s}=await d.render(`page-mermaid-${S+=1}`,t.source);i.push({...t,svg:s})}catch(s){i.push({...t,error:s instanceof Error?s.message:String(s)})}e&&x(i)})(),()=>{e=!1}},[o,u,n]),r.jsx(a,{"data-page-mermaid-view":"",display:"flex",flexDirection:"column",sx:{gap:3},children:m.map(e=>r.jsxs(w,{"data-page-mermaid-diagram":e.id,p:3,children:[e.title&&r.jsx(g,{as:"h3",sx:{fontSize:2,mb:2},children:e.title}),e.svg?r.jsx(a,{sx:{overflowX:"auto","& svg":{maxWidth:"100%",height:"auto"}},dangerouslySetInnerHTML:{__html:e.svg}}):r.jsx(j,{sx:{color:"danger.fg",fontSize:1},children:e.error}),r.jsxs(a,{as:"details",mt:2,children:[r.jsx(a,{as:"summary",sx:{cursor:"pointer",color:"fg.muted",fontSize:0},children:"Source"}),r.jsx(a,{as:"pre",mt:2,p:2,sx:{fontSize:0,bg:"canvas.subtle",borderRadius:2,overflowX:"auto",whiteSpace:"pre"},children:e.source})]})]},e.id))})}export{E as DiagramView,E as default};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{aa as b,ab as v,ag as E,r as I,j as i,B as c,T as N,bN as j,bO as T,bP as O}from"../datalayer-app-main.js";import{EphemeralDocument as U}from"./EphemeralDocument-
|
|
1
|
+
import{aa as b,ab as v,ag as E,r as I,j as i,B as c,T as N,bN as j,bO as T,bP as O}from"../datalayer-app-main.js";import{EphemeralDocument as U}from"./EphemeralDocument-CZNRDs_b.js";import{O as _,b as P,u as D}from"./openingNotebook-CJf70DWi.js";import{P as d}from"./PrismCss-C5fDCsu9.js";import"./lexicalHooks-Cj3BNPDC.js";import"./LexicalToolRegistry-BqxU1w4N.js";import"./useProgressTask-QfEN9vew.js";import"./JupyterLexicalExtension-DpGAnn7v.js";import"./NotebookSkeleton-DHQ--KEB.js";import"./Avatar-B0TcOj_b.js";import"./url-4_0MnaFQ.js";import"./isObject-CeOzAI2h.js";import"./toNumber-DUdf79Nr.js";import"./isSymbol-DfwdEMHq.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./TypographyIcon-CCkcdj7U.js";import"./ArrowUpIcon-y5enrVH9.js";import"./floating-ui.react-dom-Bcd0th1j.js";import"./SortDescIcon-Qif6E10I.js";import"./VideoIcon-BTOb9gRv.js";import"./Output-DLpf2Of9.js";import"./index-h8lXpqtD.js";import"./hoverbox-CStlKQWE.js";import"./index-B5W7CVUY.js";import"./index-CBWGYoQM.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BxgGIFfN.js";import"./d3-color-Jd8hXty2.js";import"./dist-N90VI44_.js";import"./index-Cz10oMGc.js";import"./RestartIcon-DvpOf5Mf.js";const M="Quarterly revenue by region",S="Six rows of revenue, two quarters, three regions. The cell below loads them and shows the frame; run it, change it, or ask an agent to take it further — the code and its output live in this document, beside the words about them.",l="opening-document-input",w="opening-document-output",g=e=>({detail:0,format:0,mode:"normal",style:"",text:e,type:"text",version:1}),u=(e,o,t={})=>({children:o,direction:"ltr",format:"",indent:0,type:e,version:1,...t}),h={type:"linebreak",version:1},s=(e,o)=>({detail:0,format:0,mode:"normal",style:"",text:e,type:"jupyter-input-highlight",version:1,highlightType:o}),f=e=>e.flatMap(o=>{if(typeof o=="string")return o.split(`
|
|
2
2
|
`).flatMap((n,m)=>[...m>0?[h]:[],...n.length>0?[s(n)]:[]]);const{content:t,type:r}=o;return typeof t=="string"?[s(t,r)]:Array.isArray(t)?t.length===1&&typeof t[0]=="string"?[s(t[0],r)]:f(t):[]}),k=e=>{const o=d.languages.python;return o?f(d.tokenize(e,o)):e.split(`
|
|
3
3
|
`).flatMap((t,r)=>[...r>0?[h]:[],...t.length>0?[s(t)]:[]])};function A(){const e=_.join("");return{root:{children:[u("heading",[g(M)],{tag:"h1"}),u("paragraph",[g(S)],{textFormat:0,textStyle:""}),u("jupyter-input",k(e),{language:"python",jupyterInputNodeUuid:l}),{type:"jupyter-output",version:1,format:"",source:e,outputs:[{output_type:"execute_result",execution_count:1,data:{"text/plain":P},metadata:{}}],jupyterInputNodeUuid:l,jupyterOutputNodeUuid:w}],direction:"ltr",format:"",indent:0,type:"root",version:1}}}function lt({workspace:e}){const o=b(),t=v(o.snapshot),r=e.surfaceId,n=D(T,j,{workspace:e,editorId:r}),a=E(O)[0]?.value,y=I.useMemo(()=>JSON.stringify((a?.document??A)()),[a]),x=a?.autoFocus??!0;if(t.state!=="running")return i.jsx(c,{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"fg.muted",fontSize:1,px:4,textAlign:"center",children:i.jsx(N,{children:"The document needs a running sandbox for its code blocks. Open the Sandbox view to see what it is doing."})});const p=o.getServiceManager()??void 0;return i.jsx(c,{height:"100%",minHeight:0,children:i.jsx(U,{inheritTheme:!0,documentId:r,content:y,autoFocus:x,serviceManager:p,showToolbar:n.present,toolbarExtraItems:n.items,kernelId:p?t.kernelId:void 0,runtimeOverride:!p&&t.jupyterUrl?{baseUrl:t.jupyterUrl,token:t.jupyterToken}:void 0})})}export{lt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as S,r as n,j as i,B as l,a2 as m}from"../datalayer-app-main.js";import{I as j}from"./percentages-BXMCSKIN-
|
|
1
|
+
import{a1 as S,r as n,j as i,B as l,a2 as m}from"../datalayer-app-main.js";import{I as j}from"./percentages-BXMCSKIN-DhE6_GLO.js";/* empty css */import"./floating-ui.react-dom-Bcd0th1j.js";import"./extends-CF3RwP-h.js";import"./index-CavxlEgY.js";import"./index-DoBkwclg.js";function b({drawings:s,revision:c}){const{resolvedColorScheme:g}=S(),[u,h]=n.useState([]),[d,p]=n.useState(s.current),a=n.useRef(null),o=n.useRef("");n.useEffect(()=>{let t=!0;return s.host.listDrawings().then(r=>{t&&(h(r),p(s.current??r[r.length-1]?.id))}),()=>{t=!1}},[s,c]);const e=d?s.host.get(d):void 0;return n.useEffect(()=>{if(!e||!a.current)return;const t=JSON.stringify(e.scene.elements);t!==o.current&&(o.current=t,a.current.addFiles(Object.values(e.scene.files??{})),a.current.updateScene({elements:e.scene.elements,appState:e.scene.appState}),a.current.scrollToContent())},[e,c]),e?i.jsxs(l,{"data-page-excalidraw-stage":e.id,display:"flex",flexDirection:"column",flex:1,minHeight:480,sx:{gap:2},children:[u.length>1&&i.jsx(m,{"aria-label":"Drawings",size:"small",children:u.map((t,r)=>i.jsx(m.Button,{selected:t.id===e.id,onClick:()=>p(t.id),children:`Drawing ${r+1}`},t.id))}),i.jsx(l,{flex:1,minHeight:440,sx:{position:"relative"},children:i.jsx(j,{theme:g?.startsWith("dark")?"dark":"light",initialData:{elements:e.scene.elements,appState:{...e.scene.appState,collaborators:new Map},files:e.scene.files,scrollToContent:!0},excalidrawAPI:t=>{a.current=t},onChange:(t,r,x)=>{const f=JSON.stringify(t);f!==o.current&&(o.current=f,s.host.set({...e,scene:{elements:t,appState:{viewBackgroundColor:r.viewBackgroundColor,gridSize:r.gridSize},files:x}}))}},e.id)})]}):i.jsx(l,{minHeight:420,"aria-busy":"true"})}export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,a$ as ke,b0 as be,b1 as Se,b2 as je,b3 as we,j as e,B as M,b4 as ve,b5 as Ce,b6 as Ee,b7 as Re,b8 as V,k as $,b9 as Me,ba as Te,bb as Pe,an as T,bc as Ne,bd as q,be as K,bf as De,bg as Ue}from"../datalayer-app-main.js";import{useLexicalTools as He}from"./lexicalHooks-
|
|
1
|
+
import{r,a$ as ke,b0 as be,b1 as Se,b2 as je,b3 as we,j as e,B as M,b4 as ve,b5 as Ce,b6 as Ee,b7 as Re,b8 as V,k as $,b9 as Me,ba as Te,bb as Pe,an as T,bc as Ne,bd as q,be as K,bf as De,bg as Ue}from"../datalayer-app-main.js";import{useLexicalTools as He}from"./lexicalHooks-Cj3BNPDC.js";import{u as Be}from"./useProgressTask-QfEN9vew.js";import{L as Ie,k as Le,T as We,m as Ae,n as _e,o as Fe,D as Y,p as Je,q as ze,s as Ve,t as $e,J as qe,u as Ke,F as Ye,v as Ge,w as Qe,x as Xe,y as Ze}from"./JupyterLexicalExtension-DpGAnn7v.js";import"./LexicalToolRegistry-BqxU1w4N.js";import"./NotebookSkeleton-DHQ--KEB.js";import"./Avatar-B0TcOj_b.js";import"./url-4_0MnaFQ.js";import"./isObject-CeOzAI2h.js";import"./toNumber-DUdf79Nr.js";import"./isSymbol-DfwdEMHq.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./TypographyIcon-CCkcdj7U.js";import"./ArrowUpIcon-y5enrVH9.js";import"./floating-ui.react-dom-Bcd0th1j.js";import"./SortDescIcon-Qif6E10I.js";import"./VideoIcon-BTOb9gRv.js";import"./PrismCss-C5fDCsu9.js";import"./Output-DLpf2Of9.js";import"./index-h8lXpqtD.js";import"./hoverbox-CStlKQWE.js";import"./index-B5W7CVUY.js";import"./index-CBWGYoQM.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BxgGIFfN.js";import"./d3-color-Jd8hXty2.js";import"./dist-N90VI44_.js";import"./index-Cz10oMGc.js";import"./RestartIcon-DvpOf5Mf.js";function Oe({content:o}){const[s]=T(),l=r.useRef(!0);return r.useEffect(()=>{if(l.current){if(l.current=!1,!o){s.update(()=>{const t=q();t.getChildrenSize()===0&&t.append(K())},{tag:"history-merge"});return}try{const t=JSON.parse(o);if(t&&typeof t=="object"&&t.root){const d=s.parseEditorState(o);s.setEditorState(d,{tag:"history-merge"})}else throw new Error("Invalid Lexical editor state format")}catch{s.update(()=>{const t=q();t.clear(),t.append(K())},{tag:"history-merge"})}}},[o,s]),null}function et({disabled:o}){const[s]=T();return r.useEffect(()=>{Ne(s,De).output.disabled.value=o},[s,o]),null}function tt({setIsLinkEditMode:o,extraItems:s}){const[l]=T(),[t,d]=r.useState(l);return e.jsx(Ze,{editor:l,activeEditor:t,setActiveEditor:d,setIsLinkEditMode:o,extraItems:s})}function G({inherit:o,colorMode:s,themeConfig:l,children:t}){return o?e.jsx(e.Fragment,{children:t}):e.jsx(Te,{colorMode:s,theme:l.primerTheme,themeStyles:l.themeStyles,children:t})}function Ut({documentId:o,runtimeName:s,runtimeOverride:l,serviceManager:t,kernelId:d,themeVariant:Q,colorMode:X,content:P,onContentChange:j,onToolsReady:N,onKernelChange:w,collaboration:n,toolbarExtraItems:Z,showToolbar:O=!0,inheritTheme:D=!1,autoFocus:U=!0}){const h=!!(n?.websocketUrl&&n?.roomId),ee=n?.identity?.displayName||n?.identity?.handle||n?.identity?.userId,te=n?.identity?.color,ne=r.useMemo(()=>({user:{id:n?.identity?.userId,username:n?.identity?.userId||n?.identity?.handle||n?.identity?.displayName,name:n?.identity?.handle||n?.identity?.displayName,display_name:n?.identity?.displayName||n?.identity?.handle,initials:n?.identity?.initials,color:n?.identity?.color,avatar_url:n?.identity?.avatarUrl,handle:n?.identity?.handle}}),[n?.identity]),H=r.useRef(P),B=r.useRef(o);B.current!==o&&(B.current=o,H.current=P);const I=H.current,L=r.useRef(I??""),W=He(o);r.useEffect(()=>{N?.(W)},[W,N]);const{runtimes:A,refetchRuntimes:v}=ke(),m=r.useMemo(()=>{const i=String(l?.baseUrl||"").trim();if(i)return{url:i,wsUrl:String(l?.wsUrl||"").trim()||void 0,token:String(l?.token||"").trim(),runtime_name:String(l?.runtimeName||"").trim()||"agent-node-proxy"};const a=String(s||"").trim();if(a)return A.find(S=>String(S?.runtime_name||"")===a)},[l,s,A]),_=!!(!l?.baseUrl&&String(s||"").trim()&&!m);r.useEffect(()=>{if(!_)return;v();const i=window.setInterval(()=>{v()},1e3);return()=>{window.clearInterval(i)}},[_,v]);const[re,g]=r.useState(null),[p,f]=r.useState(void 0);r.useEffect(()=>{let i=!1,a=null,S=null;return(async()=>{if(t){try{await t.ready;const u=d?t.kernels.connectTo({model:{id:d,name:"python"}}):await t.kernels.startNew();i||(g(t),f(new V({kernelName:u.model.name,kernelSpecName:u.model.name,kernelModel:u.model,kernelManager:t.kernels,kernelspecsManager:t.kernelspecs,sessionManager:t.sessions})))}catch(u){console.error("[agent-runtimes] The document could not reach the kernel of the sandbox it was given.",u),i||(g(null),f(void 0))}return}const E=String(m?.url||"").trim();if(!E){i||(g(null),f(void 0));return}try{const u=String(m?.token||"").trim(),pe=String(m?.wsUrl||"").trim()||E.replace(/^http/,"ws"),xe=$.ServerConnection.makeSettings({baseUrl:E,wsUrl:pe,token:u,appendToken:!0});a=new $.ServiceManager({serverSettings:xe}),S=Me(String(m?.runtime_name||""),a),await a.ready;const R=await a.kernels.startNew();if(!i){const ye=new V({kernelName:R.model.name,kernelSpecName:R.model.name,kernelModel:R.model,kernelManager:a.kernels,kernelspecsManager:a.kernelspecs,sessionManager:a.sessions});g(a),f(ye)}}catch{i||(g(null),f(void 0))}})(),()=>{i=!0,S?.(),a&&Ue(a)}},[t,d,m?.runtime_name,m?.url,m?.token]),r.useEffect(()=>(w?.(p?.connection??null),()=>{w?.(null)}),[p,w]);const C=re,F=!!((String(s||"").trim()||String(l?.baseUrl||"").trim()||t)&&!C);Be(`ephemeral-document-start-${o}`,F);const oe=r.useMemo(()=>be({name:"@datalayer/agent-runtimes/EphemeralDocument",namespace:`ephemeral-document-${o}`,theme:Xe,dependencies:[Qe,...U?[Pe]:[]],onError(i){console.error("[EphemeralDocument]",i)}}),[o,U]),ie=r.useCallback(i=>{if(!j)return;const a=JSON.stringify(i.toJSON());a!==L.current&&(L.current=a,j(a))},[j]),[x,se]=r.useState(null),[,J]=r.useState(!1),y=h?n?.roomId:void 0,[ae,le]=r.useState(),ce=y===void 0||ae===y,me=r.useCallback(i=>le(i?y:void 0),[y]),de=i=>{i!==null&&se(i)},{colorMode:ue,theme:he}=Se(),k=X??ue,ge=Q??he,fe=je(),b=we(ge),z=k==="auto"?fe:k,c=(z==="dark"?b.themeStyles.dark:b.themeStyles.light).backgroundColor??"";return e.jsx(M,{flex:1,minHeight:0,height:"100%",position:"relative",overflow:"hidden",bg:"canvas.default",children:C?e.jsx(G,{inherit:D,colorMode:k,themeConfig:b,children:e.jsx(ve,{colormode:z,backgroundColor:c,children:e.jsx(M,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",minHeight:0,overflow:"hidden",overscrollBehaviorY:"contain",padding:2,backgroundColor:c,"--bgColor-default":c,"& .editor-shell":{backgroundColor:c,borderRadius:2,display:"flex",flexDirection:"column",minHeight:0,flex:1,maxWidth:"none",width:"100%",margin:0},"& .editor-container":{backgroundColor:c,display:"flex",flexDirection:"column",minHeight:0,flex:1,width:"100%",maxWidth:"none",margin:0},"& .editor-inner":{backgroundColor:c,display:"flex",flexDirection:"column",minHeight:0,flex:1,width:"100%",maxWidth:"none"},"& .editor-scroller":{minHeight:0,flex:1,overflow:"auto",width:"100%",maxWidth:"none"},"& .editor":{minHeight:"100%",width:"100%",maxWidth:"none",margin:0},"& .editor-input":{backgroundColor:c,width:"100%",maxWidth:"none",margin:0},"& .ContentEditable__root":{width:"100%",maxWidth:"none",margin:0},'& [role="toolbar"][aria-label="Editor toolbar"]':{backgroundColor:c}},children:e.jsx(Ie,{lexicalId:o,serviceManager:C,children:e.jsx(Ce,{extension:oe,contentEditable:null,children:e.jsx(Le,{children:e.jsx(We,{children:e.jsxs("div",{className:"editor-shell",children:[O?e.jsx(tt,{setIsLinkEditMode:J,extraItems:Z}):null,e.jsx("div",{className:"editor-container",children:e.jsxs("div",{className:"editor-inner",children:[h&&n?e.jsx(Ae,{id:n.roomId,providerFactory:_e,websocketUrl:n.websocketUrl,shouldBootstrap:!0,showCollaborators:!0,username:ee,cursorColor:te,awarenessData:ne,onInitialization:me}):null,e.jsx(Fe,{}),ce?e.jsx("div",{className:"editor-scroller",children:e.jsx("div",{className:"editor",ref:de,children:e.jsx(Ee,{className:"editor-input","aria-label":"Ephemeral document editor"})})}):e.jsx(Y,{maxWidth:"100%"}),!h&&e.jsx(Re,{onChange:ie}),e.jsx(et,{disabled:h}),!h&&e.jsx(Oe,{content:I}),e.jsx(Je,{}),e.jsx(ze,{}),e.jsx(Ve,{}),e.jsx($e,{kernel:p}),e.jsx(qe,{kernel:p}),x&&e.jsxs(e.Fragment,{children:[e.jsx(Ke,{anchorElem:x}),e.jsx(Ye,{anchorElem:x,setIsLinkEditMode:J}),e.jsx(Ge,{anchorElem:x})]})]})})]})})})})})})})}):F?e.jsx(G,{inherit:D,colorMode:k,themeConfig:b,children:e.jsx(M,{position:"absolute",inset:0,display:"flex",flexDirection:"column",padding:2,backgroundColor:c,children:e.jsx(Y,{label:"Starting the document",maxWidth:"100%"})})}):null})}export{Ut as EphemeralDocument,Ut as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ct as O,bw as ke,k as x,cq as I,bv as Ee,fd as _e,fe as Re,ff as Ce,r as f,Z as ne,a$ as Me,fg as Ue,j as y,b1 as qe,b2 as je,b3 as Te,B as Z,b4 as Ae,b9 as Ne,ba as Ie,bg as Oe}from"../datalayer-app-main.js";import{u as Le}from"./useProgressTask-QfEN9vew.js";import{a as De}from"./NotebookToolbar-C1fpK-Vi.js";import{C as Je,a as $e,N as Be}from"./CellSidebarExtension-
|
|
1
|
+
import{ct as O,bw as ke,k as x,cq as I,bv as Ee,fd as _e,fe as Re,ff as Ce,r as f,Z as ne,a$ as Me,fg as Ue,j as y,b1 as qe,b2 as je,b3 as Te,B as Z,b4 as Ae,b9 as Ne,ba as Ie,bg as Oe}from"../datalayer-app-main.js";import{u as Le}from"./useProgressTask-QfEN9vew.js";import{a as De}from"./NotebookToolbar-C1fpK-Vi.js";import{C as Je,a as $e,N as Be}from"./CellSidebarExtension-CrdbRLaE.js";import"./RepoPushIcon-BtXQRhLa.js";import"./index-B5W7CVUY.js";import"./hoverbox-CStlKQWE.js";import"./NotebookSkeleton-DHQ--KEB.js";import"./Avatar-B0TcOj_b.js";import"./index-CBWGYoQM.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BxgGIFfN.js";import"./d3-color-Jd8hXty2.js";import"./renderer-NdtLW87o.js";import"./SquareIcon-Dy3l3VdH.js";const H="jupyter_server_nbmodel",Pe=new WeakSet;function We(e){return Pe.has(e)}function re(e){const n=e.model.getMetadata(H);return n?.kernelId&&n.requestId&&n.requestUrl?n:void 0}function oe(e,n){e.model.setMetadata(H,n)}function Q(e){e.model.deleteMetadata(H)}function se(e){return(typeof e=="string"?JSON.parse(e):e).reduce((r,t)=>{const o=r[r.length-1];if(t.output_type==="stream"&&o?.output_type==="stream"&&o.name===t.name){const s=Array.isArray(o.text)?o.text.join(""):o.text??"",a=Array.isArray(t.text)?t.text.join(""):t.text??"";o.text=s+a}else r.push(t);return r},[])}function q(e){return Array.isArray(e.text)?e.text.join(""):e.text??""}function Ke(e,n){return e?.output_type==="stream"&&n?.output_type==="stream"&&e.name===n.name&&q(n).startsWith(q(e))}function He(e,n){return e.length>n.length?!1:e.every((r,t)=>O.deepEqual(r,n[t])||t===e.length-1&&Ke(r,n[t]))}function Fe(e,n){const r=Math.min(e.length,n.length);for(let t=0;t<r;t+=1){const o=e[t],s=n[t];if(O.deepEqual(o,s))continue;if(!(o?.output_type==="stream"&&s?.output_type==="stream"&&o.name===s.name))return-1;const i=q(o),u=q(s);if(!u.startsWith(i)&&!i.startsWith(u)||t<r-1)return-1}return r}function Ge(e,n,r){let t=n.length;if(n.length>0&&r.length>=n.length){const o=n.length-1,s=n[o],a=r[o];if(!O.deepEqual(s,a)){const i=q(a).slice(q(s).length);i&&e.outputArea.model.add({...a,text:i})}}for(;t<r.length;)e.outputArea.model.add(r[t]),t+=1}function ae(e,n,r){const t=e.model.sharedModel,o=t.getOutputs();if(O.deepEqual(o,n))return;if(n.length===0){r?.length&&o.length&&e.outputArea.model.clear();return}if(He(n,o))return;console.debug("[jupyter-server-nbmodel] Applying pending output snapshot",{cellId:t.getId(),outputCount:n.length});const s=Fe(o,n);s>=0?Ge(e,o.slice(0,s),n):t.setOutputs(n)}const Ve=1e3;async function ze(e,n,r){let t;try{t=await n.json()}catch{return}if(t.request_id&&t.kernel_id){const a=n.headers.get("Location")??t.request_url;a&&(r.requestUrl=a),a&&r.recoverOutputs&&oe(e,{kernelId:t.kernel_id,requestId:t.request_id,requestUrl:a}),r.accepted||(r.accepted=!0,r.onAccepted?.())}if(t.outputs===void 0||!r.recoverOutputs)return;const o=se(t.outputs),s=r.serverOutputs;r.serverOutputs=o,ae(e,o,s)}async function K(e,n,r,t,o,s=100,a={}){const i=new ke;return x.ServerConnection.makeRequest(n,r,t).then(async u=>{if(u.ok)if(u.status===202){await ze(e,u,a);let c=u.headers.get("Location")||a.requestUrl||n;c.startsWith(t.baseUrl)||(c=I.URLExt.join(t.baseUrl,c)),setTimeout(async(_,w,m,M,b,U,p)=>{try{const h=await K(_,w,m,M,b,U,p);i.resolve(h)}catch(h){i.reject(h)}},s,e,c,{method:"GET"},t,o,Math.min(Ve,s*2),a)}else i.resolve(u);else if(u.status===300){let c=u.headers.get("Location")||"";if(!c){const p=n.match(/^(.*\/api\/kernels\/[^/?]+)/);c=p?`${p[1]}/input`:""}if(!c){i.reject(new Error(`The kernel asked for an input, and where to send it could not be determined: no Location header, and the polled URL names no kernel (${n}).`));return}c.startsWith(t.baseUrl)||(c=I.URLExt.join(t.baseUrl,c));const{parent_header:_,input_request:w}=await u.json(),m=new Ee;m.addClass("jp-OutputArea-child"),m.addClass("jp-OutputArea-stdin-item");const M=new _e;M.addClass("jp-OutputArea-prompt"),m.addWidget(M);const b=new Re({future:Object.freeze({sendInputReply:(p,h)=>{x.ServerConnection.makeRequest(c,{method:"POST",body:JSON.stringify({input:p.value})},t).catch(k=>{console.error(`Failed to set input to ${JSON.stringify(p)}.`,k)})}}),parent_header:_,password:w.password,prompt:w.prompt,translator:o});b.addClass("jp-OutputArea-output"),m.addWidget(b);const U=b.node.getElementsByTagName("input")[0];b.value.then(p=>{m.addClass("jp-OutputArea-stdin-hiding"),e.outputArea.model.add({output_type:"stream",name:"stdin",text:p+`
|
|
2
2
|
`}),U.focus(),window.setTimeout(async()=>{const h=document.activeElement;m.dispose(),h&&h instanceof HTMLElement&&h.focus();try{const k=await K(e,n,r,t,o,100,a);i.resolve(k)}catch(k){i.reject(k)}},500)}),e.outputArea.layout.addWidget(m)}else i.reject(await x.ServerConnection.ResponseError.create(u))}).catch(u=>{i.reject(new x.ServerConnection.NetworkError(u))}),i.promise}async function Ye(e,n,r,t,o,s=100,a,i=!1){return K(e,n,r,t,o,s,{onAccepted:a,recoverOutputs:i})}async function Xe(e,n,r){const t=e.model.sharedModel;t.executionState="running";try{const s=await(await Ye(e,n,{method:"GET"},r,void 0,100,void 0,!0)).json(),a=se(s.outputs??"[]");return ae(e,a),t.execution_count=s.execution_count??null,t.executionState="idle",Q(e),s.status==="ok"}catch(o){if(o instanceof x.ServerConnection.ResponseError&&o.response.status===404)return Q(e),t.executionState="idle",!1;throw o}}const N=new Set;function Ze(e,n){if(e.startsWith(n.baseUrl))return e;const r=e.startsWith("http")?new URL(e).pathname:e;return I.URLExt.join(n.baseUrl,r)}function Qe(e,n){if(We(e))return!1;const r=re(e);if(!r||N.has(r.requestId)||e.isDisposed||!e.model)return!1;N.add(r.requestId);const t=Ze(r.requestUrl,n);return console.info("[agent-runtimes] Resuming a server execution",{cellId:e.model.sharedModel.getId(),requestId:r.requestId,requestUrl:t}),Xe(e,t,n).catch(o=>{if(e.isDisposed){N.delete(r.requestId);return}console.warn(`[agent-runtimes] Failed to resume the execution ${r.requestId}.`,o)}),!0}const W=new Set;async function et(e,n,r){const t=`${r.baseUrl}#${n.id}`;if(W.has(t))return 0;const o=await x.ServerConnection.makeRequest(I.URLExt.join(r.baseUrl,`api/kernels/${n.id}/execute`),{method:"GET"},r);if(o.status===404)return W.add(t),0;if(!o.ok)throw await x.ServerConnection.ResponseError.create(o).catch(()=>new Error(`Invalid response: ${o.status} ${o.statusText}`.trim()));W.add(t);const s=await o.json();let a=0;for(const i of s.requests??[]){if(!i.cell_id||N.has(i.request_id))continue;const u=e.find(c=>c.model?.sharedModel.getId()===i.cell_id);!u||u.isDisposed||re(u)||(oe(u,{kernelId:i.kernel_id,requestId:i.request_id,requestUrl:i.request_url}),a+=1)}return a}async function tt(e){if(e.isDisposed)return 0;const n=e.sessionContext?.session?.kernel,r=n?.serverSettings;if(!n||!r)return 0;const t=e.content.widgets.filter(s=>s instanceof Ce);if(t.length===0)return 0;try{await et(t,n,r)}catch(s){console.warn("[agent-runtimes] Failed to discover the active executions of the kernel.",s)}let o=0;for(const s of t)Qe(s,r)&&(o+=1);return o}const ee=1e3,nt=3e4;function rt(e,n){f.useEffect(()=>{if(!e||!n)return;let r=0;const t=()=>{const a=ne.getState().selectNotebook(e)?.adapter?.panel;!a||a.isDisposed||tt(a)};t();const o=window.setInterval(()=>{if(r+=ee,r>=nt){window.clearInterval(o);return}t()},ee);return()=>{window.clearInterval(o)}},[e,n])}const te={cells:[{cell_type:"code",source:[""],metadata:{},outputs:[],execution_count:null}],metadata:{kernelspec:{display_name:"Python 3",language:"python",name:"python3"},language_info:{name:"python"}},nbformat:4,nbformat_minor:5};function ot({inherit:e,colorMode:n,themeConfig:r,children:t}){return e?y.jsx(y.Fragment,{children:t}):y.jsx(Ie,{colorMode:n,theme:r.primerTheme,themeStyles:r.themeStyles,children:t})}function wt({notebookId:e,runtimeName:n,runtimeOverride:r,serviceManager:t,inheritTheme:o=!1,kernelId:s,cellSidebarMargin:a=120,nbformat:i,onNbformatChange:u,toolbarComponent:c,toolbarExtraItems:_,showToolbar:w=!0,showSaveItem:m=!1,themeVariant:M,colorMode:b,collaborationProvider:U}){const p=f.useRef(i??te),h=f.useRef(e);h.current!==e&&(h.current=e,p.current=i??te);const k=p.current,F=f.useRef(JSON.stringify(k)),{runtimes:G,refetchRuntimes:L}=Me(void 0,{enabled:!!String(n||"").trim()&&!t&&!String(r?.baseUrl||"").trim()}),V=f.useMemo(()=>{const l=String(n||"").trim();if(l)return G.find(d=>String(d?.runtime_name||"")===l)},[n,G]),S=f.useMemo(()=>{const l=String(r?.baseUrl||"").trim();return l?{url:l,wsUrl:String(r?.wsUrl||"").trim()||void 0,token:String(r?.token||"").trim(),runtime_name:String(r?.runtimeName||"").trim()||"agent-node-proxy"}:V},[r,V]),z=!!(!r?.baseUrl&&String(n||"").trim()&&!S);f.useEffect(()=>{if(!z)return;L();const l=window.setInterval(()=>{L()},1e3);return()=>{window.clearInterval(l)}},[z,L]);const[ie,D]=f.useState(null),[ue,J]=f.useState(void 0),[le,$]=f.useState(!1);f.useEffect(()=>{let l=!1,d=null,E=null;const v=async()=>{const R=String(S?.url||"").trim();if(!R){l||(D(null),J(void 0),$(!1));return}try{const A=String(S?.token||"").trim(),we=String(S?.wsUrl||"").trim()||R.replace(/^http/,"ws"),be=x.ServerConnection.makeSettings({baseUrl:R,wsUrl:we,token:A,appendToken:!0}),C=new x.ServiceManager({serverSettings:be});if(d=C,E=Ne(String(S?.runtime_name||""),d),l){g(C);return}await C.ready,await C.kernels.refreshRunning();const X=[...C.kernels.running()][0];if(l){g(C);return}D(C),J(X?.id),$(!X)}catch(A){d&&(g(d),d=null),l||(console.warn(`[agent-runtimes] Could not reach the sandbox at ${R}.`,A),D(null),J(void 0),$(!1))}},g=R=>{E?.(),E=null,Oe(R)};return v(),()=>{l=!0,d?(g(d),d=null):(E?.(),E=null)}},[S?.runtime_name,S?.url,S?.token,S?.wsUrl]);const j=t??ie,ce=Ue(),de=s??ue,fe=t?!s:le,me=f.useMemo(()=>{if(!w)return;const l=c||De,d=m?void 0:["notebook-save","notebook-divider-file"];return!_?.length&&!d?l:function(v){return y.jsx(l,{...v,extraItems:_,hiddenItems:d})}},[w,m,c,_]),pe=!!((String(n||"").trim()||String(r?.baseUrl||"").trim())&&!j);Le(`ephemeral-notebook-start-${e}`,pe),rt(e,j??void 0),f.useEffect(()=>{if(U)return;const l=()=>{const g=ne.getState().selectNotebook(e)?.adapter;return(g?.notebook?.model??g?.panel?.content?.model??null)?.toJSON?.()??null},d=()=>{const v=l();if(!v||!Array.isArray(v.cells))return;const g=JSON.stringify(v);g!==F.current&&(F.current=g,u?.(v))},E=window.setInterval(d,500);return()=>{window.clearInterval(E),d()}},[j,e,u]);const{colorMode:he,theme:ge}=qe(),B=b??he,Se=M??ge,ve=je(),P=Te(Se),Y=B==="auto"?ve:B,T=(Y==="dark"?P.themeStyles.dark:P.themeStyles.light).backgroundColor??"",ye=f.useMemo(()=>[new Je({factory:$e})],[]),xe=f.useMemo(()=>`.datalayer/${e}.ipynb`,[e]);return y.jsx(Z,{flex:1,minHeight:0,height:"100%",position:"relative",overflow:"hidden",bg:"canvas.default",children:j&&ce?y.jsx(ot,{inherit:o,colorMode:B,themeConfig:P,children:y.jsx(Ae,{colormode:Y,backgroundColor:T,children:y.jsx(Z,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",overflow:"hidden",overscrollBehaviorY:"contain",overflowAnchor:"none",padding:2,backgroundColor:T,"& #dla-Jupyter-Notebook":{display:"flex",flexDirection:"column"},...w?{"& #dla-Jupyter-Notebook > :first-of-type":{position:"sticky",top:0,zIndex:2,flex:"0 0 auto",backgroundColor:T}}:{"& .datalayer-NotebookPanel-header":{display:"none",minHeight:0}},"& #dla-Jupyter-Notebook > .dla-Box-Notebook":{flex:"1 1 auto",minHeight:0},'& [role="toolbar"][aria-label="Notebook toolbar"]':{backgroundColor:T}},children:y.jsx(Be,{nbformat:k,id:e,path:xe,serviceManager:j,startDefaultKernel:fe,kernelId:de,height:"100%",cellSidebarMargin:a,extensions:ye,Toolbar:me,collaborationProvider:U})})})}):null})}export{wt as EphemeralNotebook,wt as default};
|
package/dist-embed/chunks/{ExcalidrawComponent-BvB8s8DF.js → ExcalidrawComponent-CmJy7bb4.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,j as p,an as N,ck as z,cl as L,cm as T,cn as F,aG as R,I as O,aH as _}from"../datalayer-app-main.js";import{l as U,z as H,A as W,B as M}from"./JupyterLexicalExtension-
|
|
1
|
+
import{r as o,j as p,an as N,ck as z,cl as L,cm as T,cn as F,aG as R,I as O,aH as _}from"../datalayer-app-main.js";import{l as U,z as H,A as W,B as M}from"./JupyterLexicalExtension-DpGAnn7v.js";import $ from"./ExcalidrawModal-D_DmAro7.js";import{r as X}from"./percentages-BXMCSKIN-DhE6_GLO.js";import{u as J}from"./ThemeContext-D9ztCaU3.js";import"./NotebookSkeleton-DHQ--KEB.js";import"./Avatar-B0TcOj_b.js";import"./url-4_0MnaFQ.js";import"./isObject-CeOzAI2h.js";import"./toNumber-DUdf79Nr.js";import"./isSymbol-DfwdEMHq.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./TypographyIcon-CCkcdj7U.js";import"./ArrowUpIcon-y5enrVH9.js";import"./floating-ui.react-dom-Bcd0th1j.js";import"./SortDescIcon-Qif6E10I.js";import"./VideoIcon-BTOb9gRv.js";import"./PrismCss-C5fDCsu9.js";import"./Output-DLpf2Of9.js";import"./index-h8lXpqtD.js";import"./hoverbox-CStlKQWE.js";import"./index-B5W7CVUY.js";import"./index-CBWGYoQM.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BxgGIFfN.js";import"./d3-color-Jd8hXty2.js";import"./dist-N90VI44_.js";import"./index-Cz10oMGc.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-BqxU1w4N.js";/* empty css */import"./extends-CF3RwP-h.js";import"./index-CavxlEgY.js";import"./index-DoBkwclg.js";const P=e=>{const n=e?.firstElementChild?.firstElementChild,g=e.getAttribute("viewBox");if(g!=null){const a=g.split(" ");e.setAttribute("width",a[2]),e.setAttribute("height",a[3])}n&&n.tagName==="style"&&n.remove()};function V({elements:e,files:n,imageContainerRef:g,appState:a,rootClassName:s=null,width:c="inherit",height:C="inherit"}){const[b,x]=o.useState(null),{theme:E}=J(b),[B,u]=o.useState(null),[v,w]=o.useState(0);o.useEffect(()=>{const r=new MutationObserver(S=>{for(const h of S)if(h.type==="attributes"&&(h.attributeName==="style"||h.attributeName==="class")){w(l=>l+1);break}});return r.observe(document.documentElement,{attributes:!0,attributeFilter:["style","class"]}),r.observe(document.body,{attributes:!0,attributeFilter:["style","class"]}),()=>r.disconnect()},[]),o.useEffect(()=>{(async()=>{await new Promise(D=>setTimeout(D,150));const S=["#ffffff","#000000","transparent",""],h=a?.viewBackgroundColor||"transparent",l=S.includes(h.toLowerCase()),A={...a,viewBackgroundColor:l?"transparent":a?.viewBackgroundColor,exportBackground:!l,exportWithDarkMode:E==="dark"},f=await X({appState:A,elements:e,files:n});P(f),f.setAttribute("width","100%"),f.setAttribute("height","100%"),f.setAttribute("display","block"),u(f)})()},[e,n,a,E,v]);const m={};c!=="inherit"&&(m.width=`${c}px`),C!=="inherit"&&(m.height=`${C}px`);const k=a?.viewBackgroundColor||"transparent";if(["#ffffff","#000000","transparent",""].includes(k.toLowerCase())){const r=E==="dark"?"#1e1e1e":"#ffffff";m.backgroundColor=`var(--bgColor-default, var(--jp-layout-color0, var(--vscode-editor-background, ${r})))`}return p.jsx("div",{ref:r=>{x(r),r&&g&&(g.current=r)},className:s??"",style:m,dangerouslySetInnerHTML:{__html:B?.outerHTML??""}})}function Dt({nodeKey:e,data:n,width:g,height:a}){const[s]=N(),c=U(),[C,b]=o.useState(n==="[]"&&s.isEditable()),x=o.useRef(null),E=o.useRef(null),B=o.useRef(null),[u,v,w]=H(e),[m,k]=o.useState(!1);o.useEffect(()=>{if(!c){u&&w();return}return z(s.registerCommand(L,t=>{const d=E.current,i=t.target;return m?!0:d!==null&&T(i)&&d.contains(i)?(t.shiftKey||w(),v(!u),t.detail>1&&b(!0),!0):!1},F))},[w,s,u,m,v,c]);const y=o.useCallback(()=>(b(!1),s.update(()=>{const t=R(e);t&&t.remove()})),[s,e]),I=(t,d,i)=>s.update(()=>{const j=R(e);M(j)&&(t&&t.length>0||Object.keys(i).length>0?j.setData(JSON.stringify({appState:d,elements:t,files:i})):j.remove())}),r=()=>{k(!0)},S=(t,d)=>{setTimeout(()=>{k(!1)},200),s.update(()=>{const i=R(e);M(i)&&(i.setWidth(t),i.setHeight(d))})},h=o.useCallback(()=>{b(!0)},[]),{elements:l=[],files:A={},appState:f={}}=o.useMemo(()=>JSON.parse(n),[n]),D=o.useCallback(()=>{b(!1),l.length===0&&s.update(()=>{const t=R(e);t&&t.remove()})},[s,e,l.length]);return p.jsxs(p.Fragment,{children:[c&&C&&p.jsx($,{initialElements:l,initialFiles:A,initialAppState:f,isShown:C,onDelete:y,onClose:D,onSave:(t,d,i)=>{I(t,d,i),b(!1)},closeOnClickOutside:!1}),l.length>0&&p.jsxs("button",{ref:E,className:`excalidraw-button ${u?"selected":""}`,children:[p.jsx(V,{imageContainerRef:x,className:"image",elements:l,files:A,appState:f,width:g,height:a}),u&&c&&p.jsx(O,{icon:_,"aria-label":"Edit the drawing",size:"small",variant:"default",sx:{position:"absolute",top:8,right:8,zIndex:10},onMouseDown:t=>t.preventDefault(),onClick:h}),(u||m)&&c&&p.jsx(W,{buttonRef:B,showCaption:!0,setShowCaption:()=>null,imageRef:x,editor:s,onResizeStart:r,onResizeEnd:S})]})]})}export{Dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,j as a,D as h,aF as p,v as f}from"../datalayer-app-main.js";import{I as T}from"./percentages-BXMCSKIN-
|
|
1
|
+
import{r as t,j as a,D as h,aF as p,v as f}from"../datalayer-app-main.js";import{I as T}from"./percentages-BXMCSKIN-DhE6_GLO.js";import{u as z}from"./ThemeContext-D9ztCaU3.js";/* empty css */import"./floating-ui.react-dom-Bcd0th1j.js";import"./extends-CF3RwP-h.js";import"./index-CavxlEgY.js";import"./index-DoBkwclg.js";function H({closeOnClickOutside:I=!1,onSave:x,initialElements:l,initialAppState:g,initialFiles:d,isShown:s=!1,onDelete:v,onClose:c}){const[w,C]=t.useState(null),{theme:E}=z(w),u=t.useRef(null),b=t.useCallback(e=>{u.current=e,C(e)},[]),[o,k]=t.useState(null),[j,n]=t.useState(!1),[m,M]=t.useState(l),[D,S]=t.useState(d);t.useEffect(()=>{u.current?.focus()},[]),t.useEffect(()=>{if(!o||!s)return;const e=()=>o.refresh(),r=requestAnimationFrame(e),i=setTimeout(e,300);return window.addEventListener("resize",e),()=>{cancelAnimationFrame(r),clearTimeout(i),window.removeEventListener("resize",e)}},[o,s]);const A=()=>{if(m?.some(e=>!e.isDeleted)){const e=o?.getAppState(),r={exportBackground:e?.exportBackground,exportScale:e?.exportScale,exportWithDarkMode:e?.theme==="dark",isBindingEnabled:e?.isBindingEnabled,isLoading:e?.isLoading,name:e?.name,theme:e?.theme,viewBackgroundColor:e?.viewBackgroundColor,viewModeEnabled:e?.viewModeEnabled,zenModeEnabled:e?.zenModeEnabled,zoom:e?.zoom};x(m,r,D)}else v()},B=()=>{n(!0)};if(s===!1)return null;const y=(e,r,i)=>{M(e),S(i)};return a.jsxs(a.Fragment,{children:[a.jsxs(h,{title:"Excalidraw",onClose:()=>c(),width:"xlarge",height:"auto",sx:{width:"80vw !important",maxWidth:"80vw !important",height:"80vh !important",maxHeight:"80vh !important"},children:[a.jsx(p,{ref:b,tabIndex:-1,sx:{height:"calc(80vh - 140px)",position:"relative",overflow:"hidden"},children:a.jsx(T,{onChange:y,excalidrawAPI:e=>k(e),initialData:{appState:g||{isLoading:!1},elements:l,files:d},theme:E})}),a.jsxs(p,{sx:{display:"flex",gap:2,justifyContent:"flex-end",p:2,borderTop:"1px solid",borderColor:"var(--borderColor-default)"},children:[a.jsx(f,{variant:"invisible",onClick:B,children:"Discard"}),a.jsx(f,{variant:"primary",onClick:A,children:"Save"})]})]}),j&&a.jsx(h,{title:"Discard",onClose:()=>n(!1),width:"small",height:"auto",footerButtons:[{buttonType:"danger",content:"Discard",onClick:()=>{n(!1),c()}},{buttonType:"default",content:"Cancel",onClick:()=>n(!1)}],children:"Are you sure you want to discard the changes?"})]})}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,j as n,a9 as b}from"../datalayer-app-main.js";import{c as C,z as F,n as $,b as k}from"./model-
|
|
1
|
+
import{r as l,j as n,a9 as b}from"../datalayer-app-main.js";import{c as C,z as F,n as $,b as k}from"./model-jLDiOPpQ.js";import{u as S,b as T,c as D,d as N}from"./SheetTabs-sx_-jWyq.js";function L(v){const E=S(),a=T(),t=D(),j=`'${E.sheet(a.sheet).name.replace(/'/g,"''")}'`,p=`${C(a.active.col)}${a.active.row+1}`,{content:g,value:s}=N(`${j}!${p}`),o=a.zones[a.zones.length-1],i=o.top===o.bottom&&o.left===o.right?p:F(o),[h,d]=l.useState(i),[x,m]=l.useState(!1),[c,r]=l.useState(""),y=l.useId();l.useEffect(()=>{x||d(i)},[i,x]);const f=t.edit!==null&&t.edit.sheet===a.sheet&&t.edit.row===a.active.row&&t.edit.col===a.active.col,w=f?t.edit.text:g?.formula!==void 0?`=${g.formula}`:s===null?"":typeof s=="number"?$(s):typeof s=="boolean"?s?"TRUE":"FALSE":k(s)?s.error:s;return n.jsxs("div",{role:"group","aria-label":v["aria-label"]??"Formula bar","data-cells-formula-bar":"",style:{display:"flex",alignItems:"center",gap:4,padding:4},children:[n.jsx(b,{"aria-label":"Name box",size:"small",value:h,style:{width:96},onFocus:()=>m(!0),onBlur:()=>m(!1),onChange:e=>d(e.target.value),onKeyDown:e=>{if(e.key==="Enter"){e.preventDefault();try{a.select(h.trim()),r(""),m(!1)}catch(u){r(u.message)}}else e.key==="Escape"&&(d(i),r(""))}}),n.jsx("span",{"aria-hidden":"true",style:{fontStyle:"italic",opacity:.7},children:"fx"}),n.jsx(b,{"aria-label":"Formula","aria-describedby":c?y:void 0,"aria-invalid":c?!0:void 0,size:"small",block:!0,value:w,onFocus:()=>{f||t.start()},onChange:e=>{f||t.start(),t.setText(e.target.value)},onKeyDown:e=>{if(e.key==="Enter"){e.preventDefault();const u=t.commit();r(u.ok?"":u.refusals.map(z=>z.message).join(" "))}else e.key==="Escape"&&(e.preventDefault(),t.cancel(),r(""))}}),c&&n.jsx("span",{id:y,role:"alert",style:{color:"var(--fgColor-danger, #d1242f)"},children:c})]})}export{L as F};
|