@vtj/renderer 0.18.13 → 0.18.15

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.
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import { Base as si, BUILT_IN_COMPONENTS as ii, ProjectModel as $e, HistoryModel as as } from "@vtj/core";
2
- import { url as he, isUrl as dt, dedupArray as ri, isFunction as z, isString as ee, logger as ge, storage as rt, cookie as nt, toArray as qt, unRSA as Wt, delay as Ie, createRequest as os, jsonp as us, merge as ni, pathToRegexp as ai, pathToRegexpMatch as oi, formDataToJson as ui, isEqual as at, Queue as ci, cloneDeep as Kt, camelCase as X, upperFirstCamelCase as li, pick as hi, request as mt, loadScript as zt, debounce as pi, Storage as fi, mapToObject as kt } from "@vtj/utils";
3
- import * as xe from "vue";
4
- import { inject as It, defineComponent as cs, h as gt, ref as xt, watchEffect as di, defineAsyncComponent as Jt } from "vue";
5
- import { useRoute as ls } from "vue-router";
1
+ import { Base as ni, BUILT_IN_COMPONENTS as ai, ProjectModel as $e, HistoryModel as us } from "@vtj/core";
2
+ import { url as he, isUrl as mt, dedupArray as oi, isFunction as K, isString as ee, logger as xe, storage as nt, cookie as at, toArray as Wt, unRSA as Kt, delay as Ie, createRequest as cs, jsonp as ls, merge as ui, pathToRegexp as ci, pathToRegexpMatch as li, formDataToJson as hi, isEqual as ot, Queue as pi, cloneDeep as zt, camelCase as X, upperFirstCamelCase as fi, pick as di, request as gt, loadScript as Jt, debounce as mi, Storage as gi, mapToObject as It } from "@vtj/utils";
3
+ import * as ve from "vue";
4
+ import { inject as At, defineComponent as hs, h as xt, ref as vt, watchEffect as xi, defineAsyncComponent as Qt } from "vue";
5
+ import { useRoute as ps } from "vue-router";
6
6
  /**!
7
7
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
8
8
  * @name @vtj/renderer
9
9
  * @author CHC chenhuachun1549@dingtalk.com
10
- * @version 0.18.13
10
+ * @version 0.18.15
11
11
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
12
12
  */
13
- const we = "0.18.13";
13
+ const we = "0.18.15";
14
14
  var P = /* @__PURE__ */ ((t) => (t.Runtime = "Runtime", t.Design = "Design", t.Raw = "Raw", t.VNode = "VNode", t))(P || {});
