@datalayer/agent-runtimes 1.3.99 → 1.3.101
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-DDIhoGCr.js → AgentDetails-CO9iM59C.js} +8 -8
- package/dist-embed/chunks/{AgentDetailsDialog-DQfL7V4R.js → AgentDetailsDialog-DmD6xm6k.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-DaMCROPs.js → AgentInspector-kDMuvh45.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-zGMiFR5z.js → AgentInspectorDialog-fT96Pb4Z.js} +1 -1
- package/dist-embed/chunks/Avatar-Dqz3ZWjZ.js +1 -0
- package/dist-embed/chunks/{CellSidebarExtension-DAzWlyRN.js → CellSidebarExtension-B-vao30u.js} +1 -1
- package/dist-embed/chunks/ChatView-CubqJum2.js +288 -0
- package/dist-embed/chunks/{ContextPie-D1eAig1P.js → ContextPie-ltoJ11q_.js} +1 -1
- package/dist-embed/chunks/DatalayerAgentBridge-BmJbZ2Lk.js +1 -0
- package/dist-embed/chunks/{DeckComponent-lNZXX0qi.js → DeckComponent-Fp6Vw8vN.js} +2 -2
- package/dist-embed/chunks/{DocumentView-BKzeMFBq.js → DocumentView-DKUbyyJg.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-DKtocZ3W.js → EphemeralDocument-CgYPEfGC.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-oX8GrXS3.js → EphemeralNotebook-DvDbCKnr.js} +2 -2
- package/dist-embed/chunks/{ExcalidrawComponent-B8nrxRST.js → ExcalidrawComponent-BehqBpwC.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal--K0C_WUL.js → ExcalidrawModal-B2sXbVJB.js} +1 -1
- package/dist-embed/chunks/{Flash-DTBPQ4yb.js → Flash-DdFxPtBI.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-CSMNnVr9.js → JupyterLexicalExtension-CUsjvchq.js} +9 -9
- package/dist-embed/chunks/{KernelVariables-D4s9Q5Ng.js → KernelVariables-BUmOt4yF.js} +2 -2
- package/dist-embed/chunks/{LexicalToolRegistry-_DH2qwSU.js → LexicalToolRegistry-DoZIM1lF.js} +1 -1
- package/dist-embed/chunks/{NotebookSkeleton-BTs2pK7B.js → NotebookSkeleton-D9WNoiWD.js} +1 -1
- package/dist-embed/chunks/{NotebookToolbar-B3BFk-WV.js → NotebookToolbar-C2_ZC9Ej.js} +1 -1
- package/dist-embed/chunks/{NotebookView-Dl-icjhk.js → NotebookView-BActuABH.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-22wdG0V-.js → SandboxDetailsDialog-C0afmOA7.js} +1 -1
- package/dist-embed/chunks/{SchemaForm-8b_dpfFK.js → SchemaForm-B351kd79.js} +1 -1
- package/dist-embed/chunks/{Toolbar-5oT8y_0g.js → Toolbar-B6ROXJ-2.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-B6pgdGkU.js → YouTubePlugin-CqA-IwCx.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-CCRPX817.js → abnfDiagram-VCTEODGH-B2rXJzIG.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Cc9J0KVQ.js → abnfDiagram-VCTEODGH-Celh8uSB.js} +1 -1
- package/dist-embed/chunks/{advancedFormat-IOT0HLTV.js → advancedFormat-9fBUVkZ9.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DMIAxeqR.js → ar-SA-G6X2FPQ2-DhQlC4AZ.js} +1 -1
- package/dist-embed/chunks/{arc-CN-j54V6.js → arc-BcTWnMdT.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-BN7cGeVb.js → architectureDiagram-5GKGNRK7-B1nGp-ab.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-De77ckgV.js → architectureDiagram-5GKGNRK7-BtvjVASE.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-DMFqBzG7.js → az-AZ-76LH7QW2-CDvJeI6H.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-DM9S3yhg.js → bg-BG-XCXSNQG7-B_2t7dwS.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-CoipBJ9g.js → blockDiagram-868be97b-Ctqgl81i.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-CYPYbqjz.js → blockDiagram-I7D4REHJ-B8cdJr95.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-Cs7aaFQh.js → blockDiagram-I7D4REHJ-BW7qedxT.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-CK8aWMNS.js → bn-BD-2XOGV67Q-B7nTDj-4.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-UwJoyMng.js → c4Diagram-3f4bdde3-0ruvDNdG.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-C0lopX7r.js → c4Diagram-7LVT6UL2-D_oBILZn.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-DjTuau65.js → c4Diagram-7LVT6UL2-ujGlIhtL.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-HslrBDJw.js → ca-ES-6MX7JW3Y-llJD_i9l.js} +1 -1
- package/dist-embed/chunks/channel-o04upGuP.js +1 -0
- package/dist-embed/chunks/{chunk-2Q5K7J3B-D4cqUYAT.js → chunk-2Q5K7J3B-CwLcj_PJ.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-BVMKDBY8.js → chunk-2Q5K7J3B-DcyPc2RX.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-Xhg_BVSp.js → chunk-5VM5RSS4-BkRs7Fna.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-CzKuJynz.js → chunk-5VM5RSS4-DMPUDDnV.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-Bt1Q0fHq.js → chunk-F27PBJKO-BzMwl8_q.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BUIdY_4T.js → chunk-F27PBJKO-pG1_v10O.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-DpgCTHeS.js → chunk-IMKFNOWR-Bf_-T_nx.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-Cy5BRScb.js → chunk-IMKFNOWR-DJta09Af.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-D3HcIpVU.js → chunk-JWPE2WC7-DC1wY1Ne.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-Diz0u535.js → chunk-JWPE2WC7-SVeaXwdX.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-TbpwubqF.js → chunk-POPQ4Y6H-BHtANfps.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-CkAsArUm.js → chunk-POPQ4Y6H-Cl1LQa-a.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-_yTXReWy.js → chunk-SVP7TREG-0GCrhixv.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-Cw20-h7G.js → chunk-SVP7TREG-2ZP0qWw_.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BPo6s9dS.js → chunk-TICWLB2K-BcegNV27.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-Df9jMrfB.js → chunk-TICWLB2K-CZYEMhEE.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CizfVebu.js → chunk-XXDRQBXY-DlOeT6YV.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-CQCJr_te.js → chunk-XXDRQBXY-NxzmpYaR.js} +1 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-BXZxncqO.js +1 -0
- package/dist-embed/chunks/classDiagram-ZZMXUADV-DnNeD34Z.js +1 -0
- package/dist-embed/chunks/{classDiagram-f62afe4f-BPLoDclf.js → classDiagram-f62afe4f-BD1_NCwH.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-ByLL4G6w.js → classDiagram-v2-604399ef-CxmFuhFb.js} +1 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BXZxncqO.js +1 -0
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-DnNeD34Z.js +1 -0
- package/dist-embed/chunks/{code-block-IT6T5CEO-CZdOZWWc.js → code-block-IT6T5CEO-U73VXKeS.js} +1 -1
- package/dist-embed/chunks/{component-CCqdcSgN.js → component-COjBgUMr.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-D1KcELJ6.js → cose-bilkent-JH36ORCC-71p0f-kJ.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DI7Z4av-.js → cose-bilkent-JH36ORCC-B-Oq7xUI.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-qEBV_LAF.js → createText-aed3d8b3-CmAg0yKd.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-D2WZgYFZ.js → cs-CZ-2BRQDIVT-Cm_uiYT0.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-D_YG7HzO.js → cynefinDiagram-5FMLGOSQ-BdKZ7Rf2.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-zmfGD2O2.js → cynefinDiagram-5FMLGOSQ-NbSU35d_.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-BZhZmwgX.js → da-DK-5WZEPLOC-B0lo6-wZ.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-BcPCMol6.js → dagre-GXQ25YYZ-C2NoVPqt.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-B-pyqr-3.js → dagre-GXQ25YYZ-Cq55WvUn.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-CltJ8MP6.js → de-DE-XR44H4JA-DZrN-mJo.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-BmnkJuMF.js → diagram-S7CK7UJ4-CF7XYPSL.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-hhBlnYjW.js → diagram-S7CK7UJ4-Cq78dPrF.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-DPb8MAV_.js → diagram-UQ7AKVKN-BAi-uDI4.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-BN1Xspl9.js → diagram-UQ7AKVKN-DlMLGIyl.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-TMd-7Wmo.js → diagram-VSXAHHWV-DRNadpAk.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-H5G6hU8P.js → diagram-VSXAHHWV-jJir7z_u.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-BrkFbK0K.js → diagram-VX7I27RA-BR-L0h0N.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DiYNlqCO.js → diagram-VX7I27RA-D_LZ7ttC.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DdG_O5h6.js → diagram-Z3DM3KII-CDeXGbsG.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-D1vqz5Ew.js → diagram-Z3DM3KII-CwrX0YEI.js} +1 -1
- package/dist-embed/chunks/{document-zcF1SUIy.js → document-B3yvxR3p.js} +1 -1
- package/dist-embed/chunks/{drivecontents-Ckcp2ERS.js → drivecontents-BHpoQXqz.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-PMrBUO9H.js → ebnfDiagram-PWID7BFC-DJ-S4zNP.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-DMXmlTDY.js → ebnfDiagram-PWID7BFC-DktGPWnR.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-zod3pf5J.js → edges-b2856ca0-Dl_I1_Tl.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-C70uQp6T.js → el-GR-BZB4AONW-C4D5ZbOc.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-D4Y_ua8V.js → erDiagram-5d81789a-Xh6XZPYE.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-COpQ5gec.js → erDiagram-RLTQ6QDP-CvKed34U.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-CZNZ_893.js → erDiagram-RLTQ6QDP-Dn5o1zp3.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-Bsjo8e08.js → es-ES-U4NZUMDT-D1yiS-ZI.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-SVPEle78.js → eu-ES-A7QVB2H4-Zm3lJsL6.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-CpgfdtSo.js → fa-IR-HGAKTJCU-Dhv2lg_O.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-0AIruYqI.js → fi-FI-Z5N7JZ37-QeFFEfyg.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-8a6sWoVq.js → flowDb-185abca5-DCi2LSG3.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-CCbNUYZl.js → flowDiagram-1629c991-1AzvuCps.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-lJ2Z3vFv.js → flowDiagram-HODETNUW-BjiuBN9U.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-CMUxuQ7T.js → flowDiagram-HODETNUW-BoOyNxJY.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-CEF2SgZr.js → flowDiagram-v2-1d953310-DNyM8Btq.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-RHeVm2Vk.js → flowchart-elk-definition-6df44142-DucxAUTE.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-Pv7-mObZ.js → fr-FR-RHASNOE6-DjbRpOS6.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-wEiuIWcM.js → ganttDiagram-3b0b3873-DLJCN1HW.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-BYMiax7v.js → ganttDiagram-EL5Y4UJY-D3bfGcnP.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-B5WlwMpk.js → ganttDiagram-EL5Y4UJY-us782PXd.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DYJQ-SIg.js → gitGraphDiagram-WWUBYQGX-BCKtisB_.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-D8fVmtc9.js → gitGraphDiagram-WWUBYQGX-DpOwi5a_.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-DxDYtdab.js → gitGraphDiagram-f01e8bc2-B5VZrDor.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-CvVsi7_e.js → gl-ES-HMX3MZ6V-C-ev9dqC.js} +1 -1
- package/dist-embed/chunks/{hcl-BZsx9glM.js → hcl-hwLh11hJ.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-DR-LBFsb.js → he-IL-6SHJWFNN-DHoNpuA6.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-C-7x_jFk.js → hi-IN-IWLTKZ5I-JZJZPoWj.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-IRN8uyau.js → hu-HU-A5ZG7DT2-RzCikyBW.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-B4acvKcJ.js → id-ID-SAP4L64H-Bn08nS9B.js} +1 -1
- package/dist-embed/chunks/{index-CzyPyDL7.js → index-1Ekpl0uC.js} +1 -1
- package/dist-embed/chunks/{index-9bae90f3-Byqvc_1J.js → index-9bae90f3-CqVDusDd.js} +1 -1
- package/dist-embed/chunks/{index-O05b1yOc.js → index-B1Egld01.js} +1 -1
- package/dist-embed/chunks/{index-CkcSokt2.js → index-B2dtLxcg.js} +1 -1
- package/dist-embed/chunks/{index-DrTOPxp7.js → index-B5MiaXUV.js} +1 -1
- package/dist-embed/chunks/{index-CML3IxdI.js → index-BOvsLtXe.js} +1 -1
- package/dist-embed/chunks/{index-C8PIFg_G.js → index-BUbwVG__.js} +4 -4
- package/dist-embed/chunks/{index-4cAPvEvs.js → index-BVAnvfbh.js} +1 -1
- package/dist-embed/chunks/{index-CBqbd-wN.js → index-BYofH50G.js} +1 -1
- package/dist-embed/chunks/{index-BvCNoy7C.js → index-Ba-Kv3yV.js} +1 -1
- package/dist-embed/chunks/{index-CFLgmNxm.js → index-BbsUSk_Q.js} +5 -5
- package/dist-embed/chunks/{index-DSqW3D0Y.js → index-Bs1pVq7E.js} +1 -1
- package/dist-embed/chunks/{index-CkHVrFkx.js → index-BtjXlYA2.js} +1 -1
- package/dist-embed/chunks/{index-qS3zZ9pt.js → index-C0iUgNwj.js} +2 -2
- package/dist-embed/chunks/{index-BNamX66v.js → index-C5xKtdLU.js} +13 -13
- package/dist-embed/chunks/{index-B3E7bXYK.js → index-CGscJbrF.js} +1 -1
- package/dist-embed/chunks/{index-CGSmsddM.js → index-Cjx6uk6z.js} +1 -1
- package/dist-embed/chunks/{index-DPibz6KG.js → index-CqKV027P.js} +1 -1
- package/dist-embed/chunks/{index-Dm4AUkEh.js → index-Cqur_rhw.js} +4 -4
- package/dist-embed/chunks/{index-CNx_s591.js → index-D7rnWGLu.js} +2 -2
- package/dist-embed/chunks/{index-qoRa7lfq.js → index-DCX_IqLg.js} +1 -1
- package/dist-embed/chunks/{index-BY3dr_Yb.js → index-DHVYKZ44.js} +6 -6
- package/dist-embed/chunks/{index-Begrz6qi.js → index-DIHzcHI1.js} +1 -1
- package/dist-embed/chunks/{index-NHZX5LFG.js → index-DJomc4za.js} +2 -2
- package/dist-embed/chunks/{index-DecCuztE.js → index-DLk6Znxv.js} +1 -1
- package/dist-embed/chunks/{index-BnowXurk.js → index-DYt0uAs-.js} +1 -1
- package/dist-embed/chunks/{index-kuItYEfY.js → index-DeYQGrTz.js} +8 -8
- package/dist-embed/chunks/{index-CDSBIJbt.js → index-DgnVcOqG.js} +1 -1
- package/dist-embed/chunks/{index-REv48H9T.js → index-DkY_OIbM.js} +1 -1
- package/dist-embed/chunks/{index-CaurkNaJ.js → index-DsX9nIHt.js} +1 -1
- package/dist-embed/chunks/{index-DKPjJ48t.js → index-DtYYe0Cw.js} +5 -5
- package/dist-embed/chunks/{index-CwFAduNg.js → index-aX9x7qni.js} +1 -1
- package/dist-embed/chunks/{index-74YA-L1Q.js → index-hib7vWC6.js} +1 -1
- package/dist-embed/chunks/{index-DYk4SAGn.js → index-p2ZGnxJX.js} +1 -1
- package/dist-embed/chunks/{index-CxSZtb0e.js → index-qzUKNibz.js} +1 -1
- package/dist-embed/chunks/{index-5Jo-nwZH.js → index-zr-b1Ds3.js} +1 -1
- package/dist-embed/chunks/{index.esm-DOzsYAbC.js → index.esm-CJLAKtMR.js} +1 -1
- package/dist-embed/chunks/{index.esm-BpcXmnkv.js → index.esm-DlPZAW-m.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CV8wJO56.js → infoDiagram-27XIBGKW-CB1VZqVi.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-DNSrv0V4.js → infoDiagram-27XIBGKW-s9Lynuxa.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-E8D341jS.js → infoDiagram-a29d40f1-BSyalhIZ.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-BRfv59pP.js → ishikawaDiagram-5VMMS53U-BnyB2Q-F.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DmZ-PvsF.js → ishikawaDiagram-5VMMS53U-D-b9zU7V.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-qA6LaRji.js → it-IT-JPQ66NNP-C2vJMuKM.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-CHmLHAsr.js → ja-JP-DBVTYXUO-C8KOKQt9.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-3jE8sGmW.js → journeyDiagram-3NMN7TZE-CZXsMFjb.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-itNV2GBs.js → journeyDiagram-3NMN7TZE-Cv3HlmqD.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-Ba7ZL7z3.js → journeyDiagram-95396277-DnkmTBAP.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-CLJsweAJ.js → kaa-6HZHGXH3-CvxJbmMB.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-C5IJJXMt.js → kab-KAB-ZGHBKWFO-CQJhf9Nn.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DraK1j1A.js → kanban-definition-UXKFOSKX-CZ0olp9z.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DLigKnGA.js → kanban-definition-UXKFOSKX-LX8xxzUZ.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-CCaxEdfw.js → kk-KZ-P5N5QNE5-Dl6YC0GH.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-My_ugj4j.js → km-KH-HSX4SM5Z-QYB-tJ4i.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-CHP-oWuX.js → ko-KR-MTYHY66A-D6yzBqJ5.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-C52g9k3M.js → ku-TR-6OUDTVRD-C43l2362.js} +1 -1
- package/dist-embed/chunks/{layout-Dj1wRfbG.js → layout-DC1dN5QV.js} +1 -1
- package/dist-embed/chunks/{layout-DNotAWCv.js → layout-DfHqq7Y7.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-kxLGr2aO.js → lexicalHooks-PS_v7JyS.js} +1 -1
- package/dist-embed/chunks/{line-DuKLYeqR.js → line-BLnKxlFS.js} +1 -1
- package/dist-embed/chunks/{linear-Dg-Vn5Yx.js → linear-bDTv5gmU.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-DcGTTOch.js → lt-LT-XHIRWOB4-BG1v5NwF.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-Duj8GAiu.js → lv-LV-5QDEKY6T-CAwm1y_0.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-C0gANONu.js → mermaid.core-BS7AlRW2.js} +3 -3
- package/dist-embed/chunks/{mermaid.core-BjUO4_Ly.js → mermaid.core-CLv-vCjs.js} +5 -5
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-x4oa4R6v.js → mindmap-definition-YA3MSWOX-BUr4hM7e.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-qCMgaWWi.js → mindmap-definition-YA3MSWOX-CwwLX5oJ.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-Dy5nnqlt.js → mindmap-definition-e4c1d938-B4xy2oKe.js} +1 -1
- package/dist-embed/chunks/{model-D8diDS02.js → model-D7a10Ag0.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-Cm1jPr2r.js → mr-IN-CRQNXWMA-DSk6q1fp.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-CfTzX-Wc.js → my-MM-5M5IBNSE-BRiKXulk.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-DdPxuBWB.js → nb-NO-T6EIAALU-CCDnctVd.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-eOHjxC9z.js → nl-NL-IS3SIHDZ-DwStD_Ch.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-DjAv0k1C.js → nn-NO-6E72VCQL-DNcfjETk.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-C0T2Uif7.js → oc-FR-POXYY2M6-BOjjS12P.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BpX0p08b.js → pa-IN-N4M65BXN-B4y5cv2_.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-5jUoEdYP.js → pegDiagram-XKGWAZYB-CVtSqLfc.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Smos5ynL.js → pegDiagram-XKGWAZYB-pdjxeh5M.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-CmsGG1KO.js → percentages-BXMCSKIN-BpahO1D1.js} +6 -6
- package/dist-embed/chunks/{pica-DvcVbjys.js → pica-CyDhZ1sv.js} +1 -1
- package/dist-embed/chunks/{pie-CrFPIYc9.js → pie-CktNGOxo.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-D0vDTcE9.js → pieDiagram-E7YTZNPT-D2I7Fwff.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-COPe6fPR.js → pieDiagram-E7YTZNPT-JUXSTYxs.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-65qxkgxB.js → pieDiagram-c941bede-DWhYbfLm.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-ZCXWl-vX.js → pl-PL-T2D74RX3-CfuLoYHB.js} +1 -1
- package/dist-embed/chunks/{plugin-Ba5UScsV.js → plugin-DZPXm2dP.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-ClSeRSTv.js → pt-BR-5N22H2LF-Fk60PfdA.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-aI3iyXEY.js → pt-PT-UZXXM6DQ-SNAgJ5Vr.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BoEDNaHO.js → quadrantDiagram-AXDQQJYC-Cw8ysOVS.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-DvWSIFQv.js → quadrantDiagram-AXDQQJYC-zTpXZRnN.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-DiapetF0.js → quadrantDiagram-cf8b8fe0-DH_dNEld.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-LnW8lyjW.js → railroadDiagram-O6MQD6OU-CoMzy1dm.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-XyeFPUFA.js → railroadDiagram-O6MQD6OU-DrPiQVOZ.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-NVu0cGYm.js → requirementDiagram-53bda41b-C7A0I5GT.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-wRDyhjvw.js → requirementDiagram-BXWQKSXE-B9trBsts.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CtpxXHY5.js → requirementDiagram-BXWQKSXE-BLQtV6jv.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW--yP8WH1q.js → ro-RO-JPDTUUEW-YkxpKkWn.js} +1 -1
- package/dist-embed/chunks/{round-BYqUt1IP.js → round-DymJ-a3G.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-S6Dpc8ej.js → ru-RU-B4JR7IUQ-CaI1rtvc.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CWsU1zz9.js → sankeyDiagram-P5KCCOFB-Cvxdoq6D.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-CkYpEh5o.js → sankeyDiagram-P5KCCOFB-Dwkp-ggM.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-D9xzSD-8.js → sankeyDiagram-c3ef121a-DeaFXwir.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-DDCEPqNh.js → sequenceDiagram-82a5b84f-fDhOBU7A.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CafPjz3k.js → sequenceDiagram-WJ2MYXX4-Bj9ikwM4.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-D-ytwLdK.js → sequenceDiagram-WJ2MYXX4-Bp1oVZMs.js} +1 -1
- package/dist-embed/chunks/{sessions-BeSpcqDy.js → sessions-ZDYLkdi_.js} +2 -2
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-Bh0-Jjfq.js → si-LK-N5RQ5JYF-CQz29xmh.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-FMWRuKPu.js → sizeCapture-INFHLROL-CMlzK5MC.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-5RviLAUl.js → sizeCapture-INFHLROL-ohpYHAcp.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-TXk80Xbq.js → sk-SK-C5VTKIMK-CZg7PVzd.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-DSdu_b8Y.js → sl-SI-NN7IZMDC-D-EjMWyZ.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-Bd0gJvTB.js → stateDiagram-43e79a5f-BFR_IH5W.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CsoLoQdw.js → stateDiagram-D77RDMKH-DpOxo9yl.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-anfAB1CI.js → stateDiagram-D77RDMKH-zWegA-O8.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-Db6Ltf2q.js → stateDiagram-v2-2041ed4f-8TkUHVMG.js} +1 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-BZAMPWr5.js +1 -0
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-DrTAroDB.js +1 -0
- package/dist-embed/chunks/{styles-455b33cd-DjZhq6rj.js → styles-455b33cd-Befvug13.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-s39yhAcA.js → styles-f932cba9-eBHnVQaE.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-QdZsB9tg.js → styles-fcc2142b-BsjaKqGS.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-B1SUTh3f.js → subset-shared.chunk-BIvvzzX2.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-B24w3nw0.js → subset-worker.chunk-DGgI6iRY.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-CT10IJuV.js → sv-SE-XGPEYMSR-D8CsNMON.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-B38JgGfg.js → svgDrawCommon-148a3cd9-BxzL4r3S.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CPp_dpjU.js → swimlanes-42K2YHIH-B28jcYJ_.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-DHlC5c8j.js → swimlanes-42K2YHIH-BZP55aw9.js} +1 -1
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-BIQqrjYQ.js +8 -0
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-hQM0t42-.js +8 -0
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-HSbClJ74.js → ta-IN-2NMHFXQM-CvuxKO7t.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-B2hciv_c.js → th-TH-HPSO5L25-NgQJigwq.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CKyPT4PB.js → timeline-definition-24CTP7MA-CficHg2r.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-D9gzYUYy.js → timeline-definition-24CTP7MA-De_e-NOu.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-BWnp7J60.js → timeline-definition-7545f45a-DqfcISSR.js} +1 -1
- package/dist-embed/chunks/{tokens-C8cD27Uo.js → tokens-B5KQP74f.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-BWwXpAYZ.js → tr-TR-DEFEU3FU-eu9-qLmi.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-Dj7E5VqN.js → uk-UA-QMV73CPH-CbjmuLVL.js} +1 -1
- package/dist-embed/chunks/{venn.esm-DCEZyyO1.js → venn.esm-QMuJZ7sT.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-bbhu-7hk.js → vennDiagram-4TSXK5OY-DIL1dW8w.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-F_ETYUiw.js → vennDiagram-4TSXK5OY-DmLAzLnR.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-PsrEnccg.js → vi-VN-M7AON7JQ-u84yOuJ-.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-DOvpFGv3.js → wardleyDiagram-VM6X3IG4-Cb_52SC-.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-3pZGhbDZ.js → wardleyDiagram-VM6X3IG4-DfZqkrsZ.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-DZLtCOMM.js → xychartDiagram-3f383b91-DGvBSaRz.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CFYS5J-K.js → xychartDiagram-S5SC5T6Z-6OM1k4o6.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-DSYuijxd.js → xychartDiagram-S5SC5T6Z-xYHAmg9u.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-BaQu8uAz.js → zh-CN-LNUGB5OW-ojkSgl-t.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-BidFwl7n.js → zh-HK-E62DVLB3-C6M89-Da.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-Bm6PhMc5.js → zh-TW-RAJ6MFWO-BaTtFORh.js} +1 -1
- package/dist-embed/datalayer-app-main.js +19 -19
- package/lib/apps/apps/AppRenderer.d.ts +12 -0
- package/lib/apps/apps/AppRenderer.js +38 -5
- package/lib/apps/apps/visitorToken.d.ts +29 -0
- package/lib/apps/apps/visitorToken.js +57 -0
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +71 -2
- package/lib/apps/plugins/agents/switchable.js +3 -2
- package/lib/apps/plugins/chat/ChatView.js +11 -1
- package/package.json +1 -1
- package/scripts/record-scene-checks.py +80 -20
- package/dist-embed/chunks/Avatar-VyZWLCFE.js +0 -1
- package/dist-embed/chunks/ChatView-Bqiq0mvd.js +0 -288
- package/dist-embed/chunks/DatalayerAgentBridge-BhxfUyb7.js +0 -1
- package/dist-embed/chunks/channel-gqCIn1TE.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-BmkR_bZ0.js +0 -1
- package/dist-embed/chunks/classDiagram-ZZMXUADV-Db5VIrmE.js +0 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-BmkR_bZ0.js +0 -1
- package/dist-embed/chunks/classDiagram-v2-VYDZK3BY-Db5VIrmE.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-CHSJtozR.js +0 -1
- package/dist-embed/chunks/stateDiagram-v2-MP3YSRHH-Grhw6_l4.js +0 -1
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-DA8nqWDf.js +0 -8
- package/dist-embed/chunks/swimlanesDiagram-VR7AAH4N-PPX_kI6A.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ch as E,ag as I,ah as j,ck as N,ao as x,r as s,cl as w,cm as k,cn as A,ai as D,co as O,cp as P,av as M,am as T,cq as R,cr as U,cs as W,ct as q}from"../datalayer-app-main.js";import{I as F}from"./tokens-Av8g3IGm.js";import{c as H}from"./index-D7rnWGLu.js";import{I as K}from"./tokens-kO65He8_.js";import"./CellSidebarExtension-B-vao30u.js";import"./NotebookSkeleton-D9WNoiWD.js";import"./Avatar-Dqz3ZWjZ.js";import"./renderer-jz0zn1Az.js";import"./SquareIcon-e3ygcjpv.js";import"./SortAscIcon-CVKVWIWQ.js";import"./url-DEeTWrO-.js";/* empty css */import"./index-Dro44tIm.js";/* empty css *//* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-Y3PTljcl.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-LgREOVgz.js";import"./index-DIHzcHI1.js";import"./KernelVariables-BUmOt4yF.js";import"./Flash-DdFxPtBI.js";import"./index-BxurLo3u.js";import"./SortDescIcon-CS4EzHeS.js";import"./NotebookToolbar-C2_ZC9Ej.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-B6ROXJ-2.js";import"./sessions-ZDYLkdi_.js";import"./tokens-B5KQP74f.js";import"./drivecontents-BHpoQXqz.js";import"./kernel-4uWz8R6G.js";const V="jp-Launcher";class $ extends E{constructor(){super(...arguments),this.itemsList=[]}add(t){const r=y.createItem(t);return this.itemsList.push(r),this.stateChanged.emit(void 0),new I(()=>{j.removeFirstOf(this.itemsList,r),this.stateChanged.emit(void 0)})}items(){return this.itemsList[Symbol.iterator]()}}class z extends N{constructor(t){super(t.model),this._pending=!1,this._cwd="",this._cwd=t.cwd,this.translator=t.translator||x,this._trans=this.translator.load("jupyterlab"),this._callback=t.callback,this._commands=t.commands,this.addClass(V)}get cwd(){return this._cwd}set cwd(t){this._cwd=t,this.update()}get pending(){return this._pending}set pending(t){this._pending=t}render(){if(!this.model)return null;const t=[this._trans.__("Notebook"),this._trans.__("Console"),this._trans.__("Other")],r=[this._trans.__("Notebook"),this._trans.__("Console")],o=Object.create(null);for(const e of this.model.items()){const i=e.category||this._trans.__("Other");i in o||(o[i]=[]),o[i].push(e)}for(const e in o)o[e]=o[e].sort((i,a)=>y.sortCmp(i,a,this._cwd,this._commands));const n=[];let h;const c=[];for(const e of t)c.push(e);for(const e in o)t.indexOf(e)===-1&&c.push(e);return c.forEach(e=>{if(!o[e])return;const i=o[e][0],a={...i.args,cwd:this.cwd},m=r.indexOf(e)>-1,p=this._commands.iconClass(i.command,a),u=this._commands.icon(i.command,a);e in o&&(h=s.createElement("div",{className:"jp-Launcher-section",key:e},s.createElement("div",{className:"jp-Launcher-sectionHeader"},s.createElement(w.resolveReact,{icon:u,iconClass:k(p,"jp-Icon-cover"),stylesheet:"launcherSection","aria-hidden":"true"}),s.createElement("h2",{className:"jp-Launcher-sectionTitle"},e)),s.createElement("div",{className:"jp-Launcher-cardContainer"},Array.from(A(o[e],_=>G(m,_,this,this._commands,this._trans,this._callback))))),n.push(h))}),s.createElement("div",{className:"jp-Launcher-body"},s.createElement("div",{className:"jp-Launcher-content"},s.createElement("div",{className:"jp-Launcher-cwd"},s.createElement("h3",null,this.cwd)),n))}}function G(d,t,r,o,n,h){const c=t.command,e={...t.args,cwd:r.cwd},i=o.caption(c,e),a=o.label(c,e),m=d?a:i||a,p=()=>{r.pending!==!0&&(r.pending=!0,o.execute(c,{...t.args,cwd:r.cwd}).then(l=>{r.pending=!1,l instanceof D&&h(l)}).catch(l=>{console.error(l),r.pending=!1,O(n._p("Error","Launcher Error"),l)}))},u=l=>{l.key==="Enter"&&p()},_=o.iconClass(c,e),C=o.icon(c,e);return s.createElement("div",{className:"jp-LauncherCard",title:m,role:"button",onClick:p,onKeyDown:u,tabIndex:0,"data-category":t.category||n.__("Other"),key:y.keyProperty.get(t)},s.createElement("div",{className:"jp-LauncherCard-icon"},d?t.kernelIconUrl?s.createElement("img",{src:t.kernelIconUrl,className:"jp-Launcher-kernelIcon",alt:m}):s.createElement("div",{className:"jp-LauncherCard-noKernelIcon"},a[0].toUpperCase()):s.createElement(w.resolveReact,{icon:C,iconClass:k(_,"jp-Icon-cover"),stylesheet:"launcherCard"})),s.createElement("div",{className:"jp-LauncherCard-label",title:m},s.createElement("p",null,a)))}var y;(function(d){let t=0;d.keyProperty=new P({name:"key",create:()=>t++});function r(n){return{...n,category:n.category||"",rank:n.rank!==void 0?n.rank:1/0}}d.createItem=r;function o(n,h,c,e){const i=n.rank,a=h.rank;if(i!==a&&i!==void 0&&a!==void 0)return i<a?-1:1;const m=e.label(n.command,{...n.args,cwd:c}),p=e.label(h.command,{...h.args,cwd:c});return m.localeCompare(p)}d.sortCmp=o})(y||(y={}));var g;(function(d){d.create="launcher:create"})(g||(g={}));const Te={activate:J,id:"@jupyterlab/launcher-extension:plugin",description:"Provides the launcher tab service.",requires:[T],optional:[H,M,K],provides:F,autoStart:!0};function J(d,t,r,o,n){const{commands:h,shell:c}=d,e=t.load("jupyterlab"),i=new $;return h.addCommand(g.create,{label:e.__("New Launcher"),icon:a=>a.toolbar?R:void 0,describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:e.__("The current working directory")},toolbar:{type:"boolean",description:e.__("Whether the command is executed from a toolbar")},activate:{type:"boolean",description:e.__("Whether to activate the widget")},ref:{type:"string",description:e.__("The reference widget id")}}}},execute:a=>{var m,p;const u=(p=(m=a.cwd)!==null&&m!==void 0?m:n?.model.path)!==null&&p!==void 0?p:"",_=`launcher-${L.id++}`,C=v=>{q(c.widgets("main"),b=>b===v)&&(c.add(v,"main",{ref:_}),l.dispose())},l=new z({model:i,cwd:u,callback:C,commands:h,translator:t});l.model=i,l.title.icon=U,l.title.label=e.__("Launcher");const f=new W({content:l});if(f.title.closable=!!Array.from(c.widgets("main")).length,f.id=_,c.add(f,"main",{activate:a.activate,ref:a.ref}),r&&r.layoutModified.connect(()=>{f.title.closable=Array.from(r.widgets("main")).length>1},f),n){const v=b=>{l.cwd=b.path};n.model.pathChanged.connect(v),l.disposed.connect(()=>{n.model.pathChanged.disconnect(v)})}return f}}),r&&Promise.all([d.restored,n?.model.restored]).then(()=>{function a(){r.isEmpty("main")&&h.execute(g.create)}r.layoutModified.connect(()=>{a()})}),o&&o.addItem({command:g.create,category:e.__("Launcher")}),r&&(r.addButtonEnabled=!0,r.addRequested.connect((a,m)=>{var p;const u=((p=m.currentTitle)===null||p===void 0?void 0:p.owner.id)||m.titles[m.titles.length-1].owner.id;return h.execute(g.create,{ref:u})})),i}var L;(function(d){d.id=0})(L||(L={}));export{Te as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{ai as Y,F as D,
|
|
1
|
+
import{ai as Y,F as D,cA as q,cz as L,ao as F,ae as le,cg as w,ag as K,b9 as X,am as P,al as ue,ar as pe,d0 as me,an as ge,av as Z,dz as be,cV as he,r as M,co as O,at as fe,cj as R,df as ve,dA as ye,dB as _e,ct as V,d3 as xe,dC as A,dD as z}from"../datalayer-app-main.js";import{I as we,S as Te}from"./index-DkY_OIbM.js";import{I as Ee}from"./tokens-CbEQpcM3.js";import{I as J}from"./tokens-CREF1pN9.js";import{I as Ce}from"./treepathupdater-PWAx8TXe.js";import{i as je,e as W,J as N,c as S,f as G,j as Q,d as k,k as Be,L as Pe,l as Le}from"./index-D7rnWGLu.js";import{R as Me}from"./menu-YajQJnN4.js";import"./CellSidebarExtension-B-vao30u.js";import"./NotebookSkeleton-D9WNoiWD.js";import"./Avatar-Dqz3ZWjZ.js";import"./renderer-jz0zn1Az.js";import"./SquareIcon-e3ygcjpv.js";import"./SortAscIcon-CVKVWIWQ.js";import"./url-DEeTWrO-.js";/* empty css */import"./index-Dro44tIm.js";/* empty css *//* empty css */import"./index-DsG9xhMj.js";/* empty css */import"./index-CNU-WVhQ.js";import"./index--OLIX362.js";import"./index-DYGslHkf.js";import"./index-BSRVX3UN.js";import"./index-BH2OX5l8.js";import"./index-C3vDfO5_.js";import"./index-Ko8lxXFd.js";import"./index-CB9u17_J.js";import"./index-BUVtc_FV.js";import"./ArrowLeftIcon-Y3PTljcl.js";import"./SkubbleIcon-tlg17jBG.js";import"./usePrimerThemeBridge-LgREOVgz.js";import"./index-DIHzcHI1.js";import"./KernelVariables-BUmOt4yF.js";import"./Flash-DdFxPtBI.js";import"./index-BxurLo3u.js";import"./SortDescIcon-CS4EzHeS.js";import"./NotebookToolbar-C2_ZC9Ej.js";import"./RepoPushIcon-Cm8g9NuL.js";import"./Toolbar-B6ROXJ-2.js";import"./sessions-ZDYLkdi_.js";import"./tokens-B5KQP74f.js";import"./drivecontents-BHpoQXqz.js";import"./kernel-4uWz8R6G.js";class Ie extends Y{constructor(){super(),this._button=document.createElement("button"),this._label=document.createElement("label"),this._valueChanged=new D(this),this._button.className="jp-switch",this._button.setAttribute("role","switch"),this._button.setAttribute("aria-checked",this._value?this._value.toString():"false"),this._label.className="jp-switch-label";const n=document.createElement("div");n.className="jp-switch-track",n.setAttribute("aria-hidden","true"),this._button.appendChild(this._label),this._button.appendChild(n),this.node.appendChild(this._button)}get value(){return this._value}set value(n){const e=this._value;e!==n&&(this._button.setAttribute("aria-checked",n.toString()),this._value=n,this._valueChanged.emit({name:"value",oldValue:e,newValue:n}))}get valueChanged(){return this._valueChanged}get label(){var n;return(n=this._label.textContent)!==null&&n!==void 0?n:""}set label(n){this._label.textContent=n}get caption(){return this._button.title}set caption(n){this._button.title=n,this._label.title=n}handleEvent(n){n.type==="click"&&(this.value=!this.value)}onAfterAttach(){this._button.addEventListener("click",this)}onBeforeDetach(){this._button.removeEventListener("click",this)}}const Ae=async function(i,n,e){e=e||F;const d=e.load("jupyterlab"),a=d.__("Server Connection Error"),o=d.__(`A connection to the Jupyter server could not be established.
|
|
2
2
|
JupyterLab will continue trying to reconnect.
|
|
3
3
|
Check your network connection or Jupyter server configuration.
|
|
4
|
-
`);if(!I.displayConnectionLost)return;if(I.serverConnectionLost){await I.serverConnectionLost;return}const r=q({title:a,body:o,checkbox:{label:d.__("Do not show this message again in this session."),caption:d.__("If checked, you will not see a dialog informing you about an issue with server connection in this session.")},buttons:[L.cancelButton({label:d.__("Close")})]}).then(s=>{s.isChecked&&(I.displayConnectionLost=!1)}).catch(s=>{console.error("An error occurred while showing the dialog: ",s)}).finally(()=>{I.serverConnectionLost=void 0});I.serverConnectionLost=r};var I;(function(i){i.displayConnectionLost=!0})(I||(I={}));class Ae{constructor(n){this.stop=new le("@jupyterlab/application:Router#stop"),this._routed=new D(this),this._rules=new Map,this.base=n.base,this.commands=n.commands}get current(){var n,e;const{base:d}=this,a=w.URLExt.parse(window.location.href),{search:o,hash:r}=a,s=(e=(n=a.pathname)===null||n===void 0?void 0:n.replace(d,"/"))!==null&&e!==void 0?e:"",f=s+o+r;return{hash:r,path:s,request:f,search:o}}get routed(){return this._routed}navigate(n,e={}){const{base:d}=this,{history:a}=window,{hard:o}=e,r=document.location.href,s=n&&n.indexOf(d)===0?n:w.URLExt.join(d,n);if(s===r)return o?this.reload():void 0;if(a.pushState({},"",s),o)return this.reload();e.skipRouting||requestAnimationFrame(()=>{this.route()})}register(n){var e;const{command:d,pattern:a}=n,o=(e=n.rank)!==null&&e!==void 0?e:100,r=this._rules;return r.set(a,{command:d,rank:o}),new K(()=>{r.delete(a)})}reload(){window.location.reload()}route(){const{commands:n,current:e,stop:d}=this,{request:a}=e,o=this._routed,r=this._rules,s=[];r.forEach((g,h)=>{a?.match(h)&&s.push(g)});const f=s.sort((g,h)=>h.rank-g.rank),m=new X,v=async()=>{if(!f.length){o.emit(e),m.resolve(void 0);return}const{command:g}=f.pop();try{const h=this.current.request;await n.execute(g,e)===d&&(f.length=0,console.debug(`Routing ${h} was short-circuited by ${g}`))}catch(h){console.warn(`Routing ${a} to ${g} failed`,h)}v()};return v(),m.promise}}const ke="TopBar",ee={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:!0,requires:[U,ue],optional:[P],activate:(i,n,e,d)=>{const a=(d??F).load("jupyterlab"),o=new pe;o.id="jp-top-bar",o.node.setAttribute("aria-label",a.__("Topbar toolbar")),me(o,ge(e,n,ke,ee.id,d??F),o),i.shell.add(o,"top",{rank:900})}},H=100;var l;(function(i){i.activateNextTab="application:activate-next-tab",i.activatePreviousTab="application:activate-previous-tab",i.activateNextTabBar="application:activate-next-tab-bar",i.activatePreviousTabBar="application:activate-previous-tab-bar",i.close="application:close",i.closeOtherTabs="application:close-other-tabs",i.closeRightTabs="application:close-right-tabs",i.closeAll="application:close-all",i.setMode="application:set-mode",i.showPropertyPanel="property-inspector:show-panel",i.resetLayout="application:reset-layout",i.toggleContextMenu="application:toggle-context-menu",i.toggleHeader="application:toggle-header",i.toggleMode="application:toggle-mode",i.toggleLeftArea="application:toggle-left-area",i.toggleRightArea="application:toggle-right-area",i.toggleSideTabBar="application:toggle-side-tabbar",i.toggleSidebarWidget="application:toggle-sidebar-widget",i.togglePresentationMode="application:toggle-presentation-mode",i.toggleFullscreenMode="application:toggle-fullscreen-mode",i.tree="router:tree",i.switchSidebar="sidebar:switch"})(l||(l={}));const Se={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:!0,requires:[P],optional:[S,Z],activate:(i,n,e,d)=>{var a;const{commands:o,shell:r}=i,s=n.load("jupyterlab"),f=s.__("Main Area");o.addCommand(je.contextMenu,{label:s.__("Shift+Right Click for Browser Menu"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!1,execute:()=>{}});const m=()=>{const t=c=>!!c.dataset.id,p=i.contextMenuHitTest(t);return p&&V(r.widgets("main"),c=>c.id===p.dataset.id)||r.currentWidget},v=t=>{t.forEach(p=>p.close())},g=(t,p)=>{if(t.type==="tab-area")return t.widgets.includes(p)?t:null;if(t.type==="split-area")for(const c of t.children){const b=g(c,p);if(b)return b}return null},h=t=>{var p;const c=e?.saveLayout(),b=c?.mainArea;if(!b||w.PageConfig.getOption("mode")!=="multiple-document")return null;const _=(p=b.dock)===null||p===void 0?void 0:p.main;return _?g(_,t):null},u=t=>{const{id:p}=t,c=h(t),b=c?c.widgets||[]:[],_=b.findIndex(T=>T.id===p);return _<0?[]:b.slice(_+1)},y=t=>{let p;if(t!="left"&&t!="right")throw Error(`Unsupported sidebar: ${t}`);if(t==="left")p=document.querySelector(".lm-TabBar-tab.lm-mod-current");else{const b=document.querySelectorAll(".lm-TabBar-tab.lm-mod-current");p=b[b.length-1]}const c=p?.getAttribute("data-id");return c?c?.toString():""};function x(t){t&&t.focus()}o.addCommand(l.close,{label:()=>s.__("Close Tab"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>{const t=m();return!!t&&t.title.closable},execute:()=>{const t=m();t&&t.close()}}),o.addCommand(l.closeOtherTabs,{label:()=>s.__("Close All Other Tabs"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>fe(r.widgets("main"),(t,p)=>p===1),execute:()=>{const t=m();if(!t)return;const{id:p}=t;for(const c of r.widgets("main"))c.id!==p&&c.close()}}),o.addCommand(l.closeRightTabs,{label:()=>s.__("Close Tabs to Right"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!!m()&&u(m()).length>0,execute:()=>{const t=m();t&&v(u(t))}}),(a=r.currentChanged)===null||a===void 0||a.connect(()=>{[l.close,l.closeOtherTabs,l.closeRightTabs].forEach(t=>o.notifyCommandChanged(t))}),e&&(o.addCommand(l.activateNextTab,{label:s.__("Activate Next Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activateNextTab()}}),o.addCommand(l.activatePreviousTab,{label:s.__("Activate Previous Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activatePreviousTab()}}),o.addCommand(l.activateNextTabBar,{label:s.__("Activate Next Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activateNextTabBar()}}),o.addCommand(l.activatePreviousTabBar,{label:s.__("Activate Previous Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activatePreviousTabBar()}}),o.addCommand(l.closeAll,{label:s.__("Close All Tabs"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.closeAll()}}),o.addCommand(l.toggleHeader,{label:s.__("Show Header"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.mode==="single-document"&&e.toggleTopInSimpleModeVisibility()},isToggled:()=>e.isTopInSimpleModeVisible(),isVisible:()=>e.mode==="single-document"}),o.addCommand(l.toggleLeftArea,{label:s.__("Show Left Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.leftCollapsed?e.expandLeft():(e.collapseLeft(),e.currentWidget&&e.activateById(e.currentWidget.id))},isToggled:()=>!e.leftCollapsed,isEnabled:()=>!e.isEmpty("left")}),o.addCommand(l.toggleRightArea,{label:s.__("Show Right Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.rightCollapsed?e.expandRight():(e.collapseRight(),e.currentWidget&&e.activateById(e.currentWidget.id))},isToggled:()=>!e.rightCollapsed,isEnabled:()=>!e.isEmpty("right")}),o.addCommand(l.toggleSidebarWidget,{label:t=>t===void 0||t.side===void 0||t.index===void 0?s.__("Toggle Sidebar Element"):t.side==="right"?s.__("Toggle Element %1 in Right Sidebar",parseInt(t.index,10)+1):s.__("Toggle Element %1 in Left Sidebar",parseInt(t.index,10)+1),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:s.__("The sidebar side")},index:{type:["string","number"],description:s.__("The index of the sidebar widget")}},required:["side","index"]}},execute:t=>{const p=parseInt(t.index,10);if(t.side!="left"&&t.side!="right")throw Error(`Unsupported sidebar: ${t.side}`);const c=Array.from(e.widgets(t.side));if(p>=c.length)return;const b=c[p].id,_=document.querySelector("[data-id='"+b+"']");y(t.side)===b?(t.side=="left"&&(e.collapseLeft(),x(_)),t.side=="right"&&(e.collapseRight(),x(_))):(e.activateById(b),x(_))}}),o.addCommand(l.toggleSideTabBar,{label:t=>t.side==="right"?s.__("Show Right Activity Bar"):s.__("Show Left Activity Bar"),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:s.__("The sidebar side")}},required:["side"]}},execute:t=>{t.side==="right"?e.toggleSideTabBarVisibility("right"):e.toggleSideTabBarVisibility("left")},isToggled:t=>t.side==="right"?e.isSideTabBarVisible("right"):e.isSideTabBarVisible("left"),isEnabled:t=>t.side==="right"?!e.isEmpty("right"):!e.isEmpty("left")}),o.addCommand(l.togglePresentationMode,{label:()=>s.__("Presentation Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.presentationMode=!e.presentationMode},isToggled:()=>e.presentationMode,isVisible:()=>!0}),o.addCommand(l.toggleFullscreenMode,{label:s.__("Fullscreen Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{document.fullscreenElement===null||document.fullscreenElement===void 0?document.documentElement.requestFullscreen().catch(t=>{console.error("Failed to enter fullscreen mode.",t)}):document.fullscreenElement!==null&&document.exitFullscreen().catch(t=>{console.error("Failed to exit fullscreen mode.",t)})},isToggled:()=>document.fullscreenElement!==null}),o.addCommand(l.setMode,{label:t=>t.mode?s.__("Set %1 mode.",t.mode):s.__("Set the layout `mode`."),caption:s.__('The layout `mode` can be "single-document" or "multiple-document".'),describedBy:{args:{type:"object",properties:{mode:{type:"string",enum:["single-document","multiple-document"],description:s.__("The layout mode")}},required:["mode"]}},isVisible:t=>{const p=t.mode;return p==="single-document"||p==="multiple-document"},execute:t=>{const p=t.mode;if(p==="single-document"||p==="multiple-document"){e.mode=p;return}throw new Error(`Unsupported application shell mode: ${p}`)}}),o.addCommand(l.toggleMode,{label:s.__("Simple Interface"),describedBy:{args:{type:"object",properties:{}}},isToggled:()=>e.mode==="single-document",execute:()=>{const t=e.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return o.execute(l.setMode,t)}}),o.addCommand(l.resetLayout,{label:s.__("Reset Default Layout"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.presentationMode&&o.execute(l.togglePresentationMode).catch(t=>{console.error("Failed to undo presentation mode.",t)}),(document.fullscreenElement!==null||document.fullscreenElement!==void 0)&&o.execute(l.toggleFullscreenMode).catch(t=>{console.error("Failed to exit fullscreen mode.",t)}),e.mode==="single-document"&&!e.isTopInSimpleModeVisible()&&o.execute(l.toggleHeader).catch(t=>{console.error("Failed to display title header.",t)}),["left","right"].forEach(t=>{!e.isSideTabBarVisible(t)&&!e.isEmpty(t)&&o.execute(l.toggleSideTabBar,{side:t}).catch(p=>{console.error(`Failed to show ${t} activity bar.`,p)})})}})),d&&([l.activateNextTab,l.activatePreviousTab,l.activateNextTabBar,l.activatePreviousTabBar,l.close,l.closeAll,l.closeOtherTabs,l.closeRightTabs,l.toggleHeader,l.toggleLeftArea,l.toggleRightArea,l.togglePresentationMode,l.toggleFullscreenMode,l.toggleMode,l.resetLayout].forEach(t=>d.addItem({command:t,category:f})),["right","left"].forEach(t=>{d.addItem({command:l.toggleSideTabBar,category:f,args:{side:t}})}))}},te={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[W,be,P,J.ITreeResolver],optional:[Be],provides:Ce,activate:(i,n,e,d,a,o)=>{const r=d.load("jupyterlab");if(!(i instanceof k))throw new Error(`${te.id} must be activated in JupyterLab.`);let s="",f="";function m(u){a.paths.then(()=>{if(f=u,!s){const y=w.PageConfig.getUrl({treePath:u}),x=w.URLExt.parse(y).pathname;n.navigate(x,{skipRouting:!0}),w.PageConfig.setOption("treePath",u)}})}const v=e.name;if(console.debug(`Starting application in workspace: "${v}"`),i.registerPluginErrors.length!==0){const u=M.createElement("pre",null,i.registerPluginErrors.map(y=>y.message).join(`
|
|
5
|
-
`));
|
|
4
|
+
`);if(!I.displayConnectionLost)return;if(I.serverConnectionLost){await I.serverConnectionLost;return}const r=q({title:a,body:o,checkbox:{label:d.__("Do not show this message again in this session."),caption:d.__("If checked, you will not see a dialog informing you about an issue with server connection in this session.")},buttons:[L.cancelButton({label:d.__("Close")})]}).then(s=>{s.isChecked&&(I.displayConnectionLost=!1)}).catch(s=>{console.error("An error occurred while showing the dialog: ",s)}).finally(()=>{I.serverConnectionLost=void 0});I.serverConnectionLost=r};var I;(function(i){i.displayConnectionLost=!0})(I||(I={}));class Re{constructor(n){this.stop=new le("@jupyterlab/application:Router#stop"),this._routed=new D(this),this._rules=new Map,this.base=n.base,this.commands=n.commands}get current(){var n,e;const{base:d}=this,a=w.URLExt.parse(window.location.href),{search:o,hash:r}=a,s=(e=(n=a.pathname)===null||n===void 0?void 0:n.replace(d,"/"))!==null&&e!==void 0?e:"",f=s+o+r;return{hash:r,path:s,request:f,search:o}}get routed(){return this._routed}navigate(n,e={}){const{base:d}=this,{history:a}=window,{hard:o}=e,r=document.location.href,s=n&&n.indexOf(d)===0?n:w.URLExt.join(d,n);if(s===r)return o?this.reload():void 0;if(a.pushState({},"",s),o)return this.reload();e.skipRouting||requestAnimationFrame(()=>{this.route()})}register(n){var e;const{command:d,pattern:a}=n,o=(e=n.rank)!==null&&e!==void 0?e:100,r=this._rules;return r.set(a,{command:d,rank:o}),new K(()=>{r.delete(a)})}reload(){window.location.reload()}route(){const{commands:n,current:e,stop:d}=this,{request:a}=e,o=this._routed,r=this._rules,s=[];r.forEach((g,h)=>{a?.match(h)&&s.push(g)});const f=s.sort((g,h)=>h.rank-g.rank),m=new X,v=async()=>{if(!f.length){o.emit(e),m.resolve(void 0);return}const{command:g}=f.pop();try{const h=this.current.request;await n.execute(g,e)===d&&(f.length=0,console.debug(`Routing ${h} was short-circuited by ${g}`))}catch(h){console.warn(`Routing ${a} to ${g} failed`,h)}v()};return v(),m.promise}}const ke="TopBar",ee={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:!0,requires:[J,ue],optional:[P],activate:(i,n,e,d)=>{const a=(d??F).load("jupyterlab"),o=new pe;o.id="jp-top-bar",o.node.setAttribute("aria-label",a.__("Topbar toolbar")),me(o,ge(e,n,ke,ee.id,d??F),o),i.shell.add(o,"top",{rank:900})}},H=100;var l;(function(i){i.activateNextTab="application:activate-next-tab",i.activatePreviousTab="application:activate-previous-tab",i.activateNextTabBar="application:activate-next-tab-bar",i.activatePreviousTabBar="application:activate-previous-tab-bar",i.close="application:close",i.closeOtherTabs="application:close-other-tabs",i.closeRightTabs="application:close-right-tabs",i.closeAll="application:close-all",i.setMode="application:set-mode",i.showPropertyPanel="property-inspector:show-panel",i.resetLayout="application:reset-layout",i.toggleContextMenu="application:toggle-context-menu",i.toggleHeader="application:toggle-header",i.toggleMode="application:toggle-mode",i.toggleLeftArea="application:toggle-left-area",i.toggleRightArea="application:toggle-right-area",i.toggleSideTabBar="application:toggle-side-tabbar",i.toggleSidebarWidget="application:toggle-sidebar-widget",i.togglePresentationMode="application:toggle-presentation-mode",i.toggleFullscreenMode="application:toggle-fullscreen-mode",i.tree="router:tree",i.switchSidebar="sidebar:switch"})(l||(l={}));const Se={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:!0,requires:[P],optional:[S,Z],activate:(i,n,e,d)=>{var a;const{commands:o,shell:r}=i,s=n.load("jupyterlab"),f=s.__("Main Area");o.addCommand(Be.contextMenu,{label:s.__("Shift+Right Click for Browser Menu"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!1,execute:()=>{}});const m=()=>{const t=c=>!!c.dataset.id,p=i.contextMenuHitTest(t);return p&&V(r.widgets("main"),c=>c.id===p.dataset.id)||r.currentWidget},v=t=>{t.forEach(p=>p.close())},g=(t,p)=>{if(t.type==="tab-area")return t.widgets.includes(p)?t:null;if(t.type==="split-area")for(const c of t.children){const b=g(c,p);if(b)return b}return null},h=t=>{var p;const c=e?.saveLayout(),b=c?.mainArea;if(!b||w.PageConfig.getOption("mode")!=="multiple-document")return null;const _=(p=b.dock)===null||p===void 0?void 0:p.main;return _?g(_,t):null},u=t=>{const{id:p}=t,c=h(t),b=c?c.widgets||[]:[],_=b.findIndex(T=>T.id===p);return _<0?[]:b.slice(_+1)},y=t=>{let p;if(t!="left"&&t!="right")throw Error(`Unsupported sidebar: ${t}`);if(t==="left")p=document.querySelector(".lm-TabBar-tab.lm-mod-current");else{const b=document.querySelectorAll(".lm-TabBar-tab.lm-mod-current");p=b[b.length-1]}const c=p?.getAttribute("data-id");return c?c?.toString():""};function x(t){t&&t.focus()}o.addCommand(l.close,{label:()=>s.__("Close Tab"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>{const t=m();return!!t&&t.title.closable},execute:()=>{const t=m();t&&t.close()}}),o.addCommand(l.closeOtherTabs,{label:()=>s.__("Close All Other Tabs"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>fe(r.widgets("main"),(t,p)=>p===1),execute:()=>{const t=m();if(!t)return;const{id:p}=t;for(const c of r.widgets("main"))c.id!==p&&c.close()}}),o.addCommand(l.closeRightTabs,{label:()=>s.__("Close Tabs to Right"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!!m()&&u(m()).length>0,execute:()=>{const t=m();t&&v(u(t))}}),(a=r.currentChanged)===null||a===void 0||a.connect(()=>{[l.close,l.closeOtherTabs,l.closeRightTabs].forEach(t=>o.notifyCommandChanged(t))}),e&&(o.addCommand(l.activateNextTab,{label:s.__("Activate Next Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activateNextTab()}}),o.addCommand(l.activatePreviousTab,{label:s.__("Activate Previous Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activatePreviousTab()}}),o.addCommand(l.activateNextTabBar,{label:s.__("Activate Next Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activateNextTabBar()}}),o.addCommand(l.activatePreviousTabBar,{label:s.__("Activate Previous Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.activatePreviousTabBar()}}),o.addCommand(l.closeAll,{label:s.__("Close All Tabs"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.closeAll()}}),o.addCommand(l.toggleHeader,{label:s.__("Show Header"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.mode==="single-document"&&e.toggleTopInSimpleModeVisibility()},isToggled:()=>e.isTopInSimpleModeVisible(),isVisible:()=>e.mode==="single-document"}),o.addCommand(l.toggleLeftArea,{label:s.__("Show Left Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.leftCollapsed?e.expandLeft():(e.collapseLeft(),e.currentWidget&&e.activateById(e.currentWidget.id))},isToggled:()=>!e.leftCollapsed,isEnabled:()=>!e.isEmpty("left")}),o.addCommand(l.toggleRightArea,{label:s.__("Show Right Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.rightCollapsed?e.expandRight():(e.collapseRight(),e.currentWidget&&e.activateById(e.currentWidget.id))},isToggled:()=>!e.rightCollapsed,isEnabled:()=>!e.isEmpty("right")}),o.addCommand(l.toggleSidebarWidget,{label:t=>t===void 0||t.side===void 0||t.index===void 0?s.__("Toggle Sidebar Element"):t.side==="right"?s.__("Toggle Element %1 in Right Sidebar",parseInt(t.index,10)+1):s.__("Toggle Element %1 in Left Sidebar",parseInt(t.index,10)+1),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:s.__("The sidebar side")},index:{type:["string","number"],description:s.__("The index of the sidebar widget")}},required:["side","index"]}},execute:t=>{const p=parseInt(t.index,10);if(t.side!="left"&&t.side!="right")throw Error(`Unsupported sidebar: ${t.side}`);const c=Array.from(e.widgets(t.side));if(p>=c.length)return;const b=c[p].id,_=document.querySelector("[data-id='"+b+"']");y(t.side)===b?(t.side=="left"&&(e.collapseLeft(),x(_)),t.side=="right"&&(e.collapseRight(),x(_))):(e.activateById(b),x(_))}}),o.addCommand(l.toggleSideTabBar,{label:t=>t.side==="right"?s.__("Show Right Activity Bar"):s.__("Show Left Activity Bar"),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:s.__("The sidebar side")}},required:["side"]}},execute:t=>{t.side==="right"?e.toggleSideTabBarVisibility("right"):e.toggleSideTabBarVisibility("left")},isToggled:t=>t.side==="right"?e.isSideTabBarVisible("right"):e.isSideTabBarVisible("left"),isEnabled:t=>t.side==="right"?!e.isEmpty("right"):!e.isEmpty("left")}),o.addCommand(l.togglePresentationMode,{label:()=>s.__("Presentation Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.presentationMode=!e.presentationMode},isToggled:()=>e.presentationMode,isVisible:()=>!0}),o.addCommand(l.toggleFullscreenMode,{label:s.__("Fullscreen Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{document.fullscreenElement===null||document.fullscreenElement===void 0?document.documentElement.requestFullscreen().catch(t=>{console.error("Failed to enter fullscreen mode.",t)}):document.fullscreenElement!==null&&document.exitFullscreen().catch(t=>{console.error("Failed to exit fullscreen mode.",t)})},isToggled:()=>document.fullscreenElement!==null}),o.addCommand(l.setMode,{label:t=>t.mode?s.__("Set %1 mode.",t.mode):s.__("Set the layout `mode`."),caption:s.__('The layout `mode` can be "single-document" or "multiple-document".'),describedBy:{args:{type:"object",properties:{mode:{type:"string",enum:["single-document","multiple-document"],description:s.__("The layout mode")}},required:["mode"]}},isVisible:t=>{const p=t.mode;return p==="single-document"||p==="multiple-document"},execute:t=>{const p=t.mode;if(p==="single-document"||p==="multiple-document"){e.mode=p;return}throw new Error(`Unsupported application shell mode: ${p}`)}}),o.addCommand(l.toggleMode,{label:s.__("Simple Interface"),describedBy:{args:{type:"object",properties:{}}},isToggled:()=>e.mode==="single-document",execute:()=>{const t=e.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return o.execute(l.setMode,t)}}),o.addCommand(l.resetLayout,{label:s.__("Reset Default Layout"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.presentationMode&&o.execute(l.togglePresentationMode).catch(t=>{console.error("Failed to undo presentation mode.",t)}),(document.fullscreenElement!==null||document.fullscreenElement!==void 0)&&o.execute(l.toggleFullscreenMode).catch(t=>{console.error("Failed to exit fullscreen mode.",t)}),e.mode==="single-document"&&!e.isTopInSimpleModeVisible()&&o.execute(l.toggleHeader).catch(t=>{console.error("Failed to display title header.",t)}),["left","right"].forEach(t=>{!e.isSideTabBarVisible(t)&&!e.isEmpty(t)&&o.execute(l.toggleSideTabBar,{side:t}).catch(p=>{console.error(`Failed to show ${t} activity bar.`,p)})})}})),d&&([l.activateNextTab,l.activatePreviousTab,l.activateNextTabBar,l.activatePreviousTabBar,l.close,l.closeAll,l.closeOtherTabs,l.closeRightTabs,l.toggleHeader,l.toggleLeftArea,l.toggleRightArea,l.togglePresentationMode,l.toggleFullscreenMode,l.toggleMode,l.resetLayout].forEach(t=>d.addItem({command:t,category:f})),["right","left"].forEach(t=>{d.addItem({command:l.toggleSideTabBar,category:f,args:{side:t}})}))}},te={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[W,be,P,N.ITreeResolver],optional:[je],provides:Ce,activate:(i,n,e,d,a,o)=>{const r=d.load("jupyterlab");if(!(i instanceof k))throw new Error(`${te.id} must be activated in JupyterLab.`);let s="",f="";function m(u){a.paths.then(()=>{if(f=u,!s){const y=w.PageConfig.getUrl({treePath:u}),x=w.URLExt.parse(y).pathname;n.navigate(x,{skipRouting:!0}),w.PageConfig.setOption("treePath",u)}})}const v=e.name;if(console.debug(`Starting application in workspace: "${v}"`),i.registerPluginErrors.length!==0){const u=M.createElement("pre",null,i.registerPluginErrors.map(y=>y.message).join(`
|
|
5
|
+
`));O(r.__("Error Registering Plugins"),{message:u})}i.shell.modeChanged.connect((u,y)=>{const x=w.PageConfig.getUrl({mode:y}),t=w.URLExt.parse(x).pathname;n.navigate(t,{skipRouting:!0}),w.PageConfig.setOption("mode",y)}),a.paths.then(()=>{i.shell.currentPathChanged.connect((u,y)=>{const x=y.newValue,t=x||f,p=w.PageConfig.getUrl({treePath:t}),c=w.URLExt.parse(p).pathname;n.navigate(c,{skipRouting:!0}),w.PageConfig.setOption("treePath",t),s=x})}),o=o||Ae,i.serviceManager.connectionFailure.connect((u,y)=>o(u,y,d));const g=i.serviceManager.builder,h=()=>g.build().then(()=>q({title:r.__("Build Complete"),body:M.createElement("div",null,r.__("Build successfully completed, reload page?"),M.createElement("br",null),r.__("You will lose any unsaved changes.")),buttons:[L.cancelButton({label:r.__("Reload Without Saving"),actions:["reload"]}),L.okButton({label:r.__("Save and Reload")})],hasClose:!0})).then(({button:{accept:u,actions:y}})=>{u?i.commands.execute("docmanager:save").then(()=>{n.reload()}).catch(x=>{O(r.__("Save Failed"),{message:M.createElement("pre",null,x.message)})}):y.includes("reload")&&n.reload()}).catch(u=>{O(r.__("Build Failed"),{message:M.createElement("pre",null,u.message)})});return g.isAvailable&&g.shouldCheck&&g.getStatus().then(u=>{if(u.status==="building")return h();if(u.status!=="needed")return;const y=M.createElement("div",null,r.__("JupyterLab build is suggested:"),M.createElement("br",null),M.createElement("pre",null,u.message));q({title:r.__("Build Recommended"),body:y,buttons:[L.cancelButton(),L.okButton({label:r.__("Build")})]}).then(x=>x.button.accept?h():void 0)}),m},autoStart:!0},oe={id:"@jupyterlab/application-extension:context-menu",description:"Populates the context menu.",autoStart:!0,requires:[J,P],optional:[Z],activate:(i,n,e,d)=>{const a=e.load("jupyterlab");function o(r){const s=new Me({...r,commands:i.commands});return r.label&&(s.title.label=a.__(r.label)),s}i.started.then(()=>U.loadSettingsContextMenu(i.contextMenu,i.commands,n,o,e)).then(()=>{d&&d?.addItem({category:a.__("Settings"),command:l.toggleContextMenu})}).catch(r=>{console.error("Failed to load context menu items from settings registry.",r)})}},ie={id:"@jupyterlab/application-extension:dirty",description:"Adds safeguard dialog when closing the browser tab with unsaved modifications.",autoStart:!0,requires:[P],activate:(i,n)=>{if(!(i instanceof k))throw new Error(`${ie.id} must be activated in JupyterLab.`);const d=n.load("jupyterlab").__(`Are you sure you want to exit JupyterLab?
|
|
6
6
|
|
|
7
|
-
Any unsaved changes will be lost.`);window.addEventListener("beforeunload",a=>{if(i.status.isDirty)return a.returnValue=d})}},qe={id:"@jupyterlab/application-extension:layout",description:"Provides the shell layout restorer.",requires:[he.IStateDB,S,
|
|
7
|
+
Any unsaved changes will be lost.`);window.addEventListener("beforeunload",a=>{if(i.status.isDirty)return a.returnValue=d})}},qe={id:"@jupyterlab/application-extension:layout",description:"Provides the shell layout restorer.",requires:[he.IStateDB,S,J],optional:[P],activate:(i,n,e,d,a)=>{const o=(a??F).load("jupyterlab"),r=i.started,s=i.commands,f=w.PageConfig.getOption("mode"),m=new Pe({connector:n,first:r,registry:s,mode:f});return d.load($.id).then(g=>{var h,u;const y=g.composite.layout;e.restoreLayout(f,m,{"multiple-document":(h=y.multiple)!==null&&h!==void 0?h:{},"single-document":(u=y.single)!==null&&u!==void 0?u:{}}).then(()=>{e.layoutModified.connect(()=>{m.save(e.saveLayout())}),g.changed.connect(v),U.activateSidebarSwitcher(i,e,g,o)})}).catch(g=>{console.error("Fail to load settings for the layout restorer."),console.error(g)}),m;async function v(g){R.deepEqual(g.composite.layout,{single:e.userLayout["single-document"],multiple:e.userLayout["multiple-document"]})||(await q({title:o.__("Information"),body:o.__("User layout customization has changed. You may need to reload JupyterLab to see the changes."),buttons:[L.cancelButton(),L.okButton({label:o.__("Reload")})]})).button.accept&&location.reload()}},autoStart:!0,provides:G},Fe={id:"@jupyterlab/application-extension:router",description:"Provides the URL router",requires:[N.IPaths],activate:(i,n)=>{const{commands:e}=i,d=n.urls.base,a=new Re({base:d,commands:e});return i.started.then(()=>{a.route(),window.addEventListener("popstate",()=>{a.route()})}),a},autoStart:!0,provides:W},$e={id:"@jupyterlab/application-extension:tree-resolver",description:"Provides the tree route resolver",autoStart:!0,requires:[W],optional:[P],provides:N.ITreeResolver,activate:(i,n,e)=>{const d=(e??F).load("jupyterlab"),{commands:a}=i,o=new ve,r=new X,s=new RegExp("/(lab|doc)(/workspaces/[a-zA-Z0-9-_]+)?(/tree/.*)?");o.add(a.addCommand(l.tree,{describedBy:{args:{type:"object",properties:{search:{type:"string",description:d.__("The URL search string containing query parameters")}}}},execute:async m=>{var v;if(o.isDisposed)return;const g=w.URLExt.queryStringToObject((v=m.search)!==null&&v!==void 0?v:""),h=g["file-browser-path"]||"";delete g["file-browser-path"],o.dispose(),r.resolve({browser:h,file:w.PageConfig.getOption("treePath")})}})),o.add(n.register({command:l.tree,pattern:s}));const f=()=>{o.isDisposed||(o.dispose(),r.resolve(null))};return n.routed.connect(f),o.add(new K(()=>{n.routed.disconnect(f)})),{paths:r.promise}}},Je={id:"@jupyterlab/application-extension:notfound",description:"Defines the behavior for not found URL (aka route).",requires:[N.IPaths,W,P],activate:(i,n,e,d)=>{const a=d.load("jupyterlab"),o=n.urls.notFound;if(!o)return;const r=e.base,s=a.__("The path: %1 was not found. JupyterLab redirected to: %2",o,r);e.navigate(""),O(a.__("Path Not Found"),{message:s})},autoStart:!0},Ne={id:"@jupyterlab/application-extension:faviconbusy",description:"Handles the favicon depending on the application status.",requires:[Q],activate:async(i,n)=>{n.busySignal.connect((e,d)=>{const a=document.querySelector(`link[rel="icon"]${d?".idle.favicon":".busy.favicon"}`);if(!a)return;const o=document.querySelector(`link${d?".busy.favicon":".idle.favicon"}`);o&&a!==o&&(a.rel="",o.rel="icon",o.parentNode.replaceChild(o,o))})},autoStart:!0},$={id:"@jupyterlab/application-extension:shell",description:"Provides the JupyterLab shell. It has an extended API compared to `app.shell`.",optional:[J],activate:(i,n)=>{if(!(i.shell instanceof Le))throw new Error(`${$.id} did not find a LabShell instance.`);return n&&n.load($.id).then(e=>{i.shell.updateConfig(e.composite),e.changed.connect(()=>{i.shell.updateConfig(e.composite)})}),i.shell},autoStart:!0,provides:S},ne={id:"@jupyterlab/application-extension:status",description:"Provides the application status.",activate:i=>{if(!(i instanceof k))throw new Error(`${ne.id} must be activated in JupyterLab.`);return i.status},autoStart:!0,provides:Q},ae={id:"@jupyterlab/application-extension:info",description:"Provides the application information.",activate:i=>{if(!(i instanceof k))throw new Error(`${ae.id} must be activated in JupyterLab.`);return i.info},autoStart:!0,provides:k.IInfo},re={id:"@jupyterlab/application-extension:paths",description:"Provides the application paths.",activate:i=>{if(!(i instanceof k))throw new Error(`${re.id} must be activated in JupyterLab.`);return i.paths},autoStart:!0,provides:N.IPaths},Oe={id:"@jupyterlab/application-extension:property-inspector",description:"Provides the property inspector.",autoStart:!0,requires:[S,P],optional:[G],provides:we,activate:(i,n,e,d)=>{const a=e.load("jupyterlab"),o=new Te({shell:n,translator:e});return o.title.icon=ye,o.title.caption=a.__("Property Inspector"),o.id="jp-property-inspector",n.add(o,"right",{rank:100,type:"Property Inspector"}),i.commands.addCommand(l.showPropertyPanel,{label:a.__("Property Inspector"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.activateById(o.id)}}),d&&d.add(o,"jp-property-inspector"),o}},Ue={id:"@jupyterlab/application-extension:logo",description:"Sets the application logo.",autoStart:!0,requires:[S],activate:(i,n)=>{const e=new Y;_e.element({container:e.node,elementPosition:"center",margin:"2px 2px 2px 8px",height:"auto",width:"16px"}),e.id="jp-MainLogo",n.add(e,"top",{rank:0})}},se={id:"@jupyterlab/application-extension:mode-switch",description:"Adds the interface mode switch",requires:[S,P],optional:[Ee,J],activate:(i,n,e,d,a)=>{if(d===null)return;const o=e.load("jupyterlab"),r=new Ie;if(r.id="jp-single-document-mode",r.valueChanged.connect((f,m)=>{n.mode=m.newValue?"single-document":"multiple-document"}),n.modeChanged.connect((f,m)=>{r.value=m==="single-document"}),a){const f=a.load($.id),m=v=>{const g=v.get("startMode").composite;g&&(n.mode=g==="single"?"single-document":"multiple-document")};Promise.all([f,i.restored]).then(([v])=>{m(v)}).catch(v=>{console.error(v.message)})}const s=()=>{const f=i.commands.keyBindings.find(m=>m.command==="application:toggle-mode");if(f){const m=f.keys.map(xe.formatKeystroke).join(", ");r.caption=o.__("Simple Interface (%1)",m)}else r.caption=o.__("Simple Interface")};s(),i.commands.keyBindingChanged.connect(()=>{s()}),r.label=o.__("Simple"),d.registerStatusItem(se.id,{priority:1,item:r,align:"left",rank:-1})},autoStart:!0},Rt=[oe,ie,te,Se,qe,Fe,$e,Je,Ne,$,ne,ae,se,re,Oe,Ue,ee];var U;(function(i){async function n(a){(await q({title:a.__("Information"),body:a.__("Context menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[L.cancelButton(),L.okButton({label:a.__("Reload")})]})).button.accept&&location.reload()}async function e(a,o,r,s,f){var m;const v=f.load("jupyterlab"),g=oe.id;let h=null,u={};function y(c){var b,_;u={};const T=Object.keys(r.plugins).map(E=>{var C,j;const B=(j=(C=r.plugins[E].schema["jupyter.lab.menus"])===null||C===void 0?void 0:C.context)!==null&&j!==void 0?j:[];return u[E]=B,B}).concat([(_=(b=c["jupyter.lab.menus"])===null||b===void 0?void 0:b.context)!==null&&_!==void 0?_:[]]).reduceRight((E,C)=>A.reconcileItems(E,C,!0),[]);c.properties.contextMenu.default=A.reconcileItems(T,c.properties.contextMenu.default,!0).sort((E,C)=>{var j,B;return((j=E.rank)!==null&&j!==void 0?j:1/0)-((B=C.rank)!==null&&B!==void 0?B:1/0)})}r.transform(g,{compose:c=>{var b,_,T,E;h||(h=R.deepCopy(c.schema),y(h));const C=(T=(_=(b=h.properties)===null||b===void 0?void 0:b.contextMenu)===null||_===void 0?void 0:_.default)!==null&&T!==void 0?T:[],j={...c.data.user,contextMenu:(E=c.data.user.contextMenu)!==null&&E!==void 0?E:[]},B={...c.data.composite,contextMenu:A.reconcileItems(C,j.contextMenu,!1)};return c.data={composite:B,user:j},c},fetch:c=>(h||(h=R.deepCopy(c.schema),y(h)),{data:c.data,id:c.id,raw:c.raw,schema:h,version:c.version})});const x=await r.load(g),t=c=>{const b=document.body,_=b.hasAttribute("data-jp-suppress-context-menu"),T=c.get("disabled").composite;_&&!T?b.removeAttribute("data-jp-suppress-context-menu"):T&&!_&&b.setAttribute("data-jp-suppress-context-menu","true")},p=(m=x.composite.contextMenu)!==null&&m!==void 0?m:[];A.filterDisabledItems(p).forEach(c=>{z.addContextItem({rank:H,...c},a,s)}),x.changed.connect(()=>{var c;const b=(c=x.composite.contextMenu)!==null&&c!==void 0?c:[];R.deepEqual(p,b)||n(v),t(x)}),r.pluginChanged.connect(async(c,b)=>{var _,T,E,C;if(b!==g){const j=(_=u[b])!==null&&_!==void 0?_:[],B=(E=(T=r.plugins[b].schema["jupyter.lab.menus"])===null||T===void 0?void 0:T.context)!==null&&E!==void 0?E:[];if(!R.deepEqual(j,B))if(u[b])await n(v);else{u[b]=R.deepCopy(B);const de=(C=A.reconcileItems(B,p,!1,!1))!==null&&C!==void 0?C:[];A.filterDisabledItems(de).forEach(ce=>{z.addContextItem({rank:H,...ce},a,s)})}}}),t(x),o.addCommand(l.toggleContextMenu,{label:v.__("Enable Context Menu"),describedBy:{args:{type:"object",properties:{}}},isToggleable:!0,isToggled:()=>!x.get("disabled").composite,execute:()=>{x.set("disabled",!x.get("disabled").composite)}})}i.loadSettingsContextMenu=e;function d(a,o,r,s){a.commands.addCommand(l.switchSidebar,{label:s.__("Switch Sidebar Side"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const f=a.contextMenuHitTest(u=>!!u.dataset.id);if(!f)return;const m=f.dataset.id,v=document.getElementById("jp-left-stack"),g=document.getElementById(m);let h=null;if(v&&g&&v.contains(g)){const u=V(o.widgets("left"),y=>y.id===m);u&&(h=o.move(u,"right"),o.activateById(u.id))}else{const u=V(o.widgets("right"),y=>y.id===m);u&&(h=o.move(u,"left"),o.activateById(u.id))}h&&r.set("layout",{single:h["single-document"],multiple:h["multiple-document"]}).catch(u=>{console.error("Failed to save user layout customization.",u)})}}),a.commands.commandExecuted.connect((f,m)=>{m.id===l.resetLayout&&r.remove("layout").catch(v=>{console.error("Failed to remove user layout customization.",v)})})}i.activateSidebarSwitcher=d})(U||(U={}));export{H as DEFAULT_CONTEXT_ITEM_RANK,Rt as default};
|