@opencloud-eu/web-client 8.0.0 → 8.2.0
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/{axios-ULsDSF3p.js → axios-DRPhbClr.js} +13 -49
- package/dist/{dist-WdVfmT0d.js → dist-CHy-DaIN.js} +1 -1
- package/dist/{generated-CkfYRFme.js → generated-4nR8KA38.js} +505 -311
- package/dist/{graph-D3q1149Y.js → graph-CwVan2Jp.js} +123 -98
- package/dist/{helpers-C_9em2wB.js → helpers-Bh5xR_vg.js} +46 -37
- package/dist/{ocs-CGD-4vGl.js → ocs-Dfdjrujs.js} +271 -296
- package/dist/{ox-D1FgExd1.js → schemas-rdabTCJb.js} +1366 -1250
- package/dist/src/errors.d.ts +2 -1
- package/dist/src/graph/generated/api.d.ts +639 -24
- package/dist/src/graph/guestLinks/guestLinks.d.ts +3 -0
- package/dist/src/graph/guestLinks/index.d.ts +2 -0
- package/dist/src/graph/guestLinks/types.d.ts +13 -0
- package/dist/src/graph/index.d.ts +3 -0
- package/dist/src/graph/types.d.ts +1 -0
- package/dist/src/helpers/resource/types.d.ts +3 -2
- package/dist/src/helpers/share/types.d.ts +3 -0
- package/dist/src/helpers/space/functions.d.ts +2 -2
- package/dist/src/ocs/capabilities.d.ts +1 -0
- package/dist/src/sse/index.d.ts +12 -0
- package/dist/src/webdav/client/dav.d.ts +3 -1
- package/dist/src/webdav/client/parsers.d.ts +1 -0
- package/dist/src/webdav/constants/dav.d.ts +5 -1
- package/dist/src/webdav/index.d.ts +1 -1
- package/dist/{toString-DfgrQ1mh.js → toString-uorCN9F3.js} +1 -1
- package/dist/web-client/graph/generated.js +1 -2
- package/dist/web-client/graph.js +1 -2
- package/dist/web-client/ocs.js +1 -2
- package/dist/web-client/ox.js +49 -2
- package/dist/web-client/sse.js +57 -48
- package/dist/web-client/webdav.js +2 -2
- package/dist/web-client.js +5 -5
- package/dist/webdav-DrQsSfxZ.js +6431 -0
- package/package.json +2 -4
- package/dist/webdav-BxsiETq0.js +0 -4538
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function t(e) {
|
|
1
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
2
|
+
function e(e) {
|
|
4
3
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
5
4
|
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
6
5
|
}
|
|
7
|
-
function
|
|
8
|
-
return e.map((e) =>
|
|
6
|
+
function t(e, t = "|") {
|
|
7
|
+
return e.map((e) => ce(e)).join(t);
|
|
9
8
|
}
|
|
10
|
-
function
|
|
9
|
+
function n(e, t) {
|
|
11
10
|
return typeof t == "bigint" ? t.toString() : t;
|
|
12
11
|
}
|
|
12
|
+
var r = class {
|
|
13
|
+
constructor(e) {
|
|
14
|
+
this._getter = e, this._value = void 0;
|
|
15
|
+
}
|
|
16
|
+
get value() {
|
|
17
|
+
let e = this._getter;
|
|
18
|
+
return e !== void 0 && (this._value = e(), this._getter = void 0), this._value;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
13
21
|
function i(e) {
|
|
14
|
-
return
|
|
15
|
-
{
|
|
16
|
-
let t = e();
|
|
17
|
-
return Object.defineProperty(this, "value", { value: t }), t;
|
|
18
|
-
}
|
|
19
|
-
} };
|
|
22
|
+
return new r(e);
|
|
20
23
|
}
|
|
21
24
|
function a(e) {
|
|
22
25
|
return e == null;
|
|
@@ -37,7 +40,43 @@ function c(e, t, n) {
|
|
|
37
40
|
configurable: !0
|
|
38
41
|
});
|
|
39
42
|
}
|
|
40
|
-
function l(
|
|
43
|
+
function l(e) {
|
|
44
|
+
let t = Object.getOwnPropertyDescriptor(e, "shape");
|
|
45
|
+
return t?.get ? t.get.raw : t?.value;
|
|
46
|
+
}
|
|
47
|
+
function u(e) {
|
|
48
|
+
return l(e._zod.def) ?? e._zod.def.shape;
|
|
49
|
+
}
|
|
50
|
+
function d(e, t, n) {
|
|
51
|
+
Object.defineProperty(e, t, {
|
|
52
|
+
get() {
|
|
53
|
+
let e = n();
|
|
54
|
+
return c(this, t, e), e;
|
|
55
|
+
},
|
|
56
|
+
enumerable: !0,
|
|
57
|
+
configurable: !0
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function f(e, t, n) {
|
|
61
|
+
t in e ? c(e, t, n) : e[t] = n;
|
|
62
|
+
}
|
|
63
|
+
function p(e, t, n, r) {
|
|
64
|
+
let i = u(t);
|
|
65
|
+
for (let a of n) {
|
|
66
|
+
let n = Object.getOwnPropertyDescriptor(i, a);
|
|
67
|
+
n.enumerable && (n.get ? d(e, a, () => {
|
|
68
|
+
let e = t._zod.def.shape[a];
|
|
69
|
+
return r ? r(e, a) : e;
|
|
70
|
+
}) : f(e, a, r ? r(n.value, a) : n.value));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function m(e, t) {
|
|
74
|
+
for (let n of Reflect.ownKeys(t)) {
|
|
75
|
+
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
76
|
+
r.enumerable && (r.get ? d(e, n, () => t[n]) : f(e, n, r.value));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function h(...e) {
|
|
41
80
|
let t = {};
|
|
42
81
|
for (let n of e) {
|
|
43
82
|
let e = Object.getOwnPropertyDescriptors(n);
|
|
@@ -45,40 +84,40 @@ function l(...e) {
|
|
|
45
84
|
}
|
|
46
85
|
return Object.defineProperties({}, t);
|
|
47
86
|
}
|
|
48
|
-
function
|
|
87
|
+
function ee(e) {
|
|
49
88
|
return JSON.stringify(e);
|
|
50
89
|
}
|
|
51
|
-
function
|
|
90
|
+
function te(e) {
|
|
52
91
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
53
92
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
93
|
+
var ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
94
|
+
function re(e) {
|
|
56
95
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
57
96
|
}
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
97
|
+
var ie = /* @__PURE__*/ i(() => {
|
|
98
|
+
if (k.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
60
99
|
try {
|
|
61
100
|
return Function(""), !0;
|
|
62
101
|
} catch {
|
|
63
102
|
return !1;
|
|
64
103
|
}
|
|
65
104
|
});
|
|
66
|
-
function
|
|
67
|
-
if (
|
|
105
|
+
function g(e) {
|
|
106
|
+
if (re(e) === !1) return !1;
|
|
68
107
|
let t = e.constructor;
|
|
69
108
|
if (t === void 0 || typeof t != "function") return !0;
|
|
70
109
|
let n = t.prototype;
|
|
71
|
-
return
|
|
110
|
+
return re(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
|
|
72
111
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
112
|
+
function ae(e) {
|
|
113
|
+
return g(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
75
114
|
}
|
|
76
|
-
var
|
|
115
|
+
var oe = /* @__PURE__*/ new Set([
|
|
77
116
|
"string",
|
|
78
117
|
"number",
|
|
79
118
|
"symbol"
|
|
80
119
|
]);
|
|
81
|
-
function
|
|
120
|
+
function se(e) {
|
|
82
121
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
83
122
|
}
|
|
84
123
|
function _(e, t, n) {
|
|
@@ -98,172 +137,149 @@ function v(e) {
|
|
|
98
137
|
error: () => t.error
|
|
99
138
|
} : t;
|
|
100
139
|
}
|
|
101
|
-
function
|
|
140
|
+
function ce(e) {
|
|
102
141
|
return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
|
|
103
142
|
}
|
|
104
|
-
function
|
|
143
|
+
function le(e) {
|
|
105
144
|
return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
|
|
106
145
|
}
|
|
107
|
-
var
|
|
146
|
+
var ue = {
|
|
108
147
|
safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
|
|
109
148
|
int32: [-2147483648, 2147483647],
|
|
110
149
|
uint32: [0, 4294967295],
|
|
111
150
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
112
151
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
152
|
+
}, de = {
|
|
153
|
+
int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
|
|
154
|
+
uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")]
|
|
113
155
|
};
|
|
114
|
-
function
|
|
156
|
+
function fe(e, t) {
|
|
115
157
|
let n = e._zod.def, r = n.checks;
|
|
116
158
|
if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
for (let r of Reflect.ownKeys(t)) {
|
|
121
|
-
if (!Object.prototype.hasOwnProperty.call(n.shape, r)) throw Error(`Unrecognized key: "${String(r)}"`);
|
|
122
|
-
t[r] && c(e, r, n.shape[r]);
|
|
123
|
-
}
|
|
124
|
-
return c(this, "shape", e), e;
|
|
125
|
-
},
|
|
159
|
+
let i = {};
|
|
160
|
+
return p(i, e, y(e, t)), _(e, h(n, {
|
|
161
|
+
shape: i,
|
|
126
162
|
checks: []
|
|
127
163
|
}));
|
|
128
164
|
}
|
|
129
|
-
function
|
|
165
|
+
function y(e, t) {
|
|
166
|
+
let n = u(e), r = [];
|
|
167
|
+
for (let e of Reflect.ownKeys(t)) {
|
|
168
|
+
if (!Object.getOwnPropertyDescriptor(n, e)?.enumerable) throw Error(`Unrecognized key: "${String(e)}"`);
|
|
169
|
+
t[e] && r.push(e);
|
|
170
|
+
}
|
|
171
|
+
return r;
|
|
172
|
+
}
|
|
173
|
+
function pe(e, t) {
|
|
130
174
|
let n = e._zod.def, r = n.checks;
|
|
131
175
|
if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (let e of Reflect.ownKeys(t)) {
|
|
136
|
-
if (!Object.prototype.hasOwnProperty.call(n.shape, e)) throw Error(`Unrecognized key: "${String(e)}"`);
|
|
137
|
-
t[e] && delete r[e];
|
|
138
|
-
}
|
|
139
|
-
return c(this, "shape", r), r;
|
|
140
|
-
},
|
|
176
|
+
let i = new Set(y(e, t)), a = {};
|
|
177
|
+
return p(a, e, Reflect.ownKeys(u(e)).filter((e) => !i.has(e))), _(e, h(n, {
|
|
178
|
+
shape: a,
|
|
141
179
|
checks: []
|
|
142
180
|
}));
|
|
143
181
|
}
|
|
144
|
-
function
|
|
145
|
-
if (!
|
|
182
|
+
function me(e, t) {
|
|
183
|
+
if (!g(t)) throw Error("Invalid input to extend: expected a plain object");
|
|
146
184
|
let n = e._zod.def.checks;
|
|
147
185
|
if (n && n.length > 0) {
|
|
148
|
-
let n = e
|
|
186
|
+
let n = u(e);
|
|
149
187
|
for (let e of Reflect.ownKeys(t)) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
150
188
|
}
|
|
151
|
-
return _(e,
|
|
152
|
-
let n = {
|
|
153
|
-
...e._zod.def.shape,
|
|
154
|
-
...t
|
|
155
|
-
};
|
|
156
|
-
return c(this, "shape", n), n;
|
|
157
|
-
} }));
|
|
158
|
-
}
|
|
159
|
-
function ce(e, t) {
|
|
160
|
-
if (!h(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
161
|
-
return _(e, l(e._zod.def, { get shape() {
|
|
162
|
-
let n = {
|
|
163
|
-
...e._zod.def.shape,
|
|
164
|
-
...t
|
|
165
|
-
};
|
|
166
|
-
return c(this, "shape", n), n;
|
|
167
|
-
} }));
|
|
189
|
+
return _(e, h(e._zod.def, { shape: he(e, t) }));
|
|
168
190
|
}
|
|
169
|
-
function
|
|
191
|
+
function he(e, t) {
|
|
192
|
+
let n = {};
|
|
193
|
+
return p(n, e, Reflect.ownKeys(u(e))), m(n, t), n;
|
|
194
|
+
}
|
|
195
|
+
function ge(e, t) {
|
|
196
|
+
if (!g(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
197
|
+
return _(e, h(e._zod.def, { shape: he(e, t) }));
|
|
198
|
+
}
|
|
199
|
+
function _e(e, t) {
|
|
170
200
|
if (!t?._zod?.def) throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
|
|
171
201
|
if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
...e._zod.def.shape,
|
|
176
|
-
...t._zod.def.shape
|
|
177
|
-
};
|
|
178
|
-
return c(this, "shape", n), n;
|
|
179
|
-
},
|
|
202
|
+
let n = {};
|
|
203
|
+
return p(n, e, Reflect.ownKeys(u(e))), p(n, t, Reflect.ownKeys(u(t))), _(e, h(e._zod.def, {
|
|
204
|
+
shape: n,
|
|
180
205
|
get catchall() {
|
|
181
206
|
return t._zod.def.catchall;
|
|
182
207
|
},
|
|
183
208
|
checks: t._zod.def.checks ?? []
|
|
184
209
|
}));
|
|
185
210
|
}
|
|
186
|
-
function
|
|
211
|
+
function ve(e, t, n, r = "partial") {
|
|
187
212
|
let i = t._zod.def.checks;
|
|
188
213
|
if (i && i.length > 0) throw Error(`.${r}() cannot be used on object schemas containing refinements`);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
type: "optional",
|
|
196
|
-
innerType: r[t]
|
|
197
|
-
}) : r[t]);
|
|
198
|
-
}
|
|
199
|
-
else for (let t of Reflect.ownKeys(r)) i[t] = e ? new e({
|
|
200
|
-
type: "optional",
|
|
201
|
-
innerType: r[t]
|
|
202
|
-
}) : r[t];
|
|
203
|
-
return c(this, "shape", i), i;
|
|
204
|
-
},
|
|
214
|
+
let a = n ? new Set(y(t, n)) : void 0, o = {};
|
|
215
|
+
return p(o, t, Reflect.ownKeys(u(t)), e && ((t, n) => a && !a.has(n) ? t : new e({
|
|
216
|
+
type: "optional",
|
|
217
|
+
innerType: t
|
|
218
|
+
}))), _(t, h(t._zod.def, {
|
|
219
|
+
shape: o,
|
|
205
220
|
checks: []
|
|
206
221
|
}));
|
|
207
222
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
type: "nonoptional",
|
|
215
|
-
innerType: r[t]
|
|
216
|
-
}));
|
|
217
|
-
}
|
|
218
|
-
else for (let t of Reflect.ownKeys(r)) i[t] = new e({
|
|
219
|
-
type: "nonoptional",
|
|
220
|
-
innerType: r[t]
|
|
221
|
-
});
|
|
222
|
-
return c(this, "shape", i), i;
|
|
223
|
-
} }));
|
|
223
|
+
function ye(e, t, n) {
|
|
224
|
+
let r = n ? new Set(y(t, n)) : void 0, i = {};
|
|
225
|
+
return p(i, t, Reflect.ownKeys(u(t)), (t, n) => r && !r.has(n) ? t : new e({
|
|
226
|
+
type: "nonoptional",
|
|
227
|
+
innerType: t
|
|
228
|
+
})), _(t, h(t._zod.def, { shape: i }));
|
|
224
229
|
}
|
|
225
|
-
function
|
|
230
|
+
function b(e, t = 0) {
|
|
226
231
|
if (e.aborted === !0) return !0;
|
|
227
232
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
|
|
228
233
|
return !1;
|
|
229
234
|
}
|
|
230
|
-
function
|
|
235
|
+
function be(e, t = 0) {
|
|
231
236
|
if (e.aborted === !0) return !0;
|
|
232
237
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
233
238
|
return !1;
|
|
234
239
|
}
|
|
235
|
-
function
|
|
240
|
+
function xe(e, t) {
|
|
236
241
|
return t.map((t) => {
|
|
237
242
|
var n;
|
|
238
243
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
239
244
|
});
|
|
240
245
|
}
|
|
241
|
-
function
|
|
246
|
+
function x(e) {
|
|
242
247
|
return typeof e == "string" ? e : e?.message;
|
|
243
248
|
}
|
|
244
|
-
function
|
|
249
|
+
function Se(e) {
|
|
250
|
+
let t = [];
|
|
251
|
+
for (let n of e ?? []) {
|
|
252
|
+
let e = n._zod.def;
|
|
253
|
+
if (!/_(length|size)$|_equals$/.test(e.check)) break;
|
|
254
|
+
let r = e.maximum ?? e.length ?? e.size;
|
|
255
|
+
r >= 0 && t.push([r, n]);
|
|
256
|
+
}
|
|
257
|
+
return t;
|
|
258
|
+
}
|
|
259
|
+
function Ce(e, t, n) {
|
|
245
260
|
var r;
|
|
246
261
|
for (let i = t; i < e.length; i++) (r = e[i]).schema ?? (r.schema = n);
|
|
247
262
|
}
|
|
248
|
-
function
|
|
263
|
+
function S(e, t, n) {
|
|
249
264
|
var r;
|
|
250
265
|
let i = e.inst?._zod?.traits;
|
|
251
266
|
i?.has("$ZodType") && (i.has("$ZodCheck") ? (r = e).schema ?? (r.schema = e.inst) : e.schema = e.inst);
|
|
252
|
-
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message :
|
|
253
|
-
|
|
267
|
+
let a = e.schema === e.inst ? void 0 : e.schema?._zod.def?.error, o = e.message ? e.message : x(e.inst?._zod.def?.error?.(e)) ?? x(a?.(e)) ?? x(t?.error?.(e)) ?? x(n.customError?.(e)) ?? x(n.localeError?.(e)) ?? "Invalid input", s = {};
|
|
268
|
+
for (let t of Object.keys(e)) t !== "inst" && t !== "schema" && t !== "continue" && t !== "input" && t !== "__proto__" && (s[t] = e[t]);
|
|
269
|
+
return s.path ??= [], s.message = o, t?.reportInput && (s.input = e.input), s;
|
|
254
270
|
}
|
|
255
|
-
var
|
|
256
|
-
function
|
|
271
|
+
var we = /[\uD800-\uDBFF]/;
|
|
272
|
+
function Te(e) {
|
|
257
273
|
let t = e.length;
|
|
258
|
-
if (!
|
|
274
|
+
if (!we.test(e)) return t;
|
|
259
275
|
let n = t;
|
|
260
276
|
for (let r = 0; r < t - 1; r++) (e.charCodeAt(r) & 64512) == 55296 && (e.charCodeAt(r + 1) & 64512) == 56320 && (n--, r++);
|
|
261
277
|
return n;
|
|
262
278
|
}
|
|
263
|
-
function
|
|
279
|
+
function Ee(e) {
|
|
264
280
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
265
281
|
}
|
|
266
|
-
function
|
|
282
|
+
function De(e) {
|
|
267
283
|
let t = typeof e;
|
|
268
284
|
switch (t) {
|
|
269
285
|
case "number": return Number.isNaN(e) ? "nan" : "number";
|
|
@@ -276,7 +292,7 @@ function ve(e) {
|
|
|
276
292
|
}
|
|
277
293
|
return t;
|
|
278
294
|
}
|
|
279
|
-
function
|
|
295
|
+
function C(...e) {
|
|
280
296
|
let [t, n, r] = e;
|
|
281
297
|
return typeof t == "string" ? {
|
|
282
298
|
message: t,
|
|
@@ -285,16 +301,16 @@ function S(...e) {
|
|
|
285
301
|
inst: r
|
|
286
302
|
} : { ...t };
|
|
287
303
|
}
|
|
288
|
-
function
|
|
304
|
+
function Oe(e, t) {
|
|
289
305
|
for (let n in t) {
|
|
290
306
|
let r = Object.getOwnPropertyDescriptor(t, n);
|
|
291
307
|
r.get ? Object.defineProperty(e, n, {
|
|
292
308
|
...r,
|
|
293
309
|
enumerable: !1
|
|
294
|
-
}) :
|
|
310
|
+
}) : je(e, n, r.value);
|
|
295
311
|
}
|
|
296
312
|
}
|
|
297
|
-
function
|
|
313
|
+
function w(e, t, n, r = !0) {
|
|
298
314
|
return Object.defineProperty(e, t, {
|
|
299
315
|
configurable: !0,
|
|
300
316
|
writable: !0,
|
|
@@ -302,51 +318,64 @@ function C(e, t, n, r = !0) {
|
|
|
302
318
|
value: n
|
|
303
319
|
}), n;
|
|
304
320
|
}
|
|
305
|
-
function
|
|
306
|
-
return
|
|
321
|
+
function ke(e, t, n) {
|
|
322
|
+
return w(e, t, n, !1);
|
|
323
|
+
}
|
|
324
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
325
|
+
function Ae(e, t) {
|
|
326
|
+
for (let n in e) {
|
|
327
|
+
let r = e[n];
|
|
328
|
+
Object.defineProperty(t, n, {
|
|
329
|
+
configurable: !0,
|
|
330
|
+
enumerable: !0,
|
|
331
|
+
get() {
|
|
332
|
+
return w(this, n, r(this));
|
|
333
|
+
},
|
|
334
|
+
set(e) {
|
|
335
|
+
w(this, n, e);
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
return t;
|
|
307
340
|
}
|
|
308
|
-
function
|
|
341
|
+
function je(e, t, n) {
|
|
309
342
|
Object.defineProperty(e, t, {
|
|
310
343
|
configurable: !0,
|
|
311
344
|
get() {
|
|
312
|
-
return this == null ? n :
|
|
345
|
+
return this == null ? n : w(this, t, n.bind(this));
|
|
313
346
|
},
|
|
314
347
|
set(e) {
|
|
315
|
-
|
|
348
|
+
w(this, t, e);
|
|
316
349
|
}
|
|
317
350
|
});
|
|
318
351
|
}
|
|
319
|
-
function
|
|
352
|
+
function Me(e, t) {
|
|
320
353
|
let n = Object.getPrototypeOf(e);
|
|
321
354
|
return t in n ? void 0 : n;
|
|
322
355
|
}
|
|
323
|
-
var
|
|
356
|
+
var Ne, T = !1, Pe = {
|
|
324
357
|
configurable: !0,
|
|
325
358
|
get() {
|
|
326
|
-
|
|
359
|
+
T = !0;
|
|
327
360
|
}
|
|
328
361
|
};
|
|
329
|
-
function
|
|
362
|
+
function E(e, t, n) {
|
|
330
363
|
let r = Object.getPrototypeOf(e._zod);
|
|
331
|
-
|
|
332
|
-
Ce = void 0;
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
Ce = e._zod, Object.defineProperty(r, t, {
|
|
364
|
+
t in r && Ne !== e._zod ? Ne = void 0 : (Ne = e._zod, Object.defineProperty(r, t, {
|
|
336
365
|
configurable: !0,
|
|
337
366
|
get() {
|
|
338
|
-
Object.defineProperty(this, t,
|
|
339
|
-
let e =
|
|
340
|
-
|
|
367
|
+
Object.defineProperty(this, t, Pe);
|
|
368
|
+
let e = T;
|
|
369
|
+
T = !1;
|
|
341
370
|
try {
|
|
342
371
|
let r = n(this);
|
|
343
|
-
return
|
|
372
|
+
return T ? delete this[t] : Object.defineProperty(this, t, {
|
|
344
373
|
configurable: !0,
|
|
345
374
|
writable: !0,
|
|
346
375
|
value: r
|
|
347
|
-
}),
|
|
376
|
+
}), T ||= e, r;
|
|
348
377
|
} catch (n) {
|
|
349
|
-
throw delete this[t],
|
|
378
|
+
throw delete this[t], T ||= e, n;
|
|
350
379
|
}
|
|
351
380
|
},
|
|
352
381
|
set(e) {
|
|
@@ -356,10 +385,10 @@ function T(e, t, n) {
|
|
|
356
385
|
value: e
|
|
357
386
|
});
|
|
358
387
|
}
|
|
359
|
-
});
|
|
388
|
+
}));
|
|
360
389
|
}
|
|
361
|
-
function
|
|
362
|
-
let i =
|
|
390
|
+
function Fe(e, t, n, r) {
|
|
391
|
+
let i = Me(e, t);
|
|
363
392
|
i && Object.defineProperty(i, t, {
|
|
364
393
|
configurable: !0,
|
|
365
394
|
get() {
|
|
@@ -381,26 +410,26 @@ function Te(e, t, n, r) {
|
|
|
381
410
|
}
|
|
382
411
|
});
|
|
383
412
|
}
|
|
384
|
-
var
|
|
385
|
-
function
|
|
413
|
+
var Ie = "~constantCatch";
|
|
414
|
+
function Le(e) {
|
|
386
415
|
let t = () => e;
|
|
387
|
-
return t[
|
|
416
|
+
return t[Ie] = !0, t;
|
|
388
417
|
}
|
|
389
418
|
//#endregion
|
|
390
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
391
|
-
var
|
|
419
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
420
|
+
var Re, ze = {
|
|
392
421
|
value: void 0,
|
|
393
422
|
enumerable: !1
|
|
394
|
-
},
|
|
395
|
-
function
|
|
396
|
-
let t =
|
|
423
|
+
}, Be = "captureStackTrace" in Error ? Error : null;
|
|
424
|
+
function Ve(e) {
|
|
425
|
+
let t = Be;
|
|
397
426
|
if (t) {
|
|
398
427
|
let n = t.stackTraceLimit;
|
|
399
428
|
if (typeof n == "number") {
|
|
400
429
|
try {
|
|
401
430
|
t.stackTraceLimit = 0;
|
|
402
431
|
} catch {
|
|
403
|
-
return
|
|
432
|
+
return Be = null, new e();
|
|
404
433
|
}
|
|
405
434
|
try {
|
|
406
435
|
return new e();
|
|
@@ -411,7 +440,8 @@ function je(e) {
|
|
|
411
440
|
}
|
|
412
441
|
return new e();
|
|
413
442
|
}
|
|
414
|
-
|
|
443
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
444
|
+
function D(e, t, n, r) {
|
|
415
445
|
let i = {};
|
|
416
446
|
function a(e) {
|
|
417
447
|
this.def = e, this.constr = d, this.traits = /* @__PURE__ */ new Set();
|
|
@@ -420,19 +450,18 @@ function E(e, t, n, r) {
|
|
|
420
450
|
let o = n, s = o && /* @__PURE__ */ new WeakSet();
|
|
421
451
|
function c(n, r) {
|
|
422
452
|
if (!n._zod) {
|
|
423
|
-
|
|
453
|
+
ze.value = new a(r);
|
|
424
454
|
try {
|
|
425
|
-
Object.defineProperty(n, "_zod",
|
|
455
|
+
Object.defineProperty(n, "_zod", ze);
|
|
426
456
|
} finally {
|
|
427
|
-
|
|
457
|
+
ze.value = void 0;
|
|
428
458
|
}
|
|
429
|
-
}
|
|
430
|
-
if (n._zod.traits.has(e)) return;
|
|
459
|
+
} else if (n._zod.traits.has(e)) return;
|
|
431
460
|
if (n._zod.traits.add(e), t(n, r), s) {
|
|
432
461
|
let e = Object.getPrototypeOf(n), t = n._zod.constr.prototype, r = e;
|
|
433
462
|
for (; r && r !== t;) r = Object.getPrototypeOf(r);
|
|
434
463
|
let i = r ?? e;
|
|
435
|
-
s.has(i) || (s.add(i),
|
|
464
|
+
s.has(i) || (s.add(i), Oe(i, o));
|
|
436
465
|
}
|
|
437
466
|
let i = d.prototype;
|
|
438
467
|
for (let e in i) Object.prototype.hasOwnProperty.call(i, e) && (e in n || (n[e] = i[e].bind(n)));
|
|
@@ -441,7 +470,7 @@ function E(e, t, n, r) {
|
|
|
441
470
|
class u extends l {}
|
|
442
471
|
Object.defineProperty(u, "name", { value: e });
|
|
443
472
|
function d(e) {
|
|
444
|
-
let t = r?.Parent ?
|
|
473
|
+
let t = r?.Parent ? Ve(u) : this;
|
|
445
474
|
c(t, e);
|
|
446
475
|
let n = t._zod.deferred;
|
|
447
476
|
if (n) {
|
|
@@ -453,44 +482,41 @@ function E(e, t, n, r) {
|
|
|
453
482
|
}
|
|
454
483
|
return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
|
|
455
484
|
}
|
|
456
|
-
var
|
|
485
|
+
var O = class extends Error {
|
|
457
486
|
constructor() {
|
|
458
487
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
459
488
|
}
|
|
460
|
-
},
|
|
489
|
+
}, He = class extends Error {
|
|
461
490
|
constructor(e) {
|
|
462
491
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
463
492
|
}
|
|
464
493
|
};
|
|
465
|
-
(
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
return e && Object.assign(
|
|
494
|
+
(Re = globalThis).__zod_globalConfig ?? (Re.__zod_globalConfig = {});
|
|
495
|
+
var k = globalThis.__zod_globalConfig;
|
|
496
|
+
function A(e) {
|
|
497
|
+
return e && Object.assign(k, e), k;
|
|
469
498
|
}
|
|
470
499
|
//#endregion
|
|
471
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
472
|
-
function
|
|
500
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
501
|
+
function Ue() {
|
|
473
502
|
let e = this._zod;
|
|
474
|
-
return e.message ??= JSON.stringify(e.def,
|
|
503
|
+
return e.message ??= JSON.stringify(e.def, n, 2), e.message;
|
|
475
504
|
}
|
|
476
|
-
function
|
|
505
|
+
function We(e) {
|
|
477
506
|
this._zod.message = e;
|
|
478
507
|
}
|
|
479
|
-
var
|
|
480
|
-
get:
|
|
481
|
-
set:
|
|
508
|
+
var Ge = {
|
|
509
|
+
get: Ue,
|
|
510
|
+
set: We,
|
|
482
511
|
enumerable: !0,
|
|
483
512
|
configurable: !0
|
|
484
|
-
},
|
|
513
|
+
}, Ke = {
|
|
485
514
|
value: void 0,
|
|
486
515
|
enumerable: !1
|
|
487
|
-
},
|
|
488
|
-
value
|
|
489
|
-
enumerable: !1
|
|
490
|
-
}, Re = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), ze = (e, t) => {
|
|
491
|
-
e.name = "$ZodError", Ie.value = e._zod, Object.defineProperty(e, "_zod", Ie), Le.value = t, Object.defineProperty(e, "issues", Le), Ie.value = void 0, Le.value = void 0, Object.defineProperty(e, "message", Fe);
|
|
516
|
+
}, qe = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Je = /* @__PURE__ */ D("$ZodError", (e, t) => {
|
|
517
|
+
e.name = "$ZodError", Ke.value = t, Object.defineProperty(e, "issues", Ke), Ke.value = void 0, Object.defineProperty(e, "message", Ge);
|
|
492
518
|
let n = Object.getPrototypeOf(e);
|
|
493
|
-
|
|
519
|
+
qe.has(n) || (qe.add(n), Object.defineProperty(n, "toString", {
|
|
494
520
|
configurable: !0,
|
|
495
521
|
enumerable: !1,
|
|
496
522
|
get() {
|
|
@@ -509,8 +535,8 @@ var Fe = {
|
|
|
509
535
|
});
|
|
510
536
|
}
|
|
511
537
|
}));
|
|
512
|
-
}
|
|
513
|
-
function
|
|
538
|
+
});
|
|
539
|
+
function Ye(e, t, n) {
|
|
514
540
|
return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
|
|
515
541
|
value: n(),
|
|
516
542
|
writable: !0,
|
|
@@ -518,15 +544,15 @@ function He(e, t, n) {
|
|
|
518
544
|
configurable: !0
|
|
519
545
|
}) : e[t] = n()), e[t];
|
|
520
546
|
}
|
|
521
|
-
function
|
|
547
|
+
function Xe(e, t = (e) => e.message) {
|
|
522
548
|
let n = {}, r = [];
|
|
523
|
-
for (let i of e.issues) i.path.length > 0 ?
|
|
549
|
+
for (let i of e.issues) i.path.length > 0 ? Ye(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
|
|
524
550
|
return {
|
|
525
551
|
formErrors: r,
|
|
526
552
|
fieldErrors: n
|
|
527
553
|
};
|
|
528
554
|
}
|
|
529
|
-
function
|
|
555
|
+
function Ze(e, t = (e) => e.message) {
|
|
530
556
|
let n = { _errors: [] }, r = (e, i = []) => {
|
|
531
557
|
for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
|
|
532
558
|
else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
|
|
@@ -557,14 +583,14 @@ function We(e, t = (e) => e.message) {
|
|
|
557
583
|
return r(e), n;
|
|
558
584
|
}
|
|
559
585
|
//#endregion
|
|
560
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
561
|
-
function
|
|
586
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
587
|
+
function Qe(e, t) {
|
|
562
588
|
return {
|
|
563
589
|
callee: t?.callee ?? e,
|
|
564
590
|
Err: t?.Err
|
|
565
591
|
};
|
|
566
592
|
}
|
|
567
|
-
var
|
|
593
|
+
var $e = (e) => {
|
|
568
594
|
let t = (n, r, i, a) => {
|
|
569
595
|
let o = i ? {
|
|
570
596
|
...i,
|
|
@@ -573,15 +599,15 @@ var Ge = (e) => {
|
|
|
573
599
|
value: r,
|
|
574
600
|
issues: []
|
|
575
601
|
}, o);
|
|
576
|
-
if (s instanceof Promise) throw new
|
|
602
|
+
if (s instanceof Promise) throw new O();
|
|
577
603
|
if (s.issues.length) {
|
|
578
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
579
|
-
throw
|
|
604
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, A())));
|
|
605
|
+
throw ne(n, a?.callee ?? t), n;
|
|
580
606
|
}
|
|
581
607
|
return s.value;
|
|
582
608
|
};
|
|
583
609
|
return t;
|
|
584
|
-
},
|
|
610
|
+
}, et = (e) => {
|
|
585
611
|
let t = async (n, r, i, a) => {
|
|
586
612
|
let o = i ? {
|
|
587
613
|
...i,
|
|
@@ -591,13 +617,13 @@ var Ge = (e) => {
|
|
|
591
617
|
issues: []
|
|
592
618
|
}, o);
|
|
593
619
|
if (s instanceof Promise && (s = await s), s.issues.length) {
|
|
594
|
-
let n = new ((a?.Err) ?? e)(s.issues.map((e) =>
|
|
595
|
-
throw
|
|
620
|
+
let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, A())));
|
|
621
|
+
throw ne(n, a?.callee ?? t), n;
|
|
596
622
|
}
|
|
597
623
|
return s.value;
|
|
598
624
|
};
|
|
599
625
|
return t;
|
|
600
|
-
},
|
|
626
|
+
}, tt = (e) => (t, n, r) => {
|
|
601
627
|
let i = r ? {
|
|
602
628
|
...r,
|
|
603
629
|
async: !1
|
|
@@ -605,15 +631,25 @@ var Ge = (e) => {
|
|
|
605
631
|
value: n,
|
|
606
632
|
issues: []
|
|
607
633
|
}, i);
|
|
608
|
-
if (a instanceof Promise) throw new
|
|
609
|
-
return a.issues.length ? {
|
|
610
|
-
success: !1,
|
|
611
|
-
error: new (e ?? Be)(a.issues.map((e) => x(e, i, k())))
|
|
612
|
-
} : {
|
|
634
|
+
if (a instanceof Promise) throw new O();
|
|
635
|
+
return a.issues.length ? nt(e, a.issues, i) : {
|
|
613
636
|
success: !0,
|
|
614
637
|
data: a.value
|
|
615
638
|
};
|
|
616
|
-
}
|
|
639
|
+
};
|
|
640
|
+
function nt(e, t, n) {
|
|
641
|
+
let r;
|
|
642
|
+
return {
|
|
643
|
+
success: !1,
|
|
644
|
+
get error() {
|
|
645
|
+
return r || (r = new e(t.map((e) => S(e, n, A()))), t = void 0, n = void 0), r;
|
|
646
|
+
},
|
|
647
|
+
set error(e) {
|
|
648
|
+
r = e, t = void 0, n = void 0;
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
var rt = (e) => async (t, n, r) => {
|
|
617
653
|
let i = r ? {
|
|
618
654
|
...r,
|
|
619
655
|
async: !0
|
|
@@ -621,100 +657,130 @@ var Ge = (e) => {
|
|
|
621
657
|
value: n,
|
|
622
658
|
issues: []
|
|
623
659
|
}, i);
|
|
624
|
-
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
625
|
-
success: !1,
|
|
626
|
-
error: new e(a.issues.map((e) => x(e, i, k())))
|
|
627
|
-
} : {
|
|
660
|
+
return a instanceof Promise && (a = await a), a.issues.length ? nt(e, a.issues, i) : {
|
|
628
661
|
success: !0,
|
|
629
662
|
data: a.value
|
|
630
663
|
};
|
|
631
|
-
},
|
|
632
|
-
let
|
|
664
|
+
}, it = /* @__PURE__ */ Symbol.for("zod.compile.invalid"), at = /* @__PURE__ */ Symbol.for("zod.compile.fallback"), ot = ((e, t, n) => {
|
|
665
|
+
let r = e._zod.bag.validator;
|
|
666
|
+
if (r !== void 0) {
|
|
667
|
+
if (r(t) !== it) return !0;
|
|
668
|
+
if (r.definite === !0 && n === void 0) return !1;
|
|
669
|
+
}
|
|
670
|
+
return st(e, t, n);
|
|
671
|
+
});
|
|
672
|
+
function st(e, t, n) {
|
|
673
|
+
let r = n ? {
|
|
674
|
+
...n,
|
|
675
|
+
async: !1,
|
|
676
|
+
abortEarly: !0
|
|
677
|
+
} : {
|
|
678
|
+
async: !1,
|
|
679
|
+
abortEarly: !0
|
|
680
|
+
}, i = e._zod.bag.fallbackRun, a;
|
|
681
|
+
if (i ? (r[at] = !0, a = i({
|
|
682
|
+
value: t,
|
|
683
|
+
issues: []
|
|
684
|
+
}, r)) : a = e._zod.run({
|
|
685
|
+
value: t,
|
|
686
|
+
issues: []
|
|
687
|
+
}, r), a instanceof Promise) throw new O();
|
|
688
|
+
return a.issues.length === 0;
|
|
689
|
+
}
|
|
690
|
+
var ct = async (e, t, n) => {
|
|
691
|
+
let r = n ? {
|
|
692
|
+
...n,
|
|
693
|
+
async: !0,
|
|
694
|
+
abortEarly: !0
|
|
695
|
+
} : {
|
|
696
|
+
async: !0,
|
|
697
|
+
abortEarly: !0
|
|
698
|
+
}, i = e._zod.run({
|
|
699
|
+
value: t,
|
|
700
|
+
issues: []
|
|
701
|
+
}, r);
|
|
702
|
+
return i instanceof Promise && (i = await i), i.issues.length === 0;
|
|
703
|
+
}, lt = (e) => {
|
|
704
|
+
let t = $e(e), n = (e, r, i, a) => {
|
|
633
705
|
let o = i ? {
|
|
634
706
|
...i,
|
|
635
707
|
direction: "backward"
|
|
636
708
|
} : { direction: "backward" };
|
|
637
|
-
return t(e, r, o,
|
|
709
|
+
return t(e, r, o, Qe(n, a));
|
|
638
710
|
};
|
|
639
711
|
return n;
|
|
640
|
-
},
|
|
641
|
-
let t =
|
|
712
|
+
}, ut = (e) => {
|
|
713
|
+
let t = $e(e), n = (e, r, i, a) => t(e, r, i, Qe(n, a));
|
|
642
714
|
return n;
|
|
643
|
-
},
|
|
644
|
-
let t =
|
|
715
|
+
}, dt = (e) => {
|
|
716
|
+
let t = et(e), n = async (e, r, i, a) => {
|
|
645
717
|
let o = i ? {
|
|
646
718
|
...i,
|
|
647
719
|
direction: "backward"
|
|
648
720
|
} : { direction: "backward" };
|
|
649
|
-
return await t(e, r, o,
|
|
721
|
+
return await t(e, r, o, Qe(n, a));
|
|
650
722
|
};
|
|
651
723
|
return n;
|
|
652
|
-
},
|
|
653
|
-
let t =
|
|
724
|
+
}, ft = (e) => {
|
|
725
|
+
let t = et(e), n = async (e, r, i, a) => await t(e, r, i, Qe(n, a));
|
|
654
726
|
return n;
|
|
655
|
-
},
|
|
727
|
+
}, pt = (e) => (t, n, r) => {
|
|
656
728
|
let i = r ? {
|
|
657
729
|
...r,
|
|
658
730
|
direction: "backward"
|
|
659
731
|
} : { direction: "backward" };
|
|
660
|
-
return
|
|
661
|
-
},
|
|
732
|
+
return tt(e)(t, n, i);
|
|
733
|
+
}, mt = (e) => (t, n, r) => tt(e)(t, n, r), ht = (e) => async (t, n, r) => {
|
|
662
734
|
let i = r ? {
|
|
663
735
|
...r,
|
|
664
736
|
direction: "backward"
|
|
665
737
|
} : { direction: "backward" };
|
|
666
|
-
return
|
|
667
|
-
},
|
|
668
|
-
function
|
|
738
|
+
return rt(e)(t, n, i);
|
|
739
|
+
}, gt = (e) => async (t, n, r) => rt(e)(t, n, r), _t = /^[cC][0-9a-z]{6,}$/, vt = /^[0-9a-z]+$/, yt = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, bt = /^[0-9a-vA-V]{20}$/, xt = /^[A-Za-z0-9]{27}$/, St = /^[a-zA-Z0-9_-]{21}$/;
|
|
740
|
+
function Ct(e) {
|
|
669
741
|
return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
|
|
670
742
|
}
|
|
671
|
-
var
|
|
672
|
-
function
|
|
673
|
-
return new RegExp(
|
|
743
|
+
var wt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Tt = /^([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})$/, Et = (e) => e ? 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)$/, Dt = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ot = "^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
|
|
744
|
+
function kt() {
|
|
745
|
+
return new RegExp(Ot, "u");
|
|
674
746
|
}
|
|
675
|
-
var
|
|
676
|
-
function
|
|
747
|
+
var At = /^(?:(?: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])$/, jt = /^(([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}|:))$/, Mt = /^((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])$/, Nt = /^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Pt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ft = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/, It = /^https?$/, Lt = /^\+[1-9]\d{6,14}$/, Rt = "(?:(?:\\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])))";
|
|
748
|
+
function zt(e) {
|
|
677
749
|
return RegExp(`^${e}$`);
|
|
678
750
|
}
|
|
679
|
-
var
|
|
680
|
-
function
|
|
751
|
+
var Bt = /*@__PURE__*/ zt(Rt);
|
|
752
|
+
function Vt(e) {
|
|
681
753
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
682
754
|
return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
683
755
|
}
|
|
684
|
-
function
|
|
685
|
-
return RegExp(`^${
|
|
756
|
+
function Ht(e) {
|
|
757
|
+
return RegExp(`^${Vt(e)}$`);
|
|
686
758
|
}
|
|
687
|
-
function
|
|
759
|
+
function Ut(e) {
|
|
688
760
|
let t = ["Z"];
|
|
689
761
|
e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
690
|
-
let n = `${
|
|
762
|
+
let n = `${Vt({
|
|
691
763
|
precision: e.precision,
|
|
692
764
|
seconds: !0
|
|
693
|
-
})}(?:${t.join("|")})`, r = e.local ? `${n}|${
|
|
694
|
-
return RegExp(`^${
|
|
765
|
+
})}(?:${t.join("|")})`, r = e.local ? `${n}|${Vt({ precision: e.precision })}` : n;
|
|
766
|
+
return RegExp(`^${Rt}T(?:${r})$`);
|
|
695
767
|
}
|
|
696
|
-
var
|
|
697
|
-
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
698
|
-
return RegExp(`^${t}$`);
|
|
699
|
-
}, Mt = /^-?\d+$/, Nt = /^-?\d+(?:\.\d+)?$/, Pt = /^null$/i, Ft = /^[^A-Z]*$/, It = /^[^a-z]*$/, M = /*@__PURE__*/ E("$ZodCheck", (e, t) => {
|
|
768
|
+
var Wt = /^[\s\S]{0,}$/, Gt = /^-?\d+(?:\.\d+)?$/, Kt = /^null$/i, qt = /^[^A-Z]*$/, Jt = /^[^a-z]*$/, j = /*@__PURE__*/ D("$ZodCheck", (e, t) => {
|
|
700
769
|
var n;
|
|
701
770
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
702
|
-
}),
|
|
771
|
+
}), Yt = (e) => {
|
|
703
772
|
let t = e.value;
|
|
704
773
|
return !a(t) && t.length !== void 0;
|
|
705
|
-
},
|
|
774
|
+
}, Xt = {
|
|
706
775
|
number: "number",
|
|
707
776
|
bigint: "bigint",
|
|
708
777
|
object: "date"
|
|
709
|
-
},
|
|
710
|
-
|
|
711
|
-
let n =
|
|
712
|
-
e._zod.
|
|
713
|
-
let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
|
|
714
|
-
t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
715
|
-
}), e._zod.check = (r) => {
|
|
778
|
+
}, Zt = /*@__PURE__*/ D("$ZodCheckLessThan", (e, t) => {
|
|
779
|
+
j.init(e, t);
|
|
780
|
+
let n = Xt[typeof t.value];
|
|
781
|
+
e._zod.check = (r) => {
|
|
716
782
|
(t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
|
|
717
|
-
origin:
|
|
783
|
+
origin: Xt[typeof r.value] ?? n,
|
|
718
784
|
code: "too_big",
|
|
719
785
|
maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
720
786
|
input: r.value,
|
|
@@ -723,15 +789,12 @@ var jt = (e) => {
|
|
|
723
789
|
continue: !t.abort
|
|
724
790
|
});
|
|
725
791
|
};
|
|
726
|
-
}),
|
|
727
|
-
|
|
728
|
-
let n =
|
|
729
|
-
e._zod.
|
|
730
|
-
let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
|
|
731
|
-
t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
732
|
-
}), e._zod.check = (r) => {
|
|
792
|
+
}), Qt = /*@__PURE__*/ D("$ZodCheckGreaterThan", (e, t) => {
|
|
793
|
+
j.init(e, t);
|
|
794
|
+
let n = Xt[typeof t.value];
|
|
795
|
+
e._zod.check = (r) => {
|
|
733
796
|
(t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
|
|
734
|
-
origin:
|
|
797
|
+
origin: Xt[typeof r.value] ?? n,
|
|
735
798
|
code: "too_small",
|
|
736
799
|
minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
|
|
737
800
|
input: r.value,
|
|
@@ -740,11 +803,8 @@ var jt = (e) => {
|
|
|
740
803
|
continue: !t.abort
|
|
741
804
|
});
|
|
742
805
|
};
|
|
743
|
-
}),
|
|
744
|
-
|
|
745
|
-
var n;
|
|
746
|
-
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
747
|
-
}), e._zod.check = (n) => {
|
|
806
|
+
}), $t = /*@__PURE__*/ D("$ZodCheckMultipleOf", (e, t) => {
|
|
807
|
+
j.init(e, t), e._zod.check = (n) => {
|
|
748
808
|
if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
|
|
749
809
|
(typeof n.value == "bigint" ? t.value !== BigInt(0) && n.value % t.value === BigInt(0) : s(n.value, t.value) === 0) || n.issues.push({
|
|
750
810
|
origin: typeof n.value,
|
|
@@ -755,13 +815,10 @@ var jt = (e) => {
|
|
|
755
815
|
continue: !t.abort
|
|
756
816
|
});
|
|
757
817
|
};
|
|
758
|
-
}),
|
|
759
|
-
|
|
760
|
-
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] =
|
|
761
|
-
e._zod.
|
|
762
|
-
let r = e._zod.bag;
|
|
763
|
-
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Mt);
|
|
764
|
-
}), e._zod.check = (o) => {
|
|
818
|
+
}), en = /*@__PURE__*/ D("$ZodCheckNumberFormat", (e, t) => {
|
|
819
|
+
j.init(e, t), t.format = t.format || "float64";
|
|
820
|
+
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = ue[t.format];
|
|
821
|
+
e._zod.check = (o) => {
|
|
765
822
|
let s = o.value;
|
|
766
823
|
if (n) {
|
|
767
824
|
if (!Number.isInteger(s)) {
|
|
@@ -816,15 +873,12 @@ var jt = (e) => {
|
|
|
816
873
|
continue: !t.abort
|
|
817
874
|
});
|
|
818
875
|
};
|
|
819
|
-
}),
|
|
876
|
+
}), tn = /*@__PURE__*/ D("$ZodCheckMaxLength", (e, t) => {
|
|
820
877
|
var n;
|
|
821
|
-
|
|
822
|
-
let n = e._zod.bag.maximum ?? Infinity;
|
|
823
|
-
t.maximum < n && (e._zod.bag.maximum = t.maximum);
|
|
824
|
-
}), e._zod.check = (n) => {
|
|
878
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = Yt), e._zod.check = (n) => {
|
|
825
879
|
let r = n.value, i = r.length;
|
|
826
|
-
if ((typeof r == "string" && i > t.maximum ?
|
|
827
|
-
let a =
|
|
880
|
+
if ((typeof r == "string" && i > t.maximum ? Te(r) : i) <= t.maximum) return;
|
|
881
|
+
let a = Ee(r);
|
|
828
882
|
n.issues.push({
|
|
829
883
|
origin: a,
|
|
830
884
|
code: "too_big",
|
|
@@ -835,15 +889,12 @@ var jt = (e) => {
|
|
|
835
889
|
continue: !t.abort
|
|
836
890
|
});
|
|
837
891
|
};
|
|
838
|
-
}),
|
|
892
|
+
}), nn = /*@__PURE__*/ D("$ZodCheckMinLength", (e, t) => {
|
|
839
893
|
var n;
|
|
840
|
-
|
|
841
|
-
let n = e._zod.bag.minimum ?? -Infinity;
|
|
842
|
-
t.minimum > n && (e._zod.bag.minimum = t.minimum);
|
|
843
|
-
}), e._zod.check = (n) => {
|
|
894
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = Yt), e._zod.check = (n) => {
|
|
844
895
|
let r = n.value, i = r.length;
|
|
845
|
-
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ?
|
|
846
|
-
let a =
|
|
896
|
+
if ((typeof r == "string" && i >= t.minimum && i < t.minimum * 2 ? Te(r) : i) >= t.minimum) return;
|
|
897
|
+
let a = Ee(r);
|
|
847
898
|
n.issues.push({
|
|
848
899
|
origin: a,
|
|
849
900
|
code: "too_small",
|
|
@@ -854,15 +905,12 @@ var jt = (e) => {
|
|
|
854
905
|
continue: !t.abort
|
|
855
906
|
});
|
|
856
907
|
};
|
|
857
|
-
}),
|
|
908
|
+
}), rn = /*@__PURE__*/ D("$ZodCheckLengthEquals", (e, t) => {
|
|
858
909
|
var n;
|
|
859
|
-
|
|
860
|
-
let n =
|
|
861
|
-
n.minimum = t.length, n.maximum = t.length, n.length = t.length;
|
|
862
|
-
}), e._zod.check = (n) => {
|
|
863
|
-
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? ge(r) : i;
|
|
910
|
+
j.init(e, t), (n = e._zod.def).when ?? (n.when = Yt), e._zod.check = (n) => {
|
|
911
|
+
let r = n.value, i = r.length, a = typeof r == "string" && i >= t.length && i <= t.length * 2 ? Te(r) : i;
|
|
864
912
|
if (a === t.length) return;
|
|
865
|
-
let o =
|
|
913
|
+
let o = Ee(r), s = a > t.length;
|
|
866
914
|
n.issues.push({
|
|
867
915
|
origin: o,
|
|
868
916
|
...s ? {
|
|
@@ -879,12 +927,9 @@ var jt = (e) => {
|
|
|
879
927
|
continue: !t.abort
|
|
880
928
|
});
|
|
881
929
|
};
|
|
882
|
-
}),
|
|
930
|
+
}), an = /*@__PURE__*/ D("$ZodCheckStringFormat", (e, t) => {
|
|
883
931
|
var n, r;
|
|
884
|
-
|
|
885
|
-
let n = e._zod.bag;
|
|
886
|
-
n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
|
|
887
|
-
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
932
|
+
j.init(e, t), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
888
933
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
889
934
|
origin: "string",
|
|
890
935
|
code: "invalid_format",
|
|
@@ -895,8 +940,8 @@ var jt = (e) => {
|
|
|
895
940
|
continue: !t.abort
|
|
896
941
|
});
|
|
897
942
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
898
|
-
}),
|
|
899
|
-
|
|
943
|
+
}), on = /*@__PURE__*/ D("$ZodCheckRegex", (e, t) => {
|
|
944
|
+
an.init(e, t), e._zod.check = (n) => {
|
|
900
945
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
901
946
|
origin: "string",
|
|
902
947
|
code: "invalid_format",
|
|
@@ -907,17 +952,14 @@ var jt = (e) => {
|
|
|
907
952
|
continue: !t.abort
|
|
908
953
|
});
|
|
909
954
|
};
|
|
910
|
-
}),
|
|
911
|
-
t.pattern ??=
|
|
912
|
-
}),
|
|
913
|
-
t.pattern ??=
|
|
914
|
-
}),
|
|
915
|
-
|
|
916
|
-
let n =
|
|
917
|
-
t.pattern =
|
|
918
|
-
let t = e._zod.bag;
|
|
919
|
-
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
|
|
920
|
-
}), e._zod.check = (n) => {
|
|
955
|
+
}), sn = /*@__PURE__*/ D("$ZodCheckLowerCase", (e, t) => {
|
|
956
|
+
t.pattern ??= qt, an.init(e, t);
|
|
957
|
+
}), cn = /*@__PURE__*/ D("$ZodCheckUpperCase", (e, t) => {
|
|
958
|
+
t.pattern ??= Jt, an.init(e, t);
|
|
959
|
+
}), ln = /*@__PURE__*/ D("$ZodCheckIncludes", (e, t) => {
|
|
960
|
+
j.init(e, t);
|
|
961
|
+
let n = se(t.includes);
|
|
962
|
+
t.pattern = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n), e._zod.check = (n) => {
|
|
921
963
|
n.value.includes(t.includes, t.position) || n.issues.push({
|
|
922
964
|
origin: "string",
|
|
923
965
|
code: "invalid_format",
|
|
@@ -928,13 +970,10 @@ var jt = (e) => {
|
|
|
928
970
|
continue: !t.abort
|
|
929
971
|
});
|
|
930
972
|
};
|
|
931
|
-
}),
|
|
932
|
-
|
|
933
|
-
let n = RegExp(`^${
|
|
934
|
-
t.pattern ??= n, e._zod.
|
|
935
|
-
let t = e._zod.bag;
|
|
936
|
-
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
937
|
-
}), e._zod.check = (n) => {
|
|
973
|
+
}), un = /*@__PURE__*/ D("$ZodCheckStartsWith", (e, t) => {
|
|
974
|
+
j.init(e, t);
|
|
975
|
+
let n = RegExp(`^${se(t.prefix)}.*`);
|
|
976
|
+
t.pattern ??= n, e._zod.check = (n) => {
|
|
938
977
|
n.value.startsWith(t.prefix) || n.issues.push({
|
|
939
978
|
origin: "string",
|
|
940
979
|
code: "invalid_format",
|
|
@@ -945,13 +984,10 @@ var jt = (e) => {
|
|
|
945
984
|
continue: !t.abort
|
|
946
985
|
});
|
|
947
986
|
};
|
|
948
|
-
}),
|
|
949
|
-
|
|
950
|
-
let n = RegExp(`.*${
|
|
951
|
-
t.pattern ??= n, e._zod.
|
|
952
|
-
let t = e._zod.bag;
|
|
953
|
-
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
954
|
-
}), e._zod.check = (n) => {
|
|
987
|
+
}), dn = /*@__PURE__*/ D("$ZodCheckEndsWith", (e, t) => {
|
|
988
|
+
j.init(e, t);
|
|
989
|
+
let n = RegExp(`.*${se(t.suffix)}$`);
|
|
990
|
+
t.pattern ??= n, e._zod.check = (n) => {
|
|
955
991
|
n.value.endsWith(t.suffix) || n.issues.push({
|
|
956
992
|
origin: "string",
|
|
957
993
|
code: "invalid_format",
|
|
@@ -962,16 +998,21 @@ var jt = (e) => {
|
|
|
962
998
|
continue: !t.abort
|
|
963
999
|
});
|
|
964
1000
|
};
|
|
965
|
-
}),
|
|
966
|
-
|
|
1001
|
+
}), fn = /*@__PURE__*/ D("$ZodCheckOverwrite", (e, t) => {
|
|
1002
|
+
j.init(e, t), e._zod.check = (e) => {
|
|
967
1003
|
e.value = t.tx(e.value);
|
|
968
1004
|
};
|
|
969
|
-
}),
|
|
1005
|
+
}), pn = class {
|
|
970
1006
|
constructor(e = [], t = {}) {
|
|
971
1007
|
this.content = [], this.indent = 0, this.args = e, this.closed = t;
|
|
972
1008
|
}
|
|
973
1009
|
indented(e) {
|
|
974
|
-
this.indent += 1
|
|
1010
|
+
this.indent += 1;
|
|
1011
|
+
try {
|
|
1012
|
+
e(this);
|
|
1013
|
+
} finally {
|
|
1014
|
+
--this.indent;
|
|
1015
|
+
}
|
|
975
1016
|
}
|
|
976
1017
|
write(e) {
|
|
977
1018
|
if (typeof e == "function") {
|
|
@@ -985,13 +1026,13 @@ var jt = (e) => {
|
|
|
985
1026
|
let e = Function, t = this?.content ?? [""];
|
|
986
1027
|
return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
|
|
987
1028
|
}
|
|
988
|
-
},
|
|
1029
|
+
}, mn = {
|
|
989
1030
|
major: 4,
|
|
990
|
-
minor:
|
|
991
|
-
patch:
|
|
992
|
-
},
|
|
1031
|
+
minor: 6,
|
|
1032
|
+
patch: 7
|
|
1033
|
+
}, M = /*@__PURE__*/ D("$ZodType", (e, t) => {
|
|
993
1034
|
var n;
|
|
994
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1035
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = mn;
|
|
995
1036
|
let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
|
|
996
1037
|
for (let t of i) for (let n of t._zod.onattach) n(e);
|
|
997
1038
|
if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
|
|
@@ -1000,27 +1041,27 @@ var jt = (e) => {
|
|
|
1000
1041
|
else {
|
|
1001
1042
|
let t = (t, n, r) => {
|
|
1002
1043
|
if (t.memo) return t;
|
|
1003
|
-
let i =
|
|
1044
|
+
let i = b(t), a;
|
|
1004
1045
|
for (let o of n) {
|
|
1005
1046
|
if (o._zod.def.when) {
|
|
1006
|
-
if (
|
|
1047
|
+
if (be(t) || !o._zod.def.when(t)) continue;
|
|
1007
1048
|
} else if (i) continue;
|
|
1008
1049
|
let n = t.issues.length, s = o._zod.check(t);
|
|
1009
|
-
if (s instanceof Promise && r?.async === !1) throw new
|
|
1050
|
+
if (s instanceof Promise && r?.async === !1) throw new O();
|
|
1010
1051
|
if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
|
|
1011
|
-
await s, t.issues.length !== n && (
|
|
1052
|
+
await s, t.issues.length !== n && (Ce(t.issues, n, e), i ||= b(t, n));
|
|
1012
1053
|
});
|
|
1013
1054
|
else {
|
|
1014
1055
|
if (t.issues.length === n) continue;
|
|
1015
|
-
|
|
1056
|
+
Ce(t.issues, n, e), i ||= b(t, n);
|
|
1016
1057
|
}
|
|
1017
1058
|
}
|
|
1018
1059
|
return a ? a.then(() => t) : t;
|
|
1019
1060
|
}, n = (n, r, a) => {
|
|
1020
|
-
if (
|
|
1061
|
+
if (b(n)) return n.aborted = !0, n;
|
|
1021
1062
|
let o = t(r, i, a);
|
|
1022
1063
|
if (o instanceof Promise) {
|
|
1023
|
-
if (a.async === !1) throw new
|
|
1064
|
+
if (a.async === !1) throw new O();
|
|
1024
1065
|
return o.then((t) => e._zod.parse(t, a));
|
|
1025
1066
|
}
|
|
1026
1067
|
return e._zod.parse(o, a);
|
|
@@ -1039,7 +1080,7 @@ var jt = (e) => {
|
|
|
1039
1080
|
}
|
|
1040
1081
|
let o = e._zod.parse(r, a);
|
|
1041
1082
|
if (o instanceof Promise) {
|
|
1042
|
-
if (a.async === !1) throw new
|
|
1083
|
+
if (a.async === !1) throw new O();
|
|
1043
1084
|
return o.then((e) => t(e, i, a));
|
|
1044
1085
|
}
|
|
1045
1086
|
return t(o, i, a);
|
|
@@ -1047,27 +1088,38 @@ var jt = (e) => {
|
|
|
1047
1088
|
}
|
|
1048
1089
|
}, {
|
|
1049
1090
|
get "~standard"() {
|
|
1050
|
-
return
|
|
1091
|
+
return ke(this, "~standard", _n(this));
|
|
1051
1092
|
},
|
|
1052
1093
|
set "~standard"(e) {
|
|
1053
|
-
|
|
1094
|
+
w(this, "~standard", e);
|
|
1054
1095
|
}
|
|
1055
|
-
}),
|
|
1056
|
-
function
|
|
1096
|
+
}), hn = (e, t) => e.issues.length ? { issues: e.issues.map((e) => S(e, t, A())) } : { value: e.value };
|
|
1097
|
+
async function gn(e, t) {
|
|
1098
|
+
let n = { async: !0 };
|
|
1099
|
+
return hn(await e._zod.run({
|
|
1100
|
+
value: t,
|
|
1101
|
+
issues: []
|
|
1102
|
+
}, n), n);
|
|
1103
|
+
}
|
|
1104
|
+
function _n(e) {
|
|
1057
1105
|
return {
|
|
1058
1106
|
validate: (t) => {
|
|
1107
|
+
let n = { async: !1 };
|
|
1059
1108
|
try {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1109
|
+
let r = e._zod.run({
|
|
1110
|
+
value: t,
|
|
1111
|
+
issues: []
|
|
1112
|
+
}, n);
|
|
1113
|
+
if (!(r instanceof Promise)) return hn(r, n);
|
|
1114
|
+
} catch {}
|
|
1115
|
+
return gn(e, t);
|
|
1064
1116
|
},
|
|
1065
1117
|
vendor: "zod",
|
|
1066
1118
|
version: 1
|
|
1067
1119
|
};
|
|
1068
1120
|
}
|
|
1069
|
-
var
|
|
1070
|
-
|
|
1121
|
+
var vn = /*@__PURE__*/ D("$ZodString", (e, t) => {
|
|
1122
|
+
M.init(e, t), e._zod.pattern = t.pattern ?? Wt, e._zod.parse = (n, r) => {
|
|
1071
1123
|
if (t.coerce) try {
|
|
1072
1124
|
n.value = String(n.value);
|
|
1073
1125
|
} catch {}
|
|
@@ -1078,11 +1130,11 @@ var nn = /*@__PURE__*/ E("$ZodString", (e, t) => {
|
|
|
1078
1130
|
inst: e
|
|
1079
1131
|
}), n;
|
|
1080
1132
|
};
|
|
1081
|
-
}),
|
|
1082
|
-
|
|
1083
|
-
}),
|
|
1084
|
-
t.pattern ??=
|
|
1085
|
-
}),
|
|
1133
|
+
}), N = /*@__PURE__*/ D("$ZodStringFormat", (e, t) => {
|
|
1134
|
+
an.init(e, t), vn.init(e, t);
|
|
1135
|
+
}), yn = /*@__PURE__*/ D("$ZodGUID", (e, t) => {
|
|
1136
|
+
t.pattern ??= Tt, N.init(e, t);
|
|
1137
|
+
}), bn = /*@__PURE__*/ D("$ZodUUID", (e, t) => {
|
|
1086
1138
|
if (t.version) {
|
|
1087
1139
|
let e = {
|
|
1088
1140
|
v1: 1,
|
|
@@ -1095,34 +1147,48 @@ var nn = /*@__PURE__*/ E("$ZodString", (e, t) => {
|
|
|
1095
1147
|
v8: 8
|
|
1096
1148
|
}[t.version];
|
|
1097
1149
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
1098
|
-
t.pattern ??=
|
|
1099
|
-
} else t.pattern ??=
|
|
1100
|
-
|
|
1101
|
-
}),
|
|
1102
|
-
t.pattern ??=
|
|
1150
|
+
t.pattern ??= Et(e);
|
|
1151
|
+
} else t.pattern ??= Et();
|
|
1152
|
+
N.init(e, t);
|
|
1153
|
+
}), xn = /*@__PURE__*/ D("$ZodEmail", (e, t) => {
|
|
1154
|
+
t.pattern ??= Dt, N.init(e, t);
|
|
1103
1155
|
});
|
|
1104
|
-
function
|
|
1105
|
-
|
|
1156
|
+
function Sn(e) {
|
|
1157
|
+
try {
|
|
1158
|
+
return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
|
|
1159
|
+
} catch {
|
|
1160
|
+
return !1;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
function Cn(e, t) {
|
|
1164
|
+
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? Sn(e) || 2 : wn(e, t);
|
|
1165
|
+
}
|
|
1166
|
+
function wn(e, t) {
|
|
1167
|
+
if (!t.normalize && t.protocol?.source === It.source && !/^https?:\/\//i.test(e)) return 1;
|
|
1106
1168
|
try {
|
|
1169
|
+
if (typeof URL < "u") {
|
|
1170
|
+
let t = URL;
|
|
1171
|
+
if (typeof t.parse == "function") return t.parse(e) ?? 2;
|
|
1172
|
+
}
|
|
1107
1173
|
return new URL(e);
|
|
1108
1174
|
} catch {
|
|
1109
1175
|
return 2;
|
|
1110
1176
|
}
|
|
1111
1177
|
}
|
|
1112
|
-
var
|
|
1113
|
-
function
|
|
1114
|
-
return e.replace(
|
|
1178
|
+
var Tn = /[\t\n\r]/g;
|
|
1179
|
+
function En(e) {
|
|
1180
|
+
return e.replace(Tn, "");
|
|
1115
1181
|
}
|
|
1116
|
-
function
|
|
1182
|
+
function Dn(e, t) {
|
|
1117
1183
|
return t.lastIndex = 0, t.test(e.hostname);
|
|
1118
1184
|
}
|
|
1119
|
-
function
|
|
1185
|
+
function On(e, t) {
|
|
1120
1186
|
return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
|
|
1121
1187
|
}
|
|
1122
|
-
var
|
|
1123
|
-
|
|
1188
|
+
var kn = /*@__PURE__*/ D("$ZodURL", (e, t) => {
|
|
1189
|
+
N.init(e, t), e._zod.check = (n) => {
|
|
1124
1190
|
try {
|
|
1125
|
-
let r = n.value.trim(), i =
|
|
1191
|
+
let r = n.value.trim(), i = Cn(r, t);
|
|
1126
1192
|
if (i === 1) {
|
|
1127
1193
|
n.issues.push({
|
|
1128
1194
|
code: "invalid_format",
|
|
@@ -1144,7 +1210,11 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
|
|
|
1144
1210
|
});
|
|
1145
1211
|
return;
|
|
1146
1212
|
}
|
|
1147
|
-
|
|
1213
|
+
if (i === !0) {
|
|
1214
|
+
n.value = En(r);
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1217
|
+
t.hostname && !Dn(i, t.hostname) && n.issues.push({
|
|
1148
1218
|
code: "invalid_format",
|
|
1149
1219
|
format: "url",
|
|
1150
1220
|
note: "Invalid hostname",
|
|
@@ -1152,7 +1222,7 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
|
|
|
1152
1222
|
input: n.value,
|
|
1153
1223
|
inst: e,
|
|
1154
1224
|
continue: !t.abort
|
|
1155
|
-
}), t.protocol && !
|
|
1225
|
+
}), t.protocol && !On(i, t.protocol) && n.issues.push({
|
|
1156
1226
|
code: "invalid_format",
|
|
1157
1227
|
format: "url",
|
|
1158
1228
|
note: "Invalid protocol",
|
|
@@ -1160,7 +1230,7 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
|
|
|
1160
1230
|
input: n.value,
|
|
1161
1231
|
inst: e,
|
|
1162
1232
|
continue: !t.abort
|
|
1163
|
-
}), n.value = t.normalize ? i.href :
|
|
1233
|
+
}), n.value = t.normalize ? i.href : En(r);
|
|
1164
1234
|
return;
|
|
1165
1235
|
} catch {
|
|
1166
1236
|
n.issues.push({
|
|
@@ -1172,45 +1242,38 @@ var fn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
|
|
|
1172
1242
|
});
|
|
1173
1243
|
}
|
|
1174
1244
|
};
|
|
1175
|
-
}),
|
|
1176
|
-
t.pattern ??=
|
|
1177
|
-
}),
|
|
1245
|
+
}), An = /*@__PURE__*/ D("$ZodEmoji", (e, t) => {
|
|
1246
|
+
t.pattern ??= kt(), N.init(e, t);
|
|
1247
|
+
}), jn = /*@__PURE__*/ D("$ZodNanoID", (e, t) => {
|
|
1178
1248
|
if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
|
|
1179
|
-
t.pattern ??= t.length === void 0 ?
|
|
1180
|
-
}),
|
|
1181
|
-
t.pattern ??=
|
|
1182
|
-
}),
|
|
1183
|
-
t.pattern ??=
|
|
1184
|
-
}),
|
|
1185
|
-
t.pattern ??=
|
|
1186
|
-
}),
|
|
1187
|
-
t.pattern ??=
|
|
1188
|
-
}),
|
|
1189
|
-
t.pattern ??=
|
|
1190
|
-
}),
|
|
1191
|
-
t.pattern ??=
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
}),
|
|
1195
|
-
t.pattern ??=
|
|
1196
|
-
}),
|
|
1197
|
-
t.pattern ??=
|
|
1198
|
-
}),
|
|
1199
|
-
t.pattern ??=
|
|
1200
|
-
}),
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
} catch {
|
|
1208
|
-
return !1;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
var Dn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
|
|
1212
|
-
t.pattern ??= vt, I.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
1213
|
-
En(n.value) || n.issues.push({
|
|
1249
|
+
t.pattern ??= t.length === void 0 ? St : Ct(t.length), N.init(e, t);
|
|
1250
|
+
}), Mn = /*@__PURE__*/ D("$ZodCUID", (e, t) => {
|
|
1251
|
+
t.pattern ??= _t, N.init(e, t);
|
|
1252
|
+
}), Nn = /*@__PURE__*/ D("$ZodCUID2", (e, t) => {
|
|
1253
|
+
t.pattern ??= vt, N.init(e, t);
|
|
1254
|
+
}), Pn = /*@__PURE__*/ D("$ZodULID", (e, t) => {
|
|
1255
|
+
t.pattern ??= yt, N.init(e, t);
|
|
1256
|
+
}), Fn = /*@__PURE__*/ D("$ZodXID", (e, t) => {
|
|
1257
|
+
t.pattern ??= bt, N.init(e, t);
|
|
1258
|
+
}), In = /*@__PURE__*/ D("$ZodKSUID", (e, t) => {
|
|
1259
|
+
t.pattern ??= xt, N.init(e, t);
|
|
1260
|
+
}), Ln = /*@__PURE__*/ D("$ZodISODateTime", (e, t) => {
|
|
1261
|
+
t.pattern ??= Ut(t), N.init(e, t);
|
|
1262
|
+
}), Rn = /*@__PURE__*/ D("$ZodISODate", (e, t) => {
|
|
1263
|
+
t.pattern ??= Bt, N.init(e, t);
|
|
1264
|
+
}), zn = /*@__PURE__*/ D("$ZodISOTime", (e, t) => {
|
|
1265
|
+
t.pattern ??= Ht(t), N.init(e, t);
|
|
1266
|
+
}), Bn = /*@__PURE__*/ D("$ZodISODuration", (e, t) => {
|
|
1267
|
+
t.pattern ??= wt, N.init(e, t);
|
|
1268
|
+
}), Vn = /*@__PURE__*/ D("$ZodIPv4", (e, t) => {
|
|
1269
|
+
t.pattern ??= At, N.init(e, t);
|
|
1270
|
+
}), Hn = /^[0-9a-fA-F:.]+$/;
|
|
1271
|
+
function Un(e) {
|
|
1272
|
+
return Hn.test(e) ? Sn(`http://[${e}]`) : !1;
|
|
1273
|
+
}
|
|
1274
|
+
var Wn = /*@__PURE__*/ D("$ZodIPv6", (e, t) => {
|
|
1275
|
+
t.pattern ??= jt, N.init(e, t), e._zod.check = (n) => {
|
|
1276
|
+
Un(n.value) || n.issues.push({
|
|
1214
1277
|
code: "invalid_format",
|
|
1215
1278
|
format: "ipv6",
|
|
1216
1279
|
input: n.value,
|
|
@@ -1218,20 +1281,20 @@ var Dn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
|
|
|
1218
1281
|
continue: !t.abort
|
|
1219
1282
|
});
|
|
1220
1283
|
};
|
|
1221
|
-
}),
|
|
1222
|
-
t.pattern ??=
|
|
1284
|
+
}), Gn = /*@__PURE__*/ D("$ZodCIDRv4", (e, t) => {
|
|
1285
|
+
t.pattern ??= Mt, N.init(e, t);
|
|
1223
1286
|
});
|
|
1224
|
-
function
|
|
1287
|
+
function Kn(e) {
|
|
1225
1288
|
let t = e.split("/");
|
|
1226
1289
|
if (t.length !== 2) return !1;
|
|
1227
1290
|
let [n, r] = t;
|
|
1228
1291
|
if (!r) return !1;
|
|
1229
1292
|
let i = Number(r);
|
|
1230
|
-
return `${i}` !== r || i < 0 || i > 128 ? !1 :
|
|
1293
|
+
return `${i}` !== r || i < 0 || i > 128 ? !1 : Un(n);
|
|
1231
1294
|
}
|
|
1232
|
-
var
|
|
1233
|
-
t.pattern ??=
|
|
1234
|
-
|
|
1295
|
+
var qn = /*@__PURE__*/ D("$ZodCIDRv6", (e, t) => {
|
|
1296
|
+
t.pattern ??= Nt, N.init(e, t), e._zod.check = (n) => {
|
|
1297
|
+
Kn(n.value) || n.issues.push({
|
|
1235
1298
|
code: "invalid_format",
|
|
1236
1299
|
format: "cidrv6",
|
|
1237
1300
|
input: n.value,
|
|
@@ -1240,7 +1303,7 @@ var An = /*@__PURE__*/ E("$ZodCIDRv6", (e, t) => {
|
|
|
1240
1303
|
});
|
|
1241
1304
|
};
|
|
1242
1305
|
});
|
|
1243
|
-
function
|
|
1306
|
+
function Jn(e) {
|
|
1244
1307
|
if (e === "") return !0;
|
|
1245
1308
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
1246
1309
|
try {
|
|
@@ -1249,9 +1312,9 @@ function jn(e) {
|
|
|
1249
1312
|
return !1;
|
|
1250
1313
|
}
|
|
1251
1314
|
}
|
|
1252
|
-
var
|
|
1253
|
-
t.pattern ??=
|
|
1254
|
-
|
|
1315
|
+
var Yn = /^[0-9a-zA-Z+/]*={0,2}$/, Xn = /*@__PURE__*/ D("$ZodBase64", (e, t) => {
|
|
1316
|
+
t.pattern ??= Yn, N.init(e, t), e._zod.check = (n) => {
|
|
1317
|
+
Jn(n.value) || n.issues.push({
|
|
1255
1318
|
code: "invalid_format",
|
|
1256
1319
|
format: "base64",
|
|
1257
1320
|
input: n.value,
|
|
@@ -1259,15 +1322,15 @@ var Mn = /*@__PURE__*/ E("$ZodBase64", (e, t) => {
|
|
|
1259
1322
|
continue: !t.abort
|
|
1260
1323
|
});
|
|
1261
1324
|
};
|
|
1262
|
-
})
|
|
1263
|
-
function
|
|
1264
|
-
if (!
|
|
1325
|
+
}), Zn = /^[A-Za-z0-9_-]*$/;
|
|
1326
|
+
function Qn(e) {
|
|
1327
|
+
if (!Zn.test(e)) return !1;
|
|
1265
1328
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
1266
|
-
return
|
|
1329
|
+
return Jn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
1267
1330
|
}
|
|
1268
|
-
var
|
|
1269
|
-
t.pattern ??=
|
|
1270
|
-
|
|
1331
|
+
var $n = /*@__PURE__*/ D("$ZodBase64URL", (e, t) => {
|
|
1332
|
+
t.pattern ??= Zn, N.init(e, t), e._zod.check = (n) => {
|
|
1333
|
+
Qn(n.value) || n.issues.push({
|
|
1271
1334
|
code: "invalid_format",
|
|
1272
1335
|
format: "base64url",
|
|
1273
1336
|
input: n.value,
|
|
@@ -1275,10 +1338,10 @@ var Pn = /*@__PURE__*/ E("$ZodBase64URL", (e, t) => {
|
|
|
1275
1338
|
continue: !t.abort
|
|
1276
1339
|
});
|
|
1277
1340
|
};
|
|
1278
|
-
}),
|
|
1279
|
-
t.pattern ??=
|
|
1341
|
+
}), er = /*@__PURE__*/ D("$ZodE164", (e, t) => {
|
|
1342
|
+
t.pattern ??= Lt, N.init(e, t);
|
|
1280
1343
|
});
|
|
1281
|
-
function
|
|
1344
|
+
function tr(e, t = null) {
|
|
1282
1345
|
try {
|
|
1283
1346
|
let n = e.split(".");
|
|
1284
1347
|
if (n.length !== 3) return !1;
|
|
@@ -1290,9 +1353,9 @@ function In(e, t = null) {
|
|
|
1290
1353
|
return !1;
|
|
1291
1354
|
}
|
|
1292
1355
|
}
|
|
1293
|
-
var
|
|
1294
|
-
|
|
1295
|
-
|
|
1356
|
+
var nr = /*@__PURE__*/ D("$ZodJWT", (e, t) => {
|
|
1357
|
+
N.init(e, t), e._zod.check = (n) => {
|
|
1358
|
+
tr(n.value, t.alg) || n.issues.push({
|
|
1296
1359
|
code: "invalid_format",
|
|
1297
1360
|
format: "jwt",
|
|
1298
1361
|
input: n.value,
|
|
@@ -1300,8 +1363,8 @@ var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
|
|
|
1300
1363
|
continue: !t.abort
|
|
1301
1364
|
});
|
|
1302
1365
|
};
|
|
1303
|
-
}),
|
|
1304
|
-
|
|
1366
|
+
}), rr = /*@__PURE__*/ D("$ZodNumber", (e, t) => {
|
|
1367
|
+
M.init(e, t), e._zod.pattern = Gt, e._zod.parse = (n, r) => {
|
|
1305
1368
|
if (t.coerce) try {
|
|
1306
1369
|
n.value = Number(n.value);
|
|
1307
1370
|
} catch {}
|
|
@@ -1316,10 +1379,10 @@ var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
|
|
|
1316
1379
|
...a ? { received: a } : {}
|
|
1317
1380
|
}), n;
|
|
1318
1381
|
};
|
|
1319
|
-
}),
|
|
1320
|
-
|
|
1321
|
-
}),
|
|
1322
|
-
|
|
1382
|
+
}), ir = /*@__PURE__*/ D("$ZodNumberFormat", (e, t) => {
|
|
1383
|
+
en.init(e, t), rr.init(e, t);
|
|
1384
|
+
}), ar = /*@__PURE__*/ D("$ZodNull", (e, t) => {
|
|
1385
|
+
M.init(e, t), e._zod.pattern = Kt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
|
|
1323
1386
|
let r = t.value;
|
|
1324
1387
|
return r === null || t.issues.push({
|
|
1325
1388
|
expected: "null",
|
|
@@ -1328,22 +1391,38 @@ var Ln = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
|
|
|
1328
1391
|
inst: e
|
|
1329
1392
|
}), t;
|
|
1330
1393
|
};
|
|
1331
|
-
}),
|
|
1332
|
-
|
|
1333
|
-
}),
|
|
1334
|
-
|
|
1394
|
+
}), or = /*@__PURE__*/ D("$ZodUnknown", (e, t) => {
|
|
1395
|
+
M.init(e, t), e._zod.parse = (e) => e;
|
|
1396
|
+
}), sr = /*@__PURE__*/ D("$ZodNever", (e, t) => {
|
|
1397
|
+
M.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1335
1398
|
expected: "never",
|
|
1336
1399
|
code: "invalid_type",
|
|
1337
1400
|
input: t.value,
|
|
1338
1401
|
inst: e
|
|
1339
1402
|
}), t);
|
|
1340
1403
|
});
|
|
1341
|
-
function
|
|
1342
|
-
|
|
1404
|
+
function cr(e, t) {
|
|
1405
|
+
let n = Se(e._zod.def.checks);
|
|
1406
|
+
if (!n.length) return;
|
|
1407
|
+
let r = Math.min(...n.map((e) => e[0])), i = e._zod.parse;
|
|
1408
|
+
e._zod.parse = (n, a) => {
|
|
1409
|
+
let o = t(n.value);
|
|
1410
|
+
if (o > r && !a?.skipChecks && a?.direction !== "backward") {
|
|
1411
|
+
for (let [t, r] of Se(e._zod.def.checks)) if (o > t && r._zod.def.when(n)) {
|
|
1412
|
+
let t = n.issues.length;
|
|
1413
|
+
return r._zod.check(n), n.issues[t].continue = !1, Ce(n.issues, t, e), n;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
return i(n, a);
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
var lr = (e) => Array.isArray(e) ? e.length : -1;
|
|
1420
|
+
function ur(e, t, n) {
|
|
1421
|
+
e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
|
|
1343
1422
|
}
|
|
1344
|
-
var
|
|
1345
|
-
|
|
1346
|
-
let n =
|
|
1423
|
+
var dr = /*@__PURE__*/ D("$ZodArray", (e, t) => {
|
|
1424
|
+
M.init(e, t);
|
|
1425
|
+
let n = k.memoizer;
|
|
1347
1426
|
n?.attach(e), e._zod.parse = (r, i) => {
|
|
1348
1427
|
let a = r.value;
|
|
1349
1428
|
if (!Array.isArray(a)) return r.issues.push({
|
|
@@ -1353,41 +1432,38 @@ var Wn = /*@__PURE__*/ E("$ZodArray", (e, t) => {
|
|
|
1353
1432
|
inst: e
|
|
1354
1433
|
}), r;
|
|
1355
1434
|
r.value = n ? n.alloc(e, r, Array(a.length), i) : Array(a.length);
|
|
1356
|
-
let o = [];
|
|
1435
|
+
let o = [], s = i?.abortEarly;
|
|
1357
1436
|
for (let e = 0; e < a.length; e++) {
|
|
1358
|
-
let n = a[e],
|
|
1437
|
+
let n = a[e], c = t.element._zod.run({
|
|
1359
1438
|
value: n,
|
|
1360
1439
|
issues: []
|
|
1361
1440
|
}, i);
|
|
1362
|
-
|
|
1441
|
+
if (c instanceof Promise) o.push(c.then((t) => ur(t, r, e)));
|
|
1442
|
+
else if (ur(c, r, e), s && c.issues.length !== 0 && b(c)) break;
|
|
1363
1443
|
}
|
|
1364
1444
|
return o.length ? Promise.all(o).then(() => r) : r;
|
|
1365
|
-
};
|
|
1445
|
+
}, cr(e, lr);
|
|
1366
1446
|
});
|
|
1367
|
-
function
|
|
1447
|
+
function P(e, t, n, r, i, a) {
|
|
1368
1448
|
let o = n in r, s = a === "optional";
|
|
1369
1449
|
if (o || !s || i !== "optional") {
|
|
1370
1450
|
if (e.issues.length) {
|
|
1371
1451
|
if (i !== void 0 && s && !o) return;
|
|
1372
|
-
t.issues.push(...
|
|
1452
|
+
t.issues.push(...xe(n, e.issues));
|
|
1373
1453
|
}
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
});
|
|
1381
|
-
return;
|
|
1382
|
-
}
|
|
1383
|
-
e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1454
|
+
!o && i === void 0 ? e.issues.length || t.issues.push({
|
|
1455
|
+
code: "invalid_type",
|
|
1456
|
+
expected: "nonoptional",
|
|
1457
|
+
input: void 0,
|
|
1458
|
+
path: [n]
|
|
1459
|
+
}) : e.value === void 0 ? (o || i === "defaulted" && !s) && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1384
1460
|
}
|
|
1385
1461
|
}
|
|
1386
|
-
var
|
|
1387
|
-
function
|
|
1388
|
-
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n :
|
|
1462
|
+
var fr = [];
|
|
1463
|
+
function pr(e) {
|
|
1464
|
+
let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : fr, i = r.length ? [...t, ...r] : t;
|
|
1389
1465
|
for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
|
|
1390
|
-
let a =
|
|
1466
|
+
let a = le(e.shape);
|
|
1391
1467
|
return {
|
|
1392
1468
|
...e,
|
|
1393
1469
|
allKeys: i,
|
|
@@ -1397,42 +1473,48 @@ function Kn(e) {
|
|
|
1397
1473
|
optionalKeys: new Set(a)
|
|
1398
1474
|
};
|
|
1399
1475
|
}
|
|
1400
|
-
function
|
|
1401
|
-
let
|
|
1476
|
+
function mr(e, t, n, r, i, a, o) {
|
|
1477
|
+
let s = [], c = i.keySet, l = i.catchall._zod, u = l.def.type, d = l.optin, f = l.optout, p = 0;
|
|
1402
1478
|
for (let i in t) {
|
|
1403
|
-
if (
|
|
1479
|
+
if (o && n.issues.length !== p) {
|
|
1480
|
+
if (b(n, p)) break;
|
|
1481
|
+
p = n.issues.length;
|
|
1482
|
+
}
|
|
1483
|
+
if (c.has(i)) continue;
|
|
1404
1484
|
if (i === "__proto__") {
|
|
1405
|
-
|
|
1485
|
+
u === "never" && s.push(i);
|
|
1406
1486
|
continue;
|
|
1407
1487
|
}
|
|
1408
|
-
if (
|
|
1409
|
-
|
|
1488
|
+
if (u === "never") {
|
|
1489
|
+
s.push(i);
|
|
1410
1490
|
continue;
|
|
1411
1491
|
}
|
|
1412
|
-
let a =
|
|
1492
|
+
let a = l.run({
|
|
1413
1493
|
value: t[i],
|
|
1414
1494
|
issues: []
|
|
1415
1495
|
}, r);
|
|
1416
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1496
|
+
a instanceof Promise ? e.push(a.then((e) => P(e, n, i, t, d, f))) : P(a, n, i, t, d, f);
|
|
1417
1497
|
}
|
|
1418
|
-
return
|
|
1498
|
+
return s.length && n.issues.push({
|
|
1419
1499
|
code: "unrecognized_keys",
|
|
1420
|
-
keys:
|
|
1500
|
+
keys: s,
|
|
1421
1501
|
input: t,
|
|
1422
1502
|
inst: a,
|
|
1423
1503
|
continue: !0
|
|
1424
1504
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1425
1505
|
}
|
|
1426
|
-
var
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1506
|
+
var hr = /*@__PURE__*/ D("$ZodObject", (e, t) => {
|
|
1507
|
+
M.init(e, t);
|
|
1508
|
+
let n = Object.getOwnPropertyDescriptor(t, "shape"), r = n?.get ? n.get.raw : t.shape ?? {};
|
|
1509
|
+
if (r) {
|
|
1510
|
+
let e = () => {
|
|
1511
|
+
let n = { ...r };
|
|
1512
|
+
return Object.defineProperty(t, "shape", { value: n }), e.raw = n, n;
|
|
1513
|
+
};
|
|
1514
|
+
e.raw = r, Object.defineProperty(t, "shape", { get: e });
|
|
1433
1515
|
}
|
|
1434
|
-
let
|
|
1435
|
-
|
|
1516
|
+
let a = i(() => pr(t));
|
|
1517
|
+
E(e, "propValues", (e) => {
|
|
1436
1518
|
let t = e.def.shape, n = {};
|
|
1437
1519
|
for (let e in t) {
|
|
1438
1520
|
let r = t[e]._zod;
|
|
@@ -1444,51 +1526,61 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
|
|
|
1444
1526
|
}
|
|
1445
1527
|
return n;
|
|
1446
1528
|
});
|
|
1447
|
-
let
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
let
|
|
1451
|
-
if (!r
|
|
1529
|
+
let o = re, s = t.catchall, l, u = k.memoizer;
|
|
1530
|
+
u?.attach(e), e._zod.parse = (t, n) => {
|
|
1531
|
+
l ??= a.value;
|
|
1532
|
+
let r = t.value;
|
|
1533
|
+
if (!o(r)) return t.issues.push({
|
|
1452
1534
|
expected: "object",
|
|
1453
1535
|
code: "invalid_type",
|
|
1454
|
-
input:
|
|
1536
|
+
input: r,
|
|
1455
1537
|
inst: e
|
|
1456
1538
|
}), t;
|
|
1457
|
-
t.value =
|
|
1458
|
-
let
|
|
1459
|
-
for (let e of
|
|
1539
|
+
t.value = u ? u.alloc(e, t, {}, n) : {};
|
|
1540
|
+
let i = [], c = l.shape, d = n?.abortEarly, f = t.issues.length;
|
|
1541
|
+
for (let e of l.allKeys) {
|
|
1542
|
+
if (d && t.issues.length !== f) {
|
|
1543
|
+
if (b(t, f)) break;
|
|
1544
|
+
f = t.issues.length;
|
|
1545
|
+
}
|
|
1460
1546
|
if (e === "__proto__") continue;
|
|
1461
|
-
let
|
|
1462
|
-
value:
|
|
1547
|
+
let a = c[e], o = a._zod.optin, s = a._zod.optout, l = a._zod.run({
|
|
1548
|
+
value: r[e],
|
|
1463
1549
|
issues: []
|
|
1464
|
-
},
|
|
1465
|
-
|
|
1550
|
+
}, n);
|
|
1551
|
+
l instanceof Promise ? i.push(l.then((n) => P(n, t, e, r, o, s))) : P(l, t, e, r, o, s);
|
|
1466
1552
|
}
|
|
1467
|
-
return
|
|
1553
|
+
return s ? mr(i, r, t, n, a.value, e, d === !0) : i.length ? Promise.all(i).then(() => t) : t;
|
|
1468
1554
|
};
|
|
1469
|
-
}),
|
|
1470
|
-
|
|
1471
|
-
let n = e._zod.parse, r = i(() =>
|
|
1472
|
-
let n = r.value, i = n.symbolKeys, o = new
|
|
1555
|
+
}), gr = /*@__PURE__*/ D("$ZodObjectJIT", (e, t) => {
|
|
1556
|
+
hr.init(e, t);
|
|
1557
|
+
let n = e._zod.parse, r = i(() => pr(t)), a = k.memoizer, o = (t) => {
|
|
1558
|
+
let n = r.value, i = n.symbolKeys, o = new pn(["payload", "ctx"], {
|
|
1473
1559
|
shape: t,
|
|
1474
1560
|
inst: e,
|
|
1475
1561
|
memo: a,
|
|
1476
1562
|
syms: i
|
|
1477
1563
|
}), s = (e) => `shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`, c = (e, t) => `
|
|
1564
|
+
let ${e}_ab = false;
|
|
1478
1565
|
for (let i = 0; i < ${e}.issues.length; i++) {
|
|
1479
1566
|
const iss = ${e}.issues[i];
|
|
1480
1567
|
iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
|
|
1481
1568
|
payload.issues.push(iss);
|
|
1569
|
+
if (iss.continue !== true) ${e}_ab = true;
|
|
1570
|
+
}
|
|
1571
|
+
if (${e}_ab && ctx && ctx.abortEarly) {
|
|
1572
|
+
payload.value = newResult;
|
|
1573
|
+
return payload;
|
|
1482
1574
|
}`;
|
|
1483
1575
|
o.write("const input = payload.value;");
|
|
1484
|
-
let l = Object.create(null),
|
|
1485
|
-
for (let e of n.allKeys) l[e] = `key_${
|
|
1576
|
+
let l = Object.create(null), u = 0;
|
|
1577
|
+
for (let e of n.allKeys) l[e] = `key_${u++}`;
|
|
1486
1578
|
o.write(a ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
|
|
1487
1579
|
for (let e of n.allKeys) {
|
|
1488
1580
|
if (e === "__proto__") continue;
|
|
1489
|
-
let n = l[e], r = typeof e == "symbol" ? `syms[${i.indexOf(e)}]` :
|
|
1490
|
-
if (o.write(`const ${n} = ${s(r)};`),
|
|
1491
|
-
let e =
|
|
1581
|
+
let n = l[e], r = typeof e == "symbol" ? `syms[${i.indexOf(e)}]` : ee(e), a = `${r} in input`, u = t[e], d = u?._zod?.optin, f = d !== void 0, p = u?._zod?.optout === "optional";
|
|
1582
|
+
if (o.write(`const ${n} = ${s(r)};`), f && p) {
|
|
1583
|
+
let e = d === "optional" ? `${n}_present` : `${n}.value !== undefined || ${n}_present`;
|
|
1492
1584
|
o.write(`
|
|
1493
1585
|
const ${n}_present = ${a};
|
|
1494
1586
|
if (!${n}.issues.length || ${n}_present) {
|
|
@@ -1501,19 +1593,14 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
|
|
|
1501
1593
|
}
|
|
1502
1594
|
|
|
1503
1595
|
`);
|
|
1504
|
-
} else
|
|
1596
|
+
} else f ? (o.write(`
|
|
1505
1597
|
if (${n}.issues.length) {${c(n, r)}
|
|
1506
1598
|
}
|
|
1507
|
-
|
|
1508
|
-
if (${n}.value
|
|
1509
|
-
if (${a}) {
|
|
1510
|
-
newResult[${r}] = undefined;
|
|
1511
|
-
}
|
|
1512
|
-
} else {
|
|
1599
|
+
`), d === "defaulted" ? o.write(`newResult[${r}] = ${n}.value;`) : o.write(`
|
|
1600
|
+
if (${n}.value !== undefined || ${a}) {
|
|
1513
1601
|
newResult[${r}] = ${n}.value;
|
|
1514
1602
|
}
|
|
1515
|
-
|
|
1516
|
-
`) : o.write(`
|
|
1603
|
+
`)) : o.write(`
|
|
1517
1604
|
const ${n}_present = ${a};
|
|
1518
1605
|
if (${n}.issues.length) {${c(n, r)}
|
|
1519
1606
|
}
|
|
@@ -1524,6 +1611,10 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
|
|
|
1524
1611
|
input: undefined,
|
|
1525
1612
|
path: [${r}]
|
|
1526
1613
|
});
|
|
1614
|
+
if (ctx && ctx.abortEarly) {
|
|
1615
|
+
payload.value = newResult;
|
|
1616
|
+
return payload;
|
|
1617
|
+
}
|
|
1527
1618
|
}
|
|
1528
1619
|
|
|
1529
1620
|
if (${n}_present) {
|
|
@@ -1533,32 +1624,32 @@ var Jn = /* @__PURE__ */ new WeakMap(), Yn = /*@__PURE__*/ E("$ZodObject", (e, t
|
|
|
1533
1624
|
`);
|
|
1534
1625
|
}
|
|
1535
1626
|
return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
|
|
1536
|
-
}, s, c =
|
|
1627
|
+
}, s, c = re, l = !k.jitless, u = l && ie.value, d = t.catchall, f;
|
|
1537
1628
|
e._zod.parse = (i, a) => {
|
|
1538
|
-
|
|
1539
|
-
let
|
|
1540
|
-
return c(
|
|
1629
|
+
f ??= r.value;
|
|
1630
|
+
let p = i.value;
|
|
1631
|
+
return c(p) ? l && u && a?.async === !1 && a.jitless !== !0 ? (s ||= o(t.shape), i = s(i, a), d ? mr([], p, i, a, f, e, a?.abortEarly === !0) : i) : n(i, a) : (i.issues.push({
|
|
1541
1632
|
expected: "object",
|
|
1542
1633
|
code: "invalid_type",
|
|
1543
|
-
input:
|
|
1634
|
+
input: p,
|
|
1544
1635
|
inst: e
|
|
1545
1636
|
}), i);
|
|
1546
1637
|
};
|
|
1547
1638
|
});
|
|
1548
|
-
function
|
|
1639
|
+
function _r(e, t, n, r) {
|
|
1549
1640
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1550
|
-
let i = e.filter((e) => !
|
|
1641
|
+
let i = e.filter((e) => !b(e));
|
|
1551
1642
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
1552
1643
|
code: "invalid_union",
|
|
1553
1644
|
input: t.value,
|
|
1554
1645
|
inst: n,
|
|
1555
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1646
|
+
errors: e.map((e) => e.issues.map((e) => S(e, r, A())))
|
|
1556
1647
|
}), t);
|
|
1557
1648
|
}
|
|
1558
|
-
var
|
|
1559
|
-
|
|
1649
|
+
var vr = /*@__PURE__*/ D("$ZodUnion", (e, t) => {
|
|
1650
|
+
M.init(e, t), E(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), E(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), E(e, "values", (e) => {
|
|
1560
1651
|
if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1561
|
-
}),
|
|
1652
|
+
}), E(e, "pattern", (e) => {
|
|
1562
1653
|
if (e.def.options.every((e) => e._zod.pattern)) {
|
|
1563
1654
|
let t = e.def.options.map((e) => e._zod.pattern);
|
|
1564
1655
|
return RegExp(`^(${t.map((e) => o(e.source)).join("|")})$`);
|
|
@@ -1579,10 +1670,10 @@ var Qn = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
|
|
|
1579
1670
|
o.push(t);
|
|
1580
1671
|
}
|
|
1581
1672
|
}
|
|
1582
|
-
return a ? Promise.all(o).then((t) =>
|
|
1673
|
+
return a ? Promise.all(o).then((t) => _r(t, r, e, i)) : _r(o, r, e, i);
|
|
1583
1674
|
};
|
|
1584
|
-
}),
|
|
1585
|
-
|
|
1675
|
+
}), yr = /*@__PURE__*/ D("$ZodIntersection", (e, t) => {
|
|
1676
|
+
M.init(e, t), e._zod.parse = (e, n) => {
|
|
1586
1677
|
let r = e.value, i = t.left._zod.run({
|
|
1587
1678
|
value: r,
|
|
1588
1679
|
issues: []
|
|
@@ -1590,15 +1681,15 @@ var Qn = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
|
|
|
1590
1681
|
value: r,
|
|
1591
1682
|
issues: []
|
|
1592
1683
|
}, n);
|
|
1593
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1684
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => xr(e, t, n)) : xr(e, i, a);
|
|
1594
1685
|
};
|
|
1595
1686
|
});
|
|
1596
|
-
function
|
|
1687
|
+
function br(e, t) {
|
|
1597
1688
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1598
1689
|
valid: !0,
|
|
1599
1690
|
data: e
|
|
1600
1691
|
};
|
|
1601
|
-
if (
|
|
1692
|
+
if (g(e) && g(t)) {
|
|
1602
1693
|
let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
|
|
1603
1694
|
...e,
|
|
1604
1695
|
...t
|
|
@@ -1606,7 +1697,7 @@ function er(e, t) {
|
|
|
1606
1697
|
Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
|
|
1607
1698
|
for (let n of r) {
|
|
1608
1699
|
if (n === "__proto__") continue;
|
|
1609
|
-
let r =
|
|
1700
|
+
let r = br(e[n], t[n]);
|
|
1610
1701
|
if (!r.valid) return {
|
|
1611
1702
|
valid: !1,
|
|
1612
1703
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1625,7 +1716,7 @@ function er(e, t) {
|
|
|
1625
1716
|
};
|
|
1626
1717
|
let n = [];
|
|
1627
1718
|
for (let r = 0; r < e.length; r++) {
|
|
1628
|
-
let i = e[r], a = t[r], o =
|
|
1719
|
+
let i = e[r], a = t[r], o = br(i, a);
|
|
1629
1720
|
if (!o.valid) return {
|
|
1630
1721
|
valid: !1,
|
|
1631
1722
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1642,7 +1733,7 @@ function er(e, t) {
|
|
|
1642
1733
|
mergeErrorPath: []
|
|
1643
1734
|
};
|
|
1644
1735
|
}
|
|
1645
|
-
function
|
|
1736
|
+
function xr(e, t, n) {
|
|
1646
1737
|
let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
|
|
1647
1738
|
let n;
|
|
1648
1739
|
if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
|
|
@@ -1664,44 +1755,45 @@ function tr(e, t, n) {
|
|
|
1664
1755
|
});
|
|
1665
1756
|
for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
|
|
1666
1757
|
}
|
|
1667
|
-
let c =
|
|
1758
|
+
let c = br(t.value, n.value);
|
|
1668
1759
|
if (!c.valid) {
|
|
1669
|
-
if (
|
|
1760
|
+
if (b(e)) return e;
|
|
1670
1761
|
throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
|
|
1671
1762
|
}
|
|
1672
1763
|
return e.value = c.data, e;
|
|
1673
1764
|
}
|
|
1674
|
-
var
|
|
1675
|
-
|
|
1676
|
-
let r =
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1765
|
+
var Sr = /*@__PURE__*/ D("$ZodEnum", (t, n) => {
|
|
1766
|
+
M.init(t, n);
|
|
1767
|
+
let r = e(n.entries), i = new Set(r);
|
|
1768
|
+
t._zod.values = i, E(t, "pattern", (t) => {
|
|
1769
|
+
let n = e(t.def.entries).filter((e) => oe.has(typeof e));
|
|
1770
|
+
return RegExp(n.length ? `^(${n.map((e) => se(e.toString())).join("|")})$` : "^[^\\s\\S]$");
|
|
1771
|
+
}), t._zod.parse = (e, n) => {
|
|
1772
|
+
let a = e.value;
|
|
1773
|
+
return i.has(a) || e.issues.push({
|
|
1682
1774
|
code: "invalid_value",
|
|
1683
1775
|
values: r,
|
|
1684
1776
|
input: a,
|
|
1685
|
-
inst:
|
|
1686
|
-
}),
|
|
1777
|
+
inst: t
|
|
1778
|
+
}), e;
|
|
1687
1779
|
};
|
|
1688
|
-
}),
|
|
1689
|
-
|
|
1690
|
-
if (r.direction === "backward") throw new
|
|
1780
|
+
}), Cr = /*@__PURE__*/ D("$ZodTransform", (e, t) => {
|
|
1781
|
+
M.init(e, t), e._zod.optin = "optional", k.memoizer?.guard(e), e._zod.parse = (n, r) => {
|
|
1782
|
+
if (r.direction === "backward") throw new He(e.constructor.name);
|
|
1691
1783
|
let i = t.transform(n.value, n);
|
|
1692
1784
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
1693
|
-
if (i instanceof Promise) throw new
|
|
1785
|
+
if (i instanceof Promise) throw new O();
|
|
1694
1786
|
return n.value = i, n;
|
|
1695
1787
|
};
|
|
1696
1788
|
});
|
|
1697
|
-
function
|
|
1789
|
+
function wr(e, t) {
|
|
1698
1790
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
1699
1791
|
}
|
|
1700
|
-
var
|
|
1701
|
-
|
|
1792
|
+
var Tr = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
|
|
1793
|
+
M.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", E(e, "values", (e) => {
|
|
1702
1794
|
let t = e.def.innerType._zod.values;
|
|
1703
1795
|
return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
|
|
1704
|
-
}),
|
|
1796
|
+
}), E(e, "pattern", (e) => {
|
|
1705
1797
|
let t = e.def.innerType._zod.pattern;
|
|
1706
1798
|
return t ? RegExp(`^(${o(t.source)})?$`) : void 0;
|
|
1707
1799
|
}), e._zod.parse = (e, n) => {
|
|
@@ -1711,40 +1803,40 @@ var ar = /*@__PURE__*/ E("$ZodOptional", (e, t) => {
|
|
|
1711
1803
|
value: e.value,
|
|
1712
1804
|
issues: []
|
|
1713
1805
|
}, n);
|
|
1714
|
-
return r instanceof Promise ? r.then((t) =>
|
|
1806
|
+
return r instanceof Promise ? r.then((t) => wr(e, t)) : wr(e, r);
|
|
1715
1807
|
}
|
|
1716
1808
|
return t.innerType._zod.run(e, n);
|
|
1717
1809
|
};
|
|
1718
|
-
}),
|
|
1719
|
-
|
|
1720
|
-
}),
|
|
1721
|
-
|
|
1810
|
+
}), Er = /*@__PURE__*/ D("$ZodExactOptional", (e, t) => {
|
|
1811
|
+
Tr.init(e, t), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1812
|
+
}), Dr = /*@__PURE__*/ D("$ZodNullable", (e, t) => {
|
|
1813
|
+
M.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "pattern", (e) => {
|
|
1722
1814
|
let t = e.def.innerType._zod.pattern;
|
|
1723
1815
|
return t ? RegExp(`^(${o(t.source)}|null)$`) : void 0;
|
|
1724
|
-
}),
|
|
1725
|
-
}),
|
|
1726
|
-
|
|
1816
|
+
}), E(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
|
|
1817
|
+
}), Or = /*@__PURE__*/ D("$ZodDefault", (e, t) => {
|
|
1818
|
+
M.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1727
1819
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1728
1820
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1729
1821
|
let r = t.innerType._zod.run(e, n);
|
|
1730
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1822
|
+
return r instanceof Promise ? r.then((e) => kr(e, t)) : kr(r, t);
|
|
1731
1823
|
};
|
|
1732
1824
|
});
|
|
1733
|
-
function
|
|
1825
|
+
function kr(e, t) {
|
|
1734
1826
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1735
1827
|
}
|
|
1736
|
-
var
|
|
1737
|
-
|
|
1738
|
-
}),
|
|
1739
|
-
|
|
1828
|
+
var Ar = /*@__PURE__*/ D("$ZodPrefault", (e, t) => {
|
|
1829
|
+
M.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
|
|
1830
|
+
}), jr = /*@__PURE__*/ D("$ZodNonOptional", (e, t) => {
|
|
1831
|
+
M.init(e, t), E(e, "values", (e) => {
|
|
1740
1832
|
let t = e.def.innerType._zod.values;
|
|
1741
1833
|
return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
|
|
1742
1834
|
}), e._zod.parse = (n, r) => {
|
|
1743
1835
|
let i = t.innerType._zod.run(n, r);
|
|
1744
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1836
|
+
return i instanceof Promise ? i.then((t) => Mr(t, e)) : Mr(i, e);
|
|
1745
1837
|
};
|
|
1746
1838
|
});
|
|
1747
|
-
function
|
|
1839
|
+
function Mr(e, t) {
|
|
1748
1840
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1749
1841
|
code: "invalid_type",
|
|
1750
1842
|
expected: "nonoptional",
|
|
@@ -1752,57 +1844,57 @@ function fr(e, t) {
|
|
|
1752
1844
|
inst: t
|
|
1753
1845
|
}), e;
|
|
1754
1846
|
}
|
|
1755
|
-
function
|
|
1847
|
+
function Nr(e, t, n, r) {
|
|
1756
1848
|
return t.issues.length ? (e.value = n.catchValue({
|
|
1757
1849
|
...t,
|
|
1758
1850
|
value: e.value,
|
|
1759
|
-
error: { issues: t.issues.map((e) =>
|
|
1851
|
+
error: { issues: t.issues.map((e) => S(e, r, A())) },
|
|
1760
1852
|
input: e.value
|
|
1761
1853
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
1762
1854
|
}
|
|
1763
|
-
var
|
|
1764
|
-
|
|
1855
|
+
var Pr = /*@__PURE__*/ D("$ZodCatch", (e, t) => {
|
|
1856
|
+
M.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1765
1857
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1766
1858
|
let r = t.innerType._zod.run({
|
|
1767
1859
|
value: e.value,
|
|
1768
1860
|
issues: []
|
|
1769
1861
|
}, n);
|
|
1770
|
-
return r instanceof Promise ? r.then((r) =>
|
|
1862
|
+
return r instanceof Promise ? r.then((r) => Nr(e, r, t, n)) : Nr(e, r, t, n);
|
|
1771
1863
|
};
|
|
1772
|
-
}),
|
|
1773
|
-
|
|
1864
|
+
}), Fr = /*@__PURE__*/ D("$ZodPipe", (e, t) => {
|
|
1865
|
+
M.init(e, t), E(e, "values", (e) => e.def.in._zod.values), E(e, "optin", (e) => e.def.in._zod.optin), E(e, "optout", (e) => e.def.out._zod.optout), E(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1774
1866
|
if (n.direction === "backward") {
|
|
1775
1867
|
let r = t.out._zod.run(e, n);
|
|
1776
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1868
|
+
return r instanceof Promise ? r.then((e) => F(e, t.in, n)) : F(r, t.in, n);
|
|
1777
1869
|
}
|
|
1778
1870
|
let r = t.in._zod.run(e, n);
|
|
1779
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1871
|
+
return r instanceof Promise ? r.then((e) => F(e, t.out, n)) : F(r, t.out, n);
|
|
1780
1872
|
};
|
|
1781
1873
|
});
|
|
1782
|
-
function
|
|
1874
|
+
function F(e, t, n) {
|
|
1783
1875
|
return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
|
|
1784
1876
|
value: e.value,
|
|
1785
1877
|
issues: e.issues
|
|
1786
1878
|
}, n);
|
|
1787
1879
|
}
|
|
1788
|
-
var
|
|
1789
|
-
|
|
1880
|
+
var Ir = /*@__PURE__*/ D("$ZodReadonly", (e, t) => {
|
|
1881
|
+
M.init(e, t), E(e, "propValues", (e) => e.def.innerType._zod.propValues), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "optin", (e) => e.def.innerType?._zod?.optin), E(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1790
1882
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1791
1883
|
let r = t.innerType._zod.run(e, n);
|
|
1792
|
-
return r instanceof Promise ? r.then(
|
|
1884
|
+
return r instanceof Promise ? r.then(Lr) : Lr(r);
|
|
1793
1885
|
};
|
|
1794
1886
|
});
|
|
1795
|
-
function
|
|
1887
|
+
function Lr(e) {
|
|
1796
1888
|
return e.memo || (e.value = Object.freeze(e.value)), e;
|
|
1797
1889
|
}
|
|
1798
|
-
var
|
|
1799
|
-
|
|
1890
|
+
var Rr = /*@__PURE__*/ D("$ZodCustom", (e, t) => {
|
|
1891
|
+
j.init(e, t), M.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1800
1892
|
let r = n.value, i = t.fn(r);
|
|
1801
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1802
|
-
|
|
1893
|
+
if (i instanceof Promise) return i.then((t) => zr(t, n, r, e));
|
|
1894
|
+
zr(i, n, r, e);
|
|
1803
1895
|
};
|
|
1804
1896
|
});
|
|
1805
|
-
function
|
|
1897
|
+
function zr(e, t, n, r) {
|
|
1806
1898
|
if (!e) {
|
|
1807
1899
|
let e = {
|
|
1808
1900
|
code: "custom",
|
|
@@ -1811,55 +1903,73 @@ function yr(e, t, n, r) {
|
|
|
1811
1903
|
path: [...r._zod.def.path ?? []],
|
|
1812
1904
|
continue: !r._zod.def.abort
|
|
1813
1905
|
};
|
|
1814
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
1906
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(C(e));
|
|
1815
1907
|
}
|
|
1816
1908
|
}
|
|
1817
1909
|
//#endregion
|
|
1818
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
1819
|
-
var
|
|
1910
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
1911
|
+
var Br = class extends Error {
|
|
1820
1912
|
constructor() {
|
|
1821
1913
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
1822
1914
|
}
|
|
1823
|
-
},
|
|
1824
|
-
function
|
|
1915
|
+
}, Vr = "~memo", Hr = [];
|
|
1916
|
+
function Ur(e) {
|
|
1917
|
+
return typeof e == "object" && !!e;
|
|
1918
|
+
}
|
|
1919
|
+
function Wr(e) {
|
|
1825
1920
|
return e.map((e) => e.path ? {
|
|
1826
1921
|
...e,
|
|
1827
1922
|
path: e.path.slice()
|
|
1828
1923
|
} : { ...e });
|
|
1829
1924
|
}
|
|
1830
|
-
var
|
|
1831
|
-
function
|
|
1832
|
-
let
|
|
1833
|
-
if (
|
|
1834
|
-
if (t.has(e)) return
|
|
1925
|
+
var Gr = /*@__PURE__*/ new WeakMap(), I = 0, L = 1, R = 2;
|
|
1926
|
+
function z(e, t, n) {
|
|
1927
|
+
let r = Gr.get(e);
|
|
1928
|
+
if (r !== void 0) return r ? R : I;
|
|
1929
|
+
if (t.has(e)) return R;
|
|
1835
1930
|
t.add(e);
|
|
1836
|
-
let
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1931
|
+
let i = I, a = (e) => {
|
|
1932
|
+
if (i !== R && e?._zod) {
|
|
1933
|
+
let r = z(e, t, n);
|
|
1934
|
+
r > i && (i = r);
|
|
1935
|
+
}
|
|
1936
|
+
}, o = (e, r) => {
|
|
1937
|
+
let i = I;
|
|
1938
|
+
for (let a of Reflect.ownKeys(e)) {
|
|
1939
|
+
let o = Object.getOwnPropertyDescriptor(e, a);
|
|
1940
|
+
if (r && !o.enumerable) continue;
|
|
1941
|
+
let s = o.get ? L : o.value?._zod ? z(o.value, t, n) : I;
|
|
1942
|
+
s > i && (i = s);
|
|
1943
|
+
}
|
|
1944
|
+
return i;
|
|
1945
|
+
}, s = (e) => {
|
|
1946
|
+
e > i && (i = e);
|
|
1947
|
+
}, c = e._zod.def;
|
|
1948
|
+
switch (c.type) {
|
|
1949
|
+
case "object": {
|
|
1950
|
+
let e = l(c);
|
|
1951
|
+
s(e ? o(e, !0) : L), a(c.catchall);
|
|
1843
1952
|
break;
|
|
1953
|
+
}
|
|
1844
1954
|
case "array":
|
|
1845
|
-
|
|
1955
|
+
a(c.element);
|
|
1846
1956
|
break;
|
|
1847
1957
|
case "tuple":
|
|
1848
|
-
for (let e of
|
|
1849
|
-
|
|
1958
|
+
for (let e of c.items) a(e);
|
|
1959
|
+
a(c.rest);
|
|
1850
1960
|
break;
|
|
1851
1961
|
case "record":
|
|
1852
1962
|
case "map":
|
|
1853
|
-
|
|
1963
|
+
a(c.keyType), a(c.valueType);
|
|
1854
1964
|
break;
|
|
1855
1965
|
case "set":
|
|
1856
|
-
|
|
1966
|
+
a(c.valueType);
|
|
1857
1967
|
break;
|
|
1858
1968
|
case "union":
|
|
1859
|
-
for (let e of
|
|
1969
|
+
for (let e of c.options) a(e);
|
|
1860
1970
|
break;
|
|
1861
1971
|
case "intersection":
|
|
1862
|
-
|
|
1972
|
+
a(c.left), a(c.right);
|
|
1863
1973
|
break;
|
|
1864
1974
|
case "optional":
|
|
1865
1975
|
case "nullable":
|
|
@@ -1870,17 +1980,19 @@ function Tr(e, t) {
|
|
|
1870
1980
|
case "nonoptional":
|
|
1871
1981
|
case "promise":
|
|
1872
1982
|
case "success":
|
|
1873
|
-
|
|
1983
|
+
a(c.innerType);
|
|
1874
1984
|
break;
|
|
1875
1985
|
case "pipe":
|
|
1876
|
-
|
|
1986
|
+
a(c.in), a(c.out);
|
|
1877
1987
|
break;
|
|
1878
1988
|
case "function":
|
|
1879
|
-
|
|
1989
|
+
a(c.input), a(c.output);
|
|
1880
1990
|
break;
|
|
1881
|
-
case "lazy":
|
|
1882
|
-
|
|
1991
|
+
case "lazy": {
|
|
1992
|
+
let r = c._cachedInner ?? (n ? e._zod.innerType : void 0);
|
|
1993
|
+
s(r ? z(r, t, !1) : L);
|
|
1883
1994
|
break;
|
|
1995
|
+
}
|
|
1884
1996
|
case "template_literal":
|
|
1885
1997
|
case "string":
|
|
1886
1998
|
case "number":
|
|
@@ -1901,38 +2013,41 @@ function Tr(e, t) {
|
|
|
1901
2013
|
case "file":
|
|
1902
2014
|
case "transform":
|
|
1903
2015
|
case "custom": break;
|
|
1904
|
-
default: for (let e in
|
|
1905
|
-
let t = Object.getOwnPropertyDescriptor(
|
|
2016
|
+
default: for (let e in c) {
|
|
2017
|
+
let t = Object.getOwnPropertyDescriptor(c, e);
|
|
1906
2018
|
if (!t || t.get) continue;
|
|
1907
2019
|
let n = t.value;
|
|
1908
2020
|
if (n && typeof n == "object") {
|
|
1909
|
-
if (n._zod)
|
|
1910
|
-
else if (Array.isArray(n)) for (let e of n)
|
|
2021
|
+
if (n._zod) a(n);
|
|
2022
|
+
else if (Array.isArray(n)) for (let e of n) a(e);
|
|
1911
2023
|
}
|
|
1912
2024
|
}
|
|
1913
2025
|
}
|
|
1914
|
-
return t.delete(e),
|
|
2026
|
+
return t.delete(e), Kr(e, i);
|
|
2027
|
+
}
|
|
2028
|
+
function Kr(e, t) {
|
|
2029
|
+
return t !== L && Gr.set(e, t === R), t;
|
|
1915
2030
|
}
|
|
1916
|
-
function
|
|
2031
|
+
function qr(e, t) {
|
|
1917
2032
|
let n = e.buckets.get(t);
|
|
1918
|
-
return n || (n = /* @__PURE__ */ new
|
|
2033
|
+
return n || (n = /* @__PURE__ */ new WeakMap(), e.buckets.set(t, n)), n;
|
|
1919
2034
|
}
|
|
1920
|
-
var
|
|
2035
|
+
var B, Jr = [], Yr = {
|
|
1921
2036
|
alloc(e, t, n) {
|
|
1922
|
-
let r =
|
|
2037
|
+
let r = B;
|
|
1923
2038
|
if (!r) return n;
|
|
1924
|
-
|
|
2039
|
+
B = void 0;
|
|
1925
2040
|
let i = {
|
|
1926
2041
|
value: n,
|
|
1927
2042
|
issues: null
|
|
1928
2043
|
};
|
|
1929
|
-
return r.set(t.value, i),
|
|
2044
|
+
return r.set(t.value, i), Jr.push(i), n;
|
|
1930
2045
|
},
|
|
1931
2046
|
guard(e) {
|
|
1932
2047
|
var t;
|
|
1933
2048
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
1934
2049
|
let t = e._zod.parse, n = (e, n) => {
|
|
1935
|
-
if (n.direction !== "backward" &&
|
|
2050
|
+
if (n.direction !== "backward" && Zr(n, e.value)) throw new Br();
|
|
1936
2051
|
return t(e, n);
|
|
1937
2052
|
};
|
|
1938
2053
|
e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
|
|
@@ -1940,41 +2055,45 @@ var z, B = [], Dr = {
|
|
|
1940
2055
|
},
|
|
1941
2056
|
attach(e) {
|
|
1942
2057
|
var t;
|
|
1943
|
-
let n, r, i;
|
|
2058
|
+
let n, r = !1, i, a;
|
|
1944
2059
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
1945
|
-
let t = e._zod.parse,
|
|
1946
|
-
if (n === void 0
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
2060
|
+
let t = e._zod.parse, o = (s, c) => {
|
|
2061
|
+
if (n === void 0) {
|
|
2062
|
+
let i = z(e, /* @__PURE__ */ new Set(), !1);
|
|
2063
|
+
if (i === I) return e._zod.parse = t, e._zod.run === o && (e._zod.run = t), t(s, c);
|
|
2064
|
+
i === R || r ? n = !0 : r = !0;
|
|
2065
|
+
}
|
|
2066
|
+
let l = s.value;
|
|
2067
|
+
if (!Ur(l)) return t(s, c);
|
|
2068
|
+
let u = c[Vr];
|
|
2069
|
+
u || (u = {
|
|
2070
|
+
buckets: /* @__PURE__ */ new WeakMap(),
|
|
1952
2071
|
backEdges: void 0
|
|
1953
|
-
},
|
|
1954
|
-
let
|
|
1955
|
-
|
|
1956
|
-
let
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1959
|
-
let
|
|
1960
|
-
|
|
1961
|
-
let
|
|
1962
|
-
return
|
|
2072
|
+
}, c[Vr] = u);
|
|
2073
|
+
let d;
|
|
2074
|
+
i === c ? d = a : (d = qr(u, e), i = c, a = d);
|
|
2075
|
+
let f = d.get(l);
|
|
2076
|
+
if (f) return s.value = f.value, f.issues ? f.issues.length && s.issues.push(...Wr(f.issues)) : (s.memo = !0, u.backEdges ?? (u.backEdges = /* @__PURE__ */ new WeakSet()), u.backEdges.add(f.value)), s;
|
|
2077
|
+
B = d;
|
|
2078
|
+
let p = Jr.length, m = t(s, c);
|
|
2079
|
+
B = void 0;
|
|
2080
|
+
let h = Jr.length > p ? Jr.pop() : void 0;
|
|
2081
|
+
return m instanceof Promise ? m.then((e) => (h && (h.issues = e.issues.length ? Wr(e.issues) : Hr), e)) : (h && (h.issues = m.issues.length ? Wr(m.issues) : Hr), m);
|
|
1963
2082
|
};
|
|
1964
|
-
e._zod.parse =
|
|
2083
|
+
e._zod.parse = o, e._zod.run === t && (e._zod.run = o);
|
|
1965
2084
|
});
|
|
1966
2085
|
}
|
|
1967
2086
|
};
|
|
1968
|
-
function
|
|
1969
|
-
return
|
|
2087
|
+
function Xr() {
|
|
2088
|
+
return Yr;
|
|
1970
2089
|
}
|
|
1971
|
-
function
|
|
1972
|
-
let n = e[
|
|
1973
|
-
return n !== void 0 &&
|
|
2090
|
+
function Zr(e, t) {
|
|
2091
|
+
let n = e[Vr]?.backEdges;
|
|
2092
|
+
return n !== void 0 && Ur(t) && n.has(t);
|
|
1974
2093
|
}
|
|
1975
2094
|
//#endregion
|
|
1976
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
1977
|
-
var
|
|
2095
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
2096
|
+
var Qr = () => {
|
|
1978
2097
|
let e = {
|
|
1979
2098
|
string: {
|
|
1980
2099
|
unit: "characters",
|
|
@@ -1997,7 +2116,7 @@ var Ar = () => {
|
|
|
1997
2116
|
verb: "to have"
|
|
1998
2117
|
}
|
|
1999
2118
|
};
|
|
2000
|
-
function
|
|
2119
|
+
function n(t) {
|
|
2001
2120
|
return e[t] ?? null;
|
|
2002
2121
|
}
|
|
2003
2122
|
let r = {
|
|
@@ -2028,7 +2147,9 @@ var Ar = () => {
|
|
|
2028
2147
|
base64url: "base64url-encoded string",
|
|
2029
2148
|
json_string: "JSON string",
|
|
2030
2149
|
e164: "E.164 number",
|
|
2150
|
+
currency_code: "currency code",
|
|
2031
2151
|
credit_card: "credit card number",
|
|
2152
|
+
iban: "IBAN",
|
|
2032
2153
|
jwt: "JWT",
|
|
2033
2154
|
template_literal: "input"
|
|
2034
2155
|
}, i = { nan: "NaN" };
|
|
@@ -2037,22 +2158,22 @@ var Ar = () => {
|
|
|
2037
2158
|
}
|
|
2038
2159
|
return (e) => {
|
|
2039
2160
|
switch (e.code) {
|
|
2040
|
-
case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(
|
|
2041
|
-
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${
|
|
2161
|
+
case "invalid_type": return `Invalid input: expected ${a(e.expected)}, received ${a(De(e.input), e.input)}`;
|
|
2162
|
+
case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${ce(e.values[0])}` : `Invalid option: expected one of ${t(e.values, "|")}`;
|
|
2042
2163
|
case "too_big": {
|
|
2043
|
-
let
|
|
2044
|
-
return r ? `Too big: expected ${e.origin ?? "value"} to have ${
|
|
2164
|
+
let t = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = n(e.origin);
|
|
2165
|
+
return r ? `Too big: expected ${e.origin ?? "value"} to have ${t}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${t}${e.maximum.toString()}`;
|
|
2045
2166
|
}
|
|
2046
2167
|
case "too_small": {
|
|
2047
|
-
let
|
|
2048
|
-
return r ? `Too small: expected ${e.origin} to have ${
|
|
2168
|
+
let t = e.exact ? "exactly " : e.inclusive ? ">=" : ">", r = n(e.origin);
|
|
2169
|
+
return r ? `Too small: expected ${e.origin} to have ${t}${e.minimum.toString()} ${r.unit}` : `Too small: expected ${e.origin} to be ${t}${e.minimum.toString()}`;
|
|
2049
2170
|
}
|
|
2050
2171
|
case "invalid_format": {
|
|
2051
2172
|
let t = e;
|
|
2052
2173
|
return t.format === "starts_with" ? `Invalid string: must start with "${t.prefix}"` : t.format === "ends_with" ? `Invalid string: must end with "${t.suffix}"` : t.format === "includes" ? `Invalid string: must include "${t.includes}"` : t.format === "regex" ? `Invalid string: must match pattern ${t.pattern}` : `Invalid ${r[t.format] ?? e.format}`;
|
|
2053
2174
|
}
|
|
2054
2175
|
case "not_multiple_of": return `Invalid number: must be a multiple of ${e.divisor}`;
|
|
2055
|
-
case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${
|
|
2176
|
+
case "unrecognized_keys": return `Unrecognized key${e.keys.length > 1 ? "s" : ""}: ${t(e.keys, ", ")}`;
|
|
2056
2177
|
case "invalid_key": return `Invalid key in ${e.origin}`;
|
|
2057
2178
|
case "invalid_union": return e.options && Array.isArray(e.options) && e.options.length > 0 ? `Invalid discriminator value. Expected ${e.options.map((e) => `'${e}'`).join(" | ")}` : e.inclusive === !1 ? "Invalid input: more than one option matched" : "Invalid input";
|
|
2058
2179
|
case "invalid_element": return `Invalid value in ${e.origin}`;
|
|
@@ -2060,12 +2181,12 @@ var Ar = () => {
|
|
|
2060
2181
|
}
|
|
2061
2182
|
};
|
|
2062
2183
|
};
|
|
2063
|
-
function
|
|
2064
|
-
return { localeError:
|
|
2184
|
+
function $r() {
|
|
2185
|
+
return { localeError: Qr() };
|
|
2065
2186
|
}
|
|
2066
2187
|
//#endregion
|
|
2067
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
2068
|
-
var
|
|
2188
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
2189
|
+
var ei, ti = class {
|
|
2069
2190
|
constructor() {
|
|
2070
2191
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
2071
2192
|
}
|
|
@@ -2097,22 +2218,25 @@ var Mr, Nr = class {
|
|
|
2097
2218
|
return this._map.has(e);
|
|
2098
2219
|
}
|
|
2099
2220
|
};
|
|
2100
|
-
function
|
|
2101
|
-
return new
|
|
2221
|
+
function ni() {
|
|
2222
|
+
return new ti();
|
|
2102
2223
|
}
|
|
2103
|
-
(
|
|
2224
|
+
(ei = globalThis).__zod_globalRegistry ?? (ei.__zod_globalRegistry = ni());
|
|
2104
2225
|
var V = globalThis.__zod_globalRegistry;
|
|
2105
2226
|
//#endregion
|
|
2106
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
2227
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
2228
|
+
function ri(e) {
|
|
2229
|
+
return e.checks &&= [...e.checks], e;
|
|
2230
|
+
}
|
|
2107
2231
|
// @__NO_SIDE_EFFECTS__
|
|
2108
|
-
function
|
|
2109
|
-
return new e({
|
|
2232
|
+
function ii(e, t) {
|
|
2233
|
+
return new e(ri({
|
|
2110
2234
|
type: "string",
|
|
2111
2235
|
...v(t)
|
|
2112
|
-
});
|
|
2236
|
+
}));
|
|
2113
2237
|
}
|
|
2114
2238
|
// @__NO_SIDE_EFFECTS__
|
|
2115
|
-
function
|
|
2239
|
+
function ai(e, t) {
|
|
2116
2240
|
return new e({
|
|
2117
2241
|
type: "string",
|
|
2118
2242
|
format: "email",
|
|
@@ -2122,7 +2246,7 @@ function Ir(e, t) {
|
|
|
2122
2246
|
});
|
|
2123
2247
|
}
|
|
2124
2248
|
// @__NO_SIDE_EFFECTS__
|
|
2125
|
-
function
|
|
2249
|
+
function oi(e, t) {
|
|
2126
2250
|
return new e({
|
|
2127
2251
|
type: "string",
|
|
2128
2252
|
format: "guid",
|
|
@@ -2132,7 +2256,7 @@ function Lr(e, t) {
|
|
|
2132
2256
|
});
|
|
2133
2257
|
}
|
|
2134
2258
|
// @__NO_SIDE_EFFECTS__
|
|
2135
|
-
function
|
|
2259
|
+
function si(e, t) {
|
|
2136
2260
|
return new e({
|
|
2137
2261
|
type: "string",
|
|
2138
2262
|
format: "uuid",
|
|
@@ -2142,7 +2266,7 @@ function Rr(e, t) {
|
|
|
2142
2266
|
});
|
|
2143
2267
|
}
|
|
2144
2268
|
// @__NO_SIDE_EFFECTS__
|
|
2145
|
-
function
|
|
2269
|
+
function ci(e, t) {
|
|
2146
2270
|
return new e({
|
|
2147
2271
|
type: "string",
|
|
2148
2272
|
format: "uuid",
|
|
@@ -2153,7 +2277,7 @@ function zr(e, t) {
|
|
|
2153
2277
|
});
|
|
2154
2278
|
}
|
|
2155
2279
|
// @__NO_SIDE_EFFECTS__
|
|
2156
|
-
function
|
|
2280
|
+
function li(e, t) {
|
|
2157
2281
|
return new e({
|
|
2158
2282
|
type: "string",
|
|
2159
2283
|
format: "uuid",
|
|
@@ -2164,7 +2288,7 @@ function Br(e, t) {
|
|
|
2164
2288
|
});
|
|
2165
2289
|
}
|
|
2166
2290
|
// @__NO_SIDE_EFFECTS__
|
|
2167
|
-
function
|
|
2291
|
+
function ui(e, t) {
|
|
2168
2292
|
return new e({
|
|
2169
2293
|
type: "string",
|
|
2170
2294
|
format: "uuid",
|
|
@@ -2175,7 +2299,7 @@ function Vr(e, t) {
|
|
|
2175
2299
|
});
|
|
2176
2300
|
}
|
|
2177
2301
|
// @__NO_SIDE_EFFECTS__
|
|
2178
|
-
function
|
|
2302
|
+
function di(e, t) {
|
|
2179
2303
|
return new e({
|
|
2180
2304
|
type: "string",
|
|
2181
2305
|
format: "url",
|
|
@@ -2185,7 +2309,7 @@ function Hr(e, t) {
|
|
|
2185
2309
|
});
|
|
2186
2310
|
}
|
|
2187
2311
|
// @__NO_SIDE_EFFECTS__
|
|
2188
|
-
function
|
|
2312
|
+
function fi(e, t) {
|
|
2189
2313
|
return new e({
|
|
2190
2314
|
type: "string",
|
|
2191
2315
|
format: "emoji",
|
|
@@ -2195,7 +2319,7 @@ function Ur(e, t) {
|
|
|
2195
2319
|
});
|
|
2196
2320
|
}
|
|
2197
2321
|
// @__NO_SIDE_EFFECTS__
|
|
2198
|
-
function
|
|
2322
|
+
function pi(e, t) {
|
|
2199
2323
|
return new e({
|
|
2200
2324
|
type: "string",
|
|
2201
2325
|
format: "nanoid",
|
|
@@ -2205,7 +2329,7 @@ function Wr(e, t) {
|
|
|
2205
2329
|
});
|
|
2206
2330
|
}
|
|
2207
2331
|
// @__NO_SIDE_EFFECTS__
|
|
2208
|
-
function
|
|
2332
|
+
function mi(e, t) {
|
|
2209
2333
|
return new e({
|
|
2210
2334
|
type: "string",
|
|
2211
2335
|
format: "cuid",
|
|
@@ -2215,7 +2339,7 @@ function Gr(e, t) {
|
|
|
2215
2339
|
});
|
|
2216
2340
|
}
|
|
2217
2341
|
// @__NO_SIDE_EFFECTS__
|
|
2218
|
-
function
|
|
2342
|
+
function hi(e, t) {
|
|
2219
2343
|
return new e({
|
|
2220
2344
|
type: "string",
|
|
2221
2345
|
format: "cuid2",
|
|
@@ -2225,7 +2349,7 @@ function Kr(e, t) {
|
|
|
2225
2349
|
});
|
|
2226
2350
|
}
|
|
2227
2351
|
// @__NO_SIDE_EFFECTS__
|
|
2228
|
-
function
|
|
2352
|
+
function gi(e, t) {
|
|
2229
2353
|
return new e({
|
|
2230
2354
|
type: "string",
|
|
2231
2355
|
format: "ulid",
|
|
@@ -2235,7 +2359,7 @@ function qr(e, t) {
|
|
|
2235
2359
|
});
|
|
2236
2360
|
}
|
|
2237
2361
|
// @__NO_SIDE_EFFECTS__
|
|
2238
|
-
function
|
|
2362
|
+
function _i(e, t) {
|
|
2239
2363
|
return new e({
|
|
2240
2364
|
type: "string",
|
|
2241
2365
|
format: "xid",
|
|
@@ -2245,7 +2369,7 @@ function Jr(e, t) {
|
|
|
2245
2369
|
});
|
|
2246
2370
|
}
|
|
2247
2371
|
// @__NO_SIDE_EFFECTS__
|
|
2248
|
-
function
|
|
2372
|
+
function vi(e, t) {
|
|
2249
2373
|
return new e({
|
|
2250
2374
|
type: "string",
|
|
2251
2375
|
format: "ksuid",
|
|
@@ -2255,7 +2379,7 @@ function Yr(e, t) {
|
|
|
2255
2379
|
});
|
|
2256
2380
|
}
|
|
2257
2381
|
// @__NO_SIDE_EFFECTS__
|
|
2258
|
-
function
|
|
2382
|
+
function yi(e, t) {
|
|
2259
2383
|
return new e({
|
|
2260
2384
|
type: "string",
|
|
2261
2385
|
format: "ipv4",
|
|
@@ -2265,7 +2389,7 @@ function Xr(e, t) {
|
|
|
2265
2389
|
});
|
|
2266
2390
|
}
|
|
2267
2391
|
// @__NO_SIDE_EFFECTS__
|
|
2268
|
-
function
|
|
2392
|
+
function bi(e, t) {
|
|
2269
2393
|
return new e({
|
|
2270
2394
|
type: "string",
|
|
2271
2395
|
format: "ipv6",
|
|
@@ -2275,7 +2399,7 @@ function Zr(e, t) {
|
|
|
2275
2399
|
});
|
|
2276
2400
|
}
|
|
2277
2401
|
// @__NO_SIDE_EFFECTS__
|
|
2278
|
-
function
|
|
2402
|
+
function xi(e, t) {
|
|
2279
2403
|
return new e({
|
|
2280
2404
|
type: "string",
|
|
2281
2405
|
format: "cidrv4",
|
|
@@ -2285,7 +2409,7 @@ function Qr(e, t) {
|
|
|
2285
2409
|
});
|
|
2286
2410
|
}
|
|
2287
2411
|
// @__NO_SIDE_EFFECTS__
|
|
2288
|
-
function
|
|
2412
|
+
function Si(e, t) {
|
|
2289
2413
|
return new e({
|
|
2290
2414
|
type: "string",
|
|
2291
2415
|
format: "cidrv6",
|
|
@@ -2295,7 +2419,7 @@ function $r(e, t) {
|
|
|
2295
2419
|
});
|
|
2296
2420
|
}
|
|
2297
2421
|
// @__NO_SIDE_EFFECTS__
|
|
2298
|
-
function
|
|
2422
|
+
function Ci(e, t) {
|
|
2299
2423
|
return new e({
|
|
2300
2424
|
type: "string",
|
|
2301
2425
|
format: "base64",
|
|
@@ -2305,7 +2429,7 @@ function ei(e, t) {
|
|
|
2305
2429
|
});
|
|
2306
2430
|
}
|
|
2307
2431
|
// @__NO_SIDE_EFFECTS__
|
|
2308
|
-
function
|
|
2432
|
+
function wi(e, t) {
|
|
2309
2433
|
return new e({
|
|
2310
2434
|
type: "string",
|
|
2311
2435
|
format: "base64url",
|
|
@@ -2315,7 +2439,7 @@ function ti(e, t) {
|
|
|
2315
2439
|
});
|
|
2316
2440
|
}
|
|
2317
2441
|
// @__NO_SIDE_EFFECTS__
|
|
2318
|
-
function
|
|
2442
|
+
function Ti(e, t) {
|
|
2319
2443
|
return new e({
|
|
2320
2444
|
type: "string",
|
|
2321
2445
|
format: "e164",
|
|
@@ -2325,7 +2449,7 @@ function ni(e, t) {
|
|
|
2325
2449
|
});
|
|
2326
2450
|
}
|
|
2327
2451
|
// @__NO_SIDE_EFFECTS__
|
|
2328
|
-
function
|
|
2452
|
+
function Ei(e, t) {
|
|
2329
2453
|
return new e({
|
|
2330
2454
|
type: "string",
|
|
2331
2455
|
format: "jwt",
|
|
@@ -2335,7 +2459,7 @@ function ri(e, t) {
|
|
|
2335
2459
|
});
|
|
2336
2460
|
}
|
|
2337
2461
|
// @__NO_SIDE_EFFECTS__
|
|
2338
|
-
function
|
|
2462
|
+
function Di(e, t) {
|
|
2339
2463
|
return new e({
|
|
2340
2464
|
type: "string",
|
|
2341
2465
|
format: "datetime",
|
|
@@ -2347,7 +2471,7 @@ function ii(e, t) {
|
|
|
2347
2471
|
});
|
|
2348
2472
|
}
|
|
2349
2473
|
// @__NO_SIDE_EFFECTS__
|
|
2350
|
-
function
|
|
2474
|
+
function Oi(e, t) {
|
|
2351
2475
|
return new e({
|
|
2352
2476
|
type: "string",
|
|
2353
2477
|
format: "date",
|
|
@@ -2356,7 +2480,7 @@ function ai(e, t) {
|
|
|
2356
2480
|
});
|
|
2357
2481
|
}
|
|
2358
2482
|
// @__NO_SIDE_EFFECTS__
|
|
2359
|
-
function
|
|
2483
|
+
function ki(e, t) {
|
|
2360
2484
|
return new e({
|
|
2361
2485
|
type: "string",
|
|
2362
2486
|
format: "time",
|
|
@@ -2366,7 +2490,7 @@ function oi(e, t) {
|
|
|
2366
2490
|
});
|
|
2367
2491
|
}
|
|
2368
2492
|
// @__NO_SIDE_EFFECTS__
|
|
2369
|
-
function
|
|
2493
|
+
function Ai(e, t) {
|
|
2370
2494
|
return new e({
|
|
2371
2495
|
type: "string",
|
|
2372
2496
|
format: "duration",
|
|
@@ -2375,15 +2499,15 @@ function si(e, t) {
|
|
|
2375
2499
|
});
|
|
2376
2500
|
}
|
|
2377
2501
|
// @__NO_SIDE_EFFECTS__
|
|
2378
|
-
function
|
|
2379
|
-
return new e({
|
|
2502
|
+
function ji(e, t) {
|
|
2503
|
+
return new e(ri({
|
|
2380
2504
|
type: "number",
|
|
2381
2505
|
checks: [],
|
|
2382
2506
|
...v(t)
|
|
2383
|
-
});
|
|
2507
|
+
}));
|
|
2384
2508
|
}
|
|
2385
2509
|
// @__NO_SIDE_EFFECTS__
|
|
2386
|
-
function
|
|
2510
|
+
function Mi(e, t) {
|
|
2387
2511
|
return new e({
|
|
2388
2512
|
type: "number",
|
|
2389
2513
|
check: "number_format",
|
|
@@ -2393,26 +2517,26 @@ function li(e, t) {
|
|
|
2393
2517
|
});
|
|
2394
2518
|
}
|
|
2395
2519
|
// @__NO_SIDE_EFFECTS__
|
|
2396
|
-
function
|
|
2520
|
+
function Ni(e, t) {
|
|
2397
2521
|
return new e({
|
|
2398
2522
|
type: "null",
|
|
2399
2523
|
...v(t)
|
|
2400
2524
|
});
|
|
2401
2525
|
}
|
|
2402
2526
|
// @__NO_SIDE_EFFECTS__
|
|
2403
|
-
function
|
|
2527
|
+
function Pi(e) {
|
|
2404
2528
|
return new e({ type: "unknown" });
|
|
2405
2529
|
}
|
|
2406
2530
|
// @__NO_SIDE_EFFECTS__
|
|
2407
|
-
function
|
|
2531
|
+
function Fi(e, t) {
|
|
2408
2532
|
return new e({
|
|
2409
2533
|
type: "never",
|
|
2410
2534
|
...v(t)
|
|
2411
2535
|
});
|
|
2412
2536
|
}
|
|
2413
2537
|
// @__NO_SIDE_EFFECTS__
|
|
2414
|
-
function
|
|
2415
|
-
return new
|
|
2538
|
+
function Ii(e, t) {
|
|
2539
|
+
return new Zt({
|
|
2416
2540
|
check: "less_than",
|
|
2417
2541
|
...v(t),
|
|
2418
2542
|
value: e,
|
|
@@ -2420,8 +2544,8 @@ function pi(e, t) {
|
|
|
2420
2544
|
});
|
|
2421
2545
|
}
|
|
2422
2546
|
// @__NO_SIDE_EFFECTS__
|
|
2423
|
-
function
|
|
2424
|
-
return new
|
|
2547
|
+
function Li(e, t) {
|
|
2548
|
+
return new Zt({
|
|
2425
2549
|
check: "less_than",
|
|
2426
2550
|
...v(t),
|
|
2427
2551
|
value: e,
|
|
@@ -2429,8 +2553,8 @@ function mi(e, t) {
|
|
|
2429
2553
|
});
|
|
2430
2554
|
}
|
|
2431
2555
|
// @__NO_SIDE_EFFECTS__
|
|
2432
|
-
function
|
|
2433
|
-
return new
|
|
2556
|
+
function Ri(e, t) {
|
|
2557
|
+
return new Qt({
|
|
2434
2558
|
check: "greater_than",
|
|
2435
2559
|
...v(t),
|
|
2436
2560
|
value: e,
|
|
@@ -2438,8 +2562,8 @@ function hi(e, t) {
|
|
|
2438
2562
|
});
|
|
2439
2563
|
}
|
|
2440
2564
|
// @__NO_SIDE_EFFECTS__
|
|
2441
|
-
function
|
|
2442
|
-
return new
|
|
2565
|
+
function zi(e, t) {
|
|
2566
|
+
return new Qt({
|
|
2443
2567
|
check: "greater_than",
|
|
2444
2568
|
...v(t),
|
|
2445
2569
|
value: e,
|
|
@@ -2447,40 +2571,40 @@ function gi(e, t) {
|
|
|
2447
2571
|
});
|
|
2448
2572
|
}
|
|
2449
2573
|
// @__NO_SIDE_EFFECTS__
|
|
2450
|
-
function
|
|
2451
|
-
return new
|
|
2574
|
+
function Bi(e, t) {
|
|
2575
|
+
return new $t({
|
|
2452
2576
|
check: "multiple_of",
|
|
2453
2577
|
...v(t),
|
|
2454
2578
|
value: e
|
|
2455
2579
|
});
|
|
2456
2580
|
}
|
|
2457
2581
|
// @__NO_SIDE_EFFECTS__
|
|
2458
|
-
function
|
|
2459
|
-
return new
|
|
2582
|
+
function Vi(e, t) {
|
|
2583
|
+
return new tn({
|
|
2460
2584
|
check: "max_length",
|
|
2461
2585
|
...v(t),
|
|
2462
2586
|
maximum: e
|
|
2463
2587
|
});
|
|
2464
2588
|
}
|
|
2465
2589
|
// @__NO_SIDE_EFFECTS__
|
|
2466
|
-
function
|
|
2467
|
-
return new
|
|
2590
|
+
function Hi(e, t) {
|
|
2591
|
+
return new nn({
|
|
2468
2592
|
check: "min_length",
|
|
2469
2593
|
...v(t),
|
|
2470
2594
|
minimum: e
|
|
2471
2595
|
});
|
|
2472
2596
|
}
|
|
2473
2597
|
// @__NO_SIDE_EFFECTS__
|
|
2474
|
-
function
|
|
2475
|
-
return new
|
|
2598
|
+
function Ui(e, t) {
|
|
2599
|
+
return new rn({
|
|
2476
2600
|
check: "length_equals",
|
|
2477
2601
|
...v(t),
|
|
2478
2602
|
length: e
|
|
2479
2603
|
});
|
|
2480
2604
|
}
|
|
2481
2605
|
// @__NO_SIDE_EFFECTS__
|
|
2482
|
-
function
|
|
2483
|
-
return new
|
|
2606
|
+
function Wi(e, t) {
|
|
2607
|
+
return new on({
|
|
2484
2608
|
check: "string_format",
|
|
2485
2609
|
format: "regex",
|
|
2486
2610
|
...v(t),
|
|
@@ -2488,24 +2612,24 @@ function bi(e, t) {
|
|
|
2488
2612
|
});
|
|
2489
2613
|
}
|
|
2490
2614
|
// @__NO_SIDE_EFFECTS__
|
|
2491
|
-
function
|
|
2492
|
-
return new
|
|
2615
|
+
function Gi(e) {
|
|
2616
|
+
return new sn({
|
|
2493
2617
|
check: "string_format",
|
|
2494
2618
|
format: "lowercase",
|
|
2495
2619
|
...v(e)
|
|
2496
2620
|
});
|
|
2497
2621
|
}
|
|
2498
2622
|
// @__NO_SIDE_EFFECTS__
|
|
2499
|
-
function
|
|
2500
|
-
return new
|
|
2623
|
+
function Ki(e) {
|
|
2624
|
+
return new cn({
|
|
2501
2625
|
check: "string_format",
|
|
2502
2626
|
format: "uppercase",
|
|
2503
2627
|
...v(e)
|
|
2504
2628
|
});
|
|
2505
2629
|
}
|
|
2506
2630
|
// @__NO_SIDE_EFFECTS__
|
|
2507
|
-
function
|
|
2508
|
-
return new
|
|
2631
|
+
function qi(e, t) {
|
|
2632
|
+
return new ln({
|
|
2509
2633
|
check: "string_format",
|
|
2510
2634
|
format: "includes",
|
|
2511
2635
|
...v(t),
|
|
@@ -2513,8 +2637,8 @@ function Ci(e, t) {
|
|
|
2513
2637
|
});
|
|
2514
2638
|
}
|
|
2515
2639
|
// @__NO_SIDE_EFFECTS__
|
|
2516
|
-
function
|
|
2517
|
-
return new
|
|
2640
|
+
function Ji(e, t) {
|
|
2641
|
+
return new un({
|
|
2518
2642
|
check: "string_format",
|
|
2519
2643
|
format: "starts_with",
|
|
2520
2644
|
...v(t),
|
|
@@ -2522,8 +2646,8 @@ function wi(e, t) {
|
|
|
2522
2646
|
});
|
|
2523
2647
|
}
|
|
2524
2648
|
// @__NO_SIDE_EFFECTS__
|
|
2525
|
-
function
|
|
2526
|
-
return new
|
|
2649
|
+
function Yi(e, t) {
|
|
2650
|
+
return new dn({
|
|
2527
2651
|
check: "string_format",
|
|
2528
2652
|
format: "ends_with",
|
|
2529
2653
|
...v(t),
|
|
@@ -2531,34 +2655,34 @@ function Ti(e, t) {
|
|
|
2531
2655
|
});
|
|
2532
2656
|
}
|
|
2533
2657
|
// @__NO_SIDE_EFFECTS__
|
|
2534
|
-
function
|
|
2535
|
-
return new
|
|
2658
|
+
function H(e) {
|
|
2659
|
+
return new fn({
|
|
2536
2660
|
check: "overwrite",
|
|
2537
2661
|
tx: e
|
|
2538
2662
|
});
|
|
2539
2663
|
}
|
|
2540
2664
|
// @__NO_SIDE_EFFECTS__
|
|
2541
|
-
function
|
|
2542
|
-
return /* @__PURE__ */
|
|
2665
|
+
function Xi(e) {
|
|
2666
|
+
return /* @__PURE__ */ H((t) => t.normalize(e));
|
|
2543
2667
|
}
|
|
2544
2668
|
// @__NO_SIDE_EFFECTS__
|
|
2545
|
-
function
|
|
2546
|
-
return /* @__PURE__ */
|
|
2669
|
+
function Zi() {
|
|
2670
|
+
return /* @__PURE__ */ H((e) => e.trim());
|
|
2547
2671
|
}
|
|
2548
2672
|
// @__NO_SIDE_EFFECTS__
|
|
2549
|
-
function
|
|
2550
|
-
return /* @__PURE__ */
|
|
2673
|
+
function Qi() {
|
|
2674
|
+
return /* @__PURE__ */ H((e) => e.toLowerCase());
|
|
2551
2675
|
}
|
|
2552
2676
|
// @__NO_SIDE_EFFECTS__
|
|
2553
|
-
function
|
|
2554
|
-
return /* @__PURE__ */
|
|
2677
|
+
function $i() {
|
|
2678
|
+
return /* @__PURE__ */ H((e) => e.toUpperCase());
|
|
2555
2679
|
}
|
|
2556
2680
|
// @__NO_SIDE_EFFECTS__
|
|
2557
|
-
function
|
|
2558
|
-
return /* @__PURE__ */
|
|
2681
|
+
function ea() {
|
|
2682
|
+
return /* @__PURE__ */ H((e) => te(e));
|
|
2559
2683
|
}
|
|
2560
2684
|
// @__NO_SIDE_EFFECTS__
|
|
2561
|
-
function
|
|
2685
|
+
function ta(e, t, n) {
|
|
2562
2686
|
return new e({
|
|
2563
2687
|
type: "array",
|
|
2564
2688
|
element: t,
|
|
@@ -2566,7 +2690,7 @@ function ji(e, t, n) {
|
|
|
2566
2690
|
});
|
|
2567
2691
|
}
|
|
2568
2692
|
// @__NO_SIDE_EFFECTS__
|
|
2569
|
-
function
|
|
2693
|
+
function na(e, t, n) {
|
|
2570
2694
|
return new e({
|
|
2571
2695
|
type: "custom",
|
|
2572
2696
|
check: "custom",
|
|
@@ -2575,31 +2699,31 @@ function Mi(e, t, n) {
|
|
|
2575
2699
|
});
|
|
2576
2700
|
}
|
|
2577
2701
|
// @__NO_SIDE_EFFECTS__
|
|
2578
|
-
function
|
|
2579
|
-
let n = /* @__PURE__ */
|
|
2580
|
-
if (typeof e == "string") t.issues.push(
|
|
2702
|
+
function ra(e, t) {
|
|
2703
|
+
let n = /* @__PURE__ */ ia((t) => (t.addIssue = (e) => {
|
|
2704
|
+
if (typeof e == "string") t.issues.push(C(e, t.value, n._zod.def));
|
|
2581
2705
|
else {
|
|
2582
2706
|
let r = e;
|
|
2583
|
-
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(
|
|
2707
|
+
r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(C(r));
|
|
2584
2708
|
}
|
|
2585
2709
|
}, e(t.value, t)), t);
|
|
2586
2710
|
return n;
|
|
2587
2711
|
}
|
|
2588
2712
|
// @__NO_SIDE_EFFECTS__
|
|
2589
|
-
function
|
|
2590
|
-
let n = new
|
|
2713
|
+
function ia(e, t) {
|
|
2714
|
+
let n = new j({
|
|
2591
2715
|
check: "custom",
|
|
2592
2716
|
...v(t)
|
|
2593
2717
|
});
|
|
2594
2718
|
return n._zod.check = e, n;
|
|
2595
2719
|
}
|
|
2596
2720
|
//#endregion
|
|
2597
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
2598
|
-
function
|
|
2721
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
2722
|
+
function U(e, ...t) {
|
|
2599
2723
|
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && c(e, t, n[t]);
|
|
2600
2724
|
return e;
|
|
2601
2725
|
}
|
|
2602
|
-
function
|
|
2726
|
+
function aa(e) {
|
|
2603
2727
|
let t = e?.target ?? "draft-2020-12";
|
|
2604
2728
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2605
2729
|
processors: e.processors ?? {},
|
|
@@ -2619,7 +2743,7 @@ function Fi(e) {
|
|
|
2619
2743
|
external: e?.external ?? void 0
|
|
2620
2744
|
};
|
|
2621
2745
|
}
|
|
2622
|
-
function
|
|
2746
|
+
function W(e, t, n, r, i) {
|
|
2623
2747
|
let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
|
|
2624
2748
|
zodSchema: e,
|
|
2625
2749
|
path: r.path,
|
|
@@ -2629,7 +2753,7 @@ function G(e, t, n, r, i) {
|
|
|
2629
2753
|
if (a === void 0 || a === "throw") throw Error(i);
|
|
2630
2754
|
return Object.assign(n, a), !0;
|
|
2631
2755
|
}
|
|
2632
|
-
function
|
|
2756
|
+
function G(e, t, n = {
|
|
2633
2757
|
path: [],
|
|
2634
2758
|
schemaPath: []
|
|
2635
2759
|
}) {
|
|
@@ -2658,15 +2782,15 @@ function K(e, t, n = {
|
|
|
2658
2782
|
a(e, t, n, r);
|
|
2659
2783
|
}
|
|
2660
2784
|
let a = e._zod.parent;
|
|
2661
|
-
a && (o.ref ||= a,
|
|
2785
|
+
a && (o.ref ||= a, G(a, t, r), t.seen.get(a).isParent = !0);
|
|
2662
2786
|
}
|
|
2663
2787
|
let c = t.metadataRegistry.get(e);
|
|
2664
|
-
return c &&
|
|
2788
|
+
return c && U(o.schema, c), t.io === "input" && K(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
2665
2789
|
}
|
|
2666
|
-
function
|
|
2790
|
+
function oa(e) {
|
|
2667
2791
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
2668
2792
|
}
|
|
2669
|
-
function
|
|
2793
|
+
function sa(e, t) {
|
|
2670
2794
|
let n = e.seen.get(t);
|
|
2671
2795
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2672
2796
|
if (e.external && e.sharedDefsExtractedFor === e.external) return;
|
|
@@ -2687,7 +2811,7 @@ function Li(e, t) {
|
|
|
2687
2811
|
let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
|
|
2688
2812
|
return t[1].defId = a, {
|
|
2689
2813
|
defId: a,
|
|
2690
|
-
ref: `${i("__shared")}#/${r}/${
|
|
2814
|
+
ref: `${i("__shared")}#/${r}/${oa(a)}`
|
|
2691
2815
|
};
|
|
2692
2816
|
}
|
|
2693
2817
|
let i = `#/${r}/`;
|
|
@@ -2695,7 +2819,7 @@ function Li(e, t) {
|
|
|
2695
2819
|
let a = t[1].schema.id ?? `__schema${e.counter++}`;
|
|
2696
2820
|
return {
|
|
2697
2821
|
defId: a,
|
|
2698
|
-
ref: i +
|
|
2822
|
+
ref: i + oa(a)
|
|
2699
2823
|
};
|
|
2700
2824
|
}, a = (e) => {
|
|
2701
2825
|
if (e[1].schema.$ref) return;
|
|
@@ -2713,39 +2837,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2713
2837
|
}
|
|
2714
2838
|
for (let n of e.seen.entries()) {
|
|
2715
2839
|
let r = n[1];
|
|
2716
|
-
if (t === n[0])
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
continue;
|
|
2840
|
+
if (t === n[0]) a(n);
|
|
2841
|
+
else {
|
|
2842
|
+
if (e.external) {
|
|
2843
|
+
let r = e.external.registry.get(n[0])?.id;
|
|
2844
|
+
if (t !== n[0] && r) {
|
|
2845
|
+
a(n);
|
|
2846
|
+
continue;
|
|
2847
|
+
}
|
|
2725
2848
|
}
|
|
2726
|
-
|
|
2727
|
-
if (e.metadataRegistry.get(n[0])?.id) {
|
|
2728
|
-
a(n);
|
|
2729
|
-
continue;
|
|
2730
|
-
}
|
|
2731
|
-
if (r.cycle) {
|
|
2732
|
-
a(n);
|
|
2733
|
-
continue;
|
|
2734
|
-
}
|
|
2735
|
-
if (r.count > 1 && e.reused === "ref") {
|
|
2736
|
-
a(n);
|
|
2737
|
-
continue;
|
|
2849
|
+
(e.metadataRegistry.get(n[0])?.id || r.cycle || r.count > 1 && e.reused === "ref") && a(n);
|
|
2738
2850
|
}
|
|
2739
2851
|
}
|
|
2740
2852
|
e.external && (e.sharedDefsExtractedFor = e.external);
|
|
2741
2853
|
}
|
|
2742
|
-
function
|
|
2854
|
+
function ca(e) {
|
|
2743
2855
|
let t = e.anyOf;
|
|
2744
2856
|
if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
|
|
2745
2857
|
let n = [];
|
|
2746
2858
|
for (let e of t) {
|
|
2747
2859
|
if (!e || typeof e != "object") return;
|
|
2748
|
-
|
|
2860
|
+
ca(e);
|
|
2749
2861
|
let t = Object.keys(e);
|
|
2750
2862
|
if (t.length !== 1 || t[0] !== "type") return;
|
|
2751
2863
|
let r = e.type;
|
|
@@ -2756,21 +2868,21 @@ function Ri(e) {
|
|
|
2756
2868
|
}
|
|
2757
2869
|
delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
|
|
2758
2870
|
}
|
|
2759
|
-
var
|
|
2871
|
+
var la = /* @__PURE__ */ new Set([
|
|
2760
2872
|
"type",
|
|
2761
2873
|
"properties",
|
|
2762
2874
|
"required",
|
|
2763
2875
|
"additionalProperties"
|
|
2764
|
-
]),
|
|
2765
|
-
function
|
|
2876
|
+
]), ua = ["oneOf", "anyOf"];
|
|
2877
|
+
function da(e) {
|
|
2766
2878
|
let t = e.additionalProperties;
|
|
2767
2879
|
return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
|
|
2768
2880
|
}
|
|
2769
|
-
function
|
|
2881
|
+
function fa(e) {
|
|
2770
2882
|
let t = [];
|
|
2771
2883
|
for (let n of e) {
|
|
2772
2884
|
if (typeof n != "object" || n.type !== "object") return null;
|
|
2773
|
-
for (let e in n) if (!
|
|
2885
|
+
for (let e in n) if (!la.has(e)) return null;
|
|
2774
2886
|
t.push(n);
|
|
2775
2887
|
}
|
|
2776
2888
|
let n = {}, r = /* @__PURE__ */ new Set();
|
|
@@ -2779,10 +2891,10 @@ function Hi(e) {
|
|
|
2779
2891
|
if (Object.prototype.hasOwnProperty.call(n, r)) continue;
|
|
2780
2892
|
let e = [];
|
|
2781
2893
|
for (let n of t) {
|
|
2782
|
-
let t = n.properties?.[r] ??
|
|
2894
|
+
let t = n.properties?.[r] ?? da(n);
|
|
2783
2895
|
t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
|
|
2784
2896
|
}
|
|
2785
|
-
c(n, r, e.length === 1 ? e[0] :
|
|
2897
|
+
c(n, r, e.length === 1 ? e[0] : fa(e) ?? { allOf: e });
|
|
2786
2898
|
}
|
|
2787
2899
|
for (let t of e.required ?? []) r.add(t);
|
|
2788
2900
|
}
|
|
@@ -2794,29 +2906,29 @@ function Hi(e) {
|
|
|
2794
2906
|
else {
|
|
2795
2907
|
let e = [];
|
|
2796
2908
|
for (let n of t) {
|
|
2797
|
-
let t =
|
|
2909
|
+
let t = da(n);
|
|
2798
2910
|
t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
|
|
2799
2911
|
}
|
|
2800
2912
|
e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
|
|
2801
2913
|
}
|
|
2802
2914
|
return i;
|
|
2803
2915
|
}
|
|
2804
|
-
function
|
|
2916
|
+
function pa(e) {
|
|
2805
2917
|
let t = e.allOf;
|
|
2806
2918
|
if (!Array.isArray(t) || t.length < 2) return;
|
|
2807
|
-
for (let t of
|
|
2808
|
-
let n = t.filter((e) =>
|
|
2809
|
-
if (!n.length) r =
|
|
2919
|
+
for (let t of la) if (t in e) return;
|
|
2920
|
+
let n = t.filter((e) => ua.some((t) => Array.isArray(e[t]))), r = null;
|
|
2921
|
+
if (!n.length) r = fa(t);
|
|
2810
2922
|
else {
|
|
2811
|
-
let e = n[0], i =
|
|
2923
|
+
let e = n[0], i = ua.find((t) => Array.isArray(e[t]));
|
|
2812
2924
|
if (Object.keys(e).length !== 1) return;
|
|
2813
|
-
let a = t.filter((t) => t !== e), o = e[i].map((e) =>
|
|
2925
|
+
let a = t.filter((t) => t !== e), o = e[i].map((e) => fa([...a, e]));
|
|
2814
2926
|
if (o.some((e) => !e)) return;
|
|
2815
2927
|
r = { [i]: o };
|
|
2816
2928
|
}
|
|
2817
|
-
r && (delete e.allOf,
|
|
2929
|
+
r && (delete e.allOf, U(e, r));
|
|
2818
2930
|
}
|
|
2819
|
-
function
|
|
2931
|
+
function ma(e, t) {
|
|
2820
2932
|
let n = e.seen.get(t);
|
|
2821
2933
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2822
2934
|
let r = (t) => {
|
|
@@ -2826,7 +2938,7 @@ function Wi(e, t) {
|
|
|
2826
2938
|
if (n.ref = null, o) {
|
|
2827
2939
|
r(o);
|
|
2828
2940
|
let n = e.seen.get(o), s = n.schema;
|
|
2829
|
-
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) :
|
|
2941
|
+
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : U(i, s), U(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
|
|
2830
2942
|
if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
|
|
2831
2943
|
}
|
|
2832
2944
|
let s = t._zod.parent;
|
|
@@ -2843,7 +2955,7 @@ function Wi(e, t) {
|
|
|
2843
2955
|
};
|
|
2844
2956
|
if (!e.external || e.sharedEmitDoneFor !== e.external) {
|
|
2845
2957
|
for (let t of [...e.seen.entries()].reverse()) r(t[0]);
|
|
2846
|
-
if (e.target !== "openapi-3.0") for (let t of e.seen.entries())
|
|
2958
|
+
if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ca(t[1].def ?? t[1].schema);
|
|
2847
2959
|
for (let t of e.deferred) t();
|
|
2848
2960
|
if (e.intersections.length) {
|
|
2849
2961
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -2853,7 +2965,7 @@ function Wi(e, t) {
|
|
|
2853
2965
|
let r = t.get(n);
|
|
2854
2966
|
r ? r.push(e) : t.set(n, [e]);
|
|
2855
2967
|
}
|
|
2856
|
-
for (let n of e.intersections) for (let e of t.get(n) ?? [])
|
|
2968
|
+
for (let n of e.intersections) for (let e of t.get(n) ?? []) pa(e);
|
|
2857
2969
|
}
|
|
2858
2970
|
}
|
|
2859
2971
|
let i = {};
|
|
@@ -2862,7 +2974,7 @@ function Wi(e, t) {
|
|
|
2862
2974
|
if (!n) throw Error("Schema is missing an `id` property");
|
|
2863
2975
|
i.$id = e.external.uri(n);
|
|
2864
2976
|
}
|
|
2865
|
-
|
|
2977
|
+
U(i, n.defId ? n.schema : n.def ?? n.schema);
|
|
2866
2978
|
let a = e.metadataRegistry.get(t)?.id;
|
|
2867
2979
|
a !== void 0 && i.id === a && delete i.id;
|
|
2868
2980
|
let o = e.external?.defs ?? {};
|
|
@@ -2877,8 +2989,8 @@ function Wi(e, t) {
|
|
|
2877
2989
|
value: {
|
|
2878
2990
|
...t["~standard"],
|
|
2879
2991
|
jsonSchema: {
|
|
2880
|
-
input:
|
|
2881
|
-
output:
|
|
2992
|
+
input: ga(t, "input", e.processors),
|
|
2993
|
+
output: ga(t, "output", e.processors)
|
|
2882
2994
|
}
|
|
2883
2995
|
},
|
|
2884
2996
|
enumerable: !1,
|
|
@@ -2888,100 +3000,144 @@ function Wi(e, t) {
|
|
|
2888
3000
|
throw Error("Error converting schema to JSON.");
|
|
2889
3001
|
}
|
|
2890
3002
|
}
|
|
2891
|
-
function
|
|
3003
|
+
function K(e, t) {
|
|
2892
3004
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
2893
3005
|
if (n.seen.has(e)) return !1;
|
|
2894
3006
|
n.seen.add(e);
|
|
2895
3007
|
let r = e._zod.def;
|
|
2896
3008
|
if (r.type === "transform") return !0;
|
|
2897
|
-
if (r.type === "array") return
|
|
2898
|
-
if (r.type === "set") return
|
|
2899
|
-
if (r.type === "lazy") return
|
|
2900
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return
|
|
2901
|
-
if (r.type === "intersection") return
|
|
2902
|
-
if (r.type === "record" || r.type === "map") return
|
|
2903
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3009
|
+
if (r.type === "array") return K(r.element, n);
|
|
3010
|
+
if (r.type === "set") return K(r.valueType, n);
|
|
3011
|
+
if (r.type === "lazy") return K(r.getter(), n);
|
|
3012
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return K(r.innerType, n);
|
|
3013
|
+
if (r.type === "intersection") return K(r.left, n) || K(r.right, n);
|
|
3014
|
+
if (r.type === "record" || r.type === "map") return K(r.keyType, n) || K(r.valueType, n);
|
|
3015
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : K(r.in, n) || K(r.out, n);
|
|
2904
3016
|
if (r.type === "object") {
|
|
2905
|
-
for (let e in r.shape) if (
|
|
3017
|
+
for (let e in r.shape) if (K(r.shape[e], n)) return !0;
|
|
2906
3018
|
return !1;
|
|
2907
3019
|
}
|
|
2908
3020
|
if (r.type === "union") {
|
|
2909
|
-
for (let e of r.options) if (
|
|
3021
|
+
for (let e of r.options) if (K(e, n)) return !0;
|
|
2910
3022
|
return !1;
|
|
2911
3023
|
}
|
|
2912
3024
|
if (r.type === "tuple") {
|
|
2913
|
-
for (let e of r.items) if (
|
|
2914
|
-
return !!(r.rest &&
|
|
3025
|
+
for (let e of r.items) if (K(e, n)) return !0;
|
|
3026
|
+
return !!(r.rest && K(r.rest, n));
|
|
2915
3027
|
}
|
|
2916
3028
|
return !1;
|
|
2917
3029
|
}
|
|
2918
|
-
var
|
|
2919
|
-
let r =
|
|
3030
|
+
var ha = (e, t = {}) => (n) => {
|
|
3031
|
+
let r = aa({
|
|
2920
3032
|
...n,
|
|
2921
3033
|
processors: t
|
|
2922
3034
|
});
|
|
2923
|
-
return
|
|
2924
|
-
},
|
|
2925
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
3035
|
+
return G(e, r), sa(r, e), ma(r, e);
|
|
3036
|
+
}, ga = (e, t, n = {}) => (r) => {
|
|
3037
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = aa({
|
|
2926
3038
|
...i ?? {},
|
|
2927
3039
|
target: a,
|
|
2928
3040
|
io: t,
|
|
2929
3041
|
processors: n
|
|
2930
3042
|
});
|
|
2931
|
-
return
|
|
2932
|
-
},
|
|
3043
|
+
return G(e, o), sa(o, e), ma(o, e);
|
|
3044
|
+
}, q = (e, t, n) => {
|
|
3045
|
+
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
3046
|
+
}, J = (e, t, n) => {
|
|
3047
|
+
(e[t] === void 0 || n < e[t]) && (e[t] = n);
|
|
3048
|
+
}, _a = (e, t) => {
|
|
3049
|
+
q(e, "minimum", t), J(e, "maximum", t);
|
|
3050
|
+
}, va = (e, t) => {
|
|
3051
|
+
e.multipleOf ??= [], e.multipleOf.includes(t) || e.multipleOf.push(t);
|
|
3052
|
+
}, ya = (e, t) => {
|
|
3053
|
+
e.patterns ??= /* @__PURE__ */ new Set(), e.patterns.add(t);
|
|
3054
|
+
}, ba = (e, t) => {
|
|
3055
|
+
e.mime = e.mime ? e.mime.filter((e) => t.includes(e)) : [...t];
|
|
3056
|
+
}, xa = (e, t) => {
|
|
3057
|
+
e.format = t, t.includes("int") && (e.isInt = !0);
|
|
3058
|
+
}, Sa = (e, t) => q(e, "minimum", t.minimum), Ca = (e, t) => J(e, "maximum", t.maximum), wa = (e) => (t, n) => {
|
|
3059
|
+
xa(t, n.format);
|
|
3060
|
+
let [r, i] = e[n.format];
|
|
3061
|
+
q(t, "minimum", r), J(t, "maximum", i);
|
|
3062
|
+
}, Ta = {
|
|
3063
|
+
greater_than: (e, t) => q(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
|
|
3064
|
+
less_than: (e, t) => J(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
|
|
3065
|
+
multiple_of: (e, t) => va(e, t.value),
|
|
3066
|
+
number_format: wa(ue),
|
|
3067
|
+
bigint_format: wa(de),
|
|
3068
|
+
min_length: Sa,
|
|
3069
|
+
max_length: Ca,
|
|
3070
|
+
length_equals: (e, t) => _a(e, t.length),
|
|
3071
|
+
min_size: Sa,
|
|
3072
|
+
max_size: Ca,
|
|
3073
|
+
size_equals: (e, t) => _a(e, t.size),
|
|
3074
|
+
string_format: (e, t) => {
|
|
3075
|
+
xa(e, t.format), t.pattern && ya(e, t.pattern), (t.format === "base64" || t.format === "base64url") && (e.contentEncoding = t.format), (t.local || t.precision === -1) && (e.laxFormat = !0);
|
|
3076
|
+
},
|
|
3077
|
+
mime_type: (e, t) => ba(e, t.mime)
|
|
3078
|
+
};
|
|
3079
|
+
function Y(e) {
|
|
3080
|
+
let t = {}, n = e._zod.def, r = e._zod.traits.has("$ZodCheck") ? [e, ...n.checks ?? []] : n.checks ?? [];
|
|
3081
|
+
for (let e of r) Ta[e._zod.def.check]?.(t, e._zod.def);
|
|
3082
|
+
let i = e._zod.bag;
|
|
3083
|
+
i.minimum !== void 0 && q(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && q(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && J(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && J(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && va(t, i.multipleOf), i.format !== void 0 && (t.format ??= i.format, i.format.includes("int") && (t.isInt = !0)), i.mime && ba(t, i.mime);
|
|
3084
|
+
for (let e of i.patterns ?? []) ya(t, e);
|
|
3085
|
+
return t;
|
|
3086
|
+
}
|
|
3087
|
+
var Ea = {
|
|
2933
3088
|
guid: "uuid",
|
|
2934
3089
|
url: "uri",
|
|
2935
3090
|
datetime: "date-time",
|
|
2936
3091
|
json_string: "json-string",
|
|
2937
3092
|
regex: ""
|
|
2938
|
-
},
|
|
3093
|
+
}, Da = /* @__PURE__ */ new Map([[Yn, Pt], [Zn, Ft]]), Oa = (e) => Da.get(e) ?? e, ka = (e, t, n, r) => {
|
|
2939
3094
|
let i = n;
|
|
2940
3095
|
i.type = "string";
|
|
2941
|
-
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e
|
|
2942
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
2943
|
-
let e = [...c];
|
|
3096
|
+
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = Y(e);
|
|
3097
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Ea[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
3098
|
+
let e = [...c].map(Oa);
|
|
2944
3099
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
2945
3100
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
2946
3101
|
pattern: e.source
|
|
2947
3102
|
}))]);
|
|
2948
3103
|
}
|
|
2949
|
-
},
|
|
2950
|
-
let i = n, { minimum: a, maximum: o,
|
|
2951
|
-
i.type =
|
|
2952
|
-
let d = typeof
|
|
2953
|
-
d ? p ? (i.minimum =
|
|
2954
|
-
|
|
3104
|
+
}, Aa = (e, t, n, r) => {
|
|
3105
|
+
let i = n, { minimum: a, maximum: o, multipleOf: s, exclusiveMaximum: c, exclusiveMinimum: l, isInt: u } = Y(e);
|
|
3106
|
+
i.type = u ? "integer" : "number";
|
|
3107
|
+
let d = typeof l == "number" && l >= (a ?? -Infinity), f = typeof c == "number" && c <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
3108
|
+
if (d ? p ? (i.minimum = l, i.exclusiveMinimum = !0) : i.exclusiveMinimum = l : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = c, i.exclusiveMaximum = !0) : i.exclusiveMaximum = c : typeof o == "number" && (i.maximum = o), s) {
|
|
3109
|
+
let n = /* @__PURE__ */ new Set();
|
|
3110
|
+
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) : W(e, t, i, r, `A multipleOf divisor of ${a} cannot be represented in JSON Schema`);
|
|
3111
|
+
let [a, ...o] = n;
|
|
3112
|
+
a !== void 0 && (i.multipleOf = a), o.length && (i.allOf = [...i.allOf ?? [], ...o.map((e) => ({ multipleOf: e }))]);
|
|
3113
|
+
}
|
|
3114
|
+
}, ja = (e, t, n, r) => {
|
|
2955
3115
|
t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
|
|
2956
|
-
},
|
|
3116
|
+
}, Ma = (e, t, n, r) => {
|
|
2957
3117
|
n.not = {};
|
|
2958
|
-
},
|
|
2959
|
-
let a =
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
},
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
G(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
2969
|
-
}, ea = (e, t, n, r) => {
|
|
2970
|
-
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
2971
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = K(a.element, t, {
|
|
3118
|
+
}, Na = (t, n, r, i) => {
|
|
3119
|
+
let a = t._zod.def, o = e(a.entries);
|
|
3120
|
+
o.length === 0 ? r.not = {} : (o.every((e) => typeof e == "number") && (r.type = "number"), o.every((e) => typeof e == "string") && (r.type = "string"), r.enum = o);
|
|
3121
|
+
}, Pa = (e, t, n, r) => {
|
|
3122
|
+
W(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3123
|
+
}, Fa = (e, t, n, r) => {
|
|
3124
|
+
W(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3125
|
+
}, Ia = (e, t, n, r) => {
|
|
3126
|
+
let i = n, a = e._zod.def, { minimum: o, maximum: s } = Y(e);
|
|
3127
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = G(a.element, t, {
|
|
2972
3128
|
...r,
|
|
2973
3129
|
path: [...r.path, "items"]
|
|
2974
3130
|
});
|
|
2975
3131
|
};
|
|
2976
|
-
function
|
|
3132
|
+
function La(e) {
|
|
2977
3133
|
let t = e._zod.def;
|
|
2978
|
-
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ?
|
|
3134
|
+
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? La(t.out) : t.type === "catch" ? La(t.innerType) : e._zod.optin;
|
|
2979
3135
|
}
|
|
2980
|
-
var
|
|
3136
|
+
var Ra = (e, t, n, r) => {
|
|
2981
3137
|
let i = n, a = e._zod.def, o = a.shape;
|
|
2982
|
-
if (Object.getOwnPropertySymbols(o).length &&
|
|
3138
|
+
if (Object.getOwnPropertySymbols(o).length && W(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
2983
3139
|
i.type = "object", i.properties = {};
|
|
2984
|
-
for (let e in o) c(i.properties, e,
|
|
3140
|
+
for (let e in o) c(i.properties, e, G(o[e], t, {
|
|
2985
3141
|
...r,
|
|
2986
3142
|
path: [
|
|
2987
3143
|
...r.path,
|
|
@@ -2989,16 +3145,17 @@ var na = (e, t, n, r) => {
|
|
|
2989
3145
|
e
|
|
2990
3146
|
]
|
|
2991
3147
|
}));
|
|
2992
|
-
let s =
|
|
3148
|
+
let s = [];
|
|
3149
|
+
for (let e of Object.keys(o)) {
|
|
2993
3150
|
let n = a.shape[e];
|
|
2994
|
-
|
|
2995
|
-
}
|
|
2996
|
-
|
|
3151
|
+
(t.io === "input" ? La(n) === void 0 : n._zod.optout === void 0) && s.push(e);
|
|
3152
|
+
}
|
|
3153
|
+
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = G(a.catchall, t, {
|
|
2997
3154
|
...r,
|
|
2998
3155
|
path: [...r.path, "additionalProperties"]
|
|
2999
3156
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
3000
|
-
},
|
|
3001
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
3157
|
+
}, za = (e, t, n, r) => {
|
|
3158
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => G(e, t, {
|
|
3002
3159
|
...r,
|
|
3003
3160
|
path: [
|
|
3004
3161
|
...r.path,
|
|
@@ -3007,15 +3164,15 @@ var na = (e, t, n, r) => {
|
|
|
3007
3164
|
]
|
|
3008
3165
|
}));
|
|
3009
3166
|
a ? n.oneOf = o : n.anyOf = o;
|
|
3010
|
-
},
|
|
3011
|
-
let i = e._zod.def, a =
|
|
3167
|
+
}, Ba = (e, t, n, r) => {
|
|
3168
|
+
let i = e._zod.def, a = G(i.left, t, {
|
|
3012
3169
|
...r,
|
|
3013
3170
|
path: [
|
|
3014
3171
|
...r.path,
|
|
3015
3172
|
"allOf",
|
|
3016
3173
|
0
|
|
3017
3174
|
]
|
|
3018
|
-
}), o =
|
|
3175
|
+
}), o = G(i.right, t, {
|
|
3019
3176
|
...r,
|
|
3020
3177
|
path: [
|
|
3021
3178
|
...r.path,
|
|
@@ -3024,63 +3181,63 @@ var na = (e, t, n, r) => {
|
|
|
3024
3181
|
]
|
|
3025
3182
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
3026
3183
|
n.allOf = c, t.intersections.push(c);
|
|
3027
|
-
},
|
|
3028
|
-
let i = e._zod.def, a =
|
|
3184
|
+
}, Va = (e, t, n, r) => {
|
|
3185
|
+
let i = e._zod.def, a = G(i.innerType, t, r), o = t.seen.get(e);
|
|
3029
3186
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3030
|
-
},
|
|
3187
|
+
}, Ha = (e, t, n, r) => {
|
|
3031
3188
|
let i = e._zod.def;
|
|
3032
|
-
|
|
3189
|
+
G(i.innerType, t, r);
|
|
3033
3190
|
let a = t.seen.get(e);
|
|
3034
3191
|
a.ref = i.innerType;
|
|
3035
|
-
},
|
|
3036
|
-
function
|
|
3192
|
+
}, Ua = Symbol();
|
|
3193
|
+
function Wa(e, t, n, r, i) {
|
|
3037
3194
|
let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
|
|
3038
|
-
return a ? (
|
|
3195
|
+
return a ? (W(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), Ua) : JSON.parse(o);
|
|
3039
3196
|
}
|
|
3040
|
-
var
|
|
3197
|
+
var Ga = (e, t, n, r) => {
|
|
3041
3198
|
let i = e._zod.def;
|
|
3042
|
-
|
|
3199
|
+
G(i.innerType, t, r);
|
|
3043
3200
|
let a = t.seen.get(e);
|
|
3044
3201
|
a.ref = i.innerType;
|
|
3045
|
-
let o =
|
|
3046
|
-
o !==
|
|
3047
|
-
},
|
|
3202
|
+
let o = Wa(i.defaultValue, e, t, n, r);
|
|
3203
|
+
o !== Ua && (n.default = o);
|
|
3204
|
+
}, Ka = (e, t, n, r) => {
|
|
3048
3205
|
let i = e._zod.def;
|
|
3049
|
-
|
|
3206
|
+
G(i.innerType, t, r);
|
|
3050
3207
|
let a = t.seen.get(e);
|
|
3051
3208
|
if (a.ref = i.innerType, t.io !== "input") return;
|
|
3052
|
-
let o =
|
|
3053
|
-
o !==
|
|
3054
|
-
},
|
|
3209
|
+
let o = Wa(i.defaultValue, e, t, n, r);
|
|
3210
|
+
o !== Ua && (n._prefault = o);
|
|
3211
|
+
}, qa = (e, t, n, r) => {
|
|
3055
3212
|
let i = e._zod.def;
|
|
3056
|
-
|
|
3213
|
+
G(i.innerType, t, r);
|
|
3057
3214
|
let a = t.seen.get(e);
|
|
3058
3215
|
a.ref = i.innerType;
|
|
3059
3216
|
let o;
|
|
3060
3217
|
try {
|
|
3061
3218
|
o = i.catchValue(void 0);
|
|
3062
3219
|
} catch {
|
|
3063
|
-
|
|
3220
|
+
W(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
|
|
3064
3221
|
return;
|
|
3065
3222
|
}
|
|
3066
3223
|
n.default = o;
|
|
3067
|
-
},
|
|
3224
|
+
}, Ja = (e, t, n, r) => {
|
|
3068
3225
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
3069
|
-
|
|
3226
|
+
G(o, t, r);
|
|
3070
3227
|
let s = t.seen.get(e);
|
|
3071
3228
|
s.ref = o;
|
|
3072
|
-
},
|
|
3229
|
+
}, Ya = (e, t, n, r) => {
|
|
3073
3230
|
let i = e._zod.def;
|
|
3074
|
-
|
|
3231
|
+
G(i.innerType, t, r);
|
|
3075
3232
|
let a = t.seen.get(e);
|
|
3076
3233
|
a.ref = i.innerType, n.readOnly = !0;
|
|
3077
|
-
},
|
|
3234
|
+
}, Xa = (e, t, n, r) => {
|
|
3078
3235
|
let i = e._zod.def;
|
|
3079
|
-
|
|
3236
|
+
G(i.innerType, t, r);
|
|
3080
3237
|
let a = t.seen.get(e);
|
|
3081
3238
|
a.ref = i.innerType;
|
|
3082
|
-
},
|
|
3083
|
-
function
|
|
3239
|
+
}, Za = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
3240
|
+
function Qa(e, t, n) {
|
|
3084
3241
|
Object.defineProperty(e, t, {
|
|
3085
3242
|
configurable: !0,
|
|
3086
3243
|
enumerable: !1,
|
|
@@ -3101,33 +3258,33 @@ function Y(e, t, n) {
|
|
|
3101
3258
|
}
|
|
3102
3259
|
});
|
|
3103
3260
|
}
|
|
3104
|
-
var X = /*@__PURE__*/
|
|
3105
|
-
|
|
3106
|
-
let
|
|
3107
|
-
|
|
3108
|
-
e.issues.push(t), e.message = JSON.stringify(e.issues,
|
|
3109
|
-
}),
|
|
3110
|
-
e.issues.push(...t), e.message = JSON.stringify(e.issues,
|
|
3111
|
-
}), Object.defineProperty(
|
|
3261
|
+
var X = /*@__PURE__*/ D("ZodError", (e, t) => {
|
|
3262
|
+
Je.init(e, t), e.name = "ZodError";
|
|
3263
|
+
let r = Object.getPrototypeOf(e);
|
|
3264
|
+
Za.has(r) || (Za.add(r), Qa(r, "format", (e) => (t) => Ze(e, t)), Qa(r, "flatten", (e) => (t) => Xe(e, t)), Qa(r, "addIssue", (e) => (t) => {
|
|
3265
|
+
e.issues.push(t), e.message = JSON.stringify(e.issues, n, 2);
|
|
3266
|
+
}), Qa(r, "addIssues", (e) => (t) => {
|
|
3267
|
+
e.issues.push(...t), e.message = JSON.stringify(e.issues, n, 2);
|
|
3268
|
+
}), Object.defineProperty(r, "isEmpty", {
|
|
3112
3269
|
configurable: !0,
|
|
3113
3270
|
enumerable: !1,
|
|
3114
3271
|
get() {
|
|
3115
3272
|
return this.issues.length === 0;
|
|
3116
3273
|
}
|
|
3117
3274
|
}));
|
|
3118
|
-
}, void 0, { Parent: Error }),
|
|
3275
|
+
}, void 0, { Parent: Error }), $a = /* @__PURE__ */ $e(X), eo = /* @__PURE__ */ et(X), to = /* @__PURE__ */ tt(X), no = /* @__PURE__ */ rt(X), ro = /* @__PURE__ */ lt(X), io = /* @__PURE__ */ ut(X), ao = /* @__PURE__ */ dt(X), oo = /* @__PURE__ */ ft(X), so = /* @__PURE__ */ pt(X), co = /* @__PURE__ */ mt(X), lo = /* @__PURE__ */ ht(X), uo = /* @__PURE__ */ gt(X);
|
|
3119
3276
|
//#endregion
|
|
3120
|
-
//#region ../../node_modules/.pnpm/zod@4.
|
|
3121
|
-
function
|
|
3122
|
-
|
|
3277
|
+
//#region ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
3278
|
+
function fo() {
|
|
3279
|
+
k.localeError || A($r());
|
|
3123
3280
|
}
|
|
3124
|
-
function
|
|
3125
|
-
|
|
3281
|
+
function po() {
|
|
3282
|
+
k.memoizer || A({ memoizer: Xr() });
|
|
3126
3283
|
}
|
|
3127
|
-
var Z = /*@__PURE__*/
|
|
3284
|
+
var Z = /*@__PURE__*/ D("ZodType", (e, t) => (fo(), M.init(e, t), e.def = t, e.type = t.type, e), {
|
|
3128
3285
|
check(...e) {
|
|
3129
3286
|
let t = this.def;
|
|
3130
|
-
return this.clone(
|
|
3287
|
+
return this.clone(h(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
3131
3288
|
check: e,
|
|
3132
3289
|
def: { check: "custom" },
|
|
3133
3290
|
onattach: []
|
|
@@ -3146,55 +3303,55 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
|
|
|
3146
3303
|
return e.add(this, t), this;
|
|
3147
3304
|
},
|
|
3148
3305
|
refine(e, t) {
|
|
3149
|
-
return this.check(
|
|
3306
|
+
return this.check(Es(e, t));
|
|
3150
3307
|
},
|
|
3151
3308
|
superRefine(e, t) {
|
|
3152
|
-
return this.check(
|
|
3309
|
+
return this.check(Ds(e, t));
|
|
3153
3310
|
},
|
|
3154
3311
|
overwrite(e) {
|
|
3155
|
-
return this.check(/* @__PURE__ */
|
|
3312
|
+
return this.check(/* @__PURE__ */ H(e));
|
|
3156
3313
|
},
|
|
3157
3314
|
optional() {
|
|
3158
|
-
return
|
|
3315
|
+
return cs(this);
|
|
3159
3316
|
},
|
|
3160
3317
|
exactOptional() {
|
|
3161
|
-
return
|
|
3318
|
+
return us(this);
|
|
3162
3319
|
},
|
|
3163
3320
|
nullable() {
|
|
3164
|
-
return
|
|
3321
|
+
return fs(this);
|
|
3165
3322
|
},
|
|
3166
3323
|
nullish() {
|
|
3167
|
-
return
|
|
3324
|
+
return cs(fs(this));
|
|
3168
3325
|
},
|
|
3169
3326
|
nonoptional(e) {
|
|
3170
|
-
return
|
|
3327
|
+
return vs(this, e);
|
|
3171
3328
|
},
|
|
3172
3329
|
array() {
|
|
3173
|
-
return
|
|
3330
|
+
return Xo(this);
|
|
3174
3331
|
},
|
|
3175
3332
|
or(e) {
|
|
3176
|
-
return
|
|
3333
|
+
return es([this, e]);
|
|
3177
3334
|
},
|
|
3178
3335
|
and(e) {
|
|
3179
|
-
return
|
|
3336
|
+
return ns(this, e);
|
|
3180
3337
|
},
|
|
3181
3338
|
transform(e) {
|
|
3182
|
-
return
|
|
3339
|
+
return Ss(this, os(e));
|
|
3183
3340
|
},
|
|
3184
3341
|
default(e) {
|
|
3185
|
-
return
|
|
3342
|
+
return ms(this, e);
|
|
3186
3343
|
},
|
|
3187
3344
|
prefault(e) {
|
|
3188
|
-
return
|
|
3345
|
+
return gs(this, e);
|
|
3189
3346
|
},
|
|
3190
3347
|
catch(e) {
|
|
3191
|
-
return
|
|
3348
|
+
return bs(this, e);
|
|
3192
3349
|
},
|
|
3193
3350
|
pipe(e) {
|
|
3194
|
-
return
|
|
3351
|
+
return Ss(this, e);
|
|
3195
3352
|
},
|
|
3196
3353
|
readonly() {
|
|
3197
|
-
return
|
|
3354
|
+
return ws(this);
|
|
3198
3355
|
},
|
|
3199
3356
|
describe(e) {
|
|
3200
3357
|
let t = this.clone();
|
|
@@ -3215,61 +3372,67 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
|
|
|
3215
3372
|
return t.length === 0 ? e(this) : e(this, ...t);
|
|
3216
3373
|
},
|
|
3217
3374
|
get "~standard"() {
|
|
3218
|
-
return
|
|
3219
|
-
...
|
|
3375
|
+
return ke(this, "~standard", {
|
|
3376
|
+
..._n(this),
|
|
3220
3377
|
jsonSchema: {
|
|
3221
|
-
input:
|
|
3222
|
-
output:
|
|
3378
|
+
input: ga(this, "input"),
|
|
3379
|
+
output: ga(this, "output")
|
|
3223
3380
|
}
|
|
3224
3381
|
});
|
|
3225
3382
|
},
|
|
3226
3383
|
set "~standard"(e) {
|
|
3227
|
-
|
|
3384
|
+
w(this, "~standard", e);
|
|
3228
3385
|
},
|
|
3229
3386
|
parse: function e(t, n) {
|
|
3230
|
-
return
|
|
3387
|
+
return $a(this, t, n, { callee: e });
|
|
3231
3388
|
},
|
|
3232
3389
|
parseAsync: async function e(t, n) {
|
|
3233
|
-
return await
|
|
3390
|
+
return await eo(this, t, n, { callee: e });
|
|
3234
3391
|
},
|
|
3235
3392
|
safeParse(e, t) {
|
|
3236
|
-
return
|
|
3393
|
+
return to(this, e, t);
|
|
3237
3394
|
},
|
|
3238
3395
|
async safeParseAsync(e, t) {
|
|
3239
|
-
return
|
|
3396
|
+
return no(this, e, t);
|
|
3240
3397
|
},
|
|
3241
3398
|
get spa() {
|
|
3242
3399
|
return this?.safeParseAsync;
|
|
3243
3400
|
},
|
|
3244
3401
|
set spa(e) {
|
|
3245
|
-
|
|
3402
|
+
w(this, "spa", e);
|
|
3403
|
+
},
|
|
3404
|
+
validate(e, t) {
|
|
3405
|
+
return ot(this, e, t);
|
|
3406
|
+
},
|
|
3407
|
+
validateAsync(e, t) {
|
|
3408
|
+
return ct(this, e, t);
|
|
3246
3409
|
},
|
|
3247
3410
|
encode: function e(t, n) {
|
|
3248
|
-
return
|
|
3411
|
+
return ro(this, t, n, { callee: e });
|
|
3249
3412
|
},
|
|
3250
3413
|
decode: function e(t, n) {
|
|
3251
|
-
return
|
|
3414
|
+
return io(this, t, n, { callee: e });
|
|
3252
3415
|
},
|
|
3253
3416
|
encodeAsync: async function e(t, n) {
|
|
3254
|
-
return await
|
|
3417
|
+
return await ao(this, t, n, { callee: e });
|
|
3255
3418
|
},
|
|
3256
3419
|
decodeAsync: async function e(t, n) {
|
|
3257
|
-
return await
|
|
3420
|
+
return await oo(this, t, n, { callee: e });
|
|
3258
3421
|
},
|
|
3259
3422
|
safeEncode(e, t) {
|
|
3260
|
-
return
|
|
3423
|
+
return so(this, e, t);
|
|
3261
3424
|
},
|
|
3262
3425
|
safeDecode(e, t) {
|
|
3263
|
-
return
|
|
3426
|
+
return co(this, e, t);
|
|
3264
3427
|
},
|
|
3265
3428
|
async safeEncodeAsync(e, t) {
|
|
3266
|
-
return
|
|
3429
|
+
return lo(this, e, t);
|
|
3267
3430
|
},
|
|
3268
3431
|
async safeDecodeAsync(e, t) {
|
|
3269
|
-
return
|
|
3432
|
+
return uo(this, e, t);
|
|
3270
3433
|
},
|
|
3271
3434
|
toJSONSchema(e) {
|
|
3272
|
-
return
|
|
3435
|
+
return ha(this, {})(e);
|
|
3273
3436
|
},
|
|
3274
3437
|
get description() {
|
|
3275
3438
|
return V.get(this)?.description;
|
|
@@ -3277,385 +3440,384 @@ var Z = /*@__PURE__*/ E("ZodType", (e, t) => (Oa(), F.init(e, t), e.def = t, e.t
|
|
|
3277
3440
|
get _def() {
|
|
3278
3441
|
return this._zod.def;
|
|
3279
3442
|
}
|
|
3280
|
-
}),
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3443
|
+
}), mo = /*@__PURE__*/ D("_ZodString", (e, t) => {
|
|
3444
|
+
vn.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ka(e, t, n, r);
|
|
3445
|
+
}, /*@__PURE__*/ Ae({
|
|
3446
|
+
format: (e) => Y(e).format ?? null,
|
|
3447
|
+
minLength: (e) => Y(e).minimum ?? null,
|
|
3448
|
+
maxLength: (e) => Y(e).maximum ?? null
|
|
3284
3449
|
}, {
|
|
3285
3450
|
regex(...e) {
|
|
3286
|
-
return this.check(/* @__PURE__ */
|
|
3451
|
+
return this.check(/* @__PURE__ */ Wi(...e));
|
|
3287
3452
|
},
|
|
3288
3453
|
includes(...e) {
|
|
3289
|
-
return this.check(/* @__PURE__ */
|
|
3454
|
+
return this.check(/* @__PURE__ */ qi(...e));
|
|
3290
3455
|
},
|
|
3291
3456
|
startsWith(...e) {
|
|
3292
|
-
return this.check(/* @__PURE__ */
|
|
3457
|
+
return this.check(/* @__PURE__ */ Ji(...e));
|
|
3293
3458
|
},
|
|
3294
3459
|
endsWith(...e) {
|
|
3295
|
-
return this.check(/* @__PURE__ */
|
|
3460
|
+
return this.check(/* @__PURE__ */ Yi(...e));
|
|
3296
3461
|
},
|
|
3297
3462
|
min(...e) {
|
|
3298
|
-
return this.check(/* @__PURE__ */
|
|
3463
|
+
return this.check(/* @__PURE__ */ Hi(...e));
|
|
3299
3464
|
},
|
|
3300
3465
|
max(...e) {
|
|
3301
|
-
return this.check(/* @__PURE__ */
|
|
3466
|
+
return this.check(/* @__PURE__ */ Vi(...e));
|
|
3302
3467
|
},
|
|
3303
3468
|
length(...e) {
|
|
3304
|
-
return this.check(/* @__PURE__ */
|
|
3469
|
+
return this.check(/* @__PURE__ */ Ui(...e));
|
|
3305
3470
|
},
|
|
3306
3471
|
nonempty(...e) {
|
|
3307
|
-
return this.check(/* @__PURE__ */
|
|
3472
|
+
return this.check(/* @__PURE__ */ Hi(1, ...e));
|
|
3308
3473
|
},
|
|
3309
3474
|
lowercase(e) {
|
|
3310
|
-
return this.check(/* @__PURE__ */
|
|
3475
|
+
return this.check(/* @__PURE__ */ Gi(e));
|
|
3311
3476
|
},
|
|
3312
3477
|
uppercase(e) {
|
|
3313
|
-
return this.check(/* @__PURE__ */
|
|
3478
|
+
return this.check(/* @__PURE__ */ Ki(e));
|
|
3314
3479
|
},
|
|
3315
3480
|
trim() {
|
|
3316
|
-
return this.check(/* @__PURE__ */
|
|
3481
|
+
return this.check(/* @__PURE__ */ Zi());
|
|
3317
3482
|
},
|
|
3318
3483
|
normalize(...e) {
|
|
3319
|
-
return this.check(/* @__PURE__ */
|
|
3484
|
+
return this.check(/* @__PURE__ */ Xi(...e));
|
|
3320
3485
|
},
|
|
3321
3486
|
toLowerCase() {
|
|
3322
|
-
return this.check(/* @__PURE__ */
|
|
3487
|
+
return this.check(/* @__PURE__ */ Qi());
|
|
3323
3488
|
},
|
|
3324
3489
|
toUpperCase() {
|
|
3325
|
-
return this.check(/* @__PURE__ */
|
|
3490
|
+
return this.check(/* @__PURE__ */ $i());
|
|
3326
3491
|
},
|
|
3327
3492
|
slugify() {
|
|
3328
|
-
return this.check(/* @__PURE__ */
|
|
3493
|
+
return this.check(/* @__PURE__ */ ea());
|
|
3329
3494
|
}
|
|
3330
|
-
}),
|
|
3331
|
-
|
|
3495
|
+
})), ho = /*@__PURE__*/ D("ZodString", (e, t) => {
|
|
3496
|
+
vn.init(e, t), mo.init(e, t);
|
|
3332
3497
|
}, {
|
|
3333
3498
|
email(e) {
|
|
3334
|
-
return this.check(/* @__PURE__ */
|
|
3499
|
+
return this.check(/* @__PURE__ */ ai(xo, e));
|
|
3335
3500
|
},
|
|
3336
3501
|
url(e) {
|
|
3337
|
-
return this.check(/* @__PURE__ */
|
|
3502
|
+
return this.check(/* @__PURE__ */ di(Co, e));
|
|
3338
3503
|
},
|
|
3339
3504
|
jwt(e) {
|
|
3340
|
-
return this.check(/* @__PURE__ */
|
|
3505
|
+
return this.check(/* @__PURE__ */ Ei(Ro, e));
|
|
3341
3506
|
},
|
|
3342
3507
|
emoji(e) {
|
|
3343
|
-
return this.check(/* @__PURE__ */
|
|
3508
|
+
return this.check(/* @__PURE__ */ fi(wo, e));
|
|
3344
3509
|
},
|
|
3345
3510
|
guid(e) {
|
|
3346
|
-
return this.check(/* @__PURE__ */
|
|
3511
|
+
return this.check(/* @__PURE__ */ oi(So, e));
|
|
3347
3512
|
},
|
|
3348
3513
|
uuid(e) {
|
|
3349
|
-
return this.check(/* @__PURE__ */
|
|
3514
|
+
return this.check(/* @__PURE__ */ si($, e));
|
|
3350
3515
|
},
|
|
3351
3516
|
uuidv4(e) {
|
|
3352
|
-
return this.check(/* @__PURE__ */
|
|
3517
|
+
return this.check(/* @__PURE__ */ ci($, e));
|
|
3353
3518
|
},
|
|
3354
3519
|
uuidv6(e) {
|
|
3355
|
-
return this.check(/* @__PURE__ */
|
|
3520
|
+
return this.check(/* @__PURE__ */ li($, e));
|
|
3356
3521
|
},
|
|
3357
3522
|
uuidv7(e) {
|
|
3358
|
-
return this.check(/* @__PURE__ */
|
|
3523
|
+
return this.check(/* @__PURE__ */ ui($, e));
|
|
3359
3524
|
},
|
|
3360
3525
|
nanoid(e) {
|
|
3361
|
-
return this.check(/* @__PURE__ */
|
|
3526
|
+
return this.check(/* @__PURE__ */ pi(To, e));
|
|
3362
3527
|
},
|
|
3363
3528
|
cuid(e) {
|
|
3364
|
-
return this.check(/* @__PURE__ */
|
|
3529
|
+
return this.check(/* @__PURE__ */ mi(Eo, e));
|
|
3365
3530
|
},
|
|
3366
3531
|
cuid2(e) {
|
|
3367
|
-
return this.check(/* @__PURE__ */
|
|
3532
|
+
return this.check(/* @__PURE__ */ hi(Do, e));
|
|
3368
3533
|
},
|
|
3369
3534
|
ulid(e) {
|
|
3370
|
-
return this.check(/* @__PURE__ */
|
|
3535
|
+
return this.check(/* @__PURE__ */ gi(Oo, e));
|
|
3371
3536
|
},
|
|
3372
3537
|
base64(e) {
|
|
3373
|
-
return this.check(/* @__PURE__ */
|
|
3538
|
+
return this.check(/* @__PURE__ */ Ci(Fo, e));
|
|
3374
3539
|
},
|
|
3375
3540
|
base64url(e) {
|
|
3376
|
-
return this.check(/* @__PURE__ */
|
|
3541
|
+
return this.check(/* @__PURE__ */ wi(Io, e));
|
|
3377
3542
|
},
|
|
3378
3543
|
xid(e) {
|
|
3379
|
-
return this.check(/* @__PURE__ */
|
|
3544
|
+
return this.check(/* @__PURE__ */ _i(ko, e));
|
|
3380
3545
|
},
|
|
3381
3546
|
ksuid(e) {
|
|
3382
|
-
return this.check(/* @__PURE__ */
|
|
3547
|
+
return this.check(/* @__PURE__ */ vi(Ao, e));
|
|
3383
3548
|
},
|
|
3384
3549
|
ipv4(e) {
|
|
3385
|
-
return this.check(/* @__PURE__ */
|
|
3550
|
+
return this.check(/* @__PURE__ */ yi(jo, e));
|
|
3386
3551
|
},
|
|
3387
3552
|
ipv6(e) {
|
|
3388
|
-
return this.check(/* @__PURE__ */
|
|
3553
|
+
return this.check(/* @__PURE__ */ bi(Mo, e));
|
|
3389
3554
|
},
|
|
3390
3555
|
cidrv4(e) {
|
|
3391
|
-
return this.check(/* @__PURE__ */
|
|
3556
|
+
return this.check(/* @__PURE__ */ xi(No, e));
|
|
3392
3557
|
},
|
|
3393
3558
|
cidrv6(e) {
|
|
3394
|
-
return this.check(/* @__PURE__ */
|
|
3559
|
+
return this.check(/* @__PURE__ */ Si(Po, e));
|
|
3395
3560
|
},
|
|
3396
3561
|
e164(e) {
|
|
3397
|
-
return this.check(/* @__PURE__ */
|
|
3562
|
+
return this.check(/* @__PURE__ */ Ti(Lo, e));
|
|
3398
3563
|
},
|
|
3399
3564
|
datetime(e) {
|
|
3400
|
-
return this.check(/* @__PURE__ */
|
|
3565
|
+
return this.check(/* @__PURE__ */ Di(_o, e));
|
|
3401
3566
|
},
|
|
3402
3567
|
date(e) {
|
|
3403
|
-
return this.check(/* @__PURE__ */
|
|
3568
|
+
return this.check(/* @__PURE__ */ Oi(vo, e));
|
|
3404
3569
|
},
|
|
3405
3570
|
time(e) {
|
|
3406
|
-
return this.check(/* @__PURE__ */
|
|
3571
|
+
return this.check(/* @__PURE__ */ ki(yo, e));
|
|
3407
3572
|
},
|
|
3408
3573
|
duration(e) {
|
|
3409
|
-
return this.check(/* @__PURE__ */
|
|
3574
|
+
return this.check(/* @__PURE__ */ Ai(bo, e));
|
|
3410
3575
|
}
|
|
3411
3576
|
});
|
|
3412
|
-
function
|
|
3413
|
-
return /* @__PURE__ */
|
|
3414
|
-
}
|
|
3415
|
-
var
|
|
3416
|
-
|
|
3417
|
-
}),
|
|
3418
|
-
|
|
3419
|
-
}),
|
|
3420
|
-
|
|
3421
|
-
}),
|
|
3422
|
-
|
|
3423
|
-
}),
|
|
3424
|
-
|
|
3425
|
-
}),
|
|
3426
|
-
|
|
3427
|
-
}),
|
|
3428
|
-
|
|
3429
|
-
}),
|
|
3430
|
-
|
|
3431
|
-
}),
|
|
3432
|
-
|
|
3433
|
-
}),
|
|
3434
|
-
|
|
3435
|
-
}),
|
|
3436
|
-
|
|
3437
|
-
}),
|
|
3438
|
-
|
|
3439
|
-
}),
|
|
3440
|
-
|
|
3441
|
-
}),
|
|
3442
|
-
|
|
3443
|
-
}),
|
|
3444
|
-
|
|
3445
|
-
}),
|
|
3446
|
-
|
|
3447
|
-
}),
|
|
3448
|
-
|
|
3449
|
-
}),
|
|
3450
|
-
|
|
3451
|
-
}),
|
|
3452
|
-
|
|
3453
|
-
}),
|
|
3454
|
-
|
|
3455
|
-
}),
|
|
3456
|
-
|
|
3457
|
-
}),
|
|
3458
|
-
|
|
3459
|
-
}),
|
|
3460
|
-
|
|
3461
|
-
}),
|
|
3462
|
-
|
|
3463
|
-
}),
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3577
|
+
function go(e) {
|
|
3578
|
+
return /* @__PURE__ */ ii(ho, e);
|
|
3579
|
+
}
|
|
3580
|
+
var Q = /*@__PURE__*/ D("ZodStringFormat", (e, t) => {
|
|
3581
|
+
N.init(e, t), mo.init(e, t);
|
|
3582
|
+
}), _o = /*@__PURE__*/ D("ZodISODateTime", (e, t) => {
|
|
3583
|
+
Ln.init(e, t), Q.init(e, t);
|
|
3584
|
+
}), vo = /*@__PURE__*/ D("ZodISODate", (e, t) => {
|
|
3585
|
+
Rn.init(e, t), Q.init(e, t);
|
|
3586
|
+
}), yo = /*@__PURE__*/ D("ZodISOTime", (e, t) => {
|
|
3587
|
+
zn.init(e, t), Q.init(e, t);
|
|
3588
|
+
}), bo = /*@__PURE__*/ D("ZodISODuration", (e, t) => {
|
|
3589
|
+
Bn.init(e, t), Q.init(e, t);
|
|
3590
|
+
}), xo = /*@__PURE__*/ D("ZodEmail", (e, t) => {
|
|
3591
|
+
xn.init(e, t), Q.init(e, t);
|
|
3592
|
+
}), So = /*@__PURE__*/ D("ZodGUID", (e, t) => {
|
|
3593
|
+
yn.init(e, t), Q.init(e, t);
|
|
3594
|
+
}), $ = /*@__PURE__*/ D("ZodUUID", (e, t) => {
|
|
3595
|
+
bn.init(e, t), Q.init(e, t);
|
|
3596
|
+
}), Co = /*@__PURE__*/ D("ZodURL", (e, t) => {
|
|
3597
|
+
kn.init(e, t), Q.init(e, t);
|
|
3598
|
+
}), wo = /*@__PURE__*/ D("ZodEmoji", (e, t) => {
|
|
3599
|
+
An.init(e, t), Q.init(e, t);
|
|
3600
|
+
}), To = /*@__PURE__*/ D("ZodNanoID", (e, t) => {
|
|
3601
|
+
jn.init(e, t), Q.init(e, t);
|
|
3602
|
+
}), Eo = /*@__PURE__*/ D("ZodCUID", (e, t) => {
|
|
3603
|
+
Mn.init(e, t), Q.init(e, t);
|
|
3604
|
+
}), Do = /*@__PURE__*/ D("ZodCUID2", (e, t) => {
|
|
3605
|
+
Nn.init(e, t), Q.init(e, t);
|
|
3606
|
+
}), Oo = /*@__PURE__*/ D("ZodULID", (e, t) => {
|
|
3607
|
+
Pn.init(e, t), Q.init(e, t);
|
|
3608
|
+
}), ko = /*@__PURE__*/ D("ZodXID", (e, t) => {
|
|
3609
|
+
Fn.init(e, t), Q.init(e, t);
|
|
3610
|
+
}), Ao = /*@__PURE__*/ D("ZodKSUID", (e, t) => {
|
|
3611
|
+
In.init(e, t), Q.init(e, t);
|
|
3612
|
+
}), jo = /*@__PURE__*/ D("ZodIPv4", (e, t) => {
|
|
3613
|
+
Vn.init(e, t), Q.init(e, t);
|
|
3614
|
+
}), Mo = /*@__PURE__*/ D("ZodIPv6", (e, t) => {
|
|
3615
|
+
Wn.init(e, t), Q.init(e, t);
|
|
3616
|
+
}), No = /*@__PURE__*/ D("ZodCIDRv4", (e, t) => {
|
|
3617
|
+
Gn.init(e, t), Q.init(e, t);
|
|
3618
|
+
}), Po = /*@__PURE__*/ D("ZodCIDRv6", (e, t) => {
|
|
3619
|
+
qn.init(e, t), Q.init(e, t);
|
|
3620
|
+
}), Fo = /*@__PURE__*/ D("ZodBase64", (e, t) => {
|
|
3621
|
+
Xn.init(e, t), Q.init(e, t);
|
|
3622
|
+
}), Io = /*@__PURE__*/ D("ZodBase64URL", (e, t) => {
|
|
3623
|
+
$n.init(e, t), Q.init(e, t);
|
|
3624
|
+
}), Lo = /*@__PURE__*/ D("ZodE164", (e, t) => {
|
|
3625
|
+
er.init(e, t), Q.init(e, t);
|
|
3626
|
+
}), Ro = /*@__PURE__*/ D("ZodJWT", (e, t) => {
|
|
3627
|
+
nr.init(e, t), Q.init(e, t);
|
|
3628
|
+
}), zo = /*@__PURE__*/ D("ZodNumber", (e, t) => {
|
|
3629
|
+
rr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r), e.isFinite = !0;
|
|
3630
|
+
}, /*@__PURE__*/ Ae({
|
|
3631
|
+
minValue: (e) => {
|
|
3632
|
+
let { minimum: t, exclusiveMinimum: n } = Y(e);
|
|
3633
|
+
return Math.max(t ?? -Infinity, n ?? -Infinity);
|
|
3634
|
+
},
|
|
3635
|
+
maxValue: (e) => {
|
|
3636
|
+
let { maximum: t, exclusiveMaximum: n } = Y(e);
|
|
3637
|
+
return Math.min(t ?? Infinity, n ?? Infinity);
|
|
3638
|
+
},
|
|
3639
|
+
isInt: (e) => {
|
|
3640
|
+
let { isInt: t, multipleOf: n } = Y(e);
|
|
3641
|
+
return !!t || !!n?.some(Number.isSafeInteger);
|
|
3642
|
+
},
|
|
3643
|
+
format: (e) => Y(e).format ?? null
|
|
3467
3644
|
}, {
|
|
3468
3645
|
gt(e, t) {
|
|
3469
|
-
return this.check(/* @__PURE__ */
|
|
3646
|
+
return this.check(/* @__PURE__ */ Ri(e, t));
|
|
3470
3647
|
},
|
|
3471
3648
|
gte(e, t) {
|
|
3472
|
-
return this.check(/* @__PURE__ */
|
|
3649
|
+
return this.check(/* @__PURE__ */ zi(e, t));
|
|
3473
3650
|
},
|
|
3474
3651
|
min(e, t) {
|
|
3475
|
-
return this.check(/* @__PURE__ */
|
|
3652
|
+
return this.check(/* @__PURE__ */ zi(e, t));
|
|
3476
3653
|
},
|
|
3477
3654
|
lt(e, t) {
|
|
3478
|
-
return this.check(/* @__PURE__ */
|
|
3655
|
+
return this.check(/* @__PURE__ */ Ii(e, t));
|
|
3479
3656
|
},
|
|
3480
3657
|
lte(e, t) {
|
|
3481
|
-
return this.check(/* @__PURE__ */
|
|
3658
|
+
return this.check(/* @__PURE__ */ Li(e, t));
|
|
3482
3659
|
},
|
|
3483
3660
|
max(e, t) {
|
|
3484
|
-
return this.check(/* @__PURE__ */
|
|
3661
|
+
return this.check(/* @__PURE__ */ Li(e, t));
|
|
3485
3662
|
},
|
|
3486
3663
|
int(e) {
|
|
3487
|
-
return this.check(
|
|
3664
|
+
return this.check(Ho(e));
|
|
3488
3665
|
},
|
|
3489
3666
|
safe(e) {
|
|
3490
|
-
return this.check(
|
|
3667
|
+
return this.check(Ho(e));
|
|
3491
3668
|
},
|
|
3492
3669
|
positive(e) {
|
|
3493
|
-
return this.check(/* @__PURE__ */
|
|
3670
|
+
return this.check(/* @__PURE__ */ Ri(0, e));
|
|
3494
3671
|
},
|
|
3495
3672
|
nonnegative(e) {
|
|
3496
|
-
return this.check(/* @__PURE__ */
|
|
3673
|
+
return this.check(/* @__PURE__ */ zi(0, e));
|
|
3497
3674
|
},
|
|
3498
3675
|
negative(e) {
|
|
3499
|
-
return this.check(/* @__PURE__ */
|
|
3676
|
+
return this.check(/* @__PURE__ */ Ii(0, e));
|
|
3500
3677
|
},
|
|
3501
3678
|
nonpositive(e) {
|
|
3502
|
-
return this.check(/* @__PURE__ */
|
|
3679
|
+
return this.check(/* @__PURE__ */ Li(0, e));
|
|
3503
3680
|
},
|
|
3504
3681
|
multipleOf(e, t) {
|
|
3505
|
-
return this.check(/* @__PURE__ */
|
|
3682
|
+
return this.check(/* @__PURE__ */ Bi(e, t));
|
|
3506
3683
|
},
|
|
3507
3684
|
step(e, t) {
|
|
3508
|
-
return this.check(/* @__PURE__ */
|
|
3685
|
+
return this.check(/* @__PURE__ */ Bi(e, t));
|
|
3509
3686
|
},
|
|
3510
3687
|
finite() {
|
|
3511
3688
|
return this;
|
|
3512
3689
|
}
|
|
3513
|
-
});
|
|
3514
|
-
function
|
|
3515
|
-
return /* @__PURE__ */
|
|
3690
|
+
}));
|
|
3691
|
+
function Bo(e) {
|
|
3692
|
+
return /* @__PURE__ */ ji(zo, e);
|
|
3516
3693
|
}
|
|
3517
|
-
var
|
|
3518
|
-
|
|
3694
|
+
var Vo = /*@__PURE__*/ D("ZodNumberFormat", (e, t) => {
|
|
3695
|
+
ir.init(e, t), zo.init(e, t);
|
|
3519
3696
|
});
|
|
3520
|
-
function
|
|
3521
|
-
return /* @__PURE__ */
|
|
3697
|
+
function Ho(e) {
|
|
3698
|
+
return /* @__PURE__ */ Mi(Vo, e);
|
|
3522
3699
|
}
|
|
3523
|
-
var
|
|
3524
|
-
|
|
3700
|
+
var Uo = /*@__PURE__*/ D("ZodNull", (e, t) => {
|
|
3701
|
+
ar.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r);
|
|
3525
3702
|
});
|
|
3526
|
-
function
|
|
3527
|
-
return /* @__PURE__ */
|
|
3703
|
+
function Wo(e) {
|
|
3704
|
+
return /* @__PURE__ */ Ni(Uo, e);
|
|
3528
3705
|
}
|
|
3529
|
-
var
|
|
3530
|
-
|
|
3706
|
+
var Go = /*@__PURE__*/ D("ZodUnknown", (e, t) => {
|
|
3707
|
+
or.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
3531
3708
|
});
|
|
3532
|
-
function
|
|
3533
|
-
return /* @__PURE__ */
|
|
3709
|
+
function Ko() {
|
|
3710
|
+
return /* @__PURE__ */ Pi(Go);
|
|
3534
3711
|
}
|
|
3535
|
-
var
|
|
3536
|
-
|
|
3712
|
+
var qo = /*@__PURE__*/ D("ZodNever", (e, t) => {
|
|
3713
|
+
sr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r);
|
|
3537
3714
|
});
|
|
3538
|
-
function
|
|
3539
|
-
return /* @__PURE__ */
|
|
3715
|
+
function Jo(e) {
|
|
3716
|
+
return /* @__PURE__ */ Fi(qo, e);
|
|
3540
3717
|
}
|
|
3541
|
-
var
|
|
3542
|
-
|
|
3718
|
+
var Yo = /*@__PURE__*/ D("ZodArray", (e, t) => {
|
|
3719
|
+
po(), dr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ia(e, t, n, r), e.element = t.element;
|
|
3543
3720
|
}, {
|
|
3544
3721
|
min(e, t) {
|
|
3545
|
-
return this.check(/* @__PURE__ */
|
|
3722
|
+
return this.check(/* @__PURE__ */ Hi(e, t));
|
|
3546
3723
|
},
|
|
3547
3724
|
nonempty(e) {
|
|
3548
|
-
return this.check(/* @__PURE__ */
|
|
3725
|
+
return this.check(/* @__PURE__ */ Hi(1, e));
|
|
3549
3726
|
},
|
|
3550
3727
|
max(e, t) {
|
|
3551
|
-
return this.check(/* @__PURE__ */
|
|
3728
|
+
return this.check(/* @__PURE__ */ Vi(e, t));
|
|
3552
3729
|
},
|
|
3553
3730
|
length(e, t) {
|
|
3554
|
-
return this.check(/* @__PURE__ */
|
|
3731
|
+
return this.check(/* @__PURE__ */ Ui(e, t));
|
|
3555
3732
|
},
|
|
3556
3733
|
unwrap() {
|
|
3557
3734
|
return this.element;
|
|
3558
3735
|
}
|
|
3559
3736
|
});
|
|
3560
|
-
function
|
|
3561
|
-
return /* @__PURE__ */
|
|
3737
|
+
function Xo(e, t) {
|
|
3738
|
+
return /* @__PURE__ */ ta(Yo, e, t);
|
|
3562
3739
|
}
|
|
3563
|
-
var
|
|
3564
|
-
|
|
3740
|
+
var Zo = /*@__PURE__*/ D("ZodObject", (e, t) => {
|
|
3741
|
+
po(), gr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r), Fe(e, "shape", (e) => e._zod.def.shape, !1);
|
|
3565
3742
|
}, {
|
|
3566
3743
|
keyof() {
|
|
3567
|
-
return
|
|
3744
|
+
return is(Object.keys(this._zod.def.shape));
|
|
3568
3745
|
},
|
|
3569
3746
|
catchall(e) {
|
|
3570
|
-
return this.clone({
|
|
3571
|
-
...this._zod.def,
|
|
3572
|
-
catchall: e
|
|
3573
|
-
});
|
|
3747
|
+
return this.clone(h(this._zod.def, { catchall: e }));
|
|
3574
3748
|
},
|
|
3575
3749
|
passthrough() {
|
|
3576
|
-
return this.clone({
|
|
3577
|
-
...this._zod.def,
|
|
3578
|
-
catchall: co()
|
|
3579
|
-
});
|
|
3750
|
+
return this.clone(h(this._zod.def, { catchall: Ko() }));
|
|
3580
3751
|
},
|
|
3581
3752
|
loose() {
|
|
3582
|
-
return this.clone({
|
|
3583
|
-
...this._zod.def,
|
|
3584
|
-
catchall: co()
|
|
3585
|
-
});
|
|
3753
|
+
return this.clone(h(this._zod.def, { catchall: Ko() }));
|
|
3586
3754
|
},
|
|
3587
3755
|
strict() {
|
|
3588
|
-
return this.clone({
|
|
3589
|
-
...this._zod.def,
|
|
3590
|
-
catchall: uo()
|
|
3591
|
-
});
|
|
3756
|
+
return this.clone(h(this._zod.def, { catchall: Jo() }));
|
|
3592
3757
|
},
|
|
3593
3758
|
strip() {
|
|
3594
|
-
return this.clone({
|
|
3595
|
-
...this._zod.def,
|
|
3596
|
-
catchall: void 0
|
|
3597
|
-
});
|
|
3759
|
+
return this.clone(h(this._zod.def, { catchall: void 0 }));
|
|
3598
3760
|
},
|
|
3599
3761
|
extend(e) {
|
|
3600
|
-
return
|
|
3762
|
+
return me(this, e);
|
|
3601
3763
|
},
|
|
3602
3764
|
safeExtend(e) {
|
|
3603
|
-
return
|
|
3765
|
+
return ge(this, e);
|
|
3604
3766
|
},
|
|
3605
3767
|
merge(e) {
|
|
3606
|
-
return
|
|
3768
|
+
return _e(this, e);
|
|
3607
3769
|
},
|
|
3608
3770
|
pick(e) {
|
|
3609
|
-
return
|
|
3771
|
+
return fe(this, e);
|
|
3610
3772
|
},
|
|
3611
3773
|
omit(e) {
|
|
3612
|
-
return
|
|
3774
|
+
return pe(this, e);
|
|
3613
3775
|
},
|
|
3614
3776
|
partial(...e) {
|
|
3615
|
-
return
|
|
3777
|
+
return ve(ss, this, e[0]);
|
|
3616
3778
|
},
|
|
3617
3779
|
exactPartial(...e) {
|
|
3618
|
-
return
|
|
3780
|
+
return ve(ls, this, e[0], "exactPartial");
|
|
3619
3781
|
},
|
|
3620
3782
|
required(...e) {
|
|
3621
|
-
return
|
|
3783
|
+
return ye(_s, this, e[0]);
|
|
3622
3784
|
}
|
|
3623
3785
|
});
|
|
3624
|
-
function
|
|
3625
|
-
return new
|
|
3786
|
+
function Qo(e, t) {
|
|
3787
|
+
return new Zo({
|
|
3626
3788
|
type: "object",
|
|
3627
3789
|
shape: e ?? {},
|
|
3628
3790
|
...v(t)
|
|
3629
3791
|
});
|
|
3630
3792
|
}
|
|
3631
|
-
var
|
|
3632
|
-
|
|
3793
|
+
var $o = /*@__PURE__*/ D("ZodUnion", (e, t) => {
|
|
3794
|
+
vr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => za(e, t, n, r), e.options = t.options;
|
|
3633
3795
|
});
|
|
3634
|
-
function
|
|
3635
|
-
return new
|
|
3796
|
+
function es(e, t) {
|
|
3797
|
+
return new $o({
|
|
3636
3798
|
type: "union",
|
|
3637
3799
|
options: e,
|
|
3638
3800
|
...v(t)
|
|
3639
3801
|
});
|
|
3640
3802
|
}
|
|
3641
|
-
var
|
|
3642
|
-
|
|
3803
|
+
var ts = /*@__PURE__*/ D("ZodIntersection", (e, t) => {
|
|
3804
|
+
yr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r);
|
|
3643
3805
|
});
|
|
3644
|
-
function
|
|
3645
|
-
return new
|
|
3806
|
+
function ns(e, t) {
|
|
3807
|
+
return new ts({
|
|
3646
3808
|
type: "intersection",
|
|
3647
3809
|
left: e,
|
|
3648
3810
|
right: t
|
|
3649
3811
|
});
|
|
3650
3812
|
}
|
|
3651
|
-
var
|
|
3652
|
-
|
|
3813
|
+
var rs = /*@__PURE__*/ D("ZodEnum", (e, t) => {
|
|
3814
|
+
Sr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r), e.enum = t.entries, e.options = [...e._zod.values];
|
|
3653
3815
|
let n = new Set(Object.keys(t.entries));
|
|
3654
3816
|
e.extract = (e, r) => {
|
|
3655
3817
|
let i = {};
|
|
3656
3818
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
3657
3819
|
else throw Error(`Key ${r} not found in enum`);
|
|
3658
|
-
return new
|
|
3820
|
+
return new rs({
|
|
3659
3821
|
...t,
|
|
3660
3822
|
checks: [],
|
|
3661
3823
|
...v(r),
|
|
@@ -3665,7 +3827,7 @@ var bo = /*@__PURE__*/ E("ZodEnum", (e, t) => {
|
|
|
3665
3827
|
let i = { ...t.entries };
|
|
3666
3828
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
3667
3829
|
else throw Error(`Key ${t} not found in enum`);
|
|
3668
|
-
return new
|
|
3830
|
+
return new rs({
|
|
3669
3831
|
...t,
|
|
3670
3832
|
checks: [],
|
|
3671
3833
|
...v(r),
|
|
@@ -3673,177 +3835,131 @@ var bo = /*@__PURE__*/ E("ZodEnum", (e, t) => {
|
|
|
3673
3835
|
});
|
|
3674
3836
|
};
|
|
3675
3837
|
});
|
|
3676
|
-
function
|
|
3677
|
-
return new
|
|
3838
|
+
function is(e, t) {
|
|
3839
|
+
return new rs({
|
|
3678
3840
|
type: "enum",
|
|
3679
3841
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
3680
3842
|
...v(t)
|
|
3681
3843
|
});
|
|
3682
3844
|
}
|
|
3683
|
-
var
|
|
3684
|
-
|
|
3685
|
-
if (r.direction === "backward") throw new
|
|
3845
|
+
var as = /*@__PURE__*/ D("ZodTransform", (e, t) => {
|
|
3846
|
+
po(), Cr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fa(e, t, n, r), e._zod.parse = (n, r) => {
|
|
3847
|
+
if (r.direction === "backward") throw new He(e.constructor.name);
|
|
3686
3848
|
n.addIssue = (r) => {
|
|
3687
|
-
if (typeof r == "string") n.issues.push(
|
|
3849
|
+
if (typeof r == "string") n.issues.push(C(r, n.value, t));
|
|
3688
3850
|
else {
|
|
3689
3851
|
let t = r;
|
|
3690
|
-
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(
|
|
3852
|
+
t.fatal && (t.continue = !1), t.code ??= "custom", "input" in t || (t.input = n.value), t.inst ??= e, n.issues.push(C(t));
|
|
3691
3853
|
}
|
|
3692
3854
|
};
|
|
3693
3855
|
let i = t.transform(n.value, n);
|
|
3694
3856
|
return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
|
|
3695
3857
|
};
|
|
3696
3858
|
});
|
|
3697
|
-
function
|
|
3698
|
-
return new
|
|
3859
|
+
function os(e) {
|
|
3860
|
+
return new as({
|
|
3699
3861
|
type: "transform",
|
|
3700
3862
|
transform: e
|
|
3701
3863
|
});
|
|
3702
3864
|
}
|
|
3703
|
-
var
|
|
3704
|
-
|
|
3865
|
+
var ss = /*@__PURE__*/ D("ZodOptional", (e, t) => {
|
|
3866
|
+
Tr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3705
3867
|
});
|
|
3706
|
-
function
|
|
3707
|
-
return new
|
|
3868
|
+
function cs(e) {
|
|
3869
|
+
return new ss({
|
|
3708
3870
|
type: "optional",
|
|
3709
3871
|
innerType: e
|
|
3710
3872
|
});
|
|
3711
3873
|
}
|
|
3712
|
-
var
|
|
3713
|
-
|
|
3874
|
+
var ls = /*@__PURE__*/ D("ZodExactOptional", (e, t) => {
|
|
3875
|
+
Er.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3714
3876
|
});
|
|
3715
|
-
function
|
|
3716
|
-
return new
|
|
3877
|
+
function us(e) {
|
|
3878
|
+
return new ls({
|
|
3717
3879
|
type: "optional",
|
|
3718
3880
|
innerType: e
|
|
3719
3881
|
});
|
|
3720
3882
|
}
|
|
3721
|
-
var
|
|
3722
|
-
|
|
3883
|
+
var ds = /*@__PURE__*/ D("ZodNullable", (e, t) => {
|
|
3884
|
+
Dr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Va(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3723
3885
|
});
|
|
3724
|
-
function
|
|
3725
|
-
return new
|
|
3886
|
+
function fs(e) {
|
|
3887
|
+
return new ds({
|
|
3726
3888
|
type: "nullable",
|
|
3727
3889
|
innerType: e
|
|
3728
3890
|
});
|
|
3729
3891
|
}
|
|
3730
|
-
var
|
|
3731
|
-
|
|
3892
|
+
var ps = /*@__PURE__*/ D("ZodDefault", (e, t) => {
|
|
3893
|
+
Or.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ga(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3732
3894
|
});
|
|
3733
|
-
function
|
|
3734
|
-
return new
|
|
3895
|
+
function ms(e, t) {
|
|
3896
|
+
return new ps({
|
|
3735
3897
|
type: "default",
|
|
3736
3898
|
innerType: e,
|
|
3737
3899
|
get defaultValue() {
|
|
3738
|
-
return typeof t == "function" ? t() :
|
|
3900
|
+
return typeof t == "function" ? t() : ae(t);
|
|
3739
3901
|
}
|
|
3740
3902
|
});
|
|
3741
3903
|
}
|
|
3742
|
-
var
|
|
3743
|
-
|
|
3904
|
+
var hs = /*@__PURE__*/ D("ZodPrefault", (e, t) => {
|
|
3905
|
+
Ar.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3744
3906
|
});
|
|
3745
|
-
function
|
|
3746
|
-
return new
|
|
3907
|
+
function gs(e, t) {
|
|
3908
|
+
return new hs({
|
|
3747
3909
|
type: "prefault",
|
|
3748
3910
|
innerType: e,
|
|
3749
3911
|
get defaultValue() {
|
|
3750
|
-
return typeof t == "function" ? t() :
|
|
3912
|
+
return typeof t == "function" ? t() : ae(t);
|
|
3751
3913
|
}
|
|
3752
3914
|
});
|
|
3753
3915
|
}
|
|
3754
|
-
var
|
|
3755
|
-
|
|
3916
|
+
var _s = /*@__PURE__*/ D("ZodNonOptional", (e, t) => {
|
|
3917
|
+
jr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3756
3918
|
});
|
|
3757
|
-
function
|
|
3758
|
-
return new
|
|
3919
|
+
function vs(e, t) {
|
|
3920
|
+
return new _s({
|
|
3759
3921
|
type: "nonoptional",
|
|
3760
3922
|
innerType: e,
|
|
3761
3923
|
...v(t)
|
|
3762
3924
|
});
|
|
3763
3925
|
}
|
|
3764
|
-
var
|
|
3765
|
-
|
|
3926
|
+
var ys = /*@__PURE__*/ D("ZodCatch", (e, t) => {
|
|
3927
|
+
Pr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3766
3928
|
});
|
|
3767
|
-
function
|
|
3768
|
-
return new
|
|
3929
|
+
function bs(e, t) {
|
|
3930
|
+
return new ys({
|
|
3769
3931
|
type: "catch",
|
|
3770
3932
|
innerType: e,
|
|
3771
|
-
catchValue: typeof t == "function" ? t :
|
|
3933
|
+
catchValue: typeof t == "function" ? t : Le(t)
|
|
3772
3934
|
});
|
|
3773
3935
|
}
|
|
3774
|
-
var
|
|
3775
|
-
|
|
3936
|
+
var xs = /*@__PURE__*/ D("ZodPipe", (e, t) => {
|
|
3937
|
+
Fr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3776
3938
|
});
|
|
3777
|
-
function
|
|
3778
|
-
return new
|
|
3939
|
+
function Ss(e, t) {
|
|
3940
|
+
return new xs({
|
|
3779
3941
|
type: "pipe",
|
|
3780
3942
|
in: e,
|
|
3781
3943
|
out: t
|
|
3782
3944
|
});
|
|
3783
3945
|
}
|
|
3784
|
-
var
|
|
3785
|
-
|
|
3946
|
+
var Cs = /*@__PURE__*/ D("ZodReadonly", (e, t) => {
|
|
3947
|
+
Ir.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ya(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3786
3948
|
});
|
|
3787
|
-
function
|
|
3788
|
-
return new
|
|
3949
|
+
function ws(e) {
|
|
3950
|
+
return new Cs({
|
|
3789
3951
|
type: "readonly",
|
|
3790
3952
|
innerType: e
|
|
3791
3953
|
});
|
|
3792
3954
|
}
|
|
3793
|
-
var
|
|
3794
|
-
|
|
3955
|
+
var Ts = /*@__PURE__*/ D("ZodCustom", (e, t) => {
|
|
3956
|
+
Rr.init(e, t), Z.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pa(e, t, n, r);
|
|
3795
3957
|
});
|
|
3796
|
-
function
|
|
3797
|
-
return /* @__PURE__ */
|
|
3958
|
+
function Es(e, t = {}) {
|
|
3959
|
+
return /* @__PURE__ */ na(Ts, e, t);
|
|
3798
3960
|
}
|
|
3799
|
-
function
|
|
3800
|
-
return /* @__PURE__ */
|
|
3961
|
+
function Ds(e, t) {
|
|
3962
|
+
return /* @__PURE__ */ ra(e, t);
|
|
3801
3963
|
}
|
|
3802
3964
|
//#endregion
|
|
3803
|
-
|
|
3804
|
-
var Go = ho({
|
|
3805
|
-
id: Q(),
|
|
3806
|
-
displayName: Q(),
|
|
3807
|
-
email: Q()
|
|
3808
|
-
}), Ko = ho({ data: po(po(_o([
|
|
3809
|
-
Q(),
|
|
3810
|
-
no(),
|
|
3811
|
-
oo()
|
|
3812
|
-
]))) }), qo = ho({ data: ho({ id: Q() }) }), Jo = "1,500,555,556,557", Yo = (t, n) => ({
|
|
3813
|
-
async autocompleteContacts({ query: r, signal: i }) {
|
|
3814
|
-
let a = n();
|
|
3815
|
-
if (!a) return [];
|
|
3816
|
-
let { data: o } = await t.get(e(a, "addressbooks"), {
|
|
3817
|
-
params: {
|
|
3818
|
-
action: "autocomplete",
|
|
3819
|
-
query: r,
|
|
3820
|
-
columns: Jo,
|
|
3821
|
-
email: !0
|
|
3822
|
-
},
|
|
3823
|
-
signal: i
|
|
3824
|
-
}), { data: s } = Ko.parse(o), c = s.map(([e, t, n, r, i]) => ({
|
|
3825
|
-
id: String(e ?? ""),
|
|
3826
|
-
displayName: String(t ?? ""),
|
|
3827
|
-
email: String(n || r || i || "")
|
|
3828
|
-
})).filter((e) => !!e.email);
|
|
3829
|
-
return po(Go).parse(c);
|
|
3830
|
-
},
|
|
3831
|
-
async sendMail({ from: r, to: i, subject: a, htmlContent: o, signal: s }) {
|
|
3832
|
-
let c = n();
|
|
3833
|
-
if (!c) throw Error("Open-Xchange API url is not configured");
|
|
3834
|
-
let { data: l } = await t.post(e(c, "mail", "compose"), [], {
|
|
3835
|
-
params: { type: "new" },
|
|
3836
|
-
signal: s
|
|
3837
|
-
}), { data: u } = qo.parse(l), d = [r.name ?? "", r.email], f = new FormData();
|
|
3838
|
-
f.append("JSON", JSON.stringify({
|
|
3839
|
-
from: d,
|
|
3840
|
-
sender: d,
|
|
3841
|
-
to: [[i.name ?? "", i.email]],
|
|
3842
|
-
subject: a,
|
|
3843
|
-
content: o,
|
|
3844
|
-
contentType: "text/html"
|
|
3845
|
-
})), await t.post(e(c, "mail", "compose", u.id, "send"), f, { signal: s });
|
|
3846
|
-
}
|
|
3847
|
-
});
|
|
3848
|
-
//#endregion
|
|
3849
|
-
export { qo as i, Go as n, Ko as r, Yo as t };
|
|
3965
|
+
export { go as a, Qo as i, Xo as n, es as o, Bo as r, Wo as t };
|