@marimo-team/islands 0.23.15-dev55 → 0.23.15-dev57

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 (119) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DMcymmpc.js → ConnectedDataExplorerComponent-CJaUI-S-.js} +3 -3
  2. package/dist/{any-language-editor-BfTj3PPF.js → any-language-editor-P9tjkj4n.js} +18 -18
  3. package/dist/{architectureDiagram-VXUJARFQ-B3jN8fkV.js → architectureDiagram-VXUJARFQ-DXwkyAaM.js} +5 -5
  4. package/dist/{blockDiagram-VD42YOAC-Dq_8lAbz.js → blockDiagram-VD42YOAC-CIOjvxeD.js} +5 -5
  5. package/dist/{c4Diagram-YG6GDRKO-BPzX9a9A.js → c4Diagram-YG6GDRKO-B6dZC_oU.js} +4 -4
  6. package/dist/{channel-D_qwSlm9.js → channel-BN070S0F.js} +1 -1
  7. package/dist/{chat-ui-CYGIiYqI.js → chat-ui-BdSDiVjk.js} +79 -74
  8. package/dist/{chunk-ABZYJK2D-CDSMdLBr.js → chunk-ABZYJK2D-BxBDji1u.js} +1 -1
  9. package/dist/{chunk-ATLVNIR6-BAW0e_d_.js → chunk-ATLVNIR6-qFiszptQ.js} +1 -1
  10. package/dist/{chunk-B4BG7PRW-CfEI05WL.js → chunk-B4BG7PRW-B_z2FEHm.js} +4 -4
  11. package/dist/{chunk-DI55MBZ5-CZS7hhjV.js → chunk-DI55MBZ5-D4Y8yV8B.js} +4 -4
  12. package/dist/{chunk-EXTU4WIE-DHwKB8ls.js → chunk-EXTU4WIE-BQPBhApE.js} +1 -1
  13. package/dist/{chunk-JA3XYJ7Z-Cy80gDpz.js → chunk-JA3XYJ7Z-CY4CRbV5.js} +2 -2
  14. package/dist/{chunk-JZLCHNYA-yfXq27Zq.js → chunk-JZLCHNYA-DWIR9m5O.js} +4 -4
  15. package/dist/{chunk-N4CR4FBY-C9D3Wsot.js → chunk-N4CR4FBY-Bw2HcMNc.js} +5 -5
  16. package/dist/{chunk-QN33PNHL-Bh2YDyg7.js → chunk-QN33PNHL-DPBNNzpR.js} +1 -1
  17. package/dist/{chunk-QXUST7PY-kDpsCDoY.js → chunk-QXUST7PY-DtC2t9Mk.js} +5 -5
  18. package/dist/{chunk-S3R3BYOJ-DkY8Kz3y.js → chunk-S3R3BYOJ-BdgLc8AM.js} +1 -1
  19. package/dist/{chunk-TZMSLE5B-CMZoW3vd.js → chunk-TZMSLE5B-BzSHcq-K.js} +1 -1
  20. package/dist/{classDiagram-2ON5EDUG-b2d3ZqfR.js → classDiagram-2ON5EDUG-BiQPjMNY.js} +10 -10
  21. package/dist/{classDiagram-v2-WZHVMYZB-RvnJbJ5M.js → classDiagram-v2-WZHVMYZB-YHdR8fqM.js} +10 -10
  22. package/dist/{code-visibility-6VwDeiPl.js → code-visibility-DDYb93Ql.js} +9 -9
  23. package/dist/{dagre-6UL2VRFP--ruFWg_S.js → dagre-6UL2VRFP-DpYjBqQs.js} +7 -7
  24. package/dist/{diagram-PSM6KHXK-CGakapLj.js → diagram-PSM6KHXK-D4ftnaua.js} +6 -6
  25. package/dist/{diagram-QEK2KX5R-CtqD8u_P.js → diagram-QEK2KX5R-DVlUOgs1.js} +4 -4
  26. package/dist/{diagram-S2PKOQOG-BS1wa35J.js → diagram-S2PKOQOG-CGh4OMEV.js} +4 -4
  27. package/dist/{dist-BGLXXYL4.js → dist-3NCqaWjt.js} +2 -2
  28. package/dist/{dist-95kpvRSY.js → dist-4lVIWUT3.js} +1 -1
  29. package/dist/dist-5o9uz19x.js +5 -0
  30. package/dist/{dist-B1k1NmGB.js → dist-B2jmQKKx.js} +2 -2
  31. package/dist/{dist-kcg3gjx6.js → dist-BCX980mU.js} +2 -2
  32. package/dist/{dist-c6wTyIhD.js → dist-BIEt-mlF.js} +1 -1
  33. package/dist/{dist-tJic1rC-.js → dist-BO5HRiTf.js} +2 -2
  34. package/dist/{dist-3MT9i_N5.js → dist-BOMbzyb3.js} +85 -85
  35. package/dist/{dist-Dx3eDsHX.js → dist-BP39XM8u.js} +1 -1
  36. package/dist/{dist-DijFs2Lk.js → dist-BPF0gTRZ.js} +6 -6
  37. package/dist/{dist-BvCrjp81.js → dist-BTdrwBWP.js} +22 -22
  38. package/dist/{dist-CLBjD8zw.js → dist-BdqCKQ1O.js} +2 -2
  39. package/dist/dist-BpDH0DEP.js +5 -0
  40. package/dist/dist-BpXhbQXO.js +8 -0
  41. package/dist/{dist-DgZczohI.js → dist-BpeiYpG2.js} +2 -2
  42. package/dist/{dist-Db1W16d-.js → dist-BwhXBwMd.js} +1 -1
  43. package/dist/dist-ByadAk_L.js +5 -0
  44. package/dist/{dist-B69xyr_D.js → dist-C18MUWTj.js} +2 -2
  45. package/dist/{dist-DPdzbDlL.js → dist-C2_4pjuS.js} +1 -1
  46. package/dist/{dist-B56Dml3A.js → dist-CFSb_Frm.js} +1 -1
  47. package/dist/dist-CK0g7JvP.js +8 -0
  48. package/dist/{dist-CNXNPADS.js → dist-CRmSjkLP.js} +2 -2
  49. package/dist/{dist-D3T8fCFo.js → dist-CSlJrrAw.js} +86 -81
  50. package/dist/dist-CfzCtiq2.js +5 -0
  51. package/dist/{dist-4-bJUNMb.js → dist-D3bdsa1d.js} +4 -4
  52. package/dist/dist-D8JtVFrW.js +8 -0
  53. package/dist/dist-DK2Oocpu.js +6 -0
  54. package/dist/{dist-DBN2w27P.js → dist-DZwp8lro.js} +3 -3
  55. package/dist/{dist-BFgLBSJb.js → dist-DaXJPX8F.js} +2 -2
  56. package/dist/{dist-U4F-tbMs.js → dist-De-GlSAs.js} +246 -184
  57. package/dist/{dist-DPH6RMhL.js → dist-DgjbnqTg.js} +125 -125
  58. package/dist/dist-DnSu977r.js +5 -0
  59. package/dist/{dist-e29IFSI0.js → dist-DviUBLUp.js} +4 -4
  60. package/dist/{dist-BIdzGb3O.js → dist-DwqBJ014.js} +2 -2
  61. package/dist/{dist-BGj6VvC-.js → dist-JGehap7K.js} +5 -5
  62. package/dist/{dist-BGtkYshf.js → dist-LpLXa9Lb.js} +2 -2
  63. package/dist/dist-UmxJm6sW.js +8 -0
  64. package/dist/dist-aYSBQSyM.js +5 -0
  65. package/dist/dist-kkZ1Ztlh.js +6 -0
  66. package/dist/dist-ngPczwNi.js +5 -0
  67. package/dist/{dist-C-RLuUaE.js → dist-pqIwD8VD.js} +2 -2
  68. package/dist/dist-wQRyxyTV.js +5 -0
  69. package/dist/{dist-DvOfvWFi.js → dist-w_gWE5Wf.js} +1 -1
  70. package/dist/{erDiagram-Q2GNP2WA-DmtIJBsT.js → erDiagram-Q2GNP2WA-BcKAHFqF.js} +10 -10
  71. package/dist/{esm-D6_uCZ4z.js → esm-DKOv6P2M.js} +341 -341
  72. package/dist/esm-k8PIvuZW.js +1180 -0
  73. package/dist/{extends-B88Yrunj.js → extends-Cq2JYHKy.js} +32 -16
  74. package/dist/{flowDiagram-NV44I4VS-DZsgBUcQ.js → flowDiagram-NV44I4VS-BRhSg-ro.js} +10 -10
  75. package/dist/{formats-DSfNdJLH.js → formats-BFhkZJwd.js} +1 -1
  76. package/dist/{ganttDiagram-JELNMOA3-CgFhg_6K.js → ganttDiagram-JELNMOA3-CXXCN7LN.js} +3 -3
  77. package/dist/{gitGraphDiagram-V2S2FVAM-DPInyn1F.js → gitGraphDiagram-V2S2FVAM-BOlkMSqK.js} +3 -3
  78. package/dist/{html-to-image-BoXPmWps.js → html-to-image-DDENewl2.js} +34 -34
  79. package/dist/{infoDiagram-HS3SLOUP-ETAzKIiE.js → infoDiagram-HS3SLOUP-D3TyKnL_.js} +3 -3
  80. package/dist/{journeyDiagram-XKPGCS4Q-Bc94zDj1.js → journeyDiagram-XKPGCS4Q-DEal0aT1.js} +3 -3
  81. package/dist/{kanban-definition-3W4ZIXB7-DSk8Ebci.js → kanban-definition-3W4ZIXB7-Dl90wENN.js} +7 -7
  82. package/dist/{loader-BUGT0KbC.js → loader-CTHCI-qe.js} +7 -7
  83. package/dist/main.js +31 -31
  84. package/dist/{mermaid-CYkbfJHW.js → mermaid-CdSvixW2.js} +36 -36
  85. package/dist/{mindmap-definition-VGOIOE7T-BYoCqVAJ.js → mindmap-definition-VGOIOE7T-CCDupjWW.js} +9 -9
  86. package/dist/{pieDiagram-ADFJNKIX-BaAU79Vb.js → pieDiagram-ADFJNKIX-JvXG_6hk.js} +4 -4
  87. package/dist/{process-output-CbRRhwQo.js → process-output-2QPcgBQg.js} +1 -1
  88. package/dist/purify.es-EnR5yhgI.js +783 -0
  89. package/dist/{quadrantDiagram-AYHSOK5B-BmTWJxzo.js → quadrantDiagram-AYHSOK5B-BqDB9tUC.js} +2 -2
  90. package/dist/{react-vega-DfJOSnj6.js → react-vega-BazDALhI.js} +633 -633
  91. package/dist/{requirementDiagram-UZGBJVZJ-Jrs04ua1.js → requirementDiagram-UZGBJVZJ-KbVt8SPH.js} +9 -9
  92. package/dist/{reveal-component-BF9bUh1w.js → reveal-component-C5pW80ik.js} +11 -11
  93. package/dist/{sankeyDiagram-TZEHDZUN-YJnhmG4N.js → sankeyDiagram-TZEHDZUN-DgkF38jx.js} +2 -2
  94. package/dist/{sequenceDiagram-WL72ISMW-D30L51Bn.js → sequenceDiagram-WL72ISMW-BDmx9n95.js} +4 -4
  95. package/dist/{stateDiagram-FKZM4ZOC-C0nZuUP8.js → stateDiagram-FKZM4ZOC-ByOvQf2n.js} +10 -10
  96. package/dist/{stateDiagram-v2-4FDKWEC3-BmovmS-G.js → stateDiagram-v2-4FDKWEC3-C3xqeavR.js} +10 -10
  97. package/dist/{timeline-definition-IT6M3QCI-DEoIEWAl.js → timeline-definition-IT6M3QCI-CkD_trIn.js} +2 -2
  98. package/dist/{vega-component-uL9ZaXcH.js → vega-component-CrFoZT1S.js} +4 -4
  99. package/dist/{vega-embed-container-DgZMMVL3.js → vega-embed-container-DAQAMjiO.js} +2 -2
  100. package/dist/vega-loader.browser-DmpxCJqx.js +1353 -0
  101. package/dist/{xychartDiagram-PRI3JC2R-iwKXEnYZ.js → xychartDiagram-PRI3JC2R-BSkNxYNw.js} +5 -5
  102. package/package.json +1 -1
  103. package/dist/dist-9yiSURLw.js +0 -6
  104. package/dist/dist-9zfbSqew.js +0 -8
  105. package/dist/dist-BZ_VEpg8.js +0 -8
  106. package/dist/dist-BdYVjH1C.js +0 -5
  107. package/dist/dist-BiIoKp92.js +0 -6
  108. package/dist/dist-Bow9AUXt.js +0 -5
  109. package/dist/dist-C8odMDp5.js +0 -8
  110. package/dist/dist-CLgjZx38.js +0 -5
  111. package/dist/dist-CnMOJtGP.js +0 -5
  112. package/dist/dist-D-5m1nDT.js +0 -5
  113. package/dist/dist-D8AXqiCV.js +0 -5
  114. package/dist/dist-DMuf8sZd.js +0 -5
  115. package/dist/dist-DszXOVSb.js +0 -5
  116. package/dist/dist-GW0m0q65.js +0 -8
  117. package/dist/esm-BxhNWHqh.js +0 -1171
  118. package/dist/purify.es-C-fIGuQm.js +0 -557
  119. package/dist/vega-loader.browser-IU8eTDwM.js +0 -1333
