playwright-smart-test 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1544) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +270 -2
  3. package/dist/ai/ai-analyzer.d.ts +17 -0
  4. package/dist/ai/ai-analyzer.js +224 -0
  5. package/dist/catalog/test-catalog.d.ts +8 -0
  6. package/dist/catalog/test-catalog.js +111 -0
  7. package/dist/cli/index.d.ts +2 -0
  8. package/dist/cli/index.js +147 -0
  9. package/dist/config/index.d.ts +3 -0
  10. package/dist/config/index.js +37 -0
  11. package/dist/config/schema.d.ts +97 -0
  12. package/dist/config/schema.js +72 -0
  13. package/dist/diff/git-diff-analyzer.d.ts +24 -0
  14. package/dist/diff/git-diff-analyzer.js +105 -0
  15. package/dist/index.d.ts +8 -0
  16. package/dist/index.js +8 -0
  17. package/dist/reporters/github-reporter.d.ts +5 -0
  18. package/dist/reporters/github-reporter.js +72 -0
  19. package/dist/reporters/terminal-reporter.d.ts +5 -0
  20. package/dist/reporters/terminal-reporter.js +69 -0
  21. package/dist/runner/playwright-runner.d.ts +7 -0
  22. package/dist/runner/playwright-runner.js +25 -0
  23. package/dist/selector/test-selector.d.ts +18 -0
  24. package/dist/selector/test-selector.js +303 -0
  25. package/node_modules/@colors/colors/LICENSE +26 -0
  26. package/node_modules/@colors/colors/README.md +219 -0
  27. package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
  28. package/node_modules/@colors/colors/examples/safe-string.js +80 -0
  29. package/node_modules/@colors/colors/index.d.ts +136 -0
  30. package/node_modules/@colors/colors/lib/colors.js +211 -0
  31. package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
  32. package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
  33. package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
  34. package/node_modules/@colors/colors/lib/index.js +13 -0
  35. package/node_modules/@colors/colors/lib/maps/america.js +10 -0
  36. package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
  37. package/node_modules/@colors/colors/lib/maps/random.js +11 -0
  38. package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
  39. package/node_modules/@colors/colors/lib/styles.js +95 -0
  40. package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
  41. package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
  42. package/node_modules/@colors/colors/package.json +45 -0
  43. package/node_modules/@colors/colors/safe.d.ts +48 -0
  44. package/node_modules/@colors/colors/safe.js +10 -0
  45. package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
  46. package/node_modules/@google/genai/LICENSE +202 -0
  47. package/node_modules/@google/genai/README.md +244 -0
  48. package/node_modules/@google/genai/dist/genai.d.ts +3329 -0
  49. package/node_modules/@google/genai/dist/index.js +6999 -0
  50. package/node_modules/@google/genai/dist/index.js.map +1 -0
  51. package/node_modules/@google/genai/dist/index.mjs +6961 -0
  52. package/node_modules/@google/genai/dist/index.mjs.map +1 -0
  53. package/node_modules/@google/genai/dist/node/index.js +7308 -0
  54. package/node_modules/@google/genai/dist/node/index.js.map +1 -0
  55. package/node_modules/@google/genai/dist/node/node.d.ts +3334 -0
  56. package/node_modules/@google/genai/dist/web/index.mjs +7007 -0
  57. package/node_modules/@google/genai/dist/web/index.mjs.map +1 -0
  58. package/node_modules/@google/genai/dist/web/web.d.ts +3329 -0
  59. package/node_modules/@google/genai/node/package.json +4 -0
  60. package/node_modules/@google/genai/package.json +104 -0
  61. package/node_modules/@google/genai/web/package.json +4 -0
  62. package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
  63. package/node_modules/@isaacs/nonrecursive-glob-match/README.md +333 -0
  64. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +114 -0
  65. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
  66. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +762 -0
  67. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
  68. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
  69. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
  70. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
  71. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
  72. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
  73. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
  74. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
  75. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +114 -0
  76. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
  77. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +758 -0
  78. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
  79. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
  80. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
  81. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
  82. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
  83. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
  84. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
  85. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
  86. package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
  87. package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +900 -0
  88. package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
  89. package/node_modules/agent-base/LICENSE +22 -0
  90. package/node_modules/agent-base/README.md +69 -0
  91. package/node_modules/agent-base/dist/helpers.d.ts +15 -0
  92. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  93. package/node_modules/agent-base/dist/helpers.js +66 -0
  94. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  95. package/node_modules/agent-base/dist/index.d.ts +41 -0
  96. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  97. package/node_modules/agent-base/dist/index.js +178 -0
  98. package/node_modules/agent-base/dist/index.js.map +1 -0
  99. package/node_modules/agent-base/package.json +46 -0
  100. package/node_modules/ansi-regex/index.d.ts +37 -0
  101. package/node_modules/ansi-regex/index.js +10 -0
  102. package/node_modules/ansi-regex/license +9 -0
  103. package/node_modules/ansi-regex/package.json +55 -0
  104. package/node_modules/ansi-regex/readme.md +78 -0
  105. package/node_modules/balanced-match/LICENSE.md +23 -0
  106. package/node_modules/balanced-match/README.md +57 -0
  107. package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
  108. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  109. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  110. package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
  111. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  112. package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
  113. package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
  114. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  115. package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
  116. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  117. package/node_modules/balanced-match/package.json +68 -0
  118. package/node_modules/base64-js/LICENSE +21 -0
  119. package/node_modules/base64-js/README.md +34 -0
  120. package/node_modules/base64-js/base64js.min.js +1 -0
  121. package/node_modules/base64-js/index.d.ts +3 -0
  122. package/node_modules/base64-js/index.js +150 -0
  123. package/node_modules/base64-js/package.json +47 -0
  124. package/node_modules/bignumber.js/CHANGELOG.md +381 -0
  125. package/node_modules/bignumber.js/LICENCE.md +26 -0
  126. package/node_modules/bignumber.js/README.md +289 -0
  127. package/node_modules/bignumber.js/bignumber.d.mts +6 -0
  128. package/node_modules/bignumber.js/bignumber.d.ts +5 -0
  129. package/node_modules/bignumber.js/bignumber.js +2922 -0
  130. package/node_modules/bignumber.js/bignumber.mjs +2907 -0
  131. package/node_modules/bignumber.js/doc/API.html +2249 -0
  132. package/node_modules/bignumber.js/package.json +60 -0
  133. package/node_modules/bignumber.js/types.d.ts +1821 -0
  134. package/node_modules/brace-expansion/LICENSE +23 -0
  135. package/node_modules/brace-expansion/README.md +105 -0
  136. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +12 -0
  137. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  138. package/node_modules/brace-expansion/dist/commonjs/index.js +333 -0
  139. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
  140. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  141. package/node_modules/brace-expansion/dist/esm/index.d.ts +12 -0
  142. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
  143. package/node_modules/brace-expansion/dist/esm/index.js +329 -0
  144. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
  145. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  146. package/node_modules/brace-expansion/package.json +65 -0
  147. package/node_modules/buffer-equal-constant-time/.npmignore +2 -0
  148. package/node_modules/buffer-equal-constant-time/.travis.yml +4 -0
  149. package/node_modules/buffer-equal-constant-time/LICENSE.txt +12 -0
  150. package/node_modules/buffer-equal-constant-time/README.md +50 -0
  151. package/node_modules/buffer-equal-constant-time/index.js +41 -0
  152. package/node_modules/buffer-equal-constant-time/package.json +21 -0
  153. package/node_modules/buffer-equal-constant-time/test.js +42 -0
  154. package/node_modules/cli-table3/LICENSE +21 -0
  155. package/node_modules/cli-table3/README.md +236 -0
  156. package/node_modules/cli-table3/index.d.ts +96 -0
  157. package/node_modules/cli-table3/index.js +1 -0
  158. package/node_modules/cli-table3/package.json +100 -0
  159. package/node_modules/cli-table3/src/cell.js +409 -0
  160. package/node_modules/cli-table3/src/debug.js +28 -0
  161. package/node_modules/cli-table3/src/layout-manager.js +254 -0
  162. package/node_modules/cli-table3/src/table.js +106 -0
  163. package/node_modules/cli-table3/src/utils.js +344 -0
  164. package/node_modules/commander/LICENSE +22 -0
  165. package/node_modules/commander/Readme.md +1157 -0
  166. package/node_modules/commander/esm.mjs +16 -0
  167. package/node_modules/commander/index.js +24 -0
  168. package/node_modules/commander/lib/argument.js +149 -0
  169. package/node_modules/commander/lib/command.js +2509 -0
  170. package/node_modules/commander/lib/error.js +39 -0
  171. package/node_modules/commander/lib/help.js +520 -0
  172. package/node_modules/commander/lib/option.js +330 -0
  173. package/node_modules/commander/lib/suggestSimilar.js +101 -0
  174. package/node_modules/commander/package-support.json +16 -0
  175. package/node_modules/commander/package.json +84 -0
  176. package/node_modules/commander/typings/esm.d.mts +3 -0
  177. package/node_modules/commander/typings/index.d.ts +969 -0
  178. package/node_modules/debug/LICENSE +20 -0
  179. package/node_modules/debug/README.md +481 -0
  180. package/node_modules/debug/package.json +64 -0
  181. package/node_modules/debug/src/browser.js +272 -0
  182. package/node_modules/debug/src/common.js +292 -0
  183. package/node_modules/debug/src/index.js +10 -0
  184. package/node_modules/debug/src/node.js +263 -0
  185. package/node_modules/dotenv/CHANGELOG.md +520 -0
  186. package/node_modules/dotenv/LICENSE +23 -0
  187. package/node_modules/dotenv/README-es.md +411 -0
  188. package/node_modules/dotenv/README.md +645 -0
  189. package/node_modules/dotenv/SECURITY.md +1 -0
  190. package/node_modules/dotenv/config.d.ts +1 -0
  191. package/node_modules/dotenv/config.js +9 -0
  192. package/node_modules/dotenv/lib/cli-options.js +17 -0
  193. package/node_modules/dotenv/lib/env-options.js +28 -0
  194. package/node_modules/dotenv/lib/main.d.ts +162 -0
  195. package/node_modules/dotenv/lib/main.js +386 -0
  196. package/node_modules/dotenv/package.json +62 -0
  197. package/node_modules/ecdsa-sig-formatter/CODEOWNERS +1 -0
  198. package/node_modules/ecdsa-sig-formatter/LICENSE +201 -0
  199. package/node_modules/ecdsa-sig-formatter/README.md +65 -0
  200. package/node_modules/ecdsa-sig-formatter/package.json +46 -0
  201. package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts +17 -0
  202. package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
  203. package/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
  204. package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  205. package/node_modules/emoji-regex/README.md +73 -0
  206. package/node_modules/emoji-regex/es2015/index.js +6 -0
  207. package/node_modules/emoji-regex/es2015/text.js +6 -0
  208. package/node_modules/emoji-regex/index.d.ts +23 -0
  209. package/node_modules/emoji-regex/index.js +6 -0
  210. package/node_modules/emoji-regex/package.json +50 -0
  211. package/node_modules/emoji-regex/text.js +6 -0
  212. package/node_modules/extend/.editorconfig +20 -0
  213. package/node_modules/extend/.eslintrc +17 -0
  214. package/node_modules/extend/.jscs.json +175 -0
  215. package/node_modules/extend/.travis.yml +230 -0
  216. package/node_modules/extend/CHANGELOG.md +83 -0
  217. package/node_modules/extend/LICENSE +23 -0
  218. package/node_modules/extend/README.md +81 -0
  219. package/node_modules/extend/component.json +32 -0
  220. package/node_modules/extend/index.js +117 -0
  221. package/node_modules/extend/package.json +42 -0
  222. package/node_modules/gaxios/LICENSE +202 -0
  223. package/node_modules/gaxios/README.md +171 -0
  224. package/node_modules/gaxios/build/src/common.d.ts +220 -0
  225. package/node_modules/gaxios/build/src/common.js +172 -0
  226. package/node_modules/gaxios/build/src/common.js.map +1 -0
  227. package/node_modules/gaxios/build/src/gaxios.d.ts +51 -0
  228. package/node_modules/gaxios/build/src/gaxios.js +363 -0
  229. package/node_modules/gaxios/build/src/gaxios.js.map +1 -0
  230. package/node_modules/gaxios/build/src/index.d.ts +14 -0
  231. package/node_modules/gaxios/build/src/index.js +33 -0
  232. package/node_modules/gaxios/build/src/index.js.map +1 -0
  233. package/node_modules/gaxios/build/src/retry.d.ts +8 -0
  234. package/node_modules/gaxios/build/src/retry.js +139 -0
  235. package/node_modules/gaxios/build/src/retry.js.map +1 -0
  236. package/node_modules/gaxios/build/src/util.d.ts +4 -0
  237. package/node_modules/gaxios/build/src/util.js +17 -0
  238. package/node_modules/gaxios/build/src/util.js.map +1 -0
  239. package/node_modules/gaxios/package.json +95 -0
  240. package/node_modules/gcp-metadata/LICENSE +202 -0
  241. package/node_modules/gcp-metadata/README.md +235 -0
  242. package/node_modules/gcp-metadata/build/src/gcp-residency.d.ts +57 -0
  243. package/node_modules/gcp-metadata/build/src/gcp-residency.js +114 -0
  244. package/node_modules/gcp-metadata/build/src/gcp-residency.js.map +1 -0
  245. package/node_modules/gcp-metadata/build/src/index.d.ts +156 -0
  246. package/node_modules/gcp-metadata/build/src/index.js +408 -0
  247. package/node_modules/gcp-metadata/build/src/index.js.map +1 -0
  248. package/node_modules/gcp-metadata/package.json +73 -0
  249. package/node_modules/glob/LICENSE.md +63 -0
  250. package/node_modules/glob/README.md +1377 -0
  251. package/node_modules/glob/dist/commonjs/glob.d.ts +405 -0
  252. package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
  253. package/node_modules/glob/dist/commonjs/glob.js +241 -0
  254. package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
  255. package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
  256. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
  257. package/node_modules/glob/dist/commonjs/has-magic.js +24 -0
  258. package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
  259. package/node_modules/glob/dist/commonjs/ignore.d.ts +36 -0
  260. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
  261. package/node_modules/glob/dist/commonjs/ignore.js +139 -0
  262. package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
  263. package/node_modules/glob/dist/commonjs/index.d.ts +98 -0
  264. package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
  265. package/node_modules/glob/dist/commonjs/index.js +68 -0
  266. package/node_modules/glob/dist/commonjs/index.js.map +1 -0
  267. package/node_modules/glob/dist/commonjs/index.min.js +3 -0
  268. package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
  269. package/node_modules/glob/dist/commonjs/package.json +3 -0
  270. package/node_modules/glob/dist/commonjs/pattern.d.ts +86 -0
  271. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
  272. package/node_modules/glob/dist/commonjs/pattern.js +235 -0
  273. package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
  274. package/node_modules/glob/dist/commonjs/processor.d.ts +72 -0
  275. package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
  276. package/node_modules/glob/dist/commonjs/processor.js +314 -0
  277. package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
  278. package/node_modules/glob/dist/commonjs/walker.d.ts +99 -0
  279. package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
  280. package/node_modules/glob/dist/commonjs/walker.js +402 -0
  281. package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
  282. package/node_modules/glob/dist/esm/glob.d.ts +405 -0
  283. package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
  284. package/node_modules/glob/dist/esm/glob.js +237 -0
  285. package/node_modules/glob/dist/esm/glob.js.map +1 -0
  286. package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
  287. package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
  288. package/node_modules/glob/dist/esm/has-magic.js +20 -0
  289. package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
  290. package/node_modules/glob/dist/esm/ignore.d.ts +36 -0
  291. package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
  292. package/node_modules/glob/dist/esm/ignore.js +135 -0
  293. package/node_modules/glob/dist/esm/ignore.js.map +1 -0
  294. package/node_modules/glob/dist/esm/index.d.ts +98 -0
  295. package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
  296. package/node_modules/glob/dist/esm/index.js +55 -0
  297. package/node_modules/glob/dist/esm/index.js.map +1 -0
  298. package/node_modules/glob/dist/esm/index.min.js +3 -0
  299. package/node_modules/glob/dist/esm/index.min.js.map +7 -0
  300. package/node_modules/glob/dist/esm/package.json +3 -0
  301. package/node_modules/glob/dist/esm/pattern.d.ts +86 -0
  302. package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
  303. package/node_modules/glob/dist/esm/pattern.js +231 -0
  304. package/node_modules/glob/dist/esm/pattern.js.map +1 -0
  305. package/node_modules/glob/dist/esm/processor.d.ts +72 -0
  306. package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
  307. package/node_modules/glob/dist/esm/processor.js +307 -0
  308. package/node_modules/glob/dist/esm/processor.js.map +1 -0
  309. package/node_modules/glob/dist/esm/walker.d.ts +99 -0
  310. package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
  311. package/node_modules/glob/dist/esm/walker.js +396 -0
  312. package/node_modules/glob/dist/esm/walker.js.map +1 -0
  313. package/node_modules/glob/package.json +114 -0
  314. package/node_modules/glob/src/glob.ts +655 -0
  315. package/node_modules/glob/src/has-magic.ts +23 -0
  316. package/node_modules/glob/src/ignore.ts +162 -0
  317. package/node_modules/glob/src/index.ts +225 -0
  318. package/node_modules/glob/src/pattern.ts +286 -0
  319. package/node_modules/glob/src/processor.ts +333 -0
  320. package/node_modules/glob/src/walker.ts +523 -0
  321. package/node_modules/google-auth-library/LICENSE +202 -0
  322. package/node_modules/google-auth-library/README.md +1470 -0
  323. package/node_modules/google-auth-library/build/src/auth/authclient.d.ts +202 -0
  324. package/node_modules/google-auth-library/build/src/auth/authclient.js +116 -0
  325. package/node_modules/google-auth-library/build/src/auth/awsclient.d.ts +120 -0
  326. package/node_modules/google-auth-library/build/src/auth/awsclient.js +164 -0
  327. package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.d.ts +40 -0
  328. package/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js +209 -0
  329. package/node_modules/google-auth-library/build/src/auth/baseexternalclient.d.ts +322 -0
  330. package/node_modules/google-auth-library/build/src/auth/baseexternalclient.js +468 -0
  331. package/node_modules/google-auth-library/build/src/auth/computeclient.d.ts +37 -0
  332. package/node_modules/google-auth-library/build/src/auth/computeclient.js +117 -0
  333. package/node_modules/google-auth-library/build/src/auth/credentials.d.ts +75 -0
  334. package/node_modules/google-auth-library/build/src/auth/credentials.js +15 -0
  335. package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.d.ts +79 -0
  336. package/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js +196 -0
  337. package/node_modules/google-auth-library/build/src/auth/downscopedclient.d.ts +139 -0
  338. package/node_modules/google-auth-library/build/src/auth/downscopedclient.js +262 -0
  339. package/node_modules/google-auth-library/build/src/auth/envDetect.d.ts +10 -0
  340. package/node_modules/google-auth-library/build/src/auth/envDetect.js +89 -0
  341. package/node_modules/google-auth-library/build/src/auth/executable-response.d.ts +137 -0
  342. package/node_modules/google-auth-library/build/src/auth/executable-response.js +146 -0
  343. package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.d.ts +78 -0
  344. package/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js +239 -0
  345. package/node_modules/google-auth-library/build/src/auth/externalclient.d.ts +26 -0
  346. package/node_modules/google-auth-library/build/src/auth/externalclient.js +64 -0
  347. package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.d.ts +42 -0
  348. package/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js +81 -0
  349. package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +375 -0
  350. package/node_modules/google-auth-library/build/src/auth/googleauth.js +841 -0
  351. package/node_modules/google-auth-library/build/src/auth/iam.d.ts +23 -0
  352. package/node_modules/google-auth-library/build/src/auth/iam.js +41 -0
  353. package/node_modules/google-auth-library/build/src/auth/identitypoolclient.d.ts +102 -0
  354. package/node_modules/google-auth-library/build/src/auth/identitypoolclient.js +107 -0
  355. package/node_modules/google-auth-library/build/src/auth/idtokenclient.d.ts +27 -0
  356. package/node_modules/google-auth-library/build/src/auth/idtokenclient.js +55 -0
  357. package/node_modules/google-auth-library/build/src/auth/impersonated.d.ts +127 -0
  358. package/node_modules/google-auth-library/build/src/auth/impersonated.js +186 -0
  359. package/node_modules/google-auth-library/build/src/auth/jwtaccess.d.ts +62 -0
  360. package/node_modules/google-auth-library/build/src/auth/jwtaccess.js +192 -0
  361. package/node_modules/google-auth-library/build/src/auth/jwtclient.d.ts +117 -0
  362. package/node_modules/google-auth-library/build/src/auth/jwtclient.js +284 -0
  363. package/node_modules/google-auth-library/build/src/auth/loginticket.d.ts +140 -0
  364. package/node_modules/google-auth-library/build/src/auth/loginticket.js +57 -0
  365. package/node_modules/google-auth-library/build/src/auth/oauth2client.d.ts +575 -0
  366. package/node_modules/google-auth-library/build/src/auth/oauth2client.js +794 -0
  367. package/node_modules/google-auth-library/build/src/auth/oauth2common.d.ts +92 -0
  368. package/node_modules/google-auth-library/build/src/auth/oauth2common.js +192 -0
  369. package/node_modules/google-auth-library/build/src/auth/passthrough.d.ts +38 -0
  370. package/node_modules/google-auth-library/build/src/auth/passthrough.js +61 -0
  371. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.d.ts +155 -0
  372. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js +215 -0
  373. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.d.ts +51 -0
  374. package/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js +156 -0
  375. package/node_modules/google-auth-library/build/src/auth/refreshclient.d.ts +50 -0
  376. package/node_modules/google-auth-library/build/src/auth/refreshclient.js +132 -0
  377. package/node_modules/google-auth-library/build/src/auth/stscredentials.d.ts +114 -0
  378. package/node_modules/google-auth-library/build/src/auth/stscredentials.js +109 -0
  379. package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.d.ts +57 -0
  380. package/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js +63 -0
  381. package/node_modules/google-auth-library/build/src/crypto/browser/crypto.d.ts +27 -0
  382. package/node_modules/google-auth-library/build/src/crypto/browser/crypto.js +126 -0
  383. package/node_modules/google-auth-library/build/src/crypto/crypto.d.ts +44 -0
  384. package/node_modules/google-auth-library/build/src/crypto/crypto.js +47 -0
  385. package/node_modules/google-auth-library/build/src/crypto/node/crypto.d.ts +25 -0
  386. package/node_modules/google-auth-library/build/src/crypto/node/crypto.js +82 -0
  387. package/node_modules/google-auth-library/build/src/index.d.ts +33 -0
  388. package/node_modules/google-auth-library/build/src/index.js +68 -0
  389. package/node_modules/google-auth-library/build/src/messages.d.ts +11 -0
  390. package/node_modules/google-auth-library/build/src/messages.js +39 -0
  391. package/node_modules/google-auth-library/build/src/options.d.ts +1 -0
  392. package/node_modules/google-auth-library/build/src/options.js +34 -0
  393. package/node_modules/google-auth-library/build/src/transporters.d.ts +40 -0
  394. package/node_modules/google-auth-library/build/src/transporters.js +110 -0
  395. package/node_modules/google-auth-library/build/src/util.d.ts +151 -0
  396. package/node_modules/google-auth-library/build/src/util.js +125 -0
  397. package/node_modules/google-auth-library/package.json +94 -0
  398. package/node_modules/google-logging-utils/LICENSE +202 -0
  399. package/node_modules/google-logging-utils/build/src/colours.d.ts +29 -0
  400. package/node_modules/google-logging-utils/build/src/colours.js +80 -0
  401. package/node_modules/google-logging-utils/build/src/colours.js.map +1 -0
  402. package/node_modules/google-logging-utils/build/src/index.d.ts +1 -0
  403. package/node_modules/google-logging-utils/build/src/index.js +31 -0
  404. package/node_modules/google-logging-utils/build/src/index.js.map +1 -0
  405. package/node_modules/google-logging-utils/build/src/logging-utils.d.ts +222 -0
  406. package/node_modules/google-logging-utils/build/src/logging-utils.js +406 -0
  407. package/node_modules/google-logging-utils/build/src/logging-utils.js.map +1 -0
  408. package/node_modules/google-logging-utils/build/src/temporal.d.ts +45 -0
  409. package/node_modules/google-logging-utils/build/src/temporal.js +68 -0
  410. package/node_modules/google-logging-utils/build/src/temporal.js.map +1 -0
  411. package/node_modules/google-logging-utils/package.json +39 -0
  412. package/node_modules/gtoken/LICENSE +21 -0
  413. package/node_modules/gtoken/README.md +187 -0
  414. package/node_modules/gtoken/build/src/index.d.ts +93 -0
  415. package/node_modules/gtoken/build/src/index.js +276 -0
  416. package/node_modules/gtoken/package.json +62 -0
  417. package/node_modules/https-proxy-agent/LICENSE +22 -0
  418. package/node_modules/https-proxy-agent/README.md +70 -0
  419. package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
  420. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  421. package/node_modules/https-proxy-agent/dist/index.js +180 -0
  422. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  423. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
  424. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  425. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
  426. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  427. package/node_modules/https-proxy-agent/package.json +50 -0
  428. package/node_modules/is-fullwidth-code-point/index.d.ts +17 -0
  429. package/node_modules/is-fullwidth-code-point/index.js +50 -0
  430. package/node_modules/is-fullwidth-code-point/license +9 -0
  431. package/node_modules/is-fullwidth-code-point/package.json +42 -0
  432. package/node_modules/is-fullwidth-code-point/readme.md +39 -0
  433. package/node_modules/is-stream/index.d.ts +79 -0
  434. package/node_modules/is-stream/index.js +28 -0
  435. package/node_modules/is-stream/license +9 -0
  436. package/node_modules/is-stream/package.json +42 -0
  437. package/node_modules/is-stream/readme.md +60 -0
  438. package/node_modules/json-bigint/LICENSE +20 -0
  439. package/node_modules/json-bigint/README.md +240 -0
  440. package/node_modules/json-bigint/index.js +12 -0
  441. package/node_modules/json-bigint/lib/parse.js +443 -0
  442. package/node_modules/json-bigint/lib/stringify.js +384 -0
  443. package/node_modules/json-bigint/package.json +34 -0
  444. package/node_modules/jwa/LICENSE +17 -0
  445. package/node_modules/jwa/README.md +150 -0
  446. package/node_modules/jwa/index.js +266 -0
  447. package/node_modules/jwa/opslevel.yml +6 -0
  448. package/node_modules/jwa/package.json +37 -0
  449. package/node_modules/jws/CHANGELOG.md +56 -0
  450. package/node_modules/jws/LICENSE +17 -0
  451. package/node_modules/jws/index.js +22 -0
  452. package/node_modules/jws/lib/data-stream.js +55 -0
  453. package/node_modules/jws/lib/sign-stream.js +83 -0
  454. package/node_modules/jws/lib/tostring.js +10 -0
  455. package/node_modules/jws/lib/verify-stream.js +125 -0
  456. package/node_modules/jws/opslevel.yml +6 -0
  457. package/node_modules/jws/package.json +34 -0
  458. package/node_modules/jws/readme.md +255 -0
  459. package/node_modules/lru-cache/LICENSE.md +55 -0
  460. package/node_modules/lru-cache/README.md +469 -0
  461. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
  462. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
  463. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
  464. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  465. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
  466. package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
  467. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
  468. package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
  469. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  470. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
  471. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
  472. package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
  473. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  474. package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
  475. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
  476. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
  477. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
  478. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  479. package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
  480. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
  481. package/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
  482. package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
  483. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  484. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
  485. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
  486. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
  487. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
  488. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  489. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
  490. package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
  491. package/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
  492. package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
  493. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  494. package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
  495. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
  496. package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
  497. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  498. package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
  499. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  500. package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
  501. package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
  502. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  503. package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
  504. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  505. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
  506. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
  507. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  508. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
  509. package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
  510. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  511. package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
  512. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
  513. package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
  514. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  515. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
  516. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
  517. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
  518. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
  519. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  520. package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
  521. package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
  522. package/node_modules/lru-cache/dist/esm/browser/index.js +1729 -0
  523. package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
  524. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  525. package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
  526. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
  527. package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
  528. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  529. package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
  530. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  531. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
  532. package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
  533. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  534. package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
  535. package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
  536. package/node_modules/lru-cache/dist/esm/index.js +1729 -0
  537. package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
  538. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  539. package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
  540. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
  541. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
  542. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
  543. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  544. package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
  545. package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
  546. package/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
  547. package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
  548. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  549. package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
  550. package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
  551. package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
  552. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  553. package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
  554. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  555. package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
  556. package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
  557. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  558. package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
  559. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
  560. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
  561. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
  562. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  563. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
  564. package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
  565. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  566. package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
  567. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
  568. package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
  569. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  570. package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
  571. package/node_modules/lru-cache/package.json +180 -0
  572. package/node_modules/minimatch/LICENSE.md +55 -0
  573. package/node_modules/minimatch/README.md +546 -0
  574. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  575. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  576. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  577. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  578. package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  579. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  580. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  581. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  582. package/node_modules/minimatch/dist/commonjs/index.d.ts +185 -0
  583. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  584. package/node_modules/minimatch/dist/commonjs/index.js +1550 -0
  585. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  586. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  587. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  588. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  589. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  590. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  591. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  592. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  593. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  594. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  595. package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  596. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  597. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  598. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  599. package/node_modules/minimatch/dist/esm/index.d.ts +185 -0
  600. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  601. package/node_modules/minimatch/dist/esm/index.js +1539 -0
  602. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  603. package/node_modules/minimatch/dist/esm/package.json +3 -0
  604. package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  605. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  606. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  607. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  608. package/node_modules/minimatch/package.json +74 -0
  609. package/node_modules/minipass/LICENSE.md +55 -0
  610. package/node_modules/minipass/README.md +825 -0
  611. package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
  612. package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
  613. package/node_modules/minipass/dist/commonjs/index.js +1038 -0
  614. package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
  615. package/node_modules/minipass/dist/commonjs/package.json +3 -0
  616. package/node_modules/minipass/dist/esm/index.d.ts +545 -0
  617. package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
  618. package/node_modules/minipass/dist/esm/index.js +1020 -0
  619. package/node_modules/minipass/dist/esm/index.js.map +1 -0
  620. package/node_modules/minipass/dist/esm/package.json +3 -0
  621. package/node_modules/minipass/package.json +77 -0
  622. package/node_modules/ms/index.js +162 -0
  623. package/node_modules/ms/license.md +21 -0
  624. package/node_modules/ms/package.json +38 -0
  625. package/node_modules/ms/readme.md +59 -0
  626. package/node_modules/node-fetch/LICENSE.md +22 -0
  627. package/node_modules/node-fetch/README.md +634 -0
  628. package/node_modules/node-fetch/browser.js +25 -0
  629. package/node_modules/node-fetch/lib/index.es.js +1777 -0
  630. package/node_modules/node-fetch/lib/index.js +1787 -0
  631. package/node_modules/node-fetch/lib/index.mjs +1775 -0
  632. package/node_modules/node-fetch/package.json +89 -0
  633. package/node_modules/path-scurry/LICENSE.md +55 -0
  634. package/node_modules/path-scurry/README.md +635 -0
  635. package/node_modules/path-scurry/dist/commonjs/index.d.ts +1122 -0
  636. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
  637. package/node_modules/path-scurry/dist/commonjs/index.js +2056 -0
  638. package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
  639. package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
  640. package/node_modules/path-scurry/dist/esm/index.d.ts +1122 -0
  641. package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
  642. package/node_modules/path-scurry/dist/esm/index.js +2011 -0
  643. package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
  644. package/node_modules/path-scurry/dist/esm/package.json +3 -0
  645. package/node_modules/path-scurry/package.json +72 -0
  646. package/node_modules/picocolors/LICENSE +15 -0
  647. package/node_modules/picocolors/README.md +21 -0
  648. package/node_modules/picocolors/package.json +25 -0
  649. package/node_modules/picocolors/picocolors.browser.js +4 -0
  650. package/node_modules/picocolors/picocolors.d.ts +5 -0
  651. package/node_modules/picocolors/picocolors.js +75 -0
  652. package/node_modules/picocolors/types.d.ts +51 -0
  653. package/node_modules/safe-buffer/LICENSE +21 -0
  654. package/node_modules/safe-buffer/README.md +584 -0
  655. package/node_modules/safe-buffer/index.d.ts +187 -0
  656. package/node_modules/safe-buffer/index.js +65 -0
  657. package/node_modules/safe-buffer/package.json +51 -0
  658. package/node_modules/string-width/index.d.ts +29 -0
  659. package/node_modules/string-width/index.js +47 -0
  660. package/node_modules/string-width/license +9 -0
  661. package/node_modules/string-width/package.json +56 -0
  662. package/node_modules/string-width/readme.md +50 -0
  663. package/node_modules/strip-ansi/index.d.ts +17 -0
  664. package/node_modules/strip-ansi/index.js +4 -0
  665. package/node_modules/strip-ansi/license +9 -0
  666. package/node_modules/strip-ansi/package.json +54 -0
  667. package/node_modules/strip-ansi/readme.md +46 -0
  668. package/node_modules/tr46/.npmignore +4 -0
  669. package/node_modules/tr46/index.js +193 -0
  670. package/node_modules/tr46/lib/.gitkeep +0 -0
  671. package/node_modules/tr46/lib/mappingTable.json +1 -0
  672. package/node_modules/tr46/package.json +31 -0
  673. package/node_modules/webidl-conversions/LICENSE.md +12 -0
  674. package/node_modules/webidl-conversions/README.md +53 -0
  675. package/node_modules/webidl-conversions/lib/index.js +189 -0
  676. package/node_modules/webidl-conversions/package.json +23 -0
  677. package/node_modules/whatwg-url/LICENSE.txt +21 -0
  678. package/node_modules/whatwg-url/README.md +67 -0
  679. package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
  680. package/node_modules/whatwg-url/lib/URL.js +196 -0
  681. package/node_modules/whatwg-url/lib/public-api.js +11 -0
  682. package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
  683. package/node_modules/whatwg-url/lib/utils.js +20 -0
  684. package/node_modules/whatwg-url/package.json +32 -0
  685. package/node_modules/ws/LICENSE +20 -0
  686. package/node_modules/ws/README.md +540 -0
  687. package/node_modules/ws/browser.js +8 -0
  688. package/node_modules/ws/index.js +22 -0
  689. package/node_modules/ws/lib/buffer-util.js +142 -0
  690. package/node_modules/ws/lib/constants.js +19 -0
  691. package/node_modules/ws/lib/event-target.js +292 -0
  692. package/node_modules/ws/lib/extension.js +203 -0
  693. package/node_modules/ws/lib/limiter.js +55 -0
  694. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  695. package/node_modules/ws/lib/receiver.js +743 -0
  696. package/node_modules/ws/lib/sender.js +610 -0
  697. package/node_modules/ws/lib/stream.js +161 -0
  698. package/node_modules/ws/lib/subprotocol.js +62 -0
  699. package/node_modules/ws/lib/validation.js +152 -0
  700. package/node_modules/ws/lib/websocket-server.js +562 -0
  701. package/node_modules/ws/lib/websocket.js +1426 -0
  702. package/node_modules/ws/package.json +74 -0
  703. package/node_modules/ws/wrapper.mjs +21 -0
  704. package/node_modules/zod/LICENSE +21 -0
  705. package/node_modules/zod/README.md +218 -0
  706. package/node_modules/zod/compile.cjs +96 -0
  707. package/node_modules/zod/compile.d.cts +1 -0
  708. package/node_modules/zod/compile.d.ts +1 -0
  709. package/node_modules/zod/compile.js +52 -0
  710. package/node_modules/zod/index.cjs +52 -0
  711. package/node_modules/zod/index.d.cts +3 -0
  712. package/node_modules/zod/index.d.ts +3 -0
  713. package/node_modules/zod/index.js +7 -0
  714. package/node_modules/zod/locales/index.cjs +36 -0
  715. package/node_modules/zod/locales/index.d.cts +1 -0
  716. package/node_modules/zod/locales/index.d.ts +1 -0
  717. package/node_modules/zod/locales/index.js +1 -0
  718. package/node_modules/zod/locales/package.json +7 -0
  719. package/node_modules/zod/mini/index.cjs +51 -0
  720. package/node_modules/zod/mini/index.d.cts +3 -0
  721. package/node_modules/zod/mini/index.d.ts +3 -0
  722. package/node_modules/zod/mini/index.js +3 -0
  723. package/node_modules/zod/mini/package.json +7 -0
  724. package/node_modules/zod/package.json +147 -0
  725. package/node_modules/zod/src/compile.ts +56 -0
  726. package/node_modules/zod/src/index.ts +7 -0
  727. package/node_modules/zod/src/locales/index.ts +1 -0
  728. package/node_modules/zod/src/mini/index.ts +3 -0
  729. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  730. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  731. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  732. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  733. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  734. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  735. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  736. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  737. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  738. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  739. package/node_modules/zod/src/v3/errors.ts +13 -0
  740. package/node_modules/zod/src/v3/external.ts +6 -0
  741. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  742. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  743. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  744. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  745. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  746. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  747. package/node_modules/zod/src/v3/index.ts +4 -0
  748. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  749. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  750. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  751. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  752. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  753. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  754. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  755. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  756. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  757. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  758. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  759. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  760. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  761. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  762. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  763. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  764. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  765. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  766. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  767. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  768. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  769. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  770. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  771. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  772. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  773. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  774. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  775. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  776. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  777. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  778. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  779. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  780. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  781. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  782. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  783. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  784. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  785. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  786. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  787. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  788. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  789. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  790. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  791. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  792. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  793. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  794. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  795. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  796. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  797. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  798. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  799. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  800. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  801. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  802. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  803. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  804. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  805. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  806. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  807. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  808. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  809. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  810. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  811. package/node_modules/zod/src/v3/types.ts +5138 -0
  812. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  813. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  814. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  815. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  816. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  817. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  818. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  819. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  820. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  821. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  822. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  823. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  824. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  825. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  826. package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
  827. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  828. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  829. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  830. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  831. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  832. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  833. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  834. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  835. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  836. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  837. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  838. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  839. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  840. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  841. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  842. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  843. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  844. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  845. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  846. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  847. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  848. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  849. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  850. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  851. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  852. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  853. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  854. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  855. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  856. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  857. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  858. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  859. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  860. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  861. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  862. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  863. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  864. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  865. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  866. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  867. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  868. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  869. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  870. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  871. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  872. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  873. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  874. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  875. package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
  876. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  877. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  878. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  879. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  880. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  881. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  882. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  883. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  884. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  885. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  886. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  887. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  888. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  889. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  890. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  891. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  892. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  893. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  894. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  895. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  896. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  897. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  898. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  899. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  900. package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
  901. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  902. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  903. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  904. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  905. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  906. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  907. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  908. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  909. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  910. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  911. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  912. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  913. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  914. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  915. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  916. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  917. package/node_modules/zod/src/v4/core/compile.ts +2322 -0
  918. package/node_modules/zod/src/v4/core/core.ts +230 -0
  919. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  920. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  921. package/node_modules/zod/src/v4/core/index.ts +19 -0
  922. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  923. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  924. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  925. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  926. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  927. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  928. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  929. package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
  930. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  931. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  932. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  933. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  934. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  935. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  936. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  937. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  938. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  939. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  940. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  941. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  942. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  943. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  944. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  945. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  946. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  947. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  948. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  949. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  950. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  951. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  952. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  953. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  954. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  955. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  956. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  957. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  958. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  959. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  960. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  961. package/node_modules/zod/src/v4/core/util.ts +1293 -0
  962. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  963. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  964. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  965. package/node_modules/zod/src/v4/index.ts +4 -0
  966. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  967. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  968. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  969. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  970. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  971. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  972. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  973. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  974. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  975. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  976. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  977. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  978. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  979. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  980. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  981. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  982. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  983. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  984. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  985. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  986. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  987. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  988. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  989. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  990. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  991. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  992. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  993. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  994. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  995. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  996. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  997. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  998. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  999. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  1000. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  1001. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  1002. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  1003. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  1004. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  1005. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  1006. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  1007. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  1008. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  1009. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  1010. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  1011. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  1012. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  1013. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  1014. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  1015. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  1016. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  1017. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  1018. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  1019. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  1020. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  1021. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  1022. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  1023. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  1024. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  1025. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  1026. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  1027. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  1028. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  1029. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  1030. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  1031. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  1032. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  1033. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  1034. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  1035. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  1036. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  1037. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  1038. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  1039. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  1040. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  1041. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  1042. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  1043. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  1044. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  1045. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  1046. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  1047. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  1048. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  1049. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  1050. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  1051. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  1052. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  1053. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  1054. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  1055. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  1056. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  1057. package/node_modules/zod/v3/ZodError.cjs +167 -0
  1058. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  1059. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  1060. package/node_modules/zod/v3/ZodError.js +143 -0
  1061. package/node_modules/zod/v3/errors.cjs +36 -0
  1062. package/node_modules/zod/v3/errors.d.cts +5 -0
  1063. package/node_modules/zod/v3/errors.d.ts +5 -0
  1064. package/node_modules/zod/v3/errors.js +9 -0
  1065. package/node_modules/zod/v3/external.cjs +41 -0
  1066. package/node_modules/zod/v3/external.d.cts +6 -0
  1067. package/node_modules/zod/v3/external.d.ts +6 -0
  1068. package/node_modules/zod/v3/external.js +6 -0
  1069. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  1070. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  1071. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  1072. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  1073. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  1074. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  1075. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  1076. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  1077. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  1078. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  1079. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  1080. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  1081. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  1082. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  1083. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  1084. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  1085. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  1086. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  1087. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  1088. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  1089. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  1090. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  1091. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  1092. package/node_modules/zod/v3/helpers/util.js +133 -0
  1093. package/node_modules/zod/v3/index.cjs +52 -0
  1094. package/node_modules/zod/v3/index.d.cts +4 -0
  1095. package/node_modules/zod/v3/index.d.ts +4 -0
  1096. package/node_modules/zod/v3/index.js +4 -0
  1097. package/node_modules/zod/v3/locales/en.cjs +112 -0
  1098. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  1099. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  1100. package/node_modules/zod/v3/locales/en.js +109 -0
  1101. package/node_modules/zod/v3/package.json +7 -0
  1102. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  1103. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  1104. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  1105. package/node_modules/zod/v3/standard-schema.js +1 -0
  1106. package/node_modules/zod/v3/types.cjs +3798 -0
  1107. package/node_modules/zod/v3/types.d.cts +1034 -0
  1108. package/node_modules/zod/v3/types.d.ts +1034 -0
  1109. package/node_modules/zod/v3/types.js +3697 -0
  1110. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  1111. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  1112. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  1113. package/node_modules/zod/v4/classic/checks.js +1 -0
  1114. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  1115. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  1116. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  1117. package/node_modules/zod/v4/classic/coerce.js +17 -0
  1118. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  1119. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  1120. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  1121. package/node_modules/zod/v4/classic/compat.js +31 -0
  1122. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  1123. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  1124. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  1125. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  1126. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  1127. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  1128. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  1129. package/node_modules/zod/v4/classic/errors.js +57 -0
  1130. package/node_modules/zod/v4/classic/external.cjs +97 -0
  1131. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  1132. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  1133. package/node_modules/zod/v4/classic/external.js +17 -0
  1134. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  1135. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  1136. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  1137. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  1138. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  1139. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  1140. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  1141. package/node_modules/zod/v4/classic/in-out.js +36 -0
  1142. package/node_modules/zod/v4/classic/index.cjs +52 -0
  1143. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  1144. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  1145. package/node_modules/zod/v4/classic/index.js +4 -0
  1146. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  1147. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  1148. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  1149. package/node_modules/zod/v4/classic/iso.js +15 -0
  1150. package/node_modules/zod/v4/classic/package.json +7 -0
  1151. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  1152. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  1153. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  1154. package/node_modules/zod/v4/classic/parse.js +16 -0
  1155. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  1156. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  1157. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  1158. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  1159. package/node_modules/zod/v4/core/api.cjs +1269 -0
  1160. package/node_modules/zod/v4/core/api.d.cts +335 -0
  1161. package/node_modules/zod/v4/core/api.d.ts +335 -0
  1162. package/node_modules/zod/v4/core/api.js +1107 -0
  1163. package/node_modules/zod/v4/core/checks.cjs +561 -0
  1164. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  1165. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  1166. package/node_modules/zod/v4/core/checks.js +516 -0
  1167. package/node_modules/zod/v4/core/compile.cjs +1916 -0
  1168. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  1169. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  1170. package/node_modules/zod/v4/core/compile.js +1866 -0
  1171. package/node_modules/zod/v4/core/core.cjs +167 -0
  1172. package/node_modules/zod/v4/core/core.d.cts +82 -0
  1173. package/node_modules/zod/v4/core/core.d.ts +82 -0
  1174. package/node_modules/zod/v4/core/core.js +141 -0
  1175. package/node_modules/zod/v4/core/doc.cjs +61 -0
  1176. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  1177. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  1178. package/node_modules/zod/v4/core/doc.js +38 -0
  1179. package/node_modules/zod/v4/core/errors.cjs +317 -0
  1180. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  1181. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  1182. package/node_modules/zod/v4/core/errors.js +267 -0
  1183. package/node_modules/zod/v4/core/index.cjs +70 -0
  1184. package/node_modules/zod/v4/core/index.d.cts +19 -0
  1185. package/node_modules/zod/v4/core/index.d.ts +19 -0
  1186. package/node_modules/zod/v4/core/index.js +19 -0
  1187. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  1188. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  1189. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  1190. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  1191. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  1192. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  1193. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  1194. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  1195. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  1196. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  1197. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  1198. package/node_modules/zod/v4/core/json-schema.js +1 -0
  1199. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  1200. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  1201. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  1202. package/node_modules/zod/v4/core/memoizer.js +311 -0
  1203. package/node_modules/zod/v4/core/package.json +7 -0
  1204. package/node_modules/zod/v4/core/parse.cjs +233 -0
  1205. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  1206. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  1207. package/node_modules/zod/v4/core/parse.js +175 -0
  1208. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  1209. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  1210. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  1211. package/node_modules/zod/v4/core/regexes.js +156 -0
  1212. package/node_modules/zod/v4/core/registries.cjs +75 -0
  1213. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  1214. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  1215. package/node_modules/zod/v4/core/registries.js +51 -0
  1216. package/node_modules/zod/v4/core/schemas.cjs +2699 -0
  1217. package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
  1218. package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
  1219. package/node_modules/zod/v4/core/schemas.js +2636 -0
  1220. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  1221. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  1222. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  1223. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  1224. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  1225. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  1226. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  1227. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  1228. package/node_modules/zod/v4/core/util.cjs +964 -0
  1229. package/node_modules/zod/v4/core/util.d.cts +280 -0
  1230. package/node_modules/zod/v4/core/util.d.ts +280 -0
  1231. package/node_modules/zod/v4/core/util.js +873 -0
  1232. package/node_modules/zod/v4/core/versions.cjs +27 -0
  1233. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  1234. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  1235. package/node_modules/zod/v4/core/versions.js +5 -0
  1236. package/node_modules/zod/v4/core/visit.cjs +214 -0
  1237. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  1238. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  1239. package/node_modules/zod/v4/core/visit.js +169 -0
  1240. package/node_modules/zod/v4/index.cjs +51 -0
  1241. package/node_modules/zod/v4/index.d.cts +3 -0
  1242. package/node_modules/zod/v4/index.d.ts +3 -0
  1243. package/node_modules/zod/v4/index.js +4 -0
  1244. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  1245. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  1246. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  1247. package/node_modules/zod/v4/locales/ar.js +111 -0
  1248. package/node_modules/zod/v4/locales/az.cjs +137 -0
  1249. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  1250. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  1251. package/node_modules/zod/v4/locales/az.js +110 -0
  1252. package/node_modules/zod/v4/locales/be.cjs +195 -0
  1253. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  1254. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  1255. package/node_modules/zod/v4/locales/be.js +168 -0
  1256. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  1257. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  1258. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  1259. package/node_modules/zod/v4/locales/bg.js +125 -0
  1260. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  1261. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  1262. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  1263. package/node_modules/zod/v4/locales/bn.js +113 -0
  1264. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  1265. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  1266. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  1267. package/node_modules/zod/v4/locales/ca.js +112 -0
  1268. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  1269. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  1270. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  1271. package/node_modules/zod/v4/locales/ckb.js +133 -0
  1272. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  1273. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  1274. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  1275. package/node_modules/zod/v4/locales/cs.js +116 -0
  1276. package/node_modules/zod/v4/locales/da.cjs +147 -0
  1277. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  1278. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  1279. package/node_modules/zod/v4/locales/da.js +120 -0
  1280. package/node_modules/zod/v4/locales/de.cjs +140 -0
  1281. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  1282. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  1283. package/node_modules/zod/v4/locales/de.js +113 -0
  1284. package/node_modules/zod/v4/locales/el.cjs +139 -0
  1285. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  1286. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  1287. package/node_modules/zod/v4/locales/el.js +112 -0
  1288. package/node_modules/zod/v4/locales/en.cjs +152 -0
  1289. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  1290. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  1291. package/node_modules/zod/v4/locales/en.js +125 -0
  1292. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  1293. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  1294. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  1295. package/node_modules/zod/v4/locales/eo.js +114 -0
  1296. package/node_modules/zod/v4/locales/es.cjs +163 -0
  1297. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  1298. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  1299. package/node_modules/zod/v4/locales/es.js +136 -0
  1300. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  1301. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  1302. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  1303. package/node_modules/zod/v4/locales/fa.js +119 -0
  1304. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  1305. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  1306. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  1307. package/node_modules/zod/v4/locales/fi.js +117 -0
  1308. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  1309. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  1310. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  1311. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  1312. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  1313. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  1314. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  1315. package/node_modules/zod/v4/locales/fr.js +129 -0
  1316. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  1317. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  1318. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  1319. package/node_modules/zod/v4/locales/gu.js +113 -0
  1320. package/node_modules/zod/v4/locales/he.cjs +248 -0
  1321. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  1322. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  1323. package/node_modules/zod/v4/locales/he.js +221 -0
  1324. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  1325. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  1326. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  1327. package/node_modules/zod/v4/locales/hi.js +111 -0
  1328. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  1329. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  1330. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  1331. package/node_modules/zod/v4/locales/hr.js +126 -0
  1332. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  1333. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  1334. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  1335. package/node_modules/zod/v4/locales/hu.js +113 -0
  1336. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  1337. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  1338. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  1339. package/node_modules/zod/v4/locales/hy.js +158 -0
  1340. package/node_modules/zod/v4/locales/id.cjs +138 -0
  1341. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  1342. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  1343. package/node_modules/zod/v4/locales/id.js +111 -0
  1344. package/node_modules/zod/v4/locales/index.cjs +152 -0
  1345. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  1346. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  1347. package/node_modules/zod/v4/locales/index.js +63 -0
  1348. package/node_modules/zod/v4/locales/is.cjs +141 -0
  1349. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  1350. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  1351. package/node_modules/zod/v4/locales/is.js +114 -0
  1352. package/node_modules/zod/v4/locales/it.cjs +140 -0
  1353. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  1354. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  1355. package/node_modules/zod/v4/locales/it.js +113 -0
  1356. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  1357. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  1358. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  1359. package/node_modules/zod/v4/locales/ja.js +112 -0
  1360. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  1361. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  1362. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  1363. package/node_modules/zod/v4/locales/ka.js +117 -0
  1364. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  1365. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  1366. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  1367. package/node_modules/zod/v4/locales/kh.js +5 -0
  1368. package/node_modules/zod/v4/locales/km.cjs +142 -0
  1369. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  1370. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  1371. package/node_modules/zod/v4/locales/km.js +115 -0
  1372. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  1373. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  1374. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  1375. package/node_modules/zod/v4/locales/kn.js +116 -0
  1376. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  1377. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  1378. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  1379. package/node_modules/zod/v4/locales/ko.js +116 -0
  1380. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  1381. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  1382. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  1383. package/node_modules/zod/v4/locales/lt.js +207 -0
  1384. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  1385. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  1386. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  1387. package/node_modules/zod/v4/locales/mk.js +114 -0
  1388. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  1389. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  1390. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  1391. package/node_modules/zod/v4/locales/ms.js +112 -0
  1392. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  1393. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  1394. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  1395. package/node_modules/zod/v4/locales/ne.js +111 -0
  1396. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  1397. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  1398. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  1399. package/node_modules/zod/v4/locales/nl.js +115 -0
  1400. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  1401. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  1402. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  1403. package/node_modules/zod/v4/locales/nn.js +113 -0
  1404. package/node_modules/zod/v4/locales/no.cjs +140 -0
  1405. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  1406. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  1407. package/node_modules/zod/v4/locales/no.js +113 -0
  1408. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  1409. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  1410. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  1411. package/node_modules/zod/v4/locales/ota.js +114 -0
  1412. package/node_modules/zod/v4/locales/package.json +7 -0
  1413. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  1414. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  1415. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  1416. package/node_modules/zod/v4/locales/pl.js +114 -0
  1417. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  1418. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  1419. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  1420. package/node_modules/zod/v4/locales/ps.js +119 -0
  1421. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  1422. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  1423. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  1424. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  1425. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  1426. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  1427. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  1428. package/node_modules/zod/v4/locales/pt.js +142 -0
  1429. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  1430. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  1431. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  1432. package/node_modules/zod/v4/locales/ro.js +122 -0
  1433. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  1434. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  1435. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  1436. package/node_modules/zod/v4/locales/ru.js +168 -0
  1437. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  1438. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  1439. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  1440. package/node_modules/zod/v4/locales/sk.js +116 -0
  1441. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  1442. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  1443. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  1444. package/node_modules/zod/v4/locales/sl.js +114 -0
  1445. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  1446. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  1447. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  1448. package/node_modules/zod/v4/locales/sv.js +115 -0
  1449. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  1450. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  1451. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  1452. package/node_modules/zod/v4/locales/ta.js +115 -0
  1453. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  1454. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  1455. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  1456. package/node_modules/zod/v4/locales/tg.js +117 -0
  1457. package/node_modules/zod/v4/locales/th.cjs +142 -0
  1458. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  1459. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  1460. package/node_modules/zod/v4/locales/th.js +115 -0
  1461. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  1462. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  1463. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  1464. package/node_modules/zod/v4/locales/tk.js +107 -0
  1465. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  1466. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  1467. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  1468. package/node_modules/zod/v4/locales/tr.js +110 -0
  1469. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  1470. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  1471. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  1472. package/node_modules/zod/v4/locales/ua.js +5 -0
  1473. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  1474. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  1475. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  1476. package/node_modules/zod/v4/locales/uk.js +113 -0
  1477. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  1478. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  1479. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  1480. package/node_modules/zod/v4/locales/ur.js +115 -0
  1481. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  1482. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  1483. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  1484. package/node_modules/zod/v4/locales/uz.js +113 -0
  1485. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  1486. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  1487. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  1488. package/node_modules/zod/v4/locales/vi.js +113 -0
  1489. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  1490. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  1491. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  1492. package/node_modules/zod/v4/locales/yo.js +112 -0
  1493. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  1494. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  1495. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  1496. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  1497. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  1498. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  1499. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  1500. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  1501. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  1502. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  1503. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  1504. package/node_modules/zod/v4/mini/checks.js +1 -0
  1505. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  1506. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  1507. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  1508. package/node_modules/zod/v4/mini/coerce.js +22 -0
  1509. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  1510. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  1511. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  1512. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  1513. package/node_modules/zod/v4/mini/external.cjs +95 -0
  1514. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  1515. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  1516. package/node_modules/zod/v4/mini/external.js +16 -0
  1517. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  1518. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  1519. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  1520. package/node_modules/zod/v4/mini/in-out.js +36 -0
  1521. package/node_modules/zod/v4/mini/index.cjs +51 -0
  1522. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  1523. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  1524. package/node_modules/zod/v4/mini/index.js +3 -0
  1525. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  1526. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  1527. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  1528. package/node_modules/zod/v4/mini/iso.js +34 -0
  1529. package/node_modules/zod/v4/mini/package.json +7 -0
  1530. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  1531. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  1532. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  1533. package/node_modules/zod/v4/mini/parse.js +1 -0
  1534. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  1535. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  1536. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  1537. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  1538. package/node_modules/zod/v4/package.json +7 -0
  1539. package/node_modules/zod/v4-mini/index.cjs +51 -0
  1540. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  1541. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  1542. package/node_modules/zod/v4-mini/index.js +3 -0
  1543. package/node_modules/zod/v4-mini/package.json +7 -0
  1544. package/package.json +66 -4
