@datalayer/agent-runtimes 1.6.38 → 1.6.40

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.
Files changed (171) hide show
  1. package/dist-embed/chunks/{AgentDetails-Ba3DRn2p.js → AgentDetails-DC7O2VWb.js} +1 -1
  2. package/dist-embed/chunks/{AgentDetailsDialog-CXN0RO_L.js → AgentDetailsDialog-BTJCl-o-.js} +1 -1
  3. package/dist-embed/chunks/{AgentInspector-C66D0b0W.js → AgentInspector-BXqYY8g-.js} +1 -1
  4. package/dist-embed/chunks/{AgentInspectorDialog-DeK96QG1.js → AgentInspectorDialog-dRHZ1p73.js} +1 -1
  5. package/dist-embed/chunks/Avatar-Cv5OpUWu.js +1 -0
  6. package/dist-embed/chunks/{CellSidebarExtension-D7aXShZc.js → CellSidebarExtension-DXPIz0Km.js} +7 -7
  7. package/dist-embed/chunks/{ChatView-2N7PbcDs.js → ChatView-CRitAB2i.js} +4 -4
  8. package/dist-embed/chunks/{CollapsiblePlugin-y8sx_FL8.js → CollapsiblePlugin-BPlfrDQU.js} +1 -1
  9. package/dist-embed/chunks/DatalayerAgentBridge-D01Ek4NE.js +1 -0
  10. package/dist-embed/chunks/{DeckComponent-BnyeYRQq.js → DeckComponent-jvb83Q__.js} +1 -1
  11. package/dist-embed/chunks/{DocumentView-DT4DcdJI.js → DocumentView-BrdFnTVh.js} +3 -3
  12. package/dist-embed/chunks/{EphemeralDocument-CGISw1N3.js → EphemeralDocument-CkPQKyfy.js} +1 -1
  13. package/dist-embed/chunks/{EphemeralNotebook-Dyx-25uN.js → EphemeralNotebook-CiQIC3MG.js} +1 -1
  14. package/dist-embed/chunks/{ExcalidrawComponent-Bl3R2Mic.js → ExcalidrawComponent-D6Cr_b0Z.js} +1 -1
  15. package/dist-embed/chunks/{ExcalidrawModal-DSL5jBhG.js → ExcalidrawModal-Bso7oDbl.js} +1 -1
  16. package/dist-embed/chunks/{JupyterLexicalExtension-C55KdpCk.js → JupyterLexicalExtension-DuD7IV6j.js} +6 -6
  17. package/dist-embed/chunks/{KernelVariables-D3DSQaD3.js → KernelVariables-CXQagESp.js} +2 -2
  18. package/dist-embed/chunks/{NotebookSkeleton-BkzTMhIX.js → NotebookSkeleton-CvO9WylK.js} +1 -1
  19. package/dist-embed/chunks/{NotebookToolSurfaces-Bvj9nwA9.js → NotebookToolSurfaces-B9fkzQNR.js} +1 -1
  20. package/dist-embed/chunks/{NotebookToolbar-BMjQTGrr.js → NotebookToolbar-D36duUxK.js} +1 -1
  21. package/dist-embed/chunks/{NotebookView-DRPnBAI2.js → NotebookView-BrdHwtKH.js} +1 -1
  22. package/dist-embed/chunks/{Output-D-7eUege.js → Output-D9cwH5rg.js} +1 -1
  23. package/dist-embed/chunks/{SandboxDetailsDialog-qJBg2naH.js → SandboxDetailsDialog-BYgLjg3W.js} +1 -1
  24. package/dist-embed/chunks/{SchemaForm-D6BAKaNe.js → SchemaForm-B3qMIWMy.js} +1 -1
  25. package/dist-embed/chunks/{SheetTabs-BLaEhX0D.js → SheetTabs-BR72mzuo.js} +2 -2
  26. package/dist-embed/chunks/{SpreadsheetPreviewView-CaFQASZ4.js → SpreadsheetPreviewView-RA8ASTBV.js} +1 -1
  27. package/dist-embed/chunks/{SpreadsheetView-DesdGLpm.js → SpreadsheetView-BfScdA-X.js} +1 -1
  28. package/dist-embed/chunks/{Toolbar-BncUh2ly.js → Toolbar-BAjGB6b-.js} +1 -1
  29. package/dist-embed/chunks/{WidgetVariableView-B4faSdWW.js → WidgetVariableView-7lvDcxCg.js} +1 -1
  30. package/dist-embed/chunks/{YouTubePlugin-BPUrB3sh.js → YouTubePlugin-BbjCzaT_.js} +1 -1
  31. package/dist-embed/chunks/{ar-SA-G6X2FPQ2-Dq_tRQtR.js → ar-SA-G6X2FPQ2-D4M2b5Lr.js} +1 -1
  32. package/dist-embed/chunks/{az-AZ-76LH7QW2-DQAoJi9C.js → az-AZ-76LH7QW2-Rn7oINhz.js} +1 -1
  33. package/dist-embed/chunks/{bg-BG-XCXSNQG7-CfZUFj2_.js → bg-BG-XCXSNQG7-xztohKe7.js} +1 -1
  34. package/dist-embed/chunks/{bn-BD-2XOGV67Q-DiqZdhkT.js → bn-BD-2XOGV67Q-C7Ssg1_2.js} +1 -1
  35. package/dist-embed/chunks/{ca-ES-6MX7JW3Y-B6c2PcO9.js → ca-ES-6MX7JW3Y-Cr0zd8Z6.js} +1 -1
  36. package/dist-embed/chunks/{celltoolbartracker-BHSFiiuz.js → celltoolbartracker-D1C_kGQL.js} +1 -1
  37. package/dist-embed/chunks/{component-BUTWfiVL.js → component-CmnuUtgX.js} +3 -3
  38. package/dist-embed/chunks/{cs-CZ-2BRQDIVT-ha7l75va.js → cs-CZ-2BRQDIVT-G9tBUkZh.js} +1 -1
  39. package/dist-embed/chunks/{da-DK-5WZEPLOC-C3b8_hbR.js → da-DK-5WZEPLOC-91_vyLpq.js} +1 -1
  40. package/dist-embed/chunks/{de-DE-XR44H4JA-CxWFSn3l.js → de-DE-XR44H4JA-Bb9tvIZa.js} +1 -1
  41. package/dist-embed/chunks/{dist-BF0YFIb6.js → dist-B5YvY_O1.js} +2 -2
  42. package/dist-embed/chunks/{dist-DsEDq9qF.js → dist-BBqWTRLi.js} +1 -1
  43. package/dist-embed/chunks/{dist-DRRbvr4-.js → dist-BC_2VyAM.js} +1 -1
  44. package/dist-embed/chunks/{dist-B_TGJsfl.js → dist-BhfyuH1D.js} +1 -1
  45. package/dist-embed/chunks/{dist-Cfvz7CF7.js → dist-BlIg6ytm.js} +1 -1
  46. package/dist-embed/chunks/{dist-COiURBxL.js → dist-Ct-bkqXx.js} +4 -4
  47. package/dist-embed/chunks/{dist-tosaS6vh.js → dist-CtFgtNKe.js} +1 -1
  48. package/dist-embed/chunks/{dist-B1tXS8Wo.js → dist-DLyNQ3Jj.js} +1 -1
  49. package/dist-embed/chunks/{document-CqNE0DPx.js → document-Dp0KpIjg.js} +1 -1
  50. package/dist-embed/chunks/{drivecontents-D1HzL7Fi.js → drivecontents-BsC6Y2Vl.js} +1 -1
  51. package/dist-embed/chunks/{el-GR-BZB4AONW-iSsL6em8.js → el-GR-BZB4AONW-B5kc3JC5.js} +1 -1
  52. package/dist-embed/chunks/{es-ES-U4NZUMDT-BEbh9GGw.js → es-ES-U4NZUMDT-CpFB18Kf.js} +1 -1
  53. package/dist-embed/chunks/{esm-RWOqF6ly.js → esm-BqqxV5QL.js} +1 -1
  54. package/dist-embed/chunks/{eu-ES-A7QVB2H4-C7o7R9hc.js → eu-ES-A7QVB2H4-CqCALK0Q.js} +1 -1
  55. package/dist-embed/chunks/{fa-IR-HGAKTJCU-DQNpeHKi.js → fa-IR-HGAKTJCU-BzSY8fri.js} +1 -1
  56. package/dist-embed/chunks/{fi-FI-Z5N7JZ37-D083iC1R.js → fi-FI-Z5N7JZ37-DPRPVT_v.js} +1 -1
  57. package/dist-embed/chunks/{fr-FR-RHASNOE6-CUvaq7hG.js → fr-FR-RHASNOE6-Cr4lVSvD.js} +1 -1
  58. package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DU31KRvC.js → gl-ES-HMX3MZ6V-CZUw7dN0.js} +1 -1
  59. package/dist-embed/chunks/{he-IL-6SHJWFNN-bMtU7JNY.js → he-IL-6SHJWFNN-DaU5Odek.js} +1 -1
  60. package/dist-embed/chunks/{hi-IN-IWLTKZ5I-Pma0rKxO.js → hi-IN-IWLTKZ5I-BZ84Rooc.js} +1 -1
  61. package/dist-embed/chunks/{htmlselect-CqXICb9e.js → htmlselect-5N6NdDqL.js} +1 -1
  62. package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Dof3afSc.js → hu-HU-A5ZG7DT2-SZiCSe0B.js} +1 -1
  63. package/dist-embed/chunks/{id-ID-SAP4L64H-ZwqZHBDj.js → id-ID-SAP4L64H-DrRa3vVi.js} +1 -1
  64. package/dist-embed/chunks/{index-9EhrHHj7.js → index-B6-uQd5L.js} +3 -3
  65. package/dist-embed/chunks/{index-9wJFadG-.js → index-CEeyR3FZ.js} +1 -1
  66. package/dist-embed/chunks/{index-CqP3xLL5.js → index-CKWSKbHe.js} +1 -1
  67. package/dist-embed/chunks/{index-BbcMy3Al.js → index-DpN8KK6c.js} +1 -1
  68. package/dist-embed/chunks/{index--S8WFITA.js → index-JmqWOkdt.js} +1 -1
  69. package/dist-embed/chunks/{index-CMhceBby.js → index-PKH5uAl-.js} +1 -1
  70. package/dist-embed/chunks/{index-C7UsrKrP.js → index-hhftmReh.js} +1 -1
  71. package/dist-embed/chunks/{index-6zxBQeM_.js → index-qhxI1VzX.js} +2 -2
  72. package/dist-embed/chunks/{index.esm-xgVG4GIx.js → index.esm-Bvtnemp7.js} +1 -1
  73. package/dist-embed/chunks/{it-IT-JPQ66NNP-C-uM6NhO.js → it-IT-JPQ66NNP-_TEhDIcF.js} +1 -1
  74. package/dist-embed/chunks/{ja-JP-DBVTYXUO-qzihtLnX.js → ja-JP-DBVTYXUO-IJaTVgTb.js} +1 -1
  75. package/dist-embed/chunks/{kaa-6HZHGXH3-Amx_Jfx0.js → kaa-6HZHGXH3-CTksAiLJ.js} +1 -1
  76. package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-BPZfDYRT.js → kab-KAB-ZGHBKWFO-DbA7aOfU.js} +1 -1
  77. package/dist-embed/chunks/{kk-KZ-P5N5QNE5-B83bJ3Yw.js → kk-KZ-P5N5QNE5-Bdzg30AB.js} +1 -1
  78. package/dist-embed/chunks/{km-KH-HSX4SM5Z-BvPDwBVw.js → km-KH-HSX4SM5Z-Bwn2NP1-.js} +1 -1
  79. package/dist-embed/chunks/{ko-KR-MTYHY66A-jpQ_OpzG.js → ko-KR-MTYHY66A-KUaxlo0q.js} +1 -1
  80. package/dist-embed/chunks/{ku-TR-6OUDTVRD-RsfwTm7i.js → ku-TR-6OUDTVRD-DRegsFXo.js} +1 -1
  81. package/dist-embed/chunks/{lib-CFx15o08.js → lib--J3JPp2K.js} +1 -1
  82. package/dist-embed/chunks/{lib-D6X8UF4a.js → lib-9S57siQD.js} +1 -1
  83. package/dist-embed/chunks/{lib-CoK70EWs.js → lib-BpltV-0Y.js} +1 -1
  84. package/dist-embed/chunks/{lib-DGhrI5Uw.js → lib-C2mgrsS1.js} +1 -1
  85. package/dist-embed/chunks/{lib-XSPvEMl2.js → lib-C46CpvHb.js} +1 -1
  86. package/dist-embed/chunks/{lib-D0Q8IWel.js → lib-CHID83aM.js} +1 -1
  87. package/dist-embed/chunks/{lib-Pqxz_81N.js → lib-COJY2oKd.js} +25 -25
  88. package/dist-embed/chunks/{lib-p7v7zGkv.js → lib-CQeoQJWp.js} +1 -1
  89. package/dist-embed/chunks/{lib-CdtiDxdA.js → lib-CjBEbEzm.js} +1 -1
  90. package/dist-embed/chunks/{lib-BBnVlTAj.js → lib-Cpc8Fspj.js} +1 -1
  91. package/dist-embed/chunks/{lib-CsiCQ8oM.js → lib-D7CvuX1J.js} +1 -1
  92. package/dist-embed/chunks/{lib-7ge2Kma3.js → lib-DOnguzJf.js} +1 -1
  93. package/dist-embed/chunks/{lib-UYAFV0Oh.js → lib-Dh9o1esj.js} +1 -1
  94. package/dist-embed/chunks/{lib-DdeRC7g0.js → lib-DrEcjKb5.js} +1 -1
  95. package/dist-embed/chunks/{lib-Dj12Ge-1.js → lib-PbTUB5SW.js} +1 -1
  96. package/dist-embed/chunks/{lib-DMy40SOL.js → lib-QmOij8gS.js} +1 -1
  97. package/dist-embed/chunks/{lib-C7Y61LM1.js → lib-csBGF1d0.js} +1 -1
  98. package/dist-embed/chunks/{lib-DTyx2eLX.js → lib-op0DTswa.js} +1 -1
  99. package/dist-embed/chunks/{lib-CkcilPdy.js → lib-ox3VOLDA.js} +1 -1
  100. package/dist-embed/chunks/{lib-Bi95m_cb.js → lib-rn9DpcHi.js} +1 -1
  101. package/dist-embed/chunks/{lt-LT-XHIRWOB4-qZ_KjUTQ.js → lt-LT-XHIRWOB4-c6CdaS7u.js} +1 -1
  102. package/dist-embed/chunks/{lv-LV-5QDEKY6T-BOKJbljG.js → lv-LV-5QDEKY6T-D9RognOk.js} +1 -1
  103. package/dist-embed/chunks/{model-C2VRzh1c.js → model-DbDJZyri.js} +1 -1
  104. package/dist-embed/chunks/{mr-IN-CRQNXWMA-xba6p6AI.js → mr-IN-CRQNXWMA-ht3P_mrN.js} +1 -1
  105. package/dist-embed/chunks/{my-MM-5M5IBNSE-B_H0GaRX.js → my-MM-5M5IBNSE-CsIkhWRp.js} +1 -1
  106. package/dist-embed/chunks/{nb-NO-T6EIAALU-Ddg4NpHf.js → nb-NO-T6EIAALU-DJw7Uvbx.js} +1 -1
  107. package/dist-embed/chunks/{nl-NL-IS3SIHDZ-DS_Sofox.js → nl-NL-IS3SIHDZ-Dcrp-zwB.js} +1 -1
  108. package/dist-embed/chunks/{nn-NO-6E72VCQL-CYSB6TTi.js → nn-NO-6E72VCQL-DaBAIbM9.js} +1 -1
  109. package/dist-embed/chunks/{oc-FR-POXYY2M6-QrIn4XvF.js → oc-FR-POXYY2M6-DSdMEDCa.js} +1 -1
  110. package/dist-embed/chunks/{pa-IN-N4M65BXN-BbacRfk_.js → pa-IN-N4M65BXN-BMyPito1.js} +1 -1
  111. package/dist-embed/chunks/{percentages-BXMCSKIN-TyKhSuec.js → percentages-BXMCSKIN-pswfKMt2.js} +3 -3
  112. package/dist-embed/chunks/{pl-PL-T2D74RX3-Cn2ehrU4.js → pl-PL-T2D74RX3-CFk8rHgP.js} +1 -1
  113. package/dist-embed/chunks/{plugin-CPCdQWpK.js → plugin-BpyrQiv7.js} +1 -1
  114. package/dist-embed/chunks/{plugin-D7Giq2rW.js → plugin-NcgdmcAO.js} +1 -1
  115. package/dist-embed/chunks/{plugin-AdqytlNC.js → plugin-omHCT1Jk.js} +1 -1
  116. package/dist-embed/chunks/{pt-BR-5N22H2LF-CpNtiBPh.js → pt-BR-5N22H2LF-BYlDcalT.js} +1 -1
  117. package/dist-embed/chunks/{pt-PT-UZXXM6DQ-CcDR3Igq.js → pt-PT-UZXXM6DQ-xXdoFOOb.js} +1 -1
  118. package/dist-embed/chunks/{pyodide-kernel-CN7B4QLg.js → pyodide-kernel-bjLdubpe.js} +1 -1
  119. package/dist-embed/chunks/{pyodide-kernel-extension-CKE5jq9F.js → pyodide-kernel-extension-CshyO6Mm.js} +1 -1
  120. package/dist-embed/chunks/{renderer-8__rsP1H.js → renderer-We9CyR7b.js} +1 -1
  121. package/dist-embed/chunks/{ro-RO-JPDTUUEW-CANXxss1.js → ro-RO-JPDTUUEW-e-URCww-.js} +1 -1
  122. package/dist-embed/chunks/{ru-RU-B4JR7IUQ-B_NkKbWo.js → ru-RU-B4JR7IUQ-CrXBOpZl.js} +1 -1
  123. package/dist-embed/chunks/{server-extension-BvlUJPbJ.js → server-extension-D9R-wwz5.js} +1 -1
  124. package/dist-embed/chunks/{sessions-CgjtuOSm.js → sessions-DdXtI_C1.js} +1 -1
  125. package/dist-embed/chunks/{si-LK-N5RQ5JYF-Da_Bg8Mv.js → si-LK-N5RQ5JYF-DmJK04-A.js} +1 -1
  126. package/dist-embed/chunks/{sk-SK-C5VTKIMK-BKs6l_DT.js → sk-SK-C5VTKIMK-BDHycW1Q.js} +1 -1
  127. package/dist-embed/chunks/{sl-SI-NN7IZMDC-C4TvSXZU.js → sl-SI-NN7IZMDC-Bv9ZQTNb.js} +1 -1
  128. package/dist-embed/chunks/{subset-shared.chunk-BZGTZU2h.js → subset-shared.chunk-B0WCMaCa.js} +1 -1
  129. package/dist-embed/chunks/{subset-worker.chunk-CNJFtQV7.js → subset-worker.chunk-i0SNRqXr.js} +1 -1
  130. package/dist-embed/chunks/{sv-SE-XGPEYMSR-DdKzikID.js → sv-SE-XGPEYMSR-_HPzcZFc.js} +1 -1
  131. package/dist-embed/chunks/{ta-IN-2NMHFXQM-CDzGLNXS.js → ta-IN-2NMHFXQM-Ccvi-lqm.js} +1 -1
  132. package/dist-embed/chunks/{th-TH-HPSO5L25-X4BJ7awj.js → th-TH-HPSO5L25-DvAg4Mv1.js} +1 -1
  133. package/dist-embed/chunks/{tokens-CBhRbpQP.js → tokens-CTXFWLvM.js} +1 -1
  134. package/dist-embed/chunks/{tr-TR-DEFEU3FU-CN69_6_H.js → tr-TR-DEFEU3FU-DJsjfrja.js} +1 -1
  135. package/dist-embed/chunks/{uk-UA-QMV73CPH-KjB2cySI.js → uk-UA-QMV73CPH-3fvexlQA.js} +1 -1
  136. package/dist-embed/chunks/{usePrimerThemeBridge-DyX4EYyN.js → usePrimerThemeBridge-NsTRGuo7.js} +1 -1
  137. package/dist-embed/chunks/{vi-VN-M7AON7JQ-BqVSbGWG.js → vi-VN-M7AON7JQ-BoQ3ayAr.js} +1 -1
  138. package/dist-embed/chunks/{zh-CN-LNUGB5OW-oRPI4tbl.js → zh-CN-LNUGB5OW-Dzh0Ni_q.js} +1 -1
  139. package/dist-embed/chunks/{zh-HK-E62DVLB3-BUlz3y0i.js → zh-HK-E62DVLB3-_1FpSc_d.js} +1 -1
  140. package/dist-embed/chunks/{zh-TW-RAJ6MFWO-NxjUwhr3.js → zh-TW-RAJ6MFWO-CU-R8eF0.js} +1 -1
  141. package/dist-embed/datalayer-app-main.js +154 -154
  142. package/lib/apps/apps/AppRenderer.d.ts +6 -0
  143. package/lib/apps/apps/AppRenderer.js +3 -0
  144. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +10 -3
  145. package/lib/apps/plugins/agents/SandboxSelector.js +1 -1
  146. package/lib/apps/plugins/agents/appLaunch.js +12 -0
  147. package/lib/apps/plugins/agents/handoffRuntime.d.ts +36 -0
  148. package/lib/apps/plugins/agents/handoffRuntime.js +50 -0
  149. package/lib/apps/plugins/agents/plugin.d.ts +20 -6
  150. package/lib/apps/plugins/agents/plugin.js +1 -0
  151. package/lib/apps/plugins/agents/switchable.d.ts +14 -2
  152. package/lib/apps/plugins/agents/switchable.js +13 -3
  153. package/lib/hooks/useAgentRuntimes.d.ts +1 -1
  154. package/lib/hooks/useAgentRuntimes.js +2 -0
  155. package/lib/loop-main.js +27 -25
  156. package/lib/portable/hosts/agentClient.d.ts +9 -9
  157. package/lib/portable/hosts/agentClient.js +34 -8
  158. package/lib/portable/hosts/contracts.json +3 -28
  159. package/lib/portable/hosts/index.d.ts +0 -1
  160. package/lib/portable/hosts/index.js +0 -1
  161. package/lib/runtimes/actions.js +6 -0
  162. package/lib/runtimes/apis.d.ts +8 -0
  163. package/lib/specs/agents/agents.js +1 -1
  164. package/lib/types/agents-lifecycle.d.ts +7 -0
  165. package/lib/types/agentspecs.d.ts +9 -4
  166. package/lib/types/agentspecs.js +7 -1
  167. package/package.json +1 -1
  168. package/dist-embed/chunks/Avatar-MNx1kN3F.js +0 -1
  169. package/dist-embed/chunks/DatalayerAgentBridge-BmoysA2b.js +0 -1
  170. package/lib/portable/hosts/sessionUid.d.ts +0 -9
  171. package/lib/portable/hosts/sessionUid.js +0 -29
