@burdenoff/microfe-product 2026.525.6 → 2026.529.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +211 -169
  2. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  3. package/dist/node_modules/zod/v4/classic/errors.js +1 -1
  4. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -1
  5. package/dist/node_modules/zod/v4/classic/schemas.js +439 -176
  6. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
  7. package/dist/node_modules/zod/v4/core/api.js +6 -6
  8. package/dist/node_modules/zod/v4/core/api.js.map +1 -1
  9. package/dist/node_modules/zod/v4/core/core.js +11 -8
  10. package/dist/node_modules/zod/v4/core/core.js.map +1 -1
  11. package/dist/node_modules/zod/v4/core/errors.js +12 -9
  12. package/dist/node_modules/zod/v4/core/errors.js.map +1 -1
  13. package/dist/node_modules/zod/v4/core/json-schema-processors.js +7 -5
  14. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
  15. package/dist/node_modules/zod/v4/core/parse.js +28 -7
  16. package/dist/node_modules/zod/v4/core/parse.js.map +1 -1
  17. package/dist/node_modules/zod/v4/core/regexes.js +11 -11
  18. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
  19. package/dist/node_modules/zod/v4/core/schemas.js +206 -142
  20. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
  21. package/dist/node_modules/zod/v4/core/to-json-schema.js +7 -5
  22. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -1
  23. package/dist/node_modules/zod/v4/core/util.js +70 -71
  24. package/dist/node_modules/zod/v4/core/util.js.map +1 -1
  25. package/dist/node_modules/zod/v4/core/versions.js +2 -2
  26. package/dist/node_modules/zod/v4/core/versions.js.map +1 -1
  27. package/dist/product/pages/ContentPageViewPage.js +1 -0
  28. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  29. package/dist/product/pages/ProductCatalogPage.js +4 -2
  30. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  31. package/dist/product/pages/ProductViewPage.js +3 -2
  32. package/dist/product/pages/ProductViewPage.js.map +1 -1
  33. package/dist/product/providers/ProductUserProvider.js +1 -1
  34. package/dist/product/providers/ProductUserProvider.js.map +1 -1
  35. package/dist/product-management/ProductManagementRoot.js +6 -2
  36. package/dist/product-management/ProductManagementRoot.js.map +1 -1
  37. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +1 -1
  38. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  39. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +1 -0
  40. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  41. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +6 -3
  42. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  43. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +1 -0
  44. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  45. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +8 -1
  46. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  47. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  48. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  49. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +1 -0
  50. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  51. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +3 -1
  52. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  53. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +1 -1
  54. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  55. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +8 -2
  56. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  57. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +1 -0
  58. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  59. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +3 -0
  60. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  61. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +1 -0
  62. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  63. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +8 -1
  64. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  65. package/dist/product-management/modules/products/components/ProductForm.js +355 -350
  66. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  67. package/dist/product-management/modules/products/components/ProductPlans.js +8 -1
  68. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  69. package/dist/product-management/modules/products/pages/ProductCreatePage.js +1 -0
  70. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  71. package/dist/product-management/modules/products/pages/ProductDetailPage.js +6 -2
  72. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  73. package/dist/product-management/modules/products/pages/ProductEditPage.js +1 -0
  74. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  75. package/dist/product-management/modules/products/pages/ProductsListPage.js +11 -4
  76. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  77. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +2 -2
  78. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  79. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js +1 -1
  80. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -1
  81. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +1 -0
  82. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  83. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +4 -0
  84. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  85. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +1 -0
  86. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  87. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +9 -0
  88. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  89. package/dist/product-management/providers/ProductConsoleProvider.js +1 -1
  90. package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -1
  91. package/dist/product-management/shared/components/AuditHistoryTab.js +1 -1
  92. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  93. package/dist/product-management/shared/components/feedback/EmptyState.js +12 -22
  94. package/dist/product-management/shared/components/feedback/EmptyState.js.map +1 -1
  95. package/dist/product-management/shared/components/feedback/ErrorState.js +2 -1
  96. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
  97. package/dist/product-management/shared/components/input/SearchInput.js +1 -0
  98. package/dist/product-management/shared/components/input/SearchInput.js.map +1 -1
  99. package/dist/product-management/shared/utils/exportUtils.js.map +1 -1
  100. package/package.json +2 -2
  101. package/dist/product-management/shared/index.js +0 -5
@@ -1,7 +1,7 @@
1
1
  import { $ZodAsyncError as e, $ZodEncodeError as t, $constructor as n, config as r, globalConfig as i } from "./core.js";
2
- import { aborted as a, allowsEval as o, cached as s, cleanRegex as c, defineLazy as l, esc as u, escapeRegex as d, finalizeIssue as f, getEnumValues as p, isObject as m, isPlainObject as h, issue as g, optionalKeys as ee, prefixIssues as _, propertyKeyTypes as v } from "./util.js";
3
- import { safeParse as y, safeParseAsync as b } from "./parse.js";
4
- import { _undefined as x, base64 as te, base64url as S, boolean as ne, cidrv4 as re, cidrv6 as ie, cuid as ae, cuid2 as oe, date as se, datetime as ce, duration as le, e164 as ue, email as de, emoji as fe, guid as pe, ipv4 as me, ipv6 as he, ksuid as ge, nanoid as _e, number as C, string as w, time as T, ulid as E, uuid as D, xid as O } from "./regexes.js";
2
+ import { aborted as a, allowsEval as o, cached as s, cleanRegex as c, defineLazy as l, esc as u, escapeRegex as d, explicitlyAborted as f, finalizeIssue as p, getEnumValues as m, isObject as h, isPlainObject as g, issue as _, optionalKeys as ee, prefixIssues as v, propertyKeyTypes as y } from "./util.js";
3
+ import { safeParse as b, safeParseAsync as te } from "./parse.js";
4
+ import { _undefined as ne, base64 as re, base64url as x, boolean as ie, cidrv4 as ae, cidrv6 as oe, cuid as se, cuid2 as ce, date as le, datetime as ue, duration as de, e164 as fe, email as pe, emoji as me, guid as he, httpProtocol as ge, ipv4 as _e, ipv6 as ve, ksuid as ye, nanoid as S, number as C, string as w, time as T, ulid as E, uuid as D, xid as O } from "./regexes.js";
5
5
  import { $ZodCheck as k, $ZodCheckNumberFormat as A, $ZodCheckStringFormat as j } from "./checks.js";
