@datapos/datapos-development 0.3.218 â 0.3.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datapos-development.es.js +416 -411
- package/package.json +1 -1
|
@@ -51,7 +51,7 @@ function Rr(e) {
|
|
|
51
51
|
function ai(e, t) {
|
|
52
52
|
return typeof t == "bigint" ? t.toString() : t;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function mi(e) {
|
|
55
55
|
return {
|
|
56
56
|
get value() {
|
|
57
57
|
{
|
|
@@ -61,10 +61,10 @@ function di(e) {
|
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function yi(e) {
|
|
65
65
|
return e == null;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function vi(e) {
|
|
68
68
|
const t = e.startsWith("^") ? 1 : 0, i = e.endsWith("$") ? e.length - 1 : e.length;
|
|
69
69
|
return e.slice(t, i);
|
|
70
70
|
}
|
|
@@ -78,13 +78,13 @@ function Dr(e, t) {
|
|
|
78
78
|
const o = i > a ? i : a, h = Number.parseInt(e.toFixed(o).replace(".", "")), d = Number.parseInt(t.toFixed(o).replace(".", ""));
|
|
79
79
|
return h % d / 10 ** o;
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const Ri = Symbol("evaluating");
|
|
82
82
|
function Z(e, t, i) {
|
|
83
83
|
let s;
|
|
84
84
|
Object.defineProperty(e, t, {
|
|
85
85
|
get() {
|
|
86
|
-
if (s !==
|
|
87
|
-
return s === void 0 && (s =
|
|
86
|
+
if (s !== Ri)
|
|
87
|
+
return s === void 0 && (s = Ri, s = i()), s;
|
|
88
88
|
},
|
|
89
89
|
set(a) {
|
|
90
90
|
Object.defineProperty(e, t, {
|
|
@@ -95,7 +95,7 @@ function Z(e, t, i) {
|
|
|
95
95
|
configurable: !0
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ge(e, t, i) {
|
|
99
99
|
Object.defineProperty(e, t, {
|
|
100
100
|
value: i,
|
|
101
101
|
writable: !0,
|
|
@@ -103,7 +103,7 @@ function Ke(e, t, i) {
|
|
|
103
103
|
configurable: !0
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function Je(...e) {
|
|
107
107
|
const t = {};
|
|
108
108
|
for (const i of e) {
|
|
109
109
|
const s = Object.getOwnPropertyDescriptors(i);
|
|
@@ -111,15 +111,15 @@ function Ge(...e) {
|
|
|
111
111
|
}
|
|
112
112
|
return Object.defineProperties({}, t);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Di(e) {
|
|
115
115
|
return JSON.stringify(e);
|
|
116
116
|
}
|
|
117
117
|
const bs = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
118
118
|
};
|
|
119
|
-
function
|
|
119
|
+
function Lt(e) {
|
|
120
120
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const zr = mi(() => {
|
|
123
123
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
124
124
|
return !1;
|
|
125
125
|
try {
|
|
@@ -130,18 +130,18 @@ const Vr = di(() => {
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
function st(e) {
|
|
133
|
-
if (
|
|
133
|
+
if (Lt(e) === !1)
|
|
134
134
|
return !1;
|
|
135
135
|
const t = e.constructor;
|
|
136
136
|
if (t === void 0)
|
|
137
137
|
return !0;
|
|
138
138
|
const i = t.prototype;
|
|
139
|
-
return !(
|
|
139
|
+
return !(Lt(i) === !1 || Object.prototype.hasOwnProperty.call(i, "isPrototypeOf") === !1);
|
|
140
140
|
}
|
|
141
141
|
function ks(e) {
|
|
142
142
|
return st(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const Vr = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
145
145
|
function rt(e) {
|
|
146
146
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
147
147
|
}
|
|
@@ -173,7 +173,7 @@ const jr = {
|
|
|
173
173
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
174
174
|
};
|
|
175
175
|
function Br(e, t) {
|
|
176
|
-
const i = e._zod.def, s =
|
|
176
|
+
const i = e._zod.def, s = Je(e._zod.def, {
|
|
177
177
|
get shape() {
|
|
178
178
|
const a = {};
|
|
179
179
|
for (const o in t) {
|
|
@@ -181,14 +181,14 @@ function Br(e, t) {
|
|
|
181
181
|
throw new Error(`Unrecognized key: "${o}"`);
|
|
182
182
|
t[o] && (a[o] = i.shape[o]);
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return Ge(this, "shape", a), a;
|
|
185
185
|
},
|
|
186
186
|
checks: []
|
|
187
187
|
});
|
|
188
188
|
return qe(e, s);
|
|
189
189
|
}
|
|
190
190
|
function $r(e, t) {
|
|
191
|
-
const i = e._zod.def, s =
|
|
191
|
+
const i = e._zod.def, s = Je(e._zod.def, {
|
|
192
192
|
get shape() {
|
|
193
193
|
const a = { ...e._zod.def.shape };
|
|
194
194
|
for (const o in t) {
|
|
@@ -196,7 +196,7 @@ function $r(e, t) {
|
|
|
196
196
|
throw new Error(`Unrecognized key: "${o}"`);
|
|
197
197
|
t[o] && delete a[o];
|
|
198
198
|
}
|
|
199
|
-
return
|
|
199
|
+
return Ge(this, "shape", a), a;
|
|
200
200
|
},
|
|
201
201
|
checks: []
|
|
202
202
|
});
|
|
@@ -208,10 +208,10 @@ function Ur(e, t) {
|
|
|
208
208
|
const i = e._zod.def.checks;
|
|
209
209
|
if (i && i.length > 0)
|
|
210
210
|
throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
211
|
-
const s =
|
|
211
|
+
const s = Je(e._zod.def, {
|
|
212
212
|
get shape() {
|
|
213
213
|
const a = { ...e._zod.def.shape, ...t };
|
|
214
|
-
return
|
|
214
|
+
return Ge(this, "shape", a), a;
|
|
215
215
|
},
|
|
216
216
|
checks: []
|
|
217
217
|
});
|
|
@@ -224,17 +224,17 @@ function Zr(e, t) {
|
|
|
224
224
|
...e._zod.def,
|
|
225
225
|
get shape() {
|
|
226
226
|
const s = { ...e._zod.def.shape, ...t };
|
|
227
|
-
return
|
|
227
|
+
return Ge(this, "shape", s), s;
|
|
228
228
|
},
|
|
229
229
|
checks: e._zod.def.checks
|
|
230
230
|
};
|
|
231
231
|
return qe(e, i);
|
|
232
232
|
}
|
|
233
233
|
function qr(e, t) {
|
|
234
|
-
const i =
|
|
234
|
+
const i = Je(e._zod.def, {
|
|
235
235
|
get shape() {
|
|
236
236
|
const s = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
237
|
-
return
|
|
237
|
+
return Ge(this, "shape", s), s;
|
|
238
238
|
},
|
|
239
239
|
get catchall() {
|
|
240
240
|
return t._zod.def.catchall;
|
|
@@ -245,7 +245,7 @@ function qr(e, t) {
|
|
|
245
245
|
return qe(e, i);
|
|
246
246
|
}
|
|
247
247
|
function Hr(e, t, i) {
|
|
248
|
-
const s =
|
|
248
|
+
const s = Je(t._zod.def, {
|
|
249
249
|
get shape() {
|
|
250
250
|
const a = t._zod.def.shape, o = { ...a };
|
|
251
251
|
if (i)
|
|
@@ -263,14 +263,14 @@ function Hr(e, t, i) {
|
|
|
263
263
|
type: "optional",
|
|
264
264
|
innerType: a[h]
|
|
265
265
|
}) : a[h];
|
|
266
|
-
return
|
|
266
|
+
return Ge(this, "shape", o), o;
|
|
267
267
|
},
|
|
268
268
|
checks: []
|
|
269
269
|
});
|
|
270
270
|
return qe(t, s);
|
|
271
271
|
}
|
|
272
272
|
function Wr(e, t, i) {
|
|
273
|
-
const s =
|
|
273
|
+
const s = Je(t._zod.def, {
|
|
274
274
|
get shape() {
|
|
275
275
|
const a = t._zod.def.shape, o = { ...a };
|
|
276
276
|
if (i)
|
|
@@ -288,7 +288,7 @@ function Wr(e, t, i) {
|
|
|
288
288
|
type: "nonoptional",
|
|
289
289
|
innerType: a[h]
|
|
290
290
|
});
|
|
291
|
-
return
|
|
291
|
+
return Ge(this, "shape", o), o;
|
|
292
292
|
},
|
|
293
293
|
checks: []
|
|
294
294
|
});
|
|
@@ -308,18 +308,18 @@ function tt(e, t) {
|
|
|
308
308
|
return (s = i).path ?? (s.path = []), i.path.unshift(e), i;
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function At(e) {
|
|
312
312
|
return typeof e == "string" ? e : e?.message;
|
|
313
313
|
}
|
|
314
314
|
function Ue(e, t, i) {
|
|
315
315
|
const s = { ...e, path: e.path ?? [] };
|
|
316
316
|
if (!e.message) {
|
|
317
|
-
const a =
|
|
317
|
+
const a = At(e.inst?._zod.def?.error?.(e)) ?? At(t?.error?.(e)) ?? At(i.customError?.(e)) ?? At(i.localeError?.(e)) ?? "Invalid input";
|
|
318
318
|
s.message = a;
|
|
319
319
|
}
|
|
320
320
|
return delete s.inst, delete s.continue, t?.reportInput || delete s.input, s;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function xi(e) {
|
|
323
323
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
324
324
|
}
|
|
325
325
|
function yt(...e) {
|
|
@@ -370,7 +370,7 @@ function Gr(e, t = (i) => i.message) {
|
|
|
370
370
|
};
|
|
371
371
|
return s(e), i;
|
|
372
372
|
}
|
|
373
|
-
const
|
|
373
|
+
const gi = (e) => (t, i, s, a) => {
|
|
374
374
|
const o = s ? Object.assign(s, { async: !1 }) : { async: !1 }, h = t._zod.run({ value: i, issues: [] }, o);
|
|
375
375
|
if (h instanceof Promise)
|
|
376
376
|
throw new it();
|
|
@@ -379,7 +379,7 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
379
379
|
throw bs(d, a?.callee), d;
|
|
380
380
|
}
|
|
381
381
|
return h.value;
|
|
382
|
-
},
|
|
382
|
+
}, bi = (e) => async (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) {
|
|
@@ -387,7 +387,7 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
387
387
|
throw bs(d, a?.callee), d;
|
|
388
388
|
}
|
|
389
389
|
return h.value;
|
|
390
|
-
},
|
|
390
|
+
}, Bt = (e) => (t, i, s) => {
|
|
391
391
|
const a = s ? { ...s, async: !1 } : { async: !1 }, o = t._zod.run({ value: i, issues: [] }, a);
|
|
392
392
|
if (o instanceof Promise)
|
|
393
393
|
throw new it();
|
|
@@ -395,26 +395,26 @@ const xi = (e) => (t, i, s, a) => {
|
|
|
395
395
|
success: !1,
|
|
396
396
|
error: new (e ?? Ss)(o.issues.map((h) => Ue(h, a, $e())))
|
|
397
397
|
} : { success: !0, data: o.value };
|
|
398
|
-
}, Jr = /* @__PURE__ */
|
|
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
403
|
error: new e(o.issues.map((h) => Ue(h, a, $e())))
|
|
404
404
|
} : { success: !0, data: o.value };
|
|
405
|
-
}, Xr = /* @__PURE__ */
|
|
406
|
-
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
407
|
-
return xi(e)(t, i, a);
|
|
408
|
-
}, Yr = (e) => (t, i, s) => xi(e)(t, i, s), ea = (e) => async (t, i, s) => {
|
|
405
|
+
}, Xr = /* @__PURE__ */ $t(Ts), Qr = (e) => (t, i, s) => {
|
|
409
406
|
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
410
407
|
return gi(e)(t, i, a);
|
|
411
|
-
},
|
|
408
|
+
}, Yr = (e) => (t, i, s) => gi(e)(t, i, s), ea = (e) => async (t, i, s) => {
|
|
412
409
|
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
413
|
-
return
|
|
414
|
-
},
|
|
410
|
+
return bi(e)(t, i, a);
|
|
411
|
+
}, ta = (e) => async (t, i, s) => bi(e)(t, i, s), ia = (e) => (t, i, s) => {
|
|
415
412
|
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
416
413
|
return Bt(e)(t, i, a);
|
|
417
|
-
},
|
|
414
|
+
}, sa = (e) => (t, i, s) => Bt(e)(t, i, s), ra = (e) => async (t, i, s) => {
|
|
415
|
+
const a = s ? Object.assign(s, { direction: "backward" }) : { direction: "backward" };
|
|
416
|
+
return $t(e)(t, i, a);
|
|
417
|
+
}, aa = (e) => async (t, i, s) => $t(e)(t, i, s), na = /^[cC][^\s-]{8,}$/, oa = /^[0-9a-z]+$/, ua = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ca = /^[0-9a-vA-V]{20}$/, ha = /^[A-Za-z0-9]{27}$/, pa = /^[a-zA-Z0-9_-]{21}$/, la = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, fa = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, zi = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, da = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ma = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
418
418
|
function ya() {
|
|
419
419
|
return new RegExp(ma, "u");
|
|
420
420
|
}
|
|
@@ -553,7 +553,7 @@ const Aa = (e) => {
|
|
|
553
553
|
var i;
|
|
554
554
|
fe.init(e, t), (i = e._zod.def).when ?? (i.when = (s) => {
|
|
555
555
|
const a = s.value;
|
|
556
|
-
return !
|
|
556
|
+
return !yi(a) && a.length !== void 0;
|
|
557
557
|
}), e._zod.onattach.push((s) => {
|
|
558
558
|
const a = s._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
559
559
|
t.maximum < a && (s._zod.bag.maximum = t.maximum);
|
|
@@ -561,7 +561,7 @@ const Aa = (e) => {
|
|
|
561
561
|
const a = s.value;
|
|
562
562
|
if (a.length <= t.maximum)
|
|
563
563
|
return;
|
|
564
|
-
const o =
|
|
564
|
+
const o = xi(a);
|
|
565
565
|
s.issues.push({
|
|
566
566
|
origin: o,
|
|
567
567
|
code: "too_big",
|
|
@@ -576,7 +576,7 @@ const Aa = (e) => {
|
|
|
576
576
|
var i;
|
|
577
577
|
fe.init(e, t), (i = e._zod.def).when ?? (i.when = (s) => {
|
|
578
578
|
const a = s.value;
|
|
579
|
-
return !
|
|
579
|
+
return !yi(a) && a.length !== void 0;
|
|
580
580
|
}), e._zod.onattach.push((s) => {
|
|
581
581
|
const a = s._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
582
582
|
t.minimum > a && (s._zod.bag.minimum = t.minimum);
|
|
@@ -584,7 +584,7 @@ const Aa = (e) => {
|
|
|
584
584
|
const a = s.value;
|
|
585
585
|
if (a.length >= t.minimum)
|
|
586
586
|
return;
|
|
587
|
-
const o =
|
|
587
|
+
const o = xi(a);
|
|
588
588
|
s.issues.push({
|
|
589
589
|
origin: o,
|
|
590
590
|
code: "too_small",
|
|
@@ -595,11 +595,11 @@ const Aa = (e) => {
|
|
|
595
595
|
continue: !t.abort
|
|
596
596
|
});
|
|
597
597
|
};
|
|
598
|
-
}),
|
|
598
|
+
}), za = /* @__PURE__ */ w("$ZodCheckLengthEquals", (e, t) => {
|
|
599
599
|
var i;
|
|
600
600
|
fe.init(e, t), (i = e._zod.def).when ?? (i.when = (s) => {
|
|
601
601
|
const a = s.value;
|
|
602
|
-
return !
|
|
602
|
+
return !yi(a) && a.length !== void 0;
|
|
603
603
|
}), e._zod.onattach.push((s) => {
|
|
604
604
|
const a = s._zod.bag;
|
|
605
605
|
a.minimum = t.length, a.maximum = t.length, a.length = t.length;
|
|
@@ -607,7 +607,7 @@ const Aa = (e) => {
|
|
|
607
607
|
const a = s.value, o = a.length;
|
|
608
608
|
if (o === t.length)
|
|
609
609
|
return;
|
|
610
|
-
const h =
|
|
610
|
+
const h = xi(a), d = o > t.length;
|
|
611
611
|
s.issues.push({
|
|
612
612
|
origin: h,
|
|
613
613
|
...d ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
@@ -618,7 +618,7 @@ const Aa = (e) => {
|
|
|
618
618
|
continue: !t.abort
|
|
619
619
|
});
|
|
620
620
|
};
|
|
621
|
-
}),
|
|
621
|
+
}), Ut = /* @__PURE__ */ w("$ZodCheckStringFormat", (e, t) => {
|
|
622
622
|
var i, s;
|
|
623
623
|
fe.init(e, t), e._zod.onattach.push((a) => {
|
|
624
624
|
const o = a._zod.bag;
|
|
@@ -635,8 +635,8 @@ const Aa = (e) => {
|
|
|
635
635
|
});
|
|
636
636
|
}) : (s = e._zod).check ?? (s.check = () => {
|
|
637
637
|
});
|
|
638
|
-
}),
|
|
639
|
-
|
|
638
|
+
}), Va = /* @__PURE__ */ w("$ZodCheckRegex", (e, t) => {
|
|
639
|
+
Ut.init(e, t), e._zod.check = (i) => {
|
|
640
640
|
t.pattern.lastIndex = 0, !t.pattern.test(i.value) && i.issues.push({
|
|
641
641
|
origin: "string",
|
|
642
642
|
code: "invalid_format",
|
|
@@ -648,9 +648,9 @@ const Aa = (e) => {
|
|
|
648
648
|
});
|
|
649
649
|
};
|
|
650
650
|
}), Fa = /* @__PURE__ */ w("$ZodCheckLowerCase", (e, t) => {
|
|
651
|
-
t.pattern ?? (t.pattern = Na),
|
|
651
|
+
t.pattern ?? (t.pattern = Na), Ut.init(e, t);
|
|
652
652
|
}), ja = /* @__PURE__ */ w("$ZodCheckUpperCase", (e, t) => {
|
|
653
|
-
t.pattern ?? (t.pattern = La),
|
|
653
|
+
t.pattern ?? (t.pattern = La), Ut.init(e, t);
|
|
654
654
|
}), Ba = /* @__PURE__ */ w("$ZodCheckIncludes", (e, t) => {
|
|
655
655
|
fe.init(e, t);
|
|
656
656
|
const i = rt(t.includes), s = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${i}` : i);
|
|
@@ -808,7 +808,7 @@ const Ha = {
|
|
|
808
808
|
vendor: "zod",
|
|
809
809
|
version: 1
|
|
810
810
|
};
|
|
811
|
-
}),
|
|
811
|
+
}), ki = /* @__PURE__ */ w("$ZodString", (e, t) => {
|
|
812
812
|
Q.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Aa(e._zod.bag), e._zod.parse = (i, s) => {
|
|
813
813
|
if (t.coerce)
|
|
814
814
|
try {
|
|
@@ -823,7 +823,7 @@ const Ha = {
|
|
|
823
823
|
}), i;
|
|
824
824
|
};
|
|
825
825
|
}), K = /* @__PURE__ */ w("$ZodStringFormat", (e, t) => {
|
|
826
|
-
|
|
826
|
+
Ut.init(e, t), ki.init(e, t);
|
|
827
827
|
}), Wa = /* @__PURE__ */ w("$ZodGUID", (e, t) => {
|
|
828
828
|
t.pattern ?? (t.pattern = fa), K.init(e, t);
|
|
829
829
|
}), Ka = /* @__PURE__ */ w("$ZodUUID", (e, t) => {
|
|
@@ -840,9 +840,9 @@ const Ha = {
|
|
|
840
840
|
}[t.version];
|
|
841
841
|
if (i === void 0)
|
|
842
842
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
843
|
-
t.pattern ?? (t.pattern =
|
|
843
|
+
t.pattern ?? (t.pattern = zi(i));
|
|
844
844
|
} else
|
|
845
|
-
t.pattern ?? (t.pattern =
|
|
845
|
+
t.pattern ?? (t.pattern = zi());
|
|
846
846
|
K.init(e, t);
|
|
847
847
|
}), Ga = /* @__PURE__ */ w("$ZodEmail", (e, t) => {
|
|
848
848
|
t.pattern ?? (t.pattern = da), K.init(e, t);
|
|
@@ -1090,7 +1090,7 @@ const Sn = /* @__PURE__ */ w("$ZodArray", (e, t) => {
|
|
|
1090
1090
|
return o.length ? Promise.all(o).then(() => i) : i;
|
|
1091
1091
|
};
|
|
1092
1092
|
});
|
|
1093
|
-
function
|
|
1093
|
+
function Ot(e, t, i, s) {
|
|
1094
1094
|
e.issues.length && t.issues.push(...tt(i, e.issues)), e.value === void 0 ? i in s && (t.value[i] = void 0) : t.value[i] = e.value;
|
|
1095
1095
|
}
|
|
1096
1096
|
function Os(e) {
|
|
@@ -1117,7 +1117,7 @@ function Ms(e, t, i, s, a, o) {
|
|
|
1117
1117
|
continue;
|
|
1118
1118
|
}
|
|
1119
1119
|
const P = y.run({ value: t[S], issues: [] }, s);
|
|
1120
|
-
P instanceof Promise ? e.push(P.then((M) =>
|
|
1120
|
+
P instanceof Promise ? e.push(P.then((M) => Ot(M, i, S, t))) : Ot(P, i, S, t);
|
|
1121
1121
|
}
|
|
1122
1122
|
return h.length && i.issues.push({
|
|
1123
1123
|
code: "unrecognized_keys",
|
|
@@ -1138,7 +1138,7 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
});
|
|
1140
1140
|
}
|
|
1141
|
-
const i =
|
|
1141
|
+
const i = mi(() => Os(t));
|
|
1142
1142
|
Z(e._zod, "propValues", () => {
|
|
1143
1143
|
const h = t.shape, d = {};
|
|
1144
1144
|
for (const y in h) {
|
|
@@ -1151,7 +1151,7 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
return d;
|
|
1153
1153
|
});
|
|
1154
|
-
const s =
|
|
1154
|
+
const s = Lt, a = t.catchall;
|
|
1155
1155
|
let o;
|
|
1156
1156
|
e._zod.parse = (h, d) => {
|
|
1157
1157
|
o ?? (o = i.value);
|
|
@@ -1167,15 +1167,15 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1167
1167
|
const u = [], S = o.shape;
|
|
1168
1168
|
for (const P of o.keys) {
|
|
1169
1169
|
const M = S[P]._zod.run({ value: y[P], issues: [] }, d);
|
|
1170
|
-
M instanceof Promise ? u.push(M.then((U) =>
|
|
1170
|
+
M instanceof Promise ? u.push(M.then((U) => Ot(U, h, P, y))) : Ot(M, h, P, y);
|
|
1171
1171
|
}
|
|
1172
1172
|
return a ? Ms(u, y, h, d, i.value, e) : u.length ? Promise.all(u).then(() => h) : h;
|
|
1173
1173
|
};
|
|
1174
1174
|
}), _n = /* @__PURE__ */ w("$ZodObjectJIT", (e, t) => {
|
|
1175
1175
|
Tn.init(e, t);
|
|
1176
|
-
const i = e._zod.parse, s =
|
|
1176
|
+
const i = e._zod.parse, s = mi(() => Os(t)), a = (P) => {
|
|
1177
1177
|
const M = new qa(["shape", "payload", "ctx"]), U = s.value, he = (de) => {
|
|
1178
|
-
const ge =
|
|
1178
|
+
const ge = Di(de);
|
|
1179
1179
|
return `shape[${ge}]._zod.run({ value: input[${ge}], issues: [] }, ctx)`;
|
|
1180
1180
|
};
|
|
1181
1181
|
M.write("const input = payload.value;");
|
|
@@ -1185,22 +1185,22 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1185
1185
|
Ne[de] = `key_${R++}`;
|
|
1186
1186
|
M.write("const newResult = {};");
|
|
1187
1187
|
for (const de of U.keys) {
|
|
1188
|
-
const ge = Ne[de],
|
|
1188
|
+
const ge = Ne[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 => ({
|
|
1192
1192
|
...iss,
|
|
1193
|
-
path: iss.path ? [${
|
|
1193
|
+
path: iss.path ? [${Ke}, ...iss.path] : [${Ke}]
|
|
1194
1194
|
})));
|
|
1195
1195
|
}
|
|
1196
1196
|
|
|
1197
1197
|
|
|
1198
1198
|
if (${ge}.value === undefined) {
|
|
1199
|
-
if (${
|
|
1200
|
-
newResult[${
|
|
1199
|
+
if (${Ke} in input) {
|
|
1200
|
+
newResult[${Ke}] = undefined;
|
|
1201
1201
|
}
|
|
1202
1202
|
} else {
|
|
1203
|
-
newResult[${
|
|
1203
|
+
newResult[${Ke}] = ${ge}.value;
|
|
1204
1204
|
}
|
|
1205
1205
|
|
|
1206
1206
|
`);
|
|
@@ -1210,7 +1210,7 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1210
1210
|
return (de, ge) => re(P, de, ge);
|
|
1211
1211
|
};
|
|
1212
1212
|
let o;
|
|
1213
|
-
const h =
|
|
1213
|
+
const h = Lt, d = !gs.jitless, y = d && zr.value, u = t.catchall;
|
|
1214
1214
|
let S;
|
|
1215
1215
|
e._zod.parse = (P, M) => {
|
|
1216
1216
|
S ?? (S = s.value);
|
|
@@ -1223,7 +1223,7 @@ const Tn = /* @__PURE__ */ w("$ZodObject", (e, t) => {
|
|
|
1223
1223
|
}), P);
|
|
1224
1224
|
};
|
|
1225
1225
|
});
|
|
1226
|
-
function
|
|
1226
|
+
function Fi(e, t, i, s) {
|
|
1227
1227
|
for (const o of e)
|
|
1228
1228
|
if (o.issues.length === 0)
|
|
1229
1229
|
return t.value = o.value, t;
|
|
@@ -1242,7 +1242,7 @@ const Pn = /* @__PURE__ */ w("$ZodUnion", (e, t) => {
|
|
|
1242
1242
|
}), Z(e._zod, "pattern", () => {
|
|
1243
1243
|
if (t.options.every((a) => a._zod.pattern)) {
|
|
1244
1244
|
const a = t.options.map((o) => o._zod.pattern);
|
|
1245
|
-
return new RegExp(`^(${a.map((o) =>
|
|
1245
|
+
return new RegExp(`^(${a.map((o) => vi(o.source)).join("|")})$`);
|
|
1246
1246
|
}
|
|
1247
1247
|
});
|
|
1248
1248
|
const i = t.options.length === 1, s = t.options[0]._zod.run;
|
|
@@ -1264,12 +1264,12 @@ const Pn = /* @__PURE__ */ w("$ZodUnion", (e, t) => {
|
|
|
1264
1264
|
d.push(u);
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
return h ? Promise.all(d).then((y) =>
|
|
1267
|
+
return h ? Promise.all(d).then((y) => Fi(y, a, e, o)) : Fi(d, a, e, o);
|
|
1268
1268
|
};
|
|
1269
1269
|
}), An = /* @__PURE__ */ w("$ZodIntersection", (e, t) => {
|
|
1270
1270
|
Q.init(e, t), e._zod.parse = (i, s) => {
|
|
1271
1271
|
const a = i.value, o = t.left._zod.run({ value: a, issues: [] }, s), h = t.right._zod.run({ value: a, issues: [] }, s);
|
|
1272
|
-
return o instanceof Promise || h instanceof Promise ? Promise.all([o, h]).then(([d, y]) =>
|
|
1272
|
+
return o instanceof Promise || h instanceof Promise ? Promise.all([o, h]).then(([d, y]) => ji(i, d, y)) : ji(i, o, h);
|
|
1273
1273
|
};
|
|
1274
1274
|
});
|
|
1275
1275
|
function ni(e, t) {
|
|
@@ -1307,7 +1307,7 @@ function ni(e, t) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
return { valid: !1, mergeErrorPath: [] };
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1310
|
+
function ji(e, t, i) {
|
|
1311
1311
|
if (t.issues.length && e.issues.push(...t.issues), i.issues.length && e.issues.push(...i.issues), et(e))
|
|
1312
1312
|
return e;
|
|
1313
1313
|
const s = ni(t.value, i.value);
|
|
@@ -1375,7 +1375,7 @@ const Cn = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
1375
1375
|
}), En = /* @__PURE__ */ w("$ZodEnum", (e, t) => {
|
|
1376
1376
|
Q.init(e, t);
|
|
1377
1377
|
const i = Rr(t.entries), s = new Set(i);
|
|
1378
|
-
e._zod.values = s, e._zod.pattern = new RegExp(`^(${i.filter((a) =>
|
|
1378
|
+
e._zod.values = s, e._zod.pattern = new RegExp(`^(${i.filter((a) => Vr.has(typeof a)).map((a) => typeof a == "string" ? rt(a) : a.toString()).join("|")})$`), e._zod.parse = (a, o) => {
|
|
1379
1379
|
const h = a.value;
|
|
1380
1380
|
return s.has(h) || a.issues.push({
|
|
1381
1381
|
code: "invalid_value",
|
|
@@ -1408,24 +1408,24 @@ const Cn = /* @__PURE__ */ w("$ZodRecord", (e, t) => {
|
|
|
1408
1408
|
return i.value = a, i;
|
|
1409
1409
|
};
|
|
1410
1410
|
});
|
|
1411
|
-
function
|
|
1411
|
+
function Bi(e, t) {
|
|
1412
1412
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1413
1413
|
}
|
|
1414
1414
|
const Ln = /* @__PURE__ */ w("$ZodOptional", (e, t) => {
|
|
1415
1415
|
Q.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), Z(e._zod, "pattern", () => {
|
|
1416
1416
|
const i = t.innerType._zod.pattern;
|
|
1417
|
-
return i ? new RegExp(`^(${
|
|
1417
|
+
return i ? new RegExp(`^(${vi(i.source)})?$`) : void 0;
|
|
1418
1418
|
}), e._zod.parse = (i, s) => {
|
|
1419
1419
|
if (t.innerType._zod.optin === "optional") {
|
|
1420
1420
|
const a = t.innerType._zod.run(i, s);
|
|
1421
|
-
return a instanceof Promise ? a.then((o) =>
|
|
1421
|
+
return a instanceof Promise ? a.then((o) => Bi(o, i.value)) : Bi(a, i.value);
|
|
1422
1422
|
}
|
|
1423
1423
|
return i.value === void 0 ? i : t.innerType._zod.run(i, s);
|
|
1424
1424
|
};
|
|
1425
1425
|
}), On = /* @__PURE__ */ w("$ZodNullable", (e, t) => {
|
|
1426
1426
|
Q.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "pattern", () => {
|
|
1427
1427
|
const i = t.innerType._zod.pattern;
|
|
1428
|
-
return i ? new RegExp(`^(${
|
|
1428
|
+
return i ? new RegExp(`^(${vi(i.source)}|null)$`) : void 0;
|
|
1429
1429
|
}), Z(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (i, s) => i.value === null ? i : t.innerType._zod.run(i, s);
|
|
1430
1430
|
}), Mn = /* @__PURE__ */ w("$ZodDefault", (e, t) => {
|
|
1431
1431
|
Q.init(e, t), e._zod.optin = "optional", Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (i, s) => {
|
|
@@ -1434,10 +1434,10 @@ const Ln = /* @__PURE__ */ w("$ZodOptional", (e, t) => {
|
|
|
1434
1434
|
if (i.value === void 0)
|
|
1435
1435
|
return i.value = t.defaultValue, i;
|
|
1436
1436
|
const a = t.innerType._zod.run(i, s);
|
|
1437
|
-
return a instanceof Promise ? a.then((o) =>
|
|
1437
|
+
return a instanceof Promise ? a.then((o) => $i(o, t)) : $i(a, t);
|
|
1438
1438
|
};
|
|
1439
1439
|
});
|
|
1440
|
-
function
|
|
1440
|
+
function $i(e, t) {
|
|
1441
1441
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1442
1442
|
}
|
|
1443
1443
|
const Rn = /* @__PURE__ */ w("$ZodPrefault", (e, t) => {
|
|
@@ -1448,10 +1448,10 @@ const Rn = /* @__PURE__ */ w("$ZodPrefault", (e, t) => {
|
|
|
1448
1448
|
return i ? new Set([...i].filter((s) => s !== void 0)) : void 0;
|
|
1449
1449
|
}), e._zod.parse = (i, s) => {
|
|
1450
1450
|
const a = t.innerType._zod.run(i, s);
|
|
1451
|
-
return a instanceof Promise ? a.then((o) =>
|
|
1451
|
+
return a instanceof Promise ? a.then((o) => Ui(o, e)) : Ui(a, e);
|
|
1452
1452
|
};
|
|
1453
1453
|
});
|
|
1454
|
-
function
|
|
1454
|
+
function Ui(e, t) {
|
|
1455
1455
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1456
1456
|
code: "invalid_type",
|
|
1457
1457
|
expected: "nonoptional",
|
|
@@ -1459,7 +1459,7 @@ function $i(e, t) {
|
|
|
1459
1459
|
inst: t
|
|
1460
1460
|
}), e;
|
|
1461
1461
|
}
|
|
1462
|
-
const
|
|
1462
|
+
const zn = /* @__PURE__ */ w("$ZodCatch", (e, t) => {
|
|
1463
1463
|
Q.init(e, t), Z(e._zod, "optin", () => t.innerType._zod.optin), Z(e._zod, "optout", () => t.innerType._zod.optout), Z(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (i, s) => {
|
|
1464
1464
|
if (s.direction === "backward")
|
|
1465
1465
|
return t.innerType._zod.run(i, s);
|
|
@@ -1478,17 +1478,17 @@ const Vn = /* @__PURE__ */ w("$ZodCatch", (e, t) => {
|
|
|
1478
1478
|
input: i.value
|
|
1479
1479
|
}), i.issues = []), i);
|
|
1480
1480
|
};
|
|
1481
|
-
}),
|
|
1481
|
+
}), Vn = /* @__PURE__ */ w("$ZodPipe", (e, t) => {
|
|
1482
1482
|
Q.init(e, t), Z(e._zod, "values", () => t.in._zod.values), Z(e._zod, "optin", () => t.in._zod.optin), Z(e._zod, "optout", () => t.out._zod.optout), Z(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (i, s) => {
|
|
1483
1483
|
if (s.direction === "backward") {
|
|
1484
1484
|
const o = t.out._zod.run(i, s);
|
|
1485
|
-
return o instanceof Promise ? o.then((h) =>
|
|
1485
|
+
return o instanceof Promise ? o.then((h) => Ct(h, t.in, s)) : Ct(o, t.in, s);
|
|
1486
1486
|
}
|
|
1487
1487
|
const a = t.in._zod.run(i, s);
|
|
1488
|
-
return a instanceof Promise ? a.then((o) =>
|
|
1488
|
+
return a instanceof Promise ? a.then((o) => Ct(o, t.out, s)) : Ct(a, t.out, s);
|
|
1489
1489
|
};
|
|
1490
1490
|
});
|
|
1491
|
-
function
|
|
1491
|
+
function Ct(e, t, i) {
|
|
1492
1492
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, i);
|
|
1493
1493
|
}
|
|
1494
1494
|
const Fn = /* @__PURE__ */ w("$ZodReadonly", (e, t) => {
|
|
@@ -1496,21 +1496,21 @@ const Fn = /* @__PURE__ */ w("$ZodReadonly", (e, t) => {
|
|
|
1496
1496
|
if (s.direction === "backward")
|
|
1497
1497
|
return t.innerType._zod.run(i, s);
|
|
1498
1498
|
const a = t.innerType._zod.run(i, s);
|
|
1499
|
-
return a instanceof Promise ? a.then(
|
|
1499
|
+
return a instanceof Promise ? a.then(Zi) : Zi(a);
|
|
1500
1500
|
};
|
|
1501
1501
|
});
|
|
1502
|
-
function
|
|
1502
|
+
function Zi(e) {
|
|
1503
1503
|
return e.value = Object.freeze(e.value), e;
|
|
1504
1504
|
}
|
|
1505
1505
|
const jn = /* @__PURE__ */ w("$ZodCustom", (e, t) => {
|
|
1506
1506
|
fe.init(e, t), Q.init(e, t), e._zod.parse = (i, s) => i, e._zod.check = (i) => {
|
|
1507
1507
|
const s = i.value, a = t.fn(s);
|
|
1508
1508
|
if (a instanceof Promise)
|
|
1509
|
-
return a.then((o) =>
|
|
1510
|
-
|
|
1509
|
+
return a.then((o) => qi(o, i, s, e));
|
|
1510
|
+
qi(a, i, s, e);
|
|
1511
1511
|
};
|
|
1512
1512
|
});
|
|
1513
|
-
function
|
|
1513
|
+
function qi(e, t, i, s) {
|
|
1514
1514
|
if (!e) {
|
|
1515
1515
|
const a = {
|
|
1516
1516
|
code: "custom",
|
|
@@ -1562,7 +1562,7 @@ class Bn {
|
|
|
1562
1562
|
function $n() {
|
|
1563
1563
|
return new Bn();
|
|
1564
1564
|
}
|
|
1565
|
-
const
|
|
1565
|
+
const Et = /* @__PURE__ */ $n();
|
|
1566
1566
|
function Un(e, t) {
|
|
1567
1567
|
return new e({
|
|
1568
1568
|
type: "string",
|
|
@@ -1578,7 +1578,7 @@ function Zn(e, t) {
|
|
|
1578
1578
|
...O(t)
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function Hi(e, t) {
|
|
1582
1582
|
return new e({
|
|
1583
1583
|
type: "string",
|
|
1584
1584
|
format: "guid",
|
|
@@ -1839,7 +1839,7 @@ function bo(e, t) {
|
|
|
1839
1839
|
...O(t)
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function Wi(e, t) {
|
|
1843
1843
|
return new Es({
|
|
1844
1844
|
check: "less_than",
|
|
1845
1845
|
...O(t),
|
|
@@ -1855,7 +1855,7 @@ function Qt(e, t) {
|
|
|
1855
1855
|
inclusive: !0
|
|
1856
1856
|
});
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1858
|
+
function Ki(e, t) {
|
|
1859
1859
|
return new Is({
|
|
1860
1860
|
check: "greater_than",
|
|
1861
1861
|
...O(t),
|
|
@@ -1871,7 +1871,7 @@ function Yt(e, t) {
|
|
|
1871
1871
|
inclusive: !0
|
|
1872
1872
|
});
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function Gi(e, t) {
|
|
1875
1875
|
return new Oa({
|
|
1876
1876
|
check: "multiple_of",
|
|
1877
1877
|
...O(t),
|
|
@@ -1885,7 +1885,7 @@ function Rs(e, t) {
|
|
|
1885
1885
|
maximum: e
|
|
1886
1886
|
});
|
|
1887
1887
|
}
|
|
1888
|
-
function
|
|
1888
|
+
function Mt(e, t) {
|
|
1889
1889
|
return new Da({
|
|
1890
1890
|
check: "min_length",
|
|
1891
1891
|
...O(t),
|
|
@@ -1893,14 +1893,14 @@ function Ot(e, t) {
|
|
|
1893
1893
|
});
|
|
1894
1894
|
}
|
|
1895
1895
|
function Ds(e, t) {
|
|
1896
|
-
return new
|
|
1896
|
+
return new za({
|
|
1897
1897
|
check: "length_equals",
|
|
1898
1898
|
...O(t),
|
|
1899
1899
|
length: e
|
|
1900
1900
|
});
|
|
1901
1901
|
}
|
|
1902
1902
|
function ko(e, t) {
|
|
1903
|
-
return new
|
|
1903
|
+
return new Va({
|
|
1904
1904
|
check: "string_format",
|
|
1905
1905
|
format: "regex",
|
|
1906
1906
|
...O(t),
|
|
@@ -2005,11 +2005,11 @@ const Ro = /* @__PURE__ */ w("ZodISODateTime", (e, t) => {
|
|
|
2005
2005
|
function Do(e) {
|
|
2006
2006
|
return po(Ro, e);
|
|
2007
2007
|
}
|
|
2008
|
-
const
|
|
2008
|
+
const zo = /* @__PURE__ */ w("ZodISODate", (e, t) => {
|
|
2009
2009
|
nn.init(e, t), Y.init(e, t);
|
|
2010
2010
|
});
|
|
2011
|
-
function
|
|
2012
|
-
return lo(
|
|
2011
|
+
function Vo(e) {
|
|
2012
|
+
return lo(zo, e);
|
|
2013
2013
|
}
|
|
2014
2014
|
const Fo = /* @__PURE__ */ w("ZodISOTime", (e, t) => {
|
|
2015
2015
|
on.init(e, t), Y.init(e, t);
|
|
@@ -2054,41 +2054,41 @@ const Uo = (e, t) => {
|
|
|
2054
2054
|
});
|
|
2055
2055
|
}, Se = w("ZodError", Uo, {
|
|
2056
2056
|
Parent: Error
|
|
2057
|
-
}), Zo = /* @__PURE__ */
|
|
2057
|
+
}), Zo = /* @__PURE__ */ gi(Se), qo = /* @__PURE__ */ bi(Se), Ho = /* @__PURE__ */ Bt(Se), Wo = /* @__PURE__ */ $t(Se), Ko = /* @__PURE__ */ Qr(Se), Go = /* @__PURE__ */ Yr(Se), Jo = /* @__PURE__ */ ea(Se), Xo = /* @__PURE__ */ ta(Se), Qo = /* @__PURE__ */ ia(Se), Yo = /* @__PURE__ */ sa(Se), eu = /* @__PURE__ */ ra(Se), tu = /* @__PURE__ */ aa(Se), ee = /* @__PURE__ */ w("ZodType", (e, t) => (Q.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...i) => e.clone(Je(t, {
|
|
2058
2058
|
checks: [
|
|
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) => 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 = () =>
|
|
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
|
-
return
|
|
2064
|
+
return Et.add(s, { description: i }), s;
|
|
2065
2065
|
}, Object.defineProperty(e, "description", {
|
|
2066
2066
|
get() {
|
|
2067
|
-
return
|
|
2067
|
+
return Et.get(e)?.description;
|
|
2068
2068
|
},
|
|
2069
2069
|
configurable: !0
|
|
2070
2070
|
}), e.meta = (...i) => {
|
|
2071
2071
|
if (i.length === 0)
|
|
2072
|
-
return
|
|
2072
|
+
return Et.get(e);
|
|
2073
2073
|
const s = e.clone();
|
|
2074
|
-
return
|
|
2075
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2076
|
-
|
|
2074
|
+
return Et.add(s, i[0]), s;
|
|
2075
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), zs = /* @__PURE__ */ w("_ZodString", (e, t) => {
|
|
2076
|
+
ki.init(e, t), ee.init(e, t);
|
|
2077
2077
|
const i = e._zod.bag;
|
|
2078
|
-
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...s) => e.check(ko(...s)), e.includes = (...s) => e.check(To(...s)), e.startsWith = (...s) => e.check(_o(...s)), e.endsWith = (...s) => e.check(Po(...s)), e.min = (...s) => e.check(
|
|
2078
|
+
e.format = i.format ?? null, e.minLength = i.minimum ?? null, e.maxLength = i.maximum ?? null, e.regex = (...s) => e.check(ko(...s)), e.includes = (...s) => e.check(To(...s)), e.startsWith = (...s) => e.check(_o(...s)), e.endsWith = (...s) => e.check(Po(...s)), e.min = (...s) => e.check(Mt(...s)), e.max = (...s) => e.check(Rs(...s)), e.length = (...s) => e.check(Ds(...s)), e.nonempty = (...s) => e.check(Mt(1, ...s)), e.lowercase = (s) => e.check(wo(s)), e.uppercase = (s) => e.check(So(s)), e.trim = () => e.check(Co()), e.normalize = (...s) => e.check(Ao(...s)), e.toLowerCase = () => e.check(Eo()), e.toUpperCase = () => e.check(Io());
|
|
2079
2079
|
}), iu = /* @__PURE__ */ w("ZodString", (e, t) => {
|
|
2080
|
-
|
|
2080
|
+
ki.init(e, t), zs.init(e, t), e.email = (i) => e.check(Zn(su, i)), e.url = (i) => e.check(Gn(ru, i)), e.jwt = (i) => e.check(ho(gu, i)), e.emoji = (i) => e.check(Jn(au, i)), e.guid = (i) => e.check(Hi(Ji, i)), e.uuid = (i) => e.check(qn(It, i)), e.uuidv4 = (i) => e.check(Hn(It, i)), e.uuidv6 = (i) => e.check(Wn(It, i)), e.uuidv7 = (i) => e.check(Kn(It, i)), e.nanoid = (i) => e.check(Xn(nu, i)), e.guid = (i) => e.check(Hi(Ji, i)), e.cuid = (i) => e.check(Qn(ou, i)), e.cuid2 = (i) => e.check(Yn(uu, i)), e.ulid = (i) => e.check(eo(cu, i)), e.base64 = (i) => e.check(oo(yu, i)), e.base64url = (i) => e.check(uo(vu, i)), e.xid = (i) => e.check(to(hu, i)), e.ksuid = (i) => e.check(io(pu, i)), e.ipv4 = (i) => e.check(so(lu, i)), e.ipv6 = (i) => e.check(ro(fu, i)), e.cidrv4 = (i) => e.check(ao(du, i)), e.cidrv6 = (i) => e.check(no(mu, i)), e.e164 = (i) => e.check(co(xu, i)), e.datetime = (i) => e.check(Do(i)), e.date = (i) => e.check(Vo(i)), e.time = (i) => e.check(jo(i)), e.duration = (i) => e.check($o(i));
|
|
2081
2081
|
});
|
|
2082
2082
|
function L(e) {
|
|
2083
2083
|
return Un(iu, e);
|
|
2084
2084
|
}
|
|
2085
2085
|
const Y = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
2086
|
-
K.init(e, t),
|
|
2086
|
+
K.init(e, t), zs.init(e, t);
|
|
2087
2087
|
}), su = /* @__PURE__ */ w("ZodEmail", (e, t) => {
|
|
2088
2088
|
Ga.init(e, t), Y.init(e, t);
|
|
2089
|
-
}),
|
|
2089
|
+
}), Ji = /* @__PURE__ */ w("ZodGUID", (e, t) => {
|
|
2090
2090
|
Wa.init(e, t), Y.init(e, t);
|
|
2091
|
-
}),
|
|
2091
|
+
}), It = /* @__PURE__ */ w("ZodUUID", (e, t) => {
|
|
2092
2092
|
Ka.init(e, t), Y.init(e, t);
|
|
2093
2093
|
}), ru = /* @__PURE__ */ w("ZodURL", (e, t) => {
|
|
2094
2094
|
Ja.init(e, t), Y.init(e, t);
|
|
@@ -2122,18 +2122,18 @@ const Y = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
|
|
|
2122
2122
|
yn.init(e, t), Y.init(e, t);
|
|
2123
2123
|
}), gu = /* @__PURE__ */ w("ZodJWT", (e, t) => {
|
|
2124
2124
|
xn.init(e, t), Y.init(e, t);
|
|
2125
|
-
}),
|
|
2126
|
-
Ls.init(e, t), ee.init(e, t), e.gt = (s, a) => e.check(
|
|
2125
|
+
}), Vs = /* @__PURE__ */ w("ZodNumber", (e, t) => {
|
|
2126
|
+
Ls.init(e, t), ee.init(e, t), e.gt = (s, a) => e.check(Ki(s, a)), e.gte = (s, a) => e.check(Yt(s, a)), e.min = (s, a) => e.check(Yt(s, a)), e.lt = (s, a) => e.check(Wi(s, a)), e.lte = (s, a) => e.check(Qt(s, a)), e.max = (s, a) => e.check(Qt(s, a)), e.int = (s) => e.check(Xi(s)), e.safe = (s) => e.check(Xi(s)), e.positive = (s) => e.check(Ki(0, s)), e.nonnegative = (s) => e.check(Yt(0, s)), e.negative = (s) => e.check(Wi(0, s)), e.nonpositive = (s) => e.check(Qt(0, s)), e.multipleOf = (s, a) => e.check(Gi(s, a)), e.step = (s, a) => e.check(Gi(s, a)), e.finite = () => e;
|
|
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
2130
|
function Le(e) {
|
|
2131
|
-
return yo(
|
|
2131
|
+
return yo(Vs, e);
|
|
2132
2132
|
}
|
|
2133
2133
|
const bu = /* @__PURE__ */ w("ZodNumberFormat", (e, t) => {
|
|
2134
|
-
gn.init(e, t),
|
|
2134
|
+
gn.init(e, t), Vs.init(e, t);
|
|
2135
2135
|
});
|
|
2136
|
-
function
|
|
2136
|
+
function Xi(e) {
|
|
2137
2137
|
return vo(bu, e);
|
|
2138
2138
|
}
|
|
2139
2139
|
const ku = /* @__PURE__ */ w("ZodBoolean", (e, t) => {
|
|
@@ -2145,7 +2145,7 @@ function wu(e) {
|
|
|
2145
2145
|
const Su = /* @__PURE__ */ w("ZodUnknown", (e, t) => {
|
|
2146
2146
|
kn.init(e, t), ee.init(e, t);
|
|
2147
2147
|
});
|
|
2148
|
-
function
|
|
2148
|
+
function Qi() {
|
|
2149
2149
|
return go(Su);
|
|
2150
2150
|
}
|
|
2151
2151
|
const Tu = /* @__PURE__ */ w("ZodNever", (e, t) => {
|
|
@@ -2155,13 +2155,13 @@ function _u(e) {
|
|
|
2155
2155
|
return bo(Tu, e);
|
|
2156
2156
|
}
|
|
2157
2157
|
const Pu = /* @__PURE__ */ w("ZodArray", (e, t) => {
|
|
2158
|
-
Sn.init(e, t), ee.init(e, t), e.element = t.element, e.min = (i, s) => e.check(
|
|
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
2160
|
function Ze(e, t) {
|
|
2161
2161
|
return No(Pu, e, t);
|
|
2162
2162
|
}
|
|
2163
2163
|
const Au = /* @__PURE__ */ w("ZodObject", (e, t) => {
|
|
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:
|
|
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
2166
|
function Ce(e, t) {
|
|
2167
2167
|
const i = {
|
|
@@ -2282,7 +2282,7 @@ function Ru(e) {
|
|
|
2282
2282
|
const Fs = /* @__PURE__ */ w("ZodOptional", (e, t) => {
|
|
2283
2283
|
Ln.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2284
2284
|
});
|
|
2285
|
-
function
|
|
2285
|
+
function Yi(e) {
|
|
2286
2286
|
return new Fs({
|
|
2287
2287
|
type: "optional",
|
|
2288
2288
|
innerType: e
|
|
@@ -2291,17 +2291,17 @@ function Qi(e) {
|
|
|
2291
2291
|
const Du = /* @__PURE__ */ w("ZodNullable", (e, t) => {
|
|
2292
2292
|
On.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2293
2293
|
});
|
|
2294
|
-
function
|
|
2294
|
+
function es(e) {
|
|
2295
2295
|
return new Du({
|
|
2296
2296
|
type: "nullable",
|
|
2297
2297
|
innerType: e
|
|
2298
2298
|
});
|
|
2299
2299
|
}
|
|
2300
|
-
const
|
|
2300
|
+
const zu = /* @__PURE__ */ w("ZodDefault", (e, t) => {
|
|
2301
2301
|
Mn.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2302
2302
|
});
|
|
2303
|
-
function
|
|
2304
|
-
return new
|
|
2303
|
+
function Vu(e, t) {
|
|
2304
|
+
return new zu({
|
|
2305
2305
|
type: "default",
|
|
2306
2306
|
innerType: e,
|
|
2307
2307
|
get defaultValue() {
|
|
@@ -2332,7 +2332,7 @@ function Bu(e, t) {
|
|
|
2332
2332
|
});
|
|
2333
2333
|
}
|
|
2334
2334
|
const $u = /* @__PURE__ */ w("ZodCatch", (e, t) => {
|
|
2335
|
-
|
|
2335
|
+
zn.init(e, t), ee.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2336
2336
|
});
|
|
2337
2337
|
function Uu(e, t) {
|
|
2338
2338
|
return new $u({
|
|
@@ -2342,9 +2342,9 @@ function Uu(e, t) {
|
|
|
2342
2342
|
});
|
|
2343
2343
|
}
|
|
2344
2344
|
const Zu = /* @__PURE__ */ w("ZodPipe", (e, t) => {
|
|
2345
|
-
|
|
2345
|
+
Vn.init(e, t), ee.init(e, t), e.in = t.in, e.out = t.out;
|
|
2346
2346
|
});
|
|
2347
|
-
function
|
|
2347
|
+
function ts(e, t) {
|
|
2348
2348
|
return new Zu({
|
|
2349
2349
|
type: "pipe",
|
|
2350
2350
|
in: e,
|
|
@@ -2490,7 +2490,7 @@ 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
|
-
]),
|
|
2493
|
+
]), is = Le(), dc = Ce({
|
|
2494
2494
|
id: L(),
|
|
2495
2495
|
color: pc,
|
|
2496
2496
|
label: L()
|
|
@@ -2506,10 +2506,10 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2506
2506
|
id: L(),
|
|
2507
2507
|
label: xe(L(), L()),
|
|
2508
2508
|
description: xe(L(), L()),
|
|
2509
|
-
firstCreatedAt:
|
|
2509
|
+
firstCreatedAt: is.optional(),
|
|
2510
2510
|
icon: L().optional(),
|
|
2511
2511
|
iconDark: L().optional(),
|
|
2512
|
-
lastUpdatedAt:
|
|
2512
|
+
lastUpdatedAt: is.optional(),
|
|
2513
2513
|
status: dc.optional(),
|
|
2514
2514
|
statusId: lc,
|
|
2515
2515
|
typeId: fc
|
|
@@ -2523,7 +2523,7 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2523
2523
|
models: Ze(xc),
|
|
2524
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")]),
|
|
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 = Le(), Tc = Ce({
|
|
2527
2527
|
id: L(),
|
|
2528
2528
|
color: kc,
|
|
2529
2529
|
label: L()
|
|
@@ -2539,10 +2539,10 @@ const Ju = se([g("amber"), g("green"), g("red"), g("other")]), Xu = se([
|
|
|
2539
2539
|
id: L(),
|
|
2540
2540
|
label: xe(L(), L()),
|
|
2541
2541
|
description: xe(L(), L()),
|
|
2542
|
-
firstCreatedAt:
|
|
2542
|
+
firstCreatedAt: ss.optional(),
|
|
2543
2543
|
icon: L().optional(),
|
|
2544
2544
|
iconDark: L().optional(),
|
|
2545
|
-
lastUpdatedAt:
|
|
2545
|
+
lastUpdatedAt: ss.optional(),
|
|
2546
2546
|
status: Tc.optional(),
|
|
2547
2547
|
statusId: wc,
|
|
2548
2548
|
typeId: Sc
|
|
@@ -2580,42 +2580,42 @@ function Pe(e, t) {
|
|
|
2580
2580
|
function Oe(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
|
-
var
|
|
2583
|
+
var V = function(t, i) {
|
|
2584
2584
|
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;
|
|
2585
2585
|
};
|
|
2586
2586
|
function be(e, t) {
|
|
2587
|
-
return new
|
|
2587
|
+
return new V(e, { beforeExpr: !0, binop: t });
|
|
2588
2588
|
}
|
|
2589
2589
|
var ke = { beforeExpr: !0 }, le = { startsExpr: !0 }, at = {};
|
|
2590
2590
|
function j(e, t) {
|
|
2591
|
-
return t === void 0 && (t = {}), t.keyword = e, at[e] = new
|
|
2591
|
+
return t === void 0 && (t = {}), t.keyword = e, at[e] = new V(e, t);
|
|
2592
2592
|
}
|
|
2593
2593
|
var p = {
|
|
2594
|
-
num: new
|
|
2595
|
-
regexp: new
|
|
2596
|
-
string: new
|
|
2597
|
-
name: new
|
|
2598
|
-
privateId: new
|
|
2599
|
-
eof: new
|
|
2594
|
+
num: new V("num", le),
|
|
2595
|
+
regexp: new V("regexp", le),
|
|
2596
|
+
string: new V("string", le),
|
|
2597
|
+
name: new V("name", le),
|
|
2598
|
+
privateId: new V("privateId", le),
|
|
2599
|
+
eof: new V("eof"),
|
|
2600
2600
|
// Punctuation token types.
|
|
2601
|
-
bracketL: new
|
|
2602
|
-
bracketR: new
|
|
2603
|
-
braceL: new
|
|
2604
|
-
braceR: new
|
|
2605
|
-
parenL: new
|
|
2606
|
-
parenR: new
|
|
2607
|
-
comma: new
|
|
2608
|
-
semi: new
|
|
2609
|
-
colon: new
|
|
2610
|
-
dot: new
|
|
2611
|
-
question: new
|
|
2612
|
-
questionDot: new
|
|
2613
|
-
arrow: new
|
|
2614
|
-
template: new
|
|
2615
|
-
invalidTemplate: new
|
|
2616
|
-
ellipsis: new
|
|
2617
|
-
backQuote: new
|
|
2618
|
-
dollarBraceL: new
|
|
2601
|
+
bracketL: new V("[", { beforeExpr: !0, startsExpr: !0 }),
|
|
2602
|
+
bracketR: new V("]"),
|
|
2603
|
+
braceL: new V("{", { beforeExpr: !0, startsExpr: !0 }),
|
|
2604
|
+
braceR: new V("}"),
|
|
2605
|
+
parenL: new V("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
2606
|
+
parenR: new V(")"),
|
|
2607
|
+
comma: new V(",", ke),
|
|
2608
|
+
semi: new V(";", ke),
|
|
2609
|
+
colon: new V(":", ke),
|
|
2610
|
+
dot: new V("."),
|
|
2611
|
+
question: new V("?", ke),
|
|
2612
|
+
questionDot: new V("?."),
|
|
2613
|
+
arrow: new V("=>", ke),
|
|
2614
|
+
template: new V("template"),
|
|
2615
|
+
invalidTemplate: new V("invalidTemplate"),
|
|
2616
|
+
ellipsis: new V("...", ke),
|
|
2617
|
+
backQuote: new V("`", le),
|
|
2618
|
+
dollarBraceL: new V("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
2619
2619
|
// Operators. These carry several kinds of properties to help the
|
|
2620
2620
|
// parser use them properly (the presence of these properties is
|
|
2621
2621
|
// what categorizes them as operators).
|
|
@@ -2629,10 +2629,10 @@ var p = {
|
|
|
2629
2629
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
2630
2630
|
// binary operators with a very low precedence, that should result
|
|
2631
2631
|
// in AssignmentExpression nodes.
|
|
2632
|
-
eq: new
|
|
2633
|
-
assign: new
|
|
2634
|
-
incDec: new
|
|
2635
|
-
prefix: new
|
|
2632
|
+
eq: new V("=", { beforeExpr: !0, isAssign: !0 }),
|
|
2633
|
+
assign: new V("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
2634
|
+
incDec: new V("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
2635
|
+
prefix: new V("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
2636
2636
|
logicalOR: be("||", 1),
|
|
2637
2637
|
logicalAND: be("&&", 2),
|
|
2638
2638
|
bitwiseOR: be("|", 3),
|
|
@@ -2641,11 +2641,11 @@ var p = {
|
|
|
2641
2641
|
equality: be("==/!=/===/!==", 6),
|
|
2642
2642
|
relational: be("</>/<=/>=", 7),
|
|
2643
2643
|
bitShift: be("<</>>/>>>", 8),
|
|
2644
|
-
plusMin: new
|
|
2644
|
+
plusMin: new V("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
2645
2645
|
modulo: be("%", 10),
|
|
2646
2646
|
star: be("*", 10),
|
|
2647
2647
|
slash: be("/", 10),
|
|
2648
|
-
starstar: new
|
|
2648
|
+
starstar: new V("**", { beforeExpr: !0 }),
|
|
2649
2649
|
coalesce: be("??", 1),
|
|
2650
2650
|
// Keyword token types.
|
|
2651
2651
|
_break: j("break"),
|
|
@@ -2684,25 +2684,25 @@ var p = {
|
|
|
2684
2684
|
_void: j("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
2685
2685
|
_delete: j("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
2686
2686
|
}, ue = /\r\n?|\n|\u2028|\u2029/, Zs = new RegExp(ue.source, "g");
|
|
2687
|
-
function
|
|
2687
|
+
function Xe(e) {
|
|
2688
2688
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
2689
2689
|
}
|
|
2690
2690
|
function qs(e, t, i) {
|
|
2691
2691
|
i === void 0 && (i = e.length);
|
|
2692
2692
|
for (var s = t; s < i; s++) {
|
|
2693
2693
|
var a = e.charCodeAt(s);
|
|
2694
|
-
if (
|
|
2694
|
+
if (Xe(a))
|
|
2695
2695
|
return s < i - 1 && a === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
|
|
2696
2696
|
}
|
|
2697
2697
|
return -1;
|
|
2698
2698
|
}
|
|
2699
|
-
var
|
|
2700
|
-
return
|
|
2701
|
-
}),
|
|
2702
|
-
return
|
|
2703
|
-
}),
|
|
2699
|
+
var wi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ae = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Hs = Object.prototype, zc = Hs.hasOwnProperty, Vc = Hs.toString, ot = Object.hasOwn || (function(e, t) {
|
|
2700
|
+
return zc.call(e, t);
|
|
2701
|
+
}), rs = Array.isArray || (function(e) {
|
|
2702
|
+
return Vc.call(e) === "[object Array]";
|
|
2703
|
+
}), as = /* @__PURE__ */ Object.create(null);
|
|
2704
2704
|
function Be(e) {
|
|
2705
|
-
return
|
|
2705
|
+
return as[e] || (as[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
2706
2706
|
}
|
|
2707
2707
|
function Me(e) {
|
|
2708
2708
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -2716,7 +2716,7 @@ nt.prototype.offset = function(t) {
|
|
|
2716
2716
|
var gt = function(t, i, s) {
|
|
2717
2717
|
this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
2718
2718
|
};
|
|
2719
|
-
function
|
|
2719
|
+
function Si(e, t) {
|
|
2720
2720
|
for (var i = 1, s = 0; ; ) {
|
|
2721
2721
|
var a = qs(e, s, t);
|
|
2722
2722
|
if (a < 0)
|
|
@@ -2724,7 +2724,7 @@ function wi(e, t) {
|
|
|
2724
2724
|
++i, s = a;
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
|
-
var
|
|
2727
|
+
var Rt = {
|
|
2728
2728
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
2729
2729
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
2730
2730
|
// (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"`
|
|
@@ -2820,19 +2820,19 @@ var Mt = {
|
|
|
2820
2820
|
// When enabled, parenthesized expressions are represented by
|
|
2821
2821
|
// (non-standard) ParenthesizedExpression nodes
|
|
2822
2822
|
preserveParens: !1
|
|
2823
|
-
},
|
|
2823
|
+
}, ns = !1;
|
|
2824
2824
|
function jc(e) {
|
|
2825
2825
|
var t = {};
|
|
2826
|
-
for (var i in
|
|
2827
|
-
t[i] = e && ot(e, i) ? e[i] :
|
|
2828
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
2829
|
-
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),
|
|
2826
|
+
for (var i in Rt)
|
|
2827
|
+
t[i] = e && ot(e, i) ? e[i] : Rt[i];
|
|
2828
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ns && typeof console == "object" && console.warn && (ns = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2829
|
+
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), rs(t.onToken)) {
|
|
2830
2830
|
var s = t.onToken;
|
|
2831
2831
|
t.onToken = function(a) {
|
|
2832
2832
|
return s.push(a);
|
|
2833
2833
|
};
|
|
2834
2834
|
}
|
|
2835
|
-
return
|
|
2835
|
+
return rs(t.onComment) && (t.onComment = Bc(t, t.onComment)), t;
|
|
2836
2836
|
}
|
|
2837
2837
|
function Bc(e, t) {
|
|
2838
2838
|
return function(i, s, a, o, h, d) {
|
|
@@ -2845,11 +2845,11 @@ function Bc(e, t) {
|
|
|
2845
2845
|
e.locations && (y.loc = new gt(this, h, d)), e.ranges && (y.range = [a, o]), t.push(y);
|
|
2846
2846
|
};
|
|
2847
2847
|
}
|
|
2848
|
-
var vt = 1, ut = 2,
|
|
2849
|
-
function
|
|
2850
|
-
return ut | (e ?
|
|
2848
|
+
var vt = 1, ut = 2, Ti = 4, Ws = 8, _i = 16, Ks = 32, Zt = 64, Gs = 128, Qe = 256, bt = 512, qt = vt | ut | Qe;
|
|
2849
|
+
function Pi(e, t) {
|
|
2850
|
+
return ut | (e ? Ti : 0) | (t ? Ws : 0);
|
|
2851
2851
|
}
|
|
2852
|
-
var
|
|
2852
|
+
var Dt = 0, Ai = 1, De = 2, Js = 3, Xs = 4, Qs = 5, X = function(t, i, s) {
|
|
2853
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
2855
|
t.allowReserved !== !0 && (a = ei[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords = Be(a);
|
|
@@ -2868,21 +2868,21 @@ Ee.inGenerator.get = function() {
|
|
|
2868
2868
|
return (this.currentVarScope().flags & Ws) > 0;
|
|
2869
2869
|
};
|
|
2870
2870
|
Ee.inAsync.get = function() {
|
|
2871
|
-
return (this.currentVarScope().flags &
|
|
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
|
-
if (i & (
|
|
2876
|
+
if (i & (Qe | bt))
|
|
2877
2877
|
return !1;
|
|
2878
2878
|
if (i & ut)
|
|
2879
|
-
return (i &
|
|
2879
|
+
return (i & Ti) > 0;
|
|
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
|
-
return (t &
|
|
2885
|
+
return (t & Zt) > 0 || this.options.allowSuperOutsideMethod;
|
|
2886
2886
|
};
|
|
2887
2887
|
Ee.allowDirectSuper.get = function() {
|
|
2888
2888
|
return (this.currentThisScope().flags & Gs) > 0;
|
|
@@ -2893,13 +2893,13 @@ Ee.treatFunctionsAsVar.get = function() {
|
|
|
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
|
-
if (i & (
|
|
2896
|
+
if (i & (Qe | bt) || i & ut && !(i & _i))
|
|
2897
2897
|
return !0;
|
|
2898
2898
|
}
|
|
2899
2899
|
return !1;
|
|
2900
2900
|
};
|
|
2901
2901
|
Ee.inClassStaticBlock.get = function() {
|
|
2902
|
-
return (this.currentVarScope().flags &
|
|
2902
|
+
return (this.currentVarScope().flags & Qe) > 0;
|
|
2903
2903
|
};
|
|
2904
2904
|
X.extend = function() {
|
|
2905
2905
|
for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
|
|
@@ -2967,7 +2967,7 @@ ce.expect = function(e) {
|
|
|
2967
2967
|
ce.unexpected = function(e) {
|
|
2968
2968
|
this.raise(e ?? this.start, "Unexpected token");
|
|
2969
2969
|
};
|
|
2970
|
-
var
|
|
2970
|
+
var Ht = function() {
|
|
2971
2971
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
2972
2972
|
};
|
|
2973
2973
|
ce.checkPatternErrors = function(e, t) {
|
|
@@ -3005,7 +3005,7 @@ E.parseTopLevel = function(e) {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
3007
3007
|
};
|
|
3008
|
-
var
|
|
3008
|
+
var Ci = { kind: "loop" }, Uc = { kind: "switch" };
|
|
3009
3009
|
E.isLet = function(e) {
|
|
3010
3010
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
3011
3011
|
return !1;
|
|
@@ -3140,12 +3140,12 @@ E.parseDebuggerStatement = function(e) {
|
|
|
3140
3140
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
3141
3141
|
};
|
|
3142
3142
|
E.parseDoStatement = function(e) {
|
|
3143
|
-
return this.next(), this.labels.push(
|
|
3143
|
+
return this.next(), this.labels.push(Ci), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(p._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(p.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
3144
3144
|
};
|
|
3145
3145
|
E.parseForStatement = function(e) {
|
|
3146
3146
|
this.next();
|
|
3147
3147
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
3148
|
-
if (this.labels.push(
|
|
3148
|
+
if (this.labels.push(Ci), this.enterScope(0), this.expect(p.parenL), this.type === p.semi)
|
|
3149
3149
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
3150
3150
|
var i = this.isLet();
|
|
3151
3151
|
if (this.type === p._var || this.type === p._const || i) {
|
|
@@ -3157,7 +3157,7 @@ E.parseForStatement = function(e) {
|
|
|
3157
3157
|
var y = this.startNode();
|
|
3158
3158
|
return this.next(), d === "await using" && this.next(), this.parseVar(y, !0, d), this.finishNode(y, "VariableDeclaration"), this.parseForAfterInit(e, y, t);
|
|
3159
3159
|
}
|
|
3160
|
-
var u = this.containsEsc, S = new
|
|
3160
|
+
var u = this.containsEsc, S = new Ht(), P = this.start, M = t > -1 ? this.parseExprSubscripts(S, "await") : this.parseExpression(!0, S);
|
|
3161
3161
|
return this.type === p._in || (h = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === p._in && this.unexpected(t), e.await = !0) : h && this.options.ecmaVersion >= 8 && (M.start === P && !u && M.type === "Identifier" && M.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), o && h && this.raise(M.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(M, !1, S), this.checkLValPattern(M), this.parseForIn(e, M)) : (this.checkExpressionErrors(S, !0), t > -1 && this.unexpected(t), this.parseFor(e, M));
|
|
3162
3162
|
};
|
|
3163
3163
|
E.parseForAfterInit = function(e, t, i) {
|
|
@@ -3201,7 +3201,7 @@ E.parseVarStatement = function(e, t, i) {
|
|
|
3201
3201
|
return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
3202
3202
|
};
|
|
3203
3203
|
E.parseWhileStatement = function(e) {
|
|
3204
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
3204
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Ci), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
3205
3205
|
};
|
|
3206
3206
|
E.parseWithStatement = function(e) {
|
|
3207
3207
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
@@ -3252,13 +3252,13 @@ 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" ?
|
|
3255
|
+
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Ai : De, !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 ?
|
|
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 : De : Js));
|
|
3260
3260
|
var o = this.yieldPos, h = this.awaitPos, d = this.awaitIdentPos;
|
|
3261
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
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
|
};
|
|
3263
3263
|
E.parseFunctionParams = function(e) {
|
|
3264
3264
|
this.expect(p.parenL), e.params = this.parseBindingList(p.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -3288,7 +3288,7 @@ E.parseClassElement = function(e) {
|
|
|
3288
3288
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? h = y : s = y);
|
|
3289
3289
|
}
|
|
3290
3290
|
if (s ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === p.parenL || h !== "method" || a || o) {
|
|
3291
|
-
var u = !i.static &&
|
|
3291
|
+
var u = !i.static && zt(i, "constructor"), S = u && e;
|
|
3292
3292
|
u && h !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = u ? "constructor" : h, this.parseClassMethod(i, a, o, S);
|
|
3293
3293
|
} else
|
|
3294
3294
|
this.parseClassField(i);
|
|
@@ -3302,17 +3302,17 @@ E.parseClassElementName = function(e) {
|
|
|
3302
3302
|
};
|
|
3303
3303
|
E.parseClassMethod = function(e, t, i, s) {
|
|
3304
3304
|
var a = e.key;
|
|
3305
|
-
e.kind === "constructor" ? (t && this.raise(a.start, "Constructor can't be a generator"), i && this.raise(a.start, "Constructor can't be an async method")) : e.static &&
|
|
3305
|
+
e.kind === "constructor" ? (t && this.raise(a.start, "Constructor can't be a generator"), i && this.raise(a.start, "Constructor can't be an async method")) : e.static && zt(e, "prototype") && this.raise(a.start, "Classes may not have a static property named prototype");
|
|
3306
3306
|
var o = e.value = this.parseMethod(t, i, s);
|
|
3307
3307
|
return e.kind === "get" && o.params.length !== 0 && this.raiseRecoverable(o.start, "getter should have no params"), e.kind === "set" && o.params.length !== 1 && this.raiseRecoverable(o.start, "setter should have exactly one param"), e.kind === "set" && o.params[0].type === "RestElement" && this.raiseRecoverable(o.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
3308
3308
|
};
|
|
3309
3309
|
E.parseClassField = function(e) {
|
|
3310
|
-
return
|
|
3310
|
+
return zt(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && zt(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(p.eq) ? (this.enterScope(bt | Zt), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
3311
3311
|
};
|
|
3312
3312
|
E.parseClassStaticBlock = function(e) {
|
|
3313
3313
|
e.body = [];
|
|
3314
3314
|
var t = this.labels;
|
|
3315
|
-
for (this.labels = [], this.enterScope(
|
|
3315
|
+
for (this.labels = [], this.enterScope(Qe | Zt); this.type !== p.braceR; ) {
|
|
3316
3316
|
var i = this.parseStatement(null);
|
|
3317
3317
|
e.body.push(i);
|
|
3318
3318
|
}
|
|
@@ -3340,7 +3340,7 @@ function qc(e, t) {
|
|
|
3340
3340
|
var i = t.key.name, s = e[i], a = "true";
|
|
3341
3341
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (a = (t.static ? "s" : "i") + t.kind), s === "iget" && a === "iset" || s === "iset" && a === "iget" || s === "sget" && a === "sset" || s === "sset" && a === "sget" ? (e[i] = "true", !1) : s ? !0 : (e[i] = a, !1);
|
|
3342
3342
|
}
|
|
3343
|
-
function
|
|
3343
|
+
function zt(e, t) {
|
|
3344
3344
|
var i = e.computed, s = e.key;
|
|
3345
3345
|
return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
|
|
3346
3346
|
}
|
|
@@ -3602,8 +3602,8 @@ Te.parseMaybeDefault = function(e, t, i) {
|
|
|
3602
3602
|
return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
|
|
3603
3603
|
};
|
|
3604
3604
|
Te.checkLValSimple = function(e, t, i) {
|
|
3605
|
-
t === void 0 && (t =
|
|
3606
|
-
var s = t !==
|
|
3605
|
+
t === void 0 && (t = Dt);
|
|
3606
|
+
var s = t !== Dt;
|
|
3607
3607
|
switch (e.type) {
|
|
3608
3608
|
case "Identifier":
|
|
3609
3609
|
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === De && 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));
|
|
@@ -3621,7 +3621,7 @@ Te.checkLValSimple = function(e, t, i) {
|
|
|
3621
3621
|
}
|
|
3622
3622
|
};
|
|
3623
3623
|
Te.checkLValPattern = function(e, t, i) {
|
|
3624
|
-
switch (t === void 0 && (t =
|
|
3624
|
+
switch (t === void 0 && (t = Dt), e.type) {
|
|
3625
3625
|
case "ObjectPattern":
|
|
3626
3626
|
for (var s = 0, a = e.properties; s < a.length; s += 1) {
|
|
3627
3627
|
var o = a[s];
|
|
@@ -3639,7 +3639,7 @@ Te.checkLValPattern = function(e, t, i) {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
};
|
|
3641
3641
|
Te.checkLValInnerPattern = function(e, t, i) {
|
|
3642
|
-
switch (t === void 0 && (t =
|
|
3642
|
+
switch (t === void 0 && (t = Dt), e.type) {
|
|
3643
3643
|
case "Property":
|
|
3644
3644
|
this.checkLValInnerPattern(e.value, t, i);
|
|
3645
3645
|
break;
|
|
@@ -3784,7 +3784,7 @@ D.parseMaybeAssign = function(e, t, i) {
|
|
|
3784
3784
|
this.exprAllowed = !1;
|
|
3785
3785
|
}
|
|
3786
3786
|
var s = !1, a = -1, o = -1, h = -1;
|
|
3787
|
-
t ? (a = t.parenthesizedAssign, o = t.trailingComma, h = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new
|
|
3787
|
+
t ? (a = t.parenthesizedAssign, o = t.trailingComma, h = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Ht(), s = !0);
|
|
3788
3788
|
var d = this.start, y = this.startLoc;
|
|
3789
3789
|
(this.type === p.parenL || this.type === p.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
3790
3790
|
var u = this.parseMaybeConditional(e, t);
|
|
@@ -3891,7 +3891,7 @@ D.parseSubscript = function(e, t, i, s, a, o, h) {
|
|
|
3891
3891
|
var S = this.startNodeAt(t, i);
|
|
3892
3892
|
S.object = e, u ? (S.property = this.parseExpression(), this.expect(p.bracketR)) : this.type === p.privateId && e.type !== "Super" ? S.property = this.parsePrivateIdent() : S.property = this.parseIdent(this.options.allowReserved !== "never"), S.computed = !!u, d && (S.optional = y), e = this.finishNode(S, "MemberExpression");
|
|
3893
3893
|
} else if (!s && this.eat(p.parenL)) {
|
|
3894
|
-
var P = new
|
|
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
3896
|
var Ne = this.parseExprList(p.parenR, this.options.ecmaVersion >= 8, !1, P);
|
|
3897
3897
|
if (a && !y && this.shouldParseAsyncArrow())
|
|
@@ -3999,7 +3999,7 @@ D.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
3999
3999
|
var i = this.start, s = this.startLoc, a, o = this.options.ecmaVersion >= 8;
|
|
4000
4000
|
if (this.options.ecmaVersion >= 6) {
|
|
4001
4001
|
this.next();
|
|
4002
|
-
var h = this.start, d = this.startLoc, y = [], u = !0, S = !1, P = new
|
|
4002
|
+
var h = this.start, d = this.startLoc, y = [], u = !0, S = !1, P = new Ht(), M = this.yieldPos, U = this.awaitPos, he;
|
|
4003
4003
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== p.parenR; )
|
|
4004
4004
|
if (u ? u = !1 : this.expect(p.comma), o && this.afterTrailingComma(p.parenR, !0)) {
|
|
4005
4005
|
S = !0;
|
|
@@ -4115,11 +4115,11 @@ D.initFunction = function(e) {
|
|
|
4115
4115
|
};
|
|
4116
4116
|
D.parseMethod = function(e, t, i) {
|
|
4117
4117
|
var s = this.startNode(), a = this.yieldPos, o = this.awaitPos, h = this.awaitIdentPos;
|
|
4118
|
-
return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
4118
|
+
return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Pi(t, s.generator) | Zt | (i ? Gs : 0)), this.expect(p.parenL), s.params = this.parseBindingList(p.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = h, this.finishNode(s, "FunctionExpression");
|
|
4119
4119
|
};
|
|
4120
4120
|
D.parseArrowExpression = function(e, t, i, s) {
|
|
4121
4121
|
var a = this.yieldPos, o = this.awaitPos, h = this.awaitIdentPos;
|
|
4122
|
-
return this.enterScope(
|
|
4122
|
+
return this.enterScope(Pi(i, !1) | _i), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, s), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = h, this.finishNode(e, "ArrowFunctionExpression");
|
|
4123
4123
|
};
|
|
4124
4124
|
D.parseFunctionBody = function(e, t, i, s) {
|
|
4125
4125
|
var a = t && this.type !== p.braceL, o = this.strict, h = !1;
|
|
@@ -4144,7 +4144,7 @@ D.isSimpleParamList = function(e) {
|
|
|
4144
4144
|
D.checkParams = function(e, t) {
|
|
4145
4145
|
for (var i = /* @__PURE__ */ Object.create(null), s = 0, a = e.params; s < a.length; s += 1) {
|
|
4146
4146
|
var o = a[s];
|
|
4147
|
-
this.checkLValInnerPattern(o,
|
|
4147
|
+
this.checkLValInnerPattern(o, Ai, t ? null : i);
|
|
4148
4148
|
}
|
|
4149
4149
|
};
|
|
4150
4150
|
D.parseExprList = function(e, t, i, s) {
|
|
@@ -4160,7 +4160,7 @@ D.parseExprList = function(e, t, i, s) {
|
|
|
4160
4160
|
};
|
|
4161
4161
|
D.checkUnreserved = function(e) {
|
|
4162
4162
|
var t = e.start, i = e.end, s = e.name;
|
|
4163
|
-
if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags &
|
|
4163
|
+
if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & qt) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
|
|
4164
4164
|
var a = this.strict ? this.reservedWordsStrict : this.reservedWords;
|
|
4165
4165
|
a.test(s) && (!this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + s + "' is reserved"));
|
|
4166
4166
|
}
|
|
@@ -4189,7 +4189,7 @@ D.parseAwait = function(e) {
|
|
|
4189
4189
|
};
|
|
4190
4190
|
var Vt = X.prototype;
|
|
4191
4191
|
Vt.raise = function(e, t) {
|
|
4192
|
-
var i =
|
|
4192
|
+
var i = Si(this.input, e);
|
|
4193
4193
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
4194
4194
|
var s = new SyntaxError(t);
|
|
4195
4195
|
throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
|
|
@@ -4229,7 +4229,7 @@ He.declareName = function(e, t, i) {
|
|
|
4229
4229
|
s = !0;
|
|
4230
4230
|
break;
|
|
4231
4231
|
}
|
|
4232
|
-
if (y.var.push(e), this.inModule && y.flags & vt && delete this.undefinedExports[e], y.flags &
|
|
4232
|
+
if (y.var.push(e), this.inModule && y.flags & vt && delete this.undefinedExports[e], y.flags & qt)
|
|
4233
4233
|
break;
|
|
4234
4234
|
}
|
|
4235
4235
|
s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
@@ -4243,14 +4243,14 @@ He.currentScope = function() {
|
|
|
4243
4243
|
He.currentVarScope = function() {
|
|
4244
4244
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
4245
4245
|
var t = this.scopeStack[e];
|
|
4246
|
-
if (t.flags & (
|
|
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
|
-
if (t.flags & (
|
|
4253
|
+
if (t.flags & (qt | bt | Qe) && !(t.flags & _i))
|
|
4254
4254
|
return t;
|
|
4255
4255
|
}
|
|
4256
4256
|
};
|
|
@@ -4292,7 +4292,7 @@ var Kc = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4292
4292
|
12: "",
|
|
4293
4293
|
13: "",
|
|
4294
4294
|
14: Xc
|
|
4295
|
-
},
|
|
4295
|
+
}, os = "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", or = "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", ur = or + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", cr = ur + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", hr = cr + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", pr = hr + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Yc = pr + " " + Kc, eh = {
|
|
4296
4296
|
9: or,
|
|
4297
4297
|
10: ur,
|
|
4298
4298
|
11: cr,
|
|
@@ -4302,31 +4302,31 @@ 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: Be(Jc[e] + " " +
|
|
4305
|
+
binary: Be(Jc[e] + " " + os),
|
|
4306
4306
|
binaryOfStrings: Be(Qc[e]),
|
|
4307
4307
|
nonBinary: {
|
|
4308
|
-
General_Category: Be(
|
|
4308
|
+
General_Category: Be(os),
|
|
4309
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;
|
|
4313
4313
|
}
|
|
4314
|
-
for (var ii = 0,
|
|
4315
|
-
var ih =
|
|
4314
|
+
for (var ii = 0, us = [9, 10, 11, 12, 13, 14]; ii < us.length; ii += 1) {
|
|
4315
|
+
var ih = us[ii];
|
|
4316
4316
|
th(ih);
|
|
4317
4317
|
}
|
|
4318
|
-
var A = X.prototype,
|
|
4318
|
+
var A = X.prototype, Ft = function(t, i) {
|
|
4319
4319
|
this.parent = t, this.base = i || this;
|
|
4320
4320
|
};
|
|
4321
|
-
|
|
4321
|
+
Ft.prototype.separatedFrom = function(t) {
|
|
4322
4322
|
for (var i = this; i; i = i.parent)
|
|
4323
4323
|
for (var s = t; s; s = s.parent)
|
|
4324
4324
|
if (i.base === s.base && i !== s)
|
|
4325
4325
|
return !0;
|
|
4326
4326
|
return !1;
|
|
4327
4327
|
};
|
|
4328
|
-
|
|
4329
|
-
return new
|
|
4328
|
+
Ft.prototype.sibling = function() {
|
|
4329
|
+
return new Ft(this.parent, this.base);
|
|
4330
4330
|
};
|
|
4331
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;
|
|
@@ -4412,7 +4412,7 @@ A.regexp_pattern = function(e) {
|
|
|
4412
4412
|
};
|
|
4413
4413
|
A.regexp_disjunction = function(e) {
|
|
4414
4414
|
var t = this.options.ecmaVersion >= 16;
|
|
4415
|
-
for (t && (e.branchID = new
|
|
4415
|
+
for (t && (e.branchID = new Ft(e.branchID, null)), this.regexp_alternative(e); e.eat(
|
|
4416
4416
|
124
|
|
4417
4417
|
/* | */
|
|
4418
4418
|
); )
|
|
@@ -4722,7 +4722,7 @@ A.regexp_eatCControlLetter = function(e) {
|
|
|
4722
4722
|
return !1;
|
|
4723
4723
|
};
|
|
4724
4724
|
A.regexp_eatZero = function(e) {
|
|
4725
|
-
return e.current() === 48 && !
|
|
4725
|
+
return e.current() === 48 && !Wt(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
|
|
4726
4726
|
};
|
|
4727
4727
|
A.regexp_eatControlEscape = function(e) {
|
|
4728
4728
|
var t = e.current();
|
|
@@ -4864,7 +4864,7 @@ A.regexp_eatUnicodePropertyValue = function(e) {
|
|
|
4864
4864
|
return e.lastStringValue !== "";
|
|
4865
4865
|
};
|
|
4866
4866
|
function ch(e) {
|
|
4867
|
-
return yr(e) ||
|
|
4867
|
+
return yr(e) || Wt(e);
|
|
4868
4868
|
}
|
|
4869
4869
|
A.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
4870
4870
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -5080,7 +5080,7 @@ function lh(e) {
|
|
|
5080
5080
|
}
|
|
5081
5081
|
A.regexp_eatClassControlLetter = function(e) {
|
|
5082
5082
|
var t = e.current();
|
|
5083
|
-
return
|
|
5083
|
+
return Wt(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
5084
5084
|
};
|
|
5085
5085
|
A.regexp_eatHexEscapeSequence = function(e) {
|
|
5086
5086
|
var t = e.pos;
|
|
@@ -5096,11 +5096,11 @@ A.regexp_eatHexEscapeSequence = function(e) {
|
|
|
5096
5096
|
};
|
|
5097
5097
|
A.regexp_eatDecimalDigits = function(e) {
|
|
5098
5098
|
var t = e.pos, i = 0;
|
|
5099
|
-
for (e.lastIntValue = 0;
|
|
5099
|
+
for (e.lastIntValue = 0; Wt(i = e.current()); )
|
|
5100
5100
|
e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
|
|
5101
5101
|
return e.pos !== t;
|
|
5102
5102
|
};
|
|
5103
|
-
function
|
|
5103
|
+
function Wt(e) {
|
|
5104
5104
|
return e >= 48 && e <= 57;
|
|
5105
5105
|
}
|
|
5106
5106
|
A.regexp_eatHexDigits = function(e) {
|
|
@@ -5145,14 +5145,14 @@ A.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
5145
5145
|
}
|
|
5146
5146
|
return !0;
|
|
5147
5147
|
};
|
|
5148
|
-
var
|
|
5148
|
+
var Kt = function(t) {
|
|
5149
5149
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new gt(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
5150
5150
|
}, F = X.prototype;
|
|
5151
5151
|
F.next = function(e) {
|
|
5152
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
5152
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Kt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
5153
5153
|
};
|
|
5154
5154
|
F.getToken = function() {
|
|
5155
|
-
return this.next(), new
|
|
5155
|
+
return this.next(), new Kt(this);
|
|
5156
5156
|
};
|
|
5157
5157
|
typeof Symbol < "u" && (F[Symbol.iterator] = function() {
|
|
5158
5158
|
var e = this;
|
|
@@ -5199,7 +5199,7 @@ F.skipBlockComment = function() {
|
|
|
5199
5199
|
);
|
|
5200
5200
|
};
|
|
5201
5201
|
F.skipLineComment = function(e) {
|
|
5202
|
-
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !
|
|
5202
|
+
for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Xe(s); )
|
|
5203
5203
|
s = this.input.charCodeAt(++this.pos);
|
|
5204
5204
|
this.options.onComment && this.options.onComment(
|
|
5205
5205
|
!1,
|
|
@@ -5238,7 +5238,7 @@ F.skipSpace = function() {
|
|
|
5238
5238
|
}
|
|
5239
5239
|
break;
|
|
5240
5240
|
default:
|
|
5241
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
5241
|
+
if (e > 8 && e < 14 || e >= 5760 && wi.test(String.fromCharCode(e)))
|
|
5242
5242
|
++this.pos;
|
|
5243
5243
|
else
|
|
5244
5244
|
break e;
|
|
@@ -5495,7 +5495,7 @@ F.readString = function(e) {
|
|
|
5495
5495
|
var s = this.input.charCodeAt(this.pos);
|
|
5496
5496
|
if (s === e)
|
|
5497
5497
|
break;
|
|
5498
|
-
s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (
|
|
5498
|
+
s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Xe(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
5499
5499
|
}
|
|
5500
5500
|
return t += this.input.slice(i, this.pos++), this.finishToken(p.string, t);
|
|
5501
5501
|
};
|
|
@@ -5525,7 +5525,7 @@ F.readTmplToken = function() {
|
|
|
5525
5525
|
return this.pos === this.start && (this.type === p.template || this.type === p.invalidTemplate) ? i === 36 ? (this.pos += 2, this.finishToken(p.dollarBraceL)) : (++this.pos, this.finishToken(p.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(p.template, e));
|
|
5526
5526
|
if (i === 92)
|
|
5527
5527
|
e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
|
|
5528
|
-
else if (
|
|
5528
|
+
else if (Xe(i)) {
|
|
5529
5529
|
switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
|
|
5530
5530
|
case 13:
|
|
5531
5531
|
this.input.charCodeAt(this.pos) === 10 && ++this.pos;
|
|
@@ -5620,7 +5620,7 @@ F.readEscapedChar = function(e) {
|
|
|
5620
5620
|
e ? "Octal literal in template string" : "Octal literal in strict mode"
|
|
5621
5621
|
), String.fromCharCode(a);
|
|
5622
5622
|
}
|
|
5623
|
-
return
|
|
5623
|
+
return Xe(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
|
|
5624
5624
|
}
|
|
5625
5625
|
};
|
|
5626
5626
|
F.readHexChar = function(e) {
|
|
@@ -5653,23 +5653,23 @@ var wr = "8.15.0";
|
|
|
5653
5653
|
X.acorn = {
|
|
5654
5654
|
Parser: X,
|
|
5655
5655
|
version: wr,
|
|
5656
|
-
defaultOptions:
|
|
5656
|
+
defaultOptions: Rt,
|
|
5657
5657
|
Position: nt,
|
|
5658
5658
|
SourceLocation: gt,
|
|
5659
|
-
getLineInfo:
|
|
5659
|
+
getLineInfo: Si,
|
|
5660
5660
|
Node: kt,
|
|
5661
|
-
TokenType:
|
|
5661
|
+
TokenType: V,
|
|
5662
5662
|
tokTypes: p,
|
|
5663
5663
|
keywordTypes: at,
|
|
5664
5664
|
TokContext: oe,
|
|
5665
5665
|
tokContexts: H,
|
|
5666
5666
|
isIdentifierChar: Oe,
|
|
5667
5667
|
isIdentifierStart: Pe,
|
|
5668
|
-
Token:
|
|
5669
|
-
isNewLine:
|
|
5668
|
+
Token: Kt,
|
|
5669
|
+
isNewLine: Xe,
|
|
5670
5670
|
lineBreak: ue,
|
|
5671
5671
|
lineBreakG: Zs,
|
|
5672
|
-
nonASCIIwhitespace:
|
|
5672
|
+
nonASCIIwhitespace: wi
|
|
5673
5673
|
};
|
|
5674
5674
|
function dh(e, t) {
|
|
5675
5675
|
return X.parse(e, t);
|
|
@@ -5687,17 +5687,17 @@ const vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5687
5687
|
Position: nt,
|
|
5688
5688
|
SourceLocation: gt,
|
|
5689
5689
|
TokContext: oe,
|
|
5690
|
-
Token:
|
|
5691
|
-
TokenType:
|
|
5692
|
-
defaultOptions:
|
|
5693
|
-
getLineInfo:
|
|
5690
|
+
Token: Kt,
|
|
5691
|
+
TokenType: V,
|
|
5692
|
+
defaultOptions: Rt,
|
|
5693
|
+
getLineInfo: Si,
|
|
5694
5694
|
isIdentifierChar: Oe,
|
|
5695
5695
|
isIdentifierStart: Pe,
|
|
5696
|
-
isNewLine:
|
|
5696
|
+
isNewLine: Xe,
|
|
5697
5697
|
keywordTypes: at,
|
|
5698
5698
|
lineBreak: ue,
|
|
5699
5699
|
lineBreakG: Zs,
|
|
5700
|
-
nonASCIIwhitespace:
|
|
5700
|
+
nonASCIIwhitespace: wi,
|
|
5701
5701
|
parse: dh,
|
|
5702
5702
|
parseExpressionAt: mh,
|
|
5703
5703
|
tokContexts: H,
|
|
@@ -5705,7 +5705,7 @@ const vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5705
5705
|
tokenizer: yh,
|
|
5706
5706
|
version: wr
|
|
5707
5707
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5708
|
-
function
|
|
5708
|
+
function cs(e, t) {
|
|
5709
5709
|
for (var i = 0; i < t.length; i++) {
|
|
5710
5710
|
var s = t[i];
|
|
5711
5711
|
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(e, typeof (a = (function(o, h) {
|
|
@@ -5721,16 +5721,16 @@ function us(e, t) {
|
|
|
5721
5721
|
}
|
|
5722
5722
|
var a;
|
|
5723
5723
|
}
|
|
5724
|
-
function
|
|
5725
|
-
return
|
|
5724
|
+
function jt() {
|
|
5725
|
+
return jt = Object.assign ? Object.assign.bind() : function(e) {
|
|
5726
5726
|
for (var t = 1; t < arguments.length; t++) {
|
|
5727
5727
|
var i = arguments[t];
|
|
5728
5728
|
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
|
5729
5729
|
}
|
|
5730
5730
|
return e;
|
|
5731
|
-
},
|
|
5731
|
+
}, jt.apply(this, arguments);
|
|
5732
5732
|
}
|
|
5733
|
-
function
|
|
5733
|
+
function Nt(e, t) {
|
|
5734
5734
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, pi(e, t);
|
|
5735
5735
|
}
|
|
5736
5736
|
function pi(e, t) {
|
|
@@ -5738,19 +5738,19 @@ function pi(e, t) {
|
|
|
5738
5738
|
return i.__proto__ = s, i;
|
|
5739
5739
|
}, pi(e, t);
|
|
5740
5740
|
}
|
|
5741
|
-
function
|
|
5741
|
+
function hs(e, t) {
|
|
5742
5742
|
(t == null || t > e.length) && (t = e.length);
|
|
5743
5743
|
for (var i = 0, s = new Array(t); i < t; i++) s[i] = e[i];
|
|
5744
5744
|
return s;
|
|
5745
5745
|
}
|
|
5746
|
-
function
|
|
5746
|
+
function ps(e, t) {
|
|
5747
5747
|
var i = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
5748
5748
|
if (i) return (i = i.call(e)).next.bind(i);
|
|
5749
5749
|
if (Array.isArray(e) || (i = (function(a, o) {
|
|
5750
5750
|
if (a) {
|
|
5751
|
-
if (typeof a == "string") return
|
|
5751
|
+
if (typeof a == "string") return hs(a, o);
|
|
5752
5752
|
var h = Object.prototype.toString.call(a).slice(8, -1);
|
|
5753
|
-
return h === "Object" && a.constructor && (h = a.constructor.name), h === "Map" || h === "Set" ? Array.from(a) : h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h) ?
|
|
5753
|
+
return h === "Object" && a.constructor && (h = a.constructor.name), h === "Map" || h === "Set" ? Array.from(a) : h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h) ? hs(a, o) : void 0;
|
|
5754
5754
|
}
|
|
5755
5755
|
})(e)) || t) {
|
|
5756
5756
|
i && (e = i);
|
|
@@ -5764,19 +5764,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5764
5764
|
}
|
|
5765
5765
|
var ye = !0;
|
|
5766
5766
|
function ve(e, t) {
|
|
5767
|
-
return t === void 0 && (t = {}), new
|
|
5767
|
+
return t === void 0 && (t = {}), new V("name", t);
|
|
5768
5768
|
}
|
|
5769
5769
|
var xh = /* @__PURE__ */ new WeakMap();
|
|
5770
5770
|
function gh(e) {
|
|
5771
5771
|
var t = xh.get(e.Parser.acorn || e);
|
|
5772
5772
|
if (!t) {
|
|
5773
|
-
var i = { assert: ve(0, { startsExpr: ye }), asserts: ve(0, { startsExpr: ye }), global: ve(0, { startsExpr: ye }), keyof: ve(0, { startsExpr: ye }), readonly: ve(0, { startsExpr: ye }), unique: ve(0, { startsExpr: ye }), abstract: ve(0, { startsExpr: ye }), declare: ve(0, { startsExpr: ye }), enum: ve(0, { startsExpr: ye }), module: ve(0, { startsExpr: ye }), namespace: ve(0, { startsExpr: ye }), interface: ve(0, { startsExpr: ye }), type: ve(0, { startsExpr: ye }) }, s = { at: new
|
|
5773
|
+
var i = { assert: ve(0, { startsExpr: ye }), asserts: ve(0, { startsExpr: ye }), global: ve(0, { startsExpr: ye }), keyof: ve(0, { startsExpr: ye }), readonly: ve(0, { startsExpr: ye }), unique: ve(0, { startsExpr: ye }), abstract: ve(0, { startsExpr: ye }), declare: ve(0, { startsExpr: ye }), enum: ve(0, { startsExpr: ye }), module: ve(0, { startsExpr: ye }), namespace: ve(0, { startsExpr: ye }), interface: ve(0, { startsExpr: ye }), type: ve(0, { startsExpr: ye }) }, s = { at: new V("@"), jsxName: new V("jsxName"), jsxText: new V("jsxText", { beforeExpr: !0 }), jsxTagStart: new V("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: new V("jsxTagEnd") }, a = { tc_oTag: new oe("<tag", !1, !1), tc_cTag: new oe("</tag", !1, !1), tc_expr: new oe("<tag>...</tag>", !0, !0) }, o = new RegExp("^(?:" + Object.keys(i).join("|") + ")$");
|
|
5774
5774
|
s.jsxTagStart.updateContext = function() {
|
|
5775
5775
|
this.context.push(a.tc_expr), this.context.push(a.tc_oTag), this.exprAllowed = !1;
|
|
5776
5776
|
}, s.jsxTagEnd.updateContext = function(h) {
|
|
5777
5777
|
var d = this.context.pop();
|
|
5778
5778
|
d === a.tc_oTag && h === p.slash || d === a.tc_cTag ? (this.context.pop(), this.exprAllowed = this.curContext() === a.tc_expr) : this.exprAllowed = !0;
|
|
5779
|
-
}, t = { tokTypes:
|
|
5779
|
+
}, t = { tokTypes: jt({}, i, s), tokContexts: jt({}, a), keywordsRegExp: o, tokenIsLiteralPropertyName: function(h) {
|
|
5780
5780
|
return [p.name, p.string, p.num].concat(Object.values(at), Object.values(i)).includes(h);
|
|
5781
5781
|
}, tokenIsKeywordOrIdentifier: function(h) {
|
|
5782
5782
|
return [p.name].concat(Object.values(at), Object.values(i)).includes(h);
|
|
@@ -5792,14 +5792,14 @@ function gh(e) {
|
|
|
5792
5792
|
}
|
|
5793
5793
|
return t;
|
|
5794
5794
|
}
|
|
5795
|
-
var lt = 1024, bh = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"),
|
|
5795
|
+
var lt = 1024, bh = new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*", "y"), ls = new RegExp("(?=(" + bh.source + "))\\1" + /(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source, "y"), ft = function() {
|
|
5796
5796
|
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;
|
|
5797
5797
|
};
|
|
5798
5798
|
function kh(e, t) {
|
|
5799
5799
|
var i = t.key.name, s = e[i], a = "true";
|
|
5800
5800
|
return t.type !== "MethodDefinition" || t.kind !== "get" && t.kind !== "set" || (a = (t.static ? "s" : "i") + t.kind), s === "iget" && a === "iset" || s === "iset" && a === "iget" || s === "sget" && a === "sset" || s === "sset" && a === "sget" ? (e[i] = "true", !1) : !!s || (e[i] = a, !1);
|
|
5801
5801
|
}
|
|
5802
|
-
function
|
|
5802
|
+
function fs(e, t) {
|
|
5803
5803
|
var i = e.key;
|
|
5804
5804
|
return !e.computed && (i.type === "Identifier" && i.name === t || i.type === "Literal" && i.value === t);
|
|
5805
5805
|
}
|
|
@@ -5845,7 +5845,7 @@ function mt(e) {
|
|
|
5845
5845
|
return e && (e.type === "JSXIdentifier" ? e.name : e.type === "JSXNamespacedName" ? e.namespace.name + ":" + e.name.name : e.type === "JSXMemberExpression" ? mt(e.object) + "." + mt(e.property) : void 0);
|
|
5846
5846
|
}
|
|
5847
5847
|
var si = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
5848
|
-
function
|
|
5848
|
+
function ds(e) {
|
|
5849
5849
|
if (!e) throw new Error("Assert fail");
|
|
5850
5850
|
}
|
|
5851
5851
|
function _h(e) {
|
|
@@ -5865,13 +5865,13 @@ function Ah(e) {
|
|
|
5865
5865
|
function Sr(e) {
|
|
5866
5866
|
return e.type === "Identifier" || e.type === "MemberExpression" && !e.computed && Sr(e.object);
|
|
5867
5867
|
}
|
|
5868
|
-
function
|
|
5868
|
+
function ms(e) {
|
|
5869
5869
|
return e === "private" || e === "public" || e === "protected";
|
|
5870
5870
|
}
|
|
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, Ne = d.isIdentifierChar, R = y.tokTypes, re = y.tokContexts, de = y.keywordsRegExp, ge = y.tokenIsLiteralPropertyName,
|
|
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, Ne = 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++) {
|
|
@@ -5886,7 +5886,7 @@ function Ch(e) {
|
|
|
5886
5886
|
function r() {
|
|
5887
5887
|
return f.apply(this, arguments) || this;
|
|
5888
5888
|
}
|
|
5889
|
-
|
|
5889
|
+
Nt(r, f);
|
|
5890
5890
|
var n = r.prototype;
|
|
5891
5891
|
return n.takeDecorators = function(c) {
|
|
5892
5892
|
var l = this.decoratorStack[this.decoratorStack.length - 1];
|
|
@@ -5926,7 +5926,7 @@ function Ch(e) {
|
|
|
5926
5926
|
function m() {
|
|
5927
5927
|
return l.apply(this, arguments) || this;
|
|
5928
5928
|
}
|
|
5929
|
-
|
|
5929
|
+
Nt(m, l);
|
|
5930
5930
|
var v = m.prototype;
|
|
5931
5931
|
return v.jsx_readToken = function() {
|
|
5932
5932
|
for (var x = "", b = this.pos; ; ) {
|
|
@@ -6022,12 +6022,12 @@ function Ch(e) {
|
|
|
6022
6022
|
var k = this.startNodeAt(x, b), T = this.jsx_parseElementName();
|
|
6023
6023
|
return T && (k.name = T), this.expect(f.jsxTagEnd), this.finishNode(k, T ? "JSXClosingElement" : "JSXClosingFragment");
|
|
6024
6024
|
}, v.jsx_parseElementAt = function(x, b) {
|
|
6025
|
-
var k = this.startNodeAt(x, b), T = [], N = this.jsx_parseOpeningElementAt(x, b),
|
|
6025
|
+
var k = this.startNodeAt(x, b), T = [], N = this.jsx_parseOpeningElementAt(x, b), z = null;
|
|
6026
6026
|
if (!N.selfClosing) {
|
|
6027
6027
|
e: for (; ; ) switch (this.type) {
|
|
6028
6028
|
case f.jsxTagStart:
|
|
6029
6029
|
if (x = this.start, b = this.startLoc, this.next(), this.eat(B.slash)) {
|
|
6030
|
-
|
|
6030
|
+
z = this.jsx_parseClosingElementAt(x, b);
|
|
6031
6031
|
break e;
|
|
6032
6032
|
}
|
|
6033
6033
|
T.push(this.jsx_parseElementAt(x, b));
|
|
@@ -6041,10 +6041,10 @@ function Ch(e) {
|
|
|
6041
6041
|
default:
|
|
6042
6042
|
this.unexpected();
|
|
6043
6043
|
}
|
|
6044
|
-
mt(
|
|
6044
|
+
mt(z.name) !== mt(N.name) && this.raise(z.start, "Expected corresponding JSX closing tag for <" + mt(N.name) + ">");
|
|
6045
6045
|
}
|
|
6046
6046
|
var C = N.name ? "Element" : "Fragment";
|
|
6047
|
-
return k["opening" + C] = N, k["closing" + C] =
|
|
6047
|
+
return k["opening" + C] = N, k["closing" + C] = z, k.children = T, this.type === B.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(k, "JSX" + C);
|
|
6048
6048
|
}, v.jsx_parseText = function() {
|
|
6049
6049
|
var x = this.parseLiteral(this.value);
|
|
6050
6050
|
return x.type = "JSXText", x;
|
|
@@ -6059,7 +6059,7 @@ function Ch(e) {
|
|
|
6059
6059
|
function r() {
|
|
6060
6060
|
return f.apply(this, arguments) || this;
|
|
6061
6061
|
}
|
|
6062
|
-
|
|
6062
|
+
Nt(r, f);
|
|
6063
6063
|
var n = r.prototype;
|
|
6064
6064
|
return n.parseMaybeImportAttributes = function(c) {
|
|
6065
6065
|
if (this.type === B._with || this.type === te.assert) {
|
|
@@ -6090,7 +6090,7 @@ function Ch(e) {
|
|
|
6090
6090
|
return m;
|
|
6091
6091
|
})(l), { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: I.InvalidModifierOnTypeParameterPositions }), l;
|
|
6092
6092
|
}
|
|
6093
|
-
|
|
6093
|
+
Nt(pe, _);
|
|
6094
6094
|
var ne, te, B, f = pe.prototype;
|
|
6095
6095
|
return f.getTokenFromCodeInType = function(r) {
|
|
6096
6096
|
return r === 62 || r === 60 ? this.finishOp(u.relational, 1) : _.prototype.getTokenFromCode.call(this, r);
|
|
@@ -6141,7 +6141,7 @@ function Ch(e) {
|
|
|
6141
6141
|
return this.nextTokenStartSince(this.pos);
|
|
6142
6142
|
}, f.tsHasSomeModifiers = function(r, n) {
|
|
6143
6143
|
return n.some(function(c) {
|
|
6144
|
-
return
|
|
6144
|
+
return ms(c) ? r.accessibility === c : !!r[c];
|
|
6145
6145
|
});
|
|
6146
6146
|
}, f.tsIsStartOfStaticBlocks = function() {
|
|
6147
6147
|
return this.isContextual("static") && this.lookaheadCharCode() === 123;
|
|
@@ -6239,7 +6239,7 @@ function Ch(e) {
|
|
|
6239
6239
|
}, f.isLineTerminator = function() {
|
|
6240
6240
|
return this.eat(u.semi) || _.prototype.canInsertSemicolon.call(this);
|
|
6241
6241
|
}, f.hasFollowingLineBreak = function() {
|
|
6242
|
-
return
|
|
6242
|
+
return ls.lastIndex = this.end, ls.test(this.input);
|
|
6243
6243
|
}, f.addExtra = function(r, n, c, l) {
|
|
6244
6244
|
if (l === void 0 && (l = !0), r) {
|
|
6245
6245
|
var m = r.extra = r.extra || {};
|
|
@@ -6667,7 +6667,7 @@ function Ch(e) {
|
|
|
6667
6667
|
return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(u._new) ? this.tsParseFunctionOrConstructorType("TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher();
|
|
6668
6668
|
}, f.tsParseType = function() {
|
|
6669
6669
|
var r = this;
|
|
6670
|
-
|
|
6670
|
+
ds(this.inType);
|
|
6671
6671
|
var n = this.tsParseNonConditionalType();
|
|
6672
6672
|
if (this.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(u._extends)) return n;
|
|
6673
6673
|
var c = this.startNodeAtNode(n);
|
|
@@ -6735,9 +6735,9 @@ function Ch(e) {
|
|
|
6735
6735
|
}, N = function(G, W, J, ie) {
|
|
6736
6736
|
(c[J] && W === ie || c[ie] && W === J) && n.raise(G.column, I.IncompatibleModifiers({ modifiers: [J, ie] }));
|
|
6737
6737
|
}; ; ) {
|
|
6738
|
-
var
|
|
6738
|
+
var z = this.startLoc, C = this.tsParseModifier(l.concat(m ?? []), v);
|
|
6739
6739
|
if (!C) break;
|
|
6740
|
-
|
|
6740
|
+
ms(C) ? c.accessibility ? this.raise(this.start, I.DuplicateAccessibilityModifier()) : (T(z, C, C, "override"), T(z, C, C, "static"), T(z, C, C, "readonly"), T(z, C, C, "accessor"), k.accessibility = C, c.accessibility = C) : Ph(C) ? c[C] ? this.raise(this.start, I.DuplicateModifier({ modifier: C })) : (T(z, C, "in", "out"), k[C] = C, c[C] = !0) : _h(C) ? c[C] ? this.raise(this.start, I.DuplicateModifier({ modifier: C })) : (N(z, C, "accessor", "readonly"), N(z, C, "accessor", "static"), N(z, C, "accessor", "override"), k[C] = C, c[C] = !0) : Object.hasOwnProperty.call(c, C) ? this.raise(this.start, I.DuplicateModifier({ modifier: C })) : (T(z, C, "static", "readonly"), T(z, C, "static", "override"), T(z, C, "override", "readonly"), T(z, C, "abstract", "override"), N(z, C, "declare", "override"), N(z, C, "static", "abstract"), k[C] = C, c[C] = !0), m != null && m.includes(C) && this.raise(this.start, b);
|
|
6741
6741
|
}
|
|
6742
6742
|
return k;
|
|
6743
6743
|
}, f.tsParseInOutModifiers = function(r) {
|
|
@@ -7017,7 +7017,7 @@ function Ch(e) {
|
|
|
7017
7017
|
else {
|
|
7018
7018
|
if (r.declaration = null, r.specifiers = this.parseExportSpecifiers(n), this.eatContextual("from")) this.type !== u.string && this.unexpected(), r.source = this.parseExprAtom(), this.parseMaybeImportAttributes(r);
|
|
7019
7019
|
else {
|
|
7020
|
-
for (var x, b =
|
|
7020
|
+
for (var x, b = ps(r.specifiers); !(x = b()).done; ) {
|
|
7021
7021
|
var k = x.value;
|
|
7022
7022
|
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`.");
|
|
7023
7023
|
}
|
|
@@ -7073,14 +7073,14 @@ function Ch(e) {
|
|
|
7073
7073
|
this.unexpected();
|
|
7074
7074
|
}, f.parseIdentNode = function() {
|
|
7075
7075
|
var r = this.startNode();
|
|
7076
|
-
return
|
|
7076
|
+
return Tt(this.type) ? (r.name = this.value, r) : _.prototype.parseIdentNode.call(this);
|
|
7077
7077
|
}, f.parseVarStatement = function(r, n, c) {
|
|
7078
7078
|
c === void 0 && (c = !1);
|
|
7079
7079
|
var l = this.isAmbientContext;
|
|
7080
7080
|
this.next(), _.prototype.parseVar.call(this, r, !1, n, c || l), this.semicolon();
|
|
7081
7081
|
var m = this.finishNode(r, "VariableDeclaration");
|
|
7082
7082
|
if (!l) return m;
|
|
7083
|
-
for (var v, x =
|
|
7083
|
+
for (var v, x = ps(m.declarations); !(v = x()).done; ) {
|
|
7084
7084
|
var b = v.value, k = b.init;
|
|
7085
7085
|
k && (n !== "const" || b.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) && !Ah(k) && this.raise(k.start, I.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference));
|
|
7086
7086
|
}
|
|
@@ -7157,7 +7157,7 @@ function Ch(e) {
|
|
|
7157
7157
|
var b = r.declare, k = r.kind;
|
|
7158
7158
|
!(b !== void 0 && b) || k !== "get" && k !== "set" || this.raise(r.start, I.DeclareAccessor({ kind: k })), x && (r.typeParameters = x);
|
|
7159
7159
|
var T = r.key;
|
|
7160
|
-
r.kind === "constructor" ? (n && this.raise(T.start, "Constructor can't be a generator"), c && this.raise(T.start, "Constructor can't be an async method")) : r.static &&
|
|
7160
|
+
r.kind === "constructor" ? (n && this.raise(T.start, "Constructor can't be a generator"), c && this.raise(T.start, "Constructor can't be an async method")) : r.static && fs(r, "prototype") && this.raise(T.start, "Classes may not have a static property named prototype");
|
|
7161
7161
|
var N = r.value = this.parseMethod(n, c, l, !0, r);
|
|
7162
7162
|
return r.kind === "get" && N.params.length !== 0 && this.raiseRecoverable(N.start, "getter should have no params"), r.kind === "set" && N.params.length !== 1 && this.raiseRecoverable(N.start, "setter should have exactly one param"), r.kind === "set" && N.params[0].type === "RestElement" && this.raiseRecoverable(N.params[0].start, "Setter cannot use rest params"), this.finishNode(r, "MethodDefinition");
|
|
7163
7163
|
}, f.isClassMethod = function() {
|
|
@@ -7167,7 +7167,7 @@ function Ch(e) {
|
|
|
7167
7167
|
if (this.eat(u.semi)) return null;
|
|
7168
7168
|
var c, l = this.options.ecmaVersion, m = this.startNode(), v = "", x = !1, b = !1, k = "method", T = ["declare", "private", "public", "protected", "accessor", "override", "abstract", "readonly", "static"], N = this.tsParseModifiers({ modified: m, allowedModifiers: T, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: I.InvalidModifierOnTypeParameterPositions });
|
|
7169
7169
|
c = !!N.static;
|
|
7170
|
-
var
|
|
7170
|
+
var z = function() {
|
|
7171
7171
|
if (!n.tsIsStartOfStaticBlocks()) {
|
|
7172
7172
|
var C = n.tsTryParseIndexSignature(m);
|
|
7173
7173
|
if (C) return m.abstract && n.raise(m.start, I.IndexSignatureHasAbstract), m.accessibility && n.raise(m.start, I.IndexSignatureHasAccessibility({ modifier: m.accessibility })), m.declare && n.raise(m.start, I.IndexSignatureHasDeclare), m.override && n.raise(m.start, I.IndexSignatureHasOverride), C;
|
|
@@ -7176,14 +7176,14 @@ function Ch(e) {
|
|
|
7176
7176
|
(n.eatContextual("get") || n.eatContextual("set")) && (n.isClassElementNameStart() ? k = G : v = G);
|
|
7177
7177
|
}
|
|
7178
7178
|
if (v ? (m.computed = !1, m.key = n.startNodeAt(n.lastTokStart, n.lastTokStartLoc), m.key.name = v, n.finishNode(m.key, "Identifier")) : n.parseClassElementName(m), n.parsePostMemberNameModifiers(m), n.isClassMethod() || l < 13 || n.type === u.parenL || k !== "method" || x || b) {
|
|
7179
|
-
var W = !m.static &&
|
|
7179
|
+
var W = !m.static && fs(m, "constructor"), J = W && r;
|
|
7180
7180
|
W && k !== "method" && n.raise(m.key.start, "Constructor can't have get/set modifier"), m.kind = W ? "constructor" : k, n.parseClassMethod(m, x, b, J);
|
|
7181
7181
|
} else n.parseClassField(m);
|
|
7182
7182
|
return m;
|
|
7183
7183
|
}
|
|
7184
7184
|
if (n.next(), n.next(), n.tsHasSomeModifiers(m, T) && n.raise(n.start, I.StaticBlockCannotHaveModifier), l >= 13) return _.prototype.parseClassStaticBlock.call(n, m), m;
|
|
7185
7185
|
};
|
|
7186
|
-
return m.declare ? this.tsInAmbientContext(
|
|
7186
|
+
return m.declare ? this.tsInAmbientContext(z) : z(), m;
|
|
7187
7187
|
}, f.isClassElementNameStart = function() {
|
|
7188
7188
|
return !!this.tsIsIdentifier() || _.prototype.isClassElementNameStart.call(this);
|
|
7189
7189
|
}, f.parseClassSuper = function(r) {
|
|
@@ -7217,15 +7217,15 @@ function Ch(e) {
|
|
|
7217
7217
|
}
|
|
7218
7218
|
return l && this.checkExpressionErrors(n, !0), m > -1 && (n.parenthesizedAssign = m), v > -1 && (n.trailingComma = v), T;
|
|
7219
7219
|
}, f.parseMaybeAssign = function(r, n, c) {
|
|
7220
|
-
var l, m, v, x, b, k, T, N,
|
|
7220
|
+
var l, m, v, x, b, k, T, N, z, C, G, W = this;
|
|
7221
7221
|
if (this.matchJsx("jsxTagStart") || this.tsMatchLeftRelational()) {
|
|
7222
|
-
if (N = this.cloneCurLookaheadState(), !(
|
|
7222
|
+
if (N = this.cloneCurLookaheadState(), !(z = this.tryParse(function() {
|
|
7223
7223
|
return W.parseMaybeAssignOrigin(r, n, c);
|
|
7224
|
-
}, N)).error) return
|
|
7224
|
+
}, N)).error) return z.node;
|
|
7225
7225
|
var J = this.context, ie = J[J.length - 1];
|
|
7226
7226
|
ie === y.tokContexts.tc_oTag && J[J.length - 2] === y.tokContexts.tc_expr ? (J.pop(), J.pop()) : ie !== y.tokContexts.tc_oTag && ie !== y.tokContexts.tc_expr || J.pop();
|
|
7227
7227
|
}
|
|
7228
|
-
if (!((l =
|
|
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
7230
|
var me = this.tryParse(function(Fe) {
|
|
7231
7231
|
var ht, pt;
|
|
@@ -7234,13 +7234,13 @@ function Ch(e) {
|
|
|
7234
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
|
-
if (!
|
|
7237
|
+
if (!z && (ds(!0), !(C = this.tryParse(function() {
|
|
7238
7238
|
return W.parseMaybeAssignOrigin(r, n, c);
|
|
7239
7239
|
}, N)).error)) return C.node;
|
|
7240
|
-
if ((m =
|
|
7240
|
+
if ((m = z) != null && m.node) return this.setLookaheadState(z.failState), z.node;
|
|
7241
7241
|
if (me.node) return this.setLookaheadState(me.failState), G && this.reportReservedArrowTypeParam(G), me.node;
|
|
7242
7242
|
if ((v = C) != null && v.node) return this.setLookaheadState(C.failState), C.node;
|
|
7243
|
-
throw (x =
|
|
7243
|
+
throw (x = z) != null && x.thrown ? z.error : me.thrown ? me.error : (b = C) != null && b.thrown ? C.error : ((k = z) == null ? void 0 : k.error) || me.error || ((T = C) == null ? void 0 : T.error);
|
|
7244
7244
|
}, f.parseAssignableListItem = function(r) {
|
|
7245
7245
|
for (var n = []; this.match(R.at); ) n.push(this.parseDecorator());
|
|
7246
7246
|
var c, l = this.start, m = this.startLoc, v = !1, x = !1;
|
|
@@ -7364,9 +7364,9 @@ function Ch(e) {
|
|
|
7364
7364
|
if (this.options.ecmaVersion >= 6) {
|
|
7365
7365
|
var x = this.maybeInArrowParameters;
|
|
7366
7366
|
this.maybeInArrowParameters = !0, this.next();
|
|
7367
|
-
var b, k = this.start, T = this.startLoc, N = [],
|
|
7367
|
+
var b, k = this.start, T = this.startLoc, N = [], z = !0, C = !1, G = new ft(), W = this.yieldPos, J = this.awaitPos;
|
|
7368
7368
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== u.parenR; ) {
|
|
7369
|
-
if (
|
|
7369
|
+
if (z ? z = !1 : this.expect(u.comma), v && this.afterTrailingComma(u.parenR, !0)) {
|
|
7370
7370
|
C = !0;
|
|
7371
7371
|
break;
|
|
7372
7372
|
}
|
|
@@ -7420,29 +7420,29 @@ function Ch(e) {
|
|
|
7420
7420
|
r.optional = !0, k = N = !0, this.next();
|
|
7421
7421
|
}
|
|
7422
7422
|
if (this.tsMatchLeftRelational() || this.match(u.bitShift)) {
|
|
7423
|
-
var
|
|
7423
|
+
var z, C = this.tsTryParseAndCatch(function() {
|
|
7424
7424
|
if (!l && b.atPossibleAsyncArrow(r)) {
|
|
7425
|
-
var
|
|
7426
|
-
if (
|
|
7425
|
+
var Ni = b.tsTryParseGenericAsyncArrowFunction(n, c, x);
|
|
7426
|
+
if (Ni) return r = Ni;
|
|
7427
7427
|
}
|
|
7428
|
-
var
|
|
7429
|
-
if (!
|
|
7430
|
-
if (N && !b.match(u.parenL)) return
|
|
7431
|
-
if (
|
|
7432
|
-
var
|
|
7433
|
-
return
|
|
7428
|
+
var Pt = b.tsParseTypeArgumentsInExpression();
|
|
7429
|
+
if (!Pt) return r;
|
|
7430
|
+
if (N && !b.match(u.parenL)) return z = b.curPosition(), r;
|
|
7431
|
+
if (Ke(b.type) || b.type === u.backQuote) {
|
|
7432
|
+
var Li = b.parseTaggedTemplateExpression(r, n, c, k);
|
|
7433
|
+
return Li.typeParameters = Pt, Li;
|
|
7434
7434
|
}
|
|
7435
7435
|
if (!l && b.eat(u.parenL)) {
|
|
7436
|
-
var
|
|
7437
|
-
return Ye.callee = r, Ye.arguments = b.parseExprList(u.parenR, b.options.ecmaVersion >= 8, !1,
|
|
7436
|
+
var Oi = new ft(), Ye = b.startNodeAt(n, c);
|
|
7437
|
+
return Ye.callee = r, Ye.arguments = b.parseExprList(u.parenR, b.options.ecmaVersion >= 8, !1, Oi), b.tsCheckForInvalidTypeCasts(Ye.arguments), Ye.typeParameters = Pt, k && (Ye.optional = N), b.checkExpressionErrors(Oi, !0), r = b.finishNode(Ye, "CallExpression");
|
|
7438
7438
|
}
|
|
7439
7439
|
var Jt = b.type;
|
|
7440
|
-
if (!(b.tsMatchRightRelational() || Jt === u.bitShift || Jt !== u.parenL && (
|
|
7441
|
-
var
|
|
7442
|
-
return Xt.expression = r, Xt.typeParameters =
|
|
7440
|
+
if (!(b.tsMatchRightRelational() || Jt === u.bitShift || Jt !== u.parenL && (Mi = Jt, !!Mi.startsExpr) && !b.hasPrecedingLineBreak())) {
|
|
7441
|
+
var Mi, Xt = b.startNodeAt(n, c);
|
|
7442
|
+
return Xt.expression = r, Xt.typeParameters = Pt, b.finishNode(Xt, "TSInstantiationExpression");
|
|
7443
7443
|
}
|
|
7444
7444
|
});
|
|
7445
|
-
if (
|
|
7445
|
+
if (z && this.unexpected(z), C) return C.type === "TSInstantiationExpression" && (this.match(u.dot) || this.match(u.questionDot) && this.lookaheadCharCode() !== 40) && this.raise(this.start, I.InvalidPropertyAccessAfterInstantiationExpression), r = C;
|
|
7446
7446
|
}
|
|
7447
7447
|
var G = this.options.ecmaVersion >= 11, W = G && this.eat(u.questionDot);
|
|
7448
7448
|
l && W && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
@@ -7455,12 +7455,12 @@ function Ch(e) {
|
|
|
7455
7455
|
this.maybeInArrowParameters = !0;
|
|
7456
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
|
|
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,
|
|
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
7461
|
this.checkExpressionErrors(Fe, !0), this.yieldPos = ht || this.yieldPos, this.awaitPos = pt || this.awaitPos, this.awaitIdentPos = je || this.awaitIdentPos;
|
|
7462
|
-
var
|
|
7463
|
-
|
|
7462
|
+
var _t = this.startNodeAt(n, c);
|
|
7463
|
+
_t.callee = r, _t.arguments = Ii, G && (_t.optional = W), r = this.finishNode(_t, "CallExpression");
|
|
7464
7464
|
}
|
|
7465
7465
|
this.maybeInArrowParameters = me;
|
|
7466
7466
|
} else if (this.type === u.backQuote) {
|
|
@@ -7545,10 +7545,10 @@ function Ch(e) {
|
|
|
7545
7545
|
if (this.isContextual("as")) {
|
|
7546
7546
|
var N = this.parseIdent();
|
|
7547
7547
|
if (this.isContextual("as")) {
|
|
7548
|
-
var
|
|
7549
|
-
|
|
7550
|
-
} else
|
|
7551
|
-
} else
|
|
7548
|
+
var z = this.parseIdent();
|
|
7549
|
+
Tt(this.type) ? (b = !0, x = N, l = n ? this.parseIdent() : this.parseModuleExportName(), k = !1) : (l = z, k = !1);
|
|
7550
|
+
} else Tt(this.type) ? (k = !1, l = n ? this.parseIdent() : this.parseModuleExportName()) : (b = !0, x = N);
|
|
7551
|
+
} else Tt(this.type) && (b = !0, n ? (x = _.prototype.parseIdent.call(this, !0), this.isContextual("as") || this.checkUnreserved(x)) : x = this.parseModuleExportName());
|
|
7552
7552
|
b && c && this.raise(T, n ? I.TypeModifierIsUsedInTypeImports : I.TypeModifierIsUsedInTypeExports), r[m] = x, r[v] = l, r[n ? "importKind" : "exportKind"] = b ? "type" : "value", k && this.eatContextual("as") && (r[v] = n ? this.parseIdent() : this.parseModuleExportName()), r[v] || (r[v] = this.copyNode(r[m])), n && this.checkLValSimple(r[v], 2);
|
|
7553
7553
|
}, f.raiseCommonCheck = function(r, n, c) {
|
|
7554
7554
|
return n === "Comma is not permitted after the rest element" ? this.isAmbientContext && this.match(u.comma) && this.lookaheadCharCode() === 41 ? void this.next() : _.prototype.raise.call(this, r, n) : c ? _.prototype.raiseRecoverable.call(this, r, n) : _.prototype.raise.call(this, r, n);
|
|
@@ -7612,13 +7612,13 @@ function Ch(e) {
|
|
|
7612
7612
|
return y;
|
|
7613
7613
|
} }], (te = [{ key: "acornTypeScript", get: function() {
|
|
7614
7614
|
return y;
|
|
7615
|
-
} }]) &&
|
|
7615
|
+
} }]) && cs(ne.prototype, te), B && cs(ne, B), Object.defineProperty(ne, "prototype", { writable: !1 }), pe;
|
|
7616
7616
|
})(h);
|
|
7617
7617
|
return Ir;
|
|
7618
7618
|
};
|
|
7619
7619
|
}
|
|
7620
7620
|
const Eh = vs(ys);
|
|
7621
|
-
function
|
|
7621
|
+
function Ei(e) {
|
|
7622
7622
|
const i = X.extend(Ch()).parse(e, {
|
|
7623
7623
|
ecmaVersion: "latest",
|
|
7624
7624
|
sourceType: "module",
|
|
@@ -7640,35 +7640,35 @@ function Ih(e) {
|
|
|
7640
7640
|
}
|
|
7641
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 ze(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
|
-
async function
|
|
7664
|
+
async function St(e) {
|
|
7665
7665
|
return JSON.parse(await $.readFile(e, "utf8"));
|
|
7666
7666
|
}
|
|
7667
7667
|
async function li(e) {
|
|
7668
7668
|
return await $.readFile(e, "utf8");
|
|
7669
7669
|
}
|
|
7670
7670
|
async function Ae(e, t = [], i = !1) {
|
|
7671
|
-
return
|
|
7671
|
+
return We(`Spawn command: ${e} ${t.join(" ")}`), new Promise((s, a) => {
|
|
7672
7672
|
Nr(e, t, { stdio: "inherit" }).on("close", (h) => {
|
|
7673
7673
|
h === 0 || i ? s() : a(new Error(`${e} exited with code ${h}`));
|
|
7674
7674
|
});
|
|
@@ -7687,78 +7687,83 @@ function fi(e, t) {
|
|
|
7687
7687
|
else a && typeof a == "object" && typeof a.type == "string" && fi(a, t);
|
|
7688
7688
|
}
|
|
7689
7689
|
}
|
|
7690
|
-
async function
|
|
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
|
-
async function
|
|
7696
|
+
async function $h() {
|
|
7697
7697
|
try {
|
|
7698
|
-
|
|
7698
|
+
ze("Build Artifact"), await Ae("vite", ["build"]), Ve("Artifact build complete.");
|
|
7699
7699
|
} catch (e) {
|
|
7700
7700
|
console.error("â Error building artifact.", e), process.exit(1);
|
|
7701
7701
|
}
|
|
7702
7702
|
}
|
|
7703
|
-
async function
|
|
7703
|
+
async function Uh(e = !1) {
|
|
7704
7704
|
try {
|
|
7705
|
-
|
|
7706
|
-
const t = await
|
|
7707
|
-
await _r(t), await Ae("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"]),
|
|
7705
|
+
ze("Release Artifact");
|
|
7706
|
+
const t = await St("package.json");
|
|
7707
|
+
await _r(t), await Lh(t), await Ae("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(`Version ${t.version} of artifact released.`);
|
|
7708
7708
|
} catch (t) {
|
|
7709
7709
|
console.error("â Error releasing artifact.", t), process.exit(1);
|
|
7710
7710
|
}
|
|
7711
7711
|
}
|
|
7712
|
-
async function
|
|
7712
|
+
async function Zh() {
|
|
7713
7713
|
try {
|
|
7714
|
-
|
|
7715
|
-
const e = await
|
|
7716
|
-
|
|
7714
|
+
ze("Synchronising Artifact with GitHub");
|
|
7715
|
+
const e = await St("package.json");
|
|
7716
|
+
We("Bump artifact version"), await _r(e), await _e("git", ["add", "."]), await _e("git", ["commit", "-m", `"v${e.version}"`]), await _e("git", ["push", "origin", "main:main"]), Ve(`Version ${e.version} of artifact synchronised with GitHub.`);
|
|
7717
7717
|
} catch (e) {
|
|
7718
7718
|
console.error("â Error synchronising artifact with GitHub.", e), process.exit(1);
|
|
7719
7719
|
}
|
|
7720
7720
|
}
|
|
7721
|
-
function
|
|
7721
|
+
function qh() {
|
|
7722
7722
|
console.log("Test artifact...");
|
|
7723
7723
|
}
|
|
7724
|
+
async function Lh(e) {
|
|
7725
|
+
We("Build artifact configuration");
|
|
7726
|
+
const t = await St("config.json");
|
|
7727
|
+
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.");
|
|
7728
|
+
}
|
|
7724
7729
|
async function _r(e, t = "./") {
|
|
7725
|
-
if (
|
|
7726
|
-
e.version = "0.0.001", console.warn(`â ī¸
|
|
7730
|
+
if (We("Bump artifact version"), e.version == null)
|
|
7731
|
+
e.version = "0.0.001", console.warn(`â ī¸ Artifact version initialised to ${e.version}.`), await di(`${t}package.json`, e);
|
|
7727
7732
|
else {
|
|
7728
7733
|
const i = e.version, s = e.version.split(".");
|
|
7729
|
-
e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`âšī¸
|
|
7734
|
+
e.version = `${s[0]}.${s[1]}.${Number(s[2]) + 1}`, console.info(`âšī¸ Artifact version bumped from ${i} to ${e.version}.`), await di(`${t}package.json`, e);
|
|
7730
7735
|
}
|
|
7731
7736
|
}
|
|
7732
|
-
const
|
|
7733
|
-
async function
|
|
7737
|
+
const Oh = ["critical", "high", "moderate", "low", "unknown"];
|
|
7738
|
+
async function Hh() {
|
|
7734
7739
|
try {
|
|
7735
|
-
|
|
7740
|
+
ze("Audit Dependencies"), await Nh(), await Ae("owasp-dependency-check", [
|
|
7736
7741
|
"--project",
|
|
7737
7742
|
"@datapos/datapos-development",
|
|
7738
7743
|
"--enableRetired",
|
|
7739
7744
|
"--nodePackageSkipDevDependencies",
|
|
7740
7745
|
"--nvdApiKey",
|
|
7741
7746
|
process.env.NVD_API_KEY ?? ""
|
|
7742
|
-
]),
|
|
7747
|
+
]), We("Insert OWASP Badge(s) into 'README.md'"), await Mh(), await Ae("npm", ["audit"]), Ve("Dependency auditing complete.");
|
|
7743
7748
|
} catch (e) {
|
|
7744
7749
|
console.error("â Error auditing dependencies.", e), process.exit(1);
|
|
7745
7750
|
}
|
|
7746
7751
|
}
|
|
7747
|
-
async function
|
|
7752
|
+
async function Mh() {
|
|
7748
7753
|
const e = "<!-- OWASP_BADGES_START -->", t = "<!-- OWASP_BADGES_END -->";
|
|
7749
7754
|
try {
|
|
7750
|
-
const i = await
|
|
7755
|
+
const i = await St("./dependency-check-reports/dependency-check-report.json"), s = { critical: 0, high: 0, moderate: 0, low: 0, unknown: 0 };
|
|
7751
7756
|
for (const S of i.dependencies)
|
|
7752
7757
|
if (S.vulnerabilities != null)
|
|
7753
7758
|
for (const P of S.vulnerabilities) {
|
|
7754
7759
|
const M = P.severity?.toLowerCase() ?? "unknown";
|
|
7755
7760
|
if (M in s) {
|
|
7756
|
-
const U =
|
|
7761
|
+
const U = Oh.find((he) => he === M);
|
|
7757
7762
|
s[U ?? "unknown"]++;
|
|
7758
7763
|
} else
|
|
7759
7764
|
s.unknown++;
|
|
7760
7765
|
}
|
|
7761
|
-
const a = await
|
|
7766
|
+
const a = await Rh(s), o = await li("./README.md"), h = o.indexOf(e), d = o.indexOf(t);
|
|
7762
7767
|
if (h === -1 || d === -1) {
|
|
7763
7768
|
console.error("â No OWASP badge markers found in 'README.md'.");
|
|
7764
7769
|
return;
|
|
@@ -7769,14 +7774,14 @@ async function Oh() {
|
|
|
7769
7774
|
console.error("â Error inserting OWASP badges into 'README.md'.", i);
|
|
7770
7775
|
}
|
|
7771
7776
|
}
|
|
7772
|
-
async function
|
|
7777
|
+
async function Rh(e) {
|
|
7773
7778
|
const t = {
|
|
7774
7779
|
critical: { color: "D32F2F", label: "critical" },
|
|
7775
7780
|
high: { color: "EF6C00", label: "high" },
|
|
7776
7781
|
moderate: { color: "FBC02D", label: "moderate" },
|
|
7777
7782
|
low: { color: "6D8C31", label: "low" },
|
|
7778
7783
|
unknown: { color: "616161", label: "unknown" }
|
|
7779
|
-
}, i = await
|
|
7784
|
+
}, i = await St("config.json"), s = [];
|
|
7780
7785
|
if (Object.values(e).reduce((o, h) => o + h, 0) === 0)
|
|
7781
7786
|
console.info("â
No vulnerabilities found."), s.push(`[](https://data-positioning.github.io/${i.id}/dependency-check-reports/dependency-check-report.html)`);
|
|
7782
7787
|
else
|
|
@@ -7788,16 +7793,16 @@ async function Mh(e) {
|
|
|
7788
7793
|
}
|
|
7789
7794
|
return s;
|
|
7790
7795
|
}
|
|
7791
|
-
async function
|
|
7796
|
+
async function Wh() {
|
|
7792
7797
|
try {
|
|
7793
|
-
|
|
7798
|
+
ze("Check Dependencies"), await Ae("npm", ["outdated"], !0), await Ae("npm-check-updates", ["-i"]), Ve("Dependency checking complete.");
|
|
7794
7799
|
} catch (e) {
|
|
7795
7800
|
console.error("â Error checking dependencies.", e), process.exit(1);
|
|
7796
7801
|
}
|
|
7797
7802
|
}
|
|
7798
|
-
async function
|
|
7803
|
+
async function Kh(e) {
|
|
7799
7804
|
try {
|
|
7800
|
-
|
|
7805
|
+
ze("Document Dependencies");
|
|
7801
7806
|
const t = e.flatMap((i) => ["--allowed", i]);
|
|
7802
7807
|
await _e(
|
|
7803
7808
|
"license-report",
|
|
@@ -7807,12 +7812,12 @@ async function Wh(e) {
|
|
|
7807
7812
|
"license-report-recursive",
|
|
7808
7813
|
["--only=prod,peer", "--output=tree", " --recurse", "--department.value=n/a", "--licensePeriod=n/a", "--material=n/a", "--relatedTo.value=n/a"],
|
|
7809
7814
|
"licenseTree.json"
|
|
7810
|
-
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]),
|
|
7815
|
+
), await _e("license-report-check", ["--source", "./licenseTree.json", "--output=table", ...t]), We("Insert licenses into 'README.md'"), await Dh(), Ve("Document dependencies complete.");
|
|
7811
7816
|
} catch (t) {
|
|
7812
7817
|
console.error("â Error documenting dependencies.", t), process.exit(1);
|
|
7813
7818
|
}
|
|
7814
7819
|
}
|
|
7815
|
-
async function
|
|
7820
|
+
async function Dh() {
|
|
7816
7821
|
const e = "<!-- DEPENDENCY_LICENSES_START -->", t = "<!-- DEPENDENCY_LICENSES_END -->";
|
|
7817
7822
|
try {
|
|
7818
7823
|
const s = (await li("./licenses.md")).trim(), a = await li("./README.md"), o = a.indexOf(e), h = a.indexOf(t);
|
|
@@ -7828,32 +7833,32 @@ async function Rh() {
|
|
|
7828
7833
|
console.error("â Error inserting dependency license information into 'README.md'.", i);
|
|
7829
7834
|
}
|
|
7830
7835
|
}
|
|
7831
|
-
async function
|
|
7836
|
+
async function Gh() {
|
|
7832
7837
|
try {
|
|
7833
|
-
|
|
7838
|
+
ze("Format Code"), await Ae("prettier", ["--write", "src/"]), Ve("Code formatting complete.");
|
|
7834
7839
|
} catch (e) {
|
|
7835
7840
|
console.error("â Error formatting code.", e), process.exit(1);
|
|
7836
7841
|
}
|
|
7837
7842
|
}
|
|
7838
|
-
async function
|
|
7843
|
+
async function Jh() {
|
|
7839
7844
|
try {
|
|
7840
|
-
|
|
7845
|
+
ze("Lint Code"), await Ae("eslint", ["."]), Ve("Code linting complete.");
|
|
7841
7846
|
} catch (e) {
|
|
7842
7847
|
console.error("â Error linting code.", e), process.exit(1);
|
|
7843
7848
|
}
|
|
7844
7849
|
}
|
|
7845
|
-
async function
|
|
7850
|
+
async function Xh(e) {
|
|
7846
7851
|
try {
|
|
7847
|
-
|
|
7852
|
+
ze("Update datapos Dependencies");
|
|
7848
7853
|
for (const t of e)
|
|
7849
7854
|
await Ae("npm", ["install", `@datapos/datapos-${t}@latest`]);
|
|
7850
|
-
|
|
7855
|
+
Ve("Updating datapos dependencies complete.");
|
|
7851
7856
|
} catch (t) {
|
|
7852
7857
|
console.error("â Error updating datapos dependencies.", t), process.exit(1);
|
|
7853
7858
|
}
|
|
7854
7859
|
}
|
|
7855
7860
|
const Pr = vs(ys);
|
|
7856
|
-
async function
|
|
7861
|
+
async function Qh() {
|
|
7857
7862
|
try {
|
|
7858
7863
|
console.info("đ Building configuration...");
|
|
7859
7864
|
const e = JSON.parse(await $.readFile("package.json", "utf8")), t = JSON.parse(await $.readFile("config.json", "utf8"));
|
|
@@ -7862,7 +7867,7 @@ async function Xh() {
|
|
|
7862
7867
|
console.error("â Error building configuration.", e);
|
|
7863
7868
|
}
|
|
7864
7869
|
}
|
|
7865
|
-
async function
|
|
7870
|
+
async function Yh() {
|
|
7866
7871
|
try {
|
|
7867
7872
|
console.info("đ Building connector configuration...");
|
|
7868
7873
|
const [e, t, i] = await Promise.all([
|
|
@@ -7876,13 +7881,13 @@ async function Qh() {
|
|
|
7876
7881
|
console.log("â Configuration is invalid:"), console.table(s.error.issues);
|
|
7877
7882
|
return;
|
|
7878
7883
|
}
|
|
7879
|
-
const a =
|
|
7884
|
+
const a = Ei(i), o = Ih(a);
|
|
7880
7885
|
a.length > 0 ? (console.info(`âšī¸ Implements ${a.length} operations:`), console.table(a)) : console.warn("â ī¸ Implements no operations."), o === "unknown" ? console.warn("â ī¸ No usage identified.") : console.info(`âšī¸ Supports '${o}' usage.`), e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), t.operations = a, t.usageId = o, await $.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Connector configuration built.");
|
|
7881
7886
|
} catch (e) {
|
|
7882
7887
|
console.error("â Error building connector configuration.", e);
|
|
7883
7888
|
}
|
|
7884
7889
|
}
|
|
7885
|
-
async function
|
|
7890
|
+
async function ep() {
|
|
7886
7891
|
try {
|
|
7887
7892
|
console.info("đ Building context configuration...");
|
|
7888
7893
|
const [e, t, i] = await Promise.all([
|
|
@@ -7896,13 +7901,13 @@ async function Yh() {
|
|
|
7896
7901
|
console.log("â Configuration is invalid:"), console.table(s.error.issues);
|
|
7897
7902
|
return;
|
|
7898
7903
|
}
|
|
7899
|
-
const a =
|
|
7904
|
+
const a = Ei(i);
|
|
7900
7905
|
a.length > 0 ? (console.info(`âšī¸ Implements ${a.length} operations:`), console.table(a)) : console.warn("â ī¸ Implements no operations."), e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), t.operations = a, await $.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Context configuration built.");
|
|
7901
7906
|
} catch (e) {
|
|
7902
7907
|
console.error("â Error building context configuration.", e);
|
|
7903
7908
|
}
|
|
7904
7909
|
}
|
|
7905
|
-
async function
|
|
7910
|
+
async function tp() {
|
|
7906
7911
|
try {
|
|
7907
7912
|
console.info("đ Building presenter configuration...");
|
|
7908
7913
|
const [e, t, i] = await Promise.all([
|
|
@@ -7916,13 +7921,13 @@ async function ep() {
|
|
|
7916
7921
|
console.log("â Configuration is invalid:"), console.table(s.error.issues);
|
|
7917
7922
|
return;
|
|
7918
7923
|
}
|
|
7919
|
-
const a =
|
|
7924
|
+
const a = Ei(i);
|
|
7920
7925
|
a.length > 0 ? (console.info(`âšī¸ Implements ${a.length} operations:`), console.table(a)) : console.warn("â ī¸ Implements no operations."), e.name != null && (t.id = e.name.replace("@datapos/", "").replace("@data-positioning/", "")), e.version != null && (t.version = e.version), t.operations = a, await $.writeFile("config.json", JSON.stringify(t, void 0, 4), "utf8"), console.info("â
Presenter configuration built.");
|
|
7921
7926
|
} catch (e) {
|
|
7922
7927
|
console.error("â Error building context configuration.", e);
|
|
7923
7928
|
}
|
|
7924
7929
|
}
|
|
7925
|
-
async function
|
|
7930
|
+
async function ip(e) {
|
|
7926
7931
|
try {
|
|
7927
7932
|
console.info(`đ Building public directory index for identifier '${e}'...`);
|
|
7928
7933
|
const t = {};
|
|
@@ -7956,7 +7961,7 @@ async function tp(e) {
|
|
|
7956
7961
|
console.error("â Error building public directory index.", t);
|
|
7957
7962
|
}
|
|
7958
7963
|
}
|
|
7959
|
-
async function
|
|
7964
|
+
async function sp() {
|
|
7960
7965
|
try {
|
|
7961
7966
|
console.info("đ Sending deployment notice...");
|
|
7962
7967
|
const e = JSON.parse(await $.readFile("config.json", "utf8")), t = {
|
|
@@ -7970,7 +7975,7 @@ async function ip() {
|
|
|
7970
7975
|
console.error("â Error sending deployment notice.", e);
|
|
7971
7976
|
}
|
|
7972
7977
|
}
|
|
7973
|
-
async function
|
|
7978
|
+
async function rp(e, t) {
|
|
7974
7979
|
try {
|
|
7975
7980
|
console.info("đ Uploading directory to R2....");
|
|
7976
7981
|
async function i(a, o, h) {
|
|
@@ -7992,7 +7997,7 @@ async function sp(e, t) {
|
|
|
7992
7997
|
console.error("â Error uploading directory to R2.", i);
|
|
7993
7998
|
}
|
|
7994
7999
|
}
|
|
7995
|
-
async function
|
|
8000
|
+
async function ap() {
|
|
7996
8001
|
try {
|
|
7997
8002
|
console.info("đ Uploading module configuration....");
|
|
7998
8003
|
const e = JSON.parse(await $.readFile("config.json", "utf8")), t = e.id, i = {
|
|
@@ -8006,7 +8011,7 @@ async function rp() {
|
|
|
8006
8011
|
console.error("â Error uploading module configuration.", e);
|
|
8007
8012
|
}
|
|
8008
8013
|
}
|
|
8009
|
-
async function
|
|
8014
|
+
async function np(e) {
|
|
8010
8015
|
try {
|
|
8011
8016
|
console.info("đ Uploading module to R2...");
|
|
8012
8017
|
const i = `v${JSON.parse(await $.readFile("package.json", "utf8")).version}`;
|
|
@@ -8027,23 +8032,23 @@ async function ap(e) {
|
|
|
8027
8032
|
}
|
|
8028
8033
|
}
|
|
8029
8034
|
export {
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8035
|
+
Hh as auditDependencies,
|
|
8036
|
+
$h as buildArtifact,
|
|
8037
|
+
Qh as buildConfig,
|
|
8038
|
+
Yh as buildConnectorConfig,
|
|
8039
|
+
ep as buildContextConfig,
|
|
8040
|
+
tp as buildPresenterConfig,
|
|
8041
|
+
ip as buildPublicDirectoryIndex,
|
|
8042
|
+
Wh as checkDependencies,
|
|
8043
|
+
Kh as documentDependencies,
|
|
8044
|
+
Gh as formatCode,
|
|
8045
|
+
Jh as lintCode,
|
|
8046
|
+
Uh as releaseArtifact,
|
|
8047
|
+
sp as sendDeploymentNotice,
|
|
8048
|
+
Zh as syncArtifactWithGitHub,
|
|
8049
|
+
qh as testArtifact,
|
|
8050
|
+
Xh as updateDataPosDependencies,
|
|
8051
|
+
rp as uploadDirectoryToR2,
|
|
8052
|
+
ap as uploadModuleConfigToDO,
|
|
8053
|
+
np as uploadModuleToR2
|
|
8049
8054
|
};
|