@datapos/datapos-development 0.3.385 → 0.3.386
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,13 +1,13 @@
|
|
|
1
1
|
import { promises as ge } from "node:fs";
|
|
2
|
-
import { nanoid as
|
|
2
|
+
import { nanoid as Ys } from "nanoid";
|
|
3
3
|
import Ht from "node:path";
|
|
4
|
-
import { promisify as
|
|
5
|
-
import { exec as
|
|
6
|
-
import { CONNECTOR_SOURCE_OPERATIONS as
|
|
7
|
-
import { fileURLToPath as
|
|
4
|
+
import { promisify as Qs } from "node:util";
|
|
5
|
+
import { exec as en, spawn as tn } from "node:child_process";
|
|
6
|
+
import { CONNECTOR_SOURCE_OPERATIONS as rn, CONNECTOR_DESTINATION_OPERATIONS as sn } from "@datapos/datapos-shared";
|
|
7
|
+
import { fileURLToPath as Vr, URL as nn } from "node:url";
|
|
8
8
|
let fi;
|
|
9
9
|
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function
|
|
10
|
+
function jr(e) {
|
|
11
11
|
return {
|
|
12
12
|
lang: e?.lang ?? fi?.lang,
|
|
13
13
|
message: e?.message,
|
|
@@ -15,20 +15,20 @@ function zr(e) {
|
|
|
15
15
|
abortPipeEarly: e?.abortPipeEarly ?? fi?.abortPipeEarly
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
let
|
|
18
|
+
let an;
|
|
19
19
|
// @__NO_SIDE_EFFECTS__
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function on(e) {
|
|
21
|
+
return an?.get(e);
|
|
22
22
|
}
|
|
23
|
-
let
|
|
23
|
+
let un;
|
|
24
24
|
// @__NO_SIDE_EFFECTS__
|
|
25
|
-
function
|
|
26
|
-
return
|
|
25
|
+
function cn(e) {
|
|
26
|
+
return un?.get(e);
|
|
27
27
|
}
|
|
28
|
-
let
|
|
28
|
+
let hn;
|
|
29
29
|
// @__NO_SIDE_EFFECTS__
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function ln(e, t) {
|
|
31
|
+
return hn?.get(e)?.get(t);
|
|
32
32
|
}
|
|
33
33
|
// @__NO_SIDE_EFFECTS__
|
|
34
34
|
function Ei(e) {
|
|
@@ -49,7 +49,7 @@ function Ve(e, t, i, r, n) {
|
|
|
49
49
|
lang: r.lang,
|
|
50
50
|
abortEarly: r.abortEarly,
|
|
51
51
|
abortPipeEarly: r.abortPipeEarly
|
|
52
|
-
}, o = e.kind === "schema", b = n?.message ?? e.message ?? /* @__PURE__ */
|
|
52
|
+
}, o = e.kind === "schema", b = n?.message ?? e.message ?? /* @__PURE__ */ ln(e.reference, y.lang) ?? (o ? /* @__PURE__ */ cn(y.lang) : null) ?? r.message ?? /* @__PURE__ */ on(y.lang);
|
|
53
53
|
b !== void 0 && (y.message = typeof b == "function" ? b(y) : b), o && (i.typed = !1), i.issues ? i.issues.push(y) : i.issues = [y];
|
|
54
54
|
}
|
|
55
55
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -58,21 +58,21 @@ function Ne(e) {
|
|
|
58
58
|
version: 1,
|
|
59
59
|
vendor: "valibot",
|
|
60
60
|
validate(t) {
|
|
61
|
-
return e["~run"]({ value: t }, /* @__PURE__ */
|
|
61
|
+
return e["~run"]({ value: t }, /* @__PURE__ */ jr());
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
// @__NO_SIDE_EFFECTS__
|
|
66
|
-
function
|
|
66
|
+
function pn(e, t) {
|
|
67
67
|
return Object.hasOwn(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
68
68
|
}
|
|
69
69
|
// @__NO_SIDE_EFFECTS__
|
|
70
|
-
function
|
|
70
|
+
function fn(e, t) {
|
|
71
71
|
const i = [...new Set(e)];
|
|
72
72
|
return i.length > 1 ? `(${i.join(` ${t} `)})` : i[0] ?? "never";
|
|
73
73
|
}
|
|
74
74
|
// @__NO_SIDE_EFFECTS__
|
|
75
|
-
function
|
|
75
|
+
function dn(e, t, i) {
|
|
76
76
|
return typeof e.fallback == "function" ? e.fallback(t, i) : e.fallback;
|
|
77
77
|
}
|
|
78
78
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -121,11 +121,11 @@ function Ni(e, t) {
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
// @__NO_SIDE_EFFECTS__
|
|
124
|
-
function
|
|
124
|
+
function zr(e) {
|
|
125
125
|
return {
|
|
126
126
|
kind: "schema",
|
|
127
127
|
type: "boolean",
|
|
128
|
-
reference:
|
|
128
|
+
reference: zr,
|
|
129
129
|
expects: "boolean",
|
|
130
130
|
async: !1,
|
|
131
131
|
message: e,
|
|
@@ -138,11 +138,11 @@ function $r(e) {
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
// @__NO_SIDE_EFFECTS__
|
|
141
|
-
function
|
|
141
|
+
function $r(e, t) {
|
|
142
142
|
return {
|
|
143
143
|
kind: "schema",
|
|
144
144
|
type: "literal",
|
|
145
|
-
reference:
|
|
145
|
+
reference: $r,
|
|
146
146
|
expects: /* @__PURE__ */ Ei(e),
|
|
147
147
|
async: !1,
|
|
148
148
|
literal: e,
|
|
@@ -227,7 +227,7 @@ function Nt(e, t) {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
y.typed || (i.typed = !1), i.value[u] = y.value;
|
|
230
|
-
} else if (c.fallback !== void 0) i.value[u] = /* @__PURE__ */
|
|
230
|
+
} else if (c.fallback !== void 0) i.value[u] = /* @__PURE__ */ dn(c);
|
|
231
231
|
else if (c.type !== "exact_optional" && c.type !== "optional" && c.type !== "nullish" && (Ve(this, "key", i, r, {
|
|
232
232
|
input: void 0,
|
|
233
233
|
expected: `"${u}"`,
|
|
@@ -270,7 +270,7 @@ function Le(e, t) {
|
|
|
270
270
|
kind: "schema",
|
|
271
271
|
type: "picklist",
|
|
272
272
|
reference: Le,
|
|
273
|
-
expects: /* @__PURE__ */
|
|
273
|
+
expects: /* @__PURE__ */ fn(e.map(Ei), "|"),
|
|
274
274
|
async: !1,
|
|
275
275
|
options: e,
|
|
276
276
|
message: t,
|
|
@@ -300,7 +300,7 @@ function ut(e, t, i) {
|
|
|
300
300
|
const u = r.value;
|
|
301
301
|
if (u && typeof u == "object") {
|
|
302
302
|
r.typed = !0, r.value = {};
|
|
303
|
-
for (const c in u) if (/* @__PURE__ */
|
|
303
|
+
for (const c in u) if (/* @__PURE__ */ pn(u, c)) {
|
|
304
304
|
const f = u[c], y = this.key["~run"]({ value: c }, n);
|
|
305
305
|
if (y.issues) {
|
|
306
306
|
const b = {
|
|
@@ -358,8 +358,8 @@ function ee(e) {
|
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
360
|
// @__NO_SIDE_EFFECTS__
|
|
361
|
-
function
|
|
362
|
-
const r = e["~run"]({ value: t }, /* @__PURE__ */
|
|
361
|
+
function mn(e, t, i) {
|
|
362
|
+
const r = e["~run"]({ value: t }, /* @__PURE__ */ jr(i));
|
|
363
363
|
return {
|
|
364
364
|
typed: r.typed,
|
|
365
365
|
success: !r.issues,
|
|
@@ -367,7 +367,7 @@ function yn(e, t, i) {
|
|
|
367
367
|
issues: r.issues
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const yn = ["amber", "green", "red", "other"], vn = /* @__PURE__ */ Le(yn), xn = ["alpha", "beta", "generalAvailability", "notApplicable", "preAlpha", "proposed", "releaseCandidate", "unavailable", "underReview"], gn = /* @__PURE__ */ Le(xn), bn = [
|
|
371
371
|
"app",
|
|
372
372
|
"connector",
|
|
373
373
|
"connectorConnection",
|
|
@@ -391,11 +391,11 @@ const vn = ["amber", "green", "red", "other"], xn = /* @__PURE__ */ Le(vn), gn =
|
|
|
391
391
|
"presenter",
|
|
392
392
|
"presenterPresentation",
|
|
393
393
|
"tool"
|
|
394
|
-
],
|
|
394
|
+
], kn = /* @__PURE__ */ Le(bn), _n = ["en-au", "en-gb", "en-us", "es-es"], wn = /* @__PURE__ */ Le(_n), Sn = /* @__PURE__ */ ut(wn, /* @__PURE__ */ ee()), Tn = /* @__PURE__ */ Nt({
|
|
395
395
|
id: /* @__PURE__ */ ee(),
|
|
396
|
-
color:
|
|
396
|
+
color: vn,
|
|
397
397
|
label: /* @__PURE__ */ ee()
|
|
398
|
-
}),
|
|
398
|
+
}), Pn = {
|
|
399
399
|
id: /* @__PURE__ */ ee(),
|
|
400
400
|
label: /* @__PURE__ */ ut(/* @__PURE__ */ ee(), /* @__PURE__ */ ee()),
|
|
401
401
|
description: /* @__PURE__ */ ut(/* @__PURE__ */ ee(), /* @__PURE__ */ ee()),
|
|
@@ -403,25 +403,25 @@ const vn = ["amber", "green", "red", "other"], xn = /* @__PURE__ */ Le(vn), gn =
|
|
|
403
403
|
icon: /* @__PURE__ */ ae(/* @__PURE__ */ ee()),
|
|
404
404
|
iconDark: /* @__PURE__ */ ae(/* @__PURE__ */ ee()),
|
|
405
405
|
lastUpdatedAt: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(/* @__PURE__ */ Ct())),
|
|
406
|
-
status: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(
|
|
407
|
-
statusId:
|
|
408
|
-
typeId:
|
|
409
|
-
},
|
|
406
|
+
status: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(Tn)),
|
|
407
|
+
statusId: gn,
|
|
408
|
+
typeId: kn
|
|
409
|
+
}, Cn = ["app", "engine", "connector", "context", "presenter", "tool"], An = /* @__PURE__ */ Le(Cn), En = /* @__PURE__ */ Nt({
|
|
410
410
|
id: /* @__PURE__ */ ee(),
|
|
411
411
|
label: /* @__PURE__ */ ee()
|
|
412
|
-
}),
|
|
413
|
-
...
|
|
414
|
-
typeId:
|
|
412
|
+
}), In = {
|
|
413
|
+
...Pn,
|
|
414
|
+
typeId: An,
|
|
415
415
|
version: /* @__PURE__ */ ee()
|
|
416
|
-
},
|
|
416
|
+
}, Nn = ["apiKey", "disabled", "oAuth2", "none"], Ln = /* @__PURE__ */ Le(Nn), On = /* @__PURE__ */ Nt({
|
|
417
417
|
activeConnectionCount: /* @__PURE__ */ ae(/* @__PURE__ */ Ct()),
|
|
418
|
-
canDescribe: /* @__PURE__ */ ae(/* @__PURE__ */
|
|
418
|
+
canDescribe: /* @__PURE__ */ ae(/* @__PURE__ */ zr()),
|
|
419
419
|
id: /* @__PURE__ */ ae(/* @__PURE__ */ ee()),
|
|
420
|
-
authMethodId:
|
|
421
|
-
label: /* @__PURE__ */ ae(
|
|
420
|
+
authMethodId: Ln,
|
|
421
|
+
label: /* @__PURE__ */ ae(Sn),
|
|
422
422
|
maxConnectionCount: /* @__PURE__ */ ae(/* @__PURE__ */ Ct()),
|
|
423
423
|
params: /* @__PURE__ */ ae(/* @__PURE__ */ Ni(/* @__PURE__ */ ut(/* @__PURE__ */ ee(), /* @__PURE__ */ ee())))
|
|
424
|
-
}),
|
|
424
|
+
}), Rn = ["application", "curatedDataset", "database", "fileStore"], Dn = /* @__PURE__ */ Le(Rn), Mn = [
|
|
425
425
|
"abortOperation",
|
|
426
426
|
"authenticateConnection",
|
|
427
427
|
"createObject",
|
|
@@ -434,14 +434,14 @@ const vn = ["amber", "green", "red", "other"], xn = /* @__PURE__ */ Le(vn), gn =
|
|
|
434
434
|
"removeRecords",
|
|
435
435
|
"retrieveRecords",
|
|
436
436
|
"upsertRecords"
|
|
437
|
-
],
|
|
438
|
-
...
|
|
439
|
-
category: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(
|
|
440
|
-
categoryId:
|
|
441
|
-
implementations: /* @__PURE__ */ ut(/* @__PURE__ */ ee(),
|
|
442
|
-
operations: /* @__PURE__ */ Ni(
|
|
443
|
-
typeId: /* @__PURE__ */
|
|
444
|
-
usageId:
|
|
437
|
+
], Vn = /* @__PURE__ */ Le(Mn), jn = ["bidirectional", "destination", "source", "unknown"], zn = /* @__PURE__ */ Le(jn), $n = /* @__PURE__ */ Nt({
|
|
438
|
+
...In,
|
|
439
|
+
category: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(En)),
|
|
440
|
+
categoryId: Dn,
|
|
441
|
+
implementations: /* @__PURE__ */ ut(/* @__PURE__ */ ee(), On),
|
|
442
|
+
operations: /* @__PURE__ */ Ni(Vn),
|
|
443
|
+
typeId: /* @__PURE__ */ $r("connector"),
|
|
444
|
+
usageId: zn,
|
|
445
445
|
vendorAccountURL: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(/* @__PURE__ */ ee())),
|
|
446
446
|
vendorDocumentationURL: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(/* @__PURE__ */ ee())),
|
|
447
447
|
vendorHomeURL: /* @__PURE__ */ ae(/* @__PURE__ */ Ye(/* @__PURE__ */ ee()))
|
|
@@ -485,14 +485,14 @@ class ot extends Error {
|
|
|
485
485
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
class
|
|
488
|
+
class Fr extends Error {
|
|
489
489
|
constructor(t) {
|
|
490
490
|
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
const
|
|
493
|
+
const Br = {};
|
|
494
494
|
function He(e) {
|
|
495
|
-
return
|
|
495
|
+
return Br;
|
|
496
496
|
}
|
|
497
497
|
function Fn(e) {
|
|
498
498
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
@@ -528,13 +528,13 @@ function Bn(e, t) {
|
|
|
528
528
|
const u = i > n ? i : n, c = Number.parseInt(e.toFixed(u).replace(".", "")), f = Number.parseInt(t.toFixed(u).replace(".", ""));
|
|
529
529
|
return c % f / 10 ** u;
|
|
530
530
|
}
|
|
531
|
-
const
|
|
531
|
+
const Qi = Symbol("evaluating");
|
|
532
532
|
function Z(e, t, i) {
|
|
533
533
|
let r;
|
|
534
534
|
Object.defineProperty(e, t, {
|
|
535
535
|
get() {
|
|
536
|
-
if (r !==
|
|
537
|
-
return r === void 0 && (r =
|
|
536
|
+
if (r !== Qi)
|
|
537
|
+
return r === void 0 && (r = Qi, r = i()), r;
|
|
538
538
|
},
|
|
539
539
|
set(n) {
|
|
540
540
|
Object.defineProperty(e, t, {
|
|
@@ -561,13 +561,13 @@ function tt(...e) {
|
|
|
561
561
|
}
|
|
562
562
|
return Object.defineProperties({}, t);
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function er(e) {
|
|
565
565
|
return JSON.stringify(e);
|
|
566
566
|
}
|
|
567
567
|
function Zn(e) {
|
|
568
568
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
569
569
|
}
|
|
570
|
-
const
|
|
570
|
+
const Zr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
571
571
|
};
|
|
572
572
|
function Gt(e) {
|
|
573
573
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
@@ -591,7 +591,7 @@ function ct(e) {
|
|
|
591
591
|
const i = t.prototype;
|
|
592
592
|
return !(Gt(i) === !1 || Object.prototype.hasOwnProperty.call(i, "isPrototypeOf") === !1);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ur(e) {
|
|
595
595
|
return ct(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
596
596
|
}
|
|
597
597
|
const qn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
@@ -784,7 +784,7 @@ function At(...e) {
|
|
|
784
784
|
inst: r
|
|
785
785
|
} : { ...t };
|
|
786
786
|
}
|
|
787
|
-
const
|
|
787
|
+
const qr = (e, t) => {
|
|
788
788
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
789
789
|
value: e._zod,
|
|
790
790
|
enumerable: !1
|
|
@@ -795,7 +795,7 @@ const Hr = (e, t) => {
|
|
|
795
795
|
value: () => e.message,
|
|
796
796
|
enumerable: !1
|
|
797
797
|
});
|
|
798
|
-
},
|
|
798
|
+
}, Hr = _("$ZodError", qr), Gr = _("$ZodError", qr, { Parent: Error });
|
|
799
799
|
function ta(e, t = (i) => i.message) {
|
|
800
800
|
const i = {}, r = [];
|
|
801
801
|
for (const n of e.issues)
|
|
@@ -829,7 +829,7 @@ const Mi = (e) => (t, i, r, n) => {
|
|
|
829
829
|
throw new ot();
|
|
830
830
|
if (c.issues.length) {
|
|
831
831
|
const f = new (n?.Err ?? e)(c.issues.map((y) => Ge(y, u, He())));
|
|
832
|
-
throw
|
|
832
|
+
throw Zr(f, n?.callee), f;
|
|
833
833
|
}
|
|
834
834
|
return c.value;
|
|
835
835
|
}, Vi = (e) => async (t, i, r, n) => {
|
|
@@ -837,7 +837,7 @@ const Mi = (e) => (t, i, r, n) => {
|
|
|
837
837
|
let c = t._zod.run({ value: i, issues: [] }, u);
|
|
838
838
|
if (c instanceof Promise && (c = await c), c.issues.length) {
|
|
839
839
|
const f = new (n?.Err ?? e)(c.issues.map((y) => Ge(y, u, He())));
|
|
840
|
-
throw
|
|
840
|
+
throw Zr(f, n?.callee), f;
|
|
841
841
|
}
|
|
842
842
|
return c.value;
|
|
843
843
|
}, ii = (e) => (t, i, r) => {
|
|
@@ -846,16 +846,16 @@ const Mi = (e) => (t, i, r, n) => {
|
|
|
846
846
|
throw new ot();
|
|
847
847
|
return u.issues.length ? {
|
|
848
848
|
success: !1,
|
|
849
|
-
error: new (e ??
|
|
849
|
+
error: new (e ?? Hr)(u.issues.map((c) => Ge(c, n, He())))
|
|
850
850
|
} : { success: !0, data: u.value };
|
|
851
|
-
}, ra = /* @__PURE__ */ ii(
|
|
851
|
+
}, ra = /* @__PURE__ */ ii(Gr), ri = (e) => async (t, i, r) => {
|
|
852
852
|
const n = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
853
853
|
let u = t._zod.run({ value: i, issues: [] }, n);
|
|
854
854
|
return u instanceof Promise && (u = await u), u.issues.length ? {
|
|
855
855
|
success: !1,
|
|
856
856
|
error: new e(u.issues.map((c) => Ge(c, n, He())))
|
|
857
857
|
} : { success: !0, data: u.value };
|
|
858
|
-
}, sa = /* @__PURE__ */ ri(
|
|
858
|
+
}, sa = /* @__PURE__ */ ri(Gr), na = (e) => (t, i, r) => {
|
|
859
859
|
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
860
860
|
return Mi(e)(t, i, n);
|
|
861
861
|
}, aa = (e) => (t, i, r) => Mi(e)(t, i, r), oa = (e) => async (t, i, r) => {
|
|
@@ -867,23 +867,23 @@ const Mi = (e) => (t, i, r, n) => {
|
|
|
867
867
|
}, ha = (e) => (t, i, r) => ii(e)(t, i, r), la = (e) => async (t, i, r) => {
|
|
868
868
|
const n = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
869
869
|
return ri(e)(t, i, n);
|
|
870
|
-
}, pa = (e) => async (t, i, r) => ri(e)(t, i, r), fa = /^[cC][^\s-]{8,}$/, da = /^[0-9a-z]+$/, ma = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ya = /^[0-9a-vA-V]{20}$/, va = /^[A-Za-z0-9]{27}$/, xa = /^[a-zA-Z0-9_-]{21}$/, ga = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ba = /^([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})$/,
|
|
870
|
+
}, pa = (e) => async (t, i, r) => ri(e)(t, i, r), fa = /^[cC][^\s-]{8,}$/, da = /^[0-9a-z]+$/, ma = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ya = /^[0-9a-vA-V]{20}$/, va = /^[A-Za-z0-9]{27}$/, xa = /^[a-zA-Z0-9_-]{21}$/, ga = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ba = /^([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})$/, tr = (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)$/, ka = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, _a = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
871
871
|
function wa() {
|
|
872
872
|
return new RegExp(_a, "u");
|
|
873
873
|
}
|
|
874
|
-
const Sa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ta = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Pa = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ca = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Aa = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,
|
|
875
|
-
function
|
|
874
|
+
const Sa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ta = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Pa = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Ca = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Aa = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Wr = /^[A-Za-z0-9_-]*$/, Ea = /^\+(?:[0-9]){6,14}[0-9]$/, Kr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ia = /* @__PURE__ */ new RegExp(`^${Kr}$`);
|
|
875
|
+
function Xr(e) {
|
|
876
876
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
877
877
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
878
878
|
}
|
|
879
879
|
function Na(e) {
|
|
880
|
-
return new RegExp(`^${
|
|
880
|
+
return new RegExp(`^${Xr(e)}$`);
|
|
881
881
|
}
|
|
882
882
|
function La(e) {
|
|
883
|
-
const t =
|
|
883
|
+
const t = Xr({ precision: e.precision }), i = ["Z"];
|
|
884
884
|
e.local && i.push(""), e.offset && i.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
885
885
|
const r = `${t}(?:${i.join("|")})`;
|
|
886
|
-
return new RegExp(`^${
|
|
886
|
+
return new RegExp(`^${Kr}T(?:${r})$`);
|
|
887
887
|
}
|
|
888
888
|
const Oa = (e) => {
|
|
889
889
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
@@ -891,13 +891,13 @@ const Oa = (e) => {
|
|
|
891
891
|
}, Ra = /^-?\d+$/, Da = /^-?\d+(?:\.\d+)?/, Ma = /^[^A-Z]*$/, Va = /^[^a-z]*$/, me = /* @__PURE__ */ _("$ZodCheck", (e, t) => {
|
|
892
892
|
var i;
|
|
893
893
|
e._zod ?? (e._zod = {}), e._zod.def = t, (i = e._zod).onattach ?? (i.onattach = []);
|
|
894
|
-
}),
|
|
894
|
+
}), Jr = {
|
|
895
895
|
number: "number",
|
|
896
896
|
bigint: "bigint",
|
|
897
897
|
object: "date"
|
|
898
|
-
},
|
|
898
|
+
}, Yr = /* @__PURE__ */ _("$ZodCheckLessThan", (e, t) => {
|
|
899
899
|
me.init(e, t);
|
|
900
|
-
const i =
|
|
900
|
+
const i = Jr[typeof t.value];
|
|
901
901
|
e._zod.onattach.push((r) => {
|
|
902
902
|
const n = r._zod.bag, u = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
903
903
|
t.value < u && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
@@ -912,9 +912,9 @@ const Oa = (e) => {
|
|
|
912
912
|
continue: !t.abort
|
|
913
913
|
});
|
|
914
914
|
};
|
|
915
|
-
}),
|
|
915
|
+
}), Qr = /* @__PURE__ */ _("$ZodCheckGreaterThan", (e, t) => {
|
|
916
916
|
me.init(e, t);
|
|
917
|
-
const i =
|
|
917
|
+
const i = Jr[typeof t.value];
|
|
918
918
|
e._zod.onattach.push((r) => {
|
|
919
919
|
const n = r._zod.bag, u = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
920
920
|
t.value > u && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
@@ -1293,9 +1293,9 @@ const Ja = {
|
|
|
1293
1293
|
}[t.version];
|
|
1294
1294
|
if (r === void 0)
|
|
1295
1295
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
1296
|
-
t.pattern ?? (t.pattern =
|
|
1296
|
+
t.pattern ?? (t.pattern = tr(r));
|
|
1297
1297
|
} else
|
|
1298
|
-
t.pattern ?? (t.pattern =
|
|
1298
|
+
t.pattern ?? (t.pattern = tr());
|
|
1299
1299
|
W.init(e, t);
|
|
1300
1300
|
}), eo = /* @__PURE__ */ _("$ZodEmail", (e, t) => {
|
|
1301
1301
|
t.pattern ?? (t.pattern = ka), W.init(e, t);
|
|
@@ -1397,7 +1397,7 @@ const Ja = {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
};
|
|
1399
1399
|
});
|
|
1400
|
-
function
|
|
1400
|
+
function es(e) {
|
|
1401
1401
|
if (e === "")
|
|
1402
1402
|
return !0;
|
|
1403
1403
|
if (e.length % 4 !== 0)
|
|
@@ -1410,7 +1410,7 @@ function ts(e) {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
const xo = /* @__PURE__ */ _("$ZodBase64", (e, t) => {
|
|
1412
1412
|
t.pattern ?? (t.pattern = Aa), W.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (i) => {
|
|
1413
|
-
|
|
1413
|
+
es(i.value) || i.issues.push({
|
|
1414
1414
|
code: "invalid_format",
|
|
1415
1415
|
format: "base64",
|
|
1416
1416
|
input: i.value,
|
|
@@ -1420,13 +1420,13 @@ const xo = /* @__PURE__ */ _("$ZodBase64", (e, t) => {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
});
|
|
1422
1422
|
function go(e) {
|
|
1423
|
-
if (!
|
|
1423
|
+
if (!Wr.test(e))
|
|
1424
1424
|
return !1;
|
|
1425
1425
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), i = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1426
|
-
return
|
|
1426
|
+
return es(i);
|
|
1427
1427
|
}
|
|
1428
1428
|
const bo = /* @__PURE__ */ _("$ZodBase64URL", (e, t) => {
|
|
1429
|
-
t.pattern ?? (t.pattern =
|
|
1429
|
+
t.pattern ?? (t.pattern = Wr), W.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (i) => {
|
|
1430
1430
|
go(i.value) || i.issues.push({
|
|
1431
1431
|
code: "invalid_format",
|
|
1432
1432
|
format: "base64url",
|
|
@@ -1462,7 +1462,7 @@ const wo = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
|
|
|
1462
1462
|
continue: !t.abort
|
|
1463
1463
|
});
|
|
1464
1464
|
};
|
|
1465
|
-
}),
|
|
1465
|
+
}), ts = /* @__PURE__ */ _("$ZodNumber", (e, t) => {
|
|
1466
1466
|
Q.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Da, e._zod.parse = (i, r) => {
|
|
1467
1467
|
if (t.coerce)
|
|
1468
1468
|
try {
|
|
@@ -1482,7 +1482,7 @@ const wo = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
|
|
|
1482
1482
|
}), i;
|
|
1483
1483
|
};
|
|
1484
1484
|
}), So = /* @__PURE__ */ _("$ZodNumberFormat", (e, t) => {
|
|
1485
|
-
za.init(e, t),
|
|
1485
|
+
za.init(e, t), ts.init(e, t);
|
|
1486
1486
|
}), To = /* @__PURE__ */ _("$ZodUnknown", (e, t) => {
|
|
1487
1487
|
Q.init(e, t), e._zod.parse = (i) => i;
|
|
1488
1488
|
}), Po = /* @__PURE__ */ _("$ZodNever", (e, t) => {
|
|
@@ -1493,7 +1493,7 @@ const wo = /* @__PURE__ */ _("$ZodJWT", (e, t) => {
|
|
|
1493
1493
|
inst: e
|
|
1494
1494
|
}), i);
|
|
1495
1495
|
});
|
|
1496
|
-
function
|
|
1496
|
+
function ir(e, t, i) {
|
|
1497
1497
|
e.issues.length && t.issues.push(...at(i, e.issues)), t.value[i] = e.value;
|
|
1498
1498
|
}
|
|
1499
1499
|
const Co = /* @__PURE__ */ _("$ZodArray", (e, t) => {
|
|
@@ -1513,7 +1513,7 @@ const Co = /* @__PURE__ */ _("$ZodArray", (e, t) => {
|
|
|
1513
1513
|
value: f,
|
|
1514
1514
|
issues: []
|
|
1515
1515
|
}, r);
|
|
1516
|
-
y instanceof Promise ? u.push(y.then((o) =>
|
|
1516
|
+
y instanceof Promise ? u.push(y.then((o) => ir(o, i, c))) : ir(y, i, c);
|
|
1517
1517
|
}
|
|
1518
1518
|
return u.length ? Promise.all(u).then(() => i) : i;
|
|
1519
1519
|
};
|
|
@@ -1521,7 +1521,7 @@ const Co = /* @__PURE__ */ _("$ZodArray", (e, t) => {
|
|
|
1521
1521
|
function Wt(e, t, i, r) {
|
|
1522
1522
|
e.issues.length && t.issues.push(...at(i, e.issues)), e.value === void 0 ? i in r && (t.value[i] = void 0) : t.value[i] = e.value;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function is(e) {
|
|
1525
1525
|
const t = Object.keys(e.shape);
|
|
1526
1526
|
for (const r of t)
|
|
1527
1527
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
@@ -1535,7 +1535,7 @@ function rs(e) {
|
|
|
1535
1535
|
optionalKeys: new Set(i)
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1538
|
+
function rs(e, t, i, r, n, u) {
|
|
1539
1539
|
const c = [], f = n.keySet, y = n.catchall._zod, o = y.def.type;
|
|
1540
1540
|
for (const b in t) {
|
|
1541
1541
|
if (f.has(b))
|
|
@@ -1566,7 +1566,7 @@ const Ao = /* @__PURE__ */ _("$ZodObject", (e, t) => {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
});
|
|
1568
1568
|
}
|
|
1569
|
-
const r = Li(() =>
|
|
1569
|
+
const r = Li(() => is(t));
|
|
1570
1570
|
Z(e._zod, "propValues", () => {
|
|
1571
1571
|
const f = t.shape, y = {};
|
|
1572
1572
|
for (const o in f) {
|
|
@@ -1597,13 +1597,13 @@ const Ao = /* @__PURE__ */ _("$ZodObject", (e, t) => {
|
|
|
1597
1597
|
const U = P[R]._zod.run({ value: o[R], issues: [] }, y);
|
|
1598
1598
|
U instanceof Promise ? b.push(U.then((Ee) => Wt(Ee, f, R, o))) : Wt(U, f, R, o);
|
|
1599
1599
|
}
|
|
1600
|
-
return u ?
|
|
1600
|
+
return u ? rs(b, o, f, y, r.value, e) : b.length ? Promise.all(b).then(() => f) : f;
|
|
1601
1601
|
};
|
|
1602
1602
|
}), Eo = /* @__PURE__ */ _("$ZodObjectJIT", (e, t) => {
|
|
1603
1603
|
Ao.init(e, t);
|
|
1604
|
-
const i = e._zod.parse, r = Li(() =>
|
|
1604
|
+
const i = e._zod.parse, r = Li(() => is(t)), n = (R) => {
|
|
1605
1605
|
const B = new Xa(["shape", "payload", "ctx"]), U = r.value, Ee = (Ce) => {
|
|
1606
|
-
const be =
|
|
1606
|
+
const be = er(Ce);
|
|
1607
1607
|
return `shape[${be}]._zod.run({ value: input[${be}], issues: [] }, ctx)`;
|
|
1608
1608
|
};
|
|
1609
1609
|
B.write("const input = payload.value;");
|
|
@@ -1613,7 +1613,7 @@ const Ao = /* @__PURE__ */ _("$ZodObject", (e, t) => {
|
|
|
1613
1613
|
O[Ce] = `key_${ne++}`;
|
|
1614
1614
|
B.write("const newResult = {};");
|
|
1615
1615
|
for (const Ce of U.keys) {
|
|
1616
|
-
const be = O[Ce], Je =
|
|
1616
|
+
const be = O[Ce], Je = er(Ce);
|
|
1617
1617
|
B.write(`const ${be} = ${Ee(Ce)};`), B.write(`
|
|
1618
1618
|
if (${be}.issues.length) {
|
|
1619
1619
|
payload.issues = payload.issues.concat(${be}.issues.map(iss => ({
|
|
@@ -1638,12 +1638,12 @@ const Ao = /* @__PURE__ */ _("$ZodObject", (e, t) => {
|
|
|
1638
1638
|
return (Ce, be) => bt(R, Ce, be);
|
|
1639
1639
|
};
|
|
1640
1640
|
let u;
|
|
1641
|
-
const c = Gt, f = !
|
|
1641
|
+
const c = Gt, f = !Br.jitless, o = f && Un.value, b = t.catchall;
|
|
1642
1642
|
let P;
|
|
1643
1643
|
e._zod.parse = (R, B) => {
|
|
1644
1644
|
P ?? (P = r.value);
|
|
1645
1645
|
const U = R.value;
|
|
1646
|
-
return c(U) ? f && o && B?.async === !1 && B.jitless !== !0 ? (u || (u = n(t.shape)), R = u(R, B), b ?
|
|
1646
|
+
return c(U) ? f && o && B?.async === !1 && B.jitless !== !0 ? (u || (u = n(t.shape)), R = u(R, B), b ? rs([], U, R, B, P, e) : R) : i(R, B) : (R.issues.push({
|
|
1647
1647
|
expected: "object",
|
|
1648
1648
|
code: "invalid_type",
|
|
1649
1649
|
input: U,
|
|
@@ -1651,7 +1651,7 @@ const Ao = /* @__PURE__ */ _("$ZodObject", (e, t) => {
|
|
|
1651
1651
|
}), R);
|
|
1652
1652
|
};
|
|
1653
1653
|
});
|
|
1654
|
-
function
|
|
1654
|
+
function rr(e, t, i, r) {
|
|
1655
1655
|
for (const u of e)
|
|
1656
1656
|
if (u.issues.length === 0)
|
|
1657
1657
|
return t.value = u.value, t;
|
|
@@ -1692,12 +1692,12 @@ const Io = /* @__PURE__ */ _("$ZodUnion", (e, t) => {
|
|
|
1692
1692
|
f.push(o);
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
|
-
return c ? Promise.all(f).then((y) =>
|
|
1695
|
+
return c ? Promise.all(f).then((y) => rr(y, n, e, u)) : rr(f, n, e, u);
|
|
1696
1696
|
};
|
|
1697
1697
|
}), No = /* @__PURE__ */ _("$ZodIntersection", (e, t) => {
|
|
1698
1698
|
Q.init(e, t), e._zod.parse = (i, r) => {
|
|
1699
1699
|
const n = i.value, u = t.left._zod.run({ value: n, issues: [] }, r), c = t.right._zod.run({ value: n, issues: [] }, r);
|
|
1700
|
-
return u instanceof Promise || c instanceof Promise ? Promise.all([u, c]).then(([y, o]) =>
|
|
1700
|
+
return u instanceof Promise || c instanceof Promise ? Promise.all([u, c]).then(([y, o]) => sr(i, y, o)) : sr(i, u, c);
|
|
1701
1701
|
};
|
|
1702
1702
|
});
|
|
1703
1703
|
function _i(e, t) {
|
|
@@ -1735,7 +1735,7 @@ function _i(e, t) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
return { valid: !1, mergeErrorPath: [] };
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function sr(e, t, i) {
|
|
1739
1739
|
if (t.issues.length && e.issues.push(...t.issues), i.issues.length && e.issues.push(...i.issues), nt(e))
|
|
1740
1740
|
return e;
|
|
1741
1741
|
const r = _i(t.value, i.value);
|
|
@@ -1829,7 +1829,7 @@ const Lo = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
|
|
|
1829
1829
|
}), Do = /* @__PURE__ */ _("$ZodTransform", (e, t) => {
|
|
1830
1830
|
Q.init(e, t), e._zod.parse = (i, r) => {
|
|
1831
1831
|
if (r.direction === "backward")
|
|
1832
|
-
throw new
|
|
1832
|
+
throw new Fr(e.constructor.name);
|
|
1833
1833
|
const n = t.transform(i.value, i);
|
|
1834
1834
|
if (r.async)
|
|
1835
1835
|
return (n instanceof Promise ? n : Promise.resolve(n)).then((c) => (i.value = c, i));
|
|
@@ -1838,7 +1838,7 @@ const Lo = /* @__PURE__ */ _("$ZodRecord", (e, t) => {
|
|
|
1838
1838
|
return i.value = n, i;
|
|
1839
1839
|
};
|
|
1840
1840
|
});
|
|
1841
|
-
function
|
|
1841
|
+
function nr(e, t) {
|
|
1842
1842
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1843
1843
|
}
|
|
1844
1844
|
const Mo = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
|
|
@@ -1848,7 +1848,7 @@ const Mo = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
|
|
|
1848
1848
|
}), e._zod.parse = (i, r) => {
|
|
1849
1849
|
if (t.innerType._zod.optin === "optional") {
|
|
1850
1850
|
const n = t.innerType._zod.run(i, r);
|
|
1851
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1851
|
+
return n instanceof Promise ? n.then((u) => nr(u, i.value)) : nr(n, i.value);
|
|
1852
1852
|
}
|
|
1853
1853
|
return i.value === void 0 ? i : t.innerType._zod.run(i, r);
|
|
1854
1854
|
};
|
|
@@ -1864,10 +1864,10 @@ const Mo = /* @__PURE__ */ _("$ZodOptional", (e, t) => {
|
|
|
1864
1864
|
if (i.value === void 0)
|
|
1865
1865
|
return i.value = t.defaultValue, i;
|
|
1866
1866
|
const n = t.innerType._zod.run(i, r);
|
|
1867
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1867
|
+
return n instanceof Promise ? n.then((u) => ar(u, t)) : ar(n, t);
|
|
1868
1868
|
};
|
|
1869
1869
|
});
|
|
1870
|
-
function
|
|
1870
|
+
function ar(e, t) {
|
|
1871
1871
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1872
1872
|
}
|
|
1873
1873
|
const zo = /* @__PURE__ */ _("$ZodPrefault", (e, t) => {
|
|
@@ -1878,10 +1878,10 @@ const zo = /* @__PURE__ */ _("$ZodPrefault", (e, t) => {
|
|
|
1878
1878
|
return i ? new Set([...i].filter((r) => r !== void 0)) : void 0;
|
|
1879
1879
|
}), e._zod.parse = (i, r) => {
|
|
1880
1880
|
const n = t.innerType._zod.run(i, r);
|
|
1881
|
-
return n instanceof Promise ? n.then((u) =>
|
|
1881
|
+
return n instanceof Promise ? n.then((u) => or(u, e)) : or(n, e);
|
|
1882
1882
|
};
|
|
1883
1883
|
});
|
|
1884
|
-
function
|
|
1884
|
+
function or(e, t) {
|
|
1885
1885
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1886
1886
|
code: "invalid_type",
|
|
1887
1887
|
expected: "nonoptional",
|
|
@@ -1926,21 +1926,21 @@ const Zo = /* @__PURE__ */ _("$ZodReadonly", (e, t) => {
|
|
|
1926
1926
|
if (r.direction === "backward")
|
|
1927
1927
|
return t.innerType._zod.run(i, r);
|
|
1928
1928
|
const n = t.innerType._zod.run(i, r);
|
|
1929
|
-
return n instanceof Promise ? n.then(
|
|
1929
|
+
return n instanceof Promise ? n.then(ur) : ur(n);
|
|
1930
1930
|
};
|
|
1931
1931
|
});
|
|
1932
|
-
function
|
|
1932
|
+
function ur(e) {
|
|
1933
1933
|
return e.value = Object.freeze(e.value), e;
|
|
1934
1934
|
}
|
|
1935
1935
|
const Uo = /* @__PURE__ */ _("$ZodCustom", (e, t) => {
|
|
1936
1936
|
me.init(e, t), Q.init(e, t), e._zod.parse = (i, r) => i, e._zod.check = (i) => {
|
|
1937
1937
|
const r = i.value, n = t.fn(r);
|
|
1938
1938
|
if (n instanceof Promise)
|
|
1939
|
-
return n.then((u) =>
|
|
1940
|
-
|
|
1939
|
+
return n.then((u) => cr(u, i, r, e));
|
|
1940
|
+
cr(n, i, r, e);
|
|
1941
1941
|
};
|
|
1942
1942
|
});
|
|
1943
|
-
function
|
|
1943
|
+
function cr(e, t, i, r) {
|
|
1944
1944
|
if (!e) {
|
|
1945
1945
|
const n = {
|
|
1946
1946
|
code: "custom",
|
|
@@ -1955,7 +1955,7 @@ function hr(e, t, i, r) {
|
|
|
1955
1955
|
r._zod.def.params && (n.params = r._zod.def.params), t.issues.push(At(n));
|
|
1956
1956
|
}
|
|
1957
1957
|
}
|
|
1958
|
-
var
|
|
1958
|
+
var hr;
|
|
1959
1959
|
class qo {
|
|
1960
1960
|
constructor() {
|
|
1961
1961
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
@@ -1993,7 +1993,7 @@ class qo {
|
|
|
1993
1993
|
function Ho() {
|
|
1994
1994
|
return new qo();
|
|
1995
1995
|
}
|
|
1996
|
-
(
|
|
1996
|
+
(hr = globalThis).__zod_globalRegistry ?? (hr.__zod_globalRegistry = Ho());
|
|
1997
1997
|
const Bt = globalThis.__zod_globalRegistry;
|
|
1998
1998
|
function Go(e, t) {
|
|
1999
1999
|
return new e({
|
|
@@ -2010,7 +2010,7 @@ function Wo(e, t) {
|
|
|
2010
2010
|
...L(t)
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function lr(e, t) {
|
|
2014
2014
|
return new e({
|
|
2015
2015
|
type: "string",
|
|
2016
2016
|
format: "guid",
|
|
@@ -2265,8 +2265,8 @@ function _u(e, t) {
|
|
|
2265
2265
|
...L(t)
|
|
2266
2266
|
});
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2269
|
-
return new
|
|
2268
|
+
function pr(e, t) {
|
|
2269
|
+
return new Yr({
|
|
2270
2270
|
check: "less_than",
|
|
2271
2271
|
...L(t),
|
|
2272
2272
|
value: e,
|
|
@@ -2274,15 +2274,15 @@ function fr(e, t) {
|
|
|
2274
2274
|
});
|
|
2275
2275
|
}
|
|
2276
2276
|
function di(e, t) {
|
|
2277
|
-
return new
|
|
2277
|
+
return new Yr({
|
|
2278
2278
|
check: "less_than",
|
|
2279
2279
|
...L(t),
|
|
2280
2280
|
value: e,
|
|
2281
2281
|
inclusive: !0
|
|
2282
2282
|
});
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2285
|
-
return new
|
|
2284
|
+
function fr(e, t) {
|
|
2285
|
+
return new Qr({
|
|
2286
2286
|
check: "greater_than",
|
|
2287
2287
|
...L(t),
|
|
2288
2288
|
value: e,
|
|
@@ -2290,21 +2290,21 @@ function dr(e, t) {
|
|
|
2290
2290
|
});
|
|
2291
2291
|
}
|
|
2292
2292
|
function mi(e, t) {
|
|
2293
|
-
return new
|
|
2293
|
+
return new Qr({
|
|
2294
2294
|
check: "greater_than",
|
|
2295
2295
|
...L(t),
|
|
2296
2296
|
value: e,
|
|
2297
2297
|
inclusive: !0
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2300
|
+
function dr(e, t) {
|
|
2301
2301
|
return new ja({
|
|
2302
2302
|
check: "multiple_of",
|
|
2303
2303
|
...L(t),
|
|
2304
2304
|
value: e
|
|
2305
2305
|
});
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function ss(e, t) {
|
|
2308
2308
|
return new $a({
|
|
2309
2309
|
check: "max_length",
|
|
2310
2310
|
...L(t),
|
|
@@ -2318,7 +2318,7 @@ function Kt(e, t) {
|
|
|
2318
2318
|
minimum: e
|
|
2319
2319
|
});
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function ns(e, t) {
|
|
2322
2322
|
return new Ba({
|
|
2323
2323
|
check: "length_equals",
|
|
2324
2324
|
...L(t),
|
|
@@ -2453,7 +2453,7 @@ function qu(e) {
|
|
|
2453
2453
|
return xu(Uu, e);
|
|
2454
2454
|
}
|
|
2455
2455
|
const Hu = (e, t) => {
|
|
2456
|
-
|
|
2456
|
+
Hr.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2457
2457
|
format: {
|
|
2458
2458
|
value: (i) => ia(e, i)
|
|
2459
2459
|
// enumerable: false,
|
|
@@ -2488,7 +2488,7 @@ const Hu = (e, t) => {
|
|
|
2488
2488
|
...t.checks ?? [],
|
|
2489
2489
|
...i.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2490
2490
|
]
|
|
2491
|
-
})), e.clone = (i, r) => Ke(e, i, r), e.brand = () => e, e.register = ((i, r) => (i.add(e, r), e)), e.parse = (i, r) => Gu(e, i, r, { callee: e.parse }), e.safeParse = (i, r) => Ku(e, i, r), e.parseAsync = async (i, r) => Wu(e, i, r, { callee: e.parseAsync }), e.safeParseAsync = async (i, r) => Xu(e, i, r), e.spa = e.safeParseAsync, e.encode = (i, r) => Ju(e, i, r), e.decode = (i, r) => Yu(e, i, r), e.encodeAsync = async (i, r) => Qu(e, i, r), e.decodeAsync = async (i, r) => ec(e, i, r), e.safeEncode = (i, r) => tc(e, i, r), e.safeDecode = (i, r) => ic(e, i, r), e.safeEncodeAsync = async (i, r) => rc(e, i, r), e.safeDecodeAsync = async (i, r) => sc(e, i, r), e.refine = (i, r) => e.check(Kc(i, r)), e.superRefine = (i) => e.check(Xc(i)), e.overwrite = (i) => e.check(mt(i)), e.optional = () =>
|
|
2491
|
+
})), e.clone = (i, r) => Ke(e, i, r), e.brand = () => e, e.register = ((i, r) => (i.add(e, r), e)), e.parse = (i, r) => Gu(e, i, r, { callee: e.parse }), e.safeParse = (i, r) => Ku(e, i, r), e.parseAsync = async (i, r) => Wu(e, i, r, { callee: e.parseAsync }), e.safeParseAsync = async (i, r) => Xu(e, i, r), e.spa = e.safeParseAsync, e.encode = (i, r) => Ju(e, i, r), e.decode = (i, r) => Yu(e, i, r), e.encodeAsync = async (i, r) => Qu(e, i, r), e.decodeAsync = async (i, r) => ec(e, i, r), e.safeEncode = (i, r) => tc(e, i, r), e.safeDecode = (i, r) => ic(e, i, r), e.safeEncodeAsync = async (i, r) => rc(e, i, r), e.safeDecodeAsync = async (i, r) => sc(e, i, r), e.refine = (i, r) => e.check(Kc(i, r)), e.superRefine = (i) => e.check(Xc(i)), e.overwrite = (i) => e.check(mt(i)), e.optional = () => xr(e), e.nullable = () => gr(e), e.nullish = () => xr(gr(e)), e.nonoptional = (i) => Bc(e, i), e.array = () => lt(e), e.or = (i) => Oe([e, i]), e.and = (i) => Nc(e, i), e.transform = (i) => br(e, Mc(i)), e.default = (i) => zc(e, i), e.prefault = (i) => Fc(e, i), e.catch = (i) => Uc(e, i), e.pipe = (i) => br(e, i), e.readonly = () => Gc(e), e.describe = (i) => {
|
|
2492
2492
|
const r = e.clone();
|
|
2493
2493
|
return Bt.add(r, { description: i }), r;
|
|
2494
2494
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2501,21 +2501,21 @@ const Hu = (e, t) => {
|
|
|
2501
2501
|
return Bt.get(e);
|
|
2502
2502
|
const r = e.clone();
|
|
2503
2503
|
return Bt.add(r, i[0]), r;
|
|
2504
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2504
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), as = /* @__PURE__ */ _("_ZodString", (e, t) => {
|
|
2505
2505
|
ji.init(e, t), te.init(e, t);
|
|
2506
2506
|
const i = e._zod.bag;
|
|
2507
|
-
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(wu(...r)), e.includes = (...r) => e.check(Pu(...r)), e.startsWith = (...r) => e.check(Cu(...r)), e.endsWith = (...r) => e.check(Au(...r)), e.min = (...r) => e.check(Kt(...r)), e.max = (...r) => e.check(
|
|
2507
|
+
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...r) => e.check(wu(...r)), e.includes = (...r) => e.check(Pu(...r)), e.startsWith = (...r) => e.check(Cu(...r)), e.endsWith = (...r) => e.check(Au(...r)), e.min = (...r) => e.check(Kt(...r)), e.max = (...r) => e.check(ss(...r)), e.length = (...r) => e.check(ns(...r)), e.nonempty = (...r) => e.check(Kt(1, ...r)), e.lowercase = (r) => e.check(Su(r)), e.uppercase = (r) => e.check(Tu(r)), e.trim = () => e.check(Iu()), e.normalize = (...r) => e.check(Eu(...r)), e.toLowerCase = () => e.check(Nu()), e.toUpperCase = () => e.check(Lu()), e.slugify = () => e.check(Ou());
|
|
2508
2508
|
}), nc = /* @__PURE__ */ _("ZodString", (e, t) => {
|
|
2509
|
-
ji.init(e, t),
|
|
2509
|
+
ji.init(e, t), as.init(e, t), e.email = (i) => e.check(Wo(ac, i)), e.url = (i) => e.check(Qo(oc, i)), e.jwt = (i) => e.check(du(_c, i)), e.emoji = (i) => e.check(eu(uc, i)), e.guid = (i) => e.check(lr(mr, i)), e.uuid = (i) => e.check(Ko(Zt, i)), e.uuidv4 = (i) => e.check(Xo(Zt, i)), e.uuidv6 = (i) => e.check(Jo(Zt, i)), e.uuidv7 = (i) => e.check(Yo(Zt, i)), e.nanoid = (i) => e.check(tu(cc, i)), e.guid = (i) => e.check(lr(mr, i)), e.cuid = (i) => e.check(iu(hc, i)), e.cuid2 = (i) => e.check(ru(lc, i)), e.ulid = (i) => e.check(su(pc, i)), e.base64 = (i) => e.check(lu(gc, i)), e.base64url = (i) => e.check(pu(bc, i)), e.xid = (i) => e.check(nu(fc, i)), e.ksuid = (i) => e.check(au(dc, i)), e.ipv4 = (i) => e.check(ou(mc, i)), e.ipv6 = (i) => e.check(uu(yc, i)), e.cidrv4 = (i) => e.check(cu(vc, i)), e.cidrv6 = (i) => e.check(hu(xc, i)), e.e164 = (i) => e.check(fu(kc, i)), e.datetime = (i) => e.check(zu(i)), e.date = (i) => e.check(Fu(i)), e.time = (i) => e.check(Zu(i)), e.duration = (i) => e.check(qu(i));
|
|
2510
2510
|
});
|
|
2511
2511
|
function j(e) {
|
|
2512
2512
|
return Go(nc, e);
|
|
2513
2513
|
}
|
|
2514
2514
|
const Y = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
|
|
2515
|
-
W.init(e, t),
|
|
2515
|
+
W.init(e, t), as.init(e, t);
|
|
2516
2516
|
}), ac = /* @__PURE__ */ _("ZodEmail", (e, t) => {
|
|
2517
2517
|
eo.init(e, t), Y.init(e, t);
|
|
2518
|
-
}),
|
|
2518
|
+
}), mr = /* @__PURE__ */ _("ZodGUID", (e, t) => {
|
|
2519
2519
|
Ya.init(e, t), Y.init(e, t);
|
|
2520
2520
|
}), Zt = /* @__PURE__ */ _("ZodUUID", (e, t) => {
|
|
2521
2521
|
Qa.init(e, t), Y.init(e, t);
|
|
@@ -2551,24 +2551,24 @@ const Y = /* @__PURE__ */ _("ZodStringFormat", (e, t) => {
|
|
|
2551
2551
|
ko.init(e, t), Y.init(e, t);
|
|
2552
2552
|
}), _c = /* @__PURE__ */ _("ZodJWT", (e, t) => {
|
|
2553
2553
|
wo.init(e, t), Y.init(e, t);
|
|
2554
|
-
}),
|
|
2555
|
-
|
|
2554
|
+
}), os = /* @__PURE__ */ _("ZodNumber", (e, t) => {
|
|
2555
|
+
ts.init(e, t), te.init(e, t), e.gt = (r, n) => e.check(fr(r, n)), e.gte = (r, n) => e.check(mi(r, n)), e.min = (r, n) => e.check(mi(r, n)), e.lt = (r, n) => e.check(pr(r, n)), e.lte = (r, n) => e.check(di(r, n)), e.max = (r, n) => e.check(di(r, n)), e.int = (r) => e.check(yr(r)), e.safe = (r) => e.check(yr(r)), e.positive = (r) => e.check(fr(0, r)), e.nonnegative = (r) => e.check(mi(0, r)), e.negative = (r) => e.check(pr(0, r)), e.nonpositive = (r) => e.check(di(0, r)), e.multipleOf = (r, n) => e.check(dr(r, n)), e.step = (r, n) => e.check(dr(r, n)), e.finite = () => e;
|
|
2556
2556
|
const i = e._zod.bag;
|
|
2557
2557
|
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;
|
|
2558
2558
|
});
|
|
2559
2559
|
function Lt(e) {
|
|
2560
|
-
return gu(
|
|
2560
|
+
return gu(os, e);
|
|
2561
2561
|
}
|
|
2562
2562
|
const wc = /* @__PURE__ */ _("ZodNumberFormat", (e, t) => {
|
|
2563
|
-
So.init(e, t),
|
|
2563
|
+
So.init(e, t), os.init(e, t);
|
|
2564
2564
|
});
|
|
2565
|
-
function
|
|
2565
|
+
function yr(e) {
|
|
2566
2566
|
return bu(wc, e);
|
|
2567
2567
|
}
|
|
2568
2568
|
const Sc = /* @__PURE__ */ _("ZodUnknown", (e, t) => {
|
|
2569
2569
|
To.init(e, t), te.init(e, t);
|
|
2570
2570
|
});
|
|
2571
|
-
function
|
|
2571
|
+
function vr() {
|
|
2572
2572
|
return ku(Sc);
|
|
2573
2573
|
}
|
|
2574
2574
|
const Tc = /* @__PURE__ */ _("ZodNever", (e, t) => {
|
|
@@ -2578,13 +2578,13 @@ function Pc(e) {
|
|
|
2578
2578
|
return _u(Tc, e);
|
|
2579
2579
|
}
|
|
2580
2580
|
const Cc = /* @__PURE__ */ _("ZodArray", (e, t) => {
|
|
2581
|
-
Co.init(e, t), te.init(e, t), e.element = t.element, e.min = (i, r) => e.check(Kt(i, r)), e.nonempty = (i) => e.check(Kt(1, i)), e.max = (i, r) => e.check(
|
|
2581
|
+
Co.init(e, t), te.init(e, t), e.element = t.element, e.min = (i, r) => e.check(Kt(i, r)), e.nonempty = (i) => e.check(Kt(1, i)), e.max = (i, r) => e.check(ss(i, r)), e.length = (i, r) => e.check(ns(i, r)), e.unwrap = () => e.element;
|
|
2582
2582
|
});
|
|
2583
2583
|
function lt(e, t) {
|
|
2584
2584
|
return Ru(Cc, e, t);
|
|
2585
2585
|
}
|
|
2586
2586
|
const Ac = /* @__PURE__ */ _("ZodObject", (e, t) => {
|
|
2587
|
-
Eo.init(e, t), te.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => Oc(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall:
|
|
2587
|
+
Eo.init(e, t), te.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => Oc(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: vr() }), e.loose = () => e.clone({ ...e._zod.def, catchall: vr() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Pc() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => Xn(e, i), e.safeExtend = (i) => Jn(e, i), e.merge = (i) => Yn(e, i), e.pick = (i) => Wn(e, i), e.omit = (i) => Kn(e, i), e.partial = (...i) => Qn(us, e, i[0]), e.required = (...i) => ea(cs, e, i[0]);
|
|
2588
2588
|
});
|
|
2589
2589
|
function yt(e, t) {
|
|
2590
2590
|
const i = {
|
|
@@ -2683,7 +2683,7 @@ function w(e, t) {
|
|
|
2683
2683
|
const Dc = /* @__PURE__ */ _("ZodTransform", (e, t) => {
|
|
2684
2684
|
Do.init(e, t), te.init(e, t), e._zod.parse = (i, r) => {
|
|
2685
2685
|
if (r.direction === "backward")
|
|
2686
|
-
throw new
|
|
2686
|
+
throw new Fr(e.constructor.name);
|
|
2687
2687
|
i.addIssue = (u) => {
|
|
2688
2688
|
if (typeof u == "string")
|
|
2689
2689
|
i.issues.push(At(u, i.value, t));
|
|
@@ -2702,11 +2702,11 @@ function Mc(e) {
|
|
|
2702
2702
|
transform: e
|
|
2703
2703
|
});
|
|
2704
2704
|
}
|
|
2705
|
-
const
|
|
2705
|
+
const us = /* @__PURE__ */ _("ZodOptional", (e, t) => {
|
|
2706
2706
|
Mo.init(e, t), te.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2707
2707
|
});
|
|
2708
|
-
function
|
|
2709
|
-
return new
|
|
2708
|
+
function xr(e) {
|
|
2709
|
+
return new us({
|
|
2710
2710
|
type: "optional",
|
|
2711
2711
|
innerType: e
|
|
2712
2712
|
});
|
|
@@ -2714,7 +2714,7 @@ function gr(e) {
|
|
|
2714
2714
|
const Vc = /* @__PURE__ */ _("ZodNullable", (e, t) => {
|
|
2715
2715
|
Vo.init(e, t), te.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2716
2716
|
});
|
|
2717
|
-
function
|
|
2717
|
+
function gr(e) {
|
|
2718
2718
|
return new Vc({
|
|
2719
2719
|
type: "nullable",
|
|
2720
2720
|
innerType: e
|
|
@@ -2728,7 +2728,7 @@ function zc(e, t) {
|
|
|
2728
2728
|
type: "default",
|
|
2729
2729
|
innerType: e,
|
|
2730
2730
|
get defaultValue() {
|
|
2731
|
-
return typeof t == "function" ? t() :
|
|
2731
|
+
return typeof t == "function" ? t() : Ur(t);
|
|
2732
2732
|
}
|
|
2733
2733
|
});
|
|
2734
2734
|
}
|
|
@@ -2740,15 +2740,15 @@ function Fc(e, t) {
|
|
|
2740
2740
|
type: "prefault",
|
|
2741
2741
|
innerType: e,
|
|
2742
2742
|
get defaultValue() {
|
|
2743
|
-
return typeof t == "function" ? t() :
|
|
2743
|
+
return typeof t == "function" ? t() : Ur(t);
|
|
2744
2744
|
}
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
|
-
const
|
|
2747
|
+
const cs = /* @__PURE__ */ _("ZodNonOptional", (e, t) => {
|
|
2748
2748
|
$o.init(e, t), te.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2749
2749
|
});
|
|
2750
2750
|
function Bc(e, t) {
|
|
2751
|
-
return new
|
|
2751
|
+
return new cs({
|
|
2752
2752
|
type: "nonoptional",
|
|
2753
2753
|
innerType: e,
|
|
2754
2754
|
...L(t)
|
|
@@ -2767,7 +2767,7 @@ function Uc(e, t) {
|
|
|
2767
2767
|
const qc = /* @__PURE__ */ _("ZodPipe", (e, t) => {
|
|
2768
2768
|
Bo.init(e, t), te.init(e, t), e.in = t.in, e.out = t.out;
|
|
2769
2769
|
});
|
|
2770
|
-
function
|
|
2770
|
+
function br(e, t) {
|
|
2771
2771
|
return new qc({
|
|
2772
2772
|
type: "pipe",
|
|
2773
2773
|
in: e,
|
|
@@ -2827,7 +2827,7 @@ const Jc = Oe([w("amber"), w("green"), w("red"), w("other")]), Yc = Oe([
|
|
|
2827
2827
|
w("presenter"),
|
|
2828
2828
|
w("presenterPresentation"),
|
|
2829
2829
|
w("tool")
|
|
2830
|
-
]),
|
|
2830
|
+
]), kr = Lt(), eh = yt({
|
|
2831
2831
|
id: j(),
|
|
2832
2832
|
color: Jc,
|
|
2833
2833
|
label: j()
|
|
@@ -2839,21 +2839,21 @@ const Jc = Oe([w("amber"), w("green"), w("red"), w("other")]), Yc = Oe([
|
|
|
2839
2839
|
iconDark: j().optional(),
|
|
2840
2840
|
order: Lt(),
|
|
2841
2841
|
path: j()
|
|
2842
|
-
}),
|
|
2842
|
+
}), hs = yt({
|
|
2843
2843
|
id: j(),
|
|
2844
2844
|
label: We(j(), j()),
|
|
2845
2845
|
description: We(j(), j()),
|
|
2846
|
-
firstCreatedAt:
|
|
2846
|
+
firstCreatedAt: kr.optional(),
|
|
2847
2847
|
icon: j().optional(),
|
|
2848
2848
|
iconDark: j().optional(),
|
|
2849
|
-
lastUpdatedAt:
|
|
2849
|
+
lastUpdatedAt: kr.optional(),
|
|
2850
2850
|
status: eh.optional(),
|
|
2851
2851
|
statusId: Yc,
|
|
2852
2852
|
typeId: Qc
|
|
2853
|
-
}), ih = Oe([w("app"), w("engine"), w("connector"), w("context"), w("presenter"), w("tool")]), rh =
|
|
2853
|
+
}), ih = Oe([w("app"), w("engine"), w("connector"), w("context"), w("presenter"), w("tool")]), rh = hs.extend({
|
|
2854
2854
|
typeId: ih,
|
|
2855
2855
|
version: j()
|
|
2856
|
-
}), sh =
|
|
2856
|
+
}), sh = hs.extend({
|
|
2857
2857
|
modelRefs: lt(th),
|
|
2858
2858
|
order: Lt()
|
|
2859
2859
|
}), nh = w("list"), ah = rh.extend({
|
|
@@ -2894,7 +2894,7 @@ const Jc = Oe([w("amber"), w("green"), w("red"), w("other")]), Yc = Oe([
|
|
|
2894
2894
|
w("presenter"),
|
|
2895
2895
|
w("presenterPresentation"),
|
|
2896
2896
|
w("tool")
|
|
2897
|
-
]),
|
|
2897
|
+
]), _r = Lt(), hh = yt({
|
|
2898
2898
|
id: j(),
|
|
2899
2899
|
color: oh,
|
|
2900
2900
|
label: j()
|
|
@@ -2910,10 +2910,10 @@ const Jc = Oe([w("amber"), w("green"), w("red"), w("other")]), Yc = Oe([
|
|
|
2910
2910
|
id: j(),
|
|
2911
2911
|
label: We(j(), j()),
|
|
2912
2912
|
description: We(j(), j()),
|
|
2913
|
-
firstCreatedAt:
|
|
2913
|
+
firstCreatedAt: _r.optional(),
|
|
2914
2914
|
icon: j().optional(),
|
|
2915
2915
|
iconDark: j().optional(),
|
|
2916
|
-
lastUpdatedAt:
|
|
2916
|
+
lastUpdatedAt: _r.optional(),
|
|
2917
2917
|
status: hh.optional(),
|
|
2918
2918
|
statusId: uh,
|
|
2919
2919
|
typeId: ch
|
|
@@ -2925,7 +2925,7 @@ const Jc = Oe([w("amber"), w("green"), w("red"), w("other")]), Yc = Oe([
|
|
|
2925
2925
|
operations: lt(mh),
|
|
2926
2926
|
typeId: w("presenter")
|
|
2927
2927
|
});
|
|
2928
|
-
var vh = [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],
|
|
2928
|
+
var vh = [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], ls = [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], xh = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", ps = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", yi = {
|
|
2929
2929
|
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",
|
|
2930
2930
|
5: "class enum extends super const export import",
|
|
2931
2931
|
6: "enum",
|
|
@@ -2935,7 +2935,7 @@ var vh = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166,
|
|
|
2935
2935
|
5: vi,
|
|
2936
2936
|
"5module": vi + " export import",
|
|
2937
2937
|
6: vi + " const class extends export import super"
|
|
2938
|
-
}, bh = /^in(stanceof)?$/, kh = new RegExp("[" +
|
|
2938
|
+
}, bh = /^in(stanceof)?$/, kh = new RegExp("[" + ps + "]"), _h = new RegExp("[" + ps + xh + "]");
|
|
2939
2939
|
function Si(e, t) {
|
|
2940
2940
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
2941
2941
|
if (i += t[r], i > e)
|
|
@@ -2946,10 +2946,10 @@ function Si(e, t) {
|
|
|
2946
2946
|
return !1;
|
|
2947
2947
|
}
|
|
2948
2948
|
function Ae(e, t) {
|
|
2949
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && kh.test(String.fromCharCode(e)) : t === !1 ? !1 : Si(e,
|
|
2949
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && kh.test(String.fromCharCode(e)) : t === !1 ? !1 : Si(e, ls);
|
|
2950
2950
|
}
|
|
2951
2951
|
function je(e, t) {
|
|
2952
|
-
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 && _h.test(String.fromCharCode(e)) : t === !1 ? !1 : Si(e,
|
|
2952
|
+
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 && _h.test(String.fromCharCode(e)) : t === !1 ? !1 : Si(e, ls) || Si(e, vh);
|
|
2953
2953
|
}
|
|
2954
2954
|
var V = function(t, i) {
|
|
2955
2955
|
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;
|
|
@@ -3054,11 +3054,11 @@ var l = {
|
|
|
3054
3054
|
_typeof: $("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
3055
3055
|
_void: $("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
3056
3056
|
_delete: $("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
3057
|
-
}, he = /\r\n?|\n|\u2028|\u2029/,
|
|
3057
|
+
}, he = /\r\n?|\n|\u2028|\u2029/, fs = new RegExp(he.source, "g");
|
|
3058
3058
|
function it(e) {
|
|
3059
3059
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
3060
3060
|
}
|
|
3061
|
-
function
|
|
3061
|
+
function ds(e, t, i) {
|
|
3062
3062
|
i === void 0 && (i = e.length);
|
|
3063
3063
|
for (var r = t; r < i; r++) {
|
|
3064
3064
|
var n = e.charCodeAt(r);
|
|
@@ -3067,13 +3067,13 @@ function ms(e, t, i) {
|
|
|
3067
3067
|
}
|
|
3068
3068
|
return -1;
|
|
3069
3069
|
}
|
|
3070
|
-
var zi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, oe = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,
|
|
3070
|
+
var zi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, oe = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ms = Object.prototype, wh = ms.hasOwnProperty, Sh = ms.toString, vt = Object.hasOwn || (function(e, t) {
|
|
3071
3071
|
return wh.call(e, t);
|
|
3072
|
-
}),
|
|
3072
|
+
}), wr = Array.isArray || (function(e) {
|
|
3073
3073
|
return Sh.call(e) === "[object Array]";
|
|
3074
|
-
}),
|
|
3074
|
+
}), Sr = /* @__PURE__ */ Object.create(null);
|
|
3075
3075
|
function qe(e) {
|
|
3076
|
-
return
|
|
3076
|
+
return Sr[e] || (Sr[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
3077
3077
|
}
|
|
3078
3078
|
function ze(e) {
|
|
3079
3079
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -3089,7 +3089,7 @@ var Ot = function(t, i, r) {
|
|
|
3089
3089
|
};
|
|
3090
3090
|
function $i(e, t) {
|
|
3091
3091
|
for (var i = 1, r = 0; ; ) {
|
|
3092
|
-
var n =
|
|
3092
|
+
var n = ds(e, r, t);
|
|
3093
3093
|
if (n < 0)
|
|
3094
3094
|
return new ft(i, t - r);
|
|
3095
3095
|
++i, r = n;
|
|
@@ -3191,19 +3191,19 @@ var Xt = {
|
|
|
3191
3191
|
// When enabled, parenthesized expressions are represented by
|
|
3192
3192
|
// (non-standard) ParenthesizedExpression nodes
|
|
3193
3193
|
preserveParens: !1
|
|
3194
|
-
},
|
|
3194
|
+
}, Tr = !1;
|
|
3195
3195
|
function Ph(e) {
|
|
3196
3196
|
var t = {};
|
|
3197
3197
|
for (var i in Xt)
|
|
3198
3198
|
t[i] = e && vt(e, i) ? e[i] : Xt[i];
|
|
3199
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
3200
|
-
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),
|
|
3199
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Tr && typeof console == "object" && console.warn && (Tr = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
3200
|
+
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), wr(t.onToken)) {
|
|
3201
3201
|
var r = t.onToken;
|
|
3202
3202
|
t.onToken = function(n) {
|
|
3203
3203
|
return r.push(n);
|
|
3204
3204
|
};
|
|
3205
3205
|
}
|
|
3206
|
-
return
|
|
3206
|
+
return wr(t.onComment) && (t.onComment = Ch(t, t.onComment)), t;
|
|
3207
3207
|
}
|
|
3208
3208
|
function Ch(e, t) {
|
|
3209
3209
|
return function(i, r, n, u, c, f) {
|
|
@@ -3216,11 +3216,11 @@ function Ch(e, t) {
|
|
|
3216
3216
|
e.locations && (y.loc = new Ot(this, c, f)), e.ranges && (y.range = [n, u]), t.push(y);
|
|
3217
3217
|
};
|
|
3218
3218
|
}
|
|
3219
|
-
var Et = 1, xt = 2, Fi = 4,
|
|
3219
|
+
var Et = 1, xt = 2, Fi = 4, ys = 8, Bi = 16, vs = 32, ni = 64, xs = 128, rt = 256, Rt = 512, ai = Et | xt | rt;
|
|
3220
3220
|
function Zi(e, t) {
|
|
3221
|
-
return xt | (e ? Fi : 0) | (t ?
|
|
3221
|
+
return xt | (e ? Fi : 0) | (t ? ys : 0);
|
|
3222
3222
|
}
|
|
3223
|
-
var Jt = 0, Ui = 1, Fe = 2,
|
|
3223
|
+
var Jt = 0, Ui = 1, Fe = 2, gs = 3, bs = 4, ks = 5, J = function(t, i, r) {
|
|
3224
3224
|
this.options = t = Ph(t), this.sourceFile = t.sourceFile, this.keywords = qe(gh[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
3225
3225
|
var n = "";
|
|
3226
3226
|
t.allowReserved !== !0 && (n = yi[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = qe(n);
|
|
@@ -3236,7 +3236,7 @@ Re.inFunction.get = function() {
|
|
|
3236
3236
|
return (this.currentVarScope().flags & xt) > 0;
|
|
3237
3237
|
};
|
|
3238
3238
|
Re.inGenerator.get = function() {
|
|
3239
|
-
return (this.currentVarScope().flags &
|
|
3239
|
+
return (this.currentVarScope().flags & ys) > 0;
|
|
3240
3240
|
};
|
|
3241
3241
|
Re.inAsync.get = function() {
|
|
3242
3242
|
return (this.currentVarScope().flags & Fi) > 0;
|
|
@@ -3256,7 +3256,7 @@ Re.allowSuper.get = function() {
|
|
|
3256
3256
|
return (t & ni) > 0 || this.options.allowSuperOutsideMethod;
|
|
3257
3257
|
};
|
|
3258
3258
|
Re.allowDirectSuper.get = function() {
|
|
3259
|
-
return (this.currentThisScope().flags &
|
|
3259
|
+
return (this.currentThisScope().flags & xs) > 0;
|
|
3260
3260
|
};
|
|
3261
3261
|
Re.treatFunctionsAsVar.get = function() {
|
|
3262
3262
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -3559,7 +3559,7 @@ E.parseThrowStatement = function(e) {
|
|
|
3559
3559
|
var Ih = [];
|
|
3560
3560
|
E.parseCatchClauseParam = function() {
|
|
3561
3561
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
3562
|
-
return this.enterScope(t ?
|
|
3562
|
+
return this.enterScope(t ? vs : 0), this.checkLValPattern(e, t ? bs : Fe), this.expect(l.parenR), e;
|
|
3563
3563
|
};
|
|
3564
3564
|
E.parseTryStatement = function(e) {
|
|
3565
3565
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === l._catch) {
|
|
@@ -3625,9 +3625,9 @@ E.parseVar = function(e, t, i, r) {
|
|
|
3625
3625
|
E.parseVarId = function(e, t) {
|
|
3626
3626
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ui : Fe, !1);
|
|
3627
3627
|
};
|
|
3628
|
-
var Tt = 1, Ti = 2,
|
|
3628
|
+
var Tt = 1, Ti = 2, _s = 4;
|
|
3629
3629
|
E.parseFunction = function(e, t, i, r, n) {
|
|
3630
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === l.star && t & Ti && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Tt && (e.id = t &
|
|
3630
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === l.star && t & Ti && this.unexpected(), e.generator = this.eat(l.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Tt && (e.id = t & _s && this.type !== l.name ? null : this.parseIdent(), e.id && !(t & Ti) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ui : Fe : gs));
|
|
3631
3631
|
var u = this.yieldPos, c = this.awaitPos, f = this.awaitIdentPos;
|
|
3632
3632
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Zi(e.async, e.generator)), t & Tt || (e.id = this.type === l.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, n), this.yieldPos = u, this.awaitPos = c, this.awaitIdentPos = f, this.finishNode(e, t & Tt ? "FunctionDeclaration" : "FunctionExpression");
|
|
3633
3633
|
};
|
|
@@ -3746,7 +3746,7 @@ E.parseExportDefaultDeclaration = function() {
|
|
|
3746
3746
|
var e;
|
|
3747
3747
|
if (this.type === l._function || (e = this.isAsyncFunction())) {
|
|
3748
3748
|
var t = this.startNode();
|
|
3749
|
-
return this.next(), e && this.next(), this.parseFunction(t, Tt |
|
|
3749
|
+
return this.next(), e && this.next(), this.parseFunction(t, Tt | _s, !1, e);
|
|
3750
3750
|
} else if (this.type === l._class) {
|
|
3751
3751
|
var i = this.startNode();
|
|
3752
3752
|
return this.parseClass(i, "nullableID");
|
|
@@ -3977,7 +3977,7 @@ Pe.checkLValSimple = function(e, t, i) {
|
|
|
3977
3977
|
var r = t !== Jt;
|
|
3978
3978
|
switch (e.type) {
|
|
3979
3979
|
case "Identifier":
|
|
3980
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === Fe && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (vt(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !==
|
|
3980
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === Fe && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (vt(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== ks && this.declareName(e.name, t, e.start));
|
|
3981
3981
|
break;
|
|
3982
3982
|
case "ChainExpression":
|
|
3983
3983
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -4203,7 +4203,7 @@ D.parseMaybeUnary = function(e, t, i, r) {
|
|
|
4203
4203
|
c = this.parseAwait(r), t = !0;
|
|
4204
4204
|
else if (this.type.prefix) {
|
|
4205
4205
|
var f = this.startNode(), y = this.type === l.incDec;
|
|
4206
|
-
f.operator = this.value, f.prefix = !0, this.next(), f.argument = this.parseMaybeUnary(null, !0, y, r), this.checkExpressionErrors(e, !0), y ? this.checkLValSimple(f.argument) : this.strict && f.operator === "delete" &&
|
|
4206
|
+
f.operator = this.value, f.prefix = !0, this.next(), f.argument = this.parseMaybeUnary(null, !0, y, r), this.checkExpressionErrors(e, !0), y ? this.checkLValSimple(f.argument) : this.strict && f.operator === "delete" && ws(f.argument) ? this.raiseRecoverable(f.start, "Deleting local variable in strict mode") : f.operator === "delete" && Pi(f.argument) ? this.raiseRecoverable(f.start, "Private fields can not be deleted") : t = !0, c = this.finishNode(f, y ? "UpdateExpression" : "UnaryExpression");
|
|
4207
4207
|
} else if (!t && this.type === l.privateId)
|
|
4208
4208
|
(r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), c = this.parsePrivateIdent(), this.type !== l._in && this.unexpected();
|
|
4209
4209
|
else {
|
|
@@ -4222,8 +4222,8 @@ D.parseMaybeUnary = function(e, t, i, r) {
|
|
|
4222
4222
|
else
|
|
4223
4223
|
return c;
|
|
4224
4224
|
};
|
|
4225
|
-
function
|
|
4226
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
4225
|
+
function ws(e) {
|
|
4226
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && ws(e.expression);
|
|
4227
4227
|
}
|
|
4228
4228
|
function Pi(e) {
|
|
4229
4229
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Pi(e.expression) || e.type === "ParenthesizedExpression" && Pi(e.expression);
|
|
@@ -4486,7 +4486,7 @@ D.initFunction = function(e) {
|
|
|
4486
4486
|
};
|
|
4487
4487
|
D.parseMethod = function(e, t, i) {
|
|
4488
4488
|
var r = this.startNode(), n = this.yieldPos, u = this.awaitPos, c = this.awaitIdentPos;
|
|
4489
|
-
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(Zi(t, r.generator) | ni | (i ?
|
|
4489
|
+
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(Zi(t, r.generator) | ni | (i ? xs : 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 = c, this.finishNode(r, "FunctionExpression");
|
|
4490
4490
|
};
|
|
4491
4491
|
D.parseArrowExpression = function(e, t, i, r) {
|
|
4492
4492
|
var n = this.yieldPos, u = this.awaitPos, c = this.awaitIdentPos;
|
|
@@ -4500,7 +4500,7 @@ D.parseFunctionBody = function(e, t, i, r) {
|
|
|
4500
4500
|
var f = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
4501
4501
|
(!u || f) && (c = this.strictDirective(this.end), c && f && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
4502
4502
|
var y = this.labels;
|
|
4503
|
-
this.labels = [], c && (this.strict = !0), this.checkParams(e, !u && !c && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id,
|
|
4503
|
+
this.labels = [], c && (this.strict = !0), this.checkParams(e, !u && !c && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, ks), e.body = this.parseBlock(!1, void 0, c && !u), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = y;
|
|
4504
4504
|
}
|
|
4505
4505
|
this.exitScope();
|
|
4506
4506
|
};
|
|
@@ -4587,16 +4587,16 @@ Xe.declareName = function(e, t, i) {
|
|
|
4587
4587
|
if (t === Fe) {
|
|
4588
4588
|
var n = this.currentScope();
|
|
4589
4589
|
r = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags & Et && delete this.undefinedExports[e];
|
|
4590
|
-
} else if (t ===
|
|
4590
|
+
} else if (t === bs) {
|
|
4591
4591
|
var u = this.currentScope();
|
|
4592
4592
|
u.lexical.push(e);
|
|
4593
|
-
} else if (t ===
|
|
4593
|
+
} else if (t === gs) {
|
|
4594
4594
|
var c = this.currentScope();
|
|
4595
4595
|
this.treatFunctionsAsVar ? r = c.lexical.indexOf(e) > -1 : r = c.lexical.indexOf(e) > -1 || c.var.indexOf(e) > -1, c.functions.push(e);
|
|
4596
4596
|
} else
|
|
4597
4597
|
for (var f = this.scopeStack.length - 1; f >= 0; --f) {
|
|
4598
4598
|
var y = this.scopeStack[f];
|
|
4599
|
-
if (y.lexical.indexOf(e) > -1 && !(y.flags &
|
|
4599
|
+
if (y.lexical.indexOf(e) > -1 && !(y.flags & vs && y.lexical[0] === e) || !this.treatFunctionsAsVarInScope(y) && y.functions.indexOf(e) > -1) {
|
|
4600
4600
|
r = !0;
|
|
4601
4601
|
break;
|
|
4602
4602
|
}
|
|
@@ -4634,14 +4634,14 @@ Mt.startNode = function() {
|
|
|
4634
4634
|
Mt.startNodeAt = function(e, t) {
|
|
4635
4635
|
return new Dt(this, e, t);
|
|
4636
4636
|
};
|
|
4637
|
-
function
|
|
4637
|
+
function Ss(e, t, i, r) {
|
|
4638
4638
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
|
|
4639
4639
|
}
|
|
4640
4640
|
Mt.finishNode = function(e, t) {
|
|
4641
|
-
return
|
|
4641
|
+
return Ss.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
4642
4642
|
};
|
|
4643
4643
|
Mt.finishNodeAt = function(e, t, i, r) {
|
|
4644
|
-
return
|
|
4644
|
+
return Ss.call(this, e, t, i, r);
|
|
4645
4645
|
};
|
|
4646
4646
|
Mt.copyNode = function(e) {
|
|
4647
4647
|
var t = new Dt(this, e.start, this.startLoc);
|
|
@@ -4649,12 +4649,12 @@ Mt.copyNode = function(e) {
|
|
|
4649
4649
|
t[i] = e[i];
|
|
4650
4650
|
return t;
|
|
4651
4651
|
};
|
|
4652
|
-
var Rh = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",
|
|
4653
|
-
9:
|
|
4654
|
-
10:
|
|
4655
|
-
11:
|
|
4656
|
-
12:
|
|
4657
|
-
13:
|
|
4652
|
+
var Rh = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", Ts = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Ps = Ts + " Extended_Pictographic", Cs = Ps, As = Cs + " EBase EComp EMod EPres ExtPict", Es = As, Dh = Es, Mh = {
|
|
4653
|
+
9: Ts,
|
|
4654
|
+
10: Ps,
|
|
4655
|
+
11: Cs,
|
|
4656
|
+
12: As,
|
|
4657
|
+
13: Es,
|
|
4658
4658
|
14: Dh
|
|
4659
4659
|
}, Vh = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", jh = {
|
|
4660
4660
|
9: "",
|
|
@@ -4663,27 +4663,27 @@ var Rh = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4663
4663
|
12: "",
|
|
4664
4664
|
13: "",
|
|
4665
4665
|
14: Vh
|
|
4666
|
-
},
|
|
4667
|
-
9:
|
|
4668
|
-
10:
|
|
4669
|
-
11:
|
|
4670
|
-
12:
|
|
4671
|
-
13:
|
|
4666
|
+
}, Pr = "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", Is = "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", Ns = Is + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Ls = Ns + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Os = Ls + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Rs = Os + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", zh = Rs + " " + Rh, $h = {
|
|
4667
|
+
9: Is,
|
|
4668
|
+
10: Ns,
|
|
4669
|
+
11: Ls,
|
|
4670
|
+
12: Os,
|
|
4671
|
+
13: Rs,
|
|
4672
4672
|
14: zh
|
|
4673
|
-
},
|
|
4673
|
+
}, Ds = {};
|
|
4674
4674
|
function Fh(e) {
|
|
4675
|
-
var t =
|
|
4676
|
-
binary: qe(Mh[e] + " " +
|
|
4675
|
+
var t = Ds[e] = {
|
|
4676
|
+
binary: qe(Mh[e] + " " + Pr),
|
|
4677
4677
|
binaryOfStrings: qe(jh[e]),
|
|
4678
4678
|
nonBinary: {
|
|
4679
|
-
General_Category: qe(
|
|
4679
|
+
General_Category: qe(Pr),
|
|
4680
4680
|
Script: qe($h[e])
|
|
4681
4681
|
}
|
|
4682
4682
|
};
|
|
4683
4683
|
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;
|
|
4684
4684
|
}
|
|
4685
|
-
for (var xi = 0,
|
|
4686
|
-
var Bh =
|
|
4685
|
+
for (var xi = 0, Cr = [9, 10, 11, 12, 13, 14]; xi < Cr.length; xi += 1) {
|
|
4686
|
+
var Bh = Cr[xi];
|
|
4687
4687
|
Fh(Bh);
|
|
4688
4688
|
}
|
|
4689
4689
|
var C = J.prototype, ei = function(t, i) {
|
|
@@ -4700,7 +4700,7 @@ ei.prototype.sibling = function() {
|
|
|
4700
4700
|
return new ei(this.parent, this.base);
|
|
4701
4701
|
};
|
|
4702
4702
|
var De = function(t) {
|
|
4703
|
-
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 =
|
|
4703
|
+
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 = Ds[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;
|
|
4704
4704
|
};
|
|
4705
4705
|
De.prototype.reset = function(t, i, r) {
|
|
4706
4706
|
var n = r.indexOf("v") !== -1, u = r.indexOf("u") !== -1;
|
|
@@ -4983,13 +4983,13 @@ C.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
4983
4983
|
};
|
|
4984
4984
|
C.regexp_eatSyntaxCharacter = function(e) {
|
|
4985
4985
|
var t = e.current();
|
|
4986
|
-
return
|
|
4986
|
+
return Ms(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
4987
4987
|
};
|
|
4988
|
-
function
|
|
4988
|
+
function Ms(e) {
|
|
4989
4989
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
4990
4990
|
}
|
|
4991
4991
|
C.regexp_eatPatternCharacters = function(e) {
|
|
4992
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
4992
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !Ms(i); )
|
|
4993
4993
|
e.advance();
|
|
4994
4994
|
return e.pos !== t;
|
|
4995
4995
|
};
|
|
@@ -5101,9 +5101,9 @@ C.regexp_eatControlEscape = function(e) {
|
|
|
5101
5101
|
};
|
|
5102
5102
|
C.regexp_eatControlLetter = function(e) {
|
|
5103
5103
|
var t = e.current();
|
|
5104
|
-
return
|
|
5104
|
+
return Vs(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
5105
5105
|
};
|
|
5106
|
-
function
|
|
5106
|
+
function Vs(e) {
|
|
5107
5107
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
5108
5108
|
}
|
|
5109
5109
|
C.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -5167,7 +5167,7 @@ C.regexp_eatDecimalEscape = function(e) {
|
|
|
5167
5167
|
}
|
|
5168
5168
|
return !1;
|
|
5169
5169
|
};
|
|
5170
|
-
var
|
|
5170
|
+
var js = 0, $e = 1, we = 2;
|
|
5171
5171
|
C.regexp_eatCharacterClassEscape = function(e) {
|
|
5172
5172
|
var t = e.current();
|
|
5173
5173
|
if (Wh(t))
|
|
@@ -5186,7 +5186,7 @@ C.regexp_eatCharacterClassEscape = function(e) {
|
|
|
5186
5186
|
return i && r === we && e.raise("Invalid property name"), r;
|
|
5187
5187
|
e.raise("Invalid property name");
|
|
5188
5188
|
}
|
|
5189
|
-
return
|
|
5189
|
+
return js;
|
|
5190
5190
|
};
|
|
5191
5191
|
function Wh(e) {
|
|
5192
5192
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
@@ -5207,7 +5207,7 @@ C.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
5207
5207
|
var n = e.lastStringValue;
|
|
5208
5208
|
return this.regexp_validateUnicodePropertyNameOrValue(e, n);
|
|
5209
5209
|
}
|
|
5210
|
-
return
|
|
5210
|
+
return js;
|
|
5211
5211
|
};
|
|
5212
5212
|
C.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
5213
5213
|
vt(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
@@ -5221,12 +5221,12 @@ C.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
5221
5221
|
};
|
|
5222
5222
|
C.regexp_eatUnicodePropertyName = function(e) {
|
|
5223
5223
|
var t = 0;
|
|
5224
|
-
for (e.lastStringValue = "";
|
|
5224
|
+
for (e.lastStringValue = ""; zs(t = e.current()); )
|
|
5225
5225
|
e.lastStringValue += ze(t), e.advance();
|
|
5226
5226
|
return e.lastStringValue !== "";
|
|
5227
5227
|
};
|
|
5228
|
-
function
|
|
5229
|
-
return
|
|
5228
|
+
function zs(e) {
|
|
5229
|
+
return Vs(e) || e === 95;
|
|
5230
5230
|
}
|
|
5231
5231
|
C.regexp_eatUnicodePropertyValue = function(e) {
|
|
5232
5232
|
var t = 0;
|
|
@@ -5235,7 +5235,7 @@ C.regexp_eatUnicodePropertyValue = function(e) {
|
|
|
5235
5235
|
return e.lastStringValue !== "";
|
|
5236
5236
|
};
|
|
5237
5237
|
function Kh(e) {
|
|
5238
|
-
return
|
|
5238
|
+
return zs(e) || ui(e);
|
|
5239
5239
|
}
|
|
5240
5240
|
C.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
5241
5241
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -5281,7 +5281,7 @@ C.regexp_eatClassAtom = function(e) {
|
|
|
5281
5281
|
return !0;
|
|
5282
5282
|
if (e.switchU) {
|
|
5283
5283
|
var i = e.current();
|
|
5284
|
-
(i === 99 ||
|
|
5284
|
+
(i === 99 || Bs(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
5285
5285
|
}
|
|
5286
5286
|
e.pos = t;
|
|
5287
5287
|
}
|
|
@@ -5476,14 +5476,14 @@ function ui(e) {
|
|
|
5476
5476
|
}
|
|
5477
5477
|
C.regexp_eatHexDigits = function(e) {
|
|
5478
5478
|
var t = e.pos, i = 0;
|
|
5479
|
-
for (e.lastIntValue = 0;
|
|
5480
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
5479
|
+
for (e.lastIntValue = 0; $s(i = e.current()); )
|
|
5480
|
+
e.lastIntValue = 16 * e.lastIntValue + Fs(i), e.advance();
|
|
5481
5481
|
return e.pos !== t;
|
|
5482
5482
|
};
|
|
5483
|
-
function
|
|
5483
|
+
function $s(e) {
|
|
5484
5484
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
5485
5485
|
}
|
|
5486
|
-
function
|
|
5486
|
+
function Fs(e) {
|
|
5487
5487
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
5488
5488
|
}
|
|
5489
5489
|
C.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -5500,9 +5500,9 @@ C.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
5500
5500
|
};
|
|
5501
5501
|
C.regexp_eatOctalDigit = function(e) {
|
|
5502
5502
|
var t = e.current();
|
|
5503
|
-
return
|
|
5503
|
+
return Bs(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
5504
5504
|
};
|
|
5505
|
-
function
|
|
5505
|
+
function Bs(e) {
|
|
5506
5506
|
return e >= 48 && e <= 55;
|
|
5507
5507
|
}
|
|
5508
5508
|
C.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -5510,9 +5510,9 @@ C.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
5510
5510
|
e.lastIntValue = 0;
|
|
5511
5511
|
for (var r = 0; r < t; ++r) {
|
|
5512
5512
|
var n = e.current();
|
|
5513
|
-
if (
|
|
5513
|
+
if (!$s(n))
|
|
5514
5514
|
return e.pos = i, !1;
|
|
5515
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
5515
|
+
e.lastIntValue = 16 * e.lastIntValue + Fs(n), e.advance();
|
|
5516
5516
|
}
|
|
5517
5517
|
return !0;
|
|
5518
5518
|
};
|
|
@@ -5558,7 +5558,7 @@ z.fullCharCodeAtPos = function() {
|
|
|
5558
5558
|
z.skipBlockComment = function() {
|
|
5559
5559
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
5560
5560
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
5561
|
-
for (var r = void 0, n = t; (r =
|
|
5561
|
+
for (var r = void 0, n = t; (r = ds(this.input, n, this.pos)) > -1; )
|
|
5562
5562
|
++this.curLine, n = this.lineStart = r;
|
|
5563
5563
|
this.options.onComment && this.options.onComment(
|
|
5564
5564
|
!0,
|
|
@@ -5827,14 +5827,14 @@ z.readInt = function(e, t, i) {
|
|
|
5827
5827
|
function Qh(e, t) {
|
|
5828
5828
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5830
|
+
function Zs(e) {
|
|
5831
5831
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
5832
5832
|
}
|
|
5833
5833
|
z.readRadixNumber = function(e) {
|
|
5834
5834
|
var t = this.pos;
|
|
5835
5835
|
this.pos += 2;
|
|
5836
5836
|
var i = this.readInt(e);
|
|
5837
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i =
|
|
5837
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Zs(this.input.slice(t, this.pos)), ++this.pos) : Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(l.num, i);
|
|
5838
5838
|
};
|
|
5839
5839
|
z.readNumber = function(e) {
|
|
5840
5840
|
var t = this.pos;
|
|
@@ -5843,7 +5843,7 @@ z.readNumber = function(e) {
|
|
|
5843
5843
|
i && this.strict && this.raise(t, "Invalid number");
|
|
5844
5844
|
var r = this.input.charCodeAt(this.pos);
|
|
5845
5845
|
if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
|
|
5846
|
-
var n =
|
|
5846
|
+
var n = Zs(this.input.slice(t, this.pos));
|
|
5847
5847
|
return ++this.pos, Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(l.num, n);
|
|
5848
5848
|
}
|
|
5849
5849
|
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Ae(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
@@ -5870,13 +5870,13 @@ z.readString = function(e) {
|
|
|
5870
5870
|
}
|
|
5871
5871
|
return t += this.input.slice(i, this.pos++), this.finishToken(l.string, t);
|
|
5872
5872
|
};
|
|
5873
|
-
var
|
|
5873
|
+
var Us = {};
|
|
5874
5874
|
z.tryReadTemplateToken = function() {
|
|
5875
5875
|
this.inTemplateElement = !0;
|
|
5876
5876
|
try {
|
|
5877
5877
|
this.readTmplToken();
|
|
5878
5878
|
} catch (e) {
|
|
5879
|
-
if (e ===
|
|
5879
|
+
if (e === Us)
|
|
5880
5880
|
this.readInvalidTemplateToken();
|
|
5881
5881
|
else
|
|
5882
5882
|
throw e;
|
|
@@ -5885,7 +5885,7 @@ z.tryReadTemplateToken = function() {
|
|
|
5885
5885
|
};
|
|
5886
5886
|
z.invalidStringToken = function(e, t) {
|
|
5887
5887
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
5888
|
-
throw
|
|
5888
|
+
throw Us;
|
|
5889
5889
|
this.raise(e, t);
|
|
5890
5890
|
};
|
|
5891
5891
|
z.readTmplToken = function() {
|
|
@@ -6020,10 +6020,10 @@ z.readWord = function() {
|
|
|
6020
6020
|
var e = this.readWord1(), t = l.name;
|
|
6021
6021
|
return this.keywords.test(e) && (t = pt[e]), this.finishToken(t, e);
|
|
6022
6022
|
};
|
|
6023
|
-
var
|
|
6023
|
+
var qs = "8.15.0";
|
|
6024
6024
|
J.acorn = {
|
|
6025
6025
|
Parser: J,
|
|
6026
|
-
version:
|
|
6026
|
+
version: qs,
|
|
6027
6027
|
defaultOptions: Xt,
|
|
6028
6028
|
Position: ft,
|
|
6029
6029
|
SourceLocation: Ot,
|
|
@@ -6039,7 +6039,7 @@ J.acorn = {
|
|
|
6039
6039
|
Token: ci,
|
|
6040
6040
|
isNewLine: it,
|
|
6041
6041
|
lineBreak: he,
|
|
6042
|
-
lineBreakG:
|
|
6042
|
+
lineBreakG: fs,
|
|
6043
6043
|
nonASCIIwhitespace: zi
|
|
6044
6044
|
};
|
|
6045
6045
|
function el(e, t) {
|
|
@@ -6067,16 +6067,16 @@ const rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6067
6067
|
isNewLine: it,
|
|
6068
6068
|
keywordTypes: pt,
|
|
6069
6069
|
lineBreak: he,
|
|
6070
|
-
lineBreakG:
|
|
6070
|
+
lineBreakG: fs,
|
|
6071
6071
|
nonASCIIwhitespace: zi,
|
|
6072
6072
|
parse: el,
|
|
6073
6073
|
parseExpressionAt: tl,
|
|
6074
6074
|
tokContexts: H,
|
|
6075
6075
|
tokTypes: l,
|
|
6076
6076
|
tokenizer: il,
|
|
6077
|
-
version:
|
|
6077
|
+
version: qs
|
|
6078
6078
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6079
|
-
function
|
|
6079
|
+
function Ar(e, t) {
|
|
6080
6080
|
for (var i = 0; i < t.length; i++) {
|
|
6081
6081
|
var r = t[i];
|
|
6082
6082
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, typeof (n = (function(u, c) {
|
|
@@ -6109,19 +6109,19 @@ function Ci(e, t) {
|
|
|
6109
6109
|
return i.__proto__ = r, i;
|
|
6110
6110
|
}, Ci(e, t);
|
|
6111
6111
|
}
|
|
6112
|
-
function
|
|
6112
|
+
function Er(e, t) {
|
|
6113
6113
|
(t == null || t > e.length) && (t = e.length);
|
|
6114
6114
|
for (var i = 0, r = new Array(t); i < t; i++) r[i] = e[i];
|
|
6115
6115
|
return r;
|
|
6116
6116
|
}
|
|
6117
|
-
function
|
|
6117
|
+
function Ir(e, t) {
|
|
6118
6118
|
var i = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
6119
6119
|
if (i) return (i = i.call(e)).next.bind(i);
|
|
6120
6120
|
if (Array.isArray(e) || (i = (function(n, u) {
|
|
6121
6121
|
if (n) {
|
|
6122
|
-
if (typeof n == "string") return
|
|
6122
|
+
if (typeof n == "string") return Er(n, u);
|
|
6123
6123
|
var c = Object.prototype.toString.call(n).slice(8, -1);
|
|
6124
|
-
return c === "Object" && n.constructor && (c = n.constructor.name), c === "Map" || c === "Set" ? Array.from(n) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ?
|
|
6124
|
+
return c === "Object" && n.constructor && (c = n.constructor.name), c === "Map" || c === "Set" ? Array.from(n) : c === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c) ? Er(n, u) : void 0;
|
|
6125
6125
|
}
|
|
6126
6126
|
})(e)) || t) {
|
|
6127
6127
|
i && (e = i);
|
|
@@ -6163,14 +6163,14 @@ function nl(e) {
|
|
|
6163
6163
|
}
|
|
6164
6164
|
return t;
|
|
6165
6165
|
}
|
|
6166
|
-
var wt = 1024, al = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"),
|
|
6166
|
+
var wt = 1024, al = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"), Nr = new RegExp("(?=(" + al.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"), St = function() {
|
|
6167
6167
|
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;
|
|
6168
6168
|
};
|
|
6169
6169
|
function ol(e, t) {
|
|
6170
6170
|
var i = t.key.name, r = e[i], n = "true";
|
|
6171
6171
|
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);
|
|
6172
6172
|
}
|
|
6173
|
-
function
|
|
6173
|
+
function Lr(e, t) {
|
|
6174
6174
|
var i = e.key;
|
|
6175
6175
|
return !e.computed && (i.type === "Identifier" && i.name === t || i.type === "Literal" && i.value === t);
|
|
6176
6176
|
}
|
|
@@ -6216,7 +6216,7 @@ function Pt(e) {
|
|
|
6216
6216
|
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? Pt(e.object) + "." + Pt(e.property) : void 0);
|
|
6217
6217
|
}
|
|
6218
6218
|
var gi = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
6219
|
-
function
|
|
6219
|
+
function Or(e) {
|
|
6220
6220
|
if (!e) throw new Error("Assert fail");
|
|
6221
6221
|
}
|
|
6222
6222
|
function ll(e) {
|
|
@@ -6231,19 +6231,19 @@ function bi(e, t) {
|
|
|
6231
6231
|
function fl(e) {
|
|
6232
6232
|
if (e.type !== "MemberExpression") return !1;
|
|
6233
6233
|
var t = e.property;
|
|
6234
|
-
return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) &&
|
|
6234
|
+
return (!e.computed || !(t.type !== "TemplateLiteral" || t.expressions.length > 0)) && Hs(e.object);
|
|
6235
6235
|
}
|
|
6236
|
-
function
|
|
6237
|
-
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed &&
|
|
6236
|
+
function Hs(e) {
|
|
6237
|
+
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Hs(e.object);
|
|
6238
6238
|
}
|
|
6239
|
-
function
|
|
6239
|
+
function Rr(e) {
|
|
6240
6240
|
return e === "private" || e === "public" || e === "protected";
|
|
6241
6241
|
}
|
|
6242
6242
|
function dl(e) {
|
|
6243
6243
|
var t = {}, i = t.dts, r = i !== void 0 && i, n = t.allowSatisfies, u = n !== void 0 && n;
|
|
6244
6244
|
return function(c) {
|
|
6245
|
-
var f = c.acorn || rl, y = nl(f), o = f.tokTypes, b = f.keywordTypes, P = f.isIdentifierStart, R = f.lineBreak, B = f.isNewLine, U = f.tokContexts, Ee = f.isIdentifierChar, O = y.tokTypes, ne = y.tokContexts, bt = y.keywordsRegExp, Ce = y.tokenIsLiteralPropertyName, be = y.tokenIsTemplate, Je = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, Vt = y.tokenIsKeywordOrIdentifier,
|
|
6246
|
-
function
|
|
6245
|
+
var f = c.acorn || rl, y = nl(f), o = f.tokTypes, b = f.keywordTypes, P = f.isIdentifierStart, R = f.lineBreak, B = f.isNewLine, U = f.tokContexts, Ee = f.isIdentifierChar, O = y.tokTypes, ne = y.tokContexts, bt = y.keywordsRegExp, Ce = y.tokenIsLiteralPropertyName, be = y.tokenIsTemplate, Je = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, Vt = y.tokenIsKeywordOrIdentifier, Ks = y.tokenIsTSTypeOperator;
|
|
6246
|
+
function Xs(T, pe, ue) {
|
|
6247
6247
|
ue === void 0 && (ue = T.length);
|
|
6248
6248
|
for (var ie = pe; ie < ue; ie++) {
|
|
6249
6249
|
var F = T.charCodeAt(ie);
|
|
@@ -6453,7 +6453,7 @@ function dl(e) {
|
|
|
6453
6453
|
}, s;
|
|
6454
6454
|
})(T);
|
|
6455
6455
|
})(c, y, f);
|
|
6456
|
-
var
|
|
6456
|
+
var Js = /* @__PURE__ */ (function(T) {
|
|
6457
6457
|
function pe(s, a, h) {
|
|
6458
6458
|
var p;
|
|
6459
6459
|
return (p = T.call(this, s, a, h) || this).preValue = null, p.preToken = null, p.isLookahead = !1, p.isAmbientContext = !1, p.inAbstractClass = !1, p.inType = !1, p.inDisallowConditionalTypesContext = !1, p.maybeInArrowParameters = !1, p.shouldParseArrowReturnType = void 0, p.shouldParseAsyncArrowReturnType = void 0, p.decoratorStack = [[]], p.importsStack = [[]], p.importOrExportOuterKind = void 0, p.tsParseConstModifier = p.tsParseModifiers.bind((function(m) {
|
|
@@ -6512,7 +6512,7 @@ function dl(e) {
|
|
|
6512
6512
|
return this.nextTokenStartSince(this.pos);
|
|
6513
6513
|
}, d.tsHasSomeModifiers = function(s, a) {
|
|
6514
6514
|
return a.some(function(h) {
|
|
6515
|
-
return
|
|
6515
|
+
return Rr(h) ? s.accessibility === h : !!s[h];
|
|
6516
6516
|
});
|
|
6517
6517
|
}, d.tsIsStartOfStaticBlocks = function() {
|
|
6518
6518
|
return this.isContextual("static") && this.lookaheadCharCode() === 123;
|
|
@@ -6594,7 +6594,7 @@ function dl(e) {
|
|
|
6594
6594
|
var s;
|
|
6595
6595
|
this.isLookahead || (s = this.options.onComment && this.curPosition());
|
|
6596
6596
|
var a = this.pos, h = this.input.indexOf("*/", this.pos += 2);
|
|
6597
|
-
if (h === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = h + 2, this.options.locations) for (var p, m = a; (p =
|
|
6597
|
+
if (h === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = h + 2, this.options.locations) for (var p, m = a; (p = Xs(this.input, m, this.pos)) > -1; ) ++this.curLine, m = this.lineStart = p;
|
|
6598
6598
|
this.isLookahead || this.options.onComment && this.options.onComment(!0, this.input.slice(a + 2, h), a, this.pos, s, this.curPosition());
|
|
6599
6599
|
}, d.skipLineComment = function(s) {
|
|
6600
6600
|
var a, h = this.pos;
|
|
@@ -6610,7 +6610,7 @@ function dl(e) {
|
|
|
6610
6610
|
}, d.isLineTerminator = function() {
|
|
6611
6611
|
return this.eat(o.semi) || T.prototype.canInsertSemicolon.call(this);
|
|
6612
6612
|
}, d.hasFollowingLineBreak = function() {
|
|
6613
|
-
return
|
|
6613
|
+
return Nr.lastIndex = this.end, Nr.test(this.input);
|
|
6614
6614
|
}, d.addExtra = function(s, a, h, p) {
|
|
6615
6615
|
if (p === void 0 && (p = !0), s) {
|
|
6616
6616
|
var m = s.extra = s.extra || {};
|
|
@@ -7027,7 +7027,7 @@ function dl(e) {
|
|
|
7027
7027
|
return s;
|
|
7028
7028
|
}, d.tsParseTypeOperatorOrHigher = function() {
|
|
7029
7029
|
var s = this;
|
|
7030
|
-
return
|
|
7030
|
+
return Ks(this.type) && !this.containsEsc ? this.tsParseTypeOperator() : this.isContextual("infer") ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(function() {
|
|
7031
7031
|
return s.tsParseArrayTypeOrHigher();
|
|
7032
7032
|
});
|
|
7033
7033
|
}, d.tsParseIntersectionTypeOrHigher = function() {
|
|
@@ -7038,7 +7038,7 @@ function dl(e) {
|
|
|
7038
7038
|
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(o._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
|
|
7039
7039
|
}, d.tsParseType = function() {
|
|
7040
7040
|
var s = this;
|
|
7041
|
-
|
|
7041
|
+
Or(this.inType);
|
|
7042
7042
|
var a = this.tsParseNonConditionalType();
|
|
7043
7043
|
if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(o._extends)) return a;
|
|
7044
7044
|
var h = this.startNodeAtNode(a);
|
|
@@ -7108,7 +7108,7 @@ function dl(e) {
|
|
|
7108
7108
|
}; ; ) {
|
|
7109
7109
|
var M = this.startLoc, A = this.tsParseModifier(p.concat(m ?? []), v);
|
|
7110
7110
|
if (!A) break;
|
|
7111
|
-
|
|
7111
|
+
Rr(A) ? h.accessibility ? this.raise(this.start, I.DuplicateAccessibilityModifier()) : (S(M, A, A, "override"), S(M, A, A, "static"), S(M, A, A, "readonly"), S(M, A, A, "accessor"), k.accessibility = A, h.accessibility = A) : pl(A) ? h[A] ? this.raise(this.start, I.DuplicateModifier({ modifier: A })) : (S(M, A, "in", "out"), k[A] = A, h[A] = !0) : ll(A) ? h[A] ? this.raise(this.start, I.DuplicateModifier({ modifier: A })) : (N(M, A, "accessor", "readonly"), N(M, A, "accessor", "static"), N(M, A, "accessor", "override"), k[A] = A, h[A] = !0) : Object.hasOwnProperty.call(h, A) ? this.raise(this.start, I.DuplicateModifier({ modifier: A })) : (S(M, A, "static", "readonly"), S(M, A, "static", "override"), S(M, A, "override", "readonly"), S(M, A, "abstract", "override"), N(M, A, "declare", "override"), N(M, A, "static", "abstract"), k[A] = A, h[A] = !0), m != null && m.includes(A) && this.raise(this.start, g);
|
|
7112
7112
|
}
|
|
7113
7113
|
return k;
|
|
7114
7114
|
}, d.tsParseInOutModifiers = function(s) {
|
|
@@ -7388,7 +7388,7 @@ function dl(e) {
|
|
|
7388
7388
|
else {
|
|
7389
7389
|
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);
|
|
7390
7390
|
else {
|
|
7391
|
-
for (var x, g =
|
|
7391
|
+
for (var x, g = Ir(s.specifiers); !(x = g()).done; ) {
|
|
7392
7392
|
var k = x.value;
|
|
7393
7393
|
this.checkUnreserved(k.local), this.checkLocalExport(k.local), k.local.type === "Literal" && this.raise(k.local.start, "A string literal cannot be used as an exported binding without `from`.");
|
|
7394
7394
|
}
|
|
@@ -7451,7 +7451,7 @@ function dl(e) {
|
|
|
7451
7451
|
this.next(), T.prototype.parseVar.call(this, s, !1, a, h || p), this.semicolon();
|
|
7452
7452
|
var m = this.finishNode(s, "VariableDeclaration");
|
|
7453
7453
|
if (!p) return m;
|
|
7454
|
-
for (var v, x =
|
|
7454
|
+
for (var v, x = Ir(m.declarations); !(v = x()).done; ) {
|
|
7455
7455
|
var g = v.value, k = g.init;
|
|
7456
7456
|
k && (a !== "const" || g.id.typeAnnotation ? this.raise(k.start, I.InitializerNotAllowedInAmbientContext) : k.type !== "StringLiteral" && k.type !== "BooleanLiteral" && k.type !== "NumericLiteral" && k.type !== "BigIntLiteral" && (k.type !== "TemplateLiteral" || k.expressions.length > 0) && !fl(k) && this.raise(k.start, I.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
7457
7457
|
}
|
|
@@ -7528,7 +7528,7 @@ function dl(e) {
|
|
|
7528
7528
|
var g = s.declare, k = s.kind;
|
|
7529
7529
|
!(g !== void 0 && g) || k !== "get" && k !== "set" || this.raise(s.start, I.DeclareAccessor({ kind: k })), x && (s.typeParameters = x);
|
|
7530
7530
|
var S = s.key;
|
|
7531
|
-
s.kind === "constructor" ? (a && this.raise(S.start, "Constructor can't be a generator"), h && this.raise(S.start, "Constructor can't be an async method")) : s.static &&
|
|
7531
|
+
s.kind === "constructor" ? (a && this.raise(S.start, "Constructor can't be a generator"), h && this.raise(S.start, "Constructor can't be an async method")) : s.static && Lr(s, "prototype") && this.raise(S.start, "Classes may not have a static property named prototype");
|
|
7532
7532
|
var N = s.value = this.parseMethod(a, h, p, !0, s);
|
|
7533
7533
|
return s.kind === "get" && N.params.length !== 0 && this.raiseRecoverable(N.start, "getter should have no params"), s.kind === "set" && N.params.length !== 1 && this.raiseRecoverable(N.start, "setter should have exactly one param"), s.kind === "set" && N.params[0].type === "RestElement" && this.raiseRecoverable(N.params[0].start, "Setter cannot use rest params"), this.finishNode(s, "MethodDefinition");
|
|
7534
7534
|
}, d.isClassMethod = function() {
|
|
@@ -7547,7 +7547,7 @@ function dl(e) {
|
|
|
7547
7547
|
(a.eatContextual("get") || a.eatContextual("set")) && (a.isClassElementNameStart() ? k = K : v = K);
|
|
7548
7548
|
}
|
|
7549
7549
|
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 || k !== "method" || x || g) {
|
|
7550
|
-
var G = !m.static &&
|
|
7550
|
+
var G = !m.static && Lr(m, "constructor"), X = G && s;
|
|
7551
7551
|
G && k !== "method" && a.raise(m.key.start, "Constructor can't have get/set modifier"), m.kind = G ? "constructor" : k, a.parseClassMethod(m, x, g, X);
|
|
7552
7552
|
} else a.parseClassField(m);
|
|
7553
7553
|
return m;
|
|
@@ -7605,7 +7605,7 @@ function dl(e) {
|
|
|
7605
7605
|
return (Ue.type !== "ArrowFunctionExpression" || (kt = Ue.extra) != null && kt.parenthesized) && Ze(), ((_t = K) == null ? void 0 : _t.params.length) !== 0 && G.resetStartLocationFromNode(Ue, K), Ue.typeParameters = K, Ue;
|
|
7606
7606
|
}, N);
|
|
7607
7607
|
if (!ye.error && !ye.aborted) return K && this.reportReservedArrowTypeParam(K), ye.node;
|
|
7608
|
-
if (!M && (
|
|
7608
|
+
if (!M && (Or(!0), !(A = this.tryParse(function() {
|
|
7609
7609
|
return G.parseMaybeAssignOrigin(s, a, h);
|
|
7610
7610
|
}, N)).error)) return A.node;
|
|
7611
7611
|
if ((m = M) != null && m.node) return this.setLookaheadState(M.failState), M.node;
|
|
@@ -7983,12 +7983,12 @@ function dl(e) {
|
|
|
7983
7983
|
return y;
|
|
7984
7984
|
} }], (ie = [{ key: "acornTypeScript", get: function() {
|
|
7985
7985
|
return y;
|
|
7986
|
-
} }]) &&
|
|
7986
|
+
} }]) && Ar(ue.prototype, ie), F && Ar(ue, F), Object.defineProperty(ue, "prototype", { writable: !1 }), pe;
|
|
7987
7987
|
})(c);
|
|
7988
|
-
return
|
|
7988
|
+
return Js;
|
|
7989
7989
|
};
|
|
7990
7990
|
}
|
|
7991
|
-
const ml = en
|
|
7991
|
+
const ml = Qs(en);
|
|
7992
7992
|
async function yl(e) {
|
|
7993
7993
|
let t;
|
|
7994
7994
|
try {
|
|
@@ -8064,12 +8064,12 @@ async function xl(e) {
|
|
|
8064
8064
|
}
|
|
8065
8065
|
async function Ie(e, t, i = [], r = !1) {
|
|
8066
8066
|
return se(`${e} - spawn(${t} ${i.join(" ")})`), new Promise((n, u) => {
|
|
8067
|
-
|
|
8067
|
+
tn(t, i, { stdio: "inherit" }).on("close", (f) => {
|
|
8068
8068
|
f === 0 || r ? n() : u(new Error(`${t} exited with code ${f}`));
|
|
8069
8069
|
});
|
|
8070
8070
|
});
|
|
8071
8071
|
}
|
|
8072
|
-
function
|
|
8072
|
+
function Gs(e, t, i, r) {
|
|
8073
8073
|
const n = e.indexOf(i), u = e.indexOf(r);
|
|
8074
8074
|
if (n === -1 || u === -1) throw new Error(`Markers ${i}-${r} not found in content.`);
|
|
8075
8075
|
return `${e.slice(0, Math.max(0, n + i.length))}
|
|
@@ -8103,7 +8103,7 @@ async function gl() {
|
|
|
8103
8103
|
}, i = await fetch(`https://api.datapos.app/states/${e.id}`, t);
|
|
8104
8104
|
if (!i.ok) throw new Error(await i.text());
|
|
8105
8105
|
}
|
|
8106
|
-
async function
|
|
8106
|
+
async function Dr(e) {
|
|
8107
8107
|
const t = e.id, i = {
|
|
8108
8108
|
body: JSON.stringify(e),
|
|
8109
8109
|
headers: { "Content-Type": "application/json" },
|
|
@@ -8111,7 +8111,7 @@ async function Mr(e) {
|
|
|
8111
8111
|
}, r = await fetch(`https://api.datapos.app/states/${t}`, i);
|
|
8112
8112
|
if (!r.ok) throw new Error(await r.text());
|
|
8113
8113
|
}
|
|
8114
|
-
async function
|
|
8114
|
+
async function Mr(e, t) {
|
|
8115
8115
|
const i = `v${e.version}`;
|
|
8116
8116
|
async function r(n, u = "") {
|
|
8117
8117
|
const c = await vl(n, { withFileTypes: !0 });
|
|
@@ -8148,7 +8148,7 @@ async function ql() {
|
|
|
8148
8148
|
Me("Release Project"), await Gi();
|
|
8149
8149
|
const e = await de("package.json");
|
|
8150
8150
|
let t = await de("config.json");
|
|
8151
|
-
await
|
|
8151
|
+
await Ws("1️⃣", e);
|
|
8152
8152
|
const i = bl.find((r) => t.id.startsWith(r.idPrefix));
|
|
8153
8153
|
if (!i) throw new Error(`Failed to locate module type configuration for identifier '${t.id}'.`);
|
|
8154
8154
|
switch (i.typeId) {
|
|
@@ -8167,13 +8167,13 @@ async function ql() {
|
|
|
8167
8167
|
if (await Ie("3️⃣ Bundle project", "vite", ["build"]), await Se("4️⃣ Stage changes", "git", ["add", "."]), await Se("5️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await Se("6️⃣ Push changes", "git", ["push", "origin", "main:main"]), i.typeId === "app")
|
|
8168
8168
|
se("7️⃣ Register module"), await gl();
|
|
8169
8169
|
else if (i.typeId === "engine")
|
|
8170
|
-
se("7️⃣ Register module"), await
|
|
8170
|
+
se("7️⃣ Register module"), await Mr(e, `datapos-engine-eu/${i.uploadGroupName}`), await Dr(t);
|
|
8171
8171
|
else if (i.uploadGroupName === void 0)
|
|
8172
8172
|
se("7️⃣ Registration NOT required.");
|
|
8173
8173
|
else {
|
|
8174
8174
|
se("7️⃣ Register module");
|
|
8175
8175
|
const r = t.id.split("-").slice(2).join("-");
|
|
8176
|
-
await
|
|
8176
|
+
await Mr(e, `datapos-engine-eu/${i.uploadGroupName}/${r}`), await Dr(t);
|
|
8177
8177
|
}
|
|
8178
8178
|
if (i.publish) {
|
|
8179
8179
|
const r = ".npmrc";
|
|
@@ -8194,7 +8194,7 @@ async function Hl() {
|
|
|
8194
8194
|
try {
|
|
8195
8195
|
Me("Synchronise Project with GitHub");
|
|
8196
8196
|
const e = await de("package.json");
|
|
8197
|
-
se("Bump project version"), await
|
|
8197
|
+
se("Bump project version"), await Ws("1️⃣", e), await Se("2️⃣ Stage changes", "git", ["add", "."]), await Se("3️⃣ Commit changes", "git", ["commit", "-m", `"v${e.version}"`]), await Se("4️⃣ Push changes", "git", ["push", "origin", "main:main"]), Be(`Project version '${e.version}' synchronised with GitHub.`);
|
|
8198
8198
|
} catch (e) {
|
|
8199
8199
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
8200
8200
|
}
|
|
@@ -8215,14 +8215,11 @@ async function kl(e, t) {
|
|
|
8215
8215
|
}
|
|
8216
8216
|
async function _l(e, t) {
|
|
8217
8217
|
se(`${e} Build connector project configuration`);
|
|
8218
|
-
const [i, r] = await Promise.all([de("config.json"), Qe("src/index.ts")]), n =
|
|
8218
|
+
const [i, r] = await Promise.all([de("config.json"), Qe("src/index.ts")]), n = /* @__PURE__ */ mn($n, i);
|
|
8219
8219
|
if (!n.success)
|
|
8220
8220
|
throw console.error("❌ Configuration is invalid:"), console.table(n.issues), new Error("Configuration is invalid.");
|
|
8221
|
-
const u =
|
|
8222
|
-
|
|
8223
|
-
throw console.error("❌ Configuration is invalid:"), console.table(u.issues), new Error("Configuration is invalid.");
|
|
8224
|
-
const c = Hi(r), f = Tl(c);
|
|
8225
|
-
return c.length > 0 ? (console.info(`ℹ️ Implements ${c.length} operations:`), console.table(c)) : console.warn("⚠️ Implements no operations."), f === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${f}' usage.`), t.name != null && (i.id = t.name.replace("@datapos/", "").replace("@data-positioning/", "")), t.version != null && (i.version = t.version), i.operations = c, i.usageId = f, await dt("config.json", i), i;
|
|
8221
|
+
const u = Hi(r), c = Tl(u);
|
|
8222
|
+
return u.length > 0 ? (console.info(`ℹ️ Implements ${u.length} operations:`), console.table(u)) : console.warn("⚠️ Implements no operations."), c === "unknown" ? console.warn("⚠️ No usage identified.") : console.info(`ℹ️ Supports '${c}' 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 = c, await dt("config.json", i), i;
|
|
8226
8223
|
}
|
|
8227
8224
|
async function wl(e, t) {
|
|
8228
8225
|
se(`${e} Build context project configuration`);
|
|
@@ -8240,7 +8237,7 @@ async function Sl(e, t) {
|
|
|
8240
8237
|
const u = Hi(r);
|
|
8241
8238
|
return 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 dt("config.json", i), i;
|
|
8242
8239
|
}
|
|
8243
|
-
async function
|
|
8240
|
+
async function Ws(e, t, i = "./") {
|
|
8244
8241
|
if (se(`${e} Bump project version`), t.version == null)
|
|
8245
8242
|
t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`), await dt(`${i}package.json`, t);
|
|
8246
8243
|
else {
|
|
@@ -8251,7 +8248,7 @@ async function Ks(e, t, i = "./") {
|
|
|
8251
8248
|
function Tl(e) {
|
|
8252
8249
|
let t = !1, i = !1;
|
|
8253
8250
|
for (const r of e)
|
|
8254
|
-
|
|
8251
|
+
rn.includes(r) && (t = !0), sn.includes(r) && (i = !0);
|
|
8255
8252
|
return t && i ? "bidirectional" : t ? "source" : i ? "destination" : "unknown";
|
|
8256
8253
|
}
|
|
8257
8254
|
const Pl = {
|
|
@@ -8289,7 +8286,7 @@ async function El(e) {
|
|
|
8289
8286
|
const y = f.severity?.toLowerCase() ?? "unknown";
|
|
8290
8287
|
y in i ? i[y]++ : i.unknown++;
|
|
8291
8288
|
}
|
|
8292
|
-
const r = await Il(i), n = await Qe("./README.md"), u =
|
|
8289
|
+
const r = await Il(i), n = await Qe("./README.md"), u = Gs(n, r.join(" "), Cl, Al);
|
|
8293
8290
|
await It("README.md", u), console.info("OWASP audit badge(s) inserted into 'README.md'");
|
|
8294
8291
|
}
|
|
8295
8292
|
async function Il(e) {
|
|
@@ -8316,7 +8313,7 @@ const Nl = "<!-- DEPENDENCY_LICENSES_START -->", Ll = "<!-- DEPENDENCY_LICENSES_
|
|
|
8316
8313
|
async function Xl(e = [], t = !0) {
|
|
8317
8314
|
try {
|
|
8318
8315
|
Me("Document Dependencies"), await Gi();
|
|
8319
|
-
const i = e.flatMap((n) => ["--allowed", `'${n}'`]), r =
|
|
8316
|
+
const i = e.flatMap((n) => ["--allowed", `'${n}'`]), r = Vr(new nn(import.meta.resolve("@datapos/datapos-development/license-report-config")));
|
|
8320
8317
|
await Se(
|
|
8321
8318
|
"1️⃣ Generate 'licenses.json' file",
|
|
8322
8319
|
"license-report",
|
|
@@ -8370,7 +8367,7 @@ async function Ol(e, t) {
|
|
|
8370
8367
|
o.licenseFileLink == null || o.licenseFileLink == "" ? B = "⚠️ No license file" : B = `[${o.licenseFileLink.slice(Math.max(0, o.licenseFileLink.lastIndexOf("/") + 1))}](${o.licenseFileLink})`, c += `|${o.name}|${o.licenseType}|${b}|${o.remoteVersion}|${P}|${R}|${B}|
|
|
8371
8368
|
`;
|
|
8372
8369
|
}
|
|
8373
|
-
const f = await Qe("./README.md"), y =
|
|
8370
|
+
const f = await Qe("./README.md"), y = Gs(f, c, Nl, Ll);
|
|
8374
8371
|
await It("README.md", y), console.info("OWASP audit badge(s) inserted into 'README.md'"), await It("README.md", y);
|
|
8375
8372
|
}
|
|
8376
8373
|
function Rl(e) {
|
|
@@ -8409,7 +8406,7 @@ async function Ql(e = []) {
|
|
|
8409
8406
|
}
|
|
8410
8407
|
}
|
|
8411
8408
|
async function Ml(e) {
|
|
8412
|
-
const t = Ht.dirname(
|
|
8409
|
+
const t = Ht.dirname(Vr(import.meta.url));
|
|
8413
8410
|
await qt(t, "../", ".editorconfig"), await qt(t, "../", ".gitattributes"), await qt(t, "../", ".markdownlint.json"), await qt(t, "../", "LICENSE");
|
|
8414
8411
|
}
|
|
8415
8412
|
async function qt(e, t, i) {
|
|
@@ -8442,7 +8439,7 @@ async function ep(e) {
|
|
|
8442
8439
|
const P = await ge.readdir(o), R = { childCount: P.length, name: y, typeId: "folder" };
|
|
8443
8440
|
c.push(R), await i(o, P);
|
|
8444
8441
|
} else {
|
|
8445
|
-
const P = { id:
|
|
8442
|
+
const P = { id: Ys(), lastModifiedAt: b.mtimeMs, name: y, size: b.size, typeId: "object" };
|
|
8446
8443
|
c.push(P);
|
|
8447
8444
|
}
|
|
8448
8445
|
} catch (b) {
|