@golemui/gui-lit 0.13.1 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,43 +1,9 @@
1
+ import { filterTap as Pt, standardValidate as Ke, isStandardValidateSuccess as qe } from "@golemui/core";
1
2
  import "@golemui/gui-shared";
2
3
  import "@golemui/lit";
3
- import { filterTap as Pt, standardValidate as qe, isStandardValidateSuccess as Xe } from "@golemui/core";
4
4
  import { LitElement as Zt, html as Ct } from "lit";
5
- import { property as He, query as It, customElement as Nt } from "lit/decorators.js";
6
- const Mt = {
7
- // ACTION
8
- button: async () => (await import("./button.element-ATNRRDN3.js")).ButtonElement,
9
- // INPUTS
10
- calendar: async () => (await import("./calendar.element-O2of7VBr.js")).CalendarElement,
11
- rangeCalendar: async () => (await import("./range-calendar.element-C-4qqRGK.js")).RangeCalendarElement,
12
- rangeDateInput: async () => (await import("./range-date-input.element-Iq5Y7uLQ.js")).RangeDateInputElement,
13
- rangeDatePicker: async () => (await import("./range-date-picker.element-4bg4Uraq.js")).RangeDatePickerElement,
14
- currency: async () => (await import("./currency.element-C7SZkoPP.js")).CurrencyElement,
15
- dateInput: async () => (await import("./date.element-DfXmcgZi.js")).DateElement,
16
- datePicker: async () => (await import("./date-picker.element-Bcyhc0fb.js")).DatePickerElement,
17
- dropdown: async () => (await import("./dropdown.element-DCUI5Y7I.js")).DropdownElement,
18
- list: async () => (await import("./list.element-G8RNRZXU.js")).ListElement,
19
- markdown: async () => (await import("./markdown.element-CT1JOOM3.js")).MarkdownElement,
20
- password: async () => (await import("./password.element-B4-0SCe4.js")).PasswordElement,
21
- textinput: async () => (await import("./textinput.element-DKuplF1A.js")).TextinputElement,
22
- textarea: async () => (await import("./textarea.element-C8yx2u0o.js")).TextareaElement,
23
- toggle: async () => (await import("./toggle.element-NXRrhALB.js")).ToggleElement,
24
- checkbox: async () => (await import("./checkbox.element-DMmer4Jw.js")).CheckboxElement,
25
- number: async () => (await import("./number.element-HaXEg_7U.js")).NumberElement,
26
- radiogroup: async () => (await import("./radiogroup.element-DzHLgRh1.js")).RadiogroupElement,
27
- select: async () => (await import("./select.element-DuGZjlZY.js")).SelectElement,
28
- // REPEATER
29
- repeater: async () => (await import("./repeater.element-Ry8HyMfW.js")).RepeaterElement,
30
- // LAYOUTS
31
- flex: async () => (await import("./flex.element-B0sG0YT1.js")).FlexElement,
32
- grid: async () => (await import("./grid.element-Bf5aEjkj.js")).GridElement,
33
- tabs: async () => (await import("./tabs.element-VLrtF1j5.js")).TabsElement,
34
- accordion: async () => (await import("./accordion.element-ChLmV6QT.js")).AccordionElement,
35
- // DISPLAY
36
- alert: async () => (await import("./alert.element-9QFlqjj9.js")).AlertElement,
37
- markdownText: async () => (await import("./markdown-text.element-C_1OqrGa.js")).MarkdownTextElement,
38
- renderer: async () => (await import("./renderer.element-DMsheQGi.js")).RendererElement
39
- }, Q = {
40
- ACTIONS: "ACTIONS",
5
+ import { property as Xe, query as It, customElement as Nt } from "lit/decorators.js";
6
+ const He = {
41
7
  LAYOUTS: "LAYOUTS",
42
8
  DISPLAYS: "DISPLAYS"
43
9
  };
@@ -51,14 +17,14 @@ function Lt(e) {
51
17
  };
52
18
  };
53
19
  }
54
- const X = /* @__PURE__ */ new Map();
20
+ const q = /* @__PURE__ */ new Map();
55
21
  function Qe(e, t) {
56
- if (X.has(e))
22
+ if (q.has(e))
57
23
  throw new Error(`Item type "${e}" is already registered.`);
58
- X.set(e, t);
24
+ q.set(e, t);
59
25
  }