@@ -1,25 +1,25 @@
1
- import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, Ot as EditorSelection, R as Tag, S as foldInside, V as styleTags, X as parseMixed, f as StreamLanguage, h as continuedIndent, 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
- import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-D3T8fCFo.js";
3
- import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-DgZczohI.js";
4
- import { a as markdown } from "./dist-3MT9i_N5.js";
5
- import { n as html, r as htmlCompletionSource } from "./dist-BvCrjp81.js";
6
- import { r as cssLanguage, t as css } from "./dist-95kpvRSY.js";
7
- import { c as typescriptLanguage, n as javascript, r as javascriptLanguage, u as parser$1 } from "./dist-DPH6RMhL.js";
8
- import { r as python } from "./dist-CNXNPADS.js";
1
+ import { $ as EditorView, H as tags, I as syntaxTree, O as indentNodeProp, R as Tag, S as foldInside, V as styleTags, X as parseMixed, f as StreamLanguage, h as continuedIndent, kt as EditorSelection, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp } from "./dist-De-GlSAs.js";
2
+ import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-CSlJrrAw.js";
3
+ import { a as PLSQL, f as sql, l as StandardSQL, t as Cassandra } from "./dist-BpeiYpG2.js";
4
+ import { a as markdown } from "./dist-BOMbzyb3.js";
5
+ import { n as html, r as htmlCompletionSource } from "./dist-BTdrwBWP.js";
6
+ import { r as cssLanguage, t as css } from "./dist-4lVIWUT3.js";
7
+ import { c as typescriptLanguage, n as javascript, r as javascriptLanguage, u as parser$1 } from "./dist-DgjbnqTg.js";
8
+ import { r as python } from "./dist-CRmSjkLP.js";
9
9
  import { t as stex } from "./stex-DtMAhV4-.js";
10
- import { t as cpp } from "./dist-Dx3eDsHX.js";
11
- import { t as go } from "./dist-B69xyr_D.js";
12
- import { t as java } from "./dist-Db1W16d-.js";
13
- import { n as jinja } from "./dist-tJic1rC-.js";
14
- import { t as json } from "./dist-DPdzbDlL.js";
15
- import { t as less } from "./dist-BFgLBSJb.js";
16
- import { n as liquid } from "./dist-BIdzGb3O.js";
17
- import { t as php } from "./dist-CLBjD8zw.js";
18
- import { t as rust } from "./dist-DvOfvWFi.js";
19
- import { t as sass } from "./dist-BGLXXYL4.js";
20
- import { t as wast } from "./dist-c6wTyIhD.js";
21
- import { r as xml } from "./dist-DijFs2Lk.js";
22
- import { t as yaml } from "./dist-B56Dml3A.js";
10
+ import { t as cpp } from "./dist-BP39XM8u.js";
11
+ import { t as go } from "./dist-C18MUWTj.js";
12
+ import { t as java } from "./dist-BwhXBwMd.js";
13
+ import { n as jinja } from "./dist-BO5HRiTf.js";
14
+ import { t as json } from "./dist-C2_4pjuS.js";
15
+ import { t as less } from "./dist-DaXJPX8F.js";
16
+ import { n as liquid } from "./dist-DwqBJ014.js";
17
+ import { t as php } from "./dist-BdqCKQ1O.js";
18
+ import { t as rust } from "./dist-w_gWE5Wf.js";
19
+ import { t as sass } from "./dist-3NCqaWjt.js";
20
+ import { t as wast } from "./dist-BIEt-mlF.js";
21
+ import { r as xml } from "./dist-BPF0gTRZ.js";
22
+ import { t as yaml } from "./dist-CFSb_Frm.js";
23
23
  import { t as apl } from "./apl-99A7dLQe.js";
24
24
  import { t as asciiArmor } from "./asciiarmor-DLEhpFDx.js";
25
25
  import { t as asn1 } from "./asn1-CMrcTsT4.js";
@@ -102,36 +102,36 @@ import { t as xQuery } from "./xquery-D2q16GaM.js";
102
102
  import { t as yacas } from "./yacas-DHGOHnNa.js";
103
103
  import { t as z80 } from "./z80-BPhTmO22.js";
104
104
  import { n as msgenny, r as xu, t as mscgen } from "./mscgen-BkbzgGGI.js";
