@geekmidas/cli 10.0.0-alpha.4 → 10.0.0-alpha.41

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 (257) hide show
  1. package/README.md +52 -74
  2. package/bin/adjacent-tsconfig.mjs +97 -0
  3. package/bin/gkm.mjs +7 -1
  4. package/dist/{HostingerProvider-h3EbEp-Z.cjs → HostingerProvider-BZFGYYVA.cjs} +21 -22
  5. package/dist/HostingerProvider-BZFGYYVA.cjs.map +1 -0
  6. package/dist/{HostingerProvider-Cft7lEYr.mjs → HostingerProvider-Bh6K7QYz.mjs} +20 -21
  7. package/dist/HostingerProvider-Bh6K7QYz.mjs.map +1 -0
  8. package/dist/{LocalStateProvider-Db9SEjyH.cjs → LocalStateProvider-7HR6SS2t.cjs} +11 -6
  9. package/dist/LocalStateProvider-7HR6SS2t.cjs.map +1 -0
  10. package/dist/{LocalStateProvider-Bn6tS-oL.mjs → LocalStateProvider-D7QyJoLM.mjs} +10 -4
  11. package/dist/LocalStateProvider-D7QyJoLM.mjs.map +1 -0
  12. package/dist/{openapi-CA0yJUTN.cjs → OpenApiTsGenerator-B4Kj_qNU.cjs} +142 -303
  13. package/dist/OpenApiTsGenerator-B4Kj_qNU.cjs.map +1 -0
  14. package/dist/{openapi-kkQbsRVj.mjs → OpenApiTsGenerator-CEh3EKN3.mjs} +113 -255
  15. package/dist/OpenApiTsGenerator-CEh3EKN3.mjs.map +1 -0
  16. package/dist/{Route53Provider-RdpUDJQk.mjs → Route53Provider-Cvj40A8I.mjs} +12 -12
  17. package/dist/Route53Provider-Cvj40A8I.mjs.map +1 -0
  18. package/dist/{Route53Provider-di2fMM5N.cjs → Route53Provider-DVILBsvV.cjs} +20 -21
  19. package/dist/Route53Provider-DVILBsvV.cjs.map +1 -0
  20. package/dist/{SSMStateProvider-BRt2py-A.mjs → SSMStateProvider-B0Hu1MKZ.mjs} +13 -4
  21. package/dist/SSMStateProvider-B0Hu1MKZ.mjs.map +1 -0
  22. package/dist/{SSMStateProvider-DyX8s9HI.cjs → SSMStateProvider-VrQ-yeqd.cjs} +17 -9
  23. package/dist/SSMStateProvider-VrQ-yeqd.cjs.map +1 -0
  24. package/dist/aws-DkHdTV-p.cjs +61 -0
  25. package/dist/aws-DkHdTV-p.cjs.map +1 -0
  26. package/dist/aws-DojzQnLd.mjs +61 -0
  27. package/dist/aws-DojzQnLd.mjs.map +1 -0
  28. package/dist/{backup-provisioner-BrsHwYG0.cjs → backup-provisioner-BmhIO_Yr.cjs} +21 -19
  29. package/dist/backup-provisioner-BmhIO_Yr.cjs.map +1 -0
  30. package/dist/{backup-provisioner-Bgj5Vi_L.mjs → backup-provisioner-DIVCbfee.mjs} +10 -7
  31. package/dist/backup-provisioner-DIVCbfee.mjs.map +1 -0
  32. package/dist/{bundler-Be8Zg4Wd.mjs → bundler--fyybf1N.mjs} +19 -30
  33. package/dist/bundler--fyybf1N.mjs.map +1 -0
  34. package/dist/{bundler-BY1OmV1e.cjs → bundler-By6_sXiL.cjs} +20 -32
  35. package/dist/bundler-By6_sXiL.cjs.map +1 -0
  36. package/dist/{config-WRdsQYZK.mjs → config-5watB1D0.mjs} +142 -154
  37. package/dist/config-5watB1D0.mjs.map +1 -0
  38. package/dist/{config-C21ocYNd.cjs → config-CJ-PAb7M.cjs} +209 -210
  39. package/dist/config-CJ-PAb7M.cjs.map +1 -0
  40. package/dist/config.cjs +9 -6
  41. package/dist/config.d.cts +62 -33
  42. package/dist/config.d.cts.map +1 -1
  43. package/dist/config.d.mts +62 -33
  44. package/dist/config.d.mts.map +1 -1
  45. package/dist/config.mjs +3 -5
  46. package/dist/deploy/sniffer-envkit-patch.cjs +18 -10
  47. package/dist/deploy/sniffer-envkit-patch.cjs.map +1 -1
  48. package/dist/deploy/sniffer-envkit-patch.d.cts +0 -2
  49. package/dist/deploy/sniffer-envkit-patch.d.cts.map +1 -1
  50. package/dist/deploy/sniffer-envkit-patch.d.mts +0 -2
  51. package/dist/deploy/sniffer-envkit-patch.d.mts.map +1 -1
  52. package/dist/deploy/sniffer-envkit-patch.mjs +10 -2
  53. package/dist/deploy/sniffer-envkit-patch.mjs.map +1 -1
  54. package/dist/deploy/sniffer-hooks.cjs +13 -7
  55. package/dist/deploy/sniffer-hooks.cjs.map +1 -1
  56. package/dist/deploy/sniffer-hooks.d.cts +1 -2
  57. package/dist/deploy/sniffer-hooks.d.cts.map +1 -1
  58. package/dist/deploy/sniffer-hooks.d.mts +1 -2
  59. package/dist/deploy/sniffer-hooks.d.mts.map +1 -1
  60. package/dist/deploy/sniffer-hooks.mjs +9 -2
  61. package/dist/deploy/sniffer-hooks.mjs.map +1 -1
  62. package/dist/deploy/sniffer-loader.cjs +16 -7
  63. package/dist/deploy/sniffer-loader.cjs.map +1 -1
  64. package/dist/deploy/sniffer-loader.d.cts +1 -1
  65. package/dist/deploy/sniffer-loader.d.mts +1 -1
  66. package/dist/deploy/sniffer-loader.mjs +13 -2
  67. package/dist/deploy/sniffer-loader.mjs.map +1 -1
  68. package/dist/deploy/sniffer-routes-worker.cjs +11 -11
  69. package/dist/deploy/sniffer-routes-worker.cjs.map +1 -1
  70. package/dist/deploy/sniffer-routes-worker.d.cts +1 -1
  71. package/dist/deploy/sniffer-routes-worker.d.mts +1 -1
  72. package/dist/deploy/sniffer-routes-worker.mjs +3 -3
  73. package/dist/deploy/sniffer-routes-worker.mjs.map +1 -1
  74. package/dist/deploy/sniffer-worker.cjs +15 -6
  75. package/dist/deploy/sniffer-worker.cjs.map +1 -1
  76. package/dist/deploy/sniffer-worker.d.cts +1 -3
  77. package/dist/deploy/sniffer-worker.d.cts.map +1 -1
  78. package/dist/deploy/sniffer-worker.d.mts +1 -3
  79. package/dist/deploy/sniffer-worker.d.mts.map +1 -1
  80. package/dist/deploy/sniffer-worker.mjs +15 -4
  81. package/dist/deploy/sniffer-worker.mjs.map +1 -1
  82. package/dist/{discover-DTmFeloL.cjs → discover-B0f_kuNN.cjs} +118 -66
  83. package/dist/discover-B0f_kuNN.cjs.map +1 -0
  84. package/dist/{discover-CAlFgYec.mjs → discover-BLhf7V_J.mjs} +67 -22
  85. package/dist/discover-BLhf7V_J.mjs.map +1 -0
  86. package/dist/{emit-CbcRolsa.cjs → emit-BdoPFjZf.cjs} +53 -36
  87. package/dist/emit-BdoPFjZf.cjs.map +1 -0
  88. package/dist/{emit-CiZS_5Ub.mjs → emit-Bzq7JsMP.mjs} +24 -6
  89. package/dist/emit-Bzq7JsMP.mjs.map +1 -0
  90. package/dist/github-BAr8WGkR.cjs +213 -0
  91. package/dist/github-BAr8WGkR.cjs.map +1 -0
  92. package/dist/github-D5MthUlR.mjs +213 -0
  93. package/dist/github-D5MthUlR.mjs.map +1 -0
  94. package/dist/{index-DCtipn2h.d.cts → index-B3PeGOQp.d.cts} +4 -23
  95. package/dist/index-B3PeGOQp.d.cts.map +1 -0
  96. package/dist/{index-BThUzEIp.d.mts → index-BOyaGcCm.d.mts} +4 -23
  97. package/dist/index-BOyaGcCm.d.mts.map +1 -0
  98. package/dist/index.cjs +7071 -4519
  99. package/dist/index.cjs.map +1 -1
  100. package/dist/index.d.cts +1 -1
  101. package/dist/index.d.mts +1 -1
  102. package/dist/index.mjs +7117 -4586
  103. package/dist/index.mjs.map +1 -1
  104. package/dist/migrate-BVI3yqcE.mjs +736 -0
  105. package/dist/migrate-BVI3yqcE.mjs.map +1 -0
  106. package/dist/migrate-CFOUApUt.cjs +743 -0
  107. package/dist/migrate-CFOUApUt.cjs.map +1 -0
  108. package/dist/openapi.cjs +197 -8
  109. package/dist/openapi.cjs.map +1 -0
  110. package/dist/openapi.d.cts +47 -14
  111. package/dist/openapi.d.cts.map +1 -1
  112. package/dist/openapi.d.mts +47 -14
  113. package/dist/openapi.d.mts.map +1 -1
  114. package/dist/openapi.mjs +191 -5
  115. package/dist/openapi.mjs.map +1 -0
  116. package/dist/ready-D8UXsP6q.mjs +516 -0
  117. package/dist/ready-D8UXsP6q.mjs.map +1 -0
  118. package/dist/ready-mcxamf73.cjs +563 -0
  119. package/dist/ready-mcxamf73.cjs.map +1 -0
  120. package/dist/reconcile/public.cjs +4 -4
  121. package/dist/reconcile/public.d.cts +27 -26
  122. package/dist/reconcile/public.d.cts.map +1 -1
  123. package/dist/reconcile/public.d.mts +27 -26
  124. package/dist/reconcile/public.d.mts.map +1 -1
  125. package/dist/reconcile/public.mjs +3 -4
  126. package/dist/{reconcile-CFs8C_1a.mjs → reconcile--I7V4Klj.mjs} +4 -7
  127. package/dist/reconcile--I7V4Klj.mjs.map +1 -0
  128. package/dist/{reconcile-D0pimNiy.cjs → reconcile-CuCQBa5-.cjs} +5 -8
  129. package/dist/reconcile-CuCQBa5-.cjs.map +1 -0
  130. package/dist/rolldown-runtime-BhDjJH2R.mjs +15 -0
  131. package/dist/{chunk-CUT6urMc.cjs → rolldown-runtime-C0BPl7ul.cjs} +23 -10
  132. package/dist/storage-BzaUxmqe.mjs +124 -0
  133. package/dist/storage-BzaUxmqe.mjs.map +1 -0
  134. package/dist/storage-CSGoC3bK.cjs +152 -0
  135. package/dist/storage-CSGoC3bK.cjs.map +1 -0
  136. package/dist/store-DQgxT_WR.cjs +211 -0
  137. package/dist/store-DQgxT_WR.cjs.map +1 -0
  138. package/dist/store-DeGATCS-.mjs +182 -0
  139. package/dist/store-DeGATCS-.mjs.map +1 -0
  140. package/dist/types-0R124hrY.d.mts +6324 -0
  141. package/dist/types-0R124hrY.d.mts.map +1 -0
  142. package/dist/types-DfdYe31u.d.cts +6325 -0
  143. package/dist/types-DfdYe31u.d.cts.map +1 -0
  144. package/dist/vitest.cjs +65 -0
  145. package/dist/vitest.cjs.map +1 -0
  146. package/dist/vitest.d.cts +29 -0
  147. package/dist/vitest.d.cts.map +1 -0
  148. package/dist/vitest.d.mts +29 -0
  149. package/dist/vitest.d.mts.map +1 -0
  150. package/dist/vitest.mjs +65 -0
  151. package/dist/vitest.mjs.map +1 -0
  152. package/dist/workspace/index.cjs +3 -4
  153. package/dist/workspace/index.d.cts +3 -3
  154. package/dist/workspace/index.d.mts +3 -3
  155. package/dist/workspace/index.mjs +2 -3
  156. package/dist/{credentials-G1JwBoXH.cjs → workspace-BIqeeqcR.cjs} +2248 -1809
  157. package/dist/workspace-BIqeeqcR.cjs.map +1 -0
  158. package/dist/{workspace-BFMrAKqI.mjs → workspace-DOmIhiau.mjs} +863 -952
  159. package/dist/workspace-DOmIhiau.mjs.map +1 -0
  160. package/dist/{credentials-BBIRJVp4.mjs → workspace-DwS1JK5u.mjs} +2114 -1706
  161. package/dist/workspace-DwS1JK5u.mjs.map +1 -0
  162. package/dist/{workspace-BcucjwvA.cjs → workspace-RYSYtHP7.cjs} +1032 -1098
  163. package/dist/workspace-RYSYtHP7.cjs.map +1 -0
  164. package/package.json +29 -20
  165. package/dist/CachedStateProvider-BLo7zv7S.cjs +0 -3
  166. package/dist/CachedStateProvider-BxoAm-B2.mjs +0 -3
  167. package/dist/CachedStateProvider-CqPdW7CB.cjs +0 -60
  168. package/dist/CachedStateProvider-CqPdW7CB.cjs.map +0 -1
  169. package/dist/CachedStateProvider-DTniehMP.mjs +0 -54
  170. package/dist/CachedStateProvider-DTniehMP.mjs.map +0 -1
  171. package/dist/HostingerProvider-Cft7lEYr.mjs.map +0 -1
  172. package/dist/HostingerProvider-h3EbEp-Z.cjs.map +0 -1
  173. package/dist/LocalStateProvider-Bn6tS-oL.mjs.map +0 -1
  174. package/dist/LocalStateProvider-Db9SEjyH.cjs.map +0 -1
  175. package/dist/Route53Provider-RdpUDJQk.mjs.map +0 -1
  176. package/dist/Route53Provider-di2fMM5N.cjs.map +0 -1
  177. package/dist/SSMStateProvider-BRt2py-A.mjs.map +0 -1
  178. package/dist/SSMStateProvider-DyX8s9HI.cjs.map +0 -1
  179. package/dist/backup-provisioner-Bgj5Vi_L.mjs.map +0 -1
  180. package/dist/backup-provisioner-BrsHwYG0.cjs.map +0 -1
  181. package/dist/bundler-BY1OmV1e.cjs.map +0 -1
  182. package/dist/bundler-Be8Zg4Wd.mjs.map +0 -1
  183. package/dist/chunk-Duj1WY3L.mjs +0 -7
  184. package/dist/config-C21ocYNd.cjs.map +0 -1
  185. package/dist/config-WRdsQYZK.mjs.map +0 -1
  186. package/dist/credentials-B5zRHdAl.mjs +0 -141
  187. package/dist/credentials-B5zRHdAl.mjs.map +0 -1
  188. package/dist/credentials-BBIRJVp4.mjs.map +0 -1
  189. package/dist/credentials-BapzjyV5.cjs +0 -195
  190. package/dist/credentials-BapzjyV5.cjs.map +0 -1
  191. package/dist/credentials-G1JwBoXH.cjs.map +0 -1
  192. package/dist/discover-CAlFgYec.mjs.map +0 -1
  193. package/dist/discover-DTmFeloL.cjs.map +0 -1
  194. package/dist/dokploy-api-BS2xnJLZ.mjs +0 -3
  195. package/dist/dokploy-api-BsVH0y_s.cjs +0 -718
  196. package/dist/dokploy-api-BsVH0y_s.cjs.map +0 -1
  197. package/dist/dokploy-api-BuxDRo3l.cjs +0 -3
  198. package/dist/dokploy-api-aTFPz7_4.mjs +0 -706
  199. package/dist/dokploy-api-aTFPz7_4.mjs.map +0 -1
  200. package/dist/emit-CbcRolsa.cjs.map +0 -1
  201. package/dist/emit-CiZS_5Ub.mjs.map +0 -1
  202. package/dist/encryption-C6jaU0hE.cjs +0 -54
  203. package/dist/encryption-C6jaU0hE.cjs.map +0 -1
  204. package/dist/encryption-CHzzeR8a.cjs +0 -4
  205. package/dist/encryption-CQUncu7v.mjs +0 -3
  206. package/dist/encryption-D-abyhZx.mjs +0 -42
  207. package/dist/encryption-D-abyhZx.mjs.map +0 -1
  208. package/dist/fullstack-secrets-C-GGohke.cjs +0 -111
  209. package/dist/fullstack-secrets-C-GGohke.cjs.map +0 -1
  210. package/dist/fullstack-secrets-D1o9-G5l.mjs +0 -87
  211. package/dist/fullstack-secrets-D1o9-G5l.mjs.map +0 -1
  212. package/dist/generator-CNzBw7g5.cjs +0 -289
  213. package/dist/generator-CNzBw7g5.cjs.map +0 -1
  214. package/dist/generator-VE2JrFlY.mjs +0 -253
  215. package/dist/generator-VE2JrFlY.mjs.map +0 -1
  216. package/dist/index-BThUzEIp.d.mts.map +0 -1
  217. package/dist/index-DCtipn2h.d.cts.map +0 -1
  218. package/dist/openapi-CA0yJUTN.cjs.map +0 -1
  219. package/dist/openapi-kkQbsRVj.mjs.map +0 -1
  220. package/dist/openapi-react-query-Byltvm_7.mjs +0 -167
  221. package/dist/openapi-react-query-Byltvm_7.mjs.map +0 -1
  222. package/dist/openapi-react-query-CmJ1xDbn.cjs +0 -173
  223. package/dist/openapi-react-query-CmJ1xDbn.cjs.map +0 -1
  224. package/dist/openapi-react-query.cjs +0 -4
  225. package/dist/openapi-react-query.d.cts +0 -11
  226. package/dist/openapi-react-query.d.cts.map +0 -1
  227. package/dist/openapi-react-query.d.mts +0 -11
  228. package/dist/openapi-react-query.d.mts.map +0 -1
  229. package/dist/openapi-react-query.mjs +0 -4
  230. package/dist/reconcile-CFs8C_1a.mjs.map +0 -1
  231. package/dist/reconcile-D0pimNiy.cjs.map +0 -1
  232. package/dist/setup-B5_oHHUj.cjs +0 -11
  233. package/dist/setup-Cm2UnAdh.cjs +0 -473
  234. package/dist/setup-Cm2UnAdh.cjs.map +0 -1
  235. package/dist/setup-DXvRLTZN.mjs +0 -443
  236. package/dist/setup-DXvRLTZN.mjs.map +0 -1
  237. package/dist/setup-ZijS4qeC.mjs +0 -11
  238. package/dist/storage-BJmzYxt8.cjs +0 -363
  239. package/dist/storage-BJmzYxt8.cjs.map +0 -1
  240. package/dist/storage-BM9hGpgv.cjs +0 -7
  241. package/dist/storage-Bi24WfoW.mjs +0 -297
  242. package/dist/storage-Bi24WfoW.mjs.map +0 -1
  243. package/dist/storage-CYlGwWTj.mjs +0 -3
  244. package/dist/sync-CmEuNZsB.mjs +0 -76
  245. package/dist/sync-CmEuNZsB.mjs.map +0 -1
  246. package/dist/sync-D306yOWu.cjs +0 -4
  247. package/dist/sync-SizaChmC.cjs +0 -93
  248. package/dist/sync-SizaChmC.cjs.map +0 -1
  249. package/dist/sync-hOqAWHR6.mjs +0 -3
  250. package/dist/types-BhIl-COG.d.cts +0 -2184
  251. package/dist/types-BhIl-COG.d.cts.map +0 -1
  252. package/dist/types-C-arnQ1r.d.mts +0 -2184
  253. package/dist/types-C-arnQ1r.d.mts.map +0 -1
  254. package/dist/workspace-BFMrAKqI.mjs.map +0 -1
  255. package/dist/workspace-BcucjwvA.cjs.map +0 -1
  256. package/dist/workspace-DdJss8I6.cjs +0 -9
  257. package/dist/workspace-k4l3rsFh.mjs +0 -8
@@ -1,61 +1,11 @@
1
- const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const node_path = require_chunk.__toESM(require("node:path"));
3
-
4
- //#region src/workspace/publicEnv.ts
5
- /**
6
- * All public env-var prefixes the toolbox understands.
7
- *
8
- * Used when resolving incoming var names back to a dependency
9
- * (e.g. `VITE_AUTH_URL` → `auth`). A var matching any of these
10
- * is considered safe to inline into a client bundle.
11
- */
12
- const PUBLIC_ENV_PREFIXES = [
13
- "NEXT_PUBLIC_",
14
- "VITE_",
15
- "EXPO_PUBLIC_"
16
- ];
17
- /**
18
- * Resolve the public env-var prefix that a frontend framework's bundler
19
- * inlines into client code at build time:
20
- *
21
- * - `nextjs` → `NEXT_PUBLIC_`
22
- * - `vite` → `VITE_`
23
- * - `tanstack-start` → `VITE_` (uses Vite under the hood)
24
- * - `expo` → `EXPO_PUBLIC_`
25
- * - `remix` → `''` (Remix exposes via loaders, no prefix convention)
26
- *
27
- * For backend frameworks or unspecified, falls back to `NEXT_PUBLIC_` to
28
- * preserve the historical default. Backend apps never read these vars
29
- * from a bundle, so the prefix only affects scaffolding/symmetry.
30
- */
31
- function getPublicEnvPrefix(framework) {
32
- switch (framework) {
33
- case "vite":
34
- case "tanstack-start": return "VITE_";
35
- case "expo": return "EXPO_PUBLIC_";
36
- case "remix": return "";
37
- case "nextjs": return "NEXT_PUBLIC_";
38
- default: return "NEXT_PUBLIC_";
39
- }
40
- }
41
- /**
42
- * Strip a known public prefix from a var name.
43
- * Returns the un-prefixed name, or `null` if no prefix matched.
44
- */
45
- function stripPublicPrefix(name) {
46
- for (const prefix of PUBLIC_ENV_PREFIXES) if (prefix && name.startsWith(prefix)) return name.slice(prefix.length);
47
- return null;
48
- }
49
-
50
- //#endregion
1
+ let node_path = require("node:path");
51
2
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
52
3
  function getEnumValues(entries) {
53
4
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
54
- const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
55
- return values;
5
+ return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
56
6
  }
