@hype-stack/cli 0.7.0 → 0.8.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.
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { t as e } from "../cli-DTZHjJ1z.js";
3
- Object.freeze({ status: "aborted" });
4
- function t(e, t, n) {
2
+ import { t as e } from "../cli-COhykLTy.js";
3
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
4
+ var t;
5
+ function n(e, t, n) {
5
6
  function r(n, r) {
6
7
  if (n._zod || Object.defineProperty(n, "_zod", {
7
8
  value: {
@@ -30,28 +31,30 @@ function t(e, t, n) {
30
31
  }
31
32
  return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
32
33
  }
33
- var n = class extends Error {
34
+ var r = class extends Error {
34
35
  constructor() {
35
36
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
36
37
  }
37
- }, r = class extends Error {
38
+ }, i = class extends Error {
38
39
  constructor(e) {
39
40
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
40
41
  }
41
- }, i = {};
42
- function a(e) {
43
- return e && Object.assign(i, e), i;
42
+ };
43
+ (t = globalThis).__zod_globalConfig ?? (t.__zod_globalConfig = {});
44
+ var a = globalThis.__zod_globalConfig;
45
+ function o(e) {
46
+ return e && Object.assign(a, e), a;
44
47
  }
45
48
  //#endregion
46
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
47
- function o(e) {
49
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
50
+ function s(e) {
48
51
  let t = Object.values(e).filter((e) => typeof e == "number");
49
52
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
50
53
  }
51
- function s(e, t) {
54
+ function c(e, t) {
52
55
  return typeof t == "bigint" ? t.toString() : t;
53
56
  }
54
- function c(e) {
57
+ function l(e) {
55
58
  return { get value() {
56
59
  {
57
60
  let t = e();
@@ -60,19 +63,19 @@ function c(e) {
60
63
  throw Error("cached value already set");
61
64
  } };
62
65
  }
63
- function l(e) {
66
+ function u(e) {
64
67
  return e == null;
65
68
  }
66
- function u(e) {
69
+ function d(e) {
67
70
  let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
68
71
  return e.slice(t, n);
69
72
  }
70
- var d = Symbol("evaluating");
71
- function f(e, t, n) {
73
+ var f = /* @__PURE__ */ Symbol("evaluating");
74
+ function p(e, t, n) {
72
75
  let r;
73
76
  Object.defineProperty(e, t, {
74
77
  get() {
75
- if (r !== d) return r === void 0 && (r = d, r = n()), r;
78
+ if (r !== f) return r === void 0 && (r = f, r = n()), r;
76
79
  },
77
80
  set(n) {
78
81
  Object.defineProperty(e, t, { value: n });
@@ -80,7 +83,7 @@ function f(e, t, n) {
80
83
  configurable: !0
81
84
  });
82
85
  }
83
- function p(e, t, n) {
86
+ function m(e, t, n) {
84
87
  Object.defineProperty(e, t, {
85
88
  value: n,
86
89
  writable: !0,
@@ -88,7 +91,7 @@ function p(e, t, n) {
88
91
  configurable: !0
89
92
  });
90
93
  }
91
- function m(...e) {
94
+ function h(...e) {
92
95
  let t = {};
93
96
  for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
94
97
  return Object.defineProperties({}, t);
@@ -100,40 +103,40 @@ function te(e) {
100
103
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
101
104
  }
102
105
  var ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
103
- function h(e) {
106
+ function g(e) {
104
107
  return typeof e == "object" && !!e && !Array.isArray(e);
105
108
  }
106
- var re = c(() => {
107
- if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
109
+ var re = /* @__PURE__ */ l(() => {
110
+ if (a.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
108
111
  try {
109
112
  return Function(""), !0;
110
113
  } catch {
111
114
  return !1;
112
115
  }
113
116
  });
114
- function g(e) {
115
- if (h(e) === !1) return !1;
117
+ function _(e) {
118
+ if (g(e) === !1) return !1;
116
119
  let t = e.constructor;
117
120
  if (t === void 0 || typeof t != "function") return !0;
118
121
  let n = t.prototype;
119
- return !(h(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
122
+ return !(g(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
120
123
  }
121
124
  function ie(e) {
122
- return g(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
125
+ return _(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
123
126
  }
124
- var ae = new Set([
127
+ var ae = /* @__PURE__ */ new Set([
125
128
  "string",
126
129
  "number",
127
130
  "symbol"
128
131
  ]);
129
- function _(e) {
132
+ function v(e) {
130
133
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
131
134
  }
132
- function v(e, t, n) {
135
+ function y(e, t, n) {
133
136
  let r = new e._zod.constr(t ?? e._zod.def);
134
137
  return (!t || n?.parent) && (r._zod.parent = e), r;
135
138
  }
136
- function y(e) {
139
+ function b(e) {
137
140
  let t = e;
138
141
  if (!t) return {};
139
142
  if (typeof t == "string") return { error: () => t };
@@ -153,14 +156,14 @@ function oe(e) {
153
156
  function se(e, t) {
154
157
  let n = e._zod.def, r = n.checks;
155
158
  if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
156
- return v(e, m(e._zod.def, {
159
+ return y(e, h(e._zod.def, {
157
160
  get shape() {
158
161
  let e = {};
159
162
  for (let r in t) {
160
163
  if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
161
164
  t[r] && (e[r] = n.shape[r]);
162
165
  }
163
- return p(this, "shape", e), e;
166
+ return m(this, "shape", e), e;
164
167
  },
165
168
  checks: []
166
169
  }));
@@ -168,62 +171,63 @@ function se(e, t) {
168
171
  function ce(e, t) {
169
172
  let n = e._zod.def, r = n.checks;
170
173
  if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
171
- return v(e, m(e._zod.def, {
174
+ return y(e, h(e._zod.def, {
172
175
  get shape() {
173
176
  let r = { ...e._zod.def.shape };
174
177
  for (let e in t) {
175
178
  if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
176
179
  t[e] && delete r[e];
177
180
  }
178
- return p(this, "shape", r), r;
181
+ return m(this, "shape", r), r;
179
182
  },
180
183
  checks: []
181
184
  }));
182
185
  }
183
186
  function le(e, t) {
184
- if (!g(t)) throw Error("Invalid input to extend: expected a plain object");
187
+ if (!_(t)) throw Error("Invalid input to extend: expected a plain object");
185
188
  let n = e._zod.def.checks;
186
189
  if (n && n.length > 0) {
187
190
  let n = e._zod.def.shape;
188
191
  for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
189
192
  }
190
- return v(e, m(e._zod.def, { get shape() {
193
+ return y(e, h(e._zod.def, { get shape() {
191
194
  let n = {
192
195
  ...e._zod.def.shape,
193
196
  ...t
194
197
  };
195
- return p(this, "shape", n), n;
198
+ return m(this, "shape", n), n;
196
199
  } }));
197
200
  }
198
201
  function ue(e, t) {
199
- if (!g(t)) throw Error("Invalid input to safeExtend: expected a plain object");
200
- return v(e, m(e._zod.def, { get shape() {
202
+ if (!_(t)) throw Error("Invalid input to safeExtend: expected a plain object");
203
+ return y(e, h(e._zod.def, { get shape() {
201
204
  let n = {
202
205
  ...e._zod.def.shape,
203
206
  ...t
204
207
  };
205
- return p(this, "shape", n), n;
208
+ return m(this, "shape", n), n;
206
209
  } }));
207
210
  }
208
211
  function de(e, t) {
209
- return v(e, m(e._zod.def, {
212
+ if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
213
+ return y(e, h(e._zod.def, {
210
214
  get shape() {
211
215
  let n = {
212
216
  ...e._zod.def.shape,
213
217
  ...t._zod.def.shape
214
218
  };
215
- return p(this, "shape", n), n;
219
+ return m(this, "shape", n), n;
216
220
  },
217
221
  get catchall() {
218
222
  return t._zod.def.catchall;
219
223
  },
220
- checks: []
224
+ checks: t._zod.def.checks ?? []
221
225
  }));
222
226
  }
223
227
  function fe(e, t, n) {
224
228
  let r = t._zod.def.checks;
225
229
  if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
226
- return v(t, m(t._zod.def, {
230
+ return y(t, h(t._zod.def, {
227
231
  get shape() {
228
232
  let r = t._zod.def.shape, i = { ...r };
229
233
  if (n) for (let t in n) {
@@ -237,13 +241,13 @@ function fe(e, t, n) {
237
241
  type: "optional",
238
242
  innerType: r[t]
239
243
  }) : r[t];
240
- return p(this, "shape", i), i;
244
+ return m(this, "shape", i), i;
241
245
  },
242
246
  checks: []
243
247
  }));
244
248
  }
245
249
  function pe(e, t, n) {
246
- return v(t, m(t._zod.def, { get shape() {
250
+ return y(t, h(t._zod.def, { get shape() {
247
251
  let r = t._zod.def.shape, i = { ...r };
248
252
  if (n) for (let t in n) {
249
253
  if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
@@ -256,15 +260,20 @@ function pe(e, t, n) {
256
260
  type: "nonoptional",
257
261
  innerType: r[t]
258
262
  });
259
- return p(this, "shape", i), i;
263
+ return m(this, "shape", i), i;
260
264
  } }));
261
265
  }
262
- function b(e, t = 0) {
266
+ function x(e, t = 0) {
263
267
  if (e.aborted === !0) return !0;
264
268
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
265
269
  return !1;
266
270
  }
267
- function x(e, t) {
271
+ function me(e, t = 0) {
272
+ if (e.aborted === !0) return !0;
273
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
274
+ return !1;
275
+ }
276
+ function he(e, t) {
268
277
  return t.map((t) => {
269
278
  var n;
270
279
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
@@ -274,11 +283,8 @@ function S(e) {
274
283
  return typeof e == "string" ? e : e?.message;
275
284
  }
276
285
  function C(e, t, n) {
277
- let r = {
278
- ...e,
279
- path: e.path ?? []
280
- };
281
- return e.message || (r.message = S(e.inst?._zod.def?.error?.(e)) ?? S(t?.error?.(e)) ?? S(n.customError?.(e)) ?? S(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
286
+ let r = e.message ? e.message : S(e.inst?._zod.def?.error?.(e)) ?? S(t?.error?.(e)) ?? S(n.customError?.(e)) ?? S(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
287
+ return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
282
288
  }
283
289
  function w(e) {
284
290
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
@@ -293,20 +299,20 @@ function T(...e) {
293
299
  } : { ...t };
294
300
  }
295
301
  //#endregion
296
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
297
- var me = (e, t) => {
302
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
303
+ var ge = (e, t) => {
298
304
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
299
305
  value: e._zod,
300
306
  enumerable: !1
301
307
  }), Object.defineProperty(e, "issues", {
302
308
  value: t,
303
309
  enumerable: !1
304
- }), e.message = JSON.stringify(t, s, 2), Object.defineProperty(e, "toString", {
310
+ }), e.message = JSON.stringify(t, c, 2), Object.defineProperty(e, "toString", {
305
311
  value: () => e.message,
306
312
  enumerable: !1
307
313
  });
308
- }, he = t("$ZodError", me), ge = t("$ZodError", me, { Parent: Error });
309
- function _e(e, t = (e) => e.message) {
314
+ }, _e = n("$ZodError", ge), ve = n("$ZodError", ge, { Parent: Error });
315
+ function ye(e, t = (e) => e.message) {
310
316
  let n = {}, r = [];
311
317
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
312
318
  return {
@@ -314,124 +320,148 @@ function _e(e, t = (e) => e.message) {
314
320
  fieldErrors: n
315
321
  };
316
322
  }
317
- function ve(e, t = (e) => e.message) {
318
- let n = { _errors: [] }, r = (e) => {
319
- for (let i of e.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((e) => r({ issues: e }));
320
- else if (i.code === "invalid_key") r({ issues: i.issues });
321
- else if (i.code === "invalid_element") r({ issues: i.issues });
322
- else if (i.path.length === 0) n._errors.push(t(i));
323
+ function be(e, t = (e) => e.message) {
324
+ let n = { _errors: [] }, r = (e, i = []) => {
325
+ for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
326
+ else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
327
+ else if (a.code === "invalid_element") r({ issues: a.issues }, [...i, ...a.path]);
323
328
  else {
324
- let e = n, r = 0;
325
- for (; r < i.path.length;) {
326
- let n = i.path[r];
327
- r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
329
+ let e = [...i, ...a.path];
330
+ if (e.length === 0) n._errors.push(t(a));
331
+ else {
332
+ let r = n, i = 0;
333
+ for (; i < e.length;) {
334
+ let n = e[i];
335
+ i === e.length - 1 ? (r[n] = r[n] || { _errors: [] }, r[n]._errors.push(t(a))) : r[n] = r[n] || { _errors: [] }, r = r[n], i++;
336
+ }
328
337
  }
329
338
  }
330
339
  };
331
340
  return r(e), n;
332
341
  }
333
- function ye(e) {
342
+ function xe(e) {
334
343
  let t = [], n = e.map((e) => typeof e == "object" ? e.key : e);
335
344
  for (let e of n) typeof e == "number" ? t.push(`[${e}]`) : typeof e == "symbol" ? t.push(`[${JSON.stringify(String(e))}]`) : /[^\w$]/.test(e) ? t.push(`[${JSON.stringify(e)}]`) : (t.length && t.push("."), t.push(e));
336
345
  return t.join("");
337
346
  }
338
- function be(e) {
347
+ function Se(e) {
339
348
  let t = [], n = [...e.issues].sort((e, t) => (e.path ?? []).length - (t.path ?? []).length);
340
- for (let e of n) t.push(`✖ ${e.message}`), e.path?.length && t.push(` → at ${ye(e.path)}`);
349
+ for (let e of n) t.push(`✖ ${e.message}`), e.path?.length && t.push(` → at ${xe(e.path)}`);
341
350
  return t.join("\n");
342
351
  }
343
352
  //#endregion
344
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
345
- var E = (e) => (t, r, i, o) => {
346
- let s = i ? Object.assign(i, { async: !1 }) : { async: !1 }, c = t._zod.run({
347
- value: r,
353
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
354
+ var E = (e) => (t, n, i, a) => {
355
+ let s = i ? {
356
+ ...i,
357
+ async: !1
358
+ } : { async: !1 }, c = t._zod.run({
359
+ value: n,
348
360
  issues: []
349
361
  }, s);
350
- if (c instanceof Promise) throw new n();
362
+ if (c instanceof Promise) throw new r();
351
363
  if (c.issues.length) {
352
- let t = new (o?.Err ?? e)(c.issues.map((e) => C(e, s, a())));
353
- throw ne(t, o?.callee), t;
364
+ let t = new (a?.Err ?? e)(c.issues.map((e) => C(e, s, o())));
365
+ throw ne(t, a?.callee), t;
354
366
  }
355
367
  return c.value;
356
368
  }, D = (e) => async (t, n, r, i) => {
357
- let o = r ? Object.assign(r, { async: !0 }) : { async: !0 }, s = t._zod.run({
369
+ let a = r ? {
370
+ ...r,
371
+ async: !0
372
+ } : { async: !0 }, s = t._zod.run({
358
373
  value: n,
359
374
  issues: []
360
- }, o);
375
+ }, a);
361
376
  if (s instanceof Promise && (s = await s), s.issues.length) {
362
- let t = new (i?.Err ?? e)(s.issues.map((e) => C(e, o, a())));
377
+ let t = new (i?.Err ?? e)(s.issues.map((e) => C(e, a, o())));
363
378
  throw ne(t, i?.callee), t;
364
379
  }
365
380
  return s.value;
366
- }, O = (e) => (t, r, i) => {
367
- let o = i ? {
381
+ }, O = (e) => (t, n, i) => {
382
+ let a = i ? {
368
383
  ...i,
369
384
  async: !1
370
385
  } : { async: !1 }, s = t._zod.run({
371
- value: r,
386
+ value: n,
372
387
  issues: []
373
- }, o);
374
- if (s instanceof Promise) throw new n();
388
+ }, a);
389
+ if (s instanceof Promise) throw new r();
375
390
  return s.issues.length ? {
376
391
  success: !1,
377
- error: new (e ?? he)(s.issues.map((e) => C(e, o, a())))
392
+ error: new (e ?? _e)(s.issues.map((e) => C(e, a, o())))
378
393
  } : {
379
394
  success: !0,
380
395
  data: s.value
381
396
  };
382
- }, xe = /* @__PURE__ */ O(ge), k = (e) => async (t, n, r) => {
383
- let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
397
+ }, Ce = /* @__PURE__ */ O(ve), k = (e) => async (t, n, r) => {
398
+ let i = r ? {
399
+ ...r,
400
+ async: !0
401
+ } : { async: !0 }, a = t._zod.run({
384
402
  value: n,
385
403
  issues: []
386
404
  }, i);
387
- return o instanceof Promise && (o = await o), o.issues.length ? {
405
+ return a instanceof Promise && (a = await a), a.issues.length ? {
388
406
  success: !1,
389
- error: new e(o.issues.map((e) => C(e, i, a())))
407
+ error: new e(a.issues.map((e) => C(e, i, o())))
390
408
  } : {
391
409
  success: !0,
392
- data: o.value
410
+ data: a.value
393
411
  };
394
- }, Se = /* @__PURE__ */ k(ge), Ce = (e) => (t, n, r) => {
395
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
412
+ }, we = /* @__PURE__ */ k(ve), Te = (e) => (t, n, r) => {
413
+ let i = r ? {
414
+ ...r,
415
+ direction: "backward"
416
+ } : { direction: "backward" };
396
417
  return E(e)(t, n, i);
397
- }, we = (e) => (t, n, r) => E(e)(t, n, r), Te = (e) => async (t, n, r) => {
398
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
418
+ }, Ee = (e) => (t, n, r) => E(e)(t, n, r), De = (e) => async (t, n, r) => {
419
+ let i = r ? {
420
+ ...r,
421
+ direction: "backward"
422
+ } : { direction: "backward" };
399
423
  return D(e)(t, n, i);
400
- }, Ee = (e) => async (t, n, r) => D(e)(t, n, r), De = (e) => (t, n, r) => {
401
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
424
+ }, Oe = (e) => async (t, n, r) => D(e)(t, n, r), ke = (e) => (t, n, r) => {
425
+ let i = r ? {
426
+ ...r,
427
+ direction: "backward"
428
+ } : { direction: "backward" };
402
429
  return O(e)(t, n, i);
403
- }, Oe = (e) => (t, n, r) => O(e)(t, n, r), ke = (e) => async (t, n, r) => {
404
- let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
430
+ }, Ae = (e) => (t, n, r) => O(e)(t, n, r), je = (e) => async (t, n, r) => {
431
+ let i = r ? {
432
+ ...r,
433
+ direction: "backward"
434
+ } : { direction: "backward" };
405
435
  return k(e)(t, n, i);
406
- }, Ae = (e) => async (t, n, r) => k(e)(t, n, r), je = /^[cC][^\s-]{8,}$/, Me = /^[0-9a-z]+$/, Ne = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Pe = /^[0-9a-vA-V]{20}$/, Fe = /^[A-Za-z0-9]{27}$/, Ie = /^[a-zA-Z0-9_-]{21}$/, Le = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Re = /^([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})$/, ze = (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)$/, Be = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ve = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
407
- function He() {
408
- return new RegExp(Ve, "u");
436
+ }, Me = (e) => async (t, n, r) => k(e)(t, n, r), Ne = /^[cC][0-9a-z]{6,}$/, Pe = /^[0-9a-z]+$/, Fe = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ie = /^[0-9a-vA-V]{20}$/, Le = /^[A-Za-z0-9]{27}$/, Re = /^[a-zA-Z0-9_-]{21}$/, ze = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Be = /^([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})$/, Ve = (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)$/, He = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ue = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
437
+ function We() {
438
+ return new RegExp(Ue, "u");
409
439
  }
410
- var Ue = /^(?:(?: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])$/, We = /^(([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}|:))$/, Ge = /^((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])$/, Ke = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, qe = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Je = /^[A-Za-z0-9_-]*$/, Ye = /^\+[1-9]\d{6,14}$/, Xe = "(?:(?:\\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])))", Ze = /* @__PURE__ */ RegExp(`^${Xe}$`);
411
- function Qe(e) {
440
+ var Ge = /^(?:(?: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])$/, Ke = /^(([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}|:))$/, qe = /^((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])$/, Je = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ye = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Xe = /^[A-Za-z0-9_-]*$/, Ze = /^https?$/, Qe = /^\+[1-9]\d{6,14}$/, $e = "(?:(?:\\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])))", et = /* @__PURE__ */ RegExp(`^${$e}$`);
441
+ function tt(e) {
412
442
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
413
443
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
414
444
  }
415
- function $e(e) {
416
- return RegExp(`^${Qe(e)}$`);
445
+ function nt(e) {
446
+ return RegExp(`^${tt(e)}$`);
417
447
  }
418
- function et(e) {
419
- let t = Qe({ precision: e.precision }), n = ["Z"];
448
+ function rt(e) {
449
+ let t = tt({ precision: e.precision }), n = ["Z"];
420
450
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
421
451
  let r = `${t}(?:${n.join("|")})`;
422
- return RegExp(`^${Xe}T(?:${r})$`);
452
+ return RegExp(`^${$e}T(?:${r})$`);
423
453
  }
424
- var tt = (e) => {
454
+ var it = (e) => {
425
455
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
426
456
  return RegExp(`^${t}$`);
427
- }, nt = /^[^A-Z]*$/, rt = /^[^a-z]*$/, A = /* @__PURE__ */ t("$ZodCheck", (e, t) => {
457
+ }, at = /^[^A-Z]*$/, ot = /^[^a-z]*$/, A = /* @__PURE__ */ n("$ZodCheck", (e, t) => {
428
458
  var n;
429
459
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
430
- }), it = /* @__PURE__ */ t("$ZodCheckMaxLength", (e, t) => {
460
+ }), st = /* @__PURE__ */ n("$ZodCheckMaxLength", (e, t) => {
431
461
  var n;
432
462
  A.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
433
463
  let t = e.value;
434
- return !l(t) && t.length !== void 0;
464
+ return !u(t) && t.length !== void 0;
435
465
  }), e._zod.onattach.push((e) => {
436
466
  let n = e._zod.bag.maximum ?? Infinity;
437
467
  t.maximum < n && (e._zod.bag.maximum = t.maximum);
@@ -449,11 +479,11 @@ var tt = (e) => {
449
479
  continue: !t.abort
450
480
  });
451
481
  };
452
- }), at = /* @__PURE__ */ t("$ZodCheckMinLength", (e, t) => {
482
+ }), ct = /* @__PURE__ */ n("$ZodCheckMinLength", (e, t) => {
453
483
  var n;
454
484
  A.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
455
485
  let t = e.value;
456
- return !l(t) && t.length !== void 0;
486
+ return !u(t) && t.length !== void 0;
457
487
  }), e._zod.onattach.push((e) => {
458
488
  let n = e._zod.bag.minimum ?? -Infinity;
459
489
  t.minimum > n && (e._zod.bag.minimum = t.minimum);
@@ -471,11 +501,11 @@ var tt = (e) => {
471
501
  continue: !t.abort
472
502
  });
473
503
  };
474
- }), ot = /* @__PURE__ */ t("$ZodCheckLengthEquals", (e, t) => {
504
+ }), lt = /* @__PURE__ */ n("$ZodCheckLengthEquals", (e, t) => {
475
505
  var n;
476
506
  A.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
477
507
  let t = e.value;
478
- return !l(t) && t.length !== void 0;
508
+ return !u(t) && t.length !== void 0;
479
509
  }), e._zod.onattach.push((e) => {
480
510
  let n = e._zod.bag;
481
511
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
@@ -499,7 +529,7 @@ var tt = (e) => {
499
529
  continue: !t.abort
500
530
  });
501
531
  };
502
- }), j = /* @__PURE__ */ t("$ZodCheckStringFormat", (e, t) => {
532
+ }), j = /* @__PURE__ */ n("$ZodCheckStringFormat", (e, t) => {
503
533
  var n, r;
504
534
  A.init(e, t), e._zod.onattach.push((e) => {
505
535
  let n = e._zod.bag;
@@ -515,7 +545,7 @@ var tt = (e) => {
515
545
  continue: !t.abort
516
546
  });
517
547
  }) : (r = e._zod).check ?? (r.check = () => {});
518
- }), st = /* @__PURE__ */ t("$ZodCheckRegex", (e, t) => {
548
+ }), ut = /* @__PURE__ */ n("$ZodCheckRegex", (e, t) => {
519
549
  j.init(e, t), e._zod.check = (n) => {
520
550
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
521
551
  origin: "string",
@@ -527,13 +557,13 @@ var tt = (e) => {
527
557
  continue: !t.abort
528
558
  });
529
559
  };
530
- }), ct = /* @__PURE__ */ t("$ZodCheckLowerCase", (e, t) => {
531
- t.pattern ??= nt, j.init(e, t);
532
- }), lt = /* @__PURE__ */ t("$ZodCheckUpperCase", (e, t) => {
533
- t.pattern ??= rt, j.init(e, t);
534
- }), ut = /* @__PURE__ */ t("$ZodCheckIncludes", (e, t) => {
560
+ }), dt = /* @__PURE__ */ n("$ZodCheckLowerCase", (e, t) => {
561
+ t.pattern ??= at, j.init(e, t);
562
+ }), ft = /* @__PURE__ */ n("$ZodCheckUpperCase", (e, t) => {
563
+ t.pattern ??= ot, j.init(e, t);
564
+ }), pt = /* @__PURE__ */ n("$ZodCheckIncludes", (e, t) => {
535
565
  A.init(e, t);
536
- let n = _(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
566
+ let n = v(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
537
567
  t.pattern = r, e._zod.onattach.push((e) => {
538
568
  let t = e._zod.bag;
539
569
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
@@ -548,9 +578,9 @@ var tt = (e) => {
548
578
  continue: !t.abort
549
579
  });
550
580
  };
551
- }), dt = /* @__PURE__ */ t("$ZodCheckStartsWith", (e, t) => {
581
+ }), mt = /* @__PURE__ */ n("$ZodCheckStartsWith", (e, t) => {
552
582
  A.init(e, t);
553
- let n = RegExp(`^${_(t.prefix)}.*`);
583
+ let n = RegExp(`^${v(t.prefix)}.*`);
554
584
  t.pattern ??= n, e._zod.onattach.push((e) => {
555
585
  let t = e._zod.bag;
556
586
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -565,9 +595,9 @@ var tt = (e) => {
565
595
  continue: !t.abort
566
596
  });
567
597
  };
568
- }), ft = /* @__PURE__ */ t("$ZodCheckEndsWith", (e, t) => {
598
+ }), ht = /* @__PURE__ */ n("$ZodCheckEndsWith", (e, t) => {
569
599
  A.init(e, t);
570
- let n = RegExp(`.*${_(t.suffix)}$`);
600
+ let n = RegExp(`.*${v(t.suffix)}$`);
571
601
  t.pattern ??= n, e._zod.onattach.push((e) => {
572
602
  let t = e._zod.bag;
573
603
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -582,11 +612,11 @@ var tt = (e) => {
582
612
  continue: !t.abort
583
613
  });
584
614
  };
585
- }), pt = /* @__PURE__ */ t("$ZodCheckOverwrite", (e, t) => {
615
+ }), gt = /* @__PURE__ */ n("$ZodCheckOverwrite", (e, t) => {
586
616
  A.init(e, t), e._zod.check = (e) => {
587
617
  e.value = t.tx(e.value);
588
618
  };
589
- }), mt = class {
619
+ }), _t = class {
590
620
  constructor(e = []) {
591
621
  this.content = [], this.indent = 0, this && (this.args = e);
592
622
  }
@@ -605,42 +635,42 @@ var tt = (e) => {
605
635
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
606
636
  return new e(...t, n.join("\n"));
607
637
  }
608
- }, ht = {
638
+ }, vt = {
609
639
  major: 4,
610
- minor: 3,
611
- patch: 6
612
- }, M = /* @__PURE__ */ t("$ZodType", (e, t) => {
613
- var r;
614
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ht;
640
+ minor: 4,
641
+ patch: 3
642
+ }, M = /* @__PURE__ */ n("$ZodType", (e, t) => {
643
+ var n;
644
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vt;
615
645
  let i = [...e._zod.def.checks ?? []];
616
646
  e._zod.traits.has("$ZodCheck") && i.unshift(e);
617
647
  for (let t of i) for (let n of t._zod.onattach) n(e);
618
- if (i.length === 0) (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
648
+ if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
619
649
  e._zod.run = e._zod.parse;
620
650
  });
621
651
  else {
622
- let t = (e, t, r) => {
623
- let i = b(e), a;
652
+ let t = (e, t, n) => {
653
+ let i = x(e), a;
624
654
  for (let o of t) {
625
655
  if (o._zod.def.when) {
626
- if (!o._zod.def.when(e)) continue;
656
+ if (me(e) || !o._zod.def.when(e)) continue;
627
657
  } else if (i) continue;
628
658
  let t = e.issues.length, s = o._zod.check(e);
629
- if (s instanceof Promise && r?.async === !1) throw new n();
659
+ if (s instanceof Promise && n?.async === !1) throw new r();
630
660
  if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
631
- await s, e.issues.length !== t && (i ||= b(e, t));
661
+ await s, e.issues.length !== t && (i ||= x(e, t));
632
662
  });
633
663
  else {
634
664
  if (e.issues.length === t) continue;
635
- i ||= b(e, t);
665
+ i ||= x(e, t);
636
666
  }
637
667
  }
638
668
  return a ? a.then(() => e) : e;
639
- }, r = (r, a, o) => {
640
- if (b(r)) return r.aborted = !0, r;
669
+ }, n = (n, a, o) => {
670
+ if (x(n)) return n.aborted = !0, n;
641
671
  let s = t(a, i, o);
642
672
  if (s instanceof Promise) {
643
- if (o.async === !1) throw new n();
673
+ if (o.async === !1) throw new r();
644
674
  return s.then((t) => e._zod.parse(t, o));
645
675
  }
646
676
  return e._zod.parse(s, o);
@@ -655,30 +685,30 @@ var tt = (e) => {
655
685
  ...o,
656
686
  skipChecks: !0
657
687
  });
658
- return t instanceof Promise ? t.then((e) => r(e, a, o)) : r(t, a, o);
688
+ return t instanceof Promise ? t.then((e) => n(e, a, o)) : n(t, a, o);
659
689
  }
660
690
  let s = e._zod.parse(a, o);
661
691
  if (s instanceof Promise) {
662
- if (o.async === !1) throw new n();
692
+ if (o.async === !1) throw new r();
663
693
  return s.then((e) => t(e, i, o));
664
694
  }
665
695
  return t(s, i, o);
666
696
  };
667
697
  }
668
- f(e, "~standard", () => ({
698
+ p(e, "~standard", () => ({
669
699
  validate: (t) => {
670
700
  try {
671
- let n = xe(e, t);
701
+ let n = Ce(e, t);
672
702
  return n.success ? { value: n.data } : { issues: n.error?.issues };
673
703
  } catch {
674
- return Se(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
704
+ return we(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
675
705
  }
676
706
  },
677
707
  vendor: "zod",
678
708
  version: 1
679
709
  }));
680
- }), N = /* @__PURE__ */ t("$ZodString", (e, t) => {
681
- M.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? tt(e._zod.bag), e._zod.parse = (n, r) => {
710
+ }), N = /* @__PURE__ */ n("$ZodString", (e, t) => {
711
+ M.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? it(e._zod.bag), e._zod.parse = (n, r) => {
682
712
  if (t.coerce) try {
683
713
  n.value = String(n.value);
684
714
  } catch {}
@@ -689,11 +719,11 @@ var tt = (e) => {
689
719
  inst: e
690
720
  }), n;
691
721
  };
692
- }), P = /* @__PURE__ */ t("$ZodStringFormat", (e, t) => {
722
+ }), P = /* @__PURE__ */ n("$ZodStringFormat", (e, t) => {
693
723
  j.init(e, t), N.init(e, t);
694
- }), gt = /* @__PURE__ */ t("$ZodGUID", (e, t) => {
695
- t.pattern ??= Re, P.init(e, t);
696
- }), _t = /* @__PURE__ */ t("$ZodUUID", (e, t) => {
724
+ }), yt = /* @__PURE__ */ n("$ZodGUID", (e, t) => {
725
+ t.pattern ??= Be, P.init(e, t);
726
+ }), bt = /* @__PURE__ */ n("$ZodUUID", (e, t) => {
697
727
  if (t.version) {
698
728
  let e = {
699
729
  v1: 1,
@@ -706,15 +736,27 @@ var tt = (e) => {
706
736
  v8: 8
707
737
  }[t.version];
708
738
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
709
- t.pattern ??= ze(e);
710
- } else t.pattern ??= ze();
739
+ t.pattern ??= Ve(e);
740
+ } else t.pattern ??= Ve();
711
741
  P.init(e, t);
712
- }), vt = /* @__PURE__ */ t("$ZodEmail", (e, t) => {
713
- t.pattern ??= Be, P.init(e, t);
714
- }), yt = /* @__PURE__ */ t("$ZodURL", (e, t) => {
742
+ }), xt = /* @__PURE__ */ n("$ZodEmail", (e, t) => {
743
+ t.pattern ??= He, P.init(e, t);
744
+ }), St = /* @__PURE__ */ n("$ZodURL", (e, t) => {
715
745
  P.init(e, t), e._zod.check = (n) => {
716
746
  try {
717
- let r = n.value.trim(), i = new URL(r);
747
+ let r = n.value.trim();
748
+ if (!t.normalize && t.protocol?.source === Ze.source && !/^https?:\/\//i.test(r)) {
749
+ n.issues.push({
750
+ code: "invalid_format",
751
+ format: "url",
752
+ note: "Invalid URL format",
753
+ input: n.value,
754
+ inst: e,
755
+ continue: !t.abort
756
+ });
757
+ return;
758
+ }
759
+ let i = new URL(r);
718
760
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
719
761
  code: "invalid_format",
720
762
  format: "url",
@@ -743,32 +785,32 @@ var tt = (e) => {
743
785
  });
744
786
  }
745
787
  };
746
- }), bt = /* @__PURE__ */ t("$ZodEmoji", (e, t) => {
747
- t.pattern ??= He(), P.init(e, t);
748
- }), xt = /* @__PURE__ */ t("$ZodNanoID", (e, t) => {
749
- t.pattern ??= Ie, P.init(e, t);
750
- }), St = /* @__PURE__ */ t("$ZodCUID", (e, t) => {
751
- t.pattern ??= je, P.init(e, t);
752
- }), Ct = /* @__PURE__ */ t("$ZodCUID2", (e, t) => {
753
- t.pattern ??= Me, P.init(e, t);
754
- }), wt = /* @__PURE__ */ t("$ZodULID", (e, t) => {
788
+ }), Ct = /* @__PURE__ */ n("$ZodEmoji", (e, t) => {
789
+ t.pattern ??= We(), P.init(e, t);
790
+ }), wt = /* @__PURE__ */ n("$ZodNanoID", (e, t) => {
791
+ t.pattern ??= Re, P.init(e, t);
792
+ }), Tt = /* @__PURE__ */ n("$ZodCUID", (e, t) => {
755
793
  t.pattern ??= Ne, P.init(e, t);
756
- }), Tt = /* @__PURE__ */ t("$ZodXID", (e, t) => {
794
+ }), Et = /* @__PURE__ */ n("$ZodCUID2", (e, t) => {
757
795
  t.pattern ??= Pe, P.init(e, t);
758
- }), Et = /* @__PURE__ */ t("$ZodKSUID", (e, t) => {
796
+ }), Dt = /* @__PURE__ */ n("$ZodULID", (e, t) => {
759
797
  t.pattern ??= Fe, P.init(e, t);
760
- }), Dt = /* @__PURE__ */ t("$ZodISODateTime", (e, t) => {
761
- t.pattern ??= et(t), P.init(e, t);
762
- }), Ot = /* @__PURE__ */ t("$ZodISODate", (e, t) => {
763
- t.pattern ??= Ze, P.init(e, t);
764
- }), kt = /* @__PURE__ */ t("$ZodISOTime", (e, t) => {
765
- t.pattern ??= $e(t), P.init(e, t);
766
- }), At = /* @__PURE__ */ t("$ZodISODuration", (e, t) => {
798
+ }), Ot = /* @__PURE__ */ n("$ZodXID", (e, t) => {
799
+ t.pattern ??= Ie, P.init(e, t);
800
+ }), kt = /* @__PURE__ */ n("$ZodKSUID", (e, t) => {
767
801
  t.pattern ??= Le, P.init(e, t);
768
- }), jt = /* @__PURE__ */ t("$ZodIPv4", (e, t) => {
769
- t.pattern ??= Ue, P.init(e, t), e._zod.bag.format = "ipv4";
770
- }), Mt = /* @__PURE__ */ t("$ZodIPv6", (e, t) => {
771
- t.pattern ??= We, P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
802
+ }), At = /* @__PURE__ */ n("$ZodISODateTime", (e, t) => {
803
+ t.pattern ??= rt(t), P.init(e, t);
804
+ }), jt = /* @__PURE__ */ n("$ZodISODate", (e, t) => {
805
+ t.pattern ??= et, P.init(e, t);
806
+ }), Mt = /* @__PURE__ */ n("$ZodISOTime", (e, t) => {
807
+ t.pattern ??= nt(t), P.init(e, t);
808
+ }), Nt = /* @__PURE__ */ n("$ZodISODuration", (e, t) => {
809
+ t.pattern ??= ze, P.init(e, t);
810
+ }), Pt = /* @__PURE__ */ n("$ZodIPv4", (e, t) => {
811
+ t.pattern ??= Ge, P.init(e, t), e._zod.bag.format = "ipv4";
812
+ }), Ft = /* @__PURE__ */ n("$ZodIPv6", (e, t) => {
813
+ t.pattern ??= Ke, P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
772
814
  try {
773
815
  new URL(`http://[${n.value}]`);
774
816
  } catch {
@@ -781,10 +823,10 @@ var tt = (e) => {
781
823
  });
782
824
  }
783
825
  };
784
- }), Nt = /* @__PURE__ */ t("$ZodCIDRv4", (e, t) => {
785
- t.pattern ??= Ge, P.init(e, t);
786
- }), Pt = /* @__PURE__ */ t("$ZodCIDRv6", (e, t) => {
787
- t.pattern ??= Ke, P.init(e, t), e._zod.check = (n) => {
826
+ }), It = /* @__PURE__ */ n("$ZodCIDRv4", (e, t) => {
827
+ t.pattern ??= qe, P.init(e, t);
828
+ }), Lt = /* @__PURE__ */ n("$ZodCIDRv6", (e, t) => {
829
+ t.pattern ??= Je, P.init(e, t), e._zod.check = (n) => {
788
830
  let r = n.value.split("/");
789
831
  try {
790
832
  if (r.length !== 2) throw Error();
@@ -804,18 +846,18 @@ var tt = (e) => {
804
846
  }
805
847
  };
806
848
  });
807
- function Ft(e) {
849
+ function Rt(e) {
808
850
  if (e === "") return !0;
809
- if (e.length % 4 != 0) return !1;
851
+ if (/\s/.test(e) || e.length % 4 != 0) return !1;
810
852
  try {
811
853
  return atob(e), !0;
812
854
  } catch {
813
855
  return !1;
814
856
  }
815
857
  }
816
- var It = /* @__PURE__ */ t("$ZodBase64", (e, t) => {
817
- t.pattern ??= qe, P.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
818
- Ft(n.value) || n.issues.push({
858
+ var zt = /* @__PURE__ */ n("$ZodBase64", (e, t) => {
859
+ t.pattern ??= Ye, P.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
860
+ Rt(n.value) || n.issues.push({
819
861
  code: "invalid_format",
820
862
  format: "base64",
821
863
  input: n.value,
@@ -824,14 +866,14 @@ var It = /* @__PURE__ */ t("$ZodBase64", (e, t) => {
824
866
  });
825
867
  };
826
868
  });
827
- function Lt(e) {
828
- if (!Je.test(e)) return !1;
869
+ function Bt(e) {
870
+ if (!Xe.test(e)) return !1;
829
871
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
830
- return Ft(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
872
+ return Rt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
831
873
  }
832
- var Rt = /* @__PURE__ */ t("$ZodBase64URL", (e, t) => {
833
- t.pattern ??= Je, P.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
834
- Lt(n.value) || n.issues.push({
874
+ var Vt = /* @__PURE__ */ n("$ZodBase64URL", (e, t) => {
875
+ t.pattern ??= Xe, P.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
876
+ Bt(n.value) || n.issues.push({
835
877
  code: "invalid_format",
836
878
  format: "base64url",
837
879
  input: n.value,
@@ -839,10 +881,10 @@ var Rt = /* @__PURE__ */ t("$ZodBase64URL", (e, t) => {
839
881
  continue: !t.abort
840
882
  });
841
883
  };
842
- }), zt = /* @__PURE__ */ t("$ZodE164", (e, t) => {
843
- t.pattern ??= Ye, P.init(e, t);
884
+ }), Ht = /* @__PURE__ */ n("$ZodE164", (e, t) => {
885
+ t.pattern ??= Qe, P.init(e, t);
844
886
  });
845
- function Bt(e, t = null) {
887
+ function Ut(e, t = null) {
846
888
  try {
847
889
  let n = e.split(".");
848
890
  if (n.length !== 3) return !1;
@@ -854,9 +896,9 @@ function Bt(e, t = null) {
854
896
  return !1;
855
897
  }
856
898
  }
857
- var Vt = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
899
+ var Wt = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
858
900
  P.init(e, t), e._zod.check = (n) => {
859
- Bt(n.value, t.alg) || n.issues.push({
901
+ Ut(n.value, t.alg) || n.issues.push({
860
902
  code: "invalid_format",
861
903
  format: "jwt",
862
904
  input: n.value,
@@ -864,9 +906,9 @@ var Vt = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
864
906
  continue: !t.abort
865
907
  });
866
908
  };
867
- }), Ht = /* @__PURE__ */ t("$ZodUnknown", (e, t) => {
909
+ }), Gt = /* @__PURE__ */ n("$ZodUnknown", (e, t) => {
868
910
  M.init(e, t), e._zod.parse = (e) => e;
869
- }), Ut = /* @__PURE__ */ t("$ZodNever", (e, t) => {
911
+ }), Kt = /* @__PURE__ */ n("$ZodNever", (e, t) => {
870
912
  M.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
871
913
  expected: "never",
872
914
  code: "invalid_type",
@@ -874,10 +916,10 @@ var Vt = /* @__PURE__ */ t("$ZodJWT", (e, t) => {
874
916
  inst: e
875
917
  }), t);
876
918
  });
877
- function Wt(e, t, n) {
878
- e.issues.length && t.issues.push(...x(n, e.issues)), t.value[n] = e.value;
919
+ function qt(e, t, n) {
920
+ e.issues.length && t.issues.push(...he(n, e.issues)), t.value[n] = e.value;
879
921
  }
880
- var Gt = /* @__PURE__ */ t("$ZodArray", (e, t) => {
922
+ var Jt = /* @__PURE__ */ n("$ZodArray", (e, t) => {
881
923
  M.init(e, t), e._zod.parse = (n, r) => {
882
924
  let i = n.value;
883
925
  if (!Array.isArray(i)) return n.issues.push({
@@ -893,19 +935,29 @@ var Gt = /* @__PURE__ */ t("$ZodArray", (e, t) => {
893
935
  value: o,
894
936
  issues: []
895
937
  }, r);
896
- s instanceof Promise ? a.push(s.then((t) => Wt(t, n, e))) : Wt(s, n, e);
938
+ s instanceof Promise ? a.push(s.then((t) => qt(t, n, e))) : qt(s, n, e);
897
939
  }
898
940
  return a.length ? Promise.all(a).then(() => n) : n;
899
941
  };
900
942
  });
901
- function F(e, t, n, r, i) {
943
+ function F(e, t, n, r, i, a) {
944
+ let o = n in r;
902
945
  if (e.issues.length) {
903
- if (i && !(n in r)) return;
904
- t.issues.push(...x(n, e.issues));
946
+ if (i && a && !o) return;
947
+ t.issues.push(...he(n, e.issues));
905
948
  }
906
- e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
949
+ if (!o && !i) {
950
+ e.issues.length || t.issues.push({
951
+ code: "invalid_type",
952
+ expected: "nonoptional",
953
+ input: void 0,
954
+ path: [n]
955
+ });
956
+ return;
957
+ }
958
+ e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
907
959
  }
908
- function Kt(e) {
960
+ function Yt(e) {
909
961
  let t = Object.keys(e.shape);
910
962
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
911
963
  let n = oe(e.shape);
@@ -917,10 +969,10 @@ function Kt(e) {
917
969
  optionalKeys: new Set(n)
918
970
  };
919
971
  }
920
- function qt(e, t, n, r, i, a) {
921
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
972
+ function Xt(e, t, n, r, i, a) {
973
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
922
974
  for (let i in t) {
923
- if (s.has(i)) continue;
975
+ if (i === "__proto__" || s.has(i)) continue;
924
976
  if (l === "never") {
925
977
  o.push(i);
926
978
  continue;
@@ -929,7 +981,7 @@ function qt(e, t, n, r, i, a) {
929
981
  value: t[i],
930
982
  issues: []
931
983
  }, r);
932
- a instanceof Promise ? e.push(a.then((e) => F(e, n, i, t, u))) : F(a, n, i, t, u);
984
+ a instanceof Promise ? e.push(a.then((e) => F(e, n, i, t, u, d))) : F(a, n, i, t, u, d);
933
985
  }
934
986
  return o.length && n.issues.push({
935
987
  code: "unrecognized_keys",
@@ -938,7 +990,7 @@ function qt(e, t, n, r, i, a) {
938
990
  inst: a
939
991
  }), e.length ? Promise.all(e).then(() => n) : n;
940
992
  }
941
- var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
993
+ var Zt = /* @__PURE__ */ n("$ZodObject", (e, t) => {
942
994
  if (M.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
943
995
  let e = t.shape;
944
996
  Object.defineProperty(t, "shape", { get: () => {
@@ -946,8 +998,8 @@ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
946
998
  return Object.defineProperty(t, "shape", { value: n }), n;
947
999
  } });
948
1000
  }
949
- let n = c(() => Kt(t));
950
- f(e._zod, "propValues", () => {
1001
+ let n = l(() => Yt(t));
1002
+ p(e._zod, "propValues", () => {
951
1003
  let e = t.shape, n = {};
952
1004
  for (let t in e) {
953
1005
  let r = e[t]._zod;
@@ -958,7 +1010,7 @@ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
958
1010
  }
959
1011
  return n;
960
1012
  });
961
- let r = h, i = t.catchall, a;
1013
+ let r = g, i = t.catchall, a;
962
1014
  e._zod.parse = (t, o) => {
963
1015
  a ??= n.value;
964
1016
  let s = t.value;
@@ -971,18 +1023,18 @@ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
971
1023
  t.value = {};
972
1024
  let c = [], l = a.shape;
973
1025
  for (let e of a.keys) {
974
- let n = l[e], r = n._zod.optout === "optional", i = n._zod.run({
1026
+ let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
975
1027
  value: s[e],
976
1028
  issues: []
977
1029
  }, o);
978
- i instanceof Promise ? c.push(i.then((n) => F(n, t, e, s, r))) : F(i, t, e, s, r);
1030
+ a instanceof Promise ? c.push(a.then((n) => F(n, t, e, s, r, i))) : F(a, t, e, s, r, i);
979
1031
  }
980
- return i ? qt(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1032
+ return i ? Xt(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
981
1033
  };
982
- }), Yt = /* @__PURE__ */ t("$ZodObjectJIT", (e, t) => {
983
- Jt.init(e, t);
984
- let n = e._zod.parse, r = c(() => Kt(t)), a = (e) => {
985
- let t = new mt([
1034
+ }), Qt = /* @__PURE__ */ n("$ZodObjectJIT", (e, t) => {
1035
+ Zt.init(e, t);
1036
+ let n = e._zod.parse, r = l(() => Yt(t)), i = (e) => {
1037
+ let t = new _t([
986
1038
  "shape",
987
1039
  "payload",
988
1040
  "ctx"
@@ -995,8 +1047,8 @@ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
995
1047
  for (let e of n.keys) a[e] = `key_${o++}`;
996
1048
  t.write("const newResult = {};");
997
1049
  for (let r of n.keys) {
998
- let n = a[r], o = ee(r), s = e[r]?._zod?.optout === "optional";
999
- t.write(`const ${n} = ${i(r)};`), s ? t.write(`
1050
+ let n = a[r], o = ee(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
1051
+ t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
1000
1052
  if (${n}.issues.length) {
1001
1053
  if (${o} in input) {
1002
1054
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -1014,7 +1066,7 @@ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
1014
1066
  newResult[${o}] = ${n}.value;
1015
1067
  }
1016
1068
 
1017
- `) : t.write(`
1069
+ `) : c ? t.write(`
1018
1070
  if (${n}.issues.length) {
1019
1071
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1020
1072
  ...iss,
@@ -1030,60 +1082,85 @@ var Jt = /* @__PURE__ */ t("$ZodObject", (e, t) => {
1030
1082
  newResult[${o}] = ${n}.value;
1031
1083
  }
1032
1084
 
1085
+ `) : t.write(`
1086
+ const ${n}_present = ${o} in input;
1087
+ if (${n}.issues.length) {
1088
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1089
+ ...iss,
1090
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1091
+ })));
1092
+ }
1093
+ if (!${n}_present && !${n}.issues.length) {
1094
+ payload.issues.push({
1095
+ code: "invalid_type",
1096
+ expected: "nonoptional",
1097
+ input: undefined,
1098
+ path: [${o}]
1099
+ });
1100
+ }
1101
+
1102
+ if (${n}_present) {
1103
+ if (${n}.value === undefined) {
1104
+ newResult[${o}] = undefined;
1105
+ } else {
1106
+ newResult[${o}] = ${n}.value;
1107
+ }
1108
+ }
1109
+
1033
1110
  `);
1034
1111
  }
1035
1112
  t.write("payload.value = newResult;"), t.write("return payload;");
1036
1113
  let s = t.compile();
1037
1114
  return (t, n) => s(e, t, n);
1038
- }, o, s = h, l = !i.jitless, u = l && re.value, d = t.catchall, f;
1039
- e._zod.parse = (i, c) => {
1115
+ }, o, s = g, c = !a.jitless, u = c && re.value, d = t.catchall, f;
1116
+ e._zod.parse = (a, l) => {
1040
1117
  f ??= r.value;
1041
- let p = i.value;
1042
- return s(p) ? l && u && c?.async === !1 && c.jitless !== !0 ? (o ||= a(t.shape), i = o(i, c), d ? qt([], p, i, c, f, e) : i) : n(i, c) : (i.issues.push({
1118
+ let p = a.value;
1119
+ return s(p) ? c && u && l?.async === !1 && l.jitless !== !0 ? (o ||= i(t.shape), a = o(a, l), d ? Xt([], p, a, l, f, e) : a) : n(a, l) : (a.issues.push({
1043
1120
  expected: "object",
1044
1121
  code: "invalid_type",
1045
1122
  input: p,
1046
1123
  inst: e
1047
- }), i);
1124
+ }), a);
1048
1125
  };
1049
1126
  });
1050
- function Xt(e, t, n, r) {
1127
+ function $t(e, t, n, r) {
1051
1128
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1052
- let i = e.filter((e) => !b(e));
1129
+ let i = e.filter((e) => !x(e));
1053
1130
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1054
1131
  code: "invalid_union",
1055
1132
  input: t.value,
1056
1133
  inst: n,
1057
- errors: e.map((e) => e.issues.map((e) => C(e, r, a())))
1134
+ errors: e.map((e) => e.issues.map((e) => C(e, r, o())))
1058
1135
  }), t);
1059
1136
  }
1060
- var Zt = /* @__PURE__ */ t("$ZodUnion", (e, t) => {
1061
- M.init(e, t), f(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), f(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), f(e._zod, "values", () => {
1137
+ var en = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
1138
+ M.init(e, t), p(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), p(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), p(e._zod, "values", () => {
1062
1139
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1063
- }), f(e._zod, "pattern", () => {
1140
+ }), p(e._zod, "pattern", () => {
1064
1141
  if (t.options.every((e) => e._zod.pattern)) {
1065
1142
  let e = t.options.map((e) => e._zod.pattern);
1066
- return RegExp(`^(${e.map((e) => u(e.source)).join("|")})$`);
1143
+ return RegExp(`^(${e.map((e) => d(e.source)).join("|")})$`);
1067
1144
  }
1068
1145
  });
1069
- let n = t.options.length === 1, r = t.options[0]._zod.run;
1070
- e._zod.parse = (i, a) => {
1071
- if (n) return r(i, a);
1072
- let o = !1, s = [];
1146
+ let n = t.options.length === 1 ? t.options[0]._zod.run : null;
1147
+ e._zod.parse = (r, i) => {
1148
+ if (n) return n(r, i);
1149
+ let a = !1, o = [];
1073
1150
  for (let e of t.options) {
1074
1151
  let t = e._zod.run({
1075
- value: i.value,
1152
+ value: r.value,
1076
1153
  issues: []
1077
- }, a);
1078
- if (t instanceof Promise) s.push(t), o = !0;
1154
+ }, i);
1155
+ if (t instanceof Promise) o.push(t), a = !0;
1079
1156
  else {
1080
1157
  if (t.issues.length === 0) return t;
1081
- s.push(t);
1158
+ o.push(t);
1082
1159
  }
1083
1160
  }
1084
- return o ? Promise.all(s).then((t) => Xt(t, i, e, a)) : Xt(s, i, e, a);
1161
+ return a ? Promise.all(o).then((t) => $t(t, r, e, i)) : $t(o, r, e, i);
1085
1162
  };
1086
- }), Qt = /* @__PURE__ */ t("$ZodIntersection", (e, t) => {
1163
+ }), tn = /* @__PURE__ */ n("$ZodIntersection", (e, t) => {
1087
1164
  M.init(e, t), e._zod.parse = (e, n) => {
1088
1165
  let r = e.value, i = t.left._zod.run({
1089
1166
  value: r,
@@ -1100,7 +1177,7 @@ function I(e, t) {
1100
1177
  valid: !0,
1101
1178
  data: e
1102
1179
  };
1103
- if (g(e) && g(t)) {
1180
+ if (_(e) && _(t)) {
1104
1181
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1105
1182
  ...e,
1106
1183
  ...t
@@ -1154,15 +1231,15 @@ function L(e, t, n) {
1154
1231
  if (a.length && i && e.issues.push({
1155
1232
  ...i,
1156
1233
  keys: a
1157
- }), b(e)) return e;
1234
+ }), x(e)) return e;
1158
1235
  let o = I(t.value, n.value);
1159
1236
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1160
1237
  return e.value = o.data, e;
1161
1238
  }
1162
- var $t = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1239
+ var nn = /* @__PURE__ */ n("$ZodEnum", (e, t) => {
1163
1240
  M.init(e, t);
1164
- let n = o(t.entries), r = new Set(n);
1165
- e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? _(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1241
+ let n = s(t.entries), r = new Set(n);
1242
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? v(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1166
1243
  let a = t.value;
1167
1244
  return r.has(a) || t.issues.push({
1168
1245
  code: "invalid_value",
@@ -1171,62 +1248,62 @@ var $t = /* @__PURE__ */ t("$ZodEnum", (e, t) => {
1171
1248
  inst: e
1172
1249
  }), t;
1173
1250
  };
1174
- }), en = /* @__PURE__ */ t("$ZodTransform", (e, t) => {
1175
- M.init(e, t), e._zod.parse = (i, a) => {
1176
- if (a.direction === "backward") throw new r(e.constructor.name);
1177
- let o = t.transform(i.value, i);
1178
- if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i));
1179
- if (o instanceof Promise) throw new n();
1180
- return i.value = o, i;
1251
+ }), rn = /* @__PURE__ */ n("$ZodTransform", (e, t) => {
1252
+ M.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, a) => {
1253
+ if (a.direction === "backward") throw new i(e.constructor.name);
1254
+ let o = t.transform(n.value, n);
1255
+ if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (n.value = e, n.fallback = !0, n));
1256
+ if (o instanceof Promise) throw new r();
1257
+ return n.value = o, n.fallback = !0, n;
1181
1258
  };
1182
1259
  });
1183
1260
  function R(e, t) {
1184
- return e.issues.length && t === void 0 ? {
1261
+ return t === void 0 && (e.issues.length || e.fallback) ? {
1185
1262
  issues: [],
1186
1263
  value: void 0
1187
1264
  } : e;
1188
1265
  }
1189
- var z = /* @__PURE__ */ t("$ZodOptional", (e, t) => {
1190
- M.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), f(e._zod, "pattern", () => {
1266
+ var z = /* @__PURE__ */ n("$ZodOptional", (e, t) => {
1267
+ M.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", p(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), p(e._zod, "pattern", () => {
1191
1268
  let e = t.innerType._zod.pattern;
1192
- return e ? RegExp(`^(${u(e.source)})?$`) : void 0;
1269
+ return e ? RegExp(`^(${d(e.source)})?$`) : void 0;
1193
1270
  }), e._zod.parse = (e, n) => {
1194
1271
  if (t.innerType._zod.optin === "optional") {
1195
- let r = t.innerType._zod.run(e, n);
1196
- return r instanceof Promise ? r.then((t) => R(t, e.value)) : R(r, e.value);
1272
+ let r = e.value, i = t.innerType._zod.run(e, n);
1273
+ return i instanceof Promise ? i.then((e) => R(e, r)) : R(i, r);
1197
1274
  }
1198
1275
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1199
1276
  };
1200
- }), tn = /* @__PURE__ */ t("$ZodExactOptional", (e, t) => {
1201
- z.init(e, t), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1202
- }), nn = /* @__PURE__ */ t("$ZodNullable", (e, t) => {
1203
- M.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "pattern", () => {
1277
+ }), an = /* @__PURE__ */ n("$ZodExactOptional", (e, t) => {
1278
+ z.init(e, t), p(e._zod, "values", () => t.innerType._zod.values), p(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1279
+ }), on = /* @__PURE__ */ n("$ZodNullable", (e, t) => {
1280
+ M.init(e, t), p(e._zod, "optin", () => t.innerType._zod.optin), p(e._zod, "optout", () => t.innerType._zod.optout), p(e._zod, "pattern", () => {
1204
1281
  let e = t.innerType._zod.pattern;
1205
- return e ? RegExp(`^(${u(e.source)}|null)$`) : void 0;
1206
- }), f(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1207
- }), rn = /* @__PURE__ */ t("$ZodDefault", (e, t) => {
1208
- M.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1282
+ return e ? RegExp(`^(${d(e.source)}|null)$`) : void 0;
1283
+ }), p(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1284
+ }), sn = /* @__PURE__ */ n("$ZodDefault", (e, t) => {
1285
+ M.init(e, t), e._zod.optin = "optional", p(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1209
1286
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1210
1287
  if (e.value === void 0) return e.value = t.defaultValue, e;
1211
1288
  let r = t.innerType._zod.run(e, n);
1212
- return r instanceof Promise ? r.then((e) => B(e, t)) : B(r, t);
1289
+ return r instanceof Promise ? r.then((e) => cn(e, t)) : cn(r, t);
1213
1290
  };
1214
1291
  });
1215
- function B(e, t) {
1292
+ function cn(e, t) {
1216
1293
  return e.value === void 0 && (e.value = t.defaultValue), e;
1217
1294
  }
1218
- var an = /* @__PURE__ */ t("$ZodPrefault", (e, t) => {
1219
- M.init(e, t), e._zod.optin = "optional", f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1220
- }), on = /* @__PURE__ */ t("$ZodNonOptional", (e, t) => {
1221
- M.init(e, t), f(e._zod, "values", () => {
1295
+ var ln = /* @__PURE__ */ n("$ZodPrefault", (e, t) => {
1296
+ M.init(e, t), e._zod.optin = "optional", p(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1297
+ }), un = /* @__PURE__ */ n("$ZodNonOptional", (e, t) => {
1298
+ M.init(e, t), p(e._zod, "values", () => {
1222
1299
  let e = t.innerType._zod.values;
1223
1300
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1224
1301
  }), e._zod.parse = (n, r) => {
1225
1302
  let i = t.innerType._zod.run(n, r);
1226
- return i instanceof Promise ? i.then((t) => sn(t, e)) : sn(i, e);
1303
+ return i instanceof Promise ? i.then((t) => dn(t, e)) : dn(i, e);
1227
1304
  };
1228
1305
  });
1229
- function sn(e, t) {
1306
+ function dn(e, t) {
1230
1307
  return !e.issues.length && e.value === void 0 && e.issues.push({
1231
1308
  code: "invalid_type",
1232
1309
  expected: "nonoptional",
@@ -1234,54 +1311,55 @@ function sn(e, t) {
1234
1311
  inst: t
1235
1312
  }), e;
1236
1313
  }
1237
- var cn = /* @__PURE__ */ t("$ZodCatch", (e, t) => {
1238
- M.init(e, t), f(e._zod, "optin", () => t.innerType._zod.optin), f(e._zod, "optout", () => t.innerType._zod.optout), f(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1314
+ var fn = /* @__PURE__ */ n("$ZodCatch", (e, t) => {
1315
+ M.init(e, t), e._zod.optin = "optional", p(e._zod, "optout", () => t.innerType._zod.optout), p(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1239
1316
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1240
1317
  let r = t.innerType._zod.run(e, n);
1241
1318
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1242
1319
  ...e,
1243
- error: { issues: r.issues.map((e) => C(e, n, a())) },
1320
+ error: { issues: r.issues.map((e) => C(e, n, o())) },
1244
1321
  input: e.value
1245
- }), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1322
+ }), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1246
1323
  ...e,
1247
- error: { issues: r.issues.map((e) => C(e, n, a())) },
1324
+ error: { issues: r.issues.map((e) => C(e, n, o())) },
1248
1325
  input: e.value
1249
- }), e.issues = []), e);
1326
+ }), e.issues = [], e.fallback = !0), e);
1250
1327
  };
1251
- }), ln = /* @__PURE__ */ t("$ZodPipe", (e, t) => {
1252
- M.init(e, t), f(e._zod, "values", () => t.in._zod.values), f(e._zod, "optin", () => t.in._zod.optin), f(e._zod, "optout", () => t.out._zod.optout), f(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1328
+ }), pn = /* @__PURE__ */ n("$ZodPipe", (e, t) => {
1329
+ M.init(e, t), p(e._zod, "values", () => t.in._zod.values), p(e._zod, "optin", () => t.in._zod.optin), p(e._zod, "optout", () => t.out._zod.optout), p(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1253
1330
  if (n.direction === "backward") {
1254
1331
  let r = t.out._zod.run(e, n);
1255
- return r instanceof Promise ? r.then((e) => V(e, t.in, n)) : V(r, t.in, n);
1332
+ return r instanceof Promise ? r.then((e) => B(e, t.in, n)) : B(r, t.in, n);
1256
1333
  }
1257
1334
  let r = t.in._zod.run(e, n);
1258
- return r instanceof Promise ? r.then((e) => V(e, t.out, n)) : V(r, t.out, n);
1335
+ return r instanceof Promise ? r.then((e) => B(e, t.out, n)) : B(r, t.out, n);
1259
1336
  };
1260
1337
  });
1261
- function V(e, t, n) {
1338
+ function B(e, t, n) {
1262
1339
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1263
1340
  value: e.value,
1264
- issues: e.issues
1341
+ issues: e.issues,
1342
+ fallback: e.fallback
1265
1343
  }, n);
1266
1344
  }
1267
- var un = /* @__PURE__ */ t("$ZodReadonly", (e, t) => {
1268
- M.init(e, t), f(e._zod, "propValues", () => t.innerType._zod.propValues), f(e._zod, "values", () => t.innerType._zod.values), f(e._zod, "optin", () => t.innerType?._zod?.optin), f(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1345
+ var mn = /* @__PURE__ */ n("$ZodReadonly", (e, t) => {
1346
+ M.init(e, t), p(e._zod, "propValues", () => t.innerType._zod.propValues), p(e._zod, "values", () => t.innerType._zod.values), p(e._zod, "optin", () => t.innerType?._zod?.optin), p(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1269
1347
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1270
1348
  let r = t.innerType._zod.run(e, n);
1271
- return r instanceof Promise ? r.then(dn) : dn(r);
1349
+ return r instanceof Promise ? r.then(hn) : hn(r);
1272
1350
  };
1273
1351
  });
1274
- function dn(e) {
1352
+ function hn(e) {
1275
1353
  return e.value = Object.freeze(e.value), e;
1276
1354
  }
1277
- var fn = /* @__PURE__ */ t("$ZodCustom", (e, t) => {
1355
+ var gn = /* @__PURE__ */ n("$ZodCustom", (e, t) => {
1278
1356
  A.init(e, t), M.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1279
1357
  let r = n.value, i = t.fn(r);
1280
- if (i instanceof Promise) return i.then((t) => pn(t, n, r, e));
1281
- pn(i, n, r, e);
1358
+ if (i instanceof Promise) return i.then((t) => _n(t, n, r, e));
1359
+ _n(i, n, r, e);
1282
1360
  };
1283
1361
  });
1284
- function pn(e, t, n, r) {
1362
+ function _n(e, t, n, r) {
1285
1363
  if (!e) {
1286
1364
  let e = {
1287
1365
  code: "custom",
@@ -1294,8 +1372,8 @@ function pn(e, t, n, r) {
1294
1372
  }
1295
1373
  }
1296
1374
  //#endregion
1297
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1298
- var mn, hn = class {
1375
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1376
+ var vn, yn = class {
1299
1377
  constructor() {
1300
1378
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1301
1379
  }
@@ -1327,245 +1405,245 @@ var mn, hn = class {
1327
1405
  return this._map.has(e);
1328
1406
  }
1329
1407
  };
1330
- function gn() {
1331
- return new hn();
1408
+ function bn() {
1409
+ return new yn();
1332
1410
  }
1333
- (mn = globalThis).__zod_globalRegistry ?? (mn.__zod_globalRegistry = gn());
1334
- var H = globalThis.__zod_globalRegistry;
1411
+ (vn = globalThis).__zod_globalRegistry ?? (vn.__zod_globalRegistry = bn());
1412
+ var V = globalThis.__zod_globalRegistry;
1335
1413
  //#endregion
1336
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1414
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1337
1415
  /* @__NO_SIDE_EFFECTS__ */
1338
- function _n(e, t) {
1416
+ function xn(e, t) {
1339
1417
  return new e({
1340
1418
  type: "string",
1341
- ...y(t)
1419
+ ...b(t)
1342
1420
  });
1343
1421
  }
1344
1422
  /* @__NO_SIDE_EFFECTS__ */
1345
- function vn(e, t) {
1423
+ function Sn(e, t) {
1346
1424
  return new e({
1347
1425
  type: "string",
1348
1426
  format: "email",
1349
1427
  check: "string_format",
1350
1428
  abort: !1,
1351
- ...y(t)
1429
+ ...b(t)
1352
1430
  });
1353
1431
  }
1354
1432
  /* @__NO_SIDE_EFFECTS__ */
1355
- function yn(e, t) {
1433
+ function Cn(e, t) {
1356
1434
  return new e({
1357
1435
  type: "string",
1358
1436
  format: "guid",
1359
1437
  check: "string_format",
1360
1438
  abort: !1,
1361
- ...y(t)
1439
+ ...b(t)
1362
1440
  });
1363
1441
  }
1364
1442
  /* @__NO_SIDE_EFFECTS__ */
1365
- function bn(e, t) {
1443
+ function wn(e, t) {
1366
1444
  return new e({
1367
1445
  type: "string",
1368
1446
  format: "uuid",
1369
1447
  check: "string_format",
1370
1448
  abort: !1,
1371
- ...y(t)
1449
+ ...b(t)
1372
1450
  });
1373
1451
  }
1374
1452
  /* @__NO_SIDE_EFFECTS__ */
1375
- function xn(e, t) {
1453
+ function Tn(e, t) {
1376
1454
  return new e({
1377
1455
  type: "string",
1378
1456
  format: "uuid",
1379
1457
  check: "string_format",
1380
1458
  abort: !1,
1381
1459
  version: "v4",
1382
- ...y(t)
1460
+ ...b(t)
1383
1461
  });
1384
1462
  }
1385
1463
  /* @__NO_SIDE_EFFECTS__ */
1386
- function Sn(e, t) {
1464
+ function En(e, t) {
1387
1465
  return new e({
1388
1466
  type: "string",
1389
1467
  format: "uuid",
1390
1468
  check: "string_format",
1391
1469
  abort: !1,
1392
1470
  version: "v6",
1393
- ...y(t)
1471
+ ...b(t)
1394
1472
  });
1395
1473
  }
1396
1474
  /* @__NO_SIDE_EFFECTS__ */
1397
- function Cn(e, t) {
1475
+ function Dn(e, t) {
1398
1476
  return new e({
1399
1477
  type: "string",
1400
1478
  format: "uuid",
1401
1479
  check: "string_format",
1402
1480
  abort: !1,
1403
1481
  version: "v7",
1404
- ...y(t)
1482
+ ...b(t)
1405
1483
  });
1406
1484
  }
1407
1485
  /* @__NO_SIDE_EFFECTS__ */
1408
- function wn(e, t) {
1486
+ function On(e, t) {
1409
1487
  return new e({
1410
1488
  type: "string",
1411
1489
  format: "url",
1412
1490
  check: "string_format",
1413
1491
  abort: !1,
1414
- ...y(t)
1492
+ ...b(t)
1415
1493
  });
1416
1494
  }
1417
1495
  /* @__NO_SIDE_EFFECTS__ */
1418
- function Tn(e, t) {
1496
+ function kn(e, t) {
1419
1497
  return new e({
1420
1498
  type: "string",
1421
1499
  format: "emoji",
1422
1500
  check: "string_format",
1423
1501
  abort: !1,
1424
- ...y(t)
1502
+ ...b(t)
1425
1503
  });
1426
1504
  }
1427
1505
  /* @__NO_SIDE_EFFECTS__ */
1428
- function En(e, t) {
1506
+ function An(e, t) {
1429
1507
  return new e({
1430
1508
  type: "string",
1431
1509
  format: "nanoid",
1432
1510
  check: "string_format",
1433
1511
  abort: !1,
1434
- ...y(t)
1512
+ ...b(t)
1435
1513
  });
1436
1514
  }
1437
1515
  /* @__NO_SIDE_EFFECTS__ */
1438
- function Dn(e, t) {
1516
+ function jn(e, t) {
1439
1517
  return new e({
1440
1518
  type: "string",
1441
1519
  format: "cuid",
1442
1520
  check: "string_format",
1443
1521
  abort: !1,
1444
- ...y(t)
1522
+ ...b(t)
1445
1523
  });
1446
1524
  }
1447
1525
  /* @__NO_SIDE_EFFECTS__ */
1448
- function On(e, t) {
1526
+ function Mn(e, t) {
1449
1527
  return new e({
1450
1528
  type: "string",
1451
1529
  format: "cuid2",
1452
1530
  check: "string_format",
1453
1531
  abort: !1,
1454
- ...y(t)
1532
+ ...b(t)
1455
1533
  });
1456
1534
  }
1457
1535
  /* @__NO_SIDE_EFFECTS__ */
1458
- function kn(e, t) {
1536
+ function Nn(e, t) {
1459
1537
  return new e({
1460
1538
  type: "string",
1461
1539
  format: "ulid",
1462
1540
  check: "string_format",
1463
1541
  abort: !1,
1464
- ...y(t)
1542
+ ...b(t)
1465
1543
  });
1466
1544
  }
1467
1545
  /* @__NO_SIDE_EFFECTS__ */
1468
- function An(e, t) {
1546
+ function Pn(e, t) {
1469
1547
  return new e({
1470
1548
  type: "string",
1471
1549
  format: "xid",
1472
1550
  check: "string_format",
1473
1551
  abort: !1,
1474
- ...y(t)
1552
+ ...b(t)
1475
1553
  });
1476
1554
  }
1477
1555
  /* @__NO_SIDE_EFFECTS__ */
1478
- function jn(e, t) {
1556
+ function Fn(e, t) {
1479
1557
  return new e({
1480
1558
  type: "string",
1481
1559
  format: "ksuid",
1482
1560
  check: "string_format",
1483
1561
  abort: !1,
1484
- ...y(t)
1562
+ ...b(t)
1485
1563
  });
1486
1564
  }
1487
1565
  /* @__NO_SIDE_EFFECTS__ */
1488
- function Mn(e, t) {
1566
+ function In(e, t) {
1489
1567
  return new e({
1490
1568
  type: "string",
1491
1569
  format: "ipv4",
1492
1570
  check: "string_format",
1493
1571
  abort: !1,
1494
- ...y(t)
1572
+ ...b(t)
1495
1573
  });
1496
1574
  }
1497
1575
  /* @__NO_SIDE_EFFECTS__ */
1498
- function Nn(e, t) {
1576
+ function Ln(e, t) {
1499
1577
  return new e({
1500
1578
  type: "string",
1501
1579
  format: "ipv6",
1502
1580
  check: "string_format",
1503
1581
  abort: !1,
1504
- ...y(t)
1582
+ ...b(t)
1505
1583
  });
1506
1584
  }
1507
1585
  /* @__NO_SIDE_EFFECTS__ */
1508
- function Pn(e, t) {
1586
+ function Rn(e, t) {
1509
1587
  return new e({
1510
1588
  type: "string",
1511
1589
  format: "cidrv4",
1512
1590
  check: "string_format",
1513
1591
  abort: !1,
1514
- ...y(t)
1592
+ ...b(t)
1515
1593
  });
1516
1594
  }
1517
1595
  /* @__NO_SIDE_EFFECTS__ */
1518
- function Fn(e, t) {
1596
+ function zn(e, t) {
1519
1597
  return new e({
1520
1598
  type: "string",
1521
1599
  format: "cidrv6",
1522
1600
  check: "string_format",
1523
1601
  abort: !1,
1524
- ...y(t)
1602
+ ...b(t)
1525
1603
  });
1526
1604
  }
1527
1605
  /* @__NO_SIDE_EFFECTS__ */
1528
- function In(e, t) {
1606
+ function Bn(e, t) {
1529
1607
  return new e({
1530
1608
  type: "string",
1531
1609
  format: "base64",
1532
1610
  check: "string_format",
1533
1611
  abort: !1,
1534
- ...y(t)
1612
+ ...b(t)
1535
1613
  });
1536
1614
  }
1537
1615
  /* @__NO_SIDE_EFFECTS__ */
1538
- function Ln(e, t) {
1616
+ function Vn(e, t) {
1539
1617
  return new e({
1540
1618
  type: "string",
1541
1619
  format: "base64url",
1542
1620
  check: "string_format",
1543
1621
  abort: !1,
1544
- ...y(t)
1622
+ ...b(t)
1545
1623
  });
1546
1624
  }
1547
1625
  /* @__NO_SIDE_EFFECTS__ */
1548
- function Rn(e, t) {
1626
+ function Hn(e, t) {
1549
1627
  return new e({
1550
1628
  type: "string",
1551
1629
  format: "e164",
1552
1630
  check: "string_format",
1553
1631
  abort: !1,
1554
- ...y(t)
1632
+ ...b(t)
1555
1633
  });
1556
1634
  }
1557
1635
  /* @__NO_SIDE_EFFECTS__ */
1558
- function zn(e, t) {
1636
+ function Un(e, t) {
1559
1637
  return new e({
1560
1638
  type: "string",
1561
1639
  format: "jwt",
1562
1640
  check: "string_format",
1563
1641
  abort: !1,
1564
- ...y(t)
1642
+ ...b(t)
1565
1643
  });
1566
1644
  }
1567
1645
  /* @__NO_SIDE_EFFECTS__ */
1568
- function Bn(e, t) {
1646
+ function Wn(e, t) {
1569
1647
  return new e({
1570
1648
  type: "string",
1571
1649
  format: "datetime",
@@ -1573,194 +1651,194 @@ function Bn(e, t) {
1573
1651
  offset: !1,
1574
1652
  local: !1,
1575
1653
  precision: null,
1576
- ...y(t)
1654
+ ...b(t)
1577
1655
  });
1578
1656
  }
1579
1657
  /* @__NO_SIDE_EFFECTS__ */
1580
- function Vn(e, t) {
1658
+ function Gn(e, t) {
1581
1659
  return new e({
1582
1660
  type: "string",
1583
1661
  format: "date",
1584
1662
  check: "string_format",
1585
- ...y(t)
1663
+ ...b(t)
1586
1664
  });
1587
1665
  }
1588
1666
  /* @__NO_SIDE_EFFECTS__ */
1589
- function Hn(e, t) {
1667
+ function Kn(e, t) {
1590
1668
  return new e({
1591
1669
  type: "string",
1592
1670
  format: "time",
1593
1671
  check: "string_format",
1594
1672
  precision: null,
1595
- ...y(t)
1673
+ ...b(t)
1596
1674
  });
1597
1675
  }
1598
1676
  /* @__NO_SIDE_EFFECTS__ */
1599
- function Un(e, t) {
1677
+ function qn(e, t) {
1600
1678
  return new e({
1601
1679
  type: "string",
1602
1680
  format: "duration",
1603
1681
  check: "string_format",
1604
- ...y(t)
1682
+ ...b(t)
1605
1683
  });
1606
1684
  }
1607
1685
  /* @__NO_SIDE_EFFECTS__ */
1608
- function Wn(e) {
1686
+ function Jn(e) {
1609
1687
  return new e({ type: "unknown" });
1610
1688
  }
1611
1689
  /* @__NO_SIDE_EFFECTS__ */
1612
- function Gn(e, t) {
1690
+ function Yn(e, t) {
1613
1691
  return new e({
1614
1692
  type: "never",
1615
- ...y(t)
1693
+ ...b(t)
1616
1694
  });
1617
1695
  }
1618
1696
  /* @__NO_SIDE_EFFECTS__ */
1619
- function Kn(e, t) {
1620
- return new it({
1697
+ function Xn(e, t) {
1698
+ return new st({
1621
1699
  check: "max_length",
1622
- ...y(t),
1700
+ ...b(t),
1623
1701
  maximum: e
1624
1702
  });
1625
1703
  }
1626
1704
  /* @__NO_SIDE_EFFECTS__ */
1627
- function U(e, t) {
1628
- return new at({
1705
+ function H(e, t) {
1706
+ return new ct({
1629
1707
  check: "min_length",
1630
- ...y(t),
1708
+ ...b(t),
1631
1709
  minimum: e
1632
1710
  });
1633
1711
  }
1634
1712
  /* @__NO_SIDE_EFFECTS__ */
1635
- function qn(e, t) {
1636
- return new ot({
1713
+ function U(e, t) {
1714
+ return new lt({
1637
1715
  check: "length_equals",
1638
- ...y(t),
1716
+ ...b(t),
1639
1717
  length: e
1640
1718
  });
1641
1719
  }
1642
1720
  /* @__NO_SIDE_EFFECTS__ */
1643
- function Jn(e, t) {
1644
- return new st({
1721
+ function Zn(e, t) {
1722
+ return new ut({
1645
1723
  check: "string_format",
1646
1724
  format: "regex",
1647
- ...y(t),
1725
+ ...b(t),
1648
1726
  pattern: e
1649
1727
  });
1650
1728
  }
1651
1729
  /* @__NO_SIDE_EFFECTS__ */
1652
- function Yn(e) {
1653
- return new ct({
1730
+ function Qn(e) {
1731
+ return new dt({
1654
1732
  check: "string_format",
1655
1733
  format: "lowercase",
1656
- ...y(e)
1734
+ ...b(e)
1657
1735
  });
1658
1736
  }
1659
1737
  /* @__NO_SIDE_EFFECTS__ */
1660
- function Xn(e) {
1661
- return new lt({
1738
+ function $n(e) {
1739
+ return new ft({
1662
1740
  check: "string_format",
1663
1741
  format: "uppercase",
1664
- ...y(e)
1742
+ ...b(e)
1665
1743
  });
1666
1744
  }
1667
1745
  /* @__NO_SIDE_EFFECTS__ */
1668
- function Zn(e, t) {
1669
- return new ut({
1746
+ function er(e, t) {
1747
+ return new pt({
1670
1748
  check: "string_format",
1671
1749
  format: "includes",
1672
- ...y(t),
1750
+ ...b(t),
1673
1751
  includes: e
1674
1752
  });
1675
1753
  }
1676
1754
  /* @__NO_SIDE_EFFECTS__ */
1677
- function Qn(e, t) {
1678
- return new dt({
1755
+ function tr(e, t) {
1756
+ return new mt({
1679
1757
  check: "string_format",
1680
1758
  format: "starts_with",
1681
- ...y(t),
1759
+ ...b(t),
1682
1760
  prefix: e
1683
1761
  });
1684
1762
  }
1685
1763
  /* @__NO_SIDE_EFFECTS__ */
1686
- function $n(e, t) {
1687
- return new ft({
1764
+ function nr(e, t) {
1765
+ return new ht({
1688
1766
  check: "string_format",
1689
1767
  format: "ends_with",
1690
- ...y(t),
1768
+ ...b(t),
1691
1769
  suffix: e
1692
1770
  });
1693
1771
  }
1694
1772
  /* @__NO_SIDE_EFFECTS__ */
1695
1773
  function W(e) {
1696
- return new pt({
1774
+ return new gt({
1697
1775
  check: "overwrite",
1698
1776
  tx: e
1699
1777
  });
1700
1778
  }
1701
1779
  /* @__NO_SIDE_EFFECTS__ */
1702
- function er(e) {
1780
+ function rr(e) {
1703
1781
  return /* @__PURE__ */ W((t) => t.normalize(e));
1704
1782
  }
1705
1783
  /* @__NO_SIDE_EFFECTS__ */
1706
- function tr() {
1784
+ function ir() {
1707
1785
  return /* @__PURE__ */ W((e) => e.trim());
1708
1786
  }
1709
1787
  /* @__NO_SIDE_EFFECTS__ */
1710
- function nr() {
1788
+ function ar() {
1711
1789
  return /* @__PURE__ */ W((e) => e.toLowerCase());
1712
1790
  }
1713
1791
  /* @__NO_SIDE_EFFECTS__ */
1714
- function rr() {
1792
+ function or() {
1715
1793
  return /* @__PURE__ */ W((e) => e.toUpperCase());
1716
1794
  }
1717
1795
  /* @__NO_SIDE_EFFECTS__ */
1718
- function ir() {
1796
+ function sr() {
1719
1797
  return /* @__PURE__ */ W((e) => te(e));
1720
1798
  }
1721
1799
  /* @__NO_SIDE_EFFECTS__ */
1722
- function ar(e, t, n) {
1800
+ function cr(e, t, n) {
1723
1801
  return new e({
1724
1802
  type: "array",
1725
1803
  element: t,
1726
- ...y(n)
1804
+ ...b(n)
1727
1805
  });
1728
1806
  }
1729
1807
  /* @__NO_SIDE_EFFECTS__ */
1730
- function or(e, t, n) {
1808
+ function lr(e, t, n) {
1731
1809
  return new e({
1732
1810
  type: "custom",
1733
1811
  check: "custom",
1734
1812
  fn: t,
1735
- ...y(n)
1813
+ ...b(n)
1736
1814
  });
1737
1815
  }
1738
1816
  /* @__NO_SIDE_EFFECTS__ */
1739
- function sr(e) {
1740
- let t = /* @__PURE__ */ cr((n) => (n.addIssue = (e) => {
1741
- if (typeof e == "string") n.issues.push(T(e, n.value, t._zod.def));
1817
+ function ur(e, t) {
1818
+ let n = /* @__PURE__ */ dr((t) => (t.addIssue = (e) => {
1819
+ if (typeof e == "string") t.issues.push(T(e, t.value, n._zod.def));
1742
1820
  else {
1743
1821
  let r = e;
1744
- r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(T(r));
1822
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(T(r));
1745
1823
  }
1746
- }, e(n.value, n)));
1747
- return t;
1824
+ }, e(t.value, t)), t);
1825
+ return n;
1748
1826
  }
1749
1827
  /* @__NO_SIDE_EFFECTS__ */
1750
- function cr(e, t) {
1828
+ function dr(e, t) {
1751
1829
  let n = new A({
1752
1830
  check: "custom",
1753
- ...y(t)
1831
+ ...b(t)
1754
1832
  });
1755
1833
  return n._zod.check = e, n;
1756
1834
  }
1757
1835
  //#endregion
1758
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
1759
- function lr(e) {
1836
+ //#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
1837
+ function fr(e) {
1760
1838
  let t = e?.target ?? "draft-2020-12";
1761
1839
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
1762
1840
  processors: e.processors ?? {},
1763
- metadataRegistry: e?.metadata ?? H,
1841
+ metadataRegistry: e?.metadata ?? V,
1764
1842
  target: t,
1765
1843
  unrepresentable: e?.unrepresentable ?? "throw",
1766
1844
  override: e?.override ?? (() => {}),
@@ -1804,9 +1882,9 @@ function G(e, t, n = {
1804
1882
  a && (o.ref ||= a, G(a, t, r), t.seen.get(a).isParent = !0);
1805
1883
  }
1806
1884
  let c = t.metadataRegistry.get(e);
1807
- return c && Object.assign(o.schema, c), t.io === "input" && K(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && o.schema._prefault && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
1885
+ return c && Object.assign(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;
1808
1886
  }
1809
- function ur(e, t) {
1887
+ function pr(e, t) {
1810
1888
  let n = e.seen.get(t);
1811
1889
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
1812
1890
  let r = /* @__PURE__ */ new Map();
@@ -1876,7 +1954,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
1876
1954
  }
1877
1955
  }
1878
1956
  }
1879
- function dr(e, t) {
1957
+ function mr(e, t) {
1880
1958
  let n = e.seen.get(t);
1881
1959
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
1882
1960
  let r = (t) => {
@@ -1909,12 +1987,14 @@ function dr(e, t) {
1909
1987
  i.$id = e.external.uri(n);
1910
1988
  }
1911
1989
  Object.assign(i, n.def ?? n.schema);
1912
- let a = e.external?.defs ?? {};
1990
+ let a = e.metadataRegistry.get(t)?.id;
1991
+ a !== void 0 && i.id === a && delete i.id;
1992
+ let o = e.external?.defs ?? {};
1913
1993
  for (let t of e.seen.entries()) {
1914
1994
  let e = t[1];
1915
- e.def && e.defId && (a[e.defId] = e.def);
1995
+ e.def && e.defId && (e.def.id === e.defId && delete e.def.id, o[e.defId] = e.def);
1916
1996
  }
1917
- e.external || Object.keys(a).length > 0 && (e.target === "draft-2020-12" ? i.$defs = a : i.definitions = a);
1997
+ e.external || Object.keys(o).length > 0 && (e.target === "draft-2020-12" ? i.$defs = o : i.definitions = o);
1918
1998
  try {
1919
1999
  let n = JSON.parse(JSON.stringify(i));
1920
2000
  return Object.defineProperty(n, "~standard", {
@@ -1944,7 +2024,7 @@ function K(e, t) {
1944
2024
  if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return K(r.innerType, n);
1945
2025
  if (r.type === "intersection") return K(r.left, n) || K(r.right, n);
1946
2026
  if (r.type === "record" || r.type === "map") return K(r.keyType, n) || K(r.valueType, n);
1947
- if (r.type === "pipe") return K(r.in, n) || K(r.out, n);
2027
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : K(r.in, n) || K(r.out, n);
1948
2028
  if (r.type === "object") {
1949
2029
  for (let e in r.shape) if (K(r.shape[e], n)) return !0;
1950
2030
  return !1;
@@ -1959,53 +2039,53 @@ function K(e, t) {
1959
2039
  }
1960
2040
  return !1;
1961
2041
  }
1962
- var fr = (e, t = {}) => (n) => {
1963
- let r = lr({
2042
+ var hr = (e, t = {}) => (n) => {
2043
+ let r = fr({
1964
2044
  ...n,
1965
2045
  processors: t
1966
2046
  });
1967
- return G(e, r), ur(r, e), dr(r, e);
2047
+ return G(e, r), pr(r, e), mr(r, e);
1968
2048
  }, q = (e, t, n = {}) => (r) => {
1969
- let { libraryOptions: i, target: a } = r ?? {}, o = lr({
2049
+ let { libraryOptions: i, target: a } = r ?? {}, o = fr({
1970
2050
  ...i ?? {},
1971
2051
  target: a,
1972
2052
  io: t,
1973
2053
  processors: n
1974
2054
  });
1975
- return G(e, o), ur(o, e), dr(o, e);
1976
- }, pr = {
2055
+ return G(e, o), pr(o, e), mr(o, e);
2056
+ }, gr = {
1977
2057
  guid: "uuid",
1978
2058
  url: "uri",
1979
2059
  datetime: "date-time",
1980
2060
  json_string: "json-string",
1981
2061
  regex: ""
1982
- }, mr = (e, t, n, r) => {
2062
+ }, _r = (e, t, n, r) => {
1983
2063
  let i = n;
1984
2064
  i.type = "string";
1985
2065
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
1986
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = pr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2066
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = gr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
1987
2067
  let e = [...c];
1988
2068
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
1989
2069
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
1990
2070
  pattern: e.source
1991
2071
  }))]);
1992
2072
  }
1993
- }, hr = (e, t, n, r) => {
2073
+ }, vr = (e, t, n, r) => {
1994
2074
  n.not = {};
1995
- }, gr = (e, t, n, r) => {
1996
- let i = e._zod.def, a = o(i.entries);
2075
+ }, yr = (e, t, n, r) => {
2076
+ let i = e._zod.def, a = s(i.entries);
1997
2077
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
1998
- }, _r = (e, t, n, r) => {
2078
+ }, br = (e, t, n, r) => {
1999
2079
  if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2000
- }, vr = (e, t, n, r) => {
2080
+ }, xr = (e, t, n, r) => {
2001
2081
  if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2002
- }, yr = (e, t, n, r) => {
2082
+ }, Sr = (e, t, n, r) => {
2003
2083
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2004
2084
  typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = G(a.element, t, {
2005
2085
  ...r,
2006
2086
  path: [...r.path, "items"]
2007
2087
  });
2008
- }, br = (e, t, n, r) => {
2088
+ }, Cr = (e, t, n, r) => {
2009
2089
  let i = n, a = e._zod.def;
2010
2090
  i.type = "object", i.properties = {};
2011
2091
  let o = a.shape;
@@ -2025,7 +2105,7 @@ var fr = (e, t = {}) => (n) => {
2025
2105
  ...r,
2026
2106
  path: [...r.path, "additionalProperties"]
2027
2107
  })) : t.io === "output" && (i.additionalProperties = !1);
2028
- }, xr = (e, t, n, r) => {
2108
+ }, wr = (e, t, n, r) => {
2029
2109
  let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => G(e, t, {
2030
2110
  ...r,
2031
2111
  path: [
@@ -2035,7 +2115,7 @@ var fr = (e, t = {}) => (n) => {
2035
2115
  ]
2036
2116
  }));
2037
2117
  a ? n.oneOf = o : n.anyOf = o;
2038
- }, Sr = (e, t, n, r) => {
2118
+ }, Tr = (e, t, n, r) => {
2039
2119
  let i = e._zod.def, a = G(i.left, t, {
2040
2120
  ...r,
2041
2121
  path: [
@@ -2052,25 +2132,25 @@ var fr = (e, t = {}) => (n) => {
2052
2132
  ]
2053
2133
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2054
2134
  n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2055
- }, Cr = (e, t, n, r) => {
2135
+ }, Er = (e, t, n, r) => {
2056
2136
  let i = e._zod.def, a = G(i.innerType, t, r), o = t.seen.get(e);
2057
2137
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2058
- }, wr = (e, t, n, r) => {
2138
+ }, Dr = (e, t, n, r) => {
2059
2139
  let i = e._zod.def;
2060
2140
  G(i.innerType, t, r);
2061
2141
  let a = t.seen.get(e);
2062
2142
  a.ref = i.innerType;
2063
- }, Tr = (e, t, n, r) => {
2143
+ }, Or = (e, t, n, r) => {
2064
2144
  let i = e._zod.def;
2065
2145
  G(i.innerType, t, r);
2066
2146
  let a = t.seen.get(e);
2067
2147
  a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2068
- }, Er = (e, t, n, r) => {
2148
+ }, kr = (e, t, n, r) => {
2069
2149
  let i = e._zod.def;
2070
2150
  G(i.innerType, t, r);
2071
2151
  let a = t.seen.get(e);
2072
2152
  a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2073
- }, Dr = (e, t, n, r) => {
2153
+ }, Ar = (e, t, n, r) => {
2074
2154
  let i = e._zod.def;
2075
2155
  G(i.innerType, t, r);
2076
2156
  let a = t.seen.get(e);
@@ -2082,197 +2162,405 @@ var fr = (e, t = {}) => (n) => {
2082
2162
  throw Error("Dynamic catch values are not supported in JSON Schema");
2083
2163
  }
2084
2164
  n.default = o;
2085
- }, Or = (e, t, n, r) => {
2086
- let i = e._zod.def, a = t.io === "input" ? i.in._zod.def.type === "transform" ? i.out : i.in : i.out;
2087
- G(a, t, r);
2088
- let o = t.seen.get(e);
2089
- o.ref = a;
2090
- }, kr = (e, t, n, r) => {
2165
+ }, jr = (e, t, n, r) => {
2166
+ let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
2167
+ G(o, t, r);
2168
+ let s = t.seen.get(e);
2169
+ s.ref = o;
2170
+ }, Mr = (e, t, n, r) => {
2091
2171
  let i = e._zod.def;
2092
2172
  G(i.innerType, t, r);
2093
2173
  let a = t.seen.get(e);
2094
2174
  a.ref = i.innerType, n.readOnly = !0;
2095
- }, Ar = (e, t, n, r) => {
2175
+ }, Nr = (e, t, n, r) => {
2096
2176
  let i = e._zod.def;
2097
2177
  G(i.innerType, t, r);
2098
2178
  let a = t.seen.get(e);
2099
2179
  a.ref = i.innerType;
2100
- }, jr = /* @__PURE__ */ t("ZodISODateTime", (e, t) => {
2101
- Dt.init(e, t), X.init(e, t);
2180
+ }, Pr = /* @__PURE__ */ n("ZodISODateTime", (e, t) => {
2181
+ At.init(e, t), Z.init(e, t);
2102
2182
  });
2103
- function Mr(e) {
2104
- return /* @__PURE__ */ Bn(jr, e);
2183
+ function Fr(e) {
2184
+ return /* @__PURE__ */ Wn(Pr, e);
2105
2185
  }
2106
- var Nr = /* @__PURE__ */ t("ZodISODate", (e, t) => {
2107
- Ot.init(e, t), X.init(e, t);
2186
+ var Ir = /* @__PURE__ */ n("ZodISODate", (e, t) => {
2187
+ jt.init(e, t), Z.init(e, t);
2108
2188
  });
2109
- function Pr(e) {
2110
- return /* @__PURE__ */ Vn(Nr, e);
2189
+ function Lr(e) {
2190
+ return /* @__PURE__ */ Gn(Ir, e);
2111
2191
  }
2112
- var Fr = /* @__PURE__ */ t("ZodISOTime", (e, t) => {
2113
- kt.init(e, t), X.init(e, t);
2192
+ var Rr = /* @__PURE__ */ n("ZodISOTime", (e, t) => {
2193
+ Mt.init(e, t), Z.init(e, t);
2114
2194
  });
2115
- function Ir(e) {
2116
- return /* @__PURE__ */ Hn(Fr, e);
2195
+ function zr(e) {
2196
+ return /* @__PURE__ */ Kn(Rr, e);
2117
2197
  }
2118
- var Lr = /* @__PURE__ */ t("ZodISODuration", (e, t) => {
2119
- At.init(e, t), X.init(e, t);
2198
+ var Br = /* @__PURE__ */ n("ZodISODuration", (e, t) => {
2199
+ Nt.init(e, t), Z.init(e, t);
2120
2200
  });
2121
- function Rr(e) {
2122
- return /* @__PURE__ */ Un(Lr, e);
2201
+ function Vr(e) {
2202
+ return /* @__PURE__ */ qn(Br, e);
2123
2203
  }
2124
- //#endregion
2125
- //#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
2126
- var zr = (e, t) => {
2127
- he.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2128
- format: { value: (t) => ve(e, t) },
2129
- flatten: { value: (t) => _e(e, t) },
2204
+ var J = /* @__PURE__ */ n("ZodError", (e, t) => {
2205
+ _e.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2206
+ format: { value: (t) => be(e, t) },
2207
+ flatten: { value: (t) => ye(e, t) },
2130
2208
  addIssue: { value: (t) => {
2131
- e.issues.push(t), e.message = JSON.stringify(e.issues, s, 2);
2209
+ e.issues.push(t), e.message = JSON.stringify(e.issues, c, 2);
2132
2210
  } },
2133
2211
  addIssues: { value: (t) => {
2134
- e.issues.push(...t), e.message = JSON.stringify(e.issues, s, 2);
2212
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, c, 2);
2135
2213
  } },
2136
2214
  isEmpty: { get() {
2137
2215
  return e.issues.length === 0;
2138
2216
  } }
2139
2217
  });
2140
- };
2141
- t("ZodError", zr);
2142
- var J = t("ZodError", zr, { Parent: Error }), Br = /* @__PURE__ */ E(J), Vr = /* @__PURE__ */ D(J), Hr = /* @__PURE__ */ O(J), Ur = /* @__PURE__ */ k(J), Wr = /* @__PURE__ */ Ce(J), Gr = /* @__PURE__ */ we(J), Kr = /* @__PURE__ */ Te(J), qr = /* @__PURE__ */ Ee(J), Jr = /* @__PURE__ */ De(J), Yr = /* @__PURE__ */ Oe(J), Xr = /* @__PURE__ */ ke(J), Zr = /* @__PURE__ */ Ae(J), Y = /* @__PURE__ */ t("ZodType", (e, t) => (M.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2218
+ }, { Parent: Error }), Hr = /* @__PURE__ */ E(J), Ur = /* @__PURE__ */ D(J), Wr = /* @__PURE__ */ O(J), Gr = /* @__PURE__ */ k(J), Kr = /* @__PURE__ */ Te(J), qr = /* @__PURE__ */ Ee(J), Jr = /* @__PURE__ */ De(J), Yr = /* @__PURE__ */ Oe(J), Xr = /* @__PURE__ */ ke(J), Zr = /* @__PURE__ */ Ae(J), Qr = /* @__PURE__ */ je(J), $r = /* @__PURE__ */ Me(J), ei = /* @__PURE__ */ new WeakMap();
2219
+ function Y(e, t, n) {
2220
+ let r = Object.getPrototypeOf(e), i = ei.get(r);
2221
+ if (i || (i = /* @__PURE__ */ new Set(), ei.set(r, i)), !i.has(t)) {
2222
+ i.add(t);
2223
+ for (let e in n) {
2224
+ let t = n[e];
2225
+ Object.defineProperty(r, e, {
2226
+ configurable: !0,
2227
+ enumerable: !1,
2228
+ get() {
2229
+ let n = t.bind(this);
2230
+ return Object.defineProperty(this, e, {
2231
+ configurable: !0,
2232
+ writable: !0,
2233
+ enumerable: !0,
2234
+ value: n
2235
+ }), n;
2236
+ },
2237
+ set(t) {
2238
+ Object.defineProperty(this, e, {
2239
+ configurable: !0,
2240
+ writable: !0,
2241
+ enumerable: !0,
2242
+ value: t
2243
+ });
2244
+ }
2245
+ });
2246
+ }
2247
+ }
2248
+ }
2249
+ var X = /* @__PURE__ */ n("ZodType", (e, t) => (M.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2143
2250
  input: q(e, "input"),
2144
2251
  output: q(e, "output")
2145
- } }), e.toJSONSchema = fr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(m(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
2146
- check: e,
2147
- def: { check: "custom" },
2148
- onattach: []
2149
- } } : e)] }), { parent: !0 }), e.with = e.check, e.clone = (t, n) => v(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Br(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Hr(e, t, n), e.parseAsync = async (t, n) => Vr(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ur(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Wr(e, t, n), e.decode = (t, n) => Gr(e, t, n), e.encodeAsync = async (t, n) => Kr(e, t, n), e.decodeAsync = async (t, n) => qr(e, t, n), e.safeEncode = (t, n) => Jr(e, t, n), e.safeDecode = (t, n) => Yr(e, t, n), e.safeEncodeAsync = async (t, n) => Xr(e, t, n), e.safeDecodeAsync = async (t, n) => Zr(e, t, n), e.refine = (t, n) => e.check(Qi(t, n)), e.superRefine = (t) => e.check($i(t)), e.overwrite = (t) => e.check(/* @__PURE__ */ W(t)), e.optional = () => Pi(e), e.exactOptional = () => Ii(e), e.nullable = () => Ri(e), e.nullish = () => Pi(Ri(e)), e.nonoptional = (t) => Wi(e, t), e.array = () => Ci(e), e.or = (t) => Di([e, t]), e.and = (t) => ki(e, t), e.transform = (t) => Ji(e, Mi(t)), e.default = (t) => Bi(e, t), e.prefault = (t) => Hi(e, t), e.catch = (t) => Ki(e, t), e.pipe = (t) => Ji(e, t), e.readonly = () => Xi(e), e.describe = (t) => {
2150
- let n = e.clone();
2151
- return H.add(n, { description: t }), n;
2152
- }, Object.defineProperty(e, "description", {
2252
+ } }), e.toJSONSchema = hr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Hr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Wr(e, t, n), e.parseAsync = async (t, n) => Ur(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Gr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Kr(e, t, n), e.decode = (t, n) => qr(e, t, n), e.encodeAsync = async (t, n) => Jr(e, t, n), e.decodeAsync = async (t, n) => Yr(e, t, n), e.safeEncode = (t, n) => Xr(e, t, n), e.safeDecode = (t, n) => Zr(e, t, n), e.safeEncodeAsync = async (t, n) => Qr(e, t, n), e.safeDecodeAsync = async (t, n) => $r(e, t, n), Y(e, "ZodType", {
2253
+ check(...e) {
2254
+ let t = this.def;
2255
+ return this.clone(h(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
2256
+ check: e,
2257
+ def: { check: "custom" },
2258
+ onattach: []
2259
+ } } : e)] }), { parent: !0 });
2260
+ },
2261
+ with(...e) {
2262
+ return this.check(...e);
2263
+ },
2264
+ clone(e, t) {
2265
+ return y(this, e, t);
2266
+ },
2267
+ brand() {
2268
+ return this;
2269
+ },
2270
+ register(e, t) {
2271
+ return e.add(this, t), this;
2272
+ },
2273
+ refine(e, t) {
2274
+ return this.check(na(e, t));
2275
+ },
2276
+ superRefine(e, t) {
2277
+ return this.check(ra(e, t));
2278
+ },
2279
+ overwrite(e) {
2280
+ return this.check(/* @__PURE__ */ W(e));
2281
+ },
2282
+ optional() {
2283
+ return Ri(this);
2284
+ },
2285
+ exactOptional() {
2286
+ return Bi(this);
2287
+ },
2288
+ nullable() {
2289
+ return Hi(this);
2290
+ },
2291
+ nullish() {
2292
+ return Ri(Hi(this));
2293
+ },
2294
+ nonoptional(e) {
2295
+ return Ji(this, e);
2296
+ },
2297
+ array() {
2298
+ return Di(this);
2299
+ },
2300
+ or(e) {
2301
+ return ji([this, e]);
2302
+ },
2303
+ and(e) {
2304
+ return Ni(this, e);
2305
+ },
2306
+ transform(e) {
2307
+ return Qi(this, Ii(e));
2308
+ },
2309
+ default(e) {
2310
+ return Wi(this, e);
2311
+ },
2312
+ prefault(e) {
2313
+ return Ki(this, e);
2314
+ },
2315
+ catch(e) {
2316
+ return Xi(this, e);
2317
+ },
2318
+ pipe(e) {
2319
+ return Qi(this, e);
2320
+ },
2321
+ readonly() {
2322
+ return ea(this);
2323
+ },
2324
+ describe(e) {
2325
+ let t = this.clone();
2326
+ return V.add(t, { description: e }), t;
2327
+ },
2328
+ meta(...e) {
2329
+ if (e.length === 0) return V.get(this);
2330
+ let t = this.clone();
2331
+ return V.add(t, e[0]), t;
2332
+ },
2333
+ isOptional() {
2334
+ return this.safeParse(void 0).success;
2335
+ },
2336
+ isNullable() {
2337
+ return this.safeParse(null).success;
2338
+ },
2339
+ apply(e) {
2340
+ return e(this);
2341
+ }
2342
+ }), Object.defineProperty(e, "description", {
2153
2343
  get() {
2154
- return H.get(e)?.description;
2344
+ return V.get(e)?.description;
2155
2345
  },
2156
2346
  configurable: !0
2157
- }), e.meta = (...t) => {
2158
- if (t.length === 0) return H.get(e);
2159
- let n = e.clone();
2160
- return H.add(n, t[0]), n;
2161
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (t) => t(e), e)), Qr = /* @__PURE__ */ t("_ZodString", (e, t) => {
2162
- N.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => mr(e, t, n, r);
2347
+ }), e)), ti = /* @__PURE__ */ n("_ZodString", (e, t) => {
2348
+ N.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => _r(e, t, n, r);
2163
2349
  let n = e._zod.bag;
2164
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(/* @__PURE__ */ Jn(...t)), e.includes = (...t) => e.check(/* @__PURE__ */ Zn(...t)), e.startsWith = (...t) => e.check(/* @__PURE__ */ Qn(...t)), e.endsWith = (...t) => e.check(/* @__PURE__ */ $n(...t)), e.min = (...t) => e.check(/* @__PURE__ */ U(...t)), e.max = (...t) => e.check(/* @__PURE__ */ Kn(...t)), e.length = (...t) => e.check(/* @__PURE__ */ qn(...t)), e.nonempty = (...t) => e.check(/* @__PURE__ */ U(1, ...t)), e.lowercase = (t) => e.check(/* @__PURE__ */ Yn(t)), e.uppercase = (t) => e.check(/* @__PURE__ */ Xn(t)), e.trim = () => e.check(/* @__PURE__ */ tr()), e.normalize = (...t) => e.check(/* @__PURE__ */ er(...t)), e.toLowerCase = () => e.check(/* @__PURE__ */ nr()), e.toUpperCase = () => e.check(/* @__PURE__ */ rr()), e.slugify = () => e.check(/* @__PURE__ */ ir());
2165
- }), $r = /* @__PURE__ */ t("ZodString", (e, t) => {
2166
- N.init(e, t), Qr.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ vn(ti, t)), e.url = (t) => e.check(/* @__PURE__ */ wn(ri, t)), e.jwt = (t) => e.check(/* @__PURE__ */ zn(vi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Tn(ii, t)), e.guid = (t) => e.check(/* @__PURE__ */ yn(ni, t)), e.uuid = (t) => e.check(/* @__PURE__ */ bn(Z, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ xn(Z, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Sn(Z, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Cn(Z, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ En(ai, t)), e.guid = (t) => e.check(/* @__PURE__ */ yn(ni, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Dn(oi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ On(si, t)), e.ulid = (t) => e.check(/* @__PURE__ */ kn(ci, t)), e.base64 = (t) => e.check(/* @__PURE__ */ In(hi, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Ln(gi, t)), e.xid = (t) => e.check(/* @__PURE__ */ An(li, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ jn(ui, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ Mn(di, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Nn(fi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Pn(pi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Fn(mi, t)), e.e164 = (t) => e.check(/* @__PURE__ */ Rn(_i, t)), e.datetime = (t) => e.check(Mr(t)), e.date = (t) => e.check(Pr(t)), e.time = (t) => e.check(Ir(t)), e.duration = (t) => e.check(Rr(t));
2350
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, Y(e, "_ZodString", {
2351
+ regex(...e) {
2352
+ return this.check(/* @__PURE__ */ Zn(...e));
2353
+ },
2354
+ includes(...e) {
2355
+ return this.check(/* @__PURE__ */ er(...e));
2356
+ },
2357
+ startsWith(...e) {
2358
+ return this.check(/* @__PURE__ */ tr(...e));
2359
+ },
2360
+ endsWith(...e) {
2361
+ return this.check(/* @__PURE__ */ nr(...e));
2362
+ },
2363
+ min(...e) {
2364
+ return this.check(/* @__PURE__ */ H(...e));
2365
+ },
2366
+ max(...e) {
2367
+ return this.check(/* @__PURE__ */ Xn(...e));
2368
+ },
2369
+ length(...e) {
2370
+ return this.check(/* @__PURE__ */ U(...e));
2371
+ },
2372
+ nonempty(...e) {
2373
+ return this.check(/* @__PURE__ */ H(1, ...e));
2374
+ },
2375
+ lowercase(e) {
2376
+ return this.check(/* @__PURE__ */ Qn(e));
2377
+ },
2378
+ uppercase(e) {
2379
+ return this.check(/* @__PURE__ */ $n(e));
2380
+ },
2381
+ trim() {
2382
+ return this.check(/* @__PURE__ */ ir());
2383
+ },
2384
+ normalize(...e) {
2385
+ return this.check(/* @__PURE__ */ rr(...e));
2386
+ },
2387
+ toLowerCase() {
2388
+ return this.check(/* @__PURE__ */ ar());
2389
+ },
2390
+ toUpperCase() {
2391
+ return this.check(/* @__PURE__ */ or());
2392
+ },
2393
+ slugify() {
2394
+ return this.check(/* @__PURE__ */ sr());
2395
+ }
2396
+ });
2397
+ }), ni = /* @__PURE__ */ n("ZodString", (e, t) => {
2398
+ N.init(e, t), ti.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Sn(ii, t)), e.url = (t) => e.check(/* @__PURE__ */ On(oi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Un(xi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ kn(si, t)), e.guid = (t) => e.check(/* @__PURE__ */ Cn(ai, t)), e.uuid = (t) => e.check(/* @__PURE__ */ wn(Q, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Tn(Q, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ En(Q, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Dn(Q, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ An(ci, t)), e.guid = (t) => e.check(/* @__PURE__ */ Cn(ai, t)), e.cuid = (t) => e.check(/* @__PURE__ */ jn(li, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Mn(ui, t)), e.ulid = (t) => e.check(/* @__PURE__ */ Nn(di, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Bn(vi, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Vn(yi, t)), e.xid = (t) => e.check(/* @__PURE__ */ Pn(fi, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Fn(pi, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ In(mi, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Ln(hi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Rn(gi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ zn(_i, t)), e.e164 = (t) => e.check(/* @__PURE__ */ Hn(bi, t)), e.datetime = (t) => e.check(Fr(t)), e.date = (t) => e.check(Lr(t)), e.time = (t) => e.check(zr(t)), e.duration = (t) => e.check(Vr(t));
2167
2399
  });
2168
- function ei(e) {
2169
- return /* @__PURE__ */ _n($r, e);
2170
- }
2171
- var X = /* @__PURE__ */ t("ZodStringFormat", (e, t) => {
2172
- P.init(e, t), Qr.init(e, t);
2173
- }), ti = /* @__PURE__ */ t("ZodEmail", (e, t) => {
2174
- vt.init(e, t), X.init(e, t);
2175
- }), ni = /* @__PURE__ */ t("ZodGUID", (e, t) => {
2176
- gt.init(e, t), X.init(e, t);
2177
- }), Z = /* @__PURE__ */ t("ZodUUID", (e, t) => {
2178
- _t.init(e, t), X.init(e, t);
2179
- }), ri = /* @__PURE__ */ t("ZodURL", (e, t) => {
2180
- yt.init(e, t), X.init(e, t);
2181
- }), ii = /* @__PURE__ */ t("ZodEmoji", (e, t) => {
2182
- bt.init(e, t), X.init(e, t);
2183
- }), ai = /* @__PURE__ */ t("ZodNanoID", (e, t) => {
2184
- xt.init(e, t), X.init(e, t);
2185
- }), oi = /* @__PURE__ */ t("ZodCUID", (e, t) => {
2186
- St.init(e, t), X.init(e, t);
2187
- }), si = /* @__PURE__ */ t("ZodCUID2", (e, t) => {
2188
- Ct.init(e, t), X.init(e, t);
2189
- }), ci = /* @__PURE__ */ t("ZodULID", (e, t) => {
2190
- wt.init(e, t), X.init(e, t);
2191
- }), li = /* @__PURE__ */ t("ZodXID", (e, t) => {
2192
- Tt.init(e, t), X.init(e, t);
2193
- }), ui = /* @__PURE__ */ t("ZodKSUID", (e, t) => {
2194
- Et.init(e, t), X.init(e, t);
2195
- }), di = /* @__PURE__ */ t("ZodIPv4", (e, t) => {
2196
- jt.init(e, t), X.init(e, t);
2197
- }), fi = /* @__PURE__ */ t("ZodIPv6", (e, t) => {
2198
- Mt.init(e, t), X.init(e, t);
2199
- }), pi = /* @__PURE__ */ t("ZodCIDRv4", (e, t) => {
2200
- Nt.init(e, t), X.init(e, t);
2201
- }), mi = /* @__PURE__ */ t("ZodCIDRv6", (e, t) => {
2202
- Pt.init(e, t), X.init(e, t);
2203
- }), hi = /* @__PURE__ */ t("ZodBase64", (e, t) => {
2204
- It.init(e, t), X.init(e, t);
2205
- }), gi = /* @__PURE__ */ t("ZodBase64URL", (e, t) => {
2206
- Rt.init(e, t), X.init(e, t);
2207
- }), _i = /* @__PURE__ */ t("ZodE164", (e, t) => {
2208
- zt.init(e, t), X.init(e, t);
2209
- }), vi = /* @__PURE__ */ t("ZodJWT", (e, t) => {
2210
- Vt.init(e, t), X.init(e, t);
2211
- }), yi = /* @__PURE__ */ t("ZodUnknown", (e, t) => {
2212
- Ht.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2400
+ function ri(e) {
2401
+ return /* @__PURE__ */ xn(ni, e);
2402
+ }
2403
+ var Z = /* @__PURE__ */ n("ZodStringFormat", (e, t) => {
2404
+ P.init(e, t), ti.init(e, t);
2405
+ }), ii = /* @__PURE__ */ n("ZodEmail", (e, t) => {
2406
+ xt.init(e, t), Z.init(e, t);
2407
+ }), ai = /* @__PURE__ */ n("ZodGUID", (e, t) => {
2408
+ yt.init(e, t), Z.init(e, t);
2409
+ }), Q = /* @__PURE__ */ n("ZodUUID", (e, t) => {
2410
+ bt.init(e, t), Z.init(e, t);
2411
+ }), oi = /* @__PURE__ */ n("ZodURL", (e, t) => {
2412
+ St.init(e, t), Z.init(e, t);
2413
+ }), si = /* @__PURE__ */ n("ZodEmoji", (e, t) => {
2414
+ Ct.init(e, t), Z.init(e, t);
2415
+ }), ci = /* @__PURE__ */ n("ZodNanoID", (e, t) => {
2416
+ wt.init(e, t), Z.init(e, t);
2417
+ }), li = /* @__PURE__ */ n("ZodCUID", (e, t) => {
2418
+ Tt.init(e, t), Z.init(e, t);
2419
+ }), ui = /* @__PURE__ */ n("ZodCUID2", (e, t) => {
2420
+ Et.init(e, t), Z.init(e, t);
2421
+ }), di = /* @__PURE__ */ n("ZodULID", (e, t) => {
2422
+ Dt.init(e, t), Z.init(e, t);
2423
+ }), fi = /* @__PURE__ */ n("ZodXID", (e, t) => {
2424
+ Ot.init(e, t), Z.init(e, t);
2425
+ }), pi = /* @__PURE__ */ n("ZodKSUID", (e, t) => {
2426
+ kt.init(e, t), Z.init(e, t);
2427
+ }), mi = /* @__PURE__ */ n("ZodIPv4", (e, t) => {
2428
+ Pt.init(e, t), Z.init(e, t);
2429
+ }), hi = /* @__PURE__ */ n("ZodIPv6", (e, t) => {
2430
+ Ft.init(e, t), Z.init(e, t);
2431
+ }), gi = /* @__PURE__ */ n("ZodCIDRv4", (e, t) => {
2432
+ It.init(e, t), Z.init(e, t);
2433
+ }), _i = /* @__PURE__ */ n("ZodCIDRv6", (e, t) => {
2434
+ Lt.init(e, t), Z.init(e, t);
2435
+ }), vi = /* @__PURE__ */ n("ZodBase64", (e, t) => {
2436
+ zt.init(e, t), Z.init(e, t);
2437
+ }), yi = /* @__PURE__ */ n("ZodBase64URL", (e, t) => {
2438
+ Vt.init(e, t), Z.init(e, t);
2439
+ }), bi = /* @__PURE__ */ n("ZodE164", (e, t) => {
2440
+ Ht.init(e, t), Z.init(e, t);
2441
+ }), xi = /* @__PURE__ */ n("ZodJWT", (e, t) => {
2442
+ Wt.init(e, t), Z.init(e, t);
2443
+ }), Si = /* @__PURE__ */ n("ZodUnknown", (e, t) => {
2444
+ Gt.init(e, t), X.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2213
2445
  });
2214
- function Q() {
2215
- return /* @__PURE__ */ Wn(yi);
2446
+ function Ci() {
2447
+ return /* @__PURE__ */ Jn(Si);
2216
2448
  }
2217
- var bi = /* @__PURE__ */ t("ZodNever", (e, t) => {
2218
- Ut.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => hr(e, t, n, r);
2449
+ var wi = /* @__PURE__ */ n("ZodNever", (e, t) => {
2450
+ Kt.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => vr(e, t, n, r);
2219
2451
  });
2220
- function xi(e) {
2221
- return /* @__PURE__ */ Gn(bi, e);
2452
+ function Ti(e) {
2453
+ return /* @__PURE__ */ Yn(wi, e);
2222
2454
  }
2223
- var Si = /* @__PURE__ */ t("ZodArray", (e, t) => {
2224
- Gt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => yr(e, t, n, r), e.element = t.element, e.min = (t, n) => e.check(/* @__PURE__ */ U(t, n)), e.nonempty = (t) => e.check(/* @__PURE__ */ U(1, t)), e.max = (t, n) => e.check(/* @__PURE__ */ Kn(t, n)), e.length = (t, n) => e.check(/* @__PURE__ */ qn(t, n)), e.unwrap = () => e.element;
2455
+ var Ei = /* @__PURE__ */ n("ZodArray", (e, t) => {
2456
+ Jt.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sr(e, t, n, r), e.element = t.element, Y(e, "ZodArray", {
2457
+ min(e, t) {
2458
+ return this.check(/* @__PURE__ */ H(e, t));
2459
+ },
2460
+ nonempty(e) {
2461
+ return this.check(/* @__PURE__ */ H(1, e));
2462
+ },
2463
+ max(e, t) {
2464
+ return this.check(/* @__PURE__ */ Xn(e, t));
2465
+ },
2466
+ length(e, t) {
2467
+ return this.check(/* @__PURE__ */ U(e, t));
2468
+ },
2469
+ unwrap() {
2470
+ return this.element;
2471
+ }
2472
+ });
2225
2473
  });
2226
- function Ci(e, t) {
2227
- return /* @__PURE__ */ ar(Si, e, t);
2228
- }
2229
- var wi = /* @__PURE__ */ t("ZodObject", (e, t) => {
2230
- Yt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => br(e, t, n, r), f(e, "shape", () => t.shape), e.keyof = () => Ai(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
2231
- ...e._zod.def,
2232
- catchall: t
2233
- }), e.passthrough = () => e.clone({
2234
- ...e._zod.def,
2235
- catchall: Q()
2236
- }), e.loose = () => e.clone({
2237
- ...e._zod.def,
2238
- catchall: Q()
2239
- }), e.strict = () => e.clone({
2240
- ...e._zod.def,
2241
- catchall: xi()
2242
- }), e.strip = () => e.clone({
2243
- ...e._zod.def,
2244
- catchall: void 0
2245
- }), e.extend = (t) => le(e, t), e.safeExtend = (t) => ue(e, t), e.merge = (t) => de(e, t), e.pick = (t) => se(e, t), e.omit = (t) => ce(e, t), e.partial = (...t) => fe(Ni, e, t[0]), e.required = (...t) => pe(Ui, e, t[0]);
2474
+ function Di(e, t) {
2475
+ return /* @__PURE__ */ cr(Ei, e, t);
2476
+ }
2477
+ var Oi = /* @__PURE__ */ n("ZodObject", (e, t) => {
2478
+ Qt.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cr(e, t, n, r), p(e, "shape", () => t.shape), Y(e, "ZodObject", {
2479
+ keyof() {
2480
+ return Pi(Object.keys(this._zod.def.shape));
2481
+ },
2482
+ catchall(e) {
2483
+ return this.clone({
2484
+ ...this._zod.def,
2485
+ catchall: e
2486
+ });
2487
+ },
2488
+ passthrough() {
2489
+ return this.clone({
2490
+ ...this._zod.def,
2491
+ catchall: Ci()
2492
+ });
2493
+ },
2494
+ loose() {
2495
+ return this.clone({
2496
+ ...this._zod.def,
2497
+ catchall: Ci()
2498
+ });
2499
+ },
2500
+ strict() {
2501
+ return this.clone({
2502
+ ...this._zod.def,
2503
+ catchall: Ti()
2504
+ });
2505
+ },
2506
+ strip() {
2507
+ return this.clone({
2508
+ ...this._zod.def,
2509
+ catchall: void 0
2510
+ });
2511
+ },
2512
+ extend(e) {
2513
+ return le(this, e);
2514
+ },
2515
+ safeExtend(e) {
2516
+ return ue(this, e);
2517
+ },
2518
+ merge(e) {
2519
+ return de(this, e);
2520
+ },
2521
+ pick(e) {
2522
+ return se(this, e);
2523
+ },
2524
+ omit(e) {
2525
+ return ce(this, e);
2526
+ },
2527
+ partial(...e) {
2528
+ return fe(Li, this, e[0]);
2529
+ },
2530
+ required(...e) {
2531
+ return pe(qi, this, e[0]);
2532
+ }
2533
+ });
2246
2534
  });
2247
- function Ti(e, t) {
2248
- return new wi({
2535
+ function ki(e, t) {
2536
+ return new Oi({
2249
2537
  type: "object",
2250
2538
  shape: e ?? {},
2251
- ...y(t)
2539
+ ...b(t)
2252
2540
  });
2253
2541
  }
2254
- var Ei = /* @__PURE__ */ t("ZodUnion", (e, t) => {
2255
- Zt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n, r), e.options = t.options;
2542
+ var Ai = /* @__PURE__ */ n("ZodUnion", (e, t) => {
2543
+ en.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => wr(e, t, n, r), e.options = t.options;
2256
2544
  });
2257
- function Di(e, t) {
2258
- return new Ei({
2545
+ function ji(e, t) {
2546
+ return new Ai({
2259
2547
  type: "union",
2260
2548
  options: e,
2261
- ...y(t)
2549
+ ...b(t)
2262
2550
  });
2263
2551
  }
2264
- var Oi = /* @__PURE__ */ t("ZodIntersection", (e, t) => {
2265
- Qt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Sr(e, t, n, r);
2552
+ var Mi = /* @__PURE__ */ n("ZodIntersection", (e, t) => {
2553
+ tn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Tr(e, t, n, r);
2266
2554
  });
2267
- function ki(e, t) {
2268
- return new Oi({
2555
+ function Ni(e, t) {
2556
+ return new Mi({
2269
2557
  type: "intersection",
2270
2558
  left: e,
2271
2559
  right: t
2272
2560
  });
2273
2561
  }
2274
- var $ = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2275
- $t.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => gr(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2562
+ var $ = /* @__PURE__ */ n("ZodEnum", (e, t) => {
2563
+ nn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => yr(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2276
2564
  let n = new Set(Object.keys(t.entries));
2277
2565
  e.extract = (e, r) => {
2278
2566
  let i = {};
@@ -2281,7 +2569,7 @@ var $ = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2281
2569
  return new $({
2282
2570
  ...t,
2283
2571
  checks: [],
2284
- ...y(r),
2572
+ ...b(r),
2285
2573
  entries: i
2286
2574
  });
2287
2575
  }, e.exclude = (e, r) => {
@@ -2291,21 +2579,21 @@ var $ = /* @__PURE__ */ t("ZodEnum", (e, t) => {
2291
2579
  return new $({
2292
2580
  ...t,
2293
2581
  checks: [],
2294
- ...y(r),
2582
+ ...b(r),
2295
2583
  entries: i
2296
2584
  });
2297
2585
  };
2298
2586
  });
2299
- function Ai(e, t) {
2587
+ function Pi(e, t) {
2300
2588
  return new $({
2301
2589
  type: "enum",
2302
2590
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2303
- ...y(t)
2591
+ ...b(t)
2304
2592
  });
2305
2593
  }
2306
- var ji = /* @__PURE__ */ t("ZodTransform", (e, t) => {
2307
- en.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => vr(e, t, n, r), e._zod.parse = (n, i) => {
2308
- if (i.direction === "backward") throw new r(e.constructor.name);
2594
+ var Fi = /* @__PURE__ */ n("ZodTransform", (e, t) => {
2595
+ rn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => xr(e, t, n, r), e._zod.parse = (n, r) => {
2596
+ if (r.direction === "backward") throw new i(e.constructor.name);
2309
2597
  n.addIssue = (r) => {
2310
2598
  if (typeof r == "string") n.issues.push(T(r, n.value, t));
2311
2599
  else {
@@ -2314,47 +2602,47 @@ var ji = /* @__PURE__ */ t("ZodTransform", (e, t) => {
2314
2602
  }
2315
2603
  };
2316
2604
  let a = t.transform(n.value, n);
2317
- return a instanceof Promise ? a.then((e) => (n.value = e, n)) : (n.value = a, n);
2605
+ return a instanceof Promise ? a.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = a, n.fallback = !0, n);
2318
2606
  };
2319
2607
  });
2320
- function Mi(e) {
2321
- return new ji({
2608
+ function Ii(e) {
2609
+ return new Fi({
2322
2610
  type: "transform",
2323
2611
  transform: e
2324
2612
  });
2325
2613
  }
2326
- var Ni = /* @__PURE__ */ t("ZodOptional", (e, t) => {
2327
- z.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2614
+ var Li = /* @__PURE__ */ n("ZodOptional", (e, t) => {
2615
+ z.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Nr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2328
2616
  });
2329
- function Pi(e) {
2330
- return new Ni({
2617
+ function Ri(e) {
2618
+ return new Li({
2331
2619
  type: "optional",
2332
2620
  innerType: e
2333
2621
  });
2334
2622
  }
2335
- var Fi = /* @__PURE__ */ t("ZodExactOptional", (e, t) => {
2336
- tn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2623
+ var zi = /* @__PURE__ */ n("ZodExactOptional", (e, t) => {
2624
+ an.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Nr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2337
2625
  });
2338
- function Ii(e) {
2339
- return new Fi({
2626
+ function Bi(e) {
2627
+ return new zi({
2340
2628
  type: "optional",
2341
2629
  innerType: e
2342
2630
  });
2343
2631
  }
2344
- var Li = /* @__PURE__ */ t("ZodNullable", (e, t) => {
2345
- nn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Cr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2632
+ var Vi = /* @__PURE__ */ n("ZodNullable", (e, t) => {
2633
+ on.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Er(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2346
2634
  });
2347
- function Ri(e) {
2348
- return new Li({
2635
+ function Hi(e) {
2636
+ return new Vi({
2349
2637
  type: "nullable",
2350
2638
  innerType: e
2351
2639
  });
2352
2640
  }
2353
- var zi = /* @__PURE__ */ t("ZodDefault", (e, t) => {
2354
- rn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Tr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2641
+ var Ui = /* @__PURE__ */ n("ZodDefault", (e, t) => {
2642
+ sn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Or(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2355
2643
  });
2356
- function Bi(e, t) {
2357
- return new zi({
2644
+ function Wi(e, t) {
2645
+ return new Ui({
2358
2646
  type: "default",
2359
2647
  innerType: e,
2360
2648
  get defaultValue() {
@@ -2362,11 +2650,11 @@ function Bi(e, t) {
2362
2650
  }
2363
2651
  });
2364
2652
  }
2365
- var Vi = /* @__PURE__ */ t("ZodPrefault", (e, t) => {
2366
- an.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Er(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2653
+ var Gi = /* @__PURE__ */ n("ZodPrefault", (e, t) => {
2654
+ ln.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => kr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2367
2655
  });
2368
- function Hi(e, t) {
2369
- return new Vi({
2656
+ function Ki(e, t) {
2657
+ return new Gi({
2370
2658
  type: "prefault",
2371
2659
  innerType: e,
2372
2660
  get defaultValue() {
@@ -2374,64 +2662,64 @@ function Hi(e, t) {
2374
2662
  }
2375
2663
  });
2376
2664
  }
2377
- var Ui = /* @__PURE__ */ t("ZodNonOptional", (e, t) => {
2378
- on.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => wr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2665
+ var qi = /* @__PURE__ */ n("ZodNonOptional", (e, t) => {
2666
+ un.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2379
2667
  });
2380
- function Wi(e, t) {
2381
- return new Ui({
2668
+ function Ji(e, t) {
2669
+ return new qi({
2382
2670
  type: "nonoptional",
2383
2671
  innerType: e,
2384
- ...y(t)
2672
+ ...b(t)
2385
2673
  });
2386
2674
  }
2387
- var Gi = /* @__PURE__ */ t("ZodCatch", (e, t) => {
2388
- cn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Dr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2675
+ var Yi = /* @__PURE__ */ n("ZodCatch", (e, t) => {
2676
+ fn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ar(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2389
2677
  });
2390
- function Ki(e, t) {
2391
- return new Gi({
2678
+ function Xi(e, t) {
2679
+ return new Yi({
2392
2680
  type: "catch",
2393
2681
  innerType: e,
2394
2682
  catchValue: typeof t == "function" ? t : () => t
2395
2683
  });
2396
2684
  }
2397
- var qi = /* @__PURE__ */ t("ZodPipe", (e, t) => {
2398
- ln.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Or(e, t, n, r), e.in = t.in, e.out = t.out;
2685
+ var Zi = /* @__PURE__ */ n("ZodPipe", (e, t) => {
2686
+ pn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => jr(e, t, n, r), e.in = t.in, e.out = t.out;
2399
2687
  });
2400
- function Ji(e, t) {
2401
- return new qi({
2688
+ function Qi(e, t) {
2689
+ return new Zi({
2402
2690
  type: "pipe",
2403
2691
  in: e,
2404
2692
  out: t
2405
2693
  });
2406
2694
  }
2407
- var Yi = /* @__PURE__ */ t("ZodReadonly", (e, t) => {
2408
- un.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => kr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2695
+ var $i = /* @__PURE__ */ n("ZodReadonly", (e, t) => {
2696
+ mn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2409
2697
  });
2410
- function Xi(e) {
2411
- return new Yi({
2698
+ function ea(e) {
2699
+ return new $i({
2412
2700
  type: "readonly",
2413
2701
  innerType: e
2414
2702
  });
2415
2703
  }
2416
- var Zi = /* @__PURE__ */ t("ZodCustom", (e, t) => {
2417
- fn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => _r(e, t, n, r);
2704
+ var ta = /* @__PURE__ */ n("ZodCustom", (e, t) => {
2705
+ gn.init(e, t), X.init(e, t), e._zod.processJSONSchema = (t, n, r) => br(e, t, n, r);
2418
2706
  });
2419
- function Qi(e, t = {}) {
2420
- return /* @__PURE__ */ or(Zi, e, t);
2707
+ function na(e, t = {}) {
2708
+ return /* @__PURE__ */ lr(ta, e, t);
2421
2709
  }
2422
- function $i(e) {
2423
- return /* @__PURE__ */ sr(e);
2710
+ function ra(e, t) {
2711
+ return /* @__PURE__ */ ur(e, t);
2424
2712
  }
2425
2713
  //#endregion
2426
2714
  //#region src/config/env.ts
2427
- var ea = Ti({
2428
- HYPE_STACK_API_URL: ei().url().optional(),
2429
- HYPE_STACK_WEB_URL: ei().url().optional()
2715
+ var ia = ki({
2716
+ HYPE_STACK_API_URL: ri().url().optional(),
2717
+ HYPE_STACK_WEB_URL: ri().url().optional()
2430
2718
  });
2431
2719
  (() => {
2432
- let e = ea.safeParse(process.env);
2720
+ let e = ia.safeParse(process.env);
2433
2721
  if (!e.success) {
2434
- let t = be(e.error);
2722
+ let t = Se(e.error);
2435
2723
  throw Error(`Invalid CLI environment variables:\n ${t}`);
2436
2724
  }
2437
2725
  return e.data;