6
6
  import { Doc as M } from "./doc.js";
7
7
  import { version as N } from "./versions.js";
@@ -20,7 +20,7 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
20
20
  let i = a(t), o;
21
21
  for (let s of n) {
22
22
  if (s._zod.def.when) {
23
- if (!s._zod.def.when(t)) continue;
23
+ if (f(t) || !s._zod.def.when(t)) continue;
24
24
  } else if (i) continue;
25
25
  let n = t.issues.length, c = s._zod.check(t);
26
26
  if (c instanceof Promise && r?.async === !1) throw new e();
@@ -65,10 +65,10 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
65
65
  l(t, "~standard", () => ({
66
66
  validate: (e) => {
67
67
  try {
68
- let n = y(t, e);
68
+ let n = b(t, e);
69
69
  return n.success ? { value: n.data } : { issues: n.error?.issues };
70
70
  } catch {
71
- return b(t, e).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
71
+ return te(t, e).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
72
72
  }
73
73
  },
74
74
  vendor: "zod",
@@ -88,9 +88,9 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
88
88
  };
89
89
  }), I = /* @__PURE__ */ n("$ZodStringFormat", (e, t) => {
90
90
  j.init(e, t), F.init(e, t);
91
- }), ve = /* @__PURE__ */ n("$ZodGUID", (e, t) => {
92
- t.pattern ??= pe, I.init(e, t);
93
- }), ye = /* @__PURE__ */ n("$ZodUUID", (e, t) => {
91
+ }), be = /* @__PURE__ */ n("$ZodGUID", (e, t) => {
92
+ t.pattern ??= he, I.init(e, t);
93
+ }), xe = /* @__PURE__ */ n("$ZodUUID", (e, t) => {
94
94
  if (t.version) {
95
95
  let e = {
96
96
  v1: 1,
@@ -106,12 +106,24 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
106
106
  t.pattern ??= D(e);
107
107
  } else t.pattern ??= D();
108
108
  I.init(e, t);
109
- }), be = /* @__PURE__ */ n("$ZodEmail", (e, t) => {
110
- t.pattern ??= de, I.init(e, t);
111
- }), xe = /* @__PURE__ */ n("$ZodURL", (e, t) => {
109
+ }), Se = /* @__PURE__ */ n("$ZodEmail", (e, t) => {
110
+ t.pattern ??= pe, I.init(e, t);
111
+ }), Ce = /* @__PURE__ */ n("$ZodURL", (e, t) => {
112
112
  I.init(e, t), e._zod.check = (n) => {
113
113
  try {
114
- let r = n.value.trim(), i = new URL(r);
114
+ let r = n.value.trim();
115
+ if (!t.normalize && t.protocol?.source === ge.source && !/^https?:\/\//i.test(r)) {
116
+ n.issues.push({
117
+ code: "invalid_format",
118
+ format: "url",
119
+ note: "Invalid URL format",
120
+ input: n.value,
121
+ inst: e,
122
+ continue: !t.abort
123
+ });
124
+ return;
125
+ }
126
+ let i = new URL(r);
115
127
  t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
116
128
  code: "invalid_format",
117
129
  format: "url",
@@ -140,32 +152,32 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
140
152
  });
141
153
  }
142
154
  };
143
- }), Se = /* @__PURE__ */ n("$ZodEmoji", (e, t) => {
144
- t.pattern ??= fe(), I.init(e, t);
145
- }), Ce = /* @__PURE__ */ n("$ZodNanoID", (e, t) => {
146
- t.pattern ??= _e, I.init(e, t);
147
- }), we = /* @__PURE__ */ n("$ZodCUID", (e, t) => {
148
- t.pattern ??= ae, I.init(e, t);
149
- }), Te = /* @__PURE__ */ n("$ZodCUID2", (e, t) => {
150
- t.pattern ??= oe, I.init(e, t);
151
- }), Ee = /* @__PURE__ */ n("$ZodULID", (e, t) => {
155
+ }), we = /* @__PURE__ */ n("$ZodEmoji", (e, t) => {
156
+ t.pattern ??= me(), I.init(e, t);
157
+ }), Te = /* @__PURE__ */ n("$ZodNanoID", (e, t) => {
158
+ t.pattern ??= S, I.init(e, t);
159
+ }), Ee = /* @__PURE__ */ n("$ZodCUID", (e, t) => {
160
+ t.pattern ??= se, I.init(e, t);
161
+ }), De = /* @__PURE__ */ n("$ZodCUID2", (e, t) => {
162
+ t.pattern ??= ce, I.init(e, t);
163
+ }), Oe = /* @__PURE__ */ n("$ZodULID", (e, t) => {
152
164
  t.pattern ??= E, I.init(e, t);
153
- }), De = /* @__PURE__ */ n("$ZodXID", (e, t) => {
165
+ }), ke = /* @__PURE__ */ n("$ZodXID", (e, t) => {
154
166
  t.pattern ??= O, I.init(e, t);
155
- }), Oe = /* @__PURE__ */ n("$ZodKSUID", (e, t) => {
156
- t.pattern ??= ge, I.init(e, t);
157
- }), ke = /* @__PURE__ */ n("$ZodISODateTime", (e, t) => {
158
- t.pattern ??= ce(t), I.init(e, t);
159
- }), Ae = /* @__PURE__ */ n("$ZodISODate", (e, t) => {
160
- t.pattern ??= se, I.init(e, t);
161
- }), je = /* @__PURE__ */ n("$ZodISOTime", (e, t) => {
162
- t.pattern ??= T(t), I.init(e, t);
163
- }), Me = /* @__PURE__ */ n("$ZodISODuration", (e, t) => {
167
+ }), Ae = /* @__PURE__ */ n("$ZodKSUID", (e, t) => {
168
+ t.pattern ??= ye, I.init(e, t);
169
+ }), je = /* @__PURE__ */ n("$ZodISODateTime", (e, t) => {
170
+ t.pattern ??= ue(t), I.init(e, t);
171
+ }), Me = /* @__PURE__ */ n("$ZodISODate", (e, t) => {
164
172
  t.pattern ??= le, I.init(e, t);
165
- }), Ne = /* @__PURE__ */ n("$ZodIPv4", (e, t) => {
166
- t.pattern ??= me, I.init(e, t), e._zod.bag.format = "ipv4";
167
- }), Pe = /* @__PURE__ */ n("$ZodIPv6", (e, t) => {
168
- t.pattern ??= he, I.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
173
+ }), Ne = /* @__PURE__ */ n("$ZodISOTime", (e, t) => {
174
+ t.pattern ??= T(t), I.init(e, t);
175
+ }), Pe = /* @__PURE__ */ n("$ZodISODuration", (e, t) => {
176
+ t.pattern ??= de, I.init(e, t);
177
+ }), Fe = /* @__PURE__ */ n("$ZodIPv4", (e, t) => {
178
+ t.pattern ??= _e, I.init(e, t), e._zod.bag.format = "ipv4";
179
+ }), Ie = /* @__PURE__ */ n("$ZodIPv6", (e, t) => {
180
+ t.pattern ??= ve, I.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
169
181
  try {
170
182
  new URL(`http://[${n.value}]`);
171
183
  } catch {
@@ -178,10 +190,10 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
178
190
  });
179
191
  }