15
- const Qt = [
15
+ const Yt = [
16
16
  "$el",
17
17
  "$emit",
18
18
  "$nextTick",
@@ -24,7 +24,7 @@ const Qt = [
24
24
  "$props",
25
25
  "$options",
26
26
  "$forceUpdate"
27
- ], wn = [
27
+ ], kn = [
28
28
  "beforeCreate",
29
29
  "created",
30
30
  "beforeMount",
@@ -38,7 +38,7 @@ const Qt = [
38
38
  "renderTriggered",
39
39
  "activated",
40
40
  "deactivated"
41
- ], En = [
41
+ ], In = [
42
42
  "onBeforeMount",
43
43
  "onMounted",
44
44
  "onBeforeUpdate",
@@ -50,7 +50,7 @@ const Qt = [
50
50
  "onRenderTriggered",
51
51
  "onActivated",
52
52
  "onDeactivated"
53
- ], mi = [
53
+ ], vi = [
54
54
  "vIf",
55
55
  "vElseIf",
56
56
  "vElse",
@@ -59,7 +59,7 @@ const Qt = [
59
59
  "vFor",
60
60
  "vBind",
61
61
  "vHtml"
62
- ], gi = {
62
+ ], bi = {
63
63
  String,
64
64
  Number,
65
65
  Boolean,
@@ -67,9 +67,9 @@ const Qt = [
67
67
  Object,
68
68
  Function,
69
69
  Date
70
- }, Ee = "VtjPage", He = "VtjHomepage", hs = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
70
+ }, Ee = "VtjPage", He = "VtjHomepage", fs = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg".split(
71
71
  ","
72
- ), xi = "component,slot".split(","), kn = [
72
+ ), yi = "component,slot".split(","), An = [
73
73
  "h",
74
74
  "t",
75
75
  "t",
@@ -89,7 +89,7 @@ const Qt = [
89
89
  "p",
90
90
  "r",
91
91
  "o"
92
- ].join(""), In = {
92
+ ].join(""), Pn = {
93
93
  auth: [
94
94
  "h",
95
95
  "t",
@@ -150,7 +150,7 @@ const Qt = [
150
150
  privateKey: "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
151
151
  };
152
152
  function Me(t, e) {
153
- return t.map((s) => dt(s) || s.startsWith("/") ? s : `${e}${s}`);
153
+ return t.map((s) => mt(s) || s.startsWith("/") ? s : `${e}${s}`);
154
154
  }
155
155
  function Ke(t) {
156
156
  return /\.css$/.test(t);
@@ -158,53 +158,53 @@ function Ke(t) {
158
158
  function ze(t) {
159
159
  return /\.js$/.test(t);
160
160
  }
161
- function vi(t) {
161
+ function _i(t) {
162
162
  return /\.json$/.test(t);
163
163
  }
164
- function An(t) {
164
+ function Tn(t) {
165
165
  return t.map(
166
166
  (e) => `<script src="${he.append(e, { v: we })}"><\/script>`
167
167
  ).join("");
168
168
  }
169
- function Pn(t = []) {
169
+ function Nn(t = []) {
170
170
  return t.map(
171
171
  (e) => `<link rel="stylesheet" href="${he.append(e, { v: we })}" />`
172
172
  ).join("");
173
173
  }
174
- function bi(t, e = !1) {
174
+ function Si(t, e = !1) {
175
175
  return e && t.endsWith(".prod.js") ? t.replace(".prod.js", ".js") : t;
176
176
  }
177
- function yi(t, e, s = !1) {
178
- const i = t.filter((f) => !!f.enabled), r = [], n = [], a = [], u = [], c = {}, l = {}, h = [], p = {};
177
+ function Ci(t, e, s = !1) {
178
+ const i = t.filter((d) => !!d.enabled), r = [], n = [], a = [], u = [], c = {}, l = {}, h = [], p = {};
179
179
  return i.forEach(
180
- ({ urls: f, assetsUrl: d, library: m, assetsLibrary: g, localeLibrary: x }) => {
181
- f?.forEach((S) => {
182
- ze(S) && r.push(bi(S, s)), Ke(S) && n.push(S);
183
- }), m && (u.push(m), c[m] = Me(f || [], e), x && (l[m] = x)), d && a.push(d), g && h.push(g), m && g && (p[g] = m);
180
+ ({ urls: d, assetsUrl: f, library: m, assetsLibrary: g, localeLibrary: x }) => {
181
+ d?.forEach((b) => {
182
+ ze(b) && r.push(Si(b, s)), Ke(b) && n.push(b);
183
+ }), m && (u.push(m), c[m] = Me(d || [], e), x && (l[m] = x)), f && a.push(f), g && h.push(g), m && g && (p[g] = m);
184
184
  }
185
185
  ), {
186
186
  scripts: Me(r, e),
187
187
  css: Me(n, e),
188
188
  materials: Me(a, e),
189
189
  libraryExports: u,
190
- materialExports: ri(h),
190
+ materialExports: oi(h),
191
191
  materialMapLibrary: p,
192
192
  libraryMap: c,
193
193
  libraryLocaleMap: l
194
194
  };
195
195
  }
196
- function _i(t, e) {
196
+ function wi(t, e) {
197
197
  const { name: s, parent: i, alias: r } = t;
198
198
  return i ? e[i]?.[r || s] : e[r || s];
199
199
  }
200
- function Si(t = []) {
200
+ function Ei(t = []) {
201
201
  const e = t.filter((i) => Ke(i)), s = t.filter((i) => ze(i));
202
202
  return {
203
203
  css: e,
204
204
  js: s
205
205
  };
206
206
  }
207
- function Ci(t, e) {
207
+ function ki(t, e) {
208
208
  const s = (l) => {
209
209
  const h = [];
210
210
  let p = 0;
@@ -214,43 +214,43 @@ function Ci(t, e) {
214
214
  continue;
215
215
  }
216
216
  if (l.substring(p, p + 2) === "/*") {
217
- const S = l.indexOf("*/", p + 2);
218
- if (S !== -1) {
219
- p = S + 2;
217
+ const b = l.indexOf("*/", p + 2);
218
+ if (b !== -1) {
219
+ p = b + 2;
220
220
  continue;
221
221
  }
222
222
  }
223
223
  if (l[p] === "@") {
224
- const S = p;
224
+ const b = p;
225
225
  for (; p < l.length && l[p] !== "{" && l[p] !== ";"; )
226
226
  p++;
227
- const I = l.substring(S, p).trim(), N = I.includes("@keyframes");
227
+ const k = l.substring(b, p).trim(), N = k.includes("@keyframes");
228
228
  if (l[p] === ";")
229
229
  h.push({
230
230
  type: "simple-at-rule",
231
- content: l.substring(S, p + 1)
231
+ content: l.substring(b, p + 1)
232
232
  }), p++;
233
233
  else if (l[p] === "{") {
234
234
  const w = p + 1;
235
235
  let D = 1;
236
236
  for (p++; p < l.length && D > 0; )
237
237
  l[p] === "{" ? D++ : l[p] === "}" && D--, p++;
238
- const ye = l.substring(S, p), _e = l.substring(w, p - 1);
238
+ const fe = l.substring(b, p), _e = l.substring(w, p - 1);
239
239
  h.push({
240
240
  type: N ? "keyframes" : "at-rule",
241
- rule: I,
242
- content: ye,
241
+ rule: k,
242
+ content: fe,
243
243
  inner: _e
244
244
  });
245
245
  }
246
246
  continue;
247
247
  }
248
- const f = p;
248
+ const d = p;
249
249
  for (; p < l.length && l[p] !== "{"; )
250
250
  p++;
251
251
  if (p >= l.length) break;
252
- const d = l.substring(f, p).trim();
253
- if (!d) {
252
+ const f = l.substring(d, p).trim();
253
+ if (!f) {
254
254
  p++;
255
255
  continue;
256
256
  }
@@ -261,7 +261,7 @@ function Ci(t, e) {
261
261
  const x = l.substring(m, p - 1);
262
262
  h.push({
263
263
  type: "rule",
264
- selector: d,
264
+ selector: f,
265
265
  content: x.trim()
266
266
  });
267
267
  }
@@ -269,17 +269,17 @@ function Ci(t, e) {
269
269
  }, i = (l) => {
270
270
  const h = l.trim();
271
271
  return /^(from|to|\d+(\.\d+)?%)$/.test(h);
272
- }, r = (l) => l.replace(/::v-deep\(/g, ":deep(").replace(/::v-deep\s+/g, ":deep(").replace(/\/deep\//g, " ").replace(/>>>/g, " ").replace(/(.*?):deep\(([^)]+)\)/g, (h, p, f) => {
273
- const d = p.trim(), m = f.trim();
274
- return d ? `${d}[${e}] ${m}` : m;
272
+ }, r = (l) => l.replace(/::v-deep\(/g, ":deep(").replace(/::v-deep\s+/g, ":deep(").replace(/\/deep\//g, " ").replace(/>>>/g, " ").replace(/(.*?):deep\(([^)]+)\)/g, (h, p, d) => {
273
+ const f = p.trim(), m = d.trim();
274
+ return f ? `${f}[${e}] ${m}` : m;
275
275
  }), n = (l) => {
276
276
  const h = l.trim();
277
277
  if (!h || h.includes(`[${e}]`) || /^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(h) || i(h))
278
278
  return h;
279
279
  const p = h.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);
280
280
  if (p) {
281
- const [, f, d = ""] = p, m = f.trim();
282
- return m ? `${m}[${e}]${d}` : h;
281
+ const [, d, f = ""] = p, m = d.trim();
282
+ return m ? `${m}[${e}]${f}` : h;
283
283
  }
284
284
  return `${h}[${e}]`;
285
285
  }, a = (l) => r(l).split(",").map((p) => n(p)).filter((p) => p.trim()).join(", "), u = (l) => l.map((h) => {
@@ -290,8 +290,8 @@ function Ci(t, e) {
290
290
  return h.content;
291
291
  case "at-rule":
292
292
  try {
293
- const f = s(h.inner), d = u(f);
294
- return `${h.rule} { ${d} }`;
293
+ const d = s(h.inner), f = u(d);
294
+ return `${h.rule} { ${f} }`;
295
295
  } catch {
296
296
  return h.content;
297
297
  }
@@ -318,22 +318,22 @@ function Ci(t, e) {
318
318
  });
319
319
  }
320
320
  }
321
- const wi = 750;
322
- function Ei(t, e, s) {
321
+ const Ii = 750;
322
+ function Ai(t, e, s) {
323
323
  let i;
324
324
  typeof t < "u" ? i = t.innerWidth || t.document.documentElement.clientWidth : (console.warn("无法获取屏幕宽度,使用默认值375"), i = 375);
325
- const r = s || wi;
325
+ const r = s || Ii;
326
326
  return e * i / r;
327
327
  }
328
- function ki(t, e) {
328
+ function Pi(t, e) {
329
329
  let s = !1, i = !1, r = !1, n = "";
330
330
  for (let a = 0; a < e.length; a++) {
331
331
  const u = e[a];
332
332
  if (u === "'" && !i && !r ? s = !s : u === '"' && !s && !r ? i = !i : e.substr(a, 4).toLowerCase() === "url(" && !s && !i ? r = !0 : u === ")" && r && (r = !1), !s && !i && !r) {
333
333
  const c = e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);
334
334
  if (c) {
335
- const l = c[1], h = parseFloat(l), f = `${Ei(t, h).toFixed(6).replace(/\.?0+$/, "")}px`;
336
- n += f, a += c[0].length - 1;
335
+ const l = c[1], h = parseFloat(l), d = `${Ai(t, h).toFixed(6).replace(/\.?0+$/, "")}px`;
336
+ n += d, a += c[0].length - 1;
337
337
  continue;
338
338
  }
339
339
  }
@@ -341,25 +341,25 @@ function ki(t, e) {
341
341
  }
342
342
  return n;
343
343
  }
344
- function ps(t) {
344
+ function ds(t) {
345
345
  return ee(t) ? t : JSON.stringify(t);
346
346
  }
347
- function At(t, e, s, i = !1) {
348
- const r = t.CSSStyleSheet, n = i ? `data-v-${e}` : e, a = t.__uniConfig ? ki(t, s) : s, u = i ? Ci(a, n) : a, c = !!t.__uniConfig;
347
+ function Pt(t, e, s, i = !1) {
348
+ const r = t.CSSStyleSheet, n = i ? `data-v-${e}` : e, a = t.__uniConfig ? Pi(t, s) : s, u = i ? ki(a, n) : a, c = !!t.__uniConfig;
349
349
  if (r.prototype.replaceSync && !c) {
350
350
  const l = new r();
351
351
  l.id = e, l.replaceSync(u);
352
- const h = t.document, p = h.adoptedStyleSheets, f = Array.from(p).filter(
353
- (d) => d.id !== e
352
+ const h = t.document, p = h.adoptedStyleSheets, d = Array.from(p).filter(
353
+ (f) => f.id !== e
354
354
  );
355
- h.adoptedStyleSheets = [...f, l];
355
+ h.adoptedStyleSheets = [...d, l];
356
356
  } else {
357
357
  const l = t.document;
358
358
  let h = l.getElementById(e);
359
359
  h ? h.innerHTML = u : (h = l.createElement("style"), h.id = e, h.innerHTML = u, l.head.appendChild(h));
360
360
  }
361
361
  }
362
- function Tn(t) {
362
+ function Rn(t) {
363
363
  const e = t.adoptedStyleSheets || [];
364
364
  let s = "";
365
365
  if (e.forEach((i) => {
@@ -375,11 +375,11 @@ function Tn(t) {
375
375
  i.textContent = s, t.head.appendChild(i);
376
376
  }
377
377
  }
378
- async function Ii(t, e) {
378
+ async function Ti(t, e) {
379
379
  const s = await globalThis.fetch(e).then((i) => i.text()).catch(() => "");
380
- s && At(globalThis, t, s);
380
+ s && Pt(globalThis, t, s);
381
381
  }
382
- function fs(t, e = globalThis) {
382
+ function ms(t, e = globalThis) {
383
383
  const s = e.document, i = e.document.head;
384
384
  for (const r of t)
385
385
  if (!s.getElementById(r)) {
@@ -387,7 +387,7 @@ function fs(t, e = globalThis) {
387
387
  a.rel = "stylesheet", a.id = r, a.href = r, i.appendChild(a);
388
388
  }
389
389
  }
390
- async function ds(t, e, s = globalThis) {
390
+ async function gs(t, e, s = globalThis) {
391
391
  const i = s.document, r = s.document.head;
392
392
  let n = s[e];
393
393
  return n ? n.default || n : new Promise((a, u) => {
@@ -401,14 +401,14 @@ async function ds(t, e, s = globalThis) {
401
401
  }
402
402
  });
403
403
  }
404
- function Ai(t) {
405
- return z(t) && Object.getOwnPropertyNames(t.prototype || {}).length === 0 || z(t?.install);
404
+ function Ni(t) {
405
+ return K(t) && Object.getOwnPropertyNames(t.prototype || {}).length === 0 || K(t?.install);
406
406
  }
407
- function Pi(t) {
408
- return xi.includes(t);
407
+ function Ri(t) {
408
+ return yi.includes(t);
409
409
  }
410
- function Ti(t) {
411
- return hs.includes(t);
410
+ function Vi(t) {
411
+ return fs.includes(t);
412
412
  }
413
413
  function Ae(t = globalThis) {
414
414
  const e = globalThis?.Mock;
@@ -417,34 +417,34 @@ function Ae(t = globalThis) {
417
417
  if (s && globalThis)
418
418
  return globalThis.Mock = s, s;
419
419
  }
420
- function Nn(t, e, s) {
420
+ function Vn(t, e, s) {
421
421
  Object.assign(e.meta, s.meta);
422
422
  const i = t?._container;
423
423
  s?.type === "page" && i.classList.add("is-page"), s?.pure && i.classList.add("is-pure");
424
424
  }
425
- function Ni(t) {
425
+ function Oi(t) {
426
426
  return /^\([\s\S]*\)/.test(t.trim());
427
427
  }
428
- function Ri(t) {
428
+ function Fi(t) {
429
429
  return /\w+\([\s\S]*\)$/.test(t.trim());
430
430
  }
431
- function Vi(t) {
431
+ function Li(t) {
432
432
  return t.includes("=");
433
433
  }
434
- var ot = {
434
+ var ut = {
435
435
  3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
436
436
  5: "class enum extends super const export import",
437
437
  6: "enum",
438
438
  strict: "implements interface let package private protected public static yield",
439
439
  strictBind: "eval arguments"
440
- }, ut = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Oi = {
441
- 5: ut,
442
- "5module": ut + " export import",
443
- 6: ut + " const class extends export import super"
444
- }, Fi = /^in(stanceof)?$/, Pt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ms = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", Li = new RegExp("[" + Pt + "]"), ji = new RegExp("[" + Pt + ms + "]");
445
- Pt = ms = null;
446
- var gs = [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, 157, 310, 10, 21, 11, 7, 153, 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, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 107, 20, 28, 22, 13, 52, 76, 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, 85, 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, 159, 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, 230, 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, 35, 56, 264, 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, 190, 0, 80, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8952, 286, 50, 2, 18, 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, 2357, 44, 11, 6, 17, 0, 370, 43, 1301, 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, 42717, 35, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938], Mi = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 19306, 9, 135, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 5319, 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, 262, 6, 10, 9, 419, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
447
- function vt(t, e) {
440
+ }, ct = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", ji = {
441
+ 5: ct,
442
+ "5module": ct + " export import",
443
+ 6: ct + " const class extends export import super"
444
+ }, Mi = /^in(stanceof)?$/, Tt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", xs = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", Di = new RegExp("[" + Tt + "]"), Bi = new RegExp("[" + Tt + xs + "]");
445
+ Tt = xs = null;
446
+ var vs = [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, 157, 310, 10, 21, 11, 7, 153, 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, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 107, 20, 28, 22, 13, 52, 76, 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, 85, 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, 159, 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, 230, 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, 35, 56, 264, 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, 190, 0, 80, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8952, 286, 50, 2, 18, 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, 2357, 44, 11, 6, 17, 0, 370, 43, 1301, 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, 42717, 35, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938], Hi = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 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, 406, 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, 19306, 9, 135, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 5319, 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, 262, 6, 10, 9, 419, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
447
+ function bt(t, e) {
448
448
  for (var s = 65536, i = 0; i < e.length; i += 2) {
449
449
  if (s += e[i], s > t)
450
450
  return !1;
@@ -452,11 +452,11 @@ function vt(t, e) {
452
452
  return !0;
453
453
  }
454
454
  }
455
- function ne(t, e) {
456
- return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Li.test(String.fromCharCode(t)) : e === !1 ? !1 : vt(t, gs);
455
+ function ae(t, e) {
456
+ return t < 65 ? t === 36 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Di.test(String.fromCharCode(t)) : e === !1 ? !1 : bt(t, vs);
457
457
  }
458
- function ve(t, e) {
459
- return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && ji.test(String.fromCharCode(t)) : e === !1 ? !1 : vt(t, gs) || vt(t, Mi);
458
+ function be(t, e) {
459
+ return t < 48 ? t === 36 : t < 58 ? !0 : t < 65 ? !1 : t < 91 ? !0 : t < 97 ? t === 95 : t < 123 ? !0 : t <= 65535 ? t >= 170 && Bi.test(String.fromCharCode(t)) : e === !1 ? !1 : bt(t, vs) || bt(t, Hi);
460
460
  }
461
461
  var E = function(e, s) {
462
462
  s === void 0 && (s = {}), this.label = e, this.keyword = s.keyword, this.beforeExpr = !!s.beforeExpr, this.startsExpr = !!s.startsExpr, this.isLoop = !!s.isLoop, this.isAssign = !!s.isAssign, this.prefix = !!s.prefix, this.postfix = !!s.postfix, this.binop = s.binop || null, this.updateContext = null;
@@ -464,9 +464,9 @@ var E = function(e, s) {
464
464
  function B(t, e) {
465
465
  return new E(t, { beforeExpr: !0, binop: e });
466
466
  }
467
- var H = { beforeExpr: !0 }, M = { startsExpr: !0 }, Tt = {};
467
+ var H = { beforeExpr: !0 }, M = { startsExpr: !0 }, Nt = {};
468
468
  function C(t, e) {
469
- return e === void 0 && (e = {}), e.keyword = t, Tt[t] = new E(t, e);
469
+ return e === void 0 && (e = {}), e.keyword = t, Nt[t] = new E(t, e);
470
470
  }
471
471
  var o = {
472
472
  num: new E("num", M),
@@ -564,12 +564,12 @@ var o = {
564
564
  function Ve(t, e) {
565
565
  return t === 10 || t === 13 || !e && (t === 8232 || t === 8233);
566
566
  }
567
- var xs = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $ = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, vs = Object.prototype, Di = vs.hasOwnProperty, Bi = vs.toString;
567
+ var bs = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $ = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ys = Object.prototype, $i = ys.hasOwnProperty, Ui = ys.toString;
568
568
  function Je(t, e) {
569
- return Di.call(t, e);
569
+ return $i.call(t, e);
570
570
  }
571
- var Yt = Array.isArray || (function(t) {
572
- return Bi.call(t) === "[object Array]";
571
+ var Xt = Array.isArray || (function(t) {
572
+ return Ui.call(t) === "[object Array]";
573
573
  });
574
574
  function le(t) {
575
575
  return new RegExp("^(?:" + t.replace(/ /g, "|") + ")$");
@@ -583,7 +583,7 @@ Te.prototype.offset = function(e) {
583
583
  var Qe = function(e, s, i) {
584
584
  this.start = s, this.end = i, e.sourceFile !== null && (this.source = e.sourceFile);
585
585
  };
586
- function bs(t, e) {
586
+ function _s(t, e) {
587
587
  for (var s = 1, i = 0; ; ) {
588
588
  Pe.lastIndex = i;
589
589
  var r = Pe.exec(t);
@@ -593,7 +593,7 @@ function bs(t, e) {
593
593
  return new Te(s, e - i);
594
594
  }
595
595
  }
596
- var bt = {
596
+ var yt = {
597
597
  // `ecmaVersion` indicates the ECMAScript version to parse. Must be
598
598
  // either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018), or 10
599
599
  // (2019). This influences support for strict mode, the set of
@@ -677,19 +677,19 @@ var bt = {
677
677
  // (non-standard) ParenthesizedExpression nodes
678
678
  preserveParens: !1
679
679
  };
680
- function Hi(t) {
680
+ function Gi(t) {
681
681
  var e = {};
682
- for (var s in bt)
683
- e[s] = t && Je(t, s) ? t[s] : bt[s];
684
- if (e.ecmaVersion >= 2015 && (e.ecmaVersion -= 2009), e.allowReserved == null && (e.allowReserved = e.ecmaVersion < 5), Yt(e.onToken)) {
682
+ for (var s in yt)
683
+ e[s] = t && Je(t, s) ? t[s] : yt[s];
684
+ if (e.ecmaVersion >= 2015 && (e.ecmaVersion -= 2009), e.allowReserved == null && (e.allowReserved = e.ecmaVersion < 5), Xt(e.onToken)) {
685
685
  var i = e.onToken;
686
686
  e.onToken = function(r) {
687
687
  return i.push(r);
688
688
  };
689
689
  }
690
- return Yt(e.onComment) && (e.onComment = $i(e, e.onComment)), e;
690
+ return Xt(e.onComment) && (e.onComment = qi(e, e.onComment)), e;
691
691
  }
692
- function $i(t, e) {
692
+ function qi(t, e) {
693
693
  return function(s, i, r, n, a, u) {
694
694
  var c = {
695
695
  type: s ? "Block" : "Line",
@@ -700,21 +700,21 @@ function $i(t, e) {
700
700
  t.locations && (c.loc = new Qe(this, a, u)), t.ranges && (c.range = [r, n]), e.push(c);
701
701
  };
702
702
  }
703
- var Ne = 1, Oe = 2, Nt = Ne | Oe, ys = 4, _s = 8, Ss = 16, Cs = 32, ws = 64, Es = 128;
704
- function Rt(t, e) {
705
- return Oe | (t ? ys : 0) | (e ? _s : 0);
703
+ var Ne = 1, Oe = 2, Rt = Ne | Oe, Ss = 4, Cs = 8, ws = 16, Es = 32, ks = 64, Is = 128;
704
+ function Vt(t, e) {
705
+ return Oe | (t ? Ss : 0) | (e ? Cs : 0);
706
706
  }
707
- var Xt = 0, Vt = 1, Z = 2, ks = 3, Is = 4, As = 5, A = function(e, s, i) {
708
- this.options = e = Hi(e), this.sourceFile = e.sourceFile, this.keywords = le(Oi[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
707
+ var Zt = 0, Ot = 1, Z = 2, As = 3, Ps = 4, Ts = 5, A = function(e, s, i) {
708
+ this.options = e = Gi(e), this.sourceFile = e.sourceFile, this.keywords = le(ji[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
709
709
  var r = "";
710
710
  if (e.allowReserved !== !0) {
711
- for (var n = e.ecmaVersion; !(r = ot[n]); n--)
711
+ for (var n = e.ecmaVersion; !(r = ut[n]); n--)
712
712
  ;
713
713
  e.sourceType === "module" && (r += " await");
714
714
  }
715
715
  this.reservedWords = le(r);
716
- var a = (r ? r + " " : "") + ot.strict;
717
- this.reservedWordsStrict = le(a), this.reservedWordsStrictBind = le(a + " " + ot.strictBind), this.input = String(s), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
716
+ var a = (r ? r + " " : "") + ut.strict;
717
+ this.reservedWordsStrict = le(a), this.reservedWordsStrictBind = le(a + " " + ut.strictBind), this.input = String(s), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
718
718
  `, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(U).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = o.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = {}, this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Ne), this.regexpState = null;
719
719
  }, pe = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 } };
720
720
  A.prototype.parse = function() {
@@ -725,16 +725,16 @@ pe.inFunction.get = function() {
725
725
  return (this.currentVarScope().flags & Oe) > 0;
726
726
  };
727
727
  pe.inGenerator.get = function() {
728
- return (this.currentVarScope().flags & _s) > 0;
728
+ return (this.currentVarScope().flags & Cs) > 0;
729
729
  };
730
730
  pe.inAsync.get = function() {
731
- return (this.currentVarScope().flags & ys) > 0;
731
+ return (this.currentVarScope().flags & Ss) > 0;
732
732
  };
733
733
  pe.allowSuper.get = function() {
734
- return (this.currentThisScope().flags & ws) > 0;
734
+ return (this.currentThisScope().flags & ks) > 0;
735
735
  };
736
736
  pe.allowDirectSuper.get = function() {
737
- return (this.currentThisScope().flags & Es) > 0;
737
+ return (this.currentThisScope().flags & Is) > 0;
738
738
  };
739
739
  pe.treatFunctionsAsVar.get = function() {
740
740
  return this.treatFunctionsAsVarInScope(this.currentScope());
@@ -759,11 +759,11 @@ A.tokenizer = function(e, s) {
759
759
  return new this(s, e);
760
760
  };
761
761
  Object.defineProperties(A.prototype, pe);
762
- var F = A.prototype, Ui = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
762
+ var F = A.prototype, Wi = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
763
763
  F.strictDirective = function(t) {
764
764
  for (; ; ) {
765
765
  $.lastIndex = t, t += $.exec(this.input)[0].length;
766
- var e = Ui.exec(this.input.slice(t));
766
+ var e = Wi.exec(this.input.slice(t));
767
767
  if (!e)
768
768
  return !1;
769
769
  if ((e[1] || e[2]) === "use strict") {
@@ -830,8 +830,8 @@ F.checkYieldAwaitInDefaultParams = function() {
830
830
  F.isSimpleAssignTarget = function(t) {
831
831
  return t.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(t.expression) : t.type === "Identifier" || t.type === "MemberExpression";
832
832
  };
833
- var b = A.prototype;
834
- b.parseTopLevel = function(t) {
833
+ var y = A.prototype;
834
+ y.parseTopLevel = function(t) {
835
835
  var e = {};
836
836
  for (t.body || (t.body = []); this.type !== o.eof; ) {
837
837
  var s = this.parseStatement(null, !0, e);
@@ -844,8 +844,8 @@ b.parseTopLevel = function(t) {
844
844
  }
845
845
  return this.adaptDirectivePrologue(t.body), this.next(), t.sourceType = this.options.sourceType, this.finishNode(t, "Program");
846
846
  };
847
- var Ot = { kind: "loop" }, Gi = { kind: "switch" };
848
- b.isLet = function(t) {
847
+ var Ft = { kind: "loop" }, Ki = { kind: "switch" };
848
+ y.isLet = function(t) {
849
849
  if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
850
850
  return !1;
851
851
  $.lastIndex = this.pos;
@@ -856,23 +856,23 @@ b.isLet = function(t) {
856
856
  return !1;
857
857
  if (i === 123)
858
858
  return !0;
859
- if (ne(i, !0)) {
860
- for (var r = s + 1; ve(this.input.charCodeAt(r), !0); )
859
+ if (ae(i, !0)) {
860
+ for (var r = s + 1; be(this.input.charCodeAt(r), !0); )
861
861
  ++r;
862
862
  var n = this.input.slice(s, r);
863
- if (!Fi.test(n))
863
+ if (!Mi.test(n))
864
864
  return !0;
865
865
  }
866
866
  return !1;
867
867
  };
868
- b.isAsyncFunction = function() {
868
+ y.isAsyncFunction = function() {
869
869
  if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
870
870
  return !1;
871
871
  $.lastIndex = this.pos;
872
872
  var t = $.exec(this.input), e = this.pos + t[0].length;
873
- return !U.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !ve(this.input.charAt(e + 8)));
873
+ return !U.test(this.input.slice(this.pos, e)) && this.input.slice(e, e + 8) === "function" && (e + 8 === this.input.length || !be(this.input.charAt(e + 8)));
874
874
  };
875
- b.parseStatement = function(t, e, s) {
875
+ y.parseStatement = function(t, e, s) {
876
876
  var i = this.type, r = this.startNode(), n;
877
877
  switch (this.isLet(t) && (i = o._var, n = "let"), i) {
878
878
  case o._break:
@@ -930,7 +930,7 @@ b.parseStatement = function(t, e, s) {
930
930
  return i === o.name && h.type === "Identifier" && this.eat(o.colon) ? this.parseLabeledStatement(r, l, h, t) : this.parseExpressionStatement(r, h);
931
931
  }
932
932
  };
933
- b.parseBreakContinueStatement = function(t, e) {
933
+ y.parseBreakContinueStatement = function(t, e) {
934
934
  var s = e === "break";
935
935
  this.next(), this.eat(o.semi) || this.insertSemicolon() ? t.label = null : this.type !== o.name ? this.unexpected() : (t.label = this.parseIdent(), this.semicolon());
936
936
  for (var i = 0; i < this.labels.length; ++i) {
@@ -940,16 +940,16 @@ b.parseBreakContinueStatement = function(t, e) {
940
940
  }
941
941
  return i === this.labels.length && this.raise(t.start, "Unsyntactic " + e), this.finishNode(t, s ? "BreakStatement" : "ContinueStatement");
942
942
  };
943
- b.parseDebuggerStatement = function(t) {
943
+ y.parseDebuggerStatement = function(t) {
944
944
  return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement");
945
945
  };
946
- b.parseDoStatement = function(t) {
947
- return this.next(), this.labels.push(Ot), t.body = this.parseStatement("do"), this.labels.pop(), this.expect(o._while), t.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(o.semi) : this.semicolon(), this.finishNode(t, "DoWhileStatement");
946
+ y.parseDoStatement = function(t) {
947
+ return this.next(), this.labels.push(Ft), t.body = this.parseStatement("do"), this.labels.pop(), this.expect(o._while), t.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(o.semi) : this.semicolon(), this.finishNode(t, "DoWhileStatement");
948
948
  };
949
- b.parseForStatement = function(t) {
949
+ y.parseForStatement = function(t) {
950
950
  this.next();
951
951
  var e = this.options.ecmaVersion >= 9 && (this.inAsync || !this.inFunction && this.options.allowAwaitOutsideFunction) && this.eatContextual("await") ? this.lastTokStart : -1;
952
- if (this.labels.push(Ot), this.enterScope(0), this.expect(o.parenL), this.type === o.semi)
952
+ if (this.labels.push(Ft), this.enterScope(0), this.expect(o.parenL), this.type === o.semi)
953
953
  return e > -1 && this.unexpected(e), this.parseFor(t, null);
954
954
  var s = this.isLet();
955
955
  if (this.type === o._var || this.type === o._const || s) {
@@ -959,17 +959,17 @@ b.parseForStatement = function(t) {
959
959
  var n = new Ye(), a = this.parseExpression(!0, n);
960
960
  return this.type === o._in || this.options.ecmaVersion >= 6 && this.isContextual("of") ? (this.options.ecmaVersion >= 9 && (this.type === o._in ? e > -1 && this.unexpected(e) : t.await = e > -1), this.toAssignable(a, !1, n), this.checkLVal(a), this.parseForIn(t, a)) : (this.checkExpressionErrors(n, !0), e > -1 && this.unexpected(e), this.parseFor(t, a));
961
961
  };
962
- b.parseFunctionStatement = function(t, e, s) {
963
- return this.next(), this.parseFunction(t, ke | (s ? 0 : yt), !1, e);
962
+ y.parseFunctionStatement = function(t, e, s) {
963
+ return this.next(), this.parseFunction(t, ke | (s ? 0 : _t), !1, e);
964
964
  };
965
- b.parseIfStatement = function(t) {
965
+ y.parseIfStatement = function(t) {
966
966
  return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement("if"), t.alternate = this.eat(o._else) ? this.parseStatement("if") : null, this.finishNode(t, "IfStatement");
967
967
  };
968
- b.parseReturnStatement = function(t) {
968
+ y.parseReturnStatement = function(t) {
969
969
  return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(o.semi) || this.insertSemicolon() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
970
970
  };
971
- b.parseSwitchStatement = function(t) {
972
- this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(o.braceL), this.labels.push(Gi), this.enterScope(0);
971
+ y.parseSwitchStatement = function(t) {
972
+ this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(o.braceL), this.labels.push(Ki), this.enterScope(0);
973
973
  for (var e, s = !1; this.type !== o.braceR; )
974
974
  if (this.type === o._case || this.type === o._default) {
975
975
  var i = this.type === o._case;
@@ -978,36 +978,36 @@ b.parseSwitchStatement = function(t) {
978
978
  e || this.unexpected(), e.consequent.push(this.parseStatement(null));
979
979
  return this.exitScope(), e && this.finishNode(e, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(t, "SwitchStatement");
980
980
  };
981
- b.parseThrowStatement = function(t) {
981
+ y.parseThrowStatement = function(t) {
982
982
  return this.next(), U.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
983
983
  };
984
- var qi = [];
985
- b.parseTryStatement = function(t) {
984
+ var zi = [];
985
+ y.parseTryStatement = function(t) {
986
986
  if (this.next(), t.block = this.parseBlock(), t.handler = null, this.type === o._catch) {
987
987
  var e = this.startNode();
988
988
  if (this.next(), this.eat(o.parenL)) {
989
989
  e.param = this.parseBindingAtom();
990
990
  var s = e.param.type === "Identifier";
991
- this.enterScope(s ? Cs : 0), this.checkLVal(e.param, s ? Is : Z), this.expect(o.parenR);
991
+ this.enterScope(s ? Es : 0), this.checkLVal(e.param, s ? Ps : Z), this.expect(o.parenR);
992
992
  } else
993
993
  this.options.ecmaVersion < 10 && this.unexpected(), e.param = null, this.enterScope(0);
994
994
  e.body = this.parseBlock(!1), this.exitScope(), t.handler = this.finishNode(e, "CatchClause");
995
995
  }
996
996
  return t.finalizer = this.eat(o._finally) ? this.parseBlock() : null, !t.handler && !t.finalizer && this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement");
997
997
  };
998
- b.parseVarStatement = function(t, e) {
998
+ y.parseVarStatement = function(t, e) {
999
999
  return this.next(), this.parseVar(t, !1, e), this.semicolon(), this.finishNode(t, "VariableDeclaration");
1000
1000
  };
1001
- b.parseWhileStatement = function(t) {
1002
- return this.next(), t.test = this.parseParenExpression(), this.labels.push(Ot), t.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(t, "WhileStatement");
1001
+ y.parseWhileStatement = function(t) {
1002
+ return this.next(), t.test = this.parseParenExpression(), this.labels.push(Ft), t.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(t, "WhileStatement");
1003
1003
  };
1004
- b.parseWithStatement = function(t) {
1004
+ y.parseWithStatement = function(t) {
1005
1005
  return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), t.object = this.parseParenExpression(), t.body = this.parseStatement("with"), this.finishNode(t, "WithStatement");
1006
1006
  };
1007
- b.parseEmptyStatement = function(t) {
1007
+ y.parseEmptyStatement = function(t) {
1008
1008
  return this.next(), this.finishNode(t, "EmptyStatement");
1009
1009
  };
1010
- b.parseLabeledStatement = function(t, e, s, i) {
1010
+ y.parseLabeledStatement = function(t, e, s, i) {
1011
1011
  for (var r = 0, n = this.labels; r < n.length; r += 1) {
1012
1012
  var a = n[r];
1013
1013
  a.name === e && this.raise(s.start, "Label '" + e + "' is already declared");
@@ -1021,27 +1021,27 @@ b.parseLabeledStatement = function(t, e, s, i) {
1021
1021
  }
1022
1022
  return this.labels.push({ name: e, kind: u, statementStart: this.start }), t.body = this.parseStatement(i ? i.indexOf("label") === -1 ? i + "label" : i : "label"), this.labels.pop(), t.label = s, this.finishNode(t, "LabeledStatement");
1023
1023
  };
1024
- b.parseExpressionStatement = function(t, e) {
1024
+ y.parseExpressionStatement = function(t, e) {
1025
1025
  return t.expression = e, this.semicolon(), this.finishNode(t, "ExpressionStatement");
1026
1026
  };
1027
- b.parseBlock = function(t, e, s) {
1027
+ y.parseBlock = function(t, e, s) {
1028
1028
  for (t === void 0 && (t = !0), e === void 0 && (e = this.startNode()), e.body = [], this.expect(o.braceL), t && this.enterScope(0); this.type !== o.braceR; ) {
1029
1029
  var i = this.parseStatement(null);
1030
1030
  e.body.push(i);
1031
1031
  }
1032
1032
  return s && (this.strict = !1), this.next(), t && this.exitScope(), this.finishNode(e, "BlockStatement");
1033
1033
  };
1034
- b.parseFor = function(t, e) {
1034
+ y.parseFor = function(t, e) {
1035
1035
  return t.init = e, this.expect(o.semi), t.test = this.type === o.semi ? null : this.parseExpression(), this.expect(o.semi), t.update = this.type === o.parenR ? null : this.parseExpression(), this.expect(o.parenR), t.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(t, "ForStatement");
1036
1036
  };
1037
- b.parseForIn = function(t, e) {
1037
+ y.parseForIn = function(t, e) {
1038
1038
  var s = this.type === o._in;
1039
1039
  return this.next(), e.type === "VariableDeclaration" && e.declarations[0].init != null && (!s || this.options.ecmaVersion < 8 || this.strict || e.kind !== "var" || e.declarations[0].id.type !== "Identifier") ? this.raise(
1040
1040
  e.start,
1041
1041
  (s ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"
1042
1042
  ) : e.type === "AssignmentPattern" && this.raise(e.start, "Invalid left-hand side in for-loop"), t.left = e, t.right = s ? this.parseExpression() : this.parseMaybeAssign(), this.expect(o.parenR), t.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(t, s ? "ForInStatement" : "ForOfStatement");
1043
1043
  };
1044
- b.parseVar = function(t, e, s) {
1044
+ y.parseVar = function(t, e, s) {
1045
1045
  for (t.declarations = [], t.kind = s; ; ) {
1046
1046
  var i = this.startNode();
1047
1047
  if (this.parseVarId(i, s), this.eat(o.eq) ? i.init = this.parseMaybeAssign(e) : s === "const" && !(this.type === o._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : i.id.type !== "Identifier" && !(e && (this.type === o._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : i.init = null, t.declarations.push(this.finishNode(i, "VariableDeclarator")), !this.eat(o.comma))
@@ -1049,19 +1049,19 @@ b.parseVar = function(t, e, s) {
1049
1049
  }
1050
1050
  return t;
1051
1051
  };
1052
- b.parseVarId = function(t, e) {
1053
- t.id = this.parseBindingAtom(), this.checkLVal(t.id, e === "var" ? Vt : Z, !1);
1052
+ y.parseVarId = function(t, e) {
1053
+ t.id = this.parseBindingAtom(), this.checkLVal(t.id, e === "var" ? Ot : Z, !1);
1054
1054
  };
1055
- var ke = 1, yt = 2, Ps = 4;
1056
- b.parseFunction = function(t, e, s, i) {
1057
- this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === o.star && e & yt && this.unexpected(), t.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (t.async = !!i), e & ke && (t.id = e & Ps && this.type !== o.name ? null : this.parseIdent(), t.id && !(e & yt) && this.checkLVal(t.id, this.strict || t.generator || t.async ? this.treatFunctionsAsVar ? Vt : Z : ks));
1055
+ var ke = 1, _t = 2, Ns = 4;
1056
+ y.parseFunction = function(t, e, s, i) {
1057
+ this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === o.star && e & _t && this.unexpected(), t.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (t.async = !!i), e & ke && (t.id = e & Ns && this.type !== o.name ? null : this.parseIdent(), t.id && !(e & _t) && this.checkLVal(t.id, this.strict || t.generator || t.async ? this.treatFunctionsAsVar ? Ot : Z : As));
1058
1058
  var r = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
1059
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Rt(t.async, t.generator)), e & ke || (t.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(t), this.parseFunctionBody(t, s, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(t, e & ke ? "FunctionDeclaration" : "FunctionExpression");
1059
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Vt(t.async, t.generator)), e & ke || (t.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(t), this.parseFunctionBody(t, s, !1), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(t, e & ke ? "FunctionDeclaration" : "FunctionExpression");
1060
1060
  };
1061
- b.parseFunctionParams = function(t) {
1061
+ y.parseFunctionParams = function(t) {
1062
1062
  this.expect(o.parenL), t.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
1063
1063
  };
1064
- b.parseClass = function(t, e) {
1064
+ y.parseClass = function(t, e) {
1065
1065
  this.next();
1066
1066
  var s = this.strict;
1067
1067
  this.strict = !0, this.parseClassId(t, e), this.parseClassSuper(t);
@@ -1072,7 +1072,7 @@ b.parseClass = function(t, e) {
1072
1072
  }
1073
1073
  return this.strict = s, this.next(), t.body = this.finishNode(i, "ClassBody"), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression");
1074
1074
  };
1075
- b.parseClassElement = function(t) {
1075
+ y.parseClassElement = function(t) {
1076
1076
  var e = this;
1077
1077
  if (this.eat(o.semi))
1078
1078
  return null;
@@ -1087,16 +1087,16 @@ b.parseClassElement = function(t) {
1087
1087
  var a = s.key, u = !1;
1088
1088
  return !s.computed && !s.static && (a.type === "Identifier" && a.name === "constructor" || a.type === "Literal" && a.value === "constructor") ? (s.kind !== "method" && this.raise(a.start, "Constructor can't have get/set modifier"), r && this.raise(a.start, "Constructor can't be a generator"), n && this.raise(a.start, "Constructor can't be an async method"), s.kind = "constructor", u = t) : s.static && a.type === "Identifier" && a.name === "prototype" && this.raise(a.start, "Classes may not have a static property named prototype"), this.parseClassMethod(s, r, n, u), s.kind === "get" && s.value.params.length !== 0 && this.raiseRecoverable(s.value.start, "getter should have no params"), s.kind === "set" && s.value.params.length !== 1 && this.raiseRecoverable(s.value.start, "setter should have exactly one param"), s.kind === "set" && s.value.params[0].type === "RestElement" && this.raiseRecoverable(s.value.params[0].start, "Setter cannot use rest params"), s;
1089
1089
  };
1090
- b.parseClassMethod = function(t, e, s, i) {
1090
+ y.parseClassMethod = function(t, e, s, i) {
1091
1091
  return t.value = this.parseMethod(e, s, i), this.finishNode(t, "MethodDefinition");
1092
1092
  };
1093
- b.parseClassId = function(t, e) {
1093
+ y.parseClassId = function(t, e) {
1094
1094
  this.type === o.name ? (t.id = this.parseIdent(), e && this.checkLVal(t.id, Z, !1)) : (e === !0 && this.unexpected(), t.id = null);
1095
1095
  };
1096
- b.parseClassSuper = function(t) {
1096
+ y.parseClassSuper = function(t) {
1097
1097
  t.superClass = this.eat(o._extends) ? this.parseExprSubscripts() : null;
1098
1098
  };
1099
- b.parseExport = function(t, e) {
1099
+ y.parseExport = function(t, e) {
1100
1100
  if (this.next(), this.eat(o.star))
1101
1101
  return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (t.exported = this.parseIdent(!0), this.checkExport(e, t.exported.name, this.lastTokStart)) : t.exported = null), this.expectContextual("from"), this.type !== o.string && this.unexpected(), t.source = this.parseExprAtom(), this.semicolon(), this.finishNode(t, "ExportAllDeclaration");
1102
1102
  if (this.eat(o._default)) {
@@ -1104,7 +1104,7 @@ b.parseExport = function(t, e) {
1104
1104
  var s;
1105
1105
  if (this.type === o._function || (s = this.isAsyncFunction())) {
1106
1106
  var i = this.startNode();
1107
- this.next(), s && this.next(), t.declaration = this.parseFunction(i, ke | Ps, !1, s);
1107
+ this.next(), s && this.next(), t.declaration = this.parseFunction(i, ke | Ns, !1, s);
1108
1108
  } else if (this.type === o._class) {
1109
1109
  var r = this.startNode();
1110
1110
  t.declaration = this.parseClass(r, "nullableID");
@@ -1128,10 +1128,10 @@ b.parseExport = function(t, e) {
1128
1128
  }
1129
1129
  return this.finishNode(t, "ExportNamedDeclaration");
1130
1130
  };
1131
- b.checkExport = function(t, e, s) {
1131
+ y.checkExport = function(t, e, s) {
1132
1132
  t && (Je(t, e) && this.raiseRecoverable(s, "Duplicate export '" + e + "'"), t[e] = !0);
1133
1133
  };
1134
- b.checkPatternExport = function(t, e) {
1134
+ y.checkPatternExport = function(t, e) {
1135
1135
  var s = e.type;
1136
1136
  if (s === "Identifier")
1137
1137
  this.checkExport(t, e.name, e.start);
@@ -1147,17 +1147,17 @@ b.checkPatternExport = function(t, e) {
1147
1147
  }
1148
1148
  else s === "Property" ? this.checkPatternExport(t, e.value) : s === "AssignmentPattern" ? this.checkPatternExport(t, e.left) : s === "RestElement" ? this.checkPatternExport(t, e.argument) : s === "ParenthesizedExpression" && this.checkPatternExport(t, e.expression);
1149
1149
  };
1150
- b.checkVariableExport = function(t, e) {
1150
+ y.checkVariableExport = function(t, e) {
1151
1151
  if (t)
1152
1152
  for (var s = 0, i = e; s < i.length; s += 1) {
1153
1153
  var r = i[s];
1154
1154
  this.checkPatternExport(t, r.id);
1155
1155
  }
1156
1156
  };
1157
- b.shouldParseExportStatement = function() {
1157
+ y.shouldParseExportStatement = function() {
1158
1158
  return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
1159
1159
  };
1160
- b.parseExportSpecifiers = function(t) {
1160
+ y.parseExportSpecifiers = function(t) {
1161
1161
  var e = [], s = !0;
1162
1162
  for (this.expect(o.braceL); !this.eat(o.braceR); ) {
1163
1163
  if (s)
@@ -1169,10 +1169,10 @@ b.parseExportSpecifiers = function(t) {
1169
1169
  }
1170
1170
  return e;
1171
1171
  };
1172
- b.parseImport = function(t) {
1173
- return this.next(), this.type === o.string ? (t.specifiers = qi, t.source = this.parseExprAtom()) : (t.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), t.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(t, "ImportDeclaration");
1172
+ y.parseImport = function(t) {
1173
+ return this.next(), this.type === o.string ? (t.specifiers = zi, t.source = this.parseExprAtom()) : (t.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), t.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(t, "ImportDeclaration");
1174
1174
  };
1175
- b.parseImportSpecifiers = function() {
1175
+ y.parseImportSpecifiers = function() {
1176
1176
  var t = [], e = !0;
1177
1177
  if (this.type === o.name) {
1178
1178
  var s = this.startNode();
@@ -1193,11 +1193,11 @@ b.parseImportSpecifiers = function() {
1193
1193
  }
1194
1194
  return t;
1195
1195
  };
1196
- b.adaptDirectivePrologue = function(t) {
1196
+ y.adaptDirectivePrologue = function(t) {
1197
1197
  for (var e = 0; e < t.length && this.isDirectiveCandidate(t[e]); ++e)
1198
1198
  t[e].directive = t[e].expression.raw.slice(1, -1);
1199
1199
  };
1200
- b.isDirectiveCandidate = function(t) {
1200
+ y.isDirectiveCandidate = function(t) {
1201
1201
  return t.type === "ExpressionStatement" && t.expression.type === "Literal" && typeof t.expression.value == "string" && // Reject parenthesized strings.
1202
1202
  (this.input[t.start] === '"' || this.input[t.start] === "'");
1203
1203
  };
@@ -1306,9 +1306,9 @@ te.parseMaybeDefault = function(t, e, s) {
1306
1306
  return i.left = s, i.right = this.parseMaybeAssign(), this.finishNode(i, "AssignmentPattern");
1307
1307
  };
1308
1308
  te.checkLVal = function(t, e, s) {
1309
- switch (e === void 0 && (e = Xt), t.type) {
1309
+ switch (e === void 0 && (e = Zt), t.type) {
1310
1310
  case "Identifier":
1311
- e === Z && t.name === "let" && this.raiseRecoverable(t.start, "let is disallowed as a lexically bound name"), this.strict && this.reservedWordsStrictBind.test(t.name) && this.raiseRecoverable(t.start, (e ? "Binding " : "Assigning to ") + t.name + " in strict mode"), s && (Je(s, t.name) && this.raiseRecoverable(t.start, "Argument name clash"), s[t.name] = !0), e !== Xt && e !== As && this.declareName(t.name, e, t.start);
1311
+ e === Z && t.name === "let" && this.raiseRecoverable(t.start, "let is disallowed as a lexically bound name"), this.strict && this.reservedWordsStrictBind.test(t.name) && this.raiseRecoverable(t.start, (e ? "Binding " : "Assigning to ") + t.name + " in strict mode"), s && (Je(s, t.name) && this.raiseRecoverable(t.start, "Argument name clash"), s[t.name] = !0), e !== Zt && e !== Ts && this.declareName(t.name, e, t.start);
1312
1312
  break;
1313
1313
  case "ChainExpression":
1314
1314
  this.raiseRecoverable(t.start, "Optional chaining cannot appear in left-hand side");
@@ -1344,8 +1344,8 @@ te.checkLVal = function(t, e, s) {
1344
1344
  this.raise(t.start, (e ? "Binding" : "Assigning to") + " rvalue");
1345
1345
  }
1346
1346
  };
1347
- var y = A.prototype;
1348
- y.checkPropClash = function(t, e, s) {
1347
+ var _ = A.prototype;
1348
+ _.checkPropClash = function(t, e, s) {
1349
1349
  if (!(this.options.ecmaVersion >= 9 && t.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (t.computed || t.method || t.shorthand))) {
1350
1350
  var i = t.key, r;
1351
1351
  switch (i.type) {
@@ -1377,7 +1377,7 @@ y.checkPropClash = function(t, e, s) {
1377
1377
  a[n] = !0;
1378
1378
  }
1379
1379
  };
1380
- y.parseExpression = function(t, e) {
1380
+ _.parseExpression = function(t, e) {
1381
1381
  var s = this.start, i = this.startLoc, r = this.parseMaybeAssign(t, e);
1382
1382
  if (this.type === o.comma) {
1383
1383
  var n = this.startNodeAt(s, i);
@@ -1387,7 +1387,7 @@ y.parseExpression = function(t, e) {
1387
1387
  }
1388
1388
  return r;
1389
1389
  };
1390
- y.parseMaybeAssign = function(t, e, s) {
1390
+ _.parseMaybeAssign = function(t, e, s) {
1391
1391
  if (this.isContextual("yield")) {
1392
1392
  if (this.inGenerator)
1393
1393
  return this.parseYield(t);
@@ -1405,7 +1405,7 @@ y.parseMaybeAssign = function(t, e, s) {
1405
1405
  i && this.checkExpressionErrors(e, !0);
1406
1406
  return r > -1 && (e.parenthesizedAssign = r), n > -1 && (e.trailingComma = n), c;
1407
1407
  };
1408
- y.parseMaybeConditional = function(t, e) {
1408
+ _.parseMaybeConditional = function(t, e) {
1409
1409
  var s = this.start, i = this.startLoc, r = this.parseExprOps(t, e);
1410
1410
  if (this.checkExpressionErrors(e))
1411
1411
  return r;
@@ -1415,27 +1415,27 @@ y.parseMaybeConditional = function(t, e) {
1415
1415
  }
1416
1416
  return r;
1417
1417
  };
1418
- y.parseExprOps = function(t, e) {
1418
+ _.parseExprOps = function(t, e) {
1419
1419
  var s = this.start, i = this.startLoc, r = this.parseMaybeUnary(e, !1);
1420
1420
  return this.checkExpressionErrors(e) || r.start === s && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, s, i, -1, t);
1421
1421
  };
1422
- y.parseExprOp = function(t, e, s, i, r) {
1422
+ _.parseExprOp = function(t, e, s, i, r) {
1423
1423
  var n = this.type.binop;
1424
1424
  if (n != null && (!r || this.type !== o._in) && n > i) {
1425
1425
  var a = this.type === o.logicalOR || this.type === o.logicalAND, u = this.type === o.coalesce;
1426
1426
  u && (n = o.logicalAND.binop);
1427
1427
  var c = this.value;
1428
1428
  this.next();
1429
- var l = this.start, h = this.startLoc, p = this.parseExprOp(this.parseMaybeUnary(null, !1), l, h, n, r), f = this.buildBinary(e, s, t, p, c, a || u);
1430
- return (a && this.type === o.coalesce || u && (this.type === o.logicalOR || this.type === o.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, e, s, i, r);
1429
+ var l = this.start, h = this.startLoc, p = this.parseExprOp(this.parseMaybeUnary(null, !1), l, h, n, r), d = this.buildBinary(e, s, t, p, c, a || u);
1430
+ return (a && this.type === o.coalesce || u && (this.type === o.logicalOR || this.type === o.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(d, e, s, i, r);
1431
1431
  }
1432
1432
  return t;
1433
1433
  };
1434
- y.buildBinary = function(t, e, s, i, r, n) {
1434
+ _.buildBinary = function(t, e, s, i, r, n) {
1435
1435
  var a = this.startNodeAt(t, e);
1436
1436
  return a.left = s, a.operator = r, a.right = i, this.finishNode(a, n ? "LogicalExpression" : "BinaryExpression");
1437
1437
  };
1438
- y.parseMaybeUnary = function(t, e) {
1438
+ _.parseMaybeUnary = function(t, e) {
1439
1439
  var s = this.start, i = this.startLoc, r;
1440
1440
  if (this.isContextual("await") && (this.inAsync || !this.inFunction && this.options.allowAwaitOutsideFunction))
1441
1441
  r = this.parseAwait(), e = !0;
@@ -1452,14 +1452,14 @@ y.parseMaybeUnary = function(t, e) {
1452
1452
  }
1453
1453
  return !e && this.eat(o.starstar) ? this.buildBinary(s, i, r, this.parseMaybeUnary(null, !1), "**", !1) : r;
1454
1454
  };
1455
- y.parseExprSubscripts = function(t) {
1455
+ _.parseExprSubscripts = function(t) {
1456
1456
  var e = this.start, s = this.startLoc, i = this.parseExprAtom(t);
1457
1457
  if (i.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")")
1458
1458
  return i;
1459
1459
  var r = this.parseSubscripts(i, e, s);
1460
1460
  return t && r.type === "MemberExpression" && (t.parenthesizedAssign >= r.start && (t.parenthesizedAssign = -1), t.parenthesizedBind >= r.start && (t.parenthesizedBind = -1)), r;
1461
1461
  };
1462
- y.parseSubscripts = function(t, e, s, i) {
1462
+ _.parseSubscripts = function(t, e, s, i) {
1463
1463
  for (var r = this.options.ecmaVersion >= 8 && t.type === "Identifier" && t.name === "async" && this.lastTokEnd === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && this.potentialArrowAt === t.start, n = !1; ; ) {
1464
1464
  var a = this.parseSubscript(t, e, s, i, r, n);
1465
1465
  if (a.optional && (n = !0), a === t || a.type === "ArrowFunctionExpression") {
@@ -1472,7 +1472,7 @@ y.parseSubscripts = function(t, e, s, i) {
1472
1472
  t = a;
1473
1473
  }
1474
1474
  };
1475
- y.parseSubscript = function(t, e, s, i, r, n) {
1475
+ _.parseSubscript = function(t, e, s, i, r, n) {
1476
1476
  var a = this.options.ecmaVersion >= 11, u = a && this.eat(o.questionDot);
1477
1477
  i && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1478
1478
  var c = this.eat(o.bracketL);
@@ -1480,12 +1480,12 @@ y.parseSubscript = function(t, e, s, i, r, n) {
1480
1480
  var l = this.startNodeAt(e, s);
1481
1481
  l.object = t, l.property = c ? this.parseExpression() : this.parseIdent(this.options.allowReserved !== "never"), l.computed = !!c, c && this.expect(o.bracketR), a && (l.optional = u), t = this.finishNode(l, "MemberExpression");
1482
1482
  } else if (!i && this.eat(o.parenL)) {
1483
- var h = new Ye(), p = this.yieldPos, f = this.awaitPos, d = this.awaitIdentPos;
1483
+ var h = new Ye(), p = this.yieldPos, d = this.awaitPos, f = this.awaitIdentPos;
1484
1484
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1485
1485
  var m = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, h);
1486
1486
  if (r && !u && !this.canInsertSemicolon() && this.eat(o.arrow))
1487
- return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = p, this.awaitPos = f, this.awaitIdentPos = d, this.parseArrowExpression(this.startNodeAt(e, s), m, !0);
1488
- this.checkExpressionErrors(h, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = f || this.awaitPos, this.awaitIdentPos = d || this.awaitIdentPos;
1487
+ return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = p, this.awaitPos = d, this.awaitIdentPos = f, this.parseArrowExpression(this.startNodeAt(e, s), m, !0);
1488
+ this.checkExpressionErrors(h, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = d || this.awaitPos, this.awaitIdentPos = f || this.awaitIdentPos;
1489
1489
  var g = this.startNodeAt(e, s);
1490
1490
  g.callee = t, g.arguments = m, a && (g.optional = u), t = this.finishNode(g, "CallExpression");
1491
1491
  } else if (this.type === o.backQuote) {
@@ -1495,7 +1495,7 @@ y.parseSubscript = function(t, e, s, i, r, n) {
1495
1495
  }
1496
1496
  return t;
1497
1497
  };
1498
- y.parseExprAtom = function(t) {
1498
+ _.parseExprAtom = function(t) {
1499
1499
  this.type === o.slash && this.readRegexp();
1500
1500
  var e, s = this.potentialArrowAt === this.start;
1501
1501
  switch (this.type) {
@@ -1545,7 +1545,7 @@ y.parseExprAtom = function(t) {
1545
1545
  this.unexpected();
1546
1546
  }
1547
1547
  };
1548
- y.parseExprImport = function() {
1548
+ _.parseExprImport = function() {
1549
1549
  var t = this.startNode();
1550
1550
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import");
1551
1551
  var e = this.parseIdent(!0);
@@ -1558,45 +1558,45 @@ y.parseExprImport = function() {
1558
1558
  this.unexpected();
1559
1559
  }
1560
1560
  };
1561
- y.parseDynamicImport = function(t) {
1561
+ _.parseDynamicImport = function(t) {
1562
1562
  if (this.next(), t.source = this.parseMaybeAssign(), !this.eat(o.parenR)) {
1563
1563
  var e = this.start;
1564
1564
  this.eat(o.comma) && this.eat(o.parenR) ? this.raiseRecoverable(e, "Trailing comma is not allowed in import()") : this.unexpected(e);
1565
1565
  }
1566
1566
  return this.finishNode(t, "ImportExpression");
1567
1567
  };
1568
- y.parseImportMeta = function(t) {
1568
+ _.parseImportMeta = function(t) {
1569
1569
  this.next();
1570
1570
  var e = this.containsEsc;
1571
1571
  return t.property = this.parseIdent(!0), t.property.name !== "meta" && this.raiseRecoverable(t.property.start, "The only valid meta property for import is 'import.meta'"), e && this.raiseRecoverable(t.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && this.raiseRecoverable(t.start, "Cannot use 'import.meta' outside a module"), this.finishNode(t, "MetaProperty");
1572
1572
  };
1573
- y.parseLiteral = function(t) {
1573
+ _.parseLiteral = function(t) {
1574
1574
  var e = this.startNode();
1575
1575
  return e.value = t, e.raw = this.input.slice(this.start, this.end), e.raw.charCodeAt(e.raw.length - 1) === 110 && (e.bigint = e.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(e, "Literal");
1576
1576
  };
1577
- y.parseParenExpression = function() {
1577
+ _.parseParenExpression = function() {
1578
1578
  this.expect(o.parenL);
1579
1579
  var t = this.parseExpression();
1580
1580
  return this.expect(o.parenR), t;
1581
1581
  };
1582
- y.parseParenAndDistinguishExpression = function(t) {
1582
+ _.parseParenAndDistinguishExpression = function(t) {
1583
1583
  var e = this.start, s = this.startLoc, i, r = this.options.ecmaVersion >= 8;
1584
1584
  if (this.options.ecmaVersion >= 6) {
1585
1585
  this.next();
1586
- var n = this.start, a = this.startLoc, u = [], c = !0, l = !1, h = new Ye(), p = this.yieldPos, f = this.awaitPos, d;
1586
+ var n = this.start, a = this.startLoc, u = [], c = !0, l = !1, h = new Ye(), p = this.yieldPos, d = this.awaitPos, f;
1587
1587
  for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; )
1588
1588
  if (c ? c = !1 : this.expect(o.comma), r && this.afterTrailingComma(o.parenR, !0)) {
1589
1589
  l = !0;
1590
1590
  break;
1591
1591
  } else if (this.type === o.ellipsis) {
1592
- d = this.start, u.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raise(this.start, "Comma is not permitted after the rest element");
1592
+ f = this.start, u.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raise(this.start, "Comma is not permitted after the rest element");
1593
1593
  break;
1594
1594
  } else
1595
1595
  u.push(this.parseMaybeAssign(!1, h, this.parseParenItem));
1596
1596
  var m = this.start, g = this.startLoc;
1597
1597
  if (this.expect(o.parenR), t && !this.canInsertSemicolon() && this.eat(o.arrow))
1598
- return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = p, this.awaitPos = f, this.parseParenArrowList(e, s, u);
1599
- (!u.length || l) && this.unexpected(this.lastTokStart), d && this.unexpected(d), this.checkExpressionErrors(h, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = f || this.awaitPos, u.length > 1 ? (i = this.startNodeAt(n, a), i.expressions = u, this.finishNodeAt(i, "SequenceExpression", m, g)) : i = u[0];
1598
+ return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = p, this.awaitPos = d, this.parseParenArrowList(e, s, u);
1599
+ (!u.length || l) && this.unexpected(this.lastTokStart), f && this.unexpected(f), this.checkExpressionErrors(h, !0), this.yieldPos = p || this.yieldPos, this.awaitPos = d || this.awaitPos, u.length > 1 ? (i = this.startNodeAt(n, a), i.expressions = u, this.finishNodeAt(i, "SequenceExpression", m, g)) : i = u[0];
1600
1600
  } else
1601
1601
  i = this.parseParenExpression();
1602
1602
  if (this.options.preserveParens) {
@@ -1605,14 +1605,14 @@ y.parseParenAndDistinguishExpression = function(t) {
1605
1605
  } else
1606
1606
  return i;
1607
1607
  };
1608
- y.parseParenItem = function(t) {
1608
+ _.parseParenItem = function(t) {
1609
1609
  return t;
1610
1610
  };
1611
- y.parseParenArrowList = function(t, e, s) {
1611
+ _.parseParenArrowList = function(t, e, s) {
1612
1612
  return this.parseArrowExpression(this.startNodeAt(t, e), s);
1613
1613
  };
1614
- var Wi = [];
1615
- y.parseNew = function() {
1614
+ var Ji = [];
1615
+ _.parseNew = function() {
1616
1616
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1617
1617
  var t = this.startNode(), e = this.parseIdent(!0);
1618
1618
  if (this.options.ecmaVersion >= 6 && this.eat(o.dot)) {
@@ -1621,9 +1621,9 @@ y.parseNew = function() {
1621
1621
  return t.property = this.parseIdent(!0), t.property.name !== "target" && this.raiseRecoverable(t.property.start, "The only valid meta property for new is 'new.target'"), s && this.raiseRecoverable(t.start, "'new.target' must not contain escaped characters"), this.inNonArrowFunction() || this.raiseRecoverable(t.start, "'new.target' can only be used in functions"), this.finishNode(t, "MetaProperty");
1622
1622
  }
1623
1623
  var i = this.start, r = this.startLoc, n = this.type === o._import;
1624
- return t.callee = this.parseSubscripts(this.parseExprAtom(), i, r, !0), n && t.callee.type === "ImportExpression" && this.raise(i, "Cannot use new with import()"), this.eat(o.parenL) ? t.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments = Wi, this.finishNode(t, "NewExpression");
1624
+ return t.callee = this.parseSubscripts(this.parseExprAtom(), i, r, !0), n && t.callee.type === "ImportExpression" && this.raise(i, "Cannot use new with import()"), this.eat(o.parenL) ? t.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : t.arguments = Ji, this.finishNode(t, "NewExpression");
1625
1625
  };
1626
- y.parseTemplateElement = function(t) {
1626
+ _.parseTemplateElement = function(t) {
1627
1627
  var e = t.isTagged, s = this.startNode();
1628
1628
  return this.type === o.invalidTemplate ? (e || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), s.value = {
1629
1629
  raw: this.value,
@@ -1634,7 +1634,7 @@ y.parseTemplateElement = function(t) {
1634
1634
  cooked: this.value
1635
1635
  }, this.next(), s.tail = this.type === o.backQuote, this.finishNode(s, "TemplateElement");
1636
1636
  };
1637
- y.parseTemplate = function(t) {
1637
+ _.parseTemplate = function(t) {
1638
1638
  t === void 0 && (t = {});
1639
1639
  var e = t.isTagged;
1640
1640
  e === void 0 && (e = !1);
@@ -1645,10 +1645,10 @@ y.parseTemplate = function(t) {
1645
1645
  this.type === o.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(o.dollarBraceL), s.expressions.push(this.parseExpression()), this.expect(o.braceR), s.quasis.push(i = this.parseTemplateElement({ isTagged: e }));
1646
1646
  return this.next(), this.finishNode(s, "TemplateLiteral");
1647
1647
  };
1648
- y.isAsyncProp = function(t) {
1648
+ _.isAsyncProp = function(t) {
1649
1649
  return !t.computed && t.key.type === "Identifier" && t.key.name === "async" && (this.type === o.name || this.type === o.num || this.type === o.string || this.type === o.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === o.star) && !U.test(this.input.slice(this.lastTokEnd, this.start));
1650
1650
  };
1651
- y.parseObj = function(t, e) {
1651
+ _.parseObj = function(t, e) {
1652
1652
  var s = this.startNode(), i = !0, r = {};
1653
1653
  for (s.properties = [], this.next(); !this.eat(o.braceR); ) {
1654
1654
  if (i)
@@ -1660,7 +1660,7 @@ y.parseObj = function(t, e) {
1660
1660
  }
1661
1661
  return this.finishNode(s, t ? "ObjectPattern" : "ObjectExpression");
1662
1662
  };
1663
- y.parseProperty = function(t, e) {
1663
+ _.parseProperty = function(t, e) {
1664
1664
  var s = this.startNode(), i, r, n, a;
1665
1665
  if (this.options.ecmaVersion >= 9 && this.eat(o.ellipsis))
1666
1666
  return t ? (s.argument = this.parseIdent(!1), this.type === o.comma && this.raise(this.start, "Comma is not permitted after the rest element"), this.finishNode(s, "RestElement")) : (this.type === o.parenL && e && (e.parenthesizedAssign < 0 && (e.parenthesizedAssign = this.start), e.parenthesizedBind < 0 && (e.parenthesizedBind = this.start)), s.argument = this.parseMaybeAssign(!1, e), this.type === o.comma && e && e.trailingComma < 0 && (e.trailingComma = this.start), this.finishNode(s, "SpreadElement"));
@@ -1668,7 +1668,7 @@ y.parseProperty = function(t, e) {
1668
1668
  var u = this.containsEsc;
1669
1669
  return this.parsePropertyName(s), !t && !u && this.options.ecmaVersion >= 8 && !i && this.isAsyncProp(s) ? (r = !0, i = this.options.ecmaVersion >= 9 && this.eat(o.star), this.parsePropertyName(s, e)) : r = !1, this.parsePropertyValue(s, t, i, r, n, a, e, u), this.finishNode(s, "Property");
1670
1670
  };
1671
- y.parsePropertyValue = function(t, e, s, i, r, n, a, u) {
1671
+ _.parsePropertyValue = function(t, e, s, i, r, n, a, u) {
1672
1672
  if ((s || i) && this.type === o.colon && this.unexpected(), this.eat(o.colon))
1673
1673
  t.value = e ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, a), t.kind = "init";
1674
1674
  else if (this.options.ecmaVersion >= 6 && this.type === o.parenL)
@@ -1683,7 +1683,7 @@ y.parsePropertyValue = function(t, e, s, i, r, n, a, u) {
1683
1683
  t.kind === "set" && t.value.params[0].type === "RestElement" && this.raiseRecoverable(t.value.params[0].start, "Setter cannot use rest params");
1684
1684
  } else this.options.ecmaVersion >= 6 && !t.computed && t.key.type === "Identifier" ? ((s || i) && this.unexpected(), this.checkUnreserved(t.key), t.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), t.kind = "init", e ? t.value = this.parseMaybeDefault(r, n, t.key) : this.type === o.eq && a ? (a.shorthandAssign < 0 && (a.shorthandAssign = this.start), t.value = this.parseMaybeDefault(r, n, t.key)) : t.value = t.key, t.shorthand = !0) : this.unexpected();
1685
1685
  };
1686
- y.parsePropertyName = function(t) {
1686
+ _.parsePropertyName = function(t) {
1687
1687
  if (this.options.ecmaVersion >= 6) {
1688
1688
  if (this.eat(o.bracketL))
1689
1689
  return t.computed = !0, t.key = this.parseMaybeAssign(), this.expect(o.bracketR), t.key;
@@ -1691,18 +1691,18 @@ y.parsePropertyName = function(t) {
1691
1691
  }
1692
1692
  return t.key = this.type === o.num || this.type === o.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1693
1693
  };
1694
- y.initFunction = function(t) {
1694
+ _.initFunction = function(t) {
1695
1695
  t.id = null, this.options.ecmaVersion >= 6 && (t.generator = t.expression = !1), this.options.ecmaVersion >= 8 && (t.async = !1);
1696
1696
  };
1697
- y.parseMethod = function(t, e, s) {
1697
+ _.parseMethod = function(t, e, s) {
1698
1698
  var i = this.startNode(), r = this.yieldPos, n = this.awaitPos, a = this.awaitIdentPos;
1699
- return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = t), this.options.ecmaVersion >= 8 && (i.async = !!e), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Rt(e, i.generator) | ws | (s ? Es : 0)), this.expect(o.parenL), i.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(i, !1, !0), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(i, "FunctionExpression");
1699
+ return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = t), this.options.ecmaVersion >= 8 && (i.async = !!e), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Vt(e, i.generator) | ks | (s ? Is : 0)), this.expect(o.parenL), i.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(i, !1, !0), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = a, this.finishNode(i, "FunctionExpression");
1700
1700
  };
1701
- y.parseArrowExpression = function(t, e, s) {
1701
+ _.parseArrowExpression = function(t, e, s) {
1702
1702
  var i = this.yieldPos, r = this.awaitPos, n = this.awaitIdentPos;
1703
- return this.enterScope(Rt(s, !1) | Ss), this.initFunction(t), this.options.ecmaVersion >= 8 && (t.async = !!s), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, t.params = this.toAssignableList(e, !0), this.parseFunctionBody(t, !0, !1), this.yieldPos = i, this.awaitPos = r, this.awaitIdentPos = n, this.finishNode(t, "ArrowFunctionExpression");
1703
+ return this.enterScope(Vt(s, !1) | ws), this.initFunction(t), this.options.ecmaVersion >= 8 && (t.async = !!s), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, t.params = this.toAssignableList(e, !0), this.parseFunctionBody(t, !0, !1), this.yieldPos = i, this.awaitPos = r, this.awaitIdentPos = n, this.finishNode(t, "ArrowFunctionExpression");
1704
1704
  };
1705
- y.parseFunctionBody = function(t, e, s) {
1705
+ _.parseFunctionBody = function(t, e, s) {
1706
1706
  var i = e && this.type !== o.braceL, r = this.strict, n = !1;
1707
1707
  if (i)
1708
1708
  t.body = this.parseMaybeAssign(), t.expression = !0, this.checkParams(t, !1);
@@ -1710,11 +1710,11 @@ y.parseFunctionBody = function(t, e, s) {
1710
1710
  var a = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(t.params);
1711
1711
  (!r || a) && (n = this.strictDirective(this.end), n && a && this.raiseRecoverable(t.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1712
1712
  var u = this.labels;
1713
- this.labels = [], n && (this.strict = !0), this.checkParams(t, !r && !n && !e && !s && this.isSimpleParamList(t.params)), this.strict && t.id && this.checkLVal(t.id, As), t.body = this.parseBlock(!1, void 0, n && !r), t.expression = !1, this.adaptDirectivePrologue(t.body.body), this.labels = u;
1713
+ this.labels = [], n && (this.strict = !0), this.checkParams(t, !r && !n && !e && !s && this.isSimpleParamList(t.params)), this.strict && t.id && this.checkLVal(t.id, Ts), t.body = this.parseBlock(!1, void 0, n && !r), t.expression = !1, this.adaptDirectivePrologue(t.body.body), this.labels = u;
1714
1714
  }
1715
1715
  this.exitScope();
1716
1716
  };
1717
- y.isSimpleParamList = function(t) {
1717
+ _.isSimpleParamList = function(t) {
1718
1718
  for (var e = 0, s = t; e < s.length; e += 1) {
1719
1719
  var i = s[e];
1720
1720
  if (i.type !== "Identifier")
@@ -1722,13 +1722,13 @@ y.isSimpleParamList = function(t) {
1722
1722
  }
1723
1723
  return !0;
1724
1724
  };
1725
- y.checkParams = function(t, e) {
1725
+ _.checkParams = function(t, e) {
1726
1726
  for (var s = {}, i = 0, r = t.params; i < r.length; i += 1) {
1727
1727
  var n = r[i];
1728
- this.checkLVal(n, Vt, e ? null : s);
1728
+ this.checkLVal(n, Ot, e ? null : s);
1729
1729
  }
1730
1730
  };
1731
- y.parseExprList = function(t, e, s, i) {
1731
+ _.parseExprList = function(t, e, s, i) {
1732
1732
  for (var r = [], n = !0; !this.eat(t); ) {
1733
1733
  if (n)
1734
1734
  n = !1;
@@ -1739,30 +1739,30 @@ y.parseExprList = function(t, e, s, i) {
1739
1739
  }
1740
1740
  return r;
1741
1741
  };
1742
- y.checkUnreserved = function(t) {
1742
+ _.checkUnreserved = function(t) {
1743
1743
  var e = t.start, s = t.end, i = t.name;
1744
1744
  if (this.inGenerator && i === "yield" && this.raiseRecoverable(e, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && i === "await" && this.raiseRecoverable(e, "Cannot use 'await' as identifier inside an async function"), this.keywords.test(i) && this.raise(e, "Unexpected keyword '" + i + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(e, s).indexOf("\\") !== -1)) {
1745
1745
  var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1746
1746
  r.test(i) && (!this.inAsync && i === "await" && this.raiseRecoverable(e, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(e, "The keyword '" + i + "' is reserved"));
1747
1747
  }
1748
1748
  };
1749
- y.parseIdent = function(t, e) {
1749
+ _.parseIdent = function(t, e) {
1750
1750
  var s = this.startNode();
1751
1751
  return this.type === o.name ? s.name = this.value : this.type.keyword ? (s.name = this.type.keyword, (s.name === "class" || s.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop()) : this.unexpected(), this.next(!!t), this.finishNode(s, "Identifier"), t || (this.checkUnreserved(s), s.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = s.start)), s;
1752
1752
  };
1753
- y.parseYield = function(t) {
1753
+ _.parseYield = function(t) {
1754
1754
  this.yieldPos || (this.yieldPos = this.start);
1755
1755
  var e = this.startNode();
1756
1756
  return this.next(), this.type === o.semi || this.canInsertSemicolon() || this.type !== o.star && !this.type.startsExpr ? (e.delegate = !1, e.argument = null) : (e.delegate = this.eat(o.star), e.argument = this.parseMaybeAssign(t)), this.finishNode(e, "YieldExpression");
1757
1757
  };
1758
- y.parseAwait = function() {
1758
+ _.parseAwait = function() {
1759
1759
  this.awaitPos || (this.awaitPos = this.start);
1760
1760
  var t = this.startNode();
1761
1761
  return this.next(), t.argument = this.parseMaybeUnary(null, !1), this.finishNode(t, "AwaitExpression");
1762
1762
  };
1763
1763
  var Ue = A.prototype;
1764
1764
  Ue.raise = function(t, e) {
1765
- var s = bs(this.input, t);
1765
+ var s = _s(this.input, t);
1766
1766
  e += " (" + s.line + ":" + s.column + ")";
1767
1767
  var i = new SyntaxError(e);
1768
1768
  throw i.pos = t, i.loc = s, i.raisedAt = this.pos, i;
@@ -1772,101 +1772,101 @@ Ue.curPosition = function() {
1772
1772
  if (this.options.locations)
1773
1773
  return new Te(this.curLine, this.pos - this.lineStart);
1774
1774
  };
1775
- var ae = A.prototype, Ki = function(e) {
1775
+ var oe = A.prototype, Qi = function(e) {
1776
1776
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
1777
1777
  };
1778
- ae.enterScope = function(t) {
1779
- this.scopeStack.push(new Ki(t));
1778
+ oe.enterScope = function(t) {
1779
+ this.scopeStack.push(new Qi(t));
1780
1780
  };
1781
- ae.exitScope = function() {
1781
+ oe.exitScope = function() {
1782
1782
  this.scopeStack.pop();
1783
1783
  };
1784
- ae.treatFunctionsAsVarInScope = function(t) {
1784
+ oe.treatFunctionsAsVarInScope = function(t) {
1785
1785
  return t.flags & Oe || !this.inModule && t.flags & Ne;
1786
1786
  };
1787
- ae.declareName = function(t, e, s) {
1787
+ oe.declareName = function(t, e, s) {
1788
1788
  var i = !1;
1789
1789
  if (e === Z) {
1790
1790
  var r = this.currentScope();
1791
1791
  i = r.lexical.indexOf(t) > -1 || r.functions.indexOf(t) > -1 || r.var.indexOf(t) > -1, r.lexical.push(t), this.inModule && r.flags & Ne && delete this.undefinedExports[t];
1792
- } else if (e === Is) {
1792
+ } else if (e === Ps) {
1793
1793
  var n = this.currentScope();
1794
1794
  n.lexical.push(t);
1795
- } else if (e === ks) {
1795
+ } else if (e === As) {
1796
1796
  var a = this.currentScope();
1797
1797
  this.treatFunctionsAsVar ? i = a.lexical.indexOf(t) > -1 : i = a.lexical.indexOf(t) > -1 || a.var.indexOf(t) > -1, a.functions.push(t);
1798
1798
  } else
1799
1799
  for (var u = this.scopeStack.length - 1; u >= 0; --u) {
1800
1800
  var c = this.scopeStack[u];
1801
- if (c.lexical.indexOf(t) > -1 && !(c.flags & Cs && c.lexical[0] === t) || !this.treatFunctionsAsVarInScope(c) && c.functions.indexOf(t) > -1) {
1801
+ if (c.lexical.indexOf(t) > -1 && !(c.flags & Es && c.lexical[0] === t) || !this.treatFunctionsAsVarInScope(c) && c.functions.indexOf(t) > -1) {
1802
1802
  i = !0;
1803
1803
  break;
1804
1804
  }
1805
- if (c.var.push(t), this.inModule && c.flags & Ne && delete this.undefinedExports[t], c.flags & Nt)
1805
+ if (c.var.push(t), this.inModule && c.flags & Ne && delete this.undefinedExports[t], c.flags & Rt)
1806
1806
  break;
1807
1807
  }
1808
1808
  i && this.raiseRecoverable(s, "Identifier '" + t + "' has already been declared");
1809
1809
  };
1810
- ae.checkLocalExport = function(t) {
1810
+ oe.checkLocalExport = function(t) {
1811
1811
  this.scopeStack[0].lexical.indexOf(t.name) === -1 && this.scopeStack[0].var.indexOf(t.name) === -1 && (this.undefinedExports[t.name] = t);
1812
1812
  };
1813
- ae.currentScope = function() {
1813
+ oe.currentScope = function() {
1814
1814
  return this.scopeStack[this.scopeStack.length - 1];
1815
1815
  };
1816
- ae.currentVarScope = function() {
1816
+ oe.currentVarScope = function() {
1817
1817
  for (var t = this.scopeStack.length - 1; ; t--) {
1818
1818
  var e = this.scopeStack[t];
1819
- if (e.flags & Nt)
1819
+ if (e.flags & Rt)
1820
1820
  return e;
1821
1821
  }
1822
1822
  };
1823
- ae.currentThisScope = function() {
1823
+ oe.currentThisScope = function() {
1824
1824
  for (var t = this.scopeStack.length - 1; ; t--) {
1825
1825
  var e = this.scopeStack[t];
1826
- if (e.flags & Nt && !(e.flags & Ss))
1826
+ if (e.flags & Rt && !(e.flags & ws))
1827
1827
  return e;
1828
1828
  }
1829
1829
  };
1830
- var Ft = function(e, s, i) {
1830
+ var Lt = function(e, s, i) {
1831
1831
  this.type = "", this.start = s, this.end = 0, e.options.locations && (this.loc = new Qe(e, i)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [s, 0]);
1832
1832
  }, Xe = A.prototype;
1833
1833
  Xe.startNode = function() {
1834
- return new Ft(this, this.start, this.startLoc);
1834
+ return new Lt(this, this.start, this.startLoc);
1835
1835
  };
1836
1836
  Xe.startNodeAt = function(t, e) {
1837
- return new Ft(this, t, e);
1837
+ return new Lt(this, t, e);
1838
1838
  };
1839
- function Ts(t, e, s, i) {
1839
+ function Rs(t, e, s, i) {
1840
1840
  return t.type = e, t.end = s, this.options.locations && (t.loc.end = i), this.options.ranges && (t.range[1] = s), t;
1841
1841
  }
1842
1842
  Xe.finishNode = function(t, e) {
1843
- return Ts.call(this, t, e, this.lastTokEnd, this.lastTokEndLoc);
1843
+ return Rs.call(this, t, e, this.lastTokEnd, this.lastTokEndLoc);
1844
1844
  };
1845
1845
  Xe.finishNodeAt = function(t, e, s, i) {
1846
- return Ts.call(this, t, e, s, i);
1846
+ return Rs.call(this, t, e, s, i);
1847
1847
  };
1848
- var W = function(e, s, i, r, n) {
1848
+ var q = function(e, s, i, r, n) {
1849
1849
  this.token = e, this.isExpr = !!s, this.preserveSpace = !!i, this.override = r, this.generator = !!n;
1850
- }, k = {
1851
- b_stat: new W("{", !1),
1852
- b_expr: new W("{", !0),
1853
- b_tmpl: new W("${", !1),
1854
- p_stat: new W("(", !1),
1855
- p_expr: new W("(", !0),
1856
- q_tmpl: new W("`", !0, !0, function(t) {
1850
+ }, I = {
1851
+ b_stat: new q("{", !1),
1852
+ b_expr: new q("{", !0),
1853
+ b_tmpl: new q("${", !1),
1854
+ p_stat: new q("(", !1),
1855
+ p_expr: new q("(", !0),
1856
+ q_tmpl: new q("`", !0, !0, function(t) {
1857
1857
  return t.tryReadTemplateToken();
1858
1858
  }),
1859
- f_stat: new W("function", !1),
1860
- f_expr: new W("function", !0),
1861
- f_expr_gen: new W("function", !0, !1, null, !0),
1862
- f_gen: new W("function", !1, !1, null, !0)
1859
+ f_stat: new q("function", !1),
1860
+ f_expr: new q("function", !0),
1861
+ f_expr_gen: new q("function", !0, !1, null, !0),
1862
+ f_gen: new q("function", !1, !1, null, !0)
1863
1863
  }, Ze = A.prototype;
1864
1864
  Ze.initialContext = function() {
1865
- return [k.b_stat];
1865
+ return [I.b_stat];
1866
1866
  };
1867
1867
  Ze.braceIsBlock = function(t) {
1868
1868
  var e = this.curContext();
1869
- return e === k.f_expr || e === k.f_stat ? !0 : t === o.colon && (e === k.b_stat || e === k.b_expr) ? !e.isExpr : t === o._return || t === o.name && this.exprAllowed ? U.test(this.input.slice(this.lastTokEnd, this.start)) : t === o._else || t === o.semi || t === o.eof || t === o.parenR || t === o.arrow ? !0 : t === o.braceL ? e === k.b_stat : t === o._var || t === o._const || t === o.name ? !1 : !this.exprAllowed;
1869
+ return e === I.f_expr || e === I.f_stat ? !0 : t === o.colon && (e === I.b_stat || e === I.b_expr) ? !e.isExpr : t === o._return || t === o.name && this.exprAllowed ? U.test(this.input.slice(this.lastTokEnd, this.start)) : t === o._else || t === o.semi || t === o.eof || t === o.parenR || t === o.arrow ? !0 : t === o.braceL ? e === I.b_stat : t === o._var || t === o._const || t === o.name ? !1 : !this.exprAllowed;
1870
1870
  };
1871
1871
  Ze.inGeneratorContext = function() {
1872
1872
  for (var t = this.context.length - 1; t >= 1; t--) {
@@ -1886,30 +1886,30 @@ o.parenR.updateContext = o.braceR.updateContext = function() {
1886
1886
  return;
1887
1887
  }
1888
1888
  var t = this.context.pop();
1889
- t === k.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
1889
+ t === I.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
1890
1890
  };
1891
1891
  o.braceL.updateContext = function(t) {
1892
- this.context.push(this.braceIsBlock(t) ? k.b_stat : k.b_expr), this.exprAllowed = !0;
1892
+ this.context.push(this.braceIsBlock(t) ? I.b_stat : I.b_expr), this.exprAllowed = !0;
1893
1893
  };
1894
1894
  o.dollarBraceL.updateContext = function() {
1895
- this.context.push(k.b_tmpl), this.exprAllowed = !0;
1895
+ this.context.push(I.b_tmpl), this.exprAllowed = !0;
1896
1896
  };
1897
1897
  o.parenL.updateContext = function(t) {
1898
1898
  var e = t === o._if || t === o._for || t === o._with || t === o._while;
1899
- this.context.push(e ? k.p_stat : k.p_expr), this.exprAllowed = !0;
1899
+ this.context.push(e ? I.p_stat : I.p_expr), this.exprAllowed = !0;
1900
1900
  };
1901
1901
  o.incDec.updateContext = function() {
1902
1902
  };
1903
1903
  o._function.updateContext = o._class.updateContext = function(t) {
1904
- t.beforeExpr && t !== o.semi && t !== o._else && !(t === o._return && U.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === o.colon || t === o.braceL) && this.curContext() === k.b_stat) ? this.context.push(k.f_expr) : this.context.push(k.f_stat), this.exprAllowed = !1;
1904
+ t.beforeExpr && t !== o.semi && t !== o._else && !(t === o._return && U.test(this.input.slice(this.lastTokEnd, this.start))) && !((t === o.colon || t === o.braceL) && this.curContext() === I.b_stat) ? this.context.push(I.f_expr) : this.context.push(I.f_stat), this.exprAllowed = !1;
1905
1905
  };
1906
1906
  o.backQuote.updateContext = function() {
1907
- this.curContext() === k.q_tmpl ? this.context.pop() : this.context.push(k.q_tmpl), this.exprAllowed = !1;
1907
+ this.curContext() === I.q_tmpl ? this.context.pop() : this.context.push(I.q_tmpl), this.exprAllowed = !1;
1908
1908
  };
1909
1909
  o.star.updateContext = function(t) {
1910
1910
  if (t === o._function) {
1911
1911
  var e = this.context.length - 1;
1912
- this.context[e] === k.f_expr ? this.context[e] = k.f_expr_gen : this.context[e] = k.f_gen;
1912
+ this.context[e] === I.f_expr ? this.context[e] = I.f_expr_gen : this.context[e] = I.f_gen;
1913
1913
  }
1914
1914
  this.exprAllowed = !0;
1915
1915
  };
@@ -1917,30 +1917,30 @@ o.name.updateContext = function(t) {
1917
1917
  var e = !1;
1918
1918
  this.options.ecmaVersion >= 6 && t !== o.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (e = !0), this.exprAllowed = e;
1919
1919
  };
1920
- var Ns = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Rs = Ns + " Extended_Pictographic", zi = Rs, Ji = {
1921
- 9: Ns,
1922
- 10: Rs,
1923
- 11: zi
1924
- }, Zt = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Vs = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Os = Vs + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Qi = Os + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Yi = {
1920
+ var Vs = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Os = Vs + " Extended_Pictographic", Yi = Os, Xi = {
1925
1921
  9: Vs,
1926
1922
  10: Os,
1927
- 11: Qi
1928
- }, Fs = {};
1929
- function Lt(t) {
1930
- var e = Fs[t] = {
1931
- binary: le(Ji[t] + " " + Zt),
1923
+ 11: Yi
1924
+ }, es = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Fs = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Ls = Fs + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Zi = Ls + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", er = {
1925
+ 9: Fs,
1926
+ 10: Ls,
1927
+ 11: Zi
1928
+ }, js = {};
1929
+ function jt(t) {
1930
+ var e = js[t] = {
1931
+ binary: le(Xi[t] + " " + es),
1932
1932
  nonBinary: {
1933
- General_Category: le(Zt),
1934
- Script: le(Yi[t])
1933
+ General_Category: le(es),
1934
+ Script: le(er[t])
1935
1935
  }
1936
1936
  };
1937
1937
  e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
1938
1938
  }
1939
- Lt(9);
1940
- Lt(10);
1941
- Lt(11);
1939
+ jt(9);
1940
+ jt(10);
1941
+ jt(11);
1942
1942
  var v = A.prototype, se = function(e) {
1943
- this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties = Fs[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
1943
+ this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties = js[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
1944
1944
  };
1945
1945
  se.prototype.reset = function(e, s, i) {
1946
1946
  var r = i.indexOf("u") !== -1;
@@ -2179,13 +2179,13 @@ v.regexp_eatInvalidBracedQuantifier = function(t) {
2179
2179
  };
2180
2180
  v.regexp_eatSyntaxCharacter = function(t) {
2181
2181
  var e = t.current();
2182
- return Ls(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
2182
+ return Ms(e) ? (t.lastIntValue = e, t.advance(), !0) : !1;
2183
2183
  };
2184
- function Ls(t) {
2184
+ function Ms(t) {
2185
2185
  return t === 36 || t >= 40 && t <= 43 || t === 46 || t === 63 || t >= 91 && t <= 94 || t >= 123 && t <= 125;
2186
2186
  }
2187
2187
  v.regexp_eatPatternCharacters = function(t) {
2188
- for (var e = t.pos, s = 0; (s = t.current()) !== -1 && !Ls(s); )
2188
+ for (var e = t.pos, s = 0; (s = t.current()) !== -1 && !Ms(s); )
2189
2189
  t.advance();
2190
2190
  return t.pos !== e;
2191
2191
  };
@@ -2229,17 +2229,17 @@ v.regexp_eatRegExpIdentifierName = function(t) {
2229
2229
  };
2230
2230
  v.regexp_eatRegExpIdentifierStart = function(t) {
2231
2231
  var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
2232
- return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), Xi(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2232
+ return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), tr(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2233
2233
  };
2234
- function Xi(t) {
2235
- return ne(t, !0) || t === 36 || t === 95;
2234
+ function tr(t) {
2235
+ return ae(t, !0) || t === 36 || t === 95;
2236
2236
  }
2237
2237
  v.regexp_eatRegExpIdentifierPart = function(t) {
2238
2238
  var e = t.pos, s = this.options.ecmaVersion >= 11, i = t.current(s);
2239
- return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), Zi(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2239
+ return t.advance(s), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, s) && (i = t.lastIntValue), sr(i) ? (t.lastIntValue = i, !0) : (t.pos = e, !1);
2240
2240
  };
2241
- function Zi(t) {
2242
- return ve(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
2241
+ function sr(t) {
2242
+ return be(t, !0) || t === 36 || t === 95 || t === 8204 || t === 8205;
2243
2243
  }
2244
2244
  v.regexp_eatAtomEscape = function(t) {
2245
2245
  return this.regexp_eatBackReference(t) || this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t) || t.switchN && this.regexp_eatKGroupName(t) ? !0 : (t.switchU && (t.current() === 99 && t.raise("Invalid unicode escape"), t.raise("Invalid escape")), !1);
@@ -2291,9 +2291,9 @@ v.regexp_eatControlEscape = function(t) {
2291
2291
  };
2292
2292
  v.regexp_eatControlLetter = function(t) {
2293
2293
  var e = t.current();
2294
- return js(e) ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2294
+ return Ds(e) ? (t.lastIntValue = e % 32, t.advance(), !0) : !1;
2295
2295
  };
2296
- function js(t) {
2296
+ function Ds(t) {
2297
2297
  return t >= 65 && t <= 90 || t >= 97 && t <= 122;
2298
2298
  }
2299
2299
  v.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
@@ -2328,13 +2328,13 @@ v.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
2328
2328
  ) && this.regexp_eatHexDigits(t) && t.eat(
2329
2329
  125
2330
2330
  /* } */
2331
- ) && er(t.lastIntValue))
2331
+ ) && ir(t.lastIntValue))
2332
2332
  return !0;
2333
2333
  i && t.raise("Invalid unicode escape"), t.pos = s;
2334
2334
  }
2335
2335
  return !1;
2336
2336
  };
2337
- function er(t) {
2337
+ function ir(t) {
2338
2338
  return t >= 0 && t <= 1114111;
2339
2339
  }
2340
2340
  v.regexp_eatIdentityEscape = function(t) {
@@ -2359,7 +2359,7 @@ v.regexp_eatDecimalEscape = function(t) {
2359
2359
  };
2360
2360
  v.regexp_eatCharacterClassEscape = function(t) {
2361
2361
  var e = t.current();
2362
- if (tr(e))
2362
+ if (rr(e))
2363
2363
  return t.lastIntValue = -1, t.advance(), !0;
2364
2364
  if (t.switchU && this.options.ecmaVersion >= 9 && (e === 80 || e === 112)) {
2365
2365
  if (t.lastIntValue = -1, t.advance(), t.eat(
@@ -2374,7 +2374,7 @@ v.regexp_eatCharacterClassEscape = function(t) {
2374
2374
  }
2375
2375
  return !1;
2376
2376
  };
2377
- function tr(t) {
2377
+ function rr(t) {
2378
2378
  return t === 100 || t === 68 || t === 115 || t === 83 || t === 119 || t === 87;
2379
2379
  }
2380
2380
  v.regexp_eatUnicodePropertyValueExpression = function(t) {
@@ -2403,21 +2403,21 @@ v.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
2403
2403
  };
2404
2404
  v.regexp_eatUnicodePropertyName = function(t) {
2405
2405
  var e = 0;
2406
- for (t.lastStringValue = ""; Ms(e = t.current()); )
2406
+ for (t.lastStringValue = ""; Bs(e = t.current()); )
2407
2407
  t.lastStringValue += Ge(e), t.advance();
2408
2408
  return t.lastStringValue !== "";
2409
2409
  };
2410
- function Ms(t) {
2411
- return js(t) || t === 95;
2410
+ function Bs(t) {
2411
+ return Ds(t) || t === 95;
2412
2412
  }
2413
2413
  v.regexp_eatUnicodePropertyValue = function(t) {
2414
2414
  var e = 0;
2415
- for (t.lastStringValue = ""; sr(e = t.current()); )
2415
+ for (t.lastStringValue = ""; nr(e = t.current()); )
2416
2416
  t.lastStringValue += Ge(e), t.advance();
2417
2417
  return t.lastStringValue !== "";
2418
2418
  };
2419
- function sr(t) {
2420
- return Ms(t) || et(t);
2419
+ function nr(t) {
2420
+ return Bs(t) || et(t);
2421
2421
  }
2422
2422
  v.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
2423
2423
  return this.regexp_eatUnicodePropertyValue(t);
@@ -2461,7 +2461,7 @@ v.regexp_eatClassAtom = function(t) {
2461
2461
  return !0;
2462
2462
  if (t.switchU) {
2463
2463
  var s = t.current();
2464
- (s === 99 || Hs(s)) && t.raise("Invalid class escape"), t.raise("Invalid escape");
2464
+ (s === 99 || Us(s)) && t.raise("Invalid class escape"), t.raise("Invalid escape");
2465
2465
  }
2466
2466
  t.pos = e;
2467
2467
  }
@@ -2517,14 +2517,14 @@ function et(t) {
2517
2517
  }
2518
2518
  v.regexp_eatHexDigits = function(t) {
2519
2519
  var e = t.pos, s = 0;
2520
- for (t.lastIntValue = 0; Ds(s = t.current()); )
2521
- t.lastIntValue = 16 * t.lastIntValue + Bs(s), t.advance();
2520
+ for (t.lastIntValue = 0; Hs(s = t.current()); )
2521
+ t.lastIntValue = 16 * t.lastIntValue + $s(s), t.advance();
2522
2522
  return t.pos !== e;
2523
2523
  };
2524
- function Ds(t) {
2524
+ function Hs(t) {
2525
2525
  return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
2526
2526
  }
2527
- function Bs(t) {
2527
+ function $s(t) {
2528
2528
  return t >= 65 && t <= 70 ? 10 + (t - 65) : t >= 97 && t <= 102 ? 10 + (t - 97) : t - 48;
2529
2529
  }
2530
2530
  v.regexp_eatLegacyOctalEscapeSequence = function(t) {
@@ -2541,9 +2541,9 @@ v.regexp_eatLegacyOctalEscapeSequence = function(t) {
2541
2541
  };
2542
2542
  v.regexp_eatOctalDigit = function(t) {
2543
2543
  var e = t.current();
2544
- return Hs(e) ? (t.lastIntValue = e - 48, t.advance(), !0) : (t.lastIntValue = 0, !1);
2544
+ return Us(e) ? (t.lastIntValue = e - 48, t.advance(), !0) : (t.lastIntValue = 0, !1);
2545
2545
  };
2546
- function Hs(t) {
2546
+ function Us(t) {
2547
2547
  return t >= 48 && t <= 55;
2548
2548
  }
2549
2549
  v.regexp_eatFixedHexDigits = function(t, e) {
@@ -2551,22 +2551,22 @@ v.regexp_eatFixedHexDigits = function(t, e) {
2551
2551
  t.lastIntValue = 0;
2552
2552
  for (var i = 0; i < e; ++i) {
2553
2553
  var r = t.current();
2554
- if (!Ds(r))
2554
+ if (!Hs(r))
2555
2555
  return t.pos = s, !1;
2556
- t.lastIntValue = 16 * t.lastIntValue + Bs(r), t.advance();
2556
+ t.lastIntValue = 16 * t.lastIntValue + $s(r), t.advance();
2557
2557
  }
2558
2558
  return !0;
2559
2559
  };
2560
- var jt = function(e) {
2560
+ var Mt = function(e) {
2561
2561
  this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Qe(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
2562
- }, _ = A.prototype;
2563
- _.next = function(t) {
2564
- !t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new jt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2562
+ }, S = A.prototype;
2563
+ S.next = function(t) {
2564
+ !t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Mt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2565
2565
  };
2566
- _.getToken = function() {
2567
- return this.next(), new jt(this);
2566
+ S.getToken = function() {
2567
+ return this.next(), new Mt(this);
2568
2568
  };
2569
- typeof Symbol < "u" && (_[Symbol.iterator] = function() {
2569
+ typeof Symbol < "u" && (S[Symbol.iterator] = function() {
2570
2570
  var t = this;
2571
2571
  return {
2572
2572
  next: function() {
@@ -2578,10 +2578,10 @@ typeof Symbol < "u" && (_[Symbol.iterator] = function() {
2578
2578
  }
2579
2579
  };
2580
2580
  });
2581
- _.curContext = function() {
2581
+ S.curContext = function() {
2582
2582
  return this.context[this.context.length - 1];
2583
2583
  };
2584
- _.nextToken = function() {
2584
+ S.nextToken = function() {
2585
2585
  var t = this.curContext();
2586
2586
  if ((!t || !t.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length)
2587
2587
  return this.finishToken(o.eof);
@@ -2589,17 +2589,17 @@ _.nextToken = function() {
2589
2589
  return t.override(this);
2590
2590
  this.readToken(this.fullCharCodeAtPos());
2591
2591
  };
2592
- _.readToken = function(t) {
2593
- return ne(t, this.options.ecmaVersion >= 6) || t === 92 ? this.readWord() : this.getTokenFromCode(t);
2592
+ S.readToken = function(t) {
2593
+ return ae(t, this.options.ecmaVersion >= 6) || t === 92 ? this.readWord() : this.getTokenFromCode(t);
2594
2594
  };
2595
- _.fullCharCodeAtPos = function() {
2595
+ S.fullCharCodeAtPos = function() {
2596
2596
  var t = this.input.charCodeAt(this.pos);
2597
2597
  if (t <= 55295 || t >= 57344)
2598
2598
  return t;
2599
2599
  var e = this.input.charCodeAt(this.pos + 1);
2600
2600
  return (t << 10) + e - 56613888;
2601
2601
  };
2602
- _.skipBlockComment = function() {
2602
+ S.skipBlockComment = function() {
2603
2603
  var t = this.options.onComment && this.curPosition(), e = this.pos, s = this.input.indexOf("*/", this.pos += 2);
2604
2604
  if (s === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = s + 2, this.options.locations) {
2605
2605
  Pe.lastIndex = e;
@@ -2615,7 +2615,7 @@ _.skipBlockComment = function() {
2615
2615
  this.curPosition()
2616
2616
  );
2617
2617
  };
2618
- _.skipLineComment = function(t) {
2618
+ S.skipLineComment = function(t) {
2619
2619
  for (var e = this.pos, s = this.options.onComment && this.curPosition(), i = this.input.charCodeAt(this.pos += t); this.pos < this.input.length && !Ve(i); )
2620
2620
  i = this.input.charCodeAt(++this.pos);
2621
2621
  this.options.onComment && this.options.onComment(
@@ -2627,7 +2627,7 @@ _.skipLineComment = function(t) {
2627
2627
  this.curPosition()
2628
2628
  );
2629
2629
  };
2630
- _.skipSpace = function() {
2630
+ S.skipSpace = function() {
2631
2631
  e: for (; this.pos < this.input.length; ) {
2632
2632
  var t = this.input.charCodeAt(this.pos);
2633
2633
  switch (t) {
@@ -2655,34 +2655,34 @@ _.skipSpace = function() {
2655
2655
  }
2656
2656
  break;
2657
2657
  default:
2658
- if (t > 8 && t < 14 || t >= 5760 && xs.test(String.fromCharCode(t)))
2658
+ if (t > 8 && t < 14 || t >= 5760 && bs.test(String.fromCharCode(t)))
2659
2659
  ++this.pos;
2660
2660
  else
2661
2661
  break e;
2662
2662
  }
2663
2663
  }
2664
2664
  };
2665
- _.finishToken = function(t, e) {
2665
+ S.finishToken = function(t, e) {
2666
2666
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2667
2667
  var s = this.type;
2668
2668
  this.type = t, this.value = e, this.updateContext(s);
2669
2669
  };
2670
- _.readToken_dot = function() {
2670
+ S.readToken_dot = function() {
2671
2671
  var t = this.input.charCodeAt(this.pos + 1);
2672
2672
  if (t >= 48 && t <= 57)
2673
2673
  return this.readNumber(!0);
2674
2674
  var e = this.input.charCodeAt(this.pos + 2);
2675
2675
  return this.options.ecmaVersion >= 6 && t === 46 && e === 46 ? (this.pos += 3, this.finishToken(o.ellipsis)) : (++this.pos, this.finishToken(o.dot));
2676
2676
  };
2677
- _.readToken_slash = function() {
2677
+ S.readToken_slash = function() {
2678
2678
  var t = this.input.charCodeAt(this.pos + 1);
2679
2679
  return this.exprAllowed ? (++this.pos, this.readRegexp()) : t === 61 ? this.finishOp(o.assign, 2) : this.finishOp(o.slash, 1);
2680
2680
  };
2681
- _.readToken_mult_modulo_exp = function(t) {
2681
+ S.readToken_mult_modulo_exp = function(t) {
2682
2682
  var e = this.input.charCodeAt(this.pos + 1), s = 1, i = t === 42 ? o.star : o.modulo;
2683
2683
  return this.options.ecmaVersion >= 7 && t === 42 && e === 42 && (++s, i = o.starstar, e = this.input.charCodeAt(this.pos + 2)), e === 61 ? this.finishOp(o.assign, s + 1) : this.finishOp(i, s);
2684
2684
  };
2685
- _.readToken_pipe_amp = function(t) {
2685
+ S.readToken_pipe_amp = function(t) {
2686
2686
  var e = this.input.charCodeAt(this.pos + 1);
2687
2687
  if (e === t) {
2688
2688
  if (this.options.ecmaVersion >= 12) {
@@ -2694,23 +2694,23 @@ _.readToken_pipe_amp = function(t) {
2694
2694
  }
2695
2695
  return e === 61 ? this.finishOp(o.assign, 2) : this.finishOp(t === 124 ? o.bitwiseOR : o.bitwiseAND, 1);
2696
2696
  };
2697
- _.readToken_caret = function() {
2697
+ S.readToken_caret = function() {
2698
2698
  var t = this.input.charCodeAt(this.pos + 1);
2699
2699
  return t === 61 ? this.finishOp(o.assign, 2) : this.finishOp(o.bitwiseXOR, 1);
2700
2700
  };
2701
- _.readToken_plus_min = function(t) {
2701
+ S.readToken_plus_min = function(t) {
2702
2702
  var e = this.input.charCodeAt(this.pos + 1);
2703
2703
  return e === t ? e === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || U.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(o.incDec, 2) : e === 61 ? this.finishOp(o.assign, 2) : this.finishOp(o.plusMin, 1);
2704
2704
  };
2705
- _.readToken_lt_gt = function(t) {
2705
+ S.readToken_lt_gt = function(t) {
2706
2706
  var e = this.input.charCodeAt(this.pos + 1), s = 1;
2707
2707
  return e === t ? (s = t === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + s) === 61 ? this.finishOp(o.assign, s + 1) : this.finishOp(o.bitShift, s)) : e === 33 && t === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (e === 61 && (s = 2), this.finishOp(o.relational, s));
2708
2708
  };
2709
- _.readToken_eq_excl = function(t) {
2709
+ S.readToken_eq_excl = function(t) {
2710
2710
  var e = this.input.charCodeAt(this.pos + 1);
2711
2711
  return e === 61 ? this.finishOp(o.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : t === 61 && e === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(o.arrow)) : this.finishOp(t === 61 ? o.eq : o.prefix, 1);
2712
2712
  };
2713
- _.readToken_question = function() {
2713
+ S.readToken_question = function() {
2714
2714
  var t = this.options.ecmaVersion;
2715
2715
  if (t >= 11) {
2716
2716
  var e = this.input.charCodeAt(this.pos + 1);
@@ -2730,7 +2730,7 @@ _.readToken_question = function() {
2730
2730
  }
2731
2731
  return this.finishOp(o.question, 1);
2732
2732
  };
2733
- _.getTokenFromCode = function(t) {
2733
+ S.getTokenFromCode = function(t) {
2734
2734
  switch (t) {
2735
2735
  // The interpretation of a dot depends on whether it is followed
2736
2736
  // by a digit or another two dots.
@@ -2813,13 +2813,13 @@ _.getTokenFromCode = function(t) {
2813
2813
  case 126:
2814
2814
  return this.finishOp(o.prefix, 1);
2815
2815
  }
2816
- this.raise(this.pos, "Unexpected character '" + Mt(t) + "'");
2816
+ this.raise(this.pos, "Unexpected character '" + Dt(t) + "'");
2817
2817
  };
2818
- _.finishOp = function(t, e) {
2818
+ S.finishOp = function(t, e) {
2819
2819
  var s = this.input.slice(this.pos, this.pos + e);
2820
2820
  return this.pos += e, this.finishToken(t, s);
2821
2821
  };
2822
- _.readRegexp = function() {
2822
+ S.readRegexp = function() {
2823
2823
  for (var t, e, s = this.pos; ; ) {
2824
2824
  this.pos >= this.input.length && this.raise(s, "Unterminated regular expression");
2825
2825
  var i = this.input.charAt(this.pos);
@@ -2849,7 +2849,7 @@ _.readRegexp = function() {
2849
2849
  }
2850
2850
  return this.finishToken(o.regexp, { pattern: r, flags: a, value: c });
2851
2851
  };
2852
- _.readInt = function(t, e, s) {
2852
+ S.readInt = function(t, e, s) {
2853
2853
  for (var i = this.options.ecmaVersion >= 12 && e === void 0, r = s && this.input.charCodeAt(this.pos) === 48, n = this.pos, a = 0, u = 0, c = 0, l = e ?? 1 / 0; c < l; ++c, ++this.pos) {
2854
2854
  var h = this.input.charCodeAt(this.pos), p = void 0;
2855
2855
  if (i && h === 95) {
@@ -2862,33 +2862,33 @@ _.readInt = function(t, e, s) {
2862
2862
  }
2863
2863
  return i && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || e != null && this.pos - n !== e ? null : a;
2864
2864
  };
2865
- function ir(t, e) {
2865
+ function ar(t, e) {
2866
2866
  return e ? parseInt(t, 8) : parseFloat(t.replace(/_/g, ""));
2867
2867
  }
2868
- function $s(t) {
2868
+ function Gs(t) {
2869
2869
  return typeof BigInt != "function" ? null : BigInt(t.replace(/_/g, ""));
2870
2870
  }
2871
- _.readRadixNumber = function(t) {
2871
+ S.readRadixNumber = function(t) {
2872
2872
  var e = this.pos;
2873
2873
  this.pos += 2;
2874
2874
  var s = this.readInt(t);
2875
- return s == null && this.raise(this.start + 2, "Expected number in radix " + t), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (s = $s(this.input.slice(e, this.pos)), ++this.pos) : ne(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, s);
2875
+ return s == null && this.raise(this.start + 2, "Expected number in radix " + t), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (s = Gs(this.input.slice(e, this.pos)), ++this.pos) : ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, s);
2876
2876
  };
2877
- _.readNumber = function(t) {
2877
+ S.readNumber = function(t) {
2878
2878
  var e = this.pos;
2879
2879
  !t && this.readInt(10, void 0, !0) === null && this.raise(e, "Invalid number");
2880
2880
  var s = this.pos - e >= 2 && this.input.charCodeAt(e) === 48;
2881
2881
  s && this.strict && this.raise(e, "Invalid number");
2882
2882
  var i = this.input.charCodeAt(this.pos);
2883
2883
  if (!s && !t && this.options.ecmaVersion >= 11 && i === 110) {
2884
- var r = $s(this.input.slice(e, this.pos));
2885
- return ++this.pos, ne(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, r);
2884
+ var r = Gs(this.input.slice(e, this.pos));
2885
+ return ++this.pos, ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, r);
2886
2886
  }
2887
- s && /[89]/.test(this.input.slice(e, this.pos)) && (s = !1), i === 46 && !s && (++this.pos, this.readInt(10), i = this.input.charCodeAt(this.pos)), (i === 69 || i === 101) && !s && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(10) === null && this.raise(e, "Invalid number")), ne(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2888
- var n = ir(this.input.slice(e, this.pos), s);
2887
+ s && /[89]/.test(this.input.slice(e, this.pos)) && (s = !1), i === 46 && !s && (++this.pos, this.readInt(10), i = this.input.charCodeAt(this.pos)), (i === 69 || i === 101) && !s && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(10) === null && this.raise(e, "Invalid number")), ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2888
+ var n = ar(this.input.slice(e, this.pos), s);
2889
2889
  return this.finishToken(o.num, n);
2890
2890
  };
2891
- _.readCodePoint = function() {
2891
+ S.readCodePoint = function() {
2892
2892
  var t = this.input.charCodeAt(this.pos), e;
2893
2893
  if (t === 123) {
2894
2894
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -2898,10 +2898,10 @@ _.readCodePoint = function() {
2898
2898
  e = this.readHexChar(4);
2899
2899
  return e;
2900
2900
  };
2901
- function Mt(t) {
2901
+ function Dt(t) {
2902
2902
  return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode((t >> 10) + 55296, (t & 1023) + 56320));
2903
2903
  }
2904
- _.readString = function(t) {
2904
+ S.readString = function(t) {
2905
2905
  for (var e = "", s = ++this.pos; ; ) {
2906
2906
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2907
2907
  var i = this.input.charCodeAt(this.pos);
@@ -2911,25 +2911,25 @@ _.readString = function(t) {
2911
2911
  }
2912
2912
  return e += this.input.slice(s, this.pos++), this.finishToken(o.string, e);
2913
2913
  };
2914
- var Us = {};
2915
- _.tryReadTemplateToken = function() {
2914
+ var qs = {};
2915
+ S.tryReadTemplateToken = function() {
2916
2916
  this.inTemplateElement = !0;
2917
2917
  try {
2918
2918
  this.readTmplToken();
2919
2919
  } catch (t) {
2920
- if (t === Us)
2920
+ if (t === qs)
2921
2921
  this.readInvalidTemplateToken();
2922
2922
  else
2923
2923
  throw t;
2924
2924
  }
2925
2925
  this.inTemplateElement = !1;
2926
2926
  };
2927
- _.invalidStringToken = function(t, e) {
2927
+ S.invalidStringToken = function(t, e) {
2928
2928
  if (this.inTemplateElement && this.options.ecmaVersion >= 9)
2929
- throw Us;
2929
+ throw qs;
2930
2930
  this.raise(t, e);
2931
2931
  };
2932
- _.readTmplToken = function() {
2932
+ S.readTmplToken = function() {
2933
2933
  for (var t = "", e = this.pos; ; ) {
2934
2934
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2935
2935
  var s = this.input.charCodeAt(this.pos);
@@ -2954,7 +2954,7 @@ _.readTmplToken = function() {
2954
2954
  ++this.pos;
2955
2955
  }
2956
2956
  };
2957
- _.readInvalidTemplateToken = function() {
2957
+ S.readInvalidTemplateToken = function() {
2958
2958
  for (; this.pos < this.input.length; this.pos++)
2959
2959
  switch (this.input[this.pos]) {
2960
2960
  case "\\":
@@ -2969,7 +2969,7 @@ _.readInvalidTemplateToken = function() {
2969
2969
  }
2970
2970
  this.raise(this.start, "Unterminated template");
2971
2971
  };
2972
- _.readEscapedChar = function(t) {
2972
+ S.readEscapedChar = function(t) {
2973
2973
  var e = this.input.charCodeAt(++this.pos);
2974
2974
  switch (++this.pos, e) {
2975
2975
  case 110:
@@ -2983,7 +2983,7 @@ _.readEscapedChar = function(t) {
2983
2983
  return String.fromCharCode(this.readHexChar(2));
2984
2984
  // 'x'
2985
2985
  case 117:
2986
- return Mt(this.readCodePoint());
2986
+ return Dt(this.readCodePoint());
2987
2987
  // 'u'
2988
2988
  case 116:
2989
2989
  return " ";
@@ -3022,100 +3022,100 @@ _.readEscapedChar = function(t) {
3022
3022
  return Ve(e) ? "" : String.fromCharCode(e);
3023
3023
  }
3024
3024
  };
3025
- _.readHexChar = function(t) {
3025
+ S.readHexChar = function(t) {
3026
3026
  var e = this.pos, s = this.readInt(16, t);
3027
3027
  return s === null && this.invalidStringToken(e, "Bad character escape sequence"), s;
3028
3028
  };
3029
- _.readWord1 = function() {
3029
+ S.readWord1 = function() {
3030
3030
  this.containsEsc = !1;
3031
3031
  for (var t = "", e = !0, s = this.pos, i = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
3032
3032
  var r = this.fullCharCodeAtPos();
3033
- if (ve(r, i))
3033
+ if (be(r, i))
3034
3034
  this.pos += r <= 65535 ? 1 : 2;
3035
3035
  else if (r === 92) {
3036
3036
  this.containsEsc = !0, t += this.input.slice(s, this.pos);
3037
3037
  var n = this.pos;
3038
3038
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3039
3039
  var a = this.readCodePoint();
3040
- (e ? ne : ve)(a, i) || this.invalidStringToken(n, "Invalid Unicode escape"), t += Mt(a), s = this.pos;
3040
+ (e ? ae : be)(a, i) || this.invalidStringToken(n, "Invalid Unicode escape"), t += Dt(a), s = this.pos;
3041
3041
  } else
3042
3042
  break;
3043
3043
  e = !1;
3044
3044
  }
3045
3045
  return t + this.input.slice(s, this.pos);
3046
3046
  };
3047
- _.readWord = function() {
3047
+ S.readWord = function() {
3048
3048
  var t = this.readWord1(), e = o.name;
3049
- return this.keywords.test(t) && (e = Tt[t]), this.finishToken(e, t);
3049
+ return this.keywords.test(t) && (e = Nt[t]), this.finishToken(e, t);
3050
3050
  };
3051
- var rr = "7.4.1";
3051
+ var or = "7.4.1";
3052
3052
  A.acorn = {
3053
3053
  Parser: A,
3054
- version: rr,
3055
- defaultOptions: bt,
3054
+ version: or,
3055
+ defaultOptions: yt,
3056
3056
  Position: Te,
3057
3057
  SourceLocation: Qe,
3058
- getLineInfo: bs,
3059
- Node: Ft,
3058
+ getLineInfo: _s,
3059
+ Node: Lt,
3060
3060
  TokenType: E,
3061
3061
  tokTypes: o,
3062
- keywordTypes: Tt,
3063
- TokContext: W,
3064
- tokContexts: k,
3065
- isIdentifierChar: ve,
3066
- isIdentifierStart: ne,
3067
- Token: jt,
3062
+ keywordTypes: Nt,
3063
+ TokContext: q,
3064
+ tokContexts: I,
3065
+ isIdentifierChar: be,
3066
+ isIdentifierStart: ae,
3067
+ Token: Mt,
3068
3068
  isNewLine: Ve,
3069
3069
  lineBreak: U,
3070
3070
  lineBreakG: Pe,
3071
- nonASCIIwhitespace: xs
3071
+ nonASCIIwhitespace: bs
3072
3072
  };
3073
- function nr(t, e) {
3073
+ function ur(t, e) {
3074
3074
  return A.parse(t, e);
3075
3075
  }
3076
- class ar extends Error {
3076
+ class cr extends Error {
3077
3077
  }
3078
- class or extends SyntaxError {
3078
+ class lr extends SyntaxError {
3079
3079
  }
3080
- class _t extends ReferenceError {
3080
+ class St extends ReferenceError {
3081
3081
  }
3082
- class ur extends TypeError {
3082
+ class hr extends TypeError {
3083
3083
  }
3084
- class Gs extends ar {
3084
+ class Ws extends cr {
3085
3085
  }
3086
- class cr extends or {
3086
+ class pr extends lr {
3087
3087
  }
3088
- class K extends _t {
3088
+ class W extends St {
3089
3089
  }
3090
3090
  const V = {
3091
- ExecutionTimeOutError: [3002, "Script execution timed out after %0ms", Gs],
3092
- NodeTypeSyntaxError: [1001, "Unknown node type: %0", K],
3093
- BinaryOperatorSyntaxError: [1002, "Unknown binary operator: %0", K],
3091
+ ExecutionTimeOutError: [3002, "Script execution timed out after %0ms", Ws],
3092
+ NodeTypeSyntaxError: [1001, "Unknown node type: %0", W],
3093
+ BinaryOperatorSyntaxError: [1002, "Unknown binary operator: %0", W],
3094
3094
  LogicalOperatorSyntaxError: [
3095
3095
  1003,
3096
3096
  "Unknown logical operator: %0",
3097
- K
3097
+ W
3098
3098
  ],
3099
- UnaryOperatorSyntaxError: [1004, "Unknown unary operator: %0", K],
3100
- UpdateOperatorSyntaxError: [1005, "Unknown update operator: %0", K],
3099
+ UnaryOperatorSyntaxError: [1004, "Unknown unary operator: %0", W],
3100
+ UpdateOperatorSyntaxError: [1005, "Unknown update operator: %0", W],
3101
3101
  ObjectStructureSyntaxError: [
3102
3102
  1006,
3103
3103
  "Unknown object structure: %0",
3104
- K
3104
+ W
3105
3105
  ],
3106
3106
  AssignmentExpressionSyntaxError: [
3107
3107
  1007,
3108
3108
  "Unknown assignment expression: %0",
3109
- K
3109
+ W
3110
3110
  ],
3111
- VariableTypeSyntaxError: [1008, "Unknown variable type: %0", K],
3112
- ParamTypeSyntaxError: [1009, "Unknown param type: %0", K],
3113
- AssignmentTypeSyntaxError: [1010, "Unknown assignment type: %0", K],
3114
- FunctionUndefinedReferenceError: [2001, "%0 is not a function", _t],
3115
- VariableUndefinedReferenceError: [2002, "%0 is not defined", _t],
3116
- IsNotConstructor: [2003, "%0 is not a constructor", ur]
3117
- }, lr = "1.4.8";
3118
- function es(t, e) {
3111
+ VariableTypeSyntaxError: [1008, "Unknown variable type: %0", W],
3112
+ ParamTypeSyntaxError: [1009, "Unknown param type: %0", W],
3113
+ AssignmentTypeSyntaxError: [1010, "Unknown assignment type: %0", W],
3114
+ FunctionUndefinedReferenceError: [2001, "%0 is not a function", St],
3115
+ VariableUndefinedReferenceError: [2002, "%0 is not defined", St],
3116
+ IsNotConstructor: [2003, "%0 is not a constructor", hr]
3117
+ }, fr = "1.4.8";
3118
+ function ts(t, e) {
3119
3119
  Object.defineProperty(t, "name", {
3120
3120
  value: e,
3121
3121
  writable: !1,
@@ -3123,11 +3123,11 @@ function es(t, e) {
3123
3123
  configurable: !0
3124
3124
  });
3125
3125
  }
3126
- const hr = Object.prototype.hasOwnProperty, fe = Symbol("Break"), de = Symbol("Continue"), ts = Symbol("DefaultCase"), R = Symbol("EmptyStatementReturn"), ss = Symbol("WithScopeName"), is = Symbol("SuperScopeName"), rs = Symbol("RootScopeName"), ns = Symbol("GlobalScopeName");
3127
- function ct(t) {
3126
+ const dr = Object.prototype.hasOwnProperty, de = Symbol("Break"), me = Symbol("Continue"), ss = Symbol("DefaultCase"), R = Symbol("EmptyStatementReturn"), is = Symbol("WithScopeName"), rs = Symbol("SuperScopeName"), ns = Symbol("RootScopeName"), as = Symbol("GlobalScopeName");
3127
+ function lt(t) {
3128
3128
  return typeof t == "function";
3129
3129
  }
3130
- class re {
3130
+ class ne {
3131
3131
  constructor(e) {
3132
3132
  this.interpreter = e;
3133
3133
  }
@@ -3151,8 +3151,8 @@ class re {
3151
3151
  };
3152
3152
  }
3153
3153
  }
3154
- function Dt(t, e, s = !0) {
3155
- if (!(t instanceof re))
3154
+ function Bt(t, e, s = !0) {
3155
+ if (!(t instanceof ne))
3156
3156
  throw new Error("Illegal call");
3157
3157
  if (typeof e != "string")
3158
3158
  return e;
@@ -3166,14 +3166,14 @@ function Dt(t, e, s = !0) {
3166
3166
  }, a = s ? i.getGlobalScope() : i.getCurrentScope();
3167
3167
  return new j(a, n).evaluate(e);
3168
3168
  }
3169
- Object.defineProperty(Dt, "__IS_EVAL_FUNC", {
3169
+ Object.defineProperty(Bt, "__IS_EVAL_FUNC", {
3170
3170
  value: !0,
3171
3171
  writable: !1,
3172
3172
  enumerable: !1,
3173
3173
  configurable: !1
3174
3174
  });
3175
- function Bt(t, ...e) {
3176
- if (!(t instanceof re))
3175
+ function Ht(t, ...e) {
3176
+ if (!(t instanceof ne))
3177
3177
  throw new Error("Illegal call");
3178
3178
  const s = t.generator(), i = e.pop(), r = new j(s.getGlobalScope(), s.getOptions()), n = `
3179
3179
  (function anonymous(${e.join(",")}){
@@ -3182,7 +3182,7 @@ function Bt(t, ...e) {
3182
3182
  `;
3183
3183
  return r.evaluate(n);
3184
3184
  }
3185
- Object.defineProperty(Bt, "__IS_FUNCTION_FUNC", {
3185
+ Object.defineProperty(Ht, "__IS_FUNCTION_FUNC", {
3186
3186
  value: !0,
3187
3187
  writable: !1,
3188
3188
  enumerable: !1,
@@ -3198,22 +3198,22 @@ class ue {
3198
3198
  this.value = e;
3199
3199
  }
3200
3200
  }
3201
- class ie {
3201
+ class re {
3202
3202
  constructor(e) {
3203
3203
  this.value = e;
3204
3204
  }
3205
3205
  }
3206
- class me {
3206
+ class ge {
3207
3207
  constructor(e, s = null, i) {
3208
3208
  this.name = i, this.parent = s, this.data = e, this.labelStack = [];
3209
3209
  }
3210
3210
  }
3211
3211
  function De() {
3212
3212
  }
3213
- function pr(t = null, e) {
3214
- return new me(/* @__PURE__ */ Object.create(null), t, e);
3213
+ function mr(t = null, e) {
3214
+ return new ge(/* @__PURE__ */ Object.create(null), t, e);
3215
3215
  }
3216
- function fr(t) {
3216
+ function gr(t) {
3217
3217
  return Object.create(t);
3218
3218
  }
3219
3219
  const Y = {
@@ -3245,8 +3245,8 @@ const Y = {
3245
3245
  encodeURIComponent,
3246
3246
  escape,
3247
3247
  unescape,
3248
- eval: Dt,
3249
- Function: Bt
3248
+ eval: Bt,
3249
+ Function: Ht
3250
3250
  };
3251
3251
  typeof JSON < "u" && (Y.JSON = JSON);
3252
3252
  typeof Promise < "u" && (Y.Promise = Promise);
@@ -3269,12 +3269,12 @@ class j {
3269
3269
  }
3270
3270
  initEnvironment(e) {
3271
3271
  let s;
3272
- if (e instanceof me)
3272
+ if (e instanceof ge)
3273
3273
  s = e;
3274
3274
  else {
3275
3275
  let r = null;
3276
3276
  const n = this.createSuperScope(e);
3277
- this.options.rootContext && (r = new me(fr(this.options.rootContext), n, rs)), s = new me(e, r || n, ns);
3277
+ this.options.rootContext && (r = new ge(gr(this.options.rootContext), n, ns)), s = new ge(e, r || n, as);
3278
3278
  }
3279
3279
  this.globalScope = s, this.currentScope = this.globalScope, this.globalContext = s.data, this.currentContext = s.data, this.collectDeclVars = /* @__PURE__ */ Object.create(null), this.collectDeclFuncs = /* @__PURE__ */ Object.create(null), this.execStartTime = Date.now(), this.execEndTime = this.execStartTime;
3280
3280
  const i = this.options._initEnv;
@@ -3302,13 +3302,13 @@ class j {
3302
3302
  return this.currentContext;
3303
3303
  }
3304
3304
  isInterruptThrow(e) {
3305
- return e instanceof Gs || e instanceof K || e instanceof cr;
3305
+ return e instanceof Ws || e instanceof W || e instanceof pr;
3306
3306
  }
3307
3307
  createSuperScope(e) {
3308
3308
  let s = Object.assign({}, Y);
3309
3309
  return Object.keys(s).forEach((r) => {
3310
3310
  r in e && delete s[r];
3311
- }), new me(s, null, is);
3311
+ }), new ge(s, null, rs);
3312
3312
  }
3313
3313
  setCurrentContext(e) {
3314
3314
  this.currentContext = e;
@@ -3319,7 +3319,7 @@ class j {
3319
3319
  evaluate(e = "") {
3320
3320
  let s;
3321
3321
  if (e)
3322
- return s = nr(e, {
3322
+ return s = ur(e, {
3323
3323
  ranges: !0,
3324
3324
  locations: !0,
3325
3325
  ecmaVersion: this.options.ecmaVersion || j.ecmaVersion
@@ -3629,19 +3629,19 @@ class j {
3629
3629
  }), () => {
3630
3630
  const n = {}, a = s.length;
3631
3631
  for (let u = 0; u < a; u++) {
3632
- const c = s[u], l = c.key, h = r[l], p = h.init ? h.init() : void 0, f = h.get ? h.get() : function() {
3633
- }, d = h.set ? h.set() : function(m) {
3632
+ const c = s[u], l = c.key, h = r[l], p = h.init ? h.init() : void 0, d = h.get ? h.get() : function() {
3633
+ }, f = h.set ? h.set() : function(m) {
3634
3634
  };
3635
3635
  if ("set" in h || "get" in h)
3636
3636
  Object.defineProperty(n, l, {
3637
3637
  configurable: !0,
3638
3638
  enumerable: !0,
3639
- get: f,
3640
- set: d
3639
+ get: d,
3640
+ set: f
3641
3641
  });
3642
3642
  else {
3643
3643
  const m = c.property, g = m.kind;
3644
- m.key.type === "Identifier" && m.value.type === "FunctionExpression" && g === "init" && !m.value.id && es(p, m.key.name), n[l] = p;
3644
+ m.key.type === "Identifier" && m.value.type === "FunctionExpression" && g === "init" && !m.value.id && ts(p, m.key.name), n[l] = p;
3645
3645
  }
3646
3646
  }
3647
3647
  return n;
@@ -3668,11 +3668,11 @@ class j {
3668
3668
  const s = this.createClosure(e.object), i = this.createMemberKeyGetter(e), r = this.source;
3669
3669
  return () => {
3670
3670
  const a = s(), u = i(), c = this.safeObjectGet(a, u, e);
3671
- if (!c || !ct(c)) {
3671
+ if (!c || !lt(c)) {
3672
3672
  const l = r.slice(e.start, e.end);
3673
3673
  throw this.createInternalThrowError(V.FunctionUndefinedReferenceError, l, e);
3674
3674
  }
3675
- return c.__IS_EVAL_FUNC ? (l) => c(new re(this), l, !0) : c.__IS_FUNCTION_FUNC ? (...l) => c(new re(this), ...l) : c.bind(a);
3675
+ return c.__IS_EVAL_FUNC ? (l) => c(new ne(this), l, !0) : c.__IS_FUNCTION_FUNC ? (...l) => c(new ne(this), ...l) : c.bind(a);
3676
3676
  };
3677
3677
  default:
3678
3678
  const n = this.createClosure(e);
@@ -3680,23 +3680,23 @@ class j {
3680
3680
  let a = "";
3681
3681
  e.type === "Identifier" && (a = e.name);
3682
3682
  const u = n();
3683
- if (!u || !ct(u))
3683
+ if (!u || !lt(u))
3684
3684
  throw this.createInternalThrowError(V.FunctionUndefinedReferenceError, a, e);
3685
3685
  if (e.type === "Identifier" && u.__IS_EVAL_FUNC && a === "eval")
3686
3686
  return (l) => {
3687
- const h = this.getScopeFromName(a, this.getCurrentScope()), p = h.name === is || // !scope.parent || // super scope
3688
- h.name === ns || // this.globalScope === scope ||
3689
- h.name === rs;
3690
- return u(new re(this), l, !p);
3687
+ const h = this.getScopeFromName(a, this.getCurrentScope()), p = h.name === rs || // !scope.parent || // super scope
3688
+ h.name === as || // this.globalScope === scope ||
3689
+ h.name === ns;
3690
+ return u(new ne(this), l, !p);
3691
3691
  };
3692
3692
  if (u.__IS_EVAL_FUNC)
3693
- return (l) => u(new re(this), l, !0);
3693
+ return (l) => u(new ne(this), l, !0);
3694
3694
  if (u.__IS_FUNCTION_FUNC)
3695
- return (...l) => u(new re(this), ...l);
3695
+ return (...l) => u(new ne(this), ...l);
3696
3696
  let c = this.options.globalContextInFunction;
3697
3697
  if (e.type === "Identifier") {
3698
3698
  const l = this.getIdentifierScope(e);
3699
- l.name === ss && (c = l.data);
3699
+ l.name === is && (c = l.data);
3700
3700
  }
3701
3701
  return u.bind(c);
3702
3702
  };
@@ -3711,36 +3711,36 @@ class j {
3711
3711
  functionExpressionHandler(e) {
3712
3712
  const s = this, i = this.source, r = this.collectDeclVars, n = this.collectDeclFuncs;
3713
3713
  this.collectDeclVars = /* @__PURE__ */ Object.create(null), this.collectDeclFuncs = /* @__PURE__ */ Object.create(null);
3714
- const a = e.id ? e.id.name : "", u = e.params.length, c = e.params.map((f) => this.createParamNameGetter(f)), l = this.createClosure(e.body), h = this.collectDeclVars, p = this.collectDeclFuncs;
3714
+ const a = e.id ? e.id.name : "", u = e.params.length, c = e.params.map((d) => this.createParamNameGetter(d)), l = this.createClosure(e.body), h = this.collectDeclVars, p = this.collectDeclFuncs;
3715
3715
  return this.collectDeclVars = r, this.collectDeclFuncs = n, () => {
3716
- const f = s.getCurrentScope(), d = function(...m) {
3716
+ const d = s.getCurrentScope(), f = function(...m) {
3717
3717
  s.callStack.push(`${a}`);
3718
- const g = s.getCurrentScope(), x = pr(f, `FunctionScope(${a})`);
3719
- s.setCurrentScope(x), s.addDeclarationsToScope(h, p, x), a && (x.data[a] = d), x.data.arguments = arguments, c.forEach((N, w) => {
3718
+ const g = s.getCurrentScope(), x = mr(d, `FunctionScope(${a})`);
3719
+ s.setCurrentScope(x), s.addDeclarationsToScope(h, p, x), a && (x.data[a] = f), x.data.arguments = arguments, c.forEach((N, w) => {
3720
3720
  x.data[N()] = m[w];
3721
3721
  });
3722
- const S = s.getCurrentContext();
3722
+ const b = s.getCurrentContext();
3723
3723
  s.setCurrentContext(this);
3724
- const I = l();
3725
- if (s.setCurrentContext(S), s.setCurrentScope(g), s.callStack.pop(), I instanceof Q)
3726
- return I.value;
3724
+ const k = l();
3725
+ if (s.setCurrentContext(b), s.setCurrentScope(g), s.callStack.pop(), k instanceof Q)
3726
+ return k.value;
3727
3727
  };
3728
- return es(d, a), Object.defineProperty(d, "length", {
3728
+ return ts(f, a), Object.defineProperty(f, "length", {
3729
3729
  value: u,
3730
3730
  writable: !1,
3731
3731
  enumerable: !1,
3732
3732
  configurable: !0
3733
- }), Object.defineProperty(d, "toString", {
3733
+ }), Object.defineProperty(f, "toString", {
3734
3734
  value: () => i.slice(e.start, e.end),
3735
3735
  writable: !0,
3736
3736
  configurable: !0,
3737
3737
  enumerable: !1
3738
- }), Object.defineProperty(d, "valueOf", {
3738
+ }), Object.defineProperty(f, "valueOf", {
3739
3739
  value: () => i.slice(e.start, e.end),
3740
3740
  writable: !0,
3741
3741
  configurable: !0,
3742
3742
  enumerable: !1
3743
- }), d;
3743
+ }), f;
3744
3744
  };
3745
3745
  }
3746
3746
  // new Ctrl()
@@ -3748,11 +3748,11 @@ class j {
3748
3748
  const s = this.source, i = this.createClosure(e.callee), r = e.arguments.map((n) => this.createClosure(n));
3749
3749
  return () => {
3750
3750
  const n = i();
3751
- if (!ct(n) || n.__IS_EVAL_FUNC) {
3751
+ if (!lt(n) || n.__IS_EVAL_FUNC) {
3752
3752
  const a = e.callee, u = s.slice(a.start, a.end);
3753
3753
  throw this.createInternalThrowError(V.IsNotConstructor, u, e);
3754
3754
  }
3755
- return n.__IS_FUNCTION_FUNC ? n(new re(this), ...r.map((a) => a())) : new n(...r.map((a) => a()));
3755
+ return n.__IS_FUNCTION_FUNC ? n(new ne(this), ...r.map((a) => a())) : new n(...r.map((a) => a()));
3756
3756
  };
3757
3757
  }
3758
3758
  // a.b a['b']
@@ -3891,7 +3891,7 @@ class j {
3891
3891
  let i = R;
3892
3892
  for (let r = 0; r < s.length; r++) {
3893
3893
  const n = s[r], a = this.setValue(n());
3894
- if (a !== R && (i = a, i instanceof Q || i instanceof ue || i instanceof ie || i === fe || i === de))
3894
+ if (a !== R && (i = a, i instanceof Q || i instanceof ue || i instanceof re || i === de || i === me))
3895
3895
  break;
3896
3896
  }
3897
3897
  return i;
@@ -3930,14 +3930,14 @@ class j {
3930
3930
  for (a && a.type === "LabeledStatement" && (u = a.label.name), s(); l || i(); r()) {
3931
3931
  l = !1;
3932
3932
  const h = this.setValue(n());
3933
- if (!(h === R || h === de)) {
3934
- if (h === fe)
3933
+ if (!(h === R || h === me)) {
3934
+ if (h === de)
3935
3935
  break;
3936
- if (c = h, c instanceof ie && c.value === u) {
3936
+ if (c = h, c instanceof re && c.value === u) {
3937
3937
  c = R;
3938
3938
  continue;
3939
3939
  }
3940
- if (c instanceof Q || c instanceof ue || c instanceof ie)
3940
+ if (c instanceof Q || c instanceof ue || c instanceof re)
3941
3941
  break;
3942
3942
  }
3943
3943
  }
@@ -3969,14 +3969,14 @@ class j {
3969
3969
  }
3970
3970
  })();
3971
3971
  const h = this.setValue(r());
3972
- if (!(h === R || h === de)) {
3973
- if (h === fe)
3972
+ if (!(h === R || h === me)) {
3973
+ if (h === de)
3974
3974
  break;
3975
- if (u = h, u instanceof ie && u.value === a) {
3975
+ if (u = h, u instanceof re && u.value === a) {
3976
3976
  u = R;
3977
3977
  continue;
3978
3978
  }
3979
- if (u instanceof Q || u instanceof ue || u instanceof ie)
3979
+ if (u instanceof Q || u instanceof ue || u instanceof re)
3980
3980
  break;
3981
3981
  }
3982
3982
  }
@@ -3986,7 +3986,7 @@ class j {
3986
3986
  withStatementHandler(e) {
3987
3987
  const s = this.createClosure(e.object), i = this.createClosure(e.body);
3988
3988
  return () => {
3989
- const r = s(), n = this.getCurrentScope(), a = new me(r, n, ss);
3989
+ const r = s(), n = this.getCurrentScope(), a = new ge(r, n, is);
3990
3990
  this.setCurrentScope(a);
3991
3991
  const u = this.setValue(i());
3992
3992
  return this.setCurrentScope(n), u;
@@ -4004,19 +4004,19 @@ class j {
4004
4004
  return () => {
4005
4005
  const n = this.getCurrentScope(), a = this.getCurrentContext(), u = n.labelStack.concat([]), c = this.callStack.concat([]);
4006
4006
  let l = R, h, p;
4007
- const f = () => {
4007
+ const d = () => {
4008
4008
  this.setCurrentScope(n), this.setCurrentContext(a), n.labelStack = u, this.callStack = c;
4009
4009
  };
4010
4010
  try {
4011
4011
  l = this.setValue(s()), l instanceof Q && (h = l);
4012
- } catch (d) {
4013
- if (f(), this.isInterruptThrow(d))
4014
- throw d;
4012
+ } catch (f) {
4013
+ if (d(), this.isInterruptThrow(f))
4014
+ throw f;
4015
4015
  if (i)
4016
4016
  try {
4017
- l = this.setValue(i(d)), l instanceof Q && (h = l);
4017
+ l = this.setValue(i(f)), l instanceof Q && (h = l);
4018
4018
  } catch (m) {
4019
- if (f(), this.isInterruptThrow(m))
4019
+ if (d(), this.isInterruptThrow(m))
4020
4020
  throw m;
4021
4021
  p = m;
4022
4022
  }
@@ -4024,10 +4024,10 @@ class j {
4024
4024
  if (r)
4025
4025
  try {
4026
4026
  l = r(), l instanceof Q && (h = l);
4027
- } catch (d) {
4028
- if (f(), this.isInterruptThrow(d))
4029
- throw d;
4030
- p = d;
4027
+ } catch (f) {
4028
+ if (d(), this.isInterruptThrow(f))
4029
+ throw f;
4030
+ p = f;
4031
4031
  }
4032
4032
  if (p)
4033
4033
  throw p;
@@ -4039,15 +4039,15 @@ class j {
4039
4039
  const s = this.createParamNameGetter(e.param), i = this.createClosure(e.body);
4040
4040
  return (r) => {
4041
4041
  let n;
4042
- const u = this.getCurrentScope().data, c = s(), l = hr.call(u, c), h = u[c];
4042
+ const u = this.getCurrentScope().data, c = s(), l = dr.call(u, c), h = u[c];
4043
4043
  return u[c] = r, n = i(), l ? u[c] = h : delete u[c], n;
4044
4044
  };
4045
4045
  }
4046
4046
  continueStatementHandler(e) {
4047
- return () => e.label ? new ie(e.label.name) : de;
4047
+ return () => e.label ? new re(e.label.name) : me;
4048
4048
  }
4049
4049
  breakStatementHandler(e) {
4050
- return () => e.label ? new ue(e.label.name) : fe;
4050
+ return () => e.label ? new ue(e.label.name) : de;
4051
4051
  }
4052
4052
  switchStatementHandler(e) {
4053
4053
  const s = this.createClosure(e.discriminant), i = e.cases.map((r) => this.switchCaseHandler(r));
@@ -4056,11 +4056,11 @@ class j {
4056
4056
  let n = !1, a, u, c = 0, l = !1;
4057
4057
  for (let h = 0; h < 2; h++) {
4058
4058
  for (let p = c; p < i.length; p++) {
4059
- const f = i[p](), d = f.testClosure();
4060
- if (!l && d === ts && (l = !0, c = p), n || d === r) {
4061
- if (n = !0, u = this.setValue(f.bodyClosure()), u === R)
4059
+ const d = i[p](), f = d.testClosure();
4060
+ if (!l && f === ss && (l = !0, c = p), n || f === r) {
4061
+ if (n = !0, u = this.setValue(d.bodyClosure()), u === R)
4062
4062
  continue;
4063
- if (u === fe || (a = u, a instanceof Q || a instanceof ue || a instanceof ie || a === de))
4063
+ if (u === de || (a = u, a instanceof Q || a instanceof ue || a instanceof re || a === me))
4064
4064
  break;
4065
4065
  }
4066
4066
  }
@@ -4073,7 +4073,7 @@ class j {
4073
4073
  };
4074
4074
  }
4075
4075
  switchCaseHandler(e) {
4076
- const s = e.test ? this.createClosure(e.test) : () => ts, i = this.createClosure({
4076
+ const s = e.test ? this.createClosure(e.test) : () => ss, i = this.createClosure({
4077
4077
  type: "BlockStatement",
4078
4078
  body: e.consequent
4079
4079
  });
@@ -4167,19 +4167,19 @@ class j {
4167
4167
  }
4168
4168
  setValue(e) {
4169
4169
  const s = this.callStack.length;
4170
- return this.isVarDeclMode || s || e === R || e === fe || e === de || e instanceof ue || e instanceof ie || (this.value = e instanceof Q ? e.value : e), e;
4170
+ return this.isVarDeclMode || s || e === R || e === de || e === me || e instanceof ue || e instanceof re || (this.value = e instanceof Q ? e.value : e), e;
4171
4171
  }
4172
4172
  getValue() {
4173
4173
  return this.value;
4174
4174
  }
4175
4175
  }
4176
- j.version = lr;
4177
- j.eval = Dt;
4178
- j.Function = Bt;
4176
+ j.version = fr;
4177
+ j.eval = Bt;
4178
+ j.Function = Ht;
4179
4179
  j.ecmaVersion = 5;
4180
4180
  j.globalContextInFunction = void 0;
4181
4181
  j.global = /* @__PURE__ */ Object.create(null);
4182
- const dr = (() => {
4182
+ const xr = (() => {
4183
4183
  try {
4184
4184
  return new Function("return 1")(), !0;
4185
4185
  } catch {
@@ -4196,7 +4196,7 @@ function qe(t) {
4196
4196
  } catch {
4197
4197
  }
4198
4198
  }
4199
- function mr(t, e) {
4199
+ function vr(t, e) {
4200
4200
  return new j(e, {
4201
4201
  rootContext: e,
4202
4202
  globalContextInFunction: e
@@ -4212,15 +4212,15 @@ function Re(t, e, s = !1, i = !1, r = !1) {
4212
4212
  const u = r ? `
4213
4213
  ${a}
4214
4214
  ` : `with(${s ? "{}" : "$scope || {}"}) { ${a} }`;
4215
- return dr ? new Function("$scope", u)(e) : mr(u, e);
4215
+ return xr ? new Function("$scope", u)(e) : vr(u, e);
4216
4216
  } catch (n) {
4217
- if (ge.error("parseExpression.error", n, t, e?.__self ?? e), n && (n.info = t.value), qe(n), i)
4217
+ if (xe.error("parseExpression.error", n, t, e?.__self ?? e), n && (n.info = t.value), qe(n), i)
4218
4218
  throw n;
4219
4219
  }
4220
4220
  }
4221
- function J(t, e, s = !1, i = !1, r = !1) {
4221
+ function z(t, e, s = !1, i = !1, r = !1) {
4222
4222
  const n = Re(t, e, s, i, r);
4223
- if (typeof n != "function" && (ge.error(
4223
+ if (typeof n != "function" && (xe.error(
4224
4224
  "parseFunction.error",
4225
4225
  "not a function",
4226
4226
  t,
@@ -4235,13 +4235,13 @@ function T(t) {
4235
4235
  function O(t) {
4236
4236
  return typeof t == "object" && t && t.type === "JSFunction";
4237
4237
  }
4238
- function gr(t) {
4238
+ function br(t) {
4239
4239
  return T(t) || O(t);
4240
4240
  }
4241
- function Rn(t) {
4242
- return gr(t) ? t.value.startsWith("{") ? `(${t.value})` : t.value : JSON.stringify(t);
4241
+ function On(t) {
4242
+ return br(t) ? t.value.startsWith("{") ? `(${t.value})` : t.value : JSON.stringify(t);
4243
4243
  }
4244
- const xr = {
4244
+ const yr = {
4245
4245
  session: !1,
4246
4246
  authKey: "Authorization",
4247
4247
  storageKey: "ACCESS_STORAGE",
@@ -4254,15 +4254,15 @@ const xr = {
4254
4254
  noPermissionMessage: "无权限访问该页面",
4255
4255
  appName: "",
4256
4256
  statusKey: "code"
4257
- }, qs = Symbol("access");
4258
- class Ht {
4257
+ }, Ks = Symbol("access");
4258
+ class $t {
4259
4259
  options;
4260
4260
  data = null;
4261
4261
  mode = P.Raw;
4262
4262
  interceptResponse = !0;
4263
4263
  isTipShowing = !1;
4264
4264
  constructor(e) {
4265
- this.options = Object.assign({}, xr, e), this.loadData();
4265
+ this.options = Object.assign({}, yr, e), this.loadData();
4266
4266
  }
4267
4267
  enableIntercept() {
4268
4268
  this.interceptResponse = !0;
@@ -4276,17 +4276,17 @@ class Ht {
4276
4276
  }
4277
4277
  login(e) {
4278
4278
  const { storageKey: s, storagePrefix: i, session: r, authKey: n } = this.options;
4279
- this.setData(e), this.data && (rt.save(s, e, {
4279
+ this.setData(e), this.data && (nt.save(s, e, {
4280
4280
  type: "local",
4281
4281
  prefix: i
4282
- }), r && nt.set(n, this.data.token));
4282
+ }), r && at.set(n, this.data.token));
4283
4283
  }
4284
4284
  clear() {
4285
4285
  const { storageKey: e, storagePrefix: s, session: i, authKey: r } = this.options;
4286
- this.data = null, rt.remove(e, {
4286
+ this.data = null, nt.remove(e, {
4287
4287
  type: "local",
4288
4288
  prefix: s
4289
- }), i && nt.remove(r);
4289
+ }), i && at.remove(r);
4290
4290
  }
4291
4291
  logout() {
4292
4292
  this.clear(), this.toLogin();
@@ -4301,19 +4301,19 @@ class Ht {
4301
4301
  const { appName: s } = this.options, { permissions: i = {} } = this.data || {};
4302
4302
  if (typeof e == "function")
4303
4303
  return e(i);
4304
- const r = qt(e);
4304
+ const r = Wt(e);
4305
4305
  return Array.isArray(i) ? r.every(
4306
4306
  (n) => i.includes(n) || i.includes(s + "." + n)
4307
4307
  ) : r.every((n) => i[n] || i[s + "." + n]);
4308
4308
  }
4309
4309
  some(e) {
4310
- const { appName: s } = this.options, { permissions: i = {} } = this.data || {}, r = qt(e);
4310
+ const { appName: s } = this.options, { permissions: i = {} } = this.data || {}, r = Wt(e);
4311
4311
  return Array.isArray(i) ? r.some(
4312
4312
  (n) => i.includes(n) || i.includes(s + "." + n)
4313
4313
  ) : r.some((n) => i[n] || i[s + "." + n]);
4314
4314
  }
4315
4315
  install(e) {
4316
- e.config.globalProperties.$access = this, e.provide(qs, this);
4316
+ e.config.globalProperties.$access = this, e.provide(Ks, this);
4317
4317
  }
4318
4318
  isAuthPath(e) {
4319
4319
  const { auth: s, isAuth: i } = this.options;
@@ -4334,7 +4334,7 @@ class Ht {
4334
4334
  setData(e) {
4335
4335
  const { privateKey: s } = this.options;
4336
4336
  if (Array.isArray(e) && s) {
4337
- const i = e.map((r) => Wt(r, s));
4337
+ const i = e.map((r) => Kt(r, s));
4338
4338
  try {
4339
4339
  this.data = JSON.parse(i.join(""));
4340
4340
  } catch (r) {
@@ -4344,7 +4344,7 @@ class Ht {
4344
4344
  }
4345
4345
  if (typeof e == "string")
4346
4346
  try {
4347
- const i = s ? Wt(e, s) : e;
4347
+ const i = s ? Kt(e, s) : e;
4348
4348
  i ? this.data = JSON.parse(i) : console.warn("RSA解密失败或登录信息缺失");
4349
4349
  } catch (i) {
4350
4350
  console.warn(i);
@@ -4353,7 +4353,7 @@ class Ht {
4353
4353
  this.data = e;
4354
4354
  }
4355
4355
  loadData() {
4356
- const { storageKey: e, storagePrefix: s } = this.options, i = rt.get(e, {
4356
+ const { storageKey: e, storagePrefix: s } = this.options, i = nt.get(e, {
4357
4357
  type: "local",
4358
4358
  prefix: s
4359
4359
  });
@@ -4361,7 +4361,7 @@ class Ht {
4361
4361
  }
4362
4362
  isLogined() {
4363
4363
  const { session: e, authKey: s } = this.options;
4364
- return e && s ? !!nt.get(s) : !!this.getToken();
4364
+ return e && s ? !!at.get(s) : !!this.getToken();
4365
4365
  }
4366
4366
  hasRoutePermission(e) {
4367
4367
  if (e.name === Ee) {
@@ -4381,7 +4381,7 @@ class Ht {
4381
4381
  return s();
4382
4382
  {
4383
4383
  const { noPermissionMessage: i = "无权限访问", unauthorized: r = !1 } = this.options;
4384
- return await this.showTip(i), z(r) ? (r(), s(!1)) : ee(r) ? s(r) : s(!1);
4384
+ return await this.showTip(i), K(r) ? (r(), s(!1)) : ee(r) ? s(r) : s(!1);
4385
4385
  }
4386
4386
  }
4387
4387
  s(!1), await Ie(0), this.toLogin();
@@ -4418,10 +4418,10 @@ class Ht {
4418
4418
  );
4419
4419
  }
4420
4420
  }
4421
- function vr() {
4422
- return It(qs, null);
4421
+ function _r() {
4422
+ return At(Ks, null);
4423
4423
  }
4424
- function Vn(t = {}) {
4424
+ function Fn(t = {}) {
4425
4425
  const {
4426
4426
  notify: e,
4427
4427
  loading: s,
@@ -4433,7 +4433,7 @@ function Vn(t = {}) {
4433
4433
  } = t;
4434
4434
  let c = null;
4435
4435
  return {
4436
- request: os({
4436
+ request: cs({
4437
4437
  adapter: t.axiosAdapter,
4438
4438
  settings: {
4439
4439
  type: "form",
@@ -4454,19 +4454,19 @@ function Vn(t = {}) {
4454
4454
  ...i
4455
4455
  }
4456
4456
  }),
4457
- jsonp: us,
4457
+ jsonp: ls,
4458
4458
  notify: e,
4459
4459
  loading: s,
4460
4460
  useTitle: a,
4461
4461
  alert: u,
4462
4462
  startupComponent: r,
4463
- access: n ? new Ht({ alert: u, ...n }) : void 0
4463
+ access: n ? new $t({ alert: u, ...n }) : void 0
4464
4464
  };
4465
4465
  }
4466
- function On(t = {}) {
4467
- return new Ht(t);
4466
+ function Ln(t = {}) {
4467
+ return new $t(t);
4468
4468
  }
4469
- function br(t, e) {
4469
+ function Sr(t, e) {
4470
4470
  const { jsonp: s, request: i } = e;
4471
4471
  if (t.method === "jsonp")
4472
4472
  return (r = {}) => s(t.url, {
@@ -4482,10 +4482,10 @@ function br(t, e) {
4482
4482
  headers: r
4483
4483
  }
4484
4484
  };
4485
- return (a, u) => (delete n.data, i.send(ni(n, u || {}, { data: a })));
4485
+ return (a, u) => (delete n.data, i.send(ui(n, u || {}, { data: a })));
4486
4486
  }
4487
4487
  }
4488
- function yr(t, e) {
4488
+ function Cr(t, e) {
4489
4489
  const { metaQuery: s } = e;
4490
4490
  if (!s) return;
4491
4491
  const { code: i, queryCode: r } = t;
@@ -4497,63 +4497,63 @@ function yr(t, e) {
4497
4497
  return s(i, r, n, a);
4498
4498
  };
4499
4499
  }
4500
- function _r(t = [], e = [], s) {
4500
+ function wr(t = [], e = [], s) {
4501
4501
  const i = {};
4502
4502
  for (const r of t) {
4503
- const n = br(r, s);
4503
+ const n = Sr(r, s);
4504
4504
  i[r.id] = n, i[r.name] = n;
4505
4505
  }
4506
4506
  for (const r of e)
4507
- i[r.id] = yr(r, s);
4507
+ i[r.id] = Cr(r, s);
4508
4508
  return i;
4509
4509
  }
4510
- async function Sr(t = [], e = globalThis) {
4510
+ async function Er(t = [], e = globalThis) {
4511
4511
  const s = Ae(e);
4512
- s && (Ws(e), t.forEach((i) => wr(s, i)));
4512
+ s && (zs(e), t.forEach((i) => Ir(s, i)));
4513
4513
  }
4514
- function Cr(t, e = globalThis) {
4515
- const s = O(t.mockTemplate) && t.mockTemplate.value ? J(t.mockTemplate, {}, !0) : void 0, i = Ae(e);
4514
+ function kr(t, e = globalThis) {
4515
+ const s = O(t.mockTemplate) && t.mockTemplate.value ? z(t.mockTemplate, {}, !0) : void 0, i = Ae(e);
4516
4516
  return async (...r) => {
4517
4517
  let n = {};
4518
4518
  if (s)
4519
4519
  try {
4520
4520
  n = await s.apply(s, r);
4521
4521
  } catch (a) {
4522
- ge.warn("模拟数据模版异常", a);
4522
+ xe.warn("模拟数据模版异常", a);
4523
4523
  }
4524
4524
  return i?.mock(n);
4525
4525
  };
4526
4526
  }
4527
- function wr(t, e) {
4527
+ function Ir(t, e) {
4528
4528
  if (!e.mock) return;
4529
4529
  const { url: s, mockTemplate: i, method: r = "get", settings: n = {} } = e;
4530
4530
  if (s && i)
4531
4531
  try {
4532
- const a = dt(s) ? new URL(s).pathname : s, u = ai(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
4532
+ const a = mt(s) ? new URL(s).pathname : s, u = ci(`(.*)${a}`, [], { end: !1 }), c = new RegExp(
4533
4533
  u.source + "([?#].*)?$",
4534
4534
  u.flags
4535
- ), l = oi(a, { decode: decodeURIComponent }), h = Re(i, {}, !0);
4535
+ ), l = li(a, { decode: decodeURIComponent }), h = Re(i, {}, !0);
4536
4536
  t.mock(
4537
4537
  c,
4538
4538
  r.toLowerCase(),
4539
4539
  (p) => {
4540
- const f = he.parse(p.url) || {}, d = n.type || "form";
4541
- let m = p.body instanceof FormData ? ui(p.body) : p.body;
4540
+ const d = he.parse(p.url) || {}, f = n.type || "form";
4541
+ let m = p.body instanceof FormData ? hi(p.body) : p.body;
4542
4542
  if (typeof m == "string")
4543
- if (d === "json")
4543
+ if (f === "json")
4544
4544
  try {
4545
4545
  m = JSON.parse(m);
4546
- } catch (S) {
4547
- console.warn("[Mock.mock]", S);
4546
+ } catch (b) {
4547
+ console.warn("[Mock.mock]", b);
4548
4548
  }
4549
4549
  else
4550
4550
  m = he.parse(m);
4551
- const g = dt(p.url) ? new URL(p.url).pathname : p.url.split("?")[0], x = l(g)?.params;
4552
- Object.assign(p, { data: m, params: x, query: f });
4551
+ const g = mt(p.url) ? new URL(p.url).pathname : p.url.split("?")[0], x = l(g)?.params;
4552
+ Object.assign(p, { data: m, params: x, query: d });
4553
4553
  try {
4554
4554
  return t.mock(h(p));
4555
- } catch (S) {
4556
- return console.warn("[mockApi]", c, p, S), null;
4555
+ } catch (b) {
4556
+ return console.warn("[mockApi]", c, p, b), null;
4557
4557
  }
4558
4558
  }
4559
4559
  );
@@ -4561,17 +4561,22 @@ function wr(t, e) {
4561
4561
  console.warn("mockApi", a);
4562
4562
  }
4563
4563
  }
4564
- function Ws(t = globalThis) {
4564
+ function zs(t = globalThis) {
4565
4565
  const e = Ae(t);
4566
4566
  e && (e._mocked = {});
4567
4567
  }
4568
- class Er {
4568
+ class os {
4569
4569
  __id = null;
4570
4570
  __mode;
4571
4571
  __instance = null;
4572
4572
  __contextRefs = {};
4573
4573
  __refs = {};
4574
4574
  __refCaches = {};
4575
+ /**
4576
+ * 记录每个节点 id 当前注册的 ref 回调代次,
4577
+ * 用于防止旧 ref 卸载回调(await delay 后执行)误删新 ref 已设置的 $refs 条目。
4578
+ */
4579
+ __refGenerations = {};
4575
4580
  context = {};
4576
4581
  /**
4577
4582
  * @deprecated
@@ -4605,7 +4610,7 @@ class Er {
4605
4610
  const { mode: s, dsl: i, attrs: r } = e;
4606
4611
  this.__mode = s, i && (this.__id = i.id || null, this.__transform = i.transform || {}), r && Object.assign(this, r);
4607
4612
  }
4608
- setup(e, s = xe) {
4613
+ setup(e, s = ve) {
4609
4614
  const i = s.getCurrentInstance();
4610
4615
  if (!i) return;
4611
4616
  this.__refs = {}, this.__refCaches = {}, this.$refs = {}, this.context = {}, this.__contextRefs = {}, this.__instance = i.proxy;
@@ -4624,14 +4629,14 @@ class Er {
4624
4629
  __proxy() {
4625
4630
  if (!this.__instance) return;
4626
4631
  const e = this.__instance;
4627
- Qt.forEach((s) => {
4632
+ Yt.forEach((s) => {
4628
4633
  this[s] = e[s] || e._?.[s.replace("$", "")] || null;
4629
4634
  });
4630
4635
  }
4631
4636
  __cleanup() {
4632
- Qt.forEach((e) => {
4637
+ Yt.forEach((e) => {
4633
4638
  this[e] = null;
4634
- }), this.__reset();
4639
+ }), this.__reset(), this.__refGenerations = {};
4635
4640
  }
4636
4641
  __reset() {
4637
4642
  this.__refs = {}, this.__refCaches = {}, this.$refs = {}, this.__contextRefs = {}, this.context = {};
@@ -4640,9 +4645,9 @@ class Er {
4640
4645
  if (e)
4641
4646
  if (this.__mode === P.Runtime) {
4642
4647
  const { id: s, type: i } = e, r = s ? this.__transform[s] ?? e.value : e.value;
4643
- return J({ type: i, value: r }, this);
4648
+ return z({ type: i, value: r }, this);
4644
4649
  } else
4645
- return J(e, this);
4650
+ return z(e, this);
4646
4651
  }
4647
4652
  __parseExpression(e) {
4648
4653
  if (e)
@@ -4657,15 +4662,19 @@ class Er {
4657
4662
  return;
4658
4663
  e && e !== this.__id && (this.__contextRefs[e] = this);
4659
4664
  let i = e ? this.__refCaches[e] : null;
4660
- return i || (i = async (r) => {
4661
- await Ie(0);
4662
- let n = r?.$vtjEl || r?.$el || r?._?.vnode?.el || r;
4663
- if (!n) {
4664
- typeof s == "string" && (delete this.$refs[s], this[s] && xe.isRef(this[s]) && (this[s].value = null), e && delete this.__refs[e]);
4665
+ if (i)
4666
+ return i;
4667
+ const r = e ? (this.__refGenerations[e] || 0) + 1 : 0;
4668
+ return e && (this.__refGenerations[e] = r), i = async (n) => {
4669
+ if (await Ie(0), e && this.__refGenerations[e] !== r)
4670
+ return;
4671
+ let a = n?.$vtjEl || n?.$el || n?._?.vnode?.el || n;
4672
+ if (!a) {
4673
+ typeof s == "string" && (delete this.$refs[s], this[s] && ve.isRef(this[s]) && (this[s].value = null), e && delete this.__refs[e]);
4665
4674
  return;
4666
4675
  }
4667
- return n.nodeType === 3 && n.nextSibling && (n = n.nextSibling), n.__vtj__ = e, P.Design === this.__mode && (n.__context__ = this, n.draggable = !0), e && (this.__refs[e] = this.__getRefEl(this.__refs, e, r)), typeof s == "function" ? s(r) : s && (this.$refs[s] = this.__getRefEl(this.$refs, s, r), this[s] && xe.isRef(this[s]) && (this[s].value = this.$refs[s])), r;
4668
- }, e && (this.__refCaches[e] = i), i);
4676
+ return a.nodeType === 3 && a.nextSibling && (a = a.nextSibling), a.__vtj__ = e, P.Design === this.__mode && (a.__context__ = this, a.draggable = !0), e && (this.__refs[e] = this.__getRefEl(this.__refs, e, n)), typeof s == "function" ? s(n) : s && (this.$refs[s] = this.__getRefEl(this.$refs, s, n), this[s] && ve.isRef(this[s]) && (this[s].value = this.$refs[s])), n;
4677
+ }, e && (this.__refCaches[e] = i), i;
4669
4678
  }
4670
4679
  __getRefEl(e, s, i) {
4671
4680
  const r = e[s];
@@ -4683,10 +4692,10 @@ class Er {
4683
4692
  return i.context.__proto__ = this.context, i.__proto__ = this, i;
4684
4693
  }
4685
4694
  }
4686
- const lt = Symbol("vtjBlockChain");
4687
- function St(t) {
4695
+ const ht = Symbol("vtjBlockChain");
4696
+ function Ct(t) {
4688
4697
  const {
4689
- Vue: e = xe,
4698
+ Vue: e = ve,
4690
4699
  UniApp: s = {},
4691
4700
  mode: i = P.Runtime,
4692
4701
  components: r = {},
@@ -4697,7 +4706,7 @@ function St(t) {
4697
4706
  $components: r,
4698
4707
  $libs: n,
4699
4708
  $apis: a
4700
- }, h = new Er({
4709
+ }, h = new os({
4701
4710
  mode: i,
4702
4711
  dsl: c.value,
4703
4712
  attrs: l
@@ -4705,120 +4714,126 @@ function St(t) {
4705
4714
  name: c.value.name,
4706
4715
  __scopeId: c.value.id ? `data-v-${c.value.id}` : void 0,
4707
4716
  props: {
4708
- ...Ir(c.value.props ?? [], h)
4717
+ ...Pr(c.value.props ?? [], h)
4709
4718
  },
4710
- async setup(f = {}) {
4711
- const d = c.value.id, m = c.value.name, g = e.inject(
4712
- lt,
4719
+ async setup(d = {}) {
4720
+ const f = c.value.id, m = c.value.name, g = e.inject(
4721
+ ht,
4713
4722
  null
4714
4723
  );
4715
- if (d && g && g.has(d)) {
4716
- const oe = `检测到区块循环引用: ${m}(${d})`;
4717
- return console.warn(`[VTJ Renderer] ${oe},已中断渲染以防止浏览器崩溃`), qe(new Error(oe)), e.provide(lt, g), { __vtjCircular: !0 };
4724
+ if (f && g && g.has(f)) {
4725
+ const ie = `检测到区块循环引用: ${m}(${f})`;
4726
+ return console.warn(`[VTJ Renderer] ${ie},已中断渲染以防止浏览器崩溃`), qe(new Error(ie)), e.provide(ht, g), { __vtjCircular: !0 };
4718
4727
  }
4719
4728
  const x = new Set(g || []);
4720
- d && x.add(d), e.provide(lt, x), h.$props = h.props = f, c.value.id && At(
4729
+ f && x.add(f), e.provide(ht, x);
4730
+ const b = new os({
4731
+ mode: i,
4732
+ dsl: c.value,
4733
+ attrs: l
4734
+ });
4735
+ b.$props = b.props = d, c.value.id && Pt(
4721
4736
  t.window || globalThis,
4722
4737
  c.value.id,
4723
4738
  c.value.css || "",
4724
4739
  !0
4725
4740
  );
4726
- const S = c.value.apiMode === "composition";
4727
- h.$state = h.state = Ar(
4741
+ const k = c.value.apiMode === "composition";
4742
+ b.$state = b.state = Tr(
4728
4743
  e,
4729
4744
  c.value.state ?? {},
4730
- h
4745
+ b
4731
4746
  );
4732
- const I = S ? Or(e, c.value.refs ?? {}, h) : {}, N = S ? Fr(e, c.value.reactives ?? {}, h) : {}, w = Pr(e, c.value.computed ?? {}, h), D = Tr(c.value.methods ?? {}, h), ye = Nr(e, c.value.inject, h), _e = Rr(
4747
+ const N = k ? Lr(e, c.value.refs ?? {}, b) : {}, w = k ? jr(e, c.value.reactives ?? {}, b) : {}, D = Nr(e, c.value.computed ?? {}, b), fe = Rr(c.value.methods ?? {}, b), _e = Vr(e, c.value.inject, b), J = Or(
4733
4748
  c.value.dataSources || {},
4734
- h
4749
+ b
4735
4750
  );
4736
- let G = {};
4737
- S && (G = Lr(
4751
+ let Le = {};
4752
+ k && (Le = Mr(
4738
4753
  c.value.composables ?? [],
4739
- h
4754
+ b
4740
4755
  ));
4741
4756
  const tt = {
4742
- ...f,
4743
- ...I,
4757
+ ...d,
4744
4758
  ...N,
4745
- ...ye,
4746
4759
  ...w,
4747
- ...D,
4748
4760
  ..._e,
4749
- ...G
4761
+ ...D,
4762
+ ...fe,
4763
+ ...J,
4764
+ ...Le
4750
4765
  };
4751
- if (h.setup(tt, e), Vr(e, c.value.watch ?? [], h), S) {
4752
- if (await Mr(
4766
+ if (b.setup(tt, e), Fr(e, c.value.watch ?? [], b), k) {
4767
+ if (await Br(
4753
4768
  e,
4754
4769
  c.value.lifeCycles ?? {},
4755
- h,
4770
+ b,
4756
4771
  s
4757
4772
  ), c.value.setup) {
4758
- const oe = h.__parseFunction(c.value.setup);
4759
- if (z(oe))
4773
+ const ie = b.__parseFunction(c.value.setup);
4774
+ if (K(ie))
4760
4775
  try {
4761
- await oe();
4762
- } catch (Le) {
4763
- console.warn("[VTJ] Composition setup 执行失败", Le);
4776
+ await ie();
4777
+ } catch (st) {
4778
+ console.warn("[VTJ] Composition setup 执行失败", st);
4764
4779
  }
4765
4780
  }
4766
- jr(e, c.value.provide ?? {}, h);
4781
+ Dr(e, c.value.provide ?? {}, b);
4767
4782
  }
4768
4783
  return {
4769
- vtj: h,
4770
- state: h.$state,
4771
- ...f,
4772
- ...I,
4784
+ vtj: b,
4785
+ state: b.$state,
4786
+ ...d,
4773
4787
  ...N,
4774
4788
  ...w,
4775
- ...D
4789
+ ...D,
4790
+ ...fe
4776
4791
  };
4777
4792
  },
4778
- emits: kr(c.value.emits),
4793
+ emits: Ar(c.value.emits),
4779
4794
  expose: ["vtj", ...c.value.expose || []],
4780
4795
  render() {
4781
4796
  if (this.__vtjCircular)
4782
4797
  return null;
4783
- const f = c.value;
4798
+ const d = this.vtj || h, f = c.value;
4784
4799
  if (f.refs)
4785
- for (const m of Object.keys(f.refs)) this[m];
4800
+ for (const g of Object.keys(f.refs)) this[g];
4786
4801
  if (f.reactives)
4787
- for (const m of Object.keys(f.reactives)) {
4788
- const g = this[m];
4789
- if (g && typeof g == "object")
4790
- for (const x of Object.keys(g)) g[x];
4802
+ for (const g of Object.keys(f.reactives)) {
4803
+ const x = this[g];
4804
+ if (x && typeof x == "object")
4805
+ for (const b of Object.keys(x)) x[b];
4791
4806
  }
4792
4807
  if (f.state) {
4793
- const m = this.state;
4794
- for (const g of Object.keys(f.state)) m[g];
4808
+ const g = this.state;
4809
+ for (const x of Object.keys(f.state)) g[x];
4795
4810
  }
4796
4811
  if (f.computed)
4797
- for (const m of Object.keys(f.computed)) this[m];
4812
+ for (const g of Object.keys(f.computed)) this[g];
4798
4813
  if (f.inject)
4799
- for (const m of f.inject) this[m.name];
4814
+ for (const g of f.inject) this[g.name];
4800
4815
  if (!f.nodes) return null;
4801
- const d = f.nodes || [];
4802
- if (d.length === 1)
4803
- return be(d[0], h, e, u, d);
4816
+ const m = f.nodes || [];
4817
+ if (m.length === 1)
4818
+ return ye(m[0], d, e, u, m);
4804
4819
  {
4805
- const m = d.map((g) => be(g, h, e, u, d)).flat();
4806
- return e.createVNode("div", {}, m);
4820
+ const g = m.map((x) => ye(x, d, e, u, m)).flat();
4821
+ return e.createVNode("div", {}, g);
4807
4822
  }
4808
4823
  },
4809
4824
  // Options 模式下生命周期以 Options 风格注册
4810
- ...c.value.apiMode !== "composition" ? Dr(c.value.lifeCycles ?? {}, h) : {}
4825
+ ...c.value.apiMode !== "composition" ? Hr(c.value.lifeCycles ?? {}, h) : {}
4811
4826
  });
4812
4827
  return {
4813
4828
  renderer: e.markRaw(p),
4814
4829
  context: h
4815
4830
  };
4816
4831
  }
4817
- function kr(t = []) {
4832
+ function Ar(t = []) {
4818
4833
  return t.map((e) => ee(e) ? e : e.name);
4819
4834
  }
4820
- function Ir(t = [], e) {
4821
- const s = (i) => i ? (Array.isArray(i) ? i : [i]).map((n) => gi[n]) : void 0;
4835
+ function Pr(t = [], e) {
4836
+ const s = (i) => i ? (Array.isArray(i) ? i : [i]).map((n) => bi[n]) : void 0;
4822
4837
  return t.map((i) => ee(i) ? {
4823
4838
  name: i
4824
4839
  } : {
@@ -4835,7 +4850,7 @@ function Ir(t = [], e) {
4835
4850
  {}
4836
4851
  );
4837
4852
  }
4838
- function Ar(t, e, s) {
4853
+ function Tr(t, e, s) {
4839
4854
  return t.reactive(
4840
4855
  Object.keys(e || {}).reduce(
4841
4856
  (i, r) => {
@@ -4846,19 +4861,19 @@ function Ar(t, e, s) {
4846
4861
  )
4847
4862
  );
4848
4863
  }
4849
- function Pr(t, e, s) {
4864
+ function Nr(t, e, s) {
4850
4865
  return Object.entries(e ?? {}).reduce(
4851
4866
  (i, [r, n]) => (O(n) ? i[r] = t.computed(s.__parseFunction(n)) : i[r] = t.computed(s.__parseExpression(n)), i),
4852
4867
  {}
4853
4868
  );
4854
4869
  }
4855
- function Tr(t, e) {
4870
+ function Rr(t, e) {
4856
4871
  return Object.entries(t ?? {}).reduce(
4857
4872
  (s, [i, r]) => (s[i] = e.__parseFunction(r), s),
4858
4873
  {}
4859
4874
  );
4860
4875
  }
4861
- function Nr(t, e = [], s) {
4876
+ function Vr(t, e = [], s) {
4862
4877
  return e.reduce(
4863
4878
  (i, r) => {
4864
4879
  const { name: n, from: a } = r || {}, u = T(a) ? s.__parseExpression(a) || n : a ?? n, c = T(r.default) ? s.__parseExpression(r.default) : r.default ?? null;
@@ -4867,12 +4882,12 @@ function Nr(t, e = [], s) {
4867
4882
  {}
4868
4883
  );
4869
4884
  }
4870
- function Rr(t, e) {
4885
+ function Or(t, e) {
4871
4886
  return Object.keys(t).reduce(
4872
4887
  (s, i) => {
4873
4888
  const r = t[i];
4874
4889
  if (r.type === "mock")
4875
- s[i] = Cr(r);
4890
+ s[i] = kr(r);
4876
4891
  else if (r.ref) {
4877
4892
  const n = e.$apis[r.ref], a = O(r.transform) ? r.transform.value ? e.__parseFunction(r.transform) : void 0 : r.transform;
4878
4893
  s[i] = async (...u) => {
@@ -4885,7 +4900,7 @@ function Rr(t, e) {
4885
4900
  {}
4886
4901
  );
4887
4902
  }
4888
- function Vr(t, e = [], s) {
4903
+ function Fr(t, e = [], s) {
4889
4904
  e.forEach((i) => {
4890
4905
  t.watch(
4891
4906
  s.__parseExpression(i.source),
@@ -4898,7 +4913,7 @@ function Vr(t, e = [], s) {
4898
4913
  );
4899
4914
  });
4900
4915
  }
4901
- function Or(t, e, s) {
4916
+ function Lr(t, e, s) {
4902
4917
  return Object.entries(e).reduce(
4903
4918
  (i, [r, n]) => {
4904
4919
  const a = T(n) ? s.__parseExpression(n) : n;
@@ -4907,7 +4922,7 @@ function Or(t, e, s) {
4907
4922
  {}
4908
4923
  );
4909
4924
  }
4910
- function Fr(t, e, s) {
4925
+ function jr(t, e, s) {
4911
4926
  return Object.entries(e).reduce(
4912
4927
  (i, [r, n]) => {
4913
4928
  const a = T(n) ? s.__parseExpression(n) : n;
@@ -4916,12 +4931,12 @@ function Fr(t, e, s) {
4916
4931
  {}
4917
4932
  );
4918
4933
  }
4919
- function Lr(t, e) {
4934
+ function Mr(t, e) {
4920
4935
  return t.reduce(
4921
4936
  (s, i) => {
4922
4937
  try {
4923
4938
  let r;
4924
- if (T(i.composable) ? r = e.__parseExpression(i.composable) : ee(i.composable) && (r = e.$libs[i.composable]), z(r)) {
4939
+ if (T(i.composable) ? r = e.__parseExpression(i.composable) : ee(i.composable) && (r = e.$libs[i.composable]), K(r)) {
4925
4940
  const n = (i.args || []).map(
4926
4941
  (u) => T(u) ? e.__parseExpression(u) : u
4927
4942
  ), a = r(...n);
@@ -4939,13 +4954,13 @@ function Lr(t, e) {
4939
4954
  {}
4940
4955
  );
4941
4956
  }
4942
- function jr(t, e, s) {
4957
+ function Dr(t, e, s) {
4943
4958
  Object.entries(e).forEach(([i, r]) => {
4944
4959
  let n = r;
4945
4960
  T(r) ? n = s.__parseExpression(r) : O(r) && (n = s.__parseFunction(r)), t.provide(i, n);
4946
4961
  });
4947
4962
  }
4948
- async function Mr(t, e, s, i = {}) {
4963
+ async function Br(t, e, s, i = {}) {
4949
4964
  const r = {
4950
4965
  beforeMount: "onBeforeMount",
4951
4966
  mounted: "onMounted",
@@ -4962,7 +4977,7 @@ async function Mr(t, e, s, i = {}) {
4962
4977
  for (const [n, a] of Object.entries(e)) {
4963
4978
  if (n === "created" || n === "beforeCreate") {
4964
4979
  const l = s.__parseFunction(a);
4965
- if (z(l))
4980
+ if (K(l))
4966
4981
  try {
4967
4982
  await l();
4968
4983
  } catch (h) {
@@ -4971,9 +4986,9 @@ async function Mr(t, e, s, i = {}) {
4971
4986
  continue;
4972
4987
  }
4973
4988
  const u = r[n] || n, c = t[u] || i[u];
4974
- if (c && z(c)) {
4989
+ if (c && K(c)) {
4975
4990
  const l = s.__parseFunction(a);
4976
- z(l) && c(async () => {
4991
+ K(l) && c(async () => {
4977
4992
  try {
4978
4993
  await Ie(0), await l();
4979
4994
  } catch (h) {
@@ -4984,18 +4999,16 @@ async function Mr(t, e, s, i = {}) {
4984
4999
  console.warn(`[VTJ] 无效的 Composition 生命周期钩子 "${n}"`);
4985
5000
  }
4986
5001
  }
4987
- function Dr(t, e) {
5002
+ function Hr(t, e) {
4988
5003
  return Object.entries(t ?? {}).reduce(
4989
- (s, [i, r]) => {
4990
- const n = e.__parseFunction(r);
4991
- return s[i] = async () => {
4992
- z(n) && (await Ie(0), await n());
4993
- }, s;
4994
- },
5004
+ (s, [i, r]) => (s[i] = async function() {
5005
+ const a = (this?.vtj || e).__parseFunction(r);
5006
+ K(a) && (await Ie(0), await a());
5007
+ }, s),
4995
5008
  {}
4996
5009
  );
4997
5010
  }
4998
- class Br {
5011
+ class $r {
4999
5012
  __props = {};
5000
5013
  __events = {};
5001
5014
  __nodes = {};
@@ -5031,7 +5044,7 @@ class Br {
5031
5044
  return i || (e && this.setNode(e, s), s);
5032
5045
  }
5033
5046
  isEqual(e, s) {
5034
- return at(e, s);
5047
+ return ot(e, s);
5035
5048
  }
5036
5049
  /**
5037
5050
  * 比较两个节点缓存是否相等,函数引用变化不触发重渲染,但函数属性的增删会触发
@@ -5041,70 +5054,70 @@ class Br {
5041
5054
  isNodeEqual(e, s) {
5042
5055
  if (e === s) return !0;
5043
5056
  if (!e || !s) return !1;
5044
- const i = (u) => !u || typeof u != "object" ? [] : Object.keys(u).filter((c) => z(u[c])), r = (u) => {
5057
+ const i = (u) => !u || typeof u != "object" ? [] : Object.keys(u).filter((c) => K(u[c])), r = (u) => {
5045
5058
  if (!u || typeof u != "object") return u;
5046
5059
  const c = {};
5047
5060
  for (const l in u)
5048
5061
  if (Object.prototype.hasOwnProperty.call(u, l)) {
5049
5062
  const h = u[l];
5050
- z(h) || (c[l] = h);
5063
+ K(h) || (c[l] = h);
5051
5064
  }
5052
5065
  return c;
5053
5066
  }, n = i(e).sort(), a = i(s).sort();
5054
- return at(n, a) ? at(r(e), r(s)) : !1;
5067
+ return ot(n, a) ? ot(r(e), r(s)) : !1;
5055
5068
  }
5056
5069
  clear() {
5057
5070
  this.__props = {}, this.__events = {}, this.__nodes = {};
5058
5071
  }
5059
5072
  }
5060
- const Se = new Br(), Ks = new ci();
5061
- let ht = [], ce = {}, Ce = {};
5062
- const Hr = (t, e) => e;
5063
- async function zs(t, e = globalThis) {
5073
+ const Se = new $r(), Js = new pi();
5074
+ let pt = [], ce = {}, Ce = {};
5075
+ const Ur = (t, e) => e;
5076
+ async function Qs(t, e = globalThis) {
5064
5077
  const { urls: s = [], library: i } = t, r = s.filter((u) => ze(u));
5065
5078
  if (r.length === 0 || !i) return null;
5066
5079
  const n = s.filter((u) => Ke(u));
5067
- return n.length && fs(n, e), await ds(r, i, e).catch(
5080
+ return n.length && ms(n, e), await gs(r, i, e).catch(
5068
5081
  (u) => (console.warn("loadScriptUrl error", r, i, u), null)
5069
5082
  );
5070
5083
  }
5071
- function Ct(t) {
5084
+ function wt(t) {
5072
5085
  const { getDsl: e, getDslByUrl: s, options: i } = t;
5073
- return i.window && (ht.forEach((r) => {
5086
+ return i.window && (pt.forEach((r) => {
5074
5087
  delete i.window[r];
5075
- }), ht = []), (r, n, a, u = xe) => {
5088
+ }), pt = []), (r, n, a, u = ve) => {
5076
5089
  if (!a || typeof a == "string") return n;
5077
5090
  let c = "";
5078
5091
  if (a.type === "Schema" && a.id)
5079
5092
  return c = a.id + "_" + r, Ce[c] || (Ce[c] = u.defineAsyncComponent(async () => {
5080
- const l = ce[a.id] || await Ks.add(
5093
+ const l = ce[a.id] || await Js.add(
5081
5094
  a.id,
5082
5095
  () => e(a.id)
5083
5096
  );
5084
- return l && (l.name = n, ce[a.id] = l), l ? St({
5097
+ return l && (l.name = n, ce[a.id] = l), l ? Ct({
5085
5098
  Vue: u,
5086
5099
  mode: P.Runtime,
5087
5100
  ...i,
5088
- dsl: Kt(l),
5089
- loader: Ct(t)
5101
+ dsl: zt(l),
5102
+ loader: wt(t)
5090
5103
  }).renderer : null;
5091
5104
  }));
5092
5105
  if (a.type === "UrlSchema" && a.url)
5093
5106
  return c = a.url + "_" + r, Ce[c] || (Ce[c] = u.defineAsyncComponent(async () => {
5094
5107
  const l = ce[a.url] || await s(a.url);
5095
- return l && (l.name = n, ce[a.url] = l), l ? St({
5108
+ return l && (l.name = n, ce[a.url] = l), l ? Ct({
5096
5109
  ...i,
5097
5110
  Vue: u,
5098
- dsl: Kt(l),
5111
+ dsl: zt(l),
5099
5112
  mode: P.Runtime,
5100
- loader: Ct(t)
5113
+ loader: wt(t)
5101
5114
  }).renderer : null;
5102
5115
  }));
5103
5116
  if (a.type === "Plugin") {
5104
5117
  let l = a.library ? ce[a.library] : null;
5105
- return l || (a.library && ht.push(a.library), l = ce[a.library || Symbol()] = u.defineAsyncComponent(
5118
+ return l || (a.library && pt.push(a.library), l = ce[a.library || Symbol()] = u.defineAsyncComponent(
5106
5119
  async () => {
5107
- const h = await zs(a, i.window);
5120
+ const h = await Qs(a, i.window);
5108
5121
  return h || (console.warn("getPlugin result is null", a), null);
5109
5122
  }
5110
5123
  ), l);
@@ -5112,61 +5125,61 @@ function Ct(t) {
5112
5125
  return n;
5113
5126
  };
5114
5127
  }
5115
- function Fn() {
5116
- ce = {}, Ce = {}, Ks.clearAllCache(), Se.clear();
5128
+ function jn() {
5129
+ ce = {}, Ce = {}, Js.clearAllCache(), Se.clear();
5117
5130
  }
5118
- function be(t, e, s = xe, i = Hr, r = [], n = !1, a = 0) {
5131
+ function ye(t, e, s = ve, i = Ur, r = [], n = !1, a = 0) {
5119
5132
  if (!t || !t.name || t.invisible) return null;
5120
- const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: f, vFor: d, vShow: m, vModels: g, vBind: x, vHtml: S, others: I } = Js(l);
5121
- if (!n && (p || f))
5133
+ const u = s.getCurrentInstance()?.appContext, { id: c = null, directives: l = [] } = t, { vIf: h, vElseIf: p, vElse: d, vFor: f, vShow: m, vModels: g, vBind: x, vHtml: b, others: k } = Ys(l);
5134
+ if (!n && (p || d))
5122
5135
  return null;
5123
- if (h && !Ur(h, e))
5124
- return Jr(t, e, s, i, r);
5136
+ if (h && !qr(h, e))
5137
+ return Yr(t, e, s, i, r);
5125
5138
  const N = (w, D = 0) => {
5126
- const ye = w.$components, _e = (() => {
5139
+ const fe = w.$components, _e = (() => {
5127
5140
  if (t.name === "component")
5128
- return Gr(w, t.props?.is);
5141
+ return Wr(w, t.props?.is);
5129
5142
  if (t.name === "slot") return t.name;
5130
- const q = i(`${t.id}_${D}`, t.name, t.from, s);
5131
- return ee(q) ? Pi(q) || Ti(q) ? q : ye[q] ?? u?.app?.component(q) ?? q : q;
5132
- })(), G = qr(c, t.props ?? {}, w), tt = zr(
5143
+ const G = i(`${t.id}_${D}`, t.name, t.from, s);
5144
+ return ee(G) ? Ri(G) || Vi(G) ? G : fe[G] ?? u?.app?.component(G) ?? G : G;
5145
+ })(), J = Kr(c, t.props ?? {}, w), Le = Qr(
5133
5146
  s,
5134
5147
  t.id,
5135
5148
  t.events ?? {},
5136
5149
  w
5137
5150
  );
5138
5151
  if (t.name === "slot")
5139
- return Qr(s, t, G, w, i);
5140
- x && Object.assign(G, w.__parseExpression(x.value)), m && (G.style = Object.assign(
5141
- G.style ?? {},
5142
- Xr(m, w)
5143
- )), S && Object.assign(G, Zr(S, w)), g.forEach((q) => {
5144
- hs.includes(t.name) ? Object.assign(G, en(q, w)) : Object.assign(G, tn(s, q, w));
5152
+ return Xr(s, t, J, w, i);
5153
+ x && Object.assign(J, w.__parseExpression(x.value)), m && (J.style = Object.assign(
5154
+ J.style ?? {},
5155
+ en(m, w)
5156
+ )), b && Object.assign(J, tn(b, w)), g.forEach((G) => {
5157
+ fs.includes(t.name) ? Object.assign(J, sn(G, w)) : Object.assign(J, rn(s, G, w));
5145
5158
  });
5146
- const oe = sn(
5159
+ const tt = nn(
5147
5160
  s,
5148
5161
  t.children ?? [],
5149
5162
  w,
5150
5163
  i,
5151
5164
  t
5152
- ), Le = w?.__id ? `data-v-${w.__id}` : void 0, ei = Le ? { [Le]: "" } : {}, ti = w.__mode === P.Design ? { "data-vtj": c } : {}, je = `${c}_${D}`, st = {
5165
+ ), ie = w?.__id ? `data-v-${w.__id}` : void 0, st = ie ? { [ie]: "" } : {}, si = w.__mode === P.Design ? { "data-vtj": c } : {}, { ref: ii, ...ri } = J, je = `${c}_${D}`, it = {
5153
5166
  key: je,
5154
- ...ei,
5155
- ...ti,
5156
- ...G
5167
+ ...st,
5168
+ ...si,
5169
+ ...ri
5157
5170
  };
5158
- Se.isNodeEqual(st, Se.getNode(je)) || Se.setNode(je, st);
5159
- let it = s.createVNode(
5171
+ Se.isNodeEqual(it, Se.getNode(je)) || Se.setNode(je, it);
5172
+ let rt = s.createVNode(
5160
5173
  _e,
5161
- { ...Se.getNode(je) || st, ...tt },
5162
- oe
5174
+ { ...Se.getNode(je) || it, ref: ii, ...Le },
5175
+ tt
5163
5176
  );
5164
- const Gt = u ? $r(u, I, w) : [];
5165
- return Gt.length && (it = s.withDirectives(it, Gt)), it;
5177
+ const qt = u ? Gr(u, k, w) : [];
5178
+ return qt.length && (rt = s.withDirectives(rt, qt)), rt;
5166
5179
  };
5167
- return d ? an(d, N, e) : N(e, a);
5180
+ return f ? un(f, N, e) : N(e, a);
5168
5181
  }
5169
- function $r(t, e, s) {
5182
+ function Gr(t, e, s) {
5170
5183
  const i = t.app;
5171
5184
  return e.map((r) => {
5172
5185
  const n = typeof r.name == "string" ? i.directive(r.name) : s.__parseExpression(r.name);
@@ -5175,13 +5188,13 @@ function $r(t, e, s) {
5175
5188
  return r.value && a.push(s.__parseExpression(r.value)), r.arg && a.push(r.arg), r.modifiers && a.push(r.modifiers), a;
5176
5189
  }).filter((r) => !!r);
5177
5190
  }
5178
- function Js(t = []) {
5191
+ function Ys(t = []) {
5179
5192
  const e = t.find((h) => X(h.name) === "vIf"), s = t.find(
5180
5193
  (h) => X(h.name) === "vElseIf"
5181
5194
  ), i = t.find((h) => X(h.name) === "vElse"), r = t.find((h) => X(h.name) === "vFor"), n = t.find((h) => X(h.name) === "vShow"), a = t.find((h) => X(h.name) === "vBind"), u = t.find((h) => X(h.name) === "vHtml"), c = t.filter(
5182
5195
  (h) => X(h.name) === "vModel"
5183
5196
  ), l = t.filter(
5184
- (h) => !mi.includes(X(h.name))
5197
+ (h) => !vi.includes(X(h.name))
5185
5198
  );
5186
5199
  return {
5187
5200
  vIf: e,
@@ -5195,44 +5208,44 @@ function Js(t = []) {
5195
5208
  vHtml: u
5196
5209
  };
5197
5210
  }
5198
- function Ur(t, e) {
5211
+ function qr(t, e) {
5199
5212
  return !!e.__parseExpression(t.value);
5200
5213
  }
5201
- function Gr(t, e) {
5214
+ function Wr(t, e) {
5202
5215
  return e ? T(e) ? t.__parseExpression(e) : e : "div";
5203
5216
  }
5204
- function qr(t, e, s) {
5205
- const i = wt(e, s);
5217
+ function Kr(t, e, s) {
5218
+ const i = Et(e, s);
5206
5219
  return i.ref = s.__ref(t, i.ref), i;
5207
5220
  }
5208
- function wt(t, e) {
5209
- return T(t) ? e.__parseExpression(t) : O(t) ? e.__parseFunction(t) : Array.isArray(t) ? t.map((s) => wt(s, e)) : typeof t == "object" ? Object.keys(t || {}).reduce(
5221
+ function Et(t, e) {
5222
+ return T(t) ? e.__parseExpression(t) : O(t) ? e.__parseFunction(t) : Array.isArray(t) ? t.map((s) => Et(s, e)) : typeof t == "object" ? Object.keys(t || {}).reduce(
5210
5223
  (s, i) => {
5211
5224
  let r = t[i];
5212
- return s[i] = wt(r, e), s;
5225
+ return s[i] = Et(r, e), s;
5213
5226
  },
5214
5227
  {}
5215
5228
  ) : t;
5216
5229
  }
5217
- function Wr(t, e) {
5230
+ function zr(t, e) {
5218
5231
  return (s) => {
5219
5232
  s?.key?.toLowerCase() === e.toLowerCase() && t(s);
5220
5233
  };
5221
5234
  }
5222
- function Kr(t) {
5223
- return Ni(t.value) ? t : Ri(t.value) ? {
5235
+ function Jr(t) {
5236
+ return Oi(t.value) ? t : Fi(t.value) ? {
5224
5237
  type: "JSFunction",
5225
5238
  value: `(...args) => (() => {
5226
5239
  return (($event) => {
5227
5240
  ${t.value}
5228
5241
  }).apply(this, args);
5229
5242
  })()`
5230
- } : Vi(t.value) ? {
5243
+ } : Li(t.value) ? {
5231
5244
  type: "JSFunction",
5232
5245
  value: `() => { ${t.value}}`
5233
5246
  } : t;
5234
5247
  }
5235
- function zr(t, e, s, i) {
5248
+ function Qr(t, e, s, i) {
5236
5249
  const r = ["passive", "capture", "once"], n = {
5237
5250
  capture: "Capture",
5238
5251
  once: "Once",
@@ -5240,59 +5253,59 @@ function zr(t, e, s, i) {
5240
5253
  };
5241
5254
  return Object.keys(s || {}).reduce(
5242
5255
  (u, c) => {
5243
- const l = s[c], h = Qs(l.modifiers), p = h.find((m) => r.includes(m)), f = "on" + li(c) + (p && n[p] || ""), d = l.handler ? i.__parseFunction(Kr(l.handler)) : null;
5244
- return d && (u[f] = t.withModifiers(
5245
- h.includes("enter") ? Wr(d, "enter") : d,
5256
+ const l = s[c], h = Xs(l.modifiers), p = h.find((m) => r.includes(m)), d = "on" + fi(c) + (p && n[p] || ""), f = l.handler ? i.__parseFunction(Jr(l.handler)) : null;
5257
+ return f && (u[d] = t.withModifiers(
5258
+ h.includes("enter") ? zr(f, "enter") : f,
5246
5259
  h
5247
5260
  )), u;
5248
5261
  },
5249
5262
  {}
5250
5263
  );
5251
5264
  }
5252
- function Jr(t, e, s, i, r = []) {
5265
+ function Yr(t, e, s, i, r = []) {
5253
5266
  let n = r.findIndex((a) => a.id === t.id);
5254
5267
  for (let a = ++n; a < r.length; a++) {
5255
- const { directives: u = [] } = r[a], { vElseIf: c, vElse: l } = Js(u);
5268
+ const { directives: u = [] } = r[a], { vElseIf: c, vElse: l } = Ys(u);
5256
5269
  if (c) {
5257
5270
  if (e.__parseExpression(c.value))
5258
- return be(r[a], e, s, i, r, !0);
5271
+ return ye(r[a], e, s, i, r, !0);
5259
5272
  continue;
5260
5273
  }
5261
5274
  if (l)
5262
- return be(r[a], e, s, i, r, !0);
5275
+ return ye(r[a], e, s, i, r, !0);
5263
5276
  }
5264
5277
  return null;
5265
5278
  }
5266
- function Qs(t = {}, e = !1) {
5279
+ function Xs(t = {}, e = !1) {
5267
5280
  const s = Object.keys(t);
5268
5281
  return e ? s.map((i) => "." + i) : s;
5269
5282
  }
5270
- function Qr(t, e, s, i, r) {
5271
- const { children: n } = e, a = Yr(e, i), u = i.$slots?.[a.name];
5283
+ function Xr(t, e, s, i, r) {
5284
+ const { children: n } = e, a = Zr(e, i), u = i.$slots?.[a.name];
5272
5285
  return u ? u(s) : n ? ee(n) ? t.createTextVNode(n) : T(n) ? t.createTextVNode(
5273
- ps(i.__parseExpression(n))
5286
+ ds(i.__parseExpression(n))
5274
5287
  ) : Array.isArray(n) ? n.map(
5275
- (c, l) => be(c, i, t, r, n, !1, l)
5288
+ (c, l) => ye(c, i, t, r, n, !1, l)
5276
5289
  ) : null : null;
5277
5290
  }
5278
- function Yr(t, e) {
5291
+ function Zr(t, e) {
5279
5292
  const { props: s } = t, i = s?.name || "default";
5280
5293
  return {
5281
5294
  name: T(i) ? e.__parseExpression(i) : i,
5282
5295
  params: []
5283
5296
  };
5284
5297
  }
5285
- function Xr(t, e) {
5298
+ function en(t, e) {
5286
5299
  return e.__parseExpression(t.value) ? {} : {
5287
5300
  display: "none"
5288
5301
  };
5289
5302
  }
5290
- function Zr(t, e) {
5303
+ function tn(t, e) {
5291
5304
  return {
5292
5305
  innerHTML: e.__parseExpression(t.value) || ""
5293
5306
  };
5294
5307
  }
5295
- function en(t, e) {
5308
+ function sn(t, e) {
5296
5309
  const s = {
5297
5310
  type: "JSFunction",
5298
5311
  value: t.value?.value ? `(v) => {
@@ -5304,13 +5317,13 @@ function en(t, e) {
5304
5317
  onInput: e.__parseFunction(s)
5305
5318
  };
5306
5319
  }
5307
- function tn(t, e, s) {
5320
+ function rn(t, e, s) {
5308
5321
  const i = {
5309
5322
  type: "JSFunction",
5310
5323
  value: e.value?.value ? `(v) => {
5311
5324
  ${e.value.value} = v;
5312
5325
  }` : "(v) => {}"
5313
- }, r = s.__parseFunction(i), n = Qs(
5326
+ }, r = s.__parseFunction(i), n = Xs(
5314
5327
  T(e.modifiers) ? s.__parseExpression(e.modifiers) : e.modifiers
5315
5328
  ), a = T(e.arg) ? s.__parseExpression(e.arg) : e.arg || "modelValue";
5316
5329
  return {
@@ -5318,27 +5331,27 @@ function tn(t, e, s) {
5318
5331
  [`onUpdate:${a}`]: n.length && r ? t.withModifiers(r, n) : r
5319
5332
  };
5320
5333
  }
5321
- function sn(t, e, s, i, r) {
5334
+ function nn(t, e, s, i, r) {
5322
5335
  if (!e) return null;
5323
5336
  if (ee(e))
5324
5337
  return { default: () => e };
5325
5338
  if (T(e))
5326
5339
  return {
5327
- default: () => ps(s.__parseExpression(e))
5340
+ default: () => ds(s.__parseExpression(e))
5328
5341
  };
5329
5342
  if (Array.isArray(e) && e.length > 0) {
5330
- const n = rn(e), a = (u, c) => !u || !r ? {} : r?.id && Object.keys(u).length ? c ? {
5343
+ const n = an(e), a = (u, c) => !u || !r ? {} : r?.id && Object.keys(u).length ? c ? {
5331
5344
  [c]: u
5332
5345
  } : {
5333
5346
  [`scope_${r.id}`]: u
5334
5347
  } : c ? { [c]: /* @__PURE__ */ Object.create(null) } : {};
5335
5348
  return Object.entries(n).reduce(
5336
- (u, [c, { nodes: l, params: h, scope: p }]) => (u[c] = (f) => {
5337
- const d = h.length ? hi(f ?? {}, h) : a(f, p);
5349
+ (u, [c, { nodes: l, params: h, scope: p }]) => (u[c] = (d) => {
5350
+ const f = h.length ? di(d ?? {}, h) : a(d, p);
5338
5351
  return l.map(
5339
- (m, g) => be(
5352
+ (m, g) => ye(
5340
5353
  m,
5341
- s.__clone(d),
5354
+ s.__clone(f),
5342
5355
  t,
5343
5356
  i,
5344
5357
  l,
@@ -5352,10 +5365,10 @@ function sn(t, e, s, i, r) {
5352
5365
  }
5353
5366
  return null;
5354
5367
  }
5355
- function rn(t) {
5368
+ function an(t) {
5356
5369
  const e = {};
5357
5370
  for (const s of t) {
5358
- const i = nn(s.slot), r = i.name;
5371
+ const i = on(s.slot), r = i.name;
5359
5372
  e[r] ? (e[r].nodes.push(s), e[r].params = e[r].params.concat(i.params), e[r].scope = i.scope || "") : e[r] = {
5360
5373
  nodes: [s],
5361
5374
  params: i.params,
@@ -5364,18 +5377,18 @@ function rn(t) {
5364
5377
  }
5365
5378
  return e;
5366
5379
  }
5367
- function nn(t = "default") {
5380
+ function on(t = "default") {
5368
5381
  return ee(t) ? { name: t, params: [], scope: "" } : { params: [], scope: "", ...t };
5369
5382
  }
5370
- function an(t, e, s) {
5383
+ function un(t, e, s) {
5371
5384
  const { value: i, iterator: r } = t, { item: n = "item", index: a = "index" } = r || {};
5372
5385
  let u = s.__parseExpression(i) || [];
5373
5386
  return Number.isInteger(u) && (u = new Array(u).fill(!0).map((c, l) => l + 1)), Array.isArray(u) ? u.map((c, l) => e(s.__clone({ [n]: c, [a]: l }), l)) : (console.warn("[vForRender]:", `${i?.value} is not a Arrary`), []);
5374
5387
  }
5375
- const pt = cs({
5388
+ const ft = hs({
5376
5389
  name: "VtjPageContainer",
5377
5390
  async setup() {
5378
- const t = Xs(), e = ls(), s = e.meta.__vtj__ || e.params.id, i = s ? t.getPage(s) : t.getHomepage(), r = i ? await t.getRenderComponent(i.id) : null, n = xt(Symbol());
5391
+ const t = ei(), e = ps(), s = e.meta.__vtj__ || e.params.id, i = s ? t.getPage(s) : t.getHomepage(), r = i ? await t.getRenderComponent(i.id) : null, n = vt(Symbol());
5379
5392
  if (i) {
5380
5393
  Object.assign(e.meta, i.meta || {}, { cache: i.cache });
5381
5394
  const { useTitle: a } = t?.adapter;
@@ -5396,7 +5409,7 @@ const pt = cs({
5396
5409
  },
5397
5410
  render() {
5398
5411
  const { component: t, query: e, sid: s } = this;
5399
- return t ? gt(t, { ...e, key: s }) : gt(
5412
+ return t ? xt(t, { ...e, key: s }) : xt(
5400
5413
  "div",
5401
5414
  { style: { padding: "10px" } },
5402
5415
  "找不到组件,组件不存在或未发布!"
@@ -5405,10 +5418,10 @@ const pt = cs({
5405
5418
  activated() {
5406
5419
  this.meta.cache === !1 && (this.sid = Symbol());
5407
5420
  }
5408
- }), on = cs({
5421
+ }), cn = hs({
5409
5422
  name: "VtjStartupContainer",
5410
5423
  render() {
5411
- return gt("div", "page not found!");
5424
+ return xt("div", "page not found!");
5412
5425
  }
5413
5426
  });
5414
5427
  function We(t, e, s = []) {
@@ -5432,38 +5445,38 @@ function We(t, e, s = []) {
5432
5445
  }
5433
5446
  return i;
5434
5447
  }
5435
- function Ys(t, e) {
5448
+ function Zs(t, e) {
5436
5449
  if (!e) return t;
5437
5450
  let s = [];
5438
5451
  for (const i of t)
5439
5452
  if (i.children && i.children.length) {
5440
- const r = Ys(i.children, e);
5453
+ const r = Zs(i.children, e);
5441
5454
  r.length && (i.children = r, s.push(i));
5442
5455
  } else
5443
5456
  e.can(i.id.toString()) && s.push(i);
5444
5457
  return s;
5445
5458
  }
5446
- function Ln(t) {
5459
+ function Mn(t) {
5447
5460
  const {
5448
5461
  menuPathPrefix: e = "",
5449
5462
  pageRouteName: s = "page",
5450
5463
  disableMenusFilter: i = !1
5451
- } = t || {}, r = Xs(), n = ls(), a = vr(), u = xt(!1), c = xt(!1), l = r.project, h = (d, m) => {
5452
- u.value = !d?.mask, c.value = m?.pure ?? !!d?.pure;
5464
+ } = t || {}, r = ei(), n = ps(), a = _r(), u = vt(!1), c = vt(!1), l = r.project, h = (f, m) => {
5465
+ u.value = !f?.mask, c.value = m?.pure ?? !!f?.pure;
5453
5466
  };
5454
- di(() => {
5455
- const { name: d, params: m, meta: g } = n;
5456
- if (d === Ee) {
5467
+ xi(() => {
5468
+ const { name: f, params: m, meta: g } = n;
5469
+ if (f === Ee) {
5457
5470
  const x = r.getPage(m.id);
5458
5471
  h(x, g);
5459
- } else if (d === He) {
5472
+ } else if (f === He) {
5460
5473
  const x = r.getHomepage();
5461
5474
  h(x, g);
5462
5475
  } else {
5463
5476
  const x = g.__vtj__;
5464
5477
  if (x) {
5465
- const S = r.getPage(x);
5466
- h(S, g);
5478
+ const b = r.getPage(x);
5479
+ h(b, g);
5467
5480
  } else
5468
5481
  u.value = !g.mask, c.value = !!g.pure;
5469
5482
  }
@@ -5472,17 +5485,17 @@ function Ln(t) {
5472
5485
  e,
5473
5486
  s,
5474
5487
  l?.pages
5475
- ), f = l?.config;
5488
+ ), d = l?.config;
5476
5489
  return {
5477
5490
  disabled: u,
5478
- logo: f?.logo,
5479
- themeSwitchable: f?.themeSwitchable,
5480
- title: f?.title || l?.description || l?.name || "VTJ App",
5481
- menus: i ? p : Ys(p, a),
5491
+ logo: d?.logo,
5492
+ themeSwitchable: d?.themeSwitchable,
5493
+ title: d?.title || l?.description || l?.name || "VTJ App",
5494
+ menus: i ? p : Zs(p, a),
5482
5495
  pure: c
5483
5496
  };
5484
5497
  }
5485
- function ft(t, e) {
5498
+ function dt(t, e) {
5486
5499
  const { id: s, title: i, meta: r } = t, { name: n = "page", prefix: a = "", component: u, routeMeta: c } = e;
5487
5500
  return {
5488
5501
  name: s,
@@ -5496,7 +5509,7 @@ function ft(t, e) {
5496
5509
  }
5497
5510
  };
5498
5511
  }
5499
- function Et(t) {
5512
+ function kt(t) {
5500
5513
  const {
5501
5514
  name: e = "page",
5502
5515
  prefix: s = "",
@@ -5507,9 +5520,9 @@ function Et(t) {
5507
5520
  homepage: u
5508
5521
  } = t, c = [];
5509
5522
  for (const l of i) {
5510
- const { id: h, title: p, dir: f, layout: d, children: m, meta: g } = l;
5511
- if (f) {
5512
- const x = Et({
5523
+ const { id: h, title: p, dir: d, layout: f, children: m, meta: g } = l;
5524
+ if (d) {
5525
+ const x = kt({
5513
5526
  name: e,
5514
5527
  prefix: s,
5515
5528
  component: r,
@@ -5519,8 +5532,8 @@ function Et(t) {
5519
5532
  pages: m || []
5520
5533
  });
5521
5534
  c.push(...x);
5522
- } else if (d) {
5523
- const x = Et({
5535
+ } else if (f) {
5536
+ const x = kt({
5524
5537
  name: e,
5525
5538
  prefix: s,
5526
5539
  component: r,
@@ -5528,7 +5541,7 @@ function Et(t) {
5528
5541
  homepage: u,
5529
5542
  loader: n,
5530
5543
  pages: m || []
5531
- }), S = {
5544
+ }), b = {
5532
5545
  name: `layout_${h}`,
5533
5546
  path: s,
5534
5547
  component: () => n(h),
@@ -5540,31 +5553,31 @@ function Et(t) {
5540
5553
  },
5541
5554
  children: x
5542
5555
  };
5543
- c.push(S), c.push(ft(l, t));
5544
- } else if (c.push(ft(l, t)), u === h) {
5545
- const x = ft(l, t);
5556
+ c.push(b), c.push(dt(l, t));
5557
+ } else if (c.push(dt(l, t)), u === h) {
5558
+ const x = dt(l, t);
5546
5559
  x.path = "", x.name = `home_${h}`, c.push(x);
5547
5560
  }
5548
5561
  }
5549
5562
  return c;
5550
5563
  }
5551
- function un(t = {}, e) {
5564
+ function ln(t = {}, e) {
5552
5565
  const { css: s, store: i, enhance: r } = t, { window: n, app: a, library: u = {}, adapter: c, mode: l } = e, { Pinia: h } = u;
5553
- a.config.globalProperties.$libs = u, At(n, "global-css", s || ""), h && i && cn(i, a, h), hn(a, c, t), !c.access && t.access && ln(t.access, a, l, c), pn(a, t), r && fn(r, a, u);
5566
+ a.config.globalProperties.$libs = u, Pt(n, "global-css", s || ""), h && i && hn(i, a, h), fn(a, c, t), !c.access && t.access && pn(t.access, a, l, c), dn(a, t), r && mn(r, a, u);
5554
5567
  }
5555
- function cn(t, e, s) {
5568
+ function hn(t, e, s) {
5556
5569
  if (!e.config.globalProperties.$pinia) {
5557
5570
  const i = s.createPinia();
5558
5571
  e.use(i);
5559
5572
  }
5560
5573
  if (O(t) && t.value) {
5561
- const i = J(t, {}, !1, !1, !0), r = s.defineStore("$store", i(e) || {});
5574
+ const i = z(t, {}, !1, !1, !0), r = s.defineStore("$store", i(e) || {});
5562
5575
  e.config.globalProperties.$store = r();
5563
5576
  }
5564
5577
  }
5565
- function ln(t, e, s, i) {
5578
+ function pn(t, e, s, i) {
5566
5579
  if (O(t) && t.value) {
5567
- const r = J(t, {}, !1, !1, !0), { alert: n, request: a } = i, u = new Ht({
5580
+ const r = z(t, {}, !1, !1, !0), { alert: n, request: a } = i, u = new $t({
5568
5581
  alert: n,
5569
5582
  storagePrefix: "__VTJ_APP_",
5570
5583
  ...r(e)
@@ -5572,37 +5585,37 @@ function ln(t, e, s, i) {
5572
5585
  u.connect({ mode: s, router: c, request: a }), e.use(u);
5573
5586
  }
5574
5587
  }
5575
- function hn(t, e, s) {
5588
+ function fn(t, e, s) {
5576
5589
  if (!e.request) return;
5577
5590
  const { axios: i, request: r, response: n } = s;
5578
5591
  if (i && O(i) && i.value) {
5579
- const a = J(i, {}, !1, !1, !0);
5592
+ const a = z(i, {}, !1, !1, !0);
5580
5593
  e.request.setConfig(a(t));
5581
5594
  }
5582
5595
  if (r && O(r) && r.value) {
5583
- const a = J(r, {}, !1, !1, !0), u = e.request;
5596
+ const a = z(r, {}, !1, !1, !0), u = e.request;
5584
5597
  u.__unReq && u.__unReq(), u.__unReq = e.request.useRequest((c) => a(c, t));
5585
5598
  }
5586
5599
  if (n && O(n) && n.value) {
5587
- const a = J(n, {}, !1, !1, !0), u = e.request;
5600
+ const a = z(n, {}, !1, !1, !0), u = e.request;
5588
5601
  u.__unRes && u.__unRes(), u.__unRes = e.request.useResponse((c) => a(c, t));
5589
5602
  }
5590
5603
  }
5591
- function pn(t, e) {
5604
+ function dn(t, e) {
5592
5605
  const { beforeEach: s, afterEach: i } = e, r = t.config.globalProperties.$router;
5593
5606
  if (s && O(s) && s.value) {
5594
- const n = J(s, {}, !1, !1, !0);
5607
+ const n = z(s, {}, !1, !1, !0);
5595
5608
  r && r.beforeEach((a, u, c) => n(a, u, c, t));
5596
5609
  }
5597
5610
  if (i && O(i) && i.value) {
5598
- const n = J(i, {}, !1, !1, !0);
5611
+ const n = z(i, {}, !1, !1, !0);
5599
5612
  r && r.afterEach((a, u, c) => n(a, u, c, t));
5600
5613
  }
5601
5614
  }
5602
- function fn(t, e, s = {}) {
5603
- O(t) && t.value && J(t, {}, !1, !1, !0)(e, s);
5615
+ function mn(t, e, s = {}) {
5616
+ O(t) && t.value && z(t, {}, !1, !1, !0)(e, s);
5604
5617
  }
5605
- function dn(t, e, s) {
5618
+ function gn(t, e, s) {
5606
5619
  if (!t || !e || !s) return;
5607
5620
  const { VueI18n: i } = e;
5608
5621
  if (i) {
@@ -5621,9 +5634,9 @@ function dn(t, e, s) {
5621
5634
  t.use(c);
5622
5635
  }
5623
5636
  }
5624
- const $t = Symbol("Provider");
5625
- var mn = /* @__PURE__ */ ((t) => (t.Production = "production", t.Development = "development", t))(mn || {});
5626
- class gn extends si {
5637
+ const Ut = Symbol("Provider");
5638
+ var xn = /* @__PURE__ */ ((t) => (t.Production = "production", t.Development = "development", t))(xn || {});
5639
+ class vn extends ni {
5627
5640
  /**
5628
5641
  * 创建Provider实例
5629
5642
  * @param options 配置选项
@@ -5641,12 +5654,12 @@ class gn extends si {
5641
5654
  modules: l = {},
5642
5655
  router: h = null,
5643
5656
  materialPath: p = "./",
5644
- nodeEnv: f = "development"
5657
+ nodeEnv: d = "development"
5645
5658
  /* Development */
5646
5659
  } = e;
5647
- this.mode = i, this.modules = l, this.service = s, this.router = h, this.materialPath = p, this.nodeEnv = f, r && (this.dependencies = r), n && (this.materials = n), Object.assign(this.globals, c), Object.assign(this.adapter, u);
5648
- const { access: d, request: m } = this.adapter;
5649
- d && d.connect({ mode: i, router: h, request: m }), a && i !== P.Design ? this.load(a) : this.project = a;
5660
+ this.mode = i, this.modules = l, this.service = s, this.router = h, this.materialPath = p, this.nodeEnv = d, r && (this.dependencies = r), n && (this.materials = n), Object.assign(this.globals, c), Object.assign(this.adapter, u);
5661
+ const { access: f, request: m } = this.adapter;
5662
+ f && f.connect({ mode: i, router: h, request: m }), a && i !== P.Design ? this.load(a) : this.project = a;
5650
5663
  }
5651
5664
  mode;
5652
5665
  // 当前运行模式(设计/源码/预览等)
@@ -5654,7 +5667,7 @@ class gn extends si {
5654
5667
  // 全局变量
5655
5668
  modules = {};
5656
5669
  // 异步模块加载器
5657
- adapter = { request: mt, jsonp: us };
5670
+ adapter = { request: gt, jsonp: ls };
5658
5671
  // 适配器接口
5659
5672
  apis = {};
5660
5673
  // API集合
@@ -5692,7 +5705,7 @@ class gn extends si {
5692
5705
  try {
5693
5706
  i = await e.apply(e, s);
5694
5707
  } catch (n) {
5695
- ge.warn("模拟数据模版异常", n);
5708
+ xe.warn("模拟数据模版异常", n);
5696
5709
  }
5697
5710
  const r = Ae();
5698
5711
  return r || console.warn(
@@ -5715,7 +5728,7 @@ class gn extends si {
5715
5728
  if (this.project = i ? await i() : await this.service.init(e), !this.project)
5716
5729
  throw new Error("project is null");
5717
5730
  const { apis: r = [], meta: n = [], env: a = [] } = this.project, u = globalThis;
5718
- u && (u.CKEDITOR_VERSION = void 0), this.initEnv(a), this.mode === P.Raw ? await this.loadDependencies(u) : await this.loadAssets(u), this.initMock(u), this.apis = _r(r, n, this.adapter), Ws(u), Sr(r, u), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
5731
+ u && (u.CKEDITOR_VERSION = void 0), this.initEnv(a), this.mode === P.Raw ? await this.loadDependencies(u) : await this.loadAssets(u), this.initMock(u), this.apis = wr(r, n, this.adapter), zs(u), Er(r, u), e.platform !== "uniapp" && this.initRouter(), this.triggerReady();
5719
5732
  }
5720
5733
  initMock(e) {
5721
5734
  const s = Ae(e);
@@ -5740,10 +5753,10 @@ class gn extends si {
5740
5753
  libraryExports: l,
5741
5754
  libraryMap: h,
5742
5755
  materials: p,
5743
- materialExports: f,
5744
- materialMapLibrary: d,
5756
+ materialExports: d,
5757
+ materialMapLibrary: f,
5745
5758
  libraryLocaleMap: m
5746
- } = yi(
5759
+ } = Ci(
5747
5760
  s,
5748
5761
  a,
5749
5762
  u === "development"
@@ -5751,37 +5764,37 @@ class gn extends si {
5751
5764
  );
5752
5765
  Object.assign(this.libraryLocaleMap, m);
5753
5766
  for (const g of l) {
5754
- const x = i[g], S = e[g];
5755
- if (S)
5756
- r[g] = S;
5767
+ const x = i[g], b = e[g];
5768
+ if (b)
5769
+ r[g] = b;
5757
5770
  else if (x)
5758
5771
  e[g] = r[g] = await x();
5759
5772
  else {
5760
5773
  const N = h[g] || [];
5761
5774
  for (const w of N)
5762
- Ke(w) && await Ii(w, he.append(w, { v: we })), ze(w) && await zt(he.append(w, { v: we }));
5775
+ Ke(w) && await Ti(w, he.append(w, { v: we })), ze(w) && await Jt(he.append(w, { v: we }));
5763
5776
  r[g] = e[g];
5764
5777
  }
5765
- const I = m[g];
5766
- if (I) {
5767
- const N = i[I];
5768
- c[I] = N ? await N() : e[I];
5778
+ const k = m[g];
5779
+ if (k) {
5780
+ const N = i[k];
5781
+ c[k] = N ? await N() : e[k];
5769
5782
  }
5770
5783
  }
5771
5784
  if (u === "development") {
5772
5785
  for (const x of p)
5773
- await zt(he.append(x, { v: we }));
5786
+ await Jt(he.append(x, { v: we }));
5774
5787
  const g = this.materials || {};
5775
- for (const x of f) {
5776
- const S = e[d[x]], I = S?.default || S, N = ii[x];
5788
+ for (const x of d) {
5789
+ const b = e[f[x]], k = b?.default || b, N = ai[x];
5777
5790
  if (N)
5778
- I && N.forEach((w) => {
5779
- n[w] = I[w];
5791
+ k && N.forEach((w) => {
5792
+ n[w] = k[w];
5780
5793
  });
5781
5794
  else {
5782
5795
  const w = g[x] ? (await g[x]()).default : e[x];
5783
- w && I && (w.components || []).forEach((D) => {
5784
- n[D.name] = _i(D, I);
5796
+ w && k && (w.components || []).forEach((D) => {
5797
+ n[D.name] = wi(D, k);
5785
5798
  });
5786
5799
  }
5787
5800
  }
@@ -5797,30 +5810,30 @@ class gn extends si {
5797
5810
  } = i, l = a ? "" : "/", h = {
5798
5811
  path: `${l}${u}/:id`,
5799
5812
  name: Ee,
5800
- component: pt
5801
- }, p = this.getHomepage(), f = {
5813
+ component: ft
5814
+ }, p = this.getHomepage(), d = {
5802
5815
  path: l,
5803
5816
  name: He,
5804
- component: p ? pt : r.startupComponent || on,
5817
+ component: p ? ft : r.startupComponent || cn,
5805
5818
  meta: c
5806
5819
  };
5807
5820
  if (e.hasRoute(Ee) && e.removeRoute(Ee), e.hasRoute(He) && e.removeRoute(He), i.enableStaticRoute) {
5808
- const d = s?.pages || [];
5809
- Et({
5821
+ const f = s?.pages || [];
5822
+ kt({
5810
5823
  name: u,
5811
5824
  prefix: l,
5812
- pages: d,
5813
- component: pt,
5825
+ pages: f,
5826
+ component: ft,
5814
5827
  loader: this.getRenderComponent.bind(this),
5815
5828
  homepage: p?.id
5816
5829
  }).forEach((g) => {
5817
5830
  a ? e.addRoute(a, g) : e.addRoute(g);
5818
- }), p || (a ? e.addRoute(a, f) : e.addRoute(f));
5831
+ }), p || (a ? e.addRoute(a, d) : e.addRoute(d));
5819
5832
  } else
5820
- a ? (e.addRoute(a, h), e.addRoute(a, f)) : (e.addRoute(h), e.addRoute(f));
5833
+ a ? (e.addRoute(a, h), e.addRoute(a, d)) : (e.addRoute(h), e.addRoute(d));
5821
5834
  }
5822
5835
  setErrorHandler(e) {
5823
- e.config.errorHandler = pi((s, i, r) => {
5836
+ e.config.errorHandler = mi((s, i, r) => {
5824
5837
  const n = i?.$options.name, a = typeof s == "string" ? s : s?.message || s?.msg || "未知错误", u = `[ ${n} ] ${a} ${r}`;
5825
5838
  if (!["getComputedStyle", "ResizeObserver"].some((l) => u.includes(l))) {
5826
5839
  try {
@@ -5852,11 +5865,11 @@ class gn extends si {
5852
5865
  install(e) {
5853
5866
  const { libraryLocaleMap: s, libraryLocales: i } = this, { libraryOptions: r = {} } = this.options, n = e.config.globalProperties.installed || {};
5854
5867
  for (const [a, u] of Object.entries(this.library))
5855
- if (!n[a] && Ai(u)) {
5868
+ if (!n[a] && Ni(u)) {
5856
5869
  const l = { locale: i[s[a]] }, h = r[a] || {}, p = { ...l, ...h };
5857
5870
  e.use(u, p), n[a] = !0;
5858
5871
  }
5859
- e.provide($t, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$apis = this.apis, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== P.Design && this.initGlobals(this.project?.globals || {}, {
5872
+ e.provide(Ut, this), e.config.globalProperties.$provider = this, e.config.globalProperties.$apis = this.apis, e.config.globalProperties.$request = this.adapter?.request, this.options.install && e.use(this.options.install), this.adapter.access && e.use(this.adapter.access), this.project?.platform !== "uniapp" && this.mode !== P.Design && this.initGlobals(this.project?.globals || {}, {
5860
5873
  app: e,
5861
5874
  window: globalThis,
5862
5875
  adapter: this.adapter,
@@ -5943,12 +5956,12 @@ class gn extends si {
5943
5956
  apis: a,
5944
5957
  window: globalThis,
5945
5958
  ...s
5946
- }, c = Ct({
5959
+ }, c = wt({
5947
5960
  getDsl: async (l) => await this.getDsl(l) || null,
5948
5961
  getDslByUrl: async (l) => await this.getDslByUrl(l) || null,
5949
5962
  options: u
5950
5963
  });
5951
- return St({
5964
+ return Ct({
5952
5965
  ...u,
5953
5966
  dsl: e,
5954
5967
  loader: c
@@ -5967,13 +5980,13 @@ class gn extends si {
5967
5980
  async getRenderComponent(e, s) {
5968
5981
  const i = this.getFile(e);
5969
5982
  if (!i)
5970
- return ge.warn(`Can not find file: ${e}`), null;
5983
+ return xe.warn(`Can not find file: ${e}`), null;
5971
5984
  if (s && s(i), this.mode === P.Raw) {
5972
5985
  const { vtjRawDir: n = ".vtj/vue" } = this.options, a = `${n}/${e}.vue`, u = this.modules[a] || this.modules[`/src/pages/${e}.vue`];
5973
5986
  return u ? (await u())?.default : this.nodeEnv === "development" && this.adapter.startupComponent || null;
5974
5987
  }
5975
5988
  const r = await this.getDsl(i.id);
5976
- return r ? this.createDslRenderer(r).renderer : (ge.warn(`Can not find dsl: ${e}`), null);
5989
+ return r ? this.createDslRenderer(r).renderer : (xe.warn(`Can not find dsl: ${e}`), null);
5977
5990
  }
5978
5991
  /**
5979
5992
  * 定义基于URL的异步组件
@@ -5985,7 +5998,7 @@ class gn extends si {
5985
5998
  * @returns Vue异步组件
5986
5999
  */
5987
6000
  defineUrlSchemaComponent(e, s) {
5988
- return Jt(async () => {
6001
+ return Qt(async () => {
5989
6002
  const i = await this.getDslByUrl(e);
5990
6003
  return i ? (i.name = s || i.name, this.createDslRenderer(i).renderer) : null;
5991
6004
  });
@@ -5998,7 +6011,7 @@ class gn extends si {
5998
6011
  * @returns Vue异步组件
5999
6012
  */
6000
6013
  definePluginComponent(e) {
6001
- return Jt(async () => await zs(e, globalThis));
6014
+ return Qt(async () => await Qs(e, globalThis));
6002
6015
  }
6003
6016
  /**
6004
6017
  * 设置应用全局
@@ -6013,10 +6026,10 @@ class gn extends si {
6013
6026
  },
6014
6027
  s
6015
6028
  );
6016
- un(e, i);
6029
+ ln(e, i);
6017
6030
  }
6018
6031
  initI18n(e, s, i) {
6019
- dn(e, s, i);
6032
+ gn(e, s, i);
6020
6033
  }
6021
6034
  initEnv(e = []) {
6022
6035
  this.env = e.reduce(
@@ -6025,15 +6038,15 @@ class gn extends si {
6025
6038
  );
6026
6039
  }
6027
6040
  }
6028
- function jn(t) {
6029
- const e = new gn(t);
6041
+ function Dn(t) {
6042
+ const e = new vn(t);
6030
6043
  return {
6031
6044
  provider: e,
6032
6045
  onReady: (i) => e.ready(i)
6033
6046
  };
6034
6047
  }
6035
- function Xs(t = {}) {
6036
- const e = It($t, null);
6048
+ function ei(t = {}) {
6049
+ const e = At(Ut, null);
6037
6050
  if (!e)
6038
6051
  throw new Error("Can not find provider");
6039
6052
  if (e.nodeEnv === "development") {
@@ -6050,38 +6063,38 @@ function Xs(t = {}) {
6050
6063
  return e;
6051
6064
  }
6052
6065
  function Fe() {
6053
- return It($t, null)?.globals ?? {};
6066
+ return At(Ut, null)?.globals ?? {};
6054
6067
  }
6055
- function Mn() {
6068
+ function Bn() {
6056
6069
  return Fe().$store || {};
6057
6070
  }
6058
- function Dn() {
6071
+ function Hn() {
6059
6072
  return Fe().$pinia || {};
6060
6073
  }
6061
- function Bn() {
6074
+ function $n() {
6062
6075
  return Fe().$request;
6063
6076
  }
6064
- function Hn() {
6077
+ function Un() {
6065
6078
  return Fe().$libs || {};
6066
6079
  }
6067
- function $n() {
6080
+ function Gn() {
6068
6081
  return Fe().$apis || {};
6069
6082
  }
6070
- async function Un(t, e = "") {
6071
- const { name: s, urls: i = [] } = t || {}, r = i.map((u) => e + u), { css: n, js: a } = Si(r);
6072
- if (n.length && fs(n), a.length)
6073
- return await ds(a, s).catch(
6083
+ async function qn(t, e = "") {
6084
+ const { name: s, urls: i = [] } = t || {}, r = i.map((u) => e + u), { css: n, js: a } = Ei(r);
6085
+ if (n.length && ms(n), a.length)
6086
+ return await gs(a, s).catch(
6074
6087
  () => {
6075
6088
  }
6076
6089
  );
6077
6090
  }
6078
- const Zs = {
6091
+ const ti = {
6079
6092
  type: "json",
6080
6093
  validSuccess: !0,
6081
6094
  originResponse: !1,
6082
6095
  failMessage: !0,
6083
6096
  validate: (t) => t.data?.code === 0
6084
- }, xn = (t, e = "/__vtj__/api/:type.json") => (s, i, r) => t.send({
6097
+ }, bn = (t, e = "/__vtj__/api/:type.json") => (s, i, r) => t.send({
6085
6098
  url: e,
6086
6099
  method: "post",
6087
6100
  params: { type: s },
@@ -6090,8 +6103,8 @@ const Zs = {
6090
6103
  type: s,
6091
6104
  data: i
6092
6105
  },
6093
- settings: Zs
6094
- }), vn = (t, e = "/__vtj__/api/uploader.json") => async (s, i) => await t.send({
6106
+ settings: ti
6107
+ }), yn = (t, e = "/__vtj__/api/uploader.json") => async (s, i) => await t.send({
6095
6108
  url: e,
6096
6109
  method: "post",
6097
6110
  data: {
@@ -6099,12 +6112,12 @@ const Zs = {
6099
6112
  projectId: i
6100
6113
  },
6101
6114
  settings: {
6102
- ...Zs,
6115
+ ...ti,
6103
6116
  type: "data"
6104
6117
  }
6105
6118
  }).then((r) => r && r[0] ? r[0] : null).catch(() => null);
6106
- function Gn(t) {
6107
- return os({
6119
+ function Wn(t) {
6120
+ return cs({
6108
6121
  settings: {
6109
6122
  type: "json",
6110
6123
  validSuccess: !0,
@@ -6117,9 +6130,9 @@ function Gn(t) {
6117
6130
  }
6118
6131
  });
6119
6132
  }
6120
- class Ut {
6121
- constructor(e = mt) {
6122
- this.req = e, this.api = xn(e), this.uploader = vn(e);
6133
+ class Gt {
6134
+ constructor(e = gt) {
6135
+ this.req = e, this.api = bn(e), this.uploader = yn(e);
6123
6136
  }
6124
6137
  api;
6125
6138
  pluginCaches = {};
@@ -6203,10 +6216,10 @@ class Ut {
6203
6216
  return await this.api("clearStaticFiles", e).catch(() => "");
6204
6217
  }
6205
6218
  async getPluginMaterial(e) {
6206
- const { urls: s = [] } = e, i = s.filter((n) => vi(n))[0];
6219
+ const { urls: s = [] } = e, i = s.filter((n) => _i(n))[0];
6207
6220
  if (!i) return null;
6208
6221
  const r = this.pluginCaches[i];
6209
- return r || (this.pluginCaches[i] = mt.send({
6222
+ return r || (this.pluginCaches[i] = gt.send({
6210
6223
  url: i,
6211
6224
  method: "get",
6212
6225
  settings: {
@@ -6219,12 +6232,12 @@ class Ut {
6219
6232
  return console.log("BaseService.genSource", e), "";
6220
6233
  }
6221
6234
  }
6222
- const L = new fi({
6235
+ const L = new gi({
6223
6236
  type: "local",
6224
6237
  expired: 0,
6225
6238
  prefix: "__VTJ_"
6226
6239
  });
6227
- class qn extends Ut {
6240
+ class Kn extends Gt {
6228
6241
  init(e) {
6229
6242
  const s = new $e(e), i = L.get(`project_${s.id}`), r = Object.assign(s.toDsl(), i || {});
6230
6243
  return L.save(`project_${s.id}`, r), Promise.resolve(r);
@@ -6234,7 +6247,7 @@ class qn extends Ut {
6234
6247
  return L.save(`project_${s.id}`, s.toDsl()), Promise.resolve(!0);
6235
6248
  }
6236
6249
  saveMaterials(e, s) {
6237
- return L.save(`materials_${e.id}`, kt(s)), Promise.resolve(!0);
6250
+ return L.save(`materials_${e.id}`, It(s)), Promise.resolve(!0);
6238
6251
  }
6239
6252
  saveFile(e) {
6240
6253
  return L.save(`file_${e.id}`, e), Promise.resolve(!0);
@@ -6258,7 +6271,7 @@ class qn extends Ut {
6258
6271
  return Promise.resolve(!0);
6259
6272
  }
6260
6273
  getHistory(e) {
6261
- const s = L.get(`history_${e}`), i = new as(s || { id: e });
6274
+ const s = L.get(`history_${e}`), i = new us(s || { id: e });
6262
6275
  return Promise.resolve(i.toDsl());
6263
6276
  }
6264
6277
  getHistoryItem(e, s) {
@@ -6274,7 +6287,7 @@ class qn extends Ut {
6274
6287
  }), Promise.resolve(!0);
6275
6288
  }
6276
6289
  }
6277
- class bn extends Ut {
6290
+ class _n extends Gt {
6278
6291
  projects = {};
6279
6292
  materials = {};
6280
6293
  files = {};
@@ -6289,7 +6302,7 @@ class bn extends Ut {
6289
6302
  return this.projects[s.id] = s.toDsl(), Promise.resolve(!0);
6290
6303
  }
6291
6304
  saveMaterials(e, s) {
6292
- return e.id && (this.materials[e.id] = kt(s)), Promise.resolve(!0);
6305
+ return e.id && (this.materials[e.id] = It(s)), Promise.resolve(!0);
6293
6306
  }
6294
6307
  saveFile(e) {
6295
6308
  return this.files[e.id] = e, Promise.resolve(!0);
@@ -6313,7 +6326,7 @@ class bn extends Ut {
6313
6326
  return Promise.resolve(!0);
6314
6327
  }
6315
6328
  getHistory(e) {
6316
- const s = this.histories[e], i = new as(s || { id: e });
6329
+ const s = this.histories[e], i = new us(s || { id: e });
6317
6330
  return Promise.resolve(i);
6318
6331
  }
6319
6332
  getHistoryItem(e, s) {
@@ -6332,10 +6345,10 @@ class bn extends Ut {
6332
6345
  }
6333
6346
  }
6334
6347
  let Be = null;
6335
- function Wn() {
6336
- return Be || (Be = new bn(), Be);
6348
+ function zn() {
6349
+ return Be || (Be = new _n(), Be);
6337
6350
  }
6338
- class Kn extends Ut {
6351
+ class Jn extends Gt {
6339
6352
  getFileCaches = {};
6340
6353
  async getExtension() {
6341
6354
  return await this.api("getExtension", {}).catch(() => {
@@ -6352,7 +6365,7 @@ class Kn extends Ut {
6352
6365
  async saveMaterials(e, s) {
6353
6366
  return !!await this.api("saveMaterials", {
6354
6367
  project: e,
6355
- materials: kt(s)
6368
+ materials: It(s)
6356
6369
  }).catch(() => !1);
6357
6370
  }
6358
6371
  async saveFile(e) {
@@ -6393,94 +6406,94 @@ class Kn extends Ut {
6393
6406
  }
6394
6407
  }
6395
6408
  export {
6396
- In as ACCESS,
6397
- qs as ACCESS_KEY,
6398
- Ht as Access,
6399
- xi as BUILD_IN_TAGS,
6400
- mi as BUILT_IN_DIRECTIVES,
6401
- Ut as BaseService,
6402
- En as COMPOSITION_HOOKS_LIST,
6403
- Qt as CONTEXT_HOST,
6404
- Er as Context,
6409
+ Pn as ACCESS,
6410
+ Ks as ACCESS_KEY,
6411
+ $t as Access,
6412
+ yi as BUILD_IN_TAGS,
6413
+ vi as BUILT_IN_DIRECTIVES,
6414
+ Gt as BaseService,
6415
+ In as COMPOSITION_HOOKS_LIST,
6416
+ Yt as CONTEXT_HOST,
6417
+ os as Context,
6405
6418
  P as ContextMode,
6406
- gi as DATA_TYPES,
6419
+ bi as DATA_TYPES,
6407
6420
  He as HOMEPAGE_ROUTE_NAME,
6408
- hs as HTML_TAGS,
6409
- Rn as JSCodeToString,
6410
- wn as LIFE_CYCLES_LIST,
6411
- Kn as LocalService,
6412
- bn as MemoryService,
6413
- mn as NodeEnv,
6421
+ fs as HTML_TAGS,
6422
+ On as JSCodeToString,
6423
+ kn as LIFE_CYCLES_LIST,
6424
+ Jn as LocalService,
6425
+ _n as MemoryService,
6426
+ xn as NodeEnv,
6414
6427
  Ee as PAGE_ROUTE_NAME,
6415
- gn as Provider,
6416
- kn as REMOTE,
6417
- qn as StorageService,
6428
+ vn as Provider,
6429
+ An as REMOTE,
6430
+ Kn as StorageService,
6418
6431
  we as VTJ_RENDERER_VERSION,
6419
- Tn as adoptStylesToInline,
6420
- At as adoptedStyleSheets,
6421
- Fn as clearLoaderCache,
6422
- Ci as compileScopedCSS,
6423
- ki as convertCssRpx,
6424
- On as createAccess,
6425
- Vn as createAdapter,
6426
- An as createAssetScripts,
6427
- Pn as createAssetsCss,
6428
- Rr as createDataSources,
6429
- Ct as createLoader,
6430
- Wn as createMemoryService,
6432
+ Rn as adoptStylesToInline,
6433
+ Pt as adoptedStyleSheets,
6434
+ jn as clearLoaderCache,
6435
+ ki as compileScopedCSS,
6436
+ Pi as convertCssRpx,
6437
+ Ln as createAccess,
6438
+ Fn as createAdapter,
6439
+ Tn as createAssetScripts,
6440
+ Nn as createAssetsCss,
6441
+ Or as createDataSources,
6442
+ wt as createLoader,
6443
+ zn as createMemoryService,
6431
6444
  We as createMenus,
6432
- yr as createMetaApi,
6433
- Cr as createMock,
6434
- jn as createProvider,
6435
- St as createRenderer,
6436
- br as createSchemaApi,
6437
- _r as createSchemaApis,
6438
- Gn as createServiceRequest,
6439
- Hr as defaultLoader,
6445
+ Cr as createMetaApi,
6446
+ kr as createMock,
6447
+ Dn as createProvider,
6448
+ Ct as createRenderer,
6449
+ Sr as createSchemaApi,
6450
+ wr as createSchemaApis,
6451
+ Wn as createServiceRequest,
6452
+ Ur as defaultLoader,
6440
6453
  Me as fillBasePath,
6441
6454
  Ae as getMock,
6442
- Qs as getModifiers,
6443
- zs as getPlugin,
6444
- _i as getRawComponent,
6445
- Ni as isArrowFunction,
6446
- Vi as isAssignment‌,
6447
- Pi as isBuiltInTag,
6455
+ Xs as getModifiers,
6456
+ Qs as getPlugin,
6457
+ wi as getRawComponent,
6458
+ Oi as isArrowFunction,
6459
+ Li as isAssignment‌,
6460
+ Ri as isBuiltInTag,
6448
6461
  Ke as isCSSUrl,
6449
- Ri as isCallFunction,
6450
- gr as isJSCode,
6462
+ Fi as isCallFunction,
6463
+ br as isJSCode,
6451
6464
  T as isJSExpression,
6452
6465
  O as isJSFunction,
6453
- vi as isJSON,
6466
+ _i as isJSON,
6454
6467
  ze as isJSUrl,
6455
- Ti as isNativeTag,
6456
- Ai as isVuePlugin,
6457
- Ii as loadCss,
6458
- fs as loadCssUrl,
6459
- Un as loadEnhance,
6460
- ds as loadScriptUrl,
6461
- Ys as menusFilter,
6462
- wr as mockApi,
6463
- Sr as mockApis,
6464
- Ws as mockCleanup,
6468
+ Vi as isNativeTag,
6469
+ Ni as isVuePlugin,
6470
+ Ti as loadCss,
6471
+ ms as loadCssUrl,
6472
+ qn as loadEnhance,
6473
+ gs as loadScriptUrl,
6474
+ Zs as menusFilter,
6475
+ Ir as mockApi,
6476
+ Er as mockApis,
6477
+ zs as mockCleanup,
6465
6478
  Se as nodeCache,
6466
- be as nodeRender,
6467
- yi as parseDeps,
6479
+ ye as nodeRender,
6480
+ Ci as parseDeps,
6468
6481
  Re as parseExpression,
6469
- J as parseFunction,
6470
- Si as parseUrls,
6471
- $t as providerKey,
6472
- bi as removeProdFlag,
6473
- Ei as rpxToPx,
6474
- Nn as setupPageSetting,
6475
- ps as toString,
6482
+ z as parseFunction,
6483
+ Ei as parseUrls,
6484
+ Ut as providerKey,
6485
+ Si as removeProdFlag,
6486
+ Ai as rpxToPx,
6487
+ Vn as setupPageSetting,
6488
+ ds as toString,
6476
6489
  qe as triggerError,
6477
- vr as useAccess,
6478
- $n as useApis,
6490
+ _r as useAccess,
6491
+ Gn as useApis,
6479
6492
  Fe as useGlobals,
6480
- Hn as useLibs,
6481
- Ln as useMask,
6482
- Dn as usePinia,
6483
- Xs as useProvider,
6484
- Bn as useRequest,
6485
- Mn as useStore
6493
+ Un as useLibs,
6494
+ Mn as useMask,
6495
+ Hn as usePinia,
6496
+ ei as useProvider,
6497
+ $n as useRequest,
6498
+ Bn as useStore
6486
6499
  };