@openclaw/firecrawl-plugin 2026.9.8 → 2026.10.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (850) hide show
  1. package/dist/.setup/{firecrawl-client-S2gdb9zo.mjs → firecrawl-client-Bqyr6x90.mjs} +58 -104
  2. package/dist/.setup/{firecrawl-fetch-provider-Cq_h8okw.mjs → firecrawl-fetch-provider-CcYAp_u6.mjs} +1 -1
  3. package/dist/.setup/{firecrawl-search-provider-DzEHIoq7.mjs → firecrawl-search-provider-lAiZ3IJ5.mjs} +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/index.js +17 -28
  6. package/dist/web-fetch-contract-api.js +1 -1
  7. package/dist/web-fetch-provider.js +1 -1
  8. package/dist/web-search-contract-api.js +1 -1
  9. package/dist/web-search-provider.js +1 -1
  10. package/package.json +6 -8
  11. package/node_modules/zod/LICENSE +0 -21
  12. package/node_modules/zod/README.md +0 -218
  13. package/node_modules/zod/compile.cjs +0 -96
  14. package/node_modules/zod/compile.d.cts +0 -1
  15. package/node_modules/zod/compile.d.ts +0 -1
  16. package/node_modules/zod/compile.js +0 -52
  17. package/node_modules/zod/index.cjs +0 -52
  18. package/node_modules/zod/index.d.cts +0 -3
  19. package/node_modules/zod/index.d.ts +0 -3
  20. package/node_modules/zod/index.js +0 -7
  21. package/node_modules/zod/locales/index.cjs +0 -36
  22. package/node_modules/zod/locales/index.d.cts +0 -1
  23. package/node_modules/zod/locales/index.d.ts +0 -1
  24. package/node_modules/zod/locales/index.js +0 -1
  25. package/node_modules/zod/locales/package.json +0 -7
  26. package/node_modules/zod/mini/index.cjs +0 -51
  27. package/node_modules/zod/mini/index.d.cts +0 -3
  28. package/node_modules/zod/mini/index.d.ts +0 -3
  29. package/node_modules/zod/mini/index.js +0 -3
  30. package/node_modules/zod/mini/package.json +0 -7
  31. package/node_modules/zod/package.json +0 -147
  32. package/node_modules/zod/src/compile.ts +0 -56
  33. package/node_modules/zod/src/index.ts +0 -7
  34. package/node_modules/zod/src/locales/index.ts +0 -1
  35. package/node_modules/zod/src/mini/index.ts +0 -3
  36. package/node_modules/zod/src/v3/ZodError.ts +0 -340
  37. package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
  38. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
  39. package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
  40. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
  41. package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
  42. package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
  43. package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
  44. package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
  45. package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
  46. package/node_modules/zod/src/v3/errors.ts +0 -13
  47. package/node_modules/zod/src/v3/external.ts +0 -6
  48. package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
  49. package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
  50. package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
  51. package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
  52. package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
  53. package/node_modules/zod/src/v3/helpers/util.ts +0 -224
  54. package/node_modules/zod/src/v3/index.ts +0 -4
  55. package/node_modules/zod/src/v3/locales/en.ts +0 -124
  56. package/node_modules/zod/src/v3/standard-schema.ts +0 -113
  57. package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
  58. package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
  59. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
  60. package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
  61. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
  62. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
  63. package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
  64. package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
  65. package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
  66. package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
  67. package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
  68. package/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
  69. package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
  70. package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
  71. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
  72. package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
  73. package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
  74. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
  75. package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
  76. package/node_modules/zod/src/v3/tests/error.test.ts +0 -586
  77. package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
  78. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
  79. package/node_modules/zod/src/v3/tests/function.test.ts +0 -261
  80. package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
  81. package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
  82. package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -128
  83. package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
  84. package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -206
  85. package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
  86. package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
  87. package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
  88. package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
  89. package/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
  90. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
  91. package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
  92. package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
  93. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
  94. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
  95. package/node_modules/zod/src/v3/tests/object.test.ts +0 -431
  96. package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
  97. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
  98. package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
  99. package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
  100. package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
  101. package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
  102. package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
  103. package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
  104. package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
  105. package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -114
  106. package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
  107. package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
  108. package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
  109. package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
  110. package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
  111. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
  112. package/node_modules/zod/src/v3/tests/string.test.ts +0 -922
  113. package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
  114. package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
  115. package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
  116. package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
  117. package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
  118. package/node_modules/zod/src/v3/types.ts +0 -5138
  119. package/node_modules/zod/src/v4/classic/checks.ts +0 -33
  120. package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
  121. package/node_modules/zod/src/v4/classic/compat.ts +0 -78
  122. package/node_modules/zod/src/v4/classic/deep-partial.ts +0 -76
  123. package/node_modules/zod/src/v4/classic/errors.ts +0 -97
  124. package/node_modules/zod/src/v4/classic/external.ts +0 -57
  125. package/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -944
  126. package/node_modules/zod/src/v4/classic/in-out.ts +0 -45
  127. package/node_modules/zod/src/v4/classic/index.ts +0 -5
  128. package/node_modules/zod/src/v4/classic/iso.ts +0 -20
  129. package/node_modules/zod/src/v4/classic/parse.ts +0 -88
  130. package/node_modules/zod/src/v4/classic/schemas.ts +0 -2937
  131. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
  132. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -86
  133. package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
  134. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -402
  135. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
  136. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
  137. package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
  138. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -89
  139. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
  140. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -604
  141. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
  142. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -572
  143. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -704
  144. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
  145. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
  146. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +0 -76
  147. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
  148. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +0 -985
  149. package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -92
  150. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -316
  151. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +0 -380
  152. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +0 -32
  153. package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -455
  154. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
  155. package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
  156. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +0 -221
  157. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -942
  158. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -305
  159. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -917
  160. package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -1108
  161. package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
  162. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
  163. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
  164. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -1467
  165. package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -391
  166. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
  167. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +0 -32
  168. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -67
  169. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +0 -81
  170. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +0 -159
  171. package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -958
  172. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +0 -319
  173. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -127
  174. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -334
  175. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +0 -215
  176. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +0 -39
  177. package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
  178. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -262
  179. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -128
  180. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +0 -29
  181. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +0 -24
  182. package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -342
  183. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
  184. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
  185. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
  186. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
  187. package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -401
  188. package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -1006
  189. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +0 -235
  190. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -366
  191. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -497
  192. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
  193. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
  194. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -144
  195. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +0 -44
  196. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -351
  197. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
  198. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
  199. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +0 -141
  200. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
  201. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -184
  202. package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -885
  203. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -707
  204. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +0 -68
  205. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -693
  206. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
  207. package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -190
  208. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -153
  209. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
  210. package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1440
  211. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -124
  212. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -812
  213. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
  214. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -4733
  215. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -378
  216. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -511
  217. package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -310
  218. package/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
  219. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +0 -645
  220. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
  221. package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
  222. package/node_modules/zod/src/v4/core/api.ts +0 -1875
  223. package/node_modules/zod/src/v4/core/checks.ts +0 -1266
  224. package/node_modules/zod/src/v4/core/compile.ts +0 -2313
  225. package/node_modules/zod/src/v4/core/core.ts +0 -230
  226. package/node_modules/zod/src/v4/core/doc.ts +0 -52
  227. package/node_modules/zod/src/v4/core/errors.ts +0 -543
  228. package/node_modules/zod/src/v4/core/index.ts +0 -19
  229. package/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -131
  230. package/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -934
  231. package/node_modules/zod/src/v4/core/json-schema.ts +0 -148
  232. package/node_modules/zod/src/v4/core/memoizer.ts +0 -331
  233. package/node_modules/zod/src/v4/core/parse.ts +0 -309
  234. package/node_modules/zod/src/v4/core/regexes.ts +0 -217
  235. package/node_modules/zod/src/v4/core/registries.ts +0 -105
  236. package/node_modules/zod/src/v4/core/schemas.ts +0 -5192
  237. package/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
  238. package/node_modules/zod/src/v4/core/tests/cached.test.ts +0 -54
  239. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +0 -1004
  240. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +0 -445
  241. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +0 -89
  242. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +0 -26
  243. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +0 -34
  244. package/node_modules/zod/src/v4/core/tests/compile.test.ts +0 -2036
  245. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +0 -140
  246. package/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
  247. package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
  248. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
  249. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +0 -214
  250. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
  251. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -180
  252. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +0 -72
  253. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
  254. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +0 -163
  255. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
  256. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +0 -42
  257. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
  258. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +0 -85
  259. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +0 -69
  260. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
  261. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -105
  262. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +0 -46
  263. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -125
  264. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
  265. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +0 -51
  266. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +0 -133
  267. package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -857
  268. package/node_modules/zod/src/v4/core/util.ts +0 -1280
  269. package/node_modules/zod/src/v4/core/versions.ts +0 -5
  270. package/node_modules/zod/src/v4/core/visit.ts +0 -193
  271. package/node_modules/zod/src/v4/core/zsf.ts +0 -323
  272. package/node_modules/zod/src/v4/index.ts +0 -4
  273. package/node_modules/zod/src/v4/locales/ar.ts +0 -120
  274. package/node_modules/zod/src/v4/locales/az.ts +0 -116
  275. package/node_modules/zod/src/v4/locales/be.ts +0 -188
  276. package/node_modules/zod/src/v4/locales/bg.ts +0 -133
  277. package/node_modules/zod/src/v4/locales/bn.ts +0 -123
  278. package/node_modules/zod/src/v4/locales/ca.ts +0 -121
  279. package/node_modules/zod/src/v4/locales/ckb.ts +0 -140
  280. package/node_modules/zod/src/v4/locales/cs.ts +0 -123
  281. package/node_modules/zod/src/v4/locales/da.ts +0 -128
  282. package/node_modules/zod/src/v4/locales/de.ts +0 -121
  283. package/node_modules/zod/src/v4/locales/el.ts +0 -124
  284. package/node_modules/zod/src/v4/locales/en.ts +0 -136
  285. package/node_modules/zod/src/v4/locales/eo.ts +0 -123
  286. package/node_modules/zod/src/v4/locales/es.ts +0 -145
  287. package/node_modules/zod/src/v4/locales/fa.ts +0 -131
  288. package/node_modules/zod/src/v4/locales/fi.ts +0 -126
  289. package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -121
  290. package/node_modules/zod/src/v4/locales/fr.ts +0 -139
  291. package/node_modules/zod/src/v4/locales/gu.ts +0 -123
  292. package/node_modules/zod/src/v4/locales/he.ts +0 -253
  293. package/node_modules/zod/src/v4/locales/hi.ts +0 -126
  294. package/node_modules/zod/src/v4/locales/hr.ts +0 -135
  295. package/node_modules/zod/src/v4/locales/hu.ts +0 -122
  296. package/node_modules/zod/src/v4/locales/hy.ts +0 -175
  297. package/node_modules/zod/src/v4/locales/id.ts +0 -120
  298. package/node_modules/zod/src/v4/locales/index.ts +0 -63
  299. package/node_modules/zod/src/v4/locales/is.ts +0 -124
  300. package/node_modules/zod/src/v4/locales/it.ts +0 -121
  301. package/node_modules/zod/src/v4/locales/ja.ts +0 -119
  302. package/node_modules/zod/src/v4/locales/ka.ts +0 -128
  303. package/node_modules/zod/src/v4/locales/kh.ts +0 -7
  304. package/node_modules/zod/src/v4/locales/km.ts +0 -124
  305. package/node_modules/zod/src/v4/locales/kn.ts +0 -126
  306. package/node_modules/zod/src/v4/locales/ko.ts +0 -126
  307. package/node_modules/zod/src/v4/locales/lt.ts +0 -243
  308. package/node_modules/zod/src/v4/locales/mk.ts +0 -123
  309. package/node_modules/zod/src/v4/locales/ms.ts +0 -120
  310. package/node_modules/zod/src/v4/locales/ne.ts +0 -128
  311. package/node_modules/zod/src/v4/locales/nl.ts +0 -126
  312. package/node_modules/zod/src/v4/locales/nn.ts +0 -121
  313. package/node_modules/zod/src/v4/locales/no.ts +0 -121
  314. package/node_modules/zod/src/v4/locales/ota.ts +0 -122
  315. package/node_modules/zod/src/v4/locales/pl.ts +0 -123
  316. package/node_modules/zod/src/v4/locales/ps.ts +0 -131
  317. package/node_modules/zod/src/v4/locales/pt-BR.ts +0 -161
  318. package/node_modules/zod/src/v4/locales/pt.ts +0 -159
  319. package/node_modules/zod/src/v4/locales/ro.ts +0 -132
  320. package/node_modules/zod/src/v4/locales/ru.ts +0 -188
  321. package/node_modules/zod/src/v4/locales/sk.ts +0 -123
  322. package/node_modules/zod/src/v4/locales/sl.ts +0 -123
  323. package/node_modules/zod/src/v4/locales/sv.ts +0 -124
  324. package/node_modules/zod/src/v4/locales/ta.ts +0 -123
  325. package/node_modules/zod/src/v4/locales/tg.ts +0 -135
  326. package/node_modules/zod/src/v4/locales/th.ts +0 -124
  327. package/node_modules/zod/src/v4/locales/tk.ts +0 -113
  328. package/node_modules/zod/src/v4/locales/tr.ts +0 -116
  329. package/node_modules/zod/src/v4/locales/ua.ts +0 -7
  330. package/node_modules/zod/src/v4/locales/uk.ts +0 -122
  331. package/node_modules/zod/src/v4/locales/ur.ts +0 -124
  332. package/node_modules/zod/src/v4/locales/uz.ts +0 -120
  333. package/node_modules/zod/src/v4/locales/vi.ts +0 -122
  334. package/node_modules/zod/src/v4/locales/yo.ts +0 -129
  335. package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -121
  336. package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -120
  337. package/node_modules/zod/src/v4/mini/checks.ts +0 -33
  338. package/node_modules/zod/src/v4/mini/coerce.ts +0 -27
  339. package/node_modules/zod/src/v4/mini/deep-partial.ts +0 -73
  340. package/node_modules/zod/src/v4/mini/external.ts +0 -52
  341. package/node_modules/zod/src/v4/mini/in-out.ts +0 -45
  342. package/node_modules/zod/src/v4/mini/index.ts +0 -3
  343. package/node_modules/zod/src/v4/mini/iso.ts +0 -66
  344. package/node_modules/zod/src/v4/mini/parse.ts +0 -16
  345. package/node_modules/zod/src/v4/mini/schemas.ts +0 -2051
  346. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -57
  347. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -190
  348. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
  349. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -158
  350. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -582
  351. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -30
  352. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +0 -84
  353. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +0 -54
  354. package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -41
  355. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -14
  356. package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -1146
  357. package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -109
  358. package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -292
  359. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
  360. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -341
  361. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
  362. package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -396
  363. package/node_modules/zod/src/v4-mini/index.ts +0 -3
  364. package/node_modules/zod/v3/ZodError.cjs +0 -167
  365. package/node_modules/zod/v3/ZodError.d.cts +0 -164
  366. package/node_modules/zod/v3/ZodError.d.ts +0 -164
  367. package/node_modules/zod/v3/ZodError.js +0 -143
  368. package/node_modules/zod/v3/errors.cjs +0 -36
  369. package/node_modules/zod/v3/errors.d.cts +0 -5
  370. package/node_modules/zod/v3/errors.d.ts +0 -5
  371. package/node_modules/zod/v3/errors.js +0 -9
  372. package/node_modules/zod/v3/external.cjs +0 -41
  373. package/node_modules/zod/v3/external.d.cts +0 -6
  374. package/node_modules/zod/v3/external.d.ts +0 -6
  375. package/node_modules/zod/v3/external.js +0 -6
  376. package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -21
  377. package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
  378. package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
  379. package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
  380. package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -28
  381. package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
  382. package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
  383. package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
  384. package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -143
  385. package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
  386. package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
  387. package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
  388. package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -21
  389. package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
  390. package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
  391. package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
  392. package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -21
  393. package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
  394. package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
  395. package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
  396. package/node_modules/zod/v3/helpers/util.cjs +0 -156
  397. package/node_modules/zod/v3/helpers/util.d.cts +0 -85
  398. package/node_modules/zod/v3/helpers/util.d.ts +0 -85
  399. package/node_modules/zod/v3/helpers/util.js +0 -133
  400. package/node_modules/zod/v3/index.cjs +0 -52
  401. package/node_modules/zod/v3/index.d.cts +0 -4
  402. package/node_modules/zod/v3/index.d.ts +0 -4
  403. package/node_modules/zod/v3/index.js +0 -4
  404. package/node_modules/zod/v3/locales/en.cjs +0 -112
  405. package/node_modules/zod/v3/locales/en.d.cts +0 -3
  406. package/node_modules/zod/v3/locales/en.d.ts +0 -3
  407. package/node_modules/zod/v3/locales/en.js +0 -109
  408. package/node_modules/zod/v3/package.json +0 -7
  409. package/node_modules/zod/v3/standard-schema.cjs +0 -21
  410. package/node_modules/zod/v3/standard-schema.d.cts +0 -102
  411. package/node_modules/zod/v3/standard-schema.d.ts +0 -102
  412. package/node_modules/zod/v3/standard-schema.js +0 -1
  413. package/node_modules/zod/v3/types.cjs +0 -3798
  414. package/node_modules/zod/v3/types.d.cts +0 -1034
  415. package/node_modules/zod/v3/types.d.ts +0 -1034
  416. package/node_modules/zod/v3/types.js +0 -3697
  417. package/node_modules/zod/v4/classic/checks.cjs +0 -53
  418. package/node_modules/zod/v4/classic/checks.d.cts +0 -1
  419. package/node_modules/zod/v4/classic/checks.d.ts +0 -1
  420. package/node_modules/zod/v4/classic/checks.js +0 -1
  421. package/node_modules/zod/v4/classic/coerce.cjs +0 -66
  422. package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
  423. package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
  424. package/node_modules/zod/v4/classic/coerce.js +0 -17
  425. package/node_modules/zod/v4/classic/compat.cjs +0 -80
  426. package/node_modules/zod/v4/classic/compat.d.cts +0 -48
  427. package/node_modules/zod/v4/classic/compat.d.ts +0 -48
  428. package/node_modules/zod/v4/classic/compat.js +0 -31
  429. package/node_modules/zod/v4/classic/deep-partial.cjs +0 -58
  430. package/node_modules/zod/v4/classic/deep-partial.d.cts +0 -14
  431. package/node_modules/zod/v4/classic/deep-partial.d.ts +0 -14
  432. package/node_modules/zod/v4/classic/deep-partial.js +0 -13
  433. package/node_modules/zod/v4/classic/errors.cjs +0 -102
  434. package/node_modules/zod/v4/classic/errors.d.cts +0 -29
  435. package/node_modules/zod/v4/classic/errors.d.ts +0 -29
  436. package/node_modules/zod/v4/classic/errors.js +0 -57
  437. package/node_modules/zod/v4/classic/external.cjs +0 -97
  438. package/node_modules/zod/v4/classic/external.d.cts +0 -19
  439. package/node_modules/zod/v4/classic/external.d.ts +0 -19
  440. package/node_modules/zod/v4/classic/external.js +0 -17
  441. package/node_modules/zod/v4/classic/from-json-schema.cjs +0 -926
  442. package/node_modules/zod/v4/classic/from-json-schema.d.cts +0 -12
  443. package/node_modules/zod/v4/classic/from-json-schema.d.ts +0 -12
  444. package/node_modules/zod/v4/classic/from-json-schema.js +0 -881
  445. package/node_modules/zod/v4/classic/in-out.cjs +0 -82
  446. package/node_modules/zod/v4/classic/in-out.d.cts +0 -8
  447. package/node_modules/zod/v4/classic/in-out.d.ts +0 -8
  448. package/node_modules/zod/v4/classic/in-out.js +0 -36
  449. package/node_modules/zod/v4/classic/index.cjs +0 -52
  450. package/node_modules/zod/v4/classic/index.d.cts +0 -3
  451. package/node_modules/zod/v4/classic/index.d.ts +0 -3
  452. package/node_modules/zod/v4/classic/index.js +0 -4
  453. package/node_modules/zod/v4/classic/iso.cjs +0 -68
  454. package/node_modules/zod/v4/classic/iso.d.cts +0 -7
  455. package/node_modules/zod/v4/classic/iso.d.ts +0 -7
  456. package/node_modules/zod/v4/classic/iso.js +0 -15
  457. package/node_modules/zod/v4/classic/package.json +0 -7
  458. package/node_modules/zod/v4/classic/parse.cjs +0 -63
  459. package/node_modules/zod/v4/classic/parse.d.cts +0 -44
  460. package/node_modules/zod/v4/classic/parse.d.ts +0 -44
  461. package/node_modules/zod/v4/classic/parse.js +0 -16
  462. package/node_modules/zod/v4/classic/schemas.cjs +0 -1676
  463. package/node_modules/zod/v4/classic/schemas.d.cts +0 -816
  464. package/node_modules/zod/v4/classic/schemas.d.ts +0 -816
  465. package/node_modules/zod/v4/classic/schemas.js +0 -1535
  466. package/node_modules/zod/v4/core/api.cjs +0 -1269
  467. package/node_modules/zod/v4/core/api.d.cts +0 -335
  468. package/node_modules/zod/v4/core/api.d.ts +0 -335
  469. package/node_modules/zod/v4/core/api.js +0 -1107
  470. package/node_modules/zod/v4/core/checks.cjs +0 -561
  471. package/node_modules/zod/v4/core/checks.d.cts +0 -294
  472. package/node_modules/zod/v4/core/checks.d.ts +0 -294
  473. package/node_modules/zod/v4/core/checks.js +0 -516
  474. package/node_modules/zod/v4/core/compile.cjs +0 -1908
  475. package/node_modules/zod/v4/core/compile.d.cts +0 -65
  476. package/node_modules/zod/v4/core/compile.d.ts +0 -65
  477. package/node_modules/zod/v4/core/compile.js +0 -1858
  478. package/node_modules/zod/v4/core/core.cjs +0 -167
  479. package/node_modules/zod/v4/core/core.d.cts +0 -82
  480. package/node_modules/zod/v4/core/core.d.ts +0 -82
  481. package/node_modules/zod/v4/core/core.js +0 -141
  482. package/node_modules/zod/v4/core/doc.cjs +0 -61
  483. package/node_modules/zod/v4/core/doc.d.cts +0 -16
  484. package/node_modules/zod/v4/core/doc.d.ts +0 -16
  485. package/node_modules/zod/v4/core/doc.js +0 -38
  486. package/node_modules/zod/v4/core/errors.cjs +0 -317
  487. package/node_modules/zod/v4/core/errors.d.cts +0 -225
  488. package/node_modules/zod/v4/core/errors.d.ts +0 -225
  489. package/node_modules/zod/v4/core/errors.js +0 -267
  490. package/node_modules/zod/v4/core/index.cjs +0 -70
  491. package/node_modules/zod/v4/core/index.d.cts +0 -19
  492. package/node_modules/zod/v4/core/index.d.ts +0 -19
  493. package/node_modules/zod/v4/core/index.js +0 -19
  494. package/node_modules/zod/v4/core/json-schema-generator.cjs +0 -122
  495. package/node_modules/zod/v4/core/json-schema-generator.d.cts +0 -65
  496. package/node_modules/zod/v4/core/json-schema-generator.d.ts +0 -65
  497. package/node_modules/zod/v4/core/json-schema-generator.js +0 -99
  498. package/node_modules/zod/v4/core/json-schema-processors.cjs +0 -929
  499. package/node_modules/zod/v4/core/json-schema-processors.d.cts +0 -65
  500. package/node_modules/zod/v4/core/json-schema-processors.d.ts +0 -65
  501. package/node_modules/zod/v4/core/json-schema-processors.js +0 -843
  502. package/node_modules/zod/v4/core/json-schema.cjs +0 -21
  503. package/node_modules/zod/v4/core/json-schema.d.cts +0 -89
  504. package/node_modules/zod/v4/core/json-schema.d.ts +0 -89
  505. package/node_modules/zod/v4/core/json-schema.js +0 -1
  506. package/node_modules/zod/v4/core/memoizer.cjs +0 -360
  507. package/node_modules/zod/v4/core/memoizer.d.cts +0 -15
  508. package/node_modules/zod/v4/core/memoizer.d.ts +0 -15
  509. package/node_modules/zod/v4/core/memoizer.js +0 -311
  510. package/node_modules/zod/v4/core/package.json +0 -7
  511. package/node_modules/zod/v4/core/parse.cjs +0 -233
  512. package/node_modules/zod/v4/core/parse.d.cts +0 -52
  513. package/node_modules/zod/v4/core/parse.d.ts +0 -52
  514. package/node_modules/zod/v4/core/parse.js +0 -175
  515. package/node_modules/zod/v4/core/regexes.cjs +0 -209
  516. package/node_modules/zod/v4/core/regexes.d.cts +0 -90
  517. package/node_modules/zod/v4/core/regexes.d.ts +0 -90
  518. package/node_modules/zod/v4/core/regexes.js +0 -156
  519. package/node_modules/zod/v4/core/registries.cjs +0 -75
  520. package/node_modules/zod/v4/core/registries.d.cts +0 -35
  521. package/node_modules/zod/v4/core/registries.d.ts +0 -35
  522. package/node_modules/zod/v4/core/registries.js +0 -51
  523. package/node_modules/zod/v4/core/schemas.cjs +0 -2669
  524. package/node_modules/zod/v4/core/schemas.d.cts +0 -1273
  525. package/node_modules/zod/v4/core/schemas.d.ts +0 -1273
  526. package/node_modules/zod/v4/core/schemas.js +0 -2606
  527. package/node_modules/zod/v4/core/standard-schema.cjs +0 -21
  528. package/node_modules/zod/v4/core/standard-schema.d.cts +0 -126
  529. package/node_modules/zod/v4/core/standard-schema.d.ts +0 -126
  530. package/node_modules/zod/v4/core/standard-schema.js +0 -1
  531. package/node_modules/zod/v4/core/to-json-schema.cjs +0 -681
  532. package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -154
  533. package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -154
  534. package/node_modules/zod/v4/core/to-json-schema.js +0 -651
  535. package/node_modules/zod/v4/core/util.cjs +0 -949
  536. package/node_modules/zod/v4/core/util.d.cts +0 -278
  537. package/node_modules/zod/v4/core/util.d.ts +0 -278
  538. package/node_modules/zod/v4/core/util.js +0 -859
  539. package/node_modules/zod/v4/core/versions.cjs +0 -27
  540. package/node_modules/zod/v4/core/versions.d.cts +0 -5
  541. package/node_modules/zod/v4/core/versions.d.ts +0 -5
  542. package/node_modules/zod/v4/core/versions.js +0 -5
  543. package/node_modules/zod/v4/core/visit.cjs +0 -214
  544. package/node_modules/zod/v4/core/visit.d.cts +0 -30
  545. package/node_modules/zod/v4/core/visit.d.ts +0 -30
  546. package/node_modules/zod/v4/core/visit.js +0 -169
  547. package/node_modules/zod/v4/index.cjs +0 -51
  548. package/node_modules/zod/v4/index.d.cts +0 -3
  549. package/node_modules/zod/v4/index.d.ts +0 -3
  550. package/node_modules/zod/v4/index.js +0 -4
  551. package/node_modules/zod/v4/locales/ar.cjs +0 -138
  552. package/node_modules/zod/v4/locales/ar.d.cts +0 -5
  553. package/node_modules/zod/v4/locales/ar.d.ts +0 -4
  554. package/node_modules/zod/v4/locales/ar.js +0 -111
  555. package/node_modules/zod/v4/locales/az.cjs +0 -137
  556. package/node_modules/zod/v4/locales/az.d.cts +0 -5
  557. package/node_modules/zod/v4/locales/az.d.ts +0 -4
  558. package/node_modules/zod/v4/locales/az.js +0 -110
  559. package/node_modules/zod/v4/locales/be.cjs +0 -195
  560. package/node_modules/zod/v4/locales/be.d.cts +0 -5
  561. package/node_modules/zod/v4/locales/be.d.ts +0 -4
  562. package/node_modules/zod/v4/locales/be.js +0 -168
  563. package/node_modules/zod/v4/locales/bg.cjs +0 -152
  564. package/node_modules/zod/v4/locales/bg.d.cts +0 -5
  565. package/node_modules/zod/v4/locales/bg.d.ts +0 -4
  566. package/node_modules/zod/v4/locales/bg.js +0 -125
  567. package/node_modules/zod/v4/locales/bn.cjs +0 -140
  568. package/node_modules/zod/v4/locales/bn.d.cts +0 -5
  569. package/node_modules/zod/v4/locales/bn.d.ts +0 -4
  570. package/node_modules/zod/v4/locales/bn.js +0 -113
  571. package/node_modules/zod/v4/locales/ca.cjs +0 -139
  572. package/node_modules/zod/v4/locales/ca.d.cts +0 -5
  573. package/node_modules/zod/v4/locales/ca.d.ts +0 -4
  574. package/node_modules/zod/v4/locales/ca.js +0 -112
  575. package/node_modules/zod/v4/locales/ckb.cjs +0 -160
  576. package/node_modules/zod/v4/locales/ckb.d.cts +0 -5
  577. package/node_modules/zod/v4/locales/ckb.d.ts +0 -4
  578. package/node_modules/zod/v4/locales/ckb.js +0 -133
  579. package/node_modules/zod/v4/locales/cs.cjs +0 -143
  580. package/node_modules/zod/v4/locales/cs.d.cts +0 -5
  581. package/node_modules/zod/v4/locales/cs.d.ts +0 -4
  582. package/node_modules/zod/v4/locales/cs.js +0 -116
  583. package/node_modules/zod/v4/locales/da.cjs +0 -147
  584. package/node_modules/zod/v4/locales/da.d.cts +0 -5
  585. package/node_modules/zod/v4/locales/da.d.ts +0 -4
  586. package/node_modules/zod/v4/locales/da.js +0 -120
  587. package/node_modules/zod/v4/locales/de.cjs +0 -140
  588. package/node_modules/zod/v4/locales/de.d.cts +0 -5
  589. package/node_modules/zod/v4/locales/de.d.ts +0 -4
  590. package/node_modules/zod/v4/locales/de.js +0 -113
  591. package/node_modules/zod/v4/locales/el.cjs +0 -139
  592. package/node_modules/zod/v4/locales/el.d.cts +0 -5
  593. package/node_modules/zod/v4/locales/el.d.ts +0 -4
  594. package/node_modules/zod/v4/locales/el.js +0 -112
  595. package/node_modules/zod/v4/locales/en.cjs +0 -152
  596. package/node_modules/zod/v4/locales/en.d.cts +0 -5
  597. package/node_modules/zod/v4/locales/en.d.ts +0 -4
  598. package/node_modules/zod/v4/locales/en.js +0 -125
  599. package/node_modules/zod/v4/locales/eo.cjs +0 -141
  600. package/node_modules/zod/v4/locales/eo.d.cts +0 -5
  601. package/node_modules/zod/v4/locales/eo.d.ts +0 -4
  602. package/node_modules/zod/v4/locales/eo.js +0 -114
  603. package/node_modules/zod/v4/locales/es.cjs +0 -163
  604. package/node_modules/zod/v4/locales/es.d.cts +0 -5
  605. package/node_modules/zod/v4/locales/es.d.ts +0 -4
  606. package/node_modules/zod/v4/locales/es.js +0 -136
  607. package/node_modules/zod/v4/locales/fa.cjs +0 -146
  608. package/node_modules/zod/v4/locales/fa.d.cts +0 -5
  609. package/node_modules/zod/v4/locales/fa.d.ts +0 -4
  610. package/node_modules/zod/v4/locales/fa.js +0 -119
  611. package/node_modules/zod/v4/locales/fi.cjs +0 -144
  612. package/node_modules/zod/v4/locales/fi.d.cts +0 -5
  613. package/node_modules/zod/v4/locales/fi.d.ts +0 -4
  614. package/node_modules/zod/v4/locales/fi.js +0 -117
  615. package/node_modules/zod/v4/locales/fr-CA.cjs +0 -139
  616. package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -5
  617. package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
  618. package/node_modules/zod/v4/locales/fr-CA.js +0 -112
  619. package/node_modules/zod/v4/locales/fr.cjs +0 -156
  620. package/node_modules/zod/v4/locales/fr.d.cts +0 -5
  621. package/node_modules/zod/v4/locales/fr.d.ts +0 -4
  622. package/node_modules/zod/v4/locales/fr.js +0 -129
  623. package/node_modules/zod/v4/locales/gu.cjs +0 -140
  624. package/node_modules/zod/v4/locales/gu.d.cts +0 -5
  625. package/node_modules/zod/v4/locales/gu.d.ts +0 -4
  626. package/node_modules/zod/v4/locales/gu.js +0 -113
  627. package/node_modules/zod/v4/locales/he.cjs +0 -248
  628. package/node_modules/zod/v4/locales/he.d.cts +0 -5
  629. package/node_modules/zod/v4/locales/he.d.ts +0 -4
  630. package/node_modules/zod/v4/locales/he.js +0 -221
  631. package/node_modules/zod/v4/locales/hi.cjs +0 -138
  632. package/node_modules/zod/v4/locales/hi.d.cts +0 -5
  633. package/node_modules/zod/v4/locales/hi.d.ts +0 -4
  634. package/node_modules/zod/v4/locales/hi.js +0 -111
  635. package/node_modules/zod/v4/locales/hr.cjs +0 -153
  636. package/node_modules/zod/v4/locales/hr.d.cts +0 -5
  637. package/node_modules/zod/v4/locales/hr.d.ts +0 -4
  638. package/node_modules/zod/v4/locales/hr.js +0 -126
  639. package/node_modules/zod/v4/locales/hu.cjs +0 -140
  640. package/node_modules/zod/v4/locales/hu.d.cts +0 -5
  641. package/node_modules/zod/v4/locales/hu.d.ts +0 -4
  642. package/node_modules/zod/v4/locales/hu.js +0 -113
  643. package/node_modules/zod/v4/locales/hy.cjs +0 -185
  644. package/node_modules/zod/v4/locales/hy.d.cts +0 -5
  645. package/node_modules/zod/v4/locales/hy.d.ts +0 -4
  646. package/node_modules/zod/v4/locales/hy.js +0 -158
  647. package/node_modules/zod/v4/locales/id.cjs +0 -138
  648. package/node_modules/zod/v4/locales/id.d.cts +0 -5
  649. package/node_modules/zod/v4/locales/id.d.ts +0 -4
  650. package/node_modules/zod/v4/locales/id.js +0 -111
  651. package/node_modules/zod/v4/locales/index.cjs +0 -152
  652. package/node_modules/zod/v4/locales/index.d.cts +0 -63
  653. package/node_modules/zod/v4/locales/index.d.ts +0 -63
  654. package/node_modules/zod/v4/locales/index.js +0 -63
  655. package/node_modules/zod/v4/locales/is.cjs +0 -141
  656. package/node_modules/zod/v4/locales/is.d.cts +0 -5
  657. package/node_modules/zod/v4/locales/is.d.ts +0 -4
  658. package/node_modules/zod/v4/locales/is.js +0 -114
  659. package/node_modules/zod/v4/locales/it.cjs +0 -140
  660. package/node_modules/zod/v4/locales/it.d.cts +0 -5
  661. package/node_modules/zod/v4/locales/it.d.ts +0 -4
  662. package/node_modules/zod/v4/locales/it.js +0 -113
  663. package/node_modules/zod/v4/locales/ja.cjs +0 -139
  664. package/node_modules/zod/v4/locales/ja.d.cts +0 -5
  665. package/node_modules/zod/v4/locales/ja.d.ts +0 -4
  666. package/node_modules/zod/v4/locales/ja.js +0 -112
  667. package/node_modules/zod/v4/locales/ka.cjs +0 -144
  668. package/node_modules/zod/v4/locales/ka.d.cts +0 -5
  669. package/node_modules/zod/v4/locales/ka.d.ts +0 -4
  670. package/node_modules/zod/v4/locales/ka.js +0 -117
  671. package/node_modules/zod/v4/locales/kh.cjs +0 -12
  672. package/node_modules/zod/v4/locales/kh.d.cts +0 -5
  673. package/node_modules/zod/v4/locales/kh.d.ts +0 -5
  674. package/node_modules/zod/v4/locales/kh.js +0 -5
  675. package/node_modules/zod/v4/locales/km.cjs +0 -142
  676. package/node_modules/zod/v4/locales/km.d.cts +0 -5
  677. package/node_modules/zod/v4/locales/km.d.ts +0 -4
  678. package/node_modules/zod/v4/locales/km.js +0 -115
  679. package/node_modules/zod/v4/locales/kn.cjs +0 -143
  680. package/node_modules/zod/v4/locales/kn.d.cts +0 -5
  681. package/node_modules/zod/v4/locales/kn.d.ts +0 -4
  682. package/node_modules/zod/v4/locales/kn.js +0 -116
  683. package/node_modules/zod/v4/locales/ko.cjs +0 -143
  684. package/node_modules/zod/v4/locales/ko.d.cts +0 -5
  685. package/node_modules/zod/v4/locales/ko.d.ts +0 -4
  686. package/node_modules/zod/v4/locales/ko.js +0 -116
  687. package/node_modules/zod/v4/locales/lt.cjs +0 -234
  688. package/node_modules/zod/v4/locales/lt.d.cts +0 -5
  689. package/node_modules/zod/v4/locales/lt.d.ts +0 -4
  690. package/node_modules/zod/v4/locales/lt.js +0 -207
  691. package/node_modules/zod/v4/locales/mk.cjs +0 -141
  692. package/node_modules/zod/v4/locales/mk.d.cts +0 -5
  693. package/node_modules/zod/v4/locales/mk.d.ts +0 -4
  694. package/node_modules/zod/v4/locales/mk.js +0 -114
  695. package/node_modules/zod/v4/locales/ms.cjs +0 -139
  696. package/node_modules/zod/v4/locales/ms.d.cts +0 -5
  697. package/node_modules/zod/v4/locales/ms.d.ts +0 -4
  698. package/node_modules/zod/v4/locales/ms.js +0 -112
  699. package/node_modules/zod/v4/locales/ne.cjs +0 -138
  700. package/node_modules/zod/v4/locales/ne.d.cts +0 -5
  701. package/node_modules/zod/v4/locales/ne.d.ts +0 -4
  702. package/node_modules/zod/v4/locales/ne.js +0 -111
  703. package/node_modules/zod/v4/locales/nl.cjs +0 -142
  704. package/node_modules/zod/v4/locales/nl.d.cts +0 -5
  705. package/node_modules/zod/v4/locales/nl.d.ts +0 -4
  706. package/node_modules/zod/v4/locales/nl.js +0 -115
  707. package/node_modules/zod/v4/locales/nn.cjs +0 -140
  708. package/node_modules/zod/v4/locales/nn.d.cts +0 -5
  709. package/node_modules/zod/v4/locales/nn.d.ts +0 -4
  710. package/node_modules/zod/v4/locales/nn.js +0 -113
  711. package/node_modules/zod/v4/locales/no.cjs +0 -140
  712. package/node_modules/zod/v4/locales/no.d.cts +0 -5
  713. package/node_modules/zod/v4/locales/no.d.ts +0 -4
  714. package/node_modules/zod/v4/locales/no.js +0 -113
  715. package/node_modules/zod/v4/locales/ota.cjs +0 -141
  716. package/node_modules/zod/v4/locales/ota.d.cts +0 -5
  717. package/node_modules/zod/v4/locales/ota.d.ts +0 -4
  718. package/node_modules/zod/v4/locales/ota.js +0 -114
  719. package/node_modules/zod/v4/locales/package.json +0 -7
  720. package/node_modules/zod/v4/locales/pl.cjs +0 -141
  721. package/node_modules/zod/v4/locales/pl.d.cts +0 -5
  722. package/node_modules/zod/v4/locales/pl.d.ts +0 -4
  723. package/node_modules/zod/v4/locales/pl.js +0 -114
  724. package/node_modules/zod/v4/locales/ps.cjs +0 -146
  725. package/node_modules/zod/v4/locales/ps.d.cts +0 -5
  726. package/node_modules/zod/v4/locales/ps.d.ts +0 -4
  727. package/node_modules/zod/v4/locales/ps.js +0 -119
  728. package/node_modules/zod/v4/locales/pt-BR.cjs +0 -170
  729. package/node_modules/zod/v4/locales/pt-BR.d.cts +0 -5
  730. package/node_modules/zod/v4/locales/pt-BR.d.ts +0 -4
  731. package/node_modules/zod/v4/locales/pt-BR.js +0 -143
  732. package/node_modules/zod/v4/locales/pt.cjs +0 -169
  733. package/node_modules/zod/v4/locales/pt.d.cts +0 -5
  734. package/node_modules/zod/v4/locales/pt.d.ts +0 -4
  735. package/node_modules/zod/v4/locales/pt.js +0 -142
  736. package/node_modules/zod/v4/locales/ro.cjs +0 -149
  737. package/node_modules/zod/v4/locales/ro.d.cts +0 -5
  738. package/node_modules/zod/v4/locales/ro.d.ts +0 -4
  739. package/node_modules/zod/v4/locales/ro.js +0 -122
  740. package/node_modules/zod/v4/locales/ru.cjs +0 -195
  741. package/node_modules/zod/v4/locales/ru.d.cts +0 -5
  742. package/node_modules/zod/v4/locales/ru.d.ts +0 -4
  743. package/node_modules/zod/v4/locales/ru.js +0 -168
  744. package/node_modules/zod/v4/locales/sk.cjs +0 -143
  745. package/node_modules/zod/v4/locales/sk.d.cts +0 -5
  746. package/node_modules/zod/v4/locales/sk.d.ts +0 -4
  747. package/node_modules/zod/v4/locales/sk.js +0 -116
  748. package/node_modules/zod/v4/locales/sl.cjs +0 -141
  749. package/node_modules/zod/v4/locales/sl.d.cts +0 -5
  750. package/node_modules/zod/v4/locales/sl.d.ts +0 -4
  751. package/node_modules/zod/v4/locales/sl.js +0 -114
  752. package/node_modules/zod/v4/locales/sv.cjs +0 -142
  753. package/node_modules/zod/v4/locales/sv.d.cts +0 -5
  754. package/node_modules/zod/v4/locales/sv.d.ts +0 -4
  755. package/node_modules/zod/v4/locales/sv.js +0 -115
  756. package/node_modules/zod/v4/locales/ta.cjs +0 -142
  757. package/node_modules/zod/v4/locales/ta.d.cts +0 -5
  758. package/node_modules/zod/v4/locales/ta.d.ts +0 -4
  759. package/node_modules/zod/v4/locales/ta.js +0 -115
  760. package/node_modules/zod/v4/locales/tg.cjs +0 -144
  761. package/node_modules/zod/v4/locales/tg.d.cts +0 -5
  762. package/node_modules/zod/v4/locales/tg.d.ts +0 -4
  763. package/node_modules/zod/v4/locales/tg.js +0 -117
  764. package/node_modules/zod/v4/locales/th.cjs +0 -142
  765. package/node_modules/zod/v4/locales/th.d.cts +0 -5
  766. package/node_modules/zod/v4/locales/th.d.ts +0 -4
  767. package/node_modules/zod/v4/locales/th.js +0 -115
  768. package/node_modules/zod/v4/locales/tk.cjs +0 -134
  769. package/node_modules/zod/v4/locales/tk.d.cts +0 -5
  770. package/node_modules/zod/v4/locales/tk.d.ts +0 -4
  771. package/node_modules/zod/v4/locales/tk.js +0 -107
  772. package/node_modules/zod/v4/locales/tr.cjs +0 -137
  773. package/node_modules/zod/v4/locales/tr.d.cts +0 -5
  774. package/node_modules/zod/v4/locales/tr.d.ts +0 -4
  775. package/node_modules/zod/v4/locales/tr.js +0 -110
  776. package/node_modules/zod/v4/locales/ua.cjs +0 -12
  777. package/node_modules/zod/v4/locales/ua.d.cts +0 -5
  778. package/node_modules/zod/v4/locales/ua.d.ts +0 -5
  779. package/node_modules/zod/v4/locales/ua.js +0 -5
  780. package/node_modules/zod/v4/locales/uk.cjs +0 -140
  781. package/node_modules/zod/v4/locales/uk.d.cts +0 -5
  782. package/node_modules/zod/v4/locales/uk.d.ts +0 -4
  783. package/node_modules/zod/v4/locales/uk.js +0 -113
  784. package/node_modules/zod/v4/locales/ur.cjs +0 -142
  785. package/node_modules/zod/v4/locales/ur.d.cts +0 -5
  786. package/node_modules/zod/v4/locales/ur.d.ts +0 -4
  787. package/node_modules/zod/v4/locales/ur.js +0 -115
  788. package/node_modules/zod/v4/locales/uz.cjs +0 -140
  789. package/node_modules/zod/v4/locales/uz.d.cts +0 -5
  790. package/node_modules/zod/v4/locales/uz.d.ts +0 -4
  791. package/node_modules/zod/v4/locales/uz.js +0 -113
  792. package/node_modules/zod/v4/locales/vi.cjs +0 -140
  793. package/node_modules/zod/v4/locales/vi.d.cts +0 -5
  794. package/node_modules/zod/v4/locales/vi.d.ts +0 -4
  795. package/node_modules/zod/v4/locales/vi.js +0 -113
  796. package/node_modules/zod/v4/locales/yo.cjs +0 -139
  797. package/node_modules/zod/v4/locales/yo.d.cts +0 -5
  798. package/node_modules/zod/v4/locales/yo.d.ts +0 -4
  799. package/node_modules/zod/v4/locales/yo.js +0 -112
  800. package/node_modules/zod/v4/locales/zh-CN.cjs +0 -141
  801. package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -5
  802. package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
  803. package/node_modules/zod/v4/locales/zh-CN.js +0 -114
  804. package/node_modules/zod/v4/locales/zh-TW.cjs +0 -139
  805. package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -5
  806. package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
  807. package/node_modules/zod/v4/locales/zh-TW.js +0 -112
  808. package/node_modules/zod/v4/mini/checks.cjs +0 -54
  809. package/node_modules/zod/v4/mini/checks.d.cts +0 -1
  810. package/node_modules/zod/v4/mini/checks.d.ts +0 -1
  811. package/node_modules/zod/v4/mini/checks.js +0 -1
  812. package/node_modules/zod/v4/mini/coerce.cjs +0 -71
  813. package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
  814. package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
  815. package/node_modules/zod/v4/mini/coerce.js +0 -22
  816. package/node_modules/zod/v4/mini/deep-partial.cjs +0 -58
  817. package/node_modules/zod/v4/mini/deep-partial.d.cts +0 -14
  818. package/node_modules/zod/v4/mini/deep-partial.d.ts +0 -14
  819. package/node_modules/zod/v4/mini/deep-partial.js +0 -13
  820. package/node_modules/zod/v4/mini/external.cjs +0 -95
  821. package/node_modules/zod/v4/mini/external.d.cts +0 -16
  822. package/node_modules/zod/v4/mini/external.d.ts +0 -16
  823. package/node_modules/zod/v4/mini/external.js +0 -16
  824. package/node_modules/zod/v4/mini/in-out.cjs +0 -82
  825. package/node_modules/zod/v4/mini/in-out.d.cts +0 -8
  826. package/node_modules/zod/v4/mini/in-out.d.ts +0 -8
  827. package/node_modules/zod/v4/mini/in-out.js +0 -36
  828. package/node_modules/zod/v4/mini/index.cjs +0 -51
  829. package/node_modules/zod/v4/mini/index.d.cts +0 -3
  830. package/node_modules/zod/v4/mini/index.d.ts +0 -3
  831. package/node_modules/zod/v4/mini/index.js +0 -3
  832. package/node_modules/zod/v4/mini/iso.cjs +0 -83
  833. package/node_modules/zod/v4/mini/iso.d.cts +0 -22
  834. package/node_modules/zod/v4/mini/iso.d.ts +0 -22
  835. package/node_modules/zod/v4/mini/iso.js +0 -34
  836. package/node_modules/zod/v4/mini/package.json +0 -7
  837. package/node_modules/zod/v4/mini/parse.cjs +0 -37
  838. package/node_modules/zod/v4/mini/parse.d.cts +0 -1
  839. package/node_modules/zod/v4/mini/parse.d.ts +0 -1
  840. package/node_modules/zod/v4/mini/parse.js +0 -1
  841. package/node_modules/zod/v4/mini/schemas.cjs +0 -1147
  842. package/node_modules/zod/v4/mini/schemas.d.cts +0 -480
  843. package/node_modules/zod/v4/mini/schemas.d.ts +0 -480
  844. package/node_modules/zod/v4/mini/schemas.js +0 -1002
  845. package/node_modules/zod/v4/package.json +0 -7
  846. package/node_modules/zod/v4-mini/index.cjs +0 -51
  847. package/node_modules/zod/v4-mini/index.d.cts +0 -3
  848. package/node_modules/zod/v4-mini/index.d.ts +0 -3
  849. package/node_modules/zod/v4-mini/index.js +0 -3
  850. package/node_modules/zod/v4-mini/package.json +0 -7
