@marimo-team/islands 0.14.18-dev4 → 0.14.18-dev40

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 (1228) hide show
  1. package/dist/{ConnectedDataExplorerComponent-BxgomKEj.js → ConnectedDataExplorerComponent-D9q8jDgz.js} +2 -2
  2. package/dist/{ImageComparisonComponent-euoD7dEQ.js → ImageComparisonComponent-TLrFyeGm.js} +1 -1
  3. package/dist/{_baseUniq-B0fx6-mD.js → _baseUniq-C789h55S.js} +54 -54
  4. package/dist/{any-language-editor-Dhx2399Z.js → any-language-editor-CtYF3mh0.js} +1 -1
  5. package/dist/{architectureDiagram-SUXI7LT5-B0sXh36T.js → architectureDiagram-SUXI7LT5-tI_uA6-G.js} +5 -5
  6. package/dist/assets/{worker-BFGyNjDW.js → worker-COGufAQn.js} +866 -857
  7. package/dist/{blockDiagram-6J76NXCF-BV6y0dGc.js → blockDiagram-6J76NXCF-BkW28X9c.js} +5 -5
  8. package/dist/{c4Diagram-6F6E4RAY-DMvA8syT.js → c4Diagram-6F6E4RAY-Oc0r0zWU.js} +2 -2
  9. package/dist/{channel-DUrqW7jq.js → channel-Cug1-1-S.js} +1 -1
  10. package/dist/{chunk-353BL4L5-D07DCz1P.js → chunk-353BL4L5-BZJMXfnU.js} +1 -1
  11. package/dist/{chunk-67H74DCK-Dxl6YFgh.js → chunk-67H74DCK-m0H-ur8r.js} +1 -1
  12. package/dist/{chunk-AACKK3MU-CAcS9PuO.js → chunk-AACKK3MU-gr8QIV67.js} +1 -1
  13. package/dist/{chunk-BFAMUDN2-Co4EIchY.js → chunk-BFAMUDN2-BYrkUIjj.js} +1 -1
  14. package/dist/{chunk-E2GYISFI-C_TSWe1f.js → chunk-E2GYISFI-CeMgtQH_.js} +1 -1
  15. package/dist/{chunk-OW32GOEJ-C11RCuWa.js → chunk-OW32GOEJ-zkwG7LnM.js} +3 -3
  16. package/dist/{chunk-SKB7J2MH-rWkMGBQ9.js → chunk-SKB7J2MH-_tLm2ZU7.js} +1 -1
  17. package/dist/{chunk-SZ463SBG-C32KIeaO.js → chunk-SZ463SBG-CHYxV7Jf.js} +4 -4
  18. package/dist/{classDiagram-v2-YAWTLIQI-DxWIMGpC.js → classDiagram-M3E45YP4-D2Gg6x1M.js} +2 -2
  19. package/dist/{classDiagram-M3E45YP4-DxWIMGpC.js → classDiagram-v2-YAWTLIQI-D2Gg6x1M.js} +2 -2
  20. package/dist/{clone-ByH0K_W2.js → clone-BZjp8DHO.js} +1 -1
  21. package/dist/common-keywords-BefPf8TA.js +7 -0
  22. package/dist/{dagre-JOIXM2OF-f0SO6y9I.js → dagre-JOIXM2OF-C35wyuSf.js} +6 -6
  23. package/dist/{data-grid-overlay-editor-CfB3QC9_.js → data-grid-overlay-editor-DSpSXYZ0.js} +2 -2
  24. package/dist/{diagram-5UYTHUR4-F7GLu-Ns.js → diagram-5UYTHUR4-BTq6bqU6.js} +3 -3
  25. package/dist/{diagram-VMROVX33-Csog3YHt.js → diagram-VMROVX33-Cy-ErxuA.js} +5 -5
  26. package/dist/{diagram-ZTM2IBQH-Xjsw2NPe.js → diagram-ZTM2IBQH-mgYUHXfx.js} +3 -3
  27. package/dist/duckdb-keywords-WTV2Iln-.js +7 -0
  28. package/dist/{erDiagram-3M52JZNH-BAui6m1D.js → erDiagram-3M52JZNH-oW-ZhqQr.js} +4 -4
  29. package/dist/{flowDiagram-KYDEHFYC-0wQEMK2o.js → flowDiagram-KYDEHFYC-IkABodJ8.js} +5 -5
  30. package/dist/{ganttDiagram-EK5VF46D-DHo-b5pj.js → ganttDiagram-EK5VF46D-hP8YkTqz.js} +77 -77
  31. package/dist/{gitGraphDiagram-GW3U2K7C-wZ-56Hnm.js → gitGraphDiagram-GW3U2K7C-DcZiyFUT.js} +4 -4
  32. package/dist/{glide-data-editor-B3XVw2Mw.js → glide-data-editor-sn6tfLNF.js} +3 -3
  33. package/dist/{graph-DXnsoOOA.js → graph-B03e3k7d.js} +3 -3
  34. package/dist/{index-CU6lfdjU.js → index-BU6LQTfP.js} +144 -144
  35. package/dist/{index-B-ooTna3.js → index-Clz9Ku-U.js} +1 -1
  36. package/dist/{index-DO0k7DqJ.js → index-Cz2tYb3q.js} +1 -1
  37. package/dist/{index-B6IPVf5H.js → index-PgGpU5la.js} +1 -1
  38. package/dist/index-pjylFSfy.js +40315 -0
  39. package/dist/{infoDiagram-LHK5PUON-DUJ_JyYE.js → infoDiagram-LHK5PUON-DW_psL4D.js} +2 -2
  40. package/dist/{journeyDiagram-EWQZEKCU-CoKJET3s.js → journeyDiagram-EWQZEKCU-btmYkpZ5.js} +3 -3
  41. package/dist/{kanban-definition-ZSS6B67P-77ozoRYv.js → kanban-definition-ZSS6B67P-BJgjVeuK.js} +2 -2
  42. package/dist/{layout-CVyew7cl.js → layout-D5tYKGro.js} +35 -35
  43. package/dist/{linear-KLiyUEfW.js → linear-C57Qg6o9.js} +19 -19
  44. package/dist/{main-oBXj9Aa7.js → main-D1gyEFIz.js} +41512 -40168
  45. package/dist/main.js +1 -1
  46. package/dist/{mermaid-DaNqdymj.js → mermaid-B67irHCy.js} +29 -29
  47. package/dist/{min-CtguZ_r5.js → min-DB4yN-iG.js} +14 -14
  48. package/dist/{mindmap-definition-6CBA2TL7-B2lGu2md.js → mindmap-definition-6CBA2TL7-Btj_GH0i.js} +2 -2
  49. package/dist/{number-overlay-editor-oN-BU6fN.js → number-overlay-editor-DLOwjGyR.js} +2 -2
  50. package/dist/{pieDiagram-NIOCPIFQ-BCBeeFaR.js → pieDiagram-NIOCPIFQ-zbyN2OKJ.js} +3 -3
  51. package/dist/{quadrantDiagram-2OG54O6I-BC4xBrui.js → quadrantDiagram-2OG54O6I-6nUlmHsX.js} +2 -2
  52. package/dist/{react-plotly-CiGb_W-q.js → react-plotly-QT9ITkZn.js} +1 -1
  53. package/dist/{requirementDiagram-QOLK2EJ7-B2-hPu1P.js → requirementDiagram-QOLK2EJ7-DHTcmfBW.js} +3 -3
  54. package/dist/{sankeyDiagram-4UZDY2LN-OwmYOUUc.js → sankeyDiagram-4UZDY2LN-C-KvjQAY.js} +1 -1
  55. package/dist/{sequenceDiagram-SKLFT4DO-B27yiIzR.js → sequenceDiagram-SKLFT4DO-DM4_c2yP.js} +3 -3
  56. package/dist/{slides-component-CRfxAQyL.js → slides-component-W8fG0alk.js} +26 -26
  57. package/dist/{stateDiagram-MI5ZYTHO-C_LRbiOo.js → stateDiagram-MI5ZYTHO-CBM4CjaM.js} +4 -4
  58. package/dist/{stateDiagram-v2-5AN5P6BG-DKz7e8Yc.js → stateDiagram-v2-5AN5P6BG-QO6urHDg.js} +2 -2
  59. package/dist/{time-C_5XCLWA.js → time-C5vL_Q_i.js} +2 -2
  60. package/dist/{timeline-definition-MYPXXCX6-C39p9cJ6.js → timeline-definition-MYPXXCX6-CjPJ5yOK.js} +1 -1
  61. package/dist/{treemap-75Q7IDZK-DG5pexEL.js → treemap-75Q7IDZK-CaHoPejr.js} +131 -131
  62. package/dist/{vega-component-B1zImi__.js → vega-component-D4reQ-3p.js} +2 -2
  63. package/dist/{xychartDiagram-H2YORKM3-D3ljR9-t.js → xychartDiagram-H2YORKM3-DHBboBU3.js} +2 -2
  64. package/package.json +12 -6
  65. package/src/README.md +18 -0
  66. package/src/__mocks__/common.ts +160 -0
  67. package/src/__mocks__/notebook.ts +76 -0
  68. package/src/__mocks__/requests.ts +72 -0
  69. package/src/__mocks__/tracebacks.ts +32 -0
  70. package/src/__tests__/CellStatus.test.tsx +263 -0
  71. package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +523 -0
  72. package/src/__tests__/chat-utils.test.ts +234 -0
  73. package/src/__tests__/lru.test.ts +74 -0
  74. package/src/__tests__/main.test.tsx +174 -0
  75. package/src/__tests__/setup.ts +17 -0
  76. package/src/__tests__/test-helpers.ts +24 -0
  77. package/src/assets/circle-check.ico +0 -0
  78. package/src/assets/circle-play.ico +0 -0
  79. package/src/assets/circle-x.ico +0 -0
  80. package/src/assets/gradient.png +0 -0
  81. package/src/assets/icon-16x16.png +0 -0
  82. package/src/assets/icon-32x32.png +0 -0
  83. package/src/assets/noise.png +0 -0
  84. package/src/components/ai/ai-model-dropdown.tsx +280 -0
  85. package/src/components/ai/ai-provider-icon.tsx +52 -0
  86. package/src/components/app-config/ai-config.tsx +855 -0
  87. package/src/components/app-config/app-config-button.tsx +100 -0
  88. package/src/components/app-config/app-config-form.tsx +307 -0
  89. package/src/components/app-config/common.tsx +48 -0
  90. package/src/components/app-config/constants.ts +13 -0
  91. package/src/components/app-config/incorrect-model-id.tsx +43 -0
  92. package/src/components/app-config/is-overridden.tsx +119 -0
  93. package/src/components/app-config/optional-features.tsx +251 -0
  94. package/src/components/app-config/state.ts +18 -0
  95. package/src/components/app-config/user-config-form.tsx +1361 -0
  96. package/src/components/audio/audio-recorder.tsx +63 -0
  97. package/src/components/buttons/clear-button.tsx +23 -0
  98. package/src/components/buttons/undo-button.tsx +35 -0
  99. package/src/components/chat/chat-panel.tsx +715 -0
  100. package/src/components/chat/markdown-renderer.tsx +217 -0
  101. package/src/components/chat/reasoning-accordion.tsx +50 -0
  102. package/src/components/chat/tool-call-accordion.tsx +118 -0
  103. package/src/components/data-table/SearchBar.tsx +66 -0
  104. package/src/components/data-table/TableActions.tsx +183 -0
  105. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +1079 -0
  106. package/src/components/data-table/__tests__/chart-spec-model.test.ts +707 -0
  107. package/src/components/data-table/__tests__/column_formatting.test.ts +115 -0
  108. package/src/components/data-table/__tests__/columns.test.tsx +341 -0
  109. package/src/components/data-table/__tests__/data-table.test.tsx +60 -0
  110. package/src/components/data-table/__tests__/pagination.test.tsx +152 -0
  111. package/src/components/data-table/__tests__/types.test.ts +44 -0
  112. package/src/components/data-table/__tests__/url-detector.test.tsx +169 -0
  113. package/src/components/data-table/__tests__/useColumnPinning.test.ts +76 -0
  114. package/src/components/data-table/cell-selection/__tests__/feature.test.ts +187 -0
  115. package/src/components/data-table/cell-selection/feature.ts +123 -0
  116. package/src/components/data-table/cell-selection/types.ts +49 -0
  117. package/src/components/data-table/cell-styling/feature.ts +40 -0
  118. package/src/components/data-table/cell-styling/types.ts +26 -0
  119. package/src/components/data-table/charts/README.md +65 -0
  120. package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +47 -0
  121. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +425 -0
  122. package/src/components/data-table/charts/__tests__/renderer.test.ts +20 -0
  123. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +83 -0
  124. package/src/components/data-table/charts/__tests__/spec.test.ts +997 -0
  125. package/src/components/data-table/charts/__tests__/storage.test.ts +103 -0
  126. package/src/components/data-table/charts/chart-spec/altair-generator.ts +162 -0
  127. package/src/components/data-table/charts/chart-spec/encodings.ts +173 -0
  128. package/src/components/data-table/charts/chart-spec/spec.ts +345 -0
  129. package/src/components/data-table/charts/chart-spec/tooltips.ts +168 -0
  130. package/src/components/data-table/charts/chart-spec/types.ts +77 -0
  131. package/src/components/data-table/charts/charts.tsx +492 -0
  132. package/src/components/data-table/charts/components/chart-items.tsx +369 -0
  133. package/src/components/data-table/charts/components/chart-states.tsx +37 -0
  134. package/src/components/data-table/charts/components/form-fields.tsx +872 -0
  135. package/src/components/data-table/charts/components/layouts.tsx +118 -0
  136. package/src/components/data-table/charts/constants.ts +159 -0
  137. package/src/components/data-table/charts/context.ts +20 -0
  138. package/src/components/data-table/charts/forms/common-chart.tsx +202 -0
  139. package/src/components/data-table/charts/forms/heatmap.tsx +44 -0
  140. package/src/components/data-table/charts/forms/pie.tsx +70 -0
  141. package/src/components/data-table/charts/lazy-chart.tsx +56 -0
  142. package/src/components/data-table/charts/schemas.ts +140 -0
  143. package/src/components/data-table/charts/storage.ts +88 -0
  144. package/src/components/data-table/charts/types.ts +124 -0
  145. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +227 -0
  146. package/src/components/data-table/column-formatting/feature.ts +247 -0
  147. package/src/components/data-table/column-formatting/types.ts +54 -0
  148. package/src/components/data-table/column-header.tsx +672 -0
  149. package/src/components/data-table/column-summary/chart-skeleton.tsx +57 -0
  150. package/src/components/data-table/column-summary/chart-spec-model.tsx +916 -0
  151. package/src/components/data-table/column-summary/column-summary.tsx +166 -0
  152. package/src/components/data-table/column-summary/legacy-chart-spec.ts +242 -0
  153. package/src/components/data-table/column-summary/utils.ts +142 -0
  154. package/src/components/data-table/column-wrapping/feature.ts +62 -0
  155. package/src/components/data-table/column-wrapping/types.ts +29 -0
  156. package/src/components/data-table/columns.tsx +528 -0
  157. package/src/components/data-table/copy-column/feature.ts +27 -0
  158. package/src/components/data-table/copy-column/types.ts +19 -0
  159. package/src/components/data-table/data-table.tsx +298 -0
  160. package/src/components/data-table/date-popover.tsx +146 -0
  161. package/src/components/data-table/download-actions.tsx +186 -0
  162. package/src/components/data-table/filter-pills.tsx +120 -0
  163. package/src/components/data-table/filters.ts +202 -0
  164. package/src/components/data-table/focus-row/feature.ts +41 -0
  165. package/src/components/data-table/focus-row/types.ts +32 -0
  166. package/src/components/data-table/header-items.tsx +295 -0
  167. package/src/components/data-table/hooks/use-column-pinning.ts +51 -0
  168. package/src/components/data-table/hooks/use-panel-ownership.ts +98 -0
  169. package/src/components/data-table/loading-table.tsx +56 -0
  170. package/src/components/data-table/mime-cell.tsx +68 -0
  171. package/src/components/data-table/pagination.tsx +329 -0
  172. package/src/components/data-table/range-focus/__tests__/atoms.test.ts +907 -0
  173. package/src/components/data-table/range-focus/__tests__/utils.test.ts +316 -0
  174. package/src/components/data-table/range-focus/atoms.ts +380 -0
  175. package/src/components/data-table/range-focus/cell-selection-indicator.tsx +37 -0
  176. package/src/components/data-table/range-focus/provider.tsx +13 -0
  177. package/src/components/data-table/range-focus/use-cell-range-selection.ts +119 -0
  178. package/src/components/data-table/range-focus/use-scroll-into-view.ts +46 -0
  179. package/src/components/data-table/range-focus/utils.ts +105 -0
  180. package/src/components/data-table/renderers.tsx +247 -0
  181. package/src/components/data-table/row-viewer-panel/__tests__/filter-rows.test.ts +82 -0
  182. package/src/components/data-table/row-viewer-panel/__tests__/row-viewer.test.tsx +58 -0
  183. package/src/components/data-table/row-viewer-panel/row-viewer.tsx +371 -0
  184. package/src/components/data-table/types.ts +81 -0
  185. package/src/components/data-table/uniformSample.tsx +19 -0
  186. package/src/components/data-table/url-detector.tsx +111 -0
  187. package/src/components/data-table/utils.ts +46 -0
  188. package/src/components/databases/display.tsx +66 -0
  189. package/src/components/databases/engine-variable.tsx +51 -0
  190. package/src/components/databases/icon.tsx +91 -0
  191. package/src/components/databases/icons/clickhouse.svg +1 -0
  192. package/src/components/databases/icons/databricks.svg +1 -0
  193. package/src/components/databases/icons/datafusion.png +0 -0
  194. package/src/components/databases/icons/duckdb.svg +1 -0
  195. package/src/components/databases/icons/googlebigquery.svg +1 -0
  196. package/src/components/databases/icons/iceberg.png +0 -0
  197. package/src/components/databases/icons/motherduck.svg +9 -0
  198. package/src/components/databases/icons/mysql.svg +1 -0
  199. package/src/components/databases/icons/postgresql.svg +1 -0
  200. package/src/components/databases/icons/redshift.svg +1 -0
  201. package/src/components/databases/icons/snowflake.svg +1 -0
  202. package/src/components/databases/icons/spark.svg +1 -0
  203. package/src/components/databases/icons/sqlalchemy.svg +1 -0
  204. package/src/components/databases/icons/sqlite.svg +1 -0
  205. package/src/components/databases/icons/timeplus.svg +17 -0
  206. package/src/components/databases/icons/trino.svg +1 -0
  207. package/src/components/datasets/icons.tsx +55 -0
  208. package/src/components/datasources/__tests__/install-package-button.test.tsx +85 -0
  209. package/src/components/datasources/__tests__/utils.test.ts +171 -0
  210. package/src/components/datasources/column-preview.tsx +269 -0
  211. package/src/components/datasources/components.tsx +100 -0
  212. package/src/components/datasources/datasources.tsx +782 -0
  213. package/src/components/datasources/install-package-button.tsx +46 -0
  214. package/src/components/datasources/utils.ts +62 -0
  215. package/src/components/debug/indicator.tsx +19 -0
  216. package/src/components/debugger/debugger-code.css +3 -0
  217. package/src/components/debugger/debugger-code.tsx +222 -0
  218. package/src/components/dependency-graph/custom-node.tsx +89 -0
  219. package/src/components/dependency-graph/dependency-graph-minimap.tsx +197 -0
  220. package/src/components/dependency-graph/dependency-graph-tree.tsx +181 -0
  221. package/src/components/dependency-graph/dependency-graph.css +17 -0
  222. package/src/components/dependency-graph/dependency-graph.tsx +66 -0
  223. package/src/components/dependency-graph/elements.ts +185 -0
  224. package/src/components/dependency-graph/panels.tsx +279 -0
  225. package/src/components/dependency-graph/types.ts +21 -0
  226. package/src/components/dependency-graph/utils/changes.ts +54 -0
  227. package/src/components/dependency-graph/utils/layout.ts +45 -0
  228. package/src/components/dependency-graph/utils/useFitToViewOnDimensionChange.ts +25 -0
  229. package/src/components/editor/Cell.tsx +1175 -0
  230. package/src/components/editor/Disconnected.tsx +72 -0
  231. package/src/components/editor/Output.tsx +462 -0
  232. package/src/components/editor/RecoveryButton.tsx +161 -0
  233. package/src/components/editor/SortableCell.tsx +161 -0
  234. package/src/components/editor/__tests__/data-attributes.test.tsx +173 -0
  235. package/src/components/editor/__tests__/dynamic-favicon.test.tsx +183 -0
  236. package/src/components/editor/actions/name-cell-input.tsx +137 -0
  237. package/src/components/editor/actions/types.ts +53 -0
  238. package/src/components/editor/actions/useCellActionButton.tsx +422 -0
  239. package/src/components/editor/actions/useConfigActions.tsx +182 -0
  240. package/src/components/editor/actions/useCopyNotebook.tsx +41 -0
  241. package/src/components/editor/actions/useHideAllMarkdownCode.ts +53 -0
  242. package/src/components/editor/actions/useNotebookActions.tsx +556 -0
  243. package/src/components/editor/actions/useRestartKernel.tsx +36 -0
  244. package/src/components/editor/ai/__tests__/completion-utils.test.ts +379 -0
  245. package/src/components/editor/ai/add-cell-with-ai.tsx +423 -0
  246. package/src/components/editor/ai/ai-completion-editor.tsx +261 -0
  247. package/src/components/editor/ai/completion-utils.ts +95 -0
  248. package/src/components/editor/ai/merge-editor.css +9 -0
  249. package/src/components/editor/alerts/connecting-alert.tsx +46 -0
  250. package/src/components/editor/alerts/floating-alert.tsx +47 -0
  251. package/src/components/editor/alerts/stdin-blocking-alert.tsx +61 -0
  252. package/src/components/editor/app-container.tsx +53 -0
  253. package/src/components/editor/boundary/ErrorBoundary.tsx +41 -0
  254. package/src/components/editor/cell/CellStatus.tsx +371 -0
  255. package/src/components/editor/cell/CreateCellButton.tsx +132 -0
  256. package/src/components/editor/cell/DeleteButton.tsx +58 -0
  257. package/src/components/editor/cell/PendingDeleteConfirmation.tsx +126 -0
  258. package/src/components/editor/cell/RunButton.tsx +109 -0
  259. package/src/components/editor/cell/StopButton.tsx +36 -0
  260. package/src/components/editor/cell/TinyCode.css +10 -0
  261. package/src/components/editor/cell/TinyCode.tsx +53 -0
  262. package/src/components/editor/cell/cell-actions.tsx +185 -0
  263. package/src/components/editor/cell/cell-context-menu.tsx +243 -0
  264. package/src/components/editor/cell/cell-status.css +21 -0
  265. package/src/components/editor/cell/code/cell-editor.tsx +546 -0
  266. package/src/components/editor/cell/code/icons.tsx +31 -0
  267. package/src/components/editor/cell/code/language-toggle.tsx +140 -0
  268. package/src/components/editor/cell/collapse.tsx +100 -0
  269. package/src/components/editor/cell/toolbar.tsx +89 -0
  270. package/src/components/editor/cell/useAddCell.ts +29 -0
  271. package/src/components/editor/cell/useDeleteCell.tsx +89 -0
  272. package/src/components/editor/cell/useRunCells.ts +86 -0
  273. package/src/components/editor/cell/useShouldShowInterrupt.ts +26 -0
  274. package/src/components/editor/cell/useSplitCell.tsx +41 -0
  275. package/src/components/editor/chrome/components/contribute-snippet-button.tsx +138 -0
  276. package/src/components/editor/chrome/components/feedback-button.tsx +105 -0
  277. package/src/components/editor/chrome/panels/__tests__/write-secret-modal.test.ts +43 -0
  278. package/src/components/editor/chrome/panels/constants.ts +2 -0
  279. package/src/components/editor/chrome/panels/context-aware-panel/atoms.ts +28 -0
  280. package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +167 -0
  281. package/src/components/editor/chrome/panels/datasources-panel.tsx +6 -0
  282. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +23 -0
  283. package/src/components/editor/chrome/panels/documentation-panel.tsx +29 -0
  284. package/src/components/editor/chrome/panels/empty-state.tsx +28 -0
  285. package/src/components/editor/chrome/panels/error-panel.tsx +35 -0
  286. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +33 -0
  287. package/src/components/editor/chrome/panels/logs-panel.tsx +97 -0
  288. package/src/components/editor/chrome/panels/outline/floating-outline.tsx +129 -0
  289. package/src/components/editor/chrome/panels/outline/useActiveOutline.tsx +172 -0
  290. package/src/components/editor/chrome/panels/outline-panel.css +6 -0
  291. package/src/components/editor/chrome/panels/outline-panel.tsx +39 -0
  292. package/src/components/editor/chrome/panels/packages-panel.tsx +635 -0
  293. package/src/components/editor/chrome/panels/packages-state.ts +5 -0
  294. package/src/components/editor/chrome/panels/scratchpad-panel.tsx +8 -0
  295. package/src/components/editor/chrome/panels/secrets-panel.tsx +155 -0
  296. package/src/components/editor/chrome/panels/snippets-panel.css +11 -0
  297. package/src/components/editor/chrome/panels/snippets-panel.tsx +230 -0
  298. package/src/components/editor/chrome/panels/tracing-panel.tsx +28 -0
  299. package/src/components/editor/chrome/panels/variable-panel.tsx +31 -0
  300. package/src/components/editor/chrome/panels/write-secret-modal.tsx +190 -0
  301. package/src/components/editor/chrome/state.ts +102 -0
  302. package/src/components/editor/chrome/types.ts +133 -0
  303. package/src/components/editor/chrome/wrapper/__tests__/minimap-state.test.ts +209 -0
  304. package/src/components/editor/chrome/wrapper/__tests__/storage.test.ts +41 -0
  305. package/src/components/editor/chrome/wrapper/app-chrome.css +22 -0
  306. package/src/components/editor/chrome/wrapper/app-chrome.tsx +256 -0
  307. package/src/components/editor/chrome/wrapper/footer-item.tsx +43 -0
  308. package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +47 -0
  309. package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +111 -0
  310. package/src/components/editor/chrome/wrapper/footer-items/copilot-status.tsx +125 -0
  311. package/src/components/editor/chrome/wrapper/footer-items/machine-stats.tsx +185 -0
  312. package/src/components/editor/chrome/wrapper/footer-items/minimap-status.tsx +21 -0
  313. package/src/components/editor/chrome/wrapper/footer-items/rtc-status.tsx +65 -0
  314. package/src/components/editor/chrome/wrapper/footer-items/runtime-settings.tsx +370 -0
  315. package/src/components/editor/chrome/wrapper/footer.tsx +90 -0
  316. package/src/components/editor/chrome/wrapper/minimap-state.ts +164 -0
  317. package/src/components/editor/chrome/wrapper/minimap.tsx +443 -0
  318. package/src/components/editor/chrome/wrapper/panels.tsx +10 -0
  319. package/src/components/editor/chrome/wrapper/sidebar.tsx +100 -0
  320. package/src/components/editor/chrome/wrapper/storage.ts +56 -0
  321. package/src/components/editor/chrome/wrapper/utils.ts +8 -0
  322. package/src/components/editor/code/readonly-python-code.tsx +160 -0
  323. package/src/components/editor/columns/__tests__/storage.test.ts +104 -0
  324. package/src/components/editor/columns/cell-column.tsx +105 -0
  325. package/src/components/editor/columns/sortable-column.tsx +175 -0
  326. package/src/components/editor/columns/storage.ts +56 -0
  327. package/src/components/editor/common.ts +20 -0
  328. package/src/components/editor/controls/Controls.tsx +225 -0
  329. package/src/components/editor/controls/command-palette-button.tsx +27 -0
  330. package/src/components/editor/controls/command-palette.tsx +210 -0
  331. package/src/components/editor/controls/keyboard-shortcuts.tsx +309 -0
  332. package/src/components/editor/controls/notebook-menu-dropdown.tsx +157 -0
  333. package/src/components/editor/controls/shutdown-button.tsx +70 -0
  334. package/src/components/editor/database/__tests__/__snapshots__/as-code.test.ts.snap +659 -0
  335. package/src/components/editor/database/__tests__/as-code.test.ts +598 -0
  336. package/src/components/editor/database/__tests__/secrets.test.ts +38 -0
  337. package/src/components/editor/database/add-database-form.tsx +395 -0
  338. package/src/components/editor/database/as-code.ts +786 -0
  339. package/src/components/editor/database/form-renderers.tsx +211 -0
  340. package/src/components/editor/database/schemas.ts +485 -0
  341. package/src/components/editor/database/secrets.ts +25 -0
  342. package/src/components/editor/documentation.css +139 -0
  343. package/src/components/editor/dynamic-favicon.tsx +126 -0
  344. package/src/components/editor/errors/auto-fix.tsx +61 -0
  345. package/src/components/editor/file-tree/__tests__/requesting-tree.test.ts +321 -0
  346. package/src/components/editor/file-tree/file-explorer.tsx +679 -0
  347. package/src/components/editor/file-tree/file-viewer.tsx +283 -0
  348. package/src/components/editor/file-tree/renderers.tsx +83 -0
  349. package/src/components/editor/file-tree/requesting-tree.tsx +228 -0
  350. package/src/components/editor/file-tree/state.tsx +26 -0
  351. package/src/components/editor/file-tree/types.ts +118 -0
  352. package/src/components/editor/file-tree/upload.tsx +101 -0
  353. package/src/components/editor/header/app-header.tsx +28 -0
  354. package/src/components/editor/header/filename-form.tsx +27 -0
  355. package/src/components/editor/header/filename-input.css +21 -0
  356. package/src/components/editor/header/filename-input.tsx +244 -0
  357. package/src/components/editor/header/status.tsx +72 -0
  358. package/src/components/editor/inputs/Inputs.css +118 -0
  359. package/src/components/editor/inputs/Inputs.styles.ts +66 -0
  360. package/src/components/editor/inputs/Inputs.tsx +34 -0
  361. package/src/components/editor/kiosk-mode.tsx +25 -0
  362. package/src/components/editor/links/cell-link-list.tsx +74 -0
  363. package/src/components/editor/links/cell-link.tsx +128 -0
  364. package/src/components/editor/navigation/__tests__/clipboard.test.ts +466 -0
  365. package/src/components/editor/navigation/__tests__/navigation.test.ts +1743 -0
  366. package/src/components/editor/navigation/__tests__/selection.test.ts +194 -0
  367. package/src/components/editor/navigation/clipboard.ts +205 -0
  368. package/src/components/editor/navigation/focus-utils.ts +48 -0
  369. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +499 -0
  370. package/src/components/editor/navigation/navigation.ts +698 -0
  371. package/src/components/editor/navigation/selection.ts +114 -0
  372. package/src/components/editor/navigation/state.ts +5 -0
  373. package/src/components/editor/navigation/vim-bindings.test.ts +109 -0
  374. package/src/components/editor/navigation/vim-bindings.ts +90 -0
  375. package/src/components/editor/notebook-banner.tsx +75 -0
  376. package/src/components/editor/output/CalloutOutput.styles.ts +22 -0
  377. package/src/components/editor/output/CalloutOutput.tsx +19 -0
  378. package/src/components/editor/output/ConsoleOutput.tsx +276 -0
  379. package/src/components/editor/output/EmotionCacheProvider.tsx +32 -0
  380. package/src/components/editor/output/HtmlOutput.tsx +25 -0
  381. package/src/components/editor/output/ImageOutput.tsx +25 -0
  382. package/src/components/editor/output/JsonOutput.tsx +424 -0
  383. package/src/components/editor/output/MarimoErrorOutput.tsx +511 -0
  384. package/src/components/editor/output/MarimoTracebackOutput.tsx +233 -0
  385. package/src/components/editor/output/Outputs.css +102 -0
  386. package/src/components/editor/output/TextOutput.tsx +42 -0
  387. package/src/components/editor/output/VideoOutput.tsx +11 -0
  388. package/src/components/editor/output/__tests__/ansi.test.ts +39 -0
  389. package/src/components/editor/output/__tests__/json-output.test.ts +269 -0
  390. package/src/components/editor/output/__tests__/traceback.test.tsx +105 -0
  391. package/src/components/editor/output/useWrapText.ts +14 -0
  392. package/src/components/editor/package-alert.tsx +596 -0
  393. package/src/components/editor/renderMimeIcon.tsx +38 -0
  394. package/src/components/editor/renderers/CellArray.tsx +352 -0
  395. package/src/components/editor/renderers/cells-renderer.tsx +96 -0
  396. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +650 -0
  397. package/src/components/editor/renderers/grid-layout/plugin.tsx +146 -0
  398. package/src/components/editor/renderers/grid-layout/styles.css +31 -0
  399. package/src/components/editor/renderers/grid-layout/types.ts +89 -0
  400. package/src/components/editor/renderers/layout-select.tsx +86 -0
  401. package/src/components/editor/renderers/plugins.ts +31 -0
  402. package/src/components/editor/renderers/slides-layout/plugin.tsx +31 -0
  403. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +74 -0
  404. package/src/components/editor/renderers/slides-layout/types.ts +12 -0
  405. package/src/components/editor/renderers/types.ts +75 -0
  406. package/src/components/editor/renderers/vertical-layout/__tests__/useDelayVisibility.test.ts +87 -0
  407. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +123 -0
  408. package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +173 -0
  409. package/src/components/editor/renderers/vertical-layout/sidebar/__tests__/sidebar.test.tsx +56 -0
  410. package/src/components/editor/renderers/vertical-layout/sidebar/sheet-sidebar.tsx +32 -0
  411. package/src/components/editor/renderers/vertical-layout/sidebar/sidebar-slot.tsx +10 -0
  412. package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.css +20 -0
  413. package/src/components/editor/renderers/vertical-layout/sidebar/sidebar.tsx +30 -0
  414. package/src/components/editor/renderers/vertical-layout/sidebar/state.ts +46 -0
  415. package/src/components/editor/renderers/vertical-layout/sidebar/toggle.tsx +25 -0
  416. package/src/components/editor/renderers/vertical-layout/sidebar/wrapped-with-sidebar.tsx +38 -0
  417. package/src/components/editor/renderers/vertical-layout/useDelayVisibility.ts +32 -0
  418. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +107 -0
  419. package/src/components/editor/renderers/vertical-layout/vertical-layout-wrapper.tsx +46 -0
  420. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +451 -0
  421. package/src/components/editor/stdin-blocking-alert.tsx +83 -0
  422. package/src/components/export/export-output-button.tsx +14 -0
  423. package/src/components/find-replace/find-replace.tsx +293 -0
  424. package/src/components/forms/__tests__/form-utils.test.ts +104 -0
  425. package/src/components/forms/form-utils.ts +90 -0
  426. package/src/components/forms/form.tsx +817 -0
  427. package/src/components/forms/options.ts +59 -0
  428. package/src/components/forms/switchable-multi-select.tsx +134 -0
  429. package/src/components/home/components.tsx +189 -0
  430. package/src/components/home/state.ts +30 -0
  431. package/src/components/icons/copy-icon.tsx +59 -0
  432. package/src/components/icons/github-copilot.tsx +17 -0
  433. package/src/components/icons/large-spinner.tsx +39 -0
  434. package/src/components/icons/loading-ellipsis.tsx +46 -0
  435. package/src/components/icons/multi-icon.css +9 -0
  436. package/src/components/icons/multi-icon.tsx +30 -0
  437. package/src/components/icons/spinner.tsx +38 -0
  438. package/src/components/layout/toolbar.tsx +26 -0
  439. package/src/components/modal/ImperativeModal.tsx +187 -0
  440. package/src/components/pages/edit-page.tsx +37 -0
  441. package/src/components/pages/home-page.tsx +514 -0
  442. package/src/components/pages/run-page.tsx +55 -0
  443. package/src/components/scratchpad/scratchpad-history.ts +28 -0
  444. package/src/components/scratchpad/scratchpad.tsx +280 -0
  445. package/src/components/shortcuts/renderShortcut.tsx +208 -0
  446. package/src/components/slides/slides-component.tsx +132 -0
  447. package/src/components/slides/slides.css +100 -0
  448. package/src/components/sort/SortableCellsProvider.tsx +242 -0
  449. package/src/components/static-html/share-modal.tsx +181 -0
  450. package/src/components/static-html/static-banner.tsx +164 -0
  451. package/src/components/terminal/terminal.tsx +110 -0
  452. package/src/components/terminal/xterm.css +3 -0
  453. package/src/components/tracing/tracing-spec.ts +118 -0
  454. package/src/components/tracing/tracing.test.tsx +66 -0
  455. package/src/components/tracing/tracing.tsx +410 -0
  456. package/src/components/ui/accordion.tsx +70 -0
  457. package/src/components/ui/alert-dialog.tsx +176 -0
  458. package/src/components/ui/alert.tsx +64 -0
  459. package/src/components/ui/aria-popover.tsx +43 -0
  460. package/src/components/ui/badge.tsx +41 -0
  461. package/src/components/ui/button.tsx +156 -0
  462. package/src/components/ui/calendar.tsx +231 -0
  463. package/src/components/ui/card.tsx +83 -0
  464. package/src/components/ui/checkbox.tsx +33 -0
  465. package/src/components/ui/combobox.tsx +278 -0
  466. package/src/components/ui/command.tsx +165 -0
  467. package/src/components/ui/context-menu.tsx +193 -0
  468. package/src/components/ui/date-input.tsx +127 -0
  469. package/src/components/ui/date-picker.tsx +188 -0
  470. package/src/components/ui/dialog.tsx +155 -0
  471. package/src/components/ui/draggable-popover.tsx +68 -0
  472. package/src/components/ui/dropdown-menu.tsx +189 -0
  473. package/src/components/ui/field.tsx +90 -0
  474. package/src/components/ui/form.tsx +224 -0
  475. package/src/components/ui/fullscreen.tsx +38 -0
  476. package/src/components/ui/input.tsx +208 -0
  477. package/src/components/ui/kbd.tsx +22 -0
  478. package/src/components/ui/label.tsx +26 -0
  479. package/src/components/ui/links.tsx +23 -0
  480. package/src/components/ui/menu-items.tsx +101 -0
  481. package/src/components/ui/native-select.tsx +39 -0
  482. package/src/components/ui/navigation.tsx +154 -0
  483. package/src/components/ui/number-field.tsx +99 -0
  484. package/src/components/ui/popover.tsx +63 -0
  485. package/src/components/ui/progress.tsx +28 -0
  486. package/src/components/ui/radio-group.tsx +44 -0
  487. package/src/components/ui/range-slider.tsx +102 -0
  488. package/src/components/ui/scroll-area.tsx +47 -0
  489. package/src/components/ui/select.tsx +167 -0
  490. package/src/components/ui/sheet.tsx +143 -0
  491. package/src/components/ui/skeleton.tsx +16 -0
  492. package/src/components/ui/slider.tsx +80 -0
  493. package/src/components/ui/switch.tsx +54 -0
  494. package/src/components/ui/table.tsx +122 -0
  495. package/src/components/ui/tabs.tsx +55 -0
  496. package/src/components/ui/textarea.tsx +104 -0
  497. package/src/components/ui/toast.tsx +133 -0
  498. package/src/components/ui/toaster.tsx +30 -0
  499. package/src/components/ui/toggle.tsx +49 -0
  500. package/src/components/ui/tooltip.tsx +87 -0
  501. package/src/components/ui/typography.tsx +207 -0
  502. package/src/components/ui/use-restore-focus.ts +28 -0
  503. package/src/components/ui/use-toast.ts +224 -0
  504. package/src/components/utils/delay-mount.tsx +81 -0
  505. package/src/components/utils/lazy-mount.tsx +24 -0
  506. package/src/components/variables/common.tsx +37 -0
  507. package/src/components/variables/variables-table.tsx +335 -0
  508. package/src/core/MarimoApp.tsx +103 -0
  509. package/src/core/ai/__tests__/model-registry.test.ts +357 -0
  510. package/src/core/ai/chat-utils.ts +71 -0
  511. package/src/core/ai/config.ts +76 -0
  512. package/src/core/ai/context/__tests__/registry.test.ts +516 -0
  513. package/src/core/ai/context/context.ts +16 -0
  514. package/src/core/ai/context/providers/__tests__/__snapshots__/tables.test.ts.snap +291 -0
  515. package/src/core/ai/context/providers/__tests__/__snapshots__/variable.test.ts.snap +378 -0
  516. package/src/core/ai/context/providers/__tests__/tables.test.ts +271 -0
  517. package/src/core/ai/context/providers/__tests__/variable.test.ts +312 -0
  518. package/src/core/ai/context/providers/common.ts +7 -0
  519. package/src/core/ai/context/providers/tables.ts +208 -0
  520. package/src/core/ai/context/providers/variable.ts +72 -0
  521. package/src/core/ai/context/registry.ts +180 -0
  522. package/src/core/ai/ids/__tests__/ids.test.ts +193 -0
  523. package/src/core/ai/ids/ids.ts +70 -0
  524. package/src/core/ai/model-registry.ts +164 -0
  525. package/src/core/ai/state.ts +58 -0
  526. package/src/core/alerts/state.ts +75 -0
  527. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +1312 -0
  528. package/src/core/cells/__tests__/add-missing-import.test.ts +78 -0
  529. package/src/core/cells/__tests__/cell.test.ts +193 -0
  530. package/src/core/cells/__tests__/cells.test.ts +2664 -0
  531. package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +239 -0
  532. package/src/core/cells/__tests__/focus.test.ts +271 -0
  533. package/src/core/cells/__tests__/ids.test.ts +90 -0
  534. package/src/core/cells/__tests__/names.test.ts +62 -0
  535. package/src/core/cells/__tests__/pending-delete-service.test.tsx +202 -0
  536. package/src/core/cells/__tests__/runs.test.ts +453 -0
  537. package/src/core/cells/__tests__/session.test.ts +757 -0
  538. package/src/core/cells/__tests__/utils.test.ts +428 -0
  539. package/src/core/cells/actions.ts +21 -0
  540. package/src/core/cells/add-missing-import.ts +114 -0
  541. package/src/core/cells/cell.ts +243 -0
  542. package/src/core/cells/cells.ts +1751 -0
  543. package/src/core/cells/collapseConsoleOutputs.tsx +133 -0
  544. package/src/core/cells/effects.ts +42 -0
  545. package/src/core/cells/focus.ts +128 -0
  546. package/src/core/cells/ids.ts +124 -0
  547. package/src/core/cells/logs.ts +114 -0
  548. package/src/core/cells/names.ts +107 -0
  549. package/src/core/cells/outline.ts +30 -0
  550. package/src/core/cells/outputs.ts +34 -0
  551. package/src/core/cells/pending-delete-service.ts +183 -0
  552. package/src/core/cells/runs.ts +196 -0
  553. package/src/core/cells/scrollCellIntoView.ts +133 -0
  554. package/src/core/cells/session.ts +281 -0
  555. package/src/core/cells/types.ts +128 -0
  556. package/src/core/cells/utils.ts +141 -0
  557. package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +216 -0
  558. package/src/core/codemirror/__tests__/extensions.test.ts +117 -0
  559. package/src/core/codemirror/__tests__/format.test.ts +227 -0
  560. package/src/core/codemirror/__tests__/setup.test.ts +178 -0
  561. package/src/core/codemirror/ai/request.ts +72 -0
  562. package/src/core/codemirror/ai/resources.ts +90 -0
  563. package/src/core/codemirror/cells/extensions.ts +387 -0
  564. package/src/core/codemirror/cells/state.ts +32 -0
  565. package/src/core/codemirror/cells/traceback-decorations.ts +111 -0
  566. package/src/core/codemirror/cm.ts +267 -0
  567. package/src/core/codemirror/compat/__tests__/jupyter.test.ts +136 -0
  568. package/src/core/codemirror/compat/jupyter.tsx +244 -0
  569. package/src/core/codemirror/completion/Autocompleter.ts +172 -0
  570. package/src/core/codemirror/completion/__tests__/hints.test.ts +84 -0
  571. package/src/core/codemirror/completion/__tests__/keymap.test.ts +44 -0
  572. package/src/core/codemirror/completion/completer.ts +58 -0
  573. package/src/core/codemirror/completion/hints.ts +143 -0
  574. package/src/core/codemirror/completion/keymap.ts +70 -0
  575. package/src/core/codemirror/completion/utils.ts +18 -0
  576. package/src/core/codemirror/completion/variable-completions.ts +100 -0
  577. package/src/core/codemirror/config/extension.ts +63 -0
  578. package/src/core/codemirror/config/types.ts +10 -0
  579. package/src/core/codemirror/copilot/__tests__/copilot.test.ts +260 -0
  580. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +209 -0
  581. package/src/core/codemirror/copilot/__tests__/trim-utils.test.ts +291 -0
  582. package/src/core/codemirror/copilot/client.ts +123 -0
  583. package/src/core/codemirror/copilot/copilot-config.tsx +285 -0
  584. package/src/core/codemirror/copilot/extension.ts +285 -0
  585. package/src/core/codemirror/copilot/getCodes.ts +130 -0
  586. package/src/core/codemirror/copilot/language-server.ts +255 -0
  587. package/src/core/codemirror/copilot/state.ts +66 -0
  588. package/src/core/codemirror/copilot/trim-utils.ts +33 -0
  589. package/src/core/codemirror/copilot/types.ts +41 -0
  590. package/src/core/codemirror/editing/__tests__/commands.test.ts +106 -0
  591. package/src/core/codemirror/editing/__tests__/debugging.test.ts +193 -0
  592. package/src/core/codemirror/editing/commands.ts +25 -0
  593. package/src/core/codemirror/editing/debugging.ts +58 -0
  594. package/src/core/codemirror/editing/extensions.ts +4 -0
  595. package/src/core/codemirror/extensions.ts +95 -0
  596. package/src/core/codemirror/facet.ts +19 -0
  597. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +695 -0
  598. package/src/core/codemirror/find-replace/extension.ts +41 -0
  599. package/src/core/codemirror/find-replace/navigate.ts +221 -0
  600. package/src/core/codemirror/find-replace/query.ts +31 -0
  601. package/src/core/codemirror/find-replace/search-highlight.ts +148 -0
  602. package/src/core/codemirror/find-replace/state.ts +167 -0
  603. package/src/core/codemirror/format.ts +120 -0
  604. package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +205 -0
  605. package/src/core/codemirror/go-to-definition/commands.ts +80 -0
  606. package/src/core/codemirror/go-to-definition/extension.ts +23 -0
  607. package/src/core/codemirror/go-to-definition/underline.ts +223 -0
  608. package/src/core/codemirror/go-to-definition/utils.ts +126 -0
  609. package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +43 -0
  610. package/src/core/codemirror/keymaps/__tests__/vimrc.test.ts +121 -0
  611. package/src/core/codemirror/keymaps/keymaps.ts +163 -0
  612. package/src/core/codemirror/keymaps/vim.ts +348 -0
  613. package/src/core/codemirror/keymaps/vimrc.ts +149 -0
  614. package/src/core/codemirror/language/LanguageAdapters.ts +23 -0
  615. package/src/core/codemirror/language/__tests__/ast.test.ts +124 -0
  616. package/src/core/codemirror/language/__tests__/extension.test.ts +260 -0
  617. package/src/core/codemirror/language/__tests__/indentOneTab.test.ts +31 -0
  618. package/src/core/codemirror/language/__tests__/markdown.test.ts +495 -0
  619. package/src/core/codemirror/language/__tests__/sql.test.ts +1640 -0
  620. package/src/core/codemirror/language/__tests__/utils.test.ts +166 -0
  621. package/src/core/codemirror/language/commands.ts +59 -0
  622. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +163 -0
  623. package/src/core/codemirror/language/embedded/embedded-python.ts +131 -0
  624. package/src/core/codemirror/language/embedded/latex.ts +257 -0
  625. package/src/core/codemirror/language/extension.ts +322 -0
  626. package/src/core/codemirror/language/languages/markdown.ts +261 -0
  627. package/src/core/codemirror/language/languages/python.ts +329 -0
  628. package/src/core/codemirror/language/languages/sql/completion-sources.tsx +99 -0
  629. package/src/core/codemirror/language/languages/sql/completion-store.ts +191 -0
  630. package/src/core/codemirror/language/languages/sql/sql.ts +545 -0
  631. package/src/core/codemirror/language/languages/sql/utils.ts +42 -0
  632. package/src/core/codemirror/language/metadata.ts +71 -0
  633. package/src/core/codemirror/language/panel/markdown.tsx +63 -0
  634. package/src/core/codemirror/language/panel/panel.tsx +197 -0
  635. package/src/core/codemirror/language/panel/sql.tsx +132 -0
  636. package/src/core/codemirror/language/types.ts +41 -0
  637. package/src/core/codemirror/language/utils/ast.ts +84 -0
  638. package/src/core/codemirror/language/utils/indentOneTab.ts +9 -0
  639. package/src/core/codemirror/language/utils/quotes.ts +18 -0
  640. package/src/core/codemirror/language/utils.ts +78 -0
  641. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +860 -0
  642. package/src/core/codemirror/lsp/federated-lsp.ts +235 -0
  643. package/src/core/codemirror/lsp/lens.ts +130 -0
  644. package/src/core/codemirror/lsp/notebook-lsp.ts +604 -0
  645. package/src/core/codemirror/lsp/transports.ts +31 -0
  646. package/src/core/codemirror/lsp/types.ts +55 -0
  647. package/src/core/codemirror/lsp/utils.ts +11 -0
  648. package/src/core/codemirror/markdown/__tests__/commands.test.ts +522 -0
  649. package/src/core/codemirror/markdown/commands.ts +478 -0
  650. package/src/core/codemirror/markdown/completions.ts +273 -0
  651. package/src/core/codemirror/markdown/extension.ts +106 -0
  652. package/src/core/codemirror/misc/__tests__/dnd.test.ts +111 -0
  653. package/src/core/codemirror/misc/__tests__/paste.test.ts +239 -0
  654. package/src/core/codemirror/misc/dnd.ts +48 -0
  655. package/src/core/codemirror/misc/paste.ts +181 -0
  656. package/src/core/codemirror/placeholder/__tests__/extensions.test.ts +132 -0
  657. package/src/core/codemirror/placeholder/extensions.ts +99 -0
  658. package/src/core/codemirror/react-dom/createPanel.tsx +39 -0
  659. package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +1222 -0
  660. package/src/core/codemirror/reactive-references/analyzer.ts +608 -0
  661. package/src/core/codemirror/reactive-references/extension.ts +154 -0
  662. package/src/core/codemirror/readonly/__tests__/extension.test.ts +55 -0
  663. package/src/core/codemirror/readonly/extension.ts +187 -0
  664. package/src/core/codemirror/rtc/extension.ts +450 -0
  665. package/src/core/codemirror/rtc/loro/awareness.ts +496 -0
  666. package/src/core/codemirror/rtc/loro/colors.ts +38 -0
  667. package/src/core/codemirror/rtc/loro/sync.ts +159 -0
  668. package/src/core/codemirror/theme/__tests__/light.test.ts +136 -0
  669. package/src/core/codemirror/theme/dark.ts +50 -0
  670. package/src/core/codemirror/theme/light.ts +58 -0
  671. package/src/core/codemirror/types.ts +5 -0
  672. package/src/core/codemirror/utils.ts +103 -0
  673. package/src/core/codemirror/vim/cursor-visibility.ts +58 -0
  674. package/src/core/config/__tests__/config-schema.test.ts +232 -0
  675. package/src/core/config/capabilities.ts +15 -0
  676. package/src/core/config/config-schema.ts +296 -0
  677. package/src/core/config/config.ts +109 -0
  678. package/src/core/config/feature-flag.tsx +62 -0
  679. package/src/core/config/if-capability.tsx +19 -0
  680. package/src/core/config/widths.ts +5 -0
  681. package/src/core/constants.ts +52 -0
  682. package/src/core/datasets/__tests__/all-tables.test.ts +466 -0
  683. package/src/core/datasets/__tests__/data-source.test.ts +461 -0
  684. package/src/core/datasets/data-source-connections.ts +334 -0
  685. package/src/core/datasets/engines.ts +10 -0
  686. package/src/core/datasets/request-registry.ts +34 -0
  687. package/src/core/datasets/state.ts +143 -0
  688. package/src/core/datasets/types.ts +38 -0
  689. package/src/core/debugger/state.ts +10 -0
  690. package/src/core/documentation/state.ts +13 -0
  691. package/src/core/dom/__tests__/htmlUtils.test.ts +22 -0
  692. package/src/core/dom/__tests__/outline.test.ts +370 -0
  693. package/src/core/dom/defineCustomElement.ts +23 -0
  694. package/src/core/dom/events.ts +94 -0
  695. package/src/core/dom/htmlUtils.ts +75 -0
  696. package/src/core/dom/outline.ts +123 -0
  697. package/src/core/dom/ui-element.css +8 -0
  698. package/src/core/dom/ui-element.ts +249 -0
  699. package/src/core/dom/uiregistry.ts +209 -0
  700. package/src/core/edit-app.tsx +189 -0
  701. package/src/core/errors/__tests__/errors.test.ts +62 -0
  702. package/src/core/errors/__tests__/utils.test.ts +108 -0
  703. package/src/core/errors/errors.ts +96 -0
  704. package/src/core/errors/state.ts +44 -0
  705. package/src/core/errors/utils.ts +67 -0
  706. package/src/core/export/hooks.ts +60 -0
  707. package/src/core/functions/FunctionRegistry.ts +18 -0
  708. package/src/core/hotkeys/__tests__/shortcuts.test.ts +166 -0
  709. package/src/core/hotkeys/actions.ts +38 -0
  710. package/src/core/hotkeys/hotkeys.ts +503 -0
  711. package/src/core/hotkeys/shortcuts.ts +117 -0
  712. package/src/core/islands/__tests__/parse.test.ts +89 -0
  713. package/src/core/islands/bridge.ts +196 -0
  714. package/src/core/islands/components/output-wrapper.tsx +154 -0
  715. package/src/core/islands/components/web-components.tsx +120 -0
  716. package/src/core/islands/islands.css +14 -0
  717. package/src/core/islands/main.ts +200 -0
  718. package/src/core/islands/parse.ts +161 -0
  719. package/src/core/islands/state.ts +30 -0
  720. package/src/core/islands/toast.ts +41 -0
  721. package/src/core/islands/utils.ts +5 -0
  722. package/src/core/islands/worker/controller.ts +52 -0
  723. package/src/core/islands/worker/worker.tsx +178 -0
  724. package/src/core/kernel/RuntimeState.ts +94 -0
  725. package/src/core/kernel/__tests__/RuntimeState.test.ts +57 -0
  726. package/src/core/kernel/__tests__/handlers.test.ts +61 -0
  727. package/src/core/kernel/__tests__/session.test.ts +10 -0
  728. package/src/core/kernel/handlers.ts +159 -0
  729. package/src/core/kernel/messages.ts +54 -0
  730. package/src/core/kernel/queryParamHandlers.ts +39 -0
  731. package/src/core/kernel/session.ts +50 -0
  732. package/src/core/layout/layout.ts +99 -0
  733. package/src/core/layout/useTogglePresenting.ts +50 -0
  734. package/src/core/meta/globals.ts +25 -0
  735. package/src/core/meta/state.ts +25 -0
  736. package/src/core/mime.ts +9 -0
  737. package/src/core/mode.ts +80 -0
  738. package/src/core/network/DeferredRequestRegistry.ts +71 -0
  739. package/src/core/network/__tests__/DeferredRequestRegistry.test.ts +37 -0
  740. package/src/core/network/__tests__/api.test.ts +80 -0
  741. package/src/core/network/api.ts +145 -0
  742. package/src/core/network/auth.ts +13 -0
  743. package/src/core/network/connection.ts +33 -0
  744. package/src/core/network/requests-network.ts +398 -0
  745. package/src/core/network/requests-static.ts +88 -0
  746. package/src/core/network/requests-toasting.ts +91 -0
  747. package/src/core/network/requests.ts +24 -0
  748. package/src/core/network/resolve.ts +17 -0
  749. package/src/core/network/types.ts +188 -0
  750. package/src/core/packages/toast-components.tsx +88 -0
  751. package/src/core/packages/useInstallPackage.ts +46 -0
  752. package/src/core/rtc/state.ts +20 -0
  753. package/src/core/run-app.tsx +69 -0
  754. package/src/core/runtime/__tests__/config.test.ts +173 -0
  755. package/src/core/runtime/__tests__/createWsUrl.test.ts +61 -0
  756. package/src/core/runtime/__tests__/runtime.test.ts +603 -0
  757. package/src/core/runtime/config.ts +45 -0
  758. package/src/core/runtime/runtime.ts +277 -0
  759. package/src/core/runtime/types.ts +7 -0
  760. package/src/core/runtime/utils.ts +9 -0
  761. package/src/core/saving/file-state.ts +15 -0
  762. package/src/core/saving/filename.ts +55 -0
  763. package/src/core/saving/save-component.tsx +274 -0
  764. package/src/core/saving/state.ts +51 -0
  765. package/src/core/saving/useAutoSave.ts +68 -0
  766. package/src/core/secrets/request-registry.ts +16 -0
  767. package/src/core/slots/slots.ts +9 -0
  768. package/src/core/state/__tests__/jotai.test.ts +25 -0
  769. package/src/core/state/jotai.ts +69 -0
  770. package/src/core/state/observable.ts +23 -0
  771. package/src/core/static/__tests__/download-html.test.ts +41 -0
  772. package/src/core/static/__tests__/files.test.ts +494 -0
  773. package/src/core/static/__tests__/virtual-file-tracker.test.ts +92 -0
  774. package/src/core/static/download-html.ts +59 -0
  775. package/src/core/static/files.ts +150 -0
  776. package/src/core/static/static-state.ts +19 -0
  777. package/src/core/static/types.ts +8 -0
  778. package/src/core/static/virtual-file-tracker.ts +83 -0
  779. package/src/core/variables/__tests__/state.test.ts +148 -0
  780. package/src/core/variables/state.ts +81 -0
  781. package/src/core/variables/types.ts +22 -0
  782. package/src/core/vscode/vscode-bindings.ts +176 -0
  783. package/src/core/wasm/PyodideLoader.tsx +72 -0
  784. package/src/core/wasm/__tests__/router.test.ts +57 -0
  785. package/src/core/wasm/__tests__/share.test.ts +35 -0
  786. package/src/core/wasm/__tests__/state.test.ts +124 -0
  787. package/src/core/wasm/__tests__/store.test.ts +55 -0
  788. package/src/core/wasm/bridge.ts +622 -0
  789. package/src/core/wasm/router.ts +39 -0
  790. package/src/core/wasm/rpc.ts +32 -0
  791. package/src/core/wasm/share.ts +15 -0
  792. package/src/core/wasm/state.ts +21 -0
  793. package/src/core/wasm/store.ts +122 -0
  794. package/src/core/wasm/utils.ts +12 -0
  795. package/src/core/wasm/worker/bootstrap.ts +223 -0
  796. package/src/core/wasm/worker/constants.ts +2 -0
  797. package/src/core/wasm/worker/fs.ts +90 -0
  798. package/src/core/wasm/worker/getController.ts +16 -0
  799. package/src/core/wasm/worker/getFS.ts +9 -0
  800. package/src/core/wasm/worker/getMarimoWheel.ts +15 -0
  801. package/src/core/wasm/worker/getPyodideVersion.ts +10 -0
  802. package/src/core/wasm/worker/message-buffer.ts +32 -0
  803. package/src/core/wasm/worker/save-worker.ts +107 -0
  804. package/src/core/wasm/worker/tracer.ts +7 -0
  805. package/src/core/wasm/worker/types.ts +97 -0
  806. package/src/core/wasm/worker/worker.ts +375 -0
  807. package/src/core/websocket/StaticWebsocket.ts +61 -0
  808. package/src/core/websocket/connection-utils.ts +59 -0
  809. package/src/core/websocket/types.ts +43 -0
  810. package/src/core/websocket/useMarimoWebSocket.tsx +386 -0
  811. package/src/core/websocket/useWebSocket.tsx +88 -0
  812. package/src/css/admonition.css +127 -0
  813. package/src/css/app/App.css +77 -0
  814. package/src/css/app/Cell.css +433 -0
  815. package/src/css/app/Header.css +25 -0
  816. package/src/css/app/codemirror-completions.css +308 -0
  817. package/src/css/app/codemirror.css +136 -0
  818. package/src/css/app/fonts.css +50 -0
  819. package/src/css/app/print.css +86 -0
  820. package/src/css/app/reset.css +18 -0
  821. package/src/css/codehilite.css +354 -0
  822. package/src/css/common.css +45 -0
  823. package/src/css/globals.css +176 -0
  824. package/src/css/index.css +10 -0
  825. package/src/css/katex-fonts.css +214 -0
  826. package/src/css/katex.min.css +1182 -0
  827. package/src/css/md-tooltip.css +52 -0
  828. package/src/css/md.css +365 -0
  829. package/src/css/progress.css +93 -0
  830. package/src/css/table.css +45 -0
  831. package/src/custom.d.ts +24 -0
  832. package/src/fonts/Fira_Mono/FiraMono-Bold.ttf +0 -0
  833. package/src/fonts/Fira_Mono/FiraMono-Medium.ttf +0 -0
  834. package/src/fonts/Fira_Mono/FiraMono-Regular.ttf +0 -0
  835. package/src/fonts/KaTeX/KaTeX_AMS-Regular.ttf +0 -0
  836. package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff +0 -0
  837. package/src/fonts/KaTeX/KaTeX_AMS-Regular.woff2 +0 -0
  838. package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.ttf +0 -0
  839. package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff +0 -0
  840. package/src/fonts/KaTeX/KaTeX_Caligraphic-Bold.woff2 +0 -0
  841. package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.ttf +0 -0
  842. package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff +0 -0
  843. package/src/fonts/KaTeX/KaTeX_Caligraphic-Regular.woff2 +0 -0
  844. package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.ttf +0 -0
  845. package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff +0 -0
  846. package/src/fonts/KaTeX/KaTeX_Fraktur-Bold.woff2 +0 -0
  847. package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.ttf +0 -0
  848. package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff +0 -0
  849. package/src/fonts/KaTeX/KaTeX_Fraktur-Regular.woff2 +0 -0
  850. package/src/fonts/KaTeX/KaTeX_Main-Bold.ttf +0 -0
  851. package/src/fonts/KaTeX/KaTeX_Main-Bold.woff +0 -0
  852. package/src/fonts/KaTeX/KaTeX_Main-Bold.woff2 +0 -0
  853. package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.ttf +0 -0
  854. package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff +0 -0
  855. package/src/fonts/KaTeX/KaTeX_Main-BoldItalic.woff2 +0 -0
  856. package/src/fonts/KaTeX/KaTeX_Main-Italic.ttf +0 -0
  857. package/src/fonts/KaTeX/KaTeX_Main-Italic.woff +0 -0
  858. package/src/fonts/KaTeX/KaTeX_Main-Italic.woff2 +0 -0
  859. package/src/fonts/KaTeX/KaTeX_Main-Regular.ttf +0 -0
  860. package/src/fonts/KaTeX/KaTeX_Main-Regular.woff +0 -0
  861. package/src/fonts/KaTeX/KaTeX_Main-Regular.woff2 +0 -0
  862. package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.ttf +0 -0
  863. package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff +0 -0
  864. package/src/fonts/KaTeX/KaTeX_Math-BoldItalic.woff2 +0 -0
  865. package/src/fonts/KaTeX/KaTeX_Math-Italic.ttf +0 -0
  866. package/src/fonts/KaTeX/KaTeX_Math-Italic.woff +0 -0
  867. package/src/fonts/KaTeX/KaTeX_Math-Italic.woff2 +0 -0
  868. package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.ttf +0 -0
  869. package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff +0 -0
  870. package/src/fonts/KaTeX/KaTeX_SansSerif-Bold.woff2 +0 -0
  871. package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.ttf +0 -0
  872. package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff +0 -0
  873. package/src/fonts/KaTeX/KaTeX_SansSerif-Italic.woff2 +0 -0
  874. package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.ttf +0 -0
  875. package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff +0 -0
  876. package/src/fonts/KaTeX/KaTeX_SansSerif-Regular.woff2 +0 -0
  877. package/src/fonts/KaTeX/KaTeX_Script-Regular.ttf +0 -0
  878. package/src/fonts/KaTeX/KaTeX_Script-Regular.woff +0 -0
  879. package/src/fonts/KaTeX/KaTeX_Script-Regular.woff2 +0 -0
  880. package/src/fonts/KaTeX/KaTeX_Size1-Regular.ttf +0 -0
  881. package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff +0 -0
  882. package/src/fonts/KaTeX/KaTeX_Size1-Regular.woff2 +0 -0
  883. package/src/fonts/KaTeX/KaTeX_Size2-Regular.ttf +0 -0
  884. package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff +0 -0
  885. package/src/fonts/KaTeX/KaTeX_Size2-Regular.woff2 +0 -0
  886. package/src/fonts/KaTeX/KaTeX_Size3-Regular.ttf +0 -0
  887. package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff +0 -0
  888. package/src/fonts/KaTeX/KaTeX_Size3-Regular.woff2 +0 -0
  889. package/src/fonts/KaTeX/KaTeX_Size4-Regular.ttf +0 -0
  890. package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff +0 -0
  891. package/src/fonts/KaTeX/KaTeX_Size4-Regular.woff2 +0 -0
  892. package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.ttf +0 -0
  893. package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff +0 -0
  894. package/src/fonts/KaTeX/KaTeX_Typewriter-Regular.woff2 +0 -0
  895. package/src/fonts/Lora/Lora-Italic-VariableFont_wght.ttf +0 -0
  896. package/src/fonts/Lora/Lora-VariableFont_wght.ttf +0 -0
  897. package/src/fonts/Lora/static/Lora-Bold.ttf +0 -0
  898. package/src/fonts/Lora/static/Lora-BoldItalic.ttf +0 -0
  899. package/src/fonts/Lora/static/Lora-Italic.ttf +0 -0
  900. package/src/fonts/Lora/static/Lora-Medium.ttf +0 -0
  901. package/src/fonts/Lora/static/Lora-MediumItalic.ttf +0 -0
  902. package/src/fonts/Lora/static/Lora-Regular.ttf +0 -0
  903. package/src/fonts/Lora/static/Lora-SemiBold.ttf +0 -0
  904. package/src/fonts/Lora/static/Lora-SemiBoldItalic.ttf +0 -0
  905. package/src/fonts/PT_Sans/PTSans-Bold.ttf +0 -0
  906. package/src/fonts/PT_Sans/PTSans-BoldItalic.ttf +0 -0
  907. package/src/fonts/PT_Sans/PTSans-Italic.ttf +0 -0
  908. package/src/fonts/PT_Sans/PTSans-Regular.ttf +0 -0
  909. package/src/hooks/__tests__/useBoolean.test.tsx +33 -0
  910. package/src/hooks/__tests__/useDebounce.test.tsx +182 -0
  911. package/src/hooks/__tests__/useEffectSkipFirstRender.test.tsx +42 -0
  912. package/src/hooks/__tests__/useEventListener.test.tsx +148 -0
  913. package/src/hooks/__tests__/useInternalStateWithSync.test.tsx +76 -0
  914. package/src/hooks/__tests__/useInterval.test.tsx +70 -0
  915. package/src/hooks/__tests__/usePackageMetadata.test.tsx +219 -0
  916. package/src/hooks/__tests__/useResizeHandle.test.tsx +240 -0
  917. package/src/hooks/__tests__/useResizeObserver.test.tsx +86 -0
  918. package/src/hooks/__tests__/useTimer.test.tsx +62 -0
  919. package/src/hooks/debug.ts +116 -0
  920. package/src/hooks/useAsyncData.ts +392 -0
  921. package/src/hooks/useAudioRecorder.ts +89 -0
  922. package/src/hooks/useAutoGrowInputProps.ts +56 -0
  923. package/src/hooks/useBoolean.ts +26 -0
  924. package/src/hooks/useCellRenderCount.ts +15 -0
  925. package/src/hooks/useDebounce.ts +95 -0
  926. package/src/hooks/useDeepCompareMemoize.ts +22 -0
  927. package/src/hooks/useEffectSkipFirstRender.ts +24 -0
  928. package/src/hooks/useElapsedTime.ts +25 -0
  929. package/src/hooks/useEvent.ts +2 -0
  930. package/src/hooks/useEventListener.ts +68 -0
  931. package/src/hooks/useHotkey.ts +77 -0
  932. package/src/hooks/useInternalStateWithSync.ts +26 -0
  933. package/src/hooks/useInterval.ts +49 -0
  934. package/src/hooks/useIsDragging.tsx +39 -0
  935. package/src/hooks/useLifecycle.ts +20 -0
  936. package/src/hooks/useLocalStorage.ts +22 -0
  937. package/src/hooks/useNonce.ts +9 -0
  938. package/src/hooks/usePackageMetadata.ts +52 -0
  939. package/src/hooks/useRecentCommands.ts +25 -0
  940. package/src/hooks/useResizeHandle.ts +110 -0
  941. package/src/hooks/useResizeObserver.ts +101 -0
  942. package/src/hooks/useScript.ts +90 -0
  943. package/src/hooks/useSelectAllContent.ts +42 -0
  944. package/src/hooks/useTimer.ts +48 -0
  945. package/src/main.tsx +20 -0
  946. package/src/mount.tsx +331 -0
  947. package/src/plugins/core/BadPlugin.tsx +72 -0
  948. package/src/plugins/core/RenderHTML.tsx +136 -0
  949. package/src/plugins/core/__test__/RenderHTML.test.ts +146 -0
  950. package/src/plugins/core/builder.ts +59 -0
  951. package/src/plugins/core/registerReactComponent.tsx +535 -0
  952. package/src/plugins/core/rpc.ts +55 -0
  953. package/src/plugins/core/sidebar-element.tsx +104 -0
  954. package/src/plugins/impl/ButtonPlugin.tsx +95 -0
  955. package/src/plugins/impl/CheckboxPlugin.tsx +56 -0
  956. package/src/plugins/impl/CodeEditorPlugin.tsx +119 -0
  957. package/src/plugins/impl/DataEditorPlugin.tsx +181 -0
  958. package/src/plugins/impl/DataTablePlugin.tsx +948 -0
  959. package/src/plugins/impl/DatePickerPlugin.tsx +74 -0
  960. package/src/plugins/impl/DateRangePlugin.tsx +82 -0
  961. package/src/plugins/impl/DateTimePickerPlugin.tsx +76 -0
  962. package/src/plugins/impl/DictPlugin.tsx +80 -0
  963. package/src/plugins/impl/DropdownPlugin.tsx +102 -0
  964. package/src/plugins/impl/FileBrowserPlugin.tsx +500 -0
  965. package/src/plugins/impl/FileUploadPlugin.tsx +302 -0
  966. package/src/plugins/impl/FormPlugin.tsx +294 -0
  967. package/src/plugins/impl/MicrophonePlugin.tsx +58 -0
  968. package/src/plugins/impl/MultiselectPlugin.tsx +207 -0
  969. package/src/plugins/impl/NumberPlugin.tsx +84 -0
  970. package/src/plugins/impl/RadioPlugin.tsx +77 -0
  971. package/src/plugins/impl/RangeSliderPlugin.tsx +163 -0
  972. package/src/plugins/impl/RefreshPlugin.tsx +158 -0
  973. package/src/plugins/impl/SearchableSelect.tsx +122 -0
  974. package/src/plugins/impl/SliderPlugin.tsx +166 -0
  975. package/src/plugins/impl/SwitchPlugin.tsx +48 -0
  976. package/src/plugins/impl/TabsPlugin.tsx +83 -0
  977. package/src/plugins/impl/TextAreaPlugin.tsx +131 -0
  978. package/src/plugins/impl/TextInputPlugin.tsx +169 -0
  979. package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +45 -0
  980. package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +178 -0
  981. package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +41 -0
  982. package/src/plugins/impl/__tests__/NumberPlugin.test.tsx +144 -0
  983. package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +269 -0
  984. package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +181 -0
  985. package/src/plugins/impl/anywidget/__tests__/model.test.ts +370 -0
  986. package/src/plugins/impl/anywidget/model.ts +314 -0
  987. package/src/plugins/impl/chat/ChatPlugin.tsx +98 -0
  988. package/src/plugins/impl/chat/chat-ui.tsx +713 -0
  989. package/src/plugins/impl/chat/types.ts +39 -0
  990. package/src/plugins/impl/code/LazyAnyLanguageCodeMirror.tsx +6 -0
  991. package/src/plugins/impl/code/any-language-editor.tsx +68 -0
  992. package/src/plugins/impl/common/error-banner.tsx +111 -0
  993. package/src/plugins/impl/common/intent.ts +18 -0
  994. package/src/plugins/impl/common/labeled.tsx +69 -0
  995. package/src/plugins/impl/data-editor/__tests__/data-utils.test.ts +876 -0
  996. package/src/plugins/impl/data-editor/__tests__/glide-utils.test.ts +452 -0
  997. package/src/plugins/impl/data-editor/components.tsx +179 -0
  998. package/src/plugins/impl/data-editor/data-utils.ts +123 -0
  999. package/src/plugins/impl/data-editor/glide-data-editor.tsx +651 -0
  1000. package/src/plugins/impl/data-editor/glide-utils.ts +200 -0
  1001. package/src/plugins/impl/data-editor/themes.ts +49 -0
  1002. package/src/plugins/impl/data-editor/types.ts +44 -0
  1003. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +268 -0
  1004. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +31 -0
  1005. package/src/plugins/impl/data-explorer/components/column-summary.tsx +174 -0
  1006. package/src/plugins/impl/data-explorer/components/icons.tsx +30 -0
  1007. package/src/plugins/impl/data-explorer/components/query-form.tsx +296 -0
  1008. package/src/plugins/impl/data-explorer/encoding.ts +107 -0
  1009. package/src/plugins/impl/data-explorer/functions/function.ts +83 -0
  1010. package/src/plugins/impl/data-explorer/functions/types.ts +32 -0
  1011. package/src/plugins/impl/data-explorer/marks.ts +21 -0
  1012. package/src/plugins/impl/data-explorer/queries/field-suggestion.ts +65 -0
  1013. package/src/plugins/impl/data-explorer/queries/histograms.ts +41 -0
  1014. package/src/plugins/impl/data-explorer/queries/queries.ts +204 -0
  1015. package/src/plugins/impl/data-explorer/queries/removeUndefined.ts +11 -0
  1016. package/src/plugins/impl/data-explorer/queries/types.ts +54 -0
  1017. package/src/plugins/impl/data-explorer/queries/utils.ts +85 -0
  1018. package/src/plugins/impl/data-explorer/spec.ts +28 -0
  1019. package/src/plugins/impl/data-explorer/state/reducer.ts +92 -0
  1020. package/src/plugins/impl/data-explorer/state/types.ts +28 -0
  1021. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +303 -0
  1022. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +1600 -0
  1023. package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +67 -0
  1024. package/src/plugins/impl/data-frames/forms/context.ts +13 -0
  1025. package/src/plugins/impl/data-frames/forms/datatype-icon.tsx +43 -0
  1026. package/src/plugins/impl/data-frames/forms/renderers.tsx +518 -0
  1027. package/src/plugins/impl/data-frames/panel.tsx +308 -0
  1028. package/src/plugins/impl/data-frames/schema.ts +211 -0
  1029. package/src/plugins/impl/data-frames/types.ts +91 -0
  1030. package/src/plugins/impl/data-frames/utils/__tests__/getUpdatedColumnTypes.test.ts +191 -0
  1031. package/src/plugins/impl/data-frames/utils/__tests__/operators.test.ts +116 -0
  1032. package/src/plugins/impl/data-frames/utils/getUpdatedColumnTypes.ts +67 -0
  1033. package/src/plugins/impl/data-frames/utils/operators.ts +202 -0
  1034. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +39 -0
  1035. package/src/plugins/impl/multiselectFilterFn.tsx +22 -0
  1036. package/src/plugins/impl/panel/PanelPlugin.tsx +266 -0
  1037. package/src/plugins/impl/panel/__tests__/utils.test.ts +119 -0
  1038. package/src/plugins/impl/panel/utils.ts +104 -0
  1039. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +300 -0
  1040. package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +73 -0
  1041. package/src/plugins/impl/plotly/mapbox.css +359 -0
  1042. package/src/plugins/impl/plotly/parse-from-template.ts +58 -0
  1043. package/src/plugins/impl/plotly/plotly.css +280 -0
  1044. package/src/plugins/impl/vega/VegaPlugin.tsx +40 -0
  1045. package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +1210 -0
  1046. package/src/plugins/impl/vega/__tests__/encodings.test.ts +172 -0
  1047. package/src/plugins/impl/vega/__tests__/loader.test.ts +73 -0
  1048. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +575 -0
  1049. package/src/plugins/impl/vega/__tests__/params.test.ts +52 -0
  1050. package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +236 -0
  1051. package/src/plugins/impl/vega/__tests__/vega.test.ts +603 -0
  1052. package/src/plugins/impl/vega/batched.ts +41 -0
  1053. package/src/plugins/impl/vega/encodings.ts +111 -0
  1054. package/src/plugins/impl/vega/fix-relative-url.ts +15 -0
  1055. package/src/plugins/impl/vega/formats.ts +25 -0
  1056. package/src/plugins/impl/vega/loader.ts +320 -0
  1057. package/src/plugins/impl/vega/make-selectable.ts +248 -0
  1058. package/src/plugins/impl/vega/marks.ts +36 -0
  1059. package/src/plugins/impl/vega/params.ts +192 -0
  1060. package/src/plugins/impl/vega/resolve-data.ts +101 -0
  1061. package/src/plugins/impl/vega/types.ts +32 -0
  1062. package/src/plugins/impl/vega/utils.ts +46 -0
  1063. package/src/plugins/impl/vega/vega-component.tsx +271 -0
  1064. package/src/plugins/impl/vega/vega-loader.ts +53 -0
  1065. package/src/plugins/impl/vega/vega.css +31 -0
  1066. package/src/plugins/layout/AccordionPlugin.tsx +63 -0
  1067. package/src/plugins/layout/CalloutPlugin.tsx +34 -0
  1068. package/src/plugins/layout/DownloadPlugin.tsx +136 -0
  1069. package/src/plugins/layout/ImageComparisonPlugin.tsx +35 -0
  1070. package/src/plugins/layout/JsonOutputPlugin.tsx +47 -0
  1071. package/src/plugins/layout/LazyPlugin.tsx +98 -0
  1072. package/src/plugins/layout/MimeRenderPlugin.tsx +45 -0
  1073. package/src/plugins/layout/NavigationMenuPlugin.tsx +219 -0
  1074. package/src/plugins/layout/ProgressPlugin.tsx +175 -0
  1075. package/src/plugins/layout/RoutesPlugin.tsx +81 -0
  1076. package/src/plugins/layout/StatPlugin.tsx +100 -0
  1077. package/src/plugins/layout/TexPlugin.tsx +102 -0
  1078. package/src/plugins/layout/__test__/ProgressPlugin.test.ts +26 -0
  1079. package/src/plugins/layout/carousel/CarouselPlugin.tsx +48 -0
  1080. package/src/plugins/layout/mermaid/MermaidPlugin.tsx +26 -0
  1081. package/src/plugins/layout/mermaid/mermaid.tsx +94 -0
  1082. package/src/plugins/layout/navigation-menu.css +37 -0
  1083. package/src/plugins/plugins.ts +116 -0
  1084. package/src/plugins/stateless-plugin.ts +29 -0
  1085. package/src/plugins/types.ts +82 -0
  1086. package/src/stories/__fixtures__/vega.ts +225 -0
  1087. package/src/stories/accordion.stories.tsx +100 -0
  1088. package/src/stories/alert-dialog.mdx +42 -0
  1089. package/src/stories/app-chrome.stories.tsx +26 -0
  1090. package/src/stories/button.stories.tsx +90 -0
  1091. package/src/stories/callout.stories.tsx +73 -0
  1092. package/src/stories/cell-status.stories.tsx +145 -0
  1093. package/src/stories/cell.stories.tsx +336 -0
  1094. package/src/stories/checkbox.stories.tsx +44 -0
  1095. package/src/stories/colors.stories.tsx +156 -0
  1096. package/src/stories/combobox.stories.tsx +133 -0
  1097. package/src/stories/context-menu.mdx +23 -0
  1098. package/src/stories/data-explorer.stories.tsx +30 -0
  1099. package/src/stories/data-table.stories.tsx +130 -0
  1100. package/src/stories/dataframe.stories.tsx +46 -0
  1101. package/src/stories/debugger.stories.tsx +34 -0
  1102. package/src/stories/dialog.stories.tsx +80 -0
  1103. package/src/stories/dropdown-menu.mdx +159 -0
  1104. package/src/stories/editor-inputs.stories.tsx +47 -0
  1105. package/src/stories/editor.stories.tsx +91 -0
  1106. package/src/stories/file-upload.stories.tsx +103 -0
  1107. package/src/stories/form-wrapper.stories.tsx +147 -0
  1108. package/src/stories/input.stories.tsx +56 -0
  1109. package/src/stories/label.mdx +9 -0
  1110. package/src/stories/log-viewer.stories.tsx +74 -0
  1111. package/src/stories/number-field.mdx +17 -0
  1112. package/src/stories/number-field.stories.tsx +41 -0
  1113. package/src/stories/progress-component.stories.tsx +74 -0
  1114. package/src/stories/progress.stories.tsx +33 -0
  1115. package/src/stories/radio-group.mdx +54 -0
  1116. package/src/stories/select-native.stories.tsx +49 -0
  1117. package/src/stories/select.stories.tsx +92 -0
  1118. package/src/stories/slider.stories.tsx +27 -0
  1119. package/src/stories/stat.stories.tsx +123 -0
  1120. package/src/stories/switch.mdx +20 -0
  1121. package/src/stories/switchable-multi-select.stories.tsx +31 -0
  1122. package/src/stories/tabs.mdx +59 -0
  1123. package/src/stories/textarea.stories.tsx +58 -0
  1124. package/src/stories/theme.stories.tsx +111 -0
  1125. package/src/stories/tooltip.mdx +32 -0
  1126. package/src/stories/typography.stories.tsx +80 -0
  1127. package/src/stories/variables.stories.tsx +58 -0
  1128. package/src/stories/vega.stories.tsx +57 -0
  1129. package/src/theme/ThemeProvider.tsx +32 -0
  1130. package/src/theme/namespace.tsx +23 -0
  1131. package/src/theme/useTheme.ts +89 -0
  1132. package/src/utils/Deferred.ts +20 -0
  1133. package/src/utils/Logger.ts +91 -0
  1134. package/src/utils/__tests__/Deferred.test.ts +38 -0
  1135. package/src/utils/__tests__/arrays.test.ts +130 -0
  1136. package/src/utils/__tests__/batch-requests.test.ts +60 -0
  1137. package/src/utils/__tests__/blob.test.ts +52 -0
  1138. package/src/utils/__tests__/cell-urls.test.ts +92 -0
  1139. package/src/utils/__tests__/createReducer.test.ts +184 -0
  1140. package/src/utils/__tests__/data-views.test.ts +112 -0
  1141. package/src/utils/__tests__/dates.test.ts +188 -0
  1142. package/src/utils/__tests__/edit-distance.test.ts +302 -0
  1143. package/src/utils/__tests__/errors.test.ts +54 -0
  1144. package/src/utils/__tests__/filenames.test.ts +30 -0
  1145. package/src/utils/__tests__/id-tree.test.ts +1994 -0
  1146. package/src/utils/__tests__/json-parser.test.ts +79 -0
  1147. package/src/utils/__tests__/local-storage.test.ts +77 -0
  1148. package/src/utils/__tests__/lru.test.ts +74 -0
  1149. package/src/utils/__tests__/maps.test.ts +91 -0
  1150. package/src/utils/__tests__/math.test.ts +29 -0
  1151. package/src/utils/__tests__/multi-map.test.ts +295 -0
  1152. package/src/utils/__tests__/numbers.test.ts +76 -0
  1153. package/src/utils/__tests__/path.test.ts +170 -0
  1154. package/src/utils/__tests__/pluralize.test.ts +47 -0
  1155. package/src/utils/__tests__/routes.test.ts +134 -0
  1156. package/src/utils/__tests__/sets.test.ts +41 -0
  1157. package/src/utils/__tests__/shallow-compare.test.ts +55 -0
  1158. package/src/utils/__tests__/strings.test.ts +68 -0
  1159. package/src/utils/__tests__/time.test.ts +61 -0
  1160. package/src/utils/__tests__/timed-cache.test.ts +142 -0
  1161. package/src/utils/__tests__/timeout.test.ts +153 -0
  1162. package/src/utils/__tests__/traceback.test.ts +34 -0
  1163. package/src/utils/__tests__/url.test.ts +100 -0
  1164. package/src/utils/__tests__/urls.test.ts +10 -0
  1165. package/src/utils/__tests__/versions.test.ts +63 -0
  1166. package/src/utils/__tests__/waitForWs.test.ts +76 -0
  1167. package/src/utils/arrays.ts +75 -0
  1168. package/src/utils/assertExists.ts +12 -0
  1169. package/src/utils/assertNever.ts +20 -0
  1170. package/src/utils/batch-requests.ts +28 -0
  1171. package/src/utils/blob.ts +45 -0
  1172. package/src/utils/cell-urls.ts +31 -0
  1173. package/src/utils/cn.ts +8 -0
  1174. package/src/utils/copy.ts +17 -0
  1175. package/src/utils/createReducer.ts +137 -0
  1176. package/src/utils/data-views.ts +54 -0
  1177. package/src/utils/dates.ts +145 -0
  1178. package/src/utils/dereference.ts +10 -0
  1179. package/src/utils/download.ts +47 -0
  1180. package/src/utils/edit-distance.ts +141 -0
  1181. package/src/utils/errors.ts +63 -0
  1182. package/src/utils/events.ts +85 -0
  1183. package/src/utils/fileToBase64.ts +30 -0
  1184. package/src/utils/filenames.ts +29 -0
  1185. package/src/utils/functions.ts +24 -0
  1186. package/src/utils/id-tree.tsx +1032 -0
  1187. package/src/utils/idle.ts +19 -0
  1188. package/src/utils/invariant.ts +37 -0
  1189. package/src/utils/json/__tests__/base64.test.ts +100 -0
  1190. package/src/utils/json/base64.ts +51 -0
  1191. package/src/utils/json/json-parser.ts +65 -0
  1192. package/src/utils/lazy.ts +30 -0
  1193. package/src/utils/links.ts +11 -0
  1194. package/src/utils/localStorage.ts +132 -0
  1195. package/src/utils/lru.ts +68 -0
  1196. package/src/utils/maps.ts +65 -0
  1197. package/src/utils/math.ts +6 -0
  1198. package/src/utils/mergeRefs.ts +14 -0
  1199. package/src/utils/multi-map.ts +71 -0
  1200. package/src/utils/numbers.ts +124 -0
  1201. package/src/utils/objects.ts +105 -0
  1202. package/src/utils/once.ts +17 -0
  1203. package/src/utils/pathUtils.test.ts +113 -0
  1204. package/src/utils/pathUtils.ts +76 -0
  1205. package/src/utils/paths.ts +67 -0
  1206. package/src/utils/pluralize.ts +35 -0
  1207. package/src/utils/python-poet/__tests__/poet.test.ts +286 -0
  1208. package/src/utils/python-poet/poet.ts +196 -0
  1209. package/src/utils/reload-safe.ts +15 -0
  1210. package/src/utils/repl.ts +23 -0
  1211. package/src/utils/routes.ts +36 -0
  1212. package/src/utils/scroll.ts +38 -0
  1213. package/src/utils/sets.ts +30 -0
  1214. package/src/utils/shallow-compare.ts +30 -0
  1215. package/src/utils/staticImplements.ts +7 -0
  1216. package/src/utils/strings.ts +64 -0
  1217. package/src/utils/time.ts +39 -0
  1218. package/src/utils/timed-cache.ts +52 -0
  1219. package/src/utils/timeout.ts +42 -0
  1220. package/src/utils/traceback.ts +104 -0
  1221. package/src/utils/tracer.ts +106 -0
  1222. package/src/utils/typed.ts +17 -0
  1223. package/src/utils/url.ts +12 -0
  1224. package/src/utils/urls.ts +33 -0
  1225. package/src/utils/uuid.ts +8 -0
  1226. package/src/utils/versions.ts +66 -0
  1227. package/src/utils/vitals.ts +30 -0
  1228. package/src/utils/waitForWs.ts +31 -0