57
- function joinValues(array$1, separator = "|") {
58
- return array$1.map((val) => stringifyPrimitive(val)).join(separator);
7
+ function joinValues(array, separator = "|") {
8
+ return array.map((val) => stringifyPrimitive(val)).join(separator);
59
9
  }
60
10
  function jsonStringifyReplacer(_, value) {
61
11
  if (typeof value === "bigint") return value.toString();
@@ -171,12 +121,11 @@ const captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace
171
121
  function isObject(data) {
172
122
  return typeof data === "object" && data !== null && !Array.isArray(data);
173
123
  }
174
- const allowsEval = /* @__PURE__ */ cached(() => {
124
+ const allowsEval = /* @__PURE__*/ cached(() => {
175
125
  if (globalConfig.jitless) return false;
176
126
  if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) return false;
177
127
  try {
178
- const F = Function;
179
- new F("");
128
+ new Function("");
180
129
  return true;
181
130
  } catch (_) {
182
131
  return false;
@@ -199,7 +148,7 @@ function shallowClone(o) {
199
148
  if (o instanceof Set) return new Set(o);
200
149
  return o;
201
150
  }
202
- const propertyKeyTypes = /* @__PURE__ */ new Set([
151
+ const propertyKeyTypes = /* @__PURE__*/ new Set([
203
152
  "string",
204
153
  "number",
205
154
  "symbol"
@@ -237,7 +186,7 @@ function optionalKeys(shape) {
237
186
  return shape[k]._zod.optin !== void 0 && shape[k]._zod.optout === "optional";
238
187
  });
239
188
  }
240
- const NUMBER_FORMAT_RANGES = /* @__PURE__ */ (() => ({
189
+ const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({
241
190
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
242
191
  int32: [-2147483648, 2147483647],
243
192
  uint32: [0, 4294967295],
@@ -245,14 +194,13 @@ const NUMBER_FORMAT_RANGES = /* @__PURE__ */ (() => ({
245
194
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
246
195
  }))();
247
196
  const BIGINT_FORMAT_RANGES = {
248
- int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
249
- uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
197
+ int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
198
+ uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")]
250
199
  };
251
200
  function pick(schema, mask) {
252
201
  const currDef = schema._zod.def;
253
202
  const checks = currDef.checks;
254
- const hasChecks = checks && checks.length > 0;
255
- if (hasChecks) throw new Error(".pick() cannot be used on object schemas containing refinements");
203
+ if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
256
204
  const newShape = {};
257
205
  mirrorShape(newShape, schema, maskedKeys(schema, mask));
258
206
  return clone(schema, mergeDefs(currDef, {
@@ -272,8 +220,7 @@ function maskedKeys(schema, mask) {
272
220
  function omit(schema, mask) {
273
221
  const currDef = schema._zod.def;
274
222
  const checks = currDef.checks;
275
- const hasChecks = checks && checks.length > 0;
276
- if (hasChecks) throw new Error(".omit() cannot be used on object schemas containing refinements");
223
+ if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
277
224
  const omitted = new Set(maskedKeys(schema, mask));
278
225
  const newShape = {};
279
226
  mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)).filter((key) => !omitted.has(key)));
@@ -285,8 +232,7 @@ function omit(schema, mask) {
285
232
  function extend(schema, shape) {
286
233
  if (!isPlainObject(shape)) throw new Error("Invalid input to extend: expected a plain object");
287
234
  const checks = schema._zod.def.checks;
288
- const hasChecks = checks && checks.length > 0;
289
- if (hasChecks) {
235
+ if (checks && checks.length > 0) {
290
236
  const existingShape = sourceShape(schema);
291
237
  for (const key of Reflect.ownKeys(shape)) if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
292
238
  }
@@ -308,20 +254,17 @@ function merge(a, b) {
308
254
  const newShape = {};
309
255
  mirrorShape(newShape, a, Reflect.ownKeys(sourceShape(a)));
310
256
  mirrorShape(newShape, b, Reflect.ownKeys(sourceShape(b)));
311
- const def = mergeDefs(a._zod.def, {
257
+ return clone(a, mergeDefs(a._zod.def, {
312
258
  shape: newShape,
313
259
  get catchall() {
314
260
  return b._zod.def.catchall;
315
261
  },
316
262
  checks: b._zod.def.checks ?? []
317
- });
318
- return clone(a, def);
263
+ }));
319
264
  }
320
265
  function partial(Class, schema, mask, name = "partial") {
321
- const currDef = schema._zod.def;
322
- const checks = currDef.checks;
323
- const hasChecks = checks && checks.length > 0;
324
- if (hasChecks) throw new Error(`.${name}() cannot be used on object schemas containing refinements`);
266
+ const checks = schema._zod.def.checks;
267
+ if (checks && checks.length > 0) throw new Error(`.${name}() cannot be used on object schemas containing refinements`);
325
268
  const selected = mask ? new Set(maskedKeys(schema, mask)) : void 0;
326
269
  const newShape = {};
327
270
  mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class && ((value, key) => selected && !selected.has(key) ? value : new Class({
@@ -354,8 +297,8 @@ function explicitlyAborted(x, startIndex = 0) {
354
297
  }
355
298
  function prefixIssues(path, issues) {
356
299
  return issues.map((iss) => {
357
- var _a$2;
358
- (_a$2 = iss).path ?? (_a$2.path = []);
300
+ var _a;
301
+ (_a = iss).path ?? (_a.path = []);
359
302
  iss.path.unshift(path);
360
303
  return iss;
361
304
  });
@@ -364,16 +307,18 @@ function unwrapMessage(message) {
364
307
  return typeof message === "string" ? message : message?.message;
365
308
  }
366
309
  function attachSchema(issues, start, inst) {
367
- var _a$2;
368
- for (let i = start; i < issues.length; i++) (_a$2 = issues[i]).schema ?? (_a$2.schema = inst);
310
+ var _a;
311
+ for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
369
312
  }
370
- function finalizeIssue(iss, ctx, config$1) {
371
- var _a$2;
313
+ function finalizeIssue(iss, ctx, config) {
314
+ var _a;
372
315
  const traits = iss.inst?._zod?.traits;
373
- if (traits?.has("$ZodType")) if (traits.has("$ZodCheck")) (_a$2 = iss).schema ?? (_a$2.schema = iss.inst);
374
- else iss.schema = iss.inst;
316
+ if (traits?.has("$ZodType")) {
317
+ if (traits.has("$ZodCheck")) (_a = iss).schema ?? (_a.schema = iss.inst);
318
+ else iss.schema = iss.inst;
319
+ }
375
320
  const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : void 0;
376
- const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config$1.customError?.(iss)) ?? unwrapMessage(config$1.localeError?.(iss)) ?? "Invalid input";
321
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
377
322
  const full = {};
378
323
  for (const k of Object.keys(iss)) {
379
324
  if (k === "inst" || k === "schema" || k === "continue" || k === "input" || k === "__proto__") continue;
@@ -491,7 +436,6 @@ const breaker = {
491
436
  configurable: true,
492
437
  get() {
493
438
  broke = true;
494
- return void 0;
495
439
  }
496
440
  };
497
441
  /**
@@ -577,7 +521,6 @@ function constantCatch(value) {
577
521
  fn[CONSTANT_CATCH] = true;
578
522
  return fn;
579
523
  }
580
-
581
524
  //#endregion
582
525
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
583
526
  var _a$1;
@@ -606,7 +549,7 @@ function newError(Definition) {
606
549
  }
607
550
  return new Definition();
608
551
  }
609
- function $constructor(name, initializer$2, proto, params) {
552
+ function $constructor(name, initializer, proto, params) {
610
553
  const zodProto = {};
611
554
  function Internals(def) {
612
555
  this.def = def;
@@ -626,22 +569,22 @@ function $constructor(name, initializer$2, proto, params) {
626
569
  }
627
570
  } else if (inst._zod.traits.has(name)) return;
628
571
  inst._zod.traits.add(name);
629
- initializer$2(inst, def);
572
+ initializer(inst, def);
630
573
  if (initialized) {
631
- const own$1 = Object.getPrototypeOf(inst);
574
+ const own = Object.getPrototypeOf(inst);
632
575
  const ctorProto = inst._zod.constr.prototype;
633
- let up = own$1;
576
+ let up = own;
634
577
  while (up && up !== ctorProto) up = Object.getPrototypeOf(up);
635
- const target = up ?? own$1;
578
+ const target = up ?? own;
636
579
  if (!initialized.has(target)) {
637
580
  initialized.add(target);
638
581
  members(target, protoMembers);
639
582
  }
640
583
  }
641
- const proto$1 = _.prototype;
642
- for (const k in proto$1) {
643
- if (!Object.prototype.hasOwnProperty.call(proto$1, k)) continue;
644
- if (!(k in inst)) inst[k] = proto$1[k].bind(inst);
584
+ const proto = _.prototype;
585
+ for (const k in proto) {
586
+ if (!Object.prototype.hasOwnProperty.call(proto, k)) continue;
587
+ if (!(k in inst)) inst[k] = proto[k].bind(inst);
645
588
  }
646
589
  }
647
590
  const Parent = params?.Parent ?? Object;
@@ -684,7 +627,6 @@ function config(newConfig) {
684
627
  if (newConfig) Object.assign(globalConfig, newConfig);
685
628
  return globalConfig;
686
629
  }
687
-
688
630
  //#endregion
689
631
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
690
632
  function _getMessage() {
@@ -738,39 +680,41 @@ const initializer$1 = (inst, def) => {
738
680
  }
739
681
  };
740
682
  const $ZodError = $constructor("$ZodError", initializer$1);
741
- const $ZodRealError = $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
683
+ $constructor("$ZodError", initializer$1, void 0, { Parent: Error });
742
684
  /** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
743
685
  * ("toString", "constructor") would otherwise read through to the prototype, and assigning
744
686
  * "__proto__" would hit the setter instead of creating a key. */
745
687
  function node(obj, key, make) {
746
- if (!Object.prototype.hasOwnProperty.call(obj, key)) if (key === "__proto__") Object.defineProperty(obj, key, {
747
- value: make(),
748
- writable: true,
749
- enumerable: true,
750
- configurable: true
751
- });
752
- else obj[key] = make();
688
+ if (!Object.prototype.hasOwnProperty.call(obj, key)) {
689
+ if (key === "__proto__") Object.defineProperty(obj, key, {
690
+ value: make(),
691
+ writable: true,
692
+ enumerable: true,
693
+ configurable: true
694
+ });
695
+ else obj[key] = make();
696
+ }
753
697
  return obj[key];
754
698
  }
755
- function flattenError(error$1, mapper = (issue$1) => issue$1.message) {
699
+ function flattenError(error, mapper = (issue) => issue.message) {
756
700
  const fieldErrors = {};
757
701
  const formErrors = [];
758
- for (const sub of error$1.issues) if (sub.path.length > 0) node(fieldErrors, sub.path[0], () => []).push(mapper(sub));
702
+ for (const sub of error.issues) if (sub.path.length > 0) node(fieldErrors, sub.path[0], () => []).push(mapper(sub));
759
703
  else formErrors.push(mapper(sub));
760
704
  return {
761
705
  formErrors,
762
706
  fieldErrors
763
707
  };
764
708
  }
765
- function formatError(error$1, mapper = (issue$1) => issue$1.message) {
709
+ function formatError(error, mapper = (issue) => issue.message) {
766
710
  const fieldErrors = { _errors: [] };
767
- const processError = (error$2, path = []) => {
768
- for (const issue$1 of error$2.issues) if (issue$1.code === "invalid_union" && issue$1.errors.length) issue$1.errors.map((issues) => processError({ issues }, [...path, ...issue$1.path]));
769
- else if (issue$1.code === "invalid_key") processError({ issues: issue$1.issues }, [...path, ...issue$1.path]);
770
- else if (issue$1.code === "invalid_element") processError({ issues: issue$1.issues }, [...path, ...issue$1.path]);
711
+ const processError = (error, path = []) => {
712
+ for (const issue of error.issues) if (issue.code === "invalid_union" && issue.errors.length) issue.errors.map((issues) => processError({ issues }, [...path, ...issue.path]));
713
+ else if (issue.code === "invalid_key") processError({ issues: issue.issues }, [...path, ...issue.path]);
714
+ else if (issue.code === "invalid_element") processError({ issues: issue.issues }, [...path, ...issue.path]);
771
715
  else {
772
- const fullpath = [...path, ...issue$1.path];
773
- if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue$1));
716
+ const fullpath = [...path, ...issue.path];
717
+ if (fullpath.length === 0) fieldErrors._errors.push(mapper(issue));
774
718
  else {
775
719
  let curr = fieldErrors;
776
720
  let i = 0;
@@ -778,7 +722,7 @@ function formatError(error$1, mapper = (issue$1) => issue$1.message) {
778
722
  const el = fullpath[i];
779
723
  const terminal = i === fullpath.length - 1;
780
724
  if (el === "_errors") {
781
- if (terminal) curr._errors.push(mapper(issue$1));
725
+ if (terminal) curr._errors.push(mapper(issue));
782
726
  i++;
783
727
  continue;
784
728
  }
@@ -788,18 +732,17 @@ function formatError(error$1, mapper = (issue$1) => issue$1.message) {
788
732
  writable: true,
789
733
  configurable: true
790
734
  });
791
- const node$1 = curr[el];
792
- if (terminal) node$1._errors.push(mapper(issue$1));
793
- curr = node$1;
735
+ const node = curr[el];
736
+ if (terminal) node._errors.push(mapper(issue));
737
+ curr = node;
794
738
  i++;
795
739
  }
796
740
  }
797
741
  }
798
742
  };
799
- processError(error$1);
743
+ processError(error);
800
744
  return fieldErrors;
801
745
  }
802
-
803
746
  //#endregion
804
747
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
805
748
  function finalizeParams(callee, params) {
@@ -820,7 +763,7 @@ const _parse = (_Err) => {
820
763
  }, ctx);
821
764
  if (result instanceof Promise) throw new $ZodAsyncError();
822
765
  if (result.issues.length) {
823
- const e = new (_params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
766
+ const e = new ((_params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
824
767
  captureStackTrace(e, _params?.callee ?? fn);
825
768
  throw e;
826
769
  }
@@ -828,7 +771,6 @@ const _parse = (_Err) => {
828
771
  };
829
772
  return fn;
830
773
  };
831
- const parse$1 = /* @__PURE__ */ _parse($ZodRealError);
832
774
  const _parseAsync = (_Err) => {
833
775
  const fn = async (schema, value, _ctx, params) => {
834
776
  const ctx = _ctx ? {
@@ -841,7 +783,7 @@ const _parseAsync = (_Err) => {
841
783
  }, ctx);
842
784
  if (result instanceof Promise) result = await result;
843
785
  if (result.issues.length) {
844
- const e = new (params?.Err ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
786
+ const e = new ((params?.Err) ?? _Err)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())));
845
787
  captureStackTrace(e, params?.callee ?? fn);
846
788
  throw e;
847
789
  }
@@ -849,7 +791,6 @@ const _parseAsync = (_Err) => {
849
791
  };
850
792
  return fn;
851
793
  };
852
- const parseAsync$1 = /* @__PURE__ */ _parseAsync($ZodRealError);
853
794
  const _safeParse = (_Err) => (schema, value, _ctx) => {
854
795
  const ctx = _ctx ? {
855
796
  ..._ctx,
@@ -865,21 +806,20 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
865
806
  data: result.value
866
807
  };
867
808
  };
868
- const safeParse$1 = /* @__PURE__ */ _safeParse($ZodRealError);
869
809
  function failure(Err, issues, ctx) {
870
- let error$1;
810
+ let error;
871
811
  return {
872
812
  success: false,
873
813
  get error() {
874
- if (!error$1) {
875
- error$1 = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
814
+ if (!error) {
815
+ error = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
876
816
  issues = void 0;
877
817
  ctx = void 0;
878
818
  }
879
- return error$1;
819
+ return error;
880
820
  },
881
821
  set error(e) {
882
- error$1 = e;
822
+ error = e;
883
823
  issues = void 0;
884
824
  ctx = void 0;
885
825
  }
@@ -900,17 +840,16 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
900
840
  data: result.value
901
841
  };
902
842
  };
903
- const safeParseAsync$1 = /* @__PURE__ */ _safeParseAsync($ZodRealError);
904
843
  const COMPILE_INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
905
844
  const COMPILE_FALLBACK = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
906
- const validate = (schema, value, _ctx) => {
845
+ const validate = ((schema, value, _ctx) => {
907
846
  const validator = schema._zod.bag.validator;
908
847
  if (validator !== void 0) {
909
848
  if (validator(value) !== COMPILE_INVALID) return true;
910
849
  if (validator.definite === true && _ctx === void 0) return false;
911
850
  }
912
851
  return validateFallback(schema, value, _ctx);
913
- };
852
+ });
914
853
  function validateFallback(schema, value, _ctx) {
915
854
  const ctx = _ctx ? {
916
855
  ..._ctx,
@@ -935,7 +874,7 @@ function validateFallback(schema, value, _ctx) {
935
874
  if (result instanceof Promise) throw new $ZodAsyncError();
936
875
  return result.issues.length === 0;
937
876
  }
938
- const validateAsync = async (schema, value, _ctx) => {
877
+ const validateAsync$1 = async (schema, value, _ctx) => {
939
878
  const ctx = _ctx ? {
940
879
  ..._ctx,
941
880
  async: true,
@@ -952,45 +891,41 @@ const validateAsync = async (schema, value, _ctx) => {
952
891
  return result.issues.length === 0;
953
892
  };
954
893
  const _encode = (_Err) => {
955
- const parse$2 = _parse(_Err);
894
+ const parse = _parse(_Err);
956
895
  const fn = (schema, value, _ctx, _params) => {
957
896
  const ctx = _ctx ? {
958
897
  ..._ctx,
959
898
  direction: "backward"
960
899
  } : { direction: "backward" };
961
- return parse$2(schema, value, ctx, finalizeParams(fn, _params));
900
+ return parse(schema, value, ctx, finalizeParams(fn, _params));
962
901
  };
963
902
  return fn;
964
903
  };
965
- const encode$1 = /* @__PURE__ */ _encode($ZodRealError);
966
904
  const _decode = (_Err) => {
967
- const parse$2 = _parse(_Err);
905
+ const parse = _parse(_Err);
968
906
  const fn = (schema, value, _ctx, _params) => {
969
- return parse$2(schema, value, _ctx, finalizeParams(fn, _params));
907
+ return parse(schema, value, _ctx, finalizeParams(fn, _params));
970
908
  };
971
909
  return fn;
972
910
  };
973
- const decode$1 = /* @__PURE__ */ _decode($ZodRealError);
974
911
  const _encodeAsync = (_Err) => {
975
- const parseAsync$2 = _parseAsync(_Err);
912
+ const parseAsync = _parseAsync(_Err);
976
913
  const fn = async (schema, value, _ctx, _params) => {
977
914
  const ctx = _ctx ? {
978
915
  ..._ctx,
979
916
  direction: "backward"
980
917
  } : { direction: "backward" };
981
- return await parseAsync$2(schema, value, ctx, finalizeParams(fn, _params));
918
+ return await parseAsync(schema, value, ctx, finalizeParams(fn, _params));
982
919
  };
983
920
  return fn;
984
921
  };
985
- const encodeAsync$1 = /* @__PURE__ */ _encodeAsync($ZodRealError);
986
922
  const _decodeAsync = (_Err) => {
987
- const parseAsync$2 = _parseAsync(_Err);
923
+ const parseAsync = _parseAsync(_Err);
988
924
  const fn = async (schema, value, _ctx, _params) => {
989
- return await parseAsync$2(schema, value, _ctx, finalizeParams(fn, _params));
925
+ return await parseAsync(schema, value, _ctx, finalizeParams(fn, _params));
990
926
  };
991
927
  return fn;
992
928
  };
993
- const decodeAsync$1 = /* @__PURE__ */ _decodeAsync($ZodRealError);
994
929
  const _safeEncode = (_Err) => (schema, value, _ctx) => {
995
930
  const ctx = _ctx ? {
996
931
  ..._ctx,
@@ -998,11 +933,9 @@ const _safeEncode = (_Err) => (schema, value, _ctx) => {
998
933
  } : { direction: "backward" };
999
934
  return _safeParse(_Err)(schema, value, ctx);
1000
935
  };
1001
- const safeEncode$1 = /* @__PURE__ */ _safeEncode($ZodRealError);
1002
936
  const _safeDecode = (_Err) => (schema, value, _ctx) => {
1003
937
  return _safeParse(_Err)(schema, value, _ctx);
1004
938
  };
1005
- const safeDecode$1 = /* @__PURE__ */ _safeDecode($ZodRealError);
1006
939
  const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1007
940
  const ctx = _ctx ? {
1008
941
  ..._ctx,
@@ -1010,12 +943,9 @@ const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
1010
943
  } : { direction: "backward" };
1011
944
  return _safeParseAsync(_Err)(schema, value, ctx);
1012
945
  };
1013
- const safeEncodeAsync$1 = /* @__PURE__ */ _safeEncodeAsync($ZodRealError);
1014
946
  const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1015
947
  return _safeParseAsync(_Err)(schema, value, _ctx);
1016
948
  };
1017
- const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
1018
-
1019
949
  //#endregion
1020
950
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
1021
951
  /**
@@ -1039,9 +969,9 @@ const guid = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9
1039
969
  /** Returns a regex for validating an RFC 9562/4122 UUID.
1040
970
  *
1041
971
  * @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
1042
- const uuid = (version$1) => {
1043
- if (!version$1) return /^([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)$/;
1044
- return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version$1}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
972
+ const uuid = (version) => {
973
+ if (!version) return /^([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)$/;
974
+ return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
1045
975
  };
1046
976
  /** Practical email validation */
1047
977
  const email = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
@@ -1064,11 +994,10 @@ const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468
1064
994
  function anchor(source) {
1065
995
  return new RegExp(`^${source}$`);
1066
996
  }
1067
- const date = /* @__PURE__ */ anchor(dateSource);
997
+ const date = /*@__PURE__*/ anchor(dateSource);
1068
998
  function timeSource(args) {
1069
999
  const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
1070
- const regex = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : args.seconds ? `${hhmm}:[0-5]\\d(?:\\.\\d+)?` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
1071
- return regex;
1000
+ return typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : args.seconds ? `${hhmm}:[0-5]\\d(?:\\.\\d+)?` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
1072
1001
  }
1073
1002
  function time(args) {
1074
1003
  return new RegExp(`^${timeSource(args)}$`);
@@ -1089,14 +1018,13 @@ const number$1 = /^-?\d+(?:\.\d+)?$/;
1089
1018
  const boolean$1 = /^(?:true|false)$/i;
1090
1019
  const lowercase = /^[^A-Z]*$/;
1091
1020
  const uppercase = /^[^a-z]*$/;
1092
-
1093
1021
  //#endregion
1094
1022
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
1095
- const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1096
- var _a$2;
1023
+ const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
1024
+ var _a;
1097
1025
  inst._zod ?? (inst._zod = {});
1098
1026
  inst._zod.def = def;
1099
- (_a$2 = inst._zod).onattach ?? (_a$2.onattach = []);
1027
+ (_a = inst._zod).onattach ?? (_a.onattach = []);
1100
1028
  });
1101
1029
  /** Default `when` for length-based checks: run only on non-nullish values with a `length`. */
1102
1030
  const _whenHasLength = (payload) => {
@@ -1108,7 +1036,7 @@ const numericOriginMap = {
1108
1036
  bigint: "bigint",
1109
1037
  object: "date"
1110
1038
  };
1111
- const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
1039
+ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
1112
1040
  $ZodCheck.init(inst, def);
1113
1041
  const origin = numericOriginMap[typeof def.value];
1114
1042
  inst._zod.check = (payload) => {
@@ -1124,7 +1052,7 @@ const $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (ins
1124
1052
  });
1125
1053
  };
1126
1054
  });
1127
- const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
1055
+ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
1128
1056
  $ZodCheck.init(inst, def);
1129
1057
  const origin = numericOriginMap[typeof def.value];
1130
1058
  inst._zod.check = (payload) => {
@@ -1140,12 +1068,11 @@ const $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan"
1140
1068
  });
1141
1069
  };
1142
1070
  });
1143
- const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1071
+ const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
1144
1072
  $ZodCheck.init(inst, def);
1145
1073
  inst._zod.check = (payload) => {
1146
1074
  if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
1147
- const isMultiple = typeof payload.value === "bigint" ? def.value !== BigInt(0) && payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0;
1148
- if (isMultiple) return;
1075
+ if (typeof payload.value === "bigint" ? def.value !== BigInt(0) && payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return;
1149
1076
  payload.issues.push({
1150
1077
  origin: typeof payload.value,
1151
1078
  code: "not_multiple_of",
@@ -1156,7 +1083,7 @@ const $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf",
1156
1083
  });
1157
1084
  };
1158
1085
  });
1159
- const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat", (inst, def) => {
1086
+ const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat", (inst, def) => {
1160
1087
  $ZodCheck.init(inst, def);
1161
1088
  def.format = def.format || "float64";
1162
1089
  const isInt = def.format?.includes("int");
@@ -1220,15 +1147,14 @@ const $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberForma
1220
1147
  });
1221
1148
  };
1222
1149
  });
1223
- const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
1224
- var _a$2;
1150
+ const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (inst, def) => {
1151
+ var _a;
1225
1152
  $ZodCheck.init(inst, def);
1226
- (_a$2 = inst._zod.def).when ?? (_a$2.when = _whenHasLength);
1153
+ (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
1227
1154
  inst._zod.check = (payload) => {
1228
1155
  const input = payload.value;
1229
1156
  const units = input.length;
1230
- const length = typeof input === "string" && units > def.maximum ? codePointLength(input) : units;
1231
- if (length <= def.maximum) return;
1157
+ if ((typeof input === "string" && units > def.maximum ? codePointLength(input) : units) <= def.maximum) return;
1232
1158
  const origin = getLengthableOrigin(input);
1233
1159
  payload.issues.push({
1234
1160
  origin,
@@ -1241,15 +1167,14 @@ const $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (i
1241
1167
  });
1242
1168
  };
1243
1169
  });
1244
- const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
1245
- var _a$2;
1170
+ const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (inst, def) => {
1171
+ var _a;
1246
1172
  $ZodCheck.init(inst, def);
1247
- (_a$2 = inst._zod.def).when ?? (_a$2.when = _whenHasLength);
1173
+ (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
1248
1174
  inst._zod.check = (payload) => {
1249
1175
  const input = payload.value;
1250
1176
  const units = input.length;
1251
- const length = typeof input === "string" && units >= def.minimum && units < def.minimum * 2 ? codePointLength(input) : units;
1252
- if (length >= def.minimum) return;
1177
+ if ((typeof input === "string" && units >= def.minimum && units < def.minimum * 2 ? codePointLength(input) : units) >= def.minimum) return;
1253
1178
  const origin = getLengthableOrigin(input);
1254
1179
  payload.issues.push({
1255
1180
  origin,
@@ -1262,10 +1187,10 @@ const $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (i
1262
1187
  });
1263
1188
  };
1264
1189
  });
1265
- const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1266
- var _a$2;
1190
+ const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1191
+ var _a;
1267
1192
  $ZodCheck.init(inst, def);
1268
- (_a$2 = inst._zod.def).when ?? (_a$2.when = _whenHasLength);
1193
+ (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
1269
1194
  inst._zod.check = (payload) => {
1270
1195
  const input = payload.value;
1271
1196
  const units = input.length;
@@ -1290,10 +1215,10 @@ const $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEqual
1290
1215
  });
1291
1216
  };
1292
1217
  });
1293
- const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
1294
- var _a$2, _b;
1218
+ const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
1219
+ var _a, _b;
1295
1220
  $ZodCheck.init(inst, def);
1296
- if (def.pattern) (_a$2 = inst._zod).check ?? (_a$2.check = (payload) => {
1221
+ if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
1297
1222
  def.pattern.lastIndex = 0;
1298
1223
  if (def.pattern.test(payload.value)) return;
1299
1224
  payload.issues.push({
@@ -1308,7 +1233,7 @@ const $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringForma
1308
1233
  });
1309
1234
  else (_b = inst._zod).check ?? (_b.check = () => {});
1310
1235
  });
1311
- const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def) => {
1236
+ const $ZodCheckRegex = /*@__PURE__*/ $constructor("$ZodCheckRegex", (inst, def) => {
1312
1237
  $ZodCheckStringFormat.init(inst, def);
1313
1238
  inst._zod.check = (payload) => {
1314
1239
  def.pattern.lastIndex = 0;
@@ -1324,19 +1249,18 @@ const $ZodCheckRegex = /* @__PURE__ */ $constructor("$ZodCheckRegex", (inst, def
1324
1249
  });
1325
1250
  };
1326
1251
  });
1327
- const $ZodCheckLowerCase = /* @__PURE__ */ $constructor("$ZodCheckLowerCase", (inst, def) => {
1252
+ const $ZodCheckLowerCase = /*@__PURE__*/ $constructor("$ZodCheckLowerCase", (inst, def) => {
1328
1253
  def.pattern ?? (def.pattern = lowercase);
1329
1254
  $ZodCheckStringFormat.init(inst, def);
1330
1255
  });
1331
- const $ZodCheckUpperCase = /* @__PURE__ */ $constructor("$ZodCheckUpperCase", (inst, def) => {
1256
+ const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (inst, def) => {
1332
1257
  def.pattern ?? (def.pattern = uppercase);
1333
1258
  $ZodCheckStringFormat.init(inst, def);
1334
1259
  });
1335
- const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst, def) => {
1260
+ const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
1336
1261
  $ZodCheck.init(inst, def);
1337
1262
  const escapedRegex = escapeRegex(def.includes);
1338
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);
1339
- def.pattern = pattern;
1263
+ def.pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);
1340
1264
  inst._zod.check = (payload) => {
1341
1265
  if (payload.value.includes(def.includes, def.position)) return;
1342
1266
  payload.issues.push({
@@ -1350,7 +1274,7 @@ const $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (ins
1350
1274
  });
1351
1275
  };
1352
1276
  });
1353
- const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (inst, def) => {
1277
+ const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (inst, def) => {
1354
1278
  $ZodCheck.init(inst, def);
1355
1279
  const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
1356
1280
  def.pattern ?? (def.pattern = pattern);
@@ -1367,7 +1291,7 @@ const $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith",
1367
1291
  });
1368
1292
  };
1369
1293
  });
1370
- const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst, def) => {
1294
+ const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst, def) => {
1371
1295
  $ZodCheck.init(inst, def);
1372
1296
  const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
1373
1297
  def.pattern ?? (def.pattern = pattern);
@@ -1384,13 +1308,12 @@ const $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (ins
1384
1308
  });
1385
1309
  };
1386
1310
  });
1387
- const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (inst, def) => {
1311
+ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst, def) => {
1388
1312
  $ZodCheck.init(inst, def);
1389
1313
  inst._zod.check = (payload) => {
1390
1314
  payload.value = def.tx(payload.value);
1391
1315
  };
1392
1316
  });
1393
-
1394
1317
  //#endregion
1395
1318
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
1396
1319
  var Doc = class {
@@ -1414,8 +1337,7 @@ var Doc = class {
1414
1337
  arg(this, { execution: "async" });
1415
1338
  return;
1416
1339
  }
1417
- const content = arg;
1418
- const lines = content.split("\n").filter((x) => x);
1340
+ const lines = arg.split("\n").filter((x) => x);
1419
1341
  const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));
1420
1342
  const dedented = lines.map((x) => x.slice(minIndent)).map((x) => " ".repeat(this.indent * 2) + x);
1421
1343
  for (const line of dedented) this.content.push(line);
@@ -1423,11 +1345,9 @@ var Doc = class {
1423
1345
  compile() {
1424
1346
  const F = Function;
1425
1347
  const content = this?.content ?? [``];
1426
- const factory = new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`);
1427
- return factory(...Object.values(this.closed));
1348
+ return new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`)(...Object.values(this.closed));
1428
1349
  }
1429
1350
  };
1430
-
1431
1351
  //#endregion
1432
1352
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
1433
1353
  const version = {
@@ -1435,11 +1355,10 @@ const version = {
1435
1355
  minor: 6,
1436
1356
  patch: 5
1437
1357
  };
1438
-
1439
1358
  //#endregion
1440
1359
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
1441
- const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1442
- var _a$2;
1360
+ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
1361
+ var _a;
1443
1362
  inst ?? (inst = {});
1444
1363
  inst._zod.def = def;
1445
1364
  inst._zod.bag = inst._zod.bag || {};
@@ -1448,34 +1367,31 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1448
1367
  const checks = inst._zod.traits.has("$ZodCheck") ? [inst, ...defChecks ?? []] : defChecks?.length ? [...defChecks] : [];
1449
1368
  for (const ch of checks) for (const fn of ch._zod.onattach) fn(inst);
1450
1369
  if (checks.length === 0) {
1451
- (_a$2 = inst._zod).deferred ?? (_a$2.deferred = []);
1370
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
1452
1371
  inst._zod.deferred?.push(() => {
1453
1372
  inst._zod.run = inst._zod.parse;
1454
1373
  });
1455
1374
  } else {
1456
- const runChecks = (payload, checks$1, ctx) => {
1375
+ const runChecks = (payload, checks, ctx) => {
1457
1376
  if (payload.memo) return payload;
1458
1377
  let isAborted = aborted(payload);
1459
1378
  let asyncResult;
1460
- for (const ch of checks$1) {
1379
+ for (const ch of checks) {
1461
1380
  if (ch._zod.def.when) {
1462
1381
  if (explicitlyAborted(payload)) continue;
1463
- const shouldRun = ch._zod.def.when(payload);
1464
- if (!shouldRun) continue;
1382
+ if (!ch._zod.def.when(payload)) continue;
1465
1383
  } else if (isAborted) continue;
1466
1384
  const currLen = payload.issues.length;
1467
1385
  const _ = ch._zod.check(payload);
1468
1386
  if (_ instanceof Promise && ctx?.async === false) throw new $ZodAsyncError();
1469
1387
  if (asyncResult || _ instanceof Promise) asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
1470
1388
  await _;
1471
- const nextLen = payload.issues.length;
1472
- if (nextLen === currLen) return;
1389
+ if (payload.issues.length === currLen) return;
1473
1390
  attachSchema(payload.issues, currLen, inst);
1474
1391
  if (!isAborted) isAborted = aborted(payload, currLen);
1475
1392
  });
1476
1393
  else {
1477
- const nextLen = payload.issues.length;
1478
- if (nextLen === currLen) continue;
1394
+ if (payload.issues.length === currLen) continue;
1479
1395
  attachSchema(payload.issues, currLen, inst);
1480
1396
  if (!isAborted) isAborted = aborted(payload, currLen);
1481
1397
  }
@@ -1493,7 +1409,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1493
1409
  const checkResult = runChecks(payload, checks, ctx);
1494
1410
  if (checkResult instanceof Promise) {
1495
1411
  if (ctx.async === false) throw new $ZodAsyncError();
1496
- return checkResult.then((checkResult$1) => inst._zod.parse(checkResult$1, ctx));
1412
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
1497
1413
  }
1498
1414
  return inst._zod.parse(checkResult, ctx);
1499
1415
  };
@@ -1507,15 +1423,15 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1507
1423
  ...ctx,
1508
1424
  skipChecks: true
1509
1425
  });
1510
- if (canary instanceof Promise) return canary.then((canary$1) => {
1511
- return handleCanaryResult(canary$1, payload, ctx);
1426
+ if (canary instanceof Promise) return canary.then((canary) => {
1427
+ return handleCanaryResult(canary, payload, ctx);
1512
1428
  });
1513
1429
  return handleCanaryResult(canary, payload, ctx);
1514
1430
  }
1515
1431
  const result = inst._zod.parse(payload, ctx);
1516
1432
  if (result instanceof Promise) {
1517
1433
  if (ctx.async === false) throw new $ZodAsyncError();
1518
- return result.then((result$1) => runChecks(result$1, checks, ctx));
1434
+ return result.then((result) => runChecks(result, checks, ctx));
1519
1435
  }
1520
1436
  return runChecks(result, checks, ctx);
1521
1437
  };
@@ -1530,7 +1446,7 @@ const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1530
1446
  });
1531
1447
  /** The Standard Schema surface for `inst`. Shared so wrappers can extend it without forcing it. */
1532
1448
  const toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value };
1533
- async function validateAsync$1(inst, value) {
1449
+ async function validateAsync(inst, value) {
1534
1450
  const ctx = { async: true };
1535
1451
  return toStandardResult(await inst._zod.run({
1536
1452
  value,
@@ -1548,19 +1464,19 @@ function standardProps(inst) {
1548
1464
  }, ctx);
1549
1465
  if (!(r instanceof Promise)) return toStandardResult(r, ctx);
1550
1466
  } catch (_) {}
1551
- return validateAsync$1(inst, value);
1467
+ return validateAsync(inst, value);
1552
1468
  },
1553
1469
  vendor: "zod",
1554
1470
  version: 1
1555
1471
  };
1556
1472
  }
1557
- const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
1473
+ const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
1558
1474
  $ZodType.init(inst, def);
1559
1475
  inst._zod.pattern = def.pattern ?? anyString;
1560
1476
  inst._zod.parse = (payload, _) => {
1561
1477
  if (def.coerce) try {
1562
1478
  payload.value = String(payload.value);
1563
- } catch (_$1) {}
1479
+ } catch (_) {}
1564
1480
  if (typeof payload.value === "string") return payload;
1565
1481
  payload.issues.push({
1566
1482
  expected: "string",
@@ -1571,17 +1487,17 @@ const $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
1571
1487
  return payload;
1572
1488
  };
1573
1489
  });
1574
- const $ZodStringFormat = /* @__PURE__ */ $constructor("$ZodStringFormat", (inst, def) => {
1490
+ const $ZodStringFormat = /*@__PURE__*/ $constructor("$ZodStringFormat", (inst, def) => {
1575
1491
  $ZodCheckStringFormat.init(inst, def);
1576
1492
  $ZodString.init(inst, def);
1577
1493
  });
1578
- const $ZodGUID = /* @__PURE__ */ $constructor("$ZodGUID", (inst, def) => {
1494
+ const $ZodGUID = /*@__PURE__*/ $constructor("$ZodGUID", (inst, def) => {
1579
1495
  def.pattern ?? (def.pattern = guid);
1580
1496
  $ZodStringFormat.init(inst, def);
1581
1497
  });
1582
- const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
1498
+ const $ZodUUID = /*@__PURE__*/ $constructor("$ZodUUID", (inst, def) => {
1583
1499
  if (def.version) {
1584
- const versionMap = {
1500
+ const v = {
1585
1501
  v1: 1,
1586
1502
  v2: 2,
1587
1503
  v3: 3,
@@ -1590,21 +1506,16 @@ const $ZodUUID = /* @__PURE__ */ $constructor("$ZodUUID", (inst, def) => {
1590
1506
  v6: 6,
1591
1507
  v7: 7,
1592
1508
  v8: 8
1593
- };
1594
- const v = versionMap[def.version];
1509
+ }[def.version];
1595
1510
  if (v === void 0) throw new Error(`Invalid UUID version: "${def.version}"`);
1596
1511
  def.pattern ?? (def.pattern = uuid(v));
1597
1512
  } else def.pattern ?? (def.pattern = uuid());
1598
1513
  $ZodStringFormat.init(inst, def);
1599
1514
  });
1600
- const $ZodEmail = /* @__PURE__ */ $constructor("$ZodEmail", (inst, def) => {
1515
+ const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
1601
1516
  def.pattern ?? (def.pattern = email);
1602
1517
  $ZodStringFormat.init(inst, def);
1603
1518
  });
1604
- /** The `://` guard rejected the input before the URL constructor saw it. */
1605
- const URL_BAD_FORMAT = 1;
1606
- /** The URL parser rejected the input. */
1607
- const URL_UNPARSEABLE = 2;
1608
1519
  function canParseURL(input) {
1609
1520
  try {
1610
1521
  if (typeof URL !== "undefined" && typeof URL.canParse === "function") return URL.canParse(input);
@@ -1615,20 +1526,20 @@ function canParseURL(input) {
1615
1526
  }
1616
1527
  }
1617
1528
  function validateURL(trimmed, def) {
1618
- if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) return canParseURL(trimmed) || URL_UNPARSEABLE;
1529
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) return canParseURL(trimmed) || 2;
1619
1530
  return parseURLObject(trimmed, def);
1620
1531
  }
1621
1532
  /** Parses a URL while preserving the non-normalizing HTTP guard. */
1622
1533
  function parseURLObject(trimmed, def) {
1623
- if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) return URL_BAD_FORMAT;
1534
+ if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) return 1;
1624
1535
  try {
1625
1536
  if (typeof URL !== "undefined") {
1626
1537
  const URLStatic = URL;
1627
- if (typeof URLStatic.parse === "function") return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
1538
+ if (typeof URLStatic.parse === "function") return URLStatic.parse(trimmed) ?? 2;
1628
1539
  }
1629
1540
  return new URL(trimmed);
1630
1541
  } catch {
1631
- return URL_UNPARSEABLE;
1542
+ return 2;
1632
1543
  }
1633
1544
  }
1634
1545
  const asciiTabOrNewline = /[\t\n\r]/g;
@@ -1636,21 +1547,21 @@ const asciiTabOrNewline = /[\t\n\r]/g;
1636
1547
  function stripTabAndNewline(value) {
1637
1548
  return value.replace(asciiTabOrNewline, "");
1638
1549
  }
1639
- function urlHostnameOk(url$1, hostname) {
1550
+ function urlHostnameOk(url, hostname) {
1640
1551
  hostname.lastIndex = 0;
1641
- return hostname.test(url$1.hostname);
1552
+ return hostname.test(url.hostname);
1642
1553
  }
1643
- function urlProtocolOk(url$1, protocol) {
1554
+ function urlProtocolOk(url, protocol) {
1644
1555
  protocol.lastIndex = 0;
1645
- return protocol.test(url$1.protocol.endsWith(":") ? url$1.protocol.slice(0, -1) : url$1.protocol);
1556
+ return protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol);
1646
1557
  }
1647
- const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1558
+ const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
1648
1559
  $ZodStringFormat.init(inst, def);
1649
1560
  inst._zod.check = (payload) => {
1650
1561
  try {
1651
1562
  const trimmed = payload.value.trim();
1652
- const url$1 = validateURL(trimmed, def);
1653
- if (url$1 === URL_BAD_FORMAT) {
1563
+ const url = validateURL(trimmed, def);
1564
+ if (url === 1) {
1654
1565
  payload.issues.push({
1655
1566
  code: "invalid_format",
1656
1567
  format: "url",
@@ -1661,7 +1572,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1661
1572
  });
1662
1573
  return;
1663
1574
  }
1664
- if (url$1 === URL_UNPARSEABLE) {
1575
+ if (url === 2) {
1665
1576
  payload.issues.push({
1666
1577
  code: "invalid_format",
1667
1578
  format: "url",
@@ -1671,11 +1582,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1671
1582
  });
1672
1583
  return;
1673
1584
  }
1674
- if (url$1 === true) {
1585
+ if (url === true) {
1675
1586
  payload.value = stripTabAndNewline(trimmed);
1676
1587
  return;
1677
1588
  }
1678
- if (def.hostname && !urlHostnameOk(url$1, def.hostname)) payload.issues.push({
1589
+ if (def.hostname && !urlHostnameOk(url, def.hostname)) payload.issues.push({
1679
1590
  code: "invalid_format",
1680
1591
  format: "url",
1681
1592
  note: "Invalid hostname",
@@ -1684,7 +1595,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1684
1595
  inst,
1685
1596
  continue: !def.abort
1686
1597
  });
1687
- if (def.protocol && !urlProtocolOk(url$1, def.protocol)) payload.issues.push({
1598
+ if (def.protocol && !urlProtocolOk(url, def.protocol)) payload.issues.push({
1688
1599
  code: "invalid_format",
1689
1600
  format: "url",
1690
1601
  note: "Invalid protocol",
@@ -1693,7 +1604,7 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1693
1604
  inst,
1694
1605
  continue: !def.abort
1695
1606
  });
1696
- payload.value = def.normalize ? url$1.href : stripTabAndNewline(trimmed);
1607
+ payload.value = def.normalize ? url.href : stripTabAndNewline(trimmed);
1697
1608
  return;
1698
1609
  } catch (_) {
1699
1610
  payload.issues.push({
@@ -1706,11 +1617,11 @@ const $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1706
1617
  }
1707
1618
  };
1708
1619
  });
1709
- const $ZodEmoji = /* @__PURE__ */ $constructor("$ZodEmoji", (inst, def) => {
1620
+ const $ZodEmoji = /*@__PURE__*/ $constructor("$ZodEmoji", (inst, def) => {
1710
1621
  def.pattern ?? (def.pattern = emoji());
1711
1622
  $ZodStringFormat.init(inst, def);
1712
1623
  });
1713
- const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
1624
+ const $ZodNanoID = /*@__PURE__*/ $constructor("$ZodNanoID", (inst, def) => {
1714
1625
  if (def.length !== void 0 && (!Number.isInteger(def.length) || def.length < 1)) throw new Error(`Invalid nanoid length: ${def.length}`);
1715
1626
  def.pattern ?? (def.pattern = def.length === void 0 ? nanoid : nanoidOfLength(def.length));
1716
1627
  $ZodStringFormat.init(inst, def);
@@ -1720,43 +1631,43 @@ const $ZodNanoID = /* @__PURE__ */ $constructor("$ZodNanoID", (inst, def) => {
1720
1631
  * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
1721
1632
  * See https://github.com/paralleldrive/cuid.
1722
1633
  */
1723
- const $ZodCUID = /* @__PURE__ */ $constructor("$ZodCUID", (inst, def) => {
1634
+ const $ZodCUID = /*@__PURE__*/ $constructor("$ZodCUID", (inst, def) => {
1724
1635
  def.pattern ?? (def.pattern = cuid);
1725
1636
  $ZodStringFormat.init(inst, def);
1726
1637
  });
1727
- const $ZodCUID2 = /* @__PURE__ */ $constructor("$ZodCUID2", (inst, def) => {
1638
+ const $ZodCUID2 = /*@__PURE__*/ $constructor("$ZodCUID2", (inst, def) => {
1728
1639
  def.pattern ?? (def.pattern = cuid2);
1729
1640
  $ZodStringFormat.init(inst, def);
1730
1641
  });
1731
- const $ZodULID = /* @__PURE__ */ $constructor("$ZodULID", (inst, def) => {
1642
+ const $ZodULID = /*@__PURE__*/ $constructor("$ZodULID", (inst, def) => {
1732
1643
  def.pattern ?? (def.pattern = ulid);
1733
1644
  $ZodStringFormat.init(inst, def);
1734
1645
  });
1735
- const $ZodXID = /* @__PURE__ */ $constructor("$ZodXID", (inst, def) => {
1646
+ const $ZodXID = /*@__PURE__*/ $constructor("$ZodXID", (inst, def) => {
1736
1647
  def.pattern ?? (def.pattern = xid);
1737
1648
  $ZodStringFormat.init(inst, def);
1738
1649
  });
1739
- const $ZodKSUID = /* @__PURE__ */ $constructor("$ZodKSUID", (inst, def) => {
1650
+ const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
1740
1651
  def.pattern ?? (def.pattern = ksuid);
1741
1652
  $ZodStringFormat.init(inst, def);
1742
1653
  });
1743
- const $ZodISODateTime = /* @__PURE__ */ $constructor("$ZodISODateTime", (inst, def) => {
1654
+ const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
1744
1655
  def.pattern ?? (def.pattern = datetime(def));
1745
1656
  $ZodStringFormat.init(inst, def);
1746
1657
  });
1747
- const $ZodISODate = /* @__PURE__ */ $constructor("$ZodISODate", (inst, def) => {
1658
+ const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
1748
1659
  def.pattern ?? (def.pattern = date);
1749
1660
  $ZodStringFormat.init(inst, def);
1750
1661
  });
1751
- const $ZodISOTime = /* @__PURE__ */ $constructor("$ZodISOTime", (inst, def) => {
1662
+ const $ZodISOTime = /*@__PURE__*/ $constructor("$ZodISOTime", (inst, def) => {
1752
1663
  def.pattern ?? (def.pattern = time(def));
1753
1664
  $ZodStringFormat.init(inst, def);
1754
1665
  });
1755
- const $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def) => {
1666
+ const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def) => {
1756
1667
  def.pattern ?? (def.pattern = duration);
1757
1668
  $ZodStringFormat.init(inst, def);
1758
1669
  });
1759
- const $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
1670
+ const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
1760
1671
  def.pattern ?? (def.pattern = ipv4);
1761
1672
  $ZodStringFormat.init(inst, def);
1762
1673
  });
@@ -1766,7 +1677,7 @@ function isValidIPv6(value) {
1766
1677
  if (!ipv6Alphabet.test(value)) return false;
1767
1678
  return canParseURL(`http://[${value}]`);
1768
1679
  }
1769
- const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
1680
+ const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
1770
1681
  def.pattern ?? (def.pattern = ipv6);
1771
1682
  $ZodStringFormat.init(inst, def);
1772
1683
  inst._zod.check = (payload) => {
@@ -1779,7 +1690,7 @@ const $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
1779
1690
  });
1780
1691
  };
1781
1692
  });
1782
- const $ZodCIDRv4 = /* @__PURE__ */ $constructor("$ZodCIDRv4", (inst, def) => {
1693
+ const $ZodCIDRv4 = /*@__PURE__*/ $constructor("$ZodCIDRv4", (inst, def) => {
1783
1694
  def.pattern ?? (def.pattern = cidrv4);
1784
1695
  $ZodStringFormat.init(inst, def);
1785
1696
  });
@@ -1793,7 +1704,7 @@ function isValidCIDRv6(value) {
1793
1704
  if (prefixNum < 0 || prefixNum > 128) return false;
1794
1705
  return isValidIPv6(address);
1795
1706
  }
1796
- const $ZodCIDRv6 = /* @__PURE__ */ $constructor("$ZodCIDRv6", (inst, def) => {
1707
+ const $ZodCIDRv6 = /*@__PURE__*/ $constructor("$ZodCIDRv6", (inst, def) => {
1797
1708
  def.pattern ?? (def.pattern = cidrv6);
1798
1709
  $ZodStringFormat.init(inst, def);
1799
1710
  inst._zod.check = (payload) => {
@@ -1818,7 +1729,7 @@ function isValidBase64(data) {
1818
1729
  }
1819
1730
  }
1820
1731
  const base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/;
1821
- const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
1732
+ const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
1822
1733
  def.pattern ?? (def.pattern = base64Charset);
1823
1734
  $ZodStringFormat.init(inst, def);
1824
1735
  inst._zod.check = (payload) => {
@@ -1835,11 +1746,10 @@ const $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
1835
1746
  const base64urlCharset = /^[A-Za-z0-9_-]*$/;
1836
1747
  function isValidBase64URL(data) {
1837
1748
  if (!base64urlCharset.test(data)) return false;
1838
- const base64$1 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1839
- const padded = base64$1.padEnd(Math.ceil(base64$1.length / 4) * 4, "=");
1840
- return isValidBase64(padded);
1749
+ const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
1750
+ return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
1841
1751
  }
1842
- const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
1752
+ const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
1843
1753
  def.pattern ?? (def.pattern = base64urlCharset);
1844
1754
  $ZodStringFormat.init(inst, def);
1845
1755
  inst._zod.check = (payload) => {
@@ -1853,7 +1763,7 @@ const $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def)
1853
1763
  });
1854
1764
  };
1855
1765
  });
1856
- const $ZodE164 = /* @__PURE__ */ $constructor("$ZodE164", (inst, def) => {
1766
+ const $ZodE164 = /*@__PURE__*/ $constructor("$ZodE164", (inst, def) => {
1857
1767
  def.pattern ?? (def.pattern = e164);
1858
1768
  $ZodStringFormat.init(inst, def);
1859
1769
  });
@@ -1872,7 +1782,7 @@ function isValidJWT(token, algorithm = null) {
1872
1782
  return false;
1873
1783
  }
1874
1784
  }
1875
- const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
1785
+ const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
1876
1786
  $ZodStringFormat.init(inst, def);
1877
1787
  inst._zod.check = (payload) => {
1878
1788
  if (isValidJWT(payload.value, def.alg)) return;
@@ -1885,7 +1795,7 @@ const $ZodJWT = /* @__PURE__ */ $constructor("$ZodJWT", (inst, def) => {
1885
1795
  });
1886
1796
  };
1887
1797
  });
1888
- const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
1798
+ const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
1889
1799
  $ZodType.init(inst, def);
1890
1800
  inst._zod.pattern = number$1;
1891
1801
  inst._zod.parse = (payload, _ctx) => {
@@ -1905,11 +1815,11 @@ const $ZodNumber = /* @__PURE__ */ $constructor("$ZodNumber", (inst, def) => {
1905
1815
  return payload;
1906
1816
  };
1907
1817
  });
1908
- const $ZodNumberFormat = /* @__PURE__ */ $constructor("$ZodNumberFormat", (inst, def) => {
1818
+ const $ZodNumberFormat = /*@__PURE__*/ $constructor("$ZodNumberFormat", (inst, def) => {
1909
1819
  $ZodCheckNumberFormat.init(inst, def);
1910
1820
  $ZodNumber.init(inst, def);
1911
1821
  });
1912
- const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
1822
+ const $ZodBoolean = /*@__PURE__*/ $constructor("$ZodBoolean", (inst, def) => {
1913
1823
  $ZodType.init(inst, def);
1914
1824
  inst._zod.pattern = boolean$1;
1915
1825
  inst._zod.parse = (payload, _ctx) => {
@@ -1927,11 +1837,11 @@ const $ZodBoolean = /* @__PURE__ */ $constructor("$ZodBoolean", (inst, def) => {
1927
1837
  return payload;
1928
1838
  };
1929
1839
  });
1930
- const $ZodUnknown = /* @__PURE__ */ $constructor("$ZodUnknown", (inst, def) => {
1840
+ const $ZodUnknown = /*@__PURE__*/ $constructor("$ZodUnknown", (inst, def) => {
1931
1841
  $ZodType.init(inst, def);
1932
1842
  inst._zod.parse = (payload) => payload;
1933
1843
  });
1934
- const $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
1844
+ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
1935
1845
  $ZodType.init(inst, def);
1936
1846
  inst._zod.parse = (payload, _ctx) => {
1937
1847
  payload.issues.push({
@@ -1947,10 +1857,10 @@ function handleArrayResult(result, final, index) {
1947
1857
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
1948
1858
  final.value[index] = result.value;
1949
1859
  }
1950
- const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1860
+ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
1951
1861
  $ZodType.init(inst, def);
1952
- const memo$1 = globalConfig.memoizer;
1953
- memo$1?.attach(inst);
1862
+ const memo = globalConfig.memoizer;
1863
+ memo?.attach(inst);
1954
1864
  inst._zod.parse = (payload, ctx) => {
1955
1865
  const input = payload.value;
1956
1866
  if (!Array.isArray(input)) {
@@ -1962,7 +1872,7 @@ const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1962
1872
  });
1963
1873
  return payload;
1964
1874
  }
1965
- payload.value = memo$1 ? memo$1.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
1875
+ payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
1966
1876
  const proms = [];
1967
1877
  const abortEarly = ctx?.abortEarly;
1968
1878
  for (let i = 0; i < input.length; i++) {
@@ -1971,7 +1881,7 @@ const $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1971
1881
  value: item,
1972
1882
  issues: []
1973
1883
  }, ctx);
1974
- if (result instanceof Promise) proms.push(result.then((result$1) => handleArrayResult(result$1, payload, i)));
1884
+ if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
1975
1885
  else {
1976
1886
  handleArrayResult(result, payload, i);
1977
1887
  if (abortEarly && result.issues.length !== 0 && aborted(result)) break;
@@ -2045,7 +1955,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
2045
1955
  value: input[key],
2046
1956
  issues: []
2047
1957
  }, ctx);
2048
- if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input, optin, optout)));
1958
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
2049
1959
  else handlePropertyResult(r, payload, key, input, optin, optout);
2050
1960
  }
2051
1961
  if (unrecognized.length) payload.issues.push({
@@ -2060,7 +1970,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
2060
1970
  return payload;
2061
1971
  });
2062
1972
  }
2063
- const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
1973
+ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
2064
1974
  $ZodType.init(inst, def);
2065
1975
  const desc = Object.getOwnPropertyDescriptor(def, "shape");
2066
1976
  const sh = desc?.get ? desc.get.raw : def.shape ?? {};
@@ -2088,15 +1998,15 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2088
1998
  }
2089
1999
  return propValues;
2090
2000
  });
2091
- const isObject$1 = isObject;
2001
+ const isObject$2 = isObject;
2092
2002
  const catchall = def.catchall;
2093
2003
  let value;
2094
- const memo$1 = globalConfig.memoizer;
2095
- memo$1?.attach(inst);
2004
+ const memo = globalConfig.memoizer;
2005
+ memo?.attach(inst);
2096
2006
  inst._zod.parse = (payload, ctx) => {
2097
2007
  value ?? (value = _normalized.value);
2098
2008
  const input = payload.value;
2099
- if (!isObject$1(input)) {
2009
+ if (!isObject$2(input)) {
2100
2010
  payload.issues.push({
2101
2011
  expected: "object",
2102
2012
  code: "invalid_type",
@@ -2105,7 +2015,7 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2105
2015
  });
2106
2016
  return payload;
2107
2017
  }
2108
- payload.value = memo$1 ? memo$1.alloc(inst, payload, {}, ctx) : {};
2018
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
2109
2019
  const proms = [];
2110
2020
  const shape = value.shape;
2111
2021
  const abortEarly = ctx?.abortEarly;
@@ -2123,25 +2033,25 @@ const $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
2123
2033
  value: input[key],
2124
2034
  issues: []
2125
2035
  }, ctx);
2126
- if (r instanceof Promise) proms.push(r.then((r$1) => handlePropertyResult(r$1, payload, key, input, optin, optout)));
2036
+ if (r instanceof Promise) proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
2127
2037
  else handlePropertyResult(r, payload, key, input, optin, optout);
2128
2038
  }
2129
2039
  if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
2130
2040
  return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);
2131
2041
  };
2132
2042
  });
2133
- const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
2043
+ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
2134
2044
  $ZodObject.init(inst, def);
2135
2045
  const superParse = inst._zod.parse;
2136
2046
  const _normalized = cached(() => normalizeDef(def));
2137
- const memo$1 = globalConfig.memoizer;
2047
+ const memo = globalConfig.memoizer;
2138
2048
  const generateFastpass = (shape) => {
2139
2049
  const normalized = _normalized.value;
2140
2050
  const syms = normalized.symbolKeys;
2141
2051
  const doc = new Doc(["payload", "ctx"], {
2142
2052
  shape,
2143
2053
  inst,
2144
- memo: memo$1,
2054
+ memo,
2145
2055
  syms
2146
2056
  });
2147
2057
  const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
@@ -2161,7 +2071,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
2161
2071
  const ids = Object.create(null);
2162
2072
  let counter = 0;
2163
2073
  for (const key of normalized.allKeys) ids[key] = `key_${counter++}`;
2164
- doc.write(memo$1 ? `const newResult = memo.alloc(inst, payload, {}, ctx);` : `const newResult = {};`);
2074
+ doc.write(memo ? `const newResult = memo.alloc(inst, payload, {}, ctx);` : `const newResult = {};`);
2165
2075
  for (const key of normalized.allKeys) {
2166
2076
  if (key === "__proto__") continue;
2167
2077
  const id = ids[key];
@@ -2228,8 +2138,7 @@ const $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def)
2228
2138
  let fastpass;
2229
2139
  const isObject$1 = isObject;
2230
2140
  const jit = !globalConfig.jitless;
2231
- const allowsEval$1 = allowsEval;
2232
- const fastEnabled = jit && allowsEval$1.value;
2141
+ const fastEnabled = jit && allowsEval.value;
2233
2142
  const catchall = def.catchall;
2234
2143
  let value;
2235
2144
  inst._zod.parse = (payload, ctx) => {
@@ -2271,20 +2180,18 @@ function handleUnionResults(results, final, inst, ctx) {
2271
2180
  });
2272
2181
  return final;
2273
2182
  }
2274
- const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
2183
+ const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
2275
2184
  $ZodType.init(inst, def);
2276
2185
  defineLazyInternal(inst, "optin", (zod) => zod.def.options.some((o) => o._zod.optin === "defaulted") ? "defaulted" : zod.def.options.some((o) => o._zod.optin !== void 0) ? "optional" : void 0);
2277
2186
  defineLazyInternal(inst, "optout", (zod) => zod.def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0);
2278
2187
  defineLazyInternal(inst, "values", (zod) => {
2279
2188
  if (zod.def.options.every((o) => o._zod.values)) return new Set(zod.def.options.flatMap((option) => Array.from(option._zod.values)));
2280
- return void 0;
2281
2189
  });
2282
2190
  defineLazyInternal(inst, "pattern", (zod) => {
2283
2191
  if (zod.def.options.every((o) => o._zod.pattern)) {
2284
2192
  const patterns = zod.def.options.map((o) => o._zod.pattern);
2285
2193
  return new RegExp(`^(${patterns.map((p) => cleanRegex(p.source)).join("|")})$`);
2286
2194
  }
2287
- return void 0;
2288
2195
  });
2289
2196
  const first = def.options.length === 1 ? def.options[0]._zod.run : null;
2290
2197
  inst._zod.parse = (payload, ctx) => {
@@ -2305,8 +2212,8 @@ const $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
2305
2212
  }
2306
2213
  }
2307
2214
  if (!async) return handleUnionResults(results, payload, inst, ctx);
2308
- return Promise.all(results).then((results$1) => {
2309
- return handleUnionResults(results$1, payload, inst, ctx);
2215
+ return Promise.all(results).then((results) => {
2216
+ return handleUnionResults(results, payload, inst, ctx);
2310
2217
  });
2311
2218
  };
2312
2219
  });
@@ -2322,7 +2229,7 @@ function discriminatorMap(def) {
2322
2229
  }
2323
2230
  return map;
2324
2231
  }
2325
- const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
2232
+ const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
2326
2233
  def.inclusive = false;
2327
2234
  $ZodUnion.init(inst, def);
2328
2235
  const _super = inst._zod.parse;
@@ -2366,7 +2273,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
2366
2273
  errors: [],
2367
2274
  note: "No matching discriminator",
2368
2275
  discriminator: def.discriminator,
2369
- options: Array.from(disc.value.keys()).filter((value$1) => disc.value.get(value$1) !== null),
2276
+ options: Array.from(disc.value.keys()).filter((value) => disc.value.get(value) !== null),
2370
2277
  input,
2371
2278
  path: [def.discriminator],
2372
2279
  inst
@@ -2374,7 +2281,7 @@ const $ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("$ZodDiscriminatedUn
2374
2281
  return payload;
2375
2282
  };
2376
2283
  });
2377
- const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
2284
+ const $ZodIntersection = /*@__PURE__*/ $constructor("$ZodIntersection", (inst, def) => {
2378
2285
  $ZodType.init(inst, def);
2379
2286
  inst._zod.parse = (payload, ctx) => {
2380
2287
  const input = payload.value;
@@ -2386,9 +2293,8 @@ const $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst,
2386
2293
  value: input,
2387
2294
  issues: []
2388
2295
  }, ctx);
2389
- const async = left instanceof Promise || right instanceof Promise;
2390
- if (async) return Promise.all([left, right]).then(([left$1, right$1]) => {
2391
- return handleIntersectionResults(payload, left$1, right$1);
2296
+ if (left instanceof Promise || right instanceof Promise) return Promise.all([left, right]).then(([left, right]) => {
2297
+ return handleIntersectionResults(payload, left, right);
2392
2298
  });
2393
2299
  return handleIntersectionResults(payload, left, right);
2394
2300
  };
@@ -2489,10 +2395,10 @@ function handleIntersectionResults(result, left, right) {
2489
2395
  result.value = merged.data;
2490
2396
  return result;
2491
2397
  }
2492
- const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2398
+ const $ZodRecord = /*@__PURE__*/ $constructor("$ZodRecord", (inst, def) => {
2493
2399
  $ZodType.init(inst, def);
2494
- const memo$1 = globalConfig.memoizer;
2495
- memo$1?.attach(inst);
2400
+ const memo = globalConfig.memoizer;
2401
+ memo?.attach(inst);
2496
2402
  inst._zod.parse = (payload, ctx) => {
2497
2403
  const input = payload.value;
2498
2404
  if (!isPlainObject(input)) {
@@ -2507,7 +2413,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2507
2413
  const proms = [];
2508
2414
  const values = def.keyType._zod.values;
2509
2415
  if (values && !def.partial) {
2510
- payload.value = memo$1 ? memo$1.alloc(inst, payload, {}, ctx) : {};
2416
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
2511
2417
  const recordKeys = /* @__PURE__ */ new Set();
2512
2418
  for (const key of values) if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
2513
2419
  recordKeys.add(typeof key === "number" ? key.toString() : key);
@@ -2534,9 +2440,9 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2534
2440
  value: input[key],
2535
2441
  issues: []
2536
2442
  }, ctx);
2537
- if (result instanceof Promise) proms.push(result.then((result$1) => {
2538
- if (result$1.issues.length) payload.issues.push(...prefixIssues(key, result$1.issues));
2539
- payload.value[outKey] = result$1.value;
2443
+ if (result instanceof Promise) proms.push(result.then((result) => {
2444
+ if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2445
+ payload.value[outKey] = result.value;
2540
2446
  }));
2541
2447
  else {
2542
2448
  if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
@@ -2544,12 +2450,14 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2544
2450
  }
2545
2451
  }
2546
2452
  let unrecognized;
2547
- for (const key in input) if (!recordKeys.has(key)) if (def.mode === "loose") {
2548
- if (key === "__proto__") continue;
2549
- payload.value[key] = input[key];
2550
- } else {
2551
- unrecognized = unrecognized ?? [];
2552
- unrecognized.push(key);
2453
+ for (const key in input) if (!recordKeys.has(key)) {
2454
+ if (def.mode === "loose") {
2455
+ if (key === "__proto__") continue;
2456
+ payload.value[key] = input[key];
2457
+ } else {
2458
+ unrecognized = unrecognized ?? [];
2459
+ unrecognized.push(key);
2460
+ }
2553
2461
  }
2554
2462
  if (unrecognized && unrecognized.length > 0) payload.issues.push({
2555
2463
  code: "unrecognized_keys",
@@ -2559,7 +2467,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2559
2467
  continue: true
2560
2468
  });
2561
2469
  } else {
2562
- payload.value = memo$1 ? memo$1.alloc(inst, payload, {}, ctx) : {};
2470
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
2563
2471
  let unrecognized;
2564
2472
  for (const key of Reflect.ownKeys(input)) {
2565
2473
  if (key === "__proto__") continue;
@@ -2569,8 +2477,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2569
2477
  issues: []
2570
2478
  }, ctx);
2571
2479
  if (keyResult instanceof Promise) throw new Error("Async schemas not supported in object keys currently");
2572
- const checkNumericKey = typeof key === "string" && number$1.test(key) && keyResult.issues.length;
2573
- if (checkNumericKey) {
2480
+ if (typeof key === "string" && number$1.test(key) && keyResult.issues.length) {
2574
2481
  const retryResult = def.keyType._zod.run({
2575
2482
  value: Number(key),
2576
2483
  issues: []
@@ -2599,9 +2506,9 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2599
2506
  value: input[key],
2600
2507
  issues: []
2601
2508
  }, ctx);
2602
- if (result instanceof Promise) proms.push(result.then((result$1) => {
2603
- if (result$1.issues.length) payload.issues.push(...prefixIssues(key, result$1.issues));
2604
- payload.value[outKey] = result$1.value;
2509
+ if (result instanceof Promise) proms.push(result.then((result) => {
2510
+ if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
2511
+ payload.value[outKey] = result.value;
2605
2512
  }));
2606
2513
  else {
2607
2514
  if (result.issues.length) payload.issues.push(...prefixIssues(key, result.issues));
@@ -2620,7 +2527,7 @@ const $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
2620
2527
  return payload;
2621
2528
  };
2622
2529
  });
2623
- const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
2530
+ const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
2624
2531
  $ZodType.init(inst, def);
2625
2532
  const values = getEnumValues(def.entries);
2626
2533
  const valuesSet = new Set(values);
@@ -2641,7 +2548,7 @@ const $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
2641
2548
  return payload;
2642
2549
  };
2643
2550
  });
2644
- const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
2551
+ const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
2645
2552
  $ZodType.init(inst, def);
2646
2553
  const values = new Set(def.values);
2647
2554
  inst._zod.values = values;
@@ -2661,20 +2568,17 @@ const $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
2661
2568
  return payload;
2662
2569
  };
2663
2570
  });
2664
- const $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) => {
2571
+ const $ZodTransform = /*@__PURE__*/ $constructor("$ZodTransform", (inst, def) => {
2665
2572
  $ZodType.init(inst, def);
2666
2573
  inst._zod.optin = "optional";
2667
- globalConfig.memoizer.guard(inst);
2574
+ globalConfig.memoizer?.guard(inst);
2668
2575
  inst._zod.parse = (payload, ctx) => {
2669
2576
  if (ctx.direction === "backward") throw new $ZodEncodeError(inst.constructor.name);
2670
2577
  const _out = def.transform(payload.value, payload);
2671
- if (ctx.async) {
2672
- const output = _out instanceof Promise ? _out : Promise.resolve(_out);
2673
- return output.then((output$1) => {
2674
- payload.value = output$1;
2675
- return payload;
2676
- });
2677
- }
2578
+ if (ctx.async) return (_out instanceof Promise ? _out : Promise.resolve(_out)).then((output) => {
2579
+ payload.value = output;
2580
+ return payload;
2581
+ });
2678
2582
  if (_out instanceof Promise) throw new $ZodAsyncError();
2679
2583
  payload.value = _out;
2680
2584
  return payload;
@@ -2684,13 +2588,13 @@ function handleOptionalResult(payload, result) {
2684
2588
  payload.value = result.issues.length ? void 0 : result.value;
2685
2589
  return payload;
2686
2590
  }
2687
- const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
2591
+ const $ZodOptional = /*@__PURE__*/ $constructor("$ZodOptional", (inst, def) => {
2688
2592
  $ZodType.init(inst, def);
2689
2593
  defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
2690
2594
  inst._zod.optout = "optional";
2691
2595
  defineLazyInternal(inst, "values", (zod) => {
2692
2596
  const values = zod.def.innerType._zod.values;
2693
- return values ? new Set([...values, void 0]) : void 0;
2597
+ return values ? /* @__PURE__ */ new Set([...values, void 0]) : void 0;
2694
2598
  });
2695
2599
  defineLazyInternal(inst, "pattern", (zod) => {
2696
2600
  const pattern = zod.def.innerType._zod.pattern;
@@ -2703,13 +2607,13 @@ const $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) =>
2703
2607
  value: payload.value,
2704
2608
  issues: []
2705
2609
  }, ctx);
2706
- if (result instanceof Promise) return result.then((result$1) => handleOptionalResult(payload, result$1));
2610
+ if (result instanceof Promise) return result.then((result) => handleOptionalResult(payload, result));
2707
2611
  return handleOptionalResult(payload, result);
2708
2612
  }
2709
2613
  return def.innerType._zod.run(payload, ctx);
2710
2614
  };
2711
2615
  });
2712
- const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (inst, def) => {
2616
+ const $ZodExactOptional = /*@__PURE__*/ $constructor("$ZodExactOptional", (inst, def) => {
2713
2617
  $ZodOptional.init(inst, def);
2714
2618
  defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2715
2619
  defineLazyInternal(inst, "pattern", (zod) => zod.def.innerType._zod.pattern);
@@ -2717,7 +2621,7 @@ const $ZodExactOptional = /* @__PURE__ */ $constructor("$ZodExactOptional", (ins
2717
2621
  return def.innerType._zod.run(payload, ctx);
2718
2622
  };
2719
2623
  });
2720
- const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) => {
2624
+ const $ZodNullable = /*@__PURE__*/ $constructor("$ZodNullable", (inst, def) => {
2721
2625
  $ZodType.init(inst, def);
2722
2626
  defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin);
2723
2627
  defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout);
@@ -2726,14 +2630,14 @@ const $ZodNullable = /* @__PURE__ */ $constructor("$ZodNullable", (inst, def) =>
2726
2630
  return pattern ? new RegExp(`^(${cleanRegex(pattern.source)}|null)$`) : void 0;
2727
2631
  });
2728
2632
  defineLazyInternal(inst, "values", (zod) => {
2729
- return zod.def.innerType._zod.values ? new Set([...zod.def.innerType._zod.values, null]) : void 0;
2633
+ return zod.def.innerType._zod.values ? /* @__PURE__ */ new Set([...zod.def.innerType._zod.values, null]) : void 0;
2730
2634
  });
2731
2635
  inst._zod.parse = (payload, ctx) => {
2732
2636
  if (payload.value === null) return payload;
2733
2637
  return def.innerType._zod.run(payload, ctx);
2734
2638
  };
2735
2639
  });
2736
- const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
2640
+ const $ZodDefault = /*@__PURE__*/ $constructor("$ZodDefault", (inst, def) => {
2737
2641
  $ZodType.init(inst, def);
2738
2642
  inst._zod.optin = "defaulted";
2739
2643
  defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
@@ -2747,7 +2651,7 @@ const $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
2747
2651
  return payload;
2748
2652
  }
2749
2653
  const result = def.innerType._zod.run(payload, ctx);
2750
- if (result instanceof Promise) return result.then((result$1) => handleDefaultResult(result$1, def));
2654
+ if (result instanceof Promise) return result.then((result) => handleDefaultResult(result, def));
2751
2655
  return handleDefaultResult(result, def);
2752
2656
  };
2753
2657
  });
@@ -2755,7 +2659,7 @@ function handleDefaultResult(payload, def) {
2755
2659
  if (payload.value === void 0) payload.value = def.defaultValue;
2756
2660
  return payload;
2757
2661
  }
2758
- const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) => {
2662
+ const $ZodPrefault = /*@__PURE__*/ $constructor("$ZodPrefault", (inst, def) => {
2759
2663
  $ZodType.init(inst, def);
2760
2664
  inst._zod.optin = "defaulted";
2761
2665
  defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
@@ -2765,7 +2669,7 @@ const $ZodPrefault = /* @__PURE__ */ $constructor("$ZodPrefault", (inst, def) =>
2765
2669
  return def.innerType._zod.run(payload, ctx);
2766
2670
  };
2767
2671
  });
2768
- const $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def) => {
2672
+ const $ZodNonOptional = /*@__PURE__*/ $constructor("$ZodNonOptional", (inst, def) => {
2769
2673
  $ZodType.init(inst, def);
2770
2674
  defineLazyInternal(inst, "values", (zod) => {
2771
2675
  const v = zod.def.innerType._zod.values;
@@ -2773,7 +2677,7 @@ const $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, d
2773
2677
  });
2774
2678
  inst._zod.parse = (payload, ctx) => {
2775
2679
  const result = def.innerType._zod.run(payload, ctx);
2776
- if (result instanceof Promise) return result.then((result$1) => handleNonOptionalResult(result$1, inst));
2680
+ if (result instanceof Promise) return result.then((result) => handleNonOptionalResult(result, inst));
2777
2681
  return handleNonOptionalResult(result, inst);
2778
2682
  };
2779
2683
  });
@@ -2800,7 +2704,7 @@ function handleCatchResult(payload, result, def, ctx) {
2800
2704
  });
2801
2705
  return payload;
2802
2706
  }
2803
- const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
2707
+ const $ZodCatch = /*@__PURE__*/ $constructor("$ZodCatch", (inst, def) => {
2804
2708
  $ZodType.init(inst, def);
2805
2709
  defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
2806
2710
  defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout);
@@ -2811,11 +2715,11 @@ const $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
2811
2715
  value: payload.value,
2812
2716
  issues: []
2813
2717
  }, ctx);
2814
- if (result instanceof Promise) return result.then((result$1) => handleCatchResult(payload, result$1, def, ctx));
2718
+ if (result instanceof Promise) return result.then((result) => handleCatchResult(payload, result, def, ctx));
2815
2719
  return handleCatchResult(payload, result, def, ctx);
2816
2720
  };
2817
2721
  });
2818
- const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
2722
+ const $ZodPipe = /*@__PURE__*/ $constructor("$ZodPipe", (inst, def) => {
2819
2723
  $ZodType.init(inst, def);
2820
2724
  defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values);
2821
2725
  defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin);
@@ -2824,11 +2728,11 @@ const $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
2824
2728
  inst._zod.parse = (payload, ctx) => {
2825
2729
  if (ctx.direction === "backward") {
2826
2730
  const right = def.out._zod.run(payload, ctx);
2827
- if (right instanceof Promise) return right.then((right$1) => handlePipeResult(right$1, def.in, ctx));
2731
+ if (right instanceof Promise) return right.then((right) => handlePipeResult(right, def.in, ctx));
2828
2732
  return handlePipeResult(right, def.in, ctx);
2829
2733
  }
2830
2734
  const left = def.in._zod.run(payload, ctx);
2831
- if (left instanceof Promise) return left.then((left$1) => handlePipeResult(left$1, def.out, ctx));
2735
+ if (left instanceof Promise) return left.then((left) => handlePipeResult(left, def.out, ctx));
2832
2736
  return handlePipeResult(left, def.out, ctx);
2833
2737
  };
2834
2738
  });
@@ -2842,7 +2746,7 @@ function handlePipeResult(left, next, ctx) {
2842
2746
  issues: left.issues
2843
2747
  }, ctx);
2844
2748
  }
2845
- const $ZodReadonly = /* @__PURE__ */ $constructor("$ZodReadonly", (inst, def) => {
2749
+ const $ZodReadonly = /*@__PURE__*/ $constructor("$ZodReadonly", (inst, def) => {
2846
2750
  $ZodType.init(inst, def);
2847
2751
  defineLazyInternal(inst, "propValues", (zod) => zod.def.innerType._zod.propValues);
2848
2752
  defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
@@ -2859,7 +2763,7 @@ function handleReadonlyResult(payload) {
2859
2763
  if (!payload.memo) payload.value = Object.freeze(payload.value);
2860
2764
  return payload;
2861
2765
  }
2862
- const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
2766
+ const $ZodCustom = /*@__PURE__*/ $constructor("$ZodCustom", (inst, def) => {
2863
2767
  $ZodCheck.init(inst, def);
2864
2768
  $ZodType.init(inst, def);
2865
2769
  inst._zod.parse = (payload, _) => {
@@ -2868,9 +2772,8 @@ const $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
2868
2772
  inst._zod.check = (payload) => {
2869
2773
  const input = payload.value;
2870
2774
  const r = def.fn(input);
2871
- if (r instanceof Promise) return r.then((r$1) => handleRefineResult(r$1, payload, input, inst));
2775
+ if (r instanceof Promise) return r.then((r) => handleRefineResult(r, payload, input, inst));
2872
2776
  handleRefineResult(r, payload, input, inst);
2873
- return;
2874
2777
  };
2875
2778
  });
2876
2779
  function handleRefineResult(result, payload, input, inst) {
@@ -2886,7 +2789,6 @@ function handleRefineResult(result, payload, input, inst) {
2886
2789
  payload.issues.push(issue(_iss));
2887
2790
  }
2888
2791
  }
2889
-
2890
2792
  //#endregion
2891
2793
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
2892
2794
  var $ZodCyclicError = class extends Error {
@@ -2907,15 +2809,15 @@ function cloneIssues(issues) {
2907
2809
  path: iss.path.slice()
2908
2810
  } : { ...iss });
2909
2811
  }
2910
- const recursive = /* @__PURE__ */ new WeakMap();
2812
+ const recursive = /*@__PURE__*/ new WeakMap();
2911
2813
  /** What the walk established, in order of certainty: ordered so the strongest answer among children wins. */
2912
2814
  const NONE = 0;
2913
2815
  const ASSUMED = 1;
2914
2816
  const PROVEN = 2;
2915
2817
  /** Whether this schema's subtree contains a cycle, so one parse can re-enter it. */
2916
2818
  function isRecursive(inst, stack, resolve) {
2917
- const cached$1 = recursive.get(inst);
2918
- if (cached$1 !== void 0) return cached$1 ? PROVEN : NONE;
2819
+ const cached = recursive.get(inst);
2820
+ if (cached !== void 0) return cached ? PROVEN : NONE;
2919
2821
  if (stack.has(inst)) return PROVEN;
2920
2822
  stack.add(inst);
2921
2823
  let result = NONE;
@@ -2935,15 +2837,14 @@ function isRecursive(inst, stack, resolve) {
2935
2837
  }
2936
2838
  return answer;
2937
2839
  };
2938
- const merge$1 = (answer) => {
2840
+ const merge = (answer) => {
2939
2841
  if (answer > result) result = answer;
2940
2842
  };
2941
2843
  const def = inst._zod.def;
2942
- const kind = def.type;
2943
- switch (kind) {
2844
+ switch (def.type) {
2944
2845
  case "object": {
2945
2846
  const raw = rawShape(def);
2946
- merge$1(raw ? shape(raw, true) : ASSUMED);
2847
+ merge(raw ? shape(raw, true) : ASSUMED);
2947
2848
  check(def.catchall);
2948
2849
  break;
2949
2850
  }
@@ -2990,7 +2891,7 @@ function isRecursive(inst, stack, resolve) {
2990
2891
  break;
2991
2892
  case "lazy": {
2992
2893
  const inner = def._cachedInner ?? (resolve ? inst._zod.innerType : void 0);
2993
- merge$1(inner ? isRecursive(inner, stack, false) : ASSUMED);
2894
+ merge(inner ? isRecursive(inner, stack, false) : ASSUMED);
2994
2895
  break;
2995
2896
  }
2996
2897
  case "template_literal":
@@ -3054,8 +2955,8 @@ const memo = {
3054
2955
  return empty;
3055
2956
  },
3056
2957
  guard(inst) {
3057
- var _a$2;
3058
- (_a$2 = inst._zod).deferred ?? (_a$2.deferred = []);
2958
+ var _a;
2959
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
3059
2960
  inst._zod.deferred.push(() => {
3060
2961
  const base = inst._zod.parse;
3061
2962
  const wrapped = (payload, ctx) => {
@@ -3067,12 +2968,12 @@ const memo = {
3067
2968
  });
3068
2969
  },
3069
2970
  attach(inst) {
3070
- var _a$2;
2971
+ var _a;
3071
2972
  let isRecursiveInst;
3072
2973
  let rechecked = false;
3073
2974
  let lastCtx;
3074
2975
  let lastBucket;
3075
- (_a$2 = inst._zod).deferred ?? (_a$2.deferred = []);
2976
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
3076
2977
  inst._zod.deferred.push(() => {
3077
2978
  const base = inst._zod.parse;
3078
2979
  const wrapped = (payload, ctx) => {
@@ -3141,7 +3042,6 @@ function isBackEdge(ctx, value) {
3141
3042
  const backEdges = ctx[STATE]?.backEdges;
3142
3043
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
3143
3044
  }
3144
-
3145
3045
  //#endregion
3146
3046
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
3147
3047
  const error = () => {
@@ -3209,48 +3109,40 @@ const error = () => {
3209
3109
  if (type === "number" && typeof input === "number" && !Number.isFinite(input)) return String(input);
3210
3110
  return TypeDictionary[type] ?? type;
3211
3111
  }
3212
- return (issue$1) => {
3213
- switch (issue$1.code) {
3214
- case "invalid_type": {
3215
- const expected = getTypeName(issue$1.expected);
3216
- const receivedType = parsedType(issue$1.input);
3217
- const received = getTypeName(receivedType, issue$1.input);
3218
- return `Invalid input: expected ${expected}, received ${received}`;
3219
- }
3112
+ return (issue) => {
3113
+ switch (issue.code) {
3114
+ case "invalid_type": return `Invalid input: expected ${getTypeName(issue.expected)}, received ${getTypeName(parsedType(issue.input), issue.input)}`;
3220
3115
  case "invalid_value":
3221
- if (issue$1.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue$1.values[0])}`;
3222
- return `Invalid option: expected one of ${joinValues(issue$1.values, "|")}`;
3116
+ if (issue.values.length === 1) return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`;
3117
+ return `Invalid option: expected one of ${joinValues(issue.values, "|")}`;
3223
3118
  case "too_big": {
3224
- const adj = issue$1.exact ? "exactly " : issue$1.inclusive ? "<=" : "<";
3225
- const sizing = getSizing(issue$1.origin);
3226
- if (sizing) return `Too big: expected ${issue$1.origin ?? "value"} to have ${adj}${issue$1.maximum.toString()} ${sizing.unit ?? "elements"}`;
3227
- return `Too big: expected ${issue$1.origin ?? "value"} to be ${adj}${issue$1.maximum.toString()}`;
3119
+ const adj = issue.exact ? "exactly " : issue.inclusive ? "<=" : "<";
3120
+ const sizing = getSizing(issue.origin);
3121
+ if (sizing) return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`;
3122
+ return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`;
3228
3123
  }
3229
3124
  case "too_small": {
3230
- const adj = issue$1.exact ? "exactly " : issue$1.inclusive ? ">=" : ">";
3231
- const sizing = getSizing(issue$1.origin);
3232
- if (sizing) return `Too small: expected ${issue$1.origin} to have ${adj}${issue$1.minimum.toString()} ${sizing.unit}`;
3233
- return `Too small: expected ${issue$1.origin} to be ${adj}${issue$1.minimum.toString()}`;
3125
+ const adj = issue.exact ? "exactly " : issue.inclusive ? ">=" : ">";
3126
+ const sizing = getSizing(issue.origin);
3127
+ if (sizing) return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`;
3128
+ return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`;
3234
3129
  }
3235
3130
  case "invalid_format": {
3236
- const _issue = issue$1;
3131
+ const _issue = issue;
3237
3132
  if (_issue.format === "starts_with") return `Invalid string: must start with "${_issue.prefix}"`;
3238
3133
  if (_issue.format === "ends_with") return `Invalid string: must end with "${_issue.suffix}"`;
3239
3134
  if (_issue.format === "includes") return `Invalid string: must include "${_issue.includes}"`;
3240
3135
  if (_issue.format === "regex") return `Invalid string: must match pattern ${_issue.pattern}`;
3241
- return `Invalid ${FormatDictionary[_issue.format] ?? issue$1.format}`;
3136
+ return `Invalid ${FormatDictionary[_issue.format] ?? issue.format}`;
3242
3137
  }
3243
- case "not_multiple_of": return `Invalid number: must be a multiple of ${issue$1.divisor}`;
3244
- case "unrecognized_keys": return `Unrecognized key${issue$1.keys.length > 1 ? "s" : ""}: ${joinValues(issue$1.keys, ", ")}`;
3245
- case "invalid_key": return `Invalid key in ${issue$1.origin}`;
3138
+ case "not_multiple_of": return `Invalid number: must be a multiple of ${issue.divisor}`;
3139
+ case "unrecognized_keys": return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`;
3140
+ case "invalid_key": return `Invalid key in ${issue.origin}`;
3246
3141
  case "invalid_union":
3247
- if (issue$1.options && Array.isArray(issue$1.options) && issue$1.options.length > 0) {
3248
- const opts = issue$1.options.map((o) => `'${o}'`).join(" | ");
3249
- return `Invalid discriminator value. Expected ${opts}`;
3250
- }
3251
- if (issue$1.inclusive === false) return "Invalid input: more than one option matched";
3142
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) return `Invalid discriminator value. Expected ${issue.options.map((o) => `'${o}'`).join(" | ")}`;
3143
+ if (issue.inclusive === false) return "Invalid input: more than one option matched";
3252
3144
  return "Invalid input";
3253
- case "invalid_element": return `Invalid value in ${issue$1.origin}`;
3145
+ case "invalid_element": return `Invalid value in ${issue.origin}`;
3254
3146
  default: return `Invalid input`;
3255
3147
  }
3256
3148
  };
@@ -3258,7 +3150,6 @@ const error = () => {
3258
3150
  function en_default() {
3259
3151
  return { localeError: error() };
3260
3152
  }
3261
-
3262
3153
  //#endregion
3263
3154
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
3264
3155
  var _a;
@@ -3268,9 +3159,9 @@ var $ZodRegistry = class {
3268
3159
  this._idmap = /* @__PURE__ */ new Map();
3269
3160
  }
3270
3161
  add(schema, ..._meta) {
3271
- const meta$2 = _meta[0];
3272
- this._map.set(schema, meta$2);
3273
- if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) this._idmap.set(meta$2.id, schema);
3162
+ const meta = _meta[0];
3163
+ this._map.set(schema, meta);
3164
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.set(meta.id, schema);
3274
3165
  return this;
3275
3166
  }
3276
3167
  clear() {
@@ -3279,8 +3170,8 @@ var $ZodRegistry = class {
3279
3170
  return this;
3280
3171
  }
3281
3172
  remove(schema) {
3282
- const meta$2 = this._map.get(schema);
3283
- if (meta$2 && typeof meta$2 === "object" && "id" in meta$2) this._idmap.delete(meta$2.id);
3173
+ const meta = this._map.get(schema);
3174
+ if (meta && typeof meta === "object" && "id" in meta) this._idmap.delete(meta.id);
3284
3175
  this._map.delete(schema);
3285
3176
  return this;
3286
3177
  }
@@ -3306,21 +3197,20 @@ function registry() {
3306
3197
  }
3307
3198
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
3308
3199
  const globalRegistry = globalThis.__zod_globalRegistry;
3309
-
3310
3200
  //#endregion
3311
3201
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
3312
3202
  function snapshotChecks(def) {
3313
3203
  if (def.checks) def.checks = [...def.checks];
3314
3204
  return def;
3315
3205
  }
3316
- /* @__NO_SIDE_EFFECTS__ */
3206
+ // @__NO_SIDE_EFFECTS__
3317
3207
  function _string(Class, params) {
3318
3208
  return new Class(snapshotChecks({
3319
3209
  type: "string",
3320
3210
  ...normalizeParams(params)
3321
3211
  }));
3322
3212
  }
3323
- /* @__NO_SIDE_EFFECTS__ */
3213
+ // @__NO_SIDE_EFFECTS__
3324
3214
  function _email(Class, params) {
3325
3215
  return new Class({
3326
3216
  type: "string",
@@ -3330,7 +3220,7 @@ function _email(Class, params) {
3330
3220
  ...normalizeParams(params)
3331
3221
  });
3332
3222
  }
3333
- /* @__NO_SIDE_EFFECTS__ */
3223
+ // @__NO_SIDE_EFFECTS__
3334
3224
  function _guid(Class, params) {
3335
3225
  return new Class({
3336
3226
  type: "string",
@@ -3340,7 +3230,7 @@ function _guid(Class, params) {
3340
3230
  ...normalizeParams(params)
3341
3231
  });
3342
3232
  }
3343
- /* @__NO_SIDE_EFFECTS__ */
3233
+ // @__NO_SIDE_EFFECTS__
3344
3234
  function _uuid(Class, params) {
3345
3235
  return new Class({
3346
3236
  type: "string",
@@ -3350,7 +3240,7 @@ function _uuid(Class, params) {
3350
3240
  ...normalizeParams(params)
3351
3241
  });
3352
3242
  }
3353
- /* @__NO_SIDE_EFFECTS__ */
3243
+ // @__NO_SIDE_EFFECTS__
3354
3244
  function _uuidv4(Class, params) {
3355
3245
  return new Class({
3356
3246
  type: "string",
@@ -3361,7 +3251,7 @@ function _uuidv4(Class, params) {
3361
3251
  ...normalizeParams(params)
3362
3252
  });
3363
3253
  }
3364
- /* @__NO_SIDE_EFFECTS__ */
3254
+ // @__NO_SIDE_EFFECTS__
3365
3255
  function _uuidv6(Class, params) {
3366
3256
  return new Class({
3367
3257
  type: "string",
@@ -3372,7 +3262,7 @@ function _uuidv6(Class, params) {
3372
3262
  ...normalizeParams(params)
3373
3263
  });
3374
3264
  }
3375
- /* @__NO_SIDE_EFFECTS__ */
3265
+ // @__NO_SIDE_EFFECTS__
3376
3266
  function _uuidv7(Class, params) {
3377
3267
  return new Class({
3378
3268
  type: "string",
@@ -3383,7 +3273,7 @@ function _uuidv7(Class, params) {
3383
3273
  ...normalizeParams(params)
3384
3274
  });
3385
3275
  }
3386
- /* @__NO_SIDE_EFFECTS__ */
3276
+ // @__NO_SIDE_EFFECTS__
3387
3277
  function _url(Class, params) {
3388
3278
  return new Class({
3389
3279
  type: "string",
@@ -3393,7 +3283,7 @@ function _url(Class, params) {
3393
3283
  ...normalizeParams(params)
3394
3284
  });
3395
3285
  }
3396
- /* @__NO_SIDE_EFFECTS__ */
3286
+ // @__NO_SIDE_EFFECTS__
3397
3287
  function _emoji(Class, params) {
3398
3288
  return new Class({
3399
3289
  type: "string",
@@ -3403,7 +3293,7 @@ function _emoji(Class, params) {
3403
3293
  ...normalizeParams(params)
3404
3294
  });
3405
3295
  }
3406
- /* @__NO_SIDE_EFFECTS__ */
3296
+ // @__NO_SIDE_EFFECTS__
3407
3297
  function _nanoid(Class, params) {
3408
3298
  return new Class({
3409
3299
  type: "string",
@@ -3418,7 +3308,7 @@ function _nanoid(Class, params) {
3418
3308
  * (timestamps embedded in the id). Use {@link _cuid2} instead.
3419
3309
  * See https://github.com/paralleldrive/cuid.
3420
3310
  */
3421
- /* @__NO_SIDE_EFFECTS__ */
3311
+ // @__NO_SIDE_EFFECTS__
3422
3312
  function _cuid(Class, params) {
3423
3313
  return new Class({
3424
3314
  type: "string",
@@ -3428,7 +3318,7 @@ function _cuid(Class, params) {
3428
3318
  ...normalizeParams(params)
3429
3319
  });
3430
3320
  }
3431
- /* @__NO_SIDE_EFFECTS__ */
3321
+ // @__NO_SIDE_EFFECTS__
3432
3322
  function _cuid2(Class, params) {
3433
3323
  return new Class({
3434
3324
  type: "string",
@@ -3438,7 +3328,7 @@ function _cuid2(Class, params) {
3438
3328
  ...normalizeParams(params)
3439
3329
  });
3440
3330
  }
3441
- /* @__NO_SIDE_EFFECTS__ */
3331
+ // @__NO_SIDE_EFFECTS__
3442
3332
  function _ulid(Class, params) {
3443
3333
  return new Class({
3444
3334
  type: "string",
@@ -3448,7 +3338,7 @@ function _ulid(Class, params) {
3448
3338
  ...normalizeParams(params)
3449
3339
  });
3450
3340
  }
3451
- /* @__NO_SIDE_EFFECTS__ */
3341
+ // @__NO_SIDE_EFFECTS__
3452
3342
  function _xid(Class, params) {
3453
3343
  return new Class({
3454
3344
  type: "string",
@@ -3458,7 +3348,7 @@ function _xid(Class, params) {
3458
3348
  ...normalizeParams(params)
3459
3349
  });
3460
3350
  }
3461
- /* @__NO_SIDE_EFFECTS__ */
3351
+ // @__NO_SIDE_EFFECTS__
3462
3352
  function _ksuid(Class, params) {
3463
3353
  return new Class({
3464
3354
  type: "string",
@@ -3468,7 +3358,7 @@ function _ksuid(Class, params) {
3468
3358
  ...normalizeParams(params)
3469
3359
  });
3470
3360
  }
3471
- /* @__NO_SIDE_EFFECTS__ */
3361
+ // @__NO_SIDE_EFFECTS__
3472
3362
  function _ipv4(Class, params) {
3473
3363
  return new Class({
3474
3364
  type: "string",
@@ -3478,7 +3368,7 @@ function _ipv4(Class, params) {
3478
3368
  ...normalizeParams(params)
3479
3369
  });
3480
3370
  }
3481
- /* @__NO_SIDE_EFFECTS__ */
3371
+ // @__NO_SIDE_EFFECTS__
3482
3372
  function _ipv6(Class, params) {
3483
3373
  return new Class({
3484
3374
  type: "string",
@@ -3488,7 +3378,7 @@ function _ipv6(Class, params) {
3488
3378
  ...normalizeParams(params)
3489
3379
  });
3490
3380
  }
3491
- /* @__NO_SIDE_EFFECTS__ */
3381
+ // @__NO_SIDE_EFFECTS__
3492
3382
  function _cidrv4(Class, params) {
3493
3383
  return new Class({
3494
3384
  type: "string",
@@ -3498,7 +3388,7 @@ function _cidrv4(Class, params) {
3498
3388
  ...normalizeParams(params)
3499
3389
  });
3500
3390
  }
3501
- /* @__NO_SIDE_EFFECTS__ */
3391
+ // @__NO_SIDE_EFFECTS__
3502
3392
  function _cidrv6(Class, params) {
3503
3393
  return new Class({
3504
3394
  type: "string",
@@ -3508,7 +3398,7 @@ function _cidrv6(Class, params) {
3508
3398
  ...normalizeParams(params)
3509
3399
  });
3510
3400
  }
3511
- /* @__NO_SIDE_EFFECTS__ */
3401
+ // @__NO_SIDE_EFFECTS__
3512
3402
  function _base64(Class, params) {
3513
3403
  return new Class({
3514
3404
  type: "string",
@@ -3518,7 +3408,7 @@ function _base64(Class, params) {
3518
3408
  ...normalizeParams(params)
3519
3409
  });
3520
3410
  }
3521
- /* @__NO_SIDE_EFFECTS__ */
3411
+ // @__NO_SIDE_EFFECTS__
3522
3412
  function _base64url(Class, params) {
3523
3413
  return new Class({
3524
3414
  type: "string",
@@ -3528,7 +3418,7 @@ function _base64url(Class, params) {
3528
3418
  ...normalizeParams(params)
3529
3419
  });
3530
3420
  }
3531
- /* @__NO_SIDE_EFFECTS__ */
3421
+ // @__NO_SIDE_EFFECTS__
3532
3422
  function _e164(Class, params) {
3533
3423
  return new Class({
3534
3424
  type: "string",
@@ -3538,7 +3428,7 @@ function _e164(Class, params) {
3538
3428
  ...normalizeParams(params)
3539
3429
  });
3540
3430
  }
3541
- /* @__NO_SIDE_EFFECTS__ */
3431
+ // @__NO_SIDE_EFFECTS__
3542
3432
  function _jwt(Class, params) {
3543
3433
  return new Class({
3544
3434
  type: "string",
@@ -3548,7 +3438,7 @@ function _jwt(Class, params) {
3548
3438
  ...normalizeParams(params)
3549
3439
  });
3550
3440
  }
3551
- /* @__NO_SIDE_EFFECTS__ */
3441
+ // @__NO_SIDE_EFFECTS__
3552
3442
  function _isoDateTime(Class, params) {
3553
3443
  return new Class({
3554
3444
  type: "string",
@@ -3560,7 +3450,7 @@ function _isoDateTime(Class, params) {
3560
3450
  ...normalizeParams(params)
3561
3451
  });
3562
3452
  }
3563
- /* @__NO_SIDE_EFFECTS__ */
3453
+ // @__NO_SIDE_EFFECTS__
3564
3454
  function _isoDate(Class, params) {
3565
3455
  return new Class({
3566
3456
  type: "string",
@@ -3569,7 +3459,7 @@ function _isoDate(Class, params) {
3569
3459
  ...normalizeParams(params)
3570
3460
  });
3571
3461
  }
3572
- /* @__NO_SIDE_EFFECTS__ */
3462
+ // @__NO_SIDE_EFFECTS__
3573
3463
  function _isoTime(Class, params) {
3574
3464
  return new Class({
3575
3465
  type: "string",
@@ -3579,7 +3469,7 @@ function _isoTime(Class, params) {
3579
3469
  ...normalizeParams(params)
3580
3470
  });
3581
3471
  }
3582
- /* @__NO_SIDE_EFFECTS__ */
3472
+ // @__NO_SIDE_EFFECTS__
3583
3473
  function _isoDuration(Class, params) {
3584
3474
  return new Class({
3585
3475
  type: "string",
@@ -3588,7 +3478,7 @@ function _isoDuration(Class, params) {
3588
3478
  ...normalizeParams(params)
3589
3479
  });
3590
3480
  }
3591
- /* @__NO_SIDE_EFFECTS__ */
3481
+ // @__NO_SIDE_EFFECTS__
3592
3482
  function _number(Class, params) {
3593
3483
  return new Class(snapshotChecks({
3594
3484
  type: "number",
@@ -3596,7 +3486,7 @@ function _number(Class, params) {
3596
3486
  ...normalizeParams(params)
3597
3487
  }));
3598
3488
  }
3599
- /* @__NO_SIDE_EFFECTS__ */
3489
+ // @__NO_SIDE_EFFECTS__
3600
3490
  function _int(Class, params) {
3601
3491
  return new Class({
3602
3492
  type: "number",
@@ -3606,25 +3496,25 @@ function _int(Class, params) {
3606
3496
  ...normalizeParams(params)
3607
3497
  });
3608
3498
  }
3609
- /* @__NO_SIDE_EFFECTS__ */
3499
+ // @__NO_SIDE_EFFECTS__
3610
3500
  function _boolean(Class, params) {
3611
3501
  return new Class({
3612
3502
  type: "boolean",
3613
3503
  ...normalizeParams(params)
3614
3504
  });
3615
3505
  }
3616
- /* @__NO_SIDE_EFFECTS__ */
3506
+ // @__NO_SIDE_EFFECTS__
3617
3507
  function _unknown(Class) {
3618
3508
  return new Class({ type: "unknown" });
3619
3509
  }
3620
- /* @__NO_SIDE_EFFECTS__ */
3510
+ // @__NO_SIDE_EFFECTS__
3621
3511
  function _never(Class, params) {
3622
3512
  return new Class({
3623
3513
  type: "never",
3624
3514
  ...normalizeParams(params)
3625
3515
  });
3626
3516
  }
3627
- /* @__NO_SIDE_EFFECTS__ */
3517
+ // @__NO_SIDE_EFFECTS__
3628
3518
  function _lt(value, params) {
3629
3519
  return new $ZodCheckLessThan({
3630
3520
  check: "less_than",
@@ -3633,7 +3523,7 @@ function _lt(value, params) {
3633
3523
  inclusive: false
3634
3524
  });
3635
3525
  }
3636
- /* @__NO_SIDE_EFFECTS__ */
3526
+ // @__NO_SIDE_EFFECTS__
3637
3527
  function _lte(value, params) {
3638
3528
  return new $ZodCheckLessThan({
3639
3529
  check: "less_than",
@@ -3642,7 +3532,7 @@ function _lte(value, params) {
3642
3532
  inclusive: true
3643
3533
  });
3644
3534
  }
3645
- /* @__NO_SIDE_EFFECTS__ */
3535
+ // @__NO_SIDE_EFFECTS__
3646
3536
  function _gt(value, params) {
3647
3537
  return new $ZodCheckGreaterThan({
3648
3538
  check: "greater_than",
@@ -3651,7 +3541,7 @@ function _gt(value, params) {
3651
3541
  inclusive: false
3652
3542
  });
3653
3543
  }
3654
- /* @__NO_SIDE_EFFECTS__ */
3544
+ // @__NO_SIDE_EFFECTS__
3655
3545
  function _gte(value, params) {
3656
3546
  return new $ZodCheckGreaterThan({
3657
3547
  check: "greater_than",
@@ -3660,7 +3550,7 @@ function _gte(value, params) {
3660
3550
  inclusive: true
3661
3551
  });
3662
3552
  }
3663
- /* @__NO_SIDE_EFFECTS__ */
3553
+ // @__NO_SIDE_EFFECTS__
3664
3554
  function _multipleOf(value, params) {
3665
3555
  return new $ZodCheckMultipleOf({
3666
3556
  check: "multiple_of",
@@ -3668,16 +3558,15 @@ function _multipleOf(value, params) {
3668
3558
  value
3669
3559
  });
3670
3560
  }
3671
- /* @__NO_SIDE_EFFECTS__ */
3561
+ // @__NO_SIDE_EFFECTS__
3672
3562
  function _maxLength(maximum, params) {
3673
- const ch = new $ZodCheckMaxLength({
3563
+ return new $ZodCheckMaxLength({
3674
3564
  check: "max_length",
3675
3565
  ...normalizeParams(params),
3676
3566
  maximum
3677
3567
  });
3678
- return ch;
3679
3568
  }
3680
- /* @__NO_SIDE_EFFECTS__ */
3569
+ // @__NO_SIDE_EFFECTS__
3681
3570
  function _minLength(minimum, params) {
3682
3571
  return new $ZodCheckMinLength({
3683
3572
  check: "min_length",
@@ -3685,7 +3574,7 @@ function _minLength(minimum, params) {
3685
3574
  minimum
3686
3575
  });
3687
3576
  }
3688
- /* @__NO_SIDE_EFFECTS__ */
3577
+ // @__NO_SIDE_EFFECTS__
3689
3578
  function _length(length, params) {
3690
3579
  return new $ZodCheckLengthEquals({
3691
3580
  check: "length_equals",
@@ -3693,7 +3582,7 @@ function _length(length, params) {
3693
3582
  length
3694
3583
  });
3695
3584
  }
3696
- /* @__NO_SIDE_EFFECTS__ */
3585
+ // @__NO_SIDE_EFFECTS__
3697
3586
  function _regex(pattern, params) {
3698
3587
  return new $ZodCheckRegex({
3699
3588
  check: "string_format",
@@ -3702,7 +3591,7 @@ function _regex(pattern, params) {
3702
3591
  pattern
3703
3592
  });
3704
3593
  }
3705
- /* @__NO_SIDE_EFFECTS__ */
3594
+ // @__NO_SIDE_EFFECTS__
3706
3595
  function _lowercase(params) {
3707
3596
  return new $ZodCheckLowerCase({
3708
3597
  check: "string_format",
@@ -3710,7 +3599,7 @@ function _lowercase(params) {
3710
3599
  ...normalizeParams(params)
3711
3600
  });
3712
3601
  }
3713
- /* @__NO_SIDE_EFFECTS__ */
3602
+ // @__NO_SIDE_EFFECTS__
3714
3603
  function _uppercase(params) {
3715
3604
  return new $ZodCheckUpperCase({
3716
3605
  check: "string_format",
@@ -3718,7 +3607,7 @@ function _uppercase(params) {
3718
3607
  ...normalizeParams(params)
3719
3608
  });
3720
3609
  }
3721
- /* @__NO_SIDE_EFFECTS__ */
3610
+ // @__NO_SIDE_EFFECTS__
3722
3611
  function _includes(includes, params) {
3723
3612
  return new $ZodCheckIncludes({
3724
3613
  check: "string_format",
@@ -3727,7 +3616,7 @@ function _includes(includes, params) {
3727
3616
  includes
3728
3617
  });
3729
3618
  }
3730
- /* @__NO_SIDE_EFFECTS__ */
3619
+ // @__NO_SIDE_EFFECTS__
3731
3620
  function _startsWith(prefix, params) {
3732
3621
  return new $ZodCheckStartsWith({
3733
3622
  check: "string_format",
@@ -3736,7 +3625,7 @@ function _startsWith(prefix, params) {
3736
3625
  prefix
3737
3626
  });
3738
3627
  }
3739
- /* @__NO_SIDE_EFFECTS__ */
3628
+ // @__NO_SIDE_EFFECTS__
3740
3629
  function _endsWith(suffix, params) {
3741
3630
  return new $ZodCheckEndsWith({
3742
3631
  check: "string_format",
@@ -3745,34 +3634,34 @@ function _endsWith(suffix, params) {
3745
3634
  suffix
3746
3635
  });
3747
3636
  }
3748
- /* @__NO_SIDE_EFFECTS__ */
3637
+ // @__NO_SIDE_EFFECTS__
3749
3638
  function _overwrite(tx) {
3750
3639
  return new $ZodCheckOverwrite({
3751
3640
  check: "overwrite",
3752
3641
  tx
3753
3642
  });
3754
3643
  }
3755
- /* @__NO_SIDE_EFFECTS__ */
3644
+ // @__NO_SIDE_EFFECTS__
3756
3645
  function _normalize(form) {
3757
3646
  return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
3758
3647
  }
3759
- /* @__NO_SIDE_EFFECTS__ */
3648
+ // @__NO_SIDE_EFFECTS__
3760
3649
  function _trim() {
3761
3650
  return /* @__PURE__ */ _overwrite((input) => input.trim());
3762
3651
  }
3763
- /* @__NO_SIDE_EFFECTS__ */
3652
+ // @__NO_SIDE_EFFECTS__
3764
3653
  function _toLowerCase() {
3765
3654
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
3766
3655
  }
3767
- /* @__NO_SIDE_EFFECTS__ */
3656
+ // @__NO_SIDE_EFFECTS__
3768
3657
  function _toUpperCase() {
3769
3658
  return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
3770
3659
  }
3771
- /* @__NO_SIDE_EFFECTS__ */
3660
+ // @__NO_SIDE_EFFECTS__
3772
3661
  function _slugify() {
3773
3662
  return /* @__PURE__ */ _overwrite((input) => slugify(input));
3774
3663
  }
3775
- /* @__NO_SIDE_EFFECTS__ */
3664
+ // @__NO_SIDE_EFFECTS__
3776
3665
  function _array(Class, element, params) {
3777
3666
  return new Class({
3778
3667
  type: "array",
@@ -3780,35 +3669,33 @@ function _array(Class, element, params) {
3780
3669
  ...normalizeParams(params)
3781
3670
  });
3782
3671
  }
3783
- /* @__NO_SIDE_EFFECTS__ */
3672
+ // @__NO_SIDE_EFFECTS__
3784
3673
  function _custom(Class, fn, _params) {
3785
3674
  const norm = normalizeParams(_params);
3786
3675
  norm.abort ?? (norm.abort = true);
3787
- const schema = new Class({
3676
+ return new Class({
3788
3677
  type: "custom",
3789
3678
  check: "custom",
3790
3679
  fn,
3791
3680
  ...norm
3792
3681
  });
3793
- return schema;
3794
3682
  }
3795
- /* @__NO_SIDE_EFFECTS__ */
3683
+ // @__NO_SIDE_EFFECTS__
3796
3684
  function _refine(Class, fn, _params) {
3797
- const schema = new Class({
3685
+ return new Class({
3798
3686
  type: "custom",
3799
3687
  check: "custom",
3800
3688
  fn,
3801
3689
  ...normalizeParams(_params)
3802
3690
  });
3803
- return schema;
3804
3691
  }
3805
- /* @__NO_SIDE_EFFECTS__ */
3692
+ // @__NO_SIDE_EFFECTS__
3806
3693
  function _superRefine(fn, params) {
3807
3694
  const ch = /* @__PURE__ */ _check((payload) => {
3808
- payload.addIssue = (issue$1) => {
3809
- if (typeof issue$1 === "string") payload.issues.push(issue(issue$1, payload.value, ch._zod.def));
3695
+ payload.addIssue = (issue$2) => {
3696
+ if (typeof issue$2 === "string") payload.issues.push(issue(issue$2, payload.value, ch._zod.def));
3810
3697
  else {
3811
- const _issue = issue$1;
3698
+ const _issue = issue$2;
3812
3699
  if (_issue.fatal) _issue.continue = false;
3813
3700
  _issue.code ?? (_issue.code = "custom");
3814
3701
  if (!("input" in _issue)) _issue.input = payload.value;
@@ -3821,7 +3708,7 @@ function _superRefine(fn, params) {
3821
3708
  }, params);
3822
3709
  return ch;
3823
3710
  }
3824
- /* @__NO_SIDE_EFFECTS__ */
3711
+ // @__NO_SIDE_EFFECTS__
3825
3712
  function _check(fn, params) {
3826
3713
  const ch = new $ZodCheck({
3827
3714
  check: "custom",
@@ -3830,33 +3717,6 @@ function _check(fn, params) {
3830
3717
  ch._zod.check = fn;
3831
3718
  return ch;
3832
3719
  }
3833
- /* @__NO_SIDE_EFFECTS__ */
3834
- function describe$1(description) {
3835
- const ch = new $ZodCheck({ check: "describe" });
3836
- ch._zod.onattach = [(inst) => {
3837
- const existing = globalRegistry.get(inst) ?? {};
3838
- globalRegistry.add(inst, {
3839
- ...existing,
3840
- description
3841
- });
3842
- }];
3843
- ch._zod.check = () => {};
3844
- return ch;
3845
- }
3846
- /* @__NO_SIDE_EFFECTS__ */
3847
- function meta$1(metadata) {
3848
- const ch = new $ZodCheck({ check: "meta" });
3849
- ch._zod.onattach = [(inst) => {
3850
- const existing = globalRegistry.get(inst) ?? {};
3851
- globalRegistry.add(inst, {
3852
- ...existing,
3853
- ...metadata
3854
- });
3855
- }];
3856
- ch._zod.check = () => {};
3857
- return ch;
3858
- }
3859
-
3860
3720
  //#endregion
3861
3721
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
3862
3722
  function assignProps(target, ...sources) {
@@ -3905,13 +3765,12 @@ function processSchema(schema, ctx, _params = {
3905
3765
  path: [],
3906
3766
  schemaPath: []
3907
3767
  }) {
3908
- var _a$2;
3768
+ var _a;
3909
3769
  const def = schema._zod.def;
3910
3770
  const seen = ctx.seen.get(schema);
3911
3771
  if (seen) {
3912
3772
  seen.count++;
3913
- const isCycle = _params.schemaPath.includes(schema);
3914
- if (isCycle) seen.cycle = _params.path;
3773
+ if (_params.schemaPath.includes(schema)) seen.cycle = _params.path;
3915
3774
  return seen.schema;
3916
3775
  }
3917
3776
  const result = {
@@ -3945,16 +3804,15 @@ function processSchema(schema, ctx, _params = {
3945
3804
  ctx.seen.get(parent).isParent = true;
3946
3805
  }
3947
3806
  }
3948
- const meta$2 = ctx.metadataRegistry.get(schema);
3949
- if (meta$2) assignProps(result.schema, meta$2);
3807
+ const meta = ctx.metadataRegistry.get(schema);
3808
+ if (meta) assignProps(result.schema, meta);
3950
3809
  if (ctx.io === "input" && isTransforming(schema)) {
3951
3810
  delete result.schema.examples;
3952
3811
  delete result.schema.default;
3953
3812
  }
3954
- if (ctx.io === "input" && "_prefault" in result.schema) (_a$2 = result.schema).default ?? (_a$2.default = result.schema._prefault);
3813
+ if (ctx.io === "input" && "_prefault" in result.schema) (_a = result.schema).default ?? (_a.default = result.schema._prefault);
3955
3814
  delete result.schema._prefault;
3956
- const _result = ctx.seen.get(schema);
3957
- return _result.schema;
3815
+ return ctx.seen.get(schema).schema;
3958
3816
  }
3959
3817
  function encodeJSONPointerSegment(segment) {
3960
3818
  return segment.replace(/~/g, "~0").replace(/\//g, "~1");
@@ -3976,7 +3834,7 @@ function extractDefs(ctx, schema) {
3976
3834
  const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
3977
3835
  if (ctx.external) {
3978
3836
  const externalId = ctx.external.registry.get(entry[0])?.id;
3979
- const uriGenerator = ctx.external.uri ?? ((id$1) => id$1);
3837
+ const uriGenerator = ctx.external.uri ?? ((id) => id);
3980
3838
  if (externalId) return { ref: uriGenerator(externalId) };
3981
3839
  const id = entry[1].defId ?? entry[1].schema.id ?? `schema${ctx.counter++}`;
3982
3840
  entry[1].defId = id;
@@ -4000,9 +3858,9 @@ function extractDefs(ctx, schema) {
4000
3858
  const { ref, defId } = makeURI(entry);
4001
3859
  seen.def = { ...seen.schema };
4002
3860
  if (defId) seen.defId = defId;
4003
- const schema$1 = seen.schema;
4004
- for (const key in schema$1) delete schema$1[key];
4005
- schema$1.$ref = ref;
3861
+ const schema = seen.schema;
3862
+ for (const key in schema) delete schema[key];
3863
+ schema.$ref = ref;
4006
3864
  };
4007
3865
  if (ctx.cycles === "throw") for (const entry of ctx.seen.entries()) {
4008
3866
  const seen = entry[1];
@@ -4023,8 +3881,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4023
3881
  continue;
4024
3882
  }
4025
3883
  }
4026
- const id = ctx.metadataRegistry.get(entry[0])?.id;
4027
- if (id) {
3884
+ if (ctx.metadataRegistry.get(entry[0])?.id) {
4028
3885
  extractToDef(entry);
4029
3886
  continue;
4030
3887
  }
@@ -4060,7 +3917,7 @@ function compactTypeUnion(schema) {
4060
3917
  /** Keywords `foldIntersection` knows how to combine. Anything else — `$ref`, `patternProperties`,
4061
3918
  * an annotation like `description` — makes a member unfoldable, so a constraint this does not
4062
3919
  * understand leaves the `allOf` alone instead of being silently dropped or misattributed. */
4063
- const FOLDABLE_KEYS = new Set([
3920
+ const FOLDABLE_KEYS = /* @__PURE__ */ new Set([
4064
3921
  "type",
4065
3922
  "properties",
4066
3923
  "required",
@@ -4074,17 +3931,17 @@ function undeclaredConstraint(member) {
4074
3931
  return Object.keys(extra).length ? extra : null;
4075
3932
  }
4076
3933
  /** Combines object members into the single object they describe together, or returns `null` if any of them carries a keyword outside {@link FOLDABLE_KEYS}. */
4077
- function foldObjects(members$1) {
3934
+ function foldObjects(members) {
4078
3935
  const objects = [];
4079
- for (const member of members$1) {
3936
+ for (const member of members) {
4080
3937
  if (typeof member !== "object" || member.type !== "object") return null;
4081
3938
  for (const key in member) if (!FOLDABLE_KEYS.has(key)) return null;
4082
3939
  objects.push(member);
4083
3940
  }
4084
3941
  const properties = {};
4085
- const required$1 = /* @__PURE__ */ new Set();
4086
- for (const object$1 of objects) {
4087
- for (const key in object$1.properties) {
3942
+ const required = /* @__PURE__ */ new Set();
3943
+ for (const object of objects) {
3944
+ for (const key in object.properties) {
4088
3945
  if (Object.prototype.hasOwnProperty.call(properties, key)) continue;
4089
3946
  const parts = [];
4090
3947
  for (const other of objects) {
@@ -4092,21 +3949,20 @@ function foldObjects(members$1) {
4092
3949
  if (part === null || part === void 0) continue;
4093
3950
  if (!parts.some((seen) => JSON.stringify(seen) === JSON.stringify(part))) parts.push(part);
4094
3951
  }
4095
- const merged = parts.length === 1 ? parts[0] : foldObjects(parts) ?? { allOf: parts };
4096
- assignProp(properties, key, merged);
3952
+ assignProp(properties, key, parts.length === 1 ? parts[0] : foldObjects(parts) ?? { allOf: parts });
4097
3953
  }
4098
- for (const key of object$1.required ?? []) required$1.add(key);
3954
+ for (const key of object.required ?? []) required.add(key);
4099
3955
  }
4100
3956
  const folded = {
4101
3957
  type: "object",
4102
3958
  properties
4103
3959
  };
4104
- if (required$1.size) folded.required = [...required$1];
4105
- if (objects.every((object$1) => object$1.additionalProperties === false)) folded.additionalProperties = false;
3960
+ if (required.size) folded.required = [...required];
3961
+ if (objects.every((object) => object.additionalProperties === false)) folded.additionalProperties = false;
4106
3962
  else {
4107
3963
  const constraints = [];
4108
- for (const object$1 of objects) {
4109
- const constraint = undeclaredConstraint(object$1);
3964
+ for (const object of objects) {
3965
+ const constraint = undeclaredConstraint(object);
4110
3966
  if (constraint && !constraints.some((seen) => JSON.stringify(seen) === JSON.stringify(constraint))) constraints.push(constraint);
4111
3967
  }
4112
3968
  if (constraints.length === 1) folded.additionalProperties = constraints[0];
@@ -4131,11 +3987,11 @@ function foldIntersection(json) {
4131
3987
  let folded = null;
4132
3988
  if (!unions.length) folded = foldObjects(allOf);
4133
3989
  else {
4134
- const union$1 = unions[0];
4135
- const keyword = UNION_KEYS.find((k) => Array.isArray(union$1[k]));
4136
- if (Object.keys(union$1).length !== 1) return;
4137
- const rest = allOf.filter((m) => m !== union$1);
4138
- const branches = union$1[keyword].map((branch) => foldObjects([...rest, branch]));
3990
+ const union = unions[0];
3991
+ const keyword = UNION_KEYS.find((k) => Array.isArray(union[k]));
3992
+ if (Object.keys(union).length !== 1) return;
3993
+ const rest = allOf.filter((m) => m !== union);
3994
+ const branches = union[keyword].map((branch) => foldObjects([...rest, branch]));
4139
3995
  if (branches.some((b) => !b)) return;
4140
3996
  folded = { [keyword]: branches };
4141
3997
  }
@@ -4149,8 +4005,8 @@ function finalize(ctx, schema) {
4149
4005
  const flattenRef = (zodSchema) => {
4150
4006
  const seen = ctx.seen.get(zodSchema);
4151
4007
  if (seen.ref === null) return;
4152
- const schema$1 = seen.def ?? seen.schema;
4153
- const _cached = { ...schema$1 };
4008
+ const schema = seen.def ?? seen.schema;
4009
+ const _cached = { ...schema };
4154
4010
  const ref = seen.ref;
4155
4011
  seen.ref = null;
4156
4012
  if (ref) {
@@ -4158,18 +4014,17 @@ function finalize(ctx, schema) {
4158
4014
  const refSeen = ctx.seen.get(ref);
4159
4015
  const refSchema = refSeen.schema;
4160
4016
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
4161
- schema$1.allOf = schema$1.allOf ?? [];
4162
- schema$1.allOf.push(refSchema);
4163
- } else assignProps(schema$1, refSchema);
4164
- assignProps(schema$1, _cached);
4165
- const isParentRef = zodSchema._zod.parent === ref;
4166
- if (isParentRef) for (const key in schema$1) {
4017
+ schema.allOf = schema.allOf ?? [];
4018
+ schema.allOf.push(refSchema);
4019
+ } else assignProps(schema, refSchema);
4020
+ assignProps(schema, _cached);
4021
+ if (zodSchema._zod.parent === ref) for (const key in schema) {
4167
4022
  if (key === "$ref" || key === "allOf") continue;
4168
- if (!(key in _cached)) delete schema$1[key];
4023
+ if (!(key in _cached)) delete schema[key];
4169
4024
  }
4170
- if (refSchema.$ref && refSeen.def) for (const key in schema$1) {
4025
+ if (refSchema.$ref && refSeen.def) for (const key in schema) {
4171
4026
  if (key === "$ref" || key === "allOf") continue;
4172
- if (key in refSeen.def && JSON.stringify(schema$1[key]) === JSON.stringify(refSeen.def[key])) delete schema$1[key];
4027
+ if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) delete schema[key];
4173
4028
  }
4174
4029
  }
4175
4030
  const parent = zodSchema._zod.parent;
@@ -4177,16 +4032,16 @@ function finalize(ctx, schema) {
4177
4032
  flattenRef(parent);
4178
4033
  const parentSeen = ctx.seen.get(parent);
4179
4034
  if (parentSeen?.schema.$ref) {
4180
- schema$1.$ref = parentSeen.schema.$ref;
4181
- if (parentSeen.def) for (const key in schema$1) {
4035
+ schema.$ref = parentSeen.schema.$ref;
4036
+ if (parentSeen.def) for (const key in schema) {
4182
4037
  if (key === "$ref" || key === "allOf") continue;
4183
- if (key in parentSeen.def && JSON.stringify(schema$1[key]) === JSON.stringify(parentSeen.def[key])) delete schema$1[key];
4038
+ if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) delete schema[key];
4184
4039
  }
4185
4040
  }
4186
4041
  }
4187
4042
  ctx.override({
4188
4043
  zodSchema,
4189
- jsonSchema: schema$1,
4044
+ jsonSchema: schema,
4190
4045
  path: seen.path ?? []
4191
4046
  });
4192
4047
  };
@@ -4228,8 +4083,10 @@ function finalize(ctx, schema) {
4228
4083
  }
4229
4084
  }
4230
4085
  if (ctx.external) ctx.sharedEmitDoneFor = ctx.external;
4231
- if (ctx.external) {} else if (Object.keys(defs).length > 0) if (ctx.target === "draft-2020-12") result.$defs = defs;
4232
- else result.definitions = defs;
4086
+ if (ctx.external) {} else if (Object.keys(defs).length > 0) {
4087
+ if (ctx.target === "draft-2020-12") result.$defs = defs;
4088
+ else result.definitions = defs;
4089
+ }
4233
4090
  try {
4234
4091
  const finalized = JSON.parse(JSON.stringify(result));
4235
4092
  Object.defineProperty(finalized, "~standard", {
@@ -4304,7 +4161,6 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
4304
4161
  extractDefs(ctx, schema);
4305
4162
  return finalize(ctx, schema);
4306
4163
  };
4307
-
4308
4164
  //#endregion
4309
4165
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
4310
4166
  const narrowMin = (agg, key, value) => {
@@ -4386,7 +4242,7 @@ const formatMap = {
4386
4242
  json_string: "json-string",
4387
4243
  regex: ""
4388
4244
  };
4389
- const exactPatterns = new Map([[base64Charset, base64], [base64urlCharset, base64url]]);
4245
+ const exactPatterns = /* @__PURE__ */ new Map([[base64Charset, base64], [base64urlCharset, base64url]]);
4390
4246
  const exactPattern = (p) => exactPatterns.get(p) ?? p;
4391
4247
  const stringProcessor = (schema, ctx, _json, _params) => {
4392
4248
  const json = _json;
@@ -4416,16 +4272,18 @@ const numberProcessor = (schema, ctx, _json, params) => {
4416
4272
  const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
4417
4273
  const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
4418
4274
  const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
4419
- if (exMin) if (legacy) {
4420
- json.minimum = exclusiveMinimum;
4421
- json.exclusiveMinimum = true;
4422
- } else json.exclusiveMinimum = exclusiveMinimum;
4423
- else if (typeof minimum === "number") json.minimum = minimum;
4424
- if (exMax) if (legacy) {
4425
- json.maximum = exclusiveMaximum;
4426
- json.exclusiveMaximum = true;
4427
- } else json.exclusiveMaximum = exclusiveMaximum;
4428
- else if (typeof maximum === "number") json.maximum = maximum;
4275
+ if (exMin) {
4276
+ if (legacy) {
4277
+ json.minimum = exclusiveMinimum;
4278
+ json.exclusiveMinimum = true;
4279
+ } else json.exclusiveMinimum = exclusiveMinimum;
4280
+ } else if (typeof minimum === "number") json.minimum = minimum;
4281
+ if (exMax) {
4282
+ if (legacy) {
4283
+ json.maximum = exclusiveMaximum;
4284
+ json.exclusiveMaximum = true;
4285
+ } else json.exclusiveMaximum = exclusiveMaximum;
4286
+ } else if (typeof maximum === "number") json.maximum = maximum;
4429
4287
  if (multipleOf) {
4430
4288
  const divisors = /* @__PURE__ */ new Set();
4431
4289
  for (const divisor of multipleOf) if (Number.isFinite(divisor) && divisor !== 0) divisors.add(Math.abs(divisor));
@@ -4441,7 +4299,6 @@ const booleanProcessor = (_schema, _ctx, json, _params) => {
4441
4299
  const neverProcessor = (_schema, _ctx, json, _params) => {
4442
4300
  json.not = {};
4443
4301
  };
4444
- const unknownProcessor = (_schema, _ctx, _json, _params) => {};
4445
4302
  const enumProcessor = (schema, _ctx, json, _params) => {
4446
4303
  const def = schema._zod.def;
4447
4304
  const values = getEnumValues(def.entries);
@@ -4507,8 +4364,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
4507
4364
  const json = _json;
4508
4365
  const def = schema._zod.def;
4509
4366
  const shape = def.shape;
4510
- const symbolKeys = Object.getOwnPropertySymbols(shape);
4511
- if (symbolKeys.length && handleUnrepresentable(schema, ctx, json, params, "Symbol keys cannot be represented in JSON Schema")) return;
4367
+ if (Object.getOwnPropertySymbols(shape).length && handleUnrepresentable(schema, ctx, json, params, "Symbol keys cannot be represented in JSON Schema")) return;
4512
4368
  json.type = "object";
4513
4369
  json.properties = {};
4514
4370
  for (const key in shape) assignProp(json.properties, key, processSchema(shape[key], ctx, {
@@ -4601,7 +4457,7 @@ function stringifyKeyNames(bySchema, json, visited) {
4601
4457
  const numericType = !types.includes("string") && types.some((t) => t === "number" || t === "integer");
4602
4458
  const values = json.enum ?? (json.const !== void 0 ? [json.const] : void 0);
4603
4459
  if (!numericType && !values?.some((v) => typeof v === "number")) return json;
4604
- const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id,...rest } = json;
4460
+ const { minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, format, id, ...rest } = json;
4605
4461
  if (rest.enum) rest.enum = rest.enum.map((v) => typeof v === "number" ? String(v) : v);
4606
4462
  else if (typeof rest.const === "number") rest.const = String(rest.const);
4607
4463
  if (!numericType) return rest;
@@ -4615,8 +4471,8 @@ function rewriteKeyNames(ctx) {
4615
4471
  const bySchema = /* @__PURE__ */ new Map();
4616
4472
  for (const entry of ctx.seen.values()) if (entry.def && !bySchema.has(entry.schema)) bySchema.set(entry.schema, entry);
4617
4473
  const rewrites = /* @__PURE__ */ new Map();
4618
- for (const record$1 of pendingRecords.get(ctx) ?? []) {
4619
- const seen = ctx.seen.get(record$1);
4474
+ for (const record of pendingRecords.get(ctx) ?? []) {
4475
+ const seen = ctx.seen.get(record);
4620
4476
  const names = (seen?.def ?? seen?.schema)?.propertyNames;
4621
4477
  if (!names || names === true || rewrites.has(names)) continue;
4622
4478
  const rewritten = stringifyKeyNames(bySchema, names, /* @__PURE__ */ new Set());
@@ -4753,7 +4609,6 @@ const optionalProcessor = (schema, ctx, _json, params) => {
4753
4609
  const seen = ctx.seen.get(schema);
4754
4610
  seen.ref = def.innerType;
4755
4611
  };
4756
-
4757
4612
  //#endregion
4758
4613
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
4759
4614
  const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
@@ -4787,12 +4642,12 @@ const initializer = (inst, issues) => {
4787
4642
  _installedErrorProtos.add(proto);
4788
4643
  _lazyMethod(proto, "format", (self) => (mapper) => formatError(self, mapper));
4789
4644
  _lazyMethod(proto, "flatten", (self) => (mapper) => flattenError(self, mapper));
4790
- _lazyMethod(proto, "addIssue", (self) => (issue$1) => {
4791
- self.issues.push(issue$1);
4645
+ _lazyMethod(proto, "addIssue", (self) => (issue) => {
4646
+ self.issues.push(issue);
4792
4647
  self.message = JSON.stringify(self.issues, jsonStringifyReplacer, 2);
4793
4648
  });
4794
- _lazyMethod(proto, "addIssues", (self) => (issues$1) => {
4795
- self.issues.push(...issues$1);
4649
+ _lazyMethod(proto, "addIssues", (self) => (issues) => {
4650
+ self.issues.push(...issues);
4796
4651
  self.message = JSON.stringify(self.issues, jsonStringifyReplacer, 2);
4797
4652
  });
4798
4653
  Object.defineProperty(proto, "isEmpty", {
@@ -4803,8 +4658,7 @@ const initializer = (inst, issues) => {
4803
4658
  }
4804
4659
  });
4805
4660
  };
4806
- const ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer, void 0, { Parent: Error });
4807
-
4661
+ const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
4808
4662
  //#endregion
4809
4663
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
4810
4664
  const parse = /* @__PURE__ */ _parse(ZodRealError);
@@ -4819,7 +4673,6 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
4819
4673
  const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
4820
4674
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
4821
4675
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
4822
-
4823
4676
  //#endregion
4824
4677
  //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
4825
4678
  function _ensureDefaultLocale() {
@@ -4828,7 +4681,7 @@ function _ensureDefaultLocale() {
4828
4681
  function _ensureDefaultMemoizer() {
4829
4682
  if (!globalConfig.memoizer) config({ memoizer: memoizer() });
4830
4683
  }
4831
- const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4684
+ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
4832
4685
  _ensureDefaultLocale();
4833
4686
  $ZodType.init(inst, def);
4834
4687
  inst.def = def;
@@ -4852,8 +4705,8 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4852
4705
  brand() {
4853
4706
  return this;
4854
4707
  },
4855
- register(reg, meta$2) {
4856
- reg.add(this, meta$2);
4708
+ register(reg, meta) {
4709
+ reg.add(this, meta);
4857
4710
  return this;
4858
4711
  },
4859
4712
  refine(check, params) {
@@ -4863,7 +4716,7 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4863
4716
  return this.check(superRefine(refinement, params));
4864
4717
  },
4865
4718
  overwrite(fn) {
4866
- return this.check(_overwrite(fn));
4719
+ return this.check(/* @__PURE__ */ _overwrite(fn));
4867
4720
  },
4868
4721
  optional() {
4869
4722
  return optional(this);
@@ -4939,11 +4792,11 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4939
4792
  set "~standard"(value) {
4940
4793
  own(this, "~standard", value);
4941
4794
  },
4942
- parse: function _parse$1(data, params) {
4943
- return parse(this, data, params, { callee: _parse$1 });
4795
+ parse: function _parse(data, params) {
4796
+ return parse(this, data, params, { callee: _parse });
4944
4797
  },
4945
- parseAsync: async function _parseAsync$1(data, params) {
4946
- return await parseAsync(this, data, params, { callee: _parseAsync$1 });
4798
+ parseAsync: async function _parseAsync(data, params) {
4799
+ return await parseAsync(this, data, params, { callee: _parseAsync });
4947
4800
  },
4948
4801
  safeParse(data, params) {
4949
4802
  return safeParse(this, data, params);
@@ -4961,19 +4814,19 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4961
4814
  return validate(this, data, params);
4962
4815
  },
4963
4816
  validateAsync(data, params) {
4964
- return validateAsync(this, data, params);
4817
+ return validateAsync$1(this, data, params);
4965
4818
  },
4966
- encode: function _encode$1(data, params) {
4967
- return encode(this, data, params, { callee: _encode$1 });
4819
+ encode: function _encode(data, params) {
4820
+ return encode(this, data, params, { callee: _encode });
4968
4821
  },
4969
- decode: function _decode$1(data, params) {
4970
- return decode(this, data, params, { callee: _decode$1 });
4822
+ decode: function _decode(data, params) {
4823
+ return decode(this, data, params, { callee: _decode });
4971
4824
  },
4972
- encodeAsync: async function _encodeAsync$1(data, params) {
4973
- return await encodeAsync(this, data, params, { callee: _encodeAsync$1 });
4825
+ encodeAsync: async function _encodeAsync(data, params) {
4826
+ return await encodeAsync(this, data, params, { callee: _encodeAsync });
4974
4827
  },
4975
- decodeAsync: async function _decodeAsync$1(data, params) {
4976
- return await decodeAsync(this, data, params, { callee: _decodeAsync$1 });
4828
+ decodeAsync: async function _decodeAsync(data, params) {
4829
+ return await decodeAsync(this, data, params, { callee: _decodeAsync });
4977
4830
  },
4978
4831
  safeEncode(data, params) {
4979
4832
  return safeEncode(this, data, params);
@@ -4998,191 +4851,191 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
4998
4851
  }
4999
4852
  });
5000
4853
  /** @internal */
5001
- const _ZodString = /* @__PURE__ */ $constructor("_ZodString", (inst, def) => {
4854
+ const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
5002
4855
  $ZodString.init(inst, def);
5003
4856
  ZodType.init(inst, def);
5004
4857
  inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
5005
- }, /* @__PURE__ */ derived({
4858
+ }, /*@__PURE__*/ derived({
5006
4859
  format: (inst) => aggregateChecks(inst).format ?? null,
5007
4860
  minLength: (inst) => aggregateChecks(inst).minimum ?? null,
5008
4861
  maxLength: (inst) => aggregateChecks(inst).maximum ?? null
5009
4862
  }, {
5010
4863
  regex(...args) {
5011
- return this.check(_regex(...args));
4864
+ return this.check(/* @__PURE__ */ _regex(...args));
5012
4865
  },
5013
4866
  includes(...args) {
5014
- return this.check(_includes(...args));
4867
+ return this.check(/* @__PURE__ */ _includes(...args));
5015
4868
  },
5016
4869
  startsWith(...args) {
5017
- return this.check(_startsWith(...args));
4870
+ return this.check(/* @__PURE__ */ _startsWith(...args));
5018
4871
  },
5019
4872
  endsWith(...args) {
5020
- return this.check(_endsWith(...args));
4873
+ return this.check(/* @__PURE__ */ _endsWith(...args));
5021
4874
  },
5022
4875
  min(...args) {
5023
- return this.check(_minLength(...args));
4876
+ return this.check(/* @__PURE__ */ _minLength(...args));
5024
4877
  },
5025
4878
  max(...args) {
5026
- return this.check(_maxLength(...args));
4879
+ return this.check(/* @__PURE__ */ _maxLength(...args));
5027
4880
  },
5028
4881
  length(...args) {
5029
- return this.check(_length(...args));
4882
+ return this.check(/* @__PURE__ */ _length(...args));
5030
4883
  },
5031
4884
  nonempty(...args) {
5032
- return this.check(_minLength(1, ...args));
4885
+ return this.check(/* @__PURE__ */ _minLength(1, ...args));
5033
4886
  },
5034
4887
  lowercase(params) {
5035
- return this.check(_lowercase(params));
4888
+ return this.check(/* @__PURE__ */ _lowercase(params));
5036
4889
  },
5037
4890
  uppercase(params) {
5038
- return this.check(_uppercase(params));
4891
+ return this.check(/* @__PURE__ */ _uppercase(params));
5039
4892
  },
5040
4893
  trim() {
5041
- return this.check(_trim());
4894
+ return this.check(/* @__PURE__ */ _trim());
5042
4895
  },
5043
4896
  normalize(...args) {
5044
- return this.check(_normalize(...args));
4897
+ return this.check(/* @__PURE__ */ _normalize(...args));
5045
4898
  },
5046
4899
  toLowerCase() {
5047
- return this.check(_toLowerCase());
4900
+ return this.check(/* @__PURE__ */ _toLowerCase());
5048
4901
  },
5049
4902
  toUpperCase() {
5050
- return this.check(_toUpperCase());
4903
+ return this.check(/* @__PURE__ */ _toUpperCase());
5051
4904
  },
5052
4905
  slugify() {
5053
- return this.check(_slugify());
4906
+ return this.check(/* @__PURE__ */ _slugify());
5054
4907
  }
5055
4908
  }));
5056
- const ZodString = /* @__PURE__ */ $constructor("ZodString", (inst, def) => {
4909
+ const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
5057
4910
  $ZodString.init(inst, def);
5058
4911
  _ZodString.init(inst, def);
5059
4912
  }, {
5060
4913
  email(params) {
5061
- return this.check(_email(ZodEmail, params));
4914
+ return this.check(/* @__PURE__ */ _email(ZodEmail, params));
5062
4915
  },
5063
4916
  url(params) {
5064
- return this.check(_url(ZodURL, params));
4917
+ return this.check(/* @__PURE__ */ _url(ZodURL, params));
5065
4918
  },
5066
4919
  jwt(params) {
5067
- return this.check(_jwt(ZodJWT, params));
4920
+ return this.check(/* @__PURE__ */ _jwt(ZodJWT, params));
5068
4921
  },
5069
4922
  emoji(params) {
5070
- return this.check(_emoji(ZodEmoji, params));
4923
+ return this.check(/* @__PURE__ */ _emoji(ZodEmoji, params));
5071
4924
  },
5072
4925
  guid(params) {
5073
- return this.check(_guid(ZodGUID, params));
4926
+ return this.check(/* @__PURE__ */ _guid(ZodGUID, params));
5074
4927
  },
5075
4928
  uuid(params) {
5076
- return this.check(_uuid(ZodUUID, params));
4929
+ return this.check(/* @__PURE__ */ _uuid(ZodUUID, params));
5077
4930
  },
5078
4931
  uuidv4(params) {
5079
- return this.check(_uuidv4(ZodUUID, params));
4932
+ return this.check(/* @__PURE__ */ _uuidv4(ZodUUID, params));
5080
4933
  },
5081
4934
  uuidv6(params) {
5082
- return this.check(_uuidv6(ZodUUID, params));
4935
+ return this.check(/* @__PURE__ */ _uuidv6(ZodUUID, params));
5083
4936
  },
5084
4937
  uuidv7(params) {
5085
- return this.check(_uuidv7(ZodUUID, params));
4938
+ return this.check(/* @__PURE__ */ _uuidv7(ZodUUID, params));
5086
4939
  },
5087
4940
  nanoid(params) {
5088
- return this.check(_nanoid(ZodNanoID, params));
4941
+ return this.check(/* @__PURE__ */ _nanoid(ZodNanoID, params));
5089
4942
  },
5090
4943
  cuid(params) {
5091
- return this.check(_cuid(ZodCUID, params));
4944
+ return this.check(/* @__PURE__ */ _cuid(ZodCUID, params));
5092
4945
  },
5093
4946
  cuid2(params) {
5094
- return this.check(_cuid2(ZodCUID2, params));
4947
+ return this.check(/* @__PURE__ */ _cuid2(ZodCUID2, params));
5095
4948
  },
5096
4949
  ulid(params) {
5097
- return this.check(_ulid(ZodULID, params));
4950
+ return this.check(/* @__PURE__ */ _ulid(ZodULID, params));
5098
4951
  },
5099
4952
  base64(params) {
5100
- return this.check(_base64(ZodBase64, params));
4953
+ return this.check(/* @__PURE__ */ _base64(ZodBase64, params));
5101
4954
  },
5102
4955
  base64url(params) {
5103
- return this.check(_base64url(ZodBase64URL, params));
4956
+ return this.check(/* @__PURE__ */ _base64url(ZodBase64URL, params));
5104
4957
  },
5105
4958
  xid(params) {
5106
- return this.check(_xid(ZodXID, params));
4959
+ return this.check(/* @__PURE__ */ _xid(ZodXID, params));
5107
4960
  },
5108
4961
  ksuid(params) {
5109
- return this.check(_ksuid(ZodKSUID, params));
4962
+ return this.check(/* @__PURE__ */ _ksuid(ZodKSUID, params));
5110
4963
  },
5111
4964
  ipv4(params) {
5112
- return this.check(_ipv4(ZodIPv4, params));
4965
+ return this.check(/* @__PURE__ */ _ipv4(ZodIPv4, params));
5113
4966
  },
5114
4967
  ipv6(params) {
5115
- return this.check(_ipv6(ZodIPv6, params));
4968
+ return this.check(/* @__PURE__ */ _ipv6(ZodIPv6, params));
5116
4969
  },
5117
4970
  cidrv4(params) {
5118
- return this.check(_cidrv4(ZodCIDRv4, params));
4971
+ return this.check(/* @__PURE__ */ _cidrv4(ZodCIDRv4, params));
5119
4972
  },
5120
4973
  cidrv6(params) {
5121
- return this.check(_cidrv6(ZodCIDRv6, params));
4974
+ return this.check(/* @__PURE__ */ _cidrv6(ZodCIDRv6, params));
5122
4975
  },
5123
4976
  e164(params) {
5124
- return this.check(_e164(ZodE164, params));
4977
+ return this.check(/* @__PURE__ */ _e164(ZodE164, params));
5125
4978
  },
5126
4979
  datetime(params) {
5127
- return this.check(_isoDateTime(ZodISODateTime, params));
4980
+ return this.check(/* @__PURE__ */ _isoDateTime(ZodISODateTime, params));
5128
4981
  },
5129
4982
  date(params) {
5130
- return this.check(_isoDate(ZodISODate, params));
4983
+ return this.check(/* @__PURE__ */ _isoDate(ZodISODate, params));
5131
4984
  },
5132
4985
  time(params) {
5133
- return this.check(_isoTime(ZodISOTime, params));
4986
+ return this.check(/* @__PURE__ */ _isoTime(ZodISOTime, params));
5134
4987
  },
5135
4988
  duration(params) {
5136
- return this.check(_isoDuration(ZodISODuration, params));
4989
+ return this.check(/* @__PURE__ */ _isoDuration(ZodISODuration, params));
5137
4990
  }
5138
4991
  });
5139
4992
  function string(params) {
5140
- return _string(ZodString, params);
4993
+ return /* @__PURE__ */ _string(ZodString, params);
5141
4994
  }
5142
- const ZodStringFormat = /* @__PURE__ */ $constructor("ZodStringFormat", (inst, def) => {
4995
+ const ZodStringFormat = /*@__PURE__*/ $constructor("ZodStringFormat", (inst, def) => {
5143
4996
  $ZodStringFormat.init(inst, def);
5144
4997
  _ZodString.init(inst, def);
5145
4998
  });
5146
- const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
4999
+ const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
5147
5000
  $ZodISODateTime.init(inst, def);
5148
5001
  ZodStringFormat.init(inst, def);
5149
5002
  });
5150
- const ZodISODate = /* @__PURE__ */ $constructor("ZodISODate", (inst, def) => {
5003
+ const ZodISODate = /*@__PURE__*/ $constructor("ZodISODate", (inst, def) => {
5151
5004
  $ZodISODate.init(inst, def);
5152
5005
  ZodStringFormat.init(inst, def);
5153
5006
  });
5154
- const ZodISOTime = /* @__PURE__ */ $constructor("ZodISOTime", (inst, def) => {
5007
+ const ZodISOTime = /*@__PURE__*/ $constructor("ZodISOTime", (inst, def) => {
5155
5008
  $ZodISOTime.init(inst, def);
5156
5009
  ZodStringFormat.init(inst, def);
5157
5010
  });
5158
- const ZodISODuration = /* @__PURE__ */ $constructor("ZodISODuration", (inst, def) => {
5011
+ const ZodISODuration = /*@__PURE__*/ $constructor("ZodISODuration", (inst, def) => {
5159
5012
  $ZodISODuration.init(inst, def);
5160
5013
  ZodStringFormat.init(inst, def);
5161
5014
  });
5162
- const ZodEmail = /* @__PURE__ */ $constructor("ZodEmail", (inst, def) => {
5015
+ const ZodEmail = /*@__PURE__*/ $constructor("ZodEmail", (inst, def) => {
5163
5016
  $ZodEmail.init(inst, def);
5164
5017
  ZodStringFormat.init(inst, def);
5165
5018
  });
5166
- const ZodGUID = /* @__PURE__ */ $constructor("ZodGUID", (inst, def) => {
5019
+ const ZodGUID = /*@__PURE__*/ $constructor("ZodGUID", (inst, def) => {
5167
5020
  $ZodGUID.init(inst, def);
5168
5021
  ZodStringFormat.init(inst, def);
5169
5022
  });
5170
- const ZodUUID = /* @__PURE__ */ $constructor("ZodUUID", (inst, def) => {
5023
+ const ZodUUID = /*@__PURE__*/ $constructor("ZodUUID", (inst, def) => {
5171
5024
  $ZodUUID.init(inst, def);
5172
5025
  ZodStringFormat.init(inst, def);
5173
5026
  });
5174
- const ZodURL = /* @__PURE__ */ $constructor("ZodURL", (inst, def) => {
5027
+ const ZodURL = /*@__PURE__*/ $constructor("ZodURL", (inst, def) => {
5175
5028
  $ZodURL.init(inst, def);
5176
5029
  ZodStringFormat.init(inst, def);
5177
5030
  });
5178
5031
  function url(params) {
5179
- return _url(ZodURL, params);
5032
+ return /* @__PURE__ */ _url(ZodURL, params);
5180
5033
  }
5181
- const ZodEmoji = /* @__PURE__ */ $constructor("ZodEmoji", (inst, def) => {
5034
+ const ZodEmoji = /*@__PURE__*/ $constructor("ZodEmoji", (inst, def) => {
5182
5035
  $ZodEmoji.init(inst, def);
5183
5036
  ZodStringFormat.init(inst, def);
5184
5037
  });
5185
- const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
5038
+ const ZodNanoID = /*@__PURE__*/ $constructor("ZodNanoID", (inst, def) => {
5186
5039
  $ZodNanoID.init(inst, def);
5187
5040
  ZodStringFormat.init(inst, def);
5188
5041
  });
@@ -5191,64 +5044,64 @@ const ZodNanoID = /* @__PURE__ */ $constructor("ZodNanoID", (inst, def) => {
5191
5044
  * (timestamps embedded in the id). Use {@link ZodCUID2} instead.
5192
5045
  * See https://github.com/paralleldrive/cuid.
5193
5046
  */
5194
- const ZodCUID = /* @__PURE__ */ $constructor("ZodCUID", (inst, def) => {
5047
+ const ZodCUID = /*@__PURE__*/ $constructor("ZodCUID", (inst, def) => {
5195
5048
  $ZodCUID.init(inst, def);
5196
5049
  ZodStringFormat.init(inst, def);
5197
5050
  });
5198
- const ZodCUID2 = /* @__PURE__ */ $constructor("ZodCUID2", (inst, def) => {
5051
+ const ZodCUID2 = /*@__PURE__*/ $constructor("ZodCUID2", (inst, def) => {
5199
5052
  $ZodCUID2.init(inst, def);
5200
5053
  ZodStringFormat.init(inst, def);
5201
5054
  });
5202
- const ZodULID = /* @__PURE__ */ $constructor("ZodULID", (inst, def) => {
5055
+ const ZodULID = /*@__PURE__*/ $constructor("ZodULID", (inst, def) => {
5203
5056
  $ZodULID.init(inst, def);
5204
5057
  ZodStringFormat.init(inst, def);
5205
5058
  });
5206
- const ZodXID = /* @__PURE__ */ $constructor("ZodXID", (inst, def) => {
5059
+ const ZodXID = /*@__PURE__*/ $constructor("ZodXID", (inst, def) => {
5207
5060
  $ZodXID.init(inst, def);
5208
5061
  ZodStringFormat.init(inst, def);
5209
5062
  });
5210
- const ZodKSUID = /* @__PURE__ */ $constructor("ZodKSUID", (inst, def) => {
5063
+ const ZodKSUID = /*@__PURE__*/ $constructor("ZodKSUID", (inst, def) => {
5211
5064
  $ZodKSUID.init(inst, def);
5212
5065
  ZodStringFormat.init(inst, def);
5213
5066
  });
5214
- const ZodIPv4 = /* @__PURE__ */ $constructor("ZodIPv4", (inst, def) => {
5067
+ const ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
5215
5068
  $ZodIPv4.init(inst, def);
5216
5069
  ZodStringFormat.init(inst, def);
5217
5070
  });
5218
- const ZodIPv6 = /* @__PURE__ */ $constructor("ZodIPv6", (inst, def) => {
5071
+ const ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
5219
5072
  $ZodIPv6.init(inst, def);
5220
5073
  ZodStringFormat.init(inst, def);
5221
5074
  });
5222
- const ZodCIDRv4 = /* @__PURE__ */ $constructor("ZodCIDRv4", (inst, def) => {
5075
+ const ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
5223
5076
  $ZodCIDRv4.init(inst, def);
5224
5077
  ZodStringFormat.init(inst, def);
5225
5078
  });
5226
- const ZodCIDRv6 = /* @__PURE__ */ $constructor("ZodCIDRv6", (inst, def) => {
5079
+ const ZodCIDRv6 = /*@__PURE__*/ $constructor("ZodCIDRv6", (inst, def) => {
5227
5080
  $ZodCIDRv6.init(inst, def);
5228
5081
  ZodStringFormat.init(inst, def);
5229
5082
  });
5230
- const ZodBase64 = /* @__PURE__ */ $constructor("ZodBase64", (inst, def) => {
5083
+ const ZodBase64 = /*@__PURE__*/ $constructor("ZodBase64", (inst, def) => {
5231
5084
  $ZodBase64.init(inst, def);
5232
5085
  ZodStringFormat.init(inst, def);
5233
5086
  });
5234
- const ZodBase64URL = /* @__PURE__ */ $constructor("ZodBase64URL", (inst, def) => {
5087
+ const ZodBase64URL = /*@__PURE__*/ $constructor("ZodBase64URL", (inst, def) => {
5235
5088
  $ZodBase64URL.init(inst, def);
5236
5089
  ZodStringFormat.init(inst, def);
5237
5090
  });
5238
- const ZodE164 = /* @__PURE__ */ $constructor("ZodE164", (inst, def) => {
5091
+ const ZodE164 = /*@__PURE__*/ $constructor("ZodE164", (inst, def) => {
5239
5092
  $ZodE164.init(inst, def);
5240
5093
  ZodStringFormat.init(inst, def);
5241
5094
  });
5242
- const ZodJWT = /* @__PURE__ */ $constructor("ZodJWT", (inst, def) => {
5095
+ const ZodJWT = /*@__PURE__*/ $constructor("ZodJWT", (inst, def) => {
5243
5096
  $ZodJWT.init(inst, def);
5244
5097
  ZodStringFormat.init(inst, def);
5245
5098
  });
5246
- const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
5099
+ const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
5247
5100
  $ZodNumber.init(inst, def);
5248
5101
  ZodType.init(inst, def);
5249
5102
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
5250
5103
  inst.isFinite = true;
5251
- }, /* @__PURE__ */ derived({
5104
+ }, /*@__PURE__*/ derived({
5252
5105
  minValue: (inst) => {
5253
5106
  const { minimum, exclusiveMinimum } = aggregateChecks(inst);
5254
5107
  return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
@@ -5264,22 +5117,22 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
5264
5117
  format: (inst) => aggregateChecks(inst).format ?? null
5265
5118
  }, {
5266
5119
  gt(value, params) {
5267
- return this.check(_gt(value, params));
5120
+ return this.check(/* @__PURE__ */ _gt(value, params));
5268
5121
  },
5269
5122
  gte(value, params) {
5270
- return this.check(_gte(value, params));
5123
+ return this.check(/* @__PURE__ */ _gte(value, params));
5271
5124
  },
5272
5125
  min(value, params) {
5273
- return this.check(_gte(value, params));
5126
+ return this.check(/* @__PURE__ */ _gte(value, params));
5274
5127
  },
5275
5128
  lt(value, params) {
5276
- return this.check(_lt(value, params));
5129
+ return this.check(/* @__PURE__ */ _lt(value, params));
5277
5130
  },
5278
5131
  lte(value, params) {
5279
- return this.check(_lte(value, params));
5132
+ return this.check(/* @__PURE__ */ _lte(value, params));
5280
5133
  },
5281
5134
  max(value, params) {
5282
- return this.check(_lte(value, params));
5135
+ return this.check(/* @__PURE__ */ _lte(value, params));
5283
5136
  },
5284
5137
  int(params) {
5285
5138
  return this.check(int(params));
@@ -5288,62 +5141,62 @@ const ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
5288
5141
  return this.check(int(params));
5289
5142
  },
5290
5143
  positive(params) {
5291
- return this.check(_gt(0, params));
5144
+ return this.check(/* @__PURE__ */ _gt(0, params));
5292
5145
  },
5293
5146
  nonnegative(params) {
5294
- return this.check(_gte(0, params));
5147
+ return this.check(/* @__PURE__ */ _gte(0, params));
5295
5148
  },
5296
5149
  negative(params) {
5297
- return this.check(_lt(0, params));
5150
+ return this.check(/* @__PURE__ */ _lt(0, params));
5298
5151
  },
5299
5152
  nonpositive(params) {
5300
- return this.check(_lte(0, params));
5153
+ return this.check(/* @__PURE__ */ _lte(0, params));
5301
5154
  },
5302
5155
  multipleOf(value, params) {
5303
- return this.check(_multipleOf(value, params));
5156
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
5304
5157
  },
5305
5158
  step(value, params) {
5306
- return this.check(_multipleOf(value, params));
5159
+ return this.check(/* @__PURE__ */ _multipleOf(value, params));
5307
5160
  },
5308
5161
  finite() {
5309
5162
  return this;
5310
5163
  }
5311
5164
  }));
5312
5165
  function number(params) {
5313
- return _number(ZodNumber, params);
5166
+ return /* @__PURE__ */ _number(ZodNumber, params);
5314
5167
  }
5315
- const ZodNumberFormat = /* @__PURE__ */ $constructor("ZodNumberFormat", (inst, def) => {
5168
+ const ZodNumberFormat = /*@__PURE__*/ $constructor("ZodNumberFormat", (inst, def) => {
5316
5169
  $ZodNumberFormat.init(inst, def);
5317
5170
  ZodNumber.init(inst, def);
5318
5171
  });
5319
5172
  function int(params) {
5320
- return _int(ZodNumberFormat, params);
5173
+ return /* @__PURE__ */ _int(ZodNumberFormat, params);
5321
5174
  }
5322
- const ZodBoolean = /* @__PURE__ */ $constructor("ZodBoolean", (inst, def) => {
5175
+ const ZodBoolean = /*@__PURE__*/ $constructor("ZodBoolean", (inst, def) => {
5323
5176
  $ZodBoolean.init(inst, def);
5324
5177
  ZodType.init(inst, def);
5325
5178
  inst._zod.processJSONSchema = (ctx, json, params) => booleanProcessor(inst, ctx, json, params);
5326
5179
  });
5327
5180
  function boolean(params) {
5328
- return _boolean(ZodBoolean, params);
5181
+ return /* @__PURE__ */ _boolean(ZodBoolean, params);
5329
5182
  }
5330
- const ZodUnknown = /* @__PURE__ */ $constructor("ZodUnknown", (inst, def) => {
5183
+ const ZodUnknown = /*@__PURE__*/ $constructor("ZodUnknown", (inst, def) => {
5331
5184
  $ZodUnknown.init(inst, def);
5332
5185
  ZodType.init(inst, def);
5333
- inst._zod.processJSONSchema = (ctx, json, params) => unknownProcessor(inst, ctx, json, params);
5186
+ inst._zod.processJSONSchema = (ctx, json, params) => void 0;
5334
5187
  });
5335
5188
  function unknown() {
5336
- return _unknown(ZodUnknown);
5189
+ return /* @__PURE__ */ _unknown(ZodUnknown);
5337
5190
  }
5338
- const ZodNever = /* @__PURE__ */ $constructor("ZodNever", (inst, def) => {
5191
+ const ZodNever = /*@__PURE__*/ $constructor("ZodNever", (inst, def) => {
5339
5192
  $ZodNever.init(inst, def);
5340
5193
  ZodType.init(inst, def);
5341
5194
  inst._zod.processJSONSchema = (ctx, json, params) => neverProcessor(inst, ctx, json, params);
5342
5195
  });
5343
5196
  function never(params) {
5344
- return _never(ZodNever, params);
5197
+ return /* @__PURE__ */ _never(ZodNever, params);
5345
5198
  }
5346
- const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
5199
+ const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
5347
5200
  _ensureDefaultMemoizer();
5348
5201
  $ZodArray.init(inst, def);
5349
5202
  ZodType.init(inst, def);
@@ -5351,25 +5204,25 @@ const ZodArray = /* @__PURE__ */ $constructor("ZodArray", (inst, def) => {
5351
5204
  inst.element = def.element;
5352
5205
  }, {
5353
5206
  min(n, params) {
5354
- return this.check(_minLength(n, params));
5207
+ return this.check(/* @__PURE__ */ _minLength(n, params));
5355
5208
  },
5356
5209
  nonempty(params) {
5357
- return this.check(_minLength(1, params));
5210
+ return this.check(/* @__PURE__ */ _minLength(1, params));
5358
5211
  },
5359
5212
  max(n, params) {
5360
- return this.check(_maxLength(n, params));
5213
+ return this.check(/* @__PURE__ */ _maxLength(n, params));
5361
5214
  },
5362
5215
  length(n, params) {
5363
- return this.check(_length(n, params));
5216
+ return this.check(/* @__PURE__ */ _length(n, params));
5364
5217
  },
5365
5218
  unwrap() {
5366
5219
  return this.element;
5367
5220
  }
5368
5221
  });
5369
5222
  function array(element, params) {
5370
- return _array(ZodArray, element, params);
5223
+ return /* @__PURE__ */ _array(ZodArray, element, params);
5371
5224
  }
5372
- const ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
5225
+ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
5373
5226
  _ensureDefaultMemoizer();
5374
5227
  $ZodObjectJIT.init(inst, def);
5375
5228
  ZodType.init(inst, def);
@@ -5427,7 +5280,7 @@ function object(shape, params) {
5427
5280
  };
5428
5281
  return new ZodObject(def);
5429
5282
  }
5430
- const ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
5283
+ const ZodUnion = /*@__PURE__*/ $constructor("ZodUnion", (inst, def) => {
5431
5284
  $ZodUnion.init(inst, def);
5432
5285
  ZodType.init(inst, def);
5433
5286
  inst._zod.processJSONSchema = (ctx, json, params) => unionProcessor(inst, ctx, json, params);
@@ -5440,7 +5293,7 @@ function union(options, params) {
5440
5293
  ...normalizeParams(params)
5441
5294
  });
5442
5295
  }
5443
- const ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
5296
+ const ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("ZodDiscriminatedUnion", (inst, def) => {
5444
5297
  ZodUnion.init(inst, def);
5445
5298
  $ZodDiscriminatedUnion.init(inst, def);
5446
5299
  });
@@ -5452,7 +5305,7 @@ function discriminatedUnion(discriminator, options, params) {
5452
5305
  ...normalizeParams(params)
5453
5306
  });
5454
5307
  }
5455
- const ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
5308
+ const ZodIntersection = /*@__PURE__*/ $constructor("ZodIntersection", (inst, def) => {
5456
5309
  $ZodIntersection.init(inst, def);
5457
5310
  ZodType.init(inst, def);
5458
5311
  inst._zod.processJSONSchema = (ctx, json, params) => intersectionProcessor(inst, ctx, json, params);
@@ -5464,7 +5317,7 @@ function intersection(left, right) {
5464
5317
  right
5465
5318
  });
5466
5319
  }
5467
- const ZodRecord = /* @__PURE__ */ $constructor("ZodRecord", (inst, def) => {
5320
+ const ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
5468
5321
  _ensureDefaultMemoizer();
5469
5322
  $ZodRecord.init(inst, def);
5470
5323
  ZodType.init(inst, def);
@@ -5486,7 +5339,7 @@ function record(keyType, valueType, params) {
5486
5339
  ...normalizeParams(params)
5487
5340
  });
5488
5341
  }
5489
- const ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
5342
+ const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
5490
5343
  $ZodEnum.init(inst, def);
5491
5344
  ZodType.init(inst, def);
5492
5345
  inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
@@ -5524,7 +5377,7 @@ function _enum(values, params) {
5524
5377
  ...normalizeParams(params)
5525
5378
  });
5526
5379
  }
5527
- const ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
5380
+ const ZodLiteral = /*@__PURE__*/ $constructor("ZodLiteral", (inst, def) => {
5528
5381
  $ZodLiteral.init(inst, def);
5529
5382
  ZodType.init(inst, def);
5530
5383
  inst._zod.processJSONSchema = (ctx, json, params) => literalProcessor(inst, ctx, json, params);
@@ -5541,7 +5394,7 @@ function literal(value, params) {
5541
5394
  ...normalizeParams(params)
5542
5395
  });
5543
5396
  }
5544
- const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
5397
+ const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
5545
5398
  _ensureDefaultMemoizer();
5546
5399
  $ZodTransform.init(inst, def);
5547
5400
  ZodType.init(inst, def);
@@ -5560,8 +5413,8 @@ const ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) =>
5560
5413
  }
5561
5414
  };
5562
5415
  const output = def.transform(payload.value, payload);
5563
- if (output instanceof Promise) return output.then((output$1) => {
5564
- payload.value = output$1;
5416
+ if (output instanceof Promise) return output.then((output) => {
5417
+ payload.value = output;
5565
5418
  return payload;
5566
5419
  });
5567
5420
  payload.value = output;
@@ -5574,7 +5427,7 @@ function transform(fn) {
5574
5427
  transform: fn
5575
5428
  });
5576
5429
  }
5577
- const ZodOptional = /* @__PURE__ */ $constructor("ZodOptional", (inst, def) => {
5430
+ const ZodOptional = /*@__PURE__*/ $constructor("ZodOptional", (inst, def) => {
5578
5431
  $ZodOptional.init(inst, def);
5579
5432
  ZodType.init(inst, def);
5580
5433
  inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
@@ -5586,7 +5439,7 @@ function optional(innerType) {
5586
5439
  innerType
5587
5440
  });
5588
5441
  }
5589
- const ZodExactOptional = /* @__PURE__ */ $constructor("ZodExactOptional", (inst, def) => {
5442
+ const ZodExactOptional = /*@__PURE__*/ $constructor("ZodExactOptional", (inst, def) => {
5590
5443
  $ZodExactOptional.init(inst, def);
5591
5444
  ZodType.init(inst, def);
5592
5445
  inst._zod.processJSONSchema = (ctx, json, params) => optionalProcessor(inst, ctx, json, params);
@@ -5598,7 +5451,7 @@ function exactOptional(innerType) {
5598
5451
  innerType
5599
5452
  });
5600
5453
  }
5601
- const ZodNullable = /* @__PURE__ */ $constructor("ZodNullable", (inst, def) => {
5454
+ const ZodNullable = /*@__PURE__*/ $constructor("ZodNullable", (inst, def) => {
5602
5455
  $ZodNullable.init(inst, def);
5603
5456
  ZodType.init(inst, def);
5604
5457
  inst._zod.processJSONSchema = (ctx, json, params) => nullableProcessor(inst, ctx, json, params);
@@ -5610,7 +5463,7 @@ function nullable(innerType) {
5610
5463
  innerType
5611
5464
  });
5612
5465
  }
5613
- const ZodDefault = /* @__PURE__ */ $constructor("ZodDefault", (inst, def) => {
5466
+ const ZodDefault = /*@__PURE__*/ $constructor("ZodDefault", (inst, def) => {
5614
5467
  $ZodDefault.init(inst, def);
5615
5468
  ZodType.init(inst, def);
5616
5469
  inst._zod.processJSONSchema = (ctx, json, params) => defaultProcessor(inst, ctx, json, params);
@@ -5626,7 +5479,7 @@ function _default(innerType, defaultValue) {
5626
5479
  }
5627
5480
  });
5628
5481
  }
5629
- const ZodPrefault = /* @__PURE__ */ $constructor("ZodPrefault", (inst, def) => {
5482
+ const ZodPrefault = /*@__PURE__*/ $constructor("ZodPrefault", (inst, def) => {
5630
5483
  $ZodPrefault.init(inst, def);
5631
5484
  ZodType.init(inst, def);
5632
5485
  inst._zod.processJSONSchema = (ctx, json, params) => prefaultProcessor(inst, ctx, json, params);
@@ -5641,7 +5494,7 @@ function prefault(innerType, defaultValue) {
5641
5494
  }
5642
5495
  });
5643
5496
  }
5644
- const ZodNonOptional = /* @__PURE__ */ $constructor("ZodNonOptional", (inst, def) => {
5497
+ const ZodNonOptional = /*@__PURE__*/ $constructor("ZodNonOptional", (inst, def) => {
5645
5498
  $ZodNonOptional.init(inst, def);
5646
5499
  ZodType.init(inst, def);
5647
5500
  inst._zod.processJSONSchema = (ctx, json, params) => nonoptionalProcessor(inst, ctx, json, params);
@@ -5654,7 +5507,7 @@ function nonoptional(innerType, params) {
5654
5507
  ...normalizeParams(params)
5655
5508
  });
5656
5509
  }
5657
- const ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
5510
+ const ZodCatch = /*@__PURE__*/ $constructor("ZodCatch", (inst, def) => {
5658
5511
  $ZodCatch.init(inst, def);
5659
5512
  ZodType.init(inst, def);
5660
5513
  inst._zod.processJSONSchema = (ctx, json, params) => catchProcessor(inst, ctx, json, params);
@@ -5668,7 +5521,7 @@ function _catch(innerType, catchValue) {
5668
5521
  catchValue: typeof catchValue === "function" ? catchValue : constantCatch(catchValue)
5669
5522
  });
5670
5523
  }
5671
- const ZodPipe = /* @__PURE__ */ $constructor("ZodPipe", (inst, def) => {
5524
+ const ZodPipe = /*@__PURE__*/ $constructor("ZodPipe", (inst, def) => {
5672
5525
  $ZodPipe.init(inst, def);
5673
5526
  ZodType.init(inst, def);
5674
5527
  inst._zod.processJSONSchema = (ctx, json, params) => pipeProcessor(inst, ctx, json, params);
@@ -5682,7 +5535,7 @@ function pipe(in_, out) {
5682
5535
  out
5683
5536
  });
5684
5537
  }
5685
- const ZodReadonly = /* @__PURE__ */ $constructor("ZodReadonly", (inst, def) => {
5538
+ const ZodReadonly = /*@__PURE__*/ $constructor("ZodReadonly", (inst, def) => {
5686
5539
  $ZodReadonly.init(inst, def);
5687
5540
  ZodType.init(inst, def);
5688
5541
  inst._zod.processJSONSchema = (ctx, json, params) => readonlyProcessor(inst, ctx, json, params);
@@ -5694,23 +5547,88 @@ function readonly(innerType) {
5694
5547
  innerType
5695
5548
  });
5696
5549
  }
5697
- const ZodCustom = /* @__PURE__ */ $constructor("ZodCustom", (inst, def) => {
5550
+ const ZodCustom = /*@__PURE__*/ $constructor("ZodCustom", (inst, def) => {
5698
5551
  $ZodCustom.init(inst, def);
5699
5552
  ZodType.init(inst, def);
5700
5553
  inst._zod.processJSONSchema = (ctx, json, params) => customProcessor(inst, ctx, json, params);
5701
5554
  });
5702
5555
  function custom(fn, _params) {
5703
- return _custom(ZodCustom, fn ?? (() => true), _params);
5556
+ return /* @__PURE__ */ _custom(ZodCustom, fn ?? (() => true), _params);
5704
5557
  }
5705
5558
  function refine(fn, _params = {}) {
5706
- return _refine(ZodCustom, fn, _params);
5559
+ return /* @__PURE__ */ _refine(ZodCustom, fn, _params);
5707
5560
  }
5708
5561
  function superRefine(fn, params) {
5709
- return _superRefine(fn, params);
5562
+ return /* @__PURE__ */ _superRefine(fn, params);
5710
5563
  }
5711
- const describe = describe$1;
5712
- const meta = meta$1;
5713
-
5564
+ //#endregion
5565
+ //#region src/workspace/stages.ts
5566
+ /**
5567
+ * What `gkm test` runs as. The CLI's own, so no project stage may take it:
5568
+ * its containers are torn down and rebuilt between runs.
5569
+ */
5570
+ const TEST_STAGE = "test";
5571
+ /** A stage becomes part of every physical name, so it has to fit in one. */
5572
+ const STAGE_NAME = /^[a-z][a-z0-9-]*$/;
5573
+ /** Everything wrong with one stage name, or nothing. */
5574
+ function nameProblems(name) {
5575
+ const problems = [];
5576
+ if (!STAGE_NAME.test(name)) problems.push(`stage "${name}" must be lowercase letters, digits and hyphens, starting with a letter`);
5577
+ if (name === "test") problems.push(`stage "${TEST_STAGE}" is reserved for gkm test`);
5578
+ return problems;
5579
+ }
5580
+ /** Everything wrong with a list of deployed stages on its own. */
5581
+ function deployedProblems(deployed) {
5582
+ const problems = deployed.flatMap(nameProblems);
5583
+ const seen = /* @__PURE__ */ new Set();
5584
+ for (const name of deployed) {
5585
+ if (seen.has(name)) problems.push(`stage "${name}" is listed twice`);
5586
+ seen.add(name);
5587
+ }
5588
+ return problems;
5589
+ }
5590
+ /** Everything wrong with a stages block, or nothing. */
5591
+ function stageProblems(stages) {
5592
+ if (!stages) return ["`stages` is required, e.g. stages: { local: 'dev', deployed: ['prod'] }"];
5593
+ const { local, deployed, protected: kept = [] } = stages;
5594
+ const problems = [...nameProblems(local), ...deployedProblems(deployed)];
5595
+ if (deployed.includes(local)) problems.push(`"${local}" is both the local stage and a deployed one; they would share secrets`);
5596
+ for (const name of kept) if (!deployed.includes(name)) problems.push(`protected stage "${name}" is not a deployed stage`);
5597
+ return problems;
5598
+ }
5599
+ /** The stages block, or an error naming everything wrong with it. */
5600
+ function validateStages(stages) {
5601
+ const problems = stageProblems(stages);
5602
+ if (problems.length) throw new InvalidStages(problems);
5603
+ return stages;
5604
+ }
5605
+ /** Refuses a stage the project does not deploy to. */
5606
+ function assertDeployedStage(stages, stage) {
5607
+ if (!stages.deployed.includes(stage)) throw new UndeclaredStage(stage, stages.deployed);
5608
+ }
5609
+ /** A stages block — in gkm.config.ts or from `gkm init`'s flags — that breaks a rule. */
5610
+ var InvalidStages = class extends Error {
5611
+ problems;
5612
+ constructor(problems) {
5613
+ super(`Invalid stages:\n ${problems.join("\n ")}`);
5614
+ this.problems = problems;
5615
+ this.name = "InvalidStages";
5616
+ }
5617
+ };
5618
+ /**
5619
+ * A stage the project does not deploy to. Refused before anything is
5620
+ * provisioned, so a typo does not become a second environment.
5621
+ */
5622
+ var UndeclaredStage = class extends Error {
5623
+ stage;
5624
+ deployed;
5625
+ constructor(stage, deployed) {
5626
+ super(`"${stage}" is not a deployed stage. gkm.config.ts deploys to: ${deployed.join(", ") || "nothing yet"}.`);
5627
+ this.stage = stage;
5628
+ this.deployed = deployed;
5629
+ this.name = "UndeclaredStage";
5630
+ }
5631
+ };
5714
5632
  //#endregion
5715
5633
  //#region src/workspace/schema.ts
5716
5634
  /**
@@ -5759,34 +5677,22 @@ const OpenApiConfigSchema = object({
5759
5677
  */
5760
5678
  const HooksConfigSchema = object({ server: string().optional() });
5761
5679
  /**
5762
- * Backend framework schema for non-gkm apps.
5763
- */
5764
- const BackendFrameworkSchema = _enum([
5765
- "hono",
5766
- "better-auth",
5767
- "express",
5768
- "fastify"
5769
- ]);
5770
- /**
5771
- * Frontend framework schema.
5772
- */
5773
- const FrontendFrameworkSchema = _enum([
5774
- "nextjs",
5775
- "remix",
5776
- "vite",
5777
- "tanstack-start"
5778
- ]);
5779
- /**
5780
- * Mobile framework schema.
5781
- */
5782
- const MobileFrameworkSchema = _enum(["expo"]);
5783
- /**
5784
5680
  * Combined framework schema (backend, frontend, or mobile).
5785
5681
  */
5786
5682
  const FrameworkSchema = union([
5787
- BackendFrameworkSchema,
5788
- FrontendFrameworkSchema,
5789
- MobileFrameworkSchema
5683
+ _enum([
5684
+ "hono",
5685
+ "better-auth",
5686
+ "express",
5687
+ "fastify"
5688
+ ]),
5689
+ _enum([
5690
+ "nextjs",
5691
+ "remix",
5692
+ "vite",
5693
+ "tanstack-start"
5694
+ ]),
5695
+ _enum(["expo"])
5790
5696
  ]);
5791
5697
  /** Frontend framework values, kept in sync with FrontendFrameworkSchema. */
5792
5698
  const FRONTEND_FRAMEWORKS = [
@@ -5831,76 +5737,21 @@ function isPhase2DeployTarget(target) {
5831
5737
  * Get error message for unsupported deploy targets.
5832
5738
  */
5833
5739
  function getDeployTargetError(target, appName) {
5834
- if (isPhase2DeployTarget(target)) {
5835
- const context = appName ? ` for app "${appName}"` : "";
5836
- return `Deploy target "${target}"${context} is coming in Phase 2. Currently only "dokploy" is supported.`;
5837
- }
5740
+ if (isPhase2DeployTarget(target)) return `Deploy target "${target}"${appName ? ` for app "${appName}"` : ""} is coming in Phase 2. Currently only "dokploy" is supported.`;
5838
5741
  return `Unknown deploy target: ${target}. Supported: dokploy. Coming in Phase 2: vercel, cloudflare.`;
5839
5742
  }
5840
5743
  /**
5841
- * Service image configuration schema.
5842
- */
5843
- const ServiceImageConfigSchema = object({
5844
- version: string().optional(),
5845
- image: string().optional()
5846
- });
5847
- /**
5848
- * Mail service configuration schema.
5849
- */
5850
- const MailServiceConfigSchema = ServiceImageConfigSchema.extend({ smtp: object({
5851
- host: string(),
5852
- port: number(),
5853
- user: string().optional(),
5854
- pass: string().optional()
5855
- }).optional() });
5856
- /**
5857
- * Services configuration schema.
5858
- */
5859
- const ServicesConfigSchema = object({
5860
- db: union([boolean(), ServiceImageConfigSchema]).optional(),
5861
- cache: union([
5862
- boolean(),
5863
- ServiceImageConfigSchema,
5864
- _enum([
5865
- "upstash",
5866
- "elasticache",
5867
- "db"
5868
- ])
5869
- ]).optional(),
5870
- mail: union([
5871
- boolean(),
5872
- MailServiceConfigSchema,
5873
- _enum([
5874
- "resend",
5875
- "ses",
5876
- "smtp"
5877
- ])
5878
- ]).optional(),
5879
- storage: union([
5880
- boolean(),
5881
- ServiceImageConfigSchema,
5882
- _enum([
5883
- "minio",
5884
- "s3",
5885
- "r2"
5886
- ])
5887
- ]).optional(),
5888
- events: _enum([
5889
- "pgboss",
5890
- "sns",
5891
- "rabbitmq"
5892
- ]).optional(),
5893
- trustLocalCa: boolean().optional()
5894
- });
5895
- /**
5896
5744
  * Dokploy workspace configuration schema.
5897
5745
  * Supports either a single endpoint or per-stage endpoints.
5898
5746
  */
5899
5747
  const DokployWorkspaceConfigSchema = object({
5748
+ /** Single endpoint for all stages */
5900
5749
  endpoint: url("Dokploy endpoint must be a valid URL").optional(),
5750
+ /** Per-stage endpoints (stage name -> endpoint URL) */
5901
5751
  endpoints: record(string(), url("Endpoint must be a valid URL")).optional(),
5902
5752
  registry: string().optional(),
5903
5753
  registryId: string().optional(),
5754
+ /** Per-stage domain configuration (stage name -> base domain) */
5904
5755
  domains: record(string(), string()).optional()
5905
5756
  }).refine((data) => data.endpoint || data.endpoints, { message: "Either endpoint or endpoints must be provided" });
5906
5757
  /**
@@ -5948,30 +5799,31 @@ const DnsRecordTypeSchema = _enum([
5948
5799
  "SRV",
5949
5800
  "CAA"
5950
5801
  ]);
5951
- /**
5952
- * A DNS record as returned by the provider.
5953
- */
5954
- const DnsRecordSchema = object({
5802
+ object({
5803
+ /** Subdomain name (e.g., 'api' for api.example.com, '@' for root) */
5955
5804
  name: string(),
5805
+ /** Record type */
5956
5806
  type: DnsRecordTypeSchema,
5807
+ /** TTL in seconds */
5957
5808
  ttl: number().int().positive(),
5809
+ /** Record values */
5958
5810
  values: array(string())
5959
5811
  });
5960
- /**
5961
- * A DNS record to create or update.
5962
- */
5963
- const UpsertDnsRecordSchema = object({
5964
- name: string(),
5965
- type: DnsRecordTypeSchema,
5966
- ttl: number().int().positive(),
5967
- value: string()
5968
- });
5969
- /**
5970
- * Result of an upsert operation.
5971
- */
5972
- const UpsertResultSchema = object({
5973
- record: UpsertDnsRecordSchema,
5812
+ object({
5813
+ /** The record that was upserted */
5814
+ record: object({
5815
+ /** Subdomain name (e.g., 'api' for api.example.com, '@' for root) */
5816
+ name: string(),
5817
+ /** Record type */
5818
+ type: DnsRecordTypeSchema,
5819
+ /** TTL in seconds */
5820
+ ttl: number().int().positive(),
5821
+ /** Record value (IP address, hostname, etc.) */
5822
+ value: string()
5823
+ }),
5824
+ /** Whether the record was created (true) or updated (false) */
5974
5825
  created: boolean(),
5826
+ /** Whether the record already existed with the same value */
5975
5827
  unchanged: boolean()
5976
5828
  });
5977
5829
  /**
@@ -5979,6 +5831,7 @@ const UpsertResultSchema = object({
5979
5831
  */
5980
5832
  const HostingerDnsProviderSchema = object({
5981
5833
  provider: literal("hostinger"),
5834
+ /** TTL in seconds (default: 300) */
5982
5835
  ttl: number().int().positive().optional()
5983
5836
  });
5984
5837
  /**
@@ -5986,9 +5839,13 @@ const HostingerDnsProviderSchema = object({
5986
5839
  */
5987
5840
  const Route53DnsProviderSchema = object({
5988
5841
  provider: literal("route53"),
5842
+ /** AWS region (optional - uses AWS_REGION env var if not provided) */
5989
5843
  region: AwsRegionSchema.optional(),
5844
+ /** AWS profile name (optional - uses default credential chain if not provided) */
5990
5845
  profile: string().optional(),
5846
+ /** Hosted zone ID (optional - auto-detected from domain if not provided) */
5991
5847
  hostedZoneId: string().optional(),
5848
+ /** TTL in seconds (default: 300) */
5992
5849
  ttl: number().int().positive().optional()
5993
5850
  });
5994
5851
  /**
@@ -5996,6 +5853,7 @@ const Route53DnsProviderSchema = object({
5996
5853
  */
5997
5854
  const CloudflareDnsProviderSchema = object({
5998
5855
  provider: literal("cloudflare"),
5856
+ /** TTL in seconds (default: 300) */
5999
5857
  ttl: number().int().positive().optional()
6000
5858
  });
6001
5859
  /**
@@ -6006,22 +5864,20 @@ const ManualDnsProviderSchema = object({ provider: literal("manual") });
6006
5864
  * Custom DNS provider config (user-provided implementation).
6007
5865
  */
6008
5866
  const CustomDnsProviderSchema = object({
5867
+ /** Custom DnsProvider implementation */
6009
5868
  provider: custom((val) => typeof val === "object" && val !== null && typeof val.name === "string" && typeof val.getRecords === "function" && typeof val.upsertRecords === "function", { message: "Custom DNS provider must implement name, getRecords(), and upsertRecords() methods" }),
5869
+ /** TTL in seconds (default: 300) */
6010
5870
  ttl: number().int().positive().optional()
6011
5871
  });
6012
5872
  /**
6013
- * Built-in DNS provider config (discriminated union).
5873
+ * Single DNS provider config (for one domain).
6014
5874
  */
6015
- const BuiltInDnsProviderSchema = discriminatedUnion("provider", [
5875
+ const DnsProviderSchema = union([discriminatedUnion("provider", [
6016
5876
  HostingerDnsProviderSchema,
6017
5877
  Route53DnsProviderSchema,
6018
5878
  CloudflareDnsProviderSchema,
6019
5879
  ManualDnsProviderSchema
6020
- ]);
6021
- /**
6022
- * Single DNS provider config (for one domain).
6023
- */
6024
- const DnsProviderSchema = union([BuiltInDnsProviderSchema, CustomDnsProviderSchema]);
5880
+ ]), CustomDnsProviderSchema]);
6025
5881
  /**
6026
5882
  * DNS configuration schema.
6027
5883
  *
@@ -6047,17 +5903,15 @@ const Route53DnsConfigSchema = Route53DnsProviderSchema.extend({ domain: string(
6047
5903
  const CloudflareDnsConfigSchema = CloudflareDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
6048
5904
  const ManualDnsConfigSchema = ManualDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
6049
5905
  const CustomDnsConfigSchema = CustomDnsProviderSchema.extend({ domain: string().min(1, "Domain is required") });
6050
- const BuiltInDnsConfigSchema = discriminatedUnion("provider", [
5906
+ /**
5907
+ * Combined DNS config that supports both new multi-domain and legacy single-domain formats.
5908
+ */
5909
+ const DnsConfigWithLegacySchema = union([DnsConfigSchema, union([discriminatedUnion("provider", [
6051
5910
  HostingerDnsConfigSchema,
6052
5911
  Route53DnsConfigSchema,
6053
5912
  CloudflareDnsConfigSchema,
6054
5913
  ManualDnsConfigSchema
6055
- ]);
6056
- const LegacyDnsConfigSchema = union([BuiltInDnsConfigSchema, CustomDnsConfigSchema]);
6057
- /**
6058
- * Combined DNS config that supports both new multi-domain and legacy single-domain formats.
6059
- */
6060
- const DnsConfigWithLegacySchema = union([DnsConfigSchema, LegacyDnsConfigSchema]);
5914
+ ]), CustomDnsConfigSchema])]);
6061
5915
  /**
6062
5916
  * Backups configuration schema.
6063
5917
  *
@@ -6065,10 +5919,15 @@ const DnsConfigWithLegacySchema = union([DnsConfigSchema, LegacyDnsConfigSchema]
6065
5919
  * On first deploy, creates S3 bucket with unique name and IAM credentials.
6066
5920
  */
6067
5921
  const BackupsConfigSchema = object({
5922
+ /** Backup storage type (currently only 's3' supported) */
6068
5923
  type: literal("s3"),
5924
+ /** AWS profile name for creating bucket/IAM resources */
6069
5925
  profile: string().optional(),
5926
+ /** AWS region for the backup bucket */
6070
5927
  region: AwsRegionSchema,
5928
+ /** Cron schedule for backups (default: '0 2 * * *' = 2 AM daily) */
6071
5929
  schedule: string().optional(),
5930
+ /** Number of backups to retain (default: 30) */
6072
5931
  retention: number().optional()
6073
5932
  });
6074
5933
  /**
@@ -6097,8 +5956,29 @@ const SharedConfigSchema = object({
6097
5956
  /**
6098
5957
  * Secrets configuration schema.
6099
5958
  */
5959
+ const StagesConfigSchema = object({
5960
+ local: string(),
5961
+ deployed: array(string()),
5962
+ protected: array(string()).optional()
5963
+ }).superRefine((stages, ctx) => {
5964
+ for (const message of stageProblems(stages)) ctx.addIssue({
5965
+ code: "custom",
5966
+ message
5967
+ });
5968
+ });
5969
+ const SecretsStoreSchema = union([
5970
+ literal("file"),
5971
+ object({
5972
+ provider: literal("ssm"),
5973
+ region: AwsRegionSchema
5974
+ }).strict(),
5975
+ object({
5976
+ /** Any backend: an object implementing SecretsStore */
5977
+ provider: custom((val) => typeof val === "object" && val !== null && typeof val.name === "string" && typeof val.read === "function" && typeof val.write === "function", { message: "a secrets store has a name, read() and write()" }) })
5978
+ ]);
6100
5979
  const SecretsConfigSchema = object({
6101
5980
  enabled: boolean().optional(),
5981
+ store: SecretsStoreSchema.optional(),
6102
5982
  algorithm: string().optional(),
6103
5983
  kdf: _enum(["scrypt", "pbkdf2"]).optional()
6104
5984
  });
@@ -6111,17 +5991,17 @@ const LocalStateConfigSchema = object({ provider: literal("local") });
6111
5991
  */
6112
5992
  const SSMStateConfigSchema = object({
6113
5993
  provider: literal("ssm"),
5994
+ /** AWS region (required for SSM provider) */
6114
5995
  region: AwsRegionSchema,
5996
+ /** AWS profile name (optional - uses default credential chain if not provided) */
6115
5997
  profile: string().optional()
6116
5998
  });
6117
5999
  /**
6118
6000
  * Custom state provider config (user-provided implementation).
6119
6001
  */
6120
- const CustomStateConfigSchema = object({ provider: custom((val) => typeof val === "object" && val !== null && typeof val.read === "function" && typeof val.write === "function", { message: "Custom provider must implement read() and write() methods" }) });
6121
- /**
6122
- * Built-in state provider config (discriminated union).
6123
- */
6124
- const BuiltInStateConfigSchema = discriminatedUnion("provider", [LocalStateConfigSchema, SSMStateConfigSchema]);
6002
+ const CustomStateConfigSchema = object({
6003
+ /** Custom StateProvider implementation */
6004
+ provider: custom((val) => typeof val === "object" && val !== null && typeof val.read === "function" && typeof val.write === "function", { message: "Custom provider must implement read() and write() methods" }) });
6125
6005
  /**
6126
6006
  * State configuration schema.
6127
6007
  *
@@ -6130,7 +6010,7 @@ const BuiltInStateConfigSchema = discriminatedUnion("provider", [LocalStateConfi
6130
6010
  * - 'ssm': Store in AWS SSM Parameter Store (requires region)
6131
6011
  * - Custom: Provide a StateProvider implementation with read/write methods
6132
6012
  */
6133
- const StateConfigSchema = union([BuiltInStateConfigSchema, CustomStateConfigSchema]);
6013
+ const StateConfigSchema = union([discriminatedUnion("provider", [LocalStateConfigSchema, SSMStateConfigSchema]), CustomStateConfigSchema]);
6134
6014
  /**
6135
6015
  * App configuration schema.
6136
6016
  */
@@ -6190,19 +6070,41 @@ const AppConfigSchema = object({
6190
6070
  message: `Mobile apps must have a valid mobile framework (${MOBILE_FRAMEWORKS.join(", ")})`,
6191
6071
  path: ["framework"]
6192
6072
  });
6073
+ /** What `gkm test` hands a feature test. */
6074
+ const TestConfigSchema = object({
6075
+ /** The folder of per-database factories; `test/factories` by default. */
6076
+ factories: string().optional() }).strict();
6193
6077
  /**
6194
6078
  * Workspace configuration schema.
6195
6079
  */
6196
6080
  const WorkspaceConfigSchema = object({
6197
6081
  name: string().optional(),
6082
+ /**
6083
+ * Where the workspace's own constructs live, relative to its root.
6084
+ *
6085
+ * Infrastructure is a fact about the product, not about the process that
6086
+ * happens to import it — so a database two apps share is declared once,
6087
+ * at the top, and both find it. An app-level glob still works and is
6088
+ * additive, for something only one app uses.
6089
+ */
6198
6090
  constructs: RoutesSchema.optional(),
6091
+ /**
6092
+ * Apps that nothing declares.
6093
+ *
6094
+ * Optional, and normally absent: a `site` is an app and so is a
6095
+ * `rest-api` that named one, so the list is read off the graph. This is
6096
+ * the escape hatch for what no construct describes — a mobile app, a
6097
+ * process someone runs by hand — and for overriding one field of a
6098
+ * derived app without restating it.
6099
+ */
6199
6100
  apps: record(string(), AppConfigSchema).optional(),
6200
6101
  shared: SharedConfigSchema.optional(),
6201
6102
  deploy: DeployConfigSchema.optional(),
6202
- services: ServicesConfigSchema.optional(),
6103
+ stages: StagesConfigSchema,
6203
6104
  secrets: SecretsConfigSchema.optional(),
6204
- state: StateConfigSchema.optional()
6205
- }).refine((data) => {
6105
+ state: StateConfigSchema.optional(),
6106
+ test: TestConfigSchema.optional()
6107
+ }).strict().refine((data) => {
6206
6108
  const appNames = Object.keys(data.apps ?? {});
6207
6109
  for (const [appName, app] of Object.entries(data.apps ?? {})) for (const dep of app.dependencies ?? []) {
6208
6110
  if (!appNames.includes(dep)) return false;
@@ -6261,14 +6163,14 @@ const WorkspaceConfigSchema = object({
6261
6163
  * Validate workspace configuration.
6262
6164
  * Throws ZodError with detailed messages on validation failure.
6263
6165
  */
6264
- function validateWorkspaceConfig(config$1) {
6265
- return WorkspaceConfigSchema.parse(config$1);
6166
+ function validateWorkspaceConfig(config) {
6167
+ return WorkspaceConfigSchema.parse(config);
6266
6168
  }
6267
6169
  /**
6268
6170
  * Safe validation that returns result instead of throwing.
6269
6171
  */
6270
- function safeValidateWorkspaceConfig(config$1) {
6271
- const result = WorkspaceConfigSchema.safeParse(config$1);
6172
+ function safeValidateWorkspaceConfig(config) {
6173
+ const result = WorkspaceConfigSchema.safeParse(config);
6272
6174
  if (result.success) return {
6273
6175
  success: true,
6274
6176
  data: result.data
@@ -6281,14 +6183,12 @@ function safeValidateWorkspaceConfig(config$1) {
6281
6183
  /**
6282
6184
  * Format Zod errors into user-friendly messages.
6283
6185
  */
6284
- function formatValidationErrors(error$1) {
6285
- const messages = error$1.issues.map((issue$1) => {
6286
- const path = issue$1.path.join(".");
6287
- return path ? ` - ${path}: ${issue$1.message}` : ` - ${issue$1.message}`;
6288
- });
6289
- return `Workspace configuration validation failed:\n${messages.join("\n")}`;
6186
+ function formatValidationErrors(error) {
6187
+ return `Workspace configuration validation failed:\n${error.issues.map((issue) => {
6188
+ const path = issue.path.join(".");
6189
+ return path ? ` - ${path}: ${issue.message}` : ` - ${issue.message}`;
6190
+ }).join("\n")}`;
6290
6191
  }
6291
-
6292
6192
  //#endregion
6293
6193
  //#region src/workspace/types.ts
6294
6194
  /**
@@ -6303,12 +6203,68 @@ function formatValidationErrors(error$1) {
6303
6203
  * }
6304
6204
  * ```
6305
6205
  */
6306
- function isWorkspaceConfig(config$1) {
6307
- if (typeof config$1 !== "object" || config$1 === null) return false;
6308
- if ("apps" in config$1 && typeof config$1.apps === "object") return true;
6309
- return "constructs" in config$1 && !("routes" in config$1) && !("envParser" in config$1);
6206
+ function isWorkspaceConfig(config) {
6207
+ if (typeof config !== "object" || config === null) return false;
6208
+ if ("apps" in config && typeof config.apps === "object") return true;
6209
+ return "constructs" in config && Object.keys(config).every((key) => WORKSPACE_KEYS.has(key));
6210
+ }
6211
+ /** Every top-level key a workspace config has — see `WorkspaceConfigSchema`. */
6212
+ const WORKSPACE_KEYS = /* @__PURE__ */ new Set([
6213
+ "name",
6214
+ "constructs",
6215
+ "apps",
6216
+ "shared",
6217
+ "deploy",
6218
+ "stages",
6219
+ "secrets",
6220
+ "state"
6221
+ ]);
6222
+ //#endregion
6223
+ //#region src/workspace/publicEnv.ts
6224
+ /**
6225
+ * All public env-var prefixes the toolbox understands.
6226
+ *
6227
+ * Used when resolving incoming var names back to a dependency
6228
+ * (e.g. `VITE_AUTH_URL` → `auth`). A var matching any of these
6229
+ * is considered safe to inline into a client bundle.
6230
+ */
6231
+ const PUBLIC_ENV_PREFIXES = [
6232
+ "NEXT_PUBLIC_",
6233
+ "VITE_",
6234
+ "EXPO_PUBLIC_"
6235
+ ];
6236
+ /**
6237
+ * Resolve the public env-var prefix that a frontend framework's bundler
6238
+ * inlines into client code at build time:
6239
+ *
6240
+ * - `nextjs` → `NEXT_PUBLIC_`
6241
+ * - `vite` → `VITE_`
6242
+ * - `tanstack-start` → `VITE_` (uses Vite under the hood)
6243
+ * - `expo` → `EXPO_PUBLIC_`
6244
+ * - `remix` → `''` (Remix exposes via loaders, no prefix convention)
6245
+ *
6246
+ * For backend frameworks or unspecified, falls back to `NEXT_PUBLIC_` to
6247
+ * preserve the historical default. Backend apps never read these vars
6248
+ * from a bundle, so the prefix only affects scaffolding/symmetry.
6249
+ */
6250
+ function getPublicEnvPrefix(framework) {
6251
+ switch (framework) {
6252
+ case "vite":
6253
+ case "tanstack-start": return "VITE_";
6254
+ case "expo": return "EXPO_PUBLIC_";
6255
+ case "remix": return "";
6256
+ case "nextjs": return "NEXT_PUBLIC_";
6257
+ default: return "NEXT_PUBLIC_";
6258
+ }
6259
+ }
6260
+ /**
6261
+ * Strip a known public prefix from a var name.
6262
+ * Returns the un-prefixed name, or `null` if no prefix matched.
6263
+ */
6264
+ function stripPublicPrefix(name) {
6265
+ for (const prefix of PUBLIC_ENV_PREFIXES) if (prefix && name.startsWith(prefix)) return name.slice(prefix.length);
6266
+ return null;
6310
6267
  }
6311
-
6312
6268
  //#endregion
6313
6269
  //#region src/workspace/index.ts
6314
6270
  /**
@@ -6354,51 +6310,47 @@ function validateDependencies(apps) {
6354
6310
  * dependencies: ['api'], // <- autocomplete shows 'api' | 'web'
6355
6311
  * },
6356
6312
  * },
6357
- * services: {
6358
- * db: true,
6359
- * cache: true,
6360
- * },
6361
6313
  * });
6362
6314
  *
6363
6315
  * // config.apps.api <- full type inference
6364
6316
  * // config.apps.foo <- TypeScript error
6365
6317
  * ```
6366
6318
  */
6367
- function defineWorkspace(config$1) {
6368
- if (config$1.apps) validateDependencies(config$1.apps);
6369
- const result = safeValidateWorkspaceConfig(config$1);
6319
+ function defineWorkspace(config) {
6320
+ if (config.apps) validateDependencies(config.apps);
6321
+ const result = safeValidateWorkspaceConfig(config);
6370
6322
  if (!result.success && result.error) throw new Error(formatValidationErrors(result.error));
6371
- return config$1;
6323
+ return config;
6372
6324
  }
6373
6325
  /**
6374
6326
  * Get the package name from package.json in the given directory.
6375
6327
  */
6376
6328
  function getPackageName(cwd) {
6377
6329
  try {
6378
- const pkg = require(`${cwd}/package.json`);
6379
- return pkg.name?.replace(/^@[^/]+\//, "");
6330
+ return require(`${cwd}/package.json`).name?.replace(/^@[^/]+\//, "");
6380
6331
  } catch {
6381
- return void 0;
6332
+ return;
6382
6333
  }
6383
6334
  }
6384
6335
  /**
6385
6336
  * Normalize a workspace configuration with resolved defaults.
6386
6337
  */
6387
- function normalizeWorkspace(config$1, cwd) {
6388
- const name = config$1.name ?? getPackageName(cwd) ?? (0, node_path.basename)(cwd);
6389
- const defaultTarget = config$1.deploy?.default ?? "dokploy";
6338
+ function normalizeWorkspace(config, cwd) {
6339
+ const name = config.name ?? getPackageName(cwd) ?? (0, node_path.basename)(cwd);
6340
+ const defaultTarget = config.deploy?.default ?? "dokploy";
6390
6341
  const normalizedApps = {};
6391
- for (const [appName, app] of Object.entries(config$1.apps ?? {})) normalizedApps[appName] = normalizeAppConfig(app, defaultTarget);
6342
+ for (const [appName, app] of Object.entries(config.apps ?? {})) normalizedApps[appName] = normalizeAppConfig(app, defaultTarget);
6392
6343
  return {
6393
6344
  name,
6394
6345
  root: cwd,
6395
- ...config$1.constructs ? { constructs: config$1.constructs } : {},
6346
+ ...config.constructs ? { constructs: config.constructs } : {},
6396
6347
  apps: normalizedApps,
6397
- services: config$1.services ?? {},
6398
- deploy: config$1.deploy ?? { default: "dokploy" },
6399
- shared: config$1.shared ?? { packages: ["packages/*"] },
6400
- secrets: config$1.secrets ?? {},
6401
- state: config$1.state
6348
+ deploy: config.deploy ?? { default: "dokploy" },
6349
+ shared: config.shared ?? { packages: ["packages/*"] },
6350
+ stages: validateStages(config.stages),
6351
+ secrets: config.secrets ?? {},
6352
+ state: config.state,
6353
+ test: config.test ?? {}
6402
6354
  };
6403
6355
  }
6404
6356
  /**
@@ -6420,63 +6372,53 @@ function normalizeAppConfig(app, defaultTarget) {
6420
6372
  * Wrap a single-app GkmConfig as a workspace.
6421
6373
  * This allows existing single-app configs to work seamlessly.
6422
6374
  */
6423
- function wrapSingleAppAsWorkspace(config$1, cwd) {
6424
- const name = config$1.name ?? getPackageName(cwd) ?? (0, node_path.basename)(cwd);
6425
- const normalizedServices = { ...config$1.services ?? {} };
6426
- const app = {
6427
- type: "backend",
6428
- path: ".",
6429
- port: (typeof config$1.providers?.server === "object" ? config$1.providers.server.port : void 0) ?? 3e3,
6430
- dependencies: [],
6431
- resolvedDeployTarget: config$1.deploy?.default ?? "dokploy",
6432
- constructs: config$1.constructs,
6433
- routes: config$1.routes,
6434
- functions: config$1.functions,
6435
- crons: config$1.crons,
6436
- queues: config$1.queues,
6437
- topics: config$1.topics,
6438
- subscribers: config$1.subscribers,
6439
- envParser: config$1.envParser,
6440
- logger: config$1.logger,
6441
- providers: config$1.providers,
6442
- hooks: config$1.hooks,
6443
- telescope: config$1.telescope,
6444
- studio: config$1.studio,
6445
- openapi: config$1.openapi,
6446
- runtime: config$1.runtime,
6447
- env: config$1.env
6448
- };
6375
+ function wrapSingleAppAsWorkspace(config, cwd) {
6449
6376
  return {
6450
- name,
6377
+ name: config.name ?? getPackageName(cwd) ?? (0, node_path.basename)(cwd),
6451
6378
  root: cwd,
6452
- apps: { api: app },
6453
- services: normalizedServices,
6379
+ apps: { api: {
6380
+ type: "backend",
6381
+ path: ".",
6382
+ port: (typeof config.providers?.server === "object" ? config.providers.server.port : void 0) ?? 3e3,
6383
+ dependencies: [],
6384
+ resolvedDeployTarget: config.deploy?.default ?? "dokploy",
6385
+ constructs: config.constructs,
6386
+ providers: config.providers,
6387
+ hooks: config.hooks,
6388
+ telescope: config.telescope,
6389
+ studio: config.studio,
6390
+ openapi: config.openapi,
6391
+ runtime: config.runtime,
6392
+ env: config.env
6393
+ } },
6454
6394
  deploy: {
6455
6395
  default: "dokploy",
6456
- ...config$1.deploy
6396
+ ...config.deploy
6457
6397
  },
6458
6398
  shared: { packages: [] },
6459
- secrets: {}
6399
+ stages: validateStages(config.stages),
6400
+ secrets: config.secrets ?? {},
6401
+ test: config.test ?? {}
6460
6402
  };
6461
6403
  }
6462
6404
  /**
6463
6405
  * Process a loaded configuration (either single-app or workspace).
6464
6406
  * Returns a normalized workspace in both cases.
6465
6407
  */
6466
- function processConfig(config$1, cwd) {
6467
- if (isWorkspaceConfig(config$1)) {
6468
- const result = safeValidateWorkspaceConfig(config$1);
6408
+ function processConfig(config, cwd) {
6409
+ if (isWorkspaceConfig(config)) {
6410
+ const result = safeValidateWorkspaceConfig(config);
6469
6411
  if (!result.success && result.error) throw new Error(formatValidationErrors(result.error));
6470
6412
  return {
6471
6413
  type: "workspace",
6472
- raw: config$1,
6473
- workspace: normalizeWorkspace(config$1, cwd)
6414
+ raw: config,
6415
+ workspace: normalizeWorkspace(config, cwd)
6474
6416
  };
6475
6417
  }
6476
6418
  return {
6477
6419
  type: "single",
6478
- raw: config$1,
6479
- workspace: wrapSingleAppAsWorkspace(config$1, cwd)
6420
+ raw: config,
6421
+ workspace: wrapSingleAppAsWorkspace(config, cwd)
6480
6422
  };
6481
6423
  }
6482
6424
  /**
@@ -6533,18 +6475,11 @@ function constructPatterns(routes) {
6533
6475
  */
6534
6476
  function getAppGkmConfig(workspace, appName) {
6535
6477
  const app = workspace.apps[appName];
6536
- if (!app || app.type !== "backend") return void 0;
6478
+ if (!app || app.type !== "backend") return;
6537
6479
  return {
6538
- services: workspace.services,
6480
+ ...workspace.deploy ? { deploy: workspace.deploy } : {},
6481
+ stages: workspace.stages,
6539
6482
  constructs: appConstructGlobs(workspace, appName),
6540
- routes: app.routes ?? "",
6541
- functions: app.functions,
6542
- crons: app.crons,
6543
- queues: app.queues,
6544
- topics: app.topics,
6545
- subscribers: app.subscribers,
6546
- envParser: app.envParser ?? "",
6547
- logger: app.logger ?? "",
6548
6483
  providers: app.providers,
6549
6484
  hooks: app.hooks,
6550
6485
  telescope: app.telescope,
@@ -6573,31 +6508,6 @@ function getAppBuildOrder(workspace) {
6573
6508
  return result;
6574
6509
  }
6575
6510
  /**
6576
- * Generate environment variables for app dependencies.
6577
- *
6578
- * Each dependency gets the un-prefixed `{DEP}_URL` (for server-side use) and,
6579
- * when the consuming app's framework supports a public-var prefix, also the
6580
- * prefixed form (e.g. `NEXT_PUBLIC_{DEP}_URL` for Next.js, `VITE_{DEP}_URL`
6581
- * for Vite/TanStack Start). The prefixed form is what gets bundled into the
6582
- * client at build time.
6583
- */
6584
- function getDependencyEnvVars(workspace, appName, urlPrefix = "http://localhost") {
6585
- const app = workspace.apps[appName];
6586
- if (!app) return {};
6587
- const env = {};
6588
- const publicPrefix = getPublicEnvPrefix(app.framework);
6589
- for (const depName of app.dependencies) {
6590
- const dep = workspace.apps[depName];
6591
- if (dep) {
6592
- const url$1 = `${urlPrefix}:${dep.port}`;
6593
- const envKey = `${depName.toUpperCase()}_URL`;
6594
- env[envKey] = url$1;
6595
- if (publicPrefix) env[`${publicPrefix}${envKey}`] = url$1;
6596
- }
6597
- }
6598
- return env;
6599
- }
6600
- /**
6601
6511
  * Resolve the Dokploy endpoint for a specific stage.
6602
6512
  *
6603
6513
  * Uses per-stage endpoint from `endpoints` if available,
@@ -6628,156 +6538,180 @@ function getEndpointForStage(dokployConfig, stage) {
6628
6538
  if (dokployConfig.endpoints?.[stage]) return dokployConfig.endpoints[stage];
6629
6539
  return dokployConfig.endpoint;
6630
6540
  }
6631
-
6632
6541
  //#endregion
6633
- Object.defineProperty(exports, 'PHASE_2_DEPLOY_TARGETS', {
6634
- enumerable: true,
6635
- get: function () {
6636
- return PHASE_2_DEPLOY_TARGETS;
6637
- }
6638
- });
6639
- Object.defineProperty(exports, 'PUBLIC_ENV_PREFIXES', {
6640
- enumerable: true,
6641
- get: function () {
6642
- return PUBLIC_ENV_PREFIXES;
6643
- }
6644
- });
6645
- Object.defineProperty(exports, 'SUPPORTED_DEPLOY_TARGETS', {
6646
- enumerable: true,
6647
- get: function () {
6648
- return SUPPORTED_DEPLOY_TARGETS;
6649
- }
6650
- });
6651
- Object.defineProperty(exports, 'WorkspaceConfigSchema', {
6652
- enumerable: true,
6653
- get: function () {
6654
- return WorkspaceConfigSchema;
6655
- }
6656
- });
6657
- Object.defineProperty(exports, 'allConstructGlobs', {
6658
- enumerable: true,
6659
- get: function () {
6660
- return allConstructGlobs;
6661
- }
6662
- });
6663
- Object.defineProperty(exports, 'appConstructGlobs', {
6664
- enumerable: true,
6665
- get: function () {
6666
- return appConstructGlobs;
6667
- }
6668
- });
6669
- Object.defineProperty(exports, 'constructPatterns', {
6670
- enumerable: true,
6671
- get: function () {
6672
- return constructPatterns;
6673
- }
6674
- });
6675
- Object.defineProperty(exports, 'defineWorkspace', {
6676
- enumerable: true,
6677
- get: function () {
6678
- return defineWorkspace;
6679
- }
6680
- });
6681
- Object.defineProperty(exports, 'formatValidationErrors', {
6682
- enumerable: true,
6683
- get: function () {
6684
- return formatValidationErrors;
6685
- }
6686
- });
6687
- Object.defineProperty(exports, 'getAppBuildOrder', {
6688
- enumerable: true,
6689
- get: function () {
6690
- return getAppBuildOrder;
6691
- }
6692
- });
6693
- Object.defineProperty(exports, 'getAppGkmConfig', {
6694
- enumerable: true,
6695
- get: function () {
6696
- return getAppGkmConfig;
6697
- }
6698
- });
6699
- Object.defineProperty(exports, 'getDependencyEnvVars', {
6700
- enumerable: true,
6701
- get: function () {
6702
- return getDependencyEnvVars;
6703
- }
6704
- });
6705
- Object.defineProperty(exports, 'getDeployTargetError', {
6706
- enumerable: true,
6707
- get: function () {
6708
- return getDeployTargetError;
6709
- }
6710
- });
6711
- Object.defineProperty(exports, 'getEndpointForStage', {
6712
- enumerable: true,
6713
- get: function () {
6714
- return getEndpointForStage;
6715
- }
6716
- });
6717
- Object.defineProperty(exports, 'getPublicEnvPrefix', {
6718
- enumerable: true,
6719
- get: function () {
6720
- return getPublicEnvPrefix;
6721
- }
6722
- });
6723
- Object.defineProperty(exports, 'isDeployTargetSupported', {
6724
- enumerable: true,
6725
- get: function () {
6726
- return isDeployTargetSupported;
6727
- }
6728
- });
6729
- Object.defineProperty(exports, 'isPhase2DeployTarget', {
6730
- enumerable: true,
6731
- get: function () {
6732
- return isPhase2DeployTarget;
6733
- }
6734
- });
6735
- Object.defineProperty(exports, 'isWorkspaceConfig', {
6736
- enumerable: true,
6737
- get: function () {
6738
- return isWorkspaceConfig;
6739
- }
6740
- });
6741
- Object.defineProperty(exports, 'normalizeWorkspace', {
6742
- enumerable: true,
6743
- get: function () {
6744
- return normalizeWorkspace;
6745
- }
6746
- });
6747
- Object.defineProperty(exports, 'processConfig', {
6748
- enumerable: true,
6749
- get: function () {
6750
- return processConfig;
6751
- }
6752
- });
6753
- Object.defineProperty(exports, 'safeValidateWorkspaceConfig', {
6754
- enumerable: true,
6755
- get: function () {
6756
- return safeValidateWorkspaceConfig;
6757
- }
6758
- });
6759
- Object.defineProperty(exports, 'stripPublicPrefix', {
6760
- enumerable: true,
6761
- get: function () {
6762
- return stripPublicPrefix;
6763
- }
6764
- });
6765
- Object.defineProperty(exports, 'validateWorkspaceConfig', {
6766
- enumerable: true,
6767
- get: function () {
6768
- return validateWorkspaceConfig;
6769
- }
6770
- });
6771
- Object.defineProperty(exports, 'workspaceConstructGlobs', {
6772
- enumerable: true,
6773
- get: function () {
6774
- return workspaceConstructGlobs;
6775
- }
6776
- });
6777
- Object.defineProperty(exports, 'wrapSingleAppAsWorkspace', {
6778
- enumerable: true,
6779
- get: function () {
6780
- return wrapSingleAppAsWorkspace;
6781
- }
6782
- });
6783
- //# sourceMappingURL=workspace-BcucjwvA.cjs.map
6542
+ Object.defineProperty(exports, "InvalidStages", {
6543
+ enumerable: true,
6544
+ get: function() {
6545
+ return InvalidStages;
6546
+ }
6547
+ });
6548
+ Object.defineProperty(exports, "PHASE_2_DEPLOY_TARGETS", {
6549
+ enumerable: true,
6550
+ get: function() {
6551
+ return PHASE_2_DEPLOY_TARGETS;
6552
+ }
6553
+ });
6554
+ Object.defineProperty(exports, "PUBLIC_ENV_PREFIXES", {
6555
+ enumerable: true,
6556
+ get: function() {
6557
+ return PUBLIC_ENV_PREFIXES;
6558
+ }
6559
+ });
6560
+ Object.defineProperty(exports, "SUPPORTED_DEPLOY_TARGETS", {
6561
+ enumerable: true,
6562
+ get: function() {
6563
+ return SUPPORTED_DEPLOY_TARGETS;
6564
+ }
6565
+ });
6566
+ Object.defineProperty(exports, "TEST_STAGE", {
6567
+ enumerable: true,
6568
+ get: function() {
6569
+ return TEST_STAGE;
6570
+ }
6571
+ });
6572
+ Object.defineProperty(exports, "WorkspaceConfigSchema", {
6573
+ enumerable: true,
6574
+ get: function() {
6575
+ return WorkspaceConfigSchema;
6576
+ }
6577
+ });
6578
+ Object.defineProperty(exports, "allConstructGlobs", {
6579
+ enumerable: true,
6580
+ get: function() {
6581
+ return allConstructGlobs;
6582
+ }
6583
+ });
6584
+ Object.defineProperty(exports, "appConstructGlobs", {
6585
+ enumerable: true,
6586
+ get: function() {
6587
+ return appConstructGlobs;
6588
+ }
6589
+ });
6590
+ Object.defineProperty(exports, "assertDeployedStage", {
6591
+ enumerable: true,
6592
+ get: function() {
6593
+ return assertDeployedStage;
6594
+ }
6595
+ });
6596
+ Object.defineProperty(exports, "constructPatterns", {
6597
+ enumerable: true,
6598
+ get: function() {
6599
+ return constructPatterns;
6600
+ }
6601
+ });
6602
+ Object.defineProperty(exports, "defineWorkspace", {
6603
+ enumerable: true,
6604
+ get: function() {
6605
+ return defineWorkspace;
6606
+ }
6607
+ });
6608
+ Object.defineProperty(exports, "deployedProblems", {
6609
+ enumerable: true,
6610
+ get: function() {
6611
+ return deployedProblems;
6612
+ }
6613
+ });
6614
+ Object.defineProperty(exports, "formatValidationErrors", {
6615
+ enumerable: true,
6616
+ get: function() {
6617
+ return formatValidationErrors;
6618
+ }
6619
+ });
6620
+ Object.defineProperty(exports, "getAppBuildOrder", {
6621
+ enumerable: true,
6622
+ get: function() {
6623
+ return getAppBuildOrder;
6624
+ }
6625
+ });
6626
+ Object.defineProperty(exports, "getAppGkmConfig", {
6627
+ enumerable: true,
6628
+ get: function() {
6629
+ return getAppGkmConfig;
6630
+ }
6631
+ });
6632
+ Object.defineProperty(exports, "getDeployTargetError", {
6633
+ enumerable: true,
6634
+ get: function() {
6635
+ return getDeployTargetError;
6636
+ }
6637
+ });
6638
+ Object.defineProperty(exports, "getEndpointForStage", {
6639
+ enumerable: true,
6640
+ get: function() {
6641
+ return getEndpointForStage;
6642
+ }
6643
+ });
6644
+ Object.defineProperty(exports, "getPublicEnvPrefix", {
6645
+ enumerable: true,
6646
+ get: function() {
6647
+ return getPublicEnvPrefix;
6648
+ }
6649
+ });
6650
+ Object.defineProperty(exports, "isDeployTargetSupported", {
6651
+ enumerable: true,
6652
+ get: function() {
6653
+ return isDeployTargetSupported;
6654
+ }
6655
+ });
6656
+ Object.defineProperty(exports, "isPhase2DeployTarget", {
6657
+ enumerable: true,
6658
+ get: function() {
6659
+ return isPhase2DeployTarget;
6660
+ }
6661
+ });
6662
+ Object.defineProperty(exports, "isWorkspaceConfig", {
6663
+ enumerable: true,
6664
+ get: function() {
6665
+ return isWorkspaceConfig;
6666
+ }
6667
+ });
6668
+ Object.defineProperty(exports, "normalizeWorkspace", {
6669
+ enumerable: true,
6670
+ get: function() {
6671
+ return normalizeWorkspace;
6672
+ }
6673
+ });
6674
+ Object.defineProperty(exports, "processConfig", {
6675
+ enumerable: true,
6676
+ get: function() {
6677
+ return processConfig;
6678
+ }
6679
+ });
6680
+ Object.defineProperty(exports, "safeValidateWorkspaceConfig", {
6681
+ enumerable: true,
6682
+ get: function() {
6683
+ return safeValidateWorkspaceConfig;
6684
+ }
6685
+ });
6686
+ Object.defineProperty(exports, "stageProblems", {
6687
+ enumerable: true,
6688
+ get: function() {
6689
+ return stageProblems;
6690
+ }
6691
+ });
6692
+ Object.defineProperty(exports, "stripPublicPrefix", {
6693
+ enumerable: true,
6694
+ get: function() {
6695
+ return stripPublicPrefix;
6696
+ }
6697
+ });
6698
+ Object.defineProperty(exports, "validateWorkspaceConfig", {
6699
+ enumerable: true,
6700
+ get: function() {
6701
+ return validateWorkspaceConfig;
6702
+ }
6703
+ });
6704
+ Object.defineProperty(exports, "workspaceConstructGlobs", {
6705
+ enumerable: true,
6706
+ get: function() {
6707
+ return workspaceConstructGlobs;
6708
+ }
6709
+ });
6710
+ Object.defineProperty(exports, "wrapSingleAppAsWorkspace", {
6711
+ enumerable: true,
6712
+ get: function() {
6713
+ return wrapSingleAppAsWorkspace;
6714
+ }
6715
+ });
6716
+
6717
+ //# sourceMappingURL=workspace-RYSYtHP7.cjs.map