@datapos/datapos-development 0.3.221 → 0.3.223
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.
|
@@ -41,7 +41,7 @@ class xs extends Error {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
const gs = {};
|
|
44
|
-
function
|
|
44
|
+
function $e(e) {
|
|
45
45
|
return gs;
|
|
46
46
|
}
|
|
47
47
|
function Rr(e) {
|
|
@@ -145,7 +145,7 @@ const Vr = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
|
145
145
|
function rt(e) {
|
|
146
146
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function qe(e, t, i) {
|
|
149
149
|
const s = new e._zod.constr(t ?? e._zod.def);
|
|
150
150
|
return (!t || i?.parent) && (s._zod.parent = e), s;
|
|
151
151
|
}
|
|
@@ -185,7 +185,7 @@ function Br(e, t) {
|
|
|
185
185
|
},
|
|
186
186
|
checks: []
|
|
187
187
|
});
|
|
188
|
-
return
|
|
188
|
+
return qe(e, s);
|
|
189
189
|
}
|
|
190
190
|
function $r(e, t) {
|
|
191
191
|
const i = e._zod.def, s = Je(e._zod.def, {
|
|
@@ -200,7 +200,7 @@ function $r(e, t) {
|
|
|
200
200
|
},
|
|
201
201
|
checks: []
|
|
202
202
|
});
|
|
203
|
-
return
|
|
203
|
+
return qe(e, s);
|
|
204
204
|
}
|
|
205
205
|
function Ur(e, t) {
|
|
206
206
|
if (!st(t))
|
|
@@ -215,7 +215,7 @@ function Ur(e, t) {
|
|
|
215
215
|
},
|
|
216
216
|
checks: []
|
|
217
217
|
});
|
|
218
|
-
return
|
|
218
|
+
return qe(e, s);
|
|
219
219
|
}
|
|
220
220
|
function Zr(e, t) {
|
|
221
221
|
if (!st(t))
|
|
@@ -228,7 +228,7 @@ function Zr(e, t) {
|
|
|
228
228
|
},
|
|
229
229
|
checks: e._zod.def.checks
|
|
230
230
|
};
|
|
231
|
-
return
|
|
231
|
+
return qe(e, i);
|
|
232
232
|
}
|
|
233
233
|
function qr(e, t) {
|
|
234
234
|
const i = Je(e._zod.def, {
|
|
@@ -242,7 +242,7 @@ function qr(e, t) {
|
|
|
242
242
|
checks: []
|
|
243
243
|
// delete existing checks
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return qe(e, i);
|
|
246
246
|
}
|
|
247
247
|
function Hr(e, t, i) {
|
|
248
248
|
const s = Je(t._zod.def, {
|
|
@@ -267,7 +267,7 @@ function Hr(e, t, i) {
|
|
|
267
267
|
},
|
|
268
268
|
checks: []
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return qe(t, s);
|
|
271
271
|
}
|
|
272
272
|
function Wr(e, t, i) {
|
|
273
273
|
const s = Je(t._zod.def, {
|
|
@@ -292,7 +292,7 @@ function Wr(e, t, i) {
|
|
|
292
292
|
},
|
|
293
293
|
checks: []
|
|
294
294
|
});
|
|
295
|
-
return
|
|
295
|
+
return qe(t, s);
|
|
296
296
|
}
|
|
297
297
|
function et(e, t = 0) {
|
|
298
298
|
if (e.aborted === !0)
|
|
@@ -311,7 +311,7 @@ function tt(e, t) {
|
|
|
311
311
|
function At(e) {
|
|
312
312
|
return typeof e == "string" ? e : e?.message;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ue(e, t, i) {
|
|
315
315
|
const s = { ...e, path: e.path ?? [] };
|
|
316
316
|
if (!e.message) {
|
|
317
317
|
const a = At(e.inst?._zod.def?.error?.(e)) ?? At(t?.error?.(e)) ?? At(i.customError?.(e)) ?? At(i.localeError?.(e)) ?? "Invalid input";
|
|
@@ -375,7 +375,7 @@ const gi = (e) => (t, i, s, a) => {
|
|
|
375
375
|
if (h instanceof Promise)
|
|
376
376
|
throw new it();
|
|
377
377
|
if (h.issues.length) {
|
|
378
|
-
const d = new (a?.Err ?? e)(h.issues.map((y) =>
|
|
378
|
+
const d = new (a?.Err ?? e)(h.issues.map((y) => Ue(y, o, $e())));
|
|
379
379
|
throw bs(d, a?.callee), d;
|
|
380
380
|
}
|
|
381
381
|
return h.value;
|
|
@@ -383,7 +383,7 @@ const gi = (e) => (t, i, s, a) => {
|
|
|
383
383
|
const o = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
384
384
|
let h = t._zod.run({ value: i, issues: [] }, o);
|
|
385
385
|
if (h instanceof Promise && (h = await h), h.issues.length) {
|
|
386
|
-
const d = new (a?.Err ?? e)(h.issues.map((y) =>
|
|
386
|
+
const d = new (a?.Err ?? e)(h.issues.map((y) => Ue(y, o, $e())));
|
|
387
387
|
throw bs(d, a?.callee), d;
|
|
388
388
|
}
|
|
389
389
|
return h.value;
|
|
@@ -393,14 +393,14 @@ const gi = (e) => (t, i, s, a) => {
|
|
|
393
393
|
throw new it();
|
|
394
394
|
return o.issues.length ? {
|
|
395
395
|
success: !1,
|
|
396
|
-
error: new (e ?? Ss)(o.issues.map((h) =>
|
|
396
|
+
error: new (e ?? Ss)(o.issues.map((h) => Ue(h, a, $e())))
|
|
397
397
|
} : { success: !0, data: o.value };
|
|
398
398
|
}, Jr = /* @__PURE__ */ Bt(Ts), $t = (e) => async (t, i, s) => {
|
|
399
399
|
const a = s ? Object.assign(s, { async: !0 }) : { async: !0 };
|
|
400
400
|
let o = t._zod.run({ value: i, issues: [] }, a);
|
|
401
401
|
return o instanceof Promise && (o = await o), o.issues.length ? {
|
|
402
402
|
success: !1,
|
|
403
|
-
error: new e(o.issues.map((h) =>
|
|
403
|
+
error: new e(o.issues.map((h) => Ue(h, a, $e())))
|
|
404
404
|
} : { success: !0, data: o.value };
|
|
405
405
|
}, Xr = /* @__PURE__ */ $t(Ts), Qr = (e) => (t, i, s) => {
|
|
406
406
|
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
@@ -1179,13 +1179,13 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1179
1179
|
return `shape[${ge}]._zod.run({ value: input[${ge}], issues: [] }, ctx)`;
|
|
1180
1180
|
};
|
|
1181
1181
|
M.write("const input = payload.value;");
|
|
1182
|
-
const
|
|
1182
|
+
const Le = /* @__PURE__ */ Object.create(null);
|
|
1183
1183
|
let R = 0;
|
|
1184
1184
|
for (const de of U.keys)
|
|
1185
|
-
|
|
1185
|
+
Le[de] = `key_${R++}`;
|
|
1186
1186
|
M.write("const newResult = {};");
|
|
1187
1187
|
for (const de of U.keys) {
|
|
1188
|
-
const ge =
|
|
1188
|
+
const ge = Le[de], Ke = Di(de);
|
|
1189
1189
|
M.write(`const ${ge} = ${he(de)};`), M.write(`
|
|
1190
1190
|
if (${ge}.issues.length) {
|
|
1191
1191
|
payload.issues = payload.issues.concat(${ge}.issues.map(iss => ({
|
|
@@ -1232,7 +1232,7 @@ function Fi(e, t, i, s) {
|
|
|
1232
1232
|
code: "invalid_union",
|
|
1233
1233
|
input: t.value,
|
|
1234
1234
|
inst: i,
|
|
1235
|
-
errors: e.map((o) => o.issues.map((h) =>
|
|
1235
|
+
errors: e.map((o) => o.issues.map((h) => Ue(h, s, $e())))
|
|
1236
1236
|
}), t);
|
|
1237
1237
|
}
|
|
1238
1238
|
const Pn = /* @__PURE__ */ w("$ZodUnion", (e, t) => {
|
|
@@ -1357,7 +1357,7 @@ const Cn = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
1357
1357
|
i.issues.push({
|
|
1358
1358
|
code: "invalid_key",
|
|
1359
1359
|
origin: "record",
|
|
1360
|
-
issues: d.issues.map((u) =>
|
|
1360
|
+
issues: d.issues.map((u) => Ue(u, s, $e())),
|
|
1361
1361
|
input: h,
|
|
1362
1362
|
path: [h],
|
|
1363
1363
|
inst: e
|
|
@@ -1467,13 +1467,13 @@ const zn = /* @__PURE__ */ w("$ZodCatch", (e, t) => {
|
|
|
1467
1467
|
return a instanceof Promise ? a.then((o) => (i.value = o.value, o.issues.length && (i.value = t.catchValue({
|
|
1468
1468
|
...i,
|
|
1469
1469
|
error: {
|
|
1470
|
-
issues: o.issues.map((h) =>
|
|
1470
|
+
issues: o.issues.map((h) => Ue(h, s, $e()))
|
|
1471
1471
|
},
|
|
1472
1472
|
input: i.value
|
|
1473
1473
|
}), i.issues = []), i)) : (i.value = a.value, a.issues.length && (i.value = t.catchValue({
|
|
1474
1474
|
...i,
|
|
1475
1475
|
error: {
|
|
1476
|
-
issues: a.issues.map((o) =>
|
|
1476
|
+
issues: a.issues.map((o) => Ue(o, s, $e()))
|
|
1477
1477
|
},
|
|
1478
1478
|
input: i.value
|
|
1479
1479
|
}), i.issues = []), i);
|
|
@@ -2059,7 +2059,7 @@ const Uo = (e, t) => {
|
|
|
2059
2059
|
...t.checks ?? [],
|
|
2060
2060
|
...i.map((s) => typeof s == "function" ? { _zod: { check: s, def: { check: "custom" }, onattach: [] } } : s)
|
|
2061
2061
|
]
|
|
2062
|
-
})), e.clone = (i, s) =>
|
|
2062
|
+
})), e.clone = (i, s) => qe(e, i, s), e.brand = () => e, e.register = (i, s) => (i.add(e, s), e), e.parse = (i, s) => Zo(e, i, s, { callee: e.parse }), e.safeParse = (i, s) => Ho(e, i, s), e.parseAsync = async (i, s) => qo(e, i, s, { callee: e.parseAsync }), e.safeParseAsync = async (i, s) => Wo(e, i, s), e.spa = e.safeParseAsync, e.encode = (i, s) => Ko(e, i, s), e.decode = (i, s) => Go(e, i, s), e.encodeAsync = async (i, s) => Jo(e, i, s), e.decodeAsync = async (i, s) => Xo(e, i, s), e.safeEncode = (i, s) => Qo(e, i, s), e.safeDecode = (i, s) => Yo(e, i, s), e.safeEncodeAsync = async (i, s) => eu(e, i, s), e.safeDecodeAsync = async (i, s) => tu(e, i, s), e.refine = (i, s) => e.check(Ku(i, s)), e.superRefine = (i) => e.check(Gu(i)), e.overwrite = (i) => e.check(xt(i)), e.optional = () => Yi(e), e.nullable = () => es(e), e.nullish = () => Yi(es(e)), e.nonoptional = (i) => Bu(e, i), e.array = () => Ze(e), e.or = (i) => se([e, i]), e.and = (i) => Iu(e, i), e.transform = (i) => ts(e, Ru(i)), e.default = (i) => Vu(e, i), e.prefault = (i) => ju(e, i), e.catch = (i) => Uu(e, i), e.pipe = (i) => ts(e, i), e.readonly = () => Hu(e), e.describe = (i) => {
|
|
2063
2063
|
const s = e.clone();
|
|
2064
2064
|
return Et.add(s, { description: i }), s;
|
|
2065
2065
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2127,7 +2127,7 @@ const Y = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
|
2127
2127
|
const i = e._zod.bag;
|
|
2128
2128
|
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;
|
|
2129
2129
|
});
|
|
2130
|
-
function
|
|
2130
|
+
function Oe(e) {
|
|
2131
2131
|
return yo(Vs, e);
|
|
2132
2132
|
}
|
|
2133
2133
|
const bu = /* @__PURE__ */ w("ZodNumberFormat", (e, t) => {
|
|
@@ -2157,13 +2157,13 @@ function _u(e) {
|
|
|
2157
2157
|
const Pu = /* @__PURE__ */ w("ZodArray", (e, t) => {
|
|
2158
2158
|
Sn.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, s) => e.check(Mt(i, s)), e.nonempty = (i) => e.check(Mt(1, i)), e.max = (i, s) => e.check(Rs(i, s)), e.length = (i, s) => e.check(Ds(i, s)), e.unwrap = () => e.element;
|
|
2159
2159
|
});
|
|
2160
|
-
function
|
|
2160
|
+
function Ze(e, t) {
|
|
2161
2161
|
return No(Pu, e, t);
|
|
2162
2162
|
}
|
|
2163
2163
|
const Au = /* @__PURE__ */ w("ZodObject", (e, t) => {
|
|
2164
2164
|
_n.init(e, t), ee.init(e, t), Z(e, "shape", () => t.shape), e.keyof = () => Lu(Object.keys(e._zod.def.shape)), e.catchall = (i) => e.clone({ ...e._zod.def, catchall: i }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qi() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qi() }), e.strict = () => e.clone({ ...e._zod.def, catchall: _u() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (i) => Ur(e, i), e.safeExtend = (i) => Zr(e, i), e.merge = (i) => qr(e, i), e.pick = (i) => Br(e, i), e.omit = (i) => $r(e, i), e.partial = (...i) => Hr(Fs, e, i[0]), e.required = (...i) => Wr(js, e, i[0]);
|
|
2165
2165
|
});
|
|
2166
|
-
function
|
|
2166
|
+
function Ce(e, t) {
|
|
2167
2167
|
const i = {
|
|
2168
2168
|
type: "object",
|
|
2169
2169
|
shape: e ?? {},
|
|
@@ -2404,32 +2404,32 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2404
2404
|
g("presenter"),
|
|
2405
2405
|
g("presenterPresentation"),
|
|
2406
2406
|
g("tool")
|
|
2407
|
-
]), Yu = se([g("en-au"), g("en-gb"), g("en-us"), g("es-es")]), ec = xe(Yu, L()), tc =
|
|
2407
|
+
]), Yu = se([g("en-au"), g("en-gb"), g("en-us"), g("es-es")]), ec = xe(Yu, L()), tc = Ce({
|
|
2408
2408
|
id: L(),
|
|
2409
2409
|
color: Ju,
|
|
2410
2410
|
label: L()
|
|
2411
|
-
}), ic =
|
|
2411
|
+
}), ic = Ce({
|
|
2412
2412
|
id: L(),
|
|
2413
2413
|
label: xe(L(), L()),
|
|
2414
2414
|
description: xe(L(), L()),
|
|
2415
|
-
firstCreatedAt:
|
|
2415
|
+
firstCreatedAt: Oe().optional(),
|
|
2416
2416
|
icon: L().optional(),
|
|
2417
2417
|
iconDark: L().optional(),
|
|
2418
|
-
lastUpdatedAt:
|
|
2418
|
+
lastUpdatedAt: Oe().optional(),
|
|
2419
2419
|
status: tc.nullable().optional(),
|
|
2420
2420
|
statusId: Xu,
|
|
2421
2421
|
typeId: Qu
|
|
2422
|
-
}), sc = se([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), rc =
|
|
2422
|
+
}), sc = se([g("app"), g("engine"), g("connector"), g("context"), g("presenter"), g("tool")]), rc = Ce({
|
|
2423
2423
|
id: L(),
|
|
2424
2424
|
label: L()
|
|
2425
|
-
}), ac =
|
|
2426
|
-
activeConnectionCount:
|
|
2425
|
+
}), ac = Ce({
|
|
2426
|
+
activeConnectionCount: Oe().optional(),
|
|
2427
2427
|
canDescribe: wu().optional(),
|
|
2428
2428
|
id: L().optional(),
|
|
2429
2429
|
authMethodId: se([g("apiKey"), g("disabled"), g("oAuth2"), g("none")]),
|
|
2430
2430
|
label: ec.optional(),
|
|
2431
|
-
maxConnectionCount:
|
|
2432
|
-
params:
|
|
2431
|
+
maxConnectionCount: Oe().optional(),
|
|
2432
|
+
params: Ze(xe(L(), L())).optional()
|
|
2433
2433
|
}), nc = se([g("application"), g("curatedDataset"), g("database"), g("fileStore")]), oc = se([
|
|
2434
2434
|
g("abortOperation"),
|
|
2435
2435
|
g("authenticateConnection"),
|
|
@@ -2450,7 +2450,7 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2450
2450
|
category: rc.optional(),
|
|
2451
2451
|
categoryId: nc,
|
|
2452
2452
|
implementations: xe(L(), ac),
|
|
2453
|
-
operations:
|
|
2453
|
+
operations: Ze(oc),
|
|
2454
2454
|
typeId: g("connector"),
|
|
2455
2455
|
usageId: uc,
|
|
2456
2456
|
vendorAccountURL: L().nullable().optional(),
|
|
@@ -2490,19 +2490,19 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2490
2490
|
g("presenter"),
|
|
2491
2491
|
g("presenterPresentation"),
|
|
2492
2492
|
g("tool")
|
|
2493
|
-
]), is =
|
|
2493
|
+
]), is = Oe(), dc = Ce({
|
|
2494
2494
|
id: L(),
|
|
2495
2495
|
color: pc,
|
|
2496
2496
|
label: L()
|
|
2497
|
-
}), mc =
|
|
2497
|
+
}), mc = Ce({
|
|
2498
2498
|
id: L(),
|
|
2499
2499
|
label: xe(L(), L()),
|
|
2500
2500
|
description: xe(L(), L()),
|
|
2501
2501
|
icon: L().optional(),
|
|
2502
2502
|
iconDark: L().optional(),
|
|
2503
|
-
order:
|
|
2503
|
+
order: Oe(),
|
|
2504
2504
|
path: L()
|
|
2505
|
-
}), Bs =
|
|
2505
|
+
}), Bs = Ce({
|
|
2506
2506
|
id: L(),
|
|
2507
2507
|
label: xe(L(), L()),
|
|
2508
2508
|
description: xe(L(), L()),
|
|
@@ -2517,25 +2517,25 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2517
2517
|
typeId: yc,
|
|
2518
2518
|
version: L()
|
|
2519
2519
|
}), xc = Bs.extend({
|
|
2520
|
-
modelRefs:
|
|
2521
|
-
order:
|
|
2520
|
+
modelRefs: Ze(mc),
|
|
2521
|
+
order: Oe()
|
|
2522
2522
|
}), gc = g("list"), bc = vc.extend({
|
|
2523
|
-
models:
|
|
2524
|
-
operations:
|
|
2523
|
+
models: Ze(xc),
|
|
2524
|
+
operations: Ze(gc),
|
|
2525
2525
|
typeId: g("context")
|
|
2526
|
-
}), kc = se([g("amber"), g("green"), g("red"), g("other")]), wc = se([g("alpha"), g("beta"), g("generalAvailability"), g("notApplicable"), g("preAlpha"), g("proposed"), g("releaseCandidate"), g("unavailable"), g("underReview")]), Sc = se([g("app"), g("connector"), g("connectorConnection"), g("context"), g("contextModelGroup"), g("contextModel"), g("contextModelDimensionGroup"), g("contextModelDimension"), g("contextModelDimensionHierarchy"), g("contextModelEntityGroup"), g("contextModelEntity"), g("contextModelEntityDataItem"), g("contextModelEntityEvent"), g("contextModelEntityPrimaryMeasure"), g("contextModelSecondaryMeasureGroup"), g("contextModelSecondaryMeasure"), g("dataView"), g("dimension"), g("engine"), g("eventQuery"), g("presenter"), g("presenterPresentation"), g("tool")]), ss =
|
|
2526
|
+
}), kc = se([g("amber"), g("green"), g("red"), g("other")]), wc = se([g("alpha"), g("beta"), g("generalAvailability"), g("notApplicable"), g("preAlpha"), g("proposed"), g("releaseCandidate"), g("unavailable"), g("underReview")]), Sc = se([g("app"), g("connector"), g("connectorConnection"), g("context"), g("contextModelGroup"), g("contextModel"), g("contextModelDimensionGroup"), g("contextModelDimension"), g("contextModelDimensionHierarchy"), g("contextModelEntityGroup"), g("contextModelEntity"), g("contextModelEntityDataItem"), g("contextModelEntityEvent"), g("contextModelEntityPrimaryMeasure"), g("contextModelSecondaryMeasureGroup"), g("contextModelSecondaryMeasure"), g("dataView"), g("dimension"), g("engine"), g("eventQuery"), g("presenter"), g("presenterPresentation"), g("tool")]), ss = Oe(), Tc = Ce({
|
|
2527
2527
|
id: L(),
|
|
2528
2528
|
color: kc,
|
|
2529
2529
|
label: L()
|
|
2530
|
-
}), _c =
|
|
2530
|
+
}), _c = Ce({
|
|
2531
2531
|
id: L(),
|
|
2532
2532
|
label: xe(L(), L()),
|
|
2533
2533
|
description: xe(L(), L()),
|
|
2534
2534
|
icon: L().optional(),
|
|
2535
2535
|
iconDark: L().optional(),
|
|
2536
|
-
order:
|
|
2536
|
+
order: Oe(),
|
|
2537
2537
|
path: L()
|
|
2538
|
-
}), Pc =
|
|
2538
|
+
}), Pc = Ce({
|
|
2539
2539
|
id: L(),
|
|
2540
2540
|
label: xe(L(), L()),
|
|
2541
2541
|
description: xe(L(), L()),
|
|
@@ -2550,8 +2550,8 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2550
2550
|
typeId: Ac,
|
|
2551
2551
|
version: L()
|
|
2552
2552
|
}), Ec = se([g("list"), g("render"), g("setColorMode")]), Ic = Cc.extend({
|
|
2553
|
-
presentations:
|
|
2554
|
-
operations:
|
|
2553
|
+
presentations: Ze(_c),
|
|
2554
|
+
operations: Ze(Ec),
|
|
2555
2555
|
typeId: g("presenter")
|
|
2556
2556
|
});
|
|
2557
2557
|
var Nc = [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], $s = [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], Lc = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Us = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ei = {
|
|
@@ -2574,10 +2574,10 @@ function ui(e, t) {
|
|
|
2574
2574
|
}
|
|
2575
2575
|
return !1;
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function Pe(e, t) {
|
|
2578
2578
|
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Rc.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, $s);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Me(e, t) {
|
|
2581
2581
|
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 && Dc.test(String.fromCharCode(e)) : t === !1 ? !1 : ui(e, $s) || ui(e, Nc);
|
|
2582
2582
|
}
|
|
2583
2583
|
var V = function(t, i) {
|
|
@@ -2701,10 +2701,10 @@ var wi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ae = /(?:\s|\/\/.*|\/\
|
|
|
2701
2701
|
}), rs = Array.isArray || (function(e) {
|
|
2702
2702
|
return Vc.call(e) === "[object Array]";
|
|
2703
2703
|
}), as = /* @__PURE__ */ Object.create(null);
|
|
2704
|
-
function
|
|
2704
|
+
function Be(e) {
|
|
2705
2705
|
return as[e] || (as[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function Re(e) {
|
|
2708
2708
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
2709
2709
|
}
|
|
2710
2710
|
var Fc = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, nt = function(t, i) {
|
|
@@ -2849,28 +2849,28 @@ var vt = 1, ut = 2, Ti = 4, Ws = 8, _i = 16, Ks = 32, Zt = 64, Gs = 128, Qe = 25
|
|
|
2849
2849
|
function Pi(e, t) {
|
|
2850
2850
|
return ut | (e ? Ti : 0) | (t ? Ws : 0);
|
|
2851
2851
|
}
|
|
2852
|
-
var Dt = 0, Ai = 1,
|
|
2853
|
-
this.options = t = jc(t), this.sourceFile = t.sourceFile, this.keywords =
|
|
2852
|
+
var Dt = 0, Ai = 1, ze = 2, Js = 3, Xs = 4, Qs = 5, X = function(t, i, s) {
|
|
2853
|
+
this.options = t = jc(t), this.sourceFile = t.sourceFile, this.keywords = Be(Oc[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
2854
2854
|
var a = "";
|
|
2855
|
-
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords =
|
|
2855
|
+
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords = Be(a);
|
|
2856
2856
|
var o = (a ? a + " " : "") + ei.strict;
|
|
2857
|
-
this.reservedWordsStrict =
|
|
2857
|
+
this.reservedWordsStrict = Be(o), this.reservedWordsStrictBind = Be(o + " " + ei.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
|
|
2858
2858
|
`, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(ue).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = p.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(vt), this.regexpState = null, this.privateNameStack = [];
|
|
2859
|
-
},
|
|
2859
|
+
}, Ee = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
2860
2860
|
X.prototype.parse = function() {
|
|
2861
2861
|
var t = this.options.program || this.startNode();
|
|
2862
2862
|
return this.nextToken(), this.parseTopLevel(t);
|
|
2863
2863
|
};
|
|
2864
|
-
|
|
2864
|
+
Ee.inFunction.get = function() {
|
|
2865
2865
|
return (this.currentVarScope().flags & ut) > 0;
|
|
2866
2866
|
};
|
|
2867
|
-
|
|
2867
|
+
Ee.inGenerator.get = function() {
|
|
2868
2868
|
return (this.currentVarScope().flags & Ws) > 0;
|
|
2869
2869
|
};
|
|
2870
|
-
|
|
2870
|
+
Ee.inAsync.get = function() {
|
|
2871
2871
|
return (this.currentVarScope().flags & Ti) > 0;
|
|
2872
2872
|
};
|
|
2873
|
-
|
|
2873
|
+
Ee.canAwait.get = function() {
|
|
2874
2874
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2875
2875
|
var t = this.scopeStack[e], i = t.flags;
|
|
2876
2876
|
if (i & (Qe | bt))
|
|
@@ -2880,17 +2880,17 @@ Ie.canAwait.get = function() {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
2882
2882
|
};
|
|
2883
|
-
|
|
2883
|
+
Ee.allowSuper.get = function() {
|
|
2884
2884
|
var e = this.currentThisScope(), t = e.flags;
|
|
2885
2885
|
return (t & Zt) > 0 || this.options.allowSuperOutsideMethod;
|
|
2886
2886
|
};
|
|
2887
|
-
|
|
2887
|
+
Ee.allowDirectSuper.get = function() {
|
|
2888
2888
|
return (this.currentThisScope().flags & Gs) > 0;
|
|
2889
2889
|
};
|
|
2890
|
-
|
|
2890
|
+
Ee.treatFunctionsAsVar.get = function() {
|
|
2891
2891
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
2892
2892
|
};
|
|
2893
|
-
|
|
2893
|
+
Ee.allowNewDotTarget.get = function() {
|
|
2894
2894
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
2895
2895
|
var t = this.scopeStack[e], i = t.flags;
|
|
2896
2896
|
if (i & (Qe | bt) || i & ut && !(i & _i))
|
|
@@ -2898,7 +2898,7 @@ Ie.allowNewDotTarget.get = function() {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
return !1;
|
|
2900
2900
|
};
|
|
2901
|
-
|
|
2901
|
+
Ee.inClassStaticBlock.get = function() {
|
|
2902
2902
|
return (this.currentVarScope().flags & Qe) > 0;
|
|
2903
2903
|
};
|
|
2904
2904
|
X.extend = function() {
|
|
@@ -2917,7 +2917,7 @@ X.parseExpressionAt = function(t, i, s) {
|
|
|
2917
2917
|
X.tokenizer = function(t, i) {
|
|
2918
2918
|
return new this(i, t);
|
|
2919
2919
|
};
|
|
2920
|
-
Object.defineProperties(X.prototype,
|
|
2920
|
+
Object.defineProperties(X.prototype, Ee);
|
|
2921
2921
|
var ce = X.prototype, $c = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
2922
2922
|
ce.strictDirective = function(e) {
|
|
2923
2923
|
if (this.options.ecmaVersion < 5)
|
|
@@ -3017,8 +3017,8 @@ E.isLet = function(e) {
|
|
|
3017
3017
|
return !1;
|
|
3018
3018
|
if (s === 123 || s > 55295 && s < 56320)
|
|
3019
3019
|
return !0;
|
|
3020
|
-
if (
|
|
3021
|
-
for (var a = i + 1;
|
|
3020
|
+
if (Pe(s, !0)) {
|
|
3021
|
+
for (var a = i + 1; Me(s = this.input.charCodeAt(a), !0); )
|
|
3022
3022
|
++a;
|
|
3023
3023
|
if (s === 92 || s > 55295 && s < 56320)
|
|
3024
3024
|
return !0;
|
|
@@ -3033,7 +3033,7 @@ E.isAsyncFunction = function() {
|
|
|
3033
3033
|
return !1;
|
|
3034
3034
|
ae.lastIndex = this.pos;
|
|
3035
3035
|
var e = ae.exec(this.input), t = this.pos + e[0].length, i;
|
|
3036
|
-
return !ue.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(
|
|
3036
|
+
return !ue.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Me(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
3037
3037
|
};
|
|
3038
3038
|
E.isUsingKeyword = function(e, t) {
|
|
3039
3039
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
@@ -3044,7 +3044,7 @@ E.isUsingKeyword = function(e, t) {
|
|
|
3044
3044
|
return !1;
|
|
3045
3045
|
if (e) {
|
|
3046
3046
|
var a = s + 5, o;
|
|
3047
|
-
if (this.input.slice(s, a) !== "using" || a === this.input.length ||
|
|
3047
|
+
if (this.input.slice(s, a) !== "using" || a === this.input.length || Me(o = this.input.charCodeAt(a)) || o > 55295 && o < 56320)
|
|
3048
3048
|
return !1;
|
|
3049
3049
|
ae.lastIndex = a;
|
|
3050
3050
|
var h = ae.exec(this.input);
|
|
@@ -3053,11 +3053,11 @@ E.isUsingKeyword = function(e, t) {
|
|
|
3053
3053
|
}
|
|
3054
3054
|
if (t) {
|
|
3055
3055
|
var d = s + 2, y;
|
|
3056
|
-
if (this.input.slice(s, d) === "of" && (d === this.input.length || !
|
|
3056
|
+
if (this.input.slice(s, d) === "of" && (d === this.input.length || !Me(y = this.input.charCodeAt(d)) && !(y > 55295 && y < 56320)))
|
|
3057
3057
|
return !1;
|
|
3058
3058
|
}
|
|
3059
3059
|
var u = this.input.charCodeAt(s);
|
|
3060
|
-
return
|
|
3060
|
+
return Pe(u, !0) || u === 92;
|
|
3061
3061
|
};
|
|
3062
3062
|
E.isAwaitUsing = function(e) {
|
|
3063
3063
|
return this.isUsingKeyword(!0, e);
|
|
@@ -3188,7 +3188,7 @@ E.parseThrowStatement = function(e) {
|
|
|
3188
3188
|
var Zc = [];
|
|
3189
3189
|
E.parseCatchClauseParam = function() {
|
|
3190
3190
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
3191
|
-
return this.enterScope(t ? Ks : 0), this.checkLValPattern(e, t ? Xs :
|
|
3191
|
+
return this.enterScope(t ? Ks : 0), this.checkLValPattern(e, t ? Xs : ze), this.expect(p.parenR), e;
|
|
3192
3192
|
};
|
|
3193
3193
|
E.parseTryStatement = function(e) {
|
|
3194
3194
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === p._catch) {
|
|
@@ -3252,11 +3252,11 @@ E.parseVar = function(e, t, i, s) {
|
|
|
3252
3252
|
return e;
|
|
3253
3253
|
};
|
|
3254
3254
|
E.parseVarId = function(e, t) {
|
|
3255
|
-
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ai :
|
|
3255
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ai : ze, !1);
|
|
3256
3256
|
};
|
|
3257
3257
|
var dt = 1, ci = 2, Ys = 4;
|
|
3258
3258
|
E.parseFunction = function(e, t, i, s, a) {
|
|
3259
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === p.star && t & ci && this.unexpected(), e.generator = this.eat(p.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & dt && (e.id = t & Ys && this.type !== p.name ? null : this.parseIdent(), e.id && !(t & ci) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ai :
|
|
3259
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === p.star && t & ci && this.unexpected(), e.generator = this.eat(p.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & dt && (e.id = t & Ys && this.type !== p.name ? null : this.parseIdent(), e.id && !(t & ci) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Ai : ze : Js));
|
|
3260
3260
|
var o = this.yieldPos, h = this.awaitPos, d = this.awaitIdentPos;
|
|
3261
3261
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Pi(e.async, e.generator)), t & dt || (e.id = this.type === p.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, a), this.yieldPos = o, this.awaitPos = h, this.awaitIdentPos = d, this.finishNode(e, t & dt ? "FunctionDeclaration" : "FunctionExpression");
|
|
3262
3262
|
};
|
|
@@ -3319,7 +3319,7 @@ E.parseClassStaticBlock = function(e) {
|
|
|
3319
3319
|
return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
|
|
3320
3320
|
};
|
|
3321
3321
|
E.parseClassId = function(e, t) {
|
|
3322
|
-
this.type === p.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id,
|
|
3322
|
+
this.type === p.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, ze, !1)) : (t === !0 && this.unexpected(), e.id = null);
|
|
3323
3323
|
};
|
|
3324
3324
|
E.parseClassSuper = function(e) {
|
|
3325
3325
|
e.superClass = this.eat(p._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
@@ -3437,15 +3437,15 @@ E.parseImport = function(e) {
|
|
|
3437
3437
|
};
|
|
3438
3438
|
E.parseImportSpecifier = function() {
|
|
3439
3439
|
var e = this.startNode();
|
|
3440
|
-
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local,
|
|
3440
|
+
return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, ze), this.finishNode(e, "ImportSpecifier");
|
|
3441
3441
|
};
|
|
3442
3442
|
E.parseImportDefaultSpecifier = function() {
|
|
3443
3443
|
var e = this.startNode();
|
|
3444
|
-
return e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
3444
|
+
return e.local = this.parseIdent(), this.checkLValSimple(e.local, ze), this.finishNode(e, "ImportDefaultSpecifier");
|
|
3445
3445
|
};
|
|
3446
3446
|
E.parseImportNamespaceSpecifier = function() {
|
|
3447
3447
|
var e = this.startNode();
|
|
3448
|
-
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local,
|
|
3448
|
+
return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, ze), this.finishNode(e, "ImportNamespaceSpecifier");
|
|
3449
3449
|
};
|
|
3450
3450
|
E.parseImportSpecifiers = function() {
|
|
3451
3451
|
var e = [], t = !0;
|
|
@@ -3606,7 +3606,7 @@ Te.checkLValSimple = function(e, t, i) {
|
|
|
3606
3606
|
var s = t !== Dt;
|
|
3607
3607
|
switch (e.type) {
|
|
3608
3608
|
case "Identifier":
|
|
3609
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t ===
|
|
3609
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === ze && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (ot(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== Qs && this.declareName(e.name, t, e.start));
|
|
3610
3610
|
break;
|
|
3611
3611
|
case "ChainExpression":
|
|
3612
3612
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -3893,12 +3893,12 @@ D.parseSubscript = function(e, t, i, s, a, o, h) {
|
|
|
3893
3893
|
} else if (!s && this.eat(p.parenL)) {
|
|
3894
3894
|
var P = new Ht(), M = this.yieldPos, U = this.awaitPos, he = this.awaitIdentPos;
|
|
3895
3895
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
3896
|
-
var
|
|
3896
|
+
var Le = this.parseExprList(p.parenR, this.options.ecmaVersion >= 8, !1, P);
|
|
3897
3897
|
if (a && !y && this.shouldParseAsyncArrow())
|
|
3898
|
-
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = U, this.awaitIdentPos = he, this.parseSubscriptAsyncArrow(t, i,
|
|
3898
|
+
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = M, this.awaitPos = U, this.awaitIdentPos = he, this.parseSubscriptAsyncArrow(t, i, Le, h);
|
|
3899
3899
|
this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, this.awaitIdentPos = he || this.awaitIdentPos;
|
|
3900
3900
|
var R = this.startNodeAt(t, i);
|
|
3901
|
-
R.callee = e, R.arguments =
|
|
3901
|
+
R.callee = e, R.arguments = Le, d && (R.optional = y), e = this.finishNode(R, "CallExpression");
|
|
3902
3902
|
} else if (this.type === p.backQuote) {
|
|
3903
3903
|
(y || o) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
3904
3904
|
var re = this.startNodeAt(t, i);
|
|
@@ -4012,10 +4012,10 @@ D.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
4012
4012
|
break;
|
|
4013
4013
|
} else
|
|
4014
4014
|
y.push(this.parseMaybeAssign(!1, P, this.parseParenItem));
|
|
4015
|
-
var
|
|
4015
|
+
var Le = this.lastTokEnd, R = this.lastTokEndLoc;
|
|
4016
4016
|
if (this.expect(p.parenR), e && this.shouldParseArrow(y) && this.eat(p.arrow))
|
|
4017
4017
|
return this.checkPatternErrors(P, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = M, this.awaitPos = U, this.parseParenArrowList(i, s, y, t);
|
|
4018
|
-
(!y.length || S) && this.unexpected(this.lastTokStart), he && this.unexpected(he), this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, y.length > 1 ? (a = this.startNodeAt(h, d), a.expressions = y, this.finishNodeAt(a, "SequenceExpression",
|
|
4018
|
+
(!y.length || S) && this.unexpected(this.lastTokStart), he && this.unexpected(he), this.checkExpressionErrors(P, !0), this.yieldPos = M || this.yieldPos, this.awaitPos = U || this.awaitPos, y.length > 1 ? (a = this.startNodeAt(h, d), a.expressions = y, this.finishNodeAt(a, "SequenceExpression", Le, R)) : a = y[0];
|
|
4019
4019
|
} else
|
|
4020
4020
|
a = this.parseParenExpression();
|
|
4021
4021
|
if (this.options.preserveParens) {
|
|
@@ -4199,21 +4199,21 @@ Vt.curPosition = function() {
|
|
|
4199
4199
|
if (this.options.locations)
|
|
4200
4200
|
return new nt(this.curLine, this.pos - this.lineStart);
|
|
4201
4201
|
};
|
|
4202
|
-
var
|
|
4202
|
+
var He = X.prototype, Wc = function(t) {
|
|
4203
4203
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
4204
4204
|
};
|
|
4205
|
-
|
|
4205
|
+
He.enterScope = function(e) {
|
|
4206
4206
|
this.scopeStack.push(new Wc(e));
|
|
4207
4207
|
};
|
|
4208
|
-
|
|
4208
|
+
He.exitScope = function() {
|
|
4209
4209
|
this.scopeStack.pop();
|
|
4210
4210
|
};
|
|
4211
|
-
|
|
4211
|
+
He.treatFunctionsAsVarInScope = function(e) {
|
|
4212
4212
|
return e.flags & ut || !this.inModule && e.flags & vt;
|
|
4213
4213
|
};
|
|
4214
|
-
|
|
4214
|
+
He.declareName = function(e, t, i) {
|
|
4215
4215
|
var s = !1;
|
|
4216
|
-
if (t ===
|
|
4216
|
+
if (t === ze) {
|
|
4217
4217
|
var a = this.currentScope();
|
|
4218
4218
|
s = a.lexical.indexOf(e) > -1 || a.functions.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.lexical.push(e), this.inModule && a.flags & vt && delete this.undefinedExports[e];
|
|
4219
4219
|
} else if (t === Xs) {
|
|
@@ -4234,20 +4234,20 @@ We.declareName = function(e, t, i) {
|
|
|
4234
4234
|
}
|
|
4235
4235
|
s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
4236
4236
|
};
|
|
4237
|
-
|
|
4237
|
+
He.checkLocalExport = function(e) {
|
|
4238
4238
|
this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
|
|
4239
4239
|
};
|
|
4240
|
-
|
|
4240
|
+
He.currentScope = function() {
|
|
4241
4241
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
4242
4242
|
};
|
|
4243
|
-
|
|
4243
|
+
He.currentVarScope = function() {
|
|
4244
4244
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4245
4245
|
var t = this.scopeStack[e];
|
|
4246
4246
|
if (t.flags & (qt | bt | Qe))
|
|
4247
4247
|
return t;
|
|
4248
4248
|
}
|
|
4249
4249
|
};
|
|
4250
|
-
|
|
4250
|
+
He.currentThisScope = function() {
|
|
4251
4251
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4252
4252
|
var t = this.scopeStack[e];
|
|
4253
4253
|
if (t.flags & (qt | bt | Qe) && !(t.flags & _i))
|
|
@@ -4302,11 +4302,11 @@ var Kc = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4302
4302
|
}, lr = {};
|
|
4303
4303
|
function th(e) {
|
|
4304
4304
|
var t = lr[e] = {
|
|
4305
|
-
binary:
|
|
4306
|
-
binaryOfStrings:
|
|
4305
|
+
binary: Be(Jc[e] + " " + os),
|
|
4306
|
+
binaryOfStrings: Be(Qc[e]),
|
|
4307
4307
|
nonBinary: {
|
|
4308
|
-
General_Category:
|
|
4309
|
-
Script:
|
|
4308
|
+
General_Category: Be(os),
|
|
4309
|
+
Script: Be(eh[e])
|
|
4310
4310
|
}
|
|
4311
4311
|
};
|
|
4312
4312
|
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;
|
|
@@ -4328,17 +4328,17 @@ Ft.prototype.separatedFrom = function(t) {
|
|
|
4328
4328
|
Ft.prototype.sibling = function() {
|
|
4329
4329
|
return new Ft(this.parent, this.base);
|
|
4330
4330
|
};
|
|
4331
|
-
var
|
|
4331
|
+
var Ie = function(t) {
|
|
4332
4332
|
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 = lr[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;
|
|
4333
4333
|
};
|
|
4334
|
-
|
|
4334
|
+
Ie.prototype.reset = function(t, i, s) {
|
|
4335
4335
|
var a = s.indexOf("v") !== -1, o = s.indexOf("u") !== -1;
|
|
4336
4336
|
this.start = t | 0, this.source = i + "", this.flags = s, a && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = o && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = o && this.parser.options.ecmaVersion >= 9);
|
|
4337
4337
|
};
|
|
4338
|
-
|
|
4338
|
+
Ie.prototype.raise = function(t) {
|
|
4339
4339
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
|
|
4340
4340
|
};
|
|
4341
|
-
|
|
4341
|
+
Ie.prototype.at = function(t, i) {
|
|
4342
4342
|
i === void 0 && (i = !1);
|
|
4343
4343
|
var s = this.source, a = s.length;
|
|
4344
4344
|
if (t >= a)
|
|
@@ -4349,7 +4349,7 @@ Ne.prototype.at = function(t, i) {
|
|
|
4349
4349
|
var h = s.charCodeAt(t + 1);
|
|
4350
4350
|
return h >= 56320 && h <= 57343 ? (o << 10) + h - 56613888 : o;
|
|
4351
4351
|
};
|
|
4352
|
-
|
|
4352
|
+
Ie.prototype.nextIndex = function(t, i) {
|
|
4353
4353
|
i === void 0 && (i = !1);
|
|
4354
4354
|
var s = this.source, a = s.length;
|
|
4355
4355
|
if (t >= a)
|
|
@@ -4357,19 +4357,19 @@ Ne.prototype.nextIndex = function(t, i) {
|
|
|
4357
4357
|
var o = s.charCodeAt(t), h;
|
|
4358
4358
|
return !(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= a || (h = s.charCodeAt(t + 1)) < 56320 || h > 57343 ? t + 1 : t + 2;
|
|
4359
4359
|
};
|
|
4360
|
-
|
|
4360
|
+
Ie.prototype.current = function(t) {
|
|
4361
4361
|
return t === void 0 && (t = !1), this.at(this.pos, t);
|
|
4362
4362
|
};
|
|
4363
|
-
|
|
4363
|
+
Ie.prototype.lookahead = function(t) {
|
|
4364
4364
|
return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
|
|
4365
4365
|
};
|
|
4366
|
-
|
|
4366
|
+
Ie.prototype.advance = function(t) {
|
|
4367
4367
|
t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
|
|
4368
4368
|
};
|
|
4369
|
-
|
|
4369
|
+
Ie.prototype.eat = function(t, i) {
|
|
4370
4370
|
return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
|
|
4371
4371
|
};
|
|
4372
|
-
|
|
4372
|
+
Ie.prototype.eatChars = function(t, i) {
|
|
4373
4373
|
i === void 0 && (i = !1);
|
|
4374
4374
|
for (var s = this.pos, a = 0, o = t; a < o.length; a += 1) {
|
|
4375
4375
|
var h = o[a], d = this.at(s, i);
|
|
@@ -4595,7 +4595,7 @@ A.regexp_eatCapturingGroup = function(e) {
|
|
|
4595
4595
|
};
|
|
4596
4596
|
A.regexp_eatModifiers = function(e) {
|
|
4597
4597
|
for (var t = "", i = 0; (i = e.current()) !== -1 && rh(i); )
|
|
4598
|
-
t +=
|
|
4598
|
+
t += Re(i), e.advance();
|
|
4599
4599
|
return t;
|
|
4600
4600
|
};
|
|
4601
4601
|
function rh(e) {
|
|
@@ -4660,8 +4660,8 @@ A.regexp_eatGroupName = function(e) {
|
|
|
4660
4660
|
};
|
|
4661
4661
|
A.regexp_eatRegExpIdentifierName = function(e) {
|
|
4662
4662
|
if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
|
|
4663
|
-
for (e.lastStringValue +=
|
|
4664
|
-
e.lastStringValue +=
|
|
4663
|
+
for (e.lastStringValue += Re(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
|
|
4664
|
+
e.lastStringValue += Re(e.lastIntValue);
|
|
4665
4665
|
return !0;
|
|
4666
4666
|
}
|
|
4667
4667
|
return !1;
|
|
@@ -4671,14 +4671,14 @@ A.regexp_eatRegExpIdentifierStart = function(e) {
|
|
|
4671
4671
|
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ah(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
4672
4672
|
};
|
|
4673
4673
|
function ah(e) {
|
|
4674
|
-
return
|
|
4674
|
+
return Pe(e, !0) || e === 36 || e === 95;
|
|
4675
4675
|
}
|
|
4676
4676
|
A.regexp_eatRegExpIdentifierPart = function(e) {
|
|
4677
4677
|
var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
|
|
4678
4678
|
return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), nh(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
|
|
4679
4679
|
};
|
|
4680
4680
|
function nh(e) {
|
|
4681
|
-
return
|
|
4681
|
+
return Me(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
4682
4682
|
}
|
|
4683
4683
|
A.regexp_eatAtomEscape = function(e) {
|
|
4684
4684
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
@@ -4796,11 +4796,11 @@ A.regexp_eatDecimalEscape = function(e) {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
return !1;
|
|
4798
4798
|
};
|
|
4799
|
-
var mr = 0,
|
|
4799
|
+
var mr = 0, De = 1, we = 2;
|
|
4800
4800
|
A.regexp_eatCharacterClassEscape = function(e) {
|
|
4801
4801
|
var t = e.current();
|
|
4802
4802
|
if (uh(t))
|
|
4803
|
-
return e.lastIntValue = -1, e.advance(),
|
|
4803
|
+
return e.lastIntValue = -1, e.advance(), De;
|
|
4804
4804
|
var i = !1;
|
|
4805
4805
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
4806
4806
|
e.lastIntValue = -1, e.advance();
|
|
@@ -4829,7 +4829,7 @@ A.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
4829
4829
|
var i = e.lastStringValue;
|
|
4830
4830
|
if (this.regexp_eatUnicodePropertyValue(e)) {
|
|
4831
4831
|
var s = e.lastStringValue;
|
|
4832
|
-
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s),
|
|
4832
|
+
return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), De;
|
|
4833
4833
|
}
|
|
4834
4834
|
}
|
|
4835
4835
|
if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
|
|
@@ -4843,7 +4843,7 @@ A.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
|
4843
4843
|
};
|
|
4844
4844
|
A.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
4845
4845
|
if (e.unicodeProperties.binary.test(t))
|
|
4846
|
-
return
|
|
4846
|
+
return De;
|
|
4847
4847
|
if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t))
|
|
4848
4848
|
return we;
|
|
4849
4849
|
e.raise("Invalid property name");
|
|
@@ -4851,7 +4851,7 @@ A.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
4851
4851
|
A.regexp_eatUnicodePropertyName = function(e) {
|
|
4852
4852
|
var t = 0;
|
|
4853
4853
|
for (e.lastStringValue = ""; yr(t = e.current()); )
|
|
4854
|
-
e.lastStringValue +=
|
|
4854
|
+
e.lastStringValue += Re(t), e.advance();
|
|
4855
4855
|
return e.lastStringValue !== "";
|
|
4856
4856
|
};
|
|
4857
4857
|
function yr(e) {
|
|
@@ -4860,7 +4860,7 @@ function yr(e) {
|
|
|
4860
4860
|
A.regexp_eatUnicodePropertyValue = function(e) {
|
|
4861
4861
|
var t = 0;
|
|
4862
4862
|
for (e.lastStringValue = ""; ch(t = e.current()); )
|
|
4863
|
-
e.lastStringValue +=
|
|
4863
|
+
e.lastStringValue += Re(t), e.advance();
|
|
4864
4864
|
return e.lastStringValue !== "";
|
|
4865
4865
|
};
|
|
4866
4866
|
function ch(e) {
|
|
@@ -4886,7 +4886,7 @@ A.regexp_eatCharacterClass = function(e) {
|
|
|
4886
4886
|
return !1;
|
|
4887
4887
|
};
|
|
4888
4888
|
A.regexp_classContents = function(e) {
|
|
4889
|
-
return e.current() === 93 ?
|
|
4889
|
+
return e.current() === 93 ? De : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), De);
|
|
4890
4890
|
};
|
|
4891
4891
|
A.regexp_nonEmptyClassRanges = function(e) {
|
|
4892
4892
|
for (; this.regexp_eatClassAtom(e); ) {
|
|
@@ -4940,7 +4940,7 @@ A.regexp_eatClassEscape = function(e) {
|
|
|
4940
4940
|
return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
|
|
4941
4941
|
};
|
|
4942
4942
|
A.regexp_classSetExpression = function(e) {
|
|
4943
|
-
var t =
|
|
4943
|
+
var t = De, i;
|
|
4944
4944
|
if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
|
|
4945
4945
|
i === we && (t = we);
|
|
4946
4946
|
for (var s = e.pos; e.eatChars(
|
|
@@ -4948,7 +4948,7 @@ A.regexp_classSetExpression = function(e) {
|
|
|
4948
4948
|
/* && */
|
|
4949
4949
|
); ) {
|
|
4950
4950
|
if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
|
|
4951
|
-
i !== we && (t =
|
|
4951
|
+
i !== we && (t = De);
|
|
4952
4952
|
continue;
|
|
4953
4953
|
}
|
|
4954
4954
|
e.raise("Invalid character in character class");
|
|
@@ -4987,7 +4987,7 @@ A.regexp_eatClassSetRange = function(e) {
|
|
|
4987
4987
|
return !1;
|
|
4988
4988
|
};
|
|
4989
4989
|
A.regexp_eatClassSetOperand = function(e) {
|
|
4990
|
-
return this.regexp_eatClassSetCharacter(e) ?
|
|
4990
|
+
return this.regexp_eatClassSetCharacter(e) ? De : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
|
|
4991
4991
|
};
|
|
4992
4992
|
A.regexp_eatNestedClass = function(e) {
|
|
4993
4993
|
var t = e.pos;
|
|
@@ -5050,7 +5050,7 @@ A.regexp_classStringDisjunctionContents = function(e) {
|
|
|
5050
5050
|
A.regexp_classString = function(e) {
|
|
5051
5051
|
for (var t = 0; this.regexp_eatClassSetCharacter(e); )
|
|
5052
5052
|
t++;
|
|
5053
|
-
return t === 1 ?
|
|
5053
|
+
return t === 1 ? De : we;
|
|
5054
5054
|
};
|
|
5055
5055
|
A.regexp_eatClassSetCharacter = function(e) {
|
|
5056
5056
|
var t = e.pos;
|
|
@@ -5175,7 +5175,7 @@ F.nextToken = function() {
|
|
|
5175
5175
|
this.readToken(this.fullCharCodeAtPos());
|
|
5176
5176
|
};
|
|
5177
5177
|
F.readToken = function(e) {
|
|
5178
|
-
return
|
|
5178
|
+
return Pe(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
|
|
5179
5179
|
};
|
|
5180
5180
|
F.fullCharCodeAtPos = function() {
|
|
5181
5181
|
var e = this.input.charCodeAt(this.pos);
|
|
@@ -5315,9 +5315,9 @@ F.readToken_question = function() {
|
|
|
5315
5315
|
};
|
|
5316
5316
|
F.readToken_numberSign = function() {
|
|
5317
5317
|
var e = this.options.ecmaVersion, t = 35;
|
|
5318
|
-
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(),
|
|
5318
|
+
if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Pe(t, !0) || t === 92))
|
|
5319
5319
|
return this.finishToken(p.privateId, this.readWord1());
|
|
5320
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
5320
|
+
this.raise(this.pos, "Unexpected character '" + Re(t) + "'");
|
|
5321
5321
|
};
|
|
5322
5322
|
F.getTokenFromCode = function(e) {
|
|
5323
5323
|
switch (e) {
|
|
@@ -5404,7 +5404,7 @@ F.getTokenFromCode = function(e) {
|
|
|
5404
5404
|
case 35:
|
|
5405
5405
|
return this.readToken_numberSign();
|
|
5406
5406
|
}
|
|
5407
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
5407
|
+
this.raise(this.pos, "Unexpected character '" + Re(e) + "'");
|
|
5408
5408
|
};
|
|
5409
5409
|
F.finishOp = function(e, t) {
|
|
5410
5410
|
var i = this.input.slice(this.pos, this.pos + t);
|
|
@@ -5431,7 +5431,7 @@ F.readRegexp = function() {
|
|
|
5431
5431
|
++this.pos;
|
|
5432
5432
|
var o = this.pos, h = this.readWord1();
|
|
5433
5433
|
this.containsEsc && this.unexpected(o);
|
|
5434
|
-
var d = this.regexpState || (this.regexpState = new
|
|
5434
|
+
var d = this.regexpState || (this.regexpState = new Ie(this));
|
|
5435
5435
|
d.reset(i, a, h), this.validateRegExpFlags(d), this.validateRegExpPattern(d);
|
|
5436
5436
|
var y = null;
|
|
5437
5437
|
try {
|
|
@@ -5463,7 +5463,7 @@ F.readRadixNumber = function(e) {
|
|
|
5463
5463
|
var t = this.pos;
|
|
5464
5464
|
this.pos += 2;
|
|
5465
5465
|
var i = this.readInt(e);
|
|
5466
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = br(this.input.slice(t, this.pos)), ++this.pos) :
|
|
5466
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = br(this.input.slice(t, this.pos)), ++this.pos) : Pe(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, i);
|
|
5467
5467
|
};
|
|
5468
5468
|
F.readNumber = function(e) {
|
|
5469
5469
|
var t = this.pos;
|
|
@@ -5473,9 +5473,9 @@ F.readNumber = function(e) {
|
|
|
5473
5473
|
var s = this.input.charCodeAt(this.pos);
|
|
5474
5474
|
if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
|
|
5475
5475
|
var a = br(this.input.slice(t, this.pos));
|
|
5476
|
-
return ++this.pos,
|
|
5476
|
+
return ++this.pos, Pe(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(p.num, a);
|
|
5477
5477
|
}
|
|
5478
|
-
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")),
|
|
5478
|
+
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Pe(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
5479
5479
|
var o = fh(this.input.slice(t, this.pos), i);
|
|
5480
5480
|
return this.finishToken(p.num, o);
|
|
5481
5481
|
};
|
|
@@ -5581,7 +5581,7 @@ F.readEscapedChar = function(e) {
|
|
|
5581
5581
|
return String.fromCharCode(this.readHexChar(2));
|
|
5582
5582
|
// 'x'
|
|
5583
5583
|
case 117:
|
|
5584
|
-
return
|
|
5584
|
+
return Re(this.readCodePoint());
|
|
5585
5585
|
// 'u'
|
|
5586
5586
|
case 116:
|
|
5587
5587
|
return " ";
|
|
@@ -5631,14 +5631,14 @@ F.readWord1 = function() {
|
|
|
5631
5631
|
this.containsEsc = !1;
|
|
5632
5632
|
for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
5633
5633
|
var a = this.fullCharCodeAtPos();
|
|
5634
|
-
if (
|
|
5634
|
+
if (Me(a, s))
|
|
5635
5635
|
this.pos += a <= 65535 ? 1 : 2;
|
|
5636
5636
|
else if (a === 92) {
|
|
5637
5637
|
this.containsEsc = !0, e += this.input.slice(i, this.pos);
|
|
5638
5638
|
var o = this.pos;
|
|
5639
5639
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
5640
5640
|
var h = this.readCodePoint();
|
|
5641
|
-
(t ?
|
|
5641
|
+
(t ? Pe : Me)(h, s) || this.invalidStringToken(o, "Invalid Unicode escape"), e += Re(h), i = this.pos;
|
|
5642
5642
|
} else
|
|
5643
5643
|
break;
|
|
5644
5644
|
t = !1;
|
|
@@ -5663,8 +5663,8 @@ X.acorn = {
|
|
|
5663
5663
|
keywordTypes: at,
|
|
5664
5664
|
TokContext: oe,
|
|
5665
5665
|
tokContexts: H,
|
|
5666
|
-
isIdentifierChar:
|
|
5667
|
-
isIdentifierStart:
|
|
5666
|
+
isIdentifierChar: Me,
|
|
5667
|
+
isIdentifierStart: Pe,
|
|
5668
5668
|
Token: Kt,
|
|
5669
5669
|
isNewLine: Xe,
|
|
5670
5670
|
lineBreak: ue,
|
|
@@ -5691,8 +5691,8 @@ const vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5691
5691
|
TokenType: V,
|
|
5692
5692
|
defaultOptions: Rt,
|
|
5693
5693
|
getLineInfo: Si,
|
|
5694
|
-
isIdentifierChar:
|
|
5695
|
-
isIdentifierStart:
|
|
5694
|
+
isIdentifierChar: Me,
|
|
5695
|
+
isIdentifierStart: Pe,
|
|
5696
5696
|
isNewLine: Xe,
|
|
5697
5697
|
keywordTypes: at,
|
|
5698
5698
|
lineBreak: ue,
|
|
@@ -5871,7 +5871,7 @@ function ms(e) {
|
|
|
5871
5871
|
function Ch(e) {
|
|
5872
5872
|
var t = {}, i = t.dts, s = i !== void 0 && i, a = t.allowSatisfies, o = a !== void 0 && a;
|
|
5873
5873
|
return function(h) {
|
|
5874
|
-
var d = h.acorn || vh, y = gh(d), u = d.tokTypes, S = d.keywordTypes, P = d.isIdentifierStart, M = d.lineBreak, U = d.isNewLine, he = d.tokContexts,
|
|
5874
|
+
var d = h.acorn || vh, y = gh(d), u = d.tokTypes, S = d.keywordTypes, P = d.isIdentifierStart, M = d.lineBreak, U = d.isNewLine, he = d.tokContexts, Le = d.isIdentifierChar, R = y.tokTypes, re = y.tokContexts, de = y.keywordsRegExp, ge = y.tokenIsLiteralPropertyName, Ke = y.tokenIsTemplate, Ar = y.tokenIsTSDeclarationStart, q = y.tokenIsIdentifier, Tt = y.tokenIsKeywordOrIdentifier, Cr = y.tokenIsTSTypeOperator;
|
|
5875
5875
|
function Er(_, pe, ne) {
|
|
5876
5876
|
ne === void 0 && (ne = _.length);
|
|
5877
5877
|
for (var te = pe; te < ne; te++) {
|
|
@@ -6183,7 +6183,7 @@ function Ch(e) {
|
|
|
6183
6183
|
var c = r + n.length;
|
|
6184
6184
|
if (this.input.slice(r, c) === n) {
|
|
6185
6185
|
var l = this.input.charCodeAt(c);
|
|
6186
|
-
return !(
|
|
6186
|
+
return !(Le(l) || (64512 & l) == 55296);
|
|
6187
6187
|
}
|
|
6188
6188
|
return !1;
|
|
6189
6189
|
}, f.isAbstractConstructorSignature = function() {
|
|
@@ -7227,11 +7227,11 @@ function Ch(e) {
|
|
|
7227
7227
|
}
|
|
7228
7228
|
if (!((l = z) != null && l.error || this.tsMatchLeftRelational())) return this.parseMaybeAssignOrigin(r, n, c);
|
|
7229
7229
|
N && !this.compareLookaheadState(N, this.getCurLookaheadState()) || (N = this.cloneCurLookaheadState());
|
|
7230
|
-
var me = this.tryParse(function(
|
|
7230
|
+
var me = this.tryParse(function(Fe) {
|
|
7231
7231
|
var ht, pt;
|
|
7232
7232
|
G = W.tsParseTypeParameters();
|
|
7233
|
-
var
|
|
7234
|
-
return (
|
|
7233
|
+
var je = W.parseMaybeAssignOrigin(r, n, c);
|
|
7234
|
+
return (je.type !== "ArrowFunctionExpression" || (ht = je.extra) != null && ht.parenthesized) && Fe(), ((pt = G) == null ? void 0 : pt.params.length) !== 0 && W.resetStartLocationFromNode(je, G), je.typeParameters = G, je;
|
|
7235
7235
|
}, N);
|
|
7236
7236
|
if (!me.error && !me.aborted) return G && this.reportReservedArrowTypeParam(G), me.node;
|
|
7237
7237
|
if (!z && (ds(!0), !(C = this.tryParse(function() {
|
|
@@ -7381,8 +7381,8 @@ function Ch(e) {
|
|
|
7381
7381
|
N.length && !C || this.unexpected(this.lastTokStart), b && this.unexpected(b), this.checkExpressionErrors(G, !0), this.yieldPos = W || this.yieldPos, this.awaitPos = J || this.awaitPos, N.length > 1 ? ((c = this.startNodeAt(k, T)).expressions = N, this.finishNodeAt(c, "SequenceExpression", ie, me)) : c = N[0];
|
|
7382
7382
|
} else c = this.parseParenExpression();
|
|
7383
7383
|
if (this.options.preserveParens) {
|
|
7384
|
-
var
|
|
7385
|
-
return
|
|
7384
|
+
var Fe = this.startNodeAt(l, m);
|
|
7385
|
+
return Fe.expression = c, this.finishNode(Fe, "ParenthesizedExpression");
|
|
7386
7386
|
}
|
|
7387
7387
|
return c;
|
|
7388
7388
|
}, f.parseTaggedTemplateExpression = function(r, n, c, l) {
|
|
@@ -7453,12 +7453,12 @@ function Ch(e) {
|
|
|
7453
7453
|
} else if (!l && this.eat(u.parenL)) {
|
|
7454
7454
|
var me = this.maybeInArrowParameters;
|
|
7455
7455
|
this.maybeInArrowParameters = !0;
|
|
7456
|
-
var
|
|
7456
|
+
var Fe = new ft(), ht = this.yieldPos, pt = this.awaitPos, je = this.awaitIdentPos;
|
|
7457
7457
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
7458
|
-
var Ii = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1,
|
|
7459
|
-
if (m && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(
|
|
7458
|
+
var Ii = this.parseExprList(u.parenR, this.options.ecmaVersion >= 8, !1, Fe);
|
|
7459
|
+
if (m && !W && this.shouldParseAsyncArrow()) this.checkPatternErrors(Fe, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = ht, this.awaitPos = pt, this.awaitIdentPos = je, r = this.parseSubscriptAsyncArrow(n, c, Ii, x);
|
|
7460
7460
|
else {
|
|
7461
|
-
this.checkExpressionErrors(
|
|
7461
|
+
this.checkExpressionErrors(Fe, !0), this.yieldPos = ht || this.yieldPos, this.awaitPos = pt || this.awaitPos, this.awaitIdentPos = je || this.awaitIdentPos;
|
|
7462
7462
|
var _t = this.startNodeAt(n, c);
|
|
7463
7463
|
_t.callee = r, _t.arguments = Ii, G && (_t.optional = W), r = this.finishNode(_t, "CallExpression");
|
|
7464
7464
|
}
|
|
@@ -7638,37 +7638,37 @@ function Ih(e) {
|
|
|
7638
7638
|
Mr.includes(s) && (t = !0), Or.includes(s) && (i = !0);
|
|
7639
7639
|
return t && i ? "bidirectional" : t ? "source" : i ? "destination" : "unknown";
|
|
7640
7640
|
}
|
|
7641
|
-
async function
|
|
7641
|
+
async function _e(e, t = [], i) {
|
|
7642
7642
|
const s = `${e} ${t.join(" ")}`;
|
|
7643
|
-
|
|
7643
|
+
We(`Execute command: ${s}`);
|
|
7644
7644
|
const { stdout: a, stderr: o } = await Eh(s);
|
|
7645
7645
|
i === void 0 ? a.trim() && console.log(a.trim()) : await $.writeFile(i, a.trim(), "utf8"), o.trim() && console.error(o.trim());
|
|
7646
7646
|
}
|
|
7647
7647
|
async function Nh() {
|
|
7648
|
-
|
|
7648
|
+
We("Load environment variables"), (await import("dotenv")).config();
|
|
7649
7649
|
}
|
|
7650
|
-
function
|
|
7650
|
+
function Ne(e) {
|
|
7651
7651
|
const t = "\x1B[36m", i = "\x1B[0m", s = "─".repeat(e.length + 10);
|
|
7652
7652
|
console.info(`
|
|
7653
7653
|
${t}${s}`), console.info(`▶️ ${e}`), console.info(`${s}${i}`);
|
|
7654
7654
|
}
|
|
7655
|
-
function
|
|
7655
|
+
function Ve(e) {
|
|
7656
7656
|
console.info(`
|
|
7657
7657
|
✅ ${e}
|
|
7658
7658
|
`);
|
|
7659
7659
|
}
|
|
7660
|
-
function
|
|
7660
|
+
function We(e) {
|
|
7661
7661
|
console.info(`
|
|
7662
|
-
|
|
7662
|
+
${e}`);
|
|
7663
7663
|
}
|
|
7664
7664
|
async function St(e) {
|
|
7665
|
-
return
|
|
7665
|
+
return JSON.parse(await $.readFile(e, "utf8"));
|
|
7666
7666
|
}
|
|
7667
7667
|
async function li(e) {
|
|
7668
|
-
return
|
|
7668
|
+
return await $.readFile(e, "utf8");
|
|
7669
7669
|
}
|
|
7670
|
-
async function
|
|
7671
|
-
return
|
|
7670
|
+
async function Ae(e, t, i = [], s = !1) {
|
|
7671
|
+
return We(`${e}. Spawn command: ${t} ${i.join(" ")}`), new Promise((a, o) => {
|
|
7672
7672
|
Nr(t, i, { stdio: "inherit" }).on("close", (d) => {
|
|
7673
7673
|
d === 0 || s ? a() : o(new Error(`${t} exited with code ${d}`));
|
|
7674
7674
|
});
|
|
@@ -7688,39 +7688,39 @@ function fi(e, t) {
|
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
7690
|
async function di(e, t) {
|
|
7691
|
-
|
|
7691
|
+
await $.writeFile(e, JSON.stringify(t, void 0, 4), "utf8");
|
|
7692
7692
|
}
|
|
7693
7693
|
async function Tr(e, t) {
|
|
7694
|
-
|
|
7694
|
+
await $.writeFile(e, t, "utf8");
|
|
7695
7695
|
}
|
|
7696
7696
|
async function $h() {
|
|
7697
7697
|
try {
|
|
7698
|
-
|
|
7698
|
+
Ne("Build Project"), await Ae("", "vite", ["build"]), Ve("Project built.");
|
|
7699
7699
|
} catch (e) {
|
|
7700
7700
|
console.error("❌ Error building project.", e), process.exit(1);
|
|
7701
7701
|
}
|
|
7702
7702
|
}
|
|
7703
7703
|
async function Uh(e = !1) {
|
|
7704
7704
|
try {
|
|
7705
|
-
|
|
7705
|
+
Ne("Release Project");
|
|
7706
7706
|
const t = await St("package.json");
|
|
7707
|
-
await _r(t), await Lh(t), await
|
|
7707
|
+
await _r(t), await Lh(t), await Ae("3️⃣ Bundle project.", "vite", ["build"]), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${t.version}"`]), await _e("git", ["push", "origin", "main:main"]), await Ae("", "npm", ["publish", "--access", "public"]), Ve(`Project version ${t.version} released.`);
|
|
7708
7708
|
} catch (t) {
|
|
7709
7709
|
console.error("❌ Error releasing project.", t), process.exit(1);
|
|
7710
7710
|
}
|
|
7711
7711
|
}
|
|
7712
7712
|
async function Zh() {
|
|
7713
7713
|
try {
|
|
7714
|
-
|
|
7714
|
+
Ne("Synchronise Project with GitHub");
|
|
7715
7715
|
const e = await St("package.json");
|
|
7716
|
-
|
|
7716
|
+
We("Bump project version"), await _r(e), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]), Ve(`Project version ${e.version} synchronised with GitHub.`);
|
|
7717
7717
|
} catch (e) {
|
|
7718
7718
|
console.error("❌ Error synchronising project with GitHub.", e), process.exit(1);
|
|
7719
7719
|
}
|
|
7720
7720
|
}
|
|
7721
7721
|
function qh() {
|
|
7722
7722
|
try {
|
|
7723
|
-
|
|
7723
|
+
Ne("Test Project"), console.log(`
|
|
7724
7724
|
❌ Test project is not implemented. No 'vitest' command.
|
|
7725
7725
|
`);
|
|
7726
7726
|
} catch (e) {
|
|
@@ -7728,12 +7728,12 @@ function qh() {
|
|
|
7728
7728
|
}
|
|
7729
7729
|
}
|
|
7730
7730
|
async function Lh(e) {
|
|
7731
|
-
|
|
7731
|
+
We("2️⃣ Build project configuration");
|
|
7732
7732
|
const t = await St("config.json");
|
|
7733
7733
|
e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), await di("config.json", t), console.info("✅ Configuration built.");
|
|
7734
7734
|
}
|
|
7735
7735
|
async function _r(e, t = "./") {
|
|
7736
|
-
if (
|
|
7736
|
+
if (We("1️⃣ Bump project version"), e.version == null)
|
|
7737
7737
|
e.version = "0.0.001", console.warn(`⚠️ Project version initialised to ${e.version}.`), await di(`${t}package.json`, e);
|
|
7738
7738
|
else {
|
|
7739
7739
|
const i = e.version, s = e.version.split(".");
|
|
@@ -7743,14 +7743,14 @@ async function _r(e, t = "./") {
|
|
|
7743
7743
|
const Oh = ["critical", "high", "moderate", "low", "unknown"];
|
|
7744
7744
|
async function Hh() {
|
|
7745
7745
|
try {
|
|
7746
|
-
|
|
7746
|
+
Ne("Audit Dependencies"), await Nh(), await Ae("", "owasp-dependency-check", [
|
|
7747
7747
|
"--project",
|
|
7748
7748
|
"@datapos/datapos-development",
|
|
7749
7749
|
"--enableRetired",
|
|
7750
7750
|
"--nodePackageSkipDevDependencies",
|
|
7751
7751
|
"--nvdApiKey",
|
|
7752
7752
|
process.env.NVD_API_KEY ?? ""
|
|
7753
|
-
]),
|
|
7753
|
+
]), We("Insert OWASP Badge(s) into 'README.md'"), await Mh(), await Ae("", "npm", ["audit"]), Ve("Dependency auditing complete.");
|
|
7754
7754
|
} catch (e) {
|
|
7755
7755
|
console.error("❌ Error auditing dependencies.", e), process.exit(1);
|
|
7756
7756
|
}
|
|
@@ -7801,24 +7801,24 @@ async function Rh(e) {
|
|
|
7801
7801
|
}
|
|
7802
7802
|
async function Wh() {
|
|
7803
7803
|
try {
|
|
7804
|
-
|
|
7804
|
+
Ne("Check Dependencies"), await Ae("", "npm", ["outdated"], !0), await Ae("", "npm-check-updates", ["-i"]), Ve("Dependency checking complete.");
|
|
7805
7805
|
} catch (e) {
|
|
7806
7806
|
console.error("❌ Error checking dependencies.", e), process.exit(1);
|
|
7807
7807
|
}
|
|
7808
7808
|
}
|
|
7809
7809
|
async function Kh(e) {
|
|
7810
7810
|
try {
|
|
7811
|
-
|
|
7811
|
+
Ne("Document Dependencies");
|
|
7812
7812
|
const t = e.flatMap((i) => ["--allowed", i]);
|
|
7813
|
-
await
|
|
7813
|
+
await _e(
|
|
7814
7814
|
"license-report",
|
|
7815
7815
|
["--only=prod,peer", "--output=json", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7816
7816
|
"licenses.json"
|
|
7817
|
-
), await
|
|
7817
|
+
), await _e("license-report", ["--config", "license-report-config.json", "--only=prod,peer", "--output=markdown"], "licenses.md"), await _e("license-report-check", ["--source", "./licenses.json", "--output=table", ...t]), await _e(
|
|
7818
7818
|
"license-report-recursive",
|
|
7819
7819
|
["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7820
7820
|
"licenseTree.json"
|
|
7821
|
-
), await
|
|
7821
|
+
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), We("Insert licenses into 'README.md'"), await Dh(), Ve("Document dependencies complete.");
|
|
7822
7822
|
} catch (t) {
|
|
7823
7823
|
console.error("❌ Error documenting dependencies.", t), process.exit(1);
|
|
7824
7824
|
}
|
|
@@ -7841,24 +7841,24 @@ async function Dh() {
|
|
|
7841
7841
|
}
|
|
7842
7842
|
async function Gh() {
|
|
7843
7843
|
try {
|
|
7844
|
-
|
|
7844
|
+
Ne("Format Code"), await Ae("", "prettier", ["--write", "src/"]), Ve("Code formatting complete.");
|
|
7845
7845
|
} catch (e) {
|
|
7846
7846
|
console.error("❌ Error formatting code.", e), process.exit(1);
|
|
7847
7847
|
}
|
|
7848
7848
|
}
|
|
7849
7849
|
async function Jh() {
|
|
7850
7850
|
try {
|
|
7851
|
-
|
|
7851
|
+
Ne("Lint Code"), await Ae("", "eslint", ["."]), Ve("Code linting complete.");
|
|
7852
7852
|
} catch (e) {
|
|
7853
7853
|
console.error("❌ Error linting code.", e), process.exit(1);
|
|
7854
7854
|
}
|
|
7855
7855
|
}
|
|
7856
7856
|
async function Xh(e) {
|
|
7857
7857
|
try {
|
|
7858
|
-
|
|
7858
|
+
Ne("Update datapos Dependencies");
|
|
7859
7859
|
for (const t of e)
|
|
7860
|
-
await
|
|
7861
|
-
|
|
7860
|
+
await Ae("", "npm", ["install", `@datapos/datapos-${t}@latest`]);
|
|
7861
|
+
Ve("Updating datapos dependencies complete.");
|
|
7862
7862
|
} catch (t) {
|
|
7863
7863
|
console.error("❌ Error updating datapos dependencies.", t), process.exit(1);
|
|
7864
7864
|
}
|
|
@@ -11,7 +11,7 @@ declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: s
|
|
|
11
11
|
declare function uploadModuleConfigToDO(): Promise<void>;
|
|
12
12
|
declare function uploadModuleToR2(uploadDirectoryPath: string): Promise<void>;
|
|
13
13
|
export { buildConfig, buildConnectorConfig, buildContextConfig, buildPresenterConfig, buildPublicDirectoryIndex, sendDeploymentNotice, uploadDirectoryToR2, uploadModuleConfigToDO, uploadModuleToR2 };
|
|
14
|
-
export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './operations/
|
|
14
|
+
export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './operations/manageProject';
|
|
15
15
|
export { auditDependencies } from './operations/auditDependencies';
|
|
16
16
|
export { checkDependencies } from './operations/checkDependencies';
|
|
17
17
|
export { documentDependencies } from './operations/documentDependencies';
|
package/package.json
CHANGED
|
File without changes
|