@@ -2,18 +2,18 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a2, _b, _c2, _d2, _e, _f2, _g, _h2, _i2, _j, _k, _l2, _m2, _n2, _o2, _p2, _q;
5
- import { e6 as Kl, bY as Vl, av as Ma, b1 as Wl, F as _t, aY as Hl, ay as Q, bu as jl, bv as zl, y as ql, A as Ni, z as Da, aw as Qs, e7 as Fa, aU as Yl, ba as Ga, e8 as Ua, aW as Xl, bc as wi, ax as Jl, e9 as Zl, bq as Ql, ea as eu, aZ as Ie, D as vt, aB as _i, bd as tu, eb as W, ec as Re } from "./main-oBXj9Aa7.js";
6
- import { g as ei, d as bt, k as nu, v as H, l as Ba, m as ru, n as su, a as Ka, c as x, i as qe, r as ae, f as ke, o as z } from "./_baseUniq-B0fx6-mD.js";
7
- import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-CtguZ_r5.js";
8
- import { ad as P } from "./mermaid-DaNqdymj.js";
9
- import { c as te } from "./clone-ByH0K_W2.js";
5
+ import { e6 as Kl, bZ as Vl, aw as Ma, b2 as Hl, F as _t, aZ as Wl, az as Q, bv as jl, bw as zl, y as ql, A as Ni, z as Da, ax as Qs, e7 as Fa, aV as Yl, bb as Ga, e8 as Ua, aX as Xl, bd as wi, ay as Jl, e9 as Zl, br as Ql, ea as eu, a_ as Ie, D as vt, aC as _i, be as tu, eb as H, ec as Re } from "./main-D1gyEFIz.js";
6
+ import { g as ei, d as bt, k as nu, v as W, l as Ba, m as ru, n as su, a as Ka, c as x, i as qe, r as ae, f as ke, o as z } from "./_baseUniq-C789h55S.js";
7
+ import { m as k, f as Lt, h as I, e as ti, l as Ot, d as iu } from "./min-DB4yN-iG.js";
8
+ import { ad as P } from "./mermaid-B67irHCy.js";
9
+ import { c as te } from "./clone-BZjp8DHO.js";
10
10
  var au = Object.prototype, ou = au.hasOwnProperty, Ee = Kl(function(n, e) {
11
11
  if (Vl(e) || Ma(e)) {
12
- Wl(e, _t(e), n);
12
+ Hl(e, _t(e), n);
13
13
  return;
14
14
  }
15
15
  for (var t in e)
16
- ou.call(e, t) && Hl(n, t, e[t]);
16
+ ou.call(e, t) && Wl(n, t, e[t]);
17
17
  });
