@camstack/addon-benchmark 1.2.250 → 1.2.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MotionZonesSettings-DqnKtevR.mjs → MotionZonesSettings-CJplyzsz.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-DCMpoTN4.mjs → PrivacyMaskSettings-CVBFqhqC.mjs} +4 -4
- package/dist/{SceneMonitorEditor-C4PZe7lr.mjs → SceneMonitorEditor-DJTBsk8J.mjs} +3 -3
- package/dist/_stub.js +853 -594
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-B6tgEmwk.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CFbqsG4t.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DcG5Yr9p.mjs +26 -0
- package/dist/addon-benchmark.css +1 -1
- package/dist/{hostInit-Cyv1vBjr.mjs → hostInit-tXcxE3Sl.mjs} +3 -3
- package/dist/{player-overlays-DdR56YyU.mjs → player-overlays-EyjHlzKg.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-4M0KxhkZ.mjs → responsive-YqIRX2l3.mjs} +1 -1
- package/dist/{scene-monitor-copy-D_81Utlt.mjs → scene-monitor-copy-CGLUFLzd.mjs} +1 -1
- package/dist/{square-CK75Hb5l.mjs → square-DmRZqxtE.mjs} +1 -1
- package/dist/{trash-2-adgEYArE.mjs → trash-2-Cmypm2Bu.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-BOkS1mwS.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-BqC-Jcoq.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-GjG3b0e8.mjs +0 -26
package/dist/_stub.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./virtualExposes-erbhyesj.mjs";
|
|
2
|
-
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-
|
|
2
|
+
import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-BqC-Jcoq.mjs";
|
|
3
3
|
import { S as e, _ as t, a as n, b as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, p as f, r as p, t as m, u as h, v as g, y as _ } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-BSWOsmOl.mjs";
|
|
4
4
|
import { n as v, r as y, t as b } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Dh0XkFx5.mjs";
|
|
5
5
|
import { n as x, r as S, t as C } from "./ui-text-D2tfpVFx.mjs";
|
|
6
|
-
import { S as w, T, _ as E, a as ee, b as D, d as te, f as O, g as ne, h as k, i as A, l as re, m as ie, n as j, o as ae, p as oe, r as se, s as ce, t as M, u as N, v as P, w as le, x as F, y as I } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
7
|
-
import { a as ue, c as de, d as fe, f as pe, i as me, m as L, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe } from "./responsive-
|
|
8
|
-
import { d as Se, l as Ce, u as we } from "./scene-monitor-copy-
|
|
9
|
-
import { i as Te, r as Ee } from "./player-overlays-
|
|
10
|
-
import { r as De, t as Oe } from "./square-
|
|
11
|
-
import { t as ke } from "./trash-2-
|
|
6
|
+
import { S as w, T, _ as E, a as ee, b as D, d as te, f as O, g as ne, h as k, i as A, l as re, m as ie, n as j, o as ae, p as oe, r as se, s as ce, t as M, u as N, v as P, w as le, x as F, y as I } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DcG5Yr9p.mjs";
|
|
7
|
+
import { a as ue, c as de, d as fe, f as pe, i as me, m as L, n as he, o as ge, p as _e, r as ve, s as ye, t as be, u as xe } from "./responsive-YqIRX2l3.mjs";
|
|
8
|
+
import { d as Se, l as Ce, u as we } from "./scene-monitor-copy-CGLUFLzd.mjs";
|
|
9
|
+
import { i as Te, r as Ee } from "./player-overlays-EyjHlzKg.mjs";
|
|
10
|
+
import { r as De, t as Oe } from "./square-DmRZqxtE.mjs";
|
|
11
|
+
import { t as ke } from "./trash-2-Cmypm2Bu.mjs";
|
|
12
12
|
import { t as Ae } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-CQ0VjvSn.mjs";
|
|
13
13
|
import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_2_dom__loadShare__.js-NtWzzhEn.mjs";
|
|
14
14
|
import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-wTD-CVC7.mjs";
|
|
@@ -5029,7 +5029,7 @@ function ma({ icon: e, title: t, description: n, action: r, className: i }) {
|
|
|
5029
5029
|
}
|
|
5030
5030
|
//#endregion
|
|
5031
5031
|
//#region ../ui-library/src/primitives/card.tsx
|
|
5032
|
-
e(), e(), _e("camstack:vod-playback", {
|
|
5032
|
+
e(), e(), e(), e(), e(), _e("camstack:vod-playback", {
|
|
5033
5033
|
request: null,
|
|
5034
5034
|
play: () => {},
|
|
5035
5035
|
clear: () => {}
|
|
@@ -5180,7 +5180,7 @@ function Ta({ className: e, ...t }) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
//#endregion
|
|
5182
5182
|
//#region ../../node_modules/qrcode.react/lib/esm/index.js
|
|
5183
|
-
e(), e(), e(), e(), e(), e(), e(), n(() => import("./MotionZonesSettings-
|
|
5183
|
+
e(), e(), e(), e(), e(), e(), e(), n(() => import("./MotionZonesSettings-CJplyzsz.mjs").then((e) => ({ default: e.MotionZonesSettings }))), n(() => import("./PrivacyMaskSettings-CVBFqhqC.mjs").then((e) => ({ default: e.PrivacyMaskSettings }))), e(), e();
|
|
5184
5184
|
var Ea = Object.defineProperty, Da = Object.getOwnPropertySymbols, Oa = Object.prototype.hasOwnProperty, ka = Object.prototype.propertyIsEnumerable, Aa = (e, t, n) => t in e ? Ea(e, t, {
|
|
5185
5185
|
enumerable: !0,
|
|
5186
5186
|
configurable: !0,
|
|
@@ -17195,7 +17195,54 @@ var Hg = /*@__PURE__*/ K("$ZodUnion", (e, t) => {
|
|
|
17195
17195
|
}
|
|
17196
17196
|
return a ? Promise.all(o).then((t) => Vg(t, r, e, i)) : Vg(o, r, e, i);
|
|
17197
17197
|
};
|
|
17198
|
-
}), Ug = /*@__PURE__*/ K("$
|
|
17198
|
+
}), Ug = /*@__PURE__*/ K("$ZodDiscriminatedUnion", (e, t) => {
|
|
17199
|
+
t.inclusive = !1, Hg.init(e, t);
|
|
17200
|
+
let n = e._zod.parse;
|
|
17201
|
+
q(e._zod, "propValues", () => {
|
|
17202
|
+
let e = {};
|
|
17203
|
+
for (let n of t.options) {
|
|
17204
|
+
let r = n._zod.propValues;
|
|
17205
|
+
if (!r || Object.keys(r).length === 0) throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);
|
|
17206
|
+
for (let [t, n] of Object.entries(r)) {
|
|
17207
|
+
e[t] || (e[t] = /* @__PURE__ */ new Set());
|
|
17208
|
+
for (let r of n) e[t].add(r);
|
|
17209
|
+
}
|
|
17210
|
+
}
|
|
17211
|
+
return e;
|
|
17212
|
+
});
|
|
17213
|
+
let r = cm(() => {
|
|
17214
|
+
let e = t.options, n = /* @__PURE__ */ new Map();
|
|
17215
|
+
for (let r of e) {
|
|
17216
|
+
let e = r._zod.propValues?.[t.discriminator];
|
|
17217
|
+
if (!e || e.size === 0) throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);
|
|
17218
|
+
for (let t of e) {
|
|
17219
|
+
if (n.has(t)) throw Error(`Duplicate discriminator value "${String(t)}"`);
|
|
17220
|
+
n.set(t, r);
|
|
17221
|
+
}
|
|
17222
|
+
}
|
|
17223
|
+
return n;
|
|
17224
|
+
});
|
|
17225
|
+
e._zod.parse = (i, a) => {
|
|
17226
|
+
let o = i.value;
|
|
17227
|
+
if (!vm(o)) return i.issues.push({
|
|
17228
|
+
code: "invalid_type",
|
|
17229
|
+
expected: "object",
|
|
17230
|
+
input: o,
|
|
17231
|
+
inst: e
|
|
17232
|
+
}), i;
|
|
17233
|
+
let s = r.value.get(o?.[t.discriminator]);
|
|
17234
|
+
return s ? s._zod.run(i, a) : t.unionFallback || a.direction === "backward" ? n(i, a) : (i.issues.push({
|
|
17235
|
+
code: "invalid_union",
|
|
17236
|
+
errors: [],
|
|
17237
|
+
note: "No matching discriminator",
|
|
17238
|
+
discriminator: t.discriminator,
|
|
17239
|
+
options: Array.from(r.value.keys()),
|
|
17240
|
+
input: o,
|
|
17241
|
+
path: [t.discriminator],
|
|
17242
|
+
inst: e
|
|
17243
|
+
}), i);
|
|
17244
|
+
};
|
|
17245
|
+
}), Wg = /*@__PURE__*/ K("$ZodIntersection", (e, t) => {
|
|
17199
17246
|
Y.init(e, t), e._zod.parse = (e, n) => {
|
|
17200
17247
|
let r = e.value, i = t.left._zod.run({
|
|
17201
17248
|
value: r,
|
|
@@ -17204,10 +17251,10 @@ var Hg = /*@__PURE__*/ K("$ZodUnion", (e, t) => {
|
|
|
17204
17251
|
value: r,
|
|
17205
17252
|
issues: []
|
|
17206
17253
|
}, n);
|
|
17207
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
17254
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Kg(e, t, n)) : Kg(e, i, a);
|
|
17208
17255
|
};
|
|
17209
17256
|
});
|
|
17210
|
-
function
|
|
17257
|
+
function Gg(e, t) {
|
|
17211
17258
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
17212
17259
|
valid: !0,
|
|
17213
17260
|
data: e
|
|
@@ -17218,7 +17265,7 @@ function Wg(e, t) {
|
|
|
17218
17265
|
...t
|
|
17219
17266
|
};
|
|
17220
17267
|
for (let n of r) {
|
|
17221
|
-
let r =
|
|
17268
|
+
let r = Gg(e[n], t[n]);
|
|
17222
17269
|
if (!r.valid) return {
|
|
17223
17270
|
valid: !1,
|
|
17224
17271
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -17237,7 +17284,7 @@ function Wg(e, t) {
|
|
|
17237
17284
|
};
|
|
17238
17285
|
let n = [];
|
|
17239
17286
|
for (let r = 0; r < e.length; r++) {
|
|
17240
|
-
let i = e[r], a = t[r], o =
|
|
17287
|
+
let i = e[r], a = t[r], o = Gg(i, a);
|
|
17241
17288
|
if (!o.valid) return {
|
|
17242
17289
|
valid: !1,
|
|
17243
17290
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -17254,7 +17301,7 @@ function Wg(e, t) {
|
|
|
17254
17301
|
mergeErrorPath: []
|
|
17255
17302
|
};
|
|
17256
17303
|
}
|
|
17257
|
-
function
|
|
17304
|
+
function Kg(e, t, n) {
|
|
17258
17305
|
let r = /* @__PURE__ */ new Map(), i;
|
|
17259
17306
|
for (let n of t.issues) if (n.code === "unrecognized_keys") {
|
|
17260
17307
|
i ??= n;
|
|
@@ -17267,11 +17314,97 @@ function Gg(e, t, n) {
|
|
|
17267
17314
|
...i,
|
|
17268
17315
|
keys: a
|
|
17269
17316
|
}), Pm(e)) return e;
|
|
17270
|
-
let o =
|
|
17317
|
+
let o = Gg(t.value, n.value);
|
|
17271
17318
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
17272
17319
|
return e.value = o.data, e;
|
|
17273
17320
|
}
|
|
17274
|
-
var
|
|
17321
|
+
var qg = /*@__PURE__*/ K("$ZodRecord", (e, t) => {
|
|
17322
|
+
Y.init(e, t), e._zod.parse = (n, r) => {
|
|
17323
|
+
let i = n.value;
|
|
17324
|
+
if (!bm(i)) return n.issues.push({
|
|
17325
|
+
expected: "record",
|
|
17326
|
+
code: "invalid_type",
|
|
17327
|
+
input: i,
|
|
17328
|
+
inst: e
|
|
17329
|
+
}), n;
|
|
17330
|
+
let a = [], o = t.keyType._zod.values;
|
|
17331
|
+
if (o) {
|
|
17332
|
+
n.value = {};
|
|
17333
|
+
let s = /* @__PURE__ */ new Set();
|
|
17334
|
+
for (let c of o) if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
|
|
17335
|
+
s.add(typeof c == "number" ? c.toString() : c);
|
|
17336
|
+
let o = t.keyType._zod.run({
|
|
17337
|
+
value: c,
|
|
17338
|
+
issues: []
|
|
17339
|
+
}, r);
|
|
17340
|
+
if (o instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
17341
|
+
if (o.issues.length) {
|
|
17342
|
+
n.issues.push({
|
|
17343
|
+
code: "invalid_key",
|
|
17344
|
+
origin: "record",
|
|
17345
|
+
issues: o.issues.map((e) => Rm(e, r, am())),
|
|
17346
|
+
input: c,
|
|
17347
|
+
path: [c],
|
|
17348
|
+
inst: e
|
|
17349
|
+
});
|
|
17350
|
+
continue;
|
|
17351
|
+
}
|
|
17352
|
+
let l = o.value, u = t.valueType._zod.run({
|
|
17353
|
+
value: i[c],
|
|
17354
|
+
issues: []
|
|
17355
|
+
}, r);
|
|
17356
|
+
u instanceof Promise ? a.push(u.then((e) => {
|
|
17357
|
+
e.issues.length && n.issues.push(...Im(c, e.issues)), n.value[l] = e.value;
|
|
17358
|
+
})) : (u.issues.length && n.issues.push(...Im(c, u.issues)), n.value[l] = u.value);
|
|
17359
|
+
}
|
|
17360
|
+
let c;
|
|
17361
|
+
for (let e in i) s.has(e) || (c ??= [], c.push(e));
|
|
17362
|
+
c && c.length > 0 && n.issues.push({
|
|
17363
|
+
code: "unrecognized_keys",
|
|
17364
|
+
input: i,
|
|
17365
|
+
inst: e,
|
|
17366
|
+
keys: c
|
|
17367
|
+
});
|
|
17368
|
+
} else {
|
|
17369
|
+
n.value = {};
|
|
17370
|
+
for (let o of Reflect.ownKeys(i)) {
|
|
17371
|
+
if (o === "__proto__" || !Object.prototype.propertyIsEnumerable.call(i, o)) continue;
|
|
17372
|
+
let s = t.keyType._zod.run({
|
|
17373
|
+
value: o,
|
|
17374
|
+
issues: []
|
|
17375
|
+
}, r);
|
|
17376
|
+
if (s instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
17377
|
+
if (typeof o == "string" && Nh.test(o) && s.issues.length) {
|
|
17378
|
+
let e = t.keyType._zod.run({
|
|
17379
|
+
value: Number(o),
|
|
17380
|
+
issues: []
|
|
17381
|
+
}, r);
|
|
17382
|
+
if (e instanceof Promise) throw Error("Async schemas not supported in object keys currently");
|
|
17383
|
+
e.issues.length === 0 && (s = e);
|
|
17384
|
+
}
|
|
17385
|
+
if (s.issues.length) {
|
|
17386
|
+
t.mode === "loose" ? n.value[o] = i[o] : n.issues.push({
|
|
17387
|
+
code: "invalid_key",
|
|
17388
|
+
origin: "record",
|
|
17389
|
+
issues: s.issues.map((e) => Rm(e, r, am())),
|
|
17390
|
+
input: o,
|
|
17391
|
+
path: [o],
|
|
17392
|
+
inst: e
|
|
17393
|
+
});
|
|
17394
|
+
continue;
|
|
17395
|
+
}
|
|
17396
|
+
let c = t.valueType._zod.run({
|
|
17397
|
+
value: i[o],
|
|
17398
|
+
issues: []
|
|
17399
|
+
}, r);
|
|
17400
|
+
c instanceof Promise ? a.push(c.then((e) => {
|
|
17401
|
+
e.issues.length && n.issues.push(...Im(o, e.issues)), n.value[s.value] = e.value;
|
|
17402
|
+
})) : (c.issues.length && n.issues.push(...Im(o, c.issues)), n.value[s.value] = c.value);
|
|
17403
|
+
}
|
|
17404
|
+
}
|
|
17405
|
+
return a.length ? Promise.all(a).then(() => n) : n;
|
|
17406
|
+
};
|
|
17407
|
+
}), Jg = /*@__PURE__*/ K("$ZodEnum", (e, t) => {
|
|
17275
17408
|
Y.init(e, t);
|
|
17276
17409
|
let n = om(t.entries), r = new Set(n);
|
|
17277
17410
|
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => Sm.has(typeof e)).map((e) => typeof e == "string" ? Cm(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
@@ -17283,7 +17416,19 @@ var Kg = /*@__PURE__*/ K("$ZodEnum", (e, t) => {
|
|
|
17283
17416
|
inst: e
|
|
17284
17417
|
}), t;
|
|
17285
17418
|
};
|
|
17286
|
-
}),
|
|
17419
|
+
}), Yg = /*@__PURE__*/ K("$ZodLiteral", (e, t) => {
|
|
17420
|
+
if (Y.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
|
|
17421
|
+
let n = new Set(t.values);
|
|
17422
|
+
e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? Cm(e) : e ? Cm(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
|
|
17423
|
+
let a = r.value;
|
|
17424
|
+
return n.has(a) || r.issues.push({
|
|
17425
|
+
code: "invalid_value",
|
|
17426
|
+
values: t.values,
|
|
17427
|
+
input: a,
|
|
17428
|
+
inst: e
|
|
17429
|
+
}), r;
|
|
17430
|
+
};
|
|
17431
|
+
}), Xg = /*@__PURE__*/ K("$ZodTransform", (e, t) => {
|
|
17287
17432
|
Y.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
17288
17433
|
if (r.direction === "backward") throw new rm(e.constructor.name);
|
|
17289
17434
|
let i = t.transform(n.value, n);
|
|
@@ -17292,53 +17437,53 @@ var Kg = /*@__PURE__*/ K("$ZodEnum", (e, t) => {
|
|
|
17292
17437
|
return n.value = i, n.fallback = !0, n;
|
|
17293
17438
|
};
|
|
17294
17439
|
});
|
|
17295
|
-
function
|
|
17440
|
+
function Zg(e, t) {
|
|
17296
17441
|
return t === void 0 && (e.issues.length || e.fallback) ? {
|
|
17297
17442
|
issues: [],
|
|
17298
17443
|
value: void 0
|
|
17299
17444
|
} : e;
|
|
17300
17445
|
}
|
|
17301
|
-
var
|
|
17446
|
+
var Qg = /*@__PURE__*/ K("$ZodOptional", (e, t) => {
|
|
17302
17447
|
Y.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", q(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), q(e._zod, "pattern", () => {
|
|
17303
17448
|
let e = t.innerType._zod.pattern;
|
|
17304
17449
|
return e ? RegExp(`^(${um(e.source)})?$`) : void 0;
|
|
17305
17450
|
}), e._zod.parse = (e, n) => {
|
|
17306
17451
|
if (t.innerType._zod.optin === "optional") {
|
|
17307
17452
|
let r = e.value, i = t.innerType._zod.run(e, n);
|
|
17308
|
-
return i instanceof Promise ? i.then((e) =>
|
|
17453
|
+
return i instanceof Promise ? i.then((e) => Zg(e, r)) : Zg(i, r);
|
|
17309
17454
|
}
|
|
17310
17455
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
17311
17456
|
};
|
|
17312
|
-
}),
|
|
17313
|
-
|
|
17314
|
-
}),
|
|
17457
|
+
}), $g = /*@__PURE__*/ K("$ZodExactOptional", (e, t) => {
|
|
17458
|
+
Qg.init(e, t), q(e._zod, "values", () => t.innerType._zod.values), q(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
17459
|
+
}), e_ = /*@__PURE__*/ K("$ZodNullable", (e, t) => {
|
|
17315
17460
|
Y.init(e, t), q(e._zod, "optin", () => t.innerType._zod.optin), q(e._zod, "optout", () => t.innerType._zod.optout), q(e._zod, "pattern", () => {
|
|
17316
17461
|
let e = t.innerType._zod.pattern;
|
|
17317
17462
|
return e ? RegExp(`^(${um(e.source)}|null)$`) : void 0;
|
|
17318
17463
|
}), q(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
17319
|
-
}),
|
|
17464
|
+
}), t_ = /*@__PURE__*/ K("$ZodDefault", (e, t) => {
|
|
17320
17465
|
Y.init(e, t), e._zod.optin = "optional", q(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
17321
17466
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
17322
17467
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
17323
17468
|
let r = t.innerType._zod.run(e, n);
|
|
17324
|
-
return r instanceof Promise ? r.then((e) =>
|
|
17469
|
+
return r instanceof Promise ? r.then((e) => n_(e, t)) : n_(r, t);
|
|
17325
17470
|
};
|
|
17326
17471
|
});
|
|
17327
|
-
function
|
|
17472
|
+
function n_(e, t) {
|
|
17328
17473
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
17329
17474
|
}
|
|
17330
|
-
var
|
|
17475
|
+
var r_ = /*@__PURE__*/ K("$ZodPrefault", (e, t) => {
|
|
17331
17476
|
Y.init(e, t), e._zod.optin = "optional", q(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
17332
|
-
}),
|
|
17477
|
+
}), i_ = /*@__PURE__*/ K("$ZodNonOptional", (e, t) => {
|
|
17333
17478
|
Y.init(e, t), q(e._zod, "values", () => {
|
|
17334
17479
|
let e = t.innerType._zod.values;
|
|
17335
17480
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
17336
17481
|
}), e._zod.parse = (n, r) => {
|
|
17337
17482
|
let i = t.innerType._zod.run(n, r);
|
|
17338
|
-
return i instanceof Promise ? i.then((t) =>
|
|
17483
|
+
return i instanceof Promise ? i.then((t) => a_(t, e)) : a_(i, e);
|
|
17339
17484
|
};
|
|
17340
17485
|
});
|
|
17341
|
-
function
|
|
17486
|
+
function a_(e, t) {
|
|
17342
17487
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
17343
17488
|
code: "invalid_type",
|
|
17344
17489
|
expected: "nonoptional",
|
|
@@ -17346,7 +17491,7 @@ function n_(e, t) {
|
|
|
17346
17491
|
inst: t
|
|
17347
17492
|
}), e;
|
|
17348
17493
|
}
|
|
17349
|
-
var
|
|
17494
|
+
var o_ = /*@__PURE__*/ K("$ZodCatch", (e, t) => {
|
|
17350
17495
|
Y.init(e, t), e._zod.optin = "optional", q(e._zod, "optout", () => t.innerType._zod.optout), q(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
17351
17496
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
17352
17497
|
let r = t.innerType._zod.run(e, n);
|
|
@@ -17360,41 +17505,41 @@ var r_ = /*@__PURE__*/ K("$ZodCatch", (e, t) => {
|
|
|
17360
17505
|
input: e.value
|
|
17361
17506
|
}), e.issues = [], e.fallback = !0), e);
|
|
17362
17507
|
};
|
|
17363
|
-
}),
|
|
17508
|
+
}), s_ = /*@__PURE__*/ K("$ZodPipe", (e, t) => {
|
|
17364
17509
|
Y.init(e, t), q(e._zod, "values", () => t.in._zod.values), q(e._zod, "optin", () => t.in._zod.optin), q(e._zod, "optout", () => t.out._zod.optout), q(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
17365
17510
|
if (n.direction === "backward") {
|
|
17366
17511
|
let r = t.out._zod.run(e, n);
|
|
17367
|
-
return r instanceof Promise ? r.then((e) =>
|
|
17512
|
+
return r instanceof Promise ? r.then((e) => c_(e, t.in, n)) : c_(r, t.in, n);
|
|
17368
17513
|
}
|
|
17369
17514
|
let r = t.in._zod.run(e, n);
|
|
17370
|
-
return r instanceof Promise ? r.then((e) =>
|
|
17515
|
+
return r instanceof Promise ? r.then((e) => c_(e, t.out, n)) : c_(r, t.out, n);
|
|
17371
17516
|
};
|
|
17372
17517
|
});
|
|
17373
|
-
function
|
|
17518
|
+
function c_(e, t, n) {
|
|
17374
17519
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
17375
17520
|
value: e.value,
|
|
17376
17521
|
issues: e.issues,
|
|
17377
17522
|
fallback: e.fallback
|
|
17378
17523
|
}, n);
|
|
17379
17524
|
}
|
|
17380
|
-
var
|
|
17525
|
+
var l_ = /*@__PURE__*/ K("$ZodReadonly", (e, t) => {
|
|
17381
17526
|
Y.init(e, t), q(e._zod, "propValues", () => t.innerType._zod.propValues), q(e._zod, "values", () => t.innerType._zod.values), q(e._zod, "optin", () => t.innerType?._zod?.optin), q(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
17382
17527
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
17383
17528
|
let r = t.innerType._zod.run(e, n);
|
|
17384
|
-
return r instanceof Promise ? r.then(
|
|
17529
|
+
return r instanceof Promise ? r.then(u_) : u_(r);
|
|
17385
17530
|
};
|
|
17386
17531
|
});
|
|
17387
|
-
function
|
|
17532
|
+
function u_(e) {
|
|
17388
17533
|
return e.value = Object.freeze(e.value), e;
|
|
17389
17534
|
}
|
|
17390
|
-
var
|
|
17535
|
+
var d_ = /*@__PURE__*/ K("$ZodCustom", (e, t) => {
|
|
17391
17536
|
Lh.init(e, t), Y.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
17392
17537
|
let r = n.value, i = t.fn(r);
|
|
17393
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
17394
|
-
|
|
17538
|
+
if (i instanceof Promise) return i.then((t) => f_(t, n, r, e));
|
|
17539
|
+
f_(i, n, r, e);
|
|
17395
17540
|
};
|
|
17396
17541
|
});
|
|
17397
|
-
function
|
|
17542
|
+
function f_(e, t, n, r) {
|
|
17398
17543
|
if (!e) {
|
|
17399
17544
|
let e = {
|
|
17400
17545
|
code: "custom",
|
|
@@ -17408,7 +17553,7 @@ function l_(e, t, n, r) {
|
|
|
17408
17553
|
}
|
|
17409
17554
|
//#endregion
|
|
17410
17555
|
//#region ../../node_modules/zod/v4/core/registries.js
|
|
17411
|
-
var
|
|
17556
|
+
var p_, m_ = class {
|
|
17412
17557
|
constructor() {
|
|
17413
17558
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
17414
17559
|
}
|
|
@@ -17440,22 +17585,22 @@ var u_, d_ = class {
|
|
|
17440
17585
|
return this._map.has(e);
|
|
17441
17586
|
}
|
|
17442
17587
|
};
|
|
17443
|
-
function
|
|
17444
|
-
return new
|
|
17588
|
+
function h_() {
|
|
17589
|
+
return new m_();
|
|
17445
17590
|
}
|
|
17446
|
-
(
|
|
17447
|
-
var
|
|
17591
|
+
(p_ = globalThis).__zod_globalRegistry ?? (p_.__zod_globalRegistry = h_());
|
|
17592
|
+
var g_ = globalThis.__zod_globalRegistry;
|
|
17448
17593
|
//#endregion
|
|
17449
17594
|
//#region ../../node_modules/zod/v4/core/api.js
|
|
17450
17595
|
// @__NO_SIDE_EFFECTS__
|
|
17451
|
-
function
|
|
17596
|
+
function __(e, t) {
|
|
17452
17597
|
return new e({
|
|
17453
17598
|
type: "string",
|
|
17454
17599
|
...J(t)
|
|
17455
17600
|
});
|
|
17456
17601
|
}
|
|
17457
17602
|
// @__NO_SIDE_EFFECTS__
|
|
17458
|
-
function
|
|
17603
|
+
function v_(e, t) {
|
|
17459
17604
|
return new e({
|
|
17460
17605
|
type: "string",
|
|
17461
17606
|
format: "email",
|
|
@@ -17465,7 +17610,7 @@ function h_(e, t) {
|
|
|
17465
17610
|
});
|
|
17466
17611
|
}
|
|
17467
17612
|
// @__NO_SIDE_EFFECTS__
|
|
17468
|
-
function
|
|
17613
|
+
function y_(e, t) {
|
|
17469
17614
|
return new e({
|
|
17470
17615
|
type: "string",
|
|
17471
17616
|
format: "guid",
|
|
@@ -17475,7 +17620,7 @@ function g_(e, t) {
|
|
|
17475
17620
|
});
|
|
17476
17621
|
}
|
|
17477
17622
|
// @__NO_SIDE_EFFECTS__
|
|
17478
|
-
function
|
|
17623
|
+
function b_(e, t) {
|
|
17479
17624
|
return new e({
|
|
17480
17625
|
type: "string",
|
|
17481
17626
|
format: "uuid",
|
|
@@ -17485,7 +17630,7 @@ function __(e, t) {
|
|
|
17485
17630
|
});
|
|
17486
17631
|
}
|
|
17487
17632
|
// @__NO_SIDE_EFFECTS__
|
|
17488
|
-
function
|
|
17633
|
+
function x_(e, t) {
|
|
17489
17634
|
return new e({
|
|
17490
17635
|
type: "string",
|
|
17491
17636
|
format: "uuid",
|
|
@@ -17496,7 +17641,7 @@ function v_(e, t) {
|
|
|
17496
17641
|
});
|
|
17497
17642
|
}
|
|
17498
17643
|
// @__NO_SIDE_EFFECTS__
|
|
17499
|
-
function
|
|
17644
|
+
function S_(e, t) {
|
|
17500
17645
|
return new e({
|
|
17501
17646
|
type: "string",
|
|
17502
17647
|
format: "uuid",
|
|
@@ -17507,7 +17652,7 @@ function y_(e, t) {
|
|
|
17507
17652
|
});
|
|
17508
17653
|
}
|
|
17509
17654
|
// @__NO_SIDE_EFFECTS__
|
|
17510
|
-
function
|
|
17655
|
+
function C_(e, t) {
|
|
17511
17656
|
return new e({
|
|
17512
17657
|
type: "string",
|
|
17513
17658
|
format: "uuid",
|
|
@@ -17518,7 +17663,7 @@ function b_(e, t) {
|
|
|
17518
17663
|
});
|
|
17519
17664
|
}
|
|
17520
17665
|
// @__NO_SIDE_EFFECTS__
|
|
17521
|
-
function
|
|
17666
|
+
function w_(e, t) {
|
|
17522
17667
|
return new e({
|
|
17523
17668
|
type: "string",
|
|
17524
17669
|
format: "url",
|
|
@@ -17528,7 +17673,7 @@ function x_(e, t) {
|
|
|
17528
17673
|
});
|
|
17529
17674
|
}
|
|
17530
17675
|
// @__NO_SIDE_EFFECTS__
|
|
17531
|
-
function
|
|
17676
|
+
function T_(e, t) {
|
|
17532
17677
|
return new e({
|
|
17533
17678
|
type: "string",
|
|
17534
17679
|
format: "emoji",
|
|
@@ -17538,7 +17683,7 @@ function S_(e, t) {
|
|
|
17538
17683
|
});
|
|
17539
17684
|
}
|
|
17540
17685
|
// @__NO_SIDE_EFFECTS__
|
|
17541
|
-
function
|
|
17686
|
+
function E_(e, t) {
|
|
17542
17687
|
return new e({
|
|
17543
17688
|
type: "string",
|
|
17544
17689
|
format: "nanoid",
|
|
@@ -17548,7 +17693,7 @@ function C_(e, t) {
|
|
|
17548
17693
|
});
|
|
17549
17694
|
}
|
|
17550
17695
|
// @__NO_SIDE_EFFECTS__
|
|
17551
|
-
function
|
|
17696
|
+
function D_(e, t) {
|
|
17552
17697
|
return new e({
|
|
17553
17698
|
type: "string",
|
|
17554
17699
|
format: "cuid",
|
|
@@ -17558,7 +17703,7 @@ function w_(e, t) {
|
|
|
17558
17703
|
});
|
|
17559
17704
|
}
|
|
17560
17705
|
// @__NO_SIDE_EFFECTS__
|
|
17561
|
-
function
|
|
17706
|
+
function O_(e, t) {
|
|
17562
17707
|
return new e({
|
|
17563
17708
|
type: "string",
|
|
17564
17709
|
format: "cuid2",
|
|
@@ -17568,7 +17713,7 @@ function T_(e, t) {
|
|
|
17568
17713
|
});
|
|
17569
17714
|
}
|
|
17570
17715
|
// @__NO_SIDE_EFFECTS__
|
|
17571
|
-
function
|
|
17716
|
+
function k_(e, t) {
|
|
17572
17717
|
return new e({
|
|
17573
17718
|
type: "string",
|
|
17574
17719
|
format: "ulid",
|
|
@@ -17578,7 +17723,7 @@ function E_(e, t) {
|
|
|
17578
17723
|
});
|
|
17579
17724
|
}
|
|
17580
17725
|
// @__NO_SIDE_EFFECTS__
|
|
17581
|
-
function
|
|
17726
|
+
function A_(e, t) {
|
|
17582
17727
|
return new e({
|
|
17583
17728
|
type: "string",
|
|
17584
17729
|
format: "xid",
|
|
@@ -17588,7 +17733,7 @@ function D_(e, t) {
|
|
|
17588
17733
|
});
|
|
17589
17734
|
}
|
|
17590
17735
|
// @__NO_SIDE_EFFECTS__
|
|
17591
|
-
function
|
|
17736
|
+
function j_(e, t) {
|
|
17592
17737
|
return new e({
|
|
17593
17738
|
type: "string",
|
|
17594
17739
|
format: "ksuid",
|
|
@@ -17598,7 +17743,7 @@ function O_(e, t) {
|
|
|
17598
17743
|
});
|
|
17599
17744
|
}
|
|
17600
17745
|
// @__NO_SIDE_EFFECTS__
|
|
17601
|
-
function
|
|
17746
|
+
function M_(e, t) {
|
|
17602
17747
|
return new e({
|
|
17603
17748
|
type: "string",
|
|
17604
17749
|
format: "ipv4",
|
|
@@ -17608,7 +17753,7 @@ function k_(e, t) {
|
|
|
17608
17753
|
});
|
|
17609
17754
|
}
|
|
17610
17755
|
// @__NO_SIDE_EFFECTS__
|
|
17611
|
-
function
|
|
17756
|
+
function N_(e, t) {
|
|
17612
17757
|
return new e({
|
|
17613
17758
|
type: "string",
|
|
17614
17759
|
format: "ipv6",
|
|
@@ -17618,7 +17763,7 @@ function A_(e, t) {
|
|
|
17618
17763
|
});
|
|
17619
17764
|
}
|
|
17620
17765
|
// @__NO_SIDE_EFFECTS__
|
|
17621
|
-
function
|
|
17766
|
+
function P_(e, t) {
|
|
17622
17767
|
return new e({
|
|
17623
17768
|
type: "string",
|
|
17624
17769
|
format: "cidrv4",
|
|
@@ -17628,7 +17773,7 @@ function j_(e, t) {
|
|
|
17628
17773
|
});
|
|
17629
17774
|
}
|
|
17630
17775
|
// @__NO_SIDE_EFFECTS__
|
|
17631
|
-
function
|
|
17776
|
+
function F_(e, t) {
|
|
17632
17777
|
return new e({
|
|
17633
17778
|
type: "string",
|
|
17634
17779
|
format: "cidrv6",
|
|
@@ -17638,7 +17783,7 @@ function M_(e, t) {
|
|
|
17638
17783
|
});
|
|
17639
17784
|
}
|
|
17640
17785
|
// @__NO_SIDE_EFFECTS__
|
|
17641
|
-
function
|
|
17786
|
+
function I_(e, t) {
|
|
17642
17787
|
return new e({
|
|
17643
17788
|
type: "string",
|
|
17644
17789
|
format: "base64",
|
|
@@ -17648,7 +17793,7 @@ function N_(e, t) {
|
|
|
17648
17793
|
});
|
|
17649
17794
|
}
|
|
17650
17795
|
// @__NO_SIDE_EFFECTS__
|
|
17651
|
-
function
|
|
17796
|
+
function L_(e, t) {
|
|
17652
17797
|
return new e({
|
|
17653
17798
|
type: "string",
|
|
17654
17799
|
format: "base64url",
|
|
@@ -17658,7 +17803,7 @@ function P_(e, t) {
|
|
|
17658
17803
|
});
|
|
17659
17804
|
}
|
|
17660
17805
|
// @__NO_SIDE_EFFECTS__
|
|
17661
|
-
function
|
|
17806
|
+
function R_(e, t) {
|
|
17662
17807
|
return new e({
|
|
17663
17808
|
type: "string",
|
|
17664
17809
|
format: "e164",
|
|
@@ -17668,7 +17813,7 @@ function F_(e, t) {
|
|
|
17668
17813
|
});
|
|
17669
17814
|
}
|
|
17670
17815
|
// @__NO_SIDE_EFFECTS__
|
|
17671
|
-
function
|
|
17816
|
+
function z_(e, t) {
|
|
17672
17817
|
return new e({
|
|
17673
17818
|
type: "string",
|
|
17674
17819
|
format: "jwt",
|
|
@@ -17678,7 +17823,7 @@ function I_(e, t) {
|
|
|
17678
17823
|
});
|
|
17679
17824
|
}
|
|
17680
17825
|
// @__NO_SIDE_EFFECTS__
|
|
17681
|
-
function
|
|
17826
|
+
function B_(e, t) {
|
|
17682
17827
|
return new e({
|
|
17683
17828
|
type: "string",
|
|
17684
17829
|
format: "datetime",
|
|
@@ -17690,7 +17835,7 @@ function L_(e, t) {
|
|
|
17690
17835
|
});
|
|
17691
17836
|
}
|
|
17692
17837
|
// @__NO_SIDE_EFFECTS__
|
|
17693
|
-
function
|
|
17838
|
+
function V_(e, t) {
|
|
17694
17839
|
return new e({
|
|
17695
17840
|
type: "string",
|
|
17696
17841
|
format: "date",
|
|
@@ -17699,7 +17844,7 @@ function R_(e, t) {
|
|
|
17699
17844
|
});
|
|
17700
17845
|
}
|
|
17701
17846
|
// @__NO_SIDE_EFFECTS__
|
|
17702
|
-
function
|
|
17847
|
+
function H_(e, t) {
|
|
17703
17848
|
return new e({
|
|
17704
17849
|
type: "string",
|
|
17705
17850
|
format: "time",
|
|
@@ -17709,7 +17854,7 @@ function z_(e, t) {
|
|
|
17709
17854
|
});
|
|
17710
17855
|
}
|
|
17711
17856
|
// @__NO_SIDE_EFFECTS__
|
|
17712
|
-
function
|
|
17857
|
+
function U_(e, t) {
|
|
17713
17858
|
return new e({
|
|
17714
17859
|
type: "string",
|
|
17715
17860
|
format: "duration",
|
|
@@ -17718,7 +17863,7 @@ function B_(e, t) {
|
|
|
17718
17863
|
});
|
|
17719
17864
|
}
|
|
17720
17865
|
// @__NO_SIDE_EFFECTS__
|
|
17721
|
-
function
|
|
17866
|
+
function W_(e, t) {
|
|
17722
17867
|
return new e({
|
|
17723
17868
|
type: "number",
|
|
17724
17869
|
checks: [],
|
|
@@ -17726,7 +17871,7 @@ function V_(e, t) {
|
|
|
17726
17871
|
});
|
|
17727
17872
|
}
|
|
17728
17873
|
// @__NO_SIDE_EFFECTS__
|
|
17729
|
-
function
|
|
17874
|
+
function G_(e, t) {
|
|
17730
17875
|
return new e({
|
|
17731
17876
|
type: "number",
|
|
17732
17877
|
check: "number_format",
|
|
@@ -17736,25 +17881,25 @@ function H_(e, t) {
|
|
|
17736
17881
|
});
|
|
17737
17882
|
}
|
|
17738
17883
|
// @__NO_SIDE_EFFECTS__
|
|
17739
|
-
function
|
|
17884
|
+
function K_(e, t) {
|
|
17740
17885
|
return new e({
|
|
17741
17886
|
type: "boolean",
|
|
17742
17887
|
...J(t)
|
|
17743
17888
|
});
|
|
17744
17889
|
}
|
|
17745
17890
|
// @__NO_SIDE_EFFECTS__
|
|
17746
|
-
function
|
|
17891
|
+
function q_(e) {
|
|
17747
17892
|
return new e({ type: "unknown" });
|
|
17748
17893
|
}
|
|
17749
17894
|
// @__NO_SIDE_EFFECTS__
|
|
17750
|
-
function
|
|
17895
|
+
function J_(e, t) {
|
|
17751
17896
|
return new e({
|
|
17752
17897
|
type: "never",
|
|
17753
17898
|
...J(t)
|
|
17754
17899
|
});
|
|
17755
17900
|
}
|
|
17756
17901
|
// @__NO_SIDE_EFFECTS__
|
|
17757
|
-
function
|
|
17902
|
+
function Y_(e, t) {
|
|
17758
17903
|
return new zh({
|
|
17759
17904
|
check: "less_than",
|
|
17760
17905
|
...J(t),
|
|
@@ -17763,7 +17908,7 @@ function K_(e, t) {
|
|
|
17763
17908
|
});
|
|
17764
17909
|
}
|
|
17765
17910
|
// @__NO_SIDE_EFFECTS__
|
|
17766
|
-
function
|
|
17911
|
+
function X_(e, t) {
|
|
17767
17912
|
return new zh({
|
|
17768
17913
|
check: "less_than",
|
|
17769
17914
|
...J(t),
|
|
@@ -17772,7 +17917,7 @@ function q_(e, t) {
|
|
|
17772
17917
|
});
|
|
17773
17918
|
}
|
|
17774
17919
|
// @__NO_SIDE_EFFECTS__
|
|
17775
|
-
function
|
|
17920
|
+
function Z_(e, t) {
|
|
17776
17921
|
return new Bh({
|
|
17777
17922
|
check: "greater_than",
|
|
17778
17923
|
...J(t),
|
|
@@ -17781,7 +17926,7 @@ function J_(e, t) {
|
|
|
17781
17926
|
});
|
|
17782
17927
|
}
|
|
17783
17928
|
// @__NO_SIDE_EFFECTS__
|
|
17784
|
-
function
|
|
17929
|
+
function Q_(e, t) {
|
|
17785
17930
|
return new Bh({
|
|
17786
17931
|
check: "greater_than",
|
|
17787
17932
|
...J(t),
|
|
@@ -17790,7 +17935,7 @@ function Y_(e, t) {
|
|
|
17790
17935
|
});
|
|
17791
17936
|
}
|
|
17792
17937
|
// @__NO_SIDE_EFFECTS__
|
|
17793
|
-
function
|
|
17938
|
+
function $_(e, t) {
|
|
17794
17939
|
return new Vh({
|
|
17795
17940
|
check: "multiple_of",
|
|
17796
17941
|
...J(t),
|
|
@@ -17798,7 +17943,7 @@ function X_(e, t) {
|
|
|
17798
17943
|
});
|
|
17799
17944
|
}
|
|
17800
17945
|
// @__NO_SIDE_EFFECTS__
|
|
17801
|
-
function
|
|
17946
|
+
function ev(e, t) {
|
|
17802
17947
|
return new Uh({
|
|
17803
17948
|
check: "max_length",
|
|
17804
17949
|
...J(t),
|
|
@@ -17806,7 +17951,7 @@ function Z_(e, t) {
|
|
|
17806
17951
|
});
|
|
17807
17952
|
}
|
|
17808
17953
|
// @__NO_SIDE_EFFECTS__
|
|
17809
|
-
function
|
|
17954
|
+
function tv(e, t) {
|
|
17810
17955
|
return new Wh({
|
|
17811
17956
|
check: "min_length",
|
|
17812
17957
|
...J(t),
|
|
@@ -17814,7 +17959,7 @@ function Q_(e, t) {
|
|
|
17814
17959
|
});
|
|
17815
17960
|
}
|
|
17816
17961
|
// @__NO_SIDE_EFFECTS__
|
|
17817
|
-
function
|
|
17962
|
+
function nv(e, t) {
|
|
17818
17963
|
return new Gh({
|
|
17819
17964
|
check: "length_equals",
|
|
17820
17965
|
...J(t),
|
|
@@ -17822,7 +17967,7 @@ function $_(e, t) {
|
|
|
17822
17967
|
});
|
|
17823
17968
|
}
|
|
17824
17969
|
// @__NO_SIDE_EFFECTS__
|
|
17825
|
-
function
|
|
17970
|
+
function rv(e, t) {
|
|
17826
17971
|
return new qh({
|
|
17827
17972
|
check: "string_format",
|
|
17828
17973
|
format: "regex",
|
|
@@ -17831,7 +17976,7 @@ function ev(e, t) {
|
|
|
17831
17976
|
});
|
|
17832
17977
|
}
|
|
17833
17978
|
// @__NO_SIDE_EFFECTS__
|
|
17834
|
-
function
|
|
17979
|
+
function iv(e) {
|
|
17835
17980
|
return new Jh({
|
|
17836
17981
|
check: "string_format",
|
|
17837
17982
|
format: "lowercase",
|
|
@@ -17839,7 +17984,7 @@ function tv(e) {
|
|
|
17839
17984
|
});
|
|
17840
17985
|
}
|
|
17841
17986
|
// @__NO_SIDE_EFFECTS__
|
|
17842
|
-
function
|
|
17987
|
+
function av(e) {
|
|
17843
17988
|
return new Yh({
|
|
17844
17989
|
check: "string_format",
|
|
17845
17990
|
format: "uppercase",
|
|
@@ -17847,7 +17992,7 @@ function nv(e) {
|
|
|
17847
17992
|
});
|
|
17848
17993
|
}
|
|
17849
17994
|
// @__NO_SIDE_EFFECTS__
|
|
17850
|
-
function
|
|
17995
|
+
function ov(e, t) {
|
|
17851
17996
|
return new Xh({
|
|
17852
17997
|
check: "string_format",
|
|
17853
17998
|
format: "includes",
|
|
@@ -17856,7 +18001,7 @@ function rv(e, t) {
|
|
|
17856
18001
|
});
|
|
17857
18002
|
}
|
|
17858
18003
|
// @__NO_SIDE_EFFECTS__
|
|
17859
|
-
function
|
|
18004
|
+
function sv(e, t) {
|
|
17860
18005
|
return new Zh({
|
|
17861
18006
|
check: "string_format",
|
|
17862
18007
|
format: "starts_with",
|
|
@@ -17865,7 +18010,7 @@ function iv(e, t) {
|
|
|
17865
18010
|
});
|
|
17866
18011
|
}
|
|
17867
18012
|
// @__NO_SIDE_EFFECTS__
|
|
17868
|
-
function
|
|
18013
|
+
function cv(e, t) {
|
|
17869
18014
|
return new Qh({
|
|
17870
18015
|
check: "string_format",
|
|
17871
18016
|
format: "ends_with",
|
|
@@ -17874,34 +18019,34 @@ function av(e, t) {
|
|
|
17874
18019
|
});
|
|
17875
18020
|
}
|
|
17876
18021
|
// @__NO_SIDE_EFFECTS__
|
|
17877
|
-
function
|
|
18022
|
+
function lv(e) {
|
|
17878
18023
|
return new $h({
|
|
17879
18024
|
check: "overwrite",
|
|
17880
18025
|
tx: e
|
|
17881
18026
|
});
|
|
17882
18027
|
}
|
|
17883
18028
|
// @__NO_SIDE_EFFECTS__
|
|
17884
|
-
function
|
|
17885
|
-
return /* @__PURE__ */
|
|
18029
|
+
function uv(e) {
|
|
18030
|
+
return /* @__PURE__ */ lv((t) => t.normalize(e));
|
|
17886
18031
|
}
|
|
17887
18032
|
// @__NO_SIDE_EFFECTS__
|
|
17888
|
-
function
|
|
17889
|
-
return /* @__PURE__ */
|
|
18033
|
+
function dv() {
|
|
18034
|
+
return /* @__PURE__ */ lv((e) => e.trim());
|
|
17890
18035
|
}
|
|
17891
18036
|
// @__NO_SIDE_EFFECTS__
|
|
17892
|
-
function
|
|
17893
|
-
return /* @__PURE__ */
|
|
18037
|
+
function fv() {
|
|
18038
|
+
return /* @__PURE__ */ lv((e) => e.toLowerCase());
|
|
17894
18039
|
}
|
|
17895
18040
|
// @__NO_SIDE_EFFECTS__
|
|
17896
|
-
function
|
|
17897
|
-
return /* @__PURE__ */
|
|
18041
|
+
function pv() {
|
|
18042
|
+
return /* @__PURE__ */ lv((e) => e.toUpperCase());
|
|
17898
18043
|
}
|
|
17899
18044
|
// @__NO_SIDE_EFFECTS__
|
|
17900
|
-
function
|
|
17901
|
-
return /* @__PURE__ */
|
|
18045
|
+
function mv() {
|
|
18046
|
+
return /* @__PURE__ */ lv((e) => gm(e));
|
|
17902
18047
|
}
|
|
17903
18048
|
// @__NO_SIDE_EFFECTS__
|
|
17904
|
-
function
|
|
18049
|
+
function hv(e, t, n) {
|
|
17905
18050
|
return new e({
|
|
17906
18051
|
type: "array",
|
|
17907
18052
|
element: t,
|
|
@@ -17909,7 +18054,7 @@ function fv(e, t, n) {
|
|
|
17909
18054
|
});
|
|
17910
18055
|
}
|
|
17911
18056
|
// @__NO_SIDE_EFFECTS__
|
|
17912
|
-
function
|
|
18057
|
+
function gv(e, t, n) {
|
|
17913
18058
|
return new e({
|
|
17914
18059
|
type: "custom",
|
|
17915
18060
|
check: "custom",
|
|
@@ -17918,8 +18063,8 @@ function pv(e, t, n) {
|
|
|
17918
18063
|
});
|
|
17919
18064
|
}
|
|
17920
18065
|
// @__NO_SIDE_EFFECTS__
|
|
17921
|
-
function
|
|
17922
|
-
let n = /* @__PURE__ */
|
|
18066
|
+
function _v(e, t) {
|
|
18067
|
+
let n = /* @__PURE__ */ vv((t) => (t.addIssue = (e) => {
|
|
17923
18068
|
if (typeof e == "string") t.issues.push(Bm(e, t.value, n._zod.def));
|
|
17924
18069
|
else {
|
|
17925
18070
|
let r = e;
|
|
@@ -17929,7 +18074,7 @@ function mv(e, t) {
|
|
|
17929
18074
|
return n;
|
|
17930
18075
|
}
|
|
17931
18076
|
// @__NO_SIDE_EFFECTS__
|
|
17932
|
-
function
|
|
18077
|
+
function vv(e, t) {
|
|
17933
18078
|
let n = new Lh({
|
|
17934
18079
|
check: "custom",
|
|
17935
18080
|
...J(t)
|
|
@@ -17938,11 +18083,11 @@ function hv(e, t) {
|
|
|
17938
18083
|
}
|
|
17939
18084
|
//#endregion
|
|
17940
18085
|
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
17941
|
-
function
|
|
18086
|
+
function yv(e) {
|
|
17942
18087
|
let t = e?.target ?? "draft-2020-12";
|
|
17943
18088
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
17944
18089
|
processors: e.processors ?? {},
|
|
17945
|
-
metadataRegistry: e?.metadata ??
|
|
18090
|
+
metadataRegistry: e?.metadata ?? g_,
|
|
17946
18091
|
target: t,
|
|
17947
18092
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
17948
18093
|
override: e?.override ?? (() => {}),
|
|
@@ -17954,7 +18099,7 @@ function gv(e) {
|
|
|
17954
18099
|
external: e?.external ?? void 0
|
|
17955
18100
|
};
|
|
17956
18101
|
}
|
|
17957
|
-
function
|
|
18102
|
+
function bv(e, t, n = {
|
|
17958
18103
|
path: [],
|
|
17959
18104
|
schemaPath: []
|
|
17960
18105
|
}) {
|
|
@@ -17983,12 +18128,12 @@ function _v(e, t, n = {
|
|
|
17983
18128
|
a(e, t, n, r);
|
|
17984
18129
|
}
|
|
17985
18130
|
let a = e._zod.parent;
|
|
17986
|
-
a && (o.ref ||= a,
|
|
18131
|
+
a && (o.ref ||= a, bv(a, t, r), t.seen.get(a).isParent = !0);
|
|
17987
18132
|
}
|
|
17988
18133
|
let c = t.metadataRegistry.get(e);
|
|
17989
|
-
return c && Object.assign(o.schema, c), t.io === "input" &&
|
|
18134
|
+
return c && Object.assign(o.schema, c), t.io === "input" && Cv(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
17990
18135
|
}
|
|
17991
|
-
function
|
|
18136
|
+
function xv(e, t) {
|
|
17992
18137
|
let n = e.seen.get(t);
|
|
17993
18138
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
17994
18139
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -18058,7 +18203,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18058
18203
|
}
|
|
18059
18204
|
}
|
|
18060
18205
|
}
|
|
18061
|
-
function
|
|
18206
|
+
function Sv(e, t) {
|
|
18062
18207
|
let n = e.seen.get(t);
|
|
18063
18208
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
18064
18209
|
let r = (t) => {
|
|
@@ -18105,8 +18250,8 @@ function yv(e, t) {
|
|
|
18105
18250
|
value: {
|
|
18106
18251
|
...t["~standard"],
|
|
18107
18252
|
jsonSchema: {
|
|
18108
|
-
input:
|
|
18109
|
-
output:
|
|
18253
|
+
input: Tv(t, "input", e.processors),
|
|
18254
|
+
output: Tv(t, "output", e.processors)
|
|
18110
18255
|
}
|
|
18111
18256
|
},
|
|
18112
18257
|
enumerable: !1,
|
|
@@ -18116,91 +18261,103 @@ function yv(e, t) {
|
|
|
18116
18261
|
throw Error("Error converting schema to JSON.");
|
|
18117
18262
|
}
|
|
18118
18263
|
}
|
|
18119
|
-
function
|
|
18264
|
+
function Cv(e, t) {
|
|
18120
18265
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
18121
18266
|
if (n.seen.has(e)) return !1;
|
|
18122
18267
|
n.seen.add(e);
|
|
18123
18268
|
let r = e._zod.def;
|
|
18124
18269
|
if (r.type === "transform") return !0;
|
|
18125
|
-
if (r.type === "array") return
|
|
18126
|
-
if (r.type === "set") return
|
|
18127
|
-
if (r.type === "lazy") return
|
|
18128
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return
|
|
18129
|
-
if (r.type === "intersection") return
|
|
18130
|
-
if (r.type === "record" || r.type === "map") return
|
|
18131
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
18270
|
+
if (r.type === "array") return Cv(r.element, n);
|
|
18271
|
+
if (r.type === "set") return Cv(r.valueType, n);
|
|
18272
|
+
if (r.type === "lazy") return Cv(r.getter(), n);
|
|
18273
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return Cv(r.innerType, n);
|
|
18274
|
+
if (r.type === "intersection") return Cv(r.left, n) || Cv(r.right, n);
|
|
18275
|
+
if (r.type === "record" || r.type === "map") return Cv(r.keyType, n) || Cv(r.valueType, n);
|
|
18276
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : Cv(r.in, n) || Cv(r.out, n);
|
|
18132
18277
|
if (r.type === "object") {
|
|
18133
|
-
for (let e in r.shape) if (
|
|
18278
|
+
for (let e in r.shape) if (Cv(r.shape[e], n)) return !0;
|
|
18134
18279
|
return !1;
|
|
18135
18280
|
}
|
|
18136
18281
|
if (r.type === "union") {
|
|
18137
|
-
for (let e of r.options) if (
|
|
18282
|
+
for (let e of r.options) if (Cv(e, n)) return !0;
|
|
18138
18283
|
return !1;
|
|
18139
18284
|
}
|
|
18140
18285
|
if (r.type === "tuple") {
|
|
18141
|
-
for (let e of r.items) if (
|
|
18142
|
-
return !!(r.rest &&
|
|
18286
|
+
for (let e of r.items) if (Cv(e, n)) return !0;
|
|
18287
|
+
return !!(r.rest && Cv(r.rest, n));
|
|
18143
18288
|
}
|
|
18144
18289
|
return !1;
|
|
18145
18290
|
}
|
|
18146
|
-
var
|
|
18147
|
-
let r =
|
|
18291
|
+
var wv = (e, t = {}) => (n) => {
|
|
18292
|
+
let r = yv({
|
|
18148
18293
|
...n,
|
|
18149
18294
|
processors: t
|
|
18150
18295
|
});
|
|
18151
|
-
return
|
|
18152
|
-
},
|
|
18153
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
18296
|
+
return bv(e, r), xv(r, e), Sv(r, e);
|
|
18297
|
+
}, Tv = (e, t, n = {}) => (r) => {
|
|
18298
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = yv({
|
|
18154
18299
|
...i ?? {},
|
|
18155
18300
|
target: a,
|
|
18156
18301
|
io: t,
|
|
18157
18302
|
processors: n
|
|
18158
18303
|
});
|
|
18159
|
-
return
|
|
18160
|
-
},
|
|
18304
|
+
return bv(e, o), xv(o, e), Sv(o, e);
|
|
18305
|
+
}, Ev = {
|
|
18161
18306
|
guid: "uuid",
|
|
18162
18307
|
url: "uri",
|
|
18163
18308
|
datetime: "date-time",
|
|
18164
18309
|
json_string: "json-string",
|
|
18165
18310
|
regex: ""
|
|
18166
|
-
},
|
|
18311
|
+
}, Dv = (e, t, n, r) => {
|
|
18167
18312
|
let i = n;
|
|
18168
18313
|
i.type = "string";
|
|
18169
18314
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
18170
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
18315
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Ev[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
18171
18316
|
let e = [...c];
|
|
18172
18317
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
18173
18318
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
18174
18319
|
pattern: e.source
|
|
18175
18320
|
}))]);
|
|
18176
18321
|
}
|
|
18177
|
-
},
|
|
18322
|
+
}, Ov = (e, t, n, r) => {
|
|
18178
18323
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
18179
18324
|
typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
|
|
18180
18325
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
18181
18326
|
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
|
|
18182
|
-
},
|
|
18327
|
+
}, kv = (e, t, n, r) => {
|
|
18183
18328
|
n.type = "boolean";
|
|
18184
|
-
},
|
|
18329
|
+
}, Av = (e, t, n, r) => {
|
|
18185
18330
|
n.not = {};
|
|
18186
|
-
},
|
|
18331
|
+
}, jv = (e, t, n, r) => {
|
|
18187
18332
|
let i = e._zod.def, a = om(i.entries);
|
|
18188
18333
|
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
18189
|
-
},
|
|
18334
|
+
}, Mv = (e, t, n, r) => {
|
|
18335
|
+
let i = e._zod.def, a = [];
|
|
18336
|
+
for (let e of i.values) if (e === void 0) {
|
|
18337
|
+
if (t.unrepresentable === "throw") throw Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
18338
|
+
} else if (typeof e == "bigint") {
|
|
18339
|
+
if (t.unrepresentable === "throw") throw Error("BigInt literals cannot be represented in JSON Schema");
|
|
18340
|
+
a.push(Number(e));
|
|
18341
|
+
} else a.push(e);
|
|
18342
|
+
if (a.length !== 0) if (a.length === 1) {
|
|
18343
|
+
let e = a[0];
|
|
18344
|
+
n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
|
|
18345
|
+
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
18346
|
+
}, Nv = (e, t, n, r) => {
|
|
18190
18347
|
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
18191
|
-
},
|
|
18348
|
+
}, Pv = (e, t, n, r) => {
|
|
18192
18349
|
if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
|
|
18193
|
-
},
|
|
18350
|
+
}, Fv = (e, t, n, r) => {
|
|
18194
18351
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
18195
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
18352
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = bv(a.element, t, {
|
|
18196
18353
|
...r,
|
|
18197
18354
|
path: [...r.path, "items"]
|
|
18198
18355
|
});
|
|
18199
|
-
},
|
|
18356
|
+
}, Iv = (e, t, n, r) => {
|
|
18200
18357
|
let i = n, a = e._zod.def;
|
|
18201
18358
|
i.type = "object", i.properties = {};
|
|
18202
18359
|
let o = a.shape;
|
|
18203
|
-
for (let e in o) i.properties[e] =
|
|
18360
|
+
for (let e in o) i.properties[e] = bv(o[e], t, {
|
|
18204
18361
|
...r,
|
|
18205
18362
|
path: [
|
|
18206
18363
|
...r.path,
|
|
@@ -18212,12 +18369,12 @@ var xv = (e, t = {}) => (n) => {
|
|
|
18212
18369
|
let n = a.shape[e]._zod;
|
|
18213
18370
|
return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
|
|
18214
18371
|
}));
|
|
18215
|
-
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
18372
|
+
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = bv(a.catchall, t, {
|
|
18216
18373
|
...r,
|
|
18217
18374
|
path: [...r.path, "additionalProperties"]
|
|
18218
18375
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
18219
|
-
},
|
|
18220
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
18376
|
+
}, Lv = (e, t, n, r) => {
|
|
18377
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => bv(e, t, {
|
|
18221
18378
|
...r,
|
|
18222
18379
|
path: [
|
|
18223
18380
|
...r.path,
|
|
@@ -18226,15 +18383,15 @@ var xv = (e, t = {}) => (n) => {
|
|
|
18226
18383
|
]
|
|
18227
18384
|
}));
|
|
18228
18385
|
a ? n.oneOf = o : n.anyOf = o;
|
|
18229
|
-
},
|
|
18230
|
-
let i = e._zod.def, a =
|
|
18386
|
+
}, Rv = (e, t, n, r) => {
|
|
18387
|
+
let i = e._zod.def, a = bv(i.left, t, {
|
|
18231
18388
|
...r,
|
|
18232
18389
|
path: [
|
|
18233
18390
|
...r.path,
|
|
18234
18391
|
"allOf",
|
|
18235
18392
|
0
|
|
18236
18393
|
]
|
|
18237
|
-
}), o =
|
|
18394
|
+
}), o = bv(i.right, t, {
|
|
18238
18395
|
...r,
|
|
18239
18396
|
path: [
|
|
18240
18397
|
...r.path,
|
|
@@ -18243,27 +18400,54 @@ var xv = (e, t = {}) => (n) => {
|
|
|
18243
18400
|
]
|
|
18244
18401
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1;
|
|
18245
18402
|
n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
18246
|
-
},
|
|
18247
|
-
let i =
|
|
18403
|
+
}, zv = (e, t, n, r) => {
|
|
18404
|
+
let i = n, a = e._zod.def;
|
|
18405
|
+
i.type = "object";
|
|
18406
|
+
let o = a.keyType, s = o._zod.bag?.patterns;
|
|
18407
|
+
if (a.mode === "loose" && s && s.size > 0) {
|
|
18408
|
+
let e = bv(a.valueType, t, {
|
|
18409
|
+
...r,
|
|
18410
|
+
path: [
|
|
18411
|
+
...r.path,
|
|
18412
|
+
"patternProperties",
|
|
18413
|
+
"*"
|
|
18414
|
+
]
|
|
18415
|
+
});
|
|
18416
|
+
i.patternProperties = {};
|
|
18417
|
+
for (let t of s) i.patternProperties[t.source] = e;
|
|
18418
|
+
} else (t.target === "draft-07" || t.target === "draft-2020-12") && (i.propertyNames = bv(a.keyType, t, {
|
|
18419
|
+
...r,
|
|
18420
|
+
path: [...r.path, "propertyNames"]
|
|
18421
|
+
})), i.additionalProperties = bv(a.valueType, t, {
|
|
18422
|
+
...r,
|
|
18423
|
+
path: [...r.path, "additionalProperties"]
|
|
18424
|
+
});
|
|
18425
|
+
let c = o._zod.values;
|
|
18426
|
+
if (c) {
|
|
18427
|
+
let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
|
|
18428
|
+
e.length > 0 && (i.required = e);
|
|
18429
|
+
}
|
|
18430
|
+
}, Bv = (e, t, n, r) => {
|
|
18431
|
+
let i = e._zod.def, a = bv(i.innerType, t, r), o = t.seen.get(e);
|
|
18248
18432
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
18249
|
-
},
|
|
18433
|
+
}, Vv = (e, t, n, r) => {
|
|
18250
18434
|
let i = e._zod.def;
|
|
18251
|
-
|
|
18435
|
+
bv(i.innerType, t, r);
|
|
18252
18436
|
let a = t.seen.get(e);
|
|
18253
18437
|
a.ref = i.innerType;
|
|
18254
|
-
},
|
|
18438
|
+
}, Hv = (e, t, n, r) => {
|
|
18255
18439
|
let i = e._zod.def;
|
|
18256
|
-
|
|
18440
|
+
bv(i.innerType, t, r);
|
|
18257
18441
|
let a = t.seen.get(e);
|
|
18258
18442
|
a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
18259
|
-
},
|
|
18443
|
+
}, Uv = (e, t, n, r) => {
|
|
18260
18444
|
let i = e._zod.def;
|
|
18261
|
-
|
|
18445
|
+
bv(i.innerType, t, r);
|
|
18262
18446
|
let a = t.seen.get(e);
|
|
18263
18447
|
a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
18264
|
-
},
|
|
18448
|
+
}, Wv = (e, t, n, r) => {
|
|
18265
18449
|
let i = e._zod.def;
|
|
18266
|
-
|
|
18450
|
+
bv(i.innerType, t, r);
|
|
18267
18451
|
let a = t.seen.get(e);
|
|
18268
18452
|
a.ref = i.innerType;
|
|
18269
18453
|
let o;
|
|
@@ -18273,46 +18457,46 @@ var xv = (e, t = {}) => (n) => {
|
|
|
18273
18457
|
throw Error("Dynamic catch values are not supported in JSON Schema");
|
|
18274
18458
|
}
|
|
18275
18459
|
n.default = o;
|
|
18276
|
-
},
|
|
18460
|
+
}, Gv = (e, t, n, r) => {
|
|
18277
18461
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
18278
|
-
|
|
18462
|
+
bv(o, t, r);
|
|
18279
18463
|
let s = t.seen.get(e);
|
|
18280
18464
|
s.ref = o;
|
|
18281
|
-
},
|
|
18465
|
+
}, Kv = (e, t, n, r) => {
|
|
18282
18466
|
let i = e._zod.def;
|
|
18283
|
-
|
|
18467
|
+
bv(i.innerType, t, r);
|
|
18284
18468
|
let a = t.seen.get(e);
|
|
18285
18469
|
a.ref = i.innerType, n.readOnly = !0;
|
|
18286
|
-
},
|
|
18470
|
+
}, qv = (e, t, n, r) => {
|
|
18287
18471
|
let i = e._zod.def;
|
|
18288
|
-
|
|
18472
|
+
bv(i.innerType, t, r);
|
|
18289
18473
|
let a = t.seen.get(e);
|
|
18290
18474
|
a.ref = i.innerType;
|
|
18291
|
-
},
|
|
18475
|
+
}, Jv = /*@__PURE__*/ K("ZodISODateTime", (e, t) => {
|
|
18292
18476
|
mg.init(e, t), Q.init(e, t);
|
|
18293
18477
|
});
|
|
18294
|
-
function
|
|
18295
|
-
return /* @__PURE__ */
|
|
18478
|
+
function Yv(e) {
|
|
18479
|
+
return /* @__PURE__ */ B_(Jv, e);
|
|
18296
18480
|
}
|
|
18297
|
-
var
|
|
18481
|
+
var Xv = /*@__PURE__*/ K("ZodISODate", (e, t) => {
|
|
18298
18482
|
hg.init(e, t), Q.init(e, t);
|
|
18299
18483
|
});
|
|
18300
|
-
function
|
|
18301
|
-
return /* @__PURE__ */
|
|
18484
|
+
function Zv(e) {
|
|
18485
|
+
return /* @__PURE__ */ V_(Xv, e);
|
|
18302
18486
|
}
|
|
18303
|
-
var
|
|
18487
|
+
var Qv = /*@__PURE__*/ K("ZodISOTime", (e, t) => {
|
|
18304
18488
|
gg.init(e, t), Q.init(e, t);
|
|
18305
18489
|
});
|
|
18306
|
-
function
|
|
18307
|
-
return /* @__PURE__ */
|
|
18490
|
+
function $v(e) {
|
|
18491
|
+
return /* @__PURE__ */ H_(Qv, e);
|
|
18308
18492
|
}
|
|
18309
|
-
var
|
|
18493
|
+
var ey = /*@__PURE__*/ K("ZodISODuration", (e, t) => {
|
|
18310
18494
|
_g.init(e, t), Q.init(e, t);
|
|
18311
18495
|
});
|
|
18312
|
-
function
|
|
18313
|
-
return /* @__PURE__ */
|
|
18496
|
+
function ty(e) {
|
|
18497
|
+
return /* @__PURE__ */ U_(ey, e);
|
|
18314
18498
|
}
|
|
18315
|
-
var
|
|
18499
|
+
var ny = /*@__PURE__*/ K("ZodError", (e, t) => {
|
|
18316
18500
|
Hm.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
18317
18501
|
format: { value: (t) => Gm(e, t) },
|
|
18318
18502
|
flatten: { value: (t) => Wm(e, t) },
|
|
@@ -18326,10 +18510,10 @@ var Zv = /*@__PURE__*/ K("ZodError", (e, t) => {
|
|
|
18326
18510
|
return e.issues.length === 0;
|
|
18327
18511
|
} }
|
|
18328
18512
|
});
|
|
18329
|
-
}, { Parent: Error }),
|
|
18330
|
-
function
|
|
18331
|
-
let r = Object.getPrototypeOf(e), i =
|
|
18332
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
18513
|
+
}, { Parent: Error }), ry = /* @__PURE__ */ Km(ny), iy = /* @__PURE__ */ qm(ny), ay = /* @__PURE__ */ Jm(ny), oy = /* @__PURE__ */ Xm(ny), sy = /* @__PURE__ */ Qm(ny), cy = /* @__PURE__ */ $m(ny), ly = /* @__PURE__ */ eh(ny), uy = /* @__PURE__ */ th(ny), dy = /* @__PURE__ */ nh(ny), fy = /* @__PURE__ */ rh(ny), py = /* @__PURE__ */ ih(ny), my = /* @__PURE__ */ ah(ny), hy = /* @__PURE__ */ new WeakMap();
|
|
18514
|
+
function gy(e, t, n) {
|
|
18515
|
+
let r = Object.getPrototypeOf(e), i = hy.get(r);
|
|
18516
|
+
if (i || (i = /* @__PURE__ */ new Set(), hy.set(r, i)), !i.has(t)) {
|
|
18333
18517
|
i.add(t);
|
|
18334
18518
|
for (let e in n) {
|
|
18335
18519
|
let t = n[e];
|
|
@@ -18358,9 +18542,9 @@ function dy(e, t, n) {
|
|
|
18358
18542
|
}
|
|
18359
18543
|
}
|
|
18360
18544
|
var Z = /*@__PURE__*/ K("ZodType", (e, t) => (Y.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
18361
|
-
input:
|
|
18362
|
-
output:
|
|
18363
|
-
} }), e.toJSONSchema =
|
|
18545
|
+
input: Tv(e, "input"),
|
|
18546
|
+
output: Tv(e, "output")
|
|
18547
|
+
} }), e.toJSONSchema = wv(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => ry(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => ay(e, t, n), e.parseAsync = async (t, n) => iy(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => oy(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => sy(e, t, n), e.decode = (t, n) => cy(e, t, n), e.encodeAsync = async (t, n) => ly(e, t, n), e.decodeAsync = async (t, n) => uy(e, t, n), e.safeEncode = (t, n) => dy(e, t, n), e.safeDecode = (t, n) => fy(e, t, n), e.safeEncodeAsync = async (t, n) => py(e, t, n), e.safeDecodeAsync = async (t, n) => my(e, t, n), gy(e, "ZodType", {
|
|
18364
18548
|
check(...e) {
|
|
18365
18549
|
let t = this.def;
|
|
18366
18550
|
return this.clone(mm(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
@@ -18382,64 +18566,64 @@ var Z = /*@__PURE__*/ K("ZodType", (e, t) => (Y.init(e, t), Object.assign(e["~st
|
|
|
18382
18566
|
return e.add(this, t), this;
|
|
18383
18567
|
},
|
|
18384
18568
|
refine(e, t) {
|
|
18385
|
-
return this.check(
|
|
18569
|
+
return this.check(Mb(e, t));
|
|
18386
18570
|
},
|
|
18387
18571
|
superRefine(e, t) {
|
|
18388
|
-
return this.check(
|
|
18572
|
+
return this.check(Nb(e, t));
|
|
18389
18573
|
},
|
|
18390
18574
|
overwrite(e) {
|
|
18391
|
-
return this.check(/* @__PURE__ */
|
|
18575
|
+
return this.check(/* @__PURE__ */ lv(e));
|
|
18392
18576
|
},
|
|
18393
18577
|
optional() {
|
|
18394
|
-
return
|
|
18578
|
+
return mb(this);
|
|
18395
18579
|
},
|
|
18396
18580
|
exactOptional() {
|
|
18397
|
-
return
|
|
18581
|
+
return gb(this);
|
|
18398
18582
|
},
|
|
18399
18583
|
nullable() {
|
|
18400
|
-
return
|
|
18584
|
+
return vb(this);
|
|
18401
18585
|
},
|
|
18402
18586
|
nullish() {
|
|
18403
|
-
return
|
|
18587
|
+
return mb(vb(this));
|
|
18404
18588
|
},
|
|
18405
18589
|
nonoptional(e) {
|
|
18406
|
-
return
|
|
18590
|
+
return wb(this, e);
|
|
18407
18591
|
},
|
|
18408
18592
|
array() {
|
|
18409
|
-
return
|
|
18593
|
+
return Xy(this);
|
|
18410
18594
|
},
|
|
18411
18595
|
or(e) {
|
|
18412
|
-
return
|
|
18596
|
+
return eb([this, e]);
|
|
18413
18597
|
},
|
|
18414
18598
|
and(e) {
|
|
18415
|
-
return
|
|
18599
|
+
return ib(this, e);
|
|
18416
18600
|
},
|
|
18417
18601
|
transform(e) {
|
|
18418
|
-
return
|
|
18602
|
+
return Ob(this, fb(e));
|
|
18419
18603
|
},
|
|
18420
18604
|
default(e) {
|
|
18421
|
-
return
|
|
18605
|
+
return bb(this, e);
|
|
18422
18606
|
},
|
|
18423
18607
|
prefault(e) {
|
|
18424
|
-
return
|
|
18608
|
+
return Sb(this, e);
|
|
18425
18609
|
},
|
|
18426
18610
|
catch(e) {
|
|
18427
|
-
return
|
|
18611
|
+
return Eb(this, e);
|
|
18428
18612
|
},
|
|
18429
18613
|
pipe(e) {
|
|
18430
|
-
return
|
|
18614
|
+
return Ob(this, e);
|
|
18431
18615
|
},
|
|
18432
18616
|
readonly() {
|
|
18433
|
-
return
|
|
18617
|
+
return Ab(this);
|
|
18434
18618
|
},
|
|
18435
18619
|
describe(e) {
|
|
18436
18620
|
let t = this.clone();
|
|
18437
|
-
return
|
|
18621
|
+
return g_.add(t, { description: e }), t;
|
|
18438
18622
|
},
|
|
18439
18623
|
meta(...e) {
|
|
18440
|
-
if (e.length === 0) return
|
|
18624
|
+
if (e.length === 0) return g_.get(this);
|
|
18441
18625
|
let t = this.clone();
|
|
18442
|
-
return
|
|
18626
|
+
return g_.add(t, e[0]), t;
|
|
18443
18627
|
},
|
|
18444
18628
|
isOptional() {
|
|
18445
18629
|
return this.safeParse(void 0).success;
|
|
@@ -18452,148 +18636,148 @@ var Z = /*@__PURE__*/ K("ZodType", (e, t) => (Y.init(e, t), Object.assign(e["~st
|
|
|
18452
18636
|
}
|
|
18453
18637
|
}), Object.defineProperty(e, "description", {
|
|
18454
18638
|
get() {
|
|
18455
|
-
return
|
|
18639
|
+
return g_.get(e)?.description;
|
|
18456
18640
|
},
|
|
18457
18641
|
configurable: !0
|
|
18458
|
-
}), e)),
|
|
18459
|
-
ng.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18642
|
+
}), e)), _y = /*@__PURE__*/ K("_ZodString", (e, t) => {
|
|
18643
|
+
ng.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dv(e, t, n, r);
|
|
18460
18644
|
let n = e._zod.bag;
|
|
18461
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null,
|
|
18645
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, gy(e, "_ZodString", {
|
|
18462
18646
|
regex(...e) {
|
|
18463
|
-
return this.check(/* @__PURE__ */
|
|
18647
|
+
return this.check(/* @__PURE__ */ rv(...e));
|
|
18464
18648
|
},
|
|
18465
18649
|
includes(...e) {
|
|
18466
|
-
return this.check(/* @__PURE__ */
|
|
18650
|
+
return this.check(/* @__PURE__ */ ov(...e));
|
|
18467
18651
|
},
|
|
18468
18652
|
startsWith(...e) {
|
|
18469
|
-
return this.check(/* @__PURE__ */
|
|
18653
|
+
return this.check(/* @__PURE__ */ sv(...e));
|
|
18470
18654
|
},
|
|
18471
18655
|
endsWith(...e) {
|
|
18472
|
-
return this.check(/* @__PURE__ */
|
|
18656
|
+
return this.check(/* @__PURE__ */ cv(...e));
|
|
18473
18657
|
},
|
|
18474
18658
|
min(...e) {
|
|
18475
|
-
return this.check(/* @__PURE__ */
|
|
18659
|
+
return this.check(/* @__PURE__ */ tv(...e));
|
|
18476
18660
|
},
|
|
18477
18661
|
max(...e) {
|
|
18478
|
-
return this.check(/* @__PURE__ */
|
|
18662
|
+
return this.check(/* @__PURE__ */ ev(...e));
|
|
18479
18663
|
},
|
|
18480
18664
|
length(...e) {
|
|
18481
|
-
return this.check(/* @__PURE__ */
|
|
18665
|
+
return this.check(/* @__PURE__ */ nv(...e));
|
|
18482
18666
|
},
|
|
18483
18667
|
nonempty(...e) {
|
|
18484
|
-
return this.check(/* @__PURE__ */
|
|
18668
|
+
return this.check(/* @__PURE__ */ tv(1, ...e));
|
|
18485
18669
|
},
|
|
18486
18670
|
lowercase(e) {
|
|
18487
|
-
return this.check(/* @__PURE__ */
|
|
18671
|
+
return this.check(/* @__PURE__ */ iv(e));
|
|
18488
18672
|
},
|
|
18489
18673
|
uppercase(e) {
|
|
18490
|
-
return this.check(/* @__PURE__ */
|
|
18674
|
+
return this.check(/* @__PURE__ */ av(e));
|
|
18491
18675
|
},
|
|
18492
18676
|
trim() {
|
|
18493
|
-
return this.check(/* @__PURE__ */
|
|
18677
|
+
return this.check(/* @__PURE__ */ dv());
|
|
18494
18678
|
},
|
|
18495
18679
|
normalize(...e) {
|
|
18496
|
-
return this.check(/* @__PURE__ */
|
|
18680
|
+
return this.check(/* @__PURE__ */ uv(...e));
|
|
18497
18681
|
},
|
|
18498
18682
|
toLowerCase() {
|
|
18499
|
-
return this.check(/* @__PURE__ */
|
|
18683
|
+
return this.check(/* @__PURE__ */ fv());
|
|
18500
18684
|
},
|
|
18501
18685
|
toUpperCase() {
|
|
18502
|
-
return this.check(/* @__PURE__ */
|
|
18686
|
+
return this.check(/* @__PURE__ */ pv());
|
|
18503
18687
|
},
|
|
18504
18688
|
slugify() {
|
|
18505
|
-
return this.check(/* @__PURE__ */
|
|
18689
|
+
return this.check(/* @__PURE__ */ mv());
|
|
18506
18690
|
}
|
|
18507
18691
|
});
|
|
18508
|
-
}),
|
|
18509
|
-
ng.init(e, t),
|
|
18692
|
+
}), vy = /*@__PURE__*/ K("ZodString", (e, t) => {
|
|
18693
|
+
ng.init(e, t), _y.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ v_(by, t)), e.url = (t) => e.check(/* @__PURE__ */ w_(Cy, t)), e.jwt = (t) => e.check(/* @__PURE__ */ z_(Ry, t)), e.emoji = (t) => e.check(/* @__PURE__ */ T_(wy, t)), e.guid = (t) => e.check(/* @__PURE__ */ y_(xy, t)), e.uuid = (t) => e.check(/* @__PURE__ */ b_(Sy, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ x_(Sy, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ S_(Sy, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ C_(Sy, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ E_(Ty, t)), e.guid = (t) => e.check(/* @__PURE__ */ y_(xy, t)), e.cuid = (t) => e.check(/* @__PURE__ */ D_(Ey, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ O_(Dy, t)), e.ulid = (t) => e.check(/* @__PURE__ */ k_(Oy, t)), e.base64 = (t) => e.check(/* @__PURE__ */ I_(Fy, t)), e.base64url = (t) => e.check(/* @__PURE__ */ L_(Iy, t)), e.xid = (t) => e.check(/* @__PURE__ */ A_(ky, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ j_(Ay, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ M_(jy, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ N_(My, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ P_(Ny, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ F_(Py, t)), e.e164 = (t) => e.check(/* @__PURE__ */ R_(Ly, t)), e.datetime = (t) => e.check(Yv(t)), e.date = (t) => e.check(Zv(t)), e.time = (t) => e.check($v(t)), e.duration = (t) => e.check(ty(t));
|
|
18510
18694
|
});
|
|
18511
|
-
function
|
|
18512
|
-
return /* @__PURE__ */
|
|
18695
|
+
function yy(e) {
|
|
18696
|
+
return /* @__PURE__ */ __(vy, e);
|
|
18513
18697
|
}
|
|
18514
18698
|
var Q = /*@__PURE__*/ K("ZodStringFormat", (e, t) => {
|
|
18515
|
-
X.init(e, t),
|
|
18516
|
-
}),
|
|
18699
|
+
X.init(e, t), _y.init(e, t);
|
|
18700
|
+
}), by = /*@__PURE__*/ K("ZodEmail", (e, t) => {
|
|
18517
18701
|
ag.init(e, t), Q.init(e, t);
|
|
18518
|
-
}),
|
|
18702
|
+
}), xy = /*@__PURE__*/ K("ZodGUID", (e, t) => {
|
|
18519
18703
|
rg.init(e, t), Q.init(e, t);
|
|
18520
|
-
}),
|
|
18704
|
+
}), Sy = /*@__PURE__*/ K("ZodUUID", (e, t) => {
|
|
18521
18705
|
ig.init(e, t), Q.init(e, t);
|
|
18522
|
-
}),
|
|
18706
|
+
}), Cy = /*@__PURE__*/ K("ZodURL", (e, t) => {
|
|
18523
18707
|
og.init(e, t), Q.init(e, t);
|
|
18524
|
-
}),
|
|
18708
|
+
}), wy = /*@__PURE__*/ K("ZodEmoji", (e, t) => {
|
|
18525
18709
|
sg.init(e, t), Q.init(e, t);
|
|
18526
|
-
}),
|
|
18710
|
+
}), Ty = /*@__PURE__*/ K("ZodNanoID", (e, t) => {
|
|
18527
18711
|
cg.init(e, t), Q.init(e, t);
|
|
18528
|
-
}),
|
|
18712
|
+
}), Ey = /*@__PURE__*/ K("ZodCUID", (e, t) => {
|
|
18529
18713
|
lg.init(e, t), Q.init(e, t);
|
|
18530
|
-
}),
|
|
18714
|
+
}), Dy = /*@__PURE__*/ K("ZodCUID2", (e, t) => {
|
|
18531
18715
|
ug.init(e, t), Q.init(e, t);
|
|
18532
|
-
}),
|
|
18716
|
+
}), Oy = /*@__PURE__*/ K("ZodULID", (e, t) => {
|
|
18533
18717
|
dg.init(e, t), Q.init(e, t);
|
|
18534
|
-
}),
|
|
18718
|
+
}), ky = /*@__PURE__*/ K("ZodXID", (e, t) => {
|
|
18535
18719
|
fg.init(e, t), Q.init(e, t);
|
|
18536
|
-
}),
|
|
18720
|
+
}), Ay = /*@__PURE__*/ K("ZodKSUID", (e, t) => {
|
|
18537
18721
|
pg.init(e, t), Q.init(e, t);
|
|
18538
|
-
}),
|
|
18722
|
+
}), jy = /*@__PURE__*/ K("ZodIPv4", (e, t) => {
|
|
18539
18723
|
vg.init(e, t), Q.init(e, t);
|
|
18540
|
-
}),
|
|
18724
|
+
}), My = /*@__PURE__*/ K("ZodIPv6", (e, t) => {
|
|
18541
18725
|
yg.init(e, t), Q.init(e, t);
|
|
18542
|
-
}),
|
|
18726
|
+
}), Ny = /*@__PURE__*/ K("ZodCIDRv4", (e, t) => {
|
|
18543
18727
|
bg.init(e, t), Q.init(e, t);
|
|
18544
|
-
}),
|
|
18728
|
+
}), Py = /*@__PURE__*/ K("ZodCIDRv6", (e, t) => {
|
|
18545
18729
|
xg.init(e, t), Q.init(e, t);
|
|
18546
|
-
}),
|
|
18730
|
+
}), Fy = /*@__PURE__*/ K("ZodBase64", (e, t) => {
|
|
18547
18731
|
Cg.init(e, t), Q.init(e, t);
|
|
18548
|
-
}),
|
|
18732
|
+
}), Iy = /*@__PURE__*/ K("ZodBase64URL", (e, t) => {
|
|
18549
18733
|
Tg.init(e, t), Q.init(e, t);
|
|
18550
|
-
}),
|
|
18734
|
+
}), Ly = /*@__PURE__*/ K("ZodE164", (e, t) => {
|
|
18551
18735
|
Eg.init(e, t), Q.init(e, t);
|
|
18552
|
-
}),
|
|
18736
|
+
}), Ry = /*@__PURE__*/ K("ZodJWT", (e, t) => {
|
|
18553
18737
|
Og.init(e, t), Q.init(e, t);
|
|
18554
|
-
}),
|
|
18555
|
-
kg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18738
|
+
}), zy = /*@__PURE__*/ K("ZodNumber", (e, t) => {
|
|
18739
|
+
kg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ov(e, t, n, r), gy(e, "ZodNumber", {
|
|
18556
18740
|
gt(e, t) {
|
|
18557
|
-
return this.check(/* @__PURE__ */
|
|
18741
|
+
return this.check(/* @__PURE__ */ Z_(e, t));
|
|
18558
18742
|
},
|
|
18559
18743
|
gte(e, t) {
|
|
18560
|
-
return this.check(/* @__PURE__ */
|
|
18744
|
+
return this.check(/* @__PURE__ */ Q_(e, t));
|
|
18561
18745
|
},
|
|
18562
18746
|
min(e, t) {
|
|
18563
|
-
return this.check(/* @__PURE__ */
|
|
18747
|
+
return this.check(/* @__PURE__ */ Q_(e, t));
|
|
18564
18748
|
},
|
|
18565
18749
|
lt(e, t) {
|
|
18566
|
-
return this.check(/* @__PURE__ */
|
|
18750
|
+
return this.check(/* @__PURE__ */ Y_(e, t));
|
|
18567
18751
|
},
|
|
18568
18752
|
lte(e, t) {
|
|
18569
|
-
return this.check(/* @__PURE__ */
|
|
18753
|
+
return this.check(/* @__PURE__ */ X_(e, t));
|
|
18570
18754
|
},
|
|
18571
18755
|
max(e, t) {
|
|
18572
|
-
return this.check(/* @__PURE__ */
|
|
18756
|
+
return this.check(/* @__PURE__ */ X_(e, t));
|
|
18573
18757
|
},
|
|
18574
18758
|
int(e) {
|
|
18575
|
-
return this.check(
|
|
18759
|
+
return this.check(Hy(e));
|
|
18576
18760
|
},
|
|
18577
18761
|
safe(e) {
|
|
18578
|
-
return this.check(
|
|
18762
|
+
return this.check(Hy(e));
|
|
18579
18763
|
},
|
|
18580
18764
|
positive(e) {
|
|
18581
|
-
return this.check(/* @__PURE__ */
|
|
18765
|
+
return this.check(/* @__PURE__ */ Z_(0, e));
|
|
18582
18766
|
},
|
|
18583
18767
|
nonnegative(e) {
|
|
18584
|
-
return this.check(/* @__PURE__ */
|
|
18768
|
+
return this.check(/* @__PURE__ */ Q_(0, e));
|
|
18585
18769
|
},
|
|
18586
18770
|
negative(e) {
|
|
18587
|
-
return this.check(/* @__PURE__ */
|
|
18771
|
+
return this.check(/* @__PURE__ */ Y_(0, e));
|
|
18588
18772
|
},
|
|
18589
18773
|
nonpositive(e) {
|
|
18590
|
-
return this.check(/* @__PURE__ */
|
|
18774
|
+
return this.check(/* @__PURE__ */ X_(0, e));
|
|
18591
18775
|
},
|
|
18592
18776
|
multipleOf(e, t) {
|
|
18593
|
-
return this.check(/* @__PURE__ */
|
|
18777
|
+
return this.check(/* @__PURE__ */ $_(e, t));
|
|
18594
18778
|
},
|
|
18595
18779
|
step(e, t) {
|
|
18596
|
-
return this.check(/* @__PURE__ */
|
|
18780
|
+
return this.check(/* @__PURE__ */ $_(e, t));
|
|
18597
18781
|
},
|
|
18598
18782
|
finite() {
|
|
18599
18783
|
return this;
|
|
@@ -18602,59 +18786,59 @@ var Q = /*@__PURE__*/ K("ZodStringFormat", (e, t) => {
|
|
|
18602
18786
|
let n = e._zod.bag;
|
|
18603
18787
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
18604
18788
|
});
|
|
18605
|
-
function
|
|
18606
|
-
return /* @__PURE__ */
|
|
18789
|
+
function By(e) {
|
|
18790
|
+
return /* @__PURE__ */ W_(zy, e);
|
|
18607
18791
|
}
|
|
18608
|
-
var
|
|
18609
|
-
Ag.init(e, t),
|
|
18792
|
+
var Vy = /*@__PURE__*/ K("ZodNumberFormat", (e, t) => {
|
|
18793
|
+
Ag.init(e, t), zy.init(e, t);
|
|
18610
18794
|
});
|
|
18611
|
-
function
|
|
18612
|
-
return /* @__PURE__ */
|
|
18795
|
+
function Hy(e) {
|
|
18796
|
+
return /* @__PURE__ */ G_(Vy, e);
|
|
18613
18797
|
}
|
|
18614
|
-
var
|
|
18615
|
-
jg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18798
|
+
var Uy = /*@__PURE__*/ K("ZodBoolean", (e, t) => {
|
|
18799
|
+
jg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => kv(e, t, n, r);
|
|
18616
18800
|
});
|
|
18617
|
-
function
|
|
18618
|
-
return /* @__PURE__ */
|
|
18801
|
+
function Wy(e) {
|
|
18802
|
+
return /* @__PURE__ */ K_(Uy, e);
|
|
18619
18803
|
}
|
|
18620
|
-
var
|
|
18804
|
+
var Gy = /*@__PURE__*/ K("ZodUnknown", (e, t) => {
|
|
18621
18805
|
Mg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
18622
18806
|
});
|
|
18623
|
-
function
|
|
18624
|
-
return /* @__PURE__ */
|
|
18807
|
+
function Ky() {
|
|
18808
|
+
return /* @__PURE__ */ q_(Gy);
|
|
18625
18809
|
}
|
|
18626
|
-
var
|
|
18627
|
-
Ng.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18810
|
+
var qy = /*@__PURE__*/ K("ZodNever", (e, t) => {
|
|
18811
|
+
Ng.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Av(e, t, n, r);
|
|
18628
18812
|
});
|
|
18629
|
-
function
|
|
18630
|
-
return /* @__PURE__ */
|
|
18813
|
+
function Jy(e) {
|
|
18814
|
+
return /* @__PURE__ */ J_(qy, e);
|
|
18631
18815
|
}
|
|
18632
|
-
var
|
|
18633
|
-
Fg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18816
|
+
var Yy = /*@__PURE__*/ K("ZodArray", (e, t) => {
|
|
18817
|
+
Fg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fv(e, t, n, r), e.element = t.element, gy(e, "ZodArray", {
|
|
18634
18818
|
min(e, t) {
|
|
18635
|
-
return this.check(/* @__PURE__ */
|
|
18819
|
+
return this.check(/* @__PURE__ */ tv(e, t));
|
|
18636
18820
|
},
|
|
18637
18821
|
nonempty(e) {
|
|
18638
|
-
return this.check(/* @__PURE__ */
|
|
18822
|
+
return this.check(/* @__PURE__ */ tv(1, e));
|
|
18639
18823
|
},
|
|
18640
18824
|
max(e, t) {
|
|
18641
|
-
return this.check(/* @__PURE__ */
|
|
18825
|
+
return this.check(/* @__PURE__ */ ev(e, t));
|
|
18642
18826
|
},
|
|
18643
18827
|
length(e, t) {
|
|
18644
|
-
return this.check(/* @__PURE__ */
|
|
18828
|
+
return this.check(/* @__PURE__ */ nv(e, t));
|
|
18645
18829
|
},
|
|
18646
18830
|
unwrap() {
|
|
18647
18831
|
return this.element;
|
|
18648
18832
|
}
|
|
18649
18833
|
});
|
|
18650
18834
|
});
|
|
18651
|
-
function
|
|
18652
|
-
return /* @__PURE__ */
|
|
18835
|
+
function Xy(e, t) {
|
|
18836
|
+
return /* @__PURE__ */ hv(Yy, e, t);
|
|
18653
18837
|
}
|
|
18654
|
-
var
|
|
18655
|
-
Bg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18838
|
+
var Zy = /*@__PURE__*/ K("ZodObject", (e, t) => {
|
|
18839
|
+
Bg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Iv(e, t, n, r), q(e, "shape", () => t.shape), gy(e, "ZodObject", {
|
|
18656
18840
|
keyof() {
|
|
18657
|
-
return
|
|
18841
|
+
return cb(Object.keys(this._zod.def.shape));
|
|
18658
18842
|
},
|
|
18659
18843
|
catchall(e) {
|
|
18660
18844
|
return this.clone({
|
|
@@ -18665,19 +18849,19 @@ var Ky = /*@__PURE__*/ K("ZodObject", (e, t) => {
|
|
|
18665
18849
|
passthrough() {
|
|
18666
18850
|
return this.clone({
|
|
18667
18851
|
...this._zod.def,
|
|
18668
|
-
catchall:
|
|
18852
|
+
catchall: Ky()
|
|
18669
18853
|
});
|
|
18670
18854
|
},
|
|
18671
18855
|
loose() {
|
|
18672
18856
|
return this.clone({
|
|
18673
18857
|
...this._zod.def,
|
|
18674
|
-
catchall:
|
|
18858
|
+
catchall: Ky()
|
|
18675
18859
|
});
|
|
18676
18860
|
},
|
|
18677
18861
|
strict() {
|
|
18678
18862
|
return this.clone({
|
|
18679
18863
|
...this._zod.def,
|
|
18680
|
-
catchall:
|
|
18864
|
+
catchall: Jy()
|
|
18681
18865
|
});
|
|
18682
18866
|
},
|
|
18683
18867
|
strip() {
|
|
@@ -18702,48 +18886,75 @@ var Ky = /*@__PURE__*/ K("ZodObject", (e, t) => {
|
|
|
18702
18886
|
return Om(this, e);
|
|
18703
18887
|
},
|
|
18704
18888
|
partial(...e) {
|
|
18705
|
-
return Mm(
|
|
18889
|
+
return Mm(pb, this, e[0]);
|
|
18706
18890
|
},
|
|
18707
18891
|
required(...e) {
|
|
18708
|
-
return Nm(
|
|
18892
|
+
return Nm(Cb, this, e[0]);
|
|
18709
18893
|
}
|
|
18710
18894
|
});
|
|
18711
18895
|
});
|
|
18712
|
-
function
|
|
18713
|
-
return new
|
|
18896
|
+
function Qy(e, t) {
|
|
18897
|
+
return new Zy({
|
|
18714
18898
|
type: "object",
|
|
18715
18899
|
shape: e ?? {},
|
|
18716
18900
|
...J(t)
|
|
18717
18901
|
});
|
|
18718
18902
|
}
|
|
18719
|
-
var
|
|
18720
|
-
Hg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) =>
|
|
18903
|
+
var $y = /*@__PURE__*/ K("ZodUnion", (e, t) => {
|
|
18904
|
+
Hg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lv(e, t, n, r), e.options = t.options;
|
|
18721
18905
|
});
|
|
18722
|
-
function
|
|
18723
|
-
return new
|
|
18906
|
+
function eb(e, t) {
|
|
18907
|
+
return new $y({
|
|
18724
18908
|
type: "union",
|
|
18725
18909
|
options: e,
|
|
18726
18910
|
...J(t)
|
|
18727
18911
|
});
|
|
18728
18912
|
}
|
|
18729
|
-
var
|
|
18730
|
-
|
|
18913
|
+
var tb = /*@__PURE__*/ K("ZodDiscriminatedUnion", (e, t) => {
|
|
18914
|
+
$y.init(e, t), Ug.init(e, t);
|
|
18731
18915
|
});
|
|
18732
|
-
function
|
|
18733
|
-
return new
|
|
18916
|
+
function nb(e, t, n) {
|
|
18917
|
+
return new tb({
|
|
18918
|
+
type: "union",
|
|
18919
|
+
options: t,
|
|
18920
|
+
discriminator: e,
|
|
18921
|
+
...J(n)
|
|
18922
|
+
});
|
|
18923
|
+
}
|
|
18924
|
+
var rb = /*@__PURE__*/ K("ZodIntersection", (e, t) => {
|
|
18925
|
+
Wg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Rv(e, t, n, r);
|
|
18926
|
+
});
|
|
18927
|
+
function ib(e, t) {
|
|
18928
|
+
return new rb({
|
|
18734
18929
|
type: "intersection",
|
|
18735
18930
|
left: e,
|
|
18736
18931
|
right: t
|
|
18737
18932
|
});
|
|
18738
18933
|
}
|
|
18739
|
-
var
|
|
18740
|
-
|
|
18934
|
+
var ab = /*@__PURE__*/ K("ZodRecord", (e, t) => {
|
|
18935
|
+
qg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => zv(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
|
|
18936
|
+
});
|
|
18937
|
+
function ob(e, t, n) {
|
|
18938
|
+
return !t || !t._zod ? new ab({
|
|
18939
|
+
type: "record",
|
|
18940
|
+
keyType: yy(),
|
|
18941
|
+
valueType: e,
|
|
18942
|
+
...J(t)
|
|
18943
|
+
}) : new ab({
|
|
18944
|
+
type: "record",
|
|
18945
|
+
keyType: e,
|
|
18946
|
+
valueType: t,
|
|
18947
|
+
...J(n)
|
|
18948
|
+
});
|
|
18949
|
+
}
|
|
18950
|
+
var sb = /*@__PURE__*/ K("ZodEnum", (e, t) => {
|
|
18951
|
+
Jg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => jv(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
18741
18952
|
let n = new Set(Object.keys(t.entries));
|
|
18742
18953
|
e.extract = (e, r) => {
|
|
18743
18954
|
let i = {};
|
|
18744
18955
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
18745
18956
|
else throw Error(`Key ${r} not found in enum`);
|
|
18746
|
-
return new
|
|
18957
|
+
return new sb({
|
|
18747
18958
|
...t,
|
|
18748
18959
|
checks: [],
|
|
18749
18960
|
...J(r),
|
|
@@ -18753,7 +18964,7 @@ var Qy = /*@__PURE__*/ K("ZodEnum", (e, t) => {
|
|
|
18753
18964
|
let i = { ...t.entries };
|
|
18754
18965
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
18755
18966
|
else throw Error(`Key ${t} not found in enum`);
|
|
18756
|
-
return new
|
|
18967
|
+
return new sb({
|
|
18757
18968
|
...t,
|
|
18758
18969
|
checks: [],
|
|
18759
18970
|
...J(r),
|
|
@@ -18761,15 +18972,28 @@ var Qy = /*@__PURE__*/ K("ZodEnum", (e, t) => {
|
|
|
18761
18972
|
});
|
|
18762
18973
|
};
|
|
18763
18974
|
});
|
|
18764
|
-
function
|
|
18765
|
-
return new
|
|
18975
|
+
function cb(e, t) {
|
|
18976
|
+
return new sb({
|
|
18766
18977
|
type: "enum",
|
|
18767
18978
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
18768
18979
|
...J(t)
|
|
18769
18980
|
});
|
|
18770
18981
|
}
|
|
18771
|
-
var
|
|
18772
|
-
|
|
18982
|
+
var lb = /*@__PURE__*/ K("ZodLiteral", (e, t) => {
|
|
18983
|
+
Yg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mv(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
|
|
18984
|
+
if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
18985
|
+
return t.values[0];
|
|
18986
|
+
} });
|
|
18987
|
+
});
|
|
18988
|
+
function ub(e, t) {
|
|
18989
|
+
return new lb({
|
|
18990
|
+
type: "literal",
|
|
18991
|
+
values: Array.isArray(e) ? e : [e],
|
|
18992
|
+
...J(t)
|
|
18993
|
+
});
|
|
18994
|
+
}
|
|
18995
|
+
var db = /*@__PURE__*/ K("ZodTransform", (e, t) => {
|
|
18996
|
+
Xg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pv(e, t, n, r), e._zod.parse = (n, r) => {
|
|
18773
18997
|
if (r.direction === "backward") throw new rm(e.constructor.name);
|
|
18774
18998
|
n.addIssue = (r) => {
|
|
18775
18999
|
if (typeof r == "string") n.issues.push(Bm(r, n.value, t));
|
|
@@ -18782,44 +19006,44 @@ var eb = /*@__PURE__*/ K("ZodTransform", (e, t) => {
|
|
|
18782
19006
|
return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
|
|
18783
19007
|
};
|
|
18784
19008
|
});
|
|
18785
|
-
function
|
|
18786
|
-
return new
|
|
19009
|
+
function fb(e) {
|
|
19010
|
+
return new db({
|
|
18787
19011
|
type: "transform",
|
|
18788
19012
|
transform: e
|
|
18789
19013
|
});
|
|
18790
19014
|
}
|
|
18791
|
-
var
|
|
18792
|
-
|
|
19015
|
+
var pb = /*@__PURE__*/ K("ZodOptional", (e, t) => {
|
|
19016
|
+
Qg.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => qv(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
18793
19017
|
});
|
|
18794
|
-
function
|
|
18795
|
-
return new
|
|
19018
|
+
function mb(e) {
|
|
19019
|
+
return new pb({
|
|
18796
19020
|
type: "optional",
|
|
18797
19021
|
innerType: e
|
|
18798
19022
|
});
|
|
18799
19023
|
}
|
|
18800
|
-
var
|
|
18801
|
-
|
|
19024
|
+
var hb = /*@__PURE__*/ K("ZodExactOptional", (e, t) => {
|
|
19025
|
+
$g.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => qv(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
18802
19026
|
});
|
|
18803
|
-
function
|
|
18804
|
-
return new
|
|
19027
|
+
function gb(e) {
|
|
19028
|
+
return new hb({
|
|
18805
19029
|
type: "optional",
|
|
18806
19030
|
innerType: e
|
|
18807
19031
|
});
|
|
18808
19032
|
}
|
|
18809
|
-
var
|
|
18810
|
-
|
|
19033
|
+
var _b = /*@__PURE__*/ K("ZodNullable", (e, t) => {
|
|
19034
|
+
e_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Bv(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
18811
19035
|
});
|
|
18812
|
-
function
|
|
18813
|
-
return new
|
|
19036
|
+
function vb(e) {
|
|
19037
|
+
return new _b({
|
|
18814
19038
|
type: "nullable",
|
|
18815
19039
|
innerType: e
|
|
18816
19040
|
});
|
|
18817
19041
|
}
|
|
18818
|
-
var
|
|
18819
|
-
|
|
19042
|
+
var yb = /*@__PURE__*/ K("ZodDefault", (e, t) => {
|
|
19043
|
+
t_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Hv(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
18820
19044
|
});
|
|
18821
|
-
function
|
|
18822
|
-
return new
|
|
19045
|
+
function bb(e, t) {
|
|
19046
|
+
return new yb({
|
|
18823
19047
|
type: "default",
|
|
18824
19048
|
innerType: e,
|
|
18825
19049
|
get defaultValue() {
|
|
@@ -18827,11 +19051,11 @@ function lb(e, t) {
|
|
|
18827
19051
|
}
|
|
18828
19052
|
});
|
|
18829
19053
|
}
|
|
18830
|
-
var
|
|
18831
|
-
|
|
19054
|
+
var xb = /*@__PURE__*/ K("ZodPrefault", (e, t) => {
|
|
19055
|
+
r_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Uv(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
18832
19056
|
});
|
|
18833
|
-
function
|
|
18834
|
-
return new
|
|
19057
|
+
function Sb(e, t) {
|
|
19058
|
+
return new xb({
|
|
18835
19059
|
type: "prefault",
|
|
18836
19060
|
innerType: e,
|
|
18837
19061
|
get defaultValue() {
|
|
@@ -18839,75 +19063,75 @@ function db(e, t) {
|
|
|
18839
19063
|
}
|
|
18840
19064
|
});
|
|
18841
19065
|
}
|
|
18842
|
-
var
|
|
18843
|
-
|
|
19066
|
+
var Cb = /*@__PURE__*/ K("ZodNonOptional", (e, t) => {
|
|
19067
|
+
i_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vv(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
18844
19068
|
});
|
|
18845
|
-
function
|
|
18846
|
-
return new
|
|
19069
|
+
function wb(e, t) {
|
|
19070
|
+
return new Cb({
|
|
18847
19071
|
type: "nonoptional",
|
|
18848
19072
|
innerType: e,
|
|
18849
19073
|
...J(t)
|
|
18850
19074
|
});
|
|
18851
19075
|
}
|
|
18852
|
-
var
|
|
18853
|
-
|
|
19076
|
+
var Tb = /*@__PURE__*/ K("ZodCatch", (e, t) => {
|
|
19077
|
+
o_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wv(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
18854
19078
|
});
|
|
18855
|
-
function
|
|
18856
|
-
return new
|
|
19079
|
+
function Eb(e, t) {
|
|
19080
|
+
return new Tb({
|
|
18857
19081
|
type: "catch",
|
|
18858
19082
|
innerType: e,
|
|
18859
19083
|
catchValue: typeof t == "function" ? t : () => t
|
|
18860
19084
|
});
|
|
18861
19085
|
}
|
|
18862
|
-
var
|
|
18863
|
-
|
|
19086
|
+
var Db = /*@__PURE__*/ K("ZodPipe", (e, t) => {
|
|
19087
|
+
s_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Gv(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
18864
19088
|
});
|
|
18865
|
-
function
|
|
18866
|
-
return new
|
|
19089
|
+
function Ob(e, t) {
|
|
19090
|
+
return new Db({
|
|
18867
19091
|
type: "pipe",
|
|
18868
19092
|
in: e,
|
|
18869
19093
|
out: t
|
|
18870
19094
|
});
|
|
18871
19095
|
}
|
|
18872
|
-
var
|
|
18873
|
-
|
|
19096
|
+
var kb = /*@__PURE__*/ K("ZodReadonly", (e, t) => {
|
|
19097
|
+
l_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Kv(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
18874
19098
|
});
|
|
18875
|
-
function
|
|
18876
|
-
return new
|
|
19099
|
+
function Ab(e) {
|
|
19100
|
+
return new kb({
|
|
18877
19101
|
type: "readonly",
|
|
18878
19102
|
innerType: e
|
|
18879
19103
|
});
|
|
18880
19104
|
}
|
|
18881
|
-
var
|
|
18882
|
-
|
|
19105
|
+
var jb = /*@__PURE__*/ K("ZodCustom", (e, t) => {
|
|
19106
|
+
d_.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Nv(e, t, n, r);
|
|
18883
19107
|
});
|
|
18884
|
-
function
|
|
18885
|
-
return /* @__PURE__ */
|
|
19108
|
+
function Mb(e, t = {}) {
|
|
19109
|
+
return /* @__PURE__ */ gv(jb, e, t);
|
|
18886
19110
|
}
|
|
18887
|
-
function
|
|
18888
|
-
return /* @__PURE__ */
|
|
19111
|
+
function Nb(e, t) {
|
|
19112
|
+
return /* @__PURE__ */ _v(e, t);
|
|
18889
19113
|
}
|
|
18890
19114
|
//#endregion
|
|
18891
19115
|
//#region ../ui-library/src/composites/device-selector-picker.tsx
|
|
18892
|
-
e(), e(), e(), e(), e(), e(), d(null), e(), new Set([D.Sensor, D.Presence]), e(), d({}), e(), e(), Object.freeze([]), e(), e(), e(), _e("camstack:device-quick-detail", null), e(), e(), e(), e(), e(), e(), e(), e(), e(),
|
|
18893
|
-
id:
|
|
18894
|
-
stableId:
|
|
18895
|
-
addonId:
|
|
18896
|
-
type:
|
|
18897
|
-
name:
|
|
18898
|
-
online:
|
|
18899
|
-
disabled:
|
|
18900
|
-
parentDeviceId:
|
|
18901
|
-
role:
|
|
18902
|
-
features:
|
|
18903
|
-
isCamera:
|
|
19116
|
+
e(), e(), e(), e(), e(), e(), d(null), e(), new Set([D.Sensor, D.Presence]), e(), d({}), e(), e(), Object.freeze([]), e(), e(), e(), _e("camstack:device-quick-detail", null), e(), e(), e(), e(), e(), e(), e(), e(), e(), Qy({
|
|
19117
|
+
id: By(),
|
|
19118
|
+
stableId: yy(),
|
|
19119
|
+
addonId: yy(),
|
|
19120
|
+
type: yy(),
|
|
19121
|
+
name: yy(),
|
|
19122
|
+
online: Wy(),
|
|
19123
|
+
disabled: Wy(),
|
|
19124
|
+
parentDeviceId: By().nullable(),
|
|
19125
|
+
role: yy().nullable().optional(),
|
|
19126
|
+
features: Xy(yy()).optional(),
|
|
19127
|
+
isCamera: Wy().optional()
|
|
18904
19128
|
}), e();
|
|
18905
19129
|
//#endregion
|
|
18906
19130
|
//#region ../ui-library/src/composites/pipeline-matrix-shared.tsx
|
|
18907
|
-
function
|
|
19131
|
+
function Pb(e) {
|
|
18908
19132
|
return e.deviceKey === void 0 ? e.agentNodeId : `${e.agentNodeId}::${e.deviceKey}`;
|
|
18909
19133
|
}
|
|
18910
|
-
function
|
|
19134
|
+
function Fb(e) {
|
|
18911
19135
|
let t = [];
|
|
18912
19136
|
for (let n of e) {
|
|
18913
19137
|
let e = t[t.length - 1];
|
|
@@ -18927,7 +19151,7 @@ function wb(e) {
|
|
|
18927
19151
|
}
|
|
18928
19152
|
return t;
|
|
18929
19153
|
}
|
|
18930
|
-
function
|
|
19154
|
+
function Ib(e) {
|
|
18931
19155
|
let t = [], n = (e, r) => {
|
|
18932
19156
|
for (let i of e) t.push({
|
|
18933
19157
|
node: i,
|
|
@@ -18936,10 +19160,10 @@ function Tb(e) {
|
|
|
18936
19160
|
};
|
|
18937
19161
|
return n(e, 0), t;
|
|
18938
19162
|
}
|
|
18939
|
-
function
|
|
19163
|
+
function Lb(e, t, n, r = 208, i = t) {
|
|
18940
19164
|
return e <= 0 ? !1 : t <= 1 ? e < n + r * i : e < n + r * 2;
|
|
18941
19165
|
}
|
|
18942
|
-
var
|
|
19166
|
+
var Rb = {
|
|
18943
19167
|
detector: {
|
|
18944
19168
|
labelKey: "uiLibrary.pipelineMatrix.slotDetector",
|
|
18945
19169
|
labelFallback: "detector",
|
|
@@ -18966,20 +19190,20 @@ var Db = {
|
|
|
18966
19190
|
className: "text-pink-500"
|
|
18967
19191
|
}
|
|
18968
19192
|
};
|
|
18969
|
-
function
|
|
18970
|
-
let t = S(), n =
|
|
19193
|
+
function zb({ slot: e }) {
|
|
19194
|
+
let t = S(), n = Rb[e] ?? Rb.classifier;
|
|
18971
19195
|
return /* @__PURE__ */ v("span", {
|
|
18972
19196
|
className: H("text-[9px] font-semibold uppercase tracking-widest leading-none", n.className),
|
|
18973
19197
|
children: t(n.labelKey, n.labelFallback)
|
|
18974
19198
|
});
|
|
18975
19199
|
}
|
|
18976
|
-
var
|
|
18977
|
-
function
|
|
19200
|
+
var Bb = "inline-flex items-center rounded bg-muted px-1.5 py-px text-[9px] font-medium text-foreground-subtle";
|
|
19201
|
+
function Vb({ inputs: e, outputs: t }) {
|
|
18978
19202
|
return e.length === 0 && t.length === 0 ? null : /* @__PURE__ */ y("span", {
|
|
18979
19203
|
className: "inline-flex items-center gap-1 flex-wrap",
|
|
18980
19204
|
children: [
|
|
18981
19205
|
e.map((e) => /* @__PURE__ */ v("span", {
|
|
18982
|
-
className: H(
|
|
19206
|
+
className: H(Bb, "bg-blue-500/10 text-blue-500"),
|
|
18983
19207
|
children: e
|
|
18984
19208
|
}, `in-${e}`)),
|
|
18985
19209
|
e.length > 0 && t.length > 0 && /* @__PURE__ */ v("span", {
|
|
@@ -18987,13 +19211,13 @@ function Ab({ inputs: e, outputs: t }) {
|
|
|
18987
19211
|
children: "→"
|
|
18988
19212
|
}),
|
|
18989
19213
|
t.map((e) => /* @__PURE__ */ v("span", {
|
|
18990
|
-
className: H(
|
|
19214
|
+
className: H(Bb, "bg-emerald-500/10 text-emerald-500"),
|
|
18991
19215
|
children: e
|
|
18992
19216
|
}, `out-${e}`))
|
|
18993
19217
|
]
|
|
18994
19218
|
});
|
|
18995
19219
|
}
|
|
18996
|
-
function
|
|
19220
|
+
function Hb({ column: e }) {
|
|
18997
19221
|
let t = S(), n = e.deviceLabel ?? e.deviceKey;
|
|
18998
19222
|
return /* @__PURE__ */ y(b, { children: [
|
|
18999
19223
|
(n !== void 0 || e.disabled === !0) && /* @__PURE__ */ y("div", {
|
|
@@ -19017,7 +19241,7 @@ function jb({ column: e }) {
|
|
|
19017
19241
|
})
|
|
19018
19242
|
] });
|
|
19019
19243
|
}
|
|
19020
|
-
function
|
|
19244
|
+
function Ub({ group: e }) {
|
|
19021
19245
|
let t = e.columns[0]?.nodeLabel ?? e.agentNodeId;
|
|
19022
19246
|
return /* @__PURE__ */ y("div", {
|
|
19023
19247
|
role: "columnheader",
|
|
@@ -19031,27 +19255,27 @@ function Mb({ group: e }) {
|
|
|
19031
19255
|
children: e.columns.map((e, t) => /* @__PURE__ */ v("div", {
|
|
19032
19256
|
className: H("min-w-0 flex-1 px-3 py-1", t > 0 && "border-l border-border/50", e.disabled === !0 && "opacity-70"),
|
|
19033
19257
|
title: `${e.deviceLabel ?? e.deviceKey} · ${e.engineLabel}${e.detail ? ` · ${e.detail}` : ""}`,
|
|
19034
|
-
children: /* @__PURE__ */ v(
|
|
19035
|
-
},
|
|
19258
|
+
children: /* @__PURE__ */ v(Hb, { column: e })
|
|
19259
|
+
}, Pb(e)))
|
|
19036
19260
|
})]
|
|
19037
19261
|
});
|
|
19038
19262
|
}
|
|
19039
|
-
function
|
|
19263
|
+
function Wb({ node: e }) {
|
|
19040
19264
|
return /* @__PURE__ */ y("div", {
|
|
19041
19265
|
className: "flex flex-col gap-1 min-w-0 flex-1",
|
|
19042
|
-
children: [/* @__PURE__ */ v(
|
|
19266
|
+
children: [/* @__PURE__ */ v(zb, { slot: e.slot }), /* @__PURE__ */ y("div", {
|
|
19043
19267
|
className: "flex items-center gap-2 flex-wrap",
|
|
19044
19268
|
children: [/* @__PURE__ */ v("span", {
|
|
19045
19269
|
className: "font-semibold truncate",
|
|
19046
19270
|
children: e.addonName
|
|
19047
|
-
}), /* @__PURE__ */ v(
|
|
19271
|
+
}), /* @__PURE__ */ v(Vb, {
|
|
19048
19272
|
inputs: e.inputClasses,
|
|
19049
19273
|
outputs: e.outputClasses
|
|
19050
19274
|
})]
|
|
19051
19275
|
})]
|
|
19052
19276
|
});
|
|
19053
19277
|
}
|
|
19054
|
-
function
|
|
19278
|
+
function Gb(e, t) {
|
|
19055
19279
|
return t.kind === "enabled" ? /* @__PURE__ */ y("span", {
|
|
19056
19280
|
className: "flex min-w-0 items-center gap-1",
|
|
19057
19281
|
title: t.overridden ? e("uiLibrary.pipelineMatrix.override", "override") : void 0,
|
|
@@ -19117,14 +19341,14 @@ function Pb(e, t) {
|
|
|
19117
19341
|
})]
|
|
19118
19342
|
});
|
|
19119
19343
|
}
|
|
19120
|
-
function
|
|
19344
|
+
function Kb(e, t, n) {
|
|
19121
19345
|
return H("text-left text-xs hover:bg-muted/40", e.kind === "enabled" && "bg-emerald-500/5", e.kind === "skip" && "bg-amber-500/5", e.kind === "na" && "bg-muted/30", t && "ring-2 ring-primary ring-inset", n);
|
|
19122
19346
|
}
|
|
19123
19347
|
//#endregion
|
|
19124
19348
|
//#region ../ui-library/src/composites/device-step-matrix.tsx
|
|
19125
19349
|
e();
|
|
19126
|
-
var
|
|
19127
|
-
function
|
|
19350
|
+
var qb = 18, Jb = qb * 16, Yb = 11;
|
|
19351
|
+
function Xb(e, t, n, r) {
|
|
19128
19352
|
let i = (e, t) => ({
|
|
19129
19353
|
r: Math.max(0, Math.min(n - 1, e)),
|
|
19130
19354
|
c: Math.max(0, Math.min(r - 1, t))
|
|
@@ -19141,7 +19365,7 @@ function zb(e, t, n, r) {
|
|
|
19141
19365
|
default: return null;
|
|
19142
19366
|
}
|
|
19143
19367
|
}
|
|
19144
|
-
function
|
|
19368
|
+
function Zb({ node: e, depth: t, r: n, tabbable: r, selected: i, badge: a, onClick: o, sticky: s }) {
|
|
19145
19369
|
return /* @__PURE__ */ v("div", {
|
|
19146
19370
|
role: "rowheader",
|
|
19147
19371
|
className: H("min-w-0 border-b border-border bg-surface", s && "sticky left-0 z-10"),
|
|
@@ -19156,11 +19380,11 @@ function Bb({ node: e, depth: t, r: n, tabbable: r, selected: i, badge: a, onCli
|
|
|
19156
19380
|
onClick: o ? (e) => o(e.detail === 0) : void 0,
|
|
19157
19381
|
className: H("flex h-full w-full min-w-0 items-start gap-2 px-3 py-2 text-left text-xs outline-none", "hover:bg-muted/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary", i && "bg-primary/10 shadow-[inset_3px_0_0_var(--color-primary)]"),
|
|
19158
19382
|
style: { paddingLeft: `${12 + t * 14}px` },
|
|
19159
|
-
children: [/* @__PURE__ */ v(
|
|
19383
|
+
children: [/* @__PURE__ */ v(Wb, { node: e }), a]
|
|
19160
19384
|
})
|
|
19161
19385
|
});
|
|
19162
19386
|
}
|
|
19163
|
-
function
|
|
19387
|
+
function Qb({ nodes: e, selected: t, onSelect: n }) {
|
|
19164
19388
|
let r = S();
|
|
19165
19389
|
return /* @__PURE__ */ y("div", {
|
|
19166
19390
|
className: "flex flex-wrap items-center gap-1.5",
|
|
@@ -19190,8 +19414,8 @@ function Vb({ nodes: e, selected: t, onSelect: n }) {
|
|
|
19190
19414
|
]
|
|
19191
19415
|
});
|
|
19192
19416
|
}
|
|
19193
|
-
var
|
|
19194
|
-
let _ = S(), b = o(() =>
|
|
19417
|
+
var $b = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onStepClick: c, stepBadge: l, selectedCell: d, single: f, reserveRightPx: p, label: m }, h) {
|
|
19418
|
+
let _ = S(), b = o(() => Ib(e), [e]), x = o(() => Fb(n), [n]), C = t(null), w = f ? Yb : qb, T = `${w}rem repeat(${n.length}, 13rem)`, E = n.length + 1, [ee, D] = g(!0);
|
|
19195
19419
|
s(() => {
|
|
19196
19420
|
let e = C.current;
|
|
19197
19421
|
if (!e || p <= 0) {
|
|
@@ -19208,7 +19432,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
|
|
|
19208
19432
|
if (d === null) return null;
|
|
19209
19433
|
let e = b.findIndex((e) => e.node.addonId === d.addonId);
|
|
19210
19434
|
if (e < 0) return null;
|
|
19211
|
-
let t = n.findIndex((e) =>
|
|
19435
|
+
let t = n.findIndex((e) => Pb(e) === Pb(d));
|
|
19212
19436
|
return {
|
|
19213
19437
|
r: e,
|
|
19214
19438
|
c: t < 0 ? 0 : t + 1
|
|
@@ -19233,7 +19457,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
|
|
|
19233
19457
|
return u(h, () => ({ focusCell: (e, t) => {
|
|
19234
19458
|
let r = b.findIndex((t) => t.node.addonId === e);
|
|
19235
19459
|
if (r < 0) return;
|
|
19236
|
-
let i = t === null ? -1 : n.findIndex((e) =>
|
|
19460
|
+
let i = t === null ? -1 : n.findIndex((e) => Pb(e) === t), a = i < 0 ? 0 : i + 1;
|
|
19237
19461
|
ne({
|
|
19238
19462
|
r,
|
|
19239
19463
|
c: a
|
|
@@ -19267,7 +19491,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
|
|
|
19267
19491
|
let t = {
|
|
19268
19492
|
r: Number(e.target.dataset.r),
|
|
19269
19493
|
c: Number(e.target.dataset.c)
|
|
19270
|
-
}, n =
|
|
19494
|
+
}, n = Xb(e.key, t, b.length, E);
|
|
19271
19495
|
n !== null && (e.preventDefault(), ne(n), A(n.r, n.c));
|
|
19272
19496
|
},
|
|
19273
19497
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -19277,18 +19501,18 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
|
|
|
19277
19501
|
role: "columnheader",
|
|
19278
19502
|
className: H("top-0 z-20 border-b border-border bg-muted/60 px-3 py-2 text-[10px] uppercase tracking-widest text-foreground-subtle", ee ? "sticky left-0" : "sticky"),
|
|
19279
19503
|
children: _("uiLibrary.deviceStepMatrix.step", "Step")
|
|
19280
|
-
}), x.map((e) => e.grouped ? /* @__PURE__ */ v(
|
|
19504
|
+
}), x.map((e) => e.grouped ? /* @__PURE__ */ v(Ub, { group: e }, e.agentNodeId) : e.columns.map((e) => /* @__PURE__ */ y("div", {
|
|
19281
19505
|
role: "columnheader",
|
|
19282
19506
|
className: H("sticky top-0 z-10 min-w-0 border-b border-l border-border bg-muted/60 px-3 py-2", e.disabled === !0 && "opacity-70"),
|
|
19283
19507
|
children: [/* @__PURE__ */ v("div", {
|
|
19284
19508
|
className: "truncate text-xs font-semibold text-foreground",
|
|
19285
19509
|
children: e.nodeLabel ?? e.agentNodeId
|
|
19286
|
-
}), /* @__PURE__ */ v(
|
|
19287
|
-
},
|
|
19510
|
+
}), /* @__PURE__ */ v(Hb, { column: e })]
|
|
19511
|
+
}, Pb(e))))]
|
|
19288
19512
|
}), b.map(({ node: e, depth: t }, i) => /* @__PURE__ */ y("div", {
|
|
19289
19513
|
role: "row",
|
|
19290
19514
|
className: "contents",
|
|
19291
|
-
children: [/* @__PURE__ */ v(
|
|
19515
|
+
children: [/* @__PURE__ */ v(Zb, {
|
|
19292
19516
|
node: e,
|
|
19293
19517
|
depth: t,
|
|
19294
19518
|
r: i,
|
|
@@ -19298,7 +19522,7 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
|
|
|
19298
19522
|
onClick: c ? (t) => c(e.addonId, t) : void 0,
|
|
19299
19523
|
sticky: ee
|
|
19300
19524
|
}), n.map((t, n) => {
|
|
19301
|
-
let o = r(e.addonId, t), s = d !== null && d.addonId === e.addonId &&
|
|
19525
|
+
let o = r(e.addonId, t), s = d !== null && d.addonId === e.addonId && Pb(d) === Pb(t), c = o.kind === "enabled" || o.kind === "skip";
|
|
19302
19526
|
return /* @__PURE__ */ v("div", {
|
|
19303
19527
|
role: "gridcell",
|
|
19304
19528
|
className: "min-w-0 border-b border-l border-border",
|
|
@@ -19307,17 +19531,17 @@ var Hb = c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, onSte
|
|
|
19307
19531
|
"data-r": i,
|
|
19308
19532
|
"data-c": n + 1,
|
|
19309
19533
|
"data-step": e.addonId,
|
|
19310
|
-
"data-col":
|
|
19534
|
+
"data-col": Pb(t),
|
|
19311
19535
|
tabIndex: k.r === i && k.c === n + 1 ? 0 : -1,
|
|
19312
19536
|
"aria-disabled": !c,
|
|
19313
19537
|
"aria-selected": s,
|
|
19314
19538
|
onClick: (n) => {
|
|
19315
19539
|
c && a(e.addonId, t, n.detail === 0);
|
|
19316
19540
|
},
|
|
19317
|
-
className:
|
|
19318
|
-
children:
|
|
19541
|
+
className: Kb(o, s, H("h-full w-full min-w-0 overflow-hidden px-3 py-2 outline-none", "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary", !c && "cursor-default hover:bg-transparent", t.disabled === !0 && "opacity-70")),
|
|
19542
|
+
children: Gb(_, o)
|
|
19319
19543
|
})
|
|
19320
|
-
},
|
|
19544
|
+
}, Pb(t));
|
|
19321
19545
|
})]
|
|
19322
19546
|
}, e.addonId))]
|
|
19323
19547
|
}), p > 0 && /* @__PURE__ */ v("div", {
|
|
@@ -19340,7 +19564,7 @@ c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, selectedCell:
|
|
|
19340
19564
|
let n = typeof ResizeObserver < "u" ? new ResizeObserver(t) : null;
|
|
19341
19565
|
return n?.observe(e), () => n?.disconnect();
|
|
19342
19566
|
}, []);
|
|
19343
|
-
let S = o(() =>
|
|
19567
|
+
let S = o(() => Fb(n), [n]), C = Lb(b, S.length, Jb, 208, n.length), w = o(() => S.length === 0 ? null : S.find((e) => e.agentNodeId === l) ?? S[0] ?? null, [S, l]), T = c?.agentNodeId;
|
|
19344
19568
|
i(() => {
|
|
19345
19569
|
C && T !== void 0 && T !== l && u(T);
|
|
19346
19570
|
}, [
|
|
@@ -19353,11 +19577,11 @@ c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, selectedCell:
|
|
|
19353
19577
|
return /* @__PURE__ */ y("div", {
|
|
19354
19578
|
ref: _,
|
|
19355
19579
|
className: "w-full space-y-2",
|
|
19356
|
-
children: [C && w && S.length > 1 && /* @__PURE__ */ v(
|
|
19580
|
+
children: [C && w && S.length > 1 && /* @__PURE__ */ v(Qb, {
|
|
19357
19581
|
nodes: S,
|
|
19358
19582
|
selected: w.agentNodeId,
|
|
19359
19583
|
onSelect: u
|
|
19360
|
-
}), /* @__PURE__ */ v(
|
|
19584
|
+
}), /* @__PURE__ */ v($b, {
|
|
19361
19585
|
ref: h,
|
|
19362
19586
|
tree: e,
|
|
19363
19587
|
agents: E,
|
|
@@ -19374,7 +19598,7 @@ c(function({ tree: e, agents: n, getCellState: r, onCellClick: a, selectedCell:
|
|
|
19374
19598
|
}), e(), e(), e();
|
|
19375
19599
|
//#endregion
|
|
19376
19600
|
//#region ../ui-library/src/composites/image-selector.tsx
|
|
19377
|
-
function
|
|
19601
|
+
function ex({ images: e, selectedFilename: t, uploadedName: n, onSelect: r, onUpload: i, className: a, accept: o = "image/*", uploadLabel: s = "Upload..." }) {
|
|
19378
19602
|
return /* @__PURE__ */ y("div", {
|
|
19379
19603
|
className: `flex flex-wrap items-center gap-2 ${a ?? ""}`,
|
|
19380
19604
|
children: [
|
|
@@ -19409,7 +19633,7 @@ function Ub({ images: e, selectedFilename: t, uploadedName: n, onSelect: r, onUp
|
|
|
19409
19633
|
//#endregion
|
|
19410
19634
|
//#region ../ui-library/src/composites/node-picker.tsx
|
|
19411
19635
|
e(), e(), e();
|
|
19412
|
-
function
|
|
19636
|
+
function tx({ selectedNodeId: e, onSelect: t, label: n = "Node", hideIcon: r = !1, alwaysShow: i = !1, allowOffline: a = !1 }) {
|
|
19413
19637
|
let s = S(), { nodes: c } = or(), l = aa(void 0), u = o(() => Po(l.data), [l.data]);
|
|
19414
19638
|
return !i && c.length <= 1 ? null : /* @__PURE__ */ y("div", {
|
|
19415
19639
|
className: "flex h-7 items-center gap-1.5",
|
|
@@ -19438,7 +19662,7 @@ function Wb({ selectedNodeId: e, onSelect: t, label: n = "Node", hideIcon: r = !
|
|
|
19438
19662
|
}
|
|
19439
19663
|
//#endregion
|
|
19440
19664
|
//#region ../ui-library/src/composites/page-shell.tsx
|
|
19441
|
-
function
|
|
19665
|
+
function nx({ icon: e, title: t, subtitle: n, actions: r, nav: i, fill: a = !1, className: o, children: s }) {
|
|
19442
19666
|
let c = !!t || n != null || r != null, l = c || i != null;
|
|
19443
19667
|
return /* @__PURE__ */ y("div", {
|
|
19444
19668
|
className: H("overflow-x-clip p-2 sm:p-4", a ? "flex h-full min-h-0 flex-col gap-4" : "space-y-4", o),
|
|
@@ -19474,7 +19698,7 @@ function Gb({ icon: e, title: t, subtitle: n, actions: r, nav: i, fill: a = !1,
|
|
|
19474
19698
|
e(), e();
|
|
19475
19699
|
//#endregion
|
|
19476
19700
|
//#region ../ui-library/src/composites/section-toolbar.tsx
|
|
19477
|
-
function
|
|
19701
|
+
function rx({ start: e, end: t, className: n, testId: r }) {
|
|
19478
19702
|
return /* @__PURE__ */ y("div", {
|
|
19479
19703
|
className: H("flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between", n),
|
|
19480
19704
|
"data-testid": r,
|
|
@@ -19490,12 +19714,12 @@ function Kb({ start: e, end: t, className: n, testId: r }) {
|
|
|
19490
19714
|
//#endregion
|
|
19491
19715
|
//#region ../ui-library/src/composites/pipeline-builder.tsx
|
|
19492
19716
|
e(), e(), e();
|
|
19493
|
-
function
|
|
19717
|
+
function ix(e) {
|
|
19494
19718
|
let t = /* @__PURE__ */ new Map();
|
|
19495
19719
|
for (let n of e.slots) for (let e of n.addons) t.set(e.id, e);
|
|
19496
19720
|
return t;
|
|
19497
19721
|
}
|
|
19498
|
-
function
|
|
19722
|
+
function ax(e) {
|
|
19499
19723
|
return {
|
|
19500
19724
|
addonId: e.id,
|
|
19501
19725
|
addonName: e.name,
|
|
@@ -19507,7 +19731,7 @@ function Jb(e) {
|
|
|
19507
19731
|
children: []
|
|
19508
19732
|
};
|
|
19509
19733
|
}
|
|
19510
|
-
function
|
|
19734
|
+
function ox({ addon: e, onClick: t }) {
|
|
19511
19735
|
return /* @__PURE__ */ v("button", {
|
|
19512
19736
|
type: "button",
|
|
19513
19737
|
onClick: t,
|
|
@@ -19540,8 +19764,8 @@ function Yb({ addon: e, onClick: t }) {
|
|
|
19540
19764
|
})
|
|
19541
19765
|
});
|
|
19542
19766
|
}
|
|
19543
|
-
function
|
|
19544
|
-
let c = S(), l = o(() => new Set(i), [i]), u = o(() =>
|
|
19767
|
+
function sx({ schema: e, steps: t, onChange: n, readOnly: r = !1, excludeAddons: i = [], showOnlyEnabled: a = !1, showSlotLabels: s = !1 }) {
|
|
19768
|
+
let c = S(), l = o(() => new Set(i), [i]), u = o(() => ix(e), [e]);
|
|
19545
19769
|
function d(e) {
|
|
19546
19770
|
n(t.map((t) => t.addonId === e.addonId ? f(e) : t));
|
|
19547
19771
|
}
|
|
@@ -19560,7 +19784,7 @@ function Xb({ schema: e, steps: t, onChange: n, readOnly: r = !1, excludeAddons:
|
|
|
19560
19784
|
};
|
|
19561
19785
|
}
|
|
19562
19786
|
function p(e, r) {
|
|
19563
|
-
let i =
|
|
19787
|
+
let i = ax(r);
|
|
19564
19788
|
n(t.map((t) => t.addonId === e ? {
|
|
19565
19789
|
...t,
|
|
19566
19790
|
children: [...t.children, i]
|
|
@@ -19666,10 +19890,10 @@ function Xb({ schema: e, steps: t, onChange: n, readOnly: r = !1, excludeAddons:
|
|
|
19666
19890
|
},
|
|
19667
19891
|
readOnly: r
|
|
19668
19892
|
}, t.addonId)),
|
|
19669
|
-
!r && t.map((t) => /* @__PURE__ */ v(
|
|
19893
|
+
!r && t.map((t) => /* @__PURE__ */ v(ox, {
|
|
19670
19894
|
addon: t,
|
|
19671
19895
|
onClick: () => {
|
|
19672
|
-
let n =
|
|
19896
|
+
let n = ax(t);
|
|
19673
19897
|
d({
|
|
19674
19898
|
...i,
|
|
19675
19899
|
children: i.children.map((t) => t.addonId === e.addonId ? {
|
|
@@ -19683,7 +19907,7 @@ function Xb({ schema: e, steps: t, onChange: n, readOnly: r = !1, excludeAddons:
|
|
|
19683
19907
|
})]
|
|
19684
19908
|
}, e.addonId);
|
|
19685
19909
|
}),
|
|
19686
|
-
!r && o.map((e) => /* @__PURE__ */ v(
|
|
19910
|
+
!r && o.map((e) => /* @__PURE__ */ v(ox, {
|
|
19687
19911
|
addon: e,
|
|
19688
19912
|
onClick: () => p(i.addonId, e)
|
|
19689
19913
|
}, e.id))
|
|
@@ -19711,10 +19935,10 @@ function Xb({ schema: e, steps: t, onChange: n, readOnly: r = !1, excludeAddons:
|
|
|
19711
19935
|
children: e
|
|
19712
19936
|
}), t.map((e) => _(e))]
|
|
19713
19937
|
}, e)),
|
|
19714
|
-
!r && u.map((e) => /* @__PURE__ */ v(
|
|
19938
|
+
!r && u.map((e) => /* @__PURE__ */ v(ox, {
|
|
19715
19939
|
addon: e,
|
|
19716
19940
|
onClick: () => {
|
|
19717
|
-
n([...t,
|
|
19941
|
+
n([...t, ax(e)]);
|
|
19718
19942
|
}
|
|
19719
19943
|
}, e.id))
|
|
19720
19944
|
]
|
|
@@ -19725,7 +19949,7 @@ function Xb({ schema: e, steps: t, onChange: n, readOnly: r = !1, excludeAddons:
|
|
|
19725
19949
|
//#endregion
|
|
19726
19950
|
//#region ../ui-library/src/composites/response-log.tsx
|
|
19727
19951
|
e(), H(he, "min-w-0 max-w-full gap-1.5 py-1 pl-1 pr-2.5 text-xs font-normal", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40"), H(be, "font-medium"), e(), e(), e(), e();
|
|
19728
|
-
function
|
|
19952
|
+
function cx({ data: e, label: t = "Response", className: n = "" }) {
|
|
19729
19953
|
let r = S(), [i, a] = g(!1);
|
|
19730
19954
|
if (!e) return null;
|
|
19731
19955
|
let o = JSON.stringify(e, null, 2);
|
|
@@ -19761,7 +19985,7 @@ function Zb({ data: e, label: t = "Response", className: n = "" }) {
|
|
|
19761
19985
|
e(), e();
|
|
19762
19986
|
//#endregion
|
|
19763
19987
|
//#region ../ui-library/src/composites/step-timings.tsx
|
|
19764
|
-
function
|
|
19988
|
+
function lx({ timings: e, totalMs: t, className: n }) {
|
|
19765
19989
|
let r = S(), i = Object.entries(e);
|
|
19766
19990
|
return i.length === 0 && t === void 0 ? null : /* @__PURE__ */ y("div", {
|
|
19767
19991
|
className: `rounded-lg border border-border bg-surface p-3 space-y-2 ${n ?? ""}`,
|
|
@@ -19792,7 +20016,7 @@ function Qb({ timings: e, totalMs: t, className: n }) {
|
|
|
19792
20016
|
//#endregion
|
|
19793
20017
|
//#region ../ui-library/src/composites/step-inspector/step-inspector-panel.tsx
|
|
19794
20018
|
e(), e();
|
|
19795
|
-
function
|
|
20019
|
+
function ux({ dirtyCount: e, saving: t, status: n, error: r, onSave: i, onDiscard: a, scope: o }) {
|
|
19796
20020
|
let s = S(), c = e > 0, l = t ? s("uiLibrary.stepInspector.saving", "Saving…") : c ? s("uiLibrary.stepInspector.unsaved", {
|
|
19797
20021
|
one: "{{count}} unsaved change",
|
|
19798
20022
|
other: "{{count}} unsaved changes"
|
|
@@ -19829,7 +20053,7 @@ function $b({ dirtyCount: e, saving: t, status: n, error: r, onSave: i, onDiscar
|
|
|
19829
20053
|
});
|
|
19830
20054
|
}
|
|
19831
20055
|
//#endregion
|
|
19832
|
-
//#region ../ui-library/src/
|
|
20056
|
+
//#region ../ui-library/src/composites/charts/Sparkline.tsx
|
|
19833
20057
|
c(function({ title: e, subtitle: t, headerActions: n, headerExtra: r, leading: i, saveBar: a, onEscape: o, children: s, className: c }, l) {
|
|
19834
20058
|
let u = f();
|
|
19835
20059
|
return /* @__PURE__ */ y("section", {
|
|
@@ -19868,43 +20092,78 @@ c(function({ title: e, subtitle: t, headerActions: n, headerExtra: r, leading: i
|
|
|
19868
20092
|
className: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-4 py-3",
|
|
19869
20093
|
children: s
|
|
19870
20094
|
}),
|
|
19871
|
-
a !== void 0 && /* @__PURE__ */ v(
|
|
20095
|
+
a !== void 0 && /* @__PURE__ */ v(ux, { ...a })
|
|
19872
20096
|
]
|
|
19873
20097
|
});
|
|
19874
|
-
}), e(), e(), e(), e(), e(), e(), e(), e(),
|
|
20098
|
+
}), e(), e(), e(), e(), e(), e(), e(), e(), e(), e();
|
|
20099
|
+
//#endregion
|
|
20100
|
+
//#region ../ui-library/src/composites/device-history/history-window.ts
|
|
20101
|
+
var dx = [
|
|
20102
|
+
"24h",
|
|
20103
|
+
"7d",
|
|
20104
|
+
"30d",
|
|
20105
|
+
"1y",
|
|
20106
|
+
"custom"
|
|
20107
|
+
], fx = 24 * 36e5;
|
|
20108
|
+
//#endregion
|
|
20109
|
+
//#region ../ui-library/src/composites/device-history/HistoryChart.tsx
|
|
20110
|
+
7 * fx, 30 * fx, 365 * fx, e();
|
|
20111
|
+
var px = Qy({
|
|
20112
|
+
subject: nb("kind", [Qy({
|
|
20113
|
+
kind: ub("device"),
|
|
20114
|
+
deviceId: By().int()
|
|
20115
|
+
}), Qy({
|
|
20116
|
+
kind: ub("node"),
|
|
20117
|
+
nodeId: yy().min(1)
|
|
20118
|
+
})]),
|
|
20119
|
+
key: yy().min(1),
|
|
20120
|
+
scope: yy()
|
|
20121
|
+
}), mx = cb(dx), hx = Qy({
|
|
20122
|
+
id: yy().min(1),
|
|
20123
|
+
name: yy().min(1).max(80),
|
|
20124
|
+
window: mx,
|
|
20125
|
+
selection: Xy(px).max(24)
|
|
20126
|
+
});
|
|
20127
|
+
//#endregion
|
|
20128
|
+
//#region ../ui-library/src/hooks/use-event-invalidation.ts
|
|
20129
|
+
Qy({
|
|
20130
|
+
version: ub(1),
|
|
20131
|
+
panels: Xy(hx).max(50),
|
|
20132
|
+
hidden: ob(yy(), Xy(yy()).max(200))
|
|
20133
|
+
}), e(), e(), e(), e(), _e("camstack:zone-editing", null), e(), e(), e(), e();
|
|
19875
20134
|
//#endregion
|
|
19876
20135
|
//#region ../ui-library/src/i18n/addon-i18n.ts
|
|
19877
|
-
var
|
|
19878
|
-
function
|
|
20136
|
+
var gx = "en", _x = /* @__PURE__ */ new Map(), vx = /* @__PURE__ */ new Set(), yx = 0;
|
|
20137
|
+
function bx(e) {
|
|
19879
20138
|
let t = (e ?? "").trim().toLowerCase().split(/[-_]/)[0] ?? "";
|
|
19880
|
-
return t === "" ?
|
|
20139
|
+
return t === "" ? gx : t;
|
|
19881
20140
|
}
|
|
19882
|
-
function
|
|
20141
|
+
function xx() {
|
|
19883
20142
|
if (typeof document < "u") {
|
|
19884
20143
|
let e = document.documentElement.lang;
|
|
19885
|
-
if (e.trim() !== "") return
|
|
20144
|
+
if (e.trim() !== "") return bx(e);
|
|
19886
20145
|
}
|
|
19887
|
-
return typeof navigator < "u" && typeof navigator.language == "string" ?
|
|
20146
|
+
return typeof navigator < "u" && typeof navigator.language == "string" ? bx(navigator.language) : gx;
|
|
19888
20147
|
}
|
|
19889
|
-
function
|
|
19890
|
-
let r =
|
|
19891
|
-
i.set(r, n),
|
|
19892
|
-
for (let e of
|
|
20148
|
+
function Sx(e, t, n) {
|
|
20149
|
+
let r = bx(t), i = _x.get(e) ?? /* @__PURE__ */ new Map();
|
|
20150
|
+
i.set(r, n), _x.set(e, i), yx += 1;
|
|
20151
|
+
for (let e of vx) e();
|
|
19893
20152
|
}
|
|
19894
|
-
function
|
|
19895
|
-
|
|
20153
|
+
function Cx(e) {
|
|
20154
|
+
vx.add(e);
|
|
19896
20155
|
let t = null;
|
|
19897
20156
|
return typeof document < "u" && typeof MutationObserver < "u" && (t = new MutationObserver(e), t.observe(document.documentElement, {
|
|
19898
20157
|
attributes: !0,
|
|
19899
20158
|
attributeFilter: ["lang"]
|
|
19900
20159
|
})), () => {
|
|
19901
|
-
|
|
20160
|
+
vx.delete(e), t?.disconnect();
|
|
19902
20161
|
};
|
|
19903
20162
|
}
|
|
19904
|
-
function
|
|
19905
|
-
return `${
|
|
20163
|
+
function wx() {
|
|
20164
|
+
return `${xx()}#${yx}`;
|
|
19906
20165
|
}
|
|
19907
|
-
function
|
|
20166
|
+
function Tx(e, t) {
|
|
19908
20167
|
let n = e;
|
|
19909
20168
|
for (let e of t) {
|
|
19910
20169
|
if (n === void 0 || typeof n == "string") return;
|
|
@@ -19912,46 +20171,46 @@ function lx(e, t) {
|
|
|
19912
20171
|
}
|
|
19913
20172
|
return typeof n == "string" ? n : void 0;
|
|
19914
20173
|
}
|
|
19915
|
-
function
|
|
20174
|
+
function Ex(e, t) {
|
|
19916
20175
|
try {
|
|
19917
20176
|
return new Intl.PluralRules(e).select(t);
|
|
19918
20177
|
} catch {
|
|
19919
20178
|
return "other";
|
|
19920
20179
|
}
|
|
19921
20180
|
}
|
|
19922
|
-
function
|
|
19923
|
-
let i =
|
|
20181
|
+
function Dx(e, t, n, r) {
|
|
20182
|
+
let i = _x.get(e)?.get(t);
|
|
19924
20183
|
if (i === void 0) return;
|
|
19925
20184
|
let a = n.split(".");
|
|
19926
20185
|
if (r !== void 0) {
|
|
19927
|
-
let e = a[a.length - 1] ?? n, o = a.slice(0, -1), s =
|
|
20186
|
+
let e = a[a.length - 1] ?? n, o = a.slice(0, -1), s = Tx(i, [...o, `${e}_${Ex(t, r)}`]);
|
|
19928
20187
|
if (s !== void 0) return s;
|
|
19929
|
-
let c =
|
|
20188
|
+
let c = Tx(i, [...o, `${e}_other`]);
|
|
19930
20189
|
if (c !== void 0) return c;
|
|
19931
20190
|
}
|
|
19932
|
-
return
|
|
20191
|
+
return Tx(i, a);
|
|
19933
20192
|
}
|
|
19934
|
-
var
|
|
19935
|
-
function
|
|
19936
|
-
return t === void 0 ? e : e.replace(
|
|
20193
|
+
var Ox = /\{\{\s*([\w.]+)\s*\}\}/g;
|
|
20194
|
+
function kx(e, t) {
|
|
20195
|
+
return t === void 0 ? e : e.replace(Ox, (e, n) => {
|
|
19937
20196
|
let r = t[n];
|
|
19938
20197
|
return r === void 0 ? e : String(r);
|
|
19939
20198
|
});
|
|
19940
20199
|
}
|
|
19941
|
-
function
|
|
20200
|
+
function Ax(e, t, n, r) {
|
|
19942
20201
|
let i = r?.count, a = typeof i == "number" ? i : void 0;
|
|
19943
|
-
return
|
|
20202
|
+
return kx(Dx(e, t, n, a) ?? Dx(e, gx, n, a) ?? n, r);
|
|
19944
20203
|
}
|
|
19945
20204
|
//#endregion
|
|
19946
20205
|
//#region ../ui-library/src/i18n/use-addon-t.tsx
|
|
19947
20206
|
e();
|
|
19948
|
-
function
|
|
19949
|
-
return _(
|
|
20207
|
+
function jx() {
|
|
20208
|
+
return _(Cx, wx, wx);
|
|
19950
20209
|
}
|
|
19951
|
-
function
|
|
19952
|
-
let n =
|
|
20210
|
+
function Mx(e, t) {
|
|
20211
|
+
let n = jx(), r = n.slice(0, n.indexOf("#")), i = t === void 0 ? r : bx(t);
|
|
19953
20212
|
return {
|
|
19954
|
-
t: l((t, n) =>
|
|
20213
|
+
t: l((t, n) => Ax(e, i, t, n), [
|
|
19955
20214
|
e,
|
|
19956
20215
|
i,
|
|
19957
20216
|
n
|
|
@@ -19959,29 +20218,29 @@ function gx(e, t) {
|
|
|
19959
20218
|
lang: i
|
|
19960
20219
|
};
|
|
19961
20220
|
}
|
|
19962
|
-
var
|
|
19963
|
-
function
|
|
20221
|
+
var Nx = /<(\/?)([A-Za-z][\w-]*)(\s*\/)?>/g;
|
|
20222
|
+
function Px(e, t, n, r) {
|
|
19964
20223
|
let i = e[t];
|
|
19965
20224
|
return i === void 0 ? /* @__PURE__ */ v(a, { children: n }, r) : m(i, { key: r }, ...n);
|
|
19966
20225
|
}
|
|
19967
|
-
function
|
|
20226
|
+
function Fx(e, t, n) {
|
|
19968
20227
|
let r = {
|
|
19969
20228
|
name: "",
|
|
19970
20229
|
children: []
|
|
19971
20230
|
}, i = [r], a = 0, o = 0, s = () => i[i.length - 1] ?? r, c = (e) => {
|
|
19972
|
-
e !== "" && s().children.push(
|
|
20231
|
+
e !== "" && s().children.push(kx(e, n));
|
|
19973
20232
|
};
|
|
19974
|
-
for (let n of e.matchAll(
|
|
20233
|
+
for (let n of e.matchAll(Nx)) {
|
|
19975
20234
|
c(e.slice(a, n.index)), a = n.index + n[0].length;
|
|
19976
20235
|
let r = n[1] === "/", l = n[2] ?? "";
|
|
19977
|
-
if (o += 1, n[3] !== void 0) s().children.push(
|
|
20236
|
+
if (o += 1, n[3] !== void 0) s().children.push(Px(t, l, [], `k${o}`));
|
|
19978
20237
|
else if (!r) i.push({
|
|
19979
20238
|
name: l,
|
|
19980
20239
|
children: []
|
|
19981
20240
|
});
|
|
19982
20241
|
else if (i.length > 1 && s().name === l) {
|
|
19983
20242
|
let e = i.pop();
|
|
19984
|
-
e && s().children.push(
|
|
20243
|
+
e && s().children.push(Px(t, l, e.children, `k${o}`));
|
|
19985
20244
|
}
|
|
19986
20245
|
}
|
|
19987
20246
|
for (c(e.slice(a)); i.length > 1;) {
|
|
@@ -19990,22 +20249,22 @@ function yx(e, t, n) {
|
|
|
19990
20249
|
}
|
|
19991
20250
|
return r.children;
|
|
19992
20251
|
}
|
|
19993
|
-
function
|
|
19994
|
-
for (let [n, r] of Object.entries(t))
|
|
20252
|
+
function Ix(e, t) {
|
|
20253
|
+
for (let [n, r] of Object.entries(t)) Sx(e, n, r);
|
|
19995
20254
|
return {
|
|
19996
20255
|
ns: e,
|
|
19997
|
-
useT: (t) =>
|
|
20256
|
+
useT: (t) => Mx(e, t),
|
|
19998
20257
|
Trans: (t) => {
|
|
19999
|
-
let { t: n } =
|
|
20000
|
-
return /* @__PURE__ */ v(b, { children:
|
|
20258
|
+
let { t: n } = Mx(e), r = t.values?.count;
|
|
20259
|
+
return /* @__PURE__ */ v(b, { children: Fx(n(t.i18nKey, typeof r == "number" ? { count: r } : void 0), t.components ?? {}, t.values) });
|
|
20001
20260
|
},
|
|
20002
|
-
translate: (t, n) =>
|
|
20261
|
+
translate: (t, n) => Ax(e, xx(), t, n)
|
|
20003
20262
|
};
|
|
20004
20263
|
}
|
|
20005
|
-
e(), n(() => import("./MaskShapeCanvas-rvnAWD46.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), n(() => import("./MotionZonesSettings-
|
|
20264
|
+
e(), n(() => import("./MaskShapeCanvas-rvnAWD46.mjs").then((e) => ({ default: e.MaskShapeCanvas }))), n(() => import("./MotionZonesSettings-CJplyzsz.mjs").then((e) => ({ default: e.MotionZonesSettings }))), n(() => import("./SceneMonitorEditor-DJTBsk8J.mjs").then((e) => ({ default: e.SceneMonitorEditor }))), n(() => import("./PrivacyMaskSettings-CVBFqhqC.mjs").then((e) => ({ default: e.PrivacyMaskSettings })));
|
|
20006
20265
|
//#endregion
|
|
20007
20266
|
//#region src/i18n/index.ts
|
|
20008
|
-
var { useT:
|
|
20267
|
+
var { useT: Lx, Trans: Rx, translate: $ } = Ix("benchmark", {
|
|
20009
20268
|
en: {
|
|
20010
20269
|
common: {
|
|
20011
20270
|
nodeDefault: "node default",
|
|
@@ -20394,8 +20653,8 @@ var { useT: xx, Trans: Sx, translate: $ } = bx("benchmark", {
|
|
|
20394
20653
|
confirm: "Avvia"
|
|
20395
20654
|
}
|
|
20396
20655
|
}
|
|
20397
|
-
}),
|
|
20398
|
-
function
|
|
20656
|
+
}), zx = ["device", "pipeline"];
|
|
20657
|
+
function Bx(e) {
|
|
20399
20658
|
return {
|
|
20400
20659
|
nodeId: e.nodeId,
|
|
20401
20660
|
devices: e.devices.map((e) => {
|
|
@@ -20406,7 +20665,7 @@ function wx(e) {
|
|
|
20406
20665
|
modelIds: t === void 0 ? [] : [t]
|
|
20407
20666
|
};
|
|
20408
20667
|
}),
|
|
20409
|
-
phases:
|
|
20668
|
+
phases: zx,
|
|
20410
20669
|
steps: [],
|
|
20411
20670
|
fpsPerStream: 10,
|
|
20412
20671
|
budgetMinutes: 45,
|
|
@@ -20414,7 +20673,7 @@ function wx(e) {
|
|
|
20414
20673
|
acceptInsufficientHeadroom: !1
|
|
20415
20674
|
};
|
|
20416
20675
|
}
|
|
20417
|
-
function
|
|
20676
|
+
function Vx(e, t, n) {
|
|
20418
20677
|
return {
|
|
20419
20678
|
...e,
|
|
20420
20679
|
devices: e.devices.map((e) => {
|
|
@@ -20427,7 +20686,7 @@ function Tx(e, t, n) {
|
|
|
20427
20686
|
})
|
|
20428
20687
|
};
|
|
20429
20688
|
}
|
|
20430
|
-
function
|
|
20689
|
+
function Hx(e, t) {
|
|
20431
20690
|
return {
|
|
20432
20691
|
...e,
|
|
20433
20692
|
devices: e.devices.map((e) => e.deviceKey === t ? {
|
|
@@ -20436,22 +20695,22 @@ function Ex(e, t) {
|
|
|
20436
20695
|
} : e)
|
|
20437
20696
|
};
|
|
20438
20697
|
}
|
|
20439
|
-
function
|
|
20698
|
+
function Ux(e, t) {
|
|
20440
20699
|
return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
|
|
20441
20700
|
}
|
|
20442
|
-
function
|
|
20701
|
+
function Wx(e, t) {
|
|
20443
20702
|
return {
|
|
20444
20703
|
...e,
|
|
20445
|
-
phases:
|
|
20704
|
+
phases: Ux(e.phases, t)
|
|
20446
20705
|
};
|
|
20447
20706
|
}
|
|
20448
|
-
function
|
|
20707
|
+
function Gx(e, t) {
|
|
20449
20708
|
return {
|
|
20450
20709
|
...e,
|
|
20451
|
-
steps:
|
|
20710
|
+
steps: Ux(e.steps, t)
|
|
20452
20711
|
};
|
|
20453
20712
|
}
|
|
20454
|
-
function
|
|
20713
|
+
function Kx(e) {
|
|
20455
20714
|
let t = e.devices.filter((e) => e.included && e.modelIds.length > 0).map((e) => ({
|
|
20456
20715
|
deviceKey: e.deviceKey,
|
|
20457
20716
|
modelIds: [...e.modelIds]
|
|
@@ -20476,13 +20735,13 @@ function Ax(e) {
|
|
|
20476
20735
|
}
|
|
20477
20736
|
};
|
|
20478
20737
|
}
|
|
20479
|
-
function
|
|
20738
|
+
function qx(e) {
|
|
20480
20739
|
let t = Math.max(0, Math.round(e / 1e3));
|
|
20481
20740
|
if (t < 60) return `${t} s`;
|
|
20482
20741
|
let n = Math.round(t / 60);
|
|
20483
20742
|
return n < 60 ? `${n} min` : `${Math.floor(n / 60)} h ${String(n % 60).padStart(2, "0")} min`;
|
|
20484
20743
|
}
|
|
20485
|
-
function
|
|
20744
|
+
function Jx(e) {
|
|
20486
20745
|
let t = [$("preflight.node", { node: e.nodeId }), e.moving.length === 0 ? $("preflight.noneMoving") : $("preflight.moving", {
|
|
20487
20746
|
count: e.moving.length,
|
|
20488
20747
|
list: e.moving.map((e) => `#${e.deviceId}${e.pinnedToNode ? $("preflight.pinned") : ""}`).join(", ")
|
|
@@ -20494,12 +20753,12 @@ function Mx(e) {
|
|
|
20494
20753
|
list: e.phases.map((e) => $(e === "device" ? "phase.device" : "phase.pipeline")).join(" + "),
|
|
20495
20754
|
steps: e.steps.length > 0 ? $("preflight.steps", { steps: e.steps.join(", ") }) : ""
|
|
20496
20755
|
}), $("preflight.devices", { list: e.devices.map((e) => `${e.deviceKey} → ${e.modelIds.join(", ")}`).join("; ") }), $("preflight.estimated", {
|
|
20497
|
-
estimate:
|
|
20498
|
-
budget:
|
|
20756
|
+
estimate: qx(e.estimatedDurationMs),
|
|
20757
|
+
budget: qx(e.budgetMs)
|
|
20499
20758
|
})), t;
|
|
20500
20759
|
}
|
|
20501
|
-
function
|
|
20502
|
-
let t = e.progress === null ? "" : ` · ${
|
|
20760
|
+
function Yx(e) {
|
|
20761
|
+
let t = e.progress === null ? "" : ` · ${Xx(e.progress)}`;
|
|
20503
20762
|
switch (e.state) {
|
|
20504
20763
|
case "draining": return $("run.draining", { node: e.nodeId });
|
|
20505
20764
|
case "measuring": return $("run.measuring", {
|
|
@@ -20509,13 +20768,13 @@ function Nx(e) {
|
|
|
20509
20768
|
case "restoring": return $("run.restoring");
|
|
20510
20769
|
case "done": return $("run.done", { count: e.resultIds.length });
|
|
20511
20770
|
case "aborted": return $("run.aborted", {
|
|
20512
|
-
reason:
|
|
20771
|
+
reason: Zx(e.endReason),
|
|
20513
20772
|
count: e.resultIds.length
|
|
20514
20773
|
});
|
|
20515
20774
|
case "failed": return e.error ? $("run.failedDetail", { error: e.error }) : $("run.failed");
|
|
20516
20775
|
}
|
|
20517
20776
|
}
|
|
20518
|
-
function
|
|
20777
|
+
function Xx(e) {
|
|
20519
20778
|
return `${e.phase === "device" ? $("progress.device", {
|
|
20520
20779
|
device: e.deviceKey ?? "",
|
|
20521
20780
|
model: e.modelId ?? ""
|
|
@@ -20524,7 +20783,7 @@ function Px(e) {
|
|
|
20524
20783
|
model: e.modelId ?? ""
|
|
20525
20784
|
}) : e.phase} · ${e.message} (${e.cellsDone}/${e.cellsTotal})`;
|
|
20526
20785
|
}
|
|
20527
|
-
function
|
|
20786
|
+
function Zx(e) {
|
|
20528
20787
|
switch (e) {
|
|
20529
20788
|
case "operator-abort": return $("endReason.operator-abort");
|
|
20530
20789
|
case "deadline": return $("endReason.deadline");
|
|
@@ -20535,10 +20794,10 @@ function Fx(e) {
|
|
|
20535
20794
|
default: return e ?? "unknown";
|
|
20536
20795
|
}
|
|
20537
20796
|
}
|
|
20538
|
-
function
|
|
20797
|
+
function Qx(e) {
|
|
20539
20798
|
return $(e === "age" ? "standing.staleAge" : e === "runtime" ? "standing.staleRuntime" : "standing.stalePool");
|
|
20540
20799
|
}
|
|
20541
|
-
function
|
|
20800
|
+
function $x(e, t) {
|
|
20542
20801
|
let n = e.cell, r = [
|
|
20543
20802
|
...e.contaminated ? [$("flags.contaminated")] : [],
|
|
20544
20803
|
...e.partialRun ? [$("flags.partialRun")] : [],
|
|
@@ -20556,19 +20815,19 @@ function Lx(e, t) {
|
|
|
20556
20815
|
latency: n.phase === "device" ? `p50 ${n.p50Ms} ms · p95 ${n.p95Ms} ms` : "—",
|
|
20557
20816
|
limitedBy: n.limitedBy,
|
|
20558
20817
|
measuredAt: new Date(e.measuredAtMs).toLocaleString(t),
|
|
20559
|
-
standing: e.standing === "fresh" ? $("standing.fresh") : e.standing === "superseded" ? $("standing.superseded") : $("standing.stale", { why:
|
|
20818
|
+
standing: e.standing === "fresh" ? $("standing.fresh") : e.standing === "superseded" ? $("standing.superseded") : $("standing.stale", { why: Qx(e.staleWhy) }),
|
|
20560
20819
|
flags: r
|
|
20561
20820
|
};
|
|
20562
20821
|
}
|
|
20563
20822
|
//#endregion
|
|
20564
20823
|
//#region src/node-benchmark/NodeBenchmarkSection.tsx
|
|
20565
20824
|
e();
|
|
20566
|
-
var
|
|
20825
|
+
var eS = new Set([
|
|
20567
20826
|
"draining",
|
|
20568
20827
|
"measuring",
|
|
20569
20828
|
"restoring"
|
|
20570
20829
|
]);
|
|
20571
|
-
function
|
|
20830
|
+
function tS(e, t, n) {
|
|
20572
20831
|
let [r, a] = g(null), [o, s] = g(null), [c, l] = g(0);
|
|
20573
20832
|
return i(() => {
|
|
20574
20833
|
let n = !0, r = () => {
|
|
@@ -20593,7 +20852,7 @@ function zx(e, t, n) {
|
|
|
20593
20852
|
refresh: () => l((e) => e + 1)
|
|
20594
20853
|
};
|
|
20595
20854
|
}
|
|
20596
|
-
function
|
|
20855
|
+
function nS(e) {
|
|
20597
20856
|
return /* @__PURE__ */ y("label", {
|
|
20598
20857
|
className: "flex items-center gap-2",
|
|
20599
20858
|
children: [/* @__PURE__ */ v("span", {
|
|
@@ -20613,8 +20872,8 @@ function Bx(e) {
|
|
|
20613
20872
|
})]
|
|
20614
20873
|
});
|
|
20615
20874
|
}
|
|
20616
|
-
function
|
|
20617
|
-
let { candidates: t, draft: n, onChange: r, disabled: i } = e, { t: a } =
|
|
20875
|
+
function rS(e) {
|
|
20876
|
+
let { candidates: t, draft: n, onChange: r, disabled: i } = e, { t: a } = Lx();
|
|
20618
20877
|
return /* @__PURE__ */ v("div", {
|
|
20619
20878
|
className: "divide-y divide-border",
|
|
20620
20879
|
children: t.devices.map((e) => {
|
|
@@ -20627,7 +20886,7 @@ function Vx(e) {
|
|
|
20627
20886
|
children: [/* @__PURE__ */ v(yo, {
|
|
20628
20887
|
checked: o,
|
|
20629
20888
|
disabled: i,
|
|
20630
|
-
onChange: () => r(
|
|
20889
|
+
onChange: () => r(Hx(n, e.deviceKey))
|
|
20631
20890
|
}), /* @__PURE__ */ v("span", {
|
|
20632
20891
|
className: "font-mono text-xs",
|
|
20633
20892
|
children: e.deviceKey
|
|
@@ -20647,7 +20906,7 @@ function Vx(e) {
|
|
|
20647
20906
|
/* @__PURE__ */ v(yo, {
|
|
20648
20907
|
checked: s.includes(t),
|
|
20649
20908
|
disabled: i || !o,
|
|
20650
|
-
onChange: () => r(
|
|
20909
|
+
onChange: () => r(Vx(n, e.deviceKey, t))
|
|
20651
20910
|
}),
|
|
20652
20911
|
/* @__PURE__ */ v("span", {
|
|
20653
20912
|
className: "font-mono",
|
|
@@ -20676,7 +20935,7 @@ function Vx(e) {
|
|
|
20676
20935
|
label: e
|
|
20677
20936
|
}))],
|
|
20678
20937
|
onChange: (t) => {
|
|
20679
|
-
t.target.value && r(
|
|
20938
|
+
t.target.value && r(Vx(n, e.deviceKey, t.target.value));
|
|
20680
20939
|
}
|
|
20681
20940
|
})
|
|
20682
20941
|
]
|
|
@@ -20684,17 +20943,17 @@ function Vx(e) {
|
|
|
20684
20943
|
})
|
|
20685
20944
|
});
|
|
20686
20945
|
}
|
|
20687
|
-
function
|
|
20688
|
-
let { t } =
|
|
20946
|
+
function iS({ preflight: e }) {
|
|
20947
|
+
let { t } = Lx();
|
|
20689
20948
|
return /* @__PURE__ */ y("div", {
|
|
20690
20949
|
className: "space-y-1 text-xs",
|
|
20691
|
-
children: [
|
|
20950
|
+
children: [Jx(e).map((e) => /* @__PURE__ */ v("p", { children: e }, e)), e.refusals.map((e) => /* @__PURE__ */ y("p", {
|
|
20692
20951
|
className: "text-danger",
|
|
20693
20952
|
children: [e.detail, e.overridable ? ` ${t("preflight.startAnyway")}` : ""]
|
|
20694
20953
|
}, e.kind))]
|
|
20695
20954
|
});
|
|
20696
20955
|
}
|
|
20697
|
-
var
|
|
20956
|
+
var aS = (e, t) => [
|
|
20698
20957
|
{
|
|
20699
20958
|
key: "device",
|
|
20700
20959
|
header: t("results.device"),
|
|
@@ -20762,20 +21021,20 @@ var Ux = (e, t) => [
|
|
|
20762
21021
|
})
|
|
20763
21022
|
}
|
|
20764
21023
|
];
|
|
20765
|
-
function
|
|
20766
|
-
let { t, lang: n } =
|
|
21024
|
+
function oS({ trpc: e }) {
|
|
21025
|
+
let { t, lang: n } = Lx(), [r, a] = g("hub"), [s, c] = g(null), u = tS(() => e.pipelineOrchestrator.getNodeBenchmarkStatus.query(), 3e3, [e]), d = u.data?.run ?? null, f = d !== null && eS.has(d.state), p = f && u.data !== null ? u.data.modeNodeId ?? d?.nodeId ?? null : null;
|
|
20767
21026
|
i(() => {
|
|
20768
21027
|
p !== null && r !== p && (a(p), c(null));
|
|
20769
21028
|
}, [p, r]);
|
|
20770
|
-
let m =
|
|
21029
|
+
let m = tS(() => e.pipelineOrchestrator.getNodeBenchmarkCandidates.query({ nodeId: r }), 6e4, [e, r]);
|
|
20771
21030
|
i(() => {
|
|
20772
|
-
m.data !== null && m.data.nodeId === r && c((e) => e?.nodeId === r ? e :
|
|
21031
|
+
m.data !== null && m.data.nodeId === r && c((e) => e?.nodeId === r ? e : Bx(m.data));
|
|
20773
21032
|
}, [m.data, r]);
|
|
20774
|
-
let h = o(() => s === null ? null :
|
|
21033
|
+
let h = o(() => s === null ? null : Kx(s), [s]), _ = tS(async () => h?.kind === "plan" && !f ? e.pipelineOrchestrator.getNodeBenchmarkPreflight.query(h.plan) : null, 15e3, [
|
|
20775
21034
|
e,
|
|
20776
21035
|
h?.kind === "plan" ? JSON.stringify(h.plan) : null,
|
|
20777
21036
|
f
|
|
20778
|
-
]), x =
|
|
21037
|
+
]), x = tS(() => e.pipelineOrchestrator.listNodeBenchmarkResults.query({ nodeId: r }), f ? 1e4 : 6e4, [
|
|
20779
21038
|
e,
|
|
20780
21039
|
r,
|
|
20781
21040
|
d?.state
|
|
@@ -20794,7 +21053,7 @@ function Wx({ trpc: e }) {
|
|
|
20794
21053
|
headingId: "nb-node",
|
|
20795
21054
|
title: t("node.title"),
|
|
20796
21055
|
icon: dt,
|
|
20797
|
-
actions: /* @__PURE__ */ v(
|
|
21056
|
+
actions: /* @__PURE__ */ v(tx, {
|
|
20798
21057
|
selectedNodeId: p ?? r,
|
|
20799
21058
|
onSelect: (e) => {
|
|
20800
21059
|
f || (a(e), c(null));
|
|
@@ -20835,7 +21094,7 @@ function Wx({ trpc: e }) {
|
|
|
20835
21094
|
children: /* @__PURE__ */ y("div", {
|
|
20836
21095
|
className: "p-2 sm:p-3 lg:p-4 space-y-1 text-xs",
|
|
20837
21096
|
children: [
|
|
20838
|
-
/* @__PURE__ */ v("p", { children:
|
|
21097
|
+
/* @__PURE__ */ v("p", { children: Yx(d) }),
|
|
20839
21098
|
d.staying.length > 0 && /* @__PURE__ */ v("p", {
|
|
20840
21099
|
className: "text-[10px] text-foreground-subtle",
|
|
20841
21100
|
children: t("run.stayed", { list: d.staying.map((e) => `#${e}`).join(", ") })
|
|
@@ -20856,7 +21115,7 @@ function Wx({ trpc: e }) {
|
|
|
20856
21115
|
children: m.data === null || s === null ? /* @__PURE__ */ v("p", {
|
|
20857
21116
|
className: ye,
|
|
20858
21117
|
children: t("devices.reading", { node: r })
|
|
20859
|
-
}) : /* @__PURE__ */ y(b, { children: [/* @__PURE__ */ v(
|
|
21118
|
+
}) : /* @__PURE__ */ y(b, { children: [/* @__PURE__ */ v(rS, {
|
|
20860
21119
|
candidates: m.data,
|
|
20861
21120
|
draft: s,
|
|
20862
21121
|
onChange: c,
|
|
@@ -20882,14 +21141,14 @@ function Wx({ trpc: e }) {
|
|
|
20882
21141
|
children: [/* @__PURE__ */ v(yo, {
|
|
20883
21142
|
checked: s.phases.includes("device"),
|
|
20884
21143
|
disabled: !E,
|
|
20885
|
-
onChange: () => c(
|
|
21144
|
+
onChange: () => c(Wx(s, "device"))
|
|
20886
21145
|
}), t("measure.deviceCapacity")]
|
|
20887
21146
|
}), /* @__PURE__ */ y("label", {
|
|
20888
21147
|
className: "flex items-center gap-2",
|
|
20889
21148
|
children: [/* @__PURE__ */ v(yo, {
|
|
20890
21149
|
checked: s.phases.includes("pipeline"),
|
|
20891
21150
|
disabled: !E,
|
|
20892
|
-
onChange: () => c(
|
|
21151
|
+
onChange: () => c(Wx(s, "pipeline"))
|
|
20893
21152
|
}), t("measure.pipelineLoad")]
|
|
20894
21153
|
})]
|
|
20895
21154
|
}),
|
|
@@ -20903,14 +21162,14 @@ function Wx({ trpc: e }) {
|
|
|
20903
21162
|
children: [/* @__PURE__ */ v(yo, {
|
|
20904
21163
|
checked: s.steps.includes(e.id),
|
|
20905
21164
|
disabled: !E,
|
|
20906
|
-
onChange: () => c(
|
|
21165
|
+
onChange: () => c(Gx(s, e.id))
|
|
20907
21166
|
}), e.name]
|
|
20908
21167
|
}, e.id))]
|
|
20909
21168
|
}),
|
|
20910
21169
|
/* @__PURE__ */ y("div", {
|
|
20911
21170
|
className: "flex flex-wrap items-center gap-4 text-xs",
|
|
20912
21171
|
children: [
|
|
20913
|
-
/* @__PURE__ */ v(
|
|
21172
|
+
/* @__PURE__ */ v(nS, {
|
|
20914
21173
|
label: t("measure.fps"),
|
|
20915
21174
|
value: s.fpsPerStream,
|
|
20916
21175
|
min: 1,
|
|
@@ -20921,7 +21180,7 @@ function Wx({ trpc: e }) {
|
|
|
20921
21180
|
fpsPerStream: e
|
|
20922
21181
|
})
|
|
20923
21182
|
}),
|
|
20924
|
-
/* @__PURE__ */ v(
|
|
21183
|
+
/* @__PURE__ */ v(nS, {
|
|
20925
21184
|
label: t("measure.budget"),
|
|
20926
21185
|
value: s.budgetMinutes,
|
|
20927
21186
|
min: 10,
|
|
@@ -20957,7 +21216,7 @@ function Wx({ trpc: e }) {
|
|
|
20957
21216
|
]
|
|
20958
21217
|
})
|
|
20959
21218
|
] }),
|
|
20960
|
-
w != null && !f && /* @__PURE__ */ v(
|
|
21219
|
+
w != null && !f && /* @__PURE__ */ v(iS, { preflight: w }),
|
|
20961
21220
|
h?.kind === "incomplete" && /* @__PURE__ */ v("p", {
|
|
20962
21221
|
className: "text-[10px] text-foreground-subtle",
|
|
20963
21222
|
children: h.why
|
|
@@ -20968,7 +21227,7 @@ function Wx({ trpc: e }) {
|
|
|
20968
21227
|
label: t("start.label"),
|
|
20969
21228
|
icon: an,
|
|
20970
21229
|
title: t("start.title", { node: r }),
|
|
20971
|
-
description: w ? /* @__PURE__ */ v(
|
|
21230
|
+
description: w ? /* @__PURE__ */ v(iS, { preflight: w }) : t("start.reading"),
|
|
20972
21231
|
confirmLabel: t("start.confirm"),
|
|
20973
21232
|
confirmVariant: "primary",
|
|
20974
21233
|
triggerVariant: "primary",
|
|
@@ -20988,8 +21247,8 @@ function Wx({ trpc: e }) {
|
|
|
20988
21247
|
title: t("results.empty"),
|
|
20989
21248
|
description: t("results.emptyHint")
|
|
20990
21249
|
}) : /* @__PURE__ */ v(Xo, {
|
|
20991
|
-
columns:
|
|
20992
|
-
rows: x.data.map((e) =>
|
|
21250
|
+
columns: aS(S, t),
|
|
21251
|
+
rows: x.data.map((e) => $x(e, n)),
|
|
20993
21252
|
rowKey: (e) => e.id,
|
|
20994
21253
|
minWidthPx: 900
|
|
20995
21254
|
})
|
|
@@ -20999,8 +21258,8 @@ function Wx({ trpc: e }) {
|
|
|
20999
21258
|
}
|
|
21000
21259
|
//#endregion
|
|
21001
21260
|
//#region src/audio-payloads.ts
|
|
21002
|
-
var
|
|
21003
|
-
function
|
|
21261
|
+
var sS = "audio-analyzer";
|
|
21262
|
+
function cS(e) {
|
|
21004
21263
|
if (!e.filename) throw Error($("audio.needsReference"));
|
|
21005
21264
|
return {
|
|
21006
21265
|
nodeId: e.nodeId,
|
|
@@ -21010,17 +21269,17 @@ function Kx(e) {
|
|
|
21010
21269
|
...Object.keys(e.settings).length > 0 ? { settings: e.settings } : {}
|
|
21011
21270
|
};
|
|
21012
21271
|
}
|
|
21013
|
-
function
|
|
21272
|
+
function lS(e) {
|
|
21014
21273
|
return {
|
|
21015
21274
|
alternateTopN: e?.detections?.[0]?.debug?.alternateLabels?.["audio-analyzer"] ?? [],
|
|
21016
|
-
inferenceMs: e?.debug?.stepTimings?.find((e) => e.source ===
|
|
21275
|
+
inferenceMs: e?.debug?.stepTimings?.find((e) => e.source === sS)?.ms,
|
|
21017
21276
|
totalMs: e?.debug?.totalInferenceMs
|
|
21018
21277
|
};
|
|
21019
21278
|
}
|
|
21020
21279
|
//#endregion
|
|
21021
21280
|
//#region src/tabs/AudioTab.tsx
|
|
21022
21281
|
e();
|
|
21023
|
-
function
|
|
21282
|
+
function uS(e) {
|
|
21024
21283
|
try {
|
|
21025
21284
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
21026
21285
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
@@ -21066,8 +21325,8 @@ function Jx(e) {
|
|
|
21066
21325
|
return null;
|
|
21067
21326
|
}
|
|
21068
21327
|
}
|
|
21069
|
-
function
|
|
21070
|
-
let { t: r } =
|
|
21328
|
+
function dS({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
21329
|
+
let { t: r } = Lx(), [a, s] = g([]), [c, u] = g(""), [d, f] = g(null), [p, m] = g(!1), [h, _] = g(""), [b, x] = g(null), [S, C] = g(!0), [w, T] = g(null), [E, ee] = g(""), [D, te] = g({}), [O, ne] = g(null);
|
|
21071
21330
|
i(() => {
|
|
21072
21331
|
e.pipelineExecutor.getReferenceAudioFiles.query().then(async (e) => {
|
|
21073
21332
|
if (s(e), e.length > 0) {
|
|
@@ -21104,18 +21363,18 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
|
21104
21363
|
let re = l(async (t) => {
|
|
21105
21364
|
try {
|
|
21106
21365
|
let n = await e.pipelineExecutor.getReferenceAudio.query({ filename: t });
|
|
21107
|
-
n?.base64 && f(
|
|
21366
|
+
n?.base64 && f(uS(n.base64));
|
|
21108
21367
|
} catch (e) {
|
|
21109
21368
|
console.warn("[benchmark:audio] Failed to load audio:", e), f(null);
|
|
21110
21369
|
}
|
|
21111
21370
|
}, [e, t]), ie = async (e) => {
|
|
21112
21371
|
u(e), x(null), _(""), await re(e);
|
|
21113
21372
|
}, j = (e, t) => {
|
|
21114
|
-
_(r("audio.uploadUnsupported", { name: t })), f(
|
|
21373
|
+
_(r("audio.uploadUnsupported", { name: t })), f(uS(e));
|
|
21115
21374
|
}, ae = async () => {
|
|
21116
21375
|
m(!0), _(""), x(null);
|
|
21117
21376
|
try {
|
|
21118
|
-
let n = await e.pipelineExecutor.runAudioTest.mutate({ ...
|
|
21377
|
+
let n = await e.pipelineExecutor.runAudioTest.mutate({ ...cS({
|
|
21119
21378
|
nodeId: t,
|
|
21120
21379
|
addonId: E,
|
|
21121
21380
|
filename: c,
|
|
@@ -21231,16 +21490,16 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
|
21231
21490
|
className: "text-sm text-foreground-subtle animate-pulse py-8 text-center",
|
|
21232
21491
|
children: r("audio.loading")
|
|
21233
21492
|
});
|
|
21234
|
-
let ce = b?.frame, M = ce?.detections ?? [], { alternateTopN: N, inferenceMs: P, totalMs: le } =
|
|
21493
|
+
let ce = b?.frame, M = ce?.detections ?? [], { alternateTopN: N, inferenceMs: P, totalMs: le } = lS(ce);
|
|
21235
21494
|
return /* @__PURE__ */ y("div", {
|
|
21236
21495
|
className: "space-y-4",
|
|
21237
21496
|
children: [
|
|
21238
|
-
/* @__PURE__ */ v(
|
|
21497
|
+
/* @__PURE__ */ v(rx, {
|
|
21239
21498
|
testId: "benchmark-audio-toolbar",
|
|
21240
21499
|
className: "sm:items-end",
|
|
21241
21500
|
end: /* @__PURE__ */ v("div", {
|
|
21242
21501
|
className: "min-w-0 max-w-full overflow-x-auto",
|
|
21243
|
-
children: /* @__PURE__ */ v(
|
|
21502
|
+
children: /* @__PURE__ */ v(tx, {
|
|
21244
21503
|
selectedNodeId: t,
|
|
21245
21504
|
onSelect: n,
|
|
21246
21505
|
hideIcon: !0,
|
|
@@ -21248,7 +21507,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
|
21248
21507
|
})
|
|
21249
21508
|
})
|
|
21250
21509
|
}),
|
|
21251
|
-
/* @__PURE__ */ v(
|
|
21510
|
+
/* @__PURE__ */ v(ex, {
|
|
21252
21511
|
images: a.map((e) => ({
|
|
21253
21512
|
filename: e.filename,
|
|
21254
21513
|
sizeKB: e.sizeKb
|
|
@@ -21263,7 +21522,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
|
21263
21522
|
}),
|
|
21264
21523
|
/* @__PURE__ */ v("div", {
|
|
21265
21524
|
className: "text-[11px] text-foreground-subtle px-1",
|
|
21266
|
-
children: /* @__PURE__ */ v(
|
|
21525
|
+
children: /* @__PURE__ */ v(Rx, {
|
|
21267
21526
|
i18nKey: "audio.referenceOnly",
|
|
21268
21527
|
components: { code: /* @__PURE__ */ v("code", { className: "font-mono" }) }
|
|
21269
21528
|
})
|
|
@@ -21421,7 +21680,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
|
21421
21680
|
})
|
|
21422
21681
|
})]
|
|
21423
21682
|
}),
|
|
21424
|
-
/* @__PURE__ */ v(
|
|
21683
|
+
/* @__PURE__ */ v(cx, {
|
|
21425
21684
|
data: b,
|
|
21426
21685
|
label: r("audio.response")
|
|
21427
21686
|
})
|
|
@@ -21525,7 +21784,7 @@ function Yx({ trpc: e, nodeId: t, onNodeChange: n }) {
|
|
|
21525
21784
|
}
|
|
21526
21785
|
//#endregion
|
|
21527
21786
|
//#region src/bench-payloads.ts
|
|
21528
|
-
function
|
|
21787
|
+
function fS(e) {
|
|
21529
21788
|
return {
|
|
21530
21789
|
steps: e.steps,
|
|
21531
21790
|
imageBase64: e.imageBase64,
|
|
@@ -21537,36 +21796,36 @@ function Xx(e) {
|
|
|
21537
21796
|
}
|
|
21538
21797
|
//#endregion
|
|
21539
21798
|
//#region src/camera-context.ts
|
|
21540
|
-
function
|
|
21799
|
+
function pS(e, t) {
|
|
21541
21800
|
if (!e) return;
|
|
21542
21801
|
let n = t.find((t) => t.backend === e.backend && t.device === e.device);
|
|
21543
21802
|
return n ? n.key : `${e.backend}:${e.device}`;
|
|
21544
21803
|
}
|
|
21545
|
-
function
|
|
21804
|
+
function mS(e) {
|
|
21546
21805
|
return e.map((e) => ({
|
|
21547
21806
|
addonId: e.addonId,
|
|
21548
21807
|
...e.modelId ? { modelId: e.modelId } : {},
|
|
21549
21808
|
enabled: e.enabled,
|
|
21550
|
-
children:
|
|
21809
|
+
children: mS(e.children ?? []),
|
|
21551
21810
|
...e.settings && Object.keys(e.settings).length > 0 ? { settings: { ...e.settings } } : {}
|
|
21552
21811
|
}));
|
|
21553
21812
|
}
|
|
21554
|
-
function
|
|
21813
|
+
function hS(e, t = 0) {
|
|
21555
21814
|
return e.flatMap((e) => [{
|
|
21556
21815
|
depth: t,
|
|
21557
21816
|
addonId: e.addonId,
|
|
21558
21817
|
modelLabel: e.modelId ?? $("common.nodeDefault"),
|
|
21559
21818
|
enabled: e.enabled
|
|
21560
|
-
},
|
|
21819
|
+
}, ...hS(e.children ?? [], t + 1)]);
|
|
21561
21820
|
}
|
|
21562
21821
|
//#endregion
|
|
21563
21822
|
//#region src/components/DeviceSelector.tsx
|
|
21564
|
-
function
|
|
21823
|
+
function gS(e) {
|
|
21565
21824
|
let t = e.device.toLowerCase(), n = e.backend.toLowerCase();
|
|
21566
21825
|
return t === "npu" ? "NPU" : t === "gpu" || t === "igpu" ? "iGPU" : n === "edgetpu" || e.format === "tflite" ? "Coral" : n === "cpu" || t === "cpu" ? "CPU" : `${e.backend}:${e.device}`;
|
|
21567
21826
|
}
|
|
21568
|
-
function
|
|
21569
|
-
let { t: a } =
|
|
21827
|
+
function _S({ value: e, onChange: t, devices: n, disabled: r, liveKey: i }) {
|
|
21828
|
+
let { t: a } = Lx();
|
|
21570
21829
|
return /* @__PURE__ */ y("div", {
|
|
21571
21830
|
className: "space-y-1",
|
|
21572
21831
|
children: [
|
|
@@ -21608,8 +21867,8 @@ function tS({ value: e, onChange: t, devices: n, disabled: r, liveKey: i }) {
|
|
|
21608
21867
|
//#endregion
|
|
21609
21868
|
//#region src/components/RunTargetPicker.tsx
|
|
21610
21869
|
e();
|
|
21611
|
-
function
|
|
21612
|
-
let { t: f } =
|
|
21870
|
+
function vS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChange: a, selectedDeviceId: s, onSelectCamera: c, onResolved: u, disabled: d }) {
|
|
21871
|
+
let { t: f } = Lx(), [p, m] = g([]), [h, _] = g([]), [x, S] = g([]), [C, w] = g(null), [T, E] = g("");
|
|
21613
21872
|
i(() => {
|
|
21614
21873
|
let t = !1;
|
|
21615
21874
|
return (async () => {
|
|
@@ -21645,7 +21904,7 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
|
|
|
21645
21904
|
}, [e, t]);
|
|
21646
21905
|
let ee = o(() => x.map((e) => ({
|
|
21647
21906
|
key: e.key,
|
|
21648
|
-
label:
|
|
21907
|
+
label: gS(e),
|
|
21649
21908
|
available: e.available,
|
|
21650
21909
|
enabled: e.available
|
|
21651
21910
|
})), [x]);
|
|
@@ -21663,7 +21922,7 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
|
|
|
21663
21922
|
let s = await e.pipelineOrchestrator.resolvePipeline.query({
|
|
21664
21923
|
deviceId: r,
|
|
21665
21924
|
agentNodeId: o
|
|
21666
|
-
}), c = o === t ? x : await e.pipelineOrchestrator.getNodeInferenceDevices.query({ nodeId: o }).then((e) => e.devices).catch(() => []), l =
|
|
21925
|
+
}), c = o === t ? x : await e.pipelineOrchestrator.getNodeInferenceDevices.query({ nodeId: o }).then((e) => e.devices).catch(() => []), l = pS(i?.engine, c), d = {
|
|
21667
21926
|
deviceId: r,
|
|
21668
21927
|
nodeId: o,
|
|
21669
21928
|
steps: s.steps,
|
|
@@ -21690,7 +21949,7 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
|
|
|
21690
21949
|
}
|
|
21691
21950
|
let t = Number(e);
|
|
21692
21951
|
c(t), D(t);
|
|
21693
|
-
}, O = C?.detection ?? null, ne = C ?
|
|
21952
|
+
}, O = C?.detection ?? null, ne = C ? hS(C.steps) : [];
|
|
21694
21953
|
return /* @__PURE__ */ y("div", {
|
|
21695
21954
|
className: "rounded-md border border-border bg-surface p-3 space-y-3",
|
|
21696
21955
|
children: [
|
|
@@ -21802,7 +22061,7 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
|
|
|
21802
22061
|
]
|
|
21803
22062
|
}, `${e.addonId}-${t}`))]
|
|
21804
22063
|
}),
|
|
21805
|
-
/* @__PURE__ */ v(
|
|
22064
|
+
/* @__PURE__ */ v(_S, {
|
|
21806
22065
|
value: r,
|
|
21807
22066
|
onChange: a,
|
|
21808
22067
|
devices: ee,
|
|
@@ -21815,7 +22074,7 @@ function nS({ trpc: e, nodeId: t, onNodeChange: n, deviceKey: r, onDeviceKeyChan
|
|
|
21815
22074
|
//#endregion
|
|
21816
22075
|
//#region src/tabs/ImageTab.tsx
|
|
21817
22076
|
e();
|
|
21818
|
-
function
|
|
22077
|
+
function yS(e) {
|
|
21819
22078
|
let t = [...e.slots.find((e) => e.id === "detector")?.addons ?? []], n = [...e.slots.find((e) => e.id === "cropper")?.addons ?? []], r = [...e.slots.find((e) => e.id === "classifier")?.addons ?? []], i = [...e.slots.find((e) => e.id === "refiner")?.addons ?? []];
|
|
21820
22079
|
function a(e, t) {
|
|
21821
22080
|
return {
|
|
@@ -21845,17 +22104,17 @@ function rS(e) {
|
|
|
21845
22104
|
]
|
|
21846
22105
|
}));
|
|
21847
22106
|
}
|
|
21848
|
-
function
|
|
22107
|
+
function bS(e) {
|
|
21849
22108
|
return {
|
|
21850
22109
|
addonId: e.addonId,
|
|
21851
22110
|
modelId: e.modelId,
|
|
21852
22111
|
enabled: e.enabled,
|
|
21853
|
-
children: e.children.map((e) =>
|
|
22112
|
+
children: e.children.map((e) => bS(e)),
|
|
21854
22113
|
...e.settings && Object.keys(e.settings).length > 0 ? { settings: e.settings } : {}
|
|
21855
22114
|
};
|
|
21856
22115
|
}
|
|
21857
|
-
function
|
|
21858
|
-
let { t: a } =
|
|
22116
|
+
function xS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
22117
|
+
let { t: a } = Lx(), [o, s] = g(null), [c, u] = g([]), [d, f] = g(""), [p, m] = g(null), [h, _] = g(""), [b, x] = g(null), [S, C] = g({
|
|
21859
22118
|
w: 640,
|
|
21860
22119
|
h: 480
|
|
21861
22120
|
}), [w, T] = g([]), [E, ee] = g(null), [D, te] = g(null), [O, ne] = g(null), [k, A] = g(!1), [re, ie] = g(""), [j, ae] = g(null), [oe, se] = g(!0), [ce, M] = g([]), N = t(null), [P, le] = g(/* @__PURE__ */ new Set()), F = l((e, t) => {
|
|
@@ -21905,7 +22164,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
21905
22164
|
});
|
|
21906
22165
|
}, [e]), i(() => {
|
|
21907
22166
|
e.pipelineExecutor.getSchema.query({ nodeId: n }).then((e) => {
|
|
21908
|
-
s(e), T(
|
|
22167
|
+
s(e), T(yS(e)), se(!1);
|
|
21909
22168
|
}).catch((e) => {
|
|
21910
22169
|
console.error("[benchmark:image] Failed to load pipeline data:", e), se(!1);
|
|
21911
22170
|
});
|
|
@@ -21925,7 +22184,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
21925
22184
|
} catch (e) {
|
|
21926
22185
|
console.warn("[benchmark:image] Failed to load image:", e);
|
|
21927
22186
|
}
|
|
21928
|
-
}, de = O ?
|
|
22187
|
+
}, de = O ? mS(O.steps) : w.map((e) => bS(e)), fe = async () => {
|
|
21929
22188
|
A(!0), ie(""), ae(null), M([]);
|
|
21930
22189
|
let t = `ui-${Date.now()}-${Math.random().toString(36).slice(2, 10)}`;
|
|
21931
22190
|
N.current = t;
|
|
@@ -21937,7 +22196,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
21937
22196
|
let r = await e.addons.custom.mutate({
|
|
21938
22197
|
addonId: "benchmark",
|
|
21939
22198
|
action: "runPipelineTest",
|
|
21940
|
-
input: { ...
|
|
22199
|
+
input: { ...fS({
|
|
21941
22200
|
steps: de,
|
|
21942
22201
|
imageBase64: p,
|
|
21943
22202
|
nodeId: n,
|
|
@@ -21963,12 +22222,12 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
21963
22222
|
return /* @__PURE__ */ y("div", {
|
|
21964
22223
|
className: "space-y-4",
|
|
21965
22224
|
children: [
|
|
21966
|
-
/* @__PURE__ */ v(
|
|
22225
|
+
/* @__PURE__ */ v(rx, {
|
|
21967
22226
|
testId: "benchmark-image-toolbar",
|
|
21968
22227
|
className: "sm:items-end",
|
|
21969
22228
|
end: /* @__PURE__ */ v("div", {
|
|
21970
22229
|
className: "min-w-0 max-w-full overflow-x-auto",
|
|
21971
|
-
children: /* @__PURE__ */ v(
|
|
22230
|
+
children: /* @__PURE__ */ v(tx, {
|
|
21972
22231
|
selectedNodeId: n,
|
|
21973
22232
|
onSelect: r,
|
|
21974
22233
|
hideIcon: !0,
|
|
@@ -21976,7 +22235,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
21976
22235
|
})
|
|
21977
22236
|
})
|
|
21978
22237
|
}),
|
|
21979
|
-
/* @__PURE__ */ v(
|
|
22238
|
+
/* @__PURE__ */ v(vS, {
|
|
21980
22239
|
trpc: e,
|
|
21981
22240
|
nodeId: n,
|
|
21982
22241
|
onNodeChange: r,
|
|
@@ -21987,7 +22246,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
21987
22246
|
onResolved: ne,
|
|
21988
22247
|
disabled: k
|
|
21989
22248
|
}),
|
|
21990
|
-
/* @__PURE__ */ v(
|
|
22249
|
+
/* @__PURE__ */ v(ex, {
|
|
21991
22250
|
images: c,
|
|
21992
22251
|
selectedFilename: d,
|
|
21993
22252
|
uploadedName: h,
|
|
@@ -22044,7 +22303,7 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
22044
22303
|
children: [/* @__PURE__ */ v("span", { className: `h-1.5 w-1.5 rounded-full shrink-0 ${t === ce.length - 1 ? "bg-primary animate-pulse" : "bg-foreground-subtle/30"}` }), e]
|
|
22045
22304
|
}, t))
|
|
22046
22305
|
}),
|
|
22047
|
-
Object.keys(_e).length > 0 && /* @__PURE__ */ v(
|
|
22306
|
+
Object.keys(_e).length > 0 && /* @__PURE__ */ v(lx, {
|
|
22048
22307
|
timings: _e,
|
|
22049
22308
|
totalMs: j?.debug?.totalInferenceMs
|
|
22050
22309
|
}),
|
|
@@ -22053,14 +22312,14 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
22053
22312
|
hiddenKeys: P,
|
|
22054
22313
|
onToggleVisibility: F
|
|
22055
22314
|
}),
|
|
22056
|
-
/* @__PURE__ */ v(
|
|
22315
|
+
/* @__PURE__ */ v(cx, {
|
|
22057
22316
|
data: j,
|
|
22058
22317
|
label: a("image.response")
|
|
22059
22318
|
})
|
|
22060
22319
|
]
|
|
22061
22320
|
}), /* @__PURE__ */ v("div", {
|
|
22062
22321
|
className: "space-y-2",
|
|
22063
|
-
children: o && /* @__PURE__ */ v(
|
|
22322
|
+
children: o && /* @__PURE__ */ v(sx, {
|
|
22064
22323
|
schema: o,
|
|
22065
22324
|
steps: w,
|
|
22066
22325
|
onChange: (e) => T([...e]),
|
|
@@ -22074,9 +22333,9 @@ function aS({ trpc: e, nodeId: n, onNodeChange: r }) {
|
|
|
22074
22333
|
//#endregion
|
|
22075
22334
|
//#region src/page.tsx
|
|
22076
22335
|
e();
|
|
22077
|
-
function
|
|
22078
|
-
let { t } =
|
|
22079
|
-
return /* @__PURE__ */ v(
|
|
22336
|
+
function SS({ trpc: e }) {
|
|
22337
|
+
let { t } = Lx(), [n, r] = g("node"), [i, a] = g("hub");
|
|
22338
|
+
return /* @__PURE__ */ v(nx, {
|
|
22080
22339
|
title: t("page.title"),
|
|
22081
22340
|
subtitle: t("page.subtitle"),
|
|
22082
22341
|
children: /* @__PURE__ */ y(Co, {
|
|
@@ -22099,11 +22358,11 @@ function oS({ trpc: e }) {
|
|
|
22099
22358
|
] }),
|
|
22100
22359
|
/* @__PURE__ */ v(Eo, {
|
|
22101
22360
|
value: "node",
|
|
22102
|
-
children: /* @__PURE__ */ v(
|
|
22361
|
+
children: /* @__PURE__ */ v(oS, { trpc: e })
|
|
22103
22362
|
}),
|
|
22104
22363
|
/* @__PURE__ */ v(Eo, {
|
|
22105
22364
|
value: "image",
|
|
22106
|
-
children: /* @__PURE__ */ v(
|
|
22365
|
+
children: /* @__PURE__ */ v(xS, {
|
|
22107
22366
|
trpc: e,
|
|
22108
22367
|
nodeId: i,
|
|
22109
22368
|
onNodeChange: a
|
|
@@ -22111,7 +22370,7 @@ function oS({ trpc: e }) {
|
|
|
22111
22370
|
}),
|
|
22112
22371
|
/* @__PURE__ */ v(Eo, {
|
|
22113
22372
|
value: "audio",
|
|
22114
|
-
children: /* @__PURE__ */ v(
|
|
22373
|
+
children: /* @__PURE__ */ v(dS, {
|
|
22115
22374
|
trpc: e,
|
|
22116
22375
|
nodeId: i,
|
|
22117
22376
|
onNodeChange: a
|
|
@@ -22122,4 +22381,4 @@ function oS({ trpc: e }) {
|
|
|
22122
22381
|
});
|
|
22123
22382
|
}
|
|
22124
22383
|
//#endregion
|
|
22125
|
-
export {
|
|
22384
|
+
export { SS as default };
|