@openclaw/firecrawl-plugin 2026.8.1-beta.2 → 2026.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (854) hide show
  1. package/dist/api.js +1 -1
  2. package/dist/{firecrawl-client-Aw46OXVC.js → firecrawl-client-7vlACkO2.js} +75 -83
  3. package/dist/firecrawl-fetch-provider-dks9C772.js +85 -0
  4. package/dist/{firecrawl-free-search-provider-nqgr2mhw.js → firecrawl-free-search-provider-DF-3FKe3.js} +3 -7
  5. package/dist/index.js +4 -4
  6. package/dist/web-fetch-contract-api.js +2 -11
  7. package/dist/web-fetch-provider.js +1 -1
  8. package/dist/web-search-contract-api.js +2 -15
  9. package/dist/web-search-provider.js +1 -1
  10. package/node_modules/typebox/build/format/date.d.mts +1 -1
  11. package/node_modules/typebox/build/format/date.mjs +1 -1
  12. package/node_modules/typebox/build/format/date_time.d.mts +2 -2
  13. package/node_modules/typebox/build/format/date_time.mjs +3 -3
  14. package/node_modules/typebox/build/format/email.d.mts +1 -1
  15. package/node_modules/typebox/build/format/email.mjs +2 -2
  16. package/node_modules/typebox/build/format/hostname.mjs +2 -10
  17. package/node_modules/typebox/build/format/idn_email.d.mts +1 -1
  18. package/node_modules/typebox/build/format/idn_email.mjs +3 -3
  19. package/node_modules/typebox/build/format/idn_hostname.d.mts +1 -0
  20. package/node_modules/typebox/build/format/idn_hostname.mjs +3 -11
  21. package/node_modules/typebox/build/format/idna/format/bidi.d.mts +3 -0
  22. package/node_modules/typebox/build/format/idna/format/bidi.mjs +98 -0
  23. package/node_modules/typebox/build/format/idna/format/puny.d.mts +3 -0
  24. package/node_modules/typebox/build/format/idna/format/puny.mjs +144 -0
  25. package/node_modules/typebox/build/format/idna/hostname.d.mts +1 -0
  26. package/node_modules/typebox/build/format/idna/hostname.mjs +16 -0
  27. package/node_modules/typebox/build/format/idna/idn-hostname.d.mts +1 -0
  28. package/node_modules/typebox/build/format/idna/idn-hostname.mjs +23 -0
  29. package/node_modules/typebox/build/format/idna/index.d.mts +2 -0
  30. package/node_modules/typebox/build/format/idna/index.mjs +2 -0
  31. package/node_modules/typebox/build/format/idna/label/ascii.d.mts +1 -0
  32. package/node_modules/typebox/build/format/idna/label/ascii.mjs +9 -0
  33. package/node_modules/typebox/build/format/idna/label/puny.d.mts +1 -0
  34. package/node_modules/typebox/build/format/idna/label/puny.mjs +28 -0
  35. package/node_modules/typebox/build/format/idna/label/unicode.d.mts +1 -0
  36. package/node_modules/typebox/build/format/idna/label/unicode.mjs +106 -0
  37. package/node_modules/typebox/build/format/idna/pattern/pattern.d.mts +30 -0
  38. package/node_modules/typebox/build/format/idna/pattern/pattern.mjs +70 -0
  39. package/node_modules/typebox/build/format/ipv4.d.mts +0 -1
  40. package/node_modules/typebox/build/format/ipv4.mjs +2 -32
  41. package/node_modules/typebox/build/format/ipv6.mjs +2 -61
  42. package/node_modules/typebox/build/format/iri.d.mts +2 -2
  43. package/node_modules/typebox/build/format/iri.mjs +26 -8
  44. package/node_modules/typebox/build/format/iri_reference.d.mts +2 -2
  45. package/node_modules/typebox/build/format/iri_reference.mjs +9 -55
  46. package/node_modules/typebox/build/format/regex.d.mts +1 -2
  47. package/node_modules/typebox/build/format/regex.mjs +2 -6
  48. package/node_modules/typebox/build/format/time.d.mts +2 -2
  49. package/node_modules/typebox/build/format/time.mjs +19 -14
  50. package/node_modules/typebox/build/format/uri.d.mts +1 -1
  51. package/node_modules/typebox/build/format/uri.mjs +3 -130
  52. package/node_modules/typebox/build/format/uri_reference.d.mts +1 -1
  53. package/node_modules/typebox/build/format/uri_reference.mjs +2 -3
  54. package/node_modules/typebox/build/format/uri_template.d.mts +2 -3
  55. package/node_modules/typebox/build/format/uri_template.mjs +4 -5
  56. package/node_modules/typebox/build/format/url.d.mts +3 -3
  57. package/node_modules/typebox/build/format/url.mjs +4 -5
  58. package/node_modules/typebox/build/guard/emit.d.mts +3 -1
  59. package/node_modules/typebox/build/guard/emit.mjs +12 -5
  60. package/node_modules/typebox/build/guard/guard.d.mts +8 -2
  61. package/node_modules/typebox/build/guard/guard.mjs +25 -4
  62. package/node_modules/typebox/build/guard/string.d.mts +2 -2
  63. package/node_modules/typebox/build/guard/string.mjs +7 -7
  64. package/node_modules/typebox/build/schema/engine/_context.mjs +3 -3
  65. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -2
  66. package/node_modules/typebox/build/schema/engine/_regexp.d.mts +2 -0
  67. package/node_modules/typebox/build/schema/engine/_regexp.mjs +4 -0
  68. package/node_modules/typebox/build/schema/engine/_stack.mjs +12 -13
  69. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +17 -7
  70. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +4 -3
  71. package/node_modules/typebox/build/schema/engine/contains.mjs +18 -6
  72. package/node_modules/typebox/build/schema/engine/enum.mjs +1 -1
  73. package/node_modules/typebox/build/schema/engine/items.mjs +26 -6
  74. package/node_modules/typebox/build/schema/engine/maxContains.mjs +3 -3
  75. package/node_modules/typebox/build/schema/engine/minContains.mjs +14 -4
  76. package/node_modules/typebox/build/schema/engine/not.mjs +4 -2
  77. package/node_modules/typebox/build/schema/engine/oneOf.mjs +7 -6
  78. package/node_modules/typebox/build/schema/engine/pattern.mjs +3 -2
  79. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +4 -3
  80. package/node_modules/typebox/build/schema/engine/ref.mjs +1 -7
  81. package/node_modules/typebox/build/schema/engine/schema.mjs +13 -4
  82. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  83. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +4 -1
  84. package/node_modules/typebox/build/schema/resolve/resolve.mjs +202 -1
  85. package/node_modules/typebox/build/schema/static/propertyNames.d.mts +5 -0
  86. package/node_modules/typebox/build/schema/static/propertyNames.mjs +3 -0
  87. package/node_modules/typebox/build/schema/static/schema.d.mts +3 -0
  88. package/node_modules/typebox/build/schema/types/index.d.mts +0 -2
  89. package/node_modules/typebox/build/schema/types/index.mjs +0 -2
  90. package/node_modules/typebox/build/system/memory/clone.mjs +14 -11
  91. package/node_modules/typebox/build/system/memory/discard.mjs +6 -5
  92. package/node_modules/typebox/build/system/settings/settings.d.mts +9 -0
  93. package/node_modules/typebox/build/system/settings/settings.mjs +2 -0
  94. package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +6 -1
  95. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +16 -3
  96. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +34 -4
  97. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +5 -5
  98. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +20 -26
  99. package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +6 -10
  100. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +9 -13
  101. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +7 -4
  102. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +12 -19
  103. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +4 -20
  104. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +8 -20
  105. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +4 -4
  106. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +11 -8
  107. package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +1 -1
  108. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +3 -4
  109. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +17 -2
  110. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +26 -6
  111. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +3 -4
  112. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +1 -1
  113. package/node_modules/typebox/build/type/engine/extract/operation.mjs +3 -4
  114. package/node_modules/typebox/build/type/engine/priority/priority.d.mts +2 -2
  115. package/node_modules/typebox/build/type/engine/priority/priority.mjs +3 -4
  116. package/node_modules/typebox/build/type/script/mapping.d.mts +32 -29
  117. package/node_modules/typebox/build/type/script/mapping.mjs +18 -25
  118. package/node_modules/typebox/build/type/script/parser.d.mts +19 -25
  119. package/node_modules/typebox/build/type/script/parser.mjs +27 -23
  120. package/node_modules/typebox/build/value/errors/errors.d.mts +2 -2
  121. package/node_modules/typebox/build/value/errors/errors.mjs +1 -1
  122. package/node_modules/typebox/package.json +27 -27
  123. package/node_modules/typebox/readme.md +79 -82
  124. package/node_modules/zod/LICENSE +21 -0
  125. package/node_modules/zod/README.md +191 -0
  126. package/node_modules/zod/index.cjs +33 -0
  127. package/node_modules/zod/index.d.cts +4 -0
  128. package/node_modules/zod/index.d.ts +4 -0
  129. package/node_modules/zod/index.js +4 -0
  130. package/node_modules/zod/locales/index.cjs +17 -0
  131. package/node_modules/zod/locales/index.d.cts +1 -0
  132. package/node_modules/zod/locales/index.d.ts +1 -0
  133. package/node_modules/zod/locales/index.js +1 -0
  134. package/node_modules/zod/locales/package.json +7 -0
  135. package/node_modules/zod/mini/index.cjs +32 -0
  136. package/node_modules/zod/mini/index.d.cts +3 -0
  137. package/node_modules/zod/mini/index.d.ts +3 -0
  138. package/node_modules/zod/mini/index.js +3 -0
  139. package/node_modules/zod/mini/package.json +7 -0
  140. package/node_modules/zod/package.json +135 -0
  141. package/node_modules/zod/src/index.ts +4 -0
  142. package/node_modules/zod/src/locales/index.ts +1 -0
  143. package/node_modules/zod/src/mini/index.ts +3 -0
  144. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  145. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  146. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  147. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  148. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  149. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  150. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  151. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  152. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  153. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  154. package/node_modules/zod/src/v3/errors.ts +13 -0
  155. package/node_modules/zod/src/v3/external.ts +6 -0
  156. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  157. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  158. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  159. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  160. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  161. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  162. package/node_modules/zod/src/v3/index.ts +4 -0
  163. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  164. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  165. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  166. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  167. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  168. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  169. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  170. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  171. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  172. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  173. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  174. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  175. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  176. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  177. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  178. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  179. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  180. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  181. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  182. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  183. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  184. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  185. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  186. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  187. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  188. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  189. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  190. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  191. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  192. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  193. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  194. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  195. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  196. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  197. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  198. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  199. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  200. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  201. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  202. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  203. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  204. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  205. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  206. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  207. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  208. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  209. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  210. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  211. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  212. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  213. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  214. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  215. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  216. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  217. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  218. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  219. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  220. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  221. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  222. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  223. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  224. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  225. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  226. package/node_modules/zod/src/v3/types.ts +5138 -0
  227. package/node_modules/zod/src/v4/classic/checks.ts +32 -0
  228. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  229. package/node_modules/zod/src/v4/classic/compat.ts +70 -0
  230. package/node_modules/zod/src/v4/classic/errors.ts +82 -0
  231. package/node_modules/zod/src/v4/classic/external.ts +52 -0
  232. package/node_modules/zod/src/v4/classic/from-json-schema.ts +659 -0
  233. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  234. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  235. package/node_modules/zod/src/v4/classic/parse.ts +82 -0
  236. package/node_modules/zod/src/v4/classic/schemas.ts +2672 -0
  237. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  238. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
  239. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  240. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +216 -0
  241. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  242. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  243. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  244. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  245. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  246. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +326 -0
  247. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  248. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
  249. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +703 -0
  250. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  251. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  252. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  253. package/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
  254. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
  255. package/node_modules/zod/src/v4/classic/tests/default.test.ts +409 -0
  256. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  257. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  258. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +197 -0
  259. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +694 -0
  260. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  261. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +807 -0
  262. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  263. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  264. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  265. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  266. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +895 -0
  267. package/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
  268. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  269. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +39 -0
  270. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
  271. package/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
  272. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
  273. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
  274. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +46 -0
  275. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  276. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  277. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
  278. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  279. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  280. package/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
  281. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  282. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  283. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  284. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  285. package/node_modules/zod/src/v4/classic/tests/number.test.ts +325 -0
  286. package/node_modules/zod/src/v4/classic/tests/object.test.ts +717 -0
  287. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +333 -0
  288. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +450 -0
  289. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  290. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  291. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
  292. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +26 -0
  293. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  294. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  295. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  296. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  297. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  298. package/node_modules/zod/src/v4/classic/tests/record.test.ts +717 -0
  299. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +631 -0
  300. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +633 -0
  301. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  302. package/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
  303. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
  304. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  305. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1224 -0
  306. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
  307. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
  308. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  309. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +3125 -0
  310. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  311. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +496 -0
  312. package/node_modules/zod/src/v4/classic/tests/union.test.ts +273 -0
  313. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  314. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  315. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  316. package/node_modules/zod/src/v4/core/api.ts +1823 -0
  317. package/node_modules/zod/src/v4/core/checks.ts +1293 -0
  318. package/node_modules/zod/src/v4/core/config.ts +15 -0
  319. package/node_modules/zod/src/v4/core/core.ts +153 -0
  320. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  321. package/node_modules/zod/src/v4/core/errors.ts +455 -0
  322. package/node_modules/zod/src/v4/core/index.ts +16 -0
  323. package/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
  324. package/node_modules/zod/src/v4/core/json-schema-processors.ts +666 -0
  325. package/node_modules/zod/src/v4/core/json-schema.ts +147 -0
  326. package/node_modules/zod/src/v4/core/parse.ts +195 -0
  327. package/node_modules/zod/src/v4/core/regexes.ts +190 -0
  328. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  329. package/node_modules/zod/src/v4/core/schemas.ts +4730 -0
  330. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  331. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  332. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  333. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  334. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +215 -0
  335. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  336. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
  337. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  338. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  339. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  340. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  341. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  342. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  343. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  344. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  345. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  346. package/node_modules/zod/src/v4/core/to-json-schema.ts +622 -0
  347. package/node_modules/zod/src/v4/core/util.ts +983 -0
  348. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  349. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  350. package/node_modules/zod/src/v4/index.ts +4 -0
  351. package/node_modules/zod/src/v4/locales/ar.ts +115 -0
  352. package/node_modules/zod/src/v4/locales/az.ts +111 -0
  353. package/node_modules/zod/src/v4/locales/be.ts +176 -0
  354. package/node_modules/zod/src/v4/locales/bg.ts +128 -0
  355. package/node_modules/zod/src/v4/locales/ca.ts +116 -0
  356. package/node_modules/zod/src/v4/locales/cs.ts +118 -0
  357. package/node_modules/zod/src/v4/locales/da.ts +123 -0
  358. package/node_modules/zod/src/v4/locales/de.ts +116 -0
  359. package/node_modules/zod/src/v4/locales/el.ts +121 -0
  360. package/node_modules/zod/src/v4/locales/en.ts +123 -0
  361. package/node_modules/zod/src/v4/locales/eo.ts +118 -0
  362. package/node_modules/zod/src/v4/locales/es.ts +141 -0
  363. package/node_modules/zod/src/v4/locales/fa.ts +126 -0
  364. package/node_modules/zod/src/v4/locales/fi.ts +121 -0
  365. package/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
  366. package/node_modules/zod/src/v4/locales/fr.ts +132 -0
  367. package/node_modules/zod/src/v4/locales/he.ts +246 -0
  368. package/node_modules/zod/src/v4/locales/hr.ts +131 -0
  369. package/node_modules/zod/src/v4/locales/hu.ts +117 -0
  370. package/node_modules/zod/src/v4/locales/hy.ts +164 -0
  371. package/node_modules/zod/src/v4/locales/id.ts +115 -0
  372. package/node_modules/zod/src/v4/locales/index.ts +52 -0
  373. package/node_modules/zod/src/v4/locales/is.ts +119 -0
  374. package/node_modules/zod/src/v4/locales/it.ts +116 -0
  375. package/node_modules/zod/src/v4/locales/ja.ts +114 -0
  376. package/node_modules/zod/src/v4/locales/ka.ts +123 -0
  377. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  378. package/node_modules/zod/src/v4/locales/km.ts +119 -0
  379. package/node_modules/zod/src/v4/locales/ko.ts +121 -0
  380. package/node_modules/zod/src/v4/locales/lt.ts +239 -0
  381. package/node_modules/zod/src/v4/locales/mk.ts +118 -0
  382. package/node_modules/zod/src/v4/locales/ms.ts +115 -0
  383. package/node_modules/zod/src/v4/locales/nl.ts +121 -0
  384. package/node_modules/zod/src/v4/locales/no.ts +116 -0
  385. package/node_modules/zod/src/v4/locales/ota.ts +117 -0
  386. package/node_modules/zod/src/v4/locales/pl.ts +118 -0
  387. package/node_modules/zod/src/v4/locales/ps.ts +126 -0
  388. package/node_modules/zod/src/v4/locales/pt.ts +116 -0
  389. package/node_modules/zod/src/v4/locales/ro.ts +129 -0
  390. package/node_modules/zod/src/v4/locales/ru.ts +176 -0
  391. package/node_modules/zod/src/v4/locales/sl.ts +118 -0
  392. package/node_modules/zod/src/v4/locales/sv.ts +119 -0
  393. package/node_modules/zod/src/v4/locales/ta.ts +118 -0
  394. package/node_modules/zod/src/v4/locales/th.ts +119 -0
  395. package/node_modules/zod/src/v4/locales/tr.ts +111 -0
  396. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  397. package/node_modules/zod/src/v4/locales/uk.ts +117 -0
  398. package/node_modules/zod/src/v4/locales/ur.ts +119 -0
  399. package/node_modules/zod/src/v4/locales/uz.ts +117 -0
  400. package/node_modules/zod/src/v4/locales/vi.ts +117 -0
  401. package/node_modules/zod/src/v4/locales/yo.ts +124 -0
  402. package/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
  403. package/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
  404. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  405. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  406. package/node_modules/zod/src/v4/mini/external.ts +41 -0
  407. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  408. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  409. package/node_modules/zod/src/v4/mini/parse.ts +14 -0
  410. package/node_modules/zod/src/v4/mini/schemas.ts +1947 -0
  411. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
  412. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  413. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  414. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  415. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +548 -0
  416. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  417. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  418. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
  419. package/node_modules/zod/src/v4/mini/tests/index.test.ts +993 -0
  420. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  421. package/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
  422. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  423. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +325 -0
  424. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  425. package/node_modules/zod/src/v4/mini/tests/string.test.ts +352 -0
  426. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  427. package/node_modules/zod/v3/ZodError.cjs +138 -0
  428. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  429. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  430. package/node_modules/zod/v3/ZodError.js +133 -0
  431. package/node_modules/zod/v3/errors.cjs +17 -0
  432. package/node_modules/zod/v3/errors.d.cts +5 -0
  433. package/node_modules/zod/v3/errors.d.ts +5 -0
  434. package/node_modules/zod/v3/errors.js +9 -0
  435. package/node_modules/zod/v3/external.cjs +22 -0
  436. package/node_modules/zod/v3/external.d.cts +6 -0
  437. package/node_modules/zod/v3/external.d.ts +6 -0
  438. package/node_modules/zod/v3/external.js +6 -0
  439. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  440. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  441. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  442. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  443. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  444. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  445. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  446. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  447. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  448. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  449. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  450. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  451. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  452. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  453. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  454. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  455. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  456. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  457. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  458. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  459. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  460. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  461. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  462. package/node_modules/zod/v3/helpers/util.js +133 -0
  463. package/node_modules/zod/v3/index.cjs +33 -0
  464. package/node_modules/zod/v3/index.d.cts +4 -0
  465. package/node_modules/zod/v3/index.d.ts +4 -0
  466. package/node_modules/zod/v3/index.js +4 -0
  467. package/node_modules/zod/v3/locales/en.cjs +112 -0
  468. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  469. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  470. package/node_modules/zod/v3/locales/en.js +109 -0
  471. package/node_modules/zod/v3/package.json +7 -0
  472. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  473. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  474. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  475. package/node_modules/zod/v3/standard-schema.js +1 -0
  476. package/node_modules/zod/v3/types.cjs +3777 -0
  477. package/node_modules/zod/v3/types.d.cts +1034 -0
  478. package/node_modules/zod/v3/types.d.ts +1034 -0
  479. package/node_modules/zod/v3/types.js +3695 -0
  480. package/node_modules/zod/v4/classic/checks.cjs +33 -0
  481. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  482. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  483. package/node_modules/zod/v4/classic/checks.js +1 -0
  484. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  485. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  486. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  487. package/node_modules/zod/v4/classic/coerce.js +17 -0
  488. package/node_modules/zod/v4/classic/compat.cjs +61 -0
  489. package/node_modules/zod/v4/classic/compat.d.cts +50 -0
  490. package/node_modules/zod/v4/classic/compat.d.ts +50 -0
  491. package/node_modules/zod/v4/classic/compat.js +31 -0
  492. package/node_modules/zod/v4/classic/errors.cjs +74 -0
  493. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  494. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  495. package/node_modules/zod/v4/classic/errors.js +48 -0
  496. package/node_modules/zod/v4/classic/external.cjs +73 -0
  497. package/node_modules/zod/v4/classic/external.d.cts +16 -0
  498. package/node_modules/zod/v4/classic/external.d.ts +16 -0
  499. package/node_modules/zod/v4/classic/external.js +20 -0
  500. package/node_modules/zod/v4/classic/from-json-schema.cjs +625 -0
  501. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  502. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  503. package/node_modules/zod/v4/classic/from-json-schema.js +599 -0
  504. package/node_modules/zod/v4/classic/index.cjs +33 -0
  505. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  506. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  507. package/node_modules/zod/v4/classic/index.js +4 -0
  508. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  509. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  510. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  511. package/node_modules/zod/v4/classic/iso.js +30 -0
  512. package/node_modules/zod/v4/classic/package.json +7 -0
  513. package/node_modules/zod/v4/classic/parse.cjs +41 -0
  514. package/node_modules/zod/v4/classic/parse.d.cts +31 -0
  515. package/node_modules/zod/v4/classic/parse.d.ts +31 -0
  516. package/node_modules/zod/v4/classic/parse.js +15 -0
  517. package/node_modules/zod/v4/classic/schemas.cjs +1511 -0
  518. package/node_modules/zod/v4/classic/schemas.d.cts +767 -0
  519. package/node_modules/zod/v4/classic/schemas.d.ts +767 -0
  520. package/node_modules/zod/v4/classic/schemas.js +1395 -0
  521. package/node_modules/zod/v4/core/api.cjs +1227 -0
  522. package/node_modules/zod/v4/core/api.d.cts +325 -0
  523. package/node_modules/zod/v4/core/api.d.ts +325 -0
  524. package/node_modules/zod/v4/core/api.js +1087 -0
  525. package/node_modules/zod/v4/core/checks.cjs +601 -0
  526. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  527. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  528. package/node_modules/zod/v4/core/checks.js +575 -0
  529. package/node_modules/zod/v4/core/core.cjs +85 -0
  530. package/node_modules/zod/v4/core/core.d.cts +70 -0
  531. package/node_modules/zod/v4/core/core.d.ts +70 -0
  532. package/node_modules/zod/v4/core/core.js +78 -0
  533. package/node_modules/zod/v4/core/doc.cjs +39 -0
  534. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  535. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  536. package/node_modules/zod/v4/core/doc.js +35 -0
  537. package/node_modules/zod/v4/core/errors.cjs +216 -0
  538. package/node_modules/zod/v4/core/errors.d.cts +221 -0
  539. package/node_modules/zod/v4/core/errors.d.ts +221 -0
  540. package/node_modules/zod/v4/core/errors.js +185 -0
  541. package/node_modules/zod/v4/core/index.cjs +47 -0
  542. package/node_modules/zod/v4/core/index.d.cts +16 -0
  543. package/node_modules/zod/v4/core/index.d.ts +16 -0
  544. package/node_modules/zod/v4/core/index.js +16 -0
  545. package/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
  546. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  547. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  548. package/node_modules/zod/v4/core/json-schema-generator.js +95 -0
  549. package/node_modules/zod/v4/core/json-schema-processors.cjs +644 -0
  550. package/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
  551. package/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
  552. package/node_modules/zod/v4/core/json-schema-processors.js +601 -0
  553. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  554. package/node_modules/zod/v4/core/json-schema.d.cts +88 -0
  555. package/node_modules/zod/v4/core/json-schema.d.ts +88 -0
  556. package/node_modules/zod/v4/core/json-schema.js +1 -0
  557. package/node_modules/zod/v4/core/package.json +7 -0
  558. package/node_modules/zod/v4/core/parse.cjs +131 -0
  559. package/node_modules/zod/v4/core/parse.d.cts +49 -0
  560. package/node_modules/zod/v4/core/parse.d.ts +49 -0
  561. package/node_modules/zod/v4/core/parse.js +93 -0
  562. package/node_modules/zod/v4/core/regexes.cjs +172 -0
  563. package/node_modules/zod/v4/core/regexes.d.cts +85 -0
  564. package/node_modules/zod/v4/core/regexes.d.ts +85 -0
  565. package/node_modules/zod/v4/core/regexes.js +139 -0
  566. package/node_modules/zod/v4/core/registries.cjs +56 -0
  567. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  568. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  569. package/node_modules/zod/v4/core/registries.js +51 -0
  570. package/node_modules/zod/v4/core/schemas.cjs +2270 -0
  571. package/node_modules/zod/v4/core/schemas.d.cts +1184 -0
  572. package/node_modules/zod/v4/core/schemas.d.ts +1184 -0
  573. package/node_modules/zod/v4/core/schemas.js +2239 -0
  574. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  575. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  576. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  577. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  578. package/node_modules/zod/v4/core/to-json-schema.cjs +457 -0
  579. package/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
  580. package/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
  581. package/node_modules/zod/v4/core/to-json-schema.js +448 -0
  582. package/node_modules/zod/v4/core/util.cjs +734 -0
  583. package/node_modules/zod/v4/core/util.d.cts +200 -0
  584. package/node_modules/zod/v4/core/util.d.ts +200 -0
  585. package/node_modules/zod/v4/core/util.js +674 -0
  586. package/node_modules/zod/v4/core/versions.cjs +8 -0
  587. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  588. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  589. package/node_modules/zod/v4/core/versions.js +5 -0
  590. package/node_modules/zod/v4/index.cjs +22 -0
  591. package/node_modules/zod/v4/index.d.cts +3 -0
  592. package/node_modules/zod/v4/index.d.ts +3 -0
  593. package/node_modules/zod/v4/index.js +3 -0
  594. package/node_modules/zod/v4/locales/ar.cjs +133 -0
  595. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  596. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  597. package/node_modules/zod/v4/locales/ar.js +106 -0
  598. package/node_modules/zod/v4/locales/az.cjs +132 -0
  599. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  600. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  601. package/node_modules/zod/v4/locales/az.js +105 -0
  602. package/node_modules/zod/v4/locales/be.cjs +183 -0
  603. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  604. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  605. package/node_modules/zod/v4/locales/be.js +156 -0
  606. package/node_modules/zod/v4/locales/bg.cjs +147 -0
  607. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  608. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  609. package/node_modules/zod/v4/locales/bg.js +120 -0
  610. package/node_modules/zod/v4/locales/ca.cjs +134 -0
  611. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  612. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  613. package/node_modules/zod/v4/locales/ca.js +107 -0
  614. package/node_modules/zod/v4/locales/cs.cjs +138 -0
  615. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  616. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  617. package/node_modules/zod/v4/locales/cs.js +111 -0
  618. package/node_modules/zod/v4/locales/da.cjs +142 -0
  619. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  620. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  621. package/node_modules/zod/v4/locales/da.js +115 -0
  622. package/node_modules/zod/v4/locales/de.cjs +135 -0
  623. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  624. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  625. package/node_modules/zod/v4/locales/de.js +108 -0
  626. package/node_modules/zod/v4/locales/el.cjs +136 -0
  627. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  628. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  629. package/node_modules/zod/v4/locales/el.js +109 -0
  630. package/node_modules/zod/v4/locales/en.cjs +140 -0
  631. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  632. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  633. package/node_modules/zod/v4/locales/en.js +113 -0
  634. package/node_modules/zod/v4/locales/eo.cjs +136 -0
  635. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  636. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  637. package/node_modules/zod/v4/locales/eo.js +109 -0
  638. package/node_modules/zod/v4/locales/es.cjs +159 -0
  639. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  640. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  641. package/node_modules/zod/v4/locales/es.js +132 -0
  642. package/node_modules/zod/v4/locales/fa.cjs +141 -0
  643. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  644. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  645. package/node_modules/zod/v4/locales/fa.js +114 -0
  646. package/node_modules/zod/v4/locales/fi.cjs +139 -0
  647. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  648. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  649. package/node_modules/zod/v4/locales/fi.js +112 -0
  650. package/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
  651. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  652. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  653. package/node_modules/zod/v4/locales/fr-CA.js +107 -0
  654. package/node_modules/zod/v4/locales/fr.cjs +152 -0
  655. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  656. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  657. package/node_modules/zod/v4/locales/fr.js +125 -0
  658. package/node_modules/zod/v4/locales/he.cjs +241 -0
  659. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  660. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  661. package/node_modules/zod/v4/locales/he.js +214 -0
  662. package/node_modules/zod/v4/locales/hr.cjs +149 -0
  663. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  664. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  665. package/node_modules/zod/v4/locales/hr.js +122 -0
  666. package/node_modules/zod/v4/locales/hu.cjs +135 -0
  667. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  668. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  669. package/node_modules/zod/v4/locales/hu.js +108 -0
  670. package/node_modules/zod/v4/locales/hy.cjs +174 -0
  671. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  672. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  673. package/node_modules/zod/v4/locales/hy.js +147 -0
  674. package/node_modules/zod/v4/locales/id.cjs +133 -0
  675. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  676. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  677. package/node_modules/zod/v4/locales/id.js +106 -0
  678. package/node_modules/zod/v4/locales/index.cjs +111 -0
  679. package/node_modules/zod/v4/locales/index.d.cts +52 -0
  680. package/node_modules/zod/v4/locales/index.d.ts +52 -0
  681. package/node_modules/zod/v4/locales/index.js +52 -0
  682. package/node_modules/zod/v4/locales/is.cjs +136 -0
  683. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  684. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  685. package/node_modules/zod/v4/locales/is.js +109 -0
  686. package/node_modules/zod/v4/locales/it.cjs +135 -0
  687. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  688. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  689. package/node_modules/zod/v4/locales/it.js +108 -0
  690. package/node_modules/zod/v4/locales/ja.cjs +134 -0
  691. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  692. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  693. package/node_modules/zod/v4/locales/ja.js +107 -0
  694. package/node_modules/zod/v4/locales/ka.cjs +139 -0
  695. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  696. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  697. package/node_modules/zod/v4/locales/ka.js +112 -0
  698. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  699. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  700. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  701. package/node_modules/zod/v4/locales/kh.js +5 -0
  702. package/node_modules/zod/v4/locales/km.cjs +137 -0
  703. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  704. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  705. package/node_modules/zod/v4/locales/km.js +110 -0
  706. package/node_modules/zod/v4/locales/ko.cjs +138 -0
  707. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  708. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  709. package/node_modules/zod/v4/locales/ko.js +111 -0
  710. package/node_modules/zod/v4/locales/lt.cjs +230 -0
  711. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  712. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  713. package/node_modules/zod/v4/locales/lt.js +203 -0
  714. package/node_modules/zod/v4/locales/mk.cjs +136 -0
  715. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  716. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  717. package/node_modules/zod/v4/locales/mk.js +109 -0
  718. package/node_modules/zod/v4/locales/ms.cjs +134 -0
  719. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  720. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  721. package/node_modules/zod/v4/locales/ms.js +107 -0
  722. package/node_modules/zod/v4/locales/nl.cjs +137 -0
  723. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  724. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  725. package/node_modules/zod/v4/locales/nl.js +110 -0
  726. package/node_modules/zod/v4/locales/no.cjs +135 -0
  727. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  728. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  729. package/node_modules/zod/v4/locales/no.js +108 -0
  730. package/node_modules/zod/v4/locales/ota.cjs +136 -0
  731. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  732. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  733. package/node_modules/zod/v4/locales/ota.js +109 -0
  734. package/node_modules/zod/v4/locales/package.json +7 -0
  735. package/node_modules/zod/v4/locales/pl.cjs +136 -0
  736. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  737. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  738. package/node_modules/zod/v4/locales/pl.js +109 -0
  739. package/node_modules/zod/v4/locales/ps.cjs +141 -0
  740. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  741. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  742. package/node_modules/zod/v4/locales/ps.js +114 -0
  743. package/node_modules/zod/v4/locales/pt.cjs +135 -0
  744. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  745. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  746. package/node_modules/zod/v4/locales/pt.js +108 -0
  747. package/node_modules/zod/v4/locales/ro.cjs +146 -0
  748. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  749. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  750. package/node_modules/zod/v4/locales/ro.js +119 -0
  751. package/node_modules/zod/v4/locales/ru.cjs +183 -0
  752. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  753. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  754. package/node_modules/zod/v4/locales/ru.js +156 -0
  755. package/node_modules/zod/v4/locales/sl.cjs +136 -0
  756. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  757. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  758. package/node_modules/zod/v4/locales/sl.js +109 -0
  759. package/node_modules/zod/v4/locales/sv.cjs +137 -0
  760. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  761. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  762. package/node_modules/zod/v4/locales/sv.js +110 -0
  763. package/node_modules/zod/v4/locales/ta.cjs +137 -0
  764. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  765. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  766. package/node_modules/zod/v4/locales/ta.js +110 -0
  767. package/node_modules/zod/v4/locales/th.cjs +137 -0
  768. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  769. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  770. package/node_modules/zod/v4/locales/th.js +110 -0
  771. package/node_modules/zod/v4/locales/tr.cjs +132 -0
  772. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  773. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  774. package/node_modules/zod/v4/locales/tr.js +105 -0
  775. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  776. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  777. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  778. package/node_modules/zod/v4/locales/ua.js +5 -0
  779. package/node_modules/zod/v4/locales/uk.cjs +135 -0
  780. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  781. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  782. package/node_modules/zod/v4/locales/uk.js +108 -0
  783. package/node_modules/zod/v4/locales/ur.cjs +137 -0
  784. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  785. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  786. package/node_modules/zod/v4/locales/ur.js +110 -0
  787. package/node_modules/zod/v4/locales/uz.cjs +137 -0
  788. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  789. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  790. package/node_modules/zod/v4/locales/uz.js +110 -0
  791. package/node_modules/zod/v4/locales/vi.cjs +135 -0
  792. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  793. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  794. package/node_modules/zod/v4/locales/vi.js +108 -0
  795. package/node_modules/zod/v4/locales/yo.cjs +134 -0
  796. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  797. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  798. package/node_modules/zod/v4/locales/yo.js +107 -0
  799. package/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
  800. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  801. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  802. package/node_modules/zod/v4/locales/zh-CN.js +109 -0
  803. package/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
  804. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  805. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  806. package/node_modules/zod/v4/locales/zh-TW.js +107 -0
  807. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  808. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  809. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  810. package/node_modules/zod/v4/mini/checks.js +1 -0
  811. package/node_modules/zod/v4/mini/coerce.cjs +52 -0
  812. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  813. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  814. package/node_modules/zod/v4/mini/coerce.js +22 -0
  815. package/node_modules/zod/v4/mini/external.cjs +63 -0
  816. package/node_modules/zod/v4/mini/external.d.cts +13 -0
  817. package/node_modules/zod/v4/mini/external.d.ts +13 -0
  818. package/node_modules/zod/v4/mini/external.js +14 -0
  819. package/node_modules/zod/v4/mini/index.cjs +32 -0
  820. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  821. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  822. package/node_modules/zod/v4/mini/index.js +3 -0
  823. package/node_modules/zod/v4/mini/iso.cjs +64 -0
  824. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  825. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  826. package/node_modules/zod/v4/mini/iso.js +34 -0
  827. package/node_modules/zod/v4/mini/package.json +7 -0
  828. package/node_modules/zod/v4/mini/parse.cjs +16 -0
  829. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  830. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  831. package/node_modules/zod/v4/mini/parse.js +1 -0
  832. package/node_modules/zod/v4/mini/schemas.cjs +1083 -0
  833. package/node_modules/zod/v4/mini/schemas.d.cts +445 -0
  834. package/node_modules/zod/v4/mini/schemas.d.ts +445 -0
  835. package/node_modules/zod/v4/mini/schemas.js +961 -0
  836. package/node_modules/zod/v4/package.json +7 -0
  837. package/node_modules/zod/v4-mini/index.cjs +32 -0
  838. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  839. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  840. package/node_modules/zod/v4-mini/index.js +3 -0
  841. package/node_modules/zod/v4-mini/package.json +7 -0
  842. package/package.json +8 -6
  843. package/dist/firecrawl-fetch-provider-CYViV-li.js +0 -38
  844. package/dist/firecrawl-fetch-provider-shared-BhzfHFkE.js +0 -47
  845. package/node_modules/typebox/build/format/_idna.d.mts +0 -2
  846. package/node_modules/typebox/build/format/_idna.mjs +0 -246
  847. package/node_modules/typebox/build/format/_puny.d.mts +0 -1
  848. package/node_modules/typebox/build/format/_puny.mjs +0 -77
  849. package/node_modules/typebox/build/schema/resolve/ref.d.mts +0 -3
  850. package/node_modules/typebox/build/schema/resolve/ref.mjs +0 -146
  851. package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +0 -9
  852. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +0 -13
  853. package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +0 -9
  854. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +0 -13
