@evolver-fi/evolver-basics-admin-components 1.0.0 → 8.2.2-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/dist/EnumSelectFilter-DDWIjz5i.js +35 -0
  2. package/dist/EnumSelectFilter-DDWIjz5i.js.map +1 -0
  3. package/dist/FilterLink-OxQDWR5G.js +29 -0
  4. package/dist/FilterLink-OxQDWR5G.js.map +1 -0
  5. package/dist/Table-IciQttr3.js +79 -0
  6. package/dist/Table-IciQttr3.js.map +1 -0
  7. package/dist/TableMetadataDisplay-BM61EulC.js +49 -0
  8. package/dist/TableMetadataDisplay-BM61EulC.js.map +1 -0
  9. package/dist/TextFilter-CLOKjiSd.js +54 -0
  10. package/dist/TextFilter-CLOKjiSd.js.map +1 -0
  11. package/dist/api-CMiZYkfc.js +32 -0
  12. package/dist/api-CMiZYkfc.js.map +1 -0
  13. package/dist/breadcrumbs/index.js +2 -5
  14. package/dist/breadcrumbs-BAwnKRxL.js +32 -0
  15. package/dist/breadcrumbs-BAwnKRxL.js.map +1 -0
  16. package/dist/breadcrumbs.css +1 -0
  17. package/dist/client/index.js +330 -369
  18. package/dist/client/index.js.map +1 -1
  19. package/dist/configuration-values/index.js +2 -13
  20. package/dist/configuration-values-CjOfmPRq.js +3464 -0
  21. package/dist/configuration-values-CjOfmPRq.js.map +1 -0
  22. package/dist/control-values/index.js +2 -10
  23. package/dist/control-values-CzQOB4WJ.js +144 -0
  24. package/dist/control-values-CzQOB4WJ.js.map +1 -0
  25. package/dist/exhaustiveValues-BYWkg9M1.js +6 -0
  26. package/dist/exhaustiveValues-BYWkg9M1.js.map +1 -0
  27. package/dist/filter/index.js +4 -10
  28. package/dist/formData-BO275hRZ.js +43 -0
  29. package/dist/formData-BO275hRZ.js.map +1 -0
  30. package/dist/jwt-tokens/index.js +2 -9
  31. package/dist/jwt-tokens-DnKsHei4.js +71 -0
  32. package/dist/jwt-tokens-DnKsHei4.js.map +1 -0
  33. package/dist/main/index.js +17 -87
  34. package/dist/message-log/index.js +2 -12
  35. package/dist/message-log-BdrJtbsP.js +337 -0
  36. package/dist/message-log-BdrJtbsP.js.map +1 -0
  37. package/dist/message-sending/index.js +2 -10
  38. package/dist/message-sending-dvTw2fFm.js +181 -0
  39. package/dist/message-sending-dvTw2fFm.js.map +1 -0
  40. package/dist/message-targets/index.js +2 -15
  41. package/dist/message-targets-8EppIJde.js +406 -0
  42. package/dist/message-targets-8EppIJde.js.map +1 -0
  43. package/dist/pagination-C4QUYRMf.js +20 -0
  44. package/dist/pagination-C4QUYRMf.js.map +1 -0
  45. package/dist/scheduled-tasks/index.js +2 -16
  46. package/dist/scheduled-tasks-BtBnBrE7.js +647 -0
  47. package/dist/scheduled-tasks-BtBnBrE7.js.map +1 -0
  48. package/dist/schemas-D-8_LuND.js +2986 -0
  49. package/dist/schemas-D-8_LuND.js.map +1 -0
  50. package/dist/table/index.js +2 -6
  51. package/dist/triggerables/index.js +3 -11
  52. package/dist/triggerables-DgrIeQMi.js +51 -0
  53. package/dist/triggerables-DgrIeQMi.js.map +1 -0
  54. package/dist/types/breadcrumbs.d.ts +1 -0
  55. package/dist/types/client/index.d.ts +5 -0
  56. package/dist/types/client.d.ts +1 -0
  57. package/dist/types/common/exhaustiveValues.d.ts +5 -0
  58. package/dist/types/common/formData.d.ts +20 -0
  59. package/dist/types/common/format.d.ts +1 -0
  60. package/dist/types/common/pagination.d.ts +8 -0
  61. package/dist/types/common/types.d.ts +27 -0
  62. package/dist/types/common/validation.d.ts +5 -0
  63. package/dist/types/components/breadcrumbs/BreadCrumbs.d.ts +10 -0
  64. package/dist/types/components/breadcrumbs/index.d.ts +1 -0
  65. package/dist/types/components/filter/EnumSelectFilter.d.ts +7 -0
  66. package/dist/types/components/filter/FilterHelperTexts.d.ts +4 -0
  67. package/dist/types/components/filter/FilterLink.d.ts +2 -0
  68. package/dist/types/components/filter/TextFilter.d.ts +2 -0
  69. package/dist/types/components/filter/createEnumSelectFilter.d.ts +5 -0
  70. package/dist/types/components/filter/index.d.ts +5 -0
  71. package/dist/types/components/filter/types.d.ts +20 -0
  72. package/dist/types/components/metadata/TableMetadataDisplay.d.ts +2 -0
  73. package/dist/types/components/metadata/utils.d.ts +1 -0
  74. package/dist/types/components/table/Pagination.d.ts +7 -0
  75. package/dist/types/components/table/Table.d.ts +3 -0
  76. package/dist/types/components/table/index.d.ts +3 -0
  77. package/dist/types/components/table/types.d.ts +48 -0
  78. package/dist/types/configuration-values.d.ts +1 -0
  79. package/dist/types/control-values.d.ts +1 -0
  80. package/dist/types/filter.d.ts +1 -0
  81. package/dist/types/index.d.ts +11 -0
  82. package/dist/types/jwt-tokens.d.ts +1 -0
  83. package/dist/types/main.d.ts +1 -0
  84. package/dist/types/message-log.d.ts +1 -0
  85. package/dist/types/message-sending.d.ts +1 -0
  86. package/dist/types/message-targets.d.ts +1 -0
  87. package/dist/types/routes/configuration-values/ConfigurationValueFormRoute.d.ts +2 -0
  88. package/dist/types/routes/configuration-values/ConfigurationValuesRoute.d.ts +2 -0
  89. package/dist/types/routes/configuration-values/action.d.ts +8 -0
  90. package/dist/types/routes/configuration-values/api.d.ts +53 -0
  91. package/dist/types/routes/configuration-values/configurationValueColumns.d.ts +4 -0
  92. package/dist/types/routes/configuration-values/index.d.ts +5 -0
  93. package/dist/types/routes/configuration-values/loader.d.ts +52 -0
  94. package/dist/types/routes/control-values/ControlValuesRoute.d.ts +2 -0
  95. package/dist/types/routes/control-values/SingleControlValueRoute.d.ts +2 -0
  96. package/dist/types/routes/control-values/api.d.ts +43 -0
  97. package/dist/types/routes/control-values/controlValueColumns.d.ts +4 -0
  98. package/dist/types/routes/control-values/index.d.ts +4 -0
  99. package/dist/types/routes/control-values/loader.d.ts +43 -0
  100. package/dist/types/routes/jwt-tokens/JwtTokensRoute.d.ts +6 -0
  101. package/dist/types/routes/jwt-tokens/api.d.ts +41 -0
  102. package/dist/types/routes/jwt-tokens/index.d.ts +3 -0
  103. package/dist/types/routes/jwt-tokens/loader.d.ts +35 -0
  104. package/dist/types/routes/message-log/LogBodyLink.d.ts +6 -0
  105. package/dist/types/routes/message-log/MessageLogRoute.d.ts +2 -0
  106. package/dist/types/routes/message-log/SingleLogMessageRoute.d.ts +6 -0
  107. package/dist/types/routes/message-log/api.d.ts +88 -0
  108. package/dist/types/routes/message-log/index.d.ts +4 -0
  109. package/dist/types/routes/message-log/loader.d.ts +53 -0
  110. package/dist/types/routes/message-log/messageLogColumns.d.ts +3 -0
  111. package/dist/types/routes/message-log/types.d.ts +37 -0
  112. package/dist/types/routes/message-sending/MessageSendingRoute.d.ts +2 -0
  113. package/dist/types/routes/message-sending/SingleMessageRoute.d.ts +2 -0
  114. package/dist/types/routes/message-sending/api.d.ts +92 -0
  115. package/dist/types/routes/message-sending/index.d.ts +4 -0
  116. package/dist/types/routes/message-sending/loader.d.ts +34 -0
  117. package/dist/types/routes/message-sending/messageSendingColumns.d.ts +3 -0
  118. package/dist/types/routes/message-sending/types.d.ts +43 -0
  119. package/dist/types/routes/message-targets/MessageTargetFormRoute.d.ts +2 -0
  120. package/dist/types/routes/message-targets/MessageTargetsRoute.d.ts +2 -0
  121. package/dist/types/routes/message-targets/action.d.ts +8 -0
  122. package/dist/types/routes/message-targets/api.d.ts +12 -0
  123. package/dist/types/routes/message-targets/index.d.ts +5 -0
  124. package/dist/types/routes/message-targets/loader.d.ts +15 -0
  125. package/dist/types/routes/scheduled-tasks/ScheduledTaskFormRoute.d.ts +2 -0
  126. package/dist/types/routes/scheduled-tasks/ScheduledTasksRoute.d.ts +2 -0
  127. package/dist/types/routes/scheduled-tasks/action.d.ts +21 -0
  128. package/dist/types/routes/scheduled-tasks/api.d.ts +75 -0
  129. package/dist/types/routes/scheduled-tasks/index.d.ts +5 -0
  130. package/dist/types/routes/scheduled-tasks/loader.d.ts +57 -0
  131. package/dist/types/routes/scheduled-tasks/parseScheduledTask.d.ts +15 -0
  132. package/dist/types/routes/triggerables/TriggerablesRoute.d.ts +2 -0
  133. package/dist/types/routes/triggerables/action.d.ts +6 -0
  134. package/dist/types/routes/triggerables/api.d.ts +33 -0
  135. package/dist/types/routes/triggerables/index.d.ts +4 -0
  136. package/dist/types/routes/triggerables/loader.d.ts +3 -0
  137. package/dist/types/scheduled-tasks.d.ts +1 -0
  138. package/dist/types/table.d.ts +1 -0
  139. package/dist/types/triggerables.d.ts +1 -0
  140. package/dist/types/types/openapiTypes.d.ts +3321 -0
  141. package/package.json +12 -5
  142. package/dist/ArrowBack-Bifnzxvs.js +0 -6430
  143. package/dist/ArrowBack-Bifnzxvs.js.map +0 -1
  144. package/dist/BreadCrumbs-DMuPCevY.js +0 -19
  145. package/dist/BreadCrumbs-DMuPCevY.js.map +0 -1
  146. package/dist/BreadCrumbs.css +0 -1
  147. package/dist/EnumSelectFilter-BdGla5Yf.js +0 -36
  148. package/dist/EnumSelectFilter-BdGla5Yf.js.map +0 -1
  149. package/dist/ExpandMore-DUn2zrFA.js +0 -1644
  150. package/dist/ExpandMore-DUn2zrFA.js.map +0 -1
  151. package/dist/FilterLink-DIeFjfZX.js +0 -49
  152. package/dist/FilterLink-DIeFjfZX.js.map +0 -1
  153. package/dist/JwtTokensRoute-C74zNV7A.js +0 -2374
  154. package/dist/JwtTokensRoute-C74zNV7A.js.map +0 -1
  155. package/dist/ScheduledTasksRoute-BAetDHqN.js +0 -611
  156. package/dist/ScheduledTasksRoute-BAetDHqN.js.map +0 -1
  157. package/dist/SingleLogMessageRoute-Dl2NFfqG.js +0 -419
  158. package/dist/SingleLogMessageRoute-Dl2NFfqG.js.map +0 -1
  159. package/dist/SingleMessageRoute-fC94BR1C.js +0 -306
  160. package/dist/SingleMessageRoute-fC94BR1C.js.map +0 -1
  161. package/dist/Table-DWiRP1za.js +0 -120
  162. package/dist/Table-DWiRP1za.js.map +0 -1
  163. package/dist/TextFilter-BHWY2B7i.js +0 -67
  164. package/dist/TextFilter-BHWY2B7i.js.map +0 -1
  165. package/dist/TriggerablesRoute-DiEEX1cR.js +0 -3552
  166. package/dist/TriggerablesRoute-DiEEX1cR.js.map +0 -1
  167. package/dist/api-BD_4zyJw.js +0 -38
  168. package/dist/api-BD_4zyJw.js.map +0 -1
  169. package/dist/breadcrumbs/index.js.map +0 -1
  170. package/dist/configuration-values/index.js.map +0 -1
  171. package/dist/control-values/index.js.map +0 -1
  172. package/dist/createSvgIcon-dA_Vj2W0.js +0 -3914
  173. package/dist/createSvgIcon-dA_Vj2W0.js.map +0 -1
  174. package/dist/exhaustiveValues-Dx50G3yz.js +0 -5
  175. package/dist/exhaustiveValues-Dx50G3yz.js.map +0 -1
  176. package/dist/filter/index.js.map +0 -1
  177. package/dist/formData-BH8saYep.js +0 -65
  178. package/dist/formData-BH8saYep.js.map +0 -1
  179. package/dist/jsx-runtime-D858t2LC.js +0 -617
  180. package/dist/jsx-runtime-D858t2LC.js.map +0 -1
  181. package/dist/jwt-tokens/index.js.map +0 -1
  182. package/dist/loader-CrveWlGb.js +0 -375
  183. package/dist/loader-CrveWlGb.js.map +0 -1
  184. package/dist/loader-D-oC32OJ.js +0 -3612
  185. package/dist/loader-D-oC32OJ.js.map +0 -1
  186. package/dist/loader-rVy8Z9xH.js +0 -130
  187. package/dist/loader-rVy8Z9xH.js.map +0 -1
  188. package/dist/main/index.js.map +0 -1
  189. package/dist/message-log/index.js.map +0 -1
  190. package/dist/message-sending/index.js.map +0 -1
  191. package/dist/message-targets/index.js.map +0 -1
  192. package/dist/pagination-Dy4ansKN.js +0 -21
  193. package/dist/pagination-Dy4ansKN.js.map +0 -1
  194. package/dist/scheduled-tasks/index.js.map +0 -1
  195. package/dist/schemas-CBHIJ_eF.js +0 -3059
  196. package/dist/schemas-CBHIJ_eF.js.map +0 -1
  197. package/dist/table/index.js.map +0 -1
  198. package/dist/triggerables/index.js.map +0 -1
