@coffer-org/web 1.9.2 → 2.0.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.
Files changed (141) hide show
  1. package/dist/assets/ChatWidget-Bz4u-SNy.js +16 -0
  2. package/dist/assets/ExtendReasonInfo-BeDIuYIi.js +1 -0
  3. package/dist/assets/GeoMap-7TgzIUoI.js +1 -0
  4. package/dist/assets/Icon-BOpumJtD.js +2 -0
  5. package/dist/assets/MarkdownEditor-CxlMpjDc.js +1042 -0
  6. package/dist/assets/NewRecordView-CEU4tihb.js +1 -0
  7. package/dist/assets/NoMac-BarbbnIj.js +1 -0
  8. package/dist/assets/PageBody-Y-cpiRMh.js +1 -0
  9. package/dist/assets/PluginSettingsPage-T_qvClIU.js +1 -0
  10. package/dist/assets/ScanSummary-CtIkC51I.js +1 -0
  11. package/dist/assets/SettingsForm-BHlzjvhR.js +1 -0
  12. package/dist/assets/SettingsPage-CVFkzyOu.js +3 -0
  13. package/dist/assets/Toolbar-C1CC_tBj.js +2 -0
  14. package/dist/assets/api-1ZNfndlh.js +1 -0
  15. package/dist/assets/auth-context-CJTSRD17.js +1 -0
  16. package/dist/assets/button-D-Q6I5Ob.js +1 -0
  17. package/dist/assets/chrome-BWlqqMIt.js +1 -0
  18. package/dist/assets/clsx-CjueKrWZ.js +1 -0
  19. package/dist/assets/combobox-DkZHekBD.js +1 -0
  20. package/dist/assets/{data-size-Bszy5tww.js → data-size-BKFevwmi.js} +1 -1
  21. package/dist/assets/{development-ChLInqDF.js → development-olQNibq5.js} +1 -1
  22. package/dist/assets/dialog-DqWXrq6M.js +1 -0
  23. package/dist/assets/dispatch-TTtoo72r.js +1 -0
  24. package/dist/assets/dist-COeDLrWj.js +1 -0
  25. package/dist/assets/esm-C5Scej0H.js +1 -0
  26. package/dist/assets/{esm-BNZSV1P6.js → esm-Dfm1ivm4.js} +11 -11
  27. package/dist/assets/{extend-B2TSunN9.js → extend-BEGrSWug.js} +1 -1
  28. package/dist/assets/field-frame-BoLGR-Rm.js +1 -0
  29. package/dist/assets/fields-CFyhFHW7.js +64 -0
  30. package/dist/assets/flag-icons-CTDpPZQq.css +1 -0
  31. package/dist/assets/i18n-vendor-T6EnJ_TL.js +13 -0
  32. package/dist/assets/icons-DBHj1PyA.js +6 -0
  33. package/dist/assets/index-Dyp9mLfJ.css +2 -0
  34. package/dist/assets/index-InoHPhVb.js +59 -0
  35. package/dist/assets/input-group-Bmvb-qBI.js +1 -0
  36. package/dist/assets/json-CkyL3W27.js +1 -0
  37. package/dist/assets/lib-B13BbhLB.js +16 -0
  38. package/dist/assets/lib-BJGpevNH.js +1 -0
  39. package/dist/assets/lib-Du7RHLba.js +1 -0
  40. package/dist/assets/lib-sYoE14fC.js +1 -0
  41. package/dist/assets/markdown-vendor-CtaBI5gJ.js +56 -0
  42. package/dist/assets/{micromark-extension-gfm-Cu0AwUgc.js → micromark-extension-gfm-BUw6_ZLT.js} +2 -2
  43. package/dist/assets/phone-input-DLmP9Sfd.js +21 -0
  44. package/dist/assets/plugin-ui-CKd6q8ec.js +1 -0
  45. package/dist/assets/react-vendor-BskHO5hY.js +229 -0
  46. package/dist/assets/shared-BTj2W-Q0.js +1 -0
  47. package/dist/assets/{shelf-BK3PnmC8.js → shelf-BqwX4Wzq.js} +1 -1
  48. package/dist/assets/space-separated-tokens-IJiqTQpk.js +1 -0
  49. package/dist/assets/square-CiErsTOS.js +1 -0
  50. package/dist/assets/{src-BTBN5KMd.js → src-2jGaQ-C3.js} +1 -1
  51. package/dist/assets/src-7UE-kCDq.js +1 -0
  52. package/dist/assets/src-7w_NUAGr.js +1 -0
  53. package/dist/assets/src-82xH6mzL.js +1 -0
  54. package/dist/assets/src-B03lewBR.js +1 -0
  55. package/dist/assets/{src-BRmMx6aP.js → src-B1VIJtHj.js} +1 -1
  56. package/dist/assets/src-BKtjLdxS.js +1 -0
  57. package/dist/assets/src-BqABh1uZ.js +1 -0
  58. package/dist/assets/src-Bw_s3Ntp.js +1 -0
  59. package/dist/assets/{src-CGDLkExi.js → src-C0UxSUeR.js} +1 -1
  60. package/dist/assets/{src-BZR3veCD.js → src-C78Tm4dQ.js} +4 -4
  61. package/dist/assets/{src-x98wK60X.js → src-CkyeS9DG.js} +1 -1
  62. package/dist/assets/src-D09noJea.js +1 -0
  63. package/dist/assets/{src-DiXQGHgL.js → src-DGTYbs6s.js} +1 -1
  64. package/dist/assets/src-DK2Y5zSQ.js +1 -0
  65. package/dist/assets/src-DK_szrYh.js +1 -0
  66. package/dist/assets/src-DNRPYtVW.js +1 -0
  67. package/dist/assets/src-DWuhltOv.js +4 -0
  68. package/dist/assets/src-DY4zcFBV.js +1 -0
  69. package/dist/assets/src-DdDc6tQm.js +1 -0
  70. package/dist/assets/src-DlMQDr49.js +1 -0
  71. package/dist/assets/src-DtS4bMoK.js +1 -0
  72. package/dist/assets/src-MK8RohgP.js +4 -0
  73. package/dist/assets/src-NjjI6BoS.js +2 -0
  74. package/dist/assets/src-RuPVoIKg.js +1 -0
  75. package/dist/assets/{src-yzod66e_2.js → src-zgHG-QuP.js} +1 -1
  76. package/dist/assets/ui-B3pPuRs1.js +2 -0
  77. package/dist/assets/ui-CqAR7iK_.js +2 -0
  78. package/dist/assets/ui-DzUTPbkP.js +2 -0
  79. package/dist/assets/ui-vendor-EU9CHLyR.js +44 -0
  80. package/dist/assets/use-media-query-DWcBtoAU.js +1 -0
  81. package/dist/assets/x-BFRg18Fi.js +1 -0
  82. package/dist/assets/zwitch-656t1L3N.js +1 -0
  83. package/dist/index.html +37 -26
  84. package/dist-vendor/react-dom-CSpNHkg-.js +131 -0
  85. package/dist-vendor/react-dom.js +5 -130
  86. package/dist-vendor/react-router-dom.js +8050 -0
  87. package/dist-vendor/web-sdk.js +964 -895
  88. package/package.json +8 -3
  89. package/site.d.mts +8 -0
  90. package/site.mjs +51 -0
  91. package/dist/assets/Combination-lRbXGCSx.js +0 -41
  92. package/dist/assets/ExtendReasonInfo-D50L3SUy.js +0 -1
  93. package/dist/assets/GeoMap-Gfe3Mxlk.js +0 -1
  94. package/dist/assets/MarkdownEditor-BZVJGWMb.js +0 -1057
  95. package/dist/assets/NewRecordView-Bc5P_UIV.js +0 -1
  96. package/dist/assets/NoMac-D7iyE4U0.js +0 -1
  97. package/dist/assets/PageBody-CvuReTKD.js +0 -1
  98. package/dist/assets/PluginSettingsPage-uganqrBt.js +0 -1
  99. package/dist/assets/ScanSummary-BtTfSAGX.js +0 -1
  100. package/dist/assets/SettingsForm-JjEXZ-t9.js +0 -1
  101. package/dist/assets/SettingsPage-D7eX_VOW.js +0 -3
  102. package/dist/assets/Toolbar-BwCsWgeh.js +0 -2
  103. package/dist/assets/api-CZDF0K_X.js +0 -1
  104. package/dist/assets/auth-context-Cw3aF7cR.js +0 -1
  105. package/dist/assets/button-Dlm2GmQs.js +0 -5
  106. package/dist/assets/chunk-KS7C4IRE-B1_Zk64s.js +0 -3
  107. package/dist/assets/clsx-enQ3xCtU.js +0 -1
  108. package/dist/assets/dist-CdqdWApy.js +0 -1
  109. package/dist/assets/dist-nHZzrtBn.js +0 -1
  110. package/dist/assets/esm-DCMdnC8o.js +0 -1
  111. package/dist/assets/field-frame-ghjkvmJL.js +0 -1
  112. package/dist/assets/fields-DM_Scep8.js +0 -64
  113. package/dist/assets/floating-ui.dom-BiC1_AXf.js +0 -1
  114. package/dist/assets/index-CO8Ldftb.css +0 -2
  115. package/dist/assets/index-DS03kek4.js +0 -354
  116. package/dist/assets/json-DhhZ0035.js +0 -1
  117. package/dist/assets/jsx-dev-runtime-CSfA-jUb.js +0 -6
  118. package/dist/assets/jsx-runtime-JUshM5qe.js +0 -6
  119. package/dist/assets/lib-Co4B8qAy.js +0 -1
  120. package/dist/assets/lib-DqTnDi2O.js +0 -1
  121. package/dist/assets/react-n93t21jb.js +0 -13
  122. package/dist/assets/shared-2FvmrkOU.js +0 -1
  123. package/dist/assets/src-1rZMvlbf.js +0 -1
  124. package/dist/assets/src-9R01NlCm.js +0 -1
  125. package/dist/assets/src-B1D9UYwu.js +0 -1
  126. package/dist/assets/src-B1xlnIj1.js +0 -1
  127. package/dist/assets/src-BMbgcBzC.js +0 -4
  128. package/dist/assets/src-BesH3Mb-.js +0 -1
  129. package/dist/assets/src-Btcb_Owg.js +0 -1
  130. package/dist/assets/src-Bw5hUET5.js +0 -1
  131. package/dist/assets/src-C5aZ23Xq.js +0 -1
  132. package/dist/assets/src-CJ63Qi1g.js +0 -1
  133. package/dist/assets/src-CuAjDF_E.js +0 -1
  134. package/dist/assets/src-D4Vq1SI2.js +0 -2
  135. package/dist/assets/src-O8AsCoRg.js +0 -1
  136. package/dist/assets/src-SoSUSubV.js +0 -1
  137. package/dist/assets/src-YB9DbMxM.js +0 -1
  138. package/dist/assets/src-YM3yhIXD.js +0 -4
  139. package/dist/assets/ui-CfMH0X_L.js +0 -2
  140. /package/dist/assets/{dist-BVqKJBMt2.js → dist-BVqKJBMt.js} +0 -0
  141. /package/dist/assets/{dist-CUwIxyXc2.js → dist-CUwIxyXc.js} +0 -0
@@ -1,16 +1,7 @@
1
1
  import { n as e, t } from "./rolldown-runtime-3b4jIN3o.js";
2
- //#region ../web-sdk/src/shelf-ui.ts
3
- function n(e, t, n) {
4
- return {
5
- library: e,
6
- shelf: t,
7
- ...n
8
- };
9
- }
10
- //#endregion
11
2
  //#region ../../node_modules/zod/v4/core/core.js
