elrh-cosca 0.3.0 → 0.3.1

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,10 +1,62 @@
1
- import { join as Ps, resolve as De, sep as va, dirname as Ei } from "node:path";
2
- import { readFileSync as Lt, access as Ca, constants as Ia, existsSync as Se, mkdirSync as Ai, copyFileSync as Na, writeFileSync as Ot, rmSync as ka, promises as La } from "node:fs";
3
- import Oa from "node:readline";
4
- import Da from "node:https";
1
+ import { resolve as Ae, sep as Ca, join as Ps, dirname as Ei } from "node:path";
2
+ import { existsSync as be, readFileSync as tt, access as Ia, constants as Na, mkdirSync as Ai, copyFileSync as ka, writeFileSync as Ot, rmSync as La, promises as Oa } from "node:fs";
3
+ import Da from "node:readline";
4
+ import Ma from "node:https";
5
5
  import "fs";
6
+ function Ve(a) {
7
+ if (console.warn(a), !a)
8
+ return { valid: !1, error: "Path cannot be empty" };
9
+ if (/^[A-Za-z]:/.test(a) || a.startsWith("/"))
10
+ return { valid: !1, error: `Path must be relative to CWD: '${a}'` };
11
+ if (/[<>:"|?*]/.test(a))
12
+ return { valid: !1, error: `Path contains illegal characters: '${a}'` };
13
+ const l = a.includes("/"), r = a.includes("\\");
14
+ if (l && r)
15
+ return { valid: !1, error: `Path contains mixed separators: '${a}'` };
16
+ if (/(?:^|[\/\\])\.\.(?:[\/\\]|$)/.test(a))
17
+ return { valid: !1, error: `Path traversal not allowed: '${a}'` };
18
+ const o = Ae(process.cwd(), a), u = Ae(process.cwd());
19
+ return !o.startsWith(u + Ca) && o !== u ? { valid: !1, error: `Path outside of CWD not allowed: '${a}'` } : { valid: !0 };
20
+ }
21
+ function Fl(a, l) {
22
+ const r = Ve(a);
23
+ if (!r.valid)
24
+ throw new Error(r.error);
25
+ const i = Ae(process.cwd(), a);
26
+ if (!be(i))
27
+ throw new Error(`No '${a}' found in project root — cannot check its keys.`);
28
+ const o = tt(i, "utf8");
29
+ let u;
30
+ try {
31
+ u = JSON.parse(o);
32
+ } catch (h) {
33
+ throw new Error(`Could not parse '${a}' — cannot check its keys.
34
+ ${h}`);
35
+ }
36
+ return vi(u, l);
37
+ }
38
+ function vi(a, l) {
39
+ const r = l.split(".");
40
+ if (r.length === 1)
41
+ return a.hasOwnProperty(l);
42
+ if (a.hasOwnProperty(r[0])) {
43
+ const i = a[r[0]];
44
+ if (i !== null && typeof i == "object" && !Array.isArray(i))
45
+ return vi(i, r.slice(1).join("."));
46
+ }
47
+ return !1;
48
+ }
49
+ function Bl(a, l) {
50
+ const r = Ve(a);
51
+ if (!r.valid)
52
+ throw new Error(r.error);
53
+ const i = Ae(process.cwd(), a);
54
+ if (!be(i))
55
+ throw new Error(`No '${a}' found in project root — cannot check its contents.`);
56
+ return tt(i, "utf8").split(/\r?\n/).map((h) => h.trim()).includes(l.trim());
57
+ }
6
58
  async function $e(a, l) {
7
- const r = Oa.createInterface({
59
+ const r = Da.createInterface({
8
60
  input: l?.input || process.stdin,
9
61
  output: l?.output || process.stdout
10
62
  });
@@ -18,7 +70,7 @@ async function $e(a, l) {
18
70
  });
19
71
  });
20
72
  }
21
- function Ma(a) {
73
+ function Fa(a) {
22
74
  if ((a.match(/:/g) || []).length !== 1)
23
75
  throw new Error(`Invalid input "${a}". Expected format is "package:relative/path/to/file".`);
24
76
  const l = a.indexOf(":");
@@ -29,10 +81,10 @@ function Ma(a) {
29
81
  throw new Error(`Invalid package name in input: "${r}".`);
30
82
  return { pkg: r, file: i };
31
83
  }
32
- function Fa(a) {
84
+ function Ba(a) {
33
85
  const l = process.cwd();
34
86
  try {
35
- const r = Ps(l, "package.json"), i = Lt(r, "utf8");
87
+ const r = Ps(l, "package.json"), i = tt(r, "utf8");
36
88
  if (JSON.parse(i)?.name === a)
37
89
  return l;
38
90
  } catch (r) {
@@ -40,7 +92,7 @@ function Fa(a) {
40
92
  }
41
93
  try {
42
94
  const r = Ps(l, "node_modules", ...a.split("/")), i = Ps(r, "package.json");
43
- return Ca(i, Ia.R_OK, (o) => {
95
+ return Ia(i, Na.R_OK, (o) => {
44
96
  if (o)
45
97
  throw new Error(`Cannot access "${i}"`);
46
98
  }), r;
@@ -49,48 +101,33 @@ function Fa(a) {
49
101
  }
50
102
  throw new Error(`Cannot find package "${a}" from ${process.cwd()}. Make sure it's installed or linked in this project.`);
51
103
  }
52
- function et(a) {
53
- if (console.warn(a), !a)
54
- return { valid: !1, error: "Path cannot be empty" };
55
- if (/^[A-Za-z]:/.test(a) || a.startsWith("/"))
56
- return { valid: !1, error: `Path must be relative to CWD: '${a}'` };
57
- if (/[<>:"|?*]/.test(a))
58
- return { valid: !1, error: `Path contains illegal characters: '${a}'` };
59
- const l = a.includes("/"), r = a.includes("\\");
60
- if (l && r)
61
- return { valid: !1, error: `Path contains mixed separators: '${a}'` };
62
- if (/(?:^|[\/\\])\.\.(?:[\/\\]|$)/.test(a))
63
- return { valid: !1, error: `Path traversal not allowed: '${a}'` };
64
- const o = De(process.cwd(), a), u = De(process.cwd());
65
- return !o.startsWith(u + va) && o !== u ? { valid: !1, error: `Path outside of CWD not allowed: '${a}'` } : { valid: !0 };
66
- }
67
- async function Ml(a, l, r = !1, i = "") {
104
+ async function _l(a, l, r = !1, i = "") {
68
105
  if (r || await $e(
69
106
  i || `This will create '${l}' file. Continue?`
70
107
  )) {
71
- const { pkg: u, file: h } = Ma(a), d = Fa(u), g = De(d, h), x = et(l);
108
+ const { pkg: u, file: h } = Fa(a), d = Ba(u), g = Ae(d, h), x = Ve(l);
72
109
  if (!x.valid)
73
110
  throw new Error(x.error);
74
- const S = De(process.cwd(), l);
75
- if (!Se(g))
111
+ const S = Ae(process.cwd(), l);
112
+ if (!be(g))
76
113
  throw new Error(`Template file not found at ${g}`);
77
- if (Se(S) && !(r || await $e(
114
+ if (be(S) && !(r || await $e(
78
115
  `File '${l}' already exists. Overwrite?`
79
116
  ))) {
80
117
  console.log("Aborted.");
81
118
  return;
82
119
  }
83
120
  const A = Ei(S);
84
- if (Se(A) || Ai(A, { recursive: !0 }), Na(g, S), Se(S))
121
+ if (be(A) || Ai(A, { recursive: !0 }), ka(g, S), be(S))
85
122
  console.log(`New file '${l}' successfully created.`);
86
123
  else
87
124
  throw new Error(`Failed to create '${l}'.`);
88
125
  } else
89
126
  console.log(`Creation of '${l}' skipped.`);
90
127
  }
91
- async function Ba(a) {
128
+ async function _a(a) {
92
129
  return new Promise((l, r) => {
93
- Da.get(a, (i) => {
130
+ Ma.get(a, (i) => {
94
131
  if (i.statusCode !== 200) {
95
132
  r(new Error(`Failed to fetch file: ${i.statusCode}`));
96
133
  return;
@@ -100,45 +137,45 @@ async function Ba(a) {
100
137
  }).on("error", r);
101
138
  });
102
139
  }
103
- async function Fl(a, l, r = !1, i = "") {
140
+ async function jl(a, l, r = !1, i = "") {
104
141
  if (r || await $e(
105
142
  i || `This will create '${l}' file. Continue?`
106
143
  )) {
107
144
  let u;
108
145
  try {
109
- u = await Ba(a);
146
+ u = await _a(a);
110
147
  } catch (x) {
111
148
  throw new Error(`Failed to fetch template from external source ${a}:
112
149
  ${x}`);
113
150
  }
114
- const h = et(l);
151
+ const h = Ve(l);
115
152
  if (!h.valid)
116
153
  throw new Error(h.error);
117
- const d = De(process.cwd(), l);
118
- if (Se(d) && !(r || await $e(
154
+ const d = Ae(process.cwd(), l);
155
+ if (be(d) && !(r || await $e(
119
156
  `File '${l}' already exists. Overwrite?`
120
157
  ))) {
121
158
  console.log("Aborted.");
122
159
  return;
123
160
  }
124
161
  const g = Ei(d);
125
- if (Se(g) || Ai(g, { recursive: !0 }), Ot(d, u, "utf8"), Se(d))
162
+ if (be(g) || Ai(g, { recursive: !0 }), Ot(d, u, "utf8"), be(d))
126
163
  console.log(`New file '${l}' successfully created.`);
127
164
  else
128
165
  throw new Error(`Failed to create '${l}'.`);
129
166
  } else
130
167
  console.log(`Creation of '${l}' skipped.`);
131
168
  }
132
- async function Bl(a, l = !1, r = "") {
169
+ async function Rl(a, l = !1, r = "") {
133
170
  if (l || await $e(
134
171
  r || `This will delete '${a}'. Continue?`
135
172
  )) {
136
- const o = et(a);
173
+ const o = Ve(a);
137
174
  if (!o.valid)
138
175
  throw new Error(o.error);
139
- const u = De(process.cwd(), a);
140
- if (Se(u))
141
- if (ka(u, { recursive: !0, force: !0 }), !Se(u))
176
+ const u = Ae(process.cwd(), a);
177
+ if (be(u))
178
+ if (La(u, { recursive: !0, force: !0 }), !be(u))
142
179
  console.log(`'${a}' deleted from project.`);
143
180
  else
144
181
  throw new Error(`Failed to delete '${a}'.`);
@@ -147,17 +184,17 @@ async function Bl(a, l = !1, r = "") {
147
184
  } else
148
185
  console.log(`Removing '${a}' skipped.`);
149
186
  }
150
- async function _l(a, l, r = !1, i = "") {
187
+ async function Ul(a, l, r = !1, i = "") {
151
188
  if (r || await $e(
152
189
  i || `This will delete '${l}' from '${a}' file. Continue?`
153
190
  )) {
154
- const u = et(a);
191
+ const u = Ve(a);
155
192
  if (!u.valid)
156
193
  throw new Error(u.error);
157
- const h = De(process.cwd(), a);
158
- if (!Se(h))
194
+ const h = Ae(process.cwd(), a);
195
+ if (!be(h))
159
196
  throw new Error(`No '${a}' found in project root — cannot delete its keys.`);
160
- const d = Lt(h, "utf8");
197
+ const d = tt(h, "utf8");
161
198
  let g;
162
199
  try {
163
200
  g = JSON.parse(d);
@@ -166,28 +203,28 @@ async function _l(a, l, r = !1, i = "") {
166
203
  ${A}`);
167
204
  }
168
205
  const x = JSON.stringify(g, null, 2);
169
- g = vi(g, l);
206
+ g = Ci(g, l);
170
207
  const S = JSON.stringify(g, null, 2);
171
208
  x !== S ? (Ot(h, S + `
172
209
  `, "utf8"), console.log(`'${a}' file updated.`)) : console.log(`'${a}' file already up to date.`);
173
210
  } else
174
211
  console.log(`Updating '${a}' skipped.`);
175
212
  }
176
- function vi(a, l) {
213
+ function Ci(a, l) {
177
214
  const r = l.split(".");
178
215
  if (r.length === 1)
179
216
  a.hasOwnProperty(l) && delete a[l];
180
217
  else if (a.hasOwnProperty(r[0])) {
181
218
  const i = a[r[0]];
182
- i !== null && typeof i == "object" && !Array.isArray(i) && (a[r[0]] = vi(i, r.slice(1).join(".")));
219
+ i !== null && typeof i == "object" && !Array.isArray(i) && (a[r[0]] = Ci(i, r.slice(1).join(".")));
183
220
  }
184
221
  return a;
185
222
  }
186
- function _a(a) {
223
+ function ja(a) {
187
224
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
188
225
  }
189
- var gt = {}, Ss = {}, Jt = {}, Ht = {}, Kr;
190
- function ja() {
226
+ var xt = {}, Ss = {}, Jt = {}, Ht = {}, Kr;
227
+ function Ra() {
191
228
  if (Kr) return Ht;
192
229
  Kr = 1;
193
230
  var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
@@ -201,10 +238,10 @@ function ja() {
201
238
  }, Ht;
202
239
  }
203
240
  var Xr;
204
- function Ci() {
241
+ function Ii() {
205
242
  if (Xr) return Jt;
206
243
  Xr = 1;
207
- var a = ja(), l = 5, r = 1 << l, i = r - 1, o = r;
244
+ var a = Ra(), l = 5, r = 1 << l, i = r - 1, o = r;
208
245
  function u(d) {
209
246
  return d < 0 ? (-d << 1) + 1 : (d << 1) + 0;
210
247
  }
@@ -288,8 +325,8 @@ function Dt() {
288
325
  } else
289
326
  for (ce.push(_.slice(ye, he)); he < _.length && _[he] === "/"; )
290
327
  he++;
291
- for (var _e, ke = 0, he = ce.length - 1; he >= 0; he--)
292
- _e = ce[he], _e === "." ? ce.splice(he, 1) : _e === ".." ? ke++ : ke > 0 && (_e === "" ? (ce.splice(he + 1, ke), ke = 0) : (ce.splice(he, 2), ke--));
328
+ for (var _e, Le = 0, he = ce.length - 1; he >= 0; he--)
329
+ _e = ce[he], _e === "." ? ce.splice(he, 1) : _e === ".." ? Le++ : Le > 0 && (_e === "" ? (ce.splice(he + 1, Le), Le = 0) : (ce.splice(he, 2), Le--));
293
330
  return _ = ce.join("/"), _ === "" && (_ = me ? "/" : "."), N ? (N.path = _, u(N)) : _;
294
331
  });
295
332
  a.normalize = g;
@@ -394,7 +431,7 @@ function Dt() {
394
431
  })(ws)), ws;
395
432
  }
396
433
  var Es = {}, Qr;
397
- function Ii() {
434
+ function Ni() {
398
435
  if (Qr) return Es;
399
436
  Qr = 1;
400
437
  var a = Dt(), l = Object.prototype.hasOwnProperty, r = typeof Map < "u";
@@ -435,7 +472,7 @@ function Ii() {
435
472
  }, Es.ArraySet = i, Es;
436
473
  }
437
474
  var As = {}, Yr;
438
- function Ra() {
475
+ function Ua() {
439
476
  if (Yr) return As;
440
477
  Yr = 1;
441
478
  var a = Dt();
@@ -455,10 +492,10 @@ function Ra() {
455
492
  }, As.MappingList = r, As;
456
493
  }
457
494
  var Zr;
458
- function Ni() {
495
+ function ki() {
459
496
  if (Zr) return Ss;
460
497
  Zr = 1;
461
- var a = Ci(), l = Dt(), r = Ii().ArraySet, i = Ra().MappingList;
498
+ var a = Ii(), l = Dt(), r = Ni().ArraySet, i = Ua().MappingList;
462
499
  function o(u) {
463
500
  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 r(), this._names = new r(), this._mappings = new i(), this._sourcesContents = null;
464
501
  }
@@ -578,8 +615,8 @@ function Ni() {
578
615
  return JSON.stringify(this.toJSON());
579
616
  }, Ss.SourceMapGenerator = o, Ss;
580
617
  }
581
- var xt = {}, vs = {}, ei;
582
- function Ua() {
618
+ var bt = {}, vs = {}, ei;
619
+ function $a() {
583
620
  return ei || (ei = 1, (function(a) {
584
621
  a.GREATEST_LOWER_BOUND = 1, a.LEAST_UPPER_BOUND = 2;
585
622
  function l(r, i, o, u, h, d) {
@@ -606,7 +643,7 @@ function Ua() {
606
643
  })(vs)), vs;
607
644
  }
608
645
  var Cs = {}, ti;
609
- function $a() {
646
+ function Va() {
610
647
  if (ti) return Cs;
611
648
  ti = 1;
612
649
  function a(i) {
@@ -641,10 +678,10 @@ function $a() {
641
678
  }, Cs;
642
679
  }
643
680
  var si;
644
- function Va() {
645
- if (si) return xt;
681
+ function qa() {
682
+ if (si) return bt;
646
683
  si = 1;
647
- var a = Dt(), l = Ua(), r = Ii().ArraySet, i = Ci(), o = $a().quickSort;
684
+ var a = Dt(), l = $a(), r = Ni().ArraySet, i = Ii(), o = Va().quickSort;
648
685
  function u(A, v) {
649
686
  var I = A;
650
687
  return typeof A == "string" && (I = a.parseSourceMapInput(A)), I.sections != null ? new S(I, v) : new h(I, v);
@@ -725,7 +762,7 @@ function Va() {
725
762
  }), m = this._originalMappings[++T];
726
763
  }
727
764
  return E;
728
- }, xt.SourceMapConsumer = u;
765
+ }, bt.SourceMapConsumer = u;
729
766
  function h(A, v) {
730
767
  var I = A;
731
768
  typeof A == "string" && (I = a.parseSourceMapInput(A));
@@ -921,7 +958,7 @@ function Va() {
921
958
  column: null,
922
959
  lastColumn: null
923
960
  };
924
- }, xt.BasicSourceMapConsumer = h;
961
+ }, bt.BasicSourceMapConsumer = h;
925
962
  function S(A, v) {
926
963
  var I = A;
927
964
  typeof A == "string" && (I = a.parseSourceMapInput(A));
@@ -1029,13 +1066,13 @@ function Va() {
1029
1066
  this.__generatedMappings.push(B), typeof B.originalLine == "number" && this.__originalMappings.push(B);
1030
1067
  }
1031
1068
  o(this.__generatedMappings, a.compareByGeneratedPositionsDeflated), o(this.__originalMappings, a.compareByOriginalPositions);
1032
- }, xt.IndexedSourceMapConsumer = S, xt;
1069
+ }, bt.IndexedSourceMapConsumer = S, bt;
1033
1070
  }
1034
1071
  var Is = {}, ri;
1035
- function qa() {
1072
+ function za() {
1036
1073
  if (ri) return Is;
1037
1074
  ri = 1;
1038
- var a = Ni().SourceMapGenerator, l = Dt(), r = /(\r?\n)/, i = 10, o = "$$$isSourceNode$$$";
1075
+ var a = ki().SourceMapGenerator, l = Dt(), r = /(\r?\n)/, i = 10, o = "$$$isSourceNode$$$";
1039
1076
  function u(h, d, g, x, S) {
1040
1077
  this.children = [], this.sourceContents = {}, this.line = h ?? null, this.column = d ?? null, this.source = g ?? null, this.name = S ?? null, this[o] = !0, x != null && this.add(x);
1041
1078
  }
@@ -1178,15 +1215,15 @@ function qa() {
1178
1215
  }, Is.SourceNode = u, Is;
1179
1216
  }
1180
1217
  var ii;
1181
- function za() {
1182
- return ii || (ii = 1, gt.SourceMapGenerator = Ni().SourceMapGenerator, gt.SourceMapConsumer = Va().SourceMapConsumer, gt.SourceNode = qa().SourceNode), gt;
1218
+ function Wa() {
1219
+ return ii || (ii = 1, xt.SourceMapGenerator = ki().SourceMapGenerator, xt.SourceMapConsumer = qa().SourceMapConsumer, xt.SourceNode = za().SourceNode), xt;
1183
1220
  }
1184
- var Wa = za();
1185
- const $s = /* @__PURE__ */ _a(Wa);
1186
- var nt = {}, ni;
1187
- function Ja() {
1188
- if (ni) return nt;
1189
- ni = 1, Object.defineProperty(nt, "__esModule", {
1221
+ var Ja = Wa();
1222
+ const $s = /* @__PURE__ */ ja(Ja);
1223
+ var at = {}, ni;
1224
+ function Ha() {
1225
+ if (ni) return at;
1226
+ ni = 1, Object.defineProperty(at, "__esModule", {
1190
1227
  value: !0
1191
1228
  });
1192
1229
  function a(p, t) {
@@ -1903,11 +1940,11 @@ function Ja() {
1903
1940
  this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop = void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = t, this.keyword = e.keyword, this.beforeExpr = !!e.beforeExpr, this.startsExpr = !!e.startsExpr, this.rightAssociative = !!e.rightAssociative, this.isLoop = !!e.isLoop, this.isAssign = !!e.isAssign, this.prefix = !!e.prefix, this.postfix = !!e.postfix, this.binop = e.binop != null ? e.binop : null, this.updateContext = null;
1904
1941
  }
1905
1942
  }
1906
- const ke = /* @__PURE__ */ new Map();
1943
+ const Le = /* @__PURE__ */ new Map();
1907
1944
  function Z(p, t = {}) {
1908
1945
  t.keyword = p;
1909
1946
  const e = J(p, t);
1910
- return ke.set(p, e), e;
1947
+ return Le.set(p, e), e;
1911
1948
  }
1912
1949
  function xe(p, t) {
1913
1950
  return J(p, {
@@ -1923,9 +1960,9 @@ function Ja() {
1923
1960
  }
1924
1961
  function Q(p, t = {}) {
1925
1962
  var e, s, n, c;
1926
- return ++z, ke.set(p, z), X.push(p), Y.push((e = t.binop) != null ? e : -1), ie.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 _e("name", t)), z;
1963
+ return ++z, Le.set(p, z), X.push(p), Y.push((e = t.binop) != null ? e : -1), ie.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 _e("name", t)), z;
1927
1964
  }
1928
- const tt = {
1965
+ const st = {
1929
1966
  bracketL: J("[", {
1930
1967
  beforeExpr: _,
1931
1968
  startsExpr: N
@@ -2323,7 +2360,7 @@ function Ja() {
2323
2360
  function se(p) {
2324
2361
  return p >= 93 && p <= 133;
2325
2362
  }
2326
- function Xe(p) {
2363
+ function Ge(p) {
2327
2364
  return p <= 92;
2328
2365
  }
2329
2366
  function we(p) {
@@ -2332,46 +2369,46 @@ function Ja() {
2332
2369
  function _t(p) {
2333
2370
  return p >= 58 && p <= 137;
2334
2371
  }
2335
- function ln(p) {
2372
+ function cn(p) {
2336
2373
  return ie[p];
2337
2374
  }
2338
- function ft(p) {
2375
+ function dt(p) {
2339
2376
  return ne[p];
2340
2377
  }
2341
- function cn(p) {
2378
+ function un(p) {
2342
2379
  return p >= 29 && p <= 33;
2343
2380
  }
2344
2381
  function Hs(p) {
2345
2382
  return p >= 129 && p <= 131;
2346
2383
  }
2347
- function un(p) {
2384
+ function hn(p) {
2348
2385
  return p >= 90 && p <= 92;
2349
2386
  }
2350
2387
  function ls(p) {
2351
2388
  return p >= 58 && p <= 92;
2352
2389
  }
2353
- function hn(p) {
2390
+ function pn(p) {
2354
2391
  return p >= 39 && p <= 59;
2355
2392
  }
2356
- function pn(p) {
2393
+ function fn(p) {
2357
2394
  return p === 34;
2358
2395
  }
2359
- function fn(p) {
2396
+ function dn(p) {
2360
2397
  return oe[p];
2361
2398
  }
2362
- function dn(p) {
2399
+ function mn(p) {
2363
2400
  return p >= 121 && p <= 123;
2364
2401
  }
2365
- function mn(p) {
2402
+ function yn(p) {
2366
2403
  return p >= 124 && p <= 130;
2367
2404
  }
2368
- function Ve(p) {
2405
+ function qe(p) {
2369
2406
  return X[p];
2370
2407
  }
2371
2408
  function jt(p) {
2372
2409
  return Y[p];
2373
2410
  }
2374
- function yn(p) {
2411
+ function gn(p) {
2375
2412
  return p === 57;
2376
2413
  }
2377
2414
  function Rt(p) {
@@ -2390,9 +2427,9 @@ function Ja() {
2390
2427
  p.push(k.j_expr, k.j_oTag);
2391
2428
  };
2392
2429
  let cs = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Ks = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";
2393
- const gn = new RegExp("[" + cs + "]"), xn = new RegExp("[" + cs + Ks + "]");
2430
+ const xn = new RegExp("[" + cs + "]"), bn = new RegExp("[" + cs + Ks + "]");
2394
2431
  cs = Ks = null;
2395
- const Xs = [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], bn = [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];
2432
+ const Xs = [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], Tn = [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];
2396
2433
  function us(p, t) {
2397
2434
  let e = 65536;
2398
2435
  for (let s = 0, n = t.length; s < n; s += 2) {
@@ -2402,37 +2439,37 @@ function Ja() {
2402
2439
  return !1;
2403
2440
  }
2404
2441
  function Re(p) {
2405
- return p < 65 ? p === 36 : p <= 90 ? !0 : p < 97 ? p === 95 : p <= 122 ? !0 : p <= 65535 ? p >= 170 && gn.test(String.fromCharCode(p)) : us(p, Xs);
2442
+ return p < 65 ? p === 36 : p <= 90 ? !0 : p < 97 ? p === 95 : p <= 122 ? !0 : p <= 65535 ? p >= 170 && xn.test(String.fromCharCode(p)) : us(p, Xs);
2406
2443
  }
2407
- function st(p) {
2408
- 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 && xn.test(String.fromCharCode(p)) : us(p, Xs) || us(p, bn);
2444
+ function rt(p) {
2445
+ 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 && bn.test(String.fromCharCode(p)) : us(p, Xs) || us(p, Tn);
2409
2446
  }
2410
2447
  const hs = {
2411
2448
  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"],
2412
2449
  strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
2413
2450
  strictBind: ["eval", "arguments"]
2414
- }, Tn = new Set(hs.keyword), Pn = new Set(hs.strict), Sn = new Set(hs.strictBind);
2451
+ }, Pn = new Set(hs.keyword), Sn = new Set(hs.strict), wn = new Set(hs.strictBind);
2415
2452
  function Gs(p, t) {
2416
2453
  return t && p === "await" || p === "enum";
2417
2454
  }
2418
2455
  function Qs(p, t) {
2419
- return Gs(p, t) || Pn.has(p);
2456
+ return Gs(p, t) || Sn.has(p);
2420
2457
  }
2421
2458
  function Ys(p) {
2422
- return Sn.has(p);
2459
+ return wn.has(p);
2423
2460
  }
2424
2461
  function Zs(p, t) {
2425
2462
  return Qs(p, t) || Ys(p);
2426
2463
  }
2427
- function wn(p) {
2428
- return Tn.has(p);
2464
+ function En(p) {
2465
+ return Pn.has(p);
2429
2466
  }
2430
- function En(p, t, e) {
2467
+ function An(p, t, e) {
2431
2468
  return p === 64 && t === 64 && Re(e);
2432
2469
  }
2433
- const An = /* @__PURE__ */ new Set(["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", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "eval", "arguments", "enum", "await"]);
2434
- function vn(p) {
2435
- return An.has(p);
2470
+ const vn = /* @__PURE__ */ new Set(["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", "implements", "interface", "let", "package", "private", "protected", "public", "static", "yield", "eval", "arguments", "enum", "await"]);
2471
+ function Cn(p) {
2472
+ return vn.has(p);
2436
2473
  }
2437
2474
  class ps {
2438
2475
  constructor(t) {
@@ -2551,14 +2588,14 @@ function Ja() {
2551
2588
  }
2552
2589
  }
2553
2590
  }
2554
- class Cn extends ps {
2591
+ class In extends ps {
2555
2592
  constructor(...t) {
2556
2593
  super(...t), this.declareFunctions = /* @__PURE__ */ new Set();
2557
2594
  }
2558
2595
  }
2559
- class In extends fs {
2596
+ class Nn extends fs {
2560
2597
  createScope(t) {
2561
- return new Cn(t);
2598
+ return new In(t);
2562
2599
  }
2563
2600
  declareName(t, e, s) {
2564
2601
  const n = this.currentScope();
@@ -2580,7 +2617,7 @@ function Ja() {
2580
2617
  this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t);
2581
2618
  }
2582
2619
  }
2583
- const Nn = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]), G = T`flow`({
2620
+ const kn = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "static", "string", "true", "typeof", "void"]), G = T`flow`({
2584
2621
  AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",
2585
2622
  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.",
2586
2623
  AssignReservedType: ({
@@ -2673,31 +2710,31 @@ function Ja() {
2673
2710
  UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.",
2674
2711
  UnterminatedFlowComment: "Unterminated flow-comment."
2675
2712
  });
2676
- function kn(p) {
2713
+ function Ln(p) {
2677
2714
  return p.type === "DeclareExportAllDeclaration" || p.type === "DeclareExportDeclaration" && (!p.declaration || p.declaration.type !== "TypeAlias" && p.declaration.type !== "InterfaceDeclaration");
2678
2715
  }
2679
2716
  function er(p) {
2680
2717
  return p.importKind === "type" || p.importKind === "typeof";
2681
2718
  }
2682
- const Ln = {
2719
+ const On = {
2683
2720
  const: "declare export var",
2684
2721
  let: "declare export var",
2685
2722
  type: "export type",
2686
2723
  interface: "export interface"
2687
2724
  };
2688
- function On(p, t) {
2725
+ function Dn(p, t) {
2689
2726
  const e = [], s = [];
2690
2727
  for (let n = 0; n < p.length; n++)
2691
2728
  (t(p[n], n, p) ? e : s).push(p[n]);
2692
2729
  return [e, s];
2693
2730
  }
2694
- const Dn = /\*?\s*@((?:no)?flow)\b/;
2695
- var Mn = (p) => class extends p {
2731
+ const Mn = /\*?\s*@((?:no)?flow)\b/;
2732
+ var Fn = (p) => class extends p {
2696
2733
  constructor(...e) {
2697
2734
  super(...e), this.flowPragma = void 0;
2698
2735
  }
2699
2736
  getScopeHandler() {
2700
- return In;
2737
+ return Nn;
2701
2738
  }
2702
2739
  shouldParseTypes() {
2703
2740
  return this.getPluginOption("flow", "all") || this.flowPragma === "flow";
@@ -2707,7 +2744,7 @@ function Ja() {
2707
2744
  }
2708
2745
  addComment(e) {
2709
2746
  if (this.flowPragma === void 0) {
2710
- const s = Dn.exec(e.value);
2747
+ const s = Mn.exec(e.value);
2711
2748
  if (s) if (s[1] === "flow")
2712
2749
  this.flowPragma = "flow";
2713
2750
  else if (s[1] === "noflow")
@@ -2775,7 +2812,7 @@ function Ja() {
2775
2812
  this.scope.exit(), this.expect(8), this.finishNode(s, "BlockStatement");
2776
2813
  let c = null, f = !1;
2777
2814
  return n.forEach((y) => {
2778
- kn(y) ? (c === "CommonJS" && this.raise(G.AmbiguousDeclareModuleKind, y), c = "ES") : y.type === "DeclareModuleExports" && (f && this.raise(G.DuplicateDeclareModuleExports, y), c === "ES" && this.raise(G.AmbiguousDeclareModuleKind, y), c = "CommonJS", f = !0);
2815
+ Ln(y) ? (c === "CommonJS" && this.raise(G.AmbiguousDeclareModuleKind, y), c = "ES") : y.type === "DeclareModuleExports" && (f && this.raise(G.DuplicateDeclareModuleExports, y), c === "ES" && this.raise(G.AmbiguousDeclareModuleKind, y), c = "CommonJS", f = !0);
2779
2816
  }), e.kind = c || "CommonJS", this.finishNode(e, "DeclareModule");
2780
2817
  }
2781
2818
  flowParseDeclareExportDeclaration(e, s) {
@@ -2785,7 +2822,7 @@ function Ja() {
2785
2822
  const n = this.state.value;
2786
2823
  throw this.raise(G.UnsupportedDeclareExportKind, this.state.startLoc, {
2787
2824
  unsupportedExportKind: n,
2788
- suggestion: Ln[n]
2825
+ suggestion: On[n]
2789
2826
  });
2790
2827
  }
2791
2828
  if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131))
@@ -2844,7 +2881,7 @@ function Ja() {
2844
2881
  e === "_" && this.raise(G.UnexpectedReservedUnderscore, this.state.startLoc);
2845
2882
  }
2846
2883
  checkReservedType(e, s, n) {
2847
- Nn.has(e) && this.raise(n ? G.AssignReservedType : G.UnexpectedReservedType, s, {
2884
+ kn.has(e) && this.raise(n ? G.AssignReservedType : G.UnexpectedReservedType, s, {
2848
2885
  reservedType: e
2849
2886
  });
2850
2887
  }
@@ -2967,11 +3004,11 @@ function Ja() {
2967
3004
  else {
2968
3005
  let le = "init";
2969
3006
  if (this.isContextual(99) || this.isContextual(104)) {
2970
- const Je = this.lookahead();
2971
- _t(Je.type) && (le = this.state.value, this.next());
3007
+ const He = this.lookahead();
3008
+ _t(He.type) && (le = this.state.value, this.next());
2972
3009
  }
2973
- const Qe = this.flowParseObjectTypeProperty(fe, W, K, te, le, n, f ?? !C);
2974
- Qe === null ? (F = !0, ee = this.state.lastTokStartLoc) : b.properties.push(Qe);
3010
+ const Ye = this.flowParseObjectTypeProperty(fe, W, K, te, le, n, f ?? !C);
3011
+ Ye === null ? (F = !0, ee = this.state.lastTokStartLoc) : b.properties.push(Ye);
2975
3012
  }
2976
3013
  this.flowObjectTypeSemicolon(), ee && !this.match(8) && !this.match(9) && this.raise(G.UnexpectedExplicitInexactInObject, ee);
2977
3014
  }
@@ -3131,7 +3168,7 @@ function Ja() {
3131
3168
  return this.flowParseTypeofType();
3132
3169
  default:
3133
3170
  if (ls(this.state.type)) {
3134
- const b = Ve(this.state.type);
3171
+ const b = qe(this.state.type);
3135
3172
  return this.next(), super.createIdentifier(s, b);
3136
3173
  } else if (se(this.state.type))
3137
3174
  return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(e, s, this.parseIdentifier());
@@ -3311,7 +3348,7 @@ function Ja() {
3311
3348
  const f = n.pop();
3312
3349
  f.type === "ArrowFunctionExpression" && f.body.type !== "BlockStatement" ? (f.typeParameters || !f.returnType ? this.finishArrowValidation(f) : c.push(f), n.push(f.body)) : f.type === "ConditionalExpression" && (n.push(f.consequent), n.push(f.alternate));
3313
3350
  }
3314
- return s ? (c.forEach((f) => this.finishArrowValidation(f)), [c, []]) : On(c, (f) => f.params.every((y) => this.isAssignable(y, !0)));
3351
+ return s ? (c.forEach((f) => this.finishArrowValidation(f)), [c, []]) : Dn(c, (f) => f.params.every((y) => this.isAssignable(y, !0)));
3315
3352
  }
3316
3353
  finishArrowValidation(e) {
3317
3354
  var s;
@@ -3386,7 +3423,7 @@ function Ja() {
3386
3423
  }
3387
3424
  getTokenFromCode(e) {
3388
3425
  const s = this.input.charCodeAt(this.state.pos + 1);
3389
- e === 123 && s === 124 ? this.finishOp(6, 2) : this.state.inType && (e === 62 || e === 60) ? this.finishOp(e === 62 ? 48 : 47, 1) : this.state.inType && e === 63 ? s === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : En(e, s, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(e);
3426
+ e === 123 && s === 124 ? this.finishOp(6, 2) : this.state.inType && (e === 62 || e === 60) ? this.finishOp(e === 62 ? 48 : 47, 1) : this.state.inType && e === 63 ? s === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : An(e, s, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(e);
3390
3427
  }
3391
3428
  isAssignable(e, s) {
3392
3429
  return e.type === "TypeCastExpression" ? this.isAssignable(e.expression, s) : super.isAssignable(e, s);
@@ -3975,7 +4012,7 @@ function Ja() {
3975
4012
  return e.type === "TypeCastExpression" ? e.expression : e;
3976
4013
  }
3977
4014
  };
3978
- const Fn = {
4015
+ const Bn = {
3979
4016
  __proto__: null,
3980
4017
  quot: '"',
3981
4018
  amp: "&",
@@ -4230,8 +4267,8 @@ function Ja() {
4230
4267
  clubs: "♣",
4231
4268
  hearts: "♥",
4232
4269
  diams: "♦"
4233
- }, Bn = /\r\n|[\r\n\u2028\u2029]/, Ut = new RegExp(Bn.source, "g");
4234
- function rt(p) {
4270
+ }, _n = /\r\n|[\r\n\u2028\u2029]/, Ut = new RegExp(_n.source, "g");
4271
+ function it(p) {
4235
4272
  switch (p) {
4236
4273
  case 10:
4237
4274
  case 13:
@@ -4244,12 +4281,12 @@ function Ja() {
4244
4281
  }
4245
4282
  function tr(p, t, e) {
4246
4283
  for (let s = t; s < e; s++)
4247
- if (rt(p.charCodeAt(s)))
4284
+ if (it(p.charCodeAt(s)))
4248
4285
  return !0;
4249
4286
  return !1;
4250
4287
  }
4251
4288
  const ds = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ms = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
4252
- function _n(p) {
4289
+ function jn(p) {
4253
4290
  switch (p) {
4254
4291
  case 9:
4255
4292
  case 11:
@@ -4277,7 +4314,7 @@ function Ja() {
4277
4314
  return !1;
4278
4315
  }
4279
4316
  }
4280
- const Ge = T`jsx`({
4317
+ const Qe = T`jsx`({
4281
4318
  AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.",
4282
4319
  MissingClosingTagElement: ({
4283
4320
  openingTagName: p
@@ -4292,24 +4329,24 @@ function Ja() {
4292
4329
  UnterminatedJsxContent: "Unterminated JSX contents.",
4293
4330
  UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"
4294
4331
  });
4295
- function qe(p) {
4332
+ function ze(p) {
4296
4333
  return p ? p.type === "JSXOpeningFragment" || p.type === "JSXClosingFragment" : !1;
4297
4334
  }
4298
- function it(p) {
4335
+ function nt(p) {
4299
4336
  if (p.type === "JSXIdentifier")
4300
4337
  return p.name;
4301
4338
  if (p.type === "JSXNamespacedName")
4302
4339
  return p.namespace.name + ":" + p.name.name;
4303
4340
  if (p.type === "JSXMemberExpression")
4304
- return it(p.object) + "." + it(p.property);
4341
+ return nt(p.object) + "." + nt(p.property);
4305
4342
  throw new Error("Node had unexpected type: " + p.type);
4306
4343
  }
4307
- var jn = (p) => class extends p {
4344
+ var Rn = (p) => class extends p {
4308
4345
  jsxReadToken() {
4309
4346
  let e = "", s = this.state.pos;
4310
4347
  for (; ; ) {
4311
4348
  if (this.state.pos >= this.length)
4312
- throw this.raise(Ge.UnterminatedJsxContent, this.state.startLoc);
4349
+ throw this.raise(Qe.UnterminatedJsxContent, this.state.startLoc);
4313
4350
  const n = this.input.charCodeAt(this.state.pos);
4314
4351
  switch (n) {
4315
4352
  case 60:
@@ -4326,7 +4363,7 @@ function Ja() {
4326
4363
  case 62:
4327
4364
  case 125:
4328
4365
  default:
4329
- rt(n) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos;
4366
+ it(n) ? (e += this.input.slice(s, this.state.pos), e += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos;
4330
4367
  }
4331
4368
  }
4332
4369
  }
@@ -4344,7 +4381,7 @@ function Ja() {
4344
4381
  throw this.raise(m.UnterminatedString, this.state.startLoc);
4345
4382
  const c = this.input.charCodeAt(this.state.pos);
4346
4383
  if (c === e) break;
4347
- c === 38 ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadEntity(), n = this.state.pos) : rt(c) ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadNewLine(!1), n = this.state.pos) : ++this.state.pos;
4384
+ c === 38 ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadEntity(), n = this.state.pos) : it(c) ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadNewLine(!1), n = this.state.pos) : ++this.state.pos;
4348
4385
  }
4349
4386
  s += this.input.slice(n, this.state.pos++), this.finishToken(134, s);
4350
4387
  }
@@ -4362,7 +4399,7 @@ function Ja() {
4362
4399
  for (; s++ < 10 && this.state.pos < this.length && !(n = this.codePointAtPos(this.state.pos) === 59); )
4363
4400
  ++this.state.pos;
4364
4401
  if (n) {
4365
- const c = this.input.slice(e, this.state.pos), f = Fn[c];
4402
+ const c = this.input.slice(e, this.state.pos), f = Bn[c];
4366
4403
  if (++this.state.pos, f)
4367
4404
  return f;
4368
4405
  }
@@ -4374,12 +4411,12 @@ function Ja() {
4374
4411
  const s = this.state.pos;
4375
4412
  do
4376
4413
  e = this.input.charCodeAt(++this.state.pos);
4377
- while (st(e) || e === 45);
4414
+ while (rt(e) || e === 45);
4378
4415
  this.finishToken(141, this.input.slice(s, this.state.pos));
4379
4416
  }
4380
4417
  jsxParseIdentifier() {
4381
4418
  const e = this.startNode();
4382
- return this.match(141) ? e.name = this.state.value : ls(this.state.type) ? e.name = Ve(this.state.type) : this.unexpected(), this.next(), this.finishNode(e, "JSXIdentifier");
4419
+ return this.match(141) ? e.name = this.state.value : ls(this.state.type) ? e.name = qe(this.state.type) : this.unexpected(), this.next(), this.finishNode(e, "JSXIdentifier");
4383
4420
  }
4384
4421
  jsxParseNamespacedName() {
4385
4422
  const e = this.state.startLoc, s = this.jsxParseIdentifier();
@@ -4402,12 +4439,12 @@ function Ja() {
4402
4439
  let e;
4403
4440
  switch (this.state.type) {
4404
4441
  case 5:
4405
- return e = this.startNode(), this.setContext(k.brace), this.next(), e = this.jsxParseExpressionContainer(e, k.j_oTag), e.expression.type === "JSXEmptyExpression" && this.raise(Ge.AttributeIsEmpty, e), e;
4442
+ return e = this.startNode(), this.setContext(k.brace), this.next(), e = this.jsxParseExpressionContainer(e, k.j_oTag), e.expression.type === "JSXEmptyExpression" && this.raise(Qe.AttributeIsEmpty, e), e;
4406
4443
  case 143:
4407
4444
  case 134:
4408
4445
  return this.parseExprAtom();
4409
4446
  default:
4410
- throw this.raise(Ge.UnsupportedJsxValue, this.state.startLoc);
4447
+ throw this.raise(Qe.UnsupportedJsxValue, this.state.startLoc);
4411
4448
  }
4412
4449
  }
4413
4450
  jsxParseEmptyExpression() {
@@ -4468,15 +4505,15 @@ function Ja() {
4468
4505
  default:
4469
4506
  this.unexpected();
4470
4507
  }
4471
- qe(c) && !qe(f) && f !== null ? this.raise(Ge.MissingClosingTagFragment, f) : !qe(c) && qe(f) ? this.raise(Ge.MissingClosingTagElement, f, {
4472
- openingTagName: it(c.name)
4473
- }) : !qe(c) && !qe(f) && it(f.name) !== it(c.name) && this.raise(Ge.MissingClosingTagElement, f, {
4474
- openingTagName: it(c.name)
4508
+ ze(c) && !ze(f) && f !== null ? this.raise(Qe.MissingClosingTagFragment, f) : !ze(c) && ze(f) ? this.raise(Qe.MissingClosingTagElement, f, {
4509
+ openingTagName: nt(c.name)
4510
+ }) : !ze(c) && !ze(f) && nt(f.name) !== nt(c.name) && this.raise(Qe.MissingClosingTagElement, f, {
4511
+ openingTagName: nt(c.name)
4475
4512
  });
4476
4513
  }
4477
- if (qe(c) ? (s.openingFragment = c, s.closingFragment = f) : (s.openingElement = c, s.closingElement = f), s.children = n, this.match(47))
4478
- throw this.raise(Ge.UnwrappedAdjacentJSXElements, this.state.startLoc);
4479
- return qe(c) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement");
4514
+ if (ze(c) ? (s.openingFragment = c, s.closingFragment = f) : (s.openingElement = c, s.closingElement = f), s.children = n, this.match(47))
4515
+ throw this.raise(Qe.UnwrappedAdjacentJSXElements, this.state.startLoc);
4516
+ return ze(c) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement");
4480
4517
  }
4481
4518
  jsxParseElement() {
4482
4519
  const e = this.state.startLoc;
@@ -4533,20 +4570,20 @@ function Ja() {
4533
4570
  const c = s[s.length - 1];
4534
4571
  c === k.j_oTag && e === 56 || c === k.j_cTag ? (s.pop(), this.state.canStartJSXElement = s[s.length - 1] === k.j_expr) : (this.setContext(k.j_expr), this.state.canStartJSXElement = !0);
4535
4572
  } else
4536
- this.state.canStartJSXElement = ln(n);
4573
+ this.state.canStartJSXElement = cn(n);
4537
4574
  }
4538
4575
  };
4539
- class Rn extends ps {
4576
+ class Un extends ps {
4540
4577
  constructor(...t) {
4541
4578
  super(...t), this.tsNames = /* @__PURE__ */ new Map();
4542
4579
  }
4543
4580
  }
4544
- class Un extends fs {
4581
+ class $n extends fs {
4545
4582
  constructor(...t) {
4546
4583
  super(...t), this.importsStack = [];
4547
4584
  }
4548
4585
  createScope(t) {
4549
- return this.importsStack.push(/* @__PURE__ */ new Set()), new Rn(t);
4586
+ return this.importsStack.push(/* @__PURE__ */ new Set()), new Un(t);
4550
4587
  }
4551
4588
  enter(t) {
4552
4589
  t === 1024 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(t);
@@ -4605,7 +4642,7 @@ function Ja() {
4605
4642
  super.checkLocalExport(t);
4606
4643
  }
4607
4644
  }
4608
- class $n {
4645
+ class Vn {
4609
4646
  constructor() {
4610
4647
  this.stacks = [];
4611
4648
  }
@@ -4634,7 +4671,7 @@ function Ja() {
4634
4671
  function $t(p, t) {
4635
4672
  return (p ? 2 : 0) | (t ? 1 : 0);
4636
4673
  }
4637
- class Vn {
4674
+ class qn {
4638
4675
  constructor() {
4639
4676
  this.sawUnambiguousESM = !1, this.ambiguousScriptDifferentAst = !1;
4640
4677
  }
@@ -4666,19 +4703,19 @@ function Ja() {
4666
4703
  function sr(p, t) {
4667
4704
  p.trailingComments === void 0 ? p.trailingComments = t : p.trailingComments.unshift(...t);
4668
4705
  }
4669
- function qn(p, t) {
4706
+ function zn(p, t) {
4670
4707
  p.leadingComments === void 0 ? p.leadingComments = t : p.leadingComments.unshift(...t);
4671
4708
  }
4672
- function dt(p, t) {
4709
+ function mt(p, t) {
4673
4710
  p.innerComments === void 0 ? p.innerComments = t : p.innerComments.unshift(...t);
4674
4711
  }
4675
- function ze(p, t, e) {
4712
+ function We(p, t, e) {
4676
4713
  let s = null, n = t.length;
4677
4714
  for (; s === null && n > 0; )
4678
4715
  s = t[--n];
4679
- s === null || s.start > e.start ? dt(p, e.comments) : sr(s, e.comments);
4716
+ s === null || s.start > e.start ? mt(p, e.comments) : sr(s, e.comments);
4680
4717
  }
4681
- class zn extends Vn {
4718
+ class Wn extends qn {
4682
4719
  addComment(t) {
4683
4720
  this.filename && (t.loc.filename = this.filename);
4684
4721
  const {
@@ -4713,7 +4750,7 @@ function Ja() {
4713
4750
  comments: s
4714
4751
  } = t;
4715
4752
  if (t.leadingNode !== null || t.trailingNode !== null)
4716
- t.leadingNode !== null && sr(t.leadingNode, s), t.trailingNode !== null && qn(t.trailingNode, s);
4753
+ t.leadingNode !== null && sr(t.leadingNode, s), t.trailingNode !== null && zn(t.trailingNode, s);
4717
4754
  else {
4718
4755
  const {
4719
4756
  containingNode: n,
@@ -4724,14 +4761,14 @@ function Ja() {
4724
4761
  case "ObjectExpression":
4725
4762
  case "ObjectPattern":
4726
4763
  case "RecordExpression":
4727
- ze(n, n.properties, t);
4764
+ We(n, n.properties, t);
4728
4765
  break;
4729
4766
  case "CallExpression":
4730
4767
  case "OptionalCallExpression":
4731
- ze(n, n.arguments, t);
4768
+ We(n, n.arguments, t);
4732
4769
  break;
4733
4770
  case "ImportExpression":
4734
- ze(n, [n.source, (e = n.options) != null ? e : null], t);
4771
+ We(n, [n.source, (e = n.options) != null ? e : null], t);
4735
4772
  break;
4736
4773
  case "FunctionDeclaration":
4737
4774
  case "FunctionExpression":
@@ -4739,28 +4776,28 @@ function Ja() {
4739
4776
  case "ObjectMethod":
4740
4777
  case "ClassMethod":
4741
4778
  case "ClassPrivateMethod":
4742
- ze(n, n.params, t);
4779
+ We(n, n.params, t);
4743
4780
  break;
4744
4781
  case "ArrayExpression":
4745
4782
  case "ArrayPattern":
4746
4783
  case "TupleExpression":
4747
- ze(n, n.elements, t);
4784
+ We(n, n.elements, t);
4748
4785
  break;
4749
4786
  case "ExportNamedDeclaration":
4750
4787
  case "ImportDeclaration":
4751
- ze(n, n.specifiers, t);
4788
+ We(n, n.specifiers, t);
4752
4789
  break;
4753
4790
  case "TSEnumDeclaration":
4754
- ze(n, n.members, t);
4791
+ We(n, n.members, t);
4755
4792
  break;
4756
4793
  case "TSEnumBody":
4757
- ze(n, n.members, t);
4794
+ We(n, n.members, t);
4758
4795
  break;
4759
4796
  default:
4760
- dt(n, s);
4797
+ mt(n, s);
4761
4798
  }
4762
4799
  else
4763
- dt(n, s);
4800
+ mt(n, s);
4764
4801
  }
4765
4802
  }
4766
4803
  finalizeRemainingComments() {
@@ -4900,7 +4937,7 @@ function Ja() {
4900
4937
  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;
4901
4938
  }
4902
4939
  }
4903
- var Wn = function(t) {
4940
+ var Jn = function(t) {
4904
4941
  return t >= 48 && t <= 57;
4905
4942
  };
4906
4943
  const rr = {
@@ -4924,13 +4961,13 @@ function Ja() {
4924
4961
  break;
4925
4962
  }
4926
4963
  const W = t.charCodeAt(e);
4927
- if (Jn(p, W, t, e)) {
4964
+ if (Hn(p, W, t, e)) {
4928
4965
  w += t.slice(F, e);
4929
4966
  break;
4930
4967
  }
4931
4968
  if (W === 92) {
4932
4969
  w += t.slice(F, e);
4933
- const K = Hn(t, e, s, n, p === "template", c);
4970
+ const K = Kn(t, e, s, n, p === "template", c);
4934
4971
  K.ch === null && !C ? C = {
4935
4972
  pos: e,
4936
4973
  lineStart: s,
@@ -4952,10 +4989,10 @@ function Ja() {
4952
4989
  containsInvalid: !!C
4953
4990
  };
4954
4991
  }
4955
- function Jn(p, t, e, s) {
4992
+ function Hn(p, t, e, s) {
4956
4993
  return p === "template" ? t === 96 || t === 36 && e.charCodeAt(s + 1) === 123 : t === (p === "double" ? 34 : 39);
4957
4994
  }
4958
- function Hn(p, t, e, s, n, c) {
4995
+ function Kn(p, t, e, s, n, c) {
4959
4996
  const f = !n;
4960
4997
  t++;
4961
4998
  const y = (w) => ({
@@ -5038,9 +5075,9 @@ function Ja() {
5038
5075
  const te = p.charCodeAt(t);
5039
5076
  let le;
5040
5077
  if (te === 95 && y !== "bail") {
5041
- const Qe = p.charCodeAt(t - 1), Je = p.charCodeAt(t + 1);
5078
+ const Ye = p.charCodeAt(t - 1), He = p.charCodeAt(t + 1);
5042
5079
  if (y) {
5043
- if (Number.isNaN(Je) || !$(Je) || F.has(Qe) || F.has(Je)) {
5080
+ if (Number.isNaN(He) || !$(He) || F.has(Ye) || F.has(He)) {
5044
5081
  if (w) return {
5045
5082
  n: null,
5046
5083
  pos: t
@@ -5057,7 +5094,7 @@ function Ja() {
5057
5094
  ++t;
5058
5095
  continue;
5059
5096
  }
5060
- if (te >= 97 ? le = te - 97 + 10 : te >= 65 ? le = te - 65 + 10 : Wn(te) ? le = te - 48 : le = 1 / 0, le >= n) {
5097
+ if (te >= 97 ? le = te - 97 + 10 : te >= 65 ? le = te - 65 + 10 : Jn(te) ? le = te - 48 : le = 1 / 0, le >= n) {
5061
5098
  if (le <= 9 && w)
5062
5099
  return {
5063
5100
  n: null,
@@ -5105,20 +5142,20 @@ function Ja() {
5105
5142
  pos: t
5106
5143
  };
5107
5144
  }
5108
- function mt(p, t, e) {
5145
+ function yt(p, t, e) {
5109
5146
  return new l(e, p - t, p);
5110
5147
  }
5111
- const Kn = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]);
5112
- class We {
5148
+ const Xn = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]);
5149
+ class Je {
5113
5150
  constructor(t) {
5114
5151
  const e = t.startIndex || 0;
5115
5152
  this.type = t.type, this.value = t.value, this.start = e + t.start, this.end = e + t.end, this.loc = new r(t.startLoc, t.endLoc);
5116
5153
  }
5117
5154
  }
5118
- class Xn extends zn {
5155
+ class Gn extends Wn {
5119
5156
  constructor(t, e) {
5120
5157
  super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = {
5121
- invalidDigit: (s, n, c, f) => this.optionFlags & 2048 ? (this.raise(m.InvalidDigit, mt(s, n, c), {
5158
+ invalidDigit: (s, n, c, f) => this.optionFlags & 2048 ? (this.raise(m.InvalidDigit, yt(s, n, c), {
5122
5159
  radix: f
5123
5160
  }), !0) : !1,
5124
5161
  numericSeparatorInEscapeSequence: this.errorBuilder(m.NumericSeparatorInEscapeSequence),
@@ -5128,15 +5165,15 @@ function Ja() {
5128
5165
  invalidCodePoint: this.errorBuilder(m.InvalidCodePoint)
5129
5166
  }), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, {
5130
5167
  strictNumericEscape: (s, n, c) => {
5131
- this.recordStrictModeErrors(m.StrictNumericEscape, mt(s, n, c));
5168
+ this.recordStrictModeErrors(m.StrictNumericEscape, yt(s, n, c));
5132
5169
  },
5133
5170
  unterminated: (s, n, c) => {
5134
- throw this.raise(m.UnterminatedString, mt(s - 1, n, c));
5171
+ throw this.raise(m.UnterminatedString, yt(s - 1, n, c));
5135
5172
  }
5136
5173
  }), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, {
5137
5174
  strictNumericEscape: this.errorBuilder(m.StrictNumericEscape),
5138
5175
  unterminated: (s, n, c) => {
5139
- throw this.raise(m.UnterminatedTemplate, mt(s, n, c));
5176
+ throw this.raise(m.UnterminatedTemplate, yt(s, n, c));
5140
5177
  }
5141
5178
  }), this.state = new ys(), this.state.init(t), this.input = e, this.length = e.length, this.comments = [], this.isLookahead = !1;
5142
5179
  }
@@ -5144,7 +5181,7 @@ function Ja() {
5144
5181
  this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength;
5145
5182
  }
5146
5183
  next() {
5147
- this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new We(this.state)), this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken();
5184
+ this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new Je(this.state)), this.state.lastTokEndLoc = this.state.endLoc, this.state.lastTokStartLoc = this.state.startLoc, this.nextToken();
5148
5185
  }
5149
5186
  eat(t) {
5150
5187
  return this.match(t) ? (this.next(), !0) : !1;
@@ -5240,7 +5277,7 @@ function Ja() {
5240
5277
  this.isLookahead || (s = this.state.curPosition());
5241
5278
  let n = this.input.charCodeAt(this.state.pos += t);
5242
5279
  if (this.state.pos < this.length)
5243
- for (; !rt(n) && ++this.state.pos < this.length; )
5280
+ for (; !it(n) && ++this.state.pos < this.length; )
5244
5281
  n = this.input.charCodeAt(this.state.pos);
5245
5282
  if (this.isLookahead) return;
5246
5283
  const c = this.state.pos, y = {
@@ -5286,7 +5323,7 @@ function Ja() {
5286
5323
  }
5287
5324
  break;
5288
5325
  default:
5289
- if (_n(s))
5326
+ if (jn(s))
5290
5327
  ++this.state.pos;
5291
5328
  else if (s === 45 && !this.inModule && this.optionFlags & 8192) {
5292
5329
  const n = this.state.pos;
@@ -5354,7 +5391,7 @@ function Ja() {
5354
5391
  let t = this.input.charCodeAt(this.state.pos + 1);
5355
5392
  if (t !== 33) return !1;
5356
5393
  const e = this.state.pos;
5357
- for (this.state.pos += 1; !rt(t) && ++this.state.pos < this.length; )
5394
+ for (this.state.pos += 1; !it(t) && ++this.state.pos < this.length; )
5358
5395
  t = this.input.charCodeAt(this.state.pos);
5359
5396
  const s = this.input.slice(e + 2, this.state.pos);
5360
5397
  return this.finishToken(28, s), !0;
@@ -5608,7 +5645,7 @@ function Ja() {
5608
5645
  if (c >= this.length)
5609
5646
  throw this.raise(m.UnterminatedRegExp, i(t, 1));
5610
5647
  const w = this.input.charCodeAt(c);
5611
- if (rt(w))
5648
+ if (it(w))
5612
5649
  throw this.raise(m.UnterminatedRegExp, i(t, 1));
5613
5650
  if (s)
5614
5651
  s = !1;
@@ -5628,9 +5665,9 @@ function Ja() {
5628
5665
  const b = () => i(t, c + 2 - e);
5629
5666
  for (; c < this.length; ) {
5630
5667
  const w = this.codePointAtPos(c), C = String.fromCharCode(w);
5631
- if (Kn.has(w))
5668
+ if (Xn.has(w))
5632
5669
  w === 118 ? y.includes("u") && this.raise(m.IncompatibleRegExpUVFlags, b()) : w === 117 && y.includes("v") && this.raise(m.IncompatibleRegExpUVFlags, b()), y.includes(C) && this.raise(m.DuplicateRegExpFlags, b());
5633
- else if (st(w) || w === 92)
5670
+ else if (rt(w) || w === 92)
5634
5671
  this.raise(m.MalformedRegExpFlags, b());
5635
5672
  else
5636
5673
  break;
@@ -5742,11 +5779,11 @@ function Ja() {
5742
5779
  let n = this.state.pos;
5743
5780
  for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) {
5744
5781
  const c = this.codePointAtPos(this.state.pos);
5745
- if (st(c))
5782
+ if (rt(c))
5746
5783
  this.state.pos += c <= 65535 ? 1 : 2;
5747
5784
  else if (c === 92) {
5748
5785
  this.state.containsEsc = !0, e += this.input.slice(n, this.state.pos);
5749
- const f = this.state.curPosition(), y = this.state.pos === s ? Re : st;
5786
+ const f = this.state.curPosition(), y = this.state.pos === s ? Re : rt;
5750
5787
  if (this.input.charCodeAt(++this.state.pos) !== 117) {
5751
5788
  this.raise(m.MissingUnicodeEscape, this.state.curPosition()), n = this.state.pos - 1;
5752
5789
  continue;
@@ -5760,15 +5797,15 @@ function Ja() {
5760
5797
  return e + this.input.slice(n, this.state.pos);
5761
5798
  }
5762
5799
  readWord(t) {
5763
- const e = this.readWord1(t), s = ke.get(e);
5764
- s !== void 0 ? this.finishToken(s, Ve(s)) : this.finishToken(132, e);
5800
+ const e = this.readWord1(t), s = Le.get(e);
5801
+ s !== void 0 ? this.finishToken(s, qe(s)) : this.finishToken(132, e);
5765
5802
  }
5766
5803
  checkKeywordEscapes() {
5767
5804
  const {
5768
5805
  type: t
5769
5806
  } = this.state;
5770
5807
  ls(t) && this.state.containsEsc && this.raise(m.InvalidEscapedReservedWord, this.state.startLoc, {
5771
- reservedWord: Ve(t)
5808
+ reservedWord: qe(t)
5772
5809
  });
5773
5810
  }
5774
5811
  raise(t, e, s = {}) {
@@ -5790,7 +5827,7 @@ function Ja() {
5790
5827
  }
5791
5828
  unexpected(t, e) {
5792
5829
  throw this.raise(m.UnexpectedToken, t ?? this.state.startLoc, {
5793
- expected: e ? Ve(e) : null
5830
+ expected: e ? qe(e) : null
5794
5831
  });
5795
5832
  }
5796
5833
  expectPlugin(t, e) {
@@ -5808,16 +5845,16 @@ function Ja() {
5808
5845
  }
5809
5846
  errorBuilder(t) {
5810
5847
  return (e, s, n) => {
5811
- this.raise(t, mt(e, s, n));
5848
+ this.raise(t, yt(e, s, n));
5812
5849
  };
5813
5850
  }
5814
5851
  }
5815
- class Gn {
5852
+ class Qn {
5816
5853
  constructor() {
5817
5854
  this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map();
5818
5855
  }
5819
5856
  }
5820
- class Qn {
5857
+ class Yn {
5821
5858
  constructor(t) {
5822
5859
  this.parser = void 0, this.stack = [], this.undefinedPrivateNames = /* @__PURE__ */ new Map(), this.parser = t;
5823
5860
  }
@@ -5825,7 +5862,7 @@ function Ja() {
5825
5862
  return this.stack[this.stack.length - 1];
5826
5863
  }
5827
5864
  enter() {
5828
- this.stack.push(new Gn());
5865
+ this.stack.push(new Qn());
5829
5866
  }
5830
5867
  exit() {
5831
5868
  const t = this.stack.pop(), e = this.current();
@@ -5887,7 +5924,7 @@ function Ja() {
5887
5924
  this.declarationErrors.forEach(t);
5888
5925
  }
5889
5926
  }
5890
- class Yn {
5927
+ class Zn {
5891
5928
  constructor(t) {
5892
5929
  this.parser = void 0, this.stack = [new qt()], this.parser = t;
5893
5930
  }
@@ -5942,19 +5979,19 @@ function Ja() {
5942
5979
  });
5943
5980
  }
5944
5981
  }
5945
- function Zn() {
5982
+ function ea() {
5946
5983
  return new qt(3);
5947
5984
  }
5948
- function ea() {
5985
+ function ta() {
5949
5986
  return new or(1);
5950
5987
  }
5951
- function ta() {
5988
+ function sa() {
5952
5989
  return new or(2);
5953
5990
  }
5954
5991
  function lr() {
5955
5992
  return new qt();
5956
5993
  }
5957
- class sa extends Xn {
5994
+ class ra extends Gn {
5958
5995
  addExtra(t, e, s, n = !0) {
5959
5996
  if (!t) return;
5960
5997
  let {
@@ -5971,7 +6008,7 @@ function Ja() {
5971
6008
  isUnparsedContextual(t, e) {
5972
6009
  if (this.input.startsWith(e, t)) {
5973
6010
  const s = this.input.charCodeAt(t + e.length);
5974
- return !(st(s) || (s & 64512) === 55296);
6011
+ return !(rt(s) || (s & 64512) === 55296);
5975
6012
  }
5976
6013
  return !1;
5977
6014
  }
@@ -6094,11 +6131,11 @@ function Ja() {
6094
6131
  const c = this.scope, f = this.getScopeHandler();
6095
6132
  this.scope = new f(this, t);
6096
6133
  const y = this.prodParam;
6097
- this.prodParam = new $n();
6134
+ this.prodParam = new Vn();
6098
6135
  const b = this.classScope;
6099
- this.classScope = new Qn(this);
6136
+ this.classScope = new Yn(this);
6100
6137
  const w = this.expressionScope;
6101
- return this.expressionScope = new Yn(this), () => {
6138
+ return this.expressionScope = new Zn(this), () => {
6102
6139
  this.state.labels = e, this.exportedIdentifiers = s, this.inModule = n, this.scope = c, this.prodParam = y, this.classScope = b, this.expressionScope = w;
6103
6140
  };
6104
6141
  }
@@ -6136,7 +6173,7 @@ function Ja() {
6136
6173
  }
6137
6174
  return p;
6138
6175
  };
6139
- class ra extends sa {
6176
+ class ia extends ra {
6140
6177
  startNode() {
6141
6178
  const t = this.state.startLoc;
6142
6179
  return new Wt(this, t.index, t);
@@ -6189,7 +6226,7 @@ function Ja() {
6189
6226
  }
6190
6227
  }
6191
6228
  const cr = (p) => p.type === "ParenthesizedExpression" ? cr(p.expression) : p;
6192
- class ia extends ra {
6229
+ class na extends ia {
6193
6230
  toAssignable(t, e = !1) {
6194
6231
  var s, n;
6195
6232
  let c;
@@ -6456,7 +6493,7 @@ function Ja() {
6456
6493
  return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? m.RestTrailingComma : m.ElementAfterRest, this.state.startLoc), !0) : !1;
6457
6494
  }
6458
6495
  }
6459
- function na(p) {
6496
+ function aa(p) {
6460
6497
  if (p == null)
6461
6498
  throw new Error(`Unexpected ${p} value.`);
6462
6499
  return p;
@@ -6564,7 +6601,7 @@ function Ja() {
6564
6601
  }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${p}.`,
6565
6602
  UsingDeclarationInAmbientContext: (p) => `'${p}' declarations are not allowed in ambient contexts.`
6566
6603
  });
6567
- function aa(p) {
6604
+ function oa(p) {
6568
6605
  switch (p) {
6569
6606
  case "any":
6570
6607
  return "TSAnyKeyword";
@@ -6593,10 +6630,10 @@ function Ja() {
6593
6630
  function hr(p) {
6594
6631
  return p === "private" || p === "public" || p === "protected";
6595
6632
  }
6596
- function oa(p) {
6633
+ function la(p) {
6597
6634
  return p === "in" || p === "out";
6598
6635
  }
6599
- var la = (p) => class extends p {
6636
+ var ca = (p) => class extends p {
6600
6637
  constructor(...e) {
6601
6638
  super(...e), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, {
6602
6639
  allowedModifiers: ["in", "out"],
@@ -6613,7 +6650,7 @@ function Ja() {
6613
6650
  });
6614
6651
  }
6615
6652
  getScopeHandler() {
6616
- return Un;
6653
+ return $n;
6617
6654
  }
6618
6655
  tsIsIdentifier() {
6619
6656
  return se(this.state.type);
@@ -6660,7 +6697,7 @@ function Ja() {
6660
6697
  if (!C) break;
6661
6698
  hr(C) ? f.accessibility ? this.raise(H.DuplicateAccessibilityModifier, w, {
6662
6699
  modifier: C
6663
- }) : (y(w, C, C, "override"), y(w, C, C, "static"), y(w, C, C, "readonly"), f.accessibility = C) : oa(C) ? (f[C] && this.raise(H.DuplicateModifier, w, {
6700
+ }) : (y(w, C, C, "override"), y(w, C, C, "static"), y(w, C, C, "readonly"), f.accessibility = C) : la(C) ? (f[C] && this.raise(H.DuplicateModifier, w, {
6664
6701
  modifier: C
6665
6702
  }), f[C] = !0, y(w, C, "in", "out")) : (hasOwnProperty.call(f, C) ? this.raise(H.DuplicateModifier, w, {
6666
6703
  modifier: C
@@ -6689,7 +6726,7 @@ function Ja() {
6689
6726
  return n;
6690
6727
  }
6691
6728
  tsParseDelimitedList(e, s, n) {
6692
- return na(this.tsParseDelimitedListWorker(e, s, !0, n));
6729
+ return aa(this.tsParseDelimitedListWorker(e, s, !0, n));
6693
6730
  }
6694
6731
  tsParseDelimitedListWorker(e, s, n, c) {
6695
6732
  const f = [];
@@ -6987,7 +7024,7 @@ function Ja() {
6987
7024
  type: e
6988
7025
  } = this.state;
6989
7026
  if (se(e) || e === 88 || e === 84) {
6990
- const s = e === 88 ? "TSVoidKeyword" : e === 84 ? "TSNullKeyword" : aa(this.state.value);
7027
+ const s = e === 88 ? "TSVoidKeyword" : e === 84 ? "TSNullKeyword" : oa(this.state.value);
6991
7028
  if (s !== void 0 && this.lookaheadCharCode() !== 46) {
6992
7029
  const n = this.startNode();
6993
7030
  return this.next(), this.finishNode(n, s);
@@ -7040,7 +7077,7 @@ function Ja() {
7040
7077
  }
7041
7078
  }
7042
7079
  tsParseTypeOperatorOrHigher() {
7043
- return dn(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
7080
+ return mn(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
7044
7081
  }
7045
7082
  tsParseUnionOrIntersectionType(e, s, n) {
7046
7083
  const c = this.startNode(), f = this.eat(n), y = [];
@@ -7394,7 +7431,7 @@ function Ja() {
7394
7431
  return e.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), e.params.length === 0 ? this.raise(H.EmptyTypeArguments, e) : !this.state.inType && this.curContext() === k.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(e, "TSTypeParameterInstantiation");
7395
7432
  }
7396
7433
  tsIsDeclarationStart() {
7397
- return mn(this.state.type);
7434
+ return yn(this.state.type);
7398
7435
  }
7399
7436
  isExportDefaultSpecifier() {
7400
7437
  return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier();
@@ -7480,7 +7517,7 @@ function Ja() {
7480
7517
  return $.callee = e, $.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts($.arguments), $.typeParameters = w, c.optionalChainMember && ($.optional = f), this.finishCallExpression($, c.optionalChainMember);
7481
7518
  }
7482
7519
  const C = this.state.type;
7483
- if (C === 48 || C === 52 || C !== 10 && ft(C) && !this.hasPrecedingLineBreak())
7520
+ if (C === 48 || C === 52 || C !== 10 && dt(C) && !this.hasPrecedingLineBreak())
7484
7521
  return;
7485
7522
  const F = this.startNodeAt(s);
7486
7523
  return F.expression = e, F.typeParameters = w, this.finishNode(F, "TSInstantiationExpression");
@@ -7582,7 +7619,7 @@ function Ja() {
7582
7619
  id: y,
7583
7620
  init: b
7584
7621
  } of f.declarations)
7585
- b && (s === "var" || s === "let" || y.typeAnnotation ? this.raise(H.InitializerNotAllowedInAmbientContext, b) : ua(b, this.hasPlugin("estree")) || this.raise(H.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, b));
7622
+ b && (s === "var" || s === "let" || y.typeAnnotation ? this.raise(H.InitializerNotAllowedInAmbientContext, b) : ha(b, this.hasPlugin("estree")) || this.raise(H.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, b));
7586
7623
  return f;
7587
7624
  }
7588
7625
  parseStatementContent(e, s) {
@@ -8017,7 +8054,7 @@ function Ja() {
8017
8054
  e[$] = w ? "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], w ? 4098 : 4096);
8018
8055
  }
8019
8056
  fillOptionalPropertiesForTSESLint(e) {
8020
- var s, n, c, f, y, b, w, C, F, $, W, K, ee, fe, te, le, Qe, Je, Tr, Pr, Sr, wr, Er, Ar, vr, Cr, Ir, Nr, kr, Lr, Or, Dr, Mr, Fr, Br, _r, jr, Rr, Ur, $r, Vr, qr, zr, Wr, Jr, Hr;
8057
+ var s, n, c, f, y, b, w, C, F, $, W, K, ee, fe, te, le, Ye, He, Tr, Pr, Sr, wr, Er, Ar, vr, Cr, Ir, Nr, kr, Lr, Or, Dr, Mr, Fr, Br, _r, jr, Rr, Ur, $r, Vr, qr, zr, Wr, Jr, Hr;
8021
8058
  switch (e.type) {
8022
8059
  case "ExpressionStatement":
8023
8060
  (s = e.directive) != null || (e.directive = void 0);
@@ -8049,13 +8086,13 @@ function Ja() {
8049
8086
  case "TSPropertySignature":
8050
8087
  (fe = e.optional) != null || (e.optional = !1);
8051
8088
  case "TSIndexSignature":
8052
- (te = e.accessibility) != null || (e.accessibility = void 0), (le = e.readonly) != null || (e.readonly = !1), (Qe = e.static) != null || (e.static = !1);
8089
+ (te = e.accessibility) != null || (e.accessibility = void 0), (le = e.readonly) != null || (e.readonly = !1), (Ye = e.static) != null || (e.static = !1);
8053
8090
  return;
8054
8091
  case "TSAbstractPropertyDefinition":
8055
8092
  case "PropertyDefinition":
8056
8093
  case "TSAbstractAccessorProperty":
8057
8094
  case "AccessorProperty":
8058
- (Je = e.declare) != null || (e.declare = !1), (Tr = e.definite) != null || (e.definite = !1), (Pr = e.readonly) != null || (e.readonly = !1), (Sr = e.typeAnnotation) != null || (e.typeAnnotation = void 0);
8095
+ (He = e.declare) != null || (e.declare = !1), (Tr = e.definite) != null || (e.definite = !1), (Pr = e.readonly) != null || (e.readonly = !1), (Sr = e.typeAnnotation) != null || (e.typeAnnotation = void 0);
8059
8096
  case "TSAbstractMethodDefinition":
8060
8097
  case "MethodDefinition":
8061
8098
  (wr = e.accessibility) != null || (e.accessibility = void 0), (Er = e.decorators) != null || (e.decorators = []), (Ar = e.override) != null || (e.override = !1), (vr = e.optional) != null || (e.optional = !1);
@@ -8093,7 +8130,7 @@ function Ja() {
8093
8130
  }
8094
8131
  }
8095
8132
  };
8096
- function ca(p) {
8133
+ function ua(p) {
8097
8134
  if (p.type !== "MemberExpression") return !1;
8098
8135
  const {
8099
8136
  computed: t,
@@ -8101,7 +8138,7 @@ function Ja() {
8101
8138
  } = p;
8102
8139
  return t && e.type !== "StringLiteral" && (e.type !== "TemplateLiteral" || e.expressions.length > 0) ? !1 : fr(p.object);
8103
8140
  }
8104
- function ua(p, t) {
8141
+ function ha(p, t) {
8105
8142
  var e;
8106
8143
  const {
8107
8144
  type: s
@@ -8118,12 +8155,12 @@ function Ja() {
8118
8155
  }
8119
8156
  } else if (s === "StringLiteral" || s === "BooleanLiteral")
8120
8157
  return !0;
8121
- return !!(pr(p, t) || ha(p, t) || s === "TemplateLiteral" && p.expressions.length === 0 || ca(p));
8158
+ return !!(pr(p, t) || pa(p, t) || s === "TemplateLiteral" && p.expressions.length === 0 || ua(p));
8122
8159
  }
8123
8160
  function pr(p, t) {
8124
8161
  return t ? p.type === "Literal" && (typeof p.value == "number" || "bigint" in p) : p.type === "NumericLiteral" || p.type === "BigIntLiteral";
8125
8162
  }
8126
- function ha(p, t) {
8163
+ function pa(p, t) {
8127
8164
  if (p.type === "UnaryExpression") {
8128
8165
  const {
8129
8166
  operator: e,
@@ -8141,7 +8178,7 @@ function Ja() {
8141
8178
  ClassNameIsRequired: "A class name is required.",
8142
8179
  UnexpectedSpace: "Unexpected space in placeholder."
8143
8180
  });
8144
- var pa = (p) => class extends p {
8181
+ var fa = (p) => class extends p {
8145
8182
  parsePlaceholder(e) {
8146
8183
  if (this.match(133)) {
8147
8184
  const s = this.startNode();
@@ -8236,7 +8273,7 @@ function Ja() {
8236
8273
  isExportDefaultSpecifier() {
8237
8274
  if (this.match(65)) {
8238
8275
  const e = this.nextTokenStart();
8239
- if (this.isUnparsedContextual(e, "from") && this.input.startsWith(Ve(133), this.nextTokenStartSince(e + 4)))
8276
+ if (this.isUnparsedContextual(e, "from") && this.input.startsWith(qe(133), this.nextTokenStartSince(e + 4)))
8240
8277
  return !0;
8241
8278
  }
8242
8279
  return super.isExportDefaultSpecifier();
@@ -8265,7 +8302,7 @@ function Ja() {
8265
8302
  assertNoSpace() {
8266
8303
  this.state.start > this.offsetToSourcePos(this.state.lastTokEndLoc.index) && this.raise(dr.UnexpectedSpace, this.state.lastTokEndLoc);
8267
8304
  }
8268
- }, fa = (p) => class extends p {
8305
+ }, da = (p) => class extends p {
8269
8306
  parseV8Intrinsic() {
8270
8307
  if (this.match(54)) {
8271
8308
  const e = this.state.startLoc, s = this.startNode();
@@ -8282,7 +8319,7 @@ function Ja() {
8282
8319
  }
8283
8320
  };
8284
8321
  const mr = ["minimal", "fsharp", "hack", "smart"], yr = ["^^", "@@", "^", "%", "#"];
8285
- function da(p) {
8322
+ function ma(p) {
8286
8323
  if (p.has("decorators")) {
8287
8324
  if (p.has("decorators-legacy"))
8288
8325
  throw new Error("Cannot use the decorators and decorators-legacy plugin together");
@@ -8349,13 +8386,13 @@ function Ja() {
8349
8386
  }
8350
8387
  const gr = {
8351
8388
  estree: q,
8352
- jsx: jn,
8353
- flow: Mn,
8354
- typescript: la,
8355
- v8intrinsic: fa,
8356
- placeholders: pa
8357
- }, ma = Object.keys(gr);
8358
- class ya extends ia {
8389
+ jsx: Rn,
8390
+ flow: Fn,
8391
+ typescript: ca,
8392
+ v8intrinsic: da,
8393
+ placeholders: fa
8394
+ }, ya = Object.keys(gr);
8395
+ class ga extends na {
8359
8396
  checkProto(t, e, s, n) {
8360
8397
  if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand)
8361
8398
  return s;
@@ -8411,7 +8448,7 @@ function Ja() {
8411
8448
  } = this.state;
8412
8449
  (f === 10 || se(f)) && (this.state.potentialArrowAt = this.state.start);
8413
8450
  let y = this.parseMaybeConditional(t);
8414
- if (e && (y = e.call(this, y, s)), cn(this.state.type)) {
8451
+ if (e && (y = e.call(this, y, s)), un(this.state.type)) {
8415
8452
  const b = this.startNodeAt(s), w = this.state.value;
8416
8453
  if (b.operator = w, this.match(29)) {
8417
8454
  this.toAssignable(y, !0), b.left = y;
@@ -8425,7 +8462,7 @@ function Ja() {
8425
8462
  const {
8426
8463
  type: b
8427
8464
  } = this.state;
8428
- if ((this.hasPlugin("v8intrinsic") ? ft(b) : ft(b) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8465
+ if ((this.hasPlugin("v8intrinsic") ? dt(b) : dt(b) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8429
8466
  return this.raiseOverwrite(m.YieldNotInGeneratorFunction, s), this.parseYield(s);
8430
8467
  }
8431
8468
  return y;
@@ -8456,7 +8493,7 @@ function Ja() {
8456
8493
  }), this.classScope.usePrivateName(c, t.loc.start);
8457
8494
  }
8458
8495
  const n = this.state.type;
8459
- if (hn(n) && (this.prodParam.hasIn || !this.match(58))) {
8496
+ if (pn(n) && (this.prodParam.hasIn || !this.match(58))) {
8460
8497
  let c = jt(n);
8461
8498
  if (c > s) {
8462
8499
  if (n === 39) {
@@ -8502,7 +8539,7 @@ function Ja() {
8502
8539
  }
8503
8540
  parseExprOpBaseRightExpr(t, e) {
8504
8541
  const s = this.state.startLoc;
8505
- return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), s, yn(t) ? e - 1 : e);
8542
+ return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), s, gn(t) ? e - 1 : e);
8506
8543
  }
8507
8544
  parseHackPipeBody() {
8508
8545
  var t;
@@ -8524,7 +8561,7 @@ function Ja() {
8524
8561
  return e || this.checkExponentialAfterUnary(b), b;
8525
8562
  }
8526
8563
  const c = this.match(34), f = this.startNode();
8527
- if (fn(this.state.type)) {
8564
+ if (dn(this.state.type)) {
8528
8565
  f.operator = this.state.value, f.prefix = !0, this.match(72) && this.expectPlugin("throwExpressions");
8529
8566
  const b = this.match(89);
8530
8567
  if (this.next(), f.argument = this.parseMaybeUnary(null, !0), this.checkExpressionErrors(t, !0), this.state.strict && b) {
@@ -8539,7 +8576,7 @@ function Ja() {
8539
8576
  const {
8540
8577
  type: b
8541
8578
  } = this.state;
8542
- if ((this.hasPlugin("v8intrinsic") ? ft(b) : ft(b) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8579
+ if ((this.hasPlugin("v8intrinsic") ? dt(b) : dt(b) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
8543
8580
  return this.raiseOverwrite(m.AwaitNotInAsyncContext, s), this.parseAwait(s);
8544
8581
  }
8545
8582
  return y;
@@ -8552,7 +8589,7 @@ function Ja() {
8552
8589
  const n = this.state.startLoc;
8553
8590
  let c = this.parseExprSubscripts(s);
8554
8591
  if (this.checkExpressionErrors(s, !1)) return c;
8555
- for (; pn(this.state.type) && !this.canInsertSemicolon(); ) {
8592
+ for (; fn(this.state.type) && !this.canInsertSemicolon(); ) {
8556
8593
  const f = this.startNodeAt(n);
8557
8594
  f.operator = this.state.value, f.prefix = !1, f.argument = c, this.next(), this.checkLVal(c, c = this.finishNode(f, "UpdateExpression"));
8558
8595
  }
@@ -8615,7 +8652,7 @@ function Ja() {
8615
8652
  maybeAsyncArrow: b,
8616
8653
  optionalChainMember: w
8617
8654
  } = s;
8618
- b && (this.expressionScope.enter(ta()), f = new zt()), w && (y.optional = n), n ? y.arguments = this.parseCallExpressionArguments() : y.arguments = this.parseCallExpressionArguments(t.type !== "Super", y, f);
8655
+ b && (this.expressionScope.enter(sa()), f = new zt()), w && (y.optional = n), n ? y.arguments = this.parseCallExpressionArguments() : y.arguments = this.parseCallExpressionArguments(t.type !== "Super", y, f);
8619
8656
  let C = this.finishCallExpression(y, w);
8620
8657
  return b && this.shouldParseAsyncArrow() && !n ? (s.stop = !0, this.checkDestructuringPrivate(f), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), C = this.parseAsyncArrowFromCallExpression(this.startNodeAt(e), C)) : (b && (this.checkExpressionErrors(f, !0), this.expressionScope.exit()), this.toReferencedArguments(C)), this.state.maybeInArrowParameters = c, C;
8621
8658
  }
@@ -8658,7 +8695,7 @@ function Ja() {
8658
8695
  }
8659
8696
  parseAsyncArrowFromCallExpression(t, e) {
8660
8697
  var s;
8661
- return this.resetPreviousNodeTrailingComments(e), this.expect(19), this.parseArrowExpression(t, e.arguments, !0, (s = e.extra) == null ? void 0 : s.trailingCommaLoc), e.innerComments && dt(t, e.innerComments), e.callee.trailingComments && dt(t, e.callee.trailingComments), t;
8698
+ return this.resetPreviousNodeTrailingComments(e), this.expect(19), this.parseArrowExpression(t, e.arguments, !0, (s = e.extra) == null ? void 0 : s.trailingCommaLoc), e.innerComments && mt(t, e.innerComments), e.callee.trailingComments && mt(t, e.callee.trailingComments), t;
8662
8699
  }
8663
8700
  parseNoCallExpr() {
8664
8701
  const t = this.state.startLoc;
@@ -8787,14 +8824,14 @@ function Ja() {
8787
8824
  if (this.testTopicReferenceConfiguration(s, e, n))
8788
8825
  return s === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(m.PipeTopicUnbound, e), this.registerTopicReference(), this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(m.PrimaryTopicNotAllowed, e), this.registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference"));
8789
8826
  throw this.raise(m.PipeTopicUnconfiguredToken, e, {
8790
- token: Ve(n)
8827
+ token: qe(n)
8791
8828
  });
8792
8829
  }
8793
8830
  testTopicReferenceConfiguration(t, e, s) {
8794
8831
  switch (t) {
8795
8832
  case "hack":
8796
8833
  return this.hasPlugin(["pipelineOperator", {
8797
- topicToken: Ve(s)
8834
+ topicToken: qe(s)
8798
8835
  }]);
8799
8836
  case "smart":
8800
8837
  return s === 27;
@@ -8879,7 +8916,7 @@ function Ja() {
8879
8916
  parseParenAndDistinguishExpression(t) {
8880
8917
  const e = this.state.startLoc;
8881
8918
  let s;
8882
- this.next(), this.expressionScope.enter(ea());
8919
+ this.next(), this.expressionScope.enter(ta());
8883
8920
  const n = this.state.maybeInArrowParameters, c = this.state.inFSharpPipelineDirectBody;
8884
8921
  this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1;
8885
8922
  const f = this.state.startLoc, y = [], b = new zt();
@@ -9201,13 +9238,13 @@ function Ja() {
9201
9238
  type: n
9202
9239
  } = this.state;
9203
9240
  we(n) ? e = this.state.value : this.unexpected();
9204
- const c = Xe(n);
9241
+ const c = Ge(n);
9205
9242
  return t ? c && this.replaceToken(132) : this.checkReservedWord(e, s, c, !1), this.next(), e;
9206
9243
  }
9207
9244
  checkReservedWord(t, e, s, n) {
9208
- if (t.length > 10 || !vn(t))
9245
+ if (t.length > 10 || !Cn(t))
9209
9246
  return;
9210
- if (s && wn(t)) {
9247
+ if (s && En(t)) {
9211
9248
  this.raise(m.UnexpectedKeyword, e, {
9212
9249
  keyword: t
9213
9250
  });
@@ -9427,10 +9464,10 @@ function Ja() {
9427
9464
  }
9428
9465
  const bs = {
9429
9466
  kind: 1
9430
- }, ga = {
9467
+ }, xa = {
9431
9468
  kind: 2
9432
- }, xa = /[\uD800-\uDFFF]/u, Ts = /in(?:stanceof)?/y;
9433
- function ba(p, t, e) {
9469
+ }, ba = /[\uD800-\uDFFF]/u, Ts = /in(?:stanceof)?/y;
9470
+ function Ta(p, t, e) {
9434
9471
  for (let s = 0; s < p.length; s++) {
9435
9472
  const n = p[s], {
9436
9473
  type: c
@@ -9444,14 +9481,14 @@ function Ja() {
9444
9481
  value: b,
9445
9482
  end: w
9446
9483
  } = n, C = y + 1, F = i(f.start, 1);
9447
- p.splice(s, 1, new We({
9484
+ p.splice(s, 1, new Je({
9448
9485
  type: je(27),
9449
9486
  value: "#",
9450
9487
  start: y,
9451
9488
  end: C,
9452
9489
  startLoc: f.start,
9453
9490
  endLoc: F
9454
- }), new We({
9491
+ }), new Je({
9455
9492
  type: je(132),
9456
9493
  value: b,
9457
9494
  start: C,
@@ -9469,14 +9506,14 @@ function Ja() {
9469
9506
  end: w
9470
9507
  } = n, C = y + 1, F = i(f.start, 1);
9471
9508
  let $;
9472
- t.charCodeAt(y - e) === 96 ? $ = new We({
9509
+ t.charCodeAt(y - e) === 96 ? $ = new Je({
9473
9510
  type: je(22),
9474
9511
  value: "`",
9475
9512
  start: y,
9476
9513
  end: C,
9477
9514
  startLoc: f.start,
9478
9515
  endLoc: F
9479
- }) : $ = new We({
9516
+ }) : $ = new Je({
9480
9517
  type: je(8),
9481
9518
  value: "}",
9482
9519
  start: y,
@@ -9485,21 +9522,21 @@ function Ja() {
9485
9522
  endLoc: F
9486
9523
  });
9487
9524
  let W, K, ee, fe;
9488
- c === 24 ? (K = w - 1, ee = i(f.end, -1), W = b === null ? null : b.slice(1, -1), fe = new We({
9525
+ c === 24 ? (K = w - 1, ee = i(f.end, -1), W = b === null ? null : b.slice(1, -1), fe = new Je({
9489
9526
  type: je(22),
9490
9527
  value: "`",
9491
9528
  start: K,
9492
9529
  end: w,
9493
9530
  startLoc: ee,
9494
9531
  endLoc: f.end
9495
- })) : (K = w - 2, ee = i(f.end, -2), W = b === null ? null : b.slice(1, -2), fe = new We({
9532
+ })) : (K = w - 2, ee = i(f.end, -2), W = b === null ? null : b.slice(1, -2), fe = new Je({
9496
9533
  type: je(23),
9497
9534
  value: "${",
9498
9535
  start: K,
9499
9536
  end: w,
9500
9537
  startLoc: ee,
9501
9538
  endLoc: f.end
9502
- })), p.splice(s, 1, $, new We({
9539
+ })), p.splice(s, 1, $, new Je({
9503
9540
  type: je(20),
9504
9541
  value: W,
9505
9542
  start: C,
@@ -9515,9 +9552,9 @@ function Ja() {
9515
9552
  }
9516
9553
  return p;
9517
9554
  }
9518
- class Ta extends ya {
9555
+ class Pa extends ga {
9519
9556
  parseTopLevel(t, e) {
9520
- return t.program = this.parseProgram(e, 140, this.options.sourceType === "module" ? "module" : "script"), t.comments = this.comments, this.optionFlags & 256 && (t.tokens = ba(this.tokens, this.input, this.startIndex)), this.finishNode(t, "File");
9557
+ return t.program = this.parseProgram(e, 140, this.options.sourceType === "module" ? "module" : "script"), t.comments = this.comments, this.optionFlags & 256 && (t.tokens = Ta(this.tokens, this.input, this.startIndex)), this.finishNode(t, "File");
9521
9558
  }
9522
9559
  parseProgram(t, e, s) {
9523
9560
  if (t.sourceType = s, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, e), this.inModule) {
@@ -9577,7 +9614,7 @@ function Ja() {
9577
9614
  if (Re(t)) {
9578
9615
  if (Ts.lastIndex = e, Ts.test(this.input)) {
9579
9616
  const s = this.codePointAtPos(Ts.lastIndex);
9580
- if (!st(s) && s !== 92)
9617
+ if (!rt(s) && s !== 92)
9581
9618
  return !1;
9582
9619
  }
9583
9620
  return !0;
@@ -9811,7 +9848,7 @@ function Ja() {
9811
9848
  parseSwitchStatement(t) {
9812
9849
  this.next(), t.discriminant = this.parseHeaderExpression();
9813
9850
  const e = t.cases = [];
9814
- this.expect(5), this.state.labels.push(ga), this.scope.enter(256);
9851
+ this.expect(5), this.state.labels.push(xa), this.scope.enter(256);
9815
9852
  let s;
9816
9853
  for (let n; !this.match(8); )
9817
9854
  if (this.match(61) || this.match(65)) {
@@ -9854,7 +9891,7 @@ function Ja() {
9854
9891
  f.name === e && this.raise(m.LabelRedeclaration, s, {
9855
9892
  labelName: e
9856
9893
  });
9857
- const c = un(this.state.type) ? 1 : this.match(71) ? 2 : null;
9894
+ const c = hn(this.state.type) ? 1 : this.match(71) ? 2 : null;
9858
9895
  for (let f = this.state.labels.length - 1; f >= 0; f--) {
9859
9896
  const y = this.state.labels[f];
9860
9897
  if (y.statementStart === t.start)
@@ -9945,7 +9982,7 @@ function Ja() {
9945
9982
  return t || se(this.state.type) ? this.parseIdentifier() : null;
9946
9983
  }
9947
9984
  parseFunctionParams(t, e) {
9948
- this.expect(10), this.expressionScope.enter(Zn()), t.params = this.parseBindingList(11, 41, 2 | (e ? 4 : 0)), this.expressionScope.exit();
9985
+ this.expect(10), this.expressionScope.enter(ea()), t.params = this.parseBindingList(11, 41, 2 | (e ? 4 : 0)), this.expressionScope.exit();
9949
9986
  }
9950
9987
  registerFunctionStatementId(t) {
9951
9988
  t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, t.id.loc.start);
@@ -10317,7 +10354,7 @@ function Ja() {
10317
10354
  }
10318
10355
  parseModuleExportName() {
10319
10356
  if (this.match(134)) {
10320
- const t = this.parseStringLiteral(this.state.value), e = xa.exec(t.value);
10357
+ const t = this.parseStringLiteral(this.state.value), e = ba.exec(t.value);
10321
10358
  return e && this.raise(m.ModuleExportNameHasLoneSurrogate, t, {
10322
10359
  surrogateCharCode: e[0].charCodeAt(0)
10323
10360
  }), t;
@@ -10488,7 +10525,7 @@ function Ja() {
10488
10525
  return t.type === "Identifier" && t.name === "this";
10489
10526
  }
10490
10527
  }
10491
- class xr extends Ta {
10528
+ class xr extends Pa {
10492
10529
  constructor(t, e, s) {
10493
10530
  t = U(t), super(t, e), this.options = t, this.initializeScopes(), this.plugins = s, this.filename = t.sourceFilename, this.startIndex = t.startIndex;
10494
10531
  let n = 0;
@@ -10503,18 +10540,18 @@ function Ja() {
10503
10540
  return this.nextToken(), t.errors = null, this.parseTopLevel(t, e), t.errors = this.state.errors, t.comments.length = this.state.commentsLen, t;
10504
10541
  }
10505
10542
  }
10506
- function Pa(p, t) {
10543
+ function Sa(p, t) {
10507
10544
  var e;
10508
10545
  if (((e = t) == null ? void 0 : e.sourceType) === "unambiguous") {
10509
10546
  t = Object.assign({}, t);
10510
10547
  try {
10511
10548
  t.sourceType = "module";
10512
- const s = yt(t, p), n = s.parse();
10549
+ const s = gt(t, p), n = s.parse();
10513
10550
  if (s.sawUnambiguousESM)
10514
10551
  return n;
10515
10552
  if (s.ambiguousScriptDifferentAst)
10516
10553
  try {
10517
- return t.sourceType = "script", yt(t, p).parse();
10554
+ return t.sourceType = "script", gt(t, p).parse();
10518
10555
  } catch {
10519
10556
  }
10520
10557
  else
@@ -10522,26 +10559,26 @@ function Ja() {
10522
10559
  return n;
10523
10560
  } catch (s) {
10524
10561
  try {
10525
- return t.sourceType = "script", yt(t, p).parse();
10562
+ return t.sourceType = "script", gt(t, p).parse();
10526
10563
  } catch {
10527
10564
  }
10528
10565
  throw s;
10529
10566
  }
10530
10567
  } else
10531
- return yt(t, p).parse();
10568
+ return gt(t, p).parse();
10532
10569
  }
10533
- function Sa(p, t) {
10534
- const e = yt(t, p);
10570
+ function wa(p, t) {
10571
+ const e = gt(t, p);
10535
10572
  return e.options.strictMode && (e.state.strict = !0), e.getExpression();
10536
10573
  }
10537
- function wa(p) {
10574
+ function Ea(p) {
10538
10575
  const t = {};
10539
10576
  for (const e of Object.keys(p))
10540
10577
  t[e] = je(p[e]);
10541
10578
  return t;
10542
10579
  }
10543
- const Ea = wa(tt);
10544
- function yt(p, t) {
10580
+ const Aa = Ea(st);
10581
+ function gt(p, t) {
10545
10582
  let e = xr;
10546
10583
  const s = /* @__PURE__ */ new Map();
10547
10584
  if (p != null && p.plugins) {
@@ -10549,14 +10586,14 @@ function Ja() {
10549
10586
  let c, f;
10550
10587
  typeof n == "string" ? c = n : [c, f] = n, s.has(c) || s.set(c, f || {});
10551
10588
  }
10552
- da(s), e = Aa(s);
10589
+ ma(s), e = va(s);
10553
10590
  }
10554
10591
  return new e(p, t, s);
10555
10592
  }
10556
10593
  const br = /* @__PURE__ */ new Map();
10557
- function Aa(p) {
10594
+ function va(p) {
10558
10595
  const t = [];
10559
- for (const n of ma)
10596
+ for (const n of ya)
10560
10597
  p.has(n) && t.push(n);
10561
10598
  const e = t.join("|");
10562
10599
  let s = br.get(e);
@@ -10568,10 +10605,10 @@ function Ja() {
10568
10605
  }
10569
10606
  return s;
10570
10607
  }
10571
- return nt.parse = Pa, nt.parseExpression = Sa, nt.tokTypes = Ea, nt;
10608
+ return at.parse = Sa, at.parseExpression = wa, at.tokTypes = Aa, at;
10572
10609
  }
10573
- var Ha = Ja();
10574
- function ve(a) {
10610
+ var Ka = Ha();
10611
+ function Ce(a) {
10575
10612
  var l = a.use(pe), r = l.Type, i = l.builtInTypes, o = i.number;
10576
10613
  function u(x) {
10577
10614
  return r.from(
@@ -10631,8 +10668,8 @@ function ae(a) {
10631
10668
  }
10632
10669
  i && i !== r && typeof r == "object" && (Object.assign(i, r, { default: i }), r.__esModule && Object.defineProperty(i, "__esModule", { value: !0 }), l.exports = i);
10633
10670
  }
10634
- var Ka = Object.defineProperty, Xa = (a, l, r) => l in a ? Ka(a, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[l] = r, Te = (a, l, r) => (Xa(a, typeof l != "symbol" ? l + "" : l, r), r);
10635
- const ki = Object.prototype, ss = ki.toString, Ce = ki.hasOwnProperty;
10671
+ var Xa = Object.defineProperty, Ga = (a, l, r) => l in a ? Xa(a, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[l] = r, Pe = (a, l, r) => (Ga(a, typeof l != "symbol" ? l + "" : l, r), r);
10672
+ const Li = Object.prototype, ss = Li.toString, Ie = Li.hasOwnProperty;
10636
10673
  class Mt {
10637
10674
  assert(l, r) {
10638
10675
  if (!this.check(l, r)) {
@@ -10648,7 +10685,7 @@ class Mt {
10648
10685
  }
10649
10686
  class Os extends Mt {
10650
10687
  constructor(l) {
10651
- super(), this.elemType = l, Te(this, "kind", "ArrayType");
10688
+ super(), this.elemType = l, Pe(this, "kind", "ArrayType");
10652
10689
  }
10653
10690
  toString() {
10654
10691
  return "[" + this.elemType + "]";
@@ -10659,7 +10696,7 @@ class Os extends Mt {
10659
10696
  }
10660
10697
  class ai extends Mt {
10661
10698
  constructor(l) {
10662
- super(), this.value = l, Te(this, "kind", "IdentityType");
10699
+ super(), this.value = l, Pe(this, "kind", "IdentityType");
10663
10700
  }
10664
10701
  toString() {
10665
10702
  return String(this.value);
@@ -10671,7 +10708,7 @@ class ai extends Mt {
10671
10708
  }
10672
10709
  class oi extends Mt {
10673
10710
  constructor(l) {
10674
- super(), this.fields = l, Te(this, "kind", "ObjectType");
10711
+ super(), this.fields = l, Pe(this, "kind", "ObjectType");
10675
10712
  }
10676
10713
  toString() {
10677
10714
  return "{ " + this.fields.join(", ") + " }";
@@ -10682,7 +10719,7 @@ class oi extends Mt {
10682
10719
  }
10683
10720
  class li extends Mt {
10684
10721
  constructor(l) {
10685
- super(), this.types = l, Te(this, "kind", "OrType");
10722
+ super(), this.types = l, Pe(this, "kind", "OrType");
10686
10723
  }
10687
10724
  toString() {
10688
10725
  return this.types.join(" | ");
@@ -10691,9 +10728,9 @@ class li extends Mt {
10691
10728
  return this.types.some((i) => i.check(l, !!r)) ? !0 : (typeof r == "function" && r(this, l), !1);
10692
10729
  }
10693
10730
  }
10694
- class bt extends Mt {
10731
+ class Tt extends Mt {
10695
10732
  constructor(l, r) {
10696
- super(), this.name = l, this.predicate = r, Te(this, "kind", "PredicateType");
10733
+ super(), this.name = l, this.predicate = r, Pe(this, "kind", "PredicateType");
10697
10734
  }
10698
10735
  toString() {
10699
10736
  return this.name;
@@ -10703,15 +10740,15 @@ class bt extends Mt {
10703
10740
  return !i && typeof r == "function" && r(this, l), i;
10704
10741
  }
10705
10742
  }
10706
- class vt {
10743
+ class Ct {
10707
10744
  constructor(l, r) {
10708
- this.type = l, this.typeName = r, Te(this, "baseNames", []), Te(this, "ownFields", /* @__PURE__ */ Object.create(null)), Te(this, "allSupertypes", /* @__PURE__ */ Object.create(null)), Te(this, "supertypeList", []), Te(this, "allFields", /* @__PURE__ */ Object.create(null)), Te(this, "fieldNames", []), Te(this, "finalized", !1), Te(this, "buildable", !1), Te(this, "buildParams", []);
10745
+ this.type = l, this.typeName = r, 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", []);
10709
10746
  }
10710
10747
  isSupertypeOf(l) {
10711
- if (l instanceof vt) {
10748
+ if (l instanceof Ct) {
10712
10749
  if (this.finalized !== !0 || l.finalized !== !0)
10713
10750
  throw new Error("");
10714
- return Ce.call(l.allSupertypes, this.typeName);
10751
+ return Ie.call(l.allSupertypes, this.typeName);
10715
10752
  } else
10716
10753
  throw new Error(l + " is not a Def");
10717
10754
  }
@@ -10742,7 +10779,7 @@ class vt {
10742
10779
  }
10743
10780
  class ci {
10744
10781
  constructor(l, r, i, o) {
10745
- this.name = l, this.type = r, this.defaultFn = i, Te(this, "hidden"), this.hidden = !!o;
10782
+ this.name = l, this.type = r, this.defaultFn = i, Pe(this, "hidden"), this.hidden = !!o;
10746
10783
  }
10747
10784
  toString() {
10748
10785
  return JSON.stringify(this.name) + ": " + this.type;
@@ -10763,9 +10800,9 @@ function pe(a) {
10763
10800
  return new li(z.map((V) => l.from(V)));
10764
10801
  },
10765
10802
  from(z, V) {
10766
- if (z instanceof Os || z instanceof ai || z instanceof oi || z instanceof li || z instanceof bt)
10803
+ if (z instanceof Os || z instanceof ai || z instanceof oi || z instanceof li || z instanceof Tt)
10767
10804
  return z;
10768
- if (z instanceof vt)
10805
+ if (z instanceof Ct)
10769
10806
  return z.type;
10770
10807
  if (d.check(z)) {
10771
10808
  if (z.length !== 1)
@@ -10780,7 +10817,7 @@ function pe(a) {
10780
10817
  return i[X];
10781
10818
  if (typeof V != "string")
10782
10819
  throw new Error("missing name");
10783
- return new bt(V, z);
10820
+ return new Tt(V, z);
10784
10821
  }
10785
10822
  return new ai(z);
10786
10823
  },
@@ -10790,22 +10827,22 @@ function pe(a) {
10790
10827
  // The Def object d returned from Type.def may be used to configure the
10791
10828
  // type d.type by calling methods such as d.bases, d.build, and d.field.
10792
10829
  def(z) {
10793
- return Ce.call(m, z) ? m[z] : m[z] = new U(z);
10830
+ return Ie.call(m, z) ? m[z] : m[z] = new U(z);
10794
10831
  },
10795
10832
  hasDef(z) {
10796
- return Ce.call(m, z);
10833
+ return Ie.call(m, z);
10797
10834
  }
10798
10835
  };
10799
10836
  var r = [], i = [];
10800
10837
  function o(z, V) {
10801
- const X = ss.call(V), Y = new bt(
10838
+ const X = ss.call(V), Y = new Tt(
10802
10839
  z,
10803
10840
  (ie) => ss.call(ie) === X
10804
10841
  );
10805
10842
  return V && typeof V.constructor == "function" && (r.push(V.constructor), i.push(Y)), Y;
10806
10843
  }
10807
10844
  const u = o("string", "truthy"), h = o("function", function() {
10808
- }), d = o("array", []), g = o("object", {}), x = o("RegExp", /./), S = o("Date", /* @__PURE__ */ new Date()), A = o("number", 3), v = o("boolean", !0), I = o("null", null), P = o("undefined", void 0), E = typeof BigInt == "function" ? o("BigInt", BigInt(1234)) : new bt("BigInt", () => !1), T = {
10845
+ }), d = o("array", []), g = o("object", {}), x = o("RegExp", /./), S = o("Date", /* @__PURE__ */ new Date()), A = o("number", 3), v = o("boolean", !0), I = o("null", null), P = o("undefined", void 0), E = typeof BigInt == "function" ? o("BigInt", BigInt(1234)) : new Tt("BigInt", () => !1), T = {
10809
10846
  string: u,
10810
10847
  function: h,
10811
10848
  array: d,
@@ -10822,7 +10859,7 @@ function pe(a) {
10822
10859
  function O(z) {
10823
10860
  if (z && typeof z == "object") {
10824
10861
  var V = z.type;
10825
- if (typeof V == "string" && Ce.call(m, V)) {
10862
+ if (typeof V == "string" && Ie.call(m, V)) {
10826
10863
  var X = m[V];
10827
10864
  if (X.finalized)
10828
10865
  return X;
@@ -10830,10 +10867,10 @@ function pe(a) {
10830
10867
  }
10831
10868
  return null;
10832
10869
  }
10833
- class U extends vt {
10870
+ class U extends Ct {
10834
10871
  constructor(V) {
10835
10872
  super(
10836
- new bt(V, (X, Y) => this.check(X, Y)),
10873
+ new Tt(V, (X, Y) => this.check(X, Y)),
10837
10874
  V
10838
10875
  );
10839
10876
  }
@@ -10852,26 +10889,26 @@ function pe(a) {
10852
10889
  return this;
10853
10890
  this.field("type", String, () => this.typeName), this.buildable = !0;
10854
10891
  const X = (ie, ne, oe, J) => {
10855
- if (!Ce.call(ie, ne)) {
10892
+ if (!Ie.call(ie, ne)) {
10856
10893
  var Q = this.allFields;
10857
- if (!Ce.call(Q, ne))
10894
+ if (!Ie.call(Q, ne))
10858
10895
  throw new Error("" + ne);
10859
- var tt = Q[ne], se = tt.type, Xe;
10896
+ var st = Q[ne], se = st.type, Ge;
10860
10897
  if (J)
10861
- Xe = oe;
10862
- else if (tt.defaultFn)
10863
- Xe = tt.defaultFn.call(ie);
10898
+ Ge = oe;
10899
+ else if (st.defaultFn)
10900
+ Ge = st.defaultFn.call(ie);
10864
10901
  else {
10865
10902
  var we = "no value or default function given for field " + JSON.stringify(ne) + " of " + this.typeName + "(" + this.buildParams.map(function(_t) {
10866
10903
  return Q[_t];
10867
10904
  }).join(", ") + ")";
10868
10905
  throw new Error(we);
10869
10906
  }
10870
- if (!se.check(Xe))
10907
+ if (!se.check(Ge))
10871
10908
  throw new Error(
10872
- Vs(Xe) + " does not match field " + tt + " of type " + this.typeName
10909
+ Vs(Ge) + " does not match field " + st + " of type " + this.typeName
10873
10910
  );
10874
- ie[ne] = Xe;
10911
+ ie[ne] = Ge;
10875
10912
  }
10876
10913
  }, Y = (...ie) => {
10877
10914
  var ne = ie.length;
@@ -10895,7 +10932,7 @@ function pe(a) {
10895
10932
  );
10896
10933
  var ne = Object.create(q);
10897
10934
  if (Object.keys(this.allFields).forEach(function(oe) {
10898
- Ce.call(ie, oe) ? X(ne, oe, ie[oe], !0) : X(ne, oe, null, !1);
10935
+ Ie.call(ie, oe) ? X(ne, oe, ie[oe], !0) : X(ne, oe, null, !1);
10899
10936
  }), ne.type !== this.typeName)
10900
10937
  throw new Error("");
10901
10938
  return ne;
@@ -10916,7 +10953,7 @@ function pe(a) {
10916
10953
  var V = this.allFields, X = this.allSupertypes;
10917
10954
  this.baseNames.forEach((ie) => {
10918
10955
  var ne = m[ie];
10919
- if (ne instanceof vt)
10956
+ if (ne instanceof Ct)
10920
10957
  ne.finalize(), Z(V, ne.allFields), Z(X, ne.allSupertypes);
10921
10958
  else {
10922
10959
  var oe = "unknown supertype name " + JSON.stringify(ie) + " for subtype " + JSON.stringify(this.typeName);
@@ -10924,16 +10961,16 @@ function pe(a) {
10924
10961
  }
10925
10962
  }), Z(V, this.ownFields), X[this.typeName] = this, this.fieldNames.length = 0;
10926
10963
  for (var Y in V)
10927
- Ce.call(V, Y) && !V[Y].hidden && this.fieldNames.push(Y);
10964
+ Ie.call(V, Y) && !V[Y].hidden && this.fieldNames.push(Y);
10928
10965
  Object.defineProperty(N, this.typeName, {
10929
10966
  enumerable: !0,
10930
10967
  value: this.type
10931
- }), this.finalized = !0, ke(this.typeName, this.supertypeList), this.buildable && this.supertypeList.lastIndexOf("Expression") >= 0 && _e(this.typeName);
10968
+ }), this.finalized = !0, Le(this.typeName, this.supertypeList), this.buildable && this.supertypeList.lastIndexOf("Expression") >= 0 && _e(this.typeName);
10932
10969
  }
10933
10970
  }
10934
10971
  }
10935
10972
  function D(z) {
10936
- if (!Ce.call(m, z))
10973
+ if (!Ie.call(m, z))
10937
10974
  throw new Error("");
10938
10975
  var V = m[z];
10939
10976
  if (V.finalized !== !0)
@@ -10947,7 +10984,7 @@ function pe(a) {
10947
10984
  throw new Error("" + ne);
10948
10985
  for (var J = 0; J < oe.supertypeList.length; ++J) {
10949
10986
  var Q = oe.supertypeList[J];
10950
- if (Ce.call(z, Q)) {
10987
+ if (Ie.call(z, Q)) {
10951
10988
  V[ne] = Q;
10952
10989
  break;
10953
10990
  }
@@ -11029,17 +11066,17 @@ function pe(a) {
11029
11066
  return R.expressionStatement(X.from.apply(R, ie));
11030
11067
  }, R[V] = Y;
11031
11068
  }
11032
- function ke(z, V) {
11069
+ function Le(z, V) {
11033
11070
  V.length = 0, V.push(z);
11034
11071
  for (var X = /* @__PURE__ */ Object.create(null), Y = 0; Y < V.length; ++Y) {
11035
11072
  z = V[Y];
11036
11073
  var ie = m[z];
11037
11074
  if (ie.finalized !== !0)
11038
11075
  throw new Error("");
11039
- Ce.call(X, z) && delete V[X[z]], X[z] = Y, V.push.apply(V, ie.baseNames);
11076
+ Ie.call(X, z) && delete V[X[z]], X[z] = Y, V.push.apply(V, ie.baseNames);
11040
11077
  }
11041
11078
  for (var ne = 0, oe = ne, J = V.length; oe < J; ++oe)
11042
- Ce.call(V, oe) && (V[ne++] = V[oe]);
11079
+ Ie.call(V, oe) && (V[ne++] = V[oe]);
11043
11080
  V.length = ne;
11044
11081
  }
11045
11082
  function Z(z, V) {
@@ -11070,8 +11107,8 @@ function pe(a) {
11070
11107
  };
11071
11108
  }
11072
11109
  ae(() => module);
11073
- var Ga = Object.prototype, Kt = Ga.hasOwnProperty;
11074
- function Li(a) {
11110
+ var Qa = Object.prototype, Kt = Qa.hasOwnProperty;
11111
+ function Oi(a) {
11075
11112
  var l = a.use(pe), r = l.builtInTypes.array, i = l.builtInTypes.number;
11076
11113
  const o = function A(v, I, P) {
11077
11114
  if (!(this instanceof A))
@@ -11224,8 +11261,8 @@ function Li(a) {
11224
11261
  }, o;
11225
11262
  }
11226
11263
  ae(() => module);
11227
- var at = Object.prototype.hasOwnProperty;
11228
- function Qa(a) {
11264
+ var ot = Object.prototype.hasOwnProperty;
11265
+ function Ya(a) {
11229
11266
  var l = a.use(pe), r = l.Type, i = l.namedTypes, o = i.Node, u = i.Expression, h = l.builtInTypes.array, d = l.builders;
11230
11267
  const g = function D(B, R) {
11231
11268
  if (!(this instanceof D))
@@ -11274,9 +11311,9 @@ function Qa(a) {
11274
11311
  };
11275
11312
  var v = g.prototype;
11276
11313
  v.didScan = !1, v.declares = function(D) {
11277
- return this.scan(), at.call(this.bindings, D);
11314
+ return this.scan(), ot.call(this.bindings, D);
11278
11315
  }, v.declaresType = function(D) {
11279
- return this.scan(), at.call(this.types, D);
11316
+ return this.scan(), ot.call(this.types, D);
11280
11317
  }, v.declareTemporary = function(D) {
11281
11318
  if (D) {
11282
11319
  if (!/^[a-z$_]/i.test(D))
@@ -11354,7 +11391,7 @@ function Qa(a) {
11354
11391
  else if (x.check(q)) {
11355
11392
  if (i.CatchClause.check(q) && // TODO Broaden this to accept any pattern.
11356
11393
  i.Identifier.check(q.param)) {
11357
- var M = q.param.name, k = at.call(B, M);
11394
+ var M = q.param.name, k = ot.call(B, M);
11358
11395
  P(D.get("body"), B, R), k || delete B[M];
11359
11396
  }
11360
11397
  } else
@@ -11362,7 +11399,7 @@ function Qa(a) {
11362
11399
  }
11363
11400
  function m(D, B) {
11364
11401
  var R = D.value;
11365
- i.Pattern.assert(R), i.Identifier.check(R) ? at.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D] : i.AssignmentPattern && i.AssignmentPattern.check(R) ? m(D.get("left"), B) : i.ObjectPattern && i.ObjectPattern.check(R) ? D.get("properties").each(function(q) {
11402
+ i.Pattern.assert(R), i.Identifier.check(R) ? ot.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D] : i.AssignmentPattern && i.AssignmentPattern.check(R) ? m(D.get("left"), B) : i.ObjectPattern && i.ObjectPattern.check(R) ? D.get("properties").each(function(q) {
11366
11403
  var M = q.value;
11367
11404
  i.Pattern.check(M) ? m(q, B) : i.Property.check(M) || i.ObjectProperty && i.ObjectProperty.check(M) ? m(q.get("value"), B) : i.SpreadProperty && i.SpreadProperty.check(M) && m(q.get("argument"), B);
11368
11405
  }) : i.ArrayPattern && i.ArrayPattern.check(R) ? D.get("elements").each(function(q) {
@@ -11372,11 +11409,11 @@ function Qa(a) {
11372
11409
  }
11373
11410
  function O(D, B) {
11374
11411
  var R = D.value;
11375
- i.Pattern.assert(R), i.Identifier.check(R) && (at.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D]);
11412
+ i.Pattern.assert(R), i.Identifier.check(R) && (ot.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D]);
11376
11413
  }
11377
11414
  function U(D, B) {
11378
11415
  var R = D.value;
11379
- A.assert(R), at.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D];
11416
+ A.assert(R), ot.call(B, R.name) ? B[R.name].push(D) : B[R.name] = [D];
11380
11417
  }
11381
11418
  return v.lookup = function(D) {
11382
11419
  for (var B = this; B && !B.declares(D); B = B.parent)
@@ -11393,8 +11430,8 @@ function Qa(a) {
11393
11430
  }, g;
11394
11431
  }
11395
11432
  ae(() => module);
11396
- function Oi(a) {
11397
- var l = a.use(pe), r = l.namedTypes, i = l.builders, o = l.builtInTypes.number, u = l.builtInTypes.array, h = a.use(Li), d = a.use(Qa);
11433
+ function Di(a) {
11434
+ var l = a.use(pe), r = l.namedTypes, i = l.builders, o = l.builtInTypes.number, u = l.builtInTypes.array, h = a.use(Oi), d = a.use(Ya);
11398
11435
  const g = function T(m, O, U) {
11399
11436
  if (!(this instanceof T))
11400
11437
  throw new Error("NodePath constructor cannot be invoked without 'new'");
@@ -11656,8 +11693,8 @@ function Oi(a) {
11656
11693
  }
11657
11694
  ae(() => module);
11658
11695
  var Xt = Object.prototype.hasOwnProperty;
11659
- function Ya(a) {
11660
- var l = a.use(pe), r = a.use(Oi), i = l.builtInTypes.array, o = l.builtInTypes.object, u = l.builtInTypes.function, h;
11696
+ function Za(a) {
11697
+ var l = a.use(pe), r = a.use(Di), i = l.builtInTypes.array, o = l.builtInTypes.object, u = l.builtInTypes.function, h;
11661
11698
  const d = function P() {
11662
11699
  if (!(this instanceof P))
11663
11700
  throw new Error(
@@ -11839,7 +11876,7 @@ function Ya(a) {
11839
11876
  }, d;
11840
11877
  }
11841
11878
  ae(() => module);
11842
- function Za(a) {
11879
+ function eo(a) {
11843
11880
  var l = a.use(pe), r = l.getFieldNames, i = l.getFieldValue, o = l.builtInTypes.array, u = l.builtInTypes.object, h = l.builtInTypes.Date, d = l.builtInTypes.RegExp, g = Object.prototype.hasOwnProperty;
11844
11881
  function x(P, E, T) {
11845
11882
  return o.check(T) ? T.length = 0 : T = null, A(P, E, T);
@@ -11915,10 +11952,10 @@ function Za(a) {
11915
11952
  return x;
11916
11953
  }
11917
11954
  ae(() => module);
11918
- function eo(a) {
11919
- const l = to(), r = l.use(pe);
11955
+ function to(a) {
11956
+ const l = so(), r = l.use(pe);
11920
11957
  a.forEach(l.use), r.finalize();
11921
- const i = l.use(Ya);
11958
+ const i = l.use(Za);
11922
11959
  return {
11923
11960
  Type: r.Type,
11924
11961
  builtInTypes: r.builtInTypes,
@@ -11931,16 +11968,16 @@ function eo(a) {
11931
11968
  someField: r.someField,
11932
11969
  getSupertypeNames: r.getSupertypeNames,
11933
11970
  getBuilderName: r.getBuilderName,
11934
- astNodesAreEquivalent: l.use(Za),
11971
+ astNodesAreEquivalent: l.use(eo),
11935
11972
  finalize: r.finalize,
11936
- Path: l.use(Li),
11937
- NodePath: l.use(Oi),
11973
+ Path: l.use(Oi),
11974
+ NodePath: l.use(Di),
11938
11975
  PathVisitor: i,
11939
11976
  use: l.use,
11940
11977
  visit: i.visit
11941
11978
  };
11942
11979
  }
11943
- function to() {
11980
+ function so() {
11944
11981
  const a = [], l = [];
11945
11982
  function r(o) {
11946
11983
  var u = a.indexOf(o);
@@ -11950,7 +11987,7 @@ function to() {
11950
11987
  return i;
11951
11988
  }
11952
11989
  ae(() => module);
11953
- function Di() {
11990
+ function Mi() {
11954
11991
  return {
11955
11992
  BinaryOperators: [
11956
11993
  "==",
@@ -11996,31 +12033,31 @@ function Di() {
11996
12033
  };
11997
12034
  }
11998
12035
  ae(() => module);
11999
- function Mi(a) {
12000
- const l = a.use(Di);
12036
+ function Fi(a) {
12037
+ const l = a.use(Mi);
12001
12038
  return l.BinaryOperators.indexOf("**") < 0 && l.BinaryOperators.push("**"), l.AssignmentOperators.indexOf("**=") < 0 && l.AssignmentOperators.push("**="), l;
12002
12039
  }
12003
12040
  ae(() => module);
12004
- function Fi(a) {
12005
- const l = a.use(Mi);
12041
+ function Bi(a) {
12042
+ const l = a.use(Fi);
12006
12043
  return l.LogicalOperators.indexOf("??") < 0 && l.LogicalOperators.push("??"), l;
12007
12044
  }
12008
12045
  ae(() => module);
12009
- function so(a) {
12010
- const l = a.use(Fi);
12046
+ function ro(a) {
12047
+ const l = a.use(Bi);
12011
12048
  return l.LogicalOperators.forEach((r) => {
12012
12049
  const i = r + "=";
12013
12050
  l.AssignmentOperators.indexOf(i) < 0 && l.AssignmentOperators.push(i);
12014
12051
  }), l;
12015
12052
  }
12016
12053
  ae(() => module);
12017
- function ro(a) {
12018
- var l = a.use(pe), r = l.Type, i = r.def, o = r.or, u = a.use(ve), h = u.defaults, d = u.geq;
12054
+ function io(a) {
12055
+ var l = a.use(pe), r = l.Type, i = r.def, o = r.or, u = a.use(Ce), h = u.defaults, d = u.geq;
12019
12056
  const {
12020
12057
  BinaryOperators: g,
12021
12058
  AssignmentOperators: x,
12022
12059
  LogicalOperators: S
12023
- } = a.use(Di);
12060
+ } = a.use(Mi);
12024
12061
  i("Printable").field("loc", o(
12025
12062
  i("SourceLocation"),
12026
12063
  null
@@ -12062,9 +12099,9 @@ function ro(a) {
12062
12099
  }), i("Pattern").bases("Node"), i("SwitchCase").bases("Node").build("test", "consequent").field("test", o(i("Expression"), null)).field("consequent", [i("Statement")]), i("Identifier").bases("Expression", "Pattern").build("name").field("name", String).field("optional", Boolean, h.false), i("Literal").bases("Expression").build("value").field("value", o(String, Boolean, null, Number, RegExp, BigInt)), i("Comment").bases("Printable").field("value", String).field("leading", Boolean, h.true).field("trailing", Boolean, h.false);
12063
12100
  }
12064
12101
  ae(() => module);
12065
- function io(a) {
12066
- a.use(ro);
12067
- const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(ve).defaults;
12102
+ function no(a) {
12103
+ a.use(io);
12104
+ const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(Ce).defaults;
12068
12105
  r("Function").field("generator", Boolean, o.false).field("expression", Boolean, o.false).field("defaults", [i(r("Expression"), null)], o.emptyArray).field("rest", i(r("Identifier"), null), o.null), r("RestElement").bases("Pattern").build("argument").field("argument", r("Pattern")).field(
12069
12106
  "typeAnnotation",
12070
12107
  // for Babylon. Flow parser puts it on the identifier
@@ -12098,19 +12135,19 @@ function io(a) {
12098
12135
  }), r("ExportNamedDeclaration").bases("Declaration").build("declaration", "specifiers", "source").field("declaration", i(r("Declaration"), null)).field("specifiers", [r("ExportSpecifier")], o.emptyArray).field("source", i(r("Literal"), null), o.null), r("ExportSpecifier").bases("ModuleSpecifier").build("local", "exported").field("exported", r("Identifier")), r("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration", i(r("Declaration"), r("Expression"))), r("ExportAllDeclaration").bases("Declaration").build("source").field("source", r("Literal")), r("TaggedTemplateExpression").bases("Expression").build("tag", "quasi").field("tag", r("Expression")).field("quasi", r("TemplateLiteral")), r("TemplateLiteral").bases("Expression").build("quasis", "expressions").field("quasis", [r("TemplateElement")]).field("expressions", [r("Expression")]), r("TemplateElement").bases("Node").build("value", "tail").field("value", { cooked: String, raw: String }).field("tail", Boolean), r("MetaProperty").bases("Expression").build("meta", "property").field("meta", r("Identifier")).field("property", r("Identifier"));
12099
12136
  }
12100
12137
  ae(() => module);
12101
- function no(a) {
12102
- a.use(Mi), a.use(io);
12103
- }
12104
- ae(() => module);
12105
12138
  function ao(a) {
12106
- a.use(no);
12107
- const r = a.use(pe).Type.def, i = a.use(ve).defaults;
12108
- r("Function").field("async", Boolean, i.false), r("AwaitExpression").bases("Expression").build("argument").field("argument", r("Expression"));
12139
+ a.use(Fi), a.use(no);
12109
12140
  }
12110
12141
  ae(() => module);
12111
12142
  function oo(a) {
12112
12143
  a.use(ao);
12113
- const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(ve).defaults;
12144
+ const r = a.use(pe).Type.def, i = a.use(Ce).defaults;
12145
+ r("Function").field("async", Boolean, i.false), r("AwaitExpression").bases("Expression").build("argument").field("argument", r("Expression"));
12146
+ }
12147
+ ae(() => module);
12148
+ function lo(a) {
12149
+ a.use(oo);
12150
+ const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(Ce).defaults;
12114
12151
  r("ForOfStatement").field("await", Boolean, o.false), r("SpreadProperty").bases("Node").build("argument").field("argument", r("Expression")), r("ObjectExpression").field("properties", [i(
12115
12152
  r("Property"),
12116
12153
  r("SpreadProperty"),
@@ -12119,15 +12156,15 @@ function oo(a) {
12119
12156
  )]), r("TemplateElement").field("value", { cooked: i(String, null), raw: String }), r("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument", r("Pattern")), r("ObjectPattern").field("properties", [i(r("PropertyPattern"), r("Property"), r("RestElement"), r("SpreadPropertyPattern"))]);
12120
12157
  }
12121
12158
  ae(() => module);
12122
- function lo(a) {
12123
- a.use(oo);
12124
- const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(ve).defaults;
12159
+ function co(a) {
12160
+ a.use(lo);
12161
+ const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(Ce).defaults;
12125
12162
  r("CatchClause").field("param", i(r("Pattern"), null), o.null);
12126
12163
  }
12127
12164
  ae(() => module);
12128
- function co(a) {
12129
- a.use(Fi), a.use(lo);
12130
- const l = a.use(pe), r = l.Type.def, i = l.Type.or, u = a.use(ve).defaults;
12165
+ function uo(a) {
12166
+ a.use(Bi), a.use(co);
12167
+ const l = a.use(pe), r = l.Type.def, i = l.Type.or, u = a.use(Ce).defaults;
12131
12168
  r("ImportExpression").bases("Expression").build("source").field("source", r("Expression")), r("ExportAllDeclaration").bases("Declaration").build("source", "exported").field("source", r("Literal")).field("exported", i(
12132
12169
  r("Identifier"),
12133
12170
  null,
@@ -12135,19 +12172,19 @@ function co(a) {
12135
12172
  ), u.null), r("ChainElement").bases("Node").field("optional", Boolean, u.false), r("CallExpression").bases("Expression", "ChainElement"), r("MemberExpression").bases("Expression", "ChainElement"), r("ChainExpression").bases("Expression").build("expression").field("expression", r("ChainElement")), r("OptionalCallExpression").bases("CallExpression").build("callee", "arguments", "optional").field("optional", Boolean, u.true), r("OptionalMemberExpression").bases("MemberExpression").build("object", "property", "computed", "optional").field("optional", Boolean, u.true);
12136
12173
  }
12137
12174
  ae(() => module);
12138
- function uo(a) {
12139
- a.use(so), a.use(co);
12175
+ function ho(a) {
12176
+ a.use(ro), a.use(uo);
12140
12177
  }
12141
12178
  ae(() => module);
12142
- function ho(a) {
12143
- a.use(uo);
12179
+ function po(a) {
12180
+ a.use(ho);
12144
12181
  const r = a.use(pe).Type.def;
12145
12182
  r("StaticBlock").bases("Declaration").build("body").field("body", [r("Statement")]);
12146
12183
  }
12147
12184
  ae(() => module);
12148
12185
  function Ft(a) {
12149
- a.use(ho);
12150
- const l = a.use(pe), r = l.Type, i = l.Type.def, o = r.or, h = a.use(ve).defaults;
12186
+ a.use(po);
12187
+ const l = a.use(pe), r = l.Type, i = l.Type.def, o = r.or, h = a.use(Ce).defaults;
12151
12188
  i("AwaitExpression").build("argument", "all").field("argument", o(i("Expression"), null)).field("all", Boolean, h.false), i("Decorator").bases("Node").build("expression").field("expression", i("Expression")), i("Property").field(
12152
12189
  "decorators",
12153
12190
  o([i("Decorator")], null),
@@ -12177,9 +12214,9 @@ function Ft(a) {
12177
12214
  )]), i("ModuleExpression").bases("Node").build("body").field("body", i("Program"));
12178
12215
  }
12179
12216
  ae(() => module);
12180
- function po(a) {
12217
+ function fo(a) {
12181
12218
  a.use(Ft);
12182
- const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(ve).defaults;
12219
+ const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(Ce).defaults;
12183
12220
  r("JSXAttribute").bases("Node").build("name", "value").field("name", i(r("JSXIdentifier"), r("JSXNamespacedName"))).field("value", i(
12184
12221
  r("Literal"),
12185
12222
  // attr="value"
@@ -12223,8 +12260,8 @@ function po(a) {
12223
12260
  }), r("JSXEmptyExpression").bases("Node").build(), r("JSXSpreadChild").bases("Node").build("expression").field("expression", r("Expression"));
12224
12261
  }
12225
12262
  ae(() => module);
12226
- function Bi(a) {
12227
- var l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(ve).defaults, u = i(
12263
+ function _i(a) {
12264
+ var l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(Ce).defaults, u = i(
12228
12265
  r("TypeAnnotation"),
12229
12266
  r("TSTypeAnnotation"),
12230
12267
  null
@@ -12256,9 +12293,9 @@ function Bi(a) {
12256
12293
  });
12257
12294
  }
12258
12295
  ae(() => module);
12259
- function _i(a) {
12260
- a.use(Ft), a.use(Bi);
12261
- const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(ve).defaults;
12296
+ function ji(a) {
12297
+ a.use(Ft), a.use(_i);
12298
+ const l = a.use(pe), r = l.Type.def, i = l.Type.or, o = a.use(Ce).defaults;
12262
12299
  r("Flow").bases("Node"), r("FlowType").bases("Flow"), r("AnyTypeAnnotation").bases("FlowType").build(), r("EmptyTypeAnnotation").bases("FlowType").build(), r("MixedTypeAnnotation").bases("FlowType").build(), r("VoidTypeAnnotation").bases("FlowType").build(), r("SymbolTypeAnnotation").bases("FlowType").build(), r("NumberTypeAnnotation").bases("FlowType").build(), r("BigIntTypeAnnotation").bases("FlowType").build(), r("NumberLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", Number).field("raw", String), r("NumericLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", Number).field("raw", String), r("BigIntLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", null).field("raw", String), r("StringTypeAnnotation").bases("FlowType").build(), r("StringLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", String).field("raw", String), r("BooleanTypeAnnotation").bases("FlowType").build(), r("BooleanLiteralTypeAnnotation").bases("FlowType").build("value", "raw").field("value", Boolean).field("raw", String), r("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation", r("FlowType")), r("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation", r("FlowType")), r("NullLiteralTypeAnnotation").bases("FlowType").build(), r("NullTypeAnnotation").bases("FlowType").build(), r("ThisTypeAnnotation").bases("FlowType").build(), r("ExistsTypeAnnotation").bases("FlowType").build(), r("ExistentialTypeParam").bases("FlowType").build(), r("FunctionTypeAnnotation").bases("FlowType").build("params", "returnType", "rest", "typeParameters").field("params", [r("FunctionTypeParam")]).field("returnType", r("FlowType")).field("rest", i(r("FunctionTypeParam"), null)).field("typeParameters", i(r("TypeParameterDeclaration"), null)), r("FunctionTypeParam").bases("Node").build("name", "typeAnnotation", "optional").field("name", i(r("Identifier"), null)).field("typeAnnotation", r("FlowType")).field("optional", Boolean), r("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType", r("FlowType")), r("ObjectTypeAnnotation").bases("FlowType").build("properties", "indexers", "callProperties").field("properties", [
12263
12300
  i(
12264
12301
  r("ObjectTypeProperty"),
@@ -12334,9 +12371,9 @@ function _i(a) {
12334
12371
  )), r("EnumBooleanBody").build("members", "explicitType").field("members", [r("EnumBooleanMember")]).field("explicitType", Boolean), r("EnumNumberBody").build("members", "explicitType").field("members", [r("EnumNumberMember")]).field("explicitType", Boolean), r("EnumStringBody").build("members", "explicitType").field("members", i([r("EnumStringMember")], [r("EnumDefaultedMember")])).field("explicitType", Boolean), r("EnumSymbolBody").build("members").field("members", [r("EnumDefaultedMember")]), r("EnumBooleanMember").build("id", "init").field("id", r("Identifier")).field("init", i(r("Literal"), Boolean)), r("EnumNumberMember").build("id", "init").field("id", r("Identifier")).field("init", r("Literal")), r("EnumStringMember").build("id", "init").field("id", r("Identifier")).field("init", r("Literal")), r("EnumDefaultedMember").build("id").field("id", r("Identifier"));
12335
12372
  }
12336
12373
  ae(() => module);
12337
- function fo(a) {
12374
+ function mo(a) {
12338
12375
  a.use(Ft);
12339
- var l = a.use(pe), r = a.use(ve).defaults, i = l.Type.def, o = l.Type.or;
12376
+ var l = a.use(pe), r = a.use(Ce).defaults, i = l.Type.def, o = l.Type.or;
12340
12377
  i("VariableDeclaration").field("declarations", [o(
12341
12378
  i("VariableDeclarator"),
12342
12379
  i("Identifier")
@@ -12379,9 +12416,9 @@ function fo(a) {
12379
12416
  );
12380
12417
  }
12381
12418
  ae(() => module);
12382
- function ji(a) {
12419
+ function Ri(a) {
12383
12420
  a.use(Ft);
12384
- const l = a.use(pe), r = a.use(ve).defaults, i = l.Type.def, o = l.Type.or, {
12421
+ const l = a.use(pe), r = a.use(Ce).defaults, i = l.Type.def, o = l.Type.or, {
12385
12422
  undefined: u
12386
12423
  } = l.builtInTypes;
12387
12424
  i("Noop").bases("Statement").build(), i("DoExpression").bases("Expression").build("body").field("body", [i("Statement")]), i("BindExpression").bases("Expression").build("object", "callee").field("object", o(i("Expression"), null)).field("callee", i("Expression")), i("ParenthesizedExpression").bases("Expression").build("expression").field("expression", i("Expression")), i("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported", i("Identifier")), i("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported", i("Identifier")), i("CommentBlock").bases("Comment").build(
@@ -12499,14 +12536,14 @@ function ji(a) {
12499
12536
  )).field("right", i("Expression")).field("body", i("Statement")), i("Import").bases("Expression").build();
12500
12537
  }
12501
12538
  ae(() => module);
12502
- function mo(a) {
12539
+ function yo(a) {
12503
12540
  const r = a.use(pe).Type.def;
12504
- a.use(ji), a.use(_i), r("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String), r("TopicReference").bases("Expression").build();
12541
+ a.use(Ri), a.use(ji), r("V8IntrinsicIdentifier").bases("Expression").build("name").field("name", String), r("TopicReference").bases("Expression").build();
12505
12542
  }
12506
12543
  ae(() => module);
12507
- function yo(a) {
12508
- a.use(ji), a.use(Bi);
12509
- var l = a.use(pe), r = l.namedTypes, i = l.Type.def, o = l.Type.or, u = a.use(ve).defaults, h = l.Type.from(function(S, A) {
12544
+ function go(a) {
12545
+ a.use(Ri), a.use(_i);
12546
+ var l = a.use(pe), r = l.namedTypes, i = l.Type.def, o = l.Type.or, u = a.use(Ce).defaults, h = l.Type.from(function(S, A) {
12510
12547
  return !!(r.StringLiteral && r.StringLiteral.check(S, A) || r.Literal && r.Literal.check(S, A) && typeof S.value == "string");
12511
12548
  }, "StringLiteral");
12512
12549
  i("TSType").bases("Node");
@@ -12733,31 +12770,31 @@ Me || (Me = {});
12733
12770
  const {
12734
12771
  builders: Bt,
12735
12772
  builtInTypes: Fe,
12736
- getFieldNames: go,
12773
+ getFieldNames: xo,
12737
12774
  getFieldValue: Ue,
12738
- namedTypes: xo,
12739
- NodePath: bo,
12740
- someField: To
12741
- } = eo([
12775
+ namedTypes: bo,
12776
+ NodePath: To,
12777
+ someField: Po
12778
+ } = to([
12742
12779
  // Feel free to add to or remove from this list of extension modules to
12743
12780
  // configure the precise type hierarchy that you need.
12744
12781
  Ft,
12745
- po,
12746
- _i,
12747
12782
  fo,
12783
+ ji,
12748
12784
  mo,
12749
- yo
12785
+ yo,
12786
+ go
12750
12787
  ]);
12751
- Object.assign(Me, xo);
12752
- const Gt = Me, ui = $s.SourceMapConsumer, Po = $s.SourceMapGenerator, Ri = Object.prototype.hasOwnProperty;
12753
- function So() {
12788
+ Object.assign(Me, bo);
12789
+ const Gt = Me, ui = $s.SourceMapConsumer, So = $s.SourceMapGenerator, Ui = Object.prototype.hasOwnProperty;
12790
+ function wo() {
12754
12791
  return `
12755
12792
  `;
12756
12793
  }
12757
12794
  function hi(a, l, r) {
12758
- return a && Ri.call(a, l) ? a[l] : r;
12795
+ return a && Ui.call(a, l) ? a[l] : r;
12759
12796
  }
12760
- function wo(...a) {
12797
+ function Eo(...a) {
12761
12798
  const l = {}, r = a.length;
12762
12799
  for (let i = 0; i < r; ++i) {
12763
12800
  const o = Object.keys(a[i]), u = o.length;
@@ -12769,19 +12806,19 @@ function wo(...a) {
12769
12806
  function re(a, l) {
12770
12807
  return a.line - l.line || a.column - l.column;
12771
12808
  }
12772
- function Ke(a) {
12809
+ function Xe(a) {
12773
12810
  return {
12774
12811
  line: a.line,
12775
12812
  column: a.column
12776
12813
  };
12777
12814
  }
12778
- function Eo(a, l) {
12815
+ function Ao(a, l) {
12779
12816
  if (a) {
12780
12817
  if (!l)
12781
12818
  return a;
12782
12819
  } else
12783
12820
  return l || null;
12784
- const r = new ui(a), i = new ui(l), o = new Po({
12821
+ const r = new ui(a), i = new ui(l), o = new So({
12785
12822
  file: l.file,
12786
12823
  sourceRoot: l.sourceRoot
12787
12824
  }), u = {};
@@ -12794,7 +12831,7 @@ function Eo(a, l) {
12794
12831
  return;
12795
12832
  o.addMapping({
12796
12833
  source: g,
12797
- original: Ke(d),
12834
+ original: Xe(d),
12798
12835
  generated: {
12799
12836
  line: h.generatedLine,
12800
12837
  column: h.generatedColumn
@@ -12802,10 +12839,10 @@ function Eo(a, l) {
12802
12839
  name: h.name
12803
12840
  });
12804
12841
  const x = r.sourceContentFor(g);
12805
- x && !Ri.call(u, g) && (u[g] = x, o.setSourceContent(g, x));
12842
+ x && !Ui.call(u, g) && (u[g] = x, o.setSourceContent(g, x));
12806
12843
  }), o.toJSON();
12807
12844
  }
12808
- function Ui(a, l) {
12845
+ function $i(a, l) {
12809
12846
  if (!a.loc)
12810
12847
  return null;
12811
12848
  const r = {
@@ -12815,14 +12852,14 @@ function Ui(a, l) {
12815
12852
  function i(o) {
12816
12853
  Ds(r, o.loc);
12817
12854
  }
12818
- return a.declaration && a.declaration.decorators && ns(a) && a.declaration.decorators.forEach(i), re(r.start, r.end) < 0 && (r.start = Ke(r.start), l.skipSpaces(r.start, !1, !0), re(r.start, r.end) < 0 && (r.end = Ke(r.end), l.skipSpaces(r.end, !0, !0))), a.comments && a.comments.forEach(i), r;
12855
+ return a.declaration && a.declaration.decorators && ns(a) && a.declaration.decorators.forEach(i), re(r.start, r.end) < 0 && (r.start = Xe(r.start), l.skipSpaces(r.start, !1, !0), re(r.start, r.end) < 0 && (r.end = Xe(r.end), l.skipSpaces(r.end, !0, !0))), a.comments && a.comments.forEach(i), r;
12819
12856
  }
12820
12857
  function Ds(a, l) {
12821
12858
  a && l && (re(l.start, a.start) < 0 && (a.start = l.start), re(a.end, l.end) < 0 && (a.end = l.end));
12822
12859
  }
12823
12860
  function qs(a, l) {
12824
12861
  const r = a.loc;
12825
- if (r && (r.start.line < 1 && (r.start.line = 1), r.end.line < 1 && (r.end.line = 1)), a.type === "File" && (r.start = l.firstPos(), r.end = l.lastPos()), Ao(a, l), vo(a, l), r && a.decorators)
12862
+ if (r && (r.start.line < 1 && (r.start.line = 1), r.end.line < 1 && (r.end.line = 1)), a.type === "File" && (r.start = l.firstPos(), r.end = l.lastPos()), vo(a, l), Co(a, l), r && a.decorators)
12826
12863
  a.decorators.forEach(function(i) {
12827
12864
  Ds(r, i.loc);
12828
12865
  });
@@ -12837,25 +12874,25 @@ function qs(a, l) {
12837
12874
  else if (a.type === "ObjectTypeProperty") {
12838
12875
  const i = a.loc;
12839
12876
  let o = i && i.end;
12840
- o && (o = Ke(o), l.prevPos(o) && l.charAt(o) === "," && (o = l.skipSpaces(o, !0, !0)) && (i.end = o));
12877
+ o && (o = Xe(o), l.prevPos(o) && l.charAt(o) === "," && (o = l.skipSpaces(o, !0, !0)) && (i.end = o));
12841
12878
  }
12842
12879
  }
12843
- function Ao(a, l) {
12880
+ function vo(a, l) {
12844
12881
  if (a.type !== "ForStatement")
12845
12882
  return;
12846
12883
  function r(i) {
12847
- const o = i && i.loc, u = o && o.start, h = o && Ke(o.end);
12884
+ const o = i && i.loc, u = o && o.start, h = o && Xe(o.end);
12848
12885
  for (; u && h && re(u, h) < 0 && (l.prevPos(h), l.charAt(h) === ";"); )
12849
12886
  o.end.line = h.line, o.end.column = h.column;
12850
12887
  }
12851
12888
  r(a.init), r(a.test), r(a.update);
12852
12889
  }
12853
- function vo(a, l) {
12890
+ function Co(a, l) {
12854
12891
  if (a.type === "TemplateLiteral" && a.quasis.length !== 0) {
12855
12892
  if (a.loc) {
12856
- const r = Ke(a.loc.start), i = a.quasis[0];
12893
+ const r = Xe(a.loc.start), i = a.quasis[0];
12857
12894
  re(i.loc.start, r) < 0 && (i.loc.start = r);
12858
- const o = Ke(a.loc.end), u = a.quasis[a.quasis.length - 1];
12895
+ const o = Xe(a.loc.end), u = a.quasis[a.quasis.length - 1];
12859
12896
  re(o, u.loc.end) < 0 && (u.loc.end = o);
12860
12897
  }
12861
12898
  a.expressions.forEach(function(r, i) {
@@ -12885,11 +12922,11 @@ function ns(a) {
12885
12922
  }
12886
12923
  return !1;
12887
12924
  }
12888
- function $i(a) {
12925
+ function Vi(a) {
12889
12926
  const l = a.getParentNode();
12890
12927
  return a.getName() === "declaration" && ns(l) ? l : null;
12891
12928
  }
12892
- function Ct(a, l) {
12929
+ function It(a, l) {
12893
12930
  const r = a.trailingComma;
12894
12931
  return typeof r == "object" ? !!r[l] : !!r;
12895
12932
  }
@@ -12897,7 +12934,7 @@ const Ms = {
12897
12934
  tabWidth: 4,
12898
12935
  useTabs: !1,
12899
12936
  reuseWhitespace: !0,
12900
- lineTerminator: So(),
12937
+ lineTerminator: wo(),
12901
12938
  wrapColumn: 74,
12902
12939
  // Aspirational for now.
12903
12940
  sourceFileName: null,
@@ -12913,11 +12950,11 @@ const Ms = {
12913
12950
  arrowParensAlways: !1,
12914
12951
  flowObjectCommas: !0,
12915
12952
  tokens: !0
12916
- }, Co = Ms.hasOwnProperty;
12953
+ }, Io = Ms.hasOwnProperty;
12917
12954
  function as(a) {
12918
12955
  const l = a || Ms;
12919
12956
  function r(i) {
12920
- return Co.call(l, i) ? l[i] : Ms[i];
12957
+ return Io.call(l, i) ? l[i] : Ms[i];
12921
12958
  }
12922
12959
  return {
12923
12960
  tabWidth: +r("tabWidth"),
@@ -12941,7 +12978,7 @@ function as(a) {
12941
12978
  tokens: !!r("tokens")
12942
12979
  };
12943
12980
  }
12944
- class ht {
12981
+ class pt {
12945
12982
  constructor(l, r, i = r) {
12946
12983
  this.sourceLines = l, this.sourceLoc = r, this.targetLoc = i;
12947
12984
  }
@@ -12951,7 +12988,7 @@ class ht {
12951
12988
  function d(g) {
12952
12989
  const x = u[g], S = h[g];
12953
12990
  let A = r;
12954
- return g === "end" && (A = i), Io(
12991
+ return g === "end" && (A = i), No(
12955
12992
  o,
12956
12993
  x,
12957
12994
  l,
@@ -12962,8 +12999,8 @@ class ht {
12962
12999
  if (re(r, h.start) <= 0)
12963
13000
  if (re(h.end, i) <= 0)
12964
13001
  h = {
12965
- start: He(h.start, r.line, r.column),
12966
- end: He(h.end, r.line, r.column)
13002
+ start: Ke(h.start, r.line, r.column),
13003
+ end: Ke(h.end, r.line, r.column)
12967
13004
  };
12968
13005
  else {
12969
13006
  if (re(i, h.start) <= 0)
@@ -12972,8 +13009,8 @@ class ht {
12972
13009
  start: u.start,
12973
13010
  end: d("end")
12974
13011
  }, h = {
12975
- start: He(h.start, r.line, r.column),
12976
- end: He(i, r.line, r.column)
13012
+ start: Ke(h.start, r.line, r.column),
13013
+ end: Ke(i, r.line, r.column)
12977
13014
  };
12978
13015
  }
12979
13016
  else {
@@ -12985,28 +13022,28 @@ class ht {
12985
13022
  }, h = {
12986
13023
  // Same as subtractPos(start, start.line, start.column):
12987
13024
  start: { line: 1, column: 0 },
12988
- end: He(h.end, r.line, r.column)
13025
+ end: Ke(h.end, r.line, r.column)
12989
13026
  }) : (u = {
12990
13027
  start: d("start"),
12991
13028
  end: d("end")
12992
13029
  }, h = {
12993
13030
  // Same as subtractPos(start, start.line, start.column):
12994
13031
  start: { line: 1, column: 0 },
12995
- end: He(i, r.line, r.column)
13032
+ end: Ke(i, r.line, r.column)
12996
13033
  });
12997
13034
  }
12998
- return new ht(this.sourceLines, u, h);
13035
+ return new pt(this.sourceLines, u, h);
12999
13036
  }
13000
13037
  add(l, r) {
13001
- return new ht(this.sourceLines, this.sourceLoc, {
13038
+ return new pt(this.sourceLines, this.sourceLoc, {
13002
13039
  start: pi(this.targetLoc.start, l, r),
13003
13040
  end: pi(this.targetLoc.end, l, r)
13004
13041
  });
13005
13042
  }
13006
13043
  subtract(l, r) {
13007
- return new ht(this.sourceLines, this.sourceLoc, {
13008
- start: He(this.targetLoc.start, l, r),
13009
- end: He(this.targetLoc.end, l, r)
13044
+ return new pt(this.sourceLines, this.sourceLoc, {
13045
+ start: Ke(this.targetLoc.start, l, r),
13046
+ end: Ke(this.targetLoc.end, l, r)
13010
13047
  });
13011
13048
  }
13012
13049
  indent(l, r = !1, i = !1) {
@@ -13033,7 +13070,7 @@ class ht {
13033
13070
  column: i ? Math.max(0, d) : d
13034
13071
  };
13035
13072
  }
13036
- return new ht(this.sourceLines, this.sourceLoc, o);
13073
+ return new pt(this.sourceLines, this.sourceLoc, o);
13037
13074
  }
13038
13075
  }
13039
13076
  function pi(a, l, r) {
@@ -13042,13 +13079,13 @@ function pi(a, l, r) {
13042
13079
  column: a.line === 1 ? a.column + r : a.column
13043
13080
  };
13044
13081
  }
13045
- function He(a, l, r) {
13082
+ function Ke(a, l, r) {
13046
13083
  return {
13047
13084
  line: a.line - l + 1,
13048
13085
  column: a.line === l ? a.column - r : a.column
13049
13086
  };
13050
13087
  }
13051
- function Io(a, l, r, i, o) {
13088
+ function No(a, l, r, i, o) {
13052
13089
  const u = re(i, o);
13053
13090
  if (u === 0)
13054
13091
  return l;
@@ -13066,11 +13103,11 @@ function Io(a, l, r, i, o) {
13066
13103
  }
13067
13104
  return h;
13068
13105
  }
13069
- var No = Object.defineProperty, ko = (a, l, r) => l in a ? No(a, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[l] = r, Tt = (a, l, r) => (ko(a, typeof l != "symbol" ? l + "" : l, r), r);
13070
- class Le {
13106
+ var ko = Object.defineProperty, Lo = (a, l, r) => l in a ? ko(a, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[l] = r, Pt = (a, l, r) => (Lo(a, typeof l != "symbol" ? l + "" : l, r), r);
13107
+ class Oe {
13071
13108
  constructor(l, r = null) {
13072
- this.infos = l, Tt(this, "length"), Tt(this, "name"), Tt(this, "mappings", []), Tt(this, "cachedSourceMap", null), Tt(this, "cachedTabWidth"), this.length = l.length, this.name = r || null, this.name && this.mappings.push(
13073
- new ht(this, {
13109
+ this.infos = l, Pt(this, "length"), Pt(this, "name"), Pt(this, "mappings", []), Pt(this, "cachedSourceMap", null), Pt(this, "cachedTabWidth"), this.length = l.length, this.name = r || null, this.name && this.mappings.push(
13110
+ new pt(this, {
13074
13111
  start: this.firstPos(),
13075
13112
  end: this.lastPos()
13076
13113
  })
@@ -13124,7 +13161,7 @@ class Le {
13124
13161
  return this;
13125
13162
  if (r && this.length === 1)
13126
13163
  return this;
13127
- const i = new Le(
13164
+ const i = new Oe(
13128
13165
  this.infos.map(function(o, u) {
13129
13166
  return o.line && (u > 0 || !r) && (o = {
13130
13167
  ...o,
@@ -13143,7 +13180,7 @@ class Le {
13143
13180
  indent(l) {
13144
13181
  if (l === 0)
13145
13182
  return this;
13146
- const r = new Le(
13183
+ const r = new Oe(
13147
13184
  this.infos.map(function(i) {
13148
13185
  return i.line && !i.locked && (i = {
13149
13186
  ...i,
@@ -13164,7 +13201,7 @@ class Le {
13164
13201
  return this;
13165
13202
  if (this.length < 2)
13166
13203
  return this;
13167
- const r = new Le(
13204
+ const r = new Oe(
13168
13205
  this.infos.map(function(i, o) {
13169
13206
  return o > 0 && i.line && !i.locked && (i = {
13170
13207
  ...i,
@@ -13181,7 +13218,7 @@ class Le {
13181
13218
  return r;
13182
13219
  }
13183
13220
  lockIndentTail() {
13184
- return this.length < 2 ? this : new Le(
13221
+ return this.length < 2 ? this : new Oe(
13185
13222
  this.infos.map((l, r) => ({
13186
13223
  ...l,
13187
13224
  locked: r > 0
@@ -13198,7 +13235,7 @@ class Le {
13198
13235
  let r = 0;
13199
13236
  for (let u = 1, h = this.length; u <= h; ++u) {
13200
13237
  const d = this.infos[u - 1], g = d.line.slice(d.sliceStart, d.sliceEnd);
13201
- if (ot(g))
13238
+ if (lt(g))
13202
13239
  continue;
13203
13240
  const x = Math.abs(d.indent - r);
13204
13241
  l[x] = ~~l[x] + 1, r = d.indent;
@@ -13218,14 +13255,14 @@ class Le {
13218
13255
  return o.length === 0 || o.slice(0, 2) === "//" || o.slice(0, 2) === "/*";
13219
13256
  }
13220
13257
  isOnlyWhitespace() {
13221
- return ot(this.toString());
13258
+ return lt(this.toString());
13222
13259
  }
13223
13260
  isPrecededOnlyByWhitespace(l) {
13224
13261
  const r = this.infos[l.line - 1], i = Math.max(r.indent, 0), o = l.column - i;
13225
13262
  if (o <= 0)
13226
13263
  return !0;
13227
13264
  const u = r.sliceStart, h = Math.min(u + o, r.sliceEnd), d = r.line.slice(u, h);
13228
- return ot(d);
13265
+ return lt(d);
13229
13266
  }
13230
13267
  getLineLength(l) {
13231
13268
  const r = this.infos[l - 1];
@@ -13260,11 +13297,11 @@ class Le {
13260
13297
  column: l.column
13261
13298
  } : r ? l = this.lastPos() : l = this.firstPos(), r) {
13262
13299
  for (; this.prevPos(l); )
13263
- if (!ot(this.charAt(l)) && this.nextPos(l))
13300
+ if (!lt(this.charAt(l)) && this.nextPos(l))
13264
13301
  return l;
13265
13302
  return null;
13266
13303
  } else {
13267
- for (; ot(this.charAt(l)); )
13304
+ for (; lt(this.charAt(l)); )
13268
13305
  if (!this.nextPos(l))
13269
13306
  return null;
13270
13307
  return l;
@@ -13272,18 +13309,18 @@ class Le {
13272
13309
  }
13273
13310
  trimLeft() {
13274
13311
  const l = this.skipSpaces(this.firstPos(), !1, !0);
13275
- return l ? this.slice(l) : Ze;
13312
+ return l ? this.slice(l) : et;
13276
13313
  }
13277
13314
  trimRight() {
13278
13315
  const l = this.skipSpaces(this.lastPos(), !0, !0);
13279
- return l ? this.slice(this.firstPos(), l) : Ze;
13316
+ return l ? this.slice(this.firstPos(), l) : et;
13280
13317
  }
13281
13318
  trim() {
13282
13319
  const l = this.skipSpaces(this.firstPos(), !1, !0);
13283
13320
  if (l === null)
13284
- return Ze;
13321
+ return et;
13285
13322
  const r = this.skipSpaces(this.lastPos(), !0, !0);
13286
- return r === null ? Ze : this.slice(l, r);
13323
+ return r === null ? et : this.slice(l, r);
13287
13324
  }
13288
13325
  eachPos(l, r = this.firstPos(), i = !1) {
13289
13326
  const o = this.firstPos();
@@ -13306,8 +13343,8 @@ class Le {
13306
13343
  if (!l)
13307
13344
  throw new Error("cannot slice with end but not start");
13308
13345
  const i = this.infos.slice(l.line - 1, r.line);
13309
- l.line === r.line ? i[0] = lt(i[0], l.column, r.column) : (i[0] = lt(i[0], l.column), i.push(lt(i.pop(), 0, r.column)));
13310
- const o = new Le(i);
13346
+ l.line === r.line ? i[0] = ct(i[0], l.column, r.column) : (i[0] = ct(i[0], l.column), i.push(ct(i.pop(), 0, r.column)));
13347
+ const o = new Oe(i);
13311
13348
  if (this.mappings.length > 0) {
13312
13349
  const u = o.mappings;
13313
13350
  this.mappings.forEach(function(h) {
@@ -13324,9 +13361,9 @@ class Le {
13324
13361
  const { tabWidth: o, useTabs: u, reuseWhitespace: h, lineTerminator: d } = as(i), g = [];
13325
13362
  for (let x = l.line; x <= r.line; ++x) {
13326
13363
  let S = this.infos[x - 1];
13327
- x === l.line ? x === r.line ? S = lt(S, l.column, r.column) : S = lt(S, l.column) : x === r.line && (S = lt(S, 0, r.column));
13364
+ x === l.line ? x === r.line ? S = ct(S, l.column, r.column) : S = ct(S, l.column) : x === r.line && (S = ct(S, 0, r.column));
13328
13365
  const A = Math.max(S.indent, 0), v = S.line.slice(0, S.sliceStart);
13329
- if (h && ot(v) && Vi(v, o) === A) {
13366
+ if (h && lt(v) && qi(v, o) === A) {
13330
13367
  g.push(S.line.slice(0, S.sliceEnd));
13331
13368
  continue;
13332
13369
  }
@@ -13365,17 +13402,17 @@ class Le {
13365
13402
  }).forEach((x, S) => {
13366
13403
  r.isEmpty() ? h(x) : d(x, S);
13367
13404
  }), i.length < 1)
13368
- return Ze;
13369
- const g = new Le(i);
13405
+ return et;
13406
+ const g = new Oe(i);
13370
13407
  return g.mappings = o, g;
13371
13408
  }
13372
13409
  concat(...l) {
13373
13410
  const r = [this];
13374
- return r.push.apply(r, l), Ze.join(r);
13411
+ return r.push.apply(r, l), et.join(r);
13375
13412
  }
13376
13413
  }
13377
- const es = {}, Fs = es.hasOwnProperty, Lo = 10;
13378
- function Vi(a, l) {
13414
+ const es = {}, Fs = es.hasOwnProperty, Oo = 10;
13415
+ function qi(a, l) {
13379
13416
  let r = 0;
13380
13417
  const i = a.length;
13381
13418
  for (let o = 0; o < i; ++o)
@@ -13397,20 +13434,20 @@ function Vi(a, l) {
13397
13434
  }
13398
13435
  return r;
13399
13436
  }
13400
- const Oo = /^\s*/, Bs = /\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;
13437
+ const Do = /^\s*/, Bs = /\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/;
13401
13438
  function j(a, l) {
13402
- if (a instanceof Le)
13439
+ if (a instanceof Oe)
13403
13440
  return a;
13404
13441
  a += "";
13405
- const r = l && l.tabWidth, i = a.indexOf(" ") < 0, o = !l && i && a.length <= Lo;
13442
+ const r = l && l.tabWidth, i = a.indexOf(" ") < 0, o = !l && i && a.length <= Oo;
13406
13443
  if (o && Fs.call(es, a))
13407
13444
  return es[a];
13408
- const u = new Le(
13445
+ const u = new Oe(
13409
13446
  a.split(Bs).map(function(h) {
13410
- const d = Oo.exec(h)[0];
13447
+ const d = Do.exec(h)[0];
13411
13448
  return {
13412
13449
  line: h,
13413
- indent: Vi(d, r),
13450
+ indent: qi(d, r),
13414
13451
  // Boolean indicating whether this line can be reindented.
13415
13452
  locked: !1,
13416
13453
  sliceStart: d.length,
@@ -13421,10 +13458,10 @@ function j(a, l) {
13421
13458
  );
13422
13459
  return o && (es[a] = u), u;
13423
13460
  }
13424
- function ot(a) {
13461
+ function lt(a) {
13425
13462
  return !/\S/.test(a);
13426
13463
  }
13427
- function lt(a, l, r) {
13464
+ function ct(a, l, r) {
13428
13465
  let i = a.sliceStart, o = a.sliceEnd, u = Math.max(a.indent, 0), h = u + o - i;
13429
13466
  return typeof r > "u" && (r = h), l = Math.max(l, 0), r = Math.min(r, h), r = Math.max(r, l), r < u ? (u = r, o = i) : o -= h - r, h = r, h -= l, l < u ? u -= l : (l -= u, u = 0, i += l), a.indent === u && a.sliceStart === i && a.sliceEnd === o ? a : {
13430
13467
  line: a.line,
@@ -13436,14 +13473,14 @@ function lt(a, l, r) {
13436
13473
  };
13437
13474
  }
13438
13475
  function L(a) {
13439
- return Ze.join(a);
13476
+ return et.join(a);
13440
13477
  }
13441
- const Ze = j(""), pt = Me, qi = Fe.array, Do = Fe.object, fi = /* @__PURE__ */ new WeakMap();
13442
- function zi(a, l, r) {
13478
+ const et = j(""), ft = Me, zi = Fe.array, Mo = Fe.object, fi = /* @__PURE__ */ new WeakMap();
13479
+ function Wi(a, l, r) {
13443
13480
  if (!a)
13444
13481
  return r;
13445
13482
  if (qs(a, l), r) {
13446
- if (pt.Node.check(a) && pt.SourceLocation.check(a.loc)) {
13483
+ if (ft.Node.check(a) && ft.SourceLocation.check(a.loc)) {
13447
13484
  let o = r.length - 1;
13448
13485
  for (; o >= 0; --o) {
13449
13486
  const u = r[o];
@@ -13458,24 +13495,24 @@ function zi(a, l, r) {
13458
13495
  return o;
13459
13496
  }
13460
13497
  let i;
13461
- if (qi.check(a))
13498
+ if (zi.check(a))
13462
13499
  i = Object.keys(a);
13463
- else if (Do.check(a))
13464
- i = go(a);
13500
+ else if (Mo.check(a))
13501
+ i = xo(a);
13465
13502
  else
13466
13503
  return r;
13467
13504
  r || fi.set(a, r = []);
13468
13505
  for (let o = 0, u = i.length; o < u; ++o)
13469
- zi(a[i[o]], l, r);
13506
+ Wi(a[i[o]], l, r);
13470
13507
  return r;
13471
13508
  }
13472
- function Wi(a, l, r) {
13473
- const i = zi(a, r);
13509
+ function Ji(a, l, r) {
13510
+ const i = Wi(a, r);
13474
13511
  let o = 0, u = i && i.length, h, d;
13475
13512
  for (; typeof u == "number" && o < u; ) {
13476
13513
  const g = o + u >> 1, x = i[g];
13477
13514
  if (re(x.loc.start, l.loc.start) <= 0 && re(l.loc.end, x.loc.end) <= 0) {
13478
- Wi(l.enclosingNode = x, l, r);
13515
+ Ji(l.enclosingNode = x, l, r);
13479
13516
  return;
13480
13517
  }
13481
13518
  if (re(x.loc.end, l.loc.start) <= 0) {
@@ -13490,29 +13527,29 @@ function Wi(a, l, r) {
13490
13527
  }
13491
13528
  h && (l.precedingNode = h), d && (l.followingNode = d);
13492
13529
  }
13493
- function Mo(a, l, r) {
13494
- if (!qi.check(a))
13530
+ function Fo(a, l, r) {
13531
+ if (!zi.check(a))
13495
13532
  return;
13496
13533
  const i = [];
13497
13534
  a.forEach(function(o) {
13498
- o.loc.lines = r, Wi(l, o, r);
13535
+ o.loc.lines = r, Ji(l, o, r);
13499
13536
  const u = o.precedingNode, h = o.enclosingNode, d = o.followingNode;
13500
13537
  if (u && d) {
13501
13538
  const g = i.length;
13502
- g > 0 && i[g - 1].followingNode !== o.followingNode && Pt(i, r), i.push(o);
13539
+ g > 0 && i[g - 1].followingNode !== o.followingNode && St(i, r), i.push(o);
13503
13540
  } else if (u)
13504
- Pt(i, r), Hi(u, o);
13541
+ St(i, r), Ki(u, o);
13505
13542
  else if (d)
13506
- Pt(i, r), Ji(d, o);
13543
+ St(i, r), Hi(d, o);
13507
13544
  else if (h)
13508
- Pt(i, r), Fo(h, o);
13545
+ St(i, r), Bo(h, o);
13509
13546
  else
13510
13547
  throw new Error("AST contains no nodes at all?");
13511
- }), Pt(i, r), a.forEach(function(o) {
13548
+ }), St(i, r), a.forEach(function(o) {
13512
13549
  delete o.precedingNode, delete o.enclosingNode, delete o.followingNode;
13513
13550
  });
13514
13551
  }
13515
- function Pt(a, l) {
13552
+ function St(a, l) {
13516
13553
  const r = a.length;
13517
13554
  if (r === 0)
13518
13555
  return;
@@ -13534,29 +13571,29 @@ function Pt(a, l) {
13534
13571
  g?.type === "CallExpression" && --h;
13535
13572
  }
13536
13573
  a.forEach(function(g, x) {
13537
- x < h ? Hi(i, g) : Ji(o, g);
13574
+ x < h ? Ki(i, g) : Hi(o, g);
13538
13575
  }), a.length = 0;
13539
13576
  }
13540
13577
  function zs(a, l) {
13541
13578
  (a.comments || (a.comments = [])).push(l);
13542
13579
  }
13543
- function Ji(a, l) {
13580
+ function Hi(a, l) {
13544
13581
  l.leading = !0, l.trailing = !1, zs(a, l);
13545
13582
  }
13546
- function Fo(a, l) {
13583
+ function Bo(a, l) {
13547
13584
  l.leading = !1, l.trailing = !1, zs(a, l);
13548
13585
  }
13549
- function Hi(a, l) {
13586
+ function Ki(a, l) {
13550
13587
  l.leading = !1, l.trailing = !0, zs(a, l);
13551
13588
  }
13552
- function Bo(a, l) {
13589
+ function _o(a, l) {
13553
13590
  const r = a.getValue();
13554
- pt.Comment.assert(r);
13591
+ ft.Comment.assert(r);
13555
13592
  const i = r.loc, o = i && i.lines, u = [l(a)];
13556
13593
  if (r.trailing)
13557
13594
  u.push(`
13558
13595
  `);
13559
- else if (o instanceof Le) {
13596
+ else if (o instanceof Oe) {
13560
13597
  const h = o.slice(
13561
13598
  i.end,
13562
13599
  o.skipSpaces(i.end) || o.lastPos()
@@ -13568,11 +13605,11 @@ function Bo(a, l) {
13568
13605
  `);
13569
13606
  return L(u);
13570
13607
  }
13571
- function _o(a, l) {
13608
+ function jo(a, l) {
13572
13609
  const r = a.getValue(a);
13573
- pt.Comment.assert(r);
13610
+ ft.Comment.assert(r);
13574
13611
  const i = r.loc, o = i && i.lines, u = [];
13575
- if (o instanceof Le) {
13612
+ if (o instanceof Oe) {
13576
13613
  const h = o.skipSpaces(i.start, !0) || o.firstPos(), d = o.slice(h, i.start);
13577
13614
  d.length === 1 ? u.push(d) : u.push(new Array(d.length).join(`
13578
13615
  `));
@@ -13580,17 +13617,17 @@ function _o(a, l) {
13580
13617
  return u.push(l(a)), L(u);
13581
13618
  }
13582
13619
  function di(a, l) {
13583
- const r = a.getValue(), i = l(a), o = pt.Node.check(r) && Ue(r, "comments");
13620
+ const r = a.getValue(), i = l(a), o = ft.Node.check(r) && Ue(r, "comments");
13584
13621
  if (!o || o.length === 0)
13585
13622
  return i;
13586
13623
  const u = [], h = [i];
13587
13624
  return a.each(function(d) {
13588
13625
  const g = d.getValue(), x = Ue(g, "leading"), S = Ue(g, "trailing");
13589
- x || S && !(pt.Statement.check(r) || g.type === "Block" || g.type === "CommentBlock") ? u.push(Bo(d, l)) : S && h.push(_o(d, l));
13626
+ x || S && !(ft.Statement.check(r) || g.type === "Block" || g.type === "CommentBlock") ? u.push(_o(d, l)) : S && h.push(jo(d, l));
13590
13627
  }, "comments"), u.push.apply(u, h), L(u);
13591
13628
  }
13592
- const jo = Bt, Ro = Fe.object, Uo = Fe.array;
13593
- function $o(a, l) {
13629
+ const Ro = Bt, Uo = Fe.object, $o = Fe.array;
13630
+ function Vo(a, l) {
13594
13631
  l = as(l);
13595
13632
  const r = j(a, l), i = r.toString({
13596
13633
  tabWidth: l.tabWidth,
@@ -13616,13 +13653,13 @@ function $o(a, l) {
13616
13653
  end: r.lastPos()
13617
13654
  }, u.loc.lines = r, u.loc.indent = 0;
13618
13655
  let d, g;
13619
- u.type === "Program" ? (g = u, d = jo.file(u, l.sourceFileName || null), d.loc = {
13656
+ u.type === "Program" ? (g = u, d = Ro.file(u, l.sourceFileName || null), d.loc = {
13620
13657
  start: r.firstPos(),
13621
13658
  end: r.lastPos(),
13622
13659
  lines: r,
13623
13660
  indent: 0
13624
13661
  }) : u.type === "File" && (d = u, g = d.program), l.tokens && (d.tokens = h);
13625
- const x = Ui(
13662
+ const x = $i(
13626
13663
  {
13627
13664
  type: g.type,
13628
13665
  loc: g.loc,
@@ -13630,21 +13667,21 @@ function $o(a, l) {
13630
13667
  },
13631
13668
  r
13632
13669
  );
13633
- return g.loc.start = x.start, g.loc.end = x.end, Mo(o, g.body.length ? d.program : d, r), new Ki(r, h).copy(d);
13670
+ return g.loc.start = x.start, g.loc.end = x.end, Fo(o, g.body.length ? d.program : d, r), new Xi(r, h).copy(d);
13634
13671
  }
13635
- const Ki = function(l, r) {
13672
+ const Xi = function(l, r) {
13636
13673
  this.lines = l, this.tokens = r, this.startTokenIndex = 0, this.endTokenIndex = r.length, this.indent = 0, this.seen = /* @__PURE__ */ new Map();
13637
- }, Xi = Ki.prototype;
13638
- Xi.copy = function(a) {
13674
+ }, Gi = Xi.prototype;
13675
+ Gi.copy = function(a) {
13639
13676
  if (this.seen.has(a))
13640
13677
  return this.seen.get(a);
13641
- if (Uo.check(a)) {
13678
+ if ($o.check(a)) {
13642
13679
  const x = new Array(a.length);
13643
13680
  return this.seen.set(a, x), a.forEach(function(S, A) {
13644
13681
  x[A] = this.copy(S);
13645
13682
  }, this), x;
13646
13683
  }
13647
- if (!Ro.check(a))
13684
+ if (!Uo.check(a))
13648
13685
  return a;
13649
13686
  qs(a, this.lines);
13650
13687
  const l = Object.create(Object.getPrototypeOf(a), {
@@ -13668,7 +13705,7 @@ Xi.copy = function(a) {
13668
13705
  }
13669
13706
  return this.indent = i, this.startTokenIndex = u, this.endTokenIndex = h, l;
13670
13707
  };
13671
- Xi.findTokenRange = function(a) {
13708
+ Gi.findTokenRange = function(a) {
13672
13709
  for (; this.startTokenIndex > 0; ) {
13673
13710
  const l = a.tokens[this.startTokenIndex];
13674
13711
  if (re(a.start, l.loc.start) < 0)
@@ -13699,7 +13736,7 @@ Xi.findTokenRange = function(a) {
13699
13736
  }
13700
13737
  a.end.token = this.endTokenIndex;
13701
13738
  };
13702
- const ue = Me, Vo = Fe.array, qo = Fe.number, _s = {};
13739
+ const ue = Me, qo = Fe.array, zo = Fe.number, _s = {};
13703
13740
  [
13704
13741
  ["??"],
13705
13742
  ["||"],
@@ -13718,37 +13755,37 @@ const ue = Me, Vo = Fe.array, qo = Fe.number, _s = {};
13718
13755
  _s[r] = l;
13719
13756
  });
13720
13757
  });
13721
- const Oe = function(l) {
13758
+ const De = function(l) {
13722
13759
  this.stack = [l];
13723
- }, be = Oe.prototype;
13724
- Oe.from = function(a) {
13725
- if (a instanceof Oe)
13760
+ }, Te = De.prototype;
13761
+ De.from = function(a) {
13762
+ if (a instanceof De)
13726
13763
  return a.copy();
13727
- if (a instanceof bo) {
13728
- const l = Object.create(Oe.prototype), r = [a.value];
13764
+ if (a instanceof To) {
13765
+ const l = Object.create(De.prototype), r = [a.value];
13729
13766
  for (let i; i = a.parentPath; a = i)
13730
13767
  r.push(a.name, i.value);
13731
13768
  return l.stack = r.reverse(), l;
13732
13769
  }
13733
- return new Oe(a);
13770
+ return new De(a);
13734
13771
  };
13735
- be.copy = function() {
13736
- const l = Object.create(Oe.prototype);
13772
+ Te.copy = function() {
13773
+ const l = Object.create(De.prototype);
13737
13774
  return l.stack = this.stack.slice(0), l;
13738
13775
  };
13739
- be.getName = function() {
13776
+ Te.getName = function() {
13740
13777
  const l = this.stack, r = l.length;
13741
13778
  return r > 1 ? l[r - 2] : null;
13742
13779
  };
13743
- be.getValue = function() {
13780
+ Te.getValue = function() {
13744
13781
  const l = this.stack;
13745
13782
  return l[l.length - 1];
13746
13783
  };
13747
- be.valueIsDuplicate = function() {
13784
+ Te.valueIsDuplicate = function() {
13748
13785
  const a = this.stack, l = a.length - 1;
13749
13786
  return a.lastIndexOf(a[l], l - 1) >= 0;
13750
13787
  };
13751
- function Gi(a, l) {
13788
+ function Qi(a, l) {
13752
13789
  const r = a.stack;
13753
13790
  for (let i = r.length - 1; i >= 0; i -= 2) {
13754
13791
  const o = r[i];
@@ -13757,17 +13794,17 @@ function Gi(a, l) {
13757
13794
  }
13758
13795
  return null;
13759
13796
  }
13760
- be.getNode = function(l = 0) {
13761
- return Gi(this, ~~l);
13797
+ Te.getNode = function(l = 0) {
13798
+ return Qi(this, ~~l);
13762
13799
  };
13763
- be.getParentNode = function(l = 0) {
13764
- return Gi(this, ~~l + 1);
13800
+ Te.getParentNode = function(l = 0) {
13801
+ return Qi(this, ~~l + 1);
13765
13802
  };
13766
- be.getRootValue = function() {
13803
+ Te.getRootValue = function() {
13767
13804
  const l = this.stack;
13768
13805
  return l.length % 2 === 0 ? l[1] : l[0];
13769
13806
  };
13770
- be.call = function(l) {
13807
+ Te.call = function(l) {
13771
13808
  const r = this.stack, i = r.length;
13772
13809
  let o = r[i - 1];
13773
13810
  const u = arguments.length;
@@ -13778,7 +13815,7 @@ be.call = function(l) {
13778
13815
  const h = l(this);
13779
13816
  return r.length = i, h;
13780
13817
  };
13781
- be.each = function(l) {
13818
+ Te.each = function(l) {
13782
13819
  const r = this.stack, i = r.length;
13783
13820
  let o = r[i - 1];
13784
13821
  const u = arguments.length;
@@ -13790,7 +13827,7 @@ be.each = function(l) {
13790
13827
  h in o && (r.push(h, o[h]), l(this), r.length -= 2);
13791
13828
  r.length = i;
13792
13829
  };
13793
- be.map = function(l) {
13830
+ Te.map = function(l) {
13794
13831
  const r = this.stack, i = r.length;
13795
13832
  let o = r[i - 1];
13796
13833
  const u = arguments.length;
@@ -13803,14 +13840,14 @@ be.map = function(l) {
13803
13840
  d in o && (r.push(d, o[d]), h[d] = l(this, d), r.length -= 2);
13804
13841
  return r.length = i, h;
13805
13842
  };
13806
- be.hasParens = function() {
13843
+ Te.hasParens = function() {
13807
13844
  const a = this.getNode(), l = this.getPrevToken(a);
13808
13845
  if (!l)
13809
13846
  return !1;
13810
13847
  const r = this.getNextToken(a);
13811
13848
  return r ? !!(l.value === "(" && (r.value === ")" || !this.canBeFirstInStatement() && this.firstInStatement() && !this.needsParens(!0))) : !1;
13812
13849
  };
13813
- be.getPrevToken = function(a) {
13850
+ Te.getPrevToken = function(a) {
13814
13851
  a = a || this.getNode();
13815
13852
  const l = a && a.loc, r = l && l.tokens;
13816
13853
  if (r && l.start.token > 0) {
@@ -13823,7 +13860,7 @@ be.getPrevToken = function(a) {
13823
13860
  }
13824
13861
  return null;
13825
13862
  };
13826
- be.getNextToken = function(a) {
13863
+ Te.getNextToken = function(a) {
13827
13864
  a = a || this.getNode();
13828
13865
  const l = a && a.loc, r = l && l.tokens;
13829
13866
  if (r && l.end.token < r.length) {
@@ -13836,7 +13873,7 @@ be.getNextToken = function(a) {
13836
13873
  }
13837
13874
  return null;
13838
13875
  };
13839
- be.needsParens = function(a) {
13876
+ Te.needsParens = function(a) {
13840
13877
  const l = this.getNode();
13841
13878
  if (l.type === "AssignmentExpression" && l.left.type === "ObjectPattern")
13842
13879
  return !0;
@@ -13893,7 +13930,7 @@ be.needsParens = function(a) {
13893
13930
  case "UnionTypeAnnotation":
13894
13931
  return r.type === "NullableTypeAnnotation";
13895
13932
  case "Literal":
13896
- return r.type === "MemberExpression" && qo.check(l.value) && i === "object" && r.object === l;
13933
+ return r.type === "MemberExpression" && zo.check(l.value) && i === "object" && r.object === l;
13897
13934
  case "NumericLiteral":
13898
13935
  return r.type === "MemberExpression" && i === "object" && r.object === l;
13899
13936
  case "YieldExpression":
@@ -13918,7 +13955,7 @@ be.needsParens = function(a) {
13918
13955
  return !1;
13919
13956
  }
13920
13957
  case "ArrowFunctionExpression":
13921
- return ue.CallExpression.check(r) && i === "callee" && r.callee === l || ue.MemberExpression.check(r) && i === "object" && r.object === l || ue.TSAsExpression && ue.TSAsExpression.check(r) && i === "expression" && r.expression === l ? !0 : Qi(r);
13958
+ return ue.CallExpression.check(r) && i === "callee" && r.callee === l || ue.MemberExpression.check(r) && i === "object" && r.object === l || ue.TSAsExpression && ue.TSAsExpression.check(r) && i === "expression" && r.expression === l ? !0 : Yi(r);
13922
13959
  case "ObjectExpression":
13923
13960
  if (r.type === "ArrowFunctionExpression" && i === "body" && r.body === l)
13924
13961
  return !0;
@@ -13933,35 +13970,35 @@ be.needsParens = function(a) {
13933
13970
  }
13934
13971
  return r.type === "NewExpression" && i === "callee" && r.callee === l ? js(l) : !!(a !== !0 && !this.canBeFirstInStatement() && this.firstInStatement());
13935
13972
  };
13936
- function Qi(a) {
13973
+ function Yi(a) {
13937
13974
  return ue.BinaryExpression.check(a) || ue.LogicalExpression.check(a);
13938
13975
  }
13939
13976
  function js(a) {
13940
- return ue.CallExpression.check(a) ? !0 : Vo.check(a) ? a.some(js) : ue.Node.check(a) ? To(
13977
+ return ue.CallExpression.check(a) ? !0 : qo.check(a) ? a.some(js) : ue.Node.check(a) ? Po(
13941
13978
  a,
13942
13979
  (l, r) => js(r)
13943
13980
  ) : !1;
13944
13981
  }
13945
- be.canBeFirstInStatement = function() {
13982
+ Te.canBeFirstInStatement = function() {
13946
13983
  const a = this.getNode();
13947
13984
  return !(ue.FunctionExpression.check(a) || ue.ObjectExpression.check(a) || ue.ClassExpression.check(a));
13948
13985
  };
13949
- be.firstInStatement = function() {
13986
+ Te.firstInStatement = function() {
13950
13987
  const a = this.stack;
13951
13988
  let l, r, i, o;
13952
13989
  for (let u = a.length - 1; u >= 0; u -= 2)
13953
13990
  if (ue.Node.check(a[u]) && (i = l, o = r, l = a[u - 1], r = a[u]), !(!r || !o)) {
13954
13991
  if (ue.BlockStatement.check(r) && l === "body" && i === 0 || ue.ExpressionStatement.check(r) && i === "expression" || ue.AssignmentExpression.check(r) && i === "left" || ue.ArrowFunctionExpression.check(r) && i === "body")
13955
13992
  return !0;
13956
- if (!(ue.SequenceExpression.check(r) && a[u + 1] === "expressions" && i === 0) && !(ue.CallExpression.check(r) && i === "callee") && !(ue.MemberExpression.check(r) && i === "object") && !(ue.ConditionalExpression.check(r) && i === "test") && !(Qi(r) && i === "left") && !(ue.UnaryExpression.check(r) && !r.prefix && i === "argument"))
13993
+ if (!(ue.SequenceExpression.check(r) && a[u + 1] === "expressions" && i === 0) && !(ue.CallExpression.check(r) && i === "callee") && !(ue.MemberExpression.check(r) && i === "object") && !(ue.ConditionalExpression.check(r) && i === "test") && !(Yi(r) && i === "left") && !(ue.UnaryExpression.check(r) && !r.prefix && i === "argument"))
13957
13994
  return !1;
13958
13995
  }
13959
13996
  return !0;
13960
13997
  };
13961
- const It = Me.Printable, mi = Me.Expression, zo = Me.ReturnStatement, Wo = Me.SourceLocation, Nt = Fe.object, Rs = Fe.array, Jo = Fe.string, rs = /[0-9a-z_$]/i, Yi = function(l) {
13998
+ const Nt = Me.Printable, mi = Me.Expression, Wo = Me.ReturnStatement, Jo = Me.SourceLocation, kt = Fe.object, Rs = Fe.array, Ho = Fe.string, rs = /[0-9a-z_$]/i, Zi = function(l) {
13962
13999
  const r = this, i = [];
13963
14000
  r.replace = function(o, u) {
13964
- Jo.check(u) && (u = j(u)), i.push({
14001
+ Ho.check(u) && (u = j(u)), i.push({
13965
14002
  lines: u,
13966
14003
  start: o.start,
13967
14004
  end: o.end
@@ -13979,14 +14016,14 @@ const It = Me.Printable, mi = Me.Expression, zo = Me.ReturnStatement, Wo = Me.So
13979
14016
  re(u, g.start) > 0 || (d(u, g.start), h.push(g.lines), u = g.end);
13980
14017
  }), d(u, o.end), L(h);
13981
14018
  };
13982
- }, Zi = Yi.prototype;
13983
- Zi.tryToReprintComments = function(a, l, r) {
14019
+ }, en = Zi.prototype;
14020
+ en.tryToReprintComments = function(a, l, r) {
13984
14021
  const i = this;
13985
14022
  if (!a.comments && !l.comments)
13986
14023
  return !0;
13987
- const o = Oe.from(a), u = Oe.from(l);
14024
+ const o = De.from(a), u = De.from(l);
13988
14025
  o.stack.push("comments", yi(a)), u.stack.push("comments", yi(l));
13989
- const h = [], d = tn(o, u, h);
14026
+ const h = [], d = sn(o, u, h);
13990
14027
  return d && h.length > 0 && h.forEach(function(g) {
13991
14028
  const x = g.oldPath.getValue();
13992
14029
  i.replace(
@@ -14003,7 +14040,7 @@ function yi(a) {
14003
14040
  (r.leading || r.trailing) && l.push(r);
14004
14041
  }), l;
14005
14042
  }
14006
- Zi.deleteComments = function(a) {
14043
+ en.deleteComments = function(a) {
14007
14044
  if (!a.comments)
14008
14045
  return;
14009
14046
  const l = this;
@@ -14023,17 +14060,17 @@ Zi.deleteComments = function(a) {
14023
14060
  );
14024
14061
  });
14025
14062
  };
14026
- function Ho(a) {
14063
+ function Ko(a) {
14027
14064
  const l = a.getValue();
14028
- if (!It.check(l))
14065
+ if (!Nt.check(l))
14029
14066
  return;
14030
14067
  const r = l.original, i = r && r.loc, o = i && i.lines, u = [];
14031
- if (!(!o || !Go(a, u)))
14068
+ if (!(!o || !Qo(a, u)))
14032
14069
  return function(h) {
14033
- const d = new Yi(o);
14070
+ const d = new Zi(o);
14034
14071
  u.forEach(function(x) {
14035
14072
  const S = x.newPath.getValue(), A = x.oldPath.getValue();
14036
- Wo.assert(A.loc, !0);
14073
+ Jo.assert(A.loc, !0);
14037
14074
  const v = !d.tryToReprintComments(
14038
14075
  S,
14039
14076
  A,
@@ -14049,7 +14086,7 @@ function Ho(a) {
14049
14086
  // decide if reprint.newPath needs parentheses, as usual.
14050
14087
  avoidRootParens: A.type === S.type && x.oldPath.hasParens()
14051
14088
  }).indentTail(A.loc.indent);
14052
- const P = Ko(o, A.loc, I), E = Xo(o, A.loc, I);
14089
+ const P = Xo(o, A.loc, I), E = Go(o, A.loc, I);
14053
14090
  if (P || E) {
14054
14091
  const T = [];
14055
14092
  P && T.push(" "), T.push(I), E && T.push(" "), I = L(T);
@@ -14060,28 +14097,28 @@ function Ho(a) {
14060
14097
  return a.needsParens() ? L(["(", g, ")"]) : g;
14061
14098
  };
14062
14099
  }
14063
- function Ko(a, l, r) {
14064
- const i = Ke(l.start), o = a.prevPos(i) && a.charAt(i), u = r.charAt(r.firstPos());
14100
+ function Xo(a, l, r) {
14101
+ const i = Xe(l.start), o = a.prevPos(i) && a.charAt(i), u = r.charAt(r.firstPos());
14065
14102
  return o && rs.test(o) && u && rs.test(u);
14066
14103
  }
14067
- function Xo(a, l, r) {
14104
+ function Go(a, l, r) {
14068
14105
  const i = a.charAt(l.end), o = r.lastPos(), u = r.prevPos(o) && r.charAt(o);
14069
14106
  return u && rs.test(u) && i && rs.test(i);
14070
14107
  }
14071
- function Go(a, l) {
14108
+ function Qo(a, l) {
14072
14109
  const r = a.getValue();
14073
- It.assert(r);
14110
+ Nt.assert(r);
14074
14111
  const i = r.original;
14075
- if (It.assert(i), r.type !== i.type)
14112
+ if (Nt.assert(i), r.type !== i.type)
14076
14113
  return !1;
14077
- const o = new Oe(i), u = Us(a, o, l);
14114
+ const o = new De(i), u = Us(a, o, l);
14078
14115
  return u || (l.length = 0), u;
14079
14116
  }
14080
- function en(a, l, r) {
14117
+ function tn(a, l, r) {
14081
14118
  const i = a.getValue(), o = l.getValue();
14082
- return i === o ? !0 : Rs.check(i) ? tn(a, l, r) : Nt.check(i) ? Qo(a, l, r) : !1;
14119
+ return i === o ? !0 : Rs.check(i) ? sn(a, l, r) : kt.check(i) ? Yo(a, l, r) : !1;
14083
14120
  }
14084
- function tn(a, l, r) {
14121
+ function sn(a, l, r) {
14085
14122
  const i = a.getValue(), o = l.getValue();
14086
14123
  if (i === o || a.valueIsDuplicate() || l.valueIsDuplicate())
14087
14124
  return !0;
@@ -14091,23 +14128,23 @@ function tn(a, l, r) {
14091
14128
  return !1;
14092
14129
  for (let h = 0; h < u; ++h) {
14093
14130
  a.stack.push(h, i[h]), l.stack.push(h, o[h]);
14094
- const d = en(a, l, r);
14131
+ const d = tn(a, l, r);
14095
14132
  if (a.stack.length -= 2, l.stack.length -= 2, !d)
14096
14133
  return !1;
14097
14134
  }
14098
14135
  return !0;
14099
14136
  }
14100
- function Qo(a, l, r) {
14137
+ function Yo(a, l, r) {
14101
14138
  const i = a.getValue();
14102
- if (Nt.assert(i), i.original === null)
14139
+ if (kt.assert(i), i.original === null)
14103
14140
  return !1;
14104
14141
  const o = l.getValue();
14105
- if (!Nt.check(o))
14142
+ if (!kt.check(o))
14106
14143
  return !1;
14107
14144
  if (i === o || a.valueIsDuplicate() || l.valueIsDuplicate())
14108
14145
  return !0;
14109
- if (It.check(i)) {
14110
- if (!It.check(o))
14146
+ if (Nt.check(i)) {
14147
+ if (!Nt.check(o))
14111
14148
  return !1;
14112
14149
  const u = a.getParentNode(), h = l.getParentNode();
14113
14150
  if (h !== null && h.type === "FunctionTypeAnnotation" && u !== null && u.type === "FunctionTypeAnnotation") {
@@ -14139,31 +14176,31 @@ function Qo(a, l, r) {
14139
14176
  }
14140
14177
  function Us(a, l, r) {
14141
14178
  const i = a.getValue(), o = l.getValue();
14142
- if (Nt.assert(i), Nt.assert(o), i.original === null || a.needsParens() && !l.hasParens())
14179
+ if (kt.assert(i), kt.assert(o), i.original === null || a.needsParens() && !l.hasParens())
14143
14180
  return !1;
14144
- const u = wo(o, i);
14181
+ const u = Eo(o, i);
14145
14182
  (o.type === "File" || i.type === "File") && delete u.tokens, delete u.loc;
14146
14183
  const h = r.length;
14147
14184
  for (let d in u) {
14148
14185
  if (d.charAt(0) === "_")
14149
14186
  continue;
14150
14187
  a.stack.push(d, Ue(i, d)), l.stack.push(d, Ue(o, d));
14151
- const g = en(a, l, r);
14188
+ const g = tn(a, l, r);
14152
14189
  if (a.stack.length -= 2, l.stack.length -= 2, !g)
14153
14190
  return !1;
14154
14191
  }
14155
- return !(zo.check(a.getNode()) && r.length > h);
14192
+ return !(Wo.check(a.getNode()) && r.length > h);
14156
14193
  }
14157
- const de = Me, Ws = Fe.string, Yo = Fe.object, is = function(l, r) {
14158
- Ws.assert(l), this.code = l, r && (Yo.assert(r), this.map = r);
14159
- }, Zo = is.prototype;
14194
+ const de = Me, Ws = Fe.string, Zo = Fe.object, is = function(l, r) {
14195
+ Ws.assert(l), this.code = l, r && (Zo.assert(r), this.map = r);
14196
+ }, el = is.prototype;
14160
14197
  let gi = !1;
14161
- Zo.toString = function() {
14198
+ el.toString = function() {
14162
14199
  return gi || (console.warn(
14163
14200
  "Deprecation warning: recast.print now returns an object with a .code property. You appear to be treating the object as a string, which might still work but is strongly discouraged."
14164
14201
  ), gi = !0), this.code;
14165
14202
  };
14166
- const xi = new is(""), el = function(l) {
14203
+ const xi = new is(""), tl = function(l) {
14167
14204
  const r = l && l.tabWidth;
14168
14205
  l = as(l), l.sourceFileName = null;
14169
14206
  function i(u, h) {
@@ -14182,7 +14219,7 @@ const xi = new is(""), el = function(l) {
14182
14219
  const S = u.getNode().loc;
14183
14220
  S && S.lines && S.lines.guessTabWidth && (l.tabWidth = S.lines.guessTabWidth());
14184
14221
  }
14185
- const g = Ho(u), x = g ? (
14222
+ const g = Ko(u), x = g ? (
14186
14223
  // Since the print function that we pass to the reprinter will
14187
14224
  // be used to print "new" nodes, it's tempting to think we
14188
14225
  // should pass printRootGenerically instead of print, to avoid
@@ -14206,13 +14243,13 @@ const xi = new is(""), el = function(l) {
14206
14243
  this.print = function(u) {
14207
14244
  if (!u)
14208
14245
  return xi;
14209
- const h = o(Oe.from(u), {
14246
+ const h = o(De.from(u), {
14210
14247
  includeComments: !0,
14211
14248
  avoidRootParens: !1
14212
14249
  });
14213
14250
  return new is(
14214
14251
  h.toString(l),
14215
- Eo(
14252
+ Ao(
14216
14253
  l.inputSourceMap,
14217
14254
  h.getSourceMap(l.sourceMapName, l.sourceRoot)
14218
14255
  )
@@ -14233,21 +14270,21 @@ const xi = new is(""), el = function(l) {
14233
14270
  )
14234
14271
  );
14235
14272
  }
14236
- const d = Oe.from(u), g = l.reuseWhitespace;
14273
+ const d = De.from(u), g = l.reuseWhitespace;
14237
14274
  l.reuseWhitespace = !1;
14238
14275
  const x = new is(h(d).toString(l));
14239
14276
  return l.reuseWhitespace = g, x;
14240
14277
  };
14241
14278
  };
14242
14279
  function bi(a, l, r, i) {
14243
- const o = a.getValue(), u = [], h = tl(a, l, i);
14280
+ const o = a.getValue(), u = [], h = sl(a, l, i);
14244
14281
  if (!o || h.isEmpty())
14245
14282
  return h;
14246
14283
  let d = !1;
14247
- const g = sl(a, i);
14284
+ const g = rl(a, i);
14248
14285
  return g.isEmpty() ? r.avoidRootParens || (d = a.needsParens()) : u.push(g), d && u.unshift("("), u.push(h), d && u.push(")"), L(u);
14249
14286
  }
14250
- function tl(a, l, r) {
14287
+ function sl(a, l, r) {
14251
14288
  const i = a.getValue();
14252
14289
  if (!i)
14253
14290
  return j("");
@@ -14264,7 +14301,7 @@ function tl(a, l, r) {
14264
14301
  `);
14265
14302
  }, "directives"), i.interpreter && o.push(a.call(r, "interpreter")), o.push(
14266
14303
  a.call(
14267
- (u) => ct(u, l, r),
14304
+ (u) => ut(u, l, r),
14268
14305
  "body"
14269
14306
  )
14270
14307
  ), L(o);
@@ -14411,7 +14448,7 @@ function tl(a, l, r) {
14411
14448
  }
14412
14449
  return o.push(
14413
14450
  a.call(r, "source"),
14414
- rn(a, l, r),
14451
+ nn(a, l, r),
14415
14452
  ";"
14416
14453
  ), L(o);
14417
14454
  }
@@ -14421,7 +14458,7 @@ function tl(a, l, r) {
14421
14458
  o.push("static ");
14422
14459
  case "BlockStatement": {
14423
14460
  const u = a.call(
14424
- (h) => ct(h, l, r),
14461
+ (h) => ut(h, l, r),
14425
14462
  "body"
14426
14463
  );
14427
14464
  return u.isEmpty() && (!i.directives || i.directives.length === 0) ? (o.push("{}"), L(o)) : (o.push(`{
@@ -14472,7 +14509,7 @@ function tl(a, l, r) {
14472
14509
  `), o.push(m), P < x - 1 ? (o.push(h + (O ? `
14473
14510
 
14474
14511
  ` : `
14475
- `)), g = !O) : (x !== 1 && u || !S && Ct(l, "objects") && T.getValue().type !== "RestElement") && o.push(h), P++;
14512
+ `)), g = !O) : (x !== 1 && u || !S && It(l, "objects") && T.getValue().type !== "RestElement") && o.push(h), P++;
14476
14513
  }, E);
14477
14514
  }), i.inexact) {
14478
14515
  const E = j("...", l);
@@ -14518,7 +14555,7 @@ function tl(a, l, r) {
14518
14555
  o.push(",");
14519
14556
  else {
14520
14557
  let I = d[A];
14521
- x ? A > 0 && o.push(" ") : I = I.indent(l.tabWidth), o.push(I), (A < h - 1 || !x && Ct(l, "arrays")) && o.push(","), x || o.push(`
14558
+ x ? A > 0 && o.push(" ") : I = I.indent(l.tabWidth), o.push(I), (A < h - 1 || !x && It(l, "arrays")) && o.push(","), x || o.push(`
14522
14559
  `);
14523
14560
  }
14524
14561
  }, "elements"), x && l.arrayBracketSpacing ? o.push(" ]") : o.push("]"), i.typeAnnotation && o.push(a.call(r, "typeAnnotation")), L(o);
@@ -14533,28 +14570,28 @@ function tl(a, l, r) {
14533
14570
  return j("null");
14534
14571
  case "RegExpLiteral":
14535
14572
  return j(
14536
- ut(i) || `/${i.pattern}/${i.flags || ""}`,
14573
+ ht(i) || `/${i.pattern}/${i.flags || ""}`,
14537
14574
  l
14538
14575
  );
14539
14576
  case "BigIntLiteral":
14540
- return j(ut(i) || i.value + "n", l);
14577
+ return j(ht(i) || i.value + "n", l);
14541
14578
  case "NumericLiteral":
14542
- return j(ut(i) || i.value, l);
14579
+ return j(ht(i) || i.value, l);
14543
14580
  case "DecimalLiteral":
14544
- return j(ut(i) || i.value + "m", l);
14581
+ return j(ht(i) || i.value + "m", l);
14545
14582
  case "StringLiteral":
14546
- return j(Et(i.value, l));
14583
+ return j(At(i.value, l));
14547
14584
  case "BooleanLiteral":
14548
14585
  case "Literal":
14549
14586
  return j(
14550
- ut(i) || (typeof i.value == "string" ? Et(i.value, l) : i.value),
14587
+ ht(i) || (typeof i.value == "string" ? At(i.value, l) : i.value),
14551
14588
  l
14552
14589
  );
14553
14590
  case "Directive":
14554
14591
  return a.call(r, "value");
14555
14592
  case "DirectiveLiteral":
14556
14593
  return j(
14557
- ut(i) || Et(i.value, l),
14594
+ ht(i) || At(i.value, l),
14558
14595
  l
14559
14596
  );
14560
14597
  case "InterpreterDirective":
@@ -14563,7 +14600,7 @@ function tl(a, l, r) {
14563
14600
  case "ModuleSpecifier":
14564
14601
  if (i.local)
14565
14602
  throw new Error("The ESTree ModuleSpecifier type should be abstract");
14566
- return j(Et(i.value, l), l);
14603
+ return j(At(i.value, l), l);
14567
14604
  case "UnaryExpression":
14568
14605
  return o.push(i.operator), /[a-z]$/.test(i.operator) && o.push(" "), o.push(a.call(r, "argument")), L(o);
14569
14606
  case "UpdateExpression":
@@ -14605,17 +14642,17 @@ function tl(a, l, r) {
14605
14642
  a.call(r, "body")
14606
14643
  ]);
14607
14644
  case "IfStatement": {
14608
- const u = Ye(a.call(r, "consequent"), l);
14645
+ const u = Ze(a.call(r, "consequent"), l);
14609
14646
  return o.push("if (", a.call(r, "test"), ")", u), i.alternate && o.push(
14610
14647
  Si(u) ? " else" : `
14611
14648
  else`,
14612
- Ye(a.call(r, "alternate"), l)
14649
+ Ze(a.call(r, "alternate"), l)
14613
14650
  ), L(o);
14614
14651
  }
14615
14652
  case "ForStatement": {
14616
14653
  const u = a.call(r, "init"), h = u.length > 1 ? `;
14617
14654
  ` : "; ", d = "for (", g = j(h).join([u, a.call(r, "test"), a.call(r, "update")]).indentTail(d.length), x = L([d, g, ")"]);
14618
- let S = Ye(a.call(r, "body"), l);
14655
+ let S = Ze(a.call(r, "body"), l);
14619
14656
  return o.push(x), x.length > 1 && (o.push(`
14620
14657
  `), S = S.trimLeft()), o.push(S), L(o);
14621
14658
  }
@@ -14624,7 +14661,7 @@ else`,
14624
14661
  "while (",
14625
14662
  a.call(r, "test"),
14626
14663
  ")",
14627
- Ye(a.call(r, "body"), l)
14664
+ Ze(a.call(r, "body"), l)
14628
14665
  ]);
14629
14666
  case "ForInStatement":
14630
14667
  return L([
@@ -14633,7 +14670,7 @@ else`,
14633
14670
  " in ",
14634
14671
  a.call(r, "right"),
14635
14672
  ")",
14636
- Ye(a.call(r, "body"), l)
14673
+ Ze(a.call(r, "body"), l)
14637
14674
  ]);
14638
14675
  case "ForOfStatement":
14639
14676
  case "ForAwaitStatement":
@@ -14643,19 +14680,19 @@ else`,
14643
14680
  " of ",
14644
14681
  a.call(r, "right"),
14645
14682
  ")",
14646
- Ye(a.call(r, "body"), l)
14683
+ Ze(a.call(r, "body"), l)
14647
14684
  ), L(o);
14648
14685
  case "DoWhileStatement": {
14649
14686
  const u = L([
14650
14687
  "do",
14651
- Ye(a.call(r, "body"), l)
14688
+ Ze(a.call(r, "body"), l)
14652
14689
  ]);
14653
14690
  return o.push(u), Si(u) ? o.push(" while") : o.push(`
14654
14691
  while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14655
14692
  }
14656
14693
  case "DoExpression": {
14657
14694
  const u = a.call(
14658
- (h) => ct(h, l, r),
14695
+ (h) => ut(h, l, r),
14659
14696
  "body"
14660
14697
  );
14661
14698
  return L([`do {
@@ -14697,7 +14734,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14697
14734
  `
14698
14735
  `,
14699
14736
  a.call(
14700
- (u) => ct(u, l, r),
14737
+ (u) => ut(u, l, r),
14701
14738
  "consequent"
14702
14739
  ).indent(l.tabWidth)
14703
14740
  ), L(o);
@@ -14776,7 +14813,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14776
14813
  `{
14777
14814
  `,
14778
14815
  a.call(
14779
- (u) => ct(u, l, r),
14816
+ (u) => ut(u, l, r),
14780
14817
  "body"
14781
14818
  ).indent(l.tabWidth),
14782
14819
  `
@@ -14789,13 +14826,13 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14789
14826
  const u = i.accessibility || i.access;
14790
14827
  typeof u == "string" && o.push(u, " "), i.static && o.push("static "), i.abstract && o.push("abstract "), i.readonly && o.push("readonly ");
14791
14828
  let h = a.call(r, "key");
14792
- return i.computed && (h = L(["[", h, "]"])), i.variance && (h = L([wt(a, r), h])), o.push(h), i.optional && o.push("?"), i.definite && o.push("!"), i.typeAnnotation && o.push(a.call(r, "typeAnnotation")), i.value && o.push(" = ", a.call(r, "value")), o.push(";"), L(o);
14829
+ return i.computed && (h = L(["[", h, "]"])), i.variance && (h = L([Et(a, r), h])), o.push(h), i.optional && o.push("?"), i.definite && o.push("!"), i.typeAnnotation && o.push(a.call(r, "typeAnnotation")), i.value && o.push(" = ", a.call(r, "value")), o.push(";"), L(o);
14793
14830
  }
14794
14831
  case "ClassPrivateProperty":
14795
14832
  return i.static && o.push("static "), o.push(a.call(r, "key")), i.typeAnnotation && o.push(a.call(r, "typeAnnotation")), i.value && o.push(" = ", a.call(r, "value")), o.push(";"), L(o);
14796
14833
  case "ClassAccessorProperty":
14797
14834
  return o.push(
14798
- ...sn(i),
14835
+ ...rn(i),
14799
14836
  "accessor "
14800
14837
  ), i.computed ? o.push("[", a.call(r, "key"), "]") : o.push(a.call(r, "key")), i.optional && o.push("?"), i.definite && o.push("!"), i.typeAnnotation && o.push(a.call(r, "typeAnnotation")), i.value && o.push(" = ", a.call(r, "value")), o.push(";"), L(o);
14801
14838
  case "ClassDeclaration":
@@ -14811,7 +14848,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14811
14848
  ), i.implements && i.implements.length > 0 && o.push(
14812
14849
  " implements ",
14813
14850
  j(", ").join(a.map(r, "implements"))
14814
- ), o.push(" ", a.call(r, "body")), i.type === "DeclareClass" ? St(a, o) : L(o);
14851
+ ), o.push(" ", a.call(r, "body")), i.type === "DeclareClass" ? wt(a, o) : L(o);
14815
14852
  case "TemplateElement":
14816
14853
  return j(i.value.raw, l).lockIndentTail();
14817
14854
  case "TemplateLiteral": {
@@ -14873,7 +14910,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14873
14910
  o.push(",");
14874
14911
  else {
14875
14912
  let A = u[x];
14876
- d ? x > 0 && o.push(" ") : A = A.indent(l.tabWidth), o.push(A), (x < i.types.length - 1 || !d && Ct(l, "arrays")) && o.push(","), d || o.push(`
14913
+ d ? x > 0 && o.push(" ") : A = A.indent(l.tabWidth), o.push(A), (x < i.types.length - 1 || !d && It(l, "arrays")) && o.push(","), d || o.push(`
14877
14914
  `);
14878
14915
  }
14879
14916
  }, "types"), d && l.arrayBracketSpacing ? o.push(" ]") : o.push("]"), L(o);
@@ -14888,25 +14925,25 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
14888
14925
  j(", ").join(a.map(r, "extends"))
14889
14926
  ), o.push(" ", a.call(r, "body")), L(o);
14890
14927
  case "DeclareFunction":
14891
- return St(a, [
14928
+ return wt(a, [
14892
14929
  "function ",
14893
14930
  a.call(r, "id"),
14894
14931
  ";"
14895
14932
  ]);
14896
14933
  case "DeclareModule":
14897
- return St(a, [
14934
+ return wt(a, [
14898
14935
  "module ",
14899
14936
  a.call(r, "id"),
14900
14937
  " ",
14901
14938
  a.call(r, "body")
14902
14939
  ]);
14903
14940
  case "DeclareModuleExports":
14904
- return St(a, [
14941
+ return wt(a, [
14905
14942
  "module.exports",
14906
14943
  a.call(r, "typeAnnotation")
14907
14944
  ]);
14908
14945
  case "DeclareVariable":
14909
- return St(a, ["var ", a.call(r, "id"), ";"]);
14946
+ return wt(a, ["var ", a.call(r, "id"), ";"]);
14910
14947
  case "DeclareExportDeclaration":
14911
14948
  case "DeclareExportAllDeclaration":
14912
14949
  return L(["declare ", Pi(a, l, r)]);
@@ -15003,10 +15040,10 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15003
15040
  case "ObjectTypeCallProperty":
15004
15041
  return a.call(r, "value");
15005
15042
  case "ObjectTypeIndexer":
15006
- return i.static && o.push("static "), o.push(wt(a, r), "["), i.id && o.push(a.call(r, "id"), ": "), o.push(a.call(r, "key"), "]: ", a.call(r, "value")), L(o);
15043
+ return i.static && o.push("static "), o.push(Et(a, r), "["), i.id && o.push(a.call(r, "id"), ": "), o.push(a.call(r, "key"), "]: ", a.call(r, "value")), L(o);
15007
15044
  case "ObjectTypeProperty":
15008
15045
  return L([
15009
- wt(a, r),
15046
+ Et(a, r),
15010
15047
  a.call(r, "key"),
15011
15048
  i.optional ? "?" : "",
15012
15049
  ": ",
@@ -15029,7 +15066,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15029
15066
  a.call(r, "id")
15030
15067
  ]);
15031
15068
  case "StringLiteralTypeAnnotation":
15032
- return j(Et(i.value, l), l);
15069
+ return j(At(i.value, l), l);
15033
15070
  case "NumberLiteralTypeAnnotation":
15034
15071
  case "NumericLiteralTypeAnnotation":
15035
15072
  return j(JSON.stringify(i.value), l);
@@ -15073,7 +15110,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15073
15110
  case "Variance":
15074
15111
  return i.kind === "plus" ? j("+") : i.kind === "minus" ? j("-") : j("");
15075
15112
  case "TypeParameter":
15076
- return i.variance && o.push(wt(a, r)), o.push(a.call(r, "name")), i.bound && o.push(a.call(r, "bound")), i.default && o.push("=", a.call(r, "default")), L(o);
15113
+ return i.variance && o.push(Et(a, r)), o.push(a.call(r, "name")), i.bound && o.push(a.call(r, "bound")), i.default && o.push("=", a.call(r, "default")), L(o);
15077
15114
  case "TypeofTypeAnnotation":
15078
15115
  return L([
15079
15116
  j("typeof ", l),
@@ -15205,7 +15242,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15205
15242
  case "TSTypeLiteral": {
15206
15243
  const u = j(`
15207
15244
  `).join(
15208
- a.map(r, "members").map((h) => kt(h) !== ";" ? h.concat(";") : h)
15245
+ a.map(r, "members").map((h) => Lt(h) !== ";" ? h.concat(";") : h)
15209
15246
  );
15210
15247
  return u.isEmpty() ? j("{}", l) : (o.push(`{
15211
15248
  `, u.indent(l.tabWidth), `
@@ -15251,7 +15288,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15251
15288
  a.call(r, "typeAnnotation")
15252
15289
  ]);
15253
15290
  case "TSPropertySignature":
15254
- return o.push(wt(a, r), i.readonly ? "readonly " : ""), i.computed ? o.push("[", a.call(r, "key"), "]") : o.push(a.call(r, "key")), o.push(i.optional ? "?" : "", a.call(r, "typeAnnotation")), L(o);
15291
+ return o.push(Et(a, r), i.readonly ? "readonly " : ""), i.computed ? o.push("[", a.call(r, "key"), "]") : o.push(a.call(r, "key")), o.push(i.optional ? "?" : "", a.call(r, "typeAnnotation")), L(o);
15255
15292
  case "TSMethodSignature":
15256
15293
  return i.computed ? o.push("[", a.call(r, "key"), "]") : o.push(a.call(r, "key")), i.optional && o.push("?"), o.push(
15257
15294
  a.call(r, "typeParameters"),
@@ -15333,7 +15370,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15333
15370
  case "TSInterfaceBody": {
15334
15371
  const u = j(`
15335
15372
  `).join(
15336
- a.map(r, "body").map((h) => kt(h) !== ";" ? h.concat(";") : h)
15373
+ a.map(r, "body").map((h) => Lt(h) !== ";" ? h.concat(";") : h)
15337
15374
  );
15338
15375
  return u.isEmpty() ? j("{}", l) : L([`{
15339
15376
  `, u.indent(l.tabWidth), `
@@ -15354,7 +15391,7 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15354
15391
  return a.getParentNode().type === "TSModuleDeclaration" ? o.push(".") : (i.declare && o.push("declare "), i.global || (i.id.type === "StringLiteral" || i.id.type === "Literal" && typeof i.id.value == "string" || i.loc && i.loc.lines && i.id.loc && i.loc.lines.sliceString(i.loc.start, i.id.loc.start).indexOf("module") >= 0 ? o.push("module ") : o.push("namespace "))), o.push(a.call(r, "id")), i.body && (o.push(" "), o.push(a.call(r, "body"))), L(o);
15355
15392
  case "TSModuleBlock": {
15356
15393
  const u = a.call(
15357
- (h) => ct(h, l, r),
15394
+ (h) => ut(h, l, r),
15358
15395
  "body"
15359
15396
  );
15360
15397
  return u.isEmpty() ? o.push("{}") : o.push(`{
@@ -15403,11 +15440,11 @@ while`), o.push(" (", a.call(r, "test"), ");"), L(o);
15403
15440
  throw new Error("unknown type: " + JSON.stringify(i.type));
15404
15441
  }
15405
15442
  }
15406
- function sl(a, l) {
15443
+ function rl(a, l) {
15407
15444
  const r = [], i = a.getValue();
15408
15445
  return i.decorators && i.decorators.length > 0 && // If the parent node is an export declaration, it will be
15409
15446
  // responsible for printing node.decorators.
15410
- !$i(a) ? a.each(function(o) {
15447
+ !Vi(a) ? a.each(function(o) {
15411
15448
  r.push(l(o), `
15412
15449
  `);
15413
15450
  }, "decorators") : ns(i) && i.declaration && i.declaration.decorators && a.each(
@@ -15419,7 +15456,7 @@ function sl(a, l) {
15419
15456
  "decorators"
15420
15457
  ), L(r);
15421
15458
  }
15422
- function ct(a, l, r) {
15459
+ function ut(a, l, r) {
15423
15460
  const i = [];
15424
15461
  a.each(function(d) {
15425
15462
  const g = d.getValue();
@@ -15433,7 +15470,7 @@ function ct(a, l, r) {
15433
15470
  return i.forEach(function(d, g) {
15434
15471
  const x = d.printed, S = d.node, A = x.length > 1, v = g > 0, I = g < u - 1;
15435
15472
  let P, E;
15436
- const T = S && S.loc && S.loc.lines, m = T && l.reuseWhitespace && Ui(S, T);
15473
+ const T = S && S.loc && S.loc.lines, m = T && l.reuseWhitespace && $i(S, T);
15437
15474
  if (v)
15438
15475
  if (m) {
15439
15476
  const O = T.skipSpaces(m.start, !0), U = O ? O.line : 1, D = m.start.line - U;
@@ -15458,10 +15495,10 @@ function ct(a, l, r) {
15458
15495
  `;
15459
15496
  else
15460
15497
  E = "";
15461
- h.push(rl(o, P), x), I ? o = E : E && h.push(E);
15498
+ h.push(il(o, P), x), I ? o = E : E && h.push(E);
15462
15499
  }), L(h);
15463
15500
  }
15464
- function rl(a, l) {
15501
+ function il(a, l) {
15465
15502
  if (!a && !l)
15466
15503
  return j("");
15467
15504
  if (!a)
@@ -15471,7 +15508,7 @@ function rl(a, l) {
15471
15508
  const r = j(a), i = j(l);
15472
15509
  return i.length > r.length ? i : r;
15473
15510
  }
15474
- function sn(a) {
15511
+ function rn(a) {
15475
15512
  const l = [];
15476
15513
  a.declare && l.push("declare ");
15477
15514
  const r = a.accessibility || a.access;
@@ -15480,7 +15517,7 @@ function sn(a) {
15480
15517
  function Ns(a, l, r) {
15481
15518
  const i = a.getNode(), o = i.kind, u = [];
15482
15519
  let h = i.value;
15483
- de.FunctionExpression.check(h) || (h = i), u.push(...sn(i)), h.async && u.push("async "), h.generator && u.push("*"), (o === "get" || o === "set") && u.push(o, " ");
15520
+ de.FunctionExpression.check(h) || (h = i), u.push(...rn(i)), h.async && u.push("async "), h.generator && u.push("*"), (o === "get" || o === "set") && u.push(o, " ");
15484
15521
  let d = a.call(r, "key");
15485
15522
  return i.computed && (d = L(["[", d, "]"])), u.push(d), i.optional && u.push("?"), i === h ? (u.push(
15486
15523
  a.call(r, "typeParameters"),
@@ -15500,7 +15537,7 @@ function Ns(a, l, r) {
15500
15537
  ), h.body ? u.push(" ", a.call(r, "value", "body")) : u.push(";")), L(u);
15501
15538
  }
15502
15539
  function Ti(a, l, r) {
15503
- const i = a.map(r, "arguments"), o = Ct(l, "parameters");
15540
+ const i = a.map(r, "arguments"), o = It(l, "parameters");
15504
15541
  let u = j(", ").join(i);
15505
15542
  return u.getLineLength(1) > l.wrapColumn ? (u = j(`,
15506
15543
  `).join(i), L([
@@ -15521,12 +15558,12 @@ function Be(a, l, r) {
15521
15558
  }, "defaults"), i.rest && u.push(L(["...", a.call(r, "rest")]));
15522
15559
  let h = j(", ").join(u);
15523
15560
  return h.length > 1 || h.getLineLength(1) > l.wrapColumn ? (h = j(`,
15524
- `).join(u), Ct(l, "parameters") && !i.rest && o[o.length - 1].type !== "RestElement" ? h = L([h, `,
15561
+ `).join(u), It(l, "parameters") && !i.rest && o[o.length - 1].type !== "RestElement" ? h = L([h, `,
15525
15562
  `]) : h = L([h, `
15526
15563
  `]), L([`
15527
15564
  `, h.indent(l.tabWidth)])) : h;
15528
15565
  }
15529
- function rn(a, l, r) {
15566
+ function nn(a, l, r) {
15530
15567
  const i = a.getValue();
15531
15568
  if (i.assertions && i.assertions.length > 0) {
15532
15569
  const o = [" assert {"], u = a.map(r, "assertions"), h = j(", ").join(u);
@@ -15577,26 +15614,26 @@ function Pi(a, l, r) {
15577
15614
  i.source && o.push(
15578
15615
  " from ",
15579
15616
  a.call(r, "source"),
15580
- rn(a, l, r)
15617
+ nn(a, l, r)
15581
15618
  );
15582
15619
  }
15583
15620
  let h = L(o);
15584
- return kt(h) !== ";" && !(i.declaration && (i.declaration.type === "FunctionDeclaration" || i.declaration.type === "ClassDeclaration" || i.declaration.type === "TSModuleDeclaration" || i.declaration.type === "TSInterfaceDeclaration" || i.declaration.type === "TSEnumDeclaration")) && (h = L([h, ";"])), h;
15585
- }
15586
- function St(a, l) {
15587
- return $i(a) || l.unshift("declare "), L(l);
15621
+ return Lt(h) !== ";" && !(i.declaration && (i.declaration.type === "FunctionDeclaration" || i.declaration.type === "ClassDeclaration" || i.declaration.type === "TSModuleDeclaration" || i.declaration.type === "TSInterfaceDeclaration" || i.declaration.type === "TSEnumDeclaration")) && (h = L([h, ";"])), h;
15588
15622
  }
15589
15623
  function wt(a, l) {
15624
+ return Vi(a) || l.unshift("declare "), L(l);
15625
+ }
15626
+ function Et(a, l) {
15590
15627
  return a.call(function(r) {
15591
15628
  const i = r.getValue();
15592
15629
  return i ? i === "plus" ? j("+") : i === "minus" ? j("-") : l(r) : j("");
15593
15630
  }, "variance");
15594
15631
  }
15595
- function Ye(a, l) {
15632
+ function Ze(a, l) {
15596
15633
  return a.length > 1 ? L([" ", a]) : L([`
15597
15634
  `, ts(a).indent(l.tabWidth)]);
15598
15635
  }
15599
- function kt(a) {
15636
+ function Lt(a) {
15600
15637
  const l = a.lastPos();
15601
15638
  do {
15602
15639
  const r = a.charAt(l);
@@ -15605,12 +15642,12 @@ function kt(a) {
15605
15642
  } while (a.prevPos(l));
15606
15643
  }
15607
15644
  function Si(a) {
15608
- return kt(a) === "}";
15645
+ return Lt(a) === "}";
15609
15646
  }
15610
15647
  function Qt(a) {
15611
15648
  return a.replace(/['"]/g, (l) => l === '"' ? "'" : '"');
15612
15649
  }
15613
- function ut(a) {
15650
+ function ht(a) {
15614
15651
  const l = Ue(a, "value"), r = Ue(a, "extra");
15615
15652
  if (r && typeof r.raw == "string" && l == r.rawValue)
15616
15653
  return r.raw;
@@ -15625,7 +15662,7 @@ function Yt(a) {
15625
15662
  return "\\u" + l.charCodeAt(0).toString(16);
15626
15663
  });
15627
15664
  }
15628
- function Et(a, l) {
15665
+ function At(a, l) {
15629
15666
  switch (Ws.assert(a), l.quote) {
15630
15667
  case "auto": {
15631
15668
  const r = Yt(a), i = Qt(Yt(Qt(a)));
@@ -15639,28 +15676,28 @@ function Et(a, l) {
15639
15676
  }
15640
15677
  }
15641
15678
  function ts(a) {
15642
- const l = kt(a);
15679
+ const l = Lt(a);
15643
15680
  return !l || `
15644
15681
  };`.indexOf(l) < 0 ? L([a, ";"]) : a;
15645
15682
  }
15646
- function il(a, l) {
15647
- return new el(l).print(a);
15683
+ function nl(a, l) {
15684
+ return new tl(l).print(a);
15648
15685
  }
15649
15686
  let Zt;
15650
- function nl() {
15687
+ function al() {
15651
15688
  if (Zt)
15652
15689
  return Zt;
15653
- const a = al();
15690
+ const a = ol();
15654
15691
  return Zt = {
15655
15692
  parse(l, r) {
15656
- return Ha.parse(l, {
15693
+ return Ka.parse(l, {
15657
15694
  ...a,
15658
15695
  ...r
15659
15696
  });
15660
15697
  }
15661
15698
  }, Zt;
15662
15699
  }
15663
- function al() {
15700
+ function ol() {
15664
15701
  return {
15665
15702
  sourceType: "module",
15666
15703
  strictMode: !1,
@@ -15711,8 +15748,8 @@ function al() {
15711
15748
  ]
15712
15749
  };
15713
15750
  }
15714
- var ol = Object.defineProperty, ll = (a, l, r) => l in a ? ol(a, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[l] = r, wi = (a, l, r) => (ll(a, typeof l != "symbol" ? l + "" : l, r), r);
15715
- class Ae extends Error {
15751
+ var ll = Object.defineProperty, cl = (a, l, r) => l in a ? ll(a, l, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[l] = r, wi = (a, l, r) => (cl(a, typeof l != "symbol" ? l + "" : l, r), r);
15752
+ class ve extends Error {
15716
15753
  constructor(l, r) {
15717
15754
  if (super(""), wi(this, "rawMessage"), wi(this, "options"), this.name = "MagicastError", this.rawMessage = l, this.options = r, r?.ast && r?.code && r.ast.loc) {
15718
15755
  const { line: i, column: o } = r.ast.loc.start, u = r.code.split(`
@@ -15727,7 +15764,7 @@ ${g.join(`
15727
15764
  this.message = l;
15728
15765
  }
15729
15766
  }
15730
- const cl = /* @__PURE__ */ new Set([
15767
+ const ul = /* @__PURE__ */ new Set([
15731
15768
  "Literal",
15732
15769
  "StringLiteral",
15733
15770
  "NumericLiteral",
@@ -15735,7 +15772,7 @@ const cl = /* @__PURE__ */ new Set([
15735
15772
  "NullLiteral",
15736
15773
  "RegExpLiteral",
15737
15774
  "BigIntLiteral"
15738
- ]), nn = /* @__PURE__ */ new Set([
15775
+ ]), an = /* @__PURE__ */ new Set([
15739
15776
  "string",
15740
15777
  "number",
15741
15778
  "boolean",
@@ -15743,19 +15780,19 @@ const cl = /* @__PURE__ */ new Set([
15743
15780
  "symbol",
15744
15781
  "undefined"
15745
15782
  ]), ge = Bt;
15746
- function ul(a) {
15783
+ function hl(a) {
15747
15784
  return /^[$A-Z_a-z][\w$]*$/.test(a);
15748
15785
  }
15749
15786
  const Js = "__magicast_proxy";
15750
- function Ie(a, l = /* @__PURE__ */ new Set()) {
15787
+ function Ne(a, l = /* @__PURE__ */ new Set()) {
15751
15788
  if (a === void 0)
15752
15789
  return ge.identifier("undefined");
15753
15790
  if (a === null)
15754
15791
  return ge.literal(null);
15755
- if (nn.has(typeof a))
15792
+ if (an.has(typeof a))
15756
15793
  return ge.literal(a);
15757
15794
  if (l.has(a))
15758
- throw new Ae("Can not serialize circular reference");
15795
+ throw new ve("Can not serialize circular reference");
15759
15796
  if (l.add(a), a[Js])
15760
15797
  return a.$ast;
15761
15798
  if (a instanceof RegExp) {
@@ -15763,36 +15800,36 @@ function Ie(a, l = /* @__PURE__ */ new Set()) {
15763
15800
  return delete r.extra.raw, r;
15764
15801
  }
15765
15802
  return a instanceof Set ? ge.newExpression(ge.identifier("Set"), [
15766
- ge.arrayExpression([...a].map((r) => Ie(r, l)))
15803
+ ge.arrayExpression([...a].map((r) => Ne(r, l)))
15767
15804
  ]) : a instanceof Date ? ge.newExpression(ge.identifier("Date"), [
15768
15805
  ge.literal(a.toISOString())
15769
15806
  ]) : a instanceof Map ? ge.newExpression(ge.identifier("Map"), [
15770
15807
  ge.arrayExpression(
15771
15808
  [...a].map(([r, i]) => ge.arrayExpression([
15772
- Ie(r, l),
15773
- Ie(i, l)
15809
+ Ne(r, l),
15810
+ Ne(i, l)
15774
15811
  ]))
15775
15812
  )
15776
15813
  ]) : Array.isArray(a) ? ge.arrayExpression(
15777
- a.map((r) => Ie(r, l))
15814
+ a.map((r) => Ne(r, l))
15778
15815
  ) : typeof a == "object" ? ge.objectExpression(
15779
15816
  Object.entries(a).map(([r, i]) => ge.property(
15780
15817
  "init",
15781
15818
  /^[$A-Z_a-z][\w$]*$/g.test(r) ? ge.identifier(r) : ge.literal(r),
15782
- Ie(i, l)
15819
+ Ne(i, l)
15783
15820
  ))
15784
15821
  ) : ge.literal(a);
15785
15822
  }
15786
- function hl(a, l = {}) {
15823
+ function pl(a, l = {}) {
15787
15824
  const r = l;
15788
15825
  return r[Js] = !0, r.$ast = a, r.$type || (r.$type = "object"), r;
15789
15826
  }
15790
- const pl = {
15827
+ const fl = {
15791
15828
  enumerable: !0,
15792
15829
  configurable: !0
15793
15830
  };
15794
- function Ne(a, l, r) {
15795
- const i = hl(a, l);
15831
+ function ke(a, l, r) {
15832
+ const i = pl(a, l);
15796
15833
  return new Proxy(
15797
15834
  {},
15798
15835
  {
@@ -15802,7 +15839,7 @@ function Ne(a, l, r) {
15802
15839
  );
15803
15840
  },
15804
15841
  getOwnPropertyDescriptor() {
15805
- return pl;
15842
+ return fl;
15806
15843
  },
15807
15844
  has(o, u) {
15808
15845
  return u in i;
@@ -15821,10 +15858,10 @@ function Ne(a, l, r) {
15821
15858
  );
15822
15859
  }
15823
15860
  const Ee = Bt, ks = /* @__PURE__ */ new WeakMap();
15824
- function fl(a, l, r) {
15861
+ function dl(a, l, r) {
15825
15862
  if (ks.has(l))
15826
15863
  return ks.get(l);
15827
- const i = Ne(
15864
+ const i = ke(
15828
15865
  l,
15829
15866
  {
15830
15867
  get $declaration() {
@@ -15835,7 +15872,7 @@ function fl(a, l, r) {
15835
15872
  },
15836
15873
  set imported(o) {
15837
15874
  if (l.type !== "ImportSpecifier")
15838
- throw new Ae(
15875
+ throw new ve(
15839
15876
  "Changing import name is not yet implemented"
15840
15877
  );
15841
15878
  l.imported.type === "Identifier" ? l.imported.name = o : l.imported.value = o;
@@ -15879,13 +15916,13 @@ function fl(a, l, r) {
15879
15916
  );
15880
15917
  return ks.set(l, i), i;
15881
15918
  }
15882
- function dl(a, l) {
15919
+ function ml(a, l) {
15883
15920
  const r = () => {
15884
15921
  const h = [];
15885
15922
  for (const d of a.body)
15886
15923
  if (d.type === "ImportDeclaration")
15887
15924
  for (const g of d.specifiers)
15888
- h.push(fl(d, g, a));
15925
+ h.push(dl(d, g, a));
15889
15926
  return h;
15890
15927
  }, i = (h, d, g) => {
15891
15928
  const x = r(), S = x.find((P) => P.local === h), A = d.local || h;
@@ -15919,7 +15956,7 @@ function dl(a, l) {
15919
15956
  const g = d.$declaration, x = d.$ast;
15920
15957
  return g.specifiers = g.specifiers.filter((S) => S !== x), g.specifiers.length === 0 && (a.body = a.body.filter((S) => S !== g)), !0;
15921
15958
  };
15922
- return Ne(
15959
+ return ke(
15923
15960
  a,
15924
15961
  {
15925
15962
  $type: "imports",
@@ -15962,40 +15999,40 @@ function os(a, l, r) {
15962
15999
  const i = (u) => l[u], o = (u, h) => {
15963
16000
  l[u] = h;
15964
16001
  };
15965
- return Ne(
16002
+ return ke(
15966
16003
  a,
15967
16004
  {
15968
16005
  $type: "array",
15969
16006
  push(u) {
15970
- l.push(Ie(u));
16007
+ l.push(Ne(u));
15971
16008
  },
15972
16009
  pop() {
15973
- return Pe(l.pop(), r);
16010
+ return Se(l.pop(), r);
15974
16011
  },
15975
16012
  unshift(u) {
15976
- l.unshift(Ie(u));
16013
+ l.unshift(Ne(u));
15977
16014
  },
15978
16015
  shift() {
15979
- return Pe(l.shift(), r);
16016
+ return Se(l.shift(), r);
15980
16017
  },
15981
16018
  splice(u, h, ...d) {
15982
16019
  return l.splice(
15983
16020
  u,
15984
16021
  h,
15985
- ...d.map((x) => Ie(x))
15986
- ).map((x) => Pe(x, r));
16022
+ ...d.map((x) => Ne(x))
16023
+ ).map((x) => Se(x, r));
15987
16024
  },
15988
16025
  find(u) {
15989
- return l.map((h) => Pe(h, r)).find(u);
16026
+ return l.map((h) => Se(h, r)).find(u);
15990
16027
  },
15991
16028
  findIndex(u) {
15992
- return l.map((h) => Pe(h, r)).findIndex(u);
16029
+ return l.map((h) => Se(h, r)).findIndex(u);
15993
16030
  },
15994
16031
  includes(u) {
15995
- return l.map((h) => Pe(h, r)).includes(u);
16032
+ return l.map((h) => Se(h, r)).includes(u);
15996
16033
  },
15997
16034
  toJSON() {
15998
- return l.map((u) => Pe(u, r));
16035
+ return l.map((u) => Se(u, r));
15999
16036
  }
16000
16037
  },
16001
16038
  {
@@ -16005,7 +16042,7 @@ function os(a, l, r) {
16005
16042
  if (h === Symbol.iterator)
16006
16043
  return function* () {
16007
16044
  for (const x of l)
16008
- yield Pe(x, r);
16045
+ yield Se(x, r);
16009
16046
  };
16010
16047
  if (typeof h == "symbol")
16011
16048
  return;
@@ -16014,19 +16051,19 @@ function os(a, l, r) {
16014
16051
  return;
16015
16052
  const g = i(d);
16016
16053
  if (g)
16017
- return Pe(g, r);
16054
+ return Se(g, r);
16018
16055
  },
16019
16056
  set(u, h, d) {
16020
16057
  if (typeof h == "symbol")
16021
16058
  return !1;
16022
16059
  const g = +h;
16023
- return Number.isNaN(g) ? !1 : (o(g, Ie(d)), !0);
16060
+ return Number.isNaN(g) ? !1 : (o(g, Ne(d)), !0);
16024
16061
  },
16025
16062
  deleteProperty(u, h) {
16026
16063
  if (typeof h == "symbol")
16027
16064
  return !1;
16028
16065
  const d = +h;
16029
- return Number.isNaN(d) ? !1 : (l[d] = Ie(void 0), !0);
16066
+ return Number.isNaN(d) ? !1 : (l[d] = Ne(void 0), !0);
16030
16067
  },
16031
16068
  ownKeys() {
16032
16069
  return ["length", ...l.map((u, h) => h.toString())];
@@ -16034,13 +16071,13 @@ function os(a, l, r) {
16034
16071
  }
16035
16072
  );
16036
16073
  }
16037
- function ml(a, l) {
16074
+ function yl(a, l) {
16038
16075
  if ("elements" in a)
16039
16076
  return os(a, a.elements, l);
16040
16077
  }
16041
- function yl(a, l) {
16078
+ function gl(a, l) {
16042
16079
  if (a.type !== "CallExpression")
16043
- throw new Ae("Not a function call");
16080
+ throw new ve("Not a function call");
16044
16081
  function r(o) {
16045
16082
  if (o.type === "Identifier")
16046
16083
  return o.name;
@@ -16048,10 +16085,10 @@ function yl(a, l) {
16048
16085
  return `${r(o.object)}.${r(
16049
16086
  o.property
16050
16087
  )}`;
16051
- throw new Ae("Not implemented");
16088
+ throw new ve("Not implemented");
16052
16089
  }
16053
16090
  const i = os(a, a.arguments, l);
16054
- return Ne(
16091
+ return ke(
16055
16092
  a,
16056
16093
  {
16057
16094
  $type: "function-call",
@@ -16061,22 +16098,22 @@ function yl(a, l) {
16061
16098
  {}
16062
16099
  );
16063
16100
  }
16064
- function gl(a, l) {
16101
+ function xl(a, l) {
16065
16102
  if (a.type !== "ArrowFunctionExpression")
16066
- throw new Ae("Not an arrow function expression");
16103
+ throw new ve("Not an arrow function expression");
16067
16104
  const r = os(a, a.params, l);
16068
- return Ne(
16105
+ return ke(
16069
16106
  a,
16070
16107
  {
16071
16108
  $type: "arrow-function-expression",
16072
16109
  $params: r,
16073
- $body: Pe(a.body, l)
16110
+ $body: Se(a.body, l)
16074
16111
  },
16075
16112
  {}
16076
16113
  );
16077
16114
  }
16078
- const xl = Bt;
16079
- function bl(a, l) {
16115
+ const bl = Bt;
16116
+ function Tl(a, l) {
16080
16117
  if (!("properties" in a))
16081
16118
  return;
16082
16119
  const r = (u) => {
@@ -16092,7 +16129,7 @@ function bl(a, l) {
16092
16129
  if (u.type === "ObjectProperty" && (u.key.type === "StringLiteral" || u.key.type === "NumericLiteral" || u.key.type === "BooleanLiteral"))
16093
16130
  return u.key.value.toString();
16094
16131
  if (h)
16095
- throw new Ae(`Casting "${u.type}" is not supported`, {
16132
+ throw new ve(`Casting "${u.type}" is not supported`, {
16096
16133
  ast: u,
16097
16134
  code: l?.$code
16098
16135
  });
@@ -16100,7 +16137,7 @@ function bl(a, l) {
16100
16137
  const d = a.properties.find(
16101
16138
  (g) => i(g) === u
16102
16139
  );
16103
- d ? d.value = h : ul(u) ? a.properties.push({
16140
+ d ? d.value = h : hl(u) ? a.properties.push({
16104
16141
  type: "Property",
16105
16142
  key: {
16106
16143
  type: "Identifier",
@@ -16109,26 +16146,26 @@ function bl(a, l) {
16109
16146
  value: h
16110
16147
  }) : a.properties.push({
16111
16148
  type: "ObjectProperty",
16112
- key: xl.stringLiteral(u),
16149
+ key: bl.stringLiteral(u),
16113
16150
  value: h
16114
16151
  });
16115
16152
  };
16116
- return Ne(
16153
+ return ke(
16117
16154
  a,
16118
16155
  {
16119
16156
  $type: "object",
16120
16157
  toJSON() {
16121
- return a.properties.reduce((u, h) => ("key" in h && "name" in h.key && (u[h.key.name] = Pe(h.value, l)), u), {});
16158
+ return a.properties.reduce((u, h) => ("key" in h && "name" in h.key && (u[h.key.name] = Se(h.value, l)), u), {});
16122
16159
  }
16123
16160
  },
16124
16161
  {
16125
16162
  get(u, h) {
16126
16163
  const d = r(h);
16127
16164
  if (d)
16128
- return Pe(d, l);
16165
+ return Se(d, l);
16129
16166
  },
16130
16167
  set(u, h, d) {
16131
- return typeof h != "string" && (h = String(h)), o(h, Ie(d)), !0;
16168
+ return typeof h != "string" && (h = String(h)), o(h, Ne(d)), !0;
16132
16169
  },
16133
16170
  deleteProperty(u, h) {
16134
16171
  typeof h != "string" && (h = String(h));
@@ -16143,9 +16180,9 @@ function bl(a, l) {
16143
16180
  }
16144
16181
  );
16145
16182
  }
16146
- function Tl(a, l) {
16183
+ function Pl(a, l) {
16147
16184
  if (a.type !== "NewExpression")
16148
- throw new Ae("Not a new expression");
16185
+ throw new ve("Not a new expression");
16149
16186
  function r(o) {
16150
16187
  if (o.type === "Identifier")
16151
16188
  return o.name;
@@ -16153,10 +16190,10 @@ function Tl(a, l) {
16153
16190
  return `${r(o.object)}.${r(
16154
16191
  o.property
16155
16192
  )}`;
16156
- throw new Ae("Not implemented");
16193
+ throw new ve("Not implemented");
16157
16194
  }
16158
16195
  const i = os(a, a.arguments, l);
16159
- return Ne(
16196
+ return ke(
16160
16197
  a,
16161
16198
  {
16162
16199
  $type: "new-expression",
@@ -16166,10 +16203,10 @@ function Tl(a, l) {
16166
16203
  {}
16167
16204
  );
16168
16205
  }
16169
- function Pl(a) {
16206
+ function Sl(a) {
16170
16207
  if (a.type !== "Identifier")
16171
- throw new Ae("Not an identifier");
16172
- return Ne(
16208
+ throw new ve("Not an identifier");
16209
+ return ke(
16173
16210
  a,
16174
16211
  {
16175
16212
  $type: "identifier",
@@ -16178,10 +16215,10 @@ function Pl(a) {
16178
16215
  {}
16179
16216
  );
16180
16217
  }
16181
- function Sl(a) {
16218
+ function wl(a) {
16182
16219
  if (a.type !== "LogicalExpression")
16183
- throw new Ae("Not a logical expression");
16184
- return Ne(
16220
+ throw new ve("Not a logical expression");
16221
+ return ke(
16185
16222
  a,
16186
16223
  {
16187
16224
  $type: "logicalExpression"
@@ -16189,10 +16226,10 @@ function Sl(a) {
16189
16226
  {}
16190
16227
  );
16191
16228
  }
16192
- function wl(a) {
16229
+ function El(a) {
16193
16230
  if (a.type !== "MemberExpression")
16194
- throw new Ae("Not a member expression");
16195
- return Ne(
16231
+ throw new ve("Not a member expression");
16232
+ return ke(
16196
16233
  a,
16197
16234
  {
16198
16235
  $type: "memberExpression"
@@ -16201,62 +16238,62 @@ function wl(a) {
16201
16238
  );
16202
16239
  }
16203
16240
  const Ls = /* @__PURE__ */ new WeakMap();
16204
- function Pe(a, l) {
16205
- if (nn.has(typeof a))
16241
+ function Se(a, l) {
16242
+ if (an.has(typeof a))
16206
16243
  return a;
16207
- if (cl.has(a.type))
16244
+ if (ul.has(a.type))
16208
16245
  return a.value;
16209
16246
  if (Ls.has(a))
16210
16247
  return Ls.get(a);
16211
16248
  let r;
16212
16249
  switch (a.type) {
16213
16250
  case "ObjectExpression": {
16214
- r = bl(a, l);
16251
+ r = Tl(a, l);
16215
16252
  break;
16216
16253
  }
16217
16254
  case "ArrayExpression": {
16218
- r = ml(a, l);
16255
+ r = yl(a, l);
16219
16256
  break;
16220
16257
  }
16221
16258
  case "CallExpression": {
16222
- r = yl(a, l);
16259
+ r = gl(a, l);
16223
16260
  break;
16224
16261
  }
16225
16262
  case "ArrowFunctionExpression": {
16226
- r = gl(a, l);
16263
+ r = xl(a, l);
16227
16264
  break;
16228
16265
  }
16229
16266
  case "NewExpression": {
16230
- r = Tl(a, l);
16267
+ r = Pl(a, l);
16231
16268
  break;
16232
16269
  }
16233
16270
  case "Identifier": {
16234
- r = Pl(a);
16271
+ r = Sl(a);
16235
16272
  break;
16236
16273
  }
16237
16274
  case "LogicalExpression": {
16238
- r = Sl(a);
16275
+ r = wl(a);
16239
16276
  break;
16240
16277
  }
16241
16278
  case "MemberExpression": {
16242
- r = wl(a);
16279
+ r = El(a);
16243
16280
  break;
16244
16281
  }
16245
16282
  case "TSAsExpression":
16246
16283
  case "TSSatisfiesExpression": {
16247
- r = Pe(a.expression, l);
16284
+ r = Se(a.expression, l);
16248
16285
  break;
16249
16286
  }
16250
16287
  default:
16251
- throw new Ae(`Casting "${a.type}" is not supported`, {
16288
+ throw new ve(`Casting "${a.type}" is not supported`, {
16252
16289
  ast: a,
16253
16290
  code: l?.$code
16254
16291
  });
16255
16292
  }
16256
16293
  return Ls.set(a, r), r;
16257
16294
  }
16258
- const At = Bt;
16259
- function El(a, l) {
16295
+ const vt = Bt;
16296
+ function Al(a, l) {
16260
16297
  const r = (o) => {
16261
16298
  const u = o === "default" ? "ExportDefaultDeclaration" : "ExportNamedDeclaration";
16262
16299
  for (const h of a.body)
@@ -16270,7 +16307,7 @@ function El(a, l) {
16270
16307
  }
16271
16308
  }
16272
16309
  }, i = (o, u) => {
16273
- const h = o === "default" ? "ExportDefaultDeclaration" : "ExportNamedDeclaration", d = Ie(u);
16310
+ const h = o === "default" ? "ExportDefaultDeclaration" : "ExportNamedDeclaration", d = Ne(u);
16274
16311
  for (const g of a.body)
16275
16312
  if (g.type === h) {
16276
16313
  if (o === "default") {
@@ -16286,14 +16323,14 @@ function El(a, l) {
16286
16323
  }
16287
16324
  }
16288
16325
  a.body.push(
16289
- o === "default" ? At.exportDefaultDeclaration(d) : At.exportNamedDeclaration(
16290
- At.variableDeclaration("const", [
16291
- At.variableDeclarator(At.identifier(o), d)
16326
+ o === "default" ? vt.exportDefaultDeclaration(d) : vt.exportNamedDeclaration(
16327
+ vt.variableDeclaration("const", [
16328
+ vt.variableDeclarator(vt.identifier(o), d)
16292
16329
  ])
16293
16330
  )
16294
16331
  );
16295
16332
  };
16296
- return Ne(
16333
+ return ke(
16297
16334
  a,
16298
16335
  {
16299
16336
  $type: "exports"
@@ -16302,7 +16339,7 @@ function El(a, l) {
16302
16339
  get(o, u) {
16303
16340
  const h = r(u);
16304
16341
  if (h)
16305
- return Pe(h, l);
16342
+ return Se(h, l);
16306
16343
  },
16307
16344
  set(o, u, h) {
16308
16345
  return i(u, h), !0;
@@ -16331,21 +16368,21 @@ function El(a, l) {
16331
16368
  }
16332
16369
  );
16333
16370
  }
16334
- function Al(a, l) {
16371
+ function vl(a, l) {
16335
16372
  const r = a.program;
16336
16373
  if (r.type !== "Program")
16337
- throw new Ae(`Cannot proxify ${a.type} as module`);
16374
+ throw new ve(`Cannot proxify ${a.type} as module`);
16338
16375
  const i = {
16339
16376
  $code: l,
16340
16377
  $type: "module"
16341
- }, o = Ne(r, i, {
16378
+ }, o = ke(r, i, {
16342
16379
  ownKeys() {
16343
16380
  return ["imports", "exports", "generate"];
16344
16381
  }
16345
16382
  });
16346
- return i.exports = El(r, o), i.imports = dl(r), i.generate = (u) => an(o, u), o;
16383
+ return i.exports = Al(r, o), i.imports = ml(r), i.generate = (u) => on(o, u), o;
16347
16384
  }
16348
- function vl(a, l = {}) {
16385
+ function Cl(a, l = {}) {
16349
16386
  const r = {
16350
16387
  wrapColumn: l.wrapColumn === void 0,
16351
16388
  indent: l.tabWidth === void 0 || l.useTabs === void 0,
@@ -16394,42 +16431,42 @@ function vl(a, l = {}) {
16394
16431
  ...l
16395
16432
  };
16396
16433
  }
16397
- function Cl(a, l) {
16398
- const r = $o(a, {
16399
- parser: l?.parser || nl(),
16434
+ function Il(a, l) {
16435
+ const r = Vo(a, {
16436
+ parser: l?.parser || al(),
16400
16437
  ...l
16401
16438
  });
16402
- return Al(r, a);
16439
+ return vl(r, a);
16403
16440
  }
16404
- function an(a, l = {}) {
16405
- const r = a.$ast || a, i = l.format === !1 || !("$code" in a) ? {} : vl(a.$code, l.format), { code: o, map: u } = il(r, {
16441
+ function on(a, l = {}) {
16442
+ const r = a.$ast || a, i = l.format === !1 || !("$code" in a) ? {} : Cl(a.$code, l.format), { code: o, map: u } = nl(r, {
16406
16443
  ...l,
16407
16444
  ...i
16408
16445
  });
16409
16446
  return { code: o, map: u };
16410
16447
  }
16411
- async function Il(a, l = {}) {
16412
- const r = await La.readFile(a, "utf8");
16413
- return l.sourceFileName = l.sourceFileName ?? a, Cl(r, l);
16448
+ async function Nl(a, l = {}) {
16449
+ const r = await Oa.readFile(a, "utf8");
16450
+ return l.sourceFileName = l.sourceFileName ?? a, Il(r, l);
16414
16451
  }
16415
- function on(a, l) {
16452
+ function ln(a, l) {
16416
16453
  if (typeof l == "object")
16417
16454
  for (const r in l) {
16418
16455
  const i = typeof a[r] == "object" && typeof l[r] == "object", o = Array.isArray(l[r]);
16419
- i && !o ? on(a[r], l[r]) : o ? a[r] = a[r] ? [.../* @__PURE__ */ new Set([...a[r], ...l[r]])] : l[r] : a[r] = l[r];
16456
+ i && !o ? ln(a[r], l[r]) : o ? a[r] = a[r] ? [.../* @__PURE__ */ new Set([...a[r], ...l[r]])] : l[r] : a[r] = l[r];
16420
16457
  }
16421
16458
  }
16422
- async function zl(a, l, r = !1, i = "") {
16459
+ async function Hl(a, l, r = !1, i = "") {
16423
16460
  if (r || await $e(
16424
16461
  i || `This will update '${a}' file. Continue?`
16425
16462
  )) {
16426
- const u = et(a);
16463
+ const u = Ve(a);
16427
16464
  if (!u.valid)
16428
16465
  throw new Error(u.error);
16429
- const h = De(process.cwd(), a);
16430
- if (!Se(h))
16466
+ const h = Ae(process.cwd(), a);
16467
+ if (!be(h))
16431
16468
  throw new Error(`No '${a}' found in project root — cannot update its contents.`);
16432
- const d = await Il(h);
16469
+ const d = await Nl(h);
16433
16470
  let g = d.exports?.default;
16434
16471
  if (!g) {
16435
16472
  const v = Object.keys(d.exports);
@@ -16443,27 +16480,27 @@ async function zl(a, l, r = !1, i = "") {
16443
16480
  if (!x || typeof x != "object")
16444
16481
  throw new Error(`Could not access config object in ${a}`);
16445
16482
  const S = JSON.stringify(x);
16446
- on(x, l);
16483
+ ln(x, l);
16447
16484
  const A = JSON.stringify(x);
16448
16485
  if (S !== A) {
16449
- const { code: v } = an(d);
16486
+ const { code: v } = on(d);
16450
16487
  Ot(h, v, "utf8"), console.log(`'${a}' file updated.`);
16451
16488
  } else
16452
16489
  console.log(`'${a}' file already up to date.`);
16453
16490
  } else
16454
16491
  console.log(`Updating '${a}' skipped.`);
16455
16492
  }
16456
- async function Wl(a, l, r, i = !1, o = "") {
16493
+ async function Kl(a, l, r, i = !1, o = "") {
16457
16494
  if (i || await $e(
16458
16495
  o || `This will update '${a}' file. Continue?`
16459
16496
  )) {
16460
- const h = et(a);
16497
+ const h = Ve(a);
16461
16498
  if (!h.valid)
16462
16499
  throw new Error(h.error);
16463
- const d = De(process.cwd(), a);
16464
- if (!Se(d))
16500
+ const d = Ae(process.cwd(), a);
16501
+ if (!be(d))
16465
16502
  throw new Error(`No '${a}' found in project root — cannot update its contents.`);
16466
- const g = Lt(d, "utf8");
16503
+ const g = tt(d, "utf8");
16467
16504
  let x;
16468
16505
  try {
16469
16506
  x = JSON.parse(g);
@@ -16483,17 +16520,17 @@ ${A}`);
16483
16520
  } else
16484
16521
  console.log(`Updating '${a}' skipped.`);
16485
16522
  }
16486
- async function Jl(a, l, r = !1, i = "") {
16523
+ async function Xl(a, l, r = !1, i = "") {
16487
16524
  if (r || await $e(
16488
16525
  i || `This will update '${a}' file. Continue?`
16489
16526
  )) {
16490
- const u = et(a);
16527
+ const u = Ve(a);
16491
16528
  if (!u.valid)
16492
16529
  throw new Error(u.error);
16493
- const h = De(process.cwd(), a);
16494
- if (!Se(h))
16530
+ const h = Ae(process.cwd(), a);
16531
+ if (!be(h))
16495
16532
  throw new Error(`No '${a}' found in project root — cannot update its contents.`);
16496
- const g = Lt(h, "utf8").split(/\r?\n/);
16533
+ const g = tt(h, "utf8").split(/\r?\n/);
16497
16534
  let x = !1;
16498
16535
  for (const S of l)
16499
16536
  g.includes(S) || (g.push(S), x = !0);
@@ -16503,22 +16540,22 @@ async function Jl(a, l, r = !1, i = "") {
16503
16540
  } else
16504
16541
  console.log(`Updating '${a}' skipped.`);
16505
16542
  }
16506
- function Hl(a, l = 1) {
16543
+ function Gl(a, l = 1) {
16507
16544
  process.stderr.write(a);
16508
16545
  for (let r = 0; r < l; r++)
16509
16546
  process.stderr.write(`
16510
16547
  `);
16511
16548
  }
16512
- function Kl(a, l = 1) {
16549
+ function Ql(a, l = 1) {
16513
16550
  process.stdout.write(a);
16514
16551
  for (let r = 0; r < l; r++)
16515
16552
  process.stdout.write(`
16516
16553
  `);
16517
16554
  }
16518
- function Xl(a, l = De(process.cwd(), ".env")) {
16519
- if (!Se(l))
16555
+ function Yl(a, l = Ae(process.cwd(), ".env")) {
16556
+ if (!be(l))
16520
16557
  return;
16521
- const r = Lt(l, "utf-8");
16558
+ const r = tt(l, "utf-8");
16522
16559
  for (const i of r.split(/\r?\n/)) {
16523
16560
  const o = i.trim();
16524
16561
  if (!o || o.startsWith("#")) continue;
@@ -16530,17 +16567,19 @@ function Xl(a, l = De(process.cwd(), ".env")) {
16530
16567
  }
16531
16568
  }
16532
16569
  export {
16533
- Ml as createFileFromTemplate,
16534
- Fl as createFileFromWebTemplate,
16535
- Bl as deletePath,
16536
- Xl as getEnvValue,
16537
- Ma as parseQualifiedPath,
16570
+ _l as createFileFromTemplate,
16571
+ jl as createFileFromWebTemplate,
16572
+ Rl as deletePath,
16573
+ Yl as getEnvValue,
16574
+ Fl as hasJsonKey,
16575
+ Bl as hasText,
16576
+ Fa as parseQualifiedPath,
16538
16577
  $e as promptUser,
16539
- _l as removeFromJsonFile,
16540
- Fa as resolvePackagePath,
16541
- Hl as showError,
16542
- Kl as showMessage,
16543
- zl as updateConfigFile,
16544
- Wl as updateJsonFile,
16545
- Jl as updateTextFile
16578
+ Ul as removeFromJsonFile,
16579
+ Ba as resolvePackagePath,
16580
+ Gl as showError,
16581
+ Ql as showMessage,
16582
+ Hl as updateConfigFile,
16583
+ Kl as updateJsonFile,
16584
+ Xl as updateTextFile
16546
16585
  };