@teammy/server 0.0.3 → 0.0.4

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 (3226) hide show
  1. package/README.md +3 -3
  2. package/node_modules/@fastify/accept-negotiator/.gitattributes +2 -0
  3. package/node_modules/@fastify/accept-negotiator/.github/dependabot.yml +53 -0
  4. package/node_modules/@fastify/accept-negotiator/.github/workflows/ci.yml +33 -0
  5. package/node_modules/@fastify/accept-negotiator/.github/workflows/lock-threads.yml +19 -0
  6. package/node_modules/@fastify/accept-negotiator/.github/workflows/release.yml +24 -0
  7. package/node_modules/@fastify/accept-negotiator/.nycrc +15 -0
  8. package/node_modules/@fastify/accept-negotiator/LICENSE +21 -0
  9. package/node_modules/@fastify/accept-negotiator/README.md +52 -0
  10. package/node_modules/@fastify/accept-negotiator/benchmarks/Negotiator.js +20 -0
  11. package/node_modules/@fastify/accept-negotiator/benchmarks/benchCases.js +26 -0
  12. package/node_modules/@fastify/accept-negotiator/benchmarks/negotiate.js +24 -0
  13. package/node_modules/@fastify/accept-negotiator/eslint.config.js +6 -0
  14. package/node_modules/@fastify/accept-negotiator/index.js +170 -0
  15. package/node_modules/@fastify/accept-negotiator/package.json +70 -0
  16. package/node_modules/@fastify/accept-negotiator/test/Negotiator.test.js +28 -0
  17. package/node_modules/@fastify/accept-negotiator/test/negotiate.test.js +13 -0
  18. package/node_modules/@fastify/accept-negotiator/test/testCases.js +52 -0
  19. package/node_modules/@fastify/accept-negotiator/types/index.d.ts +26 -0
  20. package/node_modules/@fastify/accept-negotiator/types/index.tst.ts +31 -0
  21. package/node_modules/@fastify/ajv-compiler/.gitattributes +2 -0
  22. package/node_modules/@fastify/ajv-compiler/.github/dependabot.yml +53 -0
  23. package/node_modules/@fastify/ajv-compiler/.github/workflows/ci.yml +33 -0
  24. package/node_modules/@fastify/ajv-compiler/.github/workflows/lock-threads.yml +19 -0
  25. package/node_modules/@fastify/ajv-compiler/.github/workflows/release.yml +24 -0
  26. package/node_modules/@fastify/ajv-compiler/LICENSE +21 -0
  27. package/node_modules/@fastify/ajv-compiler/README.md +237 -0
  28. package/node_modules/@fastify/ajv-compiler/benchmark/small-object.mjs +37 -0
  29. package/node_modules/@fastify/ajv-compiler/eslint.config.js +6 -0
  30. package/node_modules/@fastify/ajv-compiler/index.js +53 -0
  31. package/node_modules/@fastify/ajv-compiler/lib/default-ajv-options.js +14 -0
  32. package/node_modules/@fastify/ajv-compiler/lib/serializer-compiler.js +27 -0
  33. package/node_modules/@fastify/ajv-compiler/lib/validator-compiler.js +58 -0
  34. package/node_modules/@fastify/ajv-compiler/package.json +84 -0
  35. package/node_modules/@fastify/ajv-compiler/standalone.js +44 -0
  36. package/node_modules/@fastify/ajv-compiler/test/.gitkeep +0 -0
  37. package/node_modules/@fastify/ajv-compiler/test/duplicated-id-compile.test.js +55 -0
  38. package/node_modules/@fastify/ajv-compiler/test/index.test.js +307 -0
  39. package/node_modules/@fastify/ajv-compiler/test/plugins.test.js +246 -0
  40. package/node_modules/@fastify/ajv-compiler/test/serialization.test.js +279 -0
  41. package/node_modules/@fastify/ajv-compiler/test/standalone.test.js +203 -0
  42. package/node_modules/@fastify/ajv-compiler/types/index.d.ts +87 -0
  43. package/node_modules/@fastify/ajv-compiler/types/index.tst.ts +344 -0
  44. package/node_modules/@fastify/deepmerge/.gitattributes +2 -0
  45. package/node_modules/@fastify/deepmerge/.github/dependabot.yml +53 -0
  46. package/node_modules/@fastify/deepmerge/.github/workflows/ci.yml +33 -0
  47. package/node_modules/@fastify/deepmerge/.github/workflows/lock-threads.yml +19 -0
  48. package/node_modules/@fastify/deepmerge/.github/workflows/release.yml +24 -0
  49. package/node_modules/@fastify/deepmerge/.taprc +5 -0
  50. package/node_modules/@fastify/deepmerge/LICENSE +21 -0
  51. package/node_modules/@fastify/deepmerge/README.md +193 -0
  52. package/node_modules/@fastify/deepmerge/benchmark/bench.all.js +53 -0
  53. package/node_modules/@fastify/deepmerge/benchmark/bench.compare.detailed.js +148 -0
  54. package/node_modules/@fastify/deepmerge/benchmark/bench.compare.js +94 -0
  55. package/node_modules/@fastify/deepmerge/benchmark/bench.js +53 -0
  56. package/node_modules/@fastify/deepmerge/benchmark/package.json +23 -0
  57. package/node_modules/@fastify/deepmerge/eslint.config.js +6 -0
  58. package/node_modules/@fastify/deepmerge/index.js +186 -0
  59. package/node_modules/@fastify/deepmerge/package.json +68 -0
  60. package/node_modules/@fastify/deepmerge/test/all.test.js +73 -0
  61. package/node_modules/@fastify/deepmerge/test/browser.test.js +21 -0
  62. package/node_modules/@fastify/deepmerge/test/index.test.js +605 -0
  63. package/node_modules/@fastify/deepmerge/test/is-mergeable-object.test.js +68 -0
  64. package/node_modules/@fastify/deepmerge/test/merge-proto-objects.test.js +128 -0
  65. package/node_modules/@fastify/deepmerge/test/mergearray.test.js +119 -0
  66. package/node_modules/@fastify/deepmerge/test/skipundefined.test.js +57 -0
  67. package/node_modules/@fastify/deepmerge/test/symbol.test.js +48 -0
  68. package/node_modules/@fastify/deepmerge/types/index.d.ts +196 -0
  69. package/node_modules/@fastify/deepmerge/types/index.tst.ts +139 -0
  70. package/node_modules/@fastify/error/.gitattributes +2 -0
  71. package/node_modules/@fastify/error/.github/dependabot.yml +53 -0
  72. package/node_modules/@fastify/error/.github/workflows/ci.yml +33 -0
  73. package/node_modules/@fastify/error/.github/workflows/lock-threads.yml +19 -0
  74. package/node_modules/@fastify/error/.github/workflows/release.yml +24 -0
  75. package/node_modules/@fastify/error/LICENSE +21 -0
  76. package/node_modules/@fastify/error/README.md +140 -0
  77. package/node_modules/@fastify/error/benchmarks/create.js +9 -0
  78. package/node_modules/@fastify/error/benchmarks/instantiate.js +18 -0
  79. package/node_modules/@fastify/error/benchmarks/no-stack.js +13 -0
  80. package/node_modules/@fastify/error/benchmarks/toString.js +11 -0
  81. package/node_modules/@fastify/error/eslint.config.js +6 -0
  82. package/node_modules/@fastify/error/index.js +100 -0
  83. package/node_modules/@fastify/error/package.json +70 -0
  84. package/node_modules/@fastify/error/test/index.test.js +232 -0
  85. package/node_modules/@fastify/error/test/instanceof.test.js +263 -0
  86. package/node_modules/@fastify/error/types/index.d.ts +49 -0
  87. package/node_modules/@fastify/error/types/index.tst.ts +153 -0
  88. package/node_modules/@fastify/fast-json-stringify-compiler/.gitattributes +2 -0
  89. package/node_modules/@fastify/fast-json-stringify-compiler/.github/dependabot.yml +53 -0
  90. package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/ci.yml +33 -0
  91. package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/lock-threads.yml +19 -0
  92. package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/release.yml +24 -0
  93. package/node_modules/@fastify/fast-json-stringify-compiler/LICENSE +21 -0
  94. package/node_modules/@fastify/fast-json-stringify-compiler/README.md +129 -0
  95. package/node_modules/@fastify/fast-json-stringify-compiler/eslint.config.js +6 -0
  96. package/node_modules/@fastify/fast-json-stringify-compiler/index.js +8 -0
  97. package/node_modules/@fastify/fast-json-stringify-compiler/package.json +66 -0
  98. package/node_modules/@fastify/fast-json-stringify-compiler/standalone.js +58 -0
  99. package/node_modules/@fastify/fast-json-stringify-compiler/test/duplicate-schema.test.js +26 -0
  100. package/node_modules/@fastify/fast-json-stringify-compiler/test/plugin.test.js +78 -0
  101. package/node_modules/@fastify/fast-json-stringify-compiler/test/standalone.test.js +230 -0
  102. package/node_modules/@fastify/fast-json-stringify-compiler/types/index.d.ts +41 -0
  103. package/node_modules/@fastify/fast-json-stringify-compiler/types/index.tst.ts +144 -0
  104. package/node_modules/@fastify/forwarded/.github/dependabot.yml +53 -0
  105. package/node_modules/@fastify/forwarded/.github/workflows/ci.yml +33 -0
  106. package/node_modules/@fastify/forwarded/.github/workflows/lock-threads.yml +19 -0
  107. package/node_modules/@fastify/forwarded/.github/workflows/release.yml +24 -0
  108. package/node_modules/@fastify/forwarded/LICENSE +22 -0
  109. package/node_modules/@fastify/forwarded/README.md +43 -0
  110. package/node_modules/@fastify/forwarded/benchmark/combined.js +30 -0
  111. package/node_modules/@fastify/forwarded/benchmark/index.js +26 -0
  112. package/node_modules/@fastify/forwarded/eslint.config.js +6 -0
  113. package/node_modules/@fastify/forwarded/index.js +59 -0
  114. package/node_modules/@fastify/forwarded/package.json +69 -0
  115. package/node_modules/@fastify/forwarded/test/test.js +148 -0
  116. package/node_modules/@fastify/forwarded/types/index.d.ts +14 -0
  117. package/node_modules/@fastify/forwarded/types/index.tst.ts +17 -0
  118. package/node_modules/@fastify/merge-json-schemas/.gitattributes +2 -0
  119. package/node_modules/@fastify/merge-json-schemas/.github/dependabot.yml +53 -0
  120. package/node_modules/@fastify/merge-json-schemas/.github/workflows/ci.yml +33 -0
  121. package/node_modules/@fastify/merge-json-schemas/.github/workflows/lock-threads.yml +19 -0
  122. package/node_modules/@fastify/merge-json-schemas/.github/workflows/release.yml +24 -0
  123. package/node_modules/@fastify/merge-json-schemas/LICENSE +21 -0
  124. package/node_modules/@fastify/merge-json-schemas/README.md +119 -0
  125. package/node_modules/@fastify/merge-json-schemas/eslint.config.js +6 -0
  126. package/node_modules/@fastify/merge-json-schemas/index.js +356 -0
  127. package/node_modules/@fastify/merge-json-schemas/lib/errors.js +36 -0
  128. package/node_modules/@fastify/merge-json-schemas/lib/resolvers.js +127 -0
  129. package/node_modules/@fastify/merge-json-schemas/package.json +66 -0
  130. package/node_modules/@fastify/merge-json-schemas/test/additional-items.test.js +164 -0
  131. package/node_modules/@fastify/merge-json-schemas/test/additional-properties.test.js +129 -0
  132. package/node_modules/@fastify/merge-json-schemas/test/all-of.test.js +43 -0
  133. package/node_modules/@fastify/merge-json-schemas/test/any-of.test.js +81 -0
  134. package/node_modules/@fastify/merge-json-schemas/test/const.test.js +58 -0
  135. package/node_modules/@fastify/merge-json-schemas/test/contains.test.js +55 -0
  136. package/node_modules/@fastify/merge-json-schemas/test/custom-resolvers.test.js +50 -0
  137. package/node_modules/@fastify/merge-json-schemas/test/default-resolver.test.js +111 -0
  138. package/node_modules/@fastify/merge-json-schemas/test/default.test.js +50 -0
  139. package/node_modules/@fastify/merge-json-schemas/test/definitions.test.js +46 -0
  140. package/node_modules/@fastify/merge-json-schemas/test/defs.test.js +46 -0
  141. package/node_modules/@fastify/merge-json-schemas/test/dependencies.test.js +75 -0
  142. package/node_modules/@fastify/merge-json-schemas/test/dependent-required.test.js +75 -0
  143. package/node_modules/@fastify/merge-json-schemas/test/dependent-schemas.test.js +76 -0
  144. package/node_modules/@fastify/merge-json-schemas/test/enum.test.js +44 -0
  145. package/node_modules/@fastify/merge-json-schemas/test/exclusive-maximum.test.js +30 -0
  146. package/node_modules/@fastify/merge-json-schemas/test/exclusive-minimum.test.js +30 -0
  147. package/node_modules/@fastify/merge-json-schemas/test/format.test.js +36 -0
  148. package/node_modules/@fastify/merge-json-schemas/test/id.test.js +22 -0
  149. package/node_modules/@fastify/merge-json-schemas/test/if-then-else.test.js +550 -0
  150. package/node_modules/@fastify/merge-json-schemas/test/items.test.js +152 -0
  151. package/node_modules/@fastify/merge-json-schemas/test/max-items.test.js +30 -0
  152. package/node_modules/@fastify/merge-json-schemas/test/max-length.test.js +30 -0
  153. package/node_modules/@fastify/merge-json-schemas/test/max-properties.test.js +30 -0
  154. package/node_modules/@fastify/merge-json-schemas/test/maximum.test.js +30 -0
  155. package/node_modules/@fastify/merge-json-schemas/test/merge-schema.test.js +29 -0
  156. package/node_modules/@fastify/merge-json-schemas/test/min-items.test.js +30 -0
  157. package/node_modules/@fastify/merge-json-schemas/test/min-length.test.js +30 -0
  158. package/node_modules/@fastify/merge-json-schemas/test/min-properties.test.js +30 -0
  159. package/node_modules/@fastify/merge-json-schemas/test/minimum.test.js +30 -0
  160. package/node_modules/@fastify/merge-json-schemas/test/multiple-of.test.js +36 -0
  161. package/node_modules/@fastify/merge-json-schemas/test/not.test.js +29 -0
  162. package/node_modules/@fastify/merge-json-schemas/test/nullable.test.js +30 -0
  163. package/node_modules/@fastify/merge-json-schemas/test/one-of.test.js +144 -0
  164. package/node_modules/@fastify/merge-json-schemas/test/properties.test.js +312 -0
  165. package/node_modules/@fastify/merge-json-schemas/test/property-names.test.js +49 -0
  166. package/node_modules/@fastify/merge-json-schemas/test/required.test.js +30 -0
  167. package/node_modules/@fastify/merge-json-schemas/test/type.test.js +52 -0
  168. package/node_modules/@fastify/merge-json-schemas/test/unique-items.test.js +38 -0
  169. package/node_modules/@fastify/merge-json-schemas/test/utils.js +9 -0
  170. package/node_modules/@fastify/merge-json-schemas/types/index.d.ts +61 -0
  171. package/node_modules/@fastify/merge-json-schemas/types/index.tst.ts +53 -0
  172. package/node_modules/@fastify/proxy-addr/.gitattributes +2 -0
  173. package/node_modules/@fastify/proxy-addr/.github/dependabot.yml +53 -0
  174. package/node_modules/@fastify/proxy-addr/.github/workflows/ci.yml +33 -0
  175. package/node_modules/@fastify/proxy-addr/.github/workflows/lock-threads.yml +19 -0
  176. package/node_modules/@fastify/proxy-addr/.github/workflows/release.yml +24 -0
  177. package/node_modules/@fastify/proxy-addr/LICENSE +22 -0
  178. package/node_modules/@fastify/proxy-addr/README.md +141 -0
  179. package/node_modules/@fastify/proxy-addr/benchmark/compiling.js +50 -0
  180. package/node_modules/@fastify/proxy-addr/benchmark/index.js +30 -0
  181. package/node_modules/@fastify/proxy-addr/benchmark/kind.js +57 -0
  182. package/node_modules/@fastify/proxy-addr/benchmark/matching.js +78 -0
  183. package/node_modules/@fastify/proxy-addr/eslint.config.js +6 -0
  184. package/node_modules/@fastify/proxy-addr/index.js +363 -0
  185. package/node_modules/@fastify/proxy-addr/package.json +73 -0
  186. package/node_modules/@fastify/proxy-addr/test/all.test.js +55 -0
  187. package/node_modules/@fastify/proxy-addr/test/base.test.js +400 -0
  188. package/node_modules/@fastify/proxy-addr/test/compile.test.js +58 -0
  189. package/node_modules/@fastify/proxy-addr/types/index.d.ts +18 -0
  190. package/node_modules/@fastify/proxy-addr/types/index.tst.ts +33 -0
  191. package/node_modules/@fastify/send/.gitattributes +2 -0
  192. package/node_modules/@fastify/send/.github/dependabot.yml +53 -0
  193. package/node_modules/@fastify/send/.github/workflows/ci.yml +33 -0
  194. package/node_modules/@fastify/send/.github/workflows/lock-threads.yml +19 -0
  195. package/node_modules/@fastify/send/.github/workflows/release.yml +24 -0
  196. package/node_modules/@fastify/send/HISTORY.md +521 -0
  197. package/node_modules/@fastify/send/LICENSE +23 -0
  198. package/node_modules/@fastify/send/README.md +318 -0
  199. package/node_modules/@fastify/send/benchmarks/collapseLeadingSlashes.js +13 -0
  200. package/node_modules/@fastify/send/benchmarks/containsDotFile.js +15 -0
  201. package/node_modules/@fastify/send/benchmarks/isUtf8MimeType.js +23 -0
  202. package/node_modules/@fastify/send/benchmarks/normalizeList.js +14 -0
  203. package/node_modules/@fastify/send/benchmarks/parseBytesRange.js +15 -0
  204. package/node_modules/@fastify/send/eslint.config.js +6 -0
  205. package/node_modules/@fastify/send/examples/index.html +1 -0
  206. package/node_modules/@fastify/send/examples/simple.js +15 -0
  207. package/node_modules/@fastify/send/index.js +28 -0
  208. package/node_modules/@fastify/send/lib/collapseLeadingSlashes.js +25 -0
  209. package/node_modules/@fastify/send/lib/containsDotFile.js +23 -0
  210. package/node_modules/@fastify/send/lib/contentRange.js +18 -0
  211. package/node_modules/@fastify/send/lib/createHtmlDocument.js +29 -0
  212. package/node_modules/@fastify/send/lib/createHttpError.js +23 -0
  213. package/node_modules/@fastify/send/lib/isUtf8MimeType.js +12 -0
  214. package/node_modules/@fastify/send/lib/normalizeList.js +28 -0
  215. package/node_modules/@fastify/send/lib/parseBytesRange.js +133 -0
  216. package/node_modules/@fastify/send/lib/parseTokenList.js +46 -0
  217. package/node_modules/@fastify/send/lib/send.js +742 -0
  218. package/node_modules/@fastify/send/package.json +76 -0
  219. package/node_modules/@fastify/send/test/collapseLeadingSlashes.test.js +22 -0
  220. package/node_modules/@fastify/send/test/containsDotFile.test.js +18 -0
  221. package/node_modules/@fastify/send/test/fixtures/.hidden.txt +1 -0
  222. package/node_modules/@fastify/send/test/fixtures/.mine/.hidden.txt +1 -0
  223. package/node_modules/@fastify/send/test/fixtures/.mine/name.txt +1 -0
  224. package/node_modules/@fastify/send/test/fixtures/do..ts.txt +1 -0
  225. package/node_modules/@fastify/send/test/fixtures/empty.txt +0 -0
  226. package/node_modules/@fastify/send/test/fixtures/images/node-js.png +0 -0
  227. package/node_modules/@fastify/send/test/fixtures/name.d/name.txt +1 -0
  228. package/node_modules/@fastify/send/test/fixtures/name.dir/name.txt +1 -0
  229. package/node_modules/@fastify/send/test/fixtures/name.html +1 -0
  230. package/node_modules/@fastify/send/test/fixtures/name.txt +1 -0
  231. package/node_modules/@fastify/send/test/fixtures/no_ext +1 -0
  232. package/node_modules/@fastify/send/test/fixtures/nums.txt +1 -0
  233. package/node_modules/@fastify/send/test/fixtures/pets/.hidden.txt +1 -0
  234. package/node_modules/@fastify/send/test/fixtures/pets/index.html +3 -0
  235. package/node_modules/@fastify/send/test/fixtures/snow /342/230/203/index.html +0 -0
  236. package/node_modules/@fastify/send/test/fixtures/some thing.txt +1 -0
  237. package/node_modules/@fastify/send/test/fixtures/thing.html.html +1 -0
  238. package/node_modules/@fastify/send/test/fixtures/tobi.html +1 -0
  239. package/node_modules/@fastify/send/test/isUtf8MimeType.test.js +22 -0
  240. package/node_modules/@fastify/send/test/mime.test.js +56 -0
  241. package/node_modules/@fastify/send/test/normalizeList.test.js +28 -0
  242. package/node_modules/@fastify/send/test/onFile.test.js +247 -0
  243. package/node_modules/@fastify/send/test/parseBytesRange.test.js +103 -0
  244. package/node_modules/@fastify/send/test/send.1.test.js +868 -0
  245. package/node_modules/@fastify/send/test/send.2.test.js +977 -0
  246. package/node_modules/@fastify/send/test/send.3.test.js +133 -0
  247. package/node_modules/@fastify/send/test/utils.js +36 -0
  248. package/node_modules/@fastify/send/types/index.d.ts +173 -0
  249. package/node_modules/@fastify/send/types/index.tst.ts +75 -0
  250. package/node_modules/@fastify/static/.gitattributes +2 -0
  251. package/node_modules/@fastify/static/.github/dependabot.yml +53 -0
  252. package/node_modules/@fastify/static/.github/workflows/ci.yml +33 -0
  253. package/node_modules/@fastify/static/.github/workflows/lock-threads.yml +19 -0
  254. package/node_modules/@fastify/static/.github/workflows/release.yml +24 -0
  255. package/node_modules/@fastify/static/LICENSE +21 -0
  256. package/node_modules/@fastify/static/README.md +571 -0
  257. package/node_modules/@fastify/static/eslint.config.js +7 -0
  258. package/node_modules/@fastify/static/example/public/.hidden/sample.json +1 -0
  259. package/node_modules/@fastify/static/example/public/images/sample.jpg +0 -0
  260. package/node_modules/@fastify/static/example/public/index.css +9 -0
  261. package/node_modules/@fastify/static/example/public/index.html +11 -0
  262. package/node_modules/@fastify/static/example/public/index.js +8 -0
  263. package/node_modules/@fastify/static/example/public2/test.css +4 -0
  264. package/node_modules/@fastify/static/example/public2/test.html +8 -0
  265. package/node_modules/@fastify/static/example/server-benchmark.js +39 -0
  266. package/node_modules/@fastify/static/example/server-compress.js +15 -0
  267. package/node_modules/@fastify/static/example/server-dir-list.js +38 -0
  268. package/node_modules/@fastify/static/example/server-hidden-file.js +15 -0
  269. package/node_modules/@fastify/static/example/server.js +13 -0
  270. package/node_modules/@fastify/static/index.js +1029 -0
  271. package/node_modules/@fastify/static/lib/dirList.js +232 -0
  272. package/node_modules/@fastify/static/lib/errors.js +30 -0
  273. package/node_modules/@fastify/static/package.json +87 -0
  274. package/node_modules/@fastify/static/test/content-type/binary +0 -0
  275. package/node_modules/@fastify/static/test/content-type/binary.br +1 -0
  276. package/node_modules/@fastify/static/test/content-type/index.css +0 -0
  277. package/node_modules/@fastify/static/test/content-type/index.css.br +1 -0
  278. package/node_modules/@fastify/static/test/content-type/index.html +5 -0
  279. package/node_modules/@fastify/static/test/content-type/index.html.br +0 -0
  280. package/node_modules/@fastify/static/test/content-type/sample.jpg +0 -0
  281. package/node_modules/@fastify/static/test/content-type/test.txt +0 -0
  282. package/node_modules/@fastify/static/test/content-type/test.txt.br +1 -0
  283. package/node_modules/@fastify/static/test/content-type.test.js +144 -0
  284. package/node_modules/@fastify/static/test/dir-list.test.js +884 -0
  285. package/node_modules/@fastify/static/test/static/.example +1 -0
  286. package/node_modules/@fastify/static/test/static/100%.txt +1 -0
  287. package/node_modules/@fastify/static/test/static/a .md +1 -0
  288. package/node_modules/@fastify/static/test/static/deep/path/for/test/index.html +5 -0
  289. package/node_modules/@fastify/static/test/static/deep/path/for/test/purpose/foo.html +5 -0
  290. package/node_modules/@fastify/static/test/static/foo.html +3 -0
  291. package/node_modules/@fastify/static/test/static/foobar.html +3 -0
  292. package/node_modules/@fastify/static/test/static/index.css +0 -0
  293. package/node_modules/@fastify/static/test/static/index.html +5 -0
  294. package/node_modules/@fastify/static/test/static/shallow/sample.jpg +0 -0
  295. package/node_modules/@fastify/static/test/static-allowed-path/private/secret.txt +1 -0
  296. package/node_modules/@fastify/static/test/static-allowed-path/public/index.html +1 -0
  297. package/node_modules/@fastify/static/test/static-dotfiles/.aaa +0 -0
  298. package/node_modules/@fastify/static/test/static-dotfiles/dir/index.html +0 -0
  299. package/node_modules/@fastify/static/test/static-dotfiles/test.txt +0 -0
  300. package/node_modules/@fastify/static/test/static-encode/[...]/a .md +1 -0
  301. package/node_modules/@fastify/static/test/static-filtered/bar.private +1 -0
  302. package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.html +3 -0
  303. package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.private +1 -0
  304. package/node_modules/@fastify/static/test/static-filtered/index.html +3 -0
  305. package/node_modules/@fastify/static/test/static-hidden/.hidden/sample.json +1 -0
  306. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html +5 -0
  307. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.br +0 -0
  308. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.deflate +0 -0
  309. package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.gz +0 -0
  310. package/node_modules/@fastify/static/test/static-pre-compressed/baz.json +3 -0
  311. package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html +5 -0
  312. package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html.br +0 -0
  313. package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html +5 -0
  314. package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html.gz +0 -0
  315. package/node_modules/@fastify/static/test/static-pre-compressed/empty/.gitkeep +0 -0
  316. package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html +3 -0
  317. package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html.gz +0 -0
  318. package/node_modules/@fastify/static/test/static-pre-compressed/index.html +5 -0
  319. package/node_modules/@fastify/static/test/static-pre-compressed/index.html.br +0 -0
  320. package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg +0 -0
  321. package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg.br +0 -0
  322. package/node_modules/@fastify/static/test/static-pre-compressed/uncompressed.html +3 -0
  323. package/node_modules/@fastify/static/test/static-symbolic-link/origin/subdir/subdir/index.html +3 -0
  324. package/node_modules/@fastify/static/test/static.test.js +5384 -0
  325. package/node_modules/@fastify/static/test/static2/bar.html +3 -0
  326. package/node_modules/@fastify/static/test/static2/index.html +3 -0
  327. package/node_modules/@fastify/static/types/index.d.ts +135 -0
  328. package/node_modules/@fastify/static/types/index.tst.ts +228 -0
  329. package/node_modules/@lukeed/ms/dist/index.js +37 -0
  330. package/node_modules/@lukeed/ms/dist/index.min.js +1 -0
  331. package/node_modules/@lukeed/ms/dist/index.mjs +34 -0
  332. package/node_modules/@lukeed/ms/index.d.ts +2 -0
  333. package/node_modules/@lukeed/ms/license +9 -0
  334. package/node_modules/@lukeed/ms/package.json +48 -0
  335. package/node_modules/@lukeed/ms/readme.md +133 -0
  336. package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
  337. package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
  338. package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
  339. package/node_modules/@pinojs/redact/LICENSE +21 -0
  340. package/node_modules/@pinojs/redact/README.md +350 -0
  341. package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
  342. package/node_modules/@pinojs/redact/eslint.config.js +1 -0
  343. package/node_modules/@pinojs/redact/index.d.ts +52 -0
  344. package/node_modules/@pinojs/redact/index.js +529 -0
  345. package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
  346. package/node_modules/@pinojs/redact/package.json +37 -0
  347. package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
  348. package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
  349. package/node_modules/@pinojs/redact/test/index.test.js +824 -0
  350. package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
  351. package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
  352. package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
  353. package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
  354. package/node_modules/@pinojs/redact/tsconfig.json +19 -0
  355. package/node_modules/abstract-logging/Readme.md +47 -0
  356. package/node_modules/abstract-logging/index.js +18 -0
  357. package/node_modules/abstract-logging/package.json +25 -0
  358. package/node_modules/abstract-logging/test.js +17 -0
  359. package/node_modules/ajv/.runkit_example.js +23 -0
  360. package/node_modules/ajv/LICENSE +22 -0
  361. package/node_modules/ajv/README.md +207 -0
  362. package/node_modules/ajv/dist/2019.d.ts +19 -0
  363. package/node_modules/ajv/dist/2019.js +61 -0
  364. package/node_modules/ajv/dist/2019.js.map +1 -0
  365. package/node_modules/ajv/dist/2020.d.ts +19 -0
  366. package/node_modules/ajv/dist/2020.js +55 -0
  367. package/node_modules/ajv/dist/2020.js.map +1 -0
  368. package/node_modules/ajv/dist/ajv.d.ts +18 -0
  369. package/node_modules/ajv/dist/ajv.js +50 -0
  370. package/node_modules/ajv/dist/ajv.js.map +1 -0
  371. package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  372. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  373. package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  374. package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  375. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  376. package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  377. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  378. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  379. package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  380. package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  381. package/node_modules/ajv/dist/compile/errors.js +123 -0
  382. package/node_modules/ajv/dist/compile/errors.js.map +1 -0
  383. package/node_modules/ajv/dist/compile/index.d.ts +80 -0
  384. package/node_modules/ajv/dist/compile/index.js +242 -0
  385. package/node_modules/ajv/dist/compile/index.js.map +1 -0
  386. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  387. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  388. package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  389. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  390. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  391. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  392. package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  393. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  394. package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  395. package/node_modules/ajv/dist/compile/names.d.ts +20 -0
  396. package/node_modules/ajv/dist/compile/names.js +28 -0
  397. package/node_modules/ajv/dist/compile/names.js.map +1 -0
  398. package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  399. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  400. package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  401. package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  402. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  403. package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  404. package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  405. package/node_modules/ajv/dist/compile/rules.js +26 -0
  406. package/node_modules/ajv/dist/compile/rules.js.map +1 -0
  407. package/node_modules/ajv/dist/compile/util.d.ts +40 -0
  408. package/node_modules/ajv/dist/compile/util.js +178 -0
  409. package/node_modules/ajv/dist/compile/util.js.map +1 -0
  410. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  411. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  412. package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  413. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  414. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  415. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  416. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  417. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  418. package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  419. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  420. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  421. package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  422. package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  423. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  424. package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  425. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  426. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  427. package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  428. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  429. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  430. package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  431. package/node_modules/ajv/dist/core.d.ts +174 -0
  432. package/node_modules/ajv/dist/core.js +618 -0
  433. package/node_modules/ajv/dist/core.js.map +1 -0
  434. package/node_modules/ajv/dist/jtd.d.ts +47 -0
  435. package/node_modules/ajv/dist/jtd.js +72 -0
  436. package/node_modules/ajv/dist/jtd.js.map +1 -0
  437. package/node_modules/ajv/dist/refs/data.json +13 -0
  438. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  439. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  440. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  441. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  442. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  443. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  444. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  445. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  446. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  447. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  448. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  449. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  450. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  451. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  452. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  453. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  454. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  455. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  456. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  457. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  458. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  459. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  460. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  461. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  462. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  463. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  464. package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  465. package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  466. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  467. package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  468. package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  469. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  470. package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  471. package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  472. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  473. package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  474. package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  475. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  476. package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  477. package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  478. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  479. package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  480. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  481. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  482. package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  483. package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  484. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  485. package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  486. package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  487. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  488. package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  489. package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  490. package/node_modules/ajv/dist/standalone/index.js +90 -0
  491. package/node_modules/ajv/dist/standalone/index.js.map +1 -0
  492. package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  493. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  494. package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  495. package/node_modules/ajv/dist/types/index.d.ts +183 -0
  496. package/node_modules/ajv/dist/types/index.js +3 -0
  497. package/node_modules/ajv/dist/types/index.js.map +1 -0
  498. package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  499. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  500. package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  501. package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  502. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  503. package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  504. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  505. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  506. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  507. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  508. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  509. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  510. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  511. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  512. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  513. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  514. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  515. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  516. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  517. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  518. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  519. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  520. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  521. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  522. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  523. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  524. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  525. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  526. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  527. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  528. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  529. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  530. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  531. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  532. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  533. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  534. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  535. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  536. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  537. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  538. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  539. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  540. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  541. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  542. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  543. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  544. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  545. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  546. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  547. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  548. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  549. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  550. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  551. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  552. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  553. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  554. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  555. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  556. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  557. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  558. package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  559. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  560. package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  561. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  562. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  563. package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  564. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  565. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  566. package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  567. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  568. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  569. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  570. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  571. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  572. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  573. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  574. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  575. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  576. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  577. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  578. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  579. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  580. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  581. package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  582. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  583. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  584. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  585. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  586. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  587. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  588. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  589. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  590. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  591. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  592. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  593. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  594. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  595. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  596. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  597. package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  598. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  599. package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  600. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  601. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  602. package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  603. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  604. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  605. package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  606. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  607. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  608. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  609. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  610. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  611. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  612. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  613. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  614. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  615. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  616. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  617. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  618. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  619. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  620. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  621. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  622. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  623. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  624. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  625. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  626. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  627. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  628. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  629. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  630. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  631. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  632. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  633. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  634. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  635. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  636. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  637. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  638. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  639. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  640. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  641. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  642. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  643. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  644. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  645. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  646. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  647. package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  648. package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  649. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  650. package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  651. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  652. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  653. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  654. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  655. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  656. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  657. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  658. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  659. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  660. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  661. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  662. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  663. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  664. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  665. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  666. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  667. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  668. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  669. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  670. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  671. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  672. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  673. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  674. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  675. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  676. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  677. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  678. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  679. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  680. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  681. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  682. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  683. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  684. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  685. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  686. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  687. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  688. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  689. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  690. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  691. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  692. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  693. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  694. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  695. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  696. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  697. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  698. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  699. package/node_modules/ajv/lib/2019.ts +81 -0
  700. package/node_modules/ajv/lib/2020.ts +75 -0
  701. package/node_modules/ajv/lib/ajv.ts +70 -0
  702. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  703. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  704. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  705. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  706. package/node_modules/ajv/lib/compile/index.ts +324 -0
  707. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  708. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  709. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  710. package/node_modules/ajv/lib/compile/names.ts +27 -0
  711. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  712. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  713. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  714. package/node_modules/ajv/lib/compile/util.ts +213 -0
  715. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  716. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  717. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  718. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  719. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  720. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  721. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  722. package/node_modules/ajv/lib/core.ts +892 -0
  723. package/node_modules/ajv/lib/jtd.ts +132 -0
  724. package/node_modules/ajv/lib/refs/data.json +13 -0
  725. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  726. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  727. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  728. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  729. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  730. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  731. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  732. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  733. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  734. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  735. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  736. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  737. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  738. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  739. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  740. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  741. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  742. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  743. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  744. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  745. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  746. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  747. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  748. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  749. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  750. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  751. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  752. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  753. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  754. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  755. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  756. package/node_modules/ajv/lib/types/index.ts +244 -0
  757. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  758. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  759. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  760. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  761. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  762. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  763. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  764. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  765. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  766. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  767. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  768. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  769. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  770. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  771. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  772. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  773. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  774. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  775. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  776. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  777. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  778. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  779. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  780. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  781. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  782. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  783. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  784. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  785. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  786. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  787. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  788. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  789. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  790. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  791. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  792. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  793. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  794. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  795. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  796. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  797. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  798. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  799. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  800. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  801. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  802. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  803. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  804. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  805. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  806. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  807. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  808. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  809. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  810. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  811. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  812. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  813. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  814. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  815. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  816. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  817. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  818. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  819. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  820. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  821. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  822. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  823. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  824. package/node_modules/ajv/node_modules/fast-uri/.gitattributes +2 -0
  825. package/node_modules/ajv/node_modules/fast-uri/.github/dependabot.yml +13 -0
  826. package/node_modules/ajv/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  827. package/node_modules/ajv/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  828. package/node_modules/ajv/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  829. package/node_modules/ajv/node_modules/fast-uri/.github/workflows/release.yml +35 -0
  830. package/node_modules/ajv/node_modules/fast-uri/LICENSE +30 -0
  831. package/node_modules/ajv/node_modules/fast-uri/README.md +160 -0
  832. package/node_modules/ajv/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  833. package/node_modules/ajv/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  834. package/node_modules/ajv/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  835. package/node_modules/ajv/node_modules/fast-uri/benchmark/package.json +17 -0
  836. package/node_modules/ajv/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  837. package/node_modules/ajv/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  838. package/node_modules/ajv/node_modules/fast-uri/eslint.config.js +6 -0
  839. package/node_modules/ajv/node_modules/fast-uri/index.js +711 -0
  840. package/node_modules/ajv/node_modules/fast-uri/lib/schemes.js +272 -0
  841. package/node_modules/ajv/node_modules/fast-uri/lib/utils.js +799 -0
  842. package/node_modules/ajv/node_modules/fast-uri/package.json +68 -0
  843. package/node_modules/ajv/node_modules/fast-uri/test/ajv.test.js +43 -0
  844. package/node_modules/ajv/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  845. package/node_modules/ajv/node_modules/fast-uri/test/equal.test.js +145 -0
  846. package/node_modules/ajv/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
  847. package/node_modules/ajv/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  848. package/node_modules/ajv/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
  849. package/node_modules/ajv/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  850. package/node_modules/ajv/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  851. package/node_modules/ajv/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  852. package/node_modules/ajv/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  853. package/node_modules/ajv/node_modules/fast-uri/test/parse.test.js +327 -0
  854. package/node_modules/ajv/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  855. package/node_modules/ajv/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
  856. package/node_modules/ajv/node_modules/fast-uri/test/reserved-path-normalization.test.js +137 -0
  857. package/node_modules/ajv/node_modules/fast-uri/test/resolve.test.js +87 -0
  858. package/node_modules/ajv/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  859. package/node_modules/ajv/node_modules/fast-uri/test/scheme-validation.test.js +163 -0
  860. package/node_modules/ajv/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  861. package/node_modules/ajv/node_modules/fast-uri/test/security.test.js +431 -0
  862. package/node_modules/ajv/node_modules/fast-uri/test/serialize.test.js +151 -0
  863. package/node_modules/ajv/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  864. package/node_modules/ajv/node_modules/fast-uri/test/uri-js.test.js +912 -0
  865. package/node_modules/ajv/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  866. package/node_modules/ajv/node_modules/fast-uri/test/util.test.js +38 -0
  867. package/node_modules/ajv/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  868. package/node_modules/ajv/node_modules/fast-uri/tsconfig.json +9 -0
  869. package/node_modules/ajv/node_modules/fast-uri/types/index.d.ts +60 -0
  870. package/node_modules/ajv/node_modules/fast-uri/types/index.test-d.ts +17 -0
  871. package/node_modules/ajv/package.json +126 -0
  872. package/node_modules/ajv-formats/LICENSE +21 -0
  873. package/node_modules/ajv-formats/README.md +125 -0
  874. package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
  875. package/node_modules/ajv-formats/dist/formats.js +208 -0
  876. package/node_modules/ajv-formats/dist/formats.js.map +1 -0
  877. package/node_modules/ajv-formats/dist/index.d.ts +15 -0
  878. package/node_modules/ajv-formats/dist/index.js +37 -0
  879. package/node_modules/ajv-formats/dist/index.js.map +1 -0
  880. package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
  881. package/node_modules/ajv-formats/dist/limit.js +69 -0
  882. package/node_modules/ajv-formats/dist/limit.js.map +1 -0
  883. package/node_modules/ajv-formats/package.json +74 -0
  884. package/node_modules/ajv-formats/src/formats.ts +269 -0
  885. package/node_modules/ajv-formats/src/index.ts +62 -0
  886. package/node_modules/ajv-formats/src/limit.ts +99 -0
  887. package/node_modules/atomic-sleep/.travis.yml +11 -0
  888. package/node_modules/atomic-sleep/LICENSE +22 -0
  889. package/node_modules/atomic-sleep/index.js +38 -0
  890. package/node_modules/atomic-sleep/package.json +37 -0
  891. package/node_modules/atomic-sleep/readme.md +58 -0
  892. package/node_modules/atomic-sleep/test.js +47 -0
  893. package/node_modules/avvio/.borp.yaml +2 -0
  894. package/node_modules/avvio/.gitattributes +2 -0
  895. package/node_modules/avvio/.github/dependabot.yml +54 -0
  896. package/node_modules/avvio/.github/release-drafter.yml +4 -0
  897. package/node_modules/avvio/.github/workflows/ci.yml +33 -0
  898. package/node_modules/avvio/.github/workflows/lock-threads.yml +19 -0
  899. package/node_modules/avvio/.github/workflows/release.yml +24 -0
  900. package/node_modules/avvio/LICENSE +22 -0
  901. package/node_modules/avvio/README.md +1246 -0
  902. package/node_modules/avvio/eslint.config.js +6 -0
  903. package/node_modules/avvio/examples/example.js +72 -0
  904. package/node_modules/avvio/index.d.ts +95 -0
  905. package/node_modules/avvio/index.js +630 -0
  906. package/node_modules/avvio/lib/create-promise.js +45 -0
  907. package/node_modules/avvio/lib/debug.js +19 -0
  908. package/node_modules/avvio/lib/errors.js +38 -0
  909. package/node_modules/avvio/lib/execute-with-thenable.js +36 -0
  910. package/node_modules/avvio/lib/get-plugin-name.js +34 -0
  911. package/node_modules/avvio/lib/is-bundled-or-typescript-plugin.js +23 -0
  912. package/node_modules/avvio/lib/is-promise-like.js +17 -0
  913. package/node_modules/avvio/lib/plugin.js +292 -0
  914. package/node_modules/avvio/lib/symbols.js +26 -0
  915. package/node_modules/avvio/lib/thenify.js +60 -0
  916. package/node_modules/avvio/lib/time-tree.js +200 -0
  917. package/node_modules/avvio/lib/validate-plugin.js +26 -0
  918. package/node_modules/avvio/package.json +74 -0
  919. package/node_modules/avvio/test/after-and-ready.test.js +913 -0
  920. package/node_modules/avvio/test/after-pass-through.test.js +33 -0
  921. package/node_modules/avvio/test/after-self-promise.test.js +20 -0
  922. package/node_modules/avvio/test/after-throw.test.js +60 -0
  923. package/node_modules/avvio/test/after-use-after.test.js +87 -0
  924. package/node_modules/avvio/test/async-await.test.js +334 -0
  925. package/node_modules/avvio/test/await-after.test.js +448 -0
  926. package/node_modules/avvio/test/await-self.test.js +31 -0
  927. package/node_modules/avvio/test/await-use.test.js +295 -0
  928. package/node_modules/avvio/test/basic.test.js +601 -0
  929. package/node_modules/avvio/test/callbacks.test.js +116 -0
  930. package/node_modules/avvio/test/catch-override-exception.test.js +27 -0
  931. package/node_modules/avvio/test/chainable.test.js +99 -0
  932. package/node_modules/avvio/test/close.test.js +831 -0
  933. package/node_modules/avvio/test/errors.test.js +59 -0
  934. package/node_modules/avvio/test/esm.mjs +12 -0
  935. package/node_modules/avvio/test/esm.test.js +8 -0
  936. package/node_modules/avvio/test/events-listeners.test.js +59 -0
  937. package/node_modules/avvio/test/expose.test.js +192 -0
  938. package/node_modules/avvio/test/fixtures/dummy.txt +1 -0
  939. package/node_modules/avvio/test/fixtures/esm-named.mjs +3 -0
  940. package/node_modules/avvio/test/fixtures/esm-no-next.mjs +3 -0
  941. package/node_modules/avvio/test/fixtures/esm-plugin-meta.mjs +8 -0
  942. package/node_modules/avvio/test/fixtures/esm.mjs +3 -0
  943. package/node_modules/avvio/test/fixtures/plugin-no-next.js +5 -0
  944. package/node_modules/avvio/test/gh-issues/bug-205.test.js +17 -0
  945. package/node_modules/avvio/test/gh-issues/fastify-6843.test.js +48 -0
  946. package/node_modules/avvio/test/lib/create-promise.test.js +56 -0
  947. package/node_modules/avvio/test/lib/execute-with-thenable.test.js +86 -0
  948. package/node_modules/avvio/test/lib/get-plugin-name.test.js +67 -0
  949. package/node_modules/avvio/test/lib/is-bundled-or-typescript-plugin.test.js +20 -0
  950. package/node_modules/avvio/test/lib/is-promise-like.test.js +20 -0
  951. package/node_modules/avvio/test/lib/thenify.test.js +140 -0
  952. package/node_modules/avvio/test/lib/time-tree.test.js +391 -0
  953. package/node_modules/avvio/test/lib/validate-plugin.test.js +19 -0
  954. package/node_modules/avvio/test/load-plugin.test.js +132 -0
  955. package/node_modules/avvio/test/no-done.test.js +19 -0
  956. package/node_modules/avvio/test/on-ready-timeout-await.test.js +33 -0
  957. package/node_modules/avvio/test/override.test.js +395 -0
  958. package/node_modules/avvio/test/plugin-loaded-so-far.test.js +81 -0
  959. package/node_modules/avvio/test/plugin-name.test.js +94 -0
  960. package/node_modules/avvio/test/plugin-timeout-await.test.js +33 -0
  961. package/node_modules/avvio/test/plugin-timeout.test.js +242 -0
  962. package/node_modules/avvio/test/plugin.test.js +254 -0
  963. package/node_modules/avvio/test/pretty-print.test.js +76 -0
  964. package/node_modules/avvio/test/reentrant.test.js +126 -0
  965. package/node_modules/avvio/test/symbol-async-dispose.test.js +49 -0
  966. package/node_modules/avvio/test/to-json.test.js +130 -0
  967. package/node_modules/avvio/test/twice-done.test.js +23 -0
  968. package/node_modules/avvio/test/types/index.ts +412 -0
  969. package/node_modules/avvio/test/types/tsconfig.json +12 -0
  970. package/node_modules/content-disposition/LICENSE +22 -0
  971. package/node_modules/content-disposition/README.md +211 -0
  972. package/node_modules/content-disposition/dist/index.d.ts +72 -0
  973. package/node_modules/content-disposition/dist/index.js +392 -0
  974. package/node_modules/content-disposition/dist/index.js.map +1 -0
  975. package/node_modules/content-disposition/package.json +52 -0
  976. package/node_modules/cookie/LICENSE +24 -0
  977. package/node_modules/cookie/README.md +295 -0
  978. package/node_modules/cookie/dist/index.d.ts +143 -0
  979. package/node_modules/cookie/dist/index.js +355 -0
  980. package/node_modules/cookie/dist/index.js.map +1 -0
  981. package/node_modules/cookie/package.json +57 -0
  982. package/node_modules/depd/History.md +103 -0
  983. package/node_modules/depd/LICENSE +22 -0
  984. package/node_modules/depd/Readme.md +280 -0
  985. package/node_modules/depd/index.js +538 -0
  986. package/node_modules/depd/lib/browser/index.js +77 -0
  987. package/node_modules/depd/package.json +45 -0
  988. package/node_modules/dequal/dist/index.js +86 -0
  989. package/node_modules/dequal/dist/index.min.js +1 -0
  990. package/node_modules/dequal/dist/index.mjs +84 -0
  991. package/node_modules/dequal/index.d.ts +1 -0
  992. package/node_modules/dequal/license +21 -0
  993. package/node_modules/dequal/lite/index.d.ts +1 -0
  994. package/node_modules/dequal/lite/index.js +31 -0
  995. package/node_modules/dequal/lite/index.min.js +1 -0
  996. package/node_modules/dequal/lite/index.mjs +29 -0
  997. package/node_modules/dequal/package.json +57 -0
  998. package/node_modules/dequal/readme.md +112 -0
  999. package/node_modules/escape-html/LICENSE +24 -0
  1000. package/node_modules/escape-html/Readme.md +43 -0
  1001. package/node_modules/escape-html/index.js +78 -0
  1002. package/node_modules/escape-html/package.json +24 -0
  1003. package/node_modules/fast-decode-uri-component/.travis.yml +12 -0
  1004. package/node_modules/fast-decode-uri-component/LICENSE +23 -0
  1005. package/node_modules/fast-decode-uri-component/README.md +43 -0
  1006. package/node_modules/fast-decode-uri-component/bench.js +35 -0
  1007. package/node_modules/fast-decode-uri-component/index.js +115 -0
  1008. package/node_modules/fast-decode-uri-component/package.json +33 -0
  1009. package/node_modules/fast-decode-uri-component/test.js +32 -0
  1010. package/node_modules/fast-deep-equal/LICENSE +21 -0
  1011. package/node_modules/fast-deep-equal/README.md +96 -0
  1012. package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
  1013. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  1014. package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
  1015. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  1016. package/node_modules/fast-deep-equal/index.d.ts +4 -0
  1017. package/node_modules/fast-deep-equal/index.js +46 -0
  1018. package/node_modules/fast-deep-equal/package.json +61 -0
  1019. package/node_modules/fast-deep-equal/react.d.ts +2 -0
  1020. package/node_modules/fast-deep-equal/react.js +53 -0
  1021. package/node_modules/fast-json-stringify/.gitattributes +2 -0
  1022. package/node_modules/fast-json-stringify/.github/dependabot.yml +54 -0
  1023. package/node_modules/fast-json-stringify/.github/workflows/ci.yml +33 -0
  1024. package/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
  1025. package/node_modules/fast-json-stringify/.github/workflows/release.yml +24 -0
  1026. package/node_modules/fast-json-stringify/LICENSE +22 -0
  1027. package/node_modules/fast-json-stringify/README.md +795 -0
  1028. package/node_modules/fast-json-stringify/benchmark/bench-cmp-branch.js +116 -0
  1029. package/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +364 -0
  1030. package/node_modules/fast-json-stringify/benchmark/bench-fixtures.js +54 -0
  1031. package/node_modules/fast-json-stringify/benchmark/bench-large-array.js +64 -0
  1032. package/node_modules/fast-json-stringify/benchmark/bench-thread.js +39 -0
  1033. package/node_modules/fast-json-stringify/benchmark/bench-utils.js +41 -0
  1034. package/node_modules/fast-json-stringify/benchmark/bench.js +477 -0
  1035. package/node_modules/fast-json-stringify/benchmark/fixtures/api-responses.js +266 -0
  1036. package/node_modules/fast-json-stringify/build/build-schema-validator.js +26 -0
  1037. package/node_modules/fast-json-stringify/eslint.config.js +9 -0
  1038. package/node_modules/fast-json-stringify/examples/example.js +81 -0
  1039. package/node_modules/fast-json-stringify/examples/server.js +42 -0
  1040. package/node_modules/fast-json-stringify/index.js +1769 -0
  1041. package/node_modules/fast-json-stringify/lib/location.js +27 -0
  1042. package/node_modules/fast-json-stringify/lib/merge-schemas.js +9 -0
  1043. package/node_modules/fast-json-stringify/lib/schema-validator.js +1134 -0
  1044. package/node_modules/fast-json-stringify/lib/serializer.js +181 -0
  1045. package/node_modules/fast-json-stringify/lib/standalone.js +53 -0
  1046. package/node_modules/fast-json-stringify/lib/validator.js +115 -0
  1047. package/node_modules/fast-json-stringify/package.json +88 -0
  1048. package/node_modules/fast-json-stringify/test/additionalProperties.test.js +419 -0
  1049. package/node_modules/fast-json-stringify/test/allof.test.js +802 -0
  1050. package/node_modules/fast-json-stringify/test/any.test.js +231 -0
  1051. package/node_modules/fast-json-stringify/test/anyof.test.js +854 -0
  1052. package/node_modules/fast-json-stringify/test/array.test.js +835 -0
  1053. package/node_modules/fast-json-stringify/test/asNumber.test.js +13 -0
  1054. package/node_modules/fast-json-stringify/test/basic.test.js +400 -0
  1055. package/node_modules/fast-json-stringify/test/bigint.test.js +76 -0
  1056. package/node_modules/fast-json-stringify/test/clean-cache.test.js +47 -0
  1057. package/node_modules/fast-json-stringify/test/code-generation-fallbacks.test.js +158 -0
  1058. package/node_modules/fast-json-stringify/test/compile-validators.test.js +110 -0
  1059. package/node_modules/fast-json-stringify/test/const.test.js +335 -0
  1060. package/node_modules/fast-json-stringify/test/date.test.js +666 -0
  1061. package/node_modules/fast-json-stringify/test/debug-mode.test.js +138 -0
  1062. package/node_modules/fast-json-stringify/test/defaults.test.js +376 -0
  1063. package/node_modules/fast-json-stringify/test/deopt.test.js +251 -0
  1064. package/node_modules/fast-json-stringify/test/enum.test.js +37 -0
  1065. package/node_modules/fast-json-stringify/test/fix-604.test.js +25 -0
  1066. package/node_modules/fast-json-stringify/test/fixtures/.keep +0 -0
  1067. package/node_modules/fast-json-stringify/test/if-then-else.test.js +685 -0
  1068. package/node_modules/fast-json-stringify/test/inferType.test.js +92 -0
  1069. package/node_modules/fast-json-stringify/test/infinity.test.js +55 -0
  1070. package/node_modules/fast-json-stringify/test/integer.test.js +194 -0
  1071. package/node_modules/fast-json-stringify/test/invalidSchema.test.js +38 -0
  1072. package/node_modules/fast-json-stringify/test/issue-479.test.js +57 -0
  1073. package/node_modules/fast-json-stringify/test/issue-793.test.js +107 -0
  1074. package/node_modules/fast-json-stringify/test/issue-794.test.js +177 -0
  1075. package/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
  1076. package/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -0
  1077. package/node_modules/fast-json-stringify/test/json-schema-test-suite/README.md +10 -0
  1078. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4/required.json +54 -0
  1079. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4.test.js +12 -0
  1080. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6/required.json +70 -0
  1081. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6.test.js +12 -0
  1082. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7/required.json +70 -0
  1083. package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7.test.js +12 -0
  1084. package/node_modules/fast-json-stringify/test/json-schema-test-suite/util.js +31 -0
  1085. package/node_modules/fast-json-stringify/test/missing-values.test.js +88 -0
  1086. package/node_modules/fast-json-stringify/test/multi-type-serializer.test.js +19 -0
  1087. package/node_modules/fast-json-stringify/test/nestedObjects.test.js +63 -0
  1088. package/node_modules/fast-json-stringify/test/nullable.test.js +543 -0
  1089. package/node_modules/fast-json-stringify/test/oneof.test.js +752 -0
  1090. package/node_modules/fast-json-stringify/test/optional-property-prefix.test.js +119 -0
  1091. package/node_modules/fast-json-stringify/test/patternProperties.test.js +192 -0
  1092. package/node_modules/fast-json-stringify/test/primitive-array-prototype.test.js +51 -0
  1093. package/node_modules/fast-json-stringify/test/property-names.test.js +41 -0
  1094. package/node_modules/fast-json-stringify/test/recursion.test.js +245 -0
  1095. package/node_modules/fast-json-stringify/test/ref.json +12 -0
  1096. package/node_modules/fast-json-stringify/test/ref.test.js +2077 -0
  1097. package/node_modules/fast-json-stringify/test/regex.test.js +32 -0
  1098. package/node_modules/fast-json-stringify/test/required.test.js +204 -0
  1099. package/node_modules/fast-json-stringify/test/requiresAjv.test.js +50 -0
  1100. package/node_modules/fast-json-stringify/test/sanitize.test.js +141 -0
  1101. package/node_modules/fast-json-stringify/test/sanitize2.test.js +18 -0
  1102. package/node_modules/fast-json-stringify/test/sanitize3.test.js +17 -0
  1103. package/node_modules/fast-json-stringify/test/sanitize4.test.js +16 -0
  1104. package/node_modules/fast-json-stringify/test/sanitize5.test.js +16 -0
  1105. package/node_modules/fast-json-stringify/test/sanitize6.test.js +22 -0
  1106. package/node_modules/fast-json-stringify/test/sanitize7.test.js +68 -0
  1107. package/node_modules/fast-json-stringify/test/schema-depth.test.js +239 -0
  1108. package/node_modules/fast-json-stringify/test/side-effect.test.js +196 -0
  1109. package/node_modules/fast-json-stringify/test/standalone-mode.test.js +358 -0
  1110. package/node_modules/fast-json-stringify/test/strict-schema.test.js +55 -0
  1111. package/node_modules/fast-json-stringify/test/string.test.js +92 -0
  1112. package/node_modules/fast-json-stringify/test/surrogate.test.js +67 -0
  1113. package/node_modules/fast-json-stringify/test/toJSON.test.js +203 -0
  1114. package/node_modules/fast-json-stringify/test/typebox.test.js +36 -0
  1115. package/node_modules/fast-json-stringify/test/typesArray.test.js +609 -0
  1116. package/node_modules/fast-json-stringify/test/unknownFormats.test.js +27 -0
  1117. package/node_modules/fast-json-stringify/test/utils/validator.js +20 -0
  1118. package/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
  1119. package/node_modules/fast-json-stringify/types/index.d.ts +239 -0
  1120. package/node_modules/fast-json-stringify/types/index.tst.ts +272 -0
  1121. package/node_modules/fast-querystring/LICENSE +25 -0
  1122. package/node_modules/fast-querystring/README.md +114 -0
  1123. package/node_modules/fast-querystring/lib/index.d.ts +14 -0
  1124. package/node_modules/fast-querystring/lib/index.js +20 -0
  1125. package/node_modules/fast-querystring/lib/internals/querystring.js +96 -0
  1126. package/node_modules/fast-querystring/lib/parse.js +126 -0
  1127. package/node_modules/fast-querystring/lib/stringify.js +69 -0
  1128. package/node_modules/fast-querystring/package.json +56 -0
  1129. package/node_modules/fast-uri/.gitattributes +2 -0
  1130. package/node_modules/fast-uri/.github/dependabot.yml +53 -0
  1131. package/node_modules/fast-uri/.github/workflows/ci.yml +154 -0
  1132. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  1133. package/node_modules/fast-uri/.github/workflows/ossf-scorecard.yml +45 -0
  1134. package/node_modules/fast-uri/.github/workflows/release.yml +34 -0
  1135. package/node_modules/fast-uri/LICENSE +30 -0
  1136. package/node_modules/fast-uri/README.md +162 -0
  1137. package/node_modules/fast-uri/SECURITY.md +222 -0
  1138. package/node_modules/fast-uri/benchmark/benchmark.mjs +230 -0
  1139. package/node_modules/fast-uri/benchmark/encoder.mjs +54 -0
  1140. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  1141. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  1142. package/node_modules/fast-uri/benchmark/package.json +17 -0
  1143. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  1144. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  1145. package/node_modules/fast-uri/eslint.config.js +6 -0
  1146. package/node_modules/fast-uri/index.js +785 -0
  1147. package/node_modules/fast-uri/lib/schemes.js +707 -0
  1148. package/node_modules/fast-uri/lib/utils.js +916 -0
  1149. package/node_modules/fast-uri/package.json +68 -0
  1150. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  1151. package/node_modules/fast-uri/test/c0-reference-security.test.js +137 -0
  1152. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  1153. package/node_modules/fast-uri/test/equal.test.js +208 -0
  1154. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +525 -0
  1155. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +142 -0
  1156. package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
  1157. package/node_modules/fast-uri/test/host-encoding.test.js +60 -0
  1158. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  1159. package/node_modules/fast-uri/test/ipv6-validation.test.js +284 -0
  1160. package/node_modules/fast-uri/test/mailto-authority-security.test.js +125 -0
  1161. package/node_modules/fast-uri/test/mailto-field-name-security.test.js +151 -0
  1162. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  1163. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  1164. package/node_modules/fast-uri/test/parse.test.js +472 -0
  1165. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  1166. package/node_modules/fast-uri/test/relative-normalization-security.test.js +152 -0
  1167. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +137 -0
  1168. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  1169. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  1170. package/node_modules/fast-uri/test/scheme-normalization.test.js +16 -0
  1171. package/node_modules/fast-uri/test/scheme-validation.test.js +161 -0
  1172. package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  1173. package/node_modules/fast-uri/test/security-utf8-encoding.test.js +0 -0
  1174. package/node_modules/fast-uri/test/security.test.js +431 -0
  1175. package/node_modules/fast-uri/test/serialize.test.js +295 -0
  1176. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +30 -0
  1177. package/node_modules/fast-uri/test/uri-js.test.js +914 -0
  1178. package/node_modules/fast-uri/test/urn-full-input.test.js +47 -0
  1179. package/node_modules/fast-uri/test/util.test.js +47 -0
  1180. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  1181. package/node_modules/fast-uri/tsconfig.json +10 -0
  1182. package/node_modules/fast-uri/types/index.d.ts +71 -0
  1183. package/node_modules/fast-uri/types/index.tst.ts +31 -0
  1184. package/node_modules/fastify/.borp.yaml +3 -0
  1185. package/node_modules/fastify/.markdownlint-cli2.yaml +22 -0
  1186. package/node_modules/fastify/.prettierignore +1 -0
  1187. package/node_modules/fastify/GOVERNANCE.md +4 -0
  1188. package/node_modules/fastify/LICENSE +21 -0
  1189. package/node_modules/fastify/PROJECT_CHARTER.md +126 -0
  1190. package/node_modules/fastify/README.md +420 -0
  1191. package/node_modules/fastify/SECURITY.md +220 -0
  1192. package/node_modules/fastify/SPONSORS.md +28 -0
  1193. package/node_modules/fastify/build/build-error-serializer.js +35 -0
  1194. package/node_modules/fastify/build/build-validation.js +169 -0
  1195. package/node_modules/fastify/build/sync-version.js +11 -0
  1196. package/node_modules/fastify/docs/Guides/Benchmarking.md +60 -0
  1197. package/node_modules/fastify/docs/Guides/Database.md +293 -0
  1198. package/node_modules/fastify/docs/Guides/Delay-Accepting-Requests.md +608 -0
  1199. package/node_modules/fastify/docs/Guides/Detecting-When-Clients-Abort.md +172 -0
  1200. package/node_modules/fastify/docs/Guides/Ecosystem.md +744 -0
  1201. package/node_modules/fastify/docs/Guides/Fluent-Schema.md +127 -0
  1202. package/node_modules/fastify/docs/Guides/Getting-Started.md +620 -0
  1203. package/node_modules/fastify/docs/Guides/Index.md +43 -0
  1204. package/node_modules/fastify/docs/Guides/Migration-Guide-V3.md +287 -0
  1205. package/node_modules/fastify/docs/Guides/Migration-Guide-V4.md +267 -0
  1206. package/node_modules/fastify/docs/Guides/Migration-Guide-V5.md +727 -0
  1207. package/node_modules/fastify/docs/Guides/Plugins-Guide.md +520 -0
  1208. package/node_modules/fastify/docs/Guides/Prototype-Poisoning.md +383 -0
  1209. package/node_modules/fastify/docs/Guides/Recommendations.md +378 -0
  1210. package/node_modules/fastify/docs/Guides/Serverless.md +629 -0
  1211. package/node_modules/fastify/docs/Guides/Style-Guide.md +246 -0
  1212. package/node_modules/fastify/docs/Guides/Testing.md +481 -0
  1213. package/node_modules/fastify/docs/Guides/Write-Plugin.md +103 -0
  1214. package/node_modules/fastify/docs/Guides/Write-Type-Provider.md +34 -0
  1215. package/node_modules/fastify/docs/Reference/ContentTypeParser.md +271 -0
  1216. package/node_modules/fastify/docs/Reference/Decorators.md +436 -0
  1217. package/node_modules/fastify/docs/Reference/Encapsulation.md +224 -0
  1218. package/node_modules/fastify/docs/Reference/Errors.md +462 -0
  1219. package/node_modules/fastify/docs/Reference/HTTP2.md +94 -0
  1220. package/node_modules/fastify/docs/Reference/Hooks.md +958 -0
  1221. package/node_modules/fastify/docs/Reference/Index.md +71 -0
  1222. package/node_modules/fastify/docs/Reference/LTS.md +85 -0
  1223. package/node_modules/fastify/docs/Reference/Lifecycle.md +100 -0
  1224. package/node_modules/fastify/docs/Reference/Logging.md +276 -0
  1225. package/node_modules/fastify/docs/Reference/Middleware.md +75 -0
  1226. package/node_modules/fastify/docs/Reference/Plugins.md +245 -0
  1227. package/node_modules/fastify/docs/Reference/Principles.md +73 -0
  1228. package/node_modules/fastify/docs/Reference/Reply.md +1021 -0
  1229. package/node_modules/fastify/docs/Reference/Request.md +318 -0
  1230. package/node_modules/fastify/docs/Reference/Routes.md +822 -0
  1231. package/node_modules/fastify/docs/Reference/Server.md +2538 -0
  1232. package/node_modules/fastify/docs/Reference/Type-Providers.md +300 -0
  1233. package/node_modules/fastify/docs/Reference/TypeScript.md +1727 -0
  1234. package/node_modules/fastify/docs/Reference/Validation-and-Serialization.md +1181 -0
  1235. package/node_modules/fastify/docs/Reference/Warnings.md +77 -0
  1236. package/node_modules/fastify/docs/index.md +24 -0
  1237. package/node_modules/fastify/docs/resources/encapsulation_context.drawio +1 -0
  1238. package/node_modules/fastify/docs/resources/encapsulation_context.svg +3 -0
  1239. package/node_modules/fastify/eslint.config.js +40 -0
  1240. package/node_modules/fastify/examples/asyncawait.js +38 -0
  1241. package/node_modules/fastify/examples/benchmark/body.json +3 -0
  1242. package/node_modules/fastify/examples/benchmark/hooks-benchmark-async-await.js +44 -0
  1243. package/node_modules/fastify/examples/benchmark/hooks-benchmark.js +52 -0
  1244. package/node_modules/fastify/examples/benchmark/parser.js +47 -0
  1245. package/node_modules/fastify/examples/benchmark/simple.js +30 -0
  1246. package/node_modules/fastify/examples/benchmark/webstream.js +27 -0
  1247. package/node_modules/fastify/examples/hooks.js +91 -0
  1248. package/node_modules/fastify/examples/http2.js +39 -0
  1249. package/node_modules/fastify/examples/https.js +38 -0
  1250. package/node_modules/fastify/examples/parser.js +53 -0
  1251. package/node_modules/fastify/examples/plugin.js +12 -0
  1252. package/node_modules/fastify/examples/route-prefix.js +38 -0
  1253. package/node_modules/fastify/examples/shared-schema.js +38 -0
  1254. package/node_modules/fastify/examples/simple-stream.js +20 -0
  1255. package/node_modules/fastify/examples/simple.js +32 -0
  1256. package/node_modules/fastify/examples/simple.mjs +27 -0
  1257. package/node_modules/fastify/examples/typescript-server.ts +79 -0
  1258. package/node_modules/fastify/examples/use-plugin.js +29 -0
  1259. package/node_modules/fastify/fastify.d.ts +307 -0
  1260. package/node_modules/fastify/fastify.js +1026 -0
  1261. package/node_modules/fastify/integration/server.js +29 -0
  1262. package/node_modules/fastify/integration/test.sh +23 -0
  1263. package/node_modules/fastify/lib/config-validator.js +1266 -0
  1264. package/node_modules/fastify/lib/content-type-parser.js +434 -0
  1265. package/node_modules/fastify/lib/content-type.js +214 -0
  1266. package/node_modules/fastify/lib/context.js +95 -0
  1267. package/node_modules/fastify/lib/decorate.js +160 -0
  1268. package/node_modules/fastify/lib/error-handler.js +155 -0
  1269. package/node_modules/fastify/lib/error-serializer.js +134 -0
  1270. package/node_modules/fastify/lib/error-status.js +14 -0
  1271. package/node_modules/fastify/lib/errors.js +549 -0
  1272. package/node_modules/fastify/lib/four-oh-four.js +181 -0
  1273. package/node_modules/fastify/lib/handle-request.js +217 -0
  1274. package/node_modules/fastify/lib/head-route.js +45 -0
  1275. package/node_modules/fastify/lib/hooks.js +433 -0
  1276. package/node_modules/fastify/lib/initial-config-validation.js +37 -0
  1277. package/node_modules/fastify/lib/log-controller.js +169 -0
  1278. package/node_modules/fastify/lib/logger-factory.js +157 -0
  1279. package/node_modules/fastify/lib/logger-pino.js +68 -0
  1280. package/node_modules/fastify/lib/noop-set.js +10 -0
  1281. package/node_modules/fastify/lib/plugin-override.js +91 -0
  1282. package/node_modules/fastify/lib/plugin-utils.js +169 -0
  1283. package/node_modules/fastify/lib/promise.js +23 -0
  1284. package/node_modules/fastify/lib/reply.js +1097 -0
  1285. package/node_modules/fastify/lib/req-id-gen-factory.js +55 -0
  1286. package/node_modules/fastify/lib/request.js +398 -0
  1287. package/node_modules/fastify/lib/route.js +700 -0
  1288. package/node_modules/fastify/lib/schema-controller.js +164 -0
  1289. package/node_modules/fastify/lib/schemas.js +217 -0
  1290. package/node_modules/fastify/lib/server.js +441 -0
  1291. package/node_modules/fastify/lib/symbols.js +73 -0
  1292. package/node_modules/fastify/lib/validation.js +518 -0
  1293. package/node_modules/fastify/lib/warnings.js +102 -0
  1294. package/node_modules/fastify/lib/wrap-thenable.js +84 -0
  1295. package/node_modules/fastify/package.json +222 -0
  1296. package/node_modules/fastify/scripts/validate-ecosystem-links.js +180 -0
  1297. package/node_modules/fastify/test/404s.test.js +2133 -0
  1298. package/node_modules/fastify/test/500s.test.js +422 -0
  1299. package/node_modules/fastify/test/allow-unsafe-regex.test.js +92 -0
  1300. package/node_modules/fastify/test/als.test.js +65 -0
  1301. package/node_modules/fastify/test/async-await.test.js +705 -0
  1302. package/node_modules/fastify/test/async-dispose.test.js +20 -0
  1303. package/node_modules/fastify/test/async_hooks.test.js +52 -0
  1304. package/node_modules/fastify/test/body-limit.test.js +224 -0
  1305. package/node_modules/fastify/test/buffer.test.js +74 -0
  1306. package/node_modules/fastify/test/build/error-serializer.test.js +36 -0
  1307. package/node_modules/fastify/test/build/version.test.js +14 -0
  1308. package/node_modules/fastify/test/build-certificate.js +109 -0
  1309. package/node_modules/fastify/test/bundler/README.md +29 -0
  1310. package/node_modules/fastify/test/bundler/esbuild/bundler-test.js +32 -0
  1311. package/node_modules/fastify/test/bundler/esbuild/package.json +10 -0
  1312. package/node_modules/fastify/test/bundler/esbuild/src/fail-plugin-version.js +14 -0
  1313. package/node_modules/fastify/test/bundler/esbuild/src/index.js +9 -0
  1314. package/node_modules/fastify/test/bundler/webpack/bundler-test.js +32 -0
  1315. package/node_modules/fastify/test/bundler/webpack/package.json +11 -0
  1316. package/node_modules/fastify/test/bundler/webpack/src/fail-plugin-version.js +14 -0
  1317. package/node_modules/fastify/test/bundler/webpack/src/index.js +9 -0
  1318. package/node_modules/fastify/test/bundler/webpack/webpack.config.js +15 -0
  1319. package/node_modules/fastify/test/case-insensitive.test.js +102 -0
  1320. package/node_modules/fastify/test/chainable.test.js +40 -0
  1321. package/node_modules/fastify/test/child-logger-factory.test.js +153 -0
  1322. package/node_modules/fastify/test/client-timeout.test.js +38 -0
  1323. package/node_modules/fastify/test/close-pipelining.test.js +77 -0
  1324. package/node_modules/fastify/test/close.test.js +779 -0
  1325. package/node_modules/fastify/test/conditional-pino.test.js +47 -0
  1326. package/node_modules/fastify/test/connection-timeout.test.js +42 -0
  1327. package/node_modules/fastify/test/constrained-routes.test.js +1138 -0
  1328. package/node_modules/fastify/test/content-length.test.js +174 -0
  1329. package/node_modules/fastify/test/content-parser.test.js +829 -0
  1330. package/node_modules/fastify/test/content-type-parser-async-context.test.js +76 -0
  1331. package/node_modules/fastify/test/content-type.test.js +232 -0
  1332. package/node_modules/fastify/test/context-config.test.js +164 -0
  1333. package/node_modules/fastify/test/custom-http-server.test.js +156 -0
  1334. package/node_modules/fastify/test/custom-parser-async.test.js +59 -0
  1335. package/node_modules/fastify/test/custom-parser.0.test.js +701 -0
  1336. package/node_modules/fastify/test/custom-parser.1.test.js +266 -0
  1337. package/node_modules/fastify/test/custom-parser.2.test.js +91 -0
  1338. package/node_modules/fastify/test/custom-parser.3.test.js +208 -0
  1339. package/node_modules/fastify/test/custom-parser.4.test.js +258 -0
  1340. package/node_modules/fastify/test/custom-parser.5.test.js +130 -0
  1341. package/node_modules/fastify/test/custom-querystring-parser.test.js +129 -0
  1342. package/node_modules/fastify/test/decorator-instance-properties.test.js +112 -0
  1343. package/node_modules/fastify/test/decorator.test.js +1330 -0
  1344. package/node_modules/fastify/test/delete.test.js +344 -0
  1345. package/node_modules/fastify/test/diagnostics-channel/404.test.js +49 -0
  1346. package/node_modules/fastify/test/diagnostics-channel/async-delay-request.test.js +65 -0
  1347. package/node_modules/fastify/test/diagnostics-channel/async-error-handler.test.js +74 -0
  1348. package/node_modules/fastify/test/diagnostics-channel/async-request.test.js +64 -0
  1349. package/node_modules/fastify/test/diagnostics-channel/error-before-handler.test.js +35 -0
  1350. package/node_modules/fastify/test/diagnostics-channel/error-request.test.js +53 -0
  1351. package/node_modules/fastify/test/diagnostics-channel/error-status.test.js +123 -0
  1352. package/node_modules/fastify/test/diagnostics-channel/init.test.js +50 -0
  1353. package/node_modules/fastify/test/diagnostics-channel/sync-delay-request.test.js +49 -0
  1354. package/node_modules/fastify/test/diagnostics-channel/sync-request-reply.test.js +51 -0
  1355. package/node_modules/fastify/test/diagnostics-channel/sync-request.test.js +54 -0
  1356. package/node_modules/fastify/test/encapsulated-child-logger-factory.test.js +69 -0
  1357. package/node_modules/fastify/test/encapsulated-error-handler.test.js +237 -0
  1358. package/node_modules/fastify/test/esm/errorCodes.test.mjs +10 -0
  1359. package/node_modules/fastify/test/esm/esm.test.mjs +13 -0
  1360. package/node_modules/fastify/test/esm/index.test.js +8 -0
  1361. package/node_modules/fastify/test/esm/named-exports.mjs +14 -0
  1362. package/node_modules/fastify/test/esm/other.mjs +8 -0
  1363. package/node_modules/fastify/test/esm/plugin.mjs +8 -0
  1364. package/node_modules/fastify/test/fastify-instance.test.js +300 -0
  1365. package/node_modules/fastify/test/find-route.test.js +187 -0
  1366. package/node_modules/fastify/test/fix-6411.test.js +65 -0
  1367. package/node_modules/fastify/test/fix-root-primitive-coercion.test.js +35 -0
  1368. package/node_modules/fastify/test/fluent-schema.test.js +209 -0
  1369. package/node_modules/fastify/test/genReqId.test.js +450 -0
  1370. package/node_modules/fastify/test/handler-context.test.js +45 -0
  1371. package/node_modules/fastify/test/handler-timeout.test.js +367 -0
  1372. package/node_modules/fastify/test/has-route.test.js +88 -0
  1373. package/node_modules/fastify/test/header-overflow.test.js +55 -0
  1374. package/node_modules/fastify/test/helper.js +568 -0
  1375. package/node_modules/fastify/test/hooks-async.test.js +1098 -0
  1376. package/node_modules/fastify/test/hooks.on-listen.test.js +1162 -0
  1377. package/node_modules/fastify/test/hooks.on-ready.test.js +421 -0
  1378. package/node_modules/fastify/test/hooks.test.js +3671 -0
  1379. package/node_modules/fastify/test/http-methods/copy.test.js +35 -0
  1380. package/node_modules/fastify/test/http-methods/custom-http-methods.test.js +175 -0
  1381. package/node_modules/fastify/test/http-methods/get.test.js +412 -0
  1382. package/node_modules/fastify/test/http-methods/head.test.js +263 -0
  1383. package/node_modules/fastify/test/http-methods/lock.test.js +108 -0
  1384. package/node_modules/fastify/test/http-methods/mkcalendar.test.js +143 -0
  1385. package/node_modules/fastify/test/http-methods/mkcol.test.js +35 -0
  1386. package/node_modules/fastify/test/http-methods/move.test.js +42 -0
  1387. package/node_modules/fastify/test/http-methods/propfind.test.js +136 -0
  1388. package/node_modules/fastify/test/http-methods/proppatch.test.js +105 -0
  1389. package/node_modules/fastify/test/http-methods/report.test.js +142 -0
  1390. package/node_modules/fastify/test/http-methods/search.test.js +233 -0
  1391. package/node_modules/fastify/test/http-methods/trace.test.js +21 -0
  1392. package/node_modules/fastify/test/http-methods/unlock.test.js +38 -0
  1393. package/node_modules/fastify/test/http2/closing.test.js +270 -0
  1394. package/node_modules/fastify/test/http2/constraint.test.js +109 -0
  1395. package/node_modules/fastify/test/http2/head.test.js +34 -0
  1396. package/node_modules/fastify/test/http2/plain.test.js +248 -0
  1397. package/node_modules/fastify/test/http2/secure-with-fallback.test.js +113 -0
  1398. package/node_modules/fastify/test/http2/secure.test.js +67 -0
  1399. package/node_modules/fastify/test/http2/unknown-http-method.test.js +34 -0
  1400. package/node_modules/fastify/test/https/custom-https-server.test.js +58 -0
  1401. package/node_modules/fastify/test/https/https.test.js +135 -0
  1402. package/node_modules/fastify/test/imports.test.js +17 -0
  1403. package/node_modules/fastify/test/inject.test.js +502 -0
  1404. package/node_modules/fastify/test/input-validation.js +335 -0
  1405. package/node_modules/fastify/test/internals/all.test.js +39 -0
  1406. package/node_modules/fastify/test/internals/content-type-parser.test.js +111 -0
  1407. package/node_modules/fastify/test/internals/context.test.js +31 -0
  1408. package/node_modules/fastify/test/internals/decorator.test.js +156 -0
  1409. package/node_modules/fastify/test/internals/errors.test.js +1032 -0
  1410. package/node_modules/fastify/test/internals/handle-request.test.js +270 -0
  1411. package/node_modules/fastify/test/internals/hook-runner.test.js +449 -0
  1412. package/node_modules/fastify/test/internals/hooks.test.js +96 -0
  1413. package/node_modules/fastify/test/internals/initial-config.test.js +383 -0
  1414. package/node_modules/fastify/test/internals/logger.test.js +485 -0
  1415. package/node_modules/fastify/test/internals/plugin.test.js +172 -0
  1416. package/node_modules/fastify/test/internals/promise.test.js +63 -0
  1417. package/node_modules/fastify/test/internals/reply-serialize.test.js +714 -0
  1418. package/node_modules/fastify/test/internals/reply.test.js +2077 -0
  1419. package/node_modules/fastify/test/internals/req-id-gen-factory.test.js +133 -0
  1420. package/node_modules/fastify/test/internals/request-validate.test.js +1402 -0
  1421. package/node_modules/fastify/test/internals/request.test.js +533 -0
  1422. package/node_modules/fastify/test/internals/schema-controller-perf.test.js +73 -0
  1423. package/node_modules/fastify/test/internals/server.test.js +91 -0
  1424. package/node_modules/fastify/test/internals/validation.test.js +418 -0
  1425. package/node_modules/fastify/test/issue-4959.test.js +118 -0
  1426. package/node_modules/fastify/test/keep-alive-timeout.test.js +42 -0
  1427. package/node_modules/fastify/test/listen.1.test.js +119 -0
  1428. package/node_modules/fastify/test/listen.2.test.js +113 -0
  1429. package/node_modules/fastify/test/listen.3.test.js +83 -0
  1430. package/node_modules/fastify/test/listen.4.test.js +168 -0
  1431. package/node_modules/fastify/test/listen.5.test.js +119 -0
  1432. package/node_modules/fastify/test/logger/instantiation.test.js +341 -0
  1433. package/node_modules/fastify/test/logger/logger-test-utils.js +47 -0
  1434. package/node_modules/fastify/test/logger/logging.test.js +516 -0
  1435. package/node_modules/fastify/test/logger/options.test.js +616 -0
  1436. package/node_modules/fastify/test/logger/request.test.js +292 -0
  1437. package/node_modules/fastify/test/logger/response.test.js +183 -0
  1438. package/node_modules/fastify/test/logger/tap-parallel-not-ok +0 -0
  1439. package/node_modules/fastify/test/max-requests-per-socket.test.js +113 -0
  1440. package/node_modules/fastify/test/middleware.test.js +37 -0
  1441. package/node_modules/fastify/test/noop-set.test.js +19 -0
  1442. package/node_modules/fastify/test/nullable-validation.test.js +187 -0
  1443. package/node_modules/fastify/test/options.error-handler.test.js +5 -0
  1444. package/node_modules/fastify/test/options.test.js +5 -0
  1445. package/node_modules/fastify/test/output-validation.test.js +140 -0
  1446. package/node_modules/fastify/test/patch.error-handler.test.js +5 -0
  1447. package/node_modules/fastify/test/patch.test.js +5 -0
  1448. package/node_modules/fastify/test/plugin.1.test.js +230 -0
  1449. package/node_modules/fastify/test/plugin.2.test.js +314 -0
  1450. package/node_modules/fastify/test/plugin.3.test.js +287 -0
  1451. package/node_modules/fastify/test/plugin.4.test.js +505 -0
  1452. package/node_modules/fastify/test/plugin.helper.js +8 -0
  1453. package/node_modules/fastify/test/plugin.name.display.js +10 -0
  1454. package/node_modules/fastify/test/post-empty-body.test.js +38 -0
  1455. package/node_modules/fastify/test/pretty-print.test.js +366 -0
  1456. package/node_modules/fastify/test/promises.test.js +125 -0
  1457. package/node_modules/fastify/test/proto-poisoning.test.js +145 -0
  1458. package/node_modules/fastify/test/put.error-handler.test.js +5 -0
  1459. package/node_modules/fastify/test/put.test.js +5 -0
  1460. package/node_modules/fastify/test/register.test.js +184 -0
  1461. package/node_modules/fastify/test/reply-code.test.js +148 -0
  1462. package/node_modules/fastify/test/reply-early-hints.test.js +100 -0
  1463. package/node_modules/fastify/test/reply-error.test.js +850 -0
  1464. package/node_modules/fastify/test/reply-media-type.test.js +188 -0
  1465. package/node_modules/fastify/test/reply-trailers.test.js +603 -0
  1466. package/node_modules/fastify/test/reply-web-stream-locked.test.js +37 -0
  1467. package/node_modules/fastify/test/request-error.test.js +624 -0
  1468. package/node_modules/fastify/test/request-header-host.test.js +339 -0
  1469. package/node_modules/fastify/test/request-id.test.js +118 -0
  1470. package/node_modules/fastify/test/request-media-type.test.js +105 -0
  1471. package/node_modules/fastify/test/request-port.test.js +72 -0
  1472. package/node_modules/fastify/test/request-timeout.test.js +53 -0
  1473. package/node_modules/fastify/test/rfc-10008.test.js +144 -0
  1474. package/node_modules/fastify/test/route-hooks.test.js +635 -0
  1475. package/node_modules/fastify/test/route-prefix.test.js +970 -0
  1476. package/node_modules/fastify/test/route-shorthand.test.js +58 -0
  1477. package/node_modules/fastify/test/route.1.test.js +259 -0
  1478. package/node_modules/fastify/test/route.2.test.js +100 -0
  1479. package/node_modules/fastify/test/route.3.test.js +213 -0
  1480. package/node_modules/fastify/test/route.4.test.js +127 -0
  1481. package/node_modules/fastify/test/route.5.test.js +211 -0
  1482. package/node_modules/fastify/test/route.6.test.js +299 -0
  1483. package/node_modules/fastify/test/route.7.test.js +406 -0
  1484. package/node_modules/fastify/test/route.8.test.js +225 -0
  1485. package/node_modules/fastify/test/router-options.test.js +1343 -0
  1486. package/node_modules/fastify/test/same-shape.test.js +124 -0
  1487. package/node_modules/fastify/test/schema-examples.test.js +661 -0
  1488. package/node_modules/fastify/test/schema-feature.test.js +2327 -0
  1489. package/node_modules/fastify/test/schema-serialization.test.js +1312 -0
  1490. package/node_modules/fastify/test/schema-special-usage.test.js +1429 -0
  1491. package/node_modules/fastify/test/schema-validation.test.js +2245 -0
  1492. package/node_modules/fastify/test/scripts/validate-ecosystem-links.test.js +322 -0
  1493. package/node_modules/fastify/test/serialize-response.test.js +186 -0
  1494. package/node_modules/fastify/test/server.test.js +347 -0
  1495. package/node_modules/fastify/test/set-error-handler.test.js +69 -0
  1496. package/node_modules/fastify/test/skip-reply-send.test.js +317 -0
  1497. package/node_modules/fastify/test/stream-serializers.test.js +40 -0
  1498. package/node_modules/fastify/test/stream.1.test.js +94 -0
  1499. package/node_modules/fastify/test/stream.2.test.js +129 -0
  1500. package/node_modules/fastify/test/stream.3.test.js +198 -0
  1501. package/node_modules/fastify/test/stream.4.test.js +176 -0
  1502. package/node_modules/fastify/test/stream.5.test.js +188 -0
  1503. package/node_modules/fastify/test/sync-routes.test.js +32 -0
  1504. package/node_modules/fastify/test/throw.test.js +373 -0
  1505. package/node_modules/fastify/test/trust-proxy.test.js +320 -0
  1506. package/node_modules/fastify/test/type-provider.test.js +22 -0
  1507. package/node_modules/fastify/test/types/content-type-parser.tst.ts +70 -0
  1508. package/node_modules/fastify/test/types/decorate-request-reply.tst.ts +18 -0
  1509. package/node_modules/fastify/test/types/dummy-plugin.mts +9 -0
  1510. package/node_modules/fastify/test/types/errors.tst.ts +93 -0
  1511. package/node_modules/fastify/test/types/fastify.tst.ts +364 -0
  1512. package/node_modules/fastify/test/types/hooks.tst.ts +578 -0
  1513. package/node_modules/fastify/test/types/instance.tst.ts +599 -0
  1514. package/node_modules/fastify/test/types/logger.tst.ts +276 -0
  1515. package/node_modules/fastify/test/types/plugin.tst.ts +96 -0
  1516. package/node_modules/fastify/test/types/register.tst.ts +245 -0
  1517. package/node_modules/fastify/test/types/reply.tst.ts +297 -0
  1518. package/node_modules/fastify/test/types/request.tst.ts +199 -0
  1519. package/node_modules/fastify/test/types/route.tst.ts +588 -0
  1520. package/node_modules/fastify/test/types/schema.tst.ts +135 -0
  1521. package/node_modules/fastify/test/types/serverFactory.tst.ts +37 -0
  1522. package/node_modules/fastify/test/types/tsconfig.json +9 -0
  1523. package/node_modules/fastify/test/types/type-provider.tst.ts +1219 -0
  1524. package/node_modules/fastify/test/types/using.tst.ts +14 -0
  1525. package/node_modules/fastify/test/upgrade.test.js +52 -0
  1526. package/node_modules/fastify/test/url-rewriting.test.js +122 -0
  1527. package/node_modules/fastify/test/use-semicolon-delimiter.test.js +168 -0
  1528. package/node_modules/fastify/test/validation-error-handling.test.js +934 -0
  1529. package/node_modules/fastify/test/versioned-routes.test.js +603 -0
  1530. package/node_modules/fastify/test/web-api.test.js +616 -0
  1531. package/node_modules/fastify/test/wrap-thenable.test.js +30 -0
  1532. package/node_modules/fastify/types/content-type-parser.d.ts +95 -0
  1533. package/node_modules/fastify/types/context.d.ts +22 -0
  1534. package/node_modules/fastify/types/errors.d.ts +98 -0
  1535. package/node_modules/fastify/types/hooks.d.ts +936 -0
  1536. package/node_modules/fastify/types/instance.d.ts +717 -0
  1537. package/node_modules/fastify/types/logger.d.ts +162 -0
  1538. package/node_modules/fastify/types/plugin.d.ts +48 -0
  1539. package/node_modules/fastify/types/register.d.ts +85 -0
  1540. package/node_modules/fastify/types/reply.d.ts +129 -0
  1541. package/node_modules/fastify/types/request.d.ts +116 -0
  1542. package/node_modules/fastify/types/route.d.ts +233 -0
  1543. package/node_modules/fastify/types/schema.d.ts +61 -0
  1544. package/node_modules/fastify/types/server-factory.d.ts +19 -0
  1545. package/node_modules/fastify/types/type-provider.d.ts +151 -0
  1546. package/node_modules/fastify/types/utils.d.ts +98 -0
  1547. package/node_modules/fastify-plugin/.gitattributes +2 -0
  1548. package/node_modules/fastify-plugin/.github/dependabot.yml +53 -0
  1549. package/node_modules/fastify-plugin/.github/workflows/ci.yml +33 -0
  1550. package/node_modules/fastify-plugin/.github/workflows/lock-threads.yml +19 -0
  1551. package/node_modules/fastify-plugin/.github/workflows/release.yml +24 -0
  1552. package/node_modules/fastify-plugin/LICENSE +21 -0
  1553. package/node_modules/fastify-plugin/README.md +191 -0
  1554. package/node_modules/fastify-plugin/eslint.config.js +6 -0
  1555. package/node_modules/fastify-plugin/index.js +77 -0
  1556. package/node_modules/fastify-plugin/lib/getPluginName.js +29 -0
  1557. package/node_modules/fastify-plugin/lib/toCamelCase.js +14 -0
  1558. package/node_modules/fastify-plugin/package.json +70 -0
  1559. package/node_modules/fastify-plugin/test/bundlers.test.js +110 -0
  1560. package/node_modules/fastify-plugin/test/checkVersion.test.js +67 -0
  1561. package/node_modules/fastify-plugin/test/composite.test.js +14 -0
  1562. package/node_modules/fastify-plugin/test/esm/esm.test.mjs +11 -0
  1563. package/node_modules/fastify-plugin/test/extractPluginName.test.js +54 -0
  1564. package/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +15 -0
  1565. package/node_modules/fastify-plugin/test/test.js +468 -0
  1566. package/node_modules/fastify-plugin/test/toCamelCase.test.js +24 -0
  1567. package/node_modules/fastify-plugin/types/example-async.tst.ts +19 -0
  1568. package/node_modules/fastify-plugin/types/example-callback.tst.ts +19 -0
  1569. package/node_modules/fastify-plugin/types/index.d.ts +54 -0
  1570. package/node_modules/fastify-plugin/types/index.tst.ts +249 -0
  1571. package/node_modules/fastq/LICENSE +13 -0
  1572. package/node_modules/fastq/README.md +310 -0
  1573. package/node_modules/fastq/SECURITY.md +15 -0
  1574. package/node_modules/fastq/bench.js +66 -0
  1575. package/node_modules/fastq/eslint.config.js +11 -0
  1576. package/node_modules/fastq/example.js +14 -0
  1577. package/node_modules/fastq/example.mjs +9 -0
  1578. package/node_modules/fastq/index.d.ts +59 -0
  1579. package/node_modules/fastq/package.json +49 -0
  1580. package/node_modules/fastq/queue.js +348 -0
  1581. package/node_modules/fastq/test/example.ts +83 -0
  1582. package/node_modules/fastq/test/promise.js +356 -0
  1583. package/node_modules/fastq/test/test.js +808 -0
  1584. package/node_modules/fastq/test/tsconfig.json +11 -0
  1585. package/node_modules/find-my-way/.github/dependabot.yml +34 -0
  1586. package/node_modules/find-my-way/.github/workflows/node.js.yml +75 -0
  1587. package/node_modules/find-my-way/LICENSE +21 -0
  1588. package/node_modules/find-my-way/README.md +913 -0
  1589. package/node_modules/find-my-way/benchmark/bench-thread.js +35 -0
  1590. package/node_modules/find-my-way/benchmark/bench.js +156 -0
  1591. package/node_modules/find-my-way/benchmark/compare-branches.js +113 -0
  1592. package/node_modules/find-my-way/benchmark/compile-mode.js +171 -0
  1593. package/node_modules/find-my-way/benchmark/uri-decoding.js +55 -0
  1594. package/node_modules/find-my-way/eslint.config.js +3 -0
  1595. package/node_modules/find-my-way/example.js +29 -0
  1596. package/node_modules/find-my-way/index.d.ts +254 -0
  1597. package/node_modules/find-my-way/index.js +1102 -0
  1598. package/node_modules/find-my-way/lib/compiler.js +647 -0
  1599. package/node_modules/find-my-way/lib/constrainer.js +177 -0
  1600. package/node_modules/find-my-way/lib/handler-storage.js +179 -0
  1601. package/node_modules/find-my-way/lib/http-methods.js +13 -0
  1602. package/node_modules/find-my-way/lib/node.js +250 -0
  1603. package/node_modules/find-my-way/lib/null-object.js +8 -0
  1604. package/node_modules/find-my-way/lib/pretty-print.js +176 -0
  1605. package/node_modules/find-my-way/lib/strategies/accept-host.js +56 -0
  1606. package/node_modules/find-my-way/lib/strategies/accept-version.js +64 -0
  1607. package/node_modules/find-my-way/lib/strategies/http-method.js +15 -0
  1608. package/node_modules/find-my-way/lib/url-sanitizer.js +196 -0
  1609. package/node_modules/find-my-way/package.json +55 -0
  1610. package/node_modules/find-my-way/test/case-insensitive.test.js +230 -0
  1611. package/node_modules/find-my-way/test/compile.test.js +298 -0
  1612. package/node_modules/find-my-way/test/constraint-globals.test.js +22 -0
  1613. package/node_modules/find-my-way/test/constraint.custom-versioning.test.js +130 -0
  1614. package/node_modules/find-my-way/test/constraint.custom.async.test.js +155 -0
  1615. package/node_modules/find-my-way/test/constraint.custom.test.js +273 -0
  1616. package/node_modules/find-my-way/test/constraint.default-versioning.test.js +289 -0
  1617. package/node_modules/find-my-way/test/constraint.host.test.js +104 -0
  1618. package/node_modules/find-my-way/test/constraints.test.js +108 -0
  1619. package/node_modules/find-my-way/test/custom-querystring-parser.test.js +46 -0
  1620. package/node_modules/find-my-way/test/errors.test.js +484 -0
  1621. package/node_modules/find-my-way/test/fastify-issue-3129.test.js +34 -0
  1622. package/node_modules/find-my-way/test/fastify-issue-3957.test.js +23 -0
  1623. package/node_modules/find-my-way/test/find-route.test.js +324 -0
  1624. package/node_modules/find-my-way/test/find.test.js +16 -0
  1625. package/node_modules/find-my-way/test/for-in-loop.test.js +39 -0
  1626. package/node_modules/find-my-way/test/full-url.test.js +143 -0
  1627. package/node_modules/find-my-way/test/has-route.test.js +218 -0
  1628. package/node_modules/find-my-way/test/helpers/compiled-lookup-preload.js +29 -0
  1629. package/node_modules/find-my-way/test/host-storage.test.js +79 -0
  1630. package/node_modules/find-my-way/test/http2/constraint.host.test.js +66 -0
  1631. package/node_modules/find-my-way/test/issue-101.test.js +31 -0
  1632. package/node_modules/find-my-way/test/issue-104.test.js +206 -0
  1633. package/node_modules/find-my-way/test/issue-110.test.js +31 -0
  1634. package/node_modules/find-my-way/test/issue-132.test.js +80 -0
  1635. package/node_modules/find-my-way/test/issue-145.test.js +24 -0
  1636. package/node_modules/find-my-way/test/issue-149.test.js +21 -0
  1637. package/node_modules/find-my-way/test/issue-151.test.js +54 -0
  1638. package/node_modules/find-my-way/test/issue-154.test.js +21 -0
  1639. package/node_modules/find-my-way/test/issue-161.test.js +88 -0
  1640. package/node_modules/find-my-way/test/issue-17.test.js +397 -0
  1641. package/node_modules/find-my-way/test/issue-175.test.js +80 -0
  1642. package/node_modules/find-my-way/test/issue-182.test.js +18 -0
  1643. package/node_modules/find-my-way/test/issue-190.test.js +44 -0
  1644. package/node_modules/find-my-way/test/issue-20.test.js +79 -0
  1645. package/node_modules/find-my-way/test/issue-206.test.js +121 -0
  1646. package/node_modules/find-my-way/test/issue-221.test.js +50 -0
  1647. package/node_modules/find-my-way/test/issue-234.test.js +94 -0
  1648. package/node_modules/find-my-way/test/issue-238.test.js +119 -0
  1649. package/node_modules/find-my-way/test/issue-240.test.js +46 -0
  1650. package/node_modules/find-my-way/test/issue-241.test.js +32 -0
  1651. package/node_modules/find-my-way/test/issue-247.test.js +51 -0
  1652. package/node_modules/find-my-way/test/issue-254.test.js +31 -0
  1653. package/node_modules/find-my-way/test/issue-28.test.js +618 -0
  1654. package/node_modules/find-my-way/test/issue-280.test.js +14 -0
  1655. package/node_modules/find-my-way/test/issue-285.test.js +37 -0
  1656. package/node_modules/find-my-way/test/issue-330.test.js +220 -0
  1657. package/node_modules/find-my-way/test/issue-369.test.js +73 -0
  1658. package/node_modules/find-my-way/test/issue-44.test.js +149 -0
  1659. package/node_modules/find-my-way/test/issue-46.test.js +75 -0
  1660. package/node_modules/find-my-way/test/issue-49.test.js +108 -0
  1661. package/node_modules/find-my-way/test/issue-59.test.js +131 -0
  1662. package/node_modules/find-my-way/test/issue-62.test.js +28 -0
  1663. package/node_modules/find-my-way/test/issue-63.test.js +23 -0
  1664. package/node_modules/find-my-way/test/issue-67.test.js +50 -0
  1665. package/node_modules/find-my-way/test/issue-6700.test.js +27 -0
  1666. package/node_modules/find-my-way/test/issue-93.test.js +19 -0
  1667. package/node_modules/find-my-way/test/lookup-async.test.js +29 -0
  1668. package/node_modules/find-my-way/test/lookup.test.js +58 -0
  1669. package/node_modules/find-my-way/test/many-params.test.js +71 -0
  1670. package/node_modules/find-my-way/test/matching-order.test.js +17 -0
  1671. package/node_modules/find-my-way/test/max-param-length.test.js +44 -0
  1672. package/node_modules/find-my-way/test/methods.test.js +854 -0
  1673. package/node_modules/find-my-way/test/null-object.test.js +36 -0
  1674. package/node_modules/find-my-way/test/on-bad-url.test.js +109 -0
  1675. package/node_modules/find-my-way/test/optional-params.test.js +231 -0
  1676. package/node_modules/find-my-way/test/params-collisions.test.js +126 -0
  1677. package/node_modules/find-my-way/test/path-params-match.test.js +53 -0
  1678. package/node_modules/find-my-way/test/path-utils.test.js +68 -0
  1679. package/node_modules/find-my-way/test/pretty-print-tree.test.js +596 -0
  1680. package/node_modules/find-my-way/test/pretty-print.test.js +726 -0
  1681. package/node_modules/find-my-way/test/querystring.test.js +54 -0
  1682. package/node_modules/find-my-way/test/regex.test.js +282 -0
  1683. package/node_modules/find-my-way/test/repro-issue-414.test.js +57 -0
  1684. package/node_modules/find-my-way/test/routes-registered.test.js +45 -0
  1685. package/node_modules/find-my-way/test/server.test.js +368 -0
  1686. package/node_modules/find-my-way/test/shorthands.test.js +44 -0
  1687. package/node_modules/find-my-way/test/store.test.js +49 -0
  1688. package/node_modules/find-my-way/test/types/router.tst.ts +273 -0
  1689. package/node_modules/find-my-way/test/url-sanitizer.test.js +87 -0
  1690. package/node_modules/glob/LICENSE.md +63 -0
  1691. package/node_modules/glob/README.md +1203 -0
  1692. package/node_modules/glob/dist/commonjs/glob.d.ts +396 -0
  1693. package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  1694. package/node_modules/glob/dist/commonjs/glob.js +248 -0
  1695. package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  1696. package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  1697. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  1698. package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
  1699. package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  1700. package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
  1701. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  1702. package/node_modules/glob/dist/commonjs/ignore.js +119 -0
  1703. package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  1704. package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
  1705. package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  1706. package/node_modules/glob/dist/commonjs/index.js +68 -0
  1707. package/node_modules/glob/dist/commonjs/index.js.map +1 -0
  1708. package/node_modules/glob/dist/commonjs/index.min.js +4 -0
  1709. package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
  1710. package/node_modules/glob/dist/commonjs/package.json +3 -0
  1711. package/node_modules/glob/dist/commonjs/pattern.d.ts +79 -0
  1712. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  1713. package/node_modules/glob/dist/commonjs/pattern.js +223 -0
  1714. package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  1715. package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
  1716. package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  1717. package/node_modules/glob/dist/commonjs/processor.js +301 -0
  1718. package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  1719. package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
  1720. package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  1721. package/node_modules/glob/dist/commonjs/walker.js +387 -0
  1722. package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  1723. package/node_modules/glob/dist/esm/glob.d.ts +396 -0
  1724. package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  1725. package/node_modules/glob/dist/esm/glob.js +244 -0
  1726. package/node_modules/glob/dist/esm/glob.js.map +1 -0
  1727. package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  1728. package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  1729. package/node_modules/glob/dist/esm/has-magic.js +23 -0
  1730. package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  1731. package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
  1732. package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  1733. package/node_modules/glob/dist/esm/ignore.js +115 -0
  1734. package/node_modules/glob/dist/esm/ignore.js.map +1 -0
  1735. package/node_modules/glob/dist/esm/index.d.ts +97 -0
  1736. package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  1737. package/node_modules/glob/dist/esm/index.js +55 -0
  1738. package/node_modules/glob/dist/esm/index.js.map +1 -0
  1739. package/node_modules/glob/dist/esm/index.min.js +4 -0
  1740. package/node_modules/glob/dist/esm/index.min.js.map +7 -0
  1741. package/node_modules/glob/dist/esm/package.json +3 -0
  1742. package/node_modules/glob/dist/esm/pattern.d.ts +79 -0
  1743. package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  1744. package/node_modules/glob/dist/esm/pattern.js +219 -0
  1745. package/node_modules/glob/dist/esm/pattern.js.map +1 -0
  1746. package/node_modules/glob/dist/esm/processor.d.ts +59 -0
  1747. package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  1748. package/node_modules/glob/dist/esm/processor.js +294 -0
  1749. package/node_modules/glob/dist/esm/processor.js.map +1 -0
  1750. package/node_modules/glob/dist/esm/walker.d.ts +97 -0
  1751. package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  1752. package/node_modules/glob/dist/esm/walker.js +381 -0
  1753. package/node_modules/glob/dist/esm/walker.js.map +1 -0
  1754. package/node_modules/glob/package.json +98 -0
  1755. package/node_modules/http-errors/HISTORY.md +186 -0
  1756. package/node_modules/http-errors/LICENSE +23 -0
  1757. package/node_modules/http-errors/README.md +169 -0
  1758. package/node_modules/http-errors/index.js +290 -0
  1759. package/node_modules/http-errors/package.json +54 -0
  1760. package/node_modules/inherits/LICENSE +16 -0
  1761. package/node_modules/inherits/README.md +42 -0
  1762. package/node_modules/inherits/inherits.js +9 -0
  1763. package/node_modules/inherits/inherits_browser.js +27 -0
  1764. package/node_modules/inherits/package.json +29 -0
  1765. package/node_modules/ipaddr.js/LICENSE +19 -0
  1766. package/node_modules/ipaddr.js/README.md +632 -0
  1767. package/node_modules/ipaddr.js/lib/ipaddr.d.ts +72 -0
  1768. package/node_modules/ipaddr.js/lib/ipaddr.js +1098 -0
  1769. package/node_modules/ipaddr.js/package.json +39 -0
  1770. package/node_modules/json-schema-ref-resolver/.gitattributes +2 -0
  1771. package/node_modules/json-schema-ref-resolver/.github/dependabot.yml +53 -0
  1772. package/node_modules/json-schema-ref-resolver/.github/workflows/ci.yml +33 -0
  1773. package/node_modules/json-schema-ref-resolver/.github/workflows/lock-threads.yml +19 -0
  1774. package/node_modules/json-schema-ref-resolver/.github/workflows/release.yml +24 -0
  1775. package/node_modules/json-schema-ref-resolver/LICENSE +21 -0
  1776. package/node_modules/json-schema-ref-resolver/README.md +406 -0
  1777. package/node_modules/json-schema-ref-resolver/eslint.config.js +6 -0
  1778. package/node_modules/json-schema-ref-resolver/index.js +284 -0
  1779. package/node_modules/json-schema-ref-resolver/package.json +71 -0
  1780. package/node_modules/json-schema-ref-resolver/test/anchor.test.js +56 -0
  1781. package/node_modules/json-schema-ref-resolver/test/collisions.test.js +199 -0
  1782. package/node_modules/json-schema-ref-resolver/test/deref-schema.test.js +287 -0
  1783. package/node_modules/json-schema-ref-resolver/test/get-deref-schema.test.js +363 -0
  1784. package/node_modules/json-schema-ref-resolver/test/get-schema-dependencies.test.js +158 -0
  1785. package/node_modules/json-schema-ref-resolver/test/get-schema-refs.test.js +87 -0
  1786. package/node_modules/json-schema-ref-resolver/test/get-schema.test.js +222 -0
  1787. package/node_modules/json-schema-ref-resolver/test/has-schema.test.js +28 -0
  1788. package/node_modules/json-schema-ref-resolver/types/index.d.ts +67 -0
  1789. package/node_modules/json-schema-ref-resolver/types/index.tst.ts +23 -0
  1790. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  1791. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  1792. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1793. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1794. package/node_modules/json-schema-traverse/LICENSE +21 -0
  1795. package/node_modules/json-schema-traverse/README.md +95 -0
  1796. package/node_modules/json-schema-traverse/index.d.ts +40 -0
  1797. package/node_modules/json-schema-traverse/index.js +93 -0
  1798. package/node_modules/json-schema-traverse/package.json +43 -0
  1799. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1800. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1801. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1802. package/node_modules/light-my-request/.gitattributes +2 -0
  1803. package/node_modules/light-my-request/.github/dependabot.yml +53 -0
  1804. package/node_modules/light-my-request/.github/workflows/ci.yml +34 -0
  1805. package/node_modules/light-my-request/.github/workflows/lock-threads.yml +19 -0
  1806. package/node_modules/light-my-request/.github/workflows/release.yml +24 -0
  1807. package/node_modules/light-my-request/LICENSE +32 -0
  1808. package/node_modules/light-my-request/README.md +342 -0
  1809. package/node_modules/light-my-request/benchmark/benchmark.js +164 -0
  1810. package/node_modules/light-my-request/build/build-validation.js +116 -0
  1811. package/node_modules/light-my-request/docs/cookies.md +32 -0
  1812. package/node_modules/light-my-request/eslint.config.js +9 -0
  1813. package/node_modules/light-my-request/index.js +209 -0
  1814. package/node_modules/light-my-request/lib/config-validator.js +1083 -0
  1815. package/node_modules/light-my-request/lib/cookies.js +66 -0
  1816. package/node_modules/light-my-request/lib/form-data.js +79 -0
  1817. package/node_modules/light-my-request/lib/parse-url.js +47 -0
  1818. package/node_modules/light-my-request/lib/request.js +357 -0
  1819. package/node_modules/light-my-request/lib/response.js +242 -0
  1820. package/node_modules/light-my-request/package.json +84 -0
  1821. package/node_modules/light-my-request/test/async-await.test.js +55 -0
  1822. package/node_modules/light-my-request/test/bind-inject.test.js +296 -0
  1823. package/node_modules/light-my-request/test/index.test.js +2520 -0
  1824. package/node_modules/light-my-request/test/request.test.js +29 -0
  1825. package/node_modules/light-my-request/test/response.test.js +29 -0
  1826. package/node_modules/light-my-request/test/stream.test.js +359 -0
  1827. package/node_modules/light-my-request/types/index.d.ts +143 -0
  1828. package/node_modules/light-my-request/types/index.tst.ts +195 -0
  1829. package/node_modules/mime/CHANGELOG.md +312 -0
  1830. package/node_modules/mime/LICENSE +21 -0
  1831. package/node_modules/mime/Mime.js +97 -0
  1832. package/node_modules/mime/README.md +178 -0
  1833. package/node_modules/mime/cli.js +46 -0
  1834. package/node_modules/mime/index.js +4 -0
  1835. package/node_modules/mime/lite.js +4 -0
  1836. package/node_modules/mime/package.json +52 -0
  1837. package/node_modules/mime/types/other.js +1 -0
  1838. package/node_modules/mime/types/standard.js +1 -0
  1839. package/node_modules/minipass/LICENSE.md +55 -0
  1840. package/node_modules/minipass/README.md +825 -0
  1841. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  1842. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  1843. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  1844. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  1845. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  1846. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  1847. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  1848. package/node_modules/minipass/dist/esm/index.js +1020 -0
  1849. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  1850. package/node_modules/minipass/dist/esm/package.json +3 -0
  1851. package/node_modules/minipass/package.json +77 -0
  1852. package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
  1853. package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
  1854. package/node_modules/on-exit-leak-free/LICENSE +21 -0
  1855. package/node_modules/on-exit-leak-free/README.md +54 -0
  1856. package/node_modules/on-exit-leak-free/index.js +108 -0
  1857. package/node_modules/on-exit-leak-free/package.json +37 -0
  1858. package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
  1859. package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
  1860. package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
  1861. package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
  1862. package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
  1863. package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
  1864. package/node_modules/path-scurry/LICENSE.md +55 -0
  1865. package/node_modules/path-scurry/README.md +636 -0
  1866. package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
  1867. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  1868. package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
  1869. package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  1870. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  1871. package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
  1872. package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  1873. package/node_modules/path-scurry/dist/esm/index.js +1983 -0
  1874. package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  1875. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  1876. package/node_modules/path-scurry/package.json +72 -0
  1877. package/node_modules/pino/.nojekyll +0 -0
  1878. package/node_modules/pino/.prettierignore +1 -0
  1879. package/node_modules/pino/CNAME +1 -0
  1880. package/node_modules/pino/CONTRIBUTING.md +34 -0
  1881. package/node_modules/pino/LICENSE +21 -0
  1882. package/node_modules/pino/README.md +177 -0
  1883. package/node_modules/pino/SECURITY.md +103 -0
  1884. package/node_modules/pino/benchmarks/basic.bench.js +95 -0
  1885. package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
  1886. package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
  1887. package/node_modules/pino/benchmarks/child.bench.js +62 -0
  1888. package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
  1889. package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
  1890. package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
  1891. package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
  1892. package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
  1893. package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
  1894. package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
  1895. package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
  1896. package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
  1897. package/node_modules/pino/benchmarks/multistream.js +98 -0
  1898. package/node_modules/pino/benchmarks/object.bench.js +82 -0
  1899. package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
  1900. package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
  1901. package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
  1902. package/node_modules/pino/bin.js +6 -0
  1903. package/node_modules/pino/browser.js +607 -0
  1904. package/node_modules/pino/build/sync-version.js +25 -0
  1905. package/node_modules/pino/docs/api.md +1664 -0
  1906. package/node_modules/pino/docs/asynchronous.md +55 -0
  1907. package/node_modules/pino/docs/benchmarks.md +55 -0
  1908. package/node_modules/pino/docs/browser.md +341 -0
  1909. package/node_modules/pino/docs/bundling.md +40 -0
  1910. package/node_modules/pino/docs/child-loggers.md +116 -0
  1911. package/node_modules/pino/docs/diagnostics.md +16 -0
  1912. package/node_modules/pino/docs/ecosystem.md +87 -0
  1913. package/node_modules/pino/docs/help.md +353 -0
  1914. package/node_modules/pino/docs/lts.md +93 -0
  1915. package/node_modules/pino/docs/pretty.md +38 -0
  1916. package/node_modules/pino/docs/redaction.md +130 -0
  1917. package/node_modules/pino/docs/transports.md +1447 -0
  1918. package/node_modules/pino/docs/web.md +306 -0
  1919. package/node_modules/pino/eslint.config.js +36 -0
  1920. package/node_modules/pino/examples/basic.js +43 -0
  1921. package/node_modules/pino/examples/transport.js +68 -0
  1922. package/node_modules/pino/favicon.ico +0 -0
  1923. package/node_modules/pino/file.js +12 -0
  1924. package/node_modules/pino/inc-version.sh +42 -0
  1925. package/node_modules/pino/index.html +55 -0
  1926. package/node_modules/pino/lib/caller.js +40 -0
  1927. package/node_modules/pino/lib/constants.js +28 -0
  1928. package/node_modules/pino/lib/deprecations.js +8 -0
  1929. package/node_modules/pino/lib/levels.js +241 -0
  1930. package/node_modules/pino/lib/meta.js +3 -0
  1931. package/node_modules/pino/lib/multistream.js +211 -0
  1932. package/node_modules/pino/lib/proto.js +256 -0
  1933. package/node_modules/pino/lib/redaction.js +119 -0
  1934. package/node_modules/pino/lib/symbols.js +76 -0
  1935. package/node_modules/pino/lib/time.js +39 -0
  1936. package/node_modules/pino/lib/tools.js +427 -0
  1937. package/node_modules/pino/lib/transport-stream.js +56 -0
  1938. package/node_modules/pino/lib/transport.js +302 -0
  1939. package/node_modules/pino/lib/worker.js +197 -0
  1940. package/node_modules/pino/package.json +112 -0
  1941. package/node_modules/pino/pino.d.ts +881 -0
  1942. package/node_modules/pino/pino.js +259 -0
  1943. package/node_modules/pino/test/basic.test.js +952 -0
  1944. package/node_modules/pino/test/broken-pipe.test.js +59 -0
  1945. package/node_modules/pino/test/browser-bindings.test.js +114 -0
  1946. package/node_modules/pino/test/browser-child.test.js +132 -0
  1947. package/node_modules/pino/test/browser-disabled.test.js +87 -0
  1948. package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
  1949. package/node_modules/pino/test/browser-is-level-enabled.test.js +101 -0
  1950. package/node_modules/pino/test/browser-levels.test.js +241 -0
  1951. package/node_modules/pino/test/browser-redaction.test.js +264 -0
  1952. package/node_modules/pino/test/browser-serializers.test.js +352 -0
  1953. package/node_modules/pino/test/browser-set-bindings.test.js +99 -0
  1954. package/node_modules/pino/test/browser-timestamp.test.js +88 -0
  1955. package/node_modules/pino/test/browser-transmit.test.js +417 -0
  1956. package/node_modules/pino/test/browser.test.js +698 -0
  1957. package/node_modules/pino/test/caller.test.js +20 -0
  1958. package/node_modules/pino/test/complex-objects.test.js +36 -0
  1959. package/node_modules/pino/test/crlf.test.js +34 -0
  1960. package/node_modules/pino/test/custom-levels.test.js +267 -0
  1961. package/node_modules/pino/test/diagnostics.test.js +107 -0
  1962. package/node_modules/pino/test/error-key.test.js +37 -0
  1963. package/node_modules/pino/test/error.test.js +403 -0
  1964. package/node_modules/pino/test/escaping.test.js +110 -0
  1965. package/node_modules/pino/test/esm/esm.mjs +14 -0
  1966. package/node_modules/pino/test/esm/index.test.js +21 -0
  1967. package/node_modules/pino/test/esm/named-exports.mjs +29 -0
  1968. package/node_modules/pino/test/exit.test.js +79 -0
  1969. package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
  1970. package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
  1971. package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
  1972. package/node_modules/pino/test/fixtures/caller-loop.js +6 -0
  1973. package/node_modules/pino/test/fixtures/console-transport.js +13 -0
  1974. package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
  1975. package/node_modules/pino/test/fixtures/default-exit.js +8 -0
  1976. package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
  1977. package/node_modules/pino/test/fixtures/eval/index.js +13 -0
  1978. package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
  1979. package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
  1980. package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
  1981. package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
  1982. package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
  1983. package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
  1984. package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
  1985. package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
  1986. package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
  1987. package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
  1988. package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
  1989. package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
  1990. package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
  1991. package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
  1992. package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
  1993. package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
  1994. package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
  1995. package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
  1996. package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
  1997. package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
  1998. package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
  1999. package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
  2000. package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
  2001. package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
  2002. package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
  2003. package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
  2004. package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
  2005. package/node_modules/pino/test/fixtures/transport/index.js +12 -0
  2006. package/node_modules/pino/test/fixtures/transport/package.json +5 -0
  2007. package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
  2008. package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
  2009. package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
  2010. package/node_modules/pino/test/fixtures/transport-invalid-node-options.js +26 -0
  2011. package/node_modules/pino/test/fixtures/transport-main.js +9 -0
  2012. package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
  2013. package/node_modules/pino/test/fixtures/transport-preload-main.mjs +13 -0
  2014. package/node_modules/pino/test/fixtures/transport-preload.mjs +13 -0
  2015. package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
  2016. package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
  2017. package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
  2018. package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
  2019. package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
  2020. package/node_modules/pino/test/fixtures/transport-worker-name.js +24 -0
  2021. package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
  2022. package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
  2023. package/node_modules/pino/test/fixtures/ts/to-file-transport-native.mts +15 -0
  2024. package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
  2025. package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
  2026. package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
  2027. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
  2028. package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
  2029. package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
  2030. package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
  2031. package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
  2032. package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
  2033. package/node_modules/pino/test/formatters.test.js +364 -0
  2034. package/node_modules/pino/test/helper.d.ts +4 -0
  2035. package/node_modules/pino/test/helper.js +159 -0
  2036. package/node_modules/pino/test/hooks.test.js +114 -0
  2037. package/node_modules/pino/test/http.test.js +214 -0
  2038. package/node_modules/pino/test/internals/version.test.js +17 -0
  2039. package/node_modules/pino/test/is-level-enabled.test.js +179 -0
  2040. package/node_modules/pino/test/jest/basic.spec.js +10 -0
  2041. package/node_modules/pino/test/levels.test.js +810 -0
  2042. package/node_modules/pino/test/metadata.test.js +120 -0
  2043. package/node_modules/pino/test/mixin-merge-strategy.test.js +57 -0
  2044. package/node_modules/pino/test/mixin.test.js +241 -0
  2045. package/node_modules/pino/test/multistream.test.js +793 -0
  2046. package/node_modules/pino/test/redact.test.js +923 -0
  2047. package/node_modules/pino/test/serializers.test.js +257 -0
  2048. package/node_modules/pino/test/smoke.js +59 -0
  2049. package/node_modules/pino/test/stdout-protection.test.js +41 -0
  2050. package/node_modules/pino/test/syncfalse.test.js +186 -0
  2051. package/node_modules/pino/test/timestamp-nano.test.js +37 -0
  2052. package/node_modules/pino/test/timestamp.test.js +124 -0
  2053. package/node_modules/pino/test/transport/big.test.js +42 -0
  2054. package/node_modules/pino/test/transport/bundlers-support.test.js +99 -0
  2055. package/node_modules/pino/test/transport/caller.test.js +24 -0
  2056. package/node_modules/pino/test/transport/core.test.js +818 -0
  2057. package/node_modules/pino/test/transport/core.transpiled.test.ts +114 -0
  2058. package/node_modules/pino/test/transport/crash.test.js +36 -0
  2059. package/node_modules/pino/test/transport/module-link.test.js +241 -0
  2060. package/node_modules/pino/test/transport/native-type-stripping.test.mjs +151 -0
  2061. package/node_modules/pino/test/transport/node-options.test.js +116 -0
  2062. package/node_modules/pino/test/transport/pipeline.test.js +137 -0
  2063. package/node_modules/pino/test/transport/preload.test.js +54 -0
  2064. package/node_modules/pino/test/transport/repl.test.js +15 -0
  2065. package/node_modules/pino/test/transport/sync-false.test.js +79 -0
  2066. package/node_modules/pino/test/transport/sync-true.test.js +57 -0
  2067. package/node_modules/pino/test/transport/targets.test.js +48 -0
  2068. package/node_modules/pino/test/transport/uses-pino-config.test.js +166 -0
  2069. package/node_modules/pino/test/transport-stream.test.js +40 -0
  2070. package/node_modules/pino/test/types/pino-import.tst.cts +30 -0
  2071. package/node_modules/pino/test/types/pino-import.tst.js +73 -0
  2072. package/node_modules/pino/test/types/pino-multistream.tst.ts +49 -0
  2073. package/node_modules/pino/test/types/pino-top-export.tst.ts +32 -0
  2074. package/node_modules/pino/test/types/pino-transport.tst.ts +171 -0
  2075. package/node_modules/pino/test/types/pino-type-only.tst.ts +77 -0
  2076. package/node_modules/pino/test/types/pino.ts +98 -0
  2077. package/node_modules/pino/test/types/pino.tst.ts +681 -0
  2078. package/node_modules/pino/test/types/tsconfig.json +10 -0
  2079. package/node_modules/pino/tsconfig.json +14 -0
  2080. package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
  2081. package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +80 -0
  2082. package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
  2083. package/node_modules/pino-abstract-transport/LICENSE +21 -0
  2084. package/node_modules/pino-abstract-transport/README.md +171 -0
  2085. package/node_modules/pino-abstract-transport/index.d.ts +122 -0
  2086. package/node_modules/pino-abstract-transport/index.js +128 -0
  2087. package/node_modules/pino-abstract-transport/package.json +41 -0
  2088. package/node_modules/pino-abstract-transport/test/base.test.js +473 -0
  2089. package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
  2090. package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
  2091. package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
  2092. package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
  2093. package/node_modules/pino-abstract-transport/test/match.js +24 -0
  2094. package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
  2095. package/node_modules/pino-abstract-transport/test/worker.test.js +372 -0
  2096. package/node_modules/pino-std-serializers/.editorconfig +13 -0
  2097. package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
  2098. package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
  2099. package/node_modules/pino-std-serializers/LICENSE +7 -0
  2100. package/node_modules/pino-std-serializers/Readme.md +182 -0
  2101. package/node_modules/pino-std-serializers/eslint.config.js +7 -0
  2102. package/node_modules/pino-std-serializers/index.d.ts +145 -0
  2103. package/node_modules/pino-std-serializers/index.js +36 -0
  2104. package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
  2105. package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
  2106. package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
  2107. package/node_modules/pino-std-serializers/lib/err.js +45 -0
  2108. package/node_modules/pino-std-serializers/lib/req.js +100 -0
  2109. package/node_modules/pino-std-serializers/lib/res.js +47 -0
  2110. package/node_modules/pino-std-serializers/package.json +42 -0
  2111. package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
  2112. package/node_modules/pino-std-serializers/test/err.test.js +200 -0
  2113. package/node_modules/pino-std-serializers/test/req.test.js +477 -0
  2114. package/node_modules/pino-std-serializers/test/res.test.js +120 -0
  2115. package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
  2116. package/node_modules/pino-std-serializers/tsconfig.json +13 -0
  2117. package/node_modules/process-warning/.gitattributes +2 -0
  2118. package/node_modules/process-warning/.github/dependabot.yml +53 -0
  2119. package/node_modules/process-warning/.github/workflows/ci.yml +33 -0
  2120. package/node_modules/process-warning/.github/workflows/lock-threads.yml +19 -0
  2121. package/node_modules/process-warning/.github/workflows/release.yml +24 -0
  2122. package/node_modules/process-warning/LICENSE +21 -0
  2123. package/node_modules/process-warning/README.md +157 -0
  2124. package/node_modules/process-warning/benchmarks/warn.js +25 -0
  2125. package/node_modules/process-warning/eslint.config.js +6 -0
  2126. package/node_modules/process-warning/examples/example.js +11 -0
  2127. package/node_modules/process-warning/index.js +192 -0
  2128. package/node_modules/process-warning/package.json +72 -0
  2129. package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
  2130. package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
  2131. package/node_modules/process-warning/test/emit-reset.test.js +40 -0
  2132. package/node_modules/process-warning/test/emit-set.test.js +35 -0
  2133. package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
  2134. package/node_modules/process-warning/test/index.test.js +99 -0
  2135. package/node_modules/process-warning/test/issue-88.test.js +38 -0
  2136. package/node_modules/process-warning/test/jest.test.js +24 -0
  2137. package/node_modules/process-warning/test/no-warnings.test.js +80 -0
  2138. package/node_modules/process-warning/test/promise.js +10 -0
  2139. package/node_modules/process-warning/test/spy-warning.test.js +143 -0
  2140. package/node_modules/process-warning/types/index.d.ts +51 -0
  2141. package/node_modules/process-warning/types/index.tst.ts +48 -0
  2142. package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
  2143. package/node_modules/quick-format-unescaped/LICENSE +21 -0
  2144. package/node_modules/quick-format-unescaped/benchmark.js +24 -0
  2145. package/node_modules/quick-format-unescaped/index.js +109 -0
  2146. package/node_modules/quick-format-unescaped/package.json +29 -0
  2147. package/node_modules/quick-format-unescaped/readme.md +66 -0
  2148. package/node_modules/quick-format-unescaped/test/index.js +136 -0
  2149. package/node_modules/real-require/LICENSE.md +21 -0
  2150. package/node_modules/real-require/README.md +51 -0
  2151. package/node_modules/real-require/package.json +38 -0
  2152. package/node_modules/real-require/src/index.js +14 -0
  2153. package/node_modules/require-from-string/index.js +34 -0
  2154. package/node_modules/require-from-string/license +21 -0
  2155. package/node_modules/require-from-string/package.json +28 -0
  2156. package/node_modules/require-from-string/readme.md +56 -0
  2157. package/node_modules/ret/LICENSE +21 -0
  2158. package/node_modules/ret/README.md +540 -0
  2159. package/node_modules/ret/dist/index.d.ts +7 -0
  2160. package/node_modules/ret/dist/index.js +30 -0
  2161. package/node_modules/ret/dist/index.js.map +1 -0
  2162. package/node_modules/ret/dist/reconstruct.d.ts +2 -0
  2163. package/node_modules/ret/dist/reconstruct.js +78 -0
  2164. package/node_modules/ret/dist/reconstruct.js.map +1 -0
  2165. package/node_modules/ret/dist/sets-lookup.d.ts +5 -0
  2166. package/node_modules/ret/dist/sets-lookup.js +65 -0
  2167. package/node_modules/ret/dist/sets-lookup.js.map +1 -0
  2168. package/node_modules/ret/dist/sets.d.ts +9 -0
  2169. package/node_modules/ret/dist/sets.js +50 -0
  2170. package/node_modules/ret/dist/sets.js.map +1 -0
  2171. package/node_modules/ret/dist/tokenizer.d.ts +8 -0
  2172. package/node_modules/ret/dist/tokenizer.js +372 -0
  2173. package/node_modules/ret/dist/tokenizer.js.map +1 -0
  2174. package/node_modules/ret/dist/types/index.d.ts +3 -0
  2175. package/node_modules/ret/dist/types/index.js +20 -0
  2176. package/node_modules/ret/dist/types/index.js.map +1 -0
  2177. package/node_modules/ret/dist/types/set-lookup.d.ts +8 -0
  2178. package/node_modules/ret/dist/types/set-lookup.js +3 -0
  2179. package/node_modules/ret/dist/types/set-lookup.js.map +1 -0
  2180. package/node_modules/ret/dist/types/tokens.d.ts +42 -0
  2181. package/node_modules/ret/dist/types/tokens.js +3 -0
  2182. package/node_modules/ret/dist/types/tokens.js.map +1 -0
  2183. package/node_modules/ret/dist/types/types.d.ts +10 -0
  2184. package/node_modules/ret/dist/types/types.js +15 -0
  2185. package/node_modules/ret/dist/types/types.js.map +1 -0
  2186. package/node_modules/ret/dist/util.d.ts +18 -0
  2187. package/node_modules/ret/dist/util.js +98 -0
  2188. package/node_modules/ret/dist/util.js.map +1 -0
  2189. package/node_modules/ret/dist/write-set-tokens.d.ts +14 -0
  2190. package/node_modules/ret/dist/write-set-tokens.js +121 -0
  2191. package/node_modules/ret/dist/write-set-tokens.js.map +1 -0
  2192. package/node_modules/ret/package.json +44 -0
  2193. package/node_modules/reusify/.github/dependabot.yml +7 -0
  2194. package/node_modules/reusify/.github/workflows/ci.yml +96 -0
  2195. package/node_modules/reusify/LICENSE +22 -0
  2196. package/node_modules/reusify/README.md +139 -0
  2197. package/node_modules/reusify/SECURITY.md +15 -0
  2198. package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  2199. package/node_modules/reusify/benchmarks/fib.js +13 -0
  2200. package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  2201. package/node_modules/reusify/eslint.config.js +14 -0
  2202. package/node_modules/reusify/package.json +50 -0
  2203. package/node_modules/reusify/reusify.d.ts +14 -0
  2204. package/node_modules/reusify/reusify.js +33 -0
  2205. package/node_modules/reusify/test.js +66 -0
  2206. package/node_modules/reusify/tsconfig.json +11 -0
  2207. package/node_modules/rfdc/.github/workflows/ci.yml +21 -0
  2208. package/node_modules/rfdc/LICENSE +15 -0
  2209. package/node_modules/rfdc/default.js +3 -0
  2210. package/node_modules/rfdc/index.d.ts +13 -0
  2211. package/node_modules/rfdc/index.js +198 -0
  2212. package/node_modules/rfdc/index.test-d.ts +13 -0
  2213. package/node_modules/rfdc/package.json +73 -0
  2214. package/node_modules/rfdc/readme.md +181 -0
  2215. package/node_modules/rfdc/test/index.js +306 -0
  2216. package/node_modules/safe-regex2/.gitattributes +2 -0
  2217. package/node_modules/safe-regex2/.github/dependabot.yml +53 -0
  2218. package/node_modules/safe-regex2/.github/workflows/ci.yml +33 -0
  2219. package/node_modules/safe-regex2/.github/workflows/lock-threads.yml +19 -0
  2220. package/node_modules/safe-regex2/.github/workflows/release.yml +24 -0
  2221. package/node_modules/safe-regex2/LICENSE +21 -0
  2222. package/node_modules/safe-regex2/README.md +68 -0
  2223. package/node_modules/safe-regex2/bin/safe-regex2.js +58 -0
  2224. package/node_modules/safe-regex2/eslint.config.js +6 -0
  2225. package/node_modules/safe-regex2/example/safe.js +5 -0
  2226. package/node_modules/safe-regex2/index.js +76 -0
  2227. package/node_modules/safe-regex2/package.json +78 -0
  2228. package/node_modules/safe-regex2/test/regex.test.js +58 -0
  2229. package/node_modules/safe-regex2/types/index.d.ts +9 -0
  2230. package/node_modules/safe-regex2/types/index.tst.ts +12 -0
  2231. package/node_modules/safe-stable-stringify/LICENSE +21 -0
  2232. package/node_modules/safe-stable-stringify/esm/package.json +4 -0
  2233. package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
  2234. package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
  2235. package/node_modules/safe-stable-stringify/index.d.ts +22 -0
  2236. package/node_modules/safe-stable-stringify/index.js +625 -0
  2237. package/node_modules/safe-stable-stringify/package.json +65 -0
  2238. package/node_modules/safe-stable-stringify/readme.md +179 -0
  2239. package/node_modules/secure-json-parse/.airtap.yml +7 -0
  2240. package/node_modules/secure-json-parse/.gitattributes +2 -0
  2241. package/node_modules/secure-json-parse/.github/dependabot.yml +53 -0
  2242. package/node_modules/secure-json-parse/.github/workflows/ci.yml +124 -0
  2243. package/node_modules/secure-json-parse/.github/workflows/lock-threads.yml +19 -0
  2244. package/node_modules/secure-json-parse/.github/workflows/release.yml +24 -0
  2245. package/node_modules/secure-json-parse/LICENSE +17 -0
  2246. package/node_modules/secure-json-parse/README.md +172 -0
  2247. package/node_modules/secure-json-parse/benchmarks/ignore.js +37 -0
  2248. package/node_modules/secure-json-parse/benchmarks/no__proto__.js +42 -0
  2249. package/node_modules/secure-json-parse/benchmarks/package.json +15 -0
  2250. package/node_modules/secure-json-parse/benchmarks/remove.js +41 -0
  2251. package/node_modules/secure-json-parse/benchmarks/throw.js +51 -0
  2252. package/node_modules/secure-json-parse/benchmarks/valid.js +51 -0
  2253. package/node_modules/secure-json-parse/eslint.config.js +6 -0
  2254. package/node_modules/secure-json-parse/index.js +163 -0
  2255. package/node_modules/secure-json-parse/package.json +74 -0
  2256. package/node_modules/secure-json-parse/test/index.test.js +651 -0
  2257. package/node_modules/secure-json-parse/types/index.d.ts +60 -0
  2258. package/node_modules/secure-json-parse/types/index.tst.ts +45 -0
  2259. package/node_modules/set-cookie-parser/LICENSE +21 -0
  2260. package/node_modules/set-cookie-parser/README.md +189 -0
  2261. package/node_modules/set-cookie-parser/dist/.eslintrc.cjs +16 -0
  2262. package/node_modules/set-cookie-parser/dist/set-cookie.cjs +306 -0
  2263. package/node_modules/set-cookie-parser/lib/set-cookie.d.ts +119 -0
  2264. package/node_modules/set-cookie-parser/lib/set-cookie.js +311 -0
  2265. package/node_modules/set-cookie-parser/package.json +61 -0
  2266. package/node_modules/setprototypeof/LICENSE +13 -0
  2267. package/node_modules/setprototypeof/README.md +31 -0
  2268. package/node_modules/setprototypeof/index.d.ts +2 -0
  2269. package/node_modules/setprototypeof/index.js +17 -0
  2270. package/node_modules/setprototypeof/package.json +38 -0
  2271. package/node_modules/setprototypeof/test/index.js +24 -0
  2272. package/node_modules/sonic-boom/.eslintignore +2 -0
  2273. package/node_modules/sonic-boom/.taprc +3 -0
  2274. package/node_modules/sonic-boom/LICENSE +21 -0
  2275. package/node_modules/sonic-boom/README.md +153 -0
  2276. package/node_modules/sonic-boom/bench.js +98 -0
  2277. package/node_modules/sonic-boom/check.js +18 -0
  2278. package/node_modules/sonic-boom/example.js +8 -0
  2279. package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
  2280. package/node_modules/sonic-boom/index.js +733 -0
  2281. package/node_modules/sonic-boom/package.json +52 -0
  2282. package/node_modules/sonic-boom/test/destroy.test.js +49 -0
  2283. package/node_modules/sonic-boom/test/end.test.js +98 -0
  2284. package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
  2285. package/node_modules/sonic-boom/test/flush.test.js +419 -0
  2286. package/node_modules/sonic-boom/test/fsync.test.js +63 -0
  2287. package/node_modules/sonic-boom/test/helper.js +42 -0
  2288. package/node_modules/sonic-boom/test/minlength.test.js +35 -0
  2289. package/node_modules/sonic-boom/test/mode.test.js +116 -0
  2290. package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
  2291. package/node_modules/sonic-boom/test/reopen.test.js +239 -0
  2292. package/node_modules/sonic-boom/test/retry.test.js +414 -0
  2293. package/node_modules/sonic-boom/test/sync.test.js +261 -0
  2294. package/node_modules/sonic-boom/test/write.test.js +515 -0
  2295. package/node_modules/sonic-boom/types/index.d.ts +63 -0
  2296. package/node_modules/sonic-boom/types/tests/test.ts +4 -0
  2297. package/node_modules/split2/LICENSE +13 -0
  2298. package/node_modules/split2/README.md +85 -0
  2299. package/node_modules/split2/bench.js +27 -0
  2300. package/node_modules/split2/index.js +141 -0
  2301. package/node_modules/split2/package.json +39 -0
  2302. package/node_modules/split2/test.js +409 -0
  2303. package/node_modules/statuses/HISTORY.md +87 -0
  2304. package/node_modules/statuses/LICENSE +23 -0
  2305. package/node_modules/statuses/README.md +139 -0
  2306. package/node_modules/statuses/codes.json +65 -0
  2307. package/node_modules/statuses/index.js +146 -0
  2308. package/node_modules/statuses/package.json +49 -0
  2309. package/node_modules/thread-stream/.claude/settings.local.json +15 -0
  2310. package/node_modules/thread-stream/.github/dependabot.yml +13 -0
  2311. package/node_modules/thread-stream/.github/workflows/ci.yml +74 -0
  2312. package/node_modules/thread-stream/LICENSE +21 -0
  2313. package/node_modules/thread-stream/README.md +138 -0
  2314. package/node_modules/thread-stream/bench.js +85 -0
  2315. package/node_modules/thread-stream/eslint.config.js +10 -0
  2316. package/node_modules/thread-stream/index.d.ts +99 -0
  2317. package/node_modules/thread-stream/index.js +645 -0
  2318. package/node_modules/thread-stream/lib/indexes.js +11 -0
  2319. package/node_modules/thread-stream/lib/wait.js +77 -0
  2320. package/node_modules/thread-stream/lib/worker.js +298 -0
  2321. package/node_modules/thread-stream/package.json +50 -0
  2322. package/node_modules/thread-stream/test/base.test.js +259 -0
  2323. package/node_modules/thread-stream/test/bench.test.js +38 -0
  2324. package/node_modules/thread-stream/test/bundlers.test.js +59 -0
  2325. package/node_modules/thread-stream/test/close-on-gc.js +37 -0
  2326. package/node_modules/thread-stream/test/commonjs-fallback.test.js +75 -0
  2327. package/node_modules/thread-stream/test/context.test.js +21 -0
  2328. package/node_modules/thread-stream/test/create-and-exit.js +16 -0
  2329. package/node_modules/thread-stream/test/custom-worker.js +9 -0
  2330. package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
  2331. package/node_modules/thread-stream/test/emit-event.js +22 -0
  2332. package/node_modules/thread-stream/test/end.test.js +56 -0
  2333. package/node_modules/thread-stream/test/error.js +14 -0
  2334. package/node_modules/thread-stream/test/esm.test.mjs +46 -0
  2335. package/node_modules/thread-stream/test/event.test.js +24 -0
  2336. package/node_modules/thread-stream/test/exit.js +14 -0
  2337. package/node_modules/thread-stream/test/flush-worker.js +68 -0
  2338. package/node_modules/thread-stream/test/flush.test.js +112 -0
  2339. package/node_modules/thread-stream/test/get-context.js +22 -0
  2340. package/node_modules/thread-stream/test/helper.d.ts +1 -0
  2341. package/node_modules/thread-stream/test/helper.js +26 -0
  2342. package/node_modules/thread-stream/test/indexes.test.js +11 -0
  2343. package/node_modules/thread-stream/test/message-without-code.js +19 -0
  2344. package/node_modules/thread-stream/test/multibyte-chars.test.mjs +75 -0
  2345. package/node_modules/thread-stream/test/multibyte-overrun.test.mjs +33 -0
  2346. package/node_modules/thread-stream/test/on-message.js +18 -0
  2347. package/node_modules/thread-stream/test/pkg/index.js +37 -0
  2348. package/node_modules/thread-stream/test/pkg/pkg.config.json +14 -0
  2349. package/node_modules/thread-stream/test/pkg/pkg.test.js +45 -0
  2350. package/node_modules/thread-stream/test/port.js +16 -0
  2351. package/node_modules/thread-stream/test/post-message.test.js +23 -0
  2352. package/node_modules/thread-stream/test/report-thread-name.js +16 -0
  2353. package/node_modules/thread-stream/test/string-limit-2.test.js +35 -0
  2354. package/node_modules/thread-stream/test/string-limit.test.js +37 -0
  2355. package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
  2356. package/node_modules/thread-stream/test/thread-management.test.js +150 -0
  2357. package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
  2358. package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
  2359. package/node_modules/thread-stream/test/to-file.js +12 -0
  2360. package/node_modules/thread-stream/test/to-file.mjs +8 -0
  2361. package/node_modules/thread-stream/test/to-next.js +9 -0
  2362. package/node_modules/thread-stream/test/transpiled.test.js +29 -0
  2363. package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
  2364. package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
  2365. package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
  2366. package/node_modules/thread-stream/test/ts-native.test.mjs +35 -0
  2367. package/node_modules/thread-stream/test/ts-node-fallback.test.js +35 -0
  2368. package/node_modules/thread-stream/test/uncaughtException.js +21 -0
  2369. package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
  2370. package/node_modules/thread-stream/test/watch-mode.test.js +30 -0
  2371. package/node_modules/thread-stream/test/worker-name.test.js +43 -0
  2372. package/node_modules/thread-stream/test/yarnrc.yml +7 -0
  2373. package/node_modules/thread-stream/tsconfig.json +8 -0
  2374. package/node_modules/toad-cache/LICENSE +21 -0
  2375. package/node_modules/toad-cache/README.md +266 -0
  2376. package/node_modules/toad-cache/dist/toad-cache.cjs +878 -0
  2377. package/node_modules/toad-cache/dist/toad-cache.mjs +848 -0
  2378. package/node_modules/toad-cache/package.json +84 -0
  2379. package/node_modules/toad-cache/toad-cache.d.cts +144 -0
  2380. package/node_modules/toad-cache/toad-cache.d.ts +132 -0
  2381. package/node_modules/toidentifier/HISTORY.md +9 -0
  2382. package/node_modules/toidentifier/LICENSE +21 -0
  2383. package/node_modules/toidentifier/README.md +61 -0
  2384. package/node_modules/toidentifier/index.js +32 -0
  2385. package/node_modules/toidentifier/package.json +38 -0
  2386. package/node_modules/zod/LICENSE +21 -0
  2387. package/node_modules/zod/README.md +218 -0
  2388. package/node_modules/zod/compile.cjs +96 -0
  2389. package/node_modules/zod/compile.d.cts +1 -0
  2390. package/node_modules/zod/compile.d.ts +1 -0
  2391. package/node_modules/zod/compile.js +52 -0
  2392. package/node_modules/zod/index.cjs +52 -0
  2393. package/node_modules/zod/index.d.cts +3 -0
  2394. package/node_modules/zod/index.d.ts +3 -0
  2395. package/node_modules/zod/index.js +7 -0
  2396. package/node_modules/zod/locales/index.cjs +36 -0
  2397. package/node_modules/zod/locales/index.d.cts +1 -0
  2398. package/node_modules/zod/locales/index.d.ts +1 -0
  2399. package/node_modules/zod/locales/index.js +1 -0
  2400. package/node_modules/zod/locales/package.json +7 -0
  2401. package/node_modules/zod/mini/index.cjs +51 -0
  2402. package/node_modules/zod/mini/index.d.cts +3 -0
  2403. package/node_modules/zod/mini/index.d.ts +3 -0
  2404. package/node_modules/zod/mini/index.js +3 -0
  2405. package/node_modules/zod/mini/package.json +7 -0
  2406. package/node_modules/zod/package.json +147 -0
  2407. package/node_modules/zod/src/compile.ts +56 -0
  2408. package/node_modules/zod/src/index.ts +7 -0
  2409. package/node_modules/zod/src/locales/index.ts +1 -0
  2410. package/node_modules/zod/src/mini/index.ts +3 -0
  2411. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  2412. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  2413. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  2414. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  2415. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  2416. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  2417. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  2418. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  2419. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  2420. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  2421. package/node_modules/zod/src/v3/errors.ts +13 -0
  2422. package/node_modules/zod/src/v3/external.ts +6 -0
  2423. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  2424. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  2425. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  2426. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  2427. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  2428. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  2429. package/node_modules/zod/src/v3/index.ts +4 -0
  2430. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  2431. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  2432. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  2433. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  2434. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  2435. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  2436. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  2437. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  2438. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  2439. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  2440. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  2441. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  2442. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  2443. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  2444. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  2445. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  2446. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  2447. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  2448. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  2449. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  2450. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  2451. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  2452. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  2453. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  2454. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  2455. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  2456. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  2457. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  2458. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  2459. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  2460. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  2461. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  2462. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  2463. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  2464. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  2465. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  2466. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  2467. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  2468. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  2469. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  2470. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  2471. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  2472. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  2473. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  2474. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  2475. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  2476. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  2477. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  2478. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  2479. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  2480. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  2481. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  2482. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  2483. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  2484. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  2485. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  2486. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  2487. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  2488. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  2489. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  2490. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  2491. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  2492. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  2493. package/node_modules/zod/src/v3/types.ts +5138 -0
  2494. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  2495. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  2496. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  2497. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  2498. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  2499. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  2500. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  2501. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  2502. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  2503. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  2504. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  2505. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  2506. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  2507. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  2508. package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  2509. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  2510. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  2511. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  2512. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  2513. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  2514. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  2515. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  2516. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  2517. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  2518. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  2519. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  2520. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  2521. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  2522. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  2523. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  2524. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  2525. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  2526. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  2527. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  2528. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  2529. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  2530. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  2531. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  2532. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  2533. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  2534. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  2535. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  2536. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  2537. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  2538. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  2539. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  2540. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  2541. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  2542. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  2543. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  2544. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  2545. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  2546. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  2547. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  2548. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  2549. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  2550. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  2551. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  2552. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  2553. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  2554. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  2555. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  2556. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  2557. package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  2558. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  2559. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  2560. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  2561. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  2562. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  2563. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  2564. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  2565. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  2566. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  2567. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  2568. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  2569. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  2570. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  2571. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  2572. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  2573. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  2574. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  2575. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  2576. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  2577. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  2578. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  2579. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  2580. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  2581. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  2582. package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  2583. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  2584. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  2585. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  2586. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  2587. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  2588. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  2589. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  2590. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  2591. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  2592. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  2593. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  2594. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  2595. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  2596. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  2597. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  2598. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  2599. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  2600. package/node_modules/zod/src/v4/core/core.ts +230 -0
  2601. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  2602. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  2603. package/node_modules/zod/src/v4/core/index.ts +19 -0
  2604. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  2605. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  2606. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  2607. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  2608. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  2609. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  2610. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  2611. package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  2612. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  2613. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  2614. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  2615. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  2616. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  2617. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  2618. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  2619. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  2620. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  2621. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  2622. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  2623. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  2624. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  2625. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  2626. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  2627. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  2628. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  2629. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  2630. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  2631. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  2632. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  2633. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  2634. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  2635. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  2636. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  2637. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  2638. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  2639. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  2640. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  2641. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  2642. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  2643. package/node_modules/zod/src/v4/core/util.ts +1293 -0
  2644. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  2645. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  2646. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  2647. package/node_modules/zod/src/v4/index.ts +4 -0
  2648. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  2649. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  2650. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  2651. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  2652. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  2653. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  2654. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  2655. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  2656. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  2657. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  2658. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  2659. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  2660. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  2661. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  2662. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  2663. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  2664. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  2665. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  2666. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  2667. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  2668. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  2669. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  2670. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  2671. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  2672. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  2673. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  2674. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  2675. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  2676. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  2677. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  2678. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  2679. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  2680. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  2681. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  2682. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  2683. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  2684. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  2685. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  2686. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  2687. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  2688. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  2689. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  2690. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  2691. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  2692. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  2693. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  2694. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  2695. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  2696. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  2697. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  2698. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  2699. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  2700. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  2701. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  2702. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  2703. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  2704. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  2705. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  2706. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  2707. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  2708. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  2709. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  2710. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  2711. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  2712. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  2713. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  2714. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  2715. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  2716. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  2717. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  2718. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  2719. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  2720. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  2721. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  2722. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  2723. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  2724. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  2725. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  2726. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  2727. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  2728. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  2729. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  2730. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  2731. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  2732. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  2733. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  2734. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  2735. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  2736. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  2737. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  2738. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  2739. package/node_modules/zod/v3/ZodError.cjs +167 -0
  2740. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  2741. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  2742. package/node_modules/zod/v3/ZodError.js +143 -0
  2743. package/node_modules/zod/v3/errors.cjs +36 -0
  2744. package/node_modules/zod/v3/errors.d.cts +5 -0
  2745. package/node_modules/zod/v3/errors.d.ts +5 -0
  2746. package/node_modules/zod/v3/errors.js +9 -0
  2747. package/node_modules/zod/v3/external.cjs +41 -0
  2748. package/node_modules/zod/v3/external.d.cts +6 -0
  2749. package/node_modules/zod/v3/external.d.ts +6 -0
  2750. package/node_modules/zod/v3/external.js +6 -0
  2751. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  2752. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  2753. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  2754. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  2755. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  2756. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  2757. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  2758. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  2759. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  2760. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  2761. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  2762. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  2763. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  2764. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  2765. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  2766. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  2767. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  2768. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  2769. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  2770. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  2771. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  2772. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2773. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2774. package/node_modules/zod/v3/helpers/util.js +133 -0
  2775. package/node_modules/zod/v3/index.cjs +52 -0
  2776. package/node_modules/zod/v3/index.d.cts +4 -0
  2777. package/node_modules/zod/v3/index.d.ts +4 -0
  2778. package/node_modules/zod/v3/index.js +4 -0
  2779. package/node_modules/zod/v3/locales/en.cjs +112 -0
  2780. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  2781. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  2782. package/node_modules/zod/v3/locales/en.js +109 -0
  2783. package/node_modules/zod/v3/package.json +7 -0
  2784. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  2785. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2786. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2787. package/node_modules/zod/v3/standard-schema.js +1 -0
  2788. package/node_modules/zod/v3/types.cjs +3798 -0
  2789. package/node_modules/zod/v3/types.d.cts +1034 -0
  2790. package/node_modules/zod/v3/types.d.ts +1034 -0
  2791. package/node_modules/zod/v3/types.js +3697 -0
  2792. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  2793. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2794. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2795. package/node_modules/zod/v4/classic/checks.js +1 -0
  2796. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  2797. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2798. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2799. package/node_modules/zod/v4/classic/coerce.js +17 -0
  2800. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  2801. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  2802. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  2803. package/node_modules/zod/v4/classic/compat.js +31 -0
  2804. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  2805. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  2806. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  2807. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  2808. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  2809. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  2810. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  2811. package/node_modules/zod/v4/classic/errors.js +57 -0
  2812. package/node_modules/zod/v4/classic/external.cjs +97 -0
  2813. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  2814. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  2815. package/node_modules/zod/v4/classic/external.js +17 -0
  2816. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  2817. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2818. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2819. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  2820. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  2821. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  2822. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  2823. package/node_modules/zod/v4/classic/in-out.js +36 -0
  2824. package/node_modules/zod/v4/classic/index.cjs +52 -0
  2825. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  2826. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  2827. package/node_modules/zod/v4/classic/index.js +4 -0
  2828. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  2829. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  2830. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  2831. package/node_modules/zod/v4/classic/iso.js +15 -0
  2832. package/node_modules/zod/v4/classic/package.json +7 -0
  2833. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  2834. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  2835. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  2836. package/node_modules/zod/v4/classic/parse.js +16 -0
  2837. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  2838. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  2839. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  2840. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  2841. package/node_modules/zod/v4/core/api.cjs +1269 -0
  2842. package/node_modules/zod/v4/core/api.d.cts +335 -0
  2843. package/node_modules/zod/v4/core/api.d.ts +335 -0
  2844. package/node_modules/zod/v4/core/api.js +1107 -0
  2845. package/node_modules/zod/v4/core/checks.cjs +561 -0
  2846. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  2847. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  2848. package/node_modules/zod/v4/core/checks.js +516 -0
  2849. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  2850. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  2851. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  2852. package/node_modules/zod/v4/core/compile.js +1866 -0
  2853. package/node_modules/zod/v4/core/core.cjs +167 -0
  2854. package/node_modules/zod/v4/core/core.d.cts +82 -0
  2855. package/node_modules/zod/v4/core/core.d.ts +82 -0
  2856. package/node_modules/zod/v4/core/core.js +141 -0
  2857. package/node_modules/zod/v4/core/doc.cjs +61 -0
  2858. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  2859. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  2860. package/node_modules/zod/v4/core/doc.js +38 -0
  2861. package/node_modules/zod/v4/core/errors.cjs +317 -0
  2862. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  2863. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  2864. package/node_modules/zod/v4/core/errors.js +267 -0
  2865. package/node_modules/zod/v4/core/index.cjs +70 -0
  2866. package/node_modules/zod/v4/core/index.d.cts +19 -0
  2867. package/node_modules/zod/v4/core/index.d.ts +19 -0
  2868. package/node_modules/zod/v4/core/index.js +19 -0
  2869. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  2870. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2871. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2872. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  2873. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  2874. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  2875. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  2876. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  2877. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  2878. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  2879. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  2880. package/node_modules/zod/v4/core/json-schema.js +1 -0
  2881. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  2882. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  2883. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  2884. package/node_modules/zod/v4/core/memoizer.js +311 -0
  2885. package/node_modules/zod/v4/core/package.json +7 -0
  2886. package/node_modules/zod/v4/core/parse.cjs +233 -0
  2887. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  2888. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  2889. package/node_modules/zod/v4/core/parse.js +175 -0
  2890. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  2891. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  2892. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  2893. package/node_modules/zod/v4/core/regexes.js +156 -0
  2894. package/node_modules/zod/v4/core/registries.cjs +75 -0
  2895. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  2896. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  2897. package/node_modules/zod/v4/core/registries.js +51 -0
  2898. package/node_modules/zod/v4/core/schemas.cjs +2699 -0
  2899. package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  2900. package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  2901. package/node_modules/zod/v4/core/schemas.js +2636 -0
  2902. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  2903. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  2904. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  2905. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  2906. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  2907. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  2908. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  2909. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  2910. package/node_modules/zod/v4/core/util.cjs +964 -0
  2911. package/node_modules/zod/v4/core/util.d.cts +280 -0
  2912. package/node_modules/zod/v4/core/util.d.ts +280 -0
  2913. package/node_modules/zod/v4/core/util.js +873 -0
  2914. package/node_modules/zod/v4/core/versions.cjs +27 -0
  2915. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  2916. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  2917. package/node_modules/zod/v4/core/versions.js +5 -0
  2918. package/node_modules/zod/v4/core/visit.cjs +214 -0
  2919. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  2920. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  2921. package/node_modules/zod/v4/core/visit.js +169 -0
  2922. package/node_modules/zod/v4/index.cjs +51 -0
  2923. package/node_modules/zod/v4/index.d.cts +3 -0
  2924. package/node_modules/zod/v4/index.d.ts +3 -0
  2925. package/node_modules/zod/v4/index.js +4 -0
  2926. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  2927. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  2928. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  2929. package/node_modules/zod/v4/locales/ar.js +111 -0
  2930. package/node_modules/zod/v4/locales/az.cjs +137 -0
  2931. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  2932. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  2933. package/node_modules/zod/v4/locales/az.js +110 -0
  2934. package/node_modules/zod/v4/locales/be.cjs +195 -0
  2935. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  2936. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  2937. package/node_modules/zod/v4/locales/be.js +168 -0
  2938. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  2939. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  2940. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  2941. package/node_modules/zod/v4/locales/bg.js +125 -0
  2942. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  2943. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  2944. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  2945. package/node_modules/zod/v4/locales/bn.js +113 -0
  2946. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  2947. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  2948. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  2949. package/node_modules/zod/v4/locales/ca.js +112 -0
  2950. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  2951. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  2952. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  2953. package/node_modules/zod/v4/locales/ckb.js +133 -0
  2954. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  2955. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  2956. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  2957. package/node_modules/zod/v4/locales/cs.js +116 -0
  2958. package/node_modules/zod/v4/locales/da.cjs +147 -0
  2959. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  2960. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  2961. package/node_modules/zod/v4/locales/da.js +120 -0
  2962. package/node_modules/zod/v4/locales/de.cjs +140 -0
  2963. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  2964. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  2965. package/node_modules/zod/v4/locales/de.js +113 -0
  2966. package/node_modules/zod/v4/locales/el.cjs +139 -0
  2967. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  2968. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  2969. package/node_modules/zod/v4/locales/el.js +112 -0
  2970. package/node_modules/zod/v4/locales/en.cjs +152 -0
  2971. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  2972. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  2973. package/node_modules/zod/v4/locales/en.js +125 -0
  2974. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  2975. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  2976. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  2977. package/node_modules/zod/v4/locales/eo.js +114 -0
  2978. package/node_modules/zod/v4/locales/es.cjs +163 -0
  2979. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  2980. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  2981. package/node_modules/zod/v4/locales/es.js +136 -0
  2982. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  2983. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  2984. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  2985. package/node_modules/zod/v4/locales/fa.js +119 -0
  2986. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  2987. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  2988. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  2989. package/node_modules/zod/v4/locales/fi.js +117 -0
  2990. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  2991. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  2992. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  2993. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  2994. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  2995. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  2996. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  2997. package/node_modules/zod/v4/locales/fr.js +129 -0
  2998. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  2999. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  3000. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  3001. package/node_modules/zod/v4/locales/gu.js +113 -0
  3002. package/node_modules/zod/v4/locales/he.cjs +248 -0
  3003. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  3004. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  3005. package/node_modules/zod/v4/locales/he.js +221 -0
  3006. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  3007. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  3008. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  3009. package/node_modules/zod/v4/locales/hi.js +111 -0
  3010. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  3011. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  3012. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  3013. package/node_modules/zod/v4/locales/hr.js +126 -0
  3014. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  3015. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  3016. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  3017. package/node_modules/zod/v4/locales/hu.js +113 -0
  3018. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  3019. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  3020. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  3021. package/node_modules/zod/v4/locales/hy.js +158 -0
  3022. package/node_modules/zod/v4/locales/id.cjs +138 -0
  3023. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  3024. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  3025. package/node_modules/zod/v4/locales/id.js +111 -0
  3026. package/node_modules/zod/v4/locales/index.cjs +152 -0
  3027. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  3028. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  3029. package/node_modules/zod/v4/locales/index.js +63 -0
  3030. package/node_modules/zod/v4/locales/is.cjs +141 -0
  3031. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  3032. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  3033. package/node_modules/zod/v4/locales/is.js +114 -0
  3034. package/node_modules/zod/v4/locales/it.cjs +140 -0
  3035. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  3036. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  3037. package/node_modules/zod/v4/locales/it.js +113 -0
  3038. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  3039. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  3040. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  3041. package/node_modules/zod/v4/locales/ja.js +112 -0
  3042. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  3043. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  3044. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  3045. package/node_modules/zod/v4/locales/ka.js +117 -0
  3046. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  3047. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  3048. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  3049. package/node_modules/zod/v4/locales/kh.js +5 -0
  3050. package/node_modules/zod/v4/locales/km.cjs +142 -0
  3051. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  3052. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  3053. package/node_modules/zod/v4/locales/km.js +115 -0
  3054. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  3055. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  3056. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  3057. package/node_modules/zod/v4/locales/kn.js +116 -0
  3058. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  3059. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  3060. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  3061. package/node_modules/zod/v4/locales/ko.js +116 -0
  3062. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  3063. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  3064. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  3065. package/node_modules/zod/v4/locales/lt.js +207 -0
  3066. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  3067. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  3068. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  3069. package/node_modules/zod/v4/locales/mk.js +114 -0
  3070. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  3071. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  3072. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  3073. package/node_modules/zod/v4/locales/ms.js +112 -0
  3074. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  3075. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  3076. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  3077. package/node_modules/zod/v4/locales/ne.js +111 -0
  3078. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  3079. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  3080. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  3081. package/node_modules/zod/v4/locales/nl.js +115 -0
  3082. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  3083. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  3084. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  3085. package/node_modules/zod/v4/locales/nn.js +113 -0
  3086. package/node_modules/zod/v4/locales/no.cjs +140 -0
  3087. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  3088. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  3089. package/node_modules/zod/v4/locales/no.js +113 -0
  3090. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  3091. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  3092. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3093. package/node_modules/zod/v4/locales/ota.js +114 -0
  3094. package/node_modules/zod/v4/locales/package.json +7 -0
  3095. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  3096. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  3097. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3098. package/node_modules/zod/v4/locales/pl.js +114 -0
  3099. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  3100. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  3101. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3102. package/node_modules/zod/v4/locales/ps.js +119 -0
  3103. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  3104. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  3105. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  3106. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  3107. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  3108. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  3109. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3110. package/node_modules/zod/v4/locales/pt.js +142 -0
  3111. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  3112. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  3113. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  3114. package/node_modules/zod/v4/locales/ro.js +122 -0
  3115. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  3116. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  3117. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3118. package/node_modules/zod/v4/locales/ru.js +168 -0
  3119. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  3120. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  3121. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  3122. package/node_modules/zod/v4/locales/sk.js +116 -0
  3123. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  3124. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  3125. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3126. package/node_modules/zod/v4/locales/sl.js +114 -0
  3127. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  3128. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  3129. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3130. package/node_modules/zod/v4/locales/sv.js +115 -0
  3131. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  3132. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  3133. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3134. package/node_modules/zod/v4/locales/ta.js +115 -0
  3135. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  3136. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  3137. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  3138. package/node_modules/zod/v4/locales/tg.js +117 -0
  3139. package/node_modules/zod/v4/locales/th.cjs +142 -0
  3140. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  3141. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  3142. package/node_modules/zod/v4/locales/th.js +115 -0
  3143. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  3144. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  3145. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  3146. package/node_modules/zod/v4/locales/tk.js +107 -0
  3147. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  3148. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3149. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  3150. package/node_modules/zod/v4/locales/tr.js +110 -0
  3151. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  3152. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  3153. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  3154. package/node_modules/zod/v4/locales/ua.js +5 -0
  3155. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  3156. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  3157. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  3158. package/node_modules/zod/v4/locales/uk.js +113 -0
  3159. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  3160. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  3161. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3162. package/node_modules/zod/v4/locales/ur.js +115 -0
  3163. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  3164. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  3165. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  3166. package/node_modules/zod/v4/locales/uz.js +113 -0
  3167. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  3168. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  3169. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3170. package/node_modules/zod/v4/locales/vi.js +113 -0
  3171. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  3172. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  3173. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  3174. package/node_modules/zod/v4/locales/yo.js +112 -0
  3175. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  3176. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  3177. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3178. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  3179. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  3180. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  3181. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3182. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  3183. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  3184. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3185. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3186. package/node_modules/zod/v4/mini/checks.js +1 -0
  3187. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  3188. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3189. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3190. package/node_modules/zod/v4/mini/coerce.js +22 -0
  3191. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  3192. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  3193. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  3194. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  3195. package/node_modules/zod/v4/mini/external.cjs +95 -0
  3196. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  3197. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  3198. package/node_modules/zod/v4/mini/external.js +16 -0
  3199. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  3200. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  3201. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  3202. package/node_modules/zod/v4/mini/in-out.js +36 -0
  3203. package/node_modules/zod/v4/mini/index.cjs +51 -0
  3204. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  3205. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  3206. package/node_modules/zod/v4/mini/index.js +3 -0
  3207. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  3208. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3209. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3210. package/node_modules/zod/v4/mini/iso.js +34 -0
  3211. package/node_modules/zod/v4/mini/package.json +7 -0
  3212. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  3213. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3214. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3215. package/node_modules/zod/v4/mini/parse.js +1 -0
  3216. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  3217. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  3218. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  3219. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  3220. package/node_modules/zod/v4/package.json +7 -0
  3221. package/node_modules/zod/v4-mini/index.cjs +51 -0
  3222. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  3223. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  3224. package/node_modules/zod/v4-mini/index.js +3 -0
  3225. package/node_modules/zod/v4-mini/package.json +7 -0
  3226. package/package.json +2 -4
