@connectedxm/zpl-generator 0.0.4-beta.8 → 0.0.5
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/index.es.js +705 -683
- package/dist/src/generate.d.ts +3 -1
- package/dist/src/validate.d.ts +139 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -32,28 +32,28 @@ function u(e, t, n) {
|
|
|
32
32
|
value: (c) => n?.Parent && c instanceof n.Parent ? !0 : c?._zod?.traits?.has(e)
|
|
33
33
|
}), Object.defineProperty(i, "name", { value: e }), i;
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class M extends Error {
|
|
36
36
|
constructor() {
|
|
37
37
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
class
|
|
40
|
+
class Ve extends Error {
|
|
41
41
|
constructor(t) {
|
|
42
42
|
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
const Be = {};
|
|
46
|
+
function C(e) {
|
|
47
|
+
return Be;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function We(e) {
|
|
50
50
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
51
51
|
return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function pe(e, t) {
|
|
54
54
|
return typeof t == "bigint" ? t.toString() : t;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function re(e) {
|
|
57
57
|
return {
|
|
58
58
|
get value() {
|
|
59
59
|
{
|
|
@@ -63,14 +63,14 @@ function ne(e) {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function me(e) {
|
|
67
67
|
return e == null;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function _e(e) {
|
|
70
70
|
const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
71
71
|
return e.slice(t, n);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function Et(e, t) {
|
|
74
74
|
const n = (e.toString().split(".")[1] || "").length, r = t.toString();
|
|
75
75
|
let o = (r.split(".")[1] || "").length;
|
|
76
76
|
if (o === 0 && /\d?e-\d?/.test(r)) {
|
|
@@ -80,13 +80,13 @@ function Ot(e, t) {
|
|
|
80
80
|
const s = n > o ? n : o, i = Number.parseInt(e.toFixed(s).replace(".", "")), c = Number.parseInt(t.toFixed(s).replace(".", ""));
|
|
81
81
|
return i % c / 10 ** s;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const ze = /* @__PURE__ */ Symbol("evaluating");
|
|
84
84
|
function _(e, t, n) {
|
|
85
85
|
let r;
|
|
86
86
|
Object.defineProperty(e, t, {
|
|
87
87
|
get() {
|
|
88
|
-
if (r !==
|
|
89
|
-
return r === void 0 && (r =
|
|
88
|
+
if (r !== ze)
|
|
89
|
+
return r === void 0 && (r = ze, r = n()), r;
|
|
90
90
|
},
|
|
91
91
|
set(o) {
|
|
92
92
|
Object.defineProperty(e, t, {
|
|
@@ -97,7 +97,7 @@ function _(e, t, n) {
|
|
|
97
97
|
configurable: !0
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function D(e, t, n) {
|
|
101
101
|
Object.defineProperty(e, t, {
|
|
102
102
|
value: n,
|
|
103
103
|
writable: !0,
|
|
@@ -113,18 +113,18 @@ function A(...e) {
|
|
|
113
113
|
}
|
|
114
114
|
return Object.defineProperties({}, t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function we(e) {
|
|
117
117
|
return JSON.stringify(e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Tt(e) {
|
|
120
120
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Ye = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
123
123
|
};
|
|
124
124
|
function B(e) {
|
|
125
125
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const It = re(() => {
|
|
128
128
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
129
129
|
return !1;
|
|
130
130
|
try {
|
|
@@ -143,10 +143,10 @@ function W(e) {
|
|
|
143
143
|
const n = t.prototype;
|
|
144
144
|
return !(B(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ke(e) {
|
|
147
147
|
return W(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const Nt = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
150
150
|
function U(e) {
|
|
151
151
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
152
152
|
}
|
|
@@ -167,17 +167,17 @@ function p(e) {
|
|
|
167
167
|
}
|
|
168
168
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function Pt(e) {
|
|
171
171
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
172
172
|
}
|
|
173
|
-
const
|
|
173
|
+
const At = {
|
|
174
174
|
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
175
175
|
int32: [-2147483648, 2147483647],
|
|
176
176
|
uint32: [0, 4294967295],
|
|
177
177
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
178
178
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
179
179
|
};
|
|
180
|
-
function
|
|
180
|
+
function jt(e, t) {
|
|
181
181
|
const n = e._zod.def, r = n.checks;
|
|
182
182
|
if (r && r.length > 0)
|
|
183
183
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
@@ -189,13 +189,13 @@ function At(e, t) {
|
|
|
189
189
|
throw new Error(`Unrecognized key: "${c}"`);
|
|
190
190
|
t[c] && (i[c] = n.shape[c]);
|
|
191
191
|
}
|
|
192
|
-
return
|
|
192
|
+
return D(this, "shape", i), i;
|
|
193
193
|
},
|
|
194
194
|
checks: []
|
|
195
195
|
});
|
|
196
196
|
return j(e, s);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function xt(e, t) {
|
|
199
199
|
const n = e._zod.def, r = n.checks;
|
|
200
200
|
if (r && r.length > 0)
|
|
201
201
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
@@ -207,13 +207,13 @@ function jt(e, t) {
|
|
|
207
207
|
throw new Error(`Unrecognized key: "${c}"`);
|
|
208
208
|
t[c] && delete i[c];
|
|
209
209
|
}
|
|
210
|
-
return
|
|
210
|
+
return D(this, "shape", i), i;
|
|
211
211
|
},
|
|
212
212
|
checks: []
|
|
213
213
|
});
|
|
214
214
|
return j(e, s);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Ct(e, t) {
|
|
217
217
|
if (!W(t))
|
|
218
218
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
219
219
|
const n = e._zod.def.checks;
|
|
@@ -226,27 +226,27 @@ function xt(e, t) {
|
|
|
226
226
|
const o = A(e._zod.def, {
|
|
227
227
|
get shape() {
|
|
228
228
|
const s = { ...e._zod.def.shape, ...t };
|
|
229
|
-
return
|
|
229
|
+
return D(this, "shape", s), s;
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
return j(e, o);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Rt(e, t) {
|
|
235
235
|
if (!W(t))
|
|
236
236
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
237
237
|
const n = A(e._zod.def, {
|
|
238
238
|
get shape() {
|
|
239
239
|
const r = { ...e._zod.def.shape, ...t };
|
|
240
|
-
return
|
|
240
|
+
return D(this, "shape", r), r;
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
return j(e, n);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Dt(e, t) {
|
|
246
246
|
const n = A(e._zod.def, {
|
|
247
247
|
get shape() {
|
|
248
248
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
249
|
-
return
|
|
249
|
+
return D(this, "shape", r), r;
|
|
250
250
|
},
|
|
251
251
|
get catchall() {
|
|
252
252
|
return t._zod.def.catchall;
|
|
@@ -256,7 +256,7 @@ function Rt(e, t) {
|
|
|
256
256
|
});
|
|
257
257
|
return j(e, n);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Ft(e, t, n) {
|
|
260
260
|
const o = t._zod.def.checks;
|
|
261
261
|
if (o && o.length > 0)
|
|
262
262
|
throw new Error(".partial() cannot be used on object schemas containing refinements");
|
|
@@ -278,13 +278,13 @@ function Dt(e, t, n) {
|
|
|
278
278
|
type: "optional",
|
|
279
279
|
innerType: c[l]
|
|
280
280
|
}) : c[l];
|
|
281
|
-
return
|
|
281
|
+
return D(this, "shape", a), a;
|
|
282
282
|
},
|
|
283
283
|
checks: []
|
|
284
284
|
});
|
|
285
285
|
return j(t, i);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Mt(e, t, n) {
|
|
288
288
|
const r = A(t._zod.def, {
|
|
289
289
|
get shape() {
|
|
290
290
|
const o = t._zod.def.shape, s = { ...o };
|
|
@@ -303,12 +303,12 @@ function Ft(e, t, n) {
|
|
|
303
303
|
type: "nonoptional",
|
|
304
304
|
innerType: o[i]
|
|
305
305
|
});
|
|
306
|
-
return
|
|
306
|
+
return D(this, "shape", s), s;
|
|
307
307
|
}
|
|
308
308
|
});
|
|
309
309
|
return j(t, r);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function F(e, t = 0) {
|
|
312
312
|
if (e.aborted === !0)
|
|
313
313
|
return !0;
|
|
314
314
|
for (let n = t; n < e.issues.length; n++)
|
|
@@ -316,24 +316,24 @@ function D(e, t = 0) {
|
|
|
316
316
|
return !0;
|
|
317
317
|
return !1;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ge(e, t) {
|
|
320
320
|
return t.map((n) => {
|
|
321
321
|
var r;
|
|
322
322
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function H(e) {
|
|
326
326
|
return typeof e == "string" ? e : e?.message;
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function R(e, t, n) {
|
|
329
329
|
const r = { ...e, path: e.path ?? [] };
|
|
330
330
|
if (!e.message) {
|
|
331
|
-
const o =
|
|
331
|
+
const o = H(e.inst?._zod.def?.error?.(e)) ?? H(t?.error?.(e)) ?? H(n.customError?.(e)) ?? H(n.localeError?.(e)) ?? "Invalid input";
|
|
332
332
|
r.message = o;
|
|
333
333
|
}
|
|
334
334
|
return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function ge(e) {
|
|
337
337
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
338
338
|
}
|
|
339
339
|
function Y(...e) {
|
|
@@ -345,25 +345,25 @@ function Y(...e) {
|
|
|
345
345
|
inst: r
|
|
346
346
|
} : { ...t };
|
|
347
347
|
}
|
|
348
|
-
const
|
|
348
|
+
const He = (e, t) => {
|
|
349
349
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
350
350
|
value: e._zod,
|
|
351
351
|
enumerable: !1
|
|
352
352
|
}), Object.defineProperty(e, "issues", {
|
|
353
353
|
value: t,
|
|
354
354
|
enumerable: !1
|
|
355
|
-
}), e.message = JSON.stringify(t,
|
|
355
|
+
}), e.message = JSON.stringify(t, pe, 2), Object.defineProperty(e, "toString", {
|
|
356
356
|
value: () => e.message,
|
|
357
357
|
enumerable: !1
|
|
358
358
|
});
|
|
359
|
-
},
|
|
360
|
-
function
|
|
359
|
+
}, qe = u("$ZodError", He), Xe = u("$ZodError", He, { Parent: Error });
|
|
360
|
+
function Ut(e, t = (n) => n.message) {
|
|
361
361
|
const n = {}, r = [];
|
|
362
362
|
for (const o of e.issues)
|
|
363
363
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
364
364
|
return { formErrors: r, fieldErrors: n };
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Lt(e, t = (n) => n.message) {
|
|
367
367
|
const n = { _errors: [] }, r = (o) => {
|
|
368
368
|
for (const s of o.issues)
|
|
369
369
|
if (s.code === "invalid_union" && s.errors.length)
|
|
@@ -384,81 +384,81 @@ function Ut(e, t = (n) => n.message) {
|
|
|
384
384
|
};
|
|
385
385
|
return r(e), n;
|
|
386
386
|
}
|
|
387
|
-
const
|
|
387
|
+
const ve = (e) => (t, n, r, o) => {
|
|
388
388
|
const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
|
|
389
389
|
if (i instanceof Promise)
|
|
390
|
-
throw new
|
|
390
|
+
throw new M();
|
|
391
391
|
if (i.issues.length) {
|
|
392
|
-
const c = new (o?.Err ?? e)(i.issues.map((a) =>
|
|
393
|
-
throw
|
|
392
|
+
const c = new (o?.Err ?? e)(i.issues.map((a) => R(a, s, C())));
|
|
393
|
+
throw Ye(c, o?.callee), c;
|
|
394
394
|
}
|
|
395
395
|
return i.value;
|
|
396
|
-
},
|
|
396
|
+
}, be = (e) => async (t, n, r, o) => {
|
|
397
397
|
const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
398
398
|
let i = t._zod.run({ value: n, issues: [] }, s);
|
|
399
399
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
400
|
-
const c = new (o?.Err ?? e)(i.issues.map((a) =>
|
|
401
|
-
throw
|
|
400
|
+
const c = new (o?.Err ?? e)(i.issues.map((a) => R(a, s, C())));
|
|
401
|
+
throw Ye(c, o?.callee), c;
|
|
402
402
|
}
|
|
403
403
|
return i.value;
|
|
404
|
-
},
|
|
404
|
+
}, oe = (e) => (t, n, r) => {
|
|
405
405
|
const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
|
|
406
406
|
if (s instanceof Promise)
|
|
407
|
-
throw new
|
|
407
|
+
throw new M();
|
|
408
408
|
return s.issues.length ? {
|
|
409
409
|
success: !1,
|
|
410
|
-
error: new (e ??
|
|
410
|
+
error: new (e ?? qe)(s.issues.map((i) => R(i, o, C())))
|
|
411
411
|
} : { success: !0, data: s.value };
|
|
412
|
-
},
|
|
412
|
+
}, Jt = /* @__PURE__ */ oe(Xe), ie = (e) => async (t, n, r) => {
|
|
413
413
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
414
414
|
let s = t._zod.run({ value: n, issues: [] }, o);
|
|
415
415
|
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
416
416
|
success: !1,
|
|
417
|
-
error: new e(s.issues.map((i) =>
|
|
417
|
+
error: new e(s.issues.map((i) => R(i, o, C())))
|
|
418
418
|
} : { success: !0, data: s.value };
|
|
419
|
-
},
|
|
420
|
-
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
421
|
-
return _e(e)(t, n, o);
|
|
422
|
-
}, Bt = (e) => (t, n, r) => _e(e)(t, n, r), Wt = (e) => async (t, n, r) => {
|
|
419
|
+
}, Vt = /* @__PURE__ */ ie(Xe), Bt = (e) => (t, n, r) => {
|
|
423
420
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
424
|
-
return
|
|
425
|
-
},
|
|
421
|
+
return ve(e)(t, n, o);
|
|
422
|
+
}, Wt = (e) => (t, n, r) => ve(e)(t, n, r), Yt = (e) => async (t, n, r) => {
|
|
426
423
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
427
|
-
return
|
|
428
|
-
},
|
|
424
|
+
return be(e)(t, n, o);
|
|
425
|
+
}, Kt = (e) => async (t, n, r) => be(e)(t, n, r), Gt = (e) => (t, n, r) => {
|
|
429
426
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
430
427
|
return oe(e)(t, n, o);
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
return
|
|
428
|
+
}, Ht = (e) => (t, n, r) => oe(e)(t, n, r), qt = (e) => async (t, n, r) => {
|
|
429
|
+
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
430
|
+
return ie(e)(t, n, o);
|
|
431
|
+
}, Xt = (e) => async (t, n, r) => ie(e)(t, n, r), Qt = /^[cC][^\s-]{8,}$/, en = /^[0-9a-z]+$/, tn = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, nn = /^[0-9a-vA-V]{20}$/, rn = /^[A-Za-z0-9]{27}$/, on = /^[a-zA-Z0-9_-]{21}$/, sn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, cn = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, $e = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, an = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, un = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
432
|
+
function ln() {
|
|
433
|
+
return new RegExp(un, "u");
|
|
434
434
|
}
|
|
435
|
-
const
|
|
436
|
-
function
|
|
435
|
+
const fn = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, pn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, dn = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, hn = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, mn = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Qe = /^[A-Za-z0-9_-]*$/, _n = /^\+[1-9]\d{6,14}$/, et = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", gn = /* @__PURE__ */ new RegExp(`^${et}$`);
|
|
436
|
+
function tt(e) {
|
|
437
437
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
438
438
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
439
439
|
}
|
|
440
|
-
function gn(e) {
|
|
441
|
-
return new RegExp(`^${et(e)}$`);
|
|
442
|
-
}
|
|
443
440
|
function vn(e) {
|
|
444
|
-
|
|
441
|
+
return new RegExp(`^${tt(e)}$`);
|
|
442
|
+
}
|
|
443
|
+
function bn(e) {
|
|
444
|
+
const t = tt({ precision: e.precision }), n = ["Z"];
|
|
445
445
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
446
446
|
const r = `${t}(?:${n.join("|")})`;
|
|
447
|
-
return new RegExp(`^${
|
|
447
|
+
return new RegExp(`^${et}T(?:${r})$`);
|
|
448
448
|
}
|
|
449
|
-
const
|
|
449
|
+
const yn = (e) => {
|
|
450
450
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
451
451
|
return new RegExp(`^${t}$`);
|
|
452
|
-
},
|
|
452
|
+
}, zn = /^-?\d+$/, wn = /^-?\d+(?:\.\d+)?$/, $n = /^(?:true|false)$/i, kn = /^[^A-Z]*$/, Zn = /^[^a-z]*$/, E = /* @__PURE__ */ u("$ZodCheck", (e, t) => {
|
|
453
453
|
var n;
|
|
454
454
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
455
|
-
}),
|
|
455
|
+
}), nt = {
|
|
456
456
|
number: "number",
|
|
457
457
|
bigint: "bigint",
|
|
458
458
|
object: "date"
|
|
459
|
-
},
|
|
459
|
+
}, rt = /* @__PURE__ */ u("$ZodCheckLessThan", (e, t) => {
|
|
460
460
|
E.init(e, t);
|
|
461
|
-
const n =
|
|
461
|
+
const n = nt[typeof t.value];
|
|
462
462
|
e._zod.onattach.push((r) => {
|
|
463
463
|
const o = r._zod.bag, s = (t.inclusive ? o.maximum : o.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
464
464
|
t.value < s && (t.inclusive ? o.maximum = t.value : o.exclusiveMaximum = t.value);
|
|
@@ -473,9 +473,9 @@ const bn = (e) => {
|
|
|
473
473
|
continue: !t.abort
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
|
-
}),
|
|
476
|
+
}), ot = /* @__PURE__ */ u("$ZodCheckGreaterThan", (e, t) => {
|
|
477
477
|
E.init(e, t);
|
|
478
|
-
const n =
|
|
478
|
+
const n = nt[typeof t.value];
|
|
479
479
|
e._zod.onattach.push((r) => {
|
|
480
480
|
const o = r._zod.bag, s = (t.inclusive ? o.minimum : o.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
481
481
|
t.value > s && (t.inclusive ? o.minimum = t.value : o.exclusiveMinimum = t.value);
|
|
@@ -490,14 +490,14 @@ const bn = (e) => {
|
|
|
490
490
|
continue: !t.abort
|
|
491
491
|
});
|
|
492
492
|
};
|
|
493
|
-
}),
|
|
493
|
+
}), Sn = /* @__PURE__ */ u("$ZodCheckMultipleOf", (e, t) => {
|
|
494
494
|
E.init(e, t), e._zod.onattach.push((n) => {
|
|
495
495
|
var r;
|
|
496
496
|
(r = n._zod.bag).multipleOf ?? (r.multipleOf = t.value);
|
|
497
497
|
}), e._zod.check = (n) => {
|
|
498
498
|
if (typeof n.value != typeof t.value)
|
|
499
499
|
throw new Error("Cannot mix number and bigint in multiple_of check.");
|
|
500
|
-
(typeof n.value == "bigint" ? n.value % t.value === BigInt(0) :
|
|
500
|
+
(typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : Et(n.value, t.value) === 0) || n.issues.push({
|
|
501
501
|
origin: typeof n.value,
|
|
502
502
|
code: "not_multiple_of",
|
|
503
503
|
divisor: t.value,
|
|
@@ -506,12 +506,12 @@ const bn = (e) => {
|
|
|
506
506
|
continue: !t.abort
|
|
507
507
|
});
|
|
508
508
|
};
|
|
509
|
-
}),
|
|
509
|
+
}), On = /* @__PURE__ */ u("$ZodCheckNumberFormat", (e, t) => {
|
|
510
510
|
E.init(e, t), t.format = t.format || "float64";
|
|
511
|
-
const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] =
|
|
511
|
+
const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = At[t.format];
|
|
512
512
|
e._zod.onattach.push((i) => {
|
|
513
513
|
const c = i._zod.bag;
|
|
514
|
-
c.format = t.format, c.minimum = o, c.maximum = s, n && (c.pattern =
|
|
514
|
+
c.format = t.format, c.minimum = o, c.maximum = s, n && (c.pattern = zn);
|
|
515
515
|
}), e._zod.check = (i) => {
|
|
516
516
|
const c = i.value;
|
|
517
517
|
if (n) {
|
|
@@ -567,11 +567,11 @@ const bn = (e) => {
|
|
|
567
567
|
continue: !t.abort
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
-
}),
|
|
570
|
+
}), En = /* @__PURE__ */ u("$ZodCheckMaxLength", (e, t) => {
|
|
571
571
|
var n;
|
|
572
572
|
E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
573
573
|
const o = r.value;
|
|
574
|
-
return !
|
|
574
|
+
return !me(o) && o.length !== void 0;
|
|
575
575
|
}), e._zod.onattach.push((r) => {
|
|
576
576
|
const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
577
577
|
t.maximum < o && (r._zod.bag.maximum = t.maximum);
|
|
@@ -579,7 +579,7 @@ const bn = (e) => {
|
|
|
579
579
|
const o = r.value;
|
|
580
580
|
if (o.length <= t.maximum)
|
|
581
581
|
return;
|
|
582
|
-
const i =
|
|
582
|
+
const i = ge(o);
|
|
583
583
|
r.issues.push({
|
|
584
584
|
origin: i,
|
|
585
585
|
code: "too_big",
|
|
@@ -590,11 +590,11 @@ const bn = (e) => {
|
|
|
590
590
|
continue: !t.abort
|
|
591
591
|
});
|
|
592
592
|
};
|
|
593
|
-
}),
|
|
593
|
+
}), Tn = /* @__PURE__ */ u("$ZodCheckMinLength", (e, t) => {
|
|
594
594
|
var n;
|
|
595
595
|
E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
596
596
|
const o = r.value;
|
|
597
|
-
return !
|
|
597
|
+
return !me(o) && o.length !== void 0;
|
|
598
598
|
}), e._zod.onattach.push((r) => {
|
|
599
599
|
const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
600
600
|
t.minimum > o && (r._zod.bag.minimum = t.minimum);
|
|
@@ -602,7 +602,7 @@ const bn = (e) => {
|
|
|
602
602
|
const o = r.value;
|
|
603
603
|
if (o.length >= t.minimum)
|
|
604
604
|
return;
|
|
605
|
-
const i =
|
|
605
|
+
const i = ge(o);
|
|
606
606
|
r.issues.push({
|
|
607
607
|
origin: i,
|
|
608
608
|
code: "too_small",
|
|
@@ -613,11 +613,11 @@ const bn = (e) => {
|
|
|
613
613
|
continue: !t.abort
|
|
614
614
|
});
|
|
615
615
|
};
|
|
616
|
-
}),
|
|
616
|
+
}), In = /* @__PURE__ */ u("$ZodCheckLengthEquals", (e, t) => {
|
|
617
617
|
var n;
|
|
618
618
|
E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
619
619
|
const o = r.value;
|
|
620
|
-
return !
|
|
620
|
+
return !me(o) && o.length !== void 0;
|
|
621
621
|
}), e._zod.onattach.push((r) => {
|
|
622
622
|
const o = r._zod.bag;
|
|
623
623
|
o.minimum = t.length, o.maximum = t.length, o.length = t.length;
|
|
@@ -625,7 +625,7 @@ const bn = (e) => {
|
|
|
625
625
|
const o = r.value, s = o.length;
|
|
626
626
|
if (s === t.length)
|
|
627
627
|
return;
|
|
628
|
-
const i =
|
|
628
|
+
const i = ge(o), c = s > t.length;
|
|
629
629
|
r.issues.push({
|
|
630
630
|
origin: i,
|
|
631
631
|
...c ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
|
|
@@ -636,7 +636,7 @@ const bn = (e) => {
|
|
|
636
636
|
continue: !t.abort
|
|
637
637
|
});
|
|
638
638
|
};
|
|
639
|
-
}),
|
|
639
|
+
}), se = /* @__PURE__ */ u("$ZodCheckStringFormat", (e, t) => {
|
|
640
640
|
var n, r;
|
|
641
641
|
E.init(e, t), e._zod.onattach.push((o) => {
|
|
642
642
|
const s = o._zod.bag;
|
|
@@ -653,8 +653,8 @@ const bn = (e) => {
|
|
|
653
653
|
});
|
|
654
654
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
655
655
|
});
|
|
656
|
-
}),
|
|
657
|
-
|
|
656
|
+
}), Nn = /* @__PURE__ */ u("$ZodCheckRegex", (e, t) => {
|
|
657
|
+
se.init(e, t), e._zod.check = (n) => {
|
|
658
658
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
659
659
|
origin: "string",
|
|
660
660
|
code: "invalid_format",
|
|
@@ -665,11 +665,11 @@ const bn = (e) => {
|
|
|
665
665
|
continue: !t.abort
|
|
666
666
|
});
|
|
667
667
|
};
|
|
668
|
-
}),
|
|
669
|
-
t.pattern ?? (t.pattern = kn),
|
|
670
|
-
}),
|
|
671
|
-
t.pattern ?? (t.pattern =
|
|
672
|
-
}),
|
|
668
|
+
}), Pn = /* @__PURE__ */ u("$ZodCheckLowerCase", (e, t) => {
|
|
669
|
+
t.pattern ?? (t.pattern = kn), se.init(e, t);
|
|
670
|
+
}), An = /* @__PURE__ */ u("$ZodCheckUpperCase", (e, t) => {
|
|
671
|
+
t.pattern ?? (t.pattern = Zn), se.init(e, t);
|
|
672
|
+
}), jn = /* @__PURE__ */ u("$ZodCheckIncludes", (e, t) => {
|
|
673
673
|
E.init(e, t);
|
|
674
674
|
const n = U(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
675
675
|
t.pattern = r, e._zod.onattach.push((o) => {
|
|
@@ -686,7 +686,7 @@ const bn = (e) => {
|
|
|
686
686
|
continue: !t.abort
|
|
687
687
|
});
|
|
688
688
|
};
|
|
689
|
-
}),
|
|
689
|
+
}), xn = /* @__PURE__ */ u("$ZodCheckStartsWith", (e, t) => {
|
|
690
690
|
E.init(e, t);
|
|
691
691
|
const n = new RegExp(`^${U(t.prefix)}.*`);
|
|
692
692
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -703,7 +703,7 @@ const bn = (e) => {
|
|
|
703
703
|
continue: !t.abort
|
|
704
704
|
});
|
|
705
705
|
};
|
|
706
|
-
}),
|
|
706
|
+
}), Cn = /* @__PURE__ */ u("$ZodCheckEndsWith", (e, t) => {
|
|
707
707
|
E.init(e, t);
|
|
708
708
|
const n = new RegExp(`.*${U(t.suffix)}$`);
|
|
709
709
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -720,12 +720,12 @@ const bn = (e) => {
|
|
|
720
720
|
continue: !t.abort
|
|
721
721
|
});
|
|
722
722
|
};
|
|
723
|
-
}),
|
|
723
|
+
}), Rn = /* @__PURE__ */ u("$ZodCheckOverwrite", (e, t) => {
|
|
724
724
|
E.init(e, t), e._zod.check = (n) => {
|
|
725
725
|
n.value = t.tx(n.value);
|
|
726
726
|
};
|
|
727
727
|
});
|
|
728
|
-
class
|
|
728
|
+
class Dn {
|
|
729
729
|
constructor(t = []) {
|
|
730
730
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
731
731
|
}
|
|
@@ -748,13 +748,13 @@ class Rn {
|
|
|
748
748
|
`));
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
const
|
|
751
|
+
const Fn = {
|
|
752
752
|
major: 4,
|
|
753
753
|
minor: 3,
|
|
754
754
|
patch: 6
|
|
755
755
|
}, y = /* @__PURE__ */ u("$ZodType", (e, t) => {
|
|
756
756
|
var n;
|
|
757
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
757
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Fn;
|
|
758
758
|
const r = [...e._zod.def.checks ?? []];
|
|
759
759
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
760
760
|
for (const o of r)
|
|
@@ -766,7 +766,7 @@ const Dn = {
|
|
|
766
766
|
});
|
|
767
767
|
else {
|
|
768
768
|
const o = (i, c, a) => {
|
|
769
|
-
let l =
|
|
769
|
+
let l = F(i), f;
|
|
770
770
|
for (const h of c) {
|
|
771
771
|
if (h._zod.def.when) {
|
|
772
772
|
if (!h._zod.def.when(i))
|
|
@@ -775,25 +775,25 @@ const Dn = {
|
|
|
775
775
|
continue;
|
|
776
776
|
const d = i.issues.length, m = h._zod.check(i);
|
|
777
777
|
if (m instanceof Promise && a?.async === !1)
|
|
778
|
-
throw new
|
|
778
|
+
throw new M();
|
|
779
779
|
if (f || m instanceof Promise)
|
|
780
780
|
f = (f ?? Promise.resolve()).then(async () => {
|
|
781
|
-
await m, i.issues.length !== d && (l || (l =
|
|
781
|
+
await m, i.issues.length !== d && (l || (l = F(i, d)));
|
|
782
782
|
});
|
|
783
783
|
else {
|
|
784
784
|
if (i.issues.length === d)
|
|
785
785
|
continue;
|
|
786
|
-
l || (l =
|
|
786
|
+
l || (l = F(i, d));
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
return f ? f.then(() => i) : i;
|
|
790
790
|
}, s = (i, c, a) => {
|
|
791
|
-
if (
|
|
791
|
+
if (F(i))
|
|
792
792
|
return i.aborted = !0, i;
|
|
793
793
|
const l = o(c, r, a);
|
|
794
794
|
if (l instanceof Promise) {
|
|
795
795
|
if (a.async === !1)
|
|
796
|
-
throw new
|
|
796
|
+
throw new M();
|
|
797
797
|
return l.then((f) => e._zod.parse(f, a));
|
|
798
798
|
}
|
|
799
799
|
return e._zod.parse(l, a);
|
|
@@ -808,7 +808,7 @@ const Dn = {
|
|
|
808
808
|
const a = e._zod.parse(i, c);
|
|
809
809
|
if (a instanceof Promise) {
|
|
810
810
|
if (c.async === !1)
|
|
811
|
-
throw new
|
|
811
|
+
throw new M();
|
|
812
812
|
return a.then((l) => o(l, r, c));
|
|
813
813
|
}
|
|
814
814
|
return o(a, r, c);
|
|
@@ -817,17 +817,17 @@ const Dn = {
|
|
|
817
817
|
_(e, "~standard", () => ({
|
|
818
818
|
validate: (o) => {
|
|
819
819
|
try {
|
|
820
|
-
const s =
|
|
820
|
+
const s = Jt(e, o);
|
|
821
821
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
822
822
|
} catch {
|
|
823
|
-
return
|
|
823
|
+
return Vt(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
824
824
|
}
|
|
825
825
|
},
|
|
826
826
|
vendor: "zod",
|
|
827
827
|
version: 1
|
|
828
828
|
}));
|
|
829
|
-
}),
|
|
830
|
-
y.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ??
|
|
829
|
+
}), ye = /* @__PURE__ */ u("$ZodString", (e, t) => {
|
|
830
|
+
y.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? yn(e._zod.bag), e._zod.parse = (n, r) => {
|
|
831
831
|
if (t.coerce)
|
|
832
832
|
try {
|
|
833
833
|
n.value = String(n.value);
|
|
@@ -841,10 +841,10 @@ const Dn = {
|
|
|
841
841
|
}), n;
|
|
842
842
|
};
|
|
843
843
|
}), v = /* @__PURE__ */ u("$ZodStringFormat", (e, t) => {
|
|
844
|
-
|
|
845
|
-
}),
|
|
846
|
-
t.pattern ?? (t.pattern =
|
|
847
|
-
}),
|
|
844
|
+
se.init(e, t), ye.init(e, t);
|
|
845
|
+
}), Mn = /* @__PURE__ */ u("$ZodGUID", (e, t) => {
|
|
846
|
+
t.pattern ?? (t.pattern = cn), v.init(e, t);
|
|
847
|
+
}), Un = /* @__PURE__ */ u("$ZodUUID", (e, t) => {
|
|
848
848
|
if (t.version) {
|
|
849
849
|
const r = {
|
|
850
850
|
v1: 1,
|
|
@@ -858,13 +858,13 @@ const Dn = {
|
|
|
858
858
|
}[t.version];
|
|
859
859
|
if (r === void 0)
|
|
860
860
|
throw new Error(`Invalid UUID version: "${t.version}"`);
|
|
861
|
-
t.pattern ?? (t.pattern =
|
|
861
|
+
t.pattern ?? (t.pattern = $e(r));
|
|
862
862
|
} else
|
|
863
|
-
t.pattern ?? (t.pattern =
|
|
863
|
+
t.pattern ?? (t.pattern = $e());
|
|
864
864
|
v.init(e, t);
|
|
865
|
-
}),
|
|
866
|
-
t.pattern ?? (t.pattern =
|
|
867
|
-
}),
|
|
865
|
+
}), Ln = /* @__PURE__ */ u("$ZodEmail", (e, t) => {
|
|
866
|
+
t.pattern ?? (t.pattern = an), v.init(e, t);
|
|
867
|
+
}), Jn = /* @__PURE__ */ u("$ZodURL", (e, t) => {
|
|
868
868
|
v.init(e, t), e._zod.check = (n) => {
|
|
869
869
|
try {
|
|
870
870
|
const r = n.value.trim(), o = new URL(r);
|
|
@@ -896,32 +896,32 @@ const Dn = {
|
|
|
896
896
|
});
|
|
897
897
|
}
|
|
898
898
|
};
|
|
899
|
-
}),
|
|
900
|
-
t.pattern ?? (t.pattern =
|
|
901
|
-
}),
|
|
902
|
-
t.pattern ?? (t.pattern =
|
|
903
|
-
}),
|
|
904
|
-
t.pattern ?? (t.pattern = Xt), v.init(e, t);
|
|
905
|
-
}), Wn = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
|
|
899
|
+
}), Vn = /* @__PURE__ */ u("$ZodEmoji", (e, t) => {
|
|
900
|
+
t.pattern ?? (t.pattern = ln()), v.init(e, t);
|
|
901
|
+
}), Bn = /* @__PURE__ */ u("$ZodNanoID", (e, t) => {
|
|
902
|
+
t.pattern ?? (t.pattern = on), v.init(e, t);
|
|
903
|
+
}), Wn = /* @__PURE__ */ u("$ZodCUID", (e, t) => {
|
|
906
904
|
t.pattern ?? (t.pattern = Qt), v.init(e, t);
|
|
907
|
-
}), Yn = /* @__PURE__ */ u("$
|
|
905
|
+
}), Yn = /* @__PURE__ */ u("$ZodCUID2", (e, t) => {
|
|
908
906
|
t.pattern ?? (t.pattern = en), v.init(e, t);
|
|
909
|
-
}), Kn = /* @__PURE__ */ u("$
|
|
907
|
+
}), Kn = /* @__PURE__ */ u("$ZodULID", (e, t) => {
|
|
910
908
|
t.pattern ?? (t.pattern = tn), v.init(e, t);
|
|
911
|
-
}), Gn = /* @__PURE__ */ u("$
|
|
909
|
+
}), Gn = /* @__PURE__ */ u("$ZodXID", (e, t) => {
|
|
912
910
|
t.pattern ?? (t.pattern = nn), v.init(e, t);
|
|
913
|
-
}), Hn = /* @__PURE__ */ u("$
|
|
911
|
+
}), Hn = /* @__PURE__ */ u("$ZodKSUID", (e, t) => {
|
|
912
|
+
t.pattern ?? (t.pattern = rn), v.init(e, t);
|
|
913
|
+
}), qn = /* @__PURE__ */ u("$ZodISODateTime", (e, t) => {
|
|
914
|
+
t.pattern ?? (t.pattern = bn(t)), v.init(e, t);
|
|
915
|
+
}), Xn = /* @__PURE__ */ u("$ZodISODate", (e, t) => {
|
|
916
|
+
t.pattern ?? (t.pattern = gn), v.init(e, t);
|
|
917
|
+
}), Qn = /* @__PURE__ */ u("$ZodISOTime", (e, t) => {
|
|
914
918
|
t.pattern ?? (t.pattern = vn(t)), v.init(e, t);
|
|
915
|
-
}),
|
|
916
|
-
t.pattern ?? (t.pattern =
|
|
917
|
-
}),
|
|
918
|
-
t.pattern ?? (t.pattern =
|
|
919
|
-
}),
|
|
920
|
-
t.pattern ?? (t.pattern =
|
|
921
|
-
}), er = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
|
|
922
|
-
t.pattern ?? (t.pattern = ln), v.init(e, t), e._zod.bag.format = "ipv4";
|
|
923
|
-
}), tr = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
|
|
924
|
-
t.pattern ?? (t.pattern = fn), v.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
919
|
+
}), er = /* @__PURE__ */ u("$ZodISODuration", (e, t) => {
|
|
920
|
+
t.pattern ?? (t.pattern = sn), v.init(e, t);
|
|
921
|
+
}), tr = /* @__PURE__ */ u("$ZodIPv4", (e, t) => {
|
|
922
|
+
t.pattern ?? (t.pattern = fn), v.init(e, t), e._zod.bag.format = "ipv4";
|
|
923
|
+
}), nr = /* @__PURE__ */ u("$ZodIPv6", (e, t) => {
|
|
924
|
+
t.pattern ?? (t.pattern = pn), v.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
925
925
|
try {
|
|
926
926
|
new URL(`http://[${n.value}]`);
|
|
927
927
|
} catch {
|
|
@@ -934,10 +934,10 @@ const Dn = {
|
|
|
934
934
|
});
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
}),
|
|
938
|
-
t.pattern ?? (t.pattern =
|
|
939
|
-
}),
|
|
940
|
-
t.pattern ?? (t.pattern =
|
|
937
|
+
}), rr = /* @__PURE__ */ u("$ZodCIDRv4", (e, t) => {
|
|
938
|
+
t.pattern ?? (t.pattern = dn), v.init(e, t);
|
|
939
|
+
}), or = /* @__PURE__ */ u("$ZodCIDRv6", (e, t) => {
|
|
940
|
+
t.pattern ?? (t.pattern = hn), v.init(e, t), e._zod.check = (n) => {
|
|
941
941
|
const r = n.value.split("/");
|
|
942
942
|
try {
|
|
943
943
|
if (r.length !== 2)
|
|
@@ -962,7 +962,7 @@ const Dn = {
|
|
|
962
962
|
}
|
|
963
963
|
};
|
|
964
964
|
});
|
|
965
|
-
function
|
|
965
|
+
function it(e) {
|
|
966
966
|
if (e === "")
|
|
967
967
|
return !0;
|
|
968
968
|
if (e.length % 4 !== 0)
|
|
@@ -973,9 +973,9 @@ function ot(e) {
|
|
|
973
973
|
return !1;
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
const
|
|
977
|
-
t.pattern ?? (t.pattern =
|
|
978
|
-
|
|
976
|
+
const ir = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
|
|
977
|
+
t.pattern ?? (t.pattern = mn), v.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
978
|
+
it(n.value) || n.issues.push({
|
|
979
979
|
code: "invalid_format",
|
|
980
980
|
format: "base64",
|
|
981
981
|
input: n.value,
|
|
@@ -984,15 +984,15 @@ const or = /* @__PURE__ */ u("$ZodBase64", (e, t) => {
|
|
|
984
984
|
});
|
|
985
985
|
};
|
|
986
986
|
});
|
|
987
|
-
function
|
|
988
|
-
if (!
|
|
987
|
+
function sr(e) {
|
|
988
|
+
if (!Qe.test(e))
|
|
989
989
|
return !1;
|
|
990
990
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
991
|
-
return
|
|
991
|
+
return it(n);
|
|
992
992
|
}
|
|
993
|
-
const
|
|
994
|
-
t.pattern ?? (t.pattern =
|
|
995
|
-
|
|
993
|
+
const cr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
|
|
994
|
+
t.pattern ?? (t.pattern = Qe), v.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
995
|
+
sr(n.value) || n.issues.push({
|
|
996
996
|
code: "invalid_format",
|
|
997
997
|
format: "base64url",
|
|
998
998
|
input: n.value,
|
|
@@ -1000,10 +1000,10 @@ const sr = /* @__PURE__ */ u("$ZodBase64URL", (e, t) => {
|
|
|
1000
1000
|
continue: !t.abort
|
|
1001
1001
|
});
|
|
1002
1002
|
};
|
|
1003
|
-
}),
|
|
1004
|
-
t.pattern ?? (t.pattern =
|
|
1003
|
+
}), ar = /* @__PURE__ */ u("$ZodE164", (e, t) => {
|
|
1004
|
+
t.pattern ?? (t.pattern = _n), v.init(e, t);
|
|
1005
1005
|
});
|
|
1006
|
-
function
|
|
1006
|
+
function ur(e, t = null) {
|
|
1007
1007
|
try {
|
|
1008
1008
|
const n = e.split(".");
|
|
1009
1009
|
if (n.length !== 3)
|
|
@@ -1017,9 +1017,9 @@ function ar(e, t = null) {
|
|
|
1017
1017
|
return !1;
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
const
|
|
1020
|
+
const lr = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
|
|
1021
1021
|
v.init(e, t), e._zod.check = (n) => {
|
|
1022
|
-
|
|
1022
|
+
ur(n.value, t.alg) || n.issues.push({
|
|
1023
1023
|
code: "invalid_format",
|
|
1024
1024
|
format: "jwt",
|
|
1025
1025
|
input: n.value,
|
|
@@ -1027,8 +1027,8 @@ const ur = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
|
|
|
1027
1027
|
continue: !t.abort
|
|
1028
1028
|
});
|
|
1029
1029
|
};
|
|
1030
|
-
}),
|
|
1031
|
-
y.init(e, t), e._zod.pattern = e._zod.bag.pattern ??
|
|
1030
|
+
}), st = /* @__PURE__ */ u("$ZodNumber", (e, t) => {
|
|
1031
|
+
y.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? wn, e._zod.parse = (n, r) => {
|
|
1032
1032
|
if (t.coerce)
|
|
1033
1033
|
try {
|
|
1034
1034
|
n.value = Number(n.value);
|
|
@@ -1046,10 +1046,10 @@ const ur = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
|
|
|
1046
1046
|
...s ? { received: s } : {}
|
|
1047
1047
|
}), n;
|
|
1048
1048
|
};
|
|
1049
|
-
}),
|
|
1050
|
-
|
|
1051
|
-
}),
|
|
1052
|
-
y.init(e, t), e._zod.pattern =
|
|
1049
|
+
}), fr = /* @__PURE__ */ u("$ZodNumberFormat", (e, t) => {
|
|
1050
|
+
On.init(e, t), st.init(e, t);
|
|
1051
|
+
}), pr = /* @__PURE__ */ u("$ZodBoolean", (e, t) => {
|
|
1052
|
+
y.init(e, t), e._zod.pattern = $n, e._zod.parse = (n, r) => {
|
|
1053
1053
|
if (t.coerce)
|
|
1054
1054
|
try {
|
|
1055
1055
|
n.value = !!n.value;
|
|
@@ -1063,9 +1063,9 @@ const ur = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
|
|
|
1063
1063
|
inst: e
|
|
1064
1064
|
}), n;
|
|
1065
1065
|
};
|
|
1066
|
-
}),
|
|
1066
|
+
}), dr = /* @__PURE__ */ u("$ZodUnknown", (e, t) => {
|
|
1067
1067
|
y.init(e, t), e._zod.parse = (n) => n;
|
|
1068
|
-
}),
|
|
1068
|
+
}), hr = /* @__PURE__ */ u("$ZodNever", (e, t) => {
|
|
1069
1069
|
y.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
1070
1070
|
expected: "never",
|
|
1071
1071
|
code: "invalid_type",
|
|
@@ -1074,9 +1074,9 @@ const ur = /* @__PURE__ */ u("$ZodJWT", (e, t) => {
|
|
|
1074
1074
|
}), n);
|
|
1075
1075
|
});
|
|
1076
1076
|
function ke(e, t, n) {
|
|
1077
|
-
e.issues.length && t.issues.push(...
|
|
1077
|
+
e.issues.length && t.issues.push(...Ge(n, e.issues)), t.value[n] = e.value;
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const mr = /* @__PURE__ */ u("$ZodArray", (e, t) => {
|
|
1080
1080
|
y.init(e, t), e._zod.parse = (n, r) => {
|
|
1081
1081
|
const o = n.value;
|
|
1082
1082
|
if (!Array.isArray(o))
|
|
@@ -1098,20 +1098,20 @@ const hr = /* @__PURE__ */ u("$ZodArray", (e, t) => {
|
|
|
1098
1098
|
return s.length ? Promise.all(s).then(() => n) : n;
|
|
1099
1099
|
};
|
|
1100
1100
|
});
|
|
1101
|
-
function
|
|
1101
|
+
function Q(e, t, n, r, o) {
|
|
1102
1102
|
if (e.issues.length) {
|
|
1103
1103
|
if (o && !(n in r))
|
|
1104
1104
|
return;
|
|
1105
|
-
t.issues.push(...
|
|
1105
|
+
t.issues.push(...Ge(n, e.issues));
|
|
1106
1106
|
}
|
|
1107
1107
|
e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function ct(e) {
|
|
1110
1110
|
const t = Object.keys(e.shape);
|
|
1111
1111
|
for (const r of t)
|
|
1112
1112
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
1113
1113
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
1114
|
-
const n =
|
|
1114
|
+
const n = Pt(e.shape);
|
|
1115
1115
|
return {
|
|
1116
1116
|
...e,
|
|
1117
1117
|
keys: t,
|
|
@@ -1120,7 +1120,7 @@ function st(e) {
|
|
|
1120
1120
|
optionalKeys: new Set(n)
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function at(e, t, n, r, o, s) {
|
|
1124
1124
|
const i = [], c = o.keySet, a = o.catchall._zod, l = a.def.type, f = a.optout === "optional";
|
|
1125
1125
|
for (const h in t) {
|
|
1126
1126
|
if (c.has(h))
|
|
@@ -1130,7 +1130,7 @@ function ct(e, t, n, r, o, s) {
|
|
|
1130
1130
|
continue;
|
|
1131
1131
|
}
|
|
1132
1132
|
const d = a.run({ value: t[h], issues: [] }, r);
|
|
1133
|
-
d instanceof Promise ? e.push(d.then((m) =>
|
|
1133
|
+
d instanceof Promise ? e.push(d.then((m) => Q(m, n, h, t, f))) : Q(d, n, h, t, f);
|
|
1134
1134
|
}
|
|
1135
1135
|
return i.length && n.issues.push({
|
|
1136
1136
|
code: "unrecognized_keys",
|
|
@@ -1139,7 +1139,7 @@ function ct(e, t, n, r, o, s) {
|
|
|
1139
1139
|
inst: s
|
|
1140
1140
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1142
|
+
const _r = /* @__PURE__ */ u("$ZodObject", (e, t) => {
|
|
1143
1143
|
if (y.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1144
1144
|
const c = t.shape;
|
|
1145
1145
|
Object.defineProperty(t, "shape", {
|
|
@@ -1151,7 +1151,7 @@ const mr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
|
-
const r =
|
|
1154
|
+
const r = re(() => ct(t));
|
|
1155
1155
|
_(e._zod, "propValues", () => {
|
|
1156
1156
|
const c = t.shape, a = {};
|
|
1157
1157
|
for (const l in c) {
|
|
@@ -1179,27 +1179,27 @@ const mr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
|
|
|
1179
1179
|
c.value = {};
|
|
1180
1180
|
const f = [], h = i.shape;
|
|
1181
1181
|
for (const d of i.keys) {
|
|
1182
|
-
const m = h[d],
|
|
1183
|
-
|
|
1182
|
+
const m = h[d], $ = m._zod.optout === "optional", w = m._zod.run({ value: l[d], issues: [] }, a);
|
|
1183
|
+
w instanceof Promise ? f.push(w.then((G) => Q(G, c, d, l, $))) : Q(w, c, d, l, $);
|
|
1184
1184
|
}
|
|
1185
|
-
return s ?
|
|
1185
|
+
return s ? at(f, l, c, a, r.value, e) : f.length ? Promise.all(f).then(() => c) : c;
|
|
1186
1186
|
};
|
|
1187
|
-
}),
|
|
1188
|
-
|
|
1189
|
-
const n = e._zod.parse, r =
|
|
1190
|
-
const m = new
|
|
1191
|
-
const O =
|
|
1187
|
+
}), gr = /* @__PURE__ */ u("$ZodObjectJIT", (e, t) => {
|
|
1188
|
+
_r.init(e, t);
|
|
1189
|
+
const n = e._zod.parse, r = re(() => ct(t)), o = (d) => {
|
|
1190
|
+
const m = new Dn(["shape", "payload", "ctx"]), $ = r.value, w = (N) => {
|
|
1191
|
+
const O = we(N);
|
|
1192
1192
|
return `shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`;
|
|
1193
1193
|
};
|
|
1194
1194
|
m.write("const input = payload.value;");
|
|
1195
|
-
const
|
|
1196
|
-
let
|
|
1197
|
-
for (const N of
|
|
1198
|
-
|
|
1195
|
+
const G = /* @__PURE__ */ Object.create(null);
|
|
1196
|
+
let Zt = 0;
|
|
1197
|
+
for (const N of $.keys)
|
|
1198
|
+
G[N] = `key_${Zt++}`;
|
|
1199
1199
|
m.write("const newResult = {};");
|
|
1200
|
-
for (const N of
|
|
1201
|
-
const O =
|
|
1202
|
-
m.write(`const ${O} = ${
|
|
1200
|
+
for (const N of $.keys) {
|
|
1201
|
+
const O = G[N], I = we(N), Ot = d[N]?._zod?.optout === "optional";
|
|
1202
|
+
m.write(`const ${O} = ${w(N)};`), Ot ? m.write(`
|
|
1203
1203
|
if (${O}.issues.length) {
|
|
1204
1204
|
if (${I} in input) {
|
|
1205
1205
|
payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
|
|
@@ -1236,43 +1236,43 @@ const mr = /* @__PURE__ */ u("$ZodObject", (e, t) => {
|
|
|
1236
1236
|
`);
|
|
1237
1237
|
}
|
|
1238
1238
|
m.write("payload.value = newResult;"), m.write("return payload;");
|
|
1239
|
-
const
|
|
1240
|
-
return (N, O) =>
|
|
1239
|
+
const St = m.compile();
|
|
1240
|
+
return (N, O) => St(d, N, O);
|
|
1241
1241
|
};
|
|
1242
1242
|
let s;
|
|
1243
|
-
const i = B, c = !
|
|
1243
|
+
const i = B, c = !Be.jitless, l = c && It.value, f = t.catchall;
|
|
1244
1244
|
let h;
|
|
1245
1245
|
e._zod.parse = (d, m) => {
|
|
1246
1246
|
h ?? (h = r.value);
|
|
1247
|
-
const
|
|
1248
|
-
return i(
|
|
1247
|
+
const $ = d.value;
|
|
1248
|
+
return i($) ? c && l && m?.async === !1 && m.jitless !== !0 ? (s || (s = o(t.shape)), d = s(d, m), f ? at([], $, d, m, h, e) : d) : n(d, m) : (d.issues.push({
|
|
1249
1249
|
expected: "object",
|
|
1250
1250
|
code: "invalid_type",
|
|
1251
|
-
input:
|
|
1251
|
+
input: $,
|
|
1252
1252
|
inst: e
|
|
1253
1253
|
}), d);
|
|
1254
1254
|
};
|
|
1255
1255
|
});
|
|
1256
|
-
function
|
|
1256
|
+
function Ze(e, t, n, r) {
|
|
1257
1257
|
for (const s of e)
|
|
1258
1258
|
if (s.issues.length === 0)
|
|
1259
1259
|
return t.value = s.value, t;
|
|
1260
|
-
const o = e.filter((s) => !
|
|
1260
|
+
const o = e.filter((s) => !F(s));
|
|
1261
1261
|
return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
|
|
1262
1262
|
code: "invalid_union",
|
|
1263
1263
|
input: t.value,
|
|
1264
1264
|
inst: n,
|
|
1265
|
-
errors: e.map((s) => s.issues.map((i) =>
|
|
1265
|
+
errors: e.map((s) => s.issues.map((i) => R(i, r, C())))
|
|
1266
1266
|
}), t);
|
|
1267
1267
|
}
|
|
1268
|
-
const
|
|
1268
|
+
const ut = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
|
|
1269
1269
|
y.init(e, t), _(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
|
|
1270
1270
|
if (t.options.every((o) => o._zod.values))
|
|
1271
1271
|
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
1272
1272
|
}), _(e._zod, "pattern", () => {
|
|
1273
1273
|
if (t.options.every((o) => o._zod.pattern)) {
|
|
1274
1274
|
const o = t.options.map((s) => s._zod.pattern);
|
|
1275
|
-
return new RegExp(`^(${o.map((s) =>
|
|
1275
|
+
return new RegExp(`^(${o.map((s) => _e(s.source)).join("|")})$`);
|
|
1276
1276
|
}
|
|
1277
1277
|
});
|
|
1278
1278
|
const n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
@@ -1294,10 +1294,10 @@ const at = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
|
|
|
1294
1294
|
c.push(l);
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
|
-
return i ? Promise.all(c).then((a) =>
|
|
1297
|
+
return i ? Promise.all(c).then((a) => Ze(a, o, e, s)) : Ze(c, o, e, s);
|
|
1298
1298
|
};
|
|
1299
|
-
}),
|
|
1300
|
-
t.inclusive = !1,
|
|
1299
|
+
}), vr = /* @__PURE__ */ u("$ZodDiscriminatedUnion", (e, t) => {
|
|
1300
|
+
t.inclusive = !1, ut.init(e, t);
|
|
1301
1301
|
const n = e._zod.parse;
|
|
1302
1302
|
_(e._zod, "propValues", () => {
|
|
1303
1303
|
const o = {};
|
|
@@ -1313,7 +1313,7 @@ const at = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
return o;
|
|
1315
1315
|
});
|
|
1316
|
-
const r =
|
|
1316
|
+
const r = re(() => {
|
|
1317
1317
|
const o = t.options, s = /* @__PURE__ */ new Map();
|
|
1318
1318
|
for (const i of o) {
|
|
1319
1319
|
const c = i._zod.propValues?.[t.discriminator];
|
|
@@ -1347,13 +1347,13 @@ const at = /* @__PURE__ */ u("$ZodUnion", (e, t) => {
|
|
|
1347
1347
|
inst: e
|
|
1348
1348
|
}), o);
|
|
1349
1349
|
};
|
|
1350
|
-
}),
|
|
1350
|
+
}), br = /* @__PURE__ */ u("$ZodIntersection", (e, t) => {
|
|
1351
1351
|
y.init(e, t), e._zod.parse = (n, r) => {
|
|
1352
1352
|
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
|
|
1353
|
-
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([a, l]) =>
|
|
1353
|
+
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([a, l]) => Se(n, a, l)) : Se(n, s, i);
|
|
1354
1354
|
};
|
|
1355
1355
|
});
|
|
1356
|
-
function
|
|
1356
|
+
function de(e, t) {
|
|
1357
1357
|
if (e === t)
|
|
1358
1358
|
return { valid: !0, data: e };
|
|
1359
1359
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
@@ -1361,7 +1361,7 @@ function fe(e, t) {
|
|
|
1361
1361
|
if (W(e) && W(t)) {
|
|
1362
1362
|
const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
|
|
1363
1363
|
for (const s of r) {
|
|
1364
|
-
const i =
|
|
1364
|
+
const i = de(e[s], t[s]);
|
|
1365
1365
|
if (!i.valid)
|
|
1366
1366
|
return {
|
|
1367
1367
|
valid: !1,
|
|
@@ -1376,7 +1376,7 @@ function fe(e, t) {
|
|
|
1376
1376
|
return { valid: !1, mergeErrorPath: [] };
|
|
1377
1377
|
const n = [];
|
|
1378
1378
|
for (let r = 0; r < e.length; r++) {
|
|
1379
|
-
const o = e[r], s = t[r], i =
|
|
1379
|
+
const o = e[r], s = t[r], i = de(o, s);
|
|
1380
1380
|
if (!i.valid)
|
|
1381
1381
|
return {
|
|
1382
1382
|
valid: !1,
|
|
@@ -1388,7 +1388,7 @@ function fe(e, t) {
|
|
|
1388
1388
|
}
|
|
1389
1389
|
return { valid: !1, mergeErrorPath: [] };
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function Se(e, t, n) {
|
|
1392
1392
|
const r = /* @__PURE__ */ new Map();
|
|
1393
1393
|
let o;
|
|
1394
1394
|
for (const c of t.issues)
|
|
@@ -1405,17 +1405,17 @@ function Ze(e, t, n) {
|
|
|
1405
1405
|
else
|
|
1406
1406
|
e.issues.push(c);
|
|
1407
1407
|
const s = [...r].filter(([, c]) => c.l && c.r).map(([c]) => c);
|
|
1408
|
-
if (s.length && o && e.issues.push({ ...o, keys: s }),
|
|
1408
|
+
if (s.length && o && e.issues.push({ ...o, keys: s }), F(e))
|
|
1409
1409
|
return e;
|
|
1410
|
-
const i =
|
|
1410
|
+
const i = de(t.value, n.value);
|
|
1411
1411
|
if (!i.valid)
|
|
1412
1412
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
|
|
1413
1413
|
return e.value = i.data, e;
|
|
1414
1414
|
}
|
|
1415
|
-
const
|
|
1415
|
+
const yr = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
|
|
1416
1416
|
y.init(e, t);
|
|
1417
|
-
const n =
|
|
1418
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) =>
|
|
1417
|
+
const n = We(t.entries), r = new Set(n);
|
|
1418
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => Nt.has(typeof o)).map((o) => typeof o == "string" ? U(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
|
|
1419
1419
|
const i = o.value;
|
|
1420
1420
|
return r.has(i) || o.issues.push({
|
|
1421
1421
|
code: "invalid_value",
|
|
@@ -1424,7 +1424,7 @@ const br = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
|
|
|
1424
1424
|
inst: e
|
|
1425
1425
|
}), o;
|
|
1426
1426
|
};
|
|
1427
|
-
}),
|
|
1427
|
+
}), zr = /* @__PURE__ */ u("$ZodLiteral", (e, t) => {
|
|
1428
1428
|
if (y.init(e, t), t.values.length === 0)
|
|
1429
1429
|
throw new Error("Cannot create literal schema with no valid values");
|
|
1430
1430
|
const n = new Set(t.values);
|
|
@@ -1437,64 +1437,64 @@ const br = /* @__PURE__ */ u("$ZodEnum", (e, t) => {
|
|
|
1437
1437
|
inst: e
|
|
1438
1438
|
}), r;
|
|
1439
1439
|
};
|
|
1440
|
-
}),
|
|
1440
|
+
}), wr = /* @__PURE__ */ u("$ZodTransform", (e, t) => {
|
|
1441
1441
|
y.init(e, t), e._zod.parse = (n, r) => {
|
|
1442
1442
|
if (r.direction === "backward")
|
|
1443
|
-
throw new
|
|
1443
|
+
throw new Ve(e.constructor.name);
|
|
1444
1444
|
const o = t.transform(n.value, n);
|
|
1445
1445
|
if (r.async)
|
|
1446
1446
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
|
|
1447
1447
|
if (o instanceof Promise)
|
|
1448
|
-
throw new
|
|
1448
|
+
throw new M();
|
|
1449
1449
|
return n.value = o, n;
|
|
1450
1450
|
};
|
|
1451
1451
|
});
|
|
1452
|
-
function
|
|
1452
|
+
function Oe(e, t) {
|
|
1453
1453
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1454
1454
|
}
|
|
1455
|
-
const
|
|
1455
|
+
const lt = /* @__PURE__ */ u("$ZodOptional", (e, t) => {
|
|
1456
1456
|
y.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
|
|
1457
1457
|
const n = t.innerType._zod.pattern;
|
|
1458
|
-
return n ? new RegExp(`^(${
|
|
1458
|
+
return n ? new RegExp(`^(${_e(n.source)})?$`) : void 0;
|
|
1459
1459
|
}), e._zod.parse = (n, r) => {
|
|
1460
1460
|
if (t.innerType._zod.optin === "optional") {
|
|
1461
1461
|
const o = t.innerType._zod.run(n, r);
|
|
1462
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1462
|
+
return o instanceof Promise ? o.then((s) => Oe(s, n.value)) : Oe(o, n.value);
|
|
1463
1463
|
}
|
|
1464
1464
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
1465
1465
|
};
|
|
1466
|
-
}),
|
|
1467
|
-
|
|
1466
|
+
}), $r = /* @__PURE__ */ u("$ZodExactOptional", (e, t) => {
|
|
1467
|
+
lt.init(e, t), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
|
|
1468
1468
|
}), kr = /* @__PURE__ */ u("$ZodNullable", (e, t) => {
|
|
1469
1469
|
y.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
|
|
1470
1470
|
const n = t.innerType._zod.pattern;
|
|
1471
|
-
return n ? new RegExp(`^(${
|
|
1471
|
+
return n ? new RegExp(`^(${_e(n.source)}|null)$`) : void 0;
|
|
1472
1472
|
}), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
1473
|
-
}),
|
|
1473
|
+
}), Zr = /* @__PURE__ */ u("$ZodDefault", (e, t) => {
|
|
1474
1474
|
y.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1475
1475
|
if (r.direction === "backward")
|
|
1476
1476
|
return t.innerType._zod.run(n, r);
|
|
1477
1477
|
if (n.value === void 0)
|
|
1478
1478
|
return n.value = t.defaultValue, n;
|
|
1479
1479
|
const o = t.innerType._zod.run(n, r);
|
|
1480
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1480
|
+
return o instanceof Promise ? o.then((s) => Ee(s, t)) : Ee(o, t);
|
|
1481
1481
|
};
|
|
1482
1482
|
});
|
|
1483
|
-
function
|
|
1483
|
+
function Ee(e, t) {
|
|
1484
1484
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1485
1485
|
}
|
|
1486
|
-
const
|
|
1486
|
+
const Sr = /* @__PURE__ */ u("$ZodPrefault", (e, t) => {
|
|
1487
1487
|
y.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
1488
|
-
}),
|
|
1488
|
+
}), Or = /* @__PURE__ */ u("$ZodNonOptional", (e, t) => {
|
|
1489
1489
|
y.init(e, t), _(e._zod, "values", () => {
|
|
1490
1490
|
const n = t.innerType._zod.values;
|
|
1491
1491
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
1492
1492
|
}), e._zod.parse = (n, r) => {
|
|
1493
1493
|
const o = t.innerType._zod.run(n, r);
|
|
1494
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1494
|
+
return o instanceof Promise ? o.then((s) => Te(s, e)) : Te(o, e);
|
|
1495
1495
|
};
|
|
1496
1496
|
});
|
|
1497
|
-
function
|
|
1497
|
+
function Te(e, t) {
|
|
1498
1498
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1499
1499
|
code: "invalid_type",
|
|
1500
1500
|
expected: "nonoptional",
|
|
@@ -1502,7 +1502,7 @@ function Ee(e, t) {
|
|
|
1502
1502
|
inst: t
|
|
1503
1503
|
}), e;
|
|
1504
1504
|
}
|
|
1505
|
-
const
|
|
1505
|
+
const Er = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
|
|
1506
1506
|
y.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1507
1507
|
if (r.direction === "backward")
|
|
1508
1508
|
return t.innerType._zod.run(n, r);
|
|
@@ -1510,50 +1510,50 @@ const Or = /* @__PURE__ */ u("$ZodCatch", (e, t) => {
|
|
|
1510
1510
|
return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
|
|
1511
1511
|
...n,
|
|
1512
1512
|
error: {
|
|
1513
|
-
issues: s.issues.map((i) =>
|
|
1513
|
+
issues: s.issues.map((i) => R(i, r, C()))
|
|
1514
1514
|
},
|
|
1515
1515
|
input: n.value
|
|
1516
1516
|
}), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
|
|
1517
1517
|
...n,
|
|
1518
1518
|
error: {
|
|
1519
|
-
issues: o.issues.map((s) =>
|
|
1519
|
+
issues: o.issues.map((s) => R(s, r, C()))
|
|
1520
1520
|
},
|
|
1521
1521
|
input: n.value
|
|
1522
1522
|
}), n.issues = []), n);
|
|
1523
1523
|
};
|
|
1524
|
-
}),
|
|
1524
|
+
}), Tr = /* @__PURE__ */ u("$ZodPipe", (e, t) => {
|
|
1525
1525
|
y.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
1526
1526
|
if (r.direction === "backward") {
|
|
1527
1527
|
const s = t.out._zod.run(n, r);
|
|
1528
|
-
return s instanceof Promise ? s.then((i) =>
|
|
1528
|
+
return s instanceof Promise ? s.then((i) => q(i, t.in, r)) : q(s, t.in, r);
|
|
1529
1529
|
}
|
|
1530
1530
|
const o = t.in._zod.run(n, r);
|
|
1531
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1531
|
+
return o instanceof Promise ? o.then((s) => q(s, t.out, r)) : q(o, t.out, r);
|
|
1532
1532
|
};
|
|
1533
1533
|
});
|
|
1534
|
-
function
|
|
1534
|
+
function q(e, t, n) {
|
|
1535
1535
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
1536
1536
|
}
|
|
1537
|
-
const
|
|
1537
|
+
const Ir = /* @__PURE__ */ u("$ZodReadonly", (e, t) => {
|
|
1538
1538
|
y.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType?._zod?.optin), _(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
|
|
1539
1539
|
if (r.direction === "backward")
|
|
1540
1540
|
return t.innerType._zod.run(n, r);
|
|
1541
1541
|
const o = t.innerType._zod.run(n, r);
|
|
1542
|
-
return o instanceof Promise ? o.then(
|
|
1542
|
+
return o instanceof Promise ? o.then(Ie) : Ie(o);
|
|
1543
1543
|
};
|
|
1544
1544
|
});
|
|
1545
|
-
function
|
|
1545
|
+
function Ie(e) {
|
|
1546
1546
|
return e.value = Object.freeze(e.value), e;
|
|
1547
1547
|
}
|
|
1548
|
-
const
|
|
1548
|
+
const Nr = /* @__PURE__ */ u("$ZodCustom", (e, t) => {
|
|
1549
1549
|
E.init(e, t), y.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
1550
1550
|
const r = n.value, o = t.fn(r);
|
|
1551
1551
|
if (o instanceof Promise)
|
|
1552
|
-
return o.then((s) =>
|
|
1553
|
-
|
|
1552
|
+
return o.then((s) => Ne(s, n, r, e));
|
|
1553
|
+
Ne(o, n, r, e);
|
|
1554
1554
|
};
|
|
1555
1555
|
});
|
|
1556
|
-
function
|
|
1556
|
+
function Ne(e, t, n, r) {
|
|
1557
1557
|
if (!e) {
|
|
1558
1558
|
const o = {
|
|
1559
1559
|
code: "custom",
|
|
@@ -1568,8 +1568,8 @@ function Ie(e, t, n, r) {
|
|
|
1568
1568
|
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(Y(o));
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
var
|
|
1572
|
-
class
|
|
1571
|
+
var Pe;
|
|
1572
|
+
class Pr {
|
|
1573
1573
|
constructor() {
|
|
1574
1574
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1575
1575
|
}
|
|
@@ -1598,20 +1598,20 @@ class Nr {
|
|
|
1598
1598
|
return this._map.has(t);
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return new
|
|
1601
|
+
function Ar() {
|
|
1602
|
+
return new Pr();
|
|
1603
1603
|
}
|
|
1604
|
-
(
|
|
1604
|
+
(Pe = globalThis).__zod_globalRegistry ?? (Pe.__zod_globalRegistry = Ar());
|
|
1605
1605
|
const J = globalThis.__zod_globalRegistry;
|
|
1606
1606
|
// @__NO_SIDE_EFFECTS__
|
|
1607
|
-
function
|
|
1607
|
+
function jr(e, t) {
|
|
1608
1608
|
return new e({
|
|
1609
1609
|
type: "string",
|
|
1610
1610
|
...p(t)
|
|
1611
1611
|
});
|
|
1612
1612
|
}
|
|
1613
1613
|
// @__NO_SIDE_EFFECTS__
|
|
1614
|
-
function
|
|
1614
|
+
function xr(e, t) {
|
|
1615
1615
|
return new e({
|
|
1616
1616
|
type: "string",
|
|
1617
1617
|
format: "email",
|
|
@@ -1621,7 +1621,7 @@ function jr(e, t) {
|
|
|
1621
1621
|
});
|
|
1622
1622
|
}
|
|
1623
1623
|
// @__NO_SIDE_EFFECTS__
|
|
1624
|
-
function
|
|
1624
|
+
function Ae(e, t) {
|
|
1625
1625
|
return new e({
|
|
1626
1626
|
type: "string",
|
|
1627
1627
|
format: "guid",
|
|
@@ -1631,7 +1631,7 @@ function Pe(e, t) {
|
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
1633
|
// @__NO_SIDE_EFFECTS__
|
|
1634
|
-
function
|
|
1634
|
+
function Cr(e, t) {
|
|
1635
1635
|
return new e({
|
|
1636
1636
|
type: "string",
|
|
1637
1637
|
format: "uuid",
|
|
@@ -1641,7 +1641,7 @@ function xr(e, t) {
|
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
// @__NO_SIDE_EFFECTS__
|
|
1644
|
-
function
|
|
1644
|
+
function Rr(e, t) {
|
|
1645
1645
|
return new e({
|
|
1646
1646
|
type: "string",
|
|
1647
1647
|
format: "uuid",
|
|
@@ -1652,7 +1652,7 @@ function Cr(e, t) {
|
|
|
1652
1652
|
});
|
|
1653
1653
|
}
|
|
1654
1654
|
// @__NO_SIDE_EFFECTS__
|
|
1655
|
-
function
|
|
1655
|
+
function Dr(e, t) {
|
|
1656
1656
|
return new e({
|
|
1657
1657
|
type: "string",
|
|
1658
1658
|
format: "uuid",
|
|
@@ -1663,7 +1663,7 @@ function Rr(e, t) {
|
|
|
1663
1663
|
});
|
|
1664
1664
|
}
|
|
1665
1665
|
// @__NO_SIDE_EFFECTS__
|
|
1666
|
-
function
|
|
1666
|
+
function Fr(e, t) {
|
|
1667
1667
|
return new e({
|
|
1668
1668
|
type: "string",
|
|
1669
1669
|
format: "uuid",
|
|
@@ -1674,7 +1674,7 @@ function Dr(e, t) {
|
|
|
1674
1674
|
});
|
|
1675
1675
|
}
|
|
1676
1676
|
// @__NO_SIDE_EFFECTS__
|
|
1677
|
-
function
|
|
1677
|
+
function Mr(e, t) {
|
|
1678
1678
|
return new e({
|
|
1679
1679
|
type: "string",
|
|
1680
1680
|
format: "url",
|
|
@@ -1684,7 +1684,7 @@ function Fr(e, t) {
|
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
1686
1686
|
// @__NO_SIDE_EFFECTS__
|
|
1687
|
-
function
|
|
1687
|
+
function Ur(e, t) {
|
|
1688
1688
|
return new e({
|
|
1689
1689
|
type: "string",
|
|
1690
1690
|
format: "emoji",
|
|
@@ -1694,7 +1694,7 @@ function Mr(e, t) {
|
|
|
1694
1694
|
});
|
|
1695
1695
|
}
|
|
1696
1696
|
// @__NO_SIDE_EFFECTS__
|
|
1697
|
-
function
|
|
1697
|
+
function Lr(e, t) {
|
|
1698
1698
|
return new e({
|
|
1699
1699
|
type: "string",
|
|
1700
1700
|
format: "nanoid",
|
|
@@ -1704,7 +1704,7 @@ function Ur(e, t) {
|
|
|
1704
1704
|
});
|
|
1705
1705
|
}
|
|
1706
1706
|
// @__NO_SIDE_EFFECTS__
|
|
1707
|
-
function
|
|
1707
|
+
function Jr(e, t) {
|
|
1708
1708
|
return new e({
|
|
1709
1709
|
type: "string",
|
|
1710
1710
|
format: "cuid",
|
|
@@ -1714,7 +1714,7 @@ function Lr(e, t) {
|
|
|
1714
1714
|
});
|
|
1715
1715
|
}
|
|
1716
1716
|
// @__NO_SIDE_EFFECTS__
|
|
1717
|
-
function
|
|
1717
|
+
function Vr(e, t) {
|
|
1718
1718
|
return new e({
|
|
1719
1719
|
type: "string",
|
|
1720
1720
|
format: "cuid2",
|
|
@@ -1724,7 +1724,7 @@ function Jr(e, t) {
|
|
|
1724
1724
|
});
|
|
1725
1725
|
}
|
|
1726
1726
|
// @__NO_SIDE_EFFECTS__
|
|
1727
|
-
function
|
|
1727
|
+
function Br(e, t) {
|
|
1728
1728
|
return new e({
|
|
1729
1729
|
type: "string",
|
|
1730
1730
|
format: "ulid",
|
|
@@ -1734,7 +1734,7 @@ function Vr(e, t) {
|
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
1736
1736
|
// @__NO_SIDE_EFFECTS__
|
|
1737
|
-
function
|
|
1737
|
+
function Wr(e, t) {
|
|
1738
1738
|
return new e({
|
|
1739
1739
|
type: "string",
|
|
1740
1740
|
format: "xid",
|
|
@@ -1744,7 +1744,7 @@ function Br(e, t) {
|
|
|
1744
1744
|
});
|
|
1745
1745
|
}
|
|
1746
1746
|
// @__NO_SIDE_EFFECTS__
|
|
1747
|
-
function
|
|
1747
|
+
function Yr(e, t) {
|
|
1748
1748
|
return new e({
|
|
1749
1749
|
type: "string",
|
|
1750
1750
|
format: "ksuid",
|
|
@@ -1754,7 +1754,7 @@ function Wr(e, t) {
|
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
1756
|
// @__NO_SIDE_EFFECTS__
|
|
1757
|
-
function
|
|
1757
|
+
function Kr(e, t) {
|
|
1758
1758
|
return new e({
|
|
1759
1759
|
type: "string",
|
|
1760
1760
|
format: "ipv4",
|
|
@@ -1764,7 +1764,7 @@ function Yr(e, t) {
|
|
|
1764
1764
|
});
|
|
1765
1765
|
}
|
|
1766
1766
|
// @__NO_SIDE_EFFECTS__
|
|
1767
|
-
function
|
|
1767
|
+
function Gr(e, t) {
|
|
1768
1768
|
return new e({
|
|
1769
1769
|
type: "string",
|
|
1770
1770
|
format: "ipv6",
|
|
@@ -1774,7 +1774,7 @@ function Kr(e, t) {
|
|
|
1774
1774
|
});
|
|
1775
1775
|
}
|
|
1776
1776
|
// @__NO_SIDE_EFFECTS__
|
|
1777
|
-
function
|
|
1777
|
+
function Hr(e, t) {
|
|
1778
1778
|
return new e({
|
|
1779
1779
|
type: "string",
|
|
1780
1780
|
format: "cidrv4",
|
|
@@ -1784,7 +1784,7 @@ function Gr(e, t) {
|
|
|
1784
1784
|
});
|
|
1785
1785
|
}
|
|
1786
1786
|
// @__NO_SIDE_EFFECTS__
|
|
1787
|
-
function
|
|
1787
|
+
function qr(e, t) {
|
|
1788
1788
|
return new e({
|
|
1789
1789
|
type: "string",
|
|
1790
1790
|
format: "cidrv6",
|
|
@@ -1794,7 +1794,7 @@ function Hr(e, t) {
|
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
1796
1796
|
// @__NO_SIDE_EFFECTS__
|
|
1797
|
-
function
|
|
1797
|
+
function Xr(e, t) {
|
|
1798
1798
|
return new e({
|
|
1799
1799
|
type: "string",
|
|
1800
1800
|
format: "base64",
|
|
@@ -1804,7 +1804,7 @@ function qr(e, t) {
|
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
1806
|
// @__NO_SIDE_EFFECTS__
|
|
1807
|
-
function
|
|
1807
|
+
function Qr(e, t) {
|
|
1808
1808
|
return new e({
|
|
1809
1809
|
type: "string",
|
|
1810
1810
|
format: "base64url",
|
|
@@ -1814,7 +1814,7 @@ function Xr(e, t) {
|
|
|
1814
1814
|
});
|
|
1815
1815
|
}
|
|
1816
1816
|
// @__NO_SIDE_EFFECTS__
|
|
1817
|
-
function
|
|
1817
|
+
function eo(e, t) {
|
|
1818
1818
|
return new e({
|
|
1819
1819
|
type: "string",
|
|
1820
1820
|
format: "e164",
|
|
@@ -1824,7 +1824,7 @@ function Qr(e, t) {
|
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
1826
|
// @__NO_SIDE_EFFECTS__
|
|
1827
|
-
function
|
|
1827
|
+
function to(e, t) {
|
|
1828
1828
|
return new e({
|
|
1829
1829
|
type: "string",
|
|
1830
1830
|
format: "jwt",
|
|
@@ -1834,7 +1834,7 @@ function eo(e, t) {
|
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
1836
|
// @__NO_SIDE_EFFECTS__
|
|
1837
|
-
function
|
|
1837
|
+
function no(e, t) {
|
|
1838
1838
|
return new e({
|
|
1839
1839
|
type: "string",
|
|
1840
1840
|
format: "datetime",
|
|
@@ -1846,7 +1846,7 @@ function to(e, t) {
|
|
|
1846
1846
|
});
|
|
1847
1847
|
}
|
|
1848
1848
|
// @__NO_SIDE_EFFECTS__
|
|
1849
|
-
function
|
|
1849
|
+
function ro(e, t) {
|
|
1850
1850
|
return new e({
|
|
1851
1851
|
type: "string",
|
|
1852
1852
|
format: "date",
|
|
@@ -1855,7 +1855,7 @@ function no(e, t) {
|
|
|
1855
1855
|
});
|
|
1856
1856
|
}
|
|
1857
1857
|
// @__NO_SIDE_EFFECTS__
|
|
1858
|
-
function
|
|
1858
|
+
function oo(e, t) {
|
|
1859
1859
|
return new e({
|
|
1860
1860
|
type: "string",
|
|
1861
1861
|
format: "time",
|
|
@@ -1865,7 +1865,7 @@ function ro(e, t) {
|
|
|
1865
1865
|
});
|
|
1866
1866
|
}
|
|
1867
1867
|
// @__NO_SIDE_EFFECTS__
|
|
1868
|
-
function
|
|
1868
|
+
function io(e, t) {
|
|
1869
1869
|
return new e({
|
|
1870
1870
|
type: "string",
|
|
1871
1871
|
format: "duration",
|
|
@@ -1874,7 +1874,7 @@ function oo(e, t) {
|
|
|
1874
1874
|
});
|
|
1875
1875
|
}
|
|
1876
1876
|
// @__NO_SIDE_EFFECTS__
|
|
1877
|
-
function
|
|
1877
|
+
function so(e, t) {
|
|
1878
1878
|
return new e({
|
|
1879
1879
|
type: "number",
|
|
1880
1880
|
checks: [],
|
|
@@ -1882,7 +1882,7 @@ function io(e, t) {
|
|
|
1882
1882
|
});
|
|
1883
1883
|
}
|
|
1884
1884
|
// @__NO_SIDE_EFFECTS__
|
|
1885
|
-
function
|
|
1885
|
+
function co(e, t) {
|
|
1886
1886
|
return new e({
|
|
1887
1887
|
type: "number",
|
|
1888
1888
|
check: "number_format",
|
|
@@ -1892,28 +1892,28 @@ function so(e, t) {
|
|
|
1892
1892
|
});
|
|
1893
1893
|
}
|
|
1894
1894
|
// @__NO_SIDE_EFFECTS__
|
|
1895
|
-
function
|
|
1895
|
+
function ao(e, t) {
|
|
1896
1896
|
return new e({
|
|
1897
1897
|
type: "boolean",
|
|
1898
1898
|
...p(t)
|
|
1899
1899
|
});
|
|
1900
1900
|
}
|
|
1901
1901
|
// @__NO_SIDE_EFFECTS__
|
|
1902
|
-
function
|
|
1902
|
+
function uo(e) {
|
|
1903
1903
|
return new e({
|
|
1904
1904
|
type: "unknown"
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
1907
|
// @__NO_SIDE_EFFECTS__
|
|
1908
|
-
function
|
|
1908
|
+
function lo(e, t) {
|
|
1909
1909
|
return new e({
|
|
1910
1910
|
type: "never",
|
|
1911
1911
|
...p(t)
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
1914
|
// @__NO_SIDE_EFFECTS__
|
|
1915
|
-
function
|
|
1916
|
-
return new
|
|
1915
|
+
function je(e, t) {
|
|
1916
|
+
return new rt({
|
|
1917
1917
|
check: "less_than",
|
|
1918
1918
|
...p(t),
|
|
1919
1919
|
value: e,
|
|
@@ -1921,8 +1921,8 @@ function Ae(e, t) {
|
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
1923
1923
|
// @__NO_SIDE_EFFECTS__
|
|
1924
|
-
function
|
|
1925
|
-
return new
|
|
1924
|
+
function ue(e, t) {
|
|
1925
|
+
return new rt({
|
|
1926
1926
|
check: "less_than",
|
|
1927
1927
|
...p(t),
|
|
1928
1928
|
value: e,
|
|
@@ -1930,8 +1930,8 @@ function ce(e, t) {
|
|
|
1930
1930
|
});
|
|
1931
1931
|
}
|
|
1932
1932
|
// @__NO_SIDE_EFFECTS__
|
|
1933
|
-
function
|
|
1934
|
-
return new
|
|
1933
|
+
function xe(e, t) {
|
|
1934
|
+
return new ot({
|
|
1935
1935
|
check: "greater_than",
|
|
1936
1936
|
...p(t),
|
|
1937
1937
|
value: e,
|
|
@@ -1939,8 +1939,8 @@ function je(e, t) {
|
|
|
1939
1939
|
});
|
|
1940
1940
|
}
|
|
1941
1941
|
// @__NO_SIDE_EFFECTS__
|
|
1942
|
-
function
|
|
1943
|
-
return new
|
|
1942
|
+
function le(e, t) {
|
|
1943
|
+
return new ot({
|
|
1944
1944
|
check: "greater_than",
|
|
1945
1945
|
...p(t),
|
|
1946
1946
|
value: e,
|
|
@@ -1948,40 +1948,40 @@ function ae(e, t) {
|
|
|
1948
1948
|
});
|
|
1949
1949
|
}
|
|
1950
1950
|
// @__NO_SIDE_EFFECTS__
|
|
1951
|
-
function
|
|
1952
|
-
return new
|
|
1951
|
+
function Ce(e, t) {
|
|
1952
|
+
return new Sn({
|
|
1953
1953
|
check: "multiple_of",
|
|
1954
1954
|
...p(t),
|
|
1955
1955
|
value: e
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
1958
|
// @__NO_SIDE_EFFECTS__
|
|
1959
|
-
function
|
|
1960
|
-
return new
|
|
1959
|
+
function ft(e, t) {
|
|
1960
|
+
return new En({
|
|
1961
1961
|
check: "max_length",
|
|
1962
1962
|
...p(t),
|
|
1963
1963
|
maximum: e
|
|
1964
1964
|
});
|
|
1965
1965
|
}
|
|
1966
1966
|
// @__NO_SIDE_EFFECTS__
|
|
1967
|
-
function
|
|
1968
|
-
return new
|
|
1967
|
+
function ee(e, t) {
|
|
1968
|
+
return new Tn({
|
|
1969
1969
|
check: "min_length",
|
|
1970
1970
|
...p(t),
|
|
1971
1971
|
minimum: e
|
|
1972
1972
|
});
|
|
1973
1973
|
}
|
|
1974
1974
|
// @__NO_SIDE_EFFECTS__
|
|
1975
|
-
function
|
|
1976
|
-
return new
|
|
1975
|
+
function pt(e, t) {
|
|
1976
|
+
return new In({
|
|
1977
1977
|
check: "length_equals",
|
|
1978
1978
|
...p(t),
|
|
1979
1979
|
length: e
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
1982
|
// @__NO_SIDE_EFFECTS__
|
|
1983
|
-
function
|
|
1984
|
-
return new
|
|
1983
|
+
function fo(e, t) {
|
|
1984
|
+
return new Nn({
|
|
1985
1985
|
check: "string_format",
|
|
1986
1986
|
format: "regex",
|
|
1987
1987
|
...p(t),
|
|
@@ -1989,24 +1989,24 @@ function lo(e, t) {
|
|
|
1989
1989
|
});
|
|
1990
1990
|
}
|
|
1991
1991
|
// @__NO_SIDE_EFFECTS__
|
|
1992
|
-
function
|
|
1993
|
-
return new
|
|
1992
|
+
function po(e) {
|
|
1993
|
+
return new Pn({
|
|
1994
1994
|
check: "string_format",
|
|
1995
1995
|
format: "lowercase",
|
|
1996
1996
|
...p(e)
|
|
1997
1997
|
});
|
|
1998
1998
|
}
|
|
1999
1999
|
// @__NO_SIDE_EFFECTS__
|
|
2000
|
-
function
|
|
2001
|
-
return new
|
|
2000
|
+
function ho(e) {
|
|
2001
|
+
return new An({
|
|
2002
2002
|
check: "string_format",
|
|
2003
2003
|
format: "uppercase",
|
|
2004
2004
|
...p(e)
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
2007
2007
|
// @__NO_SIDE_EFFECTS__
|
|
2008
|
-
function
|
|
2009
|
-
return new
|
|
2008
|
+
function mo(e, t) {
|
|
2009
|
+
return new jn({
|
|
2010
2010
|
check: "string_format",
|
|
2011
2011
|
format: "includes",
|
|
2012
2012
|
...p(t),
|
|
@@ -2014,8 +2014,8 @@ function ho(e, t) {
|
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
2016
|
// @__NO_SIDE_EFFECTS__
|
|
2017
|
-
function
|
|
2018
|
-
return new
|
|
2017
|
+
function _o(e, t) {
|
|
2018
|
+
return new xn({
|
|
2019
2019
|
check: "string_format",
|
|
2020
2020
|
format: "starts_with",
|
|
2021
2021
|
...p(t),
|
|
@@ -2023,8 +2023,8 @@ function mo(e, t) {
|
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
2025
|
// @__NO_SIDE_EFFECTS__
|
|
2026
|
-
function
|
|
2027
|
-
return new
|
|
2026
|
+
function go(e, t) {
|
|
2027
|
+
return new Cn({
|
|
2028
2028
|
check: "string_format",
|
|
2029
2029
|
format: "ends_with",
|
|
2030
2030
|
...p(t),
|
|
@@ -2033,33 +2033,33 @@ function _o(e, t) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
// @__NO_SIDE_EFFECTS__
|
|
2035
2035
|
function L(e) {
|
|
2036
|
-
return new
|
|
2036
|
+
return new Rn({
|
|
2037
2037
|
check: "overwrite",
|
|
2038
2038
|
tx: e
|
|
2039
2039
|
});
|
|
2040
2040
|
}
|
|
2041
2041
|
// @__NO_SIDE_EFFECTS__
|
|
2042
|
-
function
|
|
2042
|
+
function vo(e) {
|
|
2043
2043
|
return /* @__PURE__ */ L((t) => t.normalize(e));
|
|
2044
2044
|
}
|
|
2045
2045
|
// @__NO_SIDE_EFFECTS__
|
|
2046
|
-
function
|
|
2046
|
+
function bo() {
|
|
2047
2047
|
return /* @__PURE__ */ L((e) => e.trim());
|
|
2048
2048
|
}
|
|
2049
2049
|
// @__NO_SIDE_EFFECTS__
|
|
2050
|
-
function
|
|
2050
|
+
function yo() {
|
|
2051
2051
|
return /* @__PURE__ */ L((e) => e.toLowerCase());
|
|
2052
2052
|
}
|
|
2053
2053
|
// @__NO_SIDE_EFFECTS__
|
|
2054
|
-
function
|
|
2054
|
+
function zo() {
|
|
2055
2055
|
return /* @__PURE__ */ L((e) => e.toUpperCase());
|
|
2056
2056
|
}
|
|
2057
2057
|
// @__NO_SIDE_EFFECTS__
|
|
2058
|
-
function
|
|
2059
|
-
return /* @__PURE__ */ L((e) =>
|
|
2058
|
+
function wo() {
|
|
2059
|
+
return /* @__PURE__ */ L((e) => Tt(e));
|
|
2060
2060
|
}
|
|
2061
2061
|
// @__NO_SIDE_EFFECTS__
|
|
2062
|
-
function
|
|
2062
|
+
function $o(e, t, n) {
|
|
2063
2063
|
return new e({
|
|
2064
2064
|
type: "array",
|
|
2065
2065
|
element: t,
|
|
@@ -2079,8 +2079,8 @@ function ko(e, t, n) {
|
|
|
2079
2079
|
});
|
|
2080
2080
|
}
|
|
2081
2081
|
// @__NO_SIDE_EFFECTS__
|
|
2082
|
-
function
|
|
2083
|
-
const t = /* @__PURE__ */
|
|
2082
|
+
function Zo(e) {
|
|
2083
|
+
const t = /* @__PURE__ */ So((n) => (n.addIssue = (r) => {
|
|
2084
2084
|
if (typeof r == "string")
|
|
2085
2085
|
n.issues.push(Y(r, n.value, t._zod.def));
|
|
2086
2086
|
else {
|
|
@@ -2091,14 +2091,14 @@ function $o(e) {
|
|
|
2091
2091
|
return t;
|
|
2092
2092
|
}
|
|
2093
2093
|
// @__NO_SIDE_EFFECTS__
|
|
2094
|
-
function
|
|
2094
|
+
function So(e, t) {
|
|
2095
2095
|
const n = new E({
|
|
2096
2096
|
check: "custom",
|
|
2097
2097
|
...p(t)
|
|
2098
2098
|
});
|
|
2099
2099
|
return n._zod.check = e, n;
|
|
2100
2100
|
}
|
|
2101
|
-
function
|
|
2101
|
+
function dt(e) {
|
|
2102
2102
|
let t = e?.target ?? "draft-2020-12";
|
|
2103
2103
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2104
2104
|
processors: e.processors ?? {},
|
|
@@ -2115,7 +2115,7 @@ function pt(e) {
|
|
|
2115
2115
|
external: e?.external ?? void 0
|
|
2116
2116
|
};
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function k(e, t, n = { path: [], schemaPath: [] }) {
|
|
2119
2119
|
var r;
|
|
2120
2120
|
const o = e._zod.def, s = t.seen.get(e);
|
|
2121
2121
|
if (s)
|
|
@@ -2140,12 +2140,12 @@ function $(e, t, n = { path: [], schemaPath: [] }) {
|
|
|
2140
2140
|
m(e, t, d, f);
|
|
2141
2141
|
}
|
|
2142
2142
|
const h = e._zod.parent;
|
|
2143
|
-
h && (i.ref || (i.ref = h),
|
|
2143
|
+
h && (i.ref || (i.ref = h), k(h, t, f), t.seen.get(h).isParent = !0);
|
|
2144
2144
|
}
|
|
2145
2145
|
const a = t.metadataRegistry.get(e);
|
|
2146
2146
|
return a && Object.assign(i.schema, a), t.io === "input" && S(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && i.schema._prefault && ((r = i.schema).default ?? (r.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function ht(e, t) {
|
|
2149
2149
|
const n = e.seen.get(t);
|
|
2150
2150
|
if (!n)
|
|
2151
2151
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -2162,7 +2162,7 @@ function dt(e, t) {
|
|
|
2162
2162
|
const o = (i) => {
|
|
2163
2163
|
const c = e.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
2164
2164
|
if (e.external) {
|
|
2165
|
-
const h = e.external.registry.get(i[0])?.id, d = e.external.uri ?? ((
|
|
2165
|
+
const h = e.external.registry.get(i[0])?.id, d = e.external.uri ?? (($) => $);
|
|
2166
2166
|
if (h)
|
|
2167
2167
|
return { ref: d(h) };
|
|
2168
2168
|
const m = i[1].defId ?? i[1].schema.id ?? `schema${e.counter++}`;
|
|
@@ -2217,7 +2217,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2220
|
+
function mt(e, t) {
|
|
2221
2221
|
const n = e.seen.get(t);
|
|
2222
2222
|
if (!n)
|
|
2223
2223
|
throw new Error("Unprocessed schema. This is a bug in Zod.");
|
|
@@ -2230,11 +2230,11 @@ function ht(e, t) {
|
|
|
2230
2230
|
r(f);
|
|
2231
2231
|
const d = e.seen.get(f), m = d.schema;
|
|
2232
2232
|
if (m.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (a.allOf = a.allOf ?? [], a.allOf.push(m)) : Object.assign(a, m), Object.assign(a, l), i._zod.parent === f)
|
|
2233
|
-
for (const
|
|
2234
|
-
|
|
2233
|
+
for (const w in a)
|
|
2234
|
+
w === "$ref" || w === "allOf" || w in l || delete a[w];
|
|
2235
2235
|
if (m.$ref && d.def)
|
|
2236
|
-
for (const
|
|
2237
|
-
|
|
2236
|
+
for (const w in a)
|
|
2237
|
+
w === "$ref" || w === "allOf" || w in d.def && JSON.stringify(a[w]) === JSON.stringify(d.def[w]) && delete a[w];
|
|
2238
2238
|
}
|
|
2239
2239
|
const h = i._zod.parent;
|
|
2240
2240
|
if (h && h !== f) {
|
|
@@ -2272,8 +2272,8 @@ function ht(e, t) {
|
|
|
2272
2272
|
value: {
|
|
2273
2273
|
...t["~standard"],
|
|
2274
2274
|
jsonSchema: {
|
|
2275
|
-
input:
|
|
2276
|
-
output:
|
|
2275
|
+
input: te(t, "input", e.processors),
|
|
2276
|
+
output: te(t, "output", e.processors)
|
|
2277
2277
|
}
|
|
2278
2278
|
},
|
|
2279
2279
|
enumerable: !1,
|
|
@@ -2325,24 +2325,24 @@ function S(e, t) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
return !1;
|
|
2327
2327
|
}
|
|
2328
|
-
const
|
|
2329
|
-
const r =
|
|
2330
|
-
return
|
|
2331
|
-
},
|
|
2332
|
-
const { libraryOptions: o, target: s } = r ?? {}, i =
|
|
2333
|
-
return
|
|
2334
|
-
},
|
|
2328
|
+
const Oo = (e, t = {}) => (n) => {
|
|
2329
|
+
const r = dt({ ...n, processors: t });
|
|
2330
|
+
return k(e, r), ht(r, e), mt(r, e);
|
|
2331
|
+
}, te = (e, t, n = {}) => (r) => {
|
|
2332
|
+
const { libraryOptions: o, target: s } = r ?? {}, i = dt({ ...o ?? {}, target: s, io: t, processors: n });
|
|
2333
|
+
return k(e, i), ht(i, e), mt(i, e);
|
|
2334
|
+
}, Eo = {
|
|
2335
2335
|
guid: "uuid",
|
|
2336
2336
|
url: "uri",
|
|
2337
2337
|
datetime: "date-time",
|
|
2338
2338
|
json_string: "json-string",
|
|
2339
2339
|
regex: ""
|
|
2340
2340
|
// do not set
|
|
2341
|
-
},
|
|
2341
|
+
}, To = (e, t, n, r) => {
|
|
2342
2342
|
const o = n;
|
|
2343
2343
|
o.type = "string";
|
|
2344
2344
|
const { minimum: s, maximum: i, format: c, patterns: a, contentEncoding: l } = e._zod.bag;
|
|
2345
|
-
if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), c && (o.format =
|
|
2345
|
+
if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), c && (o.format = Eo[c] ?? c, o.format === "" && delete o.format, c === "time" && delete o.format), l && (o.contentEncoding = l), a && a.size > 0) {
|
|
2346
2346
|
const f = [...a];
|
|
2347
2347
|
f.length === 1 ? o.pattern = f[0].source : f.length > 1 && (o.allOf = [
|
|
2348
2348
|
...f.map((h) => ({
|
|
@@ -2351,18 +2351,18 @@ const So = (e, t = {}) => (n) => {
|
|
|
2351
2351
|
}))
|
|
2352
2352
|
]);
|
|
2353
2353
|
}
|
|
2354
|
-
},
|
|
2354
|
+
}, Io = (e, t, n, r) => {
|
|
2355
2355
|
const o = n, { minimum: s, maximum: i, format: c, multipleOf: a, exclusiveMaximum: l, exclusiveMinimum: f } = e._zod.bag;
|
|
2356
2356
|
typeof c == "string" && c.includes("int") ? o.type = "integer" : o.type = "number", typeof f == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (o.minimum = f, o.exclusiveMinimum = !0) : o.exclusiveMinimum = f), typeof s == "number" && (o.minimum = s, typeof f == "number" && t.target !== "draft-04" && (f >= s ? delete o.minimum : delete o.exclusiveMinimum)), typeof l == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (o.maximum = l, o.exclusiveMaximum = !0) : o.exclusiveMaximum = l), typeof i == "number" && (o.maximum = i, typeof l == "number" && t.target !== "draft-04" && (l <= i ? delete o.maximum : delete o.exclusiveMaximum)), typeof a == "number" && (o.multipleOf = a);
|
|
2357
|
-
}, Io = (e, t, n, r) => {
|
|
2358
|
-
n.type = "boolean";
|
|
2359
2357
|
}, No = (e, t, n, r) => {
|
|
2360
|
-
n.
|
|
2358
|
+
n.type = "boolean";
|
|
2361
2359
|
}, Po = (e, t, n, r) => {
|
|
2360
|
+
n.not = {};
|
|
2362
2361
|
}, Ao = (e, t, n, r) => {
|
|
2363
|
-
const o = e._zod.def, s = Be(o.entries);
|
|
2364
|
-
s.every((i) => typeof i == "number") && (n.type = "number"), s.every((i) => typeof i == "string") && (n.type = "string"), n.enum = s;
|
|
2365
2362
|
}, jo = (e, t, n, r) => {
|
|
2363
|
+
const o = e._zod.def, s = We(o.entries);
|
|
2364
|
+
s.every((i) => typeof i == "number") && (n.type = "number"), s.every((i) => typeof i == "string") && (n.type = "string"), n.enum = s;
|
|
2365
|
+
}, xo = (e, t, n, r) => {
|
|
2366
2366
|
const o = e._zod.def, s = [];
|
|
2367
2367
|
for (const i of o.values)
|
|
2368
2368
|
if (i === void 0) {
|
|
@@ -2379,21 +2379,21 @@ const So = (e, t = {}) => (n) => {
|
|
|
2379
2379
|
n.type = i === null ? "null" : typeof i, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [i] : n.const = i;
|
|
2380
2380
|
} else
|
|
2381
2381
|
s.every((i) => typeof i == "number") && (n.type = "number"), s.every((i) => typeof i == "string") && (n.type = "string"), s.every((i) => typeof i == "boolean") && (n.type = "boolean"), s.every((i) => i === null) && (n.type = "null"), n.enum = s;
|
|
2382
|
-
},
|
|
2382
|
+
}, Co = (e, t, n, r) => {
|
|
2383
2383
|
if (t.unrepresentable === "throw")
|
|
2384
2384
|
throw new Error("Custom types cannot be represented in JSON Schema");
|
|
2385
|
-
},
|
|
2385
|
+
}, Ro = (e, t, n, r) => {
|
|
2386
2386
|
if (t.unrepresentable === "throw")
|
|
2387
2387
|
throw new Error("Transforms cannot be represented in JSON Schema");
|
|
2388
|
-
}, Ro = (e, t, n, r) => {
|
|
2389
|
-
const o = n, s = e._zod.def, { minimum: i, maximum: c } = e._zod.bag;
|
|
2390
|
-
typeof i == "number" && (o.minItems = i), typeof c == "number" && (o.maxItems = c), o.type = "array", o.items = $(s.element, t, { ...r, path: [...r.path, "items"] });
|
|
2391
2388
|
}, Do = (e, t, n, r) => {
|
|
2389
|
+
const o = n, s = e._zod.def, { minimum: i, maximum: c } = e._zod.bag;
|
|
2390
|
+
typeof i == "number" && (o.minItems = i), typeof c == "number" && (o.maxItems = c), o.type = "array", o.items = k(s.element, t, { ...r, path: [...r.path, "items"] });
|
|
2391
|
+
}, Fo = (e, t, n, r) => {
|
|
2392
2392
|
const o = n, s = e._zod.def;
|
|
2393
2393
|
o.type = "object", o.properties = {};
|
|
2394
2394
|
const i = s.shape;
|
|
2395
2395
|
for (const l in i)
|
|
2396
|
-
o.properties[l] =
|
|
2396
|
+
o.properties[l] = k(i[l], t, {
|
|
2397
2397
|
...r,
|
|
2398
2398
|
path: [...r.path, "properties", l]
|
|
2399
2399
|
});
|
|
@@ -2401,21 +2401,21 @@ const So = (e, t = {}) => (n) => {
|
|
|
2401
2401
|
const f = s.shape[l]._zod;
|
|
2402
2402
|
return t.io === "input" ? f.optin === void 0 : f.optout === void 0;
|
|
2403
2403
|
}));
|
|
2404
|
-
a.size > 0 && (o.required = Array.from(a)), s.catchall?._zod.def.type === "never" ? o.additionalProperties = !1 : s.catchall ? s.catchall && (o.additionalProperties =
|
|
2404
|
+
a.size > 0 && (o.required = Array.from(a)), s.catchall?._zod.def.type === "never" ? o.additionalProperties = !1 : s.catchall ? s.catchall && (o.additionalProperties = k(s.catchall, t, {
|
|
2405
2405
|
...r,
|
|
2406
2406
|
path: [...r.path, "additionalProperties"]
|
|
2407
2407
|
})) : t.io === "output" && (o.additionalProperties = !1);
|
|
2408
|
-
},
|
|
2409
|
-
const o = e._zod.def, s = o.inclusive === !1, i = o.options.map((c, a) =>
|
|
2408
|
+
}, Mo = (e, t, n, r) => {
|
|
2409
|
+
const o = e._zod.def, s = o.inclusive === !1, i = o.options.map((c, a) => k(c, t, {
|
|
2410
2410
|
...r,
|
|
2411
2411
|
path: [...r.path, s ? "oneOf" : "anyOf", a]
|
|
2412
2412
|
}));
|
|
2413
2413
|
s ? n.oneOf = i : n.anyOf = i;
|
|
2414
|
-
},
|
|
2415
|
-
const o = e._zod.def, s =
|
|
2414
|
+
}, Uo = (e, t, n, r) => {
|
|
2415
|
+
const o = e._zod.def, s = k(o.left, t, {
|
|
2416
2416
|
...r,
|
|
2417
2417
|
path: [...r.path, "allOf", 0]
|
|
2418
|
-
}), i =
|
|
2418
|
+
}), i = k(o.right, t, {
|
|
2419
2419
|
...r,
|
|
2420
2420
|
path: [...r.path, "allOf", 1]
|
|
2421
2421
|
}), c = (l) => "allOf" in l && Object.keys(l).length === 1, a = [
|
|
@@ -2423,27 +2423,27 @@ const So = (e, t = {}) => (n) => {
|
|
|
2423
2423
|
...c(i) ? i.allOf : [i]
|
|
2424
2424
|
];
|
|
2425
2425
|
n.allOf = a;
|
|
2426
|
-
}, Uo = (e, t, n, r) => {
|
|
2427
|
-
const o = e._zod.def, s = $(o.innerType, t, r), i = t.seen.get(e);
|
|
2428
|
-
t.target === "openapi-3.0" ? (i.ref = o.innerType, n.nullable = !0) : n.anyOf = [s, { type: "null" }];
|
|
2429
2426
|
}, Lo = (e, t, n, r) => {
|
|
2427
|
+
const o = e._zod.def, s = k(o.innerType, t, r), i = t.seen.get(e);
|
|
2428
|
+
t.target === "openapi-3.0" ? (i.ref = o.innerType, n.nullable = !0) : n.anyOf = [s, { type: "null" }];
|
|
2429
|
+
}, Jo = (e, t, n, r) => {
|
|
2430
2430
|
const o = e._zod.def;
|
|
2431
|
-
|
|
2431
|
+
k(o.innerType, t, r);
|
|
2432
2432
|
const s = t.seen.get(e);
|
|
2433
2433
|
s.ref = o.innerType;
|
|
2434
|
-
},
|
|
2434
|
+
}, Vo = (e, t, n, r) => {
|
|
2435
2435
|
const o = e._zod.def;
|
|
2436
|
-
|
|
2436
|
+
k(o.innerType, t, r);
|
|
2437
2437
|
const s = t.seen.get(e);
|
|
2438
2438
|
s.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
|
|
2439
|
-
},
|
|
2439
|
+
}, Bo = (e, t, n, r) => {
|
|
2440
2440
|
const o = e._zod.def;
|
|
2441
|
-
|
|
2441
|
+
k(o.innerType, t, r);
|
|
2442
2442
|
const s = t.seen.get(e);
|
|
2443
2443
|
s.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
|
|
2444
|
-
},
|
|
2444
|
+
}, Wo = (e, t, n, r) => {
|
|
2445
2445
|
const o = e._zod.def;
|
|
2446
|
-
|
|
2446
|
+
k(o.innerType, t, r);
|
|
2447
2447
|
const s = t.seen.get(e);
|
|
2448
2448
|
s.ref = o.innerType;
|
|
2449
2449
|
let i;
|
|
@@ -2453,64 +2453,64 @@ const So = (e, t = {}) => (n) => {
|
|
|
2453
2453
|
throw new Error("Dynamic catch values are not supported in JSON Schema");
|
|
2454
2454
|
}
|
|
2455
2455
|
n.default = i;
|
|
2456
|
-
},
|
|
2456
|
+
}, Yo = (e, t, n, r) => {
|
|
2457
2457
|
const o = e._zod.def, s = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
|
|
2458
|
-
|
|
2458
|
+
k(s, t, r);
|
|
2459
2459
|
const i = t.seen.get(e);
|
|
2460
2460
|
i.ref = s;
|
|
2461
|
-
},
|
|
2461
|
+
}, Ko = (e, t, n, r) => {
|
|
2462
2462
|
const o = e._zod.def;
|
|
2463
|
-
|
|
2463
|
+
k(o.innerType, t, r);
|
|
2464
2464
|
const s = t.seen.get(e);
|
|
2465
2465
|
s.ref = o.innerType, n.readOnly = !0;
|
|
2466
|
-
},
|
|
2466
|
+
}, _t = (e, t, n, r) => {
|
|
2467
2467
|
const o = e._zod.def;
|
|
2468
|
-
|
|
2468
|
+
k(o.innerType, t, r);
|
|
2469
2469
|
const s = t.seen.get(e);
|
|
2470
2470
|
s.ref = o.innerType;
|
|
2471
|
-
},
|
|
2472
|
-
Hn.init(e, t), b.init(e, t);
|
|
2473
|
-
});
|
|
2474
|
-
function Go(e) {
|
|
2475
|
-
return /* @__PURE__ */ to(Ko, e);
|
|
2476
|
-
}
|
|
2477
|
-
const Ho = /* @__PURE__ */ u("ZodISODate", (e, t) => {
|
|
2471
|
+
}, Go = /* @__PURE__ */ u("ZodISODateTime", (e, t) => {
|
|
2478
2472
|
qn.init(e, t), b.init(e, t);
|
|
2479
2473
|
});
|
|
2480
|
-
function
|
|
2481
|
-
return /* @__PURE__ */ no(
|
|
2474
|
+
function Ho(e) {
|
|
2475
|
+
return /* @__PURE__ */ no(Go, e);
|
|
2482
2476
|
}
|
|
2483
|
-
const
|
|
2477
|
+
const qo = /* @__PURE__ */ u("ZodISODate", (e, t) => {
|
|
2484
2478
|
Xn.init(e, t), b.init(e, t);
|
|
2485
2479
|
});
|
|
2486
|
-
function
|
|
2487
|
-
return /* @__PURE__ */ ro(
|
|
2480
|
+
function Xo(e) {
|
|
2481
|
+
return /* @__PURE__ */ ro(qo, e);
|
|
2488
2482
|
}
|
|
2489
|
-
const
|
|
2483
|
+
const Qo = /* @__PURE__ */ u("ZodISOTime", (e, t) => {
|
|
2490
2484
|
Qn.init(e, t), b.init(e, t);
|
|
2491
2485
|
});
|
|
2492
|
-
function
|
|
2493
|
-
return /* @__PURE__ */ oo(
|
|
2486
|
+
function ei(e) {
|
|
2487
|
+
return /* @__PURE__ */ oo(Qo, e);
|
|
2494
2488
|
}
|
|
2495
|
-
const
|
|
2496
|
-
|
|
2489
|
+
const ti = /* @__PURE__ */ u("ZodISODuration", (e, t) => {
|
|
2490
|
+
er.init(e, t), b.init(e, t);
|
|
2491
|
+
});
|
|
2492
|
+
function ni(e) {
|
|
2493
|
+
return /* @__PURE__ */ io(ti, e);
|
|
2494
|
+
}
|
|
2495
|
+
const ri = (e, t) => {
|
|
2496
|
+
qe.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2497
2497
|
format: {
|
|
2498
|
-
value: (n) =>
|
|
2498
|
+
value: (n) => Lt(e, n)
|
|
2499
2499
|
// enumerable: false,
|
|
2500
2500
|
},
|
|
2501
2501
|
flatten: {
|
|
2502
|
-
value: (n) =>
|
|
2502
|
+
value: (n) => Ut(e, n)
|
|
2503
2503
|
// enumerable: false,
|
|
2504
2504
|
},
|
|
2505
2505
|
addIssue: {
|
|
2506
2506
|
value: (n) => {
|
|
2507
|
-
e.issues.push(n), e.message = JSON.stringify(e.issues,
|
|
2507
|
+
e.issues.push(n), e.message = JSON.stringify(e.issues, pe, 2);
|
|
2508
2508
|
}
|
|
2509
2509
|
// enumerable: false,
|
|
2510
2510
|
},
|
|
2511
2511
|
addIssues: {
|
|
2512
2512
|
value: (n) => {
|
|
2513
|
-
e.issues.push(...n), e.message = JSON.stringify(e.issues,
|
|
2513
|
+
e.issues.push(...n), e.message = JSON.stringify(e.issues, pe, 2);
|
|
2514
2514
|
}
|
|
2515
2515
|
// enumerable: false,
|
|
2516
2516
|
},
|
|
@@ -2521,21 +2521,21 @@ const ni = (e, t) => {
|
|
|
2521
2521
|
// enumerable: false,
|
|
2522
2522
|
}
|
|
2523
2523
|
});
|
|
2524
|
-
}, T = u("ZodError",
|
|
2524
|
+
}, T = u("ZodError", ri, {
|
|
2525
2525
|
Parent: Error
|
|
2526
|
-
}),
|
|
2526
|
+
}), oi = /* @__PURE__ */ ve(T), ii = /* @__PURE__ */ be(T), si = /* @__PURE__ */ oe(T), ci = /* @__PURE__ */ ie(T), ai = /* @__PURE__ */ Bt(T), ui = /* @__PURE__ */ Wt(T), li = /* @__PURE__ */ Yt(T), fi = /* @__PURE__ */ Kt(T), pi = /* @__PURE__ */ Gt(T), di = /* @__PURE__ */ Ht(T), hi = /* @__PURE__ */ qt(T), mi = /* @__PURE__ */ Xt(T), z = /* @__PURE__ */ u("ZodType", (e, t) => (y.init(e, t), Object.assign(e["~standard"], {
|
|
2527
2527
|
jsonSchema: {
|
|
2528
|
-
input:
|
|
2529
|
-
output:
|
|
2528
|
+
input: te(e, "input"),
|
|
2529
|
+
output: te(e, "output")
|
|
2530
2530
|
}
|
|
2531
|
-
}), e.toJSONSchema =
|
|
2531
|
+
}), e.toJSONSchema = Oo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(A(t, {
|
|
2532
2532
|
checks: [
|
|
2533
2533
|
...t.checks ?? [],
|
|
2534
2534
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2535
2535
|
]
|
|
2536
2536
|
}), {
|
|
2537
2537
|
parent: !0
|
|
2538
|
-
}), e.with = e.check, e.clone = (n, r) => j(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) =>
|
|
2538
|
+
}), e.with = e.check, e.clone = (n, r) => j(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => oi(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => si(e, n, r), e.parseAsync = async (n, r) => ii(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => ci(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ai(e, n, r), e.decode = (n, r) => ui(e, n, r), e.encodeAsync = async (n, r) => li(e, n, r), e.decodeAsync = async (n, r) => fi(e, n, r), e.safeEncode = (n, r) => pi(e, n, r), e.safeDecode = (n, r) => di(e, n, r), e.safeEncodeAsync = async (n, r) => hi(e, n, r), e.safeDecodeAsync = async (n, r) => mi(e, n, r), e.refine = (n, r) => e.check(ls(n, r)), e.superRefine = (n) => e.check(fs(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ L(n)), e.optional = () => Ue(e), e.exactOptional = () => qi(e), e.nullable = () => Le(e), e.nullish = () => Ue(Le(e)), e.nonoptional = (n) => rs(e, n), e.array = () => he(e), e.or = (n) => Ui([e, n]), e.and = (n) => Bi(e, n), e.transform = (n) => Je(e, Gi(n)), e.default = (n) => es(e, n), e.prefault = (n) => ns(e, n), e.catch = (n) => is(e, n), e.pipe = (n) => Je(e, n), e.readonly = () => as(e), e.describe = (n) => {
|
|
2539
2539
|
const r = e.clone();
|
|
2540
2540
|
return J.add(r, { description: n }), r;
|
|
2541
2541
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2548,138 +2548,138 @@ const ni = (e, t) => {
|
|
|
2548
2548
|
return J.get(e);
|
|
2549
2549
|
const r = e.clone();
|
|
2550
2550
|
return J.add(r, n[0]), r;
|
|
2551
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)),
|
|
2552
|
-
|
|
2551
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), gt = /* @__PURE__ */ u("_ZodString", (e, t) => {
|
|
2552
|
+
ye.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, s) => To(e, r, o);
|
|
2553
2553
|
const n = e._zod.bag;
|
|
2554
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */
|
|
2555
|
-
}),
|
|
2556
|
-
|
|
2554
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ fo(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ mo(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ _o(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ go(...r)), e.min = (...r) => e.check(/* @__PURE__ */ ee(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ft(...r)), e.length = (...r) => e.check(/* @__PURE__ */ pt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ ee(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ po(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ ho(r)), e.trim = () => e.check(/* @__PURE__ */ bo()), e.normalize = (...r) => e.check(/* @__PURE__ */ vo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ yo()), e.toUpperCase = () => e.check(/* @__PURE__ */ zo()), e.slugify = () => e.check(/* @__PURE__ */ wo());
|
|
2555
|
+
}), _i = /* @__PURE__ */ u("ZodString", (e, t) => {
|
|
2556
|
+
ye.init(e, t), gt.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ xr(gi, n)), e.url = (n) => e.check(/* @__PURE__ */ Mr(vi, n)), e.jwt = (n) => e.check(/* @__PURE__ */ to(Ai, n)), e.emoji = (n) => e.check(/* @__PURE__ */ Ur(bi, n)), e.guid = (n) => e.check(/* @__PURE__ */ Ae(Re, n)), e.uuid = (n) => e.check(/* @__PURE__ */ Cr(X, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ Rr(X, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ Dr(X, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ Fr(X, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ Lr(yi, n)), e.guid = (n) => e.check(/* @__PURE__ */ Ae(Re, n)), e.cuid = (n) => e.check(/* @__PURE__ */ Jr(zi, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ Vr(wi, n)), e.ulid = (n) => e.check(/* @__PURE__ */ Br($i, n)), e.base64 = (n) => e.check(/* @__PURE__ */ Xr(Ii, n)), e.base64url = (n) => e.check(/* @__PURE__ */ Qr(Ni, n)), e.xid = (n) => e.check(/* @__PURE__ */ Wr(ki, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ Yr(Zi, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ Kr(Si, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ Gr(Oi, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ Hr(Ei, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ qr(Ti, n)), e.e164 = (n) => e.check(/* @__PURE__ */ eo(Pi, n)), e.datetime = (n) => e.check(Ho(n)), e.date = (n) => e.check(Xo(n)), e.time = (n) => e.check(ei(n)), e.duration = (n) => e.check(ni(n));
|
|
2557
2557
|
});
|
|
2558
2558
|
function P(e) {
|
|
2559
|
-
return /* @__PURE__ */
|
|
2559
|
+
return /* @__PURE__ */ jr(_i, e);
|
|
2560
2560
|
}
|
|
2561
2561
|
const b = /* @__PURE__ */ u("ZodStringFormat", (e, t) => {
|
|
2562
|
-
v.init(e, t),
|
|
2563
|
-
}),
|
|
2564
|
-
Un.init(e, t), b.init(e, t);
|
|
2565
|
-
}), Ce = /* @__PURE__ */ u("ZodGUID", (e, t) => {
|
|
2566
|
-
Fn.init(e, t), b.init(e, t);
|
|
2567
|
-
}), q = /* @__PURE__ */ u("ZodUUID", (e, t) => {
|
|
2568
|
-
Mn.init(e, t), b.init(e, t);
|
|
2569
|
-
}), gi = /* @__PURE__ */ u("ZodURL", (e, t) => {
|
|
2562
|
+
v.init(e, t), gt.init(e, t);
|
|
2563
|
+
}), gi = /* @__PURE__ */ u("ZodEmail", (e, t) => {
|
|
2570
2564
|
Ln.init(e, t), b.init(e, t);
|
|
2571
|
-
}),
|
|
2565
|
+
}), Re = /* @__PURE__ */ u("ZodGUID", (e, t) => {
|
|
2566
|
+
Mn.init(e, t), b.init(e, t);
|
|
2567
|
+
}), X = /* @__PURE__ */ u("ZodUUID", (e, t) => {
|
|
2568
|
+
Un.init(e, t), b.init(e, t);
|
|
2569
|
+
}), vi = /* @__PURE__ */ u("ZodURL", (e, t) => {
|
|
2572
2570
|
Jn.init(e, t), b.init(e, t);
|
|
2573
|
-
}), bi = /* @__PURE__ */ u("
|
|
2571
|
+
}), bi = /* @__PURE__ */ u("ZodEmoji", (e, t) => {
|
|
2574
2572
|
Vn.init(e, t), b.init(e, t);
|
|
2575
|
-
}), yi = /* @__PURE__ */ u("
|
|
2573
|
+
}), yi = /* @__PURE__ */ u("ZodNanoID", (e, t) => {
|
|
2576
2574
|
Bn.init(e, t), b.init(e, t);
|
|
2577
|
-
}), zi = /* @__PURE__ */ u("
|
|
2575
|
+
}), zi = /* @__PURE__ */ u("ZodCUID", (e, t) => {
|
|
2578
2576
|
Wn.init(e, t), b.init(e, t);
|
|
2579
|
-
}), wi = /* @__PURE__ */ u("
|
|
2577
|
+
}), wi = /* @__PURE__ */ u("ZodCUID2", (e, t) => {
|
|
2580
2578
|
Yn.init(e, t), b.init(e, t);
|
|
2581
|
-
}),
|
|
2579
|
+
}), $i = /* @__PURE__ */ u("ZodULID", (e, t) => {
|
|
2582
2580
|
Kn.init(e, t), b.init(e, t);
|
|
2583
|
-
}),
|
|
2581
|
+
}), ki = /* @__PURE__ */ u("ZodXID", (e, t) => {
|
|
2584
2582
|
Gn.init(e, t), b.init(e, t);
|
|
2585
|
-
}), Zi = /* @__PURE__ */ u("
|
|
2586
|
-
|
|
2587
|
-
}), Si = /* @__PURE__ */ u("
|
|
2583
|
+
}), Zi = /* @__PURE__ */ u("ZodKSUID", (e, t) => {
|
|
2584
|
+
Hn.init(e, t), b.init(e, t);
|
|
2585
|
+
}), Si = /* @__PURE__ */ u("ZodIPv4", (e, t) => {
|
|
2588
2586
|
tr.init(e, t), b.init(e, t);
|
|
2589
|
-
}), Oi = /* @__PURE__ */ u("
|
|
2587
|
+
}), Oi = /* @__PURE__ */ u("ZodIPv6", (e, t) => {
|
|
2590
2588
|
nr.init(e, t), b.init(e, t);
|
|
2591
|
-
}), Ei = /* @__PURE__ */ u("
|
|
2589
|
+
}), Ei = /* @__PURE__ */ u("ZodCIDRv4", (e, t) => {
|
|
2592
2590
|
rr.init(e, t), b.init(e, t);
|
|
2593
|
-
}), Ti = /* @__PURE__ */ u("
|
|
2591
|
+
}), Ti = /* @__PURE__ */ u("ZodCIDRv6", (e, t) => {
|
|
2594
2592
|
or.init(e, t), b.init(e, t);
|
|
2595
|
-
}), Ii = /* @__PURE__ */ u("
|
|
2596
|
-
|
|
2597
|
-
}), Ni = /* @__PURE__ */ u("
|
|
2593
|
+
}), Ii = /* @__PURE__ */ u("ZodBase64", (e, t) => {
|
|
2594
|
+
ir.init(e, t), b.init(e, t);
|
|
2595
|
+
}), Ni = /* @__PURE__ */ u("ZodBase64URL", (e, t) => {
|
|
2598
2596
|
cr.init(e, t), b.init(e, t);
|
|
2599
|
-
}), Pi = /* @__PURE__ */ u("
|
|
2600
|
-
|
|
2601
|
-
}),
|
|
2602
|
-
|
|
2597
|
+
}), Pi = /* @__PURE__ */ u("ZodE164", (e, t) => {
|
|
2598
|
+
ar.init(e, t), b.init(e, t);
|
|
2599
|
+
}), Ai = /* @__PURE__ */ u("ZodJWT", (e, t) => {
|
|
2600
|
+
lr.init(e, t), b.init(e, t);
|
|
2601
|
+
}), vt = /* @__PURE__ */ u("ZodNumber", (e, t) => {
|
|
2602
|
+
st.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, s) => Io(e, r, o), e.gt = (r, o) => e.check(/* @__PURE__ */ xe(r, o)), e.gte = (r, o) => e.check(/* @__PURE__ */ le(r, o)), e.min = (r, o) => e.check(/* @__PURE__ */ le(r, o)), e.lt = (r, o) => e.check(/* @__PURE__ */ je(r, o)), e.lte = (r, o) => e.check(/* @__PURE__ */ ue(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ ue(r, o)), e.int = (r) => e.check(De(r)), e.safe = (r) => e.check(De(r)), e.positive = (r) => e.check(/* @__PURE__ */ xe(0, r)), e.nonnegative = (r) => e.check(/* @__PURE__ */ le(0, r)), e.negative = (r) => e.check(/* @__PURE__ */ je(0, r)), e.nonpositive = (r) => e.check(/* @__PURE__ */ ue(0, r)), e.multipleOf = (r, o) => e.check(/* @__PURE__ */ Ce(r, o)), e.step = (r, o) => e.check(/* @__PURE__ */ Ce(r, o)), e.finite = () => e;
|
|
2603
2603
|
const n = e._zod.bag;
|
|
2604
2604
|
e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
|
|
2605
2605
|
});
|
|
2606
2606
|
function g(e) {
|
|
2607
|
-
return /* @__PURE__ */
|
|
2607
|
+
return /* @__PURE__ */ so(vt, e);
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2610
|
-
|
|
2611
|
-
});
|
|
2612
|
-
function Re(e) {
|
|
2613
|
-
return /* @__PURE__ */ so(Ai, e);
|
|
2614
|
-
}
|
|
2615
|
-
const ji = /* @__PURE__ */ u("ZodBoolean", (e, t) => {
|
|
2616
|
-
fr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n, r);
|
|
2609
|
+
const ji = /* @__PURE__ */ u("ZodNumberFormat", (e, t) => {
|
|
2610
|
+
fr.init(e, t), vt.init(e, t);
|
|
2617
2611
|
});
|
|
2618
2612
|
function De(e) {
|
|
2619
2613
|
return /* @__PURE__ */ co(ji, e);
|
|
2620
2614
|
}
|
|
2621
|
-
const xi = /* @__PURE__ */ u("
|
|
2622
|
-
pr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) =>
|
|
2615
|
+
const xi = /* @__PURE__ */ u("ZodBoolean", (e, t) => {
|
|
2616
|
+
pr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n, r);
|
|
2623
2617
|
});
|
|
2624
|
-
function Fe() {
|
|
2625
|
-
return /* @__PURE__ */ ao(xi);
|
|
2618
|
+
function Fe(e) {
|
|
2619
|
+
return /* @__PURE__ */ ao(xi, e);
|
|
2626
2620
|
}
|
|
2627
|
-
const Ci = /* @__PURE__ */ u("
|
|
2628
|
-
dr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) =>
|
|
2621
|
+
const Ci = /* @__PURE__ */ u("ZodUnknown", (e, t) => {
|
|
2622
|
+
dr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ao();
|
|
2629
2623
|
});
|
|
2630
|
-
function
|
|
2631
|
-
return /* @__PURE__ */ uo(Ci
|
|
2624
|
+
function Me() {
|
|
2625
|
+
return /* @__PURE__ */ uo(Ci);
|
|
2632
2626
|
}
|
|
2633
|
-
const
|
|
2634
|
-
hr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) =>
|
|
2627
|
+
const Ri = /* @__PURE__ */ u("ZodNever", (e, t) => {
|
|
2628
|
+
hr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Po(e, n, r);
|
|
2635
2629
|
});
|
|
2636
|
-
function
|
|
2637
|
-
return /* @__PURE__ */
|
|
2630
|
+
function Di(e) {
|
|
2631
|
+
return /* @__PURE__ */ lo(Ri, e);
|
|
2638
2632
|
}
|
|
2639
|
-
const Fi = /* @__PURE__ */ u("
|
|
2640
|
-
|
|
2633
|
+
const Fi = /* @__PURE__ */ u("ZodArray", (e, t) => {
|
|
2634
|
+
mr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ ee(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ ee(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ ft(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ pt(n, r)), e.unwrap = () => e.element;
|
|
2641
2635
|
});
|
|
2642
|
-
function
|
|
2636
|
+
function he(e, t) {
|
|
2637
|
+
return /* @__PURE__ */ $o(Fi, e, t);
|
|
2638
|
+
}
|
|
2639
|
+
const Mi = /* @__PURE__ */ u("ZodObject", (e, t) => {
|
|
2640
|
+
gr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), _(e, "shape", () => t.shape), e.keyof = () => Wi(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Me() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Me() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Di() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => Ct(e, n), e.safeExtend = (n) => Rt(e, n), e.merge = (n) => Dt(e, n), e.pick = (n) => jt(e, n), e.omit = (n) => xt(e, n), e.partial = (...n) => Ft(yt, e, n[0]), e.required = (...n) => Mt(zt, e, n[0]);
|
|
2641
|
+
});
|
|
2642
|
+
function ce(e, t) {
|
|
2643
2643
|
const n = {
|
|
2644
2644
|
type: "object",
|
|
2645
2645
|
shape: e ?? {},
|
|
2646
2646
|
...p(t)
|
|
2647
2647
|
};
|
|
2648
|
-
return new
|
|
2648
|
+
return new Mi(n);
|
|
2649
2649
|
}
|
|
2650
|
-
const
|
|
2651
|
-
|
|
2650
|
+
const bt = /* @__PURE__ */ u("ZodUnion", (e, t) => {
|
|
2651
|
+
ut.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.options = t.options;
|
|
2652
2652
|
});
|
|
2653
|
-
function
|
|
2654
|
-
return new
|
|
2653
|
+
function Ui(e, t) {
|
|
2654
|
+
return new bt({
|
|
2655
2655
|
type: "union",
|
|
2656
2656
|
options: e,
|
|
2657
2657
|
...p(t)
|
|
2658
2658
|
});
|
|
2659
2659
|
}
|
|
2660
|
-
const
|
|
2661
|
-
|
|
2660
|
+
const Li = /* @__PURE__ */ u("ZodDiscriminatedUnion", (e, t) => {
|
|
2661
|
+
bt.init(e, t), vr.init(e, t);
|
|
2662
2662
|
});
|
|
2663
|
-
function
|
|
2664
|
-
return new
|
|
2663
|
+
function Ji(e, t, n) {
|
|
2664
|
+
return new Li({
|
|
2665
2665
|
type: "union",
|
|
2666
2666
|
options: t,
|
|
2667
2667
|
discriminator: e,
|
|
2668
2668
|
...p(n)
|
|
2669
2669
|
});
|
|
2670
2670
|
}
|
|
2671
|
-
const
|
|
2672
|
-
|
|
2671
|
+
const Vi = /* @__PURE__ */ u("ZodIntersection", (e, t) => {
|
|
2672
|
+
br.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Uo(e, n, r, o);
|
|
2673
2673
|
});
|
|
2674
|
-
function
|
|
2675
|
-
return new
|
|
2674
|
+
function Bi(e, t) {
|
|
2675
|
+
return new Vi({
|
|
2676
2676
|
type: "intersection",
|
|
2677
2677
|
left: e,
|
|
2678
2678
|
right: t
|
|
2679
2679
|
});
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2682
|
-
|
|
2681
|
+
const ne = /* @__PURE__ */ u("ZodEnum", (e, t) => {
|
|
2682
|
+
yr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (r, o, s) => jo(e, r, o), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2683
2683
|
const n = new Set(Object.keys(t.entries));
|
|
2684
2684
|
e.extract = (r, o) => {
|
|
2685
2685
|
const s = {};
|
|
@@ -2688,7 +2688,7 @@ const te = /* @__PURE__ */ u("ZodEnum", (e, t) => {
|
|
|
2688
2688
|
s[i] = t.entries[i];
|
|
2689
2689
|
else
|
|
2690
2690
|
throw new Error(`Key ${i} not found in enum`);
|
|
2691
|
-
return new
|
|
2691
|
+
return new ne({
|
|
2692
2692
|
...t,
|
|
2693
2693
|
checks: [],
|
|
2694
2694
|
...p(o),
|
|
@@ -2701,7 +2701,7 @@ const te = /* @__PURE__ */ u("ZodEnum", (e, t) => {
|
|
|
2701
2701
|
delete s[i];
|
|
2702
2702
|
else
|
|
2703
2703
|
throw new Error(`Key ${i} not found in enum`);
|
|
2704
|
-
return new
|
|
2704
|
+
return new ne({
|
|
2705
2705
|
...t,
|
|
2706
2706
|
checks: [],
|
|
2707
2707
|
...p(o),
|
|
@@ -2709,23 +2709,23 @@ const te = /* @__PURE__ */ u("ZodEnum", (e, t) => {
|
|
|
2709
2709
|
});
|
|
2710
2710
|
};
|
|
2711
2711
|
});
|
|
2712
|
-
function
|
|
2712
|
+
function Wi(e, t) {
|
|
2713
2713
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2714
|
-
return new
|
|
2714
|
+
return new ne({
|
|
2715
2715
|
type: "enum",
|
|
2716
2716
|
entries: n,
|
|
2717
2717
|
...p(t)
|
|
2718
2718
|
});
|
|
2719
2719
|
}
|
|
2720
2720
|
function Z(e, t) {
|
|
2721
|
-
return new
|
|
2721
|
+
return new ne({
|
|
2722
2722
|
type: "enum",
|
|
2723
2723
|
entries: e,
|
|
2724
2724
|
...p(t)
|
|
2725
2725
|
});
|
|
2726
2726
|
}
|
|
2727
|
-
const
|
|
2728
|
-
|
|
2727
|
+
const Yi = /* @__PURE__ */ u("ZodLiteral", (e, t) => {
|
|
2728
|
+
zr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => xo(e, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", {
|
|
2729
2729
|
get() {
|
|
2730
2730
|
if (t.values.length > 1)
|
|
2731
2731
|
throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
|
|
@@ -2733,17 +2733,17 @@ const Wi = /* @__PURE__ */ u("ZodLiteral", (e, t) => {
|
|
|
2733
2733
|
}
|
|
2734
2734
|
});
|
|
2735
2735
|
});
|
|
2736
|
-
function
|
|
2737
|
-
return new
|
|
2736
|
+
function x(e, t) {
|
|
2737
|
+
return new Yi({
|
|
2738
2738
|
type: "literal",
|
|
2739
2739
|
values: Array.isArray(e) ? e : [e],
|
|
2740
2740
|
...p(t)
|
|
2741
2741
|
});
|
|
2742
2742
|
}
|
|
2743
|
-
const
|
|
2744
|
-
|
|
2743
|
+
const Ki = /* @__PURE__ */ u("ZodTransform", (e, t) => {
|
|
2744
|
+
wr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n), e._zod.parse = (n, r) => {
|
|
2745
2745
|
if (r.direction === "backward")
|
|
2746
|
-
throw new
|
|
2746
|
+
throw new Ve(e.constructor.name);
|
|
2747
2747
|
n.addIssue = (s) => {
|
|
2748
2748
|
if (typeof s == "string")
|
|
2749
2749
|
n.issues.push(Y(s, n.value, t));
|
|
@@ -2756,113 +2756,113 @@ const Yi = /* @__PURE__ */ u("ZodTransform", (e, t) => {
|
|
|
2756
2756
|
return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
|
|
2757
2757
|
};
|
|
2758
2758
|
});
|
|
2759
|
-
function
|
|
2760
|
-
return new
|
|
2759
|
+
function Gi(e) {
|
|
2760
|
+
return new Ki({
|
|
2761
2761
|
type: "transform",
|
|
2762
2762
|
transform: e
|
|
2763
2763
|
});
|
|
2764
2764
|
}
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2765
|
+
const yt = /* @__PURE__ */ u("ZodOptional", (e, t) => {
|
|
2766
|
+
lt.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => _t(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
|
|
2767
2767
|
});
|
|
2768
|
-
function
|
|
2769
|
-
return new
|
|
2768
|
+
function Ue(e) {
|
|
2769
|
+
return new yt({
|
|
2770
2770
|
type: "optional",
|
|
2771
2771
|
innerType: e
|
|
2772
2772
|
});
|
|
2773
2773
|
}
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2774
|
+
const Hi = /* @__PURE__ */ u("ZodExactOptional", (e, t) => {
|
|
2775
|
+
$r.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => _t(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
|
|
2776
2776
|
});
|
|
2777
|
-
function
|
|
2778
|
-
return new
|
|
2777
|
+
function qi(e) {
|
|
2778
|
+
return new Hi({
|
|
2779
2779
|
type: "optional",
|
|
2780
2780
|
innerType: e
|
|
2781
2781
|
});
|
|
2782
2782
|
}
|
|
2783
|
-
const
|
|
2784
|
-
kr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) =>
|
|
2783
|
+
const Xi = /* @__PURE__ */ u("ZodNullable", (e, t) => {
|
|
2784
|
+
kr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
|
|
2785
2785
|
});
|
|
2786
|
-
function
|
|
2787
|
-
return new
|
|
2786
|
+
function Le(e) {
|
|
2787
|
+
return new Xi({
|
|
2788
2788
|
type: "nullable",
|
|
2789
2789
|
innerType: e
|
|
2790
2790
|
});
|
|
2791
2791
|
}
|
|
2792
|
-
const
|
|
2793
|
-
|
|
2792
|
+
const Qi = /* @__PURE__ */ u("ZodDefault", (e, t) => {
|
|
2793
|
+
Zr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Vo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2794
2794
|
});
|
|
2795
|
-
function
|
|
2796
|
-
return new
|
|
2795
|
+
function es(e, t) {
|
|
2796
|
+
return new Qi({
|
|
2797
2797
|
type: "default",
|
|
2798
2798
|
innerType: e,
|
|
2799
2799
|
get defaultValue() {
|
|
2800
|
-
return typeof t == "function" ? t() :
|
|
2800
|
+
return typeof t == "function" ? t() : Ke(t);
|
|
2801
2801
|
}
|
|
2802
2802
|
});
|
|
2803
2803
|
}
|
|
2804
|
-
const
|
|
2805
|
-
|
|
2804
|
+
const ts = /* @__PURE__ */ u("ZodPrefault", (e, t) => {
|
|
2805
|
+
Sr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Bo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
|
|
2806
2806
|
});
|
|
2807
|
-
function
|
|
2808
|
-
return new
|
|
2807
|
+
function ns(e, t) {
|
|
2808
|
+
return new ts({
|
|
2809
2809
|
type: "prefault",
|
|
2810
2810
|
innerType: e,
|
|
2811
2811
|
get defaultValue() {
|
|
2812
|
-
return typeof t == "function" ? t() :
|
|
2812
|
+
return typeof t == "function" ? t() : Ke(t);
|
|
2813
2813
|
}
|
|
2814
2814
|
});
|
|
2815
2815
|
}
|
|
2816
|
-
const
|
|
2817
|
-
|
|
2816
|
+
const zt = /* @__PURE__ */ u("ZodNonOptional", (e, t) => {
|
|
2817
|
+
Or.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Jo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
|
|
2818
2818
|
});
|
|
2819
|
-
function
|
|
2820
|
-
return new
|
|
2819
|
+
function rs(e, t) {
|
|
2820
|
+
return new zt({
|
|
2821
2821
|
type: "nonoptional",
|
|
2822
2822
|
innerType: e,
|
|
2823
2823
|
...p(t)
|
|
2824
2824
|
});
|
|
2825
2825
|
}
|
|
2826
|
-
const
|
|
2827
|
-
|
|
2826
|
+
const os = /* @__PURE__ */ u("ZodCatch", (e, t) => {
|
|
2827
|
+
Er.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Wo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2828
2828
|
});
|
|
2829
|
-
function
|
|
2830
|
-
return new
|
|
2829
|
+
function is(e, t) {
|
|
2830
|
+
return new os({
|
|
2831
2831
|
type: "catch",
|
|
2832
2832
|
innerType: e,
|
|
2833
2833
|
catchValue: typeof t == "function" ? t : () => t
|
|
2834
2834
|
});
|
|
2835
2835
|
}
|
|
2836
|
-
const
|
|
2837
|
-
|
|
2836
|
+
const ss = /* @__PURE__ */ u("ZodPipe", (e, t) => {
|
|
2837
|
+
Tr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Yo(e, n, r, o), e.in = t.in, e.out = t.out;
|
|
2838
2838
|
});
|
|
2839
|
-
function
|
|
2840
|
-
return new
|
|
2839
|
+
function Je(e, t) {
|
|
2840
|
+
return new ss({
|
|
2841
2841
|
type: "pipe",
|
|
2842
2842
|
in: e,
|
|
2843
2843
|
out: t
|
|
2844
2844
|
// ...util.normalizeParams(params),
|
|
2845
2845
|
});
|
|
2846
2846
|
}
|
|
2847
|
-
const
|
|
2848
|
-
|
|
2847
|
+
const cs = /* @__PURE__ */ u("ZodReadonly", (e, t) => {
|
|
2848
|
+
Ir.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ko(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
|
|
2849
2849
|
});
|
|
2850
|
-
function
|
|
2851
|
-
return new
|
|
2850
|
+
function as(e) {
|
|
2851
|
+
return new cs({
|
|
2852
2852
|
type: "readonly",
|
|
2853
2853
|
innerType: e
|
|
2854
2854
|
});
|
|
2855
2855
|
}
|
|
2856
|
-
const
|
|
2857
|
-
|
|
2856
|
+
const us = /* @__PURE__ */ u("ZodCustom", (e, t) => {
|
|
2857
|
+
Nr.init(e, t), z.init(e, t), e._zod.processJSONSchema = (n, r, o) => Co(e, n);
|
|
2858
2858
|
});
|
|
2859
|
-
function
|
|
2860
|
-
return /* @__PURE__ */ ko(
|
|
2859
|
+
function ls(e, t = {}) {
|
|
2860
|
+
return /* @__PURE__ */ ko(us, e, t);
|
|
2861
2861
|
}
|
|
2862
|
-
function
|
|
2863
|
-
return /* @__PURE__ */
|
|
2862
|
+
function fs(e) {
|
|
2863
|
+
return /* @__PURE__ */ Zo(e);
|
|
2864
2864
|
}
|
|
2865
|
-
const
|
|
2865
|
+
const ps = {
|
|
2866
2866
|
Off: "O",
|
|
2867
2867
|
Normal: "N",
|
|
2868
2868
|
BackfeedAfter: "A",
|
|
@@ -2876,31 +2876,31 @@ const fs = {
|
|
|
2876
2876
|
Backfeed70: "70",
|
|
2877
2877
|
Backfeed80: "80",
|
|
2878
2878
|
Backfeed90: "90"
|
|
2879
|
-
},
|
|
2879
|
+
}, ds = Z(ps), hs = {
|
|
2880
2880
|
Continuous: "N",
|
|
2881
2881
|
VariableLengthContinuous: "V",
|
|
2882
2882
|
NonContinuousWebSensing: "W",
|
|
2883
2883
|
NonContinuousWebSensingAlt: "Y",
|
|
2884
2884
|
NonContinuousMarkSensing: "M",
|
|
2885
2885
|
AutoDetect: "A"
|
|
2886
|
-
},
|
|
2886
|
+
}, ms = Z(hs), _s = {
|
|
2887
2887
|
DirectThermal: "D",
|
|
2888
2888
|
ThermalTransfer: "T"
|
|
2889
|
-
},
|
|
2889
|
+
}, gs = Z(_s), vs = {
|
|
2890
2890
|
Invert: "I",
|
|
2891
2891
|
Normal: "N"
|
|
2892
|
-
},
|
|
2892
|
+
}, bs = Z(vs), ys = {
|
|
2893
2893
|
Mirror: "Y",
|
|
2894
2894
|
Normal: "N"
|
|
2895
|
-
},
|
|
2895
|
+
}, zs = Z(ys), ws = {
|
|
2896
2896
|
Normal: "A",
|
|
2897
2897
|
Half: "B"
|
|
2898
|
-
},
|
|
2899
|
-
|
|
2898
|
+
}, $s = Z(
|
|
2899
|
+
ws
|
|
2900
2900
|
), ks = {
|
|
2901
2901
|
Enable: "Y",
|
|
2902
2902
|
Disable: "N"
|
|
2903
|
-
},
|
|
2903
|
+
}, Zs = Z(ks), Ss = {
|
|
2904
2904
|
TearOff: "T",
|
|
2905
2905
|
PeelOff: "P",
|
|
2906
2906
|
Rewind: "R",
|
|
@@ -2909,23 +2909,23 @@ const fs = {
|
|
|
2909
2909
|
DelayedCut: "D",
|
|
2910
2910
|
EncodeRFID: "F",
|
|
2911
2911
|
Kiosk: "K"
|
|
2912
|
-
},
|
|
2912
|
+
}, Os = Z(Ss), Es = {
|
|
2913
2913
|
Prepeel: "Y",
|
|
2914
2914
|
NoPrepeel: "N"
|
|
2915
|
-
},
|
|
2915
|
+
}, Ts = Z(Es), Is = {
|
|
2916
2916
|
AllMedia: "Y",
|
|
2917
2917
|
ContinuousOnly: "N"
|
|
2918
|
-
},
|
|
2918
|
+
}, Ns = Z(Is), Ps = {
|
|
2919
2919
|
NoRotation: "N",
|
|
2920
2920
|
Rotate90: "R",
|
|
2921
2921
|
Rotate180: "I",
|
|
2922
2922
|
Rotate270: "B"
|
|
2923
|
-
},
|
|
2923
|
+
}, wt = Z(Ps), $t = {
|
|
2924
2924
|
Left: "L",
|
|
2925
2925
|
Right: "R",
|
|
2926
2926
|
Center: "C",
|
|
2927
2927
|
Justified: "J"
|
|
2928
|
-
}, As = Z(
|
|
2928
|
+
}, As = Z($t), js = {
|
|
2929
2929
|
Highest: "H",
|
|
2930
2930
|
High: "Q",
|
|
2931
2931
|
Medium: "M",
|
|
@@ -2933,10 +2933,10 @@ const fs = {
|
|
|
2933
2933
|
}, xs = Z(js), Cs = {
|
|
2934
2934
|
Yes: "Y",
|
|
2935
2935
|
No: "N"
|
|
2936
|
-
},
|
|
2936
|
+
}, fe = Z(Cs), K = {
|
|
2937
2937
|
Start: "start",
|
|
2938
2938
|
End: "end"
|
|
2939
|
-
}, Rs = Z(
|
|
2939
|
+
}, Rs = Z(K), Ds = {
|
|
2940
2940
|
account: "account",
|
|
2941
2941
|
accountAttributes: "accountAttributes",
|
|
2942
2942
|
accountTiers: "accountTiers",
|
|
@@ -2948,25 +2948,26 @@ const fs = {
|
|
|
2948
2948
|
Uppercase: "Uppercase",
|
|
2949
2949
|
Lowercase: "Lowercase",
|
|
2950
2950
|
Capitalize: "Capitalize"
|
|
2951
|
-
}, Ms = Z(V),
|
|
2951
|
+
}, Ms = Z(V), ic = ce({
|
|
2952
2952
|
word: P(),
|
|
2953
2953
|
width: g(),
|
|
2954
2954
|
spaceWidth: g()
|
|
2955
|
-
}),
|
|
2955
|
+
}), ae = ce({
|
|
2956
2956
|
name: P(),
|
|
2957
2957
|
x: g().int(),
|
|
2958
2958
|
y: g().int(),
|
|
2959
2959
|
defaultValue: P(),
|
|
2960
|
+
verticalAlignment: Rs,
|
|
2960
2961
|
sourceType: Fs,
|
|
2961
2962
|
sourceLookup: P(),
|
|
2962
2963
|
sourceSeperator: P(),
|
|
2963
|
-
hideEmpty:
|
|
2964
|
-
editable:
|
|
2965
|
-
}), Us =
|
|
2966
|
-
type:
|
|
2964
|
+
hideEmpty: Fe(),
|
|
2965
|
+
editable: Fe()
|
|
2966
|
+
}), Us = ae.extend({
|
|
2967
|
+
type: x("text"),
|
|
2967
2968
|
// ^A font, height
|
|
2968
2969
|
font: P().regex(/^[A-Z0-9]$/, "Font must be a single character A-Z or 0-9"),
|
|
2969
|
-
fontOrientation:
|
|
2970
|
+
fontOrientation: wt,
|
|
2970
2971
|
fontHeight: g().int().min(1).max(32e3),
|
|
2971
2972
|
// ^FB maxWidth, maxLines, lineSpacing, alignment, hangingIndent
|
|
2972
2973
|
maxWidth: g().int().min(0).max(9999),
|
|
@@ -2974,57 +2975,61 @@ const fs = {
|
|
|
2974
2975
|
lineSpacing: g().int().min(-9999).max(9999),
|
|
2975
2976
|
alignment: As,
|
|
2976
2977
|
hangingIndent: g().int().min(0).max(9999),
|
|
2977
|
-
verticalAlignment: Rs,
|
|
2978
2978
|
// CUSTOM
|
|
2979
2979
|
charsPerLine: g().int().min(1).max(100),
|
|
2980
2980
|
transformation: Ms,
|
|
2981
2981
|
maxCharacters: g().int().min(1).max(100),
|
|
2982
2982
|
measuredWidth: g().min(0).optional()
|
|
2983
|
-
}), Ls =
|
|
2984
|
-
type:
|
|
2983
|
+
}), Ls = ae.extend({
|
|
2984
|
+
type: x("barcode"),
|
|
2985
2985
|
// ^BY barWidth
|
|
2986
2986
|
barWidth: g().int().min(4).max(9999),
|
|
2987
2987
|
// ^BC orientation, height, line, lineAbove, checkDigit
|
|
2988
|
-
orientation:
|
|
2988
|
+
orientation: wt,
|
|
2989
2989
|
height: g().int().min(1).max(32e3),
|
|
2990
|
-
line:
|
|
2991
|
-
lineAbove:
|
|
2992
|
-
checkDigit:
|
|
2993
|
-
}), Js =
|
|
2994
|
-
type:
|
|
2990
|
+
line: fe,
|
|
2991
|
+
lineAbove: fe,
|
|
2992
|
+
checkDigit: fe
|
|
2993
|
+
}), Js = ae.extend({
|
|
2994
|
+
type: x("qrcode"),
|
|
2995
2995
|
// ^BQ orientation, model, magnification, errorCorrection, mask
|
|
2996
|
-
orientation:
|
|
2997
|
-
model:
|
|
2996
|
+
orientation: x("N"),
|
|
2997
|
+
model: x("2"),
|
|
2998
2998
|
magnification: g().int().min(1).max(100),
|
|
2999
2999
|
errorCorrection: xs,
|
|
3000
3000
|
mask: g().int().min(0).max(7)
|
|
3001
|
-
}), Vs =
|
|
3001
|
+
}), Vs = ae.extend({
|
|
3002
|
+
type: x("image"),
|
|
3003
|
+
// ^CF imagePath
|
|
3004
|
+
data: P()
|
|
3005
|
+
}), Bs = Ji("type", [
|
|
3002
3006
|
Us,
|
|
3003
3007
|
Ls,
|
|
3004
|
-
Js
|
|
3005
|
-
|
|
3008
|
+
Js,
|
|
3009
|
+
Vs
|
|
3010
|
+
]), Ws = ce({
|
|
3006
3011
|
name: P(),
|
|
3007
3012
|
alias: P().length(1)
|
|
3008
|
-
}), kt =
|
|
3009
|
-
type:
|
|
3013
|
+
}), kt = ce({
|
|
3014
|
+
type: x("thermal"),
|
|
3010
3015
|
// ~TA adjustment
|
|
3011
3016
|
tearOffAdjustment: g().int().min(0).max(120),
|
|
3012
3017
|
// ~JS sequence
|
|
3013
|
-
backfeedActions:
|
|
3018
|
+
backfeedActions: ds,
|
|
3014
3019
|
// ^MN media, offset
|
|
3015
|
-
media:
|
|
3020
|
+
media: ms,
|
|
3016
3021
|
mediaOffset: g().int().min(-75).max(283),
|
|
3017
3022
|
// ^MT mediaType
|
|
3018
|
-
thermalMediaType:
|
|
3023
|
+
thermalMediaType: gs,
|
|
3019
3024
|
// ^PO orientation
|
|
3020
|
-
printOrientation:
|
|
3025
|
+
printOrientation: bs,
|
|
3021
3026
|
// ^PM mirror
|
|
3022
|
-
mirror:
|
|
3027
|
+
mirror: zs,
|
|
3023
3028
|
// ^LH x,y
|
|
3024
3029
|
labelHomeX: g().int().min(0).max(32e3),
|
|
3025
3030
|
labelHomeY: g().int().min(0).max(32e3),
|
|
3026
3031
|
// ^JM adjustment
|
|
3027
|
-
printDensityAdjustment:
|
|
3032
|
+
printDensityAdjustment: $s,
|
|
3028
3033
|
// ^PR printSpeed, slewSpeed, backfeedSpeed
|
|
3029
3034
|
printSpeed: g().int().min(1).max(14),
|
|
3030
3035
|
slewSpeed: g().int().min(1).max(14),
|
|
@@ -3032,41 +3037,42 @@ const fs = {
|
|
|
3032
3037
|
// ~SD darkness
|
|
3033
3038
|
darkness: g().int().min(0).max(30),
|
|
3034
3039
|
// ^LR reverse
|
|
3035
|
-
reverse:
|
|
3040
|
+
reverse: Zs,
|
|
3036
3041
|
// ^MM mode, prepeel
|
|
3037
|
-
postPrintMode:
|
|
3038
|
-
prepeel:
|
|
3042
|
+
postPrintMode: Os,
|
|
3043
|
+
prepeel: Ts,
|
|
3039
3044
|
// ^PW width
|
|
3040
3045
|
printWidth: g().int().min(2),
|
|
3041
3046
|
// ^LL length, allMedia
|
|
3042
3047
|
labelLength: g().int().min(1).max(32e3),
|
|
3043
|
-
allMedia:
|
|
3048
|
+
allMedia: Ns,
|
|
3044
3049
|
// Fields
|
|
3045
|
-
fields:
|
|
3046
|
-
fonts:
|
|
3050
|
+
fields: he(Bs),
|
|
3051
|
+
fonts: he(Ws)
|
|
3047
3052
|
});
|
|
3048
|
-
function
|
|
3053
|
+
function sc(e) {
|
|
3049
3054
|
return kt.safeParse(e);
|
|
3050
3055
|
}
|
|
3051
|
-
function
|
|
3056
|
+
function cc(e) {
|
|
3052
3057
|
return kt.parse(e);
|
|
3053
3058
|
}
|
|
3054
|
-
function
|
|
3059
|
+
function ac(e, t, n) {
|
|
3055
3060
|
if (e.type === "thermal")
|
|
3056
|
-
return
|
|
3061
|
+
return Ys(e, t, n);
|
|
3057
3062
|
throw new Error(`Unsupported badge type: ${e.type}`);
|
|
3058
3063
|
}
|
|
3059
|
-
function
|
|
3060
|
-
const
|
|
3061
|
-
for (const
|
|
3062
|
-
const
|
|
3063
|
-
|
|
3064
|
+
function Ys(e, t, n) {
|
|
3065
|
+
const r = ["^XA", Ks(e)];
|
|
3066
|
+
for (const o of e.fields) {
|
|
3067
|
+
const s = Gs(o, t, n?.[o.name]);
|
|
3068
|
+
s && r.push(s);
|
|
3064
3069
|
}
|
|
3065
|
-
return
|
|
3070
|
+
return r.push("^XZ"), r.join(`
|
|
3066
3071
|
`);
|
|
3067
3072
|
}
|
|
3068
|
-
function
|
|
3073
|
+
function Ks(e) {
|
|
3069
3074
|
const n = [
|
|
3075
|
+
"^CI28",
|
|
3070
3076
|
`~TA${String(e.tearOffAdjustment).padStart(3, "0")}`,
|
|
3071
3077
|
`~JS${e.backfeedActions}`,
|
|
3072
3078
|
`^MN${e.media},${e.mediaOffset}`,
|
|
@@ -3088,28 +3094,30 @@ function Ys(e) {
|
|
|
3088
3094
|
return n.join(`
|
|
3089
3095
|
`);
|
|
3090
3096
|
}
|
|
3091
|
-
function
|
|
3092
|
-
let
|
|
3093
|
-
if (typeof
|
|
3097
|
+
function Gs(e, t, n) {
|
|
3098
|
+
let r = n ?? Hs(e, t);
|
|
3099
|
+
if (typeof r == "string")
|
|
3094
3100
|
switch (e.type) {
|
|
3095
3101
|
case "text":
|
|
3096
|
-
return
|
|
3102
|
+
return r = qs(e, r), Xs(e, r);
|
|
3097
3103
|
case "barcode":
|
|
3098
|
-
return
|
|
3104
|
+
return tc(e, r);
|
|
3099
3105
|
case "qrcode":
|
|
3100
|
-
return
|
|
3106
|
+
return nc(e, r);
|
|
3107
|
+
case "image":
|
|
3108
|
+
return rc(e);
|
|
3101
3109
|
default: {
|
|
3102
|
-
const
|
|
3103
|
-
throw new Error(`Unsupported field type: ${
|
|
3110
|
+
const o = e;
|
|
3111
|
+
throw new Error(`Unsupported field type: ${o.type}`);
|
|
3104
3112
|
}
|
|
3105
3113
|
}
|
|
3106
3114
|
}
|
|
3107
|
-
function
|
|
3108
|
-
if (!t) return e.defaultValue ?? "";
|
|
3115
|
+
function Hs(e, t) {
|
|
3116
|
+
if (!t) return String(e.defaultValue ?? "");
|
|
3109
3117
|
let n = [];
|
|
3110
3118
|
const r = e.sourceLookup.split(",");
|
|
3111
3119
|
for (const o of r) {
|
|
3112
|
-
const s = o.split("?").map((c) => c
|
|
3120
|
+
const s = o.split("?").map((c) => c?.trim());
|
|
3113
3121
|
let i;
|
|
3114
3122
|
for (const c of s) {
|
|
3115
3123
|
const a = c.match(/^(.+)\[(\d+)\]$/), l = a ? a[1].trim() : c, f = a ? parseInt(a[2], 10) : void 0;
|
|
@@ -3119,7 +3127,9 @@ function Gs(e, t) {
|
|
|
3119
3127
|
h = t.account[l];
|
|
3120
3128
|
break;
|
|
3121
3129
|
case "accountAttributes":
|
|
3122
|
-
h = t.accountAttributes.find(
|
|
3130
|
+
h = t.accountAttributes.find(
|
|
3131
|
+
(d) => d.id === l
|
|
3132
|
+
)?.value;
|
|
3123
3133
|
break;
|
|
3124
3134
|
case "accountTiers":
|
|
3125
3135
|
h = t.accountTier?.name;
|
|
@@ -3137,26 +3147,28 @@ function Gs(e, t) {
|
|
|
3137
3147
|
h = "";
|
|
3138
3148
|
break;
|
|
3139
3149
|
}
|
|
3140
|
-
if (h != null && h !== "")
|
|
3150
|
+
if (h != null && h !== "") {
|
|
3151
|
+
const d = String(h);
|
|
3141
3152
|
if (f !== void 0) {
|
|
3142
|
-
const
|
|
3143
|
-
if (
|
|
3144
|
-
const w =
|
|
3153
|
+
const $ = d.split(",")[f];
|
|
3154
|
+
if ($ !== void 0) {
|
|
3155
|
+
const w = $.trim();
|
|
3145
3156
|
if (w) {
|
|
3146
3157
|
i = w;
|
|
3147
3158
|
break;
|
|
3148
3159
|
}
|
|
3149
3160
|
}
|
|
3150
3161
|
} else {
|
|
3151
|
-
i =
|
|
3162
|
+
i = d;
|
|
3152
3163
|
break;
|
|
3153
3164
|
}
|
|
3165
|
+
}
|
|
3154
3166
|
}
|
|
3155
|
-
i !== void 0 && n.push(i);
|
|
3167
|
+
i !== void 0 && n.push(String(i).trim());
|
|
3156
3168
|
}
|
|
3157
|
-
return n.length === 0 ? e.hideEmpty ? void 0 : (e.defaultValue ?? "").trim() : n.join(e.sourceSeperator ?? " ").trim();
|
|
3169
|
+
return n.length === 0 ? e.hideEmpty ? void 0 : String(e.defaultValue ?? "").trim() : n.join(String(e.sourceSeperator ?? " ")).trim();
|
|
3158
3170
|
}
|
|
3159
|
-
function
|
|
3171
|
+
function qs(e, t) {
|
|
3160
3172
|
switch (e.transformation) {
|
|
3161
3173
|
case V.None:
|
|
3162
3174
|
break;
|
|
@@ -3172,23 +3184,24 @@ function Hs(e, t) {
|
|
|
3172
3184
|
}
|
|
3173
3185
|
return e.maxCharacters !== void 0 && (t = t.slice(0, e.maxCharacters)), t;
|
|
3174
3186
|
}
|
|
3175
|
-
function
|
|
3187
|
+
function Xs(e, t) {
|
|
3176
3188
|
const n = e.fontOrientation, r = `^A${e.font}${n},${e.fontHeight}`;
|
|
3177
|
-
let o = e.maxLines;
|
|
3178
|
-
if (e.verticalAlignment ===
|
|
3179
|
-
|
|
3180
|
-
|
|
3189
|
+
let o = "^FO", s = e.maxLines;
|
|
3190
|
+
if (e.verticalAlignment === K.End) {
|
|
3191
|
+
o = "^FT";
|
|
3192
|
+
const c = Qs(e, t);
|
|
3193
|
+
s = Math.min(c, e.maxLines);
|
|
3181
3194
|
}
|
|
3182
|
-
const
|
|
3183
|
-
return
|
|
3195
|
+
const i = `^FB${e.maxWidth},${s},${e.lineSpacing},${e.alignment},${e.hangingIndent}`;
|
|
3196
|
+
return e.alignment === $t.Center && (t = t + "&"), `${o}${e.x},${e.y}${r}${i}^FD${t}^FS`;
|
|
3184
3197
|
}
|
|
3185
|
-
function
|
|
3198
|
+
function Qs(e, t) {
|
|
3186
3199
|
if (e.measuredWidth !== void 0 && e.maxWidth > 0)
|
|
3187
3200
|
return Math.max(1, Math.ceil(e.measuredWidth / e.maxWidth));
|
|
3188
3201
|
const n = t.split("\\&"), r = e.charsPerLine ?? 0;
|
|
3189
|
-
return
|
|
3202
|
+
return ec(n, r);
|
|
3190
3203
|
}
|
|
3191
|
-
function
|
|
3204
|
+
function ec(e, t) {
|
|
3192
3205
|
if (t <= 0)
|
|
3193
3206
|
return e.length;
|
|
3194
3207
|
let n = 0;
|
|
@@ -3196,59 +3209,68 @@ function Qs(e, t) {
|
|
|
3196
3209
|
n += Math.max(1, Math.ceil(r.length / t));
|
|
3197
3210
|
return n;
|
|
3198
3211
|
}
|
|
3199
|
-
function ec(e, t) {
|
|
3200
|
-
const n = `^BY${e.barWidth}`, r = `^BC${e.orientation},${e.height},${e.line},${e.lineAbove},${e.checkDigit},N`;
|
|
3201
|
-
return `^FT${e.x},${e.y}${n}${r}^FD>;${t}^FS`;
|
|
3202
|
-
}
|
|
3203
3212
|
function tc(e, t) {
|
|
3204
|
-
|
|
3205
|
-
|
|
3213
|
+
let n = "^FO";
|
|
3214
|
+
e.verticalAlignment === K.End && (n = "^FT");
|
|
3215
|
+
const r = `^BY${e.barWidth}`, o = `^BC${e.orientation},${e.height},${e.line},${e.lineAbove},${e.checkDigit},N`;
|
|
3216
|
+
return `${n}${e.x},${e.y}${r}${o}^FD>;${t}^FS`;
|
|
3217
|
+
}
|
|
3218
|
+
function nc(e, t) {
|
|
3219
|
+
let n = "^FO";
|
|
3220
|
+
e.verticalAlignment === K.End && (n = "^FT");
|
|
3221
|
+
const r = `^BQ${e.orientation},${e.model},${e.magnification},${e.errorCorrection},${e.mask}`;
|
|
3222
|
+
return `${n}${e.x},${e.y}${r}^FDQA,${t}^FS`;
|
|
3223
|
+
}
|
|
3224
|
+
function rc(e) {
|
|
3225
|
+
let t = "^FO";
|
|
3226
|
+
return e.verticalAlignment === K.End && (t = "^FT"), `${t}^GF${e.data}^FS`;
|
|
3206
3227
|
}
|
|
3207
3228
|
export {
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3229
|
+
Is as AllMediaMode,
|
|
3230
|
+
ps as BackfeedAction,
|
|
3231
|
+
Ps as FontOrientation,
|
|
3232
|
+
hs as MediaType,
|
|
3233
|
+
ys as MirrorMode,
|
|
3234
|
+
Ss as PostPrintMode,
|
|
3235
|
+
Es as PrepeelMode,
|
|
3236
|
+
ws as PrintDensityAdjustment,
|
|
3237
|
+
vs as PrintOrientation,
|
|
3217
3238
|
js as QRCodeErrorCorrection,
|
|
3218
3239
|
ks as ReverseMode,
|
|
3219
3240
|
Ds as SourceType,
|
|
3220
|
-
|
|
3241
|
+
$t as TextAlignment,
|
|
3221
3242
|
V as TextTransformation,
|
|
3222
|
-
|
|
3223
|
-
|
|
3243
|
+
_s as ThermalMediaType,
|
|
3244
|
+
K as VerticalAlignment,
|
|
3224
3245
|
Cs as YesNo,
|
|
3225
|
-
|
|
3226
|
-
|
|
3246
|
+
Ns as allMediaModeSchema,
|
|
3247
|
+
ds as backfeedActionSchema,
|
|
3227
3248
|
kt as badgeSchema,
|
|
3228
3249
|
Ls as barcodeFieldSchema,
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3250
|
+
Qs as countLines,
|
|
3251
|
+
Bs as fieldSchema,
|
|
3252
|
+
wt as fontOrientationSchema,
|
|
3253
|
+
Ws as fontSchema,
|
|
3254
|
+
ac as generate,
|
|
3255
|
+
Hs as getFieldValue,
|
|
3256
|
+
Vs as imageFieldSchema,
|
|
3257
|
+
ms as mediaTypeSchema,
|
|
3258
|
+
zs as mirrorModeSchema,
|
|
3259
|
+
Os as postPrintModeSchema,
|
|
3260
|
+
Ts as prepeelModeSchema,
|
|
3261
|
+
$s as printDensityAdjustmentSchema,
|
|
3262
|
+
bs as printOrientationSchema,
|
|
3241
3263
|
xs as qrCodeErrorCorrectionSchema,
|
|
3242
3264
|
Js as qrcodeFieldSchema,
|
|
3243
|
-
|
|
3265
|
+
Zs as reverseModeSchema,
|
|
3244
3266
|
Fs as sourceTypeSchema,
|
|
3245
3267
|
As as textAlignmentSchema,
|
|
3246
3268
|
Us as textFieldSchema,
|
|
3247
3269
|
Ms as textTransformationSchema,
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3270
|
+
gs as thermalMediaTypeSchema,
|
|
3271
|
+
sc as validateBadge,
|
|
3272
|
+
cc as validateBadgeOrThrow,
|
|
3251
3273
|
Rs as verticalAlignmentSchema,
|
|
3252
|
-
|
|
3253
|
-
|
|
3274
|
+
ic as wordWidthSchema,
|
|
3275
|
+
fe as yesNoSchema
|
|
3254
3276
|
};
|