105
- import { t as vue } from "./dist-DBN2w27P.js";
106
- var strContent = 63, strDollarBrace = 64, strEnd = 65, escapeSequence = 66, indStrContent = 67, indStrDollarBrace = 68, indStrEnd = 69, indEscapeSequence = 70, quote = 34, backslack = 92, braceL = 123, dollar = 36, apostrophe = 39, scanString = /* @__PURE__ */ new ExternalTokenizer((y) => {
107
- for (let G = false, K = 0; ; K++) {
108
- let { next: J } = y;
109
- if (J < 0) {
110
- K > 0 && y.acceptToken(strContent);
105
+ import { t as vue } from "./dist-DZwp8lro.js";
106
+ var strContent = 63, strDollarBrace = 64, strEnd = 65, escapeSequence = 66, indStrContent = 67, indStrDollarBrace = 68, indStrEnd = 69, indEscapeSequence = 70, quote = 34, backslack = 92, braceL = 123, dollar = 36, apostrophe = 39, scanString = /* @__PURE__ */ new ExternalTokenizer((b) => {
107
+ for (let K = false, J = 0; ; J++) {
108
+ let { next: Y } = b;
109
+ if (Y < 0) {
110
+ J > 0 && b.acceptToken(strContent);
111
111
  break;
112
- } else if (J === quote) {
113
- K > 0 ? y.acceptToken(strContent) : y.acceptToken(strEnd, 1);
112
+ } else if (Y === quote) {
113
+ J > 0 ? b.acceptToken(strContent) : b.acceptToken(strEnd, 1);
114
114
  break;
115
- } else if (J === braceL && G) {
116
- K == 1 ? y.acceptToken(strDollarBrace, 1) : y.acceptToken(strContent, -1);
115
+ } else if (Y === braceL && K) {
116
+ J == 1 ? b.acceptToken(strDollarBrace, 1) : b.acceptToken(strContent, -1);
117
117
  break;
118
- } else J === backslack && (y.advance(), y.acceptToken(escapeSequence, 1));
119
- G = J === dollar, y.advance();
118
+ } else Y === backslack && (b.advance(), b.acceptToken(escapeSequence, 1));
119
+ K = Y === dollar, b.advance();
120
120
  }
121
- }), scanIndString = /* @__PURE__ */ new ExternalTokenizer((y) => {
122
- for (let G = false, K = false, J = 0; ; J++) {
123
- let { next: Y } = y;
124
- if (Y < 0) {
125
- J > 0 && y.acceptToken(indStrContent);
121
+ }), scanIndString = /* @__PURE__ */ new ExternalTokenizer((b) => {
122
+ for (let K = false, J = false, Y = 0; ; Y++) {
123
+ let { next: X } = b;
124
+ if (X < 0) {
125
+ Y > 0 && b.acceptToken(indStrContent);
126
126
  break;
127
- } else if (Y === apostrophe && K) {
128
- J > 1 ? y.acceptToken(indStrContent, -1) : y.acceptToken(indStrEnd, 1);
127
+ } else if (X === apostrophe && J) {
128
+ Y > 1 ? b.acceptToken(indStrContent, -1) : b.acceptToken(indStrEnd, 1);
129
129
  break;
130
- } else if (Y === braceL && G) {
131
- J == 1 ? y.acceptToken(indStrDollarBrace, 1) : y.acceptToken(indStrContent, -1);
130
+ } else if (X === braceL && K) {
131
+ Y == 1 ? b.acceptToken(indStrDollarBrace, 1) : b.acceptToken(indStrContent, -1);
132
132
  break;
133
- } else Y === backslack && (y.advance(), y.acceptToken(indEscapeSequence, 1));
134
- G = Y === dollar, K = Y === apostrophe, y.advance();
133
+ } else X === backslack && (b.advance(), b.acceptToken(indEscapeSequence, 1));
134
+ K = X === dollar, J = X === apostrophe, b.advance();
135
135
  }
136
136
  }), spec_Identifier = {
137
137
  __proto__: null,
@@ -190,7 +190,7 @@ var strContent = 63, strDollarBrace = 64, strEnd = 65, escapeSequence = 66, indS
190
190
  topRules: { Program: [0, 3] },
191
191
  specialized: [{
192
192
  term: 5,
193
- get: (y) => spec_Identifier[y] || -1
193
+ get: (b) => spec_Identifier[b] || -1
194
194
  }],
195
195
  tokenPrec: 2290
196
196
  }), nixLanguage = /* @__PURE__ */ LRLanguage.define({
@@ -205,11 +205,11 @@ var strContent = 63, strDollarBrace = 64, strEnd = 65, escapeSequence = 66, indS
205
205
  /* @__PURE__ */ foldNodeProp.add({
206
206
  AttrSet: foldInside,
207
207
  List: foldInside,
208
- Let(y) {
209
- let G = y.getChild("let"), K = y.getChild("in");
210
- return !G || !K ? null : {
211
- from: G.to,
212
- to: K.from
208
+ Let(b) {
209
+ let K = b.getChild("let"), J = b.getChild("in");
210
+ return !K || !J ? null : {
211
+ from: K.to,
212
+ to: J.from
213
213
  };
214
214
  }
215
215
  }),
@@ -370,26 +370,26 @@ var scriptText = 145, StartCloseScriptTag = 1, styleText = 146, StartCloseStyleT
370
370
  },
371
371
  tr: { tr: true }
372
372
  };
373
- function nameChar(y) {
374
- return y == 45 || y == 46 || y == 58 || y >= 65 && y <= 90 || y == 95 || y >= 97 && y <= 122 || y >= 161;
373
+ function nameChar(b) {
374
+ return b == 45 || b == 46 || b == 58 || b >= 65 && b <= 90 || b == 95 || b >= 97 && b <= 122 || b >= 161;
375
375
  }
376
- function isSpace(y) {
377
- return y == 9 || y == 10 || y == 13 || y == 32;
376
+ function isSpace(b) {
377
+ return b == 9 || b == 10 || b == 13 || b == 32;
378
378
  }
379
379
  var cachedName = null, cachedInput = null, cachedPos = 0;
380
- function tagNameAfter(y, G) {
381
- let K = y.pos + G;
382
- if (cachedPos == K && cachedInput == y) return cachedName;
383
- let J = y.peek(G);
384
- for (; isSpace(J); ) J = y.peek(++G);
385
- let Y = "";
386
- for (; nameChar(J); ) Y += String.fromCharCode(J), J = y.peek(++G);
387
- return cachedInput = y, cachedPos = K, cachedName = Y ? Y.toLowerCase() : J == question || J == bang ? void 0 : null;
380
+ function tagNameAfter(b, K) {
381
+ let J = b.pos + K;
382
+ if (cachedPos == J && cachedInput == b) return cachedName;
383
+ let Y = b.peek(K);
384
+ for (; isSpace(Y); ) Y = b.peek(++K);
385
+ let X = "";
386
+ for (; nameChar(Y); ) X += String.fromCharCode(Y), Y = b.peek(++K);
387
+ return cachedInput = b, cachedPos = J, cachedName = X ? X.toLowerCase() : Y == question || Y == bang ? void 0 : null;
388
388
  }
389
389
  var lessThan = 60, greaterThan$1 = 62, slash$1 = 47, question = 63, bang = 33;
390
- function ElementContext(y, G) {
391
- this.name = y, this.parent = G, this.hash = G ? G.hash : 0;
392
- for (let G2 = 0; G2 < y.length; G2++) this.hash += (this.hash << 4) + y.charCodeAt(G2) + (y.charCodeAt(G2) << 8);
390
+ function ElementContext(b, K) {
391
+ this.name = b, this.parent = K, this.hash = K ? K.hash : 0;
392
+ for (let K2 = 0; K2 < b.length; K2++) this.hash += (this.hash << 4) + b.charCodeAt(K2) + (b.charCodeAt(K2) << 8);
393
393
  }
394
394
  var startTagTerms = [
395
395
  StartTag,
@@ -399,63 +399,63 @@ var startTagTerms = [
399
399
  StartTextareaTag
400
400
  ], elementContext = /* @__PURE__ */ new ContextTracker({
401
401
  start: null,
402
- shift(y, G, K, J) {
403
- return startTagTerms.indexOf(G) > -1 ? new ElementContext(tagNameAfter(J, 1) || "", y) : y;
402
+ shift(b, K, J, Y) {
403
+ return startTagTerms.indexOf(K) > -1 ? new ElementContext(tagNameAfter(Y, 1) || "", b) : b;
404
404
  },
405
- reduce(y, G) {
406
- return G == Element && y ? y.parent : y;
405
+ reduce(b, K) {
406
+ return K == Element && b ? b.parent : b;
407
407
  },
408
- reuse(y, G, K, J) {
409
- let Y = G.type.id;
410
- return Y == StartTag || Y == OpenTag ? new ElementContext(tagNameAfter(J, 1) || "", y) : y;
408
+ reuse(b, K, J, Y) {
409
+ let X = K.type.id;
410
+ return X == StartTag || X == OpenTag ? new ElementContext(tagNameAfter(Y, 1) || "", b) : b;
411
411
  },
412
- hash(y) {
413
- return y ? y.hash : 0;
412
+ hash(b) {
413
+ return b ? b.hash : 0;
414
414
  },
415
415
  strict: false
416
- }), tagStart = /* @__PURE__ */ new ExternalTokenizer((y, G) => {
417
- if (y.next != lessThan) {
418
- y.next < 0 && G.context && y.acceptToken(missingCloseTag);
416
+ }), tagStart = /* @__PURE__ */ new ExternalTokenizer((b, K) => {
417
+ if (b.next != lessThan) {
418
+ b.next < 0 && K.context && b.acceptToken(missingCloseTag);
419
419
  return;
420
420
  }
421
- y.advance();
422
- let K = y.next == slash$1;
423
- K && y.advance();
424
- let J = tagNameAfter(y, 0);
425
- if (J === void 0) return;
426
- if (!J) return y.acceptToken(K ? IncompleteCloseTag : StartTag);
427
- let Y = G.context ? G.context.name : null;
428
- if (K) {
429
- if (J == Y) return y.acceptToken(StartCloseTag);
430
- if (Y && implicitlyClosed[Y]) return y.acceptToken(missingCloseTag, -2);
431
- for (let y2 = G.context; y2; y2 = y2.parent) if (y2.name == J) return;
432
- y.acceptToken(MismatchedStartCloseTag);
421
+ b.advance();
422
+ let J = b.next == slash$1;
423
+ J && b.advance();
424
+ let Y = tagNameAfter(b, 0);
425
+ if (Y === void 0) return;
426
+ if (!Y) return b.acceptToken(J ? IncompleteCloseTag : StartTag);
427
+ let X = K.context ? K.context.name : null;
428
+ if (J) {
429
+ if (Y == X) return b.acceptToken(StartCloseTag);
430
+ if (X && implicitlyClosed[X]) return b.acceptToken(missingCloseTag, -2);
431
+ for (let b2 = K.context; b2; b2 = b2.parent) if (b2.name == Y) return;
432
+ b.acceptToken(MismatchedStartCloseTag);
433
433
  } else {
434
- if (J == "script") return y.acceptToken(StartScriptTag);
435
- if (J == "style") return y.acceptToken(StartStyleTag);
436
- if (J == "textarea") return y.acceptToken(StartTextareaTag);
437
- if (selfClosers.hasOwnProperty(J)) return y.acceptToken(StartSelfClosingTag);
438
- Y && closeOnOpen[Y] && closeOnOpen[Y][J] ? y.acceptToken(missingCloseTag, -1) : y.acceptToken(StartTag);
434
+ if (Y == "script") return b.acceptToken(StartScriptTag);
435
+ if (Y == "style") return b.acceptToken(StartStyleTag);
436
+ if (Y == "textarea") return b.acceptToken(StartTextareaTag);
437
+ if (selfClosers.hasOwnProperty(Y)) return b.acceptToken(StartSelfClosingTag);
438
+ X && closeOnOpen[X] && closeOnOpen[X][Y] ? b.acceptToken(missingCloseTag, -1) : b.acceptToken(StartTag);
439
439
  }
440
440
  }, { contextual: true });
441
- function contentTokenizer(y, G, K) {
442
- let J = 2 + y.length;
443
- return new ExternalTokenizer((Y) => {
444
- for (let X = 0, Z = 0, Q = 0; ; Q++) {
445
- if (Y.next < 0) {
446
- Q && Y.acceptToken(G);
441
+ function contentTokenizer(b, K, J) {
442
+ let Y = 2 + b.length;
443
+ return new ExternalTokenizer((X) => {
444
+ for (let Z = 0, Q = 0, $ = 0; ; $++) {
445
+ if (X.next < 0) {
446
+ $ && X.acceptToken(K);
447
447
  break;
448
448
  }
449
- if (X == 0 && Y.next == lessThan || X == 1 && Y.next == slash$1 || X >= 2 && X < J && Y.next == y.charCodeAt(X - 2)) X++, Z++;
450
- else if ((X == 2 || X == J) && isSpace(Y.next)) Z++;
451
- else if (X == J && Y.next == greaterThan$1) {
452
- Q > Z ? Y.acceptToken(G, -Z) : Y.acceptToken(K, -(Z - 2));
449
+ if (Z == 0 && X.next == lessThan || Z == 1 && X.next == slash$1 || Z >= 2 && Z < Y && X.next == b.charCodeAt(Z - 2)) Z++, Q++;
450
+ else if ((Z == 2 || Z == Y) && isSpace(X.next)) Q++;
451
+ else if (Z == Y && X.next == greaterThan$1) {
452
+ $ > Q ? X.acceptToken(K, -Q) : X.acceptToken(J, -(Q - 2));
453
453
  break;
454
- } else if ((Y.next == 10 || Y.next == 13) && Q) {
455
- Y.acceptToken(G, 1);
454
+ } else if ((X.next == 10 || X.next == 13) && $) {
455
+ X.acceptToken(K, 1);
456
456
  break;
457
- } else X = Z = 0;
458
- Y.advance();
457
+ } else Z = Q = 0;
458
+ X.advance();
459
459
  }
460
460
  });
461
461
  }
@@ -490,113 +490,113 @@ var scriptTokens = /* @__PURE__ */ contentTokenizer("script", scriptText, StartC
490
490
  hash,
491
491
  at,
492
492
  slash
493
- ], commentContent = /* @__PURE__ */ new ExternalTokenizer((y) => {
494
- for (let G = 0, K = 0; ; K++) {
495
- if (y.next < 0) {
496
- K && y.acceptToken(commentContent$1);
493
+ ], commentContent = /* @__PURE__ */ new ExternalTokenizer((b) => {
494
+ for (let K = 0, J = 0; ; J++) {
495
+ if (b.next < 0) {
496
+ J && b.acceptToken(commentContent$1);
497
497
  break;
498
498
  }
499
- if (y.next == dash) G++;
500
- else if (y.next == greaterThan && G >= 2) {
501
- K > 3 && y.acceptToken(commentContent$1, -2);
499
+ if (b.next == dash) K++;
500
+ else if (b.next == greaterThan && K >= 2) {
501
+ J > 3 && b.acceptToken(commentContent$1, -2);
502
502
  break;
503
- } else G = 0;
504
- y.advance();
503
+ } else K = 0;
504
+ b.advance();
505
505
  }
506
506
  });
507
- function createStringHandler(y) {
508
- let G = false, K = null, J = false;
509
- return () => G ? J ? (J = false, true) : y.next === backslash ? (J = true, true) : K === "double" && y.next === quoteDouble || K === "single" && y.next === quoteSingle || K === "template" && y.next === tick ? (G = false, K = null, true) : true : y.next === quoteDouble ? (G = true, K = "double", true) : y.next === quoteSingle ? (G = true, K = "single", true) : y.next === tick ? (G = true, K = "template", true) : false;
507
+ function createStringHandler(b) {
508
+ let K = false, J = null, Y = false;
509
+ return () => K ? Y ? (Y = false, true) : b.next === backslash ? (Y = true, true) : J === "double" && b.next === quoteDouble || J === "single" && b.next === quoteSingle || J === "template" && b.next === tick ? (K = false, J = null, true) : true : b.next === quoteDouble ? (K = true, J = "double", true) : b.next === quoteSingle ? (K = true, J = "single", true) : b.next === tick ? (K = true, J = "template", true) : false;
510
510
  }
511
- function createCommentHandler(y) {
512
- let G = false, K = false;
513
- return () => G ? (y.next === newline && (G = false), true) : K ? (y.next === asterisk && y.peek(1) === slash && (K = false), true) : y.next === slash && y.peek(1) === slash ? (G = true, true) : y.next === slash && y.peek(1) === asterisk ? (K = true, true) : false;
511
+ function createCommentHandler(b) {
512
+ let K = false, J = false;
513
+ return () => K ? (b.next === newline && (K = false), true) : J ? (b.next === asterisk && b.peek(1) === slash && (J = false), true) : b.next === slash && b.peek(1) === slash ? (K = true, true) : b.next === slash && b.peek(1) === asterisk ? (J = true, true) : false;
514
514
  }
515
- var longExpression = /* @__PURE__ */ new ExternalTokenizer((y) => {
516
- if (prefixes.includes(y.next)) return;
517
- let G = createCommentHandler(y), K = createStringHandler(y), J = [], Y = (y2) => {
518
- let G2 = J.lastIndexOf(y2);
519
- if (G2 !== -1) for (; J.length > G2; ) J.pop();
515
+ var longExpression = /* @__PURE__ */ new ExternalTokenizer((b) => {
516
+ if (prefixes.includes(b.next)) return;
517
+ let K = createCommentHandler(b), J = createStringHandler(b), Y = [], X = (b2) => {
518
+ let K2 = Y.lastIndexOf(b2);
519
+ if (K2 !== -1) for (; Y.length > K2; ) Y.pop();
520
520
  };
521
- for (let X = 0; ; X++) {
522
- if (y.next < 0) {
523
- X > 0 && y.acceptToken(LongExpression);
521
+ for (let Z = 0; ; Z++) {
522
+ if (b.next < 0) {
523
+ Z > 0 && b.acceptToken(LongExpression);
524
524
  break;
525
525
  }
526
- if (G() || K()) {
527
- y.advance();
526
+ if (K() || J()) {
527
+ b.advance();
528
528
  continue;
529
529
  }
530
- if (J.length === 0 && (y.next === curlyClose || y.next === parenClose || y.next === squareClose)) {
531
- y.acceptToken(LongExpression);
530
+ if (Y.length === 0 && (b.next === curlyClose || b.next === parenClose || b.next === squareClose)) {
531
+ b.acceptToken(LongExpression);
532
532
  break;
533
533
  }
534
- switch (y.next) {
534
+ switch (b.next) {
535
535
  case parenOpen:
536
- J.push("(");
536
+ Y.push("(");
537
537
  break;
538
538
  case parenClose:
539
- Y("(");
539
+ X("(");
540
540
  break;
541
541
  case squareOpen:
542
- J.push("[");
542
+ Y.push("[");
543
543
  break;
544
544
  case squareClose:
545
- Y("[");
545
+ X("[");
546
546
  break;
547
547
  case curlyOpen:
548
- J.push("{");
548
+ Y.push("{");
549
549
  break;
550
550
  case curlyClose:
551
- Y("{");
551
+ X("{");
552
552
  break;
553
553
  }
554
- y.advance();
554
+ b.advance();
555
555
  }
556
- }), shortExpression = /* @__PURE__ */ new ExternalTokenizer((y) => {
557
- if (prefixes.includes(y.peek(0))) return;
558
- let G = createCommentHandler(y), K = createStringHandler(y), J = [], Y = (y2) => {
559
- let G2 = J.lastIndexOf(y2);
560
- if (G2 !== -1) for (; J.length > G2; ) J.pop();
556
+ }), shortExpression = /* @__PURE__ */ new ExternalTokenizer((b) => {
557
+ if (prefixes.includes(b.peek(0))) return;
558
+ let K = createCommentHandler(b), J = createStringHandler(b), Y = [], X = (b2) => {
559
+ let K2 = Y.lastIndexOf(b2);
560
+ if (K2 !== -1) for (; Y.length > K2; ) Y.pop();
561
561
  };
562
- for (let X = 0; ; X++) {
563
- if (y.next < 0) {
564
- X > 0 && y.acceptToken(ShortExpression);
562
+ for (let Z = 0; ; Z++) {
563
+ if (b.next < 0) {
564
+ Z > 0 && b.acceptToken(ShortExpression);
565
565
  break;
566
566
  }
567
- if (G() || K()) {
568
- y.advance();
567
+ if (K() || J()) {
568
+ b.advance();
569
569
  continue;
570
570
  }
571
- if (J.length === 0 && (y.next === curlyClose || y.next === parenClose || y.next === squareClose || y.next === comma)) {
572
- y.acceptToken(ShortExpression);
571
+ if (Y.length === 0 && (b.next === curlyClose || b.next === parenClose || b.next === squareClose || b.next === comma)) {
572
+ b.acceptToken(ShortExpression);
573
573
  break;
574
574
  }
575
- switch (y.next) {
575
+ switch (b.next) {
576
576
  case parenOpen:
577
- J.push("(");
577
+ Y.push("(");
578
578
  break;
579
579
  case parenClose:
580
- Y("(");
580
+ X("(");
581
581
  break;
582
582
  case squareOpen:
583
- J.push("[");
583
+ Y.push("[");
584
584
  break;
585
585
  case squareClose:
586
- Y("[");
586
+ X("[");
587
587
  break;
588
588
  case curlyOpen:
589
- J.push("{");
589
+ Y.push("{");
590
590
  break;
591
591
  case curlyClose:
592
- Y("{");
592
+ X("{");
593
593
  break;
594
594
  }
595
- if (X !== 0 && J.length === 0 && space.includes(y.next)) {
596
- y.acceptToken(ShortExpression);
595
+ if (Z !== 0 && Y.length === 0 && space.includes(b.next)) {
596
+ b.acceptToken(ShortExpression);
597
597
  break;
598
598
  }
599
- y.advance();
599
+ b.advance();
600
600
  }
601
601
  }), svelteHighlighting = /* @__PURE__ */ styleTags({
602
602
  "Text RawText": tags.content,
@@ -847,70 +847,70 @@ var longExpression = /* @__PURE__ */ new ExternalTokenizer((y) => {
847
847
  specialized: [
848
848
  {
849
849
  term: 19,
850
- get: (y) => spec_BlockPrefix[y] || -1
850
+ get: (b) => spec_BlockPrefix[b] || -1
851
851
  },
852
852
  {
853
853
  term: 21,
854
- get: (y) => spec_BlockType[y] || -1
854
+ get: (b) => spec_BlockType[b] || -1
855
855
  },
856
856
  {
857
857
  term: 153,
858
- get: (y) => spec_identifier[y] || -1
858
+ get: (b) => spec_identifier[b] || -1
859
859
  },
860
860
  {
861
861
  term: 77,
862
- get: (y) => spec_AttributeName[y] || -1
862
+ get: (b) => spec_AttributeName[b] || -1
863
863
  },
864
864
  {
865
865
  term: 69,
866
- get: (y) => spec_TagName[y] || -1
866
+ get: (b) => spec_TagName[b] || -1
867
867
  }
868
868
  ],
869
869
  tokenPrec: 1571
870
870
  });
871
- function getAttrs(y, G) {
872
- let K = /* @__PURE__ */ Object.create(null);
873
- for (let J of y.firstChild.getChildren("Attribute")) {
874
- let y2 = J.getChild("AttributeName"), Y = J.getChild("AttributeValue") || J.getChild("UnquotedAttributeValue");
875
- y2 && (K[G.read(y2.from, y2.to)] = Y ? Y.name == "AttributeValue" ? G.read(Y.from + 1, Y.to - 1) : G.read(Y.from, Y.to) : "");
871
+ function getAttrs(b, K) {
872
+ let J = /* @__PURE__ */ Object.create(null);
873
+ for (let Y of b.firstChild.getChildren("Attribute")) {
874
+ let b2 = Y.getChild("AttributeName"), X = Y.getChild("AttributeValue") || Y.getChild("UnquotedAttributeValue");
875
+ b2 && (J[K.read(b2.from, b2.to)] = X ? X.name == "AttributeValue" ? K.read(X.from + 1, X.to - 1) : K.read(X.from, X.to) : "");
876
876
  }
877
- return K;
877
+ return J;
878
878
  }
879
- function maybeNest(y, G, K) {
880
- let J;
881
- for (let Y of K) if (!Y.attrs || Y.attrs(J || (J = getAttrs(y.node.parent, G)))) return { parser: Y.parser };
879
+ function maybeNest(b, K, J) {
880
+ let Y;
881
+ for (let X of J) if (!X.attrs || X.attrs(Y || (Y = getAttrs(b.node.parent, K)))) return { parser: X.parser };
882
882
  return null;
883
883
  }
884
884
  var expressionParser = /* @__PURE__ */ parser$1.configure({ top: "SingleExpression" });
885
- function configureNesting(y) {
886
- let G = [], K = [], J = [];
887
- for (let Y of y) {
888
- let y2 = Y.tag == "script" ? G : Y.tag == "style" ? K : Y.tag == "textarea" ? J : null;
889
- if (!y2) throw RangeError("Only script, style, and textarea tags can host nested parsers");
890
- y2.push(Y);
885
+ function configureNesting(b) {
886
+ let K = [], J = [], Y = [];
887
+ for (let X of b) {
888
+ let b2 = X.tag == "script" ? K : X.tag == "style" ? J : X.tag == "textarea" ? Y : null;
889
+ if (!b2) throw RangeError("Only script, style, and textarea tags can host nested parsers");
890
+ b2.push(X);
891
891
  }
892
- return parseMixed((y2, Y) => {
893
- let X = y2.type.id;
894
- return X === LongExpression || X === ShortExpression ? { parser: expressionParser } : X === ScriptText ? maybeNest(y2, Y, G) : X === StyleText ? maybeNest(y2, Y, K) : X === TextareaText ? maybeNest(y2, Y, J) : null;
892
+ return parseMixed((b2, X) => {
893
+ let Z = b2.type.id;
894
+ return Z === LongExpression || Z === ShortExpression ? { parser: expressionParser } : Z === ScriptText ? maybeNest(b2, X, K) : Z === StyleText ? maybeNest(b2, X, J) : Z === TextareaText ? maybeNest(b2, X, Y) : null;
895
895
  });
896
896
  }
897
897
  var defaultNesting = [
898
898
  {
899
899
  tag: "script",
900
- attrs: (y) => y.type === "text/typescript" || y.lang === "ts",
900
+ attrs: (b) => b.type === "text/typescript" || b.lang === "ts",
901
901
  parser: typescriptLanguage.parser
902
902
  },
903
903
  {
904
904
  tag: "script",
905
- attrs(y) {
906
- return !y.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(y.type);
905
+ attrs(b) {
906
+ return !b.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(b.type);
907
907
  },
908
908
  parser: javascriptLanguage.parser
909
909
  },
910
910
  {
911
911
  tag: "style",
912
- attrs(y) {
913
- return (!y.lang || y.lang === "css" || y.lang === "scss") && (!y.type || /^(text\/)?(x-)?(stylesheet|css|scss)$/i.test(y.type));
912
+ attrs(b) {
913
+ return (!b.lang || b.lang === "css" || b.lang === "scss") && (!b.type || /^(text\/)?(x-)?(stylesheet|css|scss)$/i.test(b.type));
914
914
  },
915
915
  parser: cssLanguage.parser
916
916
  }
@@ -918,47 +918,47 @@ var defaultNesting = [
918
918
  parser: /* @__PURE__ */ parser$2.configure({
919
919
  wrap: /* @__PURE__ */ configureNesting(defaultNesting),
920
920
  props: [/* @__PURE__ */ indentNodeProp.add({
921
- Element: (y) => {
922
- let G = /^(\s*)(<\/)?/.exec(y.textAfter);
923
- return y.node.to <= y.pos + G[0].length ? y.continue() : y.lineIndent(y.node.from) + (G[2] ? 0 : y.unit);
921
+ Element: (b) => {
922
+ let K = /^(\s*)(<\/)?/.exec(b.textAfter);
923
+ return b.node.to <= b.pos + K[0].length ? b.continue() : b.lineIndent(b.node.from) + (K[2] ? 0 : b.unit);
924
924
  },
925
- Block: (y) => {
926
- let G = y.node, K = y.textAfter.trim();
927
- if (K.startsWith("{/")) {
928
- let J2 = G.name;
929
- return J2 === "IfBlock" && K.startsWith("{/if") || J2 === "EachBlock" && K.startsWith("{/each") || J2 === "AwaitBlock" && K.startsWith("{/await") || J2 === "KeyBlock" && K.startsWith("{/key") ? y.lineIndent(y.node.from) : null;
925
+ Block: (b) => {
926
+ let K = b.node, J = b.textAfter.trim();
927
+ if (J.startsWith("{/")) {
928
+ let Y2 = K.name;
929
+ return Y2 === "IfBlock" && J.startsWith("{/if") || Y2 === "EachBlock" && J.startsWith("{/each") || Y2 === "AwaitBlock" && J.startsWith("{/await") || Y2 === "KeyBlock" && J.startsWith("{/key") ? b.lineIndent(b.node.from) : null;
930
930
  }
931
- if (G.name === "IfBlock" || G.name === "EachBlock") {
932
- if (K.startsWith("{:else")) return y.lineIndent(G.from);
933
- } else if (G.name === "AwaitBlock" && (K.startsWith("{:then") || K.startsWith("{:catch"))) return y.lineIndent(G.from);
934
- let J = /^(\s*)(<\/)?/.exec(y.textAfter);
935
- return y.node.to <= y.pos + J[0].length ? y.continue() : y.lineIndent(y.node.from) + (J[2] ? 0 : y.unit);
931
+ if (K.name === "IfBlock" || K.name === "EachBlock") {
932
+ if (J.startsWith("{:else")) return b.lineIndent(K.from);
933
+ } else if (K.name === "AwaitBlock" && (J.startsWith("{:then") || J.startsWith("{:catch"))) return b.lineIndent(K.from);
934
+ let Y = /^(\s*)(<\/)?/.exec(b.textAfter);
935
+ return b.node.to <= b.pos + Y[0].length ? b.continue() : b.lineIndent(b.node.from) + (Y[2] ? 0 : b.unit);
936
936
  },
937
- "BlockOpen BlockClose BlockInline": (y) => y.column(y.node.from) + y.unit,
938
- "OpenTag CloseTag SelfClosingTag": (y) => y.column(y.node.from) + y.unit,
939
- Document: (y) => {
940
- if (y.pos + /\s*/.exec(y.textAfter)[0].length < y.node.to) return y.continue();
941
- let G = null, K;
942
- for (let K2 = y.node; ; ) {
943
- let y2 = K2.lastChild;
944
- if (!y2 || y2.name != "Element" || y2.to != K2.to) break;
945
- G = K2 = y2;
937
+ "BlockOpen BlockClose BlockInline": (b) => b.column(b.node.from) + b.unit,
938
+ "OpenTag CloseTag SelfClosingTag": (b) => b.column(b.node.from) + b.unit,
939
+ Document: (b) => {
940
+ if (b.pos + /\s*/.exec(b.textAfter)[0].length < b.node.to) return b.continue();
941
+ let K = null, J;
942
+ for (let J2 = b.node; ; ) {
943
+ let b2 = J2.lastChild;
944
+ if (!b2 || b2.name != "Element" || b2.to != J2.to) break;
945
+ K = J2 = b2;
946
946
  }
947
- return G && !((K = G.lastChild) && (K.name === "CloseTag" || K.name === "SelfClosingTag")) ? y.lineIndent(G.from) + y.unit : null;
947
+ return K && !((J = K.lastChild) && (J.name === "CloseTag" || J.name === "SelfClosingTag")) ? b.lineIndent(K.from) + b.unit : null;
948
948
  }
949
949
  }), /* @__PURE__ */ foldNodeProp.add({
950
- Block: (y) => {
951
- let G = `${y.name}Open`, K = `${y.name}Close`, J = y.firstChild, Y = y.lastChild;
952
- return !J || J.name !== G ? null : {
953
- from: J.to,
954
- to: (Y == null ? void 0 : Y.name) === K ? Y.from : y.to
950
+ Block: (b) => {
951
+ let K = `${b.name}Open`, J = `${b.name}Close`, Y = b.firstChild, X = b.lastChild;
952
+ return !Y || Y.name !== K ? null : {
953
+ from: Y.to,
954
+ to: (X == null ? void 0 : X.name) === J ? X.from : b.to
955
955
  };
956
956
  },
957
- Element: (y) => {
958
- let G = y.firstChild, K = y.lastChild;
959
- return !G || G.name != "OpenTag" ? null : {
960
- from: G.to,
961
- to: K.name === "CloseTag" ? K.from : y.to
957
+ Element: (b) => {
958
+ let K = b.firstChild, J = b.lastChild;
959
+ return !K || K.name != "OpenTag" ? null : {
960
+ from: K.to,
961
+ to: J.name === "CloseTag" ? J.from : b.to
962
962
  };
963
963
  }
964
964
  })]
@@ -980,43 +980,43 @@ function svelte() {
980
980
  autoCloseTags
981
981
  ]);
982
982
  }
983
- function elementName(y, G, K = y.length) {
984
- if (!G) return "";
985
- let J = G.firstChild, Y = J && (J.getChild("TagName") || J.getChild("ComponentName") || J.getChild("SvelteElementName"));
986
- return Y ? y.sliceString(Y.from, Math.min(Y.to, K)) : "";
983
+ function elementName(b, K, J = b.length) {
984
+ if (!K) return "";
985
+ let Y = K.firstChild, X = Y && (Y.getChild("TagName") || Y.getChild("ComponentName") || Y.getChild("SvelteElementName"));
986
+ return X ? b.sliceString(X.from, Math.min(X.to, J)) : "";
987
987
  }
988
- var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((y, G, J, X) => {
989
- if (y.composing || y.state.readOnly || G != J || X != ">" && X != "/" || !svelteLanguage.isActiveAt(y.state, G, -1)) return false;
990
- let { state: Z } = y, Q = Z.changeByRange((G2) => {
988
+ var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((b, K, Y, X) => {
989
+ if (b.composing || b.state.readOnly || K != Y || X != ">" && X != "/" || !svelteLanguage.isActiveAt(b.state, K, -1)) return false;
990
+ let { state: Z } = b, Q = Z.changeByRange((K2) => {
991
991
  var _a, _b, _c;
992
- let { head: J2 } = G2, Q2 = syntaxTree(Z).resolveInner(J2, -1), $;
992
+ let { head: Y2 } = K2, Q2 = syntaxTree(Z).resolveInner(Y2, -1), $;
993
993
  if ((Q2.name === "TagName" || Q2.name === "ComponentName" || Q2.name === "SvelteElementName" || Q2.name === "StartTag") && (Q2 = Q2.parent), X === ">" && Q2.name === "OpenTag") {
994
- if (((_b = (_a = Q2.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && ($ = elementName(Z.doc, Q2.parent, J2))) {
995
- let G3 = y.state.doc.sliceString(J2, J2 + 1) === ">", K = `${G3 ? "" : ">"}</${$}>`;
994
+ if (((_b = (_a = Q2.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && ($ = elementName(Z.doc, Q2.parent, Y2))) {
995
+ let K3 = b.state.doc.sliceString(Y2, Y2 + 1) === ">", J = `${K3 ? "" : ">"}</${$}>`;
996
996
  return {
997
- range: EditorSelection.cursor(J2 + 1),
997
+ range: EditorSelection.cursor(Y2 + 1),
998
998
  changes: {
999
- from: J2 + (G3 ? 1 : 0),
1000
- insert: K
999
+ from: Y2 + (K3 ? 1 : 0),
1000
+ insert: J
1001
1001
  }
1002
1002
  };
1003
1003
  }
1004
1004
  } else if (X === "/" && Q2.name === "OpenTag") {
1005
- let G3 = Q2.parent, K = G3 == null ? void 0 : G3.parent;
1006
- if (G3.from == J2 - 1 && ((_c = K.lastChild) == null ? void 0 : _c.name) != "CloseTag" && ($ = elementName(Z.doc, K, J2))) {
1007
- let G4 = y.state.doc.sliceString(J2, J2 + 1) === ">", K2 = `/${$}${G4 ? "" : ">"}`, X2 = J2 + K2.length + (G4 ? 1 : 0);
1005
+ let K3 = Q2.parent, J = K3 == null ? void 0 : K3.parent;
1006
+ if (K3.from == Y2 - 1 && ((_c = J.lastChild) == null ? void 0 : _c.name) != "CloseTag" && ($ = elementName(Z.doc, J, Y2))) {
1007
+ let K4 = b.state.doc.sliceString(Y2, Y2 + 1) === ">", J2 = `/${$}${K4 ? "" : ">"}`, X2 = Y2 + J2.length + (K4 ? 1 : 0);
1008
1008
  return {
1009
1009
  range: EditorSelection.cursor(X2),
1010
1010
  changes: {
1011
- from: J2,
1012
- insert: K2
1011
+ from: Y2,
1012
+ insert: J2
1013
1013
  }
1014
1014
  };
1015
1015
  }
1016
1016
  }
1017
- return { range: G2 };
1017
+ return { range: K2 };
1018
1018
  });
1019
- return Q.changes.empty ? false : (y.dispatch(Q, {
1019
+ return Q.changes.empty ? false : (b.dispatch(Q, {
1020
1020
  userEvent: "input.type",
1021
1021
  scrollIntoView: true
1022
1022
  }), true);
@@ -1184,129 +1184,129 @@ var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((y, G, J, X) => {
1184
1184
  true: true,
1185
1185
  false: true
1186
1186
  }, isOperatorChar = /[+\-*&^%:=<>!|/~]/, isNegativeChar = /[-]/, curPunc;
1187
- function tokenBase(y, G) {
1188
- let K = y.next();
1189
- if (K === '"' || K === "'" || K === "`") return G.tokenize = tokenString(K), G.tokenize(y, G);
1190
- if (isVersion(y, G)) return "version";
1191
- if (K === "." && keywordsMembersOfAddressType.some(function(G2) {
1192
- return y.match(`${G2}`);
1187
+ function tokenBase(b, K) {
1188
+ let J = b.next();
1189
+ if (J === '"' || J === "'" || J === "`") return K.tokenize = tokenString(J), K.tokenize(b, K);
1190
+ if (isVersion(b, K)) return "version";
1191
+ if (J === "." && keywordsMembersOfAddressType.some(function(K2) {
1192
+ return b.match(`${K2}`);
1193
1193
  })) return "addressFunction";
1194
- if (typeof K == "string" && isNumber(K, y)) return "number";
1195
- if (typeof K == "string" && /[[\]{}(),;:.]/.test(K)) return updateGarmmer(K, G);
1196
- if (K === "/") {
1197
- if (y.eat("*")) return G.tokenize = tokenComment, tokenComment(y, G);
1198
- if (y.match(/\/{2}/)) {
1199
- for (K = y.next(); K; ) {
1200
- if (K === "@") {
1201
- y.backUp(1), G.grammar = "doc";
1194
+ if (typeof J == "string" && isNumber(J, b)) return "number";
1195
+ if (typeof J == "string" && /[[\]{}(),;:.]/.test(J)) return updateGarmmer(J, K);
1196
+ if (J === "/") {
1197
+ if (b.eat("*")) return K.tokenize = tokenComment, tokenComment(b, K);
1198
+ if (b.match(/\/{2}/)) {
1199
+ for (J = b.next(); J; ) {
1200
+ if (J === "@") {
1201
+ b.backUp(1), K.grammar = "doc";
1202
1202
  break;
1203
1203
  }
1204
- K = y.next();
1204
+ J = b.next();
1205
1205
  }
1206
1206
  return "doc";
1207
1207
  }
1208
- if (y.eat("/")) return y.skipToEnd(), "comment";
1208
+ if (b.eat("/")) return b.skipToEnd(), "comment";
1209
1209
  }
1210
- if (typeof K == "string" && isNegativeChar.test(K)) {
1211
- let G2 = y.peek();
1212
- return typeof G2 == "string" && isNumber(G2, y) ? "number" : "operator";
1210
+ if (typeof J == "string" && isNegativeChar.test(J)) {
1211
+ let K2 = b.peek();
1212
+ return typeof K2 == "string" && isNumber(K2, b) ? "number" : "operator";
1213
1213
  }
1214
- if (typeof K == "string" && isOperatorChar.test(K)) return y.eatWhile(isOperatorChar), "operator";
1215
- y.eatWhile(/[\w$_\xa1-\uffff]/);
1216
- let J = y.current();
1217
- return G.grammar === "doc" ? natSpecTags.some(function(y2) {
1218
- return J === `@${y2}`;
1219
- }) ? "docReserve" : "doc" : (J === "solidity" && G.lastToken === "pragma" && (G.lastToken = G.lastToken + " " + J), Object.prototype.propertyIsEnumerable.call(keywords, J) ? ((J === "case" || J === "default") && (curPunc = "case"), Object.prototype.propertyIsEnumerable.call(keywordsSpecial, J) && (G.lastToken = J), "keyword") : Object.prototype.propertyIsEnumerable.call(keywordsEtherUnit, J) ? "etherUnit" : Object.prototype.propertyIsEnumerable.call(keywordsContractRelated, J) ? "contractRelated" : Object.prototype.propertyIsEnumerable.call(keywordsControlStructures, J) || Object.prototype.propertyIsEnumerable.call(keywordsTypeInformation, J) || Object.prototype.propertyIsEnumerable.call(keywordsV0505NewReserve, J) ? "keyword" : Object.prototype.propertyIsEnumerable.call(keywordsValueTypes, J) || Object.prototype.propertyIsEnumerable.call(keywordsTimeUnit, J) || isValidInteger(J) || isValidBytes(J) || isValidFixed(J) ? (G.lastToken += "variable", "keyword") : Object.prototype.propertyIsEnumerable.call(atoms, J) ? "atom" : Object.prototype.propertyIsEnumerable.call(keywordsErrorHandling, J) ? "errorHandling" : Object.prototype.propertyIsEnumerable.call(keywordsMathematicalAndCryptographicFuctions, J) ? "mathematicalAndCryptographic" : Object.prototype.propertyIsEnumerable.call(keywordsMoreBlockAndTransactionProperties, J) || Object.prototype.propertyIsEnumerable.call(keywordsBlockAndTransactionProperties, J) && keywordsBlockAndTransactionProperties[J].some(function(G2) {
1220
- return y.match(`.${G2}`);
1221
- }) ? "variable-2" : J === "abi" && keywordsAbiEncodeDecodeFunctions[J].some(function(G2) {
1222
- return y.match(`.${G2}`);
1223
- }) ? "abi" : updateHexLiterals(J, y) ?? ((G.lastToken === "functionName(" || G.lastToken === "returns(") && Object.prototype.propertyIsEnumerable.call(keywordsContractList, J) ? (G.lastToken += "variable", "variable") : G.lastToken === "function" ? (G.lastToken = "functionName", G.para ?? (G.para = (G.grammar = "function", "")), G.para += "functionName", "functionName") : G.lastToken === "functionName(variable" ? (G.lastToken = "functionName(", "parameterValue") : G.lastToken === "returns(variable" ? (G.lastToken = "returns(", "parameterValue") : (G.lastToken === "address" && J === "payable" && (G.lastToken = "address payable"), (G.lastToken === "contract" || G.lastToken === "struct") && (keywordsContractList[J] = true, G.lastToken = null), G.grammar === "function" ? "parameterValue" : "variable")));
1214
+ if (typeof J == "string" && isOperatorChar.test(J)) return b.eatWhile(isOperatorChar), "operator";
1215
+ b.eatWhile(/[\w$_\xa1-\uffff]/);
1216
+ let Y = b.current();
1217
+ return K.grammar === "doc" ? natSpecTags.some(function(b2) {
1218
+ return Y === `@${b2}`;
1219
+ }) ? "docReserve" : "doc" : (Y === "solidity" && K.lastToken === "pragma" && (K.lastToken = K.lastToken + " " + Y), Object.prototype.propertyIsEnumerable.call(keywords, Y) ? ((Y === "case" || Y === "default") && (curPunc = "case"), Object.prototype.propertyIsEnumerable.call(keywordsSpecial, Y) && (K.lastToken = Y), "keyword") : Object.prototype.propertyIsEnumerable.call(keywordsEtherUnit, Y) ? "etherUnit" : Object.prototype.propertyIsEnumerable.call(keywordsContractRelated, Y) ? "contractRelated" : Object.prototype.propertyIsEnumerable.call(keywordsControlStructures, Y) || Object.prototype.propertyIsEnumerable.call(keywordsTypeInformation, Y) || Object.prototype.propertyIsEnumerable.call(keywordsV0505NewReserve, Y) ? "keyword" : Object.prototype.propertyIsEnumerable.call(keywordsValueTypes, Y) || Object.prototype.propertyIsEnumerable.call(keywordsTimeUnit, Y) || isValidInteger(Y) || isValidBytes(Y) || isValidFixed(Y) ? (K.lastToken += "variable", "keyword") : Object.prototype.propertyIsEnumerable.call(atoms, Y) ? "atom" : Object.prototype.propertyIsEnumerable.call(keywordsErrorHandling, Y) ? "errorHandling" : Object.prototype.propertyIsEnumerable.call(keywordsMathematicalAndCryptographicFuctions, Y) ? "mathematicalAndCryptographic" : Object.prototype.propertyIsEnumerable.call(keywordsMoreBlockAndTransactionProperties, Y) || Object.prototype.propertyIsEnumerable.call(keywordsBlockAndTransactionProperties, Y) && keywordsBlockAndTransactionProperties[Y].some(function(K2) {
1220
+ return b.match(`.${K2}`);
1221
+ }) ? "variable-2" : Y === "abi" && keywordsAbiEncodeDecodeFunctions[Y].some(function(K2) {
1222
+ return b.match(`.${K2}`);
1223
+ }) ? "abi" : updateHexLiterals(Y, b) ?? ((K.lastToken === "functionName(" || K.lastToken === "returns(") && Object.prototype.propertyIsEnumerable.call(keywordsContractList, Y) ? (K.lastToken += "variable", "variable") : K.lastToken === "function" ? (K.lastToken = "functionName", K.para ?? (K.para = (K.grammar = "function", "")), K.para += "functionName", "functionName") : K.lastToken === "functionName(variable" ? (K.lastToken = "functionName(", "parameterValue") : K.lastToken === "returns(variable" ? (K.lastToken = "returns(", "parameterValue") : (K.lastToken === "address" && Y === "payable" && (K.lastToken = "address payable"), (K.lastToken === "contract" || K.lastToken === "struct") && (keywordsContractList[Y] = true, K.lastToken = null), K.grammar === "function" ? "parameterValue" : "variable")));
1224
1224
  }
1225
- function tokenString(y) {
1226
- return function(G, K) {
1227
- let J = false, Y, X = false;
1228
- for (Y = G.next(); Y != null; ) {
1229
- if (Y === y && !J) {
1230
- X = true;
1225
+ function tokenString(b) {
1226
+ return function(K, J) {
1227
+ let Y = false, X, Z = false;
1228
+ for (X = K.next(); X != null; ) {
1229
+ if (X === b && !Y) {
1230
+ Z = true;
1231
1231
  break;
1232
1232
  }
1233
- J = !J && y !== "`" && Y === "\\", Y = G.next();
1233
+ Y = !Y && b !== "`" && X === "\\", X = K.next();
1234
1234
  }
1235
- return (X || !(J || y === "`")) && (K.tokenize = tokenBase), "string";
1235
+ return (Z || !(Y || b === "`")) && (J.tokenize = tokenBase), "string";
1236
1236
  };
1237
1237
  }
1238
- function tokenComment(y, G) {
1239
- let K = false, J = y.next();
1240
- for (; J; ) {
1241
- if (J === "/" && K) {
1242
- G.tokenize = tokenBase;
1238
+ function tokenComment(b, K) {
1239
+ let J = false, Y = b.next();
1240
+ for (; Y; ) {
1241
+ if (Y === "/" && J) {
1242
+ K.tokenize = tokenBase;
1243
1243
  break;
1244
1244
  }
1245
- K = J === "*", J = y.next();
1245
+ J = Y === "*", Y = b.next();
1246
1246
  }
1247
1247
  return "comment";
1248
1248
  }
1249
- function isVersion(y, G) {
1250
- if (G.lastToken === "pragma solidity") return G.lastToken = null, !G.startOfLine && (y.match(/[\^{0}][0-9.]+/) || y.match(/[>=]+?[\s]*[0-9.]+[\s]*[<]?[\s]*[0-9.]+/));
1249
+ function isVersion(b, K) {
1250
+ if (K.lastToken === "pragma solidity") return K.lastToken = null, !K.startOfLine && (b.match(/[\^{0}][0-9.]+/) || b.match(/[>=]+?[\s]*[0-9.]+[\s]*[<]?[\s]*[0-9.]+/));
1251
1251
  }
1252
- function isNumber(y, G) {
1253
- if (/[\d.]/.test(y)) return y === "." ? G.match(/^[0-9]+([eE][-+]?[0-9]+)?/) : y === "0" ? G.match(/^[xX][0-9a-fA-F]+/) || G.match(/^0[0-7]+/) : G.match(/^[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?/), true;
1252
+ function isNumber(b, K) {
1253
+ if (/[\d.]/.test(b)) return b === "." ? K.match(/^[0-9]+([eE][-+]?[0-9]+)?/) : b === "0" ? K.match(/^[xX][0-9a-fA-F]+/) || K.match(/^0[0-7]+/) : K.match(/^[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?/), true;
1254
1254
  }
1255
- function isValidInteger(y) {
1256
- if (y.match(/^[u]?int/)) {
1257
- if (y.indexOf("t") + 1 === y.length) return true;
1258
- let G = Number(y.substr(y.indexOf("t") + 1, y.length));
1259
- return G % 8 == 0 && G <= 256;
1255
+ function isValidInteger(b) {
1256
+ if (b.match(/^[u]?int/)) {
1257
+ if (b.indexOf("t") + 1 === b.length) return true;
1258
+ let K = Number(b.substr(b.indexOf("t") + 1, b.length));
1259
+ return K % 8 == 0 && K <= 256;
1260
1260
  }
1261
1261
  }
1262
- function isValidBytes(y) {
1263
- if (y.match(/^bytes/)) {
1264
- if (y.indexOf("s") + 1 === y.length) return true;
1265
- let G = y.substr(y.indexOf("s") + 1, y.length);
1266
- return Number(G) <= 32;
1262
+ function isValidBytes(b) {
1263
+ if (b.match(/^bytes/)) {
1264
+ if (b.indexOf("s") + 1 === b.length) return true;
1265
+ let K = b.substr(b.indexOf("s") + 1, b.length);
1266
+ return Number(K) <= 32;
1267
1267
  }
1268
1268
  }
1269
- function isValidFixed(y) {
1270
- if (y.match(/^[u]?fixed([0-9]+x[0-9]+)?/)) {
1271
- if (y.indexOf("d") + 1 === y.length) return true;
1272
- let G = y.substr(y.indexOf("d") + 1, y.length).split("x").map(Number);
1273
- return G[0] % 8 == 0 && G[0] <= 256 && G[1] <= 80;
1269
+ function isValidFixed(b) {
1270
+ if (b.match(/^[u]?fixed([0-9]+x[0-9]+)?/)) {
1271
+ if (b.indexOf("d") + 1 === b.length) return true;
1272
+ let K = b.substr(b.indexOf("d") + 1, b.length).split("x").map(Number);
1273
+ return K[0] % 8 == 0 && K[0] <= 256 && K[1] <= 80;
1274
1274
  }
1275
1275
  }
1276
- function updateHexLiterals(y, G) {
1277
- if (y.match(/^hex/) && G.peek() === '"') {
1278
- let y2 = false, K, J = "", Y = "";
1279
- for (K = G.next(); K; ) {
1280
- if (Y += K, K === '"' && y2) {
1281
- if (J = Y.substring(1, Y.length - 1), J.match(/^[0-9a-fA-F]+$/)) return "number";
1282
- G.backUp(Y.length);
1276
+ function updateHexLiterals(b, K) {
1277
+ if (b.match(/^hex/) && K.peek() === '"') {
1278
+ let b2 = false, J, Y = "", X = "";
1279
+ for (J = K.next(); J; ) {
1280
+ if (X += J, J === '"' && b2) {
1281
+ if (Y = X.substring(1, X.length - 1), Y.match(/^[0-9a-fA-F]+$/)) return "number";
1282
+ K.backUp(X.length);
1283
1283
  break;
1284
1284
  }
1285
- y2 || (y2 = K === '"'), K = G.next();
1285
+ b2 || (b2 = J === '"'), J = K.next();
1286
1286
  }
1287
1287
  }
1288
1288
  }
1289
- function updateGarmmer(y, G) {
1290
- return y === "," && G.para === "functionName(variable" && (G.para = "functionName("), G.para != null && G.para.startsWith("functionName") && (y === ")" ? G.para.endsWith("(") && (G.para = G.para.substr(0, G.para.length - 1), G.para === "functionName" && (G.grammar = "")) : y === "(" && (G.para += y)), y === "(" && G.lastToken === "functionName" ? G.lastToken += y : y === ")" && G.lastToken === "functionName(" ? G.lastToken = null : y === "(" && G.lastToken === "returns" ? G.lastToken += y : y === ")" && (G.lastToken === "returns(" || G.lastToken === "returns(variable") && (G.lastToken = null), y === "(" && G.lastToken === "address" && (G.lastToken += y), curPunc = y, null;
1289
+ function updateGarmmer(b, K) {
1290
+ return b === "," && K.para === "functionName(variable" && (K.para = "functionName("), K.para != null && K.para.startsWith("functionName") && (b === ")" ? K.para.endsWith("(") && (K.para = K.para.substr(0, K.para.length - 1), K.para === "functionName" && (K.grammar = "")) : b === "(" && (K.para += b)), b === "(" && K.lastToken === "functionName" ? K.lastToken += b : b === ")" && K.lastToken === "functionName(" ? K.lastToken = null : b === "(" && K.lastToken === "returns" ? K.lastToken += b : b === ")" && (K.lastToken === "returns(" || K.lastToken === "returns(variable") && (K.lastToken = null), b === "(" && K.lastToken === "address" && (K.lastToken += b), curPunc = b, null;
1291
1291
  }
1292
1292
  var Context = class {
1293
- constructor(y, G, K, J, Y) {
1294
- this.indented = y, this.column = G, this.type = K, this.align = J, this.prev = Y;
1293
+ constructor(b, K, J, Y, X) {
1294
+ this.indented = b, this.column = K, this.type = J, this.align = Y, this.prev = X;
1295
1295
  }
1296
1296
  };
1297
- function pushContext(y, G, K) {
1298
- return y.context = new Context(y.indented, G, K, null, y.context), y.context;
1297
+ function pushContext(b, K, J) {
1298
+ return b.context = new Context(b.indented, K, J, null, b.context), b.context;
1299
1299
  }
1300
- function popContext(y) {
1301
- if (!y.context.prev) return;
1302
- let G = y.context.type;
1303
- return (G === ")" || G === "]" || G === "}") && (y.indented = y.context.indented), y.context = y.context.prev;
1300
+ function popContext(b) {
1301
+ if (!b.context.prev) return;
1302
+ let K = b.context.type;
1303
+ return (K === ")" || K === "]" || K === "}") && (b.indented = b.context.indented), b.context = b.context.prev;
1304
1304
  }
1305
1305
  var parser = {
1306
- startState(y) {
1306
+ startState(b) {
1307
1307
  return {
1308
1308
  tokenize: null,
1309
- context: new Context(0 - y, 0, "top", false, null),
1309
+ context: new Context(0 - b, 0, "top", false, null),
1310
1310
  indented: 0,
1311
1311
  startOfLine: true,
1312
1312
  grammar: null,
@@ -1314,19 +1314,19 @@ var parser = {
1314
1314
  para: null
1315
1315
  };
1316
1316
  },
1317
- token(y, G) {
1318
- let K = G.context;
1319
- if (y.sol() && (K.align ?? (K.align = false), G.indented = y.indentation(), G.startOfLine = true, K.type === "case" && (K.type = "}"), G.grammar === "doc" && (G.grammar = null)), y.eatSpace()) return null;
1317
+ token(b, K) {
1318
+ let J = K.context;
1319
+ if (b.sol() && (J.align ?? (J.align = false), K.indented = b.indentation(), K.startOfLine = true, J.type === "case" && (J.type = "}"), K.grammar === "doc" && (K.grammar = null)), b.eatSpace()) return null;
1320
1320
  curPunc = null;
1321
- let J = (G.tokenize || tokenBase)(y, G);
1322
- return J === "comment" ? J : (K.align ?? (K.align = true), curPunc === "{" ? pushContext(G, y.column(), "}") : curPunc === "[" ? pushContext(G, y.column(), "]") : curPunc === "(" ? pushContext(G, y.column(), ")") : curPunc === "case" ? K.type = "case" : (curPunc === "}" && K.type === "}" || curPunc === K.type) && popContext(G), G.startOfLine = false, J);
1321
+ let Y = (K.tokenize || tokenBase)(b, K);
1322
+ return Y === "comment" ? Y : (J.align ?? (J.align = true), curPunc === "{" ? pushContext(K, b.column(), "}") : curPunc === "[" ? pushContext(K, b.column(), "]") : curPunc === "(" ? pushContext(K, b.column(), ")") : curPunc === "case" ? J.type = "case" : (curPunc === "}" && J.type === "}" || curPunc === J.type) && popContext(K), K.startOfLine = false, Y);
1323
1323
  },
1324
- indent(y, G, K) {
1325
- if (y.tokenize !== tokenBase && y.tokenize != null) return null;
1326
- let J = y.context, Y = G && G.charAt(0);
1327
- if (J.type === "case" && /^(?:case|default)\b/.test(G)) return y.context.type = "}", J.indented;
1328
- let X = Y === J.type;
1329
- return J.align ? J.column + (X ? 0 : 1) : J.indented + (X ? 0 : K.unit);
1324
+ indent(b, K, J) {
1325
+ if (b.tokenize !== tokenBase && b.tokenize != null) return null;
1326
+ let Y = b.context, X = K && K.charAt(0);
1327
+ if (Y.type === "case" && /^(?:case|default)\b/.test(K)) return b.context.type = "}", Y.indented;
1328
+ let Z = X === Y.type;
1329
+ return Y.align ? Y.column + (Z ? 0 : 1) : Y.indented + (Z ? 0 : J.unit);
1330
1330
  },
1331
1331
  electricChars: "{}):",
1332
1332
  closeBrackets: "()[]{}''\"\"``",
@@ -1578,8 +1578,8 @@ var parser = {
1578
1578
  ys: () => StreamLanguage.define(yacas),
1579
1579
  z80: () => StreamLanguage.define(z80)
1580
1580
  };
1581
- function loadLanguage(y) {
1582
- return langs[y] ? langs[y]() : null;
1581
+ function loadLanguage(b) {
1582
+ return langs[b] ? langs[b]() : null;
1583
1583
  }
1584
1584
  export {
1585
1585
  loadLanguage as n,