18
18
  function wn(n) {
19
19
  for (var e = -1, t = n == null ? 0 : n.length, r = 0, s = []; ++e < t; ) {
@@ -99,7 +99,7 @@ function de(n) {
99
99
  }
100
100
  var Ru = Math.max;
101
101
  function ue(n, e, t, r) {
102
- n = Ma(n) ? n : H(n), t = t ? Qs(t) : 0;
102
+ n = Ma(n) ? n : W(n), t = t ? Qs(t) : 0;
103
103
  var s = n.length;
104
104
  return t < 0 && (t = Ru(s + t, 0)), de(n) ? t <= s && n.indexOf(e, t) > -1 : !!s && Ba(n, e, t) > -1;
105
105
  }
@@ -175,7 +175,7 @@ function Cu(n) {
175
175
  function ar(n) {
176
176
  return typeof n == "object" && n !== null && se(n.container) && Ge(n.reference) && typeof n.message == "string";
177
177
  }
178
- class Wa {
178
+ class Ha {
179
179
  constructor() {
180
180
  this.subtypes = {}, this.allSubtypes = {};
181
181
  }
@@ -210,7 +210,7 @@ class Wa {
210
210
  function In(n) {
211
211
  return typeof n == "object" && n !== null && Array.isArray(n.content);
212
212
  }
213
- function Ha(n) {
213
+ function Wa(n) {
214
214
  return typeof n == "object" && n !== null && typeof n.tokenType == "object";
215
215
  }
216
216
  function ja(n) {
@@ -594,20 +594,20 @@ function Er(n) {
594
594
  length: t - e
595
595
  };
596
596
  }
597
- var He;
597
+ var We;
598
598
  (function(n) {
599
599
  n[n.Before = 0] = "Before", n[n.After = 1] = "After", n[n.OverlapFront = 2] = "OverlapFront", n[n.OverlapBack = 3] = "OverlapBack", n[n.Inside = 4] = "Inside", n[n.Outside = 5] = "Outside";
600
- })(He || (He = {}));
600
+ })(We || (We = {}));
601
601
  function wu(n, e) {
602
602
  if (n.end.line < e.start.line || n.end.line === e.start.line && n.end.character <= e.start.character)
603
- return He.Before;
603
+ return We.Before;
604
604
  if (n.start.line > e.end.line || n.start.line === e.end.line && n.start.character >= e.end.character)
605
- return He.After;
605
+ return We.After;
606
606
  const t = n.start.line > e.start.line || n.start.line === e.start.line && n.start.character >= e.start.character, r = n.end.line < e.end.line || n.end.line === e.end.line && n.end.character <= e.end.character;
607
- return t && r ? He.Inside : t ? He.OverlapBack : r ? He.OverlapFront : He.Outside;
607
+ return t && r ? We.Inside : t ? We.OverlapBack : r ? We.OverlapFront : We.Outside;
608
608
  }
609
609
  function _u(n, e) {
610
- return wu(n, e) > He.After;
610
+ return wu(n, e) > We.After;
611
611
  }
612
612
  const Lu = /^[\w\p{L}]$/u;
613
613
  function Ou(n, e) {
@@ -626,7 +626,7 @@ function Ou(n, e) {
626
626
  }
627
627
  }
628
628
  function Pi(n, e) {
629
- return Ha(n) && e.includes(n.tokenType.name);
629
+ return Wa(n) && e.includes(n.tokenType.name);
630
630
  }
631
631
  function Pu(n, e = true) {
632
632
  for (; n.container; ) {
@@ -653,13 +653,13 @@ const Fn = "AbstractRule", Gn = "AbstractType", ns = "Condition", bi = "TypeDefi
653
653
  function bu(n) {
654
654
  return O.isInstance(n, Vt);
655
655
  }
656
- const Un = "ArrayLiteral", Bn = "ArrayType", Wt = "BooleanLiteral";
656
+ const Un = "ArrayLiteral", Bn = "ArrayType", Ht = "BooleanLiteral";
657
657
  function Mu(n) {
658
- return O.isInstance(n, Wt);
658
+ return O.isInstance(n, Ht);
659
659
  }
660
- const Ht = "Conjunction";
660
+ const Wt = "Conjunction";
661
661
  function Du(n) {
662
- return O.isInstance(n, Ht);
662
+ return O.isInstance(n, Wt);
663
663
  }
664
664
  const jt = "Disjunction";
665
665
  function Fu(n) {
@@ -677,7 +677,7 @@ const is = "NamedArgument", Yt = "Negation";
677
677
  function Gu(n) {
678
678
  return O.isInstance(n, Yt);
679
679
  }
680
- const Vn = "NumberLiteral", Wn = "Parameter", Xt = "ParameterReference";
680
+ const Vn = "NumberLiteral", Hn = "Parameter", Xt = "ParameterReference";
681
681
  function Uu(n) {
682
682
  return O.isInstance(n, Xt);
683
683
  }
@@ -685,7 +685,7 @@ const Jt = "ParserRule";
685
685
  function Ne(n) {
686
686
  return O.isInstance(n, Jt);
687
687
  }
688
- const Hn = "ReferenceType", or = "ReturnType";
688
+ const Wn = "ReferenceType", or = "ReturnType";
689
689
  function Bu(n) {
690
690
  return O.isInstance(n, or);
691
691
  }
@@ -722,7 +722,7 @@ function si(n) {
722
722
  return O.isInstance(n, sn);
723
723
  }
724
724
  const an = "EndOfFile";
725
- function Wu(n) {
725
+ function Hu(n) {
726
726
  return O.isInstance(n, an);
727
727
  }
728
728
  const on = "Group";
@@ -734,7 +734,7 @@ function mt(n) {
734
734
  return O.isInstance(n, ln);
735
735
  }
736
736
  const un = "NegatedToken";
737
- function Hu(n) {
737
+ function Wu(n) {
738
738
  return O.isInstance(n, un);
739
739
  }
740
740
  const cn = "RegexToken";
@@ -769,9 +769,9 @@ const yn = "Wildcard";
769
769
  function Ju(n) {
770
770
  return O.isInstance(n, yn);
771
771
  }
772
- class Qa extends Wa {
772
+ class Qa extends Ha {
773
773
  getAllTypes() {
774
- return [Vt, Fn, Gn, en, tn, Un, Bn, nn, Wt, rn, ns, Ht, sn, jt, an, Kn, ss, on, zt, qt, ln, is, un, Yt, Vn, Wn, Xt, Jt, Hn, cn, or, dn, Zt, jn, fn, hn, xt, pn, Qt, as, bi, zn, mn, gn, rs, yn];
774
+ return [Vt, Fn, Gn, en, tn, Un, Bn, nn, Ht, rn, ns, Wt, sn, jt, an, Kn, ss, on, zt, qt, ln, is, un, Yt, Vn, Hn, Xt, Jt, Wn, cn, or, dn, Zt, jn, fn, hn, xt, pn, Qt, as, bi, zn, mn, gn, rs, yn];
775
775
  }
776
776
  computeIsSubtype(e, t) {
777
777
  switch (e) {
@@ -798,13 +798,13 @@ class Qa extends Wa {
798
798
  case jn:
799
799
  return this.isSubtype(rs, t);
800
800
  case Bn:
801
- case Hn:
801
+ case Wn:
802
802
  case Zt:
803
803
  case zn:
804
804
  return this.isSubtype(bi, t);
805
- case Wt:
806
- return this.isSubtype(ns, t) || this.isSubtype(rs, t);
807
805
  case Ht:
806
+ return this.isSubtype(ns, t) || this.isSubtype(rs, t);
807
+ case Wt:
808
808
  case jt:
809
809
  case Yt:
810
810
  case Xt:
@@ -838,7 +838,7 @@ class Qa extends Wa {
838
838
  return Kn;
839
839
  case "NamedArgument:parameter":
840
840
  case "ParameterReference:parameter":
841
- return Wn;
841
+ return Hn;
842
842
  case "TerminalRuleCall:rule":
843
843
  return xt;
844
844
  default:
@@ -869,16 +869,16 @@ class Qa extends Wa {
869
869
  { name: "elementType" }
870
870
  ]
871
871
  };
872
- case Wt:
872
+ case Ht:
873
873
  return {
874
- name: Wt,
874
+ name: Ht,
875
875
  properties: [
876
876
  { name: "true", defaultValue: false }
877
877
  ]
878
878
  };
879
- case Ht:
879
+ case Wt:
880
880
  return {
881
- name: Ht,
881
+ name: Wt,
882
882
  properties: [
883
883
  { name: "left" },
884
884
  { name: "right" }
@@ -953,9 +953,9 @@ class Qa extends Wa {
953
953
  { name: "value" }
954
954
  ]
955
955
  };
956
- case Wn:
956
+ case Hn:
957
957
  return {
958
- name: Wn,
958
+ name: Hn,
959
959
  properties: [
960
960
  { name: "name" }
961
961
  ]
@@ -984,9 +984,9 @@ class Qa extends Wa {
984
984
  { name: "wildcard", defaultValue: false }
985
985
  ]
986
986
  };
987
- case Hn:
987
+ case Wn:
988
988
  return {
989
- name: Hn,
989
+ name: Wn,
990
990
  properties: [
991
991
  { name: "referenceType" }
992
992
  ]
@@ -2099,7 +2099,7 @@ class ic extends Vr {
2099
2099
  ` && (this.multiline = true), e.quantifier)
2100
2100
  this.isStarting = false, this.endRegexpStack = [];
2101
2101
  else {
2102
- const r = Wr(t);
2102
+ const r = Hr(t);
2103
2103
  this.endRegexpStack.push(r), this.isStarting && (this.startRegexp += r);
2104
2104
  }
2105
2105
  }
@@ -2134,11 +2134,11 @@ function Ps(n) {
2134
2134
  const e = typeof n == "string" ? new RegExp(n) : n;
2135
2135
  return oc.some((t) => e.test(t));
2136
2136
  }
2137
- function Wr(n) {
2137
+ function Hr(n) {
2138
2138
  return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2139
2139
  }
2140
2140
  function lc(n) {
2141
- return Array.prototype.map.call(n, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : Wr(e)).join("");
2141
+ return Array.prototype.map.call(n, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : Hr(e)).join("");
2142
2142
  }
2143
2143
  function uc(n, e) {
2144
2144
  const t = cc(n), r = e.match(t);
@@ -2426,7 +2426,7 @@ function Mt(n, e) {
2426
2426
  lookahead: n.lookahead
2427
2427
  });
2428
2428
  } else {
2429
- if (Hu(n))
2429
+ if (Wu(n))
2430
2430
  return $c(n);
2431
2431
  if (Xu(n))
2432
2432
  return kc(n);
@@ -2483,7 +2483,7 @@ function Sc(n) {
2483
2483
  });
2484
2484
  }
2485
2485
  function us(n) {
2486
- return Wr(n.value);
2486
+ return Hr(n.value);
2487
2487
  }
2488
2488
  function ze(n, e) {
2489
2489
  var t;
@@ -2775,7 +2775,7 @@ function Fe(n) {
2775
2775
  return "CONSUME";
2776
2776
  throw Error("non exhaustive match");
2777
2777
  }
2778
- class Hr {
2778
+ class Wr {
2779
2779
  walk(e, t = []) {
2780
2780
  x(e.definition, (r, s) => {
2781
2781
  const i = X(e.definition, s + 1);
@@ -2877,7 +2877,7 @@ function Pc(n) {
2877
2877
  return [n.terminalType];
2878
2878
  }
2879
2879
  const po = "_~IN~_";
2880
- class bc extends Hr {
2880
+ class bc extends Wr {
2881
2881
  constructor(e) {
2882
2882
  super(), this.topProd = e, this.follows = {};
2883
2883
  }
@@ -3012,7 +3012,7 @@ function Ms(n, e, t) {
3012
3012
  default:
3013
3013
  throw Error("non exhaustive match!");
3014
3014
  }
3015
- return H(e);
3015
+ return W(e);
3016
3016
  }
3017
3017
  function Yn(n, e, t) {
3018
3018
  const r = Qe(n);
@@ -3217,14 +3217,14 @@ function Vc(n, e) {
3217
3217
  canBeOptimized: v
3218
3218
  };
3219
3219
  }
3220
- function Wc(n, e) {
3220
+ function Hc(n, e) {
3221
3221
  let t = [];
3222
3222
  const r = jc(n);
3223
3223
  t = t.concat(r.errors);
3224
3224
  const s = zc(r.valid), i = s.valid;
3225
- return t = t.concat(s.errors), t = t.concat(Hc(i)), t = t.concat(td(i)), t = t.concat(nd(i, e)), t = t.concat(rd(i)), t;
3225
+ return t = t.concat(s.errors), t = t.concat(Wc(i)), t = t.concat(td(i)), t = t.concat(nd(i, e)), t = t.concat(rd(i)), t;
3226
3226
  }
3227
- function Hc(n) {
3227
+ function Wc(n) {
3228
3228
  let e = [];
3229
3229
  const t = ke(n, (r) => Ye(r[yt]));
3230
3230
  return e = e.concat(Yc(t)), e = e.concat(Zc(t)), e = e.concat(Qc(t)), e = e.concat(ed(t)), e = e.concat(Xc(t)), e;
@@ -3453,7 +3453,7 @@ function ad(n, e, t) {
3453
3453
  function od(n, e, t) {
3454
3454
  const r = [];
3455
3455
  let s = false;
3456
- const i = wn(Ie(H(n.modes))), a = Ur(i, (l) => l[yt] === ce.NA), o = Ro(t);
3456
+ const i = wn(Ie(W(n.modes))), a = Ur(i, (l) => l[yt] === ce.NA), o = Ro(t);
3457
3457
  return e && x(a, (l) => {
3458
3458
  const u = To(l, o);
3459
3459
  if (u !== false) {
@@ -3591,7 +3591,7 @@ function hd(n) {
3591
3591
  }
3592
3592
  function pd(n) {
3593
3593
  x(n, (e) => {
3594
- Eo(e) || (vo[Vi] = e, e.tokenTypeIdx = Vi++), Wi(e) && !Q(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), Wi(e) || (e.CATEGORIES = []), yd(e) || (e.categoryMatches = []), Td(e) || (e.categoryMatchesMap = {});
3594
+ Eo(e) || (vo[Vi] = e, e.tokenTypeIdx = Vi++), Hi(e) && !Q(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), Hi(e) || (e.CATEGORIES = []), yd(e) || (e.categoryMatches = []), Td(e) || (e.categoryMatchesMap = {});
3595
3595
  });
3596
3596
  }
3597
3597
  function md(n) {
@@ -3617,7 +3617,7 @@ function Ao(n, e) {
3617
3617
  function Eo(n) {
3618
3618
  return I(n, "tokenTypeIdx");
3619
3619
  }
3620
- function Wi(n) {
3620
+ function Hi(n) {
3621
3621
  return I(n, "CATEGORIES");
3622
3622
  }
3623
3623
  function yd(n) {
@@ -3696,7 +3696,7 @@ a boolean 2nd argument is no longer supported`);
3696
3696
  if (x(s.modes, (o, l) => {
3697
3697
  this.TRACE_INIT(`Mode: <${l}> processing`, () => {
3698
3698
  if (this.modes.push(l), this.config.skipValidations === false && this.TRACE_INIT("validatePatterns", () => {
3699
- this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(Wc(o, a));
3699
+ this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(Hc(o, a));
3700
3700
  }), P(this.lexerDefinitionErrors)) {
3701
3701
  bn(o);
3702
3702
  let u;
@@ -3936,7 +3936,7 @@ function wt(n) {
3936
3936
  function ko(n) {
3937
3937
  return de(n.LABEL) && n.LABEL !== "";
3938
3938
  }
3939
- const vd = "parent", Hi = "categories", ji = "label", zi = "group", qi = "push_mode", Yi = "pop_mode", Xi = "longer_alt", Ji = "line_breaks", Zi = "start_chars_hint";
3939
+ const vd = "parent", Wi = "categories", ji = "label", zi = "group", qi = "push_mode", Yi = "pop_mode", Xi = "longer_alt", Ji = "line_breaks", Zi = "start_chars_hint";
3940
3940
  function $o(n) {
3941
3941
  return Ad(n);
3942
3942
  }
@@ -3945,7 +3945,7 @@ function Ad(n) {
3945
3945
  if (t.name = n.name, qe(e) || (t.PATTERN = e), I(n, vd))
3946
3946
  throw `The parent property is no longer supported.
3947
3947
  See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;
3948
- return I(n, Hi) && (t.CATEGORIES = n[Hi]), bn([t]), I(n, ji) && (t.LABEL = n[ji]), I(n, zi) && (t.GROUP = n[zi]), I(n, Yi) && (t.POP_MODE = n[Yi]), I(n, qi) && (t.PUSH_MODE = n[qi]), I(n, Xi) && (t.LONGER_ALT = n[Xi]), I(n, Ji) && (t.LINE_BREAKS = n[Ji]), I(n, Zi) && (t.START_CHARS_HINT = n[Zi]), t;
3948
+ return I(n, Wi) && (t.CATEGORIES = n[Wi]), bn([t]), I(n, ji) && (t.LABEL = n[ji]), I(n, zi) && (t.GROUP = n[zi]), I(n, Yi) && (t.POP_MODE = n[Yi]), I(n, qi) && (t.PUSH_MODE = n[qi]), I(n, Xi) && (t.LONGER_ALT = n[Xi]), I(n, Ji) && (t.LINE_BREAKS = n[Ji]), I(n, Zi) && (t.START_CHARS_HINT = n[Zi]), t;
3949
3949
  }
3950
3950
  const et = $o({ name: "EOF", pattern: ce.NA });
3951
3951
  bn([et]);
@@ -4085,7 +4085,7 @@ class $d extends Ft {
4085
4085
  super(), this.nameToTopRule = e, this.errMsgProvider = t, this.errors = [];
4086
4086
  }
4087
4087
  resolveRefs() {
4088
- x(H(this.nameToTopRule), (e) => {
4088
+ x(W(this.nameToTopRule), (e) => {
4089
4089
  this.currTopLevel = e, e.accept(this);
4090
4090
  });
4091
4091
  }
@@ -4104,7 +4104,7 @@ class $d extends Ft {
4104
4104
  }
4105
4105
  }
4106
4106
  }
4107
- class Sd extends Hr {
4107
+ class Sd extends Wr {
4108
4108
  constructor(e, t) {
4109
4109
  super(), this.topProd = e, this.path = t, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = false, this.isAtEndOfPath = false;
4110
4110
  }
@@ -4137,7 +4137,7 @@ class Cd extends Sd {
4137
4137
  }
4138
4138
  }
4139
4139
  }
4140
- class zr extends Hr {
4140
+ class zr extends Wr {
4141
4141
  constructor(e, t) {
4142
4142
  super(), this.topRule = e, this.occurrence = t, this.result = {
4143
4143
  token: void 0,
@@ -4529,7 +4529,7 @@ function Od(n, e, t) {
4529
4529
  return false;
4530
4530
  };
4531
4531
  }
4532
- class Pd extends Hr {
4532
+ class Pd extends Wr {
4533
4533
  constructor(e, t, r) {
4534
4534
  super(), this.topProd = e, this.targetOccurrence = t, this.targetProdType = r;
4535
4535
  }
@@ -4706,7 +4706,7 @@ function Gd(n, e) {
4706
4706
  const t = new Bd();
4707
4707
  n.accept(t);
4708
4708
  const r = t.allProductions, s = yu(r, Ud), i = be(s, (o) => o.length > 1);
4709
- return k(H(i), (o) => {
4709
+ return k(W(i), (o) => {
4710
4710
  const l = Pe(o), u = e.buildDuplicateFoundError(n, o), c = Fe(l), d = {
4711
4711
  message: u,
4712
4712
  type: le.DUPLICATE_PRODUCTIONS,
@@ -4824,7 +4824,7 @@ class mi extends Ft {
4824
4824
  this.alternations.push(e);
4825
4825
  }
4826
4826
  }
4827
- function Wd(n, e) {
4827
+ function Hd(n, e) {
4828
4828
  const t = new mi();
4829
4829
  n.accept(t);
4830
4830
  const r = t.alternations;
@@ -4848,7 +4848,7 @@ function Wd(n, e) {
4848
4848
  });
4849
4849
  });
4850
4850
  }
4851
- function Hd(n, e, t) {
4851
+ function Wd(n, e, t) {
4852
4852
  const r = new mi();
4853
4853
  n.accept(r);
4854
4854
  let s = r.alternations;
@@ -5211,10 +5211,10 @@ class gi {
5211
5211
  return Ae(e, (t) => _o(t, t, ht));
5212
5212
  }
5213
5213
  validateEmptyOrAlternatives(e) {
5214
- return Ae(e, (t) => Wd(t, ht));
5214
+ return Ae(e, (t) => Hd(t, ht));
5215
5215
  }
5216
5216
  validateAmbiguousAlternationAlternatives(e, t) {
5217
- return Ae(e, (r) => Hd(r, t, ht));
5217
+ return Ae(e, (r) => Wd(r, t, ht));
5218
5218
  }
5219
5219
  validateSomeNonEmptyLookaheadPath(e, t) {
5220
5220
  return qd(e, t, ht);
@@ -5394,17 +5394,17 @@ function gf(n, e, t) {
5394
5394
  s[i] = pf;
5395
5395
  }), r.prototype = s, r.prototype.constructor = r, r;
5396
5396
  }
5397
- var Ws;
5397
+ var Hs;
5398
5398
  (function(n) {
5399
5399
  n[n.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", n[n.MISSING_METHOD = 1] = "MISSING_METHOD";
5400
- })(Ws || (Ws = {}));
5400
+ })(Hs || (Hs = {}));
5401
5401
  function yf(n, e) {
5402
5402
  return Tf(n, e);
5403
5403
  }
5404
5404
  function Tf(n, e) {
5405
5405
  const t = ke(e, (s) => vt(n[s]) === false), r = k(t, (s) => ({
5406
5406
  msg: `Missing visitor method: <${s}> on ${n.constructor.name} CST Visitor.`,
5407
- type: Ws.MISSING_METHOD,
5407
+ type: Hs.MISSING_METHOD,
5408
5408
  methodName: s
5409
5409
  }));
5410
5410
  return wn(r);
@@ -5862,7 +5862,7 @@ class Af {
5862
5862
  return this.gastProductionsCache;
5863
5863
  }
5864
5864
  getSerializedGastProductions() {
5865
- return Nc(H(this.gastProductionsCache));
5865
+ return Nc(W(this.gastProductionsCache));
5866
5866
  }
5867
5867
  }
5868
5868
  class Ef {
@@ -5883,16 +5883,16 @@ class Ef {
5883
5883
  }
5884
5884
  if (Q(e))
5885
5885
  this.tokensMap = ae(e, (i, a) => (i[a.name] = a, i), {});
5886
- else if (I(e, "modes") && Oe(Ie(H(e.modes)), Rd)) {
5887
- const i = Ie(H(e.modes)), a = ni(i);
5886
+ else if (I(e, "modes") && Oe(Ie(W(e.modes)), Rd)) {
5887
+ const i = Ie(W(e.modes)), a = ni(i);
5888
5888
  this.tokensMap = ae(a, (o, l) => (o[l.name] = l, o), {});
5889
5889
  } else if (tu(e))
5890
5890
  this.tokensMap = te(e);
5891
5891
  else
5892
5892
  throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
5893
5893
  this.tokensMap.EOF = et;
5894
- const r = I(e, "modes") ? Ie(H(e.modes)) : H(e), s = Oe(r, (i) => P(i.categoryMatches));
5895
- this.tokenMatcher = s ? xr : Pn, bn(H(this.tokensMap));
5894
+ const r = I(e, "modes") ? Ie(W(e.modes)) : W(e), s = Oe(r, (i) => P(i.categoryMatches));
5895
+ this.tokenMatcher = s ? xr : Pn, bn(W(this.tokensMap));
5896
5896
  }
5897
5897
  defineRule(e, t, r) {
5898
5898
  if (this.selfAnalysisDone)
@@ -6505,31 +6505,31 @@ class Mn {
6505
6505
  let r = [];
6506
6506
  if (this.TRACE_INIT("Grammar Resolving", () => {
6507
6507
  r = Zd({
6508
- rules: H(this.gastProductionsCache)
6508
+ rules: W(this.gastProductionsCache)
6509
6509
  }), this.definitionErrors = this.definitionErrors.concat(r);
6510
6510
  }), this.TRACE_INIT("Grammar Validations", () => {
6511
6511
  if (P(r) && this.skipValidations === false) {
6512
6512
  const s = Qd({
6513
- rules: H(this.gastProductionsCache),
6514
- tokenTypes: H(this.tokensMap),
6513
+ rules: W(this.gastProductionsCache),
6514
+ tokenTypes: W(this.tokensMap),
6515
6515
  errMsgProvider: ht,
6516
6516
  grammarName: t
6517
6517
  }), i = Dd({
6518
6518
  lookaheadStrategy: this.lookaheadStrategy,
6519
- rules: H(this.gastProductionsCache),
6520
- tokenTypes: H(this.tokensMap),
6519
+ rules: W(this.gastProductionsCache),
6520
+ tokenTypes: W(this.tokensMap),
6521
6521
  grammarName: t
6522
6522
  });
6523
6523
  this.definitionErrors = this.definitionErrors.concat(s, i);
6524
6524
  }
6525
6525
  }), P(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => {
6526
- const s = Mc(H(this.gastProductionsCache));
6526
+ const s = Mc(W(this.gastProductionsCache));
6527
6527
  this.resyncFollows = s;
6528
6528
  }), this.TRACE_INIT("ComputeLookaheadFunctions", () => {
6529
6529
  var s, i;
6530
6530
  (i = (s = this.lookaheadStrategy).initialize) === null || i === void 0 || i.call(s, {
6531
- rules: H(this.gastProductionsCache)
6532
- }), this.preComputeLookaheadFunctions(H(this.gastProductionsCache));
6531
+ rules: W(this.gastProductionsCache)
6532
+ }), this.preComputeLookaheadFunctions(W(this.gastProductionsCache));
6533
6533
  })), !Mn.DEFER_DEFINITION_ERRORS_HANDLING && !P(this.definitionErrors))
6534
6534
  throw e = k(this.definitionErrors, (s) => s.message), new Error(`Parser Definition Errors detected:
6535
6535
  ${e.join(`
@@ -6570,7 +6570,7 @@ class wf extends Mn {
6570
6570
  function Pt(n, e, t) {
6571
6571
  return `${n.name}_${e}_${t}`;
6572
6572
  }
6573
- const tt = 1, _f = 2, Wo = 4, Ho = 5, Dn = 7, Lf = 8, Of = 9, Pf = 10, bf = 11, jo = 12;
6573
+ const tt = 1, _f = 2, Ho = 4, Wo = 5, Dn = 7, Lf = 8, Of = 9, Pf = 10, bf = 11, jo = 12;
6574
6574
  class yi {
6575
6575
  constructor(e) {
6576
6576
  this.target = e;
@@ -6632,7 +6632,7 @@ function qo(n, e, t) {
6632
6632
  }
6633
6633
  function Ff(n, e, t) {
6634
6634
  const r = q(n, e, t, {
6635
- type: Ho
6635
+ type: Wo
6636
6636
  });
6637
6637
  st(n, r);
6638
6638
  const s = Gt(n, e, r, t, Et(n, e, t));
@@ -6640,7 +6640,7 @@ function Ff(n, e, t) {
6640
6640
  }
6641
6641
  function Gf(n, e, t) {
6642
6642
  const r = q(n, e, t, {
6643
- type: Ho
6643
+ type: Wo
6644
6644
  });
6645
6645
  st(n, r);
6646
6646
  const s = Gt(n, e, r, t, Et(n, e, t)), i = vi(n, e, t.separator, t);
@@ -6648,7 +6648,7 @@ function Gf(n, e, t) {
6648
6648
  }
6649
6649
  function Uf(n, e, t) {
6650
6650
  const r = q(n, e, t, {
6651
- type: Wo
6651
+ type: Ho
6652
6652
  });
6653
6653
  st(n, r);
6654
6654
  const s = Gt(n, e, r, t, Et(n, e, t));
@@ -6656,7 +6656,7 @@ function Uf(n, e, t) {
6656
6656
  }
6657
6657
  function Bf(n, e, t) {
6658
6658
  const r = q(n, e, t, {
6659
- type: Wo
6659
+ type: Ho
6660
6660
  });
6661
6661
  st(n, r);
6662
6662
  const s = Gt(n, e, r, t, Et(n, e, t)), i = vi(n, e, t.separator, t);
@@ -6676,7 +6676,7 @@ function Vf(n, e, t) {
6676
6676
  });
6677
6677
  st(n, r);
6678
6678
  const s = Gt(n, e, r, t, Et(n, e, t));
6679
- return Wf(n, e, t, s);
6679
+ return Hf(n, e, t, s);
6680
6680
  }
6681
6681
  function Et(n, e, t) {
6682
6682
  const r = ke(k(t.definition, (s) => qo(n, e, s)), (s) => s !== void 0);
@@ -6710,7 +6710,7 @@ function Xo(n, e, t, r, s) {
6710
6710
  right: l
6711
6711
  };
6712
6712
  }
6713
- function Wf(n, e, t, r) {
6713
+ function Hf(n, e, t, r) {
6714
6714
  const s = r.left, i = r.right;
6715
6715
  return V(s, i), n.decisionMap[Pt(e, "Option", t.idx)] = s, r;
6716
6716
  }
@@ -6729,9 +6729,9 @@ function Gt(n, e, t, r, ...s) {
6729
6729
  left: t,
6730
6730
  right: i
6731
6731
  };
6732
- return n.decisionMap[Pt(e, Hf(r), r.idx)] = t, a;
6732
+ return n.decisionMap[Pt(e, Wf(r), r.idx)] = t, a;
6733
6733
  }
6734
- function Hf(n) {
6734
+ function Wf(n) {
6735
6735
  if (n instanceof pe)
6736
6736
  return "Alternation";
6737
6737
  if (n instanceof ee)
@@ -6815,7 +6815,7 @@ function Yf(n, e) {
6815
6815
  n.states.splice(n.states.indexOf(e), 1);
6816
6816
  }
6817
6817
  const Lr = {};
6818
- class Hs {
6818
+ class Ws {
6819
6819
  constructor() {
6820
6820
  this.map = {}, this.configs = [];
6821
6821
  }
@@ -7073,7 +7073,7 @@ function ih(n, e) {
7073
7073
  return n.edges[e.tokenTypeIdx];
7074
7074
  }
7075
7075
  function ah(n, e, t) {
7076
- const r = new Hs(), s = [];
7076
+ const r = new Ws(), s = [];
7077
7077
  for (const a of n.elements) {
7078
7078
  if (t.is(a.alt) === false)
7079
7079
  continue;
@@ -7093,7 +7093,7 @@ function ah(n, e, t) {
7093
7093
  }
7094
7094
  let i;
7095
7095
  if (s.length === 0 && r.size === 1 && (i = r), i === void 0) {
7096
- i = new Hs();
7096
+ i = new Ws();
7097
7097
  for (const a of r.elements)
7098
7098
  Or(a, i);
7099
7099
  }
@@ -7135,7 +7135,7 @@ function el(n, e) {
7135
7135
  return r !== void 0 ? r : (e.configs.finalize(), n.states[t] = e, e);
7136
7136
  }
7137
7137
  function uh(n) {
7138
- const e = new Hs(), t = n.transitions.length;
7138
+ const e = new Ws(), t = n.transitions.length;
7139
7139
  for (let r = 0; r < t; r++) {
7140
7140
  const i = {
7141
7141
  state: n.transitions[r].target,
@@ -7357,7 +7357,7 @@ class Ei extends tl {
7357
7357
  }
7358
7358
  return this._rangeCache;
7359
7359
  } else
7360
- return { start: W.create(0, 0), end: W.create(0, 0) };
7360
+ return { start: H.create(0, 0), end: H.create(0, 0) };
7361
7361
  }
7362
7362
  get firstNonHiddenNode() {
7363
7363
  for (const e of this.content)
@@ -7765,7 +7765,7 @@ function Tt(n, e, t = false) {
7765
7765
  r = Ih(n, e);
7766
7766
  else if (ii(e))
7767
7767
  r = Nh(n, e);
7768
- else if (Wu(e)) {
7768
+ else if (Hu(e)) {
7769
7769
  const s = n.consume++;
7770
7770
  r = () => n.parser.consume(s, et, e);
7771
7771
  } else
@@ -9123,12 +9123,12 @@ class Vh {
9123
9123
  return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${s} named '${e.reference.$refText}'.`, targetDescription: t });
9124
9124
  }
9125
9125
  }
9126
- function Wh(n) {
9126
+ function Hh(n) {
9127
9127
  return typeof n.name == "string";
9128
9128
  }
9129
- class Hh {
9129
+ class Wh {
9130
9130
  getName(e) {
9131
- if (Wh(e))
9131
+ if (Hh(e))
9132
9132
  return e.name;
9133
9133
  }
9134
9134
  getNameNode(e) {
@@ -10586,7 +10586,7 @@ function Aa(n) {
10586
10586
  }
10587
10587
  function Tp(n, e, t) {
10588
10588
  let r, s;
10589
- typeof n == "string" ? (s = e, r = t) : (s = n.range.start, r = e), s || (s = W.create(0, 0));
10589
+ typeof n == "string" ? (s = e, r = t) : (s = n.range.start, r = e), s || (s = H.create(0, 0));
10590
10590
  const i = Rl(n), a = Si(r), o = Ap({
10591
10591
  lines: i,
10592
10592
  position: s,
@@ -10630,7 +10630,7 @@ function Ap(n) {
10630
10630
  }
10631
10631
  if (c = c.substring(0, Sp(c)), Js(c, d) >= c.length) {
10632
10632
  if (s.length > 0) {
10633
- const h = W.create(i, a);
10633
+ const h = H.create(i, a);
10634
10634
  s.push({
10635
10635
  type: "break",
10636
10636
  content: "",
@@ -10641,7 +10641,7 @@ function Ap(n) {
10641
10641
  Ea.lastIndex = d;
10642
10642
  const h = Ea.exec(c);
10643
10643
  if (h) {
10644
- const p = h[0], m = h[1], v = W.create(i, a + d), y = W.create(i, a + d + p.length);
10644
+ const p = h[0], m = h[1], v = H.create(i, a + d), y = H.create(i, a + d + p.length);
10645
10645
  s.push({
10646
10646
  type: "tag",
10647
10647
  content: m,
@@ -10660,7 +10660,7 @@ function Ap(n) {
10660
10660
  function Ep(n, e, t, r) {
10661
10661
  const s = [];
10662
10662
  if (n.length === 0) {
10663
- const i = W.create(t, r), a = W.create(t, r + e.length);
10663
+ const i = H.create(t, r), a = H.create(t, r + e.length);
10664
10664
  s.push({
10665
10665
  type: "text",
10666
10666
  content: e,
@@ -10673,27 +10673,27 @@ function Ep(n, e, t, r) {
10673
10673
  u.length > 0 && s.push({
10674
10674
  type: "text",
10675
10675
  content: e.substring(i, l),
10676
- range: Re.create(W.create(t, i + r), W.create(t, l + r))
10676
+ range: Re.create(H.create(t, i + r), H.create(t, l + r))
10677
10677
  });
10678
10678
  let c = u.length + 1;
10679
10679
  const d = o[1];
10680
10680
  if (s.push({
10681
10681
  type: "inline-tag",
10682
10682
  content: d,
10683
- range: Re.create(W.create(t, i + c + r), W.create(t, i + c + d.length + r))
10683
+ range: Re.create(H.create(t, i + c + r), H.create(t, i + c + d.length + r))
10684
10684
  }), c += d.length, o.length === 4) {
10685
10685
  c += o[2].length;
10686
10686
  const f = o[3];
10687
10687
  s.push({
10688
10688
  type: "text",
10689
10689
  content: f,
10690
- range: Re.create(W.create(t, i + c + r), W.create(t, i + c + f.length + r))
10690
+ range: Re.create(H.create(t, i + c + r), H.create(t, i + c + f.length + r))
10691
10691
  });
10692
10692
  } else
10693
10693
  s.push({
10694
10694
  type: "text",
10695
10695
  content: "",
10696
- range: Re.create(W.create(t, i + c + r), W.create(t, i + c + r))
10696
+ range: Re.create(H.create(t, i + c + r), H.create(t, i + c + r))
10697
10697
  });
10698
10698
  i = l + o[0].length;
10699
10699
  }
@@ -10701,7 +10701,7 @@ function Ep(n, e, t, r) {
10701
10701
  a.length > 0 && s.push({
10702
10702
  type: "text",
10703
10703
  content: a,
10704
- range: Re.create(W.create(t, i + r), W.create(t, i + r + a.length))
10704
+ range: Re.create(H.create(t, i + r), H.create(t, i + r + a.length))
10705
10705
  });
10706
10706
  }
10707
10707
  return s;
@@ -10718,7 +10718,7 @@ function Sp(n) {
10718
10718
  }
10719
10719
  function Cp(n) {
10720
10720
  var e, t, r, s;
10721
- const i = W.create(n.position.line, n.position.character);
10721
+ const i = H.create(n.position.line, n.position.character);
10722
10722
  if (n.tokens.length === 0)
10723
10723
  return new ka([], Re.create(i, i));
10724
10724
  const a = [];
@@ -10790,7 +10790,7 @@ function Si(n) {
10790
10790
  }
10791
10791
  function Ts(n, e) {
10792
10792
  if (typeof n == "string" || typeof n == "object") {
10793
- const t = typeof n == "string" ? Wr(n) : n.source;
10793
+ const t = typeof n == "string" ? Hr(n) : n.source;
10794
10794
  return e ? new RegExp(`^\\s*${t}`) : new RegExp(`\\s*${t}\\s*$`);
10795
10795
  } else
10796
10796
  return n;
@@ -11066,7 +11066,7 @@ class Mp {
11066
11066
  }
11067
11067
  dehydrateCstNode(e, t) {
11068
11068
  const r = t.cstNodes.get(e);
11069
- return ja(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), In(e) ? r.content = e.content.map((s) => this.dehydrateCstNode(s, t)) : Ha(e) && (r.tokenType = e.tokenType.name, r.offset = e.offset, r.length = e.length, r.startLine = e.range.start.line, r.startColumn = e.range.start.character, r.endLine = e.range.end.line, r.endColumn = e.range.end.character), r;
11069
+ return ja(e) ? r.fullText = e.fullText : r.grammarSource = this.getGrammarElementId(e.grammarSource), r.hidden = e.hidden, r.astNode = t.astNodes.get(e.astNode), In(e) ? r.content = e.content.map((s) => this.dehydrateCstNode(s, t)) : Wa(e) && (r.tokenType = e.tokenType.name, r.offset = e.offset, r.length = e.length, r.startLine = e.range.start.line, r.startColumn = e.range.start.character, r.endLine = e.range.end.line, r.endColumn = e.range.end.character), r;
11070
11070
  }
11071
11071
  hydrate(e) {
11072
11072
  const t = e.value, r = this.createHydrationContext(t);
@@ -11173,7 +11173,7 @@ function it(n) {
11173
11173
  },
11174
11174
  references: {
11175
11175
  Linker: (e) => new Vh(e),
11176
- NameProvider: () => new Hh(),
11176
+ NameProvider: () => new Wh(),
11177
11177
  ScopeProvider: (e) => new Zh(e),
11178
11178
  ScopeComputation: (e) => new zh(e),
11179
11179
  References: (e) => new jh(e)
@@ -11295,15 +11295,15 @@ function Vp(n) {
11295
11295
  }
11296
11296
  R(Vp, "isArchitecture");
11297
11297
  var Qn = "Axis", En = "Branch";
11298
- function Wp(n) {
11298
+ function Hp(n) {
11299
11299
  return Me.isInstance(n, En);
11300
11300
  }
11301
- R(Wp, "isBranch");
11301
+ R(Hp, "isBranch");
11302
11302
  var er = "Checkout", tr = "CherryPicking", vs = "ClassDefStatement", kn = "Commit";
11303
- function Hp(n) {
11303
+ function Wp(n) {
11304
11304
  return Me.isInstance(n, kn);
11305
11305
  }
11306
- R(Hp, "isCommit");
11306
+ R(Wp, "isCommit");
11307
11307
  var As = "Curve", Es = "Edge", ks = "Entry", $n = "GitGraph";
11308
11308
  function jp(n) {
11309
11309
  return Me.isInstance(n, $n);
@@ -11344,7 +11344,7 @@ function Qp(n) {
11344
11344
  return Me.isInstance(n, vr);
11345
11345
  }
11346
11346
  R(Qp, "isTreemap");
11347
- var Ns = "TreemapRow", rr = "Direction", sr = "Leaf", ir = "Section", Sl = (_a2 = class extends Wa {
11347
+ var Ns = "TreemapRow", rr = "Direction", sr = "Leaf", ir = "Section", Sl = (_a2 = class extends Ha {
11348
11348
  getAllTypes() {
11349
11349
  return [pr, Qn, En, er, tr, vs, kn, As, rr, Es, ks, $n, $s, mr, nr, Ss, sr, Sn, Cs, gr, yr, Tr, Rr, xs, ir, Is, Ia, vr, Ns];
11350
11350
  }
@@ -11974,42 +11974,42 @@ function Ul(n = ot) {
11974
11974
  return e.ServiceRegistry.register(t), Fl(t), { shared: e, Treemap: t };
11975
11975
  }
11976
11976
  R(Ul, "createTreemapServices");
11977
- var We = {}, Dm = {
11977
+ var He = {}, Dm = {
11978
11978
  info: /* @__PURE__ */ R(async () => {
11979
11979
  const { createInfoServices: n } = await Promise.resolve().then(() => Um), e = n().Info.parser.LangiumParser;
11980
- We.info = e;
11980
+ He.info = e;
11981
11981
  }, "info"),
11982
11982
  packet: /* @__PURE__ */ R(async () => {
11983
11983
  const { createPacketServices: n } = await Promise.resolve().then(() => Bm), e = n().Packet.parser.LangiumParser;
11984
- We.packet = e;
11984
+ He.packet = e;
11985
11985
  }, "packet"),
11986
11986
  pie: /* @__PURE__ */ R(async () => {
11987
11987
  const { createPieServices: n } = await Promise.resolve().then(() => Km), e = n().Pie.parser.LangiumParser;
11988
- We.pie = e;
11988
+ He.pie = e;
11989
11989
  }, "pie"),
11990
11990
  architecture: /* @__PURE__ */ R(async () => {
11991
11991
  const { createArchitectureServices: n } = await Promise.resolve().then(() => Vm), e = n().Architecture.parser.LangiumParser;
11992
- We.architecture = e;
11992
+ He.architecture = e;
11993
11993
  }, "architecture"),
11994
11994
  gitGraph: /* @__PURE__ */ R(async () => {
11995
- const { createGitGraphServices: n } = await Promise.resolve().then(() => Wm), e = n().GitGraph.parser.LangiumParser;
11996
- We.gitGraph = e;
11995
+ const { createGitGraphServices: n } = await Promise.resolve().then(() => Hm), e = n().GitGraph.parser.LangiumParser;
11996
+ He.gitGraph = e;
11997
11997
  }, "gitGraph"),
11998
11998
  radar: /* @__PURE__ */ R(async () => {
11999
- const { createRadarServices: n } = await Promise.resolve().then(() => Hm), e = n().Radar.parser.LangiumParser;
12000
- We.radar = e;
11999
+ const { createRadarServices: n } = await Promise.resolve().then(() => Wm), e = n().Radar.parser.LangiumParser;
12000
+ He.radar = e;
12001
12001
  }, "radar"),
12002
12002
  treemap: /* @__PURE__ */ R(async () => {
12003
12003
  const { createTreemapServices: n } = await Promise.resolve().then(() => jm), e = n().Treemap.parser.LangiumParser;
12004
- We.treemap = e;
12004
+ He.treemap = e;
12005
12005
  }, "treemap")
12006
12006
  };
12007
12007
  async function Fm(n, e) {
12008
12008
  const t = Dm[n];
12009
12009
  if (!t)
12010
12010
  throw new Error(`Unknown diagram type: ${n}`);
12011
- We[n] || await t();
12012
- const s = We[n].parse(e);
12011
+ He[n] || await t();
12012
+ const s = He[n].parse(e);
12013
12013
  if (s.lexerErrors.length > 0 || s.parserErrors.length > 0)
12014
12014
  throw new Gm(s);
12015
12015
  return s.value;
@@ -12039,11 +12039,11 @@ const Um = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12039
12039
  __proto__: null,
12040
12040
  ArchitectureModule: Pl,
12041
12041
  createArchitectureServices: bl
12042
- }, Symbol.toStringTag, { value: "Module" })), Wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12042
+ }, Symbol.toStringTag, { value: "Module" })), Hm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12043
12043
  __proto__: null,
12044
12044
  GitGraphModule: Cl,
12045
12045
  createGitGraphServices: xl
12046
- }, Symbol.toStringTag, { value: "Module" })), Hm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12046
+ }, Symbol.toStringTag, { value: "Module" })), Wm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12047
12047
  __proto__: null,
12048
12048
  RadarModule: Ml,
12049
12049
  createRadarServices: Dl