litmus-cli 1.5.16-screen.0 → 1.5.16

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 (1449) hide show
  1. package/README.md +5 -0
  2. package/dist/index.js +10 -5
  3. package/dist/index.js.map +1 -1
  4. package/dist/lib/connect-node-upgrade.d.ts +2 -0
  5. package/dist/lib/connect-node-upgrade.d.ts.map +1 -0
  6. package/dist/lib/connect-node-upgrade.js +122 -0
  7. package/dist/lib/connect-node-upgrade.js.map +1 -0
  8. package/dist/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  9. package/dist/node_modules/@nodelib/fs.scandir/README.md +171 -0
  10. package/dist/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  11. package/dist/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  12. package/dist/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  13. package/dist/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  14. package/dist/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  15. package/dist/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  16. package/dist/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  17. package/dist/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  18. package/dist/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  19. package/dist/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  20. package/dist/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  21. package/dist/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  22. package/dist/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  23. package/dist/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  24. package/dist/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  25. package/dist/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  26. package/dist/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  27. package/dist/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  28. package/dist/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  29. package/dist/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  30. package/dist/node_modules/@nodelib/fs.scandir/package.json +44 -0
  31. package/dist/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  32. package/dist/node_modules/@nodelib/fs.stat/README.md +126 -0
  33. package/dist/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  34. package/dist/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  35. package/dist/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  36. package/dist/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  37. package/dist/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  38. package/dist/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  39. package/dist/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  40. package/dist/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  41. package/dist/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  42. package/dist/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  43. package/dist/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  44. package/dist/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  45. package/dist/node_modules/@nodelib/fs.stat/package.json +37 -0
  46. package/dist/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  47. package/dist/node_modules/@nodelib/fs.walk/README.md +215 -0
  48. package/dist/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  49. package/dist/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  50. package/dist/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  51. package/dist/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  52. package/dist/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  53. package/dist/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  54. package/dist/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  55. package/dist/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  56. package/dist/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  57. package/dist/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  58. package/dist/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  59. package/dist/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  60. package/dist/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  61. package/dist/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  62. package/dist/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  63. package/dist/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  64. package/dist/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  65. package/dist/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  66. package/dist/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  67. package/dist/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  68. package/dist/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  69. package/dist/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  70. package/dist/node_modules/@nodelib/fs.walk/package.json +44 -0
  71. package/dist/node_modules/ansi-regex/index.d.ts +33 -0
  72. package/dist/node_modules/ansi-regex/index.js +15 -0
  73. package/dist/node_modules/ansi-regex/license +9 -0
  74. package/dist/node_modules/ansi-regex/package.json +61 -0
  75. package/dist/node_modules/ansi-regex/readme.md +66 -0
  76. package/dist/node_modules/bluebird/LICENSE +21 -0
  77. package/dist/node_modules/bluebird/README.md +57 -0
  78. package/dist/node_modules/bluebird/changelog.md +1 -0
  79. package/dist/node_modules/bluebird/js/browser/bluebird.core.js +3914 -0
  80. package/dist/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
  81. package/dist/node_modules/bluebird/js/browser/bluebird.js +5778 -0
  82. package/dist/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
  83. package/dist/node_modules/bluebird/js/release/any.js +21 -0
  84. package/dist/node_modules/bluebird/js/release/assert.js +55 -0
  85. package/dist/node_modules/bluebird/js/release/async.js +120 -0
  86. package/dist/node_modules/bluebird/js/release/bind.js +67 -0
  87. package/dist/node_modules/bluebird/js/release/bluebird.js +11 -0
  88. package/dist/node_modules/bluebird/js/release/call_get.js +123 -0
  89. package/dist/node_modules/bluebird/js/release/cancel.js +129 -0
  90. package/dist/node_modules/bluebird/js/release/catch_filter.js +42 -0
  91. package/dist/node_modules/bluebird/js/release/context.js +69 -0
  92. package/dist/node_modules/bluebird/js/release/debuggability.js +1009 -0
  93. package/dist/node_modules/bluebird/js/release/direct_resolve.js +46 -0
  94. package/dist/node_modules/bluebird/js/release/each.js +30 -0
  95. package/dist/node_modules/bluebird/js/release/errors.js +116 -0
  96. package/dist/node_modules/bluebird/js/release/es5.js +80 -0
  97. package/dist/node_modules/bluebird/js/release/filter.js +12 -0
  98. package/dist/node_modules/bluebird/js/release/finally.js +146 -0
  99. package/dist/node_modules/bluebird/js/release/generators.js +223 -0
  100. package/dist/node_modules/bluebird/js/release/join.js +165 -0
  101. package/dist/node_modules/bluebird/js/release/map.js +175 -0
  102. package/dist/node_modules/bluebird/js/release/method.js +55 -0
  103. package/dist/node_modules/bluebird/js/release/nodeback.js +51 -0
  104. package/dist/node_modules/bluebird/js/release/nodeify.js +58 -0
  105. package/dist/node_modules/bluebird/js/release/promise.js +819 -0
  106. package/dist/node_modules/bluebird/js/release/promise_array.js +186 -0
  107. package/dist/node_modules/bluebird/js/release/promisify.js +314 -0
  108. package/dist/node_modules/bluebird/js/release/props.js +118 -0
  109. package/dist/node_modules/bluebird/js/release/queue.js +73 -0
  110. package/dist/node_modules/bluebird/js/release/race.js +49 -0
  111. package/dist/node_modules/bluebird/js/release/reduce.js +183 -0
  112. package/dist/node_modules/bluebird/js/release/schedule.js +62 -0
  113. package/dist/node_modules/bluebird/js/release/settle.js +47 -0
  114. package/dist/node_modules/bluebird/js/release/some.js +148 -0
  115. package/dist/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
  116. package/dist/node_modules/bluebird/js/release/thenables.js +86 -0
  117. package/dist/node_modules/bluebird/js/release/timers.js +93 -0
  118. package/dist/node_modules/bluebird/js/release/using.js +226 -0
  119. package/dist/node_modules/bluebird/js/release/util.js +421 -0
  120. package/dist/node_modules/bluebird/package.json +78 -0
  121. package/dist/node_modules/braces/LICENSE +21 -0
  122. package/dist/node_modules/braces/README.md +586 -0
  123. package/dist/node_modules/braces/index.js +170 -0
  124. package/dist/node_modules/braces/lib/compile.js +60 -0
  125. package/dist/node_modules/braces/lib/constants.js +57 -0
  126. package/dist/node_modules/braces/lib/expand.js +113 -0
  127. package/dist/node_modules/braces/lib/parse.js +331 -0
  128. package/dist/node_modules/braces/lib/stringify.js +32 -0
  129. package/dist/node_modules/braces/lib/utils.js +122 -0
  130. package/dist/node_modules/braces/package.json +77 -0
  131. package/dist/node_modules/buffer-crc32/LICENSE +19 -0
  132. package/dist/node_modules/buffer-crc32/README.md +55 -0
  133. package/dist/node_modules/buffer-crc32/dist/index.cjs +306 -0
  134. package/dist/node_modules/buffer-crc32/dist/index.d.cts +35 -0
  135. package/dist/node_modules/buffer-crc32/dist/index.d.mts +35 -0
  136. package/dist/node_modules/buffer-crc32/dist/index.mjs +304 -0
  137. package/dist/node_modules/buffer-crc32/index.d.ts +35 -0
  138. package/dist/node_modules/buffer-crc32/package.json +54 -0
  139. package/dist/node_modules/chalk/license +9 -0
  140. package/dist/node_modules/chalk/package.json +83 -0
  141. package/dist/node_modules/chalk/readme.md +297 -0
  142. package/dist/node_modules/chalk/source/index.d.ts +325 -0
  143. package/dist/node_modules/chalk/source/index.js +225 -0
  144. package/dist/node_modules/chalk/source/utilities.js +33 -0
  145. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
  146. package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
  147. package/dist/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
  148. package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
  149. package/dist/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
  150. package/dist/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
  151. package/dist/node_modules/chokidar/LICENSE +21 -0
  152. package/dist/node_modules/chokidar/README.md +305 -0
  153. package/dist/node_modules/chokidar/handler.d.ts +90 -0
  154. package/dist/node_modules/chokidar/handler.js +632 -0
  155. package/dist/node_modules/chokidar/index.d.ts +217 -0
  156. package/dist/node_modules/chokidar/index.js +822 -0
  157. package/dist/node_modules/chokidar/package.json +63 -0
  158. package/dist/node_modules/cli-cursor/index.d.ts +47 -0
  159. package/dist/node_modules/cli-cursor/index.js +39 -0
  160. package/dist/node_modules/cli-cursor/license +9 -0
  161. package/dist/node_modules/cli-cursor/package.json +56 -0
  162. package/dist/node_modules/cli-cursor/readme.md +39 -0
  163. package/dist/node_modules/cli-spinners/index.d.ts +139 -0
  164. package/dist/node_modules/cli-spinners/index.js +11 -0
  165. package/dist/node_modules/cli-spinners/license +9 -0
  166. package/dist/node_modules/cli-spinners/package.json +56 -0
  167. package/dist/node_modules/cli-spinners/readme.md +74 -0
  168. package/dist/node_modules/cli-spinners/spinners.json +1697 -0
  169. package/dist/node_modules/commander/LICENSE +22 -0
  170. package/dist/node_modules/commander/Readme.md +1172 -0
  171. package/dist/node_modules/commander/index.js +21 -0
  172. package/dist/node_modules/commander/lib/argument.js +147 -0
  173. package/dist/node_modules/commander/lib/command.js +2790 -0
  174. package/dist/node_modules/commander/lib/error.js +36 -0
  175. package/dist/node_modules/commander/lib/help.js +731 -0
  176. package/dist/node_modules/commander/lib/option.js +377 -0
  177. package/dist/node_modules/commander/lib/suggestSimilar.js +99 -0
  178. package/dist/node_modules/commander/package-support.json +19 -0
  179. package/dist/node_modules/commander/package.json +64 -0
  180. package/dist/node_modules/commander/typings/index.d.ts +1113 -0
  181. package/dist/node_modules/core-util-is/LICENSE +19 -0
  182. package/dist/node_modules/core-util-is/README.md +3 -0
  183. package/dist/node_modules/core-util-is/lib/util.js +107 -0
  184. package/dist/node_modules/core-util-is/package.json +38 -0
  185. package/dist/node_modules/duplexer2/LICENSE.md +26 -0
  186. package/dist/node_modules/duplexer2/README.md +115 -0
  187. package/dist/node_modules/duplexer2/index.js +76 -0
  188. package/dist/node_modules/duplexer2/node_modules/readable-stream/.travis.yml +34 -0
  189. package/dist/node_modules/duplexer2/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  190. package/dist/node_modules/duplexer2/node_modules/readable-stream/GOVERNANCE.md +136 -0
  191. package/dist/node_modules/duplexer2/node_modules/readable-stream/LICENSE +47 -0
  192. package/dist/node_modules/duplexer2/node_modules/readable-stream/README.md +58 -0
  193. package/dist/node_modules/duplexer2/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  194. package/dist/node_modules/duplexer2/node_modules/readable-stream/duplex-browser.js +1 -0
  195. package/dist/node_modules/duplexer2/node_modules/readable-stream/duplex.js +1 -0
  196. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  197. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  198. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  199. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  200. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  201. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  202. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  203. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  204. package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  205. package/dist/node_modules/duplexer2/node_modules/readable-stream/package.json +52 -0
  206. package/dist/node_modules/duplexer2/node_modules/readable-stream/passthrough.js +1 -0
  207. package/dist/node_modules/duplexer2/node_modules/readable-stream/readable-browser.js +7 -0
  208. package/dist/node_modules/duplexer2/node_modules/readable-stream/readable.js +19 -0
  209. package/dist/node_modules/duplexer2/node_modules/readable-stream/transform.js +1 -0
  210. package/dist/node_modules/duplexer2/node_modules/readable-stream/writable-browser.js +1 -0
  211. package/dist/node_modules/duplexer2/node_modules/readable-stream/writable.js +8 -0
  212. package/dist/node_modules/duplexer2/node_modules/safe-buffer/LICENSE +21 -0
  213. package/dist/node_modules/duplexer2/node_modules/safe-buffer/README.md +584 -0
  214. package/dist/node_modules/duplexer2/node_modules/safe-buffer/index.d.ts +187 -0
  215. package/dist/node_modules/duplexer2/node_modules/safe-buffer/index.js +62 -0
  216. package/dist/node_modules/duplexer2/node_modules/safe-buffer/package.json +37 -0
  217. package/dist/node_modules/duplexer2/node_modules/string_decoder/.travis.yml +50 -0
  218. package/dist/node_modules/duplexer2/node_modules/string_decoder/LICENSE +48 -0
  219. package/dist/node_modules/duplexer2/node_modules/string_decoder/README.md +47 -0
  220. package/dist/node_modules/duplexer2/node_modules/string_decoder/lib/string_decoder.js +296 -0
  221. package/dist/node_modules/duplexer2/node_modules/string_decoder/package.json +31 -0
  222. package/dist/node_modules/duplexer2/package.json +28 -0
  223. package/dist/node_modules/fast-glob/LICENSE +21 -0
  224. package/dist/node_modules/fast-glob/README.md +830 -0
  225. package/dist/node_modules/fast-glob/out/index.d.ts +40 -0
  226. package/dist/node_modules/fast-glob/out/index.js +102 -0
  227. package/dist/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
  228. package/dist/node_modules/fast-glob/out/managers/tasks.js +110 -0
  229. package/dist/node_modules/fast-glob/out/providers/async.d.ts +9 -0
  230. package/dist/node_modules/fast-glob/out/providers/async.js +23 -0
  231. package/dist/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
  232. package/dist/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
  233. package/dist/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
  234. package/dist/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
  235. package/dist/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
  236. package/dist/node_modules/fast-glob/out/providers/filters/error.js +15 -0
  237. package/dist/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
  238. package/dist/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
  239. package/dist/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
  240. package/dist/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
  241. package/dist/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
  242. package/dist/node_modules/fast-glob/out/providers/provider.js +48 -0
  243. package/dist/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
  244. package/dist/node_modules/fast-glob/out/providers/stream.js +31 -0
  245. package/dist/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
  246. package/dist/node_modules/fast-glob/out/providers/sync.js +23 -0
  247. package/dist/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
  248. package/dist/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
  249. package/dist/node_modules/fast-glob/out/readers/async.d.ts +10 -0
  250. package/dist/node_modules/fast-glob/out/readers/async.js +35 -0
  251. package/dist/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
  252. package/dist/node_modules/fast-glob/out/readers/reader.js +33 -0
  253. package/dist/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
  254. package/dist/node_modules/fast-glob/out/readers/stream.js +55 -0
  255. package/dist/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
  256. package/dist/node_modules/fast-glob/out/readers/sync.js +43 -0
  257. package/dist/node_modules/fast-glob/out/settings.d.ts +164 -0
  258. package/dist/node_modules/fast-glob/out/settings.js +59 -0
  259. package/dist/node_modules/fast-glob/out/types/index.d.ts +31 -0
  260. package/dist/node_modules/fast-glob/out/types/index.js +2 -0
  261. package/dist/node_modules/fast-glob/out/utils/array.d.ts +2 -0
  262. package/dist/node_modules/fast-glob/out/utils/array.js +22 -0
  263. package/dist/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
  264. package/dist/node_modules/fast-glob/out/utils/errno.js +7 -0
  265. package/dist/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
  266. package/dist/node_modules/fast-glob/out/utils/fs.js +19 -0
  267. package/dist/node_modules/fast-glob/out/utils/index.d.ts +8 -0
  268. package/dist/node_modules/fast-glob/out/utils/index.js +17 -0
  269. package/dist/node_modules/fast-glob/out/utils/path.d.ts +13 -0
  270. package/dist/node_modules/fast-glob/out/utils/path.js +68 -0
  271. package/dist/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
  272. package/dist/node_modules/fast-glob/out/utils/pattern.js +206 -0
  273. package/dist/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
  274. package/dist/node_modules/fast-glob/out/utils/stream.js +17 -0
  275. package/dist/node_modules/fast-glob/out/utils/string.d.ts +2 -0
  276. package/dist/node_modules/fast-glob/out/utils/string.js +11 -0
  277. package/dist/node_modules/fast-glob/package.json +81 -0
  278. package/dist/node_modules/fastq/LICENSE +13 -0
  279. package/dist/node_modules/fastq/README.md +310 -0
  280. package/dist/node_modules/fastq/SECURITY.md +15 -0
  281. package/dist/node_modules/fastq/bench.js +66 -0
  282. package/dist/node_modules/fastq/eslint.config.js +11 -0
  283. package/dist/node_modules/fastq/example.js +14 -0
  284. package/dist/node_modules/fastq/example.mjs +9 -0
  285. package/dist/node_modules/fastq/index.d.ts +59 -0
  286. package/dist/node_modules/fastq/package.json +49 -0
  287. package/dist/node_modules/fastq/queue.js +346 -0
  288. package/dist/node_modules/fastq/test/example.ts +83 -0
  289. package/dist/node_modules/fastq/test/promise.js +325 -0
  290. package/dist/node_modules/fastq/test/test.js +733 -0
  291. package/dist/node_modules/fastq/test/tsconfig.json +11 -0
  292. package/dist/node_modules/fill-range/LICENSE +21 -0
  293. package/dist/node_modules/fill-range/README.md +237 -0
  294. package/dist/node_modules/fill-range/index.js +248 -0
  295. package/dist/node_modules/fill-range/package.json +74 -0
  296. package/dist/node_modules/fs-extra/LICENSE +15 -0
  297. package/dist/node_modules/fs-extra/README.md +294 -0
  298. package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
  299. package/dist/node_modules/fs-extra/lib/copy/copy.js +182 -0
  300. package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
  301. package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
  302. package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
  303. package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
  304. package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
  305. package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
  306. package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
  307. package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
  308. package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
  309. package/dist/node_modules/fs-extra/lib/fs/index.js +146 -0
  310. package/dist/node_modules/fs-extra/lib/index.js +16 -0
  311. package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
  312. package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  313. package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  314. package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
  315. package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  316. package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  317. package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  318. package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
  319. package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
  320. package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
  321. package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
  322. package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  323. package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
  324. package/dist/node_modules/fs-extra/lib/util/stat.js +159 -0
  325. package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
  326. package/dist/node_modules/fs-extra/package.json +71 -0
  327. package/dist/node_modules/get-east-asian-width/index.d.ts +60 -0
  328. package/dist/node_modules/get-east-asian-width/index.js +35 -0
  329. package/dist/node_modules/get-east-asian-width/license +9 -0
  330. package/dist/node_modules/get-east-asian-width/lookup-data.js +21 -0
  331. package/dist/node_modules/get-east-asian-width/lookup.js +138 -0
  332. package/dist/node_modules/get-east-asian-width/package.json +71 -0
  333. package/dist/node_modules/get-east-asian-width/readme.md +65 -0
  334. package/dist/node_modules/get-east-asian-width/utilities.js +24 -0
  335. package/dist/node_modules/glob-parent/CHANGELOG.md +110 -0
  336. package/dist/node_modules/glob-parent/LICENSE +15 -0
  337. package/dist/node_modules/glob-parent/README.md +137 -0
  338. package/dist/node_modules/glob-parent/index.js +42 -0
  339. package/dist/node_modules/glob-parent/package.json +48 -0
  340. package/dist/node_modules/graceful-fs/LICENSE +15 -0
  341. package/dist/node_modules/graceful-fs/README.md +143 -0
  342. package/dist/node_modules/graceful-fs/clone.js +23 -0
  343. package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
  344. package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
  345. package/dist/node_modules/graceful-fs/package.json +53 -0
  346. package/dist/node_modules/graceful-fs/polyfills.js +355 -0
  347. package/dist/node_modules/inherits/LICENSE +16 -0
  348. package/dist/node_modules/inherits/README.md +42 -0
  349. package/dist/node_modules/inherits/inherits.js +9 -0
  350. package/dist/node_modules/inherits/inherits_browser.js +27 -0
  351. package/dist/node_modules/inherits/package.json +29 -0
  352. package/dist/node_modules/is-extglob/LICENSE +21 -0
  353. package/dist/node_modules/is-extglob/README.md +107 -0
  354. package/dist/node_modules/is-extglob/index.js +20 -0
  355. package/dist/node_modules/is-extglob/package.json +69 -0
  356. package/dist/node_modules/is-glob/LICENSE +21 -0
  357. package/dist/node_modules/is-glob/README.md +206 -0
  358. package/dist/node_modules/is-glob/index.js +150 -0
  359. package/dist/node_modules/is-glob/package.json +81 -0
  360. package/dist/node_modules/is-interactive/index.d.ts +25 -0
  361. package/dist/node_modules/is-interactive/index.js +7 -0
  362. package/dist/node_modules/is-interactive/license +9 -0
  363. package/dist/node_modules/is-interactive/package.json +41 -0
  364. package/dist/node_modules/is-interactive/readme.md +52 -0
  365. package/dist/node_modules/is-number/LICENSE +21 -0
  366. package/dist/node_modules/is-number/README.md +187 -0
  367. package/dist/node_modules/is-number/index.js +18 -0
  368. package/dist/node_modules/is-number/package.json +82 -0
  369. package/dist/node_modules/is-unicode-supported/index.d.ts +12 -0
  370. package/dist/node_modules/is-unicode-supported/index.js +21 -0
  371. package/dist/node_modules/is-unicode-supported/license +9 -0
  372. package/dist/node_modules/is-unicode-supported/package.json +47 -0
  373. package/dist/node_modules/is-unicode-supported/readme.md +35 -0
  374. package/dist/node_modules/isarray/.travis.yml +4 -0
  375. package/dist/node_modules/isarray/Makefile +6 -0
  376. package/dist/node_modules/isarray/README.md +60 -0
  377. package/dist/node_modules/isarray/component.json +19 -0
  378. package/dist/node_modules/isarray/index.js +5 -0
  379. package/dist/node_modules/isarray/package.json +45 -0
  380. package/dist/node_modules/isarray/test.js +20 -0
  381. package/dist/node_modules/jsonfile/LICENSE +15 -0
  382. package/dist/node_modules/jsonfile/README.md +230 -0
  383. package/dist/node_modules/jsonfile/index.js +88 -0
  384. package/dist/node_modules/jsonfile/package.json +40 -0
  385. package/dist/node_modules/jsonfile/utils.js +18 -0
  386. package/dist/node_modules/log-symbols/browser-symbols.js +4 -0
  387. package/dist/node_modules/log-symbols/browser.js +1 -0
  388. package/dist/node_modules/log-symbols/index.d.ts +22 -0
  389. package/dist/node_modules/log-symbols/index.js +1 -0
  390. package/dist/node_modules/log-symbols/license +9 -0
  391. package/dist/node_modules/log-symbols/package.json +60 -0
  392. package/dist/node_modules/log-symbols/readme.md +39 -0
  393. package/dist/node_modules/log-symbols/symbols.js +14 -0
  394. package/dist/node_modules/merge2/LICENSE +21 -0
  395. package/dist/node_modules/merge2/README.md +144 -0
  396. package/dist/node_modules/merge2/index.js +144 -0
  397. package/dist/node_modules/merge2/package.json +43 -0
  398. package/dist/node_modules/micromatch/LICENSE +21 -0
  399. package/dist/node_modules/micromatch/README.md +1024 -0
  400. package/dist/node_modules/micromatch/index.js +474 -0
  401. package/dist/node_modules/micromatch/package.json +119 -0
  402. package/dist/node_modules/mimic-function/index.d.ts +52 -0
  403. package/dist/node_modules/mimic-function/index.js +72 -0
  404. package/dist/node_modules/mimic-function/license +9 -0
  405. package/dist/node_modules/mimic-function/package.json +49 -0
  406. package/dist/node_modules/mimic-function/readme.md +80 -0
  407. package/dist/node_modules/node-int64/Int64.js +268 -0
  408. package/dist/node_modules/node-int64/LICENSE +19 -0
  409. package/dist/node_modules/node-int64/README.md +78 -0
  410. package/dist/node_modules/node-int64/package.json +27 -0
  411. package/dist/node_modules/node-int64/test.js +120 -0
  412. package/dist/node_modules/onetime/index.d.ts +59 -0
  413. package/dist/node_modules/onetime/index.js +41 -0
  414. package/dist/node_modules/onetime/license +9 -0
  415. package/dist/node_modules/onetime/package.json +49 -0
  416. package/dist/node_modules/onetime/readme.md +88 -0
  417. package/dist/node_modules/ora/index.d.ts +380 -0
  418. package/dist/node_modules/ora/index.js +668 -0
  419. package/dist/node_modules/ora/license +9 -0
  420. package/dist/node_modules/ora/package.json +62 -0
  421. package/dist/node_modules/ora/readme.md +427 -0
  422. package/dist/node_modules/pend/LICENSE +23 -0
  423. package/dist/node_modules/pend/README.md +41 -0
  424. package/dist/node_modules/pend/index.js +55 -0
  425. package/dist/node_modules/pend/package.json +18 -0
  426. package/dist/node_modules/pend/test.js +137 -0
  427. package/dist/node_modules/picomatch/LICENSE +21 -0
  428. package/dist/node_modules/picomatch/README.md +716 -0
  429. package/dist/node_modules/picomatch/index.js +3 -0
  430. package/dist/node_modules/picomatch/lib/constants.js +184 -0
  431. package/dist/node_modules/picomatch/lib/parse.js +1392 -0
  432. package/dist/node_modules/picomatch/lib/picomatch.js +342 -0
  433. package/dist/node_modules/picomatch/lib/scan.js +391 -0
  434. package/dist/node_modules/picomatch/lib/utils.js +64 -0
  435. package/dist/node_modules/picomatch/package.json +81 -0
  436. package/dist/node_modules/process-nextick-args/index.js +45 -0
  437. package/dist/node_modules/process-nextick-args/license.md +19 -0
  438. package/dist/node_modules/process-nextick-args/package.json +25 -0
  439. package/dist/node_modules/process-nextick-args/readme.md +18 -0
  440. package/dist/node_modules/proper-lockfile/CHANGELOG.md +108 -0
  441. package/dist/node_modules/proper-lockfile/LICENSE +21 -0
  442. package/dist/node_modules/proper-lockfile/README.md +183 -0
  443. package/dist/node_modules/proper-lockfile/index.js +40 -0
  444. package/dist/node_modules/proper-lockfile/lib/adapter.js +85 -0
  445. package/dist/node_modules/proper-lockfile/lib/lockfile.js +342 -0
  446. package/dist/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
  447. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/LICENSE.txt +16 -0
  448. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/README.md +39 -0
  449. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/index.js +202 -0
  450. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/package.json +38 -0
  451. package/dist/node_modules/proper-lockfile/node_modules/signal-exit/signals.js +53 -0
  452. package/dist/node_modules/proper-lockfile/package.json +71 -0
  453. package/dist/node_modules/queue-microtask/LICENSE +20 -0
  454. package/dist/node_modules/queue-microtask/README.md +90 -0
  455. package/dist/node_modules/queue-microtask/index.d.ts +2 -0
  456. package/dist/node_modules/queue-microtask/index.js +9 -0
  457. package/dist/node_modules/queue-microtask/package.json +55 -0
  458. package/dist/node_modules/readdirp/LICENSE +21 -0
  459. package/dist/node_modules/readdirp/README.md +120 -0
  460. package/dist/node_modules/readdirp/index.d.ts +108 -0
  461. package/dist/node_modules/readdirp/index.js +272 -0
  462. package/dist/node_modules/readdirp/package.json +66 -0
  463. package/dist/node_modules/restore-cursor/index.d.ts +15 -0
  464. package/dist/node_modules/restore-cursor/index.js +15 -0
  465. package/dist/node_modules/restore-cursor/license +9 -0
  466. package/dist/node_modules/restore-cursor/package.json +57 -0
  467. package/dist/node_modules/restore-cursor/readme.md +21 -0
  468. package/dist/node_modules/retry/.travis.yml +15 -0
  469. package/dist/node_modules/retry/License +21 -0
  470. package/dist/node_modules/retry/Makefile +18 -0
  471. package/dist/node_modules/retry/README.md +227 -0
  472. package/dist/node_modules/retry/equation.gif +0 -0
  473. package/dist/node_modules/retry/example/dns.js +31 -0
  474. package/dist/node_modules/retry/example/stop.js +40 -0
  475. package/dist/node_modules/retry/index.js +1 -0
  476. package/dist/node_modules/retry/lib/retry.js +100 -0
  477. package/dist/node_modules/retry/lib/retry_operation.js +158 -0
  478. package/dist/node_modules/retry/package.json +32 -0
  479. package/dist/node_modules/retry/test/common.js +10 -0
  480. package/dist/node_modules/retry/test/integration/test-forever.js +24 -0
  481. package/dist/node_modules/retry/test/integration/test-retry-operation.js +258 -0
  482. package/dist/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
  483. package/dist/node_modules/retry/test/integration/test-timeouts.js +69 -0
  484. package/dist/node_modules/reusify/.github/dependabot.yml +7 -0
  485. package/dist/node_modules/reusify/.github/workflows/ci.yml +96 -0
  486. package/dist/node_modules/reusify/LICENSE +22 -0
  487. package/dist/node_modules/reusify/README.md +139 -0
  488. package/dist/node_modules/reusify/SECURITY.md +15 -0
  489. package/dist/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
  490. package/dist/node_modules/reusify/benchmarks/fib.js +13 -0
  491. package/dist/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
  492. package/dist/node_modules/reusify/eslint.config.js +14 -0
  493. package/dist/node_modules/reusify/package.json +50 -0
  494. package/dist/node_modules/reusify/reusify.d.ts +14 -0
  495. package/dist/node_modules/reusify/reusify.js +33 -0
  496. package/dist/node_modules/reusify/test.js +66 -0
  497. package/dist/node_modules/reusify/tsconfig.json +11 -0
  498. package/dist/node_modules/run-parallel/LICENSE +20 -0
  499. package/dist/node_modules/run-parallel/README.md +85 -0
  500. package/dist/node_modules/run-parallel/index.js +51 -0
  501. package/dist/node_modules/run-parallel/package.json +58 -0
  502. package/dist/node_modules/signal-exit/LICENSE.txt +16 -0
  503. package/dist/node_modules/signal-exit/README.md +74 -0
  504. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
  505. package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
  506. package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  507. package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
  508. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
  509. package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
  510. package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
  511. package/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
  512. package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
  513. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
  514. package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
  515. package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  516. package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
  517. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
  518. package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
  519. package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  520. package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
  521. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
  522. package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
  523. package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
  524. package/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
  525. package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
  526. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
  527. package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
  528. package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  529. package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
  530. package/dist/node_modules/signal-exit/package.json +106 -0
  531. package/dist/node_modules/stdin-discarder/index.d.ts +13 -0
  532. package/dist/node_modules/stdin-discarder/index.js +84 -0
  533. package/dist/node_modules/stdin-discarder/license +9 -0
  534. package/dist/node_modules/stdin-discarder/package.json +42 -0
  535. package/dist/node_modules/stdin-discarder/readme.md +37 -0
  536. package/dist/node_modules/string-width/index.d.ts +39 -0
  537. package/dist/node_modules/string-width/index.js +203 -0
  538. package/dist/node_modules/string-width/license +9 -0
  539. package/dist/node_modules/string-width/package.json +65 -0
  540. package/dist/node_modules/string-width/readme.md +66 -0
  541. package/dist/node_modules/strip-ansi/index.d.ts +15 -0
  542. package/dist/node_modules/strip-ansi/index.js +19 -0
  543. package/dist/node_modules/strip-ansi/license +9 -0
  544. package/dist/node_modules/strip-ansi/package.json +59 -0
  545. package/dist/node_modules/strip-ansi/readme.md +37 -0
  546. package/dist/node_modules/to-regex-range/LICENSE +21 -0
  547. package/dist/node_modules/to-regex-range/README.md +305 -0
  548. package/dist/node_modules/to-regex-range/index.js +288 -0
  549. package/dist/node_modules/to-regex-range/package.json +88 -0
  550. package/dist/node_modules/universalify/LICENSE +20 -0
  551. package/dist/node_modules/universalify/README.md +76 -0
  552. package/dist/node_modules/universalify/index.js +24 -0
  553. package/dist/node_modules/universalify/package.json +34 -0
  554. package/dist/node_modules/unzipper/.gitattributes +1 -0
  555. package/dist/node_modules/unzipper/LICENSE +25 -0
  556. package/dist/node_modules/unzipper/README.md +397 -0
  557. package/dist/node_modules/unzipper/eslint.config.mjs +29 -0
  558. package/dist/node_modules/unzipper/lib/BufferStream.js +19 -0
  559. package/dist/node_modules/unzipper/lib/Decrypt.js +94 -0
  560. package/dist/node_modules/unzipper/lib/NoopStream.js +14 -0
  561. package/dist/node_modules/unzipper/lib/Open/directory.js +244 -0
  562. package/dist/node_modules/unzipper/lib/Open/index.js +141 -0
  563. package/dist/node_modules/unzipper/lib/Open/unzip.js +120 -0
  564. package/dist/node_modules/unzipper/lib/PullStream.js +139 -0
  565. package/dist/node_modules/unzipper/lib/extract.js +63 -0
  566. package/dist/node_modules/unzipper/lib/parse.js +288 -0
  567. package/dist/node_modules/unzipper/lib/parseBuffer.js +55 -0
  568. package/dist/node_modules/unzipper/lib/parseDateTime.js +13 -0
  569. package/dist/node_modules/unzipper/lib/parseExtraField.js +40 -0
  570. package/dist/node_modules/unzipper/lib/parseOne.js +54 -0
  571. package/dist/node_modules/unzipper/package.json +62 -0
  572. package/dist/node_modules/unzipper/unzip.js +5 -0
  573. package/dist/node_modules/util-deprecate/History.md +16 -0
  574. package/dist/node_modules/util-deprecate/LICENSE +24 -0
  575. package/dist/node_modules/util-deprecate/README.md +53 -0
  576. package/dist/node_modules/util-deprecate/browser.js +67 -0
  577. package/dist/node_modules/util-deprecate/node.js +6 -0
  578. package/dist/node_modules/util-deprecate/package.json +27 -0
  579. package/dist/node_modules/yauzl/LICENSE +21 -0
  580. package/dist/node_modules/yauzl/README.md +1015 -0
  581. package/dist/node_modules/yauzl/crc32.js +45 -0
  582. package/dist/node_modules/yauzl/fd-slicer.js +188 -0
  583. package/dist/node_modules/yauzl/index.js +1096 -0
  584. package/dist/node_modules/yauzl/package.json +40 -0
  585. package/dist/node_modules/yazl/LICENSE +21 -0
  586. package/dist/node_modules/yazl/README.md +457 -0
  587. package/dist/node_modules/yazl/index.js +826 -0
  588. package/dist/node_modules/yazl/package.json +34 -0
  589. package/dist/node_modules/yoctocolors/base.d.ts +69 -0
  590. package/dist/node_modules/yoctocolors/base.js +118 -0
  591. package/dist/node_modules/yoctocolors/index.d.ts +2 -0
  592. package/dist/node_modules/yoctocolors/index.js +2 -0
  593. package/dist/node_modules/yoctocolors/license +9 -0
  594. package/dist/node_modules/yoctocolors/package.json +69 -0
  595. package/dist/node_modules/yoctocolors/readme.md +163 -0
  596. package/dist/node_modules/zip-lib/LICENSE +21 -0
  597. package/dist/node_modules/zip-lib/README.md +473 -0
  598. package/dist/node_modules/zip-lib/lib/cancelable.d.ts +38 -0
  599. package/dist/node_modules/zip-lib/lib/cancelable.js +70 -0
  600. package/dist/node_modules/zip-lib/lib/fs.d.ts +32 -0
  601. package/dist/node_modules/zip-lib/lib/fs.js +286 -0
  602. package/dist/node_modules/zip-lib/lib/index.d.ts +44 -0
  603. package/dist/node_modules/zip-lib/lib/index.js +58 -0
  604. package/dist/node_modules/zip-lib/lib/unzip.d.ts +99 -0
  605. package/dist/node_modules/zip-lib/lib/unzip.js +450 -0
  606. package/dist/node_modules/zip-lib/lib/zip.d.ts +86 -0
  607. package/dist/node_modules/zip-lib/lib/zip.js +363 -0
  608. package/dist/node_modules/zip-lib/package.json +46 -0
  609. package/dist/node_modules/zod/LICENSE +21 -0
  610. package/dist/node_modules/zod/README.md +218 -0
  611. package/dist/node_modules/zod/compile.cjs +96 -0
  612. package/dist/node_modules/zod/compile.d.cts +1 -0
  613. package/dist/node_modules/zod/compile.d.ts +1 -0
  614. package/dist/node_modules/zod/compile.js +52 -0
  615. package/dist/node_modules/zod/index.cjs +52 -0
  616. package/dist/node_modules/zod/index.d.cts +3 -0
  617. package/dist/node_modules/zod/index.d.ts +3 -0
  618. package/dist/node_modules/zod/index.js +7 -0
  619. package/dist/node_modules/zod/locales/index.cjs +36 -0
  620. package/dist/node_modules/zod/locales/index.d.cts +1 -0
  621. package/dist/node_modules/zod/locales/index.d.ts +1 -0
  622. package/dist/node_modules/zod/locales/index.js +1 -0
  623. package/dist/node_modules/zod/locales/package.json +7 -0
  624. package/dist/node_modules/zod/mini/index.cjs +51 -0
  625. package/dist/node_modules/zod/mini/index.d.cts +3 -0
  626. package/dist/node_modules/zod/mini/index.d.ts +3 -0
  627. package/dist/node_modules/zod/mini/index.js +3 -0
  628. package/dist/node_modules/zod/mini/package.json +7 -0
  629. package/dist/node_modules/zod/package.json +147 -0
  630. package/dist/node_modules/zod/src/compile.ts +56 -0
  631. package/dist/node_modules/zod/src/index.ts +7 -0
  632. package/dist/node_modules/zod/src/locales/index.ts +1 -0
  633. package/dist/node_modules/zod/src/mini/index.ts +3 -0
  634. package/dist/node_modules/zod/src/v3/ZodError.ts +340 -0
  635. package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  636. package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  637. package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  638. package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  639. package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  640. package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  641. package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  642. package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  643. package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  644. package/dist/node_modules/zod/src/v3/errors.ts +13 -0
  645. package/dist/node_modules/zod/src/v3/external.ts +6 -0
  646. package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  647. package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  648. package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  649. package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  650. package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  651. package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
  652. package/dist/node_modules/zod/src/v3/index.ts +4 -0
  653. package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
  654. package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
  655. package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  656. package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  657. package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  658. package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  659. package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  660. package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  661. package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  662. package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  663. package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  664. package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  665. package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  666. package/dist/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  667. package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  668. package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  669. package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  670. package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  671. package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  672. package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  673. package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  674. package/dist/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  675. package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  676. package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  677. package/dist/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  678. package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  679. package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  680. package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  681. package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  682. package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  683. package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  684. package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  685. package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  686. package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  687. package/dist/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  688. package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  689. package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  690. package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  691. package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  692. package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  693. package/dist/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  694. package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  695. package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  696. package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  697. package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  698. package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  699. package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  700. package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  701. package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  702. package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  703. package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  704. package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  705. package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  706. package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  707. package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  708. package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  709. package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  710. package/dist/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  711. package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  712. package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  713. package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  714. package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  715. package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  716. package/dist/node_modules/zod/src/v3/types.ts +5138 -0
  717. package/dist/node_modules/zod/src/v4/classic/checks.ts +33 -0
  718. package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  719. package/dist/node_modules/zod/src/v4/classic/compat.ts +78 -0
  720. package/dist/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  721. package/dist/node_modules/zod/src/v4/classic/errors.ts +97 -0
  722. package/dist/node_modules/zod/src/v4/classic/external.ts +57 -0
  723. package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  724. package/dist/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  725. package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
  726. package/dist/node_modules/zod/src/v4/classic/iso.ts +20 -0
  727. package/dist/node_modules/zod/src/v4/classic/parse.ts +88 -0
  728. package/dist/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  729. package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  730. package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  731. package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  732. package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  733. package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  734. package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  735. package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  736. package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  737. package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  738. package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  739. package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  740. package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  741. package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  742. package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  743. package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  744. package/dist/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  745. package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  746. package/dist/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  747. package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  748. package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  749. package/dist/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  750. package/dist/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  751. package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  752. package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  753. package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  754. package/dist/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  755. package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  756. package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  757. package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  758. package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  759. package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  760. package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  761. package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  762. package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  763. package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  764. package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  765. package/dist/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  766. package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  767. package/dist/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  768. package/dist/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  769. package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  770. package/dist/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  771. package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  772. package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  773. package/dist/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  774. package/dist/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  775. package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  776. package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  777. package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  778. package/dist/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  779. package/dist/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  780. package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  781. package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  782. package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  783. package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  784. package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  785. package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  786. package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  787. package/dist/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  788. package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  789. package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  790. package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  791. package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  792. package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  793. package/dist/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  794. package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  795. package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  796. package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  797. package/dist/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  798. package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  799. package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  800. package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  801. package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  802. package/dist/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  803. package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  804. package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  805. package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  806. package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  807. package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  808. package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  809. package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  810. package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  811. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  812. package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  813. package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  814. package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  815. package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  816. package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  817. package/dist/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  818. package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  819. package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  820. package/dist/node_modules/zod/src/v4/core/api.ts +1875 -0
  821. package/dist/node_modules/zod/src/v4/core/checks.ts +1266 -0
  822. package/dist/node_modules/zod/src/v4/core/compile.ts +2322 -0
  823. package/dist/node_modules/zod/src/v4/core/core.ts +230 -0
  824. package/dist/node_modules/zod/src/v4/core/doc.ts +52 -0
  825. package/dist/node_modules/zod/src/v4/core/errors.ts +543 -0
  826. package/dist/node_modules/zod/src/v4/core/index.ts +19 -0
  827. package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  828. package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  829. package/dist/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  830. package/dist/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  831. package/dist/node_modules/zod/src/v4/core/parse.ts +309 -0
  832. package/dist/node_modules/zod/src/v4/core/regexes.ts +217 -0
  833. package/dist/node_modules/zod/src/v4/core/registries.ts +105 -0
  834. package/dist/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  835. package/dist/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  836. package/dist/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  837. package/dist/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  838. package/dist/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  839. package/dist/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  840. package/dist/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  841. package/dist/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  842. package/dist/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  843. package/dist/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  844. package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  845. package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  846. package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  847. package/dist/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  848. package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  849. package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  850. package/dist/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  851. package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  852. package/dist/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  853. package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  854. package/dist/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  855. package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  856. package/dist/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  857. package/dist/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  858. package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  859. package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  860. package/dist/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  861. package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  862. package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  863. package/dist/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  864. package/dist/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  865. package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  866. package/dist/node_modules/zod/src/v4/core/util.ts +1293 -0
  867. package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
  868. package/dist/node_modules/zod/src/v4/core/visit.ts +193 -0
  869. package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
  870. package/dist/node_modules/zod/src/v4/index.ts +4 -0
  871. package/dist/node_modules/zod/src/v4/locales/ar.ts +120 -0
  872. package/dist/node_modules/zod/src/v4/locales/az.ts +116 -0
  873. package/dist/node_modules/zod/src/v4/locales/be.ts +188 -0
  874. package/dist/node_modules/zod/src/v4/locales/bg.ts +133 -0
  875. package/dist/node_modules/zod/src/v4/locales/bn.ts +123 -0
  876. package/dist/node_modules/zod/src/v4/locales/ca.ts +121 -0
  877. package/dist/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  878. package/dist/node_modules/zod/src/v4/locales/cs.ts +123 -0
  879. package/dist/node_modules/zod/src/v4/locales/da.ts +128 -0
  880. package/dist/node_modules/zod/src/v4/locales/de.ts +121 -0
  881. package/dist/node_modules/zod/src/v4/locales/el.ts +124 -0
  882. package/dist/node_modules/zod/src/v4/locales/en.ts +136 -0
  883. package/dist/node_modules/zod/src/v4/locales/eo.ts +123 -0
  884. package/dist/node_modules/zod/src/v4/locales/es.ts +145 -0
  885. package/dist/node_modules/zod/src/v4/locales/fa.ts +131 -0
  886. package/dist/node_modules/zod/src/v4/locales/fi.ts +126 -0
  887. package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  888. package/dist/node_modules/zod/src/v4/locales/fr.ts +139 -0
  889. package/dist/node_modules/zod/src/v4/locales/gu.ts +123 -0
  890. package/dist/node_modules/zod/src/v4/locales/he.ts +253 -0
  891. package/dist/node_modules/zod/src/v4/locales/hi.ts +126 -0
  892. package/dist/node_modules/zod/src/v4/locales/hr.ts +135 -0
  893. package/dist/node_modules/zod/src/v4/locales/hu.ts +122 -0
  894. package/dist/node_modules/zod/src/v4/locales/hy.ts +175 -0
  895. package/dist/node_modules/zod/src/v4/locales/id.ts +120 -0
  896. package/dist/node_modules/zod/src/v4/locales/index.ts +63 -0
  897. package/dist/node_modules/zod/src/v4/locales/is.ts +124 -0
  898. package/dist/node_modules/zod/src/v4/locales/it.ts +121 -0
  899. package/dist/node_modules/zod/src/v4/locales/ja.ts +119 -0
  900. package/dist/node_modules/zod/src/v4/locales/ka.ts +128 -0
  901. package/dist/node_modules/zod/src/v4/locales/kh.ts +7 -0
  902. package/dist/node_modules/zod/src/v4/locales/km.ts +124 -0
  903. package/dist/node_modules/zod/src/v4/locales/kn.ts +126 -0
  904. package/dist/node_modules/zod/src/v4/locales/ko.ts +126 -0
  905. package/dist/node_modules/zod/src/v4/locales/lt.ts +243 -0
  906. package/dist/node_modules/zod/src/v4/locales/mk.ts +123 -0
  907. package/dist/node_modules/zod/src/v4/locales/ms.ts +120 -0
  908. package/dist/node_modules/zod/src/v4/locales/ne.ts +128 -0
  909. package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
  910. package/dist/node_modules/zod/src/v4/locales/nn.ts +121 -0
  911. package/dist/node_modules/zod/src/v4/locales/no.ts +121 -0
  912. package/dist/node_modules/zod/src/v4/locales/ota.ts +122 -0
  913. package/dist/node_modules/zod/src/v4/locales/pl.ts +123 -0
  914. package/dist/node_modules/zod/src/v4/locales/ps.ts +131 -0
  915. package/dist/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  916. package/dist/node_modules/zod/src/v4/locales/pt.ts +159 -0
  917. package/dist/node_modules/zod/src/v4/locales/ro.ts +132 -0
  918. package/dist/node_modules/zod/src/v4/locales/ru.ts +188 -0
  919. package/dist/node_modules/zod/src/v4/locales/sk.ts +123 -0
  920. package/dist/node_modules/zod/src/v4/locales/sl.ts +123 -0
  921. package/dist/node_modules/zod/src/v4/locales/sv.ts +124 -0
  922. package/dist/node_modules/zod/src/v4/locales/ta.ts +123 -0
  923. package/dist/node_modules/zod/src/v4/locales/tg.ts +135 -0
  924. package/dist/node_modules/zod/src/v4/locales/th.ts +124 -0
  925. package/dist/node_modules/zod/src/v4/locales/tk.ts +113 -0
  926. package/dist/node_modules/zod/src/v4/locales/tr.ts +116 -0
  927. package/dist/node_modules/zod/src/v4/locales/ua.ts +7 -0
  928. package/dist/node_modules/zod/src/v4/locales/uk.ts +122 -0
  929. package/dist/node_modules/zod/src/v4/locales/ur.ts +124 -0
  930. package/dist/node_modules/zod/src/v4/locales/uz.ts +120 -0
  931. package/dist/node_modules/zod/src/v4/locales/vi.ts +122 -0
  932. package/dist/node_modules/zod/src/v4/locales/yo.ts +129 -0
  933. package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  934. package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  935. package/dist/node_modules/zod/src/v4/mini/checks.ts +33 -0
  936. package/dist/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  937. package/dist/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  938. package/dist/node_modules/zod/src/v4/mini/external.ts +52 -0
  939. package/dist/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  940. package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
  941. package/dist/node_modules/zod/src/v4/mini/iso.ts +66 -0
  942. package/dist/node_modules/zod/src/v4/mini/parse.ts +16 -0
  943. package/dist/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  944. package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  945. package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  946. package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  947. package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  948. package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  949. package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  950. package/dist/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  951. package/dist/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  952. package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  953. package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  954. package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  955. package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  956. package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  957. package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  958. package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  959. package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  960. package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  961. package/dist/node_modules/zod/src/v4-mini/index.ts +3 -0
  962. package/dist/node_modules/zod/v3/ZodError.cjs +167 -0
  963. package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
  964. package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
  965. package/dist/node_modules/zod/v3/ZodError.js +143 -0
  966. package/dist/node_modules/zod/v3/errors.cjs +36 -0
  967. package/dist/node_modules/zod/v3/errors.d.cts +5 -0
  968. package/dist/node_modules/zod/v3/errors.d.ts +5 -0
  969. package/dist/node_modules/zod/v3/errors.js +9 -0
  970. package/dist/node_modules/zod/v3/external.cjs +41 -0
  971. package/dist/node_modules/zod/v3/external.d.cts +6 -0
  972. package/dist/node_modules/zod/v3/external.d.ts +6 -0
  973. package/dist/node_modules/zod/v3/external.js +6 -0
  974. package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  975. package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  976. package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  977. package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  978. package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  979. package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  980. package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  981. package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  982. package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  983. package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  984. package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  985. package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  986. package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  987. package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  988. package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  989. package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  990. package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  991. package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  992. package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  993. package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  994. package/dist/node_modules/zod/v3/helpers/util.cjs +156 -0
  995. package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
  996. package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
  997. package/dist/node_modules/zod/v3/helpers/util.js +133 -0
  998. package/dist/node_modules/zod/v3/index.cjs +52 -0
  999. package/dist/node_modules/zod/v3/index.d.cts +4 -0
  1000. package/dist/node_modules/zod/v3/index.d.ts +4 -0
  1001. package/dist/node_modules/zod/v3/index.js +4 -0
  1002. package/dist/node_modules/zod/v3/locales/en.cjs +112 -0
  1003. package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
  1004. package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
  1005. package/dist/node_modules/zod/v3/locales/en.js +109 -0
  1006. package/dist/node_modules/zod/v3/package.json +7 -0
  1007. package/dist/node_modules/zod/v3/standard-schema.cjs +21 -0
  1008. package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1009. package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1010. package/dist/node_modules/zod/v3/standard-schema.js +1 -0
  1011. package/dist/node_modules/zod/v3/types.cjs +3798 -0
  1012. package/dist/node_modules/zod/v3/types.d.cts +1034 -0
  1013. package/dist/node_modules/zod/v3/types.d.ts +1034 -0
  1014. package/dist/node_modules/zod/v3/types.js +3697 -0
  1015. package/dist/node_modules/zod/v4/classic/checks.cjs +53 -0
  1016. package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1017. package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1018. package/dist/node_modules/zod/v4/classic/checks.js +1 -0
  1019. package/dist/node_modules/zod/v4/classic/coerce.cjs +66 -0
  1020. package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1021. package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1022. package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
  1023. package/dist/node_modules/zod/v4/classic/compat.cjs +80 -0
  1024. package/dist/node_modules/zod/v4/classic/compat.d.cts +48 -0
  1025. package/dist/node_modules/zod/v4/classic/compat.d.ts +48 -0
  1026. package/dist/node_modules/zod/v4/classic/compat.js +31 -0
  1027. package/dist/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1028. package/dist/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  1029. package/dist/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  1030. package/dist/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1031. package/dist/node_modules/zod/v4/classic/errors.cjs +102 -0
  1032. package/dist/node_modules/zod/v4/classic/errors.d.cts +29 -0
  1033. package/dist/node_modules/zod/v4/classic/errors.d.ts +29 -0
  1034. package/dist/node_modules/zod/v4/classic/errors.js +57 -0
  1035. package/dist/node_modules/zod/v4/classic/external.cjs +97 -0
  1036. package/dist/node_modules/zod/v4/classic/external.d.cts +19 -0
  1037. package/dist/node_modules/zod/v4/classic/external.d.ts +19 -0
  1038. package/dist/node_modules/zod/v4/classic/external.js +17 -0
  1039. package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  1040. package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1041. package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1042. package/dist/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  1043. package/dist/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1044. package/dist/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1045. package/dist/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1046. package/dist/node_modules/zod/v4/classic/in-out.js +36 -0
  1047. package/dist/node_modules/zod/v4/classic/index.cjs +52 -0
  1048. package/dist/node_modules/zod/v4/classic/index.d.cts +3 -0
  1049. package/dist/node_modules/zod/v4/classic/index.d.ts +3 -0
  1050. package/dist/node_modules/zod/v4/classic/index.js +4 -0
  1051. package/dist/node_modules/zod/v4/classic/iso.cjs +68 -0
  1052. package/dist/node_modules/zod/v4/classic/iso.d.cts +7 -0
  1053. package/dist/node_modules/zod/v4/classic/iso.d.ts +7 -0
  1054. package/dist/node_modules/zod/v4/classic/iso.js +15 -0
  1055. package/dist/node_modules/zod/v4/classic/package.json +7 -0
  1056. package/dist/node_modules/zod/v4/classic/parse.cjs +63 -0
  1057. package/dist/node_modules/zod/v4/classic/parse.d.cts +44 -0
  1058. package/dist/node_modules/zod/v4/classic/parse.d.ts +44 -0
  1059. package/dist/node_modules/zod/v4/classic/parse.js +16 -0
  1060. package/dist/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  1061. package/dist/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  1062. package/dist/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  1063. package/dist/node_modules/zod/v4/classic/schemas.js +1535 -0
  1064. package/dist/node_modules/zod/v4/core/api.cjs +1269 -0
  1065. package/dist/node_modules/zod/v4/core/api.d.cts +335 -0
  1066. package/dist/node_modules/zod/v4/core/api.d.ts +335 -0
  1067. package/dist/node_modules/zod/v4/core/api.js +1107 -0
  1068. package/dist/node_modules/zod/v4/core/checks.cjs +561 -0
  1069. package/dist/node_modules/zod/v4/core/checks.d.cts +294 -0
  1070. package/dist/node_modules/zod/v4/core/checks.d.ts +294 -0
  1071. package/dist/node_modules/zod/v4/core/checks.js +516 -0
  1072. package/dist/node_modules/zod/v4/core/compile.cjs +1916 -0
  1073. package/dist/node_modules/zod/v4/core/compile.d.cts +65 -0
  1074. package/dist/node_modules/zod/v4/core/compile.d.ts +65 -0
  1075. package/dist/node_modules/zod/v4/core/compile.js +1866 -0
  1076. package/dist/node_modules/zod/v4/core/core.cjs +167 -0
  1077. package/dist/node_modules/zod/v4/core/core.d.cts +82 -0
  1078. package/dist/node_modules/zod/v4/core/core.d.ts +82 -0
  1079. package/dist/node_modules/zod/v4/core/core.js +141 -0
  1080. package/dist/node_modules/zod/v4/core/doc.cjs +61 -0
  1081. package/dist/node_modules/zod/v4/core/doc.d.cts +16 -0
  1082. package/dist/node_modules/zod/v4/core/doc.d.ts +16 -0
  1083. package/dist/node_modules/zod/v4/core/doc.js +38 -0
  1084. package/dist/node_modules/zod/v4/core/errors.cjs +317 -0
  1085. package/dist/node_modules/zod/v4/core/errors.d.cts +225 -0
  1086. package/dist/node_modules/zod/v4/core/errors.d.ts +225 -0
  1087. package/dist/node_modules/zod/v4/core/errors.js +267 -0
  1088. package/dist/node_modules/zod/v4/core/index.cjs +70 -0
  1089. package/dist/node_modules/zod/v4/core/index.d.cts +19 -0
  1090. package/dist/node_modules/zod/v4/core/index.d.ts +19 -0
  1091. package/dist/node_modules/zod/v4/core/index.js +19 -0
  1092. package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  1093. package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1094. package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1095. package/dist/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  1096. package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  1097. package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  1098. package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  1099. package/dist/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  1100. package/dist/node_modules/zod/v4/core/json-schema.cjs +21 -0
  1101. package/dist/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  1102. package/dist/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  1103. package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
  1104. package/dist/node_modules/zod/v4/core/memoizer.cjs +360 -0
  1105. package/dist/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1106. package/dist/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1107. package/dist/node_modules/zod/v4/core/memoizer.js +311 -0
  1108. package/dist/node_modules/zod/v4/core/package.json +7 -0
  1109. package/dist/node_modules/zod/v4/core/parse.cjs +233 -0
  1110. package/dist/node_modules/zod/v4/core/parse.d.cts +52 -0
  1111. package/dist/node_modules/zod/v4/core/parse.d.ts +52 -0
  1112. package/dist/node_modules/zod/v4/core/parse.js +175 -0
  1113. package/dist/node_modules/zod/v4/core/regexes.cjs +209 -0
  1114. package/dist/node_modules/zod/v4/core/regexes.d.cts +90 -0
  1115. package/dist/node_modules/zod/v4/core/regexes.d.ts +90 -0
  1116. package/dist/node_modules/zod/v4/core/regexes.js +156 -0
  1117. package/dist/node_modules/zod/v4/core/registries.cjs +75 -0
  1118. package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
  1119. package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
  1120. package/dist/node_modules/zod/v4/core/registries.js +51 -0
  1121. package/dist/node_modules/zod/v4/core/schemas.cjs +2699 -0
  1122. package/dist/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  1123. package/dist/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  1124. package/dist/node_modules/zod/v4/core/schemas.js +2636 -0
  1125. package/dist/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  1126. package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1127. package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1128. package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
  1129. package/dist/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  1130. package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  1131. package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  1132. package/dist/node_modules/zod/v4/core/to-json-schema.js +651 -0
  1133. package/dist/node_modules/zod/v4/core/util.cjs +964 -0
  1134. package/dist/node_modules/zod/v4/core/util.d.cts +280 -0
  1135. package/dist/node_modules/zod/v4/core/util.d.ts +280 -0
  1136. package/dist/node_modules/zod/v4/core/util.js +873 -0
  1137. package/dist/node_modules/zod/v4/core/versions.cjs +27 -0
  1138. package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
  1139. package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
  1140. package/dist/node_modules/zod/v4/core/versions.js +5 -0
  1141. package/dist/node_modules/zod/v4/core/visit.cjs +214 -0
  1142. package/dist/node_modules/zod/v4/core/visit.d.cts +30 -0
  1143. package/dist/node_modules/zod/v4/core/visit.d.ts +30 -0
  1144. package/dist/node_modules/zod/v4/core/visit.js +169 -0
  1145. package/dist/node_modules/zod/v4/index.cjs +51 -0
  1146. package/dist/node_modules/zod/v4/index.d.cts +3 -0
  1147. package/dist/node_modules/zod/v4/index.d.ts +3 -0
  1148. package/dist/node_modules/zod/v4/index.js +4 -0
  1149. package/dist/node_modules/zod/v4/locales/ar.cjs +138 -0
  1150. package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1151. package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1152. package/dist/node_modules/zod/v4/locales/ar.js +111 -0
  1153. package/dist/node_modules/zod/v4/locales/az.cjs +137 -0
  1154. package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
  1155. package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
  1156. package/dist/node_modules/zod/v4/locales/az.js +110 -0
  1157. package/dist/node_modules/zod/v4/locales/be.cjs +195 -0
  1158. package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
  1159. package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
  1160. package/dist/node_modules/zod/v4/locales/be.js +168 -0
  1161. package/dist/node_modules/zod/v4/locales/bg.cjs +152 -0
  1162. package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1163. package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1164. package/dist/node_modules/zod/v4/locales/bg.js +125 -0
  1165. package/dist/node_modules/zod/v4/locales/bn.cjs +140 -0
  1166. package/dist/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1167. package/dist/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1168. package/dist/node_modules/zod/v4/locales/bn.js +113 -0
  1169. package/dist/node_modules/zod/v4/locales/ca.cjs +139 -0
  1170. package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1171. package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1172. package/dist/node_modules/zod/v4/locales/ca.js +112 -0
  1173. package/dist/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1174. package/dist/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1175. package/dist/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1176. package/dist/node_modules/zod/v4/locales/ckb.js +133 -0
  1177. package/dist/node_modules/zod/v4/locales/cs.cjs +143 -0
  1178. package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1179. package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1180. package/dist/node_modules/zod/v4/locales/cs.js +116 -0
  1181. package/dist/node_modules/zod/v4/locales/da.cjs +147 -0
  1182. package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
  1183. package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
  1184. package/dist/node_modules/zod/v4/locales/da.js +120 -0
  1185. package/dist/node_modules/zod/v4/locales/de.cjs +140 -0
  1186. package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
  1187. package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
  1188. package/dist/node_modules/zod/v4/locales/de.js +113 -0
  1189. package/dist/node_modules/zod/v4/locales/el.cjs +139 -0
  1190. package/dist/node_modules/zod/v4/locales/el.d.cts +5 -0
  1191. package/dist/node_modules/zod/v4/locales/el.d.ts +4 -0
  1192. package/dist/node_modules/zod/v4/locales/el.js +112 -0
  1193. package/dist/node_modules/zod/v4/locales/en.cjs +152 -0
  1194. package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
  1195. package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
  1196. package/dist/node_modules/zod/v4/locales/en.js +125 -0
  1197. package/dist/node_modules/zod/v4/locales/eo.cjs +141 -0
  1198. package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1199. package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1200. package/dist/node_modules/zod/v4/locales/eo.js +114 -0
  1201. package/dist/node_modules/zod/v4/locales/es.cjs +163 -0
  1202. package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
  1203. package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
  1204. package/dist/node_modules/zod/v4/locales/es.js +136 -0
  1205. package/dist/node_modules/zod/v4/locales/fa.cjs +146 -0
  1206. package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1207. package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1208. package/dist/node_modules/zod/v4/locales/fa.js +119 -0
  1209. package/dist/node_modules/zod/v4/locales/fi.cjs +144 -0
  1210. package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1211. package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1212. package/dist/node_modules/zod/v4/locales/fi.js +117 -0
  1213. package/dist/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1214. package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1215. package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1216. package/dist/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1217. package/dist/node_modules/zod/v4/locales/fr.cjs +156 -0
  1218. package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1219. package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1220. package/dist/node_modules/zod/v4/locales/fr.js +129 -0
  1221. package/dist/node_modules/zod/v4/locales/gu.cjs +140 -0
  1222. package/dist/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1223. package/dist/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1224. package/dist/node_modules/zod/v4/locales/gu.js +113 -0
  1225. package/dist/node_modules/zod/v4/locales/he.cjs +248 -0
  1226. package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
  1227. package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
  1228. package/dist/node_modules/zod/v4/locales/he.js +221 -0
  1229. package/dist/node_modules/zod/v4/locales/hi.cjs +138 -0
  1230. package/dist/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1231. package/dist/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1232. package/dist/node_modules/zod/v4/locales/hi.js +111 -0
  1233. package/dist/node_modules/zod/v4/locales/hr.cjs +153 -0
  1234. package/dist/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1235. package/dist/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1236. package/dist/node_modules/zod/v4/locales/hr.js +126 -0
  1237. package/dist/node_modules/zod/v4/locales/hu.cjs +140 -0
  1238. package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1239. package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1240. package/dist/node_modules/zod/v4/locales/hu.js +113 -0
  1241. package/dist/node_modules/zod/v4/locales/hy.cjs +185 -0
  1242. package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1243. package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1244. package/dist/node_modules/zod/v4/locales/hy.js +158 -0
  1245. package/dist/node_modules/zod/v4/locales/id.cjs +138 -0
  1246. package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
  1247. package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
  1248. package/dist/node_modules/zod/v4/locales/id.js +111 -0
  1249. package/dist/node_modules/zod/v4/locales/index.cjs +152 -0
  1250. package/dist/node_modules/zod/v4/locales/index.d.cts +63 -0
  1251. package/dist/node_modules/zod/v4/locales/index.d.ts +63 -0
  1252. package/dist/node_modules/zod/v4/locales/index.js +63 -0
  1253. package/dist/node_modules/zod/v4/locales/is.cjs +141 -0
  1254. package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
  1255. package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
  1256. package/dist/node_modules/zod/v4/locales/is.js +114 -0
  1257. package/dist/node_modules/zod/v4/locales/it.cjs +140 -0
  1258. package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
  1259. package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
  1260. package/dist/node_modules/zod/v4/locales/it.js +113 -0
  1261. package/dist/node_modules/zod/v4/locales/ja.cjs +139 -0
  1262. package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1263. package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1264. package/dist/node_modules/zod/v4/locales/ja.js +112 -0
  1265. package/dist/node_modules/zod/v4/locales/ka.cjs +144 -0
  1266. package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1267. package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1268. package/dist/node_modules/zod/v4/locales/ka.js +117 -0
  1269. package/dist/node_modules/zod/v4/locales/kh.cjs +12 -0
  1270. package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1271. package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1272. package/dist/node_modules/zod/v4/locales/kh.js +5 -0
  1273. package/dist/node_modules/zod/v4/locales/km.cjs +142 -0
  1274. package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
  1275. package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
  1276. package/dist/node_modules/zod/v4/locales/km.js +115 -0
  1277. package/dist/node_modules/zod/v4/locales/kn.cjs +143 -0
  1278. package/dist/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1279. package/dist/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1280. package/dist/node_modules/zod/v4/locales/kn.js +116 -0
  1281. package/dist/node_modules/zod/v4/locales/ko.cjs +143 -0
  1282. package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1283. package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1284. package/dist/node_modules/zod/v4/locales/ko.js +116 -0
  1285. package/dist/node_modules/zod/v4/locales/lt.cjs +234 -0
  1286. package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1287. package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1288. package/dist/node_modules/zod/v4/locales/lt.js +207 -0
  1289. package/dist/node_modules/zod/v4/locales/mk.cjs +141 -0
  1290. package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1291. package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1292. package/dist/node_modules/zod/v4/locales/mk.js +114 -0
  1293. package/dist/node_modules/zod/v4/locales/ms.cjs +139 -0
  1294. package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1295. package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1296. package/dist/node_modules/zod/v4/locales/ms.js +112 -0
  1297. package/dist/node_modules/zod/v4/locales/ne.cjs +138 -0
  1298. package/dist/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1299. package/dist/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1300. package/dist/node_modules/zod/v4/locales/ne.js +111 -0
  1301. package/dist/node_modules/zod/v4/locales/nl.cjs +142 -0
  1302. package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1303. package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1304. package/dist/node_modules/zod/v4/locales/nl.js +115 -0
  1305. package/dist/node_modules/zod/v4/locales/nn.cjs +140 -0
  1306. package/dist/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1307. package/dist/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1308. package/dist/node_modules/zod/v4/locales/nn.js +113 -0
  1309. package/dist/node_modules/zod/v4/locales/no.cjs +140 -0
  1310. package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
  1311. package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
  1312. package/dist/node_modules/zod/v4/locales/no.js +113 -0
  1313. package/dist/node_modules/zod/v4/locales/ota.cjs +141 -0
  1314. package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1315. package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1316. package/dist/node_modules/zod/v4/locales/ota.js +114 -0
  1317. package/dist/node_modules/zod/v4/locales/package.json +7 -0
  1318. package/dist/node_modules/zod/v4/locales/pl.cjs +141 -0
  1319. package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1320. package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1321. package/dist/node_modules/zod/v4/locales/pl.js +114 -0
  1322. package/dist/node_modules/zod/v4/locales/ps.cjs +146 -0
  1323. package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1324. package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1325. package/dist/node_modules/zod/v4/locales/ps.js +119 -0
  1326. package/dist/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1327. package/dist/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1328. package/dist/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1329. package/dist/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1330. package/dist/node_modules/zod/v4/locales/pt.cjs +169 -0
  1331. package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1332. package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1333. package/dist/node_modules/zod/v4/locales/pt.js +142 -0
  1334. package/dist/node_modules/zod/v4/locales/ro.cjs +149 -0
  1335. package/dist/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1336. package/dist/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1337. package/dist/node_modules/zod/v4/locales/ro.js +122 -0
  1338. package/dist/node_modules/zod/v4/locales/ru.cjs +195 -0
  1339. package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1340. package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1341. package/dist/node_modules/zod/v4/locales/ru.js +168 -0
  1342. package/dist/node_modules/zod/v4/locales/sk.cjs +143 -0
  1343. package/dist/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1344. package/dist/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1345. package/dist/node_modules/zod/v4/locales/sk.js +116 -0
  1346. package/dist/node_modules/zod/v4/locales/sl.cjs +141 -0
  1347. package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1348. package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1349. package/dist/node_modules/zod/v4/locales/sl.js +114 -0
  1350. package/dist/node_modules/zod/v4/locales/sv.cjs +142 -0
  1351. package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1352. package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1353. package/dist/node_modules/zod/v4/locales/sv.js +115 -0
  1354. package/dist/node_modules/zod/v4/locales/ta.cjs +142 -0
  1355. package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1356. package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1357. package/dist/node_modules/zod/v4/locales/ta.js +115 -0
  1358. package/dist/node_modules/zod/v4/locales/tg.cjs +144 -0
  1359. package/dist/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1360. package/dist/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1361. package/dist/node_modules/zod/v4/locales/tg.js +117 -0
  1362. package/dist/node_modules/zod/v4/locales/th.cjs +142 -0
  1363. package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
  1364. package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
  1365. package/dist/node_modules/zod/v4/locales/th.js +115 -0
  1366. package/dist/node_modules/zod/v4/locales/tk.cjs +134 -0
  1367. package/dist/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1368. package/dist/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1369. package/dist/node_modules/zod/v4/locales/tk.js +107 -0
  1370. package/dist/node_modules/zod/v4/locales/tr.cjs +137 -0
  1371. package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1372. package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1373. package/dist/node_modules/zod/v4/locales/tr.js +110 -0
  1374. package/dist/node_modules/zod/v4/locales/ua.cjs +12 -0
  1375. package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1376. package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1377. package/dist/node_modules/zod/v4/locales/ua.js +5 -0
  1378. package/dist/node_modules/zod/v4/locales/uk.cjs +140 -0
  1379. package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1380. package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1381. package/dist/node_modules/zod/v4/locales/uk.js +113 -0
  1382. package/dist/node_modules/zod/v4/locales/ur.cjs +142 -0
  1383. package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1384. package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1385. package/dist/node_modules/zod/v4/locales/ur.js +115 -0
  1386. package/dist/node_modules/zod/v4/locales/uz.cjs +140 -0
  1387. package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1388. package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1389. package/dist/node_modules/zod/v4/locales/uz.js +113 -0
  1390. package/dist/node_modules/zod/v4/locales/vi.cjs +140 -0
  1391. package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1392. package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1393. package/dist/node_modules/zod/v4/locales/vi.js +113 -0
  1394. package/dist/node_modules/zod/v4/locales/yo.cjs +139 -0
  1395. package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1396. package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1397. package/dist/node_modules/zod/v4/locales/yo.js +112 -0
  1398. package/dist/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1399. package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1400. package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1401. package/dist/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1402. package/dist/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1403. package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1404. package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1405. package/dist/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1406. package/dist/node_modules/zod/v4/mini/checks.cjs +54 -0
  1407. package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1408. package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1409. package/dist/node_modules/zod/v4/mini/checks.js +1 -0
  1410. package/dist/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1411. package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1412. package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1413. package/dist/node_modules/zod/v4/mini/coerce.js +22 -0
  1414. package/dist/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1415. package/dist/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1416. package/dist/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1417. package/dist/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1418. package/dist/node_modules/zod/v4/mini/external.cjs +95 -0
  1419. package/dist/node_modules/zod/v4/mini/external.d.cts +16 -0
  1420. package/dist/node_modules/zod/v4/mini/external.d.ts +16 -0
  1421. package/dist/node_modules/zod/v4/mini/external.js +16 -0
  1422. package/dist/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1423. package/dist/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1424. package/dist/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1425. package/dist/node_modules/zod/v4/mini/in-out.js +36 -0
  1426. package/dist/node_modules/zod/v4/mini/index.cjs +51 -0
  1427. package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
  1428. package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
  1429. package/dist/node_modules/zod/v4/mini/index.js +3 -0
  1430. package/dist/node_modules/zod/v4/mini/iso.cjs +83 -0
  1431. package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1432. package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1433. package/dist/node_modules/zod/v4/mini/iso.js +34 -0
  1434. package/dist/node_modules/zod/v4/mini/package.json +7 -0
  1435. package/dist/node_modules/zod/v4/mini/parse.cjs +37 -0
  1436. package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1437. package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1438. package/dist/node_modules/zod/v4/mini/parse.js +1 -0
  1439. package/dist/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1440. package/dist/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1441. package/dist/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1442. package/dist/node_modules/zod/v4/mini/schemas.js +1002 -0
  1443. package/dist/node_modules/zod/v4/package.json +7 -0
  1444. package/dist/node_modules/zod/v4-mini/index.cjs +51 -0
  1445. package/dist/node_modules/zod/v4-mini/index.d.cts +3 -0
  1446. package/dist/node_modules/zod/v4-mini/index.d.ts +3 -0
  1447. package/dist/node_modules/zod/v4-mini/index.js +3 -0
  1448. package/dist/node_modules/zod/v4-mini/package.json +7 -0
  1449. package/package.json +17 -7