180
192
  };
181
- }), Fe = /* @__PURE__ */ n("$ZodCIDRv4", (e, t) => {
182
- t.pattern ??= re, I.init(e, t);
183
- }), Ie = /* @__PURE__ */ n("$ZodCIDRv6", (e, t) => {
184
- t.pattern ??= ie, I.init(e, t), e._zod.check = (n) => {
193
+ }), Le = /* @__PURE__ */ n("$ZodCIDRv4", (e, t) => {
194
+ t.pattern ??= ae, I.init(e, t);
195
+ }), Re = /* @__PURE__ */ n("$ZodCIDRv6", (e, t) => {
196
+ t.pattern ??= oe, I.init(e, t), e._zod.check = (n) => {
185
197
  let r = n.value.split("/");
186
198
  try {
187
199
  if (r.length !== 2) throw Error();
@@ -203,15 +215,15 @@ var P = /* @__PURE__ */ n("$ZodType", (t, n) => {
203
215
  });
204
216
  function L(e) {
205
217
  if (e === "") return !0;
206
- if (e.length % 4 != 0) return !1;
218
+ if (/\s/.test(e) || e.length % 4 != 0) return !1;
207
219
  try {
208
220
  return atob(e), !0;
209
221
  } catch {
210
222
  return !1;
211
223
  }
212
224
  }
213
- var Le = /* @__PURE__ */ n("$ZodBase64", (e, t) => {
214
- t.pattern ??= te, I.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
225
+ var ze = /* @__PURE__ */ n("$ZodBase64", (e, t) => {
226
+ t.pattern ??= re, I.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
215
227
  L(n.value) || n.issues.push({
216
228
  code: "invalid_format",
217
229
  format: "base64",
@@ -221,14 +233,14 @@ var Le = /* @__PURE__ */ n("$ZodBase64", (e, t) => {
221
233
  });
222
234
  };
223
235
  });
224
- function Re(e) {
225
- if (!S.test(e)) return !1;
236
+ function Be(e) {
237
+ if (!x.test(e)) return !1;
226
238
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
227
239
  return L(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
228
240
  }
229
- var ze = /* @__PURE__ */ n("$ZodBase64URL", (e, t) => {
230
- t.pattern ??= S, I.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
231
- Re(n.value) || n.issues.push({
241
+ var Ve = /* @__PURE__ */ n("$ZodBase64URL", (e, t) => {
242
+ t.pattern ??= x, I.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
243
+ Be(n.value) || n.issues.push({
232
244
  code: "invalid_format",
233
245
  format: "base64url",
234
246
  input: n.value,
@@ -236,10 +248,10 @@ var ze = /* @__PURE__ */ n("$ZodBase64URL", (e, t) => {
236
248
  continue: !t.abort
237
249
  });
238
250
  };
239
- }), Be = /* @__PURE__ */ n("$ZodE164", (e, t) => {
240
- t.pattern ??= ue, I.init(e, t);
251
+ }), He = /* @__PURE__ */ n("$ZodE164", (e, t) => {
252
+ t.pattern ??= fe, I.init(e, t);
241
253
  });
242
- function Ve(e, t = null) {
254
+ function Ue(e, t = null) {
243
255
  try {
244
256
  let n = e.split(".");
245
257
  if (n.length !== 3) return !1;
@@ -251,9 +263,9 @@ function Ve(e, t = null) {
251
263
  return !1;
252
264
  }
253
265
  }
254
- var He = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
266
+ var We = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
255
267
  I.init(e, t), e._zod.check = (n) => {
256
- Ve(n.value, t.alg) || n.issues.push({
268
+ Ue(n.value, t.alg) || n.issues.push({
257
269
  code: "invalid_format",
258
270
  format: "jwt",
259
271
  input: n.value,
@@ -277,10 +289,10 @@ var He = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
277
289
  ...a ? { received: a } : {}
278
290
  }), n;
279
291
  };
280
- }), Ue = /* @__PURE__ */ n("$ZodNumberFormat", (e, t) => {
292
+ }), Ge = /* @__PURE__ */ n("$ZodNumberFormat", (e, t) => {
281
293
  A.init(e, t), R.init(e, t);
282
- }), We = /* @__PURE__ */ n("$ZodBoolean", (e, t) => {
283
- P.init(e, t), e._zod.pattern = ne, e._zod.parse = (n, r) => {
294
+ }), Ke = /* @__PURE__ */ n("$ZodBoolean", (e, t) => {
295
+ P.init(e, t), e._zod.pattern = ie, e._zod.parse = (n, r) => {
284
296
  if (t.coerce) try {
285
297
  n.value = !!n.value;
286
298
  } catch {}
@@ -292,8 +304,8 @@ var He = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
292
304
  inst: e
293
305
  }), n;
294
306
  };
295
- }), Ge = /* @__PURE__ */ n("$ZodUndefined", (e, t) => {
296
- P.init(e, t), e._zod.pattern = x, e._zod.values = new Set([void 0]), e._zod.optin = "optional", e._zod.optout = "optional", e._zod.parse = (t, n) => {
307
+ }), qe = /* @__PURE__ */ n("$ZodUndefined", (e, t) => {
308
+ P.init(e, t), e._zod.pattern = ne, e._zod.values = new Set([void 0]), e._zod.parse = (t, n) => {
297
309
  let r = t.value;
298
310
  return r === void 0 || t.issues.push({
299
311
  expected: "undefined",
@@ -302,9 +314,9 @@ var He = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
302
314
  inst: e
303
315
  }), t;
304
316
  };
305
- }), Ke = /* @__PURE__ */ n("$ZodUnknown", (e, t) => {
317
+ }), Je = /* @__PURE__ */ n("$ZodUnknown", (e, t) => {
306
318
  P.init(e, t), e._zod.parse = (e) => e;
307
- }), qe = /* @__PURE__ */ n("$ZodNever", (e, t) => {
319
+ }), Ye = /* @__PURE__ */ n("$ZodNever", (e, t) => {
308
320
  P.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
309
321
  expected: "never",
310
322
  code: "invalid_type",
@@ -313,9 +325,9 @@ var He = /* @__PURE__ */ n("$ZodJWT", (e, t) => {
313
325
  }), t);
314
326
  });
315
327
  function z(e, t, n) {
316
- e.issues.length && t.issues.push(..._(n, e.issues)), t.value[n] = e.value;
328
+ e.issues.length && t.issues.push(...v(n, e.issues)), t.value[n] = e.value;
317
329
  }
318
- var Je = /* @__PURE__ */ n("$ZodArray", (e, t) => {
330
+ var Xe = /* @__PURE__ */ n("$ZodArray", (e, t) => {
319
331
  P.init(e, t), e._zod.parse = (n, r) => {
320
332
  let i = n.value;
321
333
  if (!Array.isArray(i)) return n.issues.push({
@@ -336,12 +348,22 @@ var Je = /* @__PURE__ */ n("$ZodArray", (e, t) => {
336
348
  return a.length ? Promise.all(a).then(() => n) : n;
337
349
  };
338
350
  });
339
- function B(e, t, n, r, i) {
351
+ function B(e, t, n, r, i, a) {
352
+ let o = n in r;
340
353
  if (e.issues.length) {
341
- if (i && !(n in r)) return;
342
- t.issues.push(..._(n, e.issues));
354
+ if (i && a && !o) return;
355
+ t.issues.push(...v(n, e.issues));
356
+ }
357
+ if (!o && !i) {
358
+ e.issues.length || t.issues.push({
359
+ code: "invalid_type",
360
+ expected: "nonoptional",
361
+ input: void 0,
362
+ path: [n]
363
+ });
364
+ return;
343
365
  }
344
- e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
366
+ e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
345
367
  }
346
368
  function V(e) {
347
369
  let t = Object.keys(e.shape);
@@ -356,9 +378,9 @@ function V(e) {
356
378
  };
357
379
  }
358
380
  function H(e, t, n, r, i, a) {
359
- let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optout === "optional";
381
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
360
382
  for (let i in t) {
361
- if (s.has(i)) continue;
383
+ if (i === "__proto__" || s.has(i)) continue;
362
384
  if (l === "never") {
363
385
  o.push(i);
364
386
  continue;
@@ -367,7 +389,7 @@ function H(e, t, n, r, i, a) {
367
389
  value: t[i],
368
390
  issues: []
369
391
  }, r);
370
- a instanceof Promise ? e.push(a.then((e) => B(e, n, i, t, u))) : B(a, n, i, t, u);
392
+ a instanceof Promise ? e.push(a.then((e) => B(e, n, i, t, u, d))) : B(a, n, i, t, u, d);
371
393
  }
372
394
  return o.length && n.issues.push({
373
395
  code: "unrecognized_keys",
@@ -376,7 +398,7 @@ function H(e, t, n, r, i, a) {
376
398
  inst: a
377
399
  }), e.length ? Promise.all(e).then(() => n) : n;
378
400
  }
379
- var Ye = /* @__PURE__ */ n("$ZodObject", (e, t) => {
401
+ var Ze = /* @__PURE__ */ n("$ZodObject", (e, t) => {
380
402
  if (P.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
381
403
  let e = t.shape;
382
404
  Object.defineProperty(t, "shape", { get: () => {
@@ -396,7 +418,7 @@ var Ye = /* @__PURE__ */ n("$ZodObject", (e, t) => {
396
418
  }
397
419
  return n;
398
420
  });
399
- let r = m, i = t.catchall, a;
421
+ let r = h, i = t.catchall, a;
400
422
  e._zod.parse = (t, o) => {
401
423
  a ??= n.value;
402
424
  let s = t.value;
@@ -409,16 +431,16 @@ var Ye = /* @__PURE__ */ n("$ZodObject", (e, t) => {
409
431
  t.value = {};
410
432
  let c = [], l = a.shape;
411
433
  for (let e of a.keys) {
412
- let n = l[e], r = n._zod.optout === "optional", i = n._zod.run({
434
+ let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
413
435
  value: s[e],
414
436
  issues: []
415
437
  }, o);
416
- i instanceof Promise ? c.push(i.then((n) => B(n, t, e, s, r))) : B(i, t, e, s, r);
438
+ a instanceof Promise ? c.push(a.then((n) => B(n, t, e, s, r, i))) : B(a, t, e, s, r, i);
417
439
  }
418
440
  return i ? H(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
419
441
  };
420
- }), Xe = /* @__PURE__ */ n("$ZodObjectJIT", (e, t) => {
421
- Ye.init(e, t);
442
+ }), Qe = /* @__PURE__ */ n("$ZodObjectJIT", (e, t) => {
443
+ Ze.init(e, t);
422
444
  let n = e._zod.parse, r = s(() => V(t)), a = (e) => {
423
445
  let t = new M([
424
446
  "shape",
@@ -433,8 +455,8 @@ var Ye = /* @__PURE__ */ n("$ZodObject", (e, t) => {
433
455
  for (let e of n.keys) a[e] = `key_${o++}`;
434
456
  t.write("const newResult = {};");
435
457
  for (let r of n.keys) {
436
- let n = a[r], o = u(r), s = e[r]?._zod?.optout === "optional";
437
- t.write(`const ${n} = ${i(r)};`), s ? t.write(`
458
+ let n = a[r], o = u(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
459
+ t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
438
460
  if (${n}.issues.length) {
439
461
  if (${o} in input) {
440
462
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -452,7 +474,7 @@ var Ye = /* @__PURE__ */ n("$ZodObject", (e, t) => {
452
474
  newResult[${o}] = ${n}.value;
453
475
  }
454
476
 
455
- `) : t.write(`
477
+ `) : c ? t.write(`
456
478
  if (${n}.issues.length) {
457
479
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
458
480
  ...iss,
@@ -468,16 +490,41 @@ var Ye = /* @__PURE__ */ n("$ZodObject", (e, t) => {
468
490
  newResult[${o}] = ${n}.value;
469
491
  }
470
492
 
493
+ `) : t.write(`
494
+ const ${n}_present = ${o} in input;
495
+ if (${n}.issues.length) {
496
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
497
+ ...iss,
498
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
499
+ })));
500
+ }
501
+ if (!${n}_present && !${n}.issues.length) {
502
+ payload.issues.push({
503
+ code: "invalid_type",
504
+ expected: "nonoptional",
505
+ input: undefined,
506
+ path: [${o}]
507
+ });
508
+ }
509
+
510
+ if (${n}_present) {
511
+ if (${n}.value === undefined) {
512
+ newResult[${o}] = undefined;
513
+ } else {
514
+ newResult[${o}] = ${n}.value;
515
+ }
516
+ }
517
+
471
518
  `);
472
519
  }
473
520
  t.write("payload.value = newResult;"), t.write("return payload;");
474
521
  let s = t.compile();
475
522
  return (t, n) => s(e, t, n);
476
- }, c, l = m, d = !i.jitless, f = d && o.value, p = t.catchall, h;
523
+ }, c, l = h, d = !i.jitless, f = d && o.value, p = t.catchall, m;
477
524
  e._zod.parse = (i, o) => {
478
- h ??= r.value;
525
+ m ??= r.value;
479
526
  let s = i.value;
480
- return l(s) ? d && f && o?.async === !1 && o.jitless !== !0 ? (c ||= a(t.shape), i = c(i, o), p ? H([], s, i, o, h, e) : i) : n(i, o) : (i.issues.push({
527
+ return l(s) ? d && f && o?.async === !1 && o.jitless !== !0 ? (c ||= a(t.shape), i = c(i, o), p ? H([], s, i, o, m, e) : i) : n(i, o) : (i.issues.push({
481
528
  expected: "object",
482
529
  code: "invalid_type",
483
530
  input: s,
@@ -492,10 +539,10 @@ function U(e, t, n, i) {
492
539
  code: "invalid_union",
493
540
  input: t.value,
494
541
  inst: n,
495
- errors: e.map((e) => e.issues.map((e) => f(e, i, r())))
542
+ errors: e.map((e) => e.issues.map((e) => p(e, i, r())))
496
543
  }), t);
497
544
  }
498
- var Ze = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
545
+ var $e = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
499
546
  P.init(e, t), l(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), l(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), l(e._zod, "values", () => {
500
547
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
501
548
  }), l(e._zod, "pattern", () => {
@@ -504,24 +551,24 @@ var Ze = /* @__PURE__ */ n("$ZodUnion", (e, t) => {
504
551
  return RegExp(`^(${e.map((e) => c(e.source)).join("|")})$`);
505
552
  }
506
553
  });
507
- let n = t.options.length === 1, r = t.options[0]._zod.run;
508
- e._zod.parse = (i, a) => {
509
- if (n) return r(i, a);
510
- let o = !1, s = [];
554
+ let n = t.options.length === 1 ? t.options[0]._zod.run : null;
555
+ e._zod.parse = (r, i) => {
556
+ if (n) return n(r, i);
557
+ let a = !1, o = [];
511
558
  for (let e of t.options) {
512
559
  let t = e._zod.run({
513
- value: i.value,
560
+ value: r.value,
514
561
  issues: []
515
- }, a);
516
- if (t instanceof Promise) s.push(t), o = !0;
562
+ }, i);
563
+ if (t instanceof Promise) o.push(t), a = !0;
517
564
  else {
518
565
  if (t.issues.length === 0) return t;
519
- s.push(t);
566
+ o.push(t);
520
567
  }
521
568
  }
522
- return o ? Promise.all(s).then((t) => U(t, i, e, a)) : U(s, i, e, a);
569
+ return a ? Promise.all(o).then((t) => U(t, r, e, i)) : U(o, r, e, i);
523
570
  };
524
- }), Qe = /* @__PURE__ */ n("$ZodIntersection", (e, t) => {
571
+ }), et = /* @__PURE__ */ n("$ZodIntersection", (e, t) => {
525
572
  P.init(e, t), e._zod.parse = (e, n) => {
526
573
  let r = e.value, i = t.left._zod.run({
527
574
  value: r,
@@ -538,7 +585,7 @@ function W(e, t) {
538
585
  valid: !0,
539
586
  data: e
540
587
  };
541
- if (h(e) && h(t)) {
588
+ if (g(e) && g(t)) {
542
589
  let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
543
590
  ...e,
544
591
  ...t
@@ -597,10 +644,10 @@ function G(e, t, n) {
597
644
  if (!s.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);
598
645
  return e.value = s.data, e;
599
646
  }
600
- var $e = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
647
+ var tt = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
601
648
  P.init(e, t), e._zod.parse = (n, i) => {
602
649
  let a = n.value;
603
- if (!h(a)) return n.issues.push({
650
+ if (!g(a)) return n.issues.push({
604
651
  expected: "record",
605
652
  code: "invalid_type",
606
653
  input: a,
@@ -609,29 +656,45 @@ var $e = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
609
656
  let o = [], s = t.keyType._zod.values;
610
657
  if (s) {
611
658
  n.value = {};
612
- let r = /* @__PURE__ */ new Set();
613
- for (let e of s) if (typeof e == "string" || typeof e == "number" || typeof e == "symbol") {
614
- r.add(typeof e == "number" ? e.toString() : e);
615
- let s = t.valueType._zod.run({
616
- value: a[e],
659
+ let c = /* @__PURE__ */ new Set();
660
+ for (let l of s) if (typeof l == "string" || typeof l == "number" || typeof l == "symbol") {
661
+ c.add(typeof l == "number" ? l.toString() : l);
662
+ let s = t.keyType._zod.run({
663
+ value: l,
664
+ issues: []
665
+ }, i);
666
+ if (s instanceof Promise) throw Error("Async schemas not supported in object keys currently");
667
+ if (s.issues.length) {
668
+ n.issues.push({
669
+ code: "invalid_key",
670
+ origin: "record",
671
+ issues: s.issues.map((e) => p(e, i, r())),
672
+ input: l,
673
+ path: [l],
674
+ inst: e
675
+ });
676
+ continue;
677
+ }
678
+ let u = s.value, d = t.valueType._zod.run({
679
+ value: a[l],
617
680
  issues: []
618
681
  }, i);
619
- s instanceof Promise ? o.push(s.then((t) => {
620
- t.issues.length && n.issues.push(..._(e, t.issues)), n.value[e] = t.value;
621
- })) : (s.issues.length && n.issues.push(..._(e, s.issues)), n.value[e] = s.value);
682
+ d instanceof Promise ? o.push(d.then((e) => {
683
+ e.issues.length && n.issues.push(...v(l, e.issues)), n.value[u] = e.value;
684
+ })) : (d.issues.length && n.issues.push(...v(l, d.issues)), n.value[u] = d.value);
622
685
  }
623
- let c;
624
- for (let e in a) r.has(e) || (c ??= [], c.push(e));
625
- c && c.length > 0 && n.issues.push({
686
+ let l;
687
+ for (let e in a) c.has(e) || (l ??= [], l.push(e));
688
+ l && l.length > 0 && n.issues.push({
626
689
  code: "unrecognized_keys",
627
690
  input: a,
628
691
  inst: e,
629
- keys: c
692
+ keys: l
630
693
  });
631
694
  } else {
632
695
  n.value = {};
633
696
  for (let s of Reflect.ownKeys(a)) {
634
- if (s === "__proto__") continue;
697
+ if (s === "__proto__" || !Object.prototype.propertyIsEnumerable.call(a, s)) continue;
635
698
  let c = t.keyType._zod.run({
636
699
  value: s,
637
700
  issues: []
@@ -649,7 +712,7 @@ var $e = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
649
712
  t.mode === "loose" ? n.value[s] = a[s] : n.issues.push({
650
713
  code: "invalid_key",
651
714
  origin: "record",
652
- issues: c.issues.map((e) => f(e, i, r())),
715
+ issues: c.issues.map((e) => p(e, i, r())),
653
716
  input: s,
654
717
  path: [s],
655
718
  inst: e
@@ -661,16 +724,16 @@ var $e = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
661
724
  issues: []
662
725
  }, i);
663
726
  l instanceof Promise ? o.push(l.then((e) => {
664
- e.issues.length && n.issues.push(..._(s, e.issues)), n.value[c.value] = e.value;
665
- })) : (l.issues.length && n.issues.push(..._(s, l.issues)), n.value[c.value] = l.value);
727
+ e.issues.length && n.issues.push(...v(s, e.issues)), n.value[c.value] = e.value;
728
+ })) : (l.issues.length && n.issues.push(...v(s, l.issues)), n.value[c.value] = l.value);
666
729
  }
667
730
  }
668
731
  return o.length ? Promise.all(o).then(() => n) : n;
669
732
  };
670
- }), et = /* @__PURE__ */ n("$ZodEnum", (e, t) => {
733
+ }), nt = /* @__PURE__ */ n("$ZodEnum", (e, t) => {
671
734
  P.init(e, t);
672
- let n = p(t.entries), r = new Set(n);
673
- e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => v.has(typeof e)).map((e) => typeof e == "string" ? d(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
735
+ let n = m(t.entries), r = new Set(n);
736
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => y.has(typeof e)).map((e) => typeof e == "string" ? d(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
674
737
  let a = t.value;
675
738
  return r.has(a) || t.issues.push({
676
739
  code: "invalid_value",
@@ -679,7 +742,7 @@ var $e = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
679
742
  inst: e
680
743
  }), t;
681
744
  };
682
- }), tt = /* @__PURE__ */ n("$ZodLiteral", (e, t) => {
745
+ }), rt = /* @__PURE__ */ n("$ZodLiteral", (e, t) => {
683
746
  if (P.init(e, t), t.values.length === 0) throw Error("Cannot create literal schema with no valid values");
684
747
  let n = new Set(t.values);
685
748
  e._zod.values = n, e._zod.pattern = RegExp(`^(${t.values.map((e) => typeof e == "string" ? d(e) : e ? d(e.toString()) : String(e)).join("|")})$`), e._zod.parse = (r, i) => {
@@ -691,17 +754,17 @@ var $e = /* @__PURE__ */ n("$ZodRecord", (e, t) => {
691
754
  inst: e
692
755
  }), r;
693
756
  };
694
- }), nt = /* @__PURE__ */ n("$ZodTransform", (n, r) => {
695
- P.init(n, r), n._zod.parse = (i, a) => {
757
+ }), it = /* @__PURE__ */ n("$ZodTransform", (n, r) => {
758
+ P.init(n, r), n._zod.optin = "optional", n._zod.parse = (i, a) => {
696
759
  if (a.direction === "backward") throw new t(n.constructor.name);
697
760
  let o = r.transform(i.value, i);
698
- if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i));
761
+ if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (i.value = e, i.fallback = !0, i));
699
762
  if (o instanceof Promise) throw new e();
700
- return i.value = o, i;
763
+ return i.value = o, i.fallback = !0, i;
701
764
  };
702
765
  });
703
766
  function K(e, t) {
704
- return e.issues.length && t === void 0 ? {
767
+ return t === void 0 && (e.issues.length || e.fallback) ? {
705
768
  issues: [],
706
769
  value: void 0
707
770
  } : e;
@@ -712,32 +775,32 @@ var q = /* @__PURE__ */ n("$ZodOptional", (e, t) => {
712
775
  return e ? RegExp(`^(${c(e.source)})?$`) : void 0;
713
776
  }), e._zod.parse = (e, n) => {
714
777
  if (t.innerType._zod.optin === "optional") {
715
- let r = t.innerType._zod.run(e, n);
716
- return r instanceof Promise ? r.then((t) => K(t, e.value)) : K(r, e.value);
778
+ let r = e.value, i = t.innerType._zod.run(e, n);
779
+ return i instanceof Promise ? i.then((e) => K(e, r)) : K(i, r);
717
780
  }
718
781
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
719
782
  };
720
- }), J = /* @__PURE__ */ n("$ZodExactOptional", (e, t) => {
783
+ }), at = /* @__PURE__ */ n("$ZodExactOptional", (e, t) => {
721
784
  q.init(e, t), l(e._zod, "values", () => t.innerType._zod.values), l(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
722
- }), rt = /* @__PURE__ */ n("$ZodNullable", (e, t) => {
785
+ }), ot = /* @__PURE__ */ n("$ZodNullable", (e, t) => {
723
786
  P.init(e, t), l(e._zod, "optin", () => t.innerType._zod.optin), l(e._zod, "optout", () => t.innerType._zod.optout), l(e._zod, "pattern", () => {
724
787
  let e = t.innerType._zod.pattern;
725
788
  return e ? RegExp(`^(${c(e.source)}|null)$`) : void 0;
726
789
  }), l(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
727
- }), it = /* @__PURE__ */ n("$ZodDefault", (e, t) => {
790
+ }), st = /* @__PURE__ */ n("$ZodDefault", (e, t) => {
728
791
  P.init(e, t), e._zod.optin = "optional", l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
729
792
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
730
793
  if (e.value === void 0) return e.value = t.defaultValue, e;
731
794
  let r = t.innerType._zod.run(e, n);
732
- return r instanceof Promise ? r.then((e) => Y(e, t)) : Y(r, t);
795
+ return r instanceof Promise ? r.then((e) => J(e, t)) : J(r, t);
733
796
  };
734
797
  });
735
- function Y(e, t) {
798
+ function J(e, t) {
736
799
  return e.value === void 0 && (e.value = t.defaultValue), e;
737
800
  }
738
- var at = /* @__PURE__ */ n("$ZodPrefault", (e, t) => {
801
+ var ct = /* @__PURE__ */ n("$ZodPrefault", (e, t) => {
739
802
  P.init(e, t), e._zod.optin = "optional", l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
740
- }), ot = /* @__PURE__ */ n("$ZodNonOptional", (e, t) => {
803
+ }), Y = /* @__PURE__ */ n("$ZodNonOptional", (e, t) => {
741
804
  P.init(e, t), l(e._zod, "values", () => {
742
805
  let e = t.innerType._zod.values;
743
806
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
@@ -754,21 +817,21 @@ function X(e, t) {
754
817
  inst: t
755
818
  }), e;
756
819
  }
757
- var st = /* @__PURE__ */ n("$ZodCatch", (e, t) => {
758
- P.init(e, t), l(e._zod, "optin", () => t.innerType._zod.optin), l(e._zod, "optout", () => t.innerType._zod.optout), l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
820
+ var lt = /* @__PURE__ */ n("$ZodCatch", (e, t) => {
821
+ P.init(e, t), e._zod.optin = "optional", l(e._zod, "optout", () => t.innerType._zod.optout), l(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
759
822
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
760
823
  let i = t.innerType._zod.run(e, n);
761
824
  return i instanceof Promise ? i.then((i) => (e.value = i.value, i.issues.length && (e.value = t.catchValue({
762
825
  ...e,
763
- error: { issues: i.issues.map((e) => f(e, n, r())) },
826
+ error: { issues: i.issues.map((e) => p(e, n, r())) },
764
827
  input: e.value
765
- }), e.issues = []), e)) : (e.value = i.value, i.issues.length && (e.value = t.catchValue({
828
+ }), e.issues = [], e.fallback = !0), e)) : (e.value = i.value, i.issues.length && (e.value = t.catchValue({
766
829
  ...e,
767
- error: { issues: i.issues.map((e) => f(e, n, r())) },
830
+ error: { issues: i.issues.map((e) => p(e, n, r())) },
768
831
  input: e.value
769
- }), e.issues = []), e);
832
+ }), e.issues = [], e.fallback = !0), e);
770
833
  };
771
- }), ct = /* @__PURE__ */ n("$ZodPipe", (e, t) => {
834
+ }), ut = /* @__PURE__ */ n("$ZodPipe", (e, t) => {
772
835
  P.init(e, t), l(e._zod, "values", () => t.in._zod.values), l(e._zod, "optin", () => t.in._zod.optin), l(e._zod, "optout", () => t.out._zod.optout), l(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
773
836
  if (n.direction === "backward") {
774
837
  let r = t.out._zod.run(e, n);
@@ -781,10 +844,11 @@ var st = /* @__PURE__ */ n("$ZodCatch", (e, t) => {
781
844
  function Z(e, t, n) {
782
845
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
783
846
  value: e.value,
784
- issues: e.issues
847
+ issues: e.issues,
848
+ fallback: e.fallback
785
849
  }, n);
786
850
  }
787
- var lt = /* @__PURE__ */ n("$ZodReadonly", (e, t) => {
851
+ var dt = /* @__PURE__ */ n("$ZodReadonly", (e, t) => {
788
852
  P.init(e, t), l(e._zod, "propValues", () => t.innerType._zod.propValues), l(e._zod, "values", () => t.innerType._zod.values), l(e._zod, "optin", () => t.innerType?._zod?.optin), l(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
789
853
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
790
854
  let r = t.innerType._zod.run(e, n);
@@ -794,7 +858,7 @@ var lt = /* @__PURE__ */ n("$ZodReadonly", (e, t) => {
794
858
  function Q(e) {
795
859
  return e.value = Object.freeze(e.value), e;
796
860
  }
797
- var ut = /* @__PURE__ */ n("$ZodCustom", (e, t) => {
861
+ var ft = /* @__PURE__ */ n("$ZodCustom", (e, t) => {
798
862
  k.init(e, t), P.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
799
863
  let r = n.value, i = t.fn(r);
800
864
  if (i instanceof Promise) return i.then((t) => $(t, n, r, e));
@@ -810,10 +874,10 @@ function $(e, t, n, r) {
810
874
  path: [...r._zod.def.path ?? []],
811
875
  continue: !r._zod.def.abort
812
876
  };
813
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(g(e));
877
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(_(e));
814
878
  }
815
879
  }
816
880
  //#endregion
817
- export { Je as $ZodArray, Le as $ZodBase64, ze as $ZodBase64URL, We as $ZodBoolean, Fe as $ZodCIDRv4, Ie as $ZodCIDRv6, we as $ZodCUID, Te as $ZodCUID2, st as $ZodCatch, ut as $ZodCustom, it as $ZodDefault, Be as $ZodE164, be as $ZodEmail, Se as $ZodEmoji, et as $ZodEnum, J as $ZodExactOptional, ve as $ZodGUID, Ne as $ZodIPv4, Pe as $ZodIPv6, Ae as $ZodISODate, ke as $ZodISODateTime, Me as $ZodISODuration, je as $ZodISOTime, Qe as $ZodIntersection, He as $ZodJWT, Oe as $ZodKSUID, tt as $ZodLiteral, Ce as $ZodNanoID, qe as $ZodNever, ot as $ZodNonOptional, rt as $ZodNullable, R as $ZodNumber, Ue as $ZodNumberFormat, Xe as $ZodObjectJIT, q as $ZodOptional, ct as $ZodPipe, at as $ZodPrefault, lt as $ZodReadonly, $e as $ZodRecord, F as $ZodString, I as $ZodStringFormat, nt as $ZodTransform, P as $ZodType, Ee as $ZodULID, xe as $ZodURL, ye as $ZodUUID, Ge as $ZodUndefined, Ze as $ZodUnion, Ke as $ZodUnknown, De as $ZodXID };
881
+ export { Xe as $ZodArray, ze as $ZodBase64, Ve as $ZodBase64URL, Ke as $ZodBoolean, Le as $ZodCIDRv4, Re as $ZodCIDRv6, Ee as $ZodCUID, De as $ZodCUID2, lt as $ZodCatch, ft as $ZodCustom, st as $ZodDefault, He as $ZodE164, Se as $ZodEmail, we as $ZodEmoji, nt as $ZodEnum, at as $ZodExactOptional, be as $ZodGUID, Fe as $ZodIPv4, Ie as $ZodIPv6, Me as $ZodISODate, je as $ZodISODateTime, Pe as $ZodISODuration, Ne as $ZodISOTime, et as $ZodIntersection, We as $ZodJWT, Ae as $ZodKSUID, rt as $ZodLiteral, Te as $ZodNanoID, Ye as $ZodNever, Y as $ZodNonOptional, ot as $ZodNullable, R as $ZodNumber, Ge as $ZodNumberFormat, Qe as $ZodObjectJIT, q as $ZodOptional, ut as $ZodPipe, ct as $ZodPrefault, dt as $ZodReadonly, tt as $ZodRecord, F as $ZodString, I as $ZodStringFormat, it as $ZodTransform, P as $ZodType, Oe as $ZodULID, Ce as $ZodURL, xe as $ZodUUID, qe as $ZodUndefined, $e as $ZodUnion, Je as $ZodUnknown, ke as $ZodXID };
818
882
 
819
883
  //# sourceMappingURL=schemas.js.map