@marimo-team/islands 0.23.10-dev3 → 0.23.10-dev31

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 (165) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CyV83R2m.js → ConnectedDataExplorerComponent-DmBropAy.js} +31 -31
  2. package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
  3. package/dist/{any-language-editor-DfdpyDv_.js → any-language-editor-DNmoSiWL.js} +20 -20
  4. package/dist/assets/__vite-browser-external-eshhtsgZ.js +1 -0
  5. package/dist/assets/worker-CC0Oul9k.js +73 -0
  6. package/dist/{chat-ui-C1tL1pML.js → chat-ui-D6oraHT2.js} +76 -76
  7. package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
  8. package/dist/{code-visibility-DfnO0DcH.js → code-visibility-B9qGgair.js} +2166 -1292
  9. package/dist/{copy-BuQpJEzp.js → copy-UqRYxiOg.js} +33 -33
  10. package/dist/dist-7QfXoMdB.js +5 -0
  11. package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
  12. package/dist/dist-BEXXyZig.js +5 -0
  13. package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
  14. package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
  15. package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
  16. package/dist/dist-BYj57OV4.js +5 -0
  17. package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
  18. package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
  19. package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
  20. package/dist/dist-BlSvQzNr.js +5 -0
  21. package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
  22. package/dist/dist-CCBlxAgS.js +8 -0
  23. package/dist/dist-CIDTVIUf.js +5 -0
  24. package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
  25. package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
  26. package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
  27. package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
  28. package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
  29. package/dist/dist-CqQyhAM8.js +8 -0
  30. package/dist/dist-CwRu2Xzh.js +5 -0
  31. package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
  32. package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
  33. package/dist/dist-D8CDTVgf.js +6 -0
  34. package/dist/dist-D8DNB0nO.js +8 -0
  35. package/dist/dist-DL6N_q-A.js +5 -0
  36. package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
  37. package/dist/dist-DOFbNV_b.js +8 -0
  38. package/dist/dist-DPrYzMY0.js +6 -0
  39. package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
  40. package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
  41. package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
  42. package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
  43. package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
  44. package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
  45. package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
  46. package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
  47. package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
  48. package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
  49. package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
  50. package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
  51. package/dist/dist-cdmMjgsn.js +5 -0
  52. package/dist/dist-hT4QzYX-.js +1247 -0
  53. package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
  54. package/dist/{error-banner-5bz0L9hS.js → error-banner-Cc0I3C9e.js} +1 -1
  55. package/dist/esm-BaH2eg5-.js +1171 -0
  56. package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
  57. package/dist/{extends-BgdxCfYu.js → extends-D_hDsj6R.js} +4 -4
  58. package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
  59. package/dist/{glide-data-editor-BOmK9ETQ.js → glide-data-editor-Qhu8oCX-.js} +12 -12
  60. package/dist/{html-to-image-CNa5ok96.js → html-to-image-UEH5lFDZ.js} +2318 -2275
  61. package/dist/{input-_2sjvfne.js → input-CMYy4hzj.js} +187 -185
  62. package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
  63. package/dist/main.js +6941 -6913
  64. package/dist/{mermaid-lXOw5Py9.js → mermaid-zuLgJ8J8.js} +4 -4
  65. package/dist/{process-output-DKr4f1di.js → process-output-CyMLTogj.js} +3 -3
  66. package/dist/{reveal-component-UdMnCK5U.js → reveal-component-Co2AuBAx.js} +697 -619
  67. package/dist/{spec-B96zNUEA.js → spec-X7FwLJni.js} +4 -4
  68. package/dist/{strings-Bu3vlb6W.js → strings-J57tzLr3.js} +47 -46
  69. package/dist/style.css +1 -1
  70. package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
  71. package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
  72. package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
  73. package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
  74. package/dist/{useDateFormatter-BA4FCquG.js → useDateFormatter-QB-3MpYr.js} +2 -2
  75. package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
  76. package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
  77. package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
  78. package/dist/{vega-component-Dq-SH463.js → vega-component-9h1ACS78.js} +8 -8
  79. package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
  80. package/package.json +3 -3
  81. package/src/components/data-table/TableBottomBar.tsx +1 -15
  82. package/src/components/data-table/TableTopBar.tsx +8 -13
  83. package/src/components/data-table/__tests__/TableBottomBar.test.tsx +6 -12
  84. package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +227 -0
  85. package/src/components/data-table/__tests__/data-table.test.tsx +154 -12
  86. package/src/components/data-table/column-visibility-dropdown.tsx +204 -0
  87. package/src/components/data-table/data-table.tsx +1 -1
  88. package/src/components/data-table/filter-by-values-picker.tsx +39 -17
  89. package/src/components/data-table/filter-pills.tsx +1 -1
  90. package/src/components/data-table/hover-tooltip/__tests__/content.test.ts +60 -0
  91. package/src/components/data-table/hover-tooltip/content.ts +44 -0
  92. package/src/components/data-table/hover-tooltip/hover-tooltip.tsx +55 -0
  93. package/src/components/data-table/hover-tooltip/use-table-hover-tooltip.ts +159 -0
  94. package/src/components/data-table/renderers.tsx +27 -43
  95. package/src/components/datasources/__tests__/filter-empty.test.ts +183 -0
  96. package/src/components/datasources/datasources.tsx +92 -3
  97. package/src/components/editor/cell/cell-context-menu.tsx +15 -2
  98. package/src/components/editor/cell/code/language-toggle.tsx +7 -1
  99. package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
  100. package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
  101. package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
  102. package/src/components/editor/documentation.css +35 -0
  103. package/src/components/editor/file-tree/file-explorer.tsx +8 -18
  104. package/src/components/editor/file-tree/tree-actions.tsx +46 -1
  105. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
  106. package/src/components/editor/renderers/slides-layout/types.ts +1 -0
  107. package/src/components/slides/__tests__/minimap-actions.test.tsx +166 -0
  108. package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
  109. package/src/components/slides/minimap.tsx +127 -10
  110. package/src/components/slides/reveal-component.tsx +287 -61
  111. package/src/components/slides/slide-cell-view.tsx +26 -2
  112. package/src/components/slides/slide-form.tsx +26 -4
  113. package/src/components/storage/__tests__/storage-inspector.test.ts +53 -0
  114. package/src/components/storage/storage-inspector.tsx +68 -48
  115. package/src/components/ui/__tests__/use-toast.test.ts +75 -0
  116. package/src/components/ui/combobox.tsx +51 -32
  117. package/src/components/ui/reorderable-list.tsx +13 -0
  118. package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
  119. package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
  120. package/src/components/ui/select-core/index.ts +16 -0
  121. package/src/components/ui/select-core/option-row.tsx +33 -0
  122. package/src/components/ui/select-core/render-slot.ts +20 -0
  123. package/src/components/ui/select-core/select-list.tsx +248 -0
  124. package/src/components/ui/select-core/types.ts +44 -0
  125. package/src/components/ui/select-core/use-select-list.ts +347 -0
  126. package/src/components/ui/select-core/utils.ts +121 -0
  127. package/src/components/ui/use-toast.ts +33 -13
  128. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -28
  129. package/src/core/cells/__tests__/cell.test.ts +29 -2
  130. package/src/core/cells/cell.ts +5 -1
  131. package/src/core/codemirror/go-to-definition/commands.ts +4 -3
  132. package/src/core/codemirror/language/languages/python.ts +2 -0
  133. package/src/core/codemirror/language/languages/sql/utils.ts +3 -1
  134. package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
  135. package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
  136. package/src/core/datasets/data-source-connections.ts +2 -0
  137. package/src/core/network/__tests__/requests-static.test.ts +30 -0
  138. package/src/core/network/requests-static.ts +14 -10
  139. package/src/core/wasm/worker/bootstrap.ts +12 -4
  140. package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
  141. package/src/plugins/impl/SearchableSelect.tsx +16 -97
  142. package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
  143. package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
  144. package/src/plugins/layout/DownloadPlugin.tsx +1 -1
  145. package/src/utils/lazy.ts +6 -1
  146. package/dist/assets/__vite-browser-external-Ci2ZQfXU.js +0 -1
  147. package/dist/assets/worker-ip3AI_sN.js +0 -73
  148. package/dist/dist-0Fif7jnk.js +0 -5
  149. package/dist/dist-B5h_9sHB.js +0 -6
  150. package/dist/dist-B9M6R5ye.js +0 -5
  151. package/dist/dist-BCt3tnck.js +0 -8
  152. package/dist/dist-BUIJwMwn.js +0 -8
  153. package/dist/dist-BpquMd3k.js +0 -5
  154. package/dist/dist-BzJsqYfz.js +0 -5
  155. package/dist/dist-CA5ELXAf.js +0 -6
  156. package/dist/dist-CLBRs6Uv.js +0 -5
  157. package/dist/dist-CStVCMbq.js +0 -5
  158. package/dist/dist-CZRIEY3Y.js +0 -8
  159. package/dist/dist-CuUHbFD0.js +0 -5
  160. package/dist/dist-DV7Iabxb.js +0 -8
  161. package/dist/dist-DhHh0jLg.js +0 -1247
  162. package/dist/dist-DuEeHMvL.js +0 -5
  163. package/dist/esm-BfhQmZjp.js +0 -1171
  164. package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
  165. /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
