@aiao/code-editor-vue 0.0.7 → 0.0.9

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 (126) hide show
  1. package/dist/apl-B2DGVGxc-Dd6D39pP.js +76 -0
  2. package/dist/asciiarmor-2LVJmxlE-CAn4gnoC.js +34 -0
  3. package/dist/asn1-jKiBa2Ya-xsKwdyq9.js +95 -0
  4. package/dist/asterisk-DS281yxp-B5eTWk_B.js +271 -0
  5. package/dist/brainfuck-C_p9pTT8-DKVQ9poL.js +34 -0
  6. package/dist/clike-BMALKCNj-Ck7Gc35_.js +620 -0
  7. package/dist/clojure-CCKyeQKf-N9sg777Z.js +800 -0
  8. package/dist/cmake-CuaCgAKt-BbEgXraO.js +28 -0
  9. package/dist/cobol-BlTKFDRj-CHCoWafp.js +72 -0
  10. package/dist/coffeescript-BVCvwO8I-Z15ai5ac.js +179 -0
  11. package/dist/commonlisp-D_kxz07b-Ce7sn14o.js +75 -0
  12. package/dist/crystal-D309uH6_-DS6LrXoE.js +217 -0
  13. package/dist/css-BkF-NPzE-DiJu9Nkd.js +1553 -0
  14. package/dist/cypher-BMq4Fwjl-Ml-omWgp.js +68 -0
  15. package/dist/d-BZcgY6La-KCW6-bIm.js +127 -0
  16. package/dist/diff-Cg9d_RX2-C01qBVFc.js +18 -0
  17. package/dist/dockerfile-DFX8bq9N-BIbYUQV0.js +194 -0
  18. package/dist/dtd-CtLokQ-U-DCbNdeIA.js +84 -0
  19. package/dist/dylan-QYeExnWK-DIUVpsct.js +234 -0
  20. package/dist/ebnf-DUPDuY4r-7HIXKmWn.js +78 -0
  21. package/dist/ecl-CiXN-g_D-DOI-W0if.js +121 -0
  22. package/dist/eiffel-yQhjl4T1-DIX8Ceq1.js +110 -0
  23. package/dist/elm-CNT9vbN0-BcYlydpO.js +108 -0
  24. package/dist/erlang-CFOYdy9e-DULXsFZl.js +487 -0
  25. package/dist/factor-Clf6BoVk-DBb2EHMF.js +65 -0
  26. package/dist/fcl-CPC2WYrI-CuXG3fcK.js +103 -0
  27. package/dist/forth-BmxRyE9S-BcFwWpeL.js +60 -0
  28. package/dist/fortran-9bvPyrOW-CuLcq-Iu.js +442 -0
  29. package/dist/gas-cpmYfFX2-sZgGhMxB.js +183 -0
  30. package/dist/gherkin-CJuwpceU-BRrr8yjO.js +34 -0
  31. package/dist/groovy-DZeT_VM--CmF8wcSo.js +146 -0
  32. package/dist/haskell-CxiO_7JL-BuULsXvv.js +375 -0
  33. package/dist/haxe-70NVW1pR-CM27SfgM.js +359 -0
  34. package/dist/http-D9LttvKF-j9E8oQ7o.js +44 -0
  35. package/dist/idl-B6TRFYjl-B6TRFYjl.js +947 -0
  36. package/dist/index-4oLq9F9B-Bwzqzq-7.js +944 -0
  37. package/dist/index-9NH8hlZ--BIK1-_7Y.js +342 -0
  38. package/dist/index-BFXNCCbG-Dn1DmTkR.js +253 -0
  39. package/dist/index-BLHYcXXK-D3jw64Ia.js +101 -0
  40. package/dist/index-BQU3Rb2C-BhijiYjz.js +290 -0
  41. package/dist/index-Bg18ePld-CYeapYL7.js +157 -0
  42. package/dist/{index-DcMCsmYb.js → index-Bp5lqnbN-BoMgXRma.js} +134 -133
  43. package/dist/index-Bqzq8A1N-PdN6VK36.js +59 -0
  44. package/dist/{index-DBgKi_NE.js → index-Bx-s4g99-DYf1g6JD.js} +18 -18
  45. package/dist/index-BxX25QmV-DN1ZGFmt.js +248 -0
  46. package/dist/index-CFCzgc33-DE9rG3W6.js +1917 -0
  47. package/dist/index-CL7JTU9M-4NGEQoO4.js +136 -0
  48. package/dist/index-CipmEceX-CFTPqpKk.js +74 -0
  49. package/dist/{index-D6_k5ZgA.js → index-Cv4vvpa2-BukCrc2X.js} +106 -106
  50. package/dist/index-D4hhdPbZ-DdhnEv3l.js +6152 -0
  51. package/dist/index-DhNQ8g9I-CVe0AfsL.js +270 -0
  52. package/dist/index-DiRkPt_L.js +37449 -0
  53. package/dist/index-Djp53tAP-D0DXRMTU.js +94 -0
  54. package/dist/{index-BluJGN_u.js → index-KlsAFhIj-eocEKyjX.js} +122 -121
  55. package/dist/index-OntZqtu6-D0l05YUl.js +305 -0
  56. package/dist/index-PGnZjMCR-CmhlYKb5.js +301 -0
  57. package/dist/index-TyYoYgss-C-LVSkzX.js +613 -0
  58. package/dist/index-oMSPmlXA-CBTT7XSR.js +960 -0
  59. package/dist/index-rQC6Gbk0-Cj-ZtGkV.js +138 -0
  60. package/dist/index.d.ts +0 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +2 -3
  63. package/dist/javascript-DOuB9oqA-BxiygWgm.js +691 -0
  64. package/dist/julia-DpvXAuO6-Bk_IfD8X.js +241 -0
  65. package/dist/livescript-CanGTf8u-Cx6PrvS4.js +272 -0
  66. package/dist/lua-XplVlWi_-8f8obHzY.js +217 -0
  67. package/dist/mathematica-jaRHnSxC-B83gQsL2.js +35 -0
  68. package/dist/mbox-BctzC1hL-Hg5U2B4l.js +76 -0
  69. package/dist/mirc-CFBPAOaF-CfzSSk9W.js +72 -0
  70. package/dist/mllike-BSnXJBGA-Ao1NpT2u.js +272 -0
  71. package/dist/modelica-vUgVs--1-BObVpYBg.js +93 -0
  72. package/dist/mscgen-Cpl0NYLN-DqNArLGH.js +104 -0
  73. package/dist/mumps-CQoS1kWX-CkTUOQnt.js +25 -0
  74. package/dist/nginx-zDPm3Z74-DJk4KP7N.js +87 -0
  75. package/dist/nsis-BCLyjY7m-C2MffOQ3.js +62 -0
  76. package/dist/ntriples-CsNjv2QF-C4aZn3EO.js +79 -0
  77. package/dist/octave-C8PmmSRH-DM5vTWlU.js +143 -0
  78. package/dist/oz-Ce8aN8oE-BcJM4SVy.js +151 -0
  79. package/dist/pascal-De0D6mP7-D7DGFFKL.js +77 -0
  80. package/dist/perl-B4bSCe1C-6aIa2glS.js +915 -0
  81. package/dist/pig-D24Z8EXi-BD-qt5FU.js +54 -0
  82. package/dist/powershell-DkYVfTzP-Blt1Rodi.js +249 -0
  83. package/dist/properties-Dn9wna3M-EOOwnCnk.js +26 -0
  84. package/dist/protobuf-BPIjwpzm-DAButU8_.js +49 -0
  85. package/dist/pug-TGXr6c5j-C9HfQ86E.js +248 -0
  86. package/dist/puppet-nyd4dhjf-CGzH5dsa.js +45 -0
  87. package/dist/python-BkR3uSy8-CjDnyp3B.js +313 -0
  88. package/dist/q-DyHZGnqm-DGuqeH_T.js +86 -0
  89. package/dist/r-LKEuhEGI-BFQhJnTP.js +104 -0
  90. package/dist/rpm-IznJm2Xc-CbZqrWCM.js +57 -0
  91. package/dist/ruby-CcYfvIk6-DzPSfSGo.js +228 -0
  92. package/dist/sas-7E8yHoCW-D726Uzkw.js +105 -0
  93. package/dist/scheme-DjibxsNh-Bp5gVFkm.js +124 -0
  94. package/dist/shell-C0C2sNA_-BTeYg6ir.js +182 -0
  95. package/dist/sieve-Bwz7vjP5-Cw8iTBf7.js +72 -0
  96. package/dist/simple-mode-mNVtnu0l-BC8mf7KF.js +89 -0
  97. package/dist/smalltalk-Bhddl2pB-B7URiJSp.js +48 -0
  98. package/dist/solr-BNlsLglM-BM2OpfTI.js +41 -0
  99. package/dist/sparql-FarWu_Gb-FN_uQNd4.js +197 -0
  100. package/dist/spreadsheet-C-cy4P5N-5CSTwVYq.js +49 -0
  101. package/dist/sql-CfG5lQ3l-Bd4dgm_8.js +278 -0
  102. package/dist/stex-Du4h4KAU-QOov_zHj.js +129 -0
  103. package/dist/stylus-CAdqWld3-BcRBbBxD.js +250 -0
  104. package/dist/swift-DSxqR9R6-2Hz4NOoF.js +230 -0
  105. package/dist/tcl-xfoLljhY-DAZBRGQI.js +81 -0
  106. package/dist/textile-D1AWE-pc-DuiIfEnb.js +295 -0
  107. package/dist/tiddlywiki-5wqsXtSk-WuF_8VUv.js +155 -0
  108. package/dist/tiki-__Kn3CeS-CWcR9ib_.js +181 -0
  109. package/dist/toml-DWAmxCjl-CyJoDzs6.js +56 -0
  110. package/dist/troff-D2UO-fKf-DVoIzS-O.js +35 -0
  111. package/dist/ttcn-Bsa4sfRm-hoy08sYQ.js +123 -0
  112. package/dist/ttcn-cfg-Bac_acMi-DaC4kQpd.js +88 -0
  113. package/dist/turtle-xwJUxoPV-fs94wdNM.js +80 -0
  114. package/dist/vb-c2kQGd6--DU726qF0.js +74 -0
  115. package/dist/vbscript-1f_Dhg5H-DriA32xD.js +324 -0
  116. package/dist/velocity-DJd0pTTC-BG368IR6.js +96 -0
  117. package/dist/verilog-CiS1jyi5-giQA8J-e.js +259 -0
  118. package/dist/vhdl-T9HkrbI2-BJ8LEDog.js +106 -0
  119. package/dist/webidl-CjfDENEo-BM8KXKJ5.js +155 -0
  120. package/dist/xquery-Ct6lEb4B-C5KDc61l.js +422 -0
  121. package/dist/yacas-C0absKBh-B82QJ76F.js +73 -0
  122. package/dist/z80-Pki2zAjW-B0IQoIbR.js +61 -0
  123. package/package.json +11 -10
  124. package/dist/index-3d5LPf68.js +0 -19017
  125. package/dist/languages.d.ts +0 -3
  126. package/dist/languages.d.ts.map +0 -1