@@ -1,6 +1,6 @@
1
1
  /** Returns the number of grapheme clusters in a string */
2
2
  export declare function GraphemeCount(value: string): number;
3
3
  /** Fast check for minimum grapheme length, falls back to full check if needed */
4
- export declare function IsMinLengthFast(value: string, minLength: number): boolean;
4
+ export declare function IsMinLength(value: string, minLength: number): boolean;
5
5
  /** Fast check for maximum grapheme length, falls back to full check if needed */
6
- export declare function IsMaxLengthFast(value: string, maxLength: number): boolean;
6
+ export declare function IsMaxLength(value: string, maxLength: number): boolean;
@@ -67,7 +67,7 @@ function NextGraphemeClusterIndex(value, clusterStart) {
67
67
  // Consume combining marks & variation selectors
68
68
  clusterEnd = ConsumeModifiers(value, clusterEnd);
69
69
  // Handle multi-ZWJ sequences
70
- while (clusterEnd < value.length - 1 && value[clusterEnd] === '\u200D') {
70
+ while (clusterEnd < value.length - 1 && IsZeroWidthJoiner(value.codePointAt(clusterEnd))) {
71
71
  const nextCP = value.codePointAt(clusterEnd + 1);
72
72
  clusterEnd += 1 + CodePointLength(nextCP);
73
73
  clusterEnd = ConsumeModifiers(value, clusterEnd);
@@ -106,7 +106,7 @@ export function GraphemeCount(value) {
106
106
  // IsMinLength
107
107
  // --------------------------------------------------------------------------
108
108
  /** Checks if a string has at least a minimum number of grapheme clusters */
109
- function IsMinLength(value, minLength) {
109
+ function IsMinLengthSegmented(value, minLength) {
110
110
  // ----------------------------------------------------------------
111
111
  // Inaccessible via public interface (review)
112
112
  //
@@ -129,7 +129,7 @@ function IsMinLength(value, minLength) {
129
129
  // IsMaxLength
130
130
  // --------------------------------------------------------------------------
131
131
  /** Checks if a string has at most a maximum number of grapheme clusters */
132
- function IsMaxLength(value, maxLength) {
132
+ function IsMaxLengthSegmented(value, maxLength) {
133
133
  let count = 0;
134
134
  let index = 0;
135
135
  while (index < value.length) {
@@ -144,13 +144,13 @@ function IsMaxLength(value, maxLength) {
144
144
  // IsMinLengthFast
145
145
  // --------------------------------------------------------------------------
146
146
  /** Fast check for minimum grapheme length, falls back to full check if needed */
147
- export function IsMinLengthFast(value, minLength) {
147
+ export function IsMinLength(value, minLength) {
148
148
  if (minLength === 0)
149
149
  return true; // 0-length
150
150
  let index = 0;
151
151
  while (index < value.length) {
152
152
  if (IsGraphemeCodePoint(value.charCodeAt(index))) {
153
- return IsMinLength(value, minLength);
153
+ return IsMinLengthSegmented(value, minLength);
154
154
  }
155
155
  index++;
156
156
  if (index >= minLength)
@@ -162,11 +162,11 @@ export function IsMinLengthFast(value, minLength) {
162
162
  // IsMaxLengthFast
163
163
  // --------------------------------------------------------------------------
164
164
  /** Fast check for maximum grapheme length, falls back to full check if needed */
165
- export function IsMaxLengthFast(value, maxLength) {
165
+ export function IsMaxLength(value, maxLength) {
166
166
  let index = 0;
167
167
  while (index < value.length) {
168
168
  if (IsGraphemeCodePoint(value.charCodeAt(index))) {
169
- return IsMaxLength(value, maxLength);
169
+ return IsMaxLengthSegmented(value, maxLength);
170
170
  }
171
171
  index++;
172
172
  if (index > maxLength)
@@ -7,10 +7,10 @@ import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
7
7
  function HasUnevaluatedFromObject(value) {
8
8
  return (Schema.IsUnevaluatedItems(value)
9
9
  || Schema.IsUnevaluatedProperties(value)
10
- || G.Keys(value).some(key => HasUnevaluatedFromUnknown(value[key])));
10
+ || G.Some(G.Keys(value), key => HasUnevaluatedFromUnknown(value[key])));
11
11
  }
12
12
  function HasUnevaluatedFromArray(value) {
13
- return value.some(value => HasUnevaluatedFromUnknown(value));
13
+ return G.Some(value, value => HasUnevaluatedFromUnknown(value));
14
14
  }
15
15
  function HasUnevaluatedFromUnknown(value) {
16
16
  return (G.IsArray(value) ? HasUnevaluatedFromArray(value) :
@@ -18,7 +18,7 @@ function HasUnevaluatedFromUnknown(value) {
18
18
  false);
19
19
  }
20
20
  export function HasUnevaluated(context, schema) {
21
- return HasUnevaluatedFromUnknown(schema) || G.Keys(context).some(key => HasUnevaluatedFromUnknown(context[key]));
21
+ return HasUnevaluatedFromUnknown(schema) || G.Some(G.Keys(context), key => HasUnevaluatedFromUnknown(context[key]));
22
22
  }
23
23
  // ------------------------------------------------------------------
24
24
  // BuildContext
@@ -1,5 +1,4 @@
1
1
  // deno-fmt-ignore-file
2
- import { Hashing } from '../../system/hashing/index.mjs';
3
2
  import { EmitGuard as E } from '../../guard/index.mjs';
4
3
  import { BuildSchema } from './schema.mjs';
5
4
  const index = [0];
@@ -9,7 +8,7 @@ const funcs = new Map();
9
8
  // CreateName
10
9
  // ------------------------------------------------------------------
11
10
  function NextName() {
12
- return Hashing.Hash(index[0]++);
11
+ return `${index[0]++}`;
13
12
  }
14
13
  function CreateName(schema, href) {
15
14
  if (!names.has(schema))
@@ -0,0 +1,2 @@
1
+ /** Standard RegExp with Unicode */
2
+ export declare function UnicodeRegExp(pattern: string): RegExp;
@@ -0,0 +1,4 @@
1
+ /** Standard RegExp with Unicode */
2
+ export function UnicodeRegExp(pattern) {
3
+ return new RegExp(pattern, 'u');
4
+ }
@@ -4,7 +4,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
4
4
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
5
5
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
6
6
  };
7
- var _Stack_instances, _Stack_PushResourceAnchors, _Stack_PopResourceAnchors, _Stack_FromContext, _Stack_FromRef;
7
+ var _Stack_instances, _Stack_PushResourceAnchors, _Stack_PopResourceAnchors;
8
8
  import * as Schema from '../types/index.mjs';
9
9
  import { Guard as G } from '../../guard/index.mjs';
10
10
  import { Resolve } from '../resolve/index.mjs';
@@ -22,7 +22,7 @@ export class Stack {
22
22
  // Base
23
23
  // ----------------------------------------------------------------
24
24
  BaseURL() {
25
- return this.ids.reduce((result, schema) => new URL(schema.$id, result), new URL('http://unknown'));
25
+ return this.ids.reduce((result, schema) => new URL(schema.$id, result), Resolve.DefaultBase);
26
26
  }
27
27
  Base() {
28
28
  return this.ids[this.ids.length - 1] ?? this.schema;
@@ -58,23 +58,29 @@ export class Stack {
58
58
  if (Schema.IsDynamicAnchor(schema))
59
59
  this.dynamicAnchors.pop();
60
60
  }
61
+ // ----------------------------------------------------------------
62
+ // Ref
63
+ // ----------------------------------------------------------------
61
64
  Ref(ref) {
62
- return __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_FromContext).call(this, ref) ?? __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_FromRef).call(this, ref);
65
+ const root = this.schema;
66
+ return !ref.$ref.startsWith('#')
67
+ ? Resolve.Ref(this.context, root, ref.$ref)
68
+ : Resolve.Ref(this.context, this.Base(), ref.$ref);
63
69
  }
64
70
  // ----------------------------------------------------------------
65
71
  // RecursiveRef
66
72
  // ----------------------------------------------------------------
67
73
  RecursiveRef(recursiveRef) {
68
74
  return Schema.IsRecursiveAnchorTrue(this.Base())
69
- ? Resolve.Ref(this.recursiveAnchors[0], recursiveRef.$recursiveRef)
70
- : Resolve.Ref(this.Base(), recursiveRef.$recursiveRef);
75
+ ? Resolve.Ref(this.context, this.recursiveAnchors[0], recursiveRef.$recursiveRef)
76
+ : Resolve.Ref(this.context, this.Base(), recursiveRef.$recursiveRef);
71
77
  }
72
78
  // ----------------------------------------------------------------
73
79
  // DynamicRef
74
80
  // ----------------------------------------------------------------
75
81
  DynamicRef(dynamicRef) {
76
82
  const root = this.schema;
77
- return Resolve.DynamicRef(root, this.Base(), dynamicRef, this.dynamicAnchors);
83
+ return Resolve.DynamicRef(this.context, root, this.Base(), dynamicRef, this.dynamicAnchors);
78
84
  }
79
85
  }
80
86
  _Stack_instances = new WeakSet(), _Stack_PushResourceAnchors = function _Stack_PushResourceAnchors(schema, isRoot = true) {
@@ -97,11 +103,4 @@ _Stack_instances = new WeakSet(), _Stack_PushResourceAnchors = function _Stack_P
97
103
  this.dynamicAnchors.pop();
98
104
  for (const key of G.Keys(current))
99
105
  __classPrivateFieldGet(this, _Stack_instances, "m", _Stack_PopResourceAnchors).call(this, current[key], false);
100
- }, _Stack_FromContext = function _Stack_FromContext(ref) {
101
- return G.HasPropertyKey(this.context, ref.$ref) ? this.context[ref.$ref] : undefined;
102
- }, _Stack_FromRef = function _Stack_FromRef(ref) {
103
- const root = this.schema;
104
- return !ref.$ref.startsWith('#')
105
- ? Resolve.Ref(root, ref.$ref)
106
- : Resolve.Ref(this.Base(), ref.$ref);
107
106
  };
@@ -12,15 +12,25 @@ function IsValid(schema) {
12
12
  // ------------------------------------------------------------------
13
13
  // Build
14
14
  // ------------------------------------------------------------------
15
- export function BuildAdditionalItems(stack, context, schema, value) {
16
- if (!IsValid(schema))
17
- return E.Constant(true);
15
+ function BuildAdditionalItemsStandard(stack, context, schema, value) {
18
16
  const [item, index] = [Unique(), Unique()];
19
17
  const isSchema = BuildSchemaPushStack(stack, context, schema.additionalItems, item);
20
18
  const isLength = E.IsLessThan(index, E.Constant(schema.items.length));
21
19
  const addIndex = context.AddIndex(index);
22
- const guarded = context.UseUnevaluated() ? E.Or(isLength, E.And(isSchema, addIndex)) : E.Or(isLength, isSchema);
23
- return E.Call(E.Member(value, 'every'), [E.ArrowFunction([item, index], guarded)]);
20
+ return E.Every(value, E.Constant(0), [item, index], E.Or(isLength, E.And(isSchema, addIndex)));
21
+ }
22
+ function BuildAdditionalItemsFast(stack, context, schema, value) {
23
+ const [item, index] = [Unique(), Unique()];
24
+ const isSchema = BuildSchemaPushStack(stack, context, schema.additionalItems, item);
25
+ const isLength = E.IsLessThan(index, E.Constant(schema.items.length));
26
+ return E.Every(value, E.Constant(0), [item, index], E.Or(isLength, isSchema));
27
+ }
28
+ export function BuildAdditionalItems(stack, context, schema, value) {
29
+ if (!IsValid(schema))
30
+ return E.Constant(true);
31
+ return context.UseUnevaluated()
32
+ ? BuildAdditionalItemsStandard(stack, context, schema, value)
33
+ : BuildAdditionalItemsFast(stack, context, schema, value);
24
34
  }
25
35
  // ------------------------------------------------------------------
26
36
  // Check
@@ -28,7 +38,7 @@ export function BuildAdditionalItems(stack, context, schema, value) {
28
38
  export function CheckAdditionalItems(stack, context, schema, value) {
29
39
  if (!IsValid(schema))
30
40
  return true;
31
- const isAdditionalItems = value.every((item, index) => {
41
+ const isAdditionalItems = G.Every(value, 0, (item, index) => {
32
42
  return G.IsLessThan(index, schema.items.length)
33
43
  || (CheckSchemaPushStack(stack, context, schema.additionalItems, item) && context.AddIndex(index));
34
44
  });
@@ -40,7 +50,7 @@ export function CheckAdditionalItems(stack, context, schema, value) {
40
50
  export function ErrorAdditionalItems(stack, context, schemaPath, instancePath, schema, value) {
41
51
  if (!IsValid(schema))
42
52
  return true;
43
- const isAdditionalItems = value.every((item, index) => {
53
+ const isAdditionalItems = G.Every(value, 0, (item, index) => {
44
54
  const nextSchemaPath = `${schemaPath}/additionalItems`;
45
55
  const nextInstancePath = `${instancePath}/${index}`;
46
56
  return G.IsLessThan(index, schema.items.length) ||
@@ -3,6 +3,7 @@ import * as S from '../types/index.mjs';
3
3
  import * as V from './_externals.mjs';
4
4
  import { Unique } from './_unique.mjs';
5
5
  import { AccumulatedErrorContext } from './_context.mjs';
6
+ import { UnicodeRegExp } from './_regexp.mjs';
6
7
  import { EmitGuard as E, Guard as G } from '../../guard/index.mjs';
7
8
  import { BuildSchemaPushStack, CheckSchemaPushStack, ErrorSchemaPushStack } from './schema.mjs';
8
9
  // ------------------------------------------------------------------
@@ -58,7 +59,7 @@ export function BuildAdditionalPropertiesFast(_context, schema, value) {
58
59
  // ------------------------------------------------------------------
59
60
  export function BuildAdditionalPropertiesStandard(stack, context, schema, value) {
60
61
  const [key, _index] = [Unique(), Unique()];
61
- const regexp = V.CreateVariable(new RegExp(GetPropertiesPattern(schema)));
62
+ const regexp = V.CreateVariable(UnicodeRegExp(GetPropertiesPattern(schema)));
62
63
  const isSchema = BuildSchemaPushStack(stack, context, schema.additionalProperties, `${value}[${key}]`);
63
64
  const isKey = E.Call(E.Member(regexp, 'test'), [key]);
64
65
  const addKey = context.AddKey(key);
@@ -78,7 +79,7 @@ export function BuildAdditionalProperties(stack, context, schema, value) {
78
79
  // Check
79
80
  // ------------------------------------------------------------------
80
81
  export function CheckAdditionalProperties(stack, context, schema, value) {
81
- const regexp = new RegExp(GetPropertiesPattern(schema));
82
+ const regexp = UnicodeRegExp(GetPropertiesPattern(schema));
82
83
  const isAdditionalProperties = G.Every(G.Keys(value), 0, (key, _index) => {
83
84
  return regexp.test(key) ||
84
85
  (CheckSchemaPushStack(stack, context, schema.additionalProperties, value[key]) && context.AddKey(key));
@@ -89,7 +90,7 @@ export function CheckAdditionalProperties(stack, context, schema, value) {
89
90
  // Error
90
91
  // ------------------------------------------------------------------
91
92
  export function ErrorAdditionalProperties(stack, context, schemaPath, instancePath, schema, value) {
92
- const regexp = new RegExp(GetPropertiesPattern(schema));
93
+ const regexp = UnicodeRegExp(GetPropertiesPattern(schema));
93
94
  const additionalProperties = [];
94
95
  const isAdditionalProperties = G.EveryAll(G.Keys(value), 0, (key, _index) => {
95
96
  const nextSchemaPath = `${schemaPath}/additionalProperties`;
@@ -12,13 +12,24 @@ function IsValid(schema) {
12
12
  // ------------------------------------------------------------------
13
13
  // Build
14
14
  // ------------------------------------------------------------------
15
+ function BuildContainsStandard(stack, context, schema, value) {
16
+ const [item, index] = [Unique(), Unique()];
17
+ const isLength = E.Not(E.IsEqual(E.Member(value, 'length'), E.Constant(0)));
18
+ const isSome = E.SomeAll(value, [item, index], E.And(BuildSchema(stack, context, schema.contains, item), context.AddIndex(index)));
19
+ return E.And(isLength, isSome);
20
+ }
21
+ function BuildContainsFast(stack, context, schema, value) {
22
+ const [item] = [Unique()];
23
+ const isLength = E.Not(E.IsEqual(E.Member(value, 'length'), E.Constant(0)));
24
+ const isSome = E.Some(value, [item, '_'], BuildSchema(stack, context, schema.contains, item));
25
+ return E.And(isLength, isSome);
26
+ }
15
27
  export function BuildContains(stack, context, schema, value) {
16
28
  if (!IsValid(schema))
17
29
  return E.Constant(true);
18
- const item = Unique();
19
- const isLength = E.Not(E.IsEqual(E.Member(value, 'length'), E.Constant(0)));
20
- const isSome = E.Call(E.Member(value, 'some'), [E.ArrowFunction([item], BuildSchema(stack, context, schema.contains, item))]);
21
- return E.And(isLength, isSome);
30
+ return context.UseUnevaluated()
31
+ ? BuildContainsStandard(stack, context, schema, value)
32
+ : BuildContainsFast(stack, context, schema, value);
22
33
  }
23
34
  // ------------------------------------------------------------------
24
35
  // Check
@@ -26,8 +37,9 @@ export function BuildContains(stack, context, schema, value) {
26
37
  export function CheckContains(stack, context, schema, value) {
27
38
  if (!IsValid(schema))
28
39
  return true;
29
- return !G.IsEqual(value.length, 0) &&
30
- value.some((item) => CheckSchema(stack, context, schema.contains, item));
40
+ return !G.IsEqual(value.length, 0) && G.SomeAll(value, (item, index) => {
41
+ return CheckSchema(stack, context, schema.contains, item) && context.AddIndex(index);
42
+ });
31
43
  }
32
44
  // ------------------------------------------------------------------
33
45
  // Error
@@ -16,7 +16,7 @@ export function BuildEnum(_stack, _context, schema, value) {
16
16
  // Check
17
17
  // ------------------------------------------------------------------
18
18
  export function CheckEnum(_stack, _context, schema, value) {
19
- return schema.enum.some(option => G.IsValueLike(option)
19
+ return G.Some(schema.enum, option => G.IsValueLike(option)
20
20
  ? G.IsEqual(value, option)
21
21
  : G.IsDeepEqual(value, option));
22
22
  }
@@ -5,15 +5,26 @@ import { BuildSchemaPushStack, CheckSchemaPushStack, ErrorSchemaPushStack } from
5
5
  // ------------------------------------------------------------------
6
6
  // ItemsSized
7
7
  // ------------------------------------------------------------------
8
- function BuildItemsSized(stack, context, schema, value) {
8
+ function BuildItemsSizedStandard(stack, context, schema, value) {
9
9
  return E.ReduceAnd(schema.items.map((schema, index) => {
10
10
  const isLength = E.IsLessEqualThan(E.Member(value, 'length'), E.Constant(index));
11
11
  const isSchema = BuildSchemaPushStack(stack, context, schema, `${value}[${index}]`);
12
12
  const addIndex = context.AddIndex(E.Constant(index));
13
- const guarded = context.UseUnevaluated() ? E.And(isSchema, addIndex) : isSchema;
14
- return E.Or(isLength, guarded);
13
+ return E.Or(isLength, E.And(isSchema, addIndex));
15
14
  }));
16
15
  }
16
+ function BuildItemsSizedFast(stack, context, schema, value) {
17
+ return E.ReduceAnd(schema.items.map((schema, index) => {
18
+ const isLength = E.IsLessEqualThan(E.Member(value, 'length'), E.Constant(index));
19
+ const isSchema = BuildSchemaPushStack(stack, context, schema, `${value}[${index}]`);
20
+ return E.Or(isLength, isSchema);
21
+ }));
22
+ }
23
+ function BuildItemsSized(stack, context, schema, value) {
24
+ return context.UseUnevaluated()
25
+ ? BuildItemsSizedStandard(stack, context, schema, value)
26
+ : BuildItemsSizedFast(stack, context, schema, value);
27
+ }
17
28
  function CheckItemsSized(stack, context, schema, value) {
18
29
  return G.Every(schema.items, 0, (schema, index) => {
19
30
  return G.IsLessEqualThan(value.length, index)
@@ -31,12 +42,21 @@ function ErrorItemsSized(stack, context, schemaPath, instancePath, schema, value
31
42
  // ------------------------------------------------------------------
32
43
  // ItemsUnsized
33
44
  // ------------------------------------------------------------------
34
- function BuildItemsUnsized(stack, context, schema, value) {
45
+ function BuildItemsUnsizedStandard(stack, context, schema, value) {
35
46
  const offset = Schema.IsPrefixItems(schema) ? schema.prefixItems.length : 0;
36
47
  const isSchema = BuildSchemaPushStack(stack, context, schema.items, 'element');
37
48
  const addIndex = context.AddIndex('index');
38
- const guarded = context.UseUnevaluated() ? E.And(isSchema, addIndex) : isSchema;
39
- return E.Every(value, E.Constant(offset), ['element', 'index'], guarded);
49
+ return E.Every(value, E.Constant(offset), ['element', 'index'], E.And(isSchema, addIndex));
50
+ }
51
+ function BuildItemsUnsizedFast(stack, context, schema, value) {
52
+ const offset = Schema.IsPrefixItems(schema) ? schema.prefixItems.length : 0;
53
+ const isSchema = BuildSchemaPushStack(stack, context, schema.items, 'element');
54
+ return E.Every(value, E.Constant(offset), ['element', 'index'], isSchema);
55
+ }
56
+ function BuildItemsUnsized(stack, context, schema, value) {
57
+ return context.UseUnevaluated()
58
+ ? BuildItemsUnsizedStandard(stack, context, schema, value)
59
+ : BuildItemsUnsizedFast(stack, context, schema, value);
40
60
  }
41
61
  function CheckItemsUnsized(stack, context, schema, value) {
42
62
  const offset = Schema.IsPrefixItems(schema) ? schema.prefixItems.length : 0;
@@ -15,8 +15,8 @@ function IsValid(schema) {
15
15
  export function BuildMaxContains(stack, context, schema, value) {
16
16
  if (!IsValid(schema))
17
17
  return E.Constant(true);
18
- const [result, item] = [Unique(), Unique()];
19
- const count = E.Call(E.Member(value, 'reduce'), [E.ArrowFunction([result, item], E.Ternary(BuildSchema(stack, context, schema.contains, item), E.PrefixIncrement(result), result)), E.Constant(0)]);
18
+ const [item] = [Unique()];
19
+ const count = E.Counted(value, [item, '_'], BuildSchema(stack, context, schema.contains, item));
20
20
  return E.IsLessEqualThan(count, E.Constant(schema.maxContains));
21
21
  }
22
22
  // ------------------------------------------------------------------
@@ -25,7 +25,7 @@ export function BuildMaxContains(stack, context, schema, value) {
25
25
  export function CheckMaxContains(stack, context, schema, value) {
26
26
  if (!IsValid(schema))
27
27
  return true;
28
- const count = value.reduce((result, item) => CheckSchema(stack, context, schema.contains, item) ? ++result : result, 0);
28
+ const count = G.Counted(value, (item) => CheckSchema(stack, context, schema.contains, item));
29
29
  return G.IsLessEqualThan(count, schema.maxContains);
30
30
  }
31
31
  // ------------------------------------------------------------------
@@ -12,12 +12,22 @@ function IsValid(schema) {
12
12
  // ------------------------------------------------------------------
13
13
  // Build
14
14
  // ------------------------------------------------------------------
15
+ function BuildMinContainsStandard(stack, context, schema, value) {
16
+ const [item, index] = [Unique(), Unique()];
17
+ const count = E.Counted(value, [item, index], E.And(BuildSchema(stack, context, schema.contains, item), context.AddIndex(index)));
18
+ return E.IsGreaterEqualThan(count, E.Constant(schema.minContains));
19
+ }
20
+ function BuildMinContainsFast(stack, context, schema, value) {
21
+ const [item] = [Unique()];
22
+ const count = E.Counted(value, [item, '_'], BuildSchema(stack, context, schema.contains, item));
23
+ return E.IsGreaterEqualThan(count, E.Constant(schema.minContains));
24
+ }
15
25
  export function BuildMinContains(stack, context, schema, value) {
16
26
  if (!IsValid(schema))
17
27
  return E.Constant(true);
18
- const [result, item] = [Unique(), Unique()];
19
- const count = E.Call(E.Member(value, 'reduce'), [E.ArrowFunction([result, item], E.Ternary(BuildSchema(stack, context, schema.contains, item), E.PrefixIncrement(result), result)), E.Constant(0)]);
20
- return E.IsGreaterEqualThan(count, E.Constant(schema.minContains));
28
+ return context.UseUnevaluated()
29
+ ? BuildMinContainsStandard(stack, context, schema, value)
30
+ : BuildMinContainsFast(stack, context, schema, value);
21
31
  }
22
32
  // ------------------------------------------------------------------
23
33
  // Check
@@ -25,7 +35,7 @@ export function BuildMinContains(stack, context, schema, value) {
25
35
  export function CheckMinContains(stack, context, schema, value) {
26
36
  if (!IsValid(schema))
27
37
  return true;
28
- const count = value.reduce((result, item) => CheckSchema(stack, context, schema.contains, item) ? ++result : result, 0);
38
+ const count = G.Counted(value, (item, index) => CheckSchema(stack, context, schema.contains, item) && context.AddIndex(index));
29
39
  return G.IsGreaterEqualThan(count, schema.minContains);
30
40
  }
31
41
  // ------------------------------------------------------------------
@@ -6,14 +6,16 @@ import { BuildSchema, CheckSchema } from './schema.mjs';
6
6
  // ------------------------------------------------------------------
7
7
  // Build
8
8
  // ------------------------------------------------------------------
9
- function BuildNotUnevaluated(stack, context, schema, value) {
9
+ function BuildNotStandard(stack, context, schema, value) {
10
10
  return Reducer(stack, context, [schema.not], value, E.Not(E.IsEqual(E.Member('results', 'length'), E.Constant(1))));
11
11
  }
12
12
  function BuildNotFast(stack, context, schema, value) {
13
13
  return E.Not(BuildSchema(stack, context, schema.not, value));
14
14
  }
15
15
  export function BuildNot(stack, context, schema, value) {
16
- return context.UseUnevaluated() ? BuildNotUnevaluated(stack, context, schema, value) : BuildNotFast(stack, context, schema, value);
16
+ return context.UseUnevaluated()
17
+ ? BuildNotStandard(stack, context, schema, value)
18
+ : BuildNotFast(stack, context, schema, value);
17
19
  }
18
20
  // ------------------------------------------------------------------
19
21
  // Check
@@ -3,22 +3,23 @@ import { CheckContext, AccumulatedErrorContext } from './_context.mjs';
3
3
  import { Reducer } from './_reducer.mjs';
4
4
  import { EmitGuard as E, Guard as G } from '../../guard/index.mjs';
5
5
  import { BuildSchema, CheckSchema, ErrorSchema } from './schema.mjs';
6
+ import { Unique } from './_unique.mjs';
6
7
  // ------------------------------------------------------------------
7
8
  // Build
8
9
  // ------------------------------------------------------------------
9
- function BuildOneOfUnevaluated(stack, context, schema, value) {
10
+ function BuildOneOfStandard(stack, context, schema, value) {
10
11
  return Reducer(stack, context, schema.oneOf, value, E.IsEqual(E.Member('results', 'length'), E.Constant(1)));
11
12
  }
12
13
  function BuildOneOfFast(stack, context, schema, value) {
14
+ const [result] = [Unique()];
13
15
  const results = E.ArrayLiteral(schema.oneOf.map((schema) => BuildSchema(stack, context, schema, value)));
14
- const count = E.Call(E.Member(results, 'reduce'), [
15
- E.ArrowFunction(['count', 'result'], E.Ternary(E.IsEqual('result', E.Constant(true)), E.PrefixIncrement('count'), 'count')),
16
- E.Constant(0),
17
- ]);
16
+ const count = E.Counted(results, [result, '_'], E.IsEqual(result, E.Constant(true)));
18
17
  return E.IsEqual(count, E.Constant(1));
19
18
  }
20
19
  export function BuildOneOf(stack, context, schema, value) {
21
- return context.UseUnevaluated() ? BuildOneOfUnevaluated(stack, context, schema, value) : BuildOneOfFast(stack, context, schema, value);
20
+ return context.UseUnevaluated()
21
+ ? BuildOneOfStandard(stack, context, schema, value)
22
+ : BuildOneOfFast(stack, context, schema, value);
22
23
  }
23
24
  // ------------------------------------------------------------------
24
25
  // Check
@@ -1,18 +1,19 @@
1
1
  // deno-fmt-ignore-file
2
2
  import * as Externals from './_externals.mjs';
3
3
  import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
4
+ import { UnicodeRegExp } from './_regexp.mjs';
4
5
  // ------------------------------------------------------------------
5
6
  // Build
6
7
  // ------------------------------------------------------------------
7
8
  export function BuildPattern(_stack, _context, schema, value) {
8
- const regexp = Externals.CreateVariable(G.IsString(schema.pattern) ? new RegExp(schema.pattern, 'u') : schema.pattern);
9
+ const regexp = Externals.CreateVariable(G.IsString(schema.pattern) ? UnicodeRegExp(schema.pattern) : schema.pattern);
9
10
  return E.Call(E.Member(regexp, 'test'), [value]);
10
11
  }
11
12
  // ------------------------------------------------------------------
12
13
  // Check
13
14
  // ------------------------------------------------------------------
14
15
  export function CheckPattern(_stack, _context, schema, value) {
15
- const regexp = G.IsString(schema.pattern) ? new RegExp(schema.pattern, 'u') : schema.pattern;
16
+ const regexp = G.IsString(schema.pattern) ? UnicodeRegExp(schema.pattern) : schema.pattern;
16
17
  return regexp.test(value);
17
18
  }
18
19
  // ------------------------------------------------------------------
@@ -1,6 +1,7 @@
1
1
  // deno-fmt-ignore-file
2
2
  import * as Externals from './_externals.mjs';
3
3
  import { Unique } from './_unique.mjs';
4
+ import { UnicodeRegExp } from './_regexp.mjs';
4
5
  import { Guard as G, EmitGuard as E } from '../../guard/index.mjs';
5
6
  import { BuildSchemaPushStack, CheckSchemaPushStack, ErrorSchemaPushStack } from './schema.mjs';
6
7
  // ------------------------------------------------------------------
@@ -9,7 +10,7 @@ import { BuildSchemaPushStack, CheckSchemaPushStack, ErrorSchemaPushStack } from
9
10
  export function BuildPatternProperties(stack, context, schema, value) {
10
11
  return E.ReduceAnd(G.Entries(schema.patternProperties).map(([pattern, schema]) => {
11
12
  const [key, prop] = [Unique(), Unique()];
12
- const regexp = Externals.CreateVariable(new RegExp(pattern, 'u'));
13
+ const regexp = Externals.CreateVariable(UnicodeRegExp(pattern));
13
14
  const notKey = E.Not(E.Call(E.Member(regexp, 'test'), [key]));
14
15
  const isSchema = BuildSchemaPushStack(stack, context, schema, prop);
15
16
  const addKey = context.AddKey(key);
@@ -22,7 +23,7 @@ export function BuildPatternProperties(stack, context, schema, value) {
22
23
  // ------------------------------------------------------------------
23
24
  export function CheckPatternProperties(stack, context, schema, value) {
24
25
  return G.Every(G.Entries(schema.patternProperties), 0, ([pattern, schema]) => {
25
- const regexp = new RegExp(pattern, 'u');
26
+ const regexp = UnicodeRegExp(pattern);
26
27
  return G.Every(G.Entries(value), 0, ([key, prop]) => {
27
28
  return !regexp.test(key) || CheckSchemaPushStack(stack, context, schema, prop) && context.AddKey(key);
28
29
  });
@@ -34,7 +35,7 @@ export function CheckPatternProperties(stack, context, schema, value) {
34
35
  export function ErrorPatternProperties(stack, context, schemaPath, instancePath, schema, value) {
35
36
  return G.EveryAll(G.Entries(schema.patternProperties), 0, ([pattern, schema]) => {
36
37
  const nextSchemaPath = `${schemaPath}/patternProperties/${pattern}`;
37
- const regexp = new RegExp(pattern, 'u');
38
+ const regexp = UnicodeRegExp(pattern);
38
39
  return G.EveryAll(G.Entries(value), 0, ([key, value]) => {
39
40
  const nextInstancePath = `${instancePath}/${key}`;
40
41
  const notKey = !regexp.test(key);
@@ -5,7 +5,7 @@ import { CheckContext, AccumulatedErrorContext } from './_context.mjs';
5
5
  import { EmitGuard as E } from '../../guard/index.mjs';
6
6
  import { CheckSchema, ErrorSchema } from './schema.mjs';
7
7
  // ------------------------------------------------------------------
8
- // BuildRefStandard
8
+ // BuildRef
9
9
  // ------------------------------------------------------------------
10
10
  function BuildRefStandard(stack, context, target, value) {
11
11
  const interior = E.ArrowFunction(['context', 'value'], Functions.CreateFunction(stack, context, target, 'value'));
@@ -17,15 +17,9 @@ function BuildRefStandard(stack, context, target, value) {
17
17
  ]));
18
18
  return E.Call(exterior, ['context', value]);
19
19
  }
20
- // ------------------------------------------------------------------
21
- // BuildRefStandard
22
- // ------------------------------------------------------------------
23
20
  function BuildRefFast(stack, context, target, value) {
24
21
  return Functions.CreateFunction(stack, context, target, value);
25
22
  }
26
- // ------------------------------------------------------------------
27
- // BuildRef
28
- // ------------------------------------------------------------------
29
23
  export function BuildRef(stack, context, schema, value) {
30
24
  const target = stack.Ref(schema) ?? false;
31
25
  return context.UseUnevaluated()
@@ -45,12 +45,21 @@ import { BuildUnevaluatedItems, CheckUnevaluatedItems, ErrorUnevaluatedItems } f
45
45
  import { BuildUnevaluatedProperties, CheckUnevaluatedProperties, ErrorUnevaluatedProperties } from './unevaluatedProperties.mjs';
46
46
  import { BuildUniqueItems, CheckUniqueItems, ErrorUniqueItems } from './uniqueItems.mjs';
47
47
  // ----------------------------------------------------------------
48
- // HasTypeName
48
+ // HasTypeName (Optimization)
49
+ //
50
+ // We only consider a schema as having a type name when the schema
51
+ // has a single type string, or when every element in the type
52
+ // array is the same. For a type array, we must treat multi-variant
53
+ // types as unions and therefore can NOT use an optimized forward
54
+ // type check.
55
+ //
49
56
  // ----------------------------------------------------------------
50
57
  function HasTypeName(schema, typename) {
51
- return Schema.IsType(schema) &&
52
- (G.IsArray(schema.type) && schema.type.includes(typename) ||
53
- G.IsEqual(schema.type, typename));
58
+ return (Schema.IsType(schema) &&
59
+ ((G.IsArray(schema.type) &&
60
+ G.IsGreaterThan(schema.type.length, 0) &&
61
+ G.Every(schema.type, 0, type => G.IsEqual(type, typename))) ||
62
+ G.IsEqual(schema.type, typename)));
54
63
  }
55
64
  // ----------------------------------------------------------------
56
65
  // HasObject
@@ -48,7 +48,7 @@ function BuildTypeNames(stack, context, typenames, value) {
48
48
  return E.ReduceOr(typenames.map(type => BuildTypeName(stack, context, type, value)));
49
49
  }
50
50
  function CheckTypeNames(stack, context, types, schema, value) {
51
- return types.some(type => CheckTypeName(stack, context, type, schema, value));
51
+ return G.Some(types, type => CheckTypeName(stack, context, type, schema, value));
52
52
  }
53
53
  // ------------------------------------------------------------------
54
54
  // Type
@@ -1 +1,4 @@
1
- export * from './ref.mjs';
1
+ import * as Schema from '../types/index.mjs';
2
+ export declare const DefaultBase: URL;
3
+ export declare function Ref(context: Record<string, Schema.XSchema>, schema: Schema.XSchemaObject, ref: string): Schema.XSchema | undefined;
4
+ export declare function DynamicRef(context: Record<string, Schema.XSchema>, root: Schema.XSchemaObject, base: Schema.XSchemaObject, dynamicRef: Schema.XDynamicRef, dynamicAnchors: Schema.XDynamicAnchor[]): Schema.XSchema | undefined;