@suveren/gateway 0.39.0 → 0.40.0

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 (751) hide show
  1. package/dist/mcp-server/http.mjs +1 -1
  2. package/dist/ui/assets/index-C-lA_7Lt.js +123 -0
  3. package/dist/ui/assets/index-DM9WXky8.css +1 -0
  4. package/dist/ui/index.html +2 -2
  5. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.d.ts.map +1 -1
  6. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js +10 -0
  7. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/mcp.js.map +1 -1
  8. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts +8 -8
  9. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/transport.d.ts.map +1 -1
  10. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.d.ts.map +1 -1
  11. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +10 -0
  12. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js.map +1 -1
  13. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts +8 -8
  14. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/transport.d.ts.map +1 -1
  15. package/node_modules/@modelcontextprotocol/sdk/package.json +1 -1
  16. package/node_modules/follow-redirects/README.md +27 -1
  17. package/node_modules/follow-redirects/index.js +1 -5
  18. package/node_modules/follow-redirects/package.json +1 -1
  19. package/node_modules/hono/README.md +2 -3
  20. package/node_modules/hono/dist/cjs/helper/css/common.js +8 -3
  21. package/node_modules/hono/dist/cjs/helper/css/index.js +1 -1
  22. package/node_modules/hono/dist/cjs/helper/route/index.js +3 -1
  23. package/node_modules/hono/dist/cjs/jsx/base.js +1 -1
  24. package/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +8 -0
  25. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +3 -1
  26. package/node_modules/hono/dist/cjs/router/trie-router/node.js +2 -2
  27. package/node_modules/hono/dist/cjs/utils/url.js +11 -6
  28. package/node_modules/hono/dist/helper/css/common.js +8 -3
  29. package/node_modules/hono/dist/helper/css/index.js +1 -1
  30. package/node_modules/hono/dist/helper/route/index.js +3 -1
  31. package/node_modules/hono/dist/jsx/base.js +1 -1
  32. package/node_modules/hono/dist/middleware/bearer-auth/index.js +8 -0
  33. package/node_modules/hono/dist/middleware/serve-static/index.js +3 -1
  34. package/node_modules/hono/dist/router/trie-router/node.js +2 -2
  35. package/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +1 -1
  36. package/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +1 -1
  37. package/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +1 -1
  38. package/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +1 -1
  39. package/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +1 -1
  40. package/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +1 -1
  41. package/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +1 -1
  42. package/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +1 -1
  43. package/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +1 -1
  44. package/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +1 -1
  45. package/node_modules/hono/dist/types/helper/testing/index.d.ts +2 -1
  46. package/node_modules/hono/dist/types/hono-base.d.ts +21 -9
  47. package/node_modules/hono/dist/types/index.d.ts +1 -1
  48. package/node_modules/hono/dist/types/jsx/components.d.ts +2 -2
  49. package/node_modules/hono/dist/types/jsx/context.d.ts +2 -2
  50. package/node_modules/hono/dist/types/jsx/dom/components.d.ts +2 -2
  51. package/node_modules/hono/dist/types/jsx/dom/css.d.ts +2 -2
  52. package/node_modules/hono/dist/types/jsx/streaming.d.ts +4 -3
  53. package/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +2 -1
  54. package/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +3 -3
  55. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +3 -3
  56. package/node_modules/hono/dist/types/utils/ipaddr.d.ts +1 -1
  57. package/node_modules/hono/dist/utils/url.js +11 -6
  58. package/node_modules/hono/package.json +1 -1
  59. package/node_modules/http-proxy-middleware/dist/handlers/fix-request-body.js +2 -2
  60. package/node_modules/http-proxy-middleware/package.json +1 -1
  61. package/node_modules/ip-address/dist/common.js +2 -2
  62. package/node_modules/ip-address/dist/common.js.map +1 -1
  63. package/node_modules/ip-address/package.json +2 -2
  64. package/node_modules/postcss/lib/input.js +1 -1
  65. package/node_modules/postcss/lib/lazy-result.js +1 -1
  66. package/node_modules/postcss/lib/no-work-result.js +1 -1
  67. package/node_modules/postcss/lib/node.js +2 -2
  68. package/node_modules/postcss/lib/processor.js +1 -1
  69. package/node_modules/postcss/lib/warning.js +1 -0
  70. package/node_modules/postcss/package.json +1 -1
  71. package/node_modules/zod/README.md +34 -24
  72. package/node_modules/zod/compile.cjs +96 -0
  73. package/node_modules/zod/compile.d.cts +1 -0
  74. package/node_modules/zod/compile.d.ts +1 -0
  75. package/node_modules/zod/compile.js +52 -0
  76. package/node_modules/zod/index.cjs +22 -3
  77. package/node_modules/zod/index.d.cts +3 -4
  78. package/node_modules/zod/index.d.ts +3 -4
  79. package/node_modules/zod/index.js +7 -4
  80. package/node_modules/zod/locales/index.cjs +36 -0
  81. package/node_modules/zod/locales/index.d.cts +1 -0
  82. package/node_modules/zod/locales/index.d.ts +1 -0
  83. package/node_modules/zod/locales/index.js +1 -0
  84. package/node_modules/zod/locales/package.json +7 -0
  85. package/node_modules/zod/mini/index.cjs +51 -0
  86. package/node_modules/zod/mini/index.d.cts +3 -0
  87. package/node_modules/zod/mini/index.d.ts +3 -0
  88. package/node_modules/zod/mini/index.js +3 -0
  89. package/node_modules/zod/mini/package.json +7 -0
  90. package/node_modules/zod/package.json +44 -15
  91. package/node_modules/zod/src/compile.ts +56 -0
  92. package/node_modules/zod/src/index.ts +7 -4
  93. package/node_modules/zod/src/locales/index.ts +1 -0
  94. package/node_modules/zod/src/mini/index.ts +3 -0
  95. package/node_modules/zod/src/v3/ZodError.ts +23 -13
  96. package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
  97. package/node_modules/zod/src/v3/tests/all-errors.test.ts +3 -3
  98. package/node_modules/zod/src/v3/tests/complex.test.ts +17 -3
  99. package/node_modules/zod/src/v3/tests/error.test.ts +35 -0
  100. package/node_modules/zod/src/v3/tests/function.test.ts +7 -3
  101. package/node_modules/zod/src/v3/tests/intersection.test.ts +18 -0
  102. package/node_modules/zod/src/v3/tests/language-server.test.ts +1 -2
  103. package/node_modules/zod/src/v3/tests/nan.test.ts +5 -2
  104. package/node_modules/zod/src/v3/tests/object.test.ts +10 -13
  105. package/node_modules/zod/src/v3/tests/partials.test.ts +3 -3
  106. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -80
  107. package/node_modules/zod/src/v3/tests/string.test.ts +8 -2
  108. package/node_modules/zod/src/v3/types.ts +8 -6
  109. package/node_modules/zod/src/v4/classic/checks.ts +3 -0
  110. package/node_modules/zod/src/v4/classic/compat.ts +30 -18
  111. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  112. package/node_modules/zod/src/v4/classic/errors.ts +61 -39
  113. package/node_modules/zod/src/v4/classic/external.ts +18 -11
  114. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  115. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  116. package/node_modules/zod/src/v4/classic/index.ts +2 -2
  117. package/node_modules/zod/src/v4/classic/iso.ts +2 -72
  118. package/node_modules/zod/src/v4/classic/parse.ts +57 -2
  119. package/node_modules/zod/src/v4/classic/schemas.ts +1258 -375
  120. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  121. package/node_modules/zod/src/v4/classic/tests/array.test.ts +35 -8
  122. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +192 -0
  123. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +36 -1
  124. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +43 -0
  125. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +357 -5
  126. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  127. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  128. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +27 -5
  129. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  130. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  131. package/node_modules/zod/src/v4/classic/tests/date.test.ts +67 -6
  132. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +37 -17
  133. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  134. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  135. package/node_modules/zod/src/v4/classic/tests/default.test.ts +142 -0
  136. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  137. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  138. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +333 -10
  139. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +20 -0
  140. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +394 -4
  141. package/node_modules/zod/src/v4/classic/tests/error.test.ts +403 -6
  142. package/node_modules/zod/src/v4/classic/tests/file.test.ts +9 -4
  143. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
  144. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  145. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  146. package/node_modules/zod/src/v4/classic/tests/function.test.ts +160 -37
  147. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  148. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  149. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  150. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  151. package/node_modules/zod/src/v4/classic/tests/index.test.ts +134 -5
  152. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  153. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +93 -0
  154. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +168 -5
  155. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  156. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  157. package/node_modules/zod/src/v4/classic/tests/json.test.ts +4 -3
  158. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +36 -1
  159. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +37 -1
  160. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  161. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  162. package/node_modules/zod/src/v4/classic/tests/map.test.ts +153 -0
  163. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +15 -0
  164. package/node_modules/zod/src/v4/classic/tests/number.test.ts +161 -7
  165. package/node_modules/zod/src/v4/classic/tests/object.test.ts +457 -14
  166. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  167. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +255 -12
  168. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +350 -0
  169. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +89 -5
  170. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +25 -5
  171. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +107 -0
  172. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  173. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +74 -21
  174. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +1 -1
  175. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  176. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +1 -69
  177. package/node_modules/zod/src/v4/classic/tests/record.test.ts +553 -10
  178. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +352 -1
  179. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  180. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +229 -68
  181. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +40 -1
  182. package/node_modules/zod/src/v4/classic/tests/set.test.ts +20 -3
  183. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +96 -0
  184. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +16 -0
  185. package/node_modules/zod/src/v4/classic/tests/string.test.ts +568 -9
  186. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +58 -0
  187. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +70 -16
  188. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  189. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3409 -990
  190. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +128 -0
  191. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +353 -5
  192. package/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -3
  193. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  194. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  195. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +2 -2
  196. package/node_modules/zod/src/v4/core/api.ts +442 -161
  197. package/node_modules/zod/src/v4/core/checks.ts +134 -151
  198. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  199. package/node_modules/zod/src/v4/core/core.ts +146 -50
  200. package/node_modules/zod/src/v4/core/doc.ts +18 -10
  201. package/node_modules/zod/src/v4/core/errors.ts +221 -102
  202. package/node_modules/zod/src/v4/core/index.ts +5 -1
  203. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  204. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  205. package/node_modules/zod/src/v4/core/json-schema.ts +9 -4
  206. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  207. package/node_modules/zod/src/v4/core/parse.ts +252 -37
  208. package/node_modules/zod/src/v4/core/regexes.ts +112 -30
  209. package/node_modules/zod/src/v4/core/registries.ts +19 -10
  210. package/node_modules/zod/src/v4/core/schemas.ts +1972 -588
  211. package/node_modules/zod/src/v4/core/standard-schema.ts +114 -19
  212. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  213. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  214. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  215. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  216. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  217. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  218. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  219. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  220. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  221. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  222. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +1 -1
  223. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  224. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  225. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  226. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  227. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  228. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  229. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  230. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  231. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +2 -2
  232. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  233. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  234. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  235. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  236. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  237. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  238. package/node_modules/zod/src/v4/core/to-json-schema.ts +706 -826
  239. package/node_modules/zod/src/v4/core/util.ts +675 -157
  240. package/node_modules/zod/src/v4/core/versions.ts +2 -2
  241. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  242. package/node_modules/zod/src/v4/index.ts +3 -3
  243. package/node_modules/zod/src/v4/locales/ar.ts +22 -27
  244. package/node_modules/zod/src/v4/locales/az.ts +22 -27
  245. package/node_modules/zod/src/v4/locales/be.ts +31 -27
  246. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  247. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  248. package/node_modules/zod/src/v4/locales/ca.ts +22 -28
  249. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  250. package/node_modules/zod/src/v4/locales/cs.ts +26 -45
  251. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  252. package/node_modules/zod/src/v4/locales/de.ts +24 -27
  253. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  254. package/node_modules/zod/src/v4/locales/en.ts +38 -29
  255. package/node_modules/zod/src/v4/locales/eo.ts +25 -27
  256. package/node_modules/zod/src/v4/locales/es.ts +53 -33
  257. package/node_modules/zod/src/v4/locales/fa.ts +24 -27
  258. package/node_modules/zod/src/v4/locales/fi.ts +22 -27
  259. package/node_modules/zod/src/v4/locales/fr-CA.ts +22 -27
  260. package/node_modules/zod/src/v4/locales/fr.ts +58 -43
  261. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  262. package/node_modules/zod/src/v4/locales/he.ts +208 -80
  263. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  264. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  265. package/node_modules/zod/src/v4/locales/hu.ts +24 -28
  266. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  267. package/node_modules/zod/src/v4/locales/id.ts +22 -27
  268. package/node_modules/zod/src/v4/locales/index.ts +24 -0
  269. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  270. package/node_modules/zod/src/v4/locales/it.ts +24 -28
  271. package/node_modules/zod/src/v4/locales/ja.ts +24 -27
  272. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  273. package/node_modules/zod/src/v4/locales/kh.ts +3 -122
  274. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  275. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  276. package/node_modules/zod/src/v4/locales/ko.ts +22 -27
  277. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  278. package/node_modules/zod/src/v4/locales/mk.ts +24 -28
  279. package/node_modules/zod/src/v4/locales/ms.ts +23 -27
  280. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  281. package/node_modules/zod/src/v4/locales/nl.ts +37 -37
  282. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  283. package/node_modules/zod/src/v4/locales/no.ts +26 -29
  284. package/node_modules/zod/src/v4/locales/ota.ts +25 -28
  285. package/node_modules/zod/src/v4/locales/pl.ts +24 -27
  286. package/node_modules/zod/src/v4/locales/ps.ts +24 -26
  287. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  288. package/node_modules/zod/src/v4/locales/pt.ts +107 -71
  289. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  290. package/node_modules/zod/src/v4/locales/ru.ts +31 -27
  291. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  292. package/node_modules/zod/src/v4/locales/sl.ts +24 -27
  293. package/node_modules/zod/src/v4/locales/sv.ts +26 -29
  294. package/node_modules/zod/src/v4/locales/ta.ts +25 -27
  295. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  296. package/node_modules/zod/src/v4/locales/th.ts +25 -27
  297. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  298. package/node_modules/zod/src/v4/locales/tr.ts +22 -27
  299. package/node_modules/zod/src/v4/locales/ua.ts +3 -122
  300. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  301. package/node_modules/zod/src/v4/locales/ur.ts +25 -27
  302. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  303. package/node_modules/zod/src/v4/locales/vi.ts +24 -27
  304. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  305. package/node_modules/zod/src/v4/locales/zh-CN.ts +25 -27
  306. package/node_modules/zod/src/v4/locales/zh-TW.ts +22 -27
  307. package/node_modules/zod/src/v4/mini/checks.ts +1 -0
  308. package/node_modules/zod/src/v4/mini/coerce.ts +5 -0
  309. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  310. package/node_modules/zod/src/v4/mini/external.ts +15 -3
  311. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  312. package/node_modules/zod/src/v4/mini/iso.ts +8 -4
  313. package/node_modules/zod/src/v4/mini/parse.ts +16 -1
  314. package/node_modules/zod/src/v4/mini/schemas.ts +586 -114
  315. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  316. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +63 -2
  317. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +43 -0
  318. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +14 -0
  319. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  320. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +12 -18
  321. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  322. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  323. package/node_modules/zod/src/v4/mini/tests/error.test.ts +24 -5
  324. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +7 -36
  325. package/node_modules/zod/src/v4/mini/tests/index.test.ts +281 -6
  326. package/node_modules/zod/src/v4/mini/tests/number.test.ts +15 -1
  327. package/node_modules/zod/src/v4/mini/tests/object.test.ts +116 -9
  328. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
  329. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +68 -2
  330. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  331. package/node_modules/zod/src/v4/mini/tests/string.test.ts +98 -1
  332. package/node_modules/zod/src/v4-mini/index.ts +3 -1
  333. package/node_modules/zod/v3/ZodError.cjs +42 -13
  334. package/node_modules/zod/v3/ZodError.d.cts +6 -6
  335. package/node_modules/zod/v3/ZodError.d.ts +6 -6
  336. package/node_modules/zod/v3/ZodError.js +23 -13
  337. package/node_modules/zod/v3/errors.cjs +19 -0
  338. package/node_modules/zod/v3/external.cjs +19 -0
  339. package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
  340. package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
  341. package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
  342. package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
  343. package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
  344. package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
  345. package/node_modules/zod/v3/helpers/util.cjs +19 -0
  346. package/node_modules/zod/v3/index.cjs +19 -0
  347. package/node_modules/zod/v3/locales/en.cjs +1 -0
  348. package/node_modules/zod/v3/locales/en.d.cts +1 -1
  349. package/node_modules/zod/v3/package.json +7 -0
  350. package/node_modules/zod/v3/standard-schema.cjs +19 -0
  351. package/node_modules/zod/v3/types.cjs +28 -5
  352. package/node_modules/zod/v3/types.d.cts +4 -1
  353. package/node_modules/zod/v3/types.d.ts +4 -1
  354. package/node_modules/zod/v3/types.js +9 -5
  355. package/node_modules/zod/v4/classic/checks.cjs +22 -1
  356. package/node_modules/zod/v4/classic/checks.d.cts +1 -1
  357. package/node_modules/zod/v4/classic/checks.d.ts +1 -1
  358. package/node_modules/zod/v4/classic/checks.js +1 -1
  359. package/node_modules/zod/v4/classic/coerce.cjs +19 -0
  360. package/node_modules/zod/v4/classic/compat.cjs +24 -1
  361. package/node_modules/zod/v4/classic/compat.d.cts +13 -11
  362. package/node_modules/zod/v4/classic/compat.d.ts +13 -11
  363. package/node_modules/zod/v4/classic/compat.js +4 -0
  364. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  365. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  366. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  367. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  368. package/node_modules/zod/v4/classic/errors.cjs +63 -28
  369. package/node_modules/zod/v4/classic/errors.d.cts +3 -4
  370. package/node_modules/zod/v4/classic/errors.d.ts +3 -4
  371. package/node_modules/zod/v4/classic/errors.js +45 -29
  372. package/node_modules/zod/v4/classic/external.cjs +55 -28
  373. package/node_modules/zod/v4/classic/external.d.cts +8 -2
  374. package/node_modules/zod/v4/classic/external.d.ts +8 -2
  375. package/node_modules/zod/v4/classic/external.js +7 -8
  376. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  377. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  378. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  379. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  380. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  381. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  382. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  383. package/node_modules/zod/v4/classic/in-out.js +36 -0
  384. package/node_modules/zod/v4/classic/index.cjs +21 -2
  385. package/node_modules/zod/v4/classic/index.d.cts +1 -2
  386. package/node_modules/zod/v4/classic/index.d.ts +1 -2
  387. package/node_modules/zod/v4/classic/index.js +2 -2
  388. package/node_modules/zod/v4/classic/iso.cjs +30 -22
  389. package/node_modules/zod/v4/classic/iso.d.cts +2 -17
  390. package/node_modules/zod/v4/classic/iso.d.ts +2 -17
  391. package/node_modules/zod/v4/classic/iso.js +2 -17
  392. package/node_modules/zod/v4/classic/package.json +7 -0
  393. package/node_modules/zod/v4/classic/parse.cjs +32 -1
  394. package/node_modules/zod/v4/classic/parse.d.cts +21 -0
  395. package/node_modules/zod/v4/classic/parse.d.ts +21 -0
  396. package/node_modules/zod/v4/classic/parse.js +10 -0
  397. package/node_modules/zod/v4/classic/schemas.cjs +805 -238
  398. package/node_modules/zod/v4/classic/schemas.d.cts +241 -55
  399. package/node_modules/zod/v4/classic/schemas.d.ts +241 -55
  400. package/node_modules/zod/v4/classic/schemas.js +766 -237
  401. package/node_modules/zod/v4/core/api.cjs +284 -54
  402. package/node_modules/zod/v4/core/api.d.cts +133 -82
  403. package/node_modules/zod/v4/core/api.d.ts +133 -82
  404. package/node_modules/zod/v4/core/api.js +255 -54
  405. package/node_modules/zod/v4/core/checks.cjs +100 -130
  406. package/node_modules/zod/v4/core/checks.d.cts +32 -16
  407. package/node_modules/zod/v4/core/checks.d.ts +32 -16
  408. package/node_modules/zod/v4/core/checks.js +80 -129
  409. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  410. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  411. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  412. package/node_modules/zod/v4/core/compile.js +1866 -0
  413. package/node_modules/zod/v4/core/core.cjs +120 -20
  414. package/node_modules/zod/v4/core/core.d.cts +40 -7
  415. package/node_modules/zod/v4/core/core.d.ts +40 -7
  416. package/node_modules/zod/v4/core/core.js +101 -21
  417. package/node_modules/zod/v4/core/doc.cjs +31 -9
  418. package/node_modules/zod/v4/core/doc.d.cts +4 -2
  419. package/node_modules/zod/v4/core/doc.d.ts +4 -2
  420. package/node_modules/zod/v4/core/doc.js +12 -9
  421. package/node_modules/zod/v4/core/errors.cjs +151 -60
  422. package/node_modules/zod/v4/core/errors.d.cts +41 -24
  423. package/node_modules/zod/v4/core/errors.d.ts +41 -24
  424. package/node_modules/zod/v4/core/errors.js +132 -60
  425. package/node_modules/zod/v4/core/index.cjs +28 -2
  426. package/node_modules/zod/v4/core/index.d.cts +5 -1
  427. package/node_modules/zod/v4/core/index.d.ts +5 -1
  428. package/node_modules/zod/v4/core/index.js +5 -1
  429. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  430. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  431. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  432. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  433. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  434. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  435. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  436. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  437. package/node_modules/zod/v4/core/json-schema.cjs +19 -0
  438. package/node_modules/zod/v4/core/json-schema.d.cts +6 -4
  439. package/node_modules/zod/v4/core/json-schema.d.ts +6 -4
  440. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  441. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  442. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  443. package/node_modules/zod/v4/core/memoizer.js +311 -0
  444. package/node_modules/zod/v4/core/package.json +7 -0
  445. package/node_modules/zod/v4/core/parse.cjs +183 -37
  446. package/node_modules/zod/v4/core/parse.d.cts +34 -7
  447. package/node_modules/zod/v4/core/parse.d.ts +34 -7
  448. package/node_modules/zod/v4/core/parse.js +154 -36
  449. package/node_modules/zod/v4/core/regexes.cjs +137 -31
  450. package/node_modules/zod/v4/core/regexes.d.cts +30 -2
  451. package/node_modules/zod/v4/core/regexes.d.ts +30 -2
  452. package/node_modules/zod/v4/core/regexes.js +90 -29
  453. package/node_modules/zod/v4/core/registries.cjs +26 -7
  454. package/node_modules/zod/v4/core/registries.d.cts +2 -2
  455. package/node_modules/zod/v4/core/registries.d.ts +2 -2
  456. package/node_modules/zod/v4/core/registries.js +9 -9
  457. package/node_modules/zod/v4/core/schemas.cjs +1373 -422
  458. package/node_modules/zod/v4/core/schemas.d.cts +276 -42
  459. package/node_modules/zod/v4/core/schemas.d.ts +276 -42
  460. package/node_modules/zod/v4/core/schemas.js +1341 -422
  461. package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
  462. package/node_modules/zod/v4/core/standard-schema.d.cts +90 -19
  463. package/node_modules/zod/v4/core/standard-schema.d.ts +90 -19
  464. package/node_modules/zod/v4/core/to-json-schema.cjs +628 -801
  465. package/node_modules/zod/v4/core/to-json-schema.d.cts +103 -37
  466. package/node_modules/zod/v4/core/to-json-schema.d.ts +103 -37
  467. package/node_modules/zod/v4/core/to-json-schema.js +602 -800
  468. package/node_modules/zod/v4/core/util.cjs +580 -155
  469. package/node_modules/zod/v4/core/util.d.cts +98 -1
  470. package/node_modules/zod/v4/core/util.d.ts +98 -1
  471. package/node_modules/zod/v4/core/util.js +536 -156
  472. package/node_modules/zod/v4/core/versions.cjs +21 -2
  473. package/node_modules/zod/v4/core/versions.d.cts +1 -1
  474. package/node_modules/zod/v4/core/versions.d.ts +1 -1
  475. package/node_modules/zod/v4/core/versions.js +2 -2
  476. package/node_modules/zod/v4/core/visit.cjs +214 -0
  477. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  478. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  479. package/node_modules/zod/v4/core/visit.js +169 -0
  480. package/node_modules/zod/v4/index.cjs +34 -5
  481. package/node_modules/zod/v4/index.d.cts +2 -2
  482. package/node_modules/zod/v4/index.d.ts +2 -2
  483. package/node_modules/zod/v4/index.js +3 -2
  484. package/node_modules/zod/v4/locales/ar.cjs +20 -24
  485. package/node_modules/zod/v4/locales/ar.d.cts +2 -1
  486. package/node_modules/zod/v4/locales/ar.js +19 -24
  487. package/node_modules/zod/v4/locales/az.cjs +20 -24
  488. package/node_modules/zod/v4/locales/az.d.cts +2 -1
  489. package/node_modules/zod/v4/locales/az.js +19 -24
  490. package/node_modules/zod/v4/locales/be.cjs +29 -24
  491. package/node_modules/zod/v4/locales/be.d.cts +2 -1
  492. package/node_modules/zod/v4/locales/be.js +28 -24
  493. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  494. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  495. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  496. package/node_modules/zod/v4/locales/bg.js +125 -0
  497. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  498. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  499. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  500. package/node_modules/zod/v4/locales/bn.js +113 -0
  501. package/node_modules/zod/v4/locales/ca.cjs +20 -25
  502. package/node_modules/zod/v4/locales/ca.d.cts +2 -1
  503. package/node_modules/zod/v4/locales/ca.js +19 -25
  504. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  505. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  506. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  507. package/node_modules/zod/v4/locales/ckb.js +133 -0
  508. package/node_modules/zod/v4/locales/cs.cjs +24 -42
  509. package/node_modules/zod/v4/locales/cs.d.cts +2 -1
  510. package/node_modules/zod/v4/locales/cs.js +23 -42
  511. package/node_modules/zod/v4/locales/da.cjs +147 -0
  512. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  513. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  514. package/node_modules/zod/v4/locales/da.js +120 -0
  515. package/node_modules/zod/v4/locales/de.cjs +22 -24
  516. package/node_modules/zod/v4/locales/de.d.cts +2 -1
  517. package/node_modules/zod/v4/locales/de.js +21 -24
  518. package/node_modules/zod/v4/locales/el.cjs +139 -0
  519. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  520. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  521. package/node_modules/zod/v4/locales/el.js +112 -0
  522. package/node_modules/zod/v4/locales/en.cjs +35 -28
  523. package/node_modules/zod/v4/locales/en.d.cts +2 -2
  524. package/node_modules/zod/v4/locales/en.d.ts +0 -1
  525. package/node_modules/zod/v4/locales/en.js +34 -26
  526. package/node_modules/zod/v4/locales/eo.cjs +23 -26
  527. package/node_modules/zod/v4/locales/eo.d.cts +2 -2
  528. package/node_modules/zod/v4/locales/eo.d.ts +0 -1
  529. package/node_modules/zod/v4/locales/eo.js +22 -24
  530. package/node_modules/zod/v4/locales/es.cjs +51 -31
  531. package/node_modules/zod/v4/locales/es.d.cts +2 -1
  532. package/node_modules/zod/v4/locales/es.js +50 -31
  533. package/node_modules/zod/v4/locales/fa.cjs +22 -24
  534. package/node_modules/zod/v4/locales/fa.d.cts +2 -1
  535. package/node_modules/zod/v4/locales/fa.js +21 -24
  536. package/node_modules/zod/v4/locales/fi.cjs +20 -24
  537. package/node_modules/zod/v4/locales/fi.d.cts +2 -1
  538. package/node_modules/zod/v4/locales/fi.js +19 -24
  539. package/node_modules/zod/v4/locales/fr-CA.cjs +20 -24
  540. package/node_modules/zod/v4/locales/fr-CA.d.cts +2 -1
  541. package/node_modules/zod/v4/locales/fr-CA.js +19 -24
  542. package/node_modules/zod/v4/locales/fr.cjs +53 -39
  543. package/node_modules/zod/v4/locales/fr.d.cts +2 -1
  544. package/node_modules/zod/v4/locales/fr.js +52 -39
  545. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  546. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  547. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  548. package/node_modules/zod/v4/locales/gu.js +113 -0
  549. package/node_modules/zod/v4/locales/he.cjs +183 -78
  550. package/node_modules/zod/v4/locales/he.d.cts +2 -1
  551. package/node_modules/zod/v4/locales/he.js +182 -78
  552. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  553. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  554. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  555. package/node_modules/zod/v4/locales/hi.js +111 -0
  556. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  557. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  558. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  559. package/node_modules/zod/v4/locales/hr.js +126 -0
  560. package/node_modules/zod/v4/locales/hu.cjs +22 -25
  561. package/node_modules/zod/v4/locales/hu.d.cts +2 -1
  562. package/node_modules/zod/v4/locales/hu.js +21 -25
  563. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  564. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  565. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  566. package/node_modules/zod/v4/locales/hy.js +158 -0
  567. package/node_modules/zod/v4/locales/id.cjs +20 -24
  568. package/node_modules/zod/v4/locales/id.d.cts +2 -1
  569. package/node_modules/zod/v4/locales/id.js +19 -24
  570. package/node_modules/zod/v4/locales/index.cjs +69 -1
  571. package/node_modules/zod/v4/locales/index.d.cts +24 -0
  572. package/node_modules/zod/v4/locales/index.d.ts +24 -0
  573. package/node_modules/zod/v4/locales/index.js +24 -0
  574. package/node_modules/zod/v4/locales/is.cjs +141 -0
  575. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  576. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  577. package/node_modules/zod/v4/locales/is.js +114 -0
  578. package/node_modules/zod/v4/locales/it.cjs +22 -25
  579. package/node_modules/zod/v4/locales/it.d.cts +2 -1
  580. package/node_modules/zod/v4/locales/it.js +21 -25
  581. package/node_modules/zod/v4/locales/ja.cjs +22 -24
  582. package/node_modules/zod/v4/locales/ja.d.cts +2 -1
  583. package/node_modules/zod/v4/locales/ja.js +21 -24
  584. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  585. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  586. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  587. package/node_modules/zod/v4/locales/ka.js +117 -0
  588. package/node_modules/zod/v4/locales/kh.cjs +6 -137
  589. package/node_modules/zod/v4/locales/kh.d.cts +2 -1
  590. package/node_modules/zod/v4/locales/kh.d.ts +1 -0
  591. package/node_modules/zod/v4/locales/kh.js +3 -115
  592. package/node_modules/zod/v4/locales/km.cjs +142 -0
  593. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  594. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  595. package/node_modules/zod/v4/locales/km.js +115 -0
  596. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  597. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  598. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  599. package/node_modules/zod/v4/locales/kn.js +116 -0
  600. package/node_modules/zod/v4/locales/ko.cjs +20 -24
  601. package/node_modules/zod/v4/locales/ko.d.cts +2 -1
  602. package/node_modules/zod/v4/locales/ko.js +19 -24
  603. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  604. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  605. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  606. package/node_modules/zod/v4/locales/lt.js +207 -0
  607. package/node_modules/zod/v4/locales/mk.cjs +22 -25
  608. package/node_modules/zod/v4/locales/mk.d.cts +2 -1
  609. package/node_modules/zod/v4/locales/mk.js +21 -25
  610. package/node_modules/zod/v4/locales/ms.cjs +21 -24
  611. package/node_modules/zod/v4/locales/ms.d.cts +2 -1
  612. package/node_modules/zod/v4/locales/ms.js +20 -24
  613. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  614. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  615. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  616. package/node_modules/zod/v4/locales/ne.js +111 -0
  617. package/node_modules/zod/v4/locales/nl.cjs +31 -32
  618. package/node_modules/zod/v4/locales/nl.d.cts +2 -1
  619. package/node_modules/zod/v4/locales/nl.js +30 -32
  620. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  621. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  622. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  623. package/node_modules/zod/v4/locales/nn.js +113 -0
  624. package/node_modules/zod/v4/locales/no.cjs +24 -26
  625. package/node_modules/zod/v4/locales/no.d.cts +2 -1
  626. package/node_modules/zod/v4/locales/no.js +23 -26
  627. package/node_modules/zod/v4/locales/ota.cjs +23 -25
  628. package/node_modules/zod/v4/locales/ota.d.cts +2 -1
  629. package/node_modules/zod/v4/locales/ota.js +22 -25
  630. package/node_modules/zod/v4/locales/package.json +7 -0
  631. package/node_modules/zod/v4/locales/pl.cjs +22 -24
  632. package/node_modules/zod/v4/locales/pl.d.cts +2 -1
  633. package/node_modules/zod/v4/locales/pl.js +21 -24
  634. package/node_modules/zod/v4/locales/ps.cjs +22 -24
  635. package/node_modules/zod/v4/locales/ps.d.cts +2 -1
  636. package/node_modules/zod/v4/locales/ps.js +21 -24
  637. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  638. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  639. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  640. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  641. package/node_modules/zod/v4/locales/pt.cjs +95 -68
  642. package/node_modules/zod/v4/locales/pt.d.cts +2 -1
  643. package/node_modules/zod/v4/locales/pt.js +94 -68
  644. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  645. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  646. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  647. package/node_modules/zod/v4/locales/ro.js +122 -0
  648. package/node_modules/zod/v4/locales/ru.cjs +29 -24
  649. package/node_modules/zod/v4/locales/ru.d.cts +2 -1
  650. package/node_modules/zod/v4/locales/ru.js +28 -24
  651. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  652. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  653. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  654. package/node_modules/zod/v4/locales/sk.js +116 -0
  655. package/node_modules/zod/v4/locales/sl.cjs +22 -24
  656. package/node_modules/zod/v4/locales/sl.d.cts +2 -1
  657. package/node_modules/zod/v4/locales/sl.js +21 -24
  658. package/node_modules/zod/v4/locales/sv.cjs +24 -26
  659. package/node_modules/zod/v4/locales/sv.d.cts +2 -1
  660. package/node_modules/zod/v4/locales/sv.js +23 -26
  661. package/node_modules/zod/v4/locales/ta.cjs +23 -24
  662. package/node_modules/zod/v4/locales/ta.d.cts +2 -1
  663. package/node_modules/zod/v4/locales/ta.js +22 -24
  664. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  665. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  666. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  667. package/node_modules/zod/v4/locales/tg.js +117 -0
  668. package/node_modules/zod/v4/locales/th.cjs +23 -24
  669. package/node_modules/zod/v4/locales/th.d.cts +2 -1
  670. package/node_modules/zod/v4/locales/th.js +22 -24
  671. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  672. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  673. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  674. package/node_modules/zod/v4/locales/tk.js +107 -0
  675. package/node_modules/zod/v4/locales/tr.cjs +20 -26
  676. package/node_modules/zod/v4/locales/tr.d.cts +2 -2
  677. package/node_modules/zod/v4/locales/tr.d.ts +0 -1
  678. package/node_modules/zod/v4/locales/tr.js +19 -24
  679. package/node_modules/zod/v4/locales/ua.cjs +6 -137
  680. package/node_modules/zod/v4/locales/ua.d.cts +2 -1
  681. package/node_modules/zod/v4/locales/ua.d.ts +1 -0
  682. package/node_modules/zod/v4/locales/ua.js +3 -115
  683. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  684. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  685. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  686. package/node_modules/zod/v4/locales/uk.js +113 -0
  687. package/node_modules/zod/v4/locales/ur.cjs +23 -24
  688. package/node_modules/zod/v4/locales/ur.d.cts +2 -1
  689. package/node_modules/zod/v4/locales/ur.js +22 -24
  690. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  691. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/uz.js +113 -0
  694. package/node_modules/zod/v4/locales/vi.cjs +22 -24
  695. package/node_modules/zod/v4/locales/vi.d.cts +2 -1
  696. package/node_modules/zod/v4/locales/vi.js +21 -24
  697. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  698. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  699. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  700. package/node_modules/zod/v4/locales/yo.js +112 -0
  701. package/node_modules/zod/v4/locales/zh-CN.cjs +23 -24
  702. package/node_modules/zod/v4/locales/zh-CN.d.cts +2 -1
  703. package/node_modules/zod/v4/locales/zh-CN.js +22 -24
  704. package/node_modules/zod/v4/locales/zh-TW.cjs +20 -24
  705. package/node_modules/zod/v4/locales/zh-TW.d.cts +2 -1
  706. package/node_modules/zod/v4/locales/zh-TW.js +19 -24
  707. package/node_modules/zod/v4/mini/checks.cjs +21 -1
  708. package/node_modules/zod/v4/mini/checks.d.cts +1 -1
  709. package/node_modules/zod/v4/mini/checks.d.ts +1 -1
  710. package/node_modules/zod/v4/mini/checks.js +1 -1
  711. package/node_modules/zod/v4/mini/coerce.cjs +24 -0
  712. package/node_modules/zod/v4/mini/coerce.js +5 -0
  713. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  714. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  715. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  716. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  717. package/node_modules/zod/v4/mini/external.cjs +36 -3
  718. package/node_modules/zod/v4/mini/external.d.cts +7 -2
  719. package/node_modules/zod/v4/mini/external.d.ts +7 -2
  720. package/node_modules/zod/v4/mini/external.js +4 -1
  721. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  722. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  723. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  724. package/node_modules/zod/v4/mini/in-out.js +36 -0
  725. package/node_modules/zod/v4/mini/index.cjs +19 -0
  726. package/node_modules/zod/v4/mini/iso.cjs +27 -4
  727. package/node_modules/zod/v4/mini/iso.js +8 -4
  728. package/node_modules/zod/v4/mini/package.json +7 -0
  729. package/node_modules/zod/v4/mini/parse.cjs +30 -1
  730. package/node_modules/zod/v4/mini/parse.d.cts +1 -1
  731. package/node_modules/zod/v4/mini/parse.d.ts +1 -1
  732. package/node_modules/zod/v4/mini/parse.js +1 -1
  733. package/node_modules/zod/v4/mini/schemas.cjs +390 -82
  734. package/node_modules/zod/v4/mini/schemas.d.cts +156 -32
  735. package/node_modules/zod/v4/mini/schemas.d.ts +156 -32
  736. package/node_modules/zod/v4/mini/schemas.js +329 -59
  737. package/node_modules/zod/v4/package.json +7 -0
  738. package/node_modules/zod/v4-mini/index.cjs +35 -1
  739. package/node_modules/zod/v4-mini/index.d.cts +3 -1
  740. package/node_modules/zod/v4-mini/index.d.ts +3 -1
  741. package/node_modules/zod/v4-mini/index.js +3 -1
  742. package/node_modules/zod/v4-mini/package.json +7 -0
  743. package/package.json +3 -3
  744. package/dist/ui/assets/index-DNNXeRpZ.js +0 -123
  745. package/dist/ui/assets/index-Osk4E49r.css +0 -1
  746. package/node_modules/zod/src/v4/core/config.ts +0 -15
  747. package/node_modules/zod/src/v4/core/function.ts +0 -176
  748. package/node_modules/zod/v4/core/function.cjs +0 -102
  749. package/node_modules/zod/v4/core/function.d.cts +0 -52
  750. package/node_modules/zod/v4/core/function.d.ts +0 -52
  751. package/node_modules/zod/v4/core/function.js +0 -75