@@ -0,0 +1,944 @@
1
+ import { w as ht, Y as $, Z as bt } from "./index-Cv4vvpa2-BukCrc2X.js";
2
+ import { a as xt, E as Pt, x as Vt, R as J, S as Tt, b as wt, n as yt, r as vt, J as Xt, u as $t, P as h } from "./index-DiRkPt_L.js";
3
+ import { cssLanguage as K, css as qt } from "./index-oMSPmlXA-CBTT7XSR.js";
4
+ import { typescriptLanguage as _t, jsxLanguage as kt, tsxLanguage as Qt, javascriptLanguage as R, javascript as At } from "./index-Bp5lqnbN-BoMgXRma.js";
5
+ const Ct = 55, Yt = 1, Rt = 56, Mt = 2, Zt = 57, Et = 3, z = 4, Bt = 5, M = 6, tt = 7, et = 8, lt = 9, at = 10, zt = 11, Wt = 12, Dt = 13, q = 58, Gt = 14, jt = 15, W = 59, rt = 21, It = 23, nt = 24, Ut = 25, C = 27, st = 28, Nt = 29, Lt = 32, Ft = 35, Ht = 37, Jt = 38, Kt = 0, te = 1, ee = {
6
+ area: !0,
7
+ base: !0,
8
+ br: !0,
9
+ col: !0,
10
+ command: !0,
11
+ embed: !0,
12
+ frame: !0,
13
+ hr: !0,
14
+ img: !0,
15
+ input: !0,
16
+ keygen: !0,
17
+ link: !0,
18
+ meta: !0,
19
+ param: !0,
20
+ source: !0,
21
+ track: !0,
22
+ wbr: !0,
23
+ menuitem: !0
24
+ }, le = {
25
+ dd: !0,
26
+ li: !0,
27
+ optgroup: !0,
28
+ option: !0,
29
+ p: !0,
30
+ rp: !0,
31
+ rt: !0,
32
+ tbody: !0,
33
+ td: !0,
34
+ tfoot: !0,
35
+ th: !0,
36
+ tr: !0
37
+ }, D = {
38
+ dd: { dd: !0, dt: !0 },
39
+ dt: { dd: !0, dt: !0 },
40
+ li: { li: !0 },
41
+ option: { option: !0, optgroup: !0 },
42
+ optgroup: { optgroup: !0 },
43
+ p: {
44
+ address: !0,
45
+ article: !0,
46
+ aside: !0,
47
+ blockquote: !0,
48
+ dir: !0,
49
+ div: !0,
50
+ dl: !0,
51
+ fieldset: !0,
52
+ footer: !0,
53
+ form: !0,
54
+ h1: !0,
55
+ h2: !0,
56
+ h3: !0,
57
+ h4: !0,
58
+ h5: !0,
59
+ h6: !0,
60
+ header: !0,
61
+ hgroup: !0,
62
+ hr: !0,
63
+ menu: !0,
64
+ nav: !0,
65
+ ol: !0,
66
+ p: !0,
67
+ pre: !0,
68
+ section: !0,
69
+ table: !0,
70
+ ul: !0
71
+ },
72
+ rp: { rp: !0, rt: !0 },
73
+ rt: { rp: !0, rt: !0 },
74
+ tbody: { tbody: !0, tfoot: !0 },
75
+ td: { td: !0, th: !0 },
76
+ tfoot: { tbody: !0 },
77
+ th: { td: !0, th: !0 },
78
+ thead: { tbody: !0, tfoot: !0 },
79
+ tr: { tr: !0 }
80
+ };
81
+ function ae(t) {
82
+ return t == 45 || t == 46 || t == 58 || t >= 65 && t <= 90 || t == 95 || t >= 97 && t <= 122 || t >= 161;
83
+ }
84
+ let G = null, j = null, I = 0;
85
+ function Y(t, l) {
86
+ let r = t.pos + l;
87
+ if (I == r && j == t) return G;
88
+ let a = t.peek(l), e = "";
89
+ for (; ae(a); )
90
+ e += String.fromCharCode(a), a = t.peek(++l);
91
+ return j = t, I = r, G = e ? e.toLowerCase() : a == re || a == ne ? void 0 : null;
92
+ }
93
+ const ot = 60, X = 62, Z = 47, re = 63, ne = 33, se = 45;
94
+ function U(t, l) {
95
+ this.name = t, this.parent = l;
96
+ }
97
+ const oe = [M, at, tt, et, lt], ue = new bt({
98
+ start: null,
99
+ shift(t, l, r, a) {
100
+ return oe.indexOf(l) > -1 ? new U(Y(a, 1) || "", t) : t;
101
+ },
102
+ reduce(t, l) {
103
+ return l == rt && t ? t.parent : t;
104
+ },
105
+ reuse(t, l, r, a) {
106
+ let e = l.type.id;
107
+ return e == M || e == Ht ? new U(Y(a, 1) || "", t) : t;
108
+ },
109
+ strict: !1
110
+ }), Oe = new $((t, l) => {
111
+ if (t.next != ot) {
112
+ t.next < 0 && l.context && t.acceptToken(q);
113
+ return;
114
+ }
115
+ t.advance();
116
+ let r = t.next == Z;
117
+ r && t.advance();
118
+ let a = Y(t, 0);
119
+ if (a === void 0) return;
120
+ if (!a) return t.acceptToken(r ? jt : Gt);
121
+ let e = l.context ? l.context.name : null;
122
+ if (r) {
123
+ if (a == e) return t.acceptToken(zt);
124
+ if (e && le[e]) return t.acceptToken(q, -2);
125
+ if (l.dialectEnabled(Kt)) return t.acceptToken(Wt);
126
+ for (let s = l.context; s; s = s.parent) if (s.name == a) return;
127
+ t.acceptToken(Dt);
128
+ } else {
129
+ if (a == "script") return t.acceptToken(tt);
130
+ if (a == "style") return t.acceptToken(et);
131
+ if (a == "textarea") return t.acceptToken(lt);
132
+ if (ee.hasOwnProperty(a)) return t.acceptToken(at);
133
+ e && D[e] && D[e][a] ? t.acceptToken(q, -1) : t.acceptToken(M);
134
+ }
135
+ }, { contextual: !0 }), ie = new $((t) => {
136
+ for (let l = 0, r = 0; ; r++) {
137
+ if (t.next < 0) {
138
+ r && t.acceptToken(W);
139
+ break;
140
+ }
141
+ if (t.next == se)
142
+ l++;
143
+ else if (t.next == X && l >= 2) {
144
+ r >= 3 && t.acceptToken(W, -2);
145
+ break;
146
+ } else
147
+ l = 0;
148
+ t.advance();
149
+ }
150
+ });
151
+ function pe(t) {
152
+ for (; t; t = t.parent)
153
+ if (t.name == "svg" || t.name == "math") return !0;
154
+ return !1;
155
+ }
156
+ const de = new $((t, l) => {
157
+ if (t.next == Z && t.peek(1) == X) {
158
+ let r = l.dialectEnabled(te) || pe(l.context);
159
+ t.acceptToken(r ? Bt : z, 2);
160
+ } else t.next == X && t.acceptToken(z, 1);
161
+ });
162
+ function E(t, l, r) {
163
+ let a = 2 + t.length;
164
+ return new $((e) => {
165
+ for (let s = 0, o = 0, u = 0; ; u++) {
166
+ if (e.next < 0) {
167
+ u && e.acceptToken(l);
168
+ break;
169
+ }
170
+ if (s == 0 && e.next == ot || s == 1 && e.next == Z || s >= 2 && s < a && e.next == t.charCodeAt(s - 2))
171
+ s++, o++;
172
+ else if (s == a && e.next == X) {
173
+ u > o ? e.acceptToken(l, -o) : e.acceptToken(r, -(o - 2));
174
+ break;
175
+ } else if ((e.next == 10 || e.next == 13) && u) {
176
+ e.acceptToken(l, 1);
177
+ break;
178
+ } else
179
+ s = o = 0;
180
+ e.advance();
181
+ }
182
+ });
183
+ }
184
+ const ce = E("script", Ct, Yt), me = E("style", Rt, Mt), fe = E("textarea", Zt, Et), Se = $t({
185
+ "Text RawText IncompleteTag IncompleteCloseTag": h.content,
186
+ "StartTag StartCloseTag SelfClosingEndTag EndTag": h.angleBracket,
187
+ TagName: h.tagName,
188
+ "MismatchedCloseTag/TagName": [h.tagName, h.invalid],
189
+ AttributeName: h.attributeName,
190
+ "AttributeValue UnquotedAttributeValue": h.attributeValue,
191
+ Is: h.definitionOperator,
192
+ "EntityReference CharacterReference": h.character,
193
+ Comment: h.blockComment,
194
+ ProcessingInst: h.processingInstruction,
195
+ DoctypeDecl: h.documentM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ag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
202
+ maxTerm: 68,
203
+ context: ue,
204
+ nodeProps: [
205
+ ["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 22, 31, 34, 37, "CloseTag"],
206
+ ["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 30, 33, 36, 38, "OpenTag"],
207
+ ["group", -10, 14, 15, 18, 19, 20, 21, 40, 41, 42, 43, "Entity", 17, "Entity TextContent", -3, 29, 32, 35, "TextContent Entity"],
208
+ ["isolate", -11, 22, 30, 31, 33, 34, 36, 37, 38, 39, 42, 43, "ltr", -3, 27, 28, 40, ""]
209
+ ],
210
+ propSources: [Se],
211
+ skippedNodes: [0],
212
+ repeatNodeCount: 9,
213
+ tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qr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0, 16] },
216
+ dialects: { noMatch: 0, selfClosing: 515 },
217
+ tokenPrec: 517
218
+ });
219
+ function ut(t, l) {
220
+ let r = /* @__PURE__ */ Object.create(null);
221
+ for (let a of t.getChildren(nt)) {
222
+ let e = a.getChild(Ut), s = a.getChild(C) || a.getChild(st);
223
+ e && (r[l.read(e.from, e.to)] = s ? s.type.id == C ? l.read(s.from + 1, s.to - 1) : l.read(s.from, s.to) : "");
224
+ }
225
+ return r;
226
+ }
227
+ function N(t, l) {
228
+ let r = t.getChild(It);
229
+ return r ? l.read(r.from, r.to) : " ";
230
+ }
231
+ function _(t, l, r) {
232
+ let a;
233
+ for (let e of r)
234
+ if (!e.attrs || e.attrs(a || (a = ut(t.node.parent.firstChild, l))))
235
+ return { parser: e.parser, bracketed: !0 };
236
+ return null;
237
+ }
238
+ function Ot(t = [], l = []) {
239
+ let r = [], a = [], e = [], s = [];
240
+ for (let u of t)
241
+ (u.tag == "script" ? r : u.tag == "style" ? a : u.tag == "textarea" ? e : s).push(u);
242
+ let o = l.length ? /* @__PURE__ */ Object.create(null) : null;
243
+ for (let u of l) (o[u.name] || (o[u.name] = [])).push(u);
244
+ return Xt((u, O) => {
245
+ let m = u.type.id;
246
+ if (m == Nt) return _(u, O, r);
247
+ if (m == Lt) return _(u, O, a);
248
+ if (m == Ft) return _(u, O, e);
249
+ if (m == rt && s.length) {
250
+ let c = u.node, p = c.firstChild, f = p && N(p, O), i;
251
+ if (f) {
252
+ for (let d of s)
253
+ if (d.tag == f && (!d.attrs || d.attrs(i || (i = ut(p, O))))) {
254
+ let g = c.lastChild, b = g.type.id == Jt ? g.from : c.to;
255
+ if (b > p.to)
256
+ return { parser: d.parser, overlay: [{ from: p.to, to: b }] };
257
+ }
258
+ }
259
+ }
260
+ if (o && m == nt) {
261
+ let c = u.node, p;
262
+ if (p = c.firstChild) {
263
+ let f = o[O.read(p.from, p.to)];
264
+ if (f) for (let i of f) {
265
+ if (i.tagName && i.tagName != N(c.parent, O)) continue;
266
+ let d = c.lastChild;
267
+ if (d.type.id == C) {
268
+ let g = d.from + 1, b = d.lastChild, x = d.to - (b && b.isError ? 0 : 1);
269
+ if (x > g) return { parser: i.parser, overlay: [{ from: g, to: x }], bracketed: !0 };
270
+ } else if (d.type.id == st)
271
+ return { parser: i.parser, overlay: [{ from: d.from, to: d.to }] };
272
+ }
273
+ }
274
+ }
275
+ return null;
276
+ });
277
+ }
278
+ const T = ["_blank", "_self", "_top", "_parent"], k = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Q = ["get", "post", "put", "delete"], A = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], S = ["true", "false"], n = {}, he = {
279
+ a: {
280
+ attrs: {
281
+ href: null,
282
+ ping: null,
283
+ type: null,
284
+ media: null,
285
+ target: T,
286
+ hreflang: null
287
+ }
288
+ },
289
+ abbr: n,
290
+ address: n,
291
+ area: {
292
+ attrs: {
293
+ alt: null,
294
+ coords: null,
295
+ href: null,
296
+ target: null,
297
+ ping: null,
298
+ media: null,
299
+ hreflang: null,
300
+ type: null,
301
+ shape: ["default", "rect", "circle", "poly"]
302
+ }
303
+ },
304
+ article: n,
305
+ aside: n,
306
+ audio: {
307
+ attrs: {
308
+ src: null,
309
+ mediagroup: null,
310
+ crossorigin: ["anonymous", "use-credentials"],
311
+ preload: ["none", "metadata", "auto"],
312
+ autoplay: ["autoplay"],
313
+ loop: ["loop"],
314
+ controls: ["controls"]
315
+ }
316
+ },
317
+ b: n,
318
+ base: { attrs: { href: null, target: T } },
319
+ bdi: n,
320
+ bdo: n,
321
+ blockquote: { attrs: { cite: null } },
322
+ body: n,
323
+ br: n,
324
+ button: {
325
+ attrs: {
326
+ form: null,
327
+ formaction: null,
328
+ name: null,
329
+ value: null,
330
+ autofocus: ["autofocus"],
331
+ disabled: ["autofocus"],
332
+ formenctype: A,
333
+ formmethod: Q,
334
+ formnovalidate: ["novalidate"],
335
+ formtarget: T,
336
+ type: ["submit", "reset", "button"]
337
+ }
338
+ },
339
+ canvas: { attrs: { width: null, height: null } },
340
+ caption: n,
341
+ center: n,
342
+ cite: n,
343
+ code: n,
344
+ col: { attrs: { span: null } },
345
+ colgroup: { attrs: { span: null } },
346
+ command: {
347
+ attrs: {
348
+ type: ["command", "checkbox", "radio"],
349
+ label: null,
350
+ icon: null,
351
+ radiogroup: null,
352
+ command: null,
353
+ title: null,
354
+ disabled: ["disabled"],
355
+ checked: ["checked"]
356
+ }
357
+ },
358
+ data: { attrs: { value: null } },
359
+ datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
360
+ datalist: { attrs: { data: null } },
361
+ dd: n,
362
+ del: { attrs: { cite: null, datetime: null } },
363
+ details: { attrs: { open: ["open"] } },
364
+ dfn: n,
365
+ div: n,
366
+ dl: n,
367
+ dt: n,
368
+ em: n,
369
+ embed: { attrs: { src: null, type: null, width: null, height: null } },
370
+ eventsource: { attrs: { src: null } },
371
+ fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
372
+ figcaption: n,
373
+ figure: n,
374
+ footer: n,
375
+ form: {
376
+ attrs: {
377
+ action: null,
378
+ name: null,
379
+ "accept-charset": k,
380
+ autocomplete: ["on", "off"],
381
+ enctype: A,
382
+ method: Q,
383
+ novalidate: ["novalidate"],
384
+ target: T
385
+ }
386
+ },
387
+ h1: n,
388
+ h2: n,
389
+ h3: n,
390
+ h4: n,
391
+ h5: n,
392
+ h6: n,
393
+ head: {
394
+ children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
395
+ },
396
+ header: n,
397
+ hgroup: n,
398
+ hr: n,
399
+ html: {
400
+ attrs: { manifest: null }
401
+ },
402
+ i: n,
403
+ iframe: {
404
+ attrs: {
405
+ src: null,
406
+ srcdoc: null,
407
+ name: null,
408
+ width: null,
409
+ height: null,
410
+ sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
411
+ seamless: ["seamless"]
412
+ }
413
+ },
414
+ img: {
415
+ attrs: {
416
+ alt: null,
417
+ src: null,
418
+ ismap: null,
419
+ usemap: null,
420
+ width: null,
421
+ height: null,
422
+ crossorigin: ["anonymous", "use-credentials"]
423
+ }
424
+ },
425
+ input: {
426
+ attrs: {
427
+ alt: null,
428
+ dirname: null,
429
+ form: null,
430
+ formaction: null,
431
+ height: null,
432
+ list: null,
433
+ max: null,
434
+ maxlength: null,
435
+ min: null,
436
+ name: null,
437
+ pattern: null,
438
+ placeholder: null,
439
+ size: null,
440
+ src: null,
441
+ step: null,
442
+ value: null,
443
+ width: null,
444
+ accept: ["audio/*", "video/*", "image/*"],
445
+ autocomplete: ["on", "off"],
446
+ autofocus: ["autofocus"],
447
+ checked: ["checked"],
448
+ disabled: ["disabled"],
449
+ formenctype: A,
450
+ formmethod: Q,
451
+ formnovalidate: ["novalidate"],
452
+ formtarget: T,
453
+ multiple: ["multiple"],
454
+ readonly: ["readonly"],
455
+ required: ["required"],
456
+ type: [
457
+ "hidden",
458
+ "text",
459
+ "search",
460
+ "tel",
461
+ "url",
462
+ "email",
463
+ "password",
464
+ "datetime",
465
+ "date",
466
+ "month",
467
+ "week",
468
+ "time",
469
+ "datetime-local",
470
+ "number",
471
+ "range",
472
+ "color",
473
+ "checkbox",
474
+ "radio",
475
+ "file",
476
+ "submit",
477
+ "image",
478
+ "reset",
479
+ "button"
480
+ ]
481
+ }
482
+ },
483
+ ins: { attrs: { cite: null, datetime: null } },
484
+ kbd: n,
485
+ keygen: {
486
+ attrs: {
487
+ challenge: null,
488
+ form: null,
489
+ name: null,
490
+ autofocus: ["autofocus"],
491
+ disabled: ["disabled"],
492
+ keytype: ["RSA"]
493
+ }
494
+ },
495
+ label: { attrs: { for: null, form: null } },
496
+ legend: n,
497
+ li: { attrs: { value: null } },
498
+ link: {
499
+ attrs: {
500
+ href: null,
501
+ type: null,
502
+ hreflang: null,
503
+ media: null,
504
+ sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
505
+ }
506
+ },
507
+ map: { attrs: { name: null } },
508
+ mark: n,
509
+ menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
510
+ meta: {
511
+ attrs: {
512
+ content: null,
513
+ charset: k,
514
+ name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
515
+ "http-equiv": ["content-language", "content-type", "default-style", "refresh"]
516
+ }
517
+ },
518
+ meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
519
+ nav: n,
520
+ noscript: n,
521
+ object: {
522
+ attrs: {
523
+ data: null,
524
+ type: null,
525
+ name: null,
526
+ usemap: null,
527
+ form: null,
528
+ width: null,
529
+ height: null,
530
+ typemustmatch: ["typemustmatch"]
531
+ }
532
+ },
533
+ ol: {
534
+ attrs: { reversed: ["reversed"], start: null, type: ["1", "a", "A", "i", "I"] },
535
+ children: ["li", "script", "template", "ul", "ol"]
536
+ },
537
+ optgroup: { attrs: { disabled: ["disabled"], label: null } },
538
+ option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
539
+ output: { attrs: { for: null, form: null, name: null } },
540
+ p: n,
541
+ param: { attrs: { name: null, value: null } },
542
+ pre: n,
543
+ progress: { attrs: { value: null, max: null } },
544
+ q: { attrs: { cite: null } },
545
+ rp: n,
546
+ rt: n,
547
+ ruby: n,
548
+ samp: n,
549
+ script: {
550
+ attrs: {
551
+ type: ["text/javascript"],
552
+ src: null,
553
+ async: ["async"],
554
+ defer: ["defer"],
555
+ charset: k
556
+ }
557
+ },
558
+ section: n,
559
+ select: {
560
+ attrs: {
561
+ form: null,
562
+ name: null,
563
+ size: null,
564
+ autofocus: ["autofocus"],
565
+ disabled: ["disabled"],
566
+ multiple: ["multiple"]
567
+ }
568
+ },
569
+ slot: { attrs: { name: null } },
570
+ small: n,
571
+ source: { attrs: { src: null, type: null, media: null } },
572
+ span: n,
573
+ strong: n,
574
+ style: {
575
+ attrs: {
576
+ type: ["text/css"],
577
+ media: null,
578
+ scoped: null
579
+ }
580
+ },
581
+ sub: n,
582
+ summary: n,
583
+ sup: n,
584
+ table: n,
585
+ tbody: n,
586
+ td: { attrs: { colspan: null, rowspan: null, headers: null } },
587
+ template: n,
588
+ textarea: {
589
+ attrs: {
590
+ dirname: null,
591
+ form: null,
592
+ maxlength: null,
593
+ name: null,
594
+ placeholder: null,
595
+ rows: null,
596
+ cols: null,
597
+ autofocus: ["autofocus"],
598
+ disabled: ["disabled"],
599
+ readonly: ["readonly"],
600
+ required: ["required"],
601
+ wrap: ["soft", "hard"]
602
+ }
603
+ },
604
+ tfoot: n,
605
+ th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
606
+ thead: n,
607
+ time: { attrs: { datetime: null } },
608
+ title: n,
609
+ tr: n,
610
+ track: {
611
+ attrs: {
612
+ src: null,
613
+ label: null,
614
+ default: null,
615
+ kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
616
+ srclang: null
617
+ }
618
+ },
619
+ ul: { children: ["li", "script", "template", "ul", "ol"] },
620
+ var: n,
621
+ video: {
622
+ attrs: {
623
+ src: null,
624
+ poster: null,
625
+ width: null,
626
+ height: null,
627
+ crossorigin: ["anonymous", "use-credentials"],
628
+ preload: ["auto", "metadata", "none"],
629
+ autoplay: ["autoplay"],
630
+ mediagroup: ["movie"],
631
+ muted: ["muted"],
632
+ controls: ["controls"]
633
+ }
634
+ },
635
+ wbr: n
636
+ }, it = {
637
+ accesskey: null,
638
+ class: null,
639
+ contenteditable: S,
640
+ contextmenu: null,
641
+ dir: ["ltr", "rtl", "auto"],
642
+ draggable: ["true", "false", "auto"],
643
+ dropzone: ["copy", "move", "link", "string:", "file:"],
644
+ hidden: ["hidden"],
645
+ id: null,
646
+ inert: ["inert"],
647
+ itemid: null,
648
+ itemprop: null,
649
+ itemref: null,
650
+ itemscope: ["itemscope"],
651
+ itemtype: null,
652
+ lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
653
+ spellcheck: S,
654
+ autocorrect: S,
655
+ autocapitalize: S,
656
+ style: null,
657
+ tabindex: null,
658
+ title: null,
659
+ translate: ["yes", "no"],
660
+ rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
661
+ role: /* @__PURE__ */ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
662
+ "aria-activedescendant": null,
663
+ "aria-atomic": S,
664
+ "aria-autocomplete": ["inline", "list", "both", "none"],
665
+ "aria-busy": S,
666
+ "aria-checked": ["true", "false", "mixed", "undefined"],
667
+ "aria-controls": null,
668
+ "aria-describedby": null,
669
+ "aria-disabled": S,
670
+ "aria-dropeffect": null,
671
+ "aria-expanded": ["true", "false", "undefined"],
672
+ "aria-flowto": null,
673
+ "aria-grabbed": ["true", "false", "undefined"],
674
+ "aria-haspopup": S,
675
+ "aria-hidden": S,
676
+ "aria-invalid": ["true", "false", "grammar", "spelling"],
677
+ "aria-label": null,
678
+ "aria-labelledby": null,
679
+ "aria-level": null,
680
+ "aria-live": ["off", "polite", "assertive"],
681
+ "aria-multiline": S,
682
+ "aria-multiselectable": S,
683
+ "aria-owns": null,
684
+ "aria-posinset": null,
685
+ "aria-pressed": ["true", "false", "mixed", "undefined"],
686
+ "aria-readonly": S,
687
+ "aria-relevant": null,
688
+ "aria-required": S,
689
+ "aria-selected": ["true", "false", "undefined"],
690
+ "aria-setsize": null,
691
+ "aria-sort": ["ascending", "descending", "none", "other"],
692
+ "aria-valuemax": null,
693
+ "aria-valuemin": null,
694
+ "aria-valuenow": null,
695
+ "aria-valuetext": null
696
+ }, pt = /* @__PURE__ */ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((t) => "on" + t);
697
+ for (let t of pt)
698
+ it[t] = null;
699
+ class w {
700
+ constructor(l, r) {
701
+ this.tags = { ...he, ...l }, this.globalAttrs = { ...it, ...r }, this.allTags = Object.keys(this.tags), this.globalAttrNames = Object.keys(this.globalAttrs);
702
+ }
703
+ }
704
+ w.default = /* @__PURE__ */ new w();
705
+ function P(t, l, r = t.length) {
706
+ if (!l)
707
+ return "";
708
+ let a = l.firstChild, e = a && a.getChild("TagName");
709
+ return e ? t.sliceString(e.from, Math.min(e.to, r)) : "";
710
+ }
711
+ function V(t, l = !1) {
712
+ for (; t; t = t.parent)
713
+ if (t.name == "Element")
714
+ if (l)
715
+ l = !1;
716
+ else
717
+ return t;
718
+ return null;
719
+ }
720
+ function dt(t, l, r) {
721
+ return r.tags[P(t, V(l))]?.children || r.allTags;
722
+ }
723
+ function B(t, l) {
724
+ let r = [];
725
+ for (let a = V(l); a && !a.type.isTop; a = V(a.parent)) {
726
+ let e = P(t, a);
727
+ if (e && a.lastChild.name == "CloseTag")
728
+ break;
729
+ e && r.indexOf(e) < 0 && (l.name == "EndTag" || l.from >= a.firstChild.to) && r.push(e);
730
+ }
731
+ return r;
732
+ }
733
+ const ct = /^[:\-\.\w\u00b7-\uffff]*$/;
734
+ function L(t, l, r, a, e) {
735
+ let s = /\s*>/.test(t.sliceDoc(e, e + 5)) ? "" : ">", o = V(r, r.name == "StartTag" || r.name == "TagName");
736
+ return {
737
+ from: a,
738
+ to: e,
739
+ options: dt(t.doc, o, l).map((u) => ({ label: u, type: "type" })).concat(B(t.doc, r).map((u, O) => ({
740
+ label: "/" + u,
741
+ apply: "/" + u + s,
742
+ type: "type",
743
+ boost: 99 - O
744
+ }))),
745
+ validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
746
+ };
747
+ }
748
+ function F(t, l, r, a) {
749
+ let e = /\s*>/.test(t.sliceDoc(a, a + 5)) ? "" : ">";
750
+ return {
751
+ from: r,
752
+ to: a,
753
+ options: B(t.doc, l).map((s, o) => ({ label: s, apply: s + e, type: "type", boost: 99 - o })),
754
+ validFor: ct
755
+ };
756
+ }
757
+ function be(t, l, r, a) {
758
+ let e = [], s = 0;
759
+ for (let o of dt(t.doc, r, l))
760
+ e.push({ label: "<" + o, type: "type" });
761
+ for (let o of B(t.doc, r))
762
+ e.push({ label: "</" + o + ">", type: "type", boost: 99 - s++ });
763
+ return { from: a, to: a, options: e, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
764
+ }
765
+ function xe(t, l, r, a, e) {
766
+ let s = V(r), o = s ? l.tags[P(t.doc, s)] : null, u = o && o.attrs ? Object.keys(o.attrs) : [], O = o && o.globalAttrs === !1 ? u : u.length ? u.concat(l.globalAttrNames) : l.globalAttrNames;
767
+ return {
768
+ from: a,
769
+ to: e,
770
+ options: O.map((m) => ({ label: m, type: "property" })),
771
+ validFor: ct
772
+ };
773
+ }
774
+ function Pe(t, l, r, a, e) {
775
+ var s;
776
+ let o = (s = r.parent) === null || s === void 0 ? void 0 : s.getChild("AttributeName"), u = [], O;
777
+ if (o) {
778
+ let m = t.sliceDoc(o.from, o.to), c = l.globalAttrs[m];
779
+ if (!c) {
780
+ let p = V(r), f = p ? l.tags[P(t.doc, p)] : null;
781
+ c = f?.attrs && f.attrs[m];
782
+ }
783
+ if (c) {
784
+ let p = t.sliceDoc(a, e).toLowerCase(), f = '"', i = '"';
785
+ /^['"]/.test(p) ? (O = p[0] == '"' ? /^[^"]*$/ : /^[^']*$/, f = "", i = t.sliceDoc(e, e + 1) == p[0] ? "" : p[0], p = p.slice(1), a++) : O = /^[^\s<>='"]*$/;
786
+ for (let d of c)
787
+ u.push({ label: d, apply: f + d + i, type: "constant" });
788
+ }
789
+ }
790
+ return { from: a, to: e, options: u, validFor: O };
791
+ }
792
+ function mt(t, l) {
793
+ let { state: r, pos: a } = l, e = J(r).resolveInner(a, -1), s = e.resolve(a);
794
+ for (let o = a, u; s == e && (u = e.childBefore(o)); ) {
795
+ let O = u.lastChild;
796
+ if (!O || !O.type.isError || O.from < O.to)
797
+ break;
798
+ s = e = u, o = O.from;
799
+ }
800
+ return e.name == "TagName" ? e.parent && /CloseTag$/.test(e.parent.name) ? F(r, e, e.from, a) : L(r, t, e, e.from, a) : e.name == "StartTag" || e.name == "IncompleteTag" ? L(r, t, e, a, a) : e.name == "StartCloseTag" || e.name == "IncompleteCloseTag" ? F(r, e, a, a) : e.name == "OpenTag" || e.name == "SelfClosingTag" || e.name == "AttributeName" ? xe(r, t, e, e.name == "AttributeName" ? e.from : a, a) : e.name == "Is" || e.name == "AttributeValue" || e.name == "UnquotedAttributeValue" ? Pe(r, t, e, e.name == "Is" ? a : e.from, a) : l.explicit && (s.name == "Element" || s.name == "Text" || s.name == "Document") ? be(r, t, e, a) : null;
801
+ }
802
+ function qe(t) {
803
+ return mt(w.default, t);
804
+ }
805
+ function Ve(t) {
806
+ let { extraTags: l, extraGlobalAttributes: r } = t, a = r || l ? new w(l, r) : w.default;
807
+ return (e) => mt(a, e);
808
+ }
809
+ const Te = /* @__PURE__ */ R.parser.configure({ top: "SingleExpression" }), ft = [
810
+ {
811
+ tag: "script",
812
+ attrs: (t) => t.type == "text/typescript" || t.lang == "ts",
813
+ parser: _t.parser
814
+ },
815
+ {
816
+ tag: "script",
817
+ attrs: (t) => t.type == "text/babel" || t.type == "text/jsx",
818
+ parser: kt.parser
819
+ },
820
+ {
821
+ tag: "script",
822
+ attrs: (t) => t.type == "text/typescript-jsx",
823
+ parser: Qt.parser
824
+ },
825
+ {
826
+ tag: "script",
827
+ attrs(t) {
828
+ return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type);
829
+ },
830
+ parser: Te
831
+ },
832
+ {
833
+ tag: "script",
834
+ attrs(t) {
835
+ return !t.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type);
836
+ },
837
+ parser: R.parser
838
+ },
839
+ {
840
+ tag: "style",
841
+ attrs(t) {
842
+ return (!t.lang || t.lang == "css") && (!t.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type));
843
+ },
844
+ parser: K.parser
845
+ }
846
+ ], St = /* @__PURE__ */ [
847
+ {
848
+ name: "style",
849
+ parser: /* @__PURE__ */ K.parser.configure({ top: "Styles" })
850
+ }
851
+ ].concat(/* @__PURE__ */ pt.map((t) => ({ name: t, parser: R.parser }))), gt = /* @__PURE__ */ Pt.define({
852
+ name: "html",
853
+ parser: /* @__PURE__ */ ge.configure({
854
+ props: [
855
+ /* @__PURE__ */ wt.add({
856
+ Element(t) {
857
+ let l = /^(\s*)(<\/)?/.exec(t.textAfter);
858
+ return t.node.to <= t.pos + l[0].length ? t.continue() : t.lineIndent(t.node.from) + (l[2] ? 0 : t.unit);
859
+ },
860
+ "OpenTag CloseTag SelfClosingTag"(t) {
861
+ return t.column(t.node.from) + t.unit;
862
+ },
863
+ Document(t) {
864
+ if (t.pos + /\s*/.exec(t.textAfter)[0].length < t.node.to)
865
+ return t.continue();
866
+ let l = null, r;
867
+ for (let a = t.node; ; ) {
868
+ let e = a.lastChild;
869
+ if (!e || e.name != "Element" || e.to != a.to)
870
+ break;
871
+ l = a = e;
872
+ }
873
+ return l && !((r = l.lastChild) && (r.name == "CloseTag" || r.name == "SelfClosingTag")) ? t.lineIndent(l.from) + t.unit : null;
874
+ }
875
+ }),
876
+ /* @__PURE__ */ yt.add({
877
+ Element(t) {
878
+ let l = t.firstChild, r = t.lastChild;
879
+ return !l || l.name != "OpenTag" ? null : { from: l.to, to: r.name == "CloseTag" ? r.from : t.to };
880
+ }
881
+ }),
882
+ /* @__PURE__ */ vt.add({
883
+ "OpenTag CloseTag": (t) => t.getChild("TagName")
884
+ })
885
+ ]
886
+ }),
887
+ languageData: {
888
+ commentTokens: { block: { open: "<!--", close: "-->" } },
889
+ indentOnInput: /^\s*<\/\w+\W$/,
890
+ wordChars: "-_"
891
+ }
892
+ }), v = /* @__PURE__ */ gt.configure({
893
+ wrap: /* @__PURE__ */ Ot(ft, St)
894
+ });
895
+ function _e(t = {}) {
896
+ let l = "", r;
897
+ t.matchClosingTags === !1 && (l = "noMatch"), t.selfClosingTags === !0 && (l = (l ? l + " " : "") + "selfClosing"), (t.nestedLanguages && t.nestedLanguages.length || t.nestedAttributes && t.nestedAttributes.length) && (r = Ot((t.nestedLanguages || []).concat(ft), (t.nestedAttributes || []).concat(St)));
898
+ let a = r ? gt.configure({ wrap: r, dialect: l }) : l ? v.configure({ dialect: l }) : v;
899
+ return new Vt(a, [
900
+ v.data.of({ autocomplete: Ve(t) }),
901
+ t.autoCloseTags !== !1 ? we : [],
902
+ At().support,
903
+ qt().support
904
+ ]);
905
+ }
906
+ const H = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")), we = /* @__PURE__ */ xt.inputHandler.of((t, l, r, a, e) => {
907
+ if (t.composing || t.state.readOnly || l != r || a != ">" && a != "/" || !v.isActiveAt(t.state, l, -1))
908
+ return !1;
909
+ let s = e(), { state: o } = s, u = o.changeByRange((O) => {
910
+ var m, c, p;
911
+ let f = o.doc.sliceString(O.from - 1, O.to) == a, { head: i } = O, d = J(o).resolveInner(i, -1), g;
912
+ if (f && a == ">" && d.name == "EndTag") {
913
+ let b = d.parent;
914
+ if (((c = (m = b.parent) === null || m === void 0 ? void 0 : m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (g = P(o.doc, b.parent, i)) && !H.has(g)) {
915
+ let x = i + (o.doc.sliceString(i, i + 1) === ">" ? 1 : 0), y = `</${g}>`;
916
+ return { range: O, changes: { from: i, to: x, insert: y } };
917
+ }
918
+ } else if (f && a == "/" && d.name == "IncompleteCloseTag") {
919
+ let b = d.parent;
920
+ if (d.from == i - 2 && ((p = b.lastChild) === null || p === void 0 ? void 0 : p.name) != "CloseTag" && (g = P(o.doc, b, i)) && !H.has(g)) {
921
+ let x = i + (o.doc.sliceString(i, i + 1) === ">" ? 1 : 0), y = `${g}>`;
922
+ return {
923
+ range: Tt.cursor(i + y.length, -1),
924
+ changes: { from: i, to: x, insert: y }
925
+ };
926
+ }
927
+ }
928
+ return { range: O };
929
+ });
930
+ return u.changes.empty ? !1 : (t.dispatch([
931
+ s,
932
+ o.update(u, {
933
+ userEvent: "input.complete",
934
+ scrollIntoView: !0
935
+ })
936
+ ]), !0);
937
+ });
938
+ export {
939
+ we as autoCloseTags,
940
+ _e as html,
941
+ qe as htmlCompletionSource,
942
+ Ve as htmlCompletionSourceWith,
943
+ v as htmlLanguage
944
+ };