@aiao/code-editor-vue 0.0.7 → 0.0.8

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-BMiCCEB1-Bhkem_yf.js +305 -0
  37. package/dist/index-BNuasEBW-Djq6JMRj.js +94 -0
  38. package/dist/index-Bg1KDWyt-DaNGMguF.js +290 -0
  39. package/dist/{index-D6_k5ZgA.js → index-BuVm7ZG6-BZLKs8s6.js} +106 -106
  40. package/dist/index-BvS1cnHq-DM0hbFEQ.js +613 -0
  41. package/dist/index-C44L0DmY-BmmnwVzM.js +138 -0
  42. package/dist/index-C71CZfUx-CXN80Lrt.js +247 -0
  43. package/dist/{index-BluJGN_u.js → index-CQ6JWNwi-BkIQd0CX.js} +131 -130
  44. package/dist/index-CpRVx97--qRVKhpm0.js +342 -0
  45. package/dist/index-CqvQj6d--Cks52f8R.js +270 -0
  46. package/dist/index-CrbQBmWq-CH-PcW1J.js +157 -0
  47. package/dist/index-CzovO10m-BGtdggaq.js +301 -0
  48. package/dist/index-D0BZOY-S-DP1N-_JY.js +101 -0
  49. package/dist/{index-DcMCsmYb.js → index-D0svJS59-B1ELwWap.js} +79 -78
  50. package/dist/index-D93XVMi1-BA3BTMNq.js +136 -0
  51. package/dist/index-DEB5VK0f-DmPMy-wS.js +252 -0
  52. package/dist/index-Dp8osI_J-_47iGH9z.js +960 -0
  53. package/dist/index-Ds4AioqO-C6aO_ISw.js +1917 -0
  54. package/dist/{index-DBgKi_NE.js → index-Dy-OpkyQ-BBMsyHBR.js} +18 -18
  55. package/dist/index-Dyi9rNIT-DTaMAKyY.js +391 -0
  56. package/dist/index-ZJkjD9tT-CsDrbsME.js +74 -0
  57. package/dist/index-qH2lMs0G-VT1Nd_LF.js +944 -0
  58. package/dist/index-srIksFxX-jkv39JhL.js +59 -0
  59. package/dist/index-wcsJ2mym.js +31598 -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 +8 -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