@@ -42,11 +42,14 @@ exports._xid = _xid;
42
42
  exports._ksuid = _ksuid;
43
43
  exports._ipv4 = _ipv4;
44
44
  exports._ipv6 = _ipv6;
45
+ exports._mac = _mac;
45
46
  exports._cidrv4 = _cidrv4;
46
47
  exports._cidrv6 = _cidrv6;
47
48
  exports._base64 = _base64;
48
49
  exports._base64url = _base64url;
49
50
  exports._e164 = _e164;
51
+ exports._creditCard = _creditCard;
52
+ exports._iban = _iban;
50
53
  exports._jwt = _jwt;
51
54
  exports._isoDateTime = _isoDateTime;
52
55
  exports._isoDate = _isoDate;
@@ -103,14 +106,17 @@ exports._includes = _includes;
103
106
  exports._startsWith = _startsWith;
104
107
  exports._endsWith = _endsWith;
105
108
  exports._property = _property;
109
+ exports._properties = _properties;
106
110
  exports._mime = _mime;
107
111
  exports._overwrite = _overwrite;
108
112
  exports._normalize = _normalize;
109
113
  exports._trim = _trim;
110
114
  exports._toLowerCase = _toLowerCase;
111
115
  exports._toUpperCase = _toUpperCase;