@@ -0,0 +1,1550 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unescape = exports.escape = exports.Minimatch = exports.match = exports.braceExpand = exports.defaults = exports.filter = exports.GLOBSTAR = exports.sep = exports.minimatch = void 0;
4
+ const brace_expansion_1 = require("brace-expansion");
5
+ const nonrecursive_glob_match_1 = require("@isaacs/nonrecursive-glob-match");
6
+ const assert_valid_pattern_js_1 = require("./assert-valid-pattern.js");
7
+ const escape_js_1 = require("./escape.js");
8
+ const unescape_js_1 = require("./unescape.js");
9
+ const minimatch = (p, pattern, options = {}) => {
10
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
11
+ // shortcut: comments match nothing.
12
+ if (!options.nocomment && pattern.charAt(0) === '#') {
13
+ return false;
14
+ }
15
+ return cachedMinimatch(pattern, options).match(p);
16
+ };
17
+ exports.minimatch = minimatch;
18
+ // The Minimatch objects that minimatch() used most recently. A Map
19
+ // keeps its keys in the order they were set, so the first key is the
20
+ // one used least recently.
21
+ const cache = new Map();
22
+ const cacheMax = 256;
23
+ const cachedMinimatch = (pattern, options) => {
24
+ const key = pattern + '\0' + JSON.stringify(options);
25
+ let mm = cache.get(key);
26
+ if (mm) {
27
+ cache.delete(key);
28
+ }
29
+ else {
30
+ // a copy, so a later change to the options can not change it
31
+ mm = new Minimatch(pattern, { ...options });
32
+ if (cache.size >= cacheMax) {
33
+ cache.delete(cache.keys().next().value);
34
+ }
35
+ }
36
+ cache.set(key, mm);
37
+ return mm;
38
+ };
39
+ /* c8 ignore start */
40
+ const defaultPlatform = (typeof process === 'object' && process ?
41
+ process.env?.__MINIMATCH_TESTING_PLATFORM__ || process.platform
42
+ : 'posix');
43
+ const path = {
44
+ win32: { sep: '\\' },
45
+ posix: { sep: '/' },
46
+ };
47
+ /* c8 ignore stop */
48
+ exports.sep = defaultPlatform === 'win32' ? path.win32.sep : path.posix.sep;
49
+ exports.minimatch.sep = exports.sep;
50
+ exports.GLOBSTAR = Symbol('globstar **');
51
+ exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
52
+ const filter = (pattern, options = {}) => (p) => (0, exports.minimatch)(p, pattern, options);
53
+ exports.filter = filter;
54
+ exports.minimatch.filter = exports.filter;
55
+ const ext = (a, b = {}) => Object.assign({}, a, b);
56
+ const defaults = (def) => {
57
+ if (!def || typeof def !== 'object' || !Object.keys(def).length) {
58
+ return exports.minimatch;
59
+ }
60
+ const orig = exports.minimatch;
61
+ const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
62
+ return Object.assign(m, {
63
+ Minimatch: class Minimatch extends orig.Minimatch {
64
+ constructor(pattern, options = {}) {
65
+ super(pattern, ext(def, options));
66
+ }
67
+ static defaults(options) {
68
+ return orig.defaults(ext(def, options)).Minimatch;
69
+ }
70
+ },
71
+ unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
72
+ escape: (s, options = {}) => orig.escape(s, ext(def, options)),
73
+ filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
74
+ defaults: (options) => orig.defaults(ext(def, options)),
75
+ braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
76
+ match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
77
+ sep: orig.sep,
78
+ GLOBSTAR: exports.GLOBSTAR,
79
+ });
80
+ };
81
+ exports.defaults = defaults;
82
+ exports.minimatch.defaults = exports.defaults;
83
+ // Brace expansion:
84
+ // a{b,c}d -> abd acd
85
+ // a{b,}c -> abc ac
86
+ // a{0..3}d -> a0d a1d a2d a3d
87
+ // a{b,c{d,e}f}g -> abg acdfg acefg
88
+ // a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
89
+ //
90
+ // Invalid sets are not expanded.
91
+ // a{2..}b -> a{2..}b
92
+ // a{b}c -> a{b}c
93
+ const braceExpand = (pattern, options = {}) => {
94
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
95
+ // Thanks to Yeting Li <https://github.com/yetingli> for
96
+ // improving this regexp to avoid a ReDOS vulnerability.
97
+ if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
98
+ // shortcut. no need to expand.
99
+ return [pattern];
100
+ }
101
+ return (0, brace_expansion_1.expand)(pattern, { max: options.braceExpandMax });
102
+ };
103
+ exports.braceExpand = braceExpand;
104
+ exports.minimatch.braceExpand = exports.braceExpand;
105
+ const match = (list, pattern, options = {}) => {
106
+ const mm = new Minimatch(pattern, options);
107
+ list = list.filter(f => mm.match(f));
108
+ if (mm.options.nonull && !list.length) {
109
+ list.push(pattern);
110
+ }
111
+ return list;
112
+ };
113
+ exports.match = match;
114
+ exports.minimatch.match = exports.match;
115
+ const globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
116
+ // Index of the `]` that closes the class that starts at `start`,
117
+ // or -1 if it is not closed. Posix classes such as `[:alpha:]` are
118
+ // not skipped, so this can find a `]` before the real end. That
119
+ // only makes a class look less like a literal.
120
+ const classEnd = (pattern, start) => {
121
+ let i = start + 1;
122
+ if (pattern.charAt(i) === '!' || pattern.charAt(i) === '^')
123
+ i++;
124
+ let sawStart = false;
125
+ for (; i < pattern.length; i++) {
126
+ const c = pattern.charAt(i);
127
+ if (c === ']' && sawStart)
128
+ return i;
129
+ sawStart = true;
130
+ if (c === '\\')
131
+ i++;
132
+ }
133
+ return -1;
134
+ };
135
+ // If a path portion pattern has no magic, return the string it
136
+ // matches. Otherwise, return undefined. This can report magic for
137
+ // a pattern that is in fact literal (eg, `[]`), but never the
138
+ // reverse, so a string result is always safe to compare directly.
139
+ const literal = (pattern, noext) => {
140
+ if (!noext && (pattern === '+()' || pattern === '@()'))
141
+ return pattern;
142
+ let lit = '';
143
+ for (let i = 0; i < pattern.length; i++) {
144
+ const c = pattern.charAt(i);
145
+ if (c === '\\') {
146
+ // a trailing \ is a literal \
147
+ lit += pattern.charAt(++i) || c;
148
+ }
149
+ else if (c === '*' || c === '?') {
150
+ return undefined;
151
+ }
152
+ else if (c === '[') {
153
+ const close = classEnd(pattern, i);
154
+ if (close === -1) {
155
+ // not closed, so the [ is a literal
156
+ lit += c;
157
+ continue;
158
+ }
159
+ // a class of one char, such as `[*]` or `[\b]`, is a literal
160
+ let body = pattern.slice(i + 1, close);
161
+ if (body.startsWith('\\'))
162
+ body = body.slice(1);
163
+ if ([...body].length !== 1 || '!^'.includes(pattern.charAt(i + 1))) {
164
+ return undefined;
165
+ }
166
+ lit += body;
167
+ i = close;
168
+ }
169
+ else if (!noext &&
170
+ '+@!'.includes(c) &&
171
+ pattern.charAt(i + 1) === '(' &&
172
+ pattern.includes(')', i + 2)) {
173
+ return undefined;
174
+ }
175
+ else {
176
+ lit += c;
177
+ }
178
+ }
179
+ return lit;
180
+ };
181
+ // True if the portion pattern has the same meaning as an alternative
182
+ // inside `@(...)`. It must not have a `|` or `)` that is not in a
183
+ // closed extglob (those are literal at the top level), an extglob
184
+ // that is not closed (the `)` of the `@(...)` would close it), or a
185
+ // trailing `\` (it would escape the next `|`). A pattern that is
186
+ // only an empty extglob, such as `?()`, is literal on its own, but
187
+ // not in `@(...)`. Posix classes such as `[:alpha:]` can hide a `]`
188
+ // from classEnd, so patterns with them are not merged.
189
+ const extSafe = (pattern) => {
190
+ if (/^[?*+@]\(\)$/.test(pattern) || pattern.includes('[:'))
191
+ return false;
192
+ let depth = 0;
193
+ for (let i = 0; i < pattern.length; i++) {
194
+ const c = pattern.charAt(i);
195
+ if (c === '\\') {
196
+ if (++i === pattern.length)
197
+ return false;
198
+ }
199
+ else if (c === '[') {
200
+ const close = classEnd(pattern, i);
201
+ if (close !== -1)
202
+ i = close;
203
+ }
204
+ else if ('+@!?*'.includes(c) && pattern.charAt(i + 1) === '(') {
205
+ depth++;
206
+ i++;
207
+ }
208
+ else if (c === ')') {
209
+ if (!depth--)
210
+ return false;
211
+ }
212
+ else if (c === '|' && !depth) {
213
+ return false;
214
+ }
215
+ }
216
+ return !depth;
217
+ };
218
+ // The last path that Minimatch#match split, and its parts. A path is
219
+ // often tested against many patterns in a row (such as a list of
220
+ // ignore patterns), so this saves splitting it again. The parts are
221
+ // never changed, so they can be shared.
222
+ let lastSplit;
223
+ // The last path that Minimatch#match checked before splitting it. If
224
+ // the same path is checked again, it is being tested against many
225
+ // patterns, so it is split and the parts are kept for the others.
226
+ let lastChecked;
227
+ // true if a pattern portion that is not ** matches a path portion.
228
+ // An empty path portion only matches an empty pattern portion. A path
229
+ // portion never has a `/`, so the Matcher does not need to check it.
230
+ const portionMatch = (p, f) => typeof p === 'string' ? f === p : f !== '' && p.testUnchecked(f);
231
+ // Where the last portion of a row matches in a path: the start of the
232
+ // last portion of the path, or of the one before a trailing `/`. -1 if
233
+ // it matches neither.
234
+ const endIndex = (p, last, lastStart, prev, prevStart) => portionMatch(p, last) ? lastStart
235
+ : prev !== undefined && portionMatch(p, prev) ? prevStart
236
+ : -1;
237
+ const isDots = (p) => p === '.' || p === '..';
238
+ // a Windows drive letter portion, like `c:`
239
+ const isDrive = (p) => typeof p === 'string' && /^[a-z]:$/i.test(p);
240
+ // true for the `UNC` portion of a long UNC root, //?/UNC/host/share
241
+ const isLongUNC = (p) => typeof p === 'string' && /^unc$/i.test(p);
242
+ // The index of the host in a row or split path that starts with a
243
+ // Windows UNC root: 2 for `//host/share`, and 4 for
244
+ // `//?/UNC/host/share`. Otherwise -1. `//?/c:` is not one.
245
+ const uncHost = (p) => {
246
+ if (p[0] !== '' || p[1] !== '')
247
+ return -1;
248
+ const h = p[2] !== '?' ? 2
249
+ : isLongUNC(p[3]) ? 4
250
+ : -1;
251
+ const host = p[h];
252
+ const share = p[h + 1];
253
+ return (h !== -1 &&
254
+ host !== undefined &&
255
+ host !== '' &&
256
+ host !== exports.GLOBSTAR &&
257
+ share !== undefined &&
258
+ share !== '' &&
259
+ share !== exports.GLOBSTAR) ?
260
+ h
261
+ : -1;
262
+ };
263
+ // true if ** can walk the path portion: not `.` or `..`, and not a
264
+ // dotfile unless `dot` is set
265
+ const walkable = (p, dot) => !isDots(p) && (dot || !p.startsWith('.'));
266
+ // True if a portion of the path from `start` to `end` can not be
267
+ // walked by **: one that starts with `.`, or with `dot`, one that is
268
+ // `.` or `..`. `start` is the start of a portion, and `end` is the end
269
+ // of the path, or just after a separator.
270
+ const dotPortion = (f, start, end, dot, sep) => {
271
+ for (let k = start; k < end;) {
272
+ if (f.charCodeAt(k) === 46) {
273
+ if (!dot)
274
+ return true;
275
+ const n = f.charCodeAt(k + 1) === 46 ? k + 2 : k + 1;
276
+ if (n >= end || isSep(f.charCodeAt(n), sep))
277
+ return true;
278
+ }
279
+ // the start of the next portion, after any run of separators
280
+ const s = nextSep(f, k, sep);
281
+ if (s === -1)
282
+ return false;
283
+ k = s + 1;
284
+ while (k < end && isSep(f.charCodeAt(k), sep))
285
+ k++;
286
+ }
287
+ return false;
288
+ };
289
+ const isSep = (c, sep) => sep === '/' ? c === 47
290
+ : sep === '\\' ? c === 92
291
+ : c === 47 || c === 92;
292
+ // the index of the first separator at or after `from`, or -1
293
+ const nextSep = (f, from, sep) => {
294
+ if (sep !== 'both')
295
+ return f.indexOf(sep, from);
296
+ const s = f.indexOf('/', from);
297
+ const b = f.indexOf('\\', from);
298
+ return (s === -1 ? b
299
+ : b === -1 ? s
300
+ : Math.min(s, b));
301
+ };
302
+ // the index of the last separator at or before `from`, or -1
303
+ const lastSep = (f, from, sep) => sep !== 'both' ?
304
+ f.lastIndexOf(sep, from)
305
+ : Math.max(f.lastIndexOf('/', from), f.lastIndexOf('\\', from));
306
+ // What parse() returns in place of a Matcher while make() builds and
307
+ // merges the rows. Most of the Matchers in rows that are merged would
308
+ // never be used, so they are only made for the rows that are left.
309
+ const PENDING = {};
310
+ class Minimatch {
311
+ options;
312
+ set;
313
+ pattern;
314
+ windowsPathsNoEscape;
315
+ nonegate;
316
+ negate;
317
+ comment;
318
+ empty;
319
+ preserveMultipleSlashes;
320
+ partial;
321
+ globSet;
322
+ globParts;
323
+ nocase;
324
+ isWindows;
325
+ platform;
326
+ windowsNoMagicRoot;
327
+ maxGlobstarRecursion;
328
+ // the path can be checked against the last portion, and the string
329
+ // portions, of each row before it is split. See #canMatch.
330
+ #endCheck;
331
+ #literalCheck;
332
+ // level 2 resolves `.` and `..` portions in the path
333
+ #level2;
334
+ // the unicode normalization form, if any
335
+ #form;
336
+ // the string portions of each row in the set
337
+ #literals = [];
338
+ // the rows that #canMatch can match without splitting the path
339
+ #shapes = [];
340
+ // the rows whose last portion can be checked against the path's
341
+ #endRows = [];
342
+ // brace expansion can make the same portion in many rows, so they
343
+ // share one Matcher, and the states that it caches
344
+ #matchers = new Map();
345
+ // parse() returns PENDING in place of a Matcher
346
+ #pending = false;
347
+ // the GlobstarParts of each pattern row, by start index and partial
348
+ #globstarParts = new WeakMap();
349
+ constructor(pattern, options = {}) {
350
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
351
+ options = options || {};
352
+ this.options = options;
353
+ this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
354
+ this.pattern = pattern;
355
+ this.platform = options.platform || defaultPlatform;
356
+ this.isWindows = this.platform === 'win32';
357
+ // avoid the annoying deprecation flag lol
358
+ const awe = ('allowWindow' + 'sEscape');
359
+ this.windowsPathsNoEscape =
360
+ !!options.windowsPathsNoEscape || options[awe] === false;
361
+ if (this.windowsPathsNoEscape) {
362
+ this.pattern = this.pattern.replace(/\\/g, '/');
363
+ }
364
+ this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
365
+ this.negate = false;
366
+ this.nonegate = !!options.nonegate;
367
+ this.comment = false;
368
+ this.empty = false;
369
+ this.partial = !!options.partial;
370
+ this.nocase = !!this.options.nocase;
371
+ this.windowsNoMagicRoot =
372
+ options.windowsNoMagicRoot !== undefined ?
373
+ options.windowsNoMagicRoot
374
+ : !!(this.isWindows && this.nocase);
375
+ this.globSet = [];
376
+ this.globParts = [];
377
+ this.set = [];
378
+ this.#endCheck = !this.preserveMultipleSlashes;
379
+ this.#level2 = (options.optimizationLevel ?? 1) >= 2;
380
+ const n = options.normalize;
381
+ this.#form = n === true ? 'NFC' : n || undefined;
382
+ // make the set of Matchers etc.
383
+ this.make();
384
+ // On Windows, the portions of a row up to its drive letter or UNC
385
+ // share are skipped or compared without case, if the path has one
386
+ // too. So the checks only use the portions after it.
387
+ const drives = this.set.map(row => this.#rootIndex(row));
388
+ this.#endRows = this.set.map((row, r) => this.#endCheck && row.length - 1 > drives[r]);
389
+ // with the end check, the last portion is already checked
390
+ this.#literals = this.set.map((row, r) => {
391
+ const end = this.#endRows[r] ? row.length - 1 : row.length;
392
+ const lits = row
393
+ .slice(drives[r] + 1, end)
394
+ .filter((p) => typeof p === 'string' && !!p);
395
+ return [...new Set(lits)];
396
+ });
397
+ this.#literalCheck = this.#literals.some(l => l.length);
398
+ this.#shapes = this.set.map((row, r) => {
399
+ const [p0, p1, p2] = row;
400
+ if (this.#endRows[r] && row.length === 2) {
401
+ if (p0 === exports.GLOBSTAR && p1 !== exports.GLOBSTAR)
402
+ return 'tail';
403
+ }
404
+ // the basename of a path that is split on / is its last portion,
405
+ // or the one before a trailing /, the same as the end check
406
+ if (this.#endRows[r] &&
407
+ options.matchBase &&
408
+ row.length === 1 &&
409
+ p0 !== exports.GLOBSTAR &&
410
+ p0 !== '') {
411
+ return 'base';
412
+ }
413
+ // the portion must not be a root, or '', which can be a
414
+ // different portion on Windows (where //x paths get an extra '')
415
+ if (!this.#endCheck || drives[r] !== -1)
416
+ return undefined;
417
+ if (row.length === 3 &&
418
+ p0 === exports.GLOBSTAR &&
419
+ p2 === exports.GLOBSTAR &&
420
+ p1 !== exports.GLOBSTAR &&
421
+ p1 !== '' &&
422
+ // the portion between is only matched below this limit
423
+ this.maxGlobstarRecursion > 0) {
424
+ return 'mid';
425
+ }
426
+ if (row.length === 2 &&
427
+ p1 === exports.GLOBSTAR &&
428
+ p0 !== exports.GLOBSTAR &&
429
+ p0 !== '') {
430
+ return 'head';
431
+ }
432
+ return undefined;
433
+ });
434
+ }
435
+ // a string portion of a pattern, normalized if the option is set
436
+ #norm(p) {
437
+ return this.#form ? p.normalize(this.#form) : p;
438
+ }
439
+ // On Windows, the index of the last root portion of a row, as
440
+ // #matchRow finds it: 0 for `c:/...`, 3 for `//?/c:/...` and
441
+ // `//host/share/...`, and 5 for `//?/UNC/host/share/...`. Otherwise
442
+ // -1.
443
+ #rootIndex(row) {
444
+ if (!this.isWindows)
445
+ return -1;
446
+ if (isDrive(row[0]))
447
+ return 0;
448
+ const uncDrive = row[0] === '' && row[1] === '' && row[2] === '?' && isDrive(row[3]);
449
+ if (uncDrive)
450
+ return 3;
451
+ const h = uncHost(row);
452
+ return h === -1 ? -1 : h + 1;
453
+ }
454
+ hasMagic() {
455
+ if (this.options.magicalBraces && this.set.length > 1) {
456
+ return true;
457
+ }
458
+ for (const pattern of this.set) {
459
+ for (const part of pattern) {
460
+ if (typeof part !== 'string')
461
+ return true;
462
+ }
463
+ }
464
+ return false;
465
+ }
466
+ make() {
467
+ const pattern = this.pattern;
468
+ const options = this.options;
469
+ // empty patterns and comments match nothing.
470
+ if (!options.nocomment && pattern.charAt(0) === '#') {
471
+ this.comment = true;
472
+ return;
473
+ }
474
+ if (!pattern) {
475
+ this.empty = true;
476
+ return;
477
+ }
478
+ // step 1: figure out negation, etc.
479
+ this.parseNegate();
480
+ // step 2: expand braces
481
+ this.globSet = [...new Set(this.braceExpand())];
482
+ // step 3: now we have a set, so turn each one into a series of
483
+ // path-portion matching patterns.
484
+ // These will be Matchers, except in the case of "**", which is
485
+ // set to the GLOBSTAR object for globstar behavior,
486
+ // and will not contain any / characters
487
+ //
488
+ // First, we preprocess to make the glob pattern sets a bit simpler
489
+ // and deduped. There are some perf-killing patterns that can cause
490
+ // problems with a glob walk, but we can simplify them down a bit.
491
+ const rawGlobParts = this.globSet.map(s => this.#slashSplit(s));
492
+ this.globParts = this.preprocess(rawGlobParts);
493
+ // glob --> Matchers
494
+ this.#pending = true;
495
+ let set = this.globParts.map((s, _, __) => {
496
+ if (this.isWindows && this.windowsNoMagicRoot) {
497
+ // check if it's a drive or unc path. The root of a long UNC
498
+ // path, //?/UNC/host/share, is 6 portions.
499
+ const n = s[2] === '?' && isLongUNC(s[3]) ? 6 : 4;
500
+ const isUNC = s[0] === '' &&
501
+ s[1] === '' &&
502
+ (s[2] === '?' || !globMagic.test(s[2])) &&
503
+ s.slice(3, n).every(p => !globMagic.test(p));
504
+ const isDrive = /^[a-z]:/i.test(s[0]);
505
+ if (isUNC) {
506
+ return [
507
+ ...s.slice(0, n).map(p => this.#norm(p)),
508
+ ...s.slice(n).map(ss => this.parse(ss)),
509
+ ];
510
+ }
511
+ else if (isDrive) {
512
+ return [
513
+ this.#norm(s[0]),
514
+ ...s.slice(1).map(ss => this.parse(ss)),
515
+ ];
516
+ }
517
+ }
518
+ return s.map(ss => this.parse(ss));
519
+ });
520
+ // filter out everything that didn't compile properly.
521
+ this.set = set.filter(s => s.indexOf(false) === -1);
522
+ // do not treat the ? in UNC paths as magic
523
+ if (this.isWindows) {
524
+ for (let i = 0; i < this.set.length; i++) {
525
+ const p = this.set[i];
526
+ if (p[0] === '' &&
527
+ p[1] === '' &&
528
+ this.globParts[i][2] === '?' &&
529
+ (isDrive(p[3]) || isLongUNC(this.globParts[i][3]))) {
530
+ if (isLongUNC(this.globParts[i][3]))
531
+ p[3] = 'UNC';
532
+ p[2] = '?';
533
+ }
534
+ }
535
+ }
536
+ // with noext, `@(...)` would be literal
537
+ if (!options.noext)
538
+ this.mergeRows();
539
+ this.#pending = false;
540
+ this.set.forEach((row, i) => {
541
+ for (let k = 0; k < row.length; k++) {
542
+ if (row[k] === PENDING) {
543
+ row[k] = this.parse(this.globParts[i][k]);
544
+ }
545
+ }
546
+ });
547
+ }
548
+ // Merge rows that only differ in one portion, where each of them
549
+ // is a Matcher, into one row that matches any of them with
550
+ // `@(a|b|...)`. Then a path is only walked once for all of them,
551
+ // for example with `**/*.{js,ts}`.
552
+ mergeRows() {
553
+ let merged = true;
554
+ while (merged) {
555
+ merged = false;
556
+ const len = Math.max(0, ...this.set.map(r => r.length));
557
+ for (let k = 0; k < len; k++) {
558
+ // the rows that are the same other than at portion k
559
+ const groups = new Map();
560
+ this.set.forEach((row, i) => {
561
+ if (!(row[k] instanceof nonrecursive_glob_match_1.Matcher || row[k] === PENDING) ||
562
+ !extSafe(this.globParts[i][k])) {
563
+ return;
564
+ }
565
+ const parts = [...this.globParts[i]];
566
+ parts[k] = '';
567
+ const key = `${row.length}/${parts.join('/')}`;
568
+ const g = groups.get(key);
569
+ if (g)
570
+ g.push(i);
571
+ else
572
+ groups.set(key, [i]);
573
+ });
574
+ const drop = new Set();
575
+ for (const g of groups.values()) {
576
+ if (g.length < 2)
577
+ continue;
578
+ const [first, ...rest] = g;
579
+ const alts = g.map(i => this.globParts[i][k]);
580
+ const glob = `@(${alts.join('|')})`;
581
+ this.globParts[first][k] = glob;
582
+ this.set[first][k] = this.parse(glob);
583
+ for (const i of rest)
584
+ drop.add(i);
585
+ }
586
+ if (drop.size) {
587
+ merged = true;
588
+ this.set = this.set.filter((_, i) => !drop.has(i));
589
+ this.globParts = this.globParts.filter((_, i) => !drop.has(i));
590
+ }
591
+ }
592
+ }
593
+ }
594
+ // various transforms to equivalent pattern sets that are
595
+ // faster to process in a filesystem walk. The goal is to
596
+ // eliminate what we can, and push all ** patterns as far
597
+ // to the right as possible, even if it increases the number
598
+ // of patterns that we have to process.
599
+ preprocess(globParts) {
600
+ // if we're not in globstar mode, then turn ** into *
601
+ if (this.options.noglobstar) {
602
+ for (const partset of globParts) {
603
+ for (let j = 0; j < partset.length; j++) {
604
+ if (partset[j] === '**') {
605
+ partset[j] = '*';
606
+ }
607
+ }
608
+ }
609
+ }
610
+ const { optimizationLevel = 1 } = this.options;
611
+ if (optimizationLevel >= 2) {
612
+ // aggressive optimization for the purpose of fs walking
613
+ globParts = this.firstPhasePreProcess(globParts);
614
+ globParts = this.secondPhasePreProcess(globParts);
615
+ }
616
+ else if (optimizationLevel >= 1) {
617
+ // just basic optimizations to remove some .. parts
618
+ globParts = this.levelOneOptimize(globParts);
619
+ }
620
+ else {
621
+ // just collapse multiple ** portions into one
622
+ globParts = this.adjascentGlobstarOptimize(globParts);
623
+ }
624
+ return globParts;
625
+ }
626
+ // just get rid of adjascent ** portions
627
+ adjascentGlobstarOptimize(globParts) {
628
+ return globParts.map(parts => {
629
+ let gs = -1;
630
+ while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
631
+ let i = gs;
632
+ while (parts[i + 1] === '**') {
633
+ i++;
634
+ }
635
+ if (i !== gs) {
636
+ parts.splice(gs, i - gs);
637
+ }
638
+ }
639
+ return parts;
640
+ });
641
+ }
642
+ // get rid of adjascent ** and resolve .. portions
643
+ levelOneOptimize(globParts) {
644
+ return globParts.map(parts => {
645
+ // .. can not remove the root of a Windows path
646
+ const root = this.#rootIndex(parts) + 1;
647
+ parts = parts.reduce((set, part) => {
648
+ const prev = set[set.length - 1];
649
+ if (part === '**' && prev === '**') {
650
+ return set;
651
+ }
652
+ if (part === '..') {
653
+ if (set.length > root &&
654
+ prev &&
655
+ prev !== '..' &&
656
+ prev !== '.' &&
657
+ prev !== '**') {
658
+ set.pop();
659
+ return set;
660
+ }
661
+ }
662
+ set.push(part);
663
+ return set;
664
+ }, []);
665
+ return parts.length === 0 ? [''] : parts;
666
+ });
667
+ }
668
+ // Check the path against each row before it is split. 'no' if no
669
+ // row can match, so it does not need to be split. 'yes' if a row of
670
+ // `**` and one more portion matches. 'maybe' if it must be split to
671
+ // know. None of this applies with partial, where the path can end
672
+ // before the row does.
673
+ //
674
+ // On Windows, `\` is a separator in the path too, and the portions of
675
+ // a row up to its drive letter or UNC share are not checked (see
676
+ // #rootIndex).
677
+ //
678
+ // Each string portion of a row must be a portion of the path, so the
679
+ // path must contain it. Level 2 can only take portions out of the
680
+ // path, so this is still true then.
681
+ //
682
+ // The last portion of a row must match the last portion of the path,
683
+ // or the one before a trailing `/` (as a/* and a/**/* match a/b/).
684
+ // This does not apply to rows that end in **, rows that end in a
685
+ // root, or preserveMultipleSlashes (which can leave more
686
+ // than one '' at the end). At level 2, it does not apply if that
687
+ // portion is `.` or `..`, which can be
688
+ // resolved away. Level 2 only takes other portions out of the
689
+ // middle of the path.
690
+ //
691
+ // A row of `**/x` then matches if the ** can walk the portions
692
+ // before the one that x matches, the same as #matchGlobstar. At
693
+ // level 2, this is only known if none of them are `.` or `..`, so
694
+ // that the path does not change when it is resolved.
695
+ #canMatch(f) {
696
+ const sep = !this.isWindows || !f.includes('\\') ? '/'
697
+ : f.includes('/') ? 'both'
698
+ : '\\';
699
+ // the portions that f.split(/\/+/) would end with, and where they
700
+ // start in f, found when a row needs them. `ends` is 0 until they
701
+ // are found, then 1, or -1 if they can not be used.
702
+ let ends = this.#endCheck ? 0 : -1;
703
+ let last = '';
704
+ let lastStart = 0;
705
+ let prev;
706
+ let prevStart = 0;
707
+ const dot = !!this.options.dot;
708
+ // A string compare is cheaper than includes(), and a Matcher test
709
+ // costs more, so the cheaper check goes first.
710
+ ROWS: for (let r = 0; r < this.set.length; r++) {
711
+ const row = this.set[r];
712
+ const p = row[row.length - 1];
713
+ let end = ends !== -1 && this.#endRows[r] && p !== exports.GLOBSTAR;
714
+ if (end && ends === 0) {
715
+ const i = lastSep(f, f.length, sep);
716
+ lastStart = i + 1;
717
+ last = f.slice(lastStart);
718
+ if (last === '' && i >= 0) {
719
+ let j = i;
720
+ while (j > 0 && isSep(f.charCodeAt(j - 1), sep))
721
+ j--;
722
+ prevStart = j === 0 ? 0 : lastSep(f, j - 1, sep) + 1;
723
+ prev = f.slice(prevStart, j);
724
+ }
725
+ const resolves = this.#level2 &&
726
+ (isDots(last) ||
727
+ (last === '' && prev !== undefined && isDots(prev)));
728
+ ends = resolves ? -1 : 1;
729
+ end = !resolves;
730
+ }
731
+ let tailStart = -1;
732
+ if (end && typeof p === 'string') {
733
+ tailStart = endIndex(p, last, lastStart, prev, prevStart);
734
+ if (tailStart === -1)
735
+ continue;
736
+ }
737
+ if (this.#literalCheck) {
738
+ for (const l of this.#literals[r]) {
739
+ if (!f.includes(l))
740
+ continue ROWS;
741
+ }
742
+ }
743
+ if (end && typeof p === 'object') {
744
+ tailStart = endIndex(p, last, lastStart, prev, prevStart);
745
+ if (tailStart === -1)
746
+ continue;
747
+ }
748
+ const shape = this.#shapes[r];
749
+ if (shape === 'base' && end)
750
+ return 'yes';
751
+ if (shape === 'tail' && end) {
752
+ if (this.#level2 && dotPortion(f, 0, tailStart, true, sep)) {
753
+ return 'maybe';
754
+ }
755
+ if (!dotPortion(f, 0, tailStart, dot, sep))
756
+ return 'yes';
757
+ continue;
758
+ }
759
+ if (shape === 'mid' || shape === 'head') {
760
+ const m = this.#walk(f, row, shape === 'head', dot, sep);
761
+ if (m !== 'no')
762
+ return m;
763
+ continue;
764
+ }
765
+ return 'maybe';
766
+ }
767
+ return 'no';
768
+ }
769
+ // Match a row of a known shape against the split path, the same as
770
+ // #matchGlobstar and #matchGlobStarBodySections do. None of these
771
+ // rows have a drive letter, so they start at the first portion.
772
+ #matchShape(file, row, shape) {
773
+ const dot = !!this.options.dot;
774
+ const n = file.length;
775
+ if (shape === 'head') {
776
+ // x, then at least one portion that ** can walk
777
+ if (n < 2 || !portionMatch(row[0], file[0])) {
778
+ return false;
779
+ }
780
+ for (let i = 1; i < n; i++)
781
+ if (!walkable(file[i], dot))
782
+ return false;
783
+ return true;
784
+ }
785
+ const x = row[1];
786
+ if (shape === 'tail') {
787
+ // x is the last portion, or the one before a trailing ''
788
+ let t = n - 1;
789
+ if (!portionMatch(x, file[t])) {
790
+ if (file[t] !== '' || n === 1 || !portionMatch(x, file[--t])) {
791
+ return false;
792
+ }
793
+ }
794
+ for (let i = 0; i < t; i++)
795
+ if (!walkable(file[i], dot))
796
+ return false;
797
+ return true;
798
+ }
799
+ // mid: the first x that ** can walk to, with a portion after it,
800
+ // and ** can walk all of those
801
+ for (let k = 0; k < n; k++) {
802
+ if (portionMatch(x, file[k]) && k + 1 < n) {
803
+ let i = k + 1;
804
+ while (i < n && walkable(file[i], dot))
805
+ i++;
806
+ if (i === n)
807
+ return true;
808
+ }
809
+ if (!walkable(file[k], dot))
810
+ return false;
811
+ }
812
+ return false;
813
+ }
814
+ // Match a row of `**/x/**` or `x/**` against the path, the same as
815
+ // #matchGlobstar and #matchGlobStarBodySections do once it is split.
816
+ // x must match a portion (the first one, for `x/**`), the ** before
817
+ // it must be able to walk the portions before that one, and there
818
+ // must be a portion after it, which the ** after it can walk. At
819
+ // level 2, this is only known if no portion is `.` or `..`.
820
+ #walk(f, row, head, dot, sep) {
821
+ if (this.#level2 && dotPortion(f, 0, f.length, true, sep))
822
+ return 'maybe';
823
+ const x = row[head ? 0 : 1];
824
+ // the last portion has none after it, so it can not be x
825
+ let s = 0;
826
+ for (let e = nextSep(f, s, sep); e !== -1; e = nextSep(f, s, sep)) {
827
+ // the start of the next portion
828
+ let next = e + 1;
829
+ while (next < f.length && isSep(f.charCodeAt(next), sep))
830
+ next++;
831
+ const hit = typeof x === 'string' ?
832
+ e - s === x.length && f.startsWith(x, s)
833
+ : e > s && x.testUnchecked(f.slice(s, e));
834
+ if (hit && !dotPortion(f, next, f.length, dot, sep))
835
+ return 'yes';
836
+ if (head || dotPortion(f, s, next, dot, sep))
837
+ return 'no';
838
+ s = next;
839
+ }
840
+ return 'no';
841
+ }
842
+ // the last split, if it was the same path with the same split
843
+ // settings
844
+ #cachedSplit(f) {
845
+ const last = lastSplit;
846
+ return (last?.f === f &&
847
+ last.isWindows === this.isWindows &&
848
+ last.preserveMultipleSlashes === this.preserveMultipleSlashes &&
849
+ last.normalize === this.#form) ?
850
+ last
851
+ : undefined;
852
+ }
853
+ // split a path for match(), and keep the parts for the next call
854
+ #split(f) {
855
+ const { isWindows, preserveMultipleSlashes } = this;
856
+ // windows: need to use /, not \
857
+ let parts = this.#slashSplit(isWindows ? f.split('\\').join('/') : f);
858
+ // normalize each portion, so that a char that normalizes to `/`
859
+ // does not make a new portion
860
+ const normalize = this.#form;
861
+ if (normalize)
862
+ parts = parts.map(p => p.normalize(normalize));
863
+ lastSplit = {
864
+ f,
865
+ isWindows,
866
+ preserveMultipleSlashes,
867
+ normalize,
868
+ parts,
869
+ };
870
+ return lastSplit;
871
+ }
872
+ // resolve `.` and `..` portions of a path, for level 2
873
+ #levelTwoFileOptimize(file) {
874
+ // work on a copy, so that the cached parts do not change
875
+ const parts = [...file];
876
+ let didSomething = false;
877
+ do {
878
+ didSomething = false;
879
+ // <pre>/<e>/<rest> -> <pre>/<rest>
880
+ if (!this.preserveMultipleSlashes) {
881
+ for (let i = 1; i < parts.length - 1; i++) {
882
+ const p = parts[i];
883
+ // don't squeeze out UNC patterns
884
+ if (i === 1 && p === '' && parts[0] === '')
885
+ continue;
886
+ if (p === '.' || p === '') {
887
+ didSomething = true;
888
+ parts.splice(i, 1);
889
+ i--;
890
+ }
891
+ }
892
+ if (parts[0] === '.' &&
893
+ parts.length === 2 &&
894
+ (parts[1] === '.' || parts[1] === '')) {
895
+ didSomething = true;
896
+ parts.pop();
897
+ }
898
+ }
899
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
900
+ // .. can not remove the root of a Windows path
901
+ const root = this.#rootIndex(parts) + 1;
902
+ let dd = root;
903
+ while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
904
+ const p = parts[dd - 1];
905
+ if (p && p !== '.' && p !== '..' && p !== '**') {
906
+ didSomething = true;
907
+ parts.splice(dd - 1, 2);
908
+ dd = Math.max(dd - 2, root);
909
+ }
910
+ }
911
+ } while (didSomething);
912
+ return parts.length === 0 ? [''] : parts;
913
+ }
914
+ // First phase: single-pattern processing
915
+ // <pre> is 1 or more portions
916
+ // <rest> is 1 or more portions
917
+ // <p> is any portion other than ., .., '', or **
918
+ // <e> is . or ''
919
+ //
920
+ // **/.. is *brutal* for filesystem walking performance, because
921
+ // it effectively resets the recursive walk each time it occurs,
922
+ // and ** cannot be reduced out by a .. pattern part like a regexp
923
+ // or most strings (other than .., ., and '') can be.
924
+ //
925
+ // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
926
+ // <pre>/<e>/<rest> -> <pre>/<rest>
927
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
928
+ // **/**/<rest> -> **/<rest>
929
+ //
930
+ // **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
931
+ // this WOULD be allowed if ** did follow symlinks, or * didn't
932
+ firstPhasePreProcess(globParts) {
933
+ // each **/.. split doubles the patterns, so stop at the brace max
934
+ const { braceExpandMax = 100_000 } = this.options;
935
+ let didSomething = false;
936
+ do {
937
+ didSomething = false;
938
+ // <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
939
+ for (let parts of globParts) {
940
+ let gs = -1;
941
+ while (-1 !== (gs = parts.indexOf('**', gs + 1))) {
942
+ let gss = gs;
943
+ while (parts[gss + 1] === '**') {
944
+ // <pre>/**/**/<rest> -> <pre>/**/<rest>
945
+ gss++;
946
+ }
947
+ // eg, if gs is 2 and gss is 4, that means we have 3 **
948
+ // parts, and can remove 2 of them.
949
+ if (gss > gs) {
950
+ parts.splice(gs + 1, gss - gs);
951
+ }
952
+ let next = parts[gs + 1];
953
+ const p = parts[gs + 2];
954
+ const p2 = parts[gs + 3];
955
+ if (next !== '..')
956
+ continue;
957
+ if (!p ||
958
+ p === '.' ||
959
+ p === '..' ||
960
+ !p2 ||
961
+ p2 === '.' ||
962
+ p2 === '..' ||
963
+ globParts.length >= braceExpandMax) {
964
+ continue;
965
+ }
966
+ didSomething = true;
967
+ // edit parts in place, and push the new one
968
+ parts.splice(gs, 1);
969
+ const other = parts.slice(0);
970
+ other[gs] = '**';
971
+ globParts.push(other);
972
+ gs--;
973
+ }
974
+ // <pre>/<e>/<rest> -> <pre>/<rest>
975
+ if (!this.preserveMultipleSlashes) {
976
+ for (let i = 1; i < parts.length - 1; i++) {
977
+ const p = parts[i];
978
+ // don't squeeze out UNC patterns
979
+ if (i === 1 && p === '' && parts[0] === '')
980
+ continue;
981
+ if (p === '.' || p === '') {
982
+ didSomething = true;
983
+ parts.splice(i, 1);
984
+ i--;
985
+ }
986
+ }
987
+ if (parts[0] === '.' &&
988
+ parts.length === 2 &&
989
+ (parts[1] === '.' || parts[1] === '')) {
990
+ didSomething = true;
991
+ parts.pop();
992
+ }
993
+ }
994
+ // <pre>/<p>/../<rest> -> <pre>/<rest>
995
+ // .. can not remove the root of a Windows path
996
+ const root = this.#rootIndex(parts) + 1;
997
+ let dd = root;
998
+ while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
999
+ const p = parts[dd - 1];
1000
+ if (p && p !== '.' && p !== '..' && p !== '**') {
1001
+ didSomething = true;
1002
+ const needDot = dd === 1 && parts[dd + 1] === '**';
1003
+ const splin = needDot ? ['.'] : [];
1004
+ parts.splice(dd - 1, 2, ...splin);
1005
+ if (parts.length === 0)
1006
+ parts.push('');
1007
+ dd = Math.max(dd - 2, root);
1008
+ }
1009
+ }
1010
+ }
1011
+ } while (didSomething);
1012
+ return globParts;
1013
+ }
1014
+ // second phase: multi-pattern dedupes
1015
+ // {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
1016
+ // {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
1017
+ // {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
1018
+ //
1019
+ // {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
1020
+ // ^-- not valid because ** doens't follow symlinks
1021
+ secondPhasePreProcess(globParts) {
1022
+ // each pattern is compared to each other one, so skip this for
1023
+ // large sets. The patterns match the same paths either way.
1024
+ if (globParts.length > 1000)
1025
+ return globParts;
1026
+ for (let i = 0; i < globParts.length - 1; i++) {
1027
+ for (let j = i + 1; j < globParts.length; j++) {
1028
+ const matched = this.partsMatch(globParts[i], globParts[j], !this.preserveMultipleSlashes);
1029
+ if (matched) {
1030
+ globParts[i] = [];
1031
+ globParts[j] = matched;
1032
+ break;
1033
+ }
1034
+ }
1035
+ }
1036
+ return globParts.filter(gs => gs.length);
1037
+ }
1038
+ partsMatch(a, b, emptyGSMatch = false) {
1039
+ let ai = 0;
1040
+ let bi = 0;
1041
+ let result = [];
1042
+ let which = '';
1043
+ while (ai < a.length && bi < b.length) {
1044
+ if (a[ai] === b[bi]) {
1045
+ result.push(which === 'b' ? b[bi] : a[ai]);
1046
+ ai++;
1047
+ bi++;
1048
+ }
1049
+ else if (emptyGSMatch && a[ai] === '**' && b[bi] === a[ai + 1]) {
1050
+ result.push(a[ai]);
1051
+ ai++;
1052
+ }
1053
+ else if (emptyGSMatch && b[bi] === '**' && a[ai] === b[bi + 1]) {
1054
+ result.push(b[bi]);
1055
+ bi++;
1056
+ }
1057
+ else if (a[ai] === '*' &&
1058
+ b[bi] &&
1059
+ (this.options.dot || !b[bi].startsWith('.')) &&
1060
+ b[bi] !== '**') {
1061
+ if (which === 'b')
1062
+ return false;
1063
+ which = 'a';
1064
+ result.push(a[ai]);
1065
+ ai++;
1066
+ bi++;
1067
+ }
1068
+ else if (b[bi] === '*' &&
1069
+ a[ai] &&
1070
+ (this.options.dot || !a[ai].startsWith('.')) &&
1071
+ a[ai] !== '**') {
1072
+ if (which === 'a')
1073
+ return false;
1074
+ which = 'b';
1075
+ result.push(b[bi]);
1076
+ ai++;
1077
+ bi++;
1078
+ }
1079
+ else {
1080
+ return false;
1081
+ }
1082
+ }
1083
+ // if we fall out of the loop, it means they two are identical
1084
+ // as long as their lengths match
1085
+ return a.length === b.length && result;
1086
+ }
1087
+ parseNegate() {
1088
+ if (this.nonegate)
1089
+ return;
1090
+ const pattern = this.pattern;
1091
+ let negate = false;
1092
+ let negateOffset = 0;
1093
+ for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
1094
+ negate = !negate;
1095
+ negateOffset++;
1096
+ }
1097
+ if (negateOffset)
1098
+ this.pattern = pattern.slice(negateOffset);
1099
+ this.negate = negate;
1100
+ }
1101
+ // Match the parts of a path against one row of the set. `resolved`
1102
+ // is the parts after level 2 resolves `.` and `..` in them, or the
1103
+ // same parts below level 2. Set partial to true to test if, for
1104
+ // example, "/a/b" matches the start of "/*/b/*/d". Partial means, if
1105
+ // you run out of file before you run out of pattern, then that's
1106
+ // fine, as long as all the parts match.
1107
+ #matchRow(file, resolved, pattern, partial) {
1108
+ let fileStartIndex = 0;
1109
+ let patternStartIndex = 0;
1110
+ // UNC paths like //?/X:/... can match X:/... and vice versa, and
1111
+ // //?/UNC/host/share/... can match //host/share/... and vice versa.
1112
+ // Drive letters in absolute drive or unc paths, and the host and
1113
+ // share of UNC paths, are always compared case-insensitively.
1114
+ const fh = this.isWindows ? uncHost(resolved) : -1;
1115
+ const ph = fh === -1 ? -1 : uncHost(pattern);
1116
+ if (ph !== -1) {
1117
+ const host = pattern[ph];
1118
+ const share = pattern[ph + 1];
1119
+ if (typeof host !== 'string' || typeof share !== 'string') {
1120
+ // a host or share with magic is matched as usual
1121
+ fileStartIndex = fh;
1122
+ patternStartIndex = ph;
1123
+ }
1124
+ else if (resolved[fh].toLowerCase() === host.toLowerCase() &&
1125
+ resolved[fh + 1].toLowerCase() === share.toLowerCase()) {
1126
+ fileStartIndex = fh + 2;
1127
+ patternStartIndex = ph + 2;
1128
+ }
1129
+ }
1130
+ else if (this.isWindows) {
1131
+ const fileDrive = typeof file[0] === 'string' && /^[a-z]:$/i.test(file[0]);
1132
+ const fileUNC = !fileDrive &&
1133
+ file[0] === '' &&
1134
+ file[1] === '' &&
1135
+ file[2] === '?' &&
1136
+ /^[a-z]:$/i.test(file[3]);
1137
+ const patternDrive = typeof pattern[0] === 'string' && /^[a-z]:$/i.test(pattern[0]);
1138
+ const patternUNC = !patternDrive &&
1139
+ pattern[0] === '' &&
1140
+ pattern[1] === '' &&
1141
+ pattern[2] === '?' &&
1142
+ typeof pattern[3] === 'string' &&
1143
+ /^[a-z]:$/i.test(pattern[3]);
1144
+ const fdi = fileUNC ? 3
1145
+ : fileDrive ? 0
1146
+ : undefined;
1147
+ const pdi = patternUNC ? 3
1148
+ : patternDrive ? 0
1149
+ : undefined;
1150
+ if (typeof fdi === 'number' && typeof pdi === 'number') {
1151
+ const [fd, pd] = [
1152
+ file[fdi],
1153
+ pattern[pdi],
1154
+ ];
1155
+ // the drives match, so start matching after them
1156
+ if (fd.toLowerCase() === pd.toLowerCase()) {
1157
+ patternStartIndex = pdi + 1;
1158
+ fileStartIndex = fdi + 1;
1159
+ }
1160
+ }
1161
+ }
1162
+ // the drive letters are found in the parts before level 2 resolves
1163
+ // them, and the match uses the resolved parts
1164
+ file = resolved;
1165
+ if (pattern.includes(exports.GLOBSTAR)) {
1166
+ return this.#matchGlobstar(file, pattern, partial, fileStartIndex, patternStartIndex);
1167
+ }
1168
+ return this.#matchOne(file, pattern, partial, fileStartIndex, patternStartIndex);
1169
+ }
1170
+ #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
1171
+ const { head, body, tail, segments } = this.#getGlobstarParts(pattern, partial, patternIndex);
1172
+ // check the head, from the current file/pattern index.
1173
+ if (head.length) {
1174
+ const headEnd = fileIndex + head.length;
1175
+ if (!this.#matchOne(file, head, partial, fileIndex, 0, headEnd)) {
1176
+ return false;
1177
+ }
1178
+ fileIndex += head.length;
1179
+ patternIndex += head.length;
1180
+ }
1181
+ // now we know the head matches!
1182
+ // if the last portion is not empty, it MUST match the end
1183
+ // check the tail
1184
+ let fileTailMatch = 0;
1185
+ if (tail.length) {
1186
+ // if head + tail > file, then we cannot possibly match
1187
+ if (tail.length + fileIndex > file.length)
1188
+ return false;
1189
+ // try to match the tail
1190
+ let tailStart = file.length - tail.length;
1191
+ if (this.#matchOne(file, tail, partial, tailStart, 0)) {
1192
+ fileTailMatch = tail.length;
1193
+ }
1194
+ else {
1195
+ // affordance for stuff like a/**/* matching a/b/
1196
+ // if the last file portion is '', and there's more to the pattern
1197
+ // then try without the '' bit.
1198
+ if (file[file.length - 1] !== '' ||
1199
+ fileIndex + tail.length === file.length) {
1200
+ return false;
1201
+ }
1202
+ tailStart--;
1203
+ if (!this.#matchOne(file, tail, partial, tailStart, 0)) {
1204
+ return false;
1205
+ }
1206
+ fileTailMatch = tail.length + 1;
1207
+ }
1208
+ }
1209
+ // now we know the tail matches!
1210
+ // the middle is zero or more portions wrapped in **, possibly
1211
+ // containing more ** sections.
1212
+ // so a/**/b/**/c/**/d has become **/b/**/c/**
1213
+ // if it's empty, it means a/**/b, just verify we have no bad dots
1214
+ // if there's no tail, so it ends on /**, then we must have *something*
1215
+ // after the head, or it's not a matc
1216
+ if (!body.length) {
1217
+ let sawSome = !!fileTailMatch;
1218
+ for (let i = fileIndex; i < file.length - fileTailMatch; i++) {
1219
+ const f = String(file[i]);
1220
+ sawSome = true;
1221
+ if (f === '.' ||
1222
+ f === '..' ||
1223
+ (!this.options.dot && f.startsWith('.'))) {
1224
+ return false;
1225
+ }
1226
+ }
1227
+ // in partial mode, we just need to get past all file parts
1228
+ return partial || sawSome;
1229
+ }
1230
+ // now we know that there's one or more body sections, which can
1231
+ // be matched anywhere from the 0 index (because the head was pruned)
1232
+ // through to the length-fileTailMatch index.
1233
+ return !!this.#matchGlobStarBodySections(file, segments, file.length - fileTailMatch, fileIndex, 0, partial, 0, !!fileTailMatch, new Set());
1234
+ }
1235
+ // Split the pattern into head, tail, and middle of ** delimited
1236
+ // parts. The tail has to be at the end, and the others just have to
1237
+ // be found in order from the head. These only depend on the pattern
1238
+ // row, so they are kept for the next path.
1239
+ #getGlobstarParts(pattern, partial, patternIndex) {
1240
+ let byStart = this.#globstarParts.get(pattern);
1241
+ if (!byStart) {
1242
+ byStart = [];
1243
+ this.#globstarParts.set(pattern, byStart);
1244
+ }
1245
+ const key = patternIndex * 2 + (partial ? 1 : 0);
1246
+ const found = byStart[key];
1247
+ if (found)
1248
+ return found;
1249
+ const firstgs = pattern.indexOf(exports.GLOBSTAR, patternIndex);
1250
+ const lastgs = pattern.lastIndexOf(exports.GLOBSTAR);
1251
+ const head = pattern.slice(patternIndex, firstgs);
1252
+ const body = pattern.slice(firstgs + 1, partial ? undefined : lastgs);
1253
+ const tail = partial ? [] : pattern.slice(lastgs + 1);
1254
+ // split the body up into sections, and note the number of
1255
+ // portions that must come after the start of each one
1256
+ const segments = [[[], 0]];
1257
+ let current = segments[0];
1258
+ let nonGsParts = 0;
1259
+ const nonGsPartsSums = [0];
1260
+ for (const b of body) {
1261
+ if (b === exports.GLOBSTAR) {
1262
+ nonGsPartsSums.push(nonGsParts);
1263
+ current = [[], 0];
1264
+ segments.push(current);
1265
+ }
1266
+ else {
1267
+ current[0].push(b);
1268
+ nonGsParts++;
1269
+ }
1270
+ }
1271
+ // the portions in this section and the ones after it
1272
+ segments.forEach((b, i) => {
1273
+ b[1] = nonGsParts - nonGsPartsSums[i];
1274
+ });
1275
+ const parts = { head, body, tail, segments };
1276
+ byStart[key] = parts;
1277
+ return parts;
1278
+ }
1279
+ // return false for "nope, not matching"
1280
+ // return null for "not matching, cannot keep trying"
1281
+ #matchGlobStarBodySections(file,
1282
+ // pattern section, and the portions that it and the rest need
1283
+ bodySegments,
1284
+ // the end of the file portions that the body can match
1285
+ fileLength, fileIndex, bodyIndex, partial, globStarDepth, sawTail,
1286
+ // the places that a walk has already tried, as
1287
+ // bodyIndex * (file.length + 1) + fileIndex. A walk from a place
1288
+ // does the same no matter how it got there, and it only comes back
1289
+ // if it found no match, so a walk that gets to one stops.
1290
+ tried) {
1291
+ // take the first body segment, and walk from fileIndex to its "after"
1292
+ // value at the end
1293
+ // If it doesn't match at that position, we increment, until we hit
1294
+ // that final possible position, and give up.
1295
+ // If it does match, then advance and try to rest.
1296
+ // If any of them fail we keep walking forward.
1297
+ // this is still a bit recursively painful, but it's more constrained
1298
+ // than previous implementations, because we never test something that
1299
+ // can't possibly be a valid matching condition.
1300
+ const bs = bodySegments[bodyIndex];
1301
+ if (!bs) {
1302
+ // with partial, the body is the rest of the pattern, so it
1303
+ // matches if no portions are left, or only the '' of a trailing
1304
+ // / (as a/* matches a/b/). A ** at the end walks them as its own
1305
+ // empty section.
1306
+ if (partial) {
1307
+ return (fileIndex >= fileLength ||
1308
+ (fileIndex === fileLength - 1 && file[fileIndex] === ''));
1309
+ }
1310
+ // just make sure that there's no bad dots before the tail
1311
+ for (let i = fileIndex; i < fileLength; i++) {
1312
+ sawTail = true;
1313
+ const f = file[i];
1314
+ if (f === '.' ||
1315
+ f === '..' ||
1316
+ (!this.options.dot && f.startsWith('.'))) {
1317
+ return false;
1318
+ }
1319
+ }
1320
+ return sawTail;
1321
+ }
1322
+ // have a non-globstar body section to test, up to the last index
1323
+ // where it can start
1324
+ const [body, need] = bs;
1325
+ // with partial, the path can end before the body does
1326
+ const after = partial ? fileLength : fileLength - need;
1327
+ while (fileIndex <= after) {
1328
+ const key = bodyIndex * (file.length + 1) + fileIndex;
1329
+ if (tried.has(key))
1330
+ return false;
1331
+ tried.add(key);
1332
+ const m = this.#matchOne(file, body, partial, fileIndex, 0, fileIndex + body.length);
1333
+ // if limit exceeded, no match. intentional false negative,
1334
+ // acceptable break in correctness for security.
1335
+ if (m && globStarDepth < this.maxGlobstarRecursion) {
1336
+ // match! see if the rest match. if so, we're done!
1337
+ const sub = this.#matchGlobStarBodySections(file, bodySegments, fileLength, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail, tried);
1338
+ if (sub !== false) {
1339
+ return sub;
1340
+ }
1341
+ }
1342
+ // the ** does not walk past the last place the body can start
1343
+ if (fileIndex === after)
1344
+ break;
1345
+ const f = file[fileIndex];
1346
+ if (f === '.' ||
1347
+ f === '..' ||
1348
+ (!this.options.dot && f.startsWith('.'))) {
1349
+ return false;
1350
+ }
1351
+ fileIndex++;
1352
+ }
1353
+ // walked off. no point continuing
1354
+ return partial || null;
1355
+ }
1356
+ #matchOne(file, pattern, partial, fileIndex, patternIndex,
1357
+ // only match the file portions before this index
1358
+ fileEnd = file.length) {
1359
+ let fi;
1360
+ let pi;
1361
+ let pl;
1362
+ let fl;
1363
+ for (fi = fileIndex,
1364
+ pi = patternIndex,
1365
+ fl = Math.min(fileEnd, file.length),
1366
+ pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
1367
+ let p = pattern[pi];
1368
+ let f = file[fi];
1369
+ // should be impossible.
1370
+ /* c8 ignore start */
1371
+ if (p === false || p === exports.GLOBSTAR) {
1372
+ return false;
1373
+ }
1374
+ /* c8 ignore stop */
1375
+ // something other than **
1376
+ // non-magic patterns just have to match exactly
1377
+ // patterns with magic have been turned into Matchers.
1378
+ if (!portionMatch(p, f))
1379
+ return false;
1380
+ }
1381
+ // Note: ending in / means that we'll get a final ""
1382
+ // at the end of the pattern. This can only match a
1383
+ // corresponding "" at the end of the file.
1384
+ // If the file ends in /, then it can only match a
1385
+ // a pattern that ends in /, unless the pattern just
1386
+ // doesn't have any more for it. But, a/b/ should *not*
1387
+ // match "a/b/*", even though * can match "", except in
1388
+ // partial mode, where it might simply not be reached yet.
1389
+ // However, a/b/ should still satisfy a/*
1390
+ // now either we fell off the end of the pattern, or we're done.
1391
+ if (fi === fl && pi === pl) {
1392
+ // ran out of pattern and filename at the same time.
1393
+ // an exact hit!
1394
+ return true;
1395
+ }
1396
+ else if (fi === fl) {
1397
+ // ran out of file, but still had pattern left.
1398
+ // this is ok if we're doing the match as part of
1399
+ // a glob fs traversal.
1400
+ return partial;
1401
+ }
1402
+ else if (pi === pl) {
1403
+ // ran out of pattern, still have file left.
1404
+ // this is only acceptable if we're on the very last
1405
+ // empty segment of a file with a trailing slash.
1406
+ // a/* should match a/b/
1407
+ return fi === fl - 1 && file[fi] === '';
1408
+ /* c8 ignore start */
1409
+ }
1410
+ else {
1411
+ // should be unreachable.
1412
+ throw new Error('wtf?');
1413
+ }
1414
+ /* c8 ignore stop */
1415
+ }
1416
+ braceExpand() {
1417
+ return (0, exports.braceExpand)(this.pattern, this.options);
1418
+ }
1419
+ parse(pattern) {
1420
+ (0, assert_valid_pattern_js_1.assertValidPattern)(pattern);
1421
+ const options = this.options;
1422
+ // shortcuts
1423
+ if (pattern === '**')
1424
+ return exports.GLOBSTAR;
1425
+ if (pattern === '')
1426
+ return '';
1427
+ const { nocase, nocaseMagicOnly, noext = false, dot, normalize, } = options;
1428
+ const lit = literal(pattern, noext);
1429
+ // in nocase mode, a literal with cased chars still needs a
1430
+ // Matcher, unless nocaseMagicOnly is set.
1431
+ if (lit !== undefined &&
1432
+ !(nocase &&
1433
+ !nocaseMagicOnly &&
1434
+ pattern.toUpperCase() !== pattern.toLowerCase())) {
1435
+ return this.#norm(lit);
1436
+ }
1437
+ if (this.#pending)
1438
+ return PENDING;
1439
+ let m = this.#matchers.get(pattern);
1440
+ if (!m) {
1441
+ m = new nonrecursive_glob_match_1.Matcher(pattern, { nocase, noext, dot, normalize });
1442
+ this.#matchers.set(pattern, m);
1443
+ }
1444
+ return m;
1445
+ }
1446
+ #slashSplit(p) {
1447
+ // if p starts with // on windows, we preserve that
1448
+ // so that UNC paths aren't broken. Otherwise, any number of
1449
+ // / characters are coalesced into one, unless
1450
+ // preserveMultipleSlashes is set to true.
1451
+ if (this.preserveMultipleSlashes) {
1452
+ return p.split('/');
1453
+ }
1454
+ else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
1455
+ // add an extra '' for the one we lose
1456
+ return ['', ...p.split(/\/+/)];
1457
+ }
1458
+ else {
1459
+ return p.split(/\/+/);
1460
+ }
1461
+ }
1462
+ match(f, partial = this.partial) {
1463
+ // short-circuit in the case of busted things.
1464
+ // comments, etc.
1465
+ if (this.comment) {
1466
+ return false;
1467
+ }
1468
+ if (this.empty) {
1469
+ return f === '';
1470
+ }
1471
+ if (f === '/' && partial) {
1472
+ return true;
1473
+ }
1474
+ const options = this.options;
1475
+ // treat the test path as a set of pathparts. If it was not just
1476
+ // split or checked, check that it can match before splitting it.
1477
+ let split = this.#cachedSplit(f);
1478
+ if (!split) {
1479
+ // the checks look at the path as given, so not if it is
1480
+ // normalized
1481
+ if (!partial &&
1482
+ !this.#form &&
1483
+ (this.#endCheck || this.#literalCheck) &&
1484
+ lastChecked !== f) {
1485
+ lastChecked = f;
1486
+ const can = this.#canMatch(f);
1487
+ if (can === 'no')
1488
+ return options.flipNegate ? false : this.negate;
1489
+ if (can === 'yes')
1490
+ return options.flipNegate ? true : !this.negate;
1491
+ }
1492
+ split = this.#split(f);
1493
+ }
1494
+ const ff = split.parts;
1495
+ // the parts after level 2 resolves them, kept for the next pattern
1496
+ // that tests the same path
1497
+ const resolved = this.#level2 ?
1498
+ (split.resolved ??= this.#levelTwoFileOptimize(ff))
1499
+ : ff;
1500
+ // just ONE of the pattern sets in this.set needs to match
1501
+ // in order for it to be valid. If negating, then just one
1502
+ // match means that we have failed.
1503
+ // Either way, return on the first hit.
1504
+ const set = this.set;
1505
+ // Find the basename of the path by looking for the last non-empty segment
1506
+ let filename = ff[ff.length - 1];
1507
+ if (!filename) {
1508
+ for (let i = ff.length - 2; !filename && i >= 0; i--) {
1509
+ filename = ff[i];
1510
+ }
1511
+ }
1512
+ for (let r = 0; r < set.length; r++) {
1513
+ const pattern = set[r];
1514
+ const shape = partial ? undefined : this.#shapes[r];
1515
+ // level 2 does not change a path of one portion
1516
+ const hit = shape === 'base' ?
1517
+ portionMatch(pattern[0], filename)
1518
+ : shape ? this.#matchShape(resolved, pattern, shape)
1519
+ : options.matchBase && pattern.length === 1 ?
1520
+ this.#matchRow([filename], [filename], pattern, partial)
1521
+ : this.#matchRow(ff, resolved, pattern, partial);
1522
+ if (hit) {
1523
+ if (options.flipNegate) {
1524
+ return true;
1525
+ }
1526
+ return !this.negate;
1527
+ }
1528
+ }
1529
+ // didn't get any hits. this is success if it's a negative
1530
+ // pattern, failure otherwise.
1531
+ if (options.flipNegate) {
1532
+ return false;
1533
+ }
1534
+ return this.negate;
1535
+ }
1536
+ static defaults(def) {
1537
+ return exports.minimatch.defaults(def).Minimatch;
1538
+ }
1539
+ }
1540
+ exports.Minimatch = Minimatch;
1541
+ /* c8 ignore start */
1542
+ var escape_js_2 = require("./escape.js");
1543
+ Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
1544
+ var unescape_js_2 = require("./unescape.js");
1545
+ Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return unescape_js_2.unescape; } });
1546
+ /* c8 ignore stop */
1547
+ exports.minimatch.Minimatch = Minimatch;
1548
+ exports.minimatch.escape = escape_js_1.escape;
1549
+ exports.minimatch.unescape = unescape_js_1.unescape;
1550
+ //# sourceMappingURL=index.js.map