@@ -0,0 +1,1096 @@
1
+ var fs = require("fs");
2
+ var zlib = require("zlib");
3
+ var fd_slicer = require("./fd-slicer");
4
+ var util = require("util");
5
+ var EventEmitter = require("events").EventEmitter;
6
+ var Transform = require("stream").Transform;
7
+ var PassThrough = require("stream").PassThrough;
8
+ var Writable = require("stream").Writable;
9
+
10
+ // Node 20 added zlib.crc32.
11
+ const crc32 = typeof zlib.crc32 === "function" ? zlib.crc32 : require("./crc32");
12
+
13
+ exports.open = open;
14
+ exports.fromFd = fromFd;
15
+ exports.fromBuffer = fromBuffer;
16
+ exports.fromRandomAccessReader = fromRandomAccessReader;
17
+ exports.openPromise = openPromise;
18
+ exports.fromFdPromise = fromFdPromise;
19
+ exports.fromBufferPromise = fromBufferPromise;
20
+ exports.fromRandomAccessReaderPromise = fromRandomAccessReaderPromise;
21
+
22
+ exports.dosDateTimeToDate = dosDateTimeToDate;
23
+ exports.getFileNameLowLevel = getFileNameLowLevel;
24
+ exports.validateFileName = validateFileName;
25
+ exports.parseExtraFields = parseExtraFields;
26
+ exports.ZipFile = ZipFile;
27
+ exports.Entry = Entry;
28
+ exports.LocalFileHeader = LocalFileHeader;
29
+ exports.RandomAccessReader = RandomAccessReader;
30
+
31
+ function openPromise(path, options) {
32
+ return new Promise((resolve, reject) => {
33
+ open(path, {...options, lazyEntries: true}, function(err, zipfile) {
34
+ if (err) return reject(err);
35
+ resolve(zipfile);
36
+ });
37
+ });
38
+ }
39
+ function fromFdPromise(fd, options) {
40
+ return new Promise((resolve, reject) => {
41
+ fromFd(fd, {...options, lazyEntries: true}, function(err, zipfile) {
42
+ if (err) return reject(err);
43
+ resolve(zipfile);
44
+ });
45
+ });
46
+ }
47
+ function fromBufferPromise(buffer, options) {
48
+ return new Promise((resolve, reject) => {
49
+ fromBuffer(buffer, {...options, lazyEntries: true}, function(err, zipfile) {
50
+ if (err) return reject(err);
51
+ resolve(zipfile);
52
+ });
53
+ });
54
+ }
55
+ function fromRandomAccessReaderPromise(reader, totalSize, options) {
56
+ return new Promise((resolve, reject) => {
57
+ fromRandomAccessReader(reader, totalSize, {...options, lazyEntries: true}, function(err, zipfile) {
58
+ if (err) return reject(err);
59
+ resolve(zipfile);
60
+ });
61
+ });
62
+ }
63
+
64
+ function open(path, options, callback) {
65
+ if (typeof options === "function") {
66
+ callback = options;
67
+ options = null;
68
+ }
69
+ if (options == null) options = {};
70
+ if (options.autoClose == null) options.autoClose = true;
71
+ if (options.lazyEntries == null) options.lazyEntries = false;
72
+ if (options.decodeStrings == null) options.decodeStrings = true;
73
+ if (options.validateEntrySizes == null) options.validateEntrySizes = true;
74
+ if (options.strictFileNames == null) options.strictFileNames = false;
75
+ if (callback == null) callback = defaultCallback;
76
+ fs.open(path, "r", function(err, fd) {
77
+ if (err) return callback(err);
78
+ fromFd(fd, options, function(err, zipfile) {
79
+ if (err) fs.close(fd, defaultCallback);
80
+ callback(err, zipfile);
81
+ });
82
+ });
83
+ }
84
+
85
+ function fromFd(fd, options, callback) {
86
+ if (typeof options === "function") {
87
+ callback = options;
88
+ options = null;
89
+ }
90
+ if (options == null) options = {};
91
+ if (options.autoClose == null) options.autoClose = false;
92
+ if (options.lazyEntries == null) options.lazyEntries = false;
93
+ if (options.decodeStrings == null) options.decodeStrings = true;
94
+ if (options.validateEntrySizes == null) options.validateEntrySizes = true;
95
+ if (options.strictFileNames == null) options.strictFileNames = false;
96
+ if (callback == null) callback = defaultCallback;
97
+ fs.fstat(fd, function(err, stats) {
98
+ if (err) return callback(err);
99
+ var reader = new fd_slicer.FdSlicer(fd);
100
+ fromRandomAccessReader(reader, stats.size, options, callback);
101
+ });
102
+ }
103
+
104
+ function fromBuffer(buffer, options, callback) {
105
+ if (typeof options === "function") {
106
+ callback = options;
107
+ options = null;
108
+ }
109
+ if (options == null) options = {};
110
+ options.autoClose = false;
111
+ if (options.lazyEntries == null) options.lazyEntries = false;
112
+ if (options.decodeStrings == null) options.decodeStrings = true;
113
+ if (options.validateEntrySizes == null) options.validateEntrySizes = true;
114
+ if (options.strictFileNames == null) options.strictFileNames = false;
115
+ var reader = new fd_slicer.BufferSlicer(buffer);
116
+ fromRandomAccessReader(reader, buffer.length, options, callback);
117
+ }
118
+
119
+ function fromRandomAccessReader(reader, totalSize, options, callback) {
120
+ if (typeof options === "function") {
121
+ callback = options;
122
+ options = null;
123
+ }
124
+ if (options == null) options = {};
125
+ if (options.autoClose == null) options.autoClose = true;
126
+ if (options.lazyEntries == null) options.lazyEntries = false;
127
+ if (options.decodeStrings == null) options.decodeStrings = true;
128
+ var decodeStrings = !!options.decodeStrings;
129
+ if (options.validateEntrySizes == null) options.validateEntrySizes = true;
130
+ if (options.strictFileNames == null) options.strictFileNames = false;
131
+ if (callback == null) callback = defaultCallback;
132
+ if (typeof totalSize !== "number") throw new Error("expected totalSize parameter to be a number");
133
+ if (totalSize > Number.MAX_SAFE_INTEGER) {
134
+ throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");
135
+ }
136
+
137
+ // the matching unref() call is in zipfile.close()
138
+ reader.ref();
139
+
140
+ // eocdr means End of Central Directory Record.
141
+ // search backwards for the eocdr signature.
142
+ // the last field of the eocdr is a variable-length comment.
143
+ // the comment size is encoded in a 2-byte field in the eocdr, which we can't find without trudging backwards through the comment to find it.
144
+ // as a consequence of this design decision, it's possible to have ambiguous zip file metadata if a coherent eocdr was in the comment.
145
+ // we search backwards for a eocdr signature, and hope that whoever made the zip file was smart enough to forbid the eocdr signature in the comment.
146
+ var eocdrWithoutCommentSize = 22;
147
+ var zip64EocdlSize = 20; // Zip64 end of central directory locator
148
+ var maxCommentSize = 0xffff; // 2-byte size
149
+ var bufferSize = Math.min(zip64EocdlSize + eocdrWithoutCommentSize + maxCommentSize, totalSize);
150
+ var buffer = newBuffer(bufferSize);
151
+ var bufferReadStart = totalSize - buffer.length;
152
+ readAndAssertNoEof(reader, buffer, 0, bufferSize, bufferReadStart, function(err) {
153
+ if (err) return callback(err);
154
+ for (var i = bufferSize - eocdrWithoutCommentSize; i >= 0; i -= 1) {
155
+ if (buffer.readUInt32LE(i) !== 0x06054b50) continue;
156
+ // found eocdr
157
+ var eocdrBuffer = buffer.subarray(i);
158
+
159
+ // 0 - End of central directory signature = 0x06054b50
160
+ // 4 - Number of this disk
161
+ var diskNumber = eocdrBuffer.readUInt16LE(4);
162
+ // 6 - Disk where central directory starts
163
+ // 8 - Number of central directory records on this disk
164
+ // 10 - Total number of central directory records
165
+ var entryCount = eocdrBuffer.readUInt16LE(10);
166
+ // 12 - Size of central directory (bytes)
167
+ // 16 - Offset of start of central directory, relative to start of archive
168
+ var centralDirectoryOffset = eocdrBuffer.readUInt32LE(16);
169
+ // 20 - Comment length
170
+ var commentLength = eocdrBuffer.readUInt16LE(20);
171
+ var expectedCommentLength = eocdrBuffer.length - eocdrWithoutCommentSize;
172
+ if (commentLength !== expectedCommentLength) {
173
+ return callback(new Error("Invalid comment length. Expected: " + expectedCommentLength + ". Found: " + commentLength + ". Are there extra bytes at the end of the file? Or is the end of central dir signature `PK☺☻` in the comment?"));
174
+ }
175
+ // 22 - Comment
176
+ // the encoding is always cp437.
177
+ var comment = decodeStrings ? decodeBuffer(eocdrBuffer.subarray(22), false)
178
+ : eocdrBuffer.subarray(22);
179
+
180
+ // Look for a Zip64 end of central directory locator
181
+ if (i - zip64EocdlSize >= 0 && buffer.readUInt32LE(i - zip64EocdlSize) === 0x07064b50) {
182
+ // ZIP64 format
183
+ var zip64EocdlBuffer = buffer.subarray(i - zip64EocdlSize, i - zip64EocdlSize + zip64EocdlSize);
184
+ // 0 - zip64 end of central dir locator signature = 0x07064b50
185
+ // 4 - number of the disk with the start of the zip64 end of central directory
186
+ // 8 - relative offset of the zip64 end of central directory record
187
+ var zip64EocdrOffset = readUInt64LE(zip64EocdlBuffer, 8);
188
+ // 16 - total number of disks
189
+
190
+ // ZIP64 end of central directory record
191
+ var zip64EocdrBuffer = newBuffer(56);
192
+ return readAndAssertNoEof(reader, zip64EocdrBuffer, 0, zip64EocdrBuffer.length, zip64EocdrOffset, function(err) {
193
+ if (err) return callback(err);
194
+
195
+ // 0 - zip64 end of central dir signature 4 bytes (0x06064b50)
196
+ if (zip64EocdrBuffer.readUInt32LE(0) !== 0x06064b50) {
197
+ return callback(new Error("invalid zip64 end of central directory record signature"));
198
+ }
199
+ // 4 - size of zip64 end of central directory record 8 bytes
200
+ // 12 - version made by 2 bytes
201
+ // 14 - version needed to extract 2 bytes
202
+ // 16 - number of this disk 4 bytes
203
+ diskNumber = zip64EocdrBuffer.readUInt32LE(16);
204
+ if (diskNumber !== 0) {
205
+ // Check this only after zip64 overrides. See #118.
206
+ return callback(new Error("multi-disk zip files are not supported: found disk number: " + diskNumber));
207
+ }
208
+ // 20 - number of the disk with the start of the central directory 4 bytes
209
+ // 24 - total number of entries in the central directory on this disk 8 bytes
210
+ // 32 - total number of entries in the central directory 8 bytes
211
+ entryCount = readUInt64LE(zip64EocdrBuffer, 32);
212
+ // 40 - size of the central directory 8 bytes
213
+ // 48 - offset of start of central directory with respect to the starting disk number 8 bytes
214
+ centralDirectoryOffset = readUInt64LE(zip64EocdrBuffer, 48);
215
+ // 56 - zip64 extensible data sector (variable size)
216
+ return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
217
+ });
218
+ }
219
+
220
+ // Not ZIP64 format
221
+ if (diskNumber !== 0) {
222
+ return callback(new Error("multi-disk zip files are not supported: found disk number: " + diskNumber));
223
+ }
224
+ return callback(null, new ZipFile(reader, centralDirectoryOffset, totalSize, entryCount, comment, options.autoClose, options.lazyEntries, decodeStrings, options.validateEntrySizes, options.strictFileNames));
225
+
226
+ }
227
+
228
+ // Not a zip file.
229
+ callback(new Error("End of central directory record signature not found. Either not a zip file, or file is truncated."));
230
+ });
231
+ }
232
+
233
+ util.inherits(ZipFile, EventEmitter);
234
+ function ZipFile(reader, centralDirectoryOffset, fileSize, entryCount, comment, autoClose, lazyEntries, decodeStrings, validateEntrySizes, strictFileNames) {
235
+ var self = this;
236
+ EventEmitter.call(self);
237
+ self.reader = reader;
238
+ // forward close events
239
+ self.reader.on("error", function(err) {
240
+ // error closing the fd
241
+ emitError(self, err);
242
+ });
243
+ self.reader.once("close", function() {
244
+ self.emit("close");
245
+ });
246
+ self.readEntryCursor = centralDirectoryOffset;
247
+ self.fileSize = fileSize;
248
+ self.entryCount = entryCount;
249
+ self.comment = comment;
250
+ self.entriesRead = 0;
251
+ self.autoClose = !!autoClose;
252
+ self.lazyEntries = !!lazyEntries;
253
+ self.decodeStrings = !!decodeStrings;
254
+ self.validateEntrySizes = !!validateEntrySizes;
255
+ self.strictFileNames = !!strictFileNames;
256
+ self.isOpen = true;
257
+ self.emittedError = false;
258
+ self.hasEachEntryBeenCalled = false;
259
+
260
+ if (!self.lazyEntries) self._readEntry();
261
+ }
262
+ ZipFile.prototype.close = function() {
263
+ if (!this.isOpen) return;
264
+ this.isOpen = false;
265
+ this.reader.unref();
266
+ };
267
+
268
+ function emitErrorAndAutoClose(self, err) {
269
+ if (self.autoClose) self.close();
270
+ emitError(self, err);
271
+ }
272
+ function emitError(self, err) {
273
+ if (self.emittedError) return;
274
+ self.emittedError = true;
275
+ self.emit("error", err);
276
+ }
277
+
278
+ ZipFile.prototype.readEntry = function() {
279
+ if (!this.lazyEntries) throw new Error("readEntry() called without lazyEntries:true");
280
+ this._readEntry();
281
+ };
282
+ ZipFile.prototype._readEntry = function() {
283
+ var self = this;
284
+ if (self.entryCount === self.entriesRead) {
285
+ // done with metadata
286
+ setImmediate(function() {
287
+ if (self.autoClose) self.close();
288
+ if (self.emittedError) return;
289
+ self.emit("end");
290
+ });
291
+ return;
292
+ }
293
+ if (self.emittedError) return;
294
+ var buffer = newBuffer(46);
295
+ readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {
296
+ if (err) return emitErrorAndAutoClose(self, err);
297
+ if (self.emittedError) return;
298
+ var entry = new Entry();
299
+ // 0 - Central directory file header signature
300
+ var signature = buffer.readUInt32LE(0);
301
+ if (signature !== 0x02014b50) return emitErrorAndAutoClose(self, new Error("invalid central directory file header signature: 0x" + signature.toString(16)));
302
+ // 4 - Version made by
303
+ entry.versionMadeBy = buffer.readUInt16LE(4);
304
+ // 6 - Version needed to extract (minimum)
305
+ entry.versionNeededToExtract = buffer.readUInt16LE(6);
306
+ // 8 - General purpose bit flag
307
+ entry.generalPurposeBitFlag = buffer.readUInt16LE(8);
308
+ // 10 - Compression method
309
+ entry.compressionMethod = buffer.readUInt16LE(10);
310
+ // 12 - File last modification time
311
+ entry.lastModFileTime = buffer.readUInt16LE(12);
312
+ // 14 - File last modification date
313
+ entry.lastModFileDate = buffer.readUInt16LE(14);
314
+ // 16 - CRC-32
315
+ entry.crc32 = buffer.readUInt32LE(16);
316
+ // 20 - Compressed size
317
+ entry.compressedSize = buffer.readUInt32LE(20);
318
+ // 24 - Uncompressed size
319
+ entry.uncompressedSize = buffer.readUInt32LE(24);
320
+ // 28 - File name length (n)
321
+ entry.fileNameLength = buffer.readUInt16LE(28);
322
+ // 30 - Extra field length (m)
323
+ entry.extraFieldLength = buffer.readUInt16LE(30);
324
+ // 32 - File comment length (k)
325
+ entry.fileCommentLength = buffer.readUInt16LE(32);
326
+ // 34 - Disk number where file starts
327
+ // 36 - Internal file attributes
328
+ entry.internalFileAttributes = buffer.readUInt16LE(36);
329
+ // 38 - External file attributes
330
+ entry.externalFileAttributes = buffer.readUInt32LE(38);
331
+ // 42 - Relative offset of local file header
332
+ entry.relativeOffsetOfLocalHeader = buffer.readUInt32LE(42);
333
+
334
+ if (entry.generalPurposeBitFlag & 0x40) return emitErrorAndAutoClose(self, new Error("strong encryption is not supported"));
335
+
336
+ self.readEntryCursor += 46;
337
+
338
+ buffer = newBuffer(entry.fileNameLength + entry.extraFieldLength + entry.fileCommentLength);
339
+ readAndAssertNoEof(self.reader, buffer, 0, buffer.length, self.readEntryCursor, function(err) {
340
+ if (err) return emitErrorAndAutoClose(self, err);
341
+ if (self.emittedError) return;
342
+ // 46 - File name
343
+ entry.fileNameRaw = buffer.subarray(0, entry.fileNameLength);
344
+ // 46+n - Extra field
345
+ var fileCommentStart = entry.fileNameLength + entry.extraFieldLength;
346
+ entry.extraFieldRaw = buffer.subarray(entry.fileNameLength, fileCommentStart);
347
+ // 46+n+m - File comment
348
+ entry.fileCommentRaw = buffer.subarray(fileCommentStart, fileCommentStart + entry.fileCommentLength);
349
+
350
+ // Parse the extra fields, which we need for processing other fields.
351
+ try {
352
+ entry.extraFields = parseExtraFields(entry.extraFieldRaw);
353
+ } catch (err) {
354
+ return emitErrorAndAutoClose(self, err);
355
+ }
356
+
357
+ // Interpret strings according to bit flags, extra fields, and options.
358
+ if (self.decodeStrings) {
359
+ var isUtf8 = (entry.generalPurposeBitFlag & 0x800) !== 0;
360
+ entry.fileComment = decodeBuffer(entry.fileCommentRaw, isUtf8);
361
+ entry.fileName = getFileNameLowLevel(entry.generalPurposeBitFlag, entry.fileNameRaw, entry.extraFields, self.strictFileNames);
362
+ var errorMessage = validateFileName(entry.fileName);
363
+ if (errorMessage != null) return emitErrorAndAutoClose(self, new Error(errorMessage));
364
+ } else {
365
+ entry.fileComment = entry.fileCommentRaw;
366
+ entry.fileName = entry.fileNameRaw;
367
+ }
368
+ // Maintain API compatibility. See https://github.com/thejoshwolfe/yauzl/issues/47
369
+ entry.comment = entry.fileComment;
370
+
371
+ self.readEntryCursor += buffer.length;
372
+ self.entriesRead += 1;
373
+
374
+ // Check for the Zip64 Extended Information Extra Field.
375
+ for (var i = 0; i < entry.extraFields.length; i++) {
376
+ var extraField = entry.extraFields[i];
377
+ if (extraField.id !== 0x0001) continue;
378
+ // Found it.
379
+
380
+ var zip64EiefBuffer = extraField.data;
381
+ var index = 0;
382
+ // 0 - Original Size 8 bytes
383
+ if (entry.uncompressedSize === 0xffffffff) {
384
+ if (index + 8 > zip64EiefBuffer.length) {
385
+ return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include uncompressed size"));
386
+ }
387
+ entry.uncompressedSize = readUInt64LE(zip64EiefBuffer, index);
388
+ index += 8;
389
+ }
390
+ // 8 - Compressed Size 8 bytes
391
+ if (entry.compressedSize === 0xffffffff) {
392
+ if (index + 8 > zip64EiefBuffer.length) {
393
+ return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include compressed size"));
394
+ }
395
+ entry.compressedSize = readUInt64LE(zip64EiefBuffer, index);
396
+ index += 8;
397
+ }
398
+ // 16 - Relative Header Offset 8 bytes
399
+ if (entry.relativeOffsetOfLocalHeader === 0xffffffff) {
400
+ if (index + 8 > zip64EiefBuffer.length) {
401
+ return emitErrorAndAutoClose(self, new Error("zip64 extended information extra field does not include relative header offset"));
402
+ }
403
+ entry.relativeOffsetOfLocalHeader = readUInt64LE(zip64EiefBuffer, index);
404
+ index += 8;
405
+ }
406
+ // 24 - Disk Start Number 4 bytes
407
+
408
+ break;
409
+ }
410
+
411
+ // validate file size
412
+ if (self.validateEntrySizes && entry.compressionMethod === 0) {
413
+ var expectedCompressedSize = entry.uncompressedSize;
414
+ if (entry.isEncrypted()) {
415
+ // traditional encryption prefixes the file data with a header
416
+ expectedCompressedSize += 12;
417
+ }
418
+ if (entry.compressedSize !== expectedCompressedSize) {
419
+ var msg = "compressed/uncompressed size mismatch for stored file: " + entry.compressedSize + " != " + entry.uncompressedSize;
420
+ return emitErrorAndAutoClose(self, new Error(msg));
421
+ }
422
+ }
423
+
424
+ self.emit("entry", entry);
425
+
426
+ if (!self.lazyEntries) self._readEntry();
427
+ });
428
+ });
429
+ };
430
+
431
+ ZipFile.prototype.eachEntry = function() {
432
+ const self = this;
433
+ if (!self.lazyEntries) throw new Error("eachEntry() requires lazyEntries: true");
434
+ if (self.hasEachEntryBeenCalled) throw new Error("eachEntry() must only be called once per ZipFile");
435
+ self.hasEachEntryBeenCalled = true;
436
+
437
+ let pendingResolveReject = null;
438
+ self.on("entry", onEntry);
439
+ self.on("end", onEnd);
440
+ self.on("error", onError);
441
+ function cleanup() {
442
+ self.removeListener("entry", onEntry);
443
+ self.removeListener("end", onEnd);
444
+ self.removeListener("error", onError);
445
+ if (self.autoClose) self.close();
446
+ }
447
+
448
+ function onEntry(entry) {
449
+ let {resolve} = pendingResolveReject;
450
+ pendingResolveReject = null;
451
+ resolve({value: entry});
452
+ }
453
+ function onEnd() {
454
+ let {resolve} = pendingResolveReject;
455
+ pendingResolveReject = null;
456
+ cleanup();
457
+ resolve({done: true});
458
+ }
459
+ function onError(err) {
460
+ let {reject} = pendingResolveReject;
461
+ pendingResolveReject = null;
462
+ cleanup();
463
+ reject(err);
464
+ }
465
+
466
+ return {
467
+ [Symbol.asyncIterator]() {
468
+ // Called once by `for await...of`.
469
+ return this;
470
+ },
471
+ next() {
472
+ // Called on each iteration in a `for await...of`.
473
+ const promise = new Promise((resolve, reject) => {
474
+ if (pendingResolveReject != null) throw new Error("next() called before previous Promise was resolved.");
475
+ pendingResolveReject = {resolve, reject};
476
+ });
477
+ self.readEntry();
478
+ return promise;
479
+ },
480
+ return(value) {
481
+ // Called when breaking, returning, throwing out of a `for await...of`.
482
+ cleanup();
483
+ return Promise.resolve({done: true, value});
484
+ },
485
+ throw(value) {
486
+ // Almost never called. Something about `yield*` maybe?
487
+ cleanup();
488
+ return Promise.reject(value);
489
+ },
490
+ };
491
+ };
492
+
493
+ ZipFile.prototype.openReadStream = function(entry, options, callback) {
494
+ var self = this;
495
+ // parameter validation
496
+ var relativeStart = 0;
497
+ var relativeEnd = entry.compressedSize;
498
+ if (callback == null) {
499
+ callback = options;
500
+ options = null;
501
+ }
502
+ if (options == null) {
503
+ options = {};
504
+ } else {
505
+ if (options.decodeFileData === false) {
506
+ // new, simple option
507
+ if (options.decrypt != null) {
508
+ throw new Error("cannot use options.decrypt when options.decodeFileData === false");
509
+ }
510
+ if (options.decompress != null) {
511
+ throw new Error("cannot use options.decompress when options.decodeFileData === false");
512
+ }
513
+ // start and end are allowed
514
+ } else {
515
+ // old, complicated options
516
+ if (options.decrypt != null) {
517
+ if (!entry.isEncrypted()) {
518
+ throw new Error("options.decrypt can only be specified for encrypted entries. See also option decodeFileData.");
519
+ }
520
+ if (options.decrypt !== false) throw new Error("invalid options.decrypt value: " + options.decrypt);
521
+ if (entry.isCompressed()) {
522
+ if (options.decompress !== false) throw new Error("entry is encrypted and compressed, and options.decompress !== false. See also option decodeFileData.");
523
+ }
524
+ }
525
+ if (options.decompress != null) {
526
+ if (!entry.isCompressed()) {
527
+ throw new Error("options.decompress can only be specified for compressed entries. See also option decodeFileData.");
528
+ }
529
+ if (!(options.decompress === false || options.decompress === true)) {
530
+ throw new Error("invalid options.decompress value: " + options.decompress);
531
+ }
532
+ decompress = options.decompress;
533
+ }
534
+ }
535
+ if (options.start != null) {
536
+ relativeStart = options.start;
537
+ if (relativeStart < 0) throw new Error("options.start < 0");
538
+ if (relativeStart > entry.compressedSize) throw new Error("options.start > entry.compressedSize");
539
+ }
540
+ if (options.end != null) {
541
+ relativeEnd = options.end;
542
+ if (relativeEnd < 0) throw new Error("options.end < 0");
543
+ if (relativeEnd > entry.compressedSize) throw new Error("options.end > entry.compressedSize");
544
+ if (relativeEnd < relativeStart) throw new Error("options.end < options.start");
545
+ }
546
+ }
547
+ var rawMode = (
548
+ options.decodeFileData === false || // Explicitly requested raw.
549
+ (
550
+ (entry.compressionMethod === 0 || // Naturally without compression.
551
+ (entry.compressionMethod === 8 && options.decompress === false) // Deprecated compression bypass option.
552
+ ) &&
553
+ (!entry.isEncrypted() || // Naturally without encryption.
554
+ options.decrypt === false // Deprecated encryption bypass option.
555
+ )
556
+ )
557
+ );
558
+ if (options.start != null || options.end != null) {
559
+ // Ensure slicing deals with raw data.
560
+ if (!rawMode) throw new Error("start/end range require options.decodeFileData === false for non-trivial encoded entries.");
561
+ }
562
+
563
+ // any further errors can either be caused by the zipfile,
564
+ // or were introduced in a minor version of yauzl,
565
+ // so should be passed to the client rather than thrown.
566
+ if (!self.isOpen) return callback(new Error("closed"));
567
+ if (entry.isEncrypted() && !rawMode) {
568
+ if (options.decrypt !== false) return callback(new Error("entry is encrypted, and options.decodeFileData !== false"));
569
+ }
570
+ var decompress;
571
+ if (rawMode) {
572
+ decompress = false;
573
+ } else if (entry.compressionMethod === 8) {
574
+ // 8 - The file is Deflated
575
+ decompress = options.decodeFileData !== true;
576
+ } else {
577
+ return callback(new Error("unsupported compression method: " + entry.compressionMethod));
578
+ }
579
+
580
+ self.readLocalFileHeader(entry, {minimal: true}, function(err, localFileHeader) {
581
+ if (err) return callback(err);
582
+ self.openReadStreamLowLevel(
583
+ localFileHeader.fileDataStart, entry.compressedSize,
584
+ relativeStart, relativeEnd,
585
+ decompress, entry.uncompressedSize,
586
+ callback);
587
+ });
588
+ };
589
+
590
+ ZipFile.prototype.openReadStreamLowLevel = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, callback) {
591
+ var self = this;
592
+
593
+ var fileDataEnd = fileDataStart + compressedSize;
594
+ var readStream = self.reader.createReadStream({
595
+ start: fileDataStart + relativeStart,
596
+ end: fileDataStart + relativeEnd,
597
+ });
598
+ var endpointStream = readStream;
599
+ if (decompress) {
600
+ var destroyed = false;
601
+ var inflateFilter = zlib.createInflateRaw();
602
+ readStream.on("error", function(err) {
603
+ // setImmediate here because errors can be emitted during the first call to pipe()
604
+ setImmediate(function() {
605
+ if (!destroyed) inflateFilter.emit("error", err);
606
+ });
607
+ });
608
+ readStream.pipe(inflateFilter);
609
+
610
+ if (self.validateEntrySizes) {
611
+ endpointStream = new AssertByteCountStream(uncompressedSize);
612
+ inflateFilter.on("error", function(err) {
613
+ // forward zlib errors to the client-visible stream
614
+ setImmediate(function() {
615
+ if (!destroyed) endpointStream.emit("error", err);
616
+ });
617
+ });
618
+ inflateFilter.pipe(endpointStream);
619
+ } else {
620
+ // the zlib filter is the client-visible stream
621
+ endpointStream = inflateFilter;
622
+ }
623
+ // this is part of yauzl's API, so implement this function on the client-visible stream
624
+ installDestroyFn(endpointStream, function() {
625
+ destroyed = true;
626
+ if (inflateFilter !== endpointStream) inflateFilter.unpipe(endpointStream);
627
+ readStream.unpipe(inflateFilter);
628
+ // TODO: the inflateFilter may cause a memory leak. see Issue #27.
629
+ readStream.destroy();
630
+ });
631
+ }
632
+ callback(null, endpointStream);
633
+ };
634
+
635
+ ZipFile.prototype.readLocalFileHeader = function(entry, options, callback) {
636
+ var self = this;
637
+ if (callback == null) {
638
+ callback = options;
639
+ options = null;
640
+ }
641
+ if (options == null) options = {};
642
+
643
+ self.reader.ref();
644
+ var buffer = newBuffer(30);
645
+ readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader, function(err) {
646
+ try {
647
+ if (err) return callback(err);
648
+ // 0 - Local file header signature = 0x04034b50
649
+ var signature = buffer.readUInt32LE(0);
650
+ if (signature !== 0x04034b50) {
651
+ return callback(new Error("invalid local file header signature: 0x" + signature.toString(16)));
652
+ }
653
+
654
+ var fileNameLength = buffer.readUInt16LE(26);
655
+ var extraFieldLength = buffer.readUInt16LE(28);
656
+ var fileDataStart = entry.relativeOffsetOfLocalHeader + 30 + fileNameLength + extraFieldLength;
657
+ // We now have enough information to do this bounds check.
658
+ if (fileDataStart + entry.compressedSize > self.fileSize) {
659
+ return callback(new Error("file data overflows file bounds: " +
660
+ fileDataStart + " + " + entry.compressedSize + " > " + self.fileSize));
661
+ }
662
+
663
+ if (options.minimal) {
664
+ return callback(null, {fileDataStart: fileDataStart});
665
+ }
666
+
667
+ var localFileHeader = new LocalFileHeader();
668
+ localFileHeader.fileDataStart = fileDataStart;
669
+
670
+ // 4 - Version needed to extract (minimum)
671
+ localFileHeader.versionNeededToExtract = buffer.readUInt16LE(4);
672
+ // 6 - General purpose bit flag
673
+ localFileHeader.generalPurposeBitFlag = buffer.readUInt16LE(6);
674
+ // 8 - Compression method
675
+ localFileHeader.compressionMethod = buffer.readUInt16LE(8);
676
+ // 10 - File last modification time
677
+ localFileHeader.lastModFileTime = buffer.readUInt16LE(10);
678
+ // 12 - File last modification date
679
+ localFileHeader.lastModFileDate = buffer.readUInt16LE(12);
680
+ // 14 - CRC-32
681
+ localFileHeader.crc32 = buffer.readUInt32LE(14);
682
+ // 18 - Compressed size
683
+ localFileHeader.compressedSize = buffer.readUInt32LE(18);
684
+ // 22 - Uncompressed size
685
+ localFileHeader.uncompressedSize = buffer.readUInt32LE(22);
686
+ // 26 - File name length (n)
687
+ localFileHeader.fileNameLength = fileNameLength;
688
+ // 28 - Extra field length (m)
689
+ localFileHeader.extraFieldLength = extraFieldLength;
690
+ // 30 - File name
691
+ // 30+n - Extra field
692
+
693
+ buffer = newBuffer(fileNameLength + extraFieldLength);
694
+ self.reader.ref();
695
+ readAndAssertNoEof(self.reader, buffer, 0, buffer.length, entry.relativeOffsetOfLocalHeader + 30, function(err) {
696
+ try {
697
+ if (err) return callback(err);
698
+ localFileHeader.fileName = buffer.subarray(0, fileNameLength);
699
+ localFileHeader.extraField = buffer.subarray(fileNameLength);
700
+ return callback(null, localFileHeader);
701
+ } finally {
702
+ self.reader.unref();
703
+ }
704
+ });
705
+ } finally {
706
+ self.reader.unref();
707
+ }
708
+ });
709
+ };
710
+
711
+ ZipFile.prototype.openReadStreamPromise = function(entry, options) {
712
+ return new Promise((resolve, reject) => {
713
+ this.openReadStream(entry, options, function(err, readStream) {
714
+ if (err) return reject(err);
715
+ resolve(readStream);
716
+ });
717
+ });
718
+ };
719
+ ZipFile.prototype.openReadStreamLowLevelPromise = function(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize) {
720
+ return new Promise((resolve, reject) => {
721
+ this.openReadStream(fileDataStart, compressedSize, relativeStart, relativeEnd, decompress, uncompressedSize, function(err, readStream) {
722
+ if (err) return reject(err);
723
+ resolve(readStream);
724
+ });
725
+ });
726
+ };
727
+ ZipFile.prototype.readLocalFileHeaderPromise = function(entry, options) {
728
+ return new Promise((resolve, reject) => {
729
+ this.readLocalFileHeader(entry, options, function(err, localFileHeader) {
730
+ if (err) return reject(err);
731
+ resolve(localFileHeader);
732
+ });
733
+ });
734
+ };
735
+
736
+ function Entry() {
737
+ }
738
+ Entry.prototype.getLastModDate = function(options) {
739
+ if (options == null) options = {};
740
+
741
+ if (!options.forceDosFormat) {
742
+ // Check extended fields.
743
+ for (var i = 0; i < this.extraFields.length; i++) {
744
+ var extraField = this.extraFields[i];
745
+ if (extraField.id === 0x5455) {
746
+ // Info-ZIP "universal timestamp" extended field (`0x5455` aka `"UT"`).
747
+ // See the Info-ZIP source code unix/unix.c:set_extra_field() and zipfile.c:ef_scan_ut_time().
748
+ var data = extraField.data;
749
+ if (data.length < 5) continue; // Too short.
750
+ // The flags define which of the three fields are present: mtime, atime, ctime.
751
+ // We only care about mtime.
752
+ // Also, ctime is never included in practice.
753
+ // And also, atime is only included in the local file header for some reason
754
+ // despite the flags lying about its inclusion in the central header.
755
+ var flags = data[0];
756
+ var HAS_MTIME = 1;
757
+ if (!(flags & HAS_MTIME)) continue; // This will realistically never happen.
758
+ // Although the positions of all of the fields shift around depending on the presence of other fields,
759
+ // mtime is always first if present, and that's the only one we care about.
760
+ var posixTimestamp = data.readInt32LE(1);
761
+ return new Date(posixTimestamp * 1000);
762
+ } else if (extraField.id === 0x000a) {
763
+ var data = extraField.data;
764
+ if (data.length !== 32) continue; // The length is always the same.
765
+ // 4 bytes reserved
766
+ // 2 bytes Tag
767
+ if (data.readUInt16LE(4) !== 1) continue; // Tag1 is actually the only defined Tag.
768
+ // 2 bytes Size
769
+ if (data.readUInt16LE(6) !== 24) continue; // Size is always 24.
770
+ // 8 bytes Mtime
771
+ var hundredNanoSecondsSince1601 = data.readUInt32LE(8) + 4294967296 * data.readInt32LE(12);
772
+ // Convert from NTFS to POSIX milliseconds.
773
+ // The big number below is the milliseconds between year 1601 and year 1970
774
+ // (i.e. the negative POSIX timestamp of 1601-01-01 00:00:00Z)
775
+ var millisecondsSince1970 = hundredNanoSecondsSince1601 / 10000 - 11644473600000;
776
+ // Note on numeric precision: JavaScript Number objects lose precision above Number.MAX_SAFE_INTEGER,
777
+ // and NTFS timestamps are typically much bigger than that limit.
778
+ // (MAX_SAFE_INTEGER would represent 1629-07-17T23:58:45.475Z.)
779
+ // However, we're losing precision in the conversion from 100nanosecond units to millisecond units anyway,
780
+ // and the time at which we also lose 1-millisecond precision is year 275760, the JavaScript Date limit (by design).
781
+ // Up through the year 2057, this conversion only drops 4 bits of precision,
782
+ // which is well under the 13-14 bits ratio between the milliseconds and 100nanoseconds.
783
+ return new Date(millisecondsSince1970);
784
+ }
785
+ }
786
+ }
787
+
788
+ // Fallback to non-extended encoding.
789
+ return dosDateTimeToDate(this.lastModFileDate, this.lastModFileTime, options.timezone);
790
+ };
791
+
792
+ Entry.prototype.canDecodeFileData = function() {
793
+ return (
794
+ !this.isEncrypted() &&
795
+ (this.compressionMethod === 0 || this.compressionMethod === 8)
796
+ );
797
+ };
798
+ Entry.prototype.isEncrypted = function() {
799
+ return (this.generalPurposeBitFlag & 0x1) !== 0;
800
+ };
801
+ Entry.prototype.isCompressed = function() {
802
+ return this.compressionMethod === 8;
803
+ };
804
+
805
+ function LocalFileHeader() {
806
+ }
807
+
808
+ function dosDateTimeToDate(date, time, timezone) {
809
+ var day = date & 0x1f; // 1-31
810
+ var month = (date >> 5 & 0xf) - 1; // 1-12, 0-11
811
+ var year = (date >> 9 & 0x7f) + 1980; // 0-128, 1980-2108
812
+
813
+ var millisecond = 0;
814
+ var second = (time & 0x1f) * 2; // 0-29, 0-58 (even numbers)
815
+ var minute = time >> 5 & 0x3f; // 0-59
816
+ var hour = time >> 11 & 0x1f; // 0-23
817
+
818
+ if (timezone == null || timezone === "local") {
819
+ return new Date(year, month, day, hour, minute, second, millisecond);
820
+ } else if (timezone === "UTC") {
821
+ return new Date(Date.UTC(year, month, day, hour, minute, second, millisecond));
822
+ } else {
823
+ throw new Error("unrecognized options.timezone: " + options.timezone);
824
+ }
825
+ }
826
+
827
+ function getFileNameLowLevel(generalPurposeBitFlag, fileNameBuffer, extraFields, strictFileNames) {
828
+ var fileName = null;
829
+
830
+ // check for Info-ZIP Unicode Path Extra Field (0x7075)
831
+ // see https://github.com/thejoshwolfe/yauzl/issues/33
832
+ for (var i = 0; i < extraFields.length; i++) {
833
+ var extraField = extraFields[i];
834
+ if (extraField.id === 0x7075) {
835
+ if (extraField.data.length < 6) {
836
+ // too short to be meaningful
837
+ continue;
838
+ }
839
+ // Version 1 byte version of this extra field, currently 1
840
+ if (extraField.data.readUInt8(0) !== 1) {
841
+ // > Changes may not be backward compatible so this extra
842
+ // > field should not be used if the version is not recognized.
843
+ continue;
844
+ }
845
+ // NameCRC32 4 bytes File Name Field CRC32 Checksum
846
+ var oldNameCrc32 = extraField.data.readUInt32LE(1);
847
+ if (crc32(fileNameBuffer) !== oldNameCrc32) {
848
+ // > If the CRC check fails, this UTF-8 Path Extra Field should be
849
+ // > ignored and the File Name field in the header should be used instead.
850
+ continue;
851
+ }
852
+ // UnicodeName Variable UTF-8 version of the entry File Name
853
+ fileName = decodeBuffer(extraField.data.subarray(5), true);
854
+ break;
855
+ }
856
+ }
857
+
858
+ if (fileName == null) {
859
+ // The typical case.
860
+ var isUtf8 = (generalPurposeBitFlag & 0x800) !== 0;
861
+ fileName = decodeBuffer(fileNameBuffer, isUtf8);
862
+ }
863
+
864
+ if (!strictFileNames) {
865
+ // Allow backslash.
866
+ fileName = fileName.replace(/\\/g, "/");
867
+ }
868
+ return fileName;
869
+ }
870
+
871
+ function validateFileName(fileName) {
872
+ if (fileName.indexOf("\\") !== -1) {
873
+ return "invalid characters in fileName: " + fileName;
874
+ }
875
+ if (/^[a-zA-Z]:/.test(fileName) || /^\//.test(fileName)) {
876
+ return "absolute path: " + fileName;
877
+ }
878
+ if (fileName.split("/").indexOf("..") !== -1) {
879
+ return "invalid relative path: " + fileName;
880
+ }
881
+ // all good
882
+ return null;
883
+ }
884
+
885
+ function parseExtraFields(extraFieldBuffer) {
886
+ var extraFields = [];
887
+ var i = 0;
888
+ while (i < extraFieldBuffer.length - 3) {
889
+ var headerId = extraFieldBuffer.readUInt16LE(i + 0);
890
+ var dataSize = extraFieldBuffer.readUInt16LE(i + 2);
891
+ var dataStart = i + 4;
892
+ var dataEnd = dataStart + dataSize;
893
+ if (dataEnd > extraFieldBuffer.length) throw new Error("extra field length exceeds extra field buffer size");
894
+ var dataBuffer = extraFieldBuffer.subarray(dataStart, dataEnd);
895
+ extraFields.push({
896
+ id: headerId,
897
+ data: dataBuffer,
898
+ });
899
+ i = dataEnd;
900
+ }
901
+ return extraFields;
902
+ }
903
+
904
+ function readAndAssertNoEof(reader, buffer, offset, length, position, callback) {
905
+ if (length === 0) {
906
+ // fs.read will throw an out-of-bounds error if you try to read 0 bytes from a 0 byte file
907
+ return setImmediate(function() { callback(null, newBuffer(0)); });
908
+ }
909
+ reader.read(buffer, offset, length, position, function(err, bytesRead) {
910
+ if (err) return callback(err);
911
+ if (bytesRead < length) {
912
+ return callback(new Error("unexpected EOF"));
913
+ }
914
+ callback();
915
+ });
916
+ }
917
+
918
+ util.inherits(AssertByteCountStream, Transform);
919
+ function AssertByteCountStream(byteCount) {
920
+ Transform.call(this);
921
+ this.actualByteCount = 0;
922
+ this.expectedByteCount = byteCount;
923
+ }
924
+ AssertByteCountStream.prototype._transform = function(chunk, encoding, cb) {
925
+ this.actualByteCount += chunk.length;
926
+ if (this.actualByteCount > this.expectedByteCount) {
927
+ var msg = "too many bytes in the stream. expected " + this.expectedByteCount + ". got at least " + this.actualByteCount;
928
+ return cb(new Error(msg));
929
+ }
930
+ cb(null, chunk);
931
+ };
932
+ AssertByteCountStream.prototype._flush = function(cb) {
933
+ if (this.actualByteCount < this.expectedByteCount) {
934
+ var msg = "not enough bytes in the stream. expected " + this.expectedByteCount + ". got only " + this.actualByteCount;
935
+ return cb(new Error(msg));
936
+ }
937
+ cb();
938
+ };
939
+
940
+ util.inherits(RandomAccessReader, EventEmitter);
941
+ function RandomAccessReader() {
942
+ EventEmitter.call(this);
943
+ this.refCount = 0;
944
+ }
945
+ RandomAccessReader.prototype.ref = function() {
946
+ this.refCount += 1;
947
+ };
948
+ RandomAccessReader.prototype.unref = function() {
949
+ var self = this;
950
+ self.refCount -= 1;
951
+
952
+ if (self.refCount > 0) return;
953
+ if (self.refCount < 0) throw new Error("invalid unref");
954
+
955
+ self.close(onCloseDone);
956
+
957
+ function onCloseDone(err) {
958
+ if (err) return self.emit('error', err);
959
+ self.emit('close');
960
+ }
961
+ };
962
+ RandomAccessReader.prototype.createReadStream = function(options) {
963
+ if (options == null) options = {};
964
+ var start = options.start;
965
+ var end = options.end;
966
+ if (start === end) {
967
+ var emptyStream = new PassThrough();
968
+ setImmediate(function() {
969
+ emptyStream.end();
970
+ });
971
+ return emptyStream;
972
+ }
973
+ var stream = this._readStreamForRange(start, end);
974
+
975
+ var destroyed = false;
976
+ var refUnrefFilter = new RefUnrefFilter(this);
977
+ stream.on("error", function(err) {
978
+ setImmediate(function() {
979
+ if (!destroyed) refUnrefFilter.emit("error", err);
980
+ });
981
+ });
982
+ installDestroyFn(refUnrefFilter, function() {
983
+ stream.unpipe(refUnrefFilter);
984
+ refUnrefFilter.unref();
985
+ stream.destroy();
986
+ });
987
+
988
+ var byteCounter = new AssertByteCountStream(end - start);
989
+ refUnrefFilter.on("error", function(err) {
990
+ setImmediate(function() {
991
+ if (!destroyed) byteCounter.emit("error", err);
992
+ });
993
+ });
994
+ installDestroyFn(byteCounter, function() {
995
+ destroyed = true;
996
+ refUnrefFilter.unpipe(byteCounter);
997
+ refUnrefFilter.destroy();
998
+ });
999
+
1000
+ return stream.pipe(refUnrefFilter).pipe(byteCounter);
1001
+ };
1002
+ RandomAccessReader.prototype._readStreamForRange = function(start, end) {
1003
+ throw new Error("not implemented");
1004
+ };
1005
+ RandomAccessReader.prototype.read = function(buffer, offset, length, position, callback) {
1006
+ var readStream = this.createReadStream({start: position, end: position + length});
1007
+ var writeStream = new Writable();
1008
+ var written = 0;
1009
+ writeStream._write = function(chunk, encoding, cb) {
1010
+ chunk.copy(buffer, offset + written, 0, chunk.length);
1011
+ written += chunk.length;
1012
+ cb();
1013
+ };
1014
+ writeStream.on("finish", callback);
1015
+ readStream.on("error", function(error) {
1016
+ callback(error);
1017
+ });
1018
+ readStream.pipe(writeStream);
1019
+ };
1020
+ RandomAccessReader.prototype.close = function(callback) {
1021
+ setImmediate(callback);
1022
+ };
1023
+
1024
+ util.inherits(RefUnrefFilter, PassThrough);
1025
+ function RefUnrefFilter(context) {
1026
+ PassThrough.call(this);
1027
+ this.context = context;
1028
+ this.context.ref();
1029
+ this.unreffedYet = false;
1030
+ }
1031
+ RefUnrefFilter.prototype._flush = function(cb) {
1032
+ this.unref();
1033
+ cb();
1034
+ };
1035
+ RefUnrefFilter.prototype.unref = function(cb) {
1036
+ if (this.unreffedYet) return;
1037
+ this.unreffedYet = true;
1038
+ this.context.unref();
1039
+ };
1040
+
1041
+ var cp437 = '\u0000☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ';
1042
+ function decodeBuffer(buffer, isUtf8) {
1043
+ if (isUtf8) {
1044
+ return buffer.toString("utf8");
1045
+ } else {
1046
+ var result = "";
1047
+ for (var i = 0; i < buffer.length; i++) {
1048
+ result += cp437[buffer[i]];
1049
+ }
1050
+ return result;
1051
+ }
1052
+ }
1053
+
1054
+ function readUInt64LE(buffer, offset) {
1055
+ // There is no native function for this, because we can't actually store 64-bit integers precisely.
1056
+ // after 53 bits, JavaScript's Number type (IEEE 754 double) can't store individual integers anymore.
1057
+ // but since 53 bits is a whole lot more than 32 bits, we do our best anyway.
1058
+ // As of 2020, Node has added support for BigInt, which obviates this whole function,
1059
+ // but yauzl hasn't been updated to depend on BigInt (yet?).
1060
+ var lower32 = buffer.readUInt32LE(offset);
1061
+ var upper32 = buffer.readUInt32LE(offset + 4);
1062
+ // we can't use bitshifting here, because JavaScript bitshifting only works on 32-bit integers.
1063
+ return upper32 * 0x100000000 + lower32;
1064
+ // as long as we're bounds checking the result of this function against the total file size,
1065
+ // we'll catch any overflow errors, because we already made sure the total file size was within reason.
1066
+ }
1067
+
1068
+ // Node 10 deprecated new Buffer().
1069
+ var newBuffer;
1070
+ if (typeof Buffer.allocUnsafe === "function") {
1071
+ newBuffer = function(len) {
1072
+ return Buffer.allocUnsafe(len);
1073
+ };
1074
+ } else {
1075
+ newBuffer = function(len) {
1076
+ return new Buffer(len);
1077
+ };
1078
+ }
1079
+
1080
+ // Node 8 introduced a proper destroy() implementation on writable streams.
1081
+ function installDestroyFn(stream, fn) {
1082
+ if (typeof stream.destroy === "function") {
1083
+ // New API.
1084
+ stream._destroy = function(err, cb) {
1085
+ fn();
1086
+ if (cb != null) cb(err);
1087
+ };
1088
+ } else {
1089
+ // Old API.
1090
+ stream.destroy = fn;
1091
+ }
1092
+ }
1093
+
1094
+ function defaultCallback(err) {
1095
+ if (err) throw err;
1096
+ }