60
- function Y(e) {
61
- const t = X.get(e);
26
+ function H(e) {
27
+ const t = q.get(e);
62
28
  if (!t)
63
29
  throw new Error(
64
30
  `No handler registered for item type "${e}". Did you forget to import the registration module?`
@@ -66,7 +32,7 @@ function Y(e) {
66
32
  return t;
67
33
  }
68
34
  function et(e) {
69
- return X.has(e);
35
+ return q.has(e);
70
36
  }
71
37
  function y(e) {
72
38
  const t = (a) => {
@@ -107,52 +73,20 @@ function y(e) {
107
73
  const s = Lt(e.itemType);
108
74
  return { gsl: s, gslByUid: (a, u) => s(u, ((c) => c.uid === a)) };
109
75
  }
110
- function Dt(e) {
76
+ function Mt(e) {
111
77
  return e ? e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()) : "";
112
78
  }
113
- function w(e, t) {
114
- return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Dt(e.path) };
79
+ function k(e, t) {
80
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Mt(e.path) };
115
81
  }
116
82
  function N(e, t) {
117
83
  return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
118
84
  }
119
- const Rt = (e, t) => ({
85
+ const Dt = (e, t) => ({
120
86
  type: "ITEMS",
121
- itemType: Q.DISPLAYS,
87
+ itemType: He.DISPLAYS,
122
88
  items: [{ render: e }],
123
89
  tags: []
124
- });
125
- class Ft {
126
- /**
127
- * Deep merges two objects, with right taking precedence over left when properties conflict.
128
- * Arrays are replaced, not merged.
129
- * @param left - The base object
130
- * @param right - The object whose properties take precedence
131
- * @returns A new merged object
132
- */
133
- deepMerge(t, n) {
134
- if (n == null)
135
- return t;
136
- if (t == null || typeof t != "object" || typeof n != "object" || Array.isArray(t) || Array.isArray(n))
137
- return n;
138
- const r = { ...t };
139
- for (const o in n)
140
- Object.prototype.hasOwnProperty.call(n, o) && (typeof n[o] == "object" && !Array.isArray(n[o]) && n[o] !== null && typeof t[o] == "object" && !Array.isArray(t[o]) && t[o] !== null ? r[o] = this.deepMerge(t[o], n[o]) : r[o] = n[o]);
141
- return r;
142
- }
143
- }
144
- const jt = new Ft();
145
- function Wt(e, t) {
146
- return {
147
- items: [e],
148
- type: "ITEMS",
149
- itemType: Q.ACTIONS,
150
- tags: t ?? []
151
- };
152
- }
153
- const xt = (e) => Wt({
154
- uid: "#submit",
155
- label: "Submit"
156
90
  }), tt = {
157
91
  INPUTS: /* @__PURE__ */ new Set([
158
92
  "INPUTS",
@@ -178,11 +112,11 @@ const xt = (e) => Wt({
178
112
  DISPLAYS: /* @__PURE__ */ new Set(["DISPLAYS", "ALERTS", "CUSTOM_DISPLAY"]),
179
113
  LAYOUTS: /* @__PURE__ */ new Set(["LAYOUTS", "TABS", "ACCORDION", "CUSTOM_LAYOUT"])
180
114
  };
181
- function Ut(e, t) {
115
+ function Rt(e, t) {
182
116
  const n = tt[e];
183
117
  return n ? n.has(t) : e === t;
184
118
  }
185
- class Vt {
119
+ class Ft {
186
120
  resolve(t, n) {
187
121
  const r = [];
188
122
  for (const s of n)
@@ -199,7 +133,7 @@ class Vt {
199
133
  this.collectFromLeaf(o, n, r);
200
134
  }
201
135
  collectFromLeaf(t, n, r) {
202
- Ut(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
136
+ Rt(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
203
137
  }
204
138
  rollUpSensibleDefaults(t) {
205
139
  const n = /* @__PURE__ */ new Map(), r = (s, i) => {
@@ -215,12 +149,32 @@ class Vt {
215
149
  }
216
150
  const o = {};
217
151
  for (const [s, i] of n)
218
- et(s) && (o[s] = Y(s).rollUpSensibleDefaults(i));
152
+ et(s) && (o[s] = H(s).rollUpSensibleDefaults(i));
219
153
  return o;
220
154
  }
221
155
  }
222
- const Jt = new Vt();
223
- class Bt {
156
+ const jt = new Ft();
157
+ class Wt {
158
+ /**
159
+ * Deep merges two objects, with right taking precedence over left when properties conflict.
160
+ * Arrays are replaced, not merged.
161
+ * @param left - The base object
162
+ * @param right - The object whose properties take precedence
163
+ * @returns A new merged object
164
+ */
165
+ deepMerge(t, n) {
166
+ if (n == null)
167
+ return t;
168
+ if (t == null || typeof t != "object" || typeof n != "object" || Array.isArray(t) || Array.isArray(n))
169
+ return n;
170
+ const r = { ...t };
171
+ for (const o in n)
172
+ Object.prototype.hasOwnProperty.call(n, o) && (typeof n[o] == "object" && !Array.isArray(n[o]) && n[o] !== null && typeof t[o] == "object" && !Array.isArray(t[o]) && t[o] !== null ? r[o] = this.deepMerge(t[o], n[o]) : r[o] = n[o]);
173
+ return r;
174
+ }
175
+ }
176
+ const xt = new Wt();
177
+ class Ut {
224
178
  constructor(t) {
225
179
  this.objectUtils = t;
226
180
  }
@@ -273,7 +227,7 @@ class Bt {
273
227
  applySensibleDefaults(t, n, r) {
274
228
  if (!et(n)) return t;
275
229
  const o = r.sensibleDefaults[n] ?? {};
276
- return Y(n).applySensibleDefaults(t, o);
230
+ return H(n).applySensibleDefaults(t, o);
277
231
  }
278
232
  // ── Create promoted FunctionWidget ──
279
233
  createPromotedFunction(t, n, r, o, s) {
@@ -301,8 +255,8 @@ class Bt {
301
255
  };
302
256
  }
303
257
  }
304
- const Yt = new Bt(jt);
305
- class Gt {
258
+ const Vt = new Ut(xt);
259
+ class Jt {
306
260
  mapToWidget(t, n) {
307
261
  if (t.kind === "dynamic") {
308
262
  const r = t.fn;
@@ -314,7 +268,7 @@ class Gt {
314
268
  return this.mapStaticDef(t.def, n);
315
269
  }
316
270
  mapStaticDef(t, n) {
317
- const r = Y(n).mapToWidget(t);
271
+ const r = H(n).mapToWidget(t);
318
272
  return this.applyBaseWidgetFields(r, t);
319
273
  }
320
274
  /**
@@ -325,8 +279,8 @@ class Gt {
325
279
  return n.size != null && (t.size = n.size), n.defaultValue != null && t.kind === "input" && (t.defaultValue = n.defaultValue), n.on != null && (t.on = n.on), n.include != null && (t.include = n.include), n.exclude != null && (t.exclude = n.exclude), t;
326
280
  }
327
281
  }
328
- const Kt = new Gt();
329
- class qt {
282
+ const Bt = new Jt();
283
+ class Yt {
330
284
  /**
331
285
  * Ensures the output is always a uniform GslSelector[] of aggregated selectors.
332
286
  *
@@ -348,18 +302,17 @@ class qt {
348
302
  extractFormConfig() {
349
303
  return {
350
304
  suppressAutomaticStack: !1,
351
- suppressAutomaticSubmit: !1,
352
305
  onSubmit: (t) => console.log("Form submitted:", t)
353
306
  };
354
307
  }
355
308
  }
356
- const Xt = new qt(), nt = {
309
+ const Gt = new Yt(), nt = {
357
310
  onLoad: "load",
358
311
  onChange: "change",
359
312
  onFilter: "filter",
360
313
  onBlur: "blur"
361
- }, Ht = Object.keys(nt);
362
- class Qt {
314
+ }, Kt = Object.keys(nt);
315
+ class qt {
363
316
  // ── Action-specific: onClick + submit ─────────────────────────
364
317
  extractOnClickFromMergeResult(t, n, r, o) {
365
318
  if (t.kind === "dynamic") {
@@ -372,22 +325,6 @@ class Qt {
372
325
  const s = t.def;
373
326
  return { kind: "static", def: this.wireOnClick(s, n, r, o) };
374
327
  }
375
- countSubmitButtons(t) {
376
- let n = 0;
377
- for (const r of t) {
378
- if (r.type !== "ITEMS") continue;
379
- const o = Y(r.itemType);
380
- for (const s of r.items) {
381
- const i = o.getChildren?.(s);
382
- if (i && (n += this.countSubmitButtons(i)), r.itemType === Q.ACTIONS) {
383
- if (typeof s == "function") continue;
384
- const a = s;
385
- (a.uid === "#submit" || a.onClick === "submit") && n++;
386
- }
387
- }
388
- }
389
- return n;
390
- }
391
328
  wireOnClick(t, n, r, o) {
392
329
  const s = t.uid === "#submit" || t.onClick === "submit", i = s ? "#submit" : o.next(), a = s ? "submit" : i, u = t.onClick, p = (typeof u == "function" ? u : void 0) ?? (s ? r.onSubmit : void 0);
393
330
  if (p) {
@@ -420,7 +357,7 @@ class Qt {
420
357
  const o = { ...t.on || {} };
421
358
  let s = !1;
422
359
  const i = { ...t };
423
- for (const a of Ht) {
360
+ for (const a of Kt) {
424
361
  const u = t[a];
425
362
  if (u == null) continue;
426
363
  const c = nt[a];
@@ -433,18 +370,18 @@ class Qt {
433
370
  return s && (i.on = o), i;
434
371
  }
435
372
  }
436
- const ee = new Qt(), en = {
373
+ const ge = new qt(), Xt = {
437
374
  input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
438
375
  action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
439
376
  layout: /* @__PURE__ */ new Set(["size"]),
440
377
  display: /* @__PURE__ */ new Set([])
441
- }, Oe = {
378
+ }, Ae = {
442
379
  onChange: "change",
443
380
  onLoad: "load",
444
381
  onFilter: "filter",
445
382
  onClick: "click"
446
383
  };
447
- class tn {
384
+ class Ht {
448
385
  /**
449
386
  * Extracts `states` from a merge result, combining with state-targeted
450
387
  * GSL leaf selectors from `_gslStates`.
@@ -494,11 +431,11 @@ class tn {
494
431
  const { stateOverrides: s } = n;
495
432
  if (Object.keys(s).length === 0)
496
433
  return t;
497
- const i = { ...t }, a = t.kind, u = en[a] || /* @__PURE__ */ new Set();
434
+ const i = { ...t }, a = t.kind, u = Xt[a] || /* @__PURE__ */ new Set();
498
435
  t.props && (i.props = { ...t.props }), t.on && (i.on = { ...t.on });
499
436
  for (const [c, p] of Object.entries(s))
500
437
  for (const [d, m] of Object.entries(p))
501
- d === "visible" ? this.applyVisibility(i, c, m) : Oe[d] ? this.applyStateEvent(i, c, d, m, r, o) : u.has(d) ? i[`${d}.${c}`] = m : (i.props || (i.props = {}), i.props[`${d}.${c}`] = m);
438
+ d === "visible" ? this.applyVisibility(i, c, m) : Ae[d] ? this.applyStateEvent(i, c, d, m, r, o) : u.has(d) ? i[`${d}.${c}`] = m : (i.props || (i.props = {}), i.props[`${d}.${c}`] = m);
502
439
  return i;
503
440
  }
504
441
  hasStateData(t) {
@@ -516,24 +453,24 @@ class tn {
516
453
  }
517
454
  // ── State-suffixed event helpers ──
518
455
  applyStateEvent(t, n, r, o, s, i) {
519
- const a = Oe[r];
456
+ const a = Ae[r];
520
457
  if (t.on || (t.on = {}), typeof o == "function") {
521
458
  const u = i.next();
522
459
  s.set(u, o), t.on[`${a}.${n}`] = u;
523
460
  } else typeof o == "string" && (t.on[`${a}.${n}`] = o);
524
461
  }
525
462
  }
526
- const nn = new tn();
527
- function rn() {
463
+ const Qt = new Ht();
464
+ function en() {
528
465
  let e = 0;
529
466
  return { next: () => `event_${e++}` };
530
467
  }
531
- class on {
468
+ class tn {
532
469
  constructor(t, n, r, o, s) {
533
470
  this.resolver = t, this.merger = n, this.mapper = r, this.eventWiring = o, this.stateExpansion = s;
534
471
  }
535
472
  walkAndMap(t, n, r) {
536
- const o = /* @__PURE__ */ new Map(), s = rn(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
473
+ const o = /* @__PURE__ */ new Map(), s = en(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
537
474
  return { widgets: this.walkItems(
538
475
  t,
539
476
  n,
@@ -562,23 +499,23 @@ class on {
562
499
  });
563
500
  }
564
501
  processItem(t, n, r, o, s, i, a, u, c) {
565
- const p = n, d = Y(n), m = d.parseEntry(t), f = this.buildBaseDef(m), C = this.buildDecoratorForMatching(f, p, r), k = this.resolver.resolve(C, o), Te = k.leafSelectors.filter((T) => T.targetState != null), ze = {
566
- leafSelectors: k.leafSelectors.filter((T) => T.targetState == null),
567
- sensibleDefaults: k.sensibleDefaults
502
+ const p = n, d = H(n), m = d.parseEntry(t), f = this.buildBaseDef(m), C = this.buildDecoratorForMatching(f, p, r), S = this.resolver.resolve(C, o), Se = S.leafSelectors.filter((T) => T.targetState != null), Te = {
503
+ leafSelectors: S.leafSelectors.filter((T) => T.targetState == null),
504
+ sensibleDefaults: S.sensibleDefaults
568
505
  };
569
- let M = this.merger.merge(f, p, ze);
570
- d.afterMerge && (M = d.afterMerge(M, {
506
+ let L = this.merger.merge(f, p, Te);
507
+ d.afterMerge && (L = d.afterMerge(L, {
571
508
  eventRegistry: s,
572
509
  formConfig: i,
573
510
  eventIdGenerator: a
574
- })), M = this.eventWiring.wireInputLayoutEvents(
575
- M,
511
+ })), L = this.eventWiring.wireInputLayoutEvents(
512
+ L,
576
513
  s,
577
514
  a
578
515
  );
579
- const { cleanedResult: Ae, stateData: le } = this.stateExpansion.extractFromMergeResult(
580
- M,
581
- Te
516
+ const { cleanedResult: ze, stateData: ue } = this.stateExpansion.extractFromMergeResult(
517
+ L,
518
+ Se
582
519
  );
583
520
  let I;
584
521
  if (d.buildCustomWidget) {
@@ -591,21 +528,21 @@ class on {
591
528
  u,
592
529
  c
593
530
  );
594
- I = this.buildCustomWidget(d, Ae, T);
531
+ I = this.buildCustomWidget(d, ze, T);
595
532
  } else
596
- I = this.mapper.mapToWidget(Ae, p);
533
+ I = this.mapper.mapToWidget(ze, p);
597
534
  if (typeof I != "function") {
598
535
  const T = I;
599
536
  T.uid || (T.path && !c.has(T.path) ? (T.uid = T.path, c.add(T.path)) : T.uid = `dx_${u.value++}`);
600
537
  }
601
- if (this.stateExpansion.hasStateData(le))
538
+ if (this.stateExpansion.hasStateData(ue))
602
539
  if (typeof I == "function") {
603
540
  const T = I;
604
541
  I = ((Et) => {
605
542
  const $t = T(Et);
606
543
  return this.stateExpansion.applyToWidget(
607
544
  $t,
608
- le,
545
+ ue,
609
546
  s,
610
547
  a
611
548
  );
@@ -613,7 +550,7 @@ class on {
613
550
  } else
614
551
  I = this.stateExpansion.applyToWidget(
615
552
  I,
616
- le,
553
+ ue,
617
554
  s,
618
555
  a
619
556
  );
@@ -671,29 +608,29 @@ function v(e) {
671
608
  onFilter: m,
672
609
  on: f,
673
610
  states: C,
674
- include: k,
675
- exclude: Te,
676
- validator: ze,
677
- ...M
611
+ include: S,
612
+ exclude: Se,
613
+ validator: Te,
614
+ ...L
678
615
  } = e;
679
- return M;
616
+ return L;
680
617
  }
681
618
  function O(e, t) {
682
619
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
683
620
  }
684
- function sn(e) {
621
+ function nn(e) {
685
622
  switch (e.type) {
686
623
  case "text":
687
- return un(e);
624
+ return on(e);
688
625
  case "number":
689
- return cn(e);
626
+ return sn(e);
690
627
  case "boolean":
691
- return an(e);
628
+ return rn(e);
692
629
  default:
693
630
  throw new Error(`Unsupported field type "${e.type}"`);
694
631
  }
695
632
  }
696
- function an(e) {
633
+ function rn(e) {
697
634
  const t = v(e);
698
635
  return {
699
636
  uid: e.uid ?? "",
@@ -707,7 +644,7 @@ function an(e) {
707
644
  props: t
708
645
  };
709
646
  }
710
- function un(e) {
647
+ function on(e) {
711
648
  const t = v(e);
712
649
  return {
713
650
  uid: e.uid ?? "",
@@ -724,7 +661,7 @@ function un(e) {
724
661
  validator: O(e.validator, "string")
725
662
  };
726
663
  }
727
- function cn(e) {
664
+ function sn(e) {
728
665
  const t = v(e);
729
666
  return {
730
667
  uid: e.uid ?? "",
@@ -751,13 +688,13 @@ y({
751
688
  },
752
689
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
753
690
  apply: (e, t) => {
754
- let n = w(e, t);
691
+ let n = k(e, t);
755
692
  return n = N(n, t), n;
756
693
  }
757
694
  },
758
- mapToWidget: sn
695
+ mapToWidget: nn
759
696
  });
760
- function ln(e) {
697
+ function an(e) {
761
698
  const {
762
699
  uid: t,
763
700
  label: n,
@@ -786,15 +723,15 @@ function ln(e) {
786
723
  y({
787
724
  itemType: "ACTIONS",
788
725
  entryShape: "bare",
789
- mapToWidget: ln,
790
- afterMerge: (e, t) => ee.extractOnClickFromMergeResult(
726
+ mapToWidget: an,
727
+ afterMerge: (e, t) => ge.extractOnClickFromMergeResult(
791
728
  e,
792
729
  t.eventRegistry,
793
730
  t.formConfig,
794
731
  t.eventIdGenerator
795
732
  )
796
733
  });
797
- function pn(e) {
734
+ function un(e) {
798
735
  const {
799
736
  uid: t,
800
737
  widgetName: n,
@@ -816,7 +753,7 @@ function pn(e) {
816
753
  children: []
817
754
  };
818
755
  }
819
- function dn(e, t) {
756
+ function cn(e, t) {
820
757
  const n = t.walkChildren(t.children ?? []);
821
758
  if (e.kind === "static")
822
759
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
@@ -826,17 +763,17 @@ function dn(e, t) {
826
763
  return { ...t.mapStaticDef(s, "LAYOUTS"), children: n };
827
764
  });
828
765
  }
829
- function mn(e) {
766
+ function ln(e) {
830
767
  return e.children;
831
768
  }
832
769
  y({
833
770
  itemType: "LAYOUTS",
834
771
  entryShape: "compound",
835
- mapToWidget: pn,
836
- buildCustomWidget: dn,
837
- getChildren: mn
772
+ mapToWidget: un,
773
+ buildCustomWidget: cn,
774
+ getChildren: ln
838
775
  });
839
- function fn(e) {
776
+ function pn(e) {
840
777
  return {
841
778
  uid: "",
842
779
  kind: "display",
@@ -844,7 +781,7 @@ function fn(e) {
844
781
  props: { render: e.render }
845
782
  };
846
783
  }
847
- function hn(e, t) {
784
+ function dn(e, t) {
848
785
  if (e.kind === "static") {
849
786
  const r = e.def;
850
787
  return ((o) => ({
@@ -872,8 +809,8 @@ function hn(e, t) {
872
809
  y({
873
810
  itemType: "DISPLAYS",
874
811
  entryShape: "bare",
875
- mapToWidget: fn,
876
- buildCustomWidget: hn
812
+ mapToWidget: pn,
813
+ buildCustomWidget: dn
877
814
  });
878
815
  y({
879
816
  itemType: "CALENDAR",
@@ -881,7 +818,7 @@ y({
881
818
  sensibleDefaults: {
882
819
  base: { suppressAutomaticLabels: !1 },
883
820
  fields: ["suppressAutomaticLabels"],
884
- apply: (e, t) => w(e, t)
821
+ apply: (e, t) => k(e, t)
885
822
  },
886
823
  mapToWidget: (e) => ({
887
824
  uid: e.uid ?? "",
@@ -901,7 +838,7 @@ y({
901
838
  sensibleDefaults: {
902
839
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
903
840
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
904
- apply: (e, t) => N(w(e, t), t)
841
+ apply: (e, t) => N(k(e, t), t)
905
842
  },
906
843
  mapToWidget: (e) => ({
907
844
  uid: e.uid ?? "",
@@ -921,7 +858,7 @@ y({
921
858
  sensibleDefaults: {
922
859
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
923
860
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
924
- apply: (e, t) => N(w(e, t), t)
861
+ apply: (e, t) => N(k(e, t), t)
925
862
  },
926
863
  mapToWidget: (e) => ({
927
864
  uid: e.uid ?? "",
@@ -941,7 +878,7 @@ y({
941
878
  sensibleDefaults: {
942
879
  base: { suppressAutomaticLabels: !1 },
943
880
  fields: ["suppressAutomaticLabels"],
944
- apply: (e, t) => w(e, t)
881
+ apply: (e, t) => k(e, t)
945
882
  },
946
883
  mapToWidget: (e) => ({
947
884
  uid: e.uid ?? "",
@@ -961,7 +898,7 @@ y({
961
898
  sensibleDefaults: {
962
899
  base: { suppressAutomaticLabels: !1 },
963
900
  fields: ["suppressAutomaticLabels"],
964
- apply: (e, t) => w(e, t)
901
+ apply: (e, t) => k(e, t)
965
902
  },
966
903
  mapToWidget: (e) => ({
967
904
  uid: e.uid ?? "",
@@ -981,7 +918,7 @@ y({
981
918
  sensibleDefaults: {
982
919
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
983
920
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
984
- apply: (e, t) => N(w(e, t), t)
921
+ apply: (e, t) => N(k(e, t), t)
985
922
  },
986
923
  mapToWidget: (e) => ({
987
924
  uid: e.uid ?? "",
@@ -1001,7 +938,7 @@ y({
1001
938
  sensibleDefaults: {
1002
939
  base: { suppressAutomaticLabels: !1 },
1003
940
  fields: ["suppressAutomaticLabels"],
1004
- apply: (e, t) => w(e, t)
941
+ apply: (e, t) => k(e, t)
1005
942
  },
1006
943
  mapToWidget: (e) => ({
1007
944
  uid: e.uid ?? "",
@@ -1021,7 +958,7 @@ y({
1021
958
  sensibleDefaults: {
1022
959
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
1023
960
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1024
- apply: (e, t) => N(w(e, t), t)
961
+ apply: (e, t) => N(k(e, t), t)
1025
962
  },
1026
963
  mapToWidget: (e) => ({
1027
964
  uid: e.uid ?? "",
@@ -1041,7 +978,7 @@ y({
1041
978
  sensibleDefaults: {
1042
979
  base: { suppressAutomaticLabels: !1 },
1043
980
  fields: ["suppressAutomaticLabels"],
1044
- apply: (e, t) => w(e, t)
981
+ apply: (e, t) => k(e, t)
1045
982
  },
1046
983
  mapToWidget: (e) => ({
1047
984
  uid: e.uid ?? "",
@@ -1055,7 +992,7 @@ y({
1055
992
  props: v(e)
1056
993
  })
1057
994
  });
1058
- function gn(e) {
995
+ function mn(e) {
1059
996
  return {
1060
997
  uid: e.uid ?? "",
1061
998
  kind: "layout",
@@ -1068,7 +1005,7 @@ function gn(e) {
1068
1005
  children: []
1069
1006
  };
1070
1007
  }
1071
- function yn(e, t) {
1008
+ function fn(e, t) {
1072
1009
  const n = t.walkChildren(t.children ?? []);
1073
1010
  if (e.kind === "static")
1074
1011
  return { ...t.mapStaticDef(e.def, "TABS"), children: n };
@@ -1078,15 +1015,15 @@ function yn(e, t) {
1078
1015
  return { ...t.mapStaticDef(s, "TABS"), children: n };
1079
1016
  });
1080
1017
  }
1081
- function bn(e) {
1018
+ function hn(e) {
1082
1019
  return e.children;
1083
1020
  }
1084
1021
  y({
1085
1022
  itemType: "TABS",
1086
1023
  entryShape: "compound",
1087
- mapToWidget: gn,
1088
- buildCustomWidget: yn,
1089
- getChildren: bn
1024
+ mapToWidget: mn,
1025
+ buildCustomWidget: fn,
1026
+ getChildren: hn
1090
1027
  });
1091
1028
  y({
1092
1029
  itemType: "LIST",
@@ -1094,7 +1031,7 @@ y({
1094
1031
  sensibleDefaults: {
1095
1032
  base: { suppressAutomaticLabels: !1 },
1096
1033
  fields: ["suppressAutomaticLabels"],
1097
- apply: (e, t) => w(e, t)
1034
+ apply: (e, t) => k(e, t)
1098
1035
  },
1099
1036
  mapToWidget: (e) => ({
1100
1037
  uid: e.uid ?? "",
@@ -1130,7 +1067,7 @@ y({
1130
1067
  suppressAutomaticPlaceholders: !1
1131
1068
  },
1132
1069
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1133
- apply: (e, t) => N(w(e, t), t)
1070
+ apply: (e, t) => N(k(e, t), t)
1134
1071
  },
1135
1072
  mapToWidget: (e) => ({
1136
1073
  uid: e.uid ?? "",
@@ -1153,7 +1090,7 @@ y({
1153
1090
  suppressAutomaticPlaceholders: !1
1154
1091
  },
1155
1092
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1156
- apply: (e, t) => N(w(e, t), t)
1093
+ apply: (e, t) => N(k(e, t), t)
1157
1094
  },
1158
1095
  mapToWidget: (e) => ({
1159
1096
  uid: e.uid ?? "",
@@ -1167,7 +1104,7 @@ y({
1167
1104
  props: v(e)
1168
1105
  })
1169
1106
  });
1170
- function _n(e) {
1107
+ function gn(e) {
1171
1108
  return {
1172
1109
  uid: e.uid ?? "",
1173
1110
  kind: "layout",
@@ -1181,7 +1118,7 @@ function _n(e) {
1181
1118
  children: []
1182
1119
  };
1183
1120
  }
1184
- function vn(e, t) {
1121
+ function yn(e, t) {
1185
1122
  const n = t.walkChildren(t.children ?? []);
1186
1123
  if (e.kind === "static")
1187
1124
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
@@ -1191,21 +1128,21 @@ function vn(e, t) {
1191
1128
  return { ...t.mapStaticDef(s, "ACCORDION"), children: n };
1192
1129
  });
1193
1130
  }
1194
- function Sn(e) {
1131
+ function bn(e) {
1195
1132
  return e.children;
1196
1133
  }
1197
1134
  y({
1198
1135
  itemType: "ACCORDION",
1199
1136
  entryShape: "compound",
1200
- mapToWidget: _n,
1201
- buildCustomWidget: vn,
1202
- getChildren: Sn
1137
+ mapToWidget: gn,
1138
+ buildCustomWidget: yn,
1139
+ getChildren: bn
1203
1140
  });
1204
- function wn(e) {
1141
+ function _n(e) {
1205
1142
  const t = {};
1206
1143
  return e.addLabel != null && (t.addLabel = e.addLabel), e.removeLabel != null && (t.removeLabel = e.removeLabel), e.limit != null && (t.limit = e.limit), e.title != null && (t.title = e.title), e.addButtonIcon != null && (t.addButtonIcon = e.addButtonIcon), e.removeButtonIcon != null && (t.removeButtonIcon = e.removeButtonIcon), t;
1207
1144
  }
1208
- function kn(e) {
1145
+ function vn(e) {
1209
1146
  return {
1210
1147
  uid: e.uid ?? "",
1211
1148
  kind: "input",
@@ -1216,23 +1153,23 @@ function kn(e) {
1216
1153
  ...e.readonly != null ? { readonly: e.readonly } : {},
1217
1154
  ...e.validator != null ? { validator: O(e.validator, "array") } : {},
1218
1155
  props: {
1219
- ...wn(e),
1156
+ ..._n(e),
1220
1157
  template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
1221
1158
  }
1222
1159
  };
1223
1160
  }
1224
- function de(e, t) {
1161
+ function le(e, t) {
1225
1162
  for (const n of e) {
1226
1163
  if (typeof n == "function") continue;
1227
1164
  const r = n;
1228
- typeof r.path == "string" && r.path && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && de(r.children, t);
1165
+ typeof r.path == "string" && r.path && (r.path = t + r.path), "children" in r && Array.isArray(r.children) && le(r.children, t);
1229
1166
  const o = r.props;
1230
- o?.template?.children && Array.isArray(o.template.children) && de(o.template.children, t);
1167
+ o?.template?.children && Array.isArray(o.template.children) && le(o.template.children, t);
1231
1168
  }
1232
1169
  }
1233
- function Tn(e, t) {
1170
+ function wn(e, t) {
1234
1171
  const n = t.walkChildren(t.children ?? []), r = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
1235
- r && de(n, r + ".items.");
1172
+ r && le(n, r + ".items.");
1236
1173
  const o = {
1237
1174
  kind: "layout",
1238
1175
  type: "flex",
@@ -1256,32 +1193,32 @@ function Tn(e, t) {
1256
1193
  };
1257
1194
  });
1258
1195
  }
1259
- function zn(e) {
1196
+ function kn(e) {
1260
1197
  return {
1261
1198
  baseDef: e.def,
1262
1199
  path: e.key,
1263
1200
  children: e.children
1264
1201
  };
1265
1202
  }
1266
- function An(e) {
1203
+ function Sn(e) {
1267
1204
  return e.children;
1268
1205
  }
1269
- const On = {
1270
- parseEntry: zn,
1206
+ const Tn = {
1207
+ parseEntry: kn,
1271
1208
  rollUpSensibleDefaults: () => ({}),
1272
1209
  applySensibleDefaults: (e) => e,
1273
- mapToWidget: kn,
1274
- buildCustomWidget: Tn,
1275
- getChildren: An
1210
+ mapToWidget: vn,
1211
+ buildCustomWidget: wn,
1212
+ getChildren: Sn
1276
1213
  };
1277
- Qe("REPEATER", On);
1214
+ Qe("REPEATER", Tn);
1278
1215
  y({
1279
1216
  itemType: "MARKDOWN",
1280
1217
  entryShape: "keyed",
1281
1218
  sensibleDefaults: {
1282
1219
  base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
1283
1220
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1284
- apply: (e, t) => N(w(e, t), t)
1221
+ apply: (e, t) => N(k(e, t), t)
1285
1222
  },
1286
1223
  mapToWidget: (e) => ({
1287
1224
  uid: e.uid ?? "",
@@ -1301,7 +1238,7 @@ y({
1301
1238
  sensibleDefaults: {
1302
1239
  base: { suppressAutomaticLabels: !1 },
1303
1240
  fields: ["suppressAutomaticLabels"],
1304
- apply: (e, t) => w(e, t)
1241
+ apply: (e, t) => k(e, t)
1305
1242
  },
1306
1243
  mapToWidget: (e) => ({
1307
1244
  uid: e.uid ?? "",
@@ -1324,7 +1261,7 @@ y({
1324
1261
  suppressAutomaticPlaceholders: !1
1325
1262
  },
1326
1263
  fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
1327
- apply: (e, t) => N(w(e, t), t)
1264
+ apply: (e, t) => N(k(e, t), t)
1328
1265
  },
1329
1266
  mapToWidget: (e) => ({
1330
1267
  uid: e.uid ?? "",
@@ -1356,7 +1293,7 @@ y({
1356
1293
  suppressAutomaticLabels: !1
1357
1294
  },
1358
1295
  fields: ["suppressAutomaticLabels"],
1359
- apply: (e, t) => w(e, t)
1296
+ apply: (e, t) => k(e, t)
1360
1297
  },
1361
1298
  mapToWidget: (e) => ({
1362
1299
  uid: e.uid ?? "",
@@ -1401,14 +1338,14 @@ y({
1401
1338
  props: { ...f, ...C }
1402
1339
  };
1403
1340
  },
1404
- afterMerge: (e, t) => ee.extractOnClickFromMergeResult(
1341
+ afterMerge: (e, t) => ge.extractOnClickFromMergeResult(
1405
1342
  e,
1406
1343
  t.eventRegistry,
1407
1344
  t.formConfig,
1408
1345
  t.eventIdGenerator
1409
1346
  )
1410
1347
  });
1411
- function En(e) {
1348
+ function zn(e) {
1412
1349
  return {
1413
1350
  uid: e.uid ?? "",
1414
1351
  kind: "layout",
@@ -1417,7 +1354,7 @@ function En(e) {
1417
1354
  children: []
1418
1355
  };
1419
1356
  }
1420
- function $n(e, t) {
1357
+ function An(e, t) {
1421
1358
  const n = t.walkChildren(t.children ?? []);
1422
1359
  if (e.kind === "static")
1423
1360
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
@@ -1427,19 +1364,19 @@ function $n(e, t) {
1427
1364
  return { ...t.mapStaticDef(s, "CUSTOM_LAYOUT"), children: n };
1428
1365
  });
1429
1366
  }
1430
- function Pn(e) {
1367
+ function On(e) {
1431
1368
  return e.children;
1432
1369
  }
1433
1370
  y({
1434
1371
  itemType: "CUSTOM_LAYOUT",
1435
1372
  entryShape: "compound",
1436
- mapToWidget: En,
1437
- buildCustomWidget: $n,
1438
- getChildren: Pn
1373
+ mapToWidget: zn,
1374
+ buildCustomWidget: An,
1375
+ getChildren: On
1439
1376
  });
1440
- class Zn {
1441
- constructor(t, n, r) {
1442
- this.selectorNormalizer = t, this.eventWiring = n, this.walker = r;
1377
+ class En {
1378
+ constructor(t, n) {
1379
+ this.selectorNormalizer = t, this.walker = n;
1443
1380
  }
1444
1381
  processDxFacade(t, n = [], r) {
1445
1382
  const { defs: o, gslSelectors: s, formConfig: i } = this.prepareForm(
@@ -1460,29 +1397,23 @@ class Zn {
1460
1397
  * 1. Normalize definitions — ensure a flat array; convert bare functions to display widgets.
1461
1398
  * 2. Normalize selectors — convert mixed leaf/aggregated selectors into a uniform
1462
1399
  * aggregated shape, and extract form-level config (see {@link FormConfig}).
1463
- * 3. Auto-submit — unless suppressed, append a submit button if none was declared.
1464
- * Throws if more than one submit button is found.
1465
- * 4. Auto-stack — unless suppressed, wrap all definitions in a synthetic root
1400
+ * 3. Auto-stack — unless suppressed, wrap all definitions in a synthetic root
1466
1401
  * flex column layout so the form renders as a single vertical container.
1467
1402
  */
1468
1403
  prepareForm(t, n, r) {
1469
1404
  const s = (Array.isArray(t) ? [...t] : [t]).map(
1470
- (c) => typeof c == "function" ? Rt(c) : c
1405
+ (u) => typeof u == "function" ? Dt(u) : u
1471
1406
  ), i = this.selectorNormalizer.normalizeSelectors(n), a = {
1472
1407
  ...this.selectorNormalizer.extractFormConfig(),
1473
1408
  ...r
1474
- }, u = this.eventWiring.countSubmitButtons(s);
1475
- if (u > 1)
1476
- throw new Error(
1477
- `Only one submit button is allowed per form, but ${u} were found. A button is a submit button if it has uid: '#submit' or onClick: 'submit'.`
1478
- );
1479
- if (!a.suppressAutomaticSubmit && u === 0 && s.push(xt()), !a.suppressAutomaticStack) {
1480
- const c = {
1409
+ };
1410
+ if (!a.suppressAutomaticStack) {
1411
+ const u = {
1481
1412
  def: { uid: "#root", direction: "column", widgetName: "flex" },
1482
1413
  children: s
1483
1414
  };
1484
1415
  return {
1485
- defs: [{ type: "ITEMS", itemType: Q.LAYOUTS, items: [c], tags: [] }],
1416
+ defs: [{ type: "ITEMS", itemType: He.LAYOUTS, items: [u], tags: [] }],
1486
1417
  gslSelectors: i,
1487
1418
  formConfig: a
1488
1419
  };
@@ -1528,37 +1459,37 @@ class Zn {
1528
1459
  }), r.dependencies && (o.dependencies = r.dependencies), r.widgetLoaders && (o.widgetLoaders = r.widgetLoaders), r.validateOn && (o.validateOn = r.validateOn), r.itemRenderers && (o.itemRenderers = r.itemRenderers), o;
1529
1460
  }
1530
1461
  }
1531
- const Cn = new on(
1532
- Jt,
1533
- Yt,
1534
- Kt,
1535
- ee,
1536
- nn
1537
- ), In = new Zn(Xt, ee, Cn);
1538
- function Nn(e) {
1539
- return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Ee) : Ee(e);
1462
+ const $n = new tn(
1463
+ jt,
1464
+ Vt,
1465
+ Bt,
1466
+ ge,
1467
+ Qt
1468
+ ), Pn = new En(Gt, $n);
1469
+ function Zn(e) {
1470
+ return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Oe) : Oe(e);
1540
1471
  }
1541
- function Ee(e) {
1472
+ function Oe(e) {
1542
1473
  if (typeof e == "function") return !0;
1543
1474
  if (e === null || typeof e != "object") return !1;
1544
1475
  const t = e;
1545
1476
  return t.type === "ITEMS" && typeof t.itemType == "string";
1546
1477
  }
1547
- const $e = Object.freeze({}), Mn = Object.freeze({}), Pe = /* @__PURE__ */ new WeakMap();
1548
- function pe(e, t) {
1478
+ const Ee = Object.freeze({}), Cn = Object.freeze({}), $e = /* @__PURE__ */ new WeakMap();
1479
+ function ce(e, t) {
1549
1480
  return e == null ? t : typeof e == "object" ? e : {};
1550
1481
  }
1551
- function Ln(e, t, n) {
1552
- if (!Nn(e))
1482
+ function In(e, t, n) {
1483
+ if (!Zn(e))
1553
1484
  return { formDef: e };
1554
- const r = pe(e, $e), o = pe(t, $e), s = pe(n, Mn);
1555
- let i = Pe.get(r);
1556
- i || (i = /* @__PURE__ */ new WeakMap(), Pe.set(r, i));
1485
+ const r = ce(e, Ee), o = ce(t, Ee), s = ce(n, Cn);
1486
+ let i = $e.get(r);
1487
+ i || (i = /* @__PURE__ */ new WeakMap(), $e.set(r, i));
1557
1488
  let a = i.get(o);
1558
1489
  a || (a = /* @__PURE__ */ new WeakMap(), i.set(o, a));
1559
1490
  const u = a.get(s);
1560
1491
  if (u) return u;
1561
- const c = In.processDxFacade(
1492
+ const c = Pn.processDxFacade(
1562
1493
  e,
1563
1494
  t,
1564
1495
  n
@@ -1616,27 +1547,27 @@ class rt extends Error {
1616
1547
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
1617
1548
  }
1618
1549
  }
1619
- const Dn = {};
1620
- function L(e) {
1621
- return Dn;
1550
+ const Nn = {};
1551
+ function M(e) {
1552
+ return Nn;
1622
1553
  }
1623
- function me(e, t) {
1554
+ function pe(e, t) {
1624
1555
  return typeof t == "bigint" ? t.toString() : t;
1625
1556
  }
1626
- function be(e) {
1557
+ function ye(e) {
1627
1558
  return e == null;
1628
1559
  }
1629
- function _e(e) {
1560
+ function be(e) {
1630
1561
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
1631
1562
  return e.slice(t, n);
1632
1563
  }
1633
- const Ze = Symbol("evaluating");
1564
+ const Pe = Symbol("evaluating");
1634
1565
  function g(e, t, n) {
1635
1566
  let r;
1636
1567
  Object.defineProperty(e, t, {
1637
1568
  get() {
1638
- if (r !== Ze)
1639
- return r === void 0 && (r = Ze, r = n()), r;
1569
+ if (r !== Pe)
1570
+ return r === void 0 && (r = Pe, r = n()), r;
1640
1571
  },
1641
1572
  set(o) {
1642
1573
  Object.defineProperty(e, t, {
@@ -1647,7 +1578,7 @@ function g(e, t, n) {
1647
1578
  configurable: !0
1648
1579
  });
1649
1580
  }
1650
- function Rn(...e) {
1581
+ function Ln(...e) {
1651
1582
  const t = {};
1652
1583
  for (const n of e) {
1653
1584
  const r = Object.getOwnPropertyDescriptors(n);
@@ -1655,27 +1586,27 @@ function Rn(...e) {
1655
1586
  }
1656
1587
  return Object.defineProperties({}, t);
1657
1588
  }
1658
- function Fn(e) {
1589
+ function Mn(e) {
1659
1590
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
1660
1591
  }
1661
1592
  const ot = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
1662
1593
  };
1663
- function Ce(e) {
1594
+ function Ze(e) {
1664
1595
  return typeof e == "object" && e !== null && !Array.isArray(e);
1665
1596
  }
1666
- function fe(e) {
1667
- if (Ce(e) === !1)
1597
+ function de(e) {
1598
+ if (Ze(e) === !1)
1668
1599
  return !1;
1669
1600
  const t = e.constructor;
1670
1601
  if (t === void 0 || typeof t != "function")
1671
1602
  return !0;
1672
1603
  const n = t.prototype;
1673
- return !(Ce(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1604
+ return !(Ze(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
1674
1605
  }
1675
1606
  function st(e) {
1676
- return fe(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
1607
+ return de(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
1677
1608
  }
1678
- function ve(e) {
1609
+ function _e(e) {
1679
1610
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1680
1611
  }
1681
1612
  function it(e, t, n) {
@@ -1695,7 +1626,7 @@ function h(e) {
1695
1626
  }
1696
1627
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
1697
1628
  }
1698
- const jn = {
1629
+ const Dn = {
1699
1630
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
1700
1631
  int32: [-2147483648, 2147483647],
1701
1632
  uint32: [0, 4294967295],
@@ -1710,24 +1641,24 @@ function F(e, t = 0) {
1710
1641
  return !0;
1711
1642
  return !1;
1712
1643
  }
1713
- function Wn(e, t) {
1644
+ function Rn(e, t) {
1714
1645
  return t.map((n) => {
1715
1646
  var r;
1716
1647
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
1717
1648
  });
1718
1649
  }
1719
- function K(e) {
1650
+ function G(e) {
1720
1651
  return typeof e == "string" ? e : e?.message;
1721
1652
  }
1722
1653
  function D(e, t, n) {
1723
1654
  const r = { ...e, path: e.path ?? [] };
1724
1655
  if (!e.message) {
1725
- const o = K(e.inst?._zod.def?.error?.(e)) ?? K(t?.error?.(e)) ?? K(n.customError?.(e)) ?? K(n.localeError?.(e)) ?? "Invalid input";
1656
+ const o = G(e.inst?._zod.def?.error?.(e)) ?? G(t?.error?.(e)) ?? G(n.customError?.(e)) ?? G(n.localeError?.(e)) ?? "Invalid input";
1726
1657
  r.message = o;
1727
1658
  }
1728
1659
  return delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
1729
1660
  }
1730
- function Se(e) {
1661
+ function ve(e) {
1731
1662
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
1732
1663
  }
1733
1664
  function J(...e) {
@@ -1746,18 +1677,18 @@ const at = (e, t) => {
1746
1677
  }), Object.defineProperty(e, "issues", {
1747
1678
  value: t,
1748
1679
  enumerable: !1
1749
- }), e.message = JSON.stringify(t, me, 2), Object.defineProperty(e, "toString", {
1680
+ }), e.message = JSON.stringify(t, pe, 2), Object.defineProperty(e, "toString", {
1750
1681
  value: () => e.message,
1751
1682
  enumerable: !1
1752
1683
  });
1753
- }, ut = l("$ZodError", at), te = l("$ZodError", at, { Parent: Error });
1754
- function xn(e, t = (n) => n.message) {
1684
+ }, ut = l("$ZodError", at), Q = l("$ZodError", at, { Parent: Error });
1685
+ function Fn(e, t = (n) => n.message) {
1755
1686
  const n = {}, r = [];
1756
1687
  for (const o of e.issues)
1757
1688
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
1758
1689
  return { formErrors: r, fieldErrors: n };
1759
1690
  }
1760
- function Un(e, t = (n) => n.message) {
1691
+ function jn(e, t = (n) => n.message) {
1761
1692
  const n = { _errors: [] }, r = (o) => {
1762
1693
  for (const s of o.issues)
1763
1694
  if (s.code === "invalid_union" && s.errors.length)
@@ -1778,75 +1709,75 @@ function Un(e, t = (n) => n.message) {
1778
1709
  };
1779
1710
  return r(e), n;
1780
1711
  }
1781
- const ne = (e) => (t, n, r, o) => {
1712
+ const ee = (e) => (t, n, r, o) => {
1782
1713
  const s = r ? Object.assign(r, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
1783
1714
  if (i instanceof Promise)
1784
1715
  throw new j();
1785
1716
  if (i.issues.length) {
1786
- const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, L())));
1717
+ const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, M())));
1787
1718
  throw ot(a, o?.callee), a;
1788
1719
  }
1789
1720
  return i.value;
1790
- }, Vn = /* @__PURE__ */ ne(te), re = (e) => async (t, n, r, o) => {
1721
+ }, Wn = /* @__PURE__ */ ee(Q), te = (e) => async (t, n, r, o) => {
1791
1722
  const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1792
1723
  let i = t._zod.run({ value: n, issues: [] }, s);
1793
1724
  if (i instanceof Promise && (i = await i), i.issues.length) {
1794
- const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, L())));
1725
+ const a = new (o?.Err ?? e)(i.issues.map((u) => D(u, s, M())));
1795
1726
  throw ot(a, o?.callee), a;
1796
1727
  }
1797
1728
  return i.value;
1798
- }, Jn = /* @__PURE__ */ re(te), oe = (e) => (t, n, r) => {
1729
+ }, xn = /* @__PURE__ */ te(Q), ne = (e) => (t, n, r) => {
1799
1730
  const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
1800
1731
  if (s instanceof Promise)
1801
1732
  throw new j();
1802
1733
  return s.issues.length ? {
1803
1734
  success: !1,
1804
- error: new (e ?? ut)(s.issues.map((i) => D(i, o, L())))
1735
+ error: new (e ?? ut)(s.issues.map((i) => D(i, o, M())))
1805
1736
  } : { success: !0, data: s.value };
1806
- }, ct = /* @__PURE__ */ oe(te), se = (e) => async (t, n, r) => {
1737
+ }, ct = /* @__PURE__ */ ne(Q), re = (e) => async (t, n, r) => {
1807
1738
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1808
1739
  let s = t._zod.run({ value: n, issues: [] }, o);
1809
1740
  return s instanceof Promise && (s = await s), s.issues.length ? {
1810
1741
  success: !1,
1811
- error: new e(s.issues.map((i) => D(i, o, L())))
1742
+ error: new e(s.issues.map((i) => D(i, o, M())))
1812
1743
  } : { success: !0, data: s.value };
1813
- }, lt = /* @__PURE__ */ se(te), Bn = (e) => (t, n, r) => {
1744
+ }, lt = /* @__PURE__ */ re(Q), Un = (e) => (t, n, r) => {
1814
1745
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1815
- return ne(e)(t, n, o);
1816
- }, Yn = (e) => (t, n, r) => ne(e)(t, n, r), Gn = (e) => async (t, n, r) => {
1746
+ return ee(e)(t, n, o);
1747
+ }, Vn = (e) => (t, n, r) => ee(e)(t, n, r), Jn = (e) => async (t, n, r) => {
1817
1748
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1818
- return re(e)(t, n, o);
1819
- }, Kn = (e) => async (t, n, r) => re(e)(t, n, r), qn = (e) => (t, n, r) => {
1749
+ return te(e)(t, n, o);
1750
+ }, Bn = (e) => async (t, n, r) => te(e)(t, n, r), Yn = (e) => (t, n, r) => {
1820
1751
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1821
- return oe(e)(t, n, o);
1822
- }, Xn = (e) => (t, n, r) => oe(e)(t, n, r), Hn = (e) => async (t, n, r) => {
1752
+ return ne(e)(t, n, o);
1753
+ }, Gn = (e) => (t, n, r) => ne(e)(t, n, r), Kn = (e) => async (t, n, r) => {
1823
1754
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1824
- return se(e)(t, n, o);
1825
- }, Qn = (e) => async (t, n, r) => se(e)(t, n, r), er = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ie = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, tr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, nr = /^(?:(?: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])$/, rr = /^(([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}|:))$/, or = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, pt = "(?:(?:\\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])))", sr = /* @__PURE__ */ new RegExp(`^${pt}$`);
1755
+ return re(e)(t, n, o);
1756
+ }, qn = (e) => async (t, n, r) => re(e)(t, n, r), Xn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ce = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Hn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Qn = /^(?:(?: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])$/, er = /^(([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}|:))$/, tr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, pt = "(?:(?:\\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])))", nr = /* @__PURE__ */ new RegExp(`^${pt}$`);
1826
1757
  function dt(e) {
1827
1758
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
1828
1759
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
1829
1760
  }
1830
- function ir(e) {
1761
+ function rr(e) {
1831
1762
  return new RegExp(`^${dt(e)}$`);
1832
1763
  }
1833
- function ar(e) {
1764
+ function or(e) {
1834
1765
  const t = dt({ precision: e.precision }), n = ["Z"];
1835
1766
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
1836
1767
  const r = `${t}(?:${n.join("|")})`;
1837
1768
  return new RegExp(`^${pt}T(?:${r})$`);
1838
1769
  }
1839
- const ur = (e) => {
1770
+ const sr = (e) => {
1840
1771
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
1841
1772
  return new RegExp(`^${t}$`);
1842
- }, cr = /^-?\d+$/, lr = /^-?\d+(?:\.\d+)?$/, pr = /^(?:true|false)$/i, dr = /^[^A-Z]*$/, mr = /^[^a-z]*$/, $ = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1773
+ }, ir = /^-?\d+$/, ar = /^-?\d+(?:\.\d+)?$/, ur = /^(?:true|false)$/i, cr = /^[^A-Z]*$/, lr = /^[^a-z]*$/, $ = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1843
1774
  var n;
1844
1775
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
1845
1776
  }), mt = {
1846
1777
  number: "number",
1847
1778
  bigint: "bigint",
1848
1779
  object: "date"
1849
- }, fr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1780
+ }, pr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1850
1781
  $.init(e, t);
1851
1782
  const n = mt[typeof t.value];
1852
1783
  e._zod.onattach.push((r) => {
@@ -1863,7 +1794,7 @@ const ur = (e) => {
1863
1794
  continue: !t.abort
1864
1795
  });
1865
1796
  };
1866
- }), hr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1797
+ }), dr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1867
1798
  $.init(e, t);
1868
1799
  const n = mt[typeof t.value];
1869
1800
  e._zod.onattach.push((r) => {
@@ -1880,12 +1811,12 @@ const ur = (e) => {
1880
1811
  continue: !t.abort
1881
1812
  });
1882
1813
  };
1883
- }), gr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1814
+ }), mr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1884
1815
  $.init(e, t), t.format = t.format || "float64";
1885
- const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = jn[t.format];
1816
+ const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = Dn[t.format];
1886
1817
  e._zod.onattach.push((i) => {
1887
1818
  const a = i._zod.bag;
1888
- a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = cr);
1819
+ a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = ir);
1889
1820
  }), e._zod.check = (i) => {
1890
1821
  const a = i.value;
1891
1822
  if (n) {
@@ -1941,11 +1872,11 @@ const ur = (e) => {
1941
1872
  continue: !t.abort
1942
1873
  });
1943
1874
  };
1944
- }), yr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1875
+ }), fr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1945
1876
  var n;
1946
1877
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1947
1878
  const o = r.value;
1948
- return !be(o) && o.length !== void 0;
1879
+ return !ye(o) && o.length !== void 0;
1949
1880
  }), e._zod.onattach.push((r) => {
1950
1881
  const o = r._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
1951
1882
  t.maximum < o && (r._zod.bag.maximum = t.maximum);
@@ -1953,7 +1884,7 @@ const ur = (e) => {
1953
1884
  const o = r.value;
1954
1885
  if (o.length <= t.maximum)
1955
1886
  return;
1956
- const i = Se(o);
1887
+ const i = ve(o);
1957
1888
  r.issues.push({
1958
1889
  origin: i,
1959
1890
  code: "too_big",
@@ -1964,11 +1895,11 @@ const ur = (e) => {
1964
1895
  continue: !t.abort
1965
1896
  });
1966
1897
  };
1967
- }), br = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1898
+ }), hr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1968
1899
  var n;
1969
1900
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1970
1901
  const o = r.value;
1971
- return !be(o) && o.length !== void 0;
1902
+ return !ye(o) && o.length !== void 0;
1972
1903
  }), e._zod.onattach.push((r) => {
1973
1904
  const o = r._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
1974
1905
  t.minimum > o && (r._zod.bag.minimum = t.minimum);
@@ -1976,7 +1907,7 @@ const ur = (e) => {
1976
1907
  const o = r.value;
1977
1908
  if (o.length >= t.minimum)
1978
1909
  return;
1979
- const i = Se(o);
1910
+ const i = ve(o);
1980
1911
  r.issues.push({
1981
1912
  origin: i,
1982
1913
  code: "too_small",
@@ -1987,11 +1918,11 @@ const ur = (e) => {
1987
1918
  continue: !t.abort
1988
1919
  });
1989
1920
  };
1990
- }), _r = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1921
+ }), gr = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1991
1922
  var n;
1992
1923
  $.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1993
1924
  const o = r.value;
1994
- return !be(o) && o.length !== void 0;
1925
+ return !ye(o) && o.length !== void 0;
1995
1926
  }), e._zod.onattach.push((r) => {
1996
1927
  const o = r._zod.bag;
1997
1928
  o.minimum = t.length, o.maximum = t.length, o.length = t.length;
@@ -1999,7 +1930,7 @@ const ur = (e) => {
1999
1930
  const o = r.value, s = o.length;
2000
1931
  if (s === t.length)
2001
1932
  return;
2002
- const i = Se(o), a = s > t.length;
1933
+ const i = ve(o), a = s > t.length;
2003
1934
  r.issues.push({
2004
1935
  origin: i,
2005
1936
  ...a ? { code: "too_big", maximum: t.length } : { code: "too_small", minimum: t.length },
@@ -2010,7 +1941,7 @@ const ur = (e) => {
2010
1941
  continue: !t.abort
2011
1942
  });
2012
1943
  };
2013
- }), ie = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
1944
+ }), oe = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
2014
1945
  var n, r;
2015
1946
  $.init(e, t), e._zod.onattach.push((o) => {
2016
1947
  const s = o._zod.bag;
@@ -2027,8 +1958,8 @@ const ur = (e) => {
2027
1958
  });
2028
1959
  }) : (r = e._zod).check ?? (r.check = () => {
2029
1960
  });
2030
- }), vr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
2031
- ie.init(e, t), e._zod.check = (n) => {
1961
+ }), yr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1962
+ oe.init(e, t), e._zod.check = (n) => {
2032
1963
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
2033
1964
  origin: "string",
2034
1965
  code: "invalid_format",
@@ -2039,13 +1970,13 @@ const ur = (e) => {
2039
1970
  continue: !t.abort
2040
1971
  });
2041
1972
  };
2042
- }), Sr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2043
- t.pattern ?? (t.pattern = dr), ie.init(e, t);
2044
- }), wr = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2045
- t.pattern ?? (t.pattern = mr), ie.init(e, t);
2046
- }), kr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
1973
+ }), br = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
1974
+ t.pattern ?? (t.pattern = cr), oe.init(e, t);
1975
+ }), _r = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
1976
+ t.pattern ?? (t.pattern = lr), oe.init(e, t);
1977
+ }), vr = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2047
1978
  $.init(e, t);
2048
- const n = ve(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
1979
+ const n = _e(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
2049
1980
  t.pattern = r, e._zod.onattach.push((o) => {
2050
1981
  const s = o._zod.bag;
2051
1982
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(r);
@@ -2060,9 +1991,9 @@ const ur = (e) => {
2060
1991
  continue: !t.abort
2061
1992
  });
2062
1993
  };
2063
- }), Tr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
1994
+ }), wr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2064
1995
  $.init(e, t);
2065
- const n = new RegExp(`^${ve(t.prefix)}.*`);
1996
+ const n = new RegExp(`^${_e(t.prefix)}.*`);
2066
1997
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
2067
1998
  const o = r._zod.bag;
2068
1999
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -2077,9 +2008,9 @@ const ur = (e) => {
2077
2008
  continue: !t.abort
2078
2009
  });
2079
2010
  };
2080
- }), zr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2011
+ }), kr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2081
2012
  $.init(e, t);
2082
- const n = new RegExp(`.*${ve(t.suffix)}$`);
2013
+ const n = new RegExp(`.*${_e(t.suffix)}$`);
2083
2014
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
2084
2015
  const o = r._zod.bag;
2085
2016
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(n);
@@ -2094,17 +2025,17 @@ const ur = (e) => {
2094
2025
  continue: !t.abort
2095
2026
  });
2096
2027
  };
2097
- }), Ar = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2028
+ }), Sr = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2098
2029
  $.init(e, t), e._zod.check = (n) => {
2099
2030
  n.value = t.tx(n.value);
2100
2031
  };
2101
- }), Or = {
2032
+ }), Tr = {
2102
2033
  major: 4,
2103
2034
  minor: 3,
2104
2035
  patch: 6
2105
2036
  }, _ = /* @__PURE__ */ l("$ZodType", (e, t) => {
2106
2037
  var n;
2107
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Or;
2038
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Tr;
2108
2039
  const r = [...e._zod.def.checks ?? []];
2109
2040
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
2110
2041
  for (const o of r)
@@ -2177,7 +2108,7 @@ const ur = (e) => {
2177
2108
  version: 1
2178
2109
  }));
2179
2110
  }), we = /* @__PURE__ */ l("$ZodString", (e, t) => {
2180
- _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ur(e._zod.bag), e._zod.parse = (n, r) => {
2111
+ _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? sr(e._zod.bag), e._zod.parse = (n, r) => {
2181
2112
  if (t.coerce)
2182
2113
  try {
2183
2114
  n.value = String(n.value);
@@ -2191,8 +2122,8 @@ const ur = (e) => {
2191
2122
  }), n;
2192
2123
  };
2193
2124
  }), P = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
2194
- ie.init(e, t), we.init(e, t);
2195
- }), Er = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2125
+ oe.init(e, t), we.init(e, t);
2126
+ }), zr = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2196
2127
  if (t.version) {
2197
2128
  const r = {
2198
2129
  v1: 1,
@@ -2206,13 +2137,13 @@ const ur = (e) => {
2206
2137
  }[t.version];
2207
2138
  if (r === void 0)
2208
2139
  throw new Error(`Invalid UUID version: "${t.version}"`);
2209
- t.pattern ?? (t.pattern = Ie(r));
2140
+ t.pattern ?? (t.pattern = Ce(r));
2210
2141
  } else
2211
- t.pattern ?? (t.pattern = Ie());
2142
+ t.pattern ?? (t.pattern = Ce());
2212
2143
  P.init(e, t);
2213
- }), $r = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2214
- t.pattern ?? (t.pattern = tr), P.init(e, t);
2215
- }), Pr = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2144
+ }), Ar = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2145
+ t.pattern ?? (t.pattern = Hn), P.init(e, t);
2146
+ }), Or = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2216
2147
  P.init(e, t), e._zod.check = (n) => {
2217
2148
  try {
2218
2149
  const r = n.value.trim(), o = new URL(r);
@@ -2244,18 +2175,18 @@ const ur = (e) => {
2244
2175
  });
2245
2176
  }
2246
2177
  };
2247
- }), Zr = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2248
- t.pattern ?? (t.pattern = ar(t)), P.init(e, t);
2249
- }), Cr = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2250
- t.pattern ?? (t.pattern = sr), P.init(e, t);
2251
- }), Ir = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2252
- t.pattern ?? (t.pattern = ir(t)), P.init(e, t);
2253
- }), Nr = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2254
- t.pattern ?? (t.pattern = er), P.init(e, t);
2255
- }), Mr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2256
- t.pattern ?? (t.pattern = nr), P.init(e, t), e._zod.bag.format = "ipv4";
2257
- }), Lr = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2258
- t.pattern ?? (t.pattern = rr), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2178
+ }), Er = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2179
+ t.pattern ?? (t.pattern = or(t)), P.init(e, t);
2180
+ }), $r = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2181
+ t.pattern ?? (t.pattern = nr), P.init(e, t);
2182
+ }), Pr = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2183
+ t.pattern ?? (t.pattern = rr(t)), P.init(e, t);
2184
+ }), Zr = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2185
+ t.pattern ?? (t.pattern = Xn), P.init(e, t);
2186
+ }), Cr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2187
+ t.pattern ?? (t.pattern = Qn), P.init(e, t), e._zod.bag.format = "ipv4";
2188
+ }), Ir = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2189
+ t.pattern ?? (t.pattern = er), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2259
2190
  try {
2260
2191
  new URL(`http://[${n.value}]`);
2261
2192
  } catch {
@@ -2268,7 +2199,7 @@ const ur = (e) => {
2268
2199
  });
2269
2200
  }
2270
2201
  };
2271
- }), Dr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2202
+ }), Nr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2272
2203
  P.init(e, t), e._zod.check = (n) => {
2273
2204
  t.fn(n.value) || n.issues.push({
2274
2205
  code: "invalid_format",
@@ -2279,7 +2210,7 @@ const ur = (e) => {
2279
2210
  });
2280
2211
  };
2281
2212
  }), ft = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
2282
- _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? lr, e._zod.parse = (n, r) => {
2213
+ _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ar, e._zod.parse = (n, r) => {
2283
2214
  if (t.coerce)
2284
2215
  try {
2285
2216
  n.value = Number(n.value);
@@ -2297,10 +2228,10 @@ const ur = (e) => {
2297
2228
  ...s ? { received: s } : {}
2298
2229
  }), n;
2299
2230
  };
2300
- }), Rr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2301
- gr.init(e, t), ft.init(e, t);
2302
- }), Fr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2303
- _.init(e, t), e._zod.pattern = pr, e._zod.parse = (n, r) => {
2231
+ }), Lr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2232
+ mr.init(e, t), ft.init(e, t);
2233
+ }), Mr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2234
+ _.init(e, t), e._zod.pattern = ur, e._zod.parse = (n, r) => {
2304
2235
  if (t.coerce)
2305
2236
  try {
2306
2237
  n.value = !!n.value;
@@ -2314,11 +2245,11 @@ const ur = (e) => {
2314
2245
  inst: e
2315
2246
  }), n;
2316
2247
  };
2317
- }), jr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2248
+ }), Dr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2318
2249
  _.init(e, t), e._zod.parse = (n) => n;
2319
2250
  });
2320
- function Ne(e, t, n) {
2321
- e.issues.length && t.issues.push(...Wn(n, e.issues)), t.value[n] = e.value;
2251
+ function Ie(e, t, n) {
2252
+ e.issues.length && t.issues.push(...Rn(n, e.issues)), t.value[n] = e.value;
2322
2253
  }
2323
2254
  const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2324
2255
  _.init(e, t), e._zod.parse = (n, r) => {
@@ -2337,12 +2268,12 @@ const ht = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2337
2268
  value: a,
2338
2269
  issues: []
2339
2270
  }, r);
2340
- u instanceof Promise ? s.push(u.then((c) => Ne(c, n, i))) : Ne(u, n, i);
2271
+ u instanceof Promise ? s.push(u.then((c) => Ie(c, n, i))) : Ie(u, n, i);
2341
2272
  }
2342
2273
  return s.length ? Promise.all(s).then(() => n) : n;
2343
2274
  };
2344
2275
  });
2345
- function Me(e, t, n, r) {
2276
+ function Ne(e, t, n, r) {
2346
2277
  for (const s of e)
2347
2278
  if (s.issues.length === 0)
2348
2279
  return t.value = s.value, t;
@@ -2351,17 +2282,17 @@ function Me(e, t, n, r) {
2351
2282
  code: "invalid_union",
2352
2283
  input: t.value,
2353
2284
  inst: n,
2354
- errors: e.map((s) => s.issues.map((i) => D(i, r, L())))
2285
+ errors: e.map((s) => s.issues.map((i) => D(i, r, M())))
2355
2286
  }), t);
2356
2287
  }
2357
- const Wr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2288
+ const Rr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2358
2289
  _.init(e, t), g(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), g(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), g(e._zod, "values", () => {
2359
2290
  if (t.options.every((o) => o._zod.values))
2360
2291
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
2361
2292
  }), g(e._zod, "pattern", () => {
2362
2293
  if (t.options.every((o) => o._zod.pattern)) {
2363
2294
  const o = t.options.map((s) => s._zod.pattern);
2364
- return new RegExp(`^(${o.map((s) => _e(s.source)).join("|")})$`);
2295
+ return new RegExp(`^(${o.map((s) => be(s.source)).join("|")})$`);
2365
2296
  }
2366
2297
  });
2367
2298
  const n = t.options.length === 1, r = t.options[0]._zod.run;
@@ -2383,23 +2314,23 @@ const Wr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2383
2314
  a.push(c);
2384
2315
  }
2385
2316
  }
2386
- return i ? Promise.all(a).then((u) => Me(u, o, e, s)) : Me(a, o, e, s);
2317
+ return i ? Promise.all(a).then((u) => Ne(u, o, e, s)) : Ne(a, o, e, s);
2387
2318
  };
2388
- }), xr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2319
+ }), Fr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2389
2320
  _.init(e, t), e._zod.parse = (n, r) => {
2390
2321
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
2391
2322
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Le(n, u, c)) : Le(n, s, i);
2392
2323
  };
2393
2324
  });
2394
- function he(e, t) {
2325
+ function me(e, t) {
2395
2326
  if (e === t)
2396
2327
  return { valid: !0, data: e };
2397
2328
  if (e instanceof Date && t instanceof Date && +e == +t)
2398
2329
  return { valid: !0, data: e };
2399
- if (fe(e) && fe(t)) {
2330
+ if (de(e) && de(t)) {
2400
2331
  const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
2401
2332
  for (const s of r) {
2402
- const i = he(e[s], t[s]);
2333
+ const i = me(e[s], t[s]);
2403
2334
  if (!i.valid)
2404
2335
  return {
2405
2336
  valid: !1,
@@ -2414,7 +2345,7 @@ function he(e, t) {
2414
2345
  return { valid: !1, mergeErrorPath: [] };
2415
2346
  const n = [];
2416
2347
  for (let r = 0; r < e.length; r++) {
2417
- const o = e[r], s = t[r], i = he(o, s);
2348
+ const o = e[r], s = t[r], i = me(o, s);
2418
2349
  if (!i.valid)
2419
2350
  return {
2420
2351
  valid: !1,
@@ -2445,12 +2376,12 @@ function Le(e, t, n) {
2445
2376
  const s = [...r].filter(([, a]) => a.l && a.r).map(([a]) => a);
2446
2377
  if (s.length && o && e.issues.push({ ...o, keys: s }), F(e))
2447
2378
  return e;
2448
- const i = he(t.value, n.value);
2379
+ const i = me(t.value, n.value);
2449
2380
  if (!i.valid)
2450
2381
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
2451
2382
  return e.value = i.data, e;
2452
2383
  }
2453
- const Ur = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2384
+ const jr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2454
2385
  _.init(e, t), e._zod.parse = (n, r) => {
2455
2386
  if (r.direction === "backward")
2456
2387
  throw new rt(e.constructor.name);
@@ -2462,52 +2393,52 @@ const Ur = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2462
2393
  return n.value = o, n;
2463
2394
  };
2464
2395
  });
2465
- function De(e, t) {
2396
+ function Me(e, t) {
2466
2397
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
2467
2398
  }
2468
2399
  const ke = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2469
2400
  _.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", g(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), g(e._zod, "pattern", () => {
2470
2401
  const n = t.innerType._zod.pattern;
2471
- return n ? new RegExp(`^(${_e(n.source)})?$`) : void 0;
2402
+ return n ? new RegExp(`^(${be(n.source)})?$`) : void 0;
2472
2403
  }), e._zod.parse = (n, r) => {
2473
2404
  if (t.innerType._zod.optin === "optional") {
2474
2405
  const o = t.innerType._zod.run(n, r);
2475
- return o instanceof Promise ? o.then((s) => De(s, n.value)) : De(o, n.value);
2406
+ return o instanceof Promise ? o.then((s) => Me(s, n.value)) : Me(o, n.value);
2476
2407
  }
2477
2408
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
2478
2409
  };
2479
- }), Vr = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2410
+ }), Wr = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2480
2411
  ke.init(e, t), g(e._zod, "values", () => t.innerType._zod.values), g(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
2481
- }), Jr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2412
+ }), xr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2482
2413
  _.init(e, t), g(e._zod, "optin", () => t.innerType._zod.optin), g(e._zod, "optout", () => t.innerType._zod.optout), g(e._zod, "pattern", () => {
2483
2414
  const n = t.innerType._zod.pattern;
2484
- return n ? new RegExp(`^(${_e(n.source)}|null)$`) : void 0;
2415
+ return n ? new RegExp(`^(${be(n.source)}|null)$`) : void 0;
2485
2416
  }), g(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
2486
- }), Br = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2417
+ }), Ur = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2487
2418
  _.init(e, t), e._zod.optin = "optional", g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2488
2419
  if (r.direction === "backward")
2489
2420
  return t.innerType._zod.run(n, r);
2490
2421
  if (n.value === void 0)
2491
2422
  return n.value = t.defaultValue, n;
2492
2423
  const o = t.innerType._zod.run(n, r);
2493
- return o instanceof Promise ? o.then((s) => Re(s, t)) : Re(o, t);
2424
+ return o instanceof Promise ? o.then((s) => De(s, t)) : De(o, t);
2494
2425
  };
2495
2426
  });
2496
- function Re(e, t) {
2427
+ function De(e, t) {
2497
2428
  return e.value === void 0 && (e.value = t.defaultValue), e;
2498
2429
  }
2499
- const Yr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2430
+ const Vr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2500
2431
  _.init(e, t), e._zod.optin = "optional", g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
2501
- }), Gr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2432
+ }), Jr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2502
2433
  _.init(e, t), g(e._zod, "values", () => {
2503
2434
  const n = t.innerType._zod.values;
2504
2435
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
2505
2436
  }), e._zod.parse = (n, r) => {
2506
2437
  const o = t.innerType._zod.run(n, r);
2507
- return o instanceof Promise ? o.then((s) => Fe(s, e)) : Fe(o, e);
2438
+ return o instanceof Promise ? o.then((s) => Re(s, e)) : Re(o, e);
2508
2439
  };
2509
2440
  });
2510
- function Fe(e, t) {
2441
+ function Re(e, t) {
2511
2442
  return !e.issues.length && e.value === void 0 && e.issues.push({
2512
2443
  code: "invalid_type",
2513
2444
  expected: "nonoptional",
@@ -2515,7 +2446,7 @@ function Fe(e, t) {
2515
2446
  inst: t
2516
2447
  }), e;
2517
2448
  }
2518
- const Kr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2449
+ const Br = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2519
2450
  _.init(e, t), g(e._zod, "optin", () => t.innerType._zod.optin), g(e._zod, "optout", () => t.innerType._zod.optout), g(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2520
2451
  if (r.direction === "backward")
2521
2452
  return t.innerType._zod.run(n, r);
@@ -2523,50 +2454,50 @@ const Kr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2523
2454
  return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
2524
2455
  ...n,
2525
2456
  error: {
2526
- issues: s.issues.map((i) => D(i, r, L()))
2457
+ issues: s.issues.map((i) => D(i, r, M()))
2527
2458
  },
2528
2459
  input: n.value
2529
2460
  }), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
2530
2461
  ...n,
2531
2462
  error: {
2532
- issues: o.issues.map((s) => D(s, r, L()))
2463
+ issues: o.issues.map((s) => D(s, r, M()))
2533
2464
  },
2534
2465
  input: n.value
2535
2466
  }), n.issues = []), n);
2536
2467
  };
2537
- }), qr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2468
+ }), Yr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2538
2469
  _.init(e, t), g(e._zod, "values", () => t.in._zod.values), g(e._zod, "optin", () => t.in._zod.optin), g(e._zod, "optout", () => t.out._zod.optout), g(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
2539
2470
  if (r.direction === "backward") {
2540
2471
  const s = t.out._zod.run(n, r);
2541
- return s instanceof Promise ? s.then((i) => q(i, t.in, r)) : q(s, t.in, r);
2472
+ return s instanceof Promise ? s.then((i) => K(i, t.in, r)) : K(s, t.in, r);
2542
2473
  }
2543
2474
  const o = t.in._zod.run(n, r);
2544
- return o instanceof Promise ? o.then((s) => q(s, t.out, r)) : q(o, t.out, r);
2475
+ return o instanceof Promise ? o.then((s) => K(s, t.out, r)) : K(o, t.out, r);
2545
2476
  };
2546
2477
  });
2547
- function q(e, t, n) {
2478
+ function K(e, t, n) {
2548
2479
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
2549
2480
  }
2550
- const Xr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2481
+ const Gr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2551
2482
  _.init(e, t), g(e._zod, "propValues", () => t.innerType._zod.propValues), g(e._zod, "values", () => t.innerType._zod.values), g(e._zod, "optin", () => t.innerType?._zod?.optin), g(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
2552
2483
  if (r.direction === "backward")
2553
2484
  return t.innerType._zod.run(n, r);
2554
2485
  const o = t.innerType._zod.run(n, r);
2555
- return o instanceof Promise ? o.then(je) : je(o);
2486
+ return o instanceof Promise ? o.then(Fe) : Fe(o);
2556
2487
  };
2557
2488
  });
2558
- function je(e) {
2489
+ function Fe(e) {
2559
2490
  return e.value = Object.freeze(e.value), e;
2560
2491
  }
2561
2492
  const gt = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
2562
2493
  $.init(e, t), _.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
2563
2494
  const r = n.value, o = t.fn(r);
2564
2495
  if (o instanceof Promise)
2565
- return o.then((s) => We(s, n, r, e));
2566
- We(o, n, r, e);
2496
+ return o.then((s) => je(s, n, r, e));
2497
+ je(o, n, r, e);
2567
2498
  };
2568
2499
  });
2569
- function We(e, t, n, r) {
2500
+ function je(e, t, n, r) {
2570
2501
  if (!e) {
2571
2502
  const o = {
2572
2503
  code: "custom",
@@ -2581,8 +2512,8 @@ function We(e, t, n, r) {
2581
2512
  r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(J(o));
2582
2513
  }
2583
2514
  }
2584
- var xe;
2585
- class Hr {
2515
+ var We;
2516
+ class Kr {
2586
2517
  constructor() {
2587
2518
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2588
2519
  }
@@ -2611,20 +2542,20 @@ class Hr {
2611
2542
  return this._map.has(t);
2612
2543
  }
2613
2544
  }
2614
- function Qr() {
2615
- return new Hr();
2545
+ function qr() {
2546
+ return new Kr();
2616
2547
  }
2617
- (xe = globalThis).__zod_globalRegistry ?? (xe.__zod_globalRegistry = Qr());
2548
+ (We = globalThis).__zod_globalRegistry ?? (We.__zod_globalRegistry = qr());
2618
2549
  const V = globalThis.__zod_globalRegistry;
2619
2550
  // @__NO_SIDE_EFFECTS__
2620
- function eo(e, t) {
2551
+ function Xr(e, t) {
2621
2552
  return new e({
2622
2553
  type: "string",
2623
2554
  ...h(t)
2624
2555
  });
2625
2556
  }
2626
2557
  // @__NO_SIDE_EFFECTS__
2627
- function to(e, t) {
2558
+ function Hr(e, t) {
2628
2559
  return new e({
2629
2560
  type: "string",
2630
2561
  format: "email",
@@ -2634,7 +2565,7 @@ function to(e, t) {
2634
2565
  });
2635
2566
  }
2636
2567
  // @__NO_SIDE_EFFECTS__
2637
- function no(e, t) {
2568
+ function Qr(e, t) {
2638
2569
  return new e({
2639
2570
  type: "string",
2640
2571
  format: "uuid",
@@ -2644,7 +2575,7 @@ function no(e, t) {
2644
2575
  });
2645
2576
  }
2646
2577
  // @__NO_SIDE_EFFECTS__
2647
- function ro(e, t) {
2578
+ function eo(e, t) {
2648
2579
  return new e({
2649
2580
  type: "string",
2650
2581
  format: "url",
@@ -2654,7 +2585,7 @@ function ro(e, t) {
2654
2585
  });
2655
2586
  }
2656
2587
  // @__NO_SIDE_EFFECTS__
2657
- function oo(e, t) {
2588
+ function to(e, t) {
2658
2589
  return new e({
2659
2590
  type: "string",
2660
2591
  format: "ipv4",
@@ -2664,7 +2595,7 @@ function oo(e, t) {
2664
2595
  });
2665
2596
  }
2666
2597
  // @__NO_SIDE_EFFECTS__
2667
- function so(e, t) {
2598
+ function no(e, t) {
2668
2599
  return new e({
2669
2600
  type: "string",
2670
2601
  format: "ipv6",
@@ -2674,7 +2605,7 @@ function so(e, t) {
2674
2605
  });
2675
2606
  }
2676
2607
  // @__NO_SIDE_EFFECTS__
2677
- function io(e, t) {
2608
+ function ro(e, t) {
2678
2609
  return new e({
2679
2610
  type: "string",
2680
2611
  format: "datetime",
@@ -2686,7 +2617,7 @@ function io(e, t) {
2686
2617
  });
2687
2618
  }
2688
2619
  // @__NO_SIDE_EFFECTS__
2689
- function ao(e, t) {
2620
+ function oo(e, t) {
2690
2621
  return new e({
2691
2622
  type: "string",
2692
2623
  format: "date",
@@ -2695,7 +2626,7 @@ function ao(e, t) {
2695
2626
  });
2696
2627
  }
2697
2628
  // @__NO_SIDE_EFFECTS__
2698
- function uo(e, t) {
2629
+ function so(e, t) {
2699
2630
  return new e({
2700
2631
  type: "string",
2701
2632
  format: "time",
@@ -2705,7 +2636,7 @@ function uo(e, t) {
2705
2636
  });
2706
2637
  }
2707
2638
  // @__NO_SIDE_EFFECTS__
2708
- function co(e, t) {
2639
+ function io(e, t) {
2709
2640
  return new e({
2710
2641
  type: "string",
2711
2642
  format: "duration",
@@ -2714,7 +2645,7 @@ function co(e, t) {
2714
2645
  });
2715
2646
  }
2716
2647
  // @__NO_SIDE_EFFECTS__
2717
- function lo(e, t) {
2648
+ function ao(e, t) {
2718
2649
  return new e({
2719
2650
  type: "number",
2720
2651
  checks: [],
@@ -2722,7 +2653,7 @@ function lo(e, t) {
2722
2653
  });
2723
2654
  }
2724
2655
  // @__NO_SIDE_EFFECTS__
2725
- function po(e, t) {
2656
+ function uo(e, t) {
2726
2657
  return new e({
2727
2658
  type: "number",
2728
2659
  check: "number_format",
@@ -2732,21 +2663,21 @@ function po(e, t) {
2732
2663
  });
2733
2664
  }
2734
2665
  // @__NO_SIDE_EFFECTS__
2735
- function mo(e, t) {
2666
+ function co(e, t) {
2736
2667
  return new e({
2737
2668
  type: "boolean",
2738
2669
  ...h(t)
2739
2670
  });
2740
2671
  }
2741
2672
  // @__NO_SIDE_EFFECTS__
2742
- function fo(e) {
2673
+ function lo(e) {
2743
2674
  return new e({
2744
2675
  type: "any"
2745
2676
  });
2746
2677
  }
2747
2678
  // @__NO_SIDE_EFFECTS__
2748
- function ho(e, t) {
2749
- return new fr({
2679
+ function po(e, t) {
2680
+ return new pr({
2750
2681
  check: "less_than",
2751
2682
  ...h(t),
2752
2683
  value: e,
@@ -2754,8 +2685,8 @@ function ho(e, t) {
2754
2685
  });
2755
2686
  }
2756
2687
  // @__NO_SIDE_EFFECTS__
2757
- function go(e, t) {
2758
- return new hr({
2688
+ function mo(e, t) {
2689
+ return new dr({
2759
2690
  check: "greater_than",
2760
2691
  ...h(t),
2761
2692
  value: e,
@@ -2763,8 +2694,8 @@ function go(e, t) {
2763
2694
  });
2764
2695
  }
2765
2696
  // @__NO_SIDE_EFFECTS__
2766
- function ae(e, t) {
2767
- return new yr({
2697
+ function se(e, t) {
2698
+ return new fr({
2768
2699
  check: "max_length",
2769
2700
  ...h(t),
2770
2701
  maximum: e
@@ -2772,7 +2703,7 @@ function ae(e, t) {
2772
2703
  }
2773
2704
  // @__NO_SIDE_EFFECTS__
2774
2705
  function W(e, t) {
2775
- return new br({
2706
+ return new hr({
2776
2707
  check: "min_length",
2777
2708
  ...h(t),
2778
2709
  minimum: e
@@ -2780,7 +2711,7 @@ function W(e, t) {
2780
2711
  }
2781
2712
  // @__NO_SIDE_EFFECTS__
2782
2713
  function yt(e, t) {
2783
- return new _r({
2714
+ return new gr({
2784
2715
  check: "length_equals",
2785
2716
  ...h(t),
2786
2717
  length: e
@@ -2788,7 +2719,7 @@ function yt(e, t) {
2788
2719
  }
2789
2720
  // @__NO_SIDE_EFFECTS__
2790
2721
  function bt(e, t) {
2791
- return new vr({
2722
+ return new yr({
2792
2723
  check: "string_format",
2793
2724
  format: "regex",
2794
2725
  ...h(t),
@@ -2796,24 +2727,24 @@ function bt(e, t) {
2796
2727
  });
2797
2728
  }
2798
2729
  // @__NO_SIDE_EFFECTS__
2799
- function yo(e) {
2800
- return new Sr({
2730
+ function fo(e) {
2731
+ return new br({
2801
2732
  check: "string_format",
2802
2733
  format: "lowercase",
2803
2734
  ...h(e)
2804
2735
  });
2805
2736
  }
2806
2737
  // @__NO_SIDE_EFFECTS__
2807
- function bo(e) {
2808
- return new wr({
2738
+ function ho(e) {
2739
+ return new _r({
2809
2740
  check: "string_format",
2810
2741
  format: "uppercase",
2811
2742
  ...h(e)
2812
2743
  });
2813
2744
  }
2814
2745
  // @__NO_SIDE_EFFECTS__
2815
- function _o(e, t) {
2816
- return new kr({
2746
+ function go(e, t) {
2747
+ return new vr({
2817
2748
  check: "string_format",
2818
2749
  format: "includes",
2819
2750
  ...h(t),
@@ -2821,8 +2752,8 @@ function _o(e, t) {
2821
2752
  });
2822
2753
  }
2823
2754
  // @__NO_SIDE_EFFECTS__
2824
- function vo(e, t) {
2825
- return new Tr({
2755
+ function yo(e, t) {
2756
+ return new wr({
2826
2757
  check: "string_format",
2827
2758
  format: "starts_with",
2828
2759
  ...h(t),
@@ -2830,8 +2761,8 @@ function vo(e, t) {
2830
2761
  });
2831
2762
  }
2832
2763
  // @__NO_SIDE_EFFECTS__
2833
- function So(e, t) {
2834
- return new zr({
2764
+ function bo(e, t) {
2765
+ return new kr({
2835
2766
  check: "string_format",
2836
2767
  format: "ends_with",
2837
2768
  ...h(t),
@@ -2840,33 +2771,33 @@ function So(e, t) {
2840
2771
  }
2841
2772
  // @__NO_SIDE_EFFECTS__
2842
2773
  function x(e) {
2843
- return new Ar({
2774
+ return new Sr({
2844
2775
  check: "overwrite",
2845
2776
  tx: e
2846
2777
  });
2847
2778
  }
2848
2779
  // @__NO_SIDE_EFFECTS__
2849
- function wo(e) {
2780
+ function _o(e) {
2850
2781
  return /* @__PURE__ */ x((t) => t.normalize(e));
2851
2782
  }
2852
2783
  // @__NO_SIDE_EFFECTS__
2853
- function ko() {
2784
+ function vo() {
2854
2785
  return /* @__PURE__ */ x((e) => e.trim());
2855
2786
  }
2856
2787
  // @__NO_SIDE_EFFECTS__
2857
- function To() {
2788
+ function wo() {
2858
2789
  return /* @__PURE__ */ x((e) => e.toLowerCase());
2859
2790
  }
2860
2791
  // @__NO_SIDE_EFFECTS__
2861
- function zo() {
2792
+ function ko() {
2862
2793
  return /* @__PURE__ */ x((e) => e.toUpperCase());
2863
2794
  }
2864
2795
  // @__NO_SIDE_EFFECTS__
2865
- function Ao() {
2866
- return /* @__PURE__ */ x((e) => Fn(e));
2796
+ function So() {
2797
+ return /* @__PURE__ */ x((e) => Mn(e));
2867
2798
  }
2868
2799
  // @__NO_SIDE_EFFECTS__
2869
- function Oo(e, t, n) {
2800
+ function To(e, t, n) {
2870
2801
  return new e({
2871
2802
  type: "array",
2872
2803
  element: t,
@@ -2887,7 +2818,7 @@ function _t(e, t, n) {
2887
2818
  }
2888
2819
  // @__NO_SIDE_EFFECTS__
2889
2820
  function vt(e) {
2890
- const t = /* @__PURE__ */ Eo((n) => (n.addIssue = (r) => {
2821
+ const t = /* @__PURE__ */ zo((n) => (n.addIssue = (r) => {
2891
2822
  if (typeof r == "string")
2892
2823
  n.issues.push(J(r, n.value, t._zod.def));
2893
2824
  else {
@@ -2898,7 +2829,7 @@ function vt(e) {
2898
2829
  return t;
2899
2830
  }
2900
2831
  // @__NO_SIDE_EFFECTS__
2901
- function Eo(e, t) {
2832
+ function zo(e, t) {
2902
2833
  const n = new $({
2903
2834
  check: "custom",
2904
2835
  ...h(t)
@@ -2906,7 +2837,7 @@ function Eo(e, t) {
2906
2837
  return n._zod.check = e, n;
2907
2838
  }
2908
2839
  // @__NO_SIDE_EFFECTS__
2909
- function $o(e, t, n, r = {}) {
2840
+ function Ao(e, t, n, r = {}) {
2910
2841
  const o = h(r), s = {
2911
2842
  ...h(r),
2912
2843
  check: "string_format",
@@ -2917,7 +2848,7 @@ function $o(e, t, n, r = {}) {
2917
2848
  };
2918
2849
  return n instanceof RegExp && (s.pattern = n), new e(s);
2919
2850
  }
2920
- function St(e) {
2851
+ function wt(e) {
2921
2852
  let t = e?.target ?? "draft-2020-12";
2922
2853
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2923
2854
  processors: e.processors ?? {},
@@ -2964,7 +2895,7 @@ function A(e, t, n = { path: [], schemaPath: [] }) {
2964
2895
  const u = t.metadataRegistry.get(e);
2965
2896
  return u && Object.assign(i.schema, u), t.io === "input" && z(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && i.schema._prefault && ((r = i.schema).default ?? (r.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
2966
2897
  }
2967
- function wt(e, t) {
2898
+ function kt(e, t) {
2968
2899
  const n = e.seen.get(t);
2969
2900
  if (!n)
2970
2901
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -3036,7 +2967,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3036
2967
  }
3037
2968
  }
3038
2969
  }
3039
- function kt(e, t) {
2970
+ function St(e, t) {
3040
2971
  const n = e.seen.get(t);
3041
2972
  if (!n)
3042
2973
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -3049,11 +2980,11 @@ function kt(e, t) {
3049
2980
  r(p);
3050
2981
  const m = e.seen.get(p), f = m.schema;
3051
2982
  if (f.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (u.allOf = u.allOf ?? [], u.allOf.push(f)) : Object.assign(u, f), Object.assign(u, c), i._zod.parent === p)
3052
- for (const k in u)
3053
- k === "$ref" || k === "allOf" || k in c || delete u[k];
2983
+ for (const S in u)
2984
+ S === "$ref" || S === "allOf" || S in c || delete u[S];
3054
2985
  if (f.$ref && m.def)
3055
- for (const k in u)
3056
- k === "$ref" || k === "allOf" || k in m.def && JSON.stringify(u[k]) === JSON.stringify(m.def[k]) && delete u[k];
2986
+ for (const S in u)
2987
+ S === "$ref" || S === "allOf" || S in m.def && JSON.stringify(u[S]) === JSON.stringify(m.def[S]) && delete u[S];
3057
2988
  }
3058
2989
  const d = i._zod.parent;
3059
2990
  if (d && d !== p) {
@@ -3091,8 +3022,8 @@ function kt(e, t) {
3091
3022
  value: {
3092
3023
  ...t["~standard"],
3093
3024
  jsonSchema: {
3094
- input: H(t, "input", e.processors),
3095
- output: H(t, "output", e.processors)
3025
+ input: X(t, "input", e.processors),
3026
+ output: X(t, "output", e.processors)
3096
3027
  }
3097
3028
  },
3098
3029
  enumerable: !1,
@@ -3144,24 +3075,24 @@ function z(e, t) {
3144
3075
  }
3145
3076
  return !1;
3146
3077
  }
3147
- const Po = (e, t = {}) => (n) => {
3148
- const r = St({ ...n, processors: t });
3149
- return A(e, r), wt(r, e), kt(r, e);
3150
- }, H = (e, t, n = {}) => (r) => {
3151
- const { libraryOptions: o, target: s } = r ?? {}, i = St({ ...o ?? {}, target: s, io: t, processors: n });
3152
- return A(e, i), wt(i, e), kt(i, e);
3153
- }, Zo = {
3078
+ const Oo = (e, t = {}) => (n) => {
3079
+ const r = wt({ ...n, processors: t });
3080
+ return A(e, r), kt(r, e), St(r, e);
3081
+ }, X = (e, t, n = {}) => (r) => {
3082
+ const { libraryOptions: o, target: s } = r ?? {}, i = wt({ ...o ?? {}, target: s, io: t, processors: n });
3083
+ return A(e, i), kt(i, e), St(i, e);
3084
+ }, Eo = {
3154
3085
  guid: "uuid",
3155
3086
  url: "uri",
3156
3087
  datetime: "date-time",
3157
3088
  json_string: "json-string",
3158
3089
  regex: ""
3159
3090
  // do not set
3160
- }, Co = (e, t, n, r) => {
3091
+ }, $o = (e, t, n, r) => {
3161
3092
  const o = n;
3162
3093
  o.type = "string";
3163
3094
  const { minimum: s, maximum: i, format: a, patterns: u, contentEncoding: c } = e._zod.bag;
3164
- if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = Zo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
3095
+ if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = Eo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
3165
3096
  const p = [...u];
3166
3097
  p.length === 1 ? o.pattern = p[0].source : p.length > 1 && (o.allOf = [
3167
3098
  ...p.map((d) => ({
@@ -3170,22 +3101,22 @@ const Po = (e, t = {}) => (n) => {
3170
3101
  }))
3171
3102
  ]);
3172
3103
  }
3173
- }, Io = (e, t, n, r) => {
3104
+ }, Po = (e, t, n, r) => {
3174
3105
  if (t.unrepresentable === "throw")
3175
3106
  throw new Error("Custom types cannot be represented in JSON Schema");
3176
- }, No = (e, t, n, r) => {
3107
+ }, Zo = (e, t, n, r) => {
3177
3108
  if (t.unrepresentable === "throw")
3178
3109
  throw new Error("Transforms cannot be represented in JSON Schema");
3179
- }, Mo = (e, t, n, r) => {
3110
+ }, Co = (e, t, n, r) => {
3180
3111
  const o = n, s = e._zod.def, { minimum: i, maximum: a } = e._zod.bag;
3181
3112
  typeof i == "number" && (o.minItems = i), typeof a == "number" && (o.maxItems = a), o.type = "array", o.items = A(s.element, t, { ...r, path: [...r.path, "items"] });
3182
- }, Lo = (e, t, n, r) => {
3113
+ }, Io = (e, t, n, r) => {
3183
3114
  const o = e._zod.def, s = o.inclusive === !1, i = o.options.map((a, u) => A(a, t, {
3184
3115
  ...r,
3185
3116
  path: [...r.path, s ? "oneOf" : "anyOf", u]
3186
3117
  }));
3187
3118
  s ? n.oneOf = i : n.anyOf = i;
3188
- }, Do = (e, t, n, r) => {
3119
+ }, No = (e, t, n, r) => {
3189
3120
  const o = e._zod.def, s = A(o.left, t, {
3190
3121
  ...r,
3191
3122
  path: [...r.path, "allOf", 0]
@@ -3197,25 +3128,25 @@ const Po = (e, t = {}) => (n) => {
3197
3128
  ...a(i) ? i.allOf : [i]
3198
3129
  ];
3199
3130
  n.allOf = u;
3200
- }, Ro = (e, t, n, r) => {
3131
+ }, Lo = (e, t, n, r) => {
3201
3132
  const o = e._zod.def, s = A(o.innerType, t, r), i = t.seen.get(e);
3202
3133
  t.target === "openapi-3.0" ? (i.ref = o.innerType, n.nullable = !0) : n.anyOf = [s, { type: "null" }];
3203
- }, Fo = (e, t, n, r) => {
3134
+ }, Mo = (e, t, n, r) => {
3204
3135
  const o = e._zod.def;
3205
3136
  A(o.innerType, t, r);
3206
3137
  const s = t.seen.get(e);
3207
3138
  s.ref = o.innerType;
3208
- }, jo = (e, t, n, r) => {
3139
+ }, Do = (e, t, n, r) => {
3209
3140
  const o = e._zod.def;
3210
3141
  A(o.innerType, t, r);
3211
3142
  const s = t.seen.get(e);
3212
3143
  s.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
3213
- }, Wo = (e, t, n, r) => {
3144
+ }, Ro = (e, t, n, r) => {
3214
3145
  const o = e._zod.def;
3215
3146
  A(o.innerType, t, r);
3216
3147
  const s = t.seen.get(e);
3217
3148
  s.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
3218
- }, xo = (e, t, n, r) => {
3149
+ }, Fo = (e, t, n, r) => {
3219
3150
  const o = e._zod.def;
3220
3151
  A(o.innerType, t, r);
3221
3152
  const s = t.seen.get(e);
@@ -3227,12 +3158,12 @@ const Po = (e, t = {}) => (n) => {
3227
3158
  throw new Error("Dynamic catch values are not supported in JSON Schema");
3228
3159
  }
3229
3160
  n.default = i;
3230
- }, Uo = (e, t, n, r) => {
3161
+ }, jo = (e, t, n, r) => {
3231
3162
  const o = e._zod.def, s = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
3232
3163
  A(s, t, r);
3233
3164
  const i = t.seen.get(e);
3234
3165
  i.ref = s;
3235
- }, Vo = (e, t, n, r) => {
3166
+ }, Wo = (e, t, n, r) => {
3236
3167
  const o = e._zod.def;
3237
3168
  A(o.innerType, t, r);
3238
3169
  const s = t.seen.get(e);
@@ -3242,49 +3173,49 @@ const Po = (e, t = {}) => (n) => {
3242
3173
  A(o.innerType, t, r);
3243
3174
  const s = t.seen.get(e);
3244
3175
  s.ref = o.innerType;
3245
- }, Jo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3246
- Zr.init(e, t), ue.init(e, t);
3176
+ }, xo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3177
+ Er.init(e, t), ie.init(e, t);
3247
3178
  });
3248
- function Bo(e) {
3249
- return /* @__PURE__ */ io(Jo, e);
3179
+ function Uo(e) {
3180
+ return /* @__PURE__ */ ro(xo, e);
3250
3181
  }
3251
- const Yo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3252
- Cr.init(e, t), ue.init(e, t);
3182
+ const Vo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3183
+ $r.init(e, t), ie.init(e, t);
3253
3184
  });
3254
- function Go(e) {
3255
- return /* @__PURE__ */ ao(Yo, e);
3185
+ function Jo(e) {
3186
+ return /* @__PURE__ */ oo(Vo, e);
3256
3187
  }
3257
- const Ko = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3258
- Ir.init(e, t), ue.init(e, t);
3188
+ const Bo = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3189
+ Pr.init(e, t), ie.init(e, t);
3259
3190
  });
3260
- function qo(e) {
3261
- return /* @__PURE__ */ uo(Ko, e);
3191
+ function Yo(e) {
3192
+ return /* @__PURE__ */ so(Bo, e);
3262
3193
  }
3263
- const Xo = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3264
- Nr.init(e, t), ue.init(e, t);
3194
+ const Go = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3195
+ Zr.init(e, t), ie.init(e, t);
3265
3196
  });
3266
- function Ho(e) {
3267
- return /* @__PURE__ */ co(Xo, e);
3197
+ function Ko(e) {
3198
+ return /* @__PURE__ */ io(Go, e);
3268
3199
  }
3269
- const Qo = (e, t) => {
3200
+ const qo = (e, t) => {
3270
3201
  ut.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3271
3202
  format: {
3272
- value: (n) => Un(e, n)
3203
+ value: (n) => jn(e, n)
3273
3204
  // enumerable: false,
3274
3205
  },
3275
3206
  flatten: {
3276
- value: (n) => xn(e, n)
3207
+ value: (n) => Fn(e, n)
3277
3208
  // enumerable: false,
3278
3209
  },
3279
3210
  addIssue: {
3280
3211
  value: (n) => {
3281
- e.issues.push(n), e.message = JSON.stringify(e.issues, me, 2);
3212
+ e.issues.push(n), e.message = JSON.stringify(e.issues, pe, 2);
3282
3213
  }
3283
3214
  // enumerable: false,
3284
3215
  },
3285
3216
  addIssues: {
3286
3217
  value: (n) => {
3287
- e.issues.push(...n), e.message = JSON.stringify(e.issues, me, 2);
3218
+ e.issues.push(...n), e.message = JSON.stringify(e.issues, pe, 2);
3288
3219
  }
3289
3220
  // enumerable: false,
3290
3221
  },
@@ -3295,21 +3226,21 @@ const Qo = (e, t) => {
3295
3226
  // enumerable: false,
3296
3227
  }
3297
3228
  });
3298
- }, Z = l("ZodError", Qo, {
3229
+ }, Z = l("ZodError", qo, {
3299
3230
  Parent: Error
3300
- }), es = /* @__PURE__ */ ne(Z), ts = /* @__PURE__ */ re(Z), ns = /* @__PURE__ */ oe(Z), rs = /* @__PURE__ */ se(Z), os = /* @__PURE__ */ Bn(Z), ss = /* @__PURE__ */ Yn(Z), is = /* @__PURE__ */ Gn(Z), as = /* @__PURE__ */ Kn(Z), us = /* @__PURE__ */ qn(Z), cs = /* @__PURE__ */ Xn(Z), ls = /* @__PURE__ */ Hn(Z), ps = /* @__PURE__ */ Qn(Z), E = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
3231
+ }), Xo = /* @__PURE__ */ ee(Z), Ho = /* @__PURE__ */ te(Z), Qo = /* @__PURE__ */ ne(Z), es = /* @__PURE__ */ re(Z), ts = /* @__PURE__ */ Un(Z), ns = /* @__PURE__ */ Vn(Z), rs = /* @__PURE__ */ Jn(Z), os = /* @__PURE__ */ Bn(Z), ss = /* @__PURE__ */ Yn(Z), is = /* @__PURE__ */ Gn(Z), as = /* @__PURE__ */ Kn(Z), us = /* @__PURE__ */ qn(Z), E = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
3301
3232
  jsonSchema: {
3302
- input: H(e, "input"),
3303
- output: H(e, "output")
3233
+ input: X(e, "input"),
3234
+ output: X(e, "output")
3304
3235
  }
3305
- }), e.toJSONSchema = Po(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Rn(t, {
3236
+ }), e.toJSONSchema = Oo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Ln(t, {
3306
3237
  checks: [
3307
3238
  ...t.checks ?? [],
3308
3239
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
3309
3240
  ]
3310
3241
  }), {
3311
3242
  parent: !0
3312
- }), e.with = e.check, e.clone = (n, r) => it(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => es(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ns(e, n, r), e.parseAsync = async (n, r) => ts(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => rs(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => os(e, n, r), e.decode = (n, r) => ss(e, n, r), e.encodeAsync = async (n, r) => is(e, n, r), e.decodeAsync = async (n, r) => as(e, n, r), e.safeEncode = (n, r) => us(e, n, r), e.safeDecode = (n, r) => cs(e, n, r), e.safeEncodeAsync = async (n, r) => ls(e, n, r), e.safeDecodeAsync = async (n, r) => ps(e, n, r), e.refine = (n, r) => e.check(Ds(n, r)), e.superRefine = (n) => e.check(Rs(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => Ue(e), e.exactOptional = () => ks(e), e.nullable = () => Ve(e), e.nullish = () => Ue(Ve(e)), e.nonoptional = (n) => Ps(e, n), e.array = () => fs(e), e.or = (n) => gs([e, n]), e.and = (n) => bs(e, n), e.transform = (n) => Je(e, vs(n)), e.default = (n) => As(e, n), e.prefault = (n) => Es(e, n), e.catch = (n) => Cs(e, n), e.pipe = (n) => Je(e, n), e.readonly = () => Ms(e), e.describe = (n) => {
3243
+ }), e.with = e.check, e.clone = (n, r) => it(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Xo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Qo(e, n, r), e.parseAsync = async (n, r) => Ho(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => es(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ts(e, n, r), e.decode = (n, r) => ns(e, n, r), e.encodeAsync = async (n, r) => rs(e, n, r), e.decodeAsync = async (n, r) => os(e, n, r), e.safeEncode = (n, r) => ss(e, n, r), e.safeDecode = (n, r) => is(e, n, r), e.safeEncodeAsync = async (n, r) => as(e, n, r), e.safeDecodeAsync = async (n, r) => us(e, n, r), e.refine = (n, r) => e.check(Ns(n, r)), e.superRefine = (n) => e.check(Ls(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => xe(e), e.exactOptional = () => vs(e), e.nullable = () => Ue(e), e.nullish = () => xe(Ue(e)), e.nonoptional = (n) => Os(e, n), e.array = () => ps(e), e.or = (n) => ms([e, n]), e.and = (n) => hs(e, n), e.transform = (n) => Ve(e, ys(n)), e.default = (n) => Ss(e, n), e.prefault = (n) => zs(e, n), e.catch = (n) => $s(e, n), e.pipe = (n) => Ve(e, n), e.readonly = () => Cs(e), e.describe = (n) => {
3313
3244
  const r = e.clone();
3314
3245
  return V.add(r, { description: n }), r;
3315
3246
  }, Object.defineProperty(e, "description", {
@@ -3322,40 +3253,40 @@ const Qo = (e, t) => {
3322
3253
  return V.get(e);
3323
3254
  const r = e.clone();
3324
3255
  return V.add(r, n[0]), r;
3325
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), ds = /* @__PURE__ */ l("_ZodString", (e, t) => {
3326
- we.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, o, s) => Co(e, r, o);
3256
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), cs = /* @__PURE__ */ l("_ZodString", (e, t) => {
3257
+ we.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, o, s) => $o(e, r, o);
3327
3258
  const n = e._zod.bag;
3328
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ bt(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ _o(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ vo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ So(...r)), e.min = (...r) => e.check(/* @__PURE__ */ W(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ae(...r)), e.length = (...r) => e.check(/* @__PURE__ */ yt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ W(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ yo(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ bo(r)), e.trim = () => e.check(/* @__PURE__ */ ko()), e.normalize = (...r) => e.check(/* @__PURE__ */ wo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ To()), e.toUpperCase = () => e.check(/* @__PURE__ */ zo()), e.slugify = () => e.check(/* @__PURE__ */ Ao());
3329
- }), ue = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3330
- P.init(e, t), ds.init(e, t);
3331
- }), ms = /* @__PURE__ */ l("ZodArray", (e, t) => {
3332
- ht.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ W(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ W(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ ae(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ yt(n, r)), e.unwrap = () => e.element;
3259
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ bt(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ go(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ yo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ bo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ W(...r)), e.max = (...r) => e.check(/* @__PURE__ */ se(...r)), e.length = (...r) => e.check(/* @__PURE__ */ yt(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ W(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ fo(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ ho(r)), e.trim = () => e.check(/* @__PURE__ */ vo()), e.normalize = (...r) => e.check(/* @__PURE__ */ _o(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ wo()), e.toUpperCase = () => e.check(/* @__PURE__ */ ko()), e.slugify = () => e.check(/* @__PURE__ */ So());
3260
+ }), ie = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3261
+ P.init(e, t), cs.init(e, t);
3262
+ }), ls = /* @__PURE__ */ l("ZodArray", (e, t) => {
3263
+ ht.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Co(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ W(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ W(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ se(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ yt(n, r)), e.unwrap = () => e.element;
3333
3264
  });
3334
- function fs(e, t) {
3335
- return /* @__PURE__ */ Oo(ms, e, t);
3265
+ function ps(e, t) {
3266
+ return /* @__PURE__ */ To(ls, e, t);
3336
3267
  }
3337
- const hs = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3338
- Wr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.options = t.options;
3268
+ const ds = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3269
+ Rr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n, r, o), e.options = t.options;
3339
3270
  });
3340
- function gs(e, t) {
3341
- return new hs({
3271
+ function ms(e, t) {
3272
+ return new ds({
3342
3273
  type: "union",
3343
3274
  options: e,
3344
3275
  ...h(t)
3345
3276
  });
3346
3277
  }
3347
- const ys = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3348
- xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o);
3278
+ const fs = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3279
+ Fr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n, r, o);
3349
3280
  });
3350
- function bs(e, t) {
3351
- return new ys({
3281
+ function hs(e, t) {
3282
+ return new fs({
3352
3283
  type: "intersection",
3353
3284
  left: e,
3354
3285
  right: t
3355
3286
  });
3356
3287
  }
3357
- const _s = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3358
- Ur.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n), e._zod.parse = (n, r) => {
3288
+ const gs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3289
+ jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Zo(e, n), e._zod.parse = (n, r) => {
3359
3290
  if (r.direction === "backward")
3360
3291
  throw new rt(e.constructor.name);
3361
3292
  n.addIssue = (s) => {
@@ -3370,44 +3301,44 @@ const _s = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3370
3301
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
3371
3302
  };
3372
3303
  });
3373
- function vs(e) {
3374
- return new _s({
3304
+ function ys(e) {
3305
+ return new gs({
3375
3306
  type: "transform",
3376
3307
  transform: e
3377
3308
  });
3378
3309
  }
3379
- const Ss = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3310
+ const bs = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3380
3311
  ke.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3381
3312
  });
3382
- function Ue(e) {
3383
- return new Ss({
3313
+ function xe(e) {
3314
+ return new bs({
3384
3315
  type: "optional",
3385
3316
  innerType: e
3386
3317
  });
3387
3318
  }
3388
- const ws = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3389
- Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3319
+ const _s = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3320
+ Wr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tt(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3390
3321
  });
3391
- function ks(e) {
3392
- return new ws({
3322
+ function vs(e) {
3323
+ return new _s({
3393
3324
  type: "optional",
3394
3325
  innerType: e
3395
3326
  });
3396
3327
  }
3397
- const Ts = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3398
- Jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3328
+ const ws = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3329
+ xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3399
3330
  });
3400
- function Ve(e) {
3401
- return new Ts({
3331
+ function Ue(e) {
3332
+ return new ws({
3402
3333
  type: "nullable",
3403
3334
  innerType: e
3404
3335
  });
3405
3336
  }
3406
- const zs = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3407
- Br.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => jo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3337
+ const ks = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3338
+ Ur.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3408
3339
  });
3409
- function As(e, t) {
3410
- return new zs({
3340
+ function Ss(e, t) {
3341
+ return new ks({
3411
3342
  type: "default",
3412
3343
  innerType: e,
3413
3344
  get defaultValue() {
@@ -3415,11 +3346,11 @@ function As(e, t) {
3415
3346
  }
3416
3347
  });
3417
3348
  }
3418
- const Os = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3419
- Yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Wo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3349
+ const Ts = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3350
+ Vr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3420
3351
  });
3421
- function Es(e, t) {
3422
- return new Os({
3352
+ function zs(e, t) {
3353
+ return new Ts({
3423
3354
  type: "prefault",
3424
3355
  innerType: e,
3425
3356
  get defaultValue() {
@@ -3427,59 +3358,59 @@ function Es(e, t) {
3427
3358
  }
3428
3359
  });
3429
3360
  }
3430
- const $s = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3431
- Gr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3361
+ const As = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3362
+ Jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3432
3363
  });
3433
- function Ps(e, t) {
3434
- return new $s({
3364
+ function Os(e, t) {
3365
+ return new As({
3435
3366
  type: "nonoptional",
3436
3367
  innerType: e,
3437
3368
  ...h(t)
3438
3369
  });
3439
3370
  }
3440
- const Zs = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3441
- Kr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => xo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3371
+ const Es = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3372
+ Br.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3442
3373
  });
3443
- function Cs(e, t) {
3444
- return new Zs({
3374
+ function $s(e, t) {
3375
+ return new Es({
3445
3376
  type: "catch",
3446
3377
  innerType: e,
3447
3378
  catchValue: typeof t == "function" ? t : () => t
3448
3379
  });
3449
3380
  }
3450
- const Is = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3451
- qr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Uo(e, n, r, o), e.in = t.in, e.out = t.out;
3381
+ const Ps = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3382
+ Yr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => jo(e, n, r, o), e.in = t.in, e.out = t.out;
3452
3383
  });
3453
- function Je(e, t) {
3454
- return new Is({
3384
+ function Ve(e, t) {
3385
+ return new Ps({
3455
3386
  type: "pipe",
3456
3387
  in: e,
3457
3388
  out: t
3458
3389
  // ...util.normalizeParams(params),
3459
3390
  });
3460
3391
  }
3461
- const Ns = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3462
- Xr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Vo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3392
+ const Zs = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3393
+ Gr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Wo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3463
3394
  });
3464
- function Ms(e) {
3465
- return new Ns({
3395
+ function Cs(e) {
3396
+ return new Zs({
3466
3397
  type: "readonly",
3467
3398
  innerType: e
3468
3399
  });
3469
3400
  }
3470
- const Ls = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3471
- gt.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n);
3401
+ const Is = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3402
+ gt.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, r, o) => Po(e, n);
3472
3403
  });
3473
- function Ds(e, t = {}) {
3474
- return /* @__PURE__ */ _t(Ls, e, t);
3404
+ function Ns(e, t = {}) {
3405
+ return /* @__PURE__ */ _t(Is, e, t);
3475
3406
  }
3476
- function Rs(e) {
3407
+ function Ls(e) {
3477
3408
  return /* @__PURE__ */ vt(e);
3478
3409
  }
3479
3410
  const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3480
3411
  if (!e._zod)
3481
3412
  throw new Error("Uninitialized schema in ZodMiniType.");
3482
- _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Vn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ct(e, n, r), e.parseAsync = async (n, r) => Jn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lt(e, n, r), e.check = (...n) => e.clone({
3413
+ _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Wn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => ct(e, n, r), e.parseAsync = async (n, r) => xn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lt(e, n, r), e.check = (...n) => e.clone({
3483
3414
  ...t,
3484
3415
  checks: [
3485
3416
  ...t.checks ?? [],
@@ -3490,141 +3421,141 @@ const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3490
3421
  we.init(e, t), R.init(e, t);
3491
3422
  });
3492
3423
  // @__NO_SIDE_EFFECTS__
3493
- function Be(e) {
3494
- return /* @__PURE__ */ eo(zt, e);
3424
+ function Je(e) {
3425
+ return /* @__PURE__ */ Xr(zt, e);
3495
3426
  }
3496
3427
  const U = /* @__PURE__ */ l("ZodMiniStringFormat", (e, t) => {
3497
3428
  P.init(e, t), zt.init(e, t);
3498
- }), Fs = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3499
- $r.init(e, t), U.init(e, t);
3429
+ }), Ms = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3430
+ Ar.init(e, t), U.init(e, t);
3500
3431
  });
3501
3432
  // @__NO_SIDE_EFFECTS__
3502
- function js(e) {
3503
- return /* @__PURE__ */ to(Fs, e);
3433
+ function Ds(e) {
3434
+ return /* @__PURE__ */ Hr(Ms, e);
3504
3435
  }
3505
- const Ws = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3506
- Er.init(e, t), U.init(e, t);
3436
+ const Rs = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3437
+ zr.init(e, t), U.init(e, t);
3507
3438
  });
3508
3439
  // @__NO_SIDE_EFFECTS__
3509
- function xs(e) {
3510
- return /* @__PURE__ */ no(Ws, e);
3440
+ function Fs(e) {
3441
+ return /* @__PURE__ */ Qr(Rs, e);
3511
3442
  }
3512
- const Us = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3513
- Pr.init(e, t), U.init(e, t);
3443
+ const js = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3444
+ Or.init(e, t), U.init(e, t);
3514
3445
  });
3515
3446
  // @__NO_SIDE_EFFECTS__
3516
- function Vs(e) {
3517
- return /* @__PURE__ */ ro(Us, e);
3447
+ function Ws(e) {
3448
+ return /* @__PURE__ */ eo(js, e);
3518
3449
  }
3519
- const Js = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3520
- Mr.init(e, t), U.init(e, t);
3450
+ const xs = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3451
+ Cr.init(e, t), U.init(e, t);
3521
3452
  });
3522
3453
  // @__NO_SIDE_EFFECTS__
3523
- function Bs(e) {
3524
- return /* @__PURE__ */ oo(Js, e);
3454
+ function Us(e) {
3455
+ return /* @__PURE__ */ to(xs, e);
3525
3456
  }
3526
- const Ys = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3527
- Lr.init(e, t), U.init(e, t);
3457
+ const Vs = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3458
+ Ir.init(e, t), U.init(e, t);
3528
3459
  });
3529
3460
  // @__NO_SIDE_EFFECTS__
3530
- function Gs(e) {
3531
- return /* @__PURE__ */ so(Ys, e);
3461
+ function Js(e) {
3462
+ return /* @__PURE__ */ no(Vs, e);
3532
3463
  }
3533
- const Ks = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3534
- Dr.init(e, t), U.init(e, t);
3464
+ const Bs = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3465
+ Nr.init(e, t), U.init(e, t);
3535
3466
  });
3536
3467
  // @__NO_SIDE_EFFECTS__
3537
- function qs(e) {
3538
- return /* @__PURE__ */ $o(Ks, "hostname", or, e);
3468
+ function Ys(e) {
3469
+ return /* @__PURE__ */ Ao(Bs, "hostname", tr, e);
3539
3470
  }
3540
3471
  const At = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
3541
3472
  ft.init(e, t), R.init(e, t);
3542
3473
  });
3543
3474
  // @__NO_SIDE_EFFECTS__
3544
- function Ye(e) {
3545
- return /* @__PURE__ */ lo(At, e);
3475
+ function Be(e) {
3476
+ return /* @__PURE__ */ ao(At, e);
3546
3477
  }
3547
- const Xs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3548
- Rr.init(e, t), At.init(e, t);
3478
+ const Gs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3479
+ Lr.init(e, t), At.init(e, t);
3549
3480
  });
3550
3481
  // @__NO_SIDE_EFFECTS__
3551
- function Hs(e) {
3552
- return /* @__PURE__ */ po(Xs, e);
3482
+ function Ks(e) {
3483
+ return /* @__PURE__ */ uo(Gs, e);
3553
3484
  }
3554
- const Qs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3555
- Fr.init(e, t), R.init(e, t);
3485
+ const qs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3486
+ Mr.init(e, t), R.init(e, t);
3556
3487
  });
3557
3488
  // @__NO_SIDE_EFFECTS__
3558
- function Ge(e) {
3559
- return /* @__PURE__ */ mo(Qs, e);
3489
+ function Ye(e) {
3490
+ return /* @__PURE__ */ co(qs, e);
3560
3491
  }
3561
- const ei = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3562
- jr.init(e, t), R.init(e, t);
3492
+ const Xs = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3493
+ Dr.init(e, t), R.init(e, t);
3563
3494
  });
3564
3495
  // @__NO_SIDE_EFFECTS__
3565
- function ge() {
3566
- return /* @__PURE__ */ fo(ei);
3496
+ function fe() {
3497
+ return /* @__PURE__ */ lo(Xs);
3567
3498
  }
3568
- const ti = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3499
+ const Hs = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3569
3500
  ht.init(e, t), R.init(e, t);
3570
3501
  });
3571
3502
  // @__NO_SIDE_EFFECTS__
3572
- function Ke(e, t) {
3573
- return new ti({
3503
+ function Ge(e, t) {
3504
+ return new Hs({
3574
3505
  type: "array",
3575
3506
  element: e,
3576
3507
  ...h(t)
3577
3508
  });
3578
3509
  }
3579
- const ni = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3510
+ const Qs = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3580
3511
  ke.init(e, t), R.init(e, t);
3581
3512
  });
3582
3513
  // @__NO_SIDE_EFFECTS__
3583
- function ri(e) {
3584
- return new ni({
3514
+ function ei(e) {
3515
+ return new Qs({
3585
3516
  type: "optional",
3586
3517
  innerType: e
3587
3518
  });
3588
3519
  }
3589
- const oi = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3520
+ const ti = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3590
3521
  gt.init(e, t), R.init(e, t);
3591
3522
  });
3592
3523
  // @__NO_SIDE_EFFECTS__
3593
- function S(e, t = {}) {
3594
- return /* @__PURE__ */ _t(oi, e, t);
3524
+ function w(e, t = {}) {
3525
+ return /* @__PURE__ */ _t(ti, e, t);
3595
3526
  }
3596
3527
  // @__NO_SIDE_EFFECTS__
3597
3528
  function Ot(e) {
3598
3529
  return /* @__PURE__ */ vt(e);
3599
3530
  }
3600
- const ye = {
3601
- email: { schema: /* @__PURE__ */ js() },
3602
- hostname: { schema: /* @__PURE__ */ qs() },
3603
- ipv4: { schema: /* @__PURE__ */ Bs() },
3604
- ipv6: { schema: /* @__PURE__ */ Gs() },
3605
- url: { schema: /* @__PURE__ */ Vs() },
3606
- uuid: { schema: /* @__PURE__ */ xs() },
3607
- date: { schema: Go() },
3608
- time: { schema: qo() },
3609
- "date-time": { schema: Bo() },
3610
- duration: { schema: Ho() }
3611
- }, si = Object.keys(ye), ii = (e) => (t, n) => {
3531
+ const he = {
3532
+ email: { schema: /* @__PURE__ */ Ds() },
3533
+ hostname: { schema: /* @__PURE__ */ Ys() },
3534
+ ipv4: { schema: /* @__PURE__ */ Us() },
3535
+ ipv6: { schema: /* @__PURE__ */ Js() },
3536
+ url: { schema: /* @__PURE__ */ Ws() },
3537
+ uuid: { schema: /* @__PURE__ */ Fs() },
3538
+ date: { schema: Jo() },
3539
+ time: { schema: Yo() },
3540
+ "date-time": { schema: Uo() },
3541
+ duration: { schema: Ko() }
3542
+ }, ni = Object.keys(he), ri = (e) => (t, n) => {
3612
3543
  switch (t.type) {
3613
3544
  case "string":
3614
- return ai(t, n);
3545
+ return oi(t, n);
3615
3546
  case "integer":
3616
3547
  case "number":
3617
- return ci(t, n);
3548
+ return ii(t, n);
3618
3549
  case "boolean":
3619
- return li(t, n);
3550
+ return ai(t, n);
3620
3551
  case "array":
3621
- return pi(t, n);
3552
+ return ui(t, n);
3622
3553
  case "custom": {
3623
3554
  if (!e)
3624
3555
  throw new Error(
3625
3556
  'Validator type "custom" requires a customValidators object, but it was not supplied.'
3626
3557
  );
3627
- return di(t, e);
3558
+ return ci(t, e);
3628
3559
  }
3629
3560
  }
3630
3561
  };
@@ -3632,137 +3563,137 @@ function b(e, t) {
3632
3563
  if (e !== void 0)
3633
3564
  return typeof e == "string" ? e : t?.translate(e.key, e.params, e.default) ?? e.default;
3634
3565
  }
3635
- function ai(e, t) {
3636
- return G(e, (n) => {
3566
+ function oi(e, t) {
3567
+ return Y(e, (n) => {
3637
3568
  const r = b(n.messages?.invalid, t);
3638
- let o = r ? /* @__PURE__ */ Be(r) : /* @__PURE__ */ Be();
3569
+ let o = r ? /* @__PURE__ */ Je(r) : /* @__PURE__ */ Je();
3639
3570
  if (n.required === !0) {
3640
3571
  const s = b(n.messages?.required, t) ?? "This field is required";
3641
- o = o.check(/* @__PURE__ */ S((i) => i.length > 0, { error: s }));
3572
+ o = o.check(/* @__PURE__ */ w((i) => i.length > 0, { error: s }));
3642
3573
  }
3643
3574
  if (typeof n.minLength == "number") {
3644
3575
  const s = b(n.messages?.minLength, t), i = n.minLength;
3645
3576
  o = o.check(
3646
- s ? /* @__PURE__ */ S((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3577
+ s ? /* @__PURE__ */ w((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3647
3578
  );
3648
3579
  }
3649
3580
  if (typeof n.maxLength == "number") {
3650
3581
  const s = b(n.messages?.maxLength, t), i = n.maxLength;
3651
3582
  o = o.check(
3652
- s ? /* @__PURE__ */ S((a) => a.length <= i, { error: s }) : /* @__PURE__ */ ae(i)
3583
+ s ? /* @__PURE__ */ w((a) => a.length <= i, { error: s }) : /* @__PURE__ */ se(i)
3653
3584
  );
3654
3585
  }
3655
3586
  if (typeof n.pattern == "string") {
3656
3587
  const s = b(n.messages?.pattern, t), i = new RegExp(n.pattern);
3657
3588
  o = o.check(
3658
- s ? /* @__PURE__ */ S((a) => i.test(a), { error: s }) : /* @__PURE__ */ bt(i)
3589
+ s ? /* @__PURE__ */ w((a) => i.test(a), { error: s }) : /* @__PURE__ */ bt(i)
3659
3590
  );
3660
3591
  }
3661
3592
  if (n.enum) {
3662
3593
  const s = n.enum, i = b(n.messages?.enum, t);
3663
- o = o.check(/* @__PURE__ */ S((a) => s.includes(a), i ? { error: i } : void 0));
3594
+ o = o.check(/* @__PURE__ */ w((a) => s.includes(a), i ? { error: i } : void 0));
3664
3595
  }
3665
3596
  if (n.const !== void 0) {
3666
3597
  const s = b(n.messages?.const, t);
3667
- o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3598
+ o = o.check(/* @__PURE__ */ w((i) => i === n.const, s ? { error: s } : void 0));
3668
3599
  }
3669
3600
  if (n.format !== void 0)
3670
- if (si.includes(n.format)) {
3601
+ if (ni.includes(n.format)) {
3671
3602
  const s = b(n.messages?.format, t);
3672
3603
  o = o.check(
3673
3604
  s ? /* @__PURE__ */ Ot((i, a) => {
3674
- const u = qe(
3675
- ye[n.format].schema,
3605
+ const u = Ke(
3606
+ he[n.format].schema,
3676
3607
  i
3677
3608
  );
3678
- Xe(u) || a.addIssue({ code: "custom", path: [], message: s });
3679
- }) : ye[n.format].schema
3609
+ qe(u) || a.addIssue({ code: "custom", path: [], message: s });
3610
+ }) : he[n.format].schema
3680
3611
  );
3681
3612
  } else
3682
3613
  console.error(`The string validation format "${n.format}" is not supported`);
3683
3614
  return o;
3684
3615
  });
3685
3616
  }
3686
- const ui = (e, t) => {
3617
+ const si = (e, t) => {
3687
3618
  if (t === 0)
3688
3619
  return !1;
3689
3620
  const n = e / t;
3690
3621
  return Math.abs(n - Math.round(n)) < 1e-10;
3691
3622
  };
3692
- function ci(e, t) {
3693
- return G(e, (n) => {
3623
+ function ii(e, t) {
3624
+ return Y(e, (n) => {
3694
3625
  const r = b(n.messages?.invalid, t);
3695
- let o = r ? /* @__PURE__ */ Ye(r) : /* @__PURE__ */ Ye();
3696
- if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Hs())), n.minimum !== void 0) {
3626
+ let o = r ? /* @__PURE__ */ Be(r) : /* @__PURE__ */ Be();
3627
+ if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Ks())), n.minimum !== void 0) {
3697
3628
  const s = b(n.messages?.minimum, t), i = n.minimum;
3698
- o = o.check(s ? /* @__PURE__ */ S((a) => a >= i, { error: s }) : /* @__PURE__ */ go(i));
3629
+ o = o.check(s ? /* @__PURE__ */ w((a) => a >= i, { error: s }) : /* @__PURE__ */ mo(i));
3699
3630
  }
3700
3631
  if (n.maximum !== void 0) {
3701
3632
  const s = b(n.messages?.maximum, t), i = n.maximum;
3702
- o = o.check(s ? /* @__PURE__ */ S((a) => a <= i, { error: s }) : /* @__PURE__ */ ho(i));
3633
+ o = o.check(s ? /* @__PURE__ */ w((a) => a <= i, { error: s }) : /* @__PURE__ */ po(i));
3703
3634
  }
3704
3635
  if (n.exclusiveMinimum !== void 0) {
3705
3636
  const s = b(n.messages?.exclusiveMinimum, t), i = n.exclusiveMinimum;
3706
- o = o.check(/* @__PURE__ */ S((a) => a > i, s ? { error: s } : void 0));
3637
+ o = o.check(/* @__PURE__ */ w((a) => a > i, s ? { error: s } : void 0));
3707
3638
  }
3708
3639
  if (n.exclusiveMaximum !== void 0) {
3709
3640
  const s = b(n.messages?.exclusiveMaximum, t), i = n.exclusiveMaximum;
3710
- o = o.check(/* @__PURE__ */ S((a) => a < i, s ? { error: s } : void 0));
3641
+ o = o.check(/* @__PURE__ */ w((a) => a < i, s ? { error: s } : void 0));
3711
3642
  }
3712
3643
  if (n.multipleOf !== void 0) {
3713
3644
  const s = b(n.messages?.multipleOf, t), i = n.multipleOf;
3714
3645
  o = o.check(
3715
- /* @__PURE__ */ S((a) => ui(a, i), s ? { error: s } : void 0)
3646
+ /* @__PURE__ */ w((a) => si(a, i), s ? { error: s } : void 0)
3716
3647
  );
3717
3648
  }
3718
3649
  if (n.enum) {
3719
3650
  const s = n.enum, i = b(n.messages?.enum, t);
3720
- o = o.check(/* @__PURE__ */ S((a) => s.includes(a), i ? { error: i } : void 0));
3651
+ o = o.check(/* @__PURE__ */ w((a) => s.includes(a), i ? { error: i } : void 0));
3721
3652
  }
3722
3653
  if (n.const !== void 0) {
3723
3654
  const s = b(n.messages?.const, t);
3724
- o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3655
+ o = o.check(/* @__PURE__ */ w((i) => i === n.const, s ? { error: s } : void 0));
3725
3656
  }
3726
3657
  return o;
3727
3658
  });
3728
3659
  }
3729
- function li(e, t) {
3730
- return G(e, (n) => {
3660
+ function ai(e, t) {
3661
+ return Y(e, (n) => {
3731
3662
  const r = b(n.messages?.invalid, t);
3732
- let o = r ? /* @__PURE__ */ Ge(r) : /* @__PURE__ */ Ge();
3663
+ let o = r ? /* @__PURE__ */ Ye(r) : /* @__PURE__ */ Ye();
3733
3664
  if (n.const !== void 0) {
3734
3665
  const s = b(n.messages?.const, t);
3735
- o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3666
+ o = o.check(/* @__PURE__ */ w((i) => i === n.const, s ? { error: s } : void 0));
3736
3667
  }
3737
3668
  return o;
3738
3669
  });
3739
3670
  }
3740
- function pi(e, t) {
3741
- return G(e, (n) => {
3671
+ function ui(e, t) {
3672
+ return Y(e, (n) => {
3742
3673
  const r = b(n.messages?.invalid, t);
3743
- let o = r ? /* @__PURE__ */ Ke(/* @__PURE__ */ ge(), r) : /* @__PURE__ */ Ke(/* @__PURE__ */ ge());
3674
+ let o = r ? /* @__PURE__ */ Ge(/* @__PURE__ */ fe(), r) : /* @__PURE__ */ Ge(/* @__PURE__ */ fe());
3744
3675
  if (n.required === !0) {
3745
3676
  const s = b(n.messages?.required, t) ?? "This field is required";
3746
- o = o.check(/* @__PURE__ */ S((i) => i.length > 0, { error: s }));
3677
+ o = o.check(/* @__PURE__ */ w((i) => i.length > 0, { error: s }));
3747
3678
  }
3748
3679
  if (typeof n.minItems == "number") {
3749
3680
  const s = b(n.messages?.minItems, t), i = n.minItems;
3750
3681
  o = o.check(
3751
- s ? /* @__PURE__ */ S((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3682
+ s ? /* @__PURE__ */ w((a) => a.length >= i, { error: s }) : /* @__PURE__ */ W(i)
3752
3683
  );
3753
3684
  }
3754
3685
  if (typeof n.maxItems == "number") {
3755
3686
  const s = b(n.messages?.maxItems, t), i = n.maxItems;
3756
3687
  o = o.check(
3757
- s ? /* @__PURE__ */ S((a) => a.length <= i, { error: s }) : /* @__PURE__ */ ae(i)
3688
+ s ? /* @__PURE__ */ w((a) => a.length <= i, { error: s }) : /* @__PURE__ */ se(i)
3758
3689
  );
3759
3690
  }
3760
3691
  return o;
3761
3692
  });
3762
3693
  }
3763
- function di(e, t) {
3764
- return G(e, (n) => {
3765
- let r = /* @__PURE__ */ ge();
3694
+ function ci(e, t) {
3695
+ return Y(e, (n) => {
3696
+ let r = /* @__PURE__ */ fe();
3766
3697
  return Pt(
3767
3698
  Object.keys(n),
3768
3699
  // filter non-custom validator keys
@@ -3771,11 +3702,11 @@ function di(e, t) {
3771
3702
  const s = n[o], i = t[o], a = i(s);
3772
3703
  r = r.check(
3773
3704
  /* @__PURE__ */ Ot((u, c) => {
3774
- const p = qe(
3705
+ const p = Ke(
3775
3706
  a,
3776
3707
  u
3777
3708
  );
3778
- if (!Xe(p)) {
3709
+ if (!qe(p)) {
3779
3710
  const d = p.issues[0];
3780
3711
  c.addIssue({
3781
3712
  code: "custom",
@@ -3789,14 +3720,48 @@ function di(e, t) {
3789
3720
  ), r;
3790
3721
  });
3791
3722
  }
3792
- function G(e, t) {
3723
+ function Y(e, t) {
3793
3724
  const n = t(e);
3794
- return e.required ? n : /* @__PURE__ */ ri(n);
3725
+ return e.required ? n : /* @__PURE__ */ ei(n);
3795
3726
  }
3796
- var mi = Object.defineProperty, fi = Object.getOwnPropertyDescriptor, ce = (e, t, n, r) => {
3797
- for (var o = r > 1 ? void 0 : r ? fi(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3727
+ const li = {
3728
+ // ACTION
3729
+ button: async () => (await import("./button.element-ATNRRDN3.js")).ButtonElement,
3730
+ // INPUTS
3731
+ calendar: async () => (await import("./calendar.element-O2of7VBr.js")).CalendarElement,
3732
+ rangeCalendar: async () => (await import("./range-calendar.element-C-4qqRGK.js")).RangeCalendarElement,
3733
+ rangeDateInput: async () => (await import("./range-date-input.element-D3xRMAaY.js")).RangeDateInputElement,
3734
+ rangeDatePicker: async () => (await import("./range-date-picker.element-Vgj3tFlQ.js")).RangeDatePickerElement,
3735
+ currency: async () => (await import("./currency.element-C7SZkoPP.js")).CurrencyElement,
3736
+ dateInput: async () => (await import("./date.element-COU_mEUt.js")).DateElement,
3737
+ datePicker: async () => (await import("./date-picker.element-D6v6aHR5.js")).DatePickerElement,
3738
+ dropdown: async () => (await import("./dropdown.element-DCUI5Y7I.js")).DropdownElement,
3739
+ list: async () => (await import("./list.element-G8RNRZXU.js")).ListElement,
3740
+ markdown: async () => (await import("./markdown.element-CT1JOOM3.js")).MarkdownElement,
3741
+ password: async () => (await import("./password.element-B4-0SCe4.js")).PasswordElement,
3742
+ textinput: async () => (await import("./textinput.element-DKuplF1A.js")).TextinputElement,
3743
+ textarea: async () => (await import("./textarea.element-C8yx2u0o.js")).TextareaElement,
3744
+ toggle: async () => (await import("./toggle.element-NXRrhALB.js")).ToggleElement,
3745
+ checkbox: async () => (await import("./checkbox.element-DMmer4Jw.js")).CheckboxElement,
3746
+ number: async () => (await import("./number.element-HaXEg_7U.js")).NumberElement,
3747
+ radiogroup: async () => (await import("./radiogroup.element-DzHLgRh1.js")).RadiogroupElement,
3748
+ select: async () => (await import("./select.element-DuGZjlZY.js")).SelectElement,
3749
+ // REPEATER
3750
+ repeater: async () => (await import("./repeater.element-Ry8HyMfW.js")).RepeaterElement,
3751
+ // LAYOUTS
3752
+ flex: async () => (await import("./flex.element-B0sG0YT1.js")).FlexElement,
3753
+ grid: async () => (await import("./grid.element-Bf5aEjkj.js")).GridElement,
3754
+ tabs: async () => (await import("./tabs.element-VLrtF1j5.js")).TabsElement,
3755
+ accordion: async () => (await import("./accordion.element-ChLmV6QT.js")).AccordionElement,
3756
+ // DISPLAY
3757
+ alert: async () => (await import("./alert.element-9QFlqjj9.js")).AlertElement,
3758
+ markdownText: async () => (await import("./markdown-text.element-C_1OqrGa.js")).MarkdownTextElement,
3759
+ renderer: async () => (await import("./renderer.element-DMsheQGi.js")).RendererElement
3760
+ };
3761
+ var pi = Object.defineProperty, di = Object.getOwnPropertyDescriptor, ae = (e, t, n, r) => {
3762
+ for (var o = r > 1 ? void 0 : r ? di(t, n) : t, s = e.length - 1, i; s >= 0; s--)
3798
3763
  (i = e[s]) && (o = (r ? i(t, n, o) : i(o)) || o);
3799
- return r && o && mi(t, n, o), o;
3764
+ return r && o && pi(t, n, o), o;
3800
3765
  };
3801
3766
  let B = class extends Zt {
3802
3767
  constructor() {
@@ -3812,10 +3777,10 @@ let B = class extends Zt {
3812
3777
  return this;
3813
3778
  }
3814
3779
  render() {
3815
- const e = this.config, t = Ln(e.formDef, e.formSelectors, e.formConfig), n = {
3780
+ const e = this.config, t = In(e.formDef, e.formSelectors, e.formConfig), n = {
3816
3781
  formDef: t.formDef,
3817
3782
  widgetLoaders: {
3818
- ...Mt,
3783
+ ...li,
3819
3784
  ...t.widgetLoaders,
3820
3785
  ...e.customWidgetLoaders ?? {}
3821
3786
  },
@@ -3830,7 +3795,7 @@ let B = class extends Zt {
3830
3795
  data: e.data,
3831
3796
  meta: e.meta,
3832
3797
  formName: e.formName
3833
- }, r = ii({
3798
+ }, r = ri({
3834
3799
  ...e.customValidators ?? {}
3835
3800
  }), o = t.formEvent, s = o ? (i) => o(i.detail) : void 0;
3836
3801
  return Ct`
@@ -3843,19 +3808,19 @@ let B = class extends Zt {
3843
3808
  `;
3844
3809
  }
3845
3810
  };
3846
- ce([
3847
- He({ attribute: !1 })
3811
+ ae([
3812
+ Xe({ attribute: !1 })
3848
3813
  ], B.prototype, "config", 2);
3849
- ce([
3850
- He({ type: String })
3814
+ ae([
3815
+ Xe({ type: String })
3851
3816
  ], B.prototype, "autocomplete", 2);
3852
- ce([
3817
+ ae([
3853
3818
  It("gui-core-form")
3854
3819
  ], B.prototype, "coreForm", 2);
3855
- B = ce([
3820
+ B = ae([
3856
3821
  Nt("gui-form")
3857
3822
  ], B);
3858
3823
  export {
3859
3824
  B as FormElement,
3860
- Mt as widgetLoaders
3825
+ li as widgetLoaders
3861
3826
  };