@golemui/gui-react 0.13.1 → 0.13.2

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,47 +1,14 @@
1
- import "@golemui/gui-shared";
2
1
  import { jsx as Ot } from "react/jsx-runtime";
3
2
  import { filterTap as $t, standardValidate as Ge, isStandardValidateSuccess as Ke } from "@golemui/core";
3
+ import "@golemui/gui-shared";
4
4
  import { FormComponent as Et } from "@golemui/react";
5
5
  import { useMemo as Pt } from "react";
6
- const Zt = {
7
- // INTERACTIVE
8
- button: async () => (await import("./Button-BYVR5EKG.js")).Button,
9
- // CONTROLS
10
- calendar: async () => (await import("./Calendar-BmMkpTcV.js")).Calendar,
11
- currency: async () => (await import("./Currency-D0pOQwU4.js")).Currency,
12
- dateInput: async () => (await import("./DateInput-CqFHtc9F.js")).DateInput,
13
- datePicker: async () => (await import("./DatePicker-BmW3TO0X.js")).DatePicker,
14
- dropdown: async () => (await import("./Dropdown-C-_zDFCe.js")).Dropdown,
15
- list: async () => (await import("./List-YkH8gdMh.js")).List,
16
- password: async () => (await import("./Password-B8QjtpUe.js")).Password,
17
- textinput: async () => (await import("./TextInput-KuHLSN2X.js")).TextInput,
18
- textarea: async () => (await import("./TextArea-BlRaVCon.js")).TextArea,
19
- markdown: async () => (await import("./Markdown-DeAW4y3P.js")).Markdown,
20
- checkbox: async () => (await import("./Checkbox-B1Tsf-vi.js")).Checkbox,
21
- toggle: async () => (await import("./Toggle-D-bglMPv.js")).Toggle,
22
- number: async () => (await import("./Number-GsGZMR5a.js")).NumberInput,
23
- select: async () => (await import("./Select-CCCPYQW6.js")).Select,
24
- radiogroup: async () => (await import("./RadioGroup-Cd1_Zkkz.js")).RadioGroup,
25
- rangeCalendar: async () => (await import("./RangeCalendar-9IJoFEXw.js")).RangeCalendar,
26
- rangeDateInput: async () => (await import("./RangeDateInput-DrVR4T_z.js")).RangeDateInput,
27
- rangeDatePicker: async () => (await import("./RangeDatePicker-Cq_Tt6NE.js")).RangeDatePicker,
28
- // REPEATER
29
- repeater: async () => (await import("./Repeater-DE-DAylQ.js")).Repeater,
30
- // LAYOUTS
31
- flex: async () => (await import("./Flex-Rs-RvIcq.js")).Flex,
32
- grid: async () => (await import("./Grid-BcPUrfRL.js")).Grid,
33
- tabs: async () => (await import("./Tabs-BVgVVvnu.js")).Tabs,
34
- accordion: async () => (await import("./Accordion-BU3skkjb.js")).Accordion,
35
- // DISPLAY
36
- alert: async () => (await import("./Alert-DpUiDxQT.js")).Alert,
37
- markdownText: async () => (await import("./MarkdownText-BdISjAsE.js")).MarkdownText,
38
- renderer: async () => (await import("./Renderer-CWqudTUu.js")).Renderer
39
- }, H = {
6
+ const H = {
40
7
  ACTIONS: "ACTIONS",
41
8
  LAYOUTS: "LAYOUTS",
42
9
  DISPLAYS: "DISPLAYS"
43
10
  };
44
- function Ct(e) {
11
+ function Zt(e) {
45
12
  return function(t, n = () => !0) {
46
13
  return {
47
14
  kind: "leaf",
@@ -104,25 +71,25 @@ function g(e) {
104
71
  ...e.getChildren ? { getChildren: e.getChildren } : {}
105
72
  };
106
73
  qe(e.itemType, o);
107
- const s = Ct(e.itemType);
74
+ const s = Zt(e.itemType);
108
75
  return { gsl: s, gslByUid: (a, u) => s(u, ((c) => c.uid === a)) };
109
76
  }
110
- function It(e) {
77
+ function Ct(e) {
111
78
  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
79
  }
113
80
  function k(e, t) {
114
- return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: It(e.path) };
81
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Ct(e.path) };
115
82
  }
116
83
  function N(e, t) {
117
84
  return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
118
85
  }
119
- const Nt = (e, t) => ({
86
+ const It = (e, t) => ({
120
87
  type: "ITEMS",
121
88
  itemType: H.DISPLAYS,
122
89
  items: [{ render: e }],
123
90
  tags: []
124
91
  });
125
- class Mt {
92
+ class Nt {
126
93
  /**
127
94
  * Deep merges two objects, with right taking precedence over left when properties conflict.
128
95
  * Arrays are replaced, not merged.
@@ -141,8 +108,8 @@ class Mt {
141
108
  return r;
142
109
  }
143
110
  }
144
- const Lt = new Mt();
145
- function Dt(e, t) {
111
+ const Mt = new Nt();
112
+ function Lt(e, t) {
146
113
  return {
147
114
  items: [e],
148
115
  type: "ITEMS",
@@ -150,7 +117,7 @@ function Dt(e, t) {
150
117
  tags: t ?? []
151
118
  };
152
119
  }
153
- const Rt = (e) => Dt({
120
+ const Dt = (e) => Lt({
154
121
  uid: "#submit",
155
122
  label: "Submit"
156
123
  }), He = {
@@ -178,11 +145,11 @@ const Rt = (e) => Dt({
178
145
  DISPLAYS: /* @__PURE__ */ new Set(["DISPLAYS", "ALERTS", "CUSTOM_DISPLAY"]),
179
146
  LAYOUTS: /* @__PURE__ */ new Set(["LAYOUTS", "TABS", "ACCORDION", "CUSTOM_LAYOUT"])
180
147
  };
181
- function Ft(e, t) {
148
+ function Rt(e, t) {
182
149
  const n = He[e];
183
150
  return n ? n.has(t) : e === t;
184
151
  }
185
- class jt {
152
+ class Ft {
186
153
  resolve(t, n) {
187
154
  const r = [];
188
155
  for (const s of n)
@@ -199,7 +166,7 @@ class jt {
199
166
  this.collectFromLeaf(o, n, r);
200
167
  }
201
168
  collectFromLeaf(t, n, r) {
202
- Ft(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
169
+ Rt(t.selectorType, n.itemType ?? "") && t.matcher(n) && r.push(t);
203
170
  }
204
171
  rollUpSensibleDefaults(t) {
205
172
  const n = /* @__PURE__ */ new Map(), r = (s, i) => {
@@ -219,8 +186,8 @@ class jt {
219
186
  return o;
220
187
  }
221
188
  }
222
- const Wt = new jt();
223
- class xt {
189
+ const jt = new Ft();
190
+ class Wt {
224
191
  constructor(t) {
225
192
  this.objectUtils = t;
226
193
  }
@@ -301,8 +268,8 @@ class xt {
301
268
  };
302
269
  }
303
270
  }
304
- const Ut = new xt(Lt);
305
- class Vt {
271
+ const xt = new Wt(Mt);
272
+ class Ut {
306
273
  mapToWidget(t, n) {
307
274
  if (t.kind === "dynamic") {
308
275
  const r = t.fn;
@@ -325,8 +292,8 @@ class Vt {
325
292
  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
293
  }
327
294
  }
328
- const Jt = new Vt();
329
- class Bt {
295
+ const Vt = new Ut();
296
+ class Jt {
330
297
  /**
331
298
  * Ensures the output is always a uniform GslSelector[] of aggregated selectors.
332
299
  *
@@ -353,13 +320,13 @@ class Bt {
353
320
  };
354
321
  }
355
322
  }
356
- const Yt = new Bt(), Qe = {
323
+ const Bt = new Jt(), Qe = {
357
324
  onLoad: "load",
358
325
  onChange: "change",
359
326
  onFilter: "filter",
360
327
  onBlur: "blur"
361
- }, Gt = Object.keys(Qe);
362
- class Kt {
328
+ }, Yt = Object.keys(Qe);
329
+ class Gt {
363
330
  // ── Action-specific: onClick + submit ─────────────────────────
364
331
  extractOnClickFromMergeResult(t, n, r, o) {
365
332
  if (t.kind === "dynamic") {
@@ -420,7 +387,7 @@ class Kt {
420
387
  const o = { ...t.on || {} };
421
388
  let s = !1;
422
389
  const i = { ...t };
423
- for (const a of Gt) {
390
+ for (const a of Yt) {
424
391
  const u = t[a];
425
392
  if (u == null) continue;
426
393
  const c = Qe[a];
@@ -433,7 +400,7 @@ class Kt {
433
400
  return s && (i.on = o), i;
434
401
  }
435
402
  }
436
- const Q = new Kt(), qt = {
403
+ const Q = new Gt(), Kt = {
437
404
  input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
438
405
  action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
439
406
  layout: /* @__PURE__ */ new Set(["size"]),
@@ -444,7 +411,7 @@ const Q = new Kt(), qt = {
444
411
  onFilter: "filter",
445
412
  onClick: "click"
446
413
  };
447
- class Xt {
414
+ class qt {
448
415
  /**
449
416
  * Extracts `states` from a merge result, combining with state-targeted
450
417
  * GSL leaf selectors from `_gslStates`.
@@ -494,7 +461,7 @@ class Xt {
494
461
  const { stateOverrides: s } = n;
495
462
  if (Object.keys(s).length === 0)
496
463
  return t;
497
- const i = { ...t }, a = t.kind, u = qt[a] || /* @__PURE__ */ new Set();
464
+ const i = { ...t }, a = t.kind, u = Kt[a] || /* @__PURE__ */ new Set();
498
465
  t.props && (i.props = { ...t.props }), t.on && (i.on = { ...t.on });
499
466
  for (const [c, p] of Object.entries(s))
500
467
  for (const [d, m] of Object.entries(p))
@@ -523,17 +490,17 @@ class Xt {
523
490
  } else typeof o == "string" && (t.on[`${a}.${n}`] = o);
524
491
  }
525
492
  }
526
- const Ht = new Xt();
527
- function Qt() {
493
+ const Xt = new qt();
494
+ function Ht() {
528
495
  let e = 0;
529
496
  return { next: () => `event_${e++}` };
530
497
  }
531
- class en {
498
+ class Qt {
532
499
  constructor(t, n, r, o, s) {
533
500
  this.resolver = t, this.merger = n, this.mapper = r, this.eventWiring = o, this.stateExpansion = s;
534
501
  }
535
502
  walkAndMap(t, n, r) {
536
- const o = /* @__PURE__ */ new Map(), s = Qt(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
503
+ const o = /* @__PURE__ */ new Map(), s = Ht(), i = { value: 0 }, a = /* @__PURE__ */ new Set();
537
504
  return { widgets: this.walkItems(
538
505
  t,
539
506
  n,
@@ -681,19 +648,19 @@ function v(e) {
681
648
  function O(e, t) {
682
649
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
683
650
  }
684
- function tn(e) {
651
+ function en(e) {
685
652
  switch (e.type) {
686
653
  case "text":
687
- return rn(e);
654
+ return nn(e);
688
655
  case "number":
689
- return on(e);
656
+ return rn(e);
690
657
  case "boolean":
691
- return nn(e);
658
+ return tn(e);
692
659
  default:
693
660
  throw new Error(`Unsupported field type "${e.type}"`);
694
661
  }
695
662
  }
696
- function nn(e) {
663
+ function tn(e) {
697
664
  const t = v(e);
698
665
  return {
699
666
  uid: e.uid ?? "",
@@ -707,7 +674,7 @@ function nn(e) {
707
674
  props: t
708
675
  };
709
676
  }
710
- function rn(e) {
677
+ function nn(e) {
711
678
  const t = v(e);
712
679
  return {
713
680
  uid: e.uid ?? "",
@@ -724,7 +691,7 @@ function rn(e) {
724
691
  validator: O(e.validator, "string")
725
692
  };
726
693
  }
727
- function on(e) {
694
+ function rn(e) {
728
695
  const t = v(e);
729
696
  return {
730
697
  uid: e.uid ?? "",
@@ -755,9 +722,9 @@ g({
755
722
  return n = N(n, t), n;
756
723
  }
757
724
  },
758
- mapToWidget: tn
725
+ mapToWidget: en
759
726
  });
760
- function sn(e) {
727
+ function on(e) {
761
728
  const {
762
729
  uid: t,
763
730
  label: n,
@@ -786,7 +753,7 @@ function sn(e) {
786
753
  g({
787
754
  itemType: "ACTIONS",
788
755
  entryShape: "bare",
789
- mapToWidget: sn,
756
+ mapToWidget: on,
790
757
  afterMerge: (e, t) => Q.extractOnClickFromMergeResult(
791
758
  e,
792
759
  t.eventRegistry,
@@ -794,7 +761,7 @@ g({
794
761
  t.eventIdGenerator
795
762
  )
796
763
  });
797
- function an(e) {
764
+ function sn(e) {
798
765
  const {
799
766
  uid: t,
800
767
  widgetName: n,
@@ -816,7 +783,7 @@ function an(e) {
816
783
  children: []
817
784
  };
818
785
  }
819
- function un(e, t) {
786
+ function an(e, t) {
820
787
  const n = t.walkChildren(t.children ?? []);
821
788
  if (e.kind === "static")
822
789
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
@@ -826,17 +793,17 @@ function un(e, t) {
826
793
  return { ...t.mapStaticDef(s, "LAYOUTS"), children: n };
827
794
  });
828
795
  }
829
- function cn(e) {
796
+ function un(e) {
830
797
  return e.children;
831
798
  }
832
799
  g({
833
800
  itemType: "LAYOUTS",
834
801
  entryShape: "compound",
835
- mapToWidget: an,
836
- buildCustomWidget: un,
837
- getChildren: cn
802
+ mapToWidget: sn,
803
+ buildCustomWidget: an,
804
+ getChildren: un
838
805
  });
839
- function ln(e) {
806
+ function cn(e) {
840
807
  return {
841
808
  uid: "",
842
809
  kind: "display",
@@ -844,7 +811,7 @@ function ln(e) {
844
811
  props: { render: e.render }
845
812
  };
846
813
  }
847
- function pn(e, t) {
814
+ function ln(e, t) {
848
815
  if (e.kind === "static") {
849
816
  const r = e.def;
850
817
  return ((o) => ({
@@ -872,8 +839,8 @@ function pn(e, t) {
872
839
  g({
873
840
  itemType: "DISPLAYS",
874
841
  entryShape: "bare",
875
- mapToWidget: ln,
876
- buildCustomWidget: pn
842
+ mapToWidget: cn,
843
+ buildCustomWidget: ln
877
844
  });
878
845
  g({
879
846
  itemType: "CALENDAR",
@@ -1055,7 +1022,7 @@ g({
1055
1022
  props: v(e)
1056
1023
  })
1057
1024
  });
1058
- function dn(e) {
1025
+ function pn(e) {
1059
1026
  return {
1060
1027
  uid: e.uid ?? "",
1061
1028
  kind: "layout",
@@ -1068,7 +1035,7 @@ function dn(e) {
1068
1035
  children: []
1069
1036
  };
1070
1037
  }
1071
- function mn(e, t) {
1038
+ function dn(e, t) {
1072
1039
  const n = t.walkChildren(t.children ?? []);
1073
1040
  if (e.kind === "static")
1074
1041
  return { ...t.mapStaticDef(e.def, "TABS"), children: n };
@@ -1078,15 +1045,15 @@ function mn(e, t) {
1078
1045
  return { ...t.mapStaticDef(s, "TABS"), children: n };
1079
1046
  });
1080
1047
  }
1081
- function fn(e) {
1048
+ function mn(e) {
1082
1049
  return e.children;
1083
1050
  }
1084
1051
  g({
1085
1052
  itemType: "TABS",
1086
1053
  entryShape: "compound",
1087
- mapToWidget: dn,
1088
- buildCustomWidget: mn,
1089
- getChildren: fn
1054
+ mapToWidget: pn,
1055
+ buildCustomWidget: dn,
1056
+ getChildren: mn
1090
1057
  });
1091
1058
  g({
1092
1059
  itemType: "LIST",
@@ -1167,7 +1134,7 @@ g({
1167
1134
  props: v(e)
1168
1135
  })
1169
1136
  });
1170
- function hn(e) {
1137
+ function fn(e) {
1171
1138
  return {
1172
1139
  uid: e.uid ?? "",
1173
1140
  kind: "layout",
@@ -1181,7 +1148,7 @@ function hn(e) {
1181
1148
  children: []
1182
1149
  };
1183
1150
  }
1184
- function yn(e, t) {
1151
+ function hn(e, t) {
1185
1152
  const n = t.walkChildren(t.children ?? []);
1186
1153
  if (e.kind === "static")
1187
1154
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
@@ -1191,21 +1158,21 @@ function yn(e, t) {
1191
1158
  return { ...t.mapStaticDef(s, "ACCORDION"), children: n };
1192
1159
  });
1193
1160
  }
1194
- function gn(e) {
1161
+ function yn(e) {
1195
1162
  return e.children;
1196
1163
  }
1197
1164
  g({
1198
1165
  itemType: "ACCORDION",
1199
1166
  entryShape: "compound",
1200
- mapToWidget: hn,
1201
- buildCustomWidget: yn,
1202
- getChildren: gn
1167
+ mapToWidget: fn,
1168
+ buildCustomWidget: hn,
1169
+ getChildren: yn
1203
1170
  });
1204
- function bn(e) {
1171
+ function gn(e) {
1205
1172
  const t = {};
1206
1173
  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
1174
  }
1208
- function _n(e) {
1175
+ function bn(e) {
1209
1176
  return {
1210
1177
  uid: e.uid ?? "",
1211
1178
  kind: "input",
@@ -1216,7 +1183,7 @@ function _n(e) {
1216
1183
  ...e.readonly != null ? { readonly: e.readonly } : {},
1217
1184
  ...e.validator != null ? { validator: O(e.validator, "array") } : {},
1218
1185
  props: {
1219
- ...bn(e),
1186
+ ...gn(e),
1220
1187
  template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
1221
1188
  }
1222
1189
  };
@@ -1230,7 +1197,7 @@ function le(e, t) {
1230
1197
  o?.template?.children && Array.isArray(o.template.children) && le(o.template.children, t);
1231
1198
  }
1232
1199
  }
1233
- function vn(e, t) {
1200
+ function _n(e, t) {
1234
1201
  const n = t.walkChildren(t.children ?? []), r = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
1235
1202
  r && le(n, r + ".items.");
1236
1203
  const o = {
@@ -1256,25 +1223,25 @@ function vn(e, t) {
1256
1223
  };
1257
1224
  });
1258
1225
  }
1259
- function Sn(e) {
1226
+ function vn(e) {
1260
1227
  return {
1261
1228
  baseDef: e.def,
1262
1229
  path: e.key,
1263
1230
  children: e.children
1264
1231
  };
1265
1232
  }
1266
- function kn(e) {
1233
+ function Sn(e) {
1267
1234
  return e.children;
1268
1235
  }
1269
- const wn = {
1270
- parseEntry: Sn,
1236
+ const kn = {
1237
+ parseEntry: vn,
1271
1238
  rollUpSensibleDefaults: () => ({}),
1272
1239
  applySensibleDefaults: (e) => e,
1273
- mapToWidget: _n,
1274
- buildCustomWidget: vn,
1275
- getChildren: kn
1240
+ mapToWidget: bn,
1241
+ buildCustomWidget: _n,
1242
+ getChildren: Sn
1276
1243
  };
1277
- qe("REPEATER", wn);
1244
+ qe("REPEATER", kn);
1278
1245
  g({
1279
1246
  itemType: "MARKDOWN",
1280
1247
  entryShape: "keyed",
@@ -1408,7 +1375,7 @@ g({
1408
1375
  t.eventIdGenerator
1409
1376
  )
1410
1377
  });
1411
- function Tn(e) {
1378
+ function wn(e) {
1412
1379
  return {
1413
1380
  uid: e.uid ?? "",
1414
1381
  kind: "layout",
@@ -1417,7 +1384,7 @@ function Tn(e) {
1417
1384
  children: []
1418
1385
  };
1419
1386
  }
1420
- function zn(e, t) {
1387
+ function Tn(e, t) {
1421
1388
  const n = t.walkChildren(t.children ?? []);
1422
1389
  if (e.kind === "static")
1423
1390
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
@@ -1427,17 +1394,17 @@ function zn(e, t) {
1427
1394
  return { ...t.mapStaticDef(s, "CUSTOM_LAYOUT"), children: n };
1428
1395
  });
1429
1396
  }
1430
- function An(e) {
1397
+ function zn(e) {
1431
1398
  return e.children;
1432
1399
  }
1433
1400
  g({
1434
1401
  itemType: "CUSTOM_LAYOUT",
1435
1402
  entryShape: "compound",
1436
- mapToWidget: Tn,
1437
- buildCustomWidget: zn,
1438
- getChildren: An
1403
+ mapToWidget: wn,
1404
+ buildCustomWidget: Tn,
1405
+ getChildren: zn
1439
1406
  });
1440
- class On {
1407
+ class An {
1441
1408
  constructor(t, n, r) {
1442
1409
  this.selectorNormalizer = t, this.eventWiring = n, this.walker = r;
1443
1410
  }
@@ -1467,7 +1434,7 @@ class On {
1467
1434
  */
1468
1435
  prepareForm(t, n, r) {
1469
1436
  const s = (Array.isArray(t) ? [...t] : [t]).map(
1470
- (c) => typeof c == "function" ? Nt(c) : c
1437
+ (c) => typeof c == "function" ? It(c) : c
1471
1438
  ), i = this.selectorNormalizer.normalizeSelectors(n), a = {
1472
1439
  ...this.selectorNormalizer.extractFormConfig(),
1473
1440
  ...r
@@ -1476,7 +1443,7 @@ class On {
1476
1443
  throw new Error(
1477
1444
  `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
1445
  );
1479
- if (!a.suppressAutomaticSubmit && u === 0 && s.push(Rt()), !a.suppressAutomaticStack) {
1446
+ if (!a.suppressAutomaticSubmit && u === 0 && s.push(Dt()), !a.suppressAutomaticStack) {
1480
1447
  const c = {
1481
1448
  def: { uid: "#root", direction: "column", widgetName: "flex" },
1482
1449
  children: s
@@ -1528,14 +1495,14 @@ class On {
1528
1495
  }), 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
1496
  }
1530
1497
  }
1531
- const $n = new en(
1532
- Wt,
1533
- Ut,
1534
- Jt,
1498
+ const On = new Qt(
1499
+ jt,
1500
+ xt,
1501
+ Vt,
1535
1502
  Q,
1536
- Ht
1537
- ), En = new On(Yt, Q, $n);
1538
- function Pn(e) {
1503
+ Xt
1504
+ ), $n = new An(Bt, Q, On);
1505
+ function En(e) {
1539
1506
  return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(Ae) : Ae(e);
1540
1507
  }
1541
1508
  function Ae(e) {
@@ -1544,21 +1511,21 @@ function Ae(e) {
1544
1511
  const t = e;
1545
1512
  return t.type === "ITEMS" && typeof t.itemType == "string";
1546
1513
  }
1547
- const Oe = Object.freeze({}), Zn = Object.freeze({}), $e = /* @__PURE__ */ new WeakMap();
1514
+ const Oe = Object.freeze({}), Pn = Object.freeze({}), $e = /* @__PURE__ */ new WeakMap();
1548
1515
  function ce(e, t) {
1549
1516
  return e == null ? t : typeof e == "object" ? e : {};
1550
1517
  }
1551
- function Cn(e, t, n) {
1552
- if (!Pn(e))
1518
+ function Zn(e, t, n) {
1519
+ if (!En(e))
1553
1520
  return { formDef: e };
1554
- const r = ce(e, Oe), o = ce(t, Oe), s = ce(n, Zn);
1521
+ const r = ce(e, Oe), o = ce(t, Oe), s = ce(n, Pn);
1555
1522
  let i = $e.get(r);
1556
1523
  i || (i = /* @__PURE__ */ new WeakMap(), $e.set(r, i));
1557
1524
  let a = i.get(o);
1558
1525
  a || (a = /* @__PURE__ */ new WeakMap(), i.set(o, a));
1559
1526
  const u = a.get(s);
1560
1527
  if (u) return u;
1561
- const c = En.processDxFacade(
1528
+ const c = $n.processDxFacade(
1562
1529
  e,
1563
1530
  t,
1564
1531
  n
@@ -1616,9 +1583,9 @@ class et extends Error {
1616
1583
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
1617
1584
  }
1618
1585
  }
1619
- const In = {};
1586
+ const Cn = {};
1620
1587
  function L(e) {
1621
- return In;
1588
+ return Cn;
1622
1589
  }
1623
1590
  function pe(e, t) {
1624
1591
  return typeof t == "bigint" ? t.toString() : t;
@@ -1647,7 +1614,7 @@ function y(e, t, n) {
1647
1614
  configurable: !0
1648
1615
  });
1649
1616
  }
1650
- function Nn(...e) {
1617
+ function In(...e) {
1651
1618
  const t = {};
1652
1619
  for (const n of e) {
1653
1620
  const r = Object.getOwnPropertyDescriptors(n);
@@ -1655,7 +1622,7 @@ function Nn(...e) {
1655
1622
  }
1656
1623
  return Object.defineProperties({}, t);
1657
1624
  }
1658
- function Mn(e) {
1625
+ function Nn(e) {
1659
1626
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
1660
1627
  }
1661
1628
  const tt = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
@@ -1695,7 +1662,7 @@ function h(e) {
1695
1662
  }
1696
1663
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
1697
1664
  }
1698
- const Ln = {
1665
+ const Mn = {
1699
1666
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
1700
1667
  int32: [-2147483648, 2147483647],
1701
1668
  uint32: [0, 4294967295],
@@ -1710,7 +1677,7 @@ function F(e, t = 0) {
1710
1677
  return !0;
1711
1678
  return !1;
1712
1679
  }
1713
- function Dn(e, t) {
1680
+ function Ln(e, t) {
1714
1681
  return t.map((n) => {
1715
1682
  var r;
1716
1683
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -1751,13 +1718,13 @@ const ot = (e, t) => {
1751
1718
  enumerable: !1
1752
1719
  });
1753
1720
  }, st = l("$ZodError", ot), ee = l("$ZodError", ot, { Parent: Error });
1754
- function Rn(e, t = (n) => n.message) {
1721
+ function Dn(e, t = (n) => n.message) {
1755
1722
  const n = {}, r = [];
1756
1723
  for (const o of e.issues)
1757
1724
  o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
1758
1725
  return { formErrors: r, fieldErrors: n };
1759
1726
  }
1760
- function Fn(e, t = (n) => n.message) {
1727
+ function Rn(e, t = (n) => n.message) {
1761
1728
  const n = { _errors: [] }, r = (o) => {
1762
1729
  for (const s of o.issues)
1763
1730
  if (s.code === "invalid_union" && s.errors.length)
@@ -1787,7 +1754,7 @@ const te = (e) => (t, n, r, o) => {
1787
1754
  throw tt(a, o?.callee), a;
1788
1755
  }
1789
1756
  return i.value;
1790
- }, jn = /* @__PURE__ */ te(ee), ne = (e) => async (t, n, r, o) => {
1757
+ }, Fn = /* @__PURE__ */ te(ee), ne = (e) => async (t, n, r, o) => {
1791
1758
  const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
1792
1759
  let i = t._zod.run({ value: n, issues: [] }, s);
1793
1760
  if (i instanceof Promise && (i = await i), i.issues.length) {
@@ -1795,7 +1762,7 @@ const te = (e) => (t, n, r, o) => {
1795
1762
  throw tt(a, o?.callee), a;
1796
1763
  }
1797
1764
  return i.value;
1798
- }, Wn = /* @__PURE__ */ ne(ee), re = (e) => (t, n, r) => {
1765
+ }, jn = /* @__PURE__ */ ne(ee), re = (e) => (t, n, r) => {
1799
1766
  const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
1800
1767
  if (s instanceof Promise)
1801
1768
  throw new j();
@@ -1810,43 +1777,43 @@ const te = (e) => (t, n, r, o) => {
1810
1777
  success: !1,
1811
1778
  error: new e(s.issues.map((i) => D(i, o, L())))
1812
1779
  } : { success: !0, data: s.value };
1813
- }, at = /* @__PURE__ */ oe(ee), xn = (e) => (t, n, r) => {
1780
+ }, at = /* @__PURE__ */ oe(ee), Wn = (e) => (t, n, r) => {
1814
1781
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1815
1782
  return te(e)(t, n, o);
1816
- }, Un = (e) => (t, n, r) => te(e)(t, n, r), Vn = (e) => async (t, n, r) => {
1783
+ }, xn = (e) => (t, n, r) => te(e)(t, n, r), Un = (e) => async (t, n, r) => {
1817
1784
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1818
1785
  return ne(e)(t, n, o);
1819
- }, Jn = (e) => async (t, n, r) => ne(e)(t, n, r), Bn = (e) => (t, n, r) => {
1786
+ }, Vn = (e) => async (t, n, r) => ne(e)(t, n, r), Jn = (e) => (t, n, r) => {
1820
1787
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1821
1788
  return re(e)(t, n, o);
1822
- }, Yn = (e) => (t, n, r) => re(e)(t, n, r), Gn = (e) => async (t, n, r) => {
1789
+ }, Bn = (e) => (t, n, r) => re(e)(t, n, r), Yn = (e) => async (t, n, r) => {
1823
1790
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
1824
1791
  return oe(e)(t, n, o);
1825
- }, Kn = (e) => async (t, n, r) => oe(e)(t, n, r), qn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ze = (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)$/, Xn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Hn = /^(?:(?: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])$/, Qn = /^(([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}|:))$/, er = /^(?=.{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])?)*\.?$/, ut = "(?:(?:\\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])))", tr = /* @__PURE__ */ new RegExp(`^${ut}$`);
1792
+ }, Gn = (e) => async (t, n, r) => oe(e)(t, n, r), Kn = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ze = (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)$/, qn = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Xn = /^(?:(?: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])$/, Hn = /^(([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}|:))$/, Qn = /^(?=.{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])?)*\.?$/, ut = "(?:(?:\\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])))", er = /* @__PURE__ */ new RegExp(`^${ut}$`);
1826
1793
  function ct(e) {
1827
1794
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
1828
1795
  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
1796
  }
1830
- function nr(e) {
1797
+ function tr(e) {
1831
1798
  return new RegExp(`^${ct(e)}$`);
1832
1799
  }
1833
- function rr(e) {
1800
+ function nr(e) {
1834
1801
  const t = ct({ precision: e.precision }), n = ["Z"];
1835
1802
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
1836
1803
  const r = `${t}(?:${n.join("|")})`;
1837
1804
  return new RegExp(`^${ut}T(?:${r})$`);
1838
1805
  }
1839
- const or = (e) => {
1806
+ const rr = (e) => {
1840
1807
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
1841
1808
  return new RegExp(`^${t}$`);
1842
- }, sr = /^-?\d+$/, ir = /^-?\d+(?:\.\d+)?$/, ar = /^(?:true|false)$/i, ur = /^[^A-Z]*$/, cr = /^[^a-z]*$/, E = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1809
+ }, or = /^-?\d+$/, sr = /^-?\d+(?:\.\d+)?$/, ir = /^(?:true|false)$/i, ar = /^[^A-Z]*$/, ur = /^[^a-z]*$/, E = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
1843
1810
  var n;
1844
1811
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
1845
1812
  }), lt = {
1846
1813
  number: "number",
1847
1814
  bigint: "bigint",
1848
1815
  object: "date"
1849
- }, lr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1816
+ }, cr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
1850
1817
  E.init(e, t);
1851
1818
  const n = lt[typeof t.value];
1852
1819
  e._zod.onattach.push((r) => {
@@ -1863,7 +1830,7 @@ const or = (e) => {
1863
1830
  continue: !t.abort
1864
1831
  });
1865
1832
  };
1866
- }), pr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1833
+ }), lr = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
1867
1834
  E.init(e, t);
1868
1835
  const n = lt[typeof t.value];
1869
1836
  e._zod.onattach.push((r) => {
@@ -1880,12 +1847,12 @@ const or = (e) => {
1880
1847
  continue: !t.abort
1881
1848
  });
1882
1849
  };
1883
- }), dr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1850
+ }), pr = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
1884
1851
  E.init(e, t), t.format = t.format || "float64";
1885
- const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = Ln[t.format];
1852
+ const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = Mn[t.format];
1886
1853
  e._zod.onattach.push((i) => {
1887
1854
  const a = i._zod.bag;
1888
- a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = sr);
1855
+ a.format = t.format, a.minimum = o, a.maximum = s, n && (a.pattern = or);
1889
1856
  }), e._zod.check = (i) => {
1890
1857
  const a = i.value;
1891
1858
  if (n) {
@@ -1941,7 +1908,7 @@ const or = (e) => {
1941
1908
  continue: !t.abort
1942
1909
  });
1943
1910
  };
1944
- }), mr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1911
+ }), dr = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
1945
1912
  var n;
1946
1913
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1947
1914
  const o = r.value;
@@ -1964,7 +1931,7 @@ const or = (e) => {
1964
1931
  continue: !t.abort
1965
1932
  });
1966
1933
  };
1967
- }), fr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1934
+ }), mr = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
1968
1935
  var n;
1969
1936
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1970
1937
  const o = r.value;
@@ -1987,7 +1954,7 @@ const or = (e) => {
1987
1954
  continue: !t.abort
1988
1955
  });
1989
1956
  };
1990
- }), hr = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1957
+ }), fr = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1991
1958
  var n;
1992
1959
  E.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
1993
1960
  const o = r.value;
@@ -2027,7 +1994,7 @@ const or = (e) => {
2027
1994
  });
2028
1995
  }) : (r = e._zod).check ?? (r.check = () => {
2029
1996
  });
2030
- }), yr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1997
+ }), hr = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
2031
1998
  se.init(e, t), e._zod.check = (n) => {
2032
1999
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
2033
2000
  origin: "string",
@@ -2039,11 +2006,11 @@ const or = (e) => {
2039
2006
  continue: !t.abort
2040
2007
  });
2041
2008
  };
2042
- }), gr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2009
+ }), yr = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
2010
+ t.pattern ?? (t.pattern = ar), se.init(e, t);
2011
+ }), gr = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2043
2012
  t.pattern ?? (t.pattern = ur), se.init(e, t);
2044
- }), br = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
2045
- t.pattern ?? (t.pattern = cr), se.init(e, t);
2046
- }), _r = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2013
+ }), br = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
2047
2014
  E.init(e, t);
2048
2015
  const n = be(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
2049
2016
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -2060,7 +2027,7 @@ const or = (e) => {
2060
2027
  continue: !t.abort
2061
2028
  });
2062
2029
  };
2063
- }), vr = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2030
+ }), _r = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
2064
2031
  E.init(e, t);
2065
2032
  const n = new RegExp(`^${be(t.prefix)}.*`);
2066
2033
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -2077,7 +2044,7 @@ const or = (e) => {
2077
2044
  continue: !t.abort
2078
2045
  });
2079
2046
  };
2080
- }), Sr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2047
+ }), vr = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
2081
2048
  E.init(e, t);
2082
2049
  const n = new RegExp(`.*${be(t.suffix)}$`);
2083
2050
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -2094,17 +2061,17 @@ const or = (e) => {
2094
2061
  continue: !t.abort
2095
2062
  });
2096
2063
  };
2097
- }), kr = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2064
+ }), Sr = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
2098
2065
  E.init(e, t), e._zod.check = (n) => {
2099
2066
  n.value = t.tx(n.value);
2100
2067
  };
2101
- }), wr = {
2068
+ }), kr = {
2102
2069
  major: 4,
2103
2070
  minor: 3,
2104
2071
  patch: 6
2105
2072
  }, _ = /* @__PURE__ */ l("$ZodType", (e, t) => {
2106
2073
  var n;
2107
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = wr;
2074
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = kr;
2108
2075
  const r = [...e._zod.def.checks ?? []];
2109
2076
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
2110
2077
  for (const o of r)
@@ -2177,7 +2144,7 @@ const or = (e) => {
2177
2144
  version: 1
2178
2145
  }));
2179
2146
  }), ve = /* @__PURE__ */ l("$ZodString", (e, t) => {
2180
- _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? or(e._zod.bag), e._zod.parse = (n, r) => {
2147
+ _.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? rr(e._zod.bag), e._zod.parse = (n, r) => {
2181
2148
  if (t.coerce)
2182
2149
  try {
2183
2150
  n.value = String(n.value);
@@ -2192,7 +2159,7 @@ const or = (e) => {
2192
2159
  };
2193
2160
  }), P = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
2194
2161
  se.init(e, t), ve.init(e, t);
2195
- }), Tr = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2162
+ }), wr = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
2196
2163
  if (t.version) {
2197
2164
  const r = {
2198
2165
  v1: 1,
@@ -2210,9 +2177,9 @@ const or = (e) => {
2210
2177
  } else
2211
2178
  t.pattern ?? (t.pattern = Ze());
2212
2179
  P.init(e, t);
2213
- }), zr = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2214
- t.pattern ?? (t.pattern = Xn), P.init(e, t);
2215
- }), Ar = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2180
+ }), Tr = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
2181
+ t.pattern ?? (t.pattern = qn), P.init(e, t);
2182
+ }), zr = /* @__PURE__ */ l("$ZodURL", (e, t) => {
2216
2183
  P.init(e, t), e._zod.check = (n) => {
2217
2184
  try {
2218
2185
  const r = n.value.trim(), o = new URL(r);
@@ -2244,18 +2211,18 @@ const or = (e) => {
2244
2211
  });
2245
2212
  }
2246
2213
  };
2247
- }), Or = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2248
- t.pattern ?? (t.pattern = rr(t)), P.init(e, t);
2249
- }), $r = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2250
- t.pattern ?? (t.pattern = tr), P.init(e, t);
2251
- }), Er = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2214
+ }), Ar = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
2252
2215
  t.pattern ?? (t.pattern = nr(t)), P.init(e, t);
2253
- }), Pr = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2254
- t.pattern ?? (t.pattern = qn), P.init(e, t);
2255
- }), Zr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2256
- t.pattern ?? (t.pattern = Hn), P.init(e, t), e._zod.bag.format = "ipv4";
2257
- }), Cr = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2258
- t.pattern ?? (t.pattern = Qn), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2216
+ }), Or = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
2217
+ t.pattern ?? (t.pattern = er), P.init(e, t);
2218
+ }), $r = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
2219
+ t.pattern ?? (t.pattern = tr(t)), P.init(e, t);
2220
+ }), Er = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
2221
+ t.pattern ?? (t.pattern = Kn), P.init(e, t);
2222
+ }), Pr = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
2223
+ t.pattern ?? (t.pattern = Xn), P.init(e, t), e._zod.bag.format = "ipv4";
2224
+ }), Zr = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
2225
+ t.pattern ?? (t.pattern = Hn), P.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
2259
2226
  try {
2260
2227
  new URL(`http://[${n.value}]`);
2261
2228
  } catch {
@@ -2268,7 +2235,7 @@ const or = (e) => {
2268
2235
  });
2269
2236
  }
2270
2237
  };
2271
- }), Ir = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2238
+ }), Cr = /* @__PURE__ */ l("$ZodCustomStringFormat", (e, t) => {
2272
2239
  P.init(e, t), e._zod.check = (n) => {
2273
2240
  t.fn(n.value) || n.issues.push({
2274
2241
  code: "invalid_format",
@@ -2279,7 +2246,7 @@ const or = (e) => {
2279
2246
  });
2280
2247
  };
2281
2248
  }), pt = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
2282
- _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ir, e._zod.parse = (n, r) => {
2249
+ _.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? sr, e._zod.parse = (n, r) => {
2283
2250
  if (t.coerce)
2284
2251
  try {
2285
2252
  n.value = Number(n.value);
@@ -2297,10 +2264,10 @@ const or = (e) => {
2297
2264
  ...s ? { received: s } : {}
2298
2265
  }), n;
2299
2266
  };
2300
- }), Nr = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2301
- dr.init(e, t), pt.init(e, t);
2302
- }), Mr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2303
- _.init(e, t), e._zod.pattern = ar, e._zod.parse = (n, r) => {
2267
+ }), Ir = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
2268
+ pr.init(e, t), pt.init(e, t);
2269
+ }), Nr = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
2270
+ _.init(e, t), e._zod.pattern = ir, e._zod.parse = (n, r) => {
2304
2271
  if (t.coerce)
2305
2272
  try {
2306
2273
  n.value = !!n.value;
@@ -2314,11 +2281,11 @@ const or = (e) => {
2314
2281
  inst: e
2315
2282
  }), n;
2316
2283
  };
2317
- }), Lr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2284
+ }), Mr = /* @__PURE__ */ l("$ZodAny", (e, t) => {
2318
2285
  _.init(e, t), e._zod.parse = (n) => n;
2319
2286
  });
2320
2287
  function Ce(e, t, n) {
2321
- e.issues.length && t.issues.push(...Dn(n, e.issues)), t.value[n] = e.value;
2288
+ e.issues.length && t.issues.push(...Ln(n, e.issues)), t.value[n] = e.value;
2322
2289
  }
2323
2290
  const dt = /* @__PURE__ */ l("$ZodArray", (e, t) => {
2324
2291
  _.init(e, t), e._zod.parse = (n, r) => {
@@ -2354,7 +2321,7 @@ function Ie(e, t, n, r) {
2354
2321
  errors: e.map((s) => s.issues.map((i) => D(i, r, L())))
2355
2322
  }), t);
2356
2323
  }
2357
- const Dr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2324
+ const Lr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2358
2325
  _.init(e, t), y(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), y(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), y(e._zod, "values", () => {
2359
2326
  if (t.options.every((o) => o._zod.values))
2360
2327
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
@@ -2385,7 +2352,7 @@ const Dr = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
2385
2352
  }
2386
2353
  return i ? Promise.all(a).then((u) => Ie(u, o, e, s)) : Ie(a, o, e, s);
2387
2354
  };
2388
- }), Rr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2355
+ }), Dr = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
2389
2356
  _.init(e, t), e._zod.parse = (n, r) => {
2390
2357
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
2391
2358
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Ne(n, u, c)) : Ne(n, s, i);
@@ -2450,7 +2417,7 @@ function Ne(e, t, n) {
2450
2417
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
2451
2418
  return e.value = i.data, e;
2452
2419
  }
2453
- const Fr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2420
+ const Rr = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
2454
2421
  _.init(e, t), e._zod.parse = (n, r) => {
2455
2422
  if (r.direction === "backward")
2456
2423
  throw new et(e.constructor.name);
@@ -2476,14 +2443,14 @@ const Se = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2476
2443
  }
2477
2444
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
2478
2445
  };
2479
- }), jr = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2446
+ }), Fr = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
2480
2447
  Se.init(e, t), y(e._zod, "values", () => t.innerType._zod.values), y(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
2481
- }), Wr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2448
+ }), jr = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
2482
2449
  _.init(e, t), y(e._zod, "optin", () => t.innerType._zod.optin), y(e._zod, "optout", () => t.innerType._zod.optout), y(e._zod, "pattern", () => {
2483
2450
  const n = t.innerType._zod.pattern;
2484
2451
  return n ? new RegExp(`^(${ge(n.source)}|null)$`) : void 0;
2485
2452
  }), y(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
- }), xr = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2453
+ }), Wr = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
2487
2454
  _.init(e, t), e._zod.optin = "optional", y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2488
2455
  if (r.direction === "backward")
2489
2456
  return t.innerType._zod.run(n, r);
@@ -2496,9 +2463,9 @@ const Se = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
2496
2463
  function Le(e, t) {
2497
2464
  return e.value === void 0 && (e.value = t.defaultValue), e;
2498
2465
  }
2499
- const Ur = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2466
+ const xr = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
2500
2467
  _.init(e, t), e._zod.optin = "optional", y(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
- }), Vr = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2468
+ }), Ur = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
2502
2469
  _.init(e, t), y(e._zod, "values", () => {
2503
2470
  const n = t.innerType._zod.values;
2504
2471
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
@@ -2515,7 +2482,7 @@ function De(e, t) {
2515
2482
  inst: t
2516
2483
  }), e;
2517
2484
  }
2518
- const Jr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2485
+ const Vr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2519
2486
  _.init(e, t), y(e._zod, "optin", () => t.innerType._zod.optin), y(e._zod, "optout", () => t.innerType._zod.optout), y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
2520
2487
  if (r.direction === "backward")
2521
2488
  return t.innerType._zod.run(n, r);
@@ -2534,7 +2501,7 @@ const Jr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2534
2501
  input: n.value
2535
2502
  }), n.issues = []), n);
2536
2503
  };
2537
- }), Br = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2504
+ }), Jr = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2538
2505
  _.init(e, t), y(e._zod, "values", () => t.in._zod.values), y(e._zod, "optin", () => t.in._zod.optin), y(e._zod, "optout", () => t.out._zod.optout), y(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
2539
2506
  if (r.direction === "backward") {
2540
2507
  const s = t.out._zod.run(n, r);
@@ -2547,7 +2514,7 @@ const Jr = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
2547
2514
  function K(e, t, n) {
2548
2515
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
2549
2516
  }
2550
- const Yr = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2517
+ const Br = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2551
2518
  _.init(e, t), y(e._zod, "propValues", () => t.innerType._zod.propValues), y(e._zod, "values", () => t.innerType._zod.values), y(e._zod, "optin", () => t.innerType?._zod?.optin), y(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
2552
2519
  if (r.direction === "backward")
2553
2520
  return t.innerType._zod.run(n, r);
@@ -2582,7 +2549,7 @@ function Fe(e, t, n, r) {
2582
2549
  }
2583
2550
  }
2584
2551
  var je;
2585
- class Gr {
2552
+ class Yr {
2586
2553
  constructor() {
2587
2554
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2588
2555
  }
@@ -2611,20 +2578,20 @@ class Gr {
2611
2578
  return this._map.has(t);
2612
2579
  }
2613
2580
  }
2614
- function Kr() {
2615
- return new Gr();
2581
+ function Gr() {
2582
+ return new Yr();
2616
2583
  }
2617
- (je = globalThis).__zod_globalRegistry ?? (je.__zod_globalRegistry = Kr());
2584
+ (je = globalThis).__zod_globalRegistry ?? (je.__zod_globalRegistry = Gr());
2618
2585
  const V = globalThis.__zod_globalRegistry;
2619
2586
  // @__NO_SIDE_EFFECTS__
2620
- function qr(e, t) {
2587
+ function Kr(e, t) {
2621
2588
  return new e({
2622
2589
  type: "string",
2623
2590
  ...h(t)
2624
2591
  });
2625
2592
  }
2626
2593
  // @__NO_SIDE_EFFECTS__
2627
- function Xr(e, t) {
2594
+ function qr(e, t) {
2628
2595
  return new e({
2629
2596
  type: "string",
2630
2597
  format: "email",
@@ -2634,7 +2601,7 @@ function Xr(e, t) {
2634
2601
  });
2635
2602
  }
2636
2603
  // @__NO_SIDE_EFFECTS__
2637
- function Hr(e, t) {
2604
+ function Xr(e, t) {
2638
2605
  return new e({
2639
2606
  type: "string",
2640
2607
  format: "uuid",
@@ -2644,7 +2611,7 @@ function Hr(e, t) {
2644
2611
  });
2645
2612
  }
2646
2613
  // @__NO_SIDE_EFFECTS__
2647
- function Qr(e, t) {
2614
+ function Hr(e, t) {
2648
2615
  return new e({
2649
2616
  type: "string",
2650
2617
  format: "url",
@@ -2654,7 +2621,7 @@ function Qr(e, t) {
2654
2621
  });
2655
2622
  }
2656
2623
  // @__NO_SIDE_EFFECTS__
2657
- function eo(e, t) {
2624
+ function Qr(e, t) {
2658
2625
  return new e({
2659
2626
  type: "string",
2660
2627
  format: "ipv4",
@@ -2664,7 +2631,7 @@ function eo(e, t) {
2664
2631
  });
2665
2632
  }
2666
2633
  // @__NO_SIDE_EFFECTS__
2667
- function to(e, t) {
2634
+ function eo(e, t) {
2668
2635
  return new e({
2669
2636
  type: "string",
2670
2637
  format: "ipv6",
@@ -2674,7 +2641,7 @@ function to(e, t) {
2674
2641
  });
2675
2642
  }
2676
2643
  // @__NO_SIDE_EFFECTS__
2677
- function no(e, t) {
2644
+ function to(e, t) {
2678
2645
  return new e({
2679
2646
  type: "string",
2680
2647
  format: "datetime",
@@ -2686,7 +2653,7 @@ function no(e, t) {
2686
2653
  });
2687
2654
  }
2688
2655
  // @__NO_SIDE_EFFECTS__
2689
- function ro(e, t) {
2656
+ function no(e, t) {
2690
2657
  return new e({
2691
2658
  type: "string",
2692
2659
  format: "date",
@@ -2695,7 +2662,7 @@ function ro(e, t) {
2695
2662
  });
2696
2663
  }
2697
2664
  // @__NO_SIDE_EFFECTS__
2698
- function oo(e, t) {
2665
+ function ro(e, t) {
2699
2666
  return new e({
2700
2667
  type: "string",
2701
2668
  format: "time",
@@ -2705,7 +2672,7 @@ function oo(e, t) {
2705
2672
  });
2706
2673
  }
2707
2674
  // @__NO_SIDE_EFFECTS__
2708
- function so(e, t) {
2675
+ function oo(e, t) {
2709
2676
  return new e({
2710
2677
  type: "string",
2711
2678
  format: "duration",
@@ -2714,7 +2681,7 @@ function so(e, t) {
2714
2681
  });
2715
2682
  }
2716
2683
  // @__NO_SIDE_EFFECTS__
2717
- function io(e, t) {
2684
+ function so(e, t) {
2718
2685
  return new e({
2719
2686
  type: "number",
2720
2687
  checks: [],
@@ -2722,7 +2689,7 @@ function io(e, t) {
2722
2689
  });
2723
2690
  }
2724
2691
  // @__NO_SIDE_EFFECTS__
2725
- function ao(e, t) {
2692
+ function io(e, t) {
2726
2693
  return new e({
2727
2694
  type: "number",
2728
2695
  check: "number_format",
@@ -2732,21 +2699,21 @@ function ao(e, t) {
2732
2699
  });
2733
2700
  }
2734
2701
  // @__NO_SIDE_EFFECTS__
2735
- function uo(e, t) {
2702
+ function ao(e, t) {
2736
2703
  return new e({
2737
2704
  type: "boolean",
2738
2705
  ...h(t)
2739
2706
  });
2740
2707
  }
2741
2708
  // @__NO_SIDE_EFFECTS__
2742
- function co(e) {
2709
+ function uo(e) {
2743
2710
  return new e({
2744
2711
  type: "any"
2745
2712
  });
2746
2713
  }
2747
2714
  // @__NO_SIDE_EFFECTS__
2748
- function lo(e, t) {
2749
- return new lr({
2715
+ function co(e, t) {
2716
+ return new cr({
2750
2717
  check: "less_than",
2751
2718
  ...h(t),
2752
2719
  value: e,
@@ -2754,8 +2721,8 @@ function lo(e, t) {
2754
2721
  });
2755
2722
  }
2756
2723
  // @__NO_SIDE_EFFECTS__
2757
- function po(e, t) {
2758
- return new pr({
2724
+ function lo(e, t) {
2725
+ return new lr({
2759
2726
  check: "greater_than",
2760
2727
  ...h(t),
2761
2728
  value: e,
@@ -2764,7 +2731,7 @@ function po(e, t) {
2764
2731
  }
2765
2732
  // @__NO_SIDE_EFFECTS__
2766
2733
  function ie(e, t) {
2767
- return new mr({
2734
+ return new dr({
2768
2735
  check: "max_length",
2769
2736
  ...h(t),
2770
2737
  maximum: e
@@ -2772,7 +2739,7 @@ function ie(e, t) {
2772
2739
  }
2773
2740
  // @__NO_SIDE_EFFECTS__
2774
2741
  function W(e, t) {
2775
- return new fr({
2742
+ return new mr({
2776
2743
  check: "min_length",
2777
2744
  ...h(t),
2778
2745
  minimum: e
@@ -2780,7 +2747,7 @@ function W(e, t) {
2780
2747
  }
2781
2748
  // @__NO_SIDE_EFFECTS__
2782
2749
  function ft(e, t) {
2783
- return new hr({
2750
+ return new fr({
2784
2751
  check: "length_equals",
2785
2752
  ...h(t),
2786
2753
  length: e
@@ -2788,7 +2755,7 @@ function ft(e, t) {
2788
2755
  }
2789
2756
  // @__NO_SIDE_EFFECTS__
2790
2757
  function ht(e, t) {
2791
- return new yr({
2758
+ return new hr({
2792
2759
  check: "string_format",
2793
2760
  format: "regex",
2794
2761
  ...h(t),
@@ -2796,24 +2763,24 @@ function ht(e, t) {
2796
2763
  });
2797
2764
  }
2798
2765
  // @__NO_SIDE_EFFECTS__
2799
- function mo(e) {
2800
- return new gr({
2766
+ function po(e) {
2767
+ return new yr({
2801
2768
  check: "string_format",
2802
2769
  format: "lowercase",
2803
2770
  ...h(e)
2804
2771
  });
2805
2772
  }
2806
2773
  // @__NO_SIDE_EFFECTS__
2807
- function fo(e) {
2808
- return new br({
2774
+ function mo(e) {
2775
+ return new gr({
2809
2776
  check: "string_format",
2810
2777
  format: "uppercase",
2811
2778
  ...h(e)
2812
2779
  });
2813
2780
  }
2814
2781
  // @__NO_SIDE_EFFECTS__
2815
- function ho(e, t) {
2816
- return new _r({
2782
+ function fo(e, t) {
2783
+ return new br({
2817
2784
  check: "string_format",
2818
2785
  format: "includes",
2819
2786
  ...h(t),
@@ -2821,8 +2788,8 @@ function ho(e, t) {
2821
2788
  });
2822
2789
  }
2823
2790
  // @__NO_SIDE_EFFECTS__
2824
- function yo(e, t) {
2825
- return new vr({
2791
+ function ho(e, t) {
2792
+ return new _r({
2826
2793
  check: "string_format",
2827
2794
  format: "starts_with",
2828
2795
  ...h(t),
@@ -2830,8 +2797,8 @@ function yo(e, t) {
2830
2797
  });
2831
2798
  }
2832
2799
  // @__NO_SIDE_EFFECTS__
2833
- function go(e, t) {
2834
- return new Sr({
2800
+ function yo(e, t) {
2801
+ return new vr({
2835
2802
  check: "string_format",
2836
2803
  format: "ends_with",
2837
2804
  ...h(t),
@@ -2840,33 +2807,33 @@ function go(e, t) {
2840
2807
  }
2841
2808
  // @__NO_SIDE_EFFECTS__
2842
2809
  function x(e) {
2843
- return new kr({
2810
+ return new Sr({
2844
2811
  check: "overwrite",
2845
2812
  tx: e
2846
2813
  });
2847
2814
  }
2848
2815
  // @__NO_SIDE_EFFECTS__
2849
- function bo(e) {
2816
+ function go(e) {
2850
2817
  return /* @__PURE__ */ x((t) => t.normalize(e));
2851
2818
  }
2852
2819
  // @__NO_SIDE_EFFECTS__
2853
- function _o() {
2820
+ function bo() {
2854
2821
  return /* @__PURE__ */ x((e) => e.trim());
2855
2822
  }
2856
2823
  // @__NO_SIDE_EFFECTS__
2857
- function vo() {
2824
+ function _o() {
2858
2825
  return /* @__PURE__ */ x((e) => e.toLowerCase());
2859
2826
  }
2860
2827
  // @__NO_SIDE_EFFECTS__
2861
- function So() {
2828
+ function vo() {
2862
2829
  return /* @__PURE__ */ x((e) => e.toUpperCase());
2863
2830
  }
2864
2831
  // @__NO_SIDE_EFFECTS__
2865
- function ko() {
2866
- return /* @__PURE__ */ x((e) => Mn(e));
2832
+ function So() {
2833
+ return /* @__PURE__ */ x((e) => Nn(e));
2867
2834
  }
2868
2835
  // @__NO_SIDE_EFFECTS__
2869
- function wo(e, t, n) {
2836
+ function ko(e, t, n) {
2870
2837
  return new e({
2871
2838
  type: "array",
2872
2839
  element: t,
@@ -2887,7 +2854,7 @@ function yt(e, t, n) {
2887
2854
  }
2888
2855
  // @__NO_SIDE_EFFECTS__
2889
2856
  function gt(e) {
2890
- const t = /* @__PURE__ */ To((n) => (n.addIssue = (r) => {
2857
+ const t = /* @__PURE__ */ wo((n) => (n.addIssue = (r) => {
2891
2858
  if (typeof r == "string")
2892
2859
  n.issues.push(J(r, n.value, t._zod.def));
2893
2860
  else {
@@ -2898,7 +2865,7 @@ function gt(e) {
2898
2865
  return t;
2899
2866
  }
2900
2867
  // @__NO_SIDE_EFFECTS__
2901
- function To(e, t) {
2868
+ function wo(e, t) {
2902
2869
  const n = new E({
2903
2870
  check: "custom",
2904
2871
  ...h(t)
@@ -2906,7 +2873,7 @@ function To(e, t) {
2906
2873
  return n._zod.check = e, n;
2907
2874
  }
2908
2875
  // @__NO_SIDE_EFFECTS__
2909
- function zo(e, t, n, r = {}) {
2876
+ function To(e, t, n, r = {}) {
2910
2877
  const o = h(r), s = {
2911
2878
  ...h(r),
2912
2879
  check: "string_format",
@@ -3144,24 +3111,24 @@ function z(e, t) {
3144
3111
  }
3145
3112
  return !1;
3146
3113
  }
3147
- const Ao = (e, t = {}) => (n) => {
3114
+ const zo = (e, t = {}) => (n) => {
3148
3115
  const r = bt({ ...n, processors: t });
3149
3116
  return A(e, r), _t(r, e), vt(r, e);
3150
3117
  }, X = (e, t, n = {}) => (r) => {
3151
3118
  const { libraryOptions: o, target: s } = r ?? {}, i = bt({ ...o ?? {}, target: s, io: t, processors: n });
3152
3119
  return A(e, i), _t(i, e), vt(i, e);
3153
- }, Oo = {
3120
+ }, Ao = {
3154
3121
  guid: "uuid",
3155
3122
  url: "uri",
3156
3123
  datetime: "date-time",
3157
3124
  json_string: "json-string",
3158
3125
  regex: ""
3159
3126
  // do not set
3160
- }, $o = (e, t, n, r) => {
3127
+ }, Oo = (e, t, n, r) => {
3161
3128
  const o = n;
3162
3129
  o.type = "string";
3163
3130
  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 = Oo[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
3131
+ if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = Ao[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), c && (o.contentEncoding = c), u && u.size > 0) {
3165
3132
  const p = [...u];
3166
3133
  p.length === 1 ? o.pattern = p[0].source : p.length > 1 && (o.allOf = [
3167
3134
  ...p.map((d) => ({
@@ -3170,22 +3137,22 @@ const Ao = (e, t = {}) => (n) => {
3170
3137
  }))
3171
3138
  ]);
3172
3139
  }
3173
- }, Eo = (e, t, n, r) => {
3140
+ }, $o = (e, t, n, r) => {
3174
3141
  if (t.unrepresentable === "throw")
3175
3142
  throw new Error("Custom types cannot be represented in JSON Schema");
3176
- }, Po = (e, t, n, r) => {
3143
+ }, Eo = (e, t, n, r) => {
3177
3144
  if (t.unrepresentable === "throw")
3178
3145
  throw new Error("Transforms cannot be represented in JSON Schema");
3179
- }, Zo = (e, t, n, r) => {
3146
+ }, Po = (e, t, n, r) => {
3180
3147
  const o = n, s = e._zod.def, { minimum: i, maximum: a } = e._zod.bag;
3181
3148
  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
- }, Co = (e, t, n, r) => {
3149
+ }, Zo = (e, t, n, r) => {
3183
3150
  const o = e._zod.def, s = o.inclusive === !1, i = o.options.map((a, u) => A(a, t, {
3184
3151
  ...r,
3185
3152
  path: [...r.path, s ? "oneOf" : "anyOf", u]
3186
3153
  }));
3187
3154
  s ? n.oneOf = i : n.anyOf = i;
3188
- }, Io = (e, t, n, r) => {
3155
+ }, Co = (e, t, n, r) => {
3189
3156
  const o = e._zod.def, s = A(o.left, t, {
3190
3157
  ...r,
3191
3158
  path: [...r.path, "allOf", 0]
@@ -3197,25 +3164,25 @@ const Ao = (e, t = {}) => (n) => {
3197
3164
  ...a(i) ? i.allOf : [i]
3198
3165
  ];
3199
3166
  n.allOf = u;
3200
- }, No = (e, t, n, r) => {
3167
+ }, Io = (e, t, n, r) => {
3201
3168
  const o = e._zod.def, s = A(o.innerType, t, r), i = t.seen.get(e);
3202
3169
  t.target === "openapi-3.0" ? (i.ref = o.innerType, n.nullable = !0) : n.anyOf = [s, { type: "null" }];
3203
- }, Mo = (e, t, n, r) => {
3170
+ }, No = (e, t, n, r) => {
3204
3171
  const o = e._zod.def;
3205
3172
  A(o.innerType, t, r);
3206
3173
  const s = t.seen.get(e);
3207
3174
  s.ref = o.innerType;
3208
- }, Lo = (e, t, n, r) => {
3175
+ }, Mo = (e, t, n, r) => {
3209
3176
  const o = e._zod.def;
3210
3177
  A(o.innerType, t, r);
3211
3178
  const s = t.seen.get(e);
3212
3179
  s.ref = o.innerType, n.default = JSON.parse(JSON.stringify(o.defaultValue));
3213
- }, Do = (e, t, n, r) => {
3180
+ }, Lo = (e, t, n, r) => {
3214
3181
  const o = e._zod.def;
3215
3182
  A(o.innerType, t, r);
3216
3183
  const s = t.seen.get(e);
3217
3184
  s.ref = o.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(o.defaultValue)));
3218
- }, Ro = (e, t, n, r) => {
3185
+ }, Do = (e, t, n, r) => {
3219
3186
  const o = e._zod.def;
3220
3187
  A(o.innerType, t, r);
3221
3188
  const s = t.seen.get(e);
@@ -3227,12 +3194,12 @@ const Ao = (e, t = {}) => (n) => {
3227
3194
  throw new Error("Dynamic catch values are not supported in JSON Schema");
3228
3195
  }
3229
3196
  n.default = i;
3230
- }, Fo = (e, t, n, r) => {
3197
+ }, Ro = (e, t, n, r) => {
3231
3198
  const o = e._zod.def, s = t.io === "input" ? o.in._zod.def.type === "transform" ? o.out : o.in : o.out;
3232
3199
  A(s, t, r);
3233
3200
  const i = t.seen.get(e);
3234
3201
  i.ref = s;
3235
- }, jo = (e, t, n, r) => {
3202
+ }, Fo = (e, t, n, r) => {
3236
3203
  const o = e._zod.def;
3237
3204
  A(o.innerType, t, r);
3238
3205
  const s = t.seen.get(e);
@@ -3242,38 +3209,38 @@ const Ao = (e, t = {}) => (n) => {
3242
3209
  A(o.innerType, t, r);
3243
3210
  const s = t.seen.get(e);
3244
3211
  s.ref = o.innerType;
3245
- }, Wo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3212
+ }, jo = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3213
+ Ar.init(e, t), ae.init(e, t);
3214
+ });
3215
+ function Wo(e) {
3216
+ return /* @__PURE__ */ to(jo, e);
3217
+ }
3218
+ const xo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3246
3219
  Or.init(e, t), ae.init(e, t);
3247
3220
  });
3248
- function xo(e) {
3249
- return /* @__PURE__ */ no(Wo, e);
3221
+ function Uo(e) {
3222
+ return /* @__PURE__ */ no(xo, e);
3250
3223
  }
3251
- const Uo = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3224
+ const Vo = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3252
3225
  $r.init(e, t), ae.init(e, t);
3253
3226
  });
3254
- function Vo(e) {
3255
- return /* @__PURE__ */ ro(Uo, e);
3227
+ function Jo(e) {
3228
+ return /* @__PURE__ */ ro(Vo, e);
3256
3229
  }
3257
- const Jo = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3230
+ const Bo = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3258
3231
  Er.init(e, t), ae.init(e, t);
3259
3232
  });
3260
- function Bo(e) {
3261
- return /* @__PURE__ */ oo(Jo, e);
3233
+ function Yo(e) {
3234
+ return /* @__PURE__ */ oo(Bo, e);
3262
3235
  }
3263
- const Yo = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3264
- Pr.init(e, t), ae.init(e, t);
3265
- });
3266
- function Go(e) {
3267
- return /* @__PURE__ */ so(Yo, e);
3268
- }
3269
- const Ko = (e, t) => {
3236
+ const Go = (e, t) => {
3270
3237
  st.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
3271
3238
  format: {
3272
- value: (n) => Fn(e, n)
3239
+ value: (n) => Rn(e, n)
3273
3240
  // enumerable: false,
3274
3241
  },
3275
3242
  flatten: {
3276
- value: (n) => Rn(e, n)
3243
+ value: (n) => Dn(e, n)
3277
3244
  // enumerable: false,
3278
3245
  },
3279
3246
  addIssue: {
@@ -3295,21 +3262,21 @@ const Ko = (e, t) => {
3295
3262
  // enumerable: false,
3296
3263
  }
3297
3264
  });
3298
- }, Z = l("ZodError", Ko, {
3265
+ }, Z = l("ZodError", Go, {
3299
3266
  Parent: Error
3300
- }), qo = /* @__PURE__ */ te(Z), Xo = /* @__PURE__ */ ne(Z), Ho = /* @__PURE__ */ re(Z), Qo = /* @__PURE__ */ oe(Z), es = /* @__PURE__ */ xn(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), $ = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
3267
+ }), Ko = /* @__PURE__ */ te(Z), qo = /* @__PURE__ */ ne(Z), Xo = /* @__PURE__ */ re(Z), Ho = /* @__PURE__ */ oe(Z), Qo = /* @__PURE__ */ Wn(Z), es = /* @__PURE__ */ xn(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), $ = /* @__PURE__ */ l("ZodType", (e, t) => (_.init(e, t), Object.assign(e["~standard"], {
3301
3268
  jsonSchema: {
3302
3269
  input: X(e, "input"),
3303
3270
  output: X(e, "output")
3304
3271
  }
3305
- }), e.toJSONSchema = Ao(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(Nn(t, {
3272
+ }), e.toJSONSchema = zo(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(In(t, {
3306
3273
  checks: [
3307
3274
  ...t.checks ?? [],
3308
3275
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
3309
3276
  ]
3310
3277
  }), {
3311
3278
  parent: !0
3312
- }), e.with = e.check, e.clone = (n, r) => rt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => qo(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Ho(e, n, r), e.parseAsync = async (n, r) => Xo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Qo(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => es(e, n, r), e.decode = (n, r) => ts(e, n, r), e.encodeAsync = async (n, r) => ns(e, n, r), e.decodeAsync = async (n, r) => rs(e, n, r), e.safeEncode = (n, r) => os(e, n, r), e.safeDecode = (n, r) => ss(e, n, r), e.safeEncodeAsync = async (n, r) => is(e, n, r), e.safeDecodeAsync = async (n, r) => as(e, n, r), e.refine = (n, r) => e.check(Is(n, r)), e.superRefine = (n) => e.check(Ns(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => We(e), e.exactOptional = () => _s(e), e.nullable = () => xe(e), e.nullish = () => We(xe(e)), e.nonoptional = (n) => As(e, n), e.array = () => ls(e), e.or = (n) => ds([e, n]), e.and = (n) => fs(e, n), e.transform = (n) => Ue(e, ys(n)), e.default = (n) => ks(e, n), e.prefault = (n) => Ts(e, n), e.catch = (n) => $s(e, n), e.pipe = (n) => Ue(e, n), e.readonly = () => Zs(e), e.describe = (n) => {
3279
+ }), e.with = e.check, e.clone = (n, r) => rt(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Ko(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => Xo(e, n, r), e.parseAsync = async (n, r) => qo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ho(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Qo(e, n, r), e.decode = (n, r) => es(e, n, r), e.encodeAsync = async (n, r) => ts(e, n, r), e.decodeAsync = async (n, r) => ns(e, n, r), e.safeEncode = (n, r) => rs(e, n, r), e.safeDecode = (n, r) => os(e, n, r), e.safeEncodeAsync = async (n, r) => ss(e, n, r), e.safeDecodeAsync = async (n, r) => is(e, n, r), e.refine = (n, r) => e.check(Cs(n, r)), e.superRefine = (n) => e.check(Is(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ x(n)), e.optional = () => We(e), e.exactOptional = () => bs(e), e.nullable = () => xe(e), e.nullish = () => We(xe(e)), e.nonoptional = (n) => zs(e, n), e.array = () => cs(e), e.or = (n) => ps([e, n]), e.and = (n) => ms(e, n), e.transform = (n) => Ue(e, hs(n)), e.default = (n) => Ss(e, n), e.prefault = (n) => ws(e, n), e.catch = (n) => Os(e, n), e.pipe = (n) => Ue(e, n), e.readonly = () => Ps(e), e.describe = (n) => {
3313
3280
  const r = e.clone();
3314
3281
  return V.add(r, { description: n }), r;
3315
3282
  }, Object.defineProperty(e, "description", {
@@ -3322,40 +3289,40 @@ const Ko = (e, t) => {
3322
3289
  return V.get(e);
3323
3290
  const r = e.clone();
3324
3291
  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)), us = /* @__PURE__ */ l("_ZodString", (e, t) => {
3326
- ve.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, o, s) => $o(e, r, o);
3292
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (n) => n(e), e)), as = /* @__PURE__ */ l("_ZodString", (e, t) => {
3293
+ ve.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, o, s) => Oo(e, r, o);
3327
3294
  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__ */ ht(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ ho(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ yo(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ go(...r)), e.min = (...r) => e.check(/* @__PURE__ */ W(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ie(...r)), e.length = (...r) => e.check(/* @__PURE__ */ ft(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ W(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ mo(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ fo(r)), e.trim = () => e.check(/* @__PURE__ */ _o()), e.normalize = (...r) => e.check(/* @__PURE__ */ bo(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ vo()), e.toUpperCase = () => e.check(/* @__PURE__ */ So()), e.slugify = () => e.check(/* @__PURE__ */ ko());
3295
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(/* @__PURE__ */ ht(...r)), e.includes = (...r) => e.check(/* @__PURE__ */ fo(...r)), e.startsWith = (...r) => e.check(/* @__PURE__ */ ho(...r)), e.endsWith = (...r) => e.check(/* @__PURE__ */ yo(...r)), e.min = (...r) => e.check(/* @__PURE__ */ W(...r)), e.max = (...r) => e.check(/* @__PURE__ */ ie(...r)), e.length = (...r) => e.check(/* @__PURE__ */ ft(...r)), e.nonempty = (...r) => e.check(/* @__PURE__ */ W(1, ...r)), e.lowercase = (r) => e.check(/* @__PURE__ */ po(r)), e.uppercase = (r) => e.check(/* @__PURE__ */ mo(r)), e.trim = () => e.check(/* @__PURE__ */ bo()), e.normalize = (...r) => e.check(/* @__PURE__ */ go(...r)), e.toLowerCase = () => e.check(/* @__PURE__ */ _o()), e.toUpperCase = () => e.check(/* @__PURE__ */ vo()), e.slugify = () => e.check(/* @__PURE__ */ So());
3329
3296
  }), ae = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3330
- P.init(e, t), us.init(e, t);
3331
- }), cs = /* @__PURE__ */ l("ZodArray", (e, t) => {
3332
- dt.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Zo(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__ */ ie(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ ft(n, r)), e.unwrap = () => e.element;
3297
+ P.init(e, t), as.init(e, t);
3298
+ }), us = /* @__PURE__ */ l("ZodArray", (e, t) => {
3299
+ dt.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Po(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__ */ ie(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ ft(n, r)), e.unwrap = () => e.element;
3333
3300
  });
3334
- function ls(e, t) {
3335
- return /* @__PURE__ */ wo(cs, e, t);
3301
+ function cs(e, t) {
3302
+ return /* @__PURE__ */ ko(us, e, t);
3336
3303
  }
3337
- const ps = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3338
- Dr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Co(e, n, r, o), e.options = t.options;
3304
+ const ls = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3305
+ Lr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Zo(e, n, r, o), e.options = t.options;
3339
3306
  });
3340
- function ds(e, t) {
3341
- return new ps({
3307
+ function ps(e, t) {
3308
+ return new ls({
3342
3309
  type: "union",
3343
3310
  options: e,
3344
3311
  ...h(t)
3345
3312
  });
3346
3313
  }
3347
- const ms = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3348
- Rr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n, r, o);
3314
+ const ds = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3315
+ Dr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Co(e, n, r, o);
3349
3316
  });
3350
- function fs(e, t) {
3351
- return new ms({
3317
+ function ms(e, t) {
3318
+ return new ds({
3352
3319
  type: "intersection",
3353
3320
  left: e,
3354
3321
  right: t
3355
3322
  });
3356
3323
  }
3357
- const hs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3358
- Fr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Po(e, n), e._zod.parse = (n, r) => {
3324
+ const fs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3325
+ Rr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Eo(e, n), e._zod.parse = (n, r) => {
3359
3326
  if (r.direction === "backward")
3360
3327
  throw new et(e.constructor.name);
3361
3328
  n.addIssue = (s) => {
@@ -3370,44 +3337,44 @@ const hs = /* @__PURE__ */ l("ZodTransform", (e, t) => {
3370
3337
  return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
3371
3338
  };
3372
3339
  });
3373
- function ys(e) {
3374
- return new hs({
3340
+ function hs(e) {
3341
+ return new fs({
3375
3342
  type: "transform",
3376
3343
  transform: e
3377
3344
  });
3378
3345
  }
3379
- const gs = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3346
+ const ys = /* @__PURE__ */ l("ZodOptional", (e, t) => {
3380
3347
  Se.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => St(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3381
3348
  });
3382
3349
  function We(e) {
3383
- return new gs({
3350
+ return new ys({
3384
3351
  type: "optional",
3385
3352
  innerType: e
3386
3353
  });
3387
3354
  }
3388
- const bs = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3389
- jr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => St(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3355
+ const gs = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
3356
+ Fr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => St(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3390
3357
  });
3391
- function _s(e) {
3392
- return new bs({
3358
+ function bs(e) {
3359
+ return new gs({
3393
3360
  type: "optional",
3394
3361
  innerType: e
3395
3362
  });
3396
3363
  }
3397
- const vs = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3398
- Wr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3364
+ const _s = /* @__PURE__ */ l("ZodNullable", (e, t) => {
3365
+ jr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Io(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3399
3366
  });
3400
3367
  function xe(e) {
3401
- return new vs({
3368
+ return new _s({
3402
3369
  type: "nullable",
3403
3370
  innerType: e
3404
3371
  });
3405
3372
  }
3406
- const Ss = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3407
- xr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3373
+ const vs = /* @__PURE__ */ l("ZodDefault", (e, t) => {
3374
+ Wr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3408
3375
  });
3409
- function ks(e, t) {
3410
- return new Ss({
3376
+ function Ss(e, t) {
3377
+ return new vs({
3411
3378
  type: "default",
3412
3379
  innerType: e,
3413
3380
  get defaultValue() {
@@ -3415,11 +3382,11 @@ function ks(e, t) {
3415
3382
  }
3416
3383
  });
3417
3384
  }
3418
- const ws = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3419
- Ur.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3385
+ const ks = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
3386
+ xr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3420
3387
  });
3421
- function Ts(e, t) {
3422
- return new ws({
3388
+ function ws(e, t) {
3389
+ return new ks({
3423
3390
  type: "prefault",
3424
3391
  innerType: e,
3425
3392
  get defaultValue() {
@@ -3427,59 +3394,59 @@ function Ts(e, t) {
3427
3394
  }
3428
3395
  });
3429
3396
  }
3430
- const zs = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3431
- Vr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Mo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3397
+ const Ts = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
3398
+ Ur.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => No(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3432
3399
  });
3433
- function As(e, t) {
3434
- return new zs({
3400
+ function zs(e, t) {
3401
+ return new Ts({
3435
3402
  type: "nonoptional",
3436
3403
  innerType: e,
3437
3404
  ...h(t)
3438
3405
  });
3439
3406
  }
3440
- const Os = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3441
- Jr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3407
+ const As = /* @__PURE__ */ l("ZodCatch", (e, t) => {
3408
+ Vr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Do(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3442
3409
  });
3443
- function $s(e, t) {
3444
- return new Os({
3410
+ function Os(e, t) {
3411
+ return new As({
3445
3412
  type: "catch",
3446
3413
  innerType: e,
3447
3414
  catchValue: typeof t == "function" ? t : () => t
3448
3415
  });
3449
3416
  }
3450
- const Es = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3451
- Br.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.in = t.in, e.out = t.out;
3417
+ const $s = /* @__PURE__ */ l("ZodPipe", (e, t) => {
3418
+ Jr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Ro(e, n, r, o), e.in = t.in, e.out = t.out;
3452
3419
  });
3453
3420
  function Ue(e, t) {
3454
- return new Es({
3421
+ return new $s({
3455
3422
  type: "pipe",
3456
3423
  in: e,
3457
3424
  out: t
3458
3425
  // ...util.normalizeParams(params),
3459
3426
  });
3460
3427
  }
3461
- const Ps = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3462
- Yr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => jo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3428
+ const Es = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
3429
+ Br.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Fo(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
3463
3430
  });
3464
- function Zs(e) {
3465
- return new Ps({
3431
+ function Ps(e) {
3432
+ return new Es({
3466
3433
  type: "readonly",
3467
3434
  innerType: e
3468
3435
  });
3469
3436
  }
3470
- const Cs = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3471
- mt.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => Eo(e, n);
3437
+ const Zs = /* @__PURE__ */ l("ZodCustom", (e, t) => {
3438
+ mt.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, r, o) => $o(e, n);
3472
3439
  });
3473
- function Is(e, t = {}) {
3474
- return /* @__PURE__ */ yt(Cs, e, t);
3440
+ function Cs(e, t = {}) {
3441
+ return /* @__PURE__ */ yt(Zs, e, t);
3475
3442
  }
3476
- function Ns(e) {
3443
+ function Is(e) {
3477
3444
  return /* @__PURE__ */ gt(e);
3478
3445
  }
3479
3446
  const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3480
3447
  if (!e._zod)
3481
3448
  throw new Error("Uninitialized schema in ZodMiniType.");
3482
- _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => jn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => it(e, n, r), e.parseAsync = async (n, r) => Wn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => at(e, n, r), e.check = (...n) => e.clone({
3449
+ _.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => Fn(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => it(e, n, r), e.parseAsync = async (n, r) => jn(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => at(e, n, r), e.check = (...n) => e.clone({
3483
3450
  ...t,
3484
3451
  checks: [
3485
3452
  ...t.checks ?? [],
@@ -3491,140 +3458,140 @@ const R = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
3491
3458
  });
3492
3459
  // @__NO_SIDE_EFFECTS__
3493
3460
  function Ve(e) {
3494
- return /* @__PURE__ */ qr(kt, e);
3461
+ return /* @__PURE__ */ Kr(kt, e);
3495
3462
  }
3496
3463
  const U = /* @__PURE__ */ l("ZodMiniStringFormat", (e, t) => {
3497
3464
  P.init(e, t), kt.init(e, t);
3498
- }), Ms = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3499
- zr.init(e, t), U.init(e, t);
3465
+ }), Ns = /* @__PURE__ */ l("ZodMiniEmail", (e, t) => {
3466
+ Tr.init(e, t), U.init(e, t);
3500
3467
  });
3501
3468
  // @__NO_SIDE_EFFECTS__
3502
- function Ls(e) {
3503
- return /* @__PURE__ */ Xr(Ms, e);
3469
+ function Ms(e) {
3470
+ return /* @__PURE__ */ qr(Ns, e);
3504
3471
  }
3505
- const Ds = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3506
- Tr.init(e, t), U.init(e, t);
3472
+ const Ls = /* @__PURE__ */ l("ZodMiniUUID", (e, t) => {
3473
+ wr.init(e, t), U.init(e, t);
3507
3474
  });
3508
3475
  // @__NO_SIDE_EFFECTS__
3509
- function Rs(e) {
3510
- return /* @__PURE__ */ Hr(Ds, e);
3476
+ function Ds(e) {
3477
+ return /* @__PURE__ */ Xr(Ls, e);
3511
3478
  }
3512
- const Fs = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3513
- Ar.init(e, t), U.init(e, t);
3479
+ const Rs = /* @__PURE__ */ l("ZodMiniURL", (e, t) => {
3480
+ zr.init(e, t), U.init(e, t);
3514
3481
  });
3515
3482
  // @__NO_SIDE_EFFECTS__
3516
- function js(e) {
3517
- return /* @__PURE__ */ Qr(Fs, e);
3483
+ function Fs(e) {
3484
+ return /* @__PURE__ */ Hr(Rs, e);
3518
3485
  }
3519
- const Ws = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3520
- Zr.init(e, t), U.init(e, t);
3486
+ const js = /* @__PURE__ */ l("ZodMiniIPv4", (e, t) => {
3487
+ Pr.init(e, t), U.init(e, t);
3521
3488
  });
3522
3489
  // @__NO_SIDE_EFFECTS__
3523
- function xs(e) {
3524
- return /* @__PURE__ */ eo(Ws, e);
3490
+ function Ws(e) {
3491
+ return /* @__PURE__ */ Qr(js, e);
3525
3492
  }
3526
- const Us = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3527
- Cr.init(e, t), U.init(e, t);
3493
+ const xs = /* @__PURE__ */ l("ZodMiniIPv6", (e, t) => {
3494
+ Zr.init(e, t), U.init(e, t);
3528
3495
  });
3529
3496
  // @__NO_SIDE_EFFECTS__
3530
- function Vs(e) {
3531
- return /* @__PURE__ */ to(Us, e);
3497
+ function Us(e) {
3498
+ return /* @__PURE__ */ eo(xs, e);
3532
3499
  }
3533
- const Js = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3534
- Ir.init(e, t), U.init(e, t);
3500
+ const Vs = /* @__PURE__ */ l("ZodMiniCustomStringFormat", (e, t) => {
3501
+ Cr.init(e, t), U.init(e, t);
3535
3502
  });
3536
3503
  // @__NO_SIDE_EFFECTS__
3537
- function Bs(e) {
3538
- return /* @__PURE__ */ zo(Js, "hostname", er, e);
3504
+ function Js(e) {
3505
+ return /* @__PURE__ */ To(Vs, "hostname", Qn, e);
3539
3506
  }
3540
3507
  const wt = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
3541
3508
  pt.init(e, t), R.init(e, t);
3542
3509
  });
3543
3510
  // @__NO_SIDE_EFFECTS__
3544
3511
  function Je(e) {
3545
- return /* @__PURE__ */ io(wt, e);
3512
+ return /* @__PURE__ */ so(wt, e);
3546
3513
  }
3547
- const Ys = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3548
- Nr.init(e, t), wt.init(e, t);
3514
+ const Bs = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
3515
+ Ir.init(e, t), wt.init(e, t);
3549
3516
  });
3550
3517
  // @__NO_SIDE_EFFECTS__
3551
- function Gs(e) {
3552
- return /* @__PURE__ */ ao(Ys, e);
3518
+ function Ys(e) {
3519
+ return /* @__PURE__ */ io(Bs, e);
3553
3520
  }
3554
- const Ks = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3555
- Mr.init(e, t), R.init(e, t);
3521
+ const Gs = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
3522
+ Nr.init(e, t), R.init(e, t);
3556
3523
  });
3557
3524
  // @__NO_SIDE_EFFECTS__
3558
3525
  function Be(e) {
3559
- return /* @__PURE__ */ uo(Ks, e);
3526
+ return /* @__PURE__ */ ao(Gs, e);
3560
3527
  }
3561
- const qs = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3562
- Lr.init(e, t), R.init(e, t);
3528
+ const Ks = /* @__PURE__ */ l("ZodMiniAny", (e, t) => {
3529
+ Mr.init(e, t), R.init(e, t);
3563
3530
  });
3564
3531
  // @__NO_SIDE_EFFECTS__
3565
3532
  function fe() {
3566
- return /* @__PURE__ */ co(qs);
3533
+ return /* @__PURE__ */ uo(Ks);
3567
3534
  }
3568
- const Xs = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3535
+ const qs = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
3569
3536
  dt.init(e, t), R.init(e, t);
3570
3537
  });
3571
3538
  // @__NO_SIDE_EFFECTS__
3572
3539
  function Ye(e, t) {
3573
- return new Xs({
3540
+ return new qs({
3574
3541
  type: "array",
3575
3542
  element: e,
3576
3543
  ...h(t)
3577
3544
  });
3578
3545
  }
3579
- const Hs = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3546
+ const Xs = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
3580
3547
  Se.init(e, t), R.init(e, t);
3581
3548
  });
3582
3549
  // @__NO_SIDE_EFFECTS__
3583
- function Qs(e) {
3584
- return new Hs({
3550
+ function Hs(e) {
3551
+ return new Xs({
3585
3552
  type: "optional",
3586
3553
  innerType: e
3587
3554
  });
3588
3555
  }
3589
- const ei = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3556
+ const Qs = /* @__PURE__ */ l("ZodMiniCustom", (e, t) => {
3590
3557
  mt.init(e, t), R.init(e, t);
3591
3558
  });
3592
3559
  // @__NO_SIDE_EFFECTS__
3593
3560
  function S(e, t = {}) {
3594
- return /* @__PURE__ */ yt(ei, e, t);
3561
+ return /* @__PURE__ */ yt(Qs, e, t);
3595
3562
  }
3596
3563
  // @__NO_SIDE_EFFECTS__
3597
3564
  function Tt(e) {
3598
3565
  return /* @__PURE__ */ gt(e);
3599
3566
  }
3600
3567
  const he = {
3601
- email: { schema: /* @__PURE__ */ Ls() },
3602
- hostname: { schema: /* @__PURE__ */ Bs() },
3603
- ipv4: { schema: /* @__PURE__ */ xs() },
3604
- ipv6: { schema: /* @__PURE__ */ Vs() },
3605
- url: { schema: /* @__PURE__ */ js() },
3606
- uuid: { schema: /* @__PURE__ */ Rs() },
3607
- date: { schema: Vo() },
3608
- time: { schema: Bo() },
3609
- "date-time": { schema: xo() },
3610
- duration: { schema: Go() }
3611
- }, ti = Object.keys(he), ni = (e) => (t, n) => {
3568
+ email: { schema: /* @__PURE__ */ Ms() },
3569
+ hostname: { schema: /* @__PURE__ */ Js() },
3570
+ ipv4: { schema: /* @__PURE__ */ Ws() },
3571
+ ipv6: { schema: /* @__PURE__ */ Us() },
3572
+ url: { schema: /* @__PURE__ */ Fs() },
3573
+ uuid: { schema: /* @__PURE__ */ Ds() },
3574
+ date: { schema: Uo() },
3575
+ time: { schema: Jo() },
3576
+ "date-time": { schema: Wo() },
3577
+ duration: { schema: Yo() }
3578
+ }, ei = Object.keys(he), ti = (e) => (t, n) => {
3612
3579
  switch (t.type) {
3613
3580
  case "string":
3614
- return ri(t, n);
3581
+ return ni(t, n);
3615
3582
  case "integer":
3616
3583
  case "number":
3617
- return si(t, n);
3584
+ return oi(t, n);
3618
3585
  case "boolean":
3619
- return ii(t, n);
3586
+ return si(t, n);
3620
3587
  case "array":
3621
- return ai(t, n);
3588
+ return ii(t, n);
3622
3589
  case "custom": {
3623
3590
  if (!e)
3624
3591
  throw new Error(
3625
3592
  'Validator type "custom" requires a customValidators object, but it was not supplied.'
3626
3593
  );
3627
- return ui(t, e);
3594
+ return ai(t, e);
3628
3595
  }
3629
3596
  }
3630
3597
  };
@@ -3632,7 +3599,7 @@ function b(e, t) {
3632
3599
  if (e !== void 0)
3633
3600
  return typeof e == "string" ? e : t?.translate(e.key, e.params, e.default) ?? e.default;
3634
3601
  }
3635
- function ri(e, t) {
3602
+ function ni(e, t) {
3636
3603
  return Y(e, (n) => {
3637
3604
  const r = b(n.messages?.invalid, t);
3638
3605
  let o = r ? /* @__PURE__ */ Ve(r) : /* @__PURE__ */ Ve();
@@ -3667,7 +3634,7 @@ function ri(e, t) {
3667
3634
  o = o.check(/* @__PURE__ */ S((i) => i === n.const, s ? { error: s } : void 0));
3668
3635
  }
3669
3636
  if (n.format !== void 0)
3670
- if (ti.includes(n.format)) {
3637
+ if (ei.includes(n.format)) {
3671
3638
  const s = b(n.messages?.format, t);
3672
3639
  o = o.check(
3673
3640
  s ? /* @__PURE__ */ Tt((i, a) => {
@@ -3683,23 +3650,23 @@ function ri(e, t) {
3683
3650
  return o;
3684
3651
  });
3685
3652
  }
3686
- const oi = (e, t) => {
3653
+ const ri = (e, t) => {
3687
3654
  if (t === 0)
3688
3655
  return !1;
3689
3656
  const n = e / t;
3690
3657
  return Math.abs(n - Math.round(n)) < 1e-10;
3691
3658
  };
3692
- function si(e, t) {
3659
+ function oi(e, t) {
3693
3660
  return Y(e, (n) => {
3694
3661
  const r = b(n.messages?.invalid, t);
3695
3662
  let o = r ? /* @__PURE__ */ Je(r) : /* @__PURE__ */ Je();
3696
- if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Gs())), n.minimum !== void 0) {
3663
+ if (n.type === "integer" && (o = o.check(/* @__PURE__ */ Ys())), n.minimum !== void 0) {
3697
3664
  const s = b(n.messages?.minimum, t), i = n.minimum;
3698
- o = o.check(s ? /* @__PURE__ */ S((a) => a >= i, { error: s }) : /* @__PURE__ */ po(i));
3665
+ o = o.check(s ? /* @__PURE__ */ S((a) => a >= i, { error: s }) : /* @__PURE__ */ lo(i));
3699
3666
  }
3700
3667
  if (n.maximum !== void 0) {
3701
3668
  const s = b(n.messages?.maximum, t), i = n.maximum;
3702
- o = o.check(s ? /* @__PURE__ */ S((a) => a <= i, { error: s }) : /* @__PURE__ */ lo(i));
3669
+ o = o.check(s ? /* @__PURE__ */ S((a) => a <= i, { error: s }) : /* @__PURE__ */ co(i));
3703
3670
  }
3704
3671
  if (n.exclusiveMinimum !== void 0) {
3705
3672
  const s = b(n.messages?.exclusiveMinimum, t), i = n.exclusiveMinimum;
@@ -3712,7 +3679,7 @@ function si(e, t) {
3712
3679
  if (n.multipleOf !== void 0) {
3713
3680
  const s = b(n.messages?.multipleOf, t), i = n.multipleOf;
3714
3681
  o = o.check(
3715
- /* @__PURE__ */ S((a) => oi(a, i), s ? { error: s } : void 0)
3682
+ /* @__PURE__ */ S((a) => ri(a, i), s ? { error: s } : void 0)
3716
3683
  );
3717
3684
  }
3718
3685
  if (n.enum) {
@@ -3726,7 +3693,7 @@ function si(e, t) {
3726
3693
  return o;
3727
3694
  });
3728
3695
  }
3729
- function ii(e, t) {
3696
+ function si(e, t) {
3730
3697
  return Y(e, (n) => {
3731
3698
  const r = b(n.messages?.invalid, t);
3732
3699
  let o = r ? /* @__PURE__ */ Be(r) : /* @__PURE__ */ Be();
@@ -3737,7 +3704,7 @@ function ii(e, t) {
3737
3704
  return o;
3738
3705
  });
3739
3706
  }
3740
- function ai(e, t) {
3707
+ function ii(e, t) {
3741
3708
  return Y(e, (n) => {
3742
3709
  const r = b(n.messages?.invalid, t);
3743
3710
  let o = r ? /* @__PURE__ */ Ye(/* @__PURE__ */ fe(), r) : /* @__PURE__ */ Ye(/* @__PURE__ */ fe());
@@ -3760,7 +3727,7 @@ function ai(e, t) {
3760
3727
  return o;
3761
3728
  });
3762
3729
  }
3763
- function ui(e, t) {
3730
+ function ai(e, t) {
3764
3731
  return Y(e, (n) => {
3765
3732
  let r = /* @__PURE__ */ fe();
3766
3733
  return $t(
@@ -3791,8 +3758,42 @@ function ui(e, t) {
3791
3758
  }
3792
3759
  function Y(e, t) {
3793
3760
  const n = t(e);
3794
- return e.required ? n : /* @__PURE__ */ Qs(n);
3761
+ return e.required ? n : /* @__PURE__ */ Hs(n);
3795
3762
  }
3763
+ const ui = {
3764
+ // INTERACTIVE
3765
+ button: async () => (await import("./Button-BYVR5EKG.js")).Button,
3766
+ // CONTROLS
3767
+ calendar: async () => (await import("./Calendar-BmMkpTcV.js")).Calendar,
3768
+ currency: async () => (await import("./Currency-D0pOQwU4.js")).Currency,
3769
+ dateInput: async () => (await import("./DateInput-Vg-781Bt.js")).DateInput,
3770
+ datePicker: async () => (await import("./DatePicker-DIkcgt7S.js")).DatePicker,
3771
+ dropdown: async () => (await import("./Dropdown-C-_zDFCe.js")).Dropdown,
3772
+ list: async () => (await import("./List-YkH8gdMh.js")).List,
3773
+ password: async () => (await import("./Password-B8QjtpUe.js")).Password,
3774
+ textinput: async () => (await import("./TextInput-KuHLSN2X.js")).TextInput,
3775
+ textarea: async () => (await import("./TextArea-BlRaVCon.js")).TextArea,
3776
+ markdown: async () => (await import("./Markdown-DeAW4y3P.js")).Markdown,
3777
+ checkbox: async () => (await import("./Checkbox-B1Tsf-vi.js")).Checkbox,
3778
+ toggle: async () => (await import("./Toggle-D-bglMPv.js")).Toggle,
3779
+ number: async () => (await import("./Number-GsGZMR5a.js")).NumberInput,
3780
+ select: async () => (await import("./Select-CCCPYQW6.js")).Select,
3781
+ radiogroup: async () => (await import("./RadioGroup-Cd1_Zkkz.js")).RadioGroup,
3782
+ rangeCalendar: async () => (await import("./RangeCalendar-9IJoFEXw.js")).RangeCalendar,
3783
+ rangeDateInput: async () => (await import("./RangeDateInput-BoAxI9M9.js")).RangeDateInput,
3784
+ rangeDatePicker: async () => (await import("./RangeDatePicker-Xt0affe_.js")).RangeDatePicker,
3785
+ // REPEATER
3786
+ repeater: async () => (await import("./Repeater-DE-DAylQ.js")).Repeater,
3787
+ // LAYOUTS
3788
+ flex: async () => (await import("./Flex-Rs-RvIcq.js")).Flex,
3789
+ grid: async () => (await import("./Grid-BcPUrfRL.js")).Grid,
3790
+ tabs: async () => (await import("./Tabs-BVgVVvnu.js")).Tabs,
3791
+ accordion: async () => (await import("./Accordion-BU3skkjb.js")).Accordion,
3792
+ // DISPLAY
3793
+ alert: async () => (await import("./Alert-DpUiDxQT.js")).Alert,
3794
+ markdownText: async () => (await import("./MarkdownText-BdISjAsE.js")).MarkdownText,
3795
+ renderer: async () => (await import("./Renderer-CWqudTUu.js")).Renderer
3796
+ };
3796
3797
  function fi({
3797
3798
  config: e,
3798
3799
  formHealth: t = void 0,
@@ -3801,12 +3802,12 @@ function fi({
3801
3802
  ref: o
3802
3803
  }) {
3803
3804
  const s = Pt(
3804
- () => Cn(e.formDef, e.formSelectors, e.formConfig),
3805
+ () => Zn(e.formDef, e.formSelectors, e.formConfig),
3805
3806
  [e]
3806
3807
  ), i = {
3807
3808
  formDef: s.formDef,
3808
3809
  widgetLoaders: {
3809
- ...Zt,
3810
+ ...ui,
3810
3811
  ...s.widgetLoaders,
3811
3812
  ...e.customWidgetLoaders ?? {}
3812
3813
  },
@@ -3821,7 +3822,7 @@ function fi({
3821
3822
  data: e.data,
3822
3823
  meta: e.meta,
3823
3824
  formName: e.formName
3824
- }, a = ni({ ...e.customValidators ?? {} }), u = s.formEvent && n ? (c) => {
3825
+ }, a = ti({ ...e.customValidators ?? {} }), u = s.formEvent && n ? (c) => {
3825
3826
  s.formEvent?.(c), n(c);
3826
3827
  } : n ?? s.formEvent;
3827
3828
  return /* @__PURE__ */ Ot(
@@ -3838,5 +3839,5 @@ function fi({
3838
3839
  }
3839
3840
  export {
3840
3841
  fi as GuiForm,
3841
- Zt as widgetLoaders
3842
+ ui as widgetLoaders
3842
3843
  };