@synnaxlabs/client 0.14.0 → 0.15.1
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/.turbo/turbo-build.log +5 -5
- package/dist/client.cjs.js +3 -3
- package/dist/client.cjs.js.map +1 -1
- package/dist/client.es.js +697 -672
- package/dist/client.es.js.map +1 -1
- package/dist/hardware/task/payload.d.ts +3 -3
- package/dist/workspace/lineplot/payload.d.ts +3 -2
- package/dist/workspace/lineplot/writer.d.ts +2 -2
- package/dist/workspace/payload.d.ts +3 -2
- package/dist/workspace/pid/payload.d.ts +3 -2
- package/dist/workspace/pid/writer.d.ts +2 -2
- package/dist/workspace/writer.d.ts +3 -3
- package/package.json +5 -5
- package/src/hardware/device/client.ts +9 -0
- package/src/hardware/device/device.spec.ts +9 -0
- package/src/hardware/device/external.ts +9 -0
- package/src/hardware/device/index.ts +10 -1
- package/src/hardware/device/payload.ts +9 -0
- package/src/hardware/device/writer.ts +9 -0
- package/src/hardware/rack/external.ts +10 -1
- package/src/hardware/rack/index.ts +10 -1
- package/src/hardware/rack/payload.ts +10 -1
- package/src/hardware/rack/rack.spec.ts +9 -0
- package/src/hardware/rack/retriever.ts +9 -0
package/dist/client.es.js
CHANGED
|
@@ -547,7 +547,7 @@ class ue {
|
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
const Mh = /^c[^\s-]{8,}$/i, $h = /^[a-z][a-z0-9]*$/, Lh = /^[0-9A-HJKMNP-TV-Z]{26}$/, Bh = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, zh = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Vh = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
550
|
-
let
|
|
550
|
+
let Gi;
|
|
551
551
|
const Kh = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, Fh = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Wh = (r) => r.precision ? r.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`) : r.precision === 0 ? r.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : r.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
552
552
|
function qh(r, e) {
|
|
553
553
|
return !!((e === "v4" || !e) && Kh.test(r) || (e === "v6" || !e) && Fh.test(r));
|
|
@@ -611,7 +611,7 @@ class It extends ue {
|
|
|
611
611
|
message: a.message
|
|
612
612
|
}), n.dirty());
|
|
613
613
|
else if (a.kind === "emoji")
|
|
614
|
-
|
|
614
|
+
Gi || (Gi = new RegExp(Vh, "u")), Gi.test(e.data) || (s = this._getOrReturnCtx(e, s), z(s, {
|
|
615
615
|
validation: "emoji",
|
|
616
616
|
code: A.invalid_string,
|
|
617
617
|
message: a.message
|
|
@@ -2643,16 +2643,16 @@ const Vu = (r, e = {}, t) => r ? jn.create().superRefine((n, s) => {
|
|
|
2643
2643
|
const o = typeof e == "function" ? e(n) : typeof e == "string" ? { message: e } : e, c = (i = (a = o.fatal) !== null && a !== void 0 ? a : t) !== null && i !== void 0 ? i : !0, d = typeof o == "string" ? { message: o } : o;
|
|
2644
2644
|
s.addIssue({ code: "custom", ...d, fatal: c });
|
|
2645
2645
|
}
|
|
2646
|
-
}) : jn.create(),
|
|
2646
|
+
}) : jn.create(), Gh = {
|
|
2647
2647
|
object: Me.lazycreate
|
|
2648
2648
|
};
|
|
2649
2649
|
var J;
|
|
2650
2650
|
(function(r) {
|
|
2651
2651
|
r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
|
|
2652
2652
|
})(J || (J = {}));
|
|
2653
|
-
const
|
|
2653
|
+
const Hh = (r, e = {
|
|
2654
2654
|
message: `Input not instance of ${r.name}`
|
|
2655
|
-
}) => Vu((t) => t instanceof r, e), Ku = It.create, Fu = Mr.create, Xh = Ka.create, Qh = $r.create, Wu = as.create, ef = an.create, tf = La.create, rf = is.create, nf = os.create, sf = jn.create, af = tn.create, of = kr.create, cf = Ba.create, uf = jt.create, lf = Me.create, df = Me.strictCreate, hf = cs.create, ff = Oi.create, pf = us.create, mf = Yt.create, yf = ls.create, gf = za.create, vf = on.create, wf = Nn.create, _f = ds.create, bf = hs.create, kf = Lr.create,
|
|
2655
|
+
}) => Vu((t) => t instanceof r, e), Ku = It.create, Fu = Mr.create, Xh = Ka.create, Qh = $r.create, Wu = as.create, ef = an.create, tf = La.create, rf = is.create, nf = os.create, sf = jn.create, af = tn.create, of = kr.create, cf = Ba.create, uf = jt.create, lf = Me.create, df = Me.strictCreate, hf = cs.create, ff = Oi.create, pf = us.create, mf = Yt.create, yf = ls.create, gf = za.create, vf = on.create, wf = Nn.create, _f = ds.create, bf = hs.create, kf = Lr.create, Tf = fs.create, xf = Zn.create, Bc = Ut.create, Of = gr.create, Sf = cn.create, Nf = Ut.createWithPreprocess, Ef = Ws.create, If = () => Ku().optional(), Af = () => Fu().optional(), Cf = () => Wu().optional(), jf = {
|
|
2656
2656
|
string: (r) => It.create({ ...r, coerce: !0 }),
|
|
2657
2657
|
number: (r) => Mr.create({ ...r, coerce: !0 }),
|
|
2658
2658
|
boolean: (r) => as.create({
|
|
@@ -2728,7 +2728,7 @@ var S = /* @__PURE__ */ Object.freeze({
|
|
|
2728
2728
|
custom: Vu,
|
|
2729
2729
|
Schema: ue,
|
|
2730
2730
|
ZodSchema: ue,
|
|
2731
|
-
late:
|
|
2731
|
+
late: Gh,
|
|
2732
2732
|
get ZodFirstPartyTypeKind() {
|
|
2733
2733
|
return J;
|
|
2734
2734
|
},
|
|
@@ -2742,13 +2742,13 @@ var S = /* @__PURE__ */ Object.freeze({
|
|
|
2742
2742
|
effect: Bc,
|
|
2743
2743
|
enum: kf,
|
|
2744
2744
|
function: wf,
|
|
2745
|
-
instanceof:
|
|
2745
|
+
instanceof: Hh,
|
|
2746
2746
|
intersection: pf,
|
|
2747
2747
|
lazy: _f,
|
|
2748
2748
|
literal: bf,
|
|
2749
2749
|
map: gf,
|
|
2750
2750
|
nan: Xh,
|
|
2751
|
-
nativeEnum:
|
|
2751
|
+
nativeEnum: Tf,
|
|
2752
2752
|
never: of,
|
|
2753
2753
|
null: nf,
|
|
2754
2754
|
nullable: Sf,
|
|
@@ -2760,7 +2760,7 @@ var S = /* @__PURE__ */ Object.freeze({
|
|
|
2760
2760
|
ostring: If,
|
|
2761
2761
|
pipeline: Ef,
|
|
2762
2762
|
preprocess: Nf,
|
|
2763
|
-
promise:
|
|
2763
|
+
promise: xf,
|
|
2764
2764
|
record: yf,
|
|
2765
2765
|
set: vf,
|
|
2766
2766
|
strictObject: df,
|
|
@@ -2786,9 +2786,9 @@ const Uf = ["start", "center", "end"], Df = ["signedWidth", "signedHeight"];
|
|
|
2786
2786
|
S.enum(Df);
|
|
2787
2787
|
const Wa = S.object({ x: S.number(), y: S.number() }), Mf = S.object({ clientX: S.number(), clientY: S.number() }), $f = ["x", "y"], Yu = S.enum($f), Ju = ["top", "right", "bottom", "left"];
|
|
2788
2788
|
S.enum(Ju);
|
|
2789
|
-
const Lf = ["left", "right"], Bf = S.enum(Lf), zf = ["top", "bottom"], Vf = S.enum(zf),
|
|
2790
|
-
S.enum(
|
|
2791
|
-
const Kf = [...Ju, ...
|
|
2789
|
+
const Lf = ["left", "right"], Bf = S.enum(Lf), zf = ["top", "bottom"], Vf = S.enum(zf), Gu = ["center"];
|
|
2790
|
+
S.enum(Gu);
|
|
2791
|
+
const Kf = [...Ju, ...Gu], qa = S.enum(Kf);
|
|
2792
2792
|
S.enum(Uf);
|
|
2793
2793
|
const Ff = ["first", "last"];
|
|
2794
2794
|
S.enum(Ff);
|
|
@@ -2820,22 +2820,22 @@ function Jf(r) {
|
|
|
2820
2820
|
Ni.default = Jf;
|
|
2821
2821
|
var Ei = {};
|
|
2822
2822
|
Object.defineProperty(Ei, "__esModule", { value: !0 });
|
|
2823
|
-
function
|
|
2823
|
+
function Gf(r) {
|
|
2824
2824
|
return r === void 0 && (r = ""), r ? String(r).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "$").replace(/[^A-Za-z0-9]+/g, "$").replace(/([a-z])([A-Z])/g, function(e, t, n) {
|
|
2825
2825
|
return t + "$" + n;
|
|
2826
2826
|
}).toLowerCase().replace(/(\$)(\w?)/g, function(e, t, n) {
|
|
2827
2827
|
return n.toUpperCase();
|
|
2828
2828
|
}) : "";
|
|
2829
2829
|
}
|
|
2830
|
-
Ei.default =
|
|
2830
|
+
Ei.default = Gf;
|
|
2831
2831
|
var zo = {};
|
|
2832
2832
|
Object.defineProperty(zo, "__esModule", { value: !0 });
|
|
2833
|
-
function
|
|
2833
|
+
function Hf(r) {
|
|
2834
2834
|
return r === void 0 && (r = ""), r ? String(r).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g, "").replace(/([a-z])([A-Z])/g, function(e, t, n) {
|
|
2835
2835
|
return t + "_" + n.toLowerCase();
|
|
2836
2836
|
}).replace(/[^A-Za-z0-9]+|_+/g, ".").toLowerCase() : "";
|
|
2837
2837
|
}
|
|
2838
|
-
zo.default =
|
|
2838
|
+
zo.default = Hf;
|
|
2839
2839
|
var Vo = {};
|
|
2840
2840
|
Object.defineProperty(Vo, "__esModule", { value: !0 });
|
|
2841
2841
|
function Xf(r) {
|
|
@@ -2989,7 +2989,7 @@ function ya(r, e) {
|
|
|
2989
2989
|
}), t;
|
|
2990
2990
|
}
|
|
2991
2991
|
Jo.default = ya;
|
|
2992
|
-
var
|
|
2992
|
+
var Go = {}, op = Ot && Ot.__spreadArrays || function() {
|
|
2993
2993
|
for (var r = 0, e = 0, t = arguments.length; e < t; e++)
|
|
2994
2994
|
r += arguments[e].length;
|
|
2995
2995
|
for (var n = Array(r), s = 0, e = 0; e < t; e++)
|
|
@@ -2997,7 +2997,7 @@ var Ho = {}, op = Ot && Ot.__spreadArrays || function() {
|
|
|
2997
2997
|
n[s] = a[i];
|
|
2998
2998
|
return n;
|
|
2999
2999
|
};
|
|
3000
|
-
Object.defineProperty(
|
|
3000
|
+
Object.defineProperty(Go, "__esModule", { value: !0 });
|
|
3001
3001
|
var sr = mn, cp = Ni;
|
|
3002
3002
|
function ga(r, e) {
|
|
3003
3003
|
if (e === void 0 && (e = sr.DefaultOption), !sr.isValidObject(r))
|
|
@@ -3018,8 +3018,8 @@ function ga(r, e) {
|
|
|
3018
3018
|
}))), t[a] = s;
|
|
3019
3019
|
}), t;
|
|
3020
3020
|
}
|
|
3021
|
-
|
|
3022
|
-
var
|
|
3021
|
+
Go.default = ga;
|
|
3022
|
+
var Ho = {}, up = Ot && Ot.__spreadArrays || function() {
|
|
3023
3023
|
for (var r = 0, e = 0, t = arguments.length; e < t; e++)
|
|
3024
3024
|
r += arguments[e].length;
|
|
3025
3025
|
for (var n = Array(r), s = 0, e = 0; e < t; e++)
|
|
@@ -3027,7 +3027,7 @@ var Go = {}, up = Ot && Ot.__spreadArrays || function() {
|
|
|
3027
3027
|
n[s] = a[i];
|
|
3028
3028
|
return n;
|
|
3029
3029
|
};
|
|
3030
|
-
Object.defineProperty(
|
|
3030
|
+
Object.defineProperty(Ho, "__esModule", { value: !0 });
|
|
3031
3031
|
var ar = mn, lp = Ei;
|
|
3032
3032
|
function va(r, e) {
|
|
3033
3033
|
if (e === void 0 && (e = ar.DefaultOption), !ar.isValidObject(r))
|
|
@@ -3048,7 +3048,7 @@ function va(r, e) {
|
|
|
3048
3048
|
}))), t[a] = s;
|
|
3049
3049
|
}), t;
|
|
3050
3050
|
}
|
|
3051
|
-
|
|
3051
|
+
Ho.default = va;
|
|
3052
3052
|
var Xo = {}, dp = Ot && Ot.__spreadArrays || function() {
|
|
3053
3053
|
for (var r = 0, e = 0, t = arguments.length; e < t; e++)
|
|
3054
3054
|
r += arguments[e].length;
|
|
@@ -3081,8 +3081,8 @@ function wa(r, e) {
|
|
|
3081
3081
|
Xo.default = wa;
|
|
3082
3082
|
Object.defineProperty(pe, "__esModule", { value: !0 });
|
|
3083
3083
|
pe.kebabKeys = pe.pascalKeys = pe.snakeKeys = pe.camelKeys = pe.upperKeys = pe.lowerKeys = pe.toLowerCase = pe.toUpperCase = pe.toKebabCase = pe.toHeaderCase = pe.toSentenceCase = pe.toTextCase = pe.toPathCase = pe.toDotCase = pe.toPascalCase = pe.toSnakeCase = pe.toCamelCase = void 0;
|
|
3084
|
-
var
|
|
3085
|
-
pe.toCamelCase =
|
|
3084
|
+
var Hu = Si;
|
|
3085
|
+
pe.toCamelCase = Hu.default;
|
|
3086
3086
|
var Xu = Ni;
|
|
3087
3087
|
pe.toSnakeCase = Xu.default;
|
|
3088
3088
|
var Qu = Ei;
|
|
@@ -3105,9 +3105,9 @@ var ol = Yo;
|
|
|
3105
3105
|
pe.upperKeys = ol.default;
|
|
3106
3106
|
var cl = Jo;
|
|
3107
3107
|
pe.camelKeys = cl.default;
|
|
3108
|
-
var ul =
|
|
3108
|
+
var ul = Go;
|
|
3109
3109
|
pe.snakeKeys = ul.default;
|
|
3110
|
-
var ll =
|
|
3110
|
+
var ll = Ho;
|
|
3111
3111
|
pe.pascalKeys = ll.default;
|
|
3112
3112
|
var dl = Xo;
|
|
3113
3113
|
pe.kebabKeys = dl.default;
|
|
@@ -3120,7 +3120,7 @@ var fl = function(r) {
|
|
|
3120
3120
|
};
|
|
3121
3121
|
pe.toUpperCase = fl;
|
|
3122
3122
|
var fp = {
|
|
3123
|
-
toCamelCase:
|
|
3123
|
+
toCamelCase: Hu.default,
|
|
3124
3124
|
toSnakeCase: Xu.default,
|
|
3125
3125
|
toPascalCase: Qu.default,
|
|
3126
3126
|
toDotCase: el.default,
|
|
@@ -3193,7 +3193,7 @@ const Qo = (r, e, t = 0, n = 0, s) => {
|
|
|
3193
3193
|
x: a.one.x + e.signedWidth,
|
|
3194
3194
|
y: a.one.y + e.signedHeight
|
|
3195
3195
|
} : a.two = e, a));
|
|
3196
|
-
},
|
|
3196
|
+
}, Hi = (r) => {
|
|
3197
3197
|
const e = Qo(r);
|
|
3198
3198
|
return { lower: e.one.x, upper: e.two.x };
|
|
3199
3199
|
}, Xi = (r) => {
|
|
@@ -3203,7 +3203,7 @@ const Qo = (r, e, t = 0, n = 0, s) => {
|
|
|
3203
3203
|
S.union([qu, bp, Wa, Bo]);
|
|
3204
3204
|
const kp = (r, e, t) => (e != null && (r = Math.max(r, e)), t != null && (r = Math.min(r, t)), r);
|
|
3205
3205
|
S.object({ offset: zc, scale: zc });
|
|
3206
|
-
const
|
|
3206
|
+
const Tp = (r) => (e, t, n, s) => t === "dimension" ? [e, n] : [e, s ? n - r : n + r], xp = (r) => (e, t, n, s) => [e, s ? n / r : n * r], Op = (r) => (e, t, n) => {
|
|
3207
3207
|
if (e === null)
|
|
3208
3208
|
return [r, n];
|
|
3209
3209
|
const { lower: s, upper: a } = e, { lower: i, upper: o } = r, c = a - s, d = o - i;
|
|
@@ -3221,25 +3221,25 @@ const xp = (r) => (e, t, n, s) => t === "dimension" ? [e, n] : [e, s ? n - r : n
|
|
|
3221
3221
|
}, Ep = (r) => (e, t, n) => {
|
|
3222
3222
|
const { lower: s, upper: a } = r;
|
|
3223
3223
|
return n = kp(n, s, a), [e, n];
|
|
3224
|
-
}, mo = class
|
|
3224
|
+
}, mo = class Gn {
|
|
3225
3225
|
constructor() {
|
|
3226
3226
|
E(this, "ops", []), E(this, "currBounds", null), E(this, "currType", null), E(this, "reversed", !1), this.ops = [];
|
|
3227
3227
|
}
|
|
3228
3228
|
static translate(e) {
|
|
3229
|
-
return new
|
|
3229
|
+
return new Gn().translate(e);
|
|
3230
3230
|
}
|
|
3231
3231
|
static magnify(e) {
|
|
3232
|
-
return new
|
|
3232
|
+
return new Gn().magnify(e);
|
|
3233
3233
|
}
|
|
3234
3234
|
static scale(e, t) {
|
|
3235
|
-
return new
|
|
3235
|
+
return new Gn().scale(e, t);
|
|
3236
3236
|
}
|
|
3237
3237
|
translate(e) {
|
|
3238
|
-
const t = this.new(), n =
|
|
3238
|
+
const t = this.new(), n = Tp(e);
|
|
3239
3239
|
return n.type = "translate", t.ops.push(n), t;
|
|
3240
3240
|
}
|
|
3241
3241
|
magnify(e) {
|
|
3242
|
-
const t = this.new(), n =
|
|
3242
|
+
const t = this.new(), n = xp(e);
|
|
3243
3243
|
return n.type = "magnify", t.ops.push(n), t;
|
|
3244
3244
|
}
|
|
3245
3245
|
scale(e, t) {
|
|
@@ -3267,7 +3267,7 @@ const xp = (r) => (e, t, n, s) => t === "dimension" ? [e, n] : [e, s ? n - r : n
|
|
|
3267
3267
|
return this.exec("dimension", e);
|
|
3268
3268
|
}
|
|
3269
3269
|
new() {
|
|
3270
|
-
const e = new
|
|
3270
|
+
const e = new Gn();
|
|
3271
3271
|
return e.ops = this.ops.slice(), e.reversed = this.reversed, e;
|
|
3272
3272
|
}
|
|
3273
3273
|
exec(e, t) {
|
|
@@ -3338,17 +3338,17 @@ const Fc = class fr {
|
|
|
3338
3338
|
const t = this.copy();
|
|
3339
3339
|
if (_p(e)) {
|
|
3340
3340
|
const n = this.currRoot;
|
|
3341
|
-
return t.currRoot = e.root, n != null && !vp(n, e.root) && (n.x !== e.root.x && (t.x = t.x.invert()), n.y !== e.root.y && (t.y = t.y.invert())), t.x = t.x.scale(
|
|
3341
|
+
return t.currRoot = e.root, n != null && !vp(n, e.root) && (n.x !== e.root.x && (t.x = t.x.invert()), n.y !== e.root.y && (t.y = t.y.invert())), t.x = t.x.scale(Hi(e)), t.y = t.y.scale(Xi(e)), t;
|
|
3342
3342
|
}
|
|
3343
3343
|
return t.x = t.x.scale(e.width), t.y = t.y.scale(e.height), t;
|
|
3344
3344
|
}
|
|
3345
3345
|
reBound(e) {
|
|
3346
3346
|
const t = this.copy();
|
|
3347
|
-
return t.x = this.x.reBound(
|
|
3347
|
+
return t.x = this.x.reBound(Hi(e)), t.y = this.y.reBound(Xi(e)), t;
|
|
3348
3348
|
}
|
|
3349
3349
|
clamp(e) {
|
|
3350
3350
|
const t = this.copy();
|
|
3351
|
-
return t.x = this.x.clamp(
|
|
3351
|
+
return t.x = this.x.clamp(Hi(e)), t.y = this.y.clamp(Xi(e)), t;
|
|
3352
3352
|
}
|
|
3353
3353
|
copy() {
|
|
3354
3354
|
const e = new fr();
|
|
@@ -3670,6 +3670,9 @@ const Ie = class Oe extends Number {
|
|
|
3670
3670
|
truncate(e) {
|
|
3671
3671
|
return new Oe(Math.trunc(this.valueOf() / e.valueOf()) * e.valueOf());
|
|
3672
3672
|
}
|
|
3673
|
+
multiply(e) {
|
|
3674
|
+
return new Oe(this.valueOf() * e);
|
|
3675
|
+
}
|
|
3673
3676
|
toString() {
|
|
3674
3677
|
const e = this.truncate(Oe.DAY), t = this.truncate(Oe.HOUR), n = this.truncate(Oe.MINUTE), s = this.truncate(Oe.SECOND), a = this.truncate(Oe.MILLISECOND), i = this.truncate(Oe.MICROSECOND), o = this.truncate(Oe.NANOSECOND), c = e, d = t.sub(e), w = n.sub(t), M = s.sub(n), X = a.sub(s), Q = i.sub(a), Ze = o.sub(i);
|
|
3675
3678
|
let ee = "";
|
|
@@ -3813,7 +3816,7 @@ E(Ie, "z", S.union([
|
|
|
3813
3816
|
S.instanceof(Ie)
|
|
3814
3817
|
]));
|
|
3815
3818
|
let Le = Ie;
|
|
3816
|
-
const
|
|
3819
|
+
const Hn = class _a extends Number {
|
|
3817
3820
|
constructor(e) {
|
|
3818
3821
|
e instanceof Number ? super(e.valueOf()) : super(e);
|
|
3819
3822
|
}
|
|
@@ -3890,12 +3893,12 @@ const Gn = class _a extends Number {
|
|
|
3890
3893
|
return _a.hz(e * 1e3);
|
|
3891
3894
|
}
|
|
3892
3895
|
};
|
|
3893
|
-
E(
|
|
3894
|
-
S.number().transform((r) => new
|
|
3895
|
-
S.instanceof(Number).transform((r) => new
|
|
3896
|
-
S.instanceof(
|
|
3896
|
+
E(Hn, "z", S.union([
|
|
3897
|
+
S.number().transform((r) => new Hn(r)),
|
|
3898
|
+
S.instanceof(Number).transform((r) => new Hn(r)),
|
|
3899
|
+
S.instanceof(Hn)
|
|
3897
3900
|
]));
|
|
3898
|
-
let Ai =
|
|
3901
|
+
let Ai = Hn;
|
|
3899
3902
|
const Qe = class extends Number {
|
|
3900
3903
|
/**
|
|
3901
3904
|
* Creates a Density representing the given number of bytes per value.
|
|
@@ -4008,7 +4011,7 @@ E(Ft, "z", S.union([
|
|
|
4008
4011
|
S.instanceof(Ft)
|
|
4009
4012
|
]));
|
|
4010
4013
|
let Kt = Ft;
|
|
4011
|
-
const
|
|
4014
|
+
const x = class Xr extends String {
|
|
4012
4015
|
constructor(e) {
|
|
4013
4016
|
if (e instanceof Xr || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
4014
4017
|
super(e.valueOf());
|
|
@@ -4060,88 +4063,88 @@ const T = class Xr extends String {
|
|
|
4060
4063
|
return Xr.BIG_INT_TYPES.some((e) => e.equals(this));
|
|
4061
4064
|
}
|
|
4062
4065
|
};
|
|
4063
|
-
E(
|
|
4064
|
-
E(
|
|
4065
|
-
E(
|
|
4066
|
-
E(
|
|
4067
|
-
E(
|
|
4068
|
-
E(
|
|
4069
|
-
E(
|
|
4070
|
-
E(
|
|
4071
|
-
E(
|
|
4072
|
-
E(
|
|
4073
|
-
E(
|
|
4074
|
-
E(
|
|
4075
|
-
E(
|
|
4076
|
-
E(
|
|
4077
|
-
E(
|
|
4078
|
-
E(
|
|
4079
|
-
[
|
|
4080
|
-
[
|
|
4081
|
-
[
|
|
4082
|
-
[
|
|
4083
|
-
[
|
|
4084
|
-
[
|
|
4085
|
-
[
|
|
4086
|
-
[
|
|
4087
|
-
[
|
|
4088
|
-
[
|
|
4089
|
-
[
|
|
4090
|
-
[
|
|
4091
|
-
[
|
|
4092
|
-
[
|
|
4066
|
+
E(x, "UNKNOWN", new x("unknown"));
|
|
4067
|
+
E(x, "FLOAT64", new x("float64"));
|
|
4068
|
+
E(x, "FLOAT32", new x("float32"));
|
|
4069
|
+
E(x, "INT64", new x("int64"));
|
|
4070
|
+
E(x, "INT32", new x("int32"));
|
|
4071
|
+
E(x, "INT16", new x("int16"));
|
|
4072
|
+
E(x, "INT8", new x("int8"));
|
|
4073
|
+
E(x, "UINT64", new x("uint64"));
|
|
4074
|
+
E(x, "UINT32", new x("uint32"));
|
|
4075
|
+
E(x, "UINT16", new x("uint16"));
|
|
4076
|
+
E(x, "UINT8", new x("uint8"));
|
|
4077
|
+
E(x, "TIMESTAMP", new x("timestamp"));
|
|
4078
|
+
E(x, "UUID", new x("uuid"));
|
|
4079
|
+
E(x, "STRING", new x("string"));
|
|
4080
|
+
E(x, "JSON", new x("json"));
|
|
4081
|
+
E(x, "ARRAY_CONSTRUCTORS", /* @__PURE__ */ new Map([
|
|
4082
|
+
[x.UINT8.toString(), Uint8Array],
|
|
4083
|
+
[x.UINT16.toString(), Uint16Array],
|
|
4084
|
+
[x.UINT32.toString(), Uint32Array],
|
|
4085
|
+
[x.UINT64.toString(), BigUint64Array],
|
|
4086
|
+
[x.FLOAT32.toString(), Float32Array],
|
|
4087
|
+
[x.FLOAT64.toString(), Float64Array],
|
|
4088
|
+
[x.INT8.toString(), Int8Array],
|
|
4089
|
+
[x.INT16.toString(), Int16Array],
|
|
4090
|
+
[x.INT32.toString(), Int32Array],
|
|
4091
|
+
[x.INT64.toString(), BigInt64Array],
|
|
4092
|
+
[x.TIMESTAMP.toString(), BigInt64Array],
|
|
4093
|
+
[x.STRING.toString(), Uint8Array],
|
|
4094
|
+
[x.JSON.toString(), Uint8Array],
|
|
4095
|
+
[x.UUID.toString(), Uint8Array]
|
|
4093
4096
|
]));
|
|
4094
|
-
E(
|
|
4095
|
-
[Uint8Array.name,
|
|
4096
|
-
[Uint16Array.name,
|
|
4097
|
-
[Uint32Array.name,
|
|
4098
|
-
[BigUint64Array.name,
|
|
4099
|
-
[Float32Array.name,
|
|
4100
|
-
[Float64Array.name,
|
|
4101
|
-
[Int8Array.name,
|
|
4102
|
-
[Int16Array.name,
|
|
4103
|
-
[Int32Array.name,
|
|
4104
|
-
[BigInt64Array.name,
|
|
4097
|
+
E(x, "ARRAY_CONSTRUCTOR_DATA_TYPES", /* @__PURE__ */ new Map([
|
|
4098
|
+
[Uint8Array.name, x.UINT8],
|
|
4099
|
+
[Uint16Array.name, x.UINT16],
|
|
4100
|
+
[Uint32Array.name, x.UINT32],
|
|
4101
|
+
[BigUint64Array.name, x.UINT64],
|
|
4102
|
+
[Float32Array.name, x.FLOAT32],
|
|
4103
|
+
[Float64Array.name, x.FLOAT64],
|
|
4104
|
+
[Int8Array.name, x.INT8],
|
|
4105
|
+
[Int16Array.name, x.INT16],
|
|
4106
|
+
[Int32Array.name, x.INT32],
|
|
4107
|
+
[BigInt64Array.name, x.INT64]
|
|
4105
4108
|
]));
|
|
4106
|
-
E(
|
|
4107
|
-
[
|
|
4108
|
-
[
|
|
4109
|
-
[
|
|
4110
|
-
[
|
|
4111
|
-
[
|
|
4112
|
-
[
|
|
4113
|
-
[
|
|
4114
|
-
[
|
|
4115
|
-
[
|
|
4116
|
-
[
|
|
4117
|
-
[
|
|
4118
|
-
[
|
|
4119
|
-
[
|
|
4120
|
-
[
|
|
4109
|
+
E(x, "DENSITIES", /* @__PURE__ */ new Map([
|
|
4110
|
+
[x.UINT8.toString(), ut.BIT8],
|
|
4111
|
+
[x.UINT16.toString(), ut.BIT16],
|
|
4112
|
+
[x.UINT32.toString(), ut.BIT32],
|
|
4113
|
+
[x.UINT64.toString(), ut.BIT64],
|
|
4114
|
+
[x.FLOAT32.toString(), ut.BIT32],
|
|
4115
|
+
[x.FLOAT64.toString(), ut.BIT64],
|
|
4116
|
+
[x.INT8.toString(), ut.BIT8],
|
|
4117
|
+
[x.INT16.toString(), ut.BIT16],
|
|
4118
|
+
[x.INT32.toString(), ut.BIT32],
|
|
4119
|
+
[x.INT64.toString(), ut.BIT64],
|
|
4120
|
+
[x.TIMESTAMP.toString(), ut.BIT64],
|
|
4121
|
+
[x.STRING.toString(), ut.UNKNOWN],
|
|
4122
|
+
[x.JSON.toString(), ut.UNKNOWN],
|
|
4123
|
+
[x.UUID.toString(), ut.BIT128]
|
|
4121
4124
|
]));
|
|
4122
|
-
E(
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4125
|
+
E(x, "ALL", [
|
|
4126
|
+
x.UNKNOWN,
|
|
4127
|
+
x.FLOAT64,
|
|
4128
|
+
x.FLOAT32,
|
|
4129
|
+
x.INT64,
|
|
4130
|
+
x.INT32,
|
|
4131
|
+
x.INT16,
|
|
4132
|
+
x.INT8,
|
|
4133
|
+
x.UINT64,
|
|
4134
|
+
x.UINT32,
|
|
4135
|
+
x.UINT16,
|
|
4136
|
+
x.UINT8,
|
|
4137
|
+
x.TIMESTAMP,
|
|
4138
|
+
x.UUID,
|
|
4139
|
+
x.STRING,
|
|
4140
|
+
x.JSON
|
|
4138
4141
|
]);
|
|
4139
|
-
E(
|
|
4140
|
-
E(
|
|
4141
|
-
S.string().transform((r) => new
|
|
4142
|
-
S.instanceof(
|
|
4142
|
+
E(x, "BIG_INT_TYPES", [x.INT64, x.UINT64, x.TIMESTAMP]);
|
|
4143
|
+
E(x, "z", S.union([
|
|
4144
|
+
S.string().transform((r) => new x(r)),
|
|
4145
|
+
S.instanceof(x)
|
|
4143
4146
|
]));
|
|
4144
|
-
let Xe =
|
|
4147
|
+
let Xe = x;
|
|
4145
4148
|
const rt = class Sr extends Number {
|
|
4146
4149
|
constructor(e) {
|
|
4147
4150
|
super(e.valueOf());
|
|
@@ -4261,7 +4264,7 @@ class Lt {
|
|
|
4261
4264
|
bufferUsage: a
|
|
4262
4265
|
};
|
|
4263
4266
|
}
|
|
4264
|
-
static alloc({
|
|
4267
|
+
static alloc({ capacity: e, dataType: t, ...n }) {
|
|
4265
4268
|
if (e === 0)
|
|
4266
4269
|
throw new Error("[Series] - cannot allocate an array of length 0");
|
|
4267
4270
|
const s = new new Xe(t).Array(e), a = new Lt({
|
|
@@ -4303,12 +4306,20 @@ class Lt {
|
|
|
4303
4306
|
else if (this._refCount < 0)
|
|
4304
4307
|
throw new Error("cannot release an array with a negative reference count");
|
|
4305
4308
|
}
|
|
4309
|
+
/**
|
|
4310
|
+
* Writes the given series to this series. If the series being written exceeds the
|
|
4311
|
+
* remaining of series being written to, only the portion that fits will be written.
|
|
4312
|
+
* @param other the series to write to this series. The data type of the series written
|
|
4313
|
+
* must be the same as the data type of the series being written to.
|
|
4314
|
+
* @returns the number of samples written. If the entire series fits, this value is
|
|
4315
|
+
* equal to the length of the series being written.
|
|
4316
|
+
*/
|
|
4306
4317
|
write(e) {
|
|
4307
4318
|
if (!e.dataType.equals(this.dataType))
|
|
4308
4319
|
throw new Error("buffer must be of the same type as this array");
|
|
4309
4320
|
if (this.writePos === Jr)
|
|
4310
4321
|
return 0;
|
|
4311
|
-
const t = this.
|
|
4322
|
+
const t = this.capacity - this.writePos, n = t < e.length ? e.slice(0, t) : e;
|
|
4312
4323
|
return this.underlyingData.set(n.data, this.writePos), this.maybeRecomputeMinMax(n), this.writePos += n.length, n.length;
|
|
4313
4324
|
}
|
|
4314
4325
|
/** @returns the underlying buffer backing this array. */
|
|
@@ -4348,17 +4359,17 @@ class Lt {
|
|
|
4348
4359
|
get timeRange() {
|
|
4349
4360
|
return Ap("timeRange", this._timeRange), this._timeRange;
|
|
4350
4361
|
}
|
|
4351
|
-
/** @returns the capacity of the
|
|
4352
|
-
get
|
|
4362
|
+
/** @returns the capacity of the series in bytes. */
|
|
4363
|
+
get byteCapacity() {
|
|
4353
4364
|
return new Ya(this.buffer.byteLength);
|
|
4354
4365
|
}
|
|
4355
|
-
/** @returns the capacity of the
|
|
4356
|
-
get
|
|
4357
|
-
return this.dataType.density.length(this.
|
|
4366
|
+
/** @returns the capacity of the series in samples. */
|
|
4367
|
+
get capacity() {
|
|
4368
|
+
return this.dataType.density.length(this.byteCapacity);
|
|
4358
4369
|
}
|
|
4359
|
-
/** @returns the length of the
|
|
4370
|
+
/** @returns the length of the series in bytes. */
|
|
4360
4371
|
get byteLength() {
|
|
4361
|
-
return this.writePos === Jr ? this.
|
|
4372
|
+
return this.writePos === Jr ? this.byteCapacity : this.dataType.density.size(this.writePos);
|
|
4362
4373
|
}
|
|
4363
4374
|
/** @returns the number of samples in this array. */
|
|
4364
4375
|
get length() {
|
|
@@ -4444,10 +4455,15 @@ class Lt {
|
|
|
4444
4455
|
get range() {
|
|
4445
4456
|
return Xn(this.max, -this.min);
|
|
4446
4457
|
}
|
|
4447
|
-
at(e) {
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4458
|
+
at(e, t) {
|
|
4459
|
+
e < 0 && (e = this.length + e);
|
|
4460
|
+
const n = this.data[e];
|
|
4461
|
+
if (n == null) {
|
|
4462
|
+
if (t)
|
|
4463
|
+
throw new Error(`[series] - no value at index ${e}`);
|
|
4464
|
+
return;
|
|
4465
|
+
}
|
|
4466
|
+
return Xn(n, this.sampleOffset);
|
|
4451
4467
|
}
|
|
4452
4468
|
/**
|
|
4453
4469
|
* @returns the index of the first sample that is greater than or equal to the given value.
|
|
@@ -4458,7 +4474,7 @@ class Lt {
|
|
|
4458
4474
|
let t = 0, n = this.length - 1;
|
|
4459
4475
|
const s = Zh(e);
|
|
4460
4476
|
for (; t <= n; ) {
|
|
4461
|
-
const a = Math.floor((t + n) / 2), i = s(this.at(a), e);
|
|
4477
|
+
const a = Math.floor((t + n) / 2), i = s(this.at(a, !0), e);
|
|
4462
4478
|
if (i === 0)
|
|
4463
4479
|
return a;
|
|
4464
4480
|
i < 0 ? t = a + 1 : n = a - 1;
|
|
@@ -4471,7 +4487,7 @@ class Lt {
|
|
|
4471
4487
|
const { buffer: t, bufferUsage: n, prevBuffer: s } = this.gl;
|
|
4472
4488
|
if (t == null && (this.gl.buffer = e.createBuffer()), this.writePos !== s)
|
|
4473
4489
|
if (e.bindBuffer(e.ARRAY_BUFFER, this.gl.buffer), this.writePos !== Jr) {
|
|
4474
|
-
s === 0 && e.bufferData(e.ARRAY_BUFFER, this.
|
|
4490
|
+
s === 0 && e.bufferData(e.ARRAY_BUFFER, this.byteCapacity.valueOf(), e.STATIC_DRAW);
|
|
4475
4491
|
const a = this.dataType.density.size(s).valueOf(), i = this.underlyingData.slice(this.gl.prevBuffer, this.writePos);
|
|
4476
4492
|
e.bufferSubData(e.ARRAY_BUFFER, a, i.buffer), this.gl.prevBuffer = this.writePos;
|
|
4477
4493
|
} else
|
|
@@ -4489,7 +4505,8 @@ class Lt {
|
|
|
4489
4505
|
sampleOffset: this.sampleOffset,
|
|
4490
4506
|
alignment: this.alignmentBounds,
|
|
4491
4507
|
timeRange: (e = this._timeRange) == null ? void 0 : e.toString(),
|
|
4492
|
-
length: this.length
|
|
4508
|
+
length: this.length,
|
|
4509
|
+
capacity: this.capacity
|
|
4493
4510
|
};
|
|
4494
4511
|
}
|
|
4495
4512
|
get memInfo() {
|
|
@@ -4504,7 +4521,7 @@ class Lt {
|
|
|
4504
4521
|
return ts(this.alignment, this.alignment + this.length);
|
|
4505
4522
|
}
|
|
4506
4523
|
maybeGarbageCollectGLBuffer(e) {
|
|
4507
|
-
this.gl.buffer != null && (e.deleteBuffer(this.gl.buffer), this.gl.buffer = null, this.gl.prevBuffer = 0);
|
|
4524
|
+
this.gl.buffer != null && (e.deleteBuffer(this.gl.buffer), this.gl.buffer = null, this.gl.prevBuffer = 0, this.gl.control = null);
|
|
4508
4525
|
}
|
|
4509
4526
|
get glBuffer() {
|
|
4510
4527
|
if (this.gl.buffer == null)
|
|
@@ -4587,13 +4604,13 @@ let Up = (vn = class {
|
|
|
4587
4604
|
);
|
|
4588
4605
|
}
|
|
4589
4606
|
}, E(vn, "UNKNOWN", new vn({ host: "unknown", port: 0 })), vn);
|
|
4590
|
-
const
|
|
4607
|
+
const xe = (r) => Array.isArray(r) ? r : [r];
|
|
4591
4608
|
var yo;
|
|
4592
4609
|
try {
|
|
4593
4610
|
yo = new TextDecoder();
|
|
4594
4611
|
} catch {
|
|
4595
4612
|
}
|
|
4596
|
-
var P,
|
|
4613
|
+
var P, Tt, f = 0, Re = {}, ve, Rr, bt = 0, Bt = 0, Ye, vr, ft = [], ye, qc = {
|
|
4597
4614
|
useRecords: !1,
|
|
4598
4615
|
mapsAsObjects: !0
|
|
4599
4616
|
};
|
|
@@ -4614,7 +4631,7 @@ class ms {
|
|
|
4614
4631
|
unpack(e, t) {
|
|
4615
4632
|
if (P)
|
|
4616
4633
|
return Ol(() => (vo(), this ? this.unpack(e, t) : ms.prototype.unpack.call(qc, e, t)));
|
|
4617
|
-
!e.buffer && e.constructor === ArrayBuffer && (e = typeof Buffer < "u" ? Buffer.from(e) : new Uint8Array(e)), typeof t == "object" ? (
|
|
4634
|
+
!e.buffer && e.constructor === ArrayBuffer && (e = typeof Buffer < "u" ? Buffer.from(e) : new Uint8Array(e)), typeof t == "object" ? (Tt = t.end || e.length, f = t.start || 0) : (f = 0, Tt = t > -1 ? t : e.length), Bt = 0, Rr = null, Ye = null, P = e;
|
|
4618
4635
|
try {
|
|
4619
4636
|
ye = e.dataView || (e.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength));
|
|
4620
4637
|
} catch (n) {
|
|
@@ -4675,10 +4692,10 @@ function oa(r) {
|
|
|
4675
4692
|
t < ve.length && (ve.length = t);
|
|
4676
4693
|
}
|
|
4677
4694
|
let e;
|
|
4678
|
-
if (Re.randomAccessStructure && P[f] < 64 && P[f] >= 32 && Yc ? (e = Yc(P, f,
|
|
4695
|
+
if (Re.randomAccessStructure && P[f] < 64 && P[f] >= 32 && Yc ? (e = Yc(P, f, Tt, Re), P = null, !(r && r.lazy) && e && (e = e.toJSON()), f = Tt) : e = ze(), Ye && (f = Ye.postBundlePosition, Ye = null), Ur && (ve.restoreStructures = null), f == Tt)
|
|
4679
4696
|
ve && ve.restoreStructures && Jc(), ve = null, P = null, vr && (vr = null);
|
|
4680
4697
|
else {
|
|
4681
|
-
if (f >
|
|
4698
|
+
if (f > Tt)
|
|
4682
4699
|
throw new Error("Unexpected end of MessagePack data");
|
|
4683
4700
|
if (!Ur) {
|
|
4684
4701
|
let t;
|
|
@@ -4692,7 +4709,7 @@ function oa(r) {
|
|
|
4692
4709
|
}
|
|
4693
4710
|
return e;
|
|
4694
4711
|
} catch (e) {
|
|
4695
|
-
throw ve && ve.restoreStructures && Jc(), vo(), (e instanceof RangeError || e.message.startsWith("Unexpected end of buffer") || f >
|
|
4712
|
+
throw ve && ve.restoreStructures && Jc(), vo(), (e instanceof RangeError || e.message.startsWith("Unexpected end of buffer") || f > Tt) && (e.incomplete = !0), e;
|
|
4696
4713
|
}
|
|
4697
4714
|
}
|
|
4698
4715
|
function Jc() {
|
|
@@ -4714,7 +4731,7 @@ function ze() {
|
|
|
4714
4731
|
if (r -= 128, Re.mapsAsObjects) {
|
|
4715
4732
|
let e = {};
|
|
4716
4733
|
for (let t = 0; t < r; t++) {
|
|
4717
|
-
let n =
|
|
4734
|
+
let n = Tl();
|
|
4718
4735
|
n === "__proto__" && (n = "__proto_"), e[n] = ze();
|
|
4719
4736
|
}
|
|
4720
4737
|
return e;
|
|
@@ -4735,7 +4752,7 @@ function ze() {
|
|
|
4735
4752
|
let e = r - 160;
|
|
4736
4753
|
if (Bt >= f)
|
|
4737
4754
|
return Rr.slice(f - bt, (f += e) - bt);
|
|
4738
|
-
if (Bt == 0 &&
|
|
4755
|
+
if (Bt == 0 && Tt < 140) {
|
|
4739
4756
|
let t = e < 16 ? rc(e) : kl(e);
|
|
4740
4757
|
if (t != null)
|
|
4741
4758
|
return t;
|
|
@@ -4761,11 +4778,11 @@ function ze() {
|
|
|
4761
4778
|
case 198:
|
|
4762
4779
|
return e = ye.getUint32(f), f += 4, Qi(e);
|
|
4763
4780
|
case 199:
|
|
4764
|
-
return
|
|
4781
|
+
return Gr(P[f++]);
|
|
4765
4782
|
case 200:
|
|
4766
|
-
return e = ye.getUint16(f), f += 2,
|
|
4783
|
+
return e = ye.getUint16(f), f += 2, Gr(e);
|
|
4767
4784
|
case 201:
|
|
4768
|
-
return e = ye.getUint32(f), f += 4,
|
|
4785
|
+
return e = ye.getUint32(f), f += 4, Gr(e);
|
|
4769
4786
|
case 202:
|
|
4770
4787
|
if (e = ye.getFloat32(f), Re.useFloat32 > 2) {
|
|
4771
4788
|
let t = nc[(P[f] & 127) << 1 | P[f + 1] >> 7];
|
|
@@ -4800,13 +4817,13 @@ function ze() {
|
|
|
4800
4817
|
throw new Error("Unknown extension " + e);
|
|
4801
4818
|
}
|
|
4802
4819
|
case 213:
|
|
4803
|
-
return e = P[f], e == 114 ? (f++, tu(P[f++] & 63, P[f++])) :
|
|
4820
|
+
return e = P[f], e == 114 ? (f++, tu(P[f++] & 63, P[f++])) : Gr(2);
|
|
4804
4821
|
case 214:
|
|
4805
|
-
return
|
|
4822
|
+
return Gr(4);
|
|
4806
4823
|
case 215:
|
|
4807
|
-
return
|
|
4824
|
+
return Gr(8);
|
|
4808
4825
|
case 216:
|
|
4809
|
-
return
|
|
4826
|
+
return Gr(16);
|
|
4810
4827
|
case 217:
|
|
4811
4828
|
return e = P[f++], Bt >= f ? Rr.slice(f - bt, (f += e) - bt) : Mp(e);
|
|
4812
4829
|
case 218:
|
|
@@ -4814,9 +4831,9 @@ function ze() {
|
|
|
4814
4831
|
case 219:
|
|
4815
4832
|
return e = ye.getUint32(f), f += 4, Bt >= f ? Rr.slice(f - bt, (f += e) - bt) : Lp(e);
|
|
4816
4833
|
case 220:
|
|
4817
|
-
return e = ye.getUint16(f), f += 2,
|
|
4834
|
+
return e = ye.getUint16(f), f += 2, Hc(e);
|
|
4818
4835
|
case 221:
|
|
4819
|
-
return e = ye.getUint32(f), f += 4,
|
|
4836
|
+
return e = ye.getUint32(f), f += 4, Hc(e);
|
|
4820
4837
|
case 222:
|
|
4821
4838
|
return e = ye.getUint16(f), f += 2, Xc(e);
|
|
4822
4839
|
case 223:
|
|
@@ -4837,7 +4854,7 @@ function tc(r, e) {
|
|
|
4837
4854
|
function t() {
|
|
4838
4855
|
if (t.count++ > _l) {
|
|
4839
4856
|
let s = r.read = new Function("r", "return function(){return " + (Re.freezeData ? "Object.freeze" : "") + "({" + r.map((a) => a === "__proto__" ? "__proto_:r()" : Dp.test(a) ? a + ":r()" : "[" + JSON.stringify(a) + "]:r()").join(",") + "})}")(ze);
|
|
4840
|
-
return r.highByte === 0 && (r.read =
|
|
4857
|
+
return r.highByte === 0 && (r.read = Gc(e, r.read)), s();
|
|
4841
4858
|
}
|
|
4842
4859
|
let n = {};
|
|
4843
4860
|
for (let s = 0, a = r.length; s < a; s++) {
|
|
@@ -4846,9 +4863,9 @@ function tc(r, e) {
|
|
|
4846
4863
|
}
|
|
4847
4864
|
return Re.freezeData ? Object.freeze(n) : n;
|
|
4848
4865
|
}
|
|
4849
|
-
return t.count = 0, r.highByte === 0 ?
|
|
4866
|
+
return t.count = 0, r.highByte === 0 ? Gc(e, t) : t;
|
|
4850
4867
|
}
|
|
4851
|
-
const
|
|
4868
|
+
const Gc = (r, e) => function() {
|
|
4852
4869
|
let t = P[f++];
|
|
4853
4870
|
if (t === 0)
|
|
4854
4871
|
return e();
|
|
@@ -4889,7 +4906,7 @@ function qs(r) {
|
|
|
4889
4906
|
}
|
|
4890
4907
|
return n.length > 0 && (e += We.apply(String, n)), e;
|
|
4891
4908
|
}
|
|
4892
|
-
function
|
|
4909
|
+
function Hc(r) {
|
|
4893
4910
|
let e = new Array(r);
|
|
4894
4911
|
for (let t = 0; t < r; t++)
|
|
4895
4912
|
e[t] = ze();
|
|
@@ -4899,7 +4916,7 @@ function Xc(r) {
|
|
|
4899
4916
|
if (Re.mapsAsObjects) {
|
|
4900
4917
|
let e = {};
|
|
4901
4918
|
for (let t = 0; t < r; t++) {
|
|
4902
|
-
let n =
|
|
4919
|
+
let n = Tl();
|
|
4903
4920
|
n === "__proto__" && (n = "__proto_"), e[n] = ze();
|
|
4904
4921
|
}
|
|
4905
4922
|
return e;
|
|
@@ -5075,7 +5092,7 @@ function Qi(r) {
|
|
|
5075
5092
|
Uint8Array.prototype.slice.call(P, f, f += r)
|
|
5076
5093
|
) : P.subarray(f, f += r);
|
|
5077
5094
|
}
|
|
5078
|
-
function
|
|
5095
|
+
function Gr(r) {
|
|
5079
5096
|
let e = P[f++];
|
|
5080
5097
|
if (ft[e]) {
|
|
5081
5098
|
let t;
|
|
@@ -5091,12 +5108,12 @@ function Hr(r) {
|
|
|
5091
5108
|
throw new Error("Unknown extension type " + e);
|
|
5092
5109
|
}
|
|
5093
5110
|
var eu = new Array(4096);
|
|
5094
|
-
function
|
|
5111
|
+
function Tl() {
|
|
5095
5112
|
let r = P[f++];
|
|
5096
5113
|
if (r >= 160 && r < 192) {
|
|
5097
5114
|
if (r = r - 160, Bt >= f)
|
|
5098
5115
|
return Rr.slice(f - bt, (f += r) - bt);
|
|
5099
|
-
if (!(Bt == 0 &&
|
|
5116
|
+
if (!(Bt == 0 && Tt < 180))
|
|
5100
5117
|
return go(r);
|
|
5101
5118
|
} else
|
|
5102
5119
|
return f--, ze().toString();
|
|
@@ -5154,10 +5171,10 @@ ft[112] = (r) => {
|
|
|
5154
5171
|
return t.used = !0, t.target;
|
|
5155
5172
|
};
|
|
5156
5173
|
ft[115] = () => new Set(ze());
|
|
5157
|
-
const
|
|
5174
|
+
const xl = ["Int8", "Uint8", "Uint8Clamped", "Int16", "Uint16", "Int32", "Uint32", "Float32", "Float64", "BigInt64", "BigUint64"].map((r) => r + "Array");
|
|
5158
5175
|
let zp = typeof globalThis == "object" ? globalThis : window;
|
|
5159
5176
|
ft[116] = (r) => {
|
|
5160
|
-
let e = r[0], t =
|
|
5177
|
+
let e = r[0], t = xl[e];
|
|
5161
5178
|
if (!t)
|
|
5162
5179
|
throw new Error("Could not find typed array for code " + e);
|
|
5163
5180
|
return new zp[t](Uint8Array.prototype.slice.call(r, 1).buffer);
|
|
@@ -5177,8 +5194,8 @@ ft[255] = (r) => r.length == 4 ? new Date((r[0] * 16777216 + (r[1] << 16) + (r[2
|
|
|
5177
5194
|
((r[0] << 24) + (r[1] << 16) + (r[2] << 8) + r[3]) / 1e6 + ((r[4] & 128 ? -281474976710656 : 0) + r[6] * 1099511627776 + r[7] * 4294967296 + r[8] * 16777216 + (r[9] << 16) + (r[10] << 8) + r[11]) * 1e3
|
|
5178
5195
|
) : /* @__PURE__ */ new Date("invalid");
|
|
5179
5196
|
function Ol(r) {
|
|
5180
|
-
let e =
|
|
5181
|
-
return
|
|
5197
|
+
let e = Tt, t = f, n = bt, s = Bt, a = Rr, i = vr, o = Ye, c = new Uint8Array(P.slice(0, Tt)), d = ve, w = ve.slice(0, ve.length), M = Re, X = Ur, Q = r();
|
|
5198
|
+
return Tt = e, f = t, bt = n, Bt = s, Rr = a, vr = i, Ye = o, P = c, Ur = X, ve = d, ve.splice(0, ve.length, ...w), Re = M, ye = new DataView(P.buffer, P.byteOffset, P.byteLength), Q;
|
|
5182
5199
|
}
|
|
5183
5200
|
function vo() {
|
|
5184
5201
|
P = null, vr = null, ve = null;
|
|
@@ -5204,15 +5221,15 @@ let Ja, sc;
|
|
|
5204
5221
|
const ji = typeof Buffer < "u", ca = ji ? function(r) {
|
|
5205
5222
|
return Buffer.allocUnsafeSlow(r);
|
|
5206
5223
|
} : Uint8Array, Sl = ji ? Buffer : Uint8Array, ru = ji ? 4294967296 : 2144337920;
|
|
5207
|
-
let _, Yn,
|
|
5224
|
+
let _, Yn, Ne, g = 0, ot, Ue = null, qp;
|
|
5208
5225
|
const Yp = 21760, Jp = /[\u0080-\uFFFF]/, wn = Symbol("record-id");
|
|
5209
|
-
class
|
|
5226
|
+
class Gp extends ms {
|
|
5210
5227
|
constructor(e) {
|
|
5211
5228
|
super(e), this.offset = 0;
|
|
5212
|
-
let t, n, s, a, i = Sl.prototype.utf8Write ? function(l,
|
|
5213
|
-
return _.utf8Write(l,
|
|
5214
|
-
} : ka && ka.encodeInto ? function(l,
|
|
5215
|
-
return ka.encodeInto(l, _.subarray(
|
|
5229
|
+
let t, n, s, a, i = Sl.prototype.utf8Write ? function(l, T) {
|
|
5230
|
+
return _.utf8Write(l, T, 4294967295);
|
|
5231
|
+
} : ka && ka.encodeInto ? function(l, T) {
|
|
5232
|
+
return ka.encodeInto(l, _.subarray(T)).written;
|
|
5216
5233
|
} : !1, o = this;
|
|
5217
5234
|
e || (e = {});
|
|
5218
5235
|
let c = e && e.sequential, d = e.structures || e.saveStructures, w = e.maxSharedStructures;
|
|
@@ -5225,8 +5242,8 @@ class Hp extends ms {
|
|
|
5225
5242
|
if (Ze > 8256)
|
|
5226
5243
|
throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");
|
|
5227
5244
|
let ee = [], Xt = 0, Qt = 0;
|
|
5228
|
-
this.pack = this.encode = function(l,
|
|
5229
|
-
if (_ || (_ = new ca(8192),
|
|
5245
|
+
this.pack = this.encode = function(l, T) {
|
|
5246
|
+
if (_ || (_ = new ca(8192), Ne = _.dataView || (_.dataView = new DataView(_.buffer, 0, 8192)), g = 0), ot = _.length - 10, ot - g < 2048 ? (_ = new ca(_.length), Ne = _.dataView || (_.dataView = new DataView(_.buffer, 0, _.length)), ot = _.length - 10, g = 0) : g = g + 7 & 2147483640, t = g, T & sm && (g += T & 255), a = o.structuredClone ? /* @__PURE__ */ new Map() : null, o.bundleStrings && typeof l != "string" ? (Ue = [], Ue.size = 1 / 0) : Ue = null, s = o.structures, s) {
|
|
5230
5247
|
s.uninitialized && (s = o._mergeStructures(o.getStructures()));
|
|
5231
5248
|
let m = s.sharedLength || 0;
|
|
5232
5249
|
if (m > w)
|
|
@@ -5256,25 +5273,25 @@ class Hp extends ms {
|
|
|
5256
5273
|
let y = a.idsToInsert.sort((I, ne) => I.offset > ne.offset ? 1 : -1), k = y.length, R = -1;
|
|
5257
5274
|
for (; m && k > 0; ) {
|
|
5258
5275
|
let I = y[--k].offset + t;
|
|
5259
|
-
I < m.stringsPosition + t && R === -1 && (R = 0), I > m.position + t ? R >= 0 && (R += 6) : (R >= 0 && (
|
|
5276
|
+
I < m.stringsPosition + t && R === -1 && (R = 0), I > m.position + t ? R >= 0 && (R += 6) : (R >= 0 && (Ne.setUint32(
|
|
5260
5277
|
m.position + t,
|
|
5261
|
-
|
|
5278
|
+
Ne.getUint32(m.position + t) + R
|
|
5262
5279
|
), R = -1), m = m.previous, k++);
|
|
5263
5280
|
}
|
|
5264
|
-
R >= 0 && m &&
|
|
5281
|
+
R >= 0 && m && Ne.setUint32(
|
|
5265
5282
|
m.position + t,
|
|
5266
|
-
|
|
5267
|
-
), g += y.length * 6, g > ot &&
|
|
5283
|
+
Ne.getUint32(m.position + t) + R
|
|
5284
|
+
), g += y.length * 6, g > ot && Ge(g), o.offset = g;
|
|
5268
5285
|
let D = Xp(_.subarray(t, g), y);
|
|
5269
5286
|
return a = null, D;
|
|
5270
5287
|
}
|
|
5271
|
-
return o.offset = g,
|
|
5288
|
+
return o.offset = g, T & rm ? (_.start = t, _.end = g, _) : _.subarray(t, g);
|
|
5272
5289
|
} finally {
|
|
5273
5290
|
if (s && (Vn(), n && o.saveStructures)) {
|
|
5274
5291
|
let m = s.sharedLength || 0, y = _.subarray(t, g), k = em(s, o);
|
|
5275
|
-
return o.saveStructures(k, k.isCompatible) === !1 ? o.pack(l,
|
|
5292
|
+
return o.saveStructures(k, k.isCompatible) === !1 ? o.pack(l, T) : (o.lastNamedStructuresLength = m, y);
|
|
5276
5293
|
}
|
|
5277
|
-
|
|
5294
|
+
T & nm && (g = t);
|
|
5278
5295
|
}
|
|
5279
5296
|
};
|
|
5280
5297
|
const Vn = () => {
|
|
@@ -5283,26 +5300,26 @@ class Hp extends ms {
|
|
|
5283
5300
|
if (s.length > l && !c && (s.length = l), Xt > 1e4)
|
|
5284
5301
|
s.transitions = null, Qt = 0, Xt = 0, ee.length > 0 && (ee = []);
|
|
5285
5302
|
else if (ee.length > 0 && !c) {
|
|
5286
|
-
for (let
|
|
5287
|
-
ee[
|
|
5303
|
+
for (let T = 0, m = ee.length; T < m; T++)
|
|
5304
|
+
ee[T][wn] = 0;
|
|
5288
5305
|
ee = [];
|
|
5289
5306
|
}
|
|
5290
5307
|
}, qr = (l) => {
|
|
5291
|
-
var
|
|
5292
|
-
|
|
5293
|
-
for (let m = 0; m <
|
|
5308
|
+
var T = l.length;
|
|
5309
|
+
T < 16 ? _[g++] = 144 | T : T < 65536 ? (_[g++] = 220, _[g++] = T >> 8, _[g++] = T & 255) : (_[g++] = 221, Ne.setUint32(g, T), g += 4);
|
|
5310
|
+
for (let m = 0; m < T; m++)
|
|
5294
5311
|
re(l[m]);
|
|
5295
5312
|
}, re = (l) => {
|
|
5296
|
-
g > ot && (_ =
|
|
5297
|
-
var
|
|
5298
|
-
if (
|
|
5313
|
+
g > ot && (_ = Ge(g));
|
|
5314
|
+
var T = typeof l, m;
|
|
5315
|
+
if (T === "string") {
|
|
5299
5316
|
let y = l.length;
|
|
5300
5317
|
if (Ue && y >= 4 && y < 4096) {
|
|
5301
5318
|
if ((Ue.size += y) > Yp) {
|
|
5302
5319
|
let I, ne = (Ue[0] ? Ue[0].length * 3 + Ue[1].length : 0) + 10;
|
|
5303
|
-
g + ne > ot && (_ =
|
|
5320
|
+
g + ne > ot && (_ = Ge(g + ne));
|
|
5304
5321
|
let F;
|
|
5305
|
-
Ue.position ? (F = Ue, _[g] = 200, g += 3, _[g++] = 98, I = g - t, g += 4, au(t, re, 0),
|
|
5322
|
+
Ue.position ? (F = Ue, _[g] = 200, g += 3, _[g++] = 98, I = g - t, g += 4, au(t, re, 0), Ne.setUint16(I + t - 3, g - t - I)) : (_[g++] = 214, _[g++] = 98, I = g - t, g += 4), Ue = ["", ""], Ue.previous = F, Ue.size = 0, Ue.position = I;
|
|
5306
5323
|
}
|
|
5307
5324
|
let D = Jp.test(l);
|
|
5308
5325
|
Ue[D ? 0 : 1] += l, _[g++] = 193, re(D ? -y : y);
|
|
@@ -5311,23 +5328,23 @@ class Hp extends ms {
|
|
|
5311
5328
|
let k;
|
|
5312
5329
|
y < 32 ? k = 1 : y < 256 ? k = 2 : y < 65536 ? k = 3 : k = 5;
|
|
5313
5330
|
let R = y * 3;
|
|
5314
|
-
if (g + R > ot && (_ =
|
|
5331
|
+
if (g + R > ot && (_ = Ge(g + R)), y < 64 || !i) {
|
|
5315
5332
|
let D, I, ne, F = g + k;
|
|
5316
5333
|
for (D = 0; D < y; D++)
|
|
5317
5334
|
I = l.charCodeAt(D), I < 128 ? _[F++] = I : I < 2048 ? (_[F++] = I >> 6 | 192, _[F++] = I & 63 | 128) : (I & 64512) === 55296 && ((ne = l.charCodeAt(D + 1)) & 64512) === 56320 ? (I = 65536 + ((I & 1023) << 10) + (ne & 1023), D++, _[F++] = I >> 18 | 240, _[F++] = I >> 12 & 63 | 128, _[F++] = I >> 6 & 63 | 128, _[F++] = I & 63 | 128) : (_[F++] = I >> 12 | 224, _[F++] = I >> 6 & 63 | 128, _[F++] = I & 63 | 128);
|
|
5318
5335
|
m = F - g - k;
|
|
5319
5336
|
} else
|
|
5320
5337
|
m = i(l, g + k);
|
|
5321
|
-
m < 32 ? _[g++] = 160 | m : m < 256 ? (k < 2 && _.copyWithin(g + 2, g + 1, g + 1 + m), _[g++] = 217, _[g++] = m) : m < 65536 ? (k < 3 && _.copyWithin(g + 3, g + 2, g + 2 + m), _[g++] = 218, _[g++] = m >> 8, _[g++] = m & 255) : (k < 5 && _.copyWithin(g + 5, g + 3, g + 3 + m), _[g++] = 219,
|
|
5322
|
-
} else if (
|
|
5338
|
+
m < 32 ? _[g++] = 160 | m : m < 256 ? (k < 2 && _.copyWithin(g + 2, g + 1, g + 1 + m), _[g++] = 217, _[g++] = m) : m < 65536 ? (k < 3 && _.copyWithin(g + 3, g + 2, g + 2 + m), _[g++] = 218, _[g++] = m >> 8, _[g++] = m & 255) : (k < 5 && _.copyWithin(g + 5, g + 3, g + 3 + m), _[g++] = 219, Ne.setUint32(g, m), g += 4), g += m;
|
|
5339
|
+
} else if (T === "number")
|
|
5323
5340
|
if (l >>> 0 === l)
|
|
5324
|
-
l < 32 || l < 128 && this.useRecords === !1 || l < 64 && !this.randomAccessStructure ? _[g++] = l : l < 256 ? (_[g++] = 204, _[g++] = l) : l < 65536 ? (_[g++] = 205, _[g++] = l >> 8, _[g++] = l & 255) : (_[g++] = 206,
|
|
5341
|
+
l < 32 || l < 128 && this.useRecords === !1 || l < 64 && !this.randomAccessStructure ? _[g++] = l : l < 256 ? (_[g++] = 204, _[g++] = l) : l < 65536 ? (_[g++] = 205, _[g++] = l >> 8, _[g++] = l & 255) : (_[g++] = 206, Ne.setUint32(g, l), g += 4);
|
|
5325
5342
|
else if (l >> 0 === l)
|
|
5326
|
-
l >= -32 ? _[g++] = 256 + l : l >= -128 ? (_[g++] = 208, _[g++] = l + 256) : l >= -32768 ? (_[g++] = 209,
|
|
5343
|
+
l >= -32 ? _[g++] = 256 + l : l >= -128 ? (_[g++] = 208, _[g++] = l + 256) : l >= -32768 ? (_[g++] = 209, Ne.setInt16(g, l), g += 2) : (_[g++] = 210, Ne.setInt32(g, l), g += 4);
|
|
5327
5344
|
else {
|
|
5328
5345
|
let y;
|
|
5329
5346
|
if ((y = this.useFloat32) > 0 && l < 4294967296 && l >= -2147483648) {
|
|
5330
|
-
_[g++] = 202,
|
|
5347
|
+
_[g++] = 202, Ne.setFloat32(g, l);
|
|
5331
5348
|
let k;
|
|
5332
5349
|
if (y < 4 || // this checks for rounding of numbers that were encoded in 32-bit float to nearest significant decimal digit that could be preserved
|
|
5333
5350
|
(k = l * nc[(_[g] & 127) << 1 | _[g + 1] >> 7]) >> 0 === k) {
|
|
@@ -5336,9 +5353,9 @@ class Hp extends ms {
|
|
|
5336
5353
|
} else
|
|
5337
5354
|
g--;
|
|
5338
5355
|
}
|
|
5339
|
-
_[g++] = 203,
|
|
5356
|
+
_[g++] = 203, Ne.setFloat64(g, l), g += 8;
|
|
5340
5357
|
}
|
|
5341
|
-
else if (
|
|
5358
|
+
else if (T === "object" || T === "function")
|
|
5342
5359
|
if (!l)
|
|
5343
5360
|
_[g++] = 192;
|
|
5344
5361
|
else {
|
|
@@ -5349,7 +5366,7 @@ class Hp extends ms {
|
|
|
5349
5366
|
let R = a.idsToInsert || (a.idsToInsert = []);
|
|
5350
5367
|
k.id = R.push(k);
|
|
5351
5368
|
}
|
|
5352
|
-
_[g++] = 214, _[g++] = 112,
|
|
5369
|
+
_[g++] = 214, _[g++] = 112, Ne.setUint32(g, k.id), g += 4;
|
|
5353
5370
|
return;
|
|
5354
5371
|
} else
|
|
5355
5372
|
a.set(l, { offset: g - t });
|
|
@@ -5363,7 +5380,7 @@ class Hp extends ms {
|
|
|
5363
5380
|
if (this.mapAsEmptyObject)
|
|
5364
5381
|
_[g++] = 128;
|
|
5365
5382
|
else {
|
|
5366
|
-
m = l.size, m < 16 ? _[g++] = 128 | m : m < 65536 ? (_[g++] = 222, _[g++] = m >> 8, _[g++] = m & 255) : (_[g++] = 223,
|
|
5383
|
+
m = l.size, m < 16 ? _[g++] = 128 | m : m < 65536 ? (_[g++] = 222, _[g++] = m >> 8, _[g++] = m & 255) : (_[g++] = 223, Ne.setUint32(g, m), g += 4);
|
|
5367
5384
|
for (let [k, R] of l)
|
|
5368
5385
|
re(k), re(R);
|
|
5369
5386
|
}
|
|
@@ -5374,23 +5391,23 @@ class Hp extends ms {
|
|
|
5374
5391
|
let I = Ja[k];
|
|
5375
5392
|
if (I.write) {
|
|
5376
5393
|
I.type && (_[g++] = 212, _[g++] = I.type, _[g++] = 0);
|
|
5377
|
-
let
|
|
5378
|
-
|
|
5394
|
+
let He = I.write.call(this, l);
|
|
5395
|
+
He === l ? Array.isArray(l) ? qr(l) : er(l) : re(He);
|
|
5379
5396
|
return;
|
|
5380
5397
|
}
|
|
5381
|
-
let ne = _, F =
|
|
5398
|
+
let ne = _, F = Ne, Ke = g;
|
|
5382
5399
|
_ = null;
|
|
5383
5400
|
let it;
|
|
5384
5401
|
try {
|
|
5385
|
-
it = I.pack.call(this, l, (
|
|
5402
|
+
it = I.pack.call(this, l, (He) => (_ = ne, ne = null, g += He, g > ot && Ge(g), {
|
|
5386
5403
|
target: _,
|
|
5387
|
-
targetView:
|
|
5388
|
-
position: g -
|
|
5404
|
+
targetView: Ne,
|
|
5405
|
+
position: g - He
|
|
5389
5406
|
}), re);
|
|
5390
5407
|
} finally {
|
|
5391
|
-
ne && (_ = ne,
|
|
5408
|
+
ne && (_ = ne, Ne = F, g = Ke, ot = _.length - 10);
|
|
5392
5409
|
}
|
|
5393
|
-
it && (it.length + g > ot &&
|
|
5410
|
+
it && (it.length + g > ot && Ge(it.length + g), g = Hp(it, _, g, I.type));
|
|
5394
5411
|
return;
|
|
5395
5412
|
}
|
|
5396
5413
|
}
|
|
@@ -5402,55 +5419,55 @@ class Hp extends ms {
|
|
|
5402
5419
|
if (k !== l)
|
|
5403
5420
|
return re(k);
|
|
5404
5421
|
}
|
|
5405
|
-
if (
|
|
5422
|
+
if (T === "function")
|
|
5406
5423
|
return re(this.writeFunction && this.writeFunction(l));
|
|
5407
5424
|
er(l, !l.hasOwnProperty);
|
|
5408
5425
|
}
|
|
5409
5426
|
}
|
|
5410
5427
|
}
|
|
5411
|
-
else if (
|
|
5428
|
+
else if (T === "boolean")
|
|
5412
5429
|
_[g++] = l ? 195 : 194;
|
|
5413
|
-
else if (
|
|
5430
|
+
else if (T === "bigint") {
|
|
5414
5431
|
if (l < BigInt(1) << BigInt(63) && l >= -(BigInt(1) << BigInt(63)))
|
|
5415
|
-
_[g++] = 211,
|
|
5432
|
+
_[g++] = 211, Ne.setBigInt64(g, l);
|
|
5416
5433
|
else if (l < BigInt(1) << BigInt(64) && l > 0)
|
|
5417
|
-
_[g++] = 207,
|
|
5434
|
+
_[g++] = 207, Ne.setBigUint64(g, l);
|
|
5418
5435
|
else if (this.largeBigIntToFloat)
|
|
5419
|
-
_[g++] = 203,
|
|
5436
|
+
_[g++] = 203, Ne.setFloat64(g, Number(l));
|
|
5420
5437
|
else
|
|
5421
5438
|
throw new RangeError(l + " was too large to fit in MessagePack 64-bit integer format, set largeBigIntToFloat to convert to float-64");
|
|
5422
5439
|
g += 8;
|
|
5423
|
-
} else if (
|
|
5440
|
+
} else if (T === "undefined")
|
|
5424
5441
|
this.encodeUndefinedAsNil ? _[g++] = 192 : (_[g++] = 212, _[g++] = 0, _[g++] = 0);
|
|
5425
5442
|
else
|
|
5426
|
-
throw new Error("Unknown type: " +
|
|
5443
|
+
throw new Error("Unknown type: " + T);
|
|
5427
5444
|
}, Kn = this.variableMapSize || this.coercibleKeyAsNumber ? (l) => {
|
|
5428
|
-
let
|
|
5429
|
-
m < 16 ? _[g++] = 128 | m : m < 65536 ? (_[g++] = 222, _[g++] = m >> 8, _[g++] = m & 255) : (_[g++] = 223,
|
|
5445
|
+
let T = Object.keys(l), m = T.length;
|
|
5446
|
+
m < 16 ? _[g++] = 128 | m : m < 65536 ? (_[g++] = 222, _[g++] = m >> 8, _[g++] = m & 255) : (_[g++] = 223, Ne.setUint32(g, m), g += 4);
|
|
5430
5447
|
let y;
|
|
5431
5448
|
if (this.coercibleKeyAsNumber)
|
|
5432
5449
|
for (let k = 0; k < m; k++) {
|
|
5433
|
-
y =
|
|
5450
|
+
y = T[k];
|
|
5434
5451
|
let R = Number(y);
|
|
5435
5452
|
re(isNaN(R) ? y : R), re(l[y]);
|
|
5436
5453
|
}
|
|
5437
5454
|
else
|
|
5438
5455
|
for (let k = 0; k < m; k++)
|
|
5439
|
-
re(y =
|
|
5440
|
-
} : (l,
|
|
5456
|
+
re(y = T[k]), re(l[y]);
|
|
5457
|
+
} : (l, T) => {
|
|
5441
5458
|
_[g++] = 222;
|
|
5442
5459
|
let m = g - t;
|
|
5443
5460
|
g += 2;
|
|
5444
5461
|
let y = 0;
|
|
5445
5462
|
for (let k in l)
|
|
5446
|
-
(
|
|
5463
|
+
(T || l.hasOwnProperty(k)) && (re(k), re(l[k]), y++);
|
|
5447
5464
|
_[m++ + t] = y >> 8, _[m + t] = y & 255;
|
|
5448
5465
|
}, Fn = this.useRecords === !1 ? Kn : e.progressiveRecords && !X ? (
|
|
5449
5466
|
// this is about 2% faster for highly stable structures, since it only requires one for-in loop (but much more expensive when new structure needs to be written)
|
|
5450
|
-
(l,
|
|
5467
|
+
(l, T) => {
|
|
5451
5468
|
let m, y = s.transitions || (s.transitions = /* @__PURE__ */ Object.create(null)), k = g++ - t, R;
|
|
5452
5469
|
for (let D in l)
|
|
5453
|
-
if (
|
|
5470
|
+
if (T || l.hasOwnProperty(D)) {
|
|
5454
5471
|
if (m = y[D], m)
|
|
5455
5472
|
y = m;
|
|
5456
5473
|
else {
|
|
@@ -5458,8 +5475,8 @@ class Hp extends ms {
|
|
|
5458
5475
|
y = s.transitions;
|
|
5459
5476
|
let F = 0;
|
|
5460
5477
|
for (let Ke = 0, it = I.length; Ke < it; Ke++) {
|
|
5461
|
-
let
|
|
5462
|
-
m = y[
|
|
5478
|
+
let He = I[Ke];
|
|
5479
|
+
m = y[He], m || (m = y[He] = /* @__PURE__ */ Object.create(null), F++), y = m;
|
|
5463
5480
|
}
|
|
5464
5481
|
k + t + 1 == g ? (g--, Yr(y, I, F)) : qn(y, I, k, F), R = !0, y = ne[D];
|
|
5465
5482
|
}
|
|
@@ -5470,52 +5487,52 @@ class Hp extends ms {
|
|
|
5470
5487
|
D ? _[k + t] = D : qn(y, Object.keys(l), k, 0);
|
|
5471
5488
|
}
|
|
5472
5489
|
}
|
|
5473
|
-
) : (l,
|
|
5490
|
+
) : (l, T) => {
|
|
5474
5491
|
let m, y = s.transitions || (s.transitions = /* @__PURE__ */ Object.create(null)), k = 0;
|
|
5475
5492
|
for (let D in l)
|
|
5476
|
-
(
|
|
5493
|
+
(T || l.hasOwnProperty(D)) && (m = y[D], m || (m = y[D] = /* @__PURE__ */ Object.create(null), k++), y = m);
|
|
5477
5494
|
let R = y[wn];
|
|
5478
5495
|
R ? R >= 96 && X ? (_[g++] = ((R -= 96) & 31) + 96, _[g++] = R >> 5) : _[g++] = R : Yr(y, y.__keys__ || Object.keys(l), k);
|
|
5479
5496
|
for (let D in l)
|
|
5480
|
-
(
|
|
5481
|
-
}, Wn = typeof this.useRecords == "function" && this.useRecords, er = Wn ? (l,
|
|
5482
|
-
Wn(l) ? Fn(l,
|
|
5483
|
-
} : Fn,
|
|
5484
|
-
let
|
|
5497
|
+
(T || l.hasOwnProperty(D)) && re(l[D]);
|
|
5498
|
+
}, Wn = typeof this.useRecords == "function" && this.useRecords, er = Wn ? (l, T) => {
|
|
5499
|
+
Wn(l) ? Fn(l, T) : Kn(l, T);
|
|
5500
|
+
} : Fn, Ge = (l) => {
|
|
5501
|
+
let T;
|
|
5485
5502
|
if (l > 16777216) {
|
|
5486
5503
|
if (l - t > ru)
|
|
5487
5504
|
throw new Error("Packed buffer would be larger than maximum buffer size");
|
|
5488
|
-
|
|
5505
|
+
T = Math.min(
|
|
5489
5506
|
ru,
|
|
5490
5507
|
Math.round(Math.max((l - t) * (l > 67108864 ? 1.25 : 2), 4194304) / 4096) * 4096
|
|
5491
5508
|
);
|
|
5492
5509
|
} else
|
|
5493
|
-
|
|
5494
|
-
let m = new ca(
|
|
5495
|
-
return
|
|
5496
|
-
}, Yr = (l,
|
|
5510
|
+
T = (Math.max(l - t << 2, _.length - 1) >> 12) + 1 << 12;
|
|
5511
|
+
let m = new ca(T);
|
|
5512
|
+
return Ne = m.dataView || (m.dataView = new DataView(m.buffer, 0, T)), l = Math.min(l, _.length), _.copy ? _.copy(m, 0, t, l) : m.set(_.slice(t, l)), g -= t, t = 0, ot = m.length - 10, _ = m;
|
|
5513
|
+
}, Yr = (l, T, m) => {
|
|
5497
5514
|
let y = s.nextId;
|
|
5498
|
-
y || (y = 64), y < Q && this.shouldShareStructure && !this.shouldShareStructure(
|
|
5499
|
-
let k =
|
|
5500
|
-
l[wn] = y, l.__keys__ =
|
|
5501
|
-
}, qn = (l,
|
|
5515
|
+
y || (y = 64), y < Q && this.shouldShareStructure && !this.shouldShareStructure(T) ? (y = s.nextOwnId, y < Ze || (y = Q), s.nextOwnId = y + 1) : (y >= Ze && (y = Q), s.nextId = y + 1);
|
|
5516
|
+
let k = T.highByte = y >= 96 && X ? y - 96 >> 5 : -1;
|
|
5517
|
+
l[wn] = y, l.__keys__ = T, s[y - 64] = T, y < Q ? (T.isShared = !0, s.sharedLength = y - 63, n = !0, k >= 0 ? (_[g++] = (y & 31) + 96, _[g++] = k) : _[g++] = y) : (k >= 0 ? (_[g++] = 213, _[g++] = 114, _[g++] = (y & 31) + 96, _[g++] = k) : (_[g++] = 212, _[g++] = 114, _[g++] = y), m && (Xt += Qt * m), ee.length >= M && (ee.shift()[wn] = 0), ee.push(l), re(T));
|
|
5518
|
+
}, qn = (l, T, m, y) => {
|
|
5502
5519
|
let k = _, R = g, D = ot, I = t;
|
|
5503
|
-
_ = Yn, g = 0, t = 0, _ || (Yn = _ = new ca(8192)), ot = _.length - 10, Yr(l,
|
|
5520
|
+
_ = Yn, g = 0, t = 0, _ || (Yn = _ = new ca(8192)), ot = _.length - 10, Yr(l, T, y), Yn = _;
|
|
5504
5521
|
let ne = g;
|
|
5505
5522
|
if (_ = k, g = R, ot = D, t = I, ne > 1) {
|
|
5506
5523
|
let F = g + ne - 1;
|
|
5507
|
-
F > ot &&
|
|
5524
|
+
F > ot && Ge(F);
|
|
5508
5525
|
let Ke = m + t;
|
|
5509
5526
|
_.copyWithin(Ke + ne, Ke + 1, g), _.set(Yn.slice(0, ne), Ke), g = F;
|
|
5510
5527
|
} else
|
|
5511
5528
|
_[m + t] = Yn[0];
|
|
5512
|
-
}, Ji = (l,
|
|
5513
|
-
let m = qp(l, _, t, g, s,
|
|
5529
|
+
}, Ji = (l, T) => {
|
|
5530
|
+
let m = qp(l, _, t, g, s, Ge, (y, k, R) => {
|
|
5514
5531
|
if (R)
|
|
5515
5532
|
return n = !0;
|
|
5516
5533
|
g = k;
|
|
5517
5534
|
let D = _;
|
|
5518
|
-
return re(y), Vn(), D !== _ ? { position: g, targetView:
|
|
5535
|
+
return re(y), Vn(), D !== _ ? { position: g, targetView: Ne, target: _ } : g;
|
|
5519
5536
|
}, this);
|
|
5520
5537
|
if (m === 0)
|
|
5521
5538
|
return er(l, !0);
|
|
@@ -5523,7 +5540,7 @@ class Hp extends ms {
|
|
|
5523
5540
|
};
|
|
5524
5541
|
}
|
|
5525
5542
|
useBuffer(e) {
|
|
5526
|
-
_ = e,
|
|
5543
|
+
_ = e, Ne = new DataView(_.buffer, _.byteOffset, _.byteLength), g = 0;
|
|
5527
5544
|
}
|
|
5528
5545
|
clearSharedData() {
|
|
5529
5546
|
this.structures && (this.structures = []), this.typedStructs && (this.typedStructs = []);
|
|
@@ -5573,7 +5590,7 @@ Ja = [{
|
|
|
5573
5590
|
}, {
|
|
5574
5591
|
pack(r, e) {
|
|
5575
5592
|
let t = r.constructor;
|
|
5576
|
-
t !== Sl && this.moreTypes ? nu(r,
|
|
5593
|
+
t !== Sl && this.moreTypes ? nu(r, xl.indexOf(t.name), e) : su(r, e);
|
|
5577
5594
|
}
|
|
5578
5595
|
}, {
|
|
5579
5596
|
pack(r, e) {
|
|
@@ -5610,7 +5627,7 @@ function su(r, e) {
|
|
|
5610
5627
|
}
|
|
5611
5628
|
n.set(r, s);
|
|
5612
5629
|
}
|
|
5613
|
-
function
|
|
5630
|
+
function Hp(r, e, t, n) {
|
|
5614
5631
|
let s = r.length;
|
|
5615
5632
|
switch (s) {
|
|
5616
5633
|
case 1:
|
|
@@ -5645,7 +5662,7 @@ function Xp(r, e) {
|
|
|
5645
5662
|
}
|
|
5646
5663
|
function au(r, e, t) {
|
|
5647
5664
|
if (Ue.length > 0) {
|
|
5648
|
-
|
|
5665
|
+
Ne.setUint32(Ue.position + r, g + t - Ue.position - r), Ue.stringsPosition = g - r;
|
|
5649
5666
|
let n = Ue;
|
|
5650
5667
|
Ue = null, e(n[0]), e(n[1]);
|
|
5651
5668
|
}
|
|
@@ -5666,7 +5683,7 @@ function em(r, e) {
|
|
|
5666
5683
|
return n || e._mergeStructures(t), n;
|
|
5667
5684
|
}, r;
|
|
5668
5685
|
}
|
|
5669
|
-
let Nl = new
|
|
5686
|
+
let Nl = new Gp({ useRecords: !1 });
|
|
5670
5687
|
const tm = Nl.pack;
|
|
5671
5688
|
Nl.pack;
|
|
5672
5689
|
const rm = 512, nm = 1024, sm = 2048;
|
|
@@ -5727,7 +5744,7 @@ class om {
|
|
|
5727
5744
|
this.handlers.forEach((t, n) => n(e));
|
|
5728
5745
|
}
|
|
5729
5746
|
}
|
|
5730
|
-
const
|
|
5747
|
+
const Ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5731
5748
|
__proto__: null,
|
|
5732
5749
|
Observer: om
|
|
5733
5750
|
}, Symbol.toStringTag, { value: "Module" })), Ys = u.number(), Js = u.object({
|
|
@@ -5754,14 +5771,14 @@ const Ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5754
5771
|
isIndex: e.isIndex
|
|
5755
5772
|
}));
|
|
5756
5773
|
u.object({ channels: Al.array() });
|
|
5757
|
-
const cm = u.object({ channels: Js.array() }),
|
|
5774
|
+
const cm = u.object({ channels: Js.array() }), Ti = class Ti {
|
|
5758
5775
|
constructor(e) {
|
|
5759
5776
|
h(this, "client");
|
|
5760
5777
|
this.client = e;
|
|
5761
5778
|
}
|
|
5762
5779
|
async create(e) {
|
|
5763
5780
|
const t = { channels: Cl(e) }, [n, s] = await this.client.send(
|
|
5764
|
-
|
|
5781
|
+
Ti.ENDPOINT,
|
|
5765
5782
|
t,
|
|
5766
5783
|
cm
|
|
5767
5784
|
);
|
|
@@ -5770,8 +5787,8 @@ const cm = u.object({ channels: Js.array() }), xi = class xi {
|
|
|
5770
5787
|
return n.channels;
|
|
5771
5788
|
}
|
|
5772
5789
|
};
|
|
5773
|
-
h(
|
|
5774
|
-
let
|
|
5790
|
+
h(Ti, "ENDPOINT", "/channel/create");
|
|
5791
|
+
let Ha = Ti;
|
|
5775
5792
|
u.object({
|
|
5776
5793
|
leaseholder: u.number().optional(),
|
|
5777
5794
|
keys: u.number().array().optional(),
|
|
@@ -5783,7 +5800,7 @@ u.object({
|
|
|
5783
5800
|
});
|
|
5784
5801
|
const um = u.object({
|
|
5785
5802
|
channels: Js.array()
|
|
5786
|
-
}),
|
|
5803
|
+
}), xi = class xi {
|
|
5787
5804
|
constructor(e) {
|
|
5788
5805
|
h(this, "client");
|
|
5789
5806
|
this.client = e;
|
|
@@ -5799,14 +5816,14 @@ const um = u.object({
|
|
|
5799
5816
|
return await this.execute({ offset: e, limit: t, rangeKey: n });
|
|
5800
5817
|
}
|
|
5801
5818
|
async execute(e) {
|
|
5802
|
-
const [t, n] = await this.client.send(
|
|
5819
|
+
const [t, n] = await this.client.send(xi.ENDPOINT, e, um);
|
|
5803
5820
|
if (n != null)
|
|
5804
5821
|
throw n;
|
|
5805
5822
|
return t.channels;
|
|
5806
5823
|
}
|
|
5807
5824
|
};
|
|
5808
|
-
h(
|
|
5809
|
-
let Xa =
|
|
5825
|
+
h(xi, "ENDPOINT", "/channel/retrieve");
|
|
5826
|
+
let Xa = xi;
|
|
5810
5827
|
class jl {
|
|
5811
5828
|
constructor(e) {
|
|
5812
5829
|
h(this, "cache");
|
|
@@ -5842,7 +5859,7 @@ class jl {
|
|
|
5842
5859
|
}
|
|
5843
5860
|
}
|
|
5844
5861
|
const yn = (r) => {
|
|
5845
|
-
const e =
|
|
5862
|
+
const e = xe(r).filter((t) => t != 0);
|
|
5846
5863
|
return {
|
|
5847
5864
|
single: !Array.isArray(r),
|
|
5848
5865
|
variant: typeof e[0] == "number" ? "keys" : "names",
|
|
@@ -6282,7 +6299,7 @@ let le = class {
|
|
|
6282
6299
|
_refinement(r) {
|
|
6283
6300
|
return new Dt({
|
|
6284
6301
|
schema: this,
|
|
6285
|
-
typeName:
|
|
6302
|
+
typeName: G.ZodEffects,
|
|
6286
6303
|
effect: { type: "refinement", refinement: r }
|
|
6287
6304
|
});
|
|
6288
6305
|
}
|
|
@@ -6305,7 +6322,7 @@ let le = class {
|
|
|
6305
6322
|
return Dn.create(this, this._def);
|
|
6306
6323
|
}
|
|
6307
6324
|
or(r) {
|
|
6308
|
-
return
|
|
6325
|
+
return xs.create([this, r], this._def);
|
|
6309
6326
|
}
|
|
6310
6327
|
and(r) {
|
|
6311
6328
|
return Os.create(this, r, this._def);
|
|
@@ -6314,7 +6331,7 @@ let le = class {
|
|
|
6314
6331
|
return new Dt({
|
|
6315
6332
|
...oe(this._def),
|
|
6316
6333
|
schema: this,
|
|
6317
|
-
typeName:
|
|
6334
|
+
typeName: G.ZodEffects,
|
|
6318
6335
|
effect: { type: "transform", transform: r }
|
|
6319
6336
|
});
|
|
6320
6337
|
}
|
|
@@ -6324,12 +6341,12 @@ let le = class {
|
|
|
6324
6341
|
...oe(this._def),
|
|
6325
6342
|
innerType: this,
|
|
6326
6343
|
defaultValue: e,
|
|
6327
|
-
typeName:
|
|
6344
|
+
typeName: G.ZodDefault
|
|
6328
6345
|
});
|
|
6329
6346
|
}
|
|
6330
6347
|
brand() {
|
|
6331
6348
|
return new Vl({
|
|
6332
|
-
typeName:
|
|
6349
|
+
typeName: G.ZodBranded,
|
|
6333
6350
|
type: this,
|
|
6334
6351
|
...oe(this._def)
|
|
6335
6352
|
});
|
|
@@ -6340,7 +6357,7 @@ let le = class {
|
|
|
6340
6357
|
...oe(this._def),
|
|
6341
6358
|
innerType: this,
|
|
6342
6359
|
catchValue: e,
|
|
6343
|
-
typeName:
|
|
6360
|
+
typeName: G.ZodCatch
|
|
6344
6361
|
});
|
|
6345
6362
|
}
|
|
6346
6363
|
describe(r) {
|
|
@@ -6365,9 +6382,9 @@ let le = class {
|
|
|
6365
6382
|
};
|
|
6366
6383
|
const gm = /^c[^\s-]{8,}$/i, vm = /^[a-z][a-z0-9]*$/, wm = /^[0-9A-HJKMNP-TV-Z]{26}$/, _m = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, bm = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, km = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
6367
6384
|
let eo;
|
|
6368
|
-
const
|
|
6385
|
+
const Tm = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, xm = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Om = (r) => r.precision ? r.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`) : r.precision === 0 ? r.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : r.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
6369
6386
|
function Sm(r, e) {
|
|
6370
|
-
return !!((e === "v4" || !e) &&
|
|
6387
|
+
return !!((e === "v4" || !e) && Tm.test(r) || (e === "v6" || !e) && xm.test(r));
|
|
6371
6388
|
}
|
|
6372
6389
|
let Pn = class Qn extends le {
|
|
6373
6390
|
_parse(e) {
|
|
@@ -6665,7 +6682,7 @@ Pn.create = (r) => {
|
|
|
6665
6682
|
var e;
|
|
6666
6683
|
return new Pn({
|
|
6667
6684
|
checks: [],
|
|
6668
|
-
typeName:
|
|
6685
|
+
typeName: G.ZodString,
|
|
6669
6686
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
6670
6687
|
...oe(r)
|
|
6671
6688
|
});
|
|
@@ -6842,11 +6859,11 @@ let vs = class ko extends le {
|
|
|
6842
6859
|
};
|
|
6843
6860
|
vs.create = (r) => new vs({
|
|
6844
6861
|
checks: [],
|
|
6845
|
-
typeName:
|
|
6862
|
+
typeName: G.ZodNumber,
|
|
6846
6863
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
6847
6864
|
...oe(r)
|
|
6848
6865
|
});
|
|
6849
|
-
let ws = class
|
|
6866
|
+
let ws = class To extends le {
|
|
6850
6867
|
constructor() {
|
|
6851
6868
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
6852
6869
|
}
|
|
@@ -6894,7 +6911,7 @@ let ws = class xo extends le {
|
|
|
6894
6911
|
return this.setLimit("max", e, !1, q.toString(t));
|
|
6895
6912
|
}
|
|
6896
6913
|
setLimit(e, t, n, s) {
|
|
6897
|
-
return new
|
|
6914
|
+
return new To({
|
|
6898
6915
|
...this._def,
|
|
6899
6916
|
checks: [
|
|
6900
6917
|
...this._def.checks,
|
|
@@ -6908,7 +6925,7 @@ let ws = class xo extends le {
|
|
|
6908
6925
|
});
|
|
6909
6926
|
}
|
|
6910
6927
|
_addCheck(e) {
|
|
6911
|
-
return new
|
|
6928
|
+
return new To({
|
|
6912
6929
|
...this._def,
|
|
6913
6930
|
checks: [...this._def.checks, e]
|
|
6914
6931
|
});
|
|
@@ -6969,7 +6986,7 @@ ws.create = (r) => {
|
|
|
6969
6986
|
var e;
|
|
6970
6987
|
return new ws({
|
|
6971
6988
|
checks: [],
|
|
6972
|
-
typeName:
|
|
6989
|
+
typeName: G.ZodBigInt,
|
|
6973
6990
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
6974
6991
|
...oe(r)
|
|
6975
6992
|
});
|
|
@@ -6988,7 +7005,7 @@ let _s = class extends le {
|
|
|
6988
7005
|
}
|
|
6989
7006
|
};
|
|
6990
7007
|
_s.create = (r) => new _s({
|
|
6991
|
-
typeName:
|
|
7008
|
+
typeName: G.ZodBoolean,
|
|
6992
7009
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
6993
7010
|
...oe(r)
|
|
6994
7011
|
});
|
|
@@ -7067,7 +7084,7 @@ let bs = class Ul extends le {
|
|
|
7067
7084
|
bs.create = (r) => new bs({
|
|
7068
7085
|
checks: [],
|
|
7069
7086
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
7070
|
-
typeName:
|
|
7087
|
+
typeName: G.ZodDate,
|
|
7071
7088
|
...oe(r)
|
|
7072
7089
|
});
|
|
7073
7090
|
let ri = class extends le {
|
|
@@ -7084,7 +7101,7 @@ let ri = class extends le {
|
|
|
7084
7101
|
}
|
|
7085
7102
|
};
|
|
7086
7103
|
ri.create = (r) => new ri({
|
|
7087
|
-
typeName:
|
|
7104
|
+
typeName: G.ZodSymbol,
|
|
7088
7105
|
...oe(r)
|
|
7089
7106
|
});
|
|
7090
7107
|
let ks = class extends le {
|
|
@@ -7101,10 +7118,10 @@ let ks = class extends le {
|
|
|
7101
7118
|
}
|
|
7102
7119
|
};
|
|
7103
7120
|
ks.create = (r) => new ks({
|
|
7104
|
-
typeName:
|
|
7121
|
+
typeName: G.ZodUndefined,
|
|
7105
7122
|
...oe(r)
|
|
7106
7123
|
});
|
|
7107
|
-
let
|
|
7124
|
+
let Ts = class extends le {
|
|
7108
7125
|
_parse(r) {
|
|
7109
7126
|
if (this._getType(r) !== L.null) {
|
|
7110
7127
|
const e = this._getOrReturnCtx(r);
|
|
@@ -7117,8 +7134,8 @@ let xs = class extends le {
|
|
|
7117
7134
|
return pt(r.data);
|
|
7118
7135
|
}
|
|
7119
7136
|
};
|
|
7120
|
-
|
|
7121
|
-
typeName:
|
|
7137
|
+
Ts.create = (r) => new Ts({
|
|
7138
|
+
typeName: G.ZodNull,
|
|
7122
7139
|
...oe(r)
|
|
7123
7140
|
});
|
|
7124
7141
|
let Un = class extends le {
|
|
@@ -7130,7 +7147,7 @@ let Un = class extends le {
|
|
|
7130
7147
|
}
|
|
7131
7148
|
};
|
|
7132
7149
|
Un.create = (r) => new Un({
|
|
7133
|
-
typeName:
|
|
7150
|
+
typeName: G.ZodAny,
|
|
7134
7151
|
...oe(r)
|
|
7135
7152
|
});
|
|
7136
7153
|
let rn = class extends le {
|
|
@@ -7142,10 +7159,10 @@ let rn = class extends le {
|
|
|
7142
7159
|
}
|
|
7143
7160
|
};
|
|
7144
7161
|
rn.create = (r) => new rn({
|
|
7145
|
-
typeName:
|
|
7162
|
+
typeName: G.ZodUnknown,
|
|
7146
7163
|
...oe(r)
|
|
7147
7164
|
});
|
|
7148
|
-
let
|
|
7165
|
+
let Tr = class extends le {
|
|
7149
7166
|
_parse(r) {
|
|
7150
7167
|
const e = this._getOrReturnCtx(r);
|
|
7151
7168
|
return V(e, {
|
|
@@ -7155,8 +7172,8 @@ let xr = class extends le {
|
|
|
7155
7172
|
}), se;
|
|
7156
7173
|
}
|
|
7157
7174
|
};
|
|
7158
|
-
|
|
7159
|
-
typeName:
|
|
7175
|
+
Tr.create = (r) => new Tr({
|
|
7176
|
+
typeName: G.ZodNever,
|
|
7160
7177
|
...oe(r)
|
|
7161
7178
|
});
|
|
7162
7179
|
let ni = class extends le {
|
|
@@ -7173,10 +7190,10 @@ let ni = class extends le {
|
|
|
7173
7190
|
}
|
|
7174
7191
|
};
|
|
7175
7192
|
ni.create = (r) => new ni({
|
|
7176
|
-
typeName:
|
|
7193
|
+
typeName: G.ZodVoid,
|
|
7177
7194
|
...oe(r)
|
|
7178
7195
|
});
|
|
7179
|
-
let un = class
|
|
7196
|
+
let un = class Ta extends le {
|
|
7180
7197
|
_parse(e) {
|
|
7181
7198
|
const { ctx: t, status: n } = this._processInputParams(e), s = this._def;
|
|
7182
7199
|
if (t.parsedType !== L.array)
|
|
@@ -7220,19 +7237,19 @@ let un = class xa extends le {
|
|
|
7220
7237
|
return this._def.type;
|
|
7221
7238
|
}
|
|
7222
7239
|
min(e, t) {
|
|
7223
|
-
return new
|
|
7240
|
+
return new Ta({
|
|
7224
7241
|
...this._def,
|
|
7225
7242
|
minLength: { value: e, message: q.toString(t) }
|
|
7226
7243
|
});
|
|
7227
7244
|
}
|
|
7228
7245
|
max(e, t) {
|
|
7229
|
-
return new
|
|
7246
|
+
return new Ta({
|
|
7230
7247
|
...this._def,
|
|
7231
7248
|
maxLength: { value: e, message: q.toString(t) }
|
|
7232
7249
|
});
|
|
7233
7250
|
}
|
|
7234
7251
|
length(e, t) {
|
|
7235
|
-
return new
|
|
7252
|
+
return new Ta({
|
|
7236
7253
|
...this._def,
|
|
7237
7254
|
exactLength: { value: e, message: q.toString(t) }
|
|
7238
7255
|
});
|
|
@@ -7246,15 +7263,15 @@ un.create = (r, e) => new un({
|
|
|
7246
7263
|
minLength: null,
|
|
7247
7264
|
maxLength: null,
|
|
7248
7265
|
exactLength: null,
|
|
7249
|
-
typeName:
|
|
7266
|
+
typeName: G.ZodArray,
|
|
7250
7267
|
...oe(e)
|
|
7251
7268
|
});
|
|
7252
|
-
function
|
|
7269
|
+
function Tn(r) {
|
|
7253
7270
|
if (r instanceof St) {
|
|
7254
7271
|
const e = {};
|
|
7255
7272
|
for (const t in r.shape) {
|
|
7256
7273
|
const n = r.shape[t];
|
|
7257
|
-
e[t] = wr.create(
|
|
7274
|
+
e[t] = wr.create(Tn(n));
|
|
7258
7275
|
}
|
|
7259
7276
|
return new St({
|
|
7260
7277
|
...r._def,
|
|
@@ -7263,8 +7280,8 @@ function xn(r) {
|
|
|
7263
7280
|
} else
|
|
7264
7281
|
return r instanceof un ? new un({
|
|
7265
7282
|
...r._def,
|
|
7266
|
-
type:
|
|
7267
|
-
}) : r instanceof wr ? wr.create(
|
|
7283
|
+
type: Tn(r.element)
|
|
7284
|
+
}) : r instanceof wr ? wr.create(Tn(r.unwrap())) : r instanceof ln ? ln.create(Tn(r.unwrap())) : r instanceof Br ? Br.create(r.items.map((e) => Tn(e))) : r;
|
|
7268
7285
|
}
|
|
7269
7286
|
let St = class Et extends le {
|
|
7270
7287
|
constructor() {
|
|
@@ -7286,7 +7303,7 @@ let St = class Et extends le {
|
|
|
7286
7303
|
}), se;
|
|
7287
7304
|
}
|
|
7288
7305
|
const { status: t, ctx: n } = this._processInputParams(e), { shape: s, keys: a } = this._getCached(), i = [];
|
|
7289
|
-
if (!(this._def.catchall instanceof
|
|
7306
|
+
if (!(this._def.catchall instanceof Tr && this._def.unknownKeys === "strip"))
|
|
7290
7307
|
for (const c in n.data)
|
|
7291
7308
|
a.includes(c) || i.push(c);
|
|
7292
7309
|
const o = [];
|
|
@@ -7298,7 +7315,7 @@ let St = class Et extends le {
|
|
|
7298
7315
|
alwaysSet: c in n.data
|
|
7299
7316
|
});
|
|
7300
7317
|
}
|
|
7301
|
-
if (this._def.catchall instanceof
|
|
7318
|
+
if (this._def.catchall instanceof Tr) {
|
|
7302
7319
|
const c = this._def.unknownKeys;
|
|
7303
7320
|
if (c === "passthrough")
|
|
7304
7321
|
for (const d of i)
|
|
@@ -7411,7 +7428,7 @@ let St = class Et extends le {
|
|
|
7411
7428
|
...this._def.shape(),
|
|
7412
7429
|
...e._def.shape()
|
|
7413
7430
|
}),
|
|
7414
|
-
typeName:
|
|
7431
|
+
typeName: G.ZodObject
|
|
7415
7432
|
});
|
|
7416
7433
|
}
|
|
7417
7434
|
// merge<
|
|
@@ -7501,7 +7518,7 @@ let St = class Et extends le {
|
|
|
7501
7518
|
* @deprecated
|
|
7502
7519
|
*/
|
|
7503
7520
|
deepPartial() {
|
|
7504
|
-
return
|
|
7521
|
+
return Tn(this);
|
|
7505
7522
|
}
|
|
7506
7523
|
partial(e) {
|
|
7507
7524
|
const t = {};
|
|
@@ -7536,25 +7553,25 @@ let St = class Et extends le {
|
|
|
7536
7553
|
St.create = (r, e) => new St({
|
|
7537
7554
|
shape: () => r,
|
|
7538
7555
|
unknownKeys: "strip",
|
|
7539
|
-
catchall:
|
|
7540
|
-
typeName:
|
|
7556
|
+
catchall: Tr.create(),
|
|
7557
|
+
typeName: G.ZodObject,
|
|
7541
7558
|
...oe(e)
|
|
7542
7559
|
});
|
|
7543
7560
|
St.strictCreate = (r, e) => new St({
|
|
7544
7561
|
shape: () => r,
|
|
7545
7562
|
unknownKeys: "strict",
|
|
7546
|
-
catchall:
|
|
7547
|
-
typeName:
|
|
7563
|
+
catchall: Tr.create(),
|
|
7564
|
+
typeName: G.ZodObject,
|
|
7548
7565
|
...oe(e)
|
|
7549
7566
|
});
|
|
7550
7567
|
St.lazycreate = (r, e) => new St({
|
|
7551
7568
|
shape: r,
|
|
7552
7569
|
unknownKeys: "strip",
|
|
7553
|
-
catchall:
|
|
7554
|
-
typeName:
|
|
7570
|
+
catchall: Tr.create(),
|
|
7571
|
+
typeName: G.ZodObject,
|
|
7555
7572
|
...oe(e)
|
|
7556
7573
|
});
|
|
7557
|
-
let
|
|
7574
|
+
let xs = class extends le {
|
|
7558
7575
|
_parse(r) {
|
|
7559
7576
|
const { ctx: e } = this._processInputParams(r), t = this._def.options;
|
|
7560
7577
|
function n(s) {
|
|
@@ -7622,12 +7639,12 @@ let Ts = class extends le {
|
|
|
7622
7639
|
return this._def.options;
|
|
7623
7640
|
}
|
|
7624
7641
|
};
|
|
7625
|
-
|
|
7642
|
+
xs.create = (r, e) => new xs({
|
|
7626
7643
|
options: r,
|
|
7627
|
-
typeName:
|
|
7644
|
+
typeName: G.ZodUnion,
|
|
7628
7645
|
...oe(e)
|
|
7629
7646
|
});
|
|
7630
|
-
const
|
|
7647
|
+
const xa = (r) => r instanceof Ss ? xa(r.schema) : r instanceof Dt ? xa(r.innerType()) : r instanceof Ns ? [r.value] : r instanceof Gs ? r.options : r instanceof Es ? Object.keys(r.enum) : r instanceof Is ? xa(r._def.innerType) : r instanceof ks ? [void 0] : r instanceof Ts ? [null] : null;
|
|
7631
7648
|
let Dl = class Ml extends le {
|
|
7632
7649
|
_parse(e) {
|
|
7633
7650
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -7672,7 +7689,7 @@ let Dl = class Ml extends le {
|
|
|
7672
7689
|
static create(e, t, n) {
|
|
7673
7690
|
const s = /* @__PURE__ */ new Map();
|
|
7674
7691
|
for (const a of t) {
|
|
7675
|
-
const i =
|
|
7692
|
+
const i = xa(a.shape[e]);
|
|
7676
7693
|
if (!i)
|
|
7677
7694
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
7678
7695
|
for (const o of i) {
|
|
@@ -7682,7 +7699,7 @@ let Dl = class Ml extends le {
|
|
|
7682
7699
|
}
|
|
7683
7700
|
}
|
|
7684
7701
|
return new Ml({
|
|
7685
|
-
typeName:
|
|
7702
|
+
typeName: G.ZodDiscriminatedUnion,
|
|
7686
7703
|
discriminator: e,
|
|
7687
7704
|
options: t,
|
|
7688
7705
|
optionsMap: s,
|
|
@@ -7690,14 +7707,14 @@ let Dl = class Ml extends le {
|
|
|
7690
7707
|
});
|
|
7691
7708
|
}
|
|
7692
7709
|
};
|
|
7693
|
-
function
|
|
7710
|
+
function xo(r, e) {
|
|
7694
7711
|
const t = jr(r), n = jr(e);
|
|
7695
7712
|
if (r === e)
|
|
7696
7713
|
return { valid: !0, data: r };
|
|
7697
7714
|
if (t === L.object && n === L.object) {
|
|
7698
7715
|
const s = ke.objectKeys(e), a = ke.objectKeys(r).filter((o) => s.indexOf(o) !== -1), i = { ...r, ...e };
|
|
7699
7716
|
for (const o of a) {
|
|
7700
|
-
const c =
|
|
7717
|
+
const c = xo(r[o], e[o]);
|
|
7701
7718
|
if (!c.valid)
|
|
7702
7719
|
return { valid: !1 };
|
|
7703
7720
|
i[o] = c.data;
|
|
@@ -7708,7 +7725,7 @@ function To(r, e) {
|
|
|
7708
7725
|
return { valid: !1 };
|
|
7709
7726
|
const s = [];
|
|
7710
7727
|
for (let a = 0; a < r.length; a++) {
|
|
7711
|
-
const i = r[a], o = e[a], c =
|
|
7728
|
+
const i = r[a], o = e[a], c = xo(i, o);
|
|
7712
7729
|
if (!c.valid)
|
|
7713
7730
|
return { valid: !1 };
|
|
7714
7731
|
s.push(c.data);
|
|
@@ -7722,7 +7739,7 @@ let Os = class extends le {
|
|
|
7722
7739
|
const { status: e, ctx: t } = this._processInputParams(r), n = (s, a) => {
|
|
7723
7740
|
if (_o(s) || _o(a))
|
|
7724
7741
|
return se;
|
|
7725
|
-
const i =
|
|
7742
|
+
const i = xo(s.value, a.value);
|
|
7726
7743
|
return i.valid ? ((bo(s) || bo(a)) && e.dirty(), { status: e.value, value: i.data }) : (V(t, {
|
|
7727
7744
|
code: C.invalid_intersection_types
|
|
7728
7745
|
}), se);
|
|
@@ -7752,7 +7769,7 @@ let Os = class extends le {
|
|
|
7752
7769
|
Os.create = (r, e, t) => new Os({
|
|
7753
7770
|
left: r,
|
|
7754
7771
|
right: e,
|
|
7755
|
-
typeName:
|
|
7772
|
+
typeName: G.ZodIntersection,
|
|
7756
7773
|
...oe(t)
|
|
7757
7774
|
});
|
|
7758
7775
|
let Br = class $l extends le {
|
|
@@ -7800,7 +7817,7 @@ Br.create = (r, e) => {
|
|
|
7800
7817
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
7801
7818
|
return new Br({
|
|
7802
7819
|
items: r,
|
|
7803
|
-
typeName:
|
|
7820
|
+
typeName: G.ZodTuple,
|
|
7804
7821
|
rest: null,
|
|
7805
7822
|
...oe(e)
|
|
7806
7823
|
});
|
|
@@ -7835,12 +7852,12 @@ let Ll = class Oo extends le {
|
|
|
7835
7852
|
return t instanceof le ? new Oo({
|
|
7836
7853
|
keyType: e,
|
|
7837
7854
|
valueType: t,
|
|
7838
|
-
typeName:
|
|
7855
|
+
typeName: G.ZodRecord,
|
|
7839
7856
|
...oe(n)
|
|
7840
7857
|
}) : new Oo({
|
|
7841
7858
|
keyType: Pn.create(),
|
|
7842
7859
|
valueType: e,
|
|
7843
|
-
typeName:
|
|
7860
|
+
typeName: G.ZodRecord,
|
|
7844
7861
|
...oe(t)
|
|
7845
7862
|
});
|
|
7846
7863
|
}
|
|
@@ -7889,7 +7906,7 @@ let Ll = class Oo extends le {
|
|
|
7889
7906
|
si.create = (r, e, t) => new si({
|
|
7890
7907
|
valueType: e,
|
|
7891
7908
|
keyType: r,
|
|
7892
|
-
typeName:
|
|
7909
|
+
typeName: G.ZodMap,
|
|
7893
7910
|
...oe(t)
|
|
7894
7911
|
});
|
|
7895
7912
|
let ai = class So extends le {
|
|
@@ -7953,7 +7970,7 @@ ai.create = (r, e) => new ai({
|
|
|
7953
7970
|
valueType: r,
|
|
7954
7971
|
minSize: null,
|
|
7955
7972
|
maxSize: null,
|
|
7956
|
-
typeName:
|
|
7973
|
+
typeName: G.ZodSet,
|
|
7957
7974
|
...oe(e)
|
|
7958
7975
|
});
|
|
7959
7976
|
let Bl = class Oa extends le {
|
|
@@ -8052,7 +8069,7 @@ let Bl = class Oa extends le {
|
|
|
8052
8069
|
return new Oa({
|
|
8053
8070
|
args: e || Br.create([]).rest(rn.create()),
|
|
8054
8071
|
returns: t || rn.create(),
|
|
8055
|
-
typeName:
|
|
8072
|
+
typeName: G.ZodFunction,
|
|
8056
8073
|
...oe(n)
|
|
8057
8074
|
});
|
|
8058
8075
|
}
|
|
@@ -8067,7 +8084,7 @@ let Bl = class Oa extends le {
|
|
|
8067
8084
|
};
|
|
8068
8085
|
Ss.create = (r, e) => new Ss({
|
|
8069
8086
|
getter: r,
|
|
8070
|
-
typeName:
|
|
8087
|
+
typeName: G.ZodLazy,
|
|
8071
8088
|
...oe(e)
|
|
8072
8089
|
});
|
|
8073
8090
|
let Ns = class extends le {
|
|
@@ -8088,17 +8105,17 @@ let Ns = class extends le {
|
|
|
8088
8105
|
};
|
|
8089
8106
|
Ns.create = (r, e) => new Ns({
|
|
8090
8107
|
value: r,
|
|
8091
|
-
typeName:
|
|
8108
|
+
typeName: G.ZodLiteral,
|
|
8092
8109
|
...oe(e)
|
|
8093
8110
|
});
|
|
8094
8111
|
function zl(r, e) {
|
|
8095
|
-
return new
|
|
8112
|
+
return new Gs({
|
|
8096
8113
|
values: r,
|
|
8097
|
-
typeName:
|
|
8114
|
+
typeName: G.ZodEnum,
|
|
8098
8115
|
...oe(e)
|
|
8099
8116
|
});
|
|
8100
8117
|
}
|
|
8101
|
-
let
|
|
8118
|
+
let Gs = class No extends le {
|
|
8102
8119
|
_parse(e) {
|
|
8103
8120
|
if (typeof e.data != "string") {
|
|
8104
8121
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
@@ -8146,7 +8163,7 @@ let Hs = class No extends le {
|
|
|
8146
8163
|
return No.create(this.options.filter((t) => !e.includes(t)));
|
|
8147
8164
|
}
|
|
8148
8165
|
};
|
|
8149
|
-
|
|
8166
|
+
Gs.create = zl;
|
|
8150
8167
|
let Es = class extends le {
|
|
8151
8168
|
_parse(r) {
|
|
8152
8169
|
const e = ke.getValidEnumValues(this._def.values), t = this._getOrReturnCtx(r);
|
|
@@ -8174,7 +8191,7 @@ let Es = class extends le {
|
|
|
8174
8191
|
};
|
|
8175
8192
|
Es.create = (r, e) => new Es({
|
|
8176
8193
|
values: r,
|
|
8177
|
-
typeName:
|
|
8194
|
+
typeName: G.ZodNativeEnum,
|
|
8178
8195
|
...oe(e)
|
|
8179
8196
|
});
|
|
8180
8197
|
let Dn = class extends le {
|
|
@@ -8198,7 +8215,7 @@ let Dn = class extends le {
|
|
|
8198
8215
|
};
|
|
8199
8216
|
Dn.create = (r, e) => new Dn({
|
|
8200
8217
|
type: r,
|
|
8201
|
-
typeName:
|
|
8218
|
+
typeName: G.ZodPromise,
|
|
8202
8219
|
...oe(e)
|
|
8203
8220
|
});
|
|
8204
8221
|
let Dt = class extends le {
|
|
@@ -8206,7 +8223,7 @@ let Dt = class extends le {
|
|
|
8206
8223
|
return this._def.schema;
|
|
8207
8224
|
}
|
|
8208
8225
|
sourceType() {
|
|
8209
|
-
return this._def.schema._def.typeName ===
|
|
8226
|
+
return this._def.schema._def.typeName === G.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
8210
8227
|
}
|
|
8211
8228
|
_parse(r) {
|
|
8212
8229
|
const { status: e, ctx: t } = this._processInputParams(r), n = this._def.effect || null, s = {
|
|
@@ -8271,14 +8288,14 @@ let Dt = class extends le {
|
|
|
8271
8288
|
};
|
|
8272
8289
|
Dt.create = (r, e, t) => new Dt({
|
|
8273
8290
|
schema: r,
|
|
8274
|
-
typeName:
|
|
8291
|
+
typeName: G.ZodEffects,
|
|
8275
8292
|
effect: e,
|
|
8276
8293
|
...oe(t)
|
|
8277
8294
|
});
|
|
8278
8295
|
Dt.createWithPreprocess = (r, e, t) => new Dt({
|
|
8279
8296
|
schema: e,
|
|
8280
8297
|
effect: { type: "preprocess", transform: r },
|
|
8281
|
-
typeName:
|
|
8298
|
+
typeName: G.ZodEffects,
|
|
8282
8299
|
...oe(t)
|
|
8283
8300
|
});
|
|
8284
8301
|
let wr = class extends le {
|
|
@@ -8291,7 +8308,7 @@ let wr = class extends le {
|
|
|
8291
8308
|
};
|
|
8292
8309
|
wr.create = (r, e) => new wr({
|
|
8293
8310
|
innerType: r,
|
|
8294
|
-
typeName:
|
|
8311
|
+
typeName: G.ZodOptional,
|
|
8295
8312
|
...oe(e)
|
|
8296
8313
|
});
|
|
8297
8314
|
let ln = class extends le {
|
|
@@ -8304,7 +8321,7 @@ let ln = class extends le {
|
|
|
8304
8321
|
};
|
|
8305
8322
|
ln.create = (r, e) => new ln({
|
|
8306
8323
|
innerType: r,
|
|
8307
|
-
typeName:
|
|
8324
|
+
typeName: G.ZodNullable,
|
|
8308
8325
|
...oe(e)
|
|
8309
8326
|
});
|
|
8310
8327
|
let Is = class extends le {
|
|
@@ -8323,7 +8340,7 @@ let Is = class extends le {
|
|
|
8323
8340
|
};
|
|
8324
8341
|
Is.create = (r, e) => new Is({
|
|
8325
8342
|
innerType: r,
|
|
8326
|
-
typeName:
|
|
8343
|
+
typeName: G.ZodDefault,
|
|
8327
8344
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
8328
8345
|
...oe(e)
|
|
8329
8346
|
});
|
|
@@ -8366,7 +8383,7 @@ let ii = class extends le {
|
|
|
8366
8383
|
};
|
|
8367
8384
|
ii.create = (r, e) => new ii({
|
|
8368
8385
|
innerType: r,
|
|
8369
|
-
typeName:
|
|
8386
|
+
typeName: G.ZodCatch,
|
|
8370
8387
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
8371
8388
|
...oe(e)
|
|
8372
8389
|
});
|
|
@@ -8384,7 +8401,7 @@ let oi = class extends le {
|
|
|
8384
8401
|
}
|
|
8385
8402
|
};
|
|
8386
8403
|
oi.create = (r) => new oi({
|
|
8387
|
-
typeName:
|
|
8404
|
+
typeName: G.ZodNaN,
|
|
8388
8405
|
...oe(r)
|
|
8389
8406
|
});
|
|
8390
8407
|
const Em = Symbol("zod_brand");
|
|
@@ -8436,7 +8453,7 @@ let Vl = class extends le {
|
|
|
8436
8453
|
return new Kl({
|
|
8437
8454
|
in: e,
|
|
8438
8455
|
out: t,
|
|
8439
|
-
typeName:
|
|
8456
|
+
typeName: G.ZodPipeline
|
|
8440
8457
|
});
|
|
8441
8458
|
}
|
|
8442
8459
|
}, ci = class extends le {
|
|
@@ -8447,7 +8464,7 @@ let Vl = class extends le {
|
|
|
8447
8464
|
};
|
|
8448
8465
|
ci.create = (r, e) => new ci({
|
|
8449
8466
|
innerType: r,
|
|
8450
|
-
typeName:
|
|
8467
|
+
typeName: G.ZodReadonly,
|
|
8451
8468
|
...oe(e)
|
|
8452
8469
|
});
|
|
8453
8470
|
const Fl = (r, e = {}, t) => r ? Un.create().superRefine((n, s) => {
|
|
@@ -8459,13 +8476,13 @@ const Fl = (r, e = {}, t) => r ? Un.create().superRefine((n, s) => {
|
|
|
8459
8476
|
}) : Un.create(), Im = {
|
|
8460
8477
|
object: St.lazycreate
|
|
8461
8478
|
};
|
|
8462
|
-
var
|
|
8479
|
+
var G;
|
|
8463
8480
|
(function(r) {
|
|
8464
8481
|
r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
|
|
8465
|
-
})(
|
|
8482
|
+
})(G || (G = {}));
|
|
8466
8483
|
const Am = (r, e = {
|
|
8467
8484
|
message: `Input not instance of ${r.name}`
|
|
8468
|
-
}) => Fl((t) => t instanceof r, e), Wl = Pn.create, ql = vs.create, Cm = oi.create, jm = ws.create, Yl = _s.create, Zm = bs.create, Rm = ri.create, Pm = ks.create, Um =
|
|
8485
|
+
}) => Fl((t) => t instanceof r, e), Wl = Pn.create, ql = vs.create, Cm = oi.create, jm = ws.create, Yl = _s.create, Zm = bs.create, Rm = ri.create, Pm = ks.create, Um = Ts.create, Dm = Un.create, Mm = rn.create, $m = Tr.create, Lm = ni.create, Bm = un.create, zm = St.create, Vm = St.strictCreate, Km = xs.create, Fm = Dl.create, Wm = Os.create, qm = Br.create, Ym = Ll.create, Jm = si.create, Gm = ai.create, Hm = Bl.create, Xm = Ss.create, Qm = Ns.create, ey = Gs.create, ty = Es.create, ry = Dn.create, ou = Dt.create, ny = wr.create, sy = ln.create, ay = Dt.createWithPreprocess, iy = oc.create, oy = () => Wl().optional(), cy = () => ql().optional(), uy = () => Yl().optional(), ly = {
|
|
8469
8486
|
string: (r) => Pn.create({ ...r, coerce: !0 }),
|
|
8470
8487
|
number: (r) => vs.create({ ...r, coerce: !0 }),
|
|
8471
8488
|
boolean: (r) => _s.create({
|
|
@@ -8507,14 +8524,14 @@ var N = /* @__PURE__ */ Object.freeze({
|
|
|
8507
8524
|
ZodDate: bs,
|
|
8508
8525
|
ZodSymbol: ri,
|
|
8509
8526
|
ZodUndefined: ks,
|
|
8510
|
-
ZodNull:
|
|
8527
|
+
ZodNull: Ts,
|
|
8511
8528
|
ZodAny: Un,
|
|
8512
8529
|
ZodUnknown: rn,
|
|
8513
|
-
ZodNever:
|
|
8530
|
+
ZodNever: Tr,
|
|
8514
8531
|
ZodVoid: ni,
|
|
8515
8532
|
ZodArray: un,
|
|
8516
8533
|
ZodObject: St,
|
|
8517
|
-
ZodUnion:
|
|
8534
|
+
ZodUnion: xs,
|
|
8518
8535
|
ZodDiscriminatedUnion: Dl,
|
|
8519
8536
|
ZodIntersection: Os,
|
|
8520
8537
|
ZodTuple: Br,
|
|
@@ -8524,7 +8541,7 @@ var N = /* @__PURE__ */ Object.freeze({
|
|
|
8524
8541
|
ZodFunction: Bl,
|
|
8525
8542
|
ZodLazy: Ss,
|
|
8526
8543
|
ZodLiteral: Ns,
|
|
8527
|
-
ZodEnum:
|
|
8544
|
+
ZodEnum: Gs,
|
|
8528
8545
|
ZodNativeEnum: Es,
|
|
8529
8546
|
ZodPromise: Dn,
|
|
8530
8547
|
ZodEffects: Dt,
|
|
@@ -8543,7 +8560,7 @@ var N = /* @__PURE__ */ Object.freeze({
|
|
|
8543
8560
|
ZodSchema: le,
|
|
8544
8561
|
late: Im,
|
|
8545
8562
|
get ZodFirstPartyTypeKind() {
|
|
8546
|
-
return
|
|
8563
|
+
return G;
|
|
8547
8564
|
},
|
|
8548
8565
|
coerce: ly,
|
|
8549
8566
|
any: Dm,
|
|
@@ -8554,7 +8571,7 @@ var N = /* @__PURE__ */ Object.freeze({
|
|
|
8554
8571
|
discriminatedUnion: Fm,
|
|
8555
8572
|
effect: ou,
|
|
8556
8573
|
enum: ey,
|
|
8557
|
-
function:
|
|
8574
|
+
function: Hm,
|
|
8558
8575
|
instanceof: Am,
|
|
8559
8576
|
intersection: Wm,
|
|
8560
8577
|
lazy: Xm,
|
|
@@ -8575,7 +8592,7 @@ var N = /* @__PURE__ */ Object.freeze({
|
|
|
8575
8592
|
preprocess: ay,
|
|
8576
8593
|
promise: ry,
|
|
8577
8594
|
record: Ym,
|
|
8578
|
-
set:
|
|
8595
|
+
set: Gm,
|
|
8579
8596
|
strictObject: Vm,
|
|
8580
8597
|
string: Wl,
|
|
8581
8598
|
symbol: Rm,
|
|
@@ -8597,18 +8614,18 @@ const cc = N.tuple([N.number(), N.number()]), Jl = N.object({ width: N.number(),
|
|
|
8597
8614
|
N.enum(fy);
|
|
8598
8615
|
const py = ["start", "center", "end"], my = ["signedWidth", "signedHeight"];
|
|
8599
8616
|
N.enum(my);
|
|
8600
|
-
const ui = N.object({ x: N.number(), y: N.number() }), yy = N.object({ clientX: N.number(), clientY: N.number() }), gy = ["x", "y"],
|
|
8601
|
-
N.enum(
|
|
8617
|
+
const ui = N.object({ x: N.number(), y: N.number() }), yy = N.object({ clientX: N.number(), clientY: N.number() }), gy = ["x", "y"], Gl = N.enum(gy), Hl = ["top", "right", "bottom", "left"];
|
|
8618
|
+
N.enum(Hl);
|
|
8602
8619
|
const vy = ["left", "right"], wy = N.enum(vy), _y = ["top", "bottom"], by = N.enum(_y), Xl = ["center"];
|
|
8603
8620
|
N.enum(Xl);
|
|
8604
|
-
const ky = [...
|
|
8621
|
+
const ky = [...Hl, ...Xl], li = N.enum(ky);
|
|
8605
8622
|
N.enum(py);
|
|
8606
|
-
const
|
|
8607
|
-
N.enum(
|
|
8608
|
-
const
|
|
8609
|
-
N.union([
|
|
8610
|
-
N.union([
|
|
8611
|
-
N.union([
|
|
8623
|
+
const Ty = ["first", "last"];
|
|
8624
|
+
N.enum(Ty);
|
|
8625
|
+
const xy = N.object({ lower: N.number(), upper: N.number() });
|
|
8626
|
+
N.union([xy, cc]);
|
|
8627
|
+
N.union([Gl, li]);
|
|
8628
|
+
N.union([Gl, li, N.instanceof(String)]);
|
|
8612
8629
|
const to = (r, e) => {
|
|
8613
8630
|
const t = { lower: 0, upper: 0 };
|
|
8614
8631
|
return typeof r == "number" ? e != null ? (t.lower = r, t.upper = e) : (t.lower = 0, t.upper = r) : Array.isArray(r) ? [t.lower, t.upper] = r : (t.lower = r.lower, t.upper = r.upper), Oy(t);
|
|
@@ -8963,14 +8980,14 @@ var Mn;
|
|
|
8963
8980
|
r.toSnake = Wy, r.toCamel = qy, r.capitalize = (e) => e[0].toUpperCase() + e.slice(1);
|
|
8964
8981
|
})(Mn || (Mn = {}));
|
|
8965
8982
|
N.object({ x: li, y: li });
|
|
8966
|
-
const Yy = N.object({ x: wy, y: by }), Jy = { x: "left", y: "top" },
|
|
8983
|
+
const Yy = N.object({ x: wy, y: by }), Jy = { x: "left", y: "top" }, Gy = (r, e) => r.x === e.x && r.y === e.y, cu = N.union([
|
|
8967
8984
|
N.number(),
|
|
8968
8985
|
ui,
|
|
8969
8986
|
cc,
|
|
8970
8987
|
Jl,
|
|
8971
8988
|
hy,
|
|
8972
8989
|
yy
|
|
8973
|
-
]),
|
|
8990
|
+
]), Hy = (r, e) => typeof r == "number" ? { x: r, y: e ?? r } : Array.isArray(r) ? { x: r[0], y: r[1] } : "signedWidth" in r ? { x: r.signedWidth, y: r.signedHeight } : "clientX" in r ? { x: r.clientX, y: r.clientY } : "width" in r ? { x: r.width, y: r.height } : { x: r.x, y: r.y }, uu = { x: 0, y: 0 }, ua = N.union([N.number(), N.string()]);
|
|
8974
8991
|
N.object({
|
|
8975
8992
|
top: ua,
|
|
8976
8993
|
left: ua,
|
|
@@ -9132,7 +9149,7 @@ const du = class pr {
|
|
|
9132
9149
|
return new pr().reBound(e);
|
|
9133
9150
|
}
|
|
9134
9151
|
translate(e, t) {
|
|
9135
|
-
const n =
|
|
9152
|
+
const n = Hy(e, t), s = this.copy();
|
|
9136
9153
|
return s.x = this.x.translate(n.x), s.y = this.y.translate(n.y), s;
|
|
9137
9154
|
}
|
|
9138
9155
|
translateX(e) {
|
|
@@ -9151,7 +9168,7 @@ const du = class pr {
|
|
|
9151
9168
|
const t = this.copy();
|
|
9152
9169
|
if (Xy(e)) {
|
|
9153
9170
|
const n = this.currRoot;
|
|
9154
|
-
return t.currRoot = e.root, n != null && !
|
|
9171
|
+
return t.currRoot = e.root, n != null && !Gy(n, e.root) && (n.x !== e.root.x && (t.x = t.x.invert()), n.y !== e.root.y && (t.y = t.y.invert())), t.x = t.x.scale(ro(e)), t.y = t.y.scale(no(e)), t;
|
|
9155
9172
|
}
|
|
9156
9173
|
return t.x = t.x.scale(e.width), t.y = t.y.scale(e.height), t;
|
|
9157
9174
|
}
|
|
@@ -9473,7 +9490,7 @@ Z(je, "z", N.union([
|
|
|
9473
9490
|
N.instanceof(je)
|
|
9474
9491
|
]));
|
|
9475
9492
|
let _t = je;
|
|
9476
|
-
const Ae = class
|
|
9493
|
+
const Ae = class Se extends Number {
|
|
9477
9494
|
constructor(e) {
|
|
9478
9495
|
e instanceof Number ? super(e.valueOf()) : super(e);
|
|
9479
9496
|
}
|
|
@@ -9481,35 +9498,38 @@ const Ae = class Ne extends Number {
|
|
|
9481
9498
|
return vd(this, e);
|
|
9482
9499
|
}
|
|
9483
9500
|
truncate(e) {
|
|
9484
|
-
return new
|
|
9501
|
+
return new Se(Math.trunc(this.valueOf() / e.valueOf()) * e.valueOf());
|
|
9502
|
+
}
|
|
9503
|
+
multiply(e) {
|
|
9504
|
+
return new Se(this.valueOf() * e);
|
|
9485
9505
|
}
|
|
9486
9506
|
toString() {
|
|
9487
|
-
const e = this.truncate(
|
|
9507
|
+
const e = this.truncate(Se.DAY), t = this.truncate(Se.HOUR), n = this.truncate(Se.MINUTE), s = this.truncate(Se.SECOND), a = this.truncate(Se.MILLISECOND), i = this.truncate(Se.MICROSECOND), o = this.truncate(Se.NANOSECOND), c = e, d = t.sub(e), w = n.sub(t), M = s.sub(n), X = a.sub(s), Q = i.sub(a), Ze = o.sub(i);
|
|
9488
9508
|
let ee = "";
|
|
9489
9509
|
return c.isZero || (ee += `${c.days}d `), d.isZero || (ee += `${d.hours}h `), w.isZero || (ee += `${w.minutes}m `), M.isZero || (ee += `${M.seconds}s `), X.isZero || (ee += `${X.milliseconds}ms `), Q.isZero || (ee += `${Q.microseconds}µs `), Ze.isZero || (ee += `${Ze.nanoseconds}ns`), ee.trim();
|
|
9490
9510
|
}
|
|
9491
9511
|
/** @returns the decimal number of days in the timespan */
|
|
9492
9512
|
get days() {
|
|
9493
|
-
return this.valueOf() /
|
|
9513
|
+
return this.valueOf() / Se.DAY.valueOf();
|
|
9494
9514
|
}
|
|
9495
9515
|
/** @returns the decimal number of hours in the timespan */
|
|
9496
9516
|
get hours() {
|
|
9497
|
-
return this.valueOf() /
|
|
9517
|
+
return this.valueOf() / Se.HOUR.valueOf();
|
|
9498
9518
|
}
|
|
9499
9519
|
/** @returns the decimal number of minutes in the timespan */
|
|
9500
9520
|
get minutes() {
|
|
9501
|
-
return this.valueOf() /
|
|
9521
|
+
return this.valueOf() / Se.MINUTE.valueOf();
|
|
9502
9522
|
}
|
|
9503
9523
|
/** @returns The number of seconds in the TimeSpan. */
|
|
9504
9524
|
get seconds() {
|
|
9505
|
-
return this.valueOf() /
|
|
9525
|
+
return this.valueOf() / Se.SECOND.valueOf();
|
|
9506
9526
|
}
|
|
9507
9527
|
/** @returns The number of milliseconds in the TimeSpan. */
|
|
9508
9528
|
get milliseconds() {
|
|
9509
|
-
return this.valueOf() /
|
|
9529
|
+
return this.valueOf() / Se.MILLISECOND.valueOf();
|
|
9510
9530
|
}
|
|
9511
9531
|
get microseconds() {
|
|
9512
|
-
return this.valueOf() /
|
|
9532
|
+
return this.valueOf() / Se.MICROSECOND.valueOf();
|
|
9513
9533
|
}
|
|
9514
9534
|
get nanoseconds() {
|
|
9515
9535
|
return this.valueOf();
|
|
@@ -9528,7 +9548,7 @@ const Ae = class Ne extends Number {
|
|
|
9528
9548
|
* @returns True if the TimeSpans are equal, false otherwise.
|
|
9529
9549
|
*/
|
|
9530
9550
|
equals(e) {
|
|
9531
|
-
return this.valueOf() === new
|
|
9551
|
+
return this.valueOf() === new Se(e).valueOf();
|
|
9532
9552
|
}
|
|
9533
9553
|
/**
|
|
9534
9554
|
* Adds a TimeSpan to the TimeSpan.
|
|
@@ -9536,7 +9556,7 @@ const Ae = class Ne extends Number {
|
|
|
9536
9556
|
* @returns A new TimeSpan representing the sum of the two TimeSpans.
|
|
9537
9557
|
*/
|
|
9538
9558
|
add(e) {
|
|
9539
|
-
return new
|
|
9559
|
+
return new Se(this.valueOf() + new Se(e).valueOf());
|
|
9540
9560
|
}
|
|
9541
9561
|
/**
|
|
9542
9562
|
* Creates a TimeSpan representing the duration between the two timestamps.
|
|
@@ -9544,7 +9564,7 @@ const Ae = class Ne extends Number {
|
|
|
9544
9564
|
* @param other
|
|
9545
9565
|
*/
|
|
9546
9566
|
sub(e) {
|
|
9547
|
-
return new
|
|
9567
|
+
return new Se(this.valueOf() - new Se(e).valueOf());
|
|
9548
9568
|
}
|
|
9549
9569
|
/**
|
|
9550
9570
|
* Creates a TimeSpan representing the given number of nanoseconds.
|
|
@@ -9553,7 +9573,7 @@ const Ae = class Ne extends Number {
|
|
|
9553
9573
|
* @returns A TimeSpan representing the given number of nanoseconds.
|
|
9554
9574
|
*/
|
|
9555
9575
|
static nanoseconds(e = 1) {
|
|
9556
|
-
return new
|
|
9576
|
+
return new Se(e);
|
|
9557
9577
|
}
|
|
9558
9578
|
/**
|
|
9559
9579
|
* Creates a TimeSpan representing the given number of microseconds.
|
|
@@ -9562,7 +9582,7 @@ const Ae = class Ne extends Number {
|
|
|
9562
9582
|
* @returns A TimeSpan representing the given number of microseconds.
|
|
9563
9583
|
*/
|
|
9564
9584
|
static microseconds(e = 1) {
|
|
9565
|
-
return
|
|
9585
|
+
return Se.nanoseconds(e * 1e3);
|
|
9566
9586
|
}
|
|
9567
9587
|
/**
|
|
9568
9588
|
* Creates a TimeSpan representing the given number of milliseconds.
|
|
@@ -9571,7 +9591,7 @@ const Ae = class Ne extends Number {
|
|
|
9571
9591
|
* @returns A TimeSpan representing the given number of milliseconds.
|
|
9572
9592
|
*/
|
|
9573
9593
|
static milliseconds(e = 1) {
|
|
9574
|
-
return
|
|
9594
|
+
return Se.microseconds(e * 1e3);
|
|
9575
9595
|
}
|
|
9576
9596
|
/**
|
|
9577
9597
|
* Creates a TimeSpan representing the given number of seconds.
|
|
@@ -9580,7 +9600,7 @@ const Ae = class Ne extends Number {
|
|
|
9580
9600
|
* @returns A TimeSpan representing the given number of seconds.
|
|
9581
9601
|
*/
|
|
9582
9602
|
static seconds(e = 1) {
|
|
9583
|
-
return
|
|
9603
|
+
return Se.milliseconds(e * 1e3);
|
|
9584
9604
|
}
|
|
9585
9605
|
/**
|
|
9586
9606
|
* Creates a TimeSpan representing the given number of minutes.
|
|
@@ -9589,7 +9609,7 @@ const Ae = class Ne extends Number {
|
|
|
9589
9609
|
* @returns A TimeSpan representing the given number of minutes.
|
|
9590
9610
|
*/
|
|
9591
9611
|
static minutes(e) {
|
|
9592
|
-
return
|
|
9612
|
+
return Se.seconds(e.valueOf() * 60);
|
|
9593
9613
|
}
|
|
9594
9614
|
/**
|
|
9595
9615
|
* Creates a TimeSpan representing the given number of hours.
|
|
@@ -9598,7 +9618,7 @@ const Ae = class Ne extends Number {
|
|
|
9598
9618
|
* @returns A TimeSpan representing the given number of hours.
|
|
9599
9619
|
*/
|
|
9600
9620
|
static hours(e) {
|
|
9601
|
-
return
|
|
9621
|
+
return Se.minutes(e * 60);
|
|
9602
9622
|
}
|
|
9603
9623
|
/**
|
|
9604
9624
|
* Creates a TimeSpan representing the given number of days.
|
|
@@ -9607,7 +9627,7 @@ const Ae = class Ne extends Number {
|
|
|
9607
9627
|
* @returns A TimeSpan representing the given number of days.
|
|
9608
9628
|
*/
|
|
9609
9629
|
static days(e) {
|
|
9610
|
-
return
|
|
9630
|
+
return Se.hours(e * 24);
|
|
9611
9631
|
}
|
|
9612
9632
|
};
|
|
9613
9633
|
Z(Ae, "NANOSECOND", Ae.nanoseconds(1));
|
|
@@ -10119,14 +10139,14 @@ try {
|
|
|
10119
10139
|
Io = new TextDecoder();
|
|
10120
10140
|
} catch {
|
|
10121
10141
|
}
|
|
10122
|
-
var U,
|
|
10142
|
+
var U, xt, p = 0, Pe = {}, we, Pr, kt = 0, zt = 0, Je, _r, mt = [], ge, hu = {
|
|
10123
10143
|
useRecords: !1,
|
|
10124
10144
|
mapsAsObjects: !0
|
|
10125
10145
|
};
|
|
10126
|
-
class
|
|
10146
|
+
class Td {
|
|
10127
10147
|
}
|
|
10128
|
-
const
|
|
10129
|
-
|
|
10148
|
+
const xd = new Td();
|
|
10149
|
+
xd.name = "MessagePack 0xC1";
|
|
10130
10150
|
var Dr = !1, Od = 2, fu;
|
|
10131
10151
|
try {
|
|
10132
10152
|
new Function("");
|
|
@@ -10140,7 +10160,7 @@ class As {
|
|
|
10140
10160
|
unpack(e, t) {
|
|
10141
10161
|
if (U)
|
|
10142
10162
|
return Ad(() => (Co(), this ? this.unpack(e, t) : As.prototype.unpack.call(hu, e, t)));
|
|
10143
|
-
!e.buffer && e.constructor === ArrayBuffer && (e = typeof Buffer < "u" ? Buffer.from(e) : new Uint8Array(e)), typeof t == "object" ? (
|
|
10163
|
+
!e.buffer && e.constructor === ArrayBuffer && (e = typeof Buffer < "u" ? Buffer.from(e) : new Uint8Array(e)), typeof t == "object" ? (xt = t.end || e.length, p = t.start || 0) : (p = 0, xt = t > -1 ? t : e.length), zt = 0, Pr = null, Je = null, U = e;
|
|
10144
10164
|
try {
|
|
10145
10165
|
ge = e.dataView || (e.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength));
|
|
10146
10166
|
} catch (n) {
|
|
@@ -10201,10 +10221,10 @@ function da(r) {
|
|
|
10201
10221
|
t < we.length && (we.length = t);
|
|
10202
10222
|
}
|
|
10203
10223
|
let e;
|
|
10204
|
-
if (Pe.randomAccessStructure && U[p] < 64 && U[p] >= 32 && fu ? (e = fu(U, p,
|
|
10224
|
+
if (Pe.randomAccessStructure && U[p] < 64 && U[p] >= 32 && fu ? (e = fu(U, p, xt, Pe), U = null, !(r && r.lazy) && e && (e = e.toJSON()), p = xt) : e = Ve(), Je && (p = Je.postBundlePosition, Je = null), Dr && (we.restoreStructures = null), p == xt)
|
|
10205
10225
|
we && we.restoreStructures && pu(), we = null, U = null, _r && (_r = null);
|
|
10206
10226
|
else {
|
|
10207
|
-
if (p >
|
|
10227
|
+
if (p > xt)
|
|
10208
10228
|
throw new Error("Unexpected end of MessagePack data");
|
|
10209
10229
|
if (!Dr) {
|
|
10210
10230
|
let t;
|
|
@@ -10218,7 +10238,7 @@ function da(r) {
|
|
|
10218
10238
|
}
|
|
10219
10239
|
return e;
|
|
10220
10240
|
} catch (e) {
|
|
10221
|
-
throw we && we.restoreStructures && pu(), Co(), (e instanceof RangeError || e.message.startsWith("Unexpected end of buffer") || p >
|
|
10241
|
+
throw we && we.restoreStructures && pu(), Co(), (e instanceof RangeError || e.message.startsWith("Unexpected end of buffer") || p > xt) && (e.incomplete = !0), e;
|
|
10222
10242
|
}
|
|
10223
10243
|
}
|
|
10224
10244
|
function pu() {
|
|
@@ -10261,7 +10281,7 @@ function Ve() {
|
|
|
10261
10281
|
let e = r - 160;
|
|
10262
10282
|
if (zt >= p)
|
|
10263
10283
|
return Pr.slice(p - kt, (p += e) - kt);
|
|
10264
|
-
if (zt == 0 &&
|
|
10284
|
+
if (zt == 0 && xt < 140) {
|
|
10265
10285
|
let t = e < 16 ? kc(e) : Nd(e);
|
|
10266
10286
|
if (t != null)
|
|
10267
10287
|
return t;
|
|
@@ -10273,7 +10293,7 @@ function Ve() {
|
|
|
10273
10293
|
case 192:
|
|
10274
10294
|
return null;
|
|
10275
10295
|
case 193:
|
|
10276
|
-
return Je ? (e = Ve(), e > 0 ? Je[1].slice(Je.position1, Je.position1 += e) : Je[0].slice(Je.position0, Je.position0 -= e)) :
|
|
10296
|
+
return Je ? (e = Ve(), e > 0 ? Je[1].slice(Je.position1, Je.position1 += e) : Je[0].slice(Je.position0, Je.position0 -= e)) : xd;
|
|
10277
10297
|
case 194:
|
|
10278
10298
|
return !1;
|
|
10279
10299
|
case 195:
|
|
@@ -10287,14 +10307,14 @@ function Ve() {
|
|
|
10287
10307
|
case 198:
|
|
10288
10308
|
return e = ge.getUint32(p), p += 4, ao(e);
|
|
10289
10309
|
case 199:
|
|
10290
|
-
return
|
|
10310
|
+
return Hr(U[p++]);
|
|
10291
10311
|
case 200:
|
|
10292
|
-
return e = ge.getUint16(p), p += 2,
|
|
10312
|
+
return e = ge.getUint16(p), p += 2, Hr(e);
|
|
10293
10313
|
case 201:
|
|
10294
|
-
return e = ge.getUint32(p), p += 4,
|
|
10314
|
+
return e = ge.getUint32(p), p += 4, Hr(e);
|
|
10295
10315
|
case 202:
|
|
10296
10316
|
if (e = ge.getFloat32(p), Pe.useFloat32 > 2) {
|
|
10297
|
-
let t =
|
|
10317
|
+
let t = Tc[(U[p] & 127) << 1 | U[p + 1] >> 7];
|
|
10298
10318
|
return p += 4, (t * e + (e > 0 ? 0.5 : -0.5) >> 0) / t;
|
|
10299
10319
|
}
|
|
10300
10320
|
return p += 4, e;
|
|
@@ -10326,13 +10346,13 @@ function Ve() {
|
|
|
10326
10346
|
throw new Error("Unknown extension " + e);
|
|
10327
10347
|
}
|
|
10328
10348
|
case 213:
|
|
10329
|
-
return e = U[p], e == 114 ? (p++, _u(U[p++] & 63, U[p++])) :
|
|
10349
|
+
return e = U[p], e == 114 ? (p++, _u(U[p++] & 63, U[p++])) : Hr(2);
|
|
10330
10350
|
case 214:
|
|
10331
|
-
return
|
|
10351
|
+
return Hr(4);
|
|
10332
10352
|
case 215:
|
|
10333
|
-
return
|
|
10353
|
+
return Hr(8);
|
|
10334
10354
|
case 216:
|
|
10335
|
-
return
|
|
10355
|
+
return Hr(16);
|
|
10336
10356
|
case 217:
|
|
10337
10357
|
return e = U[p++], zt >= p ? Pr.slice(p - kt, (p += e) - kt) : vg(e);
|
|
10338
10358
|
case 218:
|
|
@@ -10387,8 +10407,8 @@ function Sd() {
|
|
|
10387
10407
|
let r = Ad(() => (U = null, Pe.getStructures()));
|
|
10388
10408
|
return we = Pe._mergeStructures(r, we);
|
|
10389
10409
|
}
|
|
10390
|
-
var Ao =
|
|
10391
|
-
function
|
|
10410
|
+
var Ao = Hs, vg = Hs, wg = Hs, _g = Hs;
|
|
10411
|
+
function Hs(r) {
|
|
10392
10412
|
let e;
|
|
10393
10413
|
if (r < 16 && (e = kc(r)))
|
|
10394
10414
|
return e;
|
|
@@ -10593,7 +10613,7 @@ function vu() {
|
|
|
10593
10613
|
default:
|
|
10594
10614
|
throw new Error("Expected string");
|
|
10595
10615
|
}
|
|
10596
|
-
return
|
|
10616
|
+
return Hs(e);
|
|
10597
10617
|
}
|
|
10598
10618
|
function ao(r) {
|
|
10599
10619
|
return Pe.copyBuffers ? (
|
|
@@ -10601,7 +10621,7 @@ function ao(r) {
|
|
|
10601
10621
|
Uint8Array.prototype.slice.call(U, p, p += r)
|
|
10602
10622
|
) : U.subarray(p, p += r);
|
|
10603
10623
|
}
|
|
10604
|
-
function
|
|
10624
|
+
function Hr(r) {
|
|
10605
10625
|
let e = U[p++];
|
|
10606
10626
|
if (mt[e]) {
|
|
10607
10627
|
let t;
|
|
@@ -10622,7 +10642,7 @@ function Ed() {
|
|
|
10622
10642
|
if (r >= 160 && r < 192) {
|
|
10623
10643
|
if (r = r - 160, zt >= p)
|
|
10624
10644
|
return Pr.slice(p - kt, (p += r) - kt);
|
|
10625
|
-
if (!(zt == 0 &&
|
|
10645
|
+
if (!(zt == 0 && xt < 180))
|
|
10626
10646
|
return Ao(r);
|
|
10627
10647
|
} else
|
|
10628
10648
|
return p--, Ve().toString();
|
|
@@ -10692,10 +10712,10 @@ mt[120] = () => {
|
|
|
10692
10712
|
let r = Ve();
|
|
10693
10713
|
return new RegExp(r[0], r[1]);
|
|
10694
10714
|
};
|
|
10695
|
-
const
|
|
10715
|
+
const Tg = [];
|
|
10696
10716
|
mt[98] = (r) => {
|
|
10697
10717
|
let e = (r[0] << 24) + (r[1] << 16) + (r[2] << 8) + r[3], t = p;
|
|
10698
|
-
return p += e - r.length, Je =
|
|
10718
|
+
return p += e - r.length, Je = Tg, Je = [vu(), vu()], Je.position0 = 0, Je.position1 = 0, Je.postBundlePosition = p, p = t, Ve();
|
|
10699
10719
|
};
|
|
10700
10720
|
mt[255] = (r) => r.length == 4 ? new Date((r[0] * 16777216 + (r[1] << 16) + (r[2] << 8) + r[3]) * 1e3) : r.length == 8 ? new Date(
|
|
10701
10721
|
((r[0] << 22) + (r[1] << 14) + (r[2] << 6) + (r[3] >> 2)) / 1e6 + ((r[3] & 3) * 4294967296 + r[4] * 16777216 + (r[5] << 16) + (r[6] << 8) + r[7]) * 1e3
|
|
@@ -10703,18 +10723,18 @@ mt[255] = (r) => r.length == 4 ? new Date((r[0] * 16777216 + (r[1] << 16) + (r[2
|
|
|
10703
10723
|
((r[0] << 24) + (r[1] << 16) + (r[2] << 8) + r[3]) / 1e6 + ((r[4] & 128 ? -281474976710656 : 0) + r[6] * 1099511627776 + r[7] * 4294967296 + r[8] * 16777216 + (r[9] << 16) + (r[10] << 8) + r[11]) * 1e3
|
|
10704
10724
|
) : /* @__PURE__ */ new Date("invalid");
|
|
10705
10725
|
function Ad(r) {
|
|
10706
|
-
let e =
|
|
10707
|
-
return
|
|
10726
|
+
let e = xt, t = p, n = kt, s = zt, a = Pr, i = _r, o = Je, c = new Uint8Array(U.slice(0, xt)), d = we, w = we.slice(0, we.length), M = Pe, X = Dr, Q = r();
|
|
10727
|
+
return xt = e, p = t, kt = n, zt = s, Pr = a, _r = i, Je = o, U = c, Dr = X, we = d, we.splice(0, we.length, ...w), Pe = M, ge = new DataView(U.buffer, U.byteOffset, U.byteLength), Q;
|
|
10708
10728
|
}
|
|
10709
10729
|
function Co() {
|
|
10710
10730
|
U = null, _r = null, we = null;
|
|
10711
10731
|
}
|
|
10712
|
-
function
|
|
10732
|
+
function xg(r) {
|
|
10713
10733
|
r.unpack ? mt[r.type] = r.unpack : mt[r.type] = r;
|
|
10714
10734
|
}
|
|
10715
|
-
const
|
|
10735
|
+
const Tc = new Array(147);
|
|
10716
10736
|
for (let r = 0; r < 256; r++)
|
|
10717
|
-
|
|
10737
|
+
Tc[r] = +("1e" + Math.floor(45.15 - r * 0.30103));
|
|
10718
10738
|
var Di = new As({ useRecords: !1 });
|
|
10719
10739
|
const Og = Di.unpack;
|
|
10720
10740
|
Di.unpackMultiple;
|
|
@@ -10726,7 +10746,7 @@ try {
|
|
|
10726
10746
|
Ra = new TextEncoder();
|
|
10727
10747
|
} catch {
|
|
10728
10748
|
}
|
|
10729
|
-
let di,
|
|
10749
|
+
let di, xc;
|
|
10730
10750
|
const Mi = typeof Buffer < "u", ha = Mi ? function(r) {
|
|
10731
10751
|
return Buffer.allocUnsafeSlow(r);
|
|
10732
10752
|
} : Uint8Array, Cd = Mi ? Buffer : Uint8Array, bu = Mi ? 4294967296 : 2144337920;
|
|
@@ -10735,10 +10755,10 @@ const Eg = 21760, Ig = /[\u0080-\uFFFF]/, bn = Symbol("record-id");
|
|
|
10735
10755
|
class Ag extends As {
|
|
10736
10756
|
constructor(e) {
|
|
10737
10757
|
super(e), this.offset = 0;
|
|
10738
|
-
let t, n, s, a, i = Cd.prototype.utf8Write ? function(l,
|
|
10739
|
-
return b.utf8Write(l,
|
|
10740
|
-
} : Ra && Ra.encodeInto ? function(l,
|
|
10741
|
-
return Ra.encodeInto(l, b.subarray(
|
|
10758
|
+
let t, n, s, a, i = Cd.prototype.utf8Write ? function(l, T) {
|
|
10759
|
+
return b.utf8Write(l, T, 4294967295);
|
|
10760
|
+
} : Ra && Ra.encodeInto ? function(l, T) {
|
|
10761
|
+
return Ra.encodeInto(l, b.subarray(T)).written;
|
|
10742
10762
|
} : !1, o = this;
|
|
10743
10763
|
e || (e = {});
|
|
10744
10764
|
let c = e && e.sequential, d = e.structures || e.saveStructures, w = e.maxSharedStructures;
|
|
@@ -10751,8 +10771,8 @@ class Ag extends As {
|
|
|
10751
10771
|
if (Ze > 8256)
|
|
10752
10772
|
throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");
|
|
10753
10773
|
let ee = [], Xt = 0, Qt = 0;
|
|
10754
|
-
this.pack = this.encode = function(l,
|
|
10755
|
-
if (b || (b = new ha(8192), Ee = b.dataView || (b.dataView = new DataView(b.buffer, 0, 8192)), v = 0), ct = b.length - 10, ct - v < 2048 ? (b = new ha(b.length), Ee = b.dataView || (b.dataView = new DataView(b.buffer, 0, b.length)), ct = b.length - 10, v = 0) : v = v + 7 & 2147483640, t = v,
|
|
10774
|
+
this.pack = this.encode = function(l, T) {
|
|
10775
|
+
if (b || (b = new ha(8192), Ee = b.dataView || (b.dataView = new DataView(b.buffer, 0, 8192)), v = 0), ct = b.length - 10, ct - v < 2048 ? (b = new ha(b.length), Ee = b.dataView || (b.dataView = new DataView(b.buffer, 0, b.length)), ct = b.length - 10, v = 0) : v = v + 7 & 2147483640, t = v, T & Mg && (v += T & 255), a = o.structuredClone ? /* @__PURE__ */ new Map() : null, o.bundleStrings && typeof l != "string" ? (De = [], De.size = 1 / 0) : De = null, s = o.structures, s) {
|
|
10756
10776
|
s.uninitialized && (s = o._mergeStructures(o.getStructures()));
|
|
10757
10777
|
let m = s.sharedLength || 0;
|
|
10758
10778
|
if (m > w)
|
|
@@ -10778,7 +10798,7 @@ class Ag extends As {
|
|
|
10778
10798
|
try {
|
|
10779
10799
|
o.randomAccessStructure && l && l.constructor && l.constructor === Object ? Ji(l) : re(l);
|
|
10780
10800
|
let m = De;
|
|
10781
|
-
if (De &&
|
|
10801
|
+
if (De && xu(t, re, 0), a && a.idsToInsert) {
|
|
10782
10802
|
let y = a.idsToInsert.sort((I, ne) => I.offset > ne.offset ? 1 : -1), k = y.length, R = -1;
|
|
10783
10803
|
for (; m && k > 0; ) {
|
|
10784
10804
|
let I = y[--k].offset + t;
|
|
@@ -10790,17 +10810,17 @@ class Ag extends As {
|
|
|
10790
10810
|
R >= 0 && m && Ee.setUint32(
|
|
10791
10811
|
m.position + t,
|
|
10792
10812
|
Ee.getUint32(m.position + t) + R
|
|
10793
|
-
), v += y.length * 6, v > ct &&
|
|
10813
|
+
), v += y.length * 6, v > ct && Ge(v), o.offset = v;
|
|
10794
10814
|
let D = jg(b.subarray(t, v), y);
|
|
10795
10815
|
return a = null, D;
|
|
10796
10816
|
}
|
|
10797
|
-
return o.offset = v,
|
|
10817
|
+
return o.offset = v, T & Ug ? (b.start = t, b.end = v, b) : b.subarray(t, v);
|
|
10798
10818
|
} finally {
|
|
10799
10819
|
if (s && (Vn(), n && o.saveStructures)) {
|
|
10800
10820
|
let m = s.sharedLength || 0, y = b.subarray(t, v), k = Rg(s, o);
|
|
10801
|
-
return o.saveStructures(k, k.isCompatible) === !1 ? o.pack(l,
|
|
10821
|
+
return o.saveStructures(k, k.isCompatible) === !1 ? o.pack(l, T) : (o.lastNamedStructuresLength = m, y);
|
|
10802
10822
|
}
|
|
10803
|
-
|
|
10823
|
+
T & Dg && (v = t);
|
|
10804
10824
|
}
|
|
10805
10825
|
};
|
|
10806
10826
|
const Vn = () => {
|
|
@@ -10809,26 +10829,26 @@ class Ag extends As {
|
|
|
10809
10829
|
if (s.length > l && !c && (s.length = l), Xt > 1e4)
|
|
10810
10830
|
s.transitions = null, Qt = 0, Xt = 0, ee.length > 0 && (ee = []);
|
|
10811
10831
|
else if (ee.length > 0 && !c) {
|
|
10812
|
-
for (let
|
|
10813
|
-
ee[
|
|
10832
|
+
for (let T = 0, m = ee.length; T < m; T++)
|
|
10833
|
+
ee[T][bn] = 0;
|
|
10814
10834
|
ee = [];
|
|
10815
10835
|
}
|
|
10816
10836
|
}, qr = (l) => {
|
|
10817
|
-
var
|
|
10818
|
-
|
|
10819
|
-
for (let m = 0; m <
|
|
10837
|
+
var T = l.length;
|
|
10838
|
+
T < 16 ? b[v++] = 144 | T : T < 65536 ? (b[v++] = 220, b[v++] = T >> 8, b[v++] = T & 255) : (b[v++] = 221, Ee.setUint32(v, T), v += 4);
|
|
10839
|
+
for (let m = 0; m < T; m++)
|
|
10820
10840
|
re(l[m]);
|
|
10821
10841
|
}, re = (l) => {
|
|
10822
|
-
v > ct && (b =
|
|
10823
|
-
var
|
|
10824
|
-
if (
|
|
10842
|
+
v > ct && (b = Ge(v));
|
|
10843
|
+
var T = typeof l, m;
|
|
10844
|
+
if (T === "string") {
|
|
10825
10845
|
let y = l.length;
|
|
10826
10846
|
if (De && y >= 4 && y < 4096) {
|
|
10827
10847
|
if ((De.size += y) > Eg) {
|
|
10828
10848
|
let I, ne = (De[0] ? De[0].length * 3 + De[1].length : 0) + 10;
|
|
10829
|
-
v + ne > ct && (b =
|
|
10849
|
+
v + ne > ct && (b = Ge(v + ne));
|
|
10830
10850
|
let F;
|
|
10831
|
-
De.position ? (F = De, b[v] = 200, v += 3, b[v++] = 98, I = v - t, v += 4,
|
|
10851
|
+
De.position ? (F = De, b[v] = 200, v += 3, b[v++] = 98, I = v - t, v += 4, xu(t, re, 0), Ee.setUint16(I + t - 3, v - t - I)) : (b[v++] = 214, b[v++] = 98, I = v - t, v += 4), De = ["", ""], De.previous = F, De.size = 0, De.position = I;
|
|
10832
10852
|
}
|
|
10833
10853
|
let D = Ig.test(l);
|
|
10834
10854
|
De[D ? 0 : 1] += l, b[v++] = 193, re(D ? -y : y);
|
|
@@ -10837,7 +10857,7 @@ class Ag extends As {
|
|
|
10837
10857
|
let k;
|
|
10838
10858
|
y < 32 ? k = 1 : y < 256 ? k = 2 : y < 65536 ? k = 3 : k = 5;
|
|
10839
10859
|
let R = y * 3;
|
|
10840
|
-
if (v + R > ct && (b =
|
|
10860
|
+
if (v + R > ct && (b = Ge(v + R)), y < 64 || !i) {
|
|
10841
10861
|
let D, I, ne, F = v + k;
|
|
10842
10862
|
for (D = 0; D < y; D++)
|
|
10843
10863
|
I = l.charCodeAt(D), I < 128 ? b[F++] = I : I < 2048 ? (b[F++] = I >> 6 | 192, b[F++] = I & 63 | 128) : (I & 64512) === 55296 && ((ne = l.charCodeAt(D + 1)) & 64512) === 56320 ? (I = 65536 + ((I & 1023) << 10) + (ne & 1023), D++, b[F++] = I >> 18 | 240, b[F++] = I >> 12 & 63 | 128, b[F++] = I >> 6 & 63 | 128, b[F++] = I & 63 | 128) : (b[F++] = I >> 12 | 224, b[F++] = I >> 6 & 63 | 128, b[F++] = I & 63 | 128);
|
|
@@ -10845,7 +10865,7 @@ class Ag extends As {
|
|
|
10845
10865
|
} else
|
|
10846
10866
|
m = i(l, v + k);
|
|
10847
10867
|
m < 32 ? b[v++] = 160 | m : m < 256 ? (k < 2 && b.copyWithin(v + 2, v + 1, v + 1 + m), b[v++] = 217, b[v++] = m) : m < 65536 ? (k < 3 && b.copyWithin(v + 3, v + 2, v + 2 + m), b[v++] = 218, b[v++] = m >> 8, b[v++] = m & 255) : (k < 5 && b.copyWithin(v + 5, v + 3, v + 3 + m), b[v++] = 219, Ee.setUint32(v, m), v += 4), v += m;
|
|
10848
|
-
} else if (
|
|
10868
|
+
} else if (T === "number")
|
|
10849
10869
|
if (l >>> 0 === l)
|
|
10850
10870
|
l < 32 || l < 128 && this.useRecords === !1 || l < 64 && !this.randomAccessStructure ? b[v++] = l : l < 256 ? (b[v++] = 204, b[v++] = l) : l < 65536 ? (b[v++] = 205, b[v++] = l >> 8, b[v++] = l & 255) : (b[v++] = 206, Ee.setUint32(v, l), v += 4);
|
|
10851
10871
|
else if (l >> 0 === l)
|
|
@@ -10856,7 +10876,7 @@ class Ag extends As {
|
|
|
10856
10876
|
b[v++] = 202, Ee.setFloat32(v, l);
|
|
10857
10877
|
let k;
|
|
10858
10878
|
if (y < 4 || // this checks for rounding of numbers that were encoded in 32-bit float to nearest significant decimal digit that could be preserved
|
|
10859
|
-
(k = l *
|
|
10879
|
+
(k = l * Tc[(b[v] & 127) << 1 | b[v + 1] >> 7]) >> 0 === k) {
|
|
10860
10880
|
v += 4;
|
|
10861
10881
|
return;
|
|
10862
10882
|
} else
|
|
@@ -10864,7 +10884,7 @@ class Ag extends As {
|
|
|
10864
10884
|
}
|
|
10865
10885
|
b[v++] = 203, Ee.setFloat64(v, l), v += 8;
|
|
10866
10886
|
}
|
|
10867
|
-
else if (
|
|
10887
|
+
else if (T === "object" || T === "function")
|
|
10868
10888
|
if (!l)
|
|
10869
10889
|
b[v++] = 192;
|
|
10870
10890
|
else {
|
|
@@ -10895,28 +10915,28 @@ class Ag extends As {
|
|
|
10895
10915
|
}
|
|
10896
10916
|
else {
|
|
10897
10917
|
for (let k = 0, R = di.length; k < R; k++) {
|
|
10898
|
-
let D =
|
|
10918
|
+
let D = xc[k];
|
|
10899
10919
|
if (l instanceof D) {
|
|
10900
10920
|
let I = di[k];
|
|
10901
10921
|
if (I.write) {
|
|
10902
10922
|
I.type && (b[v++] = 212, b[v++] = I.type, b[v++] = 0);
|
|
10903
|
-
let
|
|
10904
|
-
|
|
10923
|
+
let He = I.write.call(this, l);
|
|
10924
|
+
He === l ? Array.isArray(l) ? qr(l) : er(l) : re(He);
|
|
10905
10925
|
return;
|
|
10906
10926
|
}
|
|
10907
10927
|
let ne = b, F = Ee, Ke = v;
|
|
10908
10928
|
b = null;
|
|
10909
10929
|
let it;
|
|
10910
10930
|
try {
|
|
10911
|
-
it = I.pack.call(this, l, (
|
|
10931
|
+
it = I.pack.call(this, l, (He) => (b = ne, ne = null, v += He, v > ct && Ge(v), {
|
|
10912
10932
|
target: b,
|
|
10913
10933
|
targetView: Ee,
|
|
10914
|
-
position: v -
|
|
10934
|
+
position: v - He
|
|
10915
10935
|
}), re);
|
|
10916
10936
|
} finally {
|
|
10917
10937
|
ne && (b = ne, Ee = F, v = Ke, ct = b.length - 10);
|
|
10918
10938
|
}
|
|
10919
|
-
it && (it.length + v > ct &&
|
|
10939
|
+
it && (it.length + v > ct && Ge(it.length + v), v = Cg(it, b, v, I.type));
|
|
10920
10940
|
return;
|
|
10921
10941
|
}
|
|
10922
10942
|
}
|
|
@@ -10928,15 +10948,15 @@ class Ag extends As {
|
|
|
10928
10948
|
if (k !== l)
|
|
10929
10949
|
return re(k);
|
|
10930
10950
|
}
|
|
10931
|
-
if (
|
|
10951
|
+
if (T === "function")
|
|
10932
10952
|
return re(this.writeFunction && this.writeFunction(l));
|
|
10933
10953
|
er(l, !l.hasOwnProperty);
|
|
10934
10954
|
}
|
|
10935
10955
|
}
|
|
10936
10956
|
}
|
|
10937
|
-
else if (
|
|
10957
|
+
else if (T === "boolean")
|
|
10938
10958
|
b[v++] = l ? 195 : 194;
|
|
10939
|
-
else if (
|
|
10959
|
+
else if (T === "bigint") {
|
|
10940
10960
|
if (l < BigInt(1) << BigInt(63) && l >= -(BigInt(1) << BigInt(63)))
|
|
10941
10961
|
b[v++] = 211, Ee.setBigInt64(v, l);
|
|
10942
10962
|
else if (l < BigInt(1) << BigInt(64) && l > 0)
|
|
@@ -10946,37 +10966,37 @@ class Ag extends As {
|
|
|
10946
10966
|
else
|
|
10947
10967
|
throw new RangeError(l + " was too large to fit in MessagePack 64-bit integer format, set largeBigIntToFloat to convert to float-64");
|
|
10948
10968
|
v += 8;
|
|
10949
|
-
} else if (
|
|
10969
|
+
} else if (T === "undefined")
|
|
10950
10970
|
this.encodeUndefinedAsNil ? b[v++] = 192 : (b[v++] = 212, b[v++] = 0, b[v++] = 0);
|
|
10951
10971
|
else
|
|
10952
|
-
throw new Error("Unknown type: " +
|
|
10972
|
+
throw new Error("Unknown type: " + T);
|
|
10953
10973
|
}, Kn = this.variableMapSize || this.coercibleKeyAsNumber ? (l) => {
|
|
10954
|
-
let
|
|
10974
|
+
let T = Object.keys(l), m = T.length;
|
|
10955
10975
|
m < 16 ? b[v++] = 128 | m : m < 65536 ? (b[v++] = 222, b[v++] = m >> 8, b[v++] = m & 255) : (b[v++] = 223, Ee.setUint32(v, m), v += 4);
|
|
10956
10976
|
let y;
|
|
10957
10977
|
if (this.coercibleKeyAsNumber)
|
|
10958
10978
|
for (let k = 0; k < m; k++) {
|
|
10959
|
-
y =
|
|
10979
|
+
y = T[k];
|
|
10960
10980
|
let R = Number(y);
|
|
10961
10981
|
re(isNaN(R) ? y : R), re(l[y]);
|
|
10962
10982
|
}
|
|
10963
10983
|
else
|
|
10964
10984
|
for (let k = 0; k < m; k++)
|
|
10965
|
-
re(y =
|
|
10966
|
-
} : (l,
|
|
10985
|
+
re(y = T[k]), re(l[y]);
|
|
10986
|
+
} : (l, T) => {
|
|
10967
10987
|
b[v++] = 222;
|
|
10968
10988
|
let m = v - t;
|
|
10969
10989
|
v += 2;
|
|
10970
10990
|
let y = 0;
|
|
10971
10991
|
for (let k in l)
|
|
10972
|
-
(
|
|
10992
|
+
(T || l.hasOwnProperty(k)) && (re(k), re(l[k]), y++);
|
|
10973
10993
|
b[m++ + t] = y >> 8, b[m + t] = y & 255;
|
|
10974
10994
|
}, Fn = this.useRecords === !1 ? Kn : e.progressiveRecords && !X ? (
|
|
10975
10995
|
// this is about 2% faster for highly stable structures, since it only requires one for-in loop (but much more expensive when new structure needs to be written)
|
|
10976
|
-
(l,
|
|
10996
|
+
(l, T) => {
|
|
10977
10997
|
let m, y = s.transitions || (s.transitions = /* @__PURE__ */ Object.create(null)), k = v++ - t, R;
|
|
10978
10998
|
for (let D in l)
|
|
10979
|
-
if (
|
|
10999
|
+
if (T || l.hasOwnProperty(D)) {
|
|
10980
11000
|
if (m = y[D], m)
|
|
10981
11001
|
y = m;
|
|
10982
11002
|
else {
|
|
@@ -10984,8 +11004,8 @@ class Ag extends As {
|
|
|
10984
11004
|
y = s.transitions;
|
|
10985
11005
|
let F = 0;
|
|
10986
11006
|
for (let Ke = 0, it = I.length; Ke < it; Ke++) {
|
|
10987
|
-
let
|
|
10988
|
-
m = y[
|
|
11007
|
+
let He = I[Ke];
|
|
11008
|
+
m = y[He], m || (m = y[He] = /* @__PURE__ */ Object.create(null), F++), y = m;
|
|
10989
11009
|
}
|
|
10990
11010
|
k + t + 1 == v ? (v--, Yr(y, I, F)) : qn(y, I, k, F), R = !0, y = ne[D];
|
|
10991
11011
|
}
|
|
@@ -10996,47 +11016,47 @@ class Ag extends As {
|
|
|
10996
11016
|
D ? b[k + t] = D : qn(y, Object.keys(l), k, 0);
|
|
10997
11017
|
}
|
|
10998
11018
|
}
|
|
10999
|
-
) : (l,
|
|
11019
|
+
) : (l, T) => {
|
|
11000
11020
|
let m, y = s.transitions || (s.transitions = /* @__PURE__ */ Object.create(null)), k = 0;
|
|
11001
11021
|
for (let D in l)
|
|
11002
|
-
(
|
|
11022
|
+
(T || l.hasOwnProperty(D)) && (m = y[D], m || (m = y[D] = /* @__PURE__ */ Object.create(null), k++), y = m);
|
|
11003
11023
|
let R = y[bn];
|
|
11004
11024
|
R ? R >= 96 && X ? (b[v++] = ((R -= 96) & 31) + 96, b[v++] = R >> 5) : b[v++] = R : Yr(y, y.__keys__ || Object.keys(l), k);
|
|
11005
11025
|
for (let D in l)
|
|
11006
|
-
(
|
|
11007
|
-
}, Wn = typeof this.useRecords == "function" && this.useRecords, er = Wn ? (l,
|
|
11008
|
-
Wn(l) ? Fn(l,
|
|
11009
|
-
} : Fn,
|
|
11010
|
-
let
|
|
11026
|
+
(T || l.hasOwnProperty(D)) && re(l[D]);
|
|
11027
|
+
}, Wn = typeof this.useRecords == "function" && this.useRecords, er = Wn ? (l, T) => {
|
|
11028
|
+
Wn(l) ? Fn(l, T) : Kn(l, T);
|
|
11029
|
+
} : Fn, Ge = (l) => {
|
|
11030
|
+
let T;
|
|
11011
11031
|
if (l > 16777216) {
|
|
11012
11032
|
if (l - t > bu)
|
|
11013
11033
|
throw new Error("Packed buffer would be larger than maximum buffer size");
|
|
11014
|
-
|
|
11034
|
+
T = Math.min(
|
|
11015
11035
|
bu,
|
|
11016
11036
|
Math.round(Math.max((l - t) * (l > 67108864 ? 1.25 : 2), 4194304) / 4096) * 4096
|
|
11017
11037
|
);
|
|
11018
11038
|
} else
|
|
11019
|
-
|
|
11020
|
-
let m = new ha(
|
|
11021
|
-
return Ee = m.dataView || (m.dataView = new DataView(m.buffer, 0,
|
|
11022
|
-
}, Yr = (l,
|
|
11039
|
+
T = (Math.max(l - t << 2, b.length - 1) >> 12) + 1 << 12;
|
|
11040
|
+
let m = new ha(T);
|
|
11041
|
+
return Ee = m.dataView || (m.dataView = new DataView(m.buffer, 0, T)), l = Math.min(l, b.length), b.copy ? b.copy(m, 0, t, l) : m.set(b.slice(t, l)), v -= t, t = 0, ct = m.length - 10, b = m;
|
|
11042
|
+
}, Yr = (l, T, m) => {
|
|
11023
11043
|
let y = s.nextId;
|
|
11024
|
-
y || (y = 64), y < Q && this.shouldShareStructure && !this.shouldShareStructure(
|
|
11025
|
-
let k =
|
|
11026
|
-
l[bn] = y, l.__keys__ =
|
|
11027
|
-
}, qn = (l,
|
|
11044
|
+
y || (y = 64), y < Q && this.shouldShareStructure && !this.shouldShareStructure(T) ? (y = s.nextOwnId, y < Ze || (y = Q), s.nextOwnId = y + 1) : (y >= Ze && (y = Q), s.nextId = y + 1);
|
|
11045
|
+
let k = T.highByte = y >= 96 && X ? y - 96 >> 5 : -1;
|
|
11046
|
+
l[bn] = y, l.__keys__ = T, s[y - 64] = T, y < Q ? (T.isShared = !0, s.sharedLength = y - 63, n = !0, k >= 0 ? (b[v++] = (y & 31) + 96, b[v++] = k) : b[v++] = y) : (k >= 0 ? (b[v++] = 213, b[v++] = 114, b[v++] = (y & 31) + 96, b[v++] = k) : (b[v++] = 212, b[v++] = 114, b[v++] = y), m && (Xt += Qt * m), ee.length >= M && (ee.shift()[bn] = 0), ee.push(l), re(T));
|
|
11047
|
+
}, qn = (l, T, m, y) => {
|
|
11028
11048
|
let k = b, R = v, D = ct, I = t;
|
|
11029
|
-
b = Jn, v = 0, t = 0, b || (Jn = b = new ha(8192)), ct = b.length - 10, Yr(l,
|
|
11049
|
+
b = Jn, v = 0, t = 0, b || (Jn = b = new ha(8192)), ct = b.length - 10, Yr(l, T, y), Jn = b;
|
|
11030
11050
|
let ne = v;
|
|
11031
11051
|
if (b = k, v = R, ct = D, t = I, ne > 1) {
|
|
11032
11052
|
let F = v + ne - 1;
|
|
11033
|
-
F > ct &&
|
|
11053
|
+
F > ct && Ge(F);
|
|
11034
11054
|
let Ke = m + t;
|
|
11035
11055
|
b.copyWithin(Ke + ne, Ke + 1, v), b.set(Jn.slice(0, ne), Ke), v = F;
|
|
11036
11056
|
} else
|
|
11037
11057
|
b[m + t] = Jn[0];
|
|
11038
|
-
}, Ji = (l,
|
|
11039
|
-
let m = Ng(l, b, t, v, s,
|
|
11058
|
+
}, Ji = (l, T) => {
|
|
11059
|
+
let m = Ng(l, b, t, v, s, Ge, (y, k, R) => {
|
|
11040
11060
|
if (R)
|
|
11041
11061
|
return n = !0;
|
|
11042
11062
|
v = k;
|
|
@@ -11055,7 +11075,7 @@ class Ag extends As {
|
|
|
11055
11075
|
this.structures && (this.structures = []), this.typedStructs && (this.typedStructs = []);
|
|
11056
11076
|
}
|
|
11057
11077
|
}
|
|
11058
|
-
|
|
11078
|
+
xc = [Date, Set, Error, RegExp, ArrayBuffer, Object.getPrototypeOf(Uint8Array.prototype).constructor, Td];
|
|
11059
11079
|
di = [{
|
|
11060
11080
|
pack(r, e, t) {
|
|
11061
11081
|
let n = r.getTime() / 1e3;
|
|
@@ -11094,12 +11114,12 @@ di = [{
|
|
|
11094
11114
|
}
|
|
11095
11115
|
}, {
|
|
11096
11116
|
pack(r, e) {
|
|
11097
|
-
this.moreTypes ? ku(r, 16, e) :
|
|
11117
|
+
this.moreTypes ? ku(r, 16, e) : Tu(Mi ? Buffer.from(r) : new Uint8Array(r), e);
|
|
11098
11118
|
}
|
|
11099
11119
|
}, {
|
|
11100
11120
|
pack(r, e) {
|
|
11101
11121
|
let t = r.constructor;
|
|
11102
|
-
t !== Cd && this.moreTypes ? ku(r, Id.indexOf(t.name), e) :
|
|
11122
|
+
t !== Cd && this.moreTypes ? ku(r, Id.indexOf(t.name), e) : Tu(r, e);
|
|
11103
11123
|
}
|
|
11104
11124
|
}, {
|
|
11105
11125
|
pack(r, e) {
|
|
@@ -11121,7 +11141,7 @@ function ku(r, e, t, n) {
|
|
|
11121
11141
|
}
|
|
11122
11142
|
a[i++] = 116, a[i++] = e, a.set(new Uint8Array(r.buffer, r.byteOffset, r.byteLength), i);
|
|
11123
11143
|
}
|
|
11124
|
-
function
|
|
11144
|
+
function Tu(r, e) {
|
|
11125
11145
|
let t = r.byteLength;
|
|
11126
11146
|
var n, s;
|
|
11127
11147
|
if (t < 256) {
|
|
@@ -11169,7 +11189,7 @@ function jg(r, e) {
|
|
|
11169
11189
|
}
|
|
11170
11190
|
return r;
|
|
11171
11191
|
}
|
|
11172
|
-
function
|
|
11192
|
+
function xu(r, e, t) {
|
|
11173
11193
|
if (De.length > 0) {
|
|
11174
11194
|
Ee.setUint32(De.position + r, v + t - De.position - r), De.stringsPosition = v - r;
|
|
11175
11195
|
let n = De;
|
|
@@ -11182,9 +11202,9 @@ function Zg(r) {
|
|
|
11182
11202
|
throw new Error("Extension has no pack or write function");
|
|
11183
11203
|
if (r.pack && !r.type)
|
|
11184
11204
|
throw new Error("Extension has no type (numeric code to identify the extension)");
|
|
11185
|
-
|
|
11205
|
+
xc.unshift(r.Class), di.unshift(r);
|
|
11186
11206
|
}
|
|
11187
|
-
|
|
11207
|
+
xg(r);
|
|
11188
11208
|
}
|
|
11189
11209
|
function Rg(r, e) {
|
|
11190
11210
|
return r.isCompatible = (t) => {
|
|
@@ -11227,7 +11247,7 @@ class Lg {
|
|
|
11227
11247
|
}
|
|
11228
11248
|
}
|
|
11229
11249
|
new $g(), new Lg();
|
|
11230
|
-
var
|
|
11250
|
+
var Te;
|
|
11231
11251
|
(function(r) {
|
|
11232
11252
|
r.assertEqual = (s) => s;
|
|
11233
11253
|
function e(s) {
|
|
@@ -11262,7 +11282,7 @@ var xe;
|
|
|
11262
11282
|
return s.map((i) => typeof i == "string" ? `'${i}'` : i).join(a);
|
|
11263
11283
|
}
|
|
11264
11284
|
r.joinValues = n, r.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
|
|
11265
|
-
})(
|
|
11285
|
+
})(Te || (Te = {}));
|
|
11266
11286
|
var jo;
|
|
11267
11287
|
(function(r) {
|
|
11268
11288
|
r.mergeShapes = (e, t) => ({
|
|
@@ -11271,7 +11291,7 @@ var jo;
|
|
|
11271
11291
|
// second overwrites first
|
|
11272
11292
|
});
|
|
11273
11293
|
})(jo || (jo = {}));
|
|
11274
|
-
const B =
|
|
11294
|
+
const B = Te.arrayToEnum([
|
|
11275
11295
|
"string",
|
|
11276
11296
|
"nan",
|
|
11277
11297
|
"number",
|
|
@@ -11313,7 +11333,7 @@ const B = xe.arrayToEnum([
|
|
|
11313
11333
|
default:
|
|
11314
11334
|
return B.unknown;
|
|
11315
11335
|
}
|
|
11316
|
-
}, j =
|
|
11336
|
+
}, j = Te.arrayToEnum([
|
|
11317
11337
|
"invalid_type",
|
|
11318
11338
|
"invalid_literal",
|
|
11319
11339
|
"custom",
|
|
@@ -11371,7 +11391,7 @@ class Rt extends Error {
|
|
|
11371
11391
|
return this.message;
|
|
11372
11392
|
}
|
|
11373
11393
|
get message() {
|
|
11374
|
-
return JSON.stringify(this.issues,
|
|
11394
|
+
return JSON.stringify(this.issues, Te.jsonStringifyReplacer, 2);
|
|
11375
11395
|
}
|
|
11376
11396
|
get isEmpty() {
|
|
11377
11397
|
return this.issues.length === 0;
|
|
@@ -11394,19 +11414,19 @@ const Cs = (r, e) => {
|
|
|
11394
11414
|
r.received === B.undefined ? t = "Required" : t = `Expected ${r.expected}, received ${r.received}`;
|
|
11395
11415
|
break;
|
|
11396
11416
|
case j.invalid_literal:
|
|
11397
|
-
t = `Invalid literal value, expected ${JSON.stringify(r.expected,
|
|
11417
|
+
t = `Invalid literal value, expected ${JSON.stringify(r.expected, Te.jsonStringifyReplacer)}`;
|
|
11398
11418
|
break;
|
|
11399
11419
|
case j.unrecognized_keys:
|
|
11400
|
-
t = `Unrecognized key(s) in object: ${
|
|
11420
|
+
t = `Unrecognized key(s) in object: ${Te.joinValues(r.keys, ", ")}`;
|
|
11401
11421
|
break;
|
|
11402
11422
|
case j.invalid_union:
|
|
11403
11423
|
t = "Invalid input";
|
|
11404
11424
|
break;
|
|
11405
11425
|
case j.invalid_union_discriminator:
|
|
11406
|
-
t = `Invalid discriminator value. Expected ${
|
|
11426
|
+
t = `Invalid discriminator value. Expected ${Te.joinValues(r.options)}`;
|
|
11407
11427
|
break;
|
|
11408
11428
|
case j.invalid_enum_value:
|
|
11409
|
-
t = `Invalid enum value. Expected ${
|
|
11429
|
+
t = `Invalid enum value. Expected ${Te.joinValues(r.options)}, received '${r.received}'`;
|
|
11410
11430
|
break;
|
|
11411
11431
|
case j.invalid_arguments:
|
|
11412
11432
|
t = "Invalid function arguments";
|
|
@@ -11418,7 +11438,7 @@ const Cs = (r, e) => {
|
|
|
11418
11438
|
t = "Invalid date";
|
|
11419
11439
|
break;
|
|
11420
11440
|
case j.invalid_string:
|
|
11421
|
-
typeof r.validation == "object" ? "includes" in r.validation ? (t = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? t = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? t = `Invalid input: must end with "${r.validation.endsWith}"` :
|
|
11441
|
+
typeof r.validation == "object" ? "includes" in r.validation ? (t = `Invalid input: must include "${r.validation.includes}"`, typeof r.validation.position == "number" && (t = `${t} at one or more positions greater than or equal to ${r.validation.position}`)) : "startsWith" in r.validation ? t = `Invalid input: must start with "${r.validation.startsWith}"` : "endsWith" in r.validation ? t = `Invalid input: must end with "${r.validation.endsWith}"` : Te.assertNever(r.validation) : r.validation !== "regex" ? t = `Invalid ${r.validation}` : t = "Invalid";
|
|
11422
11442
|
break;
|
|
11423
11443
|
case j.too_small:
|
|
11424
11444
|
r.type === "array" ? t = `Array must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "more than"} ${r.minimum} element(s)` : r.type === "string" ? t = `String must contain ${r.exact ? "exactly" : r.inclusive ? "at least" : "over"} ${r.minimum} character(s)` : r.type === "number" ? t = `Number must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${r.minimum}` : r.type === "date" ? t = `Date must be ${r.exact ? "exactly equal to " : r.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(r.minimum))}` : t = "Invalid input";
|
|
@@ -11439,7 +11459,7 @@ const Cs = (r, e) => {
|
|
|
11439
11459
|
t = "Number must be finite";
|
|
11440
11460
|
break;
|
|
11441
11461
|
default:
|
|
11442
|
-
t = e.defaultError,
|
|
11462
|
+
t = e.defaultError, Te.assertNever(r);
|
|
11443
11463
|
}
|
|
11444
11464
|
return { message: t };
|
|
11445
11465
|
};
|
|
@@ -11526,7 +11546,7 @@ var Y;
|
|
|
11526
11546
|
(function(r) {
|
|
11527
11547
|
r.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, r.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
11528
11548
|
})(Y || (Y = {}));
|
|
11529
|
-
class
|
|
11549
|
+
class Gt {
|
|
11530
11550
|
constructor(e, t, n, s) {
|
|
11531
11551
|
this._cachedPath = [], this.parent = e, this.data = t, this._path = n, this._key = s;
|
|
11532
11552
|
}
|
|
@@ -11659,7 +11679,7 @@ class de {
|
|
|
11659
11679
|
_refinement(e) {
|
|
11660
11680
|
return new Mt({
|
|
11661
11681
|
schema: this,
|
|
11662
|
-
typeName:
|
|
11682
|
+
typeName: H.ZodEffects,
|
|
11663
11683
|
effect: { type: "refinement", refinement: e }
|
|
11664
11684
|
});
|
|
11665
11685
|
}
|
|
@@ -11691,7 +11711,7 @@ class de {
|
|
|
11691
11711
|
return new Mt({
|
|
11692
11712
|
...ce(this._def),
|
|
11693
11713
|
schema: this,
|
|
11694
|
-
typeName:
|
|
11714
|
+
typeName: H.ZodEffects,
|
|
11695
11715
|
effect: { type: "transform", transform: e }
|
|
11696
11716
|
});
|
|
11697
11717
|
}
|
|
@@ -11701,12 +11721,12 @@ class de {
|
|
|
11701
11721
|
...ce(this._def),
|
|
11702
11722
|
innerType: this,
|
|
11703
11723
|
defaultValue: t,
|
|
11704
|
-
typeName:
|
|
11724
|
+
typeName: H.ZodDefault
|
|
11705
11725
|
});
|
|
11706
11726
|
}
|
|
11707
11727
|
brand() {
|
|
11708
11728
|
return new Ud({
|
|
11709
|
-
typeName:
|
|
11729
|
+
typeName: H.ZodBranded,
|
|
11710
11730
|
type: this,
|
|
11711
11731
|
...ce(this._def)
|
|
11712
11732
|
});
|
|
@@ -11717,7 +11737,7 @@ class de {
|
|
|
11717
11737
|
...ce(this._def),
|
|
11718
11738
|
innerType: this,
|
|
11719
11739
|
catchValue: t,
|
|
11720
|
-
typeName:
|
|
11740
|
+
typeName: H.ZodCatch
|
|
11721
11741
|
});
|
|
11722
11742
|
}
|
|
11723
11743
|
describe(e) {
|
|
@@ -11742,9 +11762,9 @@ class de {
|
|
|
11742
11762
|
}
|
|
11743
11763
|
const Kg = /^c[^\s-]{8,}$/i, Fg = /^[a-z][a-z0-9]*$/, Wg = /^[0-9A-HJKMNP-TV-Z]{26}$/, qg = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Yg = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Jg = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
11744
11764
|
let io;
|
|
11745
|
-
const
|
|
11765
|
+
const Gg = /^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/, Hg = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/, Xg = (r) => r.precision ? r.offset ? new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`) : new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`) : r.precision === 0 ? r.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$") : r.offset ? new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$") : new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");
|
|
11746
11766
|
function Qg(r, e) {
|
|
11747
|
-
return !!((e === "v4" || !e) &&
|
|
11767
|
+
return !!((e === "v4" || !e) && Gg.test(r) || (e === "v6" || !e) && Hg.test(r));
|
|
11748
11768
|
}
|
|
11749
11769
|
class At extends de {
|
|
11750
11770
|
_parse(e) {
|
|
@@ -11869,7 +11889,7 @@ class At extends de {
|
|
|
11869
11889
|
validation: "ip",
|
|
11870
11890
|
code: j.invalid_string,
|
|
11871
11891
|
message: s.message
|
|
11872
|
-
}), t.dirty()) :
|
|
11892
|
+
}), t.dirty()) : Te.assertNever(s);
|
|
11873
11893
|
return { status: t.value, value: e.data };
|
|
11874
11894
|
}
|
|
11875
11895
|
_regex(e, t, n) {
|
|
@@ -12042,7 +12062,7 @@ At.create = (r) => {
|
|
|
12042
12062
|
var e;
|
|
12043
12063
|
return new At({
|
|
12044
12064
|
checks: [],
|
|
12045
|
-
typeName:
|
|
12065
|
+
typeName: H.ZodString,
|
|
12046
12066
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
12047
12067
|
...ce(r)
|
|
12048
12068
|
});
|
|
@@ -12067,7 +12087,7 @@ class zr extends de {
|
|
|
12067
12087
|
let t;
|
|
12068
12088
|
const n = new at();
|
|
12069
12089
|
for (const s of this._def.checks)
|
|
12070
|
-
s.kind === "int" ?
|
|
12090
|
+
s.kind === "int" ? Te.isInteger(e.data) || (t = this._getOrReturnCtx(e, t), K(t, {
|
|
12071
12091
|
code: j.invalid_type,
|
|
12072
12092
|
expected: "integer",
|
|
12073
12093
|
received: "float",
|
|
@@ -12093,7 +12113,7 @@ class zr extends de {
|
|
|
12093
12113
|
}), n.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (t = this._getOrReturnCtx(e, t), K(t, {
|
|
12094
12114
|
code: j.not_finite,
|
|
12095
12115
|
message: s.message
|
|
12096
|
-
}), n.dirty()) :
|
|
12116
|
+
}), n.dirty()) : Te.assertNever(s);
|
|
12097
12117
|
return { status: n.value, value: e.data };
|
|
12098
12118
|
}
|
|
12099
12119
|
gte(e, t) {
|
|
@@ -12205,7 +12225,7 @@ class zr extends de {
|
|
|
12205
12225
|
return e;
|
|
12206
12226
|
}
|
|
12207
12227
|
get isInt() {
|
|
12208
|
-
return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" &&
|
|
12228
|
+
return !!this._def.checks.find((e) => e.kind === "int" || e.kind === "multipleOf" && Te.isInteger(e.value));
|
|
12209
12229
|
}
|
|
12210
12230
|
get isFinite() {
|
|
12211
12231
|
let e = null, t = null;
|
|
@@ -12219,7 +12239,7 @@ class zr extends de {
|
|
|
12219
12239
|
}
|
|
12220
12240
|
zr.create = (r) => new zr({
|
|
12221
12241
|
checks: [],
|
|
12222
|
-
typeName:
|
|
12242
|
+
typeName: H.ZodNumber,
|
|
12223
12243
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
12224
12244
|
...ce(r)
|
|
12225
12245
|
});
|
|
@@ -12255,7 +12275,7 @@ class Vr extends de {
|
|
|
12255
12275
|
code: j.not_multiple_of,
|
|
12256
12276
|
multipleOf: s.value,
|
|
12257
12277
|
message: s.message
|
|
12258
|
-
}), n.dirty()) :
|
|
12278
|
+
}), n.dirty()) : Te.assertNever(s);
|
|
12259
12279
|
return { status: n.value, value: e.data };
|
|
12260
12280
|
}
|
|
12261
12281
|
gte(e, t) {
|
|
@@ -12346,7 +12366,7 @@ Vr.create = (r) => {
|
|
|
12346
12366
|
var e;
|
|
12347
12367
|
return new Vr({
|
|
12348
12368
|
checks: [],
|
|
12349
|
-
typeName:
|
|
12369
|
+
typeName: H.ZodBigInt,
|
|
12350
12370
|
coerce: (e = r == null ? void 0 : r.coerce) !== null && e !== void 0 ? e : !1,
|
|
12351
12371
|
...ce(r)
|
|
12352
12372
|
});
|
|
@@ -12365,7 +12385,7 @@ class Zs extends de {
|
|
|
12365
12385
|
}
|
|
12366
12386
|
}
|
|
12367
12387
|
Zs.create = (r) => new Zs({
|
|
12368
|
-
typeName:
|
|
12388
|
+
typeName: H.ZodBoolean,
|
|
12369
12389
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
12370
12390
|
...ce(r)
|
|
12371
12391
|
});
|
|
@@ -12402,7 +12422,7 @@ class dn extends de {
|
|
|
12402
12422
|
exact: !1,
|
|
12403
12423
|
maximum: s.value,
|
|
12404
12424
|
type: "date"
|
|
12405
|
-
}), t.dirty()) :
|
|
12425
|
+
}), t.dirty()) : Te.assertNever(s);
|
|
12406
12426
|
return {
|
|
12407
12427
|
status: t.value,
|
|
12408
12428
|
value: new Date(e.data.getTime())
|
|
@@ -12444,7 +12464,7 @@ class dn extends de {
|
|
|
12444
12464
|
dn.create = (r) => new dn({
|
|
12445
12465
|
checks: [],
|
|
12446
12466
|
coerce: (r == null ? void 0 : r.coerce) || !1,
|
|
12447
|
-
typeName:
|
|
12467
|
+
typeName: H.ZodDate,
|
|
12448
12468
|
...ce(r)
|
|
12449
12469
|
});
|
|
12450
12470
|
class mi extends de {
|
|
@@ -12461,7 +12481,7 @@ class mi extends de {
|
|
|
12461
12481
|
}
|
|
12462
12482
|
}
|
|
12463
12483
|
mi.create = (r) => new mi({
|
|
12464
|
-
typeName:
|
|
12484
|
+
typeName: H.ZodSymbol,
|
|
12465
12485
|
...ce(r)
|
|
12466
12486
|
});
|
|
12467
12487
|
class Rs extends de {
|
|
@@ -12478,7 +12498,7 @@ class Rs extends de {
|
|
|
12478
12498
|
}
|
|
12479
12499
|
}
|
|
12480
12500
|
Rs.create = (r) => new Rs({
|
|
12481
|
-
typeName:
|
|
12501
|
+
typeName: H.ZodUndefined,
|
|
12482
12502
|
...ce(r)
|
|
12483
12503
|
});
|
|
12484
12504
|
class Ps extends de {
|
|
@@ -12495,7 +12515,7 @@ class Ps extends de {
|
|
|
12495
12515
|
}
|
|
12496
12516
|
}
|
|
12497
12517
|
Ps.create = (r) => new Ps({
|
|
12498
|
-
typeName:
|
|
12518
|
+
typeName: H.ZodNull,
|
|
12499
12519
|
...ce(r)
|
|
12500
12520
|
});
|
|
12501
12521
|
class $n extends de {
|
|
@@ -12507,7 +12527,7 @@ class $n extends de {
|
|
|
12507
12527
|
}
|
|
12508
12528
|
}
|
|
12509
12529
|
$n.create = (r) => new $n({
|
|
12510
|
-
typeName:
|
|
12530
|
+
typeName: H.ZodAny,
|
|
12511
12531
|
...ce(r)
|
|
12512
12532
|
});
|
|
12513
12533
|
class nn extends de {
|
|
@@ -12519,10 +12539,10 @@ class nn extends de {
|
|
|
12519
12539
|
}
|
|
12520
12540
|
}
|
|
12521
12541
|
nn.create = (r) => new nn({
|
|
12522
|
-
typeName:
|
|
12542
|
+
typeName: H.ZodUnknown,
|
|
12523
12543
|
...ce(r)
|
|
12524
12544
|
});
|
|
12525
|
-
class
|
|
12545
|
+
class xr extends de {
|
|
12526
12546
|
_parse(e) {
|
|
12527
12547
|
const t = this._getOrReturnCtx(e);
|
|
12528
12548
|
return K(t, {
|
|
@@ -12532,8 +12552,8 @@ class Tr extends de {
|
|
|
12532
12552
|
}), ae;
|
|
12533
12553
|
}
|
|
12534
12554
|
}
|
|
12535
|
-
|
|
12536
|
-
typeName:
|
|
12555
|
+
xr.create = (r) => new xr({
|
|
12556
|
+
typeName: H.ZodNever,
|
|
12537
12557
|
...ce(r)
|
|
12538
12558
|
});
|
|
12539
12559
|
class yi extends de {
|
|
@@ -12550,7 +12570,7 @@ class yi extends de {
|
|
|
12550
12570
|
}
|
|
12551
12571
|
}
|
|
12552
12572
|
yi.create = (r) => new yi({
|
|
12553
|
-
typeName:
|
|
12573
|
+
typeName: H.ZodVoid,
|
|
12554
12574
|
...ce(r)
|
|
12555
12575
|
});
|
|
12556
12576
|
class Pt extends de {
|
|
@@ -12589,8 +12609,8 @@ class Pt extends de {
|
|
|
12589
12609
|
exact: !1,
|
|
12590
12610
|
message: s.maxLength.message
|
|
12591
12611
|
}), n.dirty()), t.common.async)
|
|
12592
|
-
return Promise.all([...t.data].map((i, o) => s.type._parseAsync(new
|
|
12593
|
-
const a = [...t.data].map((i, o) => s.type._parseSync(new
|
|
12612
|
+
return Promise.all([...t.data].map((i, o) => s.type._parseAsync(new Gt(t, i, t.path, o)))).then((i) => at.mergeArray(n, i));
|
|
12613
|
+
const a = [...t.data].map((i, o) => s.type._parseSync(new Gt(t, i, t.path, o)));
|
|
12594
12614
|
return at.mergeArray(n, a);
|
|
12595
12615
|
}
|
|
12596
12616
|
get element() {
|
|
@@ -12623,15 +12643,15 @@ Pt.create = (r, e) => new Pt({
|
|
|
12623
12643
|
minLength: null,
|
|
12624
12644
|
maxLength: null,
|
|
12625
12645
|
exactLength: null,
|
|
12626
|
-
typeName:
|
|
12646
|
+
typeName: H.ZodArray,
|
|
12627
12647
|
...ce(e)
|
|
12628
12648
|
});
|
|
12629
|
-
function
|
|
12649
|
+
function xn(r) {
|
|
12630
12650
|
if (r instanceof $e) {
|
|
12631
12651
|
const e = {};
|
|
12632
12652
|
for (const t in r.shape) {
|
|
12633
12653
|
const n = r.shape[t];
|
|
12634
|
-
e[t] = br.create(
|
|
12654
|
+
e[t] = br.create(xn(n));
|
|
12635
12655
|
}
|
|
12636
12656
|
return new $e({
|
|
12637
12657
|
...r._def,
|
|
@@ -12640,8 +12660,8 @@ function Tn(r) {
|
|
|
12640
12660
|
} else
|
|
12641
12661
|
return r instanceof Pt ? new Pt({
|
|
12642
12662
|
...r._def,
|
|
12643
|
-
type:
|
|
12644
|
-
}) : r instanceof br ? br.create(
|
|
12663
|
+
type: xn(r.element)
|
|
12664
|
+
}) : r instanceof br ? br.create(xn(r.unwrap())) : r instanceof fn ? fn.create(xn(r.unwrap())) : r instanceof Ht ? Ht.create(r.items.map((e) => xn(e))) : r;
|
|
12645
12665
|
}
|
|
12646
12666
|
class $e extends de {
|
|
12647
12667
|
constructor() {
|
|
@@ -12650,7 +12670,7 @@ class $e extends de {
|
|
|
12650
12670
|
_getCached() {
|
|
12651
12671
|
if (this._cached !== null)
|
|
12652
12672
|
return this._cached;
|
|
12653
|
-
const e = this._def.shape(), t =
|
|
12673
|
+
const e = this._def.shape(), t = Te.objectKeys(e);
|
|
12654
12674
|
return this._cached = { shape: e, keys: t };
|
|
12655
12675
|
}
|
|
12656
12676
|
_parse(e) {
|
|
@@ -12663,7 +12683,7 @@ class $e extends de {
|
|
|
12663
12683
|
}), ae;
|
|
12664
12684
|
}
|
|
12665
12685
|
const { status: t, ctx: n } = this._processInputParams(e), { shape: s, keys: a } = this._getCached(), i = [];
|
|
12666
|
-
if (!(this._def.catchall instanceof
|
|
12686
|
+
if (!(this._def.catchall instanceof xr && this._def.unknownKeys === "strip"))
|
|
12667
12687
|
for (const c in n.data)
|
|
12668
12688
|
a.includes(c) || i.push(c);
|
|
12669
12689
|
const o = [];
|
|
@@ -12671,11 +12691,11 @@ class $e extends de {
|
|
|
12671
12691
|
const d = s[c], w = n.data[c];
|
|
12672
12692
|
o.push({
|
|
12673
12693
|
key: { status: "valid", value: c },
|
|
12674
|
-
value: d._parse(new
|
|
12694
|
+
value: d._parse(new Gt(n, w, n.path, c)),
|
|
12675
12695
|
alwaysSet: c in n.data
|
|
12676
12696
|
});
|
|
12677
12697
|
}
|
|
12678
|
-
if (this._def.catchall instanceof
|
|
12698
|
+
if (this._def.catchall instanceof xr) {
|
|
12679
12699
|
const c = this._def.unknownKeys;
|
|
12680
12700
|
if (c === "passthrough")
|
|
12681
12701
|
for (const d of i)
|
|
@@ -12697,7 +12717,7 @@ class $e extends de {
|
|
|
12697
12717
|
o.push({
|
|
12698
12718
|
key: { status: "valid", value: d },
|
|
12699
12719
|
value: c._parse(
|
|
12700
|
-
new
|
|
12720
|
+
new Gt(n, w, n.path, d)
|
|
12701
12721
|
//, ctx.child(key), value, getParsedType(value)
|
|
12702
12722
|
),
|
|
12703
12723
|
alwaysSet: d in n.data
|
|
@@ -12788,7 +12808,7 @@ class $e extends de {
|
|
|
12788
12808
|
...this._def.shape(),
|
|
12789
12809
|
...e._def.shape()
|
|
12790
12810
|
}),
|
|
12791
|
-
typeName:
|
|
12811
|
+
typeName: H.ZodObject
|
|
12792
12812
|
});
|
|
12793
12813
|
}
|
|
12794
12814
|
// merge<
|
|
@@ -12858,7 +12878,7 @@ class $e extends de {
|
|
|
12858
12878
|
}
|
|
12859
12879
|
pick(e) {
|
|
12860
12880
|
const t = {};
|
|
12861
|
-
return
|
|
12881
|
+
return Te.objectKeys(e).forEach((n) => {
|
|
12862
12882
|
e[n] && this.shape[n] && (t[n] = this.shape[n]);
|
|
12863
12883
|
}), new $e({
|
|
12864
12884
|
...this._def,
|
|
@@ -12867,7 +12887,7 @@ class $e extends de {
|
|
|
12867
12887
|
}
|
|
12868
12888
|
omit(e) {
|
|
12869
12889
|
const t = {};
|
|
12870
|
-
return
|
|
12890
|
+
return Te.objectKeys(this.shape).forEach((n) => {
|
|
12871
12891
|
e[n] || (t[n] = this.shape[n]);
|
|
12872
12892
|
}), new $e({
|
|
12873
12893
|
...this._def,
|
|
@@ -12878,11 +12898,11 @@ class $e extends de {
|
|
|
12878
12898
|
* @deprecated
|
|
12879
12899
|
*/
|
|
12880
12900
|
deepPartial() {
|
|
12881
|
-
return
|
|
12901
|
+
return xn(this);
|
|
12882
12902
|
}
|
|
12883
12903
|
partial(e) {
|
|
12884
12904
|
const t = {};
|
|
12885
|
-
return
|
|
12905
|
+
return Te.objectKeys(this.shape).forEach((n) => {
|
|
12886
12906
|
const s = this.shape[n];
|
|
12887
12907
|
e && !e[n] ? t[n] = s : t[n] = s.optional();
|
|
12888
12908
|
}), new $e({
|
|
@@ -12892,7 +12912,7 @@ class $e extends de {
|
|
|
12892
12912
|
}
|
|
12893
12913
|
required(e) {
|
|
12894
12914
|
const t = {};
|
|
12895
|
-
return
|
|
12915
|
+
return Te.objectKeys(this.shape).forEach((n) => {
|
|
12896
12916
|
if (e && !e[n])
|
|
12897
12917
|
t[n] = this.shape[n];
|
|
12898
12918
|
else {
|
|
@@ -12907,28 +12927,28 @@ class $e extends de {
|
|
|
12907
12927
|
});
|
|
12908
12928
|
}
|
|
12909
12929
|
keyof() {
|
|
12910
|
-
return Pd(
|
|
12930
|
+
return Pd(Te.objectKeys(this.shape));
|
|
12911
12931
|
}
|
|
12912
12932
|
}
|
|
12913
12933
|
$e.create = (r, e) => new $e({
|
|
12914
12934
|
shape: () => r,
|
|
12915
12935
|
unknownKeys: "strip",
|
|
12916
|
-
catchall:
|
|
12917
|
-
typeName:
|
|
12936
|
+
catchall: xr.create(),
|
|
12937
|
+
typeName: H.ZodObject,
|
|
12918
12938
|
...ce(e)
|
|
12919
12939
|
});
|
|
12920
12940
|
$e.strictCreate = (r, e) => new $e({
|
|
12921
12941
|
shape: () => r,
|
|
12922
12942
|
unknownKeys: "strict",
|
|
12923
|
-
catchall:
|
|
12924
|
-
typeName:
|
|
12943
|
+
catchall: xr.create(),
|
|
12944
|
+
typeName: H.ZodObject,
|
|
12925
12945
|
...ce(e)
|
|
12926
12946
|
});
|
|
12927
12947
|
$e.lazycreate = (r, e) => new $e({
|
|
12928
12948
|
shape: r,
|
|
12929
12949
|
unknownKeys: "strip",
|
|
12930
|
-
catchall:
|
|
12931
|
-
typeName:
|
|
12950
|
+
catchall: xr.create(),
|
|
12951
|
+
typeName: H.ZodObject,
|
|
12932
12952
|
...ce(e)
|
|
12933
12953
|
});
|
|
12934
12954
|
class Us extends de {
|
|
@@ -13001,7 +13021,7 @@ class Us extends de {
|
|
|
13001
13021
|
}
|
|
13002
13022
|
Us.create = (r, e) => new Us({
|
|
13003
13023
|
options: r,
|
|
13004
|
-
typeName:
|
|
13024
|
+
typeName: H.ZodUnion,
|
|
13005
13025
|
...ce(e)
|
|
13006
13026
|
});
|
|
13007
13027
|
const Pa = (r) => r instanceof $s ? Pa(r.schema) : r instanceof Mt ? Pa(r.innerType()) : r instanceof Ls ? [r.value] : r instanceof Kr ? r.options : r instanceof Bs ? Object.keys(r.enum) : r instanceof zs ? Pa(r._def.innerType) : r instanceof Rs ? [void 0] : r instanceof Ps ? [null] : null;
|
|
@@ -13059,7 +13079,7 @@ class $i extends de {
|
|
|
13059
13079
|
}
|
|
13060
13080
|
}
|
|
13061
13081
|
return new $i({
|
|
13062
|
-
typeName:
|
|
13082
|
+
typeName: H.ZodDiscriminatedUnion,
|
|
13063
13083
|
discriminator: e,
|
|
13064
13084
|
options: t,
|
|
13065
13085
|
optionsMap: s,
|
|
@@ -13072,7 +13092,7 @@ function Po(r, e) {
|
|
|
13072
13092
|
if (r === e)
|
|
13073
13093
|
return { valid: !0, data: r };
|
|
13074
13094
|
if (t === B.object && n === B.object) {
|
|
13075
|
-
const s =
|
|
13095
|
+
const s = Te.objectKeys(e), a = Te.objectKeys(r).filter((o) => s.indexOf(o) !== -1), i = { ...r, ...e };
|
|
13076
13096
|
for (const o of a) {
|
|
13077
13097
|
const c = Po(r[o], e[o]);
|
|
13078
13098
|
if (!c.valid)
|
|
@@ -13129,10 +13149,10 @@ class Ds extends de {
|
|
|
13129
13149
|
Ds.create = (r, e, t) => new Ds({
|
|
13130
13150
|
left: r,
|
|
13131
13151
|
right: e,
|
|
13132
|
-
typeName:
|
|
13152
|
+
typeName: H.ZodIntersection,
|
|
13133
13153
|
...ce(t)
|
|
13134
13154
|
});
|
|
13135
|
-
class
|
|
13155
|
+
class Ht extends de {
|
|
13136
13156
|
_parse(e) {
|
|
13137
13157
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
13138
13158
|
if (n.parsedType !== B.array)
|
|
@@ -13158,7 +13178,7 @@ class Gt extends de {
|
|
|
13158
13178
|
}), t.dirty());
|
|
13159
13179
|
const s = [...n.data].map((a, i) => {
|
|
13160
13180
|
const o = this._def.items[i] || this._def.rest;
|
|
13161
|
-
return o ? o._parse(new
|
|
13181
|
+
return o ? o._parse(new Gt(n, a, n.path, i)) : null;
|
|
13162
13182
|
}).filter((a) => !!a);
|
|
13163
13183
|
return n.common.async ? Promise.all(s).then((a) => at.mergeArray(t, a)) : at.mergeArray(t, s);
|
|
13164
13184
|
}
|
|
@@ -13166,18 +13186,18 @@ class Gt extends de {
|
|
|
13166
13186
|
return this._def.items;
|
|
13167
13187
|
}
|
|
13168
13188
|
rest(e) {
|
|
13169
|
-
return new
|
|
13189
|
+
return new Ht({
|
|
13170
13190
|
...this._def,
|
|
13171
13191
|
rest: e
|
|
13172
13192
|
});
|
|
13173
13193
|
}
|
|
13174
13194
|
}
|
|
13175
|
-
|
|
13195
|
+
Ht.create = (r, e) => {
|
|
13176
13196
|
if (!Array.isArray(r))
|
|
13177
13197
|
throw new Error("You must pass an array of schemas to z.tuple([ ... ])");
|
|
13178
|
-
return new
|
|
13198
|
+
return new Ht({
|
|
13179
13199
|
items: r,
|
|
13180
|
-
typeName:
|
|
13200
|
+
typeName: H.ZodTuple,
|
|
13181
13201
|
rest: null,
|
|
13182
13202
|
...ce(e)
|
|
13183
13203
|
});
|
|
@@ -13200,8 +13220,8 @@ class Ms extends de {
|
|
|
13200
13220
|
const s = [], a = this._def.keyType, i = this._def.valueType;
|
|
13201
13221
|
for (const o in n.data)
|
|
13202
13222
|
s.push({
|
|
13203
|
-
key: a._parse(new
|
|
13204
|
-
value: i._parse(new
|
|
13223
|
+
key: a._parse(new Gt(n, o, n.path, o)),
|
|
13224
|
+
value: i._parse(new Gt(n, n.data[o], n.path, o))
|
|
13205
13225
|
});
|
|
13206
13226
|
return n.common.async ? at.mergeObjectAsync(t, s) : at.mergeObjectSync(t, s);
|
|
13207
13227
|
}
|
|
@@ -13212,12 +13232,12 @@ class Ms extends de {
|
|
|
13212
13232
|
return t instanceof de ? new Ms({
|
|
13213
13233
|
keyType: e,
|
|
13214
13234
|
valueType: t,
|
|
13215
|
-
typeName:
|
|
13235
|
+
typeName: H.ZodRecord,
|
|
13216
13236
|
...ce(n)
|
|
13217
13237
|
}) : new Ms({
|
|
13218
13238
|
keyType: At.create(),
|
|
13219
13239
|
valueType: e,
|
|
13220
|
-
typeName:
|
|
13240
|
+
typeName: H.ZodRecord,
|
|
13221
13241
|
...ce(t)
|
|
13222
13242
|
});
|
|
13223
13243
|
}
|
|
@@ -13238,8 +13258,8 @@ class gi extends de {
|
|
|
13238
13258
|
received: n.parsedType
|
|
13239
13259
|
}), ae;
|
|
13240
13260
|
const s = this._def.keyType, a = this._def.valueType, i = [...n.data.entries()].map(([o, c], d) => ({
|
|
13241
|
-
key: s._parse(new
|
|
13242
|
-
value: a._parse(new
|
|
13261
|
+
key: s._parse(new Gt(n, o, n.path, [d, "key"])),
|
|
13262
|
+
value: a._parse(new Gt(n, c, n.path, [d, "value"]))
|
|
13243
13263
|
}));
|
|
13244
13264
|
if (n.common.async) {
|
|
13245
13265
|
const o = /* @__PURE__ */ new Map();
|
|
@@ -13267,7 +13287,7 @@ class gi extends de {
|
|
|
13267
13287
|
gi.create = (r, e, t) => new gi({
|
|
13268
13288
|
valueType: e,
|
|
13269
13289
|
keyType: r,
|
|
13270
|
-
typeName:
|
|
13290
|
+
typeName: H.ZodMap,
|
|
13271
13291
|
...ce(t)
|
|
13272
13292
|
});
|
|
13273
13293
|
class hn extends de {
|
|
@@ -13305,7 +13325,7 @@ class hn extends de {
|
|
|
13305
13325
|
}
|
|
13306
13326
|
return { status: t.value, value: d };
|
|
13307
13327
|
}
|
|
13308
|
-
const o = [...n.data.values()].map((c, d) => a._parse(new
|
|
13328
|
+
const o = [...n.data.values()].map((c, d) => a._parse(new Gt(n, c, n.path, d)));
|
|
13309
13329
|
return n.common.async ? Promise.all(o).then((c) => i(c)) : i(o);
|
|
13310
13330
|
}
|
|
13311
13331
|
min(e, t) {
|
|
@@ -13331,7 +13351,7 @@ hn.create = (r, e) => new hn({
|
|
|
13331
13351
|
valueType: r,
|
|
13332
13352
|
minSize: null,
|
|
13333
13353
|
maxSize: null,
|
|
13334
|
-
typeName:
|
|
13354
|
+
typeName: H.ZodSet,
|
|
13335
13355
|
...ce(e)
|
|
13336
13356
|
});
|
|
13337
13357
|
class En extends de {
|
|
@@ -13411,7 +13431,7 @@ class En extends de {
|
|
|
13411
13431
|
args(...e) {
|
|
13412
13432
|
return new En({
|
|
13413
13433
|
...this._def,
|
|
13414
|
-
args:
|
|
13434
|
+
args: Ht.create(e).rest(nn.create())
|
|
13415
13435
|
});
|
|
13416
13436
|
}
|
|
13417
13437
|
returns(e) {
|
|
@@ -13428,9 +13448,9 @@ class En extends de {
|
|
|
13428
13448
|
}
|
|
13429
13449
|
static create(e, t, n) {
|
|
13430
13450
|
return new En({
|
|
13431
|
-
args: e ||
|
|
13451
|
+
args: e || Ht.create([]).rest(nn.create()),
|
|
13432
13452
|
returns: t || nn.create(),
|
|
13433
|
-
typeName:
|
|
13453
|
+
typeName: H.ZodFunction,
|
|
13434
13454
|
...ce(n)
|
|
13435
13455
|
});
|
|
13436
13456
|
}
|
|
@@ -13446,7 +13466,7 @@ class $s extends de {
|
|
|
13446
13466
|
}
|
|
13447
13467
|
$s.create = (r, e) => new $s({
|
|
13448
13468
|
getter: r,
|
|
13449
|
-
typeName:
|
|
13469
|
+
typeName: H.ZodLazy,
|
|
13450
13470
|
...ce(e)
|
|
13451
13471
|
});
|
|
13452
13472
|
class Ls extends de {
|
|
@@ -13467,13 +13487,13 @@ class Ls extends de {
|
|
|
13467
13487
|
}
|
|
13468
13488
|
Ls.create = (r, e) => new Ls({
|
|
13469
13489
|
value: r,
|
|
13470
|
-
typeName:
|
|
13490
|
+
typeName: H.ZodLiteral,
|
|
13471
13491
|
...ce(e)
|
|
13472
13492
|
});
|
|
13473
13493
|
function Pd(r, e) {
|
|
13474
13494
|
return new Kr({
|
|
13475
13495
|
values: r,
|
|
13476
|
-
typeName:
|
|
13496
|
+
typeName: H.ZodEnum,
|
|
13477
13497
|
...ce(e)
|
|
13478
13498
|
});
|
|
13479
13499
|
}
|
|
@@ -13482,7 +13502,7 @@ class Kr extends de {
|
|
|
13482
13502
|
if (typeof e.data != "string") {
|
|
13483
13503
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
13484
13504
|
return K(t, {
|
|
13485
|
-
expected:
|
|
13505
|
+
expected: Te.joinValues(n),
|
|
13486
13506
|
received: t.parsedType,
|
|
13487
13507
|
code: j.invalid_type
|
|
13488
13508
|
}), ae;
|
|
@@ -13528,17 +13548,17 @@ class Kr extends de {
|
|
|
13528
13548
|
Kr.create = Pd;
|
|
13529
13549
|
class Bs extends de {
|
|
13530
13550
|
_parse(e) {
|
|
13531
|
-
const t =
|
|
13551
|
+
const t = Te.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
13532
13552
|
if (n.parsedType !== B.string && n.parsedType !== B.number) {
|
|
13533
|
-
const s =
|
|
13553
|
+
const s = Te.objectValues(t);
|
|
13534
13554
|
return K(n, {
|
|
13535
|
-
expected:
|
|
13555
|
+
expected: Te.joinValues(s),
|
|
13536
13556
|
received: n.parsedType,
|
|
13537
13557
|
code: j.invalid_type
|
|
13538
13558
|
}), ae;
|
|
13539
13559
|
}
|
|
13540
13560
|
if (t.indexOf(e.data) === -1) {
|
|
13541
|
-
const s =
|
|
13561
|
+
const s = Te.objectValues(t);
|
|
13542
13562
|
return K(n, {
|
|
13543
13563
|
received: n.data,
|
|
13544
13564
|
code: j.invalid_enum_value,
|
|
@@ -13553,7 +13573,7 @@ class Bs extends de {
|
|
|
13553
13573
|
}
|
|
13554
13574
|
Bs.create = (r, e) => new Bs({
|
|
13555
13575
|
values: r,
|
|
13556
|
-
typeName:
|
|
13576
|
+
typeName: H.ZodNativeEnum,
|
|
13557
13577
|
...ce(e)
|
|
13558
13578
|
});
|
|
13559
13579
|
class Ln extends de {
|
|
@@ -13577,7 +13597,7 @@ class Ln extends de {
|
|
|
13577
13597
|
}
|
|
13578
13598
|
Ln.create = (r, e) => new Ln({
|
|
13579
13599
|
type: r,
|
|
13580
|
-
typeName:
|
|
13600
|
+
typeName: H.ZodPromise,
|
|
13581
13601
|
...ce(e)
|
|
13582
13602
|
});
|
|
13583
13603
|
class Mt extends de {
|
|
@@ -13585,7 +13605,7 @@ class Mt extends de {
|
|
|
13585
13605
|
return this._def.schema;
|
|
13586
13606
|
}
|
|
13587
13607
|
sourceType() {
|
|
13588
|
-
return this._def.schema._def.typeName ===
|
|
13608
|
+
return this._def.schema._def.typeName === H.ZodEffects ? this._def.schema.sourceType() : this._def.schema;
|
|
13589
13609
|
}
|
|
13590
13610
|
_parse(e) {
|
|
13591
13611
|
const { status: t, ctx: n } = this._processInputParams(e), s = this._def.effect || null, a = {
|
|
@@ -13645,19 +13665,19 @@ class Mt extends de {
|
|
|
13645
13665
|
return { status: t.value, value: o };
|
|
13646
13666
|
} else
|
|
13647
13667
|
return this._def.schema._parseAsync({ data: n.data, path: n.path, parent: n }).then((i) => js(i) ? Promise.resolve(s.transform(i.value, a)).then((o) => ({ status: t.value, value: o })) : i);
|
|
13648
|
-
|
|
13668
|
+
Te.assertNever(s);
|
|
13649
13669
|
}
|
|
13650
13670
|
}
|
|
13651
13671
|
Mt.create = (r, e, t) => new Mt({
|
|
13652
13672
|
schema: r,
|
|
13653
|
-
typeName:
|
|
13673
|
+
typeName: H.ZodEffects,
|
|
13654
13674
|
effect: e,
|
|
13655
13675
|
...ce(t)
|
|
13656
13676
|
});
|
|
13657
13677
|
Mt.createWithPreprocess = (r, e, t) => new Mt({
|
|
13658
13678
|
schema: e,
|
|
13659
13679
|
effect: { type: "preprocess", transform: r },
|
|
13660
|
-
typeName:
|
|
13680
|
+
typeName: H.ZodEffects,
|
|
13661
13681
|
...ce(t)
|
|
13662
13682
|
});
|
|
13663
13683
|
class br extends de {
|
|
@@ -13670,7 +13690,7 @@ class br extends de {
|
|
|
13670
13690
|
}
|
|
13671
13691
|
br.create = (r, e) => new br({
|
|
13672
13692
|
innerType: r,
|
|
13673
|
-
typeName:
|
|
13693
|
+
typeName: H.ZodOptional,
|
|
13674
13694
|
...ce(e)
|
|
13675
13695
|
});
|
|
13676
13696
|
class fn extends de {
|
|
@@ -13683,7 +13703,7 @@ class fn extends de {
|
|
|
13683
13703
|
}
|
|
13684
13704
|
fn.create = (r, e) => new fn({
|
|
13685
13705
|
innerType: r,
|
|
13686
|
-
typeName:
|
|
13706
|
+
typeName: H.ZodNullable,
|
|
13687
13707
|
...ce(e)
|
|
13688
13708
|
});
|
|
13689
13709
|
class zs extends de {
|
|
@@ -13702,7 +13722,7 @@ class zs extends de {
|
|
|
13702
13722
|
}
|
|
13703
13723
|
zs.create = (r, e) => new zs({
|
|
13704
13724
|
innerType: r,
|
|
13705
|
-
typeName:
|
|
13725
|
+
typeName: H.ZodDefault,
|
|
13706
13726
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
13707
13727
|
...ce(e)
|
|
13708
13728
|
});
|
|
@@ -13745,7 +13765,7 @@ class vi extends de {
|
|
|
13745
13765
|
}
|
|
13746
13766
|
vi.create = (r, e) => new vi({
|
|
13747
13767
|
innerType: r,
|
|
13748
|
-
typeName:
|
|
13768
|
+
typeName: H.ZodCatch,
|
|
13749
13769
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
13750
13770
|
...ce(e)
|
|
13751
13771
|
});
|
|
@@ -13763,7 +13783,7 @@ class wi extends de {
|
|
|
13763
13783
|
}
|
|
13764
13784
|
}
|
|
13765
13785
|
wi.create = (r) => new wi({
|
|
13766
|
-
typeName:
|
|
13786
|
+
typeName: H.ZodNaN,
|
|
13767
13787
|
...ce(r)
|
|
13768
13788
|
});
|
|
13769
13789
|
const tv = Symbol("zod_brand");
|
|
@@ -13816,7 +13836,7 @@ class Xs extends de {
|
|
|
13816
13836
|
return new Xs({
|
|
13817
13837
|
in: e,
|
|
13818
13838
|
out: t,
|
|
13819
|
-
typeName:
|
|
13839
|
+
typeName: H.ZodPipeline
|
|
13820
13840
|
});
|
|
13821
13841
|
}
|
|
13822
13842
|
}
|
|
@@ -13828,7 +13848,7 @@ class _i extends de {
|
|
|
13828
13848
|
}
|
|
13829
13849
|
_i.create = (r, e) => new _i({
|
|
13830
13850
|
innerType: r,
|
|
13831
|
-
typeName:
|
|
13851
|
+
typeName: H.ZodReadonly,
|
|
13832
13852
|
...ce(e)
|
|
13833
13853
|
});
|
|
13834
13854
|
const Dd = (r, e = {}, t) => r ? $n.create().superRefine((n, s) => {
|
|
@@ -13840,13 +13860,13 @@ const Dd = (r, e = {}, t) => r ? $n.create().superRefine((n, s) => {
|
|
|
13840
13860
|
}) : $n.create(), rv = {
|
|
13841
13861
|
object: $e.lazycreate
|
|
13842
13862
|
};
|
|
13843
|
-
var
|
|
13863
|
+
var H;
|
|
13844
13864
|
(function(r) {
|
|
13845
13865
|
r.ZodString = "ZodString", r.ZodNumber = "ZodNumber", r.ZodNaN = "ZodNaN", r.ZodBigInt = "ZodBigInt", r.ZodBoolean = "ZodBoolean", r.ZodDate = "ZodDate", r.ZodSymbol = "ZodSymbol", r.ZodUndefined = "ZodUndefined", r.ZodNull = "ZodNull", r.ZodAny = "ZodAny", r.ZodUnknown = "ZodUnknown", r.ZodNever = "ZodNever", r.ZodVoid = "ZodVoid", r.ZodArray = "ZodArray", r.ZodObject = "ZodObject", r.ZodUnion = "ZodUnion", r.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", r.ZodIntersection = "ZodIntersection", r.ZodTuple = "ZodTuple", r.ZodRecord = "ZodRecord", r.ZodMap = "ZodMap", r.ZodSet = "ZodSet", r.ZodFunction = "ZodFunction", r.ZodLazy = "ZodLazy", r.ZodLiteral = "ZodLiteral", r.ZodEnum = "ZodEnum", r.ZodEffects = "ZodEffects", r.ZodNativeEnum = "ZodNativeEnum", r.ZodOptional = "ZodOptional", r.ZodNullable = "ZodNullable", r.ZodDefault = "ZodDefault", r.ZodCatch = "ZodCatch", r.ZodPromise = "ZodPromise", r.ZodBranded = "ZodBranded", r.ZodPipeline = "ZodPipeline", r.ZodReadonly = "ZodReadonly";
|
|
13846
|
-
})(
|
|
13866
|
+
})(H || (H = {}));
|
|
13847
13867
|
const nv = (r, e = {
|
|
13848
13868
|
message: `Input not instance of ${r.name}`
|
|
13849
|
-
}) => Dd((t) => t instanceof r, e), Md = At.create, $d = zr.create, sv = wi.create, av = Vr.create, Ld = Zs.create, iv = dn.create, ov = mi.create, cv = Rs.create, uv = Ps.create, lv = $n.create, dv = nn.create, hv =
|
|
13869
|
+
}) => Dd((t) => t instanceof r, e), Md = At.create, $d = zr.create, sv = wi.create, av = Vr.create, Ld = Zs.create, iv = dn.create, ov = mi.create, cv = Rs.create, uv = Ps.create, lv = $n.create, dv = nn.create, hv = xr.create, fv = yi.create, pv = Pt.create, mv = $e.create, yv = $e.strictCreate, gv = Us.create, vv = $i.create, wv = Ds.create, _v = Ht.create, bv = Ms.create, kv = gi.create, Tv = hn.create, xv = En.create, Ov = $s.create, Sv = Ls.create, Nv = Kr.create, Ev = Bs.create, Iv = Ln.create, Su = Mt.create, Av = br.create, Cv = fn.create, jv = Mt.createWithPreprocess, Zv = Xs.create, Rv = () => Md().optional(), Pv = () => $d().optional(), Uv = () => Ld().optional(), Dv = {
|
|
13850
13870
|
string: (r) => At.create({ ...r, coerce: !0 }),
|
|
13851
13871
|
number: (r) => zr.create({ ...r, coerce: !0 }),
|
|
13852
13872
|
boolean: (r) => Zs.create({
|
|
@@ -13873,7 +13893,7 @@ var yr = /* @__PURE__ */ Object.freeze({
|
|
|
13873
13893
|
isValid: js,
|
|
13874
13894
|
isAsync: pi,
|
|
13875
13895
|
get util() {
|
|
13876
|
-
return
|
|
13896
|
+
return Te;
|
|
13877
13897
|
},
|
|
13878
13898
|
get objectUtil() {
|
|
13879
13899
|
return jo;
|
|
@@ -13891,14 +13911,14 @@ var yr = /* @__PURE__ */ Object.freeze({
|
|
|
13891
13911
|
ZodNull: Ps,
|
|
13892
13912
|
ZodAny: $n,
|
|
13893
13913
|
ZodUnknown: nn,
|
|
13894
|
-
ZodNever:
|
|
13914
|
+
ZodNever: xr,
|
|
13895
13915
|
ZodVoid: yi,
|
|
13896
13916
|
ZodArray: Pt,
|
|
13897
13917
|
ZodObject: $e,
|
|
13898
13918
|
ZodUnion: Us,
|
|
13899
13919
|
ZodDiscriminatedUnion: $i,
|
|
13900
13920
|
ZodIntersection: Ds,
|
|
13901
|
-
ZodTuple:
|
|
13921
|
+
ZodTuple: Ht,
|
|
13902
13922
|
ZodRecord: Ms,
|
|
13903
13923
|
ZodMap: gi,
|
|
13904
13924
|
ZodSet: hn,
|
|
@@ -13924,7 +13944,7 @@ var yr = /* @__PURE__ */ Object.freeze({
|
|
|
13924
13944
|
ZodSchema: de,
|
|
13925
13945
|
late: rv,
|
|
13926
13946
|
get ZodFirstPartyTypeKind() {
|
|
13927
|
-
return
|
|
13947
|
+
return H;
|
|
13928
13948
|
},
|
|
13929
13949
|
coerce: Dv,
|
|
13930
13950
|
any: lv,
|
|
@@ -13935,7 +13955,7 @@ var yr = /* @__PURE__ */ Object.freeze({
|
|
|
13935
13955
|
discriminatedUnion: vv,
|
|
13936
13956
|
effect: Su,
|
|
13937
13957
|
enum: Nv,
|
|
13938
|
-
function:
|
|
13958
|
+
function: xv,
|
|
13939
13959
|
instanceof: nv,
|
|
13940
13960
|
intersection: wv,
|
|
13941
13961
|
lazy: Ov,
|
|
@@ -13956,7 +13976,7 @@ var yr = /* @__PURE__ */ Object.freeze({
|
|
|
13956
13976
|
preprocess: jv,
|
|
13957
13977
|
promise: Iv,
|
|
13958
13978
|
record: bv,
|
|
13959
|
-
set:
|
|
13979
|
+
set: Tv,
|
|
13960
13980
|
strictObject: yv,
|
|
13961
13981
|
string: Md,
|
|
13962
13982
|
symbol: ov,
|
|
@@ -14125,7 +14145,12 @@ class Vv extends Vd {
|
|
|
14125
14145
|
const a = this.endpoint.child(e), i = {};
|
|
14126
14146
|
i.method = "POST", i.body = this.encoder.encode(t ?? {});
|
|
14127
14147
|
const [, o] = await this.executeMiddleware(
|
|
14128
|
-
{
|
|
14148
|
+
{
|
|
14149
|
+
target: a.toString(),
|
|
14150
|
+
protocol: this.endpoint.protocol,
|
|
14151
|
+
params: {},
|
|
14152
|
+
role: "client"
|
|
14153
|
+
},
|
|
14129
14154
|
async (c) => {
|
|
14130
14155
|
const d = { ...c, params: {} };
|
|
14131
14156
|
i.headers = {
|
|
@@ -14219,11 +14244,11 @@ class Wv {
|
|
|
14219
14244
|
const t = this.encoder.decode(e.data, Fv), n = this.receiveCallbacksQueue.shift();
|
|
14220
14245
|
n != null ? n.resolve(t) : this.receiveDataQueue.push(t);
|
|
14221
14246
|
}, this.ws.onclose = (e) => {
|
|
14222
|
-
this.serverClosed =
|
|
14247
|
+
this.serverClosed = Hv(e) ? new Vs() : new bi();
|
|
14223
14248
|
};
|
|
14224
14249
|
}
|
|
14225
14250
|
}
|
|
14226
|
-
const qv = "freighterctx", Yv = 1e3, Jv = 1001,
|
|
14251
|
+
const qv = "freighterctx", Yv = 1e3, Jv = 1001, Gv = [Yv, Jv], Hv = (r) => Gv.includes(r.code), Fd = class Wd extends Vd {
|
|
14227
14252
|
/**
|
|
14228
14253
|
* @param encoder - The encoder to use for encoding messages and decoding
|
|
14229
14254
|
* responses.
|
|
@@ -14428,7 +14453,7 @@ let Jd = class {
|
|
|
14428
14453
|
* @returns The created channel.
|
|
14429
14454
|
*/
|
|
14430
14455
|
async create(e) {
|
|
14431
|
-
const t = !Array.isArray(e), n = this.sugar(await this.creator.create(
|
|
14456
|
+
const t = !Array.isArray(e), n = this.sugar(await this.creator.create(xe(e)));
|
|
14432
14457
|
return t ? n[0] : n;
|
|
14433
14458
|
}
|
|
14434
14459
|
/**
|
|
@@ -14488,7 +14513,7 @@ const $b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14488
14513
|
Channel: Yd,
|
|
14489
14514
|
Client: Jd,
|
|
14490
14515
|
ClusterRetriever: Xa,
|
|
14491
|
-
Creator:
|
|
14516
|
+
Creator: Ha,
|
|
14492
14517
|
analyzeParams: yn,
|
|
14493
14518
|
keyZ: Ys,
|
|
14494
14519
|
newPayload: Al,
|
|
@@ -14544,8 +14569,8 @@ let lw = class {
|
|
|
14544
14569
|
});
|
|
14545
14570
|
}
|
|
14546
14571
|
};
|
|
14547
|
-
const dw = ["disconnected", "connecting", "connected", "failed"],
|
|
14548
|
-
status:
|
|
14572
|
+
const dw = ["disconnected", "connecting", "connected", "failed"], Gd = u.enum(dw), Hd = u.object({
|
|
14573
|
+
status: Gd,
|
|
14549
14574
|
error: u.instanceof(Error).optional(),
|
|
14550
14575
|
message: u.string().optional(),
|
|
14551
14576
|
clusterKey: u.string()
|
|
@@ -14606,13 +14631,13 @@ const dw = ["disconnected", "connecting", "connected", "failed"], Hd = u.enum(dw
|
|
|
14606
14631
|
}, this.pollFrequency.milliseconds);
|
|
14607
14632
|
}
|
|
14608
14633
|
};
|
|
14609
|
-
h(On, "ENDPOINT", "/connectivity/check"), h(On, "DEFAULT", Au), h(On, "connectionStateZ",
|
|
14634
|
+
h(On, "ENDPOINT", "/connectivity/check"), h(On, "DEFAULT", Au), h(On, "connectionStateZ", Hd);
|
|
14610
14635
|
let Fs = On;
|
|
14611
14636
|
const Bb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14612
14637
|
__proto__: null,
|
|
14613
14638
|
Checker: Fs,
|
|
14614
|
-
state:
|
|
14615
|
-
status:
|
|
14639
|
+
state: Hd,
|
|
14640
|
+
status: Gd
|
|
14616
14641
|
}, Symbol.toStringTag, { value: "Module" })), Ir = class Ir extends Number {
|
|
14617
14642
|
};
|
|
14618
14643
|
h(Ir, "ABSOLUTE", 255), h(Ir, "DEFAULT", 1), h(Ir, "z", u.union([
|
|
@@ -14622,10 +14647,10 @@ h(Ir, "ABSOLUTE", 255), h(Ir, "DEFAULT", 1), h(Ir, "z", u.union([
|
|
|
14622
14647
|
]));
|
|
14623
14648
|
let pn = Ir;
|
|
14624
14649
|
const Cu = (r) => {
|
|
14625
|
-
const e =
|
|
14650
|
+
const e = xe(r);
|
|
14626
14651
|
return e.length === 0 ? null : typeof e[0] == "number" ? "key" : "name";
|
|
14627
14652
|
}, ju = (r, e) => {
|
|
14628
|
-
const t =
|
|
14653
|
+
const t = xe(r);
|
|
14629
14654
|
if (t.length === e.length)
|
|
14630
14655
|
return;
|
|
14631
14656
|
const n = Cu(r);
|
|
@@ -14645,7 +14670,7 @@ class gt {
|
|
|
14645
14670
|
return;
|
|
14646
14671
|
}
|
|
14647
14672
|
if (e instanceof Map) {
|
|
14648
|
-
e.forEach((s, a) => this.push(a, ...
|
|
14673
|
+
e.forEach((s, a) => this.push(a, ...xe(s)));
|
|
14649
14674
|
return;
|
|
14650
14675
|
}
|
|
14651
14676
|
if (typeof e == "object" && !Array.isArray(e)) {
|
|
@@ -14653,11 +14678,11 @@ class gt {
|
|
|
14653
14678
|
const s = e, a = s.series.map((i) => Qd(i));
|
|
14654
14679
|
ju(s.keys, a), s.keys.forEach((i, o) => this.push(i, a[o]));
|
|
14655
14680
|
} else
|
|
14656
|
-
Object.entries(e).forEach(([s, a]) => this.push(s, ...
|
|
14681
|
+
Object.entries(e).forEach(([s, a]) => this.push(s, ...xe(a)));
|
|
14657
14682
|
return;
|
|
14658
14683
|
}
|
|
14659
14684
|
if (Array.isArray(e) || ["string", "number"].includes(typeof e)) {
|
|
14660
|
-
const s =
|
|
14685
|
+
const s = xe(t), a = xe(e);
|
|
14661
14686
|
ju(a, s), s.forEach((i, o) => this.push(a[o], i));
|
|
14662
14687
|
return;
|
|
14663
14688
|
}
|
|
@@ -15212,7 +15237,7 @@ class Ac {
|
|
|
15212
15237
|
h(this, "ecd");
|
|
15213
15238
|
h(this, "observer");
|
|
15214
15239
|
h(this, "closePromise");
|
|
15215
|
-
this.states = /* @__PURE__ */ new Map(), this.ecd = new Il.JSONEncoderDecoder(), this.observer = new
|
|
15240
|
+
this.states = /* @__PURE__ */ new Map(), this.ecd = new Il.JSONEncoderDecoder(), this.observer = new Ga.Observer(), this.streamer = e, this.closePromise = this.stream();
|
|
15216
15241
|
}
|
|
15217
15242
|
subjects() {
|
|
15218
15243
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -15246,11 +15271,11 @@ const kw = u.object({
|
|
|
15246
15271
|
controlSubject: Ic.optional(),
|
|
15247
15272
|
keys: u.number().array(),
|
|
15248
15273
|
authorities: pn.z.array().optional()
|
|
15249
|
-
}),
|
|
15274
|
+
}), Tw = u.object({
|
|
15250
15275
|
command: u.nativeEnum(Cc),
|
|
15251
15276
|
config: kw.optional(),
|
|
15252
15277
|
frame: Bi.optional()
|
|
15253
|
-
}),
|
|
15278
|
+
}), xw = u.object({
|
|
15254
15279
|
ack: u.boolean(),
|
|
15255
15280
|
command: u.nativeEnum(Cc),
|
|
15256
15281
|
error: ea.optional().nullable()
|
|
@@ -15268,14 +15293,14 @@ let rh = (sn = class {
|
|
|
15268
15293
|
controlSubject: a,
|
|
15269
15294
|
start: i
|
|
15270
15295
|
}) {
|
|
15271
|
-
const o = await Sc.open(e, n), c = await t.stream(sn.ENDPOINT,
|
|
15296
|
+
const o = await Sc.open(e, n), c = await t.stream(sn.ENDPOINT, Tw, xw), d = new sn(c, o);
|
|
15272
15297
|
return await d.execute({
|
|
15273
15298
|
command: 0,
|
|
15274
15299
|
config: {
|
|
15275
15300
|
start: new Be(i),
|
|
15276
15301
|
keys: o.keys,
|
|
15277
15302
|
controlSubject: a,
|
|
15278
|
-
authorities:
|
|
15303
|
+
authorities: xe(s)
|
|
15279
15304
|
}
|
|
15280
15305
|
}), d;
|
|
15281
15306
|
}
|
|
@@ -15584,14 +15609,14 @@ let Rw = (In = class {
|
|
|
15584
15609
|
}
|
|
15585
15610
|
async retrieve(e, t = !0, n = !0) {
|
|
15586
15611
|
return await this.execute({
|
|
15587
|
-
ids:
|
|
15612
|
+
ids: xe(e).map((s) => new tt(s).payload),
|
|
15588
15613
|
includeFieldData: n,
|
|
15589
15614
|
includeSchema: t
|
|
15590
15615
|
});
|
|
15591
15616
|
}
|
|
15592
15617
|
async retrieveChildren(e, t = !0, n = !0) {
|
|
15593
15618
|
return await this.execute({
|
|
15594
|
-
ids:
|
|
15619
|
+
ids: xe(e).map((s) => new tt(s).payload),
|
|
15595
15620
|
children: !0,
|
|
15596
15621
|
includeSchema: t,
|
|
15597
15622
|
includeFieldData: n
|
|
@@ -15599,7 +15624,7 @@ let Rw = (In = class {
|
|
|
15599
15624
|
}
|
|
15600
15625
|
async retrieveParents(e, t = !0, n = !0) {
|
|
15601
15626
|
return await this.execute({
|
|
15602
|
-
ids:
|
|
15627
|
+
ids: xe(e).map((s) => new tt(s).payload),
|
|
15603
15628
|
parents: !0,
|
|
15604
15629
|
includeSchema: t,
|
|
15605
15630
|
includeFieldData: n
|
|
@@ -15656,7 +15681,7 @@ class Ki {
|
|
|
15656
15681
|
h(this, "streamer");
|
|
15657
15682
|
h(this, "retriever");
|
|
15658
15683
|
h(this, "closePromise");
|
|
15659
|
-
this.relationshipObs = new
|
|
15684
|
+
this.relationshipObs = new Ga.Observer(), this.relationships = this.relationshipObs, this.resourceObs = new Ga.Observer(), this.resources = this.resourceObs, this.retriever = t, this.streamer = e, this.closePromise = this.start();
|
|
15660
15685
|
}
|
|
15661
15686
|
async close() {
|
|
15662
15687
|
this.streamer.close(), await this.closePromise;
|
|
@@ -15798,7 +15823,7 @@ let dh = (An = class {
|
|
|
15798
15823
|
this.client = e;
|
|
15799
15824
|
}
|
|
15800
15825
|
async retrieve(e) {
|
|
15801
|
-
const t =
|
|
15826
|
+
const t = xe(e);
|
|
15802
15827
|
return await this.execute({ keys: t });
|
|
15803
15828
|
}
|
|
15804
15829
|
async retrieveFor(e) {
|
|
@@ -15845,7 +15870,7 @@ let fh = class {
|
|
|
15845
15870
|
return (await _e(
|
|
15846
15871
|
this.client,
|
|
15847
15872
|
$w,
|
|
15848
|
-
{ labels:
|
|
15873
|
+
{ labels: xe(e) },
|
|
15849
15874
|
Mw
|
|
15850
15875
|
)).labels;
|
|
15851
15876
|
}
|
|
@@ -15853,7 +15878,7 @@ let fh = class {
|
|
|
15853
15878
|
await _e(
|
|
15854
15879
|
this.client,
|
|
15855
15880
|
Lw,
|
|
15856
|
-
{ keys:
|
|
15881
|
+
{ keys: xe(e) },
|
|
15857
15882
|
co
|
|
15858
15883
|
);
|
|
15859
15884
|
}
|
|
@@ -15882,7 +15907,7 @@ class na {
|
|
|
15882
15907
|
h(this, "closePromise");
|
|
15883
15908
|
h(this, "deleteChannel");
|
|
15884
15909
|
h(this, "setChannel");
|
|
15885
|
-
this.streamer = e, this.decoder = t, this.base = new
|
|
15910
|
+
this.streamer = e, this.decoder = t, this.base = new Ga.Observer(), this.closePromise = this.stream(), this.deleteChannel = s, this.setChannel = n;
|
|
15886
15911
|
}
|
|
15887
15912
|
onChange(e) {
|
|
15888
15913
|
return this.base.onChange(e);
|
|
@@ -15962,7 +15987,7 @@ const Fw = (r, e) => r === "delete" ? e.toUUIDs().map((t) => ({
|
|
|
15962
15987
|
variant: r,
|
|
15963
15988
|
key: t.key,
|
|
15964
15989
|
value: t
|
|
15965
|
-
})),
|
|
15990
|
+
})), Gb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
15966
15991
|
__proto__: null,
|
|
15967
15992
|
Client: ph,
|
|
15968
15993
|
Retriever: dh,
|
|
@@ -15978,7 +16003,7 @@ const Fw = (r, e) => r === "delete" ? e.toUUIDs().map((t) => ({
|
|
|
15978
16003
|
}), mh = sa.extend({
|
|
15979
16004
|
key: u.string().uuid().optional()
|
|
15980
16005
|
}), jc = (r) => {
|
|
15981
|
-
const e =
|
|
16006
|
+
const e = xe(r);
|
|
15982
16007
|
if (e.length === 0)
|
|
15983
16008
|
throw new Error("Range params must not be empty");
|
|
15984
16009
|
const t = wt.safeParse(e[0]).success;
|
|
@@ -15990,7 +16015,7 @@ const Fw = (r, e) => r === "delete" ? e.toUUIDs().map((t) => ({
|
|
|
15990
16015
|
};
|
|
15991
16016
|
}, Ww = u.object({}), qw = u.object({
|
|
15992
16017
|
range: sa
|
|
15993
|
-
}), Yw = u.object({}), Jw = "/range/set-active",
|
|
16018
|
+
}), Yw = u.object({}), Jw = "/range/set-active", Gw = "/range/retrieve-active", Hw = "/range/clear-active";
|
|
15994
16019
|
class Xw {
|
|
15995
16020
|
constructor(e) {
|
|
15996
16021
|
h(this, "client");
|
|
@@ -16003,7 +16028,7 @@ class Xw {
|
|
|
16003
16028
|
}
|
|
16004
16029
|
async retrieveActive() {
|
|
16005
16030
|
const [e, t] = await this.client.send(
|
|
16006
|
-
|
|
16031
|
+
Gw,
|
|
16007
16032
|
{},
|
|
16008
16033
|
qw
|
|
16009
16034
|
);
|
|
@@ -16014,7 +16039,7 @@ class Xw {
|
|
|
16014
16039
|
return e.range;
|
|
16015
16040
|
}
|
|
16016
16041
|
async clearActive(e) {
|
|
16017
|
-
const [, t] = await this.client.send(
|
|
16042
|
+
const [, t] = await this.client.send(Hw, { range: e }, Yw);
|
|
16018
16043
|
if (t != null)
|
|
16019
16044
|
throw t;
|
|
16020
16045
|
}
|
|
@@ -16152,7 +16177,7 @@ const Ar = class Ar {
|
|
|
16152
16177
|
async get(e) {
|
|
16153
16178
|
const [t, n] = await this.client.send(
|
|
16154
16179
|
Ar.GET_ENDPOINT,
|
|
16155
|
-
{ range: this.rangeKey, keys:
|
|
16180
|
+
{ range: this.rangeKey, keys: xe(e) },
|
|
16156
16181
|
o_
|
|
16157
16182
|
);
|
|
16158
16183
|
if (n != null)
|
|
@@ -16174,7 +16199,7 @@ const Ar = class Ar {
|
|
|
16174
16199
|
await _e(
|
|
16175
16200
|
this.client,
|
|
16176
16201
|
Ar.DELETE_ENDPOINT,
|
|
16177
|
-
{ range: this.rangeKey, keys:
|
|
16202
|
+
{ range: this.rangeKey, keys: xe(e) },
|
|
16178
16203
|
u.unknown()
|
|
16179
16204
|
);
|
|
16180
16205
|
}
|
|
@@ -16234,14 +16259,14 @@ let gh = class {
|
|
|
16234
16259
|
this.frameClient = e, this.retriever = t, this.writer = n, this.unaryClient = s, this.channels = a, this.active = new Xw(s), this.labelClient = i;
|
|
16235
16260
|
}
|
|
16236
16261
|
async create(e) {
|
|
16237
|
-
const t = !Array.isArray(e), n = this.sugar(await this.writer.create(
|
|
16262
|
+
const t = !Array.isArray(e), n = this.sugar(await this.writer.create(xe(e)));
|
|
16238
16263
|
return t ? n[0] : n;
|
|
16239
16264
|
}
|
|
16240
16265
|
async rename(e, t) {
|
|
16241
16266
|
await this.writer.rename(e, t);
|
|
16242
16267
|
}
|
|
16243
16268
|
async delete(e) {
|
|
16244
|
-
await this.writer.delete(
|
|
16269
|
+
await this.writer.delete(xe(e));
|
|
16245
16270
|
}
|
|
16246
16271
|
async search(e) {
|
|
16247
16272
|
return this.sugar(await this.retriever.search(e));
|
|
@@ -16408,7 +16433,7 @@ let w_ = class {
|
|
|
16408
16433
|
this.client = e;
|
|
16409
16434
|
}
|
|
16410
16435
|
async retrieve(e) {
|
|
16411
|
-
const t =
|
|
16436
|
+
const t = xe(e);
|
|
16412
16437
|
return await this.execute({ keys: t });
|
|
16413
16438
|
}
|
|
16414
16439
|
async execute(e) {
|
|
@@ -16441,7 +16466,7 @@ u.object({
|
|
|
16441
16466
|
data: u.string()
|
|
16442
16467
|
});
|
|
16443
16468
|
u.object({});
|
|
16444
|
-
const
|
|
16469
|
+
const T_ = "/workspace/lineplot/create", x_ = "/workspace/lineplot/delete", O_ = "/workspace/lineplot/rename", S_ = "/workspace/lineplot/set-data";
|
|
16445
16470
|
let N_ = class {
|
|
16446
16471
|
constructor(e) {
|
|
16447
16472
|
h(this, "client");
|
|
@@ -16451,16 +16476,16 @@ let N_ = class {
|
|
|
16451
16476
|
const n = { ...t, data: JSON.stringify(t.data) };
|
|
16452
16477
|
return (await _e(
|
|
16453
16478
|
this.client,
|
|
16454
|
-
|
|
16479
|
+
T_,
|
|
16455
16480
|
{ workspace: e, linePlots: [n] },
|
|
16456
16481
|
b_
|
|
16457
16482
|
)).linePlots[0];
|
|
16458
16483
|
}
|
|
16459
16484
|
async delete(e) {
|
|
16460
|
-
const t =
|
|
16485
|
+
const t = xe(e);
|
|
16461
16486
|
await _e(
|
|
16462
16487
|
this.client,
|
|
16463
|
-
|
|
16488
|
+
x_,
|
|
16464
16489
|
{ keys: t },
|
|
16465
16490
|
k_
|
|
16466
16491
|
);
|
|
@@ -16528,7 +16553,7 @@ let C_ = class {
|
|
|
16528
16553
|
this.client = e;
|
|
16529
16554
|
}
|
|
16530
16555
|
async retrieve(e) {
|
|
16531
|
-
const t =
|
|
16556
|
+
const t = xe(e);
|
|
16532
16557
|
return await this.execute({ keys: t });
|
|
16533
16558
|
}
|
|
16534
16559
|
async execute(e) {
|
|
@@ -16592,7 +16617,7 @@ let B_ = class {
|
|
|
16592
16617
|
)).pid;
|
|
16593
16618
|
}
|
|
16594
16619
|
async delete(e) {
|
|
16595
|
-
const t =
|
|
16620
|
+
const t = xe(e);
|
|
16596
16621
|
await _e(
|
|
16597
16622
|
this.client,
|
|
16598
16623
|
D_,
|
|
@@ -16659,7 +16684,7 @@ let K_ = (Cn = class {
|
|
|
16659
16684
|
this.client = e;
|
|
16660
16685
|
}
|
|
16661
16686
|
async retrieve(e) {
|
|
16662
|
-
const t =
|
|
16687
|
+
const t = xe(e);
|
|
16663
16688
|
return await this.execute({ keys: t });
|
|
16664
16689
|
}
|
|
16665
16690
|
async retrieveByAuthor(e) {
|
|
@@ -16699,20 +16724,20 @@ u.object({
|
|
|
16699
16724
|
key: Wr,
|
|
16700
16725
|
layout: u.string()
|
|
16701
16726
|
});
|
|
16702
|
-
const J_ = u.object({}),
|
|
16727
|
+
const J_ = u.object({}), G_ = "/workspace/create", H_ = "/workspace/delete", X_ = "/workspace/rename", Q_ = "/workspace/set-layout";
|
|
16703
16728
|
let eb = class {
|
|
16704
16729
|
constructor(e) {
|
|
16705
16730
|
h(this, "client");
|
|
16706
16731
|
this.client = e;
|
|
16707
16732
|
}
|
|
16708
16733
|
async create(e) {
|
|
16709
|
-
const t =
|
|
16734
|
+
const t = xe(e).map((s) => ({
|
|
16710
16735
|
...s,
|
|
16711
16736
|
layout: JSON.stringify(s.layout)
|
|
16712
16737
|
}));
|
|
16713
16738
|
return (await _e(
|
|
16714
16739
|
this.client,
|
|
16715
|
-
|
|
16740
|
+
G_,
|
|
16716
16741
|
{ workspaces: t },
|
|
16717
16742
|
W_
|
|
16718
16743
|
)).workspaces;
|
|
@@ -16720,8 +16745,8 @@ let eb = class {
|
|
|
16720
16745
|
async delete(e) {
|
|
16721
16746
|
await _e(
|
|
16722
16747
|
this.client,
|
|
16723
|
-
|
|
16724
|
-
{ keys:
|
|
16748
|
+
H_,
|
|
16749
|
+
{ keys: xe(e) },
|
|
16725
16750
|
q_
|
|
16726
16751
|
);
|
|
16727
16752
|
}
|
|
@@ -16841,7 +16866,7 @@ u.object({
|
|
|
16841
16866
|
keys: aa.array()
|
|
16842
16867
|
});
|
|
16843
16868
|
const ab = u.object({});
|
|
16844
|
-
let
|
|
16869
|
+
let Th = class {
|
|
16845
16870
|
constructor(e) {
|
|
16846
16871
|
h(this, "client");
|
|
16847
16872
|
this.client = e;
|
|
@@ -16870,7 +16895,7 @@ u.object({
|
|
|
16870
16895
|
const ob = u.object({
|
|
16871
16896
|
racks: Uc.array()
|
|
16872
16897
|
});
|
|
16873
|
-
let
|
|
16898
|
+
let xh = class {
|
|
16874
16899
|
constructor(e) {
|
|
16875
16900
|
h(this, "client");
|
|
16876
16901
|
this.client = e;
|
|
@@ -16888,8 +16913,8 @@ const cb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
16888
16913
|
__proto__: null,
|
|
16889
16914
|
Client: bh,
|
|
16890
16915
|
Rack: kh,
|
|
16891
|
-
Retriever:
|
|
16892
|
-
Writer:
|
|
16916
|
+
Retriever: xh,
|
|
16917
|
+
Writer: Th
|
|
16893
16918
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
16894
16919
|
let Oh = class {
|
|
16895
16920
|
constructor(e, t, n) {
|
|
@@ -16923,7 +16948,7 @@ let db = class {
|
|
|
16923
16948
|
return (await this.writer.create([e]))[0];
|
|
16924
16949
|
}
|
|
16925
16950
|
async retrieve(e) {
|
|
16926
|
-
const t = await this.retriever.retrieve(
|
|
16951
|
+
const t = await this.retriever.retrieve(xe(e));
|
|
16927
16952
|
return Array.isArray(e) ? t : t[0];
|
|
16928
16953
|
}
|
|
16929
16954
|
async delete(e) {
|
|
@@ -16997,7 +17022,7 @@ class kb {
|
|
|
16997
17022
|
async retrieve(e) {
|
|
16998
17023
|
const t = {};
|
|
16999
17024
|
let n = !0;
|
|
17000
|
-
typeof e == "number" ? t.rack = e : typeof e == "string" ? (n = !1, t.keys = [e]) : t.keys =
|
|
17025
|
+
typeof e == "number" ? t.rack = e : typeof e == "string" ? (n = !1, t.keys = [e]) : t.keys = xe(e);
|
|
17001
17026
|
const s = await this.retriever.retrieve(t);
|
|
17002
17027
|
return n ? s : s[0];
|
|
17003
17028
|
}
|
|
@@ -17007,7 +17032,7 @@ const Mc = u.bigint().or(u.number()).transform((r) => r.toString()), $c = u.obje
|
|
|
17007
17032
|
name: u.string(),
|
|
17008
17033
|
type: u.string(),
|
|
17009
17034
|
config: u.record(u.unknown()).or(u.string().transform((r) => JSON.parse(r)))
|
|
17010
|
-
}),
|
|
17035
|
+
}), Tb = $c.omit({ key: !0 }).extend({
|
|
17011
17036
|
key: Mc.transform((r) => r.toString()).optional(),
|
|
17012
17037
|
config: u.unknown().transform((r) => JSON.stringify(r))
|
|
17013
17038
|
});
|
|
@@ -17015,7 +17040,7 @@ u.object({
|
|
|
17015
17040
|
rack: aa.optional(),
|
|
17016
17041
|
keys: u.string().array().optional()
|
|
17017
17042
|
});
|
|
17018
|
-
const
|
|
17043
|
+
const xb = u.object({
|
|
17019
17044
|
tasks: $c.array()
|
|
17020
17045
|
}), Ob = "/hardware/task/retrieve";
|
|
17021
17046
|
class Sb {
|
|
@@ -17028,13 +17053,13 @@ class Sb {
|
|
|
17028
17053
|
this.client,
|
|
17029
17054
|
Ob,
|
|
17030
17055
|
e,
|
|
17031
|
-
|
|
17056
|
+
xb
|
|
17032
17057
|
)).tasks;
|
|
17033
17058
|
}
|
|
17034
17059
|
}
|
|
17035
17060
|
const Nb = "/hardware/task/create", Eb = "/hardware/task/delete";
|
|
17036
17061
|
u.object({
|
|
17037
|
-
tasks:
|
|
17062
|
+
tasks: Tb.array()
|
|
17038
17063
|
});
|
|
17039
17064
|
const Ib = u.object({
|
|
17040
17065
|
tasks: $c.array()
|
|
@@ -17111,7 +17136,7 @@ class Zb {
|
|
|
17111
17136
|
}), this.transport.use(this.auth.middleware()));
|
|
17112
17137
|
const c = new jl(
|
|
17113
17138
|
new Xa(this.transport.unary)
|
|
17114
|
-
), d = new
|
|
17139
|
+
), d = new Ha(this.transport.unary);
|
|
17115
17140
|
this.telem = new nh(this.transport.stream, c), this.channels = new Jd(this.telem, c, d), this.connectivity = new Fs(
|
|
17116
17141
|
this.transport.unary,
|
|
17117
17142
|
i,
|
|
@@ -17131,8 +17156,8 @@ class Zb {
|
|
|
17131
17156
|
new bb(this.transport.unary),
|
|
17132
17157
|
this.telem
|
|
17133
17158
|
), Q = new Sb(this.transport.unary), Ze = new Cb(this.transport.unary), ee = new kb(Q, Ze), Xt = new bh(
|
|
17134
|
-
new Th(this.transport.unary),
|
|
17135
17159
|
new xh(this.transport.unary),
|
|
17160
|
+
new Th(this.transport.unary),
|
|
17136
17161
|
this.telem,
|
|
17137
17162
|
Ze,
|
|
17138
17163
|
Q
|
|
@@ -17178,7 +17203,7 @@ export {
|
|
|
17178
17203
|
v0 as control,
|
|
17179
17204
|
Vb as framer,
|
|
17180
17205
|
p0 as hardware,
|
|
17181
|
-
|
|
17206
|
+
Gb as label,
|
|
17182
17207
|
qb as ontology,
|
|
17183
17208
|
e0 as ranger,
|
|
17184
17209
|
jb as synnaxPropsZ,
|