elrh-cosca 0.2.4 → 0.2.6

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.
@@ -1,16 +1,20 @@
1
- import { join as bs, resolve as ct } from "node:path";
2
- import { readFileSync as Rs, access as Sa, constants as Ea, existsSync as vt, copyFileSync as Aa, writeFileSync as ss, promises as wa } from "node:fs";
1
+ import { join as Ps, resolve as Ye } from "node:path";
2
+ import { readFileSync as ss, access as Sa, constants as Ea, existsSync as We, copyFileSync as Aa, writeFileSync as is, promises as wa } from "node:fs";
3
3
  import va from "node:readline";
4
4
  import Ca from "node:https";
5
5
  import "fs";
6
- async function Qe(a) {
7
- const l = va.createInterface({
8
- input: process.stdin,
9
- output: process.stdout
6
+ async function Ze(a, l) {
7
+ const i = va.createInterface({
8
+ input: l?.input || process.stdin,
9
+ output: l?.output || process.stdout
10
10
  });
11
- return new Promise((i) => {
12
- l.question(a + " (y/N): ", (r) => {
13
- l.close(), i(/^y(es)?$/i.test(r.trim()));
11
+ return new Promise((r) => {
12
+ i.question(a + " (y/N): ", (o) => {
13
+ i.close();
14
+ const u = o.trim().toLowerCase();
15
+ r(/^y(es)?$/.test(u));
16
+ }), i.on("SIGINT", () => {
17
+ i.close(), r(!1);
14
18
  });
15
19
  });
16
20
  }
@@ -28,14 +32,14 @@ function Ia(a) {
28
32
  function Na(a) {
29
33
  const l = process.cwd();
30
34
  try {
31
- const i = bs(l, "package.json"), r = Rs(i, "utf8");
35
+ const i = Ps(l, "package.json"), r = ss(i, "utf8");
32
36
  if (JSON.parse(r)?.name === a)
33
37
  return l;
34
38
  } catch (i) {
35
39
  console.error(i);
36
40
  }
37
41
  try {
38
- const i = bs(l, "node_modules", ...a.split("/")), r = bs(i, "package.json");
42
+ const i = Ps(l, "node_modules", ...a.split("/")), r = Ps(i, "package.json");
39
43
  return Sa(r, Ea.R_OK, (o) => {
40
44
  if (o)
41
45
  throw new Error(`Cannot access "${r}"`);
@@ -45,20 +49,23 @@ function Na(a) {
45
49
  }
46
50
  throw new Error(`Cannot find package "${a}" from ${process.cwd()}. Make sure it's installed or linked in this project.`);
47
51
  }
48
- async function Il(a, l, i = !1) {
49
- if (i || await Qe(
50
- `This will create '${l}' file. Continue?`
52
+ async function Il(a, l, i = !1, r = "") {
53
+ if (i || await Ze(
54
+ r || `This will create '${l}' file. Continue?`
51
55
  )) {
52
- const { pkg: o, file: u } = Ia(a), h = Na(o), d = ct(h, u), g = ct(process.cwd(), l);
53
- if (!vt(d))
54
- throw new Error(`Template file not found at ${d}`);
55
- if (vt(g) && !(i || await Qe(
56
+ const { pkg: u, file: h } = Ia(a), d = Na(u), g = Ye(d, h), b = Ye(process.cwd(), l);
57
+ if (!We(g))
58
+ throw new Error(`Template file not found at ${g}`);
59
+ if (We(b) && !(i || await Ze(
56
60
  `File '${l}' already exists. Overwrite?`
57
61
  ))) {
58
62
  console.log("Aborted.");
59
63
  return;
60
64
  }
61
- Aa(d, g), console.log(`New file '${l}' successfully created.`);
65
+ if (Aa(g, b), We(b))
66
+ console.log(`New file '${l}' successfully created.`);
67
+ else
68
+ throw new Error(`Failed to create '${l}'.`);
62
69
  } else
63
70
  console.log(`Creation of '${l}' skipped.`);
64
71
  }
@@ -74,32 +81,35 @@ async function ka(a) {
74
81
  }).on("error", i);
75
82
  });
76
83
  }
77
- async function Nl(a, l, i = !1) {
78
- if (i || await Qe(
79
- `This will create '${l}' file. Continue?`
84
+ async function Nl(a, l, i = !1, r = "") {
85
+ if (i || await Ze(
86
+ r || `This will create '${l}' file. Continue?`
80
87
  )) {
81
- let o;
88
+ let u;
82
89
  try {
83
- o = await ka(a);
84
- } catch (h) {
90
+ u = await ka(a);
91
+ } catch (d) {
85
92
  throw new Error(`Failed to fetch template from external source ${a}:
86
- ${h}`);
93
+ ${d}`);
87
94
  }
88
- const u = ct(process.cwd(), l);
89
- if (vt(u) && !(i || await Qe(
95
+ const h = Ye(process.cwd(), l);
96
+ if (We(h) && !(i || await Ze(
90
97
  `File '${l}' already exists. Overwrite?`
91
98
  ))) {
92
99
  console.log("Aborted.");
93
100
  return;
94
101
  }
95
- ss(u, o, "utf8"), console.log(`New file '${l}' successfully created.`);
102
+ if (is(h, u, "utf8"), We(h))
103
+ console.log(`New file '${l}' successfully created.`);
104
+ else
105
+ throw new Error(`Failed to create '${l}'.`);
96
106
  } else
97
107
  console.log(`Creation of '${l}' skipped.`);
98
108
  }
99
109
  function La(a) {
100
110
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
101
111
  }
102
- var mt = {}, Ps = {}, qt = {}, zt = {}, Hi;
112
+ var yt = {}, Ts = {}, qt = {}, zt = {}, Hi;
103
113
  function Oa() {
104
114
  if (Hi) return zt;
105
115
  Hi = 1;
@@ -109,8 +119,8 @@ function Oa() {
109
119
  return a[l];
110
120
  throw new TypeError("Must be between 0 and 63: " + l);
111
121
  }, zt.decode = function(l) {
112
- var i = 65, r = 90, o = 97, u = 122, h = 48, d = 57, g = 43, P = 47, S = 26, v = 52;
113
- return i <= l && l <= r ? l - i : o <= l && l <= u ? l - o + S : h <= l && l <= d ? l - h + v : l == g ? 62 : l == P ? 63 : -1;
122
+ var i = 65, r = 90, o = 97, u = 122, h = 48, d = 57, g = 43, b = 47, S = 26, w = 52;
123
+ return i <= l && l <= r ? l - i : o <= l && l <= u ? l - o + S : h <= l && l <= d ? l - h + w : l == g ? 62 : l == b ? 63 : -1;
114
124
  }, zt;
115
125
  }
116
126
  var Ki;
@@ -122,28 +132,28 @@ function Er() {
122
132
  return d < 0 ? (-d << 1) + 1 : (d << 1) + 0;
123
133
  }
124
134
  function h(d) {
125
- var g = (d & 1) === 1, P = d >> 1;
126
- return g ? -P : P;
135
+ var g = (d & 1) === 1, b = d >> 1;
136
+ return g ? -b : b;
127
137
  }
128
138
  return qt.encode = function(g) {
129
- var P = "", S, v = u(g);
139
+ var b = "", S, w = u(g);
130
140
  do
131
- S = v & r, v >>>= l, v > 0 && (S |= o), P += a.encode(S);
132
- while (v > 0);
133
- return P;
134
- }, qt.decode = function(g, P, S) {
135
- var v = g.length, w = 0, I = 0, T, A;
141
+ S = w & r, w >>>= l, w > 0 && (S |= o), b += a.encode(S);
142
+ while (w > 0);
143
+ return b;
144
+ }, qt.decode = function(g, b, S) {
145
+ var w = g.length, v = 0, I = 0, T, A;
136
146
  do {
137
- if (P >= v)
147
+ if (b >= w)
138
148
  throw new Error("Expected more digits in base 64 VLQ value.");
139
- if (A = a.decode(g.charCodeAt(P++)), A === -1)
140
- throw new Error("Invalid base64 digit: " + g.charAt(P - 1));
141
- T = !!(A & o), A &= r, w = w + (A << I), I += l;
149
+ if (A = a.decode(g.charCodeAt(b++)), A === -1)
150
+ throw new Error("Invalid base64 digit: " + g.charAt(b - 1));
151
+ T = !!(A & o), A &= r, v = v + (A << I), I += l;
142
152
  } while (T);
143
- S.value = h(w), S.rest = P;
153
+ S.value = h(v), S.rest = b;
144
154
  }, qt;
145
155
  }
146
- var Ts = {}, Xi;
156
+ var Ss = {}, Xi;
147
157
  function kt() {
148
158
  return Xi || (Xi = 1, (function(a) {
149
159
  function l(M, k, _) {
@@ -206,7 +216,7 @@ function kt() {
206
216
  return _ = ce.join("/"), _ === "" && (_ = me ? "/" : "."), N ? (N.path = _, u(N)) : _;
207
217
  });
208
218
  a.normalize = g;
209
- function P(M, k) {
219
+ function b(M, k) {
210
220
  M === "" && (M = "."), k === "" && (k = ".");
211
221
  var _ = o(k), N = o(M);
212
222
  if (N && (M = N.path || "/"), _ && !_.scheme)
@@ -218,7 +228,7 @@ function kt() {
218
228
  var me = k.charAt(0) === "/" ? k : g(M.replace(/\/+$/, "") + "/" + k);
219
229
  return N ? (N.path = me, u(N)) : me;
220
230
  }
221
- a.join = P, a.isAbsolute = function(M) {
231
+ a.join = b, a.isAbsolute = function(M) {
222
232
  return M.charAt(0) === "/" || i.test(M);
223
233
  };
224
234
  function S(M, k) {
@@ -232,21 +242,21 @@ function kt() {
232
242
  return Array(_ + 1).join("../") + k.substr(M.length + 1);
233
243
  }
234
244
  a.relative = S;
235
- var v = (function() {
245
+ var w = (function() {
236
246
  var M = /* @__PURE__ */ Object.create(null);
237
247
  return !("__proto__" in M);
238
248
  })();
239
- function w(M) {
249
+ function v(M) {
240
250
  return M;
241
251
  }
242
252
  function I(M) {
243
253
  return A(M) ? "$" + M : M;
244
254
  }
245
- a.toSetString = v ? w : I;
255
+ a.toSetString = w ? v : I;
246
256
  function T(M) {
247
257
  return A(M) ? M.slice(1) : M;
248
258
  }
249
- a.fromSetString = v ? w : T;
259
+ a.fromSetString = w ? v : T;
250
260
  function A(M) {
251
261
  if (!M)
252
262
  return !1;
@@ -258,11 +268,11 @@ function kt() {
258
268
  return !1;
259
269
  return !0;
260
270
  }
261
- function b(M, k, _) {
271
+ function P(M, k, _) {
262
272
  var N = D(M.source, k.source);
263
273
  return N !== 0 || (N = M.originalLine - k.originalLine, N !== 0) || (N = M.originalColumn - k.originalColumn, N !== 0 || _) || (N = M.generatedColumn - k.generatedColumn, N !== 0) || (N = M.generatedLine - k.generatedLine, N !== 0) ? N : D(M.name, k.name);
264
274
  }
265
- a.compareByOriginalPositions = b;
275
+ a.compareByOriginalPositions = P;
266
276
  function m(M, k, _) {
267
277
  var N;
268
278
  return N = M.originalLine - k.originalLine, N !== 0 || (N = M.originalColumn - k.originalColumn, N !== 0 || _) || (N = M.generatedColumn - k.generatedColumn, N !== 0) || (N = M.generatedLine - k.generatedLine, N !== 0) ? N : D(M.name, k.name);
@@ -299,30 +309,30 @@ function kt() {
299
309
  var me = N.path.lastIndexOf("/");
300
310
  me >= 0 && (N.path = N.path.substring(0, me + 1));
301
311
  }
302
- k = P(u(N), k);
312
+ k = b(u(N), k);
303
313
  }
304
314
  return g(k);
305
315
  }
306
316
  a.computeSourceURL = q;
307
- })(Ts)), Ts;
317
+ })(Ss)), Ss;
308
318
  }
309
- var Ss = {}, Gi;
319
+ var Es = {}, Gi;
310
320
  function Ar() {
311
- if (Gi) return Ss;
321
+ if (Gi) return Es;
312
322
  Gi = 1;
313
323
  var a = kt(), l = Object.prototype.hasOwnProperty, i = typeof Map < "u";
314
324
  function r() {
315
325
  this._array = [], this._set = i ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
316
326
  }
317
327
  return r.fromArray = function(u, h) {
318
- for (var d = new r(), g = 0, P = u.length; g < P; g++)
328
+ for (var d = new r(), g = 0, b = u.length; g < b; g++)
319
329
  d.add(u[g], h);
320
330
  return d;
321
331
  }, r.prototype.size = function() {
322
332
  return i ? this._set.size : Object.getOwnPropertyNames(this._set).length;
323
333
  }, r.prototype.add = function(u, h) {
324
- var d = i ? u : a.toSetString(u), g = i ? this.has(u) : l.call(this._set, d), P = this._array.length;
325
- (!g || h) && this._array.push(u), g || (i ? this._set.set(u, P) : this._set[d] = P);
334
+ var d = i ? u : a.toSetString(u), g = i ? this.has(u) : l.call(this._set, d), b = this._array.length;
335
+ (!g || h) && this._array.push(u), g || (i ? this._set.set(u, b) : this._set[d] = b);
326
336
  }, r.prototype.has = function(u) {
327
337
  if (i)
328
338
  return this._set.has(u);
@@ -345,11 +355,11 @@ function Ar() {
345
355
  throw new Error("No element indexed by " + u);
346
356
  }, r.prototype.toArray = function() {
347
357
  return this._array.slice();
348
- }, Ss.ArraySet = r, Ss;
358
+ }, Es.ArraySet = r, Es;
349
359
  }
350
- var Es = {}, Qi;
360
+ var As = {}, Qi;
351
361
  function Da() {
352
- if (Qi) return Es;
362
+ if (Qi) return As;
353
363
  Qi = 1;
354
364
  var a = kt();
355
365
  function l(r, o) {
@@ -365,65 +375,65 @@ function Da() {
365
375
  l(this._last, o) ? (this._last = o, this._array.push(o)) : (this._sorted = !1, this._array.push(o));
366
376
  }, i.prototype.toArray = function() {
367
377
  return this._sorted || (this._array.sort(a.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
368
- }, Es.MappingList = i, Es;
378
+ }, As.MappingList = i, As;
369
379
  }
370
380
  var Yi;
371
381
  function wr() {
372
- if (Yi) return Ps;
382
+ if (Yi) return Ts;
373
383
  Yi = 1;
374
384
  var a = Er(), l = kt(), i = Ar().ArraySet, r = Da().MappingList;
375
385
  function o(u) {
376
386
  u || (u = {}), this._file = l.getArg(u, "file", null), this._sourceRoot = l.getArg(u, "sourceRoot", null), this._skipValidation = l.getArg(u, "skipValidation", !1), this._ignoreInvalidMapping = l.getArg(u, "ignoreInvalidMapping", !1), this._sources = new i(), this._names = new i(), this._mappings = new r(), this._sourcesContents = null;
377
387
  }
378
388
  return o.prototype._version = 3, o.fromSourceMap = function(h, d) {
379
- var g = h.sourceRoot, P = new o(Object.assign(d || {}, {
389
+ var g = h.sourceRoot, b = new o(Object.assign(d || {}, {
380
390
  file: h.file,
381
391
  sourceRoot: g
382
392
  }));
383
393
  return h.eachMapping(function(S) {
384
- var v = {
394
+ var w = {
385
395
  generated: {
386
396
  line: S.generatedLine,
387
397
  column: S.generatedColumn
388
398
  }
389
399
  };
390
- S.source != null && (v.source = S.source, g != null && (v.source = l.relative(g, v.source)), v.original = {
400
+ S.source != null && (w.source = S.source, g != null && (w.source = l.relative(g, w.source)), w.original = {
391
401
  line: S.originalLine,
392
402
  column: S.originalColumn
393
- }, S.name != null && (v.name = S.name)), P.addMapping(v);
403
+ }, S.name != null && (w.name = S.name)), b.addMapping(w);
394
404
  }), h.sources.forEach(function(S) {
395
- var v = S;
396
- g !== null && (v = l.relative(g, S)), P._sources.has(v) || P._sources.add(v);
397
- var w = h.sourceContentFor(S);
398
- w != null && P.setSourceContent(S, w);
399
- }), P;
405
+ var w = S;
406
+ g !== null && (w = l.relative(g, S)), b._sources.has(w) || b._sources.add(w);
407
+ var v = h.sourceContentFor(S);
408
+ v != null && b.setSourceContent(S, v);
409
+ }), b;
400
410
  }, o.prototype.addMapping = function(h) {
401
- var d = l.getArg(h, "generated"), g = l.getArg(h, "original", null), P = l.getArg(h, "source", null), S = l.getArg(h, "name", null);
402
- !this._skipValidation && this._validateMapping(d, g, P, S) === !1 || (P != null && (P = String(P), this._sources.has(P) || this._sources.add(P)), S != null && (S = String(S), this._names.has(S) || this._names.add(S)), this._mappings.add({
411
+ var d = l.getArg(h, "generated"), g = l.getArg(h, "original", null), b = l.getArg(h, "source", null), S = l.getArg(h, "name", null);
412
+ !this._skipValidation && this._validateMapping(d, g, b, S) === !1 || (b != null && (b = String(b), this._sources.has(b) || this._sources.add(b)), S != null && (S = String(S), this._names.has(S) || this._names.add(S)), this._mappings.add({
403
413
  generatedLine: d.line,
404
414
  generatedColumn: d.column,
405
415
  originalLine: g != null && g.line,
406
416
  originalColumn: g != null && g.column,
407
- source: P,
417
+ source: b,
408
418
  name: S
409
419
  }));
410
420
  }, o.prototype.setSourceContent = function(h, d) {
411
421
  var g = h;
412
422
  this._sourceRoot != null && (g = l.relative(this._sourceRoot, g)), d != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[l.toSetString(g)] = d) : this._sourcesContents && (delete this._sourcesContents[l.toSetString(g)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
413
423
  }, o.prototype.applySourceMap = function(h, d, g) {
414
- var P = d;
424
+ var b = d;
415
425
  if (d == null) {
416
426
  if (h.file == null)
417
427
  throw new Error(
418
428
  `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
419
429
  );
420
- P = h.file;
430
+ b = h.file;
421
431
  }
422
432
  var S = this._sourceRoot;
423
- S != null && (P = l.relative(S, P));
424
- var v = new i(), w = new i();
433
+ S != null && (b = l.relative(S, b));
434
+ var w = new i(), v = new i();
425
435
  this._mappings.unsortedForEach(function(I) {
426
- if (I.source === P && I.originalLine != null) {
436
+ if (I.source === b && I.originalLine != null) {
427
437
  var T = h.originalPositionFor({
428
438
  line: I.originalLine,
429
439
  column: I.originalColumn
@@ -431,35 +441,35 @@ function wr() {
431
441
  T.source != null && (I.source = T.source, g != null && (I.source = l.join(g, I.source)), S != null && (I.source = l.relative(S, I.source)), I.originalLine = T.line, I.originalColumn = T.column, T.name != null && (I.name = T.name));
432
442
  }
433
443
  var A = I.source;
434
- A != null && !v.has(A) && v.add(A);
435
- var b = I.name;
436
- b != null && !w.has(b) && w.add(b);
437
- }, this), this._sources = v, this._names = w, h.sources.forEach(function(I) {
444
+ A != null && !w.has(A) && w.add(A);
445
+ var P = I.name;
446
+ P != null && !v.has(P) && v.add(P);
447
+ }, this), this._sources = w, this._names = v, h.sources.forEach(function(I) {
438
448
  var T = h.sourceContentFor(I);
439
449
  T != null && (g != null && (I = l.join(g, I)), S != null && (I = l.relative(S, I)), this.setSourceContent(I, T));
440
450
  }, this);
441
- }, o.prototype._validateMapping = function(h, d, g, P) {
451
+ }, o.prototype._validateMapping = function(h, d, g, b) {
442
452
  if (d && typeof d.line != "number" && typeof d.column != "number") {
443
453
  var S = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
444
454
  if (this._ignoreInvalidMapping)
445
455
  return typeof console < "u" && console.warn && console.warn(S), !1;
446
456
  throw new Error(S);
447
457
  }
448
- if (!(h && "line" in h && "column" in h && h.line > 0 && h.column >= 0 && !d && !g && !P)) {
458
+ if (!(h && "line" in h && "column" in h && h.line > 0 && h.column >= 0 && !d && !g && !b)) {
449
459
  if (h && "line" in h && "column" in h && d && "line" in d && "column" in d && h.line > 0 && h.column >= 0 && d.line > 0 && d.column >= 0 && g)
450
460
  return;
451
461
  var S = "Invalid mapping: " + JSON.stringify({
452
462
  generated: h,
453
463
  source: g,
454
464
  original: d,
455
- name: P
465
+ name: b
456
466
  });
457
467
  if (this._ignoreInvalidMapping)
458
468
  return typeof console < "u" && console.warn && console.warn(S), !1;
459
469
  throw new Error(S);
460
470
  }
461
471
  }, o.prototype._serializeMappings = function() {
462
- for (var h = 0, d = 1, g = 0, P = 0, S = 0, v = 0, w = "", I, T, A, b, m = this._mappings.toArray(), O = 0, U = m.length; O < U; O++) {
472
+ for (var h = 0, d = 1, g = 0, b = 0, S = 0, w = 0, v = "", I, T, A, P, m = this._mappings.toArray(), O = 0, U = m.length; O < U; O++) {
463
473
  if (T = m[O], I = "", T.generatedLine !== d)
464
474
  for (h = 0; T.generatedLine !== d; )
465
475
  I += ";", d++;
@@ -468,16 +478,16 @@ function wr() {
468
478
  continue;
469
479
  I += ",";
470
480
  }
471
- I += a.encode(T.generatedColumn - h), h = T.generatedColumn, T.source != null && (b = this._sources.indexOf(T.source), I += a.encode(b - v), v = b, I += a.encode(T.originalLine - 1 - P), P = T.originalLine - 1, I += a.encode(T.originalColumn - g), g = T.originalColumn, T.name != null && (A = this._names.indexOf(T.name), I += a.encode(A - S), S = A)), w += I;
481
+ I += a.encode(T.generatedColumn - h), h = T.generatedColumn, T.source != null && (P = this._sources.indexOf(T.source), I += a.encode(P - w), w = P, I += a.encode(T.originalLine - 1 - b), b = T.originalLine - 1, I += a.encode(T.originalColumn - g), g = T.originalColumn, T.name != null && (A = this._names.indexOf(T.name), I += a.encode(A - S), S = A)), v += I;
472
482
  }
473
- return w;
483
+ return v;
474
484
  }, o.prototype._generateSourcesContent = function(h, d) {
475
485
  return h.map(function(g) {
476
486
  if (!this._sourcesContents)
477
487
  return null;
478
488
  d != null && (g = l.relative(d, g));
479
- var P = l.toSetString(g);
480
- return Object.prototype.hasOwnProperty.call(this._sourcesContents, P) ? this._sourcesContents[P] : null;
489
+ var b = l.toSetString(g);
490
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, b) ? this._sourcesContents[b] : null;
481
491
  }, this);
482
492
  }, o.prototype.toJSON = function() {
483
493
  var h = {
@@ -489,15 +499,15 @@ function wr() {
489
499
  return this._file != null && (h.file = this._file), this._sourceRoot != null && (h.sourceRoot = this._sourceRoot), this._sourcesContents && (h.sourcesContent = this._generateSourcesContent(h.sources, h.sourceRoot)), h;
490
500
  }, o.prototype.toString = function() {
491
501
  return JSON.stringify(this.toJSON());
492
- }, Ps.SourceMapGenerator = o, Ps;
502
+ }, Ts.SourceMapGenerator = o, Ts;
493
503
  }
494
- var yt = {}, As = {}, Zi;
504
+ var gt = {}, ws = {}, Zi;
495
505
  function Ma() {
496
506
  return Zi || (Zi = 1, (function(a) {
497
507
  a.GREATEST_LOWER_BOUND = 1, a.LEAST_UPPER_BOUND = 2;
498
508
  function l(i, r, o, u, h, d) {
499
- var g = Math.floor((r - i) / 2) + i, P = h(o, u[g], !0);
500
- return P === 0 ? g : P > 0 ? r - g > 1 ? l(g, r, o, u, h, d) : d == a.LEAST_UPPER_BOUND ? r < u.length ? r : -1 : g : g - i > 1 ? l(i, g, o, u, h, d) : d == a.LEAST_UPPER_BOUND ? g : i < 0 ? -1 : i;
509
+ var g = Math.floor((r - i) / 2) + i, b = h(o, u[g], !0);
510
+ return b === 0 ? g : b > 0 ? r - g > 1 ? l(g, r, o, u, h, d) : d == a.LEAST_UPPER_BOUND ? r < u.length ? r : -1 : g : g - i > 1 ? l(i, g, o, u, h, d) : d == a.LEAST_UPPER_BOUND ? g : i < 0 ? -1 : i;
501
511
  }
502
512
  a.search = function(r, o, u, h) {
503
513
  if (o.length === 0)
@@ -516,29 +526,29 @@ function Ma() {
516
526
  --d;
517
527
  return d;
518
528
  };
519
- })(As)), As;
529
+ })(ws)), ws;
520
530
  }
521
- var ws = {}, er;
531
+ var vs = {}, er;
522
532
  function Fa() {
523
- if (er) return ws;
533
+ if (er) return vs;
524
534
  er = 1;
525
535
  function a(r) {
526
- function o(d, g, P) {
536
+ function o(d, g, b) {
527
537
  var S = d[g];
528
- d[g] = d[P], d[P] = S;
538
+ d[g] = d[b], d[b] = S;
529
539
  }
530
540
  function u(d, g) {
531
541
  return Math.round(d + Math.random() * (g - d));
532
542
  }
533
- function h(d, g, P, S) {
534
- if (P < S) {
535
- var v = u(P, S), w = P - 1;
536
- o(d, v, S);
537
- for (var I = d[S], T = P; T < S; T++)
538
- g(d[T], I, !1) <= 0 && (w += 1, o(d, w, T));
539
- o(d, w + 1, T);
540
- var A = w + 1;
541
- h(d, g, P, A - 1), h(d, g, A + 1, S);
543
+ function h(d, g, b, S) {
544
+ if (b < S) {
545
+ var w = u(b, S), v = b - 1;
546
+ o(d, w, S);
547
+ for (var I = d[S], T = b; T < S; T++)
548
+ g(d[T], I, !1) <= 0 && (v += 1, o(d, v, T));
549
+ o(d, v + 1, T);
550
+ var A = v + 1;
551
+ h(d, g, b, A - 1), h(d, g, A + 1, S);
542
552
  }
543
553
  }
544
554
  return h;
@@ -548,22 +558,22 @@ function Fa() {
548
558
  return new Function(`return ${o}`)()(r);
549
559
  }
550
560
  let i = /* @__PURE__ */ new WeakMap();
551
- return ws.quickSort = function(r, o, u = 0) {
561
+ return vs.quickSort = function(r, o, u = 0) {
552
562
  let h = i.get(o);
553
563
  h === void 0 && (h = l(o), i.set(o, h)), h(r, o, u, r.length - 1);
554
- }, ws;
564
+ }, vs;
555
565
  }
556
566
  var tr;
557
567
  function Ba() {
558
- if (tr) return yt;
568
+ if (tr) return gt;
559
569
  tr = 1;
560
570
  var a = kt(), l = Ma(), i = Ar().ArraySet, r = Er(), o = Fa().quickSort;
561
- function u(v, w) {
562
- var I = v;
563
- return typeof v == "string" && (I = a.parseSourceMapInput(v)), I.sections != null ? new S(I, w) : new h(I, w);
571
+ function u(w, v) {
572
+ var I = w;
573
+ return typeof w == "string" && (I = a.parseSourceMapInput(w)), I.sections != null ? new S(I, v) : new h(I, v);
564
574
  }
565
- u.fromSourceMap = function(v, w) {
566
- return h.fromSourceMap(v, w);
575
+ u.fromSourceMap = function(w, v) {
576
+ return h.fromSourceMap(w, v);
567
577
  }, u.prototype._version = 3, u.prototype.__generatedMappings = null, Object.defineProperty(u.prototype, "_generatedMappings", {
568
578
  configurable: !0,
569
579
  enumerable: !0,
@@ -576,14 +586,14 @@ function Ba() {
576
586
  get: function() {
577
587
  return this.__originalMappings || this._parseMappings(this._mappings, this.sourceRoot), this.__originalMappings;
578
588
  }
579
- }), u.prototype._charIsMappingSeparator = function(w, I) {
580
- var T = w.charAt(I);
589
+ }), u.prototype._charIsMappingSeparator = function(v, I) {
590
+ var T = v.charAt(I);
581
591
  return T === ";" || T === ",";
582
- }, u.prototype._parseMappings = function(w, I) {
592
+ }, u.prototype._parseMappings = function(v, I) {
583
593
  throw new Error("Subclasses must implement _parseMappings");
584
- }, u.GENERATED_ORDER = 1, u.ORIGINAL_ORDER = 2, u.GREATEST_LOWER_BOUND = 1, u.LEAST_UPPER_BOUND = 2, u.prototype.eachMapping = function(w, I, T) {
585
- var A = I || null, b = T || u.GENERATED_ORDER, m;
586
- switch (b) {
594
+ }, u.GENERATED_ORDER = 1, u.ORIGINAL_ORDER = 2, u.GREATEST_LOWER_BOUND = 1, u.LEAST_UPPER_BOUND = 2, u.prototype.eachMapping = function(v, I, T) {
595
+ var A = I || null, P = T || u.GENERATED_ORDER, m;
596
+ switch (P) {
587
597
  case u.GENERATED_ORDER:
588
598
  m = this._generatedMappings;
589
599
  break;
@@ -593,7 +603,7 @@ function Ba() {
593
603
  default:
594
604
  throw new Error("Unknown order of iteration.");
595
605
  }
596
- for (var O = this.sourceRoot, U = w.bind(A), D = this._names, B = this._sources, R = this._sourceMapURL, q = 0, M = m.length; q < M; q++) {
606
+ for (var O = this.sourceRoot, U = v.bind(A), D = this._names, B = this._sources, R = this._sourceMapURL, q = 0, M = m.length; q < M; q++) {
597
607
  var k = m[q], _ = k.source === null ? null : B.at(k.source);
598
608
  _ !== null && (_ = a.computeSourceURL(O, _, R)), U({
599
609
  source: _,
@@ -604,15 +614,15 @@ function Ba() {
604
614
  name: k.name === null ? null : D.at(k.name)
605
615
  });
606
616
  }
607
- }, u.prototype.allGeneratedPositionsFor = function(w) {
608
- var I = a.getArg(w, "line"), T = {
609
- source: a.getArg(w, "source"),
617
+ }, u.prototype.allGeneratedPositionsFor = function(v) {
618
+ var I = a.getArg(v, "line"), T = {
619
+ source: a.getArg(v, "source"),
610
620
  originalLine: I,
611
- originalColumn: a.getArg(w, "column", 0)
621
+ originalColumn: a.getArg(v, "column", 0)
612
622
  };
613
623
  if (T.source = this._findSourceIndex(T.source), T.source < 0)
614
624
  return [];
615
- var A = [], b = this._findMapping(
625
+ var A = [], P = this._findMapping(
616
626
  T,
617
627
  this._originalMappings,
618
628
  "originalLine",
@@ -620,57 +630,57 @@ function Ba() {
620
630
  a.compareByOriginalPositions,
621
631
  l.LEAST_UPPER_BOUND
622
632
  );
623
- if (b >= 0) {
624
- var m = this._originalMappings[b];
625
- if (w.column === void 0)
633
+ if (P >= 0) {
634
+ var m = this._originalMappings[P];
635
+ if (v.column === void 0)
626
636
  for (var O = m.originalLine; m && m.originalLine === O; )
627
637
  A.push({
628
638
  line: a.getArg(m, "generatedLine", null),
629
639
  column: a.getArg(m, "generatedColumn", null),
630
640
  lastColumn: a.getArg(m, "lastGeneratedColumn", null)
631
- }), m = this._originalMappings[++b];
641
+ }), m = this._originalMappings[++P];
632
642
  else
633
643
  for (var U = m.originalColumn; m && m.originalLine === I && m.originalColumn == U; )
634
644
  A.push({
635
645
  line: a.getArg(m, "generatedLine", null),
636
646
  column: a.getArg(m, "generatedColumn", null),
637
647
  lastColumn: a.getArg(m, "lastGeneratedColumn", null)
638
- }), m = this._originalMappings[++b];
648
+ }), m = this._originalMappings[++P];
639
649
  }
640
650
  return A;
641
- }, yt.SourceMapConsumer = u;
642
- function h(v, w) {
643
- var I = v;
644
- typeof v == "string" && (I = a.parseSourceMapInput(v));
645
- var T = a.getArg(I, "version"), A = a.getArg(I, "sources"), b = a.getArg(I, "names", []), m = a.getArg(I, "sourceRoot", null), O = a.getArg(I, "sourcesContent", null), U = a.getArg(I, "mappings"), D = a.getArg(I, "file", null);
651
+ }, gt.SourceMapConsumer = u;
652
+ function h(w, v) {
653
+ var I = w;
654
+ typeof w == "string" && (I = a.parseSourceMapInput(w));
655
+ var T = a.getArg(I, "version"), A = a.getArg(I, "sources"), P = a.getArg(I, "names", []), m = a.getArg(I, "sourceRoot", null), O = a.getArg(I, "sourcesContent", null), U = a.getArg(I, "mappings"), D = a.getArg(I, "file", null);
646
656
  if (T != this._version)
647
657
  throw new Error("Unsupported version: " + T);
648
658
  m && (m = a.normalize(m)), A = A.map(String).map(a.normalize).map(function(B) {
649
659
  return m && a.isAbsolute(m) && a.isAbsolute(B) ? a.relative(m, B) : B;
650
- }), this._names = i.fromArray(b.map(String), !0), this._sources = i.fromArray(A, !0), this._absoluteSources = this._sources.toArray().map(function(B) {
651
- return a.computeSourceURL(m, B, w);
652
- }), this.sourceRoot = m, this.sourcesContent = O, this._mappings = U, this._sourceMapURL = w, this.file = D;
653
- }
654
- h.prototype = Object.create(u.prototype), h.prototype.consumer = u, h.prototype._findSourceIndex = function(v) {
655
- var w = v;
656
- if (this.sourceRoot != null && (w = a.relative(this.sourceRoot, w)), this._sources.has(w))
657
- return this._sources.indexOf(w);
660
+ }), this._names = i.fromArray(P.map(String), !0), this._sources = i.fromArray(A, !0), this._absoluteSources = this._sources.toArray().map(function(B) {
661
+ return a.computeSourceURL(m, B, v);
662
+ }), this.sourceRoot = m, this.sourcesContent = O, this._mappings = U, this._sourceMapURL = v, this.file = D;
663
+ }
664
+ h.prototype = Object.create(u.prototype), h.prototype.consumer = u, h.prototype._findSourceIndex = function(w) {
665
+ var v = w;
666
+ if (this.sourceRoot != null && (v = a.relative(this.sourceRoot, v)), this._sources.has(v))
667
+ return this._sources.indexOf(v);
658
668
  var I;
659
669
  for (I = 0; I < this._absoluteSources.length; ++I)
660
- if (this._absoluteSources[I] == v)
670
+ if (this._absoluteSources[I] == w)
661
671
  return I;
662
672
  return -1;
663
- }, h.fromSourceMap = function(w, I) {
664
- var T = Object.create(h.prototype), A = T._names = i.fromArray(w._names.toArray(), !0), b = T._sources = i.fromArray(w._sources.toArray(), !0);
665
- T.sourceRoot = w._sourceRoot, T.sourcesContent = w._generateSourcesContent(
673
+ }, h.fromSourceMap = function(v, I) {
674
+ var T = Object.create(h.prototype), A = T._names = i.fromArray(v._names.toArray(), !0), P = T._sources = i.fromArray(v._sources.toArray(), !0);
675
+ T.sourceRoot = v._sourceRoot, T.sourcesContent = v._generateSourcesContent(
666
676
  T._sources.toArray(),
667
677
  T.sourceRoot
668
- ), T.file = w._file, T._sourceMapURL = I, T._absoluteSources = T._sources.toArray().map(function(M) {
678
+ ), T.file = v._file, T._sourceMapURL = I, T._absoluteSources = T._sources.toArray().map(function(M) {
669
679
  return a.computeSourceURL(T.sourceRoot, M, I);
670
680
  });
671
- for (var m = w._mappings.toArray().slice(), O = T.__generatedMappings = [], U = T.__originalMappings = [], D = 0, B = m.length; D < B; D++) {
681
+ for (var m = v._mappings.toArray().slice(), O = T.__generatedMappings = [], U = T.__originalMappings = [], D = 0, B = m.length; D < B; D++) {
672
682
  var R = m[D], q = new d();
673
- q.generatedLine = R.generatedLine, q.generatedColumn = R.generatedColumn, R.source && (q.source = b.indexOf(R.source), q.originalLine = R.originalLine, q.originalColumn = R.originalColumn, R.name && (q.name = A.indexOf(R.name)), U.push(q)), O.push(q);
683
+ q.generatedLine = R.generatedLine, q.generatedColumn = R.generatedColumn, R.source && (q.source = P.indexOf(R.source), q.originalLine = R.originalLine, q.originalColumn = R.originalColumn, R.name && (q.name = A.indexOf(R.name)), U.push(q)), O.push(q);
674
684
  }
675
685
  return o(T.__originalMappings, a.compareByOriginalPositions), T;
676
686
  }, h.prototype._version = 3, Object.defineProperty(h.prototype, "sources", {
@@ -682,62 +692,62 @@ function Ba() {
682
692
  this.generatedLine = 0, this.generatedColumn = 0, this.source = null, this.originalLine = null, this.originalColumn = null, this.name = null;
683
693
  }
684
694
  const g = a.compareByGeneratedPositionsDeflatedNoLine;
685
- function P(v, w) {
686
- let I = v.length, T = v.length - w;
695
+ function b(w, v) {
696
+ let I = w.length, T = w.length - v;
687
697
  if (!(T <= 1))
688
698
  if (T == 2) {
689
- let A = v[w], b = v[w + 1];
690
- g(A, b) > 0 && (v[w] = b, v[w + 1] = A);
699
+ let A = w[v], P = w[v + 1];
700
+ g(A, P) > 0 && (w[v] = P, w[v + 1] = A);
691
701
  } else if (T < 20)
692
- for (let A = w; A < I; A++)
693
- for (let b = A; b > w; b--) {
694
- let m = v[b - 1], O = v[b];
702
+ for (let A = v; A < I; A++)
703
+ for (let P = A; P > v; P--) {
704
+ let m = w[P - 1], O = w[P];
695
705
  if (g(m, O) <= 0)
696
706
  break;
697
- v[b - 1] = O, v[b] = m;
707
+ w[P - 1] = O, w[P] = m;
698
708
  }
699
709
  else
700
- o(v, g, w);
710
+ o(w, g, v);
701
711
  }
702
- h.prototype._parseMappings = function(w, I) {
703
- var T = 1, A = 0, b = 0, m = 0, O = 0, U = 0, D = w.length, B = 0, R = {}, q = [], M = [], k, _, N, me;
712
+ h.prototype._parseMappings = function(v, I) {
713
+ var T = 1, A = 0, P = 0, m = 0, O = 0, U = 0, D = v.length, B = 0, R = {}, q = [], M = [], k, _, N, me;
704
714
  let ce = 0;
705
715
  for (; B < D; )
706
- if (w.charAt(B) === ";")
707
- T++, B++, A = 0, P(M, ce), ce = M.length;
708
- else if (w.charAt(B) === ",")
716
+ if (v.charAt(B) === ";")
717
+ T++, B++, A = 0, b(M, ce), ce = M.length;
718
+ else if (v.charAt(B) === ",")
709
719
  B++;
710
720
  else {
711
- for (k = new d(), k.generatedLine = T, N = B; N < D && !this._charIsMappingSeparator(w, N); N++)
721
+ for (k = new d(), k.generatedLine = T, N = B; N < D && !this._charIsMappingSeparator(v, N); N++)
712
722
  ;
713
- for (w.slice(B, N), _ = []; B < N; )
714
- r.decode(w, B, R), me = R.value, B = R.rest, _.push(me);
723
+ for (v.slice(B, N), _ = []; B < N; )
724
+ r.decode(v, B, R), me = R.value, B = R.rest, _.push(me);
715
725
  if (_.length === 2)
716
726
  throw new Error("Found a source, but no line and column");
717
727
  if (_.length === 3)
718
728
  throw new Error("Found a source and line, but no column");
719
- if (k.generatedColumn = A + _[0], A = k.generatedColumn, _.length > 1 && (k.source = O + _[1], O += _[1], k.originalLine = b + _[2], b = k.originalLine, k.originalLine += 1, k.originalColumn = m + _[3], m = k.originalColumn, _.length > 4 && (k.name = U + _[4], U += _[4])), M.push(k), typeof k.originalLine == "number") {
729
+ if (k.generatedColumn = A + _[0], A = k.generatedColumn, _.length > 1 && (k.source = O + _[1], O += _[1], k.originalLine = P + _[2], P = k.originalLine, k.originalLine += 1, k.originalColumn = m + _[3], m = k.originalColumn, _.length > 4 && (k.name = U + _[4], U += _[4])), M.push(k), typeof k.originalLine == "number") {
720
730
  let he = k.source;
721
731
  for (; q.length <= he; )
722
732
  q.push(null);
723
733
  q[he] === null && (q[he] = []), q[he].push(k);
724
734
  }
725
735
  }
726
- P(M, ce), this.__generatedMappings = M;
736
+ b(M, ce), this.__generatedMappings = M;
727
737
  for (var ye = 0; ye < q.length; ye++)
728
738
  q[ye] != null && o(q[ye], a.compareByOriginalPositionsNoSource);
729
739
  this.__originalMappings = [].concat(...q);
730
- }, h.prototype._findMapping = function(w, I, T, A, b, m) {
731
- if (w[T] <= 0)
732
- throw new TypeError("Line must be greater than or equal to 1, got " + w[T]);
733
- if (w[A] < 0)
734
- throw new TypeError("Column must be greater than or equal to 0, got " + w[A]);
735
- return l.search(w, I, b, m);
740
+ }, h.prototype._findMapping = function(v, I, T, A, P, m) {
741
+ if (v[T] <= 0)
742
+ throw new TypeError("Line must be greater than or equal to 1, got " + v[T]);
743
+ if (v[A] < 0)
744
+ throw new TypeError("Column must be greater than or equal to 0, got " + v[A]);
745
+ return l.search(v, I, P, m);
736
746
  }, h.prototype.computeColumnSpans = function() {
737
- for (var w = 0; w < this._generatedMappings.length; ++w) {
738
- var I = this._generatedMappings[w];
739
- if (w + 1 < this._generatedMappings.length) {
740
- var T = this._generatedMappings[w + 1];
747
+ for (var v = 0; v < this._generatedMappings.length; ++v) {
748
+ var I = this._generatedMappings[v];
749
+ if (v + 1 < this._generatedMappings.length) {
750
+ var T = this._generatedMappings[v + 1];
741
751
  if (I.generatedLine === T.generatedLine) {
742
752
  I.lastGeneratedColumn = T.generatedColumn - 1;
743
753
  continue;
@@ -745,26 +755,26 @@ function Ba() {
745
755
  }
746
756
  I.lastGeneratedColumn = 1 / 0;
747
757
  }
748
- }, h.prototype.originalPositionFor = function(w) {
758
+ }, h.prototype.originalPositionFor = function(v) {
749
759
  var I = {
750
- generatedLine: a.getArg(w, "line"),
751
- generatedColumn: a.getArg(w, "column")
760
+ generatedLine: a.getArg(v, "line"),
761
+ generatedColumn: a.getArg(v, "column")
752
762
  }, T = this._findMapping(
753
763
  I,
754
764
  this._generatedMappings,
755
765
  "generatedLine",
756
766
  "generatedColumn",
757
767
  a.compareByGeneratedPositionsDeflated,
758
- a.getArg(w, "bias", u.GREATEST_LOWER_BOUND)
768
+ a.getArg(v, "bias", u.GREATEST_LOWER_BOUND)
759
769
  );
760
770
  if (T >= 0) {
761
771
  var A = this._generatedMappings[T];
762
772
  if (A.generatedLine === I.generatedLine) {
763
- var b = a.getArg(A, "source", null);
764
- b !== null && (b = this._sources.at(b), b = a.computeSourceURL(this.sourceRoot, b, this._sourceMapURL));
773
+ var P = a.getArg(A, "source", null);
774
+ P !== null && (P = this._sources.at(P), P = a.computeSourceURL(this.sourceRoot, P, this._sourceMapURL));
765
775
  var m = a.getArg(A, "name", null);
766
776
  return m !== null && (m = this._names.at(m)), {
767
- source: b,
777
+ source: P,
768
778
  line: a.getArg(A, "originalLine", null),
769
779
  column: a.getArg(A, "originalColumn", null),
770
780
  name: m
@@ -778,30 +788,30 @@ function Ba() {
778
788
  name: null
779
789
  };
780
790
  }, h.prototype.hasContentsOfAllSources = function() {
781
- return this.sourcesContent ? this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(w) {
782
- return w == null;
791
+ return this.sourcesContent ? this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(v) {
792
+ return v == null;
783
793
  }) : !1;
784
- }, h.prototype.sourceContentFor = function(w, I) {
794
+ }, h.prototype.sourceContentFor = function(v, I) {
785
795
  if (!this.sourcesContent)
786
796
  return null;
787
- var T = this._findSourceIndex(w);
797
+ var T = this._findSourceIndex(v);
788
798
  if (T >= 0)
789
799
  return this.sourcesContent[T];
790
- var A = w;
800
+ var A = v;
791
801
  this.sourceRoot != null && (A = a.relative(this.sourceRoot, A));
792
- var b;
793
- if (this.sourceRoot != null && (b = a.urlParse(this.sourceRoot))) {
802
+ var P;
803
+ if (this.sourceRoot != null && (P = a.urlParse(this.sourceRoot))) {
794
804
  var m = A.replace(/^file:\/\//, "");
795
- if (b.scheme == "file" && this._sources.has(m))
805
+ if (P.scheme == "file" && this._sources.has(m))
796
806
  return this.sourcesContent[this._sources.indexOf(m)];
797
- if ((!b.path || b.path == "/") && this._sources.has("/" + A))
807
+ if ((!P.path || P.path == "/") && this._sources.has("/" + A))
798
808
  return this.sourcesContent[this._sources.indexOf("/" + A)];
799
809
  }
800
810
  if (I)
801
811
  return null;
802
812
  throw new Error('"' + A + '" is not in the SourceMap.');
803
- }, h.prototype.generatedPositionFor = function(w) {
804
- var I = a.getArg(w, "source");
813
+ }, h.prototype.generatedPositionFor = function(v) {
814
+ var I = a.getArg(v, "source");
805
815
  if (I = this._findSourceIndex(I), I < 0)
806
816
  return {
807
817
  line: null,
@@ -810,23 +820,23 @@ function Ba() {
810
820
  };
811
821
  var T = {
812
822
  source: I,
813
- originalLine: a.getArg(w, "line"),
814
- originalColumn: a.getArg(w, "column")
823
+ originalLine: a.getArg(v, "line"),
824
+ originalColumn: a.getArg(v, "column")
815
825
  }, A = this._findMapping(
816
826
  T,
817
827
  this._originalMappings,
818
828
  "originalLine",
819
829
  "originalColumn",
820
830
  a.compareByOriginalPositions,
821
- a.getArg(w, "bias", u.GREATEST_LOWER_BOUND)
831
+ a.getArg(v, "bias", u.GREATEST_LOWER_BOUND)
822
832
  );
823
833
  if (A >= 0) {
824
- var b = this._originalMappings[A];
825
- if (b.source === T.source)
834
+ var P = this._originalMappings[A];
835
+ if (P.source === T.source)
826
836
  return {
827
- line: a.getArg(b, "generatedLine", null),
828
- column: a.getArg(b, "generatedColumn", null),
829
- lastColumn: a.getArg(b, "lastGeneratedColumn", null)
837
+ line: a.getArg(P, "generatedLine", null),
838
+ column: a.getArg(P, "generatedColumn", null),
839
+ lastColumn: a.getArg(P, "lastGeneratedColumn", null)
830
840
  };
831
841
  }
832
842
  return {
@@ -834,15 +844,15 @@ function Ba() {
834
844
  column: null,
835
845
  lastColumn: null
836
846
  };
837
- }, yt.BasicSourceMapConsumer = h;
838
- function S(v, w) {
839
- var I = v;
840
- typeof v == "string" && (I = a.parseSourceMapInput(v));
847
+ }, gt.BasicSourceMapConsumer = h;
848
+ function S(w, v) {
849
+ var I = w;
850
+ typeof w == "string" && (I = a.parseSourceMapInput(w));
841
851
  var T = a.getArg(I, "version"), A = a.getArg(I, "sections");
842
852
  if (T != this._version)
843
853
  throw new Error("Unsupported version: " + T);
844
854
  this._sources = new i(), this._names = new i();
845
- var b = {
855
+ var P = {
846
856
  line: -1,
847
857
  column: 0
848
858
  };
@@ -850,42 +860,42 @@ function Ba() {
850
860
  if (m.url)
851
861
  throw new Error("Support for url field in sections not implemented.");
852
862
  var O = a.getArg(m, "offset"), U = a.getArg(O, "line"), D = a.getArg(O, "column");
853
- if (U < b.line || U === b.line && D < b.column)
863
+ if (U < P.line || U === P.line && D < P.column)
854
864
  throw new Error("Section offsets must be ordered and non-overlapping.");
855
- return b = O, {
865
+ return P = O, {
856
866
  generatedOffset: {
857
867
  // The offset fields are 0-based, but we use 1-based indices when
858
868
  // encoding/decoding from VLQ.
859
869
  generatedLine: U + 1,
860
870
  generatedColumn: D + 1
861
871
  },
862
- consumer: new u(a.getArg(m, "map"), w)
872
+ consumer: new u(a.getArg(m, "map"), v)
863
873
  };
864
874
  });
865
875
  }
866
876
  return S.prototype = Object.create(u.prototype), S.prototype.constructor = u, S.prototype._version = 3, Object.defineProperty(S.prototype, "sources", {
867
877
  get: function() {
868
- for (var v = [], w = 0; w < this._sections.length; w++)
869
- for (var I = 0; I < this._sections[w].consumer.sources.length; I++)
870
- v.push(this._sections[w].consumer.sources[I]);
871
- return v;
878
+ for (var w = [], v = 0; v < this._sections.length; v++)
879
+ for (var I = 0; I < this._sections[v].consumer.sources.length; I++)
880
+ w.push(this._sections[v].consumer.sources[I]);
881
+ return w;
872
882
  }
873
- }), S.prototype.originalPositionFor = function(w) {
883
+ }), S.prototype.originalPositionFor = function(v) {
874
884
  var I = {
875
- generatedLine: a.getArg(w, "line"),
876
- generatedColumn: a.getArg(w, "column")
885
+ generatedLine: a.getArg(v, "line"),
886
+ generatedColumn: a.getArg(v, "column")
877
887
  }, T = l.search(
878
888
  I,
879
889
  this._sections,
880
- function(b, m) {
881
- var O = b.generatedLine - m.generatedOffset.generatedLine;
882
- return O || b.generatedColumn - m.generatedOffset.generatedColumn;
890
+ function(P, m) {
891
+ var O = P.generatedLine - m.generatedOffset.generatedLine;
892
+ return O || P.generatedColumn - m.generatedOffset.generatedColumn;
883
893
  }
884
894
  ), A = this._sections[T];
885
895
  return A ? A.consumer.originalPositionFor({
886
896
  line: I.generatedLine - (A.generatedOffset.generatedLine - 1),
887
897
  column: I.generatedColumn - (A.generatedOffset.generatedLine === I.generatedLine ? A.generatedOffset.generatedColumn - 1 : 0),
888
- bias: w.bias
898
+ bias: v.bias
889
899
  }) : {
890
900
  source: null,
891
901
  line: null,
@@ -893,29 +903,29 @@ function Ba() {
893
903
  name: null
894
904
  };
895
905
  }, S.prototype.hasContentsOfAllSources = function() {
896
- return this._sections.every(function(w) {
897
- return w.consumer.hasContentsOfAllSources();
906
+ return this._sections.every(function(v) {
907
+ return v.consumer.hasContentsOfAllSources();
898
908
  });
899
- }, S.prototype.sourceContentFor = function(w, I) {
909
+ }, S.prototype.sourceContentFor = function(v, I) {
900
910
  for (var T = 0; T < this._sections.length; T++) {
901
- var A = this._sections[T], b = A.consumer.sourceContentFor(w, !0);
902
- if (b || b === "")
903
- return b;
911
+ var A = this._sections[T], P = A.consumer.sourceContentFor(v, !0);
912
+ if (P || P === "")
913
+ return P;
904
914
  }
905
915
  if (I)
906
916
  return null;
907
- throw new Error('"' + w + '" is not in the SourceMap.');
908
- }, S.prototype.generatedPositionFor = function(w) {
917
+ throw new Error('"' + v + '" is not in the SourceMap.');
918
+ }, S.prototype.generatedPositionFor = function(v) {
909
919
  for (var I = 0; I < this._sections.length; I++) {
910
920
  var T = this._sections[I];
911
- if (T.consumer._findSourceIndex(a.getArg(w, "source")) !== -1) {
912
- var A = T.consumer.generatedPositionFor(w);
921
+ if (T.consumer._findSourceIndex(a.getArg(v, "source")) !== -1) {
922
+ var A = T.consumer.generatedPositionFor(v);
913
923
  if (A) {
914
- var b = {
924
+ var P = {
915
925
  line: A.line + (T.generatedOffset.generatedLine - 1),
916
926
  column: A.column + (T.generatedOffset.generatedLine === A.line ? T.generatedOffset.generatedColumn - 1 : 0)
917
927
  };
918
- return b;
928
+ return P;
919
929
  }
920
930
  }
921
931
  }
@@ -923,11 +933,11 @@ function Ba() {
923
933
  line: null,
924
934
  column: null
925
935
  };
926
- }, S.prototype._parseMappings = function(w, I) {
936
+ }, S.prototype._parseMappings = function(v, I) {
927
937
  this.__generatedMappings = [], this.__originalMappings = [];
928
938
  for (var T = 0; T < this._sections.length; T++)
929
- for (var A = this._sections[T], b = A.consumer._generatedMappings, m = 0; m < b.length; m++) {
930
- var O = b[m], U = A.consumer._sources.at(O.source);
939
+ for (var A = this._sections[T], P = A.consumer._generatedMappings, m = 0; m < P.length; m++) {
940
+ var O = P[m], U = A.consumer._sources.at(O.source);
931
941
  U !== null && (U = a.computeSourceURL(A.consumer.sourceRoot, U, this._sourceMapURL)), this._sources.add(U), U = this._sources.indexOf(U);
932
942
  var D = null;
933
943
  O.name && (D = A.consumer._names.at(O.name), this._names.add(D), D = this._names.indexOf(D));
@@ -942,49 +952,49 @@ function Ba() {
942
952
  this.__generatedMappings.push(B), typeof B.originalLine == "number" && this.__originalMappings.push(B);
943
953
  }
944
954
  o(this.__generatedMappings, a.compareByGeneratedPositionsDeflated), o(this.__originalMappings, a.compareByOriginalPositions);
945
- }, yt.IndexedSourceMapConsumer = S, yt;
955
+ }, gt.IndexedSourceMapConsumer = S, gt;
946
956
  }
947
- var vs = {}, sr;
957
+ var Cs = {}, sr;
948
958
  function _a() {
949
- if (sr) return vs;
959
+ if (sr) return Cs;
950
960
  sr = 1;
951
961
  var a = wr().SourceMapGenerator, l = kt(), i = /(\r?\n)/, r = 10, o = "$$$isSourceNode$$$";
952
- function u(h, d, g, P, S) {
953
- this.children = [], this.sourceContents = {}, this.line = h ?? null, this.column = d ?? null, this.source = g ?? null, this.name = S ?? null, this[o] = !0, P != null && this.add(P);
962
+ function u(h, d, g, b, S) {
963
+ this.children = [], this.sourceContents = {}, this.line = h ?? null, this.column = d ?? null, this.source = g ?? null, this.name = S ?? null, this[o] = !0, b != null && this.add(b);
954
964
  }
955
- return u.fromStringWithSourceMap = function(d, g, P) {
956
- var S = new u(), v = d.split(i), w = 0, I = function() {
965
+ return u.fromStringWithSourceMap = function(d, g, b) {
966
+ var S = new u(), w = d.split(i), v = 0, I = function() {
957
967
  var O = D(), U = D() || "";
958
968
  return O + U;
959
969
  function D() {
960
- return w < v.length ? v[w++] : void 0;
970
+ return v < w.length ? w[v++] : void 0;
961
971
  }
962
- }, T = 1, A = 0, b = null;
972
+ }, T = 1, A = 0, P = null;
963
973
  return g.eachMapping(function(O) {
964
- if (b !== null)
974
+ if (P !== null)
965
975
  if (T < O.generatedLine)
966
- m(b, I()), T++, A = 0;
976
+ m(P, I()), T++, A = 0;
967
977
  else {
968
- var U = v[w] || "", D = U.substr(0, O.generatedColumn - A);
969
- v[w] = U.substr(O.generatedColumn - A), A = O.generatedColumn, m(b, D), b = O;
978
+ var U = w[v] || "", D = U.substr(0, O.generatedColumn - A);
979
+ w[v] = U.substr(O.generatedColumn - A), A = O.generatedColumn, m(P, D), P = O;
970
980
  return;
971
981
  }
972
982
  for (; T < O.generatedLine; )
973
983
  S.add(I()), T++;
974
984
  if (A < O.generatedColumn) {
975
- var U = v[w] || "";
976
- S.add(U.substr(0, O.generatedColumn)), v[w] = U.substr(O.generatedColumn), A = O.generatedColumn;
985
+ var U = w[v] || "";
986
+ S.add(U.substr(0, O.generatedColumn)), w[v] = U.substr(O.generatedColumn), A = O.generatedColumn;
977
987
  }
978
- b = O;
979
- }, this), w < v.length && (b && m(b, I()), S.add(v.splice(w).join(""))), g.sources.forEach(function(O) {
988
+ P = O;
989
+ }, this), v < w.length && (P && m(P, I()), S.add(w.splice(v).join(""))), g.sources.forEach(function(O) {
980
990
  var U = g.sourceContentFor(O);
981
- U != null && (P != null && (O = l.join(P, O)), S.setSourceContent(O, U));
991
+ U != null && (b != null && (O = l.join(b, O)), S.setSourceContent(O, U));
982
992
  }), S;
983
993
  function m(O, U) {
984
994
  if (O === null || O.source === void 0)
985
995
  S.add(U);
986
996
  else {
987
- var D = P ? l.join(P, O.source) : O.source;
997
+ var D = b ? l.join(b, O.source) : O.source;
988
998
  S.add(new u(
989
999
  O.originalLine,
990
1000
  O.originalColumn,
@@ -1018,30 +1028,30 @@ function _a() {
1018
1028
  );
1019
1029
  return this;
1020
1030
  }, u.prototype.walk = function(d) {
1021
- for (var g, P = 0, S = this.children.length; P < S; P++)
1022
- g = this.children[P], g[o] ? g.walk(d) : g !== "" && d(g, {
1031
+ for (var g, b = 0, S = this.children.length; b < S; b++)
1032
+ g = this.children[b], g[o] ? g.walk(d) : g !== "" && d(g, {
1023
1033
  source: this.source,
1024
1034
  line: this.line,
1025
1035
  column: this.column,
1026
1036
  name: this.name
1027
1037
  });
1028
1038
  }, u.prototype.join = function(d) {
1029
- var g, P, S = this.children.length;
1039
+ var g, b, S = this.children.length;
1030
1040
  if (S > 0) {
1031
- for (g = [], P = 0; P < S - 1; P++)
1032
- g.push(this.children[P]), g.push(d);
1033
- g.push(this.children[P]), this.children = g;
1041
+ for (g = [], b = 0; b < S - 1; b++)
1042
+ g.push(this.children[b]), g.push(d);
1043
+ g.push(this.children[b]), this.children = g;
1034
1044
  }
1035
1045
  return this;
1036
1046
  }, u.prototype.replaceRight = function(d, g) {
1037
- var P = this.children[this.children.length - 1];
1038
- return P[o] ? P.replaceRight(d, g) : typeof P == "string" ? this.children[this.children.length - 1] = P.replace(d, g) : this.children.push("".replace(d, g)), this;
1047
+ var b = this.children[this.children.length - 1];
1048
+ return b[o] ? b.replaceRight(d, g) : typeof b == "string" ? this.children[this.children.length - 1] = b.replace(d, g) : this.children.push("".replace(d, g)), this;
1039
1049
  }, u.prototype.setSourceContent = function(d, g) {
1040
1050
  this.sourceContents[l.toSetString(d)] = g;
1041
1051
  }, u.prototype.walkSourceContents = function(d) {
1042
- for (var g = 0, P = this.children.length; g < P; g++)
1052
+ for (var g = 0, b = this.children.length; g < b; g++)
1043
1053
  this.children[g][o] && this.children[g].walkSourceContents(d);
1044
- for (var S = Object.keys(this.sourceContents), g = 0, P = S.length; g < P; g++)
1054
+ for (var S = Object.keys(this.sourceContents), g = 0, b = S.length; g < b; g++)
1045
1055
  d(l.fromSetString(S[g]), this.sourceContents[S[g]]);
1046
1056
  }, u.prototype.toString = function() {
1047
1057
  var d = "";
@@ -1053,53 +1063,53 @@ function _a() {
1053
1063
  code: "",
1054
1064
  line: 1,
1055
1065
  column: 0
1056
- }, P = new a(d), S = !1, v = null, w = null, I = null, T = null;
1057
- return this.walk(function(A, b) {
1058
- g.code += A, b.source !== null && b.line !== null && b.column !== null ? ((v !== b.source || w !== b.line || I !== b.column || T !== b.name) && P.addMapping({
1059
- source: b.source,
1066
+ }, b = new a(d), S = !1, w = null, v = null, I = null, T = null;
1067
+ return this.walk(function(A, P) {
1068
+ g.code += A, P.source !== null && P.line !== null && P.column !== null ? ((w !== P.source || v !== P.line || I !== P.column || T !== P.name) && b.addMapping({
1069
+ source: P.source,
1060
1070
  original: {
1061
- line: b.line,
1062
- column: b.column
1071
+ line: P.line,
1072
+ column: P.column
1063
1073
  },
1064
1074
  generated: {
1065
1075
  line: g.line,
1066
1076
  column: g.column
1067
1077
  },
1068
- name: b.name
1069
- }), v = b.source, w = b.line, I = b.column, T = b.name, S = !0) : S && (P.addMapping({
1078
+ name: P.name
1079
+ }), w = P.source, v = P.line, I = P.column, T = P.name, S = !0) : S && (b.addMapping({
1070
1080
  generated: {
1071
1081
  line: g.line,
1072
1082
  column: g.column
1073
1083
  }
1074
- }), v = null, S = !1);
1084
+ }), w = null, S = !1);
1075
1085
  for (var m = 0, O = A.length; m < O; m++)
1076
- A.charCodeAt(m) === r ? (g.line++, g.column = 0, m + 1 === O ? (v = null, S = !1) : S && P.addMapping({
1077
- source: b.source,
1086
+ A.charCodeAt(m) === r ? (g.line++, g.column = 0, m + 1 === O ? (w = null, S = !1) : S && b.addMapping({
1087
+ source: P.source,
1078
1088
  original: {
1079
- line: b.line,
1080
- column: b.column
1089
+ line: P.line,
1090
+ column: P.column
1081
1091
  },
1082
1092
  generated: {
1083
1093
  line: g.line,
1084
1094
  column: g.column
1085
1095
  },
1086
- name: b.name
1096
+ name: P.name
1087
1097
  })) : g.column++;
1088
- }), this.walkSourceContents(function(A, b) {
1089
- P.setSourceContent(A, b);
1090
- }), { code: g.code, map: P };
1091
- }, vs.SourceNode = u, vs;
1098
+ }), this.walkSourceContents(function(A, P) {
1099
+ b.setSourceContent(A, P);
1100
+ }), { code: g.code, map: b };
1101
+ }, Cs.SourceNode = u, Cs;
1092
1102
  }
1093
1103
  var ir;
1094
1104
  function ja() {
1095
- return ir || (ir = 1, mt.SourceMapGenerator = wr().SourceMapGenerator, mt.SourceMapConsumer = Ba().SourceMapConsumer, mt.SourceNode = _a().SourceNode), mt;
1105
+ return ir || (ir = 1, yt.SourceMapGenerator = wr().SourceMapGenerator, yt.SourceMapConsumer = Ba().SourceMapConsumer, yt.SourceNode = _a().SourceNode), yt;
1096
1106
  }
1097
1107
  var Ra = ja();
1098
1108
  const Us = /* @__PURE__ */ La(Ra);
1099
- var st = {}, rr;
1109
+ var rt = {}, rr;
1100
1110
  function Ua() {
1101
- if (rr) return st;
1102
- rr = 1, Object.defineProperty(st, "__esModule", {
1111
+ if (rr) return rt;
1112
+ rr = 1, Object.defineProperty(rt, "__esModule", {
1103
1113
  value: !0
1104
1114
  });
1105
1115
  function a(p, t) {
@@ -1383,7 +1393,7 @@ function Ua() {
1383
1393
  YieldInParameter: "Yield expression is not allowed in formal parameters.",
1384
1394
  YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.",
1385
1395
  ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0."
1386
- }, P = {
1396
+ }, b = {
1387
1397
  StrictDelete: "Deleting local variable in strict mode.",
1388
1398
  StrictEvalArguments: ({
1389
1399
  referenceName: p
@@ -1401,8 +1411,8 @@ function Ua() {
1401
1411
  unexpected: p
1402
1412
  }) => `Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(p)}\`.`
1403
1413
  };
1404
- const v = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]);
1405
- var w = Object.assign({
1414
+ const w = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]);
1415
+ var v = Object.assign({
1406
1416
  PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",
1407
1417
  PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',
1408
1418
  PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.",
@@ -1474,9 +1484,9 @@ function Ua() {
1474
1484
  }), x;
1475
1485
  };
1476
1486
  }
1477
- function b(p, t) {
1487
+ function P(p, t) {
1478
1488
  if (Array.isArray(p))
1479
- return (s) => b(s, p[0]);
1489
+ return (s) => P(s, p[0]);
1480
1490
  const e = {};
1481
1491
  for (const s of Object.keys(p)) {
1482
1492
  const n = p[s], c = typeof n == "string" ? {
@@ -1496,7 +1506,7 @@ function Ua() {
1496
1506
  }
1497
1507
  return e;
1498
1508
  }
1499
- const m = Object.assign({}, b(u), b(g), b(P), b(S), b`pipelineOperator`(w));
1509
+ const m = Object.assign({}, P(u), P(g), P(b), P(S), P`pipelineOperator`(v));
1500
1510
  function O() {
1501
1511
  return {
1502
1512
  sourceType: "script",
@@ -1838,7 +1848,7 @@ function Ua() {
1838
1848
  var e, s, n, c;
1839
1849
  return ++z, Ne.set(p, z), X.push(p), Y.push((e = t.binop) != null ? e : -1), re.push((s = t.beforeExpr) != null ? s : !1), ne.push((n = t.startsExpr) != null ? n : !1), oe.push((c = t.prefix) != null ? c : !1), V.push(new Fe("name", t)), z;
1840
1850
  }
1841
- const Ye = {
1851
+ const et = {
1842
1852
  bracketL: J("[", {
1843
1853
  beforeExpr: _,
1844
1854
  startsExpr: N
@@ -2236,7 +2246,7 @@ function Ua() {
2236
2246
  function se(p) {
2237
2247
  return p >= 93 && p <= 133;
2238
2248
  }
2239
- function Je(p) {
2249
+ function He(p) {
2240
2250
  return p <= 92;
2241
2251
  }
2242
2252
  function Se(p) {
@@ -2248,7 +2258,7 @@ function Ua() {
2248
2258
  function rn(p) {
2249
2259
  return re[p];
2250
2260
  }
2251
- function ht(p) {
2261
+ function pt(p) {
2252
2262
  return ne[p];
2253
2263
  }
2254
2264
  function nn(p) {
@@ -2260,7 +2270,7 @@ function Ua() {
2260
2270
  function an(p) {
2261
2271
  return p >= 90 && p <= 92;
2262
2272
  }
2263
- function as(p) {
2273
+ function os(p) {
2264
2274
  return p >= 58 && p <= 92;
2265
2275
  }
2266
2276
  function on(p) {
@@ -2302,11 +2312,11 @@ function Ua() {
2302
2312
  }, V[143].updateContext = (p) => {
2303
2313
  p.push(k.j_expr, k.j_oTag);
2304
2314
  };
2305
- let os = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Hs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
2306
- const fn = new RegExp("[" + os + "]"), dn = new RegExp("[" + os + Hs + "]");
2307
- os = Hs = null;
2315
+ let ls = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Hs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
2316
+ const fn = new RegExp("[" + ls + "]"), dn = new RegExp("[" + ls + Hs + "]");
2317
+ ls = Hs = null;
2308
2318
  const Ks = [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], mn = [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];
2309
- function ls(p, t) {
2319
+ function cs(p, t) {
2310
2320
  let e = 65536;
2311
2321
  for (let s = 0, n = t.length; s < n; s += 2) {
2312
2322
  if (e += t[s], e > p) return !1;
@@ -2315,16 +2325,16 @@ function Ua() {
2315
2325
  return !1;
2316
2326
  }
2317
2327
  function _e(p) {
2318
- return p < 65 ? p === 36 : p <= 90 ? !0 : p < 97 ? p === 95 : p <= 122 ? !0 : p <= 65535 ? p >= 170 && fn.test(String.fromCharCode(p)) : ls(p, Ks);
2328
+ return p < 65 ? p === 36 : p <= 90 ? !0 : p < 97 ? p === 95 : p <= 122 ? !0 : p <= 65535 ? p >= 170 && fn.test(String.fromCharCode(p)) : cs(p, Ks);
2319
2329
  }
2320
- function Ze(p) {
2321
- return p < 48 ? p === 36 : p < 58 ? !0 : p < 65 ? !1 : p <= 90 ? !0 : p < 97 ? p === 95 : p <= 122 ? !0 : p <= 65535 ? p >= 170 && dn.test(String.fromCharCode(p)) : ls(p, Ks) || ls(p, mn);
2330
+ function tt(p) {
2331
+ return p < 48 ? p === 36 : p < 58 ? !0 : p < 65 ? !1 : p <= 90 ? !0 : p < 97 ? p === 95 : p <= 122 ? !0 : p <= 65535 ? p >= 170 && dn.test(String.fromCharCode(p)) : cs(p, Ks) || cs(p, mn);
2322
2332
  }
2323
- const cs = {
2333
+ const us = {
2324
2334
  keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
2325
2335
  strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
2326
2336
  strictBind: ["eval", "arguments"]
2327
- }, yn = new Set(cs.keyword), gn = new Set(cs.strict), xn = new Set(cs.strictBind);
2337
+ }, yn = new Set(us.keyword), gn = new Set(us.strict), xn = new Set(us.strictBind);
2328
2338
  function Xs(p, t) {
2329
2339
  return t && p === "await" || p === "enum";
2330
2340
  }
@@ -2347,12 +2357,12 @@ function Ua() {
2347
2357
  function Sn(p) {
2348
2358
  return Tn.has(p);
2349
2359
  }
2350
- class us {
2360
+ class hs {
2351
2361
  constructor(t) {
2352
2362
  this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t;
2353
2363
  }
2354
2364
  }
2355
- class hs {
2365
+ class ps {
2356
2366
  constructor(t, e) {
2357
2367
  this.parser = void 0, this.scopeStack = [], this.inModule = void 0, this.undefinedExports = /* @__PURE__ */ new Map(), this.parser = t, this.inModule = e;
2358
2368
  }
@@ -2399,7 +2409,7 @@ function Ua() {
2399
2409
  return this.treatFunctionsAsVarInScope(this.currentScope());
2400
2410
  }
2401
2411
  createScope(t) {
2402
- return new us(t);
2412
+ return new hs(t);
2403
2413
  }
2404
2414
  enter(t) {
2405
2415
  this.scopeStack.push(this.createScope(t));
@@ -2464,12 +2474,12 @@ function Ua() {
2464
2474
  }
2465
2475
  }
2466
2476
  }
2467
- class En extends us {
2477
+ class En extends hs {
2468
2478
  constructor(...t) {
2469
2479
  super(...t), this.declareFunctions = /* @__PURE__ */ new Set();
2470
2480
  }
2471
2481
  }
2472
- class An extends hs {
2482
+ class An extends ps {
2473
2483
  createScope(t) {
2474
2484
  return new En(t);
2475
2485
  }
@@ -2493,7 +2503,7 @@ function Ua() {
2493
2503
  this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t);
2494
2504
  }
2495
2505
  }
2496
- const wn = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]), G = b`flow`({
2506
+ const wn = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]), G = P`flow`({
2497
2507
  AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",
2498
2508
  AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",
2499
2509
  AssignReservedType: ({
@@ -2883,8 +2893,8 @@ function Ua() {
2883
2893
  const qe = this.lookahead();
2884
2894
  Mt(qe.type) && (le = this.state.value, this.next());
2885
2895
  }
2886
- const Ke = this.flowParseObjectTypeProperty(fe, W, K, te, le, n, f ?? !C);
2887
- Ke === null ? (F = !0, ee = this.state.lastTokStartLoc) : x.properties.push(Ke);
2896
+ const Xe = this.flowParseObjectTypeProperty(fe, W, K, te, le, n, f ?? !C);
2897
+ Xe === null ? (F = !0, ee = this.state.lastTokStartLoc) : x.properties.push(Xe);
2888
2898
  }
2889
2899
  this.flowObjectTypeSemicolon(), ee && !this.match(8) && !this.match(9) && this.raise(G.UnexpectedExplicitInexactInObject, ee);
2890
2900
  }
@@ -3043,7 +3053,7 @@ function Ua() {
3043
3053
  case 87:
3044
3054
  return this.flowParseTypeofType();
3045
3055
  default:
3046
- if (as(this.state.type)) {
3056
+ if (os(this.state.type)) {
3047
3057
  const x = Re(this.state.type);
3048
3058
  return this.next(), super.createIdentifier(s, x);
3049
3059
  } else if (se(this.state.type))
@@ -4144,7 +4154,7 @@ function Ua() {
4144
4154
  hearts: "♥",
4145
4155
  diams: "♦"
4146
4156
  }, On = /\r\n|[\r\n\u2028\u2029]/, _t = new RegExp(On.source, "g");
4147
- function et(p) {
4157
+ function st(p) {
4148
4158
  switch (p) {
4149
4159
  case 10:
4150
4160
  case 13:
@@ -4157,11 +4167,11 @@ function Ua() {
4157
4167
  }
4158
4168
  function ei(p, t, e) {
4159
4169
  for (let s = t; s < e; s++)
4160
- if (et(p.charCodeAt(s)))
4170
+ if (st(p.charCodeAt(s)))
4161
4171
  return !0;
4162
4172
  return !1;
4163
4173
  }
4164
- const ps = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, fs = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
4174
+ const fs = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ds = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
4165
4175
  function Dn(p) {
4166
4176
  switch (p) {
4167
4177
  case 9:
@@ -4190,7 +4200,7 @@ function Ua() {
4190
4200
  return !1;
4191
4201
  }
4192
4202
  }
4193
- const He = b`jsx`({
4203
+ const Ke = P`jsx`({
4194
4204
  AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.",
4195
4205
  MissingClosingTagElement: ({
4196
4206
  openingTagName: p
@@ -4208,13 +4218,13 @@ function Ua() {
4208
4218
  function Ue(p) {
4209
4219
  return p ? p.type === "JSXOpeningFragment" || p.type === "JSXClosingFragment" : !1;
4210
4220
  }
4211
- function tt(p) {
4221
+ function it(p) {
4212
4222
  if (p.type === "JSXIdentifier")
4213
4223
  return p.name;
4214
4224
  if (p.type === "JSXNamespacedName")
4215
4225
  return p.namespace.name + ":" + p.name.name;
4216
4226
  if (p.type === "JSXMemberExpression")
4217
- return tt(p.object) + "." + tt(p.property);
4227
+ return it(p.object) + "." + it(p.property);
4218
4228
  throw new Error("Node had unexpected type: " + p.type);
4219
4229
  }
4220
4230
  var Mn = (p) => class extends p {
@@ -4222,7 +4232,7 @@ function Ua() {
4222
4232
  let e = "", s = this.state.pos;
4223
4233
  for (; ; ) {
4224
4234
  if (this.state.pos >= this.length)
4225
- throw this.raise(He.UnterminatedJsxContent, this.state.startLoc);
4235
+ throw this.raise(Ke.UnterminatedJsxContent, this.state.startLoc);
4226
4236
  const n = this.input.charCodeAt(this.state.pos);
4227
4237
  switch (n) {
4228
4238
  case 60:
@@ -4239,7 +4249,7 @@ function Ua() {
4239
4249
  case 62:
4240
4250
  case 125:
4241
4251
  default:
4242
- et(n) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos;
4252
+ st(n) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos;
4243
4253
  }
4244
4254
  }
4245
4255
  }
@@ -4257,7 +4267,7 @@ function Ua() {
4257
4267
  throw this.raise(m.UnterminatedString, this.state.startLoc);
4258
4268
  const c = this.input.charCodeAt(this.state.pos);
4259
4269
  if (c === e) break;
4260
- c === 38 ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadEntity(), n = this.state.pos) : et(c) ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadNewLine(!1), n = this.state.pos) : ++this.state.pos;
4270
+ c === 38 ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadEntity(), n = this.state.pos) : st(c) ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadNewLine(!1), n = this.state.pos) : ++this.state.pos;
4261
4271
  }
4262
4272
  s += this.input.slice(n, this.state.pos++), this.finishToken(134, s);
4263
4273
  }
@@ -4287,12 +4297,12 @@ function Ua() {
4287
4297
  const s = this.state.pos;
4288
4298
  do
4289
4299
  e = this.input.charCodeAt(++this.state.pos);
4290
- while (Ze(e) || e === 45);
4300
+ while (tt(e) || e === 45);
4291
4301
  this.finishToken(141, this.input.slice(s, this.state.pos));
4292
4302
  }
4293
4303
  jsxParseIdentifier() {
4294
4304
  const e = this.startNode();
4295
- return this.match(141) ? e.name = this.state.value : as(this.state.type) ? e.name = Re(this.state.type) : this.unexpected(), this.next(), this.finishNode(e, "JSXIdentifier");
4305
+ return this.match(141) ? e.name = this.state.value : os(this.state.type) ? e.name = Re(this.state.type) : this.unexpected(), this.next(), this.finishNode(e, "JSXIdentifier");
4296
4306
  }
4297
4307
  jsxParseNamespacedName() {
4298
4308
  const e = this.state.startLoc, s = this.jsxParseIdentifier();
@@ -4315,12 +4325,12 @@ function Ua() {
4315
4325
  let e;
4316
4326
  switch (this.state.type) {
4317
4327
  case 5:
4318
- return e = this.startNode(), this.setContext(k.brace), this.next(), e = this.jsxParseExpressionContainer(e, k.j_oTag), e.expression.type === "JSXEmptyExpression" && this.raise(He.AttributeIsEmpty, e), e;
4328
+ return e = this.startNode(), this.setContext(k.brace), this.next(), e = this.jsxParseExpressionContainer(e, k.j_oTag), e.expression.type === "JSXEmptyExpression" && this.raise(Ke.AttributeIsEmpty, e), e;
4319
4329
  case 143:
4320
4330
  case 134:
4321
4331
  return this.parseExprAtom();
4322
4332
  default:
4323
- throw this.raise(He.UnsupportedJsxValue, this.state.startLoc);
4333
+ throw this.raise(Ke.UnsupportedJsxValue, this.state.startLoc);
4324
4334
  }
4325
4335
  }
4326
4336
  jsxParseEmptyExpression() {
@@ -4381,14 +4391,14 @@ function Ua() {
4381
4391
  default:
4382
4392
  this.unexpected();
4383
4393
  }
4384
- Ue(c) && !Ue(f) && f !== null ? this.raise(He.MissingClosingTagFragment, f) : !Ue(c) && Ue(f) ? this.raise(He.MissingClosingTagElement, f, {
4385
- openingTagName: tt(c.name)
4386
- }) : !Ue(c) && !Ue(f) && tt(f.name) !== tt(c.name) && this.raise(He.MissingClosingTagElement, f, {
4387
- openingTagName: tt(c.name)
4394
+ Ue(c) && !Ue(f) && f !== null ? this.raise(Ke.MissingClosingTagFragment, f) : !Ue(c) && Ue(f) ? this.raise(Ke.MissingClosingTagElement, f, {
4395
+ openingTagName: it(c.name)
4396
+ }) : !Ue(c) && !Ue(f) && it(f.name) !== it(c.name) && this.raise(Ke.MissingClosingTagElement, f, {
4397
+ openingTagName: it(c.name)
4388
4398
  });
4389
4399
  }
4390
4400
  if (Ue(c) ? (s.openingFragment = c, s.closingFragment = f) : (s.openingElement = c, s.closingElement = f), s.children = n, this.match(47))
4391
- throw this.raise(He.UnwrappedAdjacentJSXElements, this.state.startLoc);
4401
+ throw this.raise(Ke.UnwrappedAdjacentJSXElements, this.state.startLoc);
4392
4402
  return Ue(c) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement");
4393
4403
  }
4394
4404
  jsxParseElement() {
@@ -4449,12 +4459,12 @@ function Ua() {
4449
4459
  this.state.canStartJSXElement = rn(n);
4450
4460
  }
4451
4461
  };
4452
- class Fn extends us {
4462
+ class Fn extends hs {
4453
4463
  constructor(...t) {
4454
4464
  super(...t), this.tsNames = /* @__PURE__ */ new Map();
4455
4465
  }
4456
4466
  }
4457
- class Bn extends hs {
4467
+ class Bn extends ps {
4458
4468
  constructor(...t) {
4459
4469
  super(...t), this.importsStack = [];
4460
4470
  }
@@ -4582,14 +4592,14 @@ function Ua() {
4582
4592
  function Rn(p, t) {
4583
4593
  p.leadingComments === void 0 ? p.leadingComments = t : p.leadingComments.unshift(...t);
4584
4594
  }
4585
- function pt(p, t) {
4595
+ function ft(p, t) {
4586
4596
  p.innerComments === void 0 ? p.innerComments = t : p.innerComments.unshift(...t);
4587
4597
  }
4588
4598
  function $e(p, t, e) {
4589
4599
  let s = null, n = t.length;
4590
4600
  for (; s === null && n > 0; )
4591
4601
  s = t[--n];
4592
- s === null || s.start > e.start ? pt(p, e.comments) : ti(s, e.comments);
4602
+ s === null || s.start > e.start ? ft(p, e.comments) : ti(s, e.comments);
4593
4603
  }
4594
4604
  class Un extends jn {
4595
4605
  addComment(t) {
@@ -4670,10 +4680,10 @@ function Ua() {
4670
4680
  $e(n, n.members, t);
4671
4681
  break;
4672
4682
  default:
4673
- pt(n, s);
4683
+ ft(n, s);
4674
4684
  }
4675
4685
  else
4676
- pt(n, s);
4686
+ ft(n, s);
4677
4687
  }
4678
4688
  }
4679
4689
  finalizeRemainingComments() {
@@ -4711,7 +4721,7 @@ function Ua() {
4711
4721
  }
4712
4722
  }
4713
4723
  }
4714
- class ds {
4724
+ class ms {
4715
4725
  constructor() {
4716
4726
  this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = {
4717
4727
  maxNumOfResolvableTopics: 0,
@@ -4809,7 +4819,7 @@ function Ua() {
4809
4819
  return new l(this.curLine, this.pos - this.lineStart, this.pos + this.startIndex);
4810
4820
  }
4811
4821
  clone() {
4812
- const t = new ds();
4822
+ const t = new ms();
4813
4823
  return t.flags = this.flags, t.startIndex = this.startIndex, t.curLine = this.curLine, t.lineStart = this.lineStart, t.startLoc = this.startLoc, t.endLoc = this.endLoc, t.errors = this.errors.slice(), t.potentialArrowAt = this.potentialArrowAt, t.noArrowAt = this.noArrowAt.slice(), t.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice(), t.topicContext = this.topicContext, t.labels = this.labels.slice(), t.commentsLen = this.commentsLen, t.commentStack = this.commentStack.slice(), t.pos = this.pos, t.type = this.type, t.value = this.value, t.start = this.start, t.end = this.end, t.lastTokEndLoc = this.lastTokEndLoc, t.lastTokStartLoc = this.lastTokStartLoc, t.context = this.context.slice(), t.firstInvalidTemplateEscapePos = this.firstInvalidTemplateEscapePos, t.strictErrors = this.strictErrors, t.tokensLength = this.tokensLength, t;
4814
4824
  }
4815
4825
  }
@@ -4888,7 +4898,7 @@ function Ua() {
4888
4898
  return {
4889
4899
  code: E,
4890
4900
  pos: t
4891
- } = ms(p, t, e, s, 2, !1, f, c), y(E === null ? null : String.fromCharCode(E));
4901
+ } = ys(p, t, e, s, 2, !1, f, c), y(E === null ? null : String.fromCharCode(E));
4892
4902
  }
4893
4903
  case 117: {
4894
4904
  let E;
@@ -4933,7 +4943,7 @@ function Ua() {
4933
4943
  return y(String.fromCharCode(x));
4934
4944
  }
4935
4945
  }
4936
- function ms(p, t, e, s, n, c, f, y) {
4946
+ function ys(p, t, e, s, n, c, f, y) {
4937
4947
  const x = t;
4938
4948
  let E;
4939
4949
  return {
@@ -4951,9 +4961,9 @@ function Ua() {
4951
4961
  const te = p.charCodeAt(t);
4952
4962
  let le;
4953
4963
  if (te === 95 && y !== "bail") {
4954
- const Ke = p.charCodeAt(t - 1), qe = p.charCodeAt(t + 1);
4964
+ const Xe = p.charCodeAt(t - 1), qe = p.charCodeAt(t + 1);
4955
4965
  if (y) {
4956
- if (Number.isNaN(qe) || !$(qe) || F.has(Ke) || F.has(qe)) {
4966
+ if (Number.isNaN(qe) || !$(qe) || F.has(Xe) || F.has(qe)) {
4957
4967
  if (E) return {
4958
4968
  n: null,
4959
4969
  pos: t
@@ -5000,7 +5010,7 @@ function Ua() {
5000
5010
  if (++t, {
5001
5011
  code: y,
5002
5012
  pos: t
5003
- } = ms(p, t, e, s, p.indexOf("}", t) - t, !0, n, c), ++t, y !== null && y > 1114111)
5013
+ } = ys(p, t, e, s, p.indexOf("}", t) - t, !0, n, c), ++t, y !== null && y > 1114111)
5004
5014
  if (n)
5005
5015
  c.invalidCodePoint(t, e, s);
5006
5016
  else
@@ -5012,13 +5022,13 @@ function Ua() {
5012
5022
  ({
5013
5023
  code: y,
5014
5024
  pos: t
5015
- } = ms(p, t, e, s, 4, !1, n, c));
5025
+ } = ys(p, t, e, s, 4, !1, n, c));
5016
5026
  return {
5017
5027
  code: y,
5018
5028
  pos: t
5019
5029
  };
5020
5030
  }
5021
- function ft(p, t, e) {
5031
+ function dt(p, t, e) {
5022
5032
  return new l(e, p - t, p);
5023
5033
  }
5024
5034
  const zn = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]);
@@ -5031,7 +5041,7 @@ function Ua() {
5031
5041
  class Wn extends Un {
5032
5042
  constructor(t, e) {
5033
5043
  super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = {
5034
- invalidDigit: (s, n, c, f) => this.optionFlags & 2048 ? (this.raise(m.InvalidDigit, ft(s, n, c), {
5044
+ invalidDigit: (s, n, c, f) => this.optionFlags & 2048 ? (this.raise(m.InvalidDigit, dt(s, n, c), {
5035
5045
  radix: f
5036
5046
  }), !0) : !1,
5037
5047
  numericSeparatorInEscapeSequence: this.errorBuilder(m.NumericSeparatorInEscapeSequence),
@@ -5041,17 +5051,17 @@ function Ua() {
5041
5051
  invalidCodePoint: this.errorBuilder(m.InvalidCodePoint)
5042
5052
  }), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, {
5043
5053
  strictNumericEscape: (s, n, c) => {
5044
- this.recordStrictModeErrors(m.StrictNumericEscape, ft(s, n, c));
5054
+ this.recordStrictModeErrors(m.StrictNumericEscape, dt(s, n, c));
5045
5055
  },
5046
5056
  unterminated: (s, n, c) => {
5047
- throw this.raise(m.UnterminatedString, ft(s - 1, n, c));
5057
+ throw this.raise(m.UnterminatedString, dt(s - 1, n, c));
5048
5058
  }
5049
5059
  }), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, {
5050
5060
  strictNumericEscape: this.errorBuilder(m.StrictNumericEscape),
5051
5061
  unterminated: (s, n, c) => {
5052
- throw this.raise(m.UnterminatedTemplate, ft(s, n, c));
5062
+ throw this.raise(m.UnterminatedTemplate, dt(s, n, c));
5053
5063
  }
5054
- }), this.state = new ds(), this.state.init(t), this.input = e, this.length = e.length, this.comments = [], this.isLookahead = !1;
5064
+ }), this.state = new ms(), this.state.init(t), this.input = e, this.length = e.length, this.comments = [], this.isLookahead = !1;
5055
5065
  }
5056
5066
  pushToken(t) {
5057
5067
  this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength;
@@ -5091,7 +5101,7 @@ function Ua() {
5091
5101
  return this.nextTokenStartSince(this.state.pos);
5092
5102
  }
5093
5103
  nextTokenStartSince(t) {
5094
- return ps.lastIndex = t, ps.test(this.input) ? ps.lastIndex : t;
5104
+ return fs.lastIndex = t, fs.test(this.input) ? fs.lastIndex : t;
5095
5105
  }
5096
5106
  lookaheadCharCode() {
5097
5107
  return this.lookaheadCharCodeSince(this.state.pos);
@@ -5103,7 +5113,7 @@ function Ua() {
5103
5113
  return this.nextTokenInLineStartSince(this.state.pos);
5104
5114
  }
5105
5115
  nextTokenInLineStartSince(t) {
5106
- return fs.lastIndex = t, fs.test(this.input) ? fs.lastIndex : t;
5116
+ return ds.lastIndex = t, ds.test(this.input) ? ds.lastIndex : t;
5107
5117
  }
5108
5118
  lookaheadInLineCharCode() {
5109
5119
  return this.input.charCodeAt(this.nextTokenInLineStart());
@@ -5153,7 +5163,7 @@ function Ua() {
5153
5163
  this.isLookahead || (s = this.state.curPosition());
5154
5164
  let n = this.input.charCodeAt(this.state.pos += t);
5155
5165
  if (this.state.pos < this.length)
5156
- for (; !et(n) && ++this.state.pos < this.length; )
5166
+ for (; !st(n) && ++this.state.pos < this.length; )
5157
5167
  n = this.input.charCodeAt(this.state.pos);
5158
5168
  if (this.isLookahead) return;
5159
5169
  const c = this.state.pos, y = {
@@ -5267,7 +5277,7 @@ function Ua() {
5267
5277
  let t = this.input.charCodeAt(this.state.pos + 1);
5268
5278
  if (t !== 33) return !1;
5269
5279
  const e = this.state.pos;
5270
- for (this.state.pos += 1; !et(t) && ++this.state.pos < this.length; )
5280
+ for (this.state.pos += 1; !st(t) && ++this.state.pos < this.length; )
5271
5281
  t = this.input.charCodeAt(this.state.pos);
5272
5282
  const s = this.input.slice(e + 2, this.state.pos);
5273
5283
  return this.finishToken(28, s), !0;
@@ -5521,7 +5531,7 @@ function Ua() {
5521
5531
  if (c >= this.length)
5522
5532
  throw this.raise(m.UnterminatedRegExp, r(t, 1));
5523
5533
  const E = this.input.charCodeAt(c);
5524
- if (et(E))
5534
+ if (st(E))
5525
5535
  throw this.raise(m.UnterminatedRegExp, r(t, 1));
5526
5536
  if (s)
5527
5537
  s = !1;
@@ -5543,7 +5553,7 @@ function Ua() {
5543
5553
  const E = this.codePointAtPos(c), C = String.fromCharCode(E);
5544
5554
  if (zn.has(E))
5545
5555
  E === 118 ? y.includes("u") && this.raise(m.IncompatibleRegExpUVFlags, x()) : E === 117 && y.includes("v") && this.raise(m.IncompatibleRegExpUVFlags, x()), y.includes(C) && this.raise(m.DuplicateRegExpFlags, x());
5546
- else if (Ze(E) || E === 92)
5556
+ else if (tt(E) || E === 92)
5547
5557
  this.raise(m.MalformedRegExpFlags, x());
5548
5558
  else
5549
5559
  break;
@@ -5655,11 +5665,11 @@ function Ua() {
5655
5665
  let n = this.state.pos;
5656
5666
  for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) {
5657
5667
  const c = this.codePointAtPos(this.state.pos);
5658
- if (Ze(c))
5668
+ if (tt(c))
5659
5669
  this.state.pos += c <= 65535 ? 1 : 2;
5660
5670
  else if (c === 92) {
5661
5671
  this.state.containsEsc = !0, e += this.input.slice(n, this.state.pos);
5662
- const f = this.state.curPosition(), y = this.state.pos === s ? _e : Ze;
5672
+ const f = this.state.curPosition(), y = this.state.pos === s ? _e : tt;
5663
5673
  if (this.input.charCodeAt(++this.state.pos) !== 117) {
5664
5674
  this.raise(m.MissingUnicodeEscape, this.state.curPosition()), n = this.state.pos - 1;
5665
5675
  continue;
@@ -5680,7 +5690,7 @@ function Ua() {
5680
5690
  const {
5681
5691
  type: t
5682
5692
  } = this.state;
5683
- as(t) && this.state.containsEsc && this.raise(m.InvalidEscapedReservedWord, this.state.startLoc, {
5693
+ os(t) && this.state.containsEsc && this.raise(m.InvalidEscapedReservedWord, this.state.startLoc, {
5684
5694
  reservedWord: Re(t)
5685
5695
  });
5686
5696
  }
@@ -5721,7 +5731,7 @@ function Ua() {
5721
5731
  }
5722
5732
  errorBuilder(t) {
5723
5733
  return (e, s, n) => {
5724
- this.raise(t, ft(e, s, n));
5734
+ this.raise(t, dt(e, s, n));
5725
5735
  };
5726
5736
  }
5727
5737
  }
@@ -5884,7 +5894,7 @@ function Ua() {
5884
5894
  isUnparsedContextual(t, e) {
5885
5895
  if (this.input.startsWith(e, t)) {
5886
5896
  const s = this.input.charCodeAt(t + e.length);
5887
- return !(Ze(s) || (s & 64512) === 55296);
5897
+ return !(tt(s) || (s & 64512) === 55296);
5888
5898
  }
5889
5899
  return !1;
5890
5900
  }
@@ -6040,8 +6050,8 @@ function Ua() {
6040
6050
  this.type = "", this.start = e, this.end = 0, this.loc = new i(s), t?.optionFlags & 128 && (this.range = [e, 0]), t != null && t.filename && (this.loc.filename = t.filename);
6041
6051
  }
6042
6052
  }
6043
- const ys = Vt.prototype;
6044
- ys.__clone = function() {
6053
+ const gs = Vt.prototype;
6054
+ gs.__clone = function() {
6045
6055
  const p = new Vt(void 0, this.start, this.loc.start), t = Object.keys(this);
6046
6056
  for (let e = 0, s = t.length; e < s; e++) {
6047
6057
  const n = t[e];
@@ -6086,7 +6096,7 @@ function Ua() {
6086
6096
  loc: c,
6087
6097
  range: f,
6088
6098
  name: y
6089
- } = t, x = Object.create(ys);
6099
+ } = t, x = Object.create(gs);
6090
6100
  return x.type = e, x.start = s, x.end = n, x.loc = c, x.range = f, x.name = y, t.extra && (x.extra = t.extra), x;
6091
6101
  }
6092
6102
  cloneStringLiteral(t) {
@@ -6097,7 +6107,7 @@ function Ua() {
6097
6107
  loc: c,
6098
6108
  range: f,
6099
6109
  extra: y
6100
- } = t, x = Object.create(ys);
6110
+ } = t, x = Object.create(gs);
6101
6111
  return x.type = e, x.start = s, x.end = n, x.loc = c, x.range = f, x.extra = y, x.value = t.value, x;
6102
6112
  }
6103
6113
  }
@@ -6378,7 +6388,7 @@ function Ua() {
6378
6388
  if (!p)
6379
6389
  throw new Error("Assert fail");
6380
6390
  }
6381
- const H = b`typescript`({
6391
+ const H = P`typescript`({
6382
6392
  AbstractMethodHasImplementation: ({
6383
6393
  methodName: p
6384
6394
  }) => `Method '${p}' cannot have an implementation because it is marked abstract.`,
@@ -7393,7 +7403,7 @@ function Ua() {
7393
7403
  return $.callee = e, $.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts($.arguments), $.typeParameters = E, c.optionalChainMember && ($.optional = f), this.finishCallExpression($, c.optionalChainMember);
7394
7404
  }
7395
7405
  const C = this.state.type;
7396
- if (C === 48 || C === 52 || C !== 10 && ht(C) && !this.hasPrecedingLineBreak())
7406
+ if (C === 48 || C === 52 || C !== 10 && pt(C) && !this.hasPrecedingLineBreak())
7397
7407
  return;
7398
7408
  const F = this.startNodeAt(s);
7399
7409
  return F.expression = e, F.typeParameters = E, this.finishNode(F, "TSInstantiationExpression");
@@ -7930,7 +7940,7 @@ function Ua() {
7930
7940
  e[$] = E ? "type" : "value", C && this.eatContextual(93) && (e[f] = s ? this.parseIdentifier() : this.parseModuleExportName()), e[f] || (e[f] = this.cloneIdentifier(e[c])), s && this.checkIdentifier(e[f], E ? 4098 : 4096);
7931
7941
  }
7932
7942
  fillOptionalPropertiesForTSESLint(e) {
7933
- var s, n, c, f, y, x, E, C, F, $, W, K, ee, fe, te, le, Ke, qe, bi, Pi, Ti, Si, Ei, Ai, wi, vi, Ci, Ii, Ni, ki, Li, Oi, Di, Mi, Fi, Bi, _i, ji, Ri, Ui, $i, Vi, qi, zi, Wi, Ji;
7943
+ var s, n, c, f, y, x, E, C, F, $, W, K, ee, fe, te, le, Xe, qe, bi, Pi, Ti, Si, Ei, Ai, wi, vi, Ci, Ii, Ni, ki, Li, Oi, Di, Mi, Fi, Bi, _i, ji, Ri, Ui, $i, Vi, qi, zi, Wi, Ji;
7934
7944
  switch (e.type) {
7935
7945
  case "ExpressionStatement":
7936
7946
  (s = e.directive) != null || (e.directive = void 0);
@@ -7962,7 +7972,7 @@ function Ua() {
7962
7972
  case "TSPropertySignature":
7963
7973
  (fe = e.optional) != null || (e.optional = !1);
7964
7974
  case "TSIndexSignature":
7965
- (te = e.accessibility) != null || (e.accessibility = void 0), (le = e.readonly) != null || (e.readonly = !1), (Ke = e.static) != null || (e.static = !1);
7975
+ (te = e.accessibility) != null || (e.accessibility = void 0), (le = e.readonly) != null || (e.readonly = !1), (Xe = e.static) != null || (e.static = !1);
7966
7976
  return;
7967
7977
  case "TSAbstractPropertyDefinition":
7968
7978
  case "PropertyDefinition":
@@ -8050,7 +8060,7 @@ function Ua() {
8050
8060
  function pi(p) {
8051
8061
  return p.type === "Identifier" ? !0 : p.type !== "MemberExpression" || p.computed ? !1 : pi(p.object);
8052
8062
  }
8053
- const fi = b`placeholders`({
8063
+ const fi = P`placeholders`({
8054
8064
  ClassNameIsRequired: "A class name is required.",
8055
8065
  UnexpectedSpace: "Unexpected space in placeholder."
8056
8066
  });
@@ -8338,7 +8348,7 @@ function Ua() {
8338
8348
  const {
8339
8349
  type: x
8340
8350
  } = this.state;
8341
- if ((this.hasPlugin("v8intrinsic") ? ht(x) : ht(x) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8351
+ if ((this.hasPlugin("v8intrinsic") ? pt(x) : pt(x) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8342
8352
  return this.raiseOverwrite(m.YieldNotInGeneratorFunction, s), this.parseYield(s);
8343
8353
  }
8344
8354
  return y;
@@ -8422,7 +8432,7 @@ function Ua() {
8422
8432
  const {
8423
8433
  startLoc: e
8424
8434
  } = this.state, s = this.parseMaybeAssign();
8425
- return v.has(s.type) && !((t = s.extra) != null && t.parenthesized) && this.raise(m.PipeUnparenthesizedBody, e, {
8435
+ return w.has(s.type) && !((t = s.extra) != null && t.parenthesized) && this.raise(m.PipeUnparenthesizedBody, e, {
8426
8436
  type: s.type
8427
8437
  }), this.topicReferenceWasUsedInCurrentContext() || this.raise(m.PipeTopicUnused, e), s;
8428
8438
  }
@@ -8452,7 +8462,7 @@ function Ua() {
8452
8462
  const {
8453
8463
  type: x
8454
8464
  } = this.state;
8455
- if ((this.hasPlugin("v8intrinsic") ? ht(x) : ht(x) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8465
+ if ((this.hasPlugin("v8intrinsic") ? pt(x) : pt(x) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8456
8466
  return this.raiseOverwrite(m.AwaitNotInAsyncContext, s), this.parseAwait(s);
8457
8467
  }
8458
8468
  return y;
@@ -8571,7 +8581,7 @@ function Ua() {
8571
8581
  }
8572
8582
  parseAsyncArrowFromCallExpression(t, e) {
8573
8583
  var s;
8574
- return this.resetPreviousNodeTrailingComments(e), this.expect(19), this.parseArrowExpression(t, e.arguments, !0, (s = e.extra) == null ? void 0 : s.trailingCommaLoc), e.innerComments && pt(t, e.innerComments), e.callee.trailingComments && pt(t, e.callee.trailingComments), t;
8584
+ return this.resetPreviousNodeTrailingComments(e), this.expect(19), this.parseArrowExpression(t, e.arguments, !0, (s = e.extra) == null ? void 0 : s.trailingCommaLoc), e.innerComments && ft(t, e.innerComments), e.callee.trailingComments && ft(t, e.callee.trailingComments), t;
8575
8585
  }
8576
8586
  parseNoCallExpr() {
8577
8587
  const t = this.state.startLoc;
@@ -9114,7 +9124,7 @@ function Ua() {
9114
9124
  type: n
9115
9125
  } = this.state;
9116
9126
  Se(n) ? e = this.state.value : this.unexpected();
9117
- const c = Je(n);
9127
+ const c = He(n);
9118
9128
  return t ? c && this.replaceToken(132) : this.checkReservedWord(e, s, c, !1), this.next(), e;
9119
9129
  }
9120
9130
  checkReservedWord(t, e, s, n) {
@@ -9338,11 +9348,11 @@ function Ua() {
9338
9348
  parsePropertyNamePrefixOperator(t) {
9339
9349
  }
9340
9350
  }
9341
- const gs = {
9351
+ const xs = {
9342
9352
  kind: 1
9343
9353
  }, fa = {
9344
9354
  kind: 2
9345
- }, da = /[\uD800-\uDFFF]/u, xs = /in(?:stanceof)?/y;
9355
+ }, da = /[\uD800-\uDFFF]/u, bs = /in(?:stanceof)?/y;
9346
9356
  function ma(p, t, e) {
9347
9357
  for (let s = 0; s < p.length; s++) {
9348
9358
  const n = p[s], {
@@ -9488,9 +9498,9 @@ function Ua() {
9488
9498
  }
9489
9499
  chStartsBindingIdentifier(t, e) {
9490
9500
  if (_e(t)) {
9491
- if (xs.lastIndex = e, xs.test(this.input)) {
9492
- const s = this.codePointAtPos(xs.lastIndex);
9493
- if (!Ze(s) && s !== 92)
9501
+ if (bs.lastIndex = e, bs.test(this.input)) {
9502
+ const s = this.codePointAtPos(bs.lastIndex);
9503
+ if (!tt(s) && s !== 92)
9494
9504
  return !1;
9495
9505
  }
9496
9506
  return !0;
@@ -9683,10 +9693,10 @@ function Ua() {
9683
9693
  return this.expect(11), t;
9684
9694
  }
9685
9695
  parseDoWhileStatement(t) {
9686
- return this.next(), this.state.labels.push(gs), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.labels.pop(), this.expect(92), t.test = this.parseHeaderExpression(), this.eat(13), this.finishNode(t, "DoWhileStatement");
9696
+ return this.next(), this.state.labels.push(xs), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.labels.pop(), this.expect(92), t.test = this.parseHeaderExpression(), this.eat(13), this.finishNode(t, "DoWhileStatement");
9687
9697
  }
9688
9698
  parseForStatement(t) {
9689
- this.next(), this.state.labels.push(gs);
9699
+ this.next(), this.state.labels.push(xs);
9690
9700
  let e = null;
9691
9701
  if (this.isContextual(96) && this.recordAwaitIfAllowed() && (e = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13))
9692
9702
  return e !== null && this.unexpected(e), this.parseFor(t, null);
@@ -9754,7 +9764,7 @@ function Ua() {
9754
9764
  return this.next(), this.parseVar(t, !1, e, s), this.semicolon(), this.finishNode(t, "VariableDeclaration");
9755
9765
  }
9756
9766
  parseWhileStatement(t) {
9757
- return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(gs), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement");
9767
+ return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(xs), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement");
9758
9768
  }
9759
9769
  parseWithStatement(t) {
9760
9770
  return this.state.strict && this.raise(m.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement");
@@ -10408,7 +10418,7 @@ function Ua() {
10408
10418
  t.allowAwaitOutsideFunction && (n |= 1), t.allowReturnOutsideFunction && (n |= 2), t.allowImportExportEverywhere && (n |= 8), t.allowSuperOutsideMethod && (n |= 16), t.allowUndeclaredExports && (n |= 64), t.allowNewTargetOutsideFunction && (n |= 4), t.allowYieldOutsideFunction && (n |= 32), t.ranges && (n |= 128), t.tokens && (n |= 256), t.createImportExpressions && (n |= 512), t.createParenthesizedExpressions && (n |= 1024), t.errorRecovery && (n |= 2048), t.attachComment && (n |= 4096), t.annexB && (n |= 8192), this.optionFlags = n;
10409
10419
  }
10410
10420
  getScopeHandler() {
10411
- return hs;
10421
+ return ps;
10412
10422
  }
10413
10423
  parse() {
10414
10424
  this.enterInitialScopes();
@@ -10422,12 +10432,12 @@ function Ua() {
10422
10432
  t = Object.assign({}, t);
10423
10433
  try {
10424
10434
  t.sourceType = "module";
10425
- const s = dt(t, p), n = s.parse();
10435
+ const s = mt(t, p), n = s.parse();
10426
10436
  if (s.sawUnambiguousESM)
10427
10437
  return n;
10428
10438
  if (s.ambiguousScriptDifferentAst)
10429
10439
  try {
10430
- return t.sourceType = "script", dt(t, p).parse();
10440
+ return t.sourceType = "script", mt(t, p).parse();
10431
10441
  } catch {
10432
10442
  }
10433
10443
  else
@@ -10435,16 +10445,16 @@ function Ua() {
10435
10445
  return n;
10436
10446
  } catch (s) {
10437
10447
  try {
10438
- return t.sourceType = "script", dt(t, p).parse();
10448
+ return t.sourceType = "script", mt(t, p).parse();
10439
10449
  } catch {
10440
10450
  }
10441
10451
  throw s;
10442
10452
  }
10443
10453
  } else
10444
- return dt(t, p).parse();
10454
+ return mt(t, p).parse();
10445
10455
  }
10446
10456
  function xa(p, t) {
10447
- const e = dt(t, p);
10457
+ const e = mt(t, p);
10448
10458
  return e.options.strictMode && (e.state.strict = !0), e.getExpression();
10449
10459
  }
10450
10460
  function ba(p) {
@@ -10453,8 +10463,8 @@ function Ua() {
10453
10463
  t[e] = Be(p[e]);
10454
10464
  return t;
10455
10465
  }
10456
- const Pa = ba(Ye);
10457
- function dt(p, t) {
10466
+ const Pa = ba(et);
10467
+ function mt(p, t) {
10458
10468
  let e = gi;
10459
10469
  const s = /* @__PURE__ */ new Map();
10460
10470
  if (p != null && p.plugins) {
@@ -10481,15 +10491,15 @@ function Ua() {
10481
10491
  }
10482
10492
  return s;
10483
10493
  }
10484
- return st.parse = ga, st.parseExpression = xa, st.tokTypes = Pa, st;
10494
+ return rt.parse = ga, rt.parseExpression = xa, rt.tokTypes = Pa, rt;
10485
10495
  }
10486
10496
  var $a = Ua();
10487
10497
  function we(a) {
10488
10498
  var l = a.use(pe), i = l.Type, r = l.builtInTypes, o = r.number;
10489
- function u(P) {
10499
+ function u(b) {
10490
10500
  return i.from(
10491
- (S) => o.check(S) && S >= P,
10492
- o + " >= " + P
10501
+ (S) => o.check(S) && S >= b,
10502
+ o + " >= " + b
10493
10503
  );
10494
10504
  }
10495
10505
  const h = {
@@ -10522,10 +10532,10 @@ function we(a) {
10522
10532
  r.undefined
10523
10533
  );
10524
10534
  const g = i.from(
10525
- (P) => {
10526
- if (P === null)
10535
+ (b) => {
10536
+ if (b === null)
10527
10537
  return !0;
10528
- var S = typeof P;
10538
+ var S = typeof b;
10529
10539
  return !(S === "object" || S === "function");
10530
10540
  },
10531
10541
  d.toString()
@@ -10556,10 +10566,10 @@ class Lt {
10556
10566
  }
10557
10567
  arrayOf() {
10558
10568
  const l = this;
10559
- return new ks(l);
10569
+ return new Ls(l);
10560
10570
  }
10561
10571
  }
10562
- class ks extends Lt {
10572
+ class Ls extends Lt {
10563
10573
  constructor(l) {
10564
10574
  super(), this.elemType = l, Pe(this, "kind", "ArrayType");
10565
10575
  }
@@ -10604,7 +10614,7 @@ class or extends Lt {
10604
10614
  return this.types.some((r) => r.check(l, !!i)) ? !0 : (typeof i == "function" && i(this, l), !1);
10605
10615
  }
10606
10616
  }
10607
- class gt extends Lt {
10617
+ class xt extends Lt {
10608
10618
  constructor(l, i) {
10609
10619
  super(), this.name = l, this.predicate = i, Pe(this, "kind", "PredicateType");
10610
10620
  }
@@ -10616,12 +10626,12 @@ class gt extends Lt {
10616
10626
  return !r && typeof i == "function" && i(this, l), r;
10617
10627
  }
10618
10628
  }
10619
- class At {
10629
+ class wt {
10620
10630
  constructor(l, i) {
10621
10631
  this.type = l, this.typeName = i, Pe(this, "baseNames", []), Pe(this, "ownFields", /* @__PURE__ */ Object.create(null)), Pe(this, "allSupertypes", /* @__PURE__ */ Object.create(null)), Pe(this, "supertypeList", []), Pe(this, "allFields", /* @__PURE__ */ Object.create(null)), Pe(this, "fieldNames", []), Pe(this, "finalized", !1), Pe(this, "buildable", !1), Pe(this, "buildParams", []);
10622
10632
  }
10623
10633
  isSupertypeOf(l) {
10624
- if (l instanceof At) {
10634
+ if (l instanceof wt) {
10625
10635
  if (this.finalized !== !0 || l.finalized !== !0)
10626
10636
  throw new Error("");
10627
10637
  return ve.call(l.allSupertypes, this.typeName);
@@ -10676,14 +10686,14 @@ function pe(a) {
10676
10686
  return new or(z.map((V) => l.from(V)));
10677
10687
  },
10678
10688
  from(z, V) {
10679
- if (z instanceof ks || z instanceof nr || z instanceof ar || z instanceof or || z instanceof gt)
10689
+ if (z instanceof Ls || z instanceof nr || z instanceof ar || z instanceof or || z instanceof xt)
10680
10690
  return z;
10681
- if (z instanceof At)
10691
+ if (z instanceof wt)
10682
10692
  return z.type;
10683
10693
  if (d.check(z)) {
10684
10694
  if (z.length !== 1)
10685
10695
  throw new Error("only one element type is permitted for typed arrays");
10686
- return new ks(l.from(z[0]));
10696
+ return new Ls(l.from(z[0]));
10687
10697
  }
10688
10698
  if (g.check(z))
10689
10699
  return new ar(Object.keys(z).map((Y) => new lr(Y, l.from(z[Y], Y))));
@@ -10693,7 +10703,7 @@ function pe(a) {
10693
10703
  return r[X];
10694
10704
  if (typeof V != "string")
10695
10705
  throw new Error("missing name");
10696
- return new gt(V, z);
10706
+ return new xt(V, z);
10697
10707
  }
10698
10708
  return new nr(z);
10699
10709
  },
@@ -10711,22 +10721,22 @@ function pe(a) {
10711
10721
  };
10712
10722
  var i = [], r = [];
10713
10723
  function o(z, V) {
10714
- const X = Zt.call(V), Y = new gt(
10724
+ const X = Zt.call(V), Y = new xt(
10715
10725
  z,
10716
10726
  (re) => Zt.call(re) === X
10717
10727
  );
10718
10728
  return V && typeof V.constructor == "function" && (i.push(V.constructor), r.push(Y)), Y;
10719
10729
  }
10720
10730
  const u = o("string", "truthy"), h = o("function", function() {
10721
- }), d = o("array", []), g = o("object", {}), P = o("RegExp", /./), S = o("Date", /* @__PURE__ */ new Date()), v = o("number", 3), w = o("boolean", !0), I = o("null", null), T = o("undefined", void 0), A = typeof BigInt == "function" ? o("BigInt", BigInt(1234)) : new gt("BigInt", () => !1), b = {
10731
+ }), d = o("array", []), g = o("object", {}), b = o("RegExp", /./), S = o("Date", /* @__PURE__ */ new Date()), w = o("number", 3), v = o("boolean", !0), I = o("null", null), T = o("undefined", void 0), A = typeof BigInt == "function" ? o("BigInt", BigInt(1234)) : new xt("BigInt", () => !1), P = {
10722
10732
  string: u,
10723
10733
  function: h,
10724
10734
  array: d,
10725
10735
  object: g,
10726
- RegExp: P,
10736
+ RegExp: b,
10727
10737
  Date: S,
10728
- number: v,
10729
- boolean: w,
10738
+ number: w,
10739
+ boolean: v,
10730
10740
  null: I,
10731
10741
  undefined: T,
10732
10742
  BigInt: A
@@ -10743,10 +10753,10 @@ function pe(a) {
10743
10753
  }
10744
10754
  return null;
10745
10755
  }
10746
- class U extends At {
10756
+ class U extends wt {
10747
10757
  constructor(V) {
10748
10758
  super(
10749
- new gt(V, (X, Y) => this.check(X, Y)),
10759
+ new xt(V, (X, Y) => this.check(X, Y)),
10750
10760
  V
10751
10761
  );
10752
10762
  }
@@ -10769,22 +10779,22 @@ function pe(a) {
10769
10779
  var Q = this.allFields;
10770
10780
  if (!ve.call(Q, ne))
10771
10781
  throw new Error("" + ne);
10772
- var Ye = Q[ne], se = Ye.type, Je;
10782
+ var et = Q[ne], se = et.type, He;
10773
10783
  if (J)
10774
- Je = oe;
10775
- else if (Ye.defaultFn)
10776
- Je = Ye.defaultFn.call(re);
10784
+ He = oe;
10785
+ else if (et.defaultFn)
10786
+ He = et.defaultFn.call(re);
10777
10787
  else {
10778
10788
  var Se = "no value or default function given for field " + JSON.stringify(ne) + " of " + this.typeName + "(" + this.buildParams.map(function(Mt) {
10779
10789
  return Q[Mt];
10780
10790
  }).join(", ") + ")";
10781
10791
  throw new Error(Se);
10782
10792
  }
10783
- if (!se.check(Je))
10793
+ if (!se.check(He))
10784
10794
  throw new Error(
10785
- $s(Je) + " does not match field " + Ye + " of type " + this.typeName
10795
+ $s(He) + " does not match field " + et + " of type " + this.typeName
10786
10796
  );
10787
- re[ne] = Je;
10797
+ re[ne] = He;
10788
10798
  }
10789
10799
  }, Y = (...re) => {
10790
10800
  var ne = re.length;
@@ -10829,7 +10839,7 @@ function pe(a) {
10829
10839
  var V = this.allFields, X = this.allSupertypes;
10830
10840
  this.baseNames.forEach((re) => {
10831
10841
  var ne = m[re];
10832
- if (ne instanceof At)
10842
+ if (ne instanceof wt)
10833
10843
  ne.finalize(), Z(V, ne.allFields), Z(X, ne.allSupertypes);
10834
10844
  else {
10835
10845
  var oe = "unknown supertype name " + JSON.stringify(re) + " for subtype " + JSON.stringify(this.typeName);
@@ -10967,7 +10977,7 @@ function pe(a) {
10967
10977
  }
10968
10978
  return {
10969
10979
  Type: l,
10970
- builtInTypes: b,
10980
+ builtInTypes: P,
10971
10981
  getSupertypeNames: D,
10972
10982
  computeSupertypeLookupTable: B,
10973
10983
  builders: R,
@@ -10986,67 +10996,67 @@ ae(() => module);
10986
10996
  var za = Object.prototype, Wt = za.hasOwnProperty;
10987
10997
  function Cr(a) {
10988
10998
  var l = a.use(pe), i = l.builtInTypes.array, r = l.builtInTypes.number;
10989
- const o = function v(w, I, T) {
10990
- if (!(this instanceof v))
10999
+ const o = function w(v, I, T) {
11000
+ if (!(this instanceof w))
10991
11001
  throw new Error("Path constructor cannot be invoked without 'new'");
10992
11002
  if (I) {
10993
- if (!(I instanceof v))
11003
+ if (!(I instanceof w))
10994
11004
  throw new Error("");
10995
11005
  } else
10996
11006
  I = null, T = null;
10997
- this.value = w, this.parentPath = I, this.name = T, this.__childCache = null;
11007
+ this.value = v, this.parentPath = I, this.name = T, this.__childCache = null;
10998
11008
  };
10999
11009
  var u = o.prototype;
11000
- function h(v) {
11001
- return v.__childCache || (v.__childCache = /* @__PURE__ */ Object.create(null));
11010
+ function h(w) {
11011
+ return w.__childCache || (w.__childCache = /* @__PURE__ */ Object.create(null));
11002
11012
  }
11003
- function d(v, w) {
11004
- var I = h(v), T = v.getValueProperty(w), A = I[w];
11005
- return (!Wt.call(I, w) || // Ensure consistency between cache and reality.
11006
- A.value !== T) && (A = I[w] = new v.constructor(
11013
+ function d(w, v) {
11014
+ var I = h(w), T = w.getValueProperty(v), A = I[v];
11015
+ return (!Wt.call(I, v) || // Ensure consistency between cache and reality.
11016
+ A.value !== T) && (A = I[v] = new w.constructor(
11007
11017
  T,
11008
- v,
11009
- w
11018
+ w,
11019
+ v
11010
11020
  )), A;
11011
11021
  }
11012
- u.getValueProperty = function(w) {
11013
- return this.value[w];
11014
- }, u.get = function(...w) {
11015
- for (var I = this, T = w.length, A = 0; A < T; ++A)
11016
- I = d(I, w[A]);
11022
+ u.getValueProperty = function(v) {
11023
+ return this.value[v];
11024
+ }, u.get = function(...v) {
11025
+ for (var I = this, T = v.length, A = 0; A < T; ++A)
11026
+ I = d(I, v[A]);
11017
11027
  return I;
11018
- }, u.each = function(w, I) {
11019
- for (var T = [], A = this.value.length, b = 0, b = 0; b < A; ++b)
11020
- Wt.call(this.value, b) && (T[b] = this.get(b));
11021
- for (I = I || this, b = 0; b < A; ++b)
11022
- Wt.call(T, b) && w.call(I, T[b]);
11023
- }, u.map = function(w, I) {
11028
+ }, u.each = function(v, I) {
11029
+ for (var T = [], A = this.value.length, P = 0, P = 0; P < A; ++P)
11030
+ Wt.call(this.value, P) && (T[P] = this.get(P));
11031
+ for (I = I || this, P = 0; P < A; ++P)
11032
+ Wt.call(T, P) && v.call(I, T[P]);
11033
+ }, u.map = function(v, I) {
11024
11034
  var T = [];
11025
11035
  return this.each(function(A) {
11026
- T.push(w.call(this, A));
11036
+ T.push(v.call(this, A));
11027
11037
  }, I), T;
11028
- }, u.filter = function(w, I) {
11038
+ }, u.filter = function(v, I) {
11029
11039
  var T = [];
11030
11040
  return this.each(function(A) {
11031
- w.call(this, A) && T.push(A);
11041
+ v.call(this, A) && T.push(A);
11032
11042
  }, I), T;
11033
11043
  };
11034
11044
  function g() {
11035
11045
  }
11036
- function P(v, w, I, T) {
11037
- if (i.assert(v.value), w === 0)
11046
+ function b(w, v, I, T) {
11047
+ if (i.assert(w.value), v === 0)
11038
11048
  return g;
11039
- var A = v.value.length;
11049
+ var A = w.value.length;
11040
11050
  if (A < 1)
11041
11051
  return g;
11042
- var b = arguments.length;
11043
- b === 2 ? (I = 0, T = A) : b === 3 ? (I = Math.max(I, 0), T = A) : (I = Math.max(I, 0), T = Math.min(T, A)), r.assert(I), r.assert(T);
11044
- for (var m = /* @__PURE__ */ Object.create(null), O = h(v), U = I; U < T; ++U)
11045
- if (Wt.call(v.value, U)) {
11046
- var D = v.get(U);
11052
+ var P = arguments.length;
11053
+ P === 2 ? (I = 0, T = A) : P === 3 ? (I = Math.max(I, 0), T = A) : (I = Math.max(I, 0), T = Math.min(T, A)), r.assert(I), r.assert(T);
11054
+ for (var m = /* @__PURE__ */ Object.create(null), O = h(w), U = I; U < T; ++U)
11055
+ if (Wt.call(w.value, U)) {
11056
+ var D = w.get(U);
11047
11057
  if (D.name !== U)
11048
11058
  throw new Error("");
11049
- var B = U + w;
11059
+ var B = U + v;
11050
11060
  D.name = B, m[B] = D, delete O[U];
11051
11061
  }
11052
11062
  return delete O.length, function() {
@@ -11054,82 +11064,82 @@ function Cr(a) {
11054
11064
  var q = m[R];
11055
11065
  if (q.name !== +R)
11056
11066
  throw new Error("");
11057
- O[R] = q, v.value[R] = q.value;
11067
+ O[R] = q, w.value[R] = q.value;
11058
11068
  }
11059
11069
  };
11060
11070
  }
11061
11071
  u.shift = function() {
11062
- var w = P(this, -1), I = this.value.shift();
11063
- return w(), I;
11064
- }, u.unshift = function(...w) {
11065
- var I = P(this, w.length), T = this.value.unshift.apply(this.value, w);
11072
+ var v = b(this, -1), I = this.value.shift();
11073
+ return v(), I;
11074
+ }, u.unshift = function(...v) {
11075
+ var I = b(this, v.length), T = this.value.unshift.apply(this.value, v);
11066
11076
  return I(), T;
11067
- }, u.push = function(...w) {
11068
- return i.assert(this.value), delete h(this).length, this.value.push.apply(this.value, w);
11077
+ }, u.push = function(...v) {
11078
+ return i.assert(this.value), delete h(this).length, this.value.push.apply(this.value, v);
11069
11079
  }, u.pop = function() {
11070
11080
  i.assert(this.value);
11071
- var w = h(this);
11072
- return delete w[this.value.length - 1], delete w.length, this.value.pop();
11073
- }, u.insertAt = function(w) {
11074
- var I = arguments.length, T = P(this, I - 1, w);
11081
+ var v = h(this);
11082
+ return delete v[this.value.length - 1], delete v.length, this.value.pop();
11083
+ }, u.insertAt = function(v) {
11084
+ var I = arguments.length, T = b(this, I - 1, v);
11075
11085
  if (T === g && I <= 1)
11076
11086
  return this;
11077
- w = Math.max(w, 0);
11087
+ v = Math.max(v, 0);
11078
11088
  for (var A = 1; A < I; ++A)
11079
- this.value[w + A - 1] = arguments[A];
11089
+ this.value[v + A - 1] = arguments[A];
11080
11090
  return T(), this;
11081
- }, u.insertBefore = function(...w) {
11082
- for (var I = this.parentPath, T = w.length, A = [this.name], b = 0; b < T; ++b)
11083
- A.push(w[b]);
11091
+ }, u.insertBefore = function(...v) {
11092
+ for (var I = this.parentPath, T = v.length, A = [this.name], P = 0; P < T; ++P)
11093
+ A.push(v[P]);
11084
11094
  return I.insertAt.apply(I, A);
11085
- }, u.insertAfter = function(...w) {
11086
- for (var I = this.parentPath, T = w.length, A = [this.name + 1], b = 0; b < T; ++b)
11087
- A.push(w[b]);
11095
+ }, u.insertAfter = function(...v) {
11096
+ for (var I = this.parentPath, T = v.length, A = [this.name + 1], P = 0; P < T; ++P)
11097
+ A.push(v[P]);
11088
11098
  return I.insertAt.apply(I, A);
11089
11099
  };
11090
- function S(v) {
11091
- if (!(v instanceof o))
11100
+ function S(w) {
11101
+ if (!(w instanceof o))
11092
11102
  throw new Error("");
11093
- var w = v.parentPath;
11094
- if (!w)
11095
- return v;
11096
- var I = w.value, T = h(w);
11097
- if (I[v.name] === v.value)
11098
- T[v.name] = v;
11103
+ var v = w.parentPath;
11104
+ if (!v)
11105
+ return w;
11106
+ var I = v.value, T = h(v);
11107
+ if (I[w.name] === w.value)
11108
+ T[w.name] = w;
11099
11109
  else if (i.check(I)) {
11100
- var A = I.indexOf(v.value);
11101
- A >= 0 && (T[v.name = A] = v);
11110
+ var A = I.indexOf(w.value);
11111
+ A >= 0 && (T[w.name = A] = w);
11102
11112
  } else
11103
- I[v.name] = v.value, T[v.name] = v;
11104
- if (I[v.name] !== v.value)
11113
+ I[w.name] = w.value, T[w.name] = w;
11114
+ if (I[w.name] !== w.value)
11105
11115
  throw new Error("");
11106
- if (v.parentPath.get(v.name) !== v)
11116
+ if (w.parentPath.get(w.name) !== w)
11107
11117
  throw new Error("");
11108
- return v;
11118
+ return w;
11109
11119
  }
11110
- return u.replace = function(w) {
11111
- var I = [], T = this.parentPath.value, A = h(this.parentPath), b = arguments.length;
11120
+ return u.replace = function(v) {
11121
+ var I = [], T = this.parentPath.value, A = h(this.parentPath), P = arguments.length;
11112
11122
  if (S(this), i.check(T)) {
11113
- for (var m = T.length, O = P(this.parentPath, b - 1, this.name + 1), U = [this.name, 1], D = 0; D < b; ++D)
11123
+ for (var m = T.length, O = b(this.parentPath, P - 1, this.name + 1), U = [this.name, 1], D = 0; D < P; ++D)
11114
11124
  U.push(arguments[D]);
11115
11125
  var B = T.splice.apply(T, U);
11116
11126
  if (B[0] !== this.value)
11117
11127
  throw new Error("");
11118
- if (T.length !== m - 1 + b)
11128
+ if (T.length !== m - 1 + P)
11119
11129
  throw new Error("");
11120
- if (O(), b === 0)
11130
+ if (O(), P === 0)
11121
11131
  delete this.value, delete A[this.name], this.__childCache = null;
11122
11132
  else {
11123
- if (T[this.name] !== w)
11133
+ if (T[this.name] !== v)
11124
11134
  throw new Error("");
11125
- for (this.value !== w && (this.value = w, this.__childCache = null), D = 0; D < b; ++D)
11135
+ for (this.value !== v && (this.value = v, this.__childCache = null), D = 0; D < P; ++D)
11126
11136
  I.push(this.parentPath.get(this.name + D));
11127
11137
  if (I[0] !== this)
11128
11138
  throw new Error("");
11129
11139
  }
11130
- } else if (b === 1)
11131
- this.value !== w && (this.__childCache = null), this.value = T[this.name] = w, I.push(this);
11132
- else if (b === 0)
11140
+ } else if (P === 1)
11141
+ this.value !== v && (this.__childCache = null), this.value = T[this.name] = v, I.push(this);
11142
+ else if (P === 0)
11133
11143
  delete T[this.name], delete this.value, this.__childCache = null;
11134
11144
  else
11135
11145
  throw new Error("Could not replace path");
@@ -11137,13 +11147,13 @@ function Cr(a) {
11137
11147
  }, o;
11138
11148
  }
11139
11149
  ae(() => module);
11140
- var it = Object.prototype.hasOwnProperty;
11150
+ var nt = Object.prototype.hasOwnProperty;
11141
11151
  function Wa(a) {
11142
11152
  var l = a.use(pe), i = l.Type, r = l.namedTypes, o = r.Node, u = r.Expression, h = l.builtInTypes.array, d = l.builders;
11143
11153
  const g = function D(B, R) {
11144
11154
  if (!(this instanceof D))
11145
11155
  throw new Error("Scope constructor cannot be invoked without 'new'");
11146
- S.check(B.value) || P.assert(B.value);
11156
+ S.check(B.value) || b.assert(B.value);
11147
11157
  var q;
11148
11158
  if (R) {
11149
11159
  if (!(R instanceof D))
@@ -11161,7 +11171,7 @@ function Wa(a) {
11161
11171
  types: { value: {} }
11162
11172
  });
11163
11173
  };
11164
- var P = i.or(
11174
+ var b = i.or(
11165
11175
  // Program nodes introduce global scopes.
11166
11176
  r.Program,
11167
11177
  // Function is the supertype of FunctionExpression,
@@ -11178,19 +11188,19 @@ function Wa(a) {
11178
11188
  r.TSInterfaceDeclaration,
11179
11189
  r.TypeAlias,
11180
11190
  r.TSTypeAliasDeclaration
11181
- ), v = i.or(
11191
+ ), w = i.or(
11182
11192
  r.TypeParameter,
11183
11193
  r.TSTypeParameter
11184
11194
  );
11185
11195
  g.isEstablishedBy = function(D) {
11186
- return P.check(D) || S.check(D);
11196
+ return b.check(D) || S.check(D);
11187
11197
  };
11188
- var w = g.prototype;
11189
- w.didScan = !1, w.declares = function(D) {
11190
- return this.scan(), it.call(this.bindings, D);
11191
- }, w.declaresType = function(D) {
11192
- return this.scan(), it.call(this.types, D);
11193
- }, w.declareTemporary = function(D) {
11198
+ var v = g.prototype;
11199
+ v.didScan = !1, v.declares = function(D) {
11200
+ return this.scan(), nt.call(this.bindings, D);
11201
+ }, v.declaresType = function(D) {
11202
+ return this.scan(), nt.call(this.types, D);
11203
+ }, v.declareTemporary = function(D) {
11194
11204
  if (D) {
11195
11205
  if (!/^[a-z$_]/i.test(D))
11196
11206
  throw new Error("");
@@ -11201,7 +11211,7 @@ function Wa(a) {
11201
11211
  ++B;
11202
11212
  var R = D + B;
11203
11213
  return this.bindings[R] = l.builders.identifier(R);
11204
- }, w.injectTemporary = function(D, B) {
11214
+ }, v.injectTemporary = function(D, B) {
11205
11215
  D || (D = this.declareTemporary());
11206
11216
  var R = this.path.get("body");
11207
11217
  return r.BlockStatement.check(R.value) && (R = R.get("body")), R.unshift(
@@ -11210,7 +11220,7 @@ function Wa(a) {
11210
11220
  [d.variableDeclarator(D, B || null)]
11211
11221
  )
11212
11222
  ), D;
11213
- }, w.scan = function(D) {
11223
+ }, v.scan = function(D) {
11214
11224
  if (D || !this.didScan) {
11215
11225
  for (var B in this.bindings)
11216
11226
  delete this.bindings[B];
@@ -11218,9 +11228,9 @@ function Wa(a) {
11218
11228
  delete this.types[B];
11219
11229
  I(this.path, this.bindings, this.types), this.didScan = !0;
11220
11230
  }
11221
- }, w.getBindings = function() {
11231
+ }, v.getBindings = function() {
11222
11232
  return this.scan(), this.bindings;
11223
- }, w.getTypes = function() {
11233
+ }, v.getTypes = function() {
11224
11234
  return this.scan(), this.types;
11225
11235
  };
11226
11236
  function I(D, B, R) {
@@ -11231,15 +11241,15 @@ function Wa(a) {
11231
11241
  U(k, R);
11232
11242
  });
11233
11243
  }
11234
- P.check(q) && (r.CatchClause.check(q) ? m(D.get("param"), B) : T(D, B, R));
11244
+ b.check(q) && (r.CatchClause.check(q) ? m(D.get("param"), B) : T(D, B, R));
11235
11245
  }
11236
11246
  function T(D, B, R) {
11237
11247
  var q = D.value;
11238
11248
  D.parent && r.FunctionExpression.check(D.parent.node) && D.parent.node.id && m(D.parent.get("id"), B), q && (h.check(q) ? D.each((M) => {
11239
- b(M, B, R);
11249
+ P(M, B, R);
11240
11250
  }) : r.Function.check(q) ? (D.get("params").each((M) => {
11241
11251
  m(M, B);
11242
- }), b(D.get("body"), B, R), T(D.get("typeParameters"), B, R)) : r.TypeAlias && r.TypeAlias.check(q) || r.InterfaceDeclaration && r.InterfaceDeclaration.check(q) || r.TSTypeAliasDeclaration && r.TSTypeAliasDeclaration.check(q) || r.TSInterfaceDeclaration && r.TSInterfaceDeclaration.check(q) ? O(D.get("id"), R) : r.VariableDeclarator.check(q) ? (m(D.get("id"), B), b(D.get("init"), B, R)) : q.type === "ImportSpecifier" || q.type === "ImportNamespaceSpecifier" || q.type === "ImportDefaultSpecifier" ? m(
11252
+ }), P(D.get("body"), B, R), T(D.get("typeParameters"), B, R)) : r.TypeAlias && r.TypeAlias.check(q) || r.InterfaceDeclaration && r.InterfaceDeclaration.check(q) || r.TSTypeAliasDeclaration && r.TSTypeAliasDeclaration.check(q) || r.TSInterfaceDeclaration && r.TSInterfaceDeclaration.check(q) ? O(D.get("id"), R) : r.VariableDeclarator.check(q) ? (m(D.get("id"), B), P(D.get("init"), B, R)) : q.type === "ImportSpecifier" || q.type === "ImportNamespaceSpecifier" || q.type === "ImportDefaultSpecifier" ? m(
11243
11253
  // Esprima used to use the .name field to refer to the local
11244
11254
  // binding identifier for ImportSpecifier nodes, but .id for
11245
11255
  // ImportNamespaceSpecifier and ImportDefaultSpecifier nodes.
@@ -11250,13 +11260,13 @@ function Wa(a) {
11250
11260
  var _ = D.get(M);
11251
11261
  if (!A(_, k))
11252
11262
  throw new Error("");
11253
- b(_, B, R);
11263
+ P(_, B, R);
11254
11264
  }));
11255
11265
  }
11256
11266
  function A(D, B) {
11257
11267
  return !!(D.value === B || Array.isArray(D.value) && D.value.length === 0 && Array.isArray(B) && B.length === 0);
11258
11268
  }
11259
- function b(D, B, R) {
11269
+ function P(D, B, R) {
11260
11270
  var q = D.value;
11261
11271
  if (!(!q || u.check(q))) if (r.FunctionDeclaration.check(q) && q.id !== null)
11262
11272
  m(D.get("id"), B);
@@ -11264,10 +11274,10 @@ function Wa(a) {
11264
11274
  m(D.get("id"), B), T(D.get("typeParameters"), B, R);
11265
11275
  else if (r.InterfaceDeclaration && r.InterfaceDeclaration.check(q) || r.TSInterfaceDeclaration && r.TSInterfaceDeclaration.check(q))
11266
11276
  O(D.get("id"), R);
11267
- else if (P.check(q)) {
11277
+ else if (b.check(q)) {
11268
11278
  if (r.CatchClause.check(q) && // TODO Broaden this to accept any pattern.
11269
11279
  r.Identifier.check(q.param)) {
11270
- var M = q.param.name, k = it.call(B, M);
11280
+ var M = q.param.name, k = nt.call(B, M);
11271
11281
  T(D.get("body"), B, R), k || delete B[M];
11272
11282
  }
11273
11283
  } else
@@ -11275,7 +11285,7 @@ function Wa(a) {
11275
11285
  }
11276
11286
  function m(D, B) {
11277
11287
  var R = D.value;
11278
- r.Pattern.assert(R), r.Identifier.check(R) ? it.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D] : r.AssignmentPattern && r.AssignmentPattern.check(R) ? m(D.get("left"), B) : r.ObjectPattern && r.ObjectPattern.check(R) ? D.get("properties").each(function(q) {
11288
+ r.Pattern.assert(R), r.Identifier.check(R) ? nt.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D] : r.AssignmentPattern && r.AssignmentPattern.check(R) ? m(D.get("left"), B) : r.ObjectPattern && r.ObjectPattern.check(R) ? D.get("properties").each(function(q) {
11279
11289
  var M = q.value;
11280
11290
  r.Pattern.check(M) ? m(q, B) : r.Property.check(M) || r.ObjectProperty && r.ObjectProperty.check(M) ? m(q.get("value"), B) : r.SpreadProperty && r.SpreadProperty.check(M) && m(q.get("argument"), B);
11281
11291
  }) : r.ArrayPattern && r.ArrayPattern.check(R) ? D.get("elements").each(function(q) {
@@ -11285,21 +11295,21 @@ function Wa(a) {
11285
11295
  }
11286
11296
  function O(D, B) {
11287
11297
  var R = D.value;
11288
- r.Pattern.assert(R), r.Identifier.check(R) && (it.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D]);
11298
+ r.Pattern.assert(R), r.Identifier.check(R) && (nt.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D]);
11289
11299
  }
11290
11300
  function U(D, B) {
11291
11301
  var R = D.value;
11292
- v.assert(R), it.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D];
11302
+ w.assert(R), nt.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D];
11293
11303
  }
11294
- return w.lookup = function(D) {
11304
+ return v.lookup = function(D) {
11295
11305
  for (var B = this; B && !B.declares(D); B = B.parent)
11296
11306
  ;
11297
11307
  return B;
11298
- }, w.lookupType = function(D) {
11308
+ }, v.lookupType = function(D) {
11299
11309
  for (var B = this; B && !B.declaresType(D); B = B.parent)
11300
11310
  ;
11301
11311
  return B;
11302
- }, w.getGlobalScope = function() {
11312
+ }, v.getGlobalScope = function() {
11303
11313
  for (var D = this; !D.isGlobal; )
11304
11314
  D = D.parent;
11305
11315
  return D;
@@ -11308,12 +11318,12 @@ function Wa(a) {
11308
11318
  ae(() => module);
11309
11319
  function Ir(a) {
11310
11320
  var l = a.use(pe), i = l.namedTypes, r = l.builders, o = l.builtInTypes.number, u = l.builtInTypes.array, h = a.use(Cr), d = a.use(Wa);
11311
- const g = function b(m, O, U) {
11312
- if (!(this instanceof b))
11321
+ const g = function P(m, O, U) {
11322
+ if (!(this instanceof P))
11313
11323
  throw new Error("NodePath constructor cannot be invoked without 'new'");
11314
11324
  h.call(this, m, O, U);
11315
11325
  };
11316
- var P = g.prototype = Object.create(h.prototype, {
11326
+ var b = g.prototype = Object.create(h.prototype, {
11317
11327
  constructor: {
11318
11328
  value: g,
11319
11329
  enumerable: !1,
@@ -11321,7 +11331,7 @@ function Ir(a) {
11321
11331
  configurable: !0
11322
11332
  }
11323
11333
  });
11324
- Object.defineProperties(P, {
11334
+ Object.defineProperties(b, {
11325
11335
  node: {
11326
11336
  get: function() {
11327
11337
  return Object.defineProperty(this, "node", {
@@ -11349,20 +11359,20 @@ function Ir(a) {
11349
11359
  }), this.scope;
11350
11360
  }
11351
11361
  }
11352
- }), P.replace = function() {
11362
+ }), b.replace = function() {
11353
11363
  return delete this.node, delete this.parent, delete this.scope, h.prototype.replace.apply(this, arguments);
11354
- }, P.prune = function() {
11355
- var b = this.parent;
11356
- return this.replace(), T(b);
11357
- }, P._computeNode = function() {
11358
- var b = this.value;
11359
- if (i.Node.check(b))
11360
- return b;
11364
+ }, b.prune = function() {
11365
+ var P = this.parent;
11366
+ return this.replace(), T(P);
11367
+ }, b._computeNode = function() {
11368
+ var P = this.value;
11369
+ if (i.Node.check(P))
11370
+ return P;
11361
11371
  var m = this.parentPath;
11362
11372
  return m && m.node || null;
11363
- }, P._computeParent = function() {
11364
- var b = this.value, m = this.parentPath;
11365
- if (!i.Node.check(b)) {
11373
+ }, b._computeParent = function() {
11374
+ var P = this.value, m = this.parentPath;
11375
+ if (!i.Node.check(P)) {
11366
11376
  for (; m && !i.Node.check(m.value); )
11367
11377
  m = m.parentPath;
11368
11378
  m && (m = m.parentPath);
@@ -11370,12 +11380,12 @@ function Ir(a) {
11370
11380
  for (; m && !i.Node.check(m.value); )
11371
11381
  m = m.parentPath;
11372
11382
  return m || null;
11373
- }, P._computeScope = function() {
11374
- var b = this.value, m = this.parentPath, O = m && m.scope;
11375
- return i.Node.check(b) && d.isEstablishedBy(b) && (O = new d(this, O)), O || null;
11376
- }, P.getValueProperty = function(b) {
11377
- return l.getFieldValue(this.value, b);
11378
- }, P.needsParens = function(b) {
11383
+ }, b._computeScope = function() {
11384
+ var P = this.value, m = this.parentPath, O = m && m.scope;
11385
+ return i.Node.check(P) && d.isEstablishedBy(P) && (O = new d(this, O)), O || null;
11386
+ }, b.getValueProperty = function(P) {
11387
+ return l.getFieldValue(this.value, P);
11388
+ }, b.needsParens = function(P) {
11379
11389
  var m = this.parentPath;
11380
11390
  if (!m)
11381
11391
  return !1;
@@ -11404,7 +11414,7 @@ function Ir(a) {
11404
11414
  return this.name === "object" && U.object === O;
11405
11415
  case "BinaryExpression":
11406
11416
  case "LogicalExpression": {
11407
- const D = O, B = U.operator, R = v[B], q = D.operator, M = v[q];
11417
+ const D = O, B = U.operator, R = w[B], q = D.operator, M = w[q];
11408
11418
  if (R > M)
11409
11419
  return !0;
11410
11420
  if (R === M && this.name === "right") {
@@ -11463,14 +11473,14 @@ function Ir(a) {
11463
11473
  }
11464
11474
  default:
11465
11475
  if (U.type === "NewExpression" && this.name === "callee" && U.callee === O)
11466
- return w(O);
11476
+ return v(O);
11467
11477
  }
11468
- return !!(b !== !0 && !this.canBeFirstInStatement() && this.firstInStatement());
11478
+ return !!(P !== !0 && !this.canBeFirstInStatement() && this.firstInStatement());
11469
11479
  };
11470
- function S(b) {
11471
- return i.BinaryExpression.check(b) || i.LogicalExpression.check(b);
11480
+ function S(P) {
11481
+ return i.BinaryExpression.check(P) || i.LogicalExpression.check(P);
11472
11482
  }
11473
- var v = {};
11483
+ var w = {};
11474
11484
  [
11475
11485
  ["||"],
11476
11486
  ["&&"],
@@ -11482,60 +11492,60 @@ function Ir(a) {
11482
11492
  [">>", "<<", ">>>"],
11483
11493
  ["+", "-"],
11484
11494
  ["*", "/", "%"]
11485
- ].forEach(function(b, m) {
11486
- b.forEach(function(O) {
11487
- v[O] = m;
11495
+ ].forEach(function(P, m) {
11496
+ P.forEach(function(O) {
11497
+ w[O] = m;
11488
11498
  });
11489
11499
  });
11490
- function w(b) {
11491
- return i.CallExpression.check(b) ? !0 : u.check(b) ? b.some(w) : i.Node.check(b) ? l.someField(b, function(m, O) {
11492
- return w(O);
11500
+ function v(P) {
11501
+ return i.CallExpression.check(P) ? !0 : u.check(P) ? P.some(v) : i.Node.check(P) ? l.someField(P, function(m, O) {
11502
+ return v(O);
11493
11503
  }) : !1;
11494
11504
  }
11495
- P.canBeFirstInStatement = function() {
11496
- var b = this.node;
11497
- return !i.FunctionExpression.check(b) && !i.ObjectExpression.check(b);
11498
- }, P.firstInStatement = function() {
11505
+ b.canBeFirstInStatement = function() {
11506
+ var P = this.node;
11507
+ return !i.FunctionExpression.check(P) && !i.ObjectExpression.check(P);
11508
+ }, b.firstInStatement = function() {
11499
11509
  return I(this);
11500
11510
  };
11501
- function I(b) {
11502
- for (var m, O; b.parent; b = b.parent) {
11503
- if (m = b.node, O = b.parent.node, i.BlockStatement.check(O) && b.parent.name === "body" && b.name === 0) {
11511
+ function I(P) {
11512
+ for (var m, O; P.parent; P = P.parent) {
11513
+ if (m = P.node, O = P.parent.node, i.BlockStatement.check(O) && P.parent.name === "body" && P.name === 0) {
11504
11514
  if (O.body[0] !== m)
11505
11515
  throw new Error("Nodes must be equal");
11506
11516
  return !0;
11507
11517
  }
11508
- if (i.ExpressionStatement.check(O) && b.name === "expression") {
11518
+ if (i.ExpressionStatement.check(O) && P.name === "expression") {
11509
11519
  if (O.expression !== m)
11510
11520
  throw new Error("Nodes must be equal");
11511
11521
  return !0;
11512
11522
  }
11513
- if (i.SequenceExpression.check(O) && b.parent.name === "expressions" && b.name === 0) {
11523
+ if (i.SequenceExpression.check(O) && P.parent.name === "expressions" && P.name === 0) {
11514
11524
  if (O.expressions[0] !== m)
11515
11525
  throw new Error("Nodes must be equal");
11516
11526
  continue;
11517
11527
  }
11518
- if (i.CallExpression.check(O) && b.name === "callee") {
11528
+ if (i.CallExpression.check(O) && P.name === "callee") {
11519
11529
  if (O.callee !== m)
11520
11530
  throw new Error("Nodes must be equal");
11521
11531
  continue;
11522
11532
  }
11523
- if (i.MemberExpression.check(O) && b.name === "object") {
11533
+ if (i.MemberExpression.check(O) && P.name === "object") {
11524
11534
  if (O.object !== m)
11525
11535
  throw new Error("Nodes must be equal");
11526
11536
  continue;
11527
11537
  }
11528
- if (i.ConditionalExpression.check(O) && b.name === "test") {
11538
+ if (i.ConditionalExpression.check(O) && P.name === "test") {
11529
11539
  if (O.test !== m)
11530
11540
  throw new Error("Nodes must be equal");
11531
11541
  continue;
11532
11542
  }
11533
- if (S(O) && b.name === "left") {
11543
+ if (S(O) && P.name === "left") {
11534
11544
  if (O.left !== m)
11535
11545
  throw new Error("Nodes must be equal");
11536
11546
  continue;
11537
11547
  }
11538
- if (i.UnaryExpression.check(O) && !O.prefix && b.name === "argument") {
11548
+ if (i.UnaryExpression.check(O) && !O.prefix && P.name === "argument") {
11539
11549
  if (O.argument !== m)
11540
11550
  throw new Error("Nodes must be equal");
11541
11551
  continue;
@@ -11544,25 +11554,25 @@ function Ir(a) {
11544
11554
  }
11545
11555
  return !0;
11546
11556
  }
11547
- function T(b) {
11548
- if (i.VariableDeclaration.check(b.node)) {
11549
- var m = b.get("declarations").value;
11557
+ function T(P) {
11558
+ if (i.VariableDeclaration.check(P.node)) {
11559
+ var m = P.get("declarations").value;
11550
11560
  if (!m || m.length === 0)
11551
- return b.prune();
11552
- } else if (i.ExpressionStatement.check(b.node)) {
11553
- if (!b.get("expression").value)
11554
- return b.prune();
11555
- } else i.IfStatement.check(b.node) && A(b);
11556
- return b;
11561
+ return P.prune();
11562
+ } else if (i.ExpressionStatement.check(P.node)) {
11563
+ if (!P.get("expression").value)
11564
+ return P.prune();
11565
+ } else i.IfStatement.check(P.node) && A(P);
11566
+ return P;
11557
11567
  }
11558
- function A(b) {
11559
- var m = b.get("test").value, O = b.get("alternate").value, U = b.get("consequent").value;
11568
+ function A(P) {
11569
+ var m = P.get("test").value, O = P.get("alternate").value, U = P.get("consequent").value;
11560
11570
  if (!U && !O) {
11561
11571
  var D = r.expressionStatement(m);
11562
- b.replace(D);
11572
+ P.replace(D);
11563
11573
  } else if (!U && O) {
11564
11574
  var B = r.unaryExpression("!", m, !0);
11565
- i.UnaryExpression.check(m) && m.operator === "!" && (B = m.argument), b.get("test").replace(B), b.get("consequent").replace(O), b.get("alternate").replace();
11575
+ i.UnaryExpression.check(m) && m.operator === "!" && (B = m.argument), P.get("test").replace(B), P.get("consequent").replace(O), P.get("alternate").replace();
11566
11576
  }
11567
11577
  }
11568
11578
  return g;
@@ -11576,15 +11586,15 @@ function Ja(a) {
11576
11586
  throw new Error(
11577
11587
  "PathVisitor constructor cannot be invoked without 'new'"
11578
11588
  );
11579
- this._reusableContextStack = [], this._methodNameTable = g(this), this._shouldVisitComments = Jt.call(this._methodNameTable, "Block") || Jt.call(this._methodNameTable, "Line"), this.Context = w(this), this._visiting = !1, this._changeReported = !1;
11589
+ this._reusableContextStack = [], this._methodNameTable = g(this), this._shouldVisitComments = Jt.call(this._methodNameTable, "Block") || Jt.call(this._methodNameTable, "Line"), this.Context = v(this), this._visiting = !1, this._changeReported = !1;
11580
11590
  };
11581
11591
  function g(T) {
11582
11592
  var A = /* @__PURE__ */ Object.create(null);
11583
- for (var b in T)
11584
- /^visit[A-Z]/.test(b) && (A[b.slice(5)] = !0);
11593
+ for (var P in T)
11594
+ /^visit[A-Z]/.test(P) && (A[P.slice(5)] = !0);
11585
11595
  for (var m = l.computeSupertypeLookupTable(A), O = /* @__PURE__ */ Object.create(null), U = Object.keys(m), D = U.length, B = 0; B < D; ++B) {
11586
11596
  var R = U[B];
11587
- b = "visit" + m[R], u.check(T[b]) && (O[R] = b);
11597
+ P = "visit" + m[R], u.check(T[P]) && (O[R] = P);
11588
11598
  }
11589
11599
  return O;
11590
11600
  }
@@ -11593,23 +11603,23 @@ function Ja(a) {
11593
11603
  return A;
11594
11604
  if (!o.check(A))
11595
11605
  return new d();
11596
- const b = function O() {
11606
+ const P = function O() {
11597
11607
  if (!(this instanceof O))
11598
11608
  throw new Error(
11599
11609
  "Visitor constructor cannot be invoked without 'new'"
11600
11610
  );
11601
11611
  d.call(this);
11602
11612
  };
11603
- var m = b.prototype = Object.create(S);
11604
- return m.constructor = b, P(m, A), P(b, d), u.assert(b.fromMethodsObject), u.assert(b.visit), new b();
11613
+ var m = P.prototype = Object.create(S);
11614
+ return m.constructor = P, b(m, A), b(P, d), u.assert(P.fromMethodsObject), u.assert(P.visit), new P();
11605
11615
  };
11606
- function P(T, A) {
11607
- for (var b in A)
11608
- Jt.call(A, b) && (T[b] = A[b]);
11616
+ function b(T, A) {
11617
+ for (var P in A)
11618
+ Jt.call(A, P) && (T[P] = A[P]);
11609
11619
  return T;
11610
11620
  }
11611
- d.visit = function(A, b) {
11612
- return d.fromMethodsObject(b).visit(A);
11621
+ d.visit = function(A, P) {
11622
+ return d.fromMethodsObject(P).visit(A);
11613
11623
  };
11614
11624
  var S = d.prototype;
11615
11625
  S.visit = function() {
@@ -11618,8 +11628,8 @@ function Ja(a) {
11618
11628
  "Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead."
11619
11629
  );
11620
11630
  this._visiting = !0, this._changeReported = !1, this._abortRequested = !1;
11621
- for (var T = arguments.length, A = new Array(T), b = 0; b < T; ++b)
11622
- A[b] = arguments[b];
11631
+ for (var T = arguments.length, A = new Array(T), P = 0; P < T; ++P)
11632
+ A[P] = arguments[P];
11623
11633
  A[0] instanceof i || (A[0] = new i({ root: A[0] }).get("root")), this.reset.apply(this, A);
11624
11634
  var m;
11625
11635
  try {
@@ -11644,31 +11654,31 @@ function Ja(a) {
11644
11654
  return this.visitor.visitWithoutReset(T);
11645
11655
  if (!(T instanceof i))
11646
11656
  throw new Error("");
11647
- var A = T.value, b = A && typeof A == "object" && typeof A.type == "string" && this._methodNameTable[A.type];
11648
- if (b) {
11657
+ var A = T.value, P = A && typeof A == "object" && typeof A.type == "string" && this._methodNameTable[A.type];
11658
+ if (P) {
11649
11659
  var m = this.acquireContext(T);
11650
11660
  try {
11651
- return m.invokeVisitorMethod(b);
11661
+ return m.invokeVisitorMethod(P);
11652
11662
  } finally {
11653
11663
  this.releaseContext(m);
11654
11664
  }
11655
11665
  } else
11656
- return v(T, this);
11666
+ return w(T, this);
11657
11667
  };
11658
- function v(T, A) {
11668
+ function w(T, A) {
11659
11669
  if (!(T instanceof i))
11660
11670
  throw new Error("");
11661
11671
  if (!(A instanceof d))
11662
11672
  throw new Error("");
11663
- var b = T.value;
11664
- if (r.check(b))
11673
+ var P = T.value;
11674
+ if (r.check(P))
11665
11675
  T.each(A.visitWithoutReset, A);
11666
- else if (o.check(b)) {
11667
- var m = l.getFieldNames(b);
11668
- A._shouldVisitComments && b.comments && m.indexOf("comments") < 0 && m.push("comments");
11676
+ else if (o.check(P)) {
11677
+ var m = l.getFieldNames(P);
11678
+ A._shouldVisitComments && P.comments && m.indexOf("comments") < 0 && m.push("comments");
11669
11679
  for (var O = m.length, U = [], D = 0; D < O; ++D) {
11670
11680
  var B = m[D];
11671
- Jt.call(b, B) || (b[B] = l.getFieldValue(b, B)), U.push(T.get(B));
11681
+ Jt.call(P, B) || (P[B] = l.getFieldValue(P, B)), U.push(T.get(B));
11672
11682
  }
11673
11683
  for (var D = 0; D < O; ++D)
11674
11684
  A.visitWithoutReset(U[D]);
@@ -11686,7 +11696,7 @@ function Ja(a) {
11686
11696
  }, S.wasChangeReported = function() {
11687
11697
  return this._changeReported;
11688
11698
  };
11689
- function w(T) {
11699
+ function v(T) {
11690
11700
  function A(m) {
11691
11701
  if (!(this instanceof A))
11692
11702
  throw new Error("");
@@ -11703,8 +11713,8 @@ function Ja(a) {
11703
11713
  }
11704
11714
  if (!(T instanceof d))
11705
11715
  throw new Error("");
11706
- var b = A.prototype = Object.create(T);
11707
- return b.constructor = A, P(b, I), A;
11716
+ var P = A.prototype = Object.create(T);
11717
+ return P.constructor = A, b(P, I), A;
11708
11718
  }
11709
11719
  var I = /* @__PURE__ */ Object.create(null);
11710
11720
  return I.reset = function(A) {
@@ -11718,24 +11728,24 @@ function Ja(a) {
11718
11728
  throw new Error("");
11719
11729
  if (!(this.currentPath instanceof i))
11720
11730
  throw new Error("");
11721
- var b = this.visitor[A].call(this, this.currentPath);
11722
- if (b === !1 ? this.needToCallTraverse = !1 : b !== h && (this.currentPath = this.currentPath.replace(b)[0], this.needToCallTraverse && this.traverse(this.currentPath)), this.needToCallTraverse !== !1)
11731
+ var P = this.visitor[A].call(this, this.currentPath);
11732
+ if (P === !1 ? this.needToCallTraverse = !1 : P !== h && (this.currentPath = this.currentPath.replace(P)[0], this.needToCallTraverse && this.traverse(this.currentPath)), this.needToCallTraverse !== !1)
11723
11733
  throw new Error(
11724
11734
  "Must either call this.traverse or return false in " + A
11725
11735
  );
11726
11736
  var m = this.currentPath;
11727
11737
  return m && m.value;
11728
- }, I.traverse = function(A, b) {
11738
+ }, I.traverse = function(A, P) {
11729
11739
  if (!(this instanceof this.Context))
11730
11740
  throw new Error("");
11731
11741
  if (!(A instanceof i))
11732
11742
  throw new Error("");
11733
11743
  if (!(this.currentPath instanceof i))
11734
11744
  throw new Error("");
11735
- return this.needToCallTraverse = !1, v(A, d.fromMethodsObject(
11736
- b || this.visitor
11745
+ return this.needToCallTraverse = !1, w(A, d.fromMethodsObject(
11746
+ P || this.visitor
11737
11747
  ));
11738
- }, I.visit = function(A, b) {
11748
+ }, I.visit = function(A, P) {
11739
11749
  if (!(this instanceof this.Context))
11740
11750
  throw new Error("");
11741
11751
  if (!(A instanceof i))
@@ -11743,7 +11753,7 @@ function Ja(a) {
11743
11753
  if (!(this.currentPath instanceof i))
11744
11754
  throw new Error("");
11745
11755
  return this.needToCallTraverse = !1, d.fromMethodsObject(
11746
- b || this.visitor
11756
+ P || this.visitor
11747
11757
  ).visitWithoutReset(A);
11748
11758
  }, I.reportChanged = function() {
11749
11759
  this.visitor.reportChanged();
@@ -11754,78 +11764,78 @@ function Ja(a) {
11754
11764
  ae(() => module);
11755
11765
  function Ha(a) {
11756
11766
  var l = a.use(pe), i = l.getFieldNames, r = l.getFieldValue, o = l.builtInTypes.array, u = l.builtInTypes.object, h = l.builtInTypes.Date, d = l.builtInTypes.RegExp, g = Object.prototype.hasOwnProperty;
11757
- function P(T, A, b) {
11758
- return o.check(b) ? b.length = 0 : b = null, v(T, A, b);
11767
+ function b(T, A, P) {
11768
+ return o.check(P) ? P.length = 0 : P = null, w(T, A, P);
11759
11769
  }
11760
- P.assert = function(T, A) {
11761
- var b = [];
11762
- if (!P(T, A, b))
11763
- if (b.length === 0) {
11770
+ b.assert = function(T, A) {
11771
+ var P = [];
11772
+ if (!b(T, A, P))
11773
+ if (P.length === 0) {
11764
11774
  if (T !== A)
11765
11775
  throw new Error("Nodes must be equal");
11766
11776
  } else
11767
11777
  throw new Error(
11768
- "Nodes differ in the following path: " + b.map(S).join("")
11778
+ "Nodes differ in the following path: " + P.map(S).join("")
11769
11779
  );
11770
11780
  };
11771
11781
  function S(T) {
11772
11782
  return /[_$a-z][_$a-z0-9]*/i.test(T) ? "." + T : "[" + JSON.stringify(T) + "]";
11773
11783
  }
11774
- function v(T, A, b) {
11775
- return T === A ? !0 : o.check(T) ? w(T, A, b) : u.check(T) ? I(T, A, b) : h.check(T) ? h.check(A) && +T == +A : d.check(T) ? d.check(A) && T.source === A.source && T.global === A.global && T.multiline === A.multiline && T.ignoreCase === A.ignoreCase : T == A;
11784
+ function w(T, A, P) {
11785
+ return T === A ? !0 : o.check(T) ? v(T, A, P) : u.check(T) ? I(T, A, P) : h.check(T) ? h.check(A) && +T == +A : d.check(T) ? d.check(A) && T.source === A.source && T.global === A.global && T.multiline === A.multiline && T.ignoreCase === A.ignoreCase : T == A;
11776
11786
  }
11777
- function w(T, A, b) {
11787
+ function v(T, A, P) {
11778
11788
  o.assert(T);
11779
11789
  var m = T.length;
11780
11790
  if (!o.check(A) || A.length !== m)
11781
- return b && b.push("length"), !1;
11791
+ return P && P.push("length"), !1;
11782
11792
  for (var O = 0; O < m; ++O) {
11783
- if (b && b.push(O), O in T != O in A || !v(T[O], A[O], b))
11793
+ if (P && P.push(O), O in T != O in A || !w(T[O], A[O], P))
11784
11794
  return !1;
11785
- if (b) {
11786
- var U = b.pop();
11795
+ if (P) {
11796
+ var U = P.pop();
11787
11797
  if (U !== O)
11788
11798
  throw new Error("" + U);
11789
11799
  }
11790
11800
  }
11791
11801
  return !0;
11792
11802
  }
11793
- function I(T, A, b) {
11803
+ function I(T, A, P) {
11794
11804
  if (u.assert(T), !u.check(A))
11795
11805
  return !1;
11796
11806
  if (T.type !== A.type)
11797
- return b && b.push("type"), !1;
11807
+ return P && P.push("type"), !1;
11798
11808
  var m = i(T), O = m.length, U = i(A), D = U.length;
11799
11809
  if (O === D) {
11800
11810
  for (var B = 0; B < O; ++B) {
11801
11811
  var R = m[B], q = r(T, R), M = r(A, R);
11802
- if (b && b.push(R), !v(q, M, b))
11812
+ if (P && P.push(R), !w(q, M, P))
11803
11813
  return !1;
11804
- if (b) {
11805
- var k = b.pop();
11814
+ if (P) {
11815
+ var k = P.pop();
11806
11816
  if (k !== R)
11807
11817
  throw new Error("" + k);
11808
11818
  }
11809
11819
  }
11810
11820
  return !0;
11811
11821
  }
11812
- if (!b)
11822
+ if (!P)
11813
11823
  return !1;
11814
11824
  var _ = /* @__PURE__ */ Object.create(null);
11815
11825
  for (B = 0; B < O; ++B)
11816
11826
  _[m[B]] = !0;
11817
11827
  for (B = 0; B < D; ++B) {
11818
11828
  if (R = U[B], !g.call(_, R))
11819
- return b.push(R), !1;
11829
+ return P.push(R), !1;
11820
11830
  delete _[R];
11821
11831
  }
11822
11832
  for (R in _) {
11823
- b.push(R);
11833
+ P.push(R);
11824
11834
  break;
11825
11835
  }
11826
11836
  return !1;
11827
11837
  }
11828
- return P;
11838
+ return b;
11829
11839
  }
11830
11840
  ae(() => module);
11831
11841
  function Ka(a) {
@@ -11931,7 +11941,7 @@ function Qa(a) {
11931
11941
  var l = a.use(pe), i = l.Type, r = i.def, o = i.or, u = a.use(we), h = u.defaults, d = u.geq;
11932
11942
  const {
11933
11943
  BinaryOperators: g,
11934
- AssignmentOperators: P,
11944
+ AssignmentOperators: b,
11935
11945
  LogicalOperators: S
11936
11946
  } = a.use(Nr);
11937
11947
  r("Printable").field("loc", o(
@@ -11952,7 +11962,7 @@ function Qa(a) {
11952
11962
  r("VariableDeclaration"),
11953
11963
  r("Expression")
11954
11964
  )).field("right", r("Expression")).field("body", r("Statement")), r("DebuggerStatement").bases("Statement").build(), r("Declaration").bases("Statement"), r("FunctionDeclaration").bases("Function", "Declaration").build("id", "params", "body").field("id", r("Identifier")), r("FunctionExpression").bases("Function", "Expression").build("id", "params", "body"), r("VariableDeclaration").bases("Declaration").build("kind", "declarations").field("kind", o("var", "let", "const")).field("declarations", [r("VariableDeclarator")]), r("VariableDeclarator").bases("Node").build("id", "init").field("id", r("Pattern")).field("init", o(r("Expression"), null), h.null), r("Expression").bases("Node"), r("ThisExpression").bases("Expression").build(), r("ArrayExpression").bases("Expression").build("elements").field("elements", [o(r("Expression"), null)]), r("ObjectExpression").bases("Expression").build("properties").field("properties", [r("Property")]), r("Property").bases("Node").build("kind", "key", "value").field("kind", o("init", "get", "set")).field("key", o(r("Literal"), r("Identifier"))).field("value", r("Expression")), r("SequenceExpression").bases("Expression").build("expressions").field("expressions", [r("Expression")]);
11955
- var v = o(
11965
+ var w = o(
11956
11966
  "-",
11957
11967
  "+",
11958
11968
  "!",
@@ -11961,17 +11971,17 @@ function Qa(a) {
11961
11971
  "void",
11962
11972
  "delete"
11963
11973
  );
11964
- r("UnaryExpression").bases("Expression").build("operator", "argument", "prefix").field("operator", v).field("argument", r("Expression")).field("prefix", Boolean, h.true);
11965
- const w = o(...g);
11966
- r("BinaryExpression").bases("Expression").build("operator", "left", "right").field("operator", w).field("left", r("Expression")).field("right", r("Expression"));
11967
- const I = o(...P);
11974
+ r("UnaryExpression").bases("Expression").build("operator", "argument", "prefix").field("operator", w).field("argument", r("Expression")).field("prefix", Boolean, h.true);
11975
+ const v = o(...g);
11976
+ r("BinaryExpression").bases("Expression").build("operator", "left", "right").field("operator", v).field("left", r("Expression")).field("right", r("Expression"));
11977
+ const I = o(...b);
11968
11978
  r("AssignmentExpression").bases("Expression").build("operator", "left", "right").field("operator", I).field("left", o(r("Pattern"), r("MemberExpression"))).field("right", r("Expression"));
11969
11979
  var T = o("++", "--");
11970
11980
  r("UpdateExpression").bases("Expression").build("operator", "argument", "prefix").field("operator", T).field("argument", r("Expression")).field("prefix", Boolean);
11971
11981
  var A = o(...S);
11972
11982
  r("LogicalExpression").bases("Expression").build("operator", "left", "right").field("operator", A).field("left", r("Expression")).field("right", r("Expression")), r("ConditionalExpression").bases("Expression").build("test", "consequent", "alternate").field("test", r("Expression")).field("consequent", r("Expression")).field("alternate", r("Expression")), r("NewExpression").bases("Expression").build("callee", "arguments").field("callee", r("Expression")).field("arguments", [r("Expression")]), r("CallExpression").bases("Expression").build("callee", "arguments").field("callee", r("Expression")).field("arguments", [r("Expression")]), r("MemberExpression").bases("Expression").build("object", "property", "computed").field("object", r("Expression")).field("property", o(r("Identifier"), r("Expression"))).field("computed", Boolean, function() {
11973
- var b = this.property.type;
11974
- return b === "Literal" || b === "MemberExpression" || b === "BinaryExpression";
11983
+ var P = this.property.type;
11984
+ return P === "Literal" || P === "MemberExpression" || P === "BinaryExpression";
11975
11985
  }), r("Pattern").bases("Node"), r("SwitchCase").bases("Node").build("test", "consequent").field("test", o(r("Expression"), null)).field("consequent", [r("Statement")]), r("Identifier").bases("Expression", "Pattern").build("name").field("name", String).field("optional", Boolean, h.false), r("Literal").bases("Expression").build("value").field("value", o(String, Boolean, null, Number, RegExp, BigInt)), r("Comment").bases("Printable").field("value", String).field("leading", Boolean, h.true).field("trailing", Boolean, h.false);
11976
11986
  }
11977
11987
  ae(() => module);
@@ -12308,7 +12318,7 @@ function Mr(a) {
12308
12318
  "leading",
12309
12319
  "trailing"
12310
12320
  ), r("Directive").bases("Node").build("value").field("value", r("DirectiveLiteral")), r("DirectiveLiteral").bases("Node", "Expression").build("value").field("value", String, i["use strict"]), r("InterpreterDirective").bases("Node").build("value").field("value", String), r("BlockStatement").bases("Statement").build("body").field("body", [r("Statement")]).field("directives", [r("Directive")], i.emptyArray), r("Program").bases("Node").build("body").field("body", [r("Statement")]).field("directives", [r("Directive")], i.emptyArray).field("interpreter", o(r("InterpreterDirective"), null), i.null);
12311
- function h(S = String, v) {
12321
+ function h(S = String, w) {
12312
12322
  return [
12313
12323
  "extra",
12314
12324
  {
@@ -12319,7 +12329,7 @@ function Mr(a) {
12319
12329
  const I = l.getFieldValue(this, "value");
12320
12330
  return {
12321
12331
  rawValue: I,
12322
- raw: v ? v(I) : String(I)
12332
+ raw: w ? w(I) : String(I)
12323
12333
  };
12324
12334
  }
12325
12335
  ];
@@ -12389,7 +12399,7 @@ function Mr(a) {
12389
12399
  ].forEach((S) => {
12390
12400
  r(S).field("computed", Boolean, i.false).field("static", Boolean, i.false).field("abstract", Boolean, i.false).field("accessibility", o("public", "private", "protected", null), i.null).field("decorators", o([r("Decorator")], null), i.null).field("definite", Boolean, i.false).field("optional", Boolean, i.false).field("override", Boolean, i.false).field("readonly", Boolean, i.false);
12391
12401
  });
12392
- var P = o(
12402
+ var b = o(
12393
12403
  r("Property"),
12394
12404
  r("PropertyPattern"),
12395
12405
  r("SpreadPropertyPattern"),
@@ -12402,7 +12412,7 @@ function Mr(a) {
12402
12412
  r("RestElement")
12403
12413
  // Babel 6
12404
12414
  );
12405
- r("ObjectPattern").bases("Pattern").build("properties").field("properties", [P]).field(
12415
+ r("ObjectPattern").bases("Pattern").build("properties").field("properties", [b]).field(
12406
12416
  "decorators",
12407
12417
  o([r("Decorator")], null),
12408
12418
  i.null
@@ -12419,8 +12429,8 @@ function lo(a) {
12419
12429
  ae(() => module);
12420
12430
  function co(a) {
12421
12431
  a.use(Mr), a.use(Or);
12422
- var l = a.use(pe), i = l.namedTypes, r = l.Type.def, o = l.Type.or, u = a.use(we).defaults, h = l.Type.from(function(S, v) {
12423
- return !!(i.StringLiteral && i.StringLiteral.check(S, v) || i.Literal && i.Literal.check(S, v) && typeof S.value == "string");
12432
+ var l = a.use(pe), i = l.namedTypes, r = l.Type.def, o = l.Type.or, u = a.use(we).defaults, h = l.Type.from(function(S, w) {
12433
+ return !!(i.StringLiteral && i.StringLiteral.check(S, w) || i.Literal && i.Literal.check(S, w) && typeof S.value == "string");
12424
12434
  }, "StringLiteral");
12425
12435
  r("TSType").bases("Node");
12426
12436
  var d = o(
@@ -12580,14 +12590,14 @@ function co(a) {
12580
12590
  o(r("Expression"), null),
12581
12591
  u.null
12582
12592
  ), r("TSTypeQuery").bases("TSType").build("exprName").field("exprName", o(d, r("TSImportType")));
12583
- var P = o(
12593
+ var b = o(
12584
12594
  r("TSCallSignatureDeclaration"),
12585
12595
  r("TSConstructSignatureDeclaration"),
12586
12596
  r("TSIndexSignature"),
12587
12597
  r("TSMethodSignature"),
12588
12598
  r("TSPropertySignature")
12589
12599
  );
12590
- r("TSTypeLiteral").bases("TSType").build("members").field("members", [P]), r("TSTypeParameter").bases("Identifier").build("name", "constraint", "default").field("name", o(r("Identifier"), String)).field("constraint", o(r("TSType"), void 0), u.undefined).field("default", o(r("TSType"), void 0), u.undefined), r("TSTypeAssertion").bases("Expression", "Pattern").build("typeAnnotation", "expression").field("typeAnnotation", r("TSType")).field("expression", r("Expression")).field(
12600
+ r("TSTypeLiteral").bases("TSType").build("members").field("members", [b]), r("TSTypeParameter").bases("Identifier").build("name", "constraint", "default").field("name", o(r("Identifier"), String)).field("constraint", o(r("TSType"), void 0), u.undefined).field("default", o(r("TSType"), void 0), u.undefined), r("TSTypeAssertion").bases("Expression", "Pattern").build("typeAnnotation", "expression").field("typeAnnotation", r("TSType")).field("expression", r("Expression")).field(
12591
12601
  "extra",
12592
12602
  o({ parenthesized: Boolean }, null),
12593
12603
  u.null
@@ -12609,7 +12619,7 @@ function co(a) {
12609
12619
  d,
12610
12620
  r("TSExternalModuleReference")
12611
12621
  )
12612
- ), r("TSExternalModuleReference").bases("Declaration").build("expression").field("expression", h), r("TSExportAssignment").bases("Statement").build("expression").field("expression", r("Expression")), r("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id", r("Identifier")), r("TSInterfaceBody").bases("Node").build("body").field("body", [P]), r("TSExpressionWithTypeArguments").bases("TSType", "TSHasOptionalTypeParameterInstantiation").build("expression", "typeParameters").field("expression", d), r("TSInterfaceDeclaration").bases("Declaration", "TSHasOptionalTypeParameters").build("id", "body").field("id", d).field("declare", Boolean, u.false).field(
12622
+ ), r("TSExternalModuleReference").bases("Declaration").build("expression").field("expression", h), r("TSExportAssignment").bases("Statement").build("expression").field("expression", r("Expression")), r("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id", r("Identifier")), r("TSInterfaceBody").bases("Node").build("body").field("body", [b]), r("TSExpressionWithTypeArguments").bases("TSType", "TSHasOptionalTypeParameterInstantiation").build("expression", "typeParameters").field("expression", d), r("TSInterfaceDeclaration").bases("Declaration", "TSHasOptionalTypeParameters").build("id", "body").field("id", d).field("declare", Boolean, u.false).field(
12613
12623
  "extends",
12614
12624
  o([r("TSExpressionWithTypeArguments")], null),
12615
12625
  u.null
@@ -12637,7 +12647,7 @@ function co(a) {
12637
12647
  r("StaticBlock"),
12638
12648
  // Just need to add these types:
12639
12649
  r("TSDeclareMethod"),
12640
- P
12650
+ b
12641
12651
  )]);
12642
12652
  }
12643
12653
  ae(() => module);
@@ -12682,7 +12692,7 @@ function go(...a) {
12682
12692
  function ie(a, l) {
12683
12693
  return a.line - l.line || a.column - l.column;
12684
12694
  }
12685
- function We(a) {
12695
+ function Je(a) {
12686
12696
  return {
12687
12697
  line: a.line,
12688
12698
  column: a.column
@@ -12707,15 +12717,15 @@ function xo(a, l) {
12707
12717
  return;
12708
12718
  o.addMapping({
12709
12719
  source: g,
12710
- original: We(d),
12720
+ original: Je(d),
12711
12721
  generated: {
12712
12722
  line: h.generatedLine,
12713
12723
  column: h.generatedColumn
12714
12724
  },
12715
12725
  name: h.name
12716
12726
  });
12717
- const P = i.sourceContentFor(g);
12718
- P && !Fr.call(u, g) && (u[g] = P, o.setSourceContent(g, P));
12727
+ const b = i.sourceContentFor(g);
12728
+ b && !Fr.call(u, g) && (u[g] = b, o.setSourceContent(g, b));
12719
12729
  }), o.toJSON();
12720
12730
  }
12721
12731
  function Br(a, l) {
@@ -12726,38 +12736,38 @@ function Br(a, l) {
12726
12736
  end: a.loc.end
12727
12737
  };
12728
12738
  function r(o) {
12729
- Ls(i, o.loc);
12739
+ Os(i, o.loc);
12730
12740
  }
12731
- return a.declaration && a.declaration.decorators && is(a) && a.declaration.decorators.forEach(r), ie(i.start, i.end) < 0 && (i.start = We(i.start), l.skipSpaces(i.start, !1, !0), ie(i.start, i.end) < 0 && (i.end = We(i.end), l.skipSpaces(i.end, !0, !0))), a.comments && a.comments.forEach(r), i;
12741
+ return a.declaration && a.declaration.decorators && rs(a) && a.declaration.decorators.forEach(r), ie(i.start, i.end) < 0 && (i.start = Je(i.start), l.skipSpaces(i.start, !1, !0), ie(i.start, i.end) < 0 && (i.end = Je(i.end), l.skipSpaces(i.end, !0, !0))), a.comments && a.comments.forEach(r), i;
12732
12742
  }
12733
- function Ls(a, l) {
12743
+ function Os(a, l) {
12734
12744
  a && l && (ie(l.start, a.start) < 0 && (a.start = l.start), ie(a.end, l.end) < 0 && (a.end = l.end));
12735
12745
  }
12736
12746
  function Vs(a, l) {
12737
12747
  const i = a.loc;
12738
12748
  if (i && (i.start.line < 1 && (i.start.line = 1), i.end.line < 1 && (i.end.line = 1)), a.type === "File" && (i.start = l.firstPos(), i.end = l.lastPos()), bo(a, l), Po(a, l), i && a.decorators)
12739
12749
  a.decorators.forEach(function(r) {
12740
- Ls(i, r.loc);
12750
+ Os(i, r.loc);
12741
12751
  });
12742
- else if (a.declaration && is(a)) {
12752
+ else if (a.declaration && rs(a)) {
12743
12753
  a.declaration.loc = null;
12744
12754
  const r = a.declaration.decorators;
12745
12755
  r && r.forEach(function(o) {
12746
- Ls(i, o.loc);
12756
+ Os(i, o.loc);
12747
12757
  });
12748
12758
  } else if (Ht.MethodDefinition && Ht.MethodDefinition.check(a) || Ht.Property.check(a) && (a.method || a.shorthand))
12749
12759
  a.value.loc = null, Ht.FunctionExpression.check(a.value) && (a.value.id = null);
12750
12760
  else if (a.type === "ObjectTypeProperty") {
12751
12761
  const r = a.loc;
12752
12762
  let o = r && r.end;
12753
- o && (o = We(o), l.prevPos(o) && l.charAt(o) === "," && (o = l.skipSpaces(o, !0, !0)) && (r.end = o));
12763
+ o && (o = Je(o), l.prevPos(o) && l.charAt(o) === "," && (o = l.skipSpaces(o, !0, !0)) && (r.end = o));
12754
12764
  }
12755
12765
  }
12756
12766
  function bo(a, l) {
12757
12767
  if (a.type !== "ForStatement")
12758
12768
  return;
12759
12769
  function i(r) {
12760
- const o = r && r.loc, u = o && o.start, h = o && We(o.end);
12770
+ const o = r && r.loc, u = o && o.start, h = o && Je(o.end);
12761
12771
  for (; u && h && ie(u, h) < 0 && (l.prevPos(h), l.charAt(h) === ";"); )
12762
12772
  o.end.line = h.line, o.end.column = h.column;
12763
12773
  }
@@ -12766,9 +12776,9 @@ function bo(a, l) {
12766
12776
  function Po(a, l) {
12767
12777
  if (a.type === "TemplateLiteral" && a.quasis.length !== 0) {
12768
12778
  if (a.loc) {
12769
- const i = We(a.loc.start), r = a.quasis[0];
12779
+ const i = Je(a.loc.start), r = a.quasis[0];
12770
12780
  ie(r.loc.start, i) < 0 && (r.loc.start = i);
12771
- const o = We(a.loc.end), u = a.quasis[a.quasis.length - 1];
12781
+ const o = Je(a.loc.end), u = a.quasis[a.quasis.length - 1];
12772
12782
  ie(o, u.loc.end) < 0 && (u.loc.end = o);
12773
12783
  }
12774
12784
  a.expressions.forEach(function(i, r) {
@@ -12785,7 +12795,7 @@ function Po(a, l) {
12785
12795
  });
12786
12796
  }
12787
12797
  }
12788
- function is(a) {
12798
+ function rs(a) {
12789
12799
  if (a)
12790
12800
  switch (a.type) {
12791
12801
  case "ExportDeclaration":
@@ -12800,13 +12810,13 @@ function is(a) {
12800
12810
  }
12801
12811
  function _r(a) {
12802
12812
  const l = a.getParentNode();
12803
- return a.getName() === "declaration" && is(l) ? l : null;
12813
+ return a.getName() === "declaration" && rs(l) ? l : null;
12804
12814
  }
12805
- function wt(a, l) {
12815
+ function vt(a, l) {
12806
12816
  const i = a.trailingComma;
12807
12817
  return typeof i == "object" ? !!i[l] : !!i;
12808
12818
  }
12809
- const Os = {
12819
+ const Ds = {
12810
12820
  tabWidth: 4,
12811
12821
  useTabs: !1,
12812
12822
  reuseWhitespace: !0,
@@ -12826,11 +12836,11 @@ const Os = {
12826
12836
  arrowParensAlways: !1,
12827
12837
  flowObjectCommas: !0,
12828
12838
  tokens: !0
12829
- }, To = Os.hasOwnProperty;
12830
- function rs(a) {
12831
- const l = a || Os;
12839
+ }, To = Ds.hasOwnProperty;
12840
+ function ns(a) {
12841
+ const l = a || Ds;
12832
12842
  function i(r) {
12833
- return To.call(l, r) ? l[r] : Os[r];
12843
+ return To.call(l, r) ? l[r] : Ds[r];
12834
12844
  }
12835
12845
  return {
12836
12846
  tabWidth: +i("tabWidth"),
@@ -12854,7 +12864,7 @@ function rs(a) {
12854
12864
  tokens: !!i("tokens")
12855
12865
  };
12856
12866
  }
12857
- class lt {
12867
+ class ut {
12858
12868
  constructor(l, i, r = i) {
12859
12869
  this.sourceLines = l, this.sourceLoc = i, this.targetLoc = r;
12860
12870
  }
@@ -12862,14 +12872,14 @@ class lt {
12862
12872
  const o = this.sourceLines;
12863
12873
  let u = this.sourceLoc, h = this.targetLoc;
12864
12874
  function d(g) {
12865
- const P = u[g], S = h[g];
12866
- let v = i;
12867
- return g === "end" && (v = r), So(
12875
+ const b = u[g], S = h[g];
12876
+ let w = i;
12877
+ return g === "end" && (w = r), So(
12868
12878
  o,
12869
- P,
12879
+ b,
12870
12880
  l,
12871
12881
  S,
12872
- v
12882
+ w
12873
12883
  );
12874
12884
  }
12875
12885
  if (ie(i, h.start) <= 0)
@@ -12908,16 +12918,16 @@ class lt {
12908
12918
  end: ze(r, i.line, i.column)
12909
12919
  });
12910
12920
  }
12911
- return new lt(this.sourceLines, u, h);
12921
+ return new ut(this.sourceLines, u, h);
12912
12922
  }
12913
12923
  add(l, i) {
12914
- return new lt(this.sourceLines, this.sourceLoc, {
12924
+ return new ut(this.sourceLines, this.sourceLoc, {
12915
12925
  start: hr(this.targetLoc.start, l, i),
12916
12926
  end: hr(this.targetLoc.end, l, i)
12917
12927
  });
12918
12928
  }
12919
12929
  subtract(l, i) {
12920
- return new lt(this.sourceLines, this.sourceLoc, {
12930
+ return new ut(this.sourceLines, this.sourceLoc, {
12921
12931
  start: ze(this.targetLoc.start, l, i),
12922
12932
  end: ze(this.targetLoc.end, l, i)
12923
12933
  });
@@ -12946,7 +12956,7 @@ class lt {
12946
12956
  column: r ? Math.max(0, d) : d
12947
12957
  };
12948
12958
  }
12949
- return new lt(this.sourceLines, this.sourceLoc, o);
12959
+ return new ut(this.sourceLines, this.sourceLoc, o);
12950
12960
  }
12951
12961
  }
12952
12962
  function hr(a, l, i) {
@@ -12979,11 +12989,11 @@ function So(a, l, i, r, o) {
12979
12989
  }
12980
12990
  return h;
12981
12991
  }
12982
- var Eo = Object.defineProperty, Ao = (a, l, i) => l in a ? Eo(a, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[l] = i, xt = (a, l, i) => (Ao(a, typeof l != "symbol" ? l + "" : l, i), i);
12992
+ var Eo = Object.defineProperty, Ao = (a, l, i) => l in a ? Eo(a, l, { enumerable: !0, configurable: !0, writable: !0, value: i }) : a[l] = i, bt = (a, l, i) => (Ao(a, typeof l != "symbol" ? l + "" : l, i), i);
12983
12993
  class ke {
12984
12994
  constructor(l, i = null) {
12985
- this.infos = l, xt(this, "length"), xt(this, "name"), xt(this, "mappings", []), xt(this, "cachedSourceMap", null), xt(this, "cachedTabWidth"), this.length = l.length, this.name = i || null, this.name && this.mappings.push(
12986
- new lt(this, {
12995
+ this.infos = l, bt(this, "length"), bt(this, "name"), bt(this, "mappings", []), bt(this, "cachedSourceMap", null), bt(this, "cachedTabWidth"), this.length = l.length, this.name = i || null, this.name && this.mappings.push(
12996
+ new ut(this, {
12987
12997
  start: this.firstPos(),
12988
12998
  end: this.lastPos()
12989
12999
  })
@@ -13003,24 +13013,24 @@ class ke {
13003
13013
  return o(r.cachedSourceMap.toJSON());
13004
13014
  const u = new Us.SourceMapGenerator(o()), h = {};
13005
13015
  return r.mappings.forEach(function(d) {
13006
- const g = d.sourceLines.skipSpaces(d.sourceLoc.start) || d.sourceLines.lastPos(), P = r.skipSpaces(d.targetLoc.start) || r.lastPos();
13007
- for (; ie(g, d.sourceLoc.end) < 0 && ie(P, d.targetLoc.end) < 0; ) {
13008
- d.sourceLines.charAt(g), r.charAt(P);
13016
+ const g = d.sourceLines.skipSpaces(d.sourceLoc.start) || d.sourceLines.lastPos(), b = r.skipSpaces(d.targetLoc.start) || r.lastPos();
13017
+ for (; ie(g, d.sourceLoc.end) < 0 && ie(b, d.targetLoc.end) < 0; ) {
13018
+ d.sourceLines.charAt(g), r.charAt(b);
13009
13019
  const S = d.sourceLines.name;
13010
13020
  if (u.addMapping({
13011
13021
  source: S,
13012
13022
  original: { line: g.line, column: g.column },
13013
- generated: { line: P.line, column: P.column }
13014
- }), !Ds.call(h, S)) {
13015
- const v = d.sourceLines.toString();
13016
- u.setSourceContent(S, v), h[S] = v;
13023
+ generated: { line: b.line, column: b.column }
13024
+ }), !Ms.call(h, S)) {
13025
+ const w = d.sourceLines.toString();
13026
+ u.setSourceContent(S, w), h[S] = w;
13017
13027
  }
13018
- r.nextPos(P, !0), d.sourceLines.nextPos(g, !0);
13028
+ r.nextPos(b, !0), d.sourceLines.nextPos(g, !0);
13019
13029
  }
13020
13030
  }), r.cachedSourceMap = u, u.toJSON();
13021
13031
  }
13022
13032
  bootstrapCharAt(l) {
13023
- const i = l.line, r = l.column, o = this.toString().split(Ms), u = o[i - 1];
13033
+ const i = l.line, r = l.column, o = this.toString().split(Fs), u = o[i - 1];
13024
13034
  return typeof u > "u" ? "" : r === u.length && i < o.length ? `
13025
13035
  ` : r >= u.length ? "" : u.charAt(r);
13026
13036
  }
@@ -13111,14 +13121,14 @@ class ke {
13111
13121
  let i = 0;
13112
13122
  for (let u = 1, h = this.length; u <= h; ++u) {
13113
13123
  const d = this.infos[u - 1], g = d.line.slice(d.sliceStart, d.sliceEnd);
13114
- if (rt(g))
13124
+ if (at(g))
13115
13125
  continue;
13116
- const P = Math.abs(d.indent - i);
13117
- l[P] = ~~l[P] + 1, i = d.indent;
13126
+ const b = Math.abs(d.indent - i);
13127
+ l[b] = ~~l[b] + 1, i = d.indent;
13118
13128
  }
13119
13129
  let r = -1, o = 2;
13120
13130
  for (let u = 1; u < l.length; u += 1)
13121
- Ds.call(l, u) && l[u] > r && (r = l[u], o = u);
13131
+ Ms.call(l, u) && l[u] > r && (r = l[u], o = u);
13122
13132
  return this.cachedTabWidth = o;
13123
13133
  }
13124
13134
  // Determine if the list of lines has a first line that starts with a //
@@ -13131,14 +13141,14 @@ class ke {
13131
13141
  return o.length === 0 || o.slice(0, 2) === "//" || o.slice(0, 2) === "/*";
13132
13142
  }
13133
13143
  isOnlyWhitespace() {
13134
- return rt(this.toString());
13144
+ return at(this.toString());
13135
13145
  }
13136
13146
  isPrecededOnlyByWhitespace(l) {
13137
13147
  const i = this.infos[l.line - 1], r = Math.max(i.indent, 0), o = l.column - r;
13138
13148
  if (o <= 0)
13139
13149
  return !0;
13140
13150
  const u = i.sliceStart, h = Math.min(u + o, i.sliceEnd), d = i.line.slice(u, h);
13141
- return rt(d);
13151
+ return at(d);
13142
13152
  }
13143
13153
  getLineLength(l) {
13144
13154
  const i = this.infos[l - 1];
@@ -13173,11 +13183,11 @@ class ke {
13173
13183
  column: l.column
13174
13184
  } : i ? l = this.lastPos() : l = this.firstPos(), i) {
13175
13185
  for (; this.prevPos(l); )
13176
- if (!rt(this.charAt(l)) && this.nextPos(l))
13186
+ if (!at(this.charAt(l)) && this.nextPos(l))
13177
13187
  return l;
13178
13188
  return null;
13179
13189
  } else {
13180
- for (; rt(this.charAt(l)); )
13190
+ for (; at(this.charAt(l)); )
13181
13191
  if (!this.nextPos(l))
13182
13192
  return null;
13183
13193
  return l;
@@ -13185,18 +13195,18 @@ class ke {
13185
13195
  }
13186
13196
  trimLeft() {
13187
13197
  const l = this.skipSpaces(this.firstPos(), !1, !0);
13188
- return l ? this.slice(l) : Ge;
13198
+ return l ? this.slice(l) : Qe;
13189
13199
  }
13190
13200
  trimRight() {
13191
13201
  const l = this.skipSpaces(this.lastPos(), !0, !0);
13192
- return l ? this.slice(this.firstPos(), l) : Ge;
13202
+ return l ? this.slice(this.firstPos(), l) : Qe;
13193
13203
  }
13194
13204
  trim() {
13195
13205
  const l = this.skipSpaces(this.firstPos(), !1, !0);
13196
13206
  if (l === null)
13197
- return Ge;
13207
+ return Qe;
13198
13208
  const i = this.skipSpaces(this.lastPos(), !0, !0);
13199
- return i === null ? Ge : this.slice(l, i);
13209
+ return i === null ? Qe : this.slice(l, i);
13200
13210
  }
13201
13211
  eachPos(l, i = this.firstPos(), r = !1) {
13202
13212
  const o = this.firstPos();
@@ -13206,7 +13216,7 @@ class ke {
13206
13216
  while (this.nextPos(o, r));
13207
13217
  }
13208
13218
  bootstrapSlice(l, i) {
13209
- const r = this.toString().split(Ms).slice(l.line - 1, i.line);
13219
+ const r = this.toString().split(Fs).slice(l.line - 1, i.line);
13210
13220
  return r.length > 0 && (r.push(r.pop().slice(0, i.column)), r[0] = r[0].slice(l.column)), j(r.join(`
13211
13221
  `));
13212
13222
  }
@@ -13219,7 +13229,7 @@ class ke {
13219
13229
  if (!l)
13220
13230
  throw new Error("cannot slice with end but not start");
13221
13231
  const r = this.infos.slice(l.line - 1, i.line);
13222
- l.line === i.line ? r[0] = nt(r[0], l.column, i.column) : (r[0] = nt(r[0], l.column), r.push(nt(r.pop(), 0, i.column)));
13232
+ l.line === i.line ? r[0] = ot(r[0], l.column, i.column) : (r[0] = ot(r[0], l.column), r.push(ot(r.pop(), 0, i.column)));
13223
13233
  const o = new ke(r);
13224
13234
  if (this.mappings.length > 0) {
13225
13235
  const u = o.mappings;
@@ -13234,17 +13244,17 @@ class ke {
13234
13244
  return this.slice(l, i).toString(r);
13235
13245
  }
13236
13246
  sliceString(l = this.firstPos(), i = this.lastPos(), r) {
13237
- const { tabWidth: o, useTabs: u, reuseWhitespace: h, lineTerminator: d } = rs(r), g = [];
13238
- for (let P = l.line; P <= i.line; ++P) {
13239
- let S = this.infos[P - 1];
13240
- P === l.line ? P === i.line ? S = nt(S, l.column, i.column) : S = nt(S, l.column) : P === i.line && (S = nt(S, 0, i.column));
13241
- const v = Math.max(S.indent, 0), w = S.line.slice(0, S.sliceStart);
13242
- if (h && rt(w) && jr(w, o) === v) {
13247
+ const { tabWidth: o, useTabs: u, reuseWhitespace: h, lineTerminator: d } = ns(r), g = [];
13248
+ for (let b = l.line; b <= i.line; ++b) {
13249
+ let S = this.infos[b - 1];
13250
+ b === l.line ? b === i.line ? S = ot(S, l.column, i.column) : S = ot(S, l.column) : b === i.line && (S = ot(S, 0, i.column));
13251
+ const w = Math.max(S.indent, 0), v = S.line.slice(0, S.sliceStart);
13252
+ if (h && at(v) && jr(v, o) === w) {
13243
13253
  g.push(S.line.slice(0, S.sliceEnd));
13244
13254
  continue;
13245
13255
  }
13246
- let I = 0, T = v;
13247
- u && (I = Math.floor(v / o), T -= I * o);
13256
+ let I = 0, T = w;
13257
+ u && (I = Math.floor(w / o), T -= I * o);
13248
13258
  let A = "";
13249
13259
  I > 0 && (A += new Array(I + 1).join(" ")), T > 0 && (A += new Array(T + 1).join(" ")), A += S.line.slice(S.sliceStart, S.sliceEnd), g.push(A);
13250
13260
  }
@@ -13256,38 +13266,38 @@ class ke {
13256
13266
  join(l) {
13257
13267
  const i = this, r = [], o = [];
13258
13268
  let u;
13259
- function h(P) {
13260
- if (P !== null) {
13269
+ function h(b) {
13270
+ if (b !== null) {
13261
13271
  if (u) {
13262
- const S = P.infos[0], v = new Array(S.indent + 1).join(" "), w = r.length, I = Math.max(u.indent, 0) + u.sliceEnd - u.sliceStart;
13263
- u.line = u.line.slice(0, u.sliceEnd) + v + S.line.slice(S.sliceStart, S.sliceEnd), u.locked = u.locked || S.locked, u.sliceEnd = u.line.length, P.mappings.length > 0 && P.mappings.forEach(function(T) {
13264
- o.push(T.add(w, I));
13272
+ const S = b.infos[0], w = new Array(S.indent + 1).join(" "), v = r.length, I = Math.max(u.indent, 0) + u.sliceEnd - u.sliceStart;
13273
+ u.line = u.line.slice(0, u.sliceEnd) + w + S.line.slice(S.sliceStart, S.sliceEnd), u.locked = u.locked || S.locked, u.sliceEnd = u.line.length, b.mappings.length > 0 && b.mappings.forEach(function(T) {
13274
+ o.push(T.add(v, I));
13265
13275
  });
13266
- } else P.mappings.length > 0 && o.push.apply(o, P.mappings);
13267
- P.infos.forEach(function(S, v) {
13268
- (!u || v > 0) && (u = { ...S }, r.push(u));
13276
+ } else b.mappings.length > 0 && o.push.apply(o, b.mappings);
13277
+ b.infos.forEach(function(S, w) {
13278
+ (!u || w > 0) && (u = { ...S }, r.push(u));
13269
13279
  });
13270
13280
  }
13271
13281
  }
13272
- function d(P, S) {
13273
- S > 0 && h(i), h(P);
13282
+ function d(b, S) {
13283
+ S > 0 && h(i), h(b);
13274
13284
  }
13275
- if (l.map(function(P) {
13276
- const S = j(P);
13285
+ if (l.map(function(b) {
13286
+ const S = j(b);
13277
13287
  return S.isEmpty() ? null : S;
13278
- }).forEach((P, S) => {
13279
- i.isEmpty() ? h(P) : d(P, S);
13288
+ }).forEach((b, S) => {
13289
+ i.isEmpty() ? h(b) : d(b, S);
13280
13290
  }), r.length < 1)
13281
- return Ge;
13291
+ return Qe;
13282
13292
  const g = new ke(r);
13283
13293
  return g.mappings = o, g;
13284
13294
  }
13285
13295
  concat(...l) {
13286
13296
  const i = [this];
13287
- return i.push.apply(i, l), Ge.join(i);
13297
+ return i.push.apply(i, l), Qe.join(i);
13288
13298
  }
13289
13299
  }
13290
- const Qt = {}, Ds = Qt.hasOwnProperty, wo = 10;
13300
+ const Qt = {}, Ms = Qt.hasOwnProperty, wo = 10;
13291
13301
  function jr(a, l) {
13292
13302
  let i = 0;
13293
13303
  const r = a.length;
@@ -13310,16 +13320,16 @@ function jr(a, l) {
13310
13320
  }
13311
13321
  return i;
13312
13322
  }
13313
- const vo = /^\s*/, Ms = /\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;
13323
+ const vo = /^\s*/, Fs = /\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;
13314
13324
  function j(a, l) {
13315
13325
  if (a instanceof ke)
13316
13326
  return a;
13317
13327
  a += "";
13318
13328
  const i = l && l.tabWidth, r = a.indexOf(" ") < 0, o = !l && r && a.length <= wo;
13319
- if (o && Ds.call(Qt, a))
13329
+ if (o && Ms.call(Qt, a))
13320
13330
  return Qt[a];
13321
13331
  const u = new ke(
13322
- a.split(Ms).map(function(h) {
13332
+ a.split(Fs).map(function(h) {
13323
13333
  const d = vo.exec(h)[0];
13324
13334
  return {
13325
13335
  line: h,
@@ -13330,14 +13340,14 @@ function j(a, l) {
13330
13340
  sliceEnd: h.length
13331
13341
  };
13332
13342
  }),
13333
- rs(l).sourceFileName
13343
+ ns(l).sourceFileName
13334
13344
  );
13335
13345
  return o && (Qt[a] = u), u;
13336
13346
  }
13337
- function rt(a) {
13347
+ function at(a) {
13338
13348
  return !/\S/.test(a);
13339
13349
  }
13340
- function nt(a, l, i) {
13350
+ function ot(a, l, i) {
13341
13351
  let r = a.sliceStart, o = a.sliceEnd, u = Math.max(a.indent, 0), h = u + o - r;
13342
13352
  return typeof i > "u" && (i = h), l = Math.max(l, 0), i = Math.min(i, h), i = Math.max(i, l), i < u ? (u = i, o = r) : o -= h - i, h = i, h -= l, l < u ? u -= l : (l -= u, u = 0, r += l), a.indent === u && a.sliceStart === r && a.sliceEnd === o ? a : {
13343
13353
  line: a.line,
@@ -13349,14 +13359,14 @@ function nt(a, l, i) {
13349
13359
  };
13350
13360
  }
13351
13361
  function L(a) {
13352
- return Ge.join(a);
13362
+ return Qe.join(a);
13353
13363
  }
13354
- const Ge = j(""), ut = Oe, Rr = De.array, Co = De.object, pr = /* @__PURE__ */ new WeakMap();
13364
+ const Qe = j(""), ht = Oe, Rr = De.array, Co = De.object, pr = /* @__PURE__ */ new WeakMap();
13355
13365
  function Ur(a, l, i) {
13356
13366
  if (!a)
13357
13367
  return i;
13358
13368
  if (Vs(a, l), i) {
13359
- if (ut.Node.check(a) && ut.SourceLocation.check(a.loc)) {
13369
+ if (ht.Node.check(a) && ht.SourceLocation.check(a.loc)) {
13360
13370
  let o = i.length - 1;
13361
13371
  for (; o >= 0; --o) {
13362
13372
  const u = i[o];
@@ -13386,17 +13396,17 @@ function $r(a, l, i) {
13386
13396
  const r = Ur(a, i);
13387
13397
  let o = 0, u = r && r.length, h, d;
13388
13398
  for (; typeof u == "number" && o < u; ) {
13389
- const g = o + u >> 1, P = r[g];
13390
- if (ie(P.loc.start, l.loc.start) <= 0 && ie(l.loc.end, P.loc.end) <= 0) {
13391
- $r(l.enclosingNode = P, l, i);
13399
+ const g = o + u >> 1, b = r[g];
13400
+ if (ie(b.loc.start, l.loc.start) <= 0 && ie(l.loc.end, b.loc.end) <= 0) {
13401
+ $r(l.enclosingNode = b, l, i);
13392
13402
  return;
13393
13403
  }
13394
- if (ie(P.loc.end, l.loc.start) <= 0) {
13395
- h = P, o = g + 1;
13404
+ if (ie(b.loc.end, l.loc.start) <= 0) {
13405
+ h = b, o = g + 1;
13396
13406
  continue;
13397
13407
  }
13398
- if (ie(l.loc.end, P.loc.start) <= 0) {
13399
- d = P, u = g;
13408
+ if (ie(l.loc.end, b.loc.start) <= 0) {
13409
+ d = b, u = g;
13400
13410
  continue;
13401
13411
  }
13402
13412
  throw new Error("Comment location overlaps with node location");
@@ -13412,20 +13422,20 @@ function Io(a, l, i) {
13412
13422
  const u = o.precedingNode, h = o.enclosingNode, d = o.followingNode;
13413
13423
  if (u && d) {
13414
13424
  const g = r.length;
13415
- g > 0 && r[g - 1].followingNode !== o.followingNode && bt(r, i), r.push(o);
13425
+ g > 0 && r[g - 1].followingNode !== o.followingNode && Pt(r, i), r.push(o);
13416
13426
  } else if (u)
13417
- bt(r, i), qr(u, o);
13427
+ Pt(r, i), qr(u, o);
13418
13428
  else if (d)
13419
- bt(r, i), Vr(d, o);
13429
+ Pt(r, i), Vr(d, o);
13420
13430
  else if (h)
13421
- bt(r, i), No(h, o);
13431
+ Pt(r, i), No(h, o);
13422
13432
  else
13423
13433
  throw new Error("AST contains no nodes at all?");
13424
- }), bt(r, i), a.forEach(function(o) {
13434
+ }), Pt(r, i), a.forEach(function(o) {
13425
13435
  delete o.precedingNode, delete o.enclosingNode, delete o.followingNode;
13426
13436
  });
13427
13437
  }
13428
- function bt(a, l) {
13438
+ function Pt(a, l) {
13429
13439
  const i = a.length;
13430
13440
  if (i === 0)
13431
13441
  return;
@@ -13446,8 +13456,8 @@ function bt(a, l) {
13446
13456
  const { enclosingNode: g } = a[h - 1];
13447
13457
  g?.type === "CallExpression" && --h;
13448
13458
  }
13449
- a.forEach(function(g, P) {
13450
- P < h ? qr(r, g) : Vr(o, g);
13459
+ a.forEach(function(g, b) {
13460
+ b < h ? qr(r, g) : Vr(o, g);
13451
13461
  }), a.length = 0;
13452
13462
  }
13453
13463
  function qs(a, l) {
@@ -13464,7 +13474,7 @@ function qr(a, l) {
13464
13474
  }
13465
13475
  function ko(a, l) {
13466
13476
  const i = a.getValue();
13467
- ut.Comment.assert(i);
13477
+ ht.Comment.assert(i);
13468
13478
  const r = i.loc, o = r && r.lines, u = [l(a)];
13469
13479
  if (i.trailing)
13470
13480
  u.push(`
@@ -13483,7 +13493,7 @@ function ko(a, l) {
13483
13493
  }
13484
13494
  function Lo(a, l) {
13485
13495
  const i = a.getValue(a);
13486
- ut.Comment.assert(i);
13496
+ ht.Comment.assert(i);
13487
13497
  const r = i.loc, o = r && r.lines, u = [];
13488
13498
  if (o instanceof ke) {
13489
13499
  const h = o.skipSpaces(r.start, !0) || o.firstPos(), d = o.slice(h, r.start);
@@ -13493,18 +13503,18 @@ function Lo(a, l) {
13493
13503
  return u.push(l(a)), L(u);
13494
13504
  }
13495
13505
  function fr(a, l) {
13496
- const i = a.getValue(), r = l(a), o = ut.Node.check(i) && je(i, "comments");
13506
+ const i = a.getValue(), r = l(a), o = ht.Node.check(i) && je(i, "comments");
13497
13507
  if (!o || o.length === 0)
13498
13508
  return r;
13499
13509
  const u = [], h = [r];
13500
13510
  return a.each(function(d) {
13501
- const g = d.getValue(), P = je(g, "leading"), S = je(g, "trailing");
13502
- P || S && !(ut.Statement.check(i) || g.type === "Block" || g.type === "CommentBlock") ? u.push(ko(d, l)) : S && h.push(Lo(d, l));
13511
+ const g = d.getValue(), b = je(g, "leading"), S = je(g, "trailing");
13512
+ b || S && !(ht.Statement.check(i) || g.type === "Block" || g.type === "CommentBlock") ? u.push(ko(d, l)) : S && h.push(Lo(d, l));
13503
13513
  }, "comments"), u.push.apply(u, h), L(u);
13504
13514
  }
13505
13515
  const Oo = Dt, Do = De.object, Mo = De.array;
13506
13516
  function Fo(a, l) {
13507
- l = rs(l);
13517
+ l = ns(l);
13508
13518
  const i = j(a, l), r = i.toString({
13509
13519
  tabWidth: l.tabWidth,
13510
13520
  reuseWhitespace: !1,
@@ -13535,7 +13545,7 @@ function Fo(a, l) {
13535
13545
  lines: i,
13536
13546
  indent: 0
13537
13547
  }) : u.type === "File" && (d = u, g = d.program), l.tokens && (d.tokens = h);
13538
- const P = Br(
13548
+ const b = Br(
13539
13549
  {
13540
13550
  type: g.type,
13541
13551
  loc: g.loc,
@@ -13543,7 +13553,7 @@ function Fo(a, l) {
13543
13553
  },
13544
13554
  i
13545
13555
  );
13546
- return g.loc.start = P.start, g.loc.end = P.end, Io(o, g.body.length ? d.program : d, i), new zr(i, h).copy(d);
13556
+ return g.loc.start = b.start, g.loc.end = b.end, Io(o, g.body.length ? d.program : d, i), new zr(i, h).copy(d);
13547
13557
  }
13548
13558
  const zr = function(l, i) {
13549
13559
  this.lines = l, this.tokens = i, this.startTokenIndex = 0, this.endTokenIndex = i.length, this.indent = 0, this.seen = /* @__PURE__ */ new Map();
@@ -13552,10 +13562,10 @@ Wr.copy = function(a) {
13552
13562
  if (this.seen.has(a))
13553
13563
  return this.seen.get(a);
13554
13564
  if (Mo.check(a)) {
13555
- const P = new Array(a.length);
13556
- return this.seen.set(a, P), a.forEach(function(S, v) {
13557
- P[v] = this.copy(S);
13558
- }, this), P;
13565
+ const b = new Array(a.length);
13566
+ return this.seen.set(a, b), a.forEach(function(S, w) {
13567
+ b[w] = this.copy(S);
13568
+ }, this), b;
13559
13569
  }
13560
13570
  if (!Do.check(a))
13561
13571
  return a;
@@ -13575,8 +13585,8 @@ Wr.copy = function(a) {
13575
13585
  const u = this.startTokenIndex, h = this.endTokenIndex;
13576
13586
  i && ((a.type === "Block" || a.type === "Line" || a.type === "CommentBlock" || a.type === "CommentLine" || this.lines.isPrecededOnlyByWhitespace(i.start)) && (o = this.indent = i.start.column), i.lines = this.lines, i.tokens = this.tokens, i.indent = o, this.findTokenRange(i));
13577
13587
  const d = Object.keys(a), g = d.length;
13578
- for (let P = 0; P < g; ++P) {
13579
- const S = d[P];
13588
+ for (let b = 0; b < g; ++b) {
13589
+ const S = d[b];
13580
13590
  S === "loc" || S === "tokens" && a.type === "File" ? l[S] = a[S] : l[S] = this.copy(a[S]);
13581
13591
  }
13582
13592
  return this.indent = r, this.startTokenIndex = u, this.endTokenIndex = h, l;
@@ -13612,7 +13622,7 @@ Wr.findTokenRange = function(a) {
13612
13622
  }
13613
13623
  a.end.token = this.endTokenIndex;
13614
13624
  };
13615
- const ue = Oe, Bo = De.array, _o = De.number, Fs = {};
13625
+ const ue = Oe, Bo = De.array, _o = De.number, Bs = {};
13616
13626
  [
13617
13627
  ["??"],
13618
13628
  ["||"],
@@ -13628,7 +13638,7 @@ const ue = Oe, Bo = De.array, _o = De.number, Fs = {};
13628
13638
  ["**"]
13629
13639
  ].forEach(function(a, l) {
13630
13640
  a.forEach(function(i) {
13631
- Fs[i] = l;
13641
+ Bs[i] = l;
13632
13642
  });
13633
13643
  });
13634
13644
  const Le = function(l) {
@@ -13780,7 +13790,7 @@ be.needsParens = function(a) {
13780
13790
  return r === "object" && i.object === l;
13781
13791
  case "BinaryExpression":
13782
13792
  case "LogicalExpression": {
13783
- const o = i.operator, u = Fs[o], h = l.operator, d = Fs[h];
13793
+ const o = i.operator, u = Bs[o], h = l.operator, d = Bs[h];
13784
13794
  if (u > d || u === d && r === "right")
13785
13795
  return !0;
13786
13796
  break;
@@ -13844,15 +13854,15 @@ be.needsParens = function(a) {
13844
13854
  if (r === "declaration" && ue.ExportDefaultDeclaration.check(i) && ue.FunctionExpression.check(l.callee))
13845
13855
  return !0;
13846
13856
  }
13847
- return i.type === "NewExpression" && r === "callee" && i.callee === l ? Bs(l) : !!(a !== !0 && !this.canBeFirstInStatement() && this.firstInStatement());
13857
+ return i.type === "NewExpression" && r === "callee" && i.callee === l ? _s(l) : !!(a !== !0 && !this.canBeFirstInStatement() && this.firstInStatement());
13848
13858
  };
13849
13859
  function Hr(a) {
13850
13860
  return ue.BinaryExpression.check(a) || ue.LogicalExpression.check(a);
13851
13861
  }
13852
- function Bs(a) {
13853
- return ue.CallExpression.check(a) ? !0 : Bo.check(a) ? a.some(Bs) : ue.Node.check(a) ? fo(
13862
+ function _s(a) {
13863
+ return ue.CallExpression.check(a) ? !0 : Bo.check(a) ? a.some(_s) : ue.Node.check(a) ? fo(
13854
13864
  a,
13855
- (l, i) => Bs(i)
13865
+ (l, i) => _s(i)
13856
13866
  ) : !1;
13857
13867
  }
13858
13868
  be.canBeFirstInStatement = function() {
@@ -13871,7 +13881,7 @@ be.firstInStatement = function() {
13871
13881
  }
13872
13882
  return !0;
13873
13883
  };
13874
- const Ct = Oe.Printable, dr = Oe.Expression, jo = Oe.ReturnStatement, Ro = Oe.SourceLocation, It = De.object, _s = De.array, Uo = De.string, es = /[0-9a-z_$]/i, Kr = function(l) {
13884
+ const Ct = Oe.Printable, dr = Oe.Expression, jo = Oe.ReturnStatement, Ro = Oe.SourceLocation, It = De.object, js = De.array, Uo = De.string, es = /[0-9a-z_$]/i, Kr = function(l) {
13875
13885
  const i = this, r = [];
13876
13886
  i.replace = function(o, u) {
13877
13887
  Uo.check(u) && (u = j(u)), r.push({
@@ -13885,10 +13895,10 @@ const Ct = Oe.Printable, dr = Oe.Expression, jo = Oe.ReturnStatement, Ro = Oe.So
13885
13895
  end: { line: l.length, column: l.getLineLength(l.length) }
13886
13896
  };
13887
13897
  let u = o.start, h = [];
13888
- function d(g, P) {
13889
- h.push(l.slice(g, P));
13898
+ function d(g, b) {
13899
+ h.push(l.slice(g, b));
13890
13900
  }
13891
- return r.sort((g, P) => ie(g.start, P.start)).forEach(function(g) {
13901
+ return r.sort((g, b) => ie(g.start, b.start)).forEach(function(g) {
13892
13902
  ie(u, g.start) > 0 || (d(u, g.start), h.push(g.lines), u = g.end);
13893
13903
  }), d(u, o.end), L(h);
13894
13904
  };
@@ -13901,12 +13911,12 @@ Xr.tryToReprintComments = function(a, l, i) {
13901
13911
  o.stack.push("comments", mr(a)), u.stack.push("comments", mr(l));
13902
13912
  const h = [], d = Qr(o, u, h);
13903
13913
  return d && h.length > 0 && h.forEach(function(g) {
13904
- const P = g.oldPath.getValue();
13914
+ const b = g.oldPath.getValue();
13905
13915
  r.replace(
13906
- P.loc,
13916
+ b.loc,
13907
13917
  // Comments can't have .comments, so it doesn't matter whether we
13908
13918
  // print with comments or without.
13909
- i(g.newPath).indentTail(P.loc.indent)
13919
+ i(g.newPath).indentTail(b.loc.indent)
13910
13920
  );
13911
13921
  }), d;
13912
13922
  };
@@ -13944,37 +13954,37 @@ function $o(a) {
13944
13954
  if (!(!o || !zo(a, u)))
13945
13955
  return function(h) {
13946
13956
  const d = new Kr(o);
13947
- u.forEach(function(P) {
13948
- const S = P.newPath.getValue(), v = P.oldPath.getValue();
13949
- Ro.assert(v.loc, !0);
13950
- const w = !d.tryToReprintComments(
13957
+ u.forEach(function(b) {
13958
+ const S = b.newPath.getValue(), w = b.oldPath.getValue();
13959
+ Ro.assert(w.loc, !0);
13960
+ const v = !d.tryToReprintComments(
13951
13961
  S,
13952
- v,
13962
+ w,
13953
13963
  h
13954
13964
  );
13955
- w && d.deleteComments(v);
13956
- let I = h(P.newPath, {
13957
- includeComments: w,
13965
+ v && d.deleteComments(w);
13966
+ let I = h(b.newPath, {
13967
+ includeComments: v,
13958
13968
  // If the oldNode we're replacing already had parentheses, we may
13959
13969
  // not need to print the new node with any extra parentheses,
13960
13970
  // because the existing parentheses will suffice. However, if the
13961
13971
  // newNode has a different type than the oldNode, let the printer
13962
13972
  // decide if reprint.newPath needs parentheses, as usual.
13963
- avoidRootParens: v.type === S.type && P.oldPath.hasParens()
13964
- }).indentTail(v.loc.indent);
13965
- const T = Vo(o, v.loc, I), A = qo(o, v.loc, I);
13973
+ avoidRootParens: w.type === S.type && b.oldPath.hasParens()
13974
+ }).indentTail(w.loc.indent);
13975
+ const T = Vo(o, w.loc, I), A = qo(o, w.loc, I);
13966
13976
  if (T || A) {
13967
- const b = [];
13968
- T && b.push(" "), b.push(I), A && b.push(" "), I = L(b);
13977
+ const P = [];
13978
+ T && P.push(" "), P.push(I), A && P.push(" "), I = L(P);
13969
13979
  }
13970
- d.replace(v.loc, I);
13980
+ d.replace(w.loc, I);
13971
13981
  });
13972
13982
  const g = d.get(r).indentTail(-i.loc.indent);
13973
13983
  return a.needsParens() ? L(["(", g, ")"]) : g;
13974
13984
  };
13975
13985
  }
13976
13986
  function Vo(a, l, i) {
13977
- const r = We(l.start), o = a.prevPos(r) && a.charAt(r), u = i.charAt(i.firstPos());
13987
+ const r = Je(l.start), o = a.prevPos(r) && a.charAt(r), u = i.charAt(i.firstPos());
13978
13988
  return o && es.test(o) && u && es.test(u);
13979
13989
  }
13980
13990
  function qo(a, l, i) {
@@ -13987,20 +13997,20 @@ function zo(a, l) {
13987
13997
  const r = i.original;
13988
13998
  if (Ct.assert(r), i.type !== r.type)
13989
13999
  return !1;
13990
- const o = new Le(r), u = js(a, o, l);
14000
+ const o = new Le(r), u = Rs(a, o, l);
13991
14001
  return u || (l.length = 0), u;
13992
14002
  }
13993
14003
  function Gr(a, l, i) {
13994
14004
  const r = a.getValue(), o = l.getValue();
13995
- return r === o ? !0 : _s.check(r) ? Qr(a, l, i) : It.check(r) ? Wo(a, l, i) : !1;
14005
+ return r === o ? !0 : js.check(r) ? Qr(a, l, i) : It.check(r) ? Wo(a, l, i) : !1;
13996
14006
  }
13997
14007
  function Qr(a, l, i) {
13998
14008
  const r = a.getValue(), o = l.getValue();
13999
14009
  if (r === o || a.valueIsDuplicate() || l.valueIsDuplicate())
14000
14010
  return !0;
14001
- _s.assert(r);
14011
+ js.assert(r);
14002
14012
  const u = r.length;
14003
- if (!(_s.check(o) && o.length === u))
14013
+ if (!(js.check(o) && o.length === u))
14004
14014
  return !1;
14005
14015
  for (let h = 0; h < u; ++h) {
14006
14016
  a.stack.push(h, r[h]), l.stack.push(h, o[h]);
@@ -14030,7 +14040,7 @@ function Wo(a, l, i) {
14030
14040
  }
14031
14041
  if (r.type === o.type) {
14032
14042
  const d = [];
14033
- if (js(a, l, d))
14043
+ if (Rs(a, l, d))
14034
14044
  i.push.apply(i, d);
14035
14045
  else if (o.loc)
14036
14046
  i.push({
@@ -14048,9 +14058,9 @@ function Wo(a, l, i) {
14048
14058
  newPath: a.copy()
14049
14059
  }), !0) : !1;
14050
14060
  }
14051
- return js(a, l, i);
14061
+ return Rs(a, l, i);
14052
14062
  }
14053
- function js(a, l, i) {
14063
+ function Rs(a, l, i) {
14054
14064
  const r = a.getValue(), o = l.getValue();
14055
14065
  if (It.assert(r), It.assert(o), r.original === null || a.needsParens() && !l.hasParens())
14056
14066
  return !1;
@@ -14078,7 +14088,7 @@ Ho.toString = function() {
14078
14088
  };
14079
14089
  const gr = new ts(""), Ko = function(l) {
14080
14090
  const i = l && l.tabWidth;
14081
- l = rs(l), l.sourceFileName = null;
14091
+ l = ns(l), l.sourceFileName = null;
14082
14092
  function r(u, h) {
14083
14093
  return u = Object.assign({}, u, h), (d) => o(d, u);
14084
14094
  }
@@ -14095,7 +14105,7 @@ const gr = new ts(""), Ko = function(l) {
14095
14105
  const S = u.getNode().loc;
14096
14106
  S && S.lines && S.lines.guessTabWidth && (l.tabWidth = S.lines.guessTabWidth());
14097
14107
  }
14098
- const g = $o(u), P = g ? (
14108
+ const g = $o(u), b = g ? (
14099
14109
  // Since the print function that we pass to the reprinter will
14100
14110
  // be used to print "new" nodes, it's tempting to think we
14101
14111
  // should pass printRootGenerically instead of print, to avoid
@@ -14114,7 +14124,7 @@ const gr = new ts(""), Ko = function(l) {
14114
14124
  avoidRootParens: !1
14115
14125
  })
14116
14126
  );
14117
- return l.tabWidth = d, P;
14127
+ return l.tabWidth = d, b;
14118
14128
  }
14119
14129
  this.print = function(u) {
14120
14130
  if (!u)
@@ -14136,8 +14146,8 @@ const gr = new ts(""), Ko = function(l) {
14136
14146
  function h(S) {
14137
14147
  return fr(
14138
14148
  S,
14139
- (v) => xr(
14140
- v,
14149
+ (w) => xr(
14150
+ w,
14141
14151
  l,
14142
14152
  {
14143
14153
  avoidRootParens: !1
@@ -14148,8 +14158,8 @@ const gr = new ts(""), Ko = function(l) {
14148
14158
  }
14149
14159
  const d = Le.from(u), g = l.reuseWhitespace;
14150
14160
  l.reuseWhitespace = !1;
14151
- const P = new ts(h(d).toString(l));
14152
- return l.reuseWhitespace = g, P;
14161
+ const b = new ts(h(d).toString(l));
14162
+ return l.reuseWhitespace = g, b;
14153
14163
  };
14154
14164
  };
14155
14165
  function xr(a, l, i, r) {
@@ -14177,7 +14187,7 @@ function Xo(a, l, i) {
14177
14187
  `);
14178
14188
  }, "directives"), r.interpreter && o.push(a.call(i, "interpreter")), o.push(
14179
14189
  a.call(
14180
- (u) => at(u, l, i),
14190
+ (u) => lt(u, l, i),
14181
14191
  "body"
14182
14192
  )
14183
14193
  ), L(o);
@@ -14259,7 +14269,7 @@ function Xo(a, l, i) {
14259
14269
  a.call(i, "returnType")
14260
14270
  ), o.push(" => ", a.call(i, "body")), L(o);
14261
14271
  case "MethodDefinition":
14262
- return Cs(a, l, i);
14272
+ return Is(a, l, i);
14263
14273
  case "YieldExpression":
14264
14274
  return o.push("yield"), r.delegate && o.push("*"), r.argument && o.push(" ", a.call(i, "argument")), L(o);
14265
14275
  case "AwaitExpression":
@@ -14334,7 +14344,7 @@ function Xo(a, l, i) {
14334
14344
  o.push("static ");
14335
14345
  case "BlockStatement": {
14336
14346
  const u = a.call(
14337
- (h) => at(h, l, i),
14347
+ (h) => lt(h, l, i),
14338
14348
  "body"
14339
14349
  );
14340
14350
  return u.isEmpty() && (!r.directives || r.directives.length === 0) ? (o.push("{}"), L(o)) : (o.push(`{
@@ -14367,33 +14377,33 @@ function Xo(a, l, i) {
14367
14377
  const u = r.type === "ObjectTypeAnnotation", h = l.flowObjectCommas ? "," : u ? ";" : ",", d = [];
14368
14378
  let g = !1;
14369
14379
  u && (d.push("indexers", "callProperties"), r.internalSlots != null && d.push("internalSlots")), d.push("properties");
14370
- let P = 0;
14380
+ let b = 0;
14371
14381
  d.forEach(function(A) {
14372
- P += r[A].length;
14382
+ b += r[A].length;
14373
14383
  });
14374
- const S = u && P === 1 || P === 0, v = r.exact ? "{|" : "{", w = r.exact ? "|}" : "}";
14375
- o.push(S ? v : v + `
14384
+ const S = u && b === 1 || b === 0, w = r.exact ? "{|" : "{", v = r.exact ? "|}" : "}";
14385
+ o.push(S ? w : w + `
14376
14386
  `);
14377
14387
  const I = o.length - 1;
14378
14388
  let T = 0;
14379
14389
  if (d.forEach(function(A) {
14380
- a.each(function(b) {
14381
- let m = i(b);
14390
+ a.each(function(P) {
14391
+ let m = i(P);
14382
14392
  S || (m = m.indent(l.tabWidth));
14383
14393
  const O = !u && m.length > 1;
14384
14394
  O && g && o.push(`
14385
- `), o.push(m), T < P - 1 ? (o.push(h + (O ? `
14395
+ `), o.push(m), T < b - 1 ? (o.push(h + (O ? `
14386
14396
 
14387
14397
  ` : `
14388
- `)), g = !O) : (P !== 1 && u || !S && wt(l, "objects") && b.getValue().type !== "RestElement") && o.push(h), T++;
14398
+ `)), g = !O) : (b !== 1 && u || !S && vt(l, "objects") && P.getValue().type !== "RestElement") && o.push(h), T++;
14389
14399
  }, A);
14390
14400
  }), r.inexact) {
14391
14401
  const A = j("...", l);
14392
- S ? (P > 0 && o.push(h, " "), o.push(A)) : o.push(`
14402
+ S ? (b > 0 && o.push(h, " "), o.push(A)) : o.push(`
14393
14403
  `, A.indent(l.tabWidth));
14394
14404
  }
14395
- return o.push(S ? w : `
14396
- ` + w), T !== 0 && S && l.objectCurlySpacing && (o[I] = v + " ", o[o.length - 1] = " " + w), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), L(o);
14405
+ return o.push(S ? v : `
14406
+ ` + v), T !== 0 && S && l.objectCurlySpacing && (o[I] = w + " ", o[o.length - 1] = " " + v), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), L(o);
14397
14407
  }
14398
14408
  case "PropertyPattern":
14399
14409
  return L([
@@ -14404,7 +14414,7 @@ function Xo(a, l, i) {
14404
14414
  case "ObjectProperty":
14405
14415
  case "Property": {
14406
14416
  if (r.method || r.kind === "get" || r.kind === "set")
14407
- return Cs(a, l, i);
14417
+ return Is(a, l, i);
14408
14418
  if (r.shorthand && r.value.type === "AssignmentPattern")
14409
14419
  return a.call(i, "value");
14410
14420
  const u = a.call(i, "key");
@@ -14414,7 +14424,7 @@ function Xo(a, l, i) {
14414
14424
  case "ObjectMethod":
14415
14425
  case "ClassPrivateMethod":
14416
14426
  case "TSDeclareMethod":
14417
- return Cs(a, l, i);
14427
+ return Is(a, l, i);
14418
14428
  case "PrivateName":
14419
14429
  return L(["#", a.call(i, "id")]);
14420
14430
  case "Decorator":
@@ -14423,18 +14433,18 @@ function Xo(a, l, i) {
14423
14433
  o.push("#");
14424
14434
  case "ArrayExpression":
14425
14435
  case "ArrayPattern": {
14426
- const h = r.elements.length, d = a.map(i, "elements"), P = j(", ").join(d).getLineLength(1) <= l.wrapColumn;
14427
- return P ? l.arrayBracketSpacing ? o.push("[ ") : o.push("[") : o.push(`[
14436
+ const h = r.elements.length, d = a.map(i, "elements"), b = j(", ").join(d).getLineLength(1) <= l.wrapColumn;
14437
+ return b ? l.arrayBracketSpacing ? o.push("[ ") : o.push("[") : o.push(`[
14428
14438
  `), a.each(function(S) {
14429
- const v = S.getName();
14439
+ const w = S.getName();
14430
14440
  if (!S.getValue())
14431
14441
  o.push(",");
14432
14442
  else {
14433
- let I = d[v];
14434
- P ? v > 0 && o.push(" ") : I = I.indent(l.tabWidth), o.push(I), (v < h - 1 || !P && wt(l, "arrays")) && o.push(","), P || o.push(`
14443
+ let I = d[w];
14444
+ b ? w > 0 && o.push(" ") : I = I.indent(l.tabWidth), o.push(I), (w < h - 1 || !b && vt(l, "arrays")) && o.push(","), b || o.push(`
14435
14445
  `);
14436
14446
  }
14437
- }, "elements"), P && l.arrayBracketSpacing ? o.push(" ]") : o.push("]"), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), L(o);
14447
+ }, "elements"), b && l.arrayBracketSpacing ? o.push(" ]") : o.push("]"), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), L(o);
14438
14448
  }
14439
14449
  case "SequenceExpression":
14440
14450
  return j(", ").join(a.map(i, "expressions"));
@@ -14446,28 +14456,28 @@ function Xo(a, l, i) {
14446
14456
  return j("null");
14447
14457
  case "RegExpLiteral":
14448
14458
  return j(
14449
- ot(r) || `/${r.pattern}/${r.flags || ""}`,
14459
+ ct(r) || `/${r.pattern}/${r.flags || ""}`,
14450
14460
  l
14451
14461
  );
14452
14462
  case "BigIntLiteral":
14453
- return j(ot(r) || r.value + "n", l);
14463
+ return j(ct(r) || r.value + "n", l);
14454
14464
  case "NumericLiteral":
14455
- return j(ot(r) || r.value, l);
14465
+ return j(ct(r) || r.value, l);
14456
14466
  case "DecimalLiteral":
14457
- return j(ot(r) || r.value + "m", l);
14467
+ return j(ct(r) || r.value + "m", l);
14458
14468
  case "StringLiteral":
14459
- return j(St(r.value, l));
14469
+ return j(Et(r.value, l));
14460
14470
  case "BooleanLiteral":
14461
14471
  case "Literal":
14462
14472
  return j(
14463
- ot(r) || (typeof r.value == "string" ? St(r.value, l) : r.value),
14473
+ ct(r) || (typeof r.value == "string" ? Et(r.value, l) : r.value),
14464
14474
  l
14465
14475
  );
14466
14476
  case "Directive":
14467
14477
  return a.call(i, "value");
14468
14478
  case "DirectiveLiteral":
14469
14479
  return j(
14470
- ot(r) || St(r.value, l),
14480
+ ct(r) || Et(r.value, l),
14471
14481
  l
14472
14482
  );
14473
14483
  case "InterpreterDirective":
@@ -14476,7 +14486,7 @@ function Xo(a, l, i) {
14476
14486
  case "ModuleSpecifier":
14477
14487
  if (r.local)
14478
14488
  throw new Error("The ESTree ModuleSpecifier type should be abstract");
14479
- return j(St(r.value, l), l);
14489
+ return j(Et(r.value, l), l);
14480
14490
  case "UnaryExpression":
14481
14491
  return o.push(r.operator), /[a-z]$/.test(r.operator) && o.push(" "), o.push(a.call(i, "argument")), L(o);
14482
14492
  case "UpdateExpression":
@@ -14495,8 +14505,8 @@ function Xo(a, l, i) {
14495
14505
  r.declare && o.push("declare "), o.push(r.kind, " ");
14496
14506
  let u = 0;
14497
14507
  const h = a.map(function(g) {
14498
- const P = i(g);
14499
- return u = Math.max(P.length, u), P;
14508
+ const b = i(g);
14509
+ return u = Math.max(b.length, u), b;
14500
14510
  }, "declarations");
14501
14511
  u === 1 ? o.push(j(", ").join(h)) : h.length > 1 ? o.push(
14502
14512
  j(`,
@@ -14518,18 +14528,18 @@ function Xo(a, l, i) {
14518
14528
  a.call(i, "body")
14519
14529
  ]);
14520
14530
  case "IfStatement": {
14521
- const u = Xe(a.call(i, "consequent"), l);
14531
+ const u = Ge(a.call(i, "consequent"), l);
14522
14532
  return o.push("if (", a.call(i, "test"), ")", u), r.alternate && o.push(
14523
14533
  Tr(u) ? " else" : `
14524
14534
  else`,
14525
- Xe(a.call(i, "alternate"), l)
14535
+ Ge(a.call(i, "alternate"), l)
14526
14536
  ), L(o);
14527
14537
  }
14528
14538
  case "ForStatement": {
14529
14539
  const u = a.call(i, "init"), h = u.length > 1 ? `;
14530
- ` : "; ", d = "for (", g = j(h).join([u, a.call(i, "test"), a.call(i, "update")]).indentTail(d.length), P = L([d, g, ")"]);
14531
- let S = Xe(a.call(i, "body"), l);
14532
- return o.push(P), P.length > 1 && (o.push(`
14540
+ ` : "; ", d = "for (", g = j(h).join([u, a.call(i, "test"), a.call(i, "update")]).indentTail(d.length), b = L([d, g, ")"]);
14541
+ let S = Ge(a.call(i, "body"), l);
14542
+ return o.push(b), b.length > 1 && (o.push(`
14533
14543
  `), S = S.trimLeft()), o.push(S), L(o);
14534
14544
  }
14535
14545
  case "WhileStatement":
@@ -14537,7 +14547,7 @@ else`,
14537
14547
  "while (",
14538
14548
  a.call(i, "test"),
14539
14549
  ")",
14540
- Xe(a.call(i, "body"), l)
14550
+ Ge(a.call(i, "body"), l)
14541
14551
  ]);
14542
14552
  case "ForInStatement":
14543
14553
  return L([
@@ -14546,7 +14556,7 @@ else`,
14546
14556
  " in ",
14547
14557
  a.call(i, "right"),
14548
14558
  ")",
14549
- Xe(a.call(i, "body"), l)
14559
+ Ge(a.call(i, "body"), l)
14550
14560
  ]);
14551
14561
  case "ForOfStatement":
14552
14562
  case "ForAwaitStatement":
@@ -14556,19 +14566,19 @@ else`,
14556
14566
  " of ",
14557
14567
  a.call(i, "right"),
14558
14568
  ")",
14559
- Xe(a.call(i, "body"), l)
14569
+ Ge(a.call(i, "body"), l)
14560
14570
  ), L(o);
14561
14571
  case "DoWhileStatement": {
14562
14572
  const u = L([
14563
14573
  "do",
14564
- Xe(a.call(i, "body"), l)
14574
+ Ge(a.call(i, "body"), l)
14565
14575
  ]);
14566
14576
  return o.push(u), Tr(u) ? o.push(" while") : o.push(`
14567
14577
  while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14568
14578
  }
14569
14579
  case "DoExpression": {
14570
14580
  const u = a.call(
14571
- (h) => at(h, l, i),
14581
+ (h) => lt(h, l, i),
14572
14582
  "body"
14573
14583
  );
14574
14584
  return L([`do {
@@ -14610,7 +14620,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14610
14620
  `
14611
14621
  `,
14612
14622
  a.call(
14613
- (u) => at(u, l, i),
14623
+ (u) => lt(u, l, i),
14614
14624
  "consequent"
14615
14625
  ).indent(l.tabWidth)
14616
14626
  ), L(o);
@@ -14643,18 +14653,18 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14643
14653
  return d;
14644
14654
  const g = L(
14645
14655
  a.map(function(S) {
14646
- const v = S.getValue();
14647
- if (de.Literal.check(v) && typeof v.value == "string") {
14648
- if (/\S/.test(v.value))
14649
- return v.value.replace(/^\s+|\s+$/g, "");
14650
- if (/\n/.test(v.value))
14656
+ const w = S.getValue();
14657
+ if (de.Literal.check(w) && typeof w.value == "string") {
14658
+ if (/\S/.test(w.value))
14659
+ return w.value.replace(/^\s+|\s+$/g, "");
14660
+ if (/\n/.test(w.value))
14651
14661
  return `
14652
14662
  `;
14653
14663
  }
14654
14664
  return i(S);
14655
14665
  }, "children")
14656
- ).indentTail(l.tabWidth), P = a.call(i, h);
14657
- return L([d, g, P]);
14666
+ ).indentTail(l.tabWidth), b = a.call(i, h);
14667
+ return L([d, g, b]);
14658
14668
  }
14659
14669
  case "JSXOpeningElement": {
14660
14670
  o.push("<", a.call(i, "name"));
@@ -14663,8 +14673,8 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14663
14673
  u.push(" ", i(g));
14664
14674
  }, "attributes");
14665
14675
  let h = L(u);
14666
- return (h.length > 1 || h.getLineLength(1) > l.wrapColumn) && (u.forEach(function(g, P) {
14667
- g === " " && (u[P] = `
14676
+ return (h.length > 1 || h.getLineLength(1) > l.wrapColumn) && (u.forEach(function(g, b) {
14677
+ g === " " && (u[b] = `
14668
14678
  `);
14669
14679
  }), h = L(u).indentTail(l.tabWidth)), o.push(h, r.selfClosing ? " />" : ">"), L(o);
14670
14680
  }
@@ -14689,7 +14699,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14689
14699
  `{
14690
14700
  `,
14691
14701
  a.call(
14692
- (u) => at(u, l, i),
14702
+ (u) => lt(u, l, i),
14693
14703
  "body"
14694
14704
  ).indent(l.tabWidth),
14695
14705
  `
@@ -14702,7 +14712,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14702
14712
  const u = r.accessibility || r.access;
14703
14713
  typeof u == "string" && o.push(u, " "), r.static && o.push("static "), r.abstract && o.push("abstract "), r.readonly && o.push("readonly ");
14704
14714
  let h = a.call(i, "key");
14705
- return r.computed && (h = L(["[", h, "]"])), r.variance && (h = L([Tt(a, i), h])), o.push(h), r.optional && o.push("?"), r.definite && o.push("!"), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), r.value && o.push(" = ", a.call(i, "value")), o.push(";"), L(o);
14715
+ return r.computed && (h = L(["[", h, "]"])), r.variance && (h = L([St(a, i), h])), o.push(h), r.optional && o.push("?"), r.definite && o.push("!"), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), r.value && o.push(" = ", a.call(i, "value")), o.push(";"), L(o);
14706
14716
  }
14707
14717
  case "ClassPrivateProperty":
14708
14718
  return r.static && o.push("static "), o.push(a.call(i, "key")), r.typeAnnotation && o.push(a.call(i, "typeAnnotation")), r.value && o.push(" = ", a.call(i, "value")), o.push(";"), L(o);
@@ -14724,7 +14734,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14724
14734
  ), r.implements && r.implements.length > 0 && o.push(
14725
14735
  " implements ",
14726
14736
  j(", ").join(a.map(i, "implements"))
14727
- ), o.push(" ", a.call(i, "body")), r.type === "DeclareClass" ? Pt(a, o) : L(o);
14737
+ ), o.push(" ", a.call(i, "body")), r.type === "DeclareClass" ? Tt(a, o) : L(o);
14728
14738
  case "TemplateElement":
14729
14739
  return j(r.value.raw, l).lockIndentTail();
14730
14740
  case "TemplateLiteral": {
@@ -14781,12 +14791,12 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14781
14791
  const u = a.map(i, "types"), d = j(", ").join(u).getLineLength(1) <= l.wrapColumn;
14782
14792
  return d ? l.arrayBracketSpacing ? o.push("[ ") : o.push("[") : o.push(`[
14783
14793
  `), a.each(function(g) {
14784
- const P = g.getName();
14794
+ const b = g.getName();
14785
14795
  if (!g.getValue())
14786
14796
  o.push(",");
14787
14797
  else {
14788
- let v = u[P];
14789
- d ? P > 0 && o.push(" ") : v = v.indent(l.tabWidth), o.push(v), (P < r.types.length - 1 || !d && wt(l, "arrays")) && o.push(","), d || o.push(`
14798
+ let w = u[b];
14799
+ d ? b > 0 && o.push(" ") : w = w.indent(l.tabWidth), o.push(w), (b < r.types.length - 1 || !d && vt(l, "arrays")) && o.push(","), d || o.push(`
14790
14800
  `);
14791
14801
  }
14792
14802
  }, "types"), d && l.arrayBracketSpacing ? o.push(" ]") : o.push("]"), L(o);
@@ -14801,25 +14811,25 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14801
14811
  j(", ").join(a.map(i, "extends"))
14802
14812
  ), o.push(" ", a.call(i, "body")), L(o);
14803
14813
  case "DeclareFunction":
14804
- return Pt(a, [
14814
+ return Tt(a, [
14805
14815
  "function ",
14806
14816
  a.call(i, "id"),
14807
14817
  ";"
14808
14818
  ]);
14809
14819
  case "DeclareModule":
14810
- return Pt(a, [
14820
+ return Tt(a, [
14811
14821
  "module ",
14812
14822
  a.call(i, "id"),
14813
14823
  " ",
14814
14824
  a.call(i, "body")
14815
14825
  ]);
14816
14826
  case "DeclareModuleExports":
14817
- return Pt(a, [
14827
+ return Tt(a, [
14818
14828
  "module.exports",
14819
14829
  a.call(i, "typeAnnotation")
14820
14830
  ]);
14821
14831
  case "DeclareVariable":
14822
- return Pt(a, ["var ", a.call(i, "id"), ";"]);
14832
+ return Tt(a, ["var ", a.call(i, "id"), ";"]);
14823
14833
  case "DeclareExportDeclaration":
14824
14834
  case "DeclareExportAllDeclaration":
14825
14835
  return L(["declare ", Pr(a, l, i)]);
@@ -14863,12 +14873,12 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14863
14873
  case "FunctionTypeAnnotation": {
14864
14874
  const u = a.getParentNode(0), h = !(de.ObjectTypeCallProperty.check(u) || de.ObjectTypeInternalSlot.check(u) && u.method || de.DeclareFunction.check(a.getParentNode(2)));
14865
14875
  h && !de.FunctionTypeParam.check(u) && !de.TypeAlias.check(u) && o.push(": ");
14866
- const g = !!r.typeParameters, P = g || r.params.length !== 1 || r.params[0].name;
14876
+ const g = !!r.typeParameters, b = g || r.params.length !== 1 || r.params[0].name;
14867
14877
  return o.push(
14868
14878
  g ? a.call(i, "typeParameters") : "",
14869
- P ? "(" : "",
14879
+ b ? "(" : "",
14870
14880
  Me(a, l, i),
14871
- P ? ")" : ""
14881
+ b ? ")" : ""
14872
14882
  ), r.returnType && o.push(
14873
14883
  h ? " => " : ": ",
14874
14884
  a.call(i, "returnType")
@@ -14916,10 +14926,10 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14916
14926
  case "ObjectTypeCallProperty":
14917
14927
  return a.call(i, "value");
14918
14928
  case "ObjectTypeIndexer":
14919
- return r.static && o.push("static "), o.push(Tt(a, i), "["), r.id && o.push(a.call(i, "id"), ": "), o.push(a.call(i, "key"), "]: ", a.call(i, "value")), L(o);
14929
+ return r.static && o.push("static "), o.push(St(a, i), "["), r.id && o.push(a.call(i, "id"), ": "), o.push(a.call(i, "key"), "]: ", a.call(i, "value")), L(o);
14920
14930
  case "ObjectTypeProperty":
14921
14931
  return L([
14922
- Tt(a, i),
14932
+ St(a, i),
14923
14933
  a.call(i, "key"),
14924
14934
  r.optional ? "?" : "",
14925
14935
  ": ",
@@ -14942,7 +14952,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14942
14952
  a.call(i, "id")
14943
14953
  ]);
14944
14954
  case "StringLiteralTypeAnnotation":
14945
- return j(St(r.value, l), l);
14955
+ return j(Et(r.value, l), l);
14946
14956
  case "NumberLiteralTypeAnnotation":
14947
14957
  case "NumericLiteralTypeAnnotation":
14948
14958
  return j(JSON.stringify(r.value), l);
@@ -14986,7 +14996,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
14986
14996
  case "Variance":
14987
14997
  return r.kind === "plus" ? j("+") : r.kind === "minus" ? j("-") : j("");
14988
14998
  case "TypeParameter":
14989
- return r.variance && o.push(Tt(a, i)), o.push(a.call(i, "name")), r.bound && o.push(a.call(i, "bound")), r.default && o.push("=", a.call(i, "default")), L(o);
14999
+ return r.variance && o.push(St(a, i)), o.push(a.call(i, "name")), r.bound && o.push(a.call(i, "bound")), r.default && o.push("=", a.call(i, "default")), L(o);
14990
15000
  case "TypeofTypeAnnotation":
14991
15001
  return L([
14992
15002
  j("typeof ", l),
@@ -15164,7 +15174,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
15164
15174
  a.call(i, "typeAnnotation")
15165
15175
  ]);
15166
15176
  case "TSPropertySignature":
15167
- return o.push(Tt(a, i), r.readonly ? "readonly " : ""), r.computed ? o.push("[", a.call(i, "key"), "]") : o.push(a.call(i, "key")), o.push(r.optional ? "?" : "", a.call(i, "typeAnnotation")), L(o);
15177
+ return o.push(St(a, i), r.readonly ? "readonly " : ""), r.computed ? o.push("[", a.call(i, "key"), "]") : o.push(a.call(i, "key")), o.push(r.optional ? "?" : "", a.call(i, "typeAnnotation")), L(o);
15168
15178
  case "TSMethodSignature":
15169
15179
  return r.computed ? o.push("[", a.call(i, "key"), "]") : o.push(a.call(i, "key")), r.optional && o.push("?"), o.push(
15170
15180
  a.call(i, "typeParameters"),
@@ -15267,7 +15277,7 @@ while`), o.push(" (", a.call(i, "test"), ");"), L(o);
15267
15277
  return a.getParentNode().type === "TSModuleDeclaration" ? o.push(".") : (r.declare && o.push("declare "), r.global || (r.id.type === "StringLiteral" || r.id.type === "Literal" && typeof r.id.value == "string" || r.loc && r.loc.lines && r.id.loc && r.loc.lines.sliceString(r.loc.start, r.id.loc.start).indexOf("module") >= 0 ? o.push("module ") : o.push("namespace "))), o.push(a.call(i, "id")), r.body && (o.push(" "), o.push(a.call(i, "body"))), L(o);
15268
15278
  case "TSModuleBlock": {
15269
15279
  const u = a.call(
15270
- (h) => at(h, l, i),
15280
+ (h) => lt(h, l, i),
15271
15281
  "body"
15272
15282
  );
15273
15283
  return u.isEmpty() ? o.push("{}") : o.push(`{
@@ -15323,7 +15333,7 @@ function Go(a, l) {
15323
15333
  !_r(a) ? a.each(function(o) {
15324
15334
  i.push(l(o), `
15325
15335
  `);
15326
- }, "decorators") : is(r) && r.declaration && r.declaration.decorators && a.each(
15336
+ }, "decorators") : rs(r) && r.declaration && r.declaration.decorators && a.each(
15327
15337
  function(o) {
15328
15338
  i.push(l(o), `
15329
15339
  `);
@@ -15332,7 +15342,7 @@ function Go(a, l) {
15332
15342
  "decorators"
15333
15343
  ), L(i);
15334
15344
  }
15335
- function at(a, l, i) {
15345
+ function lt(a, l, i) {
15336
15346
  const r = [];
15337
15347
  a.each(function(d) {
15338
15348
  const g = d.getValue();
@@ -15344,16 +15354,16 @@ function at(a, l, i) {
15344
15354
  let o = null;
15345
15355
  const u = r.length, h = [];
15346
15356
  return r.forEach(function(d, g) {
15347
- const P = d.printed, S = d.node, v = P.length > 1, w = g > 0, I = g < u - 1;
15357
+ const b = d.printed, S = d.node, w = b.length > 1, v = g > 0, I = g < u - 1;
15348
15358
  let T, A;
15349
- const b = S && S.loc && S.loc.lines, m = b && l.reuseWhitespace && Br(S, b);
15350
- if (w)
15359
+ const P = S && S.loc && S.loc.lines, m = P && l.reuseWhitespace && Br(S, P);
15360
+ if (v)
15351
15361
  if (m) {
15352
- const O = b.skipSpaces(m.start, !0), U = O ? O.line : 1, D = m.start.line - U;
15362
+ const O = P.skipSpaces(m.start, !0), U = O ? O.line : 1, D = m.start.line - U;
15353
15363
  T = Array(D + 1).join(`
15354
15364
  `);
15355
15365
  } else
15356
- T = v ? `
15366
+ T = w ? `
15357
15367
 
15358
15368
  ` : `
15359
15369
  `;
@@ -15361,17 +15371,17 @@ function at(a, l, i) {
15361
15371
  T = "";
15362
15372
  if (I)
15363
15373
  if (m) {
15364
- const O = b.skipSpaces(m.end), D = (O ? O.line : b.length) - m.end.line;
15374
+ const O = P.skipSpaces(m.end), D = (O ? O.line : P.length) - m.end.line;
15365
15375
  A = Array(D + 1).join(`
15366
15376
  `);
15367
15377
  } else
15368
- A = v ? `
15378
+ A = w ? `
15369
15379
 
15370
15380
  ` : `
15371
15381
  `;
15372
15382
  else
15373
15383
  A = "";
15374
- h.push(Qo(o, T), P), I ? o = A : A && h.push(A);
15384
+ h.push(Qo(o, T), b), I ? o = A : A && h.push(A);
15375
15385
  }), L(h);
15376
15386
  }
15377
15387
  function Qo(a, l) {
@@ -15390,7 +15400,7 @@ function Yr(a) {
15390
15400
  const i = a.accessibility || a.access;
15391
15401
  return typeof i == "string" && l.push(i, " "), a.static && l.push("static "), a.override && l.push("override "), a.abstract && l.push("abstract "), a.readonly && l.push("readonly "), l;
15392
15402
  }
15393
- function Cs(a, l, i) {
15403
+ function Is(a, l, i) {
15394
15404
  const r = a.getNode(), o = r.kind, u = [];
15395
15405
  let h = r.value;
15396
15406
  de.FunctionExpression.check(h) || (h = r), u.push(...Yr(r)), h.async && u.push("async "), h.generator && u.push("*"), (o === "get" || o === "set") && u.push(o, " ");
@@ -15413,7 +15423,7 @@ function Cs(a, l, i) {
15413
15423
  ), h.body ? u.push(" ", a.call(i, "value", "body")) : u.push(";")), L(u);
15414
15424
  }
15415
15425
  function br(a, l, i) {
15416
- const r = a.map(i, "arguments"), o = wt(l, "parameters");
15426
+ const r = a.map(i, "arguments"), o = vt(l, "parameters");
15417
15427
  let u = j(", ").join(r);
15418
15428
  return u.getLineLength(1) > l.wrapColumn ? (u = j(`,
15419
15429
  `).join(r), L([
@@ -15429,12 +15439,12 @@ function Me(a, l, i) {
15429
15439
  const r = a.getValue();
15430
15440
  let o, u = [];
15431
15441
  r.params ? (o = r.params, u = a.map(i, "params")) : r.parameters && (o = r.parameters, u = a.map(i, "parameters")), r.defaults && a.each(function(d) {
15432
- const g = d.getName(), P = u[g];
15433
- P && d.getValue() && (u[g] = L([P, " = ", i(d)]));
15442
+ const g = d.getName(), b = u[g];
15443
+ b && d.getValue() && (u[g] = L([b, " = ", i(d)]));
15434
15444
  }, "defaults"), r.rest && u.push(L(["...", a.call(i, "rest")]));
15435
15445
  let h = j(", ").join(u);
15436
15446
  return h.length > 1 || h.getLineLength(1) > l.wrapColumn ? (h = j(`,
15437
- `).join(u), wt(l, "parameters") && !r.rest && o[o.length - 1].type !== "RestElement" ? h = L([h, `,
15447
+ `).join(u), vt(l, "parameters") && !r.rest && o[o.length - 1].type !== "RestElement" ? h = L([h, `,
15438
15448
  `]) : h = L([h, `
15439
15449
  `]), L([`
15440
15450
  `, h.indent(l.tabWidth)])) : h;
@@ -15467,19 +15477,19 @@ function Pr(a, l, i) {
15467
15477
  o.push("{}");
15468
15478
  else if (r.specifiers[0].type === "ExportDefaultSpecifier") {
15469
15479
  const d = [], g = [];
15470
- if (a.each(function(P) {
15471
- P.getValue().type === "ExportDefaultSpecifier" ? d.push(i(P)) : g.push(i(P));
15472
- }, "specifiers"), d.forEach((P, S) => {
15473
- S > 0 && o.push(", "), o.push(P);
15480
+ if (a.each(function(b) {
15481
+ b.getValue().type === "ExportDefaultSpecifier" ? d.push(i(b)) : g.push(i(b));
15482
+ }, "specifiers"), d.forEach((b, S) => {
15483
+ S > 0 && o.push(", "), o.push(b);
15474
15484
  }), g.length > 0) {
15475
- let P = j(", ").join(g);
15476
- P.getLineLength(1) > l.wrapColumn && (P = L([
15485
+ let b = j(", ").join(g);
15486
+ b.getLineLength(1) > l.wrapColumn && (b = L([
15477
15487
  j(`,
15478
15488
  `).join(g).indent(l.tabWidth),
15479
15489
  ","
15480
- ])), d.length > 0 && o.push(", "), P.length > 1 ? o.push(`{
15481
- `, P, `
15482
- }`) : l.objectCurlySpacing ? o.push("{ ", P, " }") : o.push("{", P, "}");
15490
+ ])), d.length > 0 && o.push(", "), b.length > 1 ? o.push(`{
15491
+ `, b, `
15492
+ }`) : l.objectCurlySpacing ? o.push("{ ", b, " }") : o.push("{", b, "}");
15483
15493
  }
15484
15494
  } else
15485
15495
  o.push(
@@ -15496,16 +15506,16 @@ function Pr(a, l, i) {
15496
15506
  let h = L(o);
15497
15507
  return Nt(h) !== ";" && !(r.declaration && (r.declaration.type === "FunctionDeclaration" || r.declaration.type === "ClassDeclaration" || r.declaration.type === "TSModuleDeclaration" || r.declaration.type === "TSInterfaceDeclaration" || r.declaration.type === "TSEnumDeclaration")) && (h = L([h, ";"])), h;
15498
15508
  }
15499
- function Pt(a, l) {
15509
+ function Tt(a, l) {
15500
15510
  return _r(a) || l.unshift("declare "), L(l);
15501
15511
  }
15502
- function Tt(a, l) {
15512
+ function St(a, l) {
15503
15513
  return a.call(function(i) {
15504
15514
  const r = i.getValue();
15505
15515
  return r ? r === "plus" ? j("+") : r === "minus" ? j("-") : l(i) : j("");
15506
15516
  }, "variance");
15507
15517
  }
15508
- function Xe(a, l) {
15518
+ function Ge(a, l) {
15509
15519
  return a.length > 1 ? L([" ", a]) : L([`
15510
15520
  `, Yt(a).indent(l.tabWidth)]);
15511
15521
  }
@@ -15523,7 +15533,7 @@ function Tr(a) {
15523
15533
  function Kt(a) {
15524
15534
  return a.replace(/['"]/g, (l) => l === '"' ? "'" : '"');
15525
15535
  }
15526
- function ot(a) {
15536
+ function ct(a) {
15527
15537
  const l = je(a, "value"), i = je(a, "extra");
15528
15538
  if (i && typeof i.raw == "string" && l == i.rawValue)
15529
15539
  return i.raw;
@@ -15538,7 +15548,7 @@ function Xt(a) {
15538
15548
  return "\\u" + l.charCodeAt(0).toString(16);
15539
15549
  });
15540
15550
  }
15541
- function St(a, l) {
15551
+ function Et(a, l) {
15542
15552
  switch (zs.assert(a), l.quote) {
15543
15553
  case "auto": {
15544
15554
  const i = Xt(a), r = Kt(Xt(Kt(a)));
@@ -15629,8 +15639,8 @@ class Ae extends Error {
15629
15639
  constructor(l, i) {
15630
15640
  if (super(""), Sr(this, "rawMessage"), Sr(this, "options"), this.name = "MagicastError", this.rawMessage = l, this.options = i, i?.ast && i?.code && i.ast.loc) {
15631
15641
  const { line: r, column: o } = i.ast.loc.start, u = i.code.split(`
15632
- `), h = Math.max(0, r - 3), d = Math.min(u.length, r + 3), g = u.slice(h, d).map((P, S) => (P = `${(h + S + 1).toString().padStart(3, " ")} | ${P}`, h + S === r - 1 && (P += `
15633
- ${" ".repeat(6 + o)}^`), P));
15642
+ `), h = Math.max(0, r - 3), d = Math.min(u.length, r + 3), g = u.slice(h, d).map((b, S) => (b = `${(h + S + 1).toString().padStart(3, " ")} | ${b}`, h + S === r - 1 && (b += `
15643
+ ${" ".repeat(6 + o)}^`), b));
15634
15644
  l += `
15635
15645
 
15636
15646
  ${g.join(`
@@ -15733,10 +15743,10 @@ function Ie(a, l, i) {
15733
15743
  }
15734
15744
  );
15735
15745
  }
15736
- const Ee = Dt, Is = /* @__PURE__ */ new WeakMap();
15746
+ const Ee = Dt, Ns = /* @__PURE__ */ new WeakMap();
15737
15747
  function ol(a, l, i) {
15738
- if (Is.has(l))
15739
- return Is.get(l);
15748
+ if (Ns.has(l))
15749
+ return Ns.get(l);
15740
15750
  const r = Ie(
15741
15751
  l,
15742
15752
  {
@@ -15790,7 +15800,7 @@ function ol(a, l, i) {
15790
15800
  }
15791
15801
  }
15792
15802
  );
15793
- return Is.set(l, r), r;
15803
+ return Ns.set(l, r), r;
15794
15804
  }
15795
15805
  function ll(a, l) {
15796
15806
  const i = () => {
@@ -15801,27 +15811,27 @@ function ll(a, l) {
15801
15811
  h.push(ol(d, g, a));
15802
15812
  return h;
15803
15813
  }, r = (h, d, g) => {
15804
- const P = i(), S = P.find((T) => T.local === h), v = d.local || h;
15814
+ const b = i(), S = b.find((T) => T.local === h), w = d.local || h;
15805
15815
  if (S)
15806
- return S.imported = d.imported, S.local = v, S.from = d.from, !0;
15807
- const w = d.imported === "default" ? Ee.importDefaultSpecifier(Ee.identifier(v)) : d.imported === "*" ? Ee.importNamespaceSpecifier(Ee.identifier(v)) : Ee.importSpecifier(
15816
+ return S.imported = d.imported, S.local = w, S.from = d.from, !0;
15817
+ const v = d.imported === "default" ? Ee.importDefaultSpecifier(Ee.identifier(w)) : d.imported === "*" ? Ee.importNamespaceSpecifier(Ee.identifier(w)) : Ee.importSpecifier(
15808
15818
  Ee.identifier(d.imported),
15809
- Ee.identifier(v)
15810
- ), I = P.find(
15819
+ Ee.identifier(w)
15820
+ ), I = b.find(
15811
15821
  (T) => T.from === d.from
15812
15822
  )?.$declaration;
15813
15823
  if (I)
15814
- I.specifiers.push(w);
15815
- else if (g === "prepend" || P.length === 0)
15824
+ I.specifiers.push(v);
15825
+ else if (g === "prepend" || b.length === 0)
15816
15826
  a.body.unshift(
15817
- Ee.importDeclaration([w], Ee.stringLiteral(d.from))
15827
+ Ee.importDeclaration([v], Ee.stringLiteral(d.from))
15818
15828
  );
15819
15829
  else {
15820
- const T = P.at(-1).$declaration, A = a.body.indexOf(T);
15830
+ const T = b.at(-1).$declaration, A = a.body.indexOf(T);
15821
15831
  a.body.splice(
15822
15832
  A + 1,
15823
15833
  0,
15824
- Ee.importDeclaration([w], Ee.stringLiteral(d.from))
15834
+ Ee.importDeclaration([v], Ee.stringLiteral(d.from))
15825
15835
  );
15826
15836
  }
15827
15837
  return !0;
@@ -15829,8 +15839,8 @@ function ll(a, l) {
15829
15839
  const d = i().find((S) => S.local === h);
15830
15840
  if (!d)
15831
15841
  return !1;
15832
- const g = d.$declaration, P = d.$ast;
15833
- return g.specifiers = g.specifiers.filter((S) => S !== P), g.specifiers.length === 0 && (a.body = a.body.filter((S) => S !== g)), !0;
15842
+ const g = d.$declaration, b = d.$ast;
15843
+ return g.specifiers = g.specifiers.filter((S) => S !== b), g.specifiers.length === 0 && (a.body = a.body.filter((S) => S !== g)), !0;
15834
15844
  };
15835
15845
  return Ie(
15836
15846
  a,
@@ -15871,7 +15881,7 @@ function ll(a, l) {
15871
15881
  }
15872
15882
  );
15873
15883
  }
15874
- function ns(a, l, i) {
15884
+ function as(a, l, i) {
15875
15885
  const r = (u) => l[u], o = (u, h) => {
15876
15886
  l[u] = h;
15877
15887
  };
@@ -15895,8 +15905,8 @@ function ns(a, l, i) {
15895
15905
  return l.splice(
15896
15906
  u,
15897
15907
  h,
15898
- ...d.map((P) => Ce(P))
15899
- ).map((P) => Te(P, i));
15908
+ ...d.map((b) => Ce(b))
15909
+ ).map((b) => Te(b, i));
15900
15910
  },
15901
15911
  find(u) {
15902
15912
  return l.map((h) => Te(h, i)).find(u);
@@ -15917,8 +15927,8 @@ function ns(a, l, i) {
15917
15927
  return l.length;
15918
15928
  if (h === Symbol.iterator)
15919
15929
  return function* () {
15920
- for (const P of l)
15921
- yield Te(P, i);
15930
+ for (const b of l)
15931
+ yield Te(b, i);
15922
15932
  };
15923
15933
  if (typeof h == "symbol")
15924
15934
  return;
@@ -15949,7 +15959,7 @@ function ns(a, l, i) {
15949
15959
  }
15950
15960
  function cl(a, l) {
15951
15961
  if ("elements" in a)
15952
- return ns(a, a.elements, l);
15962
+ return as(a, a.elements, l);
15953
15963
  }
15954
15964
  function ul(a, l) {
15955
15965
  if (a.type !== "CallExpression")
@@ -15963,7 +15973,7 @@ function ul(a, l) {
15963
15973
  )}`;
15964
15974
  throw new Ae("Not implemented");
15965
15975
  }
15966
- const r = ns(a, a.arguments, l);
15976
+ const r = as(a, a.arguments, l);
15967
15977
  return Ie(
15968
15978
  a,
15969
15979
  {
@@ -15977,7 +15987,7 @@ function ul(a, l) {
15977
15987
  function hl(a, l) {
15978
15988
  if (a.type !== "ArrowFunctionExpression")
15979
15989
  throw new Ae("Not an arrow function expression");
15980
- const i = ns(a, a.params, l);
15990
+ const i = as(a, a.params, l);
15981
15991
  return Ie(
15982
15992
  a,
15983
15993
  {
@@ -16068,7 +16078,7 @@ function dl(a, l) {
16068
16078
  )}`;
16069
16079
  throw new Ae("Not implemented");
16070
16080
  }
16071
- const r = ns(a, a.arguments, l);
16081
+ const r = as(a, a.arguments, l);
16072
16082
  return Ie(
16073
16083
  a,
16074
16084
  {
@@ -16113,14 +16123,14 @@ function gl(a) {
16113
16123
  {}
16114
16124
  );
16115
16125
  }
16116
- const Ns = /* @__PURE__ */ new WeakMap();
16126
+ const ks = /* @__PURE__ */ new WeakMap();
16117
16127
  function Te(a, l) {
16118
16128
  if (en.has(typeof a))
16119
16129
  return a;
16120
16130
  if (il.has(a.type))
16121
16131
  return a.value;
16122
- if (Ns.has(a))
16123
- return Ns.get(a);
16132
+ if (ks.has(a))
16133
+ return ks.get(a);
16124
16134
  let i;
16125
16135
  switch (a.type) {
16126
16136
  case "ObjectExpression": {
@@ -16166,9 +16176,9 @@ function Te(a, l) {
16166
16176
  code: l?.$code
16167
16177
  });
16168
16178
  }
16169
- return Ns.set(a, i), i;
16179
+ return ks.set(a, i), i;
16170
16180
  }
16171
- const Et = Dt;
16181
+ const At = Dt;
16172
16182
  function xl(a, l) {
16173
16183
  const i = (o) => {
16174
16184
  const u = o === "default" ? "ExportDefaultDeclaration" : "ExportNamedDeclaration";
@@ -16191,17 +16201,17 @@ function xl(a, l) {
16191
16201
  return;
16192
16202
  }
16193
16203
  if (g.declaration && "declarations" in g.declaration) {
16194
- const P = g.declaration.declarations[0];
16195
- if ("name" in P.id && P.id.name === o) {
16196
- P.init = d;
16204
+ const b = g.declaration.declarations[0];
16205
+ if ("name" in b.id && b.id.name === o) {
16206
+ b.init = d;
16197
16207
  return;
16198
16208
  }
16199
16209
  }
16200
16210
  }
16201
16211
  a.body.push(
16202
- o === "default" ? Et.exportDefaultDeclaration(d) : Et.exportNamedDeclaration(
16203
- Et.variableDeclaration("const", [
16204
- Et.variableDeclarator(Et.identifier(o), d)
16212
+ o === "default" ? At.exportDefaultDeclaration(d) : At.exportNamedDeclaration(
16213
+ At.variableDeclaration("const", [
16214
+ At.variableDeclarator(At.identifier(o), d)
16205
16215
  ])
16206
16216
  )
16207
16217
  );
@@ -16233,8 +16243,8 @@ function xl(a, l) {
16233
16243
  if (u === "default")
16234
16244
  return a.body.splice(d, 1), !0;
16235
16245
  if (g.declaration && "declarations" in g.declaration) {
16236
- const P = g.declaration.declarations[0];
16237
- if ("name" in P.id && P.id.name === u)
16246
+ const b = g.declaration.declarations[0];
16247
+ if ("name" in b.id && b.id.name === u)
16238
16248
  return a.body.splice(d, 1), !0;
16239
16249
  }
16240
16250
  }
@@ -16267,38 +16277,38 @@ function Pl(a, l = {}) {
16267
16277
  trailingComma: l.trailingComma === void 0
16268
16278
  };
16269
16279
  let r = 2, o = 0, u = 0, h = 0, d = 0;
16270
- const g = /(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g, P = {
16280
+ const g = /(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g, b = {
16271
16281
  doubleQuote: 0,
16272
16282
  singleQuote: 0,
16273
16283
  singleParam: 0,
16274
16284
  trailingComma: 0
16275
16285
  }, S = (a || "").split(`
16276
16286
  `);
16277
- let v = !1;
16278
- for (const w of S) {
16279
- const I = w.trim();
16287
+ let w = !1;
16288
+ for (const v of S) {
16289
+ const I = v.trim();
16280
16290
  if (I.length !== 0) {
16281
- if (i.wrapColumn && w.length > h && (h = w.length), i.indent) {
16282
- const T = w.match(/^\s+/)?.[0] || "";
16291
+ if (i.wrapColumn && v.length > h && (h = v.length), i.indent) {
16292
+ const T = v.match(/^\s+/)?.[0] || "";
16283
16293
  T.length > 0 && (T.length > 0 && T.length < r && (r = T.length), T[0] === " " ? o++ : T.length > 0 && o--);
16284
16294
  }
16285
16295
  if (I.at(-1) === ";" ? u++ : I.length > 0 && u--, i.quote || i.arrowParens) {
16286
16296
  const T = I.matchAll(g);
16287
16297
  for (const A of T)
16288
16298
  if (A.groups)
16289
- for (const b in P)
16290
- A.groups[b] && P[b]++;
16299
+ for (const P in b)
16300
+ A.groups[P] && b[P]++;
16291
16301
  }
16292
- i.trailingComma && ((w.startsWith("}") || w.startsWith("]")) && (v ? d++ : d--), v = I.endsWith(","));
16302
+ i.trailingComma && ((v.startsWith("}") || v.startsWith("]")) && (w ? d++ : d--), w = I.endsWith(","));
16293
16303
  }
16294
16304
  }
16295
16305
  return {
16296
16306
  wrapColumn: h,
16297
16307
  useTabs: o > 0,
16298
16308
  tabWidth: r,
16299
- quote: P.singleQuote > P.doubleQuote ? "single" : "double",
16300
- arrowParensAlways: P.singleParam > 0,
16301
- trailingComma: d > 0 || P.trailingComma > 0,
16309
+ quote: b.singleQuote > b.doubleQuote ? "single" : "double",
16310
+ arrowParensAlways: b.singleParam > 0,
16311
+ trailingComma: d > 0 || b.trailingComma > 0,
16302
16312
  useSemi: u > 0,
16303
16313
  arrayBracketSpacing: void 0,
16304
16314
  // TODO
@@ -16332,70 +16342,70 @@ function sn(a, l) {
16332
16342
  r && !o ? sn(a[i], l[i]) : o ? a[i] = a[i] ? [.../* @__PURE__ */ new Set([...a[i], ...l[i]])] : l[i] : a[i] = l[i];
16333
16343
  }
16334
16344
  }
16335
- async function Bl(a, l, i = !1) {
16336
- if (i || await Qe(
16337
- `This will update '${a}' file. Continue?`
16345
+ async function Bl(a, l, i = !1, r = "") {
16346
+ if (i || await Ze(
16347
+ r || `This will update '${a}' file. Continue?`
16338
16348
  )) {
16339
- const o = ct(process.cwd(), a), u = await Sl(o);
16340
- let h = u.exports?.default;
16341
- if (!h) {
16342
- const S = Object.keys(u.exports);
16343
- S.length === 1 && (h = u.exports[S[0]]);
16349
+ const u = Ye(process.cwd(), a), h = await Sl(u);
16350
+ let d = h.exports?.default;
16351
+ if (!d) {
16352
+ const w = Object.keys(h.exports);
16353
+ w.length === 1 && (d = h.exports[w[0]]);
16344
16354
  }
16345
- if (!h && typeof u.exports == "object" && u.exports !== null)
16355
+ if (!d && typeof h.exports == "object" && h.exports !== null)
16346
16356
  throw new Error(`It is currently not possible to handle CommonJS module.exports syntax of ${a}`);
16347
- if (!h)
16357
+ if (!d)
16348
16358
  throw new Error(`No suitable config export found in ${a}`);
16349
- const d = h.$type === "function-call" ? h.$args?.[0] : h;
16350
- if (!d || typeof d != "object")
16359
+ const g = d.$type === "function-call" ? d.$args?.[0] : d;
16360
+ if (!g || typeof g != "object")
16351
16361
  throw new Error(`Could not access config object in ${a}`);
16352
- const g = JSON.stringify(d);
16353
- sn(d, l);
16354
- const P = JSON.stringify(d);
16355
- if (g !== P) {
16356
- const { code: S } = tn(u);
16357
- ss(o, S, "utf8"), console.log(`'${a}' file updated.`);
16362
+ const b = JSON.stringify(g);
16363
+ sn(g, l);
16364
+ const S = JSON.stringify(g);
16365
+ if (b !== S) {
16366
+ const { code: w } = tn(h);
16367
+ is(u, w, "utf8"), console.log(`'${a}' file updated.`);
16358
16368
  } else
16359
16369
  console.log(`'${a}' file already up to date.`);
16360
16370
  } else
16361
16371
  console.log(`Updating '${a}' skipped.`);
16362
16372
  }
16363
- async function _l(a, l, i, r = !1) {
16364
- if (r || await Qe(
16365
- `This will update '${a}' file. Continue?`
16373
+ async function _l(a, l, i, r = !1, o = "") {
16374
+ if (r || await Ze(
16375
+ o || `This will update '${a}' file. Continue?`
16366
16376
  )) {
16367
- const u = ct(process.cwd(), a);
16368
- if (!vt(u))
16377
+ const h = Ye(process.cwd(), a);
16378
+ if (!We(h))
16369
16379
  throw new Error(`No '${a}' found in project root — skipping updates.`);
16370
- const h = Rs(u, "utf8");
16371
- let d;
16380
+ const d = ss(h, "utf8");
16381
+ let g;
16372
16382
  try {
16373
- d = JSON.parse(h);
16374
- } catch (P) {
16383
+ g = JSON.parse(d);
16384
+ } catch (S) {
16375
16385
  throw new Error(`Could not parse '${a}' — skipping updates.
16376
- ${P}`);
16386
+ ${S}`);
16377
16387
  }
16378
- d[l] = d[l] || {};
16379
- let g = !1;
16380
- for (const [P, S] of Object.entries(i))
16381
- d[l][P] !== S && (d[l][P] = S, g = !0);
16382
- g ? (ss(u, JSON.stringify(d, null, 2) + `
16388
+ g[l] = g[l] || {};
16389
+ let b = !1;
16390
+ for (const [S, w] of Object.entries(i))
16391
+ g[l][S] !== w && (g[l][S] = w, b = !0);
16392
+ b ? (is(h, JSON.stringify(g, null, 2) + `
16383
16393
  `, "utf8"), console.log(`'${a}' file updated.`)) : console.log(`'${a}' file already up to date.`);
16384
16394
  } else
16385
16395
  console.log(`Updating '${a}' skipped.`);
16386
16396
  }
16387
- async function jl(a, l, i = !1) {
16388
- if (i || await Qe(
16389
- `This will update '${a}' file. Continue?`
16397
+ async function jl(a, l, i = !1, r = "") {
16398
+ if (i || await Ze(
16399
+ r || `This will update '${a}' file. Continue?`
16390
16400
  )) {
16391
- const o = ct(process.cwd(), a);
16392
- if (!vt(o))
16401
+ const u = Ye(process.cwd(), a);
16402
+ if (!We(u))
16393
16403
  throw new Error(`No '${a}' found in project root — skipping updates.`);
16394
- const h = Rs(o, "utf8").split(/\r?\n/);
16395
- let d = !1;
16396
- for (const g of l)
16397
- h.includes(g) || (h.push(g), d = !0);
16398
- d ? (ss(o, h.join(`
16404
+ const d = ss(u, "utf8").split(/\r?\n/);
16405
+ let g = !1;
16406
+ for (const b of l)
16407
+ d.includes(b) || (d.push(b), g = !0);
16408
+ g ? (is(u, d.join(`
16399
16409
  `) + `
16400
16410
  `, "utf8"), console.log(`'${a}' file updated.`)) : console.log(`'${a}' file already up to date.`);
16401
16411
  } else
@@ -16413,11 +16423,26 @@ function Ul(a, l = 1) {
16413
16423
  process.stdout.write(`
16414
16424
  `);
16415
16425
  }
16426
+ function $l(a, l = Ye(process.cwd(), ".env")) {
16427
+ if (!We(l))
16428
+ return;
16429
+ const i = ss(l, "utf-8");
16430
+ for (const r of i.split(/\r?\n/)) {
16431
+ const o = r.trim();
16432
+ if (!o || o.startsWith("#")) continue;
16433
+ const u = o.indexOf("=");
16434
+ if (u === -1) continue;
16435
+ const h = o.substring(0, u).trim(), d = o.substring(u + 1).trim();
16436
+ if (h === a)
16437
+ return d.replace(/^['"]|['"]$/g, "");
16438
+ }
16439
+ }
16416
16440
  export {
16417
16441
  Il as createFileFromTemplate,
16418
16442
  Nl as createFileFromWebTemplate,
16443
+ $l as getEnvValue,
16419
16444
  Ia as parseQualifiedPath,
16420
- Qe as promptUser,
16445
+ Ze as promptUser,
16421
16446
  Na as resolvePackagePath,
16422
16447
  Rl as showError,
16423
16448
  Ul as showMessage,