@prismicio/cli 0.0.1 → 0.0.2-alpha.xru-fix-npx-install-warnings.2

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 (91) hide show
  1. package/dist/acorn-CCr8VihG.js +3019 -0
  2. package/dist/acorn-CCr8VihG.js.map +1 -0
  3. package/dist/angular-B-6Sdz-P.js +2737 -0
  4. package/dist/angular-B-6Sdz-P.js.map +1 -0
  5. package/dist/babel-DSSzU6fH.js +7175 -0
  6. package/dist/babel-DSSzU6fH.js.map +1 -0
  7. package/dist/cli-NVpkXC9F.js +150015 -0
  8. package/dist/cli-NVpkXC9F.js.map +1 -0
  9. package/dist/cli.js +3 -144
  10. package/dist/cli.js.map +1 -1
  11. package/dist/estree-DHLJIae3.js +4486 -0
  12. package/dist/estree-DHLJIae3.js.map +1 -0
  13. package/dist/flow-DVd4L7fO.js +27426 -0
  14. package/dist/flow-DVd4L7fO.js.map +1 -0
  15. package/dist/glimmer-ffe_QHPj.js +2696 -0
  16. package/dist/glimmer-ffe_QHPj.js.map +1 -0
  17. package/dist/graphql-Cx6A4xbM.js +1241 -0
  18. package/dist/graphql-Cx6A4xbM.js.map +1 -0
  19. package/dist/html-Cp0WeaDh.js +2794 -0
  20. package/dist/html-Cp0WeaDh.js.map +1 -0
  21. package/dist/index-CAoPVwid.js +397 -0
  22. package/dist/index-CAoPVwid.js.map +1 -0
  23. package/dist/index-CqzxeUkd.js +835 -0
  24. package/dist/index-CqzxeUkd.js.map +1 -0
  25. package/dist/index-D3Z7xY3-.js +323 -0
  26. package/dist/index-D3Z7xY3-.js.map +1 -0
  27. package/dist/index-D80unpFN.js +3003 -0
  28. package/dist/index-D80unpFN.js.map +1 -0
  29. package/dist/index-DA8FlEll.js +35 -0
  30. package/dist/index-DA8FlEll.js.map +1 -0
  31. package/dist/index-DVTRroeB.js +189 -0
  32. package/dist/index-DVTRroeB.js.map +1 -0
  33. package/dist/index.js +2 -2
  34. package/dist/markdown-B2nQpAgl.js +3380 -0
  35. package/dist/markdown-B2nQpAgl.js.map +1 -0
  36. package/dist/meriyah-oMgd23nK.js +2640 -0
  37. package/dist/meriyah-oMgd23nK.js.map +1 -0
  38. package/dist/multipart-parser-jkRZKgYV.js +354 -0
  39. package/dist/multipart-parser-jkRZKgYV.js.map +1 -0
  40. package/dist/postcss-4okJ6bzF.js +4943 -0
  41. package/dist/postcss-4okJ6bzF.js.map +1 -0
  42. package/dist/typescript-eHDX_fq8.js +12974 -0
  43. package/dist/typescript-eHDX_fq8.js.map +1 -0
  44. package/dist/yaml-CoPGVzvb.js +4165 -0
  45. package/dist/yaml-CoPGVzvb.js.map +1 -0
  46. package/package.json +16 -17
  47. package/src/utils/sentry.ts +2 -0
  48. package/dist/_node_modules/meow/build/dependencies.js +0 -9040
  49. package/dist/_node_modules/meow/build/dependencies.js.map +0 -1
  50. package/dist/_node_modules/meow/build/index.js +0 -80
  51. package/dist/_node_modules/meow/build/index.js.map +0 -1
  52. package/dist/_node_modules/meow/build/options.js +0 -86
  53. package/dist/_node_modules/meow/build/options.js.map +0 -1
  54. package/dist/_node_modules/meow/build/parser.js +0 -61
  55. package/dist/_node_modules/meow/build/parser.js.map +0 -1
  56. package/dist/_node_modules/meow/build/utils.js +0 -8
  57. package/dist/_node_modules/meow/build/utils.js.map +0 -1
  58. package/dist/_node_modules/meow/build/validate.js +0 -102
  59. package/dist/_node_modules/meow/build/validate.js.map +0 -1
  60. package/dist/commands/init.js +0 -34
  61. package/dist/commands/init.js.map +0 -1
  62. package/dist/commands/sync.js +0 -32
  63. package/dist/commands/sync.js.map +0 -1
  64. package/dist/core/auth.js +0 -72
  65. package/dist/core/auth.js.map +0 -1
  66. package/dist/core/customType.js +0 -43
  67. package/dist/core/customType.js.map +0 -1
  68. package/dist/core/framework.js +0 -128
  69. package/dist/core/framework.js.map +0 -1
  70. package/dist/core/project.js +0 -92
  71. package/dist/core/project.js.map +0 -1
  72. package/dist/core/repository.js +0 -33
  73. package/dist/core/repository.js.map +0 -1
  74. package/dist/core/slices.js +0 -47
  75. package/dist/core/slices.js.map +0 -1
  76. package/dist/core/version.js +0 -27
  77. package/dist/core/version.js.map +0 -1
  78. package/dist/packages/cli/package.json.js +0 -63
  79. package/dist/packages/cli/package.json.js.map +0 -1
  80. package/dist/utils/error.js +0 -18
  81. package/dist/utils/error.js.map +0 -1
  82. package/dist/utils/listr.js +0 -12
  83. package/dist/utils/listr.js.map +0 -1
  84. package/dist/utils/output.js +0 -34
  85. package/dist/utils/output.js.map +0 -1
  86. package/dist/utils/package.js +0 -20
  87. package/dist/utils/package.js.map +0 -1
  88. package/dist/utils/sentry.js +0 -62
  89. package/dist/utils/sentry.js.map +0 -1
  90. package/dist/utils/telemetry.js +0 -42
  91. package/dist/utils/telemetry.js.map +0 -1