@@ -0,0 +1,2986 @@
1
+ //#region ../node_modules/zod/v4/core/core.js
2
+ var e, t = /*@__PURE__*/ Object.freeze({ status: "aborted" });
3
+ function n(e, t, n) {
4
+ function r(n, r) {
5
+ if (n._zod || Object.defineProperty(n, "_zod", {
6
+ value: {
7
+ def: r,
8
+ constr: o,
9
+ traits: /* @__PURE__ */ new Set()
10
+ },
11
+ enumerable: !1
12
+ }), n._zod.traits.has(e)) return;
13
+ n._zod.traits.add(e), t(n, r);
14
+ let i = o.prototype, a = Object.keys(i);
15
+ for (let e = 0; e < a.length; e++) {
16
+ let t = a[e];
17
+ t in n || (n[t] = i[t].bind(n));
18
+ }
19
+ }
20
+ let i = n?.Parent ?? Object;
21
+ class a extends i {}
22
+ Object.defineProperty(a, "name", { value: e });
23
+ function o(e) {
24
+ var t;
25
+ let i = n?.Parent ? new a() : this;
26
+ r(i, e), (t = i._zod).deferred ?? (t.deferred = []);
27
+ for (let e of i._zod.deferred) e();
28
+ return i;
29
+ }
30
+ 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;
31
+ }
32
+ var r = class extends Error {
33
+ constructor() {
34
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
35
+ }
36
+ }, i = class extends Error {
37
+ constructor(e) {
38
+ super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
39
+ }
40
+ };
41
+ (e = globalThis).__zod_globalConfig ?? (e.__zod_globalConfig = {});
42
+ var a = globalThis.__zod_globalConfig;
43
+ function o(e) {
44
+ return e && Object.assign(a, e), a;
45
+ }
46
+ //#endregion
47
+ //#region ../node_modules/zod/v4/core/util.js
48
+ function s(e) {
49
+ let t = Object.values(e).filter((e) => typeof e == "number");
50
+ return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
51
+ }
52
+ function c(e, t) {
53
+ return typeof t == "bigint" ? t.toString() : t;
54
+ }
55
+ function l(e) {
56
+ return { get value() {
57
+ {
58
+ let t = e();
59
+ return Object.defineProperty(this, "value", { value: t }), t;
60
+ }
61
+ throw Error("cached value already set");
62
+ } };
63
+ }
64
+ function u(e) {
65
+ return e == null;
66
+ }
67
+ function d(e) {
68
+ let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
69
+ return e.slice(t, n);
70
+ }
71
+ function f(e, t) {
72
+ let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
73
+ return Math.abs(n - r) < i ? 0 : n - r;
74
+ }
75
+ var p = /* @__PURE__*/ Symbol("evaluating");
76
+ function m(e, t, n) {
77
+ let r;
78
+ Object.defineProperty(e, t, {
79
+ get() {
80
+ if (r !== p) return r === void 0 && (r = p, r = n()), r;
81
+ },
82
+ set(n) {
83
+ Object.defineProperty(e, t, { value: n });
84
+ },
85
+ configurable: !0
86
+ });
87
+ }
88
+ function h(e, t, n) {
89
+ Object.defineProperty(e, t, {
90
+ value: n,
91
+ writable: !0,
92
+ enumerable: !0,
93
+ configurable: !0
94
+ });
95
+ }
96
+ function g(...e) {
97
+ let t = {};
98
+ for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
99
+ return Object.defineProperties({}, t);
100
+ }
101
+ function ee(e) {
102
+ return JSON.stringify(e);
103
+ }
104
+ function te(e) {
105
+ return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
106
+ }
107
+ var ne = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
108
+ function _(e) {
109
+ return typeof e == "object" && !!e && !Array.isArray(e);
110
+ }
111
+ var re = /* @__PURE__*/ l(() => {
112
+ if (a.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
113
+ try {
114
+ return Function(""), !0;
115
+ } catch {
116
+ return !1;
117
+ }
118
+ });
119
+ function v(e) {
120
+ if (_(e) === !1) return !1;
121
+ let t = e.constructor;
122
+ if (t === void 0 || typeof t != "function") return !0;
123
+ let n = t.prototype;
124
+ return !(_(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
125
+ }
126
+ function ie(e) {
127
+ return v(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
128
+ }
129
+ var ae = /* @__PURE__*/ new Set([
130
+ "string",
131
+ "number",
132
+ "symbol"
133
+ ]);
134
+ function y(e) {
135
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
136
+ }
137
+ function b(e, t, n) {
138
+ let r = new e._zod.constr(t ?? e._zod.def);
139
+ return (!t || n?.parent) && (r._zod.parent = e), r;
140
+ }
141
+ function x(e) {
142
+ let t = e;
143
+ if (!t) return {};
144
+ if (typeof t == "string") return { error: () => t };
145
+ if (t?.message !== void 0) {
146
+ if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
147
+ t.error = t.message;
148
+ }
149
+ return delete t.message, typeof t.error == "string" ? {
150
+ ...t,
151
+ error: () => t.error
152
+ } : t;
153
+ }
154
+ function oe(e) {
155
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
156
+ }
157
+ var se = {
158
+ safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
159
+ int32: [-2147483648, 2147483647],
160
+ uint32: [0, 4294967295],
161
+ float32: [-34028234663852886e22, 34028234663852886e22],
162
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
163
+ };
164
+ function ce(e, t) {
165
+ let n = e._zod.def, r = n.checks;
166
+ if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
167
+ return b(e, g(e._zod.def, {
168
+ get shape() {
169
+ let e = {};
170
+ for (let r in t) {
171
+ if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
172
+ t[r] && (e[r] = n.shape[r]);
173
+ }
174
+ return h(this, "shape", e), e;
175
+ },
176
+ checks: []
177
+ }));
178
+ }
179
+ function le(e, t) {
180
+ let n = e._zod.def, r = n.checks;
181
+ if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
182
+ return b(e, g(e._zod.def, {
183
+ get shape() {
184
+ let r = { ...e._zod.def.shape };
185
+ for (let e in t) {
186
+ if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
187
+ t[e] && delete r[e];
188
+ }
189
+ return h(this, "shape", r), r;
190
+ },
191
+ checks: []
192
+ }));
193
+ }
194
+ function ue(e, t) {
195
+ if (!v(t)) throw Error("Invalid input to extend: expected a plain object");
196
+ let n = e._zod.def.checks;
197
+ if (n && n.length > 0) {
198
+ let n = e._zod.def.shape;
199
+ 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.");
200
+ }
201
+ return b(e, g(e._zod.def, { get shape() {
202
+ let n = {
203
+ ...e._zod.def.shape,
204
+ ...t
205
+ };
206
+ return h(this, "shape", n), n;
207
+ } }));
208
+ }
209
+ function de(e, t) {
210
+ if (!v(t)) throw Error("Invalid input to safeExtend: expected a plain object");
211
+ return b(e, g(e._zod.def, { get shape() {
212
+ let n = {
213
+ ...e._zod.def.shape,
214
+ ...t
215
+ };
216
+ return h(this, "shape", n), n;
217
+ } }));
218
+ }
219
+ function fe(e, t) {
220
+ if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
221
+ return b(e, g(e._zod.def, {
222
+ get shape() {
223
+ let n = {
224
+ ...e._zod.def.shape,
225
+ ...t._zod.def.shape
226
+ };
227
+ return h(this, "shape", n), n;
228
+ },
229
+ get catchall() {
230
+ return t._zod.def.catchall;
231
+ },
232
+ checks: t._zod.def.checks ?? []
233
+ }));
234
+ }
235
+ function pe(e, t, n) {
236
+ let r = t._zod.def.checks;
237
+ if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
238
+ return b(t, g(t._zod.def, {
239
+ get shape() {
240
+ let r = t._zod.def.shape, i = { ...r };
241
+ if (n) for (let t in n) {
242
+ if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
243
+ n[t] && (i[t] = e ? new e({
244
+ type: "optional",
245
+ innerType: r[t]
246
+ }) : r[t]);
247
+ }
248
+ else for (let t in r) i[t] = e ? new e({
249
+ type: "optional",
250
+ innerType: r[t]
251
+ }) : r[t];
252
+ return h(this, "shape", i), i;
253
+ },
254
+ checks: []
255
+ }));
256
+ }
257
+ function me(e, t, n) {
258
+ return b(t, g(t._zod.def, { get shape() {
259
+ let r = t._zod.def.shape, i = { ...r };
260
+ if (n) for (let t in n) {
261
+ if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
262
+ n[t] && (i[t] = new e({
263
+ type: "nonoptional",
264
+ innerType: r[t]
265
+ }));
266
+ }
267
+ else for (let t in r) i[t] = new e({
268
+ type: "nonoptional",
269
+ innerType: r[t]
270
+ });
271
+ return h(this, "shape", i), i;
272
+ } }));
273
+ }
274
+ function S(e, t = 0) {
275
+ if (e.aborted === !0) return !0;
276
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
277
+ return !1;
278
+ }
279
+ function he(e, t = 0) {
280
+ if (e.aborted === !0) return !0;
281
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
282
+ return !1;
283
+ }
284
+ function ge(e, t) {
285
+ return t.map((t) => {
286
+ var n;
287
+ return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
288
+ });
289
+ }
290
+ function C(e) {
291
+ return typeof e == "string" ? e : e?.message;
292
+ }
293
+ function w(e, t, n) {
294
+ let r = e.message ? e.message : C(e.inst?._zod.def?.error?.(e)) ?? C(t?.error?.(e)) ?? C(n.customError?.(e)) ?? C(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
295
+ return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
296
+ }
297
+ function T(e) {
298
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
299
+ }
300
+ function E(...e) {
301
+ let [t, n, r] = e;
302
+ return typeof t == "string" ? {
303
+ message: t,
304
+ code: "custom",
305
+ input: n,
306
+ inst: r
307
+ } : { ...t };
308
+ }
309
+ //#endregion
310
+ //#region ../node_modules/zod/v4/core/errors.js
311
+ var _e = (e, t) => {
312
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
313
+ value: e._zod,
314
+ enumerable: !1
315
+ }), Object.defineProperty(e, "issues", {
316
+ value: t,
317
+ enumerable: !1
318
+ }), e.message = JSON.stringify(t, c, 2), Object.defineProperty(e, "toString", {
319
+ value: () => e.message,
320
+ enumerable: !1
321
+ });
322
+ }, ve = n("$ZodError", _e), ye = n("$ZodError", _e, { Parent: Error });
323
+ function be(e, t = (e) => e.message) {
324
+ let n = {}, r = [];
325
+ 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));
326
+ return {
327
+ formErrors: r,
328
+ fieldErrors: n
329
+ };
330
+ }
331
+ function xe(e, t = (e) => e.message) {
332
+ let n = { _errors: [] }, r = (e, i = []) => {
333
+ for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
334
+ else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
335
+ else if (a.code === "invalid_element") r({ issues: a.issues }, [...i, ...a.path]);
336
+ else {
337
+ let e = [...i, ...a.path];
338
+ if (e.length === 0) n._errors.push(t(a));
339
+ else {
340
+ let r = n, i = 0;
341
+ for (; i < e.length;) {
342
+ let n = e[i];
343
+ i === e.length - 1 ? (r[n] = r[n] || { _errors: [] }, r[n]._errors.push(t(a))) : r[n] = r[n] || { _errors: [] }, r = r[n], i++;
344
+ }
345
+ }
346
+ }
347
+ };
348
+ return r(e), n;
349
+ }
350
+ //#endregion
351
+ //#region ../node_modules/zod/v4/core/parse.js
352
+ var D = (e) => (t, n, i, a) => {
353
+ let s = i ? {
354
+ ...i,
355
+ async: !1
356
+ } : { async: !1 }, c = t._zod.run({
357
+ value: n,
358
+ issues: []
359
+ }, s);
360
+ if (c instanceof Promise) throw new r();
361
+ if (c.issues.length) {
362
+ let t = new (a?.Err ?? e)(c.issues.map((e) => w(e, s, o())));
363
+ throw ne(t, a?.callee), t;
364
+ }
365
+ return c.value;
366
+ }, O = (e) => async (t, n, r, i) => {
367
+ let a = r ? {
368
+ ...r,
369
+ async: !0
370
+ } : { async: !0 }, s = t._zod.run({
371
+ value: n,
372
+ issues: []
373
+ }, a);
374
+ if (s instanceof Promise && (s = await s), s.issues.length) {
375
+ let t = new (i?.Err ?? e)(s.issues.map((e) => w(e, a, o())));
376
+ throw ne(t, i?.callee), t;
377
+ }
378
+ return s.value;
379
+ }, k = (e) => (t, n, i) => {
380
+ let a = i ? {
381
+ ...i,
382
+ async: !1
383
+ } : { async: !1 }, s = t._zod.run({
384
+ value: n,
385
+ issues: []
386
+ }, a);
387
+ if (s instanceof Promise) throw new r();
388
+ return s.issues.length ? {
389
+ success: !1,
390
+ error: new (e ?? ve)(s.issues.map((e) => w(e, a, o())))
391
+ } : {
392
+ success: !0,
393
+ data: s.value
394
+ };
395
+ }, Se = /* @__PURE__*/ k(ye), A = (e) => async (t, n, r) => {
396
+ let i = r ? {
397
+ ...r,
398
+ async: !0
399
+ } : { async: !0 }, a = t._zod.run({
400
+ value: n,
401
+ issues: []
402
+ }, i);
403
+ return a instanceof Promise && (a = await a), a.issues.length ? {
404
+ success: !1,
405
+ error: new e(a.issues.map((e) => w(e, i, o())))
406
+ } : {
407
+ success: !0,
408
+ data: a.value
409
+ };
410
+ }, Ce = /* @__PURE__*/ A(ye), we = (e) => (t, n, r) => {
411
+ let i = r ? {
412
+ ...r,
413
+ direction: "backward"
414
+ } : { direction: "backward" };
415
+ return D(e)(t, n, i);
416
+ }, Te = (e) => (t, n, r) => D(e)(t, n, r), Ee = (e) => async (t, n, r) => {
417
+ let i = r ? {
418
+ ...r,
419
+ direction: "backward"
420
+ } : { direction: "backward" };
421
+ return O(e)(t, n, i);
422
+ }, De = (e) => async (t, n, r) => O(e)(t, n, r), Oe = (e) => (t, n, r) => {
423
+ let i = r ? {
424
+ ...r,
425
+ direction: "backward"
426
+ } : { direction: "backward" };
427
+ return k(e)(t, n, i);
428
+ }, ke = (e) => (t, n, r) => k(e)(t, n, r), Ae = (e) => async (t, n, r) => {
429
+ let i = r ? {
430
+ ...r,
431
+ direction: "backward"
432
+ } : { direction: "backward" };
433
+ return A(e)(t, n, i);
434
+ }, je = (e) => async (t, n, r) => A(e)(t, n, r), Me = /^[cC][0-9a-z]{6,}$/, Ne = /^[0-9a-z]+$/, Pe = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Fe = /^[0-9a-vA-V]{20}$/, Ie = /^[A-Za-z0-9]{27}$/, Le = /^[a-zA-Z0-9_-]{21}$/, Re = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ze = /^([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})$/, Be = (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)$/, Ve = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, He = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
435
+ function Ue() {
436
+ return new RegExp(He, "u");
437
+ }
438
+ var We = /^(?:(?: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])$/, Ge = /^(([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}|:))$/, Ke = /^((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])$/, qe = /^(([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])$/, Je = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ye = /^[A-Za-z0-9_-]*$/, Xe = /^https?$/, Ze = /^\+[1-9]\d{6,14}$/, Qe = "(?:(?:\\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])))", $e = /*@__PURE__*/ RegExp(`^${Qe}$`);
439
+ function et(e) {
440
+ let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
441
+ 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+)?)?`;
442
+ }
443
+ function tt(e) {
444
+ return RegExp(`^${et(e)}$`);
445
+ }
446
+ function nt(e) {
447
+ let t = et({ precision: e.precision }), n = ["Z"];
448
+ e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
449
+ let r = `${t}(?:${n.join("|")})`;
450
+ return RegExp(`^${Qe}T(?:${r})$`);
451
+ }
452
+ var rt = (e) => {
453
+ let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
454
+ return RegExp(`^${t}$`);
455
+ }, it = /^-?\d+$/, at = /^-?\d+(?:\.\d+)?$/, ot = /^[^A-Z]*$/, st = /^[^a-z]*$/, j = /*@__PURE__*/ n("$ZodCheck", (e, t) => {
456
+ var n;
457
+ e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
458
+ }), ct = {
459
+ number: "number",
460
+ bigint: "bigint",
461
+ object: "date"
462
+ }, lt = /*@__PURE__*/ n("$ZodCheckLessThan", (e, t) => {
463
+ j.init(e, t);
464
+ let n = ct[typeof t.value];
465
+ e._zod.onattach.push((e) => {
466
+ let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
467
+ t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
468
+ }), e._zod.check = (r) => {
469
+ (t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
470
+ origin: n,
471
+ code: "too_big",
472
+ maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
473
+ input: r.value,
474
+ inclusive: t.inclusive,
475
+ inst: e,
476
+ continue: !t.abort
477
+ });
478
+ };
479
+ }), ut = /*@__PURE__*/ n("$ZodCheckGreaterThan", (e, t) => {
480
+ j.init(e, t);
481
+ let n = ct[typeof t.value];
482
+ e._zod.onattach.push((e) => {
483
+ let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
484
+ t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
485
+ }), e._zod.check = (r) => {
486
+ (t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
487
+ origin: n,
488
+ code: "too_small",
489
+ minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
490
+ input: r.value,
491
+ inclusive: t.inclusive,
492
+ inst: e,
493
+ continue: !t.abort
494
+ });
495
+ };
496
+ }), dt = /*@__PURE__*/ n("$ZodCheckMultipleOf", (e, t) => {
497
+ j.init(e, t), e._zod.onattach.push((e) => {
498
+ var n;
499
+ (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
500
+ }), e._zod.check = (n) => {
501
+ if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
502
+ (typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : f(n.value, t.value) === 0) || n.issues.push({
503
+ origin: typeof n.value,
504
+ code: "not_multiple_of",
505
+ divisor: t.value,
506
+ input: n.value,
507
+ inst: e,
508
+ continue: !t.abort
509
+ });
510
+ };
511
+ }), ft = /*@__PURE__*/ n("$ZodCheckNumberFormat", (e, t) => {
512
+ j.init(e, t), t.format = t.format || "float64";
513
+ let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = se[t.format];
514
+ e._zod.onattach.push((e) => {
515
+ let r = e._zod.bag;
516
+ r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = it);
517
+ }), e._zod.check = (o) => {
518
+ let s = o.value;
519
+ if (n) {
520
+ if (!Number.isInteger(s)) {
521
+ o.issues.push({
522
+ expected: r,
523
+ format: t.format,
524
+ code: "invalid_type",
525
+ continue: !1,
526
+ input: s,
527
+ inst: e
528
+ });
529
+ return;
530
+ }
531
+ if (!Number.isSafeInteger(s)) {
532
+ s > 0 ? o.issues.push({
533
+ input: s,
534
+ code: "too_big",
535
+ maximum: 2 ** 53 - 1,
536
+ note: "Integers must be within the safe integer range.",
537
+ inst: e,
538
+ origin: r,
539
+ inclusive: !0,
540
+ continue: !t.abort
541
+ }) : o.issues.push({
542
+ input: s,
543
+ code: "too_small",
544
+ minimum: -(2 ** 53 - 1),
545
+ note: "Integers must be within the safe integer range.",
546
+ inst: e,
547
+ origin: r,
548
+ inclusive: !0,
549
+ continue: !t.abort
550
+ });
551
+ return;
552
+ }
553
+ }
554
+ s < i && o.issues.push({
555
+ origin: "number",
556
+ input: s,
557
+ code: "too_small",
558
+ minimum: i,
559
+ inclusive: !0,
560
+ inst: e,
561
+ continue: !t.abort
562
+ }), s > a && o.issues.push({
563
+ origin: "number",
564
+ input: s,
565
+ code: "too_big",
566
+ maximum: a,
567
+ inclusive: !0,
568
+ inst: e,
569
+ continue: !t.abort
570
+ });
571
+ };
572
+ }), pt = /*@__PURE__*/ n("$ZodCheckMaxLength", (e, t) => {
573
+ var n;
574
+ j.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
575
+ let t = e.value;
576
+ return !u(t) && t.length !== void 0;
577
+ }), e._zod.onattach.push((e) => {
578
+ let n = e._zod.bag.maximum ?? Infinity;
579
+ t.maximum < n && (e._zod.bag.maximum = t.maximum);
580
+ }), e._zod.check = (n) => {
581
+ let r = n.value;
582
+ if (r.length <= t.maximum) return;
583
+ let i = T(r);
584
+ n.issues.push({
585
+ origin: i,
586
+ code: "too_big",
587
+ maximum: t.maximum,
588
+ inclusive: !0,
589
+ input: r,
590
+ inst: e,
591
+ continue: !t.abort
592
+ });
593
+ };
594
+ }), mt = /*@__PURE__*/ n("$ZodCheckMinLength", (e, t) => {
595
+ var n;
596
+ j.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
597
+ let t = e.value;
598
+ return !u(t) && t.length !== void 0;
599
+ }), e._zod.onattach.push((e) => {
600
+ let n = e._zod.bag.minimum ?? -Infinity;
601
+ t.minimum > n && (e._zod.bag.minimum = t.minimum);
602
+ }), e._zod.check = (n) => {
603
+ let r = n.value;
604
+ if (r.length >= t.minimum) return;
605
+ let i = T(r);
606
+ n.issues.push({
607
+ origin: i,
608
+ code: "too_small",
609
+ minimum: t.minimum,
610
+ inclusive: !0,
611
+ input: r,
612
+ inst: e,
613
+ continue: !t.abort
614
+ });
615
+ };
616
+ }), ht = /*@__PURE__*/ n("$ZodCheckLengthEquals", (e, t) => {
617
+ var n;
618
+ j.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
619
+ let t = e.value;
620
+ return !u(t) && t.length !== void 0;
621
+ }), e._zod.onattach.push((e) => {
622
+ let n = e._zod.bag;
623
+ n.minimum = t.length, n.maximum = t.length, n.length = t.length;
624
+ }), e._zod.check = (n) => {
625
+ let r = n.value, i = r.length;
626
+ if (i === t.length) return;
627
+ let a = T(r), o = i > t.length;
628
+ n.issues.push({
629
+ origin: a,
630
+ ...o ? {
631
+ code: "too_big",
632
+ maximum: t.length
633
+ } : {
634
+ code: "too_small",
635
+ minimum: t.length
636
+ },
637
+ inclusive: !0,
638
+ exact: !0,
639
+ input: n.value,
640
+ inst: e,
641
+ continue: !t.abort
642
+ });
643
+ };
644
+ }), M = /*@__PURE__*/ n("$ZodCheckStringFormat", (e, t) => {
645
+ var n, r;
646
+ j.init(e, t), e._zod.onattach.push((e) => {
647
+ let n = e._zod.bag;
648
+ n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
649
+ }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
650
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
651
+ origin: "string",
652
+ code: "invalid_format",
653
+ format: t.format,
654
+ input: n.value,
655
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
656
+ inst: e,
657
+ continue: !t.abort
658
+ });
659
+ }) : (r = e._zod).check ?? (r.check = () => {});
660
+ }), gt = /*@__PURE__*/ n("$ZodCheckRegex", (e, t) => {
661
+ M.init(e, t), e._zod.check = (n) => {
662
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
663
+ origin: "string",
664
+ code: "invalid_format",
665
+ format: "regex",
666
+ input: n.value,
667
+ pattern: t.pattern.toString(),
668
+ inst: e,
669
+ continue: !t.abort
670
+ });
671
+ };
672
+ }), _t = /*@__PURE__*/ n("$ZodCheckLowerCase", (e, t) => {
673
+ t.pattern ??= ot, M.init(e, t);
674
+ }), vt = /*@__PURE__*/ n("$ZodCheckUpperCase", (e, t) => {
675
+ t.pattern ??= st, M.init(e, t);
676
+ }), yt = /*@__PURE__*/ n("$ZodCheckIncludes", (e, t) => {
677
+ j.init(e, t);
678
+ let n = y(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
679
+ t.pattern = r, e._zod.onattach.push((e) => {
680
+ let t = e._zod.bag;
681
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
682
+ }), e._zod.check = (n) => {
683
+ n.value.includes(t.includes, t.position) || n.issues.push({
684
+ origin: "string",
685
+ code: "invalid_format",
686
+ format: "includes",
687
+ includes: t.includes,
688
+ input: n.value,
689
+ inst: e,
690
+ continue: !t.abort
691
+ });
692
+ };
693
+ }), bt = /*@__PURE__*/ n("$ZodCheckStartsWith", (e, t) => {
694
+ j.init(e, t);
695
+ let n = RegExp(`^${y(t.prefix)}.*`);
696
+ t.pattern ??= n, e._zod.onattach.push((e) => {
697
+ let t = e._zod.bag;
698
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
699
+ }), e._zod.check = (n) => {
700
+ n.value.startsWith(t.prefix) || n.issues.push({
701
+ origin: "string",
702
+ code: "invalid_format",
703
+ format: "starts_with",
704
+ prefix: t.prefix,
705
+ input: n.value,
706
+ inst: e,
707
+ continue: !t.abort
708
+ });
709
+ };
710
+ }), xt = /*@__PURE__*/ n("$ZodCheckEndsWith", (e, t) => {
711
+ j.init(e, t);
712
+ let n = RegExp(`.*${y(t.suffix)}$`);
713
+ t.pattern ??= n, e._zod.onattach.push((e) => {
714
+ let t = e._zod.bag;
715
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
716
+ }), e._zod.check = (n) => {
717
+ n.value.endsWith(t.suffix) || n.issues.push({
718
+ origin: "string",
719
+ code: "invalid_format",
720
+ format: "ends_with",
721
+ suffix: t.suffix,
722
+ input: n.value,
723
+ inst: e,
724
+ continue: !t.abort
725
+ });
726
+ };
727
+ }), St = /*@__PURE__*/ n("$ZodCheckOverwrite", (e, t) => {
728
+ j.init(e, t), e._zod.check = (e) => {
729
+ e.value = t.tx(e.value);
730
+ };
731
+ }), Ct = class {
732
+ constructor(e = []) {
733
+ this.content = [], this.indent = 0, this && (this.args = e);
734
+ }
735
+ indented(e) {
736
+ this.indent += 1, e(this), --this.indent;
737
+ }
738
+ write(e) {
739
+ if (typeof e == "function") {
740
+ e(this, { execution: "sync" }), e(this, { execution: "async" });
741
+ return;
742
+ }
743
+ let t = e.split("\n").filter((e) => e), n = Math.min(...t.map((e) => e.length - e.trimStart().length)), r = t.map((e) => e.slice(n)).map((e) => " ".repeat(this.indent * 2) + e);
744
+ for (let e of r) this.content.push(e);
745
+ }
746
+ compile() {
747
+ let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
748
+ return new e(...t, n.join("\n"));
749
+ }
750
+ }, wt = {
751
+ major: 4,
752
+ minor: 4,
753
+ patch: 3
754
+ }, N = /*@__PURE__*/ n("$ZodType", (e, t) => {
755
+ var n;
756
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = wt;
757
+ let i = [...e._zod.def.checks ?? []];
758
+ e._zod.traits.has("$ZodCheck") && i.unshift(e);
759
+ for (let t of i) for (let n of t._zod.onattach) n(e);
760
+ if (i.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
761
+ e._zod.run = e._zod.parse;
762
+ });
763
+ else {
764
+ let t = (e, t, n) => {
765
+ let i = S(e), a;
766
+ for (let o of t) {
767
+ if (o._zod.def.when) {
768
+ if (he(e) || !o._zod.def.when(e)) continue;
769
+ } else if (i) continue;
770
+ let t = e.issues.length, s = o._zod.check(e);
771
+ if (s instanceof Promise && n?.async === !1) throw new r();
772
+ if (a || s instanceof Promise) a = (a ?? Promise.resolve()).then(async () => {
773
+ await s, e.issues.length !== t && (i ||= S(e, t));
774
+ });
775
+ else {
776
+ if (e.issues.length === t) continue;
777
+ i ||= S(e, t);
778
+ }
779
+ }
780
+ return a ? a.then(() => e) : e;
781
+ }, n = (n, a, o) => {
782
+ if (S(n)) return n.aborted = !0, n;
783
+ let s = t(a, i, o);
784
+ if (s instanceof Promise) {
785
+ if (o.async === !1) throw new r();
786
+ return s.then((t) => e._zod.parse(t, o));
787
+ }
788
+ return e._zod.parse(s, o);
789
+ };
790
+ e._zod.run = (a, o) => {
791
+ if (o.skipChecks) return e._zod.parse(a, o);
792
+ if (o.direction === "backward") {
793
+ let t = e._zod.parse({
794
+ value: a.value,
795
+ issues: []
796
+ }, {
797
+ ...o,
798
+ skipChecks: !0
799
+ });
800
+ return t instanceof Promise ? t.then((e) => n(e, a, o)) : n(t, a, o);
801
+ }
802
+ let s = e._zod.parse(a, o);
803
+ if (s instanceof Promise) {
804
+ if (o.async === !1) throw new r();
805
+ return s.then((e) => t(e, i, o));
806
+ }
807
+ return t(s, i, o);
808
+ };
809
+ }
810
+ m(e, "~standard", () => ({
811
+ validate: (t) => {
812
+ try {
813
+ let n = Se(e, t);
814
+ return n.success ? { value: n.data } : { issues: n.error?.issues };
815
+ } catch {
816
+ return Ce(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
817
+ }
818
+ },
819
+ vendor: "zod",
820
+ version: 1
821
+ }));
822
+ }), P = /*@__PURE__*/ n("$ZodString", (e, t) => {
823
+ N.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? rt(e._zod.bag), e._zod.parse = (n, r) => {
824
+ if (t.coerce) try {
825
+ n.value = String(n.value);
826
+ } catch {}
827
+ return typeof n.value == "string" || n.issues.push({
828
+ expected: "string",
829
+ code: "invalid_type",
830
+ input: n.value,
831
+ inst: e
832
+ }), n;
833
+ };
834
+ }), F = /*@__PURE__*/ n("$ZodStringFormat", (e, t) => {
835
+ M.init(e, t), P.init(e, t);
836
+ }), Tt = /*@__PURE__*/ n("$ZodGUID", (e, t) => {
837
+ t.pattern ??= ze, F.init(e, t);
838
+ }), Et = /*@__PURE__*/ n("$ZodUUID", (e, t) => {
839
+ if (t.version) {
840
+ let e = {
841
+ v1: 1,
842
+ v2: 2,
843
+ v3: 3,
844
+ v4: 4,
845
+ v5: 5,
846
+ v6: 6,
847
+ v7: 7,
848
+ v8: 8
849
+ }[t.version];
850
+ if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
851
+ t.pattern ??= Be(e);
852
+ } else t.pattern ??= Be();
853
+ F.init(e, t);
854
+ }), Dt = /*@__PURE__*/ n("$ZodEmail", (e, t) => {
855
+ t.pattern ??= Ve, F.init(e, t);
856
+ }), Ot = /*@__PURE__*/ n("$ZodURL", (e, t) => {
857
+ F.init(e, t), e._zod.check = (n) => {
858
+ try {
859
+ let r = n.value.trim();
860
+ if (!t.normalize && t.protocol?.source === Xe.source && !/^https?:\/\//i.test(r)) {
861
+ n.issues.push({
862
+ code: "invalid_format",
863
+ format: "url",
864
+ note: "Invalid URL format",
865
+ input: n.value,
866
+ inst: e,
867
+ continue: !t.abort
868
+ });
869
+ return;
870
+ }
871
+ let i = new URL(r);
872
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
873
+ code: "invalid_format",
874
+ format: "url",
875
+ note: "Invalid hostname",
876
+ pattern: t.hostname.source,
877
+ input: n.value,
878
+ inst: e,
879
+ continue: !t.abort
880
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.protocol) || n.issues.push({
881
+ code: "invalid_format",
882
+ format: "url",
883
+ note: "Invalid protocol",
884
+ pattern: t.protocol.source,
885
+ input: n.value,
886
+ inst: e,
887
+ continue: !t.abort
888
+ })), t.normalize ? n.value = i.href : n.value = r;
889
+ return;
890
+ } catch {
891
+ n.issues.push({
892
+ code: "invalid_format",
893
+ format: "url",
894
+ input: n.value,
895
+ inst: e,
896
+ continue: !t.abort
897
+ });
898
+ }
899
+ };
900
+ }), kt = /*@__PURE__*/ n("$ZodEmoji", (e, t) => {
901
+ t.pattern ??= Ue(), F.init(e, t);
902
+ }), At = /*@__PURE__*/ n("$ZodNanoID", (e, t) => {
903
+ t.pattern ??= Le, F.init(e, t);
904
+ }), jt = /*@__PURE__*/ n("$ZodCUID", (e, t) => {
905
+ t.pattern ??= Me, F.init(e, t);
906
+ }), Mt = /*@__PURE__*/ n("$ZodCUID2", (e, t) => {
907
+ t.pattern ??= Ne, F.init(e, t);
908
+ }), Nt = /*@__PURE__*/ n("$ZodULID", (e, t) => {
909
+ t.pattern ??= Pe, F.init(e, t);
910
+ }), Pt = /*@__PURE__*/ n("$ZodXID", (e, t) => {
911
+ t.pattern ??= Fe, F.init(e, t);
912
+ }), Ft = /*@__PURE__*/ n("$ZodKSUID", (e, t) => {
913
+ t.pattern ??= Ie, F.init(e, t);
914
+ }), It = /*@__PURE__*/ n("$ZodISODateTime", (e, t) => {
915
+ t.pattern ??= nt(t), F.init(e, t);
916
+ }), Lt = /*@__PURE__*/ n("$ZodISODate", (e, t) => {
917
+ t.pattern ??= $e, F.init(e, t);
918
+ }), Rt = /*@__PURE__*/ n("$ZodISOTime", (e, t) => {
919
+ t.pattern ??= tt(t), F.init(e, t);
920
+ }), zt = /*@__PURE__*/ n("$ZodISODuration", (e, t) => {
921
+ t.pattern ??= Re, F.init(e, t);
922
+ }), Bt = /*@__PURE__*/ n("$ZodIPv4", (e, t) => {
923
+ t.pattern ??= We, F.init(e, t), e._zod.bag.format = "ipv4";
924
+ }), Vt = /*@__PURE__*/ n("$ZodIPv6", (e, t) => {
925
+ t.pattern ??= Ge, F.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
926
+ try {
927
+ new URL(`http://[${n.value}]`);
928
+ } catch {
929
+ n.issues.push({
930
+ code: "invalid_format",
931
+ format: "ipv6",
932
+ input: n.value,
933
+ inst: e,
934
+ continue: !t.abort
935
+ });
936
+ }
937
+ };
938
+ }), Ht = /*@__PURE__*/ n("$ZodCIDRv4", (e, t) => {
939
+ t.pattern ??= Ke, F.init(e, t);
940
+ }), Ut = /*@__PURE__*/ n("$ZodCIDRv6", (e, t) => {
941
+ t.pattern ??= qe, F.init(e, t), e._zod.check = (n) => {
942
+ let r = n.value.split("/");
943
+ try {
944
+ if (r.length !== 2) throw Error();
945
+ let [e, t] = r;
946
+ if (!t) throw Error();
947
+ let n = Number(t);
948
+ if (`${n}` !== t || n < 0 || n > 128) throw Error();
949
+ new URL(`http://[${e}]`);
950
+ } catch {
951
+ n.issues.push({
952
+ code: "invalid_format",
953
+ format: "cidrv6",
954
+ input: n.value,
955
+ inst: e,
956
+ continue: !t.abort
957
+ });
958
+ }
959
+ };
960
+ });
961
+ function Wt(e) {
962
+ if (e === "") return !0;
963
+ if (/\s/.test(e) || e.length % 4 != 0) return !1;
964
+ try {
965
+ return atob(e), !0;
966
+ } catch {
967
+ return !1;
968
+ }
969
+ }
970
+ var Gt = /*@__PURE__*/ n("$ZodBase64", (e, t) => {
971
+ t.pattern ??= Je, F.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
972
+ Wt(n.value) || n.issues.push({
973
+ code: "invalid_format",
974
+ format: "base64",
975
+ input: n.value,
976
+ inst: e,
977
+ continue: !t.abort
978
+ });
979
+ };
980
+ });
981
+ function Kt(e) {
982
+ if (!Ye.test(e)) return !1;
983
+ let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
984
+ return Wt(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
985
+ }
986
+ var qt = /*@__PURE__*/ n("$ZodBase64URL", (e, t) => {
987
+ t.pattern ??= Ye, F.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
988
+ Kt(n.value) || n.issues.push({
989
+ code: "invalid_format",
990
+ format: "base64url",
991
+ input: n.value,
992
+ inst: e,
993
+ continue: !t.abort
994
+ });
995
+ };
996
+ }), Jt = /*@__PURE__*/ n("$ZodE164", (e, t) => {
997
+ t.pattern ??= Ze, F.init(e, t);
998
+ });
999
+ function Yt(e, t = null) {
1000
+ try {
1001
+ let n = e.split(".");
1002
+ if (n.length !== 3) return !1;
1003
+ let [r] = n;
1004
+ if (!r) return !1;
1005
+ let i = JSON.parse(atob(r));
1006
+ return !("typ" in i && i?.typ !== "JWT" || !i.alg || t && (!("alg" in i) || i.alg !== t));
1007
+ } catch {
1008
+ return !1;
1009
+ }
1010
+ }
1011
+ var Xt = /*@__PURE__*/ n("$ZodJWT", (e, t) => {
1012
+ F.init(e, t), e._zod.check = (n) => {
1013
+ Yt(n.value, t.alg) || n.issues.push({
1014
+ code: "invalid_format",
1015
+ format: "jwt",
1016
+ input: n.value,
1017
+ inst: e,
1018
+ continue: !t.abort
1019
+ });
1020
+ };
1021
+ }), Zt = /*@__PURE__*/ n("$ZodNumber", (e, t) => {
1022
+ N.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? at, e._zod.parse = (n, r) => {
1023
+ if (t.coerce) try {
1024
+ n.value = Number(n.value);
1025
+ } catch {}
1026
+ let i = n.value;
1027
+ if (typeof i == "number" && !Number.isNaN(i) && Number.isFinite(i)) return n;
1028
+ let a = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : "Infinity" : void 0;
1029
+ return n.issues.push({
1030
+ expected: "number",
1031
+ code: "invalid_type",
1032
+ input: i,
1033
+ inst: e,
1034
+ ...a ? { received: a } : {}
1035
+ }), n;
1036
+ };
1037
+ }), Qt = /*@__PURE__*/ n("$ZodNumberFormat", (e, t) => {
1038
+ ft.init(e, t), Zt.init(e, t);
1039
+ }), $t = /*@__PURE__*/ n("$ZodUnknown", (e, t) => {
1040
+ N.init(e, t), e._zod.parse = (e) => e;
1041
+ }), en = /*@__PURE__*/ n("$ZodNever", (e, t) => {
1042
+ N.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1043
+ expected: "never",
1044
+ code: "invalid_type",
1045
+ input: t.value,
1046
+ inst: e
1047
+ }), t);
1048
+ });
1049
+ function tn(e, t, n) {
1050
+ e.issues.length && t.issues.push(...ge(n, e.issues)), t.value[n] = e.value;
1051
+ }
1052
+ var nn = /*@__PURE__*/ n("$ZodArray", (e, t) => {
1053
+ N.init(e, t), e._zod.parse = (n, r) => {
1054
+ let i = n.value;
1055
+ if (!Array.isArray(i)) return n.issues.push({
1056
+ expected: "array",
1057
+ code: "invalid_type",
1058
+ input: i,
1059
+ inst: e
1060
+ }), n;
1061
+ n.value = Array(i.length);
1062
+ let a = [];
1063
+ for (let e = 0; e < i.length; e++) {
1064
+ let o = i[e], s = t.element._zod.run({
1065
+ value: o,
1066
+ issues: []
1067
+ }, r);
1068
+ s instanceof Promise ? a.push(s.then((t) => tn(t, n, e))) : tn(s, n, e);
1069
+ }
1070
+ return a.length ? Promise.all(a).then(() => n) : n;
1071
+ };
1072
+ });
1073
+ function I(e, t, n, r, i, a) {
1074
+ let o = n in r;
1075
+ if (e.issues.length) {
1076
+ if (i && a && !o) return;
1077
+ t.issues.push(...ge(n, e.issues));
1078
+ }
1079
+ if (!o && !i) {
1080
+ e.issues.length || t.issues.push({
1081
+ code: "invalid_type",
1082
+ expected: "nonoptional",
1083
+ input: void 0,
1084
+ path: [n]
1085
+ });
1086
+ return;
1087
+ }
1088
+ e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1089
+ }
1090
+ function rn(e) {
1091
+ let t = Object.keys(e.shape);
1092
+ for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1093
+ let n = oe(e.shape);
1094
+ return {
1095
+ ...e,
1096
+ keys: t,
1097
+ keySet: new Set(t),
1098
+ numKeys: t.length,
1099
+ optionalKeys: new Set(n)
1100
+ };
1101
+ }
1102
+ function an(e, t, n, r, i, a) {
1103
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
1104
+ for (let i in t) {
1105
+ if (i === "__proto__" || s.has(i)) continue;
1106
+ if (l === "never") {
1107
+ o.push(i);
1108
+ continue;
1109
+ }
1110
+ let a = c.run({
1111
+ value: t[i],
1112
+ issues: []
1113
+ }, r);
1114
+ a instanceof Promise ? e.push(a.then((e) => I(e, n, i, t, u, d))) : I(a, n, i, t, u, d);
1115
+ }
1116
+ return o.length && n.issues.push({
1117
+ code: "unrecognized_keys",
1118
+ keys: o,
1119
+ input: t,
1120
+ inst: a
1121
+ }), e.length ? Promise.all(e).then(() => n) : n;
1122
+ }
1123
+ var on = /*@__PURE__*/ n("$ZodObject", (e, t) => {
1124
+ if (N.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1125
+ let e = t.shape;
1126
+ Object.defineProperty(t, "shape", { get: () => {
1127
+ let n = { ...e };
1128
+ return Object.defineProperty(t, "shape", { value: n }), n;
1129
+ } });
1130
+ }
1131
+ let n = l(() => rn(t));
1132
+ m(e._zod, "propValues", () => {
1133
+ let e = t.shape, n = {};
1134
+ for (let t in e) {
1135
+ let r = e[t]._zod;
1136
+ if (r.values) {
1137
+ n[t] ?? (n[t] = /* @__PURE__ */ new Set());
1138
+ for (let e of r.values) n[t].add(e);
1139
+ }
1140
+ }
1141
+ return n;
1142
+ });
1143
+ let r = _, i = t.catchall, a;
1144
+ e._zod.parse = (t, o) => {
1145
+ a ??= n.value;
1146
+ let s = t.value;
1147
+ if (!r(s)) return t.issues.push({
1148
+ expected: "object",
1149
+ code: "invalid_type",
1150
+ input: s,
1151
+ inst: e
1152
+ }), t;
1153
+ t.value = {};
1154
+ let c = [], l = a.shape;
1155
+ for (let e of a.keys) {
1156
+ let n = l[e], r = n._zod.optin === "optional", i = n._zod.optout === "optional", a = n._zod.run({
1157
+ value: s[e],
1158
+ issues: []
1159
+ }, o);
1160
+ a instanceof Promise ? c.push(a.then((n) => I(n, t, e, s, r, i))) : I(a, t, e, s, r, i);
1161
+ }
1162
+ return i ? an(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1163
+ };
1164
+ }), sn = /*@__PURE__*/ n("$ZodObjectJIT", (e, t) => {
1165
+ on.init(e, t);
1166
+ let n = e._zod.parse, r = l(() => rn(t)), i = (e) => {
1167
+ let t = new Ct([
1168
+ "shape",
1169
+ "payload",
1170
+ "ctx"
1171
+ ]), n = r.value, i = (e) => {
1172
+ let t = ee(e);
1173
+ return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
1174
+ };
1175
+ t.write("const input = payload.value;");
1176
+ let a = Object.create(null), o = 0;
1177
+ for (let e of n.keys) a[e] = `key_${o++}`;
1178
+ t.write("const newResult = {};");
1179
+ for (let r of n.keys) {
1180
+ let n = a[r], o = ee(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
1181
+ t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
1182
+ if (${n}.issues.length) {
1183
+ if (${o} in input) {
1184
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1185
+ ...iss,
1186
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1187
+ })));
1188
+ }
1189
+ }
1190
+
1191
+ if (${n}.value === undefined) {
1192
+ if (${o} in input) {
1193
+ newResult[${o}] = undefined;
1194
+ }
1195
+ } else {
1196
+ newResult[${o}] = ${n}.value;
1197
+ }
1198
+
1199
+ `) : c ? t.write(`
1200
+ if (${n}.issues.length) {
1201
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1202
+ ...iss,
1203
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1204
+ })));
1205
+ }
1206
+
1207
+ if (${n}.value === undefined) {
1208
+ if (${o} in input) {
1209
+ newResult[${o}] = undefined;
1210
+ }
1211
+ } else {
1212
+ newResult[${o}] = ${n}.value;
1213
+ }
1214
+
1215
+ `) : t.write(`
1216
+ const ${n}_present = ${o} in input;
1217
+ if (${n}.issues.length) {
1218
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1219
+ ...iss,
1220
+ path: iss.path ? [${o}, ...iss.path] : [${o}]
1221
+ })));
1222
+ }
1223
+ if (!${n}_present && !${n}.issues.length) {
1224
+ payload.issues.push({
1225
+ code: "invalid_type",
1226
+ expected: "nonoptional",
1227
+ input: undefined,
1228
+ path: [${o}]
1229
+ });
1230
+ }
1231
+
1232
+ if (${n}_present) {
1233
+ if (${n}.value === undefined) {
1234
+ newResult[${o}] = undefined;
1235
+ } else {
1236
+ newResult[${o}] = ${n}.value;
1237
+ }
1238
+ }
1239
+
1240
+ `);
1241
+ }
1242
+ t.write("payload.value = newResult;"), t.write("return payload;");
1243
+ let s = t.compile();
1244
+ return (t, n) => s(e, t, n);
1245
+ }, o, s = _, c = !a.jitless, u = c && re.value, d = t.catchall, f;
1246
+ e._zod.parse = (a, l) => {
1247
+ f ??= r.value;
1248
+ let p = a.value;
1249
+ return s(p) ? c && u && l?.async === !1 && l.jitless !== !0 ? (o ||= i(t.shape), a = o(a, l), d ? an([], p, a, l, f, e) : a) : n(a, l) : (a.issues.push({
1250
+ expected: "object",
1251
+ code: "invalid_type",
1252
+ input: p,
1253
+ inst: e
1254
+ }), a);
1255
+ };
1256
+ });
1257
+ function cn(e, t, n, r) {
1258
+ for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1259
+ let i = e.filter((e) => !S(e));
1260
+ return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1261
+ code: "invalid_union",
1262
+ input: t.value,
1263
+ inst: n,
1264
+ errors: e.map((e) => e.issues.map((e) => w(e, r, o())))
1265
+ }), t);
1266
+ }
1267
+ var ln = /*@__PURE__*/ n("$ZodUnion", (e, t) => {
1268
+ N.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", () => {
1269
+ if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1270
+ }), m(e._zod, "pattern", () => {
1271
+ if (t.options.every((e) => e._zod.pattern)) {
1272
+ let e = t.options.map((e) => e._zod.pattern);
1273
+ return RegExp(`^(${e.map((e) => d(e.source)).join("|")})$`);
1274
+ }
1275
+ });
1276
+ let n = t.options.length === 1 ? t.options[0]._zod.run : null;
1277
+ e._zod.parse = (r, i) => {
1278
+ if (n) return n(r, i);
1279
+ let a = !1, o = [];
1280
+ for (let e of t.options) {
1281
+ let t = e._zod.run({
1282
+ value: r.value,
1283
+ issues: []
1284
+ }, i);
1285
+ if (t instanceof Promise) o.push(t), a = !0;
1286
+ else {
1287
+ if (t.issues.length === 0) return t;
1288
+ o.push(t);
1289
+ }
1290
+ }
1291
+ return a ? Promise.all(o).then((t) => cn(t, r, e, i)) : cn(o, r, e, i);
1292
+ };
1293
+ }), un = /*@__PURE__*/ n("$ZodIntersection", (e, t) => {
1294
+ N.init(e, t), e._zod.parse = (e, n) => {
1295
+ let r = e.value, i = t.left._zod.run({
1296
+ value: r,
1297
+ issues: []
1298
+ }, n), a = t.right._zod.run({
1299
+ value: r,
1300
+ issues: []
1301
+ }, n);
1302
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => dn(e, t, n)) : dn(e, i, a);
1303
+ };
1304
+ });
1305
+ function L(e, t) {
1306
+ if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1307
+ valid: !0,
1308
+ data: e
1309
+ };
1310
+ if (v(e) && v(t)) {
1311
+ let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1312
+ ...e,
1313
+ ...t
1314
+ };
1315
+ for (let n of r) {
1316
+ let r = L(e[n], t[n]);
1317
+ if (!r.valid) return {
1318
+ valid: !1,
1319
+ mergeErrorPath: [n, ...r.mergeErrorPath]
1320
+ };
1321
+ i[n] = r.data;
1322
+ }
1323
+ return {
1324
+ valid: !0,
1325
+ data: i
1326
+ };
1327
+ }
1328
+ if (Array.isArray(e) && Array.isArray(t)) {
1329
+ if (e.length !== t.length) return {
1330
+ valid: !1,
1331
+ mergeErrorPath: []
1332
+ };
1333
+ let n = [];
1334
+ for (let r = 0; r < e.length; r++) {
1335
+ let i = e[r], a = t[r], o = L(i, a);
1336
+ if (!o.valid) return {
1337
+ valid: !1,
1338
+ mergeErrorPath: [r, ...o.mergeErrorPath]
1339
+ };
1340
+ n.push(o.data);
1341
+ }
1342
+ return {
1343
+ valid: !0,
1344
+ data: n
1345
+ };
1346
+ }
1347
+ return {
1348
+ valid: !1,
1349
+ mergeErrorPath: []
1350
+ };
1351
+ }
1352
+ function dn(e, t, n) {
1353
+ let r = /* @__PURE__ */ new Map(), i;
1354
+ for (let n of t.issues) if (n.code === "unrecognized_keys") {
1355
+ i ??= n;
1356
+ for (let e of n.keys) r.has(e) || r.set(e, {}), r.get(e).l = !0;
1357
+ } else e.issues.push(n);
1358
+ for (let t of n.issues) if (t.code === "unrecognized_keys") for (let e of t.keys) r.has(e) || r.set(e, {}), r.get(e).r = !0;
1359
+ else e.issues.push(t);
1360
+ let a = [...r].filter(([, e]) => e.l && e.r).map(([e]) => e);
1361
+ if (a.length && i && e.issues.push({
1362
+ ...i,
1363
+ keys: a
1364
+ }), S(e)) return e;
1365
+ let o = L(t.value, n.value);
1366
+ if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1367
+ return e.value = o.data, e;
1368
+ }
1369
+ var fn = /*@__PURE__*/ n("$ZodEnum", (e, t) => {
1370
+ N.init(e, t);
1371
+ let n = s(t.entries), r = new Set(n);
1372
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ae.has(typeof e)).map((e) => typeof e == "string" ? y(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1373
+ let a = t.value;
1374
+ return r.has(a) || t.issues.push({
1375
+ code: "invalid_value",
1376
+ values: n,
1377
+ input: a,
1378
+ inst: e
1379
+ }), t;
1380
+ };
1381
+ }), pn = /*@__PURE__*/ n("$ZodTransform", (e, t) => {
1382
+ N.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, a) => {
1383
+ if (a.direction === "backward") throw new i(e.constructor.name);
1384
+ let o = t.transform(n.value, n);
1385
+ if (a.async) return (o instanceof Promise ? o : Promise.resolve(o)).then((e) => (n.value = e, n.fallback = !0, n));
1386
+ if (o instanceof Promise) throw new r();
1387
+ return n.value = o, n.fallback = !0, n;
1388
+ };
1389
+ });
1390
+ function mn(e, t) {
1391
+ return t === void 0 && (e.issues.length || e.fallback) ? {
1392
+ issues: [],
1393
+ value: void 0
1394
+ } : e;
1395
+ }
1396
+ var hn = /*@__PURE__*/ n("$ZodOptional", (e, t) => {
1397
+ N.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
1398
+ let e = t.innerType._zod.pattern;
1399
+ return e ? RegExp(`^(${d(e.source)})?$`) : void 0;
1400
+ }), e._zod.parse = (e, n) => {
1401
+ if (t.innerType._zod.optin === "optional") {
1402
+ let r = e.value, i = t.innerType._zod.run(e, n);
1403
+ return i instanceof Promise ? i.then((e) => mn(e, r)) : mn(i, r);
1404
+ }
1405
+ return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1406
+ };
1407
+ }), gn = /*@__PURE__*/ n("$ZodExactOptional", (e, t) => {
1408
+ hn.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);
1409
+ }), _n = /*@__PURE__*/ n("$ZodNullable", (e, t) => {
1410
+ N.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
1411
+ let e = t.innerType._zod.pattern;
1412
+ return e ? RegExp(`^(${d(e.source)}|null)$`) : void 0;
1413
+ }), m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1414
+ }), vn = /*@__PURE__*/ n("$ZodDefault", (e, t) => {
1415
+ N.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1416
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1417
+ if (e.value === void 0) return e.value = t.defaultValue, e;
1418
+ let r = t.innerType._zod.run(e, n);
1419
+ return r instanceof Promise ? r.then((e) => yn(e, t)) : yn(r, t);
1420
+ };
1421
+ });
1422
+ function yn(e, t) {
1423
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1424
+ }
1425
+ var bn = /*@__PURE__*/ n("$ZodPrefault", (e, t) => {
1426
+ N.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));
1427
+ }), xn = /*@__PURE__*/ n("$ZodNonOptional", (e, t) => {
1428
+ N.init(e, t), m(e._zod, "values", () => {
1429
+ let e = t.innerType._zod.values;
1430
+ return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1431
+ }), e._zod.parse = (n, r) => {
1432
+ let i = t.innerType._zod.run(n, r);
1433
+ return i instanceof Promise ? i.then((t) => Sn(t, e)) : Sn(i, e);
1434
+ };
1435
+ });
1436
+ function Sn(e, t) {
1437
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1438
+ code: "invalid_type",
1439
+ expected: "nonoptional",
1440
+ input: e.value,
1441
+ inst: t
1442
+ }), e;
1443
+ }
1444
+ var Cn = /*@__PURE__*/ n("$ZodCatch", (e, t) => {
1445
+ N.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) => {
1446
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1447
+ let r = t.innerType._zod.run(e, n);
1448
+ return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1449
+ ...e,
1450
+ error: { issues: r.issues.map((e) => w(e, n, o())) },
1451
+ input: e.value
1452
+ }), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1453
+ ...e,
1454
+ error: { issues: r.issues.map((e) => w(e, n, o())) },
1455
+ input: e.value
1456
+ }), e.issues = [], e.fallback = !0), e);
1457
+ };
1458
+ }), wn = /*@__PURE__*/ n("$ZodPipe", (e, t) => {
1459
+ N.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) => {
1460
+ if (n.direction === "backward") {
1461
+ let r = t.out._zod.run(e, n);
1462
+ return r instanceof Promise ? r.then((e) => R(e, t.in, n)) : R(r, t.in, n);
1463
+ }
1464
+ let r = t.in._zod.run(e, n);
1465
+ return r instanceof Promise ? r.then((e) => R(e, t.out, n)) : R(r, t.out, n);
1466
+ };
1467
+ });
1468
+ function R(e, t, n) {
1469
+ return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1470
+ value: e.value,
1471
+ issues: e.issues,
1472
+ fallback: e.fallback
1473
+ }, n);
1474
+ }
1475
+ var Tn = /*@__PURE__*/ n("$ZodReadonly", (e, t) => {
1476
+ N.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) => {
1477
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1478
+ let r = t.innerType._zod.run(e, n);
1479
+ return r instanceof Promise ? r.then(En) : En(r);
1480
+ };
1481
+ });
1482
+ function En(e) {
1483
+ return e.value = Object.freeze(e.value), e;
1484
+ }
1485
+ var Dn = /*@__PURE__*/ n("$ZodCustom", (e, t) => {
1486
+ j.init(e, t), N.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1487
+ let r = n.value, i = t.fn(r);
1488
+ if (i instanceof Promise) return i.then((t) => On(t, n, r, e));
1489
+ On(i, n, r, e);
1490
+ };
1491
+ });
1492
+ function On(e, t, n, r) {
1493
+ if (!e) {
1494
+ let e = {
1495
+ code: "custom",
1496
+ input: n,
1497
+ inst: r,
1498
+ path: [...r._zod.def.path ?? []],
1499
+ continue: !r._zod.def.abort
1500
+ };
1501
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(E(e));
1502
+ }
1503
+ }
1504
+ //#endregion
1505
+ //#region ../node_modules/zod/v4/core/registries.js
1506
+ var kn, An = class {
1507
+ constructor() {
1508
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1509
+ }
1510
+ add(e, ...t) {
1511
+ let n = t[0];
1512
+ return this._map.set(e, n), n && typeof n == "object" && "id" in n && this._idmap.set(n.id, e), this;
1513
+ }
1514
+ clear() {
1515
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
1516
+ }
1517
+ remove(e) {
1518
+ let t = this._map.get(e);
1519
+ return t && typeof t == "object" && "id" in t && this._idmap.delete(t.id), this._map.delete(e), this;
1520
+ }
1521
+ get(e) {
1522
+ let t = e._zod.parent;
1523
+ if (t) {
1524
+ let n = { ...this.get(t) ?? {} };
1525
+ delete n.id;
1526
+ let r = {
1527
+ ...n,
1528
+ ...this._map.get(e)
1529
+ };
1530
+ return Object.keys(r).length ? r : void 0;
1531
+ }
1532
+ return this._map.get(e);
1533
+ }
1534
+ has(e) {
1535
+ return this._map.has(e);
1536
+ }
1537
+ };
1538
+ function jn() {
1539
+ return new An();
1540
+ }
1541
+ (kn = globalThis).__zod_globalRegistry ?? (kn.__zod_globalRegistry = jn());
1542
+ var z = globalThis.__zod_globalRegistry;
1543
+ //#endregion
1544
+ //#region ../node_modules/zod/v4/core/api.js
1545
+ // @__NO_SIDE_EFFECTS__
1546
+ function Mn(e, t) {
1547
+ return new e({
1548
+ type: "string",
1549
+ ...x(t)
1550
+ });
1551
+ }
1552
+ // @__NO_SIDE_EFFECTS__
1553
+ function Nn(e, t) {
1554
+ return new e({
1555
+ type: "string",
1556
+ format: "email",
1557
+ check: "string_format",
1558
+ abort: !1,
1559
+ ...x(t)
1560
+ });
1561
+ }
1562
+ // @__NO_SIDE_EFFECTS__
1563
+ function Pn(e, t) {
1564
+ return new e({
1565
+ type: "string",
1566
+ format: "guid",
1567
+ check: "string_format",
1568
+ abort: !1,
1569
+ ...x(t)
1570
+ });
1571
+ }
1572
+ // @__NO_SIDE_EFFECTS__
1573
+ function Fn(e, t) {
1574
+ return new e({
1575
+ type: "string",
1576
+ format: "uuid",
1577
+ check: "string_format",
1578
+ abort: !1,
1579
+ ...x(t)
1580
+ });
1581
+ }
1582
+ // @__NO_SIDE_EFFECTS__
1583
+ function In(e, t) {
1584
+ return new e({
1585
+ type: "string",
1586
+ format: "uuid",
1587
+ check: "string_format",
1588
+ abort: !1,
1589
+ version: "v4",
1590
+ ...x(t)
1591
+ });
1592
+ }
1593
+ // @__NO_SIDE_EFFECTS__
1594
+ function Ln(e, t) {
1595
+ return new e({
1596
+ type: "string",
1597
+ format: "uuid",
1598
+ check: "string_format",
1599
+ abort: !1,
1600
+ version: "v6",
1601
+ ...x(t)
1602
+ });
1603
+ }
1604
+ // @__NO_SIDE_EFFECTS__
1605
+ function Rn(e, t) {
1606
+ return new e({
1607
+ type: "string",
1608
+ format: "uuid",
1609
+ check: "string_format",
1610
+ abort: !1,
1611
+ version: "v7",
1612
+ ...x(t)
1613
+ });
1614
+ }
1615
+ // @__NO_SIDE_EFFECTS__
1616
+ function zn(e, t) {
1617
+ return new e({
1618
+ type: "string",
1619
+ format: "url",
1620
+ check: "string_format",
1621
+ abort: !1,
1622
+ ...x(t)
1623
+ });
1624
+ }
1625
+ // @__NO_SIDE_EFFECTS__
1626
+ function Bn(e, t) {
1627
+ return new e({
1628
+ type: "string",
1629
+ format: "emoji",
1630
+ check: "string_format",
1631
+ abort: !1,
1632
+ ...x(t)
1633
+ });
1634
+ }
1635
+ // @__NO_SIDE_EFFECTS__
1636
+ function Vn(e, t) {
1637
+ return new e({
1638
+ type: "string",
1639
+ format: "nanoid",
1640
+ check: "string_format",
1641
+ abort: !1,
1642
+ ...x(t)
1643
+ });
1644
+ }
1645
+ // @__NO_SIDE_EFFECTS__
1646
+ function Hn(e, t) {
1647
+ return new e({
1648
+ type: "string",
1649
+ format: "cuid",
1650
+ check: "string_format",
1651
+ abort: !1,
1652
+ ...x(t)
1653
+ });
1654
+ }
1655
+ // @__NO_SIDE_EFFECTS__
1656
+ function Un(e, t) {
1657
+ return new e({
1658
+ type: "string",
1659
+ format: "cuid2",
1660
+ check: "string_format",
1661
+ abort: !1,
1662
+ ...x(t)
1663
+ });
1664
+ }
1665
+ // @__NO_SIDE_EFFECTS__
1666
+ function Wn(e, t) {
1667
+ return new e({
1668
+ type: "string",
1669
+ format: "ulid",
1670
+ check: "string_format",
1671
+ abort: !1,
1672
+ ...x(t)
1673
+ });
1674
+ }
1675
+ // @__NO_SIDE_EFFECTS__
1676
+ function Gn(e, t) {
1677
+ return new e({
1678
+ type: "string",
1679
+ format: "xid",
1680
+ check: "string_format",
1681
+ abort: !1,
1682
+ ...x(t)
1683
+ });
1684
+ }
1685
+ // @__NO_SIDE_EFFECTS__
1686
+ function Kn(e, t) {
1687
+ return new e({
1688
+ type: "string",
1689
+ format: "ksuid",
1690
+ check: "string_format",
1691
+ abort: !1,
1692
+ ...x(t)
1693
+ });
1694
+ }
1695
+ // @__NO_SIDE_EFFECTS__
1696
+ function qn(e, t) {
1697
+ return new e({
1698
+ type: "string",
1699
+ format: "ipv4",
1700
+ check: "string_format",
1701
+ abort: !1,
1702
+ ...x(t)
1703
+ });
1704
+ }
1705
+ // @__NO_SIDE_EFFECTS__
1706
+ function Jn(e, t) {
1707
+ return new e({
1708
+ type: "string",
1709
+ format: "ipv6",
1710
+ check: "string_format",
1711
+ abort: !1,
1712
+ ...x(t)
1713
+ });
1714
+ }
1715
+ // @__NO_SIDE_EFFECTS__
1716
+ function Yn(e, t) {
1717
+ return new e({
1718
+ type: "string",
1719
+ format: "cidrv4",
1720
+ check: "string_format",
1721
+ abort: !1,
1722
+ ...x(t)
1723
+ });
1724
+ }
1725
+ // @__NO_SIDE_EFFECTS__
1726
+ function Xn(e, t) {
1727
+ return new e({
1728
+ type: "string",
1729
+ format: "cidrv6",
1730
+ check: "string_format",
1731
+ abort: !1,
1732
+ ...x(t)
1733
+ });
1734
+ }
1735
+ // @__NO_SIDE_EFFECTS__
1736
+ function Zn(e, t) {
1737
+ return new e({
1738
+ type: "string",
1739
+ format: "base64",
1740
+ check: "string_format",
1741
+ abort: !1,
1742
+ ...x(t)
1743
+ });
1744
+ }
1745
+ // @__NO_SIDE_EFFECTS__
1746
+ function Qn(e, t) {
1747
+ return new e({
1748
+ type: "string",
1749
+ format: "base64url",
1750
+ check: "string_format",
1751
+ abort: !1,
1752
+ ...x(t)
1753
+ });
1754
+ }
1755
+ // @__NO_SIDE_EFFECTS__
1756
+ function $n(e, t) {
1757
+ return new e({
1758
+ type: "string",
1759
+ format: "e164",
1760
+ check: "string_format",
1761
+ abort: !1,
1762
+ ...x(t)
1763
+ });
1764
+ }
1765
+ // @__NO_SIDE_EFFECTS__
1766
+ function er(e, t) {
1767
+ return new e({
1768
+ type: "string",
1769
+ format: "jwt",
1770
+ check: "string_format",
1771
+ abort: !1,
1772
+ ...x(t)
1773
+ });
1774
+ }
1775
+ // @__NO_SIDE_EFFECTS__
1776
+ function tr(e, t) {
1777
+ return new e({
1778
+ type: "string",
1779
+ format: "datetime",
1780
+ check: "string_format",
1781
+ offset: !1,
1782
+ local: !1,
1783
+ precision: null,
1784
+ ...x(t)
1785
+ });
1786
+ }
1787
+ // @__NO_SIDE_EFFECTS__
1788
+ function nr(e, t) {
1789
+ return new e({
1790
+ type: "string",
1791
+ format: "date",
1792
+ check: "string_format",
1793
+ ...x(t)
1794
+ });
1795
+ }
1796
+ // @__NO_SIDE_EFFECTS__
1797
+ function rr(e, t) {
1798
+ return new e({
1799
+ type: "string",
1800
+ format: "time",
1801
+ check: "string_format",
1802
+ precision: null,
1803
+ ...x(t)
1804
+ });
1805
+ }
1806
+ // @__NO_SIDE_EFFECTS__
1807
+ function ir(e, t) {
1808
+ return new e({
1809
+ type: "string",
1810
+ format: "duration",
1811
+ check: "string_format",
1812
+ ...x(t)
1813
+ });
1814
+ }
1815
+ // @__NO_SIDE_EFFECTS__
1816
+ function ar(e, t) {
1817
+ return new e({
1818
+ type: "number",
1819
+ checks: [],
1820
+ ...x(t)
1821
+ });
1822
+ }
1823
+ // @__NO_SIDE_EFFECTS__
1824
+ function or(e, t) {
1825
+ return new e({
1826
+ type: "number",
1827
+ check: "number_format",
1828
+ abort: !1,
1829
+ format: "safeint",
1830
+ ...x(t)
1831
+ });
1832
+ }
1833
+ // @__NO_SIDE_EFFECTS__
1834
+ function sr(e) {
1835
+ return new e({ type: "unknown" });
1836
+ }
1837
+ // @__NO_SIDE_EFFECTS__
1838
+ function cr(e, t) {
1839
+ return new e({
1840
+ type: "never",
1841
+ ...x(t)
1842
+ });
1843
+ }
1844
+ // @__NO_SIDE_EFFECTS__
1845
+ function lr(e, t) {
1846
+ return new lt({
1847
+ check: "less_than",
1848
+ ...x(t),
1849
+ value: e,
1850
+ inclusive: !1
1851
+ });
1852
+ }
1853
+ // @__NO_SIDE_EFFECTS__
1854
+ function B(e, t) {
1855
+ return new lt({
1856
+ check: "less_than",
1857
+ ...x(t),
1858
+ value: e,
1859
+ inclusive: !0
1860
+ });
1861
+ }
1862
+ // @__NO_SIDE_EFFECTS__
1863
+ function ur(e, t) {
1864
+ return new ut({
1865
+ check: "greater_than",
1866
+ ...x(t),
1867
+ value: e,
1868
+ inclusive: !1
1869
+ });
1870
+ }
1871
+ // @__NO_SIDE_EFFECTS__
1872
+ function V(e, t) {
1873
+ return new ut({
1874
+ check: "greater_than",
1875
+ ...x(t),
1876
+ value: e,
1877
+ inclusive: !0
1878
+ });
1879
+ }
1880
+ // @__NO_SIDE_EFFECTS__
1881
+ function dr(e, t) {
1882
+ return new dt({
1883
+ check: "multiple_of",
1884
+ ...x(t),
1885
+ value: e
1886
+ });
1887
+ }
1888
+ // @__NO_SIDE_EFFECTS__
1889
+ function fr(e, t) {
1890
+ return new pt({
1891
+ check: "max_length",
1892
+ ...x(t),
1893
+ maximum: e
1894
+ });
1895
+ }
1896
+ // @__NO_SIDE_EFFECTS__
1897
+ function H(e, t) {
1898
+ return new mt({
1899
+ check: "min_length",
1900
+ ...x(t),
1901
+ minimum: e
1902
+ });
1903
+ }
1904
+ // @__NO_SIDE_EFFECTS__
1905
+ function pr(e, t) {
1906
+ return new ht({
1907
+ check: "length_equals",
1908
+ ...x(t),
1909
+ length: e
1910
+ });
1911
+ }
1912
+ // @__NO_SIDE_EFFECTS__
1913
+ function mr(e, t) {
1914
+ return new gt({
1915
+ check: "string_format",
1916
+ format: "regex",
1917
+ ...x(t),
1918
+ pattern: e
1919
+ });
1920
+ }
1921
+ // @__NO_SIDE_EFFECTS__
1922
+ function hr(e) {
1923
+ return new _t({
1924
+ check: "string_format",
1925
+ format: "lowercase",
1926
+ ...x(e)
1927
+ });
1928
+ }
1929
+ // @__NO_SIDE_EFFECTS__
1930
+ function gr(e) {
1931
+ return new vt({
1932
+ check: "string_format",
1933
+ format: "uppercase",
1934
+ ...x(e)
1935
+ });
1936
+ }
1937
+ // @__NO_SIDE_EFFECTS__
1938
+ function _r(e, t) {
1939
+ return new yt({
1940
+ check: "string_format",
1941
+ format: "includes",
1942
+ ...x(t),
1943
+ includes: e
1944
+ });
1945
+ }
1946
+ // @__NO_SIDE_EFFECTS__
1947
+ function vr(e, t) {
1948
+ return new bt({
1949
+ check: "string_format",
1950
+ format: "starts_with",
1951
+ ...x(t),
1952
+ prefix: e
1953
+ });
1954
+ }
1955
+ // @__NO_SIDE_EFFECTS__
1956
+ function yr(e, t) {
1957
+ return new xt({
1958
+ check: "string_format",
1959
+ format: "ends_with",
1960
+ ...x(t),
1961
+ suffix: e
1962
+ });
1963
+ }
1964
+ // @__NO_SIDE_EFFECTS__
1965
+ function U(e) {
1966
+ return new St({
1967
+ check: "overwrite",
1968
+ tx: e
1969
+ });
1970
+ }
1971
+ // @__NO_SIDE_EFFECTS__
1972
+ function br(e) {
1973
+ return /* @__PURE__ */ U((t) => t.normalize(e));
1974
+ }
1975
+ // @__NO_SIDE_EFFECTS__
1976
+ function xr() {
1977
+ return /* @__PURE__ */ U((e) => e.trim());
1978
+ }
1979
+ // @__NO_SIDE_EFFECTS__
1980
+ function Sr() {
1981
+ return /* @__PURE__ */ U((e) => e.toLowerCase());
1982
+ }
1983
+ // @__NO_SIDE_EFFECTS__
1984
+ function Cr() {
1985
+ return /* @__PURE__ */ U((e) => e.toUpperCase());
1986
+ }
1987
+ // @__NO_SIDE_EFFECTS__
1988
+ function wr() {
1989
+ return /* @__PURE__ */ U((e) => te(e));
1990
+ }
1991
+ // @__NO_SIDE_EFFECTS__
1992
+ function Tr(e, t, n) {
1993
+ return new e({
1994
+ type: "array",
1995
+ element: t,
1996
+ ...x(n)
1997
+ });
1998
+ }
1999
+ // @__NO_SIDE_EFFECTS__
2000
+ function Er(e, t, n) {
2001
+ let r = x(n);
2002
+ return r.abort ??= !0, new e({
2003
+ type: "custom",
2004
+ check: "custom",
2005
+ fn: t,
2006
+ ...r
2007
+ });
2008
+ }
2009
+ // @__NO_SIDE_EFFECTS__
2010
+ function Dr(e, t, n) {
2011
+ return new e({
2012
+ type: "custom",
2013
+ check: "custom",
2014
+ fn: t,
2015
+ ...x(n)
2016
+ });
2017
+ }
2018
+ // @__NO_SIDE_EFFECTS__
2019
+ function Or(e, t) {
2020
+ let n = /* @__PURE__ */ kr((t) => (t.addIssue = (e) => {
2021
+ if (typeof e == "string") t.issues.push(E(e, t.value, n._zod.def));
2022
+ else {
2023
+ let r = e;
2024
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(E(r));
2025
+ }
2026
+ }, e(t.value, t)), t);
2027
+ return n;
2028
+ }
2029
+ // @__NO_SIDE_EFFECTS__
2030
+ function kr(e, t) {
2031
+ let n = new j({
2032
+ check: "custom",
2033
+ ...x(t)
2034
+ });
2035
+ return n._zod.check = e, n;
2036
+ }
2037
+ //#endregion
2038
+ //#region ../node_modules/zod/v4/core/to-json-schema.js
2039
+ function Ar(e) {
2040
+ let t = e?.target ?? "draft-2020-12";
2041
+ return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2042
+ processors: e.processors ?? {},
2043
+ metadataRegistry: e?.metadata ?? z,
2044
+ target: t,
2045
+ unrepresentable: e?.unrepresentable ?? "throw",
2046
+ override: e?.override ?? (() => {}),
2047
+ io: e?.io ?? "output",
2048
+ counter: 0,
2049
+ seen: /* @__PURE__ */ new Map(),
2050
+ cycles: e?.cycles ?? "ref",
2051
+ reused: e?.reused ?? "inline",
2052
+ external: e?.external ?? void 0
2053
+ };
2054
+ }
2055
+ function W(e, t, n = {
2056
+ path: [],
2057
+ schemaPath: []
2058
+ }) {
2059
+ var r;
2060
+ let i = e._zod.def, a = t.seen.get(e);
2061
+ if (a) return a.count++, n.schemaPath.includes(e) && (a.cycle = n.path), a.schema;
2062
+ let o = {
2063
+ schema: {},
2064
+ count: 1,
2065
+ cycle: void 0,
2066
+ path: n.path
2067
+ };
2068
+ t.seen.set(e, o);
2069
+ let s = e._zod.toJSONSchema?.();
2070
+ if (s) o.schema = s;
2071
+ else {
2072
+ let r = {
2073
+ ...n,
2074
+ schemaPath: [...n.schemaPath, e],
2075
+ path: n.path
2076
+ };
2077
+ if (e._zod.processJSONSchema) e._zod.processJSONSchema(t, o.schema, r);
2078
+ else {
2079
+ let n = o.schema, a = t.processors[i.type];
2080
+ if (!a) throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);
2081
+ a(e, t, n, r);
2082
+ }
2083
+ let a = e._zod.parent;
2084
+ a && (o.ref ||= a, W(a, t, r), t.seen.get(a).isParent = !0);
2085
+ }
2086
+ let c = t.metadataRegistry.get(e);
2087
+ return c && Object.assign(o.schema, c), t.io === "input" && G(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;
2088
+ }
2089
+ function jr(e, t) {
2090
+ let n = e.seen.get(t);
2091
+ if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2092
+ let r = /* @__PURE__ */ new Map();
2093
+ for (let t of e.seen.entries()) {
2094
+ let n = e.metadataRegistry.get(t[0])?.id;
2095
+ if (n) {
2096
+ let e = r.get(n);
2097
+ if (e && e !== t[0]) throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
2098
+ r.set(n, t[0]);
2099
+ }
2100
+ }
2101
+ let i = (t) => {
2102
+ let r = e.target === "draft-2020-12" ? "$defs" : "definitions";
2103
+ if (e.external) {
2104
+ let n = e.external.registry.get(t[0])?.id, i = e.external.uri ?? ((e) => e);
2105
+ if (n) return { ref: i(n) };
2106
+ let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
2107
+ return t[1].defId = a, {
2108
+ defId: a,
2109
+ ref: `${i("__shared")}#/${r}/${a}`
2110
+ };
2111
+ }
2112
+ if (t[1] === n) return { ref: "#" };
2113
+ let i = `#/${r}/`, a = t[1].schema.id ?? `__schema${e.counter++}`;
2114
+ return {
2115
+ defId: a,
2116
+ ref: i + a
2117
+ };
2118
+ }, a = (e) => {
2119
+ if (e[1].schema.$ref) return;
2120
+ let t = e[1], { ref: n, defId: r } = i(e);
2121
+ t.def = { ...t.schema }, r && (t.defId = r);
2122
+ let a = t.schema;
2123
+ for (let e in a) delete a[e];
2124
+ a.$ref = n;
2125
+ };
2126
+ if (e.cycles === "throw") for (let t of e.seen.entries()) {
2127
+ let e = t[1];
2128
+ if (e.cycle) throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
2129
+
2130
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`);
2131
+ }
2132
+ for (let n of e.seen.entries()) {
2133
+ let r = n[1];
2134
+ if (t === n[0]) {
2135
+ a(n);
2136
+ continue;
2137
+ }
2138
+ if (e.external) {
2139
+ let r = e.external.registry.get(n[0])?.id;
2140
+ if (t !== n[0] && r) {
2141
+ a(n);
2142
+ continue;
2143
+ }
2144
+ }
2145
+ if (e.metadataRegistry.get(n[0])?.id) {
2146
+ a(n);
2147
+ continue;
2148
+ }
2149
+ if (r.cycle) {
2150
+ a(n);
2151
+ continue;
2152
+ }
2153
+ if (r.count > 1 && e.reused === "ref") {
2154
+ a(n);
2155
+ continue;
2156
+ }
2157
+ }
2158
+ }
2159
+ function Mr(e, t) {
2160
+ let n = e.seen.get(t);
2161
+ if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2162
+ let r = (t) => {
2163
+ let n = e.seen.get(t);
2164
+ if (n.ref === null) return;
2165
+ let i = n.def ?? n.schema, a = { ...i }, o = n.ref;
2166
+ if (n.ref = null, o) {
2167
+ r(o);
2168
+ let n = e.seen.get(o), s = n.schema;
2169
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Object.assign(i, s), Object.assign(i, a), t._zod.parent === o) for (let e in i) e === "$ref" || e === "allOf" || e in a || delete i[e];
2170
+ if (s.$ref && n.def) for (let e in i) e === "$ref" || e === "allOf" || e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
2171
+ }
2172
+ let s = t._zod.parent;
2173
+ if (s && s !== o) {
2174
+ r(s);
2175
+ let t = e.seen.get(s);
2176
+ if (t?.schema.$ref && (i.$ref = t.schema.$ref, t.def)) for (let e in i) e === "$ref" || e === "allOf" || e in t.def && JSON.stringify(i[e]) === JSON.stringify(t.def[e]) && delete i[e];
2177
+ }
2178
+ e.override({
2179
+ zodSchema: t,
2180
+ jsonSchema: i,
2181
+ path: n.path ?? []
2182
+ });
2183
+ };
2184
+ for (let t of [...e.seen.entries()].reverse()) r(t[0]);
2185
+ let i = {};
2186
+ if (e.target === "draft-2020-12" ? i.$schema = "https://json-schema.org/draft/2020-12/schema" : e.target === "draft-07" ? i.$schema = "http://json-schema.org/draft-07/schema#" : e.target === "draft-04" ? i.$schema = "http://json-schema.org/draft-04/schema#" : e.target, e.external?.uri) {
2187
+ let n = e.external.registry.get(t)?.id;
2188
+ if (!n) throw Error("Schema is missing an `id` property");
2189
+ i.$id = e.external.uri(n);
2190
+ }
2191
+ Object.assign(i, n.def ?? n.schema);
2192
+ let a = e.metadataRegistry.get(t)?.id;
2193
+ a !== void 0 && i.id === a && delete i.id;
2194
+ let o = e.external?.defs ?? {};
2195
+ for (let t of e.seen.entries()) {
2196
+ let e = t[1];
2197
+ e.def && e.defId && (e.def.id === e.defId && delete e.def.id, o[e.defId] = e.def);
2198
+ }
2199
+ e.external || Object.keys(o).length > 0 && (e.target === "draft-2020-12" ? i.$defs = o : i.definitions = o);
2200
+ try {
2201
+ let n = JSON.parse(JSON.stringify(i));
2202
+ return Object.defineProperty(n, "~standard", {
2203
+ value: {
2204
+ ...t["~standard"],
2205
+ jsonSchema: {
2206
+ input: K(t, "input", e.processors),
2207
+ output: K(t, "output", e.processors)
2208
+ }
2209
+ },
2210
+ enumerable: !1,
2211
+ writable: !1
2212
+ }), n;
2213
+ } catch {
2214
+ throw Error("Error converting schema to JSON.");
2215
+ }
2216
+ }
2217
+ function G(e, t) {
2218
+ let n = t ?? { seen: /* @__PURE__ */ new Set() };
2219
+ if (n.seen.has(e)) return !1;
2220
+ n.seen.add(e);
2221
+ let r = e._zod.def;
2222
+ if (r.type === "transform") return !0;
2223
+ if (r.type === "array") return G(r.element, n);
2224
+ if (r.type === "set") return G(r.valueType, n);
2225
+ if (r.type === "lazy") return G(r.getter(), n);
2226
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return G(r.innerType, n);
2227
+ if (r.type === "intersection") return G(r.left, n) || G(r.right, n);
2228
+ if (r.type === "record" || r.type === "map") return G(r.keyType, n) || G(r.valueType, n);
2229
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : G(r.in, n) || G(r.out, n);
2230
+ if (r.type === "object") {
2231
+ for (let e in r.shape) if (G(r.shape[e], n)) return !0;
2232
+ return !1;
2233
+ }
2234
+ if (r.type === "union") {
2235
+ for (let e of r.options) if (G(e, n)) return !0;
2236
+ return !1;
2237
+ }
2238
+ if (r.type === "tuple") {
2239
+ for (let e of r.items) if (G(e, n)) return !0;
2240
+ return !!(r.rest && G(r.rest, n));
2241
+ }
2242
+ return !1;
2243
+ }
2244
+ var Nr = (e, t = {}) => (n) => {
2245
+ let r = Ar({
2246
+ ...n,
2247
+ processors: t
2248
+ });
2249
+ return W(e, r), jr(r, e), Mr(r, e);
2250
+ }, K = (e, t, n = {}) => (r) => {
2251
+ let { libraryOptions: i, target: a } = r ?? {}, o = Ar({
2252
+ ...i ?? {},
2253
+ target: a,
2254
+ io: t,
2255
+ processors: n
2256
+ });
2257
+ return W(e, o), jr(o, e), Mr(o, e);
2258
+ }, Pr = {
2259
+ guid: "uuid",
2260
+ url: "uri",
2261
+ datetime: "date-time",
2262
+ json_string: "json-string",
2263
+ regex: ""
2264
+ }, Fr = (e, t, n, r) => {
2265
+ let i = n;
2266
+ i.type = "string";
2267
+ let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2268
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = Pr[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2269
+ let e = [...c];
2270
+ e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2271
+ ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2272
+ pattern: e.source
2273
+ }))]);
2274
+ }
2275
+ }, Ir = (e, t, n, r) => {
2276
+ let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
2277
+ typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
2278
+ let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
2279
+ d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
2280
+ }, Lr = (e, t, n, r) => {
2281
+ n.not = {};
2282
+ }, Rr = (e, t, n, r) => {
2283
+ let i = e._zod.def, a = s(i.entries);
2284
+ a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
2285
+ }, zr = (e, t, n, r) => {
2286
+ if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2287
+ }, Br = (e, t, n, r) => {
2288
+ if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2289
+ }, Vr = (e, t, n, r) => {
2290
+ let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2291
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = W(a.element, t, {
2292
+ ...r,
2293
+ path: [...r.path, "items"]
2294
+ });
2295
+ }, Hr = (e, t, n, r) => {
2296
+ let i = n, a = e._zod.def;
2297
+ i.type = "object", i.properties = {};
2298
+ let o = a.shape;
2299
+ for (let e in o) i.properties[e] = W(o[e], t, {
2300
+ ...r,
2301
+ path: [
2302
+ ...r.path,
2303
+ "properties",
2304
+ e
2305
+ ]
2306
+ });
2307
+ let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
2308
+ let n = a.shape[e]._zod;
2309
+ return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
2310
+ }));
2311
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = W(a.catchall, t, {
2312
+ ...r,
2313
+ path: [...r.path, "additionalProperties"]
2314
+ })) : t.io === "output" && (i.additionalProperties = !1);
2315
+ }, Ur = (e, t, n, r) => {
2316
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => W(e, t, {
2317
+ ...r,
2318
+ path: [
2319
+ ...r.path,
2320
+ a ? "oneOf" : "anyOf",
2321
+ n
2322
+ ]
2323
+ }));
2324
+ a ? n.oneOf = o : n.anyOf = o;
2325
+ }, Wr = (e, t, n, r) => {
2326
+ let i = e._zod.def, a = W(i.left, t, {
2327
+ ...r,
2328
+ path: [
2329
+ ...r.path,
2330
+ "allOf",
2331
+ 0
2332
+ ]
2333
+ }), o = W(i.right, t, {
2334
+ ...r,
2335
+ path: [
2336
+ ...r.path,
2337
+ "allOf",
2338
+ 1
2339
+ ]
2340
+ }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2341
+ n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2342
+ }, Gr = (e, t, n, r) => {
2343
+ let i = e._zod.def, a = W(i.innerType, t, r), o = t.seen.get(e);
2344
+ t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2345
+ }, Kr = (e, t, n, r) => {
2346
+ let i = e._zod.def;
2347
+ W(i.innerType, t, r);
2348
+ let a = t.seen.get(e);
2349
+ a.ref = i.innerType;
2350
+ }, qr = (e, t, n, r) => {
2351
+ let i = e._zod.def;
2352
+ W(i.innerType, t, r);
2353
+ let a = t.seen.get(e);
2354
+ a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2355
+ }, Jr = (e, t, n, r) => {
2356
+ let i = e._zod.def;
2357
+ W(i.innerType, t, r);
2358
+ let a = t.seen.get(e);
2359
+ a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2360
+ }, Yr = (e, t, n, r) => {
2361
+ let i = e._zod.def;
2362
+ W(i.innerType, t, r);
2363
+ let a = t.seen.get(e);
2364
+ a.ref = i.innerType;
2365
+ let o;
2366
+ try {
2367
+ o = i.catchValue(void 0);
2368
+ } catch {
2369
+ throw Error("Dynamic catch values are not supported in JSON Schema");
2370
+ }
2371
+ n.default = o;
2372
+ }, Xr = (e, t, n, r) => {
2373
+ let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
2374
+ W(o, t, r);
2375
+ let s = t.seen.get(e);
2376
+ s.ref = o;
2377
+ }, Zr = (e, t, n, r) => {
2378
+ let i = e._zod.def;
2379
+ W(i.innerType, t, r);
2380
+ let a = t.seen.get(e);
2381
+ a.ref = i.innerType, n.readOnly = !0;
2382
+ }, Qr = (e, t, n, r) => {
2383
+ let i = e._zod.def;
2384
+ W(i.innerType, t, r);
2385
+ let a = t.seen.get(e);
2386
+ a.ref = i.innerType;
2387
+ }, $r = /*@__PURE__*/ n("ZodISODateTime", (e, t) => {
2388
+ It.init(e, t), X.init(e, t);
2389
+ });
2390
+ function ei(e) {
2391
+ return /* @__PURE__ */ tr($r, e);
2392
+ }
2393
+ var ti = /*@__PURE__*/ n("ZodISODate", (e, t) => {
2394
+ Lt.init(e, t), X.init(e, t);
2395
+ });
2396
+ function ni(e) {
2397
+ return /* @__PURE__ */ nr(ti, e);
2398
+ }
2399
+ var ri = /*@__PURE__*/ n("ZodISOTime", (e, t) => {
2400
+ Rt.init(e, t), X.init(e, t);
2401
+ });
2402
+ function ii(e) {
2403
+ return /* @__PURE__ */ rr(ri, e);
2404
+ }
2405
+ var ai = /*@__PURE__*/ n("ZodISODuration", (e, t) => {
2406
+ zt.init(e, t), X.init(e, t);
2407
+ });
2408
+ function oi(e) {
2409
+ return /* @__PURE__ */ ir(ai, e);
2410
+ }
2411
+ var q = /*@__PURE__*/ n("ZodError", (e, t) => {
2412
+ ve.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2413
+ format: { value: (t) => xe(e, t) },
2414
+ flatten: { value: (t) => be(e, t) },
2415
+ addIssue: { value: (t) => {
2416
+ e.issues.push(t), e.message = JSON.stringify(e.issues, c, 2);
2417
+ } },
2418
+ addIssues: { value: (t) => {
2419
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, c, 2);
2420
+ } },
2421
+ isEmpty: { get() {
2422
+ return e.issues.length === 0;
2423
+ } }
2424
+ });
2425
+ }, { Parent: Error }), si = /* @__PURE__ */ D(q), ci = /* @__PURE__ */ O(q), li = /* @__PURE__ */ k(q), ui = /* @__PURE__ */ A(q), di = /* @__PURE__ */ we(q), fi = /* @__PURE__ */ Te(q), pi = /* @__PURE__ */ Ee(q), mi = /* @__PURE__ */ De(q), hi = /* @__PURE__ */ Oe(q), gi = /* @__PURE__ */ ke(q), _i = /* @__PURE__ */ Ae(q), vi = /* @__PURE__ */ je(q), yi = /* @__PURE__ */ new WeakMap();
2426
+ function J(e, t, n) {
2427
+ let r = Object.getPrototypeOf(e), i = yi.get(r);
2428
+ if (i || (i = /* @__PURE__ */ new Set(), yi.set(r, i)), !i.has(t)) {
2429
+ i.add(t);
2430
+ for (let e in n) {
2431
+ let t = n[e];
2432
+ Object.defineProperty(r, e, {
2433
+ configurable: !0,
2434
+ enumerable: !1,
2435
+ get() {
2436
+ let n = t.bind(this);
2437
+ return Object.defineProperty(this, e, {
2438
+ configurable: !0,
2439
+ writable: !0,
2440
+ enumerable: !0,
2441
+ value: n
2442
+ }), n;
2443
+ },
2444
+ set(t) {
2445
+ Object.defineProperty(this, e, {
2446
+ configurable: !0,
2447
+ writable: !0,
2448
+ enumerable: !0,
2449
+ value: t
2450
+ });
2451
+ }
2452
+ });
2453
+ }
2454
+ }
2455
+ }
2456
+ var Y = /*@__PURE__*/ n("ZodType", (e, t) => (N.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2457
+ input: K(e, "input"),
2458
+ output: K(e, "output")
2459
+ } }), e.toJSONSchema = Nr(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => si(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => li(e, t, n), e.parseAsync = async (t, n) => ci(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => ui(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => di(e, t, n), e.decode = (t, n) => fi(e, t, n), e.encodeAsync = async (t, n) => pi(e, t, n), e.decodeAsync = async (t, n) => mi(e, t, n), e.safeEncode = (t, n) => hi(e, t, n), e.safeDecode = (t, n) => gi(e, t, n), e.safeEncodeAsync = async (t, n) => _i(e, t, n), e.safeDecodeAsync = async (t, n) => vi(e, t, n), J(e, "ZodType", {
2460
+ check(...e) {
2461
+ let t = this.def;
2462
+ return this.clone(g(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
2463
+ check: e,
2464
+ def: { check: "custom" },
2465
+ onattach: []
2466
+ } } : e)] }), { parent: !0 });
2467
+ },
2468
+ with(...e) {
2469
+ return this.check(...e);
2470
+ },
2471
+ clone(e, t) {
2472
+ return b(this, e, t);
2473
+ },
2474
+ brand() {
2475
+ return this;
2476
+ },
2477
+ register(e, t) {
2478
+ return e.add(this, t), this;
2479
+ },
2480
+ refine(e, t) {
2481
+ return this.check(Ta(e, t));
2482
+ },
2483
+ superRefine(e, t) {
2484
+ return this.check(Ea(e, t));
2485
+ },
2486
+ overwrite(e) {
2487
+ return this.check(/* @__PURE__ */ U(e));
2488
+ },
2489
+ optional() {
2490
+ return oa(this);
2491
+ },
2492
+ exactOptional() {
2493
+ return ca(this);
2494
+ },
2495
+ nullable() {
2496
+ return ua(this);
2497
+ },
2498
+ nullish() {
2499
+ return oa(ua(this));
2500
+ },
2501
+ nonoptional(e) {
2502
+ return ga(this, e);
2503
+ },
2504
+ array() {
2505
+ return Yi(this);
2506
+ },
2507
+ or(e) {
2508
+ return $i([this, e]);
2509
+ },
2510
+ and(e) {
2511
+ return ta(this, e);
2512
+ },
2513
+ transform(e) {
2514
+ return ba(this, ia(e));
2515
+ },
2516
+ default(e) {
2517
+ return fa(this, e);
2518
+ },
2519
+ prefault(e) {
2520
+ return ma(this, e);
2521
+ },
2522
+ catch(e) {
2523
+ return va(this, e);
2524
+ },
2525
+ pipe(e) {
2526
+ return ba(this, e);
2527
+ },
2528
+ readonly() {
2529
+ return Sa(this);
2530
+ },
2531
+ describe(e) {
2532
+ let t = this.clone();
2533
+ return z.add(t, { description: e }), t;
2534
+ },
2535
+ meta(...e) {
2536
+ if (e.length === 0) return z.get(this);
2537
+ let t = this.clone();
2538
+ return z.add(t, e[0]), t;
2539
+ },
2540
+ isOptional() {
2541
+ return this.safeParse(void 0).success;
2542
+ },
2543
+ isNullable() {
2544
+ return this.safeParse(null).success;
2545
+ },
2546
+ apply(e) {
2547
+ return e(this);
2548
+ }
2549
+ }), Object.defineProperty(e, "description", {
2550
+ get() {
2551
+ return z.get(e)?.description;
2552
+ },
2553
+ configurable: !0
2554
+ }), e)), bi = /*@__PURE__*/ n("_ZodString", (e, t) => {
2555
+ P.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fr(e, t, n, r);
2556
+ let n = e._zod.bag;
2557
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, J(e, "_ZodString", {
2558
+ regex(...e) {
2559
+ return this.check(/* @__PURE__ */ mr(...e));
2560
+ },
2561
+ includes(...e) {
2562
+ return this.check(/* @__PURE__ */ _r(...e));
2563
+ },
2564
+ startsWith(...e) {
2565
+ return this.check(/* @__PURE__ */ vr(...e));
2566
+ },
2567
+ endsWith(...e) {
2568
+ return this.check(/* @__PURE__ */ yr(...e));
2569
+ },
2570
+ min(...e) {
2571
+ return this.check(/* @__PURE__ */ H(...e));
2572
+ },
2573
+ max(...e) {
2574
+ return this.check(/* @__PURE__ */ fr(...e));
2575
+ },
2576
+ length(...e) {
2577
+ return this.check(/* @__PURE__ */ pr(...e));
2578
+ },
2579
+ nonempty(...e) {
2580
+ return this.check(/* @__PURE__ */ H(1, ...e));
2581
+ },
2582
+ lowercase(e) {
2583
+ return this.check(/* @__PURE__ */ hr(e));
2584
+ },
2585
+ uppercase(e) {
2586
+ return this.check(/* @__PURE__ */ gr(e));
2587
+ },
2588
+ trim() {
2589
+ return this.check(/* @__PURE__ */ xr());
2590
+ },
2591
+ normalize(...e) {
2592
+ return this.check(/* @__PURE__ */ br(...e));
2593
+ },
2594
+ toLowerCase() {
2595
+ return this.check(/* @__PURE__ */ Sr());
2596
+ },
2597
+ toUpperCase() {
2598
+ return this.check(/* @__PURE__ */ Cr());
2599
+ },
2600
+ slugify() {
2601
+ return this.check(/* @__PURE__ */ wr());
2602
+ }
2603
+ });
2604
+ }), xi = /*@__PURE__*/ n("ZodString", (e, t) => {
2605
+ P.init(e, t), bi.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Nn(Ci, t)), e.url = (t) => e.check(/* @__PURE__ */ zn(Ti, t)), e.jwt = (t) => e.check(/* @__PURE__ */ er(Bi, t)), e.emoji = (t) => e.check(/* @__PURE__ */ Bn(Ei, t)), e.guid = (t) => e.check(/* @__PURE__ */ Pn(wi, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Fn(Z, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ In(Z, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ Ln(Z, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ Rn(Z, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ Vn(Di, t)), e.guid = (t) => e.check(/* @__PURE__ */ Pn(wi, t)), e.cuid = (t) => e.check(/* @__PURE__ */ Hn(Oi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ Un(ki, t)), e.ulid = (t) => e.check(/* @__PURE__ */ Wn(Ai, t)), e.base64 = (t) => e.check(/* @__PURE__ */ Zn(Li, t)), e.base64url = (t) => e.check(/* @__PURE__ */ Qn(Ri, t)), e.xid = (t) => e.check(/* @__PURE__ */ Gn(ji, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ Kn(Mi, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ qn(Ni, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ Jn(Pi, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ Yn(Fi, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ Xn(Ii, t)), e.e164 = (t) => e.check(/* @__PURE__ */ $n(zi, t)), e.datetime = (t) => e.check(ei(t)), e.date = (t) => e.check(ni(t)), e.time = (t) => e.check(ii(t)), e.duration = (t) => e.check(oi(t));
2606
+ });
2607
+ function Si(e) {
2608
+ return /* @__PURE__ */ Mn(xi, e);
2609
+ }
2610
+ var X = /*@__PURE__*/ n("ZodStringFormat", (e, t) => {
2611
+ F.init(e, t), bi.init(e, t);
2612
+ }), Ci = /*@__PURE__*/ n("ZodEmail", (e, t) => {
2613
+ Dt.init(e, t), X.init(e, t);
2614
+ }), wi = /*@__PURE__*/ n("ZodGUID", (e, t) => {
2615
+ Tt.init(e, t), X.init(e, t);
2616
+ }), Z = /*@__PURE__*/ n("ZodUUID", (e, t) => {
2617
+ Et.init(e, t), X.init(e, t);
2618
+ }), Ti = /*@__PURE__*/ n("ZodURL", (e, t) => {
2619
+ Ot.init(e, t), X.init(e, t);
2620
+ }), Ei = /*@__PURE__*/ n("ZodEmoji", (e, t) => {
2621
+ kt.init(e, t), X.init(e, t);
2622
+ }), Di = /*@__PURE__*/ n("ZodNanoID", (e, t) => {
2623
+ At.init(e, t), X.init(e, t);
2624
+ }), Oi = /*@__PURE__*/ n("ZodCUID", (e, t) => {
2625
+ jt.init(e, t), X.init(e, t);
2626
+ }), ki = /*@__PURE__*/ n("ZodCUID2", (e, t) => {
2627
+ Mt.init(e, t), X.init(e, t);
2628
+ }), Ai = /*@__PURE__*/ n("ZodULID", (e, t) => {
2629
+ Nt.init(e, t), X.init(e, t);
2630
+ }), ji = /*@__PURE__*/ n("ZodXID", (e, t) => {
2631
+ Pt.init(e, t), X.init(e, t);
2632
+ }), Mi = /*@__PURE__*/ n("ZodKSUID", (e, t) => {
2633
+ Ft.init(e, t), X.init(e, t);
2634
+ }), Ni = /*@__PURE__*/ n("ZodIPv4", (e, t) => {
2635
+ Bt.init(e, t), X.init(e, t);
2636
+ }), Pi = /*@__PURE__*/ n("ZodIPv6", (e, t) => {
2637
+ Vt.init(e, t), X.init(e, t);
2638
+ }), Fi = /*@__PURE__*/ n("ZodCIDRv4", (e, t) => {
2639
+ Ht.init(e, t), X.init(e, t);
2640
+ }), Ii = /*@__PURE__*/ n("ZodCIDRv6", (e, t) => {
2641
+ Ut.init(e, t), X.init(e, t);
2642
+ }), Li = /*@__PURE__*/ n("ZodBase64", (e, t) => {
2643
+ Gt.init(e, t), X.init(e, t);
2644
+ }), Ri = /*@__PURE__*/ n("ZodBase64URL", (e, t) => {
2645
+ qt.init(e, t), X.init(e, t);
2646
+ }), zi = /*@__PURE__*/ n("ZodE164", (e, t) => {
2647
+ Jt.init(e, t), X.init(e, t);
2648
+ }), Bi = /*@__PURE__*/ n("ZodJWT", (e, t) => {
2649
+ Xt.init(e, t), X.init(e, t);
2650
+ }), Vi = /*@__PURE__*/ n("ZodNumber", (e, t) => {
2651
+ Zt.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ir(e, t, n, r), J(e, "ZodNumber", {
2652
+ gt(e, t) {
2653
+ return this.check(/* @__PURE__ */ ur(e, t));
2654
+ },
2655
+ gte(e, t) {
2656
+ return this.check(/* @__PURE__ */ V(e, t));
2657
+ },
2658
+ min(e, t) {
2659
+ return this.check(/* @__PURE__ */ V(e, t));
2660
+ },
2661
+ lt(e, t) {
2662
+ return this.check(/* @__PURE__ */ lr(e, t));
2663
+ },
2664
+ lte(e, t) {
2665
+ return this.check(/* @__PURE__ */ B(e, t));
2666
+ },
2667
+ max(e, t) {
2668
+ return this.check(/* @__PURE__ */ B(e, t));
2669
+ },
2670
+ int(e) {
2671
+ return this.check(Wi(e));
2672
+ },
2673
+ safe(e) {
2674
+ return this.check(Wi(e));
2675
+ },
2676
+ positive(e) {
2677
+ return this.check(/* @__PURE__ */ ur(0, e));
2678
+ },
2679
+ nonnegative(e) {
2680
+ return this.check(/* @__PURE__ */ V(0, e));
2681
+ },
2682
+ negative(e) {
2683
+ return this.check(/* @__PURE__ */ lr(0, e));
2684
+ },
2685
+ nonpositive(e) {
2686
+ return this.check(/* @__PURE__ */ B(0, e));
2687
+ },
2688
+ multipleOf(e, t) {
2689
+ return this.check(/* @__PURE__ */ dr(e, t));
2690
+ },
2691
+ step(e, t) {
2692
+ return this.check(/* @__PURE__ */ dr(e, t));
2693
+ },
2694
+ finite() {
2695
+ return this;
2696
+ }
2697
+ });
2698
+ let n = e._zod.bag;
2699
+ 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;
2700
+ });
2701
+ function Hi(e) {
2702
+ return /* @__PURE__ */ ar(Vi, e);
2703
+ }
2704
+ var Ui = /*@__PURE__*/ n("ZodNumberFormat", (e, t) => {
2705
+ Qt.init(e, t), Vi.init(e, t);
2706
+ });
2707
+ function Wi(e) {
2708
+ return /* @__PURE__ */ or(Ui, e);
2709
+ }
2710
+ var Gi = /*@__PURE__*/ n("ZodUnknown", (e, t) => {
2711
+ $t.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2712
+ });
2713
+ function Q() {
2714
+ return /* @__PURE__ */ sr(Gi);
2715
+ }
2716
+ var Ki = /*@__PURE__*/ n("ZodNever", (e, t) => {
2717
+ en.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lr(e, t, n, r);
2718
+ });
2719
+ function qi(e) {
2720
+ return /* @__PURE__ */ cr(Ki, e);
2721
+ }
2722
+ var Ji = /*@__PURE__*/ n("ZodArray", (e, t) => {
2723
+ nn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vr(e, t, n, r), e.element = t.element, J(e, "ZodArray", {
2724
+ min(e, t) {
2725
+ return this.check(/* @__PURE__ */ H(e, t));
2726
+ },
2727
+ nonempty(e) {
2728
+ return this.check(/* @__PURE__ */ H(1, e));
2729
+ },
2730
+ max(e, t) {
2731
+ return this.check(/* @__PURE__ */ fr(e, t));
2732
+ },
2733
+ length(e, t) {
2734
+ return this.check(/* @__PURE__ */ pr(e, t));
2735
+ },
2736
+ unwrap() {
2737
+ return this.element;
2738
+ }
2739
+ });
2740
+ });
2741
+ function Yi(e, t) {
2742
+ return /* @__PURE__ */ Tr(Ji, e, t);
2743
+ }
2744
+ var Xi = /*@__PURE__*/ n("ZodObject", (e, t) => {
2745
+ sn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Hr(e, t, n, r), m(e, "shape", () => t.shape), J(e, "ZodObject", {
2746
+ keyof() {
2747
+ return na(Object.keys(this._zod.def.shape));
2748
+ },
2749
+ catchall(e) {
2750
+ return this.clone({
2751
+ ...this._zod.def,
2752
+ catchall: e
2753
+ });
2754
+ },
2755
+ passthrough() {
2756
+ return this.clone({
2757
+ ...this._zod.def,
2758
+ catchall: Q()
2759
+ });
2760
+ },
2761
+ loose() {
2762
+ return this.clone({
2763
+ ...this._zod.def,
2764
+ catchall: Q()
2765
+ });
2766
+ },
2767
+ strict() {
2768
+ return this.clone({
2769
+ ...this._zod.def,
2770
+ catchall: qi()
2771
+ });
2772
+ },
2773
+ strip() {
2774
+ return this.clone({
2775
+ ...this._zod.def,
2776
+ catchall: void 0
2777
+ });
2778
+ },
2779
+ extend(e) {
2780
+ return ue(this, e);
2781
+ },
2782
+ safeExtend(e) {
2783
+ return de(this, e);
2784
+ },
2785
+ merge(e) {
2786
+ return fe(this, e);
2787
+ },
2788
+ pick(e) {
2789
+ return ce(this, e);
2790
+ },
2791
+ omit(e) {
2792
+ return le(this, e);
2793
+ },
2794
+ partial(...e) {
2795
+ return pe(aa, this, e[0]);
2796
+ },
2797
+ required(...e) {
2798
+ return me(ha, this, e[0]);
2799
+ }
2800
+ });
2801
+ });
2802
+ function Zi(e, t) {
2803
+ return new Xi({
2804
+ type: "object",
2805
+ shape: e ?? {},
2806
+ ...x(t)
2807
+ });
2808
+ }
2809
+ var Qi = /*@__PURE__*/ n("ZodUnion", (e, t) => {
2810
+ ln.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ur(e, t, n, r), e.options = t.options;
2811
+ });
2812
+ function $i(e, t) {
2813
+ return new Qi({
2814
+ type: "union",
2815
+ options: e,
2816
+ ...x(t)
2817
+ });
2818
+ }
2819
+ var ea = /*@__PURE__*/ n("ZodIntersection", (e, t) => {
2820
+ un.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wr(e, t, n, r);
2821
+ });
2822
+ function ta(e, t) {
2823
+ return new ea({
2824
+ type: "intersection",
2825
+ left: e,
2826
+ right: t
2827
+ });
2828
+ }
2829
+ var $ = /*@__PURE__*/ n("ZodEnum", (e, t) => {
2830
+ fn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Rr(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2831
+ let n = new Set(Object.keys(t.entries));
2832
+ e.extract = (e, r) => {
2833
+ let i = {};
2834
+ for (let r of e) if (n.has(r)) i[r] = t.entries[r];
2835
+ else throw Error(`Key ${r} not found in enum`);
2836
+ return new $({
2837
+ ...t,
2838
+ checks: [],
2839
+ ...x(r),
2840
+ entries: i
2841
+ });
2842
+ }, e.exclude = (e, r) => {
2843
+ let i = { ...t.entries };
2844
+ for (let t of e) if (n.has(t)) delete i[t];
2845
+ else throw Error(`Key ${t} not found in enum`);
2846
+ return new $({
2847
+ ...t,
2848
+ checks: [],
2849
+ ...x(r),
2850
+ entries: i
2851
+ });
2852
+ };
2853
+ });
2854
+ function na(e, t) {
2855
+ return new $({
2856
+ type: "enum",
2857
+ entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2858
+ ...x(t)
2859
+ });
2860
+ }
2861
+ var ra = /*@__PURE__*/ n("ZodTransform", (e, t) => {
2862
+ pn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Br(e, t, n, r), e._zod.parse = (n, r) => {
2863
+ if (r.direction === "backward") throw new i(e.constructor.name);
2864
+ n.addIssue = (r) => {
2865
+ if (typeof r == "string") n.issues.push(E(r, n.value, t));
2866
+ else {
2867
+ let t = r;
2868
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(E(t));
2869
+ }
2870
+ };
2871
+ let a = t.transform(n.value, n);
2872
+ return a instanceof Promise ? a.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = a, n.fallback = !0, n);
2873
+ };
2874
+ });
2875
+ function ia(e) {
2876
+ return new ra({
2877
+ type: "transform",
2878
+ transform: e
2879
+ });
2880
+ }
2881
+ var aa = /*@__PURE__*/ n("ZodOptional", (e, t) => {
2882
+ hn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2883
+ });
2884
+ function oa(e) {
2885
+ return new aa({
2886
+ type: "optional",
2887
+ innerType: e
2888
+ });
2889
+ }
2890
+ var sa = /*@__PURE__*/ n("ZodExactOptional", (e, t) => {
2891
+ gn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2892
+ });
2893
+ function ca(e) {
2894
+ return new sa({
2895
+ type: "optional",
2896
+ innerType: e
2897
+ });
2898
+ }
2899
+ var la = /*@__PURE__*/ n("ZodNullable", (e, t) => {
2900
+ _n.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Gr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2901
+ });
2902
+ function ua(e) {
2903
+ return new la({
2904
+ type: "nullable",
2905
+ innerType: e
2906
+ });
2907
+ }
2908
+ var da = /*@__PURE__*/ n("ZodDefault", (e, t) => {
2909
+ vn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => qr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2910
+ });
2911
+ function fa(e, t) {
2912
+ return new da({
2913
+ type: "default",
2914
+ innerType: e,
2915
+ get defaultValue() {
2916
+ return typeof t == "function" ? t() : ie(t);
2917
+ }
2918
+ });
2919
+ }
2920
+ var pa = /*@__PURE__*/ n("ZodPrefault", (e, t) => {
2921
+ bn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Jr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2922
+ });
2923
+ function ma(e, t) {
2924
+ return new pa({
2925
+ type: "prefault",
2926
+ innerType: e,
2927
+ get defaultValue() {
2928
+ return typeof t == "function" ? t() : ie(t);
2929
+ }
2930
+ });
2931
+ }
2932
+ var ha = /*@__PURE__*/ n("ZodNonOptional", (e, t) => {
2933
+ xn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Kr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2934
+ });
2935
+ function ga(e, t) {
2936
+ return new ha({
2937
+ type: "nonoptional",
2938
+ innerType: e,
2939
+ ...x(t)
2940
+ });
2941
+ }
2942
+ var _a = /*@__PURE__*/ n("ZodCatch", (e, t) => {
2943
+ Cn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yr(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2944
+ });
2945
+ function va(e, t) {
2946
+ return new _a({
2947
+ type: "catch",
2948
+ innerType: e,
2949
+ catchValue: typeof t == "function" ? t : () => t
2950
+ });
2951
+ }
2952
+ var ya = /*@__PURE__*/ n("ZodPipe", (e, t) => {
2953
+ wn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xr(e, t, n, r), e.in = t.in, e.out = t.out;
2954
+ });
2955
+ function ba(e, t) {
2956
+ return new ya({
2957
+ type: "pipe",
2958
+ in: e,
2959
+ out: t
2960
+ });
2961
+ }
2962
+ var xa = /*@__PURE__*/ n("ZodReadonly", (e, t) => {
2963
+ Tn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zr(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2964
+ });
2965
+ function Sa(e) {
2966
+ return new xa({
2967
+ type: "readonly",
2968
+ innerType: e
2969
+ });
2970
+ }
2971
+ var Ca = /*@__PURE__*/ n("ZodCustom", (e, t) => {
2972
+ Dn.init(e, t), Y.init(e, t), e._zod.processJSONSchema = (t, n, r) => zr(e, t, n, r);
2973
+ });
2974
+ function wa(e, t) {
2975
+ return /* @__PURE__ */ Er(Ca, e ?? (() => !0), t);
2976
+ }
2977
+ function Ta(e, t = {}) {
2978
+ return /* @__PURE__ */ Dr(Ca, e, t);
2979
+ }
2980
+ function Ea(e, t) {
2981
+ return /* @__PURE__ */ Or(e, t);
2982
+ }
2983
+ //#endregion
2984
+ export { Si as a, Zi as i, wa as n, t as o, Hi as r, na as t };
2985
+
2986
+ //# sourceMappingURL=schemas-D-8_LuND.js.map