@@ -0,0 +1,2636 @@
1
+ import * as checks from "./checks.js";
2
+ import * as core from "./core.js";
3
+ import { Doc } from "./doc.js";
4
+ import { parse, parseAsync } from "./parse.js";
5
+ import * as regexes from "./regexes.js";
6
+ import * as util from "./util.js";
7
+ import { version } from "./versions.js";
8
+ export const $ZodType = /*@__PURE__*/ core.$constructor("$ZodType", (inst, def) => {
9
+ var _a;
10
+ inst ?? (inst = {});
11
+ inst._zod.def = def; // set _def property
12
+ inst._zod.bag = inst._zod.bag || {}; // initialize _bag object
13
+ inst._zod.version = version;
14
+ const defChecks = inst._zod.def.checks;
15
+ // if inst is itself a checks.$ZodCheck, run it as a check
16
+ const checks = inst._zod.traits.has("$ZodCheck")
17
+ ? [inst, ...(defChecks ?? [])]
18
+ : defChecks?.length
19
+ ? [...defChecks]
20
+ : [];
21
+ for (const ch of checks) {
22
+ for (const fn of ch._zod.onattach) {
23
+ fn(inst);
24
+ }
25
+ }
26
+ if (checks.length === 0) {
27
+ // deferred initializer inst._zod.parse is not yet defined
28
+ (_a = inst._zod).deferred ?? (_a.deferred = []);
29
+ inst._zod.deferred?.push(() => {
30
+ inst._zod.run = inst._zod.parse;
31
+ });
32
+ }
33
+ else {
34
+ const runChecks = (payload, checks, ctx) => {
35
+ if (payload.memo)
36
+ return payload;
37
+ let isAborted = util.aborted(payload);
38
+ let asyncResult;
39
+ for (const ch of checks) {
40
+ if (ch._zod.def.when) {
41
+ if (util.explicitlyAborted(payload))
42
+ continue;
43
+ const shouldRun = ch._zod.def.when(payload);
44
+ if (!shouldRun)
45
+ continue;
46
+ }
47
+ else if (isAborted) {
48
+ continue;
49
+ }
50
+ const currLen = payload.issues.length;
51
+ const _ = ch._zod.check(payload);
52
+ if (_ instanceof Promise && ctx?.async === false) {
53
+ throw new core.$ZodAsyncError();
54
+ }
55
+ if (asyncResult || _ instanceof Promise) {
56
+ asyncResult = (asyncResult ?? Promise.resolve()).then(async () => {
57
+ await _;
58
+ const nextLen = payload.issues.length;
59
+ if (nextLen === currLen)
60
+ return;
61
+ util.attachSchema(payload.issues, currLen, inst);
62
+ if (!isAborted)
63
+ isAborted = util.aborted(payload, currLen);
64
+ });
65
+ }
66
+ else {
67
+ const nextLen = payload.issues.length;
68
+ if (nextLen === currLen)
69
+ continue;
70
+ util.attachSchema(payload.issues, currLen, inst);
71
+ if (!isAborted)
72
+ isAborted = util.aborted(payload, currLen);
73
+ }
74
+ }
75
+ if (asyncResult) {
76
+ return asyncResult.then(() => {
77
+ return payload;
78
+ });
79
+ }
80
+ return payload;
81
+ };
82
+ const handleCanaryResult = (canary, payload, ctx) => {
83
+ // abort if the canary is aborted
84
+ if (util.aborted(canary)) {
85
+ canary.aborted = true;
86
+ return canary;
87
+ }
88
+ // run checks first, then
89
+ const checkResult = runChecks(payload, checks, ctx);
90
+ if (checkResult instanceof Promise) {
91
+ if (ctx.async === false)
92
+ throw new core.$ZodAsyncError();
93
+ return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
94
+ }
95
+ return inst._zod.parse(checkResult, ctx);
96
+ };
97
+ inst._zod.run = (payload, ctx) => {
98
+ if (ctx.skipChecks) {
99
+ return inst._zod.parse(payload, ctx);
100
+ }
101
+ if (ctx.direction === "backward") {
102
+ // run canary initial pass (no checks)
103
+ const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
104
+ if (canary instanceof Promise) {
105
+ return canary.then((canary) => {
106
+ return handleCanaryResult(canary, payload, ctx);
107
+ });
108
+ }
109
+ return handleCanaryResult(canary, payload, ctx);
110
+ }
111
+ // forward
112
+ const result = inst._zod.parse(payload, ctx);
113
+ if (result instanceof Promise) {
114
+ if (ctx.async === false)
115
+ throw new core.$ZodAsyncError();
116
+ return result.then((result) => runChecks(result, checks, ctx));
117
+ }
118
+ return runChecks(result, checks, ctx);
119
+ };
120
+ }
121
+ }, {
122
+ // Wrappers extend this by installing a richer factory over it; reading it eagerly would defeat the laziness.
123
+ get "~standard"() {
124
+ return util.hide(this, "~standard", standardProps(this));
125
+ },
126
+ set "~standard"(value) {
127
+ util.own(this, "~standard", value);
128
+ },
129
+ });
130
+ /** The Standard Schema surface for `inst`. Shared so wrappers can extend it without forcing it. */
131
+ // a Standard Schema result only reports issues, so a failure finalizes them straight off the raw payload: no ZodError, and no lazy result to read through
132
+ const toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())) } : { value: r.value };
133
+ async function validateAsync(inst, value) {
134
+ const ctx = { async: true };
135
+ return toStandardResult((await inst._zod.run({ value, issues: [] }, ctx)), ctx);
136
+ }
137
+ export function standardProps(inst) {
138
+ return {
139
+ validate: (value) => {
140
+ const ctx = { async: false };
141
+ try {
142
+ const r = inst._zod.run({ value, issues: [] }, ctx);
143
+ if (!(r instanceof Promise))
144
+ return toStandardResult(r, ctx);
145
+ }
146
+ catch (_) { }
147
+ // async function so a synchronously throwing check rejects instead of escaping validate
148
+ return validateAsync(inst, value);
149
+ },
150
+ vendor: "zod",
151
+ version: 1,
152
+ };
153
+ }
154
+ export { clone } from "./util.js";
155
+ export const $ZodString = /*@__PURE__*/ core.$constructor("$ZodString", (inst, def) => {
156
+ $ZodType.init(inst, def);
157
+ // a format's own pattern, else unbounded; a template literal derives the check-aware form itself
158
+ inst._zod.pattern = def.pattern ?? regexes.anyString;
159
+ inst._zod.parse = (payload, _) => {
160
+ if (def.coerce)
161
+ try {
162
+ payload.value = String(payload.value);
163
+ }
164
+ catch (_) { }
165
+ if (typeof payload.value === "string")
166
+ return payload;
167
+ payload.issues.push({
168
+ expected: "string",
169
+ code: "invalid_type",
170
+ input: payload.value,
171
+ inst,
172
+ });
173
+ return payload;
174
+ };
175
+ });
176
+ export const $ZodStringFormat = /*@__PURE__*/ core.$constructor("$ZodStringFormat", (inst, def) => {
177
+ // check initialization must come first
178
+ checks.$ZodCheckStringFormat.init(inst, def);
179
+ $ZodString.init(inst, def);
180
+ });
181
+ export const $ZodGUID = /*@__PURE__*/ core.$constructor("$ZodGUID", (inst, def) => {
182
+ def.pattern ?? (def.pattern = regexes.guid);
183
+ $ZodStringFormat.init(inst, def);
184
+ });
185
+ export const $ZodUUID = /*@__PURE__*/ core.$constructor("$ZodUUID", (inst, def) => {
186
+ if (def.version) {
187
+ const versionMap = {
188
+ v1: 1,
189
+ v2: 2,
190
+ v3: 3,
191
+ v4: 4,
192
+ v5: 5,
193
+ v6: 6,
194
+ v7: 7,
195
+ v8: 8,
196
+ };
197
+ const v = versionMap[def.version];
198
+ if (v === undefined)
199
+ throw new Error(`Invalid UUID version: "${def.version}"`);
200
+ def.pattern ?? (def.pattern = regexes.uuid(v));
201
+ }
202
+ else
203
+ def.pattern ?? (def.pattern = regexes.uuid());
204
+ $ZodStringFormat.init(inst, def);
205
+ });
206
+ export const $ZodEmail = /*@__PURE__*/ core.$constructor("$ZodEmail", (inst, def) => {
207
+ def.pattern ?? (def.pattern = regexes.email);
208
+ $ZodStringFormat.init(inst, def);
209
+ });
210
+ /** The `://` guard rejected the input before the URL constructor saw it. */
211
+ export const URL_BAD_FORMAT = 1;
212
+ /** The URL parser rejected the input. */
213
+ export const URL_UNPARSEABLE = 2;
214
+ export function canParseURL(input) {
215
+ try {
216
+ if (typeof URL !== "undefined" && typeof URL.canParse === "function")
217
+ return URL.canParse(input);
218
+ new URL(input);
219
+ return true;
220
+ }
221
+ catch {
222
+ return false;
223
+ }
224
+ }
225
+ export function validateURL(trimmed, def) {
226
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) {
227
+ return canParseURL(trimmed) || URL_UNPARSEABLE;
228
+ }
229
+ return parseURLObject(trimmed, def);
230
+ }
231
+ /** Parses a URL while preserving the non-normalizing HTTP guard. */
232
+ export function parseURLObject(trimmed, def) {
233
+ // When normalize is off, require :// for http/https URLs. This prevents strings like "http:example.com" or "https:/path" from being silently accepted
234
+ if (!def.normalize && def.protocol?.source === regexes.httpProtocol.source && !/^https?:\/\//i.test(trimmed)) {
235
+ return URL_BAD_FORMAT;
236
+ }
237
+ try {
238
+ if (typeof URL !== "undefined") {
239
+ const URLStatic = URL;
240
+ if (typeof URLStatic.parse === "function")
241
+ return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
242
+ }
243
+ // @ts-ignore
244
+ return new URL(trimmed);
245
+ }
246
+ catch {
247
+ return URL_UNPARSEABLE;
248
+ }
249
+ }
250
+ const asciiTabOrNewline = /[\t\n\r]/g;
251
+ /** The URL parser deletes every ASCII tab, LF and CR from its input before it parses, so `new URL("https://exa\nmple.com")` reports on `example.com`. Applying the same deletion to the returned value closes the half of that divergence which can move the host; the parser's other rewrite, stripping C0 controls at the edges, cannot. */
252
+ export function stripTabAndNewline(value) {
253
+ return value.replace(asciiTabOrNewline, "");
254
+ }
255
+ export function urlHostnameOk(url, hostname) {
256
+ hostname.lastIndex = 0;
257
+ return hostname.test(url.hostname);
258
+ }
259
+ export function urlProtocolOk(url, protocol) {
260
+ protocol.lastIndex = 0;
261
+ return protocol.test(url.protocol.endsWith(":") ? url.protocol.slice(0, -1) : url.protocol);
262
+ }
263
+ export const $ZodURL = /*@__PURE__*/ core.$constructor("$ZodURL", (inst, def) => {
264
+ $ZodStringFormat.init(inst, def);
265
+ inst._zod.check = (payload) => {
266
+ try {
267
+ // Trim whitespace from input
268
+ const trimmed = payload.value.trim();
269
+ const url = validateURL(trimmed, def);
270
+ if (url === URL_BAD_FORMAT) {
271
+ payload.issues.push({
272
+ code: "invalid_format",
273
+ format: "url",
274
+ note: "Invalid URL format",
275
+ input: payload.value,
276
+ inst,
277
+ continue: !def.abort,
278
+ });
279
+ return;
280
+ }
281
+ if (url === URL_UNPARSEABLE) {
282
+ payload.issues.push({
283
+ code: "invalid_format",
284
+ format: "url",
285
+ input: payload.value,
286
+ inst,
287
+ continue: !def.abort,
288
+ });
289
+ return;
290
+ }
291
+ if (url === true) {
292
+ payload.value = stripTabAndNewline(trimmed);
293
+ return;
294
+ }
295
+ if (def.hostname && !urlHostnameOk(url, def.hostname)) {
296
+ payload.issues.push({
297
+ code: "invalid_format",
298
+ format: "url",
299
+ note: "Invalid hostname",
300
+ pattern: def.hostname.source,
301
+ input: payload.value,
302
+ inst,
303
+ continue: !def.abort,
304
+ });
305
+ }
306
+ if (def.protocol && !urlProtocolOk(url, def.protocol)) {
307
+ payload.issues.push({
308
+ code: "invalid_format",
309
+ format: "url",
310
+ note: "Invalid protocol",
311
+ pattern: def.protocol.source,
312
+ input: payload.value,
313
+ inst,
314
+ continue: !def.abort,
315
+ });
316
+ }
317
+ // Set the output value based on normalize flag
318
+ payload.value = def.normalize ? url.href : stripTabAndNewline(trimmed);
319
+ return;
320
+ }
321
+ catch (_) {
322
+ payload.issues.push({
323
+ code: "invalid_format",
324
+ format: "url",
325
+ input: payload.value,
326
+ inst,
327
+ continue: !def.abort,
328
+ });
329
+ }
330
+ };
331
+ });
332
+ export const $ZodEmoji = /*@__PURE__*/ core.$constructor("$ZodEmoji", (inst, def) => {
333
+ def.pattern ?? (def.pattern = regexes.emoji());
334
+ $ZodStringFormat.init(inst, def);
335
+ });
336
+ export const $ZodNanoID = /*@__PURE__*/ core.$constructor("$ZodNanoID", (inst, def) => {
337
+ if (def.length !== undefined && (!Number.isInteger(def.length) || def.length < 1))
338
+ throw new Error(`Invalid nanoid length: ${def.length}`);
339
+ def.pattern ?? (def.pattern = def.length === undefined ? regexes.nanoid : regexes.nanoidOfLength(def.length));
340
+ $ZodStringFormat.init(inst, def);
341
+ });
342
+ /**
343
+ * @deprecated CUID v1 is deprecated by its authors due to information leakage
344
+ * (timestamps embedded in the id). Use {@link $ZodCUID2} instead.
345
+ * See https://github.com/paralleldrive/cuid.
346
+ */
347
+ export const $ZodCUID = /*@__PURE__*/ core.$constructor("$ZodCUID", (inst, def) => {
348
+ def.pattern ?? (def.pattern = regexes.cuid);
349
+ $ZodStringFormat.init(inst, def);
350
+ });
351
+ export const $ZodCUID2 = /*@__PURE__*/ core.$constructor("$ZodCUID2", (inst, def) => {
352
+ def.pattern ?? (def.pattern = regexes.cuid2);
353
+ $ZodStringFormat.init(inst, def);
354
+ });
355
+ export const $ZodULID = /*@__PURE__*/ core.$constructor("$ZodULID", (inst, def) => {
356
+ def.pattern ?? (def.pattern = regexes.ulid);
357
+ $ZodStringFormat.init(inst, def);
358
+ });
359
+ export const $ZodXID = /*@__PURE__*/ core.$constructor("$ZodXID", (inst, def) => {
360
+ def.pattern ?? (def.pattern = regexes.xid);
361
+ $ZodStringFormat.init(inst, def);
362
+ });
363
+ export const $ZodKSUID = /*@__PURE__*/ core.$constructor("$ZodKSUID", (inst, def) => {
364
+ def.pattern ?? (def.pattern = regexes.ksuid);
365
+ $ZodStringFormat.init(inst, def);
366
+ });
367
+ export const $ZodISODateTime = /*@__PURE__*/ core.$constructor("$ZodISODateTime", (inst, def) => {
368
+ def.pattern ?? (def.pattern = regexes.datetime(def));
369
+ $ZodStringFormat.init(inst, def);
370
+ });
371
+ export const $ZodISODate = /*@__PURE__*/ core.$constructor("$ZodISODate", (inst, def) => {
372
+ def.pattern ?? (def.pattern = regexes.date);
373
+ $ZodStringFormat.init(inst, def);
374
+ });
375
+ export const $ZodISOTime = /*@__PURE__*/ core.$constructor("$ZodISOTime", (inst, def) => {
376
+ def.pattern ?? (def.pattern = regexes.time(def));
377
+ $ZodStringFormat.init(inst, def);
378
+ });
379
+ export const $ZodISODuration = /*@__PURE__*/ core.$constructor("$ZodISODuration", (inst, def) => {
380
+ def.pattern ?? (def.pattern = regexes.duration);
381
+ $ZodStringFormat.init(inst, def);
382
+ });
383
+ export const $ZodIPv4 = /*@__PURE__*/ core.$constructor("$ZodIPv4", (inst, def) => {
384
+ def.pattern ?? (def.pattern = regexes.ipv4);
385
+ $ZodStringFormat.init(inst, def);
386
+ });
387
+ /** An IPv6 address is written with hex digits, colons and dots, and nothing else. The guard is what makes the check below an IPv6 check: `new URL("http://[...]")` parses an authority, not an address, so `@` and `\` re-delimit it and `"::@1\\"` validates against the host `0.0.0.1`. The URL parser also deletes ASCII tab, LF and CR rather than failing, which is how `"::1\n"` validated as `::1`. */
388
+ const ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
389
+ export function isValidIPv6(value) {
390
+ if (!ipv6Alphabet.test(value))
391
+ return false;
392
+ return canParseURL(`http://[${value}]`);
393
+ }
394
+ export const $ZodIPv6 = /*@__PURE__*/ core.$constructor("$ZodIPv6", (inst, def) => {
395
+ def.pattern ?? (def.pattern = regexes.ipv6);
396
+ $ZodStringFormat.init(inst, def);
397
+ inst._zod.check = (payload) => {
398
+ if (!isValidIPv6(payload.value)) {
399
+ payload.issues.push({
400
+ code: "invalid_format",
401
+ format: "ipv6",
402
+ input: payload.value,
403
+ inst,
404
+ continue: !def.abort,
405
+ });
406
+ }
407
+ };
408
+ });
409
+ export const $ZodMAC = /*@__PURE__*/ core.$constructor("$ZodMAC", (inst, def) => {
410
+ def.pattern ?? (def.pattern = regexes.mac(def.delimiter));
411
+ $ZodStringFormat.init(inst, def);
412
+ });
413
+ export const $ZodCIDRv4 = /*@__PURE__*/ core.$constructor("$ZodCIDRv4", (inst, def) => {
414
+ def.pattern ?? (def.pattern = regexes.cidrv4);
415
+ $ZodStringFormat.init(inst, def);
416
+ });
417
+ export function isValidCIDRv6(value) {
418
+ const parts = value.split("/");
419
+ if (parts.length !== 2)
420
+ return false;
421
+ const [address, prefix] = parts;
422
+ if (!prefix)
423
+ return false;
424
+ const prefixNum = Number(prefix);
425
+ if (`${prefixNum}` !== prefix)
426
+ return false;
427
+ if (prefixNum < 0 || prefixNum > 128)
428
+ return false;
429
+ return isValidIPv6(address);
430
+ }
431
+ export const $ZodCIDRv6 = /*@__PURE__*/ core.$constructor("$ZodCIDRv6", (inst, def) => {
432
+ def.pattern ?? (def.pattern = regexes.cidrv6); // not used for validation
433
+ $ZodStringFormat.init(inst, def);
434
+ inst._zod.check = (payload) => {
435
+ if (!isValidCIDRv6(payload.value)) {
436
+ payload.issues.push({
437
+ code: "invalid_format",
438
+ format: "cidrv6",
439
+ input: payload.value,
440
+ inst,
441
+ continue: !def.abort,
442
+ });
443
+ }
444
+ };
445
+ });
446
+ ////////////////////////////// ZodBase64 //////////////////////////////
447
+ export function isValidBase64(data) {
448
+ if (data === "")
449
+ return true;
450
+ // atob ignores whitespace, so reject it up front.
451
+ if (/\s/.test(data))
452
+ return false;
453
+ if (data.length % 4 !== 0)
454
+ return false;
455
+ try {
456
+ // @ts-ignore
457
+ atob(data);
458
+ return true;
459
+ }
460
+ catch {
461
+ return false;
462
+ }
463
+ }
464
+ // lax on purpose: the quantified regexes.base64 overflows the regex stack on multi-MB input and its leading ^$| alternation leaks through template-literal composition; isValidBase64 enforces length and padding
465
+ export const base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/;
466
+ export const $ZodBase64 = /*@__PURE__*/ core.$constructor("$ZodBase64", (inst, def) => {
467
+ def.pattern ?? (def.pattern = base64Charset);
468
+ $ZodStringFormat.init(inst, def);
469
+ inst._zod.check = (payload) => {
470
+ if (isValidBase64(payload.value))
471
+ return;
472
+ payload.issues.push({
473
+ code: "invalid_format",
474
+ format: "base64",
475
+ input: payload.value,
476
+ inst,
477
+ continue: !def.abort,
478
+ });
479
+ };
480
+ });
481
+ ////////////////////////////// ZodBase64URL //////////////////////////////
482
+ // lax on purpose: the quantified regexes.base64url overflows the regex stack on multi-MB input; isValidBase64 enforces length on the padded string
483
+ export const base64urlCharset = /^[A-Za-z0-9_-]*$/;
484
+ export function isValidBase64URL(data) {
485
+ if (!base64urlCharset.test(data))
486
+ return false;
487
+ const base64 = data.replace(/[-_]/g, (c) => (c === "-" ? "+" : "/"));
488
+ const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
489
+ return isValidBase64(padded);
490
+ }
491
+ export const $ZodBase64URL = /*@__PURE__*/ core.$constructor("$ZodBase64URL", (inst, def) => {
492
+ def.pattern ?? (def.pattern = base64urlCharset);
493
+ $ZodStringFormat.init(inst, def);
494
+ inst._zod.check = (payload) => {
495
+ if (isValidBase64URL(payload.value))
496
+ return;
497
+ payload.issues.push({
498
+ code: "invalid_format",
499
+ format: "base64url",
500
+ input: payload.value,
501
+ inst,
502
+ continue: !def.abort,
503
+ });
504
+ };
505
+ });
506
+ export const $ZodE164 = /*@__PURE__*/ core.$constructor("$ZodE164", (inst, def) => {
507
+ def.pattern ?? (def.pattern = regexes.e164);
508
+ $ZodStringFormat.init(inst, def);
509
+ });
510
+ ////////////////////////////// ZodCreditCard //////////////////////////////
511
+ const CC_SANITIZE = /[- ]/g;
512
+ /** Luhn checksum on a digit-only string. Adapted from valibot (MIT). */
513
+ function isLuhnAlgo(digits) {
514
+ let length = digits.length;
515
+ let bit = 1;
516
+ let sum = 0;
517
+ while (length) {
518
+ const value = digits.charCodeAt(--length) - 48;
519
+ bit ^= 1;
520
+ sum += bit ? [0, 2, 4, 6, 8, 1, 3, 5, 7, 9][value] : value;
521
+ }
522
+ return sum % 10 === 0;
523
+ }
524
+ export function isValidCreditCard(input) {
525
+ if (!regexes.creditCard.test(input))
526
+ return false;
527
+ return isLuhnAlgo(input.replace(CC_SANITIZE, ""));
528
+ }
529
+ export const $ZodCreditCard = /*@__PURE__*/ core.$constructor("$ZodCreditCard", (inst, def) => {
530
+ // Shape only — the Luhn check below is not expressible as a pattern, so consumers of `pattern` (JSON Schema, template literals) get the length and separator rules alone.
531
+ def.pattern ?? (def.pattern = regexes.creditCard);
532
+ $ZodStringFormat.init(inst, def);
533
+ inst._zod.check = (payload) => {
534
+ if (isValidCreditCard(payload.value))
535
+ return;
536
+ payload.issues.push({
537
+ code: "invalid_format",
538
+ format: "credit_card",
539
+ input: payload.value,
540
+ inst,
541
+ continue: !def.abort,
542
+ });
543
+ };
544
+ });
545
+ ////////////////////////////// ZodIBAN //////////////////////////////
546
+ // iso 7064 mod 97-10 checksum without BigInt
547
+ function isIso7064Mod97(iban) {
548
+ let remainder = 0;
549
+ const len = iban.length;
550
+ for (let i = 4; i < len; i++) {
551
+ const code = iban.charCodeAt(i);
552
+ remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;
553
+ }
554
+ for (let i = 0; i < 4; i++) {
555
+ const code = iban.charCodeAt(i);
556
+ remainder = (code >= 65 ? remainder * 100 + (code - 55) : remainder * 10 + (code - 48)) % 97;
557
+ }
558
+ return remainder === 1;
559
+ }
560
+ export function isValidIBAN(input) {
561
+ if (!regexes.iban.test(input))
562
+ return false;
563
+ return isIso7064Mod97(input);
564
+ }
565
+ export const $ZodIBAN = /*@__PURE__*/ core.$constructor("$ZodIBAN", (inst, def) => {
566
+ // shape only — checksum is not expressible as a pattern
567
+ def.pattern ?? (def.pattern = regexes.iban);
568
+ $ZodStringFormat.init(inst, def);
569
+ inst._zod.check = (payload) => {
570
+ if (isValidIBAN(payload.value))
571
+ return;
572
+ payload.issues.push({
573
+ code: "invalid_format",
574
+ format: "iban",
575
+ input: payload.value,
576
+ inst,
577
+ continue: !def.abort,
578
+ });
579
+ };
580
+ });
581
+ ////////////////////////////// ZodJWT //////////////////////////////
582
+ export function isValidJWT(token, algorithm = null) {
583
+ try {
584
+ const tokensParts = token.split(".");
585
+ if (tokensParts.length !== 3)
586
+ return false;
587
+ const [header] = tokensParts;
588
+ if (!header)
589
+ return false;
590
+ // @ts-ignore
591
+ const parsedHeader = JSON.parse(atob(header));
592
+ if ("typ" in parsedHeader && parsedHeader?.typ !== "JWT")
593
+ return false;
594
+ if (!parsedHeader.alg)
595
+ return false;
596
+ if (algorithm && (!("alg" in parsedHeader) || parsedHeader.alg !== algorithm))
597
+ return false;
598
+ return true;
599
+ }
600
+ catch {
601
+ return false;
602
+ }
603
+ }
604
+ export const $ZodJWT = /*@__PURE__*/ core.$constructor("$ZodJWT", (inst, def) => {
605
+ $ZodStringFormat.init(inst, def);
606
+ inst._zod.check = (payload) => {
607
+ if (isValidJWT(payload.value, def.alg))
608
+ return;
609
+ payload.issues.push({
610
+ code: "invalid_format",
611
+ format: "jwt",
612
+ input: payload.value,
613
+ inst,
614
+ continue: !def.abort,
615
+ });
616
+ };
617
+ });
618
+ export const $ZodCustomStringFormat = /*@__PURE__*/ core.$constructor("$ZodCustomStringFormat", (inst, def) => {
619
+ $ZodStringFormat.init(inst, def);
620
+ inst._zod.check = (payload) => {
621
+ if (def.fn(payload.value))
622
+ return;
623
+ payload.issues.push({
624
+ code: "invalid_format",
625
+ format: def.format,
626
+ input: payload.value,
627
+ inst,
628
+ continue: !def.abort,
629
+ });
630
+ };
631
+ });
632
+ export const $ZodNumber = /*@__PURE__*/ core.$constructor("$ZodNumber", (inst, def) => {
633
+ $ZodType.init(inst, def);
634
+ inst._zod.pattern = regexes.number;
635
+ inst._zod.parse = (payload, _ctx) => {
636
+ if (def.coerce)
637
+ try {
638
+ payload.value = Number(payload.value);
639
+ }
640
+ catch (_) { }
641
+ const input = payload.value;
642
+ if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
643
+ return payload;
644
+ }
645
+ const received = typeof input === "number"
646
+ ? Number.isNaN(input)
647
+ ? "NaN"
648
+ : !Number.isFinite(input)
649
+ ? String(input)
650
+ : undefined
651
+ : undefined;
652
+ payload.issues.push({
653
+ expected: "number",
654
+ code: "invalid_type",
655
+ input,
656
+ inst,
657
+ ...(received ? { received } : {}),
658
+ });
659
+ return payload;
660
+ };
661
+ });
662
+ export const $ZodNumberFormat = /*@__PURE__*/ core.$constructor("$ZodNumberFormat", (inst, def) => {
663
+ checks.$ZodCheckNumberFormat.init(inst, def);
664
+ $ZodNumber.init(inst, def); // no format checks
665
+ });
666
+ export const $ZodBoolean = /*@__PURE__*/ core.$constructor("$ZodBoolean", (inst, def) => {
667
+ $ZodType.init(inst, def);
668
+ inst._zod.pattern = regexes.boolean;
669
+ inst._zod.parse = (payload, _ctx) => {
670
+ if (def.coerce)
671
+ try {
672
+ payload.value = Boolean(payload.value);
673
+ }
674
+ catch (_) { }
675
+ const input = payload.value;
676
+ if (typeof input === "boolean")
677
+ return payload;
678
+ payload.issues.push({
679
+ expected: "boolean",
680
+ code: "invalid_type",
681
+ input,
682
+ inst,
683
+ });
684
+ return payload;
685
+ };
686
+ });
687
+ export const $ZodBigInt = /*@__PURE__*/ core.$constructor("$ZodBigInt", (inst, def) => {
688
+ $ZodType.init(inst, def);
689
+ inst._zod.pattern = regexes.bigint;
690
+ inst._zod.parse = (payload, _ctx) => {
691
+ if (def.coerce)
692
+ try {
693
+ payload.value = BigInt(payload.value);
694
+ }
695
+ catch (_) { }
696
+ if (typeof payload.value === "bigint")
697
+ return payload;
698
+ payload.issues.push({
699
+ expected: "bigint",
700
+ code: "invalid_type",
701
+ input: payload.value,
702
+ inst,
703
+ });
704
+ return payload;
705
+ };
706
+ });
707
+ export const $ZodBigIntFormat = /*@__PURE__*/ core.$constructor("$ZodBigIntFormat", (inst, def) => {
708
+ checks.$ZodCheckBigIntFormat.init(inst, def);
709
+ $ZodBigInt.init(inst, def); // no format checks
710
+ });
711
+ export const $ZodSymbol = /*@__PURE__*/ core.$constructor("$ZodSymbol", (inst, def) => {
712
+ $ZodType.init(inst, def);
713
+ inst._zod.parse = (payload, _ctx) => {
714
+ const input = payload.value;
715
+ if (typeof input === "symbol")
716
+ return payload;
717
+ payload.issues.push({
718
+ expected: "symbol",
719
+ code: "invalid_type",
720
+ input,
721
+ inst,
722
+ });
723
+ return payload;
724
+ };
725
+ });
726
+ export const $ZodUndefined = /*@__PURE__*/ core.$constructor("$ZodUndefined", (inst, def) => {
727
+ $ZodType.init(inst, def);
728
+ inst._zod.pattern = regexes.undefined;
729
+ inst._zod.values = new Set([undefined]);
730
+ inst._zod.parse = (payload, _ctx) => {
731
+ const input = payload.value;
732
+ if (typeof input === "undefined")
733
+ return payload;
734
+ payload.issues.push({
735
+ expected: "undefined",
736
+ code: "invalid_type",
737
+ input,
738
+ inst,
739
+ });
740
+ return payload;
741
+ };
742
+ });
743
+ export const $ZodNull = /*@__PURE__*/ core.$constructor("$ZodNull", (inst, def) => {
744
+ $ZodType.init(inst, def);
745
+ inst._zod.pattern = regexes.null;
746
+ inst._zod.values = new Set([null]);
747
+ inst._zod.parse = (payload, _ctx) => {
748
+ const input = payload.value;
749
+ if (input === null)
750
+ return payload;
751
+ payload.issues.push({
752
+ expected: "null",
753
+ code: "invalid_type",
754
+ input,
755
+ inst,
756
+ });
757
+ return payload;
758
+ };
759
+ });
760
+ export const $ZodAny = /*@__PURE__*/ core.$constructor("$ZodAny", (inst, def) => {
761
+ $ZodType.init(inst, def);
762
+ inst._zod.parse = (payload) => payload;
763
+ });
764
+ export const $ZodUnknown = /*@__PURE__*/ core.$constructor("$ZodUnknown", (inst, def) => {
765
+ $ZodType.init(inst, def);
766
+ inst._zod.parse = (payload) => payload;
767
+ });
768
+ export const $ZodNever = /*@__PURE__*/ core.$constructor("$ZodNever", (inst, def) => {
769
+ $ZodType.init(inst, def);
770
+ inst._zod.parse = (payload, _ctx) => {
771
+ payload.issues.push({
772
+ expected: "never",
773
+ code: "invalid_type",
774
+ input: payload.value,
775
+ inst,
776
+ });
777
+ return payload;
778
+ };
779
+ });
780
+ export const $ZodVoid = /*@__PURE__*/ core.$constructor("$ZodVoid", (inst, def) => {
781
+ $ZodType.init(inst, def);
782
+ inst._zod.parse = (payload, _ctx) => {
783
+ const input = payload.value;
784
+ if (typeof input === "undefined")
785
+ return payload;
786
+ payload.issues.push({
787
+ expected: "void",
788
+ code: "invalid_type",
789
+ input,
790
+ inst,
791
+ });
792
+ return payload;
793
+ };
794
+ });
795
+ export const $ZodDate = /*@__PURE__*/ core.$constructor("$ZodDate", (inst, def) => {
796
+ $ZodType.init(inst, def);
797
+ inst._zod.parse = (payload, _ctx) => {
798
+ if (def.coerce) {
799
+ try {
800
+ payload.value = new Date(payload.value);
801
+ }
802
+ catch (_err) { }
803
+ }
804
+ const input = payload.value;
805
+ const isDate = input instanceof Date;
806
+ const isValidDate = isDate && !Number.isNaN(input.getTime());
807
+ if (isValidDate)
808
+ return payload;
809
+ payload.issues.push({
810
+ expected: "date",
811
+ code: "invalid_type",
812
+ input,
813
+ ...(isDate ? { received: "Invalid Date" } : {}),
814
+ inst,
815
+ });
816
+ return payload;
817
+ };
818
+ });
819
+ // an oversized container fails its leading size checks before any element is parsed
820
+ function capSize(inst, size) {
821
+ const caps = util.sizeCaps(inst._zod.def.checks);
822
+ if (!caps.length)
823
+ return;
824
+ const cap = Math.min(...caps.map((c) => c[0]));
825
+ const parse = inst._zod.parse;
826
+ inst._zod.parse = (payload, ctx) => {
827
+ const n = size(payload.value);
828
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
829
+ for (const [max, ch] of util.sizeCaps(inst._zod.def.checks)) {
830
+ if (n > max && ch._zod.def.when(payload)) {
831
+ const start = payload.issues.length;
832
+ ch._zod.check(payload);
833
+ // the value is still the raw input, so no later check may read it
834
+ payload.issues[start].continue = false;
835
+ util.attachSchema(payload.issues, start, inst);
836
+ return payload;
837
+ }
838
+ }
839
+ }
840
+ return parse(payload, ctx);
841
+ };
842
+ }
843
+ const arraySize = (input) => (Array.isArray(input) ? input.length : -1);
844
+ const mapSize = (input) => (input instanceof Map ? input.size : -1);
845
+ const setSize = (input) => (input instanceof Set ? input.size : -1);
846
+ function handleArrayResult(result, final, index) {
847
+ if (result.issues.length) {
848
+ final.issues.push(...util.prefixIssues(index, result.issues));
849
+ }
850
+ final.value[index] = result.value;
851
+ }
852
+ export const $ZodArray = /*@__PURE__*/ core.$constructor("$ZodArray", (inst, def) => {
853
+ $ZodType.init(inst, def);
854
+ const memo = core.globalConfig.memoizer;
855
+ memo?.attach(inst);
856
+ inst._zod.parse = (payload, ctx) => {
857
+ const input = payload.value;
858
+ if (!Array.isArray(input)) {
859
+ payload.issues.push({
860
+ expected: "array",
861
+ code: "invalid_type",
862
+ input,
863
+ inst,
864
+ });
865
+ return payload;
866
+ }
867
+ payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
868
+ const proms = [];
869
+ const abortEarly = ctx?.abortEarly;
870
+ for (let i = 0; i < input.length; i++) {
871
+ const item = input[i];
872
+ const result = def.element._zod.run({
873
+ value: item,
874
+ issues: [],
875
+ }, ctx);
876
+ if (result instanceof Promise) {
877
+ proms.push(result.then((result) => handleArrayResult(result, payload, i)));
878
+ }
879
+ else {
880
+ handleArrayResult(result, payload, i);
881
+ // the element's payload is authoritative here, since handleArrayResult forwards every issue; an object's is not, because it drops a failed absent optional
882
+ if (abortEarly && result.issues.length !== 0 && util.aborted(result))
883
+ break;
884
+ }
885
+ }
886
+ if (proms.length) {
887
+ return Promise.all(proms).then(() => payload);
888
+ }
889
+ return payload; //handleArrayResultsAsync(parseResults, final);
890
+ };
891
+ capSize(inst, arraySize);
892
+ });
893
+ function handlePropertyResult(result, final, key, input, optin, optout) {
894
+ const isPresent = key in input;
895
+ const isOptionalOut = optout === "optional";
896
+ // The middle rung means "absence permitted, nothing supplied in its place", so an absent key contributes nothing — whatever the schema made of `undefined` is invented, not substituted. Only `optional` reaches this with a value: `defaulted` substitutes, and a schema that isn't optional-out has to keep the key.
897
+ if (!isPresent && isOptionalOut && optin === "optional") {
898
+ return;
899
+ }
900
+ if (result.issues.length) {
901
+ // For optional-in/out schemas, ignore errors on absent keys.
902
+ if (optin !== undefined && isOptionalOut && !isPresent) {
903
+ return;
904
+ }
905
+ final.issues.push(...util.prefixIssues(key, result.issues));
906
+ }
907
+ if (!isPresent && optin === undefined) {
908
+ if (!result.issues.length) {
909
+ final.issues.push({
910
+ code: "invalid_type",
911
+ expected: "nonoptional",
912
+ input: undefined,
913
+ path: [key],
914
+ });
915
+ }
916
+ return;
917
+ }
918
+ if (result.value === undefined) {
919
+ if (isPresent || (optin === "defaulted" && !isOptionalOut)) {
920
+ final.value[key] = undefined;
921
+ }
922
+ }
923
+ else {
924
+ final.value[key] = result.value;
925
+ }
926
+ }
927
+ // one shared instance; a fresh [] per schema cost 56 bytes retained
928
+ const NO_SYMBOL_KEYS = [];
929
+ function normalizeDef(def) {
930
+ const keys = Object.keys(def.shape);
931
+ const ownSymbols = Object.getOwnPropertySymbols(def.shape);
932
+ const symbolKeys = ownSymbols.length ? ownSymbols : NO_SYMBOL_KEYS;
933
+ // aliases `keys` when there are no symbols, so a string-only shape keeps one array
934
+ const allKeys = symbolKeys.length ? [...keys, ...symbolKeys] : keys;
935
+ for (const k of allKeys) {
936
+ if (!def.shape?.[k]?._zod?.traits?.has("$ZodType")) {
937
+ throw new Error(`Invalid element at key "${String(k)}": expected a Zod schema`);
938
+ }
939
+ }
940
+ const okeys = util.optionalKeys(def.shape);
941
+ return {
942
+ ...def,
943
+ allKeys,
944
+ symbolKeys,
945
+ // string-only: handleCatchall matches it against `for...in`, which never yields a symbol
946
+ keySet: new Set(keys),
947
+ numKeys: keys.length,
948
+ optionalKeys: new Set(okeys),
949
+ };
950
+ }
951
+ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
952
+ const unrecognized = [];
953
+ const keySet = def.keySet;
954
+ const _catchall = def.catchall._zod;
955
+ const t = _catchall.def.type;
956
+ const optin = _catchall.optin;
957
+ const optout = _catchall.optout;
958
+ // starts at 0, not the current length: the shape phase already ran and may have aborted
959
+ let seen = 0;
960
+ for (const key in input) {
961
+ if (abortEarly && payload.issues.length !== seen) {
962
+ if (util.aborted(payload, seen))
963
+ break;
964
+ seen = payload.issues.length;
965
+ }
966
+ // Must precede the __proto__ branch: a declared key is not unrecognized, even though the shape loop deliberately strips __proto__ from the parsed output.
967
+ if (keySet.has(key))
968
+ continue;
969
+ // Don't copy an undeclared __proto__ into the result; assignment to a plain {} would replace the result prototype. But in strict mode it is still an unknown key, so report it before skipping.
970
+ if (key === "__proto__") {
971
+ if (t === "never")
972
+ unrecognized.push(key);
973
+ continue;
974
+ }
975
+ if (t === "never") {
976
+ unrecognized.push(key);
977
+ continue;
978
+ }
979
+ const r = _catchall.run({ value: input[key], issues: [] }, ctx);
980
+ if (r instanceof Promise) {
981
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
982
+ }
983
+ else {
984
+ handlePropertyResult(r, payload, key, input, optin, optout);
985
+ }
986
+ }
987
+ if (unrecognized.length) {
988
+ payload.issues.push({
989
+ code: "unrecognized_keys",
990
+ keys: unrecognized,
991
+ input,
992
+ inst,
993
+ // Describes the shape of the input, not the validity of the parsed value, so it never aborts. The parse still fails; the schema's own checks just get to run first, and an enclosing intersection can reconcile the key against a sibling operand.
994
+ continue: true,
995
+ });
996
+ }
997
+ if (!proms.length)
998
+ return payload;
999
+ return Promise.all(proms).then(() => {
1000
+ return payload;
1001
+ });
1002
+ }
1003
+ export const $ZodObject = /*@__PURE__*/ core.$constructor("$ZodObject", (inst, def) => {
1004
+ // requires cast because technically $ZodObject doesn't extend
1005
+ $ZodType.init(inst, def);
1006
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
1007
+ // a cloned def carries its source's accessor, which knows the shape it answers from; adopting that keeps the clone's keys readable without running it
1008
+ const sh = desc?.get ? desc.get.raw : (def.shape ?? {});
1009
+ if (sh) {
1010
+ // Freezes the shape on first read, so its getters resolve once and every later read sees the same schemas.
1011
+ const get = () => {
1012
+ const newSh = { ...sh };
1013
+ Object.defineProperty(def, "shape", { value: newSh });
1014
+ get.raw = newSh;
1015
+ return newSh;
1016
+ };
1017
+ get.raw = sh;
1018
+ Object.defineProperty(def, "shape", { get });
1019
+ }
1020
+ const _normalized = util.cached(() => normalizeDef(def));
1021
+ util.defineLazyInternal(inst, "propValues", (zod) => {
1022
+ const shape = zod.def.shape;
1023
+ const propValues = {};
1024
+ for (const key in shape) {
1025
+ const field = shape[key]._zod;
1026
+ if (field.values) {
1027
+ if (!Object.prototype.hasOwnProperty.call(propValues, key)) {
1028
+ util.assignProp(propValues, key, new Set());
1029
+ }
1030
+ for (const v of field.values)
1031
+ propValues[key].add(v);
1032
+ // An omittable slot reads back as undefined at a discriminator lookup, so it has to claim undefined: two options that can both omit the key are not discriminable on it.
1033
+ if (field.optin !== undefined)
1034
+ propValues[key].add(undefined);
1035
+ }
1036
+ }
1037
+ return propValues;
1038
+ });
1039
+ const isObject = util.isObject;
1040
+ const catchall = def.catchall;
1041
+ let value;
1042
+ const memo = core.globalConfig.memoizer;
1043
+ memo?.attach(inst);
1044
+ inst._zod.parse = (payload, ctx) => {
1045
+ value ?? (value = _normalized.value);
1046
+ const input = payload.value;
1047
+ if (!isObject(input)) {
1048
+ payload.issues.push({
1049
+ expected: "object",
1050
+ code: "invalid_type",
1051
+ input,
1052
+ inst,
1053
+ });
1054
+ return payload;
1055
+ }
1056
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
1057
+ const proms = [];
1058
+ const shape = value.shape;
1059
+ const abortEarly = ctx?.abortEarly;
1060
+ let seen = payload.issues.length;
1061
+ for (const key of value.allKeys) {
1062
+ if (abortEarly && payload.issues.length !== seen) {
1063
+ if (util.aborted(payload, seen))
1064
+ break;
1065
+ seen = payload.issues.length;
1066
+ }
1067
+ if (key === "__proto__")
1068
+ continue;
1069
+ const el = shape[key];
1070
+ const optin = el._zod.optin;
1071
+ const optout = el._zod.optout;
1072
+ const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1073
+ if (r instanceof Promise) {
1074
+ proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, optin, optout)));
1075
+ }
1076
+ else {
1077
+ handlePropertyResult(r, payload, key, input, optin, optout);
1078
+ }
1079
+ }
1080
+ if (!catchall) {
1081
+ return proms.length ? Promise.all(proms).then(() => payload) : payload;
1082
+ }
1083
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);
1084
+ };
1085
+ });
1086
+ export const $ZodObjectJIT = /*@__PURE__*/ core.$constructor("$ZodObjectJIT", (inst, def) => {
1087
+ // requires cast because technically $ZodObject doesn't extend
1088
+ $ZodObject.init(inst, def);
1089
+ const superParse = inst._zod.parse;
1090
+ const _normalized = util.cached(() => normalizeDef(def));
1091
+ const memo = core.globalConfig.memoizer;
1092
+ const generateFastpass = (shape) => {
1093
+ const normalized = _normalized.value;
1094
+ const syms = normalized.symbolKeys;
1095
+ // a symbol has no source literal, so it is read as `syms[i]` off the closed-over scope
1096
+ const doc = new Doc(["payload", "ctx"], { shape, inst, memo, syms });
1097
+ const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
1098
+ // prefixes in place, like util.prefixIssues. newResult must land before the early return: a catchall runs after this and would otherwise write onto the caller's input
1099
+ const prefixStr = (id, k) => `
1100
+ let ${id}_ab = false;
1101
+ for (let i = 0; i < ${id}.issues.length; i++) {
1102
+ const iss = ${id}.issues[i];
1103
+ iss.path = iss.path ? [${k}, ...iss.path] : [${k}];
1104
+ payload.issues.push(iss);
1105
+ if (iss.continue !== true) ${id}_ab = true;
1106
+ }
1107
+ if (${id}_ab && ctx && ctx.abortEarly) {
1108
+ payload.value = newResult;
1109
+ return payload;
1110
+ }`;
1111
+ doc.write(`const input = payload.value;`);
1112
+ const ids = Object.create(null);
1113
+ let counter = 0;
1114
+ for (const key of normalized.allKeys) {
1115
+ ids[key] = `key_${counter++}`;
1116
+ }
1117
+ // A: preserve key order {
1118
+ doc.write(memo ? `const newResult = memo.alloc(inst, payload, {}, ctx);` : `const newResult = {};`);
1119
+ for (const key of normalized.allKeys) {
1120
+ if (key === "__proto__")
1121
+ continue;
1122
+ const id = ids[key];
1123
+ const k = typeof key === "symbol" ? `syms[${syms.indexOf(key)}]` : util.esc(key);
1124
+ const isPresent = `${k} in input`;
1125
+ const schema = shape[key];
1126
+ const optin = schema?._zod?.optin;
1127
+ const isOptionalIn = optin !== undefined;
1128
+ const isOptionalOut = schema?._zod?.optout === "optional";
1129
+ doc.write(`const ${id} = ${parseStr(k)};`);
1130
+ if (isOptionalIn && isOptionalOut) {
1131
+ // For optional-in/out schemas, ignore errors on absent keys — and, like the interpreted path, drop the value produced alongside them. The middle rung goes further: it permits absence without supplying anything in its place, so an absent key contributes nothing at all.
1132
+ const assign = optin === "optional" ? `${id}_present` : `${id}.value !== undefined || ${id}_present`;
1133
+ doc.write(`
1134
+ const ${id}_present = ${isPresent};
1135
+ if (!${id}.issues.length || ${id}_present) {
1136
+ if (${id}.issues.length) {${prefixStr(id, k)}
1137
+ }
1138
+
1139
+ if (${assign}) {
1140
+ newResult[${k}] = ${id}.value;
1141
+ }
1142
+ }
1143
+
1144
+ `);
1145
+ }
1146
+ else if (!isOptionalIn) {
1147
+ doc.write(`
1148
+ const ${id}_present = ${isPresent};
1149
+ if (${id}.issues.length) {${prefixStr(id, k)}
1150
+ }
1151
+ if (!${id}_present && !${id}.issues.length) {
1152
+ payload.issues.push({
1153
+ code: "invalid_type",
1154
+ expected: "nonoptional",
1155
+ input: undefined,
1156
+ path: [${k}]
1157
+ });
1158
+ if (ctx && ctx.abortEarly) {
1159
+ payload.value = newResult;
1160
+ return payload;
1161
+ }
1162
+ }
1163
+
1164
+ if (${id}_present) {
1165
+ newResult[${k}] = ${id}.value;
1166
+ }
1167
+
1168
+ `);
1169
+ }
1170
+ else {
1171
+ doc.write(`
1172
+ if (${id}.issues.length) {${prefixStr(id, k)}
1173
+ }
1174
+ `);
1175
+ if (optin === "defaulted") {
1176
+ doc.write(`newResult[${k}] = ${id}.value;`);
1177
+ }
1178
+ else {
1179
+ doc.write(`
1180
+ if (${id}.value !== undefined || ${isPresent}) {
1181
+ newResult[${k}] = ${id}.value;
1182
+ }
1183
+ `);
1184
+ }
1185
+ }
1186
+ }
1187
+ doc.write(`payload.value = newResult;`);
1188
+ doc.write(`return payload;`);
1189
+ // closing `shape` in is what pays: turbofan specializes the parser against that one shape object, so every `shape[k]._zod.run` folds to a known callee. as a parameter it stays a generic load and measures 13% slower even with the forwarding frame gone
1190
+ return doc.compile();
1191
+ };
1192
+ let fastpass;
1193
+ const isObject = util.isObject;
1194
+ const jit = !core.globalConfig.jitless;
1195
+ const allowsEval = util.allowsEval;
1196
+ const fastEnabled = jit && allowsEval.value; // && !def.catchall;
1197
+ const catchall = def.catchall;
1198
+ let value;
1199
+ inst._zod.parse = (payload, ctx) => {
1200
+ value ?? (value = _normalized.value);
1201
+ const input = payload.value;
1202
+ if (!isObject(input)) {
1203
+ payload.issues.push({
1204
+ expected: "object",
1205
+ code: "invalid_type",
1206
+ input,
1207
+ inst,
1208
+ });
1209
+ return payload;
1210
+ }
1211
+ if (jit && fastEnabled && ctx?.async === false && ctx.jitless !== true) {
1212
+ // always synchronous
1213
+ if (!fastpass)
1214
+ fastpass = generateFastpass(def.shape);
1215
+ payload = fastpass(payload, ctx);
1216
+ if (!catchall)
1217
+ return payload;
1218
+ return handleCatchall([], input, payload, ctx, value, inst, ctx?.abortEarly === true);
1219
+ }
1220
+ return superParse(payload, ctx);
1221
+ };
1222
+ });
1223
+ function handleUnionResults(results, final, inst, ctx) {
1224
+ for (const result of results) {
1225
+ if (result.issues.length === 0) {
1226
+ final.value = result.value;
1227
+ return final;
1228
+ }
1229
+ }
1230
+ const nonaborted = results.filter((r) => !util.aborted(r));
1231
+ if (nonaborted.length === 1) {
1232
+ final.value = nonaborted[0].value;
1233
+ return nonaborted[0];
1234
+ }
1235
+ final.issues.push({
1236
+ code: "invalid_union",
1237
+ input: final.value,
1238
+ inst,
1239
+ errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
1240
+ });
1241
+ return final;
1242
+ }
1243
+ export const $ZodUnion = /*@__PURE__*/ core.$constructor("$ZodUnion", (inst, def) => {
1244
+ $ZodType.init(inst, def);
1245
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.options.some((o) => o._zod.optin === "defaulted")
1246
+ ? "defaulted"
1247
+ : zod.def.options.some((o) => o._zod.optin !== undefined)
1248
+ ? "optional"
1249
+ : undefined);
1250
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.options.some((o) => o._zod.optout === "optional") ? "optional" : undefined);
1251
+ util.defineLazyInternal(inst, "values", (zod) => {
1252
+ if (zod.def.options.every((o) => o._zod.values)) {
1253
+ return new Set(zod.def.options.flatMap((option) => Array.from(option._zod.values)));
1254
+ }
1255
+ return undefined;
1256
+ });
1257
+ util.defineLazyInternal(inst, "pattern", (zod) => {
1258
+ if (zod.def.options.every((o) => o._zod.pattern)) {
1259
+ const patterns = zod.def.options.map((o) => o._zod.pattern);
1260
+ return new RegExp(`^(${patterns.map((p) => util.cleanRegex(p.source)).join("|")})$`);
1261
+ }
1262
+ return undefined;
1263
+ });
1264
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1265
+ inst._zod.parse = (payload, ctx) => {
1266
+ if (first) {
1267
+ return first(payload, ctx);
1268
+ }
1269
+ let async = false;
1270
+ const results = [];
1271
+ for (const option of def.options) {
1272
+ const result = option._zod.run({
1273
+ value: payload.value,
1274
+ issues: [],
1275
+ }, ctx);
1276
+ if (result instanceof Promise) {
1277
+ results.push(result);
1278
+ async = true;
1279
+ }
1280
+ else {
1281
+ if (result.issues.length === 0)
1282
+ return result;
1283
+ results.push(result);
1284
+ }
1285
+ }
1286
+ if (!async)
1287
+ return handleUnionResults(results, payload, inst, ctx);
1288
+ return Promise.all(results).then((results) => {
1289
+ return handleUnionResults(results, payload, inst, ctx);
1290
+ });
1291
+ };
1292
+ });
1293
+ function handleExclusiveUnionResults(results, final, inst, ctx) {
1294
+ const matches = [];
1295
+ for (let i = 0; i < results.length; i++) {
1296
+ if (results[i].issues.length === 0)
1297
+ matches.push(i);
1298
+ }
1299
+ if (matches.length === 1) {
1300
+ final.value = results[matches[0]].value;
1301
+ return final;
1302
+ }
1303
+ if (matches.length === 0) {
1304
+ // No matches - same as regular union
1305
+ final.issues.push({
1306
+ code: "invalid_union",
1307
+ input: final.value,
1308
+ inst,
1309
+ errors: results.map((result) => result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config()))),
1310
+ });
1311
+ }
1312
+ else {
1313
+ // Multiple matches - exclusive union failure
1314
+ final.issues.push({
1315
+ code: "invalid_union",
1316
+ input: final.value,
1317
+ inst,
1318
+ errors: [],
1319
+ inclusive: false,
1320
+ matches,
1321
+ });
1322
+ }
1323
+ return final;
1324
+ }
1325
+ export const $ZodXor = /*@__PURE__*/ core.$constructor("$ZodXor", (inst, def) => {
1326
+ $ZodUnion.init(inst, def);
1327
+ def.inclusive = false;
1328
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1329
+ inst._zod.parse = (payload, ctx) => {
1330
+ if (first) {
1331
+ return first(payload, ctx);
1332
+ }
1333
+ let async = false;
1334
+ const results = [];
1335
+ for (const option of def.options) {
1336
+ const result = option._zod.run({
1337
+ value: payload.value,
1338
+ issues: [],
1339
+ }, ctx);
1340
+ if (result instanceof Promise) {
1341
+ results.push(result);
1342
+ async = true;
1343
+ }
1344
+ else {
1345
+ results.push(result);
1346
+ }
1347
+ }
1348
+ if (!async)
1349
+ return handleExclusiveUnionResults(results, payload, inst, ctx);
1350
+ return Promise.all(results).then((results) => {
1351
+ return handleExclusiveUnionResults(results, payload, inst, ctx);
1352
+ });
1353
+ };
1354
+ });
1355
+ /** Returns the option whose discriminator claims `value`, or throws if ambiguous. */
1356
+ export function getDiscriminatedOption(union, value) {
1357
+ const internals = union._zod;
1358
+ let map = internals.bag.optionsMap;
1359
+ if (!map) {
1360
+ map = discriminatorMap(internals.def);
1361
+ internals.bag.optionsMap = map;
1362
+ }
1363
+ const option = map.get(value);
1364
+ if (option === null)
1365
+ throw new Error(`Ambiguous discriminator value "${String(value)}"`);
1366
+ return option;
1367
+ }
1368
+ function discriminatorMap(def) {
1369
+ const map = new Map();
1370
+ for (const option of def.options) {
1371
+ const values = option._zod.propValues?.[def.discriminator];
1372
+ if (!values || values.size === 0)
1373
+ throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
1374
+ for (const value of values) {
1375
+ if (map.has(value)) {
1376
+ if (value !== undefined)
1377
+ throw new Error(`Duplicate discriminator value "${String(value)}"`);
1378
+ // keep the collision marked so a later member cannot reclaim it
1379
+ map.set(value, null);
1380
+ }
1381
+ else {
1382
+ map.set(value, option);
1383
+ }
1384
+ }
1385
+ }
1386
+ return map;
1387
+ }
1388
+ export const $ZodDiscriminatedUnion =
1389
+ /*@__PURE__*/
1390
+ core.$constructor("$ZodDiscriminatedUnion", (inst, def) => {
1391
+ def.inclusive = false;
1392
+ $ZodUnion.init(inst, def);
1393
+ const _super = inst._zod.parse;
1394
+ util.defineLazyInternal(inst, "propValues", (zod) => {
1395
+ const propValues = {};
1396
+ let undefinedCount = 0;
1397
+ for (const option of zod.def.options) {
1398
+ const pv = option._zod.propValues;
1399
+ if (!pv || Object.keys(pv).length === 0)
1400
+ throw new Error(`Invalid discriminated union option at index "${zod.def.options.indexOf(option)}"`);
1401
+ if (pv[zod.def.discriminator]?.has(undefined))
1402
+ undefinedCount++;
1403
+ for (const [k, v] of Object.entries(pv)) {
1404
+ if (!Object.prototype.hasOwnProperty.call(propValues, k)) {
1405
+ util.assignProp(propValues, k, new Set());
1406
+ }
1407
+ for (const val of v) {
1408
+ propValues[k].add(val);
1409
+ }
1410
+ }
1411
+ }
1412
+ if (!zod.def.unionFallback && undefinedCount > 1)
1413
+ propValues[zod.def.discriminator]?.delete(undefined);
1414
+ return propValues;
1415
+ });
1416
+ // Checked now rather than in the lookup map below, so an option that lacks the discriminator fails at the `discriminatedUnion` call instead of on the first object parsed. Options whose shape cannot be enumerated without resolving it — pipes and lazies — are left to the map.
1417
+ def.options.forEach((option, i) => {
1418
+ const propShape = util.rawShape(option._zod.def);
1419
+ if (propShape && !Object.prototype.hasOwnProperty.call(propShape, def.discriminator)) {
1420
+ throw new Error(`Invalid discriminated union option at index "${i}"`);
1421
+ }
1422
+ });
1423
+ const disc = util.cached(() => discriminatorMap(def));
1424
+ inst._zod.parse = (payload, ctx) => {
1425
+ const input = payload.value;
1426
+ if (!util.isObject(input)) {
1427
+ payload.issues.push({
1428
+ code: "invalid_type",
1429
+ expected: "object",
1430
+ input,
1431
+ inst,
1432
+ });
1433
+ return payload;
1434
+ }
1435
+ const value = input?.[def.discriminator];
1436
+ const opt = disc.value.get(value);
1437
+ // forward metadata cannot choose an encoder for an absent tag
1438
+ if (opt && (value !== undefined || ctx.direction !== "backward")) {
1439
+ return opt._zod.run(payload, ctx);
1440
+ }
1441
+ // Fall back to union matching when the fast discriminator path fails:
1442
+ // - explicitly enabled via unionFallback, or
1443
+ // - during backward direction (encode), since codec-based discriminators have different values in forward vs backward directions
1444
+ if (def.unionFallback || ctx.direction === "backward") {
1445
+ return _super(payload, ctx);
1446
+ }
1447
+ // no matching discriminator
1448
+ payload.issues.push({
1449
+ code: "invalid_union",
1450
+ errors: [],
1451
+ note: "No matching discriminator",
1452
+ discriminator: def.discriminator,
1453
+ options: Array.from(disc.value.keys()).filter((value) => disc.value.get(value) !== null),
1454
+ input,
1455
+ path: [def.discriminator],
1456
+ inst,
1457
+ });
1458
+ return payload;
1459
+ };
1460
+ });
1461
+ export const $ZodIntersection = /*@__PURE__*/ core.$constructor("$ZodIntersection", (inst, def) => {
1462
+ $ZodType.init(inst, def);
1463
+ inst._zod.parse = (payload, ctx) => {
1464
+ const input = payload.value;
1465
+ const left = def.left._zod.run({ value: input, issues: [] }, ctx);
1466
+ const right = def.right._zod.run({ value: input, issues: [] }, ctx);
1467
+ const async = left instanceof Promise || right instanceof Promise;
1468
+ if (async) {
1469
+ return Promise.all([left, right]).then(([left, right]) => {
1470
+ return handleIntersectionResults(payload, left, right);
1471
+ });
1472
+ }
1473
+ return handleIntersectionResults(payload, left, right);
1474
+ };
1475
+ });
1476
+ export function mergeValues(a, b) {
1477
+ // const aType = parse.t(a);
1478
+ // const bType = parse.t(b);
1479
+ if (a === b) {
1480
+ return { valid: true, data: a };
1481
+ }
1482
+ if (a instanceof Date && b instanceof Date && +a === +b) {
1483
+ return { valid: true, data: a };
1484
+ }
1485
+ if (util.isPlainObject(a) && util.isPlainObject(b)) {
1486
+ const bKeys = Object.keys(b);
1487
+ const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
1488
+ const newObj = { ...a, ...b };
1489
+ if (Object.prototype.hasOwnProperty.call(newObj, "__proto__"))
1490
+ delete newObj.__proto__;
1491
+ for (const key of sharedKeys) {
1492
+ if (key === "__proto__")
1493
+ continue;
1494
+ const sharedValue = mergeValues(a[key], b[key]);
1495
+ if (!sharedValue.valid) {
1496
+ return {
1497
+ valid: false,
1498
+ mergeErrorPath: [key, ...sharedValue.mergeErrorPath],
1499
+ };
1500
+ }
1501
+ newObj[key] = sharedValue.data;
1502
+ }
1503
+ return { valid: true, data: newObj };
1504
+ }
1505
+ if (Array.isArray(a) && Array.isArray(b)) {
1506
+ if (a.length !== b.length) {
1507
+ return { valid: false, mergeErrorPath: [] };
1508
+ }
1509
+ const newArray = [];
1510
+ for (let index = 0; index < a.length; index++) {
1511
+ const itemA = a[index];
1512
+ const itemB = b[index];
1513
+ const sharedValue = mergeValues(itemA, itemB);
1514
+ if (!sharedValue.valid) {
1515
+ return {
1516
+ valid: false,
1517
+ mergeErrorPath: [index, ...sharedValue.mergeErrorPath],
1518
+ };
1519
+ }
1520
+ newArray.push(sharedValue.data);
1521
+ }
1522
+ return { valid: true, data: newArray };
1523
+ }
1524
+ return { valid: false, mergeErrorPath: [] };
1525
+ }
1526
+ function handleIntersectionResults(result, left, right) {
1527
+ // Track which side(s) reject each key. A key rejection is reported only when BOTH sides reject it, so a key owned by one branch survives the other's key schema. strictObject reports these as unrecognized_keys; a record with an open key schema reports one invalid_key per key.
1528
+ const unrecKeys = new Map();
1529
+ let unrecIssue;
1530
+ const keyIssues = new Map();
1531
+ const collect = (iss, side) => {
1532
+ let keys;
1533
+ if (iss.code === "unrecognized_keys" && !iss.path?.length) {
1534
+ unrecIssue ?? (unrecIssue = iss);
1535
+ keys = iss.keys;
1536
+ }
1537
+ else if (iss.code === "invalid_key" && iss.origin === "record" && iss.path?.length === 1) {
1538
+ const k = String(iss.path[0]);
1539
+ if (!keyIssues.has(k))
1540
+ keyIssues.set(k, iss);
1541
+ keys = [k];
1542
+ }
1543
+ else {
1544
+ return false;
1545
+ }
1546
+ for (const k of keys) {
1547
+ if (!unrecKeys.has(k))
1548
+ unrecKeys.set(k, {});
1549
+ unrecKeys.get(k)[side] = true;
1550
+ }
1551
+ return true;
1552
+ };
1553
+ for (const iss of left.issues) {
1554
+ if (!collect(iss, "l"))
1555
+ result.issues.push(iss);
1556
+ }
1557
+ for (const iss of right.issues) {
1558
+ if (!collect(iss, "r"))
1559
+ result.issues.push(iss);
1560
+ }
1561
+ // Report only keys rejected by BOTH sides
1562
+ const bothKeys = [...unrecKeys].filter(([, f]) => f.l && f.r).map(([k]) => k);
1563
+ if (bothKeys.length) {
1564
+ const aggregated = unrecIssue ? bothKeys.filter((k) => unrecIssue.keys.includes(k)) : [];
1565
+ if (aggregated.length)
1566
+ result.issues.push({ ...unrecIssue, keys: aggregated });
1567
+ for (const k of bothKeys) {
1568
+ if (!aggregated.includes(k) && keyIssues.has(k))
1569
+ result.issues.push(keyIssues.get(k));
1570
+ }
1571
+ }
1572
+ const merged = mergeValues(left.value, right.value);
1573
+ if (!merged.valid) {
1574
+ if (util.aborted(result))
1575
+ return result;
1576
+ throw new Error(`Unmergable intersection. Error path: ` + `${JSON.stringify(merged.mergeErrorPath)}`);
1577
+ }
1578
+ result.value = merged.data;
1579
+ return result;
1580
+ }
1581
+ export const $ZodTuple = /*@__PURE__*/ core.$constructor("$ZodTuple", (inst, def) => {
1582
+ $ZodType.init(inst, def);
1583
+ const items = def.items;
1584
+ const memo = core.globalConfig.memoizer;
1585
+ memo?.attach(inst);
1586
+ inst._zod.parse = (payload, ctx) => {
1587
+ const input = payload.value;
1588
+ if (!Array.isArray(input)) {
1589
+ payload.issues.push({
1590
+ input,
1591
+ inst,
1592
+ expected: "tuple",
1593
+ code: "invalid_type",
1594
+ });
1595
+ return payload;
1596
+ }
1597
+ payload.value = memo ? memo.alloc(inst, payload, [], ctx) : [];
1598
+ const proms = [];
1599
+ const optinStart = getTupleOptStart(items, "optin");
1600
+ const optoutStart = getTupleOptStart(items, "optout");
1601
+ if (!def.rest) {
1602
+ if (input.length < optinStart) {
1603
+ payload.issues.push({
1604
+ code: "too_small",
1605
+ minimum: optinStart,
1606
+ inclusive: true,
1607
+ input,
1608
+ inst,
1609
+ origin: "array",
1610
+ });
1611
+ return payload;
1612
+ }
1613
+ if (input.length > items.length) {
1614
+ payload.issues.push({
1615
+ code: "too_big",
1616
+ maximum: items.length,
1617
+ inclusive: true,
1618
+ input,
1619
+ inst,
1620
+ origin: "array",
1621
+ });
1622
+ }
1623
+ }
1624
+ // Run every item in parallel, collecting results into an indexed array. The post-processing in `handleTupleResults` walks them in order so it can decide whether an absent optional-output error can truncate the tail or must be reported to preserve required output.
1625
+ const itemResults = new Array(items.length);
1626
+ // only tracked when there is a rest loop to skip
1627
+ const abortEarly = def.rest ? ctx?.abortEarly : undefined;
1628
+ let itemAborted = false;
1629
+ for (let i = 0; i < items.length; i++) {
1630
+ const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
1631
+ if (r instanceof Promise) {
1632
+ proms.push(r.then((rr) => {
1633
+ itemResults[i] = rr;
1634
+ }));
1635
+ }
1636
+ else {
1637
+ itemResults[i] = r;
1638
+ if (abortEarly && !itemAborted && r.issues.length)
1639
+ itemAborted = util.aborted(r);
1640
+ }
1641
+ }
1642
+ // sound because rest is non-empty exactly when every fixed index is present, the one case handleTupleResults cannot discard an item's issues
1643
+ if (def.rest && !itemAborted) {
1644
+ let i = items.length - 1;
1645
+ const rest = input.slice(items.length);
1646
+ let seen = payload.issues.length;
1647
+ for (const el of rest) {
1648
+ if (abortEarly && payload.issues.length !== seen) {
1649
+ if (util.aborted(payload, seen))
1650
+ break;
1651
+ seen = payload.issues.length;
1652
+ }
1653
+ i++;
1654
+ const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
1655
+ if (result instanceof Promise) {
1656
+ proms.push(result.then((r) => handleTupleResult(r, payload, i)));
1657
+ }
1658
+ else {
1659
+ handleTupleResult(result, payload, i);
1660
+ }
1661
+ }
1662
+ }
1663
+ if (proms.length) {
1664
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
1665
+ }
1666
+ return handleTupleResults(itemResults, payload, items, input, optoutStart);
1667
+ };
1668
+ });
1669
+ function getTupleOptStart(items, key) {
1670
+ for (let i = items.length - 1; i >= 0; i--) {
1671
+ // optin is a three-rung ladder so any rung above `undefined` permits an absent slot; optout stays two-valued.
1672
+ const omittable = key === "optin" ? items[i]._zod.optin !== undefined : items[i]._zod.optout === "optional";
1673
+ if (!omittable)
1674
+ return i + 1;
1675
+ }
1676
+ return 0;
1677
+ }
1678
+ function handleTupleResult(result, final, index) {
1679
+ if (result.issues.length) {
1680
+ final.issues.push(...util.prefixIssues(index, result.issues));
1681
+ }
1682
+ final.value[index] = result.value;
1683
+ }
1684
+ function handleTupleResults(itemResults, final, items, input, optoutStart) {
1685
+ // Walk results in order. Mirror $ZodObject's swallow-on-absent-optional rule, but only after `optoutStart`: the first index where the output tuple tail can be absent.
1686
+ for (let i = 0; i < items.length; i++) {
1687
+ const r = itemResults[i];
1688
+ const isPresent = i < input.length;
1689
+ // The array analog of `handlePropertyResult`'s absent-key early return: the middle rung permits absence without supplying anything in its place, so the tail truncates here instead of materializing whatever the item made of `undefined`.
1690
+ if (!isPresent && i >= optoutStart && items[i]._zod.optin === "optional") {
1691
+ final.value.length = i;
1692
+ break;
1693
+ }
1694
+ if (r.issues.length) {
1695
+ if (!isPresent && i >= optoutStart) {
1696
+ final.value.length = i;
1697
+ break;
1698
+ }
1699
+ final.issues.push(...util.prefixIssues(i, r.issues));
1700
+ }
1701
+ final.value[i] = r.value;
1702
+ }
1703
+ // Drop trailing slots that produced `undefined` for absent input
1704
+ // (the array analog of an absent optional key on an object). The
1705
+ // `i >= input.length` floor is critical: an explicit `undefined`
1706
+ // *inside* the input must be preserved even when the schema is
1707
+ // optional-out (e.g. `z.string().or(z.undefined())` accepting an
1708
+ // explicit undefined value).
1709
+ for (let i = final.value.length - 1; i >= input.length; i--) {
1710
+ if (items[i]._zod.optout === "optional" && final.value[i] === undefined) {
1711
+ final.value.length = i;
1712
+ }
1713
+ else {
1714
+ break;
1715
+ }
1716
+ }
1717
+ return final;
1718
+ }
1719
+ export const $ZodRecord = /*@__PURE__*/ core.$constructor("$ZodRecord", (inst, def) => {
1720
+ $ZodType.init(inst, def);
1721
+ const memo = core.globalConfig.memoizer;
1722
+ memo?.attach(inst);
1723
+ inst._zod.parse = (payload, ctx) => {
1724
+ const input = payload.value;
1725
+ if (!util.isPlainObject(input)) {
1726
+ payload.issues.push({
1727
+ expected: "record",
1728
+ code: "invalid_type",
1729
+ input,
1730
+ inst,
1731
+ });
1732
+ return payload;
1733
+ }
1734
+ // no guard in either loop below: a record's invalid_key aborts but an enclosing intersection can reconcile it, so a stopped loop hides keys the sibling does not own and the intersection then rejects nothing
1735
+ const proms = [];
1736
+ const values = def.keyType._zod.values;
1737
+ if (values && !def.partial) {
1738
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
1739
+ const recordKeys = new Set();
1740
+ for (const key of values) {
1741
+ if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1742
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
1743
+ // A declared __proto__ is stripped but is not an unrecognized key.
1744
+ if (key === "__proto__")
1745
+ continue;
1746
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1747
+ if (keyResult instanceof Promise) {
1748
+ throw new Error("Async schemas not supported in object keys currently");
1749
+ }
1750
+ if (keyResult.issues.length) {
1751
+ payload.issues.push({
1752
+ code: "invalid_key",
1753
+ origin: "record",
1754
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1755
+ input: key,
1756
+ path: [key],
1757
+ inst,
1758
+ });
1759
+ continue;
1760
+ }
1761
+ const outKey = keyResult.value;
1762
+ if (outKey === "__proto__")
1763
+ continue;
1764
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1765
+ if (result instanceof Promise) {
1766
+ proms.push(result.then((result) => {
1767
+ if (result.issues.length) {
1768
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1769
+ }
1770
+ payload.value[outKey] = result.value;
1771
+ }));
1772
+ }
1773
+ else {
1774
+ if (result.issues.length) {
1775
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1776
+ }
1777
+ payload.value[outKey] = result.value;
1778
+ }
1779
+ }
1780
+ }
1781
+ let unrecognized;
1782
+ for (const key in input) {
1783
+ if (!recordKeys.has(key)) {
1784
+ if (def.mode === "loose") {
1785
+ // skip __proto__ so it can't replace the result prototype via the assignment setter on the plain {} we build into
1786
+ if (key === "__proto__")
1787
+ continue;
1788
+ payload.value[key] = input[key];
1789
+ }
1790
+ else {
1791
+ unrecognized = unrecognized ?? [];
1792
+ unrecognized.push(key);
1793
+ }
1794
+ }
1795
+ }
1796
+ if (unrecognized && unrecognized.length > 0) {
1797
+ payload.issues.push({
1798
+ code: "unrecognized_keys",
1799
+ input,
1800
+ inst,
1801
+ keys: unrecognized,
1802
+ continue: true,
1803
+ });
1804
+ }
1805
+ }
1806
+ else {
1807
+ payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
1808
+ // An enumerable key schema declares which keys the record owns, so a key outside the set is unrecognized. A non-enumerable one (regex, refine) is a constraint every key must satisfy, so a failing key is invalid. Only the former is reconcilable against the other side of an intersection.
1809
+ let unrecognized;
1810
+ // Reflect.ownKeys for Symbol-key support; filter non-enumerable to match z.object()
1811
+ for (const key of Reflect.ownKeys(input)) {
1812
+ if (key === "__proto__")
1813
+ continue;
1814
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
1815
+ continue;
1816
+ let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1817
+ if (keyResult instanceof Promise) {
1818
+ throw new Error("Async schemas not supported in object keys currently");
1819
+ }
1820
+ // Numeric string fallback: if key is a numeric string and failed, retry with Number(key). This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals
1821
+ const checkNumericKey = typeof key === "string" && regexes.number.test(key) && keyResult.issues.length;
1822
+ if (checkNumericKey) {
1823
+ const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
1824
+ if (retryResult instanceof Promise) {
1825
+ throw new Error("Async schemas not supported in object keys currently");
1826
+ }
1827
+ if (retryResult.issues.length === 0) {
1828
+ keyResult = retryResult;
1829
+ }
1830
+ }
1831
+ if (keyResult.issues.length) {
1832
+ if (def.mode === "loose") {
1833
+ // Pass through unchanged
1834
+ payload.value[key] = input[key];
1835
+ }
1836
+ else if (values) {
1837
+ unrecognized = unrecognized ?? [];
1838
+ unrecognized.push(key);
1839
+ }
1840
+ else {
1841
+ // Default "strict" behavior: error on invalid key
1842
+ payload.issues.push({
1843
+ code: "invalid_key",
1844
+ origin: "record",
1845
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1846
+ input: key,
1847
+ path: [key],
1848
+ inst,
1849
+ });
1850
+ }
1851
+ continue;
1852
+ }
1853
+ // the guard above tests the raw input key, but the key schema can normalize an ordinary key into __proto__; re-check the key we actually write under
1854
+ const outKey = keyResult.value;
1855
+ if (outKey === "__proto__")
1856
+ continue;
1857
+ const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1858
+ if (result instanceof Promise) {
1859
+ proms.push(result.then((result) => {
1860
+ if (result.issues.length) {
1861
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1862
+ }
1863
+ payload.value[outKey] = result.value;
1864
+ }));
1865
+ }
1866
+ else {
1867
+ if (result.issues.length) {
1868
+ payload.issues.push(...util.prefixIssues(key, result.issues));
1869
+ }
1870
+ payload.value[outKey] = result.value;
1871
+ }
1872
+ }
1873
+ if (unrecognized && unrecognized.length > 0) {
1874
+ payload.issues.push({
1875
+ code: "unrecognized_keys",
1876
+ input,
1877
+ inst,
1878
+ keys: unrecognized,
1879
+ continue: true,
1880
+ });
1881
+ }
1882
+ }
1883
+ if (proms.length) {
1884
+ return Promise.all(proms).then(() => payload);
1885
+ }
1886
+ return payload;
1887
+ };
1888
+ });
1889
+ export const $ZodMap = /*@__PURE__*/ core.$constructor("$ZodMap", (inst, def) => {
1890
+ $ZodType.init(inst, def);
1891
+ const memo = core.globalConfig.memoizer;
1892
+ memo?.attach(inst);
1893
+ inst._zod.parse = (payload, ctx) => {
1894
+ const input = payload.value;
1895
+ if (!(input instanceof Map)) {
1896
+ payload.issues.push({
1897
+ expected: "map",
1898
+ code: "invalid_type",
1899
+ input,
1900
+ inst,
1901
+ });
1902
+ return payload;
1903
+ }
1904
+ const proms = [];
1905
+ payload.value = memo ? memo.alloc(inst, payload, new Map(), ctx) : new Map();
1906
+ const abortEarly = ctx?.abortEarly;
1907
+ let seen = payload.issues.length;
1908
+ for (const [key, value] of input) {
1909
+ if (abortEarly && payload.issues.length !== seen) {
1910
+ if (util.aborted(payload, seen))
1911
+ break;
1912
+ seen = payload.issues.length;
1913
+ }
1914
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1915
+ const valueResult = def.valueType._zod.run({ value: value, issues: [] }, ctx);
1916
+ if (keyResult instanceof Promise || valueResult instanceof Promise) {
1917
+ proms.push(Promise.all([keyResult, valueResult]).then(([keyResult, valueResult]) => {
1918
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1919
+ }));
1920
+ }
1921
+ else {
1922
+ handleMapResult(keyResult, valueResult, payload, key, input, inst, ctx);
1923
+ }
1924
+ }
1925
+ if (proms.length)
1926
+ return Promise.all(proms).then(() => payload);
1927
+ return payload;
1928
+ };
1929
+ capSize(inst, mapSize);
1930
+ });
1931
+ function handleMapResult(keyResult, valueResult, final, key, input, inst, ctx) {
1932
+ if (keyResult.issues.length) {
1933
+ if (util.propertyKeyTypes.has(typeof key)) {
1934
+ final.issues.push(...util.prefixIssues(key, keyResult.issues));
1935
+ }
1936
+ else {
1937
+ final.issues.push({
1938
+ code: "invalid_key",
1939
+ origin: "map",
1940
+ input,
1941
+ inst,
1942
+ issues: keyResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1943
+ });
1944
+ }
1945
+ }
1946
+ if (valueResult.issues.length) {
1947
+ if (util.propertyKeyTypes.has(typeof key)) {
1948
+ final.issues.push(...util.prefixIssues(key, valueResult.issues));
1949
+ }
1950
+ else {
1951
+ final.issues.push({
1952
+ origin: "map",
1953
+ code: "invalid_element",
1954
+ input,
1955
+ inst,
1956
+ key: key,
1957
+ issues: valueResult.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
1958
+ });
1959
+ }
1960
+ }
1961
+ final.value.set(keyResult.value, valueResult.value);
1962
+ }
1963
+ export const $ZodSet = /*@__PURE__*/ core.$constructor("$ZodSet", (inst, def) => {
1964
+ $ZodType.init(inst, def);
1965
+ const memo = core.globalConfig.memoizer;
1966
+ memo?.attach(inst);
1967
+ inst._zod.parse = (payload, ctx) => {
1968
+ const input = payload.value;
1969
+ if (!(input instanceof Set)) {
1970
+ payload.issues.push({
1971
+ input,
1972
+ inst,
1973
+ expected: "set",
1974
+ code: "invalid_type",
1975
+ });
1976
+ return payload;
1977
+ }
1978
+ const proms = [];
1979
+ payload.value = memo ? memo.alloc(inst, payload, new Set(), ctx) : new Set();
1980
+ const abortEarly = ctx?.abortEarly;
1981
+ let seen = payload.issues.length;
1982
+ for (const item of input) {
1983
+ if (abortEarly && payload.issues.length !== seen) {
1984
+ if (util.aborted(payload, seen))
1985
+ break;
1986
+ seen = payload.issues.length;
1987
+ }
1988
+ const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
1989
+ if (result instanceof Promise) {
1990
+ proms.push(result.then((result) => handleSetResult(result, payload)));
1991
+ }
1992
+ else
1993
+ handleSetResult(result, payload);
1994
+ }
1995
+ if (proms.length)
1996
+ return Promise.all(proms).then(() => payload);
1997
+ return payload;
1998
+ };
1999
+ capSize(inst, setSize);
2000
+ });
2001
+ function handleSetResult(result, final) {
2002
+ if (result.issues.length) {
2003
+ final.issues.push(...result.issues);
2004
+ }
2005
+ final.value.add(result.value);
2006
+ }
2007
+ export const $ZodEnum = /*@__PURE__*/ core.$constructor("$ZodEnum", (inst, def) => {
2008
+ $ZodType.init(inst, def);
2009
+ const values = util.getEnumValues(def.entries);
2010
+ const valuesSet = new Set(values);
2011
+ inst._zod.values = valuesSet;
2012
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2013
+ const patternValues = util.getEnumValues(zod.def.entries).filter((k) => util.propertyKeyTypes.has(typeof k));
2014
+ // unmatchable fallback, RE2-safe: an empty alternation would compile to /^()$/, which matches ""
2015
+ return new RegExp(patternValues.length ? `^(${patternValues.map((o) => util.escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
2016
+ });
2017
+ inst._zod.parse = (payload, _ctx) => {
2018
+ const input = payload.value;
2019
+ if (valuesSet.has(input)) {
2020
+ return payload;
2021
+ }
2022
+ payload.issues.push({
2023
+ code: "invalid_value",
2024
+ values,
2025
+ input,
2026
+ inst,
2027
+ });
2028
+ return payload;
2029
+ };
2030
+ });
2031
+ export const $ZodLiteral = /*@__PURE__*/ core.$constructor("$ZodLiteral", (inst, def) => {
2032
+ $ZodType.init(inst, def);
2033
+ const values = new Set(def.values);
2034
+ inst._zod.values = values;
2035
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2036
+ const vals = zod.def.values;
2037
+ // unmatchable fallback, RE2-safe: an empty alternation would compile to /^()$/, which matches ""
2038
+ return new RegExp(vals.length
2039
+ ? `^(${vals
2040
+ .map((o) => typeof o === "string" ? util.escapeRegex(o) : o ? util.escapeRegex(o.toString()) : String(o))
2041
+ .join("|")})$`
2042
+ : "^[^\\s\\S]$");
2043
+ });
2044
+ inst._zod.parse = (payload, _ctx) => {
2045
+ const input = payload.value;
2046
+ if (values.has(input)) {
2047
+ return payload;
2048
+ }
2049
+ payload.issues.push({
2050
+ code: "invalid_value",
2051
+ values: def.values,
2052
+ input,
2053
+ inst,
2054
+ });
2055
+ return payload;
2056
+ };
2057
+ });
2058
+ export const $ZodFile = /*@__PURE__*/ core.$constructor("$ZodFile", (inst, def) => {
2059
+ $ZodType.init(inst, def);
2060
+ inst._zod.parse = (payload, _ctx) => {
2061
+ const input = payload.value;
2062
+ // @ts-ignore
2063
+ if (input instanceof File)
2064
+ return payload;
2065
+ payload.issues.push({
2066
+ expected: "file",
2067
+ code: "invalid_type",
2068
+ input,
2069
+ inst,
2070
+ });
2071
+ return payload;
2072
+ };
2073
+ });
2074
+ export const $ZodTransform = /*@__PURE__*/ core.$constructor("$ZodTransform", (inst, def) => {
2075
+ $ZodType.init(inst, def);
2076
+ inst._zod.optin = "optional";
2077
+ core.globalConfig.memoizer?.guard(inst);
2078
+ inst._zod.parse = (payload, ctx) => {
2079
+ if (ctx.direction === "backward") {
2080
+ throw new core.$ZodEncodeError(inst.constructor.name);
2081
+ }
2082
+ const _out = def.transform(payload.value, payload);
2083
+ if (ctx.async) {
2084
+ const output = _out instanceof Promise ? _out : Promise.resolve(_out);
2085
+ return output.then((output) => {
2086
+ payload.value = output;
2087
+ return payload;
2088
+ });
2089
+ }
2090
+ if (_out instanceof Promise) {
2091
+ throw new core.$ZodAsyncError();
2092
+ }
2093
+ payload.value = _out;
2094
+ return payload;
2095
+ };
2096
+ });
2097
+ function handleOptionalResult(payload, result) {
2098
+ // A substituting schema that still failed has no usable answer; yield undefined. Its issues are simply dropped: it ran on a payload of its own, so there is no shared array to truncate and nothing of the caller's to lose with it.
2099
+ payload.value = result.issues.length ? undefined : result.value;
2100
+ return payload;
2101
+ }
2102
+ export const $ZodOptional = /*@__PURE__*/ core.$constructor("$ZodOptional", (inst, def) => {
2103
+ $ZodType.init(inst, def);
2104
+ // .optional() propagates absence rather than substituting for it, so a defaulted inner keeps its rung.
2105
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
2106
+ inst._zod.optout = "optional";
2107
+ util.defineLazyInternal(inst, "values", (zod) => {
2108
+ const values = zod.def.innerType._zod.values;
2109
+ return values ? new Set([...values, undefined]) : undefined;
2110
+ });
2111
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2112
+ const pattern = zod.def.innerType._zod.pattern;
2113
+ return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)})?$`) : undefined;
2114
+ });
2115
+ inst._zod.parse = (payload, ctx) => {
2116
+ if (payload.value === undefined) {
2117
+ // Only the top rung substitutes a value for absence; everything else leaves it intact, which is what .optional() means.
2118
+ if (def.innerType._zod.optin !== "defaulted")
2119
+ return payload;
2120
+ // Its own payload, for the same reason $ZodCatch gets one: a pipe forwards an unrecognized key through the caller's issues array, and this must not read that as the substituting schema failing and drop it.
2121
+ const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
2122
+ if (result instanceof Promise)
2123
+ return result.then((result) => handleOptionalResult(payload, result));
2124
+ return handleOptionalResult(payload, result);
2125
+ }
2126
+ return def.innerType._zod.run(payload, ctx);
2127
+ };
2128
+ });
2129
+ export const $ZodExactOptional = /*@__PURE__*/ core.$constructor("$ZodExactOptional", (inst, def) => {
2130
+ // Call parent init - inherits optin/optout = "optional"
2131
+ $ZodOptional.init(inst, def);
2132
+ // Override values/pattern to NOT add undefined
2133
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2134
+ util.defineLazyInternal(inst, "pattern", (zod) => zod.def.innerType._zod.pattern);
2135
+ // Override parse to just delegate (no undefined handling)
2136
+ inst._zod.parse = (payload, ctx) => {
2137
+ return def.innerType._zod.run(payload, ctx);
2138
+ };
2139
+ });
2140
+ export const $ZodNullable = /*@__PURE__*/ core.$constructor("$ZodNullable", (inst, def) => {
2141
+ $ZodType.init(inst, def);
2142
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin);
2143
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout);
2144
+ util.defineLazyInternal(inst, "pattern", (zod) => {
2145
+ const pattern = zod.def.innerType._zod.pattern;
2146
+ return pattern ? new RegExp(`^(${util.cleanRegex(pattern.source)}|null)$`) : undefined;
2147
+ });
2148
+ util.defineLazyInternal(inst, "values", (zod) => {
2149
+ return zod.def.innerType._zod.values ? new Set([...zod.def.innerType._zod.values, null]) : undefined;
2150
+ });
2151
+ inst._zod.parse = (payload, ctx) => {
2152
+ // Forward direction (decode): allow null to pass through
2153
+ if (payload.value === null)
2154
+ return payload;
2155
+ return def.innerType._zod.run(payload, ctx);
2156
+ };
2157
+ });
2158
+ export const $ZodDefault = /*@__PURE__*/ core.$constructor("$ZodDefault", (inst, def) => {
2159
+ $ZodType.init(inst, def);
2160
+ // inst._zod.qin = "true";
2161
+ inst._zod.optin = "defaulted";
2162
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2163
+ inst._zod.parse = (payload, ctx) => {
2164
+ if (ctx.direction === "backward") {
2165
+ return def.innerType._zod.run(payload, ctx);
2166
+ }
2167
+ // Forward direction (decode): apply defaults for undefined input
2168
+ if (payload.value === undefined) {
2169
+ payload.value = def.defaultValue;
2170
+ /**
2171
+ * $ZodDefault returns the default value immediately in forward direction.
2172
+ * It doesn't pass the default value into the validator ("prefault"). There's no reason to pass the default value through validation. The validity of the default is enforced by TypeScript statically. Otherwise, it's the responsibility of the user to ensure the default is valid. In the case of pipes with divergent in/out types, you can specify the default on the `in` schema of your ZodPipe to set a "prefault" for the pipe. */
2173
+ return payload;
2174
+ }
2175
+ // Forward direction: continue with default handling
2176
+ const result = def.innerType._zod.run(payload, ctx);
2177
+ if (result instanceof Promise) {
2178
+ return result.then((result) => handleDefaultResult(result, def));
2179
+ }
2180
+ return handleDefaultResult(result, def);
2181
+ };
2182
+ });
2183
+ function handleDefaultResult(payload, def) {
2184
+ if (payload.value === undefined) {
2185
+ payload.value = def.defaultValue;
2186
+ }
2187
+ return payload;
2188
+ }
2189
+ export const $ZodPrefault = /*@__PURE__*/ core.$constructor("$ZodPrefault", (inst, def) => {
2190
+ $ZodType.init(inst, def);
2191
+ inst._zod.optin = "defaulted";
2192
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2193
+ inst._zod.parse = (payload, ctx) => {
2194
+ if (ctx.direction === "backward") {
2195
+ return def.innerType._zod.run(payload, ctx);
2196
+ }
2197
+ // Forward direction (decode): apply prefault for undefined input
2198
+ if (payload.value === undefined) {
2199
+ payload.value = def.defaultValue;
2200
+ }
2201
+ return def.innerType._zod.run(payload, ctx);
2202
+ };
2203
+ });
2204
+ export const $ZodNonOptional = /*@__PURE__*/ core.$constructor("$ZodNonOptional", (inst, def) => {
2205
+ $ZodType.init(inst, def);
2206
+ util.defineLazyInternal(inst, "values", (zod) => {
2207
+ const v = zod.def.innerType._zod.values;
2208
+ return v ? new Set([...v].filter((x) => x !== undefined)) : undefined;
2209
+ });
2210
+ inst._zod.parse = (payload, ctx) => {
2211
+ const result = def.innerType._zod.run(payload, ctx);
2212
+ if (result instanceof Promise) {
2213
+ return result.then((result) => handleNonOptionalResult(result, inst));
2214
+ }
2215
+ return handleNonOptionalResult(result, inst);
2216
+ };
2217
+ });
2218
+ function handleNonOptionalResult(payload, inst) {
2219
+ if (!payload.issues.length && payload.value === undefined) {
2220
+ payload.issues.push({
2221
+ code: "invalid_type",
2222
+ expected: "nonoptional",
2223
+ input: payload.value,
2224
+ inst,
2225
+ });
2226
+ }
2227
+ return payload;
2228
+ }
2229
+ export const $ZodSuccess = /*@__PURE__*/ core.$constructor("$ZodSuccess", (inst, def) => {
2230
+ $ZodType.init(inst, def);
2231
+ inst._zod.parse = (payload, ctx) => {
2232
+ if (ctx.direction === "backward") {
2233
+ throw new core.$ZodEncodeError("ZodSuccess");
2234
+ }
2235
+ const result = def.innerType._zod.run(payload, ctx);
2236
+ if (result instanceof Promise) {
2237
+ return result.then((result) => {
2238
+ payload.value = result.issues.length === 0;
2239
+ return payload;
2240
+ });
2241
+ }
2242
+ payload.value = result.issues.length === 0;
2243
+ return payload;
2244
+ };
2245
+ });
2246
+ function handleCatchResult(payload, result, def, ctx) {
2247
+ if (!result.issues.length) {
2248
+ payload.value = result.value;
2249
+ // The value carries up, so the flag describing it has to carry with it: a back-edge into a node still being parsed must not be frozen by an enclosing readonly, and its checks belong to the node itself. Guarded so the ordinary case adds no own property.
2250
+ if (result.memo)
2251
+ payload.memo = true;
2252
+ return payload;
2253
+ }
2254
+ // Spread the inner's own payload, not ours: `value` has to stay the input the catch was handed, and the inner ran on a payload of its own so its issues are already private to this call.
2255
+ payload.value = def.catchValue({
2256
+ ...result,
2257
+ value: payload.value,
2258
+ error: {
2259
+ issues: result.issues.map((iss) => util.finalizeIssue(iss, ctx, core.config())),
2260
+ },
2261
+ input: payload.value,
2262
+ });
2263
+ return payload;
2264
+ }
2265
+ export const $ZodCatch = /*@__PURE__*/ core.$constructor("$ZodCatch", (inst, def) => {
2266
+ $ZodType.init(inst, def);
2267
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional");
2268
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.innerType._zod.optout);
2269
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2270
+ inst._zod.parse = (payload, ctx) => {
2271
+ if (ctx.direction === "backward") {
2272
+ return def.innerType._zod.run(payload, ctx);
2273
+ }
2274
+ // Forward direction (decode): apply catch logic
2275
+ const result = def.innerType._zod.run({ value: payload.value, issues: [] }, ctx);
2276
+ if (result instanceof Promise) {
2277
+ return result.then((result) => handleCatchResult(payload, result, def, ctx));
2278
+ }
2279
+ return handleCatchResult(payload, result, def, ctx);
2280
+ };
2281
+ });
2282
+ export const $ZodNaN = /*@__PURE__*/ core.$constructor("$ZodNaN", (inst, def) => {
2283
+ $ZodType.init(inst, def);
2284
+ inst._zod.parse = (payload, _ctx) => {
2285
+ if (typeof payload.value !== "number" || !Number.isNaN(payload.value)) {
2286
+ payload.issues.push({
2287
+ input: payload.value,
2288
+ inst,
2289
+ expected: "nan",
2290
+ code: "invalid_type",
2291
+ });
2292
+ return payload;
2293
+ }
2294
+ return payload;
2295
+ };
2296
+ });
2297
+ export const $ZodPipe = /*@__PURE__*/ core.$constructor("$ZodPipe", (inst, def) => {
2298
+ $ZodType.init(inst, def);
2299
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values);
2300
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin);
2301
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout);
2302
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues);
2303
+ inst._zod.parse = (payload, ctx) => {
2304
+ if (ctx.direction === "backward") {
2305
+ const right = def.out._zod.run(payload, ctx);
2306
+ if (right instanceof Promise) {
2307
+ return right.then((right) => handlePipeResult(right, def.in, ctx));
2308
+ }
2309
+ return handlePipeResult(right, def.in, ctx);
2310
+ }
2311
+ const left = def.in._zod.run(payload, ctx);
2312
+ if (left instanceof Promise) {
2313
+ return left.then((left) => handlePipeResult(left, def.out, ctx));
2314
+ }
2315
+ return handlePipeResult(left, def.out, ctx);
2316
+ };
2317
+ });
2318
+ function handlePipeResult(left, next, ctx) {
2319
+ // Any issue stops the pipe, so a failing refinement never feeds its transform. An unrecognized key is the exception: it describes the input's extra properties, not the value being piped, and an enclosing intersection may yet reconcile it.
2320
+ if (left.issues.some((iss) => iss.code !== "unrecognized_keys")) {
2321
+ // prevent further checks
2322
+ left.aborted = true;
2323
+ return left;
2324
+ }
2325
+ return next._zod.run({ value: left.value, issues: left.issues }, ctx);
2326
+ }
2327
+ export const $ZodCodec = /*@__PURE__*/ core.$constructor("$ZodCodec", (inst, def) => {
2328
+ $ZodType.init(inst, def);
2329
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.in._zod.values);
2330
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.in._zod.optin);
2331
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.out._zod.optout);
2332
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.def.in._zod.propValues);
2333
+ inst._zod.parse = (payload, ctx) => {
2334
+ const direction = ctx.direction || "forward";
2335
+ if (direction === "forward") {
2336
+ const left = def.in._zod.run(payload, ctx);
2337
+ if (left instanceof Promise) {
2338
+ return left.then((left) => handleCodecAResult(left, def, ctx));
2339
+ }
2340
+ return handleCodecAResult(left, def, ctx);
2341
+ }
2342
+ else {
2343
+ const right = def.out._zod.run(payload, ctx);
2344
+ if (right instanceof Promise) {
2345
+ return right.then((right) => handleCodecAResult(right, def, ctx));
2346
+ }
2347
+ return handleCodecAResult(right, def, ctx);
2348
+ }
2349
+ };
2350
+ });
2351
+ function handleCodecAResult(result, def, ctx) {
2352
+ if (result.issues.length) {
2353
+ // prevent further checks
2354
+ result.aborted = true;
2355
+ return result;
2356
+ }
2357
+ const direction = ctx.direction || "forward";
2358
+ if (direction === "forward") {
2359
+ const transformed = def.transform(result.value, result);
2360
+ if (transformed instanceof Promise) {
2361
+ return transformed.then((value) => handleCodecTxResult(result, value, def.out, ctx));
2362
+ }
2363
+ return handleCodecTxResult(result, transformed, def.out, ctx);
2364
+ }
2365
+ else {
2366
+ const transformed = def.reverseTransform(result.value, result);
2367
+ if (transformed instanceof Promise) {
2368
+ return transformed.then((value) => handleCodecTxResult(result, value, def.in, ctx));
2369
+ }
2370
+ return handleCodecTxResult(result, transformed, def.in, ctx);
2371
+ }
2372
+ }
2373
+ function handleCodecTxResult(left, value, nextSchema, ctx) {
2374
+ // Check if transform added any issues
2375
+ if (left.issues.length) {
2376
+ left.aborted = true;
2377
+ return left;
2378
+ }
2379
+ return nextSchema._zod.run({ value, issues: left.issues }, ctx);
2380
+ }
2381
+ export const $ZodPreprocess = /*@__PURE__*/ core.$constructor("$ZodPreprocess", (inst, def) => {
2382
+ $ZodPipe.init(inst, def);
2383
+ });
2384
+ export const $ZodReadonly = /*@__PURE__*/ core.$constructor("$ZodReadonly", (inst, def) => {
2385
+ $ZodType.init(inst, def);
2386
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.def.innerType._zod.propValues);
2387
+ util.defineLazyInternal(inst, "values", (zod) => zod.def.innerType._zod.values);
2388
+ util.defineLazyInternal(inst, "optin", (zod) => zod.def.innerType?._zod?.optin);
2389
+ util.defineLazyInternal(inst, "optout", (zod) => zod.def.innerType?._zod?.optout);
2390
+ inst._zod.parse = (payload, ctx) => {
2391
+ if (ctx.direction === "backward") {
2392
+ return def.innerType._zod.run(payload, ctx);
2393
+ }
2394
+ const result = def.innerType._zod.run(payload, ctx);
2395
+ if (result instanceof Promise) {
2396
+ return result.then(handleReadonlyResult);
2397
+ }
2398
+ return handleReadonlyResult(result);
2399
+ };
2400
+ });
2401
+ function handleReadonlyResult(payload) {
2402
+ // A repeat visit hands back a node that is still being built; freezing it here would make the rest of its keys fail to assign.
2403
+ if (!payload.memo)
2404
+ payload.value = Object.freeze(payload.value);
2405
+ return payload;
2406
+ }
2407
+ // a leaf's pattern source with its own checks folded in: the last pattern-carrying check wins, else length bounds narrow the catch-all, else an integer format narrows the number form. the fold lives here instead of on `_zod.pattern` so a bundle without template literals never pays for it
2408
+ function leafPattern(schema) {
2409
+ const def = schema._zod.def;
2410
+ let pattern = def.pattern;
2411
+ let isInt = !!def.format?.includes("int");
2412
+ let minimum;
2413
+ let maximum;
2414
+ for (const ch of def.checks ?? []) {
2415
+ const d = ch._zod.def;
2416
+ if (d.pattern)
2417
+ pattern = d.pattern;
2418
+ isInt || (isInt = !!d.format?.includes("int"));
2419
+ const lo = d.minimum ?? d.length;
2420
+ const hi = d.maximum ?? d.length;
2421
+ if (lo !== undefined && (minimum === undefined || lo > minimum))
2422
+ minimum = lo;
2423
+ if (hi !== undefined && (maximum === undefined || hi < maximum))
2424
+ maximum = hi;
2425
+ }
2426
+ if (pattern)
2427
+ return pattern.source;
2428
+ // an empty range matches nothing at runtime, and `{8,5}` is not a legal quantifier
2429
+ if (minimum !== undefined && maximum !== undefined && minimum > maximum)
2430
+ return "(?!)";
2431
+ if (minimum !== undefined || maximum !== undefined)
2432
+ return regexes.string({ minimum, maximum }).source;
2433
+ const own = schema._zod.pattern;
2434
+ return (isInt && own === regexes.number ? regexes.integer : own)?.source;
2435
+ }
2436
+ // a part's pattern source. a wrapper's pattern embeds its inner pattern's source verbatim, so the folded form is substituted in place without knowing the wrapper's own composition; a union's options are joined the way the union builds its own pattern
2437
+ function partPattern(schema) {
2438
+ const def = schema._zod.def;
2439
+ const own = schema._zod.pattern?.source;
2440
+ // lazy resolves its inner on the internals, not the def
2441
+ const inner = def.innerType ?? schema._zod.innerType;
2442
+ if (inner) {
2443
+ const before = inner._zod.pattern?.source;
2444
+ const after = partPattern(inner);
2445
+ if (own && before && after && after !== before) {
2446
+ return own.replace(util.cleanRegex(before), () => util.cleanRegex(after));
2447
+ }
2448
+ return own;
2449
+ }
2450
+ if (def.options) {
2451
+ const sources = def.options.map(partPattern);
2452
+ if (sources.every(Boolean))
2453
+ return `^(${sources.map((s) => util.cleanRegex(s)).join("|")})$`;
2454
+ }
2455
+ return leafPattern(schema);
2456
+ }
2457
+ export const $ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("$ZodTemplateLiteral", (inst, def) => {
2458
+ $ZodType.init(inst, def);
2459
+ const regexParts = [];
2460
+ for (const part of def.parts) {
2461
+ if (typeof part === "object" && part !== null) {
2462
+ // is Zod schema
2463
+ const source = partPattern(part);
2464
+ if (!source) {
2465
+ throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);
2466
+ }
2467
+ regexParts.push(util.cleanRegex(source));
2468
+ }
2469
+ else if (part === null || util.primitiveTypes.has(typeof part)) {
2470
+ regexParts.push(util.escapeRegex(`${part}`));
2471
+ }
2472
+ else {
2473
+ throw new Error(`Invalid template literal part: ${part}`);
2474
+ }
2475
+ }
2476
+ inst._zod.pattern = new RegExp(`^${regexParts.join("")}$`);
2477
+ inst._zod.parse = (payload, _ctx) => {
2478
+ if (typeof payload.value !== "string") {
2479
+ payload.issues.push({
2480
+ input: payload.value,
2481
+ inst,
2482
+ expected: "string",
2483
+ code: "invalid_type",
2484
+ });
2485
+ return payload;
2486
+ }
2487
+ inst._zod.pattern.lastIndex = 0;
2488
+ if (!inst._zod.pattern.test(payload.value)) {
2489
+ payload.issues.push({
2490
+ input: payload.value,
2491
+ inst,
2492
+ code: "invalid_format",
2493
+ format: def.format ?? "template_literal",
2494
+ pattern: inst._zod.pattern.source,
2495
+ });
2496
+ return payload;
2497
+ }
2498
+ return payload;
2499
+ };
2500
+ });
2501
+ export const $ZodFunction = /*@__PURE__*/ core.$constructor("$ZodFunction", (inst, def) => {
2502
+ $ZodType.init(inst, def);
2503
+ // Defined, not assigned: the classic prototype exposes `_def` as a getter with no setter.
2504
+ Object.defineProperty(inst, "_def", { value: def });
2505
+ inst._zod.def = def;
2506
+ inst.implement = (func) => {
2507
+ if (typeof func !== "function") {
2508
+ throw new Error("implement() must be called with a function");
2509
+ }
2510
+ // Defined inline so the closure stays anonymous: binding it to a `const` first names it, which costs 256 bytes per implemented function.
2511
+ return Object.defineProperty(function (...args) {
2512
+ const parsedArgs = inst._def.input ? parse(inst._def.input, args) : args;
2513
+ const result = Reflect.apply(func, this, parsedArgs);
2514
+ if (inst._def.output) {
2515
+ return parse(inst._def.output, result);
2516
+ }
2517
+ return result;
2518
+ }, "_zod", { value: inst._zod, enumerable: false });
2519
+ };
2520
+ inst.implementAsync = (func) => {
2521
+ if (typeof func !== "function") {
2522
+ throw new Error("implementAsync() must be called with a function");
2523
+ }
2524
+ return Object.defineProperty(async function (...args) {
2525
+ const parsedArgs = inst._def.input ? await parseAsync(inst._def.input, args) : args;
2526
+ const result = await Reflect.apply(func, this, parsedArgs);
2527
+ if (inst._def.output) {
2528
+ return await parseAsync(inst._def.output, result);
2529
+ }
2530
+ return result;
2531
+ }, "_zod", { value: inst._zod, enumerable: false });
2532
+ };
2533
+ inst._zod.parse = (payload, _ctx) => {
2534
+ if (typeof payload.value !== "function") {
2535
+ payload.issues.push({
2536
+ code: "invalid_type",
2537
+ expected: "function",
2538
+ input: payload.value,
2539
+ inst,
2540
+ });
2541
+ return payload;
2542
+ }
2543
+ // Check if output is a promise type to determine if we should use async implementation
2544
+ const hasPromiseOutput = inst._def.output && inst._def.output._zod.def.type === "promise";
2545
+ if (hasPromiseOutput) {
2546
+ payload.value = inst.implementAsync(payload.value);
2547
+ }
2548
+ else {
2549
+ payload.value = inst.implement(payload.value);
2550
+ }
2551
+ return payload;
2552
+ };
2553
+ inst.input = (...args) => {
2554
+ const F = inst.constructor;
2555
+ if (Array.isArray(args[0])) {
2556
+ return new F({
2557
+ type: "function",
2558
+ input: new $ZodTuple({
2559
+ type: "tuple",
2560
+ items: args[0],
2561
+ rest: args[1],
2562
+ }),
2563
+ output: inst._def.output,
2564
+ });
2565
+ }
2566
+ return new F({
2567
+ type: "function",
2568
+ input: args[0],
2569
+ output: inst._def.output,
2570
+ });
2571
+ };
2572
+ inst.output = (output) => {
2573
+ const F = inst.constructor;
2574
+ return new F({
2575
+ type: "function",
2576
+ input: inst._def.input,
2577
+ output,
2578
+ });
2579
+ };
2580
+ return inst;
2581
+ });
2582
+ export const $ZodPromise = /*@__PURE__*/ core.$constructor("$ZodPromise", (inst, def) => {
2583
+ $ZodType.init(inst, def);
2584
+ inst._zod.parse = (payload, ctx) => {
2585
+ return Promise.resolve(payload.value).then((inner) => def.innerType._zod.run({ value: inner, issues: [] }, ctx));
2586
+ };
2587
+ });
2588
+ export const $ZodLazy = /*@__PURE__*/ core.$constructor("$ZodLazy", (inst, def) => {
2589
+ $ZodType.init(inst, def);
2590
+ // Cache the resolved inner type on the shared `def` so all clones of this lazy (e.g. via `.describe()`/`.meta()`) share the same inner instance, preserving identity for cycle detection on recursive schemas.
2591
+ util.defineLazy(inst._zod, "innerType", () => {
2592
+ const d = def;
2593
+ if (!d._cachedInner)
2594
+ d._cachedInner = def.getter();
2595
+ return d._cachedInner;
2596
+ });
2597
+ util.defineLazyInternal(inst, "pattern", (zod) => zod.innerType?._zod?.pattern);
2598
+ util.defineLazyInternal(inst, "propValues", (zod) => zod.innerType?._zod?.propValues);
2599
+ util.defineLazyInternal(inst, "optin", (zod) => zod.innerType?._zod?.optin ?? undefined);
2600
+ util.defineLazyInternal(inst, "optout", (zod) => zod.innerType?._zod?.optout ?? undefined);
2601
+ inst._zod.parse = (payload, ctx) => {
2602
+ const inner = inst._zod.innerType;
2603
+ return inner._zod.run(payload, ctx);
2604
+ };
2605
+ });
2606
+ export const $ZodCustom = /*@__PURE__*/ core.$constructor("$ZodCustom", (inst, def) => {
2607
+ checks.$ZodCheck.init(inst, def);
2608
+ $ZodType.init(inst, def);
2609
+ inst._zod.parse = (payload, _) => {
2610
+ return payload;
2611
+ };
2612
+ inst._zod.check = (payload) => {
2613
+ const input = payload.value;
2614
+ const r = def.fn(input);
2615
+ if (r instanceof Promise) {
2616
+ return r.then((r) => handleRefineResult(r, payload, input, inst));
2617
+ }
2618
+ handleRefineResult(r, payload, input, inst);
2619
+ return;
2620
+ };
2621
+ });
2622
+ function handleRefineResult(result, payload, input, inst) {
2623
+ if (!result) {
2624
+ const _iss = {
2625
+ code: "custom",
2626
+ input,
2627
+ inst, // incorporates params.error into issue reporting
2628
+ path: [...(inst._zod.def.path ?? [])], // incorporates params.error into issue reporting
2629
+ continue: !inst._zod.def.abort,
2630
+ // params: inst._zod.def.params,
2631
+ };
2632
+ if (inst._zod.def.params)
2633
+ _iss.params = inst._zod.def.params;
2634
+ payload.issues.push(util.issue(_iss));
2635
+ }
2636
+ }