@@ -0,0 +1,3019 @@
1
+ var wi = Object.create;
2
+ var Ve = Object.defineProperty;
3
+ var Pi = Object.getOwnPropertyDescriptor;
4
+ var Ii = Object.getOwnPropertyNames;
5
+ var Ni = Object.getPrototypeOf, Li = Object.prototype.hasOwnProperty;
6
+ var nt = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Ri = (e, t) => {
7
+ for (var i in t) Ve(e, i, { get: t[i], enumerable: true });
8
+ }, Vi = (e, t, i, s) => {
9
+ if (t && typeof t == "object" || typeof t == "function") for (let r of Ii(t)) !Li.call(e, r) && r !== i && Ve(e, r, { get: () => t[r], enumerable: !(s = Pi(t, r)) || s.enumerable });
10
+ return e;
11
+ };
12
+ var ot = (e, t, i) => (i = e != null ? wi(Ni(e)) : {}, Vi(Ve(i, "default", { value: e, enumerable: true }), e));
13
+ var zt = nt((fr, Wt) => {
14
+ Wt.exports = {};
15
+ });
16
+ var Qe = nt((dr, ze) => {
17
+ var bs = zt(), Ss = /^[\da-fA-F]+$/, _s = /^\d+$/, Qt = /* @__PURE__ */ new WeakMap();
18
+ function Yt(e) {
19
+ e = e.Parser.acorn || e;
20
+ let t = Qt.get(e);
21
+ if (!t) {
22
+ let i = e.tokTypes, s = e.TokContext, r = e.TokenType, n = new s("<tag", false), o = new s("</tag", false), p = new s("<tag>...</tag>", true, true), u = { tc_oTag: n, tc_cTag: o, tc_expr: p }, c = { jsxName: new r("jsxName"), jsxText: new r("jsxText", { beforeExpr: true }), jsxTagStart: new r("jsxTagStart", { startsExpr: true }), jsxTagEnd: new r("jsxTagEnd") };
23
+ c.jsxTagStart.updateContext = function() {
24
+ this.context.push(p), this.context.push(n), this.exprAllowed = false;
25
+ }, c.jsxTagEnd.updateContext = function(d) {
26
+ let b = this.context.pop();
27
+ b === n && d === i.slash || b === o ? (this.context.pop(), this.exprAllowed = this.curContext() === p) : this.exprAllowed = true;
28
+ }, t = { tokContexts: u, tokTypes: c }, Qt.set(e, t);
29
+ }
30
+ return t;
31
+ }
32
+ function pe(e) {
33
+ if (!e) return e;
34
+ if (e.type === "JSXIdentifier") return e.name;
35
+ if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name;
36
+ if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property);
37
+ }
38
+ ze.exports = function(e) {
39
+ return e = e || {}, function(t) {
40
+ return Ts({ allowNamespaces: e.allowNamespaces !== false, allowNamespacedObjects: !!e.allowNamespacedObjects }, t);
41
+ };
42
+ };
43
+ Object.defineProperty(ze.exports, "tokTypes", { get: function() {
44
+ return Yt(void 0).tokTypes;
45
+ }, configurable: true, enumerable: true });
46
+ function Ts(e, t) {
47
+ let i = t.acorn || void 0, s = Yt(i), r = i.tokTypes, n = s.tokTypes, o = i.tokContexts, p = s.tokContexts.tc_oTag, u = s.tokContexts.tc_cTag, c = s.tokContexts.tc_expr, d = i.isNewLine, b = i.isIdentifierStart, C = i.isIdentifierChar;
48
+ return class extends t {
49
+ static get acornJsx() {
50
+ return s;
51
+ }
52
+ jsx_readToken() {
53
+ let h = "", m = this.pos;
54
+ for (; ; ) {
55
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
56
+ let x = this.input.charCodeAt(this.pos);
57
+ switch (x) {
58
+ case 60:
59
+ case 123:
60
+ return this.pos === this.start ? x === 60 && this.exprAllowed ? (++this.pos, this.finishToken(n.jsxTagStart)) : this.getTokenFromCode(x) : (h += this.input.slice(m, this.pos), this.finishToken(n.jsxText, h));
61
+ case 38:
62
+ h += this.input.slice(m, this.pos), h += this.jsx_readEntity(), m = this.pos;
63
+ break;
64
+ case 62:
65
+ case 125:
66
+ this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (x === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.input[this.pos] + '"}`?');
67
+ default:
68
+ d(x) ? (h += this.input.slice(m, this.pos), h += this.jsx_readNewLine(true), m = this.pos) : ++this.pos;
69
+ }
70
+ }
71
+ }
72
+ jsx_readNewLine(h) {
73
+ let m = this.input.charCodeAt(this.pos), x;
74
+ return ++this.pos, m === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, x = h ? `
75
+ ` : `\r
76
+ `) : x = String.fromCharCode(m), this.options.locations && (++this.curLine, this.lineStart = this.pos), x;
77
+ }
78
+ jsx_readString(h) {
79
+ let m = "", x = ++this.pos;
80
+ for (; ; ) {
81
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
82
+ let g = this.input.charCodeAt(this.pos);
83
+ if (g === h) break;
84
+ g === 38 ? (m += this.input.slice(x, this.pos), m += this.jsx_readEntity(), x = this.pos) : d(g) ? (m += this.input.slice(x, this.pos), m += this.jsx_readNewLine(false), x = this.pos) : ++this.pos;
85
+ }
86
+ return m += this.input.slice(x, this.pos++), this.finishToken(r.string, m);
87
+ }
88
+ jsx_readEntity() {
89
+ let h = "", m = 0, x, g = this.input[this.pos];
90
+ g !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
91
+ let P = ++this.pos;
92
+ for (; this.pos < this.input.length && m++ < 10; ) {
93
+ if (g = this.input[this.pos++], g === ";") {
94
+ h[0] === "#" ? h[1] === "x" ? (h = h.substr(2), Ss.test(h) && (x = String.fromCharCode(parseInt(h, 16)))) : (h = h.substr(1), _s.test(h) && (x = String.fromCharCode(parseInt(h, 10)))) : x = bs[h];
95
+ break;
96
+ }
97
+ h += g;
98
+ }
99
+ return x || (this.pos = P, "&");
100
+ }
101
+ jsx_readWord() {
102
+ let h, m = this.pos;
103
+ do
104
+ h = this.input.charCodeAt(++this.pos);
105
+ while (C(h) || h === 45);
106
+ return this.finishToken(n.jsxName, this.input.slice(m, this.pos));
107
+ }
108
+ jsx_parseIdentifier() {
109
+ let h = this.startNode();
110
+ return this.type === n.jsxName ? h.name = this.value : this.type.keyword ? h.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(h, "JSXIdentifier");
111
+ }
112
+ jsx_parseNamespacedName() {
113
+ let h = this.start, m = this.startLoc, x = this.jsx_parseIdentifier();
114
+ if (!e.allowNamespaces || !this.eat(r.colon)) return x;
115
+ var g = this.startNodeAt(h, m);
116
+ return g.namespace = x, g.name = this.jsx_parseIdentifier(), this.finishNode(g, "JSXNamespacedName");
117
+ }
118
+ jsx_parseElementName() {
119
+ if (this.type === n.jsxTagEnd) return "";
120
+ let h = this.start, m = this.startLoc, x = this.jsx_parseNamespacedName();
121
+ for (this.type === r.dot && x.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(r.dot); ) {
122
+ let g = this.startNodeAt(h, m);
123
+ g.object = x, g.property = this.jsx_parseIdentifier(), x = this.finishNode(g, "JSXMemberExpression");
124
+ }
125
+ return x;
126
+ }
127
+ jsx_parseAttributeValue() {
128
+ switch (this.type) {
129
+ case r.braceL:
130
+ let h = this.jsx_parseExpressionContainer();
131
+ return h.expression.type === "JSXEmptyExpression" && this.raise(h.start, "JSX attributes must only be assigned a non-empty expression"), h;
132
+ case n.jsxTagStart:
133
+ case r.string:
134
+ return this.parseExprAtom();
135
+ default:
136
+ this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
137
+ }
138
+ }
139
+ jsx_parseEmptyExpression() {
140
+ let h = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
141
+ return this.finishNodeAt(h, "JSXEmptyExpression", this.start, this.startLoc);
142
+ }
143
+ jsx_parseExpressionContainer() {
144
+ let h = this.startNode();
145
+ return this.next(), h.expression = this.type === r.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(r.braceR), this.finishNode(h, "JSXExpressionContainer");
146
+ }
147
+ jsx_parseAttribute() {
148
+ let h = this.startNode();
149
+ return this.eat(r.braceL) ? (this.expect(r.ellipsis), h.argument = this.parseMaybeAssign(), this.expect(r.braceR), this.finishNode(h, "JSXSpreadAttribute")) : (h.name = this.jsx_parseNamespacedName(), h.value = this.eat(r.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(h, "JSXAttribute"));
150
+ }
151
+ jsx_parseOpeningElementAt(h, m) {
152
+ let x = this.startNodeAt(h, m);
153
+ x.attributes = [];
154
+ let g = this.jsx_parseElementName();
155
+ for (g && (x.name = g); this.type !== r.slash && this.type !== n.jsxTagEnd; ) x.attributes.push(this.jsx_parseAttribute());
156
+ return x.selfClosing = this.eat(r.slash), this.expect(n.jsxTagEnd), this.finishNode(x, g ? "JSXOpeningElement" : "JSXOpeningFragment");
157
+ }
158
+ jsx_parseClosingElementAt(h, m) {
159
+ let x = this.startNodeAt(h, m), g = this.jsx_parseElementName();
160
+ return g && (x.name = g), this.expect(n.jsxTagEnd), this.finishNode(x, g ? "JSXClosingElement" : "JSXClosingFragment");
161
+ }
162
+ jsx_parseElementAt(h, m) {
163
+ let x = this.startNodeAt(h, m), g = [], P = this.jsx_parseOpeningElementAt(h, m), fe = null;
164
+ if (!P.selfClosing) {
165
+ e: for (; ; ) switch (this.type) {
166
+ case n.jsxTagStart:
167
+ if (h = this.start, m = this.startLoc, this.next(), this.eat(r.slash)) {
168
+ fe = this.jsx_parseClosingElementAt(h, m);
169
+ break e;
170
+ }
171
+ g.push(this.jsx_parseElementAt(h, m));
172
+ break;
173
+ case n.jsxText:
174
+ g.push(this.parseExprAtom());
175
+ break;
176
+ case r.braceL:
177
+ g.push(this.jsx_parseExpressionContainer());
178
+ break;
179
+ default:
180
+ this.unexpected();
181
+ }
182
+ pe(fe.name) !== pe(P.name) && this.raise(fe.start, "Expected corresponding JSX closing tag for <" + pe(P.name) + ">");
183
+ }
184
+ let Re = P.name ? "Element" : "Fragment";
185
+ return x["opening" + Re] = P, x["closing" + Re] = fe, x.children = g, this.type === r.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(x, "JSX" + Re);
186
+ }
187
+ jsx_parseText() {
188
+ let h = this.parseLiteral(this.value);
189
+ return h.type = "JSXText", h;
190
+ }
191
+ jsx_parseElement() {
192
+ let h = this.start, m = this.startLoc;
193
+ return this.next(), this.jsx_parseElementAt(h, m);
194
+ }
195
+ parseExprAtom(h) {
196
+ return this.type === n.jsxText ? this.jsx_parseText() : this.type === n.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(h);
197
+ }
198
+ readToken(h) {
199
+ let m = this.curContext();
200
+ if (m === c) return this.jsx_readToken();
201
+ if (m === p || m === u) {
202
+ if (b(h)) return this.jsx_readWord();
203
+ if (h == 62) return ++this.pos, this.finishToken(n.jsxTagEnd);
204
+ if ((h === 34 || h === 39) && m == p) return this.jsx_readString(h);
205
+ }
206
+ return h === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(n.jsxTagStart)) : super.readToken(h);
207
+ }
208
+ updateContext(h) {
209
+ if (this.type == r.braceL) {
210
+ var m = this.curContext();
211
+ m == p ? this.context.push(o.b_expr) : m == c ? this.context.push(o.b_tmpl) : super.updateContext(h), this.exprAllowed = true;
212
+ } else if (this.type === r.slash && h === n.jsxTagStart) this.context.length -= 2, this.context.push(u), this.exprAllowed = false;
213
+ else return super.updateContext(h);
214
+ }
215
+ };
216
+ }
217
+ });
218
+ var ki = {};
219
+ Ri(ki, { parsers: () => cr });
220
+ var Oi = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], ft = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Bi = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", dt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Oe = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, Be = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Di = { 5: Be, "5module": Be + " export import", 6: Be + " const class extends export import super" }, Mi = /^in(stanceof)?$/, Fi = new RegExp("[" + dt + "]"), ji = new RegExp("[" + dt + Bi + "]");
221
+ function Me(e, t) {
222
+ for (var i = 65536, s = 0; s < t.length; s += 2) {
223
+ if (i += t[s], i > e) return false;
224
+ if (i += t[s + 1], i >= e) return true;
225
+ }
226
+ return false;
227
+ }
228
+ function F(e, t) {
229
+ return e < 65 ? e === 36 : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && Fi.test(String.fromCharCode(e)) : t === false ? false : Me(e, ft);
230
+ }
231
+ function K(e, t) {
232
+ return e < 48 ? e === 36 : e < 58 ? true : e < 65 ? false : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && ji.test(String.fromCharCode(e)) : t === false ? false : Me(e, ft) || Me(e, Oi);
233
+ }
234
+ var _ = function(t, i) {
235
+ i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
236
+ };
237
+ function R(e, t) {
238
+ return new _(e, { beforeExpr: true, binop: t });
239
+ }
240
+ var V = { beforeExpr: true }, I = { startsExpr: true }, Ge = {};
241
+ function S(e, t) {
242
+ return t === void 0 && (t = {}), t.keyword = e, Ge[e] = new _(e, t);
243
+ }
244
+ var a = { num: new _("num", I), regexp: new _("regexp", I), string: new _("string", I), name: new _("name", I), privateId: new _("privateId", I), eof: new _("eof"), bracketL: new _("[", { beforeExpr: true, startsExpr: true }), bracketR: new _("]"), braceL: new _("{", { beforeExpr: true, startsExpr: true }), braceR: new _("}"), parenL: new _("(", { beforeExpr: true, startsExpr: true }), parenR: new _(")"), comma: new _(",", V), semi: new _(";", V), colon: new _(":", V), dot: new _("."), question: new _("?", V), questionDot: new _("?."), arrow: new _("=>", V), template: new _("template"), invalidTemplate: new _("invalidTemplate"), ellipsis: new _("...", V), backQuote: new _("`", I), dollarBraceL: new _("${", { beforeExpr: true, startsExpr: true }), eq: new _("=", { beforeExpr: true, isAssign: true }), assign: new _("_=", { beforeExpr: true, isAssign: true }), incDec: new _("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new _("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: R("||", 1), logicalAND: R("&&", 2), bitwiseOR: R("|", 3), bitwiseXOR: R("^", 4), bitwiseAND: R("&", 5), equality: R("==/!=/===/!==", 6), relational: R("</>/<=/>=", 7), bitShift: R("<</>>/>>>", 8), plusMin: new _("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: R("%", 10), star: R("*", 10), slash: R("/", 10), starstar: new _("**", { beforeExpr: true }), coalesce: R("??", 1), _break: S("break"), _case: S("case", V), _catch: S("catch"), _continue: S("continue"), _debugger: S("debugger"), _default: S("default", V), _do: S("do", { isLoop: true, beforeExpr: true }), _else: S("else", V), _finally: S("finally"), _for: S("for", { isLoop: true }), _function: S("function", I), _if: S("if"), _return: S("return", V), _switch: S("switch"), _throw: S("throw", V), _try: S("try"), _var: S("var"), _const: S("const"), _while: S("while", { isLoop: true }), _with: S("with"), _new: S("new", { beforeExpr: true, startsExpr: true }), _this: S("this", I), _super: S("super", I), _class: S("class", I), _extends: S("extends", V), _export: S("export"), _import: S("import", I), _null: S("null", I), _true: S("true", I), _false: S("false", I), _in: S("in", { beforeExpr: true, binop: 7 }), _instanceof: S("instanceof", { beforeExpr: true, binop: 7 }), _typeof: S("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: S("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: S("delete", { beforeExpr: true, prefix: true, startsExpr: true }) }, N = /\r\n?|\n|\u2028|\u2029/, Ui = new RegExp(N.source, "g");
245
+ function Q(e) {
246
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
247
+ }
248
+ function mt(e, t, i) {
249
+ i === void 0 && (i = e.length);
250
+ for (var s = t; s < i; s++) {
251
+ var r = e.charCodeAt(s);
252
+ if (Q(r)) return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
253
+ }
254
+ return -1;
255
+ }
256
+ var xt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, A = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, yt = Object.prototype, Gi = yt.hasOwnProperty, qi = yt.toString, Y = Object.hasOwn || function(e, t) {
257
+ return Gi.call(e, t);
258
+ }, ut = Array.isArray || function(e) {
259
+ return qi.call(e) === "[object Array]";
260
+ }, pt = /* @__PURE__ */ Object.create(null);
261
+ function H(e) {
262
+ return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
263
+ }
264
+ function G(e) {
265
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
266
+ }
267
+ var Ji = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, ae = function(t, i) {
268
+ this.line = t, this.column = i;
269
+ };
270
+ ae.prototype.offset = function(t) {
271
+ return new ae(this.line, this.column + t);
272
+ };
273
+ var ve = function(t, i, s) {
274
+ this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
275
+ };
276
+ function gt(e, t) {
277
+ for (var i = 1, s = 0; ; ) {
278
+ var r = mt(e, s, t);
279
+ if (r < 0) return new ae(i, t - s);
280
+ ++i, s = r;
281
+ }
282
+ }
283
+ var Fe = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: false, allowImportExportEverywhere: false, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: false, checkPrivateFields: true, locations: false, onToken: null, onComment: null, ranges: false, program: null, sourceFile: null, directSourceFile: null, preserveParens: false }, ht = false;
284
+ function Hi(e) {
285
+ var t = {};
286
+ for (var i in Fe) t[i] = e && Y(e, i) ? e[i] : Fe[i];
287
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ht && typeof console == "object" && console.warn && (ht = true, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
288
+ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), ut(t.onToken)) {
289
+ var s = t.onToken;
290
+ t.onToken = function(r) {
291
+ return s.push(r);
292
+ };
293
+ }
294
+ return ut(t.onComment) && (t.onComment = Ki(t, t.onComment)), t;
295
+ }
296
+ function Ki(e, t) {
297
+ return function(i, s, r, n, o, p) {
298
+ var u = { type: i ? "Block" : "Line", value: s, start: r, end: n };
299
+ e.locations && (u.loc = new ve(this, o, p)), e.ranges && (u.range = [r, n]), t.push(u);
300
+ };
301
+ }
302
+ var ne = 1, $ = 2, qe = 4, vt = 8, Je = 16, bt = 32, be = 64, St = 128, W = 256, oe = 512, Se = ne | $ | W;
303
+ function He(e, t) {
304
+ return $ | (e ? qe : 0) | (t ? vt : 0);
305
+ }
306
+ var me = 0, Ke = 1, J = 2, _t = 3, Tt = 4, Ct = 5, E = function(t, i, s) {
307
+ this.options = t = Hi(t), this.sourceFile = t.sourceFile, this.keywords = H(Di[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
308
+ var r = "";
309
+ t.allowReserved !== true && (r = Oe[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H(r);
310
+ var n = (r ? r + " " : "") + Oe.strict;
311
+ this.reservedWordsStrict = H(n), this.reservedWordsStrictBind = H(n + " " + Oe.strictBind), this.input = String(i), this.containsEsc = false, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
312
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(N).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(ne), this.regexpState = null, this.privateNameStack = [];
313
+ }, j = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
314
+ E.prototype.parse = function() {
315
+ var t = this.options.program || this.startNode();
316
+ return this.nextToken(), this.parseTopLevel(t);
317
+ };
318
+ j.inFunction.get = function() {
319
+ return (this.currentVarScope().flags & $) > 0;
320
+ };
321
+ j.inGenerator.get = function() {
322
+ return (this.currentVarScope().flags & vt) > 0;
323
+ };
324
+ j.inAsync.get = function() {
325
+ return (this.currentVarScope().flags & qe) > 0;
326
+ };
327
+ j.canAwait.get = function() {
328
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
329
+ var t = this.scopeStack[e], i = t.flags;
330
+ if (i & (W | oe)) return false;
331
+ if (i & $) return (i & qe) > 0;
332
+ }
333
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
334
+ };
335
+ j.allowSuper.get = function() {
336
+ var e = this.currentThisScope(), t = e.flags;
337
+ return (t & be) > 0 || this.options.allowSuperOutsideMethod;
338
+ };
339
+ j.allowDirectSuper.get = function() {
340
+ return (this.currentThisScope().flags & St) > 0;
341
+ };
342
+ j.treatFunctionsAsVar.get = function() {
343
+ return this.treatFunctionsAsVarInScope(this.currentScope());
344
+ };
345
+ j.allowNewDotTarget.get = function() {
346
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
347
+ var t = this.scopeStack[e], i = t.flags;
348
+ if (i & (W | oe) || i & $ && !(i & Je)) return true;
349
+ }
350
+ return false;
351
+ };
352
+ j.inClassStaticBlock.get = function() {
353
+ return (this.currentVarScope().flags & W) > 0;
354
+ };
355
+ E.extend = function() {
356
+ for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
357
+ for (var s = this, r = 0; r < t.length; r++) s = t[r](s);
358
+ return s;
359
+ };
360
+ E.parse = function(t, i) {
361
+ return new this(i, t).parse();
362
+ };
363
+ E.parseExpressionAt = function(t, i, s) {
364
+ var r = new this(s, t, i);
365
+ return r.nextToken(), r.parseExpression();
366
+ };
367
+ E.tokenizer = function(t, i) {
368
+ return new this(i, t);
369
+ };
370
+ Object.defineProperties(E.prototype, j);
371
+ var k = E.prototype, Xi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
372
+ k.strictDirective = function(e) {
373
+ if (this.options.ecmaVersion < 5) return false;
374
+ for (; ; ) {
375
+ A.lastIndex = e, e += A.exec(this.input)[0].length;
376
+ var t = Xi.exec(this.input.slice(e));
377
+ if (!t) return false;
378
+ if ((t[1] || t[2]) === "use strict") {
379
+ A.lastIndex = e + t[0].length;
380
+ var i = A.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
381
+ return r === ";" || r === "}" || N.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
382
+ }
383
+ e += t[0].length, A.lastIndex = e, e += A.exec(this.input)[0].length, this.input[e] === ";" && e++;
384
+ }
385
+ };
386
+ k.eat = function(e) {
387
+ return this.type === e ? (this.next(), true) : false;
388
+ };
389
+ k.isContextual = function(e) {
390
+ return this.type === a.name && this.value === e && !this.containsEsc;
391
+ };
392
+ k.eatContextual = function(e) {
393
+ return this.isContextual(e) ? (this.next(), true) : false;
394
+ };
395
+ k.expectContextual = function(e) {
396
+ this.eatContextual(e) || this.unexpected();
397
+ };
398
+ k.canInsertSemicolon = function() {
399
+ return this.type === a.eof || this.type === a.braceR || N.test(this.input.slice(this.lastTokEnd, this.start));
400
+ };
401
+ k.insertSemicolon = function() {
402
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
403
+ };
404
+ k.semicolon = function() {
405
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
406
+ };
407
+ k.afterTrailingComma = function(e, t) {
408
+ if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), true;
409
+ };
410
+ k.expect = function(e) {
411
+ this.eat(e) || this.unexpected();
412
+ };
413
+ k.unexpected = function(e) {
414
+ this.raise(e ?? this.start, "Unexpected token");
415
+ };
416
+ var _e = function() {
417
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
418
+ };
419
+ k.checkPatternErrors = function(e, t) {
420
+ if (e) {
421
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
422
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
423
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
424
+ }
425
+ };
426
+ k.checkExpressionErrors = function(e, t) {
427
+ if (!e) return false;
428
+ var i = e.shorthandAssign, s = e.doubleProto;
429
+ if (!t) return i >= 0 || s >= 0;
430
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
431
+ };
432
+ k.checkYieldAwaitInDefaultParams = function() {
433
+ this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
434
+ };
435
+ k.isSimpleAssignTarget = function(e) {
436
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
437
+ };
438
+ var f = E.prototype;
439
+ f.parseTopLevel = function(e) {
440
+ var t = /* @__PURE__ */ Object.create(null);
441
+ for (e.body || (e.body = []); this.type !== a.eof; ) {
442
+ var i = this.parseStatement(null, true, t);
443
+ e.body.push(i);
444
+ }
445
+ if (this.inModule) for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
446
+ var n = r[s];
447
+ this.raiseRecoverable(this.undefinedExports[n].start, "Export '" + n + "' is not defined");
448
+ }
449
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
450
+ };
451
+ var Xe = { kind: "loop" }, Wi = { kind: "switch" };
452
+ f.isLet = function(e) {
453
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
454
+ A.lastIndex = this.pos;
455
+ var t = A.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
456
+ if (s === 91 || s === 92) return true;
457
+ if (e) return false;
458
+ if (s === 123 || s > 55295 && s < 56320) return true;
459
+ if (F(s, true)) {
460
+ for (var r = i + 1; K(s = this.input.charCodeAt(r), true); ) ++r;
461
+ if (s === 92 || s > 55295 && s < 56320) return true;
462
+ var n = this.input.slice(i, r);
463
+ if (!Mi.test(n)) return true;
464
+ }
465
+ return false;
466
+ };
467
+ f.isAsyncFunction = function() {
468
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
469
+ A.lastIndex = this.pos;
470
+ var e = A.exec(this.input), t = this.pos + e[0].length, i;
471
+ return !N.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(K(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
472
+ };
473
+ f.isUsingKeyword = function(e, t) {
474
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return false;
475
+ A.lastIndex = this.pos;
476
+ var i = A.exec(this.input), s = this.pos + i[0].length;
477
+ if (N.test(this.input.slice(this.pos, s))) return false;
478
+ if (e) {
479
+ var r = s + 5, n;
480
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || K(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320) return false;
481
+ A.lastIndex = r;
482
+ var o = A.exec(this.input);
483
+ if (o && N.test(this.input.slice(r, r + o[0].length))) return false;
484
+ }
485
+ if (t) {
486
+ var p = s + 2, u;
487
+ if (this.input.slice(s, p) === "of" && (p === this.input.length || !K(u = this.input.charCodeAt(p)) && !(u > 55295 && u < 56320))) return false;
488
+ }
489
+ var c = this.input.charCodeAt(s);
490
+ return F(c, true) || c === 92;
491
+ };
492
+ f.isAwaitUsing = function(e) {
493
+ return this.isUsingKeyword(true, e);
494
+ };
495
+ f.isUsing = function(e) {
496
+ return this.isUsingKeyword(false, e);
497
+ };
498
+ f.parseStatement = function(e, t, i) {
499
+ var s = this.type, r = this.startNode(), n;
500
+ switch (this.isLet(e) && (s = a._var, n = "let"), s) {
501
+ case a._break:
502
+ case a._continue:
503
+ return this.parseBreakContinueStatement(r, s.keyword);
504
+ case a._debugger:
505
+ return this.parseDebuggerStatement(r);
506
+ case a._do:
507
+ return this.parseDoStatement(r);
508
+ case a._for:
509
+ return this.parseForStatement(r);
510
+ case a._function:
511
+ return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(r, false, !e);
512
+ case a._class:
513
+ return e && this.unexpected(), this.parseClass(r, true);
514
+ case a._if:
515
+ return this.parseIfStatement(r);
516
+ case a._return:
517
+ return this.parseReturnStatement(r);
518
+ case a._switch:
519
+ return this.parseSwitchStatement(r);
520
+ case a._throw:
521
+ return this.parseThrowStatement(r);
522
+ case a._try:
523
+ return this.parseTryStatement(r);
524
+ case a._const:
525
+ case a._var:
526
+ return n = n || this.value, e && n !== "var" && this.unexpected(), this.parseVarStatement(r, n);
527
+ case a._while:
528
+ return this.parseWhileStatement(r);
529
+ case a._with:
530
+ return this.parseWithStatement(r);
531
+ case a.braceL:
532
+ return this.parseBlock(true, r);
533
+ case a.semi:
534
+ return this.parseEmptyStatement(r);
535
+ case a._export:
536
+ case a._import:
537
+ if (this.options.ecmaVersion > 10 && s === a._import) {
538
+ A.lastIndex = this.pos;
539
+ var o = A.exec(this.input), p = this.pos + o[0].length, u = this.input.charCodeAt(p);
540
+ if (u === 40 || u === 46) return this.parseExpressionStatement(r, this.parseExpression());
541
+ }
542
+ return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), s === a._import ? this.parseImport(r) : this.parseExport(r, i);
543
+ default:
544
+ if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, true, !e);
545
+ var c = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
546
+ if (c) return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, false, c), this.semicolon(), this.finishNode(r, "VariableDeclaration");
547
+ var d = this.value, b = this.parseExpression();
548
+ return s === a.name && b.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, d, b, e) : this.parseExpressionStatement(r, b);
549
+ }
550
+ };
551
+ f.parseBreakContinueStatement = function(e, t) {
552
+ var i = t === "break";
553
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
554
+ for (var s = 0; s < this.labels.length; ++s) {
555
+ var r = this.labels[s];
556
+ if ((e.label == null || r.name === e.label.name) && (r.kind != null && (i || r.kind === "loop") || e.label && i)) break;
557
+ }
558
+ return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
559
+ };
560
+ f.parseDebuggerStatement = function(e) {
561
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
562
+ };
563
+ f.parseDoStatement = function(e) {
564
+ return this.next(), this.labels.push(Xe), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(a._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(a.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
565
+ };
566
+ f.parseForStatement = function(e) {
567
+ this.next();
568
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
569
+ if (this.labels.push(Xe), this.enterScope(0), this.expect(a.parenL), this.type === a.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
570
+ var i = this.isLet();
571
+ if (this.type === a._var || this.type === a._const || i) {
572
+ var s = this.startNode(), r = i ? "let" : this.value;
573
+ return this.next(), this.parseVar(s, true, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
574
+ }
575
+ var n = this.isContextual("let"), o = false, p = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
576
+ if (p) {
577
+ var u = this.startNode();
578
+ return this.next(), p === "await using" && this.next(), this.parseVar(u, true, p), this.finishNode(u, "VariableDeclaration"), this.parseForAfterInit(e, u, t);
579
+ }
580
+ var c = this.containsEsc, d = new _e(), b = this.start, C = t > -1 ? this.parseExprSubscripts(d, "await") : this.parseExpression(true, d);
581
+ return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = true) : o && this.options.ecmaVersion >= 8 && (C.start === b && !c && C.type === "Identifier" && C.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = false)), n && o && this.raise(C.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(C, false, d), this.checkLValPattern(C), this.parseForIn(e, C)) : (this.checkExpressionErrors(d, true), t > -1 && this.unexpected(t), this.parseFor(e, C));
582
+ };
583
+ f.parseForAfterInit = function(e, t, i) {
584
+ return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === a._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
585
+ };
586
+ f.parseFunctionStatement = function(e, t, i) {
587
+ return this.next(), this.parseFunction(e, re | (i ? 0 : je), false, t);
588
+ };
589
+ f.parseIfStatement = function(e) {
590
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(a._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
591
+ };
592
+ f.parseReturnStatement = function(e) {
593
+ return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
594
+ };
595
+ f.parseSwitchStatement = function(e) {
596
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(Wi), this.enterScope(0);
597
+ for (var t, i = false; this.type !== a.braceR; ) if (this.type === a._case || this.type === a._default) {
598
+ var s = this.type === a._case;
599
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), s ? t.test = this.parseExpression() : (i && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i = true, t.test = null), this.expect(a.colon);
600
+ } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
601
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
602
+ };
603
+ f.parseThrowStatement = function(e) {
604
+ return this.next(), N.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
605
+ };
606
+ var zi = [];
607
+ f.parseCatchClauseParam = function() {
608
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
609
+ return this.enterScope(t ? bt : 0), this.checkLValPattern(e, t ? Tt : J), this.expect(a.parenR), e;
610
+ };
611
+ f.parseTryStatement = function(e) {
612
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
613
+ var t = this.startNode();
614
+ this.next(), this.eat(a.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(false), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
615
+ }
616
+ return e.finalizer = this.eat(a._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
617
+ };
618
+ f.parseVarStatement = function(e, t, i) {
619
+ return this.next(), this.parseVar(e, false, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
620
+ };
621
+ f.parseWhileStatement = function(e) {
622
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(Xe), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
623
+ };
624
+ f.parseWithStatement = function(e) {
625
+ return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
626
+ };
627
+ f.parseEmptyStatement = function(e) {
628
+ return this.next(), this.finishNode(e, "EmptyStatement");
629
+ };
630
+ f.parseLabeledStatement = function(e, t, i, s) {
631
+ for (var r = 0, n = this.labels; r < n.length; r += 1) {
632
+ var o = n[r];
633
+ o.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
634
+ }
635
+ for (var p = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, u = this.labels.length - 1; u >= 0; u--) {
636
+ var c = this.labels[u];
637
+ if (c.statementStart === e.start) c.statementStart = this.start, c.kind = p;
638
+ else break;
639
+ }
640
+ return this.labels.push({ name: t, kind: p, statementStart: this.start }), e.body = this.parseStatement(s ? s.indexOf("label") === -1 ? s + "label" : s : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
641
+ };
642
+ f.parseExpressionStatement = function(e, t) {
643
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
644
+ };
645
+ f.parseBlock = function(e, t, i) {
646
+ for (e === void 0 && (e = true), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR; ) {
647
+ var s = this.parseStatement(null);
648
+ t.body.push(s);
649
+ }
650
+ return i && (this.strict = false), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
651
+ };
652
+ f.parseFor = function(e, t) {
653
+ return e.init = t, this.expect(a.semi), e.test = this.type === a.semi ? null : this.parseExpression(), this.expect(a.semi), e.update = this.type === a.parenR ? null : this.parseExpression(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
654
+ };
655
+ f.parseForIn = function(e, t) {
656
+ var i = this.type === a._in;
657
+ return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, i ? "ForInStatement" : "ForOfStatement");
658
+ };
659
+ f.parseVar = function(e, t, i, s) {
660
+ for (e.declarations = [], e.kind = i; ; ) {
661
+ var r = this.startNode();
662
+ if (this.parseVarId(r, i), this.eat(a.eq) ? r.init = this.parseMaybeAssign(t) : !s && i === "const" && !(this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !s && (i === "using" || i === "await using") && this.options.ecmaVersion >= 17 && this.type !== a._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + i + " declaration") : !s && r.id.type !== "Identifier" && !(t && (this.type === a._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, e.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(a.comma)) break;
663
+ }
664
+ return e;
665
+ };
666
+ f.parseVarId = function(e, t) {
667
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ke : J, false);
668
+ };
669
+ var re = 1, je = 2, Et = 4;
670
+ f.parseFunction = function(e, t, i, s, r) {
671
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & je && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & re && (e.id = t & Et && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & je) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ke : J : _t));
672
+ var n = this.yieldPos, o = this.awaitPos, p = this.awaitIdentPos;
673
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(He(e.async, e.generator)), t & re || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, false, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = p, this.finishNode(e, t & re ? "FunctionDeclaration" : "FunctionExpression");
674
+ };
675
+ f.parseFunctionParams = function(e) {
676
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
677
+ };
678
+ f.parseClass = function(e, t) {
679
+ this.next();
680
+ var i = this.strict;
681
+ this.strict = true, this.parseClassId(e, t), this.parseClassSuper(e);
682
+ var s = this.enterClassBody(), r = this.startNode(), n = false;
683
+ for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
684
+ var o = this.parseClassElement(e.superClass !== null);
685
+ o && (r.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = true) : o.key && o.key.type === "PrivateIdentifier" && Qi(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
686
+ }
687
+ return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
688
+ };
689
+ f.parseClassElement = function(e) {
690
+ if (this.eat(a.semi)) return null;
691
+ var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = false, n = false, o = "method", p = false;
692
+ if (this.eatContextual("static")) {
693
+ if (t >= 13 && this.eat(a.braceL)) return this.parseClassStaticBlock(i), i;
694
+ this.isClassElementNameStart() || this.type === a.star ? p = true : s = "static";
695
+ }
696
+ if (i.static = p, !s && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? n = true : s = "async"), !s && (t >= 9 || !n) && this.eat(a.star) && (r = true), !s && !n && !r) {
697
+ var u = this.value;
698
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = u : s = u);
699
+ }
700
+ if (s ? (i.computed = false, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || o !== "method" || r || n) {
701
+ var c = !i.static && xe(i, "constructor"), d = c && e;
702
+ c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, d);
703
+ } else this.parseClassField(i);
704
+ return i;
705
+ };
706
+ f.isClassElementNameStart = function() {
707
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
708
+ };
709
+ f.parseClassElementName = function(e) {
710
+ this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = false, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
711
+ };
712
+ f.parseClassMethod = function(e, t, i, s) {
713
+ var r = e.key;
714
+ e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && xe(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
715
+ var n = e.value = this.parseMethod(t, i, s);
716
+ return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
717
+ };
718
+ f.parseClassField = function(e) {
719
+ return xe(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && xe(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(oe | be), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
720
+ };
721
+ f.parseClassStaticBlock = function(e) {
722
+ e.body = [];
723
+ var t = this.labels;
724
+ for (this.labels = [], this.enterScope(W | be); this.type !== a.braceR; ) {
725
+ var i = this.parseStatement(null);
726
+ e.body.push(i);
727
+ }
728
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
729
+ };
730
+ f.parseClassId = function(e, t) {
731
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, J, false)) : (t === true && this.unexpected(), e.id = null);
732
+ };
733
+ f.parseClassSuper = function(e) {
734
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, false) : null;
735
+ };
736
+ f.enterClassBody = function() {
737
+ var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
738
+ return this.privateNameStack.push(e), e.declared;
739
+ };
740
+ f.exitClassBody = function() {
741
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
742
+ if (this.options.checkPrivateFields) for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], n = 0; n < i.length; ++n) {
743
+ var o = i[n];
744
+ Y(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
745
+ }
746
+ };
747
+ function Qi(e, t) {
748
+ var i = t.key.name, s = e[i], r = "true";
749
+ return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", false) : s ? true : (e[i] = r, false);
750
+ }
751
+ function xe(e, t) {
752
+ var i = e.computed, s = e.key;
753
+ return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
754
+ }
755
+ f.parseExportAllDeclaration = function(e, t) {
756
+ return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
757
+ };
758
+ f.parseExport = function(e, t) {
759
+ if (this.next(), this.eat(a.star)) return this.parseExportAllDeclaration(e, t);
760
+ if (this.eat(a._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
761
+ if (this.shouldParseExportStatement()) e.declaration = this.parseExportDeclaration(e), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.declarations) : this.checkExport(t, e.declaration.id, e.declaration.id.start), e.specifiers = [], e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
762
+ else {
763
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
764
+ else {
765
+ for (var i = 0, s = e.specifiers; i < s.length; i += 1) {
766
+ var r = s[i];
767
+ this.checkUnreserved(r.local), this.checkLocalExport(r.local), r.local.type === "Literal" && this.raise(r.local.start, "A string literal cannot be used as an exported binding without `from`.");
768
+ }
769
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
770
+ }
771
+ this.semicolon();
772
+ }
773
+ return this.finishNode(e, "ExportNamedDeclaration");
774
+ };
775
+ f.parseExportDeclaration = function(e) {
776
+ return this.parseStatement(null);
777
+ };
778
+ f.parseExportDefaultDeclaration = function() {
779
+ var e;
780
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
781
+ var t = this.startNode();
782
+ return this.next(), e && this.next(), this.parseFunction(t, re | Et, false, e);
783
+ } else if (this.type === a._class) {
784
+ var i = this.startNode();
785
+ return this.parseClass(i, "nullableID");
786
+ } else {
787
+ var s = this.parseMaybeAssign();
788
+ return this.semicolon(), s;
789
+ }
790
+ };
791
+ f.checkExport = function(e, t, i) {
792
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), Y(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = true);
793
+ };
794
+ f.checkPatternExport = function(e, t) {
795
+ var i = t.type;
796
+ if (i === "Identifier") this.checkExport(e, t, t.start);
797
+ else if (i === "ObjectPattern") for (var s = 0, r = t.properties; s < r.length; s += 1) {
798
+ var n = r[s];
799
+ this.checkPatternExport(e, n);
800
+ }
801
+ else if (i === "ArrayPattern") for (var o = 0, p = t.elements; o < p.length; o += 1) {
802
+ var u = p[o];
803
+ u && this.checkPatternExport(e, u);
804
+ }
805
+ else i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
806
+ };
807
+ f.checkVariableExport = function(e, t) {
808
+ if (e) for (var i = 0, s = t; i < s.length; i += 1) {
809
+ var r = s[i];
810
+ this.checkPatternExport(e, r.id);
811
+ }
812
+ };
813
+ f.shouldParseExportStatement = function() {
814
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
815
+ };
816
+ f.parseExportSpecifier = function(e) {
817
+ var t = this.startNode();
818
+ return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(e, t.exported, t.exported.start), this.finishNode(t, "ExportSpecifier");
819
+ };
820
+ f.parseExportSpecifiers = function(e) {
821
+ var t = [], i = true;
822
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
823
+ if (i) i = false;
824
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
825
+ t.push(this.parseExportSpecifier(e));
826
+ }
827
+ return t;
828
+ };
829
+ f.parseImport = function(e) {
830
+ return this.next(), this.type === a.string ? (e.specifiers = zi, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
831
+ };
832
+ f.parseImportSpecifier = function() {
833
+ var e = this.startNode();
834
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportSpecifier");
835
+ };
836
+ f.parseImportDefaultSpecifier = function() {
837
+ var e = this.startNode();
838
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportDefaultSpecifier");
839
+ };
840
+ f.parseImportNamespaceSpecifier = function() {
841
+ var e = this.startNode();
842
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportNamespaceSpecifier");
843
+ };
844
+ f.parseImportSpecifiers = function() {
845
+ var e = [], t = true;
846
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma))) return e;
847
+ if (this.type === a.star) return e.push(this.parseImportNamespaceSpecifier()), e;
848
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
849
+ if (t) t = false;
850
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
851
+ e.push(this.parseImportSpecifier());
852
+ }
853
+ return e;
854
+ };
855
+ f.parseWithClause = function() {
856
+ var e = [];
857
+ if (!this.eat(a._with)) return e;
858
+ this.expect(a.braceL);
859
+ for (var t = {}, i = true; !this.eat(a.braceR); ) {
860
+ if (i) i = false;
861
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
862
+ var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
863
+ Y(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = true, e.push(s);
864
+ }
865
+ return e;
866
+ };
867
+ f.parseImportAttribute = function() {
868
+ var e = this.startNode();
869
+ return e.key = this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(a.colon), this.type !== a.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
870
+ };
871
+ f.parseModuleExportName = function() {
872
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
873
+ var e = this.parseLiteral(this.value);
874
+ return Ji.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
875
+ }
876
+ return this.parseIdent(true);
877
+ };
878
+ f.adaptDirectivePrologue = function(e) {
879
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
880
+ };
881
+ f.isDirectiveCandidate = function(e) {
882
+ return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === '"' || this.input[e.start] === "'");
883
+ };
884
+ var B = E.prototype;
885
+ B.toAssignable = function(e, t, i) {
886
+ if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
887
+ case "Identifier":
888
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
889
+ break;
890
+ case "ObjectPattern":
891
+ case "ArrayPattern":
892
+ case "AssignmentPattern":
893
+ case "RestElement":
894
+ break;
895
+ case "ObjectExpression":
896
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, true);
897
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
898
+ var n = r[s];
899
+ this.toAssignable(n, t), n.type === "RestElement" && (n.argument.type === "ArrayPattern" || n.argument.type === "ObjectPattern") && this.raise(n.argument.start, "Unexpected token");
900
+ }
901
+ break;
902
+ case "Property":
903
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
904
+ break;
905
+ case "ArrayExpression":
906
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, true), this.toAssignableList(e.elements, t);
907
+ break;
908
+ case "SpreadElement":
909
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
910
+ break;
911
+ case "AssignmentExpression":
912
+ e.operator !== "=" && this.raise(e.left.end, "Only '=' operator can be used for specifying default value."), e.type = "AssignmentPattern", delete e.operator, this.toAssignable(e.left, t);
913
+ break;
914
+ case "ParenthesizedExpression":
915
+ this.toAssignable(e.expression, t, i);
916
+ break;
917
+ case "ChainExpression":
918
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
919
+ break;
920
+ case "MemberExpression":
921
+ if (!t) break;
922
+ default:
923
+ this.raise(e.start, "Assigning to rvalue");
924
+ }
925
+ else i && this.checkPatternErrors(i, true);
926
+ return e;
927
+ };
928
+ B.toAssignableList = function(e, t) {
929
+ for (var i = e.length, s = 0; s < i; s++) {
930
+ var r = e[s];
931
+ r && this.toAssignable(r, t);
932
+ }
933
+ if (i) {
934
+ var n = e[i - 1];
935
+ this.options.ecmaVersion === 6 && t && n && n.type === "RestElement" && n.argument.type !== "Identifier" && this.unexpected(n.argument.start);
936
+ }
937
+ return e;
938
+ };
939
+ B.parseSpread = function(e) {
940
+ var t = this.startNode();
941
+ return this.next(), t.argument = this.parseMaybeAssign(false, e), this.finishNode(t, "SpreadElement");
942
+ };
943
+ B.parseRestBinding = function() {
944
+ var e = this.startNode();
945
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
946
+ };
947
+ B.parseBindingAtom = function() {
948
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
949
+ case a.bracketL:
950
+ var e = this.startNode();
951
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, true, true), this.finishNode(e, "ArrayPattern");
952
+ case a.braceL:
953
+ return this.parseObj(true);
954
+ }
955
+ return this.parseIdent();
956
+ };
957
+ B.parseBindingList = function(e, t, i, s) {
958
+ for (var r = [], n = true; !this.eat(e); ) if (n ? n = false : this.expect(a.comma), t && this.type === a.comma) r.push(null);
959
+ else {
960
+ if (i && this.afterTrailingComma(e)) break;
961
+ if (this.type === a.ellipsis) {
962
+ var o = this.parseRestBinding();
963
+ this.parseBindingListItem(o), r.push(o), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
964
+ break;
965
+ } else r.push(this.parseAssignableListItem(s));
966
+ }
967
+ return r;
968
+ };
969
+ B.parseAssignableListItem = function(e) {
970
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
971
+ return this.parseBindingListItem(t), t;
972
+ };
973
+ B.parseBindingListItem = function(e) {
974
+ return e;
975
+ };
976
+ B.parseMaybeDefault = function(e, t, i) {
977
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq)) return i;
978
+ var s = this.startNodeAt(e, t);
979
+ return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
980
+ };
981
+ B.checkLValSimple = function(e, t, i) {
982
+ t === void 0 && (t = me);
983
+ var s = t !== me;
984
+ switch (e.type) {
985
+ case "Identifier":
986
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === J && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Y(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = true), t !== Ct && this.declareName(e.name, t, e.start));
987
+ break;
988
+ case "ChainExpression":
989
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
990
+ break;
991
+ case "MemberExpression":
992
+ s && this.raiseRecoverable(e.start, "Binding member expression");
993
+ break;
994
+ case "ParenthesizedExpression":
995
+ return s && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
996
+ default:
997
+ this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
998
+ }
999
+ };
1000
+ B.checkLValPattern = function(e, t, i) {
1001
+ switch (t === void 0 && (t = me), e.type) {
1002
+ case "ObjectPattern":
1003
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1004
+ var n = r[s];
1005
+ this.checkLValInnerPattern(n, t, i);
1006
+ }
1007
+ break;
1008
+ case "ArrayPattern":
1009
+ for (var o = 0, p = e.elements; o < p.length; o += 1) {
1010
+ var u = p[o];
1011
+ u && this.checkLValInnerPattern(u, t, i);
1012
+ }
1013
+ break;
1014
+ default:
1015
+ this.checkLValSimple(e, t, i);
1016
+ }
1017
+ };
1018
+ B.checkLValInnerPattern = function(e, t, i) {
1019
+ switch (t === void 0 && (t = me), e.type) {
1020
+ case "Property":
1021
+ this.checkLValInnerPattern(e.value, t, i);
1022
+ break;
1023
+ case "AssignmentPattern":
1024
+ this.checkLValPattern(e.left, t, i);
1025
+ break;
1026
+ case "RestElement":
1027
+ this.checkLValPattern(e.argument, t, i);
1028
+ break;
1029
+ default:
1030
+ this.checkLValPattern(e, t, i);
1031
+ }
1032
+ };
1033
+ var M = function(t, i, s, r, n) {
1034
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1035
+ }, T = { b_stat: new M("{", false), b_expr: new M("{", true), b_tmpl: new M("${", false), p_stat: new M("(", false), p_expr: new M("(", true), q_tmpl: new M("`", true, true, function(e) {
1036
+ return e.tryReadTemplateToken();
1037
+ }), f_stat: new M("function", false), f_expr: new M("function", true), f_expr_gen: new M("function", true, false, null, true), f_gen: new M("function", false, false, null, true) }, Z = E.prototype;
1038
+ Z.initialContext = function() {
1039
+ return [T.b_stat];
1040
+ };
1041
+ Z.curContext = function() {
1042
+ return this.context[this.context.length - 1];
1043
+ };
1044
+ Z.braceIsBlock = function(e) {
1045
+ var t = this.curContext();
1046
+ return t === T.f_expr || t === T.f_stat ? true : e === a.colon && (t === T.b_stat || t === T.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? N.test(this.input.slice(this.lastTokEnd, this.start)) : e === a._else || e === a.semi || e === a.eof || e === a.parenR || e === a.arrow ? true : e === a.braceL ? t === T.b_stat : e === a._var || e === a._const || e === a.name ? false : !this.exprAllowed;
1047
+ };
1048
+ Z.inGeneratorContext = function() {
1049
+ for (var e = this.context.length - 1; e >= 1; e--) {
1050
+ var t = this.context[e];
1051
+ if (t.token === "function") return t.generator;
1052
+ }
1053
+ return false;
1054
+ };
1055
+ Z.updateContext = function(e) {
1056
+ var t, i = this.type;
1057
+ i.keyword && e === a.dot ? this.exprAllowed = false : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
1058
+ };
1059
+ Z.overrideContext = function(e) {
1060
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
1061
+ };
1062
+ a.parenR.updateContext = a.braceR.updateContext = function() {
1063
+ if (this.context.length === 1) {
1064
+ this.exprAllowed = true;
1065
+ return;
1066
+ }
1067
+ var e = this.context.pop();
1068
+ e === T.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1069
+ };
1070
+ a.braceL.updateContext = function(e) {
1071
+ this.context.push(this.braceIsBlock(e) ? T.b_stat : T.b_expr), this.exprAllowed = true;
1072
+ };
1073
+ a.dollarBraceL.updateContext = function() {
1074
+ this.context.push(T.b_tmpl), this.exprAllowed = true;
1075
+ };
1076
+ a.parenL.updateContext = function(e) {
1077
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
1078
+ this.context.push(t ? T.p_stat : T.p_expr), this.exprAllowed = true;
1079
+ };
1080
+ a.incDec.updateContext = function() {
1081
+ };
1082
+ a._function.updateContext = a._class.updateContext = function(e) {
1083
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== T.p_stat) && !(e === a._return && N.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === T.b_stat) ? this.context.push(T.f_expr) : this.context.push(T.f_stat), this.exprAllowed = false;
1084
+ };
1085
+ a.colon.updateContext = function() {
1086
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
1087
+ };
1088
+ a.backQuote.updateContext = function() {
1089
+ this.curContext() === T.q_tmpl ? this.context.pop() : this.context.push(T.q_tmpl), this.exprAllowed = false;
1090
+ };
1091
+ a.star.updateContext = function(e) {
1092
+ if (e === a._function) {
1093
+ var t = this.context.length - 1;
1094
+ this.context[t] === T.f_expr ? this.context[t] = T.f_expr_gen : this.context[t] = T.f_gen;
1095
+ }
1096
+ this.exprAllowed = true;
1097
+ };
1098
+ a.name.updateContext = function(e) {
1099
+ var t = false;
1100
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = true), this.exprAllowed = t;
1101
+ };
1102
+ var y = E.prototype;
1103
+ y.checkPropClash = function(e, t, i) {
1104
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1105
+ var s = e.key, r;
1106
+ switch (s.type) {
1107
+ case "Identifier":
1108
+ r = s.name;
1109
+ break;
1110
+ case "Literal":
1111
+ r = String(s.value);
1112
+ break;
1113
+ default:
1114
+ return;
1115
+ }
1116
+ var n = e.kind;
1117
+ if (this.options.ecmaVersion >= 6) {
1118
+ r === "__proto__" && n === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = s.start) : this.raiseRecoverable(s.start, "Redefinition of __proto__ property")), t.proto = true);
1119
+ return;
1120
+ }
1121
+ r = "$" + r;
1122
+ var o = t[r];
1123
+ if (o) {
1124
+ var p;
1125
+ n === "init" ? p = this.strict && o.init || o.get || o.set : p = o.init || o[n], p && this.raiseRecoverable(s.start, "Redefinition of property");
1126
+ } else o = t[r] = { init: false, get: false, set: false };
1127
+ o[n] = true;
1128
+ }
1129
+ };
1130
+ y.parseExpression = function(e, t) {
1131
+ var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
1132
+ if (this.type === a.comma) {
1133
+ var n = this.startNodeAt(i, s);
1134
+ for (n.expressions = [r]; this.eat(a.comma); ) n.expressions.push(this.parseMaybeAssign(e, t));
1135
+ return this.finishNode(n, "SequenceExpression");
1136
+ }
1137
+ return r;
1138
+ };
1139
+ y.parseMaybeAssign = function(e, t, i) {
1140
+ if (this.isContextual("yield")) {
1141
+ if (this.inGenerator) return this.parseYield(e);
1142
+ this.exprAllowed = false;
1143
+ }
1144
+ var s = false, r = -1, n = -1, o = -1;
1145
+ t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new _e(), s = true);
1146
+ var p = this.start, u = this.startLoc;
1147
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1148
+ var c = this.parseMaybeConditional(e, t);
1149
+ if (i && (c = i.call(this, c, p, u)), this.type.isAssign) {
1150
+ var d = this.startNodeAt(p, u);
1151
+ return d.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, false, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), d.left = c, this.next(), d.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(d, "AssignmentExpression");
1152
+ } else s && this.checkExpressionErrors(t, true);
1153
+ return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
1154
+ };
1155
+ y.parseMaybeConditional = function(e, t) {
1156
+ var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
1157
+ if (this.checkExpressionErrors(t)) return r;
1158
+ if (this.eat(a.question)) {
1159
+ var n = this.startNodeAt(i, s);
1160
+ return n.test = r, n.consequent = this.parseMaybeAssign(), this.expect(a.colon), n.alternate = this.parseMaybeAssign(e), this.finishNode(n, "ConditionalExpression");
1161
+ }
1162
+ return r;
1163
+ };
1164
+ y.parseExprOps = function(e, t) {
1165
+ var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, false, false, e);
1166
+ return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
1167
+ };
1168
+ y.parseExprOp = function(e, t, i, s, r) {
1169
+ var n = this.type.binop;
1170
+ if (n != null && (!r || this.type !== a._in) && n > s) {
1171
+ var o = this.type === a.logicalOR || this.type === a.logicalAND, p = this.type === a.coalesce;
1172
+ p && (n = a.logicalAND.binop);
1173
+ var u = this.value;
1174
+ this.next();
1175
+ var c = this.start, d = this.startLoc, b = this.parseExprOp(this.parseMaybeUnary(null, false, false, r), c, d, n, r), C = this.buildBinary(t, i, e, b, u, o || p);
1176
+ return (o && this.type === a.coalesce || p && (this.type === a.logicalOR || this.type === a.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(C, t, i, s, r);
1177
+ }
1178
+ return e;
1179
+ };
1180
+ y.buildBinary = function(e, t, i, s, r, n) {
1181
+ s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
1182
+ var o = this.startNodeAt(e, t);
1183
+ return o.left = i, o.operator = r, o.right = s, this.finishNode(o, n ? "LogicalExpression" : "BinaryExpression");
1184
+ };
1185
+ y.parseMaybeUnary = function(e, t, i, s) {
1186
+ var r = this.start, n = this.startLoc, o;
1187
+ if (this.isContextual("await") && this.canAwait) o = this.parseAwait(s), t = true;
1188
+ else if (this.type.prefix) {
1189
+ var p = this.startNode(), u = this.type === a.incDec;
1190
+ p.operator = this.value, p.prefix = true, this.next(), p.argument = this.parseMaybeUnary(null, true, u, s), this.checkExpressionErrors(e, true), u ? this.checkLValSimple(p.argument) : this.strict && p.operator === "delete" && At(p.argument) ? this.raiseRecoverable(p.start, "Deleting local variable in strict mode") : p.operator === "delete" && Ue(p.argument) ? this.raiseRecoverable(p.start, "Private fields can not be deleted") : t = true, o = this.finishNode(p, u ? "UpdateExpression" : "UnaryExpression");
1191
+ } else if (!t && this.type === a.privateId) (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1192
+ else {
1193
+ if (o = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e)) return o;
1194
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1195
+ var c = this.startNodeAt(r, n);
1196
+ c.operator = this.value, c.prefix = false, c.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(c, "UpdateExpression");
1197
+ }
1198
+ }
1199
+ if (!i && this.eat(a.starstar)) if (t) this.unexpected(this.lastTokStart);
1200
+ else return this.buildBinary(r, n, o, this.parseMaybeUnary(null, false, false, s), "**", false);
1201
+ else return o;
1202
+ };
1203
+ function At(e) {
1204
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && At(e.expression);
1205
+ }
1206
+ function Ue(e) {
1207
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Ue(e.expression) || e.type === "ParenthesizedExpression" && Ue(e.expression);
1208
+ }
1209
+ y.parseExprSubscripts = function(e, t) {
1210
+ var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
1211
+ if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return r;
1212
+ var n = this.parseSubscripts(r, i, s, false, t);
1213
+ return e && n.type === "MemberExpression" && (e.parenthesizedAssign >= n.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= n.start && (e.parenthesizedBind = -1), e.trailingComma >= n.start && (e.trailingComma = -1)), n;
1214
+ };
1215
+ y.parseSubscripts = function(e, t, i, s, r) {
1216
+ for (var n = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = false; ; ) {
1217
+ var p = this.parseSubscript(e, t, i, s, n, o, r);
1218
+ if (p.optional && (o = true), p === e || p.type === "ArrowFunctionExpression") {
1219
+ if (o) {
1220
+ var u = this.startNodeAt(t, i);
1221
+ u.expression = p, p = this.finishNode(u, "ChainExpression");
1222
+ }
1223
+ return p;
1224
+ }
1225
+ e = p;
1226
+ }
1227
+ };
1228
+ y.shouldParseAsyncArrow = function() {
1229
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
1230
+ };
1231
+ y.parseSubscriptAsyncArrow = function(e, t, i, s) {
1232
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, true, s);
1233
+ };
1234
+ y.parseSubscript = function(e, t, i, s, r, n, o) {
1235
+ var p = this.options.ecmaVersion >= 11, u = p && this.eat(a.questionDot);
1236
+ s && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1237
+ var c = this.eat(a.bracketL);
1238
+ if (c || u && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1239
+ var d = this.startNodeAt(t, i);
1240
+ d.object = e, c ? (d.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? d.property = this.parsePrivateIdent() : d.property = this.parseIdent(this.options.allowReserved !== "never"), d.computed = !!c, p && (d.optional = u), e = this.finishNode(d, "MemberExpression");
1241
+ } else if (!s && this.eat(a.parenL)) {
1242
+ var b = new _e(), C = this.yieldPos, h = this.awaitPos, m = this.awaitIdentPos;
1243
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1244
+ var x = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false, b);
1245
+ if (r && !u && this.shouldParseAsyncArrow()) return this.checkPatternErrors(b, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = C, this.awaitPos = h, this.awaitIdentPos = m, this.parseSubscriptAsyncArrow(t, i, x, o);
1246
+ this.checkExpressionErrors(b, true), this.yieldPos = C || this.yieldPos, this.awaitPos = h || this.awaitPos, this.awaitIdentPos = m || this.awaitIdentPos;
1247
+ var g = this.startNodeAt(t, i);
1248
+ g.callee = e, g.arguments = x, p && (g.optional = u), e = this.finishNode(g, "CallExpression");
1249
+ } else if (this.type === a.backQuote) {
1250
+ (u || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1251
+ var P = this.startNodeAt(t, i);
1252
+ P.tag = e, P.quasi = this.parseTemplate({ isTagged: true }), e = this.finishNode(P, "TaggedTemplateExpression");
1253
+ }
1254
+ return e;
1255
+ };
1256
+ y.parseExprAtom = function(e, t, i) {
1257
+ this.type === a.slash && this.readRegexp();
1258
+ var s, r = this.potentialArrowAt === this.start;
1259
+ switch (this.type) {
1260
+ case a._super:
1261
+ return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), s = this.startNode(), this.next(), this.type === a.parenL && !this.allowDirectSuper && this.raise(s.start, "super() call outside constructor of a subclass"), this.type !== a.dot && this.type !== a.bracketL && this.type !== a.parenL && this.unexpected(), this.finishNode(s, "Super");
1262
+ case a._this:
1263
+ return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
1264
+ case a.name:
1265
+ var n = this.start, o = this.startLoc, p = this.containsEsc, u = this.parseIdent(false);
1266
+ if (this.options.ecmaVersion >= 8 && !p && u.name === "async" && !this.canInsertSemicolon() && this.eat(a._function)) return this.overrideContext(T.f_expr), this.parseFunction(this.startNodeAt(n, o), 0, false, true, t);
1267
+ if (r && !this.canInsertSemicolon()) {
1268
+ if (this.eat(a.arrow)) return this.parseArrowExpression(this.startNodeAt(n, o), [u], false, t);
1269
+ if (this.options.ecmaVersion >= 8 && u.name === "async" && this.type === a.name && !p && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return u = this.parseIdent(false), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, o), [u], true, t);
1270
+ }
1271
+ return u;
1272
+ case a.regexp:
1273
+ var c = this.value;
1274
+ return s = this.parseLiteral(c.value), s.regex = { pattern: c.pattern, flags: c.flags }, s;
1275
+ case a.num:
1276
+ case a.string:
1277
+ return this.parseLiteral(this.value);
1278
+ case a._null:
1279
+ case a._true:
1280
+ case a._false:
1281
+ return s = this.startNode(), s.value = this.type === a._null ? null : this.type === a._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
1282
+ case a.parenL:
1283
+ var d = this.start, b = this.parseParenAndDistinguishExpression(r, t);
1284
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(b) && (e.parenthesizedAssign = d), e.parenthesizedBind < 0 && (e.parenthesizedBind = d)), b;
1285
+ case a.bracketL:
1286
+ return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, true, true, e), this.finishNode(s, "ArrayExpression");
1287
+ case a.braceL:
1288
+ return this.overrideContext(T.b_expr), this.parseObj(false, e);
1289
+ case a._function:
1290
+ return s = this.startNode(), this.next(), this.parseFunction(s, 0);
1291
+ case a._class:
1292
+ return this.parseClass(this.startNode(), false);
1293
+ case a._new:
1294
+ return this.parseNew();
1295
+ case a.backQuote:
1296
+ return this.parseTemplate();
1297
+ case a._import:
1298
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
1299
+ default:
1300
+ return this.parseExprAtomDefault();
1301
+ }
1302
+ };
1303
+ y.parseExprAtomDefault = function() {
1304
+ this.unexpected();
1305
+ };
1306
+ y.parseExprImport = function(e) {
1307
+ var t = this.startNode();
1308
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e) return this.parseDynamicImport(t);
1309
+ if (this.type === a.dot) {
1310
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
1311
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
1312
+ } else this.unexpected();
1313
+ };
1314
+ y.parseDynamicImport = function(e) {
1315
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(a.parenR) ? e.options = null : (this.expect(a.comma), this.afterTrailingComma(a.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(a.parenR) || (this.expect(a.comma), this.afterTrailingComma(a.parenR) || this.unexpected())));
1316
+ else if (!this.eat(a.parenR)) {
1317
+ var t = this.start;
1318
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
1319
+ }
1320
+ return this.finishNode(e, "ImportExpression");
1321
+ };
1322
+ y.parseImportMeta = function(e) {
1323
+ this.next();
1324
+ var t = this.containsEsc;
1325
+ return e.property = this.parseIdent(true), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
1326
+ };
1327
+ y.parseLiteral = function(e) {
1328
+ var t = this.startNode();
1329
+ return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.value != null ? t.value.toString() : t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
1330
+ };
1331
+ y.parseParenExpression = function() {
1332
+ this.expect(a.parenL);
1333
+ var e = this.parseExpression();
1334
+ return this.expect(a.parenR), e;
1335
+ };
1336
+ y.shouldParseArrow = function(e) {
1337
+ return !this.canInsertSemicolon();
1338
+ };
1339
+ y.parseParenAndDistinguishExpression = function(e, t) {
1340
+ var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1341
+ if (this.options.ecmaVersion >= 6) {
1342
+ this.next();
1343
+ var o = this.start, p = this.startLoc, u = [], c = true, d = false, b = new _e(), C = this.yieldPos, h = this.awaitPos, m;
1344
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; ) if (c ? c = false : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, true)) {
1345
+ d = true;
1346
+ break;
1347
+ } else if (this.type === a.ellipsis) {
1348
+ m = this.start, u.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1349
+ break;
1350
+ } else u.push(this.parseMaybeAssign(false, b, this.parseParenItem));
1351
+ var x = this.lastTokEnd, g = this.lastTokEndLoc;
1352
+ if (this.expect(a.parenR), e && this.shouldParseArrow(u) && this.eat(a.arrow)) return this.checkPatternErrors(b, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = C, this.awaitPos = h, this.parseParenArrowList(i, s, u, t);
1353
+ (!u.length || d) && this.unexpected(this.lastTokStart), m && this.unexpected(m), this.checkExpressionErrors(b, true), this.yieldPos = C || this.yieldPos, this.awaitPos = h || this.awaitPos, u.length > 1 ? (r = this.startNodeAt(o, p), r.expressions = u, this.finishNodeAt(r, "SequenceExpression", x, g)) : r = u[0];
1354
+ } else r = this.parseParenExpression();
1355
+ if (this.options.preserveParens) {
1356
+ var P = this.startNodeAt(i, s);
1357
+ return P.expression = r, this.finishNode(P, "ParenthesizedExpression");
1358
+ } else return r;
1359
+ };
1360
+ y.parseParenItem = function(e) {
1361
+ return e;
1362
+ };
1363
+ y.parseParenArrowList = function(e, t, i, s) {
1364
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, false, s);
1365
+ };
1366
+ var Yi = [];
1367
+ y.parseNew = function() {
1368
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1369
+ var e = this.startNode();
1370
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
1371
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
1372
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
1373
+ var i = this.containsEsc;
1374
+ return e.property = this.parseIdent(true), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
1375
+ }
1376
+ var s = this.start, r = this.startLoc;
1377
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), s, r, true, false), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false) : e.arguments = Yi, this.finishNode(e, "NewExpression");
1378
+ };
1379
+ y.parseTemplateElement = function(e) {
1380
+ var t = e.isTagged, i = this.startNode();
1381
+ return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = { raw: this.value.replace(/\r\n?/g, `
1382
+ `), cooked: null }) : i.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1383
+ `), cooked: this.value }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1384
+ };
1385
+ y.parseTemplate = function(e) {
1386
+ e === void 0 && (e = {});
1387
+ var t = e.isTagged;
1388
+ t === void 0 && (t = false);
1389
+ var i = this.startNode();
1390
+ this.next(), i.expressions = [];
1391
+ var s = this.parseTemplateElement({ isTagged: t });
1392
+ for (i.quasis = [s]; !s.tail; ) this.type === a.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(a.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(a.braceR), i.quasis.push(s = this.parseTemplateElement({ isTagged: t }));
1393
+ return this.next(), this.finishNode(i, "TemplateLiteral");
1394
+ };
1395
+ y.isAsyncProp = function(e) {
1396
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a.name || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a.star) && !N.test(this.input.slice(this.lastTokEnd, this.start));
1397
+ };
1398
+ y.parseObj = function(e, t) {
1399
+ var i = this.startNode(), s = true, r = {};
1400
+ for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1401
+ if (s) s = false;
1402
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR)) break;
1403
+ var n = this.parseProperty(e, t);
1404
+ e || this.checkPropClash(n, r, t), i.properties.push(n);
1405
+ }
1406
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1407
+ };
1408
+ y.parseProperty = function(e, t) {
1409
+ var i = this.startNode(), s, r, n, o;
1410
+ if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis)) return e ? (i.argument = this.parseIdent(false), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(false, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
1411
+ this.options.ecmaVersion >= 6 && (i.method = false, i.shorthand = false, (e || t) && (n = this.start, o = this.startLoc), e || (s = this.eat(a.star)));
1412
+ var p = this.containsEsc;
1413
+ return this.parsePropertyName(i), !e && !p && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = true, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = false, this.parsePropertyValue(i, e, s, r, n, o, t, p), this.finishNode(i, "Property");
1414
+ };
1415
+ y.parseGetterSetter = function(e) {
1416
+ var t = e.key.name;
1417
+ this.parsePropertyName(e), e.value = this.parseMethod(false), e.kind = t;
1418
+ var i = e.kind === "get" ? 0 : 1;
1419
+ if (e.value.params.length !== i) {
1420
+ var s = e.value.start;
1421
+ e.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
1422
+ } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1423
+ };
1424
+ y.parsePropertyValue = function(e, t, i, s, r, n, o, p) {
1425
+ (i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = true, e.value = this.parseMethod(i, s), e.kind = "init") : !t && !p && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== a.comma && this.type !== a.braceR && this.type !== a.eq ? ((i || s) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || s) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), t ? e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key)) : this.type === a.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = true) : this.unexpected();
1426
+ };
1427
+ y.parsePropertyName = function(e) {
1428
+ if (this.options.ecmaVersion >= 6) {
1429
+ if (this.eat(a.bracketL)) return e.computed = true, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
1430
+ e.computed = false;
1431
+ }
1432
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1433
+ };
1434
+ y.initFunction = function(e) {
1435
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = false), this.options.ecmaVersion >= 8 && (e.async = false);
1436
+ };
1437
+ y.parseMethod = function(e, t, i) {
1438
+ var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1439
+ return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(He(t, s.generator) | be | (i ? St : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, false, true, false), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1440
+ };
1441
+ y.parseArrowExpression = function(e, t, i, s) {
1442
+ var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1443
+ return this.enterScope(He(i, false) | Je), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, true), this.parseFunctionBody(e, true, false, s), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1444
+ };
1445
+ y.parseFunctionBody = function(e, t, i, s) {
1446
+ var r = t && this.type !== a.braceL, n = this.strict, o = false;
1447
+ if (r) e.body = this.parseMaybeAssign(s), e.expression = true, this.checkParams(e, false);
1448
+ else {
1449
+ var p = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1450
+ (!n || p) && (o = this.strictDirective(this.end), o && p && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1451
+ var u = this.labels;
1452
+ this.labels = [], o && (this.strict = true), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Ct), e.body = this.parseBlock(false, void 0, o && !n), e.expression = false, this.adaptDirectivePrologue(e.body.body), this.labels = u;
1453
+ }
1454
+ this.exitScope();
1455
+ };
1456
+ y.isSimpleParamList = function(e) {
1457
+ for (var t = 0, i = e; t < i.length; t += 1) {
1458
+ var s = i[t];
1459
+ if (s.type !== "Identifier") return false;
1460
+ }
1461
+ return true;
1462
+ };
1463
+ y.checkParams = function(e, t) {
1464
+ for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1465
+ var n = r[s];
1466
+ this.checkLValInnerPattern(n, Ke, t ? null : i);
1467
+ }
1468
+ };
1469
+ y.parseExprList = function(e, t, i, s) {
1470
+ for (var r = [], n = true; !this.eat(e); ) {
1471
+ if (n) n = false;
1472
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e)) break;
1473
+ var o = void 0;
1474
+ i && this.type === a.comma ? o = null : this.type === a.ellipsis ? (o = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : o = this.parseMaybeAssign(false, s), r.push(o);
1475
+ }
1476
+ return r;
1477
+ };
1478
+ y.checkUnreserved = function(e) {
1479
+ var t = e.start, i = e.end, s = e.name;
1480
+ if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Se) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1481
+ var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1482
+ r.test(s) && (!this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + s + "' is reserved"));
1483
+ }
1484
+ };
1485
+ y.parseIdent = function(e) {
1486
+ var t = this.parseIdentNode();
1487
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1488
+ };
1489
+ y.parseIdentNode = function() {
1490
+ var e = this.startNode();
1491
+ return this.type === a.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = a.name) : this.unexpected(), e;
1492
+ };
1493
+ y.parsePrivateIdent = function() {
1494
+ var e = this.startNode();
1495
+ return this.type === a.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
1496
+ };
1497
+ y.parseYield = function(e) {
1498
+ this.yieldPos || (this.yieldPos = this.start);
1499
+ var t = this.startNode();
1500
+ return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = false, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
1501
+ };
1502
+ y.parseAwait = function(e) {
1503
+ this.awaitPos || (this.awaitPos = this.start);
1504
+ var t = this.startNode();
1505
+ return this.next(), t.argument = this.parseMaybeUnary(null, true, false, e), this.finishNode(t, "AwaitExpression");
1506
+ };
1507
+ var ye = E.prototype;
1508
+ ye.raise = function(e, t) {
1509
+ var i = gt(this.input, e);
1510
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1511
+ var s = new SyntaxError(t);
1512
+ throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1513
+ };
1514
+ ye.raiseRecoverable = ye.raise;
1515
+ ye.curPosition = function() {
1516
+ if (this.options.locations) return new ae(this.curLine, this.pos - this.lineStart);
1517
+ };
1518
+ var X = E.prototype, $i = function(t) {
1519
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1520
+ };
1521
+ X.enterScope = function(e) {
1522
+ this.scopeStack.push(new $i(e));
1523
+ };
1524
+ X.exitScope = function() {
1525
+ this.scopeStack.pop();
1526
+ };
1527
+ X.treatFunctionsAsVarInScope = function(e) {
1528
+ return e.flags & $ || !this.inModule && e.flags & ne;
1529
+ };
1530
+ X.declareName = function(e, t, i) {
1531
+ var s = false;
1532
+ if (t === J) {
1533
+ var r = this.currentScope();
1534
+ s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & ne && delete this.undefinedExports[e];
1535
+ } else if (t === Tt) {
1536
+ var n = this.currentScope();
1537
+ n.lexical.push(e);
1538
+ } else if (t === _t) {
1539
+ var o = this.currentScope();
1540
+ this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1541
+ } else for (var p = this.scopeStack.length - 1; p >= 0; --p) {
1542
+ var u = this.scopeStack[p];
1543
+ if (u.lexical.indexOf(e) > -1 && !(u.flags & bt && u.lexical[0] === e) || !this.treatFunctionsAsVarInScope(u) && u.functions.indexOf(e) > -1) {
1544
+ s = true;
1545
+ break;
1546
+ }
1547
+ if (u.var.push(e), this.inModule && u.flags & ne && delete this.undefinedExports[e], u.flags & Se) break;
1548
+ }
1549
+ s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1550
+ };
1551
+ X.checkLocalExport = function(e) {
1552
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1553
+ };
1554
+ X.currentScope = function() {
1555
+ return this.scopeStack[this.scopeStack.length - 1];
1556
+ };
1557
+ X.currentVarScope = function() {
1558
+ for (var e = this.scopeStack.length - 1; ; e--) {
1559
+ var t = this.scopeStack[e];
1560
+ if (t.flags & (Se | oe | W)) return t;
1561
+ }
1562
+ };
1563
+ X.currentThisScope = function() {
1564
+ for (var e = this.scopeStack.length - 1; ; e--) {
1565
+ var t = this.scopeStack[e];
1566
+ if (t.flags & (Se | oe | W) && !(t.flags & Je)) return t;
1567
+ }
1568
+ };
1569
+ var Te = function(t, i, s) {
1570
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new ve(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1571
+ }, ue = E.prototype;
1572
+ ue.startNode = function() {
1573
+ return new Te(this, this.start, this.startLoc);
1574
+ };
1575
+ ue.startNodeAt = function(e, t) {
1576
+ return new Te(this, e, t);
1577
+ };
1578
+ function kt(e, t, i, s) {
1579
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1580
+ }
1581
+ ue.finishNode = function(e, t) {
1582
+ return kt.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1583
+ };
1584
+ ue.finishNodeAt = function(e, t, i, s) {
1585
+ return kt.call(this, e, t, i, s);
1586
+ };
1587
+ ue.copyNode = function(e) {
1588
+ var t = new Te(this, e.start, this.startLoc);
1589
+ for (var i in e) t[i] = e[i];
1590
+ return t;
1591
+ };
1592
+ var Zi = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", wt = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Pt = wt + " Extended_Pictographic", It = Pt, Nt = It + " EBase EComp EMod EPres ExtPict", Lt = Nt, es = Lt, ts = { 9: wt, 10: Pt, 11: It, 12: Nt, 13: Lt, 14: es }, is = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", ss = { 9: "", 10: "", 11: "", 12: "", 13: "", 14: is }, ct = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Rt = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Vt = Rt + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Ot = Vt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Bt = Ot + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Dt = Bt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", rs = Dt + " " + Zi, as = { 9: Rt, 10: Vt, 11: Ot, 12: Bt, 13: Dt, 14: rs }, Mt = {};
1593
+ function ns(e) {
1594
+ var t = Mt[e] = { binary: H(ts[e] + " " + ct), binaryOfStrings: H(ss[e]), nonBinary: { General_Category: H(ct), Script: H(as[e]) } };
1595
+ t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
1596
+ }
1597
+ for (de = 0, De = [9, 10, 11, 12, 13, 14]; de < De.length; de += 1) lt = De[de], ns(lt);
1598
+ var lt, de, De, l = E.prototype, ge = function(t, i) {
1599
+ this.parent = t, this.base = i || this;
1600
+ };
1601
+ ge.prototype.separatedFrom = function(t) {
1602
+ for (var i = this; i; i = i.parent) for (var s = t; s; s = s.parent) if (i.base === s.base && i !== s) return true;
1603
+ return false;
1604
+ };
1605
+ ge.prototype.sibling = function() {
1606
+ return new ge(this.parent, this.base);
1607
+ };
1608
+ var U = function(t) {
1609
+ this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = Mt[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1610
+ };
1611
+ U.prototype.reset = function(t, i, s) {
1612
+ var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
1613
+ this.start = t | 0, this.source = i + "", this.flags = s, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = true, this.switchV = true, this.switchN = true) : (this.switchU = n && this.parser.options.ecmaVersion >= 6, this.switchV = false, this.switchN = n && this.parser.options.ecmaVersion >= 9);
1614
+ };
1615
+ U.prototype.raise = function(t) {
1616
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
1617
+ };
1618
+ U.prototype.at = function(t, i) {
1619
+ i === void 0 && (i = false);
1620
+ var s = this.source, r = s.length;
1621
+ if (t >= r) return -1;
1622
+ var n = s.charCodeAt(t);
1623
+ if (!(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r) return n;
1624
+ var o = s.charCodeAt(t + 1);
1625
+ return o >= 56320 && o <= 57343 ? (n << 10) + o - 56613888 : n;
1626
+ };
1627
+ U.prototype.nextIndex = function(t, i) {
1628
+ i === void 0 && (i = false);
1629
+ var s = this.source, r = s.length;
1630
+ if (t >= r) return r;
1631
+ var n = s.charCodeAt(t), o;
1632
+ return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r || (o = s.charCodeAt(t + 1)) < 56320 || o > 57343 ? t + 1 : t + 2;
1633
+ };
1634
+ U.prototype.current = function(t) {
1635
+ return t === void 0 && (t = false), this.at(this.pos, t);
1636
+ };
1637
+ U.prototype.lookahead = function(t) {
1638
+ return t === void 0 && (t = false), this.at(this.nextIndex(this.pos, t), t);
1639
+ };
1640
+ U.prototype.advance = function(t) {
1641
+ t === void 0 && (t = false), this.pos = this.nextIndex(this.pos, t);
1642
+ };
1643
+ U.prototype.eat = function(t, i) {
1644
+ return i === void 0 && (i = false), this.current(i) === t ? (this.advance(i), true) : false;
1645
+ };
1646
+ U.prototype.eatChars = function(t, i) {
1647
+ i === void 0 && (i = false);
1648
+ for (var s = this.pos, r = 0, n = t; r < n.length; r += 1) {
1649
+ var o = n[r], p = this.at(s, i);
1650
+ if (p === -1 || p !== o) return false;
1651
+ s = this.nextIndex(s, i);
1652
+ }
1653
+ return this.pos = s, true;
1654
+ };
1655
+ l.validateRegExpFlags = function(e) {
1656
+ for (var t = e.validFlags, i = e.flags, s = false, r = false, n = 0; n < i.length; n++) {
1657
+ var o = i.charAt(n);
1658
+ t.indexOf(o) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(o, n + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), o === "u" && (s = true), o === "v" && (r = true);
1659
+ }
1660
+ this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
1661
+ };
1662
+ function os(e) {
1663
+ for (var t in e) return true;
1664
+ return false;
1665
+ }
1666
+ l.validateRegExpPattern = function(e) {
1667
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && os(e.groupNames) && (e.switchN = true, this.regexp_pattern(e));
1668
+ };
1669
+ l.regexp_pattern = function(e) {
1670
+ e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = false, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
1671
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
1672
+ var s = i[t];
1673
+ e.groupNames[s] || e.raise("Invalid named capture referenced");
1674
+ }
1675
+ };
1676
+ l.regexp_disjunction = function(e) {
1677
+ var t = this.options.ecmaVersion >= 16;
1678
+ for (t && (e.branchID = new ge(e.branchID, null)), this.regexp_alternative(e); e.eat(124); ) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
1679
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, true) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
1680
+ };
1681
+ l.regexp_alternative = function(e) {
1682
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e); ) ;
1683
+ };
1684
+ l.regexp_eatTerm = function(e) {
1685
+ return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), true) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), true) : false;
1686
+ };
1687
+ l.regexp_eatAssertion = function(e) {
1688
+ var t = e.pos;
1689
+ if (e.lastAssertionIsQuantifiable = false, e.eat(94) || e.eat(36)) return true;
1690
+ if (e.eat(92)) {
1691
+ if (e.eat(66) || e.eat(98)) return true;
1692
+ e.pos = t;
1693
+ }
1694
+ if (e.eat(40) && e.eat(63)) {
1695
+ var i = false;
1696
+ if (this.options.ecmaVersion >= 9 && (i = e.eat(60)), e.eat(61) || e.eat(33)) return this.regexp_disjunction(e), e.eat(41) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !i, true;
1697
+ }
1698
+ return e.pos = t, false;
1699
+ };
1700
+ l.regexp_eatQuantifier = function(e, t) {
1701
+ return t === void 0 && (t = false), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), true) : false;
1702
+ };
1703
+ l.regexp_eatQuantifierPrefix = function(e, t) {
1704
+ return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
1705
+ };
1706
+ l.regexp_eatBracedQuantifier = function(e, t) {
1707
+ var i = e.pos;
1708
+ if (e.eat(123)) {
1709
+ var s = 0, r = -1;
1710
+ if (this.regexp_eatDecimalDigits(e) && (s = e.lastIntValue, e.eat(44) && this.regexp_eatDecimalDigits(e) && (r = e.lastIntValue), e.eat(125))) return r !== -1 && r < s && !t && e.raise("numbers out of order in {} quantifier"), true;
1711
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
1712
+ }
1713
+ return false;
1714
+ };
1715
+ l.regexp_eatAtom = function(e) {
1716
+ return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
1717
+ };
1718
+ l.regexp_eatReverseSolidusAtomEscape = function(e) {
1719
+ var t = e.pos;
1720
+ if (e.eat(92)) {
1721
+ if (this.regexp_eatAtomEscape(e)) return true;
1722
+ e.pos = t;
1723
+ }
1724
+ return false;
1725
+ };
1726
+ l.regexp_eatUncapturingGroup = function(e) {
1727
+ var t = e.pos;
1728
+ if (e.eat(40)) {
1729
+ if (e.eat(63)) {
1730
+ if (this.options.ecmaVersion >= 16) {
1731
+ var i = this.regexp_eatModifiers(e), s = e.eat(45);
1732
+ if (i || s) {
1733
+ for (var r = 0; r < i.length; r++) {
1734
+ var n = i.charAt(r);
1735
+ i.indexOf(n, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
1736
+ }
1737
+ if (s) {
1738
+ var o = this.regexp_eatModifiers(e);
1739
+ !i && !o && e.current() === 58 && e.raise("Invalid regular expression modifiers");
1740
+ for (var p = 0; p < o.length; p++) {
1741
+ var u = o.charAt(p);
1742
+ (o.indexOf(u, p + 1) > -1 || i.indexOf(u) > -1) && e.raise("Duplicate regular expression modifiers");
1743
+ }
1744
+ }
1745
+ }
1746
+ }
1747
+ if (e.eat(58)) {
1748
+ if (this.regexp_disjunction(e), e.eat(41)) return true;
1749
+ e.raise("Unterminated group");
1750
+ }
1751
+ }
1752
+ e.pos = t;
1753
+ }
1754
+ return false;
1755
+ };
1756
+ l.regexp_eatCapturingGroup = function(e) {
1757
+ if (e.eat(40)) {
1758
+ if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(41)) return e.numCapturingParens += 1, true;
1759
+ e.raise("Unterminated group");
1760
+ }
1761
+ return false;
1762
+ };
1763
+ l.regexp_eatModifiers = function(e) {
1764
+ for (var t = "", i = 0; (i = e.current()) !== -1 && us(i); ) t += G(i), e.advance();
1765
+ return t;
1766
+ };
1767
+ function us(e) {
1768
+ return e === 105 || e === 109 || e === 115;
1769
+ }
1770
+ l.regexp_eatExtendedAtom = function(e) {
1771
+ return e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
1772
+ };
1773
+ l.regexp_eatInvalidBracedQuantifier = function(e) {
1774
+ return this.regexp_eatBracedQuantifier(e, true) && e.raise("Nothing to repeat"), false;
1775
+ };
1776
+ l.regexp_eatSyntaxCharacter = function(e) {
1777
+ var t = e.current();
1778
+ return Ft(t) ? (e.lastIntValue = t, e.advance(), true) : false;
1779
+ };
1780
+ function Ft(e) {
1781
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
1782
+ }
1783
+ l.regexp_eatPatternCharacters = function(e) {
1784
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !Ft(i); ) e.advance();
1785
+ return e.pos !== t;
1786
+ };
1787
+ l.regexp_eatExtendedPatternCharacter = function(e) {
1788
+ var t = e.current();
1789
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), true) : false;
1790
+ };
1791
+ l.regexp_groupSpecifier = function(e) {
1792
+ if (e.eat(63)) {
1793
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
1794
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
1795
+ if (i) if (t) for (var s = 0, r = i; s < r.length; s += 1) {
1796
+ var n = r[s];
1797
+ n.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
1798
+ }
1799
+ else e.raise("Duplicate capture group name");
1800
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = true;
1801
+ }
1802
+ };
1803
+ l.regexp_eatGroupName = function(e) {
1804
+ if (e.lastStringValue = "", e.eat(60)) {
1805
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return true;
1806
+ e.raise("Invalid capture group name");
1807
+ }
1808
+ return false;
1809
+ };
1810
+ l.regexp_eatRegExpIdentifierName = function(e) {
1811
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
1812
+ for (e.lastStringValue += G(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); ) e.lastStringValue += G(e.lastIntValue);
1813
+ return true;
1814
+ }
1815
+ return false;
1816
+ };
1817
+ l.regexp_eatRegExpIdentifierStart = function(e) {
1818
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
1819
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ps(s) ? (e.lastIntValue = s, true) : (e.pos = t, false);
1820
+ };
1821
+ function ps(e) {
1822
+ return F(e, true) || e === 36 || e === 95;
1823
+ }
1824
+ l.regexp_eatRegExpIdentifierPart = function(e) {
1825
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
1826
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), hs(s) ? (e.lastIntValue = s, true) : (e.pos = t, false);
1827
+ };
1828
+ function hs(e) {
1829
+ return K(e, true) || e === 36 || e === 95 || e === 8204 || e === 8205;
1830
+ }
1831
+ l.regexp_eatAtomEscape = function(e) {
1832
+ return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? true : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), false);
1833
+ };
1834
+ l.regexp_eatBackReference = function(e) {
1835
+ var t = e.pos;
1836
+ if (this.regexp_eatDecimalEscape(e)) {
1837
+ var i = e.lastIntValue;
1838
+ if (e.switchU) return i > e.maxBackReference && (e.maxBackReference = i), true;
1839
+ if (i <= e.numCapturingParens) return true;
1840
+ e.pos = t;
1841
+ }
1842
+ return false;
1843
+ };
1844
+ l.regexp_eatKGroupName = function(e) {
1845
+ if (e.eat(107)) {
1846
+ if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), true;
1847
+ e.raise("Invalid named reference");
1848
+ }
1849
+ return false;
1850
+ };
1851
+ l.regexp_eatCharacterEscape = function(e) {
1852
+ return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, false) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
1853
+ };
1854
+ l.regexp_eatCControlLetter = function(e) {
1855
+ var t = e.pos;
1856
+ if (e.eat(99)) {
1857
+ if (this.regexp_eatControlLetter(e)) return true;
1858
+ e.pos = t;
1859
+ }
1860
+ return false;
1861
+ };
1862
+ l.regexp_eatZero = function(e) {
1863
+ return e.current() === 48 && !Ce(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), true) : false;
1864
+ };
1865
+ l.regexp_eatControlEscape = function(e) {
1866
+ var t = e.current();
1867
+ return t === 116 ? (e.lastIntValue = 9, e.advance(), true) : t === 110 ? (e.lastIntValue = 10, e.advance(), true) : t === 118 ? (e.lastIntValue = 11, e.advance(), true) : t === 102 ? (e.lastIntValue = 12, e.advance(), true) : t === 114 ? (e.lastIntValue = 13, e.advance(), true) : false;
1868
+ };
1869
+ l.regexp_eatControlLetter = function(e) {
1870
+ var t = e.current();
1871
+ return jt(t) ? (e.lastIntValue = t % 32, e.advance(), true) : false;
1872
+ };
1873
+ function jt(e) {
1874
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
1875
+ }
1876
+ l.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
1877
+ t === void 0 && (t = false);
1878
+ var i = e.pos, s = t || e.switchU;
1879
+ if (e.eat(117)) {
1880
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
1881
+ var r = e.lastIntValue;
1882
+ if (s && r >= 55296 && r <= 56319) {
1883
+ var n = e.pos;
1884
+ if (e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4)) {
1885
+ var o = e.lastIntValue;
1886
+ if (o >= 56320 && o <= 57343) return e.lastIntValue = (r - 55296) * 1024 + (o - 56320) + 65536, true;
1887
+ }
1888
+ e.pos = n, e.lastIntValue = r;
1889
+ }
1890
+ return true;
1891
+ }
1892
+ if (s && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && cs(e.lastIntValue)) return true;
1893
+ s && e.raise("Invalid unicode escape"), e.pos = i;
1894
+ }
1895
+ return false;
1896
+ };
1897
+ function cs(e) {
1898
+ return e >= 0 && e <= 1114111;
1899
+ }
1900
+ l.regexp_eatIdentityEscape = function(e) {
1901
+ if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? true : e.eat(47) ? (e.lastIntValue = 47, true) : false;
1902
+ var t = e.current();
1903
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), true) : false;
1904
+ };
1905
+ l.regexp_eatDecimalEscape = function(e) {
1906
+ e.lastIntValue = 0;
1907
+ var t = e.current();
1908
+ if (t >= 49 && t <= 57) {
1909
+ do
1910
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
1911
+ while ((t = e.current()) >= 48 && t <= 57);
1912
+ return true;
1913
+ }
1914
+ return false;
1915
+ };
1916
+ var Ut = 0, q = 1, O = 2;
1917
+ l.regexp_eatCharacterClassEscape = function(e) {
1918
+ var t = e.current();
1919
+ if (ls(t)) return e.lastIntValue = -1, e.advance(), q;
1920
+ var i = false;
1921
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
1922
+ e.lastIntValue = -1, e.advance();
1923
+ var s;
1924
+ if (e.eat(123) && (s = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return i && s === O && e.raise("Invalid property name"), s;
1925
+ e.raise("Invalid property name");
1926
+ }
1927
+ return Ut;
1928
+ };
1929
+ function ls(e) {
1930
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
1931
+ }
1932
+ l.regexp_eatUnicodePropertyValueExpression = function(e) {
1933
+ var t = e.pos;
1934
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
1935
+ var i = e.lastStringValue;
1936
+ if (this.regexp_eatUnicodePropertyValue(e)) {
1937
+ var s = e.lastStringValue;
1938
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), q;
1939
+ }
1940
+ }
1941
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
1942
+ var r = e.lastStringValue;
1943
+ return this.regexp_validateUnicodePropertyNameOrValue(e, r);
1944
+ }
1945
+ return Ut;
1946
+ };
1947
+ l.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
1948
+ Y(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
1949
+ };
1950
+ l.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
1951
+ if (e.unicodeProperties.binary.test(t)) return q;
1952
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return O;
1953
+ e.raise("Invalid property name");
1954
+ };
1955
+ l.regexp_eatUnicodePropertyName = function(e) {
1956
+ var t = 0;
1957
+ for (e.lastStringValue = ""; Gt(t = e.current()); ) e.lastStringValue += G(t), e.advance();
1958
+ return e.lastStringValue !== "";
1959
+ };
1960
+ function Gt(e) {
1961
+ return jt(e) || e === 95;
1962
+ }
1963
+ l.regexp_eatUnicodePropertyValue = function(e) {
1964
+ var t = 0;
1965
+ for (e.lastStringValue = ""; fs(t = e.current()); ) e.lastStringValue += G(t), e.advance();
1966
+ return e.lastStringValue !== "";
1967
+ };
1968
+ function fs(e) {
1969
+ return Gt(e) || Ce(e);
1970
+ }
1971
+ l.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
1972
+ return this.regexp_eatUnicodePropertyValue(e);
1973
+ };
1974
+ l.regexp_eatCharacterClass = function(e) {
1975
+ if (e.eat(91)) {
1976
+ var t = e.eat(94), i = this.regexp_classContents(e);
1977
+ return e.eat(93) || e.raise("Unterminated character class"), t && i === O && e.raise("Negated character class may contain strings"), true;
1978
+ }
1979
+ return false;
1980
+ };
1981
+ l.regexp_classContents = function(e) {
1982
+ return e.current() === 93 ? q : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), q);
1983
+ };
1984
+ l.regexp_nonEmptyClassRanges = function(e) {
1985
+ for (; this.regexp_eatClassAtom(e); ) {
1986
+ var t = e.lastIntValue;
1987
+ if (e.eat(45) && this.regexp_eatClassAtom(e)) {
1988
+ var i = e.lastIntValue;
1989
+ e.switchU && (t === -1 || i === -1) && e.raise("Invalid character class"), t !== -1 && i !== -1 && t > i && e.raise("Range out of order in character class");
1990
+ }
1991
+ }
1992
+ };
1993
+ l.regexp_eatClassAtom = function(e) {
1994
+ var t = e.pos;
1995
+ if (e.eat(92)) {
1996
+ if (this.regexp_eatClassEscape(e)) return true;
1997
+ if (e.switchU) {
1998
+ var i = e.current();
1999
+ (i === 99 || Ht(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2000
+ }
2001
+ e.pos = t;
2002
+ }
2003
+ var s = e.current();
2004
+ return s !== 93 ? (e.lastIntValue = s, e.advance(), true) : false;
2005
+ };
2006
+ l.regexp_eatClassEscape = function(e) {
2007
+ var t = e.pos;
2008
+ if (e.eat(98)) return e.lastIntValue = 8, true;
2009
+ if (e.switchU && e.eat(45)) return e.lastIntValue = 45, true;
2010
+ if (!e.switchU && e.eat(99)) {
2011
+ if (this.regexp_eatClassControlLetter(e)) return true;
2012
+ e.pos = t;
2013
+ }
2014
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2015
+ };
2016
+ l.regexp_classSetExpression = function(e) {
2017
+ var t = q, i;
2018
+ if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
2019
+ i === O && (t = O);
2020
+ for (var s = e.pos; e.eatChars([38, 38]); ) {
2021
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2022
+ i !== O && (t = q);
2023
+ continue;
2024
+ }
2025
+ e.raise("Invalid character in character class");
2026
+ }
2027
+ if (s !== e.pos) return t;
2028
+ for (; e.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2029
+ if (s !== e.pos) return t;
2030
+ } else e.raise("Invalid character in character class");
2031
+ for (; ; ) if (!this.regexp_eatClassSetRange(e)) {
2032
+ if (i = this.regexp_eatClassSetOperand(e), !i) return t;
2033
+ i === O && (t = O);
2034
+ }
2035
+ };
2036
+ l.regexp_eatClassSetRange = function(e) {
2037
+ var t = e.pos;
2038
+ if (this.regexp_eatClassSetCharacter(e)) {
2039
+ var i = e.lastIntValue;
2040
+ if (e.eat(45) && this.regexp_eatClassSetCharacter(e)) {
2041
+ var s = e.lastIntValue;
2042
+ return i !== -1 && s !== -1 && i > s && e.raise("Range out of order in character class"), true;
2043
+ }
2044
+ e.pos = t;
2045
+ }
2046
+ return false;
2047
+ };
2048
+ l.regexp_eatClassSetOperand = function(e) {
2049
+ return this.regexp_eatClassSetCharacter(e) ? q : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2050
+ };
2051
+ l.regexp_eatNestedClass = function(e) {
2052
+ var t = e.pos;
2053
+ if (e.eat(91)) {
2054
+ var i = e.eat(94), s = this.regexp_classContents(e);
2055
+ if (e.eat(93)) return i && s === O && e.raise("Negated character class may contain strings"), s;
2056
+ e.pos = t;
2057
+ }
2058
+ if (e.eat(92)) {
2059
+ var r = this.regexp_eatCharacterClassEscape(e);
2060
+ if (r) return r;
2061
+ e.pos = t;
2062
+ }
2063
+ return null;
2064
+ };
2065
+ l.regexp_eatClassStringDisjunction = function(e) {
2066
+ var t = e.pos;
2067
+ if (e.eatChars([92, 113])) {
2068
+ if (e.eat(123)) {
2069
+ var i = this.regexp_classStringDisjunctionContents(e);
2070
+ if (e.eat(125)) return i;
2071
+ } else e.raise("Invalid escape");
2072
+ e.pos = t;
2073
+ }
2074
+ return null;
2075
+ };
2076
+ l.regexp_classStringDisjunctionContents = function(e) {
2077
+ for (var t = this.regexp_classString(e); e.eat(124); ) this.regexp_classString(e) === O && (t = O);
2078
+ return t;
2079
+ };
2080
+ l.regexp_classString = function(e) {
2081
+ for (var t = 0; this.regexp_eatClassSetCharacter(e); ) t++;
2082
+ return t === 1 ? q : O;
2083
+ };
2084
+ l.regexp_eatClassSetCharacter = function(e) {
2085
+ var t = e.pos;
2086
+ if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? true : e.eat(98) ? (e.lastIntValue = 8, true) : (e.pos = t, false);
2087
+ var i = e.current();
2088
+ return i < 0 || i === e.lookahead() && ds(i) || ms(i) ? false : (e.advance(), e.lastIntValue = i, true);
2089
+ };
2090
+ function ds(e) {
2091
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2092
+ }
2093
+ function ms(e) {
2094
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2095
+ }
2096
+ l.regexp_eatClassSetReservedPunctuator = function(e) {
2097
+ var t = e.current();
2098
+ return xs(t) ? (e.lastIntValue = t, e.advance(), true) : false;
2099
+ };
2100
+ function xs(e) {
2101
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2102
+ }
2103
+ l.regexp_eatClassControlLetter = function(e) {
2104
+ var t = e.current();
2105
+ return Ce(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), true) : false;
2106
+ };
2107
+ l.regexp_eatHexEscapeSequence = function(e) {
2108
+ var t = e.pos;
2109
+ if (e.eat(120)) {
2110
+ if (this.regexp_eatFixedHexDigits(e, 2)) return true;
2111
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
2112
+ }
2113
+ return false;
2114
+ };
2115
+ l.regexp_eatDecimalDigits = function(e) {
2116
+ var t = e.pos, i = 0;
2117
+ for (e.lastIntValue = 0; Ce(i = e.current()); ) e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2118
+ return e.pos !== t;
2119
+ };
2120
+ function Ce(e) {
2121
+ return e >= 48 && e <= 57;
2122
+ }
2123
+ l.regexp_eatHexDigits = function(e) {
2124
+ var t = e.pos, i = 0;
2125
+ for (e.lastIntValue = 0; qt(i = e.current()); ) e.lastIntValue = 16 * e.lastIntValue + Jt(i), e.advance();
2126
+ return e.pos !== t;
2127
+ };
2128
+ function qt(e) {
2129
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2130
+ }
2131
+ function Jt(e) {
2132
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2133
+ }
2134
+ l.regexp_eatLegacyOctalEscapeSequence = function(e) {
2135
+ if (this.regexp_eatOctalDigit(e)) {
2136
+ var t = e.lastIntValue;
2137
+ if (this.regexp_eatOctalDigit(e)) {
2138
+ var i = e.lastIntValue;
2139
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
2140
+ } else e.lastIntValue = t;
2141
+ return true;
2142
+ }
2143
+ return false;
2144
+ };
2145
+ l.regexp_eatOctalDigit = function(e) {
2146
+ var t = e.current();
2147
+ return Ht(t) ? (e.lastIntValue = t - 48, e.advance(), true) : (e.lastIntValue = 0, false);
2148
+ };
2149
+ function Ht(e) {
2150
+ return e >= 48 && e <= 55;
2151
+ }
2152
+ l.regexp_eatFixedHexDigits = function(e, t) {
2153
+ var i = e.pos;
2154
+ e.lastIntValue = 0;
2155
+ for (var s = 0; s < t; ++s) {
2156
+ var r = e.current();
2157
+ if (!qt(r)) return e.pos = i, false;
2158
+ e.lastIntValue = 16 * e.lastIntValue + Jt(r), e.advance();
2159
+ }
2160
+ return true;
2161
+ };
2162
+ var We = function(t) {
2163
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new ve(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2164
+ }, v = E.prototype;
2165
+ v.next = function(e) {
2166
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new We(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2167
+ };
2168
+ v.getToken = function() {
2169
+ return this.next(), new We(this);
2170
+ };
2171
+ typeof Symbol < "u" && (v[Symbol.iterator] = function() {
2172
+ var e = this;
2173
+ return { next: function() {
2174
+ var t = e.getToken();
2175
+ return { done: t.type === a.eof, value: t };
2176
+ } };
2177
+ });
2178
+ v.nextToken = function() {
2179
+ var e = this.curContext();
2180
+ if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(a.eof);
2181
+ if (e.override) return e.override(this);
2182
+ this.readToken(this.fullCharCodeAtPos());
2183
+ };
2184
+ v.readToken = function(e) {
2185
+ return F(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2186
+ };
2187
+ v.fullCharCodeAtPos = function() {
2188
+ var e = this.input.charCodeAt(this.pos);
2189
+ if (e <= 55295 || e >= 56320) return e;
2190
+ var t = this.input.charCodeAt(this.pos + 1);
2191
+ return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
2192
+ };
2193
+ v.skipBlockComment = function() {
2194
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2195
+ if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations) for (var s = void 0, r = t; (s = mt(this.input, r, this.pos)) > -1; ) ++this.curLine, r = this.lineStart = s;
2196
+ this.options.onComment && this.options.onComment(true, this.input.slice(t + 2, i), t, this.pos, e, this.curPosition());
2197
+ };
2198
+ v.skipLineComment = function(e) {
2199
+ for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Q(s); ) s = this.input.charCodeAt(++this.pos);
2200
+ this.options.onComment && this.options.onComment(false, this.input.slice(t + e, this.pos), t, this.pos, i, this.curPosition());
2201
+ };
2202
+ v.skipSpace = function() {
2203
+ e: for (; this.pos < this.input.length; ) {
2204
+ var e = this.input.charCodeAt(this.pos);
2205
+ switch (e) {
2206
+ case 32:
2207
+ case 160:
2208
+ ++this.pos;
2209
+ break;
2210
+ case 13:
2211
+ this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
2212
+ case 10:
2213
+ case 8232:
2214
+ case 8233:
2215
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
2216
+ break;
2217
+ case 47:
2218
+ switch (this.input.charCodeAt(this.pos + 1)) {
2219
+ case 42:
2220
+ this.skipBlockComment();
2221
+ break;
2222
+ case 47:
2223
+ this.skipLineComment(2);
2224
+ break;
2225
+ default:
2226
+ break e;
2227
+ }
2228
+ break;
2229
+ default:
2230
+ if (e > 8 && e < 14 || e >= 5760 && xt.test(String.fromCharCode(e))) ++this.pos;
2231
+ else break e;
2232
+ }
2233
+ }
2234
+ };
2235
+ v.finishToken = function(e, t) {
2236
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2237
+ var i = this.type;
2238
+ this.type = e, this.value = t, this.updateContext(i);
2239
+ };
2240
+ v.readToken_dot = function() {
2241
+ var e = this.input.charCodeAt(this.pos + 1);
2242
+ if (e >= 48 && e <= 57) return this.readNumber(true);
2243
+ var t = this.input.charCodeAt(this.pos + 2);
2244
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
2245
+ };
2246
+ v.readToken_slash = function() {
2247
+ var e = this.input.charCodeAt(this.pos + 1);
2248
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
2249
+ };
2250
+ v.readToken_mult_modulo_exp = function(e) {
2251
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
2252
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++i, s = a.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(s, i);
2253
+ };
2254
+ v.readToken_pipe_amp = function(e) {
2255
+ var t = this.input.charCodeAt(this.pos + 1);
2256
+ if (t === e) {
2257
+ if (this.options.ecmaVersion >= 12) {
2258
+ var i = this.input.charCodeAt(this.pos + 2);
2259
+ if (i === 61) return this.finishOp(a.assign, 3);
2260
+ }
2261
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
2262
+ }
2263
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
2264
+ };
2265
+ v.readToken_caret = function() {
2266
+ var e = this.input.charCodeAt(this.pos + 1);
2267
+ return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
2268
+ };
2269
+ v.readToken_plus_min = function(e) {
2270
+ var t = this.input.charCodeAt(this.pos + 1);
2271
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || N.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a.incDec, 2) : t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.plusMin, 1);
2272
+ };
2273
+ v.readToken_lt_gt = function(e) {
2274
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
2275
+ return t === e ? (i = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + i) === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(a.bitShift, i)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (i = 2), this.finishOp(a.relational, i));
2276
+ };
2277
+ v.readToken_eq_excl = function(e) {
2278
+ var t = this.input.charCodeAt(this.pos + 1);
2279
+ return t === 61 ? this.finishOp(a.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(a.arrow)) : this.finishOp(e === 61 ? a.eq : a.prefix, 1);
2280
+ };
2281
+ v.readToken_question = function() {
2282
+ var e = this.options.ecmaVersion;
2283
+ if (e >= 11) {
2284
+ var t = this.input.charCodeAt(this.pos + 1);
2285
+ if (t === 46) {
2286
+ var i = this.input.charCodeAt(this.pos + 2);
2287
+ if (i < 48 || i > 57) return this.finishOp(a.questionDot, 2);
2288
+ }
2289
+ if (t === 63) {
2290
+ if (e >= 12) {
2291
+ var s = this.input.charCodeAt(this.pos + 2);
2292
+ if (s === 61) return this.finishOp(a.assign, 3);
2293
+ }
2294
+ return this.finishOp(a.coalesce, 2);
2295
+ }
2296
+ }
2297
+ return this.finishOp(a.question, 1);
2298
+ };
2299
+ v.readToken_numberSign = function() {
2300
+ var e = this.options.ecmaVersion, t = 35;
2301
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), F(t, true) || t === 92)) return this.finishToken(a.privateId, this.readWord1());
2302
+ this.raise(this.pos, "Unexpected character '" + G(t) + "'");
2303
+ };
2304
+ v.getTokenFromCode = function(e) {
2305
+ switch (e) {
2306
+ case 46:
2307
+ return this.readToken_dot();
2308
+ case 40:
2309
+ return ++this.pos, this.finishToken(a.parenL);
2310
+ case 41:
2311
+ return ++this.pos, this.finishToken(a.parenR);
2312
+ case 59:
2313
+ return ++this.pos, this.finishToken(a.semi);
2314
+ case 44:
2315
+ return ++this.pos, this.finishToken(a.comma);
2316
+ case 91:
2317
+ return ++this.pos, this.finishToken(a.bracketL);
2318
+ case 93:
2319
+ return ++this.pos, this.finishToken(a.bracketR);
2320
+ case 123:
2321
+ return ++this.pos, this.finishToken(a.braceL);
2322
+ case 125:
2323
+ return ++this.pos, this.finishToken(a.braceR);
2324
+ case 58:
2325
+ return ++this.pos, this.finishToken(a.colon);
2326
+ case 96:
2327
+ if (this.options.ecmaVersion < 6) break;
2328
+ return ++this.pos, this.finishToken(a.backQuote);
2329
+ case 48:
2330
+ var t = this.input.charCodeAt(this.pos + 1);
2331
+ if (t === 120 || t === 88) return this.readRadixNumber(16);
2332
+ if (this.options.ecmaVersion >= 6) {
2333
+ if (t === 111 || t === 79) return this.readRadixNumber(8);
2334
+ if (t === 98 || t === 66) return this.readRadixNumber(2);
2335
+ }
2336
+ case 49:
2337
+ case 50:
2338
+ case 51:
2339
+ case 52:
2340
+ case 53:
2341
+ case 54:
2342
+ case 55:
2343
+ case 56:
2344
+ case 57:
2345
+ return this.readNumber(false);
2346
+ case 34:
2347
+ case 39:
2348
+ return this.readString(e);
2349
+ case 47:
2350
+ return this.readToken_slash();
2351
+ case 37:
2352
+ case 42:
2353
+ return this.readToken_mult_modulo_exp(e);
2354
+ case 124:
2355
+ case 38:
2356
+ return this.readToken_pipe_amp(e);
2357
+ case 94:
2358
+ return this.readToken_caret();
2359
+ case 43:
2360
+ case 45:
2361
+ return this.readToken_plus_min(e);
2362
+ case 60:
2363
+ case 62:
2364
+ return this.readToken_lt_gt(e);
2365
+ case 61:
2366
+ case 33:
2367
+ return this.readToken_eq_excl(e);
2368
+ case 63:
2369
+ return this.readToken_question();
2370
+ case 126:
2371
+ return this.finishOp(a.prefix, 1);
2372
+ case 35:
2373
+ return this.readToken_numberSign();
2374
+ }
2375
+ this.raise(this.pos, "Unexpected character '" + G(e) + "'");
2376
+ };
2377
+ v.finishOp = function(e, t) {
2378
+ var i = this.input.slice(this.pos, this.pos + t);
2379
+ return this.pos += t, this.finishToken(e, i);
2380
+ };
2381
+ v.readRegexp = function() {
2382
+ for (var e, t, i = this.pos; ; ) {
2383
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
2384
+ var s = this.input.charAt(this.pos);
2385
+ if (N.test(s) && this.raise(i, "Unterminated regular expression"), e) e = false;
2386
+ else {
2387
+ if (s === "[") t = true;
2388
+ else if (s === "]" && t) t = false;
2389
+ else if (s === "/" && !t) break;
2390
+ e = s === "\\";
2391
+ }
2392
+ ++this.pos;
2393
+ }
2394
+ var r = this.input.slice(i, this.pos);
2395
+ ++this.pos;
2396
+ var n = this.pos, o = this.readWord1();
2397
+ this.containsEsc && this.unexpected(n);
2398
+ var p = this.regexpState || (this.regexpState = new U(this));
2399
+ p.reset(i, r, o), this.validateRegExpFlags(p), this.validateRegExpPattern(p);
2400
+ var u = null;
2401
+ try {
2402
+ u = new RegExp(r, o);
2403
+ } catch {
2404
+ }
2405
+ return this.finishToken(a.regexp, { pattern: r, flags: o, value: u });
2406
+ };
2407
+ v.readInt = function(e, t, i) {
2408
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, p = 0, u = 0, c = t ?? 1 / 0; u < c; ++u, ++this.pos) {
2409
+ var d = this.input.charCodeAt(this.pos), b = void 0;
2410
+ if (s && d === 95) {
2411
+ r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), p === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), u === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), p = d;
2412
+ continue;
2413
+ }
2414
+ if (d >= 97 ? b = d - 97 + 10 : d >= 65 ? b = d - 65 + 10 : d >= 48 && d <= 57 ? b = d - 48 : b = 1 / 0, b >= e) break;
2415
+ p = d, o = o * e + b;
2416
+ }
2417
+ return s && p === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : o;
2418
+ };
2419
+ function ys(e, t) {
2420
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2421
+ }
2422
+ function Kt(e) {
2423
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
2424
+ }
2425
+ v.readRadixNumber = function(e) {
2426
+ var t = this.pos;
2427
+ this.pos += 2;
2428
+ var i = this.readInt(e);
2429
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Kt(this.input.slice(t, this.pos)), ++this.pos) : F(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2430
+ };
2431
+ v.readNumber = function(e) {
2432
+ var t = this.pos;
2433
+ !e && this.readInt(10, void 0, true) === null && this.raise(t, "Invalid number");
2434
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
2435
+ i && this.strict && this.raise(t, "Invalid number");
2436
+ var s = this.input.charCodeAt(this.pos);
2437
+ if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
2438
+ var r = Kt(this.input.slice(t, this.pos));
2439
+ return ++this.pos, F(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2440
+ }
2441
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = false), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), F(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2442
+ var n = ys(this.input.slice(t, this.pos), i);
2443
+ return this.finishToken(a.num, n);
2444
+ };
2445
+ v.readCodePoint = function() {
2446
+ var e = this.input.charCodeAt(this.pos), t;
2447
+ if (e === 123) {
2448
+ this.options.ecmaVersion < 6 && this.unexpected();
2449
+ var i = ++this.pos;
2450
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
2451
+ } else t = this.readHexChar(4);
2452
+ return t;
2453
+ };
2454
+ v.readString = function(e) {
2455
+ for (var t = "", i = ++this.pos; ; ) {
2456
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2457
+ var s = this.input.charCodeAt(this.pos);
2458
+ if (s === e) break;
2459
+ s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(false), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Q(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2460
+ }
2461
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
2462
+ };
2463
+ var Xt = {};
2464
+ v.tryReadTemplateToken = function() {
2465
+ this.inTemplateElement = true;
2466
+ try {
2467
+ this.readTmplToken();
2468
+ } catch (e) {
2469
+ if (e === Xt) this.readInvalidTemplateToken();
2470
+ else throw e;
2471
+ }
2472
+ this.inTemplateElement = false;
2473
+ };
2474
+ v.invalidStringToken = function(e, t) {
2475
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Xt;
2476
+ this.raise(e, t);
2477
+ };
2478
+ v.readTmplToken = function() {
2479
+ for (var e = "", t = this.pos; ; ) {
2480
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2481
+ var i = this.input.charCodeAt(this.pos);
2482
+ if (i === 96 || i === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === a.template || this.type === a.invalidTemplate) ? i === 36 ? (this.pos += 2, this.finishToken(a.dollarBraceL)) : (++this.pos, this.finishToken(a.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(a.template, e));
2483
+ if (i === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(true), t = this.pos;
2484
+ else if (Q(i)) {
2485
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
2486
+ case 13:
2487
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2488
+ case 10:
2489
+ e += `
2490
+ `;
2491
+ break;
2492
+ default:
2493
+ e += String.fromCharCode(i);
2494
+ break;
2495
+ }
2496
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
2497
+ } else ++this.pos;
2498
+ }
2499
+ };
2500
+ v.readInvalidTemplateToken = function() {
2501
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2502
+ case "\\":
2503
+ ++this.pos;
2504
+ break;
2505
+ case "$":
2506
+ if (this.input[this.pos + 1] !== "{") break;
2507
+ case "`":
2508
+ return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
2509
+ case "\r":
2510
+ this.input[this.pos + 1] === `
2511
+ ` && ++this.pos;
2512
+ case `
2513
+ `:
2514
+ case "\u2028":
2515
+ case "\u2029":
2516
+ ++this.curLine, this.lineStart = this.pos + 1;
2517
+ break;
2518
+ }
2519
+ this.raise(this.start, "Unterminated template");
2520
+ };
2521
+ v.readEscapedChar = function(e) {
2522
+ var t = this.input.charCodeAt(++this.pos);
2523
+ switch (++this.pos, t) {
2524
+ case 110:
2525
+ return `
2526
+ `;
2527
+ case 114:
2528
+ return "\r";
2529
+ case 120:
2530
+ return String.fromCharCode(this.readHexChar(2));
2531
+ case 117:
2532
+ return G(this.readCodePoint());
2533
+ case 116:
2534
+ return " ";
2535
+ case 98:
2536
+ return "\b";
2537
+ case 118:
2538
+ return "\v";
2539
+ case 102:
2540
+ return "\f";
2541
+ case 13:
2542
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2543
+ case 10:
2544
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2545
+ case 56:
2546
+ case 57:
2547
+ if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e) {
2548
+ var i = this.pos - 1;
2549
+ this.invalidStringToken(i, "Invalid escape sequence in template string");
2550
+ }
2551
+ default:
2552
+ if (t >= 48 && t <= 55) {
2553
+ var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
2554
+ return r > 255 && (s = s.slice(0, -1), r = parseInt(s, 8)), this.pos += s.length - 1, t = this.input.charCodeAt(this.pos), (s !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(this.pos - 1 - s.length, e ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(r);
2555
+ }
2556
+ return Q(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
2557
+ }
2558
+ };
2559
+ v.readHexChar = function(e) {
2560
+ var t = this.pos, i = this.readInt(16, e);
2561
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
2562
+ };
2563
+ v.readWord1 = function() {
2564
+ this.containsEsc = false;
2565
+ for (var e = "", t = true, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2566
+ var r = this.fullCharCodeAtPos();
2567
+ if (K(r, s)) this.pos += r <= 65535 ? 1 : 2;
2568
+ else if (r === 92) {
2569
+ this.containsEsc = true, e += this.input.slice(i, this.pos);
2570
+ var n = this.pos;
2571
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2572
+ var o = this.readCodePoint();
2573
+ (t ? F : K)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += G(o), i = this.pos;
2574
+ } else break;
2575
+ t = false;
2576
+ }
2577
+ return e + this.input.slice(i, this.pos);
2578
+ };
2579
+ v.readWord = function() {
2580
+ var e = this.readWord1(), t = a.name;
2581
+ return this.keywords.test(e) && (t = Ge[e]), this.finishToken(t, e);
2582
+ };
2583
+ var gs = "8.15.0";
2584
+ E.acorn = { Parser: E, version: gs, defaultOptions: Fe, Position: ae, SourceLocation: ve, getLineInfo: gt, Node: Te, TokenType: _, tokTypes: a, keywordTypes: Ge, TokContext: M, tokContexts: T, isIdentifierChar: K, isIdentifierStart: F, Token: We, isNewLine: Q, lineBreak: N, lineBreakG: Ui, nonASCIIwhitespace: xt };
2585
+ var vi = ot(Qe());
2586
+ function Cs(e, t) {
2587
+ let i = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
2588
+ return Object.assign(i, t);
2589
+ }
2590
+ var Ee = Cs;
2591
+ function Ae(e) {
2592
+ let t = [];
2593
+ for (let i of e) try {
2594
+ return i();
2595
+ } catch (s) {
2596
+ t.push(s);
2597
+ }
2598
+ throw Object.assign(new Error("All combinations failed"), { errors: t });
2599
+ }
2600
+ var ee = (e, t) => (i, s, ...r) => i | 1 && s == null ? void 0 : (t.call(s) ?? s[e]).apply(s, r);
2601
+ var Es = Array.prototype.findLast ?? function(e) {
2602
+ for (let t = this.length - 1; t >= 0; t--) {
2603
+ let i = this[t];
2604
+ if (e(i, t, this)) return i;
2605
+ }
2606
+ }, As = ee("findLast", function() {
2607
+ if (Array.isArray(this)) return Es;
2608
+ }), $t = As;
2609
+ function ks(e) {
2610
+ return this[e < 0 ? this.length + e : e];
2611
+ }
2612
+ var ws = ee("at", function() {
2613
+ if (Array.isArray(this) || typeof this == "string") return ks;
2614
+ }), te = ws;
2615
+ function D(e) {
2616
+ let t = e.range?.[0] ?? e.start, i = (e.declaration?.decorators ?? e.decorators)?.[0];
2617
+ return i ? Math.min(D(i), t) : t;
2618
+ }
2619
+ function L(e) {
2620
+ return e.range?.[1] ?? e.end;
2621
+ }
2622
+ function Ps(e) {
2623
+ let t = new Set(e);
2624
+ return (i) => t.has(i?.type);
2625
+ }
2626
+ var ie = Ps;
2627
+ var Is = ie(["Block", "CommentBlock", "MultiLine"]), se = Is;
2628
+ var Ns = ie(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]), Zt = Ns;
2629
+ var Ye = /* @__PURE__ */ new WeakMap();
2630
+ function Ls(e) {
2631
+ return Ye.has(e) || Ye.set(e, se(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Ye.get(e);
2632
+ }
2633
+ var ei = Ls;
2634
+ function Rs(e) {
2635
+ if (!se(e)) return false;
2636
+ let t = `*${e.value}*`.split(`
2637
+ `);
2638
+ return t.length > 1 && t.every((i) => i.trimStart()[0] === "*");
2639
+ }
2640
+ var $e = /* @__PURE__ */ new WeakMap();
2641
+ function Vs(e) {
2642
+ return $e.has(e) || $e.set(e, Rs(e)), $e.get(e);
2643
+ }
2644
+ var Ze = Vs;
2645
+ function Os(e) {
2646
+ if (e.length < 2) return;
2647
+ let t;
2648
+ for (let i = e.length - 1; i >= 0; i--) {
2649
+ let s = e[i];
2650
+ if (t && L(s) === D(t) && Ze(s) && Ze(t) && (e.splice(i + 1, 1), s.value += "*//*" + t.value, s.range = [D(s), L(t)]), !Zt(s) && !se(s)) throw new TypeError(`Unknown comment type: "${s.type}".`);
2651
+ t = s;
2652
+ }
2653
+ }
2654
+ var ti = Os;
2655
+ var he = null;
2656
+ function ce(e) {
2657
+ if (he !== null && typeof he.property) {
2658
+ let t = he;
2659
+ return he = ce.prototype = null, t;
2660
+ }
2661
+ return he = ce.prototype = e ?? /* @__PURE__ */ Object.create(null), new ce();
2662
+ }
2663
+ var Bs = 10;
2664
+ for (let e = 0; e <= Bs; e++) ce();
2665
+ function et(e) {
2666
+ return ce(e);
2667
+ }
2668
+ function Ds(e, t = "type") {
2669
+ et(e);
2670
+ function i(s) {
2671
+ let r = s[t], n = e[r];
2672
+ if (!Array.isArray(n)) throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), { node: s });
2673
+ return n;
2674
+ }
2675
+ return i;
2676
+ }
2677
+ var ii = Ds;
2678
+ var si = { AccessorProperty: ["decorators", "key", "typeAnnotation", "value"], AnyTypeAnnotation: [], ArgumentPlaceholder: [], ArrayExpression: ["elements"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrayTypeAnnotation: ["elementType"], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], AsConstExpression: ["expression"], AsExpression: ["expression", "typeAnnotation"], AssignmentExpression: ["left", "right"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], AwaitExpression: ["argument"], BigIntLiteral: [], BigIntLiteralTypeAnnotation: [], BigIntTypeAnnotation: [], BinaryExpression: ["left", "right"], BindExpression: ["object", "callee"], BlockStatement: ["directives", "body"], BooleanLiteral: [], BooleanLiteralTypeAnnotation: [], BooleanTypeAnnotation: [], BreakStatement: ["label"], CallExpression: ["callee", "typeArguments", "arguments"], CatchClause: ["param", "body"], ChainExpression: ["expression"], ClassAccessorProperty: ["decorators", "key", "typeAnnotation", "value"], ClassBody: ["body"], ClassDeclaration: ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ClassExpression: ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body", "superTypeParameters"], ClassImplements: ["id", "typeParameters"], ClassMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ClassPrivateMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ClassPrivateProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ClassProperty: ["decorators", "variance", "key", "typeAnnotation", "value"], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: ["name", "typeAnnotation"], ConditionalExpression: ["test", "consequent", "alternate"], ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"], ContinueStatement: ["label"], DebuggerStatement: [], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclaredPredicate: ["value"], DeclareEnum: ["id", "body"], DeclareExportAllDeclaration: ["source", "attributes"], DeclareExportDeclaration: ["declaration", "specifiers", "source", "attributes"], DeclareFunction: ["id", "predicate"], DeclareHook: ["id"], DeclareInterface: ["id", "typeParameters", "extends", "body"], DeclareModule: ["id", "body"], DeclareModuleExports: ["typeAnnotation"], DeclareNamespace: ["id", "body"], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareTypeAlias: ["id", "typeParameters", "right"], DeclareVariable: ["id"], Decorator: ["expression"], Directive: ["value"], DirectiveLiteral: [], DoExpression: ["body"], DoWhileStatement: ["body", "test"], EmptyStatement: [], EmptyTypeAnnotation: [], EnumBigIntBody: ["members"], EnumBigIntMember: ["id", "init"], EnumBooleanBody: ["members"], EnumBooleanMember: ["id", "init"], EnumDeclaration: ["id", "body"], EnumDefaultedMember: ["id"], EnumNumberBody: ["members"], EnumNumberMember: ["id", "init"], EnumStringBody: ["members"], EnumStringMember: ["id", "init"], EnumSymbolBody: ["members"], ExistsTypeAnnotation: [], ExperimentalRestProperty: ["argument"], ExperimentalSpreadProperty: ["argument"], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportDefaultSpecifier: ["exported"], ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"], ExportNamespaceSpecifier: ["exported"], ExportSpecifier: ["local", "exported"], ExpressionStatement: ["expression"], File: ["program"], ForInStatement: ["left", "right", "body"], ForOfStatement: ["left", "right", "body"], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: ["id", "typeParameters", "params", "predicate", "returnType", "body"], FunctionExpression: ["id", "typeParameters", "params", "predicate", "returnType", "body"], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: ["name", "typeAnnotation"], GenericTypeAnnotation: ["id", "typeParameters"], HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: ["test", "consequent", "alternate"], ImportAttribute: ["key", "value"], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: ["local"], ImportExpression: ["source", "options"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["imported", "local"], IndexedAccessType: ["objectType", "indexType"], InferredPredicate: [], InferTypeAnnotation: ["typeParameter"], InterfaceDeclaration: ["id", "typeParameters", "extends", "body"], InterfaceExtends: ["id", "typeParameters"], InterfaceTypeAnnotation: ["extends", "body"], InterpreterDirective: [], IntersectionTypeAnnotation: ["types"], JsExpressionRoot: ["node"], JsonRoot: ["node"], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXClosingFragment: [], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: ["expression"], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXIdentifier: [], JSXMemberExpression: ["object", "property"], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXOpeningFragment: [], JSXSpreadAttribute: ["argument"], JSXSpreadChild: ["expression"], JSXText: [], KeyofTypeAnnotation: ["argument"], LabeledStatement: ["label", "body"], Literal: [], LogicalExpression: ["left", "right"], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: ["id"], MatchExpression: ["argument", "cases"], MatchExpressionCase: ["pattern", "body", "guard"], MatchIdentifierPattern: ["id"], MatchLiteralPattern: ["literal"], MatchMemberPattern: ["base", "property"], MatchObjectPattern: ["properties", "rest"], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: ["argument"], MatchStatement: ["argument", "cases"], MatchStatementCase: ["pattern", "body", "guard"], MatchUnaryPattern: ["argument"], MatchWildcardPattern: [], MemberExpression: ["object", "property"], MetaProperty: ["meta", "property"], MethodDefinition: ["decorators", "key", "value"], MixedTypeAnnotation: [], ModuleExpression: ["body"], NeverTypeAnnotation: [], NewExpression: ["callee", "typeArguments", "arguments"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGMicrosyntax: ["body"], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: [], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGPipeExpression: ["left", "right", "arguments"], NGRoot: ["node"], NullableTypeAnnotation: ["typeAnnotation"], NullLiteral: [], NullLiteralTypeAnnotation: [], NumberLiteralTypeAnnotation: [], NumberTypeAnnotation: [], NumericLiteral: [], ObjectExpression: ["properties"], ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"], ObjectPattern: ["decorators", "properties", "typeAnnotation"], ObjectProperty: ["decorators", "key", "value"], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeCallProperty: ["value"], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: ["argument"], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], OptionalCallExpression: ["callee", "typeArguments", "arguments"], OptionalIndexedAccessType: ["objectType", "indexType"], OptionalMemberExpression: ["object", "property"], ParenthesizedExpression: ["expression"], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: [], PipelineTopicExpression: ["expression"], Placeholder: [], PrivateIdentifier: [], PrivateName: ["id"], Program: ["directives", "body"], Property: ["key", "value"], PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"], QualifiedTypeIdentifier: ["qualification", "id"], QualifiedTypeofIdentifier: ["qualification", "id"], RegExpLiteral: [], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: ["argument"], SatisfiesExpression: ["expression", "typeAnnotation"], SequenceExpression: ["expressions"], SpreadElement: ["argument"], StaticBlock: ["body"], StringLiteral: [], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], Super: [], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], SymbolTypeAnnotation: [], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], ThisExpression: [], ThisTypeAnnotation: [], ThrowStatement: ["argument"], TopicReference: [], TryStatement: ["block", "handler", "finalizer"], TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"], TSAbstractKeyword: [], TSAbstractMethodDefinition: ["key", "value"], TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"], TSAnyKeyword: [], TSArrayType: ["elementType"], TSAsExpression: ["expression", "typeAnnotation"], TSAsyncKeyword: [], TSBigIntKeyword: [], TSBooleanKeyword: [], TSCallSignatureDeclaration: ["typeParameters", "params", "returnType"], TSClassImplements: ["expression", "typeArguments"], TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"], TSConstructorType: ["typeParameters", "params", "returnType"], TSConstructSignatureDeclaration: ["typeParameters", "params", "returnType"], TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"], TSDeclareKeyword: [], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: ["members"], TSEnumDeclaration: ["id", "body"], TSEnumMember: ["id", "initializer"], TSExportAssignment: ["expression"], TSExportKeyword: [], TSExternalModuleReference: ["expression"], TSFunctionType: ["typeParameters", "params", "returnType"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSImportType: ["options", "qualifier", "typeArguments", "source"], TSIndexedAccessType: ["objectType", "indexType"], TSIndexSignature: ["parameters", "typeAnnotation"], TSInferType: ["typeParameter"], TSInstantiationExpression: ["expression", "typeArguments"], TSInterfaceBody: ["body"], TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"], TSInterfaceHeritage: ["expression", "typeArguments"], TSIntersectionType: ["types"], TSIntrinsicKeyword: [], TSJSDocAllType: [], TSJSDocNonNullableType: ["typeAnnotation"], TSJSDocNullableType: ["typeAnnotation"], TSJSDocUnknownType: [], TSLiteralType: ["literal"], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "params", "returnType"], TSModuleBlock: ["body"], TSModuleDeclaration: ["id", "body"], TSNamedTupleMember: ["label", "elementType"], TSNamespaceExportDeclaration: ["id"], TSNeverKeyword: [], TSNonNullExpression: ["expression"], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSOptionalType: ["typeAnnotation"], TSParameterProperty: ["parameter", "decorators"], TSParenthesizedType: ["typeAnnotation"], TSPrivateKeyword: [], TSPropertySignature: ["key", "typeAnnotation"], TSProtectedKeyword: [], TSPublicKeyword: [], TSQualifiedName: ["left", "right"], TSReadonlyKeyword: [], TSRestType: ["typeAnnotation"], TSSatisfiesExpression: ["expression", "typeAnnotation"], TSStaticKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSTemplateLiteralType: ["quasis", "types"], TSThisType: [], TSTupleType: ["elementTypes"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSTypeAnnotation: ["typeAnnotation"], TSTypeAssertion: ["typeAnnotation", "expression"], TSTypeLiteral: ["members"], TSTypeOperator: ["typeAnnotation"], TSTypeParameter: ["name", "constraint", "default"], TSTypeParameterDeclaration: ["params"], TSTypeParameterInstantiation: ["params"], TSTypePredicate: ["parameterName", "typeAnnotation"], TSTypeQuery: ["exprName", "typeArguments"], TSTypeReference: ["typeName", "typeArguments"], TSUndefinedKeyword: [], TSUnionType: ["types"], TSUnknownKeyword: [], TSVoidKeyword: [], TupleTypeAnnotation: ["types", "elementTypes"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeAlias: ["id", "typeParameters", "right"], TypeAnnotation: ["typeAnnotation"], TypeCastExpression: ["expression", "typeAnnotation"], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeOperator: ["typeAnnotation"], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: ["params"], TypeParameterInstantiation: ["params"], TypePredicate: ["parameterName", "typeAnnotation"], UnaryExpression: ["argument"], UndefinedTypeAnnotation: [], UnionTypeAnnotation: ["types"], UnknownTypeAnnotation: [], UpdateExpression: ["argument"], V8IntrinsicIdentifier: [], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], Variance: [], VoidPattern: [], VoidTypeAnnotation: [], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], YieldExpression: ["argument"] };
2679
+ var Ms = ii(si), ri = Ms;
2680
+ function tt(e, t) {
2681
+ if (!(e !== null && typeof e == "object")) return e;
2682
+ if (Array.isArray(e)) {
2683
+ for (let s = 0; s < e.length; s++) e[s] = tt(e[s], t);
2684
+ return e;
2685
+ }
2686
+ t.onEnter && (e = t.onEnter(e) || e);
2687
+ let i = ri(e);
2688
+ for (let s = 0; s < i.length; s++) e[i[s]] = tt(e[i[s]], t);
2689
+ return t.onLeave(e) || e;
2690
+ }
2691
+ var ai = tt;
2692
+ ie(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
2693
+ function Fs(e, t) {
2694
+ let { parser: i, text: s } = t, { comments: r } = e, n = i === "oxc" && t.oxcAstType === "ts";
2695
+ ti(r);
2696
+ let o;
2697
+ e = ai(e, { onLeave(u) {
2698
+ switch (u.type) {
2699
+ case "ParenthesizedExpression": {
2700
+ let { expression: c } = u, d = D(u);
2701
+ if (c.type === "TypeCastExpression") return c.range = [d, L(u)], c;
2702
+ let b = false;
2703
+ if (!n) {
2704
+ if (!o) {
2705
+ o = [];
2706
+ for (let h of r) ei(h) && o.push(L(h));
2707
+ }
2708
+ let C = $t(0, o, (h) => h <= d);
2709
+ b = C && s.slice(C, d).trim().length === 0;
2710
+ }
2711
+ if (!b) return c.extra = { ...c.extra, parenthesized: true }, c;
2712
+ break;
2713
+ }
2714
+ case "LogicalExpression":
2715
+ if (ni(u)) return it(u);
2716
+ break;
2717
+ case "TemplateLiteral":
2718
+ if (u.expressions.length !== u.quasis.length - 1) throw new Error("Malformed template literal.");
2719
+ break;
2720
+ case "TemplateElement":
2721
+ if (i === "flow" || i === "hermes" || i === "espree" || i === "typescript" || n) {
2722
+ let c = D(u) + 1, d = L(u) - (u.tail ? 1 : 2);
2723
+ u.range = [c, d];
2724
+ }
2725
+ break;
2726
+ case "VariableDeclaration": {
2727
+ let c = te(0, u.declarations, -1);
2728
+ c?.init && s[L(c)] !== ";" && (u.range = [D(u), L(c)]);
2729
+ break;
2730
+ }
2731
+ case "TSParenthesizedType":
2732
+ return u.typeAnnotation;
2733
+ case "TopicReference":
2734
+ e.extra = { ...e.extra, __isUsingHackPipeline: true };
2735
+ break;
2736
+ case "TSUnionType":
2737
+ case "TSIntersectionType":
2738
+ if (u.types.length === 1) return u.types[0];
2739
+ break;
2740
+ case "ImportExpression":
2741
+ i === "hermes" && u.attributes && !u.options && (u.options = u.attributes);
2742
+ break;
2743
+ case "TSImportType":
2744
+ !u.source && u.argument.type === "TSLiteralType" && (u.source = u.argument.literal, delete u.argument);
2745
+ break;
2746
+ }
2747
+ } });
2748
+ let p = e.type === "File" ? e.program : e;
2749
+ return p.interpreter && (r.unshift(p.interpreter), delete p.interpreter), n && e.hashbang && (r.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, s.length]), e;
2750
+ }
2751
+ function ni(e) {
2752
+ return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
2753
+ }
2754
+ function it(e) {
2755
+ return ni(e) ? it({ type: "LogicalExpression", operator: e.operator, left: it({ type: "LogicalExpression", operator: e.operator, left: e.left, right: e.right.left, range: [D(e.left), L(e.right.left)] }), right: e.right.right, range: [D(e), L(e)] }) : e;
2756
+ }
2757
+ var ke = Fs;
2758
+ var js = String.prototype.replaceAll ?? function(e, t) {
2759
+ return e.global ? this.replace(e, t) : this.split(e).join(t);
2760
+ }, Us = ee("replaceAll", function() {
2761
+ if (typeof this == "string") return js;
2762
+ }), le = Us;
2763
+ var Gs = /\*\/$/, qs = /^\/\*\*?/, Js = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, Hs = /(^|\s+)\/\/([^\n\r]*)/g, oi = /^(\r?\n)+/, Ks = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, ui = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, Xs = /(\r?\n|^) *\* ?/g, Ws = [];
2764
+ function pi(e) {
2765
+ let t = e.match(Js);
2766
+ return t ? t[0].trimStart() : "";
2767
+ }
2768
+ function hi(e) {
2769
+ e = le(0, e.replace(qs, "").replace(Gs, ""), Xs, "$1");
2770
+ let i = "";
2771
+ for (; i !== e; ) i = e, e = le(0, e, Ks, `
2772
+ $1 $2
2773
+ `);
2774
+ e = e.replace(oi, "").trimEnd();
2775
+ let s = /* @__PURE__ */ Object.create(null), r = le(0, e, ui, "").replace(oi, "").trimEnd(), n;
2776
+ for (; n = ui.exec(e); ) {
2777
+ let o = le(0, n[2], Hs, "");
2778
+ if (typeof s[n[1]] == "string" || Array.isArray(s[n[1]])) {
2779
+ let p = s[n[1]];
2780
+ s[n[1]] = [...Ws, ...Array.isArray(p) ? p : [p], o];
2781
+ } else s[n[1]] = o;
2782
+ }
2783
+ return { comments: r, pragmas: s };
2784
+ }
2785
+ var ci = ["noformat", "noprettier"], li = ["format", "prettier"];
2786
+ function zs(e) {
2787
+ if (!e.startsWith("#!")) return "";
2788
+ let t = e.indexOf(`
2789
+ `);
2790
+ return t === -1 ? e : e.slice(0, t);
2791
+ }
2792
+ var fi = zs;
2793
+ function di(e) {
2794
+ let t = fi(e);
2795
+ t && (e = e.slice(t.length + 1));
2796
+ let i = pi(e), { pragmas: s, comments: r } = hi(i);
2797
+ return { shebang: t, text: e, pragmas: s, comments: r };
2798
+ }
2799
+ function mi(e) {
2800
+ let { pragmas: t } = di(e);
2801
+ return li.some((i) => Object.prototype.hasOwnProperty.call(t, i));
2802
+ }
2803
+ function xi(e) {
2804
+ let { pragmas: t } = di(e);
2805
+ return ci.some((i) => Object.prototype.hasOwnProperty.call(t, i));
2806
+ }
2807
+ function Qs(e) {
2808
+ return e = typeof e == "function" ? { parse: e } : e, { astFormat: "estree", hasPragma: mi, hasIgnorePragma: xi, locStart: D, locEnd: L, ...e };
2809
+ }
2810
+ var we = Qs;
2811
+ var Pe = "module", yi = "script", Ie = "commonjs", Ne = [Pe, Ie];
2812
+ function Le(e) {
2813
+ if (typeof e == "string") {
2814
+ if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e)) return Pe;
2815
+ if (/\.(?:cjs|cts)$/iu.test(e)) return Ie;
2816
+ }
2817
+ }
2818
+ var Ys = { ecmaVersion: "latest", allowReserved: true, allowReturnOutsideFunction: true, allowSuperOutsideMethod: true, checkPrivateFields: false, locations: false, ranges: true, preserveParens: true };
2819
+ function $s(e) {
2820
+ let { message: t, loc: i } = e;
2821
+ if (!i) return e;
2822
+ let { line: s, column: r } = i;
2823
+ return Ee(t.replace(/ \(\d+:\d+\)$/u, ""), { loc: { start: { line: s, column: r + 1 } }, cause: e });
2824
+ }
2825
+ var gi, Zs = () => (gi ?? (gi = E.extend((0, vi.default)())), gi);
2826
+ function er(e, t) {
2827
+ let i = Zs(), s = [], r = i.parse(e, { ...Ys, sourceType: t === Ie ? yi : t, allowImportExportEverywhere: t === Pe, onComment: s });
2828
+ return r.comments = s, r;
2829
+ }
2830
+ function tr(e, t) {
2831
+ let i = Le(t?.filepath), s = (i ? [i] : Ne).map((n) => () => er(e, n)), r;
2832
+ try {
2833
+ r = Ae(s);
2834
+ } catch ({ errors: [n] }) {
2835
+ throw $s(n);
2836
+ }
2837
+ return ke(r, { text: e });
2838
+ }
2839
+ var bi = we(tr);
2840
+ var Ci = ot(Qe());
2841
+ var w = { Boolean: "Boolean", Identifier: "Identifier", PrivateIdentifier: "PrivateIdentifier", Keyword: "Keyword", Null: "Null", Numeric: "Numeric", Punctuator: "Punctuator", String: "String", RegularExpression: "RegularExpression", Template: "Template", JSXIdentifier: "JSXIdentifier", JSXText: "JSXText" };
2842
+ function ir(e, t) {
2843
+ let i = e[0], s = te(0, e, -1), r = { type: w.Template, value: t.slice(i.start, s.end) };
2844
+ return i.loc && (r.loc = { start: i.loc.start, end: s.loc.end }), i.range && (r.start = i.range[0], r.end = s.range[1], r.range = [r.start, r.end]), r;
2845
+ }
2846
+ function st(e, t) {
2847
+ this._acornTokTypes = e, this._tokens = [], this._curlyBrace = null, this._code = t;
2848
+ }
2849
+ st.prototype = { constructor: st, translate(e, t) {
2850
+ let i = e.type, s = this._acornTokTypes;
2851
+ if (i === s.name) e.type = w.Identifier, e.value === "static" && (e.type = w.Keyword), t.ecmaVersion > 5 && (e.value === "yield" || e.value === "let") && (e.type = w.Keyword);
2852
+ else if (i === s.privateId) e.type = w.PrivateIdentifier;
2853
+ else if (i === s.semi || i === s.comma || i === s.parenL || i === s.parenR || i === s.braceL || i === s.braceR || i === s.dot || i === s.bracketL || i === s.colon || i === s.question || i === s.bracketR || i === s.ellipsis || i === s.arrow || i === s.jsxTagStart || i === s.incDec || i === s.starstar || i === s.jsxTagEnd || i === s.prefix || i === s.questionDot || i.binop && !i.keyword || i.isAssign) e.type = w.Punctuator, e.value = this._code.slice(e.start, e.end);
2854
+ else if (i === s.jsxName) e.type = w.JSXIdentifier;
2855
+ else if (i.label === "jsxText" || i === s.jsxAttrValueToken) e.type = w.JSXText;
2856
+ else if (i.keyword) i.keyword === "true" || i.keyword === "false" ? e.type = w.Boolean : i.keyword === "null" ? e.type = w.Null : e.type = w.Keyword;
2857
+ else if (i === s.num) e.type = w.Numeric, e.value = this._code.slice(e.start, e.end);
2858
+ else if (i === s.string) t.jsxAttrValueToken ? (t.jsxAttrValueToken = false, e.type = w.JSXText) : e.type = w.String, e.value = this._code.slice(e.start, e.end);
2859
+ else if (i === s.regexp) {
2860
+ e.type = w.RegularExpression;
2861
+ let r = e.value;
2862
+ e.regex = { flags: r.flags, pattern: r.pattern }, e.value = `/${r.pattern}/${r.flags}`;
2863
+ }
2864
+ return e;
2865
+ }, onToken(e, t) {
2866
+ let i = this._acornTokTypes, s = t.tokens, r = this._tokens, n = () => {
2867
+ s.push(ir(this._tokens, this._code)), this._tokens = [];
2868
+ };
2869
+ if (e.type === i.eof) {
2870
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t));
2871
+ return;
2872
+ }
2873
+ if (e.type === i.backQuote) {
2874
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), r.push(e), r.length > 1 && n();
2875
+ return;
2876
+ }
2877
+ if (e.type === i.dollarBraceL) {
2878
+ r.push(e), n();
2879
+ return;
2880
+ }
2881
+ if (e.type === i.braceR) {
2882
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = e;
2883
+ return;
2884
+ }
2885
+ if (e.type === i.template || e.type === i.invalidTemplate) {
2886
+ this._curlyBrace && (r.push(this._curlyBrace), this._curlyBrace = null), r.push(e);
2887
+ return;
2888
+ }
2889
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), s.push(this.translate(e, t));
2890
+ } };
2891
+ var Si = st;
2892
+ var _i = [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
2893
+ function sr() {
2894
+ return te(0, _i, -1);
2895
+ }
2896
+ function rr(e = 5) {
2897
+ let t = e === "latest" ? sr() : e;
2898
+ if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);
2899
+ if (t >= 2015 && (t -= 2009), !_i.includes(t)) throw new Error("Invalid ecmaVersion.");
2900
+ return t;
2901
+ }
2902
+ function ar(e = "script") {
2903
+ if (e === "script" || e === "module") return e;
2904
+ if (e === "commonjs") return "script";
2905
+ throw new Error("Invalid sourceType.");
2906
+ }
2907
+ function Ti(e) {
2908
+ let t = rr(e.ecmaVersion), i = ar(e.sourceType), s = e.range === true, r = e.loc === true;
2909
+ if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
2910
+ if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
2911
+ let n = t === 3 ? e.allowReserved || "never" : false, o = e.ecmaFeatures || {}, p = e.sourceType === "commonjs" || !!o.globalReturn;
2912
+ if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
2913
+ return Object.assign({}, e, { ecmaVersion: t, sourceType: i, ranges: s, locations: r, allowReserved: n, allowReturnOutsideFunction: p });
2914
+ }
2915
+ var z = Symbol("espree's internal state"), rt = Symbol("espree's esprimaFinishNode");
2916
+ function nr(e, t, i, s, r, n, o) {
2917
+ let p;
2918
+ e ? p = "Block" : o.slice(i, i + 2) === "#!" ? p = "Hashbang" : p = "Line";
2919
+ let u = { type: p, value: t };
2920
+ return typeof i == "number" && (u.start = i, u.end = s, u.range = [i, s]), typeof r == "object" && (u.loc = { start: r, end: n }), u;
2921
+ }
2922
+ var at = () => (e) => {
2923
+ let t = Object.assign({}, e.acorn.tokTypes);
2924
+ return e.acornJsx && Object.assign(t, e.acornJsx.tokTypes), class extends e {
2925
+ constructor(s, r) {
2926
+ (typeof s != "object" || s === null) && (s = {}), typeof r != "string" && !(r instanceof String) && (r = String(r));
2927
+ let n = s.sourceType, o = Ti(s), p = o.ecmaFeatures || {}, u = o.tokens === true ? new Si(t, r) : null, c = { originalSourceType: n || o.sourceType, tokens: u ? [] : null, comments: o.comment === true ? [] : null, impliedStrict: p.impliedStrict === true && o.ecmaVersion >= 5, ecmaVersion: o.ecmaVersion, jsxAttrValueToken: false, lastToken: null, templateElements: [] };
2928
+ super({ ecmaVersion: o.ecmaVersion, sourceType: o.sourceType, ranges: o.ranges, locations: o.locations, allowReserved: o.allowReserved, allowReturnOutsideFunction: o.allowReturnOutsideFunction, onToken(d) {
2929
+ u && u.onToken(d, c), d.type !== t.eof && (c.lastToken = d);
2930
+ }, onComment(d, b, C, h, m, x) {
2931
+ if (c.comments) {
2932
+ let g = nr(d, b, C, h, m, x, r);
2933
+ c.comments.push(g);
2934
+ }
2935
+ } }, r), this[z] = c;
2936
+ }
2937
+ tokenize() {
2938
+ do
2939
+ this.next();
2940
+ while (this.type !== t.eof);
2941
+ this.next();
2942
+ let s = this[z], r = s.tokens;
2943
+ return s.comments && (r.comments = s.comments), r;
2944
+ }
2945
+ finishNode(...s) {
2946
+ let r = super.finishNode(...s);
2947
+ return this[rt](r);
2948
+ }
2949
+ finishNodeAt(...s) {
2950
+ let r = super.finishNodeAt(...s);
2951
+ return this[rt](r);
2952
+ }
2953
+ parse() {
2954
+ let s = this[z], r = super.parse();
2955
+ return r.sourceType = s.originalSourceType, s.comments && (r.comments = s.comments), s.tokens && (r.tokens = s.tokens), this[z].templateElements.forEach((n) => {
2956
+ let p = n.tail ? 1 : 2;
2957
+ n.start += -1, n.end += p, n.range && (n.range[0] += -1, n.range[1] += p), n.loc && (n.loc.start.column += -1, n.loc.end.column += p);
2958
+ }), r;
2959
+ }
2960
+ parseTopLevel(s) {
2961
+ return this[z].impliedStrict && (this.strict = true), super.parseTopLevel(s);
2962
+ }
2963
+ raise(s, r) {
2964
+ let n = e.acorn.getLineInfo(this.input, s), o = new SyntaxError(r);
2965
+ throw o.index = s, o.lineNumber = n.line, o.column = n.column + 1, o;
2966
+ }
2967
+ raiseRecoverable(s, r) {
2968
+ this.raise(s, r);
2969
+ }
2970
+ unexpected(s) {
2971
+ let r = "Unexpected token";
2972
+ if (s != null) {
2973
+ if (this.pos = s, this.options.locations) for (; this.pos < this.lineStart; ) this.lineStart = this.input.lastIndexOf(`
2974
+ `, this.lineStart - 2) + 1, --this.curLine;
2975
+ this.nextToken();
2976
+ }
2977
+ this.end > this.start && (r += ` ${this.input.slice(this.start, this.end)}`), this.raise(this.start, r);
2978
+ }
2979
+ jsx_readString(s) {
2980
+ let r = super.jsx_readString(s);
2981
+ return this.type === t.string && (this[z].jsxAttrValueToken = true), r;
2982
+ }
2983
+ [rt](s) {
2984
+ return s.type === "TemplateElement" && this[z].templateElements.push(s), s.type.includes("Function") && !s.generator && (s.generator = false), s;
2985
+ }
2986
+ };
2987
+ };
2988
+ var or = { _regular: null, _jsx: null, get regular() {
2989
+ return this._regular === null && (this._regular = E.extend(at())), this._regular;
2990
+ }, get jsx() {
2991
+ return this._jsx === null && (this._jsx = E.extend((0, Ci.default)(), at())), this._jsx;
2992
+ }, get(e) {
2993
+ return !!(e && e.ecmaFeatures && e.ecmaFeatures.jsx) ? this.jsx : this.regular;
2994
+ } };
2995
+ function Ei(e, t) {
2996
+ let i = or.get(t);
2997
+ return new i(t, e).parse();
2998
+ }
2999
+ var ur = { ecmaVersion: "latest", range: true, loc: false, comment: true, tokens: false, ecmaFeatures: { jsx: true, impliedStrict: false } };
3000
+ function pr(e) {
3001
+ let { message: t, lineNumber: i, column: s } = e;
3002
+ return typeof i != "number" ? e : Ee(t, { loc: { start: { line: i, column: s } }, cause: e });
3003
+ }
3004
+ function hr(e, t) {
3005
+ let i = Le(t?.filepath), s = (i ? [i] : Ne).map((n) => () => Ei(e, { ...ur, sourceType: n })), r;
3006
+ try {
3007
+ r = Ae(s);
3008
+ } catch ({ errors: [n] }) {
3009
+ throw pr(n);
3010
+ }
3011
+ return ke(r, { parser: "espree", text: e });
3012
+ }
3013
+ var Ai = we(hr);
3014
+ var cr = { acorn: bi, espree: Ai };
3015
+ export {
3016
+ ki as default,
3017
+ cr as parsers
3018
+ };
3019
+ //# sourceMappingURL=acorn-CCr8VihG.js.map