@@ -2,67 +2,67 @@ import { s as __toESM } from "./chunk-BNovOVIE.js";
2
2
  import { _ as Logger } from "./button-C5K9fIPF.js";
3
3
  import { t as require_react } from "./react-DA-nE2FX.js";
4
4
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
5
- import { u as createLucideIcon } from "./dist-C1BYNeCR.js";
5
+ import { u as createLucideIcon } from "./dist-Dk6PV_d3.js";
6
6
  require_compiler_runtime(), require_react();
7
7
  var TOAST_LIMIT = 1, TOAST_REMOVE_DELAY = 1e4, count = 0;
8
8
  function genId() {
9
9
  return count = (count + 1) % Number.MAX_VALUE, count.toString();
10
10
  }
11
- var toastTimeouts = /* @__PURE__ */ new Map(), addToRemoveQueue = (e) => {
11
+ var toastTimeouts = /* @__PURE__ */ new Map(), shownOnceKeys = /* @__PURE__ */ new Set(), addToRemoveQueue = (e) => {
12
12
  if (toastTimeouts.has(e)) return;
13
- let p = setTimeout(() => {
13
+ let d = setTimeout(() => {
14
14
  toastTimeouts.delete(e), dispatch({
15
15
  type: "REMOVE_TOAST",
16
16
  toastId: e
17
17
  });
18
18
  }, TOAST_REMOVE_DELAY);
19
- toastTimeouts.set(e, p);
19
+ toastTimeouts.set(e, d);
20
20
  };
21
- const reducer = (e, p) => {
22
- switch (p.type) {
21
+ const reducer = (e, d) => {
22
+ switch (d.type) {
23
23
  case "ADD_TOAST":
24
24
  return {
25
25
  ...e,
26
- toasts: [p.toast, ...e.toasts].slice(0, TOAST_LIMIT)
26
+ toasts: [d.toast, ...e.toasts].slice(0, TOAST_LIMIT)
27
27
  };
28
28
  case "UPDATE_TOAST":
29
29
  return {
30
30
  ...e,
31
- toasts: e.toasts.map((e2) => e2.id === p.toast.id ? {
31
+ toasts: e.toasts.map((e2) => e2.id === d.toast.id ? {
32
32
  ...e2,
33
- ...p.toast
33
+ ...d.toast
34
34
  } : e2)
35
35
  };
36
36
  case "DISMISS_TOAST": {
37
- let { toastId: m } = p;
38
- return m ? addToRemoveQueue(m) : e.toasts.forEach((e2) => {
37
+ let { toastId: f } = d;
38
+ return f ? addToRemoveQueue(f) : e.toasts.forEach((e2) => {
39
39
  addToRemoveQueue(e2.id);
40
40
  }), {
41
41
  ...e,
42
- toasts: e.toasts.map((e2) => e2.id === m || m === void 0 ? {
42
+ toasts: e.toasts.map((e2) => e2.id === f || f === void 0 ? {
43
43
  ...e2,
44
44
  open: false
45
45
  } : e2)
46
46
  };
47
47
  }
48
48
  case "REMOVE_TOAST":
49
- return p.toastId === void 0 ? {
49
+ return d.toastId === void 0 ? {
50
50
  ...e,
51
51
  toasts: []
52
52
  } : {
53
53
  ...e,
54
- toasts: e.toasts.filter((e2) => e2.id !== p.toastId)
54
+ toasts: e.toasts.filter((e2) => e2.id !== d.toastId)
55
55
  };
56
56
  case "UPSERT_TOAST":
57
- return e.toasts.findIndex((e2) => e2.id === p.toast.id) > -1 ? {
57
+ return e.toasts.findIndex((e2) => e2.id === d.toast.id) > -1 ? {
58
58
  ...e,
59
- toasts: e.toasts.map((e2) => e2.id === p.toast.id ? {
59
+ toasts: e.toasts.map((e2) => e2.id === d.toast.id ? {
60
60
  ...e2,
61
- ...p.toast
61
+ ...d.toast
62
62
  } : e2)
63
63
  } : {
64
64
  ...e,
65
- toasts: [p.toast, ...e.toasts].slice(0, TOAST_LIMIT)
65
+ toasts: [d.toast, ...e.toasts].slice(0, TOAST_LIMIT)
66
66
  };
67
67
  }
68
68
  };
@@ -72,39 +72,39 @@ function dispatch(e) {
72
72
  e2(memoryState);
73
73
  });
74
74
  }
75
- function toast({ id: e, ...p }) {
76
- let m = e || genId(), h = (e2) => dispatch({
75
+ function toast({ id: e, once: d, ...f }) {
76
+ let p = e || genId(), m = d === true && e !== void 0, h = (e2) => dispatch({
77
77
  type: "UPDATE_TOAST",
78
78
  toast: {
79
79
  ...e2,
80
- id: m
80
+ id: p
81
81
  }
82
82
  }), g = () => dispatch({
83
83
  type: "DISMISS_TOAST",
84
- toastId: m
84
+ toastId: p
85
85
  }), _ = (e2) => dispatch({
86
86
  type: "UPSERT_TOAST",
87
87
  toast: {
88
88
  ...e2,
89
- id: m,
89
+ id: p,
90
90
  open: true,
91
91
  onOpenChange: (e3) => {
92
92
  e3 || g();
93
93
  }
94
94
  }
95
- });
96
- return dispatch({
95
+ }), v = m && shownOnceKeys.has(p);
96
+ return m && shownOnceKeys.add(p), v || dispatch({
97
97
  type: "ADD_TOAST",
98
98
  toast: {
99
- ...p,
100
- id: m,
99
+ ...f,
100
+ id: p,
101
101
  open: true,
102
102
  onOpenChange: (e2) => {
103
103
  e2 || g();
104
104
  }
105
105
  }
106
106
  }), {
107
- id: m,
107
+ id: p,
108
108
  dismiss: g,
109
109
  update: h,
110
110
  upsert: _
@@ -122,17 +122,17 @@ var Copy = createLucideIcon("copy", [["rect", {
122
122
  d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
123
123
  key: "zix9uf"
124
124
  }]]);
125
- async function copyToClipboard(e, m) {
125
+ async function copyToClipboard(e, f) {
126
126
  if (navigator.clipboard === void 0) {
127
127
  Logger.warn("navigator.clipboard is not supported"), window.prompt("Copy to clipboard: Ctrl+C, Enter", e);
128
128
  return;
129
129
  }
130
- if (m && navigator.clipboard.write) try {
131
- let p = new ClipboardItem({
132
- "text/html": new Blob([m], { type: "text/html" }),
130
+ if (f && navigator.clipboard.write) try {
131
+ let d = new ClipboardItem({
132
+ "text/html": new Blob([f], { type: "text/html" }),
133
133
  "text/plain": new Blob([e], { type: "text/plain" })
134
134
  });
135
- await navigator.clipboard.write([p]);
135
+ await navigator.clipboard.write([d]);
136
136
  return;
137
137
  } catch {
138
138
  Logger.warn("Failed to write rich text, falling back to plain text");
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { i as defineCSSCompletionSource, n as cssCompletionSource, r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
3
+ export {
4
+ css
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
2
2
  var javaHighlighting = styleTags({
3
3
  null: tags.null,
4
4
  instanceof: tags.operatorKeyword,
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as yamlLanguage, t as yaml } from "./dist-BzEzfugY.js";
3
+ export {
4
+ yaml
5
+ };
@@ -1,5 +1,5 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
3
  var interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
4
4
  function wordChar(h) {
5
5
  return h >= 65 && h <= 90 || h >= 97 && h <= 122;
@@ -288,7 +288,7 @@ function jinjaCompletionSource(h = {}) {
288
288
  } : null;
289
289
  };
290
290
  }
291
- var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, z, B, V) => V != "%" || z != B || h.state.doc.sliceString(z - 1, B + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
291
+ var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, R, z, B) => B != "%" || R != z || h.state.doc.sliceString(R - 1, z + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
292
292
  changes: {
293
293
  from: h2.from,
294
294
  to: h2.to,
@@ -1,6 +1,6 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { r as cssLanguage, t as css } from "./dist-DxvORzUR.js";
3
- import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-DqAWR3CS.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { r as cssLanguage, t as css } from "./dist-D-W5ny5a.js";
3
+ import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-M9Vag9Y0.js";
4
4
  var scriptText = 54, StartCloseScriptTag = 1, styleText = 55, StartCloseStyleTag = 2, textareaText = 56, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 57, IncompleteCloseTag = 14, commentContent$1 = 58, Element = 20, TagName = 22, Attribute = 23, AttributeName = 24, AttributeValue = 26, UnquotedAttributeValue = 27, ScriptText = 28, StyleText = 31, TextareaText = 34, OpenTag = 36, CloseTag = 37, Dialect_noMatch = 0, Dialect_selfClosing = 1, selfClosers$1 = {
5
5
  area: true,
6
6
  base: true,
@@ -356,19 +356,19 @@ function maybeNest(g, G, K) {
356
356
  return null;
357
357
  }
358
358
  function configureNesting(g = [], G = []) {
359
- let K = [], J = [], Y = [], X = [];
360
- for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? J : G2.tag == "textarea" ? Y : X).push(G2);
359
+ let K = [], q = [], J = [], Y = [];
360
+ for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? q : G2.tag == "textarea" ? J : Y).push(G2);
361
361
  let Z = G.length ? /* @__PURE__ */ Object.create(null) : null;
362
362
  for (let g2 of G) (Z[g2.name] || (Z[g2.name] = [])).push(g2);
363
363
  return parseMixed((g2, G2) => {
364
- let q = g2.type.id;
365
- if (q == ScriptText) return maybeNest(g2, G2, K);
366
- if (q == StyleText) return maybeNest(g2, G2, J);
367
- if (q == TextareaText) return maybeNest(g2, G2, Y);
368
- if (q == Element && X.length) {
369
- let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), Y2;
364
+ let X = g2.type.id;
365
+ if (X == ScriptText) return maybeNest(g2, G2, K);
366
+ if (X == StyleText) return maybeNest(g2, G2, q);
367
+ if (X == TextareaText) return maybeNest(g2, G2, J);
368
+ if (X == Element && Y.length) {
369
+ let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), X2;
370
370
  if (J2) {
371
- for (let g3 of X) if (g3.tag == J2 && (!g3.attrs || g3.attrs(Y2 || (Y2 = getAttrs(q2, G2))))) {
371
+ for (let g3 of Y) if (g3.tag == J2 && (!g3.attrs || g3.attrs(X2 || (X2 = getAttrs(q2, G2))))) {
372
372
  let G3 = K2.lastChild, J3 = G3.type.id == CloseTag ? G3.from : K2.to;
373
373
  if (J3 > q2.to) return {
374
374
  parser: g3.parser,
@@ -380,7 +380,7 @@ function configureNesting(g = [], G = []) {
380
380
  }
381
381
  }
382
382
  }
383
- if (Z && q == Attribute) {
383
+ if (Z && X == Attribute) {
384
384
  let K2 = g2.node, q2;
385
385
  if (q2 = K2.firstChild) {
386
386
  let g3 = Z[G2.read(q2.from, q2.to)];
@@ -1281,31 +1281,31 @@ function html(g = {}) {
1281
1281
  css().support
1282
1282
  ]);
1283
1283
  }
1284
- var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, q, J, Y, X) => {
1285
- if (g.composing || g.state.readOnly || q != J || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, q, -1)) return false;
1284
+ var selfClosers = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, G, q, Y, X) => {
1285
+ if (g.composing || g.state.readOnly || G != q || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, G, -1)) return false;
1286
1286
  let Z = X(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
1287
1287
  var _a, _b, _c;
1288
- let q2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: J2 } = g2, X2 = syntaxTree(Q).resolveInner(J2, -1), Z2;
1289
- if (q2 && Y == ">" && X2.name == "EndTag") {
1290
- let G = X2.parent;
1291
- if (((_b = (_a = G.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G.parent, J2)) && !selfClosers.has(Z2)) return {
1288
+ let G2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: q2 } = g2, X2 = syntaxTree(Q).resolveInner(q2, -1), Z2;
1289
+ if (G2 && Y == ">" && X2.name == "EndTag") {
1290
+ let G3 = X2.parent;
1291
+ if (((_b = (_a = G3.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G3.parent, q2)) && !selfClosers.has(Z2)) return {
1292
1292
  range: g2,
1293
1293
  changes: {
1294
- from: J2,
1295
- to: J2 + (Q.doc.sliceString(J2, J2 + 1) === ">" ? 1 : 0),
1294
+ from: q2,
1295
+ to: q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0),
1296
1296
  insert: `</${Z2}>`
1297
1297
  }
1298
1298
  };
1299
- } else if (q2 && Y == "/" && X2.name == "IncompleteCloseTag") {
1299
+ } else if (G2 && Y == "/" && X2.name == "IncompleteCloseTag") {
1300
1300
  let g3 = X2.parent;
1301
- if (X2.from == J2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, J2)) && !selfClosers.has(Z2)) {
1302
- let g4 = J2 + (Q.doc.sliceString(J2, J2 + 1) === ">" ? 1 : 0), K = `${Z2}>`;
1301
+ if (X2.from == q2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, q2)) && !selfClosers.has(Z2)) {
1302
+ let g4 = q2 + (Q.doc.sliceString(q2, q2 + 1) === ">" ? 1 : 0), G3 = `${Z2}>`;
1303
1303
  return {
1304
- range: EditorSelection.cursor(J2 + K.length, -1),
1304
+ range: EditorSelection.cursor(q2 + G3.length, -1),
1305
1305
  changes: {
1306
- from: J2,
1306
+ from: q2,
1307
1307
  to: g4,
1308
- insert: K
1308
+ insert: G3
1309
1309
  }
1310
1310
  };
1311
1311
  }
@@ -1,5 +1,5 @@
1
- import { B as tags, J as parseMixed, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, X as parseMixed, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
3
  var castOpen = 1, HeredocString = 2, interpolatedStringContent = 263, EscapeSequence = 3, afterInterpolation = 264, automaticSemicolon = 265, eof = 266, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, _require = 52, require_once = 53, _return = 54, _switch = 55, _throw = 56, trait = 57, _try = 58, unset = 59, use = 60, _var = 61, Visibility = 62, keywordMap = {
4
4
  abstract,
5
5
  and,
@@ -407,19 +407,19 @@ var interpolated = new ExternalTokenizer((S, Z) => {
407
407
  }
408
408
  });
409
409
  function php(S = {}) {
410
- let Q = [], $;
411
- if (S.baseLanguage !== null) if (S.baseLanguage) $ = S.baseLanguage;
410
+ let Z = [], Q;
411
+ if (S.baseLanguage !== null) if (S.baseLanguage) Q = S.baseLanguage;
412
412
  else {
413
413
  let S2 = html({ matchClosingTags: false });
414
- Q.push(S2.support), $ = S2.language;
414
+ Z.push(S2.support), Q = S2.language;
415
415
  }
416
416
  return new LanguageSupport(phpLanguage.configure({
417
- wrap: $ && parseMixed((S2) => S2.type.isTop ? {
418
- parser: $.parser,
417
+ wrap: Q && parseMixed((S2) => S2.type.isTop ? {
418
+ parser: Q.parser,
419
419
  overlay: (S3) => S3.name == "Text"
420
420
  } : null),
421
421
  top: S.plain ? "Program" : "Template"
422
- }), Q);
422
+ }), Z);
423
423
  }
424
424
  export {
425
425
  phpLanguage as n,
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as cppLanguage, t as cpp } from "./dist-CIYBwstr.js";
3
+ export {
4
+ cpp
5
+ };
@@ -1,5 +1,5 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-RqXTaiir.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { i as snippets, n as goLanguage, r as localCompletionSource, t as go } from "./dist-abid3KgM.js";
3
3
  export {
4
4
  go
5
5
  };
@@ -1,8 +1,8 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-fQ0ViXGs.js";
3
- import "./dist-CcXxepx6.js";
4
- import "./dist-DxvORzUR.js";
5
- import "./dist-DqAWR3CS.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { a as markdown, c as pasteURLAsLink, i as insertNewlineContinueMarkupCommand, n as deleteMarkupBackward, o as markdownKeymap, r as insertNewlineContinueMarkup, s as markdownLanguage, t as commonmarkLanguage } from "./dist-Dv_Y15yk.js";
3
+ import "./dist-BSAt6RhH.js";
4
+ import "./dist-D-W5ny5a.js";
5
+ import "./dist-M9Vag9Y0.js";
6
6
  export {
7
7
  markdown
8
8
  };
@@ -1,5 +1,5 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-BTfv03uy.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CcWX6tmx.js";
3
3
  export {
4
4
  Cassandra,
5
5
  MSSQL,
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as javaLanguage, t as java } from "./dist-A2846XWO.js";
3
+ export {
4
+ java
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var blockEnd = 63, eof = 64, DirectiveEnd = 1, DocEnd = 2, sequenceStartMark = 3, sequenceContinueMark = 4, explicitMapStartMark = 5, explicitMapContinueMark = 6, flowMapMark = 7, mapStartMark = 65, mapContinueMark = 66, Literal = 8, QuotedLiteral = 9, Anchor = 10, Alias = 11, Tag = 12, BlockLiteralContent = 13, BracketL = 19, FlowSequence = 20, Colon = 29, BraceL = 33, FlowMapping = 34, BlockLiteralHeader = 47, type_Top = 0, type_Seq = 1, type_Map = 2, type_Flow = 3, type_Lit = 4, Context = class {
3
3
  constructor(v, q, J) {
4
4
  this.parent = v, this.depth = q, this.type = J, this.hash = (v ? v.hash + v.hash << 8 : 0) + q + (q << 4) + J;
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { n as phpLanguage, t as php } from "./dist-BY018Paw.js";
6
+ export {
7
+ php
8
+ };
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as rustLanguage, t as rust } from "./dist-Dax--nl9.js";
3
+ export {
4
+ rust
5
+ };
@@ -1,4 +1,4 @@
1
- import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags, O as indentNodeProp, S as foldInside, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent } from "./dist-U4F-tbMs.js";
2
2
  var RawString = 1, templateArgsEndFallback = 2, MacroName = 3, R = 82, L = 76, u = 117, U = 85, a = 97, z = 122, A = 65, Z = 90, Underscore = 95, Zero = 48, Quote = 34, ParenL = 40, ParenR = 41, Space = 32, GreaterThan = 62, rawString = new ExternalTokenizer((y) => {
3
3
  if (y.next == L || y.next == U ? y.advance() : y.next == u && (y.advance(), y.next == Zero + 8 && y.advance()), y.next != R || (y.advance(), y.next != Quote)) return;
4
4
  y.advance();
@@ -1,5 +1,5 @@
1
- import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-DhHh0jLg.js";
1
+ import { H as tags, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
3
3
  var printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155, newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85, bracketed = /* @__PURE__ */ new Set([
4
4
  ParenthesizedExpression,
5
5
  TupleExpression,
@@ -388,19 +388,19 @@ var gatherCompletions = {
388
388
  function getScope(v, q) {
389
389
  let J = cache.get(q);
390
390
  if (J) return J;
391
- let Y = [], X = true;
391
+ let Y = [], Z = true;
392
392
  function Q(q2, J2) {
393
- let X2 = v.sliceString(q2.from, q2.to);
393
+ let X = v.sliceString(q2.from, q2.to);
394
394
  Y.push({
395
- label: X2,
395
+ label: X,
396
396
  type: J2
397
397
  });
398
398
  }
399
399
  return q.cursor(IterMode.IncludeAnonymous).iterate((q2) => {
400
400
  if (q2.name) {
401
401
  let v2 = gatherCompletions[q2.name];
402
- if (v2 && v2(q2, Q, X) || !X && ScopeNodes.has(q2.name)) return false;
403
- X = false;
402
+ if (v2 && v2(q2, Q, Z) || !Z && ScopeNodes.has(q2.name)) return false;
403
+ Z = false;
404
404
  } else if (q2.to - q2.from > 8192) {
405
405
  for (let J2 of getScope(v, q2.node)) Y.push(J2);
406
406
  return false;
@@ -414,15 +414,15 @@ var Identifier = /^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/, dontComplete = [
414
414
  "PropertyName"
415
415
  ];
416
416
  function localCompletionSource(v) {
417
- let q = syntaxTree(v.state).resolveInner(v.pos, -1);
418
- if (dontComplete.indexOf(q.name) > -1) return null;
419
- let Y = q.name == "VariableName" || q.to - q.from < 20 && Identifier.test(v.state.sliceDoc(q.from, q.to));
417
+ let J = syntaxTree(v.state).resolveInner(v.pos, -1);
418
+ if (dontComplete.indexOf(J.name) > -1) return null;
419
+ let Y = J.name == "VariableName" || J.to - J.from < 20 && Identifier.test(v.state.sliceDoc(J.from, J.to));
420
420
  if (!Y && !v.explicit) return null;
421
421
  let X = [];
422
- for (let J = q; J; J = J.parent) ScopeNodes.has(J.name) && (X = X.concat(getScope(v.state.doc, J)));
422
+ for (let q = J; q; q = q.parent) ScopeNodes.has(q.name) && (X = X.concat(getScope(v.state.doc, q)));
423
423
  return {
424
424
  options: X,
425
- from: Y ? q.from : v.pos,
425
+ from: Y ? J.from : v.pos,
426
426
  validFor: Identifier
427
427
  };
428
428
  }
@@ -1,5 +1,5 @@
1
- import { B as tags, I as syntaxTree, O as indentNodeProp, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { l as ifNotIn, s as completeFromList } from "./dist-DhHh0jLg.js";
1
+ import { H as tags, I as syntaxTree, O as indentNodeProp, V as styleTags, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { l as ifNotIn, s as completeFromList } from "./dist-hT4QzYX-.js";
3
3
  var whitespace = 36, LineComment = 1, BlockComment = 2, String$1 = 3, Number = 4, Bool = 5, Null = 6, ParenL = 7, ParenR = 8, BraceL = 9, BraceR = 10, BracketL = 11, BracketR = 12, Semi = 13, Dot = 14, Operator = 15, Punctuation = 16, SpecialVar = 17, Identifier = 18, QuotedIdentifier = 19, Keyword = 20, Type = 21, Bits = 22, Bytes = 23, Builtin = 24;
4
4
  function isAlpha(h3) {
5
5
  return h3 >= 65 && h3 <= 90 || h3 >= 97 && h3 <= 122 || h3 >= 48 && h3 <= 57;
@@ -1,7 +1,7 @@
1
- import "./dist-DNdhYsgW.js";
2
- import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import "./dist-DqAWR3CS.js";
1
+ import "./dist-U4F-tbMs.js";
2
+ import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
5
  export {
6
6
  html
7
7
  };
@@ -1,5 +1,5 @@
1
- import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
3
  var interpolationStart = 1, tagStart = 2, endTagStart = 3, text = 180, endrawTagStart = 4, rawText = 181, endcommentTagStart = 5, commentText = 182, InlineComment = 6;
4
4
  function wordChar(_) {
5
5
  return _ >= 65 && _ <= 90 || _ >= 97 && _ <= 122;
@@ -284,7 +284,7 @@ function liquidCompletionSource(_ = {}) {
284
284
  } : null;
285
285
  };
286
286
  }
287
- var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, H, U, W) => W != "%" || H != U || _.state.doc.sliceString(H - 1, U + 1) != "{}" ? false : (_.dispatch(_.state.changeByRange((_2) => ({
287
+ var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((_, V, H, U) => U != "%" || V != H || _.state.doc.sliceString(V - 1, H + 1) != "{}" ? false : (_.dispatch(_.state.changeByRange((_2) => ({
288
288
  changes: {
289
289
  from: _2.from,
290
290
  to: _2.to,
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-CpxNdDkw.js";
6
+ export {
7
+ liquid
8
+ };
@@ -0,0 +1,5 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import { n as jsonLanguage, t as json } from "./dist-DZORgqKY.js";
3
+ export {
4
+ json
5
+ };
@@ -1,7 +1,7 @@
1
- import { B as tags, J as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, z as styleTags } from "./dist-DNdhYsgW.js";
2
- import { n as html } from "./dist-CcXxepx6.js";
3
- import "./dist-DxvORzUR.js";
4
- import { r as javascriptLanguage } from "./dist-DqAWR3CS.js";
1
+ import { H as tags, V as styleTags, X as parseMixed, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport } from "./dist-U4F-tbMs.js";
2
+ import { n as html } from "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import { r as javascriptLanguage } from "./dist-M9Vag9Y0.js";
5
5
  var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAttributeContentSingle = 35, scriptAttributeContentDouble = 36, text = /* @__PURE__ */ new ExternalTokenizer((p) => {
6
6
  let A = p.pos;
7
7
  for (; ; ) {
@@ -13,11 +13,11 @@ var Text = 1, attributeContentSingle = 33, attributeContentDouble = 34, scriptAt
13
13
  }
14
14
  p.pos > A && p.acceptToken(Text);
15
15
  });
16
- function attrContent(p, A, M) {
17
- return new ExternalTokenizer((j) => {
18
- let N = j.pos;
19
- for (; j.next != p && j.next >= 0 && (M || j.next != 38 && (j.next != 123 || j.peek(1) != 123)); ) j.advance();
20
- j.pos > N && j.acceptToken(A);
16
+ function attrContent(p, A, j) {
17
+ return new ExternalTokenizer((M) => {
18
+ let N = M.pos;
19
+ for (; M.next != p && M.next >= 0 && (j || M.next != 38 && (M.next != 123 || M.peek(1) != 123)); ) M.advance();
20
+ M.pos > N && M.acceptToken(A);
21
21
  });
22
22
  }
23
23
  var attrSingle = /* @__PURE__ */ attrContent(39, attributeContentSingle, false), attrDouble = /* @__PURE__ */ attrContent(34, attributeContentDouble, false), scriptAttrSingle = /* @__PURE__ */ attrContent(39, scriptAttributeContentSingle, true), scriptAttrDouble = /* @__PURE__ */ attrContent(34, scriptAttributeContentDouble, true), parser = /* @__PURE__ */ LRParser.deserialize({
@@ -1,4 +1,4 @@
1
- import { B as tags$1, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-DNdhYsgW.js";
1
+ import { H as tags$1, I as syntaxTree, O as indentNodeProp, S as foldInside, U as IterMode, V as styleTags, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, q as NodeWeakMap, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp } from "./dist-U4F-tbMs.js";
2
2
  var descendantOp = 122, Unit = 1, identifier$1 = 123, callee = 124, VariableName = 2, queryIdentifier = 125, queryVariableName = 3, QueryCallee = 4, space = [
3
3
  9,
4
4
  10,
@@ -283,11 +283,11 @@ function variableNames(_, K, q) {
283
283
  if (K.to - K.from > 4096) {
284
284
  let J = VariablesByNode.get(K);
285
285
  if (J) return J;
286
- let Y = [], Z = /* @__PURE__ */ new Set(), Q = K.cursor(IterMode.IncludeAnonymous);
286
+ let X = [], Z = /* @__PURE__ */ new Set(), Q = K.cursor(IterMode.IncludeAnonymous);
287
287
  if (Q.firstChild()) do
288
- for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label), Y.push(K2));
288
+ for (let K2 of variableNames(_, Q.node, q)) Z.has(K2.label) || (Z.add(K2.label), X.push(K2));
289
289
  while (Q.nextSibling());
290
- return VariablesByNode.set(K, Y), Y;
290
+ return VariablesByNode.set(K, X), X;
291
291
  } else {
292
292
  let J = [], Y = /* @__PURE__ */ new Set();
293
293
  return K.cursor().iterate((K2) => {
@@ -302,8 +302,8 @@ function variableNames(_, K, q) {
302
302
  }), J;
303
303
  }
304
304
  }
305
- var defineCSSCompletionSource = (_) => (K) => {
306
- let { state: J, pos: Y } = K, X = syntaxTree(J).resolveInner(Y, -1), Z = X.type.isError && X.from == X.to - 1 && J.doc.sliceString(X.from, X.to) == "-";
305
+ var defineCSSCompletionSource = (_) => (q) => {
306
+ let { state: J, pos: Y } = q, X = syntaxTree(J).resolveInner(Y, -1), Z = X.type.isError && X.from == X.to - 1 && J.doc.sliceString(X.from, X.to) == "-";
307
307
  if (X.name == "PropertyName" || (Z || X.name == "TagName") && /^(Block|Styles)$/.test(X.resolve(X.to).name)) return {
308
308
  from: X.from,
309
309
  options: properties(),
@@ -319,7 +319,7 @@ var defineCSSCompletionSource = (_) => (K) => {
319
319
  options: pseudoClasses,
320
320
  validFor: identifier
321
321
  };
322
- if (_(X) || (K.explicit || Z) && isVarArg(X, J.doc)) return {
322
+ if (_(X) || (q.explicit || Z) && isVarArg(X, J.doc)) return {
323
323
  from: _(X) || Z ? X.from : Y,
324
324
  options: variableNames(J.doc, astTop(X), _),
325
325
  validFor: variable
@@ -341,7 +341,7 @@ var defineCSSCompletionSource = (_) => (K) => {
341
341
  options: atRules,
342
342
  validFor: identifier
343
343
  };
344
- if (!K.explicit) return null;
344
+ if (!q.explicit) return null;
345
345
  let Q = X.resolve(Y), $ = Q.childBefore(Y);
346
346
  return $ && $.name == ":" && Q.name == "PseudoClassSelector" ? {
347
347
  from: Y,
@@ -0,0 +1,6 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-D-W5ny5a.js";
3
+ import { n as sassCompletionSource, r as sassLanguage, t as sass } from "./dist-DyyjKEYf.js";
4
+ export {
5
+ sass
6
+ };
@@ -0,0 +1,8 @@
1
+ import "./dist-U4F-tbMs.js";
2
+ import "./dist-BSAt6RhH.js";
3
+ import "./dist-D-W5ny5a.js";
4
+ import "./dist-M9Vag9Y0.js";
5
+ import { n as vueLanguage, t as vue } from "./dist-LTU8Hdvn.js";
6
+ export {
7
+ vue
8
+ };