116
+ exports._slugify = _slugify;
112
117
  exports._array = _array;
113
118
  exports._union = _union;
119
+ exports._xor = _xor;
114
120
  exports._discriminatedUnion = _discriminatedUnion;
115
121
  exports._intersection = _intersection;
116
122
  exports._tuple = _tuple;
@@ -135,24 +141,30 @@ exports._lazy = _lazy;
135
141
  exports._promise = _promise;
136
142
  exports._custom = _custom;
137
143
  exports._refine = _refine;
144
+ exports._superRefine = _superRefine;
145
+ exports._check = _check;
146
+ exports.describe = describe;
147
+ exports.meta = meta;
138
148
  exports._stringbool = _stringbool;
139
149
  exports._stringFormat = _stringFormat;
140
150
  const checks = __importStar(require("./checks.cjs"));
151
+ const registries = __importStar(require("./registries.cjs"));
141
152
  const schemas = __importStar(require("./schemas.cjs"));
142
153
  const util = __importStar(require("./util.cjs"));
154
+ function snapshotChecks(def) {
155
+ if (def.checks)
156
+ def.checks = [...def.checks];
157
+ return def;
158
+ }
159
+ // @__NO_SIDE_EFFECTS__
143
160
  function _string(Class, params) {
144
- return new Class({
145
- type: "string",
146
- ...util.normalizeParams(params),
147
- });
161
+ return new Class(snapshotChecks({ type: "string", ...util.normalizeParams(params) }));
148
162
  }