@@ -1,949 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONSTANT_CATCH = exports.Class = exports.BIGINT_FORMAT_RANGES = exports.NUMBER_FORMAT_RANGES = exports.primitiveTypes = exports.propertyKeyTypes = exports.getParsedType = exports.allowsEval = exports.captureStackTrace = void 0;
4
- exports.assertEqual = assertEqual;
5
- exports.assertNotEqual = assertNotEqual;
6
- exports.toZod = toZod;
7
- exports.assertIs = assertIs;
8
- exports.assertNever = assertNever;
9
- exports.assert = assert;
10
- exports.getEnumValues = getEnumValues;
11
- exports.joinValues = joinValues;
12
- exports.jsonStringifyReplacer = jsonStringifyReplacer;
13
- exports.cached = cached;
14
- exports.nullish = nullish;
15
- exports.cleanRegex = cleanRegex;
16
- exports.floatSafeRemainder = floatSafeRemainder;
17
- exports.defineLazy = defineLazy;
18
- exports.objectClone = objectClone;
19
- exports.assignProp = assignProp;
20
- exports.rawShape = rawShape;
21
- exports.mergeDefs = mergeDefs;
22
- exports.cloneDef = cloneDef;
23
- exports.getElementAtPath = getElementAtPath;
24
- exports.promiseAllObject = promiseAllObject;
25
- exports.randomString = randomString;
26
- exports.esc = esc;
27
- exports.slugify = slugify;
28
- exports.isObject = isObject;
29
- exports.isPlainObject = isPlainObject;
30
- exports.shallowClone = shallowClone;
31
- exports.numKeys = numKeys;
32
- exports.escapeRegex = escapeRegex;
33
- exports.clone = clone;
34
- exports.normalizeParams = normalizeParams;
35
- exports.createTransparentProxy = createTransparentProxy;
36
- exports.stringifyPrimitive = stringifyPrimitive;
37
- exports.optionalKeys = optionalKeys;
38
- exports.pick = pick;
39
- exports.omit = omit;
40
- exports.extend = extend;
41
- exports.safeExtend = safeExtend;
42
- exports.merge = merge;
43
- exports.partial = partial;
44
- exports.required = required;
45
- exports.aborted = aborted;
46
- exports.explicitlyAborted = explicitlyAborted;
47
- exports.prefixIssues = prefixIssues;
48
- exports.unwrapMessage = unwrapMessage;
49
- exports.attachSchema = attachSchema;
50
- exports.finalizeIssue = finalizeIssue;
51
- exports.getSizableOrigin = getSizableOrigin;
52
- exports.codePointLength = codePointLength;
53
- exports.getLengthableOrigin = getLengthableOrigin;
54
- exports.parsedType = parsedType;
55
- exports.issue = issue;
56
- exports.cleanEnum = cleanEnum;
57
- exports.base64ToUint8Array = base64ToUint8Array;
58
- exports.uint8ArrayToBase64 = uint8ArrayToBase64;
59
- exports.base64urlToUint8Array = base64urlToUint8Array;
60
- exports.uint8ArrayToBase64url = uint8ArrayToBase64url;
61
- exports.hexToUint8Array = hexToUint8Array;
62
- exports.uint8ArrayToHex = uint8ArrayToHex;
63
- exports.members = members;
64
- exports.own = own;
65
- exports.hide = hide;
66
- exports.derived = derived;
67
- exports.defineLazyInternal = defineLazyInternal;
68
- exports.installLazyProp = installLazyProp;
69
- exports.constantCatch = constantCatch;
70
- const core_js_1 = require("./core.cjs");
71
- // functions
72
- function assertEqual(val) {
73
- return val;
74
- }
75
- function assertNotEqual(val) {
76
- return val;
77
- }
78
- function toZod() {
79
- return (schema) => schema;
80
- }
81
- function assertIs(_arg) { }
82
- function assertNever(_x) {
83
- throw new Error("Unexpected value in exhaustive check");
84
- }
85
- function assert(_) { }
86
- function getEnumValues(entries) {
87
- const numericValues = Object.values(entries).filter((v) => typeof v === "number");
88
- const values = Object.entries(entries)
89
- .filter(([k, _]) => numericValues.indexOf(+k) === -1)
90
- .map(([_, v]) => v);
91
- return values;
92
- }
93
- function joinValues(array, separator = "|") {
94
- return array.map((val) => stringifyPrimitive(val)).join(separator);
95
- }
96
- function jsonStringifyReplacer(_, value) {
97
- if (typeof value === "bigint")
98
- return value.toString();
99
- return value;
100
- }
101
- // the accessor lives on a shared prototype: an own accessor makes every box a dictionary-mode object (~360 B and a slow load per read against ~100 B and an inlined getter here)
102
- class Cached {
103
- constructor(getter) {
104
- this._getter = getter;
105
- this._value = undefined;
106
- }
107
- get value() {
108
- const getter = this._getter;
109
- if (getter !== undefined) {
110
- this._value = getter();
111
- this._getter = undefined;
112
- }
113
- return this._value;
114
- }
115
- }
116
- function cached(getter) {
117
- return new Cached(getter);
118
- }
119
- function nullish(input) {
120
- return input === null || input === undefined;
121
- }
122
- function cleanRegex(source) {
123
- const start = source.startsWith("^") ? 1 : 0;
124
- const end = source.endsWith("$") ? source.length - 1 : source.length;
125
- return source.slice(start, end);
126
- }
127
- function floatSafeRemainder(val, step) {
128
- const ratio = val / step;
129
- const roundedRatio = Math.round(ratio);
130
- // `val` and `step` each round to a double before the division rounds again, so a true decimal multiple's quotient can sit up to 1.5 of these scaled epsilons from the integer. A 1x tolerance therefore rejected 2.03 as a multiple of 0.07; 4x covers the worst case with margin.
131
- const tolerance = 4 * Number.EPSILON * Math.max(Math.abs(ratio), 1);
132
- if (Math.abs(ratio - roundedRatio) < tolerance)
133
- return 0;
134
- return ratio - roundedRatio;
135
- }
136
- const EVALUATING = /* @__PURE__*/ Symbol("evaluating");
137
- function defineLazy(object, key, getter) {
138
- let value = undefined;
139
- Object.defineProperty(object, key, {
140
- get() {
141
- if (value === EVALUATING) {
142
- // Circular reference detected, return undefined to break the cycle
143
- return undefined;
144
- }
145
- if (value === undefined) {
146
- value = EVALUATING;
147
- value = getter();
148
- }
149
- return value;
150
- },
151
- set(v) {
152
- Object.defineProperty(object, key, {
153
- value: v,
154
- // configurable: true,
155
- });
156
- // object[key] = v;
157
- },
158
- configurable: true,
159
- });
160
- }
161
- function objectClone(obj) {
162
- return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
163
- }
164
- function assignProp(target, prop, value) {
165
- Object.defineProperty(target, prop, {
166
- value,
167
- writable: true,
168
- enumerable: true,
169
- configurable: true,
170
- });
171
- }
172
- /**
173
- * Whichever object a def's `shape` currently answers from: the one the caller passed until the first read, the frozen copy after it.
174
- *
175
- * Its keys and descriptors read without invoking anything, which is what lets a discriminated union check its discriminator, and the cycle walk read a shape, without resolving a getter that references the schema being constructed. A def that answers `shape` from an accessor of its own has none.
176
- */
177
- function rawShape(def) {
178
- const desc = Object.getOwnPropertyDescriptor(def, "shape");
179
- return desc?.get ? desc.get.raw : desc?.value;
180
- }
181
- // where a builder reads its source's keys and descriptors, resolving only a shape a def answers for itself. A shape resolves by object spread, so only its enumerable keys are ever part of it.
182
- function sourceShape(schema) {
183
- return rawShape(schema._zod.def) ?? schema._zod.def.shape;
184
- }
185
- // a key whose value is not settled yet, self-caching so every read after the first gets the same one
186
- function deferProp(target, key, getter) {
187
- Object.defineProperty(target, key, {
188
- get() {
189
- const value = getter();
190
- assignProp(this, key, value);
191
- return value;
192
- },
193
- enumerable: true,
194
- configurable: true,
195
- });
196
- }
197
- // Writes a settled key. A plain assignment is much cheaper than `defineProperty` and produces the same descriptor, but it runs whatever setter already answers to the key — an accessor this shape deferred, or an inherited one, which `__proto__` has on every object and prototype pollution can add for any name.
198
- function putProp(target, key, value) {
199
- if (key in target)
200
- assignProp(target, key, value);
201
- else
202
- target[key] = value;
203
- }
204
- /**
205
- * Copies `keys` of `source`'s shape onto `target`, each value passed through `wrap`.
206
- *
207
- * A key the source has resolved is copied through now, so the derived shape states it outright and nothing has to resolve it to learn what it holds. A key the source still defers stays deferred, and reads back through the source's own `shape`, so it resolves once and both shapes get that one schema.
208
- */
209
- function mirrorShape(target, source, keys, wrap) {
210
- const raw = sourceShape(source);
211
- for (const key of keys) {
212
- const desc = Object.getOwnPropertyDescriptor(raw, key);
213
- if (!desc.enumerable)
214
- continue;
215
- if (desc.get) {
216
- deferProp(target, key, () => {
217
- const value = source._zod.def.shape[key];
218
- return wrap ? wrap(value, key) : value;
219
- });
220
- }
221
- else
222
- putProp(target, key, wrap ? wrap(desc.value, key) : desc.value);
223
- }
224
- }
225
- // same, for a plain shape a caller passed rather than a schema's
226
- function mirrorProps(target, source) {
227
- for (const key of Reflect.ownKeys(source)) {
228
- const desc = Object.getOwnPropertyDescriptor(source, key);
229
- if (!desc.enumerable)
230
- continue;
231
- if (desc.get)
232
- deferProp(target, key, () => source[key]);
233
- else
234
- putProp(target, key, desc.value);
235
- }
236
- }
237
- function mergeDefs(...defs) {
238
- const mergedDescriptors = {};
239
- for (const def of defs) {
240
- const descriptors = Object.getOwnPropertyDescriptors(def);
241
- Object.assign(mergedDescriptors, descriptors);
242
- }
243
- return Object.defineProperties({}, mergedDescriptors);
244
- }
245
- function cloneDef(schema) {
246
- return mergeDefs(schema._zod.def);
247
- }
248
- function getElementAtPath(obj, path) {
249
- if (!path)
250
- return obj;
251
- return path.reduce((acc, key) => acc?.[key], obj);
252
- }
253
- function promiseAllObject(promisesObj) {
254
- const keys = Object.keys(promisesObj);
255
- const promises = keys.map((key) => promisesObj[key]);
256
- return Promise.all(promises).then((results) => {
257
- const resolvedObj = {};
258
- for (let i = 0; i < keys.length; i++) {
259
- resolvedObj[keys[i]] = results[i];
260
- }
261
- return resolvedObj;
262
- });
263
- }
264
- function randomString(length = 10) {
265
- const chars = "abcdefghijklmnopqrstuvwxyz";
266
- let str = "";
267
- for (let i = 0; i < length; i++) {
268
- str += chars[Math.floor(Math.random() * chars.length)];
269
- }
270
- return str;
271
- }
272
- function esc(str) {
273
- return JSON.stringify(str);
274
- }
275
- function slugify(input) {
276
- return input
277
- .toLowerCase()
278
- .trim()
279
- .replace(/[^\w\s-]/g, "")
280
- .replace(/[\s_-]+/g, "-")
281
- .replace(/^-+|-+$/g, "");
282
- }
283
- exports.captureStackTrace = ("captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => { });
284
- function isObject(data) {
285
- return typeof data === "object" && data !== null && !Array.isArray(data);
286
- }
287
- exports.allowsEval = cached(() => {
288
- // Skip the probe under `jitless`: strict CSPs report the caught `new Function` as a `securitypolicyviolation` even though the throw is swallowed.
289
- if (core_js_1.globalConfig.jitless) {
290
- return false;
291
- }
292
- // @ts-ignore
293
- if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
294
- return false;
295
- }
296
- try {
297
- const F = Function;
298
- new F("");
299
- return true;
300
- }
301
- catch (_) {
302
- return false;
303
- }
304
- });
305
- function isPlainObject(o) {
306
- if (isObject(o) === false)
307
- return false;
308
- // modified constructor
309
- const ctor = o.constructor;
310
- if (ctor === undefined)
311
- return true;
312
- if (typeof ctor !== "function")
313
- return true;
314
- // modified prototype
315
- const prot = ctor.prototype;
316
- if (isObject(prot) === false)
317
- return false;
318
- // ctor doesn't have static `isPrototypeOf`
319
- if (Object.prototype.hasOwnProperty.call(prot, "isPrototypeOf") === false) {
320
- return false;
321
- }
322
- return true;
323
- }
324
- function shallowClone(o) {
325
- if (isPlainObject(o))
326
- return { ...o };
327
- if (Array.isArray(o))
328
- return [...o];
329
- if (o instanceof Map)
330
- return new Map(o);
331
- if (o instanceof Set)
332
- return new Set(o);
333
- return o;
334
- }
335
- function numKeys(data) {
336
- let keyCount = 0;
337
- for (const key in data) {
338
- if (Object.prototype.hasOwnProperty.call(data, key)) {
339
- keyCount++;
340
- }
341
- }
342
- return keyCount;
343
- }
344
- const getParsedType = (data) => {
345
- const t = typeof data;
346
- switch (t) {
347
- case "undefined":
348
- return "undefined";
349
- case "string":
350
- return "string";
351
- case "number":
352
- return Number.isNaN(data) ? "nan" : "number";
353
- case "boolean":
354
- return "boolean";
355
- case "function":
356
- return "function";
357
- case "bigint":
358
- return "bigint";
359
- case "symbol":
360
- return "symbol";
361
- case "object":
362
- if (Array.isArray(data)) {
363
- return "array";
364
- }
365
- if (data === null) {
366
- return "null";
367
- }
368
- if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
369
- return "promise";
370
- }
371
- if (typeof Map !== "undefined" && data instanceof Map) {
372
- return "map";
373
- }
374
- if (typeof Set !== "undefined" && data instanceof Set) {
375
- return "set";
376
- }
377
- if (typeof Date !== "undefined" && data instanceof Date) {
378
- return "date";
379
- }
380
- // @ts-ignore
381
- if (typeof File !== "undefined" && data instanceof File) {
382
- return "file";
383
- }
384
- return "object";
385
- default:
386
- throw new Error(`Unknown data type: ${t}`);
387
- }
388
- };
389
- exports.getParsedType = getParsedType;
390
- exports.propertyKeyTypes = new Set(["string", "number", "symbol"]);
391
- exports.primitiveTypes = new Set([
392
- "string",
393
- "number",
394
- "bigint",
395
- "boolean",
396
- "symbol",
397
- "undefined",
398
- ]);
399
- function escapeRegex(str) {
400
- return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
401
- }
402
- // zod-specific utils
403
- function clone(inst, def, params) {
404
- const cl = new inst._zod.constr(def ?? inst._zod.def);
405
- if (!def || params?.parent)
406
- cl._zod.parent = inst;
407
- return cl;
408
- }
409
- function normalizeParams(_params) {
410
- const params = _params;
411
- if (!params)
412
- return {};
413
- if (typeof params === "string")
414
- return { error: () => params };
415
- if (params?.message !== undefined) {
416
- if (params?.error !== undefined)
417
- throw new Error("Cannot specify both `message` and `error` params");
418
- params.error = params.message;
419
- }
420
- delete params.message;
421
- if (typeof params.error === "string")
422
- return { ...params, error: () => params.error };
423
- return params;
424
- }
425
- function createTransparentProxy(getter) {
426
- let target;
427
- return new Proxy({}, {
428
- get(_, prop, receiver) {
429
- target ?? (target = getter());
430
- return Reflect.get(target, prop, receiver);
431
- },
432
- set(_, prop, value, receiver) {
433
- target ?? (target = getter());
434
- return Reflect.set(target, prop, value, receiver);
435
- },
436
- has(_, prop) {
437
- target ?? (target = getter());
438
- return Reflect.has(target, prop);
439
- },
440
- deleteProperty(_, prop) {
441
- target ?? (target = getter());
442
- return Reflect.deleteProperty(target, prop);
443
- },
444
- ownKeys(_) {
445
- target ?? (target = getter());
446
- return Reflect.ownKeys(target);
447
- },
448
- getOwnPropertyDescriptor(_, prop) {
449
- target ?? (target = getter());
450
- return Reflect.getOwnPropertyDescriptor(target, prop);
451
- },
452
- defineProperty(_, prop, descriptor) {
453
- target ?? (target = getter());
454
- return Reflect.defineProperty(target, prop, descriptor);
455
- },
456
- });
457
- }
458
- function stringifyPrimitive(value) {
459
- if (typeof value === "bigint")
460
- return value.toString() + "n";
461
- if (typeof value === "string")
462
- return `"${value}"`;
463
- return `${value}`;
464
- }
465
- function optionalKeys(shape) {
466
- return Object.keys(shape).filter((k) => {
467
- return shape[k]._zod.optin !== undefined && shape[k]._zod.optout === "optional";
468
- });
469
- }
470
- // Wrapped in a `@__PURE__` IIFE: esbuild never tree-shakes a top-level initializer that contains a member access on `Number`, so the bare object literal survived into every bundle.
471
- exports.NUMBER_FORMAT_RANGES = (() => ({
472
- safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
473
- int32: [-2147483648, 2147483647],
474
- uint32: [0, 4294967295],
475
- float32: [-3.4028234663852886e38, 3.4028234663852886e38],
476
- float64: [-Number.MAX_VALUE, Number.MAX_VALUE],
477
- }))();
478
- exports.BIGINT_FORMAT_RANGES = {
479
- int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
480
- uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")],
481
- };
482
- function pick(schema, mask) {
483
- const currDef = schema._zod.def;
484
- const checks = currDef.checks;
485
- const hasChecks = checks && checks.length > 0;
486
- if (hasChecks) {
487
- throw new Error(".pick() cannot be used on object schemas containing refinements");
488
- }
489
- const newShape = {};
490
- mirrorShape(newShape, schema, maskedKeys(schema, mask));
491
- return clone(schema, mergeDefs(currDef, { shape: newShape, checks: [] }));
492
- }
493
- // the mask keys that select something, checked against the source's shape without resolving it
494
- function maskedKeys(schema, mask) {
495
- const raw = sourceShape(schema);
496
- const keys = [];
497
- // `for...in` skips symbols, so a symbol in the mask would select nothing
498
- for (const key of Reflect.ownKeys(mask)) {
499
- if (!Object.getOwnPropertyDescriptor(raw, key)?.enumerable) {
500
- throw new Error(`Unrecognized key: "${String(key)}"`);
501
- }
502
- if (mask[key])
503
- keys.push(key);
504
- }
505
- return keys;
506
- }
507
- function omit(schema, mask) {
508
- const currDef = schema._zod.def;
509
- const checks = currDef.checks;
510
- const hasChecks = checks && checks.length > 0;
511
- if (hasChecks) {
512
- throw new Error(".omit() cannot be used on object schemas containing refinements");
513
- }
514
- const omitted = new Set(maskedKeys(schema, mask));
515
- const newShape = {};
516
- mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)).filter((key) => !omitted.has(key)));
517
- return clone(schema, mergeDefs(currDef, { shape: newShape, checks: [] }));
518
- }
519
- function extend(schema, shape) {
520
- if (!isPlainObject(shape)) {
521
- throw new Error("Invalid input to extend: expected a plain object");
522
- }
523
- const checks = schema._zod.def.checks;
524
- const hasChecks = checks && checks.length > 0;
525
- if (hasChecks) {
526
- // Only throw if new shape overlaps with existing shape. Use getOwnPropertyDescriptor to check key existence without accessing values
527
- const existingShape = sourceShape(schema);
528
- for (const key of Reflect.ownKeys(shape)) {
529
- if (Object.getOwnPropertyDescriptor(existingShape, key) !== undefined) {
530
- throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
531
- }
532
- }
533
- }
534
- return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));
535
- }
536
- // the source's keys, then the caller's overlaid on top
537
- function extended(schema, shape) {
538
- const newShape = {};
539
- mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)));
540
- mirrorProps(newShape, shape);
541
- return newShape;
542
- }
543
- function safeExtend(schema, shape) {
544
- if (!isPlainObject(shape)) {
545
- throw new Error("Invalid input to safeExtend: expected a plain object");
546
- }
547
- return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));
548
- }
549
- function merge(a, b) {
550
- if (!b?._zod?.def) {
551
- throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
552
- }
553
- if (a._zod.def.checks?.length) {
554
- throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
555
- }
556
- const newShape = {};
557
- mirrorShape(newShape, a, Reflect.ownKeys(sourceShape(a)));
558
- mirrorShape(newShape, b, Reflect.ownKeys(sourceShape(b)));
559
- const def = mergeDefs(a._zod.def, {
560
- shape: newShape,
561
- get catchall() {
562
- return b._zod.def.catchall;
563
- },
564
- checks: b._zod.def.checks ?? [],
565
- });
566
- return clone(a, def);
567
- }
568
- function partial(Class, schema, mask, name = "partial") {
569
- const currDef = schema._zod.def;
570
- const checks = currDef.checks;
571
- const hasChecks = checks && checks.length > 0;
572
- if (hasChecks) {
573
- throw new Error(`.${name}() cannot be used on object schemas containing refinements`);
574
- }
575
- const selected = mask ? new Set(maskedKeys(schema, mask)) : undefined;
576
- const newShape = {};
577
- mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class &&
578
- ((value, key) => (selected && !selected.has(key) ? value : new Class({ type: "optional", innerType: value }))));
579
- return clone(schema, mergeDefs(schema._zod.def, { shape: newShape, checks: [] }));
580
- }
581
- function required(Class, schema, mask) {
582
- const selected = mask ? new Set(maskedKeys(schema, mask)) : undefined;
583
- const newShape = {};
584
- mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), (value, key) =>
585
- // overwrite with non-optional
586
- selected && !selected.has(key) ? value : new Class({ type: "nonoptional", innerType: value }));
587
- return clone(schema, mergeDefs(schema._zod.def, { shape: newShape }));
588
- }
589
- // invalid_type | too_big | too_small | invalid_format | not_multiple_of | unrecognized_keys | invalid_union | invalid_key | invalid_element | invalid_value | custom
590
- function aborted(x, startIndex = 0) {
591
- if (x.aborted === true)
592
- return true;
593
- for (let i = startIndex; i < x.issues.length; i++) {
594
- if (x.issues[i]?.continue !== true) {
595
- return true;
596
- }
597
- }
598
- return false;
599
- }
600
- // Checks for explicit abort (continue === false), as opposed to implicit abort (continue === undefined). Used to respect `abort: true` in .refine() even for checks that have a `when` function.
601
- function explicitlyAborted(x, startIndex = 0) {
602
- if (x.aborted === true)
603
- return true;
604
- for (let i = startIndex; i < x.issues.length; i++) {
605
- if (x.issues[i]?.continue === false) {
606
- return true;
607
- }
608
- }
609
- return false;
610
- }
611
- function prefixIssues(path, issues) {
612
- return issues.map((iss) => {
613
- var _a;
614
- (_a = iss).path ?? (_a.path = []);
615
- iss.path.unshift(path);
616
- return iss;
617
- });
618
- }
619
- function unwrapMessage(message) {
620
- return typeof message === "string" ? message : message?.message;
621
- }
622
- /* A check holds no link back to the schema it is attached to — the same check instance is shared by every clone of that schema — so the owner is stamped onto the issues a check just raised, at the only point where both are in scope. Runs on the failure path only; `start` is the issue count from before the check ran. */
623
- function attachSchema(issues, start, inst) {
624
- var _a;
625
- for (let i = start; i < issues.length; i++) {
626
- (_a = issues[i]).schema ?? (_a.schema = inst);
627
- }
628
- }
629
- function finalizeIssue(iss, ctx, config) {
630
- var _a;
631
- // A schema that raised an issue itself owns it outright, and outranks any stamp an enclosing check left in `attachSchema`. String formats and z.custom() are schema and check at once, so when they act as a check they defer to that stamp instead.
632
- const traits = iss.inst?._zod?.traits;
633
- if (traits?.has("$ZodType")) {
634
- if (traits.has("$ZodCheck"))
635
- (_a = iss).schema ?? (_a.schema = iss.inst);
636
- else
637
- iss.schema = iss.inst;
638
- }
639
- // Decreasing specificity, first map to return a message wins. `inst` is whatever raised the issue, so a check's own map outranks the owning schema's.
640
- const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : undefined;
641
- const message = iss.message
642
- ? iss.message
643
- : (unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ??
644
- unwrapMessage(schemaError?.(iss)) ??
645
- unwrapMessage(ctx?.error?.(iss)) ??
646
- unwrapMessage(config.customError?.(iss)) ??
647
- unwrapMessage(config.localeError?.(iss)) ??
648
- "Invalid input");
649
- // an explicit own-key copy beats object rest with excluded keys, which v8 routes through a generic runtime call; Object.keys rather than for-in so an issue pushed with a prototype does not leak inherited keys, and an own __proto__ key is dropped rather than assigned through the setter
650
- const full = {};
651
- for (const k of Object.keys(iss)) {
652
- if (k === "inst" || k === "schema" || k === "continue" || k === "input" || k === "__proto__")
653
- continue;
654
- full[k] = iss[k];
655
- }
656
- full.path ?? (full.path = []);
657
- full.message = message;
658
- if (ctx?.reportInput) {
659
- full.input = iss.input;
660
- }
661
- return full;
662
- }
663
- function getSizableOrigin(input) {
664
- if (input instanceof Set)
665
- return "set";
666
- if (input instanceof Map)
667
- return "map";
668
- // @ts-ignore
669
- if (input instanceof File)
670
- return "file";
671
- return "unknown";
672
- }
673
- const highSurrogate = /[\uD800-\uDBFF]/;
674
- // Code points in `str`: a surrogate pair counts once, a lone surrogate as itself. Hand-rolled because the string iterator allocates and runs ~250x slower on this path; the regex probe exits ~50x quicker for a string with no astral characters.
675
- function codePointLength(str) {
676
- const units = str.length;
677
- if (!highSurrogate.test(str))
678
- return units;
679
- let count = units;
680
- for (let i = 0; i < units - 1; i++) {
681
- if ((str.charCodeAt(i) & 0xfc00) === 0xd800 && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
682
- count--;
683
- i++;
684
- }
685
- }
686
- return count;
687
- }
688
- function getLengthableOrigin(input) {
689
- if (Array.isArray(input))
690
- return "array";
691
- if (typeof input === "string")
692
- return "string";
693
- return "unknown";
694
- }
695
- function parsedType(data) {
696
- const t = typeof data;
697
- switch (t) {
698
- case "number": {
699
- return Number.isNaN(data) ? "nan" : "number";
700
- }
701
- case "object": {
702
- if (data === null) {
703
- return "null";
704
- }
705
- if (Array.isArray(data)) {
706
- return "array";
707
- }
708
- const obj = data;
709
- if (obj && Object.getPrototypeOf(obj) !== Object.prototype && "constructor" in obj && obj.constructor) {
710
- return obj.constructor.name;
711
- }
712
- }
713
- }
714
- return t;
715
- }
716
- function issue(...args) {
717
- const [iss, input, inst] = args;
718
- if (typeof iss === "string") {
719
- return {
720
- message: iss,
721
- code: "custom",
722
- input,
723
- inst,
724
- };
725
- }
726
- return { ...iss };
727
- }
728
- function cleanEnum(obj) {
729
- return Object.entries(obj)
730
- .filter(([k, _]) => {
731
- // return true if NaN, meaning it's not a number, thus a string key
732
- return Number.isNaN(Number.parseInt(k, 10));
733
- })
734
- .map((el) => el[1]);
735
- }
736
- // Codec utility functions
737
- function base64ToUint8Array(base64) {
738
- const binaryString = atob(base64);
739
- const bytes = new Uint8Array(binaryString.length);
740
- for (let i = 0; i < binaryString.length; i++) {
741
- bytes[i] = binaryString.charCodeAt(i);
742
- }
743
- return bytes;
744
- }
745
- function uint8ArrayToBase64(bytes) {
746
- let binaryString = "";
747
- for (let i = 0; i < bytes.length; i++) {
748
- binaryString += String.fromCharCode(bytes[i]);
749
- }
750
- return btoa(binaryString);
751
- }
752
- function base64urlToUint8Array(base64url) {
753
- const base64 = base64url.replace(/-/g, "+").replace(/_/g, "/");
754
- const padding = "=".repeat((4 - (base64.length % 4)) % 4);
755
- return base64ToUint8Array(base64 + padding);
756
- }
757
- function uint8ArrayToBase64url(bytes) {
758
- return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
759
- }
760
- function hexToUint8Array(hex) {
761
- const cleanHex = hex.replace(/^0x/, "");
762
- if (cleanHex.length % 2 !== 0) {
763
- throw new Error("Invalid hex string length");
764
- }
765
- const bytes = new Uint8Array(cleanHex.length / 2);
766
- for (let i = 0; i < cleanHex.length; i += 2) {
767
- bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
768
- }
769
- return bytes;
770
- }
771
- function uint8ArrayToHex(bytes) {
772
- return Array.from(bytes)
773
- .map((b) => b.toString(16).padStart(2, "0"))
774
- .join("");
775
- }
776
- // instanceof
777
- class Class {
778
- constructor(..._args) { }
779
- }
780
- exports.Class = Class;
781
- ////////// PROTOTYPE INSTALLERS //////////
782
- //
783
- // Members live on the prototype and materialize per instance on first read, which keeps own-property count under the step where V8 stops using inline slots. Changing anything here means re-measuring runtime, memory and bundle size together — see "The three axes" in AGENTS.md.
784
- /**
785
- * Installs a trait's members on its prototype. Each value builds that member for the instance on first read; the built value shadows the accessor as an own property, so a detached `const { parse } = schema` keeps working.
786
- *
787
- * Call this from a `proto` initializer, which runs once per prototype — never per instance.
788
- */
789
- function members(proto, table) {
790
- for (const key in table) {
791
- const desc = Object.getOwnPropertyDescriptor(table, key);
792
- // a getter installs as written, so it stays live: `description` reads through to the registry on every access. not enumerable: an object literal's is, and a prototype member never was
793
- if (desc.get)
794
- Object.defineProperty(proto, key, { ...desc, enumerable: false });
795
- // a method materializes bound on first read, which is what keeps a detached member working: `const opt = schema.optional; opt()`
796
- else
797
- defineBound(proto, key, desc.value);
798
- }
799
- }
800
- /** Shadows a prototype member with an own value, so a getter that builds from the instance runs once. */
801
- function own(inst, key, value, enumerable = true) {
802
- Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });
803
- return value;
804
- }
805
- /** Like {@link own}, for a member that was never an own data property and has to stay out of `Object.keys`. */
806
- function hide(inst, key, value) {
807
- return own(inst, key, value, false);
808
- }
809
- /** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
810
- function derived(computes, table) {
811
- for (const key in computes) {
812
- const compute = computes[key];
813
- // an object literal's accessor is configurable and enumerable, and `members` copies the descriptor as written
814
- Object.defineProperty(table, key, {
815
- configurable: true,
816
- enumerable: true,
817
- get() {
818
- return own(this, key, compute(this));
819
- },
820
- set(value) {
821
- own(this, key, value);
822
- },
823
- });
824
- }
825
- return table;
826
- }
827
- function defineBound(proto, key, fn) {
828
- Object.defineProperty(proto, key, {
829
- configurable: true,
830
- get() {
831
- // vitest's spyOn calls a prototype getter bare to find the function it wraps, so a nullish receiver answers the raw method
832
- return this == null ? fn : own(this, key, fn.bind(this));
833
- },
834
- set(value) {
835
- own(this, key, value);
836
- },
837
- });
838
- }
839
- /** Returns the prototype to install on, or `undefined` if this group is already installed on it. */
840
- function claim(inst, sentinel) {
841
- const proto = Object.getPrototypeOf(inst);
842
- // Runs on every construction, so `in` rather than the costlier `hasOwnProperty.call`. Sentinels are keys the group itself defines.
843
- return sentinel in proto ? undefined : proto;
844
- }
845
- // The internals whose init chain is installing. A second call for the same one is a derived constructor overriding its base, so it must not construct another schema in between or the override is dropped.
846
- let installing;
847
- // Set while a getter is running, so a value that resolved through a recursion break is not memoized. One shared descriptor shadows the key for the duration, which costs no per-key allocation.
848
- let broke = false;
849
- const breaker = {
850
- configurable: true,
851
- get() {
852
- broke = true;
853
- return undefined;
854
- },
855
- };
856
- /**
857
- * Installs a lazily-derived internal on the `_zod` prototype of `inst`'s
858
- * constructor, computed from the internals object itself and cached there on
859
- * first read. One accessor per constructor rather than one per instance.
860
- */
861
- function defineLazyInternal(inst, key, compute) {
862
- const proto = Object.getPrototypeOf(inst._zod);
863
- if (key in proto && installing !== inst._zod) {
864
- // A repeat construction: everything is installed already. Cleared here so the reference is not held past the first construction of every type.
865
- installing = undefined;
866
- return;
867
- }
868
- installing = inst._zod;
869
- Object.defineProperty(proto, key, {
870
- configurable: true,
871
- get() {
872
- // Shadowed before computing so a re-entrant read from a recursive schema resolves to undefined instead of running the getter again.
873
- Object.defineProperty(this, key, breaker);
874
- const outer = broke;
875
- broke = false;
876
- try {
877
- const value = compute(this);
878
- // A result that resolved through a recursion break is recomputed once the graph is complete; everything else memoizes, undefined included.
879
- if (broke)
880
- delete this[key];
881
- else
882
- Object.defineProperty(this, key, { configurable: true, writable: true, value });
883
- broke = broke || outer;
884
- return value;
885
- }
886
- catch (err) {
887
- // A compute that threw memoizes nothing, so a later read runs it again and fails the same way. The shadow goes with it, since leaving it installed would answer undefined for every later read.
888
- delete this[key];
889
- broke = broke || outer;
890
- throw err;
891
- }
892
- },
893
- set(value) {
894
- Object.defineProperty(this, key, { configurable: true, writable: true, value });
895
- },
896
- });
897
- }
898
- /**
899
- * Installs `key` on `inst`'s prototype, computed by `make` on first read and cached there as an own
900
- * data property. One accessor per constructor rather than one per instance, because an own accessor
901
- * puts every instance after the first into v8 dictionary mode. The key doubles as the sentinel.
902
- */
903
- function installLazyProp(inst, key, make, enumerable) {
904
- const proto = claim(inst, key);
905
- if (!proto)
906
- return;
907
- Object.defineProperty(proto, key, {
908
- configurable: true,
909
- get() {
910
- // Shadowed before computing, so a re-entrant read from a self-referential shape resolves to undefined instead of running the getter again. A data property rather than an accessor: an own accessor is the dictionary-mode transition this exists to avoid.
911
- const desc = { configurable: true, writable: true, enumerable, value: undefined };
912
- Object.defineProperty(this, key, desc);
913
- // a compute that throws leaves the shadow behind, so later reads answer undefined instead of re-throwing; `defineLazy` did the same, and `defineLazyInternal`'s delete-on-catch would cost bytes in every bundle for a case only a throwing user getter reaches
914
- desc.value = make(this);
915
- Object.defineProperty(this, key, desc);
916
- return desc.value;
917
- },
918
- set(value) {
919
- Object.defineProperty(this, key, { configurable: true, writable: true, enumerable, value });
920
- },
921
- });
922
- }
923
- /** Marks the thunk `_catch` synthesises for a constant catch value. `Function.length` cannot tell that thunk from a user callback — rest and defaulted parameters both report arity 0 — and a user callback reads `ctx.error`, whose issues only finalize correctly against the caller's per-parse error map. Provenance can say what arity cannot. A plain string key rather than `Symbol.for`, whose call at module scope no bundler can prove pure — the same shape that anchored `urlCanParse` into every build. */
924
- exports.CONSTANT_CATCH = "~constantCatch";
925
- /** Wraps a constant catch value in a thunk tagged with {@link CONSTANT_CATCH}. */
926
- function constantCatch(value) {
927
- const fn = () => value;
928
- fn[exports.CONSTANT_CATCH] = true;
929
- return fn;
930
- }
931
-
932
- // seal-cjs-exports
933
- (function () {
934
- var keys = Object.getOwnPropertyNames(exports);
935
- for (var i = 0; i < keys.length; i++) {
936
- var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
937
- if (!desc || !desc.get || !desc.configurable) continue;
938
- var value;
939
- try {
940
- value = desc.get();
941
- } catch (e) {
942
- continue;
943
- }
944
- // a circular require may not have settled this one yet, so leave it live
945
- if (value === undefined) continue;
946
- Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
947
- }
948
- Object.freeze(exports);
949
- })();