12
- var r;
13
- function i(e, t, n) {
3
+ var n;
4
+ function r(e, t, n) {
14
5
  function r(n, r) {
15
6
  if (n._zod || Object.defineProperty(n, "_zod", {
16
7
  value: {
@@ -39,30 +30,30 @@ function i(e, t, n) {
39
30
  }
40
31
  return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
41
32
  }
42
- var a = class extends Error {
33
+ var i = class extends Error {
43
34
  constructor() {
44
35
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
45
36
  }
46
- }, o = class extends Error {
37
+ }, a = class extends Error {
47
38
  constructor(e) {
48
39
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
49
40
  }
50
41
  };
51
- (r = globalThis).__zod_globalConfig ?? (r.__zod_globalConfig = {});
52
- var s = globalThis.__zod_globalConfig;
53
- function c(e) {
54
- return e && Object.assign(s, e), s;
42
+ (n = globalThis).__zod_globalConfig ?? (n.__zod_globalConfig = {});
43
+ var o = globalThis.__zod_globalConfig;
44
+ function s(e) {
45
+ return e && Object.assign(o, e), o;
55
46
  }
56
47
  //#endregion
57
48
  //#region ../../node_modules/zod/v4/core/util.js
58
- function l(e) {
49
+ function c(e) {
59
50
  let t = Object.values(e).filter((e) => typeof e == "number");
60
51
  return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
61
52
  }
62
- function u(e, t) {
53
+ function l(e, t) {
63
54
  return typeof t == "bigint" ? t.toString() : t;
64
55
  }
65
- function d(e) {
56
+ function u(e) {
66
57
  return { get value() {
67
58
  {
68
59
  let t = e();
@@ -71,23 +62,23 @@ function d(e) {
71
62
  throw Error("cached value already set");
72
63
  } };
73
64
  }
74
- function f(e) {
65
+ function d(e) {
75
66
  return e == null;
76
67
  }
77
- function p(e) {
68
+ function f(e) {
78
69
  let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
79
70
  return e.slice(t, n);
80
71
  }
81
- function ee(e, t) {
72
+ function p(e, t) {
82
73
  let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
83
74
  return Math.abs(n - r) < i ? 0 : n - r;
84
75
  }
85
- var te = /* @__PURE__*/ Symbol("evaluating");
76
+ var ee = /* @__PURE__*/ Symbol("evaluating");
86
77
  function m(e, t, n) {
87
78
  let r;
88
79
  Object.defineProperty(e, t, {
89
80
  get() {
90
- if (r !== te) return r === void 0 && (r = te, r = n()), r;
81
+ if (r !== ee) return r === void 0 && (r = ee, r = n()), r;
91
82
  },
92
83
  set(n) {
93
84
  Object.defineProperty(e, t, { value: n });
@@ -111,18 +102,18 @@ function g(...e) {
111
102
  }
112
103
  return Object.defineProperties({}, t);
113
104
  }
114
- function ne(e) {
105
+ function te(e) {
115
106
  return JSON.stringify(e);
116
107
  }
117
- function re(e) {
108
+ function ne(e) {
118
109
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
119
110
  }
120
- var ie = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
121
- function ae(e) {
111
+ var re = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
112
+ function ie(e) {
122
113
  return typeof e == "object" && !!e && !Array.isArray(e);
123
114
  }
124
- var oe = /* @__PURE__*/ d(() => {
125
- if (s.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
115
+ var ae = /* @__PURE__*/ u(() => {
116
+ if (o.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
126
117
  try {
127
118
  return Function(""), !0;
128
119
  } catch {
@@ -130,28 +121,28 @@ var oe = /* @__PURE__*/ d(() => {
130
121
  }
131
122
  });
132
123
  function _(e) {
133
- if (ae(e) === !1) return !1;
124
+ if (ie(e) === !1) return !1;
134
125
  let t = e.constructor;
135
126
  if (t === void 0 || typeof t != "function") return !0;
136
127
  let n = t.prototype;
137
- return !(ae(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
128
+ return !(ie(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
138
129
  }
139
- function se(e) {
130
+ function oe(e) {
140
131
  return _(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
141
132
  }
142
- var ce = /* @__PURE__*/ new Set([
133
+ var se = /* @__PURE__*/ new Set([
143
134
  "string",
144
135
  "number",
145
136
  "symbol"
146
137
  ]);
147
- function le(e) {
138
+ function v(e) {
148
139
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
149
140
  }
150
- function v(e, t, n) {
141
+ function y(e, t, n) {
151
142
  let r = new e._zod.constr(t ?? e._zod.def);
152
143
  return (!t || n?.parent) && (r._zod.parent = e), r;
153
144
  }
154
- function y(e) {
145
+ function b(e) {
155
146
  let t = e;
156
147
  if (!t) return {};
157
148
  if (typeof t == "string") return { error: () => t };
@@ -164,20 +155,20 @@ function y(e) {
164
155
  error: () => t.error
165
156
  } : t;
166
157
  }
167
- function ue(e) {
158
+ function ce(e) {
168
159
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
169
160
  }
170
- var de = {
161
+ var le = {
171
162
  safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
172
163
  int32: [-2147483648, 2147483647],
173
164
  uint32: [0, 4294967295],
174
165
  float32: [-34028234663852886e22, 34028234663852886e22],
175
166
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
176
167
  };
177
- function fe(e, t) {
168
+ function ue(e, t) {
178
169
  let n = e._zod.def, r = n.checks;
179
170
  if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
180
- return v(e, g(e._zod.def, {
171
+ return y(e, g(e._zod.def, {
181
172
  get shape() {
182
173
  let e = {};
183
174
  for (let r in t) {
@@ -189,10 +180,10 @@ function fe(e, t) {
189
180
  checks: []
190
181
  }));
191
182
  }
192
- function pe(e, t) {
183
+ function de(e, t) {
193
184
  let n = e._zod.def, r = n.checks;
194
185
  if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
195
- return v(e, g(e._zod.def, {
186
+ return y(e, g(e._zod.def, {
196
187
  get shape() {
197
188
  let r = { ...e._zod.def.shape };
198
189
  for (let e in t) {
@@ -204,14 +195,14 @@ function pe(e, t) {
204
195
  checks: []
205
196
  }));
206
197
  }
207
- function me(e, t) {
198
+ function fe(e, t) {
208
199
  if (!_(t)) throw Error("Invalid input to extend: expected a plain object");
209
200
  let n = e._zod.def.checks;
210
201
  if (n && n.length > 0) {
211
202
  let n = e._zod.def.shape;
212
203
  for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
213
204
  }
214
- return v(e, g(e._zod.def, { get shape() {
205
+ return y(e, g(e._zod.def, { get shape() {
215
206
  let n = {
216
207
  ...e._zod.def.shape,
217
208
  ...t
@@ -219,9 +210,9 @@ function me(e, t) {
219
210
  return h(this, "shape", n), n;
220
211
  } }));
221
212
  }
222
- function he(e, t) {
213
+ function pe(e, t) {
223
214
  if (!_(t)) throw Error("Invalid input to safeExtend: expected a plain object");
224
- return v(e, g(e._zod.def, { get shape() {
215
+ return y(e, g(e._zod.def, { get shape() {
225
216
  let n = {
226
217
  ...e._zod.def.shape,
227
218
  ...t
@@ -229,9 +220,9 @@ function he(e, t) {
229
220
  return h(this, "shape", n), n;
230
221
  } }));
231
222
  }
232
- function ge(e, t) {
223
+ function me(e, t) {
233
224
  if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
234
- return v(e, g(e._zod.def, {
225
+ return y(e, g(e._zod.def, {
235
226
  get shape() {
236
227
  let n = {
237
228
  ...e._zod.def.shape,
@@ -245,10 +236,10 @@ function ge(e, t) {
245
236
  checks: t._zod.def.checks ?? []
246
237
  }));
247
238
  }
248
- function _e(e, t, n) {
239
+ function he(e, t, n) {
249
240
  let r = t._zod.def.checks;
250
241
  if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
251
- return v(t, g(t._zod.def, {
242
+ return y(t, g(t._zod.def, {
252
243
  get shape() {
253
244
  let r = t._zod.def.shape, i = { ...r };
254
245
  if (n) for (let t in n) {
@@ -267,8 +258,8 @@ function _e(e, t, n) {
267
258
  checks: []
268
259
  }));
269
260
  }
270
- function ve(e, t, n) {
271
- return v(t, g(t._zod.def, { get shape() {
261
+ function ge(e, t, n) {
262
+ return y(t, g(t._zod.def, { get shape() {
272
263
  let r = t._zod.def.shape, i = { ...r };
273
264
  if (n) for (let t in n) {
274
265
  if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
@@ -284,30 +275,30 @@ function ve(e, t, n) {
284
275
  return h(this, "shape", i), i;
285
276
  } }));
286
277
  }
287
- function b(e, t = 0) {
278
+ function x(e, t = 0) {
288
279
  if (e.aborted === !0) return !0;
289
280
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
290
281
  return !1;
291
282
  }
292
- function ye(e, t = 0) {
283
+ function _e(e, t = 0) {
293
284
  if (e.aborted === !0) return !0;
294
285
  for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
295
286
  return !1;
296
287
  }
297
- function be(e, t) {
288
+ function ve(e, t) {
298
289
  return t.map((t) => {
299
290
  var n;
300
291
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
301
292
  });
302
293
  }
303
- function x(e) {
294
+ function ye(e) {
304
295
  return typeof e == "string" ? e : e?.message;
305
296
  }
306
297
  function S(e, t, n) {
307
- let r = e.message ? e.message : x(e.inst?._zod.def?.error?.(e)) ?? x(t?.error?.(e)) ?? x(n.customError?.(e)) ?? x(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
298
+ let r = e.message ? e.message : ye(e.inst?._zod.def?.error?.(e)) ?? ye(t?.error?.(e)) ?? ye(n.customError?.(e)) ?? ye(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
308
299
  return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
309
300
  }
310
- function xe(e) {
301
+ function be(e) {
311
302
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
312
303
  }
313
304
  function C(...e) {
@@ -321,19 +312,19 @@ function C(...e) {
321
312
  }
322
313
  //#endregion
323
314
  //#region ../../node_modules/zod/v4/core/errors.js
324
- var Se = (e, t) => {
315
+ var xe = (e, t) => {
325
316
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
326
317
  value: e._zod,
327
318
  enumerable: !1
328
319
  }), Object.defineProperty(e, "issues", {
329
320
  value: t,
330
321
  enumerable: !1
331
- }), e.message = JSON.stringify(t, u, 2), Object.defineProperty(e, "toString", {
322
+ }), e.message = JSON.stringify(t, l, 2), Object.defineProperty(e, "toString", {
332
323
  value: () => e.message,
333
324
  enumerable: !1
334
325
  });
335
- }, Ce = i("$ZodError", Se), we = i("$ZodError", Se, { Parent: Error });
336
- function Te(e, t = (e) => e.message) {
326
+ }, Se = r("$ZodError", xe), Ce = r("$ZodError", xe, { Parent: Error });
327
+ function we(e, t = (e) => e.message) {
337
328
  let n = {}, r = [];
338
329
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
339
330
  return {
@@ -341,7 +332,7 @@ function Te(e, t = (e) => e.message) {
341
332
  fieldErrors: n
342
333
  };
343
334
  }
344
- function Ee(e, t = (e) => e.message) {
335
+ function Te(e, t = (e) => e.message) {
345
336
  let n = { _errors: [] }, r = (e, i = []) => {
346
337
  for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
347
338
  else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
@@ -362,21 +353,21 @@ function Ee(e, t = (e) => e.message) {
362
353
  }
363
354
  //#endregion
364
355
  //#region ../../node_modules/zod/v4/core/parse.js
365
- var De = (e) => (t, n, r, i) => {
356
+ var Ee = (e) => (t, n, r, a) => {
366
357
  let o = r ? {
367
358
  ...r,
368
359
  async: !1
369
- } : { async: !1 }, s = t._zod.run({
360
+ } : { async: !1 }, c = t._zod.run({
370
361
  value: n,
371
362
  issues: []
372
363
  }, o);
373
- if (s instanceof Promise) throw new a();
374
- if (s.issues.length) {
375
- let t = new ((i?.Err) ?? e)(s.issues.map((e) => S(e, o, c())));
376
- throw ie(t, i?.callee), t;
364
+ if (c instanceof Promise) throw new i();
365
+ if (c.issues.length) {
366
+ let t = new ((a?.Err) ?? e)(c.issues.map((e) => S(e, o, s())));
367
+ throw re(t, a?.callee), t;
377
368
  }
378
- return s.value;
379
- }, Oe = (e) => async (t, n, r, i) => {
369
+ return c.value;
370
+ }, De = (e) => async (t, n, r, i) => {
380
371
  let a = r ? {
381
372
  ...r,
382
373
  async: !0
@@ -385,27 +376,27 @@ var De = (e) => (t, n, r, i) => {
385
376
  issues: []
386
377
  }, a);
387
378
  if (o instanceof Promise && (o = await o), o.issues.length) {
388
- let t = new ((i?.Err) ?? e)(o.issues.map((e) => S(e, a, c())));
389
- throw ie(t, i?.callee), t;
379
+ let t = new ((i?.Err) ?? e)(o.issues.map((e) => S(e, a, s())));
380
+ throw re(t, i?.callee), t;
390
381
  }
391
382
  return o.value;
392
- }, w = (e) => (t, n, r) => {
393
- let i = r ? {
383
+ }, Oe = (e) => (t, n, r) => {
384
+ let a = r ? {
394
385
  ...r,
395
386
  async: !1
396
387
  } : { async: !1 }, o = t._zod.run({
397
388
  value: n,
398
389
  issues: []
399
- }, i);
400
- if (o instanceof Promise) throw new a();
390
+ }, a);
391
+ if (o instanceof Promise) throw new i();
401
392
  return o.issues.length ? {
402
393
  success: !1,
403
- error: new (e ?? Ce)(o.issues.map((e) => S(e, i, c())))
394
+ error: new (e ?? Se)(o.issues.map((e) => S(e, a, s())))
404
395
  } : {
405
396
  success: !0,
406
397
  data: o.value
407
398
  };
408
- }, ke = /* @__PURE__*/ w(we), T = (e) => async (t, n, r) => {
399
+ }, ke = /* @__PURE__*/ Oe(Ce), Ae = (e) => async (t, n, r) => {
409
400
  let i = r ? {
410
401
  ...r,
411
402
  async: !0
@@ -415,66 +406,66 @@ var De = (e) => (t, n, r, i) => {
415
406
  }, i);
416
407
  return a instanceof Promise && (a = await a), a.issues.length ? {
417
408
  success: !1,
418
- error: new e(a.issues.map((e) => S(e, i, c())))
409
+ error: new e(a.issues.map((e) => S(e, i, s())))
419
410
  } : {
420
411
  success: !0,
421
412
  data: a.value
422
413
  };
423
- }, Ae = /* @__PURE__*/ T(we), je = (e) => (t, n, r) => {
414
+ }, je = /* @__PURE__*/ Ae(Ce), Me = (e) => (t, n, r) => {
424
415
  let i = r ? {
425
416
  ...r,
426
417
  direction: "backward"
427
418
  } : { direction: "backward" };
428
- return De(e)(t, n, i);
429
- }, Me = (e) => (t, n, r) => De(e)(t, n, r), Ne = (e) => async (t, n, r) => {
419
+ return Ee(e)(t, n, i);
420
+ }, Ne = (e) => (t, n, r) => Ee(e)(t, n, r), Pe = (e) => async (t, n, r) => {
430
421
  let i = r ? {
431
422
  ...r,
432
423
  direction: "backward"
433
424
  } : { direction: "backward" };
434
- return Oe(e)(t, n, i);
435
- }, Pe = (e) => async (t, n, r) => Oe(e)(t, n, r), Fe = (e) => (t, n, r) => {
425
+ return De(e)(t, n, i);
426
+ }, Fe = (e) => async (t, n, r) => De(e)(t, n, r), Ie = (e) => (t, n, r) => {
436
427
  let i = r ? {
437
428
  ...r,
438
429
  direction: "backward"
439
430
  } : { direction: "backward" };
440
- return w(e)(t, n, i);
441
- }, Ie = (e) => (t, n, r) => w(e)(t, n, r), Le = (e) => async (t, n, r) => {
431
+ return Oe(e)(t, n, i);
432
+ }, Le = (e) => (t, n, r) => Oe(e)(t, n, r), Re = (e) => async (t, n, r) => {
442
433
  let i = r ? {
443
434
  ...r,
444
435
  direction: "backward"
445
436
  } : { direction: "backward" };
446
- return T(e)(t, n, i);
447
- }, Re = (e) => async (t, n, r) => T(e)(t, n, r), ze = /^[cC][0-9a-z]{6,}$/, Be = /^[0-9a-z]+$/, Ve = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, He = /^[0-9a-vA-V]{20}$/, Ue = /^[A-Za-z0-9]{27}$/, We = /^[a-zA-Z0-9_-]{21}$/, Ge = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ke = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, qe = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Je = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ye = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
448
- function Xe() {
449
- return new RegExp(Ye, "u");
437
+ return Ae(e)(t, n, i);
438
+ }, ze = (e) => async (t, n, r) => Ae(e)(t, n, r), Be = /^[cC][0-9a-z]{6,}$/, Ve = /^[0-9a-z]+$/, He = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ue = /^[0-9a-vA-V]{20}$/, We = /^[A-Za-z0-9]{27}$/, Ge = /^[a-zA-Z0-9_-]{21}$/, Ke = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, qe = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Je = (e) => e ? RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Ye = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Xe = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
439
+ function Ze() {
440
+ return new RegExp(Xe, "u");
450
441
  }
451
- var Ze = /^(?:(?: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])$/, Qe = /^(([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}|:))$/, $e = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, et = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, tt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, nt = /^[A-Za-z0-9_-]*$/, rt = /^https?$/, it = /^\+[1-9]\d{6,14}$/, at = "(?:(?:\\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])))", ot = /*@__PURE__*/ RegExp(`^${at}$`);
452
- function st(e) {
442
+ var Qe = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, $e = /^(([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}|:))$/, et = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, tt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, nt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, rt = /^[A-Za-z0-9_-]*$/, it = /^https?$/, at = /^\+[1-9]\d{6,14}$/, ot = "(?:(?:\\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])))", st = /*@__PURE__*/ RegExp(`^${ot}$`);
443
+ function ct(e) {
453
444
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
454
445
  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+)?)?`;
455
446
  }
456
- function ct(e) {
457
- return RegExp(`^${st(e)}$`);
458
- }
459
447
  function lt(e) {
460
- let t = st({ precision: e.precision }), n = ["Z"];
448
+ return RegExp(`^${ct(e)}$`);
449
+ }
450
+ function ut(e) {
451
+ let t = ct({ precision: e.precision }), n = ["Z"];
461
452
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
462
453
  let r = `${t}(?:${n.join("|")})`;
463
- return RegExp(`^${at}T(?:${r})$`);
454
+ return RegExp(`^${ot}T(?:${r})$`);
464
455
  }
465
- var ut = (e) => {
456
+ var dt = (e) => {
466
457
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
467
458
  return RegExp(`^${t}$`);
468
- }, dt = /^-?\d+$/, ft = /^-?\d+(?:\.\d+)?$/, pt = /^(?:true|false)$/i, mt = /^[^A-Z]*$/, ht = /^[^a-z]*$/, E = /*@__PURE__*/ i("$ZodCheck", (e, t) => {
459
+ }, ft = /^-?\d+$/, pt = /^-?\d+(?:\.\d+)?$/, mt = /^(?:true|false)$/i, ht = /^[^A-Z]*$/, gt = /^[^a-z]*$/, w = /*@__PURE__*/ r("$ZodCheck", (e, t) => {
469
460
  var n;
470
461
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
471
- }), gt = {
462
+ }), _t = {
472
463
  number: "number",
473
464
  bigint: "bigint",
474
465
  object: "date"
475
- }, _t = /*@__PURE__*/ i("$ZodCheckLessThan", (e, t) => {
476
- E.init(e, t);
477
- let n = gt[typeof t.value];
466
+ }, vt = /*@__PURE__*/ r("$ZodCheckLessThan", (e, t) => {
467
+ w.init(e, t);
468
+ let n = _t[typeof t.value];
478
469
  e._zod.onattach.push((e) => {
479
470
  let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
480
471
  t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
@@ -489,9 +480,9 @@ var ut = (e) => {
489
480
  continue: !t.abort
490
481
  });
491
482
  };
492
- }), vt = /*@__PURE__*/ i("$ZodCheckGreaterThan", (e, t) => {
493
- E.init(e, t);
494
- let n = gt[typeof t.value];
483
+ }), yt = /*@__PURE__*/ r("$ZodCheckGreaterThan", (e, t) => {
484
+ w.init(e, t);
485
+ let n = _t[typeof t.value];
495
486
  e._zod.onattach.push((e) => {
496
487
  let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
497
488
  t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
@@ -506,13 +497,13 @@ var ut = (e) => {
506
497
  continue: !t.abort
507
498
  });
508
499
  };
509
- }), yt = /*@__PURE__*/ i("$ZodCheckMultipleOf", (e, t) => {
510
- E.init(e, t), e._zod.onattach.push((e) => {
500
+ }), bt = /*@__PURE__*/ r("$ZodCheckMultipleOf", (e, t) => {
501
+ w.init(e, t), e._zod.onattach.push((e) => {
511
502
  var n;
512
503
  (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
513
504
  }), e._zod.check = (n) => {
514
505
  if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
515
- (typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : ee(n.value, t.value) === 0) || n.issues.push({
506
+ (typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : p(n.value, t.value) === 0) || n.issues.push({
516
507
  origin: typeof n.value,
517
508
  code: "not_multiple_of",
518
509
  divisor: t.value,
@@ -521,12 +512,12 @@ var ut = (e) => {
521
512
  continue: !t.abort
522
513
  });
523
514
  };
524
- }), bt = /*@__PURE__*/ i("$ZodCheckNumberFormat", (e, t) => {
525
- E.init(e, t), t.format = t.format || "float64";
526
- let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = de[t.format];
515
+ }), xt = /*@__PURE__*/ r("$ZodCheckNumberFormat", (e, t) => {
516
+ w.init(e, t), t.format = t.format || "float64";
517
+ let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = le[t.format];
527
518
  e._zod.onattach.push((e) => {
528
519
  let r = e._zod.bag;
529
- r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = dt);
520
+ r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = ft);
530
521
  }), e._zod.check = (o) => {
531
522
  let s = o.value;
532
523
  if (n) {
@@ -582,18 +573,18 @@ var ut = (e) => {
582
573
  continue: !t.abort
583
574
  });
584
575
  };
585
- }), xt = /*@__PURE__*/ i("$ZodCheckMaxLength", (e, t) => {
576
+ }), St = /*@__PURE__*/ r("$ZodCheckMaxLength", (e, t) => {
586
577
  var n;
587
- E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
578
+ w.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
588
579
  let t = e.value;
589
- return !f(t) && t.length !== void 0;
580
+ return !d(t) && t.length !== void 0;
590
581
  }), e._zod.onattach.push((e) => {
591
582
  let n = e._zod.bag.maximum ?? Infinity;
592
583
  t.maximum < n && (e._zod.bag.maximum = t.maximum);
593
584
  }), e._zod.check = (n) => {
594
585
  let r = n.value;
595
586
  if (r.length <= t.maximum) return;
596
- let i = xe(r);
587
+ let i = be(r);
597
588
  n.issues.push({
598
589
  origin: i,
599
590
  code: "too_big",
@@ -604,18 +595,18 @@ var ut = (e) => {
604
595
  continue: !t.abort
605
596
  });
606
597
  };
607
- }), St = /*@__PURE__*/ i("$ZodCheckMinLength", (e, t) => {
598
+ }), Ct = /*@__PURE__*/ r("$ZodCheckMinLength", (e, t) => {
608
599
  var n;
609
- E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
600
+ w.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
610
601
  let t = e.value;
611
- return !f(t) && t.length !== void 0;
602
+ return !d(t) && t.length !== void 0;
612
603
  }), e._zod.onattach.push((e) => {
613
604
  let n = e._zod.bag.minimum ?? -Infinity;
614
605
  t.minimum > n && (e._zod.bag.minimum = t.minimum);
615
606
  }), e._zod.check = (n) => {
616
607
  let r = n.value;
617
608
  if (r.length >= t.minimum) return;
618
- let i = xe(r);
609
+ let i = be(r);
619
610
  n.issues.push({
620
611
  origin: i,
621
612
  code: "too_small",
@@ -626,18 +617,18 @@ var ut = (e) => {
626
617
  continue: !t.abort
627
618
  });
628
619
  };
629
- }), Ct = /*@__PURE__*/ i("$ZodCheckLengthEquals", (e, t) => {
620
+ }), wt = /*@__PURE__*/ r("$ZodCheckLengthEquals", (e, t) => {
630
621
  var n;
631
- E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
622
+ w.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
632
623
  let t = e.value;
633
- return !f(t) && t.length !== void 0;
624
+ return !d(t) && t.length !== void 0;
634
625
  }), e._zod.onattach.push((e) => {
635
626
  let n = e._zod.bag;
636
627
  n.minimum = t.length, n.maximum = t.length, n.length = t.length;
637
628
  }), e._zod.check = (n) => {
638
629
  let r = n.value, i = r.length;
639
630
  if (i === t.length) return;
640
- let a = xe(r), o = i > t.length;
631
+ let a = be(r), o = i > t.length;
641
632
  n.issues.push({
642
633
  origin: a,
643
634
  ...o ? {
@@ -654,9 +645,9 @@ var ut = (e) => {
654
645
  continue: !t.abort
655
646
  });
656
647
  };
657
- }), wt = /*@__PURE__*/ i("$ZodCheckStringFormat", (e, t) => {
648
+ }), Tt = /*@__PURE__*/ r("$ZodCheckStringFormat", (e, t) => {
658
649
  var n, r;
659
- E.init(e, t), e._zod.onattach.push((e) => {
650
+ w.init(e, t), e._zod.onattach.push((e) => {
660
651
  let n = e._zod.bag;
661
652
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
662
653
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -670,8 +661,8 @@ var ut = (e) => {
670
661
  continue: !t.abort
671
662
  });
672
663
  }) : (r = e._zod).check ?? (r.check = () => {});
673
- }), Tt = /*@__PURE__*/ i("$ZodCheckRegex", (e, t) => {
674
- wt.init(e, t), e._zod.check = (n) => {
664
+ }), Et = /*@__PURE__*/ r("$ZodCheckRegex", (e, t) => {
665
+ Tt.init(e, t), e._zod.check = (n) => {
675
666
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
676
667
  origin: "string",
677
668
  code: "invalid_format",
@@ -682,13 +673,13 @@ var ut = (e) => {
682
673
  continue: !t.abort
683
674
  });
684
675
  };
685
- }), Et = /*@__PURE__*/ i("$ZodCheckLowerCase", (e, t) => {
686
- t.pattern ??= mt, wt.init(e, t);
687
- }), Dt = /*@__PURE__*/ i("$ZodCheckUpperCase", (e, t) => {
688
- t.pattern ??= ht, wt.init(e, t);
689
- }), Ot = /*@__PURE__*/ i("$ZodCheckIncludes", (e, t) => {
690
- E.init(e, t);
691
- let n = le(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
676
+ }), Dt = /*@__PURE__*/ r("$ZodCheckLowerCase", (e, t) => {
677
+ t.pattern ??= ht, Tt.init(e, t);
678
+ }), Ot = /*@__PURE__*/ r("$ZodCheckUpperCase", (e, t) => {
679
+ t.pattern ??= gt, Tt.init(e, t);
680
+ }), kt = /*@__PURE__*/ r("$ZodCheckIncludes", (e, t) => {
681
+ w.init(e, t);
682
+ let n = v(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
692
683
  t.pattern = r, e._zod.onattach.push((e) => {
693
684
  let t = e._zod.bag;
694
685
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
@@ -703,9 +694,9 @@ var ut = (e) => {
703
694
  continue: !t.abort
704
695
  });
705
696
  };
706
- }), kt = /*@__PURE__*/ i("$ZodCheckStartsWith", (e, t) => {
707
- E.init(e, t);
708
- let n = RegExp(`^${le(t.prefix)}.*`);
697
+ }), At = /*@__PURE__*/ r("$ZodCheckStartsWith", (e, t) => {
698
+ w.init(e, t);
699
+ let n = RegExp(`^${v(t.prefix)}.*`);
709
700
  t.pattern ??= n, e._zod.onattach.push((e) => {
710
701
  let t = e._zod.bag;
711
702
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -720,9 +711,9 @@ var ut = (e) => {
720
711
  continue: !t.abort
721
712
  });
722
713
  };
723
- }), At = /*@__PURE__*/ i("$ZodCheckEndsWith", (e, t) => {
724
- E.init(e, t);
725
- let n = RegExp(`.*${le(t.suffix)}$`);
714
+ }), jt = /*@__PURE__*/ r("$ZodCheckEndsWith", (e, t) => {
715
+ w.init(e, t);
716
+ let n = RegExp(`.*${v(t.suffix)}$`);
726
717
  t.pattern ??= n, e._zod.onattach.push((e) => {
727
718
  let t = e._zod.bag;
728
719
  t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
@@ -737,11 +728,11 @@ var ut = (e) => {
737
728
  continue: !t.abort
738
729
  });
739
730
  };
740
- }), jt = /*@__PURE__*/ i("$ZodCheckOverwrite", (e, t) => {
741
- E.init(e, t), e._zod.check = (e) => {
731
+ }), Mt = /*@__PURE__*/ r("$ZodCheckOverwrite", (e, t) => {
732
+ w.init(e, t), e._zod.check = (e) => {
742
733
  e.value = t.tx(e.value);
743
734
  };
744
- }), Mt = class {
735
+ }), Nt = class {
745
736
  constructor(e = []) {
746
737
  this.content = [], this.indent = 0, this && (this.args = e);
747
738
  }
@@ -760,13 +751,13 @@ var ut = (e) => {
760
751
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
761
752
  return new e(...t, n.join("\n"));
762
753
  }
763
- }, Nt = {
754
+ }, Pt = {
764
755
  major: 4,
765
756
  minor: 4,
766
757
  patch: 3
767
- }, D = /*@__PURE__*/ i("$ZodType", (e, t) => {
758
+ }, T = /*@__PURE__*/ r("$ZodType", (e, t) => {
768
759
  var n;
769
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Nt;
760
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Pt;
770
761
  let r = [...e._zod.def.checks ?? []];
771
762
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
772
763
  for (let t of r) for (let n of t._zod.onattach) n(e);
@@ -775,46 +766,46 @@ var ut = (e) => {
775
766
  });
776
767
  else {
777
768
  let t = (e, t, n) => {
778
- let r = b(e), i;
769
+ let r = x(e), a;
779
770
  for (let o of t) {
780
771
  if (o._zod.def.when) {
781
- if (ye(e) || !o._zod.def.when(e)) continue;
772
+ if (_e(e) || !o._zod.def.when(e)) continue;
782
773
  } else if (r) continue;
783
774
  let t = e.issues.length, s = o._zod.check(e);
784
- if (s instanceof Promise && n?.async === !1) throw new a();
785
- if (i || s instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
786
- await s, e.issues.length !== t && (r ||= b(e, t));
775
+ if (s instanceof Promise && n?.async === !1) throw new i();
776
+ if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
777
+ await s, e.issues.length !== t && (r ||= x(e, t));
787
778
  });
788
779
  else {
789
780
  if (e.issues.length === t) continue;
790
- r ||= b(e, t);
781
+ r ||= x(e, t);
791
782
  }
792
783
  }
793
- return i ? i.then(() => e) : e;
794
- }, n = (n, i, o) => {
795
- if (b(n)) return n.aborted = !0, n;
796
- let s = t(i, r, o);
784
+ return a ? a.then(() => e) : e;
785
+ }, n = (n, a, o) => {
786
+ if (x(n)) return n.aborted = !0, n;
787
+ let s = t(a, r, o);
797
788
  if (s instanceof Promise) {
798
- if (o.async === !1) throw new a();
789
+ if (o.async === !1) throw new i();
799
790
  return s.then((t) => e._zod.parse(t, o));
800
791
  }
801
792
  return e._zod.parse(s, o);
802
793
  };
803
- e._zod.run = (i, o) => {
804
- if (o.skipChecks) return e._zod.parse(i, o);
794
+ e._zod.run = (a, o) => {
795
+ if (o.skipChecks) return e._zod.parse(a, o);
805
796
  if (o.direction === "backward") {
806
797
  let t = e._zod.parse({
807
- value: i.value,
798
+ value: a.value,
808
799
  issues: []
809
800
  }, {
810
801
  ...o,
811
802
  skipChecks: !0
812
803
  });
813
- return t instanceof Promise ? t.then((e) => n(e, i, o)) : n(t, i, o);
804
+ return t instanceof Promise ? t.then((e) => n(e, a, o)) : n(t, a, o);
814
805
  }
815
- let s = e._zod.parse(i, o);
806
+ let s = e._zod.parse(a, o);
816
807
  if (s instanceof Promise) {
817
- if (o.async === !1) throw new a();
808
+ if (o.async === !1) throw new i();
818
809
  return s.then((e) => t(e, r, o));
819
810
  }
820
811
  return t(s, r, o);
@@ -826,14 +817,14 @@ var ut = (e) => {
826
817
  let n = ke(e, t);
827
818
  return n.success ? { value: n.data } : { issues: n.error?.issues };
828
819
  } catch {
829
- return Ae(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
820
+ return je(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
830
821
  }
831
822
  },
832
823
  vendor: "zod",
833
824
  version: 1
834
825
  }));
835
- }), Pt = /*@__PURE__*/ i("$ZodString", (e, t) => {
836
- D.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ut(e._zod.bag), e._zod.parse = (n, r) => {
826
+ }), Ft = /*@__PURE__*/ r("$ZodString", (e, t) => {
827
+ T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? dt(e._zod.bag), e._zod.parse = (n, r) => {
837
828
  if (t.coerce) try {
838
829
  n.value = String(n.value);
839
830
  } catch {}
@@ -844,11 +835,11 @@ var ut = (e) => {
844
835
  inst: e
845
836
  }), n;
846
837
  };
847
- }), O = /*@__PURE__*/ i("$ZodStringFormat", (e, t) => {
848
- wt.init(e, t), Pt.init(e, t);
849
- }), Ft = /*@__PURE__*/ i("$ZodGUID", (e, t) => {
850
- t.pattern ??= Ke, O.init(e, t);
851
- }), It = /*@__PURE__*/ i("$ZodUUID", (e, t) => {
838
+ }), E = /*@__PURE__*/ r("$ZodStringFormat", (e, t) => {
839
+ Tt.init(e, t), Ft.init(e, t);
840
+ }), It = /*@__PURE__*/ r("$ZodGUID", (e, t) => {
841
+ t.pattern ??= qe, E.init(e, t);
842
+ }), Lt = /*@__PURE__*/ r("$ZodUUID", (e, t) => {
852
843
  if (t.version) {
853
844
  let e = {
854
845
  v1: 1,
@@ -861,16 +852,16 @@ var ut = (e) => {
861
852
  v8: 8
862
853
  }[t.version];
863
854
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
864
- t.pattern ??= qe(e);
865
- } else t.pattern ??= qe();
866
- O.init(e, t);
867
- }), Lt = /*@__PURE__*/ i("$ZodEmail", (e, t) => {
868
- t.pattern ??= Je, O.init(e, t);
869
- }), Rt = /*@__PURE__*/ i("$ZodURL", (e, t) => {
870
- O.init(e, t), e._zod.check = (n) => {
855
+ t.pattern ??= Je(e);
856
+ } else t.pattern ??= Je();
857
+ E.init(e, t);
858
+ }), Rt = /*@__PURE__*/ r("$ZodEmail", (e, t) => {
859
+ t.pattern ??= Ye, E.init(e, t);
860
+ }), zt = /*@__PURE__*/ r("$ZodURL", (e, t) => {
861
+ E.init(e, t), e._zod.check = (n) => {
871
862
  try {
872
863
  let r = n.value.trim();
873
- if (!t.normalize && t.protocol?.source === rt.source && !/^https?:\/\//i.test(r)) {
864
+ if (!t.normalize && t.protocol?.source === it.source && !/^https?:\/\//i.test(r)) {
874
865
  n.issues.push({
875
866
  code: "invalid_format",
876
867
  format: "url",
@@ -910,32 +901,32 @@ var ut = (e) => {
910
901
  });
911
902
  }
912
903
  };
913
- }), zt = /*@__PURE__*/ i("$ZodEmoji", (e, t) => {
914
- t.pattern ??= Xe(), O.init(e, t);
915
- }), Bt = /*@__PURE__*/ i("$ZodNanoID", (e, t) => {
916
- t.pattern ??= We, O.init(e, t);
917
- }), Vt = /*@__PURE__*/ i("$ZodCUID", (e, t) => {
918
- t.pattern ??= ze, O.init(e, t);
919
- }), Ht = /*@__PURE__*/ i("$ZodCUID2", (e, t) => {
920
- t.pattern ??= Be, O.init(e, t);
921
- }), Ut = /*@__PURE__*/ i("$ZodULID", (e, t) => {
922
- t.pattern ??= Ve, O.init(e, t);
923
- }), Wt = /*@__PURE__*/ i("$ZodXID", (e, t) => {
924
- t.pattern ??= He, O.init(e, t);
925
- }), Gt = /*@__PURE__*/ i("$ZodKSUID", (e, t) => {
926
- t.pattern ??= Ue, O.init(e, t);
927
- }), Kt = /*@__PURE__*/ i("$ZodISODateTime", (e, t) => {
928
- t.pattern ??= lt(t), O.init(e, t);
929
- }), qt = /*@__PURE__*/ i("$ZodISODate", (e, t) => {
930
- t.pattern ??= ot, O.init(e, t);
931
- }), Jt = /*@__PURE__*/ i("$ZodISOTime", (e, t) => {
932
- t.pattern ??= ct(t), O.init(e, t);
933
- }), Yt = /*@__PURE__*/ i("$ZodISODuration", (e, t) => {
934
- t.pattern ??= Ge, O.init(e, t);
935
- }), Xt = /*@__PURE__*/ i("$ZodIPv4", (e, t) => {
936
- t.pattern ??= Ze, O.init(e, t), e._zod.bag.format = "ipv4";
937
- }), Zt = /*@__PURE__*/ i("$ZodIPv6", (e, t) => {
938
- t.pattern ??= Qe, O.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
904
+ }), Bt = /*@__PURE__*/ r("$ZodEmoji", (e, t) => {
905
+ t.pattern ??= Ze(), E.init(e, t);
906
+ }), Vt = /*@__PURE__*/ r("$ZodNanoID", (e, t) => {
907
+ t.pattern ??= Ge, E.init(e, t);
908
+ }), Ht = /*@__PURE__*/ r("$ZodCUID", (e, t) => {
909
+ t.pattern ??= Be, E.init(e, t);
910
+ }), Ut = /*@__PURE__*/ r("$ZodCUID2", (e, t) => {
911
+ t.pattern ??= Ve, E.init(e, t);
912
+ }), Wt = /*@__PURE__*/ r("$ZodULID", (e, t) => {
913
+ t.pattern ??= He, E.init(e, t);
914
+ }), Gt = /*@__PURE__*/ r("$ZodXID", (e, t) => {
915
+ t.pattern ??= Ue, E.init(e, t);
916
+ }), Kt = /*@__PURE__*/ r("$ZodKSUID", (e, t) => {
917
+ t.pattern ??= We, E.init(e, t);
918
+ }), qt = /*@__PURE__*/ r("$ZodISODateTime", (e, t) => {
919
+ t.pattern ??= ut(t), E.init(e, t);
920
+ }), Jt = /*@__PURE__*/ r("$ZodISODate", (e, t) => {
921
+ t.pattern ??= st, E.init(e, t);
922
+ }), Yt = /*@__PURE__*/ r("$ZodISOTime", (e, t) => {
923
+ t.pattern ??= lt(t), E.init(e, t);
924
+ }), Xt = /*@__PURE__*/ r("$ZodISODuration", (e, t) => {
925
+ t.pattern ??= Ke, E.init(e, t);
926
+ }), Zt = /*@__PURE__*/ r("$ZodIPv4", (e, t) => {
927
+ t.pattern ??= Qe, E.init(e, t), e._zod.bag.format = "ipv4";
928
+ }), Qt = /*@__PURE__*/ r("$ZodIPv6", (e, t) => {
929
+ t.pattern ??= $e, E.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
939
930
  try {
940
931
  new URL(`http://[${n.value}]`);
941
932
  } catch {
@@ -948,10 +939,10 @@ var ut = (e) => {
948
939
  });
949
940
  }
950
941
  };
951
- }), Qt = /*@__PURE__*/ i("$ZodCIDRv4", (e, t) => {
952
- t.pattern ??= $e, O.init(e, t);
953
- }), $t = /*@__PURE__*/ i("$ZodCIDRv6", (e, t) => {
954
- t.pattern ??= et, O.init(e, t), e._zod.check = (n) => {
942
+ }), $t = /*@__PURE__*/ r("$ZodCIDRv4", (e, t) => {
943
+ t.pattern ??= et, E.init(e, t);
944
+ }), en = /*@__PURE__*/ r("$ZodCIDRv6", (e, t) => {
945
+ t.pattern ??= tt, E.init(e, t), e._zod.check = (n) => {
955
946
  let r = n.value.split("/");
956
947
  try {
957
948
  if (r.length !== 2) throw Error();
@@ -971,7 +962,7 @@ var ut = (e) => {
971
962
  }
972
963
  };
973
964
  });
974
- function en(e) {
965
+ function tn(e) {
975
966
  if (e === "") return !0;
976
967
  if (/\s/.test(e) || e.length % 4 != 0) return !1;
977
968
  try {
@@ -980,9 +971,9 @@ function en(e) {
980
971
  return !1;
981
972
  }
982
973
  }
983
- var tn = /*@__PURE__*/ i("$ZodBase64", (e, t) => {
984
- t.pattern ??= tt, O.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
985
- en(n.value) || n.issues.push({
974
+ var nn = /*@__PURE__*/ r("$ZodBase64", (e, t) => {
975
+ t.pattern ??= nt, E.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
976
+ tn(n.value) || n.issues.push({
986
977
  code: "invalid_format",
987
978
  format: "base64",
988
979
  input: n.value,
@@ -991,14 +982,14 @@ var tn = /*@__PURE__*/ i("$ZodBase64", (e, t) => {
991
982
  });
992
983
  };
993
984
  });
994
- function nn(e) {
995
- if (!nt.test(e)) return !1;
985
+ function rn(e) {
986
+ if (!rt.test(e)) return !1;
996
987
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
997
- return en(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
988
+ return tn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
998
989
  }
999
- var rn = /*@__PURE__*/ i("$ZodBase64URL", (e, t) => {
1000
- t.pattern ??= nt, O.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1001
- nn(n.value) || n.issues.push({
990
+ var an = /*@__PURE__*/ r("$ZodBase64URL", (e, t) => {
991
+ t.pattern ??= rt, E.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
992
+ rn(n.value) || n.issues.push({
1002
993
  code: "invalid_format",
1003
994
  format: "base64url",
1004
995
  input: n.value,
@@ -1006,10 +997,10 @@ var rn = /*@__PURE__*/ i("$ZodBase64URL", (e, t) => {
1006
997
  continue: !t.abort
1007
998
  });
1008
999
  };
1009
- }), an = /*@__PURE__*/ i("$ZodE164", (e, t) => {
1010
- t.pattern ??= it, O.init(e, t);
1000
+ }), on = /*@__PURE__*/ r("$ZodE164", (e, t) => {
1001
+ t.pattern ??= at, E.init(e, t);
1011
1002
  });
1012
- function on(e, t = null) {
1003
+ function sn(e, t = null) {
1013
1004
  try {
1014
1005
  let n = e.split(".");
1015
1006
  if (n.length !== 3) return !1;
@@ -1021,9 +1012,9 @@ function on(e, t = null) {
1021
1012
  return !1;
1022
1013
  }
1023
1014
  }
1024
- var sn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1025
- O.init(e, t), e._zod.check = (n) => {
1026
- on(n.value, t.alg) || n.issues.push({
1015
+ var cn = /*@__PURE__*/ r("$ZodJWT", (e, t) => {
1016
+ E.init(e, t), e._zod.check = (n) => {
1017
+ sn(n.value, t.alg) || n.issues.push({
1027
1018
  code: "invalid_format",
1028
1019
  format: "jwt",
1029
1020
  input: n.value,
@@ -1031,8 +1022,8 @@ var sn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1031
1022
  continue: !t.abort
1032
1023
  });
1033
1024
  };
1034
- }), cn = /*@__PURE__*/ i("$ZodNumber", (e, t) => {
1035
- D.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ft, e._zod.parse = (n, r) => {
1025
+ }), ln = /*@__PURE__*/ r("$ZodNumber", (e, t) => {
1026
+ T.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? pt, e._zod.parse = (n, r) => {
1036
1027
  if (t.coerce) try {
1037
1028
  n.value = Number(n.value);
1038
1029
  } catch {}
@@ -1047,10 +1038,10 @@ var sn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1047
1038
  ...a ? { received: a } : {}
1048
1039
  }), n;
1049
1040
  };
1050
- }), ln = /*@__PURE__*/ i("$ZodNumberFormat", (e, t) => {
1051
- bt.init(e, t), cn.init(e, t);
1052
- }), un = /*@__PURE__*/ i("$ZodBoolean", (e, t) => {
1053
- D.init(e, t), e._zod.pattern = pt, e._zod.parse = (n, r) => {
1041
+ }), un = /*@__PURE__*/ r("$ZodNumberFormat", (e, t) => {
1042
+ xt.init(e, t), ln.init(e, t);
1043
+ }), dn = /*@__PURE__*/ r("$ZodBoolean", (e, t) => {
1044
+ T.init(e, t), e._zod.pattern = mt, e._zod.parse = (n, r) => {
1054
1045
  if (t.coerce) try {
1055
1046
  n.value = !!n.value;
1056
1047
  } catch {}
@@ -1062,23 +1053,23 @@ var sn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1062
1053
  inst: e
1063
1054
  }), n;
1064
1055
  };
1065
- }), dn = /*@__PURE__*/ i("$ZodAny", (e, t) => {
1066
- D.init(e, t), e._zod.parse = (e) => e;
1067
- }), fn = /*@__PURE__*/ i("$ZodUnknown", (e, t) => {
1068
- D.init(e, t), e._zod.parse = (e) => e;
1069
- }), pn = /*@__PURE__*/ i("$ZodNever", (e, t) => {
1070
- D.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1056
+ }), fn = /*@__PURE__*/ r("$ZodAny", (e, t) => {
1057
+ T.init(e, t), e._zod.parse = (e) => e;
1058
+ }), pn = /*@__PURE__*/ r("$ZodUnknown", (e, t) => {
1059
+ T.init(e, t), e._zod.parse = (e) => e;
1060
+ }), mn = /*@__PURE__*/ r("$ZodNever", (e, t) => {
1061
+ T.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1071
1062
  expected: "never",
1072
1063
  code: "invalid_type",
1073
1064
  input: t.value,
1074
1065
  inst: e
1075
1066
  }), t);
1076
1067
  });
1077
- function mn(e, t, n) {
1078
- e.issues.length && t.issues.push(...be(n, e.issues)), t.value[n] = e.value;
1068
+ function hn(e, t, n) {
1069
+ e.issues.length && t.issues.push(...ve(n, e.issues)), t.value[n] = e.value;
1079
1070
  }
1080
- var hn = /*@__PURE__*/ i("$ZodArray", (e, t) => {
1081
- D.init(e, t), e._zod.parse = (n, r) => {
1071
+ var gn = /*@__PURE__*/ r("$ZodArray", (e, t) => {
1072
+ T.init(e, t), e._zod.parse = (n, r) => {
1082
1073
  let i = n.value;
1083
1074
  if (!Array.isArray(i)) return n.issues.push({
1084
1075
  expected: "array",
@@ -1093,16 +1084,16 @@ var hn = /*@__PURE__*/ i("$ZodArray", (e, t) => {
1093
1084
  value: o,
1094
1085
  issues: []
1095
1086
  }, r);
1096
- s instanceof Promise ? a.push(s.then((t) => mn(t, n, e))) : mn(s, n, e);
1087
+ s instanceof Promise ? a.push(s.then((t) => hn(t, n, e))) : hn(s, n, e);
1097
1088
  }
1098
1089
  return a.length ? Promise.all(a).then(() => n) : n;
1099
1090
  };
1100
1091
  });
1101
- function gn(e, t, n, r, i, a) {
1092
+ function D(e, t, n, r, i, a) {
1102
1093
  let o = n in r;
1103
1094
  if (e.issues.length) {
1104
1095
  if (i && a && !o) return;
1105
- t.issues.push(...be(n, e.issues));
1096
+ t.issues.push(...ve(n, e.issues));
1106
1097
  }
1107
1098
  if (!o && !i) {
1108
1099
  e.issues.length || t.issues.push({
@@ -1118,7 +1109,7 @@ function gn(e, t, n, r, i, a) {
1118
1109
  function _n(e) {
1119
1110
  let t = Object.keys(e.shape);
1120
1111
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1121
- let n = ue(e.shape);
1112
+ let n = ce(e.shape);
1122
1113
  return {
1123
1114
  ...e,
1124
1115
  keys: t,
@@ -1139,7 +1130,7 @@ function vn(e, t, n, r, i, a) {
1139
1130
  value: t[i],
1140
1131
  issues: []
1141
1132
  }, r);
1142
- a instanceof Promise ? e.push(a.then((e) => gn(e, n, i, t, u, d))) : gn(a, n, i, t, u, d);
1133
+ a instanceof Promise ? e.push(a.then((e) => D(e, n, i, t, u, d))) : D(a, n, i, t, u, d);
1143
1134
  }
1144
1135
  return o.length && n.issues.push({
1145
1136
  code: "unrecognized_keys",
@@ -1148,15 +1139,15 @@ function vn(e, t, n, r, i, a) {
1148
1139
  inst: a
1149
1140
  }), e.length ? Promise.all(e).then(() => n) : n;
1150
1141
  }
1151
- var yn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1152
- if (D.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1142
+ var yn = /*@__PURE__*/ r("$ZodObject", (e, t) => {
1143
+ if (T.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1153
1144
  let e = t.shape;
1154
1145
  Object.defineProperty(t, "shape", { get: () => {
1155
1146
  let n = { ...e };
1156
1147
  return Object.defineProperty(t, "shape", { value: n }), n;
1157
1148
  } });
1158
1149
  }
1159
- let n = d(() => _n(t));
1150
+ let n = u(() => _n(t));
1160
1151
  m(e._zod, "propValues", () => {
1161
1152
  let e = t.shape, n = {};
1162
1153
  for (let t in e) {
@@ -1168,7 +1159,7 @@ var yn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1168
1159
  }
1169
1160
  return n;
1170
1161
  });
1171
- let r = ae, i = t.catchall, a;
1162
+ let r = ie, i = t.catchall, a;
1172
1163
  e._zod.parse = (t, o) => {
1173
1164
  a ??= n.value;
1174
1165
  let s = t.value;
@@ -1185,19 +1176,19 @@ var yn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1185
1176
  value: s[e],
1186
1177
  issues: []
1187
1178
  }, o);
1188
- a instanceof Promise ? c.push(a.then((n) => gn(n, t, e, s, r, i))) : gn(a, t, e, s, r, i);
1179
+ a instanceof Promise ? c.push(a.then((n) => D(n, t, e, s, r, i))) : D(a, t, e, s, r, i);
1189
1180
  }
1190
1181
  return i ? vn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1191
1182
  };
1192
- }), bn = /*@__PURE__*/ i("$ZodObjectJIT", (e, t) => {
1183
+ }), bn = /*@__PURE__*/ r("$ZodObjectJIT", (e, t) => {
1193
1184
  yn.init(e, t);
1194
- let n = e._zod.parse, r = d(() => _n(t)), i = (e) => {
1195
- let t = new Mt([
1185
+ let n = e._zod.parse, r = u(() => _n(t)), i = (e) => {
1186
+ let t = new Nt([
1196
1187
  "shape",
1197
1188
  "payload",
1198
1189
  "ctx"
1199
1190
  ]), n = r.value, i = (e) => {
1200
- let t = ne(e);
1191
+ let t = te(e);
1201
1192
  return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
1202
1193
  };
1203
1194
  t.write("const input = payload.value;");
@@ -1205,7 +1196,7 @@ var yn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1205
1196
  for (let e of n.keys) a[e] = `key_${o++}`;
1206
1197
  t.write("const newResult = {};");
1207
1198
  for (let r of n.keys) {
1208
- let n = a[r], o = ne(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
1199
+ let n = a[r], o = te(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
1209
1200
  t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
1210
1201
  if (${n}.issues.length) {
1211
1202
  if (${o} in input) {
@@ -1270,35 +1261,35 @@ var yn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1270
1261
  t.write("payload.value = newResult;"), t.write("return payload;");
1271
1262
  let s = t.compile();
1272
1263
  return (t, n) => s(e, t, n);
1273
- }, a, o = ae, c = !s.jitless, l = c && oe.value, u = t.catchall, f;
1274
- e._zod.parse = (s, d) => {
1264
+ }, a, s = ie, c = !o.jitless, l = c && ae.value, d = t.catchall, f;
1265
+ e._zod.parse = (o, u) => {
1275
1266
  f ??= r.value;
1276
- let p = s.value;
1277
- return o(p) ? c && l && d?.async === !1 && d.jitless !== !0 ? (a ||= i(t.shape), s = a(s, d), u ? vn([], p, s, d, f, e) : s) : n(s, d) : (s.issues.push({
1267
+ let p = o.value;
1268
+ return s(p) ? c && l && u?.async === !1 && u.jitless !== !0 ? (a ||= i(t.shape), o = a(o, u), d ? vn([], p, o, u, f, e) : o) : n(o, u) : (o.issues.push({
1278
1269
  expected: "object",
1279
1270
  code: "invalid_type",
1280
1271
  input: p,
1281
1272
  inst: e
1282
- }), s);
1273
+ }), o);
1283
1274
  };
1284
1275
  });
1285
1276
  function xn(e, t, n, r) {
1286
1277
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1287
- let i = e.filter((e) => !b(e));
1278
+ let i = e.filter((e) => !x(e));
1288
1279
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1289
1280
  code: "invalid_union",
1290
1281
  input: t.value,
1291
1282
  inst: n,
1292
- errors: e.map((e) => e.issues.map((e) => S(e, r, c())))
1283
+ errors: e.map((e) => e.issues.map((e) => S(e, r, s())))
1293
1284
  }), t);
1294
1285
  }
1295
- var Sn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
1296
- D.init(e, t), m(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), m(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), m(e._zod, "values", () => {
1286
+ var Sn = /*@__PURE__*/ r("$ZodUnion", (e, t) => {
1287
+ T.init(e, t), m(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), m(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), m(e._zod, "values", () => {
1297
1288
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1298
1289
  }), m(e._zod, "pattern", () => {
1299
1290
  if (t.options.every((e) => e._zod.pattern)) {
1300
1291
  let e = t.options.map((e) => e._zod.pattern);
1301
- return RegExp(`^(${e.map((e) => p(e.source)).join("|")})$`);
1292
+ return RegExp(`^(${e.map((e) => f(e.source)).join("|")})$`);
1302
1293
  }
1303
1294
  });
1304
1295
  let n = t.options.length === 1 ? t.options[0]._zod.run : null;
@@ -1318,8 +1309,8 @@ var Sn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
1318
1309
  }
1319
1310
  return a ? Promise.all(o).then((t) => xn(t, r, e, i)) : xn(o, r, e, i);
1320
1311
  };
1321
- }), Cn = /*@__PURE__*/ i("$ZodIntersection", (e, t) => {
1322
- D.init(e, t), e._zod.parse = (e, n) => {
1312
+ }), Cn = /*@__PURE__*/ r("$ZodIntersection", (e, t) => {
1313
+ T.init(e, t), e._zod.parse = (e, n) => {
1323
1314
  let r = e.value, i = t.left._zod.run({
1324
1315
  value: r,
1325
1316
  issues: []
@@ -1389,15 +1380,15 @@ function Tn(e, t, n) {
1389
1380
  if (a.length && i && e.issues.push({
1390
1381
  ...i,
1391
1382
  keys: a
1392
- }), b(e)) return e;
1383
+ }), x(e)) return e;
1393
1384
  let o = wn(t.value, n.value);
1394
1385
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1395
1386
  return e.value = o.data, e;
1396
1387
  }
1397
- var En = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
1398
- D.init(e, t);
1399
- let n = l(t.entries), r = new Set(n);
1400
- e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ce.has(typeof e)).map((e) => typeof e == "string" ? le(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1388
+ var En = /*@__PURE__*/ r("$ZodEnum", (e, t) => {
1389
+ T.init(e, t);
1390
+ let n = c(t.entries), r = new Set(n);
1391
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => se.has(typeof e)).map((e) => typeof e == "string" ? v(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1401
1392
  let a = t.value;
1402
1393
  return r.has(a) || t.issues.push({
1403
1394
  code: "invalid_value",
@@ -1406,13 +1397,13 @@ var En = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
1406
1397
  inst: e
1407
1398
  }), t;
1408
1399
  };
1409
- }), Dn = /*@__PURE__*/ i("$ZodTransform", (e, t) => {
1410
- D.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1411
- if (r.direction === "backward") throw new o(e.constructor.name);
1412
- let i = t.transform(n.value, n);
1413
- if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
1414
- if (i instanceof Promise) throw new a();
1415
- return n.value = i, n.fallback = !0, n;
1400
+ }), Dn = /*@__PURE__*/ r("$ZodTransform", (e, t) => {
1401
+ T.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1402
+ if (r.direction === "backward") throw new a(e.constructor.name);
1403
+ let o = t.transform(n.value, n);
1404
+ if (r.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (n.value = e, n.fallback = !0, n));
1405
+ if (o instanceof Promise) throw new i();
1406
+ return n.value = o, n.fallback = !0, n;
1416
1407
  };
1417
1408
  });
1418
1409
  function On(e, t) {
@@ -1421,10 +1412,10 @@ function On(e, t) {
1421
1412
  value: void 0
1422
1413
  } : e;
1423
1414
  }
1424
- var kn = /*@__PURE__*/ i("$ZodOptional", (e, t) => {
1425
- D.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
1415
+ var kn = /*@__PURE__*/ r("$ZodOptional", (e, t) => {
1416
+ T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
1426
1417
  let e = t.innerType._zod.pattern;
1427
- return e ? RegExp(`^(${p(e.source)})?$`) : void 0;
1418
+ return e ? RegExp(`^(${f(e.source)})?$`) : void 0;
1428
1419
  }), e._zod.parse = (e, n) => {
1429
1420
  if (t.innerType._zod.optin === "optional") {
1430
1421
  let r = e.value, i = t.innerType._zod.run(e, n);
@@ -1432,15 +1423,15 @@ var kn = /*@__PURE__*/ i("$ZodOptional", (e, t) => {
1432
1423
  }
1433
1424
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1434
1425
  };
1435
- }), An = /*@__PURE__*/ i("$ZodExactOptional", (e, t) => {
1426
+ }), An = /*@__PURE__*/ r("$ZodExactOptional", (e, t) => {
1436
1427
  kn.init(e, t), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1437
- }), jn = /*@__PURE__*/ i("$ZodNullable", (e, t) => {
1438
- D.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
1428
+ }), jn = /*@__PURE__*/ r("$ZodNullable", (e, t) => {
1429
+ T.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
1439
1430
  let e = t.innerType._zod.pattern;
1440
- return e ? RegExp(`^(${p(e.source)}|null)$`) : void 0;
1431
+ return e ? RegExp(`^(${f(e.source)}|null)$`) : void 0;
1441
1432
  }), m(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1442
- }), Mn = /*@__PURE__*/ i("$ZodDefault", (e, t) => {
1443
- D.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1433
+ }), Mn = /*@__PURE__*/ r("$ZodDefault", (e, t) => {
1434
+ T.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1444
1435
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1445
1436
  if (e.value === void 0) return e.value = t.defaultValue, e;
1446
1437
  let r = t.innerType._zod.run(e, n);
@@ -1450,10 +1441,10 @@ var kn = /*@__PURE__*/ i("$ZodOptional", (e, t) => {
1450
1441
  function Nn(e, t) {
1451
1442
  return e.value === void 0 && (e.value = t.defaultValue), e;
1452
1443
  }
1453
- var Pn = /*@__PURE__*/ i("$ZodPrefault", (e, t) => {
1454
- D.init(e, t), e._zod.optin = "optional", m(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));
1455
- }), Fn = /*@__PURE__*/ i("$ZodNonOptional", (e, t) => {
1456
- D.init(e, t), m(e._zod, "values", () => {
1444
+ var Pn = /*@__PURE__*/ r("$ZodPrefault", (e, t) => {
1445
+ T.init(e, t), e._zod.optin = "optional", m(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));
1446
+ }), Fn = /*@__PURE__*/ r("$ZodNonOptional", (e, t) => {
1447
+ T.init(e, t), m(e._zod, "values", () => {
1457
1448
  let e = t.innerType._zod.values;
1458
1449
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1459
1450
  }), e._zod.parse = (n, r) => {
@@ -1469,22 +1460,22 @@ function In(e, t) {
1469
1460
  inst: t
1470
1461
  }), e;
1471
1462
  }
1472
- var Ln = /*@__PURE__*/ i("$ZodCatch", (e, t) => {
1473
- D.init(e, t), e._zod.optin = "optional", m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1463
+ var Ln = /*@__PURE__*/ r("$ZodCatch", (e, t) => {
1464
+ T.init(e, t), e._zod.optin = "optional", m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1474
1465
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1475
1466
  let r = t.innerType._zod.run(e, n);
1476
1467
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1477
1468
  ...e,
1478
- error: { issues: r.issues.map((e) => S(e, n, c())) },
1469
+ error: { issues: r.issues.map((e) => S(e, n, s())) },
1479
1470
  input: e.value
1480
1471
  }), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1481
1472
  ...e,
1482
- error: { issues: r.issues.map((e) => S(e, n, c())) },
1473
+ error: { issues: r.issues.map((e) => S(e, n, s())) },
1483
1474
  input: e.value
1484
1475
  }), e.issues = [], e.fallback = !0), e);
1485
1476
  };
1486
- }), Rn = /*@__PURE__*/ i("$ZodPipe", (e, t) => {
1487
- D.init(e, t), m(e._zod, "values", () => t.in._zod.values), m(e._zod, "optin", () => t.in._zod.optin), m(e._zod, "optout", () => t.out._zod.optout), m(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1477
+ }), Rn = /*@__PURE__*/ r("$ZodPipe", (e, t) => {
1478
+ T.init(e, t), m(e._zod, "values", () => t.in._zod.values), m(e._zod, "optin", () => t.in._zod.optin), m(e._zod, "optout", () => t.out._zod.optout), m(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1488
1479
  if (n.direction === "backward") {
1489
1480
  let r = t.out._zod.run(e, n);
1490
1481
  return r instanceof Promise ? r.then((e) => zn(e, t.in, n)) : zn(r, t.in, n);
@@ -1500,10 +1491,10 @@ function zn(e, t, n) {
1500
1491
  fallback: e.fallback
1501
1492
  }, n);
1502
1493
  }
1503
- var Bn = /*@__PURE__*/ i("$ZodPreprocess", (e, t) => {
1494
+ var Bn = /*@__PURE__*/ r("$ZodPreprocess", (e, t) => {
1504
1495
  Rn.init(e, t);
1505
- }), Vn = /*@__PURE__*/ i("$ZodReadonly", (e, t) => {
1506
- D.init(e, t), m(e._zod, "propValues", () => t.innerType._zod.propValues), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "optin", () => t.innerType?._zod?.optin), m(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1496
+ }), Vn = /*@__PURE__*/ r("$ZodReadonly", (e, t) => {
1497
+ T.init(e, t), m(e._zod, "propValues", () => t.innerType._zod.propValues), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "optin", () => t.innerType?._zod?.optin), m(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1507
1498
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1508
1499
  let r = t.innerType._zod.run(e, n);
1509
1500
  return r instanceof Promise ? r.then(Hn) : Hn(r);
@@ -1512,8 +1503,8 @@ var Bn = /*@__PURE__*/ i("$ZodPreprocess", (e, t) => {
1512
1503
  function Hn(e) {
1513
1504
  return e.value = Object.freeze(e.value), e;
1514
1505
  }
1515
- var Un = /*@__PURE__*/ i("$ZodCustom", (e, t) => {
1516
- E.init(e, t), D.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1506
+ var Un = /*@__PURE__*/ r("$ZodCustom", (e, t) => {
1507
+ w.init(e, t), T.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1517
1508
  let r = n.value, i = t.fn(r);
1518
1509
  if (i instanceof Promise) return i.then((t) => Wn(t, n, r, e));
1519
1510
  Wn(i, n, r, e);
@@ -1569,14 +1560,14 @@ function qn() {
1569
1560
  return new Kn();
1570
1561
  }
1571
1562
  (Gn = globalThis).__zod_globalRegistry ?? (Gn.__zod_globalRegistry = qn());
1572
- var k = globalThis.__zod_globalRegistry;
1563
+ var O = globalThis.__zod_globalRegistry;
1573
1564
  //#endregion
1574
1565
  //#region ../../node_modules/zod/v4/core/api.js
1575
1566
  // @__NO_SIDE_EFFECTS__
1576
1567
  function Jn(e, t) {
1577
1568
  return new e({
1578
1569
  type: "string",
1579
- ...y(t)
1570
+ ...b(t)
1580
1571
  });
1581
1572
  }
1582
1573
  // @__NO_SIDE_EFFECTS__
@@ -1586,7 +1577,7 @@ function Yn(e, t) {
1586
1577
  format: "email",
1587
1578
  check: "string_format",
1588
1579
  abort: !1,
1589
- ...y(t)
1580
+ ...b(t)
1590
1581
  });
1591
1582
  }
1592
1583
  // @__NO_SIDE_EFFECTS__
@@ -1596,7 +1587,7 @@ function Xn(e, t) {
1596
1587
  format: "guid",
1597
1588
  check: "string_format",
1598
1589
  abort: !1,
1599
- ...y(t)
1590
+ ...b(t)
1600
1591
  });
1601
1592
  }
1602
1593
  // @__NO_SIDE_EFFECTS__
@@ -1606,7 +1597,7 @@ function Zn(e, t) {
1606
1597
  format: "uuid",
1607
1598
  check: "string_format",
1608
1599
  abort: !1,
1609
- ...y(t)
1600
+ ...b(t)
1610
1601
  });
1611
1602
  }
1612
1603
  // @__NO_SIDE_EFFECTS__
@@ -1617,7 +1608,7 @@ function Qn(e, t) {
1617
1608
  check: "string_format",
1618
1609
  abort: !1,
1619
1610
  version: "v4",
1620
- ...y(t)
1611
+ ...b(t)
1621
1612
  });
1622
1613
  }
1623
1614
  // @__NO_SIDE_EFFECTS__
@@ -1628,7 +1619,7 @@ function $n(e, t) {
1628
1619
  check: "string_format",
1629
1620
  abort: !1,
1630
1621
  version: "v6",
1631
- ...y(t)
1622
+ ...b(t)
1632
1623
  });
1633
1624
  }
1634
1625
  // @__NO_SIDE_EFFECTS__
@@ -1639,7 +1630,7 @@ function er(e, t) {
1639
1630
  check: "string_format",
1640
1631
  abort: !1,
1641
1632
  version: "v7",
1642
- ...y(t)
1633
+ ...b(t)
1643
1634
  });
1644
1635
  }
1645
1636
  // @__NO_SIDE_EFFECTS__
@@ -1649,7 +1640,7 @@ function tr(e, t) {
1649
1640
  format: "url",
1650
1641
  check: "string_format",
1651
1642
  abort: !1,
1652
- ...y(t)
1643
+ ...b(t)
1653
1644
  });
1654
1645
  }
1655
1646
  // @__NO_SIDE_EFFECTS__
@@ -1659,7 +1650,7 @@ function nr(e, t) {
1659
1650
  format: "emoji",
1660
1651
  check: "string_format",
1661
1652
  abort: !1,
1662
- ...y(t)
1653
+ ...b(t)
1663
1654
  });
1664
1655
  }
1665
1656
  // @__NO_SIDE_EFFECTS__
@@ -1669,7 +1660,7 @@ function rr(e, t) {
1669
1660
  format: "nanoid",
1670
1661
  check: "string_format",
1671
1662
  abort: !1,
1672
- ...y(t)
1663
+ ...b(t)
1673
1664
  });
1674
1665
  }
1675
1666
  // @__NO_SIDE_EFFECTS__
@@ -1679,7 +1670,7 @@ function ir(e, t) {
1679
1670
  format: "cuid",
1680
1671
  check: "string_format",
1681
1672
  abort: !1,
1682
- ...y(t)
1673
+ ...b(t)
1683
1674
  });
1684
1675
  }
1685
1676
  // @__NO_SIDE_EFFECTS__
@@ -1689,7 +1680,7 @@ function ar(e, t) {
1689
1680
  format: "cuid2",
1690
1681
  check: "string_format",
1691
1682
  abort: !1,
1692
- ...y(t)
1683
+ ...b(t)
1693
1684
  });
1694
1685
  }
1695
1686
  // @__NO_SIDE_EFFECTS__
@@ -1699,7 +1690,7 @@ function or(e, t) {
1699
1690
  format: "ulid",
1700
1691
  check: "string_format",
1701
1692
  abort: !1,
1702
- ...y(t)
1693
+ ...b(t)
1703
1694
  });
1704
1695
  }
1705
1696
  // @__NO_SIDE_EFFECTS__
@@ -1709,7 +1700,7 @@ function sr(e, t) {
1709
1700
  format: "xid",
1710
1701
  check: "string_format",
1711
1702
  abort: !1,
1712
- ...y(t)
1703
+ ...b(t)
1713
1704
  });
1714
1705
  }
1715
1706
  // @__NO_SIDE_EFFECTS__
@@ -1719,7 +1710,7 @@ function cr(e, t) {
1719
1710
  format: "ksuid",
1720
1711
  check: "string_format",
1721
1712
  abort: !1,
1722
- ...y(t)
1713
+ ...b(t)
1723
1714
  });
1724
1715
  }
1725
1716
  // @__NO_SIDE_EFFECTS__
@@ -1729,7 +1720,7 @@ function lr(e, t) {
1729
1720
  format: "ipv4",
1730
1721
  check: "string_format",
1731
1722
  abort: !1,
1732
- ...y(t)
1723
+ ...b(t)
1733
1724
  });
1734
1725
  }
1735
1726
  // @__NO_SIDE_EFFECTS__
@@ -1739,7 +1730,7 @@ function ur(e, t) {
1739
1730
  format: "ipv6",
1740
1731
  check: "string_format",
1741
1732
  abort: !1,
1742
- ...y(t)
1733
+ ...b(t)
1743
1734
  });
1744
1735
  }
1745
1736
  // @__NO_SIDE_EFFECTS__
@@ -1749,7 +1740,7 @@ function dr(e, t) {
1749
1740
  format: "cidrv4",
1750
1741
  check: "string_format",
1751
1742
  abort: !1,
1752
- ...y(t)
1743
+ ...b(t)
1753
1744
  });
1754
1745
  }
1755
1746
  // @__NO_SIDE_EFFECTS__
@@ -1759,7 +1750,7 @@ function fr(e, t) {
1759
1750
  format: "cidrv6",
1760
1751
  check: "string_format",
1761
1752
  abort: !1,
1762
- ...y(t)
1753
+ ...b(t)
1763
1754
  });
1764
1755
  }
1765
1756
  // @__NO_SIDE_EFFECTS__
@@ -1769,7 +1760,7 @@ function pr(e, t) {
1769
1760
  format: "base64",
1770
1761
  check: "string_format",
1771
1762
  abort: !1,
1772
- ...y(t)
1763
+ ...b(t)
1773
1764
  });
1774
1765
  }
1775
1766
  // @__NO_SIDE_EFFECTS__
@@ -1779,7 +1770,7 @@ function mr(e, t) {
1779
1770
  format: "base64url",
1780
1771
  check: "string_format",
1781
1772
  abort: !1,
1782
- ...y(t)
1773
+ ...b(t)
1783
1774
  });
1784
1775
  }
1785
1776
  // @__NO_SIDE_EFFECTS__
@@ -1789,7 +1780,7 @@ function hr(e, t) {
1789
1780
  format: "e164",
1790
1781
  check: "string_format",
1791
1782
  abort: !1,
1792
- ...y(t)
1783
+ ...b(t)
1793
1784
  });
1794
1785
  }
1795
1786
  // @__NO_SIDE_EFFECTS__
@@ -1799,7 +1790,7 @@ function gr(e, t) {
1799
1790
  format: "jwt",
1800
1791
  check: "string_format",
1801
1792
  abort: !1,
1802
- ...y(t)
1793
+ ...b(t)
1803
1794
  });
1804
1795
  }
1805
1796
  // @__NO_SIDE_EFFECTS__
@@ -1811,7 +1802,7 @@ function _r(e, t) {
1811
1802
  offset: !1,
1812
1803
  local: !1,
1813
1804
  precision: null,
1814
- ...y(t)
1805
+ ...b(t)
1815
1806
  });
1816
1807
  }
1817
1808
  // @__NO_SIDE_EFFECTS__
@@ -1820,7 +1811,7 @@ function vr(e, t) {
1820
1811
  type: "string",
1821
1812
  format: "date",
1822
1813
  check: "string_format",
1823
- ...y(t)
1814
+ ...b(t)
1824
1815
  });
1825
1816
  }
1826
1817
  // @__NO_SIDE_EFFECTS__
@@ -1830,7 +1821,7 @@ function yr(e, t) {
1830
1821
  format: "time",
1831
1822
  check: "string_format",
1832
1823
  precision: null,
1833
- ...y(t)
1824
+ ...b(t)
1834
1825
  });
1835
1826
  }
1836
1827
  // @__NO_SIDE_EFFECTS__
@@ -1839,7 +1830,7 @@ function br(e, t) {
1839
1830
  type: "string",
1840
1831
  format: "duration",
1841
1832
  check: "string_format",
1842
- ...y(t)
1833
+ ...b(t)
1843
1834
  });
1844
1835
  }
1845
1836
  // @__NO_SIDE_EFFECTS__
@@ -1847,7 +1838,7 @@ function xr(e, t) {
1847
1838
  return new e({
1848
1839
  type: "number",
1849
1840
  checks: [],
1850
- ...y(t)
1841
+ ...b(t)
1851
1842
  });
1852
1843
  }
1853
1844
  // @__NO_SIDE_EFFECTS__
@@ -1856,7 +1847,7 @@ function Sr(e, t) {
1856
1847
  type: "number",
1857
1848
  coerce: !0,
1858
1849
  checks: [],
1859
- ...y(t)
1850
+ ...b(t)
1860
1851
  });
1861
1852
  }
1862
1853
  // @__NO_SIDE_EFFECTS__
@@ -1866,14 +1857,14 @@ function Cr(e, t) {
1866
1857
  check: "number_format",
1867
1858
  abort: !1,
1868
1859
  format: "safeint",
1869
- ...y(t)
1860
+ ...b(t)
1870
1861
  });
1871
1862
  }
1872
1863
  // @__NO_SIDE_EFFECTS__
1873
1864
  function wr(e, t) {
1874
1865
  return new e({
1875
1866
  type: "boolean",
1876
- ...y(t)
1867
+ ...b(t)
1877
1868
  });
1878
1869
  }
1879
1870
  // @__NO_SIDE_EFFECTS__
@@ -1888,162 +1879,162 @@ function Er(e) {
1888
1879
  function Dr(e, t) {
1889
1880
  return new e({
1890
1881
  type: "never",
1891
- ...y(t)
1882
+ ...b(t)
1892
1883
  });
1893
1884
  }
1894
1885
  // @__NO_SIDE_EFFECTS__
1895
1886
  function Or(e, t) {
1896
- return new _t({
1887
+ return new vt({
1897
1888
  check: "less_than",
1898
- ...y(t),
1889
+ ...b(t),
1899
1890
  value: e,
1900
1891
  inclusive: !1
1901
1892
  });
1902
1893
  }
1903
1894
  // @__NO_SIDE_EFFECTS__
1904
1895
  function kr(e, t) {
1905
- return new _t({
1896
+ return new vt({
1906
1897
  check: "less_than",
1907
- ...y(t),
1898
+ ...b(t),
1908
1899
  value: e,
1909
1900
  inclusive: !0
1910
1901
  });
1911
1902
  }
1912
1903
  // @__NO_SIDE_EFFECTS__
1913
1904
  function Ar(e, t) {
1914
- return new vt({
1905
+ return new yt({
1915
1906
  check: "greater_than",
1916
- ...y(t),
1907
+ ...b(t),
1917
1908
  value: e,
1918
1909
  inclusive: !1
1919
1910
  });
1920
1911
  }
1921
1912
  // @__NO_SIDE_EFFECTS__
1922
1913
  function jr(e, t) {
1923
- return new vt({
1914
+ return new yt({
1924
1915
  check: "greater_than",
1925
- ...y(t),
1916
+ ...b(t),
1926
1917
  value: e,
1927
1918
  inclusive: !0
1928
1919
  });
1929
1920
  }
1930
1921
  // @__NO_SIDE_EFFECTS__
1931
1922
  function Mr(e, t) {
1932
- return new yt({
1923
+ return new bt({
1933
1924
  check: "multiple_of",
1934
- ...y(t),
1925
+ ...b(t),
1935
1926
  value: e
1936
1927
  });
1937
1928
  }
1938
1929
  // @__NO_SIDE_EFFECTS__
1939
1930
  function Nr(e, t) {
1940
- return new xt({
1931
+ return new St({
1941
1932
  check: "max_length",
1942
- ...y(t),
1933
+ ...b(t),
1943
1934
  maximum: e
1944
1935
  });
1945
1936
  }
1946
1937
  // @__NO_SIDE_EFFECTS__
1947
1938
  function Pr(e, t) {
1948
- return new St({
1939
+ return new Ct({
1949
1940
  check: "min_length",
1950
- ...y(t),
1941
+ ...b(t),
1951
1942
  minimum: e
1952
1943
  });
1953
1944
  }
1954
1945
  // @__NO_SIDE_EFFECTS__
1955
1946
  function Fr(e, t) {
1956
- return new Ct({
1947
+ return new wt({
1957
1948
  check: "length_equals",
1958
- ...y(t),
1949
+ ...b(t),
1959
1950
  length: e
1960
1951
  });
1961
1952
  }
1962
1953
  // @__NO_SIDE_EFFECTS__
1963
1954
  function Ir(e, t) {
1964
- return new Tt({
1955
+ return new Et({
1965
1956
  check: "string_format",
1966
1957
  format: "regex",
1967
- ...y(t),
1958
+ ...b(t),
1968
1959
  pattern: e
1969
1960
  });
1970
1961
  }
1971
1962
  // @__NO_SIDE_EFFECTS__
1972
1963
  function Lr(e) {
1973
- return new Et({
1964
+ return new Dt({
1974
1965
  check: "string_format",
1975
1966
  format: "lowercase",
1976
- ...y(e)
1967
+ ...b(e)
1977
1968
  });
1978
1969
  }
1979
1970
  // @__NO_SIDE_EFFECTS__
1980
1971
  function Rr(e) {
1981
- return new Dt({
1972
+ return new Ot({
1982
1973
  check: "string_format",
1983
1974
  format: "uppercase",
1984
- ...y(e)
1975
+ ...b(e)
1985
1976
  });
1986
1977
  }
1987
1978
  // @__NO_SIDE_EFFECTS__
1988
1979
  function zr(e, t) {
1989
- return new Ot({
1980
+ return new kt({
1990
1981
  check: "string_format",
1991
1982
  format: "includes",
1992
- ...y(t),
1983
+ ...b(t),
1993
1984
  includes: e
1994
1985
  });
1995
1986
  }
1996
1987
  // @__NO_SIDE_EFFECTS__
1997
1988
  function Br(e, t) {
1998
- return new kt({
1989
+ return new At({
1999
1990
  check: "string_format",
2000
1991
  format: "starts_with",
2001
- ...y(t),
1992
+ ...b(t),
2002
1993
  prefix: e
2003
1994
  });
2004
1995
  }
2005
1996
  // @__NO_SIDE_EFFECTS__
2006
1997
  function Vr(e, t) {
2007
- return new At({
1998
+ return new jt({
2008
1999
  check: "string_format",
2009
2000
  format: "ends_with",
2010
- ...y(t),
2001
+ ...b(t),
2011
2002
  suffix: e
2012
2003
  });
2013
2004
  }
2014
2005
  // @__NO_SIDE_EFFECTS__
2015
- function A(e) {
2016
- return new jt({
2006
+ function k(e) {
2007
+ return new Mt({
2017
2008
  check: "overwrite",
2018
2009
  tx: e
2019
2010
  });
2020
2011
  }
2021
2012
  // @__NO_SIDE_EFFECTS__
2022
2013
  function Hr(e) {
2023
- return /* @__PURE__ */ A((t) => t.normalize(e));
2014
+ return /* @__PURE__ */ k((t) => t.normalize(e));
2024
2015
  }
2025
2016
  // @__NO_SIDE_EFFECTS__
2026
2017
  function Ur() {
2027
- return /* @__PURE__ */ A((e) => e.trim());
2018
+ return /* @__PURE__ */ k((e) => e.trim());
2028
2019
  }
2029
2020
  // @__NO_SIDE_EFFECTS__
2030
2021
  function Wr() {
2031
- return /* @__PURE__ */ A((e) => e.toLowerCase());
2022
+ return /* @__PURE__ */ k((e) => e.toLowerCase());
2032
2023
  }
2033
2024
  // @__NO_SIDE_EFFECTS__
2034
2025
  function Gr() {
2035
- return /* @__PURE__ */ A((e) => e.toUpperCase());
2026
+ return /* @__PURE__ */ k((e) => e.toUpperCase());
2036
2027
  }
2037
2028
  // @__NO_SIDE_EFFECTS__
2038
2029
  function Kr() {
2039
- return /* @__PURE__ */ A((e) => re(e));
2030
+ return /* @__PURE__ */ k((e) => ne(e));
2040
2031
  }
2041
2032
  // @__NO_SIDE_EFFECTS__
2042
2033
  function qr(e, t, n) {
2043
2034
  return new e({
2044
2035
  type: "array",
2045
2036
  element: t,
2046
- ...y(n)
2037
+ ...b(n)
2047
2038
  });
2048
2039
  }
2049
2040
  // @__NO_SIDE_EFFECTS__
@@ -2052,7 +2043,7 @@ function Jr(e, t, n) {
2052
2043
  type: "custom",
2053
2044
  check: "custom",
2054
2045
  fn: t,
2055
- ...y(n)
2046
+ ...b(n)
2056
2047
  });
2057
2048
  }
2058
2049
  // @__NO_SIDE_EFFECTS__
@@ -2068,9 +2059,9 @@ function Yr(e, t) {
2068
2059
  }
2069
2060
  // @__NO_SIDE_EFFECTS__
2070
2061
  function Xr(e, t) {
2071
- let n = new E({
2062
+ let n = new w({
2072
2063
  check: "custom",
2073
- ...y(t)
2064
+ ...b(t)
2074
2065
  });
2075
2066
  return n._zod.check = e, n;
2076
2067
  }
@@ -2080,7 +2071,7 @@ function Zr(e) {
2080
2071
  let t = e?.target ?? "draft-2020-12";
2081
2072
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2082
2073
  processors: e.processors ?? {},
2083
- metadataRegistry: e?.metadata ?? k,
2074
+ metadataRegistry: e?.metadata ?? O,
2084
2075
  target: t,
2085
2076
  unrepresentable: e?.unrepresentable ?? "throw",
2086
2077
  override: e?.override ?? (() => {}),
@@ -2092,7 +2083,7 @@ function Zr(e) {
2092
2083
  external: e?.external ?? void 0
2093
2084
  };
2094
2085
  }
2095
- function j(e, t, n = {
2086
+ function A(e, t, n = {
2096
2087
  path: [],
2097
2088
  schemaPath: []
2098
2089
  }) {
@@ -2121,10 +2112,10 @@ function j(e, t, n = {
2121
2112
  a(e, t, n, r);
2122
2113
  }
2123
2114
  let a = e._zod.parent;
2124
- a && (o.ref ||= a, j(a, t, r), t.seen.get(a).isParent = !0);
2115
+ a && (o.ref ||= a, A(a, t, r), t.seen.get(a).isParent = !0);
2125
2116
  }
2126
2117
  let c = t.metadataRegistry.get(e);
2127
- return c && Object.assign(o.schema, c), t.io === "input" && M(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2118
+ return c && Object.assign(o.schema, c), t.io === "input" && j(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2128
2119
  }
2129
2120
  function Qr(e, t) {
2130
2121
  let n = e.seen.get(t);
@@ -2254,30 +2245,30 @@ function $r(e, t) {
2254
2245
  throw Error("Error converting schema to JSON.");
2255
2246
  }
2256
2247
  }
2257
- function M(e, t) {
2248
+ function j(e, t) {
2258
2249
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
2259
2250
  if (n.seen.has(e)) return !1;
2260
2251
  n.seen.add(e);
2261
2252
  let r = e._zod.def;
2262
2253
  if (r.type === "transform") return !0;
2263
- if (r.type === "array") return M(r.element, n);
2264
- if (r.type === "set") return M(r.valueType, n);
2265
- if (r.type === "lazy") return M(r.getter(), n);
2266
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return M(r.innerType, n);
2267
- if (r.type === "intersection") return M(r.left, n) || M(r.right, n);
2268
- if (r.type === "record" || r.type === "map") return M(r.keyType, n) || M(r.valueType, n);
2269
- if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : M(r.in, n) || M(r.out, n);
2254
+ if (r.type === "array") return j(r.element, n);
2255
+ if (r.type === "set") return j(r.valueType, n);
2256
+ if (r.type === "lazy") return j(r.getter(), n);
2257
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return j(r.innerType, n);
2258
+ if (r.type === "intersection") return j(r.left, n) || j(r.right, n);
2259
+ if (r.type === "record" || r.type === "map") return j(r.keyType, n) || j(r.valueType, n);
2260
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : j(r.in, n) || j(r.out, n);
2270
2261
  if (r.type === "object") {
2271
- for (let e in r.shape) if (M(r.shape[e], n)) return !0;
2262
+ for (let e in r.shape) if (j(r.shape[e], n)) return !0;
2272
2263
  return !1;
2273
2264
  }
2274
2265
  if (r.type === "union") {
2275
- for (let e of r.options) if (M(e, n)) return !0;
2266
+ for (let e of r.options) if (j(e, n)) return !0;
2276
2267
  return !1;
2277
2268
  }
2278
2269
  if (r.type === "tuple") {
2279
- for (let e of r.items) if (M(e, n)) return !0;
2280
- return !!(r.rest && M(r.rest, n));
2270
+ for (let e of r.items) if (j(e, n)) return !0;
2271
+ return !!(r.rest && j(r.rest, n));
2281
2272
  }
2282
2273
  return !1;
2283
2274
  }
@@ -2286,7 +2277,7 @@ var ei = (e, t = {}) => (n) => {
2286
2277
  ...n,
2287
2278
  processors: t
2288
2279
  });
2289
- return j(e, r), Qr(r, e), $r(r, e);
2280
+ return A(e, r), Qr(r, e), $r(r, e);
2290
2281
  }, ti = (e, t, n = {}) => (r) => {
2291
2282
  let { libraryOptions: i, target: a } = r ?? {}, o = Zr({
2292
2283
  ...i ?? {},
@@ -2294,7 +2285,7 @@ var ei = (e, t = {}) => (n) => {
2294
2285
  io: t,
2295
2286
  processors: n
2296
2287
  });
2297
- return j(e, o), Qr(o, e), $r(o, e);
2288
+ return A(e, o), Qr(o, e), $r(o, e);
2298
2289
  }, ni = {
2299
2290
  guid: "uuid",
2300
2291
  url: "uri",
@@ -2322,7 +2313,7 @@ var ei = (e, t = {}) => (n) => {
2322
2313
  }, oi = (e, t, n, r) => {
2323
2314
  n.not = {};
2324
2315
  }, si = (e, t, n, r) => {
2325
- let i = e._zod.def, a = l(i.entries);
2316
+ let i = e._zod.def, a = c(i.entries);
2326
2317
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
2327
2318
  }, ci = (e, t, n, r) => {
2328
2319
  if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
@@ -2330,7 +2321,7 @@ var ei = (e, t = {}) => (n) => {
2330
2321
  if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2331
2322
  }, ui = (e, t, n, r) => {
2332
2323
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2333
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = j(a.element, t, {
2324
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = A(a.element, t, {
2334
2325
  ...r,
2335
2326
  path: [...r.path, "items"]
2336
2327
  });
@@ -2338,7 +2329,7 @@ var ei = (e, t = {}) => (n) => {
2338
2329
  let i = n, a = e._zod.def;
2339
2330
  i.type = "object", i.properties = {};
2340
2331
  let o = a.shape;
2341
- for (let e in o) i.properties[e] = j(o[e], t, {
2332
+ for (let e in o) i.properties[e] = A(o[e], t, {
2342
2333
  ...r,
2343
2334
  path: [
2344
2335
  ...r.path,
@@ -2350,12 +2341,12 @@ var ei = (e, t = {}) => (n) => {
2350
2341
  let n = a.shape[e]._zod;
2351
2342
  return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
2352
2343
  }));
2353
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = j(a.catchall, t, {
2344
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = A(a.catchall, t, {
2354
2345
  ...r,
2355
2346
  path: [...r.path, "additionalProperties"]
2356
2347
  })) : t.io === "output" && (i.additionalProperties = !1);
2357
2348
  }, fi = (e, t, n, r) => {
2358
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => j(e, t, {
2349
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => A(e, t, {
2359
2350
  ...r,
2360
2351
  path: [
2361
2352
  ...r.path,
@@ -2365,14 +2356,14 @@ var ei = (e, t = {}) => (n) => {
2365
2356
  }));
2366
2357
  a ? n.oneOf = o : n.anyOf = o;
2367
2358
  }, pi = (e, t, n, r) => {
2368
- let i = e._zod.def, a = j(i.left, t, {
2359
+ let i = e._zod.def, a = A(i.left, t, {
2369
2360
  ...r,
2370
2361
  path: [
2371
2362
  ...r.path,
2372
2363
  "allOf",
2373
2364
  0
2374
2365
  ]
2375
- }), o = j(i.right, t, {
2366
+ }), o = A(i.right, t, {
2376
2367
  ...r,
2377
2368
  path: [
2378
2369
  ...r.path,
@@ -2382,26 +2373,26 @@ var ei = (e, t = {}) => (n) => {
2382
2373
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2383
2374
  n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2384
2375
  }, mi = (e, t, n, r) => {
2385
- let i = e._zod.def, a = j(i.innerType, t, r), o = t.seen.get(e);
2376
+ let i = e._zod.def, a = A(i.innerType, t, r), o = t.seen.get(e);
2386
2377
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2387
2378
  }, hi = (e, t, n, r) => {
2388
2379
  let i = e._zod.def;
2389
- j(i.innerType, t, r);
2380
+ A(i.innerType, t, r);
2390
2381
  let a = t.seen.get(e);
2391
2382
  a.ref = i.innerType;
2392
2383
  }, gi = (e, t, n, r) => {
2393
2384
  let i = e._zod.def;
2394
- j(i.innerType, t, r);
2385
+ A(i.innerType, t, r);
2395
2386
  let a = t.seen.get(e);
2396
2387
  a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2397
2388
  }, _i = (e, t, n, r) => {
2398
2389
  let i = e._zod.def;
2399
- j(i.innerType, t, r);
2390
+ A(i.innerType, t, r);
2400
2391
  let a = t.seen.get(e);
2401
2392
  a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2402
2393
  }, vi = (e, t, n, r) => {
2403
2394
  let i = e._zod.def;
2404
- j(i.innerType, t, r);
2395
+ A(i.innerType, t, r);
2405
2396
  let a = t.seen.get(e);
2406
2397
  a.ref = i.innerType;
2407
2398
  let o;
@@ -2413,59 +2404,59 @@ var ei = (e, t = {}) => (n) => {
2413
2404
  n.default = o;
2414
2405
  }, yi = (e, t, n, r) => {
2415
2406
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
2416
- j(o, t, r);
2407
+ A(o, t, r);
2417
2408
  let s = t.seen.get(e);
2418
2409
  s.ref = o;
2419
2410
  }, bi = (e, t, n, r) => {
2420
2411
  let i = e._zod.def;
2421
- j(i.innerType, t, r);
2412
+ A(i.innerType, t, r);
2422
2413
  let a = t.seen.get(e);
2423
2414
  a.ref = i.innerType, n.readOnly = !0;
2424
2415
  }, xi = (e, t, n, r) => {
2425
2416
  let i = e._zod.def;
2426
- j(i.innerType, t, r);
2417
+ A(i.innerType, t, r);
2427
2418
  let a = t.seen.get(e);
2428
2419
  a.ref = i.innerType;
2429
- }, Si = /*@__PURE__*/ i("ZodISODateTime", (e, t) => {
2430
- Kt.init(e, t), L.init(e, t);
2420
+ }, Si = /*@__PURE__*/ r("ZodISODateTime", (e, t) => {
2421
+ qt.init(e, t), I.init(e, t);
2431
2422
  });
2432
2423
  function Ci(e) {
2433
2424
  return /* @__PURE__ */ _r(Si, e);
2434
2425
  }
2435
- var wi = /*@__PURE__*/ i("ZodISODate", (e, t) => {
2436
- qt.init(e, t), L.init(e, t);
2426
+ var wi = /*@__PURE__*/ r("ZodISODate", (e, t) => {
2427
+ Jt.init(e, t), I.init(e, t);
2437
2428
  });
2438
2429
  function Ti(e) {
2439
2430
  return /* @__PURE__ */ vr(wi, e);
2440
2431
  }
2441
- var Ei = /*@__PURE__*/ i("ZodISOTime", (e, t) => {
2442
- Jt.init(e, t), L.init(e, t);
2432
+ var Ei = /*@__PURE__*/ r("ZodISOTime", (e, t) => {
2433
+ Yt.init(e, t), I.init(e, t);
2443
2434
  });
2444
2435
  function Di(e) {
2445
2436
  return /* @__PURE__ */ yr(Ei, e);
2446
2437
  }
2447
- var Oi = /*@__PURE__*/ i("ZodISODuration", (e, t) => {
2448
- Yt.init(e, t), L.init(e, t);
2438
+ var Oi = /*@__PURE__*/ r("ZodISODuration", (e, t) => {
2439
+ Xt.init(e, t), I.init(e, t);
2449
2440
  });
2450
2441
  function ki(e) {
2451
2442
  return /* @__PURE__ */ br(Oi, e);
2452
2443
  }
2453
- var N = /*@__PURE__*/ i("ZodError", (e, t) => {
2454
- Ce.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2455
- format: { value: (t) => Ee(e, t) },
2456
- flatten: { value: (t) => Te(e, t) },
2444
+ var M = /*@__PURE__*/ r("ZodError", (e, t) => {
2445
+ Se.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2446
+ format: { value: (t) => Te(e, t) },
2447
+ flatten: { value: (t) => we(e, t) },
2457
2448
  addIssue: { value: (t) => {
2458
- e.issues.push(t), e.message = JSON.stringify(e.issues, u, 2);
2449
+ e.issues.push(t), e.message = JSON.stringify(e.issues, l, 2);
2459
2450
  } },
2460
2451
  addIssues: { value: (t) => {
2461
- e.issues.push(...t), e.message = JSON.stringify(e.issues, u, 2);
2452
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, l, 2);
2462
2453
  } },
2463
2454
  isEmpty: { get() {
2464
2455
  return e.issues.length === 0;
2465
2456
  } }
2466
2457
  });
2467
- }, { Parent: Error }), Ai = /* @__PURE__ */ De(N), ji = /* @__PURE__ */ Oe(N), Mi = /* @__PURE__ */ w(N), Ni = /* @__PURE__ */ T(N), Pi = /* @__PURE__ */ je(N), Fi = /* @__PURE__ */ Me(N), Ii = /* @__PURE__ */ Ne(N), Li = /* @__PURE__ */ Pe(N), Ri = /* @__PURE__ */ Fe(N), zi = /* @__PURE__ */ Ie(N), Bi = /* @__PURE__ */ Le(N), Vi = /* @__PURE__ */ Re(N), Hi = /* @__PURE__ */ new WeakMap();
2468
- function P(e, t, n) {
2458
+ }, { Parent: Error }), Ai = /* @__PURE__ */ Ee(M), ji = /* @__PURE__ */ De(M), Mi = /* @__PURE__ */ Oe(M), Ni = /* @__PURE__ */ Ae(M), Pi = /* @__PURE__ */ Me(M), Fi = /* @__PURE__ */ Ne(M), Ii = /* @__PURE__ */ Pe(M), Li = /* @__PURE__ */ Fe(M), Ri = /* @__PURE__ */ Ie(M), zi = /* @__PURE__ */ Le(M), Bi = /* @__PURE__ */ Re(M), Vi = /* @__PURE__ */ ze(M), Hi = /* @__PURE__ */ new WeakMap();
2459
+ function N(e, t, n) {
2469
2460
  let r = Object.getPrototypeOf(e), i = Hi.get(r);
2470
2461
  if (i || (i = /* @__PURE__ */ new Set(), Hi.set(r, i)), !i.has(t)) {
2471
2462
  i.add(t);
@@ -2495,10 +2486,10 @@ function P(e, t, n) {
2495
2486
  }
2496
2487
  }
2497
2488
  }
2498
- var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2489
+ var P = /*@__PURE__*/ r("ZodType", (e, t) => (T.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2499
2490
  input: ti(e, "input"),
2500
2491
  output: ti(e, "output")
2501
- } }), e.toJSONSchema = ei(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Ai(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Mi(e, t, n), e.parseAsync = async (t, n) => ji(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ni(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Pi(e, t, n), e.decode = (t, n) => Fi(e, t, n), e.encodeAsync = async (t, n) => Ii(e, t, n), e.decodeAsync = async (t, n) => Li(e, t, n), e.safeEncode = (t, n) => Ri(e, t, n), e.safeDecode = (t, n) => zi(e, t, n), e.safeEncodeAsync = async (t, n) => Bi(e, t, n), e.safeDecodeAsync = async (t, n) => Vi(e, t, n), P(e, "ZodType", {
2492
+ } }), e.toJSONSchema = ei(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Ai(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Mi(e, t, n), e.parseAsync = async (t, n) => ji(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ni(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Pi(e, t, n), e.decode = (t, n) => Fi(e, t, n), e.encodeAsync = async (t, n) => Ii(e, t, n), e.decodeAsync = async (t, n) => Li(e, t, n), e.safeEncode = (t, n) => Ri(e, t, n), e.safeDecode = (t, n) => zi(e, t, n), e.safeEncodeAsync = async (t, n) => Bi(e, t, n), e.safeDecodeAsync = async (t, n) => Vi(e, t, n), N(e, "ZodType", {
2502
2493
  check(...e) {
2503
2494
  let t = this.def;
2504
2495
  return this.clone(g(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -2511,7 +2502,7 @@ var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~st
2511
2502
  return this.check(...e);
2512
2503
  },
2513
2504
  clone(e, t) {
2514
- return v(this, e, t);
2505
+ return y(this, e, t);
2515
2506
  },
2516
2507
  brand() {
2517
2508
  return this;
@@ -2526,7 +2517,7 @@ var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~st
2526
2517
  return this.check(Qa(e, t));
2527
2518
  },
2528
2519
  overwrite(e) {
2529
- return this.check(/* @__PURE__ */ A(e));
2520
+ return this.check(/* @__PURE__ */ k(e));
2530
2521
  },
2531
2522
  optional() {
2532
2523
  return Ma(this);
@@ -2572,12 +2563,12 @@ var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~st
2572
2563
  },
2573
2564
  describe(e) {
2574
2565
  let t = this.clone();
2575
- return k.add(t, { description: e }), t;
2566
+ return O.add(t, { description: e }), t;
2576
2567
  },
2577
2568
  meta(...e) {
2578
- if (e.length === 0) return k.get(this);
2569
+ if (e.length === 0) return O.get(this);
2579
2570
  let t = this.clone();
2580
- return k.add(t, e[0]), t;
2571
+ return O.add(t, e[0]), t;
2581
2572
  },
2582
2573
  isOptional() {
2583
2574
  return this.safeParse(void 0).success;
@@ -2590,13 +2581,13 @@ var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~st
2590
2581
  }
2591
2582
  }), Object.defineProperty(e, "description", {
2592
2583
  get() {
2593
- return k.get(e)?.description;
2584
+ return O.get(e)?.description;
2594
2585
  },
2595
2586
  configurable: !0
2596
- }), e)), Ui = /*@__PURE__*/ i("_ZodString", (e, t) => {
2597
- Pt.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r);
2587
+ }), e)), Ui = /*@__PURE__*/ r("_ZodString", (e, t) => {
2588
+ Ft.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r);
2598
2589
  let n = e._zod.bag;
2599
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, P(e, "_ZodString", {
2590
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, N(e, "_ZodString", {
2600
2591
  regex(...e) {
2601
2592
  return this.check(/* @__PURE__ */ Ir(...e));
2602
2593
  },
@@ -2643,54 +2634,54 @@ var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~st
2643
2634
  return this.check(/* @__PURE__ */ Kr());
2644
2635
  }
2645
2636
  });
2646
- }), Wi = /*@__PURE__*/ i("ZodString", (e, t) => {
2647
- Pt.init(e, t), Ui.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Yn(Gi, t)), e.url = (t) => e.check(/* @__PURE__ */ tr(Ji, t)), e.jwt = (t) => e.check(/* @__PURE__ */ gr(la, t)), e.emoji = (t) => e.check(/* @__PURE__ */ nr(Yi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Zn(qi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Qn(qi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ $n(qi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ er(qi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ rr(Xi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ir(Zi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ar(Qi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ or($i, t)), e.base64 = (t) => e.check(/* @__PURE__ */ pr(oa, t)), e.base64url = (t) => e.check(/* @__PURE__ */ mr(sa, t)), e.xid = (t) => e.check(/* @__PURE__ */ sr(ea, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ cr(ta, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ lr(na, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ ur(ra, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ dr(ia, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ fr(aa, t)), e.e164 = (t) => e.check(/* @__PURE__ */ hr(ca, t)), e.datetime = (t) => e.check(Ci(t)), e.date = (t) => e.check(Ti(t)), e.time = (t) => e.check(Di(t)), e.duration = (t) => e.check(ki(t));
2637
+ }), Wi = /*@__PURE__*/ r("ZodString", (e, t) => {
2638
+ Ft.init(e, t), Ui.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Yn(Gi, t)), e.url = (t) => e.check(/* @__PURE__ */ tr(Ji, t)), e.jwt = (t) => e.check(/* @__PURE__ */ gr(la, t)), e.emoji = (t) => e.check(/* @__PURE__ */ nr(Yi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Zn(qi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Qn(qi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ $n(qi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ er(qi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ rr(Xi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ir(Zi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ar(Qi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ or($i, t)), e.base64 = (t) => e.check(/* @__PURE__ */ pr(oa, t)), e.base64url = (t) => e.check(/* @__PURE__ */ mr(sa, t)), e.xid = (t) => e.check(/* @__PURE__ */ sr(ea, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ cr(ta, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ lr(na, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ ur(ra, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ dr(ia, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ fr(aa, t)), e.e164 = (t) => e.check(/* @__PURE__ */ hr(ca, t)), e.datetime = (t) => e.check(Ci(t)), e.date = (t) => e.check(Ti(t)), e.time = (t) => e.check(Di(t)), e.duration = (t) => e.check(ki(t));
2648
2639
  });
2649
- function I(e) {
2640
+ function F(e) {
2650
2641
  return /* @__PURE__ */ Jn(Wi, e);
2651
2642
  }
2652
- var L = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
2653
- O.init(e, t), Ui.init(e, t);
2654
- }), Gi = /*@__PURE__*/ i("ZodEmail", (e, t) => {
2655
- Lt.init(e, t), L.init(e, t);
2656
- }), Ki = /*@__PURE__*/ i("ZodGUID", (e, t) => {
2657
- Ft.init(e, t), L.init(e, t);
2658
- }), qi = /*@__PURE__*/ i("ZodUUID", (e, t) => {
2659
- It.init(e, t), L.init(e, t);
2660
- }), Ji = /*@__PURE__*/ i("ZodURL", (e, t) => {
2661
- Rt.init(e, t), L.init(e, t);
2662
- }), Yi = /*@__PURE__*/ i("ZodEmoji", (e, t) => {
2663
- zt.init(e, t), L.init(e, t);
2664
- }), Xi = /*@__PURE__*/ i("ZodNanoID", (e, t) => {
2665
- Bt.init(e, t), L.init(e, t);
2666
- }), Zi = /*@__PURE__*/ i("ZodCUID", (e, t) => {
2667
- Vt.init(e, t), L.init(e, t);
2668
- }), Qi = /*@__PURE__*/ i("ZodCUID2", (e, t) => {
2669
- Ht.init(e, t), L.init(e, t);
2670
- }), $i = /*@__PURE__*/ i("ZodULID", (e, t) => {
2671
- Ut.init(e, t), L.init(e, t);
2672
- }), ea = /*@__PURE__*/ i("ZodXID", (e, t) => {
2673
- Wt.init(e, t), L.init(e, t);
2674
- }), ta = /*@__PURE__*/ i("ZodKSUID", (e, t) => {
2675
- Gt.init(e, t), L.init(e, t);
2676
- }), na = /*@__PURE__*/ i("ZodIPv4", (e, t) => {
2677
- Xt.init(e, t), L.init(e, t);
2678
- }), ra = /*@__PURE__*/ i("ZodIPv6", (e, t) => {
2679
- Zt.init(e, t), L.init(e, t);
2680
- }), ia = /*@__PURE__*/ i("ZodCIDRv4", (e, t) => {
2681
- Qt.init(e, t), L.init(e, t);
2682
- }), aa = /*@__PURE__*/ i("ZodCIDRv6", (e, t) => {
2683
- $t.init(e, t), L.init(e, t);
2684
- }), oa = /*@__PURE__*/ i("ZodBase64", (e, t) => {
2685
- tn.init(e, t), L.init(e, t);
2686
- }), sa = /*@__PURE__*/ i("ZodBase64URL", (e, t) => {
2687
- rn.init(e, t), L.init(e, t);
2688
- }), ca = /*@__PURE__*/ i("ZodE164", (e, t) => {
2689
- an.init(e, t), L.init(e, t);
2690
- }), la = /*@__PURE__*/ i("ZodJWT", (e, t) => {
2691
- sn.init(e, t), L.init(e, t);
2692
- }), ua = /*@__PURE__*/ i("ZodNumber", (e, t) => {
2693
- cn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ii(e, t, n, r), P(e, "ZodNumber", {
2643
+ var I = /*@__PURE__*/ r("ZodStringFormat", (e, t) => {
2644
+ E.init(e, t), Ui.init(e, t);
2645
+ }), Gi = /*@__PURE__*/ r("ZodEmail", (e, t) => {
2646
+ Rt.init(e, t), I.init(e, t);
2647
+ }), Ki = /*@__PURE__*/ r("ZodGUID", (e, t) => {
2648
+ It.init(e, t), I.init(e, t);
2649
+ }), qi = /*@__PURE__*/ r("ZodUUID", (e, t) => {
2650
+ Lt.init(e, t), I.init(e, t);
2651
+ }), Ji = /*@__PURE__*/ r("ZodURL", (e, t) => {
2652
+ zt.init(e, t), I.init(e, t);
2653
+ }), Yi = /*@__PURE__*/ r("ZodEmoji", (e, t) => {
2654
+ Bt.init(e, t), I.init(e, t);
2655
+ }), Xi = /*@__PURE__*/ r("ZodNanoID", (e, t) => {
2656
+ Vt.init(e, t), I.init(e, t);
2657
+ }), Zi = /*@__PURE__*/ r("ZodCUID", (e, t) => {
2658
+ Ht.init(e, t), I.init(e, t);
2659
+ }), Qi = /*@__PURE__*/ r("ZodCUID2", (e, t) => {
2660
+ Ut.init(e, t), I.init(e, t);
2661
+ }), $i = /*@__PURE__*/ r("ZodULID", (e, t) => {
2662
+ Wt.init(e, t), I.init(e, t);
2663
+ }), ea = /*@__PURE__*/ r("ZodXID", (e, t) => {
2664
+ Gt.init(e, t), I.init(e, t);
2665
+ }), ta = /*@__PURE__*/ r("ZodKSUID", (e, t) => {
2666
+ Kt.init(e, t), I.init(e, t);
2667
+ }), na = /*@__PURE__*/ r("ZodIPv4", (e, t) => {
2668
+ Zt.init(e, t), I.init(e, t);
2669
+ }), ra = /*@__PURE__*/ r("ZodIPv6", (e, t) => {
2670
+ Qt.init(e, t), I.init(e, t);
2671
+ }), ia = /*@__PURE__*/ r("ZodCIDRv4", (e, t) => {
2672
+ $t.init(e, t), I.init(e, t);
2673
+ }), aa = /*@__PURE__*/ r("ZodCIDRv6", (e, t) => {
2674
+ en.init(e, t), I.init(e, t);
2675
+ }), oa = /*@__PURE__*/ r("ZodBase64", (e, t) => {
2676
+ nn.init(e, t), I.init(e, t);
2677
+ }), sa = /*@__PURE__*/ r("ZodBase64URL", (e, t) => {
2678
+ an.init(e, t), I.init(e, t);
2679
+ }), ca = /*@__PURE__*/ r("ZodE164", (e, t) => {
2680
+ on.init(e, t), I.init(e, t);
2681
+ }), la = /*@__PURE__*/ r("ZodJWT", (e, t) => {
2682
+ cn.init(e, t), I.init(e, t);
2683
+ }), ua = /*@__PURE__*/ r("ZodNumber", (e, t) => {
2684
+ ln.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => ii(e, t, n, r), N(e, "ZodNumber", {
2694
2685
  gt(e, t) {
2695
2686
  return this.check(/* @__PURE__ */ Ar(e, t));
2696
2687
  },
@@ -2740,41 +2731,41 @@ var L = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
2740
2731
  let n = e._zod.bag;
2741
2732
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
2742
2733
  });
2743
- function R(e) {
2734
+ function L(e) {
2744
2735
  return /* @__PURE__ */ xr(ua, e);
2745
2736
  }
2746
- var da = /*@__PURE__*/ i("ZodNumberFormat", (e, t) => {
2747
- ln.init(e, t), ua.init(e, t);
2737
+ var da = /*@__PURE__*/ r("ZodNumberFormat", (e, t) => {
2738
+ un.init(e, t), ua.init(e, t);
2748
2739
  });
2749
2740
  function fa(e) {
2750
2741
  return /* @__PURE__ */ Cr(da, e);
2751
2742
  }
2752
- var pa = /*@__PURE__*/ i("ZodBoolean", (e, t) => {
2753
- un.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r);
2743
+ var pa = /*@__PURE__*/ r("ZodBoolean", (e, t) => {
2744
+ dn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r);
2754
2745
  });
2755
2746
  function ma(e) {
2756
2747
  return /* @__PURE__ */ wr(pa, e);
2757
2748
  }
2758
- var ha = /*@__PURE__*/ i("ZodAny", (e, t) => {
2759
- dn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2749
+ var ha = /*@__PURE__*/ r("ZodAny", (e, t) => {
2750
+ fn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2760
2751
  });
2761
2752
  function ga() {
2762
2753
  return /* @__PURE__ */ Tr(ha);
2763
2754
  }
2764
- var _a = /*@__PURE__*/ i("ZodUnknown", (e, t) => {
2765
- fn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2755
+ var _a = /*@__PURE__*/ r("ZodUnknown", (e, t) => {
2756
+ pn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2766
2757
  });
2767
- function z() {
2758
+ function R() {
2768
2759
  return /* @__PURE__ */ Er(_a);
2769
2760
  }
2770
- var va = /*@__PURE__*/ i("ZodNever", (e, t) => {
2771
- pn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r);
2761
+ var va = /*@__PURE__*/ r("ZodNever", (e, t) => {
2762
+ mn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r);
2772
2763
  });
2773
2764
  function ya(e) {
2774
2765
  return /* @__PURE__ */ Dr(va, e);
2775
2766
  }
2776
- var ba = /*@__PURE__*/ i("ZodArray", (e, t) => {
2777
- hn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), e.element = t.element, P(e, "ZodArray", {
2767
+ var ba = /*@__PURE__*/ r("ZodArray", (e, t) => {
2768
+ gn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), e.element = t.element, N(e, "ZodArray", {
2778
2769
  min(e, t) {
2779
2770
  return this.check(/* @__PURE__ */ Pr(e, t));
2780
2771
  },
@@ -2795,8 +2786,8 @@ var ba = /*@__PURE__*/ i("ZodArray", (e, t) => {
2795
2786
  function xa(e, t) {
2796
2787
  return /* @__PURE__ */ qr(ba, e, t);
2797
2788
  }
2798
- var Sa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2799
- bn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), m(e, "shape", () => t.shape), P(e, "ZodObject", {
2789
+ var Sa = /*@__PURE__*/ r("ZodObject", (e, t) => {
2790
+ bn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), m(e, "shape", () => t.shape), N(e, "ZodObject", {
2800
2791
  keyof() {
2801
2792
  return Oa(Object.keys(this._zod.def.shape));
2802
2793
  },
@@ -2809,13 +2800,13 @@ var Sa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2809
2800
  passthrough() {
2810
2801
  return this.clone({
2811
2802
  ...this._zod.def,
2812
- catchall: z()
2803
+ catchall: R()
2813
2804
  });
2814
2805
  },
2815
2806
  loose() {
2816
2807
  return this.clone({
2817
2808
  ...this._zod.def,
2818
- catchall: z()
2809
+ catchall: R()
2819
2810
  });
2820
2811
  },
2821
2812
  strict() {
@@ -2831,47 +2822,47 @@ var Sa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2831
2822
  });
2832
2823
  },
2833
2824
  extend(e) {
2834
- return me(this, e);
2825
+ return fe(this, e);
2835
2826
  },
2836
2827
  safeExtend(e) {
2837
- return he(this, e);
2828
+ return pe(this, e);
2838
2829
  },
2839
2830
  merge(e) {
2840
- return ge(this, e);
2831
+ return me(this, e);
2841
2832
  },
2842
2833
  pick(e) {
2843
- return fe(this, e);
2834
+ return ue(this, e);
2844
2835
  },
2845
2836
  omit(e) {
2846
- return pe(this, e);
2837
+ return de(this, e);
2847
2838
  },
2848
2839
  partial(...e) {
2849
- return _e(ja, this, e[0]);
2840
+ return he(ja, this, e[0]);
2850
2841
  },
2851
2842
  required(...e) {
2852
- return ve(Va, this, e[0]);
2843
+ return ge(Va, this, e[0]);
2853
2844
  }
2854
2845
  });
2855
2846
  });
2856
- function B(e, t) {
2847
+ function z(e, t) {
2857
2848
  return new Sa({
2858
2849
  type: "object",
2859
2850
  shape: e ?? {},
2860
- ...y(t)
2851
+ ...b(t)
2861
2852
  });
2862
2853
  }
2863
- var Ca = /*@__PURE__*/ i("ZodUnion", (e, t) => {
2864
- Sn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.options = t.options;
2854
+ var Ca = /*@__PURE__*/ r("ZodUnion", (e, t) => {
2855
+ Sn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.options = t.options;
2865
2856
  });
2866
2857
  function wa(e, t) {
2867
2858
  return new Ca({
2868
2859
  type: "union",
2869
2860
  options: e,
2870
- ...y(t)
2861
+ ...b(t)
2871
2862
  });
2872
2863
  }
2873
- var Ta = /*@__PURE__*/ i("ZodIntersection", (e, t) => {
2874
- Cn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r);
2864
+ var Ta = /*@__PURE__*/ r("ZodIntersection", (e, t) => {
2865
+ Cn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r);
2875
2866
  });
2876
2867
  function Ea(e, t) {
2877
2868
  return new Ta({
@@ -2880,8 +2871,8 @@ function Ea(e, t) {
2880
2871
  right: t
2881
2872
  });
2882
2873
  }
2883
- var Da = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2884
- En.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2874
+ var Da = /*@__PURE__*/ r("ZodEnum", (e, t) => {
2875
+ En.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2885
2876
  let n = new Set(Object.keys(t.entries));
2886
2877
  e.extract = (e, r) => {
2887
2878
  let i = {};
@@ -2890,7 +2881,7 @@ var Da = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2890
2881
  return new Da({
2891
2882
  ...t,
2892
2883
  checks: [],
2893
- ...y(r),
2884
+ ...b(r),
2894
2885
  entries: i
2895
2886
  });
2896
2887
  }, e.exclude = (e, r) => {
@@ -2900,7 +2891,7 @@ var Da = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2900
2891
  return new Da({
2901
2892
  ...t,
2902
2893
  checks: [],
2903
- ...y(r),
2894
+ ...b(r),
2904
2895
  entries: i
2905
2896
  });
2906
2897
  };
@@ -2909,12 +2900,12 @@ function Oa(e, t) {
2909
2900
  return new Da({
2910
2901
  type: "enum",
2911
2902
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2912
- ...y(t)
2903
+ ...b(t)
2913
2904
  });
2914
2905
  }
2915
- var ka = /*@__PURE__*/ i("ZodTransform", (e, t) => {
2916
- Dn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e._zod.parse = (n, r) => {
2917
- if (r.direction === "backward") throw new o(e.constructor.name);
2906
+ var ka = /*@__PURE__*/ r("ZodTransform", (e, t) => {
2907
+ Dn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e._zod.parse = (n, r) => {
2908
+ if (r.direction === "backward") throw new a(e.constructor.name);
2918
2909
  n.addIssue = (r) => {
2919
2910
  if (typeof r == "string") n.issues.push(C(r, n.value, t));
2920
2911
  else {
@@ -2932,8 +2923,8 @@ function Aa(e) {
2932
2923
  transform: e
2933
2924
  });
2934
2925
  }
2935
- var ja = /*@__PURE__*/ i("ZodOptional", (e, t) => {
2936
- kn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2926
+ var ja = /*@__PURE__*/ r("ZodOptional", (e, t) => {
2927
+ kn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2937
2928
  });
2938
2929
  function Ma(e) {
2939
2930
  return new ja({
@@ -2941,8 +2932,8 @@ function Ma(e) {
2941
2932
  innerType: e
2942
2933
  });
2943
2934
  }
2944
- var Na = /*@__PURE__*/ i("ZodExactOptional", (e, t) => {
2945
- An.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2935
+ var Na = /*@__PURE__*/ r("ZodExactOptional", (e, t) => {
2936
+ An.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2946
2937
  });
2947
2938
  function Pa(e) {
2948
2939
  return new Na({
@@ -2950,8 +2941,8 @@ function Pa(e) {
2950
2941
  innerType: e
2951
2942
  });
2952
2943
  }
2953
- var Fa = /*@__PURE__*/ i("ZodNullable", (e, t) => {
2954
- jn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2944
+ var Fa = /*@__PURE__*/ r("ZodNullable", (e, t) => {
2945
+ jn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2955
2946
  });
2956
2947
  function Ia(e) {
2957
2948
  return new Fa({
@@ -2959,42 +2950,42 @@ function Ia(e) {
2959
2950
  innerType: e
2960
2951
  });
2961
2952
  }
2962
- var La = /*@__PURE__*/ i("ZodDefault", (e, t) => {
2963
- Mn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2953
+ var La = /*@__PURE__*/ r("ZodDefault", (e, t) => {
2954
+ Mn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2964
2955
  });
2965
2956
  function Ra(e, t) {
2966
2957
  return new La({
2967
2958
  type: "default",
2968
2959
  innerType: e,
2969
2960
  get defaultValue() {
2970
- return typeof t == "function" ? t() : se(t);
2961
+ return typeof t == "function" ? t() : oe(t);
2971
2962
  }
2972
2963
  });
2973
2964
  }
2974
- var za = /*@__PURE__*/ i("ZodPrefault", (e, t) => {
2975
- Pn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2965
+ var za = /*@__PURE__*/ r("ZodPrefault", (e, t) => {
2966
+ Pn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2976
2967
  });
2977
2968
  function Ba(e, t) {
2978
2969
  return new za({
2979
2970
  type: "prefault",
2980
2971
  innerType: e,
2981
2972
  get defaultValue() {
2982
- return typeof t == "function" ? t() : se(t);
2973
+ return typeof t == "function" ? t() : oe(t);
2983
2974
  }
2984
2975
  });
2985
2976
  }
2986
- var Va = /*@__PURE__*/ i("ZodNonOptional", (e, t) => {
2987
- Fn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2977
+ var Va = /*@__PURE__*/ r("ZodNonOptional", (e, t) => {
2978
+ Fn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2988
2979
  });
2989
2980
  function Ha(e, t) {
2990
2981
  return new Va({
2991
2982
  type: "nonoptional",
2992
2983
  innerType: e,
2993
- ...y(t)
2984
+ ...b(t)
2994
2985
  });
2995
2986
  }
2996
- var Ua = /*@__PURE__*/ i("ZodCatch", (e, t) => {
2997
- Ln.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2987
+ var Ua = /*@__PURE__*/ r("ZodCatch", (e, t) => {
2988
+ Ln.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2998
2989
  });
2999
2990
  function Wa(e, t) {
3000
2991
  return new Ua({
@@ -3003,8 +2994,8 @@ function Wa(e, t) {
3003
2994
  catchValue: typeof t == "function" ? t : () => t
3004
2995
  });
3005
2996
  }
3006
- var Ga = /*@__PURE__*/ i("ZodPipe", (e, t) => {
3007
- Rn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.in = t.in, e.out = t.out;
2997
+ var Ga = /*@__PURE__*/ r("ZodPipe", (e, t) => {
2998
+ Rn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.in = t.in, e.out = t.out;
3008
2999
  });
3009
3000
  function Ka(e, t) {
3010
3001
  return new Ga({
@@ -3013,10 +3004,10 @@ function Ka(e, t) {
3013
3004
  out: t
3014
3005
  });
3015
3006
  }
3016
- var qa = /*@__PURE__*/ i("ZodPreprocess", (e, t) => {
3007
+ var qa = /*@__PURE__*/ r("ZodPreprocess", (e, t) => {
3017
3008
  Ga.init(e, t), Bn.init(e, t);
3018
- }), Ja = /*@__PURE__*/ i("ZodReadonly", (e, t) => {
3019
- Vn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3009
+ }), Ja = /*@__PURE__*/ r("ZodReadonly", (e, t) => {
3010
+ Vn.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3020
3011
  });
3021
3012
  function Ya(e) {
3022
3013
  return new Ja({
@@ -3024,8 +3015,8 @@ function Ya(e) {
3024
3015
  innerType: e
3025
3016
  });
3026
3017
  }
3027
- var Xa = /*@__PURE__*/ i("ZodCustom", (e, t) => {
3028
- Un.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
3018
+ var Xa = /*@__PURE__*/ r("ZodCustom", (e, t) => {
3019
+ Un.init(e, t), P.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
3029
3020
  });
3030
3021
  function Za(e, t = {}) {
3031
3022
  return /* @__PURE__ */ Jr(Xa, e, t);
@@ -3042,7 +3033,7 @@ function $a(e, t) {
3042
3033
  }
3043
3034
  //#endregion
3044
3035
  //#region ../../node_modules/zod/v4/classic/compat.js
3045
- var V = {
3036
+ var B = {
3046
3037
  invalid_type: "invalid_type",
3047
3038
  too_big: "too_big",
3048
3039
  too_small: "too_small",
@@ -3058,7 +3049,7 @@ var V = {
3058
3049
  eo ||= {};
3059
3050
  //#endregion
3060
3051
  //#region ../../node_modules/zod/v4/classic/coerce.js
3061
- function H(e) {
3052
+ function V(e) {
3062
3053
  return /* @__PURE__ */ Sr(ua, e);
3063
3054
  }
3064
3055
  //#endregion
@@ -3383,22 +3374,22 @@ var oo = (() => {
3383
3374
  })(), so = new Set(oo), co = (e) => so.has(e);
3384
3375
  //#endregion
3385
3376
  //#region ../sdk/src/fields/validation.ts
3386
- function U(e, t) {
3377
+ function H(e, t) {
3387
3378
  return JSON.stringify(t ? {
3388
3379
  code: e,
3389
3380
  params: t
3390
3381
  } : { code: e });
3391
3382
  }
3392
- function W(e = "required") {
3393
- return { error: (t) => t.input === void 0 ? U(e) : void 0 };
3383
+ function U(e = "required") {
3384
+ return { error: (t) => t.input === void 0 ? H(e) : void 0 };
3394
3385
  }
3395
3386
  function lo(e = "invalid_type") {
3396
- return { error: (t) => t.code === "invalid_type" ? U(e) : void 0 };
3387
+ return { error: (t) => t.code === "invalid_type" ? H(e) : void 0 };
3397
3388
  }
3398
3389
  function uo() {
3399
- return { error: (e) => e.code === "invalid_type" ? e.input === void 0 ? U("required") : U("invalid_type") : void 0 };
3390
+ return { error: (e) => e.code === "invalid_type" ? e.input === void 0 ? H("required") : H("invalid_type") : void 0 };
3400
3391
  }
3401
- function G(e) {
3392
+ function W(e) {
3402
3393
  if (typeof e == "string") try {
3403
3394
  return JSON.parse(e);
3404
3395
  } catch {
@@ -3407,33 +3398,33 @@ function G(e) {
3407
3398
  return e;
3408
3399
  }
3409
3400
  function fo(e, t) {
3410
- return z().superRefine((n, r) => {
3411
- let i = G(n);
3401
+ return R().superRefine((n, r) => {
3402
+ let i = W(n);
3412
3403
  if (typeof n == "string" && typeof i == "string") {
3413
3404
  r.addIssue({
3414
- code: V.custom,
3415
- message: U("json")
3405
+ code: B.custom,
3406
+ message: H("json")
3416
3407
  });
3417
3408
  return;
3418
3409
  }
3419
3410
  e.safeParse(i).success || r.addIssue({
3420
- code: V.custom,
3421
- message: U(t)
3411
+ code: B.custom,
3412
+ message: H(t)
3422
3413
  });
3423
3414
  });
3424
3415
  }
3425
- function K(e, t) {
3416
+ function G(e, t) {
3426
3417
  let n = t === !0, r = (e) => e === "" || e === null ? void 0 : e;
3427
- return n ? $a(r, z().superRefine((e, t) => {
3418
+ return n ? $a(r, R().superRefine((e, t) => {
3428
3419
  e === void 0 && t.addIssue({
3429
- code: V.custom,
3430
- message: U("required")
3420
+ code: B.custom,
3421
+ message: H("required")
3431
3422
  });
3432
3423
  }).pipe(e)) : $a(r, e.optional());
3433
3424
  }
3434
3425
  //#endregion
3435
3426
  //#region ../sdk/src/fields/normalize.ts
3436
- function q(e) {
3427
+ function K(e) {
3437
3428
  let t = e, n = t.rules ?? {}, r = t.view ?? {}, i = {};
3438
3429
  n.min != null && typeof n.min == "number" && (i.min = n.min), n.max != null && typeof n.max == "number" && (i.max = n.max), n.step != null && (i.step = n.step), n.pattern != null && (i.pattern = n.pattern), n.messageKey != null && (i.messageKey = n.messageKey), n.granularity != null && (i.granularity = n.granularity), n.language != null && (i.language = n.language), n.defaultCurrency != null && (i.defaultCurrency = n.defaultCurrency), n.defaultLang != null && (i.defaultLang = n.defaultLang);
3439
3430
  let { rules: a, view: o, ...s } = t, c = {
@@ -3462,8 +3453,8 @@ function q(e) {
3462
3453
  //#endregion
3463
3454
  //#region ../sdk/src/field-presets.ts
3464
3455
  function po(e) {
3465
- let t = q(e), n = t.required ?? !1, r = I().email({ message: U("email") });
3466
- return n && (r = r.min(1, { message: U("min_length", { min: 1 }) })), Y(t, X({
3456
+ let t = K(e), n = t.required ?? !1, r = F().email({ message: H("email") });
3457
+ return n && (r = r.min(1, { message: H("min_length", { min: 1 }) })), J(t, Y({
3467
3458
  kind: "email",
3468
3459
  label: t.label ?? "",
3469
3460
  required: n,
@@ -3473,12 +3464,12 @@ function po(e) {
3473
3464
  format: "email",
3474
3465
  inputType: "email"
3475
3466
  },
3476
- zod: K(r, n)
3467
+ zod: G(r, n)
3477
3468
  }, t.multiple ?? !1));
3478
3469
  }
3479
3470
  function mo(e) {
3480
- let t = q(e), n = t.required ?? !1, r = I().regex(To, { message: U("pattern", { messageKey: "core.presets.tel" }) }), i = n ? r.min(1, { message: U("min_length", { min: 1 }) }) : r;
3481
- return Y(t, X({
3471
+ let t = K(e), n = t.required ?? !1, r = F().regex(To, { message: H("pattern", { messageKey: "core.presets.tel" }) }), i = n ? r.min(1, { message: H("min_length", { min: 1 }) }) : r;
3472
+ return J(t, Y({
3482
3473
  kind: "tel",
3483
3474
  label: t.label ?? "",
3484
3475
  required: n,
@@ -3488,12 +3479,12 @@ function mo(e) {
3488
3479
  format: "tel",
3489
3480
  inputType: "tel"
3490
3481
  },
3491
- zod: K(i, n)
3482
+ zod: G(i, n)
3492
3483
  }, t.multiple ?? !1));
3493
3484
  }
3494
3485
  function ho(e) {
3495
- let t = q(e), n = t.required ?? !1, r = n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I();
3496
- return Y(t, {
3486
+ let t = K(e), n = t.required ?? !1, r = n ? F().min(1, { message: H("min_length", { min: 1 }) }) : F();
3487
+ return J(t, {
3497
3488
  kind: "password",
3498
3489
  label: t.label ?? "",
3499
3490
  required: n,
@@ -3503,90 +3494,90 @@ function ho(e) {
3503
3494
  format: "password",
3504
3495
  inputType: "password"
3505
3496
  },
3506
- zod: K(r, n)
3497
+ zod: G(r, n)
3507
3498
  });
3508
3499
  }
3509
3500
  function go(e) {
3510
- return J({
3501
+ return q({
3511
3502
  key: e.key,
3512
3503
  label: e.label ?? e.key,
3513
3504
  multiple: !0,
3514
3505
  rules: { unique: ["name"] },
3515
3506
  view: { kind: "internalApiToken" },
3516
3507
  fields: [
3517
- Z({ key: "name" }),
3508
+ X({ key: "name" }),
3518
3509
  ho({ key: "token" }),
3519
- Z({ key: "createdAt" }),
3520
- Z({ key: "lastUsedAt" })
3510
+ X({ key: "createdAt" }),
3511
+ X({ key: "lastUsedAt" })
3521
3512
  ]
3522
3513
  });
3523
3514
  }
3524
3515
  function _o(e) {
3525
- return J({
3516
+ return q({
3526
3517
  key: e.key,
3527
3518
  label: e.label ?? e.key,
3528
3519
  multiple: !0,
3529
3520
  view: { kind: "internalOauthGrants" },
3530
3521
  fields: [
3531
- Z({ key: "clientName" }),
3532
- Z({ key: "createdAt" }),
3533
- Z({ key: "lastUsedAt" })
3522
+ X({ key: "clientName" }),
3523
+ X({ key: "createdAt" }),
3524
+ X({ key: "lastUsedAt" })
3534
3525
  ]
3535
3526
  });
3536
3527
  }
3537
3528
  var vo = /^[a-z0-9-]+$/;
3538
3529
  function yo(e) {
3539
- let t = q(e), n = t.required ?? !1, r = I().regex(vo, { message: U("pattern", { messageKey: "core.presets.slug" }) });
3540
- return Y(t, X({
3530
+ let t = K(e), n = t.required ?? !1, r = F().regex(vo, { message: H("pattern", { messageKey: "core.presets.slug" }) });
3531
+ return J(t, Y({
3541
3532
  kind: "slug",
3542
3533
  label: t.label ?? "",
3543
3534
  required: n,
3544
3535
  prim: "text",
3545
3536
  column: "text",
3546
3537
  hints: {},
3547
- zod: K(r, n)
3538
+ zod: G(r, n)
3548
3539
  }, t.multiple ?? !1));
3549
3540
  }
3550
3541
  var bo = /^#[0-9a-fA-F]{6}$/;
3551
3542
  function xo(e) {
3552
- let t = q(e), n = t.required ?? !1, r = I().regex(bo, { message: U("color_format") });
3553
- return Y(t, X({
3543
+ let t = K(e), n = t.required ?? !1, r = F().regex(bo, { message: H("color_format") });
3544
+ return J(t, Y({
3554
3545
  kind: "color",
3555
3546
  label: t.label ?? "",
3556
3547
  required: n,
3557
3548
  prim: "text",
3558
3549
  column: "text",
3559
3550
  hints: {},
3560
- zod: K(r, n)
3551
+ zod: G(r, n)
3561
3552
  }, t.multiple ?? !1));
3562
3553
  }
3563
3554
  function So(e) {
3564
- let t = q(e), n = t.required ?? !1, r = (n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I()).refine((e) => Do.has(e.toLowerCase()), { message: U("colorname") });
3565
- return Y(t, X({
3555
+ let t = K(e), n = t.required ?? !1, r = (n ? F().min(1, { message: H("min_length", { min: 1 }) }) : F()).refine((e) => Do.has(e.toLowerCase()), { message: H("colorname") });
3556
+ return J(t, Y({
3566
3557
  kind: "colorname",
3567
3558
  label: t.label ?? "",
3568
3559
  required: n,
3569
3560
  prim: "text",
3570
3561
  column: "text",
3571
3562
  hints: {},
3572
- zod: K(r, n)
3563
+ zod: G(r, n)
3573
3564
  }, t.multiple ?? !1));
3574
3565
  }
3575
3566
  function Co(e) {
3576
- let t = q(e), n = t.required ?? !1, r = n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I();
3577
- return Y(t, X({
3567
+ let t = K(e), n = t.required ?? !1, r = n ? F().min(1, { message: H("min_length", { min: 1 }) }) : F();
3568
+ return J(t, Y({
3578
3569
  kind: "title",
3579
3570
  label: t.label ?? "",
3580
3571
  required: n,
3581
3572
  prim: "text",
3582
3573
  column: "text",
3583
3574
  hints: {},
3584
- zod: K(r, n)
3575
+ zod: G(r, n)
3585
3576
  }, t.multiple ?? !1));
3586
3577
  }
3587
3578
  function wo(e) {
3588
- let t = q(e), n = t.required ?? !1, r = I().regex(Eo, { message: U("pattern", { messageKey: "core.presets.link" }) }), i = n ? r.min(1, { message: U("min_length", { min: 1 }) }) : r;
3589
- return Y(t, X({
3579
+ let t = K(e), n = t.required ?? !1, r = F().regex(Eo, { message: H("pattern", { messageKey: "core.presets.link" }) }), i = n ? r.min(1, { message: H("min_length", { min: 1 }) }) : r;
3580
+ return J(t, Y({
3590
3581
  kind: "link",
3591
3582
  label: t.label ?? "",
3592
3583
  required: n,
@@ -3596,13 +3587,13 @@ function wo(e) {
3596
3587
  format: "url",
3597
3588
  inputType: "url"
3598
3589
  },
3599
- zod: K(i, n)
3590
+ zod: G(i, n)
3600
3591
  }, t.multiple ?? !1));
3601
3592
  }
3602
3593
  var To = /^\+?[\d\s()-]{4,}$/, Eo = /^([a-z][a-z0-9+.-]*:\/\/\S+|[\w-]+(\.[\w-]+)+(:\d+)?(\/\S*)?)$/i, Do = /* @__PURE__ */ new Set(/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent".split("."));
3603
3594
  function Oo(e) {
3604
- let t = q(e), n = t.required ?? !1, r = I().min(1, { message: U("min_length", { min: 1 }) }), i = Array.isArray(e.options) ? e.options : [], a = typeof e.options == "string" ? e.options : null;
3605
- return Y(t, X({
3595
+ let t = K(e), n = t.required ?? !1, r = F().min(1, { message: H("min_length", { min: 1 }) }), i = Array.isArray(e.options) ? e.options : [], a = typeof e.options == "string" ? e.options : null;
3596
+ return J(t, Y({
3606
3597
  kind: "tag",
3607
3598
  label: t.label ?? "",
3608
3599
  required: n,
@@ -3612,7 +3603,7 @@ function Oo(e) {
3612
3603
  suggestions: i,
3613
3604
  ...a ? { source: a } : {}
3614
3605
  },
3615
- zod: K(r, n)
3606
+ zod: G(r, n)
3616
3607
  }, t.multiple ?? !1));
3617
3608
  }
3618
3609
  function ko(e) {
@@ -3622,8 +3613,8 @@ function ko(e) {
3622
3613
  });
3623
3614
  }
3624
3615
  function Ao(e) {
3625
- return Y(q(e), {
3626
- ...Q({
3616
+ return J(K(e), {
3617
+ ...Z({
3627
3618
  label: e.label,
3628
3619
  rules: e.rules,
3629
3620
  view: e.view
@@ -3633,12 +3624,12 @@ function Ao(e) {
3633
3624
  });
3634
3625
  }
3635
3626
  function jo(e) {
3636
- let t = e.rules?.language, n = q(e), r = Q({
3627
+ let t = e.rules?.language, n = K(e), r = Z({
3637
3628
  label: e.label,
3638
3629
  rules: e.rules,
3639
3630
  view: e.view
3640
3631
  });
3641
- return Y(n, {
3632
+ return J(n, {
3642
3633
  ...r,
3643
3634
  prim: "text",
3644
3635
  kind: "snippet",
@@ -3649,20 +3640,20 @@ function jo(e) {
3649
3640
  });
3650
3641
  }
3651
3642
  function Mo(e) {
3652
- let t = q(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = H(lo()).int({ message: U("int") }).min(1, { message: U("min", { min: 1 }) }).max(r, { message: U("max", { max: r }) });
3653
- return Y(t, X({
3643
+ let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = V(lo()).int({ message: H("int") }).min(1, { message: H("min", { min: 1 }) }).max(r, { message: H("max", { max: r }) });
3644
+ return J(t, Y({
3654
3645
  kind: "rating",
3655
3646
  label: t.label ?? "",
3656
3647
  required: n,
3657
3648
  prim: "number",
3658
3649
  column: "integer",
3659
3650
  hints: { max: r },
3660
- zod: K(i, n)
3651
+ zod: G(i, n)
3661
3652
  }, t.multiple ?? !1));
3662
3653
  }
3663
3654
  function No(e) {
3664
- let t = q(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = H(lo()).int({ message: U("int") }).min(0, { message: U("min", { min: 0 }) }).max(r, { message: U("max", { max: r }) });
3665
- return Y(t, X({
3655
+ let t = K(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = V(lo()).int({ message: H("int") }).min(0, { message: H("min", { min: 0 }) }).max(r, { message: H("max", { max: r }) });
3656
+ return J(t, Y({
3666
3657
  kind: "duration",
3667
3658
  label: t.label ?? "",
3668
3659
  required: n,
@@ -3672,16 +3663,16 @@ function No(e) {
3672
3663
  step: i,
3673
3664
  max: r
3674
3665
  },
3675
- zod: K(a, n)
3666
+ zod: G(a, n)
3676
3667
  }, t.multiple ?? !1));
3677
3668
  }
3678
3669
  function Po(e) {
3679
- let t = q(e), n = vs({
3670
+ let t = K(e), n = vs({
3680
3671
  label: e.label,
3681
3672
  rules: e.rules,
3682
3673
  view: e.view
3683
3674
  });
3684
- return Y(t, {
3675
+ return J(t, {
3685
3676
  ...n,
3686
3677
  kind: "reminder",
3687
3678
  hints: {
@@ -3713,7 +3704,7 @@ function Ro(e) {
3713
3704
  });
3714
3705
  }
3715
3706
  function zo(e) {
3716
- let t = q(e), n = _s({
3707
+ let t = K(e), n = _s({
3717
3708
  label: e.label,
3718
3709
  rules: {
3719
3710
  min: 1,
@@ -3721,7 +3712,7 @@ function zo(e) {
3721
3712
  },
3722
3713
  view: e.view
3723
3714
  });
3724
- return Y(t, {
3715
+ return J(t, {
3725
3716
  ...n,
3726
3717
  kind: "weight",
3727
3718
  hints: {
@@ -3731,12 +3722,12 @@ function zo(e) {
3731
3722
  });
3732
3723
  }
3733
3724
  function Bo(e) {
3734
- let t = q(e), n = t.required ?? !1, r = fo(B({
3735
- w: R().int().nonnegative(),
3736
- h: R().int().nonnegative(),
3737
- d: R().int().nonnegative()
3725
+ let t = K(e), n = t.required ?? !1, r = fo(z({
3726
+ w: L().int().nonnegative(),
3727
+ h: L().int().nonnegative(),
3728
+ d: L().int().nonnegative()
3738
3729
  }), "json");
3739
- return Y(t, {
3730
+ return J(t, {
3740
3731
  kind: "dimensions",
3741
3732
  label: t.label ?? "",
3742
3733
  required: n,
@@ -3748,7 +3739,7 @@ function Bo(e) {
3748
3739
  h: "integer",
3749
3740
  d: "integer"
3750
3741
  },
3751
- zod: K(r, n)
3742
+ zod: G(r, n)
3752
3743
  });
3753
3744
  }
3754
3745
  function Vo(e) {
@@ -4563,7 +4554,7 @@ Wo.default.getAllCodes().map((e) => ({
4563
4554
  //#endregion
4564
4555
  //#region ../sdk/src/fields.ts
4565
4556
  var Go = (e) => "key" in e && !("el" in e), Ko = (e) => "el" in e && e.el === "static", qo = (e) => "el" in e && e.el === "group", Jo = (e) => "el" in e && e.el === "divider", Yo = (e) => "el" in e && e.el === "info", Xo = (e) => "el" in e && e.el === "button";
4566
- function J(e) {
4557
+ function q(e) {
4567
4558
  let t = e.rules ?? {}, n = e.view ?? {};
4568
4559
  if (e.key) {
4569
4560
  if (!e.label) throw Error(`[field.group] storage group '${e.key}' requires a label`);
@@ -4585,7 +4576,7 @@ function J(e) {
4585
4576
  };
4586
4577
  }
4587
4578
  function Zo(e) {
4588
- return J({
4579
+ return q({
4589
4580
  label: e.label,
4590
4581
  icon: e.icon,
4591
4582
  fields: e.fields,
@@ -4593,7 +4584,7 @@ function Zo(e) {
4593
4584
  });
4594
4585
  }
4595
4586
  function Qo(e) {
4596
- return J({
4587
+ return q({
4597
4588
  key: e.key,
4598
4589
  label: e.label,
4599
4590
  icon: e.icon,
@@ -4608,7 +4599,7 @@ function $o(e) {
4608
4599
  let t = [];
4609
4600
  return e.fields.forEach((e, n) => {
4610
4601
  n > 0 && t.push(as()), t.push(...e);
4611
- }), J({
4602
+ }), q({
4612
4603
  label: e.label,
4613
4604
  icon: e.icon,
4614
4605
  fields: t,
@@ -4616,27 +4607,27 @@ function $o(e) {
4616
4607
  });
4617
4608
  }
4618
4609
  function es(e) {
4619
- return J({
4610
+ return q({
4620
4611
  key: e.key,
4621
4612
  label: e.label ?? e.key,
4622
4613
  required: e.required,
4623
4614
  view: { kind: "url" },
4624
4615
  fields: [
4625
- Z({ key: "scheme" }),
4626
- Z({ key: "username" }),
4627
- Z({ key: "password" }),
4628
- Z({ key: "host" }),
4616
+ X({ key: "scheme" }),
4617
+ X({ key: "username" }),
4618
+ X({ key: "password" }),
4619
+ X({ key: "host" }),
4629
4620
  _s({ key: "port" }),
4630
- Z({ key: "path" }),
4631
- Z({ key: "query" }),
4632
- Z({ key: "hash" })
4621
+ X({ key: "path" }),
4622
+ X({ key: "query" }),
4623
+ X({ key: "hash" })
4633
4624
  ]
4634
4625
  });
4635
4626
  }
4636
4627
  function ts(e) {
4637
4628
  if (e.fixed && e.by.type.prim !== "select") throw Error(`[field.keyed] fixed requires by=select (enumerated), got '${e.by.type.prim}'`);
4638
4629
  return {
4639
- ...(e.container ?? J)({
4630
+ ...(e.container ?? q)({
4640
4631
  label: e.label,
4641
4632
  icon: e.icon,
4642
4633
  fields: [e.by, ...e.fields]
@@ -4670,7 +4661,7 @@ function ss(e) {
4670
4661
  variant: e.variant
4671
4662
  };
4672
4663
  }
4673
- function Y(e, t) {
4664
+ function J(e, t) {
4674
4665
  let n = t;
4675
4666
  return e.noEditControl && (n = {
4676
4667
  ...n,
@@ -4728,42 +4719,42 @@ function ls(e) {
4728
4719
  }
4729
4720
  }
4730
4721
  function us(e) {
4731
- return z().superRefine((t, n) => {
4722
+ return R().superRefine((t, n) => {
4732
4723
  let r;
4733
4724
  if (Array.isArray(t)) r = t;
4734
4725
  else if (typeof t == "string") try {
4735
4726
  r = JSON.parse(t);
4736
4727
  } catch {
4737
4728
  n.addIssue({
4738
- code: V.custom,
4739
- message: U("json")
4729
+ code: B.custom,
4730
+ message: H("json")
4740
4731
  });
4741
4732
  return;
4742
4733
  }
4743
4734
  else {
4744
4735
  n.addIssue({
4745
- code: V.custom,
4746
- message: U("array")
4736
+ code: B.custom,
4737
+ message: H("array")
4747
4738
  });
4748
4739
  return;
4749
4740
  }
4750
4741
  if (!Array.isArray(r)) {
4751
4742
  n.addIssue({
4752
- code: V.custom,
4753
- message: U("array")
4743
+ code: B.custom,
4744
+ message: H("array")
4754
4745
  });
4755
4746
  return;
4756
4747
  }
4757
4748
  for (let t of r) if (!e.safeParse(t).success) {
4758
4749
  n.addIssue({
4759
- code: V.custom,
4760
- message: U("array_item")
4750
+ code: B.custom,
4751
+ message: H("array_item")
4761
4752
  });
4762
4753
  return;
4763
4754
  }
4764
4755
  });
4765
4756
  }
4766
- function X(e, t) {
4757
+ function Y(e, t) {
4767
4758
  if (!t) return e;
4768
4759
  let n = us(e.zod);
4769
4760
  return {
@@ -4774,12 +4765,12 @@ function X(e, t) {
4774
4765
  multiple: !0
4775
4766
  },
4776
4767
  json: !0,
4777
- zod: K(n, e.required)
4768
+ zod: G(n, e.required)
4778
4769
  };
4779
4770
  }
4780
- function Z(e) {
4781
- let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = r.min ?? +(t.required === !0), a = I(uo());
4782
- return i > 0 && (a = a.min(i, { message: U("min_length", { min: i }) })), r.max != null && (a = a.max(r.max, { message: U("max_length", { max: r.max }) })), r.pattern && (a = a.regex(new RegExp(r.pattern), { message: U("pattern", r.messageKey ? { messageKey: r.messageKey } : void 0) })), Y(t, X({
4771
+ function X(e) {
4772
+ let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = r.min ?? +(t.required === !0), a = F(uo());
4773
+ return i > 0 && (a = a.min(i, { message: H("min_length", { min: i }) })), r.max != null && (a = a.max(r.max, { message: H("max_length", { max: r.max }) })), r.pattern && (a = a.regex(new RegExp(r.pattern), { message: H("pattern", r.messageKey ? { messageKey: r.messageKey } : void 0) })), J(t, Y({
4783
4774
  kind: "text",
4784
4775
  label: t.label ?? "",
4785
4776
  required: n,
@@ -4789,32 +4780,32 @@ function Z(e) {
4789
4780
  minLength: r.min,
4790
4781
  maxLength: r.max
4791
4782
  },
4792
- zod: K(a, n)
4783
+ zod: G(a, n)
4793
4784
  }, t.multiple ?? !1));
4794
4785
  }
4795
4786
  function ds(e, t, n) {
4796
- let r = e.required ?? !1, i = I(uo());
4797
- return e.required === !0 && (i = i.min(1, { message: U("min_length", { min: 1 }) })), Y(e, {
4787
+ let r = e.required ?? !1, i = F(uo());
4788
+ return e.required === !0 && (i = i.min(1, { message: H("min_length", { min: 1 }) })), J(e, {
4798
4789
  kind: t,
4799
4790
  label: e.label ?? "",
4800
4791
  required: r,
4801
4792
  prim: "text",
4802
4793
  column: "text",
4803
4794
  hints: n && n.length ? { exts: n } : {},
4804
- zod: K(i, r),
4795
+ zod: G(i, r),
4805
4796
  ...e.default === void 0 ? {} : { default: e.default }
4806
4797
  });
4807
4798
  }
4808
4799
  function fs(e) {
4809
- return ds(q(e), "localDir");
4800
+ return ds(K(e), "localDir");
4810
4801
  }
4811
4802
  function ps(e) {
4812
- let t = q(e);
4803
+ let t = K(e);
4813
4804
  return ds(t, "localFile", t.exts);
4814
4805
  }
4815
- function Q(e) {
4816
- return Y(q(e), {
4817
- ...Z({
4806
+ function Z(e) {
4807
+ return J(K(e), {
4808
+ ...X({
4818
4809
  ...e,
4819
4810
  key: void 0,
4820
4811
  value: void 0
@@ -4824,8 +4815,8 @@ function Q(e) {
4824
4815
  });
4825
4816
  }
4826
4817
  function ms(e) {
4827
- return Y(q(e), {
4828
- ...Q({
4818
+ return J(K(e), {
4819
+ ...Z({
4829
4820
  ...e,
4830
4821
  key: void 0,
4831
4822
  value: void 0
@@ -4834,8 +4825,8 @@ function ms(e) {
4834
4825
  });
4835
4826
  }
4836
4827
  function hs(e) {
4837
- return Y(q(e), {
4838
- ...Q({
4828
+ return J(K(e), {
4829
+ ...Z({
4839
4830
  ...e,
4840
4831
  key: void 0,
4841
4832
  value: void 0
@@ -4844,8 +4835,8 @@ function hs(e) {
4844
4835
  });
4845
4836
  }
4846
4837
  function gs(e) {
4847
- let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = H(lo());
4848
- return r.min != null && (i = i.min(r.min, { message: U("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: U("max", { max: r.max }) })), Y(t, X({
4838
+ let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = V(lo());
4839
+ return r.min != null && (i = i.min(r.min, { message: H("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: H("max", { max: r.max }) })), J(t, Y({
4849
4840
  kind: "number",
4850
4841
  label: t.label ?? "",
4851
4842
  required: n,
@@ -4856,12 +4847,12 @@ function gs(e) {
4856
4847
  max: r.max,
4857
4848
  step: r.step ?? "any"
4858
4849
  },
4859
- zod: K(i, n)
4850
+ zod: G(i, n)
4860
4851
  }, t.multiple ?? !1));
4861
4852
  }
4862
4853
  function _s(e) {
4863
- let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = H(lo()).int({ message: U("int") });
4864
- return r.min != null && (i = i.min(r.min, { message: U("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: U("max", { max: r.max }) })), Y(t, X({
4854
+ let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = V(lo()).int({ message: H("int") });
4855
+ return r.min != null && (i = i.min(r.min, { message: H("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: H("max", { max: r.max }) })), J(t, Y({
4865
4856
  kind: "number",
4866
4857
  label: t.label ?? "",
4867
4858
  required: n,
@@ -4872,36 +4863,36 @@ function _s(e) {
4872
4863
  max: r.max,
4873
4864
  step: r.step ?? 1
4874
4865
  },
4875
- zod: K(i, n)
4866
+ zod: G(i, n)
4876
4867
  }, t.multiple ?? !1));
4877
4868
  }
4878
4869
  function vs(e) {
4879
- let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
4880
- return i = r === "year" ? I(W()).regex(/^\d{4}$/, { message: U("date_format") }).superRefine((e, n) => {
4870
+ let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
4871
+ return i = r === "year" ? F(U()).regex(/^\d{4}$/, { message: H("date_format") }).superRefine((e, n) => {
4881
4872
  t.min && e < t.min && n.addIssue({
4882
- code: V.custom,
4883
- message: U("date_min", { min: t.min })
4873
+ code: B.custom,
4874
+ message: H("date_min", { min: t.min })
4884
4875
  }), t.max && e > t.max && n.addIssue({
4885
- code: V.custom,
4886
- message: U("date_max", { max: t.max })
4876
+ code: B.custom,
4877
+ message: H("date_max", { max: t.max })
4887
4878
  });
4888
- }) : r === "month" ? I(W()).regex(/^\d{4}-\d{2}$/, { message: U("date_format") }).superRefine((e, n) => {
4879
+ }) : r === "month" ? F(U()).regex(/^\d{4}-\d{2}$/, { message: H("date_format") }).superRefine((e, n) => {
4889
4880
  t.min && e < t.min && n.addIssue({
4890
- code: V.custom,
4891
- message: U("date_min", { min: t.min })
4881
+ code: B.custom,
4882
+ message: H("date_min", { min: t.min })
4892
4883
  }), t.max && e > t.max && n.addIssue({
4893
- code: V.custom,
4894
- message: U("date_max", { max: t.max })
4884
+ code: B.custom,
4885
+ message: H("date_max", { max: t.max })
4895
4886
  });
4896
- }) : I(W()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: U("date_format") }).superRefine((e, n) => {
4887
+ }) : F(U()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: H("date_format") }).superRefine((e, n) => {
4897
4888
  t.min && e < cs(t.min) && n.addIssue({
4898
- code: V.custom,
4899
- message: U("date_min", { min: cs(t.min) })
4889
+ code: B.custom,
4890
+ message: H("date_min", { min: cs(t.min) })
4900
4891
  }), t.max && e > cs(t.max) && n.addIssue({
4901
- code: V.custom,
4902
- message: U("date_max", { max: cs(t.max) })
4892
+ code: B.custom,
4893
+ message: H("date_max", { max: cs(t.max) })
4903
4894
  });
4904
- }), Y(t, X({
4895
+ }), J(t, Y({
4905
4896
  kind: "date",
4906
4897
  label: t.label ?? "",
4907
4898
  required: n,
@@ -4912,44 +4903,44 @@ function vs(e) {
4912
4903
  max: t.max,
4913
4904
  granularity: r
4914
4905
  },
4915
- zod: K(i, n)
4906
+ zod: G(i, n)
4916
4907
  }, t.multiple ?? !1));
4917
4908
  }
4918
4909
  function ys(e) {
4919
- let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = I(W()).regex({
4910
+ let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = F(U()).regex({
4920
4911
  hour: /^([01]\d|2[0-3])$/,
4921
4912
  minute: /^([01]\d|2[0-3]):[0-5]\d$/,
4922
4913
  second: /^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$/
4923
- }[r], { message: U("time_format") });
4924
- return Y(t, X({
4914
+ }[r], { message: H("time_format") });
4915
+ return J(t, Y({
4925
4916
  kind: "time",
4926
4917
  label: t.label ?? "",
4927
4918
  required: n,
4928
4919
  prim: "time",
4929
4920
  column: "time",
4930
4921
  hints: { granularity: r },
4931
- zod: K(i, n)
4922
+ zod: G(i, n)
4932
4923
  }, t.multiple ?? !1));
4933
4924
  }
4934
4925
  function bs(e) {
4935
- let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = I(W()).regex({
4926
+ let t = K(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = F(U()).regex({
4936
4927
  hour: /^\d{4}-\d{2}-\d{2}T([01]\d|2[0-3])$/,
4937
4928
  minute: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,
4938
4929
  second: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/
4939
- }[r], { message: U("datetime_format") });
4940
- return Y(t, X({
4930
+ }[r], { message: H("datetime_format") });
4931
+ return J(t, Y({
4941
4932
  kind: "datetime",
4942
4933
  label: t.label ?? "",
4943
4934
  required: n,
4944
4935
  prim: "datetime",
4945
4936
  column: "datetime",
4946
4937
  hints: { granularity: r },
4947
- zod: K(i, n)
4938
+ zod: G(i, n)
4948
4939
  }, t.multiple ?? !1));
4949
4940
  }
4950
4941
  function xs(e) {
4951
- let t = q(e), n = $a((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ma().default(!1).nullable());
4952
- return Y(t, {
4942
+ let t = K(e), n = $a((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ma().default(!1).nullable());
4943
+ return J(t, {
4953
4944
  kind: "boolean",
4954
4945
  label: t.label ?? "",
4955
4946
  required: !1,
@@ -4960,24 +4951,24 @@ function xs(e) {
4960
4951
  });
4961
4952
  }
4962
4953
  function Ss(e) {
4963
- let t = q(e), n = t.required ?? !1, r = Oa([
4954
+ let t = K(e), n = t.required ?? !1, r = Oa([
4964
4955
  "yes",
4965
4956
  "no",
4966
4957
  "unknown"
4967
- ], { error: () => U("enum") });
4968
- return Y(t, {
4958
+ ], { error: () => H("enum") });
4959
+ return J(t, {
4969
4960
  kind: "triState",
4970
4961
  label: t.label ?? "",
4971
4962
  required: n,
4972
4963
  prim: "triState",
4973
4964
  column: "text",
4974
4965
  hints: {},
4975
- zod: K(r, n)
4966
+ zod: G(r, n)
4976
4967
  });
4977
4968
  }
4978
4969
  function Cs(e) {
4979
- let t = q(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options : [], a = i.length > 0 ? Oa(i.map((e) => e.value), { error: () => U("enum") }) : I(W());
4980
- return Y(t, X({
4970
+ let t = K(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options : [], a = i.length > 0 ? Oa(i.map((e) => e.value), { error: () => H("enum") }) : F(U());
4971
+ return J(t, Y({
4981
4972
  kind: "select",
4982
4973
  label: t.label ?? "",
4983
4974
  required: n,
@@ -4985,18 +4976,18 @@ function Cs(e) {
4985
4976
  column: "text",
4986
4977
  hints: { source: r },
4987
4978
  options: i,
4988
- zod: K(a, n)
4979
+ zod: G(a, n)
4989
4980
  }, t.multiple ?? !1));
4990
4981
  }
4991
4982
  function ws(e) {
4992
- let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
4993
- return i = r ? z().superRefine((e, t) => {
4994
- let n = G(e);
4983
+ let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
4984
+ return i = r ? R().superRefine((e, t) => {
4985
+ let n = W(e);
4995
4986
  (!Array.isArray(n) || !n.every((e) => Number.isInteger(e) && e > 0)) && t.addIssue({
4996
- code: V.custom,
4997
- message: U("int_list")
4987
+ code: B.custom,
4988
+ message: H("int_list")
4998
4989
  });
4999
- }) : H().int().positive({ message: U("int") }), Y(t, {
4990
+ }) : V().int().positive({ message: H("int") }), J(t, {
5000
4991
  kind: "relation",
5001
4992
  label: t.label ?? "",
5002
4993
  required: n,
@@ -5008,24 +4999,24 @@ function ws(e) {
5008
4999
  },
5009
5000
  relation: {
5010
5001
  library: e.options.library,
5011
- type: e.options.shelf
5002
+ shelf: e.options.shelf
5012
5003
  },
5013
5004
  ...r && { json: !0 },
5014
- zod: K(i, n)
5005
+ zod: G(i, n)
5015
5006
  });
5016
5007
  }
5017
5008
  function Ts(e) {
5018
- let t = q(e), n = t.required ?? !1, r = z().superRefine((e, t) => {
5009
+ let t = K(e), n = t.required ?? !1, r = R().superRefine((e, t) => {
5019
5010
  if (typeof e == "string") try {
5020
5011
  JSON.parse(e);
5021
5012
  } catch {
5022
5013
  t.addIssue({
5023
- code: V.custom,
5024
- message: U("json")
5014
+ code: B.custom,
5015
+ message: H("json")
5025
5016
  });
5026
5017
  }
5027
5018
  });
5028
- return Y(t, {
5019
+ return J(t, {
5029
5020
  kind: "json",
5030
5021
  label: t.label ?? "",
5031
5022
  required: n,
@@ -5033,20 +5024,20 @@ function Ts(e) {
5033
5024
  column: "text",
5034
5025
  hints: {},
5035
5026
  json: !0,
5036
- zod: K(r, n)
5027
+ zod: G(r, n)
5037
5028
  });
5038
5029
  }
5039
5030
  function Es(e) {
5040
- let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""];
5031
+ let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""];
5041
5032
  if (r) {
5042
5033
  let e = i.map((e, t) => xs({
5043
5034
  key: `check${t}`,
5044
5035
  label: e || "core.fields.check"
5045
5036
  }));
5046
- return e.push(Z({
5037
+ return e.push(X({
5047
5038
  key: "text",
5048
5039
  label: "core.fields.text"
5049
- })), J({
5040
+ })), q({
5050
5041
  key: t.key,
5051
5042
  label: t.label ?? t.key,
5052
5043
  multiple: !0,
@@ -5055,25 +5046,25 @@ function Es(e) {
5055
5046
  view: { kind: "checklist" }
5056
5047
  });
5057
5048
  }
5058
- let a = { text: I() }, o = { text: "text" };
5049
+ let a = { text: F() }, o = { text: "text" };
5059
5050
  i.forEach((e, t) => {
5060
5051
  a[`check${t}`] = ma(), o[`check${t}`] = "boolean";
5061
5052
  });
5062
- let s = B(a).passthrough(), c = z().superRefine((e, t) => {
5053
+ let s = z(a).passthrough(), c = R().superRefine((e, t) => {
5063
5054
  let n = typeof e == "string" ? ls(e) : e;
5064
5055
  if (n === void 0) {
5065
5056
  t.addIssue({
5066
- code: V.custom,
5067
- message: U("json")
5057
+ code: B.custom,
5058
+ message: H("json")
5068
5059
  });
5069
5060
  return;
5070
5061
  }
5071
5062
  s.safeParse(n).success || t.addIssue({
5072
- code: V.custom,
5073
- message: U("check_structure")
5063
+ code: B.custom,
5064
+ message: H("check_structure")
5074
5065
  });
5075
5066
  });
5076
- return Y(t, {
5067
+ return J(t, {
5077
5068
  kind: "check",
5078
5069
  label: t.label ?? "",
5079
5070
  required: n,
@@ -5081,21 +5072,21 @@ function Es(e) {
5081
5072
  column: "text",
5082
5073
  hints: { slots: i },
5083
5074
  columns: o,
5084
- zod: K(c, n)
5075
+ zod: G(c, n)
5085
5076
  });
5086
5077
  }
5087
5078
  function Ds(e) {
5088
- let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = ao((t.options, t.options)), a = R().finite();
5089
- r.step === 1 && (a = a.int({ message: U("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
5090
- let o = B({
5079
+ let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = ao((t.options, t.options)), a = L().finite();
5080
+ r.step === 1 && (a = a.int({ message: H("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
5081
+ let o = z({
5091
5082
  value: a,
5092
- unit: I().refine((e) => i.some((t) => t.value === e), { message: U("measured_unit") })
5093
- }), s = z().superRefine((e, t) => {
5094
- let n = G(e);
5083
+ unit: F().refine((e) => i.some((t) => t.value === e), { message: H("measured_unit") })
5084
+ }), s = R().superRefine((e, t) => {
5085
+ let n = W(e);
5095
5086
  if (typeof n == "string") {
5096
5087
  t.addIssue({
5097
- code: V.custom,
5098
- message: U("json")
5088
+ code: B.custom,
5089
+ message: H("json")
5099
5090
  });
5100
5091
  return;
5101
5092
  }
@@ -5109,12 +5100,12 @@ function Ds(e) {
5109
5100
  }
5110
5101
  });
5111
5102
  t.addIssue({
5112
- code: V.custom,
5113
- message: e ? e.message : U("measured_structure")
5103
+ code: B.custom,
5104
+ message: e ? e.message : H("measured_structure")
5114
5105
  });
5115
5106
  }
5116
5107
  });
5117
- return Y(t, {
5108
+ return J(t, {
5118
5109
  kind: "measured",
5119
5110
  label: t.label ?? "",
5120
5111
  required: n,
@@ -5130,30 +5121,30 @@ function Ds(e) {
5130
5121
  value: "real",
5131
5122
  unit: "text"
5132
5123
  },
5133
- zod: K(s, n)
5124
+ zod: G(s, n)
5134
5125
  });
5135
5126
  }
5136
5127
  function Os(e) {
5137
- let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = R().finite();
5128
+ let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = L().finite();
5138
5129
  r.min != null && (i = i.min(r.min)), r.max != null && (i = i.max(r.max));
5139
- let a = B({
5130
+ let a = z({
5140
5131
  value: i,
5141
- currency: I().refine(co, { message: U("money_currency") })
5142
- }), o = z().superRefine((e, t) => {
5143
- let n = G(e);
5132
+ currency: F().refine(co, { message: H("money_currency") })
5133
+ }), o = R().superRefine((e, t) => {
5134
+ let n = W(e);
5144
5135
  if (typeof n == "string") {
5145
5136
  t.addIssue({
5146
- code: V.custom,
5147
- message: U("json")
5137
+ code: B.custom,
5138
+ message: H("json")
5148
5139
  });
5149
5140
  return;
5150
5141
  }
5151
5142
  a.safeParse(n).success || t.addIssue({
5152
- code: V.custom,
5153
- message: U("money_structure")
5143
+ code: B.custom,
5144
+ message: H("money_structure")
5154
5145
  });
5155
5146
  });
5156
- return Y(t, {
5147
+ return J(t, {
5157
5148
  kind: "money",
5158
5149
  label: t.label ?? "",
5159
5150
  required: n,
@@ -5168,28 +5159,28 @@ function Os(e) {
5168
5159
  value: "real",
5169
5160
  currency: "text"
5170
5161
  },
5171
- zod: K(o, n)
5162
+ zod: G(o, n)
5172
5163
  });
5173
5164
  }
5174
5165
  function ks(e) {
5175
- let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = B({
5176
- code: I(),
5177
- lang: I()
5178
- }), a = z().superRefine((e, t) => {
5179
- let n = G(e);
5166
+ let t = K(e), n = t.required ?? !1, r = t.config ?? {}, i = z({
5167
+ code: F(),
5168
+ lang: F()
5169
+ }), a = R().superRefine((e, t) => {
5170
+ let n = W(e);
5180
5171
  if (typeof n == "string") {
5181
5172
  t.addIssue({
5182
- code: V.custom,
5183
- message: U("json")
5173
+ code: B.custom,
5174
+ message: H("json")
5184
5175
  });
5185
5176
  return;
5186
5177
  }
5187
5178
  i.safeParse(n).success || t.addIssue({
5188
- code: V.custom,
5189
- message: U("code_structure")
5179
+ code: B.custom,
5180
+ message: H("code_structure")
5190
5181
  });
5191
5182
  });
5192
- return Y(t, {
5183
+ return J(t, {
5193
5184
  kind: "code",
5194
5185
  label: t.label ?? "",
5195
5186
  required: n,
@@ -5200,36 +5191,36 @@ function ks(e) {
5200
5191
  code: "text",
5201
5192
  lang: "text"
5202
5193
  },
5203
- zod: K(a, n)
5194
+ zod: G(a, n)
5204
5195
  });
5205
5196
  }
5206
5197
  function As(e) {
5207
- let t = q(e), n = t.required ?? !1, r = B({
5208
- lat: R().min(-90).max(90),
5209
- lng: R().min(-180).max(180),
5210
- label: I().nullish()
5211
- }), i = z().superRefine((e, t) => {
5212
- let i = G(e), a = i;
5198
+ let t = K(e), n = t.required ?? !1, r = z({
5199
+ lat: L().min(-90).max(90),
5200
+ lng: L().min(-180).max(180),
5201
+ label: F().nullish()
5202
+ }), i = R().superRefine((e, t) => {
5203
+ let i = W(e), a = i;
5213
5204
  if (a == null || typeof a == "object" && a.lat == null && a.lng == null) {
5214
5205
  n && t.addIssue({
5215
- code: V.custom,
5216
- message: U("required")
5206
+ code: B.custom,
5207
+ message: H("required")
5217
5208
  });
5218
5209
  return;
5219
5210
  }
5220
5211
  if (typeof i == "string") {
5221
5212
  t.addIssue({
5222
- code: V.custom,
5223
- message: U("json")
5213
+ code: B.custom,
5214
+ message: H("json")
5224
5215
  });
5225
5216
  return;
5226
5217
  }
5227
5218
  r.safeParse(i).success || t.addIssue({
5228
- code: V.custom,
5229
- message: U("geo_structure")
5219
+ code: B.custom,
5220
+ message: H("geo_structure")
5230
5221
  });
5231
5222
  });
5232
- return Y(t, {
5223
+ return J(t, {
5233
5224
  kind: "geo",
5234
5225
  label: t.label ?? "",
5235
5226
  required: n,
@@ -5241,7 +5232,7 @@ function As(e) {
5241
5232
  lng: "real",
5242
5233
  label: "text"
5243
5234
  },
5244
- zod: K(i, n)
5235
+ zod: G(i, n)
5245
5236
  });
5246
5237
  }
5247
5238
  function js(e) {
@@ -5265,8 +5256,8 @@ function js(e) {
5265
5256
  };
5266
5257
  }
5267
5258
  function Ms(e) {
5268
- let t = q(e);
5269
- return Y(t, {
5259
+ let t = K(e);
5260
+ return J(t, {
5270
5261
  kind: "lookup",
5271
5262
  label: t.label ?? "",
5272
5263
  required: !1,
@@ -5282,7 +5273,7 @@ function Ms(e) {
5282
5273
  });
5283
5274
  }
5284
5275
  function Ns(e) {
5285
- let t = q(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? bs({
5276
+ let t = K(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? bs({
5286
5277
  key: e,
5287
5278
  label: t
5288
5279
  }) : vs({
@@ -5290,7 +5281,7 @@ function Ns(e) {
5290
5281
  label: t,
5291
5282
  rules: { granularity: n === "month" ? "month" : "day" }
5292
5283
  });
5293
- if (i) return J({
5284
+ if (i) return q({
5294
5285
  key: t.key,
5295
5286
  label: t.label ?? t.key,
5296
5287
  multiple: !0,
@@ -5302,7 +5293,7 @@ function Ns(e) {
5302
5293
  until: s.type
5303
5294
  }, l = {};
5304
5295
  for (let [e, t] of Object.entries(c)) l[e] = t.zod.optional();
5305
- let u = B(l).passthrough();
5296
+ let u = z(l).passthrough();
5306
5297
  u = u.superRefine((e, t) => {
5307
5298
  if (e == null) return;
5308
5299
  let n = e;
@@ -5315,19 +5306,19 @@ function Ns(e) {
5315
5306
  for (let e of r) {
5316
5307
  let n = e;
5317
5308
  n?.from && n?.until && String(n.from) > String(n.until) && t.addIssue({
5318
- code: V.custom,
5319
- message: U("period_order")
5309
+ code: B.custom,
5310
+ message: H("period_order")
5320
5311
  });
5321
5312
  }
5322
5313
  });
5323
5314
  let d = n === "datetime" ? "datetime" : n === "day" ? "date" : "text", f = [{
5324
5315
  key: "from",
5325
- ...Qs(o.type)
5316
+ ...tc(o.type)
5326
5317
  }, {
5327
5318
  key: "until",
5328
- ...Qs(s.type)
5319
+ ...tc(s.type)
5329
5320
  }];
5330
- return Y(t, {
5321
+ return J(t, {
5331
5322
  kind: "period",
5332
5323
  label: t.label ?? "",
5333
5324
  required: r,
@@ -5343,34 +5334,54 @@ function Ns(e) {
5343
5334
  from: d,
5344
5335
  until: d
5345
5336
  },
5346
- zod: K(u, r)
5337
+ zod: G(u, r)
5347
5338
  });
5348
5339
  }
5349
- function $(e, t) {
5350
- let n = q(t), r = n.required ?? !1, i = n.multiple ?? !1, a = B({
5351
- name: I().min(1),
5352
- mime: I().optional(),
5353
- size: R().optional()
5354
- }), o = z().superRefine((e, t) => {
5340
+ var Ps = /* @__PURE__ */ new Set([
5341
+ "name",
5342
+ "mime",
5343
+ "size"
5344
+ ]), Fs = [
5345
+ "url",
5346
+ "src",
5347
+ "href",
5348
+ "link"
5349
+ ];
5350
+ function Is(e) {
5351
+ if (typeof e != "object" || !e || Array.isArray(e)) return "file_structure";
5352
+ let t = e;
5353
+ if (Fs.some((e) => e in t)) return "file_remote_url";
5354
+ let n = t.name;
5355
+ if (typeof n != "string" || n === "") return "file_structure";
5356
+ if (n.includes("://") || n.startsWith("//")) return "file_remote_url";
5357
+ if (/[\\/]/.test(n) || n.includes("..")) return "file_name";
5358
+ for (let e of Object.keys(t)) if (!Ps.has(e)) return "file_unknown_key";
5359
+ return t.mime !== void 0 && typeof t.mime != "string" || t.size !== void 0 && typeof t.size != "number" ? "file_structure" : null;
5360
+ }
5361
+ function Q(e, t) {
5362
+ let n = K(t), r = n.required ?? !1, i = n.multiple ?? !1, a = R().superRefine((e, t) => {
5355
5363
  if (typeof e == "string") try {
5356
5364
  JSON.parse(e);
5357
5365
  } catch {
5358
5366
  t.addIssue({
5359
- code: V.custom,
5360
- message: U("json")
5367
+ code: B.custom,
5368
+ message: H("json")
5361
5369
  });
5362
5370
  return;
5363
5371
  }
5364
- let n = G(e), r = Array.isArray(n) ? n : [n];
5365
- for (let e of r) if (!a.safeParse(e).success) {
5366
- t.addIssue({
5367
- code: V.custom,
5368
- message: U("file_structure")
5369
- });
5370
- return;
5372
+ let n = W(e), r = Array.isArray(n) ? n : [n];
5373
+ for (let e of r) {
5374
+ let n = Is(e);
5375
+ if (n) {
5376
+ t.addIssue({
5377
+ code: B.custom,
5378
+ message: H(n)
5379
+ });
5380
+ return;
5381
+ }
5371
5382
  }
5372
5383
  });
5373
- return Y(n, {
5384
+ return J(n, {
5374
5385
  kind: e,
5375
5386
  label: n.label ?? "",
5376
5387
  required: r,
@@ -5378,46 +5389,46 @@ function $(e, t) {
5378
5389
  column: "text",
5379
5390
  hints: i ? { multiple: !0 } : {},
5380
5391
  json: !0,
5381
- zod: K(o, r)
5392
+ zod: G(a, r)
5382
5393
  });
5383
5394
  }
5384
- function Ps(e) {
5385
- return $("file", e);
5386
- }
5387
- function Fs(e) {
5388
- return $("document", e);
5389
- }
5390
- function Is(e) {
5391
- return $("audio", e);
5392
- }
5393
5395
  function Ls(e) {
5394
- return $("video", e);
5396
+ return Q("file", e);
5395
5397
  }
5396
5398
  function Rs(e) {
5397
- return $("image", e);
5399
+ return Q("document", e);
5398
5400
  }
5399
5401
  function zs(e) {
5400
- return $("media", e);
5402
+ return Q("audio", e);
5401
5403
  }
5402
5404
  function Bs(e) {
5403
- return $("avatar", e);
5405
+ return Q("video", e);
5404
5406
  }
5405
5407
  function Vs(e) {
5406
- return $("cover", e);
5408
+ return Q("image", e);
5407
5409
  }
5408
5410
  function Hs(e) {
5409
- return $("poster", e);
5411
+ return Q("media", e);
5410
5412
  }
5411
5413
  function Us(e) {
5412
- let t = q(e), n = {
5413
- ...t.option ?? Z({ label: "" }),
5414
+ return Q("avatar", e);
5415
+ }
5416
+ function Ws(e) {
5417
+ return Q("cover", e);
5418
+ }
5419
+ function Gs(e) {
5420
+ return Q("poster", e);
5421
+ }
5422
+ function Ks(e) {
5423
+ let t = K(e), n = {
5424
+ ...t.option ?? X({ label: "" }),
5414
5425
  label: t.valueLabel ?? ""
5415
5426
  };
5416
5427
  return ts({
5417
5428
  key: t.key,
5418
5429
  label: t.label ?? "",
5419
5430
  container: t.container ?? Qo,
5420
- by: Z({
5431
+ by: X({
5421
5432
  key: "key",
5422
5433
  label: t.keyLabel ?? ""
5423
5434
  }),
@@ -5428,36 +5439,36 @@ function Us(e) {
5428
5439
  required: t.required
5429
5440
  });
5430
5441
  }
5431
- function Ws(e, t, n) {
5432
- let r = q(n), i = r.required ?? !1, a = r.config ?? {}, o = R().finite();
5433
- t && (o = o.int({ message: U("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
5434
- let s = B({
5442
+ function qs(e, t, n) {
5443
+ let r = K(n), i = r.required ?? !1, a = r.config ?? {}, o = L().finite();
5444
+ t && (o = o.int({ message: H("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
5445
+ let s = z({
5435
5446
  from: o,
5436
5447
  to: o
5437
- }), c = z().superRefine((e, t) => {
5448
+ }), c = R().superRefine((e, t) => {
5438
5449
  if (typeof e == "string") try {
5439
5450
  JSON.parse(e);
5440
5451
  } catch {
5441
5452
  t.addIssue({
5442
- code: V.custom,
5443
- message: U("json")
5453
+ code: B.custom,
5454
+ message: H("json")
5444
5455
  });
5445
5456
  return;
5446
5457
  }
5447
- let n = s.safeParse(G(e));
5458
+ let n = s.safeParse(W(e));
5448
5459
  if (!n.success) {
5449
5460
  t.addIssue({
5450
- code: V.custom,
5451
- message: U("range_structure")
5461
+ code: B.custom,
5462
+ message: H("range_structure")
5452
5463
  });
5453
5464
  return;
5454
5465
  }
5455
5466
  n.data.from > n.data.to && t.addIssue({
5456
- code: V.custom,
5457
- message: U("range_order")
5467
+ code: B.custom,
5468
+ message: H("range_order")
5458
5469
  });
5459
5470
  });
5460
- return Y(r, {
5471
+ return J(r, {
5461
5472
  kind: e,
5462
5473
  label: r.label ?? "",
5463
5474
  required: i,
@@ -5475,33 +5486,33 @@ function Ws(e, t, n) {
5475
5486
  from: "real",
5476
5487
  to: "real"
5477
5488
  },
5478
- zod: K(c, i)
5489
+ zod: G(c, i)
5479
5490
  });
5480
5491
  }
5481
- function Gs(e) {
5482
- return Ws("numberRange", !0, e);
5492
+ function Js(e) {
5493
+ return qs("numberRange", !0, e);
5483
5494
  }
5484
- function Ks(e) {
5485
- return Ws("realRange", !1, e);
5486
- }
5487
- function qs(e) {
5488
- let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i = B({
5489
- url: I().min(1),
5490
- title: I().optional(),
5491
- description: I().optional(),
5492
- thumbnail: I().optional(),
5493
- provider: I().optional(),
5495
+ function Ys(e) {
5496
+ return qs("realRange", !1, e);
5497
+ }
5498
+ function Xs(e) {
5499
+ let t = K(e), n = t.required ?? !1, r = t.multiple ?? !1, i = z({
5500
+ url: F().min(1),
5501
+ title: F().optional(),
5502
+ description: F().optional(),
5503
+ thumbnail: F().optional(),
5504
+ provider: F().optional(),
5494
5505
  type: Oa([
5495
5506
  "video",
5496
5507
  "rich",
5497
5508
  "photo",
5498
5509
  "link"
5499
5510
  ]).optional(),
5500
- html: I().optional(),
5501
- width: R().optional(),
5502
- height: R().optional()
5511
+ html: F().optional(),
5512
+ width: L().optional(),
5513
+ height: L().optional()
5503
5514
  }), a = fo(r ? xa(i) : wa([i, xa(i).max(1)]), "embed_structure");
5504
- return Y(t, {
5515
+ return J(t, {
5505
5516
  kind: "embed",
5506
5517
  label: t.label ?? "",
5507
5518
  required: n,
@@ -5509,12 +5520,12 @@ function qs(e) {
5509
5520
  column: "text",
5510
5521
  hints: r ? { multiple: !0 } : {},
5511
5522
  json: !0,
5512
- zod: K(a, n)
5523
+ zod: G(a, n)
5513
5524
  });
5514
5525
  }
5515
- var Js = {
5516
- string: Z,
5517
- text: Q,
5526
+ var Zs = {
5527
+ string: X,
5528
+ text: Z,
5518
5529
  i18n: ms,
5519
5530
  smallText: hs,
5520
5531
  localDir: fs,
@@ -5537,20 +5548,20 @@ var Js = {
5537
5548
  lookup: Ms,
5538
5549
  perWeekday: js,
5539
5550
  period: Ns,
5540
- file: Ps,
5541
- document: Fs,
5542
- audio: Is,
5543
- video: Ls,
5544
- image: Rs,
5545
- media: zs,
5546
- avatar: Bs,
5547
- cover: Vs,
5548
- poster: Hs,
5549
- embed: qs,
5550
- keyValue: Us,
5551
- numberRange: Gs,
5552
- realRange: Ks,
5553
- group: J,
5551
+ file: Ls,
5552
+ document: Rs,
5553
+ audio: zs,
5554
+ video: Bs,
5555
+ image: Vs,
5556
+ media: Hs,
5557
+ avatar: Us,
5558
+ cover: Ws,
5559
+ poster: Gs,
5560
+ embed: Xs,
5561
+ keyValue: Ks,
5562
+ numberRange: Js,
5563
+ realRange: Ys,
5564
+ group: q,
5554
5565
  row: Zo,
5555
5566
  table: Qo,
5556
5567
  sheet: $o,
@@ -5561,19 +5572,19 @@ var Js = {
5561
5572
  info: os,
5562
5573
  button: ss
5563
5574
  };
5564
- function Ys(e) {
5565
- for (let t of Object.keys(e)) if (t in Js) throw Error(`[f] preset '${t}' overrides a primitive`);
5575
+ function Qs(e) {
5576
+ for (let t of Object.keys(e)) if (t in Zs) throw Error(`[f] preset '${t}' overrides a primitive`);
5566
5577
  return {
5567
- ...Js,
5578
+ ...Zs,
5568
5579
  ...e
5569
5580
  };
5570
5581
  }
5571
- var Xs, Zs = () => Xs ??= Ys(Ho);
5582
+ var $s, ec = () => $s ??= Qs(Ho);
5572
5583
  new Proxy({}, {
5573
- get: (e, t) => Zs()[t],
5574
- has: (e, t) => t in Zs()
5584
+ get: (e, t) => ec()[t],
5585
+ has: (e, t) => t in ec()
5575
5586
  });
5576
- function Qs(e) {
5587
+ function tc(e) {
5577
5588
  let { kind: t, label: n, required: r, prim: i, hints: a, options: o, relation: s, virtual: c, json: l, hidden: u } = e;
5578
5589
  return {
5579
5590
  kind: t,
@@ -5590,8 +5601,8 @@ function Qs(e) {
5590
5601
  }
5591
5602
  //#endregion
5592
5603
  //#region ../web-sdk/src/registry.ts
5593
- var $s = {};
5594
- function ec(e) {
5604
+ var nc = {};
5605
+ function rc(e) {
5595
5606
  if (!e.kinds.length) throw Error("[render] renderer without kinds");
5596
5607
  let t = {
5597
5608
  kinds: e.kinds,
@@ -5602,14 +5613,14 @@ function ec(e) {
5602
5613
  keys: e.keys
5603
5614
  };
5604
5615
  for (let n of e.kinds) {
5605
- if ($s[n]) throw Error(`[render] kind '${n}' already registered`);
5606
- $s[n] = t;
5616
+ if (nc[n]) throw Error(`[render] kind '${n}' already registered`);
5617
+ nc[n] = t;
5607
5618
  }
5608
5619
  }
5609
- function tc(e) {
5610
- return $s[e.kind];
5620
+ function ic(e) {
5621
+ return nc[e.kind];
5611
5622
  }
5612
- function nc(e) {
5623
+ function ac(e) {
5613
5624
  if (Go(e) || Ko(e)) return e.type.kind;
5614
5625
  if (qo(e)) return e.kind ?? (ns(e) ? "collection" : rs(e) ? "embedded" : "group");
5615
5626
  if (Xo(e)) return "button";
@@ -5617,17 +5628,75 @@ function nc(e) {
5617
5628
  if (Yo(e)) return "info";
5618
5629
  throw Error("[render] unknown layout element");
5619
5630
  }
5620
- function rc(e) {
5621
- let t = tc(e)?.layout;
5631
+ function oc(e) {
5632
+ let t = ic(e)?.layout;
5622
5633
  return typeof t == "function" ? t(e) : t ?? "scalar";
5623
5634
  }
5624
- var ic = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", ac = {};
5625
- function oc(e, t) {
5626
- if (ac[e]) throw Error(`[template] '${e}' already registered`);
5627
- ac[e] = t;
5635
+ var sc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", cc = {};
5636
+ function lc(e, t) {
5637
+ if (cc[e]) throw Error(`[template] '${e}' already registered`);
5638
+ cc[e] = t;
5639
+ }
5640
+ function uc(e) {
5641
+ return cc[e];
5642
+ }
5643
+ //#endregion
5644
+ //#region ../web-sdk/src/list-view.ts
5645
+ var dc = {};
5646
+ function fc(e) {
5647
+ if (!e.kind) throw Error("[list-view] view without kind");
5648
+ if (dc[e.kind]) throw Error(`[list-view] kind '${e.kind}' already registered`);
5649
+ dc[e.kind] = e;
5650
+ }
5651
+ function pc(e) {
5652
+ return dc[e];
5653
+ }
5654
+ //#endregion
5655
+ //#region ../web-sdk/src/plugin-ui.ts
5656
+ function mc(e) {
5657
+ return e;
5658
+ }
5659
+ var $ = /* @__PURE__ */ new Map(), hc = /* @__PURE__ */ new Map(), gc = /* @__PURE__ */ new Map();
5660
+ function _c(e) {
5661
+ for (let t of e.slots ?? []) {
5662
+ let e = $.get(t.slot);
5663
+ e || (e = /* @__PURE__ */ new Map(), $.set(t.slot, e)), e.set(t.id, t);
5664
+ }
5665
+ for (let t of e.routes ?? []) hc.set(t.path, t);
5666
+ for (let t of e.nav ?? []) gc.set(t.to, t);
5667
+ }
5668
+ function vc(e) {
5669
+ return (t, n) => (t.order ?? 0) - (n.order ?? 0) || e(t).localeCompare(e(n));
5670
+ }
5671
+ function yc(e) {
5672
+ return [...$.get(e)?.values() ?? []].sort(vc((e) => e.id));
5673
+ }
5674
+ function bc() {
5675
+ return [...hc.values()];
5676
+ }
5677
+ function xc() {
5678
+ return [...gc.values()].sort(vc((e) => e.to));
5679
+ }
5680
+ function Sc() {
5681
+ $.clear(), hc.clear(), gc.clear();
5682
+ }
5683
+ //#endregion
5684
+ //#region ../web-sdk/src/site-links.ts
5685
+ var Cc = [], wc = [];
5686
+ function Tc(e) {
5687
+ Cc = [...e];
5688
+ }
5689
+ function Ec() {
5690
+ return [...Cc];
5691
+ }
5692
+ function Dc(e) {
5693
+ wc = [...e];
5694
+ }
5695
+ function Oc() {
5696
+ return [...wc];
5628
5697
  }
5629
- function sc(e) {
5630
- return ac[e];
5698
+ function kc() {
5699
+ Cc = [], wc = [];
5631
5700
  }
5632
5701
  //#endregion
5633
- export { n as defineShelfUI, nc as elementKind, rc as fieldLayout, ic as multiBlock, ec as registerRenderer, oc as registerTemplate, $s as rendererRegistry, tc as resolveRenderer, sc as resolveTemplate };
5702
+ export { _c as applyAppUI, mc as definePluginUI, ac as elementKind, oc as fieldLayout, xc as getPluginNav, bc as getPluginRoutes, Ec as getSiteLinks, Oc as getSiteShelves, yc as getSlotEntries, dc as listViewRegistry, sc as multiBlock, fc as registerListView, rc as registerRenderer, Tc as registerSiteLinks, Dc as registerSiteShelves, lc as registerTemplate, nc as rendererRegistry, Sc as resetAppUI, kc as resetSiteLinks, pc as resolveListView, ic as resolveRenderer, uc as resolveTemplate };