163
+ // @__NO_SIDE_EFFECTS__
149
164
  function _coercedString(Class, params) {
150
- return new Class({
151
- type: "string",
152
- coerce: true,
153
- ...util.normalizeParams(params),
154
- });
165
+ return new Class(snapshotChecks({ type: "string", coerce: true, ...util.normalizeParams(params) }));
155
166
  }
167
+ // @__NO_SIDE_EFFECTS__
156
168
  function _email(Class, params) {
157
169
  return new Class({
158
170
  type: "string",
@@ -162,6 +174,7 @@ function _email(Class, params) {
162
174
  ...util.normalizeParams(params),
163
175
  });
164
176
  }
177
+ // @__NO_SIDE_EFFECTS__
165
178
  function _guid(Class, params) {
166
179
  return new Class({
167
180
  type: "string",
@@ -171,6 +184,7 @@ function _guid(Class, params) {
171
184
  ...util.normalizeParams(params),
172
185
  });
173
186
  }
187
+ // @__NO_SIDE_EFFECTS__
174
188
  function _uuid(Class, params) {
175
189
  return new Class({
176
190
  type: "string",
@@ -180,6 +194,7 @@ function _uuid(Class, params) {
180
194
  ...util.normalizeParams(params),
181
195
  });
182
196
  }
197
+ // @__NO_SIDE_EFFECTS__
183
198
  function _uuidv4(Class, params) {
184
199
  return new Class({
185
200
  type: "string",
@@ -190,6 +205,7 @@ function _uuidv4(Class, params) {
190
205
  ...util.normalizeParams(params),
191
206
  });
192
207
  }
208
+ // @__NO_SIDE_EFFECTS__
193
209
  function _uuidv6(Class, params) {
194
210
  return new Class({
195
211
  type: "string",
@@ -200,6 +216,7 @@ function _uuidv6(Class, params) {
200
216
  ...util.normalizeParams(params),
201
217
  });
202
218
  }
219
+ // @__NO_SIDE_EFFECTS__
203
220
  function _uuidv7(Class, params) {
204
221
  return new Class({
205
222
  type: "string",
@@ -210,6 +227,7 @@ function _uuidv7(Class, params) {
210
227
  ...util.normalizeParams(params),
211
228
  });
212
229
  }
230
+ // @__NO_SIDE_EFFECTS__
213
231
  function _url(Class, params) {
214
232
  return new Class({
215
233
  type: "string",
@@ -219,6 +237,7 @@ function _url(Class, params) {
219
237
  ...util.normalizeParams(params),
220
238
  });
221
239
  }
240
+ // @__NO_SIDE_EFFECTS__
222
241
  function _emoji(Class, params) {
223
242
  return new Class({
224
243
  type: "string",
@@ -228,6 +247,7 @@ function _emoji(Class, params) {
228
247
  ...util.normalizeParams(params),
229
248
  });
230
249
  }
250
+ // @__NO_SIDE_EFFECTS__
231
251
  function _nanoid(Class, params) {
232
252
  return new Class({
233
253
  type: "string",
@@ -237,6 +257,12 @@ function _nanoid(Class, params) {
237
257
  ...util.normalizeParams(params),
238
258
  });
239
259
  }
260
+ /**
261
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
262
+ * (timestamps embedded in the id). Use {@link _cuid2} instead.
263
+ * See https://github.com/paralleldrive/cuid.
264
+ */
265
+ // @__NO_SIDE_EFFECTS__
240
266
  function _cuid(Class, params) {
241
267
  return new Class({
242
268
  type: "string",
@@ -246,6 +272,7 @@ function _cuid(Class, params) {
246
272
  ...util.normalizeParams(params),
247
273
  });
248
274
  }
275
+ // @__NO_SIDE_EFFECTS__
249
276
  function _cuid2(Class, params) {
250
277
  return new Class({
251
278
  type: "string",
@@ -255,6 +282,7 @@ function _cuid2(Class, params) {
255
282
  ...util.normalizeParams(params),
256
283
  });
257
284
  }
285
+ // @__NO_SIDE_EFFECTS__
258
286
  function _ulid(Class, params) {
259
287
  return new Class({
260
288
  type: "string",
@@ -264,6 +292,7 @@ function _ulid(Class, params) {
264
292
  ...util.normalizeParams(params),
265
293
  });
266
294
  }
295
+ // @__NO_SIDE_EFFECTS__
267
296
  function _xid(Class, params) {
268
297
  return new Class({
269
298
  type: "string",
@@ -273,6 +302,7 @@ function _xid(Class, params) {
273
302
  ...util.normalizeParams(params),
274
303
  });
275
304
  }
305
+ // @__NO_SIDE_EFFECTS__
276
306
  function _ksuid(Class, params) {
277
307
  return new Class({
278
308
  type: "string",
@@ -282,6 +312,7 @@ function _ksuid(Class, params) {
282
312
  ...util.normalizeParams(params),
283
313
  });
284
314
  }
315
+ // @__NO_SIDE_EFFECTS__
285
316
  function _ipv4(Class, params) {
286
317
  return new Class({
287
318
  type: "string",
@@ -291,6 +322,7 @@ function _ipv4(Class, params) {
291
322
  ...util.normalizeParams(params),
292
323
  });
293
324
  }
325
+ // @__NO_SIDE_EFFECTS__
294
326
  function _ipv6(Class, params) {
295
327
  return new Class({
296
328
  type: "string",
@@ -300,6 +332,17 @@ function _ipv6(Class, params) {
300
332
  ...util.normalizeParams(params),
301
333
  });
302
334
  }
335
+ // @__NO_SIDE_EFFECTS__
336
+ function _mac(Class, params) {
337
+ return new Class({
338
+ type: "string",
339
+ format: "mac",
340
+ check: "string_format",
341
+ abort: false,
342
+ ...util.normalizeParams(params),
343
+ });
344
+ }
345
+ // @__NO_SIDE_EFFECTS__
303
346
  function _cidrv4(Class, params) {
304
347
  return new Class({
305
348
  type: "string",
@@ -309,6 +352,7 @@ function _cidrv4(Class, params) {
309
352
  ...util.normalizeParams(params),
310
353
  });
311
354
  }
355
+ // @__NO_SIDE_EFFECTS__
312
356
  function _cidrv6(Class, params) {
313
357
  return new Class({
314
358
  type: "string",
@@ -318,6 +362,7 @@ function _cidrv6(Class, params) {
318
362
  ...util.normalizeParams(params),
319
363
  });
320
364
  }
365
+ // @__NO_SIDE_EFFECTS__
321
366
  function _base64(Class, params) {
322
367
  return new Class({
323
368
  type: "string",
@@ -327,6 +372,7 @@ function _base64(Class, params) {
327
372
  ...util.normalizeParams(params),
328
373
  });
329
374
  }
375
+ // @__NO_SIDE_EFFECTS__
330
376
  function _base64url(Class, params) {
331
377
  return new Class({
332
378
  type: "string",
@@ -336,6 +382,7 @@ function _base64url(Class, params) {
336
382
  ...util.normalizeParams(params),
337
383
  });
338
384
  }
385
+ // @__NO_SIDE_EFFECTS__
339
386
  function _e164(Class, params) {
340
387
  return new Class({
341
388
  type: "string",
@@ -345,6 +392,27 @@ function _e164(Class, params) {
345
392
  ...util.normalizeParams(params),
346
393
  });
347
394
  }
395
+ // @__NO_SIDE_EFFECTS__
396
+ function _creditCard(Class, params) {
397
+ return new Class({
398
+ type: "string",
399
+ format: "credit_card",
400
+ check: "string_format",
401
+ abort: false,
402
+ ...util.normalizeParams(params),
403
+ });
404
+ }
405
+ // @__NO_SIDE_EFFECTS__
406
+ function _iban(Class, params) {
407
+ return new Class({
408
+ type: "string",
409
+ format: "iban",
410
+ check: "string_format",
411
+ abort: false,
412
+ ...util.normalizeParams(params),
413
+ });
414
+ }
415
+ // @__NO_SIDE_EFFECTS__
348
416
  function _jwt(Class, params) {
349
417
  return new Class({
350
418
  type: "string",
@@ -361,6 +429,7 @@ exports.TimePrecision = {
361
429
  Millisecond: 3,
362
430
  Microsecond: 6,
363
431
  };
432
+ // @__NO_SIDE_EFFECTS__
364
433
  function _isoDateTime(Class, params) {
365
434
  return new Class({
366
435
  type: "string",
@@ -372,6 +441,7 @@ function _isoDateTime(Class, params) {
372
441
  ...util.normalizeParams(params),
373
442
  });
374
443
  }
444
+ // @__NO_SIDE_EFFECTS__
375
445
  function _isoDate(Class, params) {
376
446
  return new Class({
377
447
  type: "string",
@@ -380,6 +450,7 @@ function _isoDate(Class, params) {
380
450
  ...util.normalizeParams(params),
381
451
  });
382
452
  }
453
+ // @__NO_SIDE_EFFECTS__
383
454
  function _isoTime(Class, params) {
384
455
  return new Class({
385
456
  type: "string",
@@ -389,6 +460,7 @@ function _isoTime(Class, params) {
389
460
  ...util.normalizeParams(params),
390
461
  });
391
462
  }
463
+ // @__NO_SIDE_EFFECTS__
392
464
  function _isoDuration(Class, params) {
393
465
  return new Class({
394
466
  type: "string",
@@ -397,21 +469,15 @@ function _isoDuration(Class, params) {
397
469
  ...util.normalizeParams(params),
398
470
  });
399
471
  }
472
+ // @__NO_SIDE_EFFECTS__
400
473
  function _number(Class, params) {
401
- return new Class({
402
- type: "number",
403
- checks: [],
404
- ...util.normalizeParams(params),
405
- });
474
+ return new Class(snapshotChecks({ type: "number", checks: [], ...util.normalizeParams(params) }));
406
475
  }
476
+ // @__NO_SIDE_EFFECTS__
407
477
  function _coercedNumber(Class, params) {
408
- return new Class({
409
- type: "number",
410
- coerce: true,
411
- checks: [],
412
- ...util.normalizeParams(params),
413
- });
478
+ return new Class(snapshotChecks({ type: "number", coerce: true, checks: [], ...util.normalizeParams(params) }));
414
479
  }
480
+ // @__NO_SIDE_EFFECTS__
415
481
  function _int(Class, params) {
416
482
  return new Class({
417
483
  type: "number",
@@ -421,6 +487,7 @@ function _int(Class, params) {
421
487
  ...util.normalizeParams(params),
422
488
  });
423
489
  }
490
+ // @__NO_SIDE_EFFECTS__
424
491
  function _float32(Class, params) {
425
492
  return new Class({
426
493
  type: "number",
@@ -430,6 +497,7 @@ function _float32(Class, params) {
430
497
  ...util.normalizeParams(params),
431
498
  });
432
499
  }
500
+ // @__NO_SIDE_EFFECTS__
433
501
  function _float64(Class, params) {
434
502
  return new Class({
435
503
  type: "number",
@@ -439,6 +507,7 @@ function _float64(Class, params) {
439
507
  ...util.normalizeParams(params),
440
508
  });
441
509
  }
510
+ // @__NO_SIDE_EFFECTS__
442
511
  function _int32(Class, params) {
443
512
  return new Class({
444
513
  type: "number",
@@ -448,6 +517,7 @@ function _int32(Class, params) {
448
517
  ...util.normalizeParams(params),
449
518
  });
450
519
  }
520
+ // @__NO_SIDE_EFFECTS__
451
521
  function _uint32(Class, params) {
452
522
  return new Class({
453
523
  type: "number",
@@ -457,12 +527,14 @@ function _uint32(Class, params) {
457
527
  ...util.normalizeParams(params),
458
528
  });
459
529
  }
530
+ // @__NO_SIDE_EFFECTS__
460
531
  function _boolean(Class, params) {
461
532
  return new Class({
462
533
  type: "boolean",
463
534
  ...util.normalizeParams(params),
464
535
  });
465
536
  }
537
+ // @__NO_SIDE_EFFECTS__
466
538
  function _coercedBoolean(Class, params) {
467
539
  return new Class({
468
540
  type: "boolean",
@@ -470,12 +542,14 @@ function _coercedBoolean(Class, params) {
470
542
  ...util.normalizeParams(params),
471
543
  });
472
544
  }
545
+ // @__NO_SIDE_EFFECTS__
473
546
  function _bigint(Class, params) {
474
547
  return new Class({
475
548
  type: "bigint",
476
549
  ...util.normalizeParams(params),
477
550
  });
478
551
  }
552
+ // @__NO_SIDE_EFFECTS__
479
553
  function _coercedBigint(Class, params) {
480
554
  return new Class({
481
555
  type: "bigint",
@@ -483,6 +557,7 @@ function _coercedBigint(Class, params) {
483
557
  ...util.normalizeParams(params),
484
558
  });
485
559
  }
560
+ // @__NO_SIDE_EFFECTS__
486
561
  function _int64(Class, params) {
487
562
  return new Class({
488
563
  type: "bigint",
@@ -492,6 +567,7 @@ function _int64(Class, params) {
492
567
  ...util.normalizeParams(params),
493
568
  });
494
569
  }
570
+ // @__NO_SIDE_EFFECTS__
495
571
  function _uint64(Class, params) {
496
572
  return new Class({
497
573
  type: "bigint",
@@ -501,52 +577,61 @@ function _uint64(Class, params) {
501
577
  ...util.normalizeParams(params),
502
578
  });
503
579
  }
580
+ // @__NO_SIDE_EFFECTS__
504
581
  function _symbol(Class, params) {
505
582
  return new Class({
506
583
  type: "symbol",
507
584
  ...util.normalizeParams(params),
508
585
  });
509
586
  }
587
+ // @__NO_SIDE_EFFECTS__
510
588
  function _undefined(Class, params) {
511
589
  return new Class({
512
590
  type: "undefined",
513
591
  ...util.normalizeParams(params),
514
592
  });
515
593
  }
594
+ // @__NO_SIDE_EFFECTS__
516
595
  function _null(Class, params) {
517
596
  return new Class({
518
597
  type: "null",
519
598
  ...util.normalizeParams(params),
520
599
  });
521
600
  }
601
+ // @__NO_SIDE_EFFECTS__
522
602
  function _any(Class) {
523
603
  return new Class({
524
604
  type: "any",
525
605
  });
526
606
  }
607
+ // @__NO_SIDE_EFFECTS__
527
608
  function _unknown(Class) {
528
609
  return new Class({
529
610
  type: "unknown",
530
611
  });
531
612
  }
613
+ // @__NO_SIDE_EFFECTS__
532
614
  function _never(Class, params) {
533
615
  return new Class({
534
616
  type: "never",
535
617
  ...util.normalizeParams(params),
536
618
  });
537
619
  }
620
+ // @__NO_SIDE_EFFECTS__
538
621
  function _void(Class, params) {
539
622
  return new Class({
540
623
  type: "void",
541
624
  ...util.normalizeParams(params),
542
625
  });
543
626
  }
627
+ // @__NO_SIDE_EFFECTS__
544
628
  function _date(Class, params) {
545
629
  return new Class({
546
630
  type: "date",
547
631
  ...util.normalizeParams(params),
548
632
  });
549
633
  }
634
+ // @__NO_SIDE_EFFECTS__
550
635
  function _coercedDate(Class, params) {
551
636
  return new Class({
552
637
  type: "date",
@@ -554,12 +639,14 @@ function _coercedDate(Class, params) {
554
639
  ...util.normalizeParams(params),
555
640
  });
556
641
  }
642
+ // @__NO_SIDE_EFFECTS__
557
643
  function _nan(Class, params) {
558
644
  return new Class({
559
645
  type: "nan",
560
646
  ...util.normalizeParams(params),
561
647
  });
562
648
  }
649
+ // @__NO_SIDE_EFFECTS__
563
650
  function _lt(value, params) {
564
651
  return new checks.$ZodCheckLessThan({
565
652
  check: "less_than",
@@ -568,6 +655,7 @@ function _lt(value, params) {
568
655
  inclusive: false,
569
656
  });
570
657
  }
658
+ // @__NO_SIDE_EFFECTS__
571
659
  function _lte(value, params) {
572
660
  return new checks.$ZodCheckLessThan({
573
661
  check: "less_than",
@@ -576,6 +664,7 @@ function _lte(value, params) {
576
664
  inclusive: true,
577
665
  });
578
666
  }
667
+ // @__NO_SIDE_EFFECTS__
579
668
  function _gt(value, params) {
580
669
  return new checks.$ZodCheckGreaterThan({
581
670
  check: "greater_than",
@@ -584,6 +673,7 @@ function _gt(value, params) {
584
673
  inclusive: false,
585
674
  });
586
675
  }
676
+ // @__NO_SIDE_EFFECTS__
587
677
  function _gte(value, params) {
588
678
  return new checks.$ZodCheckGreaterThan({
589
679
  check: "greater_than",
@@ -592,21 +682,26 @@ function _gte(value, params) {
592
682
  inclusive: true,
593
683
  });
594
684
  }
685
+ // @__NO_SIDE_EFFECTS__
595
686
  function _positive(params) {
596
687
  return _gt(0, params);
597
688
  }
598
689
  // negative
690
+ // @__NO_SIDE_EFFECTS__
599
691
  function _negative(params) {
600
692
  return _lt(0, params);
601
693
  }
602
694
  // nonpositive
695
+ // @__NO_SIDE_EFFECTS__
603
696
  function _nonpositive(params) {
604
697
  return _lte(0, params);
605
698
  }
606
699
  // nonnegative
700
+ // @__NO_SIDE_EFFECTS__
607
701
  function _nonnegative(params) {
608
702
  return _gte(0, params);
609
703
  }
704
+ // @__NO_SIDE_EFFECTS__
610
705
  function _multipleOf(value, params) {
611
706
  return new checks.$ZodCheckMultipleOf({
612
707
  check: "multiple_of",
@@ -614,6 +709,7 @@ function _multipleOf(value, params) {
614
709
  value,
615
710
  });
616
711
  }
712
+ // @__NO_SIDE_EFFECTS__
617
713
  function _maxSize(maximum, params) {
618
714
  return new checks.$ZodCheckMaxSize({
619
715
  check: "max_size",
@@ -621,6 +717,7 @@ function _maxSize(maximum, params) {
621
717
  maximum,
622
718
  });
623
719
  }
720
+ // @__NO_SIDE_EFFECTS__
624
721
  function _minSize(minimum, params) {
625
722
  return new checks.$ZodCheckMinSize({
626
723
  check: "min_size",
@@ -628,6 +725,7 @@ function _minSize(minimum, params) {
628
725
  minimum,
629
726
  });
630
727
  }
728
+ // @__NO_SIDE_EFFECTS__
631
729
  function _size(size, params) {
632
730
  return new checks.$ZodCheckSizeEquals({
633
731
  check: "size_equals",
@@ -635,6 +733,7 @@ function _size(size, params) {
635
733
  size,
636
734
  });
637
735
  }
736
+ // @__NO_SIDE_EFFECTS__
638
737
  function _maxLength(maximum, params) {
639
738
  const ch = new checks.$ZodCheckMaxLength({
640
739
  check: "max_length",
@@ -643,6 +742,7 @@ function _maxLength(maximum, params) {
643
742
  });
644
743
  return ch;
645
744
  }
745
+ // @__NO_SIDE_EFFECTS__
646
746
  function _minLength(minimum, params) {
647
747
  return new checks.$ZodCheckMinLength({
648
748
  check: "min_length",
@@ -650,6 +750,7 @@ function _minLength(minimum, params) {
650
750
  minimum,
651
751
  });
652
752
  }
753
+ // @__NO_SIDE_EFFECTS__
653
754
  function _length(length, params) {
654
755
  return new checks.$ZodCheckLengthEquals({
655
756
  check: "length_equals",
@@ -657,6 +758,7 @@ function _length(length, params) {
657
758
  length,
658
759
  });
659
760
  }
761
+ // @__NO_SIDE_EFFECTS__
660
762
  function _regex(pattern, params) {
661
763
  return new checks.$ZodCheckRegex({
662
764
  check: "string_format",
@@ -665,6 +767,7 @@ function _regex(pattern, params) {
665
767
  pattern,
666
768
  });
667
769
  }
770
+ // @__NO_SIDE_EFFECTS__
668
771
  function _lowercase(params) {
669
772
  return new checks.$ZodCheckLowerCase({
670
773
  check: "string_format",
@@ -672,6 +775,7 @@ function _lowercase(params) {
672
775
  ...util.normalizeParams(params),
673
776
  });
674
777
  }
778
+ // @__NO_SIDE_EFFECTS__
675
779
  function _uppercase(params) {
676
780
  return new checks.$ZodCheckUpperCase({
677
781
  check: "string_format",
@@ -679,6 +783,7 @@ function _uppercase(params) {
679
783
  ...util.normalizeParams(params),
680
784
  });
681
785
  }
786
+ // @__NO_SIDE_EFFECTS__
682
787
  function _includes(includes, params) {
683
788
  return new checks.$ZodCheckIncludes({
684
789
  check: "string_format",
@@ -687,6 +792,7 @@ function _includes(includes, params) {
687
792
  includes,
688
793
  });
689
794
  }
795
+ // @__NO_SIDE_EFFECTS__
690
796
  function _startsWith(prefix, params) {
691
797
  return new checks.$ZodCheckStartsWith({
692
798
  check: "string_format",
@@ -695,6 +801,7 @@ function _startsWith(prefix, params) {
695
801
  prefix,
696
802
  });
697
803
  }
804
+ // @__NO_SIDE_EFFECTS__
698
805
  function _endsWith(suffix, params) {
699
806
  return new checks.$ZodCheckEndsWith({
700
807
  check: "string_format",
@@ -703,6 +810,7 @@ function _endsWith(suffix, params) {
703
810
  suffix,
704
811
  });
705
812
  }
813
+ // @__NO_SIDE_EFFECTS__
706
814
  function _property(property, schema, params) {
707
815
  return new checks.$ZodCheckProperty({
708
816
  check: "property",
@@ -711,6 +819,15 @@ function _property(property, schema, params) {
711
819
  ...util.normalizeParams(params),
712
820
  });
713
821
  }
822
+ // @__NO_SIDE_EFFECTS__
823
+ function _properties(shape, params) {
824
+ return new checks.$ZodCheckProperties({
825
+ check: "properties",
826
+ shape,
827
+ ...util.normalizeParams(params),
828
+ });
829
+ }
830
+ // @__NO_SIDE_EFFECTS__
714
831
  function _mime(types, params) {
715
832
  return new checks.$ZodCheckMimeType({
716
833
  check: "mime_type",
@@ -718,6 +835,7 @@ function _mime(types, params) {
718
835
  ...util.normalizeParams(params),
719
836
  });
720
837
  }
838
+ // @__NO_SIDE_EFFECTS__
721
839
  function _overwrite(tx) {
722
840
  return new checks.$ZodCheckOverwrite({
723
841
  check: "overwrite",
@@ -725,21 +843,31 @@ function _overwrite(tx) {
725
843
  });
726
844
  }
727
845
  // normalize
846
+ // @__NO_SIDE_EFFECTS__
728
847
  function _normalize(form) {
729
848
  return _overwrite((input) => input.normalize(form));
730
849
  }
731
850
  // trim
851
+ // @__NO_SIDE_EFFECTS__
732
852
  function _trim() {
733
853
  return _overwrite((input) => input.trim());
734
854
  }
735
855
  // toLowerCase
856
+ // @__NO_SIDE_EFFECTS__
736
857
  function _toLowerCase() {
737
858
  return _overwrite((input) => input.toLowerCase());
738
859
  }
739
860
  // toUpperCase
861
+ // @__NO_SIDE_EFFECTS__
740
862
  function _toUpperCase() {
741
863
  return _overwrite((input) => input.toUpperCase());
742
864
  }
865
+ // slugify
866
+ // @__NO_SIDE_EFFECTS__
867
+ function _slugify() {
868
+ return _overwrite((input) => util.slugify(input));
869
+ }
870
+ // @__NO_SIDE_EFFECTS__
743
871
  function _array(Class, element, params) {
744
872
  return new Class({
745
873
  type: "array",
@@ -750,6 +878,7 @@ function _array(Class, element, params) {
750
878
  ...util.normalizeParams(params),
751
879
  });
752
880
  }
881
+ // @__NO_SIDE_EFFECTS__
753
882
  function _union(Class, options, params) {
754
883
  return new Class({
755
884
  type: "union",
@@ -757,14 +886,24 @@ function _union(Class, options, params) {
757
886
  ...util.normalizeParams(params),
758
887
  });
759
888
  }
760
- function _discriminatedUnion(Class, discriminator, options, params) {
889
+ function _xor(Class, options, params) {
761
890
  return new Class({
762
891
  type: "union",
763
892
  options,
893
+ inclusive: false,
894
+ ...util.normalizeParams(params),
895
+ });
896
+ }
897
+ // @__NO_SIDE_EFFECTS__
898
+ function _discriminatedUnion(Class, discriminator, options, params) {
899
+ return new Class({
900
+ type: "union",
901
+ options: options,
764
902
  discriminator,
765
903
  ...util.normalizeParams(params),
766
904
  });
767
905
  }
906
+ // @__NO_SIDE_EFFECTS__
768
907
  function _intersection(Class, left, right) {
769
908
  return new Class({
770
909
  type: "intersection",
@@ -777,6 +916,7 @@ function _intersection(Class, left, right) {
777
916
  // items: [],
778
917
  // params?: string | $ZodTupleParams
779
918
  // ): schemas.$ZodTuple<[], null>;
919
+ // @__NO_SIDE_EFFECTS__
780
920
  function _tuple(Class, items, _paramsOrRest, _params) {
781
921
  const hasRest = _paramsOrRest instanceof schemas.$ZodType;
782
922
  const params = hasRest ? _params : _paramsOrRest;
@@ -788,6 +928,7 @@ function _tuple(Class, items, _paramsOrRest, _params) {
788
928
  ...util.normalizeParams(params),
789
929
  });
790
930
  }
931
+ // @__NO_SIDE_EFFECTS__
791
932
  function _record(Class, keyType, valueType, params) {
792
933
  return new Class({
793
934
  type: "record",
@@ -796,6 +937,7 @@ function _record(Class, keyType, valueType, params) {
796
937
  ...util.normalizeParams(params),
797
938
  });
798
939
  }
940
+ // @__NO_SIDE_EFFECTS__
799
941
  function _map(Class, keyType, valueType, params) {
800
942
  return new Class({
801
943
  type: "map",
@@ -804,6 +946,7 @@ function _map(Class, keyType, valueType, params) {
804
946
  ...util.normalizeParams(params),
805
947
  });
806
948
  }
949
+ // @__NO_SIDE_EFFECTS__
807
950
  function _set(Class, valueType, params) {
808
951
  return new Class({
809
952
  type: "set",
@@ -811,6 +954,7 @@ function _set(Class, valueType, params) {
811
954
  ...util.normalizeParams(params),
812
955
  });
813
956
  }
957
+ // @__NO_SIDE_EFFECTS__
814
958
  function _enum(Class, values, params) {
815
959
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
816
960
  // if (Array.isArray(values)) {
@@ -830,6 +974,7 @@ function _enum(Class, values, params) {
830
974
  ...util.normalizeParams(params),
831
975
  });
832
976
  }
977
+ // @__NO_SIDE_EFFECTS__
833
978
  /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
834
979
  *
835
980
  * ```ts
@@ -844,6 +989,7 @@ function _nativeEnum(Class, entries, params) {
844
989
  ...util.normalizeParams(params),
845
990
  });
846
991
  }
992
+ // @__NO_SIDE_EFFECTS__
847
993
  function _literal(Class, value, params) {
848
994
  return new Class({
849
995
  type: "literal",
@@ -851,39 +997,45 @@ function _literal(Class, value, params) {
851
997
  ...util.normalizeParams(params),
852
998
  });
853
999
  }
1000
+ // @__NO_SIDE_EFFECTS__
854
1001
  function _file(Class, params) {
855
1002
  return new Class({
856
1003
  type: "file",
857
1004
  ...util.normalizeParams(params),
858
1005
  });
859
1006
  }
1007
+ // @__NO_SIDE_EFFECTS__
860
1008
  function _transform(Class, fn) {
861
1009
  return new Class({
862
1010
  type: "transform",
863
1011
  transform: fn,
864
1012
  });
865
1013
  }
1014
+ // @__NO_SIDE_EFFECTS__
866
1015
  function _optional(Class, innerType) {
867
1016
  return new Class({
868
1017
  type: "optional",
869
1018
  innerType,
870
1019
  });
871
1020
  }
1021
+ // @__NO_SIDE_EFFECTS__
872
1022
  function _nullable(Class, innerType) {
873
1023
  return new Class({
874
1024
  type: "nullable",
875
1025
  innerType,
876
1026
  });
877
1027
  }
1028
+ // @__NO_SIDE_EFFECTS__
878
1029
  function _default(Class, innerType, defaultValue) {
879
1030
  return new Class({
880
1031
  type: "default",
881
1032
  innerType,
882
1033
  get defaultValue() {
883
- return typeof defaultValue === "function" ? defaultValue() : defaultValue;
1034
+ return typeof defaultValue === "function" ? defaultValue() : util.shallowClone(defaultValue);
884
1035
  },
885
1036
  });
886
1037
  }
1038
+ // @__NO_SIDE_EFFECTS__
887
1039
  function _nonoptional(Class, innerType, params) {
888
1040
  return new Class({
889
1041
  type: "nonoptional",
@@ -891,19 +1043,22 @@ function _nonoptional(Class, innerType, params) {
891
1043
  ...util.normalizeParams(params),
892
1044
  });
893
1045
  }
1046
+ // @__NO_SIDE_EFFECTS__
894
1047
  function _success(Class, innerType) {
895
1048
  return new Class({
896
1049
  type: "success",
897
1050
  innerType,
898
1051
  });
899
1052
  }
1053
+ // @__NO_SIDE_EFFECTS__
900
1054
  function _catch(Class, innerType, catchValue) {
901
1055
  return new Class({
902
1056
  type: "catch",
903
1057
  innerType,
904
- catchValue: (typeof catchValue === "function" ? catchValue : () => catchValue),
1058
+ catchValue: (typeof catchValue === "function" ? catchValue : util.constantCatch(catchValue)),
905
1059
  });
906
1060
  }
1061
+ // @__NO_SIDE_EFFECTS__
907
1062
  function _pipe(Class, in_, out) {
908
1063
  return new Class({
909
1064
  type: "pipe",
@@ -911,12 +1066,14 @@ function _pipe(Class, in_, out) {
911
1066
  out,
912
1067
  });
913
1068
  }
1069
+ // @__NO_SIDE_EFFECTS__
914
1070
  function _readonly(Class, innerType) {
915
1071
  return new Class({
916
1072
  type: "readonly",
917
1073
  innerType,
918
1074
  });
919
1075
  }
1076
+ // @__NO_SIDE_EFFECTS__
920
1077
  function _templateLiteral(Class, parts, params) {
921
1078
  return new Class({
922
1079
  type: "template_literal",
@@ -924,18 +1081,21 @@ function _templateLiteral(Class, parts, params) {
924
1081
  ...util.normalizeParams(params),
925
1082
  });
926
1083
  }
1084
+ // @__NO_SIDE_EFFECTS__
927
1085
  function _lazy(Class, getter) {
928
1086
  return new Class({
929
1087
  type: "lazy",
930
1088
  getter,
931
1089
  });
932
1090
  }
1091
+ // @__NO_SIDE_EFFECTS__
933
1092
  function _promise(Class, innerType) {
934
1093
  return new Class({
935
1094
  type: "promise",
936
1095
  innerType,
937
1096
  });
938
1097
  }
1098
+ // @__NO_SIDE_EFFECTS__
939
1099
  function _custom(Class, fn, _params) {
940
1100
  const norm = util.normalizeParams(_params);
941
1101
  norm.abort ?? (norm.abort = true); // default to abort:false
@@ -947,14 +1107,8 @@ function _custom(Class, fn, _params) {
947
1107
  });
948
1108
  return schema;
949
1109
  }
950
- // export function _refine<T>(
951
- // Class: util.SchemaClass<schemas.$ZodCustom>,
952
- // fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
953
- // _params: string | $ZodCustomParams = {}
954
- // ): checks.$ZodCheck<T> {
955
- // return _custom(Class, fn, _params);
956
- // }
957
1110
  // same as _custom but defaults to abort:false
1111
+ // @__NO_SIDE_EFFECTS__
958
1112
  function _refine(Class, fn, _params) {
959
1113
  const schema = new Class({
960
1114
  type: "custom",
@@ -964,6 +1118,64 @@ function _refine(Class, fn, _params) {
964
1118
  });
965
1119
  return schema;
966
1120
  }
1121
+ // @__NO_SIDE_EFFECTS__
1122
+ function _superRefine(fn, params) {
1123
+ const ch = _check((payload) => {
1124
+ payload.addIssue = (issue) => {
1125
+ if (typeof issue === "string") {
1126
+ payload.issues.push(util.issue(issue, payload.value, ch._zod.def));
1127
+ }
1128
+ else {
1129
+ // for Zod 3 backwards compatibility
1130
+ const _issue = issue;
1131
+ if (_issue.fatal)
1132
+ _issue.continue = false;
1133
+ _issue.code ?? (_issue.code = "custom");
1134
+ if (!("input" in _issue))
1135
+ _issue.input = payload.value;
1136
+ _issue.inst ?? (_issue.inst = ch);
1137
+ _issue.continue ?? (_issue.continue = !ch._zod.def.abort); // abort is always undefined, so this is always true...
1138
+ payload.issues.push(util.issue(_issue));
1139
+ }
1140
+ };
1141
+ return fn(payload.value, payload);
1142
+ }, params);
1143
+ return ch;
1144
+ }
1145
+ // @__NO_SIDE_EFFECTS__
1146
+ function _check(fn, params) {
1147
+ const ch = new checks.$ZodCheck({
1148
+ check: "custom",
1149
+ ...util.normalizeParams(params),
1150
+ });
1151
+ ch._zod.check = fn;
1152
+ return ch;
1153
+ }
1154
+ // @__NO_SIDE_EFFECTS__
1155
+ function describe(description) {
1156
+ const ch = new checks.$ZodCheck({ check: "describe" });
1157
+ ch._zod.onattach = [
1158
+ (inst) => {
1159
+ const existing = registries.globalRegistry.get(inst) ?? {};
1160
+ registries.globalRegistry.add(inst, { ...existing, description });
1161
+ },
1162
+ ];
1163
+ ch._zod.check = () => { }; // no-op check
1164
+ return ch;
1165
+ }
1166
+ // @__NO_SIDE_EFFECTS__
1167
+ function meta(metadata) {
1168
+ const ch = new checks.$ZodCheck({ check: "meta" });
1169
+ ch._zod.onattach = [
1170
+ (inst) => {
1171
+ const existing = registries.globalRegistry.get(inst) ?? {};
1172
+ registries.globalRegistry.add(inst, { ...existing, ...metadata });
1173
+ },
1174
+ ];
1175
+ ch._zod.check = () => { }; // no-op check
1176
+ return ch;
1177
+ }
1178
+ // @__NO_SIDE_EFFECTS__
967
1179
  function _stringbool(Classes, _params) {
968
1180
  const params = util.normalizeParams(_params);
969
1181
  let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
@@ -974,13 +1186,16 @@ function _stringbool(Classes, _params) {
974
1186
  }
975
1187
  const truthySet = new Set(truthyArray);
976
1188
  const falsySet = new Set(falsyArray);
977
- const _Pipe = Classes.Pipe ?? schemas.$ZodPipe;
1189
+ const _Codec = Classes.Codec ?? schemas.$ZodCodec;
978
1190
  const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;
979
1191
  const _String = Classes.String ?? schemas.$ZodString;
980
- const _Transform = Classes.Transform ?? schemas.$ZodTransform;
981
- const tx = new _Transform({
982
- type: "transform",
983
- transform: (input, payload) => {
1192
+ const stringSchema = new _String({ type: "string", error: params.error });
1193
+ const booleanSchema = new _Boolean({ type: "boolean", error: params.error });
1194
+ const codec = new _Codec({
1195
+ type: "pipe",
1196
+ in: stringSchema,
1197
+ out: booleanSchema,
1198
+ transform: ((input, payload) => {
984
1199
  let data = input;
985
1200
  if (params.case !== "sensitive")
986
1201
  data = data.toLowerCase();
@@ -996,35 +1211,31 @@ function _stringbool(Classes, _params) {
996
1211
  expected: "stringbool",
997
1212
  values: [...truthySet, ...falsySet],
998
1213
  input: payload.value,
999
- inst: tx,
1214
+ inst: codec,
1215
+ continue: false,
1000
1216
  });
1001
1217
  return {};
1002
1218
  }
1003
- },
1004
- error: params.error,
1005
- });
1006
- // params.error;
1007
- const innerPipe = new _Pipe({
1008
- type: "pipe",
1009
- in: new _String({ type: "string", error: params.error }),
1010
- out: tx,
1011
- error: params.error,
1012
- });
1013
- const outerPipe = new _Pipe({
1014
- type: "pipe",
1015
- in: innerPipe,
1016
- out: new _Boolean({
1017
- type: "boolean",
1018
- error: params.error,
1219
+ }),
1220
+ reverseTransform: ((input, _payload) => {
1221
+ if (input === true) {
1222
+ return truthyArray[0] || "true";
1223
+ }
1224
+ else {
1225
+ return falsyArray[0] || "false";
1226
+ }
1019
1227
  }),
1020
1228
  error: params.error,
1021
1229
  });
1022
- return outerPipe;
1230
+ codec._zod.bag.truthy = truthyArray;
1231
+ codec._zod.bag.falsy = falsyArray;
1232
+ codec._zod.bag.case = params.case ?? "insensitive";
1233
+ return codec;
1023
1234
  }
1235
+ // @__NO_SIDE_EFFECTS__
1024
1236
  function _stringFormat(Class, format, fnOrRegex, _params = {}) {
1025
1237
  const params = util.normalizeParams(_params);
1026
1238
  const def = {
1027
- ...util.normalizeParams(_params),
1028
1239
  check: "string_format",
1029
1240
  type: "string",
1030
1241
  format,
@@ -1037,3 +1248,22 @@ function _stringFormat(Class, format, fnOrRegex, _params = {}) {
1037
1248
  const inst = new Class(def);
1038
1249
  return inst;
1039
1250
  }
1251
+
1252
+ // seal-cjs-exports
1253
+ (function () {
1254
+ var keys = Object.getOwnPropertyNames(exports);
1255
+ for (var i = 0; i < keys.length; i++) {
1256
+ var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
1257
+ if (!desc || !desc.get || !desc.configurable) continue;
1258
+ var value;
1259
+ try {
1260
+ value = desc.get();
1261
+ } catch (e) {
1262
+ continue;
1263
+ }
1264
+ // a circular require may not have settled this one yet, so leave it live
1265
+ if (value === undefined) continue;
1266
+ Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
1267
+ }
1268
+ Object.freeze(exports);
1269
+ })();