@oomol-lab/open-flow 0.1.0-beta.26 → 0.1.0-beta.28

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.
Files changed (49) hide show
  1. package/dist/browser/{createResourceDialog-BwI2JmPE.js → createResourceDialog-C2ZLGPla.js} +1 -1
  2. package/dist/browser/flow-authoring-node.d.ts +3 -2
  3. package/dist/browser/flow-authoring.js +933 -915
  4. package/dist/browser/flow-change-schema.d.ts +4 -0
  5. package/dist/browser/flow-change.d.ts +8 -7
  6. package/dist/browser/flow-change.js +1067 -1050
  7. package/dist/browser/flow-notifications.d.ts +6 -2
  8. package/dist/browser/{flowChanges-BqPtWEI9.js → flowChanges-Z49mslMz.js} +1098 -1027
  9. package/dist/browser/{flowWorkspace-CpMGzmfz.js → flowWorkspace-DCaVDqtY.js} +40105 -43746
  10. package/dist/browser/host-conformance.js +7 -1
  11. package/dist/browser/{inputValues-CeeJw_G8.js → inputValues-CLnpqFAf.js} +1 -1
  12. package/dist/browser/{markdownContent-SIlWuHve.js → markdownContent-Bon8uhjM.js} +23 -23
  13. package/dist/browser/{switch-CyZ96-UF.js → switch-DuB8aovT.js} +5035 -513
  14. package/dist/browser/ui.css +1 -1
  15. package/dist/browser/workbench.css +1 -1
  16. package/dist/browser/workbench.js +890 -727
  17. package/dist/browser/{workbenchSelect-BUu7CjUA.js → workbenchSelect-DX9IFmX-.js} +1187 -1156
  18. package/dist/common/authoringExamples.d.ts +27 -0
  19. package/dist/common/control-api-conformance.js +838 -820
  20. package/dist/common/control-api-errors.d.ts +8 -0
  21. package/dist/common/control-api.d.ts +7 -3
  22. package/dist/common/control-api.js +1425 -1381
  23. package/dist/common/control-requests.d.ts +13 -6
  24. package/dist/common/control-requests.js +2034 -1510
  25. package/dist/common/cron-trigger.d.ts +2 -1
  26. package/dist/common/cron-trigger.js +27 -24
  27. package/dist/common/draftOperations.d.ts +14 -0
  28. package/dist/common/engine-contract.d.ts +2 -2
  29. package/dist/common/flow-encoding.d.ts +3 -0
  30. package/dist/common/flow-encoding.js +1067 -968
  31. package/dist/common/flow-notifications.d.ts +6 -2
  32. package/dist/common/flow-schema.d.ts +1 -2
  33. package/dist/common/flow-semantics.d.ts +2 -1
  34. package/dist/common/flow-semantics.js +7935 -7812
  35. package/dist/common/flowInspection.d.ts +16 -0
  36. package/dist/common/integration-trigger.d.ts +2 -2
  37. package/dist/common/integration-trigger.js +8 -8
  38. package/dist/common/mcp.d.ts +2 -1
  39. package/dist/common/mcp.js +140 -118
  40. package/dist/common/poll-trigger.d.ts +3 -0
  41. package/dist/common/poll-trigger.js +26 -22
  42. package/dist/common/provider-triggers.js +2704 -2599
  43. package/dist/common/runtime-contract.js +3 -3
  44. package/dist/common/scheduler.d.ts +4 -3
  45. package/dist/common/scheduler.js +1855 -1725
  46. package/dist/common/trigger-contract.d.ts +5 -0
  47. package/dist/common/webhook-trigger.d.ts +3 -3
  48. package/dist/common/webhook-trigger.js +64 -18
  49. package/package.json +1 -1
@@ -101,7 +101,7 @@ function d(e) {
101
101
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
102
102
  }
103
103
  function f(e, t = "|") {
104
- return e.map((e) => fe(e)).join(t);
104
+ return e.map((e) => pe(e)).join(t);
105
105
  }
