@datapos/datapos-development 0.3.363 → 0.3.365
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { promises as ge } from "node:fs";
|
|
2
2
|
import { nanoid as zs } from "nanoid";
|
|
3
|
-
import
|
|
3
|
+
import Mt from "node:path";
|
|
4
4
|
import { promisify as js } from "node:util";
|
|
5
5
|
import { exec as Fs, spawn as $s } from "node:child_process";
|
|
6
6
|
import { CONNECTOR_SOURCE_OPERATIONS as Bs, CONNECTOR_DESTINATION_OPERATIONS as Zs } from "@datapos/datapos-shared";
|
|
@@ -57,10 +57,10 @@ function qs(e) {
|
|
|
57
57
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
58
58
|
return Object.entries(e).filter(([r, n]) => t.indexOf(+r) === -1).map(([r, n]) => n);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function pi(e, t) {
|
|
61
61
|
return typeof t == "bigint" ? t.toString() : t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function bi(e) {
|
|
64
64
|
return {
|
|
65
65
|
get value() {
|
|
66
66
|
{
|
|
@@ -70,10 +70,10 @@ function gi(e) {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function _i(e) {
|
|
74
74
|
return e == null;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ki(e) {
|
|
77
77
|
const t = e.startsWith("^") ? 1 : 0, i = e.endsWith("$") ? e.length - 1 : e.length;
|
|
78
78
|
return e.slice(t, i);
|
|
79
79
|
}
|
|
@@ -87,13 +87,13 @@ function Hs(e, t) {
|
|
|
87
87
|
const u = i > n ? i : n, h = Number.parseInt(e.toFixed(u).replace(".", "")), d = Number.parseInt(t.toFixed(u).replace(".", ""));
|
|
88
88
|
return h % d / 10 ** u;
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const $i = Symbol("evaluating");
|
|
91
91
|
function U(e, t, i) {
|
|
92
92
|
let r;
|
|
93
93
|
Object.defineProperty(e, t, {
|
|
94
94
|
get() {
|
|
95
|
-
if (r !==
|
|
96
|
-
return r === void 0 && (r =
|
|
95
|
+
if (r !== $i)
|
|
96
|
+
return r === void 0 && (r = $i, r = i()), r;
|
|
97
97
|
},
|
|
98
98
|
set(n) {
|
|
99
99
|
Object.defineProperty(e, t, {
|
|
@@ -120,7 +120,7 @@ function Ye(...e) {
|
|
|
120
120
|
}
|
|
121
121
|
return Object.defineProperties({}, t);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Bi(e) {
|
|
124
124
|
return JSON.stringify(e);
|
|
125
125
|
}
|
|
126
126
|
function Gs(e) {
|
|
@@ -128,10 +128,10 @@ function Gs(e) {
|
|
|
128
128
|
}
|
|
129
129
|
const Ir = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
130
130
|
};
|
|
131
|
-
function
|
|
131
|
+
function Vt(e) {
|
|
132
132
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
133
133
|
}
|
|
134
|
-
const Ws =
|
|
134
|
+
const Ws = bi(() => {
|
|
135
135
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
136
136
|
return !1;
|
|
137
137
|
try {
|
|
@@ -142,13 +142,13 @@ const Ws = gi(() => {
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
function nt(e) {
|
|
145
|
-
if (
|
|
145
|
+
if (Vt(e) === !1)
|
|
146
146
|
return !1;
|
|
147
147
|
const t = e.constructor;
|
|
148
148
|
if (t === void 0 || typeof t != "function")
|
|
149
149
|
return !0;
|
|
150
150
|
const i = t.prototype;
|
|
151
|
-
return !(
|
|
151
|
+
return !(Vt(i) === !1 || Object.prototype.hasOwnProperty.call(i, "isPrototypeOf") === !1);
|
|
152
152
|
}
|
|
153
153
|
function Nr(e) {
|
|
154
154
|
return nt(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
@@ -331,7 +331,7 @@ function qe(e, t, i) {
|
|
|
331
331
|
}
|
|
332
332
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function wi(e) {
|
|
335
335
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
336
336
|
}
|
|
337
337
|
function _t(...e) {
|
|
@@ -350,7 +350,7 @@ const Lr = (e, t) => {
|
|
|
350
350
|
}), Object.defineProperty(e, "issues", {
|
|
351
351
|
value: t,
|
|
352
352
|
enumerable: !1
|
|
353
|
-
}), e.message = JSON.stringify(t,
|
|
353
|
+
}), e.message = JSON.stringify(t, pi, 2), Object.defineProperty(e, "toString", {
|
|
354
354
|
value: () => e.message,
|
|
355
355
|
enumerable: !1
|
|
356
356
|
});
|
|
@@ -382,7 +382,7 @@ function on(e, t = (i) => i.message) {
|
|
|
382
382
|
};
|
|
383
383
|
return r(e), i;
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const Si = (e) => (t, i, r, n) => {
|
|
386
386
|
const u = r ? Object.assign(r, { async: !1 }) : { async: !1 }, h = t._zod.run({ value: i, issues: [] }, u);
|
|
387
387
|
if (h instanceof Promise)
|
|
388
388
|
throw new st();
|
|
@@ -391,7 +391,7 @@ const wi = (e) => (t, i, r, n) => {
|
|
|
391
391
|
throw Ir(d, n?.callee), d;
|
|
392
392
|
}
|
|
393
393
|
return h.value;
|
|
394
|
-
},
|
|
394
|
+
}, Ti = (e) => async (t, i, r, n) => {
|
|
395
395
|
const u = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
396
396
|
let h = t._zod.run({ value: i, issues: [] }, u);
|
|
397
397
|
if (h instanceof Promise && (h = await h), h.issues.length) {
|
|
@@ -399,7 +399,7 @@ const wi = (e) => (t, i, r, n) => {
|
|
|
399
399
|
throw Ir(d, n?.callee), d;
|
|
400
400
|
}
|
|
401
401
|
return h.value;
|
|
402
|
-
},
|
|
402
|
+
}, Ht = (e) => (t, i, r) => {
|
|
403
403
|
const n = r ? { ...r, async: !1 } : { async: !1 }, u = t._zod.run({ value: i, issues: [] }, n);
|
|
404
404
|
if (u instanceof Promise)
|
|
405
405
|
throw new st();
|
|
@@ -407,26 +407,26 @@ const wi = (e) => (t, i, r, n) => {
|
|
|
407
407
|
success: !1,
|
|
408
408
|
error: new (e ?? Or)(u.issues.map((h) => qe(h, n, Ue())))
|
|
409
409
|
} : { success: !0, data: u.value };
|
|
410
|
-
}, un = /* @__PURE__ */
|
|
410
|
+
}, un = /* @__PURE__ */ Ht(Rr), Gt = (e) => async (t, i, r) => {
|
|
411
411
|
const n = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
412
412
|
let u = t._zod.run({ value: i, issues: [] }, n);
|
|
413
413
|
return u instanceof Promise && (u = await u), u.issues.length ? {
|
|
414
414
|
success: !1,
|
|
415
415
|
error: new e(u.issues.map((h) => qe(h, n, Ue())))
|
|
416
416
|
} : { success: !0, data: u.value };
|
|
417
|
-
}, cn = /* @__PURE__ */
|
|
418
|
-
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
419
|
-
return wi(e)(t, i, n);
|
|
420
|
-
}, ln = (e) => (t, i, r) => wi(e)(t, i, r), pn = (e) => async (t, i, r) => {
|
|
417
|
+
}, cn = /* @__PURE__ */ Gt(Rr), hn = (e) => (t, i, r) => {
|
|
421
418
|
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
422
419
|
return Si(e)(t, i, n);
|
|
423
|
-
},
|
|
420
|
+
}, ln = (e) => (t, i, r) => Si(e)(t, i, r), pn = (e) => async (t, i, r) => {
|
|
424
421
|
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
425
|
-
return
|
|
426
|
-
},
|
|
422
|
+
return Ti(e)(t, i, n);
|
|
423
|
+
}, fn = (e) => async (t, i, r) => Ti(e)(t, i, r), dn = (e) => (t, i, r) => {
|
|
427
424
|
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
428
425
|
return Ht(e)(t, i, n);
|
|
429
|
-
},
|
|
426
|
+
}, mn = (e) => (t, i, r) => Ht(e)(t, i, r), yn = (e) => async (t, i, r) => {
|
|
427
|
+
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
428
|
+
return Gt(e)(t, i, n);
|
|
429
|
+
}, vn = (e) => async (t, i, r) => Gt(e)(t, i, r), xn = /^[cC][^\s-]{8,}$/, gn = /^[0-9a-z]+$/, bn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, _n = /^[0-9a-vA-V]{20}$/, kn = /^[A-Za-z0-9]{27}$/, wn = /^[a-zA-Z0-9_-]{21}$/, Sn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Tn = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Zi = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Pn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Cn = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
430
430
|
function An() {
|
|
431
431
|
return new RegExp(Cn, "u");
|
|
432
432
|
}
|
|
@@ -565,7 +565,7 @@ const zn = (e) => {
|
|
|
565
565
|
var i;
|
|
566
566
|
me.init(e, t), (i = e._zod.def).when ?? (i.when = (r) => {
|
|
567
567
|
const n = r.value;
|
|
568
|
-
return !
|
|
568
|
+
return !_i(n) && n.length !== void 0;
|
|
569
569
|
}), e._zod.onattach.push((r) => {
|
|
570
570
|
const n = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
571
571
|
t.maximum < n && (r._zod.bag.maximum = t.maximum);
|
|
@@ -573,7 +573,7 @@ const zn = (e) => {
|
|
|
573
573
|
const n = r.value;
|
|
574
574
|
if (n.length <= t.maximum)
|
|
575
575
|
return;
|
|
576
|
-
const h =
|
|
576
|
+
const h = wi(n);
|
|
577
577
|
r.issues.push({
|
|
578
578
|
origin: h,
|
|
579
579
|
code: "too_big",
|
|
@@ -588,7 +588,7 @@ const zn = (e) => {
|
|
|
588
588
|
var i;
|
|
589
589
|
me.init(e, t), (i = e._zod.def).when ?? (i.when = (r) => {
|
|
590
590
|
const n = r.value;
|
|
591
|
-
return !
|
|
591
|
+
return !_i(n) && n.length !== void 0;
|
|
592
592
|
}), e._zod.onattach.push((r) => {
|
|
593
593
|
const n = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
594
594
|
t.minimum > n && (r._zod.bag.minimum = t.minimum);
|
|
@@ -596,7 +596,7 @@ const zn = (e) => {
|
|
|
596
596
|
const n = r.value;
|
|
597
597
|
if (n.length >= t.minimum)
|
|
598
598
|
return;
|
|
599
|
-
const h =
|
|
599
|
+
const h = wi(n);
|
|
600
600
|
r.issues.push({
|
|
601
601
|
origin: h,
|
|
602
602
|
code: "too_small",
|
|
@@ -611,7 +611,7 @@ const zn = (e) => {
|
|
|
611
611
|
var i;
|
|
612
612
|
me.init(e, t), (i = e._zod.def).when ?? (i.when = (r) => {
|
|
613
613
|
const n = r.value;
|
|
614
|
-
return !
|
|
614
|
+
return !_i(n) && n.length !== void 0;
|
|
615
615
|
}), e._zod.onattach.push((r) => {
|
|
616
616
|
const n = r._zod.bag;
|
|
617
617
|
n.minimum = t.length, n.maximum = t.length, n.length = t.length;
|
|
@@ -619,7 +619,7 @@ const zn = (e) => {
|
|
|
619
619
|
const n = r.value, u = n.length;
|
|
620
620
|
if (u === t.length)
|
|
621
621
|
return;
|
|
622
|
-
const h =
|
|
622
|
+
const h = wi(n), d = u > t.length;
|
|
623
623
|
r.issues.push({
|
|
624
624
|
origin: h,
|
|
625
625
|
...d ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
@@ -630,7 +630,7 @@ const zn = (e) => {
|
|
|
630
630
|
continue: !t.abort
|
|
631
631
|
});
|
|
632
632
|
};
|
|
633
|
-
}),
|
|
633
|
+
}), Wt = /* @__PURE__ */ k("$ZodCheckStringFormat", (e, t) => {
|
|
634
634
|
var i, r;
|
|
635
635
|
me.init(e, t), e._zod.onattach.push((n) => {
|
|
636
636
|
const u = n._zod.bag;
|
|
@@ -648,7 +648,7 @@ const zn = (e) => {
|
|
|
648
648
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
649
649
|
});
|
|
650
650
|
}), Kn = /* @__PURE__ */ k("$ZodCheckRegex", (e, t) => {
|
|
651
|
-
|
|
651
|
+
Wt.init(e, t), e._zod.check = (i) => {
|
|
652
652
|
t.pattern.lastIndex = 0, !t.pattern.test(i.value) && i.issues.push({
|
|
653
653
|
origin: "string",
|
|
654
654
|
code: "invalid_format",
|
|
@@ -660,9 +660,9 @@ const zn = (e) => {
|
|
|
660
660
|
});
|
|
661
661
|
};
|
|
662
662
|
}), Xn = /* @__PURE__ */ k("$ZodCheckLowerCase", (e, t) => {
|
|
663
|
-
t.pattern ?? (t.pattern = Bn),
|
|
663
|
+
t.pattern ?? (t.pattern = Bn), Wt.init(e, t);
|
|
664
664
|
}), Jn = /* @__PURE__ */ k("$ZodCheckUpperCase", (e, t) => {
|
|
665
|
-
t.pattern ?? (t.pattern = Zn),
|
|
665
|
+
t.pattern ?? (t.pattern = Zn), Wt.init(e, t);
|
|
666
666
|
}), Yn = /* @__PURE__ */ k("$ZodCheckIncludes", (e, t) => {
|
|
667
667
|
me.init(e, t);
|
|
668
668
|
const i = at(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${i}` : i);
|
|
@@ -820,7 +820,7 @@ const ra = {
|
|
|
820
820
|
vendor: "zod",
|
|
821
821
|
version: 1
|
|
822
822
|
};
|
|
823
|
-
}),
|
|
823
|
+
}), Pi = /* @__PURE__ */ k("$ZodString", (e, t) => {
|
|
824
824
|
Y.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? zn(e._zod.bag), e._zod.parse = (i, r) => {
|
|
825
825
|
if (t.coerce)
|
|
826
826
|
try {
|
|
@@ -835,7 +835,7 @@ const ra = {
|
|
|
835
835
|
}), i;
|
|
836
836
|
};
|
|
837
837
|
}), W = /* @__PURE__ */ k("$ZodStringFormat", (e, t) => {
|
|
838
|
-
|
|
838
|
+
Wt.init(e, t), Pi.init(e, t);
|
|
839
839
|
}), sa = /* @__PURE__ */ k("$ZodGUID", (e, t) => {
|
|
840
840
|
t.pattern ?? (t.pattern = Tn), W.init(e, t);
|
|
841
841
|
}), na = /* @__PURE__ */ k("$ZodUUID", (e, t) => {
|
|
@@ -852,9 +852,9 @@ const ra = {
|
|
|
852
852
|
}[t.version];
|
|
853
853
|
if (r === void 0)
|
|
854
854
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
855
|
-
t.pattern ?? (t.pattern =
|
|
855
|
+
t.pattern ?? (t.pattern = Zi(r));
|
|
856
856
|
} else
|
|
857
|
-
t.pattern ?? (t.pattern =
|
|
857
|
+
t.pattern ?? (t.pattern = Zi());
|
|
858
858
|
W.init(e, t);
|
|
859
859
|
}), aa = /* @__PURE__ */ k("$ZodEmail", (e, t) => {
|
|
860
860
|
t.pattern ?? (t.pattern = Pn), W.init(e, t);
|
|
@@ -1067,7 +1067,7 @@ const Aa = /* @__PURE__ */ k("$ZodJWT", (e, t) => {
|
|
|
1067
1067
|
inst: e
|
|
1068
1068
|
}), i);
|
|
1069
1069
|
});
|
|
1070
|
-
function
|
|
1070
|
+
function Ui(e, t, i) {
|
|
1071
1071
|
e.issues.length && t.issues.push(...rt(i, e.issues)), t.value[i] = e.value;
|
|
1072
1072
|
}
|
|
1073
1073
|
const Oa = /* @__PURE__ */ k("$ZodArray", (e, t) => {
|
|
@@ -1087,12 +1087,12 @@ const Oa = /* @__PURE__ */ k("$ZodArray", (e, t) => {
|
|
|
1087
1087
|
value: d,
|
|
1088
1088
|
issues: []
|
|
1089
1089
|
}, r);
|
|
1090
|
-
y instanceof Promise ? u.push(y.then((o) =>
|
|
1090
|
+
y instanceof Promise ? u.push(y.then((o) => Ui(o, i, h))) : Ui(y, i, h);
|
|
1091
1091
|
}
|
|
1092
1092
|
return u.length ? Promise.all(u).then(() => i) : i;
|
|
1093
1093
|
};
|
|
1094
1094
|
});
|
|
1095
|
-
function
|
|
1095
|
+
function zt(e, t, i, r) {
|
|
1096
1096
|
e.issues.length && t.issues.push(...rt(i, e.issues)), e.value === void 0 ? i in r && (t.value[i] = void 0) : t.value[i] = e.value;
|
|
1097
1097
|
}
|
|
1098
1098
|
function Zr(e) {
|
|
@@ -1119,7 +1119,7 @@ function Ur(e, t, i, r, n, u) {
|
|
|
1119
1119
|
continue;
|
|
1120
1120
|
}
|
|
1121
1121
|
const S = y.run({ value: t[w], issues: [] }, r);
|
|
1122
|
-
S instanceof Promise ? e.push(S.then((A) =>
|
|
1122
|
+
S instanceof Promise ? e.push(S.then((A) => zt(A, i, w, t))) : zt(S, i, w, t);
|
|
1123
1123
|
}
|
|
1124
1124
|
return h.length && i.issues.push({
|
|
1125
1125
|
code: "unrecognized_keys",
|
|
@@ -1140,7 +1140,7 @@ const Ra = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
});
|
|
1142
1142
|
}
|
|
1143
|
-
const r =
|
|
1143
|
+
const r = bi(() => Zr(t));
|
|
1144
1144
|
U(e._zod, "propValues", () => {
|
|
1145
1145
|
const d = t.shape, y = {};
|
|
1146
1146
|
for (const o in d) {
|
|
@@ -1153,7 +1153,7 @@ const Ra = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return y;
|
|
1155
1155
|
});
|
|
1156
|
-
const n =
|
|
1156
|
+
const n = Vt, u = t.catchall;
|
|
1157
1157
|
let h;
|
|
1158
1158
|
e._zod.parse = (d, y) => {
|
|
1159
1159
|
h ?? (h = r.value);
|
|
@@ -1169,15 +1169,15 @@ const Ra = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1169
1169
|
const w = [], S = h.shape;
|
|
1170
1170
|
for (const A of h.keys) {
|
|
1171
1171
|
const Z = S[A]._zod.run({ value: o[A], issues: [] }, y);
|
|
1172
|
-
Z instanceof Promise ? w.push(Z.then((le) =>
|
|
1172
|
+
Z instanceof Promise ? w.push(Z.then((le) => zt(le, d, A, o))) : zt(Z, d, A, o);
|
|
1173
1173
|
}
|
|
1174
1174
|
return u ? Ur(w, o, d, y, r.value, e) : w.length ? Promise.all(w).then(() => d) : d;
|
|
1175
1175
|
};
|
|
1176
1176
|
}), Da = /* @__PURE__ */ k("$ZodObjectJIT", (e, t) => {
|
|
1177
1177
|
Ra.init(e, t);
|
|
1178
|
-
const i = e._zod.parse, r =
|
|
1178
|
+
const i = e._zod.parse, r = bi(() => Zr(t)), n = (A) => {
|
|
1179
1179
|
const F = new ia(["shape", "payload", "ctx"]), Z = r.value, le = (Ae) => {
|
|
1180
|
-
const _e =
|
|
1180
|
+
const _e = Bi(Ae);
|
|
1181
1181
|
return `shape[${_e}]._zod.run({ value: input[${_e}], issues: [] }, ctx)`;
|
|
1182
1182
|
};
|
|
1183
1183
|
F.write("const input = payload.value;");
|
|
@@ -1187,7 +1187,7 @@ const Ra = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1187
1187
|
D[Ae] = `key_${se++}`;
|
|
1188
1188
|
F.write("const newResult = {};");
|
|
1189
1189
|
for (const Ae of Z.keys) {
|
|
1190
|
-
const _e = D[Ae], Ke =
|
|
1190
|
+
const _e = D[Ae], Ke = Bi(Ae);
|
|
1191
1191
|
F.write(`const ${_e} = ${le(Ae)};`), F.write(`
|
|
1192
1192
|
if (${_e}.issues.length) {
|
|
1193
1193
|
payload.issues = payload.issues.concat(${_e}.issues.map(iss => ({
|
|
@@ -1212,7 +1212,7 @@ const Ra = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1212
1212
|
return (Ae, _e) => dt(A, Ae, _e);
|
|
1213
1213
|
};
|
|
1214
1214
|
let u;
|
|
1215
|
-
const h =
|
|
1215
|
+
const h = Vt, d = !Er.jitless, o = d && Ws.value, w = t.catchall;
|
|
1216
1216
|
let S;
|
|
1217
1217
|
e._zod.parse = (A, F) => {
|
|
1218
1218
|
S ?? (S = r.value);
|
|
@@ -1225,7 +1225,7 @@ const Ra = /* @__PURE__ */ k("$ZodObject", (e, t) => {
|
|
|
1225
1225
|
}), A);
|
|
1226
1226
|
};
|
|
1227
1227
|
});
|
|
1228
|
-
function
|
|
1228
|
+
function qi(e, t, i, r) {
|
|
1229
1229
|
for (const u of e)
|
|
1230
1230
|
if (u.issues.length === 0)
|
|
1231
1231
|
return t.value = u.value, t;
|
|
@@ -1244,7 +1244,7 @@ const Ma = /* @__PURE__ */ k("$ZodUnion", (e, t) => {
|
|
|
1244
1244
|
}), U(e._zod, "pattern", () => {
|
|
1245
1245
|
if (t.options.every((n) => n._zod.pattern)) {
|
|
1246
1246
|
const n = t.options.map((u) => u._zod.pattern);
|
|
1247
|
-
return new RegExp(`^(${n.map((u) =>
|
|
1247
|
+
return new RegExp(`^(${n.map((u) => ki(u.source)).join("|")})$`);
|
|
1248
1248
|
}
|
|
1249
1249
|
});
|
|
1250
1250
|
const i = t.options.length === 1, r = t.options[0]._zod.run;
|
|
@@ -1266,15 +1266,15 @@ const Ma = /* @__PURE__ */ k("$ZodUnion", (e, t) => {
|
|
|
1266
1266
|
d.push(o);
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
return h ? Promise.all(d).then((y) =>
|
|
1269
|
+
return h ? Promise.all(d).then((y) => qi(y, n, e, u)) : qi(d, n, e, u);
|
|
1270
1270
|
};
|
|
1271
1271
|
}), Va = /* @__PURE__ */ k("$ZodIntersection", (e, t) => {
|
|
1272
1272
|
Y.init(e, t), e._zod.parse = (i, r) => {
|
|
1273
1273
|
const n = i.value, u = t.left._zod.run({ value: n, issues: [] }, r), h = t.right._zod.run({ value: n, issues: [] }, r);
|
|
1274
|
-
return u instanceof Promise || h instanceof Promise ? Promise.all([u, h]).then(([y, o]) =>
|
|
1274
|
+
return u instanceof Promise || h instanceof Promise ? Promise.all([u, h]).then(([y, o]) => Hi(i, y, o)) : Hi(i, u, h);
|
|
1275
1275
|
};
|
|
1276
1276
|
});
|
|
1277
|
-
function
|
|
1277
|
+
function fi(e, t) {
|
|
1278
1278
|
if (e === t)
|
|
1279
1279
|
return { valid: !0, data: e };
|
|
1280
1280
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
@@ -1282,7 +1282,7 @@ function pi(e, t) {
|
|
|
1282
1282
|
if (nt(e) && nt(t)) {
|
|
1283
1283
|
const i = Object.keys(t), r = Object.keys(e).filter((u) => i.indexOf(u) !== -1), n = { ...e, ...t };
|
|
1284
1284
|
for (const u of r) {
|
|
1285
|
-
const h =
|
|
1285
|
+
const h = fi(e[u], t[u]);
|
|
1286
1286
|
if (!h.valid)
|
|
1287
1287
|
return {
|
|
1288
1288
|
valid: !1,
|
|
@@ -1297,7 +1297,7 @@ function pi(e, t) {
|
|
|
1297
1297
|
return { valid: !1, mergeErrorPath: [] };
|
|
1298
1298
|
const i = [];
|
|
1299
1299
|
for (let r = 0; r < e.length; r++) {
|
|
1300
|
-
const n = e[r], u = t[r], h =
|
|
1300
|
+
const n = e[r], u = t[r], h = fi(n, u);
|
|
1301
1301
|
if (!h.valid)
|
|
1302
1302
|
return {
|
|
1303
1303
|
valid: !1,
|
|
@@ -1309,10 +1309,10 @@ function pi(e, t) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
return { valid: !1, mergeErrorPath: [] };
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Hi(e, t, i) {
|
|
1313
1313
|
if (t.issues.length && e.issues.push(...t.issues), i.issues.length && e.issues.push(...i.issues), it(e))
|
|
1314
1314
|
return e;
|
|
1315
|
-
const r =
|
|
1315
|
+
const r = fi(t.value, i.value);
|
|
1316
1316
|
if (!r.valid)
|
|
1317
1317
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1318
1318
|
return e.value = r.data, e;
|
|
@@ -1412,24 +1412,24 @@ const za = /* @__PURE__ */ k("$ZodRecord", (e, t) => {
|
|
|
1412
1412
|
return i.value = n, i;
|
|
1413
1413
|
};
|
|
1414
1414
|
});
|
|
1415
|
-
function
|
|
1415
|
+
function Gi(e, t) {
|
|
1416
1416
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1417
1417
|
}
|
|
1418
1418
|
const Ba = /* @__PURE__ */ k("$ZodOptional", (e, t) => {
|
|
1419
1419
|
Y.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", U(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), U(e._zod, "pattern", () => {
|
|
1420
1420
|
const i = t.innerType._zod.pattern;
|
|
1421
|
-
return i ? new RegExp(`^(${
|
|
1421
|
+
return i ? new RegExp(`^(${ki(i.source)})?$`) : void 0;
|
|
1422
1422
|
}), e._zod.parse = (i, r) => {
|
|
1423
1423
|
if (t.innerType._zod.optin === "optional") {
|
|
1424
1424
|
const n = t.innerType._zod.run(i, r);
|
|
1425
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1425
|
+
return n instanceof Promise ? n.then((u) => Gi(u, i.value)) : Gi(n, i.value);
|
|
1426
1426
|
}
|
|
1427
1427
|
return i.value === void 0 ? i : t.innerType._zod.run(i, r);
|
|
1428
1428
|
};
|
|
1429
1429
|
}), Za = /* @__PURE__ */ k("$ZodNullable", (e, t) => {
|
|
1430
1430
|
Y.init(e, t), U(e._zod, "optin", () => t.innerType._zod.optin), U(e._zod, "optout", () => t.innerType._zod.optout), U(e._zod, "pattern", () => {
|
|
1431
1431
|
const i = t.innerType._zod.pattern;
|
|
1432
|
-
return i ? new RegExp(`^(${
|
|
1432
|
+
return i ? new RegExp(`^(${ki(i.source)}|null)$`) : void 0;
|
|
1433
1433
|
}), U(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (i, r) => i.value === null ? i : t.innerType._zod.run(i, r);
|
|
1434
1434
|
}), Ua = /* @__PURE__ */ k("$ZodDefault", (e, t) => {
|
|
1435
1435
|
Y.init(e, t), e._zod.optin = "optional", U(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (i, r) => {
|
|
@@ -1438,10 +1438,10 @@ const Ba = /* @__PURE__ */ k("$ZodOptional", (e, t) => {
|
|
|
1438
1438
|
if (i.value === void 0)
|
|
1439
1439
|
return i.value = t.defaultValue, i;
|
|
1440
1440
|
const n = t.innerType._zod.run(i, r);
|
|
1441
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1441
|
+
return n instanceof Promise ? n.then((u) => Wi(u, t)) : Wi(n, t);
|
|
1442
1442
|
};
|
|
1443
1443
|
});
|
|
1444
|
-
function
|
|
1444
|
+
function Wi(e, t) {
|
|
1445
1445
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1446
1446
|
}
|
|
1447
1447
|
const qa = /* @__PURE__ */ k("$ZodPrefault", (e, t) => {
|
|
@@ -1452,10 +1452,10 @@ const qa = /* @__PURE__ */ k("$ZodPrefault", (e, t) => {
|
|
|
1452
1452
|
return i ? new Set([...i].filter((r) => r !== void 0)) : void 0;
|
|
1453
1453
|
}), e._zod.parse = (i, r) => {
|
|
1454
1454
|
const n = t.innerType._zod.run(i, r);
|
|
1455
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1455
|
+
return n instanceof Promise ? n.then((u) => Ki(u, e)) : Ki(n, e);
|
|
1456
1456
|
};
|
|
1457
1457
|
});
|
|
1458
|
-
function
|
|
1458
|
+
function Ki(e, t) {
|
|
1459
1459
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1460
1460
|
code: "invalid_type",
|
|
1461
1461
|
expected: "nonoptional",
|
|
@@ -1500,21 +1500,21 @@ const Ka = /* @__PURE__ */ k("$ZodReadonly", (e, t) => {
|
|
|
1500
1500
|
if (r.direction === "backward")
|
|
1501
1501
|
return t.innerType._zod.run(i, r);
|
|
1502
1502
|
const n = t.innerType._zod.run(i, r);
|
|
1503
|
-
return n instanceof Promise ? n.then(
|
|
1503
|
+
return n instanceof Promise ? n.then(Xi) : Xi(n);
|
|
1504
1504
|
};
|
|
1505
1505
|
});
|
|
1506
|
-
function
|
|
1506
|
+
function Xi(e) {
|
|
1507
1507
|
return e.value = Object.freeze(e.value), e;
|
|
1508
1508
|
}
|
|
1509
1509
|
const Xa = /* @__PURE__ */ k("$ZodCustom", (e, t) => {
|
|
1510
1510
|
me.init(e, t), Y.init(e, t), e._zod.parse = (i, r) => i, e._zod.check = (i) => {
|
|
1511
1511
|
const r = i.value, n = t.fn(r);
|
|
1512
1512
|
if (n instanceof Promise)
|
|
1513
|
-
return n.then((u) =>
|
|
1514
|
-
|
|
1513
|
+
return n.then((u) => Ji(u, i, r, e));
|
|
1514
|
+
Ji(n, i, r, e);
|
|
1515
1515
|
};
|
|
1516
1516
|
});
|
|
1517
|
-
function
|
|
1517
|
+
function Ji(e, t, i, r) {
|
|
1518
1518
|
if (!e) {
|
|
1519
1519
|
const n = {
|
|
1520
1520
|
code: "custom",
|
|
@@ -1529,7 +1529,7 @@ function Xi(e, t, i, r) {
|
|
|
1529
1529
|
r._zod.def.params && (n.params = r._zod.def.params), t.issues.push(_t(n));
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
var
|
|
1532
|
+
var Yi;
|
|
1533
1533
|
class Ja {
|
|
1534
1534
|
constructor() {
|
|
1535
1535
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
@@ -1567,7 +1567,7 @@ class Ja {
|
|
|
1567
1567
|
function Ya() {
|
|
1568
1568
|
return new Ja();
|
|
1569
1569
|
}
|
|
1570
|
-
(
|
|
1570
|
+
(Yi = globalThis).__zod_globalRegistry ?? (Yi.__zod_globalRegistry = Ya());
|
|
1571
1571
|
const Lt = globalThis.__zod_globalRegistry;
|
|
1572
1572
|
function Qa(e, t) {
|
|
1573
1573
|
return new e({
|
|
@@ -1584,7 +1584,7 @@ function eo(e, t) {
|
|
|
1584
1584
|
...R(t)
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function Qi(e, t) {
|
|
1588
1588
|
return new e({
|
|
1589
1589
|
type: "string",
|
|
1590
1590
|
format: "guid",
|
|
@@ -1845,7 +1845,7 @@ function Io(e, t) {
|
|
|
1845
1845
|
...R(t)
|
|
1846
1846
|
});
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function er(e, t) {
|
|
1849
1849
|
return new jr({
|
|
1850
1850
|
check: "less_than",
|
|
1851
1851
|
...R(t),
|
|
@@ -1853,7 +1853,7 @@ function Qi(e, t) {
|
|
|
1853
1853
|
inclusive: !1
|
|
1854
1854
|
});
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function ni(e, t) {
|
|
1857
1857
|
return new jr({
|
|
1858
1858
|
check: "less_than",
|
|
1859
1859
|
...R(t),
|
|
@@ -1861,7 +1861,7 @@ function si(e, t) {
|
|
|
1861
1861
|
inclusive: !0
|
|
1862
1862
|
});
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1864
|
+
function tr(e, t) {
|
|
1865
1865
|
return new Fr({
|
|
1866
1866
|
check: "greater_than",
|
|
1867
1867
|
...R(t),
|
|
@@ -1869,7 +1869,7 @@ function er(e, t) {
|
|
|
1869
1869
|
inclusive: !1
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function ai(e, t) {
|
|
1873
1873
|
return new Fr({
|
|
1874
1874
|
check: "greater_than",
|
|
1875
1875
|
...R(t),
|
|
@@ -1877,7 +1877,7 @@ function ni(e, t) {
|
|
|
1877
1877
|
inclusive: !0
|
|
1878
1878
|
});
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1880
|
+
function ir(e, t) {
|
|
1881
1881
|
return new Un({
|
|
1882
1882
|
check: "multiple_of",
|
|
1883
1883
|
...R(t),
|
|
@@ -1891,7 +1891,7 @@ function qr(e, t) {
|
|
|
1891
1891
|
maximum: e
|
|
1892
1892
|
});
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function jt(e, t) {
|
|
1895
1895
|
return new Gn({
|
|
1896
1896
|
check: "min_length",
|
|
1897
1897
|
...R(t),
|
|
@@ -2044,13 +2044,13 @@ const eu = (e, t) => {
|
|
|
2044
2044
|
},
|
|
2045
2045
|
addIssue: {
|
|
2046
2046
|
value: (i) => {
|
|
2047
|
-
e.issues.push(i), e.message = JSON.stringify(e.issues,
|
|
2047
|
+
e.issues.push(i), e.message = JSON.stringify(e.issues, pi, 2);
|
|
2048
2048
|
}
|
|
2049
2049
|
// enumerable: false,
|
|
2050
2050
|
},
|
|
2051
2051
|
addIssues: {
|
|
2052
2052
|
value: (i) => {
|
|
2053
|
-
e.issues.push(...i), e.message = JSON.stringify(e.issues,
|
|
2053
|
+
e.issues.push(...i), e.message = JSON.stringify(e.issues, pi, 2);
|
|
2054
2054
|
}
|
|
2055
2055
|
// enumerable: false,
|
|
2056
2056
|
},
|
|
@@ -2063,12 +2063,12 @@ const eu = (e, t) => {
|
|
|
2063
2063
|
});
|
|
2064
2064
|
}, Pe = k("ZodError", eu, {
|
|
2065
2065
|
Parent: Error
|
|
2066
|
-
}), tu = /* @__PURE__ */
|
|
2066
|
+
}), tu = /* @__PURE__ */ Si(Pe), iu = /* @__PURE__ */ Ti(Pe), ru = /* @__PURE__ */ Ht(Pe), su = /* @__PURE__ */ Gt(Pe), nu = /* @__PURE__ */ hn(Pe), au = /* @__PURE__ */ ln(Pe), ou = /* @__PURE__ */ pn(Pe), uu = /* @__PURE__ */ fn(Pe), cu = /* @__PURE__ */ dn(Pe), hu = /* @__PURE__ */ mn(Pe), lu = /* @__PURE__ */ yn(Pe), pu = /* @__PURE__ */ vn(Pe), ee = /* @__PURE__ */ k("ZodType", (e, t) => (Y.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(Ye(t, {
|
|
2067
2067
|
checks: [
|
|
2068
2068
|
...t.checks ?? [],
|
|
2069
2069
|
...i.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2070
2070
|
]
|
|
2071
|
-
})), e.clone = (i, r) => Ge(e, i, r), e.brand = () => e, e.register = ((i, r) => (i.add(e, r), e)), e.parse = (i, r) => tu(e, i, r, { callee: e.parse }), e.safeParse = (i, r) => ru(e, i, r), e.parseAsync = async (i, r) => iu(e, i, r, { callee: e.parseAsync }), e.safeParseAsync = async (i, r) => su(e, i, r), e.spa = e.safeParseAsync, e.encode = (i, r) => nu(e, i, r), e.decode = (i, r) => au(e, i, r), e.encodeAsync = async (i, r) => ou(e, i, r), e.decodeAsync = async (i, r) => uu(e, i, r), e.safeEncode = (i, r) => cu(e, i, r), e.safeDecode = (i, r) => hu(e, i, r), e.safeEncodeAsync = async (i, r) => lu(e, i, r), e.safeDecodeAsync = async (i, r) => pu(e, i, r), e.refine = (i, r) => e.check(sc(i, r)), e.superRefine = (i) => e.check(nc(i)), e.overwrite = (i) => e.check(ht(i)), e.optional = () =>
|
|
2071
|
+
})), e.clone = (i, r) => Ge(e, i, r), e.brand = () => e, e.register = ((i, r) => (i.add(e, r), e)), e.parse = (i, r) => tu(e, i, r, { callee: e.parse }), e.safeParse = (i, r) => ru(e, i, r), e.parseAsync = async (i, r) => iu(e, i, r, { callee: e.parseAsync }), e.safeParseAsync = async (i, r) => su(e, i, r), e.spa = e.safeParseAsync, e.encode = (i, r) => nu(e, i, r), e.decode = (i, r) => au(e, i, r), e.encodeAsync = async (i, r) => ou(e, i, r), e.decodeAsync = async (i, r) => uu(e, i, r), e.safeEncode = (i, r) => cu(e, i, r), e.safeDecode = (i, r) => hu(e, i, r), e.safeEncodeAsync = async (i, r) => lu(e, i, r), e.safeDecodeAsync = async (i, r) => pu(e, i, r), e.refine = (i, r) => e.check(sc(i, r)), e.superRefine = (i) => e.check(nc(i)), e.overwrite = (i) => e.check(ht(i)), e.optional = () => ar(e), e.nullable = () => or(e), e.nullish = () => ar(or(e)), e.nonoptional = (i) => Ju(e, i), e.array = () => He(e), e.or = (i) => ae([e, i]), e.and = (i) => $u(e, i), e.transform = (i) => ur(e, qu(i)), e.default = (i) => Wu(e, i), e.prefault = (i) => Xu(e, i), e.catch = (i) => Qu(e, i), e.pipe = (i) => ur(e, i), e.readonly = () => ic(e), e.describe = (i) => {
|
|
2072
2072
|
const r = e.clone();
|
|
2073
2073
|
return Lt.add(r, { description: i }), r;
|
|
2074
2074
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2082,11 +2082,11 @@ const eu = (e, t) => {
|
|
|
2082
2082
|
const r = e.clone();
|
|
2083
2083
|
return Lt.add(r, i[0]), r;
|
|
2084
2084
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Gr = /* @__PURE__ */ k("_ZodString", (e, t) => {
|
|
2085
|
-
|
|
2085
|
+
Pi.init(e, t), ee.init(e, t);
|
|
2086
2086
|
const i = e._zod.bag;
|
|
2087
|
-
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(No(...r)), e.includes = (...r) => e.check(Ro(...r)), e.startsWith = (...r) => e.check(Do(...r)), e.endsWith = (...r) => e.check(Mo(...r)), e.min = (...r) => e.check(
|
|
2087
|
+
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(No(...r)), e.includes = (...r) => e.check(Ro(...r)), e.startsWith = (...r) => e.check(Do(...r)), e.endsWith = (...r) => e.check(Mo(...r)), e.min = (...r) => e.check(jt(...r)), e.max = (...r) => e.check(qr(...r)), e.length = (...r) => e.check(Hr(...r)), e.nonempty = (...r) => e.check(jt(1, ...r)), e.lowercase = (r) => e.check(Lo(r)), e.uppercase = (r) => e.check(Oo(r)), e.trim = () => e.check(zo()), e.normalize = (...r) => e.check(Vo(...r)), e.toLowerCase = () => e.check(jo()), e.toUpperCase = () => e.check(Fo()), e.slugify = () => e.check($o());
|
|
2088
2088
|
}), fu = /* @__PURE__ */ k("ZodString", (e, t) => {
|
|
2089
|
-
|
|
2089
|
+
Pi.init(e, t), Gr.init(e, t), e.email = (i) => e.check(eo(du, i)), e.url = (i) => e.check(no(mu, i)), e.jwt = (i) => e.check(_o(Iu, i)), e.emoji = (i) => e.check(ao(yu, i)), e.guid = (i) => e.check(Qi(rr, i)), e.uuid = (i) => e.check(to(Ot, i)), e.uuidv4 = (i) => e.check(io(Ot, i)), e.uuidv6 = (i) => e.check(ro(Ot, i)), e.uuidv7 = (i) => e.check(so(Ot, i)), e.nanoid = (i) => e.check(oo(vu, i)), e.guid = (i) => e.check(Qi(rr, i)), e.cuid = (i) => e.check(uo(xu, i)), e.cuid2 = (i) => e.check(co(gu, i)), e.ulid = (i) => e.check(ho(bu, i)), e.base64 = (i) => e.check(xo(Cu, i)), e.base64url = (i) => e.check(go(Au, i)), e.xid = (i) => e.check(lo(_u, i)), e.ksuid = (i) => e.check(po(ku, i)), e.ipv4 = (i) => e.check(fo(wu, i)), e.ipv6 = (i) => e.check(mo(Su, i)), e.cidrv4 = (i) => e.check(yo(Tu, i)), e.cidrv6 = (i) => e.check(vo(Pu, i)), e.e164 = (i) => e.check(bo(Eu, i)), e.datetime = (i) => e.check(Go(i)), e.date = (i) => e.check(Ko(i)), e.time = (i) => e.check(Jo(i)), e.duration = (i) => e.check(Qo(i));
|
|
2090
2090
|
});
|
|
2091
2091
|
function O(e) {
|
|
2092
2092
|
return Qa(fu, e);
|
|
@@ -2095,7 +2095,7 @@ const Q = /* @__PURE__ */ k("ZodStringFormat", (e, t) => {
|
|
|
2095
2095
|
W.init(e, t), Gr.init(e, t);
|
|
2096
2096
|
}), du = /* @__PURE__ */ k("ZodEmail", (e, t) => {
|
|
2097
2097
|
aa.init(e, t), Q.init(e, t);
|
|
2098
|
-
}),
|
|
2098
|
+
}), rr = /* @__PURE__ */ k("ZodGUID", (e, t) => {
|
|
2099
2099
|
sa.init(e, t), Q.init(e, t);
|
|
2100
2100
|
}), Ot = /* @__PURE__ */ k("ZodUUID", (e, t) => {
|
|
2101
2101
|
na.init(e, t), Q.init(e, t);
|
|
@@ -2132,7 +2132,7 @@ const Q = /* @__PURE__ */ k("ZodStringFormat", (e, t) => {
|
|
|
2132
2132
|
}), Iu = /* @__PURE__ */ k("ZodJWT", (e, t) => {
|
|
2133
2133
|
Aa.init(e, t), Q.init(e, t);
|
|
2134
2134
|
}), Wr = /* @__PURE__ */ k("ZodNumber", (e, t) => {
|
|
2135
|
-
Br.init(e, t), ee.init(e, t), e.gt = (r, n) => e.check(
|
|
2135
|
+
Br.init(e, t), ee.init(e, t), e.gt = (r, n) => e.check(tr(r, n)), e.gte = (r, n) => e.check(ai(r, n)), e.min = (r, n) => e.check(ai(r, n)), e.lt = (r, n) => e.check(er(r, n)), e.lte = (r, n) => e.check(ni(r, n)), e.max = (r, n) => e.check(ni(r, n)), e.int = (r) => e.check(sr(r)), e.safe = (r) => e.check(sr(r)), e.positive = (r) => e.check(tr(0, r)), e.nonnegative = (r) => e.check(ai(0, r)), e.negative = (r) => e.check(er(0, r)), e.nonpositive = (r) => e.check(ni(0, r)), e.multipleOf = (r, n) => e.check(ir(r, n)), e.step = (r, n) => e.check(ir(r, n)), e.finite = () => e;
|
|
2136
2136
|
const i = e._zod.bag;
|
|
2137
2137
|
e.minValue = Math.max(i.minimum ?? Number.NEGATIVE_INFINITY, i.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(i.maximum ?? Number.POSITIVE_INFINITY, i.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (i.format ?? "").includes("int") || Number.isSafeInteger(i.multipleOf ?? 0.5), e.isFinite = !0, e.format = i.format ?? null;
|
|
2138
2138
|
});
|
|
@@ -2142,7 +2142,7 @@ function De(e) {
|
|
|
2142
2142
|
const Nu = /* @__PURE__ */ k("ZodNumberFormat", (e, t) => {
|
|
2143
2143
|
Ea.init(e, t), Wr.init(e, t);
|
|
2144
2144
|
});
|
|
2145
|
-
function
|
|
2145
|
+
function sr(e) {
|
|
2146
2146
|
return Co(Nu, e);
|
|
2147
2147
|
}
|
|
2148
2148
|
const Lu = /* @__PURE__ */ k("ZodBoolean", (e, t) => {
|
|
@@ -2154,7 +2154,7 @@ function Ou(e) {
|
|
|
2154
2154
|
const Ru = /* @__PURE__ */ k("ZodUnknown", (e, t) => {
|
|
2155
2155
|
Na.init(e, t), ee.init(e, t);
|
|
2156
2156
|
});
|
|
2157
|
-
function
|
|
2157
|
+
function nr() {
|
|
2158
2158
|
return Eo(Ru);
|
|
2159
2159
|
}
|
|
2160
2160
|
const Du = /* @__PURE__ */ k("ZodNever", (e, t) => {
|
|
@@ -2164,13 +2164,13 @@ function Mu(e) {
|
|
|
2164
2164
|
return Io(Du, e);
|
|
2165
2165
|
}
|
|
2166
2166
|
const Vu = /* @__PURE__ */ k("ZodArray", (e, t) => {
|
|
2167
|
-
Oa.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, r) => e.check(
|
|
2167
|
+
Oa.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, r) => e.check(jt(i, r)), e.nonempty = (i) => e.check(jt(1, i)), e.max = (i, r) => e.check(qr(i, r)), e.length = (i, r) => e.check(Hr(i, r)), e.unwrap = () => e.element;
|
|
2168
2168
|
});
|
|
2169
2169
|
function He(e, t) {
|
|
2170
2170
|
return Bo(Vu, e, t);
|
|
2171
2171
|
}
|
|
2172
2172
|
const zu = /* @__PURE__ */ k("ZodObject", (e, t) => {
|
|
2173
|
-
Da.init(e, t), ee.init(e, t), U(e, "shape", () => t.shape), e.keyof = () =>
|
|
2173
|
+
Da.init(e, t), ee.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Kt(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: nr() }), e.loose = () => e.clone({ ...e._zod.def, catchall: nr() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Mu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => en(e, i), e.safeExtend = (i) => tn(e, i), e.merge = (i) => rn(e, i), e.pick = (i) => Ys(e, i), e.omit = (i) => Qs(e, i), e.partial = (...i) => sn(Kr, e, i[0]), e.required = (...i) => nn(Xr, e, i[0]);
|
|
2174
2174
|
});
|
|
2175
2175
|
function Ne(e, t) {
|
|
2176
2176
|
const i = {
|
|
@@ -2211,7 +2211,7 @@ function be(e, t, i) {
|
|
|
2211
2211
|
...R(i)
|
|
2212
2212
|
});
|
|
2213
2213
|
}
|
|
2214
|
-
const
|
|
2214
|
+
const di = /* @__PURE__ */ k("ZodEnum", (e, t) => {
|
|
2215
2215
|
ja.init(e, t), ee.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2216
2216
|
const i = new Set(Object.keys(t.entries));
|
|
2217
2217
|
e.extract = (r, n) => {
|
|
@@ -2221,7 +2221,7 @@ const fi = /* @__PURE__ */ k("ZodEnum", (e, t) => {
|
|
|
2221
2221
|
u[h] = t.entries[h];
|
|
2222
2222
|
else
|
|
2223
2223
|
throw new Error(`Key ${h} not found in enum`);
|
|
2224
|
-
return new
|
|
2224
|
+
return new di({
|
|
2225
2225
|
...t,
|
|
2226
2226
|
checks: [],
|
|
2227
2227
|
...R(n),
|
|
@@ -2234,7 +2234,7 @@ const fi = /* @__PURE__ */ k("ZodEnum", (e, t) => {
|
|
|
2234
2234
|
delete u[h];
|
|
2235
2235
|
else
|
|
2236
2236
|
throw new Error(`Key ${h} not found in enum`);
|
|
2237
|
-
return new
|
|
2237
|
+
return new di({
|
|
2238
2238
|
...t,
|
|
2239
2239
|
checks: [],
|
|
2240
2240
|
...R(n),
|
|
@@ -2242,9 +2242,9 @@ const fi = /* @__PURE__ */ k("ZodEnum", (e, t) => {
|
|
|
2242
2242
|
});
|
|
2243
2243
|
};
|
|
2244
2244
|
});
|
|
2245
|
-
function
|
|
2245
|
+
function Kt(e, t) {
|
|
2246
2246
|
const i = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2247
|
-
return new
|
|
2247
|
+
return new di({
|
|
2248
2248
|
type: "enum",
|
|
2249
2249
|
entries: i,
|
|
2250
2250
|
...R(t)
|
|
@@ -2291,7 +2291,7 @@ function qu(e) {
|
|
|
2291
2291
|
const Kr = /* @__PURE__ */ k("ZodOptional", (e, t) => {
|
|
2292
2292
|
Ba.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2293
2293
|
});
|
|
2294
|
-
function
|
|
2294
|
+
function ar(e) {
|
|
2295
2295
|
return new Kr({
|
|
2296
2296
|
type: "optional",
|
|
2297
2297
|
innerType: e
|
|
@@ -2300,7 +2300,7 @@ function nr(e) {
|
|
|
2300
2300
|
const Hu = /* @__PURE__ */ k("ZodNullable", (e, t) => {
|
|
2301
2301
|
Za.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2302
2302
|
});
|
|
2303
|
-
function
|
|
2303
|
+
function or(e) {
|
|
2304
2304
|
return new Hu({
|
|
2305
2305
|
type: "nullable",
|
|
2306
2306
|
innerType: e
|
|
@@ -2353,7 +2353,7 @@ function Qu(e, t) {
|
|
|
2353
2353
|
const ec = /* @__PURE__ */ k("ZodPipe", (e, t) => {
|
|
2354
2354
|
Wa.init(e, t), ee.init(e, t), e.in = t.in, e.out = t.out;
|
|
2355
2355
|
});
|
|
2356
|
-
function
|
|
2356
|
+
function ur(e, t) {
|
|
2357
2357
|
return new ec({
|
|
2358
2358
|
type: "pipe",
|
|
2359
2359
|
in: e,
|
|
@@ -2379,7 +2379,7 @@ function sc(e, t = {}) {
|
|
|
2379
2379
|
function nc(e) {
|
|
2380
2380
|
return Uo(e);
|
|
2381
2381
|
}
|
|
2382
|
-
const ac = ["amber", "green", "red", "other"], oc =
|
|
2382
|
+
const ac = ["amber", "green", "red", "other"], oc = Kt(ac), uc = ["alpha", "beta", "generalAvailability", "notApplicable", "preAlpha", "proposed", "releaseCandidate", "unavailable", "underReview"], cc = Kt(uc), hc = [
|
|
2383
2383
|
"app",
|
|
2384
2384
|
"connector",
|
|
2385
2385
|
"connectorConnection",
|
|
@@ -2403,7 +2403,7 @@ const ac = ["amber", "green", "red", "other"], oc = Wt(ac), uc = ["alpha", "beta
|
|
|
2403
2403
|
"presenter",
|
|
2404
2404
|
"presenterPresentation",
|
|
2405
2405
|
"tool"
|
|
2406
|
-
], lc =
|
|
2406
|
+
], lc = Kt(hc), pc = ae([b("en-au"), b("en-gb"), b("en-us"), b("es-es")]), fc = be(pc, O()), dc = Ne({
|
|
2407
2407
|
id: O(),
|
|
2408
2408
|
color: oc,
|
|
2409
2409
|
label: O()
|
|
@@ -2489,7 +2489,7 @@ const ac = ["amber", "green", "red", "other"], oc = Wt(ac), uc = ["alpha", "beta
|
|
|
2489
2489
|
b("presenter"),
|
|
2490
2490
|
b("presenterPresentation"),
|
|
2491
2491
|
b("tool")
|
|
2492
|
-
]),
|
|
2492
|
+
]), cr = De(), Cc = Ne({
|
|
2493
2493
|
id: O(),
|
|
2494
2494
|
color: Sc,
|
|
2495
2495
|
label: O()
|
|
@@ -2505,10 +2505,10 @@ const ac = ["amber", "green", "red", "other"], oc = Wt(ac), uc = ["alpha", "beta
|
|
|
2505
2505
|
id: O(),
|
|
2506
2506
|
label: be(O(), O()),
|
|
2507
2507
|
description: be(O(), O()),
|
|
2508
|
-
firstCreatedAt:
|
|
2508
|
+
firstCreatedAt: cr.optional(),
|
|
2509
2509
|
icon: O().optional(),
|
|
2510
2510
|
iconDark: O().optional(),
|
|
2511
|
-
lastUpdatedAt:
|
|
2511
|
+
lastUpdatedAt: cr.optional(),
|
|
2512
2512
|
status: Cc.optional(),
|
|
2513
2513
|
statusId: Tc,
|
|
2514
2514
|
typeId: Pc
|
|
@@ -2556,7 +2556,7 @@ const ac = ["amber", "green", "red", "other"], oc = Wt(ac), uc = ["alpha", "beta
|
|
|
2556
2556
|
b("presenter"),
|
|
2557
2557
|
b("presenterPresentation"),
|
|
2558
2558
|
b("tool")
|
|
2559
|
-
]),
|
|
2559
|
+
]), hr = De(), Vc = Ne({
|
|
2560
2560
|
id: O(),
|
|
2561
2561
|
color: Rc,
|
|
2562
2562
|
label: O()
|
|
@@ -2572,10 +2572,10 @@ const ac = ["amber", "green", "red", "other"], oc = Wt(ac), uc = ["alpha", "beta
|
|
|
2572
2572
|
id: O(),
|
|
2573
2573
|
label: be(O(), O()),
|
|
2574
2574
|
description: be(O(), O()),
|
|
2575
|
-
firstCreatedAt:
|
|
2575
|
+
firstCreatedAt: hr.optional(),
|
|
2576
2576
|
icon: O().optional(),
|
|
2577
2577
|
iconDark: O().optional(),
|
|
2578
|
-
lastUpdatedAt:
|
|
2578
|
+
lastUpdatedAt: hr.optional(),
|
|
2579
2579
|
status: Vc.optional(),
|
|
2580
2580
|
statusId: Dc,
|
|
2581
2581
|
typeId: Mc
|
|
@@ -2587,18 +2587,18 @@ const ac = ["amber", "green", "red", "other"], oc = Wt(ac), uc = ["alpha", "beta
|
|
|
2587
2587
|
operations: He(Bc),
|
|
2588
2588
|
typeId: b("presenter")
|
|
2589
2589
|
});
|
|
2590
|
-
var Uc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Yr = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], qc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Qr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",
|
|
2590
|
+
var Uc = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Yr = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], qc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Qr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", oi = {
|
|
2591
2591
|
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",
|
|
2592
2592
|
5: "class enum extends super const export import",
|
|
2593
2593
|
6: "enum",
|
|
2594
2594
|
strict: "implements interface let package private protected public static yield",
|
|
2595
2595
|
strictBind: "eval arguments"
|
|
2596
|
-
},
|
|
2597
|
-
5:
|
|
2598
|
-
"5module":
|
|
2599
|
-
6:
|
|
2596
|
+
}, ui = "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", Hc = {
|
|
2597
|
+
5: ui,
|
|
2598
|
+
"5module": ui + " export import",
|
|
2599
|
+
6: ui + " const class extends export import super"
|
|
2600
2600
|
}, Gc = /^in(stanceof)?$/, Wc = new RegExp("[" + Qr + "]"), Kc = new RegExp("[" + Qr + qc + "]");
|
|
2601
|
-
function
|
|
2601
|
+
function mi(e, t) {
|
|
2602
2602
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
2603
2603
|
if (i += t[r], i > e)
|
|
2604
2604
|
return !1;
|
|
@@ -2608,10 +2608,10 @@ function di(e, t) {
|
|
|
2608
2608
|
return !1;
|
|
2609
2609
|
}
|
|
2610
2610
|
function Ee(e, t) {
|
|
2611
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Wc.test(String.fromCharCode(e)) : t === !1 ? !1 :
|
|
2611
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Wc.test(String.fromCharCode(e)) : t === !1 ? !1 : mi(e, Yr);
|
|
2612
2612
|
}
|
|
2613
2613
|
function Me(e, t) {
|
|
2614
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Kc.test(String.fromCharCode(e)) : t === !1 ? !1 :
|
|
2614
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Kc.test(String.fromCharCode(e)) : t === !1 ? !1 : mi(e, Yr) || mi(e, Uc);
|
|
2615
2615
|
}
|
|
2616
2616
|
var z = function(t, i) {
|
|
2617
2617
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
@@ -2729,13 +2729,13 @@ function ts(e, t, i) {
|
|
|
2729
2729
|
}
|
|
2730
2730
|
return -1;
|
|
2731
2731
|
}
|
|
2732
|
-
var
|
|
2732
|
+
var Ci = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ne = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, is = Object.prototype, Xc = is.hasOwnProperty, Jc = is.toString, lt = Object.hasOwn || (function(e, t) {
|
|
2733
2733
|
return Xc.call(e, t);
|
|
2734
|
-
}),
|
|
2734
|
+
}), lr = Array.isArray || (function(e) {
|
|
2735
2735
|
return Jc.call(e) === "[object Array]";
|
|
2736
|
-
}),
|
|
2736
|
+
}), pr = /* @__PURE__ */ Object.create(null);
|
|
2737
2737
|
function Ze(e) {
|
|
2738
|
-
return
|
|
2738
|
+
return pr[e] || (pr[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
2739
2739
|
}
|
|
2740
2740
|
function Ve(e) {
|
|
2741
2741
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -2749,7 +2749,7 @@ ut.prototype.offset = function(t) {
|
|
|
2749
2749
|
var wt = function(t, i, r) {
|
|
2750
2750
|
this.start = i, this.end = r, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
2751
2751
|
};
|
|
2752
|
-
function
|
|
2752
|
+
function Ai(e, t) {
|
|
2753
2753
|
for (var i = 1, r = 0; ; ) {
|
|
2754
2754
|
var n = ts(e, r, t);
|
|
2755
2755
|
if (n < 0)
|
|
@@ -2757,7 +2757,7 @@ function Ci(e, t) {
|
|
|
2757
2757
|
++i, r = n;
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
2760
|
-
var
|
|
2760
|
+
var Ft = {
|
|
2761
2761
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
2762
2762
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
2763
2763
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
|
@@ -2853,19 +2853,19 @@ var jt = {
|
|
|
2853
2853
|
// When enabled, parenthesized expressions are represented by
|
|
2854
2854
|
// (non-standard) ParenthesizedExpression nodes
|
|
2855
2855
|
preserveParens: !1
|
|
2856
|
-
},
|
|
2856
|
+
}, fr = !1;
|
|
2857
2857
|
function Qc(e) {
|
|
2858
2858
|
var t = {};
|
|
2859
|
-
for (var i in
|
|
2860
|
-
t[i] = e && lt(e, i) ? e[i] :
|
|
2861
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
2862
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
2859
|
+
for (var i in Ft)
|
|
2860
|
+
t[i] = e && lt(e, i) ? e[i] : Ft[i];
|
|
2861
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!fr && typeof console == "object" && console.warn && (fr = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2862
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), lr(t.onToken)) {
|
|
2863
2863
|
var r = t.onToken;
|
|
2864
2864
|
t.onToken = function(n) {
|
|
2865
2865
|
return r.push(n);
|
|
2866
2866
|
};
|
|
2867
2867
|
}
|
|
2868
|
-
return
|
|
2868
|
+
return lr(t.onComment) && (t.onComment = eh(t, t.onComment)), t;
|
|
2869
2869
|
}
|
|
2870
2870
|
function eh(e, t) {
|
|
2871
2871
|
return function(i, r, n, u, h, d) {
|
|
@@ -2878,16 +2878,16 @@ function eh(e, t) {
|
|
|
2878
2878
|
e.locations && (y.loc = new wt(this, h, d)), e.ranges && (y.range = [n, u]), t.push(y);
|
|
2879
2879
|
};
|
|
2880
2880
|
}
|
|
2881
|
-
var kt = 1, pt = 2,
|
|
2882
|
-
function
|
|
2883
|
-
return pt | (e ?
|
|
2881
|
+
var kt = 1, pt = 2, Ei = 4, rs = 8, Ii = 16, ss = 32, Xt = 64, ns = 128, et = 256, St = 512, Jt = kt | pt | et;
|
|
2882
|
+
function Ni(e, t) {
|
|
2883
|
+
return pt | (e ? Ei : 0) | (t ? rs : 0);
|
|
2884
2884
|
}
|
|
2885
|
-
var
|
|
2885
|
+
var $t = 0, Li = 1, je = 2, as = 3, os = 4, us = 5, J = function(t, i, r) {
|
|
2886
2886
|
this.options = t = Qc(t), this.sourceFile = t.sourceFile, this.keywords = Ze(Hc[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
2887
2887
|
var n = "";
|
|
2888
|
-
t.allowReserved !== !0 && (n =
|
|
2889
|
-
var u = (n ? n + " " : "") +
|
|
2890
|
-
this.reservedWordsStrict = Ze(u), this.reservedWordsStrictBind = Ze(u + " " +
|
|
2888
|
+
t.allowReserved !== !0 && (n = oi[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = Ze(n);
|
|
2889
|
+
var u = (n ? n + " " : "") + oi.strict;
|
|
2890
|
+
this.reservedWordsStrict = Ze(u), this.reservedWordsStrictBind = Ze(u + " " + oi.strictBind), this.input = String(i), this.containsEsc = !1, r ? (this.pos = r, this.lineStart = this.input.lastIndexOf(`
|
|
2891
2891
|
`, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(ce).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = l.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 = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(kt), this.regexpState = null, this.privateNameStack = [];
|
|
2892
2892
|
}, Le = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
2893
2893
|
J.prototype.parse = function() {
|
|
@@ -2901,7 +2901,7 @@ Le.inGenerator.get = function() {
|
|
|
2901
2901
|
return (this.currentVarScope().flags & rs) > 0;
|
|
2902
2902
|
};
|
|
2903
2903
|
Le.inAsync.get = function() {
|
|
2904
|
-
return (this.currentVarScope().flags &
|
|
2904
|
+
return (this.currentVarScope().flags & Ei) > 0;
|
|
2905
2905
|
};
|
|
2906
2906
|
Le.canAwait.get = function() {
|
|
2907
2907
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
@@ -2909,13 +2909,13 @@ Le.canAwait.get = function() {
|
|
|
2909
2909
|
if (i & (et | St))
|
|
2910
2910
|
return !1;
|
|
2911
2911
|
if (i & pt)
|
|
2912
|
-
return (i &
|
|
2912
|
+
return (i & Ei) > 0;
|
|
2913
2913
|
}
|
|
2914
2914
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
2915
2915
|
};
|
|
2916
2916
|
Le.allowSuper.get = function() {
|
|
2917
2917
|
var e = this.currentThisScope(), t = e.flags;
|
|
2918
|
-
return (t &
|
|
2918
|
+
return (t & Xt) > 0 || this.options.allowSuperOutsideMethod;
|
|
2919
2919
|
};
|
|
2920
2920
|
Le.allowDirectSuper.get = function() {
|
|
2921
2921
|
return (this.currentThisScope().flags & ns) > 0;
|
|
@@ -2926,7 +2926,7 @@ Le.treatFunctionsAsVar.get = function() {
|
|
|
2926
2926
|
Le.allowNewDotTarget.get = function() {
|
|
2927
2927
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2928
2928
|
var t = this.scopeStack[e], i = t.flags;
|
|
2929
|
-
if (i & (et | St) || i & pt && !(i &
|
|
2929
|
+
if (i & (et | St) || i & pt && !(i & Ii))
|
|
2930
2930
|
return !0;
|
|
2931
2931
|
}
|
|
2932
2932
|
return !1;
|
|
@@ -3000,7 +3000,7 @@ he.expect = function(e) {
|
|
|
3000
3000
|
he.unexpected = function(e) {
|
|
3001
3001
|
this.raise(e ?? this.start, "Unexpected token");
|
|
3002
3002
|
};
|
|
3003
|
-
var
|
|
3003
|
+
var Yt = function() {
|
|
3004
3004
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
3005
3005
|
};
|
|
3006
3006
|
he.checkPatternErrors = function(e, t) {
|
|
@@ -3038,7 +3038,7 @@ I.parseTopLevel = function(e) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
3040
3040
|
};
|
|
3041
|
-
var
|
|
3041
|
+
var Oi = { kind: "loop" }, ih = { kind: "switch" };
|
|
3042
3042
|
I.isLet = function(e) {
|
|
3043
3043
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
3044
3044
|
return !1;
|
|
@@ -3173,12 +3173,12 @@ I.parseDebuggerStatement = function(e) {
|
|
|
3173
3173
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
3174
3174
|
};
|
|
3175
3175
|
I.parseDoStatement = function(e) {
|
|
3176
|
-
return this.next(), this.labels.push(
|
|
3176
|
+
return this.next(), this.labels.push(Oi), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(l._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(l.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
3177
3177
|
};
|
|
3178
3178
|
I.parseForStatement = function(e) {
|
|
3179
3179
|
this.next();
|
|
3180
3180
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
3181
|
-
if (this.labels.push(
|
|
3181
|
+
if (this.labels.push(Oi), this.enterScope(0), this.expect(l.parenL), this.type === l.semi)
|
|
3182
3182
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
3183
3183
|
var i = this.isLet();
|
|
3184
3184
|
if (this.type === l._var || this.type === l._const || i) {
|
|
@@ -3190,14 +3190,14 @@ I.parseForStatement = function(e) {
|
|
|
3190
3190
|
var y = this.startNode();
|
|
3191
3191
|
return this.next(), d === "await using" && this.next(), this.parseVar(y, !0, d), this.finishNode(y, "VariableDeclaration"), this.parseForAfterInit(e, y, t);
|
|
3192
3192
|
}
|
|
3193
|
-
var o = this.containsEsc, w = new
|
|
3193
|
+
var o = this.containsEsc, w = new Yt(), S = this.start, A = t > -1 ? this.parseExprSubscripts(w, "await") : this.parseExpression(!0, w);
|
|
3194
3194
|
return this.type === l._in || (h = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === l._in && this.unexpected(t), e.await = !0) : h && this.options.ecmaVersion >= 8 && (A.start === S && !o && A.type === "Identifier" && A.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), u && h && this.raise(A.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(A, !1, w), this.checkLValPattern(A), this.parseForIn(e, A)) : (this.checkExpressionErrors(w, !0), t > -1 && this.unexpected(t), this.parseFor(e, A));
|
|
3195
3195
|
};
|
|
3196
3196
|
I.parseForAfterInit = function(e, t, i) {
|
|
3197
3197
|
return (this.type === l._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === l._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
|
|
3198
3198
|
};
|
|
3199
3199
|
I.parseFunctionStatement = function(e, t, i) {
|
|
3200
|
-
return this.next(), this.parseFunction(e, gt | (i ? 0 :
|
|
3200
|
+
return this.next(), this.parseFunction(e, gt | (i ? 0 : yi), !1, t);
|
|
3201
3201
|
};
|
|
3202
3202
|
I.parseIfStatement = function(e) {
|
|
3203
3203
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(l._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
@@ -3234,7 +3234,7 @@ I.parseVarStatement = function(e, t, i) {
|
|
|
3234
3234
|
return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
3235
3235
|
};
|
|
3236
3236
|
I.parseWhileStatement = function(e) {
|
|
3237
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
3237
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Oi), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
3238
3238
|
};
|
|
3239
3239
|
I.parseWithStatement = function(e) {
|
|
3240
3240
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
@@ -3285,13 +3285,13 @@ I.parseVar = function(e, t, i, r) {
|
|
|
3285
3285
|
return e;
|
|
3286
3286
|
};
|
|
3287
3287
|
I.parseVarId = function(e, t) {
|
|
3288
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
3288
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Li : je, !1);
|
|
3289
3289
|
};
|
|
3290
|
-
var gt = 1,
|
|
3290
|
+
var gt = 1, yi = 2, cs = 4;
|
|
3291
3291
|
I.parseFunction = function(e, t, i, r, n) {
|
|
3292
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === l.star && t &
|
|
3292
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === l.star && t & yi && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & gt && (e.id = t & cs && this.type !== l.name ? null : this.parseIdent(), e.id && !(t & yi) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Li : je : as));
|
|
3293
3293
|
var u = this.yieldPos, h = this.awaitPos, d = this.awaitIdentPos;
|
|
3294
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
3294
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ni(e.async, e.generator)), t & gt || (e.id = this.type === l.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, n), this.yieldPos = u, this.awaitPos = h, this.awaitIdentPos = d, this.finishNode(e, t & gt ? "FunctionDeclaration" : "FunctionExpression");
|
|
3295
3295
|
};
|
|
3296
3296
|
I.parseFunctionParams = function(e) {
|
|
3297
3297
|
this.expect(l.parenL), e.params = this.parseBindingList(l.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -3321,7 +3321,7 @@ I.parseClassElement = function(e) {
|
|
|
3321
3321
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? h = y : r = y);
|
|
3322
3322
|
}
|
|
3323
3323
|
if (r ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = r, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === l.parenL || h !== "method" || n || u) {
|
|
3324
|
-
var o = !i.static &&
|
|
3324
|
+
var o = !i.static && Bt(i, "constructor"), w = o && e;
|
|
3325
3325
|
o && h !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = o ? "constructor" : h, this.parseClassMethod(i, n, u, w);
|
|
3326
3326
|
} else
|
|
3327
3327
|
this.parseClassField(i);
|
|
@@ -3335,17 +3335,17 @@ I.parseClassElementName = function(e) {
|
|
|
3335
3335
|
};
|
|
3336
3336
|
I.parseClassMethod = function(e, t, i, r) {
|
|
3337
3337
|
var n = e.key;
|
|
3338
|
-
e.kind === "constructor" ? (t && this.raise(n.start, "Constructor can't be a generator"), i && this.raise(n.start, "Constructor can't be an async method")) : e.static &&
|
|
3338
|
+
e.kind === "constructor" ? (t && this.raise(n.start, "Constructor can't be a generator"), i && this.raise(n.start, "Constructor can't be an async method")) : e.static && Bt(e, "prototype") && this.raise(n.start, "Classes may not have a static property named prototype");
|
|
3339
3339
|
var u = e.value = this.parseMethod(t, i, r);
|
|
3340
3340
|
return e.kind === "get" && u.params.length !== 0 && this.raiseRecoverable(u.start, "getter should have no params"), e.kind === "set" && u.params.length !== 1 && this.raiseRecoverable(u.start, "setter should have exactly one param"), e.kind === "set" && u.params[0].type === "RestElement" && this.raiseRecoverable(u.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
3341
3341
|
};
|
|
3342
3342
|
I.parseClassField = function(e) {
|
|
3343
|
-
return
|
|
3343
|
+
return Bt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Bt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(l.eq) ? (this.enterScope(St | Xt), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
3344
3344
|
};
|
|
3345
3345
|
I.parseClassStaticBlock = function(e) {
|
|
3346
3346
|
e.body = [];
|
|
3347
3347
|
var t = this.labels;
|
|
3348
|
-
for (this.labels = [], this.enterScope(et |
|
|
3348
|
+
for (this.labels = [], this.enterScope(et | Xt); this.type !== l.braceR; ) {
|
|
3349
3349
|
var i = this.parseStatement(null);
|
|
3350
3350
|
e.body.push(i);
|
|
3351
3351
|
}
|
|
@@ -3373,7 +3373,7 @@ function sh(e, t) {
|
|
|
3373
3373
|
var i = t.key.name, r = e[i], n = "true";
|
|
3374
3374
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (n = (t.static ? "s" : "i") + t.kind), r === "iget" && n === "iset" || r === "iset" && n === "iget" || r === "sget" && n === "sset" || r === "sset" && n === "sget" ? (e[i] = "true", !1) : r ? !0 : (e[i] = n, !1);
|
|
3375
3375
|
}
|
|
3376
|
-
function
|
|
3376
|
+
function Bt(e, t) {
|
|
3377
3377
|
var i = e.computed, r = e.key;
|
|
3378
3378
|
return !i && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
|
|
3379
3379
|
}
|
|
@@ -3635,8 +3635,8 @@ Ce.parseMaybeDefault = function(e, t, i) {
|
|
|
3635
3635
|
return r.left = i, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
|
|
3636
3636
|
};
|
|
3637
3637
|
Ce.checkLValSimple = function(e, t, i) {
|
|
3638
|
-
t === void 0 && (t =
|
|
3639
|
-
var r = t !==
|
|
3638
|
+
t === void 0 && (t = $t);
|
|
3639
|
+
var r = t !== $t;
|
|
3640
3640
|
switch (e.type) {
|
|
3641
3641
|
case "Identifier":
|
|
3642
3642
|
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === je && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (lt(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== us && this.declareName(e.name, t, e.start));
|
|
@@ -3654,7 +3654,7 @@ Ce.checkLValSimple = function(e, t, i) {
|
|
|
3654
3654
|
}
|
|
3655
3655
|
};
|
|
3656
3656
|
Ce.checkLValPattern = function(e, t, i) {
|
|
3657
|
-
switch (t === void 0 && (t =
|
|
3657
|
+
switch (t === void 0 && (t = $t), e.type) {
|
|
3658
3658
|
case "ObjectPattern":
|
|
3659
3659
|
for (var r = 0, n = e.properties; r < n.length; r += 1) {
|
|
3660
3660
|
var u = n[r];
|
|
@@ -3672,7 +3672,7 @@ Ce.checkLValPattern = function(e, t, i) {
|
|
|
3672
3672
|
}
|
|
3673
3673
|
};
|
|
3674
3674
|
Ce.checkLValInnerPattern = function(e, t, i) {
|
|
3675
|
-
switch (t === void 0 && (t =
|
|
3675
|
+
switch (t === void 0 && (t = $t), e.type) {
|
|
3676
3676
|
case "Property":
|
|
3677
3677
|
this.checkLValInnerPattern(e.value, t, i);
|
|
3678
3678
|
break;
|
|
@@ -3817,7 +3817,7 @@ M.parseMaybeAssign = function(e, t, i) {
|
|
|
3817
3817
|
this.exprAllowed = !1;
|
|
3818
3818
|
}
|
|
3819
3819
|
var r = !1, n = -1, u = -1, h = -1;
|
|
3820
|
-
t ? (n = t.parenthesizedAssign, u = t.trailingComma, h = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
3820
|
+
t ? (n = t.parenthesizedAssign, u = t.trailingComma, h = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Yt(), r = !0);
|
|
3821
3821
|
var d = this.start, y = this.startLoc;
|
|
3822
3822
|
(this.type === l.parenL || this.type === l.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
3823
3823
|
var o = this.parseMaybeConditional(e, t);
|
|
@@ -3865,7 +3865,7 @@ M.parseMaybeUnary = function(e, t, i, r) {
|
|
|
3865
3865
|
h = this.parseAwait(r), t = !0;
|
|
3866
3866
|
else if (this.type.prefix) {
|
|
3867
3867
|
var d = this.startNode(), y = this.type === l.incDec;
|
|
3868
|
-
d.operator = this.value, d.prefix = !0, this.next(), d.argument = this.parseMaybeUnary(null, !0, y, r), this.checkExpressionErrors(e, !0), y ? this.checkLValSimple(d.argument) : this.strict && d.operator === "delete" && hs(d.argument) ? this.raiseRecoverable(d.start, "Deleting local variable in strict mode") : d.operator === "delete" &&
|
|
3868
|
+
d.operator = this.value, d.prefix = !0, this.next(), d.argument = this.parseMaybeUnary(null, !0, y, r), this.checkExpressionErrors(e, !0), y ? this.checkLValSimple(d.argument) : this.strict && d.operator === "delete" && hs(d.argument) ? this.raiseRecoverable(d.start, "Deleting local variable in strict mode") : d.operator === "delete" && vi(d.argument) ? this.raiseRecoverable(d.start, "Private fields can not be deleted") : t = !0, h = this.finishNode(d, y ? "UpdateExpression" : "UnaryExpression");
|
|
3869
3869
|
} else if (!t && this.type === l.privateId)
|
|
3870
3870
|
(r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), h = this.parsePrivateIdent(), this.type !== l._in && this.unexpected();
|
|
3871
3871
|
else {
|
|
@@ -3887,8 +3887,8 @@ M.parseMaybeUnary = function(e, t, i, r) {
|
|
|
3887
3887
|
function hs(e) {
|
|
3888
3888
|
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && hs(e.expression);
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3891
|
-
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" &&
|
|
3890
|
+
function vi(e) {
|
|
3891
|
+
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && vi(e.expression) || e.type === "ParenthesizedExpression" && vi(e.expression);
|
|
3892
3892
|
}
|
|
3893
3893
|
M.parseExprSubscripts = function(e, t) {
|
|
3894
3894
|
var i = this.start, r = this.startLoc, n = this.parseExprAtom(e, t);
|
|
@@ -3924,7 +3924,7 @@ M.parseSubscript = function(e, t, i, r, n, u, h) {
|
|
|
3924
3924
|
var w = this.startNodeAt(t, i);
|
|
3925
3925
|
w.object = e, o ? (w.property = this.parseExpression(), this.expect(l.bracketR)) : this.type === l.privateId && e.type !== "Super" ? w.property = this.parsePrivateIdent() : w.property = this.parseIdent(this.options.allowReserved !== "never"), w.computed = !!o, d && (w.optional = y), e = this.finishNode(w, "MemberExpression");
|
|
3926
3926
|
} else if (!r && this.eat(l.parenL)) {
|
|
3927
|
-
var S = new
|
|
3927
|
+
var S = new Yt(), A = this.yieldPos, F = this.awaitPos, Z = this.awaitIdentPos;
|
|
3928
3928
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
3929
3929
|
var le = this.parseExprList(l.parenR, this.options.ecmaVersion >= 8, !1, S);
|
|
3930
3930
|
if (n && !y && this.shouldParseAsyncArrow())
|
|
@@ -4032,7 +4032,7 @@ M.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
4032
4032
|
var i = this.start, r = this.startLoc, n, u = this.options.ecmaVersion >= 8;
|
|
4033
4033
|
if (this.options.ecmaVersion >= 6) {
|
|
4034
4034
|
this.next();
|
|
4035
|
-
var h = this.start, d = this.startLoc, y = [], o = !0, w = !1, S = new
|
|
4035
|
+
var h = this.start, d = this.startLoc, y = [], o = !0, w = !1, S = new Yt(), A = this.yieldPos, F = this.awaitPos, Z;
|
|
4036
4036
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== l.parenR; )
|
|
4037
4037
|
if (o ? o = !1 : this.expect(l.comma), u && this.afterTrailingComma(l.parenR, !0)) {
|
|
4038
4038
|
w = !0;
|
|
@@ -4148,11 +4148,11 @@ M.initFunction = function(e) {
|
|
|
4148
4148
|
};
|
|
4149
4149
|
M.parseMethod = function(e, t, i) {
|
|
4150
4150
|
var r = this.startNode(), n = this.yieldPos, u = this.awaitPos, h = this.awaitIdentPos;
|
|
4151
|
-
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
4151
|
+
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ni(t, r.generator) | Xt | (i ? ns : 0)), this.expect(l.parenL), r.params = this.parseBindingList(l.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = n, this.awaitPos = u, this.awaitIdentPos = h, this.finishNode(r, "FunctionExpression");
|
|
4152
4152
|
};
|
|
4153
4153
|
M.parseArrowExpression = function(e, t, i, r) {
|
|
4154
4154
|
var n = this.yieldPos, u = this.awaitPos, h = this.awaitIdentPos;
|
|
4155
|
-
return this.enterScope(
|
|
4155
|
+
return this.enterScope(Ni(i, !1) | Ii), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = n, this.awaitPos = u, this.awaitIdentPos = h, this.finishNode(e, "ArrowFunctionExpression");
|
|
4156
4156
|
};
|
|
4157
4157
|
M.parseFunctionBody = function(e, t, i, r) {
|
|
4158
4158
|
var n = t && this.type !== l.braceL, u = this.strict, h = !1;
|
|
@@ -4177,7 +4177,7 @@ M.isSimpleParamList = function(e) {
|
|
|
4177
4177
|
M.checkParams = function(e, t) {
|
|
4178
4178
|
for (var i = /* @__PURE__ */ Object.create(null), r = 0, n = e.params; r < n.length; r += 1) {
|
|
4179
4179
|
var u = n[r];
|
|
4180
|
-
this.checkLValInnerPattern(u,
|
|
4180
|
+
this.checkLValInnerPattern(u, Li, t ? null : i);
|
|
4181
4181
|
}
|
|
4182
4182
|
};
|
|
4183
4183
|
M.parseExprList = function(e, t, i, r) {
|
|
@@ -4193,7 +4193,7 @@ M.parseExprList = function(e, t, i, r) {
|
|
|
4193
4193
|
};
|
|
4194
4194
|
M.checkUnreserved = function(e) {
|
|
4195
4195
|
var t = e.start, i = e.end, r = e.name;
|
|
4196
|
-
if (this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags &
|
|
4196
|
+
if (this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Jt) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
|
|
4197
4197
|
var n = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
4198
4198
|
n.test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
|
|
4199
4199
|
}
|
|
@@ -4220,15 +4220,15 @@ M.parseAwait = function(e) {
|
|
|
4220
4220
|
var t = this.startNode();
|
|
4221
4221
|
return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
|
|
4222
4222
|
};
|
|
4223
|
-
var
|
|
4224
|
-
|
|
4225
|
-
var i =
|
|
4223
|
+
var Zt = J.prototype;
|
|
4224
|
+
Zt.raise = function(e, t) {
|
|
4225
|
+
var i = Ai(this.input, e);
|
|
4226
4226
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
4227
4227
|
var r = new SyntaxError(t);
|
|
4228
4228
|
throw r.pos = e, r.loc = i, r.raisedAt = this.pos, r;
|
|
4229
4229
|
};
|
|
4230
|
-
|
|
4231
|
-
|
|
4230
|
+
Zt.raiseRecoverable = Zt.raise;
|
|
4231
|
+
Zt.curPosition = function() {
|
|
4232
4232
|
if (this.options.locations)
|
|
4233
4233
|
return new ut(this.curLine, this.pos - this.lineStart);
|
|
4234
4234
|
};
|
|
@@ -4262,7 +4262,7 @@ We.declareName = function(e, t, i) {
|
|
|
4262
4262
|
r = !0;
|
|
4263
4263
|
break;
|
|
4264
4264
|
}
|
|
4265
|
-
if (y.var.push(e), this.inModule && y.flags & kt && delete this.undefinedExports[e], y.flags &
|
|
4265
|
+
if (y.var.push(e), this.inModule && y.flags & kt && delete this.undefinedExports[e], y.flags & Jt)
|
|
4266
4266
|
break;
|
|
4267
4267
|
}
|
|
4268
4268
|
r && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
@@ -4276,14 +4276,14 @@ We.currentScope = function() {
|
|
|
4276
4276
|
We.currentVarScope = function() {
|
|
4277
4277
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4278
4278
|
var t = this.scopeStack[e];
|
|
4279
|
-
if (t.flags & (
|
|
4279
|
+
if (t.flags & (Jt | St | et))
|
|
4280
4280
|
return t;
|
|
4281
4281
|
}
|
|
4282
4282
|
};
|
|
4283
4283
|
We.currentThisScope = function() {
|
|
4284
4284
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4285
4285
|
var t = this.scopeStack[e];
|
|
4286
|
-
if (t.flags & (
|
|
4286
|
+
if (t.flags & (Jt | St | et) && !(t.flags & Ii))
|
|
4287
4287
|
return t;
|
|
4288
4288
|
}
|
|
4289
4289
|
};
|
|
@@ -4325,7 +4325,7 @@ var oh = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4325
4325
|
12: "",
|
|
4326
4326
|
13: "",
|
|
4327
4327
|
14: hh
|
|
4328
|
-
},
|
|
4328
|
+
}, dr = "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 Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", xs = vs + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", gs = xs + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", bs = gs + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", _s = bs + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", ph = _s + " " + oh, fh = {
|
|
4329
4329
|
9: vs,
|
|
4330
4330
|
10: xs,
|
|
4331
4331
|
11: gs,
|
|
@@ -4335,31 +4335,31 @@ var oh = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4335
4335
|
}, ks = {};
|
|
4336
4336
|
function dh(e) {
|
|
4337
4337
|
var t = ks[e] = {
|
|
4338
|
-
binary: Ze(ch[e] + " " +
|
|
4338
|
+
binary: Ze(ch[e] + " " + dr),
|
|
4339
4339
|
binaryOfStrings: Ze(lh[e]),
|
|
4340
4340
|
nonBinary: {
|
|
4341
|
-
General_Category: Ze(
|
|
4341
|
+
General_Category: Ze(dr),
|
|
4342
4342
|
Script: Ze(fh[e])
|
|
4343
4343
|
}
|
|
4344
4344
|
};
|
|
4345
4345
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
4346
4346
|
}
|
|
4347
|
-
for (var
|
|
4348
|
-
var mh =
|
|
4347
|
+
for (var ci = 0, mr = [9, 10, 11, 12, 13, 14]; ci < mr.length; ci += 1) {
|
|
4348
|
+
var mh = mr[ci];
|
|
4349
4349
|
dh(mh);
|
|
4350
4350
|
}
|
|
4351
|
-
var C = J.prototype,
|
|
4351
|
+
var C = J.prototype, Ut = function(t, i) {
|
|
4352
4352
|
this.parent = t, this.base = i || this;
|
|
4353
4353
|
};
|
|
4354
|
-
|
|
4354
|
+
Ut.prototype.separatedFrom = function(t) {
|
|
4355
4355
|
for (var i = this; i; i = i.parent)
|
|
4356
4356
|
for (var r = t; r; r = r.parent)
|
|
4357
4357
|
if (i.base === r.base && i !== r)
|
|
4358
4358
|
return !0;
|
|
4359
4359
|
return !1;
|
|
4360
4360
|
};
|
|
4361
|
-
|
|
4362
|
-
return new
|
|
4361
|
+
Ut.prototype.sibling = function() {
|
|
4362
|
+
return new Ut(this.parent, this.base);
|
|
4363
4363
|
};
|
|
4364
4364
|
var Oe = function(t) {
|
|
4365
4365
|
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ks[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
@@ -4445,7 +4445,7 @@ C.regexp_pattern = function(e) {
|
|
|
4445
4445
|
};
|
|
4446
4446
|
C.regexp_disjunction = function(e) {
|
|
4447
4447
|
var t = this.options.ecmaVersion >= 16;
|
|
4448
|
-
for (t && (e.branchID = new
|
|
4448
|
+
for (t && (e.branchID = new Ut(e.branchID, null)), this.regexp_alternative(e); e.eat(
|
|
4449
4449
|
124
|
|
4450
4450
|
/* | */
|
|
4451
4451
|
); )
|
|
@@ -4755,7 +4755,7 @@ C.regexp_eatCControlLetter = function(e) {
|
|
|
4755
4755
|
return !1;
|
|
4756
4756
|
};
|
|
4757
4757
|
C.regexp_eatZero = function(e) {
|
|
4758
|
-
return e.current() === 48 && !
|
|
4758
|
+
return e.current() === 48 && !Qt(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
|
|
4759
4759
|
};
|
|
4760
4760
|
C.regexp_eatControlEscape = function(e) {
|
|
4761
4761
|
var t = e.current();
|
|
@@ -4897,7 +4897,7 @@ C.regexp_eatUnicodePropertyValue = function(e) {
|
|
|
4897
4897
|
return e.lastStringValue !== "";
|
|
4898
4898
|
};
|
|
4899
4899
|
function kh(e) {
|
|
4900
|
-
return Ps(e) ||
|
|
4900
|
+
return Ps(e) || Qt(e);
|
|
4901
4901
|
}
|
|
4902
4902
|
C.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
4903
4903
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -5113,7 +5113,7 @@ function Th(e) {
|
|
|
5113
5113
|
}
|
|
5114
5114
|
C.regexp_eatClassControlLetter = function(e) {
|
|
5115
5115
|
var t = e.current();
|
|
5116
|
-
return
|
|
5116
|
+
return Qt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
5117
5117
|
};
|
|
5118
5118
|
C.regexp_eatHexEscapeSequence = function(e) {
|
|
5119
5119
|
var t = e.pos;
|
|
@@ -5129,11 +5129,11 @@ C.regexp_eatHexEscapeSequence = function(e) {
|
|
|
5129
5129
|
};
|
|
5130
5130
|
C.regexp_eatDecimalDigits = function(e) {
|
|
5131
5131
|
var t = e.pos, i = 0;
|
|
5132
|
-
for (e.lastIntValue = 0;
|
|
5132
|
+
for (e.lastIntValue = 0; Qt(i = e.current()); )
|
|
5133
5133
|
e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
|
|
5134
5134
|
return e.pos !== t;
|
|
5135
5135
|
};
|
|
5136
|
-
function
|
|
5136
|
+
function Qt(e) {
|
|
5137
5137
|
return e >= 48 && e <= 57;
|
|
5138
5138
|
}
|
|
5139
5139
|
C.regexp_eatHexDigits = function(e) {
|
|
@@ -5178,14 +5178,14 @@ C.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
5178
5178
|
}
|
|
5179
5179
|
return !0;
|
|
5180
5180
|
};
|
|
5181
|
-
var
|
|
5181
|
+
var ei = function(t) {
|
|
5182
5182
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new wt(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
5183
5183
|
}, j = J.prototype;
|
|
5184
5184
|
j.next = function(e) {
|
|
5185
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
5185
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new ei(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
5186
5186
|
};
|
|
5187
5187
|
j.getToken = function() {
|
|
5188
|
-
return this.next(), new
|
|
5188
|
+
return this.next(), new ei(this);
|
|
5189
5189
|
};
|
|
5190
5190
|
typeof Symbol < "u" && (j[Symbol.iterator] = function() {
|
|
5191
5191
|
var e = this;
|
|
@@ -5271,7 +5271,7 @@ j.skipSpace = function() {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
break;
|
|
5273
5273
|
default:
|
|
5274
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
5274
|
+
if (e > 8 && e < 14 || e >= 5760 && Ci.test(String.fromCharCode(e)))
|
|
5275
5275
|
++this.pos;
|
|
5276
5276
|
else
|
|
5277
5277
|
break e;
|
|
@@ -5686,10 +5686,10 @@ var Ls = "8.15.0";
|
|
|
5686
5686
|
J.acorn = {
|
|
5687
5687
|
Parser: J,
|
|
5688
5688
|
version: Ls,
|
|
5689
|
-
defaultOptions:
|
|
5689
|
+
defaultOptions: Ft,
|
|
5690
5690
|
Position: ut,
|
|
5691
5691
|
SourceLocation: wt,
|
|
5692
|
-
getLineInfo:
|
|
5692
|
+
getLineInfo: Ai,
|
|
5693
5693
|
Node: Tt,
|
|
5694
5694
|
TokenType: z,
|
|
5695
5695
|
tokTypes: l,
|
|
@@ -5698,11 +5698,11 @@ J.acorn = {
|
|
|
5698
5698
|
tokContexts: H,
|
|
5699
5699
|
isIdentifierChar: Me,
|
|
5700
5700
|
isIdentifierStart: Ee,
|
|
5701
|
-
Token:
|
|
5701
|
+
Token: ei,
|
|
5702
5702
|
isNewLine: Qe,
|
|
5703
5703
|
lineBreak: ce,
|
|
5704
5704
|
lineBreakG: es,
|
|
5705
|
-
nonASCIIwhitespace:
|
|
5705
|
+
nonASCIIwhitespace: Ci
|
|
5706
5706
|
};
|
|
5707
5707
|
function Ch(e, t) {
|
|
5708
5708
|
return J.parse(e, t);
|
|
@@ -5720,17 +5720,17 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5720
5720
|
Position: ut,
|
|
5721
5721
|
SourceLocation: wt,
|
|
5722
5722
|
TokContext: ue,
|
|
5723
|
-
Token:
|
|
5723
|
+
Token: ei,
|
|
5724
5724
|
TokenType: z,
|
|
5725
|
-
defaultOptions:
|
|
5726
|
-
getLineInfo:
|
|
5725
|
+
defaultOptions: Ft,
|
|
5726
|
+
getLineInfo: Ai,
|
|
5727
5727
|
isIdentifierChar: Me,
|
|
5728
5728
|
isIdentifierStart: Ee,
|
|
5729
5729
|
isNewLine: Qe,
|
|
5730
5730
|
keywordTypes: ot,
|
|
5731
5731
|
lineBreak: ce,
|
|
5732
5732
|
lineBreakG: es,
|
|
5733
|
-
nonASCIIwhitespace:
|
|
5733
|
+
nonASCIIwhitespace: Ci,
|
|
5734
5734
|
parse: Ch,
|
|
5735
5735
|
parseExpressionAt: Ah,
|
|
5736
5736
|
tokContexts: H,
|
|
@@ -5738,7 +5738,7 @@ const Ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5738
5738
|
tokenizer: Eh,
|
|
5739
5739
|
version: Ls
|
|
5740
5740
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5741
|
-
function
|
|
5741
|
+
function yr(e, t) {
|
|
5742
5742
|
for (var i = 0; i < t.length; i++) {
|
|
5743
5743
|
var r = t[i];
|
|
5744
5744
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, typeof (n = (function(u, h) {
|
|
@@ -5754,36 +5754,36 @@ function mr(e, t) {
|
|
|
5754
5754
|
}
|
|
5755
5755
|
var n;
|
|
5756
5756
|
}
|
|
5757
|
-
function
|
|
5758
|
-
return
|
|
5757
|
+
function qt() {
|
|
5758
|
+
return qt = Object.assign ? Object.assign.bind() : function(e) {
|
|
5759
5759
|
for (var t = 1; t < arguments.length; t++) {
|
|
5760
5760
|
var i = arguments[t];
|
|
5761
5761
|
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
5762
5762
|
}
|
|
5763
5763
|
return e;
|
|
5764
|
-
},
|
|
5764
|
+
}, qt.apply(this, arguments);
|
|
5765
5765
|
}
|
|
5766
5766
|
function Rt(e, t) {
|
|
5767
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
5767
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, xi(e, t);
|
|
5768
5768
|
}
|
|
5769
|
-
function
|
|
5770
|
-
return
|
|
5769
|
+
function xi(e, t) {
|
|
5770
|
+
return xi = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, r) {
|
|
5771
5771
|
return i.__proto__ = r, i;
|
|
5772
|
-
},
|
|
5772
|
+
}, xi(e, t);
|
|
5773
5773
|
}
|
|
5774
|
-
function
|
|
5774
|
+
function vr(e, t) {
|
|
5775
5775
|
(t == null || t > e.length) && (t = e.length);
|
|
5776
5776
|
for (var i = 0, r = new Array(t); i < t; i++) r[i] = e[i];
|
|
5777
5777
|
return r;
|
|
5778
5778
|
}
|
|
5779
|
-
function
|
|
5779
|
+
function xr(e, t) {
|
|
5780
5780
|
var i = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5781
5781
|
if (i) return (i = i.call(e)).next.bind(i);
|
|
5782
5782
|
if (Array.isArray(e) || (i = (function(n, u) {
|
|
5783
5783
|
if (n) {
|
|
5784
|
-
if (typeof n == "string") return
|
|
5784
|
+
if (typeof n == "string") return vr(n, u);
|
|
5785
5785
|
var h = Object.prototype.toString.call(n).slice(8, -1);
|
|
5786
|
-
return h === "Object" && n.constructor && (h = n.constructor.name), h === "Map" || h === "Set" ? Array.from(n) : h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h) ?
|
|
5786
|
+
return h === "Object" && n.constructor && (h = n.constructor.name), h === "Map" || h === "Set" ? Array.from(n) : h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h) ? vr(n, u) : void 0;
|
|
5787
5787
|
}
|
|
5788
5788
|
})(e)) || t) {
|
|
5789
5789
|
i && (e = i);
|
|
@@ -5809,7 +5809,7 @@ function Lh(e) {
|
|
|
5809
5809
|
}, r.jsxTagEnd.updateContext = function(h) {
|
|
5810
5810
|
var d = this.context.pop();
|
|
5811
5811
|
d === n.tc_oTag && h === l.slash || d === n.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === n.tc_expr) : this.exprAllowed = !0;
|
|
5812
|
-
}, t = { tokTypes:
|
|
5812
|
+
}, t = { tokTypes: qt({}, i, r), tokContexts: qt({}, n), keywordsRegExp: u, tokenIsLiteralPropertyName: function(h) {
|
|
5813
5813
|
return [l.name, l.string, l.num].concat(Object.values(ot), Object.values(i)).includes(h);
|
|
5814
5814
|
}, tokenIsKeywordOrIdentifier: function(h) {
|
|
5815
5815
|
return [l.name].concat(Object.values(ot), Object.values(i)).includes(h);
|
|
@@ -5825,14 +5825,14 @@ function Lh(e) {
|
|
|
5825
5825
|
}
|
|
5826
5826
|
return t;
|
|
5827
5827
|
}
|
|
5828
|
-
var vt = 1024, Oh = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"),
|
|
5828
|
+
var vt = 1024, Oh = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"), gr = new RegExp("(?=(" + Oh.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"), xt = function() {
|
|
5829
5829
|
this.shorthandAssign = void 0, this.trailingComma = void 0, this.parenthesizedAssign = void 0, this.parenthesizedBind = void 0, this.doubleProto = void 0, this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
5830
5830
|
};
|
|
5831
5831
|
function Rh(e, t) {
|
|
5832
5832
|
var i = t.key.name, r = e[i], n = "true";
|
|
5833
5833
|
return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (n = (t.static ? "s" : "i") + t.kind), r === "iget" && n === "iset" || r === "iset" && n === "iget" || r === "sget" && n === "sset" || r === "sset" && n === "sget" ? (e[i] = "true", !1) : !!r || (e[i] = n, !1);
|
|
5834
5834
|
}
|
|
5835
|
-
function
|
|
5835
|
+
function br(e, t) {
|
|
5836
5836
|
var i = e.key;
|
|
5837
5837
|
return !e.computed && (i.type === "Identifier" && i.name === t || i.type === "Literal" && i.value === t);
|
|
5838
5838
|
}
|
|
@@ -5877,8 +5877,8 @@ var N = { AbstractMethodHasImplementation: function(e) {
|
|
|
5877
5877
|
function bt(e) {
|
|
5878
5878
|
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? bt(e.object) + "." + bt(e.property) : void 0);
|
|
5879
5879
|
}
|
|
5880
|
-
var
|
|
5881
|
-
function
|
|
5880
|
+
var hi = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
5881
|
+
function _r(e) {
|
|
5882
5882
|
if (!e) throw new Error("Assert fail");
|
|
5883
5883
|
}
|
|
5884
5884
|
function zh(e) {
|
|
@@ -5887,7 +5887,7 @@ function zh(e) {
|
|
|
5887
5887
|
function jh(e) {
|
|
5888
5888
|
return e === "in" || e === "out";
|
|
5889
5889
|
}
|
|
5890
|
-
function
|
|
5890
|
+
function li(e, t) {
|
|
5891
5891
|
return 2 | (e ? 4 : 0) | (t ? 8 : 0);
|
|
5892
5892
|
}
|
|
5893
5893
|
function Fh(e) {
|
|
@@ -5898,7 +5898,7 @@ function Fh(e) {
|
|
|
5898
5898
|
function Os(e) {
|
|
5899
5899
|
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Os(e.object);
|
|
5900
5900
|
}
|
|
5901
|
-
function
|
|
5901
|
+
function kr(e) {
|
|
5902
5902
|
return e === "private" || e === "public" || e === "protected";
|
|
5903
5903
|
}
|
|
5904
5904
|
function $h(e) {
|
|
@@ -6174,7 +6174,7 @@ function $h(e) {
|
|
|
6174
6174
|
return this.nextTokenStartSince(this.pos);
|
|
6175
6175
|
}, f.tsHasSomeModifiers = function(s, a) {
|
|
6176
6176
|
return a.some(function(c) {
|
|
6177
|
-
return
|
|
6177
|
+
return kr(c) ? s.accessibility === c : !!s[c];
|
|
6178
6178
|
});
|
|
6179
6179
|
}, f.tsIsStartOfStaticBlocks = function() {
|
|
6180
6180
|
return this.isContextual("static") && this.lookaheadCharCode() === 123;
|
|
@@ -6222,7 +6222,7 @@ function $h(e) {
|
|
|
6222
6222
|
}, f.isAbstractConstructorSignature = function() {
|
|
6223
6223
|
return this.ts_isContextual(D.abstract) && this.lookahead().type === o._new;
|
|
6224
6224
|
}, f.nextTokenStartSince = function(s) {
|
|
6225
|
-
return
|
|
6225
|
+
return hi.lastIndex = s, hi.test(this.input) ? hi.lastIndex : s;
|
|
6226
6226
|
}, f.lookaheadCharCode = function() {
|
|
6227
6227
|
return this.input.charCodeAt(this.nextTokenStart());
|
|
6228
6228
|
}, f.compareLookaheadState = function(s, a) {
|
|
@@ -6272,7 +6272,7 @@ function $h(e) {
|
|
|
6272
6272
|
}, f.isLineTerminator = function() {
|
|
6273
6273
|
return this.eat(o.semi) || P.prototype.canInsertSemicolon.call(this);
|
|
6274
6274
|
}, f.hasFollowingLineBreak = function() {
|
|
6275
|
-
return
|
|
6275
|
+
return gr.lastIndex = this.end, gr.test(this.input);
|
|
6276
6276
|
}, f.addExtra = function(s, a, c, p) {
|
|
6277
6277
|
if (p === void 0 && (p = !0), s) {
|
|
6278
6278
|
var m = s.extra = s.extra || {};
|
|
@@ -6700,7 +6700,7 @@ function $h(e) {
|
|
|
6700
6700
|
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
|
|
6701
6701
|
}, f.tsParseType = function() {
|
|
6702
6702
|
var s = this;
|
|
6703
|
-
|
|
6703
|
+
_r(this.inType);
|
|
6704
6704
|
var a = this.tsParseNonConditionalType();
|
|
6705
6705
|
if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return a;
|
|
6706
6706
|
var c = this.startNodeAtNode(a);
|
|
@@ -6770,7 +6770,7 @@ function $h(e) {
|
|
|
6770
6770
|
}; ; ) {
|
|
6771
6771
|
var V = this.startLoc, E = this.tsParseModifier(p.concat(m ?? []), v);
|
|
6772
6772
|
if (!E) break;
|
|
6773
|
-
|
|
6773
|
+
kr(E) ? c.accessibility ? this.raise(this.start, N.DuplicateAccessibilityModifier()) : (T(V, E, E, "override"), T(V, E, E, "static"), T(V, E, E, "readonly"), T(V, E, E, "accessor"), _.accessibility = E, c.accessibility = E) : jh(E) ? c[E] ? this.raise(this.start, N.DuplicateModifier({ modifier: E })) : (T(V, E, "in", "out"), _[E] = E, c[E] = !0) : zh(E) ? c[E] ? this.raise(this.start, N.DuplicateModifier({ modifier: E })) : (L(V, E, "accessor", "readonly"), L(V, E, "accessor", "static"), L(V, E, "accessor", "override"), _[E] = E, c[E] = !0) : Object.hasOwnProperty.call(c, E) ? this.raise(this.start, N.DuplicateModifier({ modifier: E })) : (T(V, E, "static", "readonly"), T(V, E, "static", "override"), T(V, E, "override", "readonly"), T(V, E, "abstract", "override"), L(V, E, "declare", "override"), L(V, E, "static", "abstract"), _[E] = E, c[E] = !0), m != null && m.includes(E) && this.raise(this.start, g);
|
|
6774
6774
|
}
|
|
6775
6775
|
return _;
|
|
6776
6776
|
}, f.tsParseInOutModifiers = function(s) {
|
|
@@ -6957,7 +6957,7 @@ function $h(e) {
|
|
|
6957
6957
|
}, f.parseFunction = function(s, a, c, p, m) {
|
|
6958
6958
|
this.initFunction(s), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !p) && (this.type === o.star && 2 & a && this.unexpected(), s.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (s.async = !!p), 1 & a && (s.id = 4 & a && this.type !== o.name ? null : this.parseIdent());
|
|
6959
6959
|
var v = this.yieldPos, x = this.awaitPos, g = this.awaitIdentPos, _ = this.maybeInArrowParameters;
|
|
6960
|
-
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
6960
|
+
this.maybeInArrowParameters = !1, this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(li(s.async, s.generator)), 1 & a || (s.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(s);
|
|
6961
6961
|
var T = 1 & a;
|
|
6962
6962
|
return this.parseFunctionBody(s, c, !1, m, { isFunctionDeclaration: T }), this.yieldPos = v, this.awaitPos = x, this.awaitIdentPos = g, 1 & a && s.id && !(2 & a) && this.checkLValSimple(s.id, s.body ? this.strict || s.generator || s.async ? this.treatFunctionsAsVar ? 1 : 2 : 3 : 0), this.maybeInArrowParameters = _, this.finishNode(s, T ? "FunctionDeclaration" : "FunctionExpression");
|
|
6963
6963
|
}, f.parseFunctionBody = function(s, a, c, p, m) {
|
|
@@ -7050,7 +7050,7 @@ function $h(e) {
|
|
|
7050
7050
|
else {
|
|
7051
7051
|
if (s.declaration = null, s.specifiers = this.parseExportSpecifiers(a), this.eatContextual("from")) this.type !== o.string && this.unexpected(), s.source = this.parseExprAtom(), this.parseMaybeImportAttributes(s);
|
|
7052
7052
|
else {
|
|
7053
|
-
for (var x, g =
|
|
7053
|
+
for (var x, g = xr(s.specifiers); !(x = g()).done; ) {
|
|
7054
7054
|
var _ = x.value;
|
|
7055
7055
|
this.checkUnreserved(_.local), this.checkLocalExport(_.local), _.local.type === "Literal" && this.raise(_.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
7056
7056
|
}
|
|
@@ -7113,7 +7113,7 @@ function $h(e) {
|
|
|
7113
7113
|
this.next(), P.prototype.parseVar.call(this, s, !1, a, c || p), this.semicolon();
|
|
7114
7114
|
var m = this.finishNode(s, "VariableDeclaration");
|
|
7115
7115
|
if (!p) return m;
|
|
7116
|
-
for (var v, x =
|
|
7116
|
+
for (var v, x = xr(m.declarations); !(v = x()).done; ) {
|
|
7117
7117
|
var g = v.value, _ = g.init;
|
|
7118
7118
|
_ && (a !== "const" || g.id.typeAnnotation ? this.raise(_.start, N.InitializerNotAllowedInAmbientContext) : _.type !== "StringLiteral" && _.type !== "BooleanLiteral" && _.type !== "NumericLiteral" && _.type !== "BigIntLiteral" && (_.type !== "TemplateLiteral" || _.expressions.length > 0) && !Fh(_) && this.raise(_.start, N.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
7119
7119
|
}
|
|
@@ -7190,7 +7190,7 @@ function $h(e) {
|
|
|
7190
7190
|
var g = s.declare, _ = s.kind;
|
|
7191
7191
|
!(g !== void 0 && g) || _ !== "get" && _ !== "set" || this.raise(s.start, N.DeclareAccessor({ kind: _ })), x && (s.typeParameters = x);
|
|
7192
7192
|
var T = s.key;
|
|
7193
|
-
s.kind === "constructor" ? (a && this.raise(T.start, "Constructor can't be a generator"), c && this.raise(T.start, "Constructor can't be an async method")) : s.static &&
|
|
7193
|
+
s.kind === "constructor" ? (a && this.raise(T.start, "Constructor can't be a generator"), c && this.raise(T.start, "Constructor can't be an async method")) : s.static && br(s, "prototype") && this.raise(T.start, "Classes may not have a static property named prototype");
|
|
7194
7194
|
var L = s.value = this.parseMethod(a, c, p, !0, s);
|
|
7195
7195
|
return s.kind === "get" && L.params.length !== 0 && this.raiseRecoverable(L.start, "getter should have no params"), s.kind === "set" && L.params.length !== 1 && this.raiseRecoverable(L.start, "setter should have exactly one param"), s.kind === "set" && L.params[0].type === "RestElement" && this.raiseRecoverable(L.params[0].start, "Setter cannot use rest params"), this.finishNode(s, "MethodDefinition");
|
|
7196
7196
|
}, f.isClassMethod = function() {
|
|
@@ -7209,7 +7209,7 @@ function $h(e) {
|
|
|
7209
7209
|
(a.eatContextual("get") || a.eatContextual("set")) && (a.isClassElementNameStart() ? _ = K : v = K);
|
|
7210
7210
|
}
|
|
7211
7211
|
if (v ? (m.computed = !1, m.key = a.startNodeAt(a.lastTokStart, a.lastTokStartLoc), m.key.name = v, a.finishNode(m.key, "Identifier")) : a.parseClassElementName(m), a.parsePostMemberNameModifiers(m), a.isClassMethod() || p < 13 || a.type === o.parenL || _ !== "method" || x || g) {
|
|
7212
|
-
var G = !m.static &&
|
|
7212
|
+
var G = !m.static && br(m, "constructor"), X = G && s;
|
|
7213
7213
|
G && _ !== "method" && a.raise(m.key.start, "Constructor can't have get/set modifier"), m.kind = G ? "constructor" : _, a.parseClassMethod(m, x, g, X);
|
|
7214
7214
|
} else a.parseClassField(m);
|
|
7215
7215
|
return m;
|
|
@@ -7231,7 +7231,7 @@ function $h(e) {
|
|
|
7231
7231
|
}, f.parseArrowExpression = function(s, a, c, p) {
|
|
7232
7232
|
this.match(o.colon) && (s.returnType = this.tsParseTypeAnnotation());
|
|
7233
7233
|
var m = this.yieldPos, v = this.awaitPos, x = this.awaitIdentPos;
|
|
7234
|
-
this.enterScope(16 |
|
|
7234
|
+
this.enterScope(16 | li(c, !1)), this.initFunction(s);
|
|
7235
7235
|
var g = this.maybeInArrowParameters;
|
|
7236
7236
|
return this.options.ecmaVersion >= 8 && (s.async = !!c), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.maybeInArrowParameters = !0, s.params = this.toAssignableList(a, !0), this.maybeInArrowParameters = !1, this.parseFunctionBody(s, !0, !1, p), this.yieldPos = m, this.awaitPos = v, this.awaitIdentPos = x, this.maybeInArrowParameters = g, this.finishNode(s, "ArrowFunctionExpression");
|
|
7237
7237
|
}, f.parseMaybeAssignOrigin = function(s, a, c) {
|
|
@@ -7267,7 +7267,7 @@ function $h(e) {
|
|
|
7267
7267
|
return (Be.type !== "ArrowFunctionExpression" || (mt = Be.extra) != null && mt.parenthesized) && $e(), ((yt = K) == null ? void 0 : yt.params.length) !== 0 && G.resetStartLocationFromNode(Be, K), Be.typeParameters = K, Be;
|
|
7268
7268
|
}, L);
|
|
7269
7269
|
if (!ye.error && !ye.aborted) return K && this.reportReservedArrowTypeParam(K), ye.node;
|
|
7270
|
-
if (!V && (
|
|
7270
|
+
if (!V && (_r(!0), !(E = this.tryParse(function() {
|
|
7271
7271
|
return G.parseMaybeAssignOrigin(s, a, c);
|
|
7272
7272
|
}, L)).error)) return E.node;
|
|
7273
7273
|
if ((m = V) != null && m.node) return this.setLookaheadState(V.failState), V.node;
|
|
@@ -7455,24 +7455,24 @@ function $h(e) {
|
|
|
7455
7455
|
if (this.tsMatchLeftRelational() || this.match(o.bitShift)) {
|
|
7456
7456
|
var V, E = this.tsTryParseAndCatch(function() {
|
|
7457
7457
|
if (!p && g.atPossibleAsyncArrow(s)) {
|
|
7458
|
-
var
|
|
7459
|
-
if (
|
|
7458
|
+
var Vi = g.tsTryParseGenericAsyncArrowFunction(a, c, x);
|
|
7459
|
+
if (Vi) return s = Vi;
|
|
7460
7460
|
}
|
|
7461
7461
|
var Et = g.tsParseTypeArgumentsInExpression();
|
|
7462
7462
|
if (!Et) return s;
|
|
7463
7463
|
if (L && !g.match(o.parenL)) return V = g.curPosition(), s;
|
|
7464
7464
|
if (_e(g.type) || g.type === o.backQuote) {
|
|
7465
|
-
var
|
|
7466
|
-
return
|
|
7465
|
+
var zi = g.parseTaggedTemplateExpression(s, a, c, _);
|
|
7466
|
+
return zi.typeParameters = Et, zi;
|
|
7467
7467
|
}
|
|
7468
7468
|
if (!p && g.eat(o.parenL)) {
|
|
7469
|
-
var
|
|
7470
|
-
return tt.callee = s, tt.arguments = g.parseExprList(o.parenR, g.options.ecmaVersion >= 8, !1,
|
|
7469
|
+
var ji = new xt(), tt = g.startNodeAt(a, c);
|
|
7470
|
+
return tt.callee = s, tt.arguments = g.parseExprList(o.parenR, g.options.ecmaVersion >= 8, !1, ji), g.tsCheckForInvalidTypeCasts(tt.arguments), tt.typeParameters = Et, _ && (tt.optional = L), g.checkExpressionErrors(ji, !0), s = g.finishNode(tt, "CallExpression");
|
|
7471
7471
|
}
|
|
7472
|
-
var
|
|
7473
|
-
if (!(g.tsMatchRightRelational() ||
|
|
7474
|
-
var
|
|
7475
|
-
return
|
|
7472
|
+
var ri = g.type;
|
|
7473
|
+
if (!(g.tsMatchRightRelational() || ri === o.bitShift || ri !== o.parenL && (Fi = ri, !!Fi.startsExpr) && !g.hasPrecedingLineBreak())) {
|
|
7474
|
+
var Fi, si = g.startNodeAt(a, c);
|
|
7475
|
+
return si.expression = s, si.typeParameters = Et, g.finishNode(si, "TSInstantiationExpression");
|
|
7476
7476
|
}
|
|
7477
7477
|
});
|
|
7478
7478
|
if (V && this.unexpected(V), E) return E.type === "TSInstantiationExpression" && (this.match(o.dot) || this.match(o.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, N.InvalidPropertyAccessAfterInstantiationExpression), s = E;
|
|
@@ -7488,18 +7488,18 @@ function $h(e) {
|
|
|
7488
7488
|
this.maybeInArrowParameters = !0;
|
|
7489
7489
|
var $e = new xt(), mt = this.yieldPos, yt = this.awaitPos, Be = this.awaitIdentPos;
|
|
7490
7490
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
7491
|
-
var
|
|
7492
|
-
if (m && !G && this.shouldParseAsyncArrow()) this.checkPatternErrors($e, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = mt, this.awaitPos = yt, this.awaitIdentPos = Be, s = this.parseSubscriptAsyncArrow(a, c,
|
|
7491
|
+
var Mi = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, $e);
|
|
7492
|
+
if (m && !G && this.shouldParseAsyncArrow()) this.checkPatternErrors($e, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = mt, this.awaitPos = yt, this.awaitIdentPos = Be, s = this.parseSubscriptAsyncArrow(a, c, Mi, x);
|
|
7493
7493
|
else {
|
|
7494
7494
|
this.checkExpressionErrors($e, !0), this.yieldPos = mt || this.yieldPos, this.awaitPos = yt || this.awaitPos, this.awaitIdentPos = Be || this.awaitIdentPos;
|
|
7495
7495
|
var At = this.startNodeAt(a, c);
|
|
7496
|
-
At.callee = s, At.arguments =
|
|
7496
|
+
At.callee = s, At.arguments = Mi, K && (At.optional = G), s = this.finishNode(At, "CallExpression");
|
|
7497
7497
|
}
|
|
7498
7498
|
this.maybeInArrowParameters = ye;
|
|
7499
7499
|
} else if (this.type === o.backQuote) {
|
|
7500
7500
|
(G || _) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
7501
|
-
var
|
|
7502
|
-
|
|
7501
|
+
var ii = this.startNodeAt(a, c);
|
|
7502
|
+
ii.tag = s, ii.quasi = this.parseTemplate({ isTagged: !0 }), s = this.finishNode(ii, "TaggedTemplateExpression");
|
|
7503
7503
|
}
|
|
7504
7504
|
return s;
|
|
7505
7505
|
}, f.parseGetterSetter = function(s) {
|
|
@@ -7543,7 +7543,7 @@ function $h(e) {
|
|
|
7543
7543
|
return s && (a.typeParameters = s), a;
|
|
7544
7544
|
}, f.parseMethod = function(s, a, c, p, m) {
|
|
7545
7545
|
var v = this.startNode(), x = this.yieldPos, g = this.awaitPos, _ = this.awaitIdentPos;
|
|
7546
|
-
if (this.initFunction(v), this.options.ecmaVersion >= 6 && (v.generator = s), this.options.ecmaVersion >= 8 && (v.async = !!a), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 |
|
|
7546
|
+
if (this.initFunction(v), this.options.ecmaVersion >= 6 && (v.generator = s), this.options.ecmaVersion >= 8 && (v.async = !!a), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | li(a, v.generator) | (c ? 128 : 0)), this.expect(o.parenL), v.params = this.parseClassFunctionParams(), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(v, !1, !0, !1, { isClassMethod: p }), this.yieldPos = x, this.awaitPos = g, this.awaitIdentPos = _, m && m.abstract && v.body) {
|
|
7547
7547
|
var T = m.key;
|
|
7548
7548
|
this.raise(m.start, N.AbstractMethodHasImplementation({ methodName: T.type !== "Identifier" || m.computed ? "[" + this.input.slice(T.start, T.end) + "]" : T.name }));
|
|
7549
7549
|
}
|
|
@@ -7645,7 +7645,7 @@ function $h(e) {
|
|
|
7645
7645
|
return y;
|
|
7646
7646
|
} }], (te = [{ key: "acornTypeScript", get: function() {
|
|
7647
7647
|
return y;
|
|
7648
|
-
} }]) &&
|
|
7648
|
+
} }]) && yr(oe.prototype, te), B && yr(oe, B), Object.defineProperty(oe, "prototype", { writable: !1 }), pe;
|
|
7649
7649
|
})(h);
|
|
7650
7650
|
return Vs;
|
|
7651
7651
|
};
|
|
@@ -7661,7 +7661,7 @@ async function Zh(e) {
|
|
|
7661
7661
|
}
|
|
7662
7662
|
await Promise.all(
|
|
7663
7663
|
t.map(async (i) => {
|
|
7664
|
-
const r =
|
|
7664
|
+
const r = Mt.join(e, i.name);
|
|
7665
7665
|
try {
|
|
7666
7666
|
await ge.rm(r, { recursive: !0, force: !0 });
|
|
7667
7667
|
} catch (n) {
|
|
@@ -7670,13 +7670,13 @@ async function Zh(e) {
|
|
|
7670
7670
|
})
|
|
7671
7671
|
);
|
|
7672
7672
|
}
|
|
7673
|
-
function
|
|
7673
|
+
function Ri(e) {
|
|
7674
7674
|
const i = J.extend($h()).parse(e, {
|
|
7675
7675
|
ecmaVersion: "latest",
|
|
7676
7676
|
sourceType: "module",
|
|
7677
7677
|
locations: !0
|
|
7678
7678
|
}), r = [];
|
|
7679
|
-
return
|
|
7679
|
+
return gi(i, (n) => {
|
|
7680
7680
|
if (n.type !== "MethodDefinition") return;
|
|
7681
7681
|
const u = n, h = u.key;
|
|
7682
7682
|
if (h.type !== "Identifier") return;
|
|
@@ -7693,7 +7693,7 @@ async function Te(e, t, i = [], r) {
|
|
|
7693
7693
|
async function Uh(e, t) {
|
|
7694
7694
|
return ge.readdir(e, t);
|
|
7695
7695
|
}
|
|
7696
|
-
async function
|
|
7696
|
+
async function Di() {
|
|
7697
7697
|
re("Load environment variables"), (await import("dotenv")).config();
|
|
7698
7698
|
}
|
|
7699
7699
|
function Re(e) {
|
|
@@ -7734,10 +7734,10 @@ async function Ie(e, t, i = [], r = !1) {
|
|
|
7734
7734
|
async function ct(e, t) {
|
|
7735
7735
|
await ge.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
|
|
7736
7736
|
}
|
|
7737
|
-
async function
|
|
7737
|
+
async function ti(e, t) {
|
|
7738
7738
|
await ge.writeFile(e, t, "utf8");
|
|
7739
7739
|
}
|
|
7740
|
-
function
|
|
7740
|
+
function gi(e, t) {
|
|
7741
7741
|
t(e);
|
|
7742
7742
|
for (const [i, r] of Object.entries(e)) {
|
|
7743
7743
|
if (["loc", "range", "start", "end", "comments"].includes(i)) continue;
|
|
@@ -7745,9 +7745,9 @@ function xi(e, t) {
|
|
|
7745
7745
|
if (Array.isArray(n))
|
|
7746
7746
|
for (const u of n) {
|
|
7747
7747
|
const h = u;
|
|
7748
|
-
h && typeof h.type == "string" &&
|
|
7748
|
+
h && typeof h.type == "string" && gi(h, t);
|
|
7749
7749
|
}
|
|
7750
|
-
else n && typeof n == "object" && typeof n.type == "string" &&
|
|
7750
|
+
else n && typeof n == "object" && typeof n.type == "string" && gi(n, t);
|
|
7751
7751
|
}
|
|
7752
7752
|
}
|
|
7753
7753
|
async function Hh() {
|
|
@@ -7758,7 +7758,7 @@ async function Hh() {
|
|
|
7758
7758
|
}, i = await fetch(`https://api.datapos.app/states/${e.id}`, t);
|
|
7759
7759
|
if (!i.ok) throw new Error(await i.text());
|
|
7760
7760
|
}
|
|
7761
|
-
async function
|
|
7761
|
+
async function wr(e) {
|
|
7762
7762
|
const t = e.id, i = {
|
|
7763
7763
|
body: JSON.stringify(e),
|
|
7764
7764
|
headers: { "Content-Type": "application/json" },
|
|
@@ -7766,7 +7766,7 @@ async function kr(e) {
|
|
|
7766
7766
|
}, r = await fetch(`https://api.datapos.app/states/${t}`, i);
|
|
7767
7767
|
if (!r.ok) throw new Error(await r.text());
|
|
7768
7768
|
}
|
|
7769
|
-
async function
|
|
7769
|
+
async function Sr(e, t) {
|
|
7770
7770
|
const i = `v${e.version}`;
|
|
7771
7771
|
async function r(n, u = "") {
|
|
7772
7772
|
const h = await Uh(n, { withFileTypes: !0 });
|
|
@@ -7800,7 +7800,7 @@ async function ml() {
|
|
|
7800
7800
|
}
|
|
7801
7801
|
async function yl() {
|
|
7802
7802
|
try {
|
|
7803
|
-
Re("Release Project"), await
|
|
7803
|
+
Re("Release Project"), await Di();
|
|
7804
7804
|
const e = await de("package.json"), t = await de("config.json");
|
|
7805
7805
|
await Rs("1️⃣", e);
|
|
7806
7806
|
const i = Gh.find((r) => t.id.startsWith(r.idPrefix));
|
|
@@ -7821,18 +7821,18 @@ async function yl() {
|
|
|
7821
7821
|
if (await Ie("3️⃣ Bundle project", "vite", ["build"]), await Te("4️⃣ Stage changes", "git", ["add", "."]), await Te("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await Te("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), i.typeId === "app")
|
|
7822
7822
|
re("7️⃣ Register module"), await Hh();
|
|
7823
7823
|
else if (i.typeId === "engine")
|
|
7824
|
-
re("7️⃣ Register module"), await
|
|
7824
|
+
re("7️⃣ Register module"), await wr(t), await Sr(e, `datapos-engine-eu/${i.uploadGroupName}`);
|
|
7825
7825
|
else if (i.uploadGroupName === void 0)
|
|
7826
7826
|
re("7️⃣ Registration NOT required.");
|
|
7827
7827
|
else {
|
|
7828
|
-
re("7️⃣ Register module"), await
|
|
7828
|
+
re("7️⃣ Register module"), await wr(t);
|
|
7829
7829
|
const r = t.id.split("-").slice(2).join("-");
|
|
7830
|
-
await
|
|
7830
|
+
await Sr(e, `datapos-engine-eu/${i.uploadGroupName}/${r}`);
|
|
7831
7831
|
}
|
|
7832
7832
|
if (i.publish) {
|
|
7833
7833
|
const r = ".npmrc";
|
|
7834
7834
|
try {
|
|
7835
|
-
await
|
|
7835
|
+
await ti(r, `registry=https://registry.npmjs.org/
|
|
7836
7836
|
//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN ?? ""}`), await Ie("8️⃣ Publish to npm", "npm", ["publish", "--access", "public"]);
|
|
7837
7837
|
} finally {
|
|
7838
7838
|
await qh(r);
|
|
@@ -7874,7 +7874,7 @@ async function Kh(e, t) {
|
|
|
7874
7874
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7875
7875
|
return;
|
|
7876
7876
|
}
|
|
7877
|
-
const u =
|
|
7877
|
+
const u = Ri(r), h = Yh(u);
|
|
7878
7878
|
u.length > 0 ? (console.info(`ℹ️ Implements ${u.length} operations:`), console.table(u)) : console.warn("⚠️ Implements no operations."), h === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${h}' usage.`), t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), i.operations = u, i.usageId = h, await ct("config.json", i);
|
|
7879
7879
|
}
|
|
7880
7880
|
async function Xh(e, t) {
|
|
@@ -7884,7 +7884,7 @@ async function Xh(e, t) {
|
|
|
7884
7884
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7885
7885
|
return;
|
|
7886
7886
|
}
|
|
7887
|
-
const u =
|
|
7887
|
+
const u = Ri(r);
|
|
7888
7888
|
u.length > 0 ? (console.info(`ℹ️ Implements ${u.length} operations:`), console.table(u)) : console.warn("⚠️ Implements no operations."), t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), i.operations = u, await ct("config.json", i);
|
|
7889
7889
|
}
|
|
7890
7890
|
async function Jh(e, t) {
|
|
@@ -7894,7 +7894,7 @@ async function Jh(e, t) {
|
|
|
7894
7894
|
console.log("❌ Configuration is invalid:"), console.table(n.error.issues);
|
|
7895
7895
|
return;
|
|
7896
7896
|
}
|
|
7897
|
-
const u =
|
|
7897
|
+
const u = Ri(r);
|
|
7898
7898
|
u.length > 0 ? (console.info(`ℹ️ Implements ${u.length} operations:`), console.table(u)) : console.warn("⚠️ Implements no operations."), t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), i.operations = u, await ct("config.json", i);
|
|
7899
7899
|
}
|
|
7900
7900
|
async function Rs(e, t, i = "./") {
|
|
@@ -7918,10 +7918,10 @@ const Qh = {
|
|
|
7918
7918
|
low: { color: "6D8C31", label: "low" },
|
|
7919
7919
|
unknown: { color: "616161", label: "unknown" }
|
|
7920
7920
|
// See sample badges in ~/tests/sampleBadges.md. Also included 'info' colouring.
|
|
7921
|
-
},
|
|
7921
|
+
}, Tr = "<!-- OWASP_BADGES_START -->", el = "<!-- OWASP_BADGES_END -->";
|
|
7922
7922
|
async function gl() {
|
|
7923
7923
|
try {
|
|
7924
|
-
Re("Audit Dependencies"), await
|
|
7924
|
+
Re("Audit Dependencies"), await Di();
|
|
7925
7925
|
const e = await de("package.json");
|
|
7926
7926
|
console.log(1111, process.env.OWASP_NVD_API_KEY), await Ie("1️⃣", "owasp-dependency-check", [
|
|
7927
7927
|
"--out",
|
|
@@ -7946,13 +7946,13 @@ async function tl(e) {
|
|
|
7946
7946
|
const S = w.severity?.toLowerCase() ?? "unknown";
|
|
7947
7947
|
S in i ? i[S]++ : i.unknown++;
|
|
7948
7948
|
}
|
|
7949
|
-
const r = await il(i), n = await Xe("./README.md"), u = n.indexOf(
|
|
7949
|
+
const r = await il(i), n = await Xe("./README.md"), u = n.indexOf(Tr), h = n.indexOf(el);
|
|
7950
7950
|
if (u === -1 || h === -1) {
|
|
7951
7951
|
console.error("❌ No OWASP badge markers found in 'README.md'.");
|
|
7952
7952
|
return;
|
|
7953
7953
|
}
|
|
7954
|
-
const d = r.join(" "), y = n.slice(0, Math.max(0, u +
|
|
7955
|
-
await
|
|
7954
|
+
const d = r.join(" "), y = n.slice(0, Math.max(0, u + Tr.length)) + d + n.slice(Math.max(0, h));
|
|
7955
|
+
await ti("README.md", y), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
7956
7956
|
}
|
|
7957
7957
|
async function il(e) {
|
|
7958
7958
|
const t = await de("config.json"), i = [];
|
|
@@ -7974,10 +7974,10 @@ async function bl() {
|
|
|
7974
7974
|
console.error("❌ Error checking dependencies.", e), process.exit(1);
|
|
7975
7975
|
}
|
|
7976
7976
|
}
|
|
7977
|
-
const
|
|
7977
|
+
const Pr = "<!-- DEPENDENCY_LICENSES_START -->", rl = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
7978
7978
|
async function _l(e = [], t = !0) {
|
|
7979
7979
|
try {
|
|
7980
|
-
Re("Document Dependencies"), await
|
|
7980
|
+
Re("Document Dependencies"), await Di();
|
|
7981
7981
|
const i = e.flatMap((n) => ["--allowed", `'${n}'`]), r = Cr(new Us(import.meta.resolve("@datapos/datapos-development/license-report-config")));
|
|
7982
7982
|
await Te(
|
|
7983
7983
|
"1️⃣ Generate 'licenses.json' file",
|
|
@@ -8004,7 +8004,7 @@ async function _l(e = [], t = !0) {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
async function sl(e, t) {
|
|
8006
8006
|
re(`${e} Insert licenses into 'README.md'`);
|
|
8007
|
-
const i = await Xe("./README.md"), r = i.indexOf(
|
|
8007
|
+
const i = await Xe("./README.md"), r = i.indexOf(Pr), n = i.indexOf(rl);
|
|
8008
8008
|
if (r === -1 || n === -1) {
|
|
8009
8009
|
console.error("❌ No dependency license markers found in 'README.md'.");
|
|
8010
8010
|
return;
|
|
@@ -8037,10 +8037,10 @@ async function sl(e, t) {
|
|
|
8037
8037
|
S.licenseFileLink == null || S.licenseFileLink == "" ? le = "⚠️ No license file" : le = `[${S.licenseFileLink.slice(Math.max(0, S.licenseFileLink.lastIndexOf("/") + 1))}](${S.licenseFileLink})`, o += `|${S.name}|${S.licenseType}|${A}|${S.remoteVersion}|${F}|${Z}|${le}|
|
|
8038
8038
|
`;
|
|
8039
8039
|
}
|
|
8040
|
-
const w = `${i.slice(0, Math.max(0, r +
|
|
8040
|
+
const w = `${i.slice(0, Math.max(0, r + Pr.length))}
|
|
8041
8041
|
${o}
|
|
8042
8042
|
${i.slice(Math.max(0, n))}`;
|
|
8043
|
-
await
|
|
8043
|
+
await ti("README.md", w);
|
|
8044
8044
|
}
|
|
8045
8045
|
function nl(e) {
|
|
8046
8046
|
if (e == null || e === "") return "n/a";
|
|
@@ -8052,7 +8052,7 @@ function nl(e) {
|
|
|
8052
8052
|
}
|
|
8053
8053
|
async function kl() {
|
|
8054
8054
|
try {
|
|
8055
|
-
Re("Format Code"), await Ie("1️⃣ Format", "prettier", ["--write", "src/"]), Fe("Code formatted.");
|
|
8055
|
+
Re("Format Code"), await Ie("1️⃣ Format", "prettier", ["--write", "*.ts", "src/"]), Fe("Code formatted.");
|
|
8056
8056
|
} catch (e) {
|
|
8057
8057
|
console.error("❌ Error formatting code.", e), process.exit(1);
|
|
8058
8058
|
}
|
|
@@ -8078,11 +8078,11 @@ async function Sl(e = []) {
|
|
|
8078
8078
|
}
|
|
8079
8079
|
}
|
|
8080
8080
|
async function ol(e) {
|
|
8081
|
-
const t =
|
|
8082
|
-
await
|
|
8081
|
+
const t = Mt.dirname(Cr(import.meta.url));
|
|
8082
|
+
await Dt(t, "../", ".editorconfig"), await Dt(t, "../", ".gitattributes"), await Dt(t, "../", ".markdownlint.json"), await Dt(t, "../", "LICENSE");
|
|
8083
8083
|
}
|
|
8084
|
-
async function
|
|
8085
|
-
const r =
|
|
8084
|
+
async function Dt(e, t, i) {
|
|
8085
|
+
const r = Mt.resolve(e, `${t}${i}`), n = await Xe(r), u = Mt.resolve(process.cwd(), i);
|
|
8086
8086
|
let h;
|
|
8087
8087
|
try {
|
|
8088
8088
|
h = await Xe(u);
|
|
@@ -8093,7 +8093,7 @@ async function Pr(e, t, i) {
|
|
|
8093
8093
|
console.info(`ℹ️ File '${i}' is already up to date.`);
|
|
8094
8094
|
return;
|
|
8095
8095
|
}
|
|
8096
|
-
await
|
|
8096
|
+
await ti(u, n), console.info(`ℹ️ File '${i}' synchronised.`);
|
|
8097
8097
|
}
|
|
8098
8098
|
async function Tl(e) {
|
|
8099
8099
|
try {
|