@@ -1,10 +1,10 @@
1
- import { P as L, o as M, p as $, D as E, q as y, T as S, I as j } from "./index-3d5LPf68.js";
2
- class v {
1
+ import { d as $, N as L, l as M, $ as E, f as w, V as S, H as G } from "./index-wcsJ2mym.js";
2
+ class P {
3
3
  /**
4
4
  @internal
5
5
  */
6
- constructor(t, e, s, i, h, r, n, o, a, u = 0, f) {
7
- this.p = t, this.stack = e, this.state = s, this.reducePos = i, this.pos = h, this.score = r, this.buffer = n, this.bufferBase = o, this.curContext = a, this.lookAhead = u, this.parent = f;
6
+ constructor(t, e, s, i, h, r, n, o, a, u = 0, c) {
7
+ this.p = t, this.stack = e, this.state = s, this.reducePos = i, this.pos = h, this.score = r, this.buffer = n, this.bufferBase = o, this.curContext = a, this.lookAhead = u, this.parent = c;
8
8
  }
9
9
  /**
10
10
  @internal
@@ -18,7 +18,7 @@ class v {
18
18
  */
19
19
  static start(t, e, s = 0) {
20
20
  let i = t.parser.context;
21
- return new v(t, [], e, s, s, 0, [], 0, i ? new N(i, i.start) : null, 0, null);
21
+ return new P(t, [], e, s, s, 0, [], 0, i ? new N(i, i.start) : null, 0, null);
22
22
  }
23
23
  /**
24
24
  The stack's current [context](#lr.ContextTracker) value, if
@@ -50,20 +50,20 @@ class v {
50
50
  }
51
51
  let o = this.stack.length - (s - 1) * 3 - (t & 262144 ? 6 : 0), a = o ? this.stack[o - 2] : this.p.ranges[0].from, u = this.reducePos - a;
52
52
  u >= 2e3 && !(!((e = this.p.parser.nodeSet.types[i]) === null || e === void 0) && e.isAnonymous) && (a == this.p.lastBigReductionStart ? (this.p.bigReductionCount++, this.p.lastBigReductionSize = u) : this.p.lastBigReductionSize < u && (this.p.bigReductionCount = 1, this.p.lastBigReductionStart = a, this.p.lastBigReductionSize = u));
53
- let f = o ? this.stack[o - 1] : 0, p = this.bufferBase + this.buffer.length - f;
53
+ let c = o ? this.stack[o - 1] : 0, p = this.bufferBase + this.buffer.length - c;
54
54
  if (i < h.minRepeatTerm || t & 131072) {
55
- let c = h.stateFlag(
55
+ let f = h.stateFlag(
56
56
  this.state,
57
57
  1
58
58
  /* StateFlag.Skipped */
59
59
  ) ? this.pos : this.reducePos;
60
- this.storeNode(i, a, c, p + 4, !0);
60
+ this.storeNode(i, a, f, p + 4, !0);
61
61
  }
62
62
  if (t & 262144)
63
63
  this.state = this.stack[o];
64
64
  else {
65
- let c = this.stack[o - 3];
66
- this.state = h.getGoto(c, i, !0);
65
+ let f = this.stack[o - 3];
66
+ this.state = h.getGoto(f, i, !0);
67
67
  }
68
68
  for (; this.stack.length > o; )
69
69
  this.stack.pop();
@@ -156,7 +156,7 @@ class v {
156
156
  let s = t.buffer.slice(e), i = t.bufferBase + e;
157
157
  for (; t && i == t.bufferBase; )
158
158
  t = t.parent;
159
- return new v(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, s, i, this.curContext, this.lookAhead, t);
159
+ return new P(this.p, this.stack.slice(), this.state, this.reducePos, this.pos, this.score, s, i, this.curContext, this.lookAhead, t);
160
160
  }
161
161
  // Try to recover from an error by 'deleting' (ignoring) one token.
162
162
  /**
@@ -173,7 +173,7 @@ class v {
173
173
  given token when it applies.
174
174
  */
175
175
  canShift(t) {
176
- for (let e = new G(this); ; ) {
176
+ for (let e = new j(this); ; ) {
177
177
  let s = this.p.parser.stateSlot(
178
178
  e.state,
179
179
  4
@@ -376,7 +376,7 @@ class N {
376
376
  this.tracker = t, this.context = e, this.hash = t.strict ? t.hash(e) : 0;
377
377
  }
378
378
  }
379
- class G {
379
+ class j {
380
380
  constructor(t) {
381
381
  this.start = t, this.state = t.state, this.stack = t.stack, this.base = this.stack.length;
382
382
  }
@@ -439,12 +439,12 @@ function x(l, t = Uint16Array) {
439
439
  }
440
440
  return e;
441
441
  }
442
- class P {
442
+ class v {
443
443
  constructor() {
444
444
  this.start = -1, this.value = -1, this.end = -1, this.extended = -1, this.lookAhead = 0, this.mask = 0, this.context = 0;
445
445
  }
446
446
  }
447
- const R = new P();
447
+ const R = new v();
448
448
  class U {
449
449
  /**
450
450
  @internal
@@ -597,7 +597,7 @@ class m {
597
597
  }
598
598
  token(t, e) {
599
599
  let { parser: s } = e.p;
600
- F(this.data, t, e, this.id, s.data, s.tokenPrecTable);
600
+ O(this.data, t, e, this.id, s.data, s.tokenPrecTable);
601
601
  }
602
602
  }
603
603
  m.prototype.contextual = m.prototype.fallback = m.prototype.extend = !1;
@@ -609,7 +609,7 @@ class H {
609
609
  let s = t.pos, i = 0;
610
610
  for (; ; ) {
611
611
  let h = t.next < 0, r = t.resolveOffset(1, 1);
612
- if (F(this.data, t, e, 0, this.data, this.precTable), t.token.value > -1)
612
+ if (O(this.data, t, e, 0, this.data, this.precTable), t.token.value > -1)
613
613
  break;
614
614
  if (this.elseToken == null)
615
615
  return;
@@ -621,7 +621,7 @@ class H {
621
621
  }
622
622
  }
623
623
  H.prototype.contextual = m.prototype.fallback = m.prototype.extend = !1;
624
- class Y {
624
+ class Z {
625
625
  /**
626
626
  Create a tokenizer. The first argument is the function that,
627
627
  given an input stream, scans for the types of tokens it
@@ -633,29 +633,29 @@ class Y {
633
633
  this.token = t, this.contextual = !!e.contextual, this.fallback = !!e.fallback, this.extend = !!e.extend;
634
634
  }
635
635
  }
636
- function F(l, t, e, s, i, h) {
636
+ function O(l, t, e, s, i, h) {
637
637
  let r = 0, n = 1 << s, { dialect: o } = e.p.parser;
638
638
  t: for (; (n & l[r]) != 0; ) {
639
639
  let a = l[r + 1];
640
- for (let c = r + 3; c < a; c += 2)
641
- if ((l[c + 1] & n) > 0) {
642
- let d = l[c];
643
- if (o.allows(d) && (t.token.value == -1 || t.token.value == d || W(d, t.token.value, i, h))) {
640
+ for (let f = r + 3; f < a; f += 2)
641
+ if ((l[f + 1] & n) > 0) {
642
+ let d = l[f];
643
+ if (o.allows(d) && (t.token.value == -1 || t.token.value == d || V(d, t.token.value, i, h))) {
644
644
  t.acceptToken(d);
645
645
  break;
646
646
  }
647
647
  }
648
- let u = t.next, f = 0, p = l[r + 2];
649
- if (t.next < 0 && p > f && l[a + p * 3 - 3] == 65535) {
648
+ let u = t.next, c = 0, p = l[r + 2];
649
+ if (t.next < 0 && p > c && l[a + p * 3 - 3] == 65535) {
650
650
  r = l[a + p * 3 - 1];
651
651
  continue t;
652
652
  }
653
- for (; f < p; ) {
654
- let c = f + p >> 1, d = a + c + (c << 1), b = l[d], O = l[d + 1] || 65536;
653
+ for (; c < p; ) {
654
+ let f = c + p >> 1, d = a + f + (f << 1), b = l[d], F = l[d + 1] || 65536;
655
655
  if (u < b)
656
- p = c;
657
- else if (u >= O)
658
- f = c + 1;
656
+ p = f;
657
+ else if (u >= F)
658
+ c = f + 1;
659
659
  else {
660
660
  r = l[d + 2], t.advance();
661
661
  continue t;
@@ -670,14 +670,14 @@ function z(l, t, e) {
670
670
  return s - t;
671
671
  return -1;
672
672
  }
673
- function W(l, t, e, s) {
673
+ function V(l, t, e, s) {
674
674
  let i = z(e, s, t);
675
675
  return i < 0 || z(e, s, l) < i;
676
676
  }
677
- const g = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
678
- let T = null;
677
+ const k = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
678
+ let C = null;
679
679
  function I(l, t, e) {
680
- let s = l.cursor(j.IncludeAnonymous);
680
+ let s = l.cursor(G.IncludeAnonymous);
681
681
  for (s.moveTo(t); ; )
682
682
  if (!(e < 0 ? s.childBefore(t) : s.childAfter(t)))
683
683
  for (; ; ) {
@@ -697,7 +697,7 @@ function I(l, t, e) {
697
697
  return e < 0 ? 0 : l.length;
698
698
  }
699
699
  }
700
- class q {
700
+ class W {
701
701
  constructor(t, e) {
702
702
  this.fragments = t, this.nodeSet = e, this.i = 0, this.fragment = null, this.safeFrom = -1, this.safeTo = -1, this.trees = [], this.start = [], this.index = [], this.nextFragment();
703
703
  }
@@ -736,7 +736,7 @@ class q {
736
736
  return null;
737
737
  let n = r + h.length;
738
738
  if (n <= this.safeTo) {
739
- let o = h.prop(y.lookAhead);
739
+ let o = h.prop(w.lookAhead);
740
740
  if (!o || n + o < this.fragment.to)
741
741
  return h;
742
742
  }
@@ -747,9 +747,9 @@ class q {
747
747
  }
748
748
  }
749
749
  }
750
- class J {
750
+ class q {
751
751
  constructor(t, e) {
752
- this.stream = e, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = t.tokenizers.map((s) => new P());
752
+ this.stream = e, this.tokens = [], this.mainToken = null, this.actions = [], this.tokens = t.tokenizers.map((s) => new v());
753
753
  }
754
754
  getActions(t) {
755
755
  let e = 0, s = null, { parser: i } = t.p, { tokenizers: h } = i, r = i.stateSlot(
@@ -760,21 +760,21 @@ class J {
760
760
  for (let a = 0; a < h.length; a++) {
761
761
  if ((1 << a & r) == 0)
762
762
  continue;
763
- let u = h[a], f = this.tokens[a];
764
- if (!(s && !u.fallback) && ((u.contextual || f.start != t.pos || f.mask != r || f.context != n) && (this.updateCachedToken(f, u, t), f.mask = r, f.context = n), f.lookAhead > f.end + 25 && (o = Math.max(f.lookAhead, o)), f.value != 0)) {
763
+ let u = h[a], c = this.tokens[a];
764
+ if (!(s && !u.fallback) && ((u.contextual || c.start != t.pos || c.mask != r || c.context != n) && (this.updateCachedToken(c, u, t), c.mask = r, c.context = n), c.lookAhead > c.end + 25 && (o = Math.max(c.lookAhead, o)), c.value != 0)) {
765
765
  let p = e;
766
- if (f.extended > -1 && (e = this.addActions(t, f.extended, f.end, e)), e = this.addActions(t, f.value, f.end, e), !u.extend && (s = f, e > p))
766
+ if (c.extended > -1 && (e = this.addActions(t, c.extended, c.end, e)), e = this.addActions(t, c.value, c.end, e), !u.extend && (s = c, e > p))
767
767
  break;
768
768
  }
769
769
  }
770
770
  for (; this.actions.length > e; )
771
771
  this.actions.pop();
772
- return o && t.setLookAhead(o), !s && t.pos == this.stream.end && (s = new P(), s.value = t.p.parser.eofTerm, s.start = s.end = t.pos, e = this.addActions(t, s.value, s.end, e)), this.mainToken = s, this.actions;
772
+ return o && t.setLookAhead(o), !s && t.pos == this.stream.end && (s = new v(), s.value = t.p.parser.eofTerm, s.start = s.end = t.pos, e = this.addActions(t, s.value, s.end, e)), this.mainToken = s, this.actions;
773
773
  }
774
774
  getMainToken(t) {
775
775
  if (this.mainToken)
776
776
  return this.mainToken;
777
- let e = new P(), { pos: s, p: i } = t;
777
+ let e = new v(), { pos: s, p: i } = t;
778
778
  return e.start = s, e.end = Math.min(s + 1, i.stream.end), e.value = s == i.stream.end ? i.parser.eofTerm : 0, e;
779
779
  }
780
780
  updateCachedToken(t, e, s) {
@@ -808,21 +808,21 @@ class J {
808
808
  ); ; a += 3) {
809
809
  if (n[a] == 65535)
810
810
  if (n[a + 1] == 1)
811
- a = k(n, a + 2);
811
+ a = g(n, a + 2);
812
812
  else {
813
- i == 0 && n[a + 1] == 2 && (i = this.putAction(k(n, a + 2), e, s, i));
813
+ i == 0 && n[a + 1] == 2 && (i = this.putAction(g(n, a + 2), e, s, i));
814
814
  break;
815
815
  }
816
- n[a] == e && (i = this.putAction(k(n, a + 1), e, s, i));
816
+ n[a] == e && (i = this.putAction(g(n, a + 1), e, s, i));
817
817
  }
818
818
  return i;
819
819
  }
820
820
  }
821
- class K {
821
+ class J {
822
822
  constructor(t, e, s, i) {
823
- this.parser = t, this.input = e, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new U(e, i), this.tokens = new J(t, this.stream), this.topTerm = t.top[1];
823
+ this.parser = t, this.input = e, this.ranges = i, this.recovering = 0, this.nextStackID = 9812, this.minStackPos = 0, this.reused = [], this.stoppedAt = null, this.lastBigReductionStart = -1, this.lastBigReductionSize = 0, this.bigReductionCount = 0, this.stream = new U(e, i), this.tokens = new q(t, this.stream), this.topTerm = t.top[1];
824
824
  let { from: h } = i[0];
825
- this.stacks = [v.start(this, t.top[0], h)], this.fragments = s.length && this.stream.end - h > t.bufferLength * 4 ? new q(s, t.nodeSet) : null;
825
+ this.stacks = [P.start(this, t.top[0], h)], this.fragments = s.length && this.stream.end - h > t.bufferLength * 4 ? new W(s, t.nodeSet) : null;
826
826
  }
827
827
  get parsedPos() {
828
828
  return this.minStackPos;
@@ -859,17 +859,17 @@ class K {
859
859
  }
860
860
  }
861
861
  if (!s.length) {
862
- let r = i && V(i);
862
+ let r = i && Q(i);
863
863
  if (r)
864
- return g && console.log("Finish with " + this.stackID(r)), this.stackToTree(r);
864
+ return k && console.log("Finish with " + this.stackID(r)), this.stackToTree(r);
865
865
  if (this.parser.strict)
866
- throw g && i && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + e);
866
+ throw k && i && console.log("Stuck with token " + (this.tokens.mainToken ? this.parser.getName(this.tokens.mainToken.value) : "none")), new SyntaxError("No parse at " + e);
867
867
  this.recovering || (this.recovering = 5);
868
868
  }
869
869
  if (this.recovering && i) {
870
870
  let r = this.stoppedAt != null && i[0].pos > this.stoppedAt ? i[0] : this.runRecovery(i, h, s);
871
871
  if (r)
872
- return g && console.log("Force-finish " + this.stackID(r)), this.stackToTree(r.forceAll());
872
+ return k && console.log("Force-finish " + this.stackID(r)), this.stackToTree(r.forceAll());
873
873
  }
874
874
  if (this.recovering) {
875
875
  let r = this.recovering == 1 ? 1 : this.recovering * 3;
@@ -912,20 +912,20 @@ class K {
912
912
  // given, stacks split off by ambiguous operations will be pushed to
913
913
  // `split`, or added to `stacks` if they move `pos` forward.
914
914
  advanceStack(t, e, s) {
915
- let i = t.pos, { parser: h } = this, r = g ? this.stackID(t) + " -> " : "";
915
+ let i = t.pos, { parser: h } = this, r = k ? this.stackID(t) + " -> " : "";
916
916
  if (this.stoppedAt != null && i > this.stoppedAt)
917
917
  return t.forceReduce() ? t : null;
918
918
  if (this.fragments) {
919
919
  let a = t.curContext && t.curContext.tracker.strict, u = a ? t.curContext.hash : 0;
920
- for (let f = this.fragments.nodeAt(i); f; ) {
921
- let p = this.parser.nodeSet.types[f.type.id] == f.type ? h.getGoto(t.state, f.type.id) : -1;
922
- if (p > -1 && f.length && (!a || (f.prop(y.contextHash) || 0) == u))
923
- return t.useNode(f, p), g && console.log(r + this.stackID(t) + ` (via reuse of ${h.getName(f.type.id)})`), !0;
924
- if (!(f instanceof S) || f.children.length == 0 || f.positions[0] > 0)
920
+ for (let c = this.fragments.nodeAt(i); c; ) {
921
+ let p = this.parser.nodeSet.types[c.type.id] == c.type ? h.getGoto(t.state, c.type.id) : -1;
922
+ if (p > -1 && c.length && (!a || (c.prop(w.contextHash) || 0) == u))
923
+ return t.useNode(c, p), k && console.log(r + this.stackID(t) + ` (via reuse of ${h.getName(c.type.id)})`), !0;
924
+ if (!(c instanceof S) || c.children.length == 0 || c.positions[0] > 0)
925
925
  break;
926
- let c = f.children[0];
927
- if (c instanceof S && f.positions[0] == 0)
928
- f = c;
926
+ let f = c.children[0];
927
+ if (f instanceof S && c.positions[0] == 0)
928
+ c = f;
929
929
  else
930
930
  break;
931
931
  }
@@ -936,7 +936,7 @@ class K {
936
936
  /* ParseState.DefaultReduce */
937
937
  );
938
938
  if (n > 0)
939
- return t.reduce(n), g && console.log(r + this.stackID(t) + ` (via always-reduce ${h.getName(
939
+ return t.reduce(n), k && console.log(r + this.stackID(t) + ` (via always-reduce ${h.getName(
940
940
  n & 65535
941
941
  /* Action.ValueMask */
942
942
  )})`), !0;
@@ -945,11 +945,11 @@ class K {
945
945
  ;
946
946
  let o = this.tokens.getActions(t);
947
947
  for (let a = 0; a < o.length; ) {
948
- let u = o[a++], f = o[a++], p = o[a++], c = a == o.length || !s, d = c ? t : t.split(), b = this.tokens.mainToken;
949
- if (d.apply(u, f, b ? b.start : d.pos, p), g && console.log(r + this.stackID(d) + ` (via ${(u & 65536) == 0 ? "shift" : `reduce of ${h.getName(
948
+ let u = o[a++], c = o[a++], p = o[a++], f = a == o.length || !s, d = f ? t : t.split(), b = this.tokens.mainToken;
949
+ if (d.apply(u, c, b ? b.start : d.pos, p), k && console.log(r + this.stackID(d) + ` (via ${(u & 65536) == 0 ? "shift" : `reduce of ${h.getName(
950
950
  u & 65535
951
951
  /* Action.ValueMask */
952
- )}`} for ${h.getName(f)} @ ${i}${d == t ? "" : ", split"})`), c)
952
+ )}`} for ${h.getName(c)} @ ${i}${d == t ? "" : ", split"})`), f)
953
953
  return !0;
954
954
  d.pos > i ? e.push(d) : s.push(d);
955
955
  }
@@ -964,21 +964,21 @@ class K {
964
964
  if (!this.advanceStack(t, null, null))
965
965
  return !1;
966
966
  if (t.pos > s)
967
- return D(t, e), !0;
967
+ return B(t, e), !0;
968
968
  }
969
969
  }
970
970
  runRecovery(t, e, s) {
971
971
  let i = null, h = !1;
972
972
  for (let r = 0; r < t.length; r++) {
973
- let n = t[r], o = e[r << 1], a = e[(r << 1) + 1], u = g ? this.stackID(n) + " -> " : "";
974
- if (n.deadEnd && (h || (h = !0, n.restart(), g && console.log(u + this.stackID(n) + " (restarted)"), this.advanceFully(n, s))))
973
+ let n = t[r], o = e[r << 1], a = e[(r << 1) + 1], u = k ? this.stackID(n) + " -> " : "";
974
+ if (n.deadEnd && (h || (h = !0, n.restart(), k && console.log(u + this.stackID(n) + " (restarted)"), this.advanceFully(n, s))))
975
975
  continue;
976
- let f = n.split(), p = u;
977
- for (let c = 0; c < 10 && f.forceReduce() && (g && console.log(p + this.stackID(f) + " (via force-reduce)"), !this.advanceFully(f, s)); c++)
978
- g && (p = this.stackID(f) + " -> ");
979
- for (let c of n.recoverByInsert(o))
980
- g && console.log(u + this.stackID(c) + " (via recover-insert)"), this.advanceFully(c, s);
981
- this.stream.end > n.pos ? (a == n.pos && (a++, o = 0), n.recoverByDelete(o, a), g && console.log(u + this.stackID(n) + ` (via recover-delete ${this.parser.getName(o)})`), D(n, s)) : (!i || i.score < n.score) && (i = n);
976
+ let c = n.split(), p = u;
977
+ for (let f = 0; f < 10 && c.forceReduce() && (k && console.log(p + this.stackID(c) + " (via force-reduce)"), !this.advanceFully(c, s)); f++)
978
+ k && (p = this.stackID(c) + " -> ");
979
+ for (let f of n.recoverByInsert(o))
980
+ k && console.log(u + this.stackID(f) + " (via recover-insert)"), this.advanceFully(f, s);
981
+ this.stream.end > n.pos ? (a == n.pos && (a++, o = 0), n.recoverByDelete(o, a), k && console.log(u + this.stackID(n) + ` (via recover-delete ${this.parser.getName(o)})`), B(n, s)) : (!i || i.score < n.score) && (i = n);
982
982
  }
983
983
  return i;
984
984
  }
@@ -996,11 +996,11 @@ class K {
996
996
  });
997
997
  }
998
998
  stackID(t) {
999
- let e = (T || (T = /* @__PURE__ */ new WeakMap())).get(t);
1000
- return e || T.set(t, e = String.fromCodePoint(this.nextStackID++)), e + t;
999
+ let e = (C || (C = /* @__PURE__ */ new WeakMap())).get(t);
1000
+ return e || C.set(t, e = String.fromCodePoint(this.nextStackID++)), e + t;
1001
1001
  }
1002
1002
  }
1003
- function D(l, t) {
1003
+ function B(l, t) {
1004
1004
  for (let e = 0; e < t.length; e++) {
1005
1005
  let s = t[e];
1006
1006
  if (s.pos == l.pos && s.sameState(l)) {
@@ -1010,7 +1010,7 @@ function D(l, t) {
1010
1010
  }
1011
1011
  t.push(l);
1012
1012
  }
1013
- class Q {
1013
+ class K {
1014
1014
  constructor(t, e, s) {
1015
1015
  this.source = t, this.flags = e, this.disabled = s;
1016
1016
  }
@@ -1018,16 +1018,16 @@ class Q {
1018
1018
  return !this.disabled || this.disabled[t] == 0;
1019
1019
  }
1020
1020
  }
1021
- const C = (l) => l;
1022
- class Z {
1021
+ const y = (l) => l;
1022
+ class X {
1023
1023
  /**
1024
1024
  Define a context tracker.
1025
1025
  */
1026
1026
  constructor(t) {
1027
- this.start = t.start, this.shift = t.shift || C, this.reduce = t.reduce || C, this.reuse = t.reuse || C, this.hash = t.hash || (() => 0), this.strict = t.strict !== !1;
1027
+ this.start = t.start, this.shift = t.shift || y, this.reduce = t.reduce || y, this.reuse = t.reuse || y, this.hash = t.hash || (() => 0), this.strict = t.strict !== !1;
1028
1028
  }
1029
1029
  }
1030
- class w extends L {
1030
+ class T extends $ {
1031
1031
  /**
1032
1032
  @internal
1033
1033
  */
@@ -1047,20 +1047,20 @@ class w extends L {
1047
1047
  if (t.nodeProps)
1048
1048
  for (let n of t.nodeProps) {
1049
1049
  let o = n[0];
1050
- typeof o == "string" && (o = y[o]);
1050
+ typeof o == "string" && (o = w[o]);
1051
1051
  for (let a = 1; a < n.length; ) {
1052
1052
  let u = n[a++];
1053
1053
  if (u >= 0)
1054
1054
  h(u, o, n[a++]);
1055
1055
  else {
1056
- let f = n[a + -u];
1056
+ let c = n[a + -u];
1057
1057
  for (let p = -u; p > 0; p--)
1058
- h(n[a++], o, f);
1058
+ h(n[a++], o, c);
1059
1059
  a++;
1060
1060
  }
1061
1061
  }
1062
1062
  }
1063
- this.nodeSet = new M(e.map((n, o) => $.define({
1063
+ this.nodeSet = new L(e.map((n, o) => M.define({
1064
1064
  name: o >= this.minRepeatTerm ? void 0 : n,
1065
1065
  id: o,
1066
1066
  props: i[o],
@@ -1072,10 +1072,10 @@ class w extends L {
1072
1072
  this.context = t.context, this.specializerSpecs = t.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
1073
1073
  for (let n = 0; n < this.specializerSpecs.length; n++)
1074
1074
  this.specialized[n] = this.specializerSpecs[n].term;
1075
- this.specializers = this.specializerSpecs.map(B), this.states = x(t.states, Uint32Array), this.data = x(t.stateData), this.goto = x(t.goto), this.maxTerm = t.maxTerm, this.tokenizers = t.tokenizers.map((n) => typeof n == "number" ? new m(r, n) : n), this.topRules = t.topRules, this.dialects = t.dialects || {}, this.dynamicPrecedences = t.dynamicPrecedences || null, this.tokenPrecTable = t.tokenPrec, this.termNames = t.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
1075
+ this.specializers = this.specializerSpecs.map(D), this.states = x(t.states, Uint32Array), this.data = x(t.stateData), this.goto = x(t.goto), this.maxTerm = t.maxTerm, this.tokenizers = t.tokenizers.map((n) => typeof n == "number" ? new m(r, n) : n), this.topRules = t.topRules, this.dialects = t.dialects || {}, this.dynamicPrecedences = t.dynamicPrecedences || null, this.tokenPrecTable = t.tokenPrec, this.termNames = t.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
1076
1076
  }
1077
1077
  createParse(t, e, s) {
1078
- let i = new K(this, t, e, s);
1078
+ let i = new J(this, t, e, s);
1079
1079
  for (let h of this.wrappers)
1080
1080
  i = h(i, t, e, s);
1081
1081
  return i;
@@ -1111,14 +1111,14 @@ class w extends L {
1111
1111
  ), r; ; h += 3) {
1112
1112
  if ((r = s[h]) == 65535)
1113
1113
  if (s[h + 1] == 1)
1114
- r = s[h = k(s, h + 2)];
1114
+ r = s[h = g(s, h + 2)];
1115
1115
  else {
1116
1116
  if (s[h + 1] == 2)
1117
- return k(s, h + 2);
1117
+ return g(s, h + 2);
1118
1118
  break;
1119
1119
  }
1120
1120
  if (r == e || r == 0)
1121
- return k(s, h + 1);
1121
+ return g(s, h + 1);
1122
1122
  }
1123
1123
  return 0;
1124
1124
  }
@@ -1160,10 +1160,10 @@ class w extends L {
1160
1160
  ); i == null; h += 3) {
1161
1161
  if (this.data[h] == 65535)
1162
1162
  if (this.data[h + 1] == 1)
1163
- h = k(this.data, h + 2);
1163
+ h = g(this.data, h + 2);
1164
1164
  else
1165
1165
  break;
1166
- i = e(k(this.data, h + 1));
1166
+ i = e(g(this.data, h + 1));
1167
1167
  }
1168
1168
  return i;
1169
1169
  }
@@ -1180,7 +1180,7 @@ class w extends L {
1180
1180
  ); ; s += 3) {
1181
1181
  if (this.data[s] == 65535)
1182
1182
  if (this.data[s + 1] == 1)
1183
- s = k(this.data, s + 2);
1183
+ s = g(this.data, s + 2);
1184
1184
  else
1185
1185
  break;
1186
1186
  if ((this.data[s + 2] & 1) == 0) {
@@ -1196,7 +1196,7 @@ class w extends L {
1196
1196
  kept from the original parser.
1197
1197
  */
1198
1198
  configure(t) {
1199
- let e = Object.assign(Object.create(w.prototype), this);
1199
+ let e = Object.assign(Object.create(T.prototype), this);
1200
1200
  if (t.props && (e.nodeSet = this.nodeSet.extend(...t.props)), t.top) {
1201
1201
  let s = this.topRules[t.top];
1202
1202
  if (!s)
@@ -1211,7 +1211,7 @@ class w extends L {
1211
1211
  if (!h)
1212
1212
  return s;
1213
1213
  let r = Object.assign(Object.assign({}, s), { external: h.to });
1214
- return e.specializers[i] = B(r), r;
1214
+ return e.specializers[i] = D(r), r;
1215
1215
  })), t.contextTracker && (e.context = t.contextTracker), t.dialect && (e.dialect = this.parseDialect(t.dialect)), t.strict != null && (e.strict = t.strict), t.wrap && (e.wrappers = e.wrappers.concat(t.wrap)), t.bufferLength != null && (e.bufferLength = t.bufferLength), e;
1216
1216
  }
1217
1217
  /**
@@ -1265,20 +1265,20 @@ class w extends L {
1265
1265
  if (!s[h])
1266
1266
  for (let r = this.dialects[e[h]], n; (n = this.data[r++]) != 65535; )
1267
1267
  (i || (i = new Uint8Array(this.maxTerm + 1)))[n] = 1;
1268
- return new Q(t, s, i);
1268
+ return new K(t, s, i);
1269
1269
  }
1270
1270
  /**
1271
1271
  Used by the output of the parser generator. Not available to
1272
1272
  user code. @hide
1273
1273
  */
1274
1274
  static deserialize(t) {
1275
- return new w(t);
1275
+ return new T(t);
1276
1276
  }
1277
1277
  }
1278
- function k(l, t) {
1278
+ function g(l, t) {
1279
1279
  return l[t] | l[t + 1] << 16;
1280
1280
  }
1281
- function V(l) {
1281
+ function Q(l) {
1282
1282
  let t = null;
1283
1283
  for (let e of l) {
1284
1284
  let s = e.p.stoppedAt;
@@ -1290,7 +1290,7 @@ function V(l) {
1290
1290
  }
1291
1291
  return t;
1292
1292
  }
1293
- function B(l) {
1293
+ function D(l) {
1294
1294
  if (l.external) {
1295
1295
  let t = l.extend ? 1 : 0;
1296
1296
  return (e, s) => l.external(e, s) << 1 | t;
@@ -1298,8 +1298,8 @@ function B(l) {
1298
1298
  return l.get;
1299
1299
  }
1300
1300
  export {
1301
- Z as C,
1302
- Y as E,
1303
- w as L,
1304
- H as a
1301
+ H,
1302
+ Z as Y,
1303
+ X as Z,
1304
+ T as w
1305
1305
  };