106
106
  function p(e, t) {
107
107
  return typeof t == "bigint" ? t.toString() : t;
@@ -165,36 +165,36 @@ function ce(e) {
165
165
  return typeof e == "object" && !!e && !Array.isArray(e);
166
166
  }
167
167
  var le = /* @__PURE__*/ m(() => {
168
- if (O.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
168
+ if (D.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
169
169
  try {
170
170
  return Function(""), !0;
171
171
  } catch {
172
172
  return !1;
173
173
  }
174
174
  });
175
- function _(e) {
175
+ function ue(e) {
176
176
  if (ce(e) === !1) return !1;
177
177
  let t = e.constructor;
178
178
  if (t === void 0 || typeof t != "function") return !0;
179
179
  let n = t.prototype;
180
180
  return ce(n) !== !1 && Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") !== !1;
181
181
  }
182
- function ue(e) {
183
- return _(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
182
+ function de(e) {
183
+ return ue(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
184
184
  }
185
- var de = /* @__PURE__*/ new Set([
185
+ var fe = /* @__PURE__*/ new Set([
186
186
  "string",
187
187
  "number",
188
188
  "symbol"
189
189
  ]);
190
- function v(e) {
190
+ function _(e) {
191
191
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
192
192
  }
193
- function y(e, t, n) {
193
+ function v(e, t, n) {
194
194
  let r = new e._zod.constr(t ?? e._zod.def);
195
195
  return (!t || n?.parent) && (r._zod.parent = e), r;
196
196
  }
197
- function b(e) {
197
+ function y(e) {
198
198
  let t = e;
199
199
  if (!t) return {};
200
200
  if (typeof t == "string") return { error: () => t };
@@ -207,23 +207,23 @@ function b(e) {
207
207
  error: () => t.error
208
208
  } : t;
209
209
  }
210
- function fe(e) {
210
+ function pe(e) {
211
211
  return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
212
212
  }
213
- function pe(e) {
213
+ function me(e) {
214
214
  return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
215
215
  }
216
- var me = {
216
+ var he = {
217
217
  safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
218
218
  int32: [-2147483648, 2147483647],
219
219
  uint32: [0, 4294967295],
220
220
  float32: [-34028234663852886e22, 34028234663852886e22],
221
221
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
222
222
  };
223
- function he(e, t) {
223
+ function ge(e, t) {
224
224
  let n = e._zod.def, r = n.checks;
225
225
  if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
226
- return y(e, g(e._zod.def, {
226
+ return v(e, g(e._zod.def, {
227
227
  get shape() {
228
228
  let e = {};
229
229
  for (let r of Reflect.ownKeys(t)) {
@@ -235,10 +235,10 @@ function he(e, t) {
235
235
  checks: []
236
236
  }));
237
237
  }
238
- function ge(e, t) {
238
+ function _e(e, t) {
239
239
  let n = e._zod.def, r = n.checks;
240
240
  if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
241
- return y(e, g(e._zod.def, {
241
+ return v(e, g(e._zod.def, {
242
242
  get shape() {
243
243
  let r = { ...e._zod.def.shape };
244
244
  for (let e of Reflect.ownKeys(t)) {
@@ -250,14 +250,14 @@ function ge(e, t) {
250
250
  checks: []
251
251
  }));
252
252
  }
253
- function _e(e, t) {
254
- if (!_(t)) throw Error("Invalid input to extend: expected a plain object");
253
+ function ve(e, t) {
254
+ if (!ue(t)) throw Error("Invalid input to extend: expected a plain object");
255
255
  let n = e._zod.def.checks;
256
256
  if (n && n.length > 0) {
257
257
  let n = e._zod.def.shape;
258
258
  for (let e of Reflect.ownKeys(t)) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
259
259
  }
260
- return y(e, g(e._zod.def, { get shape() {
260
+ return v(e, g(e._zod.def, { get shape() {
261
261
  let n = {
262
262
  ...e._zod.def.shape,
263
263
  ...t
@@ -265,9 +265,9 @@ function _e(e, t) {
265
265
  return h(this, "shape", n), n;
266
266
  } }));
267
267
  }
268
- function ve(e, t) {
269
- if (!_(t)) throw Error("Invalid input to safeExtend: expected a plain object");
270
- return y(e, g(e._zod.def, { get shape() {
268
+ function ye(e, t) {
269
+ if (!ue(t)) throw Error("Invalid input to safeExtend: expected a plain object");
270
+ return v(e, g(e._zod.def, { get shape() {
271
271
  let n = {
272
272
  ...e._zod.def.shape,
273
273
  ...t
@@ -275,10 +275,10 @@ function ve(e, t) {
275
275
  return h(this, "shape", n), n;
276
276
  } }));
277
277
  }
278
- function ye(e, t) {
278
+ function be(e, t) {
279
279
  if (!t?._zod?.def) throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
280
280
  if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
281
- return y(e, g(e._zod.def, {
281
+ return v(e, g(e._zod.def, {
282
282
  get shape() {
283
283
  let n = {
284
284
  ...e._zod.def.shape,
@@ -292,10 +292,10 @@ function ye(e, t) {
292
292
  checks: t._zod.def.checks ?? []
293
293
  }));
294
294
  }
295
- function be(e, t, n, r = "partial") {
295
+ function xe(e, t, n, r = "partial") {
296
296
  let i = t._zod.def.checks;
297
297
  if (i && i.length > 0) throw Error(`.${r}() cannot be used on object schemas containing refinements`);
298
- return y(t, g(t._zod.def, {
298
+ return v(t, g(t._zod.def, {
299
299
  get shape() {
300
300
  let r = t._zod.def.shape, i = { ...r };
301
301
  if (n) for (let t of Reflect.ownKeys(n)) {
@@ -314,8 +314,8 @@ function be(e, t, n, r = "partial") {
314
314
  checks: []
315
315
  }));
316
316
  }
317
- function xe(e, t, n) {
318
- return y(t, g(t._zod.def, { get shape() {
317
+ function Se(e, t, n) {
318
+ return v(t, g(t._zod.def, { get shape() {
319
319
  let r = t._zod.def.shape, i = { ...r };
320
320
  if (n) for (let t of Reflect.ownKeys(n)) {
321
321
  if (!Object.prototype.hasOwnProperty.call(i, t)) throw Error(`Unrecognized key: "${String(t)}"`);
@@ -331,7 +331,7 @@ function xe(e, t, n) {
331
331
  return h(this, "shape", i), i;
332
332
  } }));
333
333
  }
334
- function Se(e, t = 0) {
334
+ function b(e, t = 0) {
335
335
  if (e.aborted === !0) return !0;
336
336
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
337
337
  return !1;
@@ -562,44 +562,44 @@ function E(e, t, n, r) {
562
562
  }
563
563
  return Object.defineProperty(d, "init", { value: c }), Object.defineProperty(d, Symbol.hasInstance, { value: (t) => r?.Parent && t instanceof r.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(d, "name", { value: e }), d;
564
564
  }
565
- var D = class extends Error {
565
+ var We = class extends Error {
566
566
  constructor() {
567
567
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
568
568
  }
569
- }, We = class extends Error {
569
+ }, Ge = class extends Error {
570
570
  constructor(e) {
571
571
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
572
572
  }
573
573
  };
574
574
  (Be = globalThis).__zod_globalConfig ?? (Be.__zod_globalConfig = {});
575
- var O = globalThis.__zod_globalConfig;
576
- function k(e) {
577
- return e && Object.assign(O, e), O;
575
+ var D = globalThis.__zod_globalConfig;
576
+ function O(e) {
577
+ return e && Object.assign(D, e), D;
578
578
  }
579
579
  //#endregion
580
580
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/errors.js
581
- function Ge() {
581
+ function Ke() {
582
582
  let e = this._zod;
583
583
  return e.message ??= JSON.stringify(e.def, p, 2), e.message;
584
584
  }
585
- function Ke(e) {
585
+ function qe(e) {
586
586
  this._zod.message = e;
587
587
  }
588
- var qe = {
589
- get: Ge,
590
- set: Ke,
588
+ var Je = {
589
+ get: Ke,
590
+ set: qe,
591
591
  enumerable: !0,
592
592
  configurable: !0
593
- }, Je = {
593
+ }, Ye = {
594
594
  value: void 0,
595
595
  enumerable: !1
596
- }, Ye = {
596
+ }, Xe = {
597
597
  value: void 0,
598
598
  enumerable: !1
599
- }, Xe = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Ze = (e, t) => {
600
- e.name = "$ZodError", Je.value = e._zod, Object.defineProperty(e, "_zod", Je), Ye.value = t, Object.defineProperty(e, "issues", Ye), Je.value = void 0, Ye.value = void 0, Object.defineProperty(e, "message", qe);
599
+ }, Ze = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Qe = (e, t) => {
600
+ e.name = "$ZodError", Ye.value = e._zod, Object.defineProperty(e, "_zod", Ye), Xe.value = t, Object.defineProperty(e, "issues", Xe), Ye.value = void 0, Xe.value = void 0, Object.defineProperty(e, "message", Je);
601
601
  let n = Object.getPrototypeOf(e);
602
- Xe.has(n) || (Xe.add(n), Object.defineProperty(n, "toString", {
602
+ Ze.has(n) || (Ze.add(n), Object.defineProperty(n, "toString", {
603
603
  configurable: !0,
604
604
  enumerable: !1,
605
605
  get() {
@@ -618,8 +618,8 @@ var qe = {
618
618
  });
619
619
  }
620
620
  }));
621
- }, Qe = E("$ZodError", Ze), $e = E("$ZodError", Ze, void 0, { Parent: Error });
622
- function et(e, t, n) {
621
+ }, $e = E("$ZodError", Qe), et = E("$ZodError", Qe, void 0, { Parent: Error });
622
+ function tt(e, t, n) {
623
623
  return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
624
624
  value: n(),
625
625
  writable: !0,
@@ -627,15 +627,15 @@ function et(e, t, n) {
627
627
  configurable: !0
628
628
  }) : e[t] = n()), e[t];
629
629
  }
630
- function tt(e, t = (e) => e.message) {
630
+ function nt(e, t = (e) => e.message) {
631
631
  let n = {}, r = [];
632
- for (let i of e.issues) i.path.length > 0 ? et(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
632
+ for (let i of e.issues) i.path.length > 0 ? tt(n, i.path[0], () => []).push(t(i)) : r.push(t(i));
633
633
  return {
634
634
  formErrors: r,
635
635
  fieldErrors: n
636
636
  };
637
637
  }
638
- function nt(e, t = (e) => e.message) {
638
+ function rt(e, t = (e) => e.message) {
639
639
  let n = { _errors: [] }, r = (e, i = []) => {
640
640
  for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
641
641
  else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
@@ -667,13 +667,13 @@ function nt(e, t = (e) => e.message) {
667
667
  }
668
668
  //#endregion
669
669
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/parse.js
670
- function rt(e, t) {
670
+ function it(e, t) {
671
671
  return {
672
672
  callee: t?.callee ?? e,
673
673
  Err: t?.Err
674
674
  };
675
675
  }
676
- var it = (e) => {
676
+ var at = (e) => {
677
677
  let t = (n, r, i, a) => {
678
678
  let o = i ? {
679
679
  ...i,
@@ -682,15 +682,15 @@ var it = (e) => {
682
682
  value: r,
683
683
  issues: []
684
684
  }, o);
685
- if (s instanceof Promise) throw new D();
685
+ if (s instanceof Promise) throw new We();
686
686
  if (s.issues.length) {
687
- let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, k())));
687
+ let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, O())));
688
688
  throw se(n, a?.callee ?? t), n;
689
689
  }
690
690
  return s.value;
691
691
  };
692
692
  return t;
693
- }, at = (e) => {
693
+ }, ot = (e) => {
694
694
  let t = async (n, r, i, a) => {
695
695
  let o = i ? {
696
696
  ...i,
@@ -700,13 +700,13 @@ var it = (e) => {
700
700
  issues: []
701
701
  }, o);
702
702
  if (s instanceof Promise && (s = await s), s.issues.length) {
703
- let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, k())));
703
+ let n = new ((a?.Err) ?? e)(s.issues.map((e) => S(e, o, O())));
704
704
  throw se(n, a?.callee ?? t), n;
705
705
  }
706
706
  return s.value;
707
707
  };
708
708
  return t;
709
- }, ot = (e) => (t, n, r) => {
709
+ }, st = (e) => (t, n, r) => {
710
710
  let i = r ? {
711
711
  ...r,
712
712
  async: !1
@@ -714,15 +714,15 @@ var it = (e) => {
714
714
  value: n,
715
715
  issues: []
716
716
  }, i);
717
- if (a instanceof Promise) throw new D();
717
+ if (a instanceof Promise) throw new We();
718
718
  return a.issues.length ? {
719
719
  success: !1,
720
- error: new (e ?? Qe)(a.issues.map((e) => S(e, i, k())))
720
+ error: new (e ?? $e)(a.issues.map((e) => S(e, i, O())))
721
721
  } : {
722
722
  success: !0,
723
723
  data: a.value
724
724
  };
725
- }, st = /* @__PURE__*/ ot($e), ct = (e) => async (t, n, r) => {
725
+ }, ct = /* @__PURE__*/ st(et), lt = (e) => async (t, n, r) => {
726
726
  let i = r ? {
727
727
  ...r,
728
728
  async: !0
@@ -732,98 +732,98 @@ var it = (e) => {
732
732
  }, i);
733
733
  return a instanceof Promise && (a = await a), a.issues.length ? {
734
734
  success: !1,
735
- error: new e(a.issues.map((e) => S(e, i, k())))
735
+ error: new e(a.issues.map((e) => S(e, i, O())))
736
736
  } : {
737
737
  success: !0,
738
738
  data: a.value
739
739
  };
740
- }, lt = /* @__PURE__*/ ct($e), ut = (e) => {
741
- let t = it(e), n = (e, r, i, a) => {
740
+ }, ut = /* @__PURE__*/ lt(et), dt = (e) => {
741
+ let t = at(e), n = (e, r, i, a) => {
742
742
  let o = i ? {
743
743
  ...i,
744
744
  direction: "backward"
745
745
  } : { direction: "backward" };
746
- return t(e, r, o, rt(n, a));
746
+ return t(e, r, o, it(n, a));
747
747
  };
748
748
  return n;
749
- }, dt = (e) => {
750
- let t = it(e), n = (e, r, i, a) => t(e, r, i, rt(n, a));
751
- return n;
752
749
  }, ft = (e) => {
753
- let t = at(e), n = async (e, r, i, a) => {
750
+ let t = at(e), n = (e, r, i, a) => t(e, r, i, it(n, a));
751
+ return n;
752
+ }, pt = (e) => {
753
+ let t = ot(e), n = async (e, r, i, a) => {
754
754
  let o = i ? {
755
755
  ...i,
756
756
  direction: "backward"
757
757
  } : { direction: "backward" };
758
- return await t(e, r, o, rt(n, a));
758
+ return await t(e, r, o, it(n, a));
759
759
  };
760
760
  return n;
761
- }, pt = (e) => {
762
- let t = at(e), n = async (e, r, i, a) => await t(e, r, i, rt(n, a));
761
+ }, mt = (e) => {
762
+ let t = ot(e), n = async (e, r, i, a) => await t(e, r, i, it(n, a));
763
763
  return n;
764
- }, mt = (e) => (t, n, r) => {
764
+ }, ht = (e) => (t, n, r) => {
765
765
  let i = r ? {
766
766
  ...r,
767
767
  direction: "backward"
768
768
  } : { direction: "backward" };
769
- return ot(e)(t, n, i);
770
- }, ht = (e) => (t, n, r) => ot(e)(t, n, r), gt = (e) => async (t, n, r) => {
769
+ return st(e)(t, n, i);
770
+ }, gt = (e) => (t, n, r) => st(e)(t, n, r), _t = (e) => async (t, n, r) => {
771
771
  let i = r ? {
772
772
  ...r,
773
773
  direction: "backward"
774
774
  } : { direction: "backward" };
775
- return ct(e)(t, n, i);
776
- }, _t = (e) => async (t, n, r) => ct(e)(t, n, r), vt = /^[cC][0-9a-z]{6,}$/, yt = /^[0-9a-z]+$/, bt = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, xt = /^[0-9a-vA-V]{20}$/, St = /^[A-Za-z0-9]{27}$/, Ct = /^[a-zA-Z0-9_-]{21}$/;
777
- function wt(e) {
775
+ return lt(e)(t, n, i);
776
+ }, vt = (e) => async (t, n, r) => lt(e)(t, n, r), yt = /^[cC][0-9a-z]{6,}$/, bt = /^[0-9a-z]+$/, xt = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, St = /^[0-9a-vA-V]{20}$/, Ct = /^[A-Za-z0-9]{27}$/, wt = /^[a-zA-Z0-9_-]{21}$/;
777
+ function Tt(e) {
778
778
  return RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
779
779
  }
780
- var Tt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Et = /^([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})$/, Dt = (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)$/, Ot = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, kt = "^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
781
- function At() {
782
- return new RegExp(kt, "u");
780
+ var Et = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Dt = /^([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})$/, Ot = (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)$/, kt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, At = "^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
781
+ function jt() {
782
+ return new RegExp(At, "u");
783
783
  }
784
- var jt = /^(?:(?: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])$/, Mt = /^(([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}|:))$/, Nt = /^((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])$/, Pt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ft = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, It = /^[A-Za-z0-9_-]*$/, Lt = /^https?$/, Rt = /^\+[1-9]\d{6,14}$/, zt = "(?:(?:\\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])))";
785
- function Bt(e) {
784
+ var Mt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Nt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Pt = /^((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])$/, Ft = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, It = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Lt = /^[A-Za-z0-9_-]*$/, Rt = /^https?$/, zt = /^\+[1-9]\d{6,14}$/, Bt = "(?:(?:\\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])))";
785
+ function Vt(e) {
786
786
  return RegExp(`^${e}$`);
787
787
  }
788
- var Vt = /*@__PURE__*/ Bt(zt);
789
- function Ht(e) {
788
+ var Ht = /*@__PURE__*/ Vt(Bt);
789
+ function Ut(e) {
790
790
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
791
791
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
792
792
  }
793
- function Ut(e) {
794
- return RegExp(`^${Ht(e)}$`);
795
- }
796
793
  function Wt(e) {
794
+ return RegExp(`^${Ut(e)}$`);
795
+ }
796
+ function Gt(e) {
797
797
  let t = ["Z"];
798
798
  e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
799
- let n = `${Ht({
799
+ let n = `${Ut({
800
800
  precision: e.precision,
801
801
  seconds: !0
802
- })}(?:${t.join("|")})`, r = e.local ? `${n}|${Ht({ precision: e.precision })}` : n;
803
- return RegExp(`^${zt}T(?:${r})$`);
802
+ })}(?:${t.join("|")})`, r = e.local ? `${n}|${Ut({ precision: e.precision })}` : n;
803
+ return RegExp(`^${Bt}T(?:${r})$`);
804
804
  }
805
- var Gt = (e) => {
805
+ var Kt = (e) => {
806
806
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
807
807
  return RegExp(`^${t}$`);
808
- }, Kt = /^-?\d+$/, qt = /^-?\d+(?:\.\d+)?$/, Jt = /^(?:true|false)$/i, Yt = /^null$/i, Xt = /^[^A-Z]*$/, Zt = /^[^a-z]*$/, A = /*@__PURE__*/ E("$ZodCheck", (e, t) => {
808
+ }, qt = /^-?\d+$/, Jt = /^-?\d+(?:\.\d+)?$/, Yt = /^(?:true|false)$/i, Xt = /^null$/i, Zt = /^[^A-Z]*$/, Qt = /^[^a-z]*$/, k = /*@__PURE__*/ E("$ZodCheck", (e, t) => {
809
809
  var n;
810
810
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
811
- }), Qt = (e) => {
811
+ }), $t = (e) => {
812
812
  let t = e.value;
813
813
  return !ee(t) && t.length !== void 0;
814
- }, $t = {
814
+ }, en = {
815
815
  number: "number",
816
816
  bigint: "bigint",
817
817
  object: "date"
818
- }, en = /*@__PURE__*/ E("$ZodCheckLessThan", (e, t) => {
819
- A.init(e, t);
820
- let n = $t[typeof t.value];
818
+ }, tn = /*@__PURE__*/ E("$ZodCheckLessThan", (e, t) => {
819
+ k.init(e, t);
820
+ let n = en[typeof t.value];
821
821
  e._zod.onattach.push((e) => {
822
822
  let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
823
823
  t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
824
824
  }), e._zod.check = (r) => {
825
825
  (t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
826
- origin: $t[typeof r.value] ?? n,
826
+ origin: en[typeof r.value] ?? n,
827
827
  code: "too_big",
828
828
  maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
829
829
  input: r.value,
@@ -832,15 +832,15 @@ var Gt = (e) => {
832
832
  continue: !t.abort
833
833
  });
834
834
  };
835
- }), tn = /*@__PURE__*/ E("$ZodCheckGreaterThan", (e, t) => {
836
- A.init(e, t);
837
- let n = $t[typeof t.value];
835
+ }), nn = /*@__PURE__*/ E("$ZodCheckGreaterThan", (e, t) => {
836
+ k.init(e, t);
837
+ let n = en[typeof t.value];
838
838
  e._zod.onattach.push((e) => {
839
839
  let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
840
840
  t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
841
841
  }), e._zod.check = (r) => {
842
842
  (t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
843
- origin: $t[typeof r.value] ?? n,
843
+ origin: en[typeof r.value] ?? n,
844
844
  code: "too_small",
845
845
  minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
846
846
  input: r.value,
@@ -849,8 +849,8 @@ var Gt = (e) => {
849
849
  continue: !t.abort
850
850
  });
851
851
  };
852
- }), nn = /*@__PURE__*/ E("$ZodCheckMultipleOf", (e, t) => {
853
- A.init(e, t), e._zod.onattach.push((e) => {
852
+ }), rn = /*@__PURE__*/ E("$ZodCheckMultipleOf", (e, t) => {
853
+ k.init(e, t), e._zod.onattach.push((e) => {
854
854
  var n;
855
855
  (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
856
856
  }), e._zod.check = (n) => {
@@ -864,12 +864,12 @@ var Gt = (e) => {
864
864
  continue: !t.abort
865
865
  });
866
866
  };
867
- }), rn = /*@__PURE__*/ E("$ZodCheckNumberFormat", (e, t) => {
868
- A.init(e, t), t.format = t.format || "float64";
869
- let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = me[t.format];
867
+ }), an = /*@__PURE__*/ E("$ZodCheckNumberFormat", (e, t) => {
868
+ k.init(e, t), t.format = t.format || "float64";
869
+ let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = he[t.format];
870
870
  e._zod.onattach.push((e) => {
871
871
  let r = e._zod.bag;
872
- r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = Kt);
872
+ r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = qt);
873
873
  }), e._zod.check = (o) => {
874
874
  let s = o.value;
875
875
  if (n) {
@@ -925,9 +925,9 @@ var Gt = (e) => {
925
925
  continue: !t.abort
926
926
  });
927
927
  };
928
- }), an = /*@__PURE__*/ E("$ZodCheckMaxLength", (e, t) => {
928
+ }), on = /*@__PURE__*/ E("$ZodCheckMaxLength", (e, t) => {
929
929
  var n;
930
- A.init(e, t), (n = e._zod.def).when ?? (n.when = Qt), e._zod.onattach.push((e) => {
930
+ k.init(e, t), (n = e._zod.def).when ?? (n.when = $t), e._zod.onattach.push((e) => {
931
931
  let n = e._zod.bag.maximum ?? Infinity;
932
932
  t.maximum < n && (e._zod.bag.maximum = t.maximum);
933
933
  }), e._zod.check = (n) => {
@@ -944,9 +944,9 @@ var Gt = (e) => {
944
944
  continue: !t.abort
945
945
  });
946
946
  };
947
- }), on = /*@__PURE__*/ E("$ZodCheckMinLength", (e, t) => {
947
+ }), sn = /*@__PURE__*/ E("$ZodCheckMinLength", (e, t) => {
948
948
  var n;
949
- A.init(e, t), (n = e._zod.def).when ?? (n.when = Qt), e._zod.onattach.push((e) => {
949
+ k.init(e, t), (n = e._zod.def).when ?? (n.when = $t), e._zod.onattach.push((e) => {
950
950
  let n = e._zod.bag.minimum ?? -Infinity;
951
951
  t.minimum > n && (e._zod.bag.minimum = t.minimum);
952
952
  }), e._zod.check = (n) => {
@@ -963,9 +963,9 @@ var Gt = (e) => {
963
963
  continue: !t.abort
964
964
  });
965
965
  };
966
- }), sn = /*@__PURE__*/ E("$ZodCheckLengthEquals", (e, t) => {
966
+ }), cn = /*@__PURE__*/ E("$ZodCheckLengthEquals", (e, t) => {
967
967
  var n;
968
- A.init(e, t), (n = e._zod.def).when ?? (n.when = Qt), e._zod.onattach.push((e) => {
968
+ k.init(e, t), (n = e._zod.def).when ?? (n.when = $t), e._zod.onattach.push((e) => {
969
969
  let n = e._zod.bag;
970
970
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
971
971
  }), e._zod.check = (n) => {
@@ -988,9 +988,9 @@ var Gt = (e) => {
988
988
  continue: !t.abort
989
989
  });
990
990
  };
991
- }), cn = /*@__PURE__*/ E("$ZodCheckStringFormat", (e, t) => {
991
+ }), ln = /*@__PURE__*/ E("$ZodCheckStringFormat", (e, t) => {
992
992
  var n, r;
993
- A.init(e, t), e._zod.onattach.push((e) => {
993
+ k.init(e, t), e._zod.onattach.push((e) => {
994
994
  let n = e._zod.bag;
995
995
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
996
996
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -1004,8 +1004,8 @@ var Gt = (e) => {
1004
1004
  continue: !t.abort
1005
1005
  });
1006
1006
  }) : (r = e._zod).check ?? (r.check = () => {});
1007
- }), ln = /*@__PURE__*/ E("$ZodCheckRegex", (e, t) => {
1008
- cn.init(e, t), e._zod.check = (n) => {
1007
+ }), un = /*@__PURE__*/ E("$ZodCheckRegex", (e, t) => {
1008
+ ln.init(e, t), e._zod.check = (n) => {
1009
1009
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
1010
1010
  origin: "string",
1011
1011
  code: "invalid_format",
@@ -1016,13 +1016,13 @@ var Gt = (e) => {
1016
1016
  continue: !t.abort
1017
1017
  });
1018
1018
  };
1019
- }), un = /*@__PURE__*/ E("$ZodCheckLowerCase", (e, t) => {
1020
- t.pattern ??= Xt, cn.init(e, t);
1021
- }), dn = /*@__PURE__*/ E("$ZodCheckUpperCase", (e, t) => {
1022
- t.pattern ??= Zt, cn.init(e, t);
1023
- }), fn = /*@__PURE__*/ E("$ZodCheckIncludes", (e, t) => {
1024
- A.init(e, t);
1025
- let n = v(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
1019
+ }), dn = /*@__PURE__*/ E("$ZodCheckLowerCase", (e, t) => {
1020
+ t.pattern ??= Zt, ln.init(e, t);
1021
+ }), fn = /*@__PURE__*/ E("$ZodCheckUpperCase", (e, t) => {
1022
+ t.pattern ??= Qt, ln.init(e, t);
1023
+ }), pn = /*@__PURE__*/ E("$ZodCheckIncludes", (e, t) => {
1024
+ k.init(e, t);
1025
+ let n = _(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${n}` : n);
1026
1026
  t.pattern = r, e._zod.onattach.push((e) => {
1027
1027
  let t = e._zod.bag;
1028
1028
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
@@ -1037,9 +1037,9 @@ var Gt = (e) => {
1037
1037
  continue: !t.abort
1038
1038
  });
1039
1039
  };
1040
- }), pn = /*@__PURE__*/ E("$ZodCheckStartsWith", (e, t) => {
1041
- A.init(e, t);
1042
- let n = RegExp(`^${v(t.prefix)}.*`);
1040
+ }), mn = /*@__PURE__*/ E("$ZodCheckStartsWith", (e, t) => {
1041
+ k.init(e, t);
1042
+ let n = RegExp(`^${_(t.prefix)}.*`);
1043
1043
  t.pattern ??= n, e._zod.onattach.push((e) => {
1044
1044
  let t = e._zod.bag;
1045
1045
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -1054,9 +1054,9 @@ var Gt = (e) => {
1054
1054
  continue: !t.abort
1055
1055
  });
1056
1056
  };
1057
- }), mn = /*@__PURE__*/ E("$ZodCheckEndsWith", (e, t) => {
1058
- A.init(e, t);
1059
- let n = RegExp(`.*${v(t.suffix)}$`);
1057
+ }), hn = /*@__PURE__*/ E("$ZodCheckEndsWith", (e, t) => {
1058
+ k.init(e, t);
1059
+ let n = RegExp(`.*${_(t.suffix)}$`);
1060
1060
  t.pattern ??= n, e._zod.onattach.push((e) => {
1061
1061
  let t = e._zod.bag;
1062
1062
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -1071,11 +1071,11 @@ var Gt = (e) => {
1071
1071
  continue: !t.abort
1072
1072
  });
1073
1073
  };
1074
- }), hn = /*@__PURE__*/ E("$ZodCheckOverwrite", (e, t) => {
1075
- A.init(e, t), e._zod.check = (e) => {
1074
+ }), gn = /*@__PURE__*/ E("$ZodCheckOverwrite", (e, t) => {
1075
+ k.init(e, t), e._zod.check = (e) => {
1076
1076
  e.value = t.tx(e.value);
1077
1077
  };
1078
- }), gn = class {
1078
+ }), _n = class {
1079
1079
  constructor(e = [], t = {}) {
1080
1080
  this.content = [], this.indent = 0, this.args = e, this.closed = t;
1081
1081
  }
@@ -1094,13 +1094,13 @@ var Gt = (e) => {
1094
1094
  let e = Function, t = this?.content ?? [""];
1095
1095
  return new e(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${t.join("\n")}\n};`)(...Object.values(this.closed));
1096
1096
  }
1097
- }, _n = {
1097
+ }, vn = {
1098
1098
  major: 4,
1099
1099
  minor: 5,
1100
1100
  patch: 4
1101
- }, j = /*@__PURE__*/ E("$ZodType", (e, t) => {
1101
+ }, A = /*@__PURE__*/ E("$ZodType", (e, t) => {
1102
1102
  var n;
1103
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = _n;
1103
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vn;
1104
1104
  let r = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...r ?? []] : r?.length ? [...r] : [];
1105
1105
  for (let t of i) for (let n of t._zod.onattach) n(e);
1106
1106
  if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
@@ -1109,27 +1109,27 @@ var Gt = (e) => {
1109
1109
  else {
1110
1110
  let t = (t, n, r) => {
1111
1111
  if (t.memo) return t;
1112
- let i = Se(t), a;
1112
+ let i = b(t), a;
1113
1113
  for (let o of n) {
1114
1114
  if (o._zod.def.when) {
1115
1115
  if (Ce(t) || !o._zod.def.when(t)) continue;
1116
1116
  } else if (i) continue;
1117
1117
  let n = t.issues.length, s = o._zod.check(t);
1118
- if (s instanceof Promise && r?.async === !1) throw new D();
1118
+ if (s instanceof Promise && r?.async === !1) throw new We();
1119
1119
  if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
1120
- await s, t.issues.length !== n && (Te(t.issues, n, e), i ||= Se(t, n));
1120
+ await s, t.issues.length !== n && (Te(t.issues, n, e), i ||= b(t, n));
1121
1121
  });
1122
1122
  else {
1123
1123
  if (t.issues.length === n) continue;
1124
- Te(t.issues, n, e), i ||= Se(t, n);
1124
+ Te(t.issues, n, e), i ||= b(t, n);
1125
1125
  }
1126
1126
  }
1127
1127
  return a ? a.then(() => t) : t;
1128
1128
  }, n = (n, r, a) => {
1129
- if (Se(n)) return n.aborted = !0, n;
1129
+ if (b(n)) return n.aborted = !0, n;
1130
1130
  let o = t(r, i, a);
1131
1131
  if (o instanceof Promise) {
1132
- if (a.async === !1) throw new D();
1132
+ if (a.async === !1) throw new We();
1133
1133
  return o.then((t) => e._zod.parse(t, a));
1134
1134
  }
1135
1135
  return e._zod.parse(o, a);
@@ -1148,7 +1148,7 @@ var Gt = (e) => {
1148
1148
  }
1149
1149
  let o = e._zod.parse(r, a);
1150
1150
  if (o instanceof Promise) {
1151
- if (a.async === !1) throw new D();
1151
+ if (a.async === !1) throw new We();
1152
1152
  return o.then((e) => t(e, i, a));
1153
1153
  }
1154
1154
  return t(o, i, a);
@@ -1156,27 +1156,27 @@ var Gt = (e) => {
1156
1156
  }
1157
1157
  }, {
1158
1158
  get "~standard"() {
1159
- return Me(this, "~standard", yn(this));
1159
+ return Me(this, "~standard", bn(this));
1160
1160
  },
1161
1161
  set "~standard"(e) {
1162
1162
  C(this, "~standard", e);
1163
1163
  }
1164
- }), vn = (e) => e.success ? { value: e.data } : { issues: e.error?.issues };
1165
- function yn(e) {
1164
+ }), yn = (e) => e.success ? { value: e.data } : { issues: e.error?.issues };
1165
+ function bn(e) {
1166
1166
  return {
1167
1167
  validate: (t) => {
1168
1168
  try {
1169
- return vn(st(e, t));
1169
+ return yn(ct(e, t));
1170
1170
  } catch {
1171
- return lt(e, t).then(vn);
1171
+ return ut(e, t).then(yn);
1172
1172
  }
1173
1173
  },
1174
1174
  vendor: "zod",
1175
1175
  version: 1
1176
1176
  };
1177
1177
  }
1178
- var bn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1179
- j.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Gt(e._zod.bag), e._zod.parse = (n, r) => {
1178
+ var xn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1179
+ A.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Kt(e._zod.bag), e._zod.parse = (n, r) => {
1180
1180
  if (t.coerce) try {
1181
1181
  n.value = String(n.value);
1182
1182
  } catch {}
@@ -1187,11 +1187,11 @@ var bn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1187
1187
  inst: e
1188
1188
  }), n;
1189
1189
  };
1190
- }), M = /*@__PURE__*/ E("$ZodStringFormat", (e, t) => {
1191
- cn.init(e, t), bn.init(e, t);
1192
- }), xn = /*@__PURE__*/ E("$ZodGUID", (e, t) => {
1193
- t.pattern ??= Et, M.init(e, t);
1194
- }), Sn = /*@__PURE__*/ E("$ZodUUID", (e, t) => {
1190
+ }), j = /*@__PURE__*/ E("$ZodStringFormat", (e, t) => {
1191
+ ln.init(e, t), xn.init(e, t);
1192
+ }), Sn = /*@__PURE__*/ E("$ZodGUID", (e, t) => {
1193
+ t.pattern ??= Dt, j.init(e, t);
1194
+ }), Cn = /*@__PURE__*/ E("$ZodUUID", (e, t) => {
1195
1195
  if (t.version) {
1196
1196
  let e = {
1197
1197
  v1: 1,
@@ -1204,34 +1204,34 @@ var bn = /*@__PURE__*/ E("$ZodString", (e, t) => {
1204
1204
  v8: 8
1205
1205
  }[t.version];
1206
1206
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
1207
- t.pattern ??= Dt(e);
1208
- } else t.pattern ??= Dt();
1209
- M.init(e, t);
1210
- }), Cn = /*@__PURE__*/ E("$ZodEmail", (e, t) => {
1211
- t.pattern ??= Ot, M.init(e, t);
1207
+ t.pattern ??= Ot(e);
1208
+ } else t.pattern ??= Ot();
1209
+ j.init(e, t);
1210
+ }), wn = /*@__PURE__*/ E("$ZodEmail", (e, t) => {
1211
+ t.pattern ??= kt, j.init(e, t);
1212
1212
  });
1213
- function wn(e, t) {
1214
- if (!t.normalize && t.protocol?.source === Lt.source && !/^https?:\/\//i.test(e)) return 1;
1213
+ function Tn(e, t) {
1214
+ if (!t.normalize && t.protocol?.source === Rt.source && !/^https?:\/\//i.test(e)) return 1;
1215
1215
  try {
1216
1216
  return new URL(e);
1217
1217
  } catch {
1218
1218
  return 2;
1219
1219
  }
1220
1220
  }
1221
- var Tn = /[\t\n\r]/g;
1222
- function En(e) {
1223
- return e.replace(Tn, "");
1221
+ var En = /[\t\n\r]/g;
1222
+ function Dn(e) {
1223
+ return e.replace(En, "");
1224
1224
  }
1225
- function Dn(e, t) {
1225
+ function On(e, t) {
1226
1226
  return t.lastIndex = 0, t.test(e.hostname);
1227
1227
  }
1228
- function On(e, t) {
1228
+ function kn(e, t) {
1229
1229
  return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
1230
1230
  }
1231
- var kn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1232
- M.init(e, t), e._zod.check = (n) => {
1231
+ var An = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1232
+ j.init(e, t), e._zod.check = (n) => {
1233
1233
  try {
1234
- let r = n.value.trim(), i = wn(r, t);
1234
+ let r = n.value.trim(), i = Tn(r, t);
1235
1235
  if (i === 1) {
1236
1236
  n.issues.push({
1237
1237
  code: "invalid_format",
@@ -1253,7 +1253,7 @@ var kn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1253
1253
  });
1254
1254
  return;
1255
1255
  }
1256
- t.hostname && !Dn(i, t.hostname) && n.issues.push({
1256
+ t.hostname && !On(i, t.hostname) && n.issues.push({
1257
1257
  code: "invalid_format",
1258
1258
  format: "url",
1259
1259
  note: "Invalid hostname",
@@ -1261,7 +1261,7 @@ var kn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1261
1261
  input: n.value,
1262
1262
  inst: e,
1263
1263
  continue: !t.abort
1264
- }), t.protocol && !On(i, t.protocol) && n.issues.push({
1264
+ }), t.protocol && !kn(i, t.protocol) && n.issues.push({
1265
1265
  code: "invalid_format",
1266
1266
  format: "url",
1267
1267
  note: "Invalid protocol",
@@ -1269,7 +1269,7 @@ var kn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1269
1269
  input: n.value,
1270
1270
  inst: e,
1271
1271
  continue: !t.abort
1272
- }), n.value = t.normalize ? i.href : En(r);
1272
+ }), n.value = t.normalize ? i.href : Dn(r);
1273
1273
  return;
1274
1274
  } catch {
1275
1275
  n.issues.push({
@@ -1281,45 +1281,45 @@ var kn = /*@__PURE__*/ E("$ZodURL", (e, t) => {
1281
1281
  });
1282
1282
  }
1283
1283
  };
1284
- }), An = /*@__PURE__*/ E("$ZodEmoji", (e, t) => {
1285
- t.pattern ??= At(), M.init(e, t);
1286
- }), jn = /*@__PURE__*/ E("$ZodNanoID", (e, t) => {
1284
+ }), jn = /*@__PURE__*/ E("$ZodEmoji", (e, t) => {
1285
+ t.pattern ??= jt(), j.init(e, t);
1286
+ }), Mn = /*@__PURE__*/ E("$ZodNanoID", (e, t) => {
1287
1287
  if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw Error(`Invalid nanoid length: ${t.length}`);
1288
- t.pattern ??= t.length === void 0 ? Ct : wt(t.length), M.init(e, t);
1289
- }), Mn = /*@__PURE__*/ E("$ZodCUID", (e, t) => {
1290
- t.pattern ??= vt, M.init(e, t);
1291
- }), Nn = /*@__PURE__*/ E("$ZodCUID2", (e, t) => {
1292
- t.pattern ??= yt, M.init(e, t);
1293
- }), Pn = /*@__PURE__*/ E("$ZodULID", (e, t) => {
1294
- t.pattern ??= bt, M.init(e, t);
1295
- }), Fn = /*@__PURE__*/ E("$ZodXID", (e, t) => {
1296
- t.pattern ??= xt, M.init(e, t);
1297
- }), In = /*@__PURE__*/ E("$ZodKSUID", (e, t) => {
1298
- t.pattern ??= St, M.init(e, t);
1299
- }), Ln = /*@__PURE__*/ E("$ZodISODateTime", (e, t) => {
1300
- t.pattern ??= Wt(t), M.init(e, t), (t.local || t.precision === -1) && (e._zod.bag.laxFormat = !0, e._zod.onattach.push((e) => {
1288
+ t.pattern ??= t.length === void 0 ? wt : Tt(t.length), j.init(e, t);
1289
+ }), Nn = /*@__PURE__*/ E("$ZodCUID", (e, t) => {
1290
+ t.pattern ??= yt, j.init(e, t);
1291
+ }), Pn = /*@__PURE__*/ E("$ZodCUID2", (e, t) => {
1292
+ t.pattern ??= bt, j.init(e, t);
1293
+ }), Fn = /*@__PURE__*/ E("$ZodULID", (e, t) => {
1294
+ t.pattern ??= xt, j.init(e, t);
1295
+ }), In = /*@__PURE__*/ E("$ZodXID", (e, t) => {
1296
+ t.pattern ??= St, j.init(e, t);
1297
+ }), Ln = /*@__PURE__*/ E("$ZodKSUID", (e, t) => {
1298
+ t.pattern ??= Ct, j.init(e, t);
1299
+ }), Rn = /*@__PURE__*/ E("$ZodISODateTime", (e, t) => {
1300
+ t.pattern ??= Gt(t), j.init(e, t), (t.local || t.precision === -1) && (e._zod.bag.laxFormat = !0, e._zod.onattach.push((e) => {
1301
1301
  e._zod.bag.laxFormat = !0;
1302
1302
  }));
1303
- }), Rn = /*@__PURE__*/ E("$ZodISODate", (e, t) => {
1304
- t.pattern ??= Vt, M.init(e, t);
1305
- }), zn = /*@__PURE__*/ E("$ZodISOTime", (e, t) => {
1306
- t.pattern ??= Ut(t), M.init(e, t);
1307
- }), Bn = /*@__PURE__*/ E("$ZodISODuration", (e, t) => {
1308
- t.pattern ??= Tt, M.init(e, t);
1309
- }), Vn = /*@__PURE__*/ E("$ZodIPv4", (e, t) => {
1310
- t.pattern ??= jt, M.init(e, t), e._zod.bag.format = "ipv4";
1311
- }), Hn = /^[0-9a-fA-F:.]+$/;
1312
- function Un(e) {
1313
- if (!Hn.test(e)) return !1;
1303
+ }), zn = /*@__PURE__*/ E("$ZodISODate", (e, t) => {
1304
+ t.pattern ??= Ht, j.init(e, t);
1305
+ }), Bn = /*@__PURE__*/ E("$ZodISOTime", (e, t) => {
1306
+ t.pattern ??= Wt(t), j.init(e, t);
1307
+ }), Vn = /*@__PURE__*/ E("$ZodISODuration", (e, t) => {
1308
+ t.pattern ??= Et, j.init(e, t);
1309
+ }), Hn = /*@__PURE__*/ E("$ZodIPv4", (e, t) => {
1310
+ t.pattern ??= Mt, j.init(e, t), e._zod.bag.format = "ipv4";
1311
+ }), Un = /^[0-9a-fA-F:.]+$/;
1312
+ function Wn(e) {
1313
+ if (!Un.test(e)) return !1;
1314
1314
  try {
1315
1315
  return new URL(`http://[${e}]`), !0;
1316
1316
  } catch {
1317
1317
  return !1;
1318
1318
  }
1319
1319
  }
1320
- var Wn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
1321
- t.pattern ??= Mt, M.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1322
- Un(n.value) || n.issues.push({
1320
+ var Gn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
1321
+ t.pattern ??= Nt, j.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
1322
+ Wn(n.value) || n.issues.push({
1323
1323
  code: "invalid_format",
1324
1324
  format: "ipv6",
1325
1325
  input: n.value,
@@ -1327,20 +1327,20 @@ var Wn = /*@__PURE__*/ E("$ZodIPv6", (e, t) => {
1327
1327
  continue: !t.abort
1328
1328
  });
1329
1329
  };
1330
- }), Gn = /*@__PURE__*/ E("$ZodCIDRv4", (e, t) => {
1331
- t.pattern ??= Nt, M.init(e, t);
1330
+ }), Kn = /*@__PURE__*/ E("$ZodCIDRv4", (e, t) => {
1331
+ t.pattern ??= Pt, j.init(e, t);
1332
1332
  });
1333
- function Kn(e) {
1333
+ function qn(e) {
1334
1334
  let t = e.split("/");
1335
1335
  if (t.length !== 2) return !1;
1336
1336
  let [n, r] = t;
1337
1337
  if (!r) return !1;
1338
1338
  let i = Number(r);
1339
- return `${i}` !== r || i < 0 || i > 128 ? !1 : Un(n);
1339
+ return `${i}` !== r || i < 0 || i > 128 ? !1 : Wn(n);
1340
1340
  }
1341
- var qn = /*@__PURE__*/ E("$ZodCIDRv6", (e, t) => {
1342
- t.pattern ??= Pt, M.init(e, t), e._zod.check = (n) => {
1343
- Kn(n.value) || n.issues.push({
1341
+ var Jn = /*@__PURE__*/ E("$ZodCIDRv6", (e, t) => {
1342
+ t.pattern ??= Ft, j.init(e, t), e._zod.check = (n) => {
1343
+ qn(n.value) || n.issues.push({
1344
1344
  code: "invalid_format",
1345
1345
  format: "cidrv6",
1346
1346
  input: n.value,
@@ -1349,7 +1349,7 @@ var qn = /*@__PURE__*/ E("$ZodCIDRv6", (e, t) => {
1349
1349
  });
1350
1350
  };
1351
1351
  });
1352
- function Jn(e) {
1352
+ function Yn(e) {
1353
1353
  if (e === "") return !0;
1354
1354
  if (/\s/.test(e) || e.length % 4 != 0) return !1;
1355
1355
  try {
@@ -1358,9 +1358,9 @@ function Jn(e) {
1358
1358
  return !1;
1359
1359
  }
1360
1360
  }
1361
- var Yn = /*@__PURE__*/ E("$ZodBase64", (e, t) => {
1362
- t.pattern ??= Ft, M.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1363
- Jn(n.value) || n.issues.push({
1361
+ var Xn = /*@__PURE__*/ E("$ZodBase64", (e, t) => {
1362
+ t.pattern ??= It, j.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
1363
+ Yn(n.value) || n.issues.push({
1364
1364
  code: "invalid_format",
1365
1365
  format: "base64",
1366
1366
  input: n.value,
@@ -1369,14 +1369,14 @@ var Yn = /*@__PURE__*/ E("$ZodBase64", (e, t) => {
1369
1369
  });
1370
1370
  };
1371
1371
  });
1372
- function Xn(e) {
1373
- if (!It.test(e)) return !1;
1372
+ function Zn(e) {
1373
+ if (!Lt.test(e)) return !1;
1374
1374
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
1375
- return Jn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1375
+ return Yn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1376
1376
  }
1377
- var Zn = /*@__PURE__*/ E("$ZodBase64URL", (e, t) => {
1378
- t.pattern ??= It, M.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1379
- Xn(n.value) || n.issues.push({
1377
+ var Qn = /*@__PURE__*/ E("$ZodBase64URL", (e, t) => {
1378
+ t.pattern ??= Lt, j.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1379
+ Zn(n.value) || n.issues.push({
1380
1380
  code: "invalid_format",
1381
1381
  format: "base64url",
1382
1382
  input: n.value,
@@ -1384,10 +1384,10 @@ var Zn = /*@__PURE__*/ E("$ZodBase64URL", (e, t) => {
1384
1384
  continue: !t.abort
1385
1385
  });
1386
1386
  };
1387
- }), Qn = /*@__PURE__*/ E("$ZodE164", (e, t) => {
1388
- t.pattern ??= Rt, M.init(e, t);
1387
+ }), $n = /*@__PURE__*/ E("$ZodE164", (e, t) => {
1388
+ t.pattern ??= zt, j.init(e, t);
1389
1389
  });
1390
- function $n(e, t = null) {
1390
+ function er(e, t = null) {
1391
1391
  try {
1392
1392
  let n = e.split(".");
1393
1393
  if (n.length !== 3) return !1;
@@ -1399,9 +1399,9 @@ function $n(e, t = null) {
1399
1399
  return !1;
1400
1400
  }
1401
1401
  }
1402
- var er = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1403
- M.init(e, t), e._zod.check = (n) => {
1404
- $n(n.value, t.alg) || n.issues.push({
1402
+ var tr = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1403
+ j.init(e, t), e._zod.check = (n) => {
1404
+ er(n.value, t.alg) || n.issues.push({
1405
1405
  code: "invalid_format",
1406
1406
  format: "jwt",
1407
1407
  input: n.value,
@@ -1409,8 +1409,8 @@ var er = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1409
1409
  continue: !t.abort
1410
1410
  });
1411
1411
  };
1412
- }), tr = /*@__PURE__*/ E("$ZodNumber", (e, t) => {
1413
- j.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? qt, e._zod.parse = (n, r) => {
1412
+ }), nr = /*@__PURE__*/ E("$ZodNumber", (e, t) => {
1413
+ A.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Jt, e._zod.parse = (n, r) => {
1414
1414
  if (t.coerce) try {
1415
1415
  n.value = Number(n.value);
1416
1416
  } catch {}
@@ -1425,10 +1425,10 @@ var er = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1425
1425
  ...a ? { received: a } : {}
1426
1426
  }), n;
1427
1427
  };
1428
- }), nr = /*@__PURE__*/ E("$ZodNumberFormat", (e, t) => {
1429
- rn.init(e, t), tr.init(e, t);
1430
- }), rr = /*@__PURE__*/ E("$ZodBoolean", (e, t) => {
1431
- j.init(e, t), e._zod.pattern = Jt, e._zod.parse = (n, r) => {
1428
+ }), rr = /*@__PURE__*/ E("$ZodNumberFormat", (e, t) => {
1429
+ an.init(e, t), nr.init(e, t);
1430
+ }), ir = /*@__PURE__*/ E("$ZodBoolean", (e, t) => {
1431
+ A.init(e, t), e._zod.pattern = Yt, e._zod.parse = (n, r) => {
1432
1432
  if (t.coerce) try {
1433
1433
  n.value = !!n.value;
1434
1434
  } catch {}
@@ -1440,8 +1440,8 @@ var er = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1440
1440
  inst: e
1441
1441
  }), n;
1442
1442
  };
1443
- }), ir = /*@__PURE__*/ E("$ZodNull", (e, t) => {
1444
- j.init(e, t), e._zod.pattern = Yt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1443
+ }), ar = /*@__PURE__*/ E("$ZodNull", (e, t) => {
1444
+ A.init(e, t), e._zod.pattern = Xt, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (t, n) => {
1445
1445
  let r = t.value;
1446
1446
  return r === null || t.issues.push({
1447
1447
  expected: "null",
@@ -1450,22 +1450,22 @@ var er = /*@__PURE__*/ E("$ZodJWT", (e, t) => {
1450
1450
  inst: e
1451
1451
  }), t;
1452
1452
  };
1453
- }), ar = /*@__PURE__*/ E("$ZodUnknown", (e, t) => {
1454
- j.init(e, t), e._zod.parse = (e) => e;
1455
- }), or = /*@__PURE__*/ E("$ZodNever", (e, t) => {
1456
- j.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1453
+ }), or = /*@__PURE__*/ E("$ZodUnknown", (e, t) => {
1454
+ A.init(e, t), e._zod.parse = (e) => e;
1455
+ }), sr = /*@__PURE__*/ E("$ZodNever", (e, t) => {
1456
+ A.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1457
1457
  expected: "never",
1458
1458
  code: "invalid_type",
1459
1459
  input: t.value,
1460
1460
  inst: e
1461
1461
  }), t);
1462
1462
  });
1463
- function sr(e, t, n) {
1463
+ function cr(e, t, n) {
1464
1464
  e.issues.length && t.issues.push(...x(n, e.issues)), t.value[n] = e.value;
1465
1465
  }
1466
- var cr = /*@__PURE__*/ E("$ZodArray", (e, t) => {
1467
- j.init(e, t);
1468
- let n = O.memoizer;
1466
+ var lr = /*@__PURE__*/ E("$ZodArray", (e, t) => {
1467
+ A.init(e, t);
1468
+ let n = D.memoizer;
1469
1469
  n?.attach(e), e._zod.parse = (r, i) => {
1470
1470
  let a = r.value;
1471
1471
  if (!Array.isArray(a)) return r.issues.push({
@@ -1481,12 +1481,12 @@ var cr = /*@__PURE__*/ E("$ZodArray", (e, t) => {
1481
1481
  value: n,
1482
1482
  issues: []
1483
1483
  }, i);
1484
- s instanceof Promise ? o.push(s.then((t) => sr(t, r, e))) : sr(s, r, e);
1484
+ s instanceof Promise ? o.push(s.then((t) => cr(t, r, e))) : cr(s, r, e);
1485
1485
  }
1486
1486
  return o.length ? Promise.all(o).then(() => r) : r;
1487
1487
  };
1488
1488
  });
1489
- function lr(e, t, n, r, i, a) {
1489
+ function ur(e, t, n, r, i, a) {
1490
1490
  let o = n in r, s = a === "optional";
1491
1491
  if (!(!o && s && i === "optional")) {
1492
1492
  if (e.issues.length) {
@@ -1505,11 +1505,11 @@ function lr(e, t, n, r, i, a) {
1505
1505
  e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1506
1506
  }
1507
1507
  }
1508
- var ur = [];
1509
- function dr(e) {
1510
- let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : ur, i = r.length ? [...t, ...r] : t;
1508
+ var dr = [];
1509
+ function fr(e) {
1510
+ let t = Object.keys(e.shape), n = Object.getOwnPropertySymbols(e.shape), r = n.length ? n : dr, i = r.length ? [...t, ...r] : t;
1511
1511
  for (let t of i) if (!e.shape?.[t]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);
1512
- let a = pe(e.shape);
1512
+ let a = me(e.shape);
1513
1513
  return {
1514
1514
  ...e,
1515
1515
  allKeys: i,
@@ -1519,7 +1519,7 @@ function dr(e) {
1519
1519
  optionalKeys: new Set(a)
1520
1520
  };
1521
1521
  }
1522
- function fr(e, t, n, r, i, a) {
1522
+ function pr(e, t, n, r, i, a) {
1523
1523
  let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin, d = c.optout;
1524
1524
  for (let i in t) {
1525
1525
  if (s.has(i)) continue;
@@ -1535,7 +1535,7 @@ function fr(e, t, n, r, i, a) {
1535
1535
  value: t[i],
1536
1536
  issues: []
1537
1537
  }, r);
1538
- a instanceof Promise ? e.push(a.then((e) => lr(e, n, i, t, u, d))) : lr(a, n, i, t, u, d);
1538
+ a instanceof Promise ? e.push(a.then((e) => ur(e, n, i, t, u, d))) : ur(a, n, i, t, u, d);
1539
1539
  }
1540
1540
  return o.length && n.issues.push({
1541
1541
  code: "unrecognized_keys",
@@ -1545,15 +1545,15 @@ function fr(e, t, n, r, i, a) {
1545
1545
  continue: !0
1546
1546
  }), e.length ? Promise.all(e).then(() => n) : n;
1547
1547
  }
1548
- var pr = /* @__PURE__ */ new WeakMap(), mr = /*@__PURE__*/ E("$ZodObject", (e, t) => {
1549
- if (j.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1548
+ var mr = /* @__PURE__ */ new WeakMap(), hr = /*@__PURE__*/ E("$ZodObject", (e, t) => {
1549
+ if (A.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1550
1550
  let e = t.shape;
1551
- pr.set(t, e), Object.defineProperty(t, "shape", { get: () => {
1551
+ mr.set(t, e), Object.defineProperty(t, "shape", { get: () => {
1552
1552
  let n = { ...e };
1553
- return Object.defineProperty(t, "shape", { value: n }), pr.set(t, n), n;
1553
+ return Object.defineProperty(t, "shape", { value: n }), mr.set(t, n), n;
1554
1554
  } });
1555
1555
  }
1556
- let n = m(() => dr(t));
1556
+ let n = m(() => fr(t));
1557
1557
  T(e, "propValues", (e) => {
1558
1558
  let t = e.def.shape, n = {};
1559
1559
  for (let e in t) {
@@ -1566,7 +1566,7 @@ var pr = /* @__PURE__ */ new WeakMap(), mr = /*@__PURE__*/ E("$ZodObject", (e, t
1566
1566
  }
1567
1567
  return n;
1568
1568
  });
1569
- let r = ce, i = t.catchall, a, o = O.memoizer;
1569
+ let r = ce, i = t.catchall, a, o = D.memoizer;
1570
1570
  o?.attach(e), e._zod.parse = (t, s) => {
1571
1571
  a ??= n.value;
1572
1572
  let c = t.value;
@@ -1584,14 +1584,14 @@ var pr = /* @__PURE__ */ new WeakMap(), mr = /*@__PURE__*/ E("$ZodObject", (e, t
1584
1584
  value: c[e],
1585
1585
  issues: []
1586
1586
  }, s);
1587
- a instanceof Promise ? l.push(a.then((n) => lr(n, t, e, c, r, i))) : lr(a, t, e, c, r, i);
1587
+ a instanceof Promise ? l.push(a.then((n) => ur(n, t, e, c, r, i))) : ur(a, t, e, c, r, i);
1588
1588
  }
1589
- return i ? fr(l, c, t, s, n.value, e) : l.length ? Promise.all(l).then(() => t) : t;
1589
+ return i ? pr(l, c, t, s, n.value, e) : l.length ? Promise.all(l).then(() => t) : t;
1590
1590
  };
1591
- }), hr = /*@__PURE__*/ E("$ZodObjectJIT", (e, t) => {
1592
- mr.init(e, t);
1593
- let n = e._zod.parse, r = m(() => dr(t)), i = O.memoizer, a = (t) => {
1594
- let n = r.value, a = n.symbolKeys, o = new gn(["payload", "ctx"], {
1591
+ }), gr = /*@__PURE__*/ E("$ZodObjectJIT", (e, t) => {
1592
+ hr.init(e, t);
1593
+ let n = e._zod.parse, r = m(() => fr(t)), i = D.memoizer, a = (t) => {
1594
+ let n = r.value, a = n.symbolKeys, o = new _n(["payload", "ctx"], {
1595
1595
  shape: t,
1596
1596
  inst: e,
1597
1597
  memo: i,
@@ -1655,11 +1655,11 @@ var pr = /* @__PURE__ */ new WeakMap(), mr = /*@__PURE__*/ E("$ZodObject", (e, t
1655
1655
  `);
1656
1656
  }
1657
1657
  return o.write("payload.value = newResult;"), o.write("return payload;"), o.compile();
1658
- }, o, s = ce, c = !O.jitless, l = c && le.value, u = t.catchall, d;
1658
+ }, o, s = ce, c = !D.jitless, l = c && le.value, u = t.catchall, d;
1659
1659
  e._zod.parse = (i, f) => {
1660
1660
  d ??= r.value;
1661
1661
  let p = i.value;
1662
- return s(p) ? c && l && f?.async === !1 && f.jitless !== !0 ? (o ||= a(t.shape), i = o(i, f), u ? fr([], p, i, f, d, e) : i) : n(i, f) : (i.issues.push({
1662
+ return s(p) ? c && l && f?.async === !1 && f.jitless !== !0 ? (o ||= a(t.shape), i = o(i, f), u ? pr([], p, i, f, d, e) : i) : n(i, f) : (i.issues.push({
1663
1663
  expected: "object",
1664
1664
  code: "invalid_type",
1665
1665
  input: p,
@@ -1667,18 +1667,18 @@ var pr = /* @__PURE__ */ new WeakMap(), mr = /*@__PURE__*/ E("$ZodObject", (e, t
1667
1667
  }), i);
1668
1668
  };
1669
1669
  });
1670
- function gr(e, t, n, r) {
1670
+ function _r(e, t, n, r) {
1671
1671
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1672
- let i = e.filter((e) => !Se(e));
1672
+ let i = e.filter((e) => !b(e));
1673
1673
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1674
1674
  code: "invalid_union",
1675
1675
  input: t.value,
1676
1676
  inst: n,
1677
- errors: e.map((e) => e.issues.map((e) => S(e, r, k())))
1677
+ errors: e.map((e) => e.issues.map((e) => S(e, r, O())))
1678
1678
  }), t);
1679
1679
  }
1680
- var _r = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1681
- j.init(e, t), T(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), T(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), T(e, "values", (e) => {
1680
+ var vr = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1681
+ A.init(e, t), T(e, "optin", (e) => e.def.options.some((e) => e._zod.optin === "defaulted") ? "defaulted" : e.def.options.some((e) => e._zod.optin !== void 0) ? "optional" : void 0), T(e, "optout", (e) => e.def.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), T(e, "values", (e) => {
1682
1682
  if (e.def.options.every((e) => e._zod.values)) return new Set(e.def.options.flatMap((e) => Array.from(e._zod.values)));
1683
1683
  }), T(e, "pattern", (e) => {
1684
1684
  if (e.def.options.every((e) => e._zod.pattern)) {
@@ -1701,10 +1701,10 @@ var _r = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1701
1701
  o.push(t);
1702
1702
  }
1703
1703
  }
1704
- return a ? Promise.all(o).then((t) => gr(t, r, e, i)) : gr(o, r, e, i);
1704
+ return a ? Promise.all(o).then((t) => _r(t, r, e, i)) : _r(o, r, e, i);
1705
1705
  };
1706
- }), vr = /*@__PURE__*/ E("$ZodIntersection", (e, t) => {
1707
- j.init(e, t), e._zod.parse = (e, n) => {
1706
+ }), yr = /*@__PURE__*/ E("$ZodIntersection", (e, t) => {
1707
+ A.init(e, t), e._zod.parse = (e, n) => {
1708
1708
  let r = e.value, i = t.left._zod.run({
1709
1709
  value: r,
1710
1710
  issues: []
@@ -1712,15 +1712,15 @@ var _r = /*@__PURE__*/ E("$ZodUnion", (e, t) => {
1712
1712
  value: r,
1713
1713
  issues: []
1714
1714
  }, n);
1715
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => br(e, t, n)) : br(e, i, a);
1715
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => xr(e, t, n)) : xr(e, i, a);
1716
1716
  };
1717
1717
  });
1718
- function yr(e, t) {
1718
+ function br(e, t) {
1719
1719
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1720
1720
  valid: !0,
1721
1721
  data: e
1722
1722
  };
1723
- if (_(e) && _(t)) {
1723
+ if (ue(e) && ue(t)) {
1724
1724
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1725
1725
  ...e,
1726
1726
  ...t
@@ -1728,7 +1728,7 @@ function yr(e, t) {
1728
1728
  Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
1729
1729
  for (let n of r) {
1730
1730
  if (n === "__proto__") continue;
1731
- let r = yr(e[n], t[n]);
1731
+ let r = br(e[n], t[n]);
1732
1732
  if (!r.valid) return {
1733
1733
  valid: !1,
1734
1734
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1747,7 +1747,7 @@ function yr(e, t) {
1747
1747
  };
1748
1748
  let n = [];
1749
1749
  for (let r = 0; r < e.length; r++) {
1750
- let i = e[r], a = t[r], o = yr(i, a);
1750
+ let i = e[r], a = t[r], o = br(i, a);
1751
1751
  if (!o.valid) return {
1752
1752
  valid: !1,
1753
1753
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1764,7 +1764,7 @@ function yr(e, t) {
1764
1764
  mergeErrorPath: []
1765
1765
  };
1766
1766
  }
1767
- function br(e, t, n) {
1767
+ function xr(e, t, n) {
1768
1768
  let r = /* @__PURE__ */ new Map(), i, a = /* @__PURE__ */ new Map(), o = (e, t) => {
1769
1769
  let n;
1770
1770
  if (e.code === "unrecognized_keys" && !e.path?.length) i ??= e, n = e.keys;
@@ -1786,16 +1786,16 @@ function br(e, t, n) {
1786
1786
  });
1787
1787
  for (let n of s) !t.includes(n) && a.has(n) && e.issues.push(a.get(n));
1788
1788
  }
1789
- let c = yr(t.value, n.value);
1789
+ let c = br(t.value, n.value);
1790
1790
  if (!c.valid) {
1791
- if (Se(e)) return e;
1791
+ if (b(e)) return e;
1792
1792
  throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
1793
1793
  }
1794
1794
  return e.value = c.data, e;
1795
1795
  }
1796
- var xr = /*@__PURE__*/ E("$ZodTuple", (e, t) => {
1797
- j.init(e, t);
1798
- let n = t.items, r = O.memoizer;
1796
+ var Sr = /*@__PURE__*/ E("$ZodTuple", (e, t) => {
1797
+ A.init(e, t);
1798
+ let n = t.items, r = D.memoizer;
1799
1799
  r?.attach(e), e._zod.parse = (i, a) => {
1800
1800
  let o = i.value;
1801
1801
  if (!Array.isArray(o)) return i.issues.push({
@@ -1805,7 +1805,7 @@ var xr = /*@__PURE__*/ E("$ZodTuple", (e, t) => {
1805
1805
  code: "invalid_type"
1806
1806
  }), i;
1807
1807
  i.value = r ? r.alloc(e, i, [], a) : [];
1808
- let s = [], c = Sr(n, "optin"), l = Sr(n, "optout");
1808
+ let s = [], c = Cr(n, "optin"), l = Cr(n, "optout");
1809
1809
  if (!t.rest) {
1810
1810
  if (o.length < c) return i.issues.push({
1811
1811
  code: "too_small",
@@ -1842,20 +1842,20 @@ var xr = /*@__PURE__*/ E("$ZodTuple", (e, t) => {
1842
1842
  value: n,
1843
1843
  issues: []
1844
1844
  }, a);
1845
- r instanceof Promise ? s.push(r.then((t) => Cr(t, i, e))) : Cr(r, i, e);
1845
+ r instanceof Promise ? s.push(r.then((t) => wr(t, i, e))) : wr(r, i, e);
1846
1846
  }
1847
1847
  }
1848
- return s.length ? Promise.all(s).then(() => wr(u, i, n, o, l)) : wr(u, i, n, o, l);
1848
+ return s.length ? Promise.all(s).then(() => Tr(u, i, n, o, l)) : Tr(u, i, n, o, l);
1849
1849
  };
1850
1850
  });
1851
- function Sr(e, t) {
1851
+ function Cr(e, t) {
1852
1852
  for (let n = e.length - 1; n >= 0; n--) if (!(t === "optin" ? e[n]._zod.optin !== void 0 : e[n]._zod.optout === "optional")) return n + 1;
1853
1853
  return 0;
1854
1854
  }
1855
- function Cr(e, t, n) {
1855
+ function wr(e, t, n) {
1856
1856
  e.issues.length && t.issues.push(...x(n, e.issues)), t.value[n] = e.value;
1857
1857
  }
1858
- function wr(e, t, n, r, i) {
1858
+ function Tr(e, t, n, r, i) {
1859
1859
  for (let a = 0; a < n.length; a++) {
1860
1860
  let o = e[a], s = a < r.length;
1861
1861
  if (!s && a >= i && n[a]._zod.optin === "optional") {
@@ -1874,12 +1874,12 @@ function wr(e, t, n, r, i) {
1874
1874
  for (let e = t.value.length - 1; e >= r.length && n[e]._zod.optout === "optional" && t.value[e] === void 0; e--) t.value.length = e;
1875
1875
  return t;
1876
1876
  }
1877
- var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1878
- j.init(e, t);
1879
- let n = O.memoizer;
1877
+ var Er = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1878
+ A.init(e, t);
1879
+ let n = D.memoizer;
1880
1880
  n?.attach(e), e._zod.parse = (r, i) => {
1881
1881
  let a = r.value;
1882
- if (!_(a)) return r.issues.push({
1882
+ if (!ue(a)) return r.issues.push({
1883
1883
  expected: "record",
1884
1884
  code: "invalid_type",
1885
1885
  input: a,
@@ -1900,7 +1900,7 @@ var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1900
1900
  r.issues.push({
1901
1901
  code: "invalid_key",
1902
1902
  origin: "record",
1903
- issues: s.issues.map((e) => S(e, i, k())),
1903
+ issues: s.issues.map((e) => S(e, i, O())),
1904
1904
  input: n,
1905
1905
  path: [n],
1906
1906
  inst: e
@@ -1941,7 +1941,7 @@ var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1941
1941
  issues: []
1942
1942
  }, i);
1943
1943
  if (l instanceof Promise) throw Error("Async schemas not supported in object keys currently");
1944
- if (typeof n == "string" && qt.test(n) && l.issues.length) {
1944
+ if (typeof n == "string" && Jt.test(n) && l.issues.length) {
1945
1945
  let e = t.keyType._zod.run({
1946
1946
  value: Number(n),
1947
1947
  issues: []
@@ -1953,7 +1953,7 @@ var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1953
1953
  t.mode === "loose" ? r.value[n] = a[n] : s ? (c ??= [], c.push(n)) : r.issues.push({
1954
1954
  code: "invalid_key",
1955
1955
  origin: "record",
1956
- issues: l.issues.map((e) => S(e, i, k())),
1956
+ issues: l.issues.map((e) => S(e, i, O())),
1957
1957
  input: n,
1958
1958
  path: [n],
1959
1959
  inst: e
@@ -1980,12 +1980,12 @@ var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1980
1980
  }
1981
1981
  return o.length ? Promise.all(o).then(() => r) : r;
1982
1982
  };
1983
- }), Er = /*@__PURE__*/ E("$ZodEnum", (e, t) => {
1984
- j.init(e, t);
1983
+ }), Dr = /*@__PURE__*/ E("$ZodEnum", (e, t) => {
1984
+ A.init(e, t);
1985
1985
  let n = d(t.entries), r = new Set(n);
1986
1986
  e._zod.values = r;
1987
- let i = n.filter((e) => de.has(typeof e));
1988
- e._zod.pattern = RegExp(i.length ? `^(${i.map((e) => v(e.toString())).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (t, i) => {
1987
+ let i = n.filter((e) => fe.has(typeof e));
1988
+ e._zod.pattern = RegExp(i.length ? `^(${i.map((e) => _(e.toString())).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (t, i) => {
1989
1989
  let a = t.value;
1990
1990
  return r.has(a) || t.issues.push({
1991
1991
  code: "invalid_value",
@@ -1994,10 +1994,10 @@ var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
1994
1994
  inst: e
1995
1995
  }), t;
1996
1996
  };
1997
- }), Dr = /*@__PURE__*/ E("$ZodLiteral", (e, t) => {
1998
- j.init(e, t);
1997
+ }), Or = /*@__PURE__*/ E("$ZodLiteral", (e, t) => {
1998
+ A.init(e, t);
1999
1999
  let n = new Set(t.values);
2000
- e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? v(e) : e ? v(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
2000
+ e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? _(e) : e ? _(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
2001
2001
  let a = r.value;
2002
2002
  return n.has(a) || r.issues.push({
2003
2003
  code: "invalid_value",
@@ -2006,20 +2006,20 @@ var Tr = /*@__PURE__*/ E("$ZodRecord", (e, t) => {
2006
2006
  inst: e
2007
2007
  }), r;
2008
2008
  };
2009
- }), Or = /*@__PURE__*/ E("$ZodTransform", (e, t) => {
2010
- j.init(e, t), e._zod.optin = "optional", O.memoizer?.guard(e), e._zod.parse = (n, r) => {
2011
- if (r.direction === "backward") throw new We(e.constructor.name);
2009
+ }), kr = /*@__PURE__*/ E("$ZodTransform", (e, t) => {
2010
+ A.init(e, t), e._zod.optin = "optional", D.memoizer?.guard(e), e._zod.parse = (n, r) => {
2011
+ if (r.direction === "backward") throw new Ge(e.constructor.name);
2012
2012
  let i = t.transform(n.value, n);
2013
2013
  if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
2014
- if (i instanceof Promise) throw new D();
2014
+ if (i instanceof Promise) throw new We();
2015
2015
  return n.value = i, n;
2016
2016
  };
2017
2017
  });
2018
- function kr(e, t) {
2018
+ function Ar(e, t) {
2019
2019
  return e.value = t.issues.length ? void 0 : t.value, e;
2020
2020
  }
2021
- var Ar = /*@__PURE__*/ E("$ZodOptional", (e, t) => {
2022
- j.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", T(e, "values", (e) => {
2021
+ var jr = /*@__PURE__*/ E("$ZodOptional", (e, t) => {
2022
+ A.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", T(e, "values", (e) => {
2023
2023
  let t = e.def.innerType._zod.values;
2024
2024
  return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
2025
2025
  }), T(e, "pattern", (e) => {
@@ -2032,40 +2032,40 @@ var Ar = /*@__PURE__*/ E("$ZodOptional", (e, t) => {
2032
2032
  value: e.value,
2033
2033
  issues: []
2034
2034
  }, n);
2035
- return r instanceof Promise ? r.then((t) => kr(e, t)) : kr(e, r);
2035
+ return r instanceof Promise ? r.then((t) => Ar(e, t)) : Ar(e, r);
2036
2036
  }
2037
2037
  return t.innerType._zod.run(e, n);
2038
2038
  };
2039
- }), jr = /*@__PURE__*/ E("$ZodExactOptional", (e, t) => {
2040
- Ar.init(e, t), T(e, "values", (e) => e.def.innerType._zod.values), T(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
2041
- }), Mr = /*@__PURE__*/ E("$ZodNullable", (e, t) => {
2042
- j.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin), T(e, "optout", (e) => e.def.innerType._zod.optout), T(e, "pattern", (e) => {
2039
+ }), Mr = /*@__PURE__*/ E("$ZodExactOptional", (e, t) => {
2040
+ jr.init(e, t), T(e, "values", (e) => e.def.innerType._zod.values), T(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
2041
+ }), Nr = /*@__PURE__*/ E("$ZodNullable", (e, t) => {
2042
+ A.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin), T(e, "optout", (e) => e.def.innerType._zod.optout), T(e, "pattern", (e) => {
2043
2043
  let t = e.def.innerType._zod.pattern;
2044
2044
  return t ? RegExp(`^(${te(t.source)}|null)$`) : void 0;
2045
2045
  }), T(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
2046
- }), Nr = /*@__PURE__*/ E("$ZodDefault", (e, t) => {
2047
- j.init(e, t), e._zod.optin = "defaulted", T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2046
+ }), Pr = /*@__PURE__*/ E("$ZodDefault", (e, t) => {
2047
+ A.init(e, t), e._zod.optin = "defaulted", T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2048
2048
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2049
2049
  if (e.value === void 0) return e.value = t.defaultValue, e;
2050
2050
  let r = t.innerType._zod.run(e, n);
2051
- return r instanceof Promise ? r.then((e) => Pr(e, t)) : Pr(r, t);
2051
+ return r instanceof Promise ? r.then((e) => Fr(e, t)) : Fr(r, t);
2052
2052
  };
2053
2053
  });
2054
- function Pr(e, t) {
2054
+ function Fr(e, t) {
2055
2055
  return e.value === void 0 && (e.value = t.defaultValue), e;
2056
2056
  }
2057
- var Fr = /*@__PURE__*/ E("$ZodPrefault", (e, t) => {
2058
- j.init(e, t), e._zod.optin = "defaulted", T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
2059
- }), Ir = /*@__PURE__*/ E("$ZodNonOptional", (e, t) => {
2060
- j.init(e, t), T(e, "values", (e) => {
2057
+ var Ir = /*@__PURE__*/ E("$ZodPrefault", (e, t) => {
2058
+ A.init(e, t), e._zod.optin = "defaulted", T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
2059
+ }), Lr = /*@__PURE__*/ E("$ZodNonOptional", (e, t) => {
2060
+ A.init(e, t), T(e, "values", (e) => {
2061
2061
  let t = e.def.innerType._zod.values;
2062
2062
  return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
2063
2063
  }), e._zod.parse = (n, r) => {
2064
2064
  let i = t.innerType._zod.run(n, r);
2065
- return i instanceof Promise ? i.then((t) => Lr(t, e)) : Lr(i, e);
2065
+ return i instanceof Promise ? i.then((t) => Rr(t, e)) : Rr(i, e);
2066
2066
  };
2067
2067
  });
2068
- function Lr(e, t) {
2068
+ function Rr(e, t) {
2069
2069
  return !e.issues.length && e.value === void 0 && e.issues.push({
2070
2070
  code: "invalid_type",
2071
2071
  expected: "nonoptional",
@@ -2073,62 +2073,62 @@ function Lr(e, t) {
2073
2073
  inst: t
2074
2074
  }), e;
2075
2075
  }
2076
- function Rr(e, t, n, r) {
2076
+ function zr(e, t, n, r) {
2077
2077
  return t.issues.length ? (e.value = n.catchValue({
2078
2078
  ...t,
2079
2079
  value: e.value,
2080
- error: { issues: t.issues.map((e) => S(e, r, k())) },
2080
+ error: { issues: t.issues.map((e) => S(e, r, O())) },
2081
2081
  input: e.value
2082
2082
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
2083
2083
  }
2084
- var zr = /*@__PURE__*/ E("$ZodCatch", (e, t) => {
2085
- j.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), T(e, "optout", (e) => e.def.innerType._zod.optout), T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2084
+ var Br = /*@__PURE__*/ E("$ZodCatch", (e, t) => {
2085
+ A.init(e, t), T(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), T(e, "optout", (e) => e.def.innerType._zod.optout), T(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2086
2086
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2087
2087
  let r = t.innerType._zod.run({
2088
2088
  value: e.value,
2089
2089
  issues: []
2090
2090
  }, n);
2091
- return r instanceof Promise ? r.then((r) => Rr(e, r, t, n)) : Rr(e, r, t, n);
2091
+ return r instanceof Promise ? r.then((r) => zr(e, r, t, n)) : zr(e, r, t, n);
2092
2092
  };
2093
- }), Br = /*@__PURE__*/ E("$ZodPipe", (e, t) => {
2094
- j.init(e, t), T(e, "values", (e) => e.def.in._zod.values), T(e, "optin", (e) => e.def.in._zod.optin), T(e, "optout", (e) => e.def.out._zod.optout), T(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
2093
+ }), Vr = /*@__PURE__*/ E("$ZodPipe", (e, t) => {
2094
+ A.init(e, t), T(e, "values", (e) => e.def.in._zod.values), T(e, "optin", (e) => e.def.in._zod.optin), T(e, "optout", (e) => e.def.out._zod.optout), T(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
2095
2095
  if (n.direction === "backward") {
2096
2096
  let r = t.out._zod.run(e, n);
2097
- return r instanceof Promise ? r.then((e) => Vr(e, t.in, n)) : Vr(r, t.in, n);
2097
+ return r instanceof Promise ? r.then((e) => Hr(e, t.in, n)) : Hr(r, t.in, n);
2098
2098
  }
2099
2099
  let r = t.in._zod.run(e, n);
2100
- return r instanceof Promise ? r.then((e) => Vr(e, t.out, n)) : Vr(r, t.out, n);
2100
+ return r instanceof Promise ? r.then((e) => Hr(e, t.out, n)) : Hr(r, t.out, n);
2101
2101
  };
2102
2102
  });
2103
- function Vr(e, t, n) {
2103
+ function Hr(e, t, n) {
2104
2104
  return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
2105
2105
  value: e.value,
2106
2106
  issues: e.issues
2107
2107
  }, n);
2108
2108
  }
2109
- var Hr = /*@__PURE__*/ E("$ZodReadonly", (e, t) => {
2110
- j.init(e, t), T(e, "propValues", (e) => e.def.innerType._zod.propValues), T(e, "values", (e) => e.def.innerType._zod.values), T(e, "optin", (e) => e.def.innerType?._zod?.optin), T(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
2109
+ var Ur = /*@__PURE__*/ E("$ZodReadonly", (e, t) => {
2110
+ A.init(e, t), T(e, "propValues", (e) => e.def.innerType._zod.propValues), T(e, "values", (e) => e.def.innerType._zod.values), T(e, "optin", (e) => e.def.innerType?._zod?.optin), T(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
2111
2111
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2112
2112
  let r = t.innerType._zod.run(e, n);
2113
- return r instanceof Promise ? r.then(Ur) : Ur(r);
2113
+ return r instanceof Promise ? r.then(Wr) : Wr(r);
2114
2114
  };
2115
2115
  });
2116
- function Ur(e) {
2116
+ function Wr(e) {
2117
2117
  return e.memo || (e.value = Object.freeze(e.value)), e;
2118
2118
  }
2119
- var Wr = /*@__PURE__*/ E("$ZodLazy", (e, t) => {
2120
- j.init(e, t), ie(e._zod, "innerType", () => {
2119
+ var Gr = /*@__PURE__*/ E("$ZodLazy", (e, t) => {
2120
+ A.init(e, t), ie(e._zod, "innerType", () => {
2121
2121
  let e = t;
2122
2122
  return e._cachedInner ||= t.getter(), e._cachedInner;
2123
2123
  }), T(e, "pattern", (e) => e.innerType?._zod?.pattern), T(e, "propValues", (e) => e.innerType?._zod?.propValues), T(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), T(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
2124
- }), Gr = /*@__PURE__*/ E("$ZodCustom", (e, t) => {
2125
- A.init(e, t), j.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
2124
+ }), Kr = /*@__PURE__*/ E("$ZodCustom", (e, t) => {
2125
+ k.init(e, t), A.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
2126
2126
  let r = n.value, i = t.fn(r);
2127
- if (i instanceof Promise) return i.then((t) => Kr(t, n, r, e));
2128
- Kr(i, n, r, e);
2127
+ if (i instanceof Promise) return i.then((t) => qr(t, n, r, e));
2128
+ qr(i, n, r, e);
2129
2129
  };
2130
2130
  });
2131
- function Kr(e, t, n, r) {
2131
+ function qr(e, t, n, r) {
2132
2132
  if (!e) {
2133
2133
  let e = {
2134
2134
  code: "custom",
@@ -2142,25 +2142,25 @@ function Kr(e, t, n, r) {
2142
2142
  }
2143
2143
  //#endregion
2144
2144
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
2145
- var qr = class extends Error {
2145
+ var Jr = class extends Error {
2146
2146
  constructor() {
2147
2147
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
2148
2148
  }
2149
- }, Jr = "~memo", Yr = [];
2150
- function Xr(e) {
2149
+ }, Yr = "~memo", Xr = [];
2150
+ function Zr(e) {
2151
2151
  return e.map((e) => e.path ? {
2152
2152
  ...e,
2153
2153
  path: e.path.slice()
2154
2154
  } : { ...e });
2155
2155
  }
2156
- var Zr = /*@__PURE__*/ new WeakMap();
2157
- function Qr(e, t) {
2158
- let n = Zr.get(e);
2156
+ var Qr = /*@__PURE__*/ new WeakMap();
2157
+ function $r(e, t) {
2158
+ let n = Qr.get(e);
2159
2159
  if (n !== void 0) return n;
2160
2160
  if (t.has(e)) return !0;
2161
2161
  t.add(e);
2162
2162
  let r = !1, i = (e) => {
2163
- !r && e?._zod && Qr(e, t) && (r = !0);
2163
+ !r && e?._zod && $r(e, t) && (r = !0);
2164
2164
  }, a = e._zod.def;
2165
2165
  switch (a.type) {
2166
2166
  case "object":
@@ -2237,28 +2237,28 @@ function Qr(e, t) {
2237
2237
  }
2238
2238
  }
2239
2239
  }
2240
- return t.delete(e), Zr.set(e, r), r;
2240
+ return t.delete(e), Qr.set(e, r), r;
2241
2241
  }
2242
- function $r(e, t) {
2242
+ function ei(e, t) {
2243
2243
  let n = e.buckets.get(t);
2244
2244
  return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
2245
2245
  }
2246
- var ei, ti = [], ni = {
2246
+ var ti, ni = [], ri = {
2247
2247
  alloc(e, t, n) {
2248
- let r = ei;
2248
+ let r = ti;
2249
2249
  if (!r) return n;
2250
- ei = void 0;
2250
+ ti = void 0;
2251
2251
  let i = {
2252
2252
  value: n,
2253
2253
  issues: null
2254
2254
  };
2255
- return r.set(t.value, i), ti.push(i), n;
2255
+ return r.set(t.value, i), ni.push(i), n;
2256
2256
  },
2257
2257
  guard(e) {
2258
2258
  var t;
2259
2259
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2260
2260
  let t = e._zod.parse, n = (e, n) => {
2261
- if (n.direction !== "backward" && ii(n, e.value)) throw new qr();
2261
+ if (n.direction !== "backward" && ai(n, e.value)) throw new Jr();
2262
2262
  return t(e, n);
2263
2263
  };
2264
2264
  e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
@@ -2269,38 +2269,38 @@ var ei, ti = [], ni = {
2269
2269
  let n, r, i;
2270
2270
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2271
2271
  let t = e._zod.parse, a = (o, s) => {
2272
- if (n === void 0 && (n = Qr(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2272
+ if (n === void 0 && (n = $r(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2273
2273
  let c = o.value;
2274
2274
  if (typeof c != "object" || !c) return t(o, s);
2275
- let l = s[Jr];
2275
+ let l = s[Yr];
2276
2276
  l || (l = {
2277
2277
  buckets: /* @__PURE__ */ new Map(),
2278
2278
  backEdges: void 0
2279
- }, s[Jr] = l);
2279
+ }, s[Yr] = l);
2280
2280
  let u;
2281
- r === s ? u = i : (u = $r(l, e), r = s, i = u);
2281
+ r === s ? u = i : (u = ei(l, e), r = s, i = u);
2282
2282
  let d = u.get(c);
2283
- if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Xr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2284
- ei = u;
2285
- let f = ti.length, p = t(o, s);
2286
- ei = void 0;
2287
- let m = ti.length > f ? ti.pop() : void 0;
2288
- return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Xr(e.issues) : Yr), e)) : (m && (m.issues = p.issues.length ? Xr(p.issues) : Yr), p);
2283
+ if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Zr(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2284
+ ti = u;
2285
+ let f = ni.length, p = t(o, s);
2286
+ ti = void 0;
2287
+ let m = ni.length > f ? ni.pop() : void 0;
2288
+ return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Zr(e.issues) : Xr), e)) : (m && (m.issues = p.issues.length ? Zr(p.issues) : Xr), p);
2289
2289
  };
2290
2290
  e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
2291
2291
  });
2292
2292
  }
2293
2293
  };
2294
- function ri() {
2295
- return ni;
2294
+ function ii() {
2295
+ return ri;
2296
2296
  }
2297
- function ii(e, t) {
2298
- let n = e[Jr]?.backEdges;
2297
+ function ai(e, t) {
2298
+ let n = e[Yr]?.backEdges;
2299
2299
  return n !== void 0 && typeof t == "object" && !!t && n.has(t);
2300
2300
  }
2301
2301
  //#endregion
2302
2302
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
2303
- var ai = () => {
2303
+ var oi = () => {
2304
2304
  let e = {
2305
2305
  string: {
2306
2306
  unit: "characters",
@@ -2364,7 +2364,7 @@ var ai = () => {
2364
2364
  return (e) => {
2365
2365
  switch (e.code) {
2366
2366
  case "invalid_type": return `Invalid input: expected ${i(e.expected)}, received ${i(ke(e.input), e.input)}`;
2367
- case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${fe(e.values[0])}` : `Invalid option: expected one of ${f(e.values, "|")}`;
2367
+ case "invalid_value": return e.values.length === 1 ? `Invalid input: expected ${pe(e.values[0])}` : `Invalid option: expected one of ${f(e.values, "|")}`;
2368
2368
  case "too_big": {
2369
2369
  let n = e.exact ? "exactly " : e.inclusive ? "<=" : "<", r = t(e.origin);
2370
2370
  return r ? `Too big: expected ${e.origin ?? "value"} to have ${n}${e.maximum.toString()} ${r.unit ?? "elements"}` : `Too big: expected ${e.origin ?? "value"} to be ${n}${e.maximum.toString()}`;
@@ -2386,12 +2386,12 @@ var ai = () => {
2386
2386
  }
2387
2387
  };
2388
2388
  };
2389
- function oi() {
2390
- return { localeError: ai() };
2389
+ function si() {
2390
+ return { localeError: oi() };
2391
2391
  }
2392
2392
  //#endregion
2393
2393
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
2394
- var si, ci = class {
2394
+ var ci, li = class {
2395
2395
  constructor() {
2396
2396
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2397
2397
  }
@@ -2423,245 +2423,245 @@ var si, ci = class {
2423
2423
  return this._map.has(e);
2424
2424
  }
2425
2425
  };
2426
- function li() {
2427
- return new ci();
2426
+ function ui() {
2427
+ return new li();
2428
2428
  }
2429
- (si = globalThis).__zod_globalRegistry ?? (si.__zod_globalRegistry = li());
2430
- var ui = globalThis.__zod_globalRegistry;
2429
+ (ci = globalThis).__zod_globalRegistry ?? (ci.__zod_globalRegistry = ui());
2430
+ var di = globalThis.__zod_globalRegistry;
2431
2431
  //#endregion
2432
2432
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
2433
2433
  // @__NO_SIDE_EFFECTS__
2434
- function di(e, t) {
2434
+ function fi(e, t) {
2435
2435
  return new e({
2436
2436
  type: "string",
2437
- ...b(t)
2437
+ ...y(t)
2438
2438
  });
2439
2439
  }
2440
2440
  // @__NO_SIDE_EFFECTS__
2441
- function fi(e, t) {
2441
+ function pi(e, t) {
2442
2442
  return new e({
2443
2443
  type: "string",
2444
2444
  format: "email",
2445
2445
  check: "string_format",
2446
2446
  abort: !1,
2447
- ...b(t)
2447
+ ...y(t)
2448
2448
  });
2449
2449
  }
2450
2450
  // @__NO_SIDE_EFFECTS__
2451
- function pi(e, t) {
2451
+ function mi(e, t) {
2452
2452
  return new e({
2453
2453
  type: "string",
2454
2454
  format: "guid",
2455
2455
  check: "string_format",
2456
2456
  abort: !1,
2457
- ...b(t)
2457
+ ...y(t)
2458
2458
  });
2459
2459
  }
2460
2460
  // @__NO_SIDE_EFFECTS__
2461
- function mi(e, t) {
2461
+ function hi(e, t) {
2462
2462
  return new e({
2463
2463
  type: "string",
2464
2464
  format: "uuid",
2465
2465
  check: "string_format",
2466
2466
  abort: !1,
2467
- ...b(t)
2467
+ ...y(t)
2468
2468
  });
2469
2469
  }
2470
2470
  // @__NO_SIDE_EFFECTS__
2471
- function hi(e, t) {
2471
+ function gi(e, t) {
2472
2472
  return new e({
2473
2473
  type: "string",
2474
2474
  format: "uuid",
2475
2475
  check: "string_format",
2476
2476
  abort: !1,
2477
2477
  version: "v4",
2478
- ...b(t)
2478
+ ...y(t)
2479
2479
  });
2480
2480
  }
2481
2481
  // @__NO_SIDE_EFFECTS__
2482
- function gi(e, t) {
2482
+ function _i(e, t) {
2483
2483
  return new e({
2484
2484
  type: "string",
2485
2485
  format: "uuid",
2486
2486
  check: "string_format",
2487
2487
  abort: !1,
2488
2488
  version: "v6",
2489
- ...b(t)
2489
+ ...y(t)
2490
2490
  });
2491
2491
  }
2492
2492
  // @__NO_SIDE_EFFECTS__
2493
- function _i(e, t) {
2493
+ function vi(e, t) {
2494
2494
  return new e({
2495
2495
  type: "string",
2496
2496
  format: "uuid",
2497
2497
  check: "string_format",
2498
2498
  abort: !1,
2499
2499
  version: "v7",
2500
- ...b(t)
2500
+ ...y(t)
2501
2501
  });
2502
2502
  }
2503
2503
  // @__NO_SIDE_EFFECTS__
2504
- function vi(e, t) {
2504
+ function yi(e, t) {
2505
2505
  return new e({
2506
2506
  type: "string",
2507
2507
  format: "url",
2508
2508
  check: "string_format",
2509
2509
  abort: !1,
2510
- ...b(t)
2510
+ ...y(t)
2511
2511
  });
2512
2512
  }
2513
2513
  // @__NO_SIDE_EFFECTS__
2514
- function yi(e, t) {
2514
+ function bi(e, t) {
2515
2515
  return new e({
2516
2516
  type: "string",
2517
2517
  format: "emoji",
2518
2518
  check: "string_format",
2519
2519
  abort: !1,
2520
- ...b(t)
2520
+ ...y(t)
2521
2521
  });
2522
2522
  }
2523
2523
  // @__NO_SIDE_EFFECTS__
2524
- function bi(e, t) {
2524
+ function xi(e, t) {
2525
2525
  return new e({
2526
2526
  type: "string",
2527
2527
  format: "nanoid",
2528
2528
  check: "string_format",
2529
2529
  abort: !1,
2530
- ...b(t)
2530
+ ...y(t)
2531
2531
  });
2532
2532
  }
2533
2533
  // @__NO_SIDE_EFFECTS__
2534
- function xi(e, t) {
2534
+ function Si(e, t) {
2535
2535
  return new e({
2536
2536
  type: "string",
2537
2537
  format: "cuid",
2538
2538
  check: "string_format",
2539
2539
  abort: !1,
2540
- ...b(t)
2540
+ ...y(t)
2541
2541
  });
2542
2542
  }
2543
2543
  // @__NO_SIDE_EFFECTS__
2544
- function Si(e, t) {
2544
+ function Ci(e, t) {
2545
2545
  return new e({
2546
2546
  type: "string",
2547
2547
  format: "cuid2",
2548
2548
  check: "string_format",
2549
2549
  abort: !1,
2550
- ...b(t)
2550
+ ...y(t)
2551
2551
  });
2552
2552
  }
2553
2553
  // @__NO_SIDE_EFFECTS__
2554
- function Ci(e, t) {
2554
+ function wi(e, t) {
2555
2555
  return new e({
2556
2556
  type: "string",
2557
2557
  format: "ulid",
2558
2558
  check: "string_format",
2559
2559
  abort: !1,
2560
- ...b(t)
2560
+ ...y(t)
2561
2561
  });
2562
2562
  }
2563
2563
  // @__NO_SIDE_EFFECTS__
2564
- function wi(e, t) {
2564
+ function Ti(e, t) {
2565
2565
  return new e({
2566
2566
  type: "string",
2567
2567
  format: "xid",
2568
2568
  check: "string_format",
2569
2569
  abort: !1,
2570
- ...b(t)
2570
+ ...y(t)
2571
2571
  });
2572
2572
  }
2573
2573
  // @__NO_SIDE_EFFECTS__
2574
- function Ti(e, t) {
2574
+ function Ei(e, t) {
2575
2575
  return new e({
2576
2576
  type: "string",
2577
2577
  format: "ksuid",
2578
2578
  check: "string_format",
2579
2579
  abort: !1,
2580
- ...b(t)
2580
+ ...y(t)
2581
2581
  });
2582
2582
  }
2583
2583
  // @__NO_SIDE_EFFECTS__
2584
- function Ei(e, t) {
2584
+ function Di(e, t) {
2585
2585
  return new e({
2586
2586
  type: "string",
2587
2587
  format: "ipv4",
2588
2588
  check: "string_format",
2589
2589
  abort: !1,
2590
- ...b(t)
2590
+ ...y(t)
2591
2591
  });
2592
2592
  }
2593
2593
  // @__NO_SIDE_EFFECTS__
2594
- function Di(e, t) {
2594
+ function Oi(e, t) {
2595
2595
  return new e({
2596
2596
  type: "string",
2597
2597
  format: "ipv6",
2598
2598
  check: "string_format",
2599
2599
  abort: !1,
2600
- ...b(t)
2600
+ ...y(t)
2601
2601
  });
2602
2602
  }
2603
2603
  // @__NO_SIDE_EFFECTS__
2604
- function Oi(e, t) {
2604
+ function ki(e, t) {
2605
2605
  return new e({
2606
2606
  type: "string",
2607
2607
  format: "cidrv4",
2608
2608
  check: "string_format",
2609
2609
  abort: !1,
2610
- ...b(t)
2610
+ ...y(t)
2611
2611
  });
2612
2612
  }
2613
2613
  // @__NO_SIDE_EFFECTS__
2614
- function ki(e, t) {
2614
+ function Ai(e, t) {
2615
2615
  return new e({
2616
2616
  type: "string",
2617
2617
  format: "cidrv6",
2618
2618
  check: "string_format",
2619
2619
  abort: !1,
2620
- ...b(t)
2620
+ ...y(t)
2621
2621
  });
2622
2622
  }
2623
2623
  // @__NO_SIDE_EFFECTS__
2624
- function Ai(e, t) {
2624
+ function ji(e, t) {
2625
2625
  return new e({
2626
2626
  type: "string",
2627
2627
  format: "base64",
2628
2628
  check: "string_format",
2629
2629
  abort: !1,
2630
- ...b(t)
2630
+ ...y(t)
2631
2631
  });
2632
2632
  }
2633
2633
  // @__NO_SIDE_EFFECTS__
2634
- function ji(e, t) {
2634
+ function Mi(e, t) {
2635
2635
  return new e({
2636
2636
  type: "string",
2637
2637
  format: "base64url",
2638
2638
  check: "string_format",
2639
2639
  abort: !1,
2640
- ...b(t)
2640
+ ...y(t)
2641
2641
  });
2642
2642
  }
2643
2643
  // @__NO_SIDE_EFFECTS__
2644
- function Mi(e, t) {
2644
+ function Ni(e, t) {
2645
2645
  return new e({
2646
2646
  type: "string",
2647
2647
  format: "e164",
2648
2648
  check: "string_format",
2649
2649
  abort: !1,
2650
- ...b(t)
2650
+ ...y(t)
2651
2651
  });
2652
2652
  }
2653
2653
  // @__NO_SIDE_EFFECTS__
2654
- function Ni(e, t) {
2654
+ function Pi(e, t) {
2655
2655
  return new e({
2656
2656
  type: "string",
2657
2657
  format: "jwt",
2658
2658
  check: "string_format",
2659
2659
  abort: !1,
2660
- ...b(t)
2660
+ ...y(t)
2661
2661
  });
2662
2662
  }
2663
2663
  // @__NO_SIDE_EFFECTS__
2664
- function Pi(e, t) {
2664
+ function Fi(e, t) {
2665
2665
  return new e({
2666
2666
  type: "string",
2667
2667
  format: "datetime",
@@ -2669,247 +2669,247 @@ function Pi(e, t) {
2669
2669
  offset: !1,
2670
2670
  local: !1,
2671
2671
  precision: null,
2672
- ...b(t)
2672
+ ...y(t)
2673
2673
  });
2674
2674
  }
2675
2675
  // @__NO_SIDE_EFFECTS__
2676
- function Fi(e, t) {
2676
+ function Ii(e, t) {
2677
2677
  return new e({
2678
2678
  type: "string",
2679
2679
  format: "date",
2680
2680
  check: "string_format",
2681
- ...b(t)
2681
+ ...y(t)
2682
2682
  });
2683
2683
  }
2684
2684
  // @__NO_SIDE_EFFECTS__
2685
- function Ii(e, t) {
2685
+ function Li(e, t) {
2686
2686
  return new e({
2687
2687
  type: "string",
2688
2688
  format: "time",
2689
2689
  check: "string_format",
2690
2690
  precision: null,
2691
- ...b(t)
2691
+ ...y(t)
2692
2692
  });
2693
2693
  }
2694
2694
  // @__NO_SIDE_EFFECTS__
2695
- function Li(e, t) {
2695
+ function Ri(e, t) {
2696
2696
  return new e({
2697
2697
  type: "string",
2698
2698
  format: "duration",
2699
2699
  check: "string_format",
2700
- ...b(t)
2700
+ ...y(t)
2701
2701
  });
2702
2702
  }
2703
2703
  // @__NO_SIDE_EFFECTS__
2704
- function Ri(e, t) {
2704
+ function zi(e, t) {
2705
2705
  return new e({
2706
2706
  type: "number",
2707
2707
  checks: [],
2708
- ...b(t)
2708
+ ...y(t)
2709
2709
  });
2710
2710
  }
2711
2711
  // @__NO_SIDE_EFFECTS__
2712
- function zi(e, t) {
2712
+ function Bi(e, t) {
2713
2713
  return new e({
2714
2714
  type: "number",
2715
2715
  check: "number_format",
2716
2716
  abort: !1,
2717
2717
  format: "safeint",
2718
- ...b(t)
2718
+ ...y(t)
2719
2719
  });
2720
2720
  }
2721
2721
  // @__NO_SIDE_EFFECTS__
2722
- function Bi(e, t) {
2722
+ function Vi(e, t) {
2723
2723
  return new e({
2724
2724
  type: "boolean",
2725
- ...b(t)
2725
+ ...y(t)
2726
2726
  });
2727
2727
  }
2728
2728
  // @__NO_SIDE_EFFECTS__
2729
- function Vi(e, t) {
2729
+ function Hi(e, t) {
2730
2730
  return new e({
2731
2731
  type: "null",
2732
- ...b(t)
2732
+ ...y(t)
2733
2733
  });
2734
2734
  }
2735
2735
  // @__NO_SIDE_EFFECTS__
2736
- function Hi(e) {
2736
+ function Ui(e) {
2737
2737
  return new e({ type: "unknown" });
2738
2738
  }
2739
2739
  // @__NO_SIDE_EFFECTS__
2740
- function Ui(e, t) {
2740
+ function Wi(e, t) {
2741
2741
  return new e({
2742
2742
  type: "never",
2743
- ...b(t)
2743
+ ...y(t)
2744
2744
  });
2745
2745
  }
2746
2746
  // @__NO_SIDE_EFFECTS__
2747
- function Wi(e, t) {
2748
- return new en({
2747
+ function Gi(e, t) {
2748
+ return new tn({
2749
2749
  check: "less_than",
2750
- ...b(t),
2750
+ ...y(t),
2751
2751
  value: e,
2752
2752
  inclusive: !1
2753
2753
  });
2754
2754
  }
2755
2755
  // @__NO_SIDE_EFFECTS__
2756
- function Gi(e, t) {
2757
- return new en({
2756
+ function Ki(e, t) {
2757
+ return new tn({
2758
2758
  check: "less_than",
2759
- ...b(t),
2759
+ ...y(t),
2760
2760
  value: e,
2761
2761
  inclusive: !0
2762
2762
  });
2763
2763
  }
2764
2764
  // @__NO_SIDE_EFFECTS__
2765
- function Ki(e, t) {
2766
- return new tn({
2765
+ function qi(e, t) {
2766
+ return new nn({
2767
2767
  check: "greater_than",
2768
- ...b(t),
2768
+ ...y(t),
2769
2769
  value: e,
2770
2770
  inclusive: !1
2771
2771
  });
2772
2772
  }
2773
2773
  // @__NO_SIDE_EFFECTS__
2774
- function qi(e, t) {
2775
- return new tn({
2774
+ function Ji(e, t) {
2775
+ return new nn({
2776
2776
  check: "greater_than",
2777
- ...b(t),
2777
+ ...y(t),
2778
2778
  value: e,
2779
2779
  inclusive: !0
2780
2780
  });
2781
2781
  }
2782
2782
  // @__NO_SIDE_EFFECTS__
2783
- function Ji(e, t) {
2784
- return new nn({
2783
+ function Yi(e, t) {
2784
+ return new rn({
2785
2785
  check: "multiple_of",
2786
- ...b(t),
2786
+ ...y(t),
2787
2787
  value: e
2788
2788
  });
2789
2789
  }
2790
2790
  // @__NO_SIDE_EFFECTS__
2791
- function Yi(e, t) {
2792
- return new an({
2791
+ function Xi(e, t) {
2792
+ return new on({
2793
2793
  check: "max_length",
2794
- ...b(t),
2794
+ ...y(t),
2795
2795
  maximum: e
2796
2796
  });
2797
2797
  }
2798
2798
  // @__NO_SIDE_EFFECTS__
2799
- function Xi(e, t) {
2800
- return new on({
2799
+ function Zi(e, t) {
2800
+ return new sn({
2801
2801
  check: "min_length",
2802
- ...b(t),
2802
+ ...y(t),
2803
2803
  minimum: e
2804
2804
  });
2805
2805
  }
2806
2806
  // @__NO_SIDE_EFFECTS__
2807
- function Zi(e, t) {
2808
- return new sn({
2807
+ function Qi(e, t) {
2808
+ return new cn({
2809
2809
  check: "length_equals",
2810
- ...b(t),
2810
+ ...y(t),
2811
2811
  length: e
2812
2812
  });
2813
2813
  }
2814
2814
  // @__NO_SIDE_EFFECTS__
2815
- function Qi(e, t) {
2816
- return new ln({
2815
+ function $i(e, t) {
2816
+ return new un({
2817
2817
  check: "string_format",
2818
2818
  format: "regex",
2819
- ...b(t),
2819
+ ...y(t),
2820
2820
  pattern: e
2821
2821
  });
2822
2822
  }
2823
2823
  // @__NO_SIDE_EFFECTS__
2824
- function $i(e) {
2825
- return new un({
2824
+ function ea(e) {
2825
+ return new dn({
2826
2826
  check: "string_format",
2827
2827
  format: "lowercase",
2828
- ...b(e)
2828
+ ...y(e)
2829
2829
  });
2830
2830
  }
2831
2831
  // @__NO_SIDE_EFFECTS__
2832
- function ea(e) {
2833
- return new dn({
2832
+ function ta(e) {
2833
+ return new fn({
2834
2834
  check: "string_format",
2835
2835
  format: "uppercase",
2836
- ...b(e)
2836
+ ...y(e)
2837
2837
  });
2838
2838
  }
2839
2839
  // @__NO_SIDE_EFFECTS__
2840
- function ta(e, t) {
2841
- return new fn({
2840
+ function na(e, t) {
2841
+ return new pn({
2842
2842
  check: "string_format",
2843
2843
  format: "includes",
2844
- ...b(t),
2844
+ ...y(t),
2845
2845
  includes: e
2846
2846
  });
2847
2847
  }
2848
2848
  // @__NO_SIDE_EFFECTS__
2849
- function na(e, t) {
2850
- return new pn({
2849
+ function ra(e, t) {
2850
+ return new mn({
2851
2851
  check: "string_format",
2852
2852
  format: "starts_with",
2853
- ...b(t),
2853
+ ...y(t),
2854
2854
  prefix: e
2855
2855
  });
2856
2856
  }
2857
2857
  // @__NO_SIDE_EFFECTS__
2858
- function ra(e, t) {
2859
- return new mn({
2858
+ function ia(e, t) {
2859
+ return new hn({
2860
2860
  check: "string_format",
2861
2861
  format: "ends_with",
2862
- ...b(t),
2862
+ ...y(t),
2863
2863
  suffix: e
2864
2864
  });
2865
2865
  }
2866
2866
  // @__NO_SIDE_EFFECTS__
2867
- function ia(e) {
2868
- return new hn({
2867
+ function aa(e) {
2868
+ return new gn({
2869
2869
  check: "overwrite",
2870
2870
  tx: e
2871
2871
  });
2872
2872
  }
2873
2873
  // @__NO_SIDE_EFFECTS__
2874
- function aa(e) {
2875
- return /* @__PURE__ */ ia((t) => t.normalize(e));
2876
- }
2877
- // @__NO_SIDE_EFFECTS__
2878
- function oa() {
2879
- return /* @__PURE__ */ ia((e) => e.trim());
2874
+ function oa(e) {
2875
+ return /* @__PURE__ */ aa((t) => t.normalize(e));
2880
2876
  }
2881
2877
  // @__NO_SIDE_EFFECTS__
2882
2878
  function sa() {
2883
- return /* @__PURE__ */ ia((e) => e.toLowerCase());
2879
+ return /* @__PURE__ */ aa((e) => e.trim());
2884
2880
  }
2885
2881
  // @__NO_SIDE_EFFECTS__
2886
2882
  function ca() {
2887
- return /* @__PURE__ */ ia((e) => e.toUpperCase());
2883
+ return /* @__PURE__ */ aa((e) => e.toLowerCase());
2888
2884
  }
2889
2885
  // @__NO_SIDE_EFFECTS__
2890
2886
  function la() {
2891
- return /* @__PURE__ */ ia((e) => oe(e));
2887
+ return /* @__PURE__ */ aa((e) => e.toUpperCase());
2888
+ }
2889
+ // @__NO_SIDE_EFFECTS__
2890
+ function ua() {
2891
+ return /* @__PURE__ */ aa((e) => oe(e));
2892
2892
  }
2893
2893
  // @__NO_SIDE_EFFECTS__
2894
- function ua(e, t, n) {
2894
+ function da(e, t, n) {
2895
2895
  return new e({
2896
2896
  type: "array",
2897
2897
  element: t,
2898
- ...b(n)
2898
+ ...y(n)
2899
2899
  });
2900
2900
  }
2901
2901
  // @__NO_SIDE_EFFECTS__
2902
- function da(e, t, n) {
2902
+ function fa(e, t, n) {
2903
2903
  return new e({
2904
2904
  type: "custom",
2905
2905
  check: "custom",
2906
2906
  fn: t,
2907
- ...b(n)
2907
+ ...y(n)
2908
2908
  });
2909
2909
  }
2910
2910
  // @__NO_SIDE_EFFECTS__
2911
- function fa(e, t) {
2912
- let n = /* @__PURE__ */ pa((t) => (t.addIssue = (e) => {
2911
+ function pa(e, t) {
2912
+ let n = /* @__PURE__ */ ma((t) => (t.addIssue = (e) => {
2913
2913
  if (typeof e == "string") t.issues.push(Ae(e, t.value, n._zod.def));
2914
2914
  else {
2915
2915
  let r = e;
@@ -2919,24 +2919,24 @@ function fa(e, t) {
2919
2919
  return n;
2920
2920
  }
2921
2921
  // @__NO_SIDE_EFFECTS__
2922
- function pa(e, t) {
2923
- let n = new A({
2922
+ function ma(e, t) {
2923
+ let n = new k({
2924
2924
  check: "custom",
2925
- ...b(t)
2925
+ ...y(t)
2926
2926
  });
2927
2927
  return n._zod.check = e, n;
2928
2928
  }
2929
2929
  //#endregion
2930
2930
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
2931
- function ma(e, ...t) {
2931
+ function ha(e, ...t) {
2932
2932
  for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && h(e, t, n[t]);
2933
2933
  return e;
2934
2934
  }
2935
- function ha(e) {
2935
+ function ga(e) {
2936
2936
  let t = e?.target ?? "draft-2020-12";
2937
2937
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2938
2938
  processors: e.processors ?? {},
2939
- metadataRegistry: e?.metadata ?? ui,
2939
+ metadataRegistry: e?.metadata ?? di,
2940
2940
  target: t,
2941
2941
  unrepresentable: e?.unrepresentable ?? "throw",
2942
2942
  override: e?.override ?? (() => {}),
@@ -2952,7 +2952,7 @@ function ha(e) {
2952
2952
  external: e?.external ?? void 0
2953
2953
  };
2954
2954
  }
2955
- function N(e, t, n, r, i) {
2955
+ function M(e, t, n, r, i) {
2956
2956
  let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
2957
2957
  zodSchema: e,
2958
2958
  path: r.path,
@@ -2962,7 +2962,7 @@ function N(e, t, n, r, i) {
2962
2962
  if (a === void 0 || a === "throw") throw Error(i);
2963
2963
  return Object.assign(n, a), !0;
2964
2964
  }
2965
- function P(e, t, n = {
2965
+ function N(e, t, n = {
2966
2966
  path: [],
2967
2967
  schemaPath: []
2968
2968
  }) {
@@ -2991,15 +2991,15 @@ function P(e, t, n = {
2991
2991
  a(e, t, n, r);
2992
2992
  }
2993
2993
  let a = e._zod.parent;
2994
- a && (o.ref ||= a, P(a, t, r), t.seen.get(a).isParent = !0);
2994
+ a && (o.ref ||= a, N(a, t, r), t.seen.get(a).isParent = !0);
2995
2995
  }
2996
2996
  let c = t.metadataRegistry.get(e);
2997
- return c && ma(o.schema, c), t.io === "input" && F(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;
2997
+ return c && ha(o.schema, c), t.io === "input" && P(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;
2998
2998
  }
2999
- function ga(e) {
2999
+ function _a(e) {
3000
3000
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
3001
3001
  }
3002
- function _a(e, t) {
3002
+ function va(e, t) {
3003
3003
  let n = e.seen.get(t);
3004
3004
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
3005
3005
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -3020,7 +3020,7 @@ function _a(e, t) {
3020
3020
  let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
3021
3021
  return t[1].defId = a, {
3022
3022
  defId: a,
3023
- ref: `${i("__shared")}#/${r}/${ga(a)}`
3023
+ ref: `${i("__shared")}#/${r}/${_a(a)}`
3024
3024
  };
3025
3025
  }
3026
3026
  let i = `#/${r}/`;
@@ -3028,7 +3028,7 @@ function _a(e, t) {
3028
3028
  let a = t[1].schema.id ?? `__schema${e.counter++}`;
3029
3029
  return {
3030
3030
  defId: a,
3031
- ref: i + ga(a)
3031
+ ref: i + _a(a)
3032
3032
  };
3033
3033
  }, a = (e) => {
3034
3034
  if (e[1].schema.$ref) return;
@@ -3072,13 +3072,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3072
3072
  }
3073
3073
  e.external && (e.sharedDefsExtractedFor = e.external);
3074
3074
  }
3075
- function va(e) {
3075
+ function ya(e) {
3076
3076
  let t = e.anyOf;
3077
3077
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
3078
3078
  let n = [];
3079
3079
  for (let e of t) {
3080
3080
  if (!e || typeof e != "object") return;
3081
- va(e);
3081
+ ya(e);
3082
3082
  let t = Object.keys(e);
3083
3083
  if (t.length !== 1 || t[0] !== "type") return;
3084
3084
  let r = e.type;
@@ -3089,21 +3089,21 @@ function va(e) {
3089
3089
  }
3090
3090
  delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
3091
3091
  }
3092
- var ya = /* @__PURE__ */ new Set([
3092
+ var ba = /* @__PURE__ */ new Set([
3093
3093
  "type",
3094
3094
  "properties",
3095
3095
  "required",
3096
3096
  "additionalProperties"
3097
- ]), ba = ["oneOf", "anyOf"];
3098
- function xa(e) {
3097
+ ]), xa = ["oneOf", "anyOf"];
3098
+ function Sa(e) {
3099
3099
  let t = e.additionalProperties;
3100
3100
  return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
3101
3101
  }
3102
- function Sa(e) {
3102
+ function Ca(e) {
3103
3103
  let t = [];
3104
3104
  for (let n of e) {
3105
3105
  if (typeof n != "object" || n.type !== "object") return null;
3106
- for (let e in n) if (!ya.has(e)) return null;
3106
+ for (let e in n) if (!ba.has(e)) return null;
3107
3107
  t.push(n);
3108
3108
  }
3109
3109
  let n = {}, r = /* @__PURE__ */ new Set();
@@ -3112,10 +3112,10 @@ function Sa(e) {
3112
3112
  if (Object.prototype.hasOwnProperty.call(n, r)) continue;
3113
3113
  let e = [];
3114
3114
  for (let n of t) {
3115
- let t = n.properties?.[r] ?? xa(n);
3115
+ let t = n.properties?.[r] ?? Sa(n);
3116
3116
  t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
3117
3117
  }
3118
- h(n, r, e.length === 1 ? e[0] : Sa(e) ?? { allOf: e });
3118
+ h(n, r, e.length === 1 ? e[0] : Ca(e) ?? { allOf: e });
3119
3119
  }
3120
3120
  for (let t of e.required ?? []) r.add(t);
3121
3121
  }
@@ -3127,29 +3127,29 @@ function Sa(e) {
3127
3127
  else {
3128
3128
  let e = [];
3129
3129
  for (let n of t) {
3130
- let t = xa(n);
3130
+ let t = Sa(n);
3131
3131
  t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
3132
3132
  }
3133
3133
  e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
3134
3134
  }
3135
3135
  return i;
3136
3136
  }
3137
- function Ca(e) {
3137
+ function wa(e) {
3138
3138
  let t = e.allOf;
3139
3139
  if (!Array.isArray(t) || t.length < 2) return;
3140
- for (let t of ya) if (t in e) return;
3141
- let n = t.filter((e) => ba.some((t) => Array.isArray(e[t]))), r = null;
3142
- if (!n.length) r = Sa(t);
3140
+ for (let t of ba) if (t in e) return;
3141
+ let n = t.filter((e) => xa.some((t) => Array.isArray(e[t]))), r = null;
3142
+ if (!n.length) r = Ca(t);
3143
3143
  else {
3144
- let e = n[0], i = ba.find((t) => Array.isArray(e[t]));
3144
+ let e = n[0], i = xa.find((t) => Array.isArray(e[t]));
3145
3145
  if (Object.keys(e).length !== 1) return;
3146
- let a = t.filter((t) => t !== e), o = e[i].map((e) => Sa([...a, e]));
3146
+ let a = t.filter((t) => t !== e), o = e[i].map((e) => Ca([...a, e]));
3147
3147
  if (o.some((e) => !e)) return;
3148
3148
  r = { [i]: o };
3149
3149
  }
3150
- r && (delete e.allOf, ma(e, r));
3150
+ r && (delete e.allOf, ha(e, r));
3151
3151
  }
3152
- function wa(e, t) {
3152
+ function Ta(e, t) {
3153
3153
  let n = e.seen.get(t);
3154
3154
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
3155
3155
  let r = (t) => {
@@ -3159,7 +3159,7 @@ function wa(e, t) {
3159
3159
  if (n.ref = null, o) {
3160
3160
  r(o);
3161
3161
  let n = e.seen.get(o), s = n.schema;
3162
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : ma(i, s), ma(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3162
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : ha(i, s), ha(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3163
3163
  if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
3164
3164
  }
3165
3165
  let s = t._zod.parent;
@@ -3176,7 +3176,7 @@ function wa(e, t) {
3176
3176
  };
3177
3177
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
3178
3178
  for (let t of [...e.seen.entries()].reverse()) r(t[0]);
3179
- if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) va(t[1].def ?? t[1].schema);
3179
+ if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ya(t[1].def ?? t[1].schema);
3180
3180
  for (let t of e.deferred) t();
3181
3181
  if (e.intersections.length) {
3182
3182
  let t = /* @__PURE__ */ new Map();
@@ -3186,7 +3186,7 @@ function wa(e, t) {
3186
3186
  let r = t.get(n);
3187
3187
  r ? r.push(e) : t.set(n, [e]);
3188
3188
  }
3189
- for (let n of e.intersections) for (let e of t.get(n) ?? []) Ca(e);
3189
+ for (let n of e.intersections) for (let e of t.get(n) ?? []) wa(e);
3190
3190
  }
3191
3191
  }
3192
3192
  let i = {};
@@ -3195,7 +3195,7 @@ function wa(e, t) {
3195
3195
  if (!n) throw Error("Schema is missing an `id` property");
3196
3196
  i.$id = e.external.uri(n);
3197
3197
  }
3198
- ma(i, n.defId ? n.schema : n.def ?? n.schema);
3198
+ ha(i, n.defId ? n.schema : n.def ?? n.schema);
3199
3199
  let a = e.metadataRegistry.get(t)?.id;
3200
3200
  a !== void 0 && i.id === a && delete i.id;
3201
3201
  let o = e.external?.defs ?? {};
@@ -3210,8 +3210,8 @@ function wa(e, t) {
3210
3210
  value: {
3211
3211
  ...t["~standard"],
3212
3212
  jsonSchema: {
3213
- input: Ea(t, "input", e.processors),
3214
- output: Ea(t, "output", e.processors)
3213
+ input: Da(t, "input", e.processors),
3214
+ output: Da(t, "output", e.processors)
3215
3215
  }
3216
3216
  },
3217
3217
  enumerable: !1,
@@ -3221,83 +3221,83 @@ function wa(e, t) {
3221
3221
  throw Error("Error converting schema to JSON.");
3222
3222
  }
3223
3223
  }
3224
- function F(e, t) {
3224
+ function P(e, t) {
3225
3225
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
3226
3226
  if (n.seen.has(e)) return !1;
3227
3227
  n.seen.add(e);
3228
3228
  let r = e._zod.def;
3229
3229
  if (r.type === "transform") return !0;
3230
- if (r.type === "array") return F(r.element, n);
3231
- if (r.type === "set") return F(r.valueType, n);
3232
- if (r.type === "lazy") return F(r.getter(), n);
3233
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return F(r.innerType, n);
3234
- if (r.type === "intersection") return F(r.left, n) || F(r.right, n);
3235
- if (r.type === "record" || r.type === "map") return F(r.keyType, n) || F(r.valueType, n);
3236
- if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : F(r.in, n) || F(r.out, n);
3230
+ if (r.type === "array") return P(r.element, n);
3231
+ if (r.type === "set") return P(r.valueType, n);
3232
+ if (r.type === "lazy") return P(r.getter(), n);
3233
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return P(r.innerType, n);
3234
+ if (r.type === "intersection") return P(r.left, n) || P(r.right, n);
3235
+ if (r.type === "record" || r.type === "map") return P(r.keyType, n) || P(r.valueType, n);
3236
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : P(r.in, n) || P(r.out, n);
3237
3237
  if (r.type === "object") {
3238
- for (let e in r.shape) if (F(r.shape[e], n)) return !0;
3238
+ for (let e in r.shape) if (P(r.shape[e], n)) return !0;
3239
3239
  return !1;
3240
3240
  }
3241
3241
  if (r.type === "union") {
3242
- for (let e of r.options) if (F(e, n)) return !0;
3242
+ for (let e of r.options) if (P(e, n)) return !0;
3243
3243
  return !1;
3244
3244
  }
3245
3245
  if (r.type === "tuple") {
3246
- for (let e of r.items) if (F(e, n)) return !0;
3247
- return !!(r.rest && F(r.rest, n));
3246
+ for (let e of r.items) if (P(e, n)) return !0;
3247
+ return !!(r.rest && P(r.rest, n));
3248
3248
  }
3249
3249
  return !1;
3250
3250
  }
3251
- var Ta = (e, t = {}) => (n) => {
3252
- let r = ha({
3251
+ var Ea = (e, t = {}) => (n) => {
3252
+ let r = ga({
3253
3253
  ...n,
3254
3254
  processors: t
3255
3255
  });
3256
- return P(e, r), _a(r, e), wa(r, e);
3257
- }, Ea = (e, t, n = {}) => (r) => {
3258
- let { libraryOptions: i, target: a } = r ?? {}, o = ha({
3256
+ return N(e, r), va(r, e), Ta(r, e);
3257
+ }, Da = (e, t, n = {}) => (r) => {
3258
+ let { libraryOptions: i, target: a } = r ?? {}, o = ga({
3259
3259
  ...i ?? {},
3260
3260
  target: a,
3261
3261
  io: t,
3262
3262
  processors: n
3263
3263
  });
3264
- return P(e, o), _a(o, e), wa(o, e);
3265
- }, Da = {
3264
+ return N(e, o), va(o, e), Ta(o, e);
3265
+ }, Oa = {
3266
3266
  guid: "uuid",
3267
3267
  url: "uri",
3268
3268
  datetime: "date-time",
3269
3269
  json_string: "json-string",
3270
3270
  regex: ""
3271
- }, Oa = (e, t, n, r) => {
3271
+ }, ka = (e, t, n, r) => {
3272
3272
  let i = n;
3273
3273
  i.type = "string";
3274
3274
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
3275
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Da[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3275
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Oa[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3276
3276
  let e = [...c];
3277
3277
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
3278
3278
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
3279
3279
  pattern: e.source
3280
3280
  }))]);
3281
3281
  }
3282
- }, ka = (e, t, n, r) => {
3282
+ }, Aa = (e, t, n, r) => {
3283
3283
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
3284
3284
  i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
3285
3285
  let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
3286
- d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : N(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3287
- }, Aa = (e, t, n, r) => {
3288
- n.type = "boolean";
3286
+ d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : M(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3289
3287
  }, ja = (e, t, n, r) => {
3290
- t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3288
+ n.type = "boolean";
3291
3289
  }, Ma = (e, t, n, r) => {
3292
- n.not = {};
3290
+ t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3293
3291
  }, Na = (e, t, n, r) => {
3292
+ n.not = {};
3293
+ }, Pa = (e, t, n, r) => {
3294
3294
  let i = e._zod.def, a = d(i.entries);
3295
3295
  if (a.length === 0) {
3296
3296
  n.not = {};
3297
3297
  return;
3298
3298
  }
3299
3299
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
3300
- }, Pa = (e, t, n, r) => {
3300
+ }, Fa = (e, t, n, r) => {
3301
3301
  let i = e._zod.def;
3302
3302
  if (i.values.length === 0) {
3303
3303
  n.not = {};
@@ -3305,9 +3305,9 @@ var Ta = (e, t = {}) => (n) => {
3305
3305
  }
3306
3306
  let a = [];
3307
3307
  for (let o of i.values) if (o === void 0) {
3308
- if (N(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
3308
+ if (M(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
3309
3309
  } else if (typeof o == "bigint") {
3310
- if (N(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
3310
+ if (M(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
3311
3311
  a.push(Number(o));
3312
3312
  } else a.push(o);
3313
3313
  if (a.length !== 0) {
@@ -3316,26 +3316,26 @@ var Ta = (e, t = {}) => (n) => {
3316
3316
  n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
3317
3317
  } else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
3318
3318
  }
3319
- }, Fa = (e, t, n, r) => {
3320
- N(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3321
3319
  }, Ia = (e, t, n, r) => {
3322
- N(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3320
+ M(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3323
3321
  }, La = (e, t, n, r) => {
3322
+ M(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3323
+ }, Ra = (e, t, n, r) => {
3324
3324
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
3325
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = P(a.element, t, {
3325
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = N(a.element, t, {
3326
3326
  ...r,
3327
3327
  path: [...r.path, "items"]
3328
3328
  });
3329
3329
  };
3330
- function Ra(e) {
3330
+ function za(e) {
3331
3331
  let t = e._zod.def;
3332
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Ra(t.out) : t.type === "catch" ? Ra(t.innerType) : e._zod.optin;
3332
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? za(t.out) : t.type === "catch" ? za(t.innerType) : e._zod.optin;
3333
3333
  }
3334
- var za = (e, t, n, r) => {
3334
+ var Ba = (e, t, n, r) => {
3335
3335
  let i = n, a = e._zod.def, o = a.shape;
3336
- if (Object.getOwnPropertySymbols(o).length && N(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3336
+ if (Object.getOwnPropertySymbols(o).length && M(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3337
3337
  i.type = "object", i.properties = {};
3338
- for (let e in o) h(i.properties, e, P(o[e], t, {
3338
+ for (let e in o) h(i.properties, e, N(o[e], t, {
3339
3339
  ...r,
3340
3340
  path: [
3341
3341
  ...r.path,
@@ -3345,14 +3345,14 @@ var za = (e, t, n, r) => {
3345
3345
  }));
3346
3346
  let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
3347
3347
  let n = a.shape[e];
3348
- return t.io === "input" ? Ra(n) === void 0 : n._zod.optout === void 0;
3348
+ return t.io === "input" ? za(n) === void 0 : n._zod.optout === void 0;
3349
3349
  }));
3350
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = P(a.catchall, t, {
3350
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = N(a.catchall, t, {
3351
3351
  ...r,
3352
3352
  path: [...r.path, "additionalProperties"]
3353
3353
  })) : t.io === "output" && (i.additionalProperties = !1);
3354
- }, Ba = (e, t, n, r) => {
3355
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => P(e, t, {
3354
+ }, Va = (e, t, n, r) => {
3355
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => N(e, t, {
3356
3356
  ...r,
3357
3357
  path: [
3358
3358
  ...r.path,
@@ -3361,15 +3361,15 @@ var za = (e, t, n, r) => {
3361
3361
  ]
3362
3362
  }));
3363
3363
  a ? n.oneOf = o : n.anyOf = o;
3364
- }, Va = (e, t, n, r) => {
3365
- let i = e._zod.def, a = P(i.left, t, {
3364
+ }, Ha = (e, t, n, r) => {
3365
+ let i = e._zod.def, a = N(i.left, t, {
3366
3366
  ...r,
3367
3367
  path: [
3368
3368
  ...r.path,
3369
3369
  "allOf",
3370
3370
  0
3371
3371
  ]
3372
- }), o = P(i.right, t, {
3372
+ }), o = N(i.right, t, {
3373
3373
  ...r,
3374
3374
  path: [
3375
3375
  ...r.path,
@@ -3378,17 +3378,17 @@ var za = (e, t, n, r) => {
3378
3378
  ]
3379
3379
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
3380
3380
  n.allOf = c, t.intersections.push(c);
3381
- }, Ha = (e, t, n, r) => {
3381
+ }, Ua = (e, t, n, r) => {
3382
3382
  let i = n, a = e._zod.def;
3383
3383
  i.type = "array";
3384
- let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => P(e, t, {
3384
+ let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => N(e, t, {
3385
3385
  ...r,
3386
3386
  path: [
3387
3387
  ...r.path,
3388
3388
  o,
3389
3389
  n
3390
3390
  ]
3391
- })), l = a.rest ? P(a.rest, t, {
3391
+ })), l = a.rest ? N(a.rest, t, {
3392
3392
  ...r,
3393
3393
  path: [
3394
3394
  ...r.path,
@@ -3398,7 +3398,7 @@ var za = (e, t, n, r) => {
3398
3398
  }) : null, u = a.items.length;
3399
3399
  for (; u > 0;) {
3400
3400
  let e = a.items[u - 1];
3401
- if (!(t.io === "input" ? Ra(e) !== void 0 : e._zod.optout === "optional")) break;
3401
+ if (!(t.io === "input" ? za(e) !== void 0 : e._zod.optout === "optional")) break;
3402
3402
  u--;
3403
3403
  }
3404
3404
  let d = a.items.length, f = !a.rest;
@@ -3406,19 +3406,19 @@ var za = (e, t, n, r) => {
3406
3406
  let { minimum: p, maximum: m } = e._zod.bag;
3407
3407
  typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
3408
3408
  };
3409
- function Ua(e, t, n) {
3409
+ function Wa(e, t, n) {
3410
3410
  if (t.$ref) {
3411
3411
  if (n.has(t)) return t;
3412
3412
  n.add(t);
3413
3413
  let r = e.get(t)?.def;
3414
3414
  if (!r) return t;
3415
- let i = Ua(e, r, n);
3415
+ let i = Wa(e, r, n);
3416
3416
  return i === r ? t : i;
3417
3417
  }
3418
3418
  for (let r of ["anyOf", "oneOf"]) {
3419
3419
  let i = t[r];
3420
3420
  if (!Array.isArray(i)) continue;
3421
- let a = i.map((t) => Ua(e, t, n));
3421
+ let a = i.map((t) => Wa(e, t, n));
3422
3422
  a.some((e, t) => e !== i[t]) && (t = {
3423
3423
  ...t,
3424
3424
  [r]: a
@@ -3427,17 +3427,17 @@ function Ua(e, t, n) {
3427
3427
  let r = Array.isArray(t.type) ? t.type : [t.type], i = !r.includes("string") && r.some((e) => e === "number" || e === "integer"), a = t.enum ?? (t.const === void 0 ? void 0 : [t.const]);
3428
3428
  if (!i && !a?.some((e) => typeof e == "number")) return t;
3429
3429
  let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
3430
- return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? qt : Kt).source), p) : p;
3430
+ return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Jt : qt).source), p) : p;
3431
3431
  }
3432
- var Wa = /* @__PURE__ */ new WeakMap();
3433
- function Ga(e) {
3432
+ var Ga = /* @__PURE__ */ new WeakMap();
3433
+ function Ka(e) {
3434
3434
  let t = /* @__PURE__ */ new Map();
3435
3435
  for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
3436
3436
  let n = /* @__PURE__ */ new Map();
3437
- for (let r of Wa.get(e) ?? []) {
3437
+ for (let r of Ga.get(e) ?? []) {
3438
3438
  let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
3439
3439
  if (!a || a === !0 || n.has(a)) continue;
3440
- let o = Ua(t, a, /* @__PURE__ */ new Set());
3440
+ let o = Wa(t, a, /* @__PURE__ */ new Set());
3441
3441
  o !== a && n.set(a, o);
3442
3442
  }
3443
3443
  if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
@@ -3445,12 +3445,12 @@ function Ga(e) {
3445
3445
  t && (e.propertyNames = t);
3446
3446
  }
3447
3447
  }
3448
- var Ka = (e, t, n, r) => {
3448
+ var qa = (e, t, n, r) => {
3449
3449
  let i = n, a = e._zod.def;
3450
3450
  i.type = "object";
3451
3451
  let o = a.keyType, s = o._zod.bag?.patterns;
3452
3452
  if (a.mode === "loose" && s && s.size > 0) {
3453
- let e = P(a.valueType, t, {
3453
+ let e = N(a.valueType, t, {
3454
3454
  ...r,
3455
3455
  path: [
3456
3456
  ...r.path,
@@ -3462,85 +3462,85 @@ var Ka = (e, t, n, r) => {
3462
3462
  for (let t of s) h(i.patternProperties, t.source, e);
3463
3463
  } else {
3464
3464
  if (t.target === "draft-07" || t.target === "draft-2020-12") {
3465
- i.propertyNames = P(a.keyType, t, {
3465
+ i.propertyNames = N(a.keyType, t, {
3466
3466
  ...r,
3467
3467
  path: [...r.path, "propertyNames"]
3468
3468
  });
3469
- let n = Wa.get(t);
3470
- n || (n = [], Wa.set(t, n), t.deferred.push(() => Ga(t))), n.push(e);
3469
+ let n = Ga.get(t);
3470
+ n || (n = [], Ga.set(t, n), t.deferred.push(() => Ka(t))), n.push(e);
3471
3471
  }
3472
- i.additionalProperties = P(a.valueType, t, {
3472
+ i.additionalProperties = N(a.valueType, t, {
3473
3473
  ...r,
3474
3474
  path: [...r.path, "additionalProperties"]
3475
3475
  });
3476
3476
  }
3477
- let c = o._zod.values, l = t.io === "input" && Ra(a.valueType) !== void 0;
3477
+ let c = o._zod.values, l = t.io === "input" && za(a.valueType) !== void 0;
3478
3478
  if (c && !a.partial && !l) {
3479
3479
  let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
3480
3480
  e.length > 0 && (i.required = e.map(String));
3481
3481
  }
3482
- }, qa = (e, t, n, r) => {
3483
- let i = e._zod.def, a = P(i.innerType, t, r), o = t.seen.get(e);
3484
- t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3485
3482
  }, Ja = (e, t, n, r) => {
3483
+ let i = e._zod.def, a = N(i.innerType, t, r), o = t.seen.get(e);
3484
+ t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3485
+ }, Ya = (e, t, n, r) => {
3486
3486
  let i = e._zod.def;
3487
- P(i.innerType, t, r);
3487
+ N(i.innerType, t, r);
3488
3488
  let a = t.seen.get(e);
3489
3489
  a.ref = i.innerType;
3490
- }, Ya = Symbol();
3491
- function Xa(e, t, n, r, i) {
3490
+ }, Xa = Symbol();
3491
+ function Za(e, t, n, r, i) {
3492
3492
  let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
3493
- return a ? (N(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), Ya) : JSON.parse(o);
3493
+ return a ? (M(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), Xa) : JSON.parse(o);
3494
3494
  }
3495
- var Za = (e, t, n, r) => {
3495
+ var Qa = (e, t, n, r) => {
3496
3496
  let i = e._zod.def;
3497
- P(i.innerType, t, r);
3497
+ N(i.innerType, t, r);
3498
3498
  let a = t.seen.get(e);
3499
3499
  a.ref = i.innerType;
3500
- let o = Xa(i.defaultValue, e, t, n, r);
3501
- o !== Ya && (n.default = o);
3502
- }, Qa = (e, t, n, r) => {
3500
+ let o = Za(i.defaultValue, e, t, n, r);
3501
+ o !== Xa && (n.default = o);
3502
+ }, $a = (e, t, n, r) => {
3503
3503
  let i = e._zod.def;
3504
- P(i.innerType, t, r);
3504
+ N(i.innerType, t, r);
3505
3505
  let a = t.seen.get(e);
3506
3506
  if (a.ref = i.innerType, t.io !== "input") return;
3507
- let o = Xa(i.defaultValue, e, t, n, r);
3508
- o !== Ya && (n._prefault = o);
3509
- }, $a = (e, t, n, r) => {
3507
+ let o = Za(i.defaultValue, e, t, n, r);
3508
+ o !== Xa && (n._prefault = o);
3509
+ }, eo = (e, t, n, r) => {
3510
3510
  let i = e._zod.def;
3511
- P(i.innerType, t, r);
3511
+ N(i.innerType, t, r);
3512
3512
  let a = t.seen.get(e);
3513
3513
  a.ref = i.innerType;
3514
3514
  let o;
3515
3515
  try {
3516
3516
  o = i.catchValue(void 0);
3517
3517
  } catch {
3518
- N(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3518
+ M(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3519
3519
  return;
3520
3520
  }
3521
3521
  n.default = o;
3522
- }, eo = (e, t, n, r) => {
3522
+ }, to = (e, t, n, r) => {
3523
3523
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
3524
- P(o, t, r);
3524
+ N(o, t, r);
3525
3525
  let s = t.seen.get(e);
3526
3526
  s.ref = o;
3527
- }, to = (e, t, n, r) => {
3527
+ }, no = (e, t, n, r) => {
3528
3528
  let i = e._zod.def;
3529
- P(i.innerType, t, r);
3529
+ N(i.innerType, t, r);
3530
3530
  let a = t.seen.get(e);
3531
3531
  a.ref = i.innerType, n.readOnly = !0;
3532
- }, no = (e, t, n, r) => {
3532
+ }, ro = (e, t, n, r) => {
3533
3533
  let i = e._zod.def;
3534
- P(i.innerType, t, r);
3534
+ N(i.innerType, t, r);
3535
3535
  let a = t.seen.get(e);
3536
3536
  a.ref = i.innerType;
3537
- }, ro = (e, t, n, r) => {
3537
+ }, io = (e, t, n, r) => {
3538
3538
  let i = e._zod.innerType;
3539
- P(i, t, r);
3539
+ N(i, t, r);
3540
3540
  let a = t.seen.get(e);
3541
3541
  a.ref = i;
3542
- }, io = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3543
- function ao(e, t, n) {
3542
+ }, ao = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3543
+ function oo(e, t, n) {
3544
3544
  Object.defineProperty(e, t, {
3545
3545
  configurable: !0,
3546
3546
  enumerable: !1,
@@ -3561,12 +3561,12 @@ function ao(e, t, n) {
3561
3561
  }
3562
3562
  });
3563
3563
  }
3564
- var I = /*@__PURE__*/ E("ZodError", (e, t) => {
3565
- Qe.init(e, t), e.name = "ZodError";
3564
+ var F = /*@__PURE__*/ E("ZodError", (e, t) => {
3565
+ $e.init(e, t), e.name = "ZodError";
3566
3566
  let n = Object.getPrototypeOf(e);
3567
- io.has(n) || (io.add(n), ao(n, "format", (e) => (t) => nt(e, t)), ao(n, "flatten", (e) => (t) => tt(e, t)), ao(n, "addIssue", (e) => (t) => {
3567
+ ao.has(n) || (ao.add(n), oo(n, "format", (e) => (t) => rt(e, t)), oo(n, "flatten", (e) => (t) => nt(e, t)), oo(n, "addIssue", (e) => (t) => {
3568
3568
  e.issues.push(t), e.message = JSON.stringify(e.issues, p, 2);
3569
- }), ao(n, "addIssues", (e) => (t) => {
3569
+ }), oo(n, "addIssues", (e) => (t) => {
3570
3570
  e.issues.push(...t), e.message = JSON.stringify(e.issues, p, 2);
3571
3571
  }), Object.defineProperty(n, "isEmpty", {
3572
3572
  configurable: !0,
@@ -3575,16 +3575,16 @@ var I = /*@__PURE__*/ E("ZodError", (e, t) => {
3575
3575
  return this.issues.length === 0;
3576
3576
  }
3577
3577
  }));
3578
- }, void 0, { Parent: Error }), oo = /* @__PURE__ */ it(I), so = /* @__PURE__ */ at(I), co = /* @__PURE__ */ ot(I), lo = /* @__PURE__ */ ct(I), uo = /* @__PURE__ */ ut(I), fo = /* @__PURE__ */ dt(I), po = /* @__PURE__ */ ft(I), mo = /* @__PURE__ */ pt(I), ho = /* @__PURE__ */ mt(I), go = /* @__PURE__ */ ht(I), _o = /* @__PURE__ */ gt(I), vo = /* @__PURE__ */ _t(I);
3578
+ }, void 0, { Parent: Error }), so = /* @__PURE__ */ at(F), co = /* @__PURE__ */ ot(F), lo = /* @__PURE__ */ st(F), uo = /* @__PURE__ */ lt(F), fo = /* @__PURE__ */ dt(F), po = /* @__PURE__ */ ft(F), mo = /* @__PURE__ */ pt(F), ho = /* @__PURE__ */ mt(F), go = /* @__PURE__ */ ht(F), _o = /* @__PURE__ */ gt(F), vo = /* @__PURE__ */ _t(F), yo = /* @__PURE__ */ vt(F);
3579
3579
  //#endregion
3580
3580
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
3581
- function yo() {
3582
- O.localeError || k(oi());
3583
- }
3584
3581
  function bo() {
3585
- O.memoizer || k({ memoizer: ri() });
3582
+ D.localeError || O(si());
3583
+ }
3584
+ function xo() {
3585
+ D.memoizer || O({ memoizer: ii() });
3586
3586
  }
3587
- var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.type = t.type, e), {
3587
+ var I = /*@__PURE__*/ E("ZodType", (e, t) => (bo(), A.init(e, t), e.def = t, e.type = t.type, e), {
3588
3588
  check(...e) {
3589
3589
  let t = this.def;
3590
3590
  return this.clone(g(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -3597,7 +3597,7 @@ var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.t
3597
3597
  return this.check(...e);
3598
3598
  },
3599
3599
  clone(e, t) {
3600
- return y(this, e, t);
3600
+ return v(this, e, t);
3601
3601
  },
3602
3602
  brand() {
3603
3603
  return this;
@@ -3612,7 +3612,7 @@ var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.t
3612
3612
  return this.check(Rs(e, t));
3613
3613
  },
3614
3614
  overwrite(e) {
3615
- return this.check(/* @__PURE__ */ ia(e));
3615
+ return this.check(/* @__PURE__ */ aa(e));
3616
3616
  },
3617
3617
  optional() {
3618
3618
  return _s(this);
@@ -3658,12 +3658,12 @@ var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.t
3658
3658
  },
3659
3659
  describe(e) {
3660
3660
  let t = this.clone();
3661
- return ui.add(t, { description: e }), t;
3661
+ return di.add(t, { description: e }), t;
3662
3662
  },
3663
3663
  meta(...e) {
3664
- if (e.length === 0) return ui.get(this);
3664
+ if (e.length === 0) return di.get(this);
3665
3665
  let t = this.clone();
3666
- return ui.add(t, e[0]), t;
3666
+ return di.add(t, e[0]), t;
3667
3667
  },
3668
3668
  isOptional() {
3669
3669
  return this.safeParse(void 0).success;
@@ -3676,10 +3676,10 @@ var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.t
3676
3676
  },
3677
3677
  get "~standard"() {
3678
3678
  return Me(this, "~standard", {
3679
- ...yn(this),
3679
+ ...bn(this),
3680
3680
  jsonSchema: {
3681
- input: Ea(this, "input"),
3682
- output: Ea(this, "output")
3681
+ input: Da(this, "input"),
3682
+ output: Da(this, "output")
3683
3683
  }
3684
3684
  });
3685
3685
  },
@@ -3687,16 +3687,16 @@ var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.t
3687
3687
  C(this, "~standard", e);
3688
3688
  },
3689
3689
  parse: function e(t, n) {
3690
- return oo(this, t, n, { callee: e });
3690
+ return so(this, t, n, { callee: e });
3691
3691
  },
3692
3692
  parseAsync: async function e(t, n) {
3693
- return await so(this, t, n, { callee: e });
3693
+ return await co(this, t, n, { callee: e });
3694
3694
  },
3695
3695
  safeParse(e, t) {
3696
- return co(this, e, t);
3696
+ return lo(this, e, t);
3697
3697
  },
3698
3698
  async safeParseAsync(e, t) {
3699
- return lo(this, e, t);
3699
+ return uo(this, e, t);
3700
3700
  },
3701
3701
  get spa() {
3702
3702
  return this?.safeParseAsync;
@@ -3705,243 +3705,243 @@ var L = /*@__PURE__*/ E("ZodType", (e, t) => (yo(), j.init(e, t), e.def = t, e.t
3705
3705
  C(this, "spa", e);
3706
3706
  },
3707
3707
  encode: function e(t, n) {
3708
- return uo(this, t, n, { callee: e });
3708
+ return fo(this, t, n, { callee: e });
3709
3709
  },
3710
3710
  decode: function e(t, n) {
3711
- return fo(this, t, n, { callee: e });
3711
+ return po(this, t, n, { callee: e });
3712
3712
  },
3713
3713
  encodeAsync: async function e(t, n) {
3714
- return await po(this, t, n, { callee: e });
3714
+ return await mo(this, t, n, { callee: e });
3715
3715
  },
3716
3716
  decodeAsync: async function e(t, n) {
3717
- return await mo(this, t, n, { callee: e });
3717
+ return await ho(this, t, n, { callee: e });
3718
3718
  },
3719
3719
  safeEncode(e, t) {
3720
- return ho(this, e, t);
3720
+ return go(this, e, t);
3721
3721
  },
3722
3722
  safeDecode(e, t) {
3723
- return go(this, e, t);
3723
+ return _o(this, e, t);
3724
3724
  },
3725
3725
  async safeEncodeAsync(e, t) {
3726
- return _o(this, e, t);
3726
+ return vo(this, e, t);
3727
3727
  },
3728
3728
  async safeDecodeAsync(e, t) {
3729
- return vo(this, e, t);
3729
+ return yo(this, e, t);
3730
3730
  },
3731
3731
  toJSONSchema(e) {
3732
- return Ta(this, {})(e);
3732
+ return Ea(this, {})(e);
3733
3733
  },
3734
3734
  get description() {
3735
- return ui.get(this)?.description;
3735
+ return di.get(this)?.description;
3736
3736
  },
3737
3737
  get _def() {
3738
3738
  return this._zod.def;
3739
3739
  }
3740
- }), xo = /*@__PURE__*/ E("_ZodString", (e, t) => {
3741
- bn.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oa(e, t, n, r);
3740
+ }), So = /*@__PURE__*/ E("_ZodString", (e, t) => {
3741
+ xn.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => ka(e, t, n, r);
3742
3742
  let n = e._zod.bag;
3743
3743
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
3744
3744
  }, {
3745
3745
  regex(...e) {
3746
- return this.check(/* @__PURE__ */ Qi(...e));
3746
+ return this.check(/* @__PURE__ */ $i(...e));
3747
3747
  },
3748
3748
  includes(...e) {
3749
- return this.check(/* @__PURE__ */ ta(...e));
3749
+ return this.check(/* @__PURE__ */ na(...e));
3750
3750
  },
3751
3751
  startsWith(...e) {
3752
- return this.check(/* @__PURE__ */ na(...e));
3752
+ return this.check(/* @__PURE__ */ ra(...e));
3753
3753
  },
3754
3754
  endsWith(...e) {
3755
- return this.check(/* @__PURE__ */ ra(...e));
3755
+ return this.check(/* @__PURE__ */ ia(...e));
3756
3756
  },
3757
3757
  min(...e) {
3758
- return this.check(/* @__PURE__ */ Xi(...e));
3758
+ return this.check(/* @__PURE__ */ Zi(...e));
3759
3759
  },
3760
3760
  max(...e) {
3761
- return this.check(/* @__PURE__ */ Yi(...e));
3761
+ return this.check(/* @__PURE__ */ Xi(...e));
3762
3762
  },
3763
3763
  length(...e) {
3764
- return this.check(/* @__PURE__ */ Zi(...e));
3764
+ return this.check(/* @__PURE__ */ Qi(...e));
3765
3765
  },
3766
3766
  nonempty(...e) {
3767
- return this.check(/* @__PURE__ */ Xi(1, ...e));
3767
+ return this.check(/* @__PURE__ */ Zi(1, ...e));
3768
3768
  },
3769
3769
  lowercase(e) {
3770
- return this.check(/* @__PURE__ */ $i(e));
3770
+ return this.check(/* @__PURE__ */ ea(e));
3771
3771
  },
3772
3772
  uppercase(e) {
3773
- return this.check(/* @__PURE__ */ ea(e));
3773
+ return this.check(/* @__PURE__ */ ta(e));
3774
3774
  },
3775
3775
  trim() {
3776
- return this.check(/* @__PURE__ */ oa());
3776
+ return this.check(/* @__PURE__ */ sa());
3777
3777
  },
3778
3778
  normalize(...e) {
3779
- return this.check(/* @__PURE__ */ aa(...e));
3779
+ return this.check(/* @__PURE__ */ oa(...e));
3780
3780
  },
3781
3781
  toLowerCase() {
3782
- return this.check(/* @__PURE__ */ sa());
3782
+ return this.check(/* @__PURE__ */ ca());
3783
3783
  },
3784
3784
  toUpperCase() {
3785
- return this.check(/* @__PURE__ */ ca());
3785
+ return this.check(/* @__PURE__ */ la());
3786
3786
  },
3787
3787
  slugify() {
3788
- return this.check(/* @__PURE__ */ la());
3788
+ return this.check(/* @__PURE__ */ ua());
3789
3789
  }
3790
- }), So = /*@__PURE__*/ E("ZodString", (e, t) => {
3791
- bn.init(e, t), xo.init(e, t);
3790
+ }), Co = /*@__PURE__*/ E("ZodString", (e, t) => {
3791
+ xn.init(e, t), So.init(e, t);
3792
3792
  }, {
3793
3793
  email(e) {
3794
- return this.check(/* @__PURE__ */ fi(Oo, e));
3794
+ return this.check(/* @__PURE__ */ pi(Oo, e));
3795
3795
  },
3796
3796
  url(e) {
3797
- return this.check(/* @__PURE__ */ vi(jo, e));
3797
+ return this.check(/* @__PURE__ */ yi(jo, e));
3798
3798
  },
3799
3799
  jwt(e) {
3800
- return this.check(/* @__PURE__ */ Ni(Ko, e));
3800
+ return this.check(/* @__PURE__ */ Pi(Ko, e));
3801
3801
  },
3802
3802
  emoji(e) {
3803
- return this.check(/* @__PURE__ */ yi(Mo, e));
3803
+ return this.check(/* @__PURE__ */ bi(Mo, e));
3804
3804
  },
3805
3805
  guid(e) {
3806
- return this.check(/* @__PURE__ */ pi(ko, e));
3806
+ return this.check(/* @__PURE__ */ mi(ko, e));
3807
3807
  },
3808
3808
  uuid(e) {
3809
- return this.check(/* @__PURE__ */ mi(Ao, e));
3809
+ return this.check(/* @__PURE__ */ hi(Ao, e));
3810
3810
  },
3811
3811
  uuidv4(e) {
3812
- return this.check(/* @__PURE__ */ hi(Ao, e));
3812
+ return this.check(/* @__PURE__ */ gi(Ao, e));
3813
3813
  },
3814
3814
  uuidv6(e) {
3815
- return this.check(/* @__PURE__ */ gi(Ao, e));
3815
+ return this.check(/* @__PURE__ */ _i(Ao, e));
3816
3816
  },
3817
3817
  uuidv7(e) {
3818
- return this.check(/* @__PURE__ */ _i(Ao, e));
3818
+ return this.check(/* @__PURE__ */ vi(Ao, e));
3819
3819
  },
3820
3820
  nanoid(e) {
3821
- return this.check(/* @__PURE__ */ bi(No, e));
3821
+ return this.check(/* @__PURE__ */ xi(No, e));
3822
3822
  },
3823
3823
  cuid(e) {
3824
- return this.check(/* @__PURE__ */ xi(Po, e));
3824
+ return this.check(/* @__PURE__ */ Si(Po, e));
3825
3825
  },
3826
3826
  cuid2(e) {
3827
- return this.check(/* @__PURE__ */ Si(Fo, e));
3827
+ return this.check(/* @__PURE__ */ Ci(Fo, e));
3828
3828
  },
3829
3829
  ulid(e) {
3830
- return this.check(/* @__PURE__ */ Ci(Io, e));
3830
+ return this.check(/* @__PURE__ */ wi(Io, e));
3831
3831
  },
3832
3832
  base64(e) {
3833
- return this.check(/* @__PURE__ */ Ai(Uo, e));
3833
+ return this.check(/* @__PURE__ */ ji(Uo, e));
3834
3834
  },
3835
3835
  base64url(e) {
3836
- return this.check(/* @__PURE__ */ ji(Wo, e));
3836
+ return this.check(/* @__PURE__ */ Mi(Wo, e));
3837
3837
  },
3838
3838
  xid(e) {
3839
- return this.check(/* @__PURE__ */ wi(Lo, e));
3839
+ return this.check(/* @__PURE__ */ Ti(Lo, e));
3840
3840
  },
3841
3841
  ksuid(e) {
3842
- return this.check(/* @__PURE__ */ Ti(Ro, e));
3842
+ return this.check(/* @__PURE__ */ Ei(Ro, e));
3843
3843
  },
3844
3844
  ipv4(e) {
3845
- return this.check(/* @__PURE__ */ Ei(zo, e));
3845
+ return this.check(/* @__PURE__ */ Di(zo, e));
3846
3846
  },
3847
3847
  ipv6(e) {
3848
- return this.check(/* @__PURE__ */ Di(Bo, e));
3848
+ return this.check(/* @__PURE__ */ Oi(Bo, e));
3849
3849
  },
3850
3850
  cidrv4(e) {
3851
- return this.check(/* @__PURE__ */ Oi(Vo, e));
3851
+ return this.check(/* @__PURE__ */ ki(Vo, e));
3852
3852
  },
3853
3853
  cidrv6(e) {
3854
- return this.check(/* @__PURE__ */ ki(Ho, e));
3854
+ return this.check(/* @__PURE__ */ Ai(Ho, e));
3855
3855
  },
3856
3856
  e164(e) {
3857
- return this.check(/* @__PURE__ */ Mi(Go, e));
3857
+ return this.check(/* @__PURE__ */ Ni(Go, e));
3858
3858
  },
3859
3859
  datetime(e) {
3860
- return this.check(/* @__PURE__ */ Pi(wo, e));
3860
+ return this.check(/* @__PURE__ */ Fi(wo, e));
3861
3861
  },
3862
3862
  date(e) {
3863
- return this.check(/* @__PURE__ */ Fi(To, e));
3863
+ return this.check(/* @__PURE__ */ Ii(To, e));
3864
3864
  },
3865
3865
  time(e) {
3866
- return this.check(/* @__PURE__ */ Ii(Eo, e));
3866
+ return this.check(/* @__PURE__ */ Li(Eo, e));
3867
3867
  },
3868
3868
  duration(e) {
3869
- return this.check(/* @__PURE__ */ Li(Do, e));
3869
+ return this.check(/* @__PURE__ */ Ri(Do, e));
3870
3870
  }
3871
3871
  });
3872
- function Co(e) {
3873
- return /* @__PURE__ */ di(So, e);
3872
+ function L(e) {
3873
+ return /* @__PURE__ */ fi(Co, e);
3874
3874
  }
3875
3875
  var R = /*@__PURE__*/ E("ZodStringFormat", (e, t) => {
3876
- M.init(e, t), xo.init(e, t);
3876
+ j.init(e, t), So.init(e, t);
3877
3877
  }), wo = /*@__PURE__*/ E("ZodISODateTime", (e, t) => {
3878
- Ln.init(e, t), R.init(e, t);
3879
- }), To = /*@__PURE__*/ E("ZodISODate", (e, t) => {
3880
3878
  Rn.init(e, t), R.init(e, t);
3881
- }), Eo = /*@__PURE__*/ E("ZodISOTime", (e, t) => {
3879
+ }), To = /*@__PURE__*/ E("ZodISODate", (e, t) => {
3882
3880
  zn.init(e, t), R.init(e, t);
3883
- }), Do = /*@__PURE__*/ E("ZodISODuration", (e, t) => {
3881
+ }), Eo = /*@__PURE__*/ E("ZodISOTime", (e, t) => {
3884
3882
  Bn.init(e, t), R.init(e, t);
3883
+ }), Do = /*@__PURE__*/ E("ZodISODuration", (e, t) => {
3884
+ Vn.init(e, t), R.init(e, t);
3885
3885
  }), Oo = /*@__PURE__*/ E("ZodEmail", (e, t) => {
3886
- Cn.init(e, t), R.init(e, t);
3886
+ wn.init(e, t), R.init(e, t);
3887
3887
  }), ko = /*@__PURE__*/ E("ZodGUID", (e, t) => {
3888
- xn.init(e, t), R.init(e, t);
3889
- }), Ao = /*@__PURE__*/ E("ZodUUID", (e, t) => {
3890
3888
  Sn.init(e, t), R.init(e, t);
3889
+ }), Ao = /*@__PURE__*/ E("ZodUUID", (e, t) => {
3890
+ Cn.init(e, t), R.init(e, t);
3891
3891
  }), jo = /*@__PURE__*/ E("ZodURL", (e, t) => {
3892
- kn.init(e, t), R.init(e, t);
3893
- }), Mo = /*@__PURE__*/ E("ZodEmoji", (e, t) => {
3894
3892
  An.init(e, t), R.init(e, t);
3895
- }), No = /*@__PURE__*/ E("ZodNanoID", (e, t) => {
3893
+ }), Mo = /*@__PURE__*/ E("ZodEmoji", (e, t) => {
3896
3894
  jn.init(e, t), R.init(e, t);
3897
- }), Po = /*@__PURE__*/ E("ZodCUID", (e, t) => {
3895
+ }), No = /*@__PURE__*/ E("ZodNanoID", (e, t) => {
3898
3896
  Mn.init(e, t), R.init(e, t);
3899
- }), Fo = /*@__PURE__*/ E("ZodCUID2", (e, t) => {
3897
+ }), Po = /*@__PURE__*/ E("ZodCUID", (e, t) => {
3900
3898
  Nn.init(e, t), R.init(e, t);
3901
- }), Io = /*@__PURE__*/ E("ZodULID", (e, t) => {
3899
+ }), Fo = /*@__PURE__*/ E("ZodCUID2", (e, t) => {
3902
3900
  Pn.init(e, t), R.init(e, t);
3903
- }), Lo = /*@__PURE__*/ E("ZodXID", (e, t) => {
3901
+ }), Io = /*@__PURE__*/ E("ZodULID", (e, t) => {
3904
3902
  Fn.init(e, t), R.init(e, t);
3905
- }), Ro = /*@__PURE__*/ E("ZodKSUID", (e, t) => {
3903
+ }), Lo = /*@__PURE__*/ E("ZodXID", (e, t) => {
3906
3904
  In.init(e, t), R.init(e, t);
3905
+ }), Ro = /*@__PURE__*/ E("ZodKSUID", (e, t) => {
3906
+ Ln.init(e, t), R.init(e, t);
3907
3907
  }), zo = /*@__PURE__*/ E("ZodIPv4", (e, t) => {
3908
- Vn.init(e, t), R.init(e, t);
3908
+ Hn.init(e, t), R.init(e, t);
3909
3909
  }), Bo = /*@__PURE__*/ E("ZodIPv6", (e, t) => {
3910
- Wn.init(e, t), R.init(e, t);
3911
- }), Vo = /*@__PURE__*/ E("ZodCIDRv4", (e, t) => {
3912
3910
  Gn.init(e, t), R.init(e, t);
3911
+ }), Vo = /*@__PURE__*/ E("ZodCIDRv4", (e, t) => {
3912
+ Kn.init(e, t), R.init(e, t);
3913
3913
  }), Ho = /*@__PURE__*/ E("ZodCIDRv6", (e, t) => {
3914
- qn.init(e, t), R.init(e, t);
3914
+ Jn.init(e, t), R.init(e, t);
3915
3915
  }), Uo = /*@__PURE__*/ E("ZodBase64", (e, t) => {
3916
- Yn.init(e, t), R.init(e, t);
3916
+ Xn.init(e, t), R.init(e, t);
3917
3917
  }), Wo = /*@__PURE__*/ E("ZodBase64URL", (e, t) => {
3918
- Zn.init(e, t), R.init(e, t);
3919
- }), Go = /*@__PURE__*/ E("ZodE164", (e, t) => {
3920
3918
  Qn.init(e, t), R.init(e, t);
3919
+ }), Go = /*@__PURE__*/ E("ZodE164", (e, t) => {
3920
+ $n.init(e, t), R.init(e, t);
3921
3921
  }), Ko = /*@__PURE__*/ E("ZodJWT", (e, t) => {
3922
- er.init(e, t), R.init(e, t);
3922
+ tr.init(e, t), R.init(e, t);
3923
3923
  }), qo = /*@__PURE__*/ E("ZodNumber", (e, t) => {
3924
- tr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ka(e, t, n, r);
3924
+ nr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r);
3925
3925
  let n = e._zod.bag;
3926
3926
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3927
3927
  }, {
3928
3928
  gt(e, t) {
3929
- return this.check(/* @__PURE__ */ Ki(e, t));
3929
+ return this.check(/* @__PURE__ */ qi(e, t));
3930
3930
  },
3931
3931
  gte(e, t) {
3932
- return this.check(/* @__PURE__ */ qi(e, t));
3932
+ return this.check(/* @__PURE__ */ Ji(e, t));
3933
3933
  },
3934
3934
  min(e, t) {
3935
- return this.check(/* @__PURE__ */ qi(e, t));
3935
+ return this.check(/* @__PURE__ */ Ji(e, t));
3936
3936
  },
3937
3937
  lt(e, t) {
3938
- return this.check(/* @__PURE__ */ Wi(e, t));
3938
+ return this.check(/* @__PURE__ */ Gi(e, t));
3939
3939
  },
3940
3940
  lte(e, t) {
3941
- return this.check(/* @__PURE__ */ Gi(e, t));
3941
+ return this.check(/* @__PURE__ */ Ki(e, t));
3942
3942
  },
3943
3943
  max(e, t) {
3944
- return this.check(/* @__PURE__ */ Gi(e, t));
3944
+ return this.check(/* @__PURE__ */ Ki(e, t));
3945
3945
  },
3946
3946
  int(e) {
3947
3947
  return this.check(Yo(e));
@@ -3950,84 +3950,84 @@ var R = /*@__PURE__*/ E("ZodStringFormat", (e, t) => {
3950
3950
  return this.check(Yo(e));
3951
3951
  },
3952
3952
  positive(e) {
3953
- return this.check(/* @__PURE__ */ Ki(0, e));
3953
+ return this.check(/* @__PURE__ */ qi(0, e));
3954
3954
  },
3955
3955
  nonnegative(e) {
3956
- return this.check(/* @__PURE__ */ qi(0, e));
3956
+ return this.check(/* @__PURE__ */ Ji(0, e));
3957
3957
  },
3958
3958
  negative(e) {
3959
- return this.check(/* @__PURE__ */ Wi(0, e));
3959
+ return this.check(/* @__PURE__ */ Gi(0, e));
3960
3960
  },
3961
3961
  nonpositive(e) {
3962
- return this.check(/* @__PURE__ */ Gi(0, e));
3962
+ return this.check(/* @__PURE__ */ Ki(0, e));
3963
3963
  },
3964
3964
  multipleOf(e, t) {
3965
- return this.check(/* @__PURE__ */ Ji(e, t));
3965
+ return this.check(/* @__PURE__ */ Yi(e, t));
3966
3966
  },
3967
3967
  step(e, t) {
3968
- return this.check(/* @__PURE__ */ Ji(e, t));
3968
+ return this.check(/* @__PURE__ */ Yi(e, t));
3969
3969
  },
3970
3970
  finite() {
3971
3971
  return this;
3972
3972
  }
3973
3973
  });
3974
3974
  function z(e) {
3975
- return /* @__PURE__ */ Ri(qo, e);
3975
+ return /* @__PURE__ */ zi(qo, e);
3976
3976
  }
3977
3977
  var Jo = /*@__PURE__*/ E("ZodNumberFormat", (e, t) => {
3978
- nr.init(e, t), qo.init(e, t);
3978
+ rr.init(e, t), qo.init(e, t);
3979
3979
  });
3980
3980
  function Yo(e) {
3981
- return /* @__PURE__ */ zi(Jo, e);
3981
+ return /* @__PURE__ */ Bi(Jo, e);
3982
3982
  }
3983
3983
  var Xo = /*@__PURE__*/ E("ZodBoolean", (e, t) => {
3984
- rr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Aa(e, t, n, r);
3984
+ ir.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r);
3985
3985
  });
3986
3986
  function B(e) {
3987
- return /* @__PURE__ */ Bi(Xo, e);
3987
+ return /* @__PURE__ */ Vi(Xo, e);
3988
3988
  }
3989
3989
  var Zo = /*@__PURE__*/ E("ZodNull", (e, t) => {
3990
- ir.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ja(e, t, n, r);
3990
+ ar.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r);
3991
3991
  });
3992
3992
  function Qo(e) {
3993
- return /* @__PURE__ */ Vi(Zo, e);
3993
+ return /* @__PURE__ */ Hi(Zo, e);
3994
3994
  }
3995
3995
  var $o = /*@__PURE__*/ E("ZodUnknown", (e, t) => {
3996
- ar.init(e, t), L.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3996
+ or.init(e, t), I.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3997
3997
  });
3998
3998
  function es() {
3999
- return /* @__PURE__ */ Hi($o);
3999
+ return /* @__PURE__ */ Ui($o);
4000
4000
  }
4001
4001
  var ts = /*@__PURE__*/ E("ZodNever", (e, t) => {
4002
- or.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ma(e, t, n, r);
4002
+ sr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r);
4003
4003
  });
4004
4004
  function ns(e) {
4005
- return /* @__PURE__ */ Ui(ts, e);
4005
+ return /* @__PURE__ */ Wi(ts, e);
4006
4006
  }
4007
4007
  var rs = /*@__PURE__*/ E("ZodArray", (e, t) => {
4008
- bo(), cr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r), e.element = t.element;
4008
+ xo(), lr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ra(e, t, n, r), e.element = t.element;
4009
4009
  }, {
4010
4010
  min(e, t) {
4011
- return this.check(/* @__PURE__ */ Xi(e, t));
4011
+ return this.check(/* @__PURE__ */ Zi(e, t));
4012
4012
  },
4013
4013
  nonempty(e) {
4014
- return this.check(/* @__PURE__ */ Xi(1, e));
4014
+ return this.check(/* @__PURE__ */ Zi(1, e));
4015
4015
  },
4016
4016
  max(e, t) {
4017
- return this.check(/* @__PURE__ */ Yi(e, t));
4017
+ return this.check(/* @__PURE__ */ Xi(e, t));
4018
4018
  },
4019
4019
  length(e, t) {
4020
- return this.check(/* @__PURE__ */ Zi(e, t));
4020
+ return this.check(/* @__PURE__ */ Qi(e, t));
4021
4021
  },
4022
4022
  unwrap() {
4023
4023
  return this.element;
4024
4024
  }
4025
4025
  });
4026
4026
  function V(e, t) {
4027
- return /* @__PURE__ */ ua(rs, e, t);
4027
+ return /* @__PURE__ */ da(rs, e, t);
4028
4028
  }
4029
4029
  var is = /*@__PURE__*/ E("ZodObject", (e, t) => {
4030
- bo(), hr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => za(e, t, n, r), Le(e, "shape", (e) => e._zod.def.shape, !1);
4030
+ xo(), gr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r), Le(e, "shape", (e) => e._zod.def.shape, !1);
4031
4031
  }, {
4032
4032
  keyof() {
4033
4033
  return G(Object.keys(this._zod.def.shape));
@@ -4063,35 +4063,35 @@ var is = /*@__PURE__*/ E("ZodObject", (e, t) => {
4063
4063
  });
4064
4064
  },
4065
4065
  extend(e) {
4066
- return _e(this, e);
4066
+ return ve(this, e);
4067
4067
  },
4068
4068
  safeExtend(e) {
4069
- return ve(this, e);
4069
+ return ye(this, e);
4070
4070
  },
4071
4071
  merge(e) {
4072
- return ye(this, e);
4072
+ return be(this, e);
4073
4073
  },
4074
4074
  pick(e) {
4075
- return he(this, e);
4075
+ return ge(this, e);
4076
4076
  },
4077
4077
  omit(e) {
4078
- return ge(this, e);
4078
+ return _e(this, e);
4079
4079
  },
4080
4080
  partial(...e) {
4081
- return be(gs, this, e[0]);
4081
+ return xe(gs, this, e[0]);
4082
4082
  },
4083
4083
  exactPartial(...e) {
4084
- return be(vs, this, e[0], "exactPartial");
4084
+ return xe(vs, this, e[0], "exactPartial");
4085
4085
  },
4086
4086
  required(...e) {
4087
- return xe(Es, this, e[0]);
4087
+ return Se(Es, this, e[0]);
4088
4088
  }
4089
4089
  });
4090
4090
  function H(e, t) {
4091
4091
  return new is({
4092
4092
  type: "object",
4093
4093
  shape: e ?? {},
4094
- ...b(t)
4094
+ ...y(t)
4095
4095
  });
4096
4096
  }
4097
4097
  function as(e, t) {
@@ -4099,21 +4099,21 @@ function as(e, t) {
4099
4099
  type: "object",
4100
4100
  shape: e,
4101
4101
  catchall: ns(),
4102
- ...b(t)
4102
+ ...y(t)
4103
4103
  });
4104
4104
  }
4105
4105
  var os = /*@__PURE__*/ E("ZodUnion", (e, t) => {
4106
- _r.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ba(e, t, n, r), e.options = t.options;
4106
+ vr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Va(e, t, n, r), e.options = t.options;
4107
4107
  });
4108
4108
  function U(e, t) {
4109
4109
  return new os({
4110
4110
  type: "union",
4111
4111
  options: e,
4112
- ...b(t)
4112
+ ...y(t)
4113
4113
  });
4114
4114
  }
4115
4115
  var ss = /*@__PURE__*/ E("ZodIntersection", (e, t) => {
4116
- vr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Va(e, t, n, r);
4116
+ yr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r);
4117
4117
  });
4118
4118
  function cs(e, t) {
4119
4119
  return new ss({
@@ -4123,7 +4123,7 @@ function cs(e, t) {
4123
4123
  });
4124
4124
  }
4125
4125
  var ls = /*@__PURE__*/ E("ZodTuple", (e, t) => {
4126
- bo(), xr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ha(e, t, n, r);
4126
+ xo(), Sr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ua(e, t, n, r);
4127
4127
  }, {
4128
4128
  rest(e) {
4129
4129
  return this.clone({
@@ -4144,32 +4144,32 @@ var ls = /*@__PURE__*/ E("ZodTuple", (e, t) => {
4144
4144
  }
4145
4145
  });
4146
4146
  function us(e, t, n) {
4147
- let r = t instanceof j;
4147
+ let r = t instanceof A;
4148
4148
  return new ls({
4149
4149
  type: "tuple",
4150
4150
  items: e,
4151
4151
  rest: r ? t : null,
4152
- ...b(r ? n : t)
4152
+ ...y(r ? n : t)
4153
4153
  });
4154
4154
  }
4155
4155
  var ds = /*@__PURE__*/ E("ZodRecord", (e, t) => {
4156
- bo(), Tr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ka(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4156
+ xo(), Er.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4157
4157
  });
4158
4158
  function W(e, t, n) {
4159
4159
  return !t || !t._zod ? new ds({
4160
4160
  type: "record",
4161
- keyType: Co(),
4161
+ keyType: L(),
4162
4162
  valueType: e,
4163
- ...b(t)
4163
+ ...y(t)
4164
4164
  }) : new ds({
4165
4165
  type: "record",
4166
4166
  keyType: e,
4167
4167
  valueType: t,
4168
- ...b(n)
4168
+ ...y(n)
4169
4169
  });
4170
4170
  }
4171
4171
  var fs = /*@__PURE__*/ E("ZodEnum", (e, t) => {
4172
- Er.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Na(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4172
+ Dr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pa(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4173
4173
  let n = new Set(Object.keys(t.entries));
4174
4174
  e.extract = (e, r) => {
4175
4175
  let i = {};
@@ -4178,7 +4178,7 @@ var fs = /*@__PURE__*/ E("ZodEnum", (e, t) => {
4178
4178
  return new fs({
4179
4179
  ...t,
4180
4180
  checks: [],
4181
- ...b(r),
4181
+ ...y(r),
4182
4182
  entries: i
4183
4183
  });
4184
4184
  }, e.exclude = (e, r) => {
@@ -4188,7 +4188,7 @@ var fs = /*@__PURE__*/ E("ZodEnum", (e, t) => {
4188
4188
  return new fs({
4189
4189
  ...t,
4190
4190
  checks: [],
4191
- ...b(r),
4191
+ ...y(r),
4192
4192
  entries: i
4193
4193
  });
4194
4194
  };
@@ -4197,11 +4197,11 @@ function G(e, t) {
4197
4197
  return new fs({
4198
4198
  type: "enum",
4199
4199
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
4200
- ...b(t)
4200
+ ...y(t)
4201
4201
  });
4202
4202
  }
4203
4203
  var ps = /*@__PURE__*/ E("ZodLiteral", (e, t) => {
4204
- Dr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Pa(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4204
+ Or.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fa(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4205
4205
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
4206
4206
  return t.values[0];
4207
4207
  } });
@@ -4210,12 +4210,12 @@ function K(e, t) {
4210
4210
  return new ps({
4211
4211
  type: "literal",
4212
4212
  values: Array.isArray(e) ? e : [e],
4213
- ...b(t)
4213
+ ...y(t)
4214
4214
  });
4215
4215
  }
4216
4216
  var ms = /*@__PURE__*/ E("ZodTransform", (e, t) => {
4217
- bo(), Or.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ia(e, t, n, r), e._zod.parse = (n, r) => {
4218
- if (r.direction === "backward") throw new We(e.constructor.name);
4217
+ xo(), kr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => La(e, t, n, r), e._zod.parse = (n, r) => {
4218
+ if (r.direction === "backward") throw new Ge(e.constructor.name);
4219
4219
  n.addIssue = (r) => {
4220
4220
  if (typeof r == "string") n.issues.push(Ae(r, n.value, t));
4221
4221
  else {
@@ -4234,7 +4234,7 @@ function hs(e) {
4234
4234
  });
4235
4235
  }
4236
4236
  var gs = /*@__PURE__*/ E("ZodOptional", (e, t) => {
4237
- Ar.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4237
+ jr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4238
4238
  });
4239
4239
  function _s(e) {
4240
4240
  return new gs({
@@ -4243,7 +4243,7 @@ function _s(e) {
4243
4243
  });
4244
4244
  }
4245
4245
  var vs = /*@__PURE__*/ E("ZodExactOptional", (e, t) => {
4246
- jr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4246
+ Mr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4247
4247
  });
4248
4248
  function ys(e) {
4249
4249
  return new vs({
@@ -4252,7 +4252,7 @@ function ys(e) {
4252
4252
  });
4253
4253
  }
4254
4254
  var bs = /*@__PURE__*/ E("ZodNullable", (e, t) => {
4255
- Mr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4255
+ Nr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4256
4256
  });
4257
4257
  function xs(e) {
4258
4258
  return new bs({
@@ -4261,41 +4261,41 @@ function xs(e) {
4261
4261
  });
4262
4262
  }
4263
4263
  var Ss = /*@__PURE__*/ E("ZodDefault", (e, t) => {
4264
- Nr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Za(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4264
+ Pr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4265
4265
  });
4266
4266
  function Cs(e, t) {
4267
4267
  return new Ss({
4268
4268
  type: "default",
4269
4269
  innerType: e,
4270
4270
  get defaultValue() {
4271
- return typeof t == "function" ? t() : ue(t);
4271
+ return typeof t == "function" ? t() : de(t);
4272
4272
  }
4273
4273
  });
4274
4274
  }
4275
4275
  var ws = /*@__PURE__*/ E("ZodPrefault", (e, t) => {
4276
- Fr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qa(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4276
+ Ir.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => $a(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4277
4277
  });
4278
4278
  function Ts(e, t) {
4279
4279
  return new ws({
4280
4280
  type: "prefault",
4281
4281
  innerType: e,
4282
4282
  get defaultValue() {
4283
- return typeof t == "function" ? t() : ue(t);
4283
+ return typeof t == "function" ? t() : de(t);
4284
4284
  }
4285
4285
  });
4286
4286
  }
4287
4287
  var Es = /*@__PURE__*/ E("ZodNonOptional", (e, t) => {
4288
- Ir.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ja(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4288
+ Lr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ya(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4289
4289
  });
4290
4290
  function Ds(e, t) {
4291
4291
  return new Es({
4292
4292
  type: "nonoptional",
4293
4293
  innerType: e,
4294
- ...b(t)
4294
+ ...y(t)
4295
4295
  });
4296
4296
  }
4297
4297
  var Os = /*@__PURE__*/ E("ZodCatch", (e, t) => {
4298
- zr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => $a(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4298
+ Br.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => eo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4299
4299
  });
4300
4300
  function ks(e, t) {
4301
4301
  return new Os({
@@ -4305,7 +4305,7 @@ function ks(e, t) {
4305
4305
  });
4306
4306
  }
4307
4307
  var As = /*@__PURE__*/ E("ZodPipe", (e, t) => {
4308
- Br.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => eo(e, t, n, r), e.in = t.in, e.out = t.out;
4308
+ Vr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => to(e, t, n, r), e.in = t.in, e.out = t.out;
4309
4309
  });
4310
4310
  function js(e, t) {
4311
4311
  return new As({
@@ -4315,7 +4315,7 @@ function js(e, t) {
4315
4315
  });
4316
4316
  }
4317
4317
  var Ms = /*@__PURE__*/ E("ZodReadonly", (e, t) => {
4318
- Hr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => to(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4318
+ Ur.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => no(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4319
4319
  });
4320
4320
  function Ns(e) {
4321
4321
  return new Ms({
@@ -4324,7 +4324,7 @@ function Ns(e) {
4324
4324
  });
4325
4325
  }
4326
4326
  var Ps = /*@__PURE__*/ E("ZodLazy", (e, t) => {
4327
- Wr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4327
+ Gr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => io(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4328
4328
  });
4329
4329
  function Fs(e) {
4330
4330
  return new Ps({
@@ -4333,59 +4333,73 @@ function Fs(e) {
4333
4333
  });
4334
4334
  }
4335
4335
  var Is = /*@__PURE__*/ E("ZodCustom", (e, t) => {
4336
- Gr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fa(e, t, n, r);
4336
+ Kr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ia(e, t, n, r);
4337
4337
  });
4338
4338
  function Ls(e, t = {}) {
4339
- return /* @__PURE__ */ da(Is, e, t);
4339
+ return /* @__PURE__ */ fa(Is, e, t);
4340
4340
  }
4341
4341
  function Rs(e, t) {
4342
- return /* @__PURE__ */ fa(e, t);
4342
+ return /* @__PURE__ */ pa(e, t);
4343
4343
  }
4344
4344
  function zs(e) {
4345
4345
  let t = Fs(() => U([
4346
- Co(e),
4346
+ L(e),
4347
4347
  z(),
4348
4348
  B(),
4349
4349
  Qo(),
4350
4350
  V(t),
4351
- W(Co(), t)
4351
+ W(L(), t)
4352
4352
  ]));
4353
4353
  return t;
4354
4354
  }
4355
4355
  //#endregion
4356
- //#region src/flow/common/changeSchema.ts
4357
- var q = Co(), J = zs(), Bs = V(q), Vs = H({
4356
+ //#region src/flow/common/triggerScheduleSchema.ts
4357
+ var Bs = V(U([H({
4358
+ type: K("cron"),
4359
+ expression: L(),
4360
+ timezone: L()
4361
+ }), H({
4362
+ type: K("every"),
4363
+ unit: G([
4364
+ "day",
4365
+ "hour",
4366
+ "minute",
4367
+ "month",
4368
+ "week"
4369
+ ]),
4370
+ value: z()
4371
+ })])), q = L(), J = zs(), Vs = V(q), Hs = H({
4358
4372
  description: q.optional(),
4359
4373
  jsonSchema: J,
4360
4374
  nullable: B(),
4361
4375
  handle: q
4362
- }), Y = Vs.extend({ value: J.optional() }), Hs = H({
4376
+ }), Y = Hs.extend({ value: J.optional() }), Us = H({
4363
4377
  collapsed: B().optional(),
4364
4378
  group: q
4365
- }), Us = H({
4379
+ }), Ws = H({
4366
4380
  kind: K("node"),
4367
4381
  nodeId: q,
4368
4382
  output: q
4369
- }), Ws = H({
4383
+ }), Gs = H({
4370
4384
  kind: K("flow"),
4371
4385
  input: q
4372
- }), Gs = U([
4373
- Us,
4386
+ }), Ks = U([
4374
4387
  Ws,
4388
+ Gs,
4375
4389
  H({
4376
4390
  kind: K("binding"),
4377
4391
  bindingId: q
4378
4392
  })
4379
- ]), Ks = U([H({
4393
+ ]), qs = U([H({
4380
4394
  kind: K("value"),
4381
4395
  value: J
4382
4396
  }), H({
4383
4397
  kind: K("sources"),
4384
- sources: V(Gs)
4385
- })]), qs = W(q, Ks), Js = {
4386
- inputs: V(U([Y, Hs])),
4387
- outputs: V(U([Vs, Hs]))
4388
- }, Ys = H({
4398
+ sources: V(Ks)
4399
+ })]), Js = W(q, qs), Ys = {
4400
+ inputs: V(U([Y, Us])),
4401
+ outputs: V(U([Hs, Us]))
4402
+ }, Xs = H({
4389
4403
  kind: K("connector"),
4390
4404
  action: q,
4391
4405
  connectionId: q.optional(),
@@ -4393,19 +4407,19 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4393
4407
  connectionId: q,
4394
4408
  alias: q.optional()
4395
4409
  }))
4396
- }), Xs = H({
4397
- ...Js,
4410
+ }), Zs = H({
4411
+ ...Ys,
4398
4412
  name: q,
4399
4413
  moduleId: q,
4400
- capabilities: V(Ys).optional()
4401
- }), Zs = U([H({
4414
+ capabilities: V(Xs).optional()
4415
+ }), Qs = U([H({
4402
4416
  kind: K("value"),
4403
4417
  value: J
4404
4418
  }), H({
4405
4419
  kind: K("input"),
4406
4420
  input: q
4407
- })]), Qs = U([Zs, H({ kind: K("model") })]), $s = H({
4408
- ...Js,
4421
+ })]), $s = U([Qs, H({ kind: K("model") })]), ec = H({
4422
+ ...Ys,
4409
4423
  name: q,
4410
4424
  executor: U([
4411
4425
  H({
@@ -4421,7 +4435,7 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4421
4435
  kind: K("agent"),
4422
4436
  code: B().optional(),
4423
4437
  model: q,
4424
- prompt: Zs,
4438
+ prompt: Qs,
4425
4439
  system: q,
4426
4440
  maxRounds: z(),
4427
4441
  tools: V(H({
@@ -4431,16 +4445,16 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4431
4445
  action: q,
4432
4446
  connectionId: q.optional(),
4433
4447
  approval: B(),
4434
- inputs: V(Y.extend({ source: Qs }))
4448
+ inputs: V(Y.extend({ source: $s }))
4435
4449
  })),
4436
4450
  notification: H({
4437
4451
  taskId: q,
4438
4452
  messageHandle: q,
4439
- inputs: W(q, Zs)
4453
+ inputs: W(q, Qs)
4440
4454
  }).optional()
4441
4455
  })
4442
4456
  ])
4443
- }), ec = {
4457
+ }), tc = {
4444
4458
  input: Y,
4445
4459
  cases: V(H({
4446
4460
  output: q,
@@ -4473,41 +4487,27 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4473
4487
  }))
4474
4488
  })),
4475
4489
  defaultOutput: q.optional()
4476
- }, tc = {
4490
+ }, nc = {
4477
4491
  actions: U([us([K("continue")]), us([K("approve"), K("reject")])]),
4478
4492
  prompt: q
4479
- }, nc = {
4480
- inputsDef: V(Y),
4493
+ }, rc = {
4494
+ bodyFields: V(Y),
4481
4495
  options: H({
4482
- allowedMethods: Bs.optional(),
4483
- allowedOrigins: Bs.optional(),
4496
+ allowedMethods: Vs.optional(),
4497
+ allowedOrigins: Vs.optional(),
4484
4498
  noResponseBody: B().optional(),
4485
4499
  responseData: q.optional(),
4486
4500
  responseHeaders: W(q, q).optional(),
4487
4501
  responseStatusCode: z().optional()
4488
4502
  }).optional()
4489
- }, rc = V(U([H({
4490
- type: K("cron"),
4491
- expression: q,
4492
- timezone: q
4493
- }), H({
4494
- type: K("every"),
4495
- unit: G([
4496
- "day",
4497
- "hour",
4498
- "minute",
4499
- "month",
4500
- "week"
4501
- ]),
4502
- value: z()
4503
- })])), ic = {
4503
+ }, ic = {
4504
4504
  configSchema: J,
4505
- definitionVersion: z(),
4505
+ definitionVersion: K(2),
4506
4506
  description: q,
4507
4507
  displayName: q,
4508
4508
  key: q,
4509
4509
  name: q,
4510
- payloadSchema: J,
4510
+ outputs: V(Hs).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4511
4511
  provider: q
4512
4512
  }, ac = H({
4513
4513
  body: H({
@@ -4534,7 +4534,8 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4534
4534
  description: q.optional(),
4535
4535
  icon: q.optional()
4536
4536
  }, sc = {
4537
- inputs: qs,
4537
+ maxExecutions: z().int().positive().max(2 ** 53 - 1).optional(),
4538
+ inputs: Js,
4538
4539
  name: q.optional(),
4539
4540
  description: q.optional(),
4540
4541
  icon: q.optional(),
@@ -4543,7 +4544,7 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4543
4544
  H({
4544
4545
  ...sc,
4545
4546
  kind: K("condition"),
4546
- ...ec
4547
+ ...tc
4547
4548
  }),
4548
4549
  H({
4549
4550
  ...sc,
@@ -4559,7 +4560,7 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4559
4560
  H({
4560
4561
  ...sc,
4561
4562
  kind: K("task"),
4562
- task: Xs,
4563
+ task: Zs,
4563
4564
  additionalInputs: V(Y).optional()
4564
4565
  }),
4565
4566
  H({
@@ -4572,7 +4573,7 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4572
4573
  ...sc,
4573
4574
  kind: K("wait"),
4574
4575
  input: Y,
4575
- ...tc
4576
+ ...nc
4576
4577
  }).omit({ timeoutMs: !0 }),
4577
4578
  H({
4578
4579
  ...oc,
@@ -4581,12 +4582,12 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4581
4582
  H({
4582
4583
  ...oc,
4583
4584
  kind: K("webhook"),
4584
- ...nc
4585
+ ...rc
4585
4586
  }),
4586
4587
  H({
4587
4588
  ...oc,
4588
4589
  kind: K("cron"),
4589
- cronTimes: rc
4590
+ cronTimes: Bs
4590
4591
  }),
4591
4592
  H({
4592
4593
  ...oc,
@@ -4597,7 +4598,7 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4597
4598
  ...ic,
4598
4599
  type: K("poll")
4599
4600
  }),
4600
- pollTimes: rc
4601
+ pollTimes: Bs
4601
4602
  }),
4602
4603
  H({
4603
4604
  ...oc,
@@ -4623,7 +4624,7 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4623
4624
  }, dc = H({
4624
4625
  name: q,
4625
4626
  inputs: V(Y),
4626
- outputs: V(Vs.extend({ sources: V(U([Us, Ws])) }))
4627
+ outputs: V(Hs.extend({ sources: V(U([Ws, Gs])) }))
4627
4628
  }), fc = H({
4628
4629
  nodes: W(q, cc),
4629
4630
  edges: V(uc).default([])
@@ -4632,16 +4633,16 @@ var q = Co(), J = zs(), Bs = V(q), Vs = H({
4632
4633
  target: q
4633
4634
  }), mc = H({
4634
4635
  name: q,
4635
- imports: Bs,
4636
+ imports: Vs,
4636
4637
  source: q
4637
4638
  }), hc = H({
4638
4639
  bindings: W(q, pc),
4639
4640
  graph: fc,
4640
4641
  subflows: W(q, dc.extend({ graph: fc })),
4641
- tasks: W(q, $s)
4642
+ tasks: W(q, ec)
4642
4643
  });
4643
4644
  H({
4644
- modelVersion: K(1),
4645
+ modelVersion: K(2),
4645
4646
  document: hc,
4646
4647
  modules: W(q, mc)
4647
4648
  }).extend({
@@ -4672,28 +4673,38 @@ var gc = {
4672
4673
  node: cc
4673
4674
  },
4674
4675
  "graph.node.delete": X,
4675
- "graph.node.field.set": U([H({
4676
- ...X,
4677
- kind: K("graph.node.field.set"),
4678
- field: G([
4679
- "description",
4680
- "icon",
4681
- "name"
4682
- ]),
4683
- before: q.optional(),
4684
- value: q.optional()
4685
- }), H({
4686
- ...X,
4687
- kind: K("graph.node.field.set"),
4688
- field: K("timeoutMs"),
4689
- before: z().optional(),
4690
- value: z().optional()
4691
- })]),
4676
+ "graph.node.field.set": U([
4677
+ H({
4678
+ ...X,
4679
+ kind: K("graph.node.field.set"),
4680
+ field: G([
4681
+ "description",
4682
+ "icon",
4683
+ "name"
4684
+ ]),
4685
+ before: q.optional(),
4686
+ value: q.optional()
4687
+ }),
4688
+ H({
4689
+ ...X,
4690
+ kind: K("graph.node.field.set"),
4691
+ field: K("maxExecutions"),
4692
+ before: z().int().positive().max(2 ** 53 - 1).optional(),
4693
+ value: z().int().positive().max(2 ** 53 - 1).optional()
4694
+ }),
4695
+ H({
4696
+ ...X,
4697
+ kind: K("graph.node.field.set"),
4698
+ field: K("timeoutMs"),
4699
+ before: z().optional(),
4700
+ value: z().optional()
4701
+ })
4702
+ ]),
4692
4703
  "graph.node.input.set": {
4693
4704
  ...X,
4694
4705
  handle: q,
4695
- before: Ks.optional(),
4696
- value: Ks.optional()
4706
+ before: qs.optional(),
4707
+ value: qs.optional()
4697
4708
  },
4698
4709
  "graph.node.additional-inputs.set": {
4699
4710
  ...X,
@@ -4702,8 +4713,8 @@ var gc = {
4702
4713
  },
4703
4714
  "graph.node.condition.set": {
4704
4715
  ...X,
4705
- before: H(ec),
4706
- value: H(ec)
4716
+ before: H(tc),
4717
+ value: H(tc)
4707
4718
  },
4708
4719
  "graph.node.values.set": {
4709
4720
  ...X,
@@ -4713,19 +4724,19 @@ var gc = {
4713
4724
  "graph.node.wait.set": {
4714
4725
  ...X,
4715
4726
  target: H({ kind: K("flow") }),
4716
- before: H(tc),
4717
- value: H(tc)
4727
+ before: H(nc),
4728
+ value: H(nc)
4718
4729
  },
4719
4730
  "graph.node.webhook.set": {
4720
4731
  ...X,
4721
4732
  target: H({ kind: K("flow") }),
4722
- before: H(nc),
4723
- value: H(nc)
4733
+ before: H(rc),
4734
+ value: H(rc)
4724
4735
  },
4725
4736
  "graph.node.task.ports.set": {
4726
4737
  ...X,
4727
- before: H(Js),
4728
- value: H(Js)
4738
+ before: H(Ys),
4739
+ value: H(Ys)
4729
4740
  },
4730
4741
  "graph.node.task.name.set": {
4731
4742
  ...X,
@@ -4734,8 +4745,8 @@ var gc = {
4734
4745
  },
4735
4746
  "graph.node.task.capabilities.set": {
4736
4747
  ...X,
4737
- before: V(Ys).optional(),
4738
- value: V(Ys).optional()
4748
+ before: V(Xs).optional(),
4749
+ value: V(Xs).optional()
4739
4750
  },
4740
4751
  "graph.trigger.config.set": {
4741
4752
  nodeId: q,
@@ -4745,8 +4756,8 @@ var gc = {
4745
4756
  },
4746
4757
  "graph.trigger.schedule.set": {
4747
4758
  nodeId: q,
4748
- before: rc,
4749
- value: rc
4759
+ before: Bs,
4760
+ value: Bs
4750
4761
  },
4751
4762
  "module.create": {
4752
4763
  moduleId: q,
@@ -4760,9 +4771,9 @@ var gc = {
4760
4771
  },
4761
4772
  "module.source.replace": {
4762
4773
  moduleId: q,
4763
- beforeImports: Bs,
4774
+ beforeImports: Vs,
4764
4775
  beforeSource: q,
4765
- imports: Bs,
4776
+ imports: Vs,
4766
4777
  source: q
4767
4778
  },
4768
4779
  "subflow.create": {
@@ -4777,7 +4788,7 @@ var gc = {
4777
4788
  "subflow.delete": { subflowId: q },
4778
4789
  "task.create": {
4779
4790
  taskId: q,
4780
- task: $s
4791
+ task: ec
4781
4792
  },
4782
4793
  "task.delete": { taskId: q },
4783
4794
  "task.connector.connection.set": {
@@ -4787,8 +4798,8 @@ var gc = {
4787
4798
  },
4788
4799
  "task.agent.set": {
4789
4800
  taskId: q,
4790
- before: $s,
4791
- value: $s
4801
+ before: ec,
4802
+ value: ec
4792
4803
  },
4793
4804
  "task.llm.mode.set": {
4794
4805
  taskId: q,
@@ -4801,7 +4812,7 @@ var gc = {
4801
4812
  value: q
4802
4813
  }
4803
4814
  };
4804
- V(U([...new Map(Object.entries(gc).map(([e, t]) => [e, t instanceof L ? t : H({
4815
+ V(U([...new Map(Object.entries(gc).map(([e, t]) => [e, t instanceof I ? t : H({
4805
4816
  kind: K(e),
4806
4817
  ...t
4807
4818
  })])).values()])).min(1);
@@ -5143,10 +5154,10 @@ function Sc(e, t) {
5143
5154
  }
5144
5155
  case "graph.node.webhook.set": {
5145
5156
  let t = Q(n, e.target), r = t.nodes[e.nodeId];
5146
- r?.kind != "webhook" && Z("The Webhook Node does not exist."), (!i(r.inputsDef, e.before.inputsDef) || !i(r.options, e.before.options)) && Z("The Webhook Node changed before this operation was applied.");
5157
+ r?.kind != "webhook" && Z("The Webhook Node does not exist."), (!i(r.bodyFields, e.before.bodyFields) || !i(r.options, e.before.options)) && Z("The Webhook Node changed before this operation was applied.");
5147
5158
  let { options: a, ...o } = r, s = e.value.options == null ? {
5148
5159
  ...o,
5149
- inputsDef: e.value.inputsDef
5160
+ bodyFields: e.value.bodyFields
5150
5161
  } : {
5151
5162
  ...r,
5152
5163
  ...e.value
@@ -5605,6 +5616,13 @@ function Pc(e, t, n, r) {
5605
5616
  nodeId: n,
5606
5617
  target: t,
5607
5618
  value: r.name
5619
+ }), i.maxExecutions != r.maxExecutions && a.push({
5620
+ before: i.maxExecutions,
5621
+ field: "maxExecutions",
5622
+ kind: "graph.node.field.set",
5623
+ nodeId: n,
5624
+ target: t,
5625
+ value: r.maxExecutions
5608
5626
  }), i.timeoutMs != r.timeoutMs && a.push({
5609
5627
  before: i.timeoutMs,
5610
5628
  field: "timeoutMs",
@@ -5731,10 +5749,10 @@ function Vc(e, t, n, r) {
5731
5749
  case "webhook": {
5732
5750
  if (a.kind != "webhook") return;
5733
5751
  let e = {
5734
- inputsDef: r.inputs,
5752
+ bodyFields: r.bodyFields,
5735
5753
  options: Object.keys(r.options).length == 0 ? void 0 : r.options
5736
5754
  }, s = {
5737
- inputsDef: a.inputsDef,
5755
+ bodyFields: a.bodyFields,
5738
5756
  options: a.options
5739
5757
  };
5740
5758
  i(s, e) || o.push({