@@ -1 +1 @@
1
- import{ao as G,al as z,bb as N,aj as I,ak as p,bT as Y,ap as A,bU as j,af as U,ae as Z,ag as B,ai as D,bS as M}from"../datalayer-app-main.js";const h=1,F=2,K=3,L=4,H=5,J=36,ee=37,te=38,Oe=11,oe=13;function re(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function ae(e){return e==9||e==10||e==13||e==32}let Q=null,V=null,X=0;function W(e,t){let o=e.pos+t;if(V==e&&X==o)return Q;for(;ae(e.peek(t));)t++;let O="";for(;;){let r=e.peek(t);if(!re(r))break;O+=String.fromCharCode(r),t++}return V=e,X=o,Q=O||null}function _(e,t){this.name=e,this.parent=t}const ne=new N({start:null,shift(e,t,o,O){return t==h?new _(W(O,1)||"",e):e},reduce(e,t){return t==Oe&&e?e.parent:e},reuse(e,t,o,O){let r=t.type.id;return r==h||r==oe?new _(W(O,1)||"",e):e},strict:!1}),le=new z((e,t)=>{if(e.next==60){if(e.advance(),e.next==47){e.advance();let o=W(e,0);if(!o)return e.acceptToken(H);if(t.context&&o==t.context.name)return e.acceptToken(F);for(let O=t.context;O;O=O.parent)if(O.name==o)return e.acceptToken(K,-2);e.acceptToken(L)}else if(e.next!=33&&e.next!=63)return e.acceptToken(h)}},{contextual:!0});function y(e,t){return new z(o=>{let O=0,r=t.charCodeAt(0);e:for(;!(o.next<0);o.advance(),O++)if(o.next==r){for(let n=1;n<t.length;n++)if(o.peek(n)!=t.charCodeAt(n))continue e;break}O&&o.acceptToken(e)})}const se=y(J,"-->"),ie=y(ee,"?>"),ce=y(te,"]]>"),$e=I({Text:p.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":p.angleBracket,TagName:p.tagName,"MismatchedCloseTag/TagName":[p.tagName,p.invalid],AttributeName:p.attributeName,AttributeValue:p.attributeValue,Is:p.definitionOperator,"EntityReference CharacterReference":p.character,Comment:p.blockComment,ProcessingInst:p.processingInstruction,DoctypeDecl:p.documentMeta,Cdata:p.special(p.string)}),me=G.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:ne,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[$e],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[le,se,ie,ce,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function T(e,t){let o=t&&t.getChild("TagName");return o?e.sliceString(o.from,o.to):""}function P(e,t){let o=t&&t.firstChild;return!o||o.name!="OpenTag"?"":T(e,o)}function Se(e,t,o){let O=t&&t.getChildren("Attribute").find(n=>n.from<=o&&n.to>=o),r=O&&O.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function C(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function ge(e,t){var o;let O=A(e).resolveInner(t,-1),r=null;for(let n=O;!r&&n.parent;n=n.parent)(n.name=="OpenTag"||n.name=="CloseTag"||n.name=="SelfClosingTag"||n.name=="MismatchedCloseTag")&&(r=n);if(r&&(r.to>t||r.lastChild.type.isError)){let n=r.parent;if(O.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:O.from,context:n}:{type:"openTag",from:O.from,context:C(n)};if(O.name=="AttributeName")return{type:"attrName",from:O.from,context:r};if(O.name=="AttributeValue")return{type:"attrValue",from:O.from,context:r};let s=O==r||O.name=="Attribute"?O.childBefore(t):O;return s?.name=="StartTag"?{type:"openTag",from:t,context:C(n)}:s?.name=="StartCloseTag"&&s.to<=t?{type:"closeTag",from:t,context:n}:s?.name=="Is"?{type:"attrValue",from:t,context:r}:s?{type:"attrName",from:t,context:r}:null}else if(O.name=="StartCloseTag")return{type:"closeTag",from:t,context:O.parent};for(;O.parent&&O.to==t&&!(!((o=O.lastChild)===null||o===void 0)&&o.type.isError);)O=O.parent;return O.name=="Element"||O.name=="Text"||O.name=="Document"?{type:"tag",from:t,context:O.name=="Element"?O:C(O)}:null}class ue{constructor(t,o,O){this.attrs=o,this.attrValues=O,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(r=>({label:r,type:"text"})):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function E(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function R(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function pe(e,t){let o=[],O=[],r=Object.create(null);for(let a of t){let m=E(a);o.push(m),a.global&&O.push(m),a.values&&(r[a.name]=a.values.map(R))}let n=[],s=[],f=Object.create(null);for(let a of e){let m=O,c=r;a.attributes&&(m=m.concat(a.attributes.map(l=>typeof l=="string"?o.find(d=>d.label==l)||{label:l,type:"property"}:(l.values&&(c==r&&(c=Object.create(c)),c[l.name]=l.values.map(R)),E(l)))));let u=new ue(a,m,c);f[u.name]=u,n.push(u),a.top&&s.push(u)}s.length||(s=n);for(let a=0;a<n.length;a++){let m=e[a],c=n[a];if(m.children)for(let u of m.children)f[u]&&c.children.push(f[u]);else c.children=n}return a=>{var m;let{doc:c}=a.state,u=ge(a.state,a.pos);if(!u||u.type=="tag"&&!a.explicit)return null;let{type:l,from:d,context:S}=u;if(l=="openTag"){let i=s,$=P(c,S);if($){let g=f[$];i=g?.children||n}return{from:d,options:i.map(g=>g.completion),validFor:b}}else if(l=="closeTag"){let i=P(c,S);return i?{from:d,to:a.pos+(c.sliceString(a.pos,a.pos+1)==">"?1:0),options:[((m=f[i])===null||m===void 0?void 0:m.closeNameCompletion)||{label:i+">",type:"type"}],validFor:b}:null}else if(l=="attrName"){let i=f[T(c,S)];return{from:d,options:i?.attrs||O,validFor:b}}else if(l=="attrValue"){let i=Se(c,S,d);if(!i)return null;let $=f[T(c,S)],g=($?.attrValues||r)[i];return!g||!g.length?null:{from:d,to:a.pos+(c.sliceString(a.pos,a.pos+1)=='"'?1:0),options:g,validFor:/^"[^"]*"?$/}}else if(l=="tag"){let i=P(c,S),$=f[i],g=[],q=S&&S.lastChild;i&&(!q||q.name!="CloseTag"||T(c,q)!=i)&&g.push($?$.closeCompletion:{label:"</"+i+">",type:"type",boost:2});let v=g.concat(($?.children||(S?n:s)).map(x=>x.openCompletion));if(S&&$?.text.length){let x=S.firstChild;x.to>a.pos-20&&!/\S/.test(a.state.sliceDoc(x.to,a.pos))&&(v=v.concat($.text))}return{from:d,options:v,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const w=Z.define({name:"xml",parser:me.configure({props:[B.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),D.add({Element(e){let t=e.firstChild,o=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:o.name=="CloseTag"?o.from:e.to}}}),M.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function qe(e={}){let t=[w.data.of({autocomplete:pe(e.elements||[],e.attributes||[])})];return e.autoCloseTags!==!1&&t.push(fe),new U(w,t)}function k(e,t,o=e.length){if(!t)return"";let O=t.firstChild,r=O&&O.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,o)):""}const fe=Y.inputHandler.of((e,t,o,O,r)=>{if(e.composing||e.state.readOnly||t!=o||O!=">"&&O!="/"||!w.isActiveAt(e.state,t,-1))return!1;let n=r(),{state:s}=n,f=s.changeByRange(a=>{var m,c,u;let{head:l}=a,d=s.doc.sliceString(l-1,l)==O,S=A(s).resolveInner(l,-1),i;if(d&&O==">"&&S.name=="EndTag"){let $=S.parent;if(((c=(m=$.parent)===null||m===void 0?void 0:m.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(i=k(s.doc,$.parent,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`</${i}>`;return{range:a,changes:{from:l,to:g,insert:q}}}}else if(d&&O=="/"&&S.name=="StartCloseTag"){let $=S.parent;if(S.from==l-2&&((u=$.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(i=k(s.doc,$,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`${i}>`;return{range:j.cursor(l+q.length,-1),changes:{from:l,to:g,insert:q}}}}return{range:a}});return f.changes.empty?!1:(e.dispatch([n,s.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{fe as autoCloseTags,pe as completeFromSchema,qe as xml,w as xmlLanguage};
1
+ import{ao as N,al as z,bb as G,aj as I,ak as p,bM as Y,ap as A,bN as j,af as U,ae as Z,ag as B,ai as D,bL as M}from"../datalayer-app-main.js";const h=1,F=2,L=3,K=4,H=5,J=36,ee=37,te=38,Oe=11,oe=13;function re(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function ae(e){return e==9||e==10||e==13||e==32}let Q=null,V=null,X=0;function W(e,t){let o=e.pos+t;if(V==e&&X==o)return Q;for(;ae(e.peek(t));)t++;let O="";for(;;){let r=e.peek(t);if(!re(r))break;O+=String.fromCharCode(r),t++}return V=e,X=o,Q=O||null}function _(e,t){this.name=e,this.parent=t}const ne=new G({start:null,shift(e,t,o,O){return t==h?new _(W(O,1)||"",e):e},reduce(e,t){return t==Oe&&e?e.parent:e},reuse(e,t,o,O){let r=t.type.id;return r==h||r==oe?new _(W(O,1)||"",e):e},strict:!1}),le=new z((e,t)=>{if(e.next==60){if(e.advance(),e.next==47){e.advance();let o=W(e,0);if(!o)return e.acceptToken(H);if(t.context&&o==t.context.name)return e.acceptToken(F);for(let O=t.context;O;O=O.parent)if(O.name==o)return e.acceptToken(L,-2);e.acceptToken(K)}else if(e.next!=33&&e.next!=63)return e.acceptToken(h)}},{contextual:!0});function y(e,t){return new z(o=>{let O=0,r=t.charCodeAt(0);e:for(;!(o.next<0);o.advance(),O++)if(o.next==r){for(let n=1;n<t.length;n++)if(o.peek(n)!=t.charCodeAt(n))continue e;break}O&&o.acceptToken(e)})}const se=y(J,"-->"),ie=y(ee,"?>"),ce=y(te,"]]>"),$e=I({Text:p.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":p.angleBracket,TagName:p.tagName,"MismatchedCloseTag/TagName":[p.tagName,p.invalid],AttributeName:p.attributeName,AttributeValue:p.attributeValue,Is:p.definitionOperator,"EntityReference CharacterReference":p.character,Comment:p.blockComment,ProcessingInst:p.processingInstruction,DoctypeDecl:p.documentMeta,Cdata:p.special(p.string)}),me=N.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(hO#tO'#CnO(vO&jO'#CnOOOO1G.q1G.qO)UOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO)^O#tO,59YOOOO,59Y,59YOOOO'#C{'#C{O)lO&jO,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.tOOOO-E6y-E6y",stateData:")z~OPQOSVOTWOVWOWWOXWOiXOyPO!QTO!SUO~OvZOx]O~O^`Oz^O~OPQOQcOSVOTWOVWOWWOXWOyPO!QTO!SUO~ORdO~P!SOteO!PgO~OuhO!RjO~O^lOz^O~OvZOxoO~O^qOz^O~O[vO`sOdwOz^O~ORyO~P!SO^{Oz^O~OteO!P}O~OuhO!R!PO~O^!QOz^O~O[!SOz^O~O[!VO`sOd!WOz^O~Oa!YOz^O~Oz^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",goto:"%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:ne,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[$e],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oh)`P;=`<%l(oi)fP;=`<%l$qo)t`VP|W!O`zUOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk+PV{YVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%g~+iast,n![!]-r!c!}-r#R#S-r#T#o-r%W%o-r%p&a-r&b1p-r4U4d-r4e$IS-r$I`$Ib-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~,qQ!Q![,w#l#m-V~,zQ!Q![,w!]!^-Q~-VOX~~-YR!Q![-c!c!i-c#T#Z-c~-fS!Q![-c!]!^-Q!c!i-c#T#Z-c~-ug}!O-r!O!P-r!Q![-r![!]-r!]!^/^!c!}-r#R#S-r#T#o-r$}%O-r%W%o-r%p&a-r&b1p-r1p4U-r4U4d-r4e$IS-r$I`$Ib-r$Je$Jg-r$Kh%#t-r&/x&Et-r&FV;'S-r;'S;:j/c?&r?Ah-r?BY?Mn-r~/cOW~~/fP;=`<%l-rk/rW}bVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^k0eZVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O1W!O!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk1aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a2S!a;'S$q;'S;=`)c<%lO$qk2_X!PQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qm3TZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a3v!a;'S$q;'S;=`)c<%lO$qm4RXdSVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo4{!P`S^QVP|W!O`Or$qrs%gsv$qwx'^x}$q}!O4n!O!P4n!P!Q$q!Q![4n![!]4n!]!^$q!^!_(o!_!c$q!c!}4n!}#R$q#R#S4n#S#T$q#T#o4n#o$}$q$}%O4n%O%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U4n4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Je$q$Je$Jg4n$Jg$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qo8RP;=`<%l4ni8]Y|W!O`Oq(oqr8{rs&osv(owx'}x!a(o!a!b!#U!b;'S(o;'S;=`)]<%lO(oi9S_|W!O`Or(ors&osv(owx'}x}(o}!O:R!O!f(o!f!g;e!g!}(o!}#ODh#O#W(o#W#XLp#X;'S(o;'S;=`)]<%lO(oi:YX|W!O`Or(ors&osv(owx'}x}(o}!O:u!O;'S(o;'S;=`)]<%lO(oi;OV!QP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oi;lX|W!O`Or(ors&osv(owx'}x!q(o!q!r<X!r;'S(o;'S;=`)]<%lO(oi<`X|W!O`Or(ors&osv(owx'}x!e(o!e!f<{!f;'S(o;'S;=`)]<%lO(oi=SX|W!O`Or(ors&osv(owx'}x!v(o!v!w=o!w;'S(o;'S;=`)]<%lO(oi=vX|W!O`Or(ors&osv(owx'}x!{(o!{!|>c!|;'S(o;'S;=`)]<%lO(oi>jX|W!O`Or(ors&osv(owx'}x!r(o!r!s?V!s;'S(o;'S;=`)]<%lO(oi?^X|W!O`Or(ors&osv(owx'}x!g(o!g!h?y!h;'S(o;'S;=`)]<%lO(oi@QY|W!O`Or?yrs@psv?yvwA[wxBdx!`?y!`!aCr!a;'S?y;'S;=`Db<%lO?ya@uV!O`Ov@pvxA[x!`@p!`!aAy!a;'S@p;'S;=`B^<%lO@pPA_TO!`A[!`!aAn!a;'SA[;'S;=`As<%lOA[PAsOiPPAvP;=`<%lA[aBQSiP!O`Ov&ox;'S&o;'S;=`'Q<%lO&oaBaP;=`<%l@pXBiX|WOrBdrsA[svBdvwA[w!`Bd!`!aCU!a;'SBd;'S;=`Cl<%lOBdXC]TiP|WOr'}sv'}w;'S'};'S;=`(c<%lO'}XCoP;=`<%lBdiC{ViP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiDeP;=`<%l?yiDoZ|W!O`Or(ors&osv(owx'}x!e(o!e!fEb!f#V(o#V#WIr#W;'S(o;'S;=`)]<%lO(oiEiX|W!O`Or(ors&osv(owx'}x!f(o!f!gFU!g;'S(o;'S;=`)]<%lO(oiF]X|W!O`Or(ors&osv(owx'}x!c(o!c!dFx!d;'S(o;'S;=`)]<%lO(oiGPX|W!O`Or(ors&osv(owx'}x!v(o!v!wGl!w;'S(o;'S;=`)]<%lO(oiGsX|W!O`Or(ors&osv(owx'}x!c(o!c!dH`!d;'S(o;'S;=`)]<%lO(oiHgX|W!O`Or(ors&osv(owx'}x!}(o!}#OIS#O;'S(o;'S;=`)]<%lO(oiI]V|W!O`yPOr(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(oiIyX|W!O`Or(ors&osv(owx'}x#W(o#W#XJf#X;'S(o;'S;=`)]<%lO(oiJmX|W!O`Or(ors&osv(owx'}x#T(o#T#UKY#U;'S(o;'S;=`)]<%lO(oiKaX|W!O`Or(ors&osv(owx'}x#h(o#h#iK|#i;'S(o;'S;=`)]<%lO(oiLTX|W!O`Or(ors&osv(owx'}x#T(o#T#UH`#U;'S(o;'S;=`)]<%lO(oiLwX|W!O`Or(ors&osv(owx'}x#c(o#c#dMd#d;'S(o;'S;=`)]<%lO(oiMkX|W!O`Or(ors&osv(owx'}x#V(o#V#WNW#W;'S(o;'S;=`)]<%lO(oiN_X|W!O`Or(ors&osv(owx'}x#h(o#h#iNz#i;'S(o;'S;=`)]<%lO(oi! RX|W!O`Or(ors&osv(owx'}x#m(o#m#n! n#n;'S(o;'S;=`)]<%lO(oi! uX|W!O`Or(ors&osv(owx'}x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[le,se,ie,ce,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function T(e,t){let o=t&&t.getChild("TagName");return o?e.sliceString(o.from,o.to):""}function P(e,t){let o=t&&t.firstChild;return!o||o.name!="OpenTag"?"":T(e,o)}function Se(e,t,o){let O=t&&t.getChildren("Attribute").find(n=>n.from<=o&&n.to>=o),r=O&&O.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function C(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function ge(e,t){var o;let O=A(e).resolveInner(t,-1),r=null;for(let n=O;!r&&n.parent;n=n.parent)(n.name=="OpenTag"||n.name=="CloseTag"||n.name=="SelfClosingTag"||n.name=="MismatchedCloseTag")&&(r=n);if(r&&(r.to>t||r.lastChild.type.isError)){let n=r.parent;if(O.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:O.from,context:n}:{type:"openTag",from:O.from,context:C(n)};if(O.name=="AttributeName")return{type:"attrName",from:O.from,context:r};if(O.name=="AttributeValue")return{type:"attrValue",from:O.from,context:r};let s=O==r||O.name=="Attribute"?O.childBefore(t):O;return s?.name=="StartTag"?{type:"openTag",from:t,context:C(n)}:s?.name=="StartCloseTag"&&s.to<=t?{type:"closeTag",from:t,context:n}:s?.name=="Is"?{type:"attrValue",from:t,context:r}:s?{type:"attrName",from:t,context:r}:null}else if(O.name=="StartCloseTag")return{type:"closeTag",from:t,context:O.parent};for(;O.parent&&O.to==t&&!(!((o=O.lastChild)===null||o===void 0)&&o.type.isError);)O=O.parent;return O.name=="Element"||O.name=="Text"||O.name=="Document"?{type:"tag",from:t,context:O.name=="Element"?O:C(O)}:null}class ue{constructor(t,o,O){this.attrs=o,this.attrValues=O,this.children=[],this.name=t.name,this.completion=Object.assign(Object.assign({type:"type"},t.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=t.textContent?t.textContent.map(r=>({label:r,type:"text"})):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function E(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function R(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function pe(e,t){let o=[],O=[],r=Object.create(null);for(let a of t){let m=E(a);o.push(m),a.global&&O.push(m),a.values&&(r[a.name]=a.values.map(R))}let n=[],s=[],f=Object.create(null);for(let a of e){let m=O,c=r;a.attributes&&(m=m.concat(a.attributes.map(l=>typeof l=="string"?o.find(d=>d.label==l)||{label:l,type:"property"}:(l.values&&(c==r&&(c=Object.create(c)),c[l.name]=l.values.map(R)),E(l)))));let u=new ue(a,m,c);f[u.name]=u,n.push(u),a.top&&s.push(u)}s.length||(s=n);for(let a=0;a<n.length;a++){let m=e[a],c=n[a];if(m.children)for(let u of m.children)f[u]&&c.children.push(f[u]);else c.children=n}return a=>{var m;let{doc:c}=a.state,u=ge(a.state,a.pos);if(!u||u.type=="tag"&&!a.explicit)return null;let{type:l,from:d,context:S}=u;if(l=="openTag"){let i=s,$=P(c,S);if($){let g=f[$];i=g?.children||n}return{from:d,options:i.map(g=>g.completion),validFor:b}}else if(l=="closeTag"){let i=P(c,S);return i?{from:d,to:a.pos+(c.sliceString(a.pos,a.pos+1)==">"?1:0),options:[((m=f[i])===null||m===void 0?void 0:m.closeNameCompletion)||{label:i+">",type:"type"}],validFor:b}:null}else if(l=="attrName"){let i=f[T(c,S)];return{from:d,options:i?.attrs||O,validFor:b}}else if(l=="attrValue"){let i=Se(c,S,d);if(!i)return null;let $=f[T(c,S)],g=($?.attrValues||r)[i];return!g||!g.length?null:{from:d,to:a.pos+(c.sliceString(a.pos,a.pos+1)=='"'?1:0),options:g,validFor:/^"[^"]*"?$/}}else if(l=="tag"){let i=P(c,S),$=f[i],g=[],q=S&&S.lastChild;i&&(!q||q.name!="CloseTag"||T(c,q)!=i)&&g.push($?$.closeCompletion:{label:"</"+i+">",type:"type",boost:2});let v=g.concat(($?.children||(S?n:s)).map(x=>x.openCompletion));if(S&&$?.text.length){let x=S.firstChild;x.to>a.pos-20&&!/\S/.test(a.state.sliceDoc(x.to,a.pos))&&(v=v.concat($.text))}return{from:d,options:v,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else return null}}const w=Z.define({name:"xml",parser:me.configure({props:[B.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),D.add({Element(e){let t=e.firstChild,o=e.lastChild;return!t||t.name!="OpenTag"?null:{from:t.to,to:o.name=="CloseTag"?o.from:e.to}}}),M.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function qe(e={}){let t=[w.data.of({autocomplete:pe(e.elements||[],e.attributes||[])})];return e.autoCloseTags!==!1&&t.push(fe),new U(w,t)}function k(e,t,o=e.length){if(!t)return"";let O=t.firstChild,r=O&&O.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,o)):""}const fe=Y.inputHandler.of((e,t,o,O,r)=>{if(e.composing||e.state.readOnly||t!=o||O!=">"&&O!="/"||!w.isActiveAt(e.state,t,-1))return!1;let n=r(),{state:s}=n,f=s.changeByRange(a=>{var m,c,u;let{head:l}=a,d=s.doc.sliceString(l-1,l)==O,S=A(s).resolveInner(l,-1),i;if(d&&O==">"&&S.name=="EndTag"){let $=S.parent;if(((c=(m=$.parent)===null||m===void 0?void 0:m.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(i=k(s.doc,$.parent,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`</${i}>`;return{range:a,changes:{from:l,to:g,insert:q}}}}else if(d&&O=="/"&&S.name=="StartCloseTag"){let $=S.parent;if(S.from==l-2&&((u=$.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(i=k(s.doc,$,l))){let g=l+(s.doc.sliceString(l,l+1)===">"?1:0),q=`${i}>`;return{range:j.cursor(l+q.length,-1),changes:{from:l,to:g,insert:q}}}}return{range:a}});return f.changes.empty?!1:(e.dispatch([n,s.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});export{fe as autoCloseTags,pe as completeFromSchema,qe as xml,w as xmlLanguage};
@@ -1,4 +1,4 @@
1
- import{as as Sr,a9 as U,aD as Tr,aE as _n,aF as Er,aw as Pt,bg as Rr,ck as nt}from"../datalayer-app-main.js";var ot={exports:{}};ot.exports;var vn;function Dr(){return vn||(vn=1,(function(n,e){var t=200,r="__lodash_hash_undefined__",a=800,s=16,d=9007199254740991,u="[object Arguments]",c="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",_="[object Date]",v="[object Error]",E="[object Function]",O="[object GeneratorFunction]",J="[object Map]",$="[object Number]",Y="[object Null]",oe="[object Object]",Pe="[object Proxy]",be="[object RegExp]",ke="[object Set]",Ce="[object String]",we="[object Undefined]",Se="[object WeakMap]",Te="[object ArrayBuffer]",Ve="[object DataView]",Z="[object Float32Array]",R="[object Float64Array]",f="[object Int8Array]",T="[object Int16Array]",D="[object Int32Array]",S="[object Uint8Array]",M="[object Uint8ClampedArray]",kt="[object Uint16Array]",At="[object Uint32Array]",It=/[\\^$.*+?()[\]{}|]/g,Ae=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,A={};A[Z]=A[R]=A[f]=A[T]=A[D]=A[S]=A[M]=A[kt]=A[At]=!0,A[u]=A[c]=A[Te]=A[p]=A[Ve]=A[_]=A[v]=A[E]=A[J]=A[$]=A[oe]=A[be]=A[ke]=A[Ce]=A[Se]=!1;var Ee=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Ge=typeof self=="object"&&self&&self.Object===Object&&self,ue=Ee||Ge||Function("return this")(),Je=e&&!e.nodeType&&e,ne=Je&&!0&&n&&!n.nodeType&&n,ae=ne&&ne.exports===Je,Re=ae&&Ee.process,ie=(function(){try{var i=ne&&ne.require&&ne.require("util").types;return i||Re&&Re.binding&&Re.binding("util")}catch{}})(),j=ie&&ie.isTypedArray;function fe(i,l,g){switch(g.length){case 0:return i.call(l);case 1:return i.call(l,g[0]);case 2:return i.call(l,g[0],g[1]);case 3:return i.call(l,g[0],g[1],g[2])}return i.apply(l,g)}function V(i,l){for(var g=-1,C=Array(i);++g<i;)C[g]=l(g);return C}function le(i){return function(l){return i(l)}}function Ke(i,l){return i?.[l]}function dt(i,l){return function(g){return i(l(g))}}var ht=Array.prototype,ft=Function.prototype,je=Object.prototype,se=ue["__core-js_shared__"],qe=ft.toString,de=je.hasOwnProperty,gt=(function(){var i=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),pt=je.toString,jt=qe.call(Object),mt=RegExp("^"+qe.call(de).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=ae?ue.Buffer:void 0,ge=ue.Symbol,Ze=ue.Uint8Array;Fe&&Fe.allocUnsafe;var _t=dt(Object.getPrototypeOf,Object),vt=Object.create,yt=je.propertyIsEnumerable,bt=ht.splice,pe=ge?ge.toStringTag:void 0,Ye=(function(){try{var i=Ht(Object,"defineProperty");return i({},"",{}),i}catch{}})(),qt=Fe?Fe.isBuffer:void 0,Ct=Math.max,Ft=Date.now,wt=Ht(ue,"Map"),ee=Ht(Object,"create"),Ut=(function(){function i(){}return function(l){if(!$e(l))return{};if(vt)return vt(l);i.prototype=l;var g=new i;return i.prototype=void 0,g}})();function me(i){var l=-1,g=i==null?0:i.length;for(this.clear();++l<g;){var C=i[l];this.set(C[0],C[1])}}function Qe(){this.__data__=ee?ee(null):{},this.size=0}function $t(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Xe(i){var l=this.__data__;if(ee){var g=l[i];return g===r?void 0:g}return de.call(l,i)?l[i]:void 0}function xt(i){var l=this.__data__;return ee?l[i]!==void 0:de.call(l,i)}function De(i,l){var g=this.__data__;return this.size+=this.has(i)?0:1,g[i]=ee&&l===void 0?r:l,this}me.prototype.clear=Qe,me.prototype.delete=$t,me.prototype.get=Xe,me.prototype.has=xt,me.prototype.set=De;function X(i){var l=-1,g=i==null?0:i.length;for(this.clear();++l<g;){var C=i[l];this.set(C[0],C[1])}}function zt(){this.__data__=[],this.size=0}function Bt(i){var l=this.__data__,g=Q(l,i);if(g<0)return!1;var C=l.length-1;return g==C?l.pop():bt.call(l,g,1),--this.size,!0}function Ue(i){var l=this.__data__,g=Q(l,i);return g<0?void 0:l[g][1]}function St(i){return Q(this.__data__,i)>-1}function Tt(i,l){var g=this.__data__,C=Q(g,i);return C<0?(++this.size,g.push([i,l])):g[C][1]=l,this}X.prototype.clear=zt,X.prototype.delete=Bt,X.prototype.get=Ue,X.prototype.has=St,X.prototype.set=Tt;function he(i){var l=-1,g=i==null?0:i.length;for(this.clear();++l<g;){var C=i[l];this.set(C[0],C[1])}}function Et(){this.size=0,this.__data__={hash:new me,map:new(wt||X),string:new me}}function Oe(i){var l=Dt(this,i).delete(i);return this.size-=l?1:0,l}function o(i){return Dt(this,i).get(i)}function m(i){return Dt(this,i).has(i)}function y(i,l){var g=Dt(this,i),C=g.size;return g.set(i,l),this.size+=g.size==C?0:1,this}he.prototype.clear=Et,he.prototype.delete=Oe,he.prototype.get=o,he.prototype.has=m,he.prototype.set=y;function b(i){var l=this.__data__=new X(i);this.size=l.size}function q(){this.__data__=new X,this.size=0}function I(i){var l=this.__data__,g=l.delete(i);return this.size=l.size,g}function z(i){return this.__data__.get(i)}function H(i){return this.__data__.has(i)}function L(i,l){var g=this.__data__;if(g instanceof X){var C=g.__data__;if(!wt||C.length<t-1)return C.push([i,l]),this.size=++g.size,this;g=this.__data__=new he(C)}return g.set(i,l),this.size=g.size,this}b.prototype.clear=q,b.prototype.delete=I,b.prototype.get=z,b.prototype.has=H,b.prototype.set=L;function x(i,l){var g=Jt(i),C=!g&&Gt(i),N=!g&&!C&&dn(i),F=!g&&!C&&!N&&fn(i),B=g||C||N||F,k=B?V(i.length,String):[],W=k.length;for(var ce in i)B&&(ce=="length"||N&&(ce=="offset"||ce=="parent")||F&&(ce=="buffer"||ce=="byteLength"||ce=="byteOffset")||un(ce,W))||k.push(ce);return k}function P(i,l,g){(g!==void 0&&!Ot(i[l],g)||g===void 0&&!(l in i))&&te(i,l,g)}function G(i,l,g){var C=i[l];(!(de.call(i,l)&&Ot(C,g))||g===void 0&&!(l in i))&&te(i,l,g)}function Q(i,l){for(var g=i.length;g--;)if(Ot(i[g][0],l))return g;return-1}function te(i,l,g){l=="__proto__"&&Ye?Ye(i,l,{configurable:!0,enumerable:!0,value:g,writable:!0}):i[l]=g}var Wt=sr();function Rt(i){return i==null?i===void 0?we:Y:pe&&pe in Object(i)?or(i):hr(i)}function an(i){return et(i)&&Rt(i)==u}function Gn(i){if(!$e(i)||lr(i))return!1;var l=Qt(i)?mt:Ae;return l.test(mr(i))}function Jn(i){return et(i)&&hn(i.length)&&!!A[Rt(i)]}function Yn(i){if(!$e(i))return dr(i);var l=ln(i),g=[];for(var C in i)C=="constructor"&&(l||!de.call(i,C))||g.push(C);return g}function cn(i,l,g,C,N){i!==l&&Wt(l,function(F,B){if(N||(N=new b),$e(F))Qn(i,l,B,g,cn,C,N);else{var k=C?C(Vt(i,B),F,B+"",i,l,N):void 0;k===void 0&&(k=F),P(i,B,k)}},gn)}function Qn(i,l,g,C,N,F,B){var k=Vt(i,g),W=Vt(l,g),ce=B.get(W);if(ce){P(i,g,ce);return}var re=F?F(k,W,g+"",i,l,B):void 0,tt=re===void 0;if(tt){var Kt=Jt(W),Zt=!Kt&&dn(W),mn=!Kt&&!Zt&&fn(W);re=W,Kt||Zt||mn?Jt(k)?re=k:_r(k)?re=nr(k):Zt?(tt=!1,re=Xn(W)):mn?(tt=!1,re=tr(W)):re=[]:vr(W)||Gt(W)?(re=k,Gt(k)?re=yr(k):(!$e(k)||Qt(k))&&(re=ar(W))):tt=!1}tt&&(B.set(W,re),N(re,W,C,F,B),B.delete(W)),P(i,g,re)}function Kn(i,l){return gr(fr(i,l,pn),i+"")}var Zn=Ye?function(i,l){return Ye(i,"toString",{configurable:!0,enumerable:!1,value:Cr(l),writable:!0})}:pn;function Xn(i,l){return i.slice()}function er(i){var l=new i.constructor(i.byteLength);return new Ze(l).set(new Ze(i)),l}function tr(i,l){var g=er(i.buffer);return new i.constructor(g,i.byteOffset,i.length)}function nr(i,l){var g=-1,C=i.length;for(l||(l=Array(C));++g<C;)l[g]=i[g];return l}function rr(i,l,g,C){var N=!g;g||(g={});for(var F=-1,B=l.length;++F<B;){var k=l[F],W=void 0;W===void 0&&(W=i[k]),N?te(g,k,W):G(g,k,W)}return g}function ir(i){return Kn(function(l,g){var C=-1,N=g.length,F=N>1?g[N-1]:void 0,B=N>2?g[2]:void 0;for(F=i.length>3&&typeof F=="function"?(N--,F):void 0,B&&cr(g[0],g[1],B)&&(F=N<3?void 0:F,N=1),l=Object(l);++C<N;){var k=g[C];k&&i(l,k,C,F)}return l})}function sr(i){return function(l,g,C){for(var N=-1,F=Object(l),B=C(l),k=B.length;k--;){var W=B[++N];if(g(F[W],W,F)===!1)break}return l}}function Dt(i,l){var g=i.__data__;return ur(l)?g[typeof l=="string"?"string":"hash"]:g.map}function Ht(i,l){var g=Ke(i,l);return Gn(g)?g:void 0}function or(i){var l=de.call(i,pe),g=i[pe];try{i[pe]=void 0;var C=!0}catch{}var N=pt.call(i);return C&&(l?i[pe]=g:delete i[pe]),N}function ar(i){return typeof i.constructor=="function"&&!ln(i)?Ut(_t(i)):{}}function un(i,l){var g=typeof i;return l=l??d,!!l&&(g=="number"||g!="symbol"&&Ie.test(i))&&i>-1&&i%1==0&&i<l}function cr(i,l,g){if(!$e(g))return!1;var C=typeof l;return(C=="number"?Yt(g)&&un(l,g.length):C=="string"&&l in g)?Ot(g[l],i):!1}function ur(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function lr(i){return!!gt&&gt in i}function ln(i){var l=i&&i.constructor,g=typeof l=="function"&&l.prototype||je;return i===g}function dr(i){var l=[];if(i!=null)for(var g in Object(i))l.push(g);return l}function hr(i){return pt.call(i)}function fr(i,l,g){return l=Ct(l===void 0?i.length-1:l,0),function(){for(var C=arguments,N=-1,F=Ct(C.length-l,0),B=Array(F);++N<F;)B[N]=C[l+N];N=-1;for(var k=Array(l+1);++N<l;)k[N]=C[N];return k[l]=g(B),fe(i,this,k)}}function Vt(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var gr=pr(Zn);function pr(i){var l=0,g=0;return function(){var C=Ft(),N=s-(C-g);if(g=C,N>0){if(++l>=a)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}function mr(i){if(i!=null){try{return qe.call(i)}catch{}try{return i+""}catch{}}return""}function Ot(i,l){return i===l||i!==i&&l!==l}var Gt=an((function(){return arguments})())?an:function(i){return et(i)&&de.call(i,"callee")&&!yt.call(i,"callee")},Jt=Array.isArray;function Yt(i){return i!=null&&hn(i.length)&&!Qt(i)}function _r(i){return et(i)&&Yt(i)}var dn=qt||wr;function Qt(i){if(!$e(i))return!1;var l=Rt(i);return l==E||l==O||l==h||l==Pe}function hn(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=d}function $e(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function et(i){return i!=null&&typeof i=="object"}function vr(i){if(!et(i)||Rt(i)!=oe)return!1;var l=_t(i);if(l===null)return!0;var g=de.call(l,"constructor")&&l.constructor;return typeof g=="function"&&g instanceof g&&qe.call(g)==jt}var fn=j?le(j):Jn;function yr(i){return rr(i,gn(i))}function gn(i){return Yt(i)?x(i):Yn(i)}var br=ir(function(i,l,g,C){cn(i,l,g,C)});function Cr(i){return function(){return i}}function pn(i){return i}function wr(){return!1}n.exports=br})(ot,ot.exports)),ot.exports}var Or=Dr();const Fn=Sr(Or);class Mr{constructor(e){this._widgetAdapter=e.widgetAdapter,this._extensions=e.extensions,e.editor.ready().then(t=>{this._injectExtensions(e.editor)})}dispose(){this.isDisposed||(this.isDisposed=!0,U.clearData(this))}_injectExtensions(e){const t=e.getEditor();!t||t.isDisposed||this._extensions.forEach(r=>{const a=r.factory({path:this._widgetAdapter.widget.context.path,editor:e,widgetAdapter:this._widgetAdapter,model:t.model,inline:!0});a&&t.injectExtension(a.instance(t))})}}const yn=Er.createButton,bn={"text/x-rsrc":"r","text/x-r-source":"r","text/x-ipython":"python"};class ei{constructor(e,t){this.widget=e,this.options=t,this._adapterConnected=new U(this),this._activeEditorChanged=new U(this),this._editorAdded=new U(this),this._editorRemoved=new U(this),this._disposed=new U(this),this._isDisposed=!1,this._virtualDocument=null,this._connectionManager=t.connectionManager,this._isConnected=!1,this._trans=(t.translator||Tr).load("jupyterlab"),this.widget.context.saveState.connect(this.onSaveState,this),this.connectionManager.closed.connect(this.onConnectionClosed,this),this.widget.disposed.connect(this.dispose,this),this._editorToAdapter=new WeakMap,this.editorAdded.connect(this._onEditorAdded,this),this.editorRemoved.connect(this._onEditorRemoved,this),this._connectionManager.languageServerManager.sessionsChanged.connect(this._onLspSessionOrFeatureChanged,this),this.options.featureManager.featureRegistered.connect(this._onLspSessionOrFeatureChanged,this)}get isDisposed(){return this._isDisposed}get hasMultipleEditors(){return this.editors.length>1}get widgetId(){return this.widget.id}get language(){if(bn.hasOwnProperty(this.mimeType))return bn[this.mimeType];{let e=this.mimeType.split(";")[0],[t,r]=e.split("/");return t==="application"||t==="text"?r.startsWith("x-")?r.substring(2):r:this.mimeType}}get adapterConnected(){return this._adapterConnected}get activeEditorChanged(){return this._activeEditorChanged}get disposed(){return this._disposed}get editorAdded(){return this._editorAdded}get editorRemoved(){return this._editorRemoved}get isConnected(){return this._isConnected}get connectionManager(){return this._connectionManager}get trans(){return this._trans}get updateFinished(){return this._updateFinished}get virtualDocument(){return this._virtualDocument}onConnectionClosed(e,{virtualDocument:t}){t===this.virtualDocument&&this.dispose()}dispose(){this._isDisposed||(this.editorAdded.disconnect(this._onEditorAdded,this),this.editorRemoved.disconnect(this._onEditorRemoved,this),this._connectionManager.languageServerManager.sessionsChanged.disconnect(this._onLspSessionOrFeatureChanged,this),this.options.featureManager.featureRegistered.disconnect(this._onLspSessionOrFeatureChanged,this),this._isDisposed=!0,this.disconnect(),this._virtualDocument=null,this._disposed.emit(),U.clearData(this))}disconnect(){var e,t;const r=(e=this.virtualDocument)===null||e===void 0?void 0:e.uri,{model:a}=this.widget.context;r&&this.connectionManager.unregisterDocument(r),a.contentChanged.disconnect(this._onContentChanged,this);for(let{ceEditor:s}of this.editors)this._editorRemoved.emit({editor:s});(t=this.virtualDocument)===null||t===void 0||t.dispose()}updateDocuments(){return this._isDisposed?(console.warn("Cannot update documents: adapter disposed"),Promise.reject("Cannot update documents: adapter disposed")):this.virtualDocument.updateManager.updateDocuments(this.editors)}documentChanged(e,t,r=!1){if(this._isDisposed){console.warn("Cannot swap document: adapter disposed");return}let a=this.connectionManager.connections.get(e.uri);if(!a?.isReady){console.log("Skipping document update signal: connection not ready");return}a.sendFullTextChange(e.value,e.documentInfo)}reloadConnection(){this.virtualDocument!==null&&(this.disconnect(),this.initVirtual(),this.connectDocument(this.virtualDocument,!0).catch(console.warn))}onSaveState(e,t){if(this.virtualDocument!==null&&t==="completed"){const r=[this.virtualDocument];for(let a of r){let s=this.connectionManager.connections.get(a.uri);if(s){s.sendSaved(a.documentInfo);for(let d of a.foreignDocuments.values())r.push(d)}}}}async onConnected(e){let{virtualDocument:t}=e;this._adapterConnected.emit(e),this._isConnected=!0;try{await this.updateDocuments()}catch(r){console.warn("Could not update documents",r);return}this.documentChanged(t,t,!0),e.connection.serverNotifications["$/logTrace"].connect((r,a)=>{console.log(e.connection.serverIdentifier,"trace",t.uri,a)},this),e.connection.serverNotifications["window/logMessage"].connect((r,a)=>{console.log(r.serverIdentifier+": "+a.message)},this),e.connection.serverNotifications["window/showMessage"].connect((r,a)=>{_n({title:this.trans.__("Message from ")+r.serverIdentifier,body:a.message})},this),e.connection.serverRequests["window/showMessageRequest"].setHandler(async r=>{const a=r.actions,s=a?a.map(c=>yn({label:c.title})):[yn({label:this.trans.__("Dismiss")})],d=await _n({title:this.trans.__("Message from ")+e.connection.serverIdentifier,body:r.message,buttons:s}),u=s.indexOf(d.button);return u===-1?null:a?a[u]:null})}async connectDocument(e,t=!1){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);const r=await this._connect(e).catch(console.error);r&&r.connection&&(e.changed.connect(this.documentChanged,this),t&&r.connection.sendOpenWhenReady(e.documentInfo))}initVirtual(){var e;(e=this._virtualDocument)===null||e===void 0||e.dispose(),this._virtualDocument=this.createVirtualDocument(),this._onLspSessionOrFeatureChanged()}async onForeignDocumentOpened(e,t){const{foreignDocument:r}=t;await this.connectDocument(r,!0),r.foreignDocumentClosed.connect(this._onForeignDocumentClosed,this)}_onEditorAdded(e,t){const{editor:r}=t,a=new Mr({editor:r,widgetAdapter:this,extensions:this.options.featureManager.extensionFactories()});this._editorToAdapter.set(r,a)}_onEditorRemoved(e,t){const{editor:r}=t,a=this._editorToAdapter.get(r);a?.dispose(),this._editorToAdapter.delete(r)}_onForeignDocumentClosed(e,t){const{foreignDocument:r}=t;r.foreignDocumentClosed.disconnect(this._onForeignDocumentClosed,this),r.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this),r.changed.disconnect(this.documentChanged,this)}async _connect(e){let t=e.language,r={textDocument:{synchronization:{dynamicRegistration:!0,willSave:!1,didSave:!0,willSaveWaitUntil:!1}},workspace:{didChangeConfiguration:{dynamicRegistration:!0}}};r=Fn(r,this.options.featureManager.clientCapabilities());let a={capabilities:r,virtualDocument:e,language:t,hasLspSupportedFile:e.hasLspSupportedFile},s=await this.connectionManager.connect(a);if(s)return await this.onConnected({virtualDocument:e,connection:s}),{connection:s,virtualDocument:e}}async _onContentChanged(e){const t=this.updateDocuments();if(!t){console.warn("Could not update documents");return}this._updateFinished=t.catch(console.warn),await this.updateFinished}_shouldUpdateVirtualDocument(){const{languageServerManager:e}=this.connectionManager;return e.isEnabled&&this.options.featureManager.features.length>0}_onLspSessionOrFeatureChanged(){if(!this._virtualDocument)return;const{model:e}=this.widget.context;this._shouldUpdateVirtualDocument()?e.contentChanged.connect(this._onContentChanged,this):e.contentChanged.disconnect(this._onContentChanged,this)}}var Cn;(function(n){n.URL_NS="lsp"})(Cn||(Cn={}));const ti=new Pt("@jupyterlab/lsp:ILSPDocumentConnectionManager","Provides the virtual documents and language server connections service."),ni=new Pt("@jupyterlab/lsp:ILSPFeatureManager","Provides the language server feature manager. This token is required to register new client capabilities."),ri=new Pt("@jupyterlab/lsp:ILSPCodeExtractorsManager","Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document."),ii=new Pt("@jupyterlab/lsp:IWidgetLSPAdapterTracker","Provides the WidgetLSPAdapter tracker. This token is required in your extension to track WidgetLSPAdapters.");var Me;(function(n){(function(e){e.PUBLISH_DIAGNOSTICS="textDocument/publishDiagnostics",e.SHOW_MESSAGE="window/showMessage",e.LOG_TRACE="$/logTrace",e.LOG_MESSAGE="window/logMessage"})(n.ServerNotification||(n.ServerNotification={})),(function(e){e.DID_CHANGE="textDocument/didChange",e.DID_CHANGE_CONFIGURATION="workspace/didChangeConfiguration",e.DID_OPEN="textDocument/didOpen",e.DID_SAVE="textDocument/didSave",e.INITIALIZED="initialized",e.SET_TRACE="$/setTrace"})(n.ClientNotification||(n.ClientNotification={})),(function(e){e.REGISTER_CAPABILITY="client/registerCapability",e.SHOW_MESSAGE_REQUEST="window/showMessageRequest",e.UNREGISTER_CAPABILITY="client/unregisterCapability",e.WORKSPACE_CONFIGURATION="workspace/configuration"})(n.ServerRequest||(n.ServerRequest={})),(function(e){e.CODE_ACTION="textDocument/codeAction",e.COMPLETION="textDocument/completion",e.COMPLETION_ITEM_RESOLVE="completionItem/resolve",e.DEFINITION="textDocument/definition",e.DOCUMENT_COLOR="textDocument/documentColor",e.DOCUMENT_HIGHLIGHT="textDocument/documentHighlight",e.DOCUMENT_SYMBOL="textDocument/documentSymbol",e.HOVER="textDocument/hover",e.IMPLEMENTATION="textDocument/implementation",e.INITIALIZE="initialize",e.REFERENCES="textDocument/references",e.RENAME="textDocument/rename",e.SIGNATURE_HELP="textDocument/signatureHelp",e.TYPE_DEFINITION="textDocument/typeDefinition",e.LINKED_EDITING_RANGE="textDocument/linkedEditingRange",e.INLINE_VALUE="textDocument/inlineValue",e.INLAY_HINT="textDocument/inlayHint",e.WORKSPACE_SYMBOL="workspace/symbol",e.WORKSPACE_SYMBOL_RESOLVE="workspaceSymbol/resolve",e.FORMATTING="textDocument/formatting",e.RANGE_FORMATTING="textDocument/rangeFormatting"})(n.ClientRequest||(n.ClientRequest={}))})(Me||(Me={}));async function Un(n){return new Promise(e=>{setTimeout(()=>{e()},n)})}function at(n,e=35,t=50,r=a=>a){return(async()=>{let a=0;for(;n()!==!0;){if(a+=1,e!==-1&&a>e)throw Error("Too many retrials");t=r(t),await Un(t)}return n})()}function Lr(n){const e=[];for(let t in n){const r=Nr(t.split("."),n[t]);e.push(r)}return Fn({},...e)}const Nr=(n,e)=>{const t=Object.create(null);let r=t;return n.forEach((a,s)=>{r[a]=Object.create(null),s===n.length-1?r[a]=e:r=r[a]}),t};class Pr extends Map{constructor(e,t){super(t),this.defaultFactory=e}get(e){return this.getOrCreate(e)}getOrCreate(e,...t){if(this.has(e))return super.get(e);{let r=this.defaultFactory(e,...t);return this.set(e,r),r}}}function $n(n,e){const t=JSON.parse(JSON.stringify(n)),{method:r,registerOptions:a}=e,s=r.substring(13)+"Provider";if(s)a?t[s]=JSON.parse(JSON.stringify(a)):t[s]=!0;else return console.warn("Could not register server capability.",e),null;return t}function xn(n,e){const t=JSON.parse(JSON.stringify(n)),{method:r}=e,a=r.substring(13)+"Provider";return delete t[a],t}var xe={},Mt={},Xt={},w={},K={},wn;function ut(){if(wn)return K;wn=1,Object.defineProperty(K,"__esModule",{value:!0}),K.stringArray=K.array=K.func=K.error=K.number=K.string=K.boolean=void 0;function n(u){return u===!0||u===!1}K.boolean=n;function e(u){return typeof u=="string"||u instanceof String}K.string=e;function t(u){return typeof u=="number"||u instanceof Number}K.number=t;function r(u){return u instanceof Error}K.error=r;function a(u){return typeof u=="function"}K.func=a;function s(u){return Array.isArray(u)}K.array=s;function d(u){return s(u)&&u.every(c=>e(c))}return K.stringArray=d,K}var Sn;function sn(){if(Sn)return w;Sn=1,Object.defineProperty(w,"__esModule",{value:!0}),w.Message=w.NotificationType9=w.NotificationType8=w.NotificationType7=w.NotificationType6=w.NotificationType5=w.NotificationType4=w.NotificationType3=w.NotificationType2=w.NotificationType1=w.NotificationType0=w.NotificationType=w.RequestType9=w.RequestType8=w.RequestType7=w.RequestType6=w.RequestType5=w.RequestType4=w.RequestType3=w.RequestType2=w.RequestType1=w.RequestType=w.RequestType0=w.AbstractMessageSignature=w.ParameterStructures=w.ResponseError=w.ErrorCodes=void 0;const n=ut();var e;(function(R){R.ParseError=-32700,R.InvalidRequest=-32600,R.MethodNotFound=-32601,R.InvalidParams=-32602,R.InternalError=-32603,R.jsonrpcReservedErrorRangeStart=-32099,R.serverErrorStart=-32099,R.MessageWriteError=-32099,R.MessageReadError=-32098,R.PendingResponseRejected=-32097,R.ConnectionInactive=-32096,R.ServerNotInitialized=-32002,R.UnknownErrorCode=-32001,R.jsonrpcReservedErrorRangeEnd=-32e3,R.serverErrorEnd=-32e3})(e||(w.ErrorCodes=e={}));class t extends Error{constructor(f,T,D){super(T),this.code=n.number(f)?f:e.UnknownErrorCode,this.data=D,Object.setPrototypeOf(this,t.prototype)}toJson(){const f={code:this.code,message:this.message};return this.data!==void 0&&(f.data=this.data),f}}w.ResponseError=t;class r{constructor(f){this.kind=f}static is(f){return f===r.auto||f===r.byName||f===r.byPosition}toString(){return this.kind}}w.ParameterStructures=r,r.auto=new r("auto"),r.byPosition=new r("byPosition"),r.byName=new r("byName");class a{constructor(f,T){this.method=f,this.numberOfParams=T}get parameterStructures(){return r.auto}}w.AbstractMessageSignature=a;class s extends a{constructor(f){super(f,0)}}w.RequestType0=s;class d extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.RequestType=d;class u extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.RequestType1=u;class c extends a{constructor(f){super(f,2)}}w.RequestType2=c;class h extends a{constructor(f){super(f,3)}}w.RequestType3=h;class p extends a{constructor(f){super(f,4)}}w.RequestType4=p;class _ extends a{constructor(f){super(f,5)}}w.RequestType5=_;class v extends a{constructor(f){super(f,6)}}w.RequestType6=v;class E extends a{constructor(f){super(f,7)}}w.RequestType7=E;class O extends a{constructor(f){super(f,8)}}w.RequestType8=O;class J extends a{constructor(f){super(f,9)}}w.RequestType9=J;class $ extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.NotificationType=$;class Y extends a{constructor(f){super(f,0)}}w.NotificationType0=Y;class oe extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.NotificationType1=oe;class Pe extends a{constructor(f){super(f,2)}}w.NotificationType2=Pe;class be extends a{constructor(f){super(f,3)}}w.NotificationType3=be;class ke extends a{constructor(f){super(f,4)}}w.NotificationType4=ke;class Ce extends a{constructor(f){super(f,5)}}w.NotificationType5=Ce;class we extends a{constructor(f){super(f,6)}}w.NotificationType6=we;class Se extends a{constructor(f){super(f,7)}}w.NotificationType7=Se;class Te extends a{constructor(f){super(f,8)}}w.NotificationType8=Te;class Ve extends a{constructor(f){super(f,9)}}w.NotificationType9=Ve;var Z;return(function(R){function f(S){const M=S;return M&&n.string(M.method)&&(n.string(M.id)||n.number(M.id))}R.isRequest=f;function T(S){const M=S;return M&&n.string(M.method)&&S.id===void 0}R.isNotification=T;function D(S){const M=S;return M&&(M.result!==void 0||!!M.error)&&(n.string(M.id)||n.number(M.id)||M.id===null)}R.isResponse=D})(Z||(w.Message=Z={})),w}var _e={},Tn;function zn(){if(Tn)return _e;Tn=1;var n;Object.defineProperty(_e,"__esModule",{value:!0}),_e.LRUCache=_e.LinkedMap=_e.Touch=void 0;var e;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(e||(_e.Touch=e={}));class t{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(s){return this._map.has(s)}get(s,d=e.None){const u=this._map.get(s);if(u)return d!==e.None&&this.touch(u,d),u.value}set(s,d,u=e.None){let c=this._map.get(s);if(c)c.value=d,u!==e.None&&this.touch(c,u);else{switch(c={key:s,value:d,next:void 0,previous:void 0},u){case e.None:this.addItemLast(c);break;case e.First:this.addItemFirst(c);break;case e.Last:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(s,c),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const d=this._map.get(s);if(d)return this._map.delete(s),this.removeItem(d),this._size--,d.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,d){const u=this._state;let c=this._head;for(;c;){if(d?s.bind(d)(c.value,c.key,this):s(c.value,c.key,this),this._state!==u)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){const s=this._state;let d=this._head;const u={[Symbol.iterator]:()=>u,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(d){const c={value:d.key,done:!1};return d=d.next,c}else return{value:void 0,done:!0}}};return u}values(){const s=this._state;let d=this._head;const u={[Symbol.iterator]:()=>u,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(d){const c={value:d.value,done:!1};return d=d.next,c}else return{value:void 0,done:!0}}};return u}entries(){const s=this._state;let d=this._head;const u={[Symbol.iterator]:()=>u,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(d){const c={value:[d.key,d.value],done:!1};return d=d.next,c}else return{value:void 0,done:!0}}};return u}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let d=this._head,u=this.size;for(;d&&u>s;)this._map.delete(d.key),d=d.next,u--;this._head=d,this._size=u,d&&(d.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const d=s.next,u=s.previous;if(!d||!u)throw new Error("Invalid list");d.previous=u,u.next=d}s.next=void 0,s.previous=void 0,this._state++}touch(s,d){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(d!==e.First&&d!==e.Last)){if(d===e.First){if(s===this._head)return;const u=s.next,c=s.previous;s===this._tail?(c.next=void 0,this._tail=c):(u.previous=c,c.next=u),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(d===e.Last){if(s===this._tail)return;const u=s.next,c=s.previous;s===this._head?(u.previous=void 0,this._head=u):(u.previous=c,c.next=u),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((d,u)=>{s.push([u,d])}),s}fromJSON(s){this.clear();for(const[d,u]of s)this.set(d,u)}}_e.LinkedMap=t;class r extends t{constructor(s,d=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,d),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,d=e.AsNew){return super.get(s,d)}peek(s){return super.get(s,e.None)}set(s,d){return super.set(s,d,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}return _e.LRUCache=r,_e}var rt={},En;function kr(){if(En)return rt;En=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.Disposable=void 0;var n;return(function(e){function t(r){return{dispose:r}}e.create=t})(n||(rt.Disposable=n={})),rt}var ze={},Lt={},Rn;function He(){if(Rn)return Lt;Rn=1,Object.defineProperty(Lt,"__esModule",{value:!0});let n;function e(){if(n===void 0)throw new Error("No runtime abstraction layer installed");return n}return(function(t){function r(a){if(a===void 0)throw new Error("No runtime abstraction layer provided");n=a}t.install=r})(e||(e={})),Lt.default=e,Lt}var Dn;function lt(){if(Dn)return ze;Dn=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.Emitter=ze.Event=void 0;const n=He();var e;(function(a){const s={dispose(){}};a.None=function(){return s}})(e||(ze.Event=e={}));class t{add(s,d=null,u){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(s),this._contexts.push(d),Array.isArray(u)&&u.push({dispose:()=>this.remove(s,d)})}remove(s,d=null){if(!this._callbacks)return;let u=!1;for(let c=0,h=this._callbacks.length;c<h;c++)if(this._callbacks[c]===s)if(this._contexts[c]===d){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...s){if(!this._callbacks)return[];const d=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let h=0,p=u.length;h<p;h++)try{d.push(u[h].apply(c[h],s))}catch(_){(0,n.default)().console.error(_)}return d}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class r{constructor(s){this._options=s}get event(){return this._event||(this._event=(s,d,u)=>{this._callbacks||(this._callbacks=new t),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(s,d);const c={dispose:()=>{this._callbacks&&(this._callbacks.remove(s,d),c.dispose=r._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(u)&&u.push(c),c}),this._event}fire(s){this._callbacks&&this._callbacks.invoke.call(this._callbacks,s)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}return ze.Emitter=r,r._noop=function(){},ze}var Be={},On;function on(){if(On)return Be;On=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.CancellationTokenSource=Be.CancellationToken=void 0;const n=He(),e=ut(),t=lt();var r;(function(u){u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:t.Event.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:t.Event.None});function c(h){const p=h;return p&&(p===u.None||p===u.Cancelled||e.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}u.is=c})(r||(Be.CancellationToken=r={}));const a=Object.freeze(function(u,c){const h=(0,n.default)().timer.setTimeout(u.bind(c),0);return{dispose(){h.dispose()}}});class s{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new t.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class d{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}return Be.CancellationTokenSource=d,Be}var We={},Mn;function Ar(){if(Mn)return We;Mn=1,Object.defineProperty(We,"__esModule",{value:!0}),We.SharedArrayReceiverStrategy=We.SharedArraySenderStrategy=void 0;const n=on();var e;(function(d){d.Continue=0,d.Cancelled=1})(e||(e={}));class t{constructor(){this.buffers=new Map}enableCancellation(u){if(u.id===null)return;const c=new SharedArrayBuffer(4),h=new Int32Array(c,0,1);h[0]=e.Continue,this.buffers.set(u.id,c),u.$cancellationData=c}async sendCancellation(u,c){const h=this.buffers.get(c);if(h===void 0)return;const p=new Int32Array(h,0,1);Atomics.store(p,0,e.Cancelled)}cleanup(u){this.buffers.delete(u)}dispose(){this.buffers.clear()}}We.SharedArraySenderStrategy=t;class r{constructor(u){this.data=new Int32Array(u,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===e.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class a{constructor(u){this.token=new r(u)}cancel(){}dispose(){}}class s{constructor(){this.kind="request"}createCancellationTokenSource(u){const c=u.$cancellationData;return c===void 0?new n.CancellationTokenSource:new a(c)}}return We.SharedArrayReceiverStrategy=s,We}var ve={},it={},Ln;function Bn(){if(Ln)return it;Ln=1,Object.defineProperty(it,"__esModule",{value:!0}),it.Semaphore=void 0;const n=He();class e{constructor(r=1){if(r<=0)throw new Error("Capacity must be greater than 0");this._capacity=r,this._active=0,this._waiting=[]}lock(r){return new Promise((a,s)=>{this._waiting.push({thunk:r,resolve:a,reject:s}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const r=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const a=r.thunk();a instanceof Promise?a.then(s=>{this._active--,r.resolve(s),this.runNext()},s=>{this._active--,r.reject(s),this.runNext()}):(this._active--,r.resolve(a),this.runNext())}catch(a){this._active--,r.reject(a),this.runNext()}}}return it.Semaphore=e,it}var Nn;function Wn(){if(Nn)return ve;Nn=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.ReadableStreamMessageReader=ve.AbstractMessageReader=ve.MessageReader=void 0;const n=He(),e=ut(),t=lt(),r=Bn();var a;(function(c){function h(p){let _=p;return _&&e.func(_.listen)&&e.func(_.dispose)&&e.func(_.onError)&&e.func(_.onClose)&&e.func(_.onPartialMessage)}c.is=h})(a||(ve.MessageReader=a={}));class s{constructor(){this.errorEmitter=new t.Emitter,this.closeEmitter=new t.Emitter,this.partialMessageEmitter=new t.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(h){this.errorEmitter.fire(this.asError(h))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(h){this.partialMessageEmitter.fire(h)}asError(h){return h instanceof Error?h:new Error(`Reader received error. Reason: ${e.string(h.message)?h.message:"unknown"}`)}}ve.AbstractMessageReader=s;var d;(function(c){function h(p){let _,v;const E=new Map;let O;const J=new Map;if(p===void 0||typeof p=="string")_=p??"utf-8";else{if(_=p.charset??"utf-8",p.contentDecoder!==void 0&&(v=p.contentDecoder,E.set(v.name,v)),p.contentDecoders!==void 0)for(const $ of p.contentDecoders)E.set($.name,$);if(p.contentTypeDecoder!==void 0&&(O=p.contentTypeDecoder,J.set(O.name,O)),p.contentTypeDecoders!==void 0)for(const $ of p.contentTypeDecoders)J.set($.name,$)}return O===void 0&&(O=(0,n.default)().applicationJson.decoder,J.set(O.name,O)),{charset:_,contentDecoder:v,contentDecoders:E,contentTypeDecoder:O,contentTypeDecoders:J}}c.fromOptions=h})(d||(d={}));class u extends s{constructor(h,p){super(),this.readable=h,this.options=d.fromOptions(p),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new r.Semaphore(1)}set partialMessageTimeout(h){this._partialMessageTimeout=h}get partialMessageTimeout(){return this._partialMessageTimeout}listen(h){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=h;const p=this.readable.onData(_=>{this.onData(_)});return this.readable.onError(_=>this.fireError(_)),this.readable.onClose(()=>this.fireClose()),p}onData(h){try{for(this.buffer.append(h);;){if(this.nextMessageLength===-1){const _=this.buffer.tryReadHeaders(!0);if(!_)return;const v=_.get("content-length");if(!v){this.fireError(new Error(`Header must provide a Content-Length property.
1
+ import{as as Sr,a9 as U,aD as Tr,aE as _n,aF as Er,aw as Pt,bg as Rr,cd as nt}from"../datalayer-app-main.js";var ot={exports:{}};ot.exports;var vn;function Dr(){return vn||(vn=1,(function(n,e){var t=200,r="__lodash_hash_undefined__",a=800,s=16,d=9007199254740991,u="[object Arguments]",c="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",_="[object Date]",v="[object Error]",E="[object Function]",O="[object GeneratorFunction]",J="[object Map]",$="[object Number]",Y="[object Null]",oe="[object Object]",Pe="[object Proxy]",be="[object RegExp]",ke="[object Set]",Ce="[object String]",we="[object Undefined]",Se="[object WeakMap]",Te="[object ArrayBuffer]",Ve="[object DataView]",Z="[object Float32Array]",R="[object Float64Array]",f="[object Int8Array]",T="[object Int16Array]",D="[object Int32Array]",S="[object Uint8Array]",M="[object Uint8ClampedArray]",kt="[object Uint16Array]",At="[object Uint32Array]",It=/[\\^$.*+?()[\]{}|]/g,Ae=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,A={};A[Z]=A[R]=A[f]=A[T]=A[D]=A[S]=A[M]=A[kt]=A[At]=!0,A[u]=A[c]=A[Te]=A[p]=A[Ve]=A[_]=A[v]=A[E]=A[J]=A[$]=A[oe]=A[be]=A[ke]=A[Ce]=A[Se]=!1;var Ee=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Ge=typeof self=="object"&&self&&self.Object===Object&&self,ue=Ee||Ge||Function("return this")(),Je=e&&!e.nodeType&&e,ne=Je&&!0&&n&&!n.nodeType&&n,ae=ne&&ne.exports===Je,Re=ae&&Ee.process,ie=(function(){try{var i=ne&&ne.require&&ne.require("util").types;return i||Re&&Re.binding&&Re.binding("util")}catch{}})(),j=ie&&ie.isTypedArray;function fe(i,l,g){switch(g.length){case 0:return i.call(l);case 1:return i.call(l,g[0]);case 2:return i.call(l,g[0],g[1]);case 3:return i.call(l,g[0],g[1],g[2])}return i.apply(l,g)}function V(i,l){for(var g=-1,C=Array(i);++g<i;)C[g]=l(g);return C}function le(i){return function(l){return i(l)}}function Ke(i,l){return i?.[l]}function dt(i,l){return function(g){return i(l(g))}}var ht=Array.prototype,ft=Function.prototype,je=Object.prototype,se=ue["__core-js_shared__"],qe=ft.toString,de=je.hasOwnProperty,gt=(function(){var i=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),pt=je.toString,jt=qe.call(Object),mt=RegExp("^"+qe.call(de).replace(It,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=ae?ue.Buffer:void 0,ge=ue.Symbol,Ze=ue.Uint8Array;Fe&&Fe.allocUnsafe;var _t=dt(Object.getPrototypeOf,Object),vt=Object.create,yt=je.propertyIsEnumerable,bt=ht.splice,pe=ge?ge.toStringTag:void 0,Ye=(function(){try{var i=Ht(Object,"defineProperty");return i({},"",{}),i}catch{}})(),qt=Fe?Fe.isBuffer:void 0,Ct=Math.max,Ft=Date.now,wt=Ht(ue,"Map"),ee=Ht(Object,"create"),Ut=(function(){function i(){}return function(l){if(!$e(l))return{};if(vt)return vt(l);i.prototype=l;var g=new i;return i.prototype=void 0,g}})();function me(i){var l=-1,g=i==null?0:i.length;for(this.clear();++l<g;){var C=i[l];this.set(C[0],C[1])}}function Qe(){this.__data__=ee?ee(null):{},this.size=0}function $t(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Xe(i){var l=this.__data__;if(ee){var g=l[i];return g===r?void 0:g}return de.call(l,i)?l[i]:void 0}function xt(i){var l=this.__data__;return ee?l[i]!==void 0:de.call(l,i)}function De(i,l){var g=this.__data__;return this.size+=this.has(i)?0:1,g[i]=ee&&l===void 0?r:l,this}me.prototype.clear=Qe,me.prototype.delete=$t,me.prototype.get=Xe,me.prototype.has=xt,me.prototype.set=De;function X(i){var l=-1,g=i==null?0:i.length;for(this.clear();++l<g;){var C=i[l];this.set(C[0],C[1])}}function zt(){this.__data__=[],this.size=0}function Bt(i){var l=this.__data__,g=Q(l,i);if(g<0)return!1;var C=l.length-1;return g==C?l.pop():bt.call(l,g,1),--this.size,!0}function Ue(i){var l=this.__data__,g=Q(l,i);return g<0?void 0:l[g][1]}function St(i){return Q(this.__data__,i)>-1}function Tt(i,l){var g=this.__data__,C=Q(g,i);return C<0?(++this.size,g.push([i,l])):g[C][1]=l,this}X.prototype.clear=zt,X.prototype.delete=Bt,X.prototype.get=Ue,X.prototype.has=St,X.prototype.set=Tt;function he(i){var l=-1,g=i==null?0:i.length;for(this.clear();++l<g;){var C=i[l];this.set(C[0],C[1])}}function Et(){this.size=0,this.__data__={hash:new me,map:new(wt||X),string:new me}}function Oe(i){var l=Dt(this,i).delete(i);return this.size-=l?1:0,l}function o(i){return Dt(this,i).get(i)}function m(i){return Dt(this,i).has(i)}function y(i,l){var g=Dt(this,i),C=g.size;return g.set(i,l),this.size+=g.size==C?0:1,this}he.prototype.clear=Et,he.prototype.delete=Oe,he.prototype.get=o,he.prototype.has=m,he.prototype.set=y;function b(i){var l=this.__data__=new X(i);this.size=l.size}function q(){this.__data__=new X,this.size=0}function I(i){var l=this.__data__,g=l.delete(i);return this.size=l.size,g}function z(i){return this.__data__.get(i)}function H(i){return this.__data__.has(i)}function L(i,l){var g=this.__data__;if(g instanceof X){var C=g.__data__;if(!wt||C.length<t-1)return C.push([i,l]),this.size=++g.size,this;g=this.__data__=new he(C)}return g.set(i,l),this.size=g.size,this}b.prototype.clear=q,b.prototype.delete=I,b.prototype.get=z,b.prototype.has=H,b.prototype.set=L;function x(i,l){var g=Jt(i),C=!g&&Gt(i),N=!g&&!C&&dn(i),F=!g&&!C&&!N&&fn(i),B=g||C||N||F,k=B?V(i.length,String):[],W=k.length;for(var ce in i)B&&(ce=="length"||N&&(ce=="offset"||ce=="parent")||F&&(ce=="buffer"||ce=="byteLength"||ce=="byteOffset")||un(ce,W))||k.push(ce);return k}function P(i,l,g){(g!==void 0&&!Ot(i[l],g)||g===void 0&&!(l in i))&&te(i,l,g)}function G(i,l,g){var C=i[l];(!(de.call(i,l)&&Ot(C,g))||g===void 0&&!(l in i))&&te(i,l,g)}function Q(i,l){for(var g=i.length;g--;)if(Ot(i[g][0],l))return g;return-1}function te(i,l,g){l=="__proto__"&&Ye?Ye(i,l,{configurable:!0,enumerable:!0,value:g,writable:!0}):i[l]=g}var Wt=sr();function Rt(i){return i==null?i===void 0?we:Y:pe&&pe in Object(i)?or(i):hr(i)}function an(i){return et(i)&&Rt(i)==u}function Gn(i){if(!$e(i)||lr(i))return!1;var l=Qt(i)?mt:Ae;return l.test(mr(i))}function Jn(i){return et(i)&&hn(i.length)&&!!A[Rt(i)]}function Yn(i){if(!$e(i))return dr(i);var l=ln(i),g=[];for(var C in i)C=="constructor"&&(l||!de.call(i,C))||g.push(C);return g}function cn(i,l,g,C,N){i!==l&&Wt(l,function(F,B){if(N||(N=new b),$e(F))Qn(i,l,B,g,cn,C,N);else{var k=C?C(Vt(i,B),F,B+"",i,l,N):void 0;k===void 0&&(k=F),P(i,B,k)}},gn)}function Qn(i,l,g,C,N,F,B){var k=Vt(i,g),W=Vt(l,g),ce=B.get(W);if(ce){P(i,g,ce);return}var re=F?F(k,W,g+"",i,l,B):void 0,tt=re===void 0;if(tt){var Kt=Jt(W),Zt=!Kt&&dn(W),mn=!Kt&&!Zt&&fn(W);re=W,Kt||Zt||mn?Jt(k)?re=k:_r(k)?re=nr(k):Zt?(tt=!1,re=Xn(W)):mn?(tt=!1,re=tr(W)):re=[]:vr(W)||Gt(W)?(re=k,Gt(k)?re=yr(k):(!$e(k)||Qt(k))&&(re=ar(W))):tt=!1}tt&&(B.set(W,re),N(re,W,C,F,B),B.delete(W)),P(i,g,re)}function Kn(i,l){return gr(fr(i,l,pn),i+"")}var Zn=Ye?function(i,l){return Ye(i,"toString",{configurable:!0,enumerable:!1,value:Cr(l),writable:!0})}:pn;function Xn(i,l){return i.slice()}function er(i){var l=new i.constructor(i.byteLength);return new Ze(l).set(new Ze(i)),l}function tr(i,l){var g=er(i.buffer);return new i.constructor(g,i.byteOffset,i.length)}function nr(i,l){var g=-1,C=i.length;for(l||(l=Array(C));++g<C;)l[g]=i[g];return l}function rr(i,l,g,C){var N=!g;g||(g={});for(var F=-1,B=l.length;++F<B;){var k=l[F],W=void 0;W===void 0&&(W=i[k]),N?te(g,k,W):G(g,k,W)}return g}function ir(i){return Kn(function(l,g){var C=-1,N=g.length,F=N>1?g[N-1]:void 0,B=N>2?g[2]:void 0;for(F=i.length>3&&typeof F=="function"?(N--,F):void 0,B&&cr(g[0],g[1],B)&&(F=N<3?void 0:F,N=1),l=Object(l);++C<N;){var k=g[C];k&&i(l,k,C,F)}return l})}function sr(i){return function(l,g,C){for(var N=-1,F=Object(l),B=C(l),k=B.length;k--;){var W=B[++N];if(g(F[W],W,F)===!1)break}return l}}function Dt(i,l){var g=i.__data__;return ur(l)?g[typeof l=="string"?"string":"hash"]:g.map}function Ht(i,l){var g=Ke(i,l);return Gn(g)?g:void 0}function or(i){var l=de.call(i,pe),g=i[pe];try{i[pe]=void 0;var C=!0}catch{}var N=pt.call(i);return C&&(l?i[pe]=g:delete i[pe]),N}function ar(i){return typeof i.constructor=="function"&&!ln(i)?Ut(_t(i)):{}}function un(i,l){var g=typeof i;return l=l??d,!!l&&(g=="number"||g!="symbol"&&Ie.test(i))&&i>-1&&i%1==0&&i<l}function cr(i,l,g){if(!$e(g))return!1;var C=typeof l;return(C=="number"?Yt(g)&&un(l,g.length):C=="string"&&l in g)?Ot(g[l],i):!1}function ur(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function lr(i){return!!gt&&gt in i}function ln(i){var l=i&&i.constructor,g=typeof l=="function"&&l.prototype||je;return i===g}function dr(i){var l=[];if(i!=null)for(var g in Object(i))l.push(g);return l}function hr(i){return pt.call(i)}function fr(i,l,g){return l=Ct(l===void 0?i.length-1:l,0),function(){for(var C=arguments,N=-1,F=Ct(C.length-l,0),B=Array(F);++N<F;)B[N]=C[l+N];N=-1;for(var k=Array(l+1);++N<l;)k[N]=C[N];return k[l]=g(B),fe(i,this,k)}}function Vt(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var gr=pr(Zn);function pr(i){var l=0,g=0;return function(){var C=Ft(),N=s-(C-g);if(g=C,N>0){if(++l>=a)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}function mr(i){if(i!=null){try{return qe.call(i)}catch{}try{return i+""}catch{}}return""}function Ot(i,l){return i===l||i!==i&&l!==l}var Gt=an((function(){return arguments})())?an:function(i){return et(i)&&de.call(i,"callee")&&!yt.call(i,"callee")},Jt=Array.isArray;function Yt(i){return i!=null&&hn(i.length)&&!Qt(i)}function _r(i){return et(i)&&Yt(i)}var dn=qt||wr;function Qt(i){if(!$e(i))return!1;var l=Rt(i);return l==E||l==O||l==h||l==Pe}function hn(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=d}function $e(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function et(i){return i!=null&&typeof i=="object"}function vr(i){if(!et(i)||Rt(i)!=oe)return!1;var l=_t(i);if(l===null)return!0;var g=de.call(l,"constructor")&&l.constructor;return typeof g=="function"&&g instanceof g&&qe.call(g)==jt}var fn=j?le(j):Jn;function yr(i){return rr(i,gn(i))}function gn(i){return Yt(i)?x(i):Yn(i)}var br=ir(function(i,l,g,C){cn(i,l,g,C)});function Cr(i){return function(){return i}}function pn(i){return i}function wr(){return!1}n.exports=br})(ot,ot.exports)),ot.exports}var Or=Dr();const Fn=Sr(Or);class Mr{constructor(e){this._widgetAdapter=e.widgetAdapter,this._extensions=e.extensions,e.editor.ready().then(t=>{this._injectExtensions(e.editor)})}dispose(){this.isDisposed||(this.isDisposed=!0,U.clearData(this))}_injectExtensions(e){const t=e.getEditor();!t||t.isDisposed||this._extensions.forEach(r=>{const a=r.factory({path:this._widgetAdapter.widget.context.path,editor:e,widgetAdapter:this._widgetAdapter,model:t.model,inline:!0});a&&t.injectExtension(a.instance(t))})}}const yn=Er.createButton,bn={"text/x-rsrc":"r","text/x-r-source":"r","text/x-ipython":"python"};class ei{constructor(e,t){this.widget=e,this.options=t,this._adapterConnected=new U(this),this._activeEditorChanged=new U(this),this._editorAdded=new U(this),this._editorRemoved=new U(this),this._disposed=new U(this),this._isDisposed=!1,this._virtualDocument=null,this._connectionManager=t.connectionManager,this._isConnected=!1,this._trans=(t.translator||Tr).load("jupyterlab"),this.widget.context.saveState.connect(this.onSaveState,this),this.connectionManager.closed.connect(this.onConnectionClosed,this),this.widget.disposed.connect(this.dispose,this),this._editorToAdapter=new WeakMap,this.editorAdded.connect(this._onEditorAdded,this),this.editorRemoved.connect(this._onEditorRemoved,this),this._connectionManager.languageServerManager.sessionsChanged.connect(this._onLspSessionOrFeatureChanged,this),this.options.featureManager.featureRegistered.connect(this._onLspSessionOrFeatureChanged,this)}get isDisposed(){return this._isDisposed}get hasMultipleEditors(){return this.editors.length>1}get widgetId(){return this.widget.id}get language(){if(bn.hasOwnProperty(this.mimeType))return bn[this.mimeType];{let e=this.mimeType.split(";")[0],[t,r]=e.split("/");return t==="application"||t==="text"?r.startsWith("x-")?r.substring(2):r:this.mimeType}}get adapterConnected(){return this._adapterConnected}get activeEditorChanged(){return this._activeEditorChanged}get disposed(){return this._disposed}get editorAdded(){return this._editorAdded}get editorRemoved(){return this._editorRemoved}get isConnected(){return this._isConnected}get connectionManager(){return this._connectionManager}get trans(){return this._trans}get updateFinished(){return this._updateFinished}get virtualDocument(){return this._virtualDocument}onConnectionClosed(e,{virtualDocument:t}){t===this.virtualDocument&&this.dispose()}dispose(){this._isDisposed||(this.editorAdded.disconnect(this._onEditorAdded,this),this.editorRemoved.disconnect(this._onEditorRemoved,this),this._connectionManager.languageServerManager.sessionsChanged.disconnect(this._onLspSessionOrFeatureChanged,this),this.options.featureManager.featureRegistered.disconnect(this._onLspSessionOrFeatureChanged,this),this._isDisposed=!0,this.disconnect(),this._virtualDocument=null,this._disposed.emit(),U.clearData(this))}disconnect(){var e,t;const r=(e=this.virtualDocument)===null||e===void 0?void 0:e.uri,{model:a}=this.widget.context;r&&this.connectionManager.unregisterDocument(r),a.contentChanged.disconnect(this._onContentChanged,this);for(let{ceEditor:s}of this.editors)this._editorRemoved.emit({editor:s});(t=this.virtualDocument)===null||t===void 0||t.dispose()}updateDocuments(){return this._isDisposed?(console.warn("Cannot update documents: adapter disposed"),Promise.reject("Cannot update documents: adapter disposed")):this.virtualDocument.updateManager.updateDocuments(this.editors)}documentChanged(e,t,r=!1){if(this._isDisposed){console.warn("Cannot swap document: adapter disposed");return}let a=this.connectionManager.connections.get(e.uri);if(!a?.isReady){console.log("Skipping document update signal: connection not ready");return}a.sendFullTextChange(e.value,e.documentInfo)}reloadConnection(){this.virtualDocument!==null&&(this.disconnect(),this.initVirtual(),this.connectDocument(this.virtualDocument,!0).catch(console.warn))}onSaveState(e,t){if(this.virtualDocument!==null&&t==="completed"){const r=[this.virtualDocument];for(let a of r){let s=this.connectionManager.connections.get(a.uri);if(s){s.sendSaved(a.documentInfo);for(let d of a.foreignDocuments.values())r.push(d)}}}}async onConnected(e){let{virtualDocument:t}=e;this._adapterConnected.emit(e),this._isConnected=!0;try{await this.updateDocuments()}catch(r){console.warn("Could not update documents",r);return}this.documentChanged(t,t,!0),e.connection.serverNotifications["$/logTrace"].connect((r,a)=>{console.log(e.connection.serverIdentifier,"trace",t.uri,a)},this),e.connection.serverNotifications["window/logMessage"].connect((r,a)=>{console.log(r.serverIdentifier+": "+a.message)},this),e.connection.serverNotifications["window/showMessage"].connect((r,a)=>{_n({title:this.trans.__("Message from ")+r.serverIdentifier,body:a.message})},this),e.connection.serverRequests["window/showMessageRequest"].setHandler(async r=>{const a=r.actions,s=a?a.map(c=>yn({label:c.title})):[yn({label:this.trans.__("Dismiss")})],d=await _n({title:this.trans.__("Message from ")+e.connection.serverIdentifier,body:r.message,buttons:s}),u=s.indexOf(d.button);return u===-1?null:a?a[u]:null})}async connectDocument(e,t=!1){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);const r=await this._connect(e).catch(console.error);r&&r.connection&&(e.changed.connect(this.documentChanged,this),t&&r.connection.sendOpenWhenReady(e.documentInfo))}initVirtual(){var e;(e=this._virtualDocument)===null||e===void 0||e.dispose(),this._virtualDocument=this.createVirtualDocument(),this._onLspSessionOrFeatureChanged()}async onForeignDocumentOpened(e,t){const{foreignDocument:r}=t;await this.connectDocument(r,!0),r.foreignDocumentClosed.connect(this._onForeignDocumentClosed,this)}_onEditorAdded(e,t){const{editor:r}=t,a=new Mr({editor:r,widgetAdapter:this,extensions:this.options.featureManager.extensionFactories()});this._editorToAdapter.set(r,a)}_onEditorRemoved(e,t){const{editor:r}=t,a=this._editorToAdapter.get(r);a?.dispose(),this._editorToAdapter.delete(r)}_onForeignDocumentClosed(e,t){const{foreignDocument:r}=t;r.foreignDocumentClosed.disconnect(this._onForeignDocumentClosed,this),r.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this),r.changed.disconnect(this.documentChanged,this)}async _connect(e){let t=e.language,r={textDocument:{synchronization:{dynamicRegistration:!0,willSave:!1,didSave:!0,willSaveWaitUntil:!1}},workspace:{didChangeConfiguration:{dynamicRegistration:!0}}};r=Fn(r,this.options.featureManager.clientCapabilities());let a={capabilities:r,virtualDocument:e,language:t,hasLspSupportedFile:e.hasLspSupportedFile},s=await this.connectionManager.connect(a);if(s)return await this.onConnected({virtualDocument:e,connection:s}),{connection:s,virtualDocument:e}}async _onContentChanged(e){const t=this.updateDocuments();if(!t){console.warn("Could not update documents");return}this._updateFinished=t.catch(console.warn),await this.updateFinished}_shouldUpdateVirtualDocument(){const{languageServerManager:e}=this.connectionManager;return e.isEnabled&&this.options.featureManager.features.length>0}_onLspSessionOrFeatureChanged(){if(!this._virtualDocument)return;const{model:e}=this.widget.context;this._shouldUpdateVirtualDocument()?e.contentChanged.connect(this._onContentChanged,this):e.contentChanged.disconnect(this._onContentChanged,this)}}var Cn;(function(n){n.URL_NS="lsp"})(Cn||(Cn={}));const ti=new Pt("@jupyterlab/lsp:ILSPDocumentConnectionManager","Provides the virtual documents and language server connections service."),ni=new Pt("@jupyterlab/lsp:ILSPFeatureManager","Provides the language server feature manager. This token is required to register new client capabilities."),ri=new Pt("@jupyterlab/lsp:ILSPCodeExtractorsManager","Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document."),ii=new Pt("@jupyterlab/lsp:IWidgetLSPAdapterTracker","Provides the WidgetLSPAdapter tracker. This token is required in your extension to track WidgetLSPAdapters.");var Me;(function(n){(function(e){e.PUBLISH_DIAGNOSTICS="textDocument/publishDiagnostics",e.SHOW_MESSAGE="window/showMessage",e.LOG_TRACE="$/logTrace",e.LOG_MESSAGE="window/logMessage"})(n.ServerNotification||(n.ServerNotification={})),(function(e){e.DID_CHANGE="textDocument/didChange",e.DID_CHANGE_CONFIGURATION="workspace/didChangeConfiguration",e.DID_OPEN="textDocument/didOpen",e.DID_SAVE="textDocument/didSave",e.INITIALIZED="initialized",e.SET_TRACE="$/setTrace"})(n.ClientNotification||(n.ClientNotification={})),(function(e){e.REGISTER_CAPABILITY="client/registerCapability",e.SHOW_MESSAGE_REQUEST="window/showMessageRequest",e.UNREGISTER_CAPABILITY="client/unregisterCapability",e.WORKSPACE_CONFIGURATION="workspace/configuration"})(n.ServerRequest||(n.ServerRequest={})),(function(e){e.CODE_ACTION="textDocument/codeAction",e.COMPLETION="textDocument/completion",e.COMPLETION_ITEM_RESOLVE="completionItem/resolve",e.DEFINITION="textDocument/definition",e.DOCUMENT_COLOR="textDocument/documentColor",e.DOCUMENT_HIGHLIGHT="textDocument/documentHighlight",e.DOCUMENT_SYMBOL="textDocument/documentSymbol",e.HOVER="textDocument/hover",e.IMPLEMENTATION="textDocument/implementation",e.INITIALIZE="initialize",e.REFERENCES="textDocument/references",e.RENAME="textDocument/rename",e.SIGNATURE_HELP="textDocument/signatureHelp",e.TYPE_DEFINITION="textDocument/typeDefinition",e.LINKED_EDITING_RANGE="textDocument/linkedEditingRange",e.INLINE_VALUE="textDocument/inlineValue",e.INLAY_HINT="textDocument/inlayHint",e.WORKSPACE_SYMBOL="workspace/symbol",e.WORKSPACE_SYMBOL_RESOLVE="workspaceSymbol/resolve",e.FORMATTING="textDocument/formatting",e.RANGE_FORMATTING="textDocument/rangeFormatting"})(n.ClientRequest||(n.ClientRequest={}))})(Me||(Me={}));async function Un(n){return new Promise(e=>{setTimeout(()=>{e()},n)})}function at(n,e=35,t=50,r=a=>a){return(async()=>{let a=0;for(;n()!==!0;){if(a+=1,e!==-1&&a>e)throw Error("Too many retrials");t=r(t),await Un(t)}return n})()}function Lr(n){const e=[];for(let t in n){const r=Nr(t.split("."),n[t]);e.push(r)}return Fn({},...e)}const Nr=(n,e)=>{const t=Object.create(null);let r=t;return n.forEach((a,s)=>{r[a]=Object.create(null),s===n.length-1?r[a]=e:r=r[a]}),t};class Pr extends Map{constructor(e,t){super(t),this.defaultFactory=e}get(e){return this.getOrCreate(e)}getOrCreate(e,...t){if(this.has(e))return super.get(e);{let r=this.defaultFactory(e,...t);return this.set(e,r),r}}}function $n(n,e){const t=JSON.parse(JSON.stringify(n)),{method:r,registerOptions:a}=e,s=r.substring(13)+"Provider";if(s)a?t[s]=JSON.parse(JSON.stringify(a)):t[s]=!0;else return console.warn("Could not register server capability.",e),null;return t}function xn(n,e){const t=JSON.parse(JSON.stringify(n)),{method:r}=e,a=r.substring(13)+"Provider";return delete t[a],t}var xe={},Mt={},Xt={},w={},K={},wn;function ut(){if(wn)return K;wn=1,Object.defineProperty(K,"__esModule",{value:!0}),K.stringArray=K.array=K.func=K.error=K.number=K.string=K.boolean=void 0;function n(u){return u===!0||u===!1}K.boolean=n;function e(u){return typeof u=="string"||u instanceof String}K.string=e;function t(u){return typeof u=="number"||u instanceof Number}K.number=t;function r(u){return u instanceof Error}K.error=r;function a(u){return typeof u=="function"}K.func=a;function s(u){return Array.isArray(u)}K.array=s;function d(u){return s(u)&&u.every(c=>e(c))}return K.stringArray=d,K}var Sn;function sn(){if(Sn)return w;Sn=1,Object.defineProperty(w,"__esModule",{value:!0}),w.Message=w.NotificationType9=w.NotificationType8=w.NotificationType7=w.NotificationType6=w.NotificationType5=w.NotificationType4=w.NotificationType3=w.NotificationType2=w.NotificationType1=w.NotificationType0=w.NotificationType=w.RequestType9=w.RequestType8=w.RequestType7=w.RequestType6=w.RequestType5=w.RequestType4=w.RequestType3=w.RequestType2=w.RequestType1=w.RequestType=w.RequestType0=w.AbstractMessageSignature=w.ParameterStructures=w.ResponseError=w.ErrorCodes=void 0;const n=ut();var e;(function(R){R.ParseError=-32700,R.InvalidRequest=-32600,R.MethodNotFound=-32601,R.InvalidParams=-32602,R.InternalError=-32603,R.jsonrpcReservedErrorRangeStart=-32099,R.serverErrorStart=-32099,R.MessageWriteError=-32099,R.MessageReadError=-32098,R.PendingResponseRejected=-32097,R.ConnectionInactive=-32096,R.ServerNotInitialized=-32002,R.UnknownErrorCode=-32001,R.jsonrpcReservedErrorRangeEnd=-32e3,R.serverErrorEnd=-32e3})(e||(w.ErrorCodes=e={}));class t extends Error{constructor(f,T,D){super(T),this.code=n.number(f)?f:e.UnknownErrorCode,this.data=D,Object.setPrototypeOf(this,t.prototype)}toJson(){const f={code:this.code,message:this.message};return this.data!==void 0&&(f.data=this.data),f}}w.ResponseError=t;class r{constructor(f){this.kind=f}static is(f){return f===r.auto||f===r.byName||f===r.byPosition}toString(){return this.kind}}w.ParameterStructures=r,r.auto=new r("auto"),r.byPosition=new r("byPosition"),r.byName=new r("byName");class a{constructor(f,T){this.method=f,this.numberOfParams=T}get parameterStructures(){return r.auto}}w.AbstractMessageSignature=a;class s extends a{constructor(f){super(f,0)}}w.RequestType0=s;class d extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.RequestType=d;class u extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.RequestType1=u;class c extends a{constructor(f){super(f,2)}}w.RequestType2=c;class h extends a{constructor(f){super(f,3)}}w.RequestType3=h;class p extends a{constructor(f){super(f,4)}}w.RequestType4=p;class _ extends a{constructor(f){super(f,5)}}w.RequestType5=_;class v extends a{constructor(f){super(f,6)}}w.RequestType6=v;class E extends a{constructor(f){super(f,7)}}w.RequestType7=E;class O extends a{constructor(f){super(f,8)}}w.RequestType8=O;class J extends a{constructor(f){super(f,9)}}w.RequestType9=J;class $ extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.NotificationType=$;class Y extends a{constructor(f){super(f,0)}}w.NotificationType0=Y;class oe extends a{constructor(f,T=r.auto){super(f,1),this._parameterStructures=T}get parameterStructures(){return this._parameterStructures}}w.NotificationType1=oe;class Pe extends a{constructor(f){super(f,2)}}w.NotificationType2=Pe;class be extends a{constructor(f){super(f,3)}}w.NotificationType3=be;class ke extends a{constructor(f){super(f,4)}}w.NotificationType4=ke;class Ce extends a{constructor(f){super(f,5)}}w.NotificationType5=Ce;class we extends a{constructor(f){super(f,6)}}w.NotificationType6=we;class Se extends a{constructor(f){super(f,7)}}w.NotificationType7=Se;class Te extends a{constructor(f){super(f,8)}}w.NotificationType8=Te;class Ve extends a{constructor(f){super(f,9)}}w.NotificationType9=Ve;var Z;return(function(R){function f(S){const M=S;return M&&n.string(M.method)&&(n.string(M.id)||n.number(M.id))}R.isRequest=f;function T(S){const M=S;return M&&n.string(M.method)&&S.id===void 0}R.isNotification=T;function D(S){const M=S;return M&&(M.result!==void 0||!!M.error)&&(n.string(M.id)||n.number(M.id)||M.id===null)}R.isResponse=D})(Z||(w.Message=Z={})),w}var _e={},Tn;function zn(){if(Tn)return _e;Tn=1;var n;Object.defineProperty(_e,"__esModule",{value:!0}),_e.LRUCache=_e.LinkedMap=_e.Touch=void 0;var e;(function(a){a.None=0,a.First=1,a.AsOld=a.First,a.Last=2,a.AsNew=a.Last})(e||(_e.Touch=e={}));class t{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(s){return this._map.has(s)}get(s,d=e.None){const u=this._map.get(s);if(u)return d!==e.None&&this.touch(u,d),u.value}set(s,d,u=e.None){let c=this._map.get(s);if(c)c.value=d,u!==e.None&&this.touch(c,u);else{switch(c={key:s,value:d,next:void 0,previous:void 0},u){case e.None:this.addItemLast(c);break;case e.First:this.addItemFirst(c);break;case e.Last:this.addItemLast(c);break;default:this.addItemLast(c);break}this._map.set(s,c),this._size++}return this}delete(s){return!!this.remove(s)}remove(s){const d=this._map.get(s);if(d)return this._map.delete(s),this.removeItem(d),this._size--,d.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const s=this._head;return this._map.delete(s.key),this.removeItem(s),this._size--,s.value}forEach(s,d){const u=this._state;let c=this._head;for(;c;){if(d?s.bind(d)(c.value,c.key,this):s(c.value,c.key,this),this._state!==u)throw new Error("LinkedMap got modified during iteration.");c=c.next}}keys(){const s=this._state;let d=this._head;const u={[Symbol.iterator]:()=>u,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(d){const c={value:d.key,done:!1};return d=d.next,c}else return{value:void 0,done:!0}}};return u}values(){const s=this._state;let d=this._head;const u={[Symbol.iterator]:()=>u,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(d){const c={value:d.value,done:!1};return d=d.next,c}else return{value:void 0,done:!0}}};return u}entries(){const s=this._state;let d=this._head;const u={[Symbol.iterator]:()=>u,next:()=>{if(this._state!==s)throw new Error("LinkedMap got modified during iteration.");if(d){const c={value:[d.key,d.value],done:!1};return d=d.next,c}else return{value:void 0,done:!0}}};return u}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(s){if(s>=this.size)return;if(s===0){this.clear();return}let d=this._head,u=this.size;for(;d&&u>s;)this._map.delete(d.key),d=d.next,u--;this._head=d,this._size=u,d&&(d.previous=void 0),this._state++}addItemFirst(s){if(!this._head&&!this._tail)this._tail=s;else if(this._head)s.next=this._head,this._head.previous=s;else throw new Error("Invalid list");this._head=s,this._state++}addItemLast(s){if(!this._head&&!this._tail)this._head=s;else if(this._tail)s.previous=this._tail,this._tail.next=s;else throw new Error("Invalid list");this._tail=s,this._state++}removeItem(s){if(s===this._head&&s===this._tail)this._head=void 0,this._tail=void 0;else if(s===this._head){if(!s.next)throw new Error("Invalid list");s.next.previous=void 0,this._head=s.next}else if(s===this._tail){if(!s.previous)throw new Error("Invalid list");s.previous.next=void 0,this._tail=s.previous}else{const d=s.next,u=s.previous;if(!d||!u)throw new Error("Invalid list");d.previous=u,u.next=d}s.next=void 0,s.previous=void 0,this._state++}touch(s,d){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(d!==e.First&&d!==e.Last)){if(d===e.First){if(s===this._head)return;const u=s.next,c=s.previous;s===this._tail?(c.next=void 0,this._tail=c):(u.previous=c,c.next=u),s.previous=void 0,s.next=this._head,this._head.previous=s,this._head=s,this._state++}else if(d===e.Last){if(s===this._tail)return;const u=s.next,c=s.previous;s===this._head?(u.previous=void 0,this._head=u):(u.previous=c,c.next=u),s.next=void 0,s.previous=this._tail,this._tail.next=s,this._tail=s,this._state++}}}toJSON(){const s=[];return this.forEach((d,u)=>{s.push([u,d])}),s}fromJSON(s){this.clear();for(const[d,u]of s)this.set(d,u)}}_e.LinkedMap=t;class r extends t{constructor(s,d=1){super(),this._limit=s,this._ratio=Math.min(Math.max(0,d),1)}get limit(){return this._limit}set limit(s){this._limit=s,this.checkTrim()}get ratio(){return this._ratio}set ratio(s){this._ratio=Math.min(Math.max(0,s),1),this.checkTrim()}get(s,d=e.AsNew){return super.get(s,d)}peek(s){return super.get(s,e.None)}set(s,d){return super.set(s,d,e.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}return _e.LRUCache=r,_e}var rt={},En;function kr(){if(En)return rt;En=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.Disposable=void 0;var n;return(function(e){function t(r){return{dispose:r}}e.create=t})(n||(rt.Disposable=n={})),rt}var ze={},Lt={},Rn;function He(){if(Rn)return Lt;Rn=1,Object.defineProperty(Lt,"__esModule",{value:!0});let n;function e(){if(n===void 0)throw new Error("No runtime abstraction layer installed");return n}return(function(t){function r(a){if(a===void 0)throw new Error("No runtime abstraction layer provided");n=a}t.install=r})(e||(e={})),Lt.default=e,Lt}var Dn;function lt(){if(Dn)return ze;Dn=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.Emitter=ze.Event=void 0;const n=He();var e;(function(a){const s={dispose(){}};a.None=function(){return s}})(e||(ze.Event=e={}));class t{add(s,d=null,u){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(s),this._contexts.push(d),Array.isArray(u)&&u.push({dispose:()=>this.remove(s,d)})}remove(s,d=null){if(!this._callbacks)return;let u=!1;for(let c=0,h=this._callbacks.length;c<h;c++)if(this._callbacks[c]===s)if(this._contexts[c]===d){this._callbacks.splice(c,1),this._contexts.splice(c,1);return}else u=!0;if(u)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...s){if(!this._callbacks)return[];const d=[],u=this._callbacks.slice(0),c=this._contexts.slice(0);for(let h=0,p=u.length;h<p;h++)try{d.push(u[h].apply(c[h],s))}catch(_){(0,n.default)().console.error(_)}return d}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}}class r{constructor(s){this._options=s}get event(){return this._event||(this._event=(s,d,u)=>{this._callbacks||(this._callbacks=new t),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(s,d);const c={dispose:()=>{this._callbacks&&(this._callbacks.remove(s,d),c.dispose=r._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(u)&&u.push(c),c}),this._event}fire(s){this._callbacks&&this._callbacks.invoke.call(this._callbacks,s)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}return ze.Emitter=r,r._noop=function(){},ze}var Be={},On;function on(){if(On)return Be;On=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.CancellationTokenSource=Be.CancellationToken=void 0;const n=He(),e=ut(),t=lt();var r;(function(u){u.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:t.Event.None}),u.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:t.Event.None});function c(h){const p=h;return p&&(p===u.None||p===u.Cancelled||e.boolean(p.isCancellationRequested)&&!!p.onCancellationRequested)}u.is=c})(r||(Be.CancellationToken=r={}));const a=Object.freeze(function(u,c){const h=(0,n.default)().timer.setTimeout(u.bind(c),0);return{dispose(){h.dispose()}}});class s{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new t.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}class d{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}return Be.CancellationTokenSource=d,Be}var We={},Mn;function Ar(){if(Mn)return We;Mn=1,Object.defineProperty(We,"__esModule",{value:!0}),We.SharedArrayReceiverStrategy=We.SharedArraySenderStrategy=void 0;const n=on();var e;(function(d){d.Continue=0,d.Cancelled=1})(e||(e={}));class t{constructor(){this.buffers=new Map}enableCancellation(u){if(u.id===null)return;const c=new SharedArrayBuffer(4),h=new Int32Array(c,0,1);h[0]=e.Continue,this.buffers.set(u.id,c),u.$cancellationData=c}async sendCancellation(u,c){const h=this.buffers.get(c);if(h===void 0)return;const p=new Int32Array(h,0,1);Atomics.store(p,0,e.Cancelled)}cleanup(u){this.buffers.delete(u)}dispose(){this.buffers.clear()}}We.SharedArraySenderStrategy=t;class r{constructor(u){this.data=new Int32Array(u,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===e.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class a{constructor(u){this.token=new r(u)}cancel(){}dispose(){}}class s{constructor(){this.kind="request"}createCancellationTokenSource(u){const c=u.$cancellationData;return c===void 0?new n.CancellationTokenSource:new a(c)}}return We.SharedArrayReceiverStrategy=s,We}var ve={},it={},Ln;function Bn(){if(Ln)return it;Ln=1,Object.defineProperty(it,"__esModule",{value:!0}),it.Semaphore=void 0;const n=He();class e{constructor(r=1){if(r<=0)throw new Error("Capacity must be greater than 0");this._capacity=r,this._active=0,this._waiting=[]}lock(r){return new Promise((a,s)=>{this._waiting.push({thunk:r,resolve:a,reject:s}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||(0,n.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;const r=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const a=r.thunk();a instanceof Promise?a.then(s=>{this._active--,r.resolve(s),this.runNext()},s=>{this._active--,r.reject(s),this.runNext()}):(this._active--,r.resolve(a),this.runNext())}catch(a){this._active--,r.reject(a),this.runNext()}}}return it.Semaphore=e,it}var Nn;function Wn(){if(Nn)return ve;Nn=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.ReadableStreamMessageReader=ve.AbstractMessageReader=ve.MessageReader=void 0;const n=He(),e=ut(),t=lt(),r=Bn();var a;(function(c){function h(p){let _=p;return _&&e.func(_.listen)&&e.func(_.dispose)&&e.func(_.onError)&&e.func(_.onClose)&&e.func(_.onPartialMessage)}c.is=h})(a||(ve.MessageReader=a={}));class s{constructor(){this.errorEmitter=new t.Emitter,this.closeEmitter=new t.Emitter,this.partialMessageEmitter=new t.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(h){this.errorEmitter.fire(this.asError(h))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(h){this.partialMessageEmitter.fire(h)}asError(h){return h instanceof Error?h:new Error(`Reader received error. Reason: ${e.string(h.message)?h.message:"unknown"}`)}}ve.AbstractMessageReader=s;var d;(function(c){function h(p){let _,v;const E=new Map;let O;const J=new Map;if(p===void 0||typeof p=="string")_=p??"utf-8";else{if(_=p.charset??"utf-8",p.contentDecoder!==void 0&&(v=p.contentDecoder,E.set(v.name,v)),p.contentDecoders!==void 0)for(const $ of p.contentDecoders)E.set($.name,$);if(p.contentTypeDecoder!==void 0&&(O=p.contentTypeDecoder,J.set(O.name,O)),p.contentTypeDecoders!==void 0)for(const $ of p.contentTypeDecoders)J.set($.name,$)}return O===void 0&&(O=(0,n.default)().applicationJson.decoder,J.set(O.name,O)),{charset:_,contentDecoder:v,contentDecoders:E,contentTypeDecoder:O,contentTypeDecoders:J}}c.fromOptions=h})(d||(d={}));class u extends s{constructor(h,p){super(),this.readable=h,this.options=d.fromOptions(p),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new r.Semaphore(1)}set partialMessageTimeout(h){this._partialMessageTimeout=h}get partialMessageTimeout(){return this._partialMessageTimeout}listen(h){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=h;const p=this.readable.onData(_=>{this.onData(_)});return this.readable.onError(_=>this.fireError(_)),this.readable.onClose(()=>this.fireClose()),p}onData(h){try{for(this.buffer.append(h);;){if(this.nextMessageLength===-1){const _=this.buffer.tryReadHeaders(!0);if(!_)return;const v=_.get("content-length");if(!v){this.fireError(new Error(`Header must provide a Content-Length property.
2
2
  ${JSON.stringify(Object.fromEntries(_))}`));return}const E=parseInt(v);if(isNaN(E)){this.fireError(new Error(`Content-Length value must be a number. Got ${v}`));return}this.nextMessageLength=E}const p=this.buffer.tryReadBody(this.nextMessageLength);if(p===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{const _=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(p):p,v=await this.options.contentTypeDecoder.decode(_,this.options);this.callback(v)}).catch(_=>{this.fireError(_)})}}catch(p){this.fireError(p)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=(0,n.default)().timer.setTimeout((h,p)=>{this.partialMessageTimer=void 0,h===this.messageToken&&(this.firePartialMessage({messageToken:h,waitingTime:p}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}return ve.ReadableStreamMessageReader=u,ve}var ye={},Pn;function Hn(){if(Pn)return ye;Pn=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.WriteableStreamMessageWriter=ye.AbstractMessageWriter=ye.MessageWriter=void 0;const n=He(),e=ut(),t=Bn(),r=lt(),a="Content-Length: ",s=`\r
3
3
  `;var d;(function(p){function _(v){let E=v;return E&&e.func(E.dispose)&&e.func(E.onClose)&&e.func(E.onError)&&e.func(E.write)}p.is=_})(d||(ye.MessageWriter=d={}));class u{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(_,v,E){this.errorEmitter.fire([this.asError(_),v,E])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(_){return _ instanceof Error?_:new Error(`Writer received error. Reason: ${e.string(_.message)?_.message:"unknown"}`)}}ye.AbstractMessageWriter=u;var c;(function(p){function _(v){return v===void 0||typeof v=="string"?{charset:v??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}:{charset:v.charset??"utf-8",contentEncoder:v.contentEncoder,contentTypeEncoder:v.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}p.fromOptions=_})(c||(c={}));class h extends u{constructor(_,v){super(),this.writable=_,this.options=c.fromOptions(v),this.errorCount=0,this.writeSemaphore=new t.Semaphore(1),this.writable.onError(E=>this.fireError(E)),this.writable.onClose(()=>this.fireClose())}async write(_){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(_,this.options).then(E=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(E):E).then(E=>{const O=[];return O.push(a,E.byteLength.toString(),s),O.push(s),this.doWrite(_,O,E)},E=>{throw this.fireError(E),E}))}async doWrite(_,v,E){try{return await this.writable.write(v.join(""),"ascii"),this.writable.write(E)}catch(O){return this.handleError(O,_),Promise.reject(O)}}handleError(_,v){this.errorCount++,this.fireError(_,v,this.errorCount)}end(){this.writable.end()}}return ye.WriteableStreamMessageWriter=h,ye}var st={},kn;function Ir(){if(kn)return st;kn=1,Object.defineProperty(st,"__esModule",{value:!0}),st.AbstractMessageBuffer=void 0;const n=13,e=10,t=`\r
4
4
  `;class r{constructor(s="utf-8"){this._encoding=s,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(s){const d=typeof s=="string"?this.fromString(s,this._encoding):s;this._chunks.push(d),this._totalLength+=d.byteLength}tryReadHeaders(s=!1){if(this._chunks.length===0)return;let d=0,u=0,c=0,h=0;e:for(;u<this._chunks.length;){const E=this._chunks[u];for(c=0;c<E.length;){switch(E[c]){case n:switch(d){case 0:d=1;break;case 2:d=3;break;default:d=0}break;case e:switch(d){case 1:d=2;break;case 3:d=4,c++;break e;default:d=0}break;default:d=0}c++}h+=E.byteLength,u++}if(d!==4)return;const p=this._read(h+c),_=new Map,v=this.toString(p,"ascii").split(t);if(v.length<2)return _;for(let E=0;E<v.length-2;E++){const O=v[E],J=O.indexOf(":");if(J===-1)throw new Error(`Message header must separate key and value using ':'
@@ -1 +1 @@
1
- import{ck as l}from"../datalayer-app-main.js";const d=16895,f=33206,p=1,E=2;function P(o){return"node"in o}const g=":",y="/api/drive.v1",m=4096,w=new TextEncoder,S=new TextDecoder("utf-8"),u={0:!1,1:!0,2:!0,64:!0,65:!0,66:!0,129:!0,193:!0,514:!0,577:!0,578:!0,705:!0,706:!0,1024:!0,1025:!0,1026:!0,1089:!0,1090:!0,1153:!0,1154:!0,1217:!0,1218:!0,4096:!0,4098:!0};class N{fs;constructor(t){this.fs=t}open(t){const e=this.fs.realPath(t.node);this.fs.FS.isFile(t.node.mode)&&(t.file=this.fs.API.get(e))}close(t){if(!this.fs.FS.isFile(t.node.mode)||!t.file)return;const e=this.fs.realPath(t.node),r=t.flags;let s=typeof r=="string"?parseInt(r,10):r;s&=8191;let n=!0;s in u&&(n=u[s]),n&&this.fs.API.put(e,t.file),t.file=void 0}read(t,e,r,s,n){if(s<=0||t.file===void 0||n>=(t.file.data.length||0))return 0;const a=Math.min(t.file.data.length-n,s);return e.set(t.file.data.subarray(n,n+a),r),a}write(t,e,r,s,n){if(s<=0||t.file===void 0)return 0;if(t.node.timestamp=Date.now(),n+s>(t.file?.data.length||0)){const a=t.file.data?t.file.data:new Uint8Array;t.file.data=new Uint8Array(n+s),t.file.data.set(a)}return t.file.data.set(e.subarray(r,r+s),n),s}llseek(t,e,r){let s=e;if(r===p)s+=t.position;else if(r===E&&this.fs.FS.isFile(t.node.mode))if(t.file!==void 0)s+=t.file.data.length;else throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM);if(s<0)throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EINVAL);return s}}class O{fs;constructor(t){this.fs=t}node(t){return P(t)?t.node:t}getattr(t){const e=this.node(t);return{...this.fs.API.getattr(this.fs.realPath(e)),mode:e.mode,ino:e.id}}setattr(t,e){const r=this.node(t);for(const[s,n]of Object.entries(e))switch(s){case"mode":r.mode=n;break;case"timestamp":r.timestamp=n;break;case"size":{const a=n,h=this.fs.realPath(r);if(this.fs.FS.isFile(r.mode)&&a>=0){const i=this.fs.API.get(h),c=i.data?i.data:new Uint8Array;a!==c.length&&(a<c.length?i.data=i.data.slice(0,a):(i.data=new Uint8Array(a),i.data.set(c)),this.fs.API.put(h,i))}else console.warn("setattr size of",a,"on",r,"not yet implemented");break}default:console.warn("setattr",s,"of",n,"on",r,"not yet implemented");break}}lookup(t,e){const r=this.node(t),s=this.fs.PATH.join2(this.fs.realPath(r),e),n=this.fs.API.lookup(s);if(!n.ok)throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.ENOENT);return this.fs.createNode(r,e,n.mode,0)}mknod(t,e,r,s){const n=this.node(t),a=this.fs.PATH.join2(this.fs.realPath(n),e);return this.fs.API.mknod(a,r),this.fs.createNode(n,e,r,s)}rename(t,e,r){const s=this.node(t),n=this.node(e);this.fs.API.rename(s.parent?this.fs.PATH.join2(this.fs.realPath(s.parent),s.name):s.name,this.fs.PATH.join2(this.fs.realPath(n),r)),s.name=r,s.parent=n}unlink(t,e){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(this.node(t)),e))}rmdir(t,e){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(this.node(t)),e))}readdir(t){return this.fs.API.readdir(this.fs.realPath(this.node(t)))}symlink(t,e,r){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}readlink(t){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}}class _{constructor(t,e,r,s){this._driveName=t,this._mountpoint=e,this.FS=r,this.ERRNO_CODES=s}lookup(t){return this.request({method:"lookup",path:this.normalizePath(t)})}getmode(t){return this.request({method:"getmode",path:this.normalizePath(t)})}mknod(t,e){return this.request({method:"mknod",path:this.normalizePath(t),data:{mode:e}})}rename(t,e){return this.request({method:"rename",path:this.normalizePath(t),data:{newPath:this.normalizePath(e)}})}readdir(t){const e=this.request({method:"readdir",path:this.normalizePath(t)});return e.push("."),e.push(".."),e}rmdir(t){return this.request({method:"rmdir",path:this.normalizePath(t)})}get(t){const e=this.request({method:"get",path:this.normalizePath(t)});if(!e)throw new this.FS.ErrnoError(this.ERRNO_CODES.ENOENT);const r=e.content,s=e.format;switch(s){case"json":case"text":return{data:w.encode(r),format:s};case"base64":{const n=atob(r),a=n.length,h=new Uint8Array(a);for(let i=0;i<a;i++)h[i]=n.charCodeAt(i);return{data:h,format:s}}default:throw new this.FS.ErrnoError(this.ERRNO_CODES.ENOENT)}}put(t,e){switch(e.format){case"json":case"text":return this.request({method:"put",path:this.normalizePath(t),data:{format:e.format,data:S.decode(e.data)}});case"base64":{let r="";for(let s=0;s<e.data.byteLength;s++)r+=String.fromCharCode(e.data[s]);return this.request({method:"put",path:this.normalizePath(t),data:{format:e.format,data:btoa(r)}})}}}getattr(t){const e=this.request({method:"getattr",path:this.normalizePath(t)});return e.atime&&(e.atime=new Date(e.atime)),e.mtime&&(e.mtime=new Date(e.mtime)),e.ctime&&(e.ctime=new Date(e.ctime)),e.size=e.size||0,e}normalizePath(t){return t.startsWith(this._mountpoint)&&(t=t.slice(this._mountpoint.length)),this._driveName&&(t=`${this._driveName}${g}${t}`),t}_driveName;_mountpoint;FS;ERRNO_CODES}class R extends _{constructor(t,e,r,s,n){super(e,r,s,n),this._baseUrl=t}request(t){const e=new XMLHttpRequest;e.open("POST",encodeURI(this.endpoint),!1);try{e.send(JSON.stringify(t))}catch(r){console.error(r)}if(e.status>=400)throw new this.FS.ErrnoError(this.ERRNO_CODES.EINVAL);return JSON.parse(e.responseText)}get endpoint(){return`${this._baseUrl}api/drive`}_baseUrl}class D{FS;API;PATH;ERRNO_CODES;driveName;constructor(t){this.FS=t.FS,this.PATH=t.PATH,this.ERRNO_CODES=t.ERRNO_CODES,this.API=this.createAPI(t),this.driveName=t.driveName,this.node_ops=new O(this),this.stream_ops=new N(this)}node_ops;stream_ops;createAPI(t){return new R(t.baseUrl,t.driveName,t.mountpoint,t.FS,t.ERRNO_CODES)}mount(t){return this.createNode(null,t.mountpoint,d|511,0)}createNode(t,e,r,s){const n=this.FS;if(!n.isDir(r)&&!n.isFile(r))throw new n.ErrnoError(this.ERRNO_CODES.EINVAL);const a=n.createNode(t,e,r,s);return a.node_ops=this.node_ops,a.stream_ops=this.stream_ops,a}getMode(t){return this.API.getmode(t)}realPath(t){const e=[];let r=t;for(e.push(r.name);r.parent!==r;)r=r.parent,e.push(r.name);return e.reverse(),this.PATH.join.apply(null,e)}}class k{contentsManager;constructor(t){this.contentsManager=t.contentsManager}async processDriveRequest(t){switch(t.method){case"readdir":return this.readdir(t);case"rmdir":return this.rmdir(t);case"rename":return this.rename(t);case"getmode":return this.getmode(t);case"lookup":return this.lookup(t);case"mknod":return this.mknod(t);case"getattr":return this.getattr(t);case"get":return this.get(t);case"put":return this.put(t)}throw`Drive request ${t.method} does not exist.`}async readdir(t){const e=await this.contentsManager.get(t.path,{content:!0});let r=[];return e.type==="directory"&&e.content&&(r=e.content.map(s=>s.name)),r}async rmdir(t){return await this.contentsManager.delete(t.path),null}async rename(t){return await this.contentsManager.rename(t.path,t.data.newPath),null}async getmode(t){const e=await this.contentsManager.get(t.path);let r;return e.type==="directory"?r=d:r=f,r}async lookup(t){let e;try{e={ok:!0,mode:(await this.contentsManager.get(t.path)).type==="directory"?d:f}}catch{e={ok:!1}}return e}async mknod(t){const e=await this.contentsManager.newUntitled({path:l.PathExt.dirname(t.path),type:t.data.mode===d?"directory":"file",ext:l.PathExt.extname(t.path)});return await this.contentsManager.rename(e.path,t.path),null}async getattr(t){const e=await this.contentsManager.get(t.path),r=new Date(0).toISOString();return{dev:1,nlink:1,uid:0,gid:0,rdev:0,size:e.size||0,blksize:m,blocks:Math.ceil(e.size||0/m),atime:e.last_modified||r,mtime:e.last_modified||r,ctime:e.created||r,timestamp:0}}async get(t){const e=await this.contentsManager.get(t.path,{content:!0});let r;return e.type!=="directory"&&(r={content:e.format==="json"?JSON.stringify(e.content):e.content,format:e.format}),r}async put(t){return await this.contentsManager.save(t.path,{content:t.data.format==="json"?JSON.parse(t.data.data):t.data.data,type:"file",format:t.data.format}),null}}export{m as B,_ as C,k as D,f as F,p as S,y as a,d as b,g as c,D as d,O as e,N as f,E as g,R as h,P as i};
1
+ import{cd as l}from"../datalayer-app-main.js";const d=16895,f=33206,p=1,E=2;function P(o){return"node"in o}const g=":",y="/api/drive.v1",m=4096,w=new TextEncoder,S=new TextDecoder("utf-8"),u={0:!1,1:!0,2:!0,64:!0,65:!0,66:!0,129:!0,193:!0,514:!0,577:!0,578:!0,705:!0,706:!0,1024:!0,1025:!0,1026:!0,1089:!0,1090:!0,1153:!0,1154:!0,1217:!0,1218:!0,4096:!0,4098:!0};class N{fs;constructor(t){this.fs=t}open(t){const e=this.fs.realPath(t.node);this.fs.FS.isFile(t.node.mode)&&(t.file=this.fs.API.get(e))}close(t){if(!this.fs.FS.isFile(t.node.mode)||!t.file)return;const e=this.fs.realPath(t.node),r=t.flags;let s=typeof r=="string"?parseInt(r,10):r;s&=8191;let n=!0;s in u&&(n=u[s]),n&&this.fs.API.put(e,t.file),t.file=void 0}read(t,e,r,s,n){if(s<=0||t.file===void 0||n>=(t.file.data.length||0))return 0;const a=Math.min(t.file.data.length-n,s);return e.set(t.file.data.subarray(n,n+a),r),a}write(t,e,r,s,n){if(s<=0||t.file===void 0)return 0;if(t.node.timestamp=Date.now(),n+s>(t.file?.data.length||0)){const a=t.file.data?t.file.data:new Uint8Array;t.file.data=new Uint8Array(n+s),t.file.data.set(a)}return t.file.data.set(e.subarray(r,r+s),n),s}llseek(t,e,r){let s=e;if(r===p)s+=t.position;else if(r===E&&this.fs.FS.isFile(t.node.mode))if(t.file!==void 0)s+=t.file.data.length;else throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM);if(s<0)throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EINVAL);return s}}class O{fs;constructor(t){this.fs=t}node(t){return P(t)?t.node:t}getattr(t){const e=this.node(t);return{...this.fs.API.getattr(this.fs.realPath(e)),mode:e.mode,ino:e.id}}setattr(t,e){const r=this.node(t);for(const[s,n]of Object.entries(e))switch(s){case"mode":r.mode=n;break;case"timestamp":r.timestamp=n;break;case"size":{const a=n,h=this.fs.realPath(r);if(this.fs.FS.isFile(r.mode)&&a>=0){const i=this.fs.API.get(h),c=i.data?i.data:new Uint8Array;a!==c.length&&(a<c.length?i.data=i.data.slice(0,a):(i.data=new Uint8Array(a),i.data.set(c)),this.fs.API.put(h,i))}else console.warn("setattr size of",a,"on",r,"not yet implemented");break}default:console.warn("setattr",s,"of",n,"on",r,"not yet implemented");break}}lookup(t,e){const r=this.node(t),s=this.fs.PATH.join2(this.fs.realPath(r),e),n=this.fs.API.lookup(s);if(!n.ok)throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.ENOENT);return this.fs.createNode(r,e,n.mode,0)}mknod(t,e,r,s){const n=this.node(t),a=this.fs.PATH.join2(this.fs.realPath(n),e);return this.fs.API.mknod(a,r),this.fs.createNode(n,e,r,s)}rename(t,e,r){const s=this.node(t),n=this.node(e);this.fs.API.rename(s.parent?this.fs.PATH.join2(this.fs.realPath(s.parent),s.name):s.name,this.fs.PATH.join2(this.fs.realPath(n),r)),s.name=r,s.parent=n}unlink(t,e){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(this.node(t)),e))}rmdir(t,e){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(this.node(t)),e))}readdir(t){return this.fs.API.readdir(this.fs.realPath(this.node(t)))}symlink(t,e,r){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}readlink(t){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}}class _{constructor(t,e,r,s){this._driveName=t,this._mountpoint=e,this.FS=r,this.ERRNO_CODES=s}lookup(t){return this.request({method:"lookup",path:this.normalizePath(t)})}getmode(t){return this.request({method:"getmode",path:this.normalizePath(t)})}mknod(t,e){return this.request({method:"mknod",path:this.normalizePath(t),data:{mode:e}})}rename(t,e){return this.request({method:"rename",path:this.normalizePath(t),data:{newPath:this.normalizePath(e)}})}readdir(t){const e=this.request({method:"readdir",path:this.normalizePath(t)});return e.push("."),e.push(".."),e}rmdir(t){return this.request({method:"rmdir",path:this.normalizePath(t)})}get(t){const e=this.request({method:"get",path:this.normalizePath(t)});if(!e)throw new this.FS.ErrnoError(this.ERRNO_CODES.ENOENT);const r=e.content,s=e.format;switch(s){case"json":case"text":return{data:w.encode(r),format:s};case"base64":{const n=atob(r),a=n.length,h=new Uint8Array(a);for(let i=0;i<a;i++)h[i]=n.charCodeAt(i);return{data:h,format:s}}default:throw new this.FS.ErrnoError(this.ERRNO_CODES.ENOENT)}}put(t,e){switch(e.format){case"json":case"text":return this.request({method:"put",path:this.normalizePath(t),data:{format:e.format,data:S.decode(e.data)}});case"base64":{let r="";for(let s=0;s<e.data.byteLength;s++)r+=String.fromCharCode(e.data[s]);return this.request({method:"put",path:this.normalizePath(t),data:{format:e.format,data:btoa(r)}})}}}getattr(t){const e=this.request({method:"getattr",path:this.normalizePath(t)});return e.atime&&(e.atime=new Date(e.atime)),e.mtime&&(e.mtime=new Date(e.mtime)),e.ctime&&(e.ctime=new Date(e.ctime)),e.size=e.size||0,e}normalizePath(t){return t.startsWith(this._mountpoint)&&(t=t.slice(this._mountpoint.length)),this._driveName&&(t=`${this._driveName}${g}${t}`),t}_driveName;_mountpoint;FS;ERRNO_CODES}class R extends _{constructor(t,e,r,s,n){super(e,r,s,n),this._baseUrl=t}request(t){const e=new XMLHttpRequest;e.open("POST",encodeURI(this.endpoint),!1);try{e.send(JSON.stringify(t))}catch(r){console.error(r)}if(e.status>=400)throw new this.FS.ErrnoError(this.ERRNO_CODES.EINVAL);return JSON.parse(e.responseText)}get endpoint(){return`${this._baseUrl}api/drive`}_baseUrl}class D{FS;API;PATH;ERRNO_CODES;driveName;constructor(t){this.FS=t.FS,this.PATH=t.PATH,this.ERRNO_CODES=t.ERRNO_CODES,this.API=this.createAPI(t),this.driveName=t.driveName,this.node_ops=new O(this),this.stream_ops=new N(this)}node_ops;stream_ops;createAPI(t){return new R(t.baseUrl,t.driveName,t.mountpoint,t.FS,t.ERRNO_CODES)}mount(t){return this.createNode(null,t.mountpoint,d|511,0)}createNode(t,e,r,s){const n=this.FS;if(!n.isDir(r)&&!n.isFile(r))throw new n.ErrnoError(this.ERRNO_CODES.EINVAL);const a=n.createNode(t,e,r,s);return a.node_ops=this.node_ops,a.stream_ops=this.stream_ops,a}getMode(t){return this.API.getmode(t)}realPath(t){const e=[];let r=t;for(e.push(r.name);r.parent!==r;)r=r.parent,e.push(r.name);return e.reverse(),this.PATH.join.apply(null,e)}}class F{contentsManager;constructor(t){this.contentsManager=t.contentsManager}async processDriveRequest(t){switch(t.method){case"readdir":return this.readdir(t);case"rmdir":return this.rmdir(t);case"rename":return this.rename(t);case"getmode":return this.getmode(t);case"lookup":return this.lookup(t);case"mknod":return this.mknod(t);case"getattr":return this.getattr(t);case"get":return this.get(t);case"put":return this.put(t)}throw`Drive request ${t.method} does not exist.`}async readdir(t){const e=await this.contentsManager.get(t.path,{content:!0});let r=[];return e.type==="directory"&&e.content&&(r=e.content.map(s=>s.name)),r}async rmdir(t){return await this.contentsManager.delete(t.path),null}async rename(t){return await this.contentsManager.rename(t.path,t.data.newPath),null}async getmode(t){const e=await this.contentsManager.get(t.path);let r;return e.type==="directory"?r=d:r=f,r}async lookup(t){let e;try{e={ok:!0,mode:(await this.contentsManager.get(t.path)).type==="directory"?d:f}}catch{e={ok:!1}}return e}async mknod(t){const e=await this.contentsManager.newUntitled({path:l.PathExt.dirname(t.path),type:t.data.mode===d?"directory":"file",ext:l.PathExt.extname(t.path)});return await this.contentsManager.rename(e.path,t.path),null}async getattr(t){const e=await this.contentsManager.get(t.path),r=new Date(0).toISOString();return{dev:1,nlink:1,uid:0,gid:0,rdev:0,size:e.size||0,blksize:m,blocks:Math.ceil(e.size||0/m),atime:e.last_modified||r,mtime:e.last_modified||r,ctime:e.created||r,timestamp:0}}async get(t){const e=await this.contentsManager.get(t.path,{content:!0});let r;return e.type!=="directory"&&(r={content:e.format==="json"?JSON.stringify(e.content):e.content,format:e.format}),r}async put(t){return await this.contentsManager.save(t.path,{content:t.data.format==="json"?JSON.parse(t.data.data):t.data.data,type:"file",format:t.data.format}),null}}export{m as B,_ as C,F as D,f as F,p as S,y as a,d as b,g as c,D as d,O as e,N as f,E as g,R as h,P as i};
@@ -1,4 +1,4 @@
1
- import"./percentages-BXMCSKIN-TyKhSuec.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-C55KdpCk.js";import"./NotebookSkeleton-BkzTMhIX.js";import"./Avatar-MNx1kN3F.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BncUh2ly.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-D-7eUege.js";import"./index--S8WFITA.js";import"./hoverbox-CStlKQWE.js";import"./index-6zxBQeM_.js";import"./index-9wJFadG-.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CqP3xLL5.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-LfEpCrfD.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var u={paste:"Επικόλληση",pasteAsPlaintext:"Επικόλληση ως απλό κείμενο",pasteCharts:"Επικόλληση γραφημάτων",selectAll:"Επιλογή όλων",multiSelect:"Προσθέστε το στοιχείο στην επιλογή",moveCanvas:"Μετακίνηση καμβά",cut:"Αποκοπή",copy:"Αντιγραφή",copyAsPng:"Αντιγραφή στο πρόχειρο ως PNG",copyAsSvg:"Αντιγραφή στο πρόχειρο ως SVG",copyText:"Αντιγραφή στο πρόχειρο ως κείμενο",copySource:"",convertToCode:"",bringForward:"Στο προσκήνιο",sendToBack:"Ένα επίπεδο πίσω",bringToFront:"Ένα επίπεδο μπροστά",sendBackward:"Στο παρασκήνιο",delete:"Διαγραφή",copyStyles:"Αντιγραφή εμφάνισης",pasteStyles:"Επικόλληση εμφάνισης",stroke:"Μολυβιά",background:"Φόντο",fill:"Γέμισμα",strokeWidth:"Πάχος μολυβιάς",strokeStyle:"Στυλ περιγράμματος",strokeStyle_solid:"Συμπαγής",strokeStyle_dashed:"Διακεκομμένη με παύλες",strokeStyle_dotted:"Διακεκομμένη με τελείες",sloppiness:"Ακαταστασία",opacity:"Διαφάνεια",textAlign:"Στοίχιση κειμένου",edges:"Άκρες",sharp:"Οξύ",round:"Στρογγυλό",arrowheads:"Σύμβολα βελών",arrowhead_none:"Κανένα",arrowhead_arrow:"Βέλος",arrowhead_bar:"Μπάρα",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Τρίγωνο",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Μέγεθος γραμματοσειράς",fontFamily:"Γραμματοσειρά",addWatermark:'Προσθήκη "Φτιαγμένο με Excalidraw"',handDrawn:"Σχεδιασμένο στο χέρι",normal:"Κανονική",code:"Κώδικας",small:"Μικρό",medium:"Μεσαίο",large:"Μεγάλο",veryLarge:"Πολύ μεγάλο",solid:"Συμπαγής",hachure:"Εκκόλαψη",zigzag:"",crossHatch:"Διασταυρούμενη εκκόλαψη",thin:"Λεπτή",bold:"Έντονη",left:"Αριστερά",center:"Κέντρο",right:"Δεξιά",extraBold:"Πολύ έντονη",architect:"Αρχιτέκτονας",artist:"Καλλιτέχνης",cartoonist:"Σκιτσογράφος",fileTitle:"Όνομα αρχείου",colorPicker:"Επιλογή Χρώματος",canvasColors:"Χρησιμοποείται στον καμβά",canvasBackground:"Φόντο καμβά",drawingCanvas:"Σχεδίαση καμβά",layers:"Στρώματα",actions:"Ενέργειες",language:"Γλώσσα",liveCollaboration:"Live συνεργασία...",duplicateSelection:"Δημιουργία αντιγράφου",untitled:"Χωρίς τίτλο",name:"Όνομα",yourName:"Το όνομά σου",madeWithExcalidraw:"Φτιαγμένο με Excalidraw",group:"Δημιουργία ομάδας από επιλογή",ungroup:"Κατάργηση ομάδας από επιλογή",collaborators:"Συνεργάτες",showGrid:"Προβολή πλέγματος",addToLibrary:"Προσθήκη στη βιβλιοθήκη",removeFromLibrary:"Αφαίρεση από τη βιβλιοθήκη",libraryLoadingMessage:"Φόρτωση βιβλιοθήκης…",libraries:"Άλλες βιβλιοθήκες",loadingScene:"Φόρτωση σκηνής…",align:"Στοίχιση",alignTop:"Στοίχιση πάνω",alignBottom:"Στοίχιση κάτω",alignLeft:"Στοίχιση αριστερά",alignRight:"Στοίχιση δεξιά",centerVertically:"Κέντρο κάθετα",centerHorizontally:"Κέντρο οριζόντια",distributeHorizontally:"Οριζόντια κατανομή",distributeVertically:"Κατακόρυφη κατανομή",flipHorizontal:"Οριζόντια αναστροφή",flipVertical:"Κατακόρυφη αναστροφή",viewMode:"Λειτουργία προβολής",share:"Κοινοποίηση",showStroke:"Εμφάνιση επιλογέα χρωμάτων πινελιάς",showBackground:"Εμφάνιση επιλογέα χρώματος φόντου",toggleTheme:"Εναλλαγή θέματος",personalLib:"Προσωπική Βιβλιοθήκη",excalidrawLib:"Βιβλιοθήκη Excalidraw",decreaseFontSize:"Μείωση μεγέθους γραμματοσειράς",increaseFontSize:"Αύξηση μεγέθους γραμματοσειράς",unbindText:"Αποσύνδεση κειμένου",bindText:"Δέσμευση κειμένου στο δοχείο",createContainerFromText:"",link:{edit:"Επεξεργασία συνδέσμου",editEmbed:"",create:"Δημιουργία συνδέσμου",createEmbed:"",label:"Σύνδεσμος",labelEmbed:"",empty:""},lineEditor:{edit:"Επεξεργασία γραμμής",exit:"Έξοδος επεξεργαστή κειμένου"},elementLock:{lock:"Κλείδωμα",unlock:"Ξεκλείδωμα",lockAll:"Κλείδωμα όλων",unlockAll:"Ξεκλείδωμα όλων"},statusPublished:"Δημοσιευμένο",sidebarLock:"Κρατήστε την πλαϊνή μπάρα ανοιχτή",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},B={noItems:"Δεν έχουν προστεθεί αντικείμενα ακόμη...",hint_emptyLibrary:"Επιλέξτε ένα στοιχείο στον καμβά για να το προσθέσετε εδώ, ή εγκαταστήστε μια βιβλιοθήκη από το δημόσιο αποθετήριο, παρακάτω.",hint_emptyPrivateLibrary:"Επιλέξτε ένα στοιχείο στον καμβά για να το προσθέσετε εδώ."},C={clearReset:"Επαναφορά του καμβά",exportJSON:"Εξαγωγή σε αρχείο",exportImage:"Εξαγωγή εικόνας...",export:"Αποθήκευση ως...",copyToClipboard:"Αντιγραφή στο πρόχειρο",save:"Αποθήκευση στο τρέχον αρχείο",saveAs:"Αποθήκευση ως",load:"Άνοιγμα",getShareableLink:"Δημόσιος σύνδεσμος",close:"Κλείσιμο",selectLanguage:"Επιλογή γλώσσας",scrollBackToContent:"Μετακινηθείτε πίσω στο περιεχόμενο",zoomIn:"Μεγέθυνση",zoomOut:"Σμίκρυνση",resetZoom:"Επαναφορά μεγέθυνσης",menu:"Μενού",done:"Τέλος",edit:"Επεξεργασία",undo:"Αναίρεση",redo:"Επαναφορά",resetLibrary:"Καθαρισμός βιβλιοθήκης",createNewRoom:"Δημιουργία νέου χώρου",fullScreen:"Πλήρης οθόνη",darkMode:"Σκοτεινή λειτουργία",lightMode:"Φωτεινή λειτουργία",zenMode:"Λειτουργία Zεν",objectsSnapMode:"",exitZenMode:"Έξοδος από την λειτουργία Zen",cancel:"Ακύρωση",clear:"Καθαρισμός",remove:"Κατάργηση",embed:"",publishLibrary:"Δημοσίευση",submit:"Υποβολή",confirm:"Επιβεβαίωση",embeddableInteractionButton:""},A={clearReset:"Αυτό θα σβήσει ολόκληρο τον καμβά. Είσαι σίγουρος;",couldNotCreateShareableLink:"Δεν ήταν δυνατή η δημιουργία συνδέσμου κοινής χρήσης.",couldNotCreateShareableLinkTooBig:"Δεν ήταν δυνατή η δημιουργία κοινόχρηστου συνδέσμου: η σκηνή είναι πολύ μεγάλη",couldNotLoadInvalidFile:"Δεν μπόρεσε να ανοίξει εσφαλμένο αρχείο",importBackendFailed:"Η εισαγωγή από το backend απέτυχε.",cannotExportEmptyCanvas:"Δεν είναι δυνατή η εξαγωγή κενού καμβά.",couldNotCopyToClipboard:"Αδυναμία αντιγραφής στο πρόχειρο.",decryptFailed:"Δεν ήταν δυνατή η αποκρυπτογράφηση δεδομένων.",uploadedSecurly:"Η μεταφόρτωση έχει εξασφαλιστεί με κρυπτογράφηση από άκρο σε άκρο, πράγμα που σημαίνει ότι ο διακομιστής Excalidraw και τρίτα μέρη δεν μπορούν να διαβάσουν το περιεχόμενο.",loadSceneOverridePrompt:"Η φόρτωση εξωτερικού σχεδίου θα αντικαταστήσει το υπάρχον περιεχόμενο. Επιθυμείτε να συνεχίσετε;",collabStopOverridePrompt:`Η διακοπή της συνεδρίας θα αντικαταστήσει το προηγούμενο, τοπικά αποθηκευμένο σχέδιο. Είστε σίγουροι?
1
+ import"./percentages-BXMCSKIN-pswfKMt2.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-DuD7IV6j.js";import"./NotebookSkeleton-CvO9WylK.js";import"./Avatar-Cv5OpUWu.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BAjGB6b-.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-D9cwH5rg.js";import"./index-JmqWOkdt.js";import"./hoverbox-CStlKQWE.js";import"./index-qhxI1VzX.js";import"./index-CEeyR3FZ.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CKWSKbHe.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-LfEpCrfD.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var u={paste:"Επικόλληση",pasteAsPlaintext:"Επικόλληση ως απλό κείμενο",pasteCharts:"Επικόλληση γραφημάτων",selectAll:"Επιλογή όλων",multiSelect:"Προσθέστε το στοιχείο στην επιλογή",moveCanvas:"Μετακίνηση καμβά",cut:"Αποκοπή",copy:"Αντιγραφή",copyAsPng:"Αντιγραφή στο πρόχειρο ως PNG",copyAsSvg:"Αντιγραφή στο πρόχειρο ως SVG",copyText:"Αντιγραφή στο πρόχειρο ως κείμενο",copySource:"",convertToCode:"",bringForward:"Στο προσκήνιο",sendToBack:"Ένα επίπεδο πίσω",bringToFront:"Ένα επίπεδο μπροστά",sendBackward:"Στο παρασκήνιο",delete:"Διαγραφή",copyStyles:"Αντιγραφή εμφάνισης",pasteStyles:"Επικόλληση εμφάνισης",stroke:"Μολυβιά",background:"Φόντο",fill:"Γέμισμα",strokeWidth:"Πάχος μολυβιάς",strokeStyle:"Στυλ περιγράμματος",strokeStyle_solid:"Συμπαγής",strokeStyle_dashed:"Διακεκομμένη με παύλες",strokeStyle_dotted:"Διακεκομμένη με τελείες",sloppiness:"Ακαταστασία",opacity:"Διαφάνεια",textAlign:"Στοίχιση κειμένου",edges:"Άκρες",sharp:"Οξύ",round:"Στρογγυλό",arrowheads:"Σύμβολα βελών",arrowhead_none:"Κανένα",arrowhead_arrow:"Βέλος",arrowhead_bar:"Μπάρα",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Τρίγωνο",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Μέγεθος γραμματοσειράς",fontFamily:"Γραμματοσειρά",addWatermark:'Προσθήκη "Φτιαγμένο με Excalidraw"',handDrawn:"Σχεδιασμένο στο χέρι",normal:"Κανονική",code:"Κώδικας",small:"Μικρό",medium:"Μεσαίο",large:"Μεγάλο",veryLarge:"Πολύ μεγάλο",solid:"Συμπαγής",hachure:"Εκκόλαψη",zigzag:"",crossHatch:"Διασταυρούμενη εκκόλαψη",thin:"Λεπτή",bold:"Έντονη",left:"Αριστερά",center:"Κέντρο",right:"Δεξιά",extraBold:"Πολύ έντονη",architect:"Αρχιτέκτονας",artist:"Καλλιτέχνης",cartoonist:"Σκιτσογράφος",fileTitle:"Όνομα αρχείου",colorPicker:"Επιλογή Χρώματος",canvasColors:"Χρησιμοποείται στον καμβά",canvasBackground:"Φόντο καμβά",drawingCanvas:"Σχεδίαση καμβά",layers:"Στρώματα",actions:"Ενέργειες",language:"Γλώσσα",liveCollaboration:"Live συνεργασία...",duplicateSelection:"Δημιουργία αντιγράφου",untitled:"Χωρίς τίτλο",name:"Όνομα",yourName:"Το όνομά σου",madeWithExcalidraw:"Φτιαγμένο με Excalidraw",group:"Δημιουργία ομάδας από επιλογή",ungroup:"Κατάργηση ομάδας από επιλογή",collaborators:"Συνεργάτες",showGrid:"Προβολή πλέγματος",addToLibrary:"Προσθήκη στη βιβλιοθήκη",removeFromLibrary:"Αφαίρεση από τη βιβλιοθήκη",libraryLoadingMessage:"Φόρτωση βιβλιοθήκης…",libraries:"Άλλες βιβλιοθήκες",loadingScene:"Φόρτωση σκηνής…",align:"Στοίχιση",alignTop:"Στοίχιση πάνω",alignBottom:"Στοίχιση κάτω",alignLeft:"Στοίχιση αριστερά",alignRight:"Στοίχιση δεξιά",centerVertically:"Κέντρο κάθετα",centerHorizontally:"Κέντρο οριζόντια",distributeHorizontally:"Οριζόντια κατανομή",distributeVertically:"Κατακόρυφη κατανομή",flipHorizontal:"Οριζόντια αναστροφή",flipVertical:"Κατακόρυφη αναστροφή",viewMode:"Λειτουργία προβολής",share:"Κοινοποίηση",showStroke:"Εμφάνιση επιλογέα χρωμάτων πινελιάς",showBackground:"Εμφάνιση επιλογέα χρώματος φόντου",toggleTheme:"Εναλλαγή θέματος",personalLib:"Προσωπική Βιβλιοθήκη",excalidrawLib:"Βιβλιοθήκη Excalidraw",decreaseFontSize:"Μείωση μεγέθους γραμματοσειράς",increaseFontSize:"Αύξηση μεγέθους γραμματοσειράς",unbindText:"Αποσύνδεση κειμένου",bindText:"Δέσμευση κειμένου στο δοχείο",createContainerFromText:"",link:{edit:"Επεξεργασία συνδέσμου",editEmbed:"",create:"Δημιουργία συνδέσμου",createEmbed:"",label:"Σύνδεσμος",labelEmbed:"",empty:""},lineEditor:{edit:"Επεξεργασία γραμμής",exit:"Έξοδος επεξεργαστή κειμένου"},elementLock:{lock:"Κλείδωμα",unlock:"Ξεκλείδωμα",lockAll:"Κλείδωμα όλων",unlockAll:"Ξεκλείδωμα όλων"},statusPublished:"Δημοσιευμένο",sidebarLock:"Κρατήστε την πλαϊνή μπάρα ανοιχτή",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},B={noItems:"Δεν έχουν προστεθεί αντικείμενα ακόμη...",hint_emptyLibrary:"Επιλέξτε ένα στοιχείο στον καμβά για να το προσθέσετε εδώ, ή εγκαταστήστε μια βιβλιοθήκη από το δημόσιο αποθετήριο, παρακάτω.",hint_emptyPrivateLibrary:"Επιλέξτε ένα στοιχείο στον καμβά για να το προσθέσετε εδώ."},C={clearReset:"Επαναφορά του καμβά",exportJSON:"Εξαγωγή σε αρχείο",exportImage:"Εξαγωγή εικόνας...",export:"Αποθήκευση ως...",copyToClipboard:"Αντιγραφή στο πρόχειρο",save:"Αποθήκευση στο τρέχον αρχείο",saveAs:"Αποθήκευση ως",load:"Άνοιγμα",getShareableLink:"Δημόσιος σύνδεσμος",close:"Κλείσιμο",selectLanguage:"Επιλογή γλώσσας",scrollBackToContent:"Μετακινηθείτε πίσω στο περιεχόμενο",zoomIn:"Μεγέθυνση",zoomOut:"Σμίκρυνση",resetZoom:"Επαναφορά μεγέθυνσης",menu:"Μενού",done:"Τέλος",edit:"Επεξεργασία",undo:"Αναίρεση",redo:"Επαναφορά",resetLibrary:"Καθαρισμός βιβλιοθήκης",createNewRoom:"Δημιουργία νέου χώρου",fullScreen:"Πλήρης οθόνη",darkMode:"Σκοτεινή λειτουργία",lightMode:"Φωτεινή λειτουργία",zenMode:"Λειτουργία Zεν",objectsSnapMode:"",exitZenMode:"Έξοδος από την λειτουργία Zen",cancel:"Ακύρωση",clear:"Καθαρισμός",remove:"Κατάργηση",embed:"",publishLibrary:"Δημοσίευση",submit:"Υποβολή",confirm:"Επιβεβαίωση",embeddableInteractionButton:""},A={clearReset:"Αυτό θα σβήσει ολόκληρο τον καμβά. Είσαι σίγουρος;",couldNotCreateShareableLink:"Δεν ήταν δυνατή η δημιουργία συνδέσμου κοινής χρήσης.",couldNotCreateShareableLinkTooBig:"Δεν ήταν δυνατή η δημιουργία κοινόχρηστου συνδέσμου: η σκηνή είναι πολύ μεγάλη",couldNotLoadInvalidFile:"Δεν μπόρεσε να ανοίξει εσφαλμένο αρχείο",importBackendFailed:"Η εισαγωγή από το backend απέτυχε.",cannotExportEmptyCanvas:"Δεν είναι δυνατή η εξαγωγή κενού καμβά.",couldNotCopyToClipboard:"Αδυναμία αντιγραφής στο πρόχειρο.",decryptFailed:"Δεν ήταν δυνατή η αποκρυπτογράφηση δεδομένων.",uploadedSecurly:"Η μεταφόρτωση έχει εξασφαλιστεί με κρυπτογράφηση από άκρο σε άκρο, πράγμα που σημαίνει ότι ο διακομιστής Excalidraw και τρίτα μέρη δεν μπορούν να διαβάσουν το περιεχόμενο.",loadSceneOverridePrompt:"Η φόρτωση εξωτερικού σχεδίου θα αντικαταστήσει το υπάρχον περιεχόμενο. Επιθυμείτε να συνεχίσετε;",collabStopOverridePrompt:`Η διακοπή της συνεδρίας θα αντικαταστήσει το προηγούμενο, τοπικά αποθηκευμένο σχέδιο. Είστε σίγουροι?
2
2
 
3
3
  (Αν θέλετε να διατηρήσετε το τοπικό σας σχέδιο, απλά κλείστε την καρτέλα του προγράμματος περιήγησης.)`,errorAddingToLibrary:"Αδυναμία προσθήκης αντικειμένου στη βιβλιοθήκη",errorRemovingFromLibrary:"Αδυναμία αφαίρεσης αντικειμένου από τη βιβλιοθήκη",confirmAddLibrary:"Αυτό θα προσθέσει {{numShapes}} σχήμα(τα) στη βιβλιοθήκη σας. Είστε σίγουροι;",imageDoesNotContainScene:"Αυτή η εικόνα δεν φαίνεται να περιέχει δεδομένα σκηνής. Έχετε ενεργοποιήσει την ενσωμάτωση σκηνής κατά την εξαγωγή;",cannotRestoreFromImage:"Η σκηνή δεν ήταν δυνατό να αποκατασταθεί από αυτό το αρχείο εικόνας",invalidSceneUrl:"Δεν ήταν δυνατή η εισαγωγή σκηνής από το URL που δώσατε. Είτε έχει λάθος μορφή, είτε δεν περιέχει έγκυρα δεδομένα JSON Excalidraw.",resetLibrary:"Αυτό θα καθαρίσει τη βιβλιοθήκη σας. Είστε σίγουροι;",removeItemsFromsLibrary:"Διαγραφή {{count}} αντικειμένου(ων) από τη βιβλιοθήκη;",invalidEncryptionKey:"Το κλειδί κρυπτογράφησης πρέπει να είναι 22 χαρακτήρες. Η ζωντανή συνεργασία είναι απενεργοποιημένη.",collabOfflineWarning:`Δεν υπάρχει διαθέσιμη σύνδεση στο internet.
4
4
  Οι αλλαγές σας δεν θα αποθηκευτούν!`},F={unsupportedFileType:"Μη υποστηριζόμενος τύπος αρχείου.",imageInsertError:"Αδυναμία εισαγωγής εικόνας. Προσπαθήστε ξανά αργότερα...",fileTooBig:"Το αρχείο είναι πολύ μεγάλο. Το μέγιστο επιτρεπόμενο μέγεθος είναι {{maxSize}}.",svgImageInsertError:"Αδυναμία εισαγωγής εικόνας SVG. Η σήμανση της SVG δεν φαίνεται έγκυρη.",failedToFetchImage:"",invalidSVGString:"Μη έγκυρο SVG.",cannotResolveCollabServer:"Αδυναμία σύνδεσης με τον διακομιστή συνεργασίας. Παρακαλώ ανανεώστε τη σελίδα και προσπαθήστε ξανά.",importLibraryError:"Αδυναμία φόρτωσης βιβλιοθήκης",collabSaveFailed:"Η αποθήκευση στη βάση δεδομένων δεν ήταν δυνατή. Αν το προβλήματα παραμείνει, θα πρέπει να αποθηκεύσετε το αρχείο σας τοπικά για να βεβαιωθείτε ότι δεν χάνετε την εργασία σας.",collabSaveFailed_sizeExceeded:"Η αποθήκευση στη βάση δεδομένων δεν ήταν δυνατή, ο καμβάς φαίνεται να είναι πολύ μεγάλος. Θα πρέπει να αποθηκεύσετε το αρχείο τοπικά για να βεβαιωθείτε ότι δεν θα χάσετε την εργασία σας.",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},D={selection:"Επιλογή",image:"Εισαγωγή εικόνας",rectangle:"Ορθογώνιο",diamond:"Ρόμβος",ellipse:"Έλλειψη",arrow:"Βέλος",line:"Γραμμή",freedraw:"Σχεδίαση",text:"Κείμενο",library:"Βιβλιοθήκη",lock:"Κράτησε επιλεγμένο το εργαλείο μετά το σχέδιο",penMode:"Λειτουργία μολυβιού - αποτροπή αφής",link:"Προσθήκη/ Ενημέρωση συνδέσμου για ένα επιλεγμένο σχήμα",eraser:"Γόμα",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},e={canvasActions:"Ενέργειες καμβά",selectedShapeActions:"Επιλεγμένες ενέργειες σχήματος",shapes:"Σχήματα"},r={canvasPanning:"",linearElement:"Κάνε κλικ για να ξεκινήσεις πολλαπλά σημεία, σύρε για μια γραμμή",freeDraw:"Κάντε κλικ και σύρτε, απελευθερώσατε όταν έχετε τελειώσει",text:"Tip: μπορείτε επίσης να προσθέστε κείμενο με διπλό-κλικ οπουδήποτε με το εργαλείο επιλογών",embeddable:"",text_selected:"Κάντε διπλό κλικ ή πατήστε ENTER για να επεξεργαστείτε το κείμενο",text_editing:"Πατήστε Escape ή CtrlOrCmd+ENTER για να ολοκληρώσετε την επεξεργασία",linearElementMulti:"Κάνε κλικ στο τελευταίο σημείο ή πάτησε Escape ή Enter για να τελειώσεις",lockAngle:"Μπορείτε να περιορίσετε τη γωνία κρατώντας πατημένο το SHIFT",resize:`Μπορείς να περιορίσεις τις αναλογίες κρατώντας το SHIFT ενώ αλλάζεις μέγεθος,
@@ -1,4 +1,4 @@
1
- import"./percentages-BXMCSKIN-TyKhSuec.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-C55KdpCk.js";import"./NotebookSkeleton-BkzTMhIX.js";import"./Avatar-MNx1kN3F.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BncUh2ly.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-D-7eUege.js";import"./index--S8WFITA.js";import"./hoverbox-CStlKQWE.js";import"./index-6zxBQeM_.js";import"./index-9wJFadG-.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CqP3xLL5.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-LfEpCrfD.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var e={paste:"Pegar",pasteAsPlaintext:"Pegar como texto sin formato",pasteCharts:"Pegar gráficos",selectAll:"Seleccionar todo",multiSelect:"Añadir elemento a la selección",moveCanvas:"Mover el lienzo",cut:"Cortar",copy:"Copiar",copyAsPng:"Copiar al portapapeles como PNG",copyAsSvg:"Copiar al portapapeles como SVG",copyText:"Copiar al portapapeles como texto",copySource:"Copiar fuente al portapapeles",convertToCode:"Convertir a código",bringForward:"Traer hacia delante",sendToBack:"Enviar al fondo",bringToFront:"Traer al frente",sendBackward:"Enviar atrás",delete:"Borrar",copyStyles:"Copiar estilos",pasteStyles:"Pegar estilos",stroke:"Trazo",background:"Fondo",fill:"Rellenar",strokeWidth:"Grosor del trazo",strokeStyle:"Estilo del trazo",strokeStyle_solid:"Sólido",strokeStyle_dashed:"Discontinua",strokeStyle_dotted:"Punteado",sloppiness:"Estilo de trazo",opacity:"Opacidad",textAlign:"Alineado de texto",edges:"Bordes",sharp:"Afilado",round:"Redondo",arrowheads:"Puntas de flecha",arrowhead_none:"Ninguna",arrowhead_arrow:"Flecha",arrowhead_bar:"Barra",arrowhead_circle:"Círculo",arrowhead_circle_outline:"Círculo (contorno)",arrowhead_triangle:"Triángulo",arrowhead_triangle_outline:"Triángulo (contorno)",arrowhead_diamond:"Diamante",arrowhead_diamond_outline:"Diamante (contorno)",fontSize:"Tamaño de la fuente",fontFamily:"Tipo de fuente",addWatermark:'Agregar "Hecho con Excalidraw"',handDrawn:"Dibujado a mano",normal:"Normal",code:"Código",small:"Pequeña",medium:"Mediana",large:"Grande",veryLarge:"Muy grande",solid:"Sólido",hachure:"Folleto",zigzag:"Zigzag",crossHatch:"Rayado transversal",thin:"Fino",bold:"Grueso",left:"Izquierda",center:"Centrado",right:"Derecha",extraBold:"Extra negrita",architect:"Arquitecto",artist:"Artista",cartoonist:"Caricatura",fileTitle:"Nombre del archivo",colorPicker:"Selector de color",canvasColors:"Usado en lienzo",canvasBackground:"Fondo del lienzo",drawingCanvas:"Lienzo de dibujo",layers:"Capas",actions:"Acciones",language:"Idioma",liveCollaboration:"Colaboración en directo...",duplicateSelection:"Duplicar",untitled:"Sin título",name:"Nombre",yourName:"Tu nombre",madeWithExcalidraw:"Hecho con Excalidraw",group:"Agrupar selección",ungroup:"Desagrupar selección",collaborators:"Colaboradores",showGrid:"Mostrar cuadrícula",addToLibrary:"Añadir a la biblioteca",removeFromLibrary:"Eliminar de la biblioteca",libraryLoadingMessage:"Cargando biblioteca…",libraries:"Explorar bibliotecas",loadingScene:"Cargando escena…",align:"Alinear",alignTop:"Alineación superior",alignBottom:"Alineación inferior",alignLeft:"Alinear a la izquierda",alignRight:"Alinear a la derecha",centerVertically:"Centrar verticalmente",centerHorizontally:"Centrar horizontalmente",distributeHorizontally:"Distribuir horizontalmente",distributeVertically:"Distribuir verticalmente",flipHorizontal:"Girar horizontalmente",flipVertical:"Girar verticalmente",viewMode:"Modo presentación",share:"Compartir",showStroke:"Mostrar selector de color de trazo",showBackground:"Mostrar el selector de color de fondo",toggleTheme:"Cambiar tema",personalLib:"Biblioteca personal",excalidrawLib:"Biblioteca Excalidraw",decreaseFontSize:"Disminuir tamaño de letra",increaseFontSize:"Aumentar el tamaño de letra",unbindText:"Desvincular texto",bindText:"Vincular texto al contenedor",createContainerFromText:"Envolver el texto en un contenedor",link:{edit:"Editar enlace",editEmbed:"Editar enlace e incrustar",create:"Crear enlace",createEmbed:"Crear enlace e incrustar",label:"Enlace",labelEmbed:"Enlazar e incrustar",empty:"No se ha establecido un enlace"},lineEditor:{edit:"Editar línea",exit:"Salir del editor en línea"},elementLock:{lock:"Bloquear",unlock:"Desbloquear",lockAll:"Bloquear todo",unlockAll:"Desbloquear todo"},statusPublished:"Publicado",sidebarLock:"Mantener barra lateral abierta",selectAllElementsInFrame:"Seleccionar todos los elementos en el marco",removeAllElementsFromFrame:"Eliminar todos los elementos del marco",eyeDropper:"Seleccionar un color del lienzo",textToDiagram:"Texto a diagrama",prompt:"Sugerencia"},a={noItems:"No hay elementos añadidos todavía...",hint_emptyLibrary:"Seleccione un elemento en el lienzo para añadirlo aquí, o instale una biblioteca del repositorio público, a continuación.",hint_emptyPrivateLibrary:"Seleccione un elemento del lienzo para añadirlo aquí."},o={clearReset:"Limpiar lienzo y reiniciar el color de fondo",exportJSON:"Exportar a archivo",exportImage:"Exportar imagen...",export:"Guardar en...",copyToClipboard:"Copiar al portapapeles",save:"Guardar en archivo actual",saveAs:"Guardar como",load:"Abrir",getShareableLink:"Obtener enlace para compartir",close:"Cerrar",selectLanguage:"Elegir idioma",scrollBackToContent:"Volver al contenido",zoomIn:"Acercarse",zoomOut:"Alejarse",resetZoom:"Restablecer zoom",menu:"Menú",done:"Hecho",edit:"Editar",undo:"Deshacer",redo:"Rehacer",resetLibrary:"Reiniciar biblioteca",createNewRoom:"Crear nueva sala",fullScreen:"Pantalla completa",darkMode:"Modo oscuro",lightMode:"Modo claro",zenMode:"Modo Zen",objectsSnapMode:"Ajustar a los objetos",exitZenMode:"Salir del modo Zen",cancel:"Cancelar",clear:"Borrar",remove:"Eliminar",embed:"",publishLibrary:"Publicar",submit:"Enviar",confirm:"Confirmar",embeddableInteractionButton:"Pulsa para interactuar"},r={clearReset:"Esto limpiará todo el lienzo. Estás seguro?",couldNotCreateShareableLink:"No se pudo crear un enlace para compartir.",couldNotCreateShareableLinkTooBig:"No se pudo crear el enlace para compartir: la escena es demasiado grande",couldNotLoadInvalidFile:"No se pudo cargar el archivo no válido",importBackendFailed:"La importación falló.",cannotExportEmptyCanvas:"No se puede exportar un lienzo vació",couldNotCopyToClipboard:"No se pudo copiar al portapapeles.",decryptFailed:"No se pudieron descifrar los datos.",uploadedSecurly:"La carga ha sido asegurada con cifrado de principio a fin, lo que significa que el servidor de Excalidraw y terceros no pueden leer el contenido.",loadSceneOverridePrompt:"Si carga este dibujo externo, reemplazará el que tiene. ¿Desea continuar?",collabStopOverridePrompt:`Detener la sesión sobrescribirá su dibujo anterior almacenado localmente. ¿Está seguro?
1
+ import"./percentages-BXMCSKIN-pswfKMt2.js";import"../datalayer-app-main.js";import"./JupyterLexicalExtension-DuD7IV6j.js";import"./NotebookSkeleton-CvO9WylK.js";import"./Avatar-Cv5OpUWu.js";import"./url-C6fJII94.js";import"./isSymbol-BLtK9CV6.js";import"./toNumber-B1wj8-wx.js";import"./StrikethroughIcon-CbiEuPT-.js";import"./VideoIcon-C3wcjUxu.js";import"./LinkIcon-BtBG9K47.js";import"./Toolbar-BAjGB6b-.js";import"./KebabHorizontalIcon-D6AY8pIS.js";import"./ArrowUpIcon-y5enrVH9.js";import"./SortDescIcon-Qif6E10I.js";import"./PaintbrushIcon-CFBHU-3l.js";import"./PrismCss-DQMhvzcI.js";import"./Output-D9cwH5rg.js";import"./index-JmqWOkdt.js";import"./hoverbox-CStlKQWE.js";import"./index-qhxI1VzX.js";import"./index-CEeyR3FZ.js";import"./dayjs.min-u3zuoSR8.js";import"./isEqual-BYxXubsX.js";import"./d3-color-Jd8hXty2.js";import"./dist-BrUAt6vF.js";import"./index-CKWSKbHe.js";import"./RestartIcon-DvpOf5Mf.js";import"./LexicalToolRegistry-LfEpCrfD.js";import"./extends-CF3RwP-h.js";import"./index-C0d-d3s4.js";import"./index-DoBkwclg.js";var e={paste:"Pegar",pasteAsPlaintext:"Pegar como texto sin formato",pasteCharts:"Pegar gráficos",selectAll:"Seleccionar todo",multiSelect:"Añadir elemento a la selección",moveCanvas:"Mover el lienzo",cut:"Cortar",copy:"Copiar",copyAsPng:"Copiar al portapapeles como PNG",copyAsSvg:"Copiar al portapapeles como SVG",copyText:"Copiar al portapapeles como texto",copySource:"Copiar fuente al portapapeles",convertToCode:"Convertir a código",bringForward:"Traer hacia delante",sendToBack:"Enviar al fondo",bringToFront:"Traer al frente",sendBackward:"Enviar atrás",delete:"Borrar",copyStyles:"Copiar estilos",pasteStyles:"Pegar estilos",stroke:"Trazo",background:"Fondo",fill:"Rellenar",strokeWidth:"Grosor del trazo",strokeStyle:"Estilo del trazo",strokeStyle_solid:"Sólido",strokeStyle_dashed:"Discontinua",strokeStyle_dotted:"Punteado",sloppiness:"Estilo de trazo",opacity:"Opacidad",textAlign:"Alineado de texto",edges:"Bordes",sharp:"Afilado",round:"Redondo",arrowheads:"Puntas de flecha",arrowhead_none:"Ninguna",arrowhead_arrow:"Flecha",arrowhead_bar:"Barra",arrowhead_circle:"Círculo",arrowhead_circle_outline:"Círculo (contorno)",arrowhead_triangle:"Triángulo",arrowhead_triangle_outline:"Triángulo (contorno)",arrowhead_diamond:"Diamante",arrowhead_diamond_outline:"Diamante (contorno)",fontSize:"Tamaño de la fuente",fontFamily:"Tipo de fuente",addWatermark:'Agregar "Hecho con Excalidraw"',handDrawn:"Dibujado a mano",normal:"Normal",code:"Código",small:"Pequeña",medium:"Mediana",large:"Grande",veryLarge:"Muy grande",solid:"Sólido",hachure:"Folleto",zigzag:"Zigzag",crossHatch:"Rayado transversal",thin:"Fino",bold:"Grueso",left:"Izquierda",center:"Centrado",right:"Derecha",extraBold:"Extra negrita",architect:"Arquitecto",artist:"Artista",cartoonist:"Caricatura",fileTitle:"Nombre del archivo",colorPicker:"Selector de color",canvasColors:"Usado en lienzo",canvasBackground:"Fondo del lienzo",drawingCanvas:"Lienzo de dibujo",layers:"Capas",actions:"Acciones",language:"Idioma",liveCollaboration:"Colaboración en directo...",duplicateSelection:"Duplicar",untitled:"Sin título",name:"Nombre",yourName:"Tu nombre",madeWithExcalidraw:"Hecho con Excalidraw",group:"Agrupar selección",ungroup:"Desagrupar selección",collaborators:"Colaboradores",showGrid:"Mostrar cuadrícula",addToLibrary:"Añadir a la biblioteca",removeFromLibrary:"Eliminar de la biblioteca",libraryLoadingMessage:"Cargando biblioteca…",libraries:"Explorar bibliotecas",loadingScene:"Cargando escena…",align:"Alinear",alignTop:"Alineación superior",alignBottom:"Alineación inferior",alignLeft:"Alinear a la izquierda",alignRight:"Alinear a la derecha",centerVertically:"Centrar verticalmente",centerHorizontally:"Centrar horizontalmente",distributeHorizontally:"Distribuir horizontalmente",distributeVertically:"Distribuir verticalmente",flipHorizontal:"Girar horizontalmente",flipVertical:"Girar verticalmente",viewMode:"Modo presentación",share:"Compartir",showStroke:"Mostrar selector de color de trazo",showBackground:"Mostrar el selector de color de fondo",toggleTheme:"Cambiar tema",personalLib:"Biblioteca personal",excalidrawLib:"Biblioteca Excalidraw",decreaseFontSize:"Disminuir tamaño de letra",increaseFontSize:"Aumentar el tamaño de letra",unbindText:"Desvincular texto",bindText:"Vincular texto al contenedor",createContainerFromText:"Envolver el texto en un contenedor",link:{edit:"Editar enlace",editEmbed:"Editar enlace e incrustar",create:"Crear enlace",createEmbed:"Crear enlace e incrustar",label:"Enlace",labelEmbed:"Enlazar e incrustar",empty:"No se ha establecido un enlace"},lineEditor:{edit:"Editar línea",exit:"Salir del editor en línea"},elementLock:{lock:"Bloquear",unlock:"Desbloquear",lockAll:"Bloquear todo",unlockAll:"Desbloquear todo"},statusPublished:"Publicado",sidebarLock:"Mantener barra lateral abierta",selectAllElementsInFrame:"Seleccionar todos los elementos en el marco",removeAllElementsFromFrame:"Eliminar todos los elementos del marco",eyeDropper:"Seleccionar un color del lienzo",textToDiagram:"Texto a diagrama",prompt:"Sugerencia"},a={noItems:"No hay elementos añadidos todavía...",hint_emptyLibrary:"Seleccione un elemento en el lienzo para añadirlo aquí, o instale una biblioteca del repositorio público, a continuación.",hint_emptyPrivateLibrary:"Seleccione un elemento del lienzo para añadirlo aquí."},o={clearReset:"Limpiar lienzo y reiniciar el color de fondo",exportJSON:"Exportar a archivo",exportImage:"Exportar imagen...",export:"Guardar en...",copyToClipboard:"Copiar al portapapeles",save:"Guardar en archivo actual",saveAs:"Guardar como",load:"Abrir",getShareableLink:"Obtener enlace para compartir",close:"Cerrar",selectLanguage:"Elegir idioma",scrollBackToContent:"Volver al contenido",zoomIn:"Acercarse",zoomOut:"Alejarse",resetZoom:"Restablecer zoom",menu:"Menú",done:"Hecho",edit:"Editar",undo:"Deshacer",redo:"Rehacer",resetLibrary:"Reiniciar biblioteca",createNewRoom:"Crear nueva sala",fullScreen:"Pantalla completa",darkMode:"Modo oscuro",lightMode:"Modo claro",zenMode:"Modo Zen",objectsSnapMode:"Ajustar a los objetos",exitZenMode:"Salir del modo Zen",cancel:"Cancelar",clear:"Borrar",remove:"Eliminar",embed:"",publishLibrary:"Publicar",submit:"Enviar",confirm:"Confirmar",embeddableInteractionButton:"Pulsa para interactuar"},r={clearReset:"Esto limpiará todo el lienzo. Estás seguro?",couldNotCreateShareableLink:"No se pudo crear un enlace para compartir.",couldNotCreateShareableLinkTooBig:"No se pudo crear el enlace para compartir: la escena es demasiado grande",couldNotLoadInvalidFile:"No se pudo cargar el archivo no válido",importBackendFailed:"La importación falló.",cannotExportEmptyCanvas:"No se puede exportar un lienzo vació",couldNotCopyToClipboard:"No se pudo copiar al portapapeles.",decryptFailed:"No se pudieron descifrar los datos.",uploadedSecurly:"La carga ha sido asegurada con cifrado de principio a fin, lo que significa que el servidor de Excalidraw y terceros no pueden leer el contenido.",loadSceneOverridePrompt:"Si carga este dibujo externo, reemplazará el que tiene. ¿Desea continuar?",collabStopOverridePrompt:`Detener la sesión sobrescribirá su dibujo anterior almacenado localmente. ¿Está seguro?
2
2
 
3
3
  (Si desea mantener su dibujo local, simplemente cierre la pestaña del navegador.)`,errorAddingToLibrary:"No se pudo agregar el elemento a la biblioteca",errorRemovingFromLibrary:"No se pudo quitar el elemento de la biblioteca",confirmAddLibrary:"Esto añadirá {{numShapes}} forma(s) a tu biblioteca. ¿Estás seguro?",imageDoesNotContainScene:"Esta imagen no parece contener datos de escena. ¿Ha habilitado la inserción de la escena durante la exportación?",cannotRestoreFromImage:"No se pudo restaurar la escena desde este archivo de imagen",invalidSceneUrl:"No se ha podido importar la escena desde la URL proporcionada. Está mal formada, o no contiene datos de Excalidraw JSON válidos.",resetLibrary:"Esto borrará tu biblioteca. ¿Estás seguro?",removeItemsFromsLibrary:"¿Eliminar {{count}} elemento(s) de la biblioteca?",invalidEncryptionKey:"La clave de cifrado debe tener 22 caracteres. La colaboración en vivo está deshabilitada.",collabOfflineWarning:`No hay conexión a internet disponible.
4
4
  ¡No se guardarán los cambios!`},i={unsupportedFileType:"Tipo de archivo no admitido.",imageInsertError:"No se pudo insertar la imagen. Inténtelo de nuevo más tarde...",fileTooBig:"Archivo demasiado grande. El tamaño máximo permitido es {{maxSize}}.",svgImageInsertError:"No se pudo insertar la imagen SVG. El código SVG parece inválido.",failedToFetchImage:"Error al obtener la imagen.",invalidSVGString:"SVG no válido.",cannotResolveCollabServer:"No se pudo conectar al servidor colaborador. Por favor, vuelva a cargar la página y vuelva a intentarlo.",importLibraryError:"No se pudo cargar la librería",collabSaveFailed:"No se pudo guardar en la base de datos del backend. Si los problemas persisten, debería guardar su archivo localmente para asegurarse de que no pierde su trabajo.",collabSaveFailed_sizeExceeded:"No se pudo guardar en la base de datos del backend, el lienzo parece ser demasiado grande. Debería guardar el archivo localmente para asegurarse de que no pierde su trabajo.",imageToolNotSupported:"",brave_measure_text_error:{line1:"Parece que estás usando el navegador Brave con el ajuste <bold>Forzar el bloqueo de huellas digitales</bold> habilitado.",line2:"Esto podría resultar en errores en los <bold>Elementos de Texto</bold> en tus dibujos.",line3:"Recomendamos fuertemente deshabilitar esta configuración. Puedes seguir <link>estos pasos</link> sobre cómo hacerlo.",line4:""},libraryElementTypeError:{embeddable:"",iframe:"Los elementos IFrame no se pueden agregar a la biblioteca.",image:""},asyncPasteFailedOnRead:"No se pudo pegar (no se pudo leer desde el portapapeles del sistema).",asyncPasteFailedOnParse:"No se pudo pegar.",copyToSystemClipboardFailed:"No se pudo copiar al portapapeles."},t={selection:"Selección",image:"Insertar imagen",rectangle:"Rectángulo",diamond:"Diamante",ellipse:"Elipse",arrow:"Flecha",line:"Línea",freedraw:"Dibujar",text:"Texto",library:"Biblioteca",lock:"Mantener la herramienta seleccionada activa después de dibujar",penMode:"Modo Lápiz - previene toque",link:"Añadir/Actualizar enlace para una forma seleccionada",eraser:"Borrar",frame:"",magicframe:"Esquema a código",embeddable:"Incrustar Web",laser:"Puntero láser",hand:"Mano (herramienta de panoramización)",extraTools:"Más herramientas",mermaidToExcalidraw:"Mermaid a Excalidraw",magicSettings:"Ajustes AI"},n={canvasActions:"Acciones del lienzo",selectedShapeActions:"Acciones de la forma seleccionada",shapes:"Formas"},l={canvasPanning:"Para mover el lienzo, mantenga la rueda del ratón o la barra espaciadora mientras arrastra o utilice la herramienta de mano",linearElement:"Haz clic para dibujar múltiples puntos, arrastrar para solo una línea",freeDraw:"Haz clic y arrastra, suelta al terminar",text:"Consejo: también puedes añadir texto haciendo doble clic en cualquier lugar con la herramienta de selección",embeddable:"Haga clic y arrastre para crear un sitio web incrustado",text_selected:"Doble clic o pulse ENTER para editar el texto",text_editing:"Pulse Escape o Ctrl/Cmd + ENTER para terminar de editar",linearElementMulti:"Haz clic en el último punto o presiona Escape o Enter para finalizar",lockAngle:"Puedes restringir el ángulo manteniendo presionado el botón SHIFT",resize:`Para mantener las proporciones mantén SHIFT presionado mientras modificas el tamaño,