@ariestools/toolchain 8.6.11

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 (1693) hide show
  1. package/README.md +65 -0
  2. package/dist/actions/analyze.d.ts +2 -0
  3. package/dist/actions/analyze.d.ts.map +1 -0
  4. package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +28 -0
  5. package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -0
  6. package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts +11 -0
  7. package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -0
  8. package/dist/actions/api-exposure/analyzer/depSignals.d.ts +19 -0
  9. package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -0
  10. package/dist/actions/api-exposure/analyzer/entryPoints.d.ts +7 -0
  11. package/dist/actions/api-exposure/analyzer/entryPoints.d.ts.map +1 -0
  12. package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +21 -0
  13. package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -0
  14. package/dist/actions/api-exposure/analyzer/program.d.ts +21 -0
  15. package/dist/actions/api-exposure/analyzer/program.d.ts.map +1 -0
  16. package/dist/actions/api-exposure/apiExposure.d.ts +17 -0
  17. package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -0
  18. package/dist/actions/api-exposure/config.d.ts +21 -0
  19. package/dist/actions/api-exposure/config.d.ts.map +1 -0
  20. package/dist/actions/api-exposure/index.d.ts +9 -0
  21. package/dist/actions/api-exposure/index.d.ts.map +1 -0
  22. package/dist/actions/api-exposure/reporters.d.ts +16 -0
  23. package/dist/actions/api-exposure/reporters.d.ts.map +1 -0
  24. package/dist/actions/api-exposure/rules.d.ts +10 -0
  25. package/dist/actions/api-exposure/rules.d.ts.map +1 -0
  26. package/dist/actions/api-exposure/scoring.d.ts +28 -0
  27. package/dist/actions/api-exposure/scoring.d.ts.map +1 -0
  28. package/dist/actions/api-exposure/types.d.ts +86 -0
  29. package/dist/actions/api-exposure/types.d.ts.map +1 -0
  30. package/dist/actions/barrel/analyzeBarrel.d.ts +22 -0
  31. package/dist/actions/barrel/analyzeBarrel.d.ts.map +1 -0
  32. package/dist/actions/barrel/checkBarrelImportRestrictions.d.ts +12 -0
  33. package/dist/actions/barrel/checkBarrelImportRestrictions.d.ts.map +1 -0
  34. package/dist/actions/barrel/getReExportSpecs.d.ts +11 -0
  35. package/dist/actions/barrel/getReExportSpecs.d.ts.map +1 -0
  36. package/dist/actions/barrel/index.d.ts +6 -0
  37. package/dist/actions/barrel/index.d.ts.map +1 -0
  38. package/dist/actions/barrel/resolveBarrel.d.ts +9 -0
  39. package/dist/actions/barrel/resolveBarrel.d.ts.map +1 -0
  40. package/dist/actions/barrel/restrictionHelpers.d.ts +30 -0
  41. package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -0
  42. package/dist/actions/build.d.ts +9 -0
  43. package/dist/actions/build.d.ts.map +1 -0
  44. package/dist/actions/claude-check.d.ts +2 -0
  45. package/dist/actions/claude-check.d.ts.map +1 -0
  46. package/dist/actions/claude-clean.d.ts +2 -0
  47. package/dist/actions/claude-clean.d.ts.map +1 -0
  48. package/dist/actions/claude-commands.d.ts +2 -0
  49. package/dist/actions/claude-commands.d.ts.map +1 -0
  50. package/dist/actions/claude-rules.d.ts +4 -0
  51. package/dist/actions/claude-rules.d.ts.map +1 -0
  52. package/dist/actions/claude-settings.d.ts +5 -0
  53. package/dist/actions/claude-settings.d.ts.map +1 -0
  54. package/dist/actions/claude-skills.d.ts +2 -0
  55. package/dist/actions/claude-skills.d.ts.map +1 -0
  56. package/dist/actions/clean-eslint.d.ts +3 -0
  57. package/dist/actions/clean-eslint.d.ts.map +1 -0
  58. package/dist/actions/clean.d.ts +14 -0
  59. package/dist/actions/clean.d.ts.map +1 -0
  60. package/dist/actions/compile.d.ts +45 -0
  61. package/dist/actions/compile.d.ts.map +1 -0
  62. package/dist/actions/copy-assets.d.ts +6 -0
  63. package/dist/actions/copy-assets.d.ts.map +1 -0
  64. package/dist/actions/dead/analyzePackage.d.ts +43 -0
  65. package/dist/actions/dead/analyzePackage.d.ts.map +1 -0
  66. package/dist/actions/dead/classifyPackageVisibility.d.ts +4 -0
  67. package/dist/actions/dead/classifyPackageVisibility.d.ts.map +1 -0
  68. package/dist/actions/dead/collectExternalUsage.d.ts +38 -0
  69. package/dist/actions/dead/collectExternalUsage.d.ts.map +1 -0
  70. package/dist/actions/dead/collectSymbols.d.ts +40 -0
  71. package/dist/actions/dead/collectSymbols.d.ts.map +1 -0
  72. package/dist/actions/dead/dead.d.ts +4 -0
  73. package/dist/actions/dead/dead.d.ts.map +1 -0
  74. package/dist/actions/dead/deprecation.d.ts +3 -0
  75. package/dist/actions/dead/deprecation.d.ts.map +1 -0
  76. package/dist/actions/dead/detectActiveCodeWorkspace.d.ts +7 -0
  77. package/dist/actions/dead/detectActiveCodeWorkspace.d.ts.map +1 -0
  78. package/dist/actions/dead/evaluateRules.d.ts +8 -0
  79. package/dist/actions/dead/evaluateRules.d.ts.map +1 -0
  80. package/dist/actions/dead/findWorkspaceFile.d.ts +13 -0
  81. package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -0
  82. package/dist/actions/dead/fixDeadCode.d.ts +12 -0
  83. package/dist/actions/dead/fixDeadCode.d.ts.map +1 -0
  84. package/dist/actions/dead/index.d.ts +10 -0
  85. package/dist/actions/dead/index.d.ts.map +1 -0
  86. package/dist/actions/dead/parseCodeWorkspace.d.ts +7 -0
  87. package/dist/actions/dead/parseCodeWorkspace.d.ts.map +1 -0
  88. package/dist/actions/dead/propagateExternalUsage.d.ts +4 -0
  89. package/dist/actions/dead/propagateExternalUsage.d.ts.map +1 -0
  90. package/dist/actions/dead/pruneDeadFiles.d.ts +7 -0
  91. package/dist/actions/dead/pruneDeadFiles.d.ts.map +1 -0
  92. package/dist/actions/dead/reporters.d.ts +6 -0
  93. package/dist/actions/dead/reporters.d.ts.map +1 -0
  94. package/dist/actions/dead/ruleConfig.d.ts +5 -0
  95. package/dist/actions/dead/ruleConfig.d.ts.map +1 -0
  96. package/dist/actions/dead/ruleNames.d.ts +4 -0
  97. package/dist/actions/dead/ruleNames.d.ts.map +1 -0
  98. package/dist/actions/dead/rules.d.ts +7 -0
  99. package/dist/actions/dead/rules.d.ts.map +1 -0
  100. package/dist/actions/dead/runDeadAnalysis.d.ts +25 -0
  101. package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -0
  102. package/dist/actions/dead/runtimeEntries.d.ts +23 -0
  103. package/dist/actions/dead/runtimeEntries.d.ts.map +1 -0
  104. package/dist/actions/dead/sourceEdits.d.ts +7 -0
  105. package/dist/actions/dead/sourceEdits.d.ts.map +1 -0
  106. package/dist/actions/dead/storybookConventions.d.ts +6 -0
  107. package/dist/actions/dead/storybookConventions.d.ts.map +1 -0
  108. package/dist/actions/dead/types.d.ts +68 -0
  109. package/dist/actions/dead/types.d.ts.map +1 -0
  110. package/dist/actions/deplint/checkPackage/checkPackage.d.ts +17 -0
  111. package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -0
  112. package/dist/actions/deplint/checkPackage/checkPackageTypes.d.ts +19 -0
  113. package/dist/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +1 -0
  114. package/dist/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +11 -0
  115. package/dist/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +1 -0
  116. package/dist/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +21 -0
  117. package/dist/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +1 -0
  118. package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +6 -0
  119. package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +1 -0
  120. package/dist/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +24 -0
  121. package/dist/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +1 -0
  122. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +74 -0
  123. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -0
  124. package/dist/actions/deplint/checkPackage/getUnusedDependencies.d.ts +12 -0
  125. package/dist/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +1 -0
  126. package/dist/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +7 -0
  127. package/dist/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +1 -0
  128. package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +6 -0
  129. package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +1 -0
  130. package/dist/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +21 -0
  131. package/dist/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +1 -0
  132. package/dist/actions/deplint/checkPackage/index.d.ts +13 -0
  133. package/dist/actions/deplint/checkPackage/index.d.ts.map +1 -0
  134. package/dist/actions/deplint/checkPackage/legacyPeerCheck.d.ts +13 -0
  135. package/dist/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +1 -0
  136. package/dist/actions/deplint/deplint.d.ts +20 -0
  137. package/dist/actions/deplint/deplint.d.ts.map +1 -0
  138. package/dist/actions/deplint/engine.d.ts +15 -0
  139. package/dist/actions/deplint/engine.d.ts.map +1 -0
  140. package/dist/actions/deplint/fetchPackageManifest.d.ts +25 -0
  141. package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -0
  142. package/dist/actions/deplint/findFiles.d.ts +6 -0
  143. package/dist/actions/deplint/findFiles.d.ts.map +1 -0
  144. package/dist/actions/deplint/findFilesByGlob.d.ts +2 -0
  145. package/dist/actions/deplint/findFilesByGlob.d.ts.map +1 -0
  146. package/dist/actions/deplint/fixer.d.ts +3 -0
  147. package/dist/actions/deplint/fixer.d.ts.map +1 -0
  148. package/dist/actions/deplint/getBasePackageName.d.ts +2 -0
  149. package/dist/actions/deplint/getBasePackageName.d.ts.map +1 -0
  150. package/dist/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +12 -0
  151. package/dist/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +1 -0
  152. package/dist/actions/deplint/getDependenciesFromPackageJson.d.ts +9 -0
  153. package/dist/actions/deplint/getDependenciesFromPackageJson.d.ts.map +1 -0
  154. package/dist/actions/deplint/getExtendsFromTsconfigs.d.ts +10 -0
  155. package/dist/actions/deplint/getExtendsFromTsconfigs.d.ts.map +1 -0
  156. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts +12 -0
  157. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -0
  158. package/dist/actions/deplint/getImportsFromFile.d.ts +4 -0
  159. package/dist/actions/deplint/getImportsFromFile.d.ts.map +1 -0
  160. package/dist/actions/deplint/getRequiredPeerDependencies.d.ts +10 -0
  161. package/dist/actions/deplint/getRequiredPeerDependencies.d.ts.map +1 -0
  162. package/dist/actions/deplint/getScriptReferencedPackages.d.ts +8 -0
  163. package/dist/actions/deplint/getScriptReferencedPackages.d.ts.map +1 -0
  164. package/dist/actions/deplint/getStorybookConfigImports.d.ts +3 -0
  165. package/dist/actions/deplint/getStorybookConfigImports.d.ts.map +1 -0
  166. package/dist/actions/deplint/implicitDevDependencies.d.ts +15 -0
  167. package/dist/actions/deplint/implicitDevDependencies.d.ts.map +1 -0
  168. package/dist/actions/deplint/index.d.ts +11 -0
  169. package/dist/actions/deplint/index.d.ts.map +1 -0
  170. package/dist/actions/deplint/isTerminalPackage.d.ts +25 -0
  171. package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -0
  172. package/dist/actions/deplint/loader.d.ts +4 -0
  173. package/dist/actions/deplint/loader.d.ts.map +1 -0
  174. package/dist/actions/deplint/packageEditor.d.ts +11 -0
  175. package/dist/actions/deplint/packageEditor.d.ts.map +1 -0
  176. package/dist/actions/deplint/packageJsonEditor.d.ts +97 -0
  177. package/dist/actions/deplint/packageJsonEditor.d.ts.map +1 -0
  178. package/dist/actions/deplint/peerRangeOptions.d.ts +10 -0
  179. package/dist/actions/deplint/peerRangeOptions.d.ts.map +1 -0
  180. package/dist/actions/deplint/reporters.d.ts +8 -0
  181. package/dist/actions/deplint/reporters.d.ts.map +1 -0
  182. package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +24 -0
  183. package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -0
  184. package/dist/actions/deplint/ruleConfig.d.ts +5 -0
  185. package/dist/actions/deplint/ruleConfig.d.ts.map +1 -0
  186. package/dist/actions/deplint/rules.d.ts +4 -0
  187. package/dist/actions/deplint/rules.d.ts.map +1 -0
  188. package/dist/actions/deplint/rulesDiagnostic.d.ts +4 -0
  189. package/dist/actions/deplint/rulesDiagnostic.d.ts.map +1 -0
  190. package/dist/actions/deplint/rulesMisplaced.d.ts +4 -0
  191. package/dist/actions/deplint/rulesMisplaced.d.ts.map +1 -0
  192. package/dist/actions/deplint/snapshot.d.ts +22 -0
  193. package/dist/actions/deplint/snapshot.d.ts.map +1 -0
  194. package/dist/actions/deplint/tsScriptsAliases.d.ts +11 -0
  195. package/dist/actions/deplint/tsScriptsAliases.d.ts.map +1 -0
  196. package/dist/actions/deplint/types.d.ts +295 -0
  197. package/dist/actions/deplint/types.d.ts.map +1 -0
  198. package/dist/actions/deplint/versionMismatchFixes.d.ts +4 -0
  199. package/dist/actions/deplint/versionMismatchFixes.d.ts.map +1 -0
  200. package/dist/actions/deploy.d.ts +3 -0
  201. package/dist/actions/deploy.d.ts.map +1 -0
  202. package/dist/actions/eject.d.ts +2 -0
  203. package/dist/actions/eject.d.ts.map +1 -0
  204. package/dist/actions/fix.d.ts +7 -0
  205. package/dist/actions/fix.d.ts.map +1 -0
  206. package/dist/actions/gitignore.d.ts +4 -0
  207. package/dist/actions/gitignore.d.ts.map +1 -0
  208. package/dist/actions/gitlint-fix.d.ts +2 -0
  209. package/dist/actions/gitlint-fix.d.ts.map +1 -0
  210. package/dist/actions/gitlint.d.ts +2 -0
  211. package/dist/actions/gitlint.d.ts.map +1 -0
  212. package/dist/actions/incremental.d.ts +46 -0
  213. package/dist/actions/incremental.d.ts.map +1 -0
  214. package/dist/actions/index.d.ts +54 -0
  215. package/dist/actions/index.d.ts.map +1 -0
  216. package/dist/actions/install.d.ts +2 -0
  217. package/dist/actions/install.d.ts.map +1 -0
  218. package/dist/actions/license.d.ts +2 -0
  219. package/dist/actions/license.d.ts.map +1 -0
  220. package/dist/actions/lint-config.d.ts +16 -0
  221. package/dist/actions/lint-config.d.ts.map +1 -0
  222. package/dist/actions/lint-init.d.ts +16 -0
  223. package/dist/actions/lint-init.d.ts.map +1 -0
  224. package/dist/actions/lint.d.ts +36 -0
  225. package/dist/actions/lint.d.ts.map +1 -0
  226. package/dist/actions/lintNext.d.ts +14 -0
  227. package/dist/actions/lintNext.d.ts.map +1 -0
  228. package/dist/actions/lintNextWorker.d.ts +21 -0
  229. package/dist/actions/lintNextWorker.d.ts.map +1 -0
  230. package/dist/actions/lintTierAnalysis.d.ts +61 -0
  231. package/dist/actions/lintTierAnalysis.d.ts.map +1 -0
  232. package/dist/actions/lintlint.d.ts +12 -0
  233. package/dist/actions/lintlint.d.ts.map +1 -0
  234. package/dist/actions/node-lint.d.ts +19 -0
  235. package/dist/actions/node-lint.d.ts.map +1 -0
  236. package/dist/actions/npmignore-gen.d.ts +2 -0
  237. package/dist/actions/npmignore-gen.d.ts.map +1 -0
  238. package/dist/actions/orphan.d.ts +6 -0
  239. package/dist/actions/orphan.d.ts.map +1 -0
  240. package/dist/actions/package/clean-outputs.d.ts +6 -0
  241. package/dist/actions/package/clean-outputs.d.ts.map +1 -0
  242. package/dist/actions/package/clean-typescript.d.ts +3 -0
  243. package/dist/actions/package/clean-typescript.d.ts.map +1 -0
  244. package/dist/actions/package/clean.d.ts +3 -0
  245. package/dist/actions/package/clean.d.ts.map +1 -0
  246. package/dist/actions/package/compile/ApiExposureConfig.d.ts +58 -0
  247. package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -0
  248. package/dist/actions/package/compile/MonolithConfig.d.ts +105 -0
  249. package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -0
  250. package/dist/actions/package/compile/XyConfig.d.ts +462 -0
  251. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -0
  252. package/dist/actions/package/compile/buildEntries.d.ts +3 -0
  253. package/dist/actions/package/compile/buildEntries.d.ts.map +1 -0
  254. package/dist/actions/package/compile/compile.d.ts +7 -0
  255. package/dist/actions/package/compile/compile.d.ts.map +1 -0
  256. package/dist/actions/package/compile/copyTypeFiles.d.ts +2 -0
  257. package/dist/actions/package/compile/copyTypeFiles.d.ts.map +1 -0
  258. package/dist/actions/package/compile/createProgramFromConfig.d.ts +25 -0
  259. package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -0
  260. package/dist/actions/package/compile/createTypescriptConfig.d.ts +29 -0
  261. package/dist/actions/package/compile/createTypescriptConfig.d.ts.map +1 -0
  262. package/dist/actions/package/compile/deepMerge.d.ts +4 -0
  263. package/dist/actions/package/compile/deepMerge.d.ts.map +1 -0
  264. package/dist/actions/package/compile/entryOutputName.d.ts +5 -0
  265. package/dist/actions/package/compile/entryOutputName.d.ts.map +1 -0
  266. package/dist/actions/package/compile/findWorkspaceRoot.d.ts +5 -0
  267. package/dist/actions/package/compile/findWorkspaceRoot.d.ts.map +1 -0
  268. package/dist/actions/package/compile/getCompilerOptions.d.ts +3 -0
  269. package/dist/actions/package/compile/getCompilerOptions.d.ts.map +1 -0
  270. package/dist/actions/package/compile/index.d.ts +16 -0
  271. package/dist/actions/package/compile/index.d.ts.map +1 -0
  272. package/dist/actions/package/compile/inputs.d.ts +2 -0
  273. package/dist/actions/package/compile/inputs.d.ts.map +1 -0
  274. package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +14 -0
  275. package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -0
  276. package/dist/actions/package/compile/monolithCompileEntries.d.ts +20 -0
  277. package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -0
  278. package/dist/actions/package/compile/monolithCompileLayout.d.ts +43 -0
  279. package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -0
  280. package/dist/actions/package/compile/packageCompileEsbuild.d.ts +18 -0
  281. package/dist/actions/package/compile/packageCompileEsbuild.d.ts.map +1 -0
  282. package/dist/actions/package/compile/packageCompileMonolith.d.ts +10 -0
  283. package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -0
  284. package/dist/actions/package/compile/packageCompileTsc.d.ts +3 -0
  285. package/dist/actions/package/compile/packageCompileTsc.d.ts.map +1 -0
  286. package/dist/actions/package/compile/packageCompileTsup.d.ts +6 -0
  287. package/dist/actions/package/compile/packageCompileTsup.d.ts.map +1 -0
  288. package/dist/actions/package/compile/packageCompileVendor.d.ts +4 -0
  289. package/dist/actions/package/compile/packageCompileVendor.d.ts.map +1 -0
  290. package/dist/actions/package/compile/resolveCompileBundleOptions.d.ts +13 -0
  291. package/dist/actions/package/compile/resolveCompileBundleOptions.d.ts.map +1 -0
  292. package/dist/actions/package/compile/resolveCompilePlatforms.d.ts +23 -0
  293. package/dist/actions/package/compile/resolveCompilePlatforms.d.ts.map +1 -0
  294. package/dist/actions/package/compile/resolvePlatformTypes.d.ts +5 -0
  295. package/dist/actions/package/compile/resolvePlatformTypes.d.ts.map +1 -0
  296. package/dist/actions/package/compile/runTsc.d.ts +2 -0
  297. package/dist/actions/package/compile/runTsc.d.ts.map +1 -0
  298. package/dist/actions/package/compile/validateFullPackage.d.ts +2 -0
  299. package/dist/actions/package/compile/validateFullPackage.d.ts.map +1 -0
  300. package/dist/actions/package/compile/vendorCompile.d.ts +6 -0
  301. package/dist/actions/package/compile/vendorCompile.d.ts.map +1 -0
  302. package/dist/actions/package/compile/vendorCompileEmit.d.ts +8 -0
  303. package/dist/actions/package/compile/vendorCompileEmit.d.ts.map +1 -0
  304. package/dist/actions/package/compile/vendorCompileInternals.d.ts +31 -0
  305. package/dist/actions/package/compile/vendorCompileInternals.d.ts.map +1 -0
  306. package/dist/actions/package/compile/vendorCompileRewrite.d.ts +3 -0
  307. package/dist/actions/package/compile/vendorCompileRewrite.d.ts.map +1 -0
  308. package/dist/actions/package/compile/vendorCompileTypes.d.ts +31 -0
  309. package/dist/actions/package/compile/vendorCompileTypes.d.ts.map +1 -0
  310. package/dist/actions/package/compileTargetsPublint.d.ts +13 -0
  311. package/dist/actions/package/compileTargetsPublint.d.ts.map +1 -0
  312. package/dist/actions/package/copy-assets.d.ts +5 -0
  313. package/dist/actions/package/copy-assets.d.ts.map +1 -0
  314. package/dist/actions/package/expectedCompileOutputs.d.ts +11 -0
  315. package/dist/actions/package/expectedCompileOutputs.d.ts.map +1 -0
  316. package/dist/actions/package/exportConditionPublint.d.ts +9 -0
  317. package/dist/actions/package/exportConditionPublint.d.ts.map +1 -0
  318. package/dist/actions/package/exportMapPublint.d.ts +7 -0
  319. package/dist/actions/package/exportMapPublint.d.ts.map +1 -0
  320. package/dist/actions/package/index.d.ts +9 -0
  321. package/dist/actions/package/index.d.ts.map +1 -0
  322. package/dist/actions/package/lint.d.ts +2 -0
  323. package/dist/actions/package/lint.d.ts.map +1 -0
  324. package/dist/actions/package/platformPublint.d.ts +7 -0
  325. package/dist/actions/package/platformPublint.d.ts.map +1 -0
  326. package/dist/actions/package/publint.d.ts +16 -0
  327. package/dist/actions/package/publint.d.ts.map +1 -0
  328. package/dist/actions/package/recompile.d.ts +3 -0
  329. package/dist/actions/package/recompile.d.ts.map +1 -0
  330. package/dist/actions/package-lint-deps.d.ts +47 -0
  331. package/dist/actions/package-lint-deps.d.ts.map +1 -0
  332. package/dist/actions/package-lint-engines.d.ts +22 -0
  333. package/dist/actions/package-lint-engines.d.ts.map +1 -0
  334. package/dist/actions/package-lint-pnpm.d.ts +11 -0
  335. package/dist/actions/package-lint-pnpm.d.ts.map +1 -0
  336. package/dist/actions/package-lint-specs.d.ts +9 -0
  337. package/dist/actions/package-lint-specs.d.ts.map +1 -0
  338. package/dist/actions/package-lint.d.ts +7 -0
  339. package/dist/actions/package-lint.d.ts.map +1 -0
  340. package/dist/actions/packman/clean.d.ts +5 -0
  341. package/dist/actions/packman/clean.d.ts.map +1 -0
  342. package/dist/actions/packman/convert.d.ts +10 -0
  343. package/dist/actions/packman/convert.d.ts.map +1 -0
  344. package/dist/actions/packman/convertToBun.d.ts +2 -0
  345. package/dist/actions/packman/convertToBun.d.ts.map +1 -0
  346. package/dist/actions/packman/convertToNpm.d.ts +2 -0
  347. package/dist/actions/packman/convertToNpm.d.ts.map +1 -0
  348. package/dist/actions/packman/convertToPnpm.d.ts +2 -0
  349. package/dist/actions/packman/convertToPnpm.d.ts.map +1 -0
  350. package/dist/actions/packman/convertToYarn.d.ts +2 -0
  351. package/dist/actions/packman/convertToYarn.d.ts.map +1 -0
  352. package/dist/actions/packman/index.d.ts +5 -0
  353. package/dist/actions/packman/index.d.ts.map +1 -0
  354. package/dist/actions/packman/lint.d.ts +6 -0
  355. package/dist/actions/packman/lint.d.ts.map +1 -0
  356. package/dist/actions/packman/rewriteScripts.d.ts +5 -0
  357. package/dist/actions/packman/rewriteScripts.d.ts.map +1 -0
  358. package/dist/actions/packman/rewriteSourceImports.d.ts +2 -0
  359. package/dist/actions/packman/rewriteSourceImports.d.ts.map +1 -0
  360. package/dist/actions/packman/swapTsScriptsDependency.d.ts +2 -0
  361. package/dist/actions/packman/swapTsScriptsDependency.d.ts.map +1 -0
  362. package/dist/actions/publint.d.ts +48 -0
  363. package/dist/actions/publint.d.ts.map +1 -0
  364. package/dist/actions/publish.d.ts +22 -0
  365. package/dist/actions/publish.d.ts.map +1 -0
  366. package/dist/actions/reactTest.d.ts +2 -0
  367. package/dist/actions/reactTest.d.ts.map +1 -0
  368. package/dist/actions/rebuild.d.ts +7 -0
  369. package/dist/actions/rebuild.d.ts.map +1 -0
  370. package/dist/actions/recompile.d.ts +16 -0
  371. package/dist/actions/recompile.d.ts.map +1 -0
  372. package/dist/actions/reinstall.d.ts +2 -0
  373. package/dist/actions/reinstall.d.ts.map +1 -0
  374. package/dist/actions/releaseAgeExcludeScopes.d.ts +13 -0
  375. package/dist/actions/releaseAgeExcludeScopes.d.ts.map +1 -0
  376. package/dist/actions/relint.d.ts +24 -0
  377. package/dist/actions/relint.d.ts.map +1 -0
  378. package/dist/actions/repo-init.d.ts +14 -0
  379. package/dist/actions/repo-init.d.ts.map +1 -0
  380. package/dist/actions/republint.d.ts +13 -0
  381. package/dist/actions/republint.d.ts.map +1 -0
  382. package/dist/actions/result.d.ts +44 -0
  383. package/dist/actions/result.d.ts.map +1 -0
  384. package/dist/actions/retest.d.ts +5 -0
  385. package/dist/actions/retest.d.ts.map +1 -0
  386. package/dist/actions/secure.d.ts +7 -0
  387. package/dist/actions/secure.d.ts.map +1 -0
  388. package/dist/actions/sitemap.d.ts +2 -0
  389. package/dist/actions/sitemap.d.ts.map +1 -0
  390. package/dist/actions/skills/defaults.d.ts +6 -0
  391. package/dist/actions/skills/defaults.d.ts.map +1 -0
  392. package/dist/actions/skills/detectProfile.d.ts +10 -0
  393. package/dist/actions/skills/detectProfile.d.ts.map +1 -0
  394. package/dist/actions/skills/index.d.ts +9 -0
  395. package/dist/actions/skills/index.d.ts.map +1 -0
  396. package/dist/actions/skills/installed.d.ts +10 -0
  397. package/dist/actions/skills/installed.d.ts.map +1 -0
  398. package/dist/actions/skills/lint.d.ts +26 -0
  399. package/dist/actions/skills/lint.d.ts.map +1 -0
  400. package/dist/actions/skills/passthrough.d.ts +26 -0
  401. package/dist/actions/skills/passthrough.d.ts.map +1 -0
  402. package/dist/actions/skills/remove.d.ts +9 -0
  403. package/dist/actions/skills/remove.d.ts.map +1 -0
  404. package/dist/actions/skills/skillRules.d.ts +9 -0
  405. package/dist/actions/skills/skillRules.d.ts.map +1 -0
  406. package/dist/actions/skills/updo.d.ts +4 -0
  407. package/dist/actions/skills/updo.d.ts.map +1 -0
  408. package/dist/actions/skills/versions.d.ts +10 -0
  409. package/dist/actions/skills/versions.d.ts.map +1 -0
  410. package/dist/actions/sonar.d.ts +2 -0
  411. package/dist/actions/sonar.d.ts.map +1 -0
  412. package/dist/actions/start.d.ts +2 -0
  413. package/dist/actions/start.d.ts.map +1 -0
  414. package/dist/actions/statics.d.ts +2 -0
  415. package/dist/actions/statics.d.ts.map +1 -0
  416. package/dist/actions/test.d.ts +5 -0
  417. package/dist/actions/test.d.ts.map +1 -0
  418. package/dist/actions/tsc-validate/index.d.ts +3 -0
  419. package/dist/actions/tsc-validate/index.d.ts.map +1 -0
  420. package/dist/actions/tsc-validate/sharedValidate.d.ts +34 -0
  421. package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -0
  422. package/dist/actions/tsc-validate/tscValidate.d.ts +35 -0
  423. package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -0
  424. package/dist/actions/up.d.ts +2 -0
  425. package/dist/actions/up.d.ts.map +1 -0
  426. package/dist/actions/updo.d.ts +9 -0
  427. package/dist/actions/updo.d.ts.map +1 -0
  428. package/dist/actions/work/id.d.ts +8 -0
  429. package/dist/actions/work/id.d.ts.map +1 -0
  430. package/dist/actions/work/index.d.ts +131 -0
  431. package/dist/actions/work/index.d.ts.map +1 -0
  432. package/dist/actions/work/inline.d.ts +8 -0
  433. package/dist/actions/work/inline.d.ts.map +1 -0
  434. package/dist/actions/work/priority.d.ts +5 -0
  435. package/dist/actions/work/priority.d.ts.map +1 -0
  436. package/dist/actions/work/schema.d.ts +81 -0
  437. package/dist/actions/work/schema.d.ts.map +1 -0
  438. package/dist/actions/work/store.d.ts +23 -0
  439. package/dist/actions/work/store.d.ts.map +1 -0
  440. package/dist/bin/cli.mjs +2 -0
  441. package/dist/bin/package/build.d.ts +3 -0
  442. package/dist/bin/package/build.d.ts.map +1 -0
  443. package/dist/bin/package/build.mjs +18220 -0
  444. package/dist/bin/package/build.mjs.map +1 -0
  445. package/dist/bin/package/clean-outputs.d.ts +3 -0
  446. package/dist/bin/package/clean-outputs.d.ts.map +1 -0
  447. package/dist/bin/package/clean-typescript.d.ts +3 -0
  448. package/dist/bin/package/clean-typescript.d.ts.map +1 -0
  449. package/dist/bin/package/clean.d.ts +3 -0
  450. package/dist/bin/package/clean.d.ts.map +1 -0
  451. package/dist/bin/package/clean.mjs +3632 -0
  452. package/dist/bin/package/clean.mjs.map +1 -0
  453. package/dist/bin/package/compile-tsup.d.ts +3 -0
  454. package/dist/bin/package/compile-tsup.d.ts.map +1 -0
  455. package/dist/bin/package/compile.d.ts +3 -0
  456. package/dist/bin/package/compile.d.ts.map +1 -0
  457. package/dist/bin/package/compile.mjs +13159 -0
  458. package/dist/bin/package/compile.mjs.map +1 -0
  459. package/dist/bin/package/copy-assets-cjs.d.ts +3 -0
  460. package/dist/bin/package/copy-assets-cjs.d.ts.map +1 -0
  461. package/dist/bin/package/copy-assets-cjs.mjs +3634 -0
  462. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -0
  463. package/dist/bin/package/copy-assets-esm.d.ts +3 -0
  464. package/dist/bin/package/copy-assets-esm.d.ts.map +1 -0
  465. package/dist/bin/package/copy-assets-esm.mjs +3634 -0
  466. package/dist/bin/package/copy-assets-esm.mjs.map +1 -0
  467. package/dist/bin/package/fix.d.ts +3 -0
  468. package/dist/bin/package/fix.d.ts.map +1 -0
  469. package/dist/bin/package/fix.mjs +2184 -0
  470. package/dist/bin/package/fix.mjs.map +1 -0
  471. package/dist/bin/package/lint-verbose.d.ts +3 -0
  472. package/dist/bin/package/lint-verbose.d.ts.map +1 -0
  473. package/dist/bin/package/lint-verbose.mjs +2184 -0
  474. package/dist/bin/package/lint-verbose.mjs.map +1 -0
  475. package/dist/bin/package/lint.d.ts +3 -0
  476. package/dist/bin/package/lint.d.ts.map +1 -0
  477. package/dist/bin/package/lint.mjs +2184 -0
  478. package/dist/bin/package/lint.mjs.map +1 -0
  479. package/dist/bin/package/publint.d.ts +3 -0
  480. package/dist/bin/package/publint.d.ts.map +1 -0
  481. package/dist/bin/package/publint.mjs +13676 -0
  482. package/dist/bin/package/publint.mjs.map +1 -0
  483. package/dist/bin/package/recompile.d.ts +3 -0
  484. package/dist/bin/package/recompile.d.ts.map +1 -0
  485. package/dist/bin/package/recompile.mjs +13230 -0
  486. package/dist/bin/package/recompile.mjs.map +1 -0
  487. package/dist/bin/package/relint.d.ts +3 -0
  488. package/dist/bin/package/relint.d.ts.map +1 -0
  489. package/dist/bin/package/relint.mjs +2184 -0
  490. package/dist/bin/package/relint.mjs.map +1 -0
  491. package/dist/bin/package/sync-layout.d.ts +3 -0
  492. package/dist/bin/package/sync-layout.d.ts.map +1 -0
  493. package/dist/bin/package/sync-layout.mjs +5504 -0
  494. package/dist/bin/package/sync-layout.mjs.map +1 -0
  495. package/dist/bin/run-or-exec.d.ts +3 -0
  496. package/dist/bin/run-or-exec.d.ts.map +1 -0
  497. package/dist/bin/run-or-exec.mjs +975 -0
  498. package/dist/bin/run-or-exec.mjs.map +1 -0
  499. package/dist/bin/skills.mjs +18533 -0
  500. package/dist/bin/skills.mjs.map +1 -0
  501. package/dist/bin/source-map-explorer.mjs +27263 -0
  502. package/dist/bin/source-map-explorer.mjs.map +1 -0
  503. package/dist/bin/xy.d.ts +3 -0
  504. package/dist/bin/xy.d.ts.map +1 -0
  505. package/dist/bin/xy.mjs +47963 -0
  506. package/dist/bin/xy.mjs.map +1 -0
  507. package/dist/index.d.ts +6 -0
  508. package/dist/index.d.ts.map +1 -0
  509. package/dist/lib/bundledCliPath.d.ts +4 -0
  510. package/dist/lib/bundledCliPath.d.ts.map +1 -0
  511. package/dist/lib/checkResult.d.ts +2 -0
  512. package/dist/lib/checkResult.d.ts.map +1 -0
  513. package/dist/lib/claudeMdTemplate.d.ts +12 -0
  514. package/dist/lib/claudeMdTemplate.d.ts.map +1 -0
  515. package/dist/lib/concurrency.d.ts +5 -0
  516. package/dist/lib/concurrency.d.ts.map +1 -0
  517. package/dist/lib/copyAssetFiles.d.ts +10 -0
  518. package/dist/lib/copyAssetFiles.d.ts.map +1 -0
  519. package/dist/lib/createBuildConfig.d.ts +2 -0
  520. package/dist/lib/createBuildConfig.d.ts.map +1 -0
  521. package/dist/lib/crossSpawn.d.ts +6 -0
  522. package/dist/lib/crossSpawn.d.ts.map +1 -0
  523. package/dist/lib/deepMerge.d.ts +24 -0
  524. package/dist/lib/deepMerge.d.ts.map +1 -0
  525. package/dist/lib/defaultBuildConfig.d.ts +9 -0
  526. package/dist/lib/defaultBuildConfig.d.ts.map +1 -0
  527. package/dist/lib/deleteGlob.d.ts +2 -0
  528. package/dist/lib/deleteGlob.d.ts.map +1 -0
  529. package/dist/lib/dependencies/DuplicateDetector.d.ts +7 -0
  530. package/dist/lib/dependencies/DuplicateDetector.d.ts.map +1 -0
  531. package/dist/lib/dependencies/detectDuplicateDependencies.d.ts +2 -0
  532. package/dist/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -0
  533. package/dist/lib/dependencies/index.d.ts +4 -0
  534. package/dist/lib/dependencies/index.d.ts.map +1 -0
  535. package/dist/lib/dependencies/workspaceCycles.d.ts +15 -0
  536. package/dist/lib/dependencies/workspaceCycles.d.ts.map +1 -0
  537. package/dist/lib/deprecationMigrate.d.ts +2 -0
  538. package/dist/lib/deprecationMigrate.d.ts.map +1 -0
  539. package/dist/lib/eslintCache.d.ts +4 -0
  540. package/dist/lib/eslintCache.d.ts.map +1 -0
  541. package/dist/lib/file/ReadFileSyncOptions.d.ts +6 -0
  542. package/dist/lib/file/ReadFileSyncOptions.d.ts.map +1 -0
  543. package/dist/lib/file/constants.d.ts +3 -0
  544. package/dist/lib/file/constants.d.ts.map +1 -0
  545. package/dist/lib/file/fileLines.d.ts +6 -0
  546. package/dist/lib/file/fileLines.d.ts.map +1 -0
  547. package/dist/lib/file/index.d.ts +5 -0
  548. package/dist/lib/file/index.d.ts.map +1 -0
  549. package/dist/lib/file/tryReadFileSync.d.ts +4 -0
  550. package/dist/lib/file/tryReadFileSync.d.ts.map +1 -0
  551. package/dist/lib/fillTemplate.d.ts +2 -0
  552. package/dist/lib/fillTemplate.d.ts.map +1 -0
  553. package/dist/lib/generateIgnoreFiles.d.ts +2 -0
  554. package/dist/lib/generateIgnoreFiles.d.ts.map +1 -0
  555. package/dist/lib/gitConfig.d.ts +25 -0
  556. package/dist/lib/gitConfig.d.ts.map +1 -0
  557. package/dist/lib/gitignoreTemplate.d.ts +2 -0
  558. package/dist/lib/gitignoreTemplate.d.ts.map +1 -0
  559. package/dist/lib/index.d.ts +45 -0
  560. package/dist/lib/index.d.ts.map +1 -0
  561. package/dist/lib/initCwd.d.ts +2 -0
  562. package/dist/lib/initCwd.d.ts.map +1 -0
  563. package/dist/lib/jsonFormatters.d.ts +2 -0
  564. package/dist/lib/jsonFormatters.d.ts.map +1 -0
  565. package/dist/lib/latestVersions.d.ts +8 -0
  566. package/dist/lib/latestVersions.d.ts.map +1 -0
  567. package/dist/lib/loadConfig.d.ts +10 -0
  568. package/dist/lib/loadConfig.d.ts.map +1 -0
  569. package/dist/lib/match.d.ts +21 -0
  570. package/dist/lib/match.d.ts.map +1 -0
  571. package/dist/lib/npmLatestVersion.d.ts +3 -0
  572. package/dist/lib/npmLatestVersion.d.ts.map +1 -0
  573. package/dist/lib/packageManagerRuntime.d.ts +25 -0
  574. package/dist/lib/packageManagerRuntime.d.ts.map +1 -0
  575. package/dist/lib/packageName.d.ts +2 -0
  576. package/dist/lib/packageName.d.ts.map +1 -0
  577. package/dist/lib/parsedPackageJSON.d.ts +2 -0
  578. package/dist/lib/parsedPackageJSON.d.ts.map +1 -0
  579. package/dist/lib/parsedPackageJson.d.ts +2 -0
  580. package/dist/lib/parsedPackageJson.d.ts.map +1 -0
  581. package/dist/lib/pnpmConfig/index.d.ts +2 -0
  582. package/dist/lib/pnpmConfig/index.d.ts.map +1 -0
  583. package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +18 -0
  584. package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -0
  585. package/dist/lib/processEx.d.ts +2 -0
  586. package/dist/lib/processEx.d.ts.map +1 -0
  587. package/dist/lib/repoTemplates.d.ts +7 -0
  588. package/dist/lib/repoTemplates.d.ts.map +1 -0
  589. package/dist/lib/reporting/index.d.ts +3 -0
  590. package/dist/lib/reporting/index.d.ts.map +1 -0
  591. package/dist/lib/reporting/runWithEnvelope.d.ts +15 -0
  592. package/dist/lib/reporting/runWithEnvelope.d.ts.map +1 -0
  593. package/dist/lib/reporting/xyReporter.d.ts +27 -0
  594. package/dist/lib/reporting/xyReporter.d.ts.map +1 -0
  595. package/dist/lib/runInstall.d.ts +2 -0
  596. package/dist/lib/runInstall.d.ts.map +1 -0
  597. package/dist/lib/runSteps.d.ts +3 -0
  598. package/dist/lib/runSteps.d.ts.map +1 -0
  599. package/dist/lib/runStepsAsync.d.ts +4 -0
  600. package/dist/lib/runStepsAsync.d.ts.map +1 -0
  601. package/dist/lib/runXy.d.ts +2 -0
  602. package/dist/lib/runXy.d.ts.map +1 -0
  603. package/dist/lib/runXyWithWarning.d.ts +2 -0
  604. package/dist/lib/runXyWithWarning.d.ts.map +1 -0
  605. package/dist/lib/safeExit.d.ts +8 -0
  606. package/dist/lib/safeExit.d.ts.map +1 -0
  607. package/dist/lib/secure/classify.d.ts +8 -0
  608. package/dist/lib/secure/classify.d.ts.map +1 -0
  609. package/dist/lib/secure/collectDeclaredDependencies.d.ts +6 -0
  610. package/dist/lib/secure/collectDeclaredDependencies.d.ts.map +1 -0
  611. package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts +8 -0
  612. package/dist/lib/secure/fetchPackageSecurityMetadata.d.ts.map +1 -0
  613. package/dist/lib/secure/index.d.ts +7 -0
  614. package/dist/lib/secure/index.d.ts.map +1 -0
  615. package/dist/lib/secure/interfaces.d.ts +35 -0
  616. package/dist/lib/secure/interfaces.d.ts.map +1 -0
  617. package/dist/lib/secure/renderSecurityAudit.d.ts +4 -0
  618. package/dist/lib/secure/renderSecurityAudit.d.ts.map +1 -0
  619. package/dist/lib/secure/runSecurityAudit.d.ts +15 -0
  620. package/dist/lib/secure/runSecurityAudit.d.ts.map +1 -0
  621. package/dist/lib/shouldRunInstall.d.ts +2 -0
  622. package/dist/lib/shouldRunInstall.d.ts.map +1 -0
  623. package/dist/lib/string/empty.d.ts +3 -0
  624. package/dist/lib/string/empty.d.ts.map +1 -0
  625. package/dist/lib/string/index.d.ts +4 -0
  626. package/dist/lib/string/index.d.ts.map +1 -0
  627. package/dist/lib/string/localeCompare.d.ts +2 -0
  628. package/dist/lib/string/localeCompare.d.ts.map +1 -0
  629. package/dist/lib/string/union.d.ts +2 -0
  630. package/dist/lib/string/union.d.ts.map +1 -0
  631. package/dist/lib/toolchainVersion.d.ts +3 -0
  632. package/dist/lib/toolchainVersion.d.ts.map +1 -0
  633. package/dist/lib/tryRunLocalScript.d.ts +10 -0
  634. package/dist/lib/tryRunLocalScript.d.ts.map +1 -0
  635. package/dist/lib/updo/applyUpdates.d.ts +4 -0
  636. package/dist/lib/updo/applyUpdates.d.ts.map +1 -0
  637. package/dist/lib/updo/collectWorkspaceDeps.d.ts +4 -0
  638. package/dist/lib/updo/collectWorkspaceDeps.d.ts.map +1 -0
  639. package/dist/lib/updo/fetchRegistryInfo.d.ts +37 -0
  640. package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -0
  641. package/dist/lib/updo/index.d.ts +9 -0
  642. package/dist/lib/updo/index.d.ts.map +1 -0
  643. package/dist/lib/updo/interactiveSelect.d.ts +31 -0
  644. package/dist/lib/updo/interactiveSelect.d.ts.map +1 -0
  645. package/dist/lib/updo/interfaces.d.ts +50 -0
  646. package/dist/lib/updo/interfaces.d.ts.map +1 -0
  647. package/dist/lib/updo/renderTable.d.ts +3 -0
  648. package/dist/lib/updo/renderTable.d.ts.map +1 -0
  649. package/dist/lib/updo/resolveVersions.d.ts +19 -0
  650. package/dist/lib/updo/resolveVersions.d.ts.map +1 -0
  651. package/dist/lib/updo/runUpdo.d.ts +27 -0
  652. package/dist/lib/updo/runUpdo.d.ts.map +1 -0
  653. package/dist/lib/withErrnoException.d.ts +2 -0
  654. package/dist/lib/withErrnoException.d.ts.map +1 -0
  655. package/dist/lib/withError.d.ts +2 -0
  656. package/dist/lib/withError.d.ts.map +1 -0
  657. package/dist/lib/yarn/index.d.ts +3 -0
  658. package/dist/lib/yarn/index.d.ts.map +1 -0
  659. package/dist/lib/yarn/isYarnVersionOrGreater.d.ts +2 -0
  660. package/dist/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -0
  661. package/dist/lib/yarn/workspace/Workspace.d.ts +2 -0
  662. package/dist/lib/yarn/workspace/Workspace.d.ts.map +1 -0
  663. package/dist/lib/yarn/workspace/index.d.ts +3 -0
  664. package/dist/lib/yarn/workspace/index.d.ts.map +1 -0
  665. package/dist/lib/yarn/workspace/yarnWorkspace.d.ts +3 -0
  666. package/dist/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -0
  667. package/dist/lib/yarn/workspace/yarnWorkspaces.d.ts +3 -0
  668. package/dist/lib/yarn/workspace/yarnWorkspaces.d.ts.map +1 -0
  669. package/dist/lib/yarn/yarnInitCwd.d.ts +2 -0
  670. package/dist/lib/yarn/yarnInitCwd.d.ts.map +1 -0
  671. package/dist/loadPackageConfig.d.ts +40 -0
  672. package/dist/loadPackageConfig.d.ts.map +1 -0
  673. package/dist/node/actions/analyze.d.ts +2 -0
  674. package/dist/node/actions/analyze.d.ts.map +1 -0
  675. package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts +28 -0
  676. package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -0
  677. package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts +11 -0
  678. package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -0
  679. package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts +19 -0
  680. package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -0
  681. package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts +7 -0
  682. package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts.map +1 -0
  683. package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts +21 -0
  684. package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -0
  685. package/dist/node/actions/api-exposure/analyzer/program.d.ts +21 -0
  686. package/dist/node/actions/api-exposure/analyzer/program.d.ts.map +1 -0
  687. package/dist/node/actions/api-exposure/apiExposure.d.ts +17 -0
  688. package/dist/node/actions/api-exposure/apiExposure.d.ts.map +1 -0
  689. package/dist/node/actions/api-exposure/config.d.ts +21 -0
  690. package/dist/node/actions/api-exposure/config.d.ts.map +1 -0
  691. package/dist/node/actions/api-exposure/index.d.ts +9 -0
  692. package/dist/node/actions/api-exposure/index.d.ts.map +1 -0
  693. package/dist/node/actions/api-exposure/reporters.d.ts +16 -0
  694. package/dist/node/actions/api-exposure/reporters.d.ts.map +1 -0
  695. package/dist/node/actions/api-exposure/rules.d.ts +10 -0
  696. package/dist/node/actions/api-exposure/rules.d.ts.map +1 -0
  697. package/dist/node/actions/api-exposure/scoring.d.ts +28 -0
  698. package/dist/node/actions/api-exposure/scoring.d.ts.map +1 -0
  699. package/dist/node/actions/api-exposure/types.d.ts +86 -0
  700. package/dist/node/actions/api-exposure/types.d.ts.map +1 -0
  701. package/dist/node/actions/barrel/analyzeBarrel.d.ts +22 -0
  702. package/dist/node/actions/barrel/analyzeBarrel.d.ts.map +1 -0
  703. package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts +12 -0
  704. package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts.map +1 -0
  705. package/dist/node/actions/barrel/getReExportSpecs.d.ts +11 -0
  706. package/dist/node/actions/barrel/getReExportSpecs.d.ts.map +1 -0
  707. package/dist/node/actions/barrel/index.d.ts +6 -0
  708. package/dist/node/actions/barrel/index.d.ts.map +1 -0
  709. package/dist/node/actions/barrel/resolveBarrel.d.ts +9 -0
  710. package/dist/node/actions/barrel/resolveBarrel.d.ts.map +1 -0
  711. package/dist/node/actions/barrel/restrictionHelpers.d.ts +30 -0
  712. package/dist/node/actions/barrel/restrictionHelpers.d.ts.map +1 -0
  713. package/dist/node/actions/build.d.ts +9 -0
  714. package/dist/node/actions/build.d.ts.map +1 -0
  715. package/dist/node/actions/clean-eslint.d.ts +3 -0
  716. package/dist/node/actions/clean-eslint.d.ts.map +1 -0
  717. package/dist/node/actions/clean.d.ts +14 -0
  718. package/dist/node/actions/clean.d.ts.map +1 -0
  719. package/dist/node/actions/compile.d.ts +45 -0
  720. package/dist/node/actions/compile.d.ts.map +1 -0
  721. package/dist/node/actions/copy-assets.d.ts +6 -0
  722. package/dist/node/actions/copy-assets.d.ts.map +1 -0
  723. package/dist/node/actions/dead/analyzePackage.d.ts +43 -0
  724. package/dist/node/actions/dead/analyzePackage.d.ts.map +1 -0
  725. package/dist/node/actions/dead/classifyPackageVisibility.d.ts +4 -0
  726. package/dist/node/actions/dead/classifyPackageVisibility.d.ts.map +1 -0
  727. package/dist/node/actions/dead/collectExternalUsage.d.ts +38 -0
  728. package/dist/node/actions/dead/collectExternalUsage.d.ts.map +1 -0
  729. package/dist/node/actions/dead/collectSymbols.d.ts +40 -0
  730. package/dist/node/actions/dead/collectSymbols.d.ts.map +1 -0
  731. package/dist/node/actions/dead/dead.d.ts +4 -0
  732. package/dist/node/actions/dead/dead.d.ts.map +1 -0
  733. package/dist/node/actions/dead/deprecation.d.ts +3 -0
  734. package/dist/node/actions/dead/deprecation.d.ts.map +1 -0
  735. package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts +7 -0
  736. package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts.map +1 -0
  737. package/dist/node/actions/dead/evaluateRules.d.ts +8 -0
  738. package/dist/node/actions/dead/evaluateRules.d.ts.map +1 -0
  739. package/dist/node/actions/dead/findWorkspaceFile.d.ts +13 -0
  740. package/dist/node/actions/dead/findWorkspaceFile.d.ts.map +1 -0
  741. package/dist/node/actions/dead/fixDeadCode.d.ts +12 -0
  742. package/dist/node/actions/dead/fixDeadCode.d.ts.map +1 -0
  743. package/dist/node/actions/dead/index.d.ts +10 -0
  744. package/dist/node/actions/dead/index.d.ts.map +1 -0
  745. package/dist/node/actions/dead/parseCodeWorkspace.d.ts +7 -0
  746. package/dist/node/actions/dead/parseCodeWorkspace.d.ts.map +1 -0
  747. package/dist/node/actions/dead/propagateExternalUsage.d.ts +4 -0
  748. package/dist/node/actions/dead/propagateExternalUsage.d.ts.map +1 -0
  749. package/dist/node/actions/dead/pruneDeadFiles.d.ts +7 -0
  750. package/dist/node/actions/dead/pruneDeadFiles.d.ts.map +1 -0
  751. package/dist/node/actions/dead/reporters.d.ts +6 -0
  752. package/dist/node/actions/dead/reporters.d.ts.map +1 -0
  753. package/dist/node/actions/dead/ruleConfig.d.ts +5 -0
  754. package/dist/node/actions/dead/ruleConfig.d.ts.map +1 -0
  755. package/dist/node/actions/dead/ruleNames.d.ts +4 -0
  756. package/dist/node/actions/dead/ruleNames.d.ts.map +1 -0
  757. package/dist/node/actions/dead/rules.d.ts +7 -0
  758. package/dist/node/actions/dead/rules.d.ts.map +1 -0
  759. package/dist/node/actions/dead/runDeadAnalysis.d.ts +25 -0
  760. package/dist/node/actions/dead/runDeadAnalysis.d.ts.map +1 -0
  761. package/dist/node/actions/dead/runtimeEntries.d.ts +23 -0
  762. package/dist/node/actions/dead/runtimeEntries.d.ts.map +1 -0
  763. package/dist/node/actions/dead/sourceEdits.d.ts +7 -0
  764. package/dist/node/actions/dead/sourceEdits.d.ts.map +1 -0
  765. package/dist/node/actions/dead/storybookConventions.d.ts +6 -0
  766. package/dist/node/actions/dead/storybookConventions.d.ts.map +1 -0
  767. package/dist/node/actions/dead/types.d.ts +68 -0
  768. package/dist/node/actions/dead/types.d.ts.map +1 -0
  769. package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts +17 -0
  770. package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -0
  771. package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts +19 -0
  772. package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +1 -0
  773. package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +11 -0
  774. package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +1 -0
  775. package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +21 -0
  776. package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +1 -0
  777. package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +6 -0
  778. package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +1 -0
  779. package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +24 -0
  780. package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +1 -0
  781. package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +74 -0
  782. package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -0
  783. package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts +12 -0
  784. package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +1 -0
  785. package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +7 -0
  786. package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +1 -0
  787. package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +6 -0
  788. package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +1 -0
  789. package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +21 -0
  790. package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +1 -0
  791. package/dist/node/actions/deplint/checkPackage/index.d.ts +13 -0
  792. package/dist/node/actions/deplint/checkPackage/index.d.ts.map +1 -0
  793. package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts +13 -0
  794. package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +1 -0
  795. package/dist/node/actions/deplint/deplint.d.ts +20 -0
  796. package/dist/node/actions/deplint/deplint.d.ts.map +1 -0
  797. package/dist/node/actions/deplint/engine.d.ts +15 -0
  798. package/dist/node/actions/deplint/engine.d.ts.map +1 -0
  799. package/dist/node/actions/deplint/fetchPackageManifest.d.ts +25 -0
  800. package/dist/node/actions/deplint/fetchPackageManifest.d.ts.map +1 -0
  801. package/dist/node/actions/deplint/findFiles.d.ts +6 -0
  802. package/dist/node/actions/deplint/findFiles.d.ts.map +1 -0
  803. package/dist/node/actions/deplint/findFilesByGlob.d.ts +2 -0
  804. package/dist/node/actions/deplint/findFilesByGlob.d.ts.map +1 -0
  805. package/dist/node/actions/deplint/fixer.d.ts +3 -0
  806. package/dist/node/actions/deplint/fixer.d.ts.map +1 -0
  807. package/dist/node/actions/deplint/getBasePackageName.d.ts +2 -0
  808. package/dist/node/actions/deplint/getBasePackageName.d.ts.map +1 -0
  809. package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +12 -0
  810. package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +1 -0
  811. package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts +9 -0
  812. package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts.map +1 -0
  813. package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts +10 -0
  814. package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts.map +1 -0
  815. package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts +12 -0
  816. package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -0
  817. package/dist/node/actions/deplint/getImportsFromFile.d.ts +4 -0
  818. package/dist/node/actions/deplint/getImportsFromFile.d.ts.map +1 -0
  819. package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts +10 -0
  820. package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts.map +1 -0
  821. package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts +8 -0
  822. package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts.map +1 -0
  823. package/dist/node/actions/deplint/getStorybookConfigImports.d.ts +3 -0
  824. package/dist/node/actions/deplint/getStorybookConfigImports.d.ts.map +1 -0
  825. package/dist/node/actions/deplint/implicitDevDependencies.d.ts +15 -0
  826. package/dist/node/actions/deplint/implicitDevDependencies.d.ts.map +1 -0
  827. package/dist/node/actions/deplint/index.d.ts +11 -0
  828. package/dist/node/actions/deplint/index.d.ts.map +1 -0
  829. package/dist/node/actions/deplint/isTerminalPackage.d.ts +25 -0
  830. package/dist/node/actions/deplint/isTerminalPackage.d.ts.map +1 -0
  831. package/dist/node/actions/deplint/loader.d.ts +4 -0
  832. package/dist/node/actions/deplint/loader.d.ts.map +1 -0
  833. package/dist/node/actions/deplint/packageEditor.d.ts +11 -0
  834. package/dist/node/actions/deplint/packageEditor.d.ts.map +1 -0
  835. package/dist/node/actions/deplint/packageJsonEditor.d.ts +97 -0
  836. package/dist/node/actions/deplint/packageJsonEditor.d.ts.map +1 -0
  837. package/dist/node/actions/deplint/peerRangeOptions.d.ts +10 -0
  838. package/dist/node/actions/deplint/peerRangeOptions.d.ts.map +1 -0
  839. package/dist/node/actions/deplint/reporters.d.ts +8 -0
  840. package/dist/node/actions/deplint/reporters.d.ts.map +1 -0
  841. package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts +24 -0
  842. package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -0
  843. package/dist/node/actions/deplint/ruleConfig.d.ts +5 -0
  844. package/dist/node/actions/deplint/ruleConfig.d.ts.map +1 -0
  845. package/dist/node/actions/deplint/rules.d.ts +4 -0
  846. package/dist/node/actions/deplint/rules.d.ts.map +1 -0
  847. package/dist/node/actions/deplint/rulesDiagnostic.d.ts +4 -0
  848. package/dist/node/actions/deplint/rulesDiagnostic.d.ts.map +1 -0
  849. package/dist/node/actions/deplint/rulesMisplaced.d.ts +4 -0
  850. package/dist/node/actions/deplint/rulesMisplaced.d.ts.map +1 -0
  851. package/dist/node/actions/deplint/snapshot.d.ts +22 -0
  852. package/dist/node/actions/deplint/snapshot.d.ts.map +1 -0
  853. package/dist/node/actions/deplint/tsScriptsAliases.d.ts +11 -0
  854. package/dist/node/actions/deplint/tsScriptsAliases.d.ts.map +1 -0
  855. package/dist/node/actions/deplint/types.d.ts +295 -0
  856. package/dist/node/actions/deplint/types.d.ts.map +1 -0
  857. package/dist/node/actions/deplint/versionMismatchFixes.d.ts +4 -0
  858. package/dist/node/actions/deplint/versionMismatchFixes.d.ts.map +1 -0
  859. package/dist/node/actions/deploy.d.ts +3 -0
  860. package/dist/node/actions/deploy.d.ts.map +1 -0
  861. package/dist/node/actions/eject.d.ts +2 -0
  862. package/dist/node/actions/eject.d.ts.map +1 -0
  863. package/dist/node/actions/fix.d.ts +7 -0
  864. package/dist/node/actions/fix.d.ts.map +1 -0
  865. package/dist/node/actions/gitignore.d.ts +4 -0
  866. package/dist/node/actions/gitignore.d.ts.map +1 -0
  867. package/dist/node/actions/gitlint-fix.d.ts +2 -0
  868. package/dist/node/actions/gitlint-fix.d.ts.map +1 -0
  869. package/dist/node/actions/gitlint.d.ts +2 -0
  870. package/dist/node/actions/gitlint.d.ts.map +1 -0
  871. package/dist/node/actions/incremental.d.ts +46 -0
  872. package/dist/node/actions/incremental.d.ts.map +1 -0
  873. package/dist/node/actions/index.d.ts +54 -0
  874. package/dist/node/actions/index.d.ts.map +1 -0
  875. package/dist/node/actions/install.d.ts +2 -0
  876. package/dist/node/actions/install.d.ts.map +1 -0
  877. package/dist/node/actions/license.d.ts +2 -0
  878. package/dist/node/actions/license.d.ts.map +1 -0
  879. package/dist/node/actions/lint-config.d.ts +16 -0
  880. package/dist/node/actions/lint-config.d.ts.map +1 -0
  881. package/dist/node/actions/lint-init.d.ts +16 -0
  882. package/dist/node/actions/lint-init.d.ts.map +1 -0
  883. package/dist/node/actions/lint.d.ts +36 -0
  884. package/dist/node/actions/lint.d.ts.map +1 -0
  885. package/dist/node/actions/lintNext.d.ts +14 -0
  886. package/dist/node/actions/lintNext.d.ts.map +1 -0
  887. package/dist/node/actions/lintNextWorker.d.ts +21 -0
  888. package/dist/node/actions/lintNextWorker.d.ts.map +1 -0
  889. package/dist/node/actions/lintTierAnalysis.d.ts +59 -0
  890. package/dist/node/actions/lintTierAnalysis.d.ts.map +1 -0
  891. package/dist/node/actions/lintlint.d.ts +13 -0
  892. package/dist/node/actions/lintlint.d.ts.map +1 -0
  893. package/dist/node/actions/node-lint.d.ts +19 -0
  894. package/dist/node/actions/node-lint.d.ts.map +1 -0
  895. package/dist/node/actions/npmignore-gen.d.ts +2 -0
  896. package/dist/node/actions/npmignore-gen.d.ts.map +1 -0
  897. package/dist/node/actions/orphan.d.ts +6 -0
  898. package/dist/node/actions/orphan.d.ts.map +1 -0
  899. package/dist/node/actions/package/clean-outputs.d.ts +6 -0
  900. package/dist/node/actions/package/clean-outputs.d.ts.map +1 -0
  901. package/dist/node/actions/package/clean-typescript.d.ts +3 -0
  902. package/dist/node/actions/package/clean-typescript.d.ts.map +1 -0
  903. package/dist/node/actions/package/clean.d.ts +3 -0
  904. package/dist/node/actions/package/clean.d.ts.map +1 -0
  905. package/dist/node/actions/package/compile/ApiExposureConfig.d.ts +58 -0
  906. package/dist/node/actions/package/compile/ApiExposureConfig.d.ts.map +1 -0
  907. package/dist/node/actions/package/compile/MonolithConfig.d.ts +85 -0
  908. package/dist/node/actions/package/compile/MonolithConfig.d.ts.map +1 -0
  909. package/dist/node/actions/package/compile/XyConfig.d.ts +462 -0
  910. package/dist/node/actions/package/compile/XyConfig.d.ts.map +1 -0
  911. package/dist/node/actions/package/compile/buildEntries.d.ts +3 -0
  912. package/dist/node/actions/package/compile/buildEntries.d.ts.map +1 -0
  913. package/dist/node/actions/package/compile/compile.d.ts +7 -0
  914. package/dist/node/actions/package/compile/compile.d.ts.map +1 -0
  915. package/dist/node/actions/package/compile/createProgramFromConfig.d.ts +25 -0
  916. package/dist/node/actions/package/compile/createProgramFromConfig.d.ts.map +1 -0
  917. package/dist/node/actions/package/compile/createTypescriptConfig.d.ts +29 -0
  918. package/dist/node/actions/package/compile/createTypescriptConfig.d.ts.map +1 -0
  919. package/dist/node/actions/package/compile/deepMerge.d.ts +4 -0
  920. package/dist/node/actions/package/compile/deepMerge.d.ts.map +1 -0
  921. package/dist/node/actions/package/compile/entryOutputName.d.ts +5 -0
  922. package/dist/node/actions/package/compile/entryOutputName.d.ts.map +1 -0
  923. package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts +5 -0
  924. package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts.map +1 -0
  925. package/dist/node/actions/package/compile/getCompilerOptions.d.ts +3 -0
  926. package/dist/node/actions/package/compile/getCompilerOptions.d.ts.map +1 -0
  927. package/dist/node/actions/package/compile/index.d.ts +16 -0
  928. package/dist/node/actions/package/compile/index.d.ts.map +1 -0
  929. package/dist/node/actions/package/compile/inputs.d.ts +2 -0
  930. package/dist/node/actions/package/compile/inputs.d.ts.map +1 -0
  931. package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts +14 -0
  932. package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -0
  933. package/dist/node/actions/package/compile/monolithCompileEntries.d.ts +20 -0
  934. package/dist/node/actions/package/compile/monolithCompileEntries.d.ts.map +1 -0
  935. package/dist/node/actions/package/compile/monolithCompileLayout.d.ts +42 -0
  936. package/dist/node/actions/package/compile/monolithCompileLayout.d.ts.map +1 -0
  937. package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts +18 -0
  938. package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts.map +1 -0
  939. package/dist/node/actions/package/compile/packageCompileMonolith.d.ts +10 -0
  940. package/dist/node/actions/package/compile/packageCompileMonolith.d.ts.map +1 -0
  941. package/dist/node/actions/package/compile/packageCompileTsc.d.ts +3 -0
  942. package/dist/node/actions/package/compile/packageCompileTsc.d.ts.map +1 -0
  943. package/dist/node/actions/package/compile/packageCompileTsup.d.ts +6 -0
  944. package/dist/node/actions/package/compile/packageCompileTsup.d.ts.map +1 -0
  945. package/dist/node/actions/package/compile/packageCompileVendor.d.ts +4 -0
  946. package/dist/node/actions/package/compile/packageCompileVendor.d.ts.map +1 -0
  947. package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts +13 -0
  948. package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts.map +1 -0
  949. package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts +23 -0
  950. package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts.map +1 -0
  951. package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts +5 -0
  952. package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts.map +1 -0
  953. package/dist/node/actions/package/compile/runTsc.d.ts +2 -0
  954. package/dist/node/actions/package/compile/runTsc.d.ts.map +1 -0
  955. package/dist/node/actions/package/compile/validateFullPackage.d.ts +2 -0
  956. package/dist/node/actions/package/compile/validateFullPackage.d.ts.map +1 -0
  957. package/dist/node/actions/package/compile/vendorCompile.d.ts +6 -0
  958. package/dist/node/actions/package/compile/vendorCompile.d.ts.map +1 -0
  959. package/dist/node/actions/package/compile/vendorCompileEmit.d.ts +8 -0
  960. package/dist/node/actions/package/compile/vendorCompileEmit.d.ts.map +1 -0
  961. package/dist/node/actions/package/compile/vendorCompileInternals.d.ts +31 -0
  962. package/dist/node/actions/package/compile/vendorCompileInternals.d.ts.map +1 -0
  963. package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts +3 -0
  964. package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts.map +1 -0
  965. package/dist/node/actions/package/compile/vendorCompileTypes.d.ts +31 -0
  966. package/dist/node/actions/package/compile/vendorCompileTypes.d.ts.map +1 -0
  967. package/dist/node/actions/package/compileTargetsPublint.d.ts +13 -0
  968. package/dist/node/actions/package/compileTargetsPublint.d.ts.map +1 -0
  969. package/dist/node/actions/package/copy-assets.d.ts +5 -0
  970. package/dist/node/actions/package/copy-assets.d.ts.map +1 -0
  971. package/dist/node/actions/package/expectedCompileOutputs.d.ts +11 -0
  972. package/dist/node/actions/package/expectedCompileOutputs.d.ts.map +1 -0
  973. package/dist/node/actions/package/exportConditionPublint.d.ts +9 -0
  974. package/dist/node/actions/package/exportConditionPublint.d.ts.map +1 -0
  975. package/dist/node/actions/package/exportMapPublint.d.ts +7 -0
  976. package/dist/node/actions/package/exportMapPublint.d.ts.map +1 -0
  977. package/dist/node/actions/package/index.d.ts +9 -0
  978. package/dist/node/actions/package/index.d.ts.map +1 -0
  979. package/dist/node/actions/package/lint.d.ts +2 -0
  980. package/dist/node/actions/package/lint.d.ts.map +1 -0
  981. package/dist/node/actions/package/platformPublint.d.ts +7 -0
  982. package/dist/node/actions/package/platformPublint.d.ts.map +1 -0
  983. package/dist/node/actions/package/publint.d.ts +16 -0
  984. package/dist/node/actions/package/publint.d.ts.map +1 -0
  985. package/dist/node/actions/package/recompile.d.ts +3 -0
  986. package/dist/node/actions/package/recompile.d.ts.map +1 -0
  987. package/dist/node/actions/package-lint-deps.d.ts +47 -0
  988. package/dist/node/actions/package-lint-deps.d.ts.map +1 -0
  989. package/dist/node/actions/package-lint-engines.d.ts +22 -0
  990. package/dist/node/actions/package-lint-engines.d.ts.map +1 -0
  991. package/dist/node/actions/package-lint-pnpm.d.ts +11 -0
  992. package/dist/node/actions/package-lint-pnpm.d.ts.map +1 -0
  993. package/dist/node/actions/package-lint-specs.d.ts +9 -0
  994. package/dist/node/actions/package-lint-specs.d.ts.map +1 -0
  995. package/dist/node/actions/package-lint.d.ts +7 -0
  996. package/dist/node/actions/package-lint.d.ts.map +1 -0
  997. package/dist/node/actions/packman/clean.d.ts +5 -0
  998. package/dist/node/actions/packman/clean.d.ts.map +1 -0
  999. package/dist/node/actions/packman/convert.d.ts +10 -0
  1000. package/dist/node/actions/packman/convert.d.ts.map +1 -0
  1001. package/dist/node/actions/packman/convertToBun.d.ts +2 -0
  1002. package/dist/node/actions/packman/convertToBun.d.ts.map +1 -0
  1003. package/dist/node/actions/packman/convertToNpm.d.ts +2 -0
  1004. package/dist/node/actions/packman/convertToNpm.d.ts.map +1 -0
  1005. package/dist/node/actions/packman/convertToPnpm.d.ts +2 -0
  1006. package/dist/node/actions/packman/convertToPnpm.d.ts.map +1 -0
  1007. package/dist/node/actions/packman/convertToYarn.d.ts +2 -0
  1008. package/dist/node/actions/packman/convertToYarn.d.ts.map +1 -0
  1009. package/dist/node/actions/packman/index.d.ts +5 -0
  1010. package/dist/node/actions/packman/index.d.ts.map +1 -0
  1011. package/dist/node/actions/packman/lint.d.ts +6 -0
  1012. package/dist/node/actions/packman/lint.d.ts.map +1 -0
  1013. package/dist/node/actions/packman/rewriteScripts.d.ts +5 -0
  1014. package/dist/node/actions/packman/rewriteScripts.d.ts.map +1 -0
  1015. package/dist/node/actions/packman/rewriteSourceImports.d.ts +2 -0
  1016. package/dist/node/actions/packman/rewriteSourceImports.d.ts.map +1 -0
  1017. package/dist/node/actions/packman/swapTsScriptsDependency.d.ts +2 -0
  1018. package/dist/node/actions/packman/swapTsScriptsDependency.d.ts.map +1 -0
  1019. package/dist/node/actions/publint.d.ts +48 -0
  1020. package/dist/node/actions/publint.d.ts.map +1 -0
  1021. package/dist/node/actions/publish.d.ts +22 -0
  1022. package/dist/node/actions/publish.d.ts.map +1 -0
  1023. package/dist/node/actions/reactTest.d.ts +2 -0
  1024. package/dist/node/actions/reactTest.d.ts.map +1 -0
  1025. package/dist/node/actions/rebuild.d.ts +7 -0
  1026. package/dist/node/actions/rebuild.d.ts.map +1 -0
  1027. package/dist/node/actions/recompile.d.ts +16 -0
  1028. package/dist/node/actions/recompile.d.ts.map +1 -0
  1029. package/dist/node/actions/reinstall.d.ts +2 -0
  1030. package/dist/node/actions/reinstall.d.ts.map +1 -0
  1031. package/dist/node/actions/releaseAgeExcludeScopes.d.ts +13 -0
  1032. package/dist/node/actions/releaseAgeExcludeScopes.d.ts.map +1 -0
  1033. package/dist/node/actions/relint.d.ts +24 -0
  1034. package/dist/node/actions/relint.d.ts.map +1 -0
  1035. package/dist/node/actions/repo-init.d.ts +14 -0
  1036. package/dist/node/actions/repo-init.d.ts.map +1 -0
  1037. package/dist/node/actions/republint.d.ts +13 -0
  1038. package/dist/node/actions/republint.d.ts.map +1 -0
  1039. package/dist/node/actions/result.d.ts +44 -0
  1040. package/dist/node/actions/result.d.ts.map +1 -0
  1041. package/dist/node/actions/retest.d.ts +5 -0
  1042. package/dist/node/actions/retest.d.ts.map +1 -0
  1043. package/dist/node/actions/secure.d.ts +7 -0
  1044. package/dist/node/actions/secure.d.ts.map +1 -0
  1045. package/dist/node/actions/sitemap.d.ts +2 -0
  1046. package/dist/node/actions/sitemap.d.ts.map +1 -0
  1047. package/dist/node/actions/skills/defaults.d.ts +6 -0
  1048. package/dist/node/actions/skills/defaults.d.ts.map +1 -0
  1049. package/dist/node/actions/skills/detectProfile.d.ts +10 -0
  1050. package/dist/node/actions/skills/detectProfile.d.ts.map +1 -0
  1051. package/dist/node/actions/skills/index.d.ts +9 -0
  1052. package/dist/node/actions/skills/index.d.ts.map +1 -0
  1053. package/dist/node/actions/skills/installed.d.ts +10 -0
  1054. package/dist/node/actions/skills/installed.d.ts.map +1 -0
  1055. package/dist/node/actions/skills/lint.d.ts +26 -0
  1056. package/dist/node/actions/skills/lint.d.ts.map +1 -0
  1057. package/dist/node/actions/skills/passthrough.d.ts +25 -0
  1058. package/dist/node/actions/skills/passthrough.d.ts.map +1 -0
  1059. package/dist/node/actions/skills/skillRules.d.ts +9 -0
  1060. package/dist/node/actions/skills/skillRules.d.ts.map +1 -0
  1061. package/dist/node/actions/skills/updo.d.ts +4 -0
  1062. package/dist/node/actions/skills/updo.d.ts.map +1 -0
  1063. package/dist/node/actions/skills/versions.d.ts +10 -0
  1064. package/dist/node/actions/skills/versions.d.ts.map +1 -0
  1065. package/dist/node/actions/sonar.d.ts +2 -0
  1066. package/dist/node/actions/sonar.d.ts.map +1 -0
  1067. package/dist/node/actions/start.d.ts +2 -0
  1068. package/dist/node/actions/start.d.ts.map +1 -0
  1069. package/dist/node/actions/statics.d.ts +2 -0
  1070. package/dist/node/actions/statics.d.ts.map +1 -0
  1071. package/dist/node/actions/test.d.ts +5 -0
  1072. package/dist/node/actions/test.d.ts.map +1 -0
  1073. package/dist/node/actions/tsc-validate/index.d.ts +3 -0
  1074. package/dist/node/actions/tsc-validate/index.d.ts.map +1 -0
  1075. package/dist/node/actions/tsc-validate/sharedValidate.d.ts +34 -0
  1076. package/dist/node/actions/tsc-validate/sharedValidate.d.ts.map +1 -0
  1077. package/dist/node/actions/tsc-validate/tscValidate.d.ts +35 -0
  1078. package/dist/node/actions/tsc-validate/tscValidate.d.ts.map +1 -0
  1079. package/dist/node/actions/up.d.ts +2 -0
  1080. package/dist/node/actions/up.d.ts.map +1 -0
  1081. package/dist/node/actions/updo.d.ts +9 -0
  1082. package/dist/node/actions/updo.d.ts.map +1 -0
  1083. package/dist/node/actions/work/id.d.ts +8 -0
  1084. package/dist/node/actions/work/id.d.ts.map +1 -0
  1085. package/dist/node/actions/work/index.d.ts +131 -0
  1086. package/dist/node/actions/work/index.d.ts.map +1 -0
  1087. package/dist/node/actions/work/inline.d.ts +8 -0
  1088. package/dist/node/actions/work/inline.d.ts.map +1 -0
  1089. package/dist/node/actions/work/priority.d.ts +5 -0
  1090. package/dist/node/actions/work/priority.d.ts.map +1 -0
  1091. package/dist/node/actions/work/schema.d.ts +81 -0
  1092. package/dist/node/actions/work/schema.d.ts.map +1 -0
  1093. package/dist/node/actions/work/store.d.ts +23 -0
  1094. package/dist/node/actions/work/store.d.ts.map +1 -0
  1095. package/dist/node/bin/package/build.d.ts +3 -0
  1096. package/dist/node/bin/package/build.d.ts.map +1 -0
  1097. package/dist/node/bin/package/clean-outputs.d.ts +3 -0
  1098. package/dist/node/bin/package/clean-outputs.d.ts.map +1 -0
  1099. package/dist/node/bin/package/clean-typescript.d.ts +3 -0
  1100. package/dist/node/bin/package/clean-typescript.d.ts.map +1 -0
  1101. package/dist/node/bin/package/clean.d.ts +3 -0
  1102. package/dist/node/bin/package/clean.d.ts.map +1 -0
  1103. package/dist/node/bin/package/compile-tsup.d.ts +3 -0
  1104. package/dist/node/bin/package/compile-tsup.d.ts.map +1 -0
  1105. package/dist/node/bin/package/compile.d.ts +3 -0
  1106. package/dist/node/bin/package/compile.d.ts.map +1 -0
  1107. package/dist/node/bin/package/copy-assets-cjs.d.ts +3 -0
  1108. package/dist/node/bin/package/copy-assets-cjs.d.ts.map +1 -0
  1109. package/dist/node/bin/package/copy-assets-esm.d.ts +3 -0
  1110. package/dist/node/bin/package/copy-assets-esm.d.ts.map +1 -0
  1111. package/dist/node/bin/package/fix.d.ts +3 -0
  1112. package/dist/node/bin/package/fix.d.ts.map +1 -0
  1113. package/dist/node/bin/package/lint-verbose.d.ts +3 -0
  1114. package/dist/node/bin/package/lint-verbose.d.ts.map +1 -0
  1115. package/dist/node/bin/package/lint.d.ts +3 -0
  1116. package/dist/node/bin/package/lint.d.ts.map +1 -0
  1117. package/dist/node/bin/package/publint.d.ts +3 -0
  1118. package/dist/node/bin/package/publint.d.ts.map +1 -0
  1119. package/dist/node/bin/package/recompile.d.ts +3 -0
  1120. package/dist/node/bin/package/recompile.d.ts.map +1 -0
  1121. package/dist/node/bin/package/relint.d.ts +3 -0
  1122. package/dist/node/bin/package/relint.d.ts.map +1 -0
  1123. package/dist/node/bin/package/sync-layout.d.ts +3 -0
  1124. package/dist/node/bin/package/sync-layout.d.ts.map +1 -0
  1125. package/dist/node/bin/run-or-exec.d.ts +3 -0
  1126. package/dist/node/bin/run-or-exec.d.ts.map +1 -0
  1127. package/dist/node/bin/xy.d.ts +3 -0
  1128. package/dist/node/bin/xy.d.ts.map +1 -0
  1129. package/dist/node/index.d.ts +6 -0
  1130. package/dist/node/index.d.ts.map +1 -0
  1131. package/dist/node/lib/bundledCliPath.d.ts +4 -0
  1132. package/dist/node/lib/bundledCliPath.d.ts.map +1 -0
  1133. package/dist/node/lib/checkResult.d.ts +2 -0
  1134. package/dist/node/lib/checkResult.d.ts.map +1 -0
  1135. package/dist/node/lib/concurrency.d.ts +5 -0
  1136. package/dist/node/lib/concurrency.d.ts.map +1 -0
  1137. package/dist/node/lib/copyAssetFiles.d.ts +10 -0
  1138. package/dist/node/lib/copyAssetFiles.d.ts.map +1 -0
  1139. package/dist/node/lib/createBuildConfig.d.ts +2 -0
  1140. package/dist/node/lib/createBuildConfig.d.ts.map +1 -0
  1141. package/dist/node/lib/crossSpawn.d.ts +6 -0
  1142. package/dist/node/lib/crossSpawn.d.ts.map +1 -0
  1143. package/dist/node/lib/deepMerge.d.ts +24 -0
  1144. package/dist/node/lib/deepMerge.d.ts.map +1 -0
  1145. package/dist/node/lib/defaultBuildConfig.d.ts +9 -0
  1146. package/dist/node/lib/defaultBuildConfig.d.ts.map +1 -0
  1147. package/dist/node/lib/deleteGlob.d.ts +2 -0
  1148. package/dist/node/lib/deleteGlob.d.ts.map +1 -0
  1149. package/dist/node/lib/dependencies/DuplicateDetector.d.ts +7 -0
  1150. package/dist/node/lib/dependencies/DuplicateDetector.d.ts.map +1 -0
  1151. package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts +2 -0
  1152. package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -0
  1153. package/dist/node/lib/dependencies/index.d.ts +4 -0
  1154. package/dist/node/lib/dependencies/index.d.ts.map +1 -0
  1155. package/dist/node/lib/dependencies/workspaceCycles.d.ts +15 -0
  1156. package/dist/node/lib/dependencies/workspaceCycles.d.ts.map +1 -0
  1157. package/dist/node/lib/deprecationMigrate.d.ts +2 -0
  1158. package/dist/node/lib/deprecationMigrate.d.ts.map +1 -0
  1159. package/dist/node/lib/eslintCache.d.ts +4 -0
  1160. package/dist/node/lib/eslintCache.d.ts.map +1 -0
  1161. package/dist/node/lib/file/ReadFileSyncOptions.d.ts +6 -0
  1162. package/dist/node/lib/file/ReadFileSyncOptions.d.ts.map +1 -0
  1163. package/dist/node/lib/file/constants.d.ts +3 -0
  1164. package/dist/node/lib/file/constants.d.ts.map +1 -0
  1165. package/dist/node/lib/file/fileLines.d.ts +6 -0
  1166. package/dist/node/lib/file/fileLines.d.ts.map +1 -0
  1167. package/dist/node/lib/file/index.d.ts +5 -0
  1168. package/dist/node/lib/file/index.d.ts.map +1 -0
  1169. package/dist/node/lib/file/tryReadFileSync.d.ts +4 -0
  1170. package/dist/node/lib/file/tryReadFileSync.d.ts.map +1 -0
  1171. package/dist/node/lib/fillTemplate.d.ts +2 -0
  1172. package/dist/node/lib/fillTemplate.d.ts.map +1 -0
  1173. package/dist/node/lib/generateIgnoreFiles.d.ts +2 -0
  1174. package/dist/node/lib/generateIgnoreFiles.d.ts.map +1 -0
  1175. package/dist/node/lib/gitConfig.d.ts +25 -0
  1176. package/dist/node/lib/gitConfig.d.ts.map +1 -0
  1177. package/dist/node/lib/gitignoreTemplate.d.ts +2 -0
  1178. package/dist/node/lib/gitignoreTemplate.d.ts.map +1 -0
  1179. package/dist/node/lib/index.d.ts +45 -0
  1180. package/dist/node/lib/index.d.ts.map +1 -0
  1181. package/dist/node/lib/initCwd.d.ts +2 -0
  1182. package/dist/node/lib/initCwd.d.ts.map +1 -0
  1183. package/dist/node/lib/jsonFormatters.d.ts +2 -0
  1184. package/dist/node/lib/jsonFormatters.d.ts.map +1 -0
  1185. package/dist/node/lib/latestVersions.d.ts +8 -0
  1186. package/dist/node/lib/latestVersions.d.ts.map +1 -0
  1187. package/dist/node/lib/loadConfig.d.ts +10 -0
  1188. package/dist/node/lib/loadConfig.d.ts.map +1 -0
  1189. package/dist/node/lib/match.d.ts +21 -0
  1190. package/dist/node/lib/match.d.ts.map +1 -0
  1191. package/dist/node/lib/npmLatestVersion.d.ts +3 -0
  1192. package/dist/node/lib/npmLatestVersion.d.ts.map +1 -0
  1193. package/dist/node/lib/packageManagerRuntime.d.ts +25 -0
  1194. package/dist/node/lib/packageManagerRuntime.d.ts.map +1 -0
  1195. package/dist/node/lib/packageName.d.ts +2 -0
  1196. package/dist/node/lib/packageName.d.ts.map +1 -0
  1197. package/dist/node/lib/parsedPackageJson.d.ts +2 -0
  1198. package/dist/node/lib/parsedPackageJson.d.ts.map +1 -0
  1199. package/dist/node/lib/pnpmConfig/index.d.ts +2 -0
  1200. package/dist/node/lib/pnpmConfig/index.d.ts.map +1 -0
  1201. package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts +18 -0
  1202. package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -0
  1203. package/dist/node/lib/processEx.d.ts +2 -0
  1204. package/dist/node/lib/processEx.d.ts.map +1 -0
  1205. package/dist/node/lib/repoTemplates.d.ts +7 -0
  1206. package/dist/node/lib/repoTemplates.d.ts.map +1 -0
  1207. package/dist/node/lib/reporting/index.d.ts +3 -0
  1208. package/dist/node/lib/reporting/index.d.ts.map +1 -0
  1209. package/dist/node/lib/reporting/runWithEnvelope.d.ts +15 -0
  1210. package/dist/node/lib/reporting/runWithEnvelope.d.ts.map +1 -0
  1211. package/dist/node/lib/reporting/xyReporter.d.ts +27 -0
  1212. package/dist/node/lib/reporting/xyReporter.d.ts.map +1 -0
  1213. package/dist/node/lib/runSteps.d.ts +3 -0
  1214. package/dist/node/lib/runSteps.d.ts.map +1 -0
  1215. package/dist/node/lib/runStepsAsync.d.ts +4 -0
  1216. package/dist/node/lib/runStepsAsync.d.ts.map +1 -0
  1217. package/dist/node/lib/runXy.d.ts +2 -0
  1218. package/dist/node/lib/runXy.d.ts.map +1 -0
  1219. package/dist/node/lib/runXyWithWarning.d.ts +2 -0
  1220. package/dist/node/lib/runXyWithWarning.d.ts.map +1 -0
  1221. package/dist/node/lib/safeExit.d.ts +8 -0
  1222. package/dist/node/lib/safeExit.d.ts.map +1 -0
  1223. package/dist/node/lib/secure/classify.d.ts +8 -0
  1224. package/dist/node/lib/secure/classify.d.ts.map +1 -0
  1225. package/dist/node/lib/secure/collectDeclaredDependencies.d.ts +6 -0
  1226. package/dist/node/lib/secure/collectDeclaredDependencies.d.ts.map +1 -0
  1227. package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts +8 -0
  1228. package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts.map +1 -0
  1229. package/dist/node/lib/secure/index.d.ts +7 -0
  1230. package/dist/node/lib/secure/index.d.ts.map +1 -0
  1231. package/dist/node/lib/secure/interfaces.d.ts +35 -0
  1232. package/dist/node/lib/secure/interfaces.d.ts.map +1 -0
  1233. package/dist/node/lib/secure/renderSecurityAudit.d.ts +4 -0
  1234. package/dist/node/lib/secure/renderSecurityAudit.d.ts.map +1 -0
  1235. package/dist/node/lib/secure/runSecurityAudit.d.ts +15 -0
  1236. package/dist/node/lib/secure/runSecurityAudit.d.ts.map +1 -0
  1237. package/dist/node/lib/shouldRunInstall.d.ts +2 -0
  1238. package/dist/node/lib/shouldRunInstall.d.ts.map +1 -0
  1239. package/dist/node/lib/string/empty.d.ts +3 -0
  1240. package/dist/node/lib/string/empty.d.ts.map +1 -0
  1241. package/dist/node/lib/string/index.d.ts +4 -0
  1242. package/dist/node/lib/string/index.d.ts.map +1 -0
  1243. package/dist/node/lib/string/localeCompare.d.ts +2 -0
  1244. package/dist/node/lib/string/localeCompare.d.ts.map +1 -0
  1245. package/dist/node/lib/string/union.d.ts +2 -0
  1246. package/dist/node/lib/string/union.d.ts.map +1 -0
  1247. package/dist/node/lib/toolchainVersion.d.ts +3 -0
  1248. package/dist/node/lib/toolchainVersion.d.ts.map +1 -0
  1249. package/dist/node/lib/tryRunLocalScript.d.ts +10 -0
  1250. package/dist/node/lib/tryRunLocalScript.d.ts.map +1 -0
  1251. package/dist/node/lib/updo/applyUpdates.d.ts +4 -0
  1252. package/dist/node/lib/updo/applyUpdates.d.ts.map +1 -0
  1253. package/dist/node/lib/updo/collectWorkspaceDeps.d.ts +4 -0
  1254. package/dist/node/lib/updo/collectWorkspaceDeps.d.ts.map +1 -0
  1255. package/dist/node/lib/updo/fetchRegistryInfo.d.ts +37 -0
  1256. package/dist/node/lib/updo/fetchRegistryInfo.d.ts.map +1 -0
  1257. package/dist/node/lib/updo/index.d.ts +9 -0
  1258. package/dist/node/lib/updo/index.d.ts.map +1 -0
  1259. package/dist/node/lib/updo/interactiveSelect.d.ts +31 -0
  1260. package/dist/node/lib/updo/interactiveSelect.d.ts.map +1 -0
  1261. package/dist/node/lib/updo/interfaces.d.ts +50 -0
  1262. package/dist/node/lib/updo/interfaces.d.ts.map +1 -0
  1263. package/dist/node/lib/updo/renderTable.d.ts +3 -0
  1264. package/dist/node/lib/updo/renderTable.d.ts.map +1 -0
  1265. package/dist/node/lib/updo/resolveVersions.d.ts +19 -0
  1266. package/dist/node/lib/updo/resolveVersions.d.ts.map +1 -0
  1267. package/dist/node/lib/updo/runUpdo.d.ts +27 -0
  1268. package/dist/node/lib/updo/runUpdo.d.ts.map +1 -0
  1269. package/dist/node/lib/withErrnoException.d.ts +2 -0
  1270. package/dist/node/lib/withErrnoException.d.ts.map +1 -0
  1271. package/dist/node/lib/withError.d.ts +2 -0
  1272. package/dist/node/lib/withError.d.ts.map +1 -0
  1273. package/dist/node/lib/yarn/index.d.ts +3 -0
  1274. package/dist/node/lib/yarn/index.d.ts.map +1 -0
  1275. package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts +2 -0
  1276. package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -0
  1277. package/dist/node/lib/yarn/workspace/Workspace.d.ts +2 -0
  1278. package/dist/node/lib/yarn/workspace/Workspace.d.ts.map +1 -0
  1279. package/dist/node/lib/yarn/workspace/index.d.ts +3 -0
  1280. package/dist/node/lib/yarn/workspace/index.d.ts.map +1 -0
  1281. package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts +3 -0
  1282. package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -0
  1283. package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts +3 -0
  1284. package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts.map +1 -0
  1285. package/dist/node/loadPackageConfig.d.ts +40 -0
  1286. package/dist/node/loadPackageConfig.d.ts.map +1 -0
  1287. package/dist/node/pm/PackageManager.d.ts +85 -0
  1288. package/dist/node/pm/PackageManager.d.ts.map +1 -0
  1289. package/dist/node/pm/bunPackageManager.d.ts +20 -0
  1290. package/dist/node/pm/bunPackageManager.d.ts.map +1 -0
  1291. package/dist/node/pm/detectPackageManager.d.ts +3 -0
  1292. package/dist/node/pm/detectPackageManager.d.ts.map +1 -0
  1293. package/dist/node/pm/index.d.ts +11 -0
  1294. package/dist/node/pm/index.d.ts.map +1 -0
  1295. package/dist/node/pm/isReactProject.d.ts +3 -0
  1296. package/dist/node/pm/isReactProject.d.ts.map +1 -0
  1297. package/dist/node/pm/npmPackageManager.d.ts +20 -0
  1298. package/dist/node/pm/npmPackageManager.d.ts.map +1 -0
  1299. package/dist/node/pm/pnpmPackageManager.d.ts +20 -0
  1300. package/dist/node/pm/pnpmPackageManager.d.ts.map +1 -0
  1301. package/dist/node/pm/registry.d.ts +5 -0
  1302. package/dist/node/pm/registry.d.ts.map +1 -0
  1303. package/dist/node/pm/resolveWorkspace.d.ts +3 -0
  1304. package/dist/node/pm/resolveWorkspace.d.ts.map +1 -0
  1305. package/dist/node/pm/runtime.d.ts +2 -0
  1306. package/dist/node/pm/runtime.d.ts.map +1 -0
  1307. package/dist/node/pm/workspaces.d.ts +15 -0
  1308. package/dist/node/pm/workspaces.d.ts.map +1 -0
  1309. package/dist/node/pm/yarnPackageManager.d.ts +20 -0
  1310. package/dist/node/pm/yarnPackageManager.d.ts.map +1 -0
  1311. package/dist/node/xy/build/buildCommand.d.ts +3 -0
  1312. package/dist/node/xy/build/buildCommand.d.ts.map +1 -0
  1313. package/dist/node/xy/build/compileCommand.d.ts +3 -0
  1314. package/dist/node/xy/build/compileCommand.d.ts.map +1 -0
  1315. package/dist/node/xy/build/copyAssetsCommand.d.ts +3 -0
  1316. package/dist/node/xy/build/copyAssetsCommand.d.ts.map +1 -0
  1317. package/dist/node/xy/build/index.d.ts +3 -0
  1318. package/dist/node/xy/build/index.d.ts.map +1 -0
  1319. package/dist/node/xy/build/rebuildCommand.d.ts +3 -0
  1320. package/dist/node/xy/build/rebuildCommand.d.ts.map +1 -0
  1321. package/dist/node/xy/build/recompileCommand.d.ts +3 -0
  1322. package/dist/node/xy/build/recompileCommand.d.ts.map +1 -0
  1323. package/dist/node/xy/build/tscValidateCommand.d.ts +3 -0
  1324. package/dist/node/xy/build/tscValidateCommand.d.ts.map +1 -0
  1325. package/dist/node/xy/common/checkCommand.d.ts +3 -0
  1326. package/dist/node/xy/common/checkCommand.d.ts.map +1 -0
  1327. package/dist/node/xy/common/deadCommand.d.ts +3 -0
  1328. package/dist/node/xy/common/deadCommand.d.ts.map +1 -0
  1329. package/dist/node/xy/common/gitignoreCommand.d.ts +3 -0
  1330. package/dist/node/xy/common/gitignoreCommand.d.ts.map +1 -0
  1331. package/dist/node/xy/common/gitlintCommand.d.ts +3 -0
  1332. package/dist/node/xy/common/gitlintCommand.d.ts.map +1 -0
  1333. package/dist/node/xy/common/index.d.ts +3 -0
  1334. package/dist/node/xy/common/index.d.ts.map +1 -0
  1335. package/dist/node/xy/common/licenseCommand.d.ts +3 -0
  1336. package/dist/node/xy/common/licenseCommand.d.ts.map +1 -0
  1337. package/dist/node/xy/common/npmignoreGenCommand.d.ts +3 -0
  1338. package/dist/node/xy/common/npmignoreGenCommand.d.ts.map +1 -0
  1339. package/dist/node/xy/common/orphan/cleanCommand.d.ts +3 -0
  1340. package/dist/node/xy/common/orphan/cleanCommand.d.ts.map +1 -0
  1341. package/dist/node/xy/common/orphan/index.d.ts +3 -0
  1342. package/dist/node/xy/common/orphan/index.d.ts.map +1 -0
  1343. package/dist/node/xy/common/orphan/listCommand.d.ts +3 -0
  1344. package/dist/node/xy/common/orphan/listCommand.d.ts.map +1 -0
  1345. package/dist/node/xy/common/packmanCommand.d.ts +3 -0
  1346. package/dist/node/xy/common/packmanCommand.d.ts.map +1 -0
  1347. package/dist/node/xy/common/repo/index.d.ts +3 -0
  1348. package/dist/node/xy/common/repo/index.d.ts.map +1 -0
  1349. package/dist/node/xy/common/repo/initCommand.d.ts +3 -0
  1350. package/dist/node/xy/common/repo/initCommand.d.ts.map +1 -0
  1351. package/dist/node/xy/common/repo/lintCommand.d.ts +3 -0
  1352. package/dist/node/xy/common/repo/lintCommand.d.ts.map +1 -0
  1353. package/dist/node/xy/common/retestCommand.d.ts +3 -0
  1354. package/dist/node/xy/common/retestCommand.d.ts.map +1 -0
  1355. package/dist/node/xy/common/secureCommand.d.ts +3 -0
  1356. package/dist/node/xy/common/secureCommand.d.ts.map +1 -0
  1357. package/dist/node/xy/common/skills/index.d.ts +3 -0
  1358. package/dist/node/xy/common/skills/index.d.ts.map +1 -0
  1359. package/dist/node/xy/common/testCommand.d.ts +3 -0
  1360. package/dist/node/xy/common/testCommand.d.ts.map +1 -0
  1361. package/dist/node/xy/common/work/addCommand.d.ts +3 -0
  1362. package/dist/node/xy/common/work/addCommand.d.ts.map +1 -0
  1363. package/dist/node/xy/common/work/claimCommand.d.ts +3 -0
  1364. package/dist/node/xy/common/work/claimCommand.d.ts.map +1 -0
  1365. package/dist/node/xy/common/work/doneCommand.d.ts +3 -0
  1366. package/dist/node/xy/common/work/doneCommand.d.ts.map +1 -0
  1367. package/dist/node/xy/common/work/index.d.ts +3 -0
  1368. package/dist/node/xy/common/work/index.d.ts.map +1 -0
  1369. package/dist/node/xy/common/work/initCommand.d.ts +3 -0
  1370. package/dist/node/xy/common/work/initCommand.d.ts.map +1 -0
  1371. package/dist/node/xy/common/work/listCommand.d.ts +3 -0
  1372. package/dist/node/xy/common/work/listCommand.d.ts.map +1 -0
  1373. package/dist/node/xy/common/work/nextCommand.d.ts +3 -0
  1374. package/dist/node/xy/common/work/nextCommand.d.ts.map +1 -0
  1375. package/dist/node/xy/common/work/options.d.ts +5 -0
  1376. package/dist/node/xy/common/work/options.d.ts.map +1 -0
  1377. package/dist/node/xy/common/work/queueCommand.d.ts +3 -0
  1378. package/dist/node/xy/common/work/queueCommand.d.ts.map +1 -0
  1379. package/dist/node/xy/common/work/showCommand.d.ts +3 -0
  1380. package/dist/node/xy/common/work/showCommand.d.ts.map +1 -0
  1381. package/dist/node/xy/common/work/triageCommand.d.ts +3 -0
  1382. package/dist/node/xy/common/work/triageCommand.d.ts.map +1 -0
  1383. package/dist/node/xy/common/work/updateCommand.d.ts +3 -0
  1384. package/dist/node/xy/common/work/updateCommand.d.ts.map +1 -0
  1385. package/dist/node/xy/deploy/deployCommand.d.ts +3 -0
  1386. package/dist/node/xy/deploy/deployCommand.d.ts.map +1 -0
  1387. package/dist/node/xy/deploy/index.d.ts +3 -0
  1388. package/dist/node/xy/deploy/index.d.ts.map +1 -0
  1389. package/dist/node/xy/deploy/publishCommand.d.ts +3 -0
  1390. package/dist/node/xy/deploy/publishCommand.d.ts.map +1 -0
  1391. package/dist/node/xy/index.d.ts +9 -0
  1392. package/dist/node/xy/index.d.ts.map +1 -0
  1393. package/dist/node/xy/install/cleanCommand.d.ts +3 -0
  1394. package/dist/node/xy/install/cleanCommand.d.ts.map +1 -0
  1395. package/dist/node/xy/install/index.d.ts +3 -0
  1396. package/dist/node/xy/install/index.d.ts.map +1 -0
  1397. package/dist/node/xy/install/installCommand.d.ts +3 -0
  1398. package/dist/node/xy/install/installCommand.d.ts.map +1 -0
  1399. package/dist/node/xy/install/reinstallCommand.d.ts +3 -0
  1400. package/dist/node/xy/install/reinstallCommand.d.ts.map +1 -0
  1401. package/dist/node/xy/install/staticsCommand.d.ts +3 -0
  1402. package/dist/node/xy/install/staticsCommand.d.ts.map +1 -0
  1403. package/dist/node/xy/install/upCommand.d.ts +3 -0
  1404. package/dist/node/xy/install/upCommand.d.ts.map +1 -0
  1405. package/dist/node/xy/install/updoCommand.d.ts +3 -0
  1406. package/dist/node/xy/install/updoCommand.d.ts.map +1 -0
  1407. package/dist/node/xy/lint/apiExposureCommand.d.ts +3 -0
  1408. package/dist/node/xy/lint/apiExposureCommand.d.ts.map +1 -0
  1409. package/dist/node/xy/lint/cycleCommand.d.ts +3 -0
  1410. package/dist/node/xy/lint/cycleCommand.d.ts.map +1 -0
  1411. package/dist/node/xy/lint/deplintCommand.d.ts +3 -0
  1412. package/dist/node/xy/lint/deplintCommand.d.ts.map +1 -0
  1413. package/dist/node/xy/lint/fixCommand.d.ts +3 -0
  1414. package/dist/node/xy/lint/fixCommand.d.ts.map +1 -0
  1415. package/dist/node/xy/lint/index.d.ts +3 -0
  1416. package/dist/node/xy/lint/index.d.ts.map +1 -0
  1417. package/dist/node/xy/lint/lint/configCommand.d.ts +5 -0
  1418. package/dist/node/xy/lint/lint/configCommand.d.ts.map +1 -0
  1419. package/dist/node/xy/lint/lint/index.d.ts +3 -0
  1420. package/dist/node/xy/lint/lint/index.d.ts.map +1 -0
  1421. package/dist/node/xy/lint/lint/initCommand.d.ts +3 -0
  1422. package/dist/node/xy/lint/lint/initCommand.d.ts.map +1 -0
  1423. package/dist/node/xy/lint/lint/runCommand.d.ts +3 -0
  1424. package/dist/node/xy/lint/lint/runCommand.d.ts.map +1 -0
  1425. package/dist/node/xy/lint/lintCommand.d.ts +2 -0
  1426. package/dist/node/xy/lint/lintCommand.d.ts.map +1 -0
  1427. package/dist/node/xy/lint/lintlintCommand.d.ts +3 -0
  1428. package/dist/node/xy/lint/lintlintCommand.d.ts.map +1 -0
  1429. package/dist/node/xy/lint/nodeLintCommand.d.ts +3 -0
  1430. package/dist/node/xy/lint/nodeLintCommand.d.ts.map +1 -0
  1431. package/dist/node/xy/lint/publintCommand.d.ts +3 -0
  1432. package/dist/node/xy/lint/publintCommand.d.ts.map +1 -0
  1433. package/dist/node/xy/lint/relintCommand.d.ts +3 -0
  1434. package/dist/node/xy/lint/relintCommand.d.ts.map +1 -0
  1435. package/dist/node/xy/lint/republintCommand.d.ts +3 -0
  1436. package/dist/node/xy/lint/republintCommand.d.ts.map +1 -0
  1437. package/dist/node/xy/lint/sonarCommand.d.ts +3 -0
  1438. package/dist/node/xy/lint/sonarCommand.d.ts.map +1 -0
  1439. package/dist/node/xy/packageManagerWarning.d.ts +4 -0
  1440. package/dist/node/xy/packageManagerWarning.d.ts.map +1 -0
  1441. package/dist/node/xy/param.d.ts +5 -0
  1442. package/dist/node/xy/param.d.ts.map +1 -0
  1443. package/dist/node/xy/react/analyzeCommand.d.ts +3 -0
  1444. package/dist/node/xy/react/analyzeCommand.d.ts.map +1 -0
  1445. package/dist/node/xy/react/ejectCommand.d.ts +3 -0
  1446. package/dist/node/xy/react/ejectCommand.d.ts.map +1 -0
  1447. package/dist/node/xy/react/index.d.ts +3 -0
  1448. package/dist/node/xy/react/index.d.ts.map +1 -0
  1449. package/dist/node/xy/react/sitemapCommand.d.ts +3 -0
  1450. package/dist/node/xy/react/sitemapCommand.d.ts.map +1 -0
  1451. package/dist/node/xy/react/startCommand.d.ts +3 -0
  1452. package/dist/node/xy/react/startCommand.d.ts.map +1 -0
  1453. package/dist/node/xy/xy.d.ts +20 -0
  1454. package/dist/node/xy/xy.d.ts.map +1 -0
  1455. package/dist/node/xy/xyParseOptions.d.ts +3 -0
  1456. package/dist/node/xy/xyParseOptions.d.ts.map +1 -0
  1457. package/dist/pm/PackageManager.d.ts +85 -0
  1458. package/dist/pm/PackageManager.d.ts.map +1 -0
  1459. package/dist/pm/bunPackageManager.d.ts +20 -0
  1460. package/dist/pm/bunPackageManager.d.ts.map +1 -0
  1461. package/dist/pm/detectPackageManager.d.ts +3 -0
  1462. package/dist/pm/detectPackageManager.d.ts.map +1 -0
  1463. package/dist/pm/detectReact.d.ts +3 -0
  1464. package/dist/pm/detectReact.d.ts.map +1 -0
  1465. package/dist/pm/index.d.ts +11 -0
  1466. package/dist/pm/index.d.ts.map +1 -0
  1467. package/dist/pm/isReactProject.d.ts +3 -0
  1468. package/dist/pm/isReactProject.d.ts.map +1 -0
  1469. package/dist/pm/npmPackageManager.d.ts +20 -0
  1470. package/dist/pm/npmPackageManager.d.ts.map +1 -0
  1471. package/dist/pm/pnpmPackageManager.d.ts +20 -0
  1472. package/dist/pm/pnpmPackageManager.d.ts.map +1 -0
  1473. package/dist/pm/registry.d.ts +5 -0
  1474. package/dist/pm/registry.d.ts.map +1 -0
  1475. package/dist/pm/resolveWorkspace.d.ts +3 -0
  1476. package/dist/pm/resolveWorkspace.d.ts.map +1 -0
  1477. package/dist/pm/runtime.d.ts +2 -0
  1478. package/dist/pm/runtime.d.ts.map +1 -0
  1479. package/dist/pm/workspaces.d.ts +15 -0
  1480. package/dist/pm/workspaces.d.ts.map +1 -0
  1481. package/dist/pm/yarnPackageManager.d.ts +20 -0
  1482. package/dist/pm/yarnPackageManager.d.ts.map +1 -0
  1483. package/dist/xy/build/buildCommand.d.ts +3 -0
  1484. package/dist/xy/build/buildCommand.d.ts.map +1 -0
  1485. package/dist/xy/build/compileCommand.d.ts +3 -0
  1486. package/dist/xy/build/compileCommand.d.ts.map +1 -0
  1487. package/dist/xy/build/copyAssetsCommand.d.ts +3 -0
  1488. package/dist/xy/build/copyAssetsCommand.d.ts.map +1 -0
  1489. package/dist/xy/build/index.d.ts +3 -0
  1490. package/dist/xy/build/index.d.ts.map +1 -0
  1491. package/dist/xy/build/rebuildCommand.d.ts +3 -0
  1492. package/dist/xy/build/rebuildCommand.d.ts.map +1 -0
  1493. package/dist/xy/build/recompileCommand.d.ts +3 -0
  1494. package/dist/xy/build/recompileCommand.d.ts.map +1 -0
  1495. package/dist/xy/build/tscValidateCommand.d.ts +3 -0
  1496. package/dist/xy/build/tscValidateCommand.d.ts.map +1 -0
  1497. package/dist/xy/common/checkCommand.d.ts +3 -0
  1498. package/dist/xy/common/checkCommand.d.ts.map +1 -0
  1499. package/dist/xy/common/claude/checkCommand.d.ts +3 -0
  1500. package/dist/xy/common/claude/checkCommand.d.ts.map +1 -0
  1501. package/dist/xy/common/claude/cleanCommand.d.ts +3 -0
  1502. package/dist/xy/common/claude/cleanCommand.d.ts.map +1 -0
  1503. package/dist/xy/common/claude/commandsCommand.d.ts +3 -0
  1504. package/dist/xy/common/claude/commandsCommand.d.ts.map +1 -0
  1505. package/dist/xy/common/claude/index.d.ts +3 -0
  1506. package/dist/xy/common/claude/index.d.ts.map +1 -0
  1507. package/dist/xy/common/claude/initCommand.d.ts +3 -0
  1508. package/dist/xy/common/claude/initCommand.d.ts.map +1 -0
  1509. package/dist/xy/common/claude/rulesCommand.d.ts +3 -0
  1510. package/dist/xy/common/claude/rulesCommand.d.ts.map +1 -0
  1511. package/dist/xy/common/claude/settingsCommand.d.ts +3 -0
  1512. package/dist/xy/common/claude/settingsCommand.d.ts.map +1 -0
  1513. package/dist/xy/common/claude/skillsCommand.d.ts +3 -0
  1514. package/dist/xy/common/claude/skillsCommand.d.ts.map +1 -0
  1515. package/dist/xy/common/deadCommand.d.ts +3 -0
  1516. package/dist/xy/common/deadCommand.d.ts.map +1 -0
  1517. package/dist/xy/common/gitignoreCommand.d.ts +3 -0
  1518. package/dist/xy/common/gitignoreCommand.d.ts.map +1 -0
  1519. package/dist/xy/common/gitlintCommand.d.ts +3 -0
  1520. package/dist/xy/common/gitlintCommand.d.ts.map +1 -0
  1521. package/dist/xy/common/index.d.ts +3 -0
  1522. package/dist/xy/common/index.d.ts.map +1 -0
  1523. package/dist/xy/common/licenseCommand.d.ts +3 -0
  1524. package/dist/xy/common/licenseCommand.d.ts.map +1 -0
  1525. package/dist/xy/common/npmignoreGenCommand.d.ts +3 -0
  1526. package/dist/xy/common/npmignoreGenCommand.d.ts.map +1 -0
  1527. package/dist/xy/common/orphan/cleanCommand.d.ts +3 -0
  1528. package/dist/xy/common/orphan/cleanCommand.d.ts.map +1 -0
  1529. package/dist/xy/common/orphan/index.d.ts +3 -0
  1530. package/dist/xy/common/orphan/index.d.ts.map +1 -0
  1531. package/dist/xy/common/orphan/listCommand.d.ts +3 -0
  1532. package/dist/xy/common/orphan/listCommand.d.ts.map +1 -0
  1533. package/dist/xy/common/packmanCommand.d.ts +3 -0
  1534. package/dist/xy/common/packmanCommand.d.ts.map +1 -0
  1535. package/dist/xy/common/repo/index.d.ts +3 -0
  1536. package/dist/xy/common/repo/index.d.ts.map +1 -0
  1537. package/dist/xy/common/repo/initCommand.d.ts +3 -0
  1538. package/dist/xy/common/repo/initCommand.d.ts.map +1 -0
  1539. package/dist/xy/common/repo/lintCommand.d.ts +3 -0
  1540. package/dist/xy/common/repo/lintCommand.d.ts.map +1 -0
  1541. package/dist/xy/common/retestCommand.d.ts +3 -0
  1542. package/dist/xy/common/retestCommand.d.ts.map +1 -0
  1543. package/dist/xy/common/secureCommand.d.ts +3 -0
  1544. package/dist/xy/common/secureCommand.d.ts.map +1 -0
  1545. package/dist/xy/common/skills/addCommand.d.ts +3 -0
  1546. package/dist/xy/common/skills/addCommand.d.ts.map +1 -0
  1547. package/dist/xy/common/skills/experimentalInstallCommand.d.ts +3 -0
  1548. package/dist/xy/common/skills/experimentalInstallCommand.d.ts.map +1 -0
  1549. package/dist/xy/common/skills/experimentalSyncCommand.d.ts +3 -0
  1550. package/dist/xy/common/skills/experimentalSyncCommand.d.ts.map +1 -0
  1551. package/dist/xy/common/skills/findCommand.d.ts +3 -0
  1552. package/dist/xy/common/skills/findCommand.d.ts.map +1 -0
  1553. package/dist/xy/common/skills/index.d.ts +3 -0
  1554. package/dist/xy/common/skills/index.d.ts.map +1 -0
  1555. package/dist/xy/common/skills/initCommand.d.ts +3 -0
  1556. package/dist/xy/common/skills/initCommand.d.ts.map +1 -0
  1557. package/dist/xy/common/skills/lintCommand.d.ts +3 -0
  1558. package/dist/xy/common/skills/lintCommand.d.ts.map +1 -0
  1559. package/dist/xy/common/skills/listCommand.d.ts +3 -0
  1560. package/dist/xy/common/skills/listCommand.d.ts.map +1 -0
  1561. package/dist/xy/common/skills/removeCommand.d.ts +3 -0
  1562. package/dist/xy/common/skills/removeCommand.d.ts.map +1 -0
  1563. package/dist/xy/common/skills/updateCommand.d.ts +3 -0
  1564. package/dist/xy/common/skills/updateCommand.d.ts.map +1 -0
  1565. package/dist/xy/common/skills/updoCommand.d.ts +3 -0
  1566. package/dist/xy/common/skills/updoCommand.d.ts.map +1 -0
  1567. package/dist/xy/common/testCommand.d.ts +3 -0
  1568. package/dist/xy/common/testCommand.d.ts.map +1 -0
  1569. package/dist/xy/common/work/addCommand.d.ts +3 -0
  1570. package/dist/xy/common/work/addCommand.d.ts.map +1 -0
  1571. package/dist/xy/common/work/claimCommand.d.ts +3 -0
  1572. package/dist/xy/common/work/claimCommand.d.ts.map +1 -0
  1573. package/dist/xy/common/work/doneCommand.d.ts +3 -0
  1574. package/dist/xy/common/work/doneCommand.d.ts.map +1 -0
  1575. package/dist/xy/common/work/index.d.ts +3 -0
  1576. package/dist/xy/common/work/index.d.ts.map +1 -0
  1577. package/dist/xy/common/work/initCommand.d.ts +3 -0
  1578. package/dist/xy/common/work/initCommand.d.ts.map +1 -0
  1579. package/dist/xy/common/work/listCommand.d.ts +3 -0
  1580. package/dist/xy/common/work/listCommand.d.ts.map +1 -0
  1581. package/dist/xy/common/work/nextCommand.d.ts +3 -0
  1582. package/dist/xy/common/work/nextCommand.d.ts.map +1 -0
  1583. package/dist/xy/common/work/options.d.ts +5 -0
  1584. package/dist/xy/common/work/options.d.ts.map +1 -0
  1585. package/dist/xy/common/work/queueCommand.d.ts +3 -0
  1586. package/dist/xy/common/work/queueCommand.d.ts.map +1 -0
  1587. package/dist/xy/common/work/showCommand.d.ts +3 -0
  1588. package/dist/xy/common/work/showCommand.d.ts.map +1 -0
  1589. package/dist/xy/common/work/triageCommand.d.ts +3 -0
  1590. package/dist/xy/common/work/triageCommand.d.ts.map +1 -0
  1591. package/dist/xy/common/work/updateCommand.d.ts +3 -0
  1592. package/dist/xy/common/work/updateCommand.d.ts.map +1 -0
  1593. package/dist/xy/deploy/deployCommand.d.ts +3 -0
  1594. package/dist/xy/deploy/deployCommand.d.ts.map +1 -0
  1595. package/dist/xy/deploy/index.d.ts +3 -0
  1596. package/dist/xy/deploy/index.d.ts.map +1 -0
  1597. package/dist/xy/deploy/publishCommand.d.ts +3 -0
  1598. package/dist/xy/deploy/publishCommand.d.ts.map +1 -0
  1599. package/dist/xy/index.d.ts +9 -0
  1600. package/dist/xy/index.d.ts.map +1 -0
  1601. package/dist/xy/install/cleanCommand.d.ts +3 -0
  1602. package/dist/xy/install/cleanCommand.d.ts.map +1 -0
  1603. package/dist/xy/install/index.d.ts +3 -0
  1604. package/dist/xy/install/index.d.ts.map +1 -0
  1605. package/dist/xy/install/installCommand.d.ts +3 -0
  1606. package/dist/xy/install/installCommand.d.ts.map +1 -0
  1607. package/dist/xy/install/reinstallCommand.d.ts +3 -0
  1608. package/dist/xy/install/reinstallCommand.d.ts.map +1 -0
  1609. package/dist/xy/install/staticsCommand.d.ts +3 -0
  1610. package/dist/xy/install/staticsCommand.d.ts.map +1 -0
  1611. package/dist/xy/install/upCommand.d.ts +3 -0
  1612. package/dist/xy/install/upCommand.d.ts.map +1 -0
  1613. package/dist/xy/install/updoCommand.d.ts +3 -0
  1614. package/dist/xy/install/updoCommand.d.ts.map +1 -0
  1615. package/dist/xy/install/upskillsCommand.d.ts +3 -0
  1616. package/dist/xy/install/upskillsCommand.d.ts.map +1 -0
  1617. package/dist/xy/lint/apiExposureCommand.d.ts +3 -0
  1618. package/dist/xy/lint/apiExposureCommand.d.ts.map +1 -0
  1619. package/dist/xy/lint/cycleCommand.d.ts +3 -0
  1620. package/dist/xy/lint/cycleCommand.d.ts.map +1 -0
  1621. package/dist/xy/lint/deplintCommand.d.ts +3 -0
  1622. package/dist/xy/lint/deplintCommand.d.ts.map +1 -0
  1623. package/dist/xy/lint/fixCommand.d.ts +3 -0
  1624. package/dist/xy/lint/fixCommand.d.ts.map +1 -0
  1625. package/dist/xy/lint/index.d.ts +3 -0
  1626. package/dist/xy/lint/index.d.ts.map +1 -0
  1627. package/dist/xy/lint/lint/configCommand.d.ts +5 -0
  1628. package/dist/xy/lint/lint/configCommand.d.ts.map +1 -0
  1629. package/dist/xy/lint/lint/index.d.ts +3 -0
  1630. package/dist/xy/lint/lint/index.d.ts.map +1 -0
  1631. package/dist/xy/lint/lint/initCommand.d.ts +3 -0
  1632. package/dist/xy/lint/lint/initCommand.d.ts.map +1 -0
  1633. package/dist/xy/lint/lint/runCommand.d.ts +3 -0
  1634. package/dist/xy/lint/lint/runCommand.d.ts.map +1 -0
  1635. package/dist/xy/lint/lintCommand.d.ts +2 -0
  1636. package/dist/xy/lint/lintCommand.d.ts.map +1 -0
  1637. package/dist/xy/lint/lintlintCommand.d.ts +3 -0
  1638. package/dist/xy/lint/lintlintCommand.d.ts.map +1 -0
  1639. package/dist/xy/lint/nodeLintCommand.d.ts +3 -0
  1640. package/dist/xy/lint/nodeLintCommand.d.ts.map +1 -0
  1641. package/dist/xy/lint/publintCommand.d.ts +3 -0
  1642. package/dist/xy/lint/publintCommand.d.ts.map +1 -0
  1643. package/dist/xy/lint/relintCommand.d.ts +3 -0
  1644. package/dist/xy/lint/relintCommand.d.ts.map +1 -0
  1645. package/dist/xy/lint/republintCommand.d.ts +3 -0
  1646. package/dist/xy/lint/republintCommand.d.ts.map +1 -0
  1647. package/dist/xy/lint/sonarCommand.d.ts +3 -0
  1648. package/dist/xy/lint/sonarCommand.d.ts.map +1 -0
  1649. package/dist/xy/packageManagerWarning.d.ts +4 -0
  1650. package/dist/xy/packageManagerWarning.d.ts.map +1 -0
  1651. package/dist/xy/param.d.ts +5 -0
  1652. package/dist/xy/param.d.ts.map +1 -0
  1653. package/dist/xy/react/analyzeCommand.d.ts +3 -0
  1654. package/dist/xy/react/analyzeCommand.d.ts.map +1 -0
  1655. package/dist/xy/react/ejectCommand.d.ts +3 -0
  1656. package/dist/xy/react/ejectCommand.d.ts.map +1 -0
  1657. package/dist/xy/react/index.d.ts +3 -0
  1658. package/dist/xy/react/index.d.ts.map +1 -0
  1659. package/dist/xy/react/sitemapCommand.d.ts +3 -0
  1660. package/dist/xy/react/sitemapCommand.d.ts.map +1 -0
  1661. package/dist/xy/react/startCommand.d.ts +3 -0
  1662. package/dist/xy/react/startCommand.d.ts.map +1 -0
  1663. package/dist/xy/xy.d.ts +20 -0
  1664. package/dist/xy/xy.d.ts.map +1 -0
  1665. package/dist/xy/xyParseOptions.d.ts +3 -0
  1666. package/dist/xy/xyParseOptions.d.ts.map +1 -0
  1667. package/package.json +108 -0
  1668. package/templates/gitignore/gitignore/template.gitignore +51 -0
  1669. package/templates/gitignore/template.gitignore +51 -0
  1670. package/templates/repo/cli/package/package.json.tmpl +62 -0
  1671. package/templates/repo/cli/package/src/__packageName__.ts.tmpl +21 -0
  1672. package/templates/repo/cli/package/src/actions/index.ts +1 -0
  1673. package/templates/repo/cli/package/src/actions/printVersion.ts.tmpl +8 -0
  1674. package/templates/repo/cli/package/src/bin/__packageName__.ts.tmpl +12 -0
  1675. package/templates/repo/cli/package/src/commands/index.ts +1 -0
  1676. package/templates/repo/cli/package/src/commands/versionCommand.ts.tmpl +11 -0
  1677. package/templates/repo/cli/package/src/index.ts.tmpl +1 -0
  1678. package/templates/repo/cli/package/tsconfig.build.json +25 -0
  1679. package/templates/repo/cli/package/tsconfig.json +4 -0
  1680. package/templates/repo/cli/package/xy.config.ts +3 -0
  1681. package/templates/repo/cli/root/CLAUDE.md.tmpl +36 -0
  1682. package/templates/repo/cli/root/cspell.json.tmpl +13 -0
  1683. package/templates/repo/cli/root/eslint.config.ts +20 -0
  1684. package/templates/repo/cli/root/github/workflows/build-bun.yml.tmpl +30 -0
  1685. package/templates/repo/cli/root/github/workflows/build-npm.yml.tmpl +32 -0
  1686. package/templates/repo/cli/root/github/workflows/build-pnpm.yml.tmpl +34 -0
  1687. package/templates/repo/cli/root/github/workflows/build-yarn.yml.tmpl +32 -0
  1688. package/templates/repo/cli/root/gitignore.tmpl +47 -0
  1689. package/templates/repo/cli/root/package.json.tmpl +54 -0
  1690. package/templates/repo/cli/root/pnpm-workspace.yaml +2 -0
  1691. package/templates/repo/cli/root/tsconfig.json +4 -0
  1692. package/templates/repo/cli/root/vitest.config.ts +31 -0
  1693. package/templates/repo/cli/root/xy.config.ts.tmpl +5 -0
@@ -0,0 +1,3634 @@
1
+ #!/usr/bin/env node
2
+ import process$1 from "node:process";
3
+ import os from "node:os";
4
+ import tty from "node:tty";
5
+ import * as xi from "node:fs";
6
+ import { copyFileSync, mkdirSync, readFileSync } from "node:fs";
7
+ import PATH, { posix, win32 } from "node:path";
8
+ import path from "node:path/posix";
9
+ import { fileURLToPath } from "node:url";
10
+ import { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
11
+ import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
12
+ import { EventEmitter } from "node:events";
13
+ import Pe from "node:stream";
14
+ import { StringDecoder } from "node:string_decoder";
15
+ //#region \0rolldown/runtime.js
16
+ var __esmMin = (fn, res, err) => () => {
17
+ if (err) throw err[0];
18
+ try {
19
+ return fn && (res = fn(fn = 0)), res;
20
+ } catch (e) {
21
+ throw err = [e], e;
22
+ }
23
+ };
24
+ //#endregion
25
+ //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
26
+ const ANSI_BACKGROUND_OFFSET = 10;
27
+ const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
28
+ const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
29
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
30
+ const styles$1 = {
31
+ modifier: {
32
+ reset: [0, 0],
33
+ bold: [1, 22],
34
+ dim: [2, 22],
35
+ italic: [3, 23],
36
+ underline: [4, 24],
37
+ overline: [53, 55],
38
+ inverse: [7, 27],
39
+ hidden: [8, 28],
40
+ strikethrough: [9, 29]
41
+ },
42
+ color: {
43
+ black: [30, 39],
44
+ red: [31, 39],
45
+ green: [32, 39],
46
+ yellow: [33, 39],
47
+ blue: [34, 39],
48
+ magenta: [35, 39],
49
+ cyan: [36, 39],
50
+ white: [37, 39],
51
+ blackBright: [90, 39],
52
+ gray: [90, 39],
53
+ grey: [90, 39],
54
+ redBright: [91, 39],
55
+ greenBright: [92, 39],
56
+ yellowBright: [93, 39],
57
+ blueBright: [94, 39],
58
+ magentaBright: [95, 39],
59
+ cyanBright: [96, 39],
60
+ whiteBright: [97, 39]
61
+ },
62
+ bgColor: {
63
+ bgBlack: [40, 49],
64
+ bgRed: [41, 49],
65
+ bgGreen: [42, 49],
66
+ bgYellow: [43, 49],
67
+ bgBlue: [44, 49],
68
+ bgMagenta: [45, 49],
69
+ bgCyan: [46, 49],
70
+ bgWhite: [47, 49],
71
+ bgBlackBright: [100, 49],
72
+ bgGray: [100, 49],
73
+ bgGrey: [100, 49],
74
+ bgRedBright: [101, 49],
75
+ bgGreenBright: [102, 49],
76
+ bgYellowBright: [103, 49],
77
+ bgBlueBright: [104, 49],
78
+ bgMagentaBright: [105, 49],
79
+ bgCyanBright: [106, 49],
80
+ bgWhiteBright: [107, 49]
81
+ }
82
+ };
83
+ Object.keys(styles$1.modifier);
84
+ const foregroundColorNames = Object.keys(styles$1.color);
85
+ const backgroundColorNames = Object.keys(styles$1.bgColor);
86
+ [...foregroundColorNames, ...backgroundColorNames];
87
+ function assembleStyles() {
88
+ const codes = /* @__PURE__ */ new Map();
89
+ for (const [groupName, group] of Object.entries(styles$1)) {
90
+ for (const [styleName, style] of Object.entries(group)) {
91
+ styles$1[styleName] = {
92
+ open: `\u001B[${style[0]}m`,
93
+ close: `\u001B[${style[1]}m`
94
+ };
95
+ group[styleName] = styles$1[styleName];
96
+ codes.set(style[0], style[1]);
97
+ }
98
+ Object.defineProperty(styles$1, groupName, {
99
+ value: group,
100
+ enumerable: false
101
+ });
102
+ }
103
+ Object.defineProperty(styles$1, "codes", {
104
+ value: codes,
105
+ enumerable: false
106
+ });
107
+ styles$1.color.close = "\x1B[39m";
108
+ styles$1.bgColor.close = "\x1B[49m";
109
+ styles$1.color.ansi = wrapAnsi16();
110
+ styles$1.color.ansi256 = wrapAnsi256();
111
+ styles$1.color.ansi16m = wrapAnsi16m();
112
+ styles$1.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
113
+ styles$1.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
114
+ styles$1.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
115
+ Object.defineProperties(styles$1, {
116
+ rgbToAnsi256: {
117
+ value(red, green, blue) {
118
+ if (red === green && green === blue) {
119
+ if (red < 8) return 16;
120
+ if (red > 248) return 231;
121
+ return Math.round((red - 8) / 247 * 24) + 232;
122
+ }
123
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
124
+ },
125
+ enumerable: false
126
+ },
127
+ hexToRgb: {
128
+ value(hex) {
129
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
130
+ if (!matches) return [
131
+ 0,
132
+ 0,
133
+ 0
134
+ ];
135
+ let [colorString] = matches;
136
+ if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
137
+ const integer = Number.parseInt(colorString, 16);
138
+ return [
139
+ integer >> 16 & 255,
140
+ integer >> 8 & 255,
141
+ integer & 255
142
+ ];
143
+ },
144
+ enumerable: false
145
+ },
146
+ hexToAnsi256: {
147
+ value: (hex) => styles$1.rgbToAnsi256(...styles$1.hexToRgb(hex)),
148
+ enumerable: false
149
+ },
150
+ ansi256ToAnsi: {
151
+ value(code) {
152
+ if (code < 8) return 30 + code;
153
+ if (code < 16) return 90 + (code - 8);
154
+ let red;
155
+ let green;
156
+ let blue;
157
+ if (code >= 232) {
158
+ red = ((code - 232) * 10 + 8) / 255;
159
+ green = red;
160
+ blue = red;
161
+ } else {
162
+ code -= 16;
163
+ const remainder = code % 36;
164
+ red = Math.floor(code / 36) / 5;
165
+ green = Math.floor(remainder / 6) / 5;
166
+ blue = remainder % 6 / 5;
167
+ }
168
+ const value = Math.max(red, green, blue) * 2;
169
+ if (value === 0) return 30;
170
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
171
+ if (value === 2) result += 60;
172
+ return result;
173
+ },
174
+ enumerable: false
175
+ },
176
+ rgbToAnsi: {
177
+ value: (red, green, blue) => styles$1.ansi256ToAnsi(styles$1.rgbToAnsi256(red, green, blue)),
178
+ enumerable: false
179
+ },
180
+ hexToAnsi: {
181
+ value: (hex) => styles$1.ansi256ToAnsi(styles$1.hexToAnsi256(hex)),
182
+ enumerable: false
183
+ }
184
+ });
185
+ return styles$1;
186
+ }
187
+ const ansiStyles = assembleStyles();
188
+ //#endregion
189
+ //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
190
+ function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process$1.argv) {
191
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
192
+ const position = argv.indexOf(prefix + flag);
193
+ const terminatorPosition = argv.indexOf("--");
194
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
195
+ }
196
+ const { env } = process$1;
197
+ let flagForceColor;
198
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
199
+ else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
200
+ function envForceColor() {
201
+ if ("FORCE_COLOR" in env) {
202
+ if (env.FORCE_COLOR === "true") return 1;
203
+ if (env.FORCE_COLOR === "false") return 0;
204
+ return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
205
+ }
206
+ }
207
+ function translateLevel(level) {
208
+ if (level === 0) return false;
209
+ return {
210
+ level,
211
+ hasBasic: true,
212
+ has256: level >= 2,
213
+ has16m: level >= 3
214
+ };
215
+ }
216
+ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
217
+ const noFlagForceColor = envForceColor();
218
+ if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
219
+ const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
220
+ if (forceColor === 0) return 0;
221
+ if (sniffFlags) {
222
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
223
+ if (hasFlag("color=256")) return 2;
224
+ }
225
+ if ("TF_BUILD" in env && "AGENT_NAME" in env) return 1;
226
+ if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
227
+ const min = forceColor || 0;
228
+ if (env.TERM === "dumb") return min;
229
+ if (process$1.platform === "win32") {
230
+ const osRelease = os.release().split(".");
231
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
232
+ return 1;
233
+ }
234
+ if ("CI" in env) {
235
+ if ([
236
+ "GITHUB_ACTIONS",
237
+ "GITEA_ACTIONS",
238
+ "CIRCLECI"
239
+ ].some((key) => key in env)) return 3;
240
+ if ([
241
+ "TRAVIS",
242
+ "APPVEYOR",
243
+ "GITLAB_CI",
244
+ "BUILDKITE",
245
+ "DRONE"
246
+ ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
247
+ return min;
248
+ }
249
+ if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
250
+ if (env.COLORTERM === "truecolor") return 3;
251
+ if (env.TERM === "xterm-kitty") return 3;
252
+ if (env.TERM === "xterm-ghostty") return 3;
253
+ if (env.TERM === "wezterm") return 3;
254
+ if ("TERM_PROGRAM" in env) {
255
+ const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
256
+ switch (env.TERM_PROGRAM) {
257
+ case "iTerm.app": return version >= 3 ? 3 : 2;
258
+ case "Apple_Terminal": return 2;
259
+ }
260
+ }
261
+ if (/-256(color)?$/i.test(env.TERM)) return 2;
262
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
263
+ if ("COLORTERM" in env) return 1;
264
+ return min;
265
+ }
266
+ function createSupportsColor(stream, options = {}) {
267
+ return translateLevel(_supportsColor(stream, {
268
+ streamIsTTY: stream && stream.isTTY,
269
+ ...options
270
+ }));
271
+ }
272
+ const supportsColor = {
273
+ stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
274
+ stderr: createSupportsColor({ isTTY: tty.isatty(2) })
275
+ };
276
+ //#endregion
277
+ //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.js
278
+ function stringReplaceAll(string, substring, replacer) {
279
+ let index = string.indexOf(substring);
280
+ if (index === -1) return string;
281
+ const substringLength = substring.length;
282
+ let endIndex = 0;
283
+ let returnValue = "";
284
+ do {
285
+ returnValue += string.slice(endIndex, index) + substring + replacer;
286
+ endIndex = index + substringLength;
287
+ index = string.indexOf(substring, endIndex);
288
+ } while (index !== -1);
289
+ returnValue += string.slice(endIndex);
290
+ return returnValue;
291
+ }
292
+ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
293
+ let endIndex = 0;
294
+ let returnValue = "";
295
+ do {
296
+ const gotCR = string[index - 1] === "\r";
297
+ returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
298
+ endIndex = index + 1;
299
+ index = string.indexOf("\n", endIndex);
300
+ } while (index !== -1);
301
+ returnValue += string.slice(endIndex);
302
+ return returnValue;
303
+ }
304
+ //#endregion
305
+ //#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
306
+ const { stdout: stdoutColor, stderr: stderrColor } = supportsColor;
307
+ const GENERATOR = Symbol("GENERATOR");
308
+ const STYLER = Symbol("STYLER");
309
+ const IS_EMPTY = Symbol("IS_EMPTY");
310
+ const levelMapping = [
311
+ "ansi",
312
+ "ansi",
313
+ "ansi256",
314
+ "ansi16m"
315
+ ];
316
+ const styles = Object.create(null);
317
+ const applyOptions = (object, options = {}) => {
318
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
319
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
320
+ object.level = options.level === void 0 ? colorLevel : options.level;
321
+ };
322
+ const chalkFactory = (options) => {
323
+ const chalk = (...strings) => strings.join(" ");
324
+ applyOptions(chalk, options);
325
+ Object.setPrototypeOf(chalk, createChalk.prototype);
326
+ return chalk;
327
+ };
328
+ function createChalk(options) {
329
+ return chalkFactory(options);
330
+ }
331
+ Object.setPrototypeOf(createChalk.prototype, Function.prototype);
332
+ for (const [styleName, style] of Object.entries(ansiStyles)) styles[styleName] = { get() {
333
+ const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
334
+ Object.defineProperty(this, styleName, { value: builder });
335
+ return builder;
336
+ } };
337
+ styles.visible = { get() {
338
+ const builder = createBuilder(this, this[STYLER], true);
339
+ Object.defineProperty(this, "visible", { value: builder });
340
+ return builder;
341
+ } };
342
+ const getModelAnsi = (model, level, type, ...arguments_) => {
343
+ if (model === "rgb") {
344
+ if (level === "ansi16m") return ansiStyles[type].ansi16m(...arguments_);
345
+ if (level === "ansi256") return ansiStyles[type].ansi256(ansiStyles.rgbToAnsi256(...arguments_));
346
+ return ansiStyles[type].ansi(ansiStyles.rgbToAnsi(...arguments_));
347
+ }
348
+ if (model === "hex") return getModelAnsi("rgb", level, type, ...ansiStyles.hexToRgb(...arguments_));
349
+ return ansiStyles[type][model](...arguments_);
350
+ };
351
+ for (const model of [
352
+ "rgb",
353
+ "hex",
354
+ "ansi256"
355
+ ]) {
356
+ styles[model] = { get() {
357
+ const { level } = this;
358
+ return function(...arguments_) {
359
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansiStyles.color.close, this[STYLER]);
360
+ return createBuilder(this, styler, this[IS_EMPTY]);
361
+ };
362
+ } };
363
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
364
+ styles[bgModel] = { get() {
365
+ const { level } = this;
366
+ return function(...arguments_) {
367
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansiStyles.bgColor.close, this[STYLER]);
368
+ return createBuilder(this, styler, this[IS_EMPTY]);
369
+ };
370
+ } };
371
+ }
372
+ const proto = Object.defineProperties(() => {}, {
373
+ ...styles,
374
+ level: {
375
+ enumerable: true,
376
+ get() {
377
+ return this[GENERATOR].level;
378
+ },
379
+ set(level) {
380
+ this[GENERATOR].level = level;
381
+ }
382
+ }
383
+ });
384
+ const createStyler = (open, close, parent) => {
385
+ let openAll;
386
+ let closeAll;
387
+ if (parent === void 0) {
388
+ openAll = open;
389
+ closeAll = close;
390
+ } else {
391
+ openAll = parent.openAll + open;
392
+ closeAll = close + parent.closeAll;
393
+ }
394
+ return {
395
+ open,
396
+ close,
397
+ openAll,
398
+ closeAll,
399
+ parent
400
+ };
401
+ };
402
+ const createBuilder = (self, _styler, _isEmpty) => {
403
+ const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
404
+ Object.setPrototypeOf(builder, proto);
405
+ builder[GENERATOR] = self;
406
+ builder[STYLER] = _styler;
407
+ builder[IS_EMPTY] = _isEmpty;
408
+ return builder;
409
+ };
410
+ const applyStyle = (self, string) => {
411
+ if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
412
+ let styler = self[STYLER];
413
+ if (styler === void 0) return string;
414
+ const { openAll, closeAll } = styler;
415
+ if (string.includes("\x1B")) while (styler !== void 0) {
416
+ string = stringReplaceAll(string, styler.close, styler.open);
417
+ styler = styler.parent;
418
+ }
419
+ const lfIndex = string.indexOf("\n");
420
+ if (lfIndex !== -1) string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
421
+ return openAll + string + closeAll;
422
+ };
423
+ Object.defineProperties(createChalk.prototype, styles);
424
+ const chalk = createChalk();
425
+ createChalk({ level: stderrColor ? stderrColor.level : 0 });
426
+ //#endregion
427
+ //#region ../../node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.js
428
+ function Ht(n) {
429
+ return isNaN(n) ? n.charCodeAt(0) : parseInt(n, 10);
430
+ }
431
+ function ps(n) {
432
+ return n.replace(as, fe).replace(ls, ue).replace(cs, qt).replace(fs, de).replace(us, pe);
433
+ }
434
+ function ms(n) {
435
+ return n.replace(is, "\\").replace(rs, "{").replace(ns, "}").replace(os$1, ",").replace(hs, ".");
436
+ }
437
+ function me(n) {
438
+ if (!n) return [""];
439
+ let t = [], e = Gt("{", "}", n);
440
+ if (!e) return n.split(",");
441
+ let { pre: s, body: i, post: r } = e, o = s.split(",");
442
+ o[o.length - 1] += "{" + i + "}";
443
+ let h = me(r);
444
+ return r.length && (o[o.length - 1] += h.shift(), o.push.apply(o, h)), t.push.apply(t, o), t;
445
+ }
446
+ function ge(n, t = {}) {
447
+ if (!n) return [];
448
+ let { max: e = ds } = t;
449
+ return n.slice(0, 2) === "{}" && (n = "\\{\\}" + n.slice(2)), ht(ps(n), e, !0).map(ms);
450
+ }
451
+ function gs(n) {
452
+ return "{" + n + "}";
453
+ }
454
+ function ws(n) {
455
+ return /^-?0\d/.test(n);
456
+ }
457
+ function ys(n, t) {
458
+ return n <= t;
459
+ }
460
+ function bs(n, t) {
461
+ return n >= t;
462
+ }
463
+ function ht(n, t, e) {
464
+ let s = [], i = Gt("{", "}", n);
465
+ if (!i) return [n];
466
+ let r = i.pre, o = i.post.length ? ht(i.post, t, !1) : [""];
467
+ if (/\$$/.test(i.pre)) for (let h = 0; h < o.length && h < t; h++) {
468
+ let a = r + "{" + i.body + "}" + o[h];
469
+ s.push(a);
470
+ }
471
+ else {
472
+ let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, u = i.body.indexOf(",") >= 0;
473
+ if (!l && !u) return i.post.match(/,(?!,).*\}/) ? (n = i.pre + "{" + i.body + qt + i.post, ht(n, t, !0)) : [n];
474
+ let c;
475
+ if (l) c = i.body.split(/\.\./);
476
+ else if (c = me(i.body), c.length === 1 && c[0] !== void 0 && (c = ht(c[0], t, !1).map(gs), c.length === 1)) return o.map((f) => i.pre + c[0] + f);
477
+ let d;
478
+ if (l && c[0] !== void 0 && c[1] !== void 0) {
479
+ let f = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== void 0 ? Math.abs(Ht(c[2])) : 1, g = ys;
480
+ m < f && (w *= -1, g = bs);
481
+ let E = c.some(ws);
482
+ d = [];
483
+ for (let y = f; g(y, m); y += w) {
484
+ let b;
485
+ if (a) b = String.fromCharCode(y), b === "\\" && (b = "");
486
+ else if (b = String(y), E) {
487
+ let z = p - b.length;
488
+ if (z > 0) {
489
+ let $ = new Array(z + 1).join("0");
490
+ y < 0 ? b = "-" + $ + b.slice(1) : b = $ + b;
491
+ }
492
+ }
493
+ d.push(b);
494
+ }
495
+ } else {
496
+ d = [];
497
+ for (let f = 0; f < c.length; f++) d.push.apply(d, ht(c[f], t, !1));
498
+ }
499
+ for (let f = 0; f < d.length; f++) for (let m = 0; m < o.length && s.length < t; m++) {
500
+ let p = r + d[f] + o[m];
501
+ (!e || l || p) && s.push(p);
502
+ }
503
+ }
504
+ return s;
505
+ }
506
+ function Bt(n, t = {}) {
507
+ return new I(n, t).streamSync();
508
+ }
509
+ function Qe(n, t = {}) {
510
+ return new I(n, t).stream();
511
+ }
512
+ function ts(n, t = {}) {
513
+ return new I(n, t).walkSync();
514
+ }
515
+ async function Je(n, t = {}) {
516
+ return new I(n, t).walk();
517
+ }
518
+ function Ut(n, t = {}) {
519
+ return new I(n, t).iterateSync();
520
+ }
521
+ function es(n, t = {}) {
522
+ return new I(n, t).iterate();
523
+ }
524
+ var Gt, ce, ss, fe, ue, qt, de, pe, is, rs, ns, os$1, hs, as, ls, cs, fs, us, ds, at, Ss, lt, Es, we, ye, W, xs, be, vs, Ct, Cs, Ts, As, ks, Kt, Se, Ee, Q, tt, O, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce, Te, Ae, xe, A, Vs, Ys, Xs, Js, N, Zs, ke, Qs, ti, ve, ei, D, si, Oe, Vt, Fe, At, Re, ii, q, De, Tt, ri, ft, Ne, oi, hi, ai, G, H, K, kt, ut, Rt, _e, Ot, Le, P, et, v, dt, st, C, F, T, Yt, Ft, k, x, Xt, Jt, We, Zt, B, Qt, Dt, pt, Y, M, mt, li, ci, fi, ui, Mt, te, di, pi, V, wt, Ue, $e, Ri, Oi, L, Ge, He, U, qe, Ke, X, Ve, _, gt, se, je, yt, j, Nt, Lt, Ie, Fi, ie, ze, bt, Be, _t, Wt, ne, Ye, R, Pt, jt, It, it, rt, St, Xe, Di, Mi, Ni, nt, _i, ot, oe, he, ae, Et, Li, zt, xt, vt, Pi, I, le, ji, Ii, zi, Bi, Ui, Ze;
525
+ //#endregion
526
+ //#region src/lib/copyAssetFiles.ts
527
+ __esmMin((() => {
528
+ Gt = (n, t, e) => {
529
+ let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
530
+ return r && {
531
+ start: r[0],
532
+ end: r[1],
533
+ pre: e.slice(0, r[0]),
534
+ body: e.slice(r[0] + s.length, r[1]),
535
+ post: e.slice(r[1] + i.length)
536
+ };
537
+ }, ce = (n, t) => {
538
+ let e = t.match(n);
539
+ return e ? e[0] : null;
540
+ }, ss = (n, t, e) => {
541
+ let s, i, r, o, h, a = e.indexOf(n), l = e.indexOf(t, a + 1), u = a;
542
+ if (a >= 0 && l > 0) {
543
+ if (n === t) return [a, l];
544
+ for (s = [], r = e.length; u >= 0 && !h;) {
545
+ if (u === a) s.push(u), a = e.indexOf(n, u + 1);
546
+ else if (s.length === 1) {
547
+ let c = s.pop();
548
+ c !== void 0 && (h = [c, l]);
549
+ } else i = s.pop(), i !== void 0 && i < r && (r = i, o = l), l = e.indexOf(t, u + 1);
550
+ u = a < l && a >= 0 ? a : l;
551
+ }
552
+ s.length && o !== void 0 && (h = [r, o]);
553
+ }
554
+ return h;
555
+ };
556
+ fe = "\0SLASH" + Math.random() + "\0", ue = "\0OPEN" + Math.random() + "\0", qt = "\0CLOSE" + Math.random() + "\0", de = "\0COMMA" + Math.random() + "\0", pe = "\0PERIOD" + Math.random() + "\0", is = new RegExp(fe, "g"), rs = new RegExp(ue, "g"), ns = new RegExp(qt, "g"), os$1 = new RegExp(de, "g"), hs = new RegExp(pe, "g"), as = /\\\\/g, ls = /\\{/g, cs = /\\}/g, fs = /\\,/g, us = /\\./g, ds = 1e5;
557
+ at = (n) => {
558
+ if (typeof n != "string") throw new TypeError("invalid pattern");
559
+ if (n.length > 65536) throw new TypeError("pattern is too long");
560
+ };
561
+ Ss = {
562
+ "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0],
563
+ "[:alpha:]": ["\\p{L}\\p{Nl}", !0],
564
+ "[:ascii:]": ["\\x00-\\x7f", !1],
565
+ "[:blank:]": ["\\p{Zs}\\t", !0],
566
+ "[:cntrl:]": ["\\p{Cc}", !0],
567
+ "[:digit:]": ["\\p{Nd}", !0],
568
+ "[:graph:]": [
569
+ "\\p{Z}\\p{C}",
570
+ !0,
571
+ !0
572
+ ],
573
+ "[:lower:]": ["\\p{Ll}", !0],
574
+ "[:print:]": ["\\p{C}", !0],
575
+ "[:punct:]": ["\\p{P}", !0],
576
+ "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0],
577
+ "[:upper:]": ["\\p{Lu}", !0],
578
+ "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0],
579
+ "[:xdigit:]": ["A-Fa-f0-9", !1]
580
+ }, lt = (n) => n.replace(/[[\]\\-]/g, "\\$&"), Es = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), we = (n) => n.join(""), ye = (n, t) => {
581
+ let e = t;
582
+ if (n.charAt(e) !== "[") throw new Error("not in a brace expression");
583
+ let s = [], i = [], r = e + 1, o = !1, h = !1, a = !1, l = !1, u = e, c = "";
584
+ t: for (; r < n.length;) {
585
+ let p = n.charAt(r);
586
+ if ((p === "!" || p === "^") && r === e + 1) {
587
+ l = !0, r++;
588
+ continue;
589
+ }
590
+ if (p === "]" && o && !a) {
591
+ u = r + 1;
592
+ break;
593
+ }
594
+ if (o = !0, p === "\\" && !a) {
595
+ a = !0, r++;
596
+ continue;
597
+ }
598
+ if (p === "[" && !a) {
599
+ for (let [w, [g, S, E]] of Object.entries(Ss)) if (n.startsWith(w, r)) {
600
+ if (c) return [
601
+ "$.",
602
+ !1,
603
+ n.length - e,
604
+ !0
605
+ ];
606
+ r += w.length, E ? i.push(g) : s.push(g), h = h || S;
607
+ continue t;
608
+ }
609
+ }
610
+ if (a = !1, c) {
611
+ p > c ? s.push(lt(c) + "-" + lt(p)) : p === c && s.push(lt(p)), c = "", r++;
612
+ continue;
613
+ }
614
+ if (n.startsWith("-]", r + 1)) {
615
+ s.push(lt(p + "-")), r += 2;
616
+ continue;
617
+ }
618
+ if (n.startsWith("-", r + 1)) {
619
+ c = p, r += 2;
620
+ continue;
621
+ }
622
+ s.push(lt(p)), r++;
623
+ }
624
+ if (u < r) return [
625
+ "",
626
+ !1,
627
+ 0,
628
+ !1
629
+ ];
630
+ if (!s.length && !i.length) return [
631
+ "$.",
632
+ !1,
633
+ n.length - e,
634
+ !0
635
+ ];
636
+ if (i.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) return [
637
+ Es(s[0].length === 2 ? s[0].slice(-1) : s[0]),
638
+ !1,
639
+ u - e,
640
+ !1
641
+ ];
642
+ let d = "[" + (l ? "^" : "") + we(s) + "]", f = "[" + (l ? "" : "^") + we(i) + "]";
643
+ return [
644
+ s.length && i.length ? "(" + d + "|" + f + ")" : s.length ? d : f,
645
+ h,
646
+ u - e,
647
+ !0
648
+ ];
649
+ };
650
+ W = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !0 } = {}) => e ? t ? n.replace(/\[([^\/\\])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n.replace(/\[([^\/\\{}])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
651
+ xs = /* @__PURE__ */ new Set([
652
+ "!",
653
+ "?",
654
+ "+",
655
+ "*",
656
+ "@"
657
+ ]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = /* @__PURE__ */ new Set(["[", "."]), Ts = /* @__PURE__ */ new Set(["..", "."]), As = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt = "[^/]", Se = Kt + "*?", Ee = Kt + "+?", Q = class n {
658
+ type;
659
+ #t;
660
+ #s;
661
+ #n = !1;
662
+ #r = [];
663
+ #o;
664
+ #S;
665
+ #w;
666
+ #c = !1;
667
+ #h;
668
+ #u;
669
+ #f = !1;
670
+ constructor(t, e, s = {}) {
671
+ this.type = t, t && (this.#s = !0), this.#o = e, this.#t = this.#o ? this.#o.#t : this, this.#h = this.#t === this ? s : this.#t.#h, this.#w = this.#t === this ? [] : this.#t.#w, t === "!" && !this.#t.#c && this.#w.push(this), this.#S = this.#o ? this.#o.#r.length : 0;
672
+ }
673
+ get hasMagic() {
674
+ if (this.#s !== void 0) return this.#s;
675
+ for (let t of this.#r) if (typeof t != "string" && (t.type || t.hasMagic)) return this.#s = !0;
676
+ return this.#s;
677
+ }
678
+ toString() {
679
+ return this.#u !== void 0 ? this.#u : this.type ? this.#u = this.type + "(" + this.#r.map((t) => String(t)).join("|") + ")" : this.#u = this.#r.map((t) => String(t)).join("");
680
+ }
681
+ #a() {
682
+ if (this !== this.#t) throw new Error("should only call on root");
683
+ if (this.#c) return this;
684
+ this.toString(), this.#c = !0;
685
+ let t;
686
+ for (; t = this.#w.pop();) {
687
+ if (t.type !== "!") continue;
688
+ let e = t, s = e.#o;
689
+ for (; s;) {
690
+ for (let i = e.#S + 1; !s.type && i < s.#r.length; i++) for (let r of t.#r) {
691
+ if (typeof r == "string") throw new Error("string part in extglob AST??");
692
+ r.copyIn(s.#r[i]);
693
+ }
694
+ e = s, s = e.#o;
695
+ }
696
+ }
697
+ return this;
698
+ }
699
+ push(...t) {
700
+ for (let e of t) if (e !== "") {
701
+ if (typeof e != "string" && !(e instanceof n && e.#o === this)) throw new Error("invalid part: " + e);
702
+ this.#r.push(e);
703
+ }
704
+ }
705
+ toJSON() {
706
+ let t = this.type === null ? this.#r.slice().map((e) => typeof e == "string" ? e : e.toJSON()) : [this.type, ...this.#r.map((e) => e.toJSON())];
707
+ return this.isStart() && !this.type && t.unshift([]), this.isEnd() && (this === this.#t || this.#t.#c && this.#o?.type === "!") && t.push({}), t;
708
+ }
709
+ isStart() {
710
+ if (this.#t === this) return !0;
711
+ if (!this.#o?.isStart()) return !1;
712
+ if (this.#S === 0) return !0;
713
+ let t = this.#o;
714
+ for (let e = 0; e < this.#S; e++) {
715
+ let s = t.#r[e];
716
+ if (!(s instanceof n && s.type === "!")) return !1;
717
+ }
718
+ return !0;
719
+ }
720
+ isEnd() {
721
+ if (this.#t === this || this.#o?.type === "!") return !0;
722
+ if (!this.#o?.isEnd()) return !1;
723
+ if (!this.type) return this.#o?.isEnd();
724
+ let t = this.#o ? this.#o.#r.length : 0;
725
+ return this.#S === t - 1;
726
+ }
727
+ copyIn(t) {
728
+ typeof t == "string" ? this.push(t) : this.push(t.clone(this));
729
+ }
730
+ clone(t) {
731
+ let e = new n(this.type, t);
732
+ for (let s of this.#r) e.copyIn(s);
733
+ return e;
734
+ }
735
+ static #i(t, e, s, i) {
736
+ let r = !1, o = !1, h = -1, a = !1;
737
+ if (e.type === null) {
738
+ let f = s, m = "";
739
+ for (; f < t.length;) {
740
+ let p = t.charAt(f++);
741
+ if (r || p === "\\") {
742
+ r = !r, m += p;
743
+ continue;
744
+ }
745
+ if (o) {
746
+ f === h + 1 ? (p === "^" || p === "!") && (a = !0) : p === "]" && !(f === h + 2 && a) && (o = !1), m += p;
747
+ continue;
748
+ } else if (p === "[") {
749
+ o = !0, h = f, a = !1, m += p;
750
+ continue;
751
+ }
752
+ if (!i.noext && be(p) && t.charAt(f) === "(") {
753
+ e.push(m), m = "";
754
+ let w = new n(p, e);
755
+ f = n.#i(t, w, f, i), e.push(w);
756
+ continue;
757
+ }
758
+ m += p;
759
+ }
760
+ return e.push(m), f;
761
+ }
762
+ let l = s + 1, u = new n(null, e), c = [], d = "";
763
+ for (; l < t.length;) {
764
+ let f = t.charAt(l++);
765
+ if (r || f === "\\") {
766
+ r = !r, d += f;
767
+ continue;
768
+ }
769
+ if (o) {
770
+ l === h + 1 ? (f === "^" || f === "!") && (a = !0) : f === "]" && !(l === h + 2 && a) && (o = !1), d += f;
771
+ continue;
772
+ } else if (f === "[") {
773
+ o = !0, h = l, a = !1, d += f;
774
+ continue;
775
+ }
776
+ if (be(f) && t.charAt(l) === "(") {
777
+ u.push(d), d = "";
778
+ let m = new n(f, u);
779
+ u.push(m), l = n.#i(t, m, l, i);
780
+ continue;
781
+ }
782
+ if (f === "|") {
783
+ u.push(d), d = "", c.push(u), u = new n(null, e);
784
+ continue;
785
+ }
786
+ if (f === ")") return d === "" && e.#r.length === 0 && (e.#f = !0), u.push(d), d = "", e.push(...c, u), l;
787
+ d += f;
788
+ }
789
+ return e.type = null, e.#s = void 0, e.#r = [t.substring(s - 1)], l;
790
+ }
791
+ static fromGlob(t, e = {}) {
792
+ let s = new n(null, void 0, e);
793
+ return n.#i(t, s, 0, e), s;
794
+ }
795
+ toMMPattern() {
796
+ if (this !== this.#t) return this.#t.toMMPattern();
797
+ let t = this.toString(), [e, s, i, r] = this.toRegExpSource();
798
+ if (!(i || this.#s || this.#h.nocase && !this.#h.nocaseMagicOnly && t.toUpperCase() !== t.toLowerCase())) return s;
799
+ let h = (this.#h.nocase ? "i" : "") + (r ? "u" : "");
800
+ return Object.assign(new RegExp(`^${e}$`, h), {
801
+ _src: e,
802
+ _glob: t
803
+ });
804
+ }
805
+ get options() {
806
+ return this.#h;
807
+ }
808
+ toRegExpSource(t) {
809
+ let e = t ?? !!this.#h.dot;
810
+ if (this.#t === this && this.#a(), !this.type) {
811
+ let a = this.isStart() && this.isEnd() && !this.#r.some((f) => typeof f != "string"), l = this.#r.map((f) => {
812
+ let [m, p, w, g] = typeof f == "string" ? n.#E(f, this.#s, a) : f.toRegExpSource(t);
813
+ return this.#s = this.#s || w, this.#n = this.#n || g, m;
814
+ }).join(""), u = "";
815
+ if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && Ts.has(this.#r[0]))) {
816
+ let m = Cs, p = e && m.has(l.charAt(0)) || l.startsWith("\\.") && m.has(l.charAt(2)) || l.startsWith("\\.\\.") && m.has(l.charAt(4)), w = !e && !t && m.has(l.charAt(0));
817
+ u = p ? vs : w ? Ct : "";
818
+ }
819
+ let c = "";
820
+ return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [
821
+ u + l + c,
822
+ W(l),
823
+ this.#s = !!this.#s,
824
+ this.#n
825
+ ];
826
+ }
827
+ let s = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
828
+ if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
829
+ let a = this.toString();
830
+ return this.#r = [a], this.type = null, this.#s = void 0, [
831
+ a,
832
+ W(this.toString()),
833
+ !1,
834
+ !1
835
+ ];
836
+ }
837
+ let o = !s || t || e || !Ct ? "" : this.#d(!0);
838
+ o === r && (o = ""), o && (r = `(?:${r})(?:${o})*?`);
839
+ let h = "";
840
+ if (this.type === "!" && this.#f) h = (this.isStart() && !e ? Ct : "") + Ee;
841
+ else {
842
+ let a = this.type === "!" ? "))" + (this.isStart() && !e && !t ? Ct : "") + Se + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && o ? ")" : this.type === "*" && o ? ")?" : `)${this.type}`;
843
+ h = i + r + a;
844
+ }
845
+ return [
846
+ h,
847
+ W(r),
848
+ this.#s = !!this.#s,
849
+ this.#n
850
+ ];
851
+ }
852
+ #d(t) {
853
+ return this.#r.map((e) => {
854
+ if (typeof e == "string") throw new Error("string type in extglob ast??");
855
+ let [s, i, r, o] = e.toRegExpSource(t);
856
+ return this.#n = this.#n || o, s;
857
+ }).filter((e) => !(this.isStart() && this.isEnd()) || !!e).join("|");
858
+ }
859
+ static #E(t, e, s = !1) {
860
+ let i = !1, r = "", o = !1, h = !1;
861
+ for (let a = 0; a < t.length; a++) {
862
+ let l = t.charAt(a);
863
+ if (i) {
864
+ i = !1, r += (As.has(l) ? "\\" : "") + l;
865
+ continue;
866
+ }
867
+ if (l === "*") {
868
+ if (h) continue;
869
+ h = !0, r += s && /^[*]+$/.test(t) ? Ee : Se, e = !0;
870
+ continue;
871
+ } else h = !1;
872
+ if (l === "\\") {
873
+ a === t.length - 1 ? r += "\\\\" : i = !0;
874
+ continue;
875
+ }
876
+ if (l === "[") {
877
+ let [u, c, d, f] = ye(t, a);
878
+ if (d) {
879
+ r += u, o = o || c, a += d - 1, e = e || f;
880
+ continue;
881
+ }
882
+ }
883
+ if (l === "?") {
884
+ r += Kt, e = !0;
885
+ continue;
886
+ }
887
+ r += ks(l);
888
+ }
889
+ return [
890
+ r,
891
+ W(t),
892
+ !!e,
893
+ o
894
+ ];
895
+ }
896
+ };
897
+ tt = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
898
+ O = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n)), Rs = /^\*+([^+@!?\*\[\(]*)$/, Os = (n) => (t) => !t.startsWith(".") && t.endsWith(n), Fs = (n) => (t) => t.endsWith(n), Ds = (n) => (n = n.toLowerCase(), (t) => !t.startsWith(".") && t.toLowerCase().endsWith(n)), Ms = (n) => (n = n.toLowerCase(), (t) => t.toLowerCase().endsWith(n)), Ns = /^\*+\.\*+$/, _s = (n) => !n.startsWith(".") && n.includes("."), Ls = (n) => n !== "." && n !== ".." && n.includes("."), Ws = /^\.\*+$/, Ps = (n) => n !== "." && n !== ".." && n.startsWith("."), js = /^\*+$/, Is = (n) => n.length !== 0 && !n.startsWith("."), zs = (n) => n.length !== 0 && n !== "." && n !== "..", Bs = /^\?+([^+@!?\*\[\(]*)?$/, Us = ([n, t = ""]) => {
899
+ let e = Ce([n]);
900
+ return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
901
+ }, $s = ([n, t = ""]) => {
902
+ let e = Te([n]);
903
+ return t ? (t = t.toLowerCase(), (s) => e(s) && s.toLowerCase().endsWith(t)) : e;
904
+ }, Gs = ([n, t = ""]) => {
905
+ let e = Te([n]);
906
+ return t ? (s) => e(s) && s.endsWith(t) : e;
907
+ }, Hs = ([n, t = ""]) => {
908
+ let e = Ce([n]);
909
+ return t ? (s) => e(s) && s.endsWith(t) : e;
910
+ }, Ce = ([n]) => {
911
+ let t = n.length;
912
+ return (e) => e.length === t && !e.startsWith(".");
913
+ }, Te = ([n]) => {
914
+ let t = n.length;
915
+ return (e) => e.length === t && e !== "." && e !== "..";
916
+ }, Ae = typeof process == "object" && process ? typeof process.env == "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix", xe = {
917
+ win32: { sep: "\\" },
918
+ posix: { sep: "/" }
919
+ };
920
+ O.sep = Ae === "win32" ? xe.win32.sep : xe.posix.sep;
921
+ A = Symbol("globstar **");
922
+ O.GLOBSTAR = A;
923
+ Vs = "[^/]*?", Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?", Xs = "(?:(?!(?:\\/|^)\\.).)*?", Js = (n, t = {}) => (e) => O(e, n, t);
924
+ O.filter = Js;
925
+ N = (n, t = {}) => Object.assign({}, n, t), Zs = (n) => {
926
+ if (!n || typeof n != "object" || !Object.keys(n).length) return O;
927
+ let t = O;
928
+ return Object.assign((s, i, r = {}) => t(s, i, N(n, r)), {
929
+ Minimatch: class extends t.Minimatch {
930
+ constructor(i, r = {}) {
931
+ super(i, N(n, r));
932
+ }
933
+ static defaults(i) {
934
+ return t.defaults(N(n, i)).Minimatch;
935
+ }
936
+ },
937
+ AST: class extends t.AST {
938
+ constructor(i, r, o = {}) {
939
+ super(i, r, N(n, o));
940
+ }
941
+ static fromGlob(i, r = {}) {
942
+ return t.AST.fromGlob(i, N(n, r));
943
+ }
944
+ },
945
+ unescape: (s, i = {}) => t.unescape(s, N(n, i)),
946
+ escape: (s, i = {}) => t.escape(s, N(n, i)),
947
+ filter: (s, i = {}) => t.filter(s, N(n, i)),
948
+ defaults: (s) => t.defaults(N(n, s)),
949
+ makeRe: (s, i = {}) => t.makeRe(s, N(n, i)),
950
+ braceExpand: (s, i = {}) => t.braceExpand(s, N(n, i)),
951
+ match: (s, i, r = {}) => t.match(s, i, N(n, r)),
952
+ sep: t.sep,
953
+ GLOBSTAR: A
954
+ });
955
+ };
956
+ O.defaults = Zs;
957
+ ke = (n, t = {}) => (at(n), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n) ? [n] : ge(n, { max: t.braceExpandMax }));
958
+ O.braceExpand = ke;
959
+ Qs = (n, t = {}) => new D(n, t).makeRe();
960
+ O.makeRe = Qs;
961
+ ti = (n, t, e = {}) => {
962
+ let s = new D(t, e);
963
+ return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
964
+ };
965
+ O.match = ti;
966
+ ve = /[?*]|[+@!]\(.*?\)|\[|\]/, ei = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), D = class {
967
+ options;
968
+ set;
969
+ pattern;
970
+ windowsPathsNoEscape;
971
+ nonegate;
972
+ negate;
973
+ comment;
974
+ empty;
975
+ preserveMultipleSlashes;
976
+ partial;
977
+ globSet;
978
+ globParts;
979
+ nocase;
980
+ isWindows;
981
+ platform;
982
+ windowsNoMagicRoot;
983
+ regexp;
984
+ constructor(t, e = {}) {
985
+ at(t), e = e || {}, this.options = e, this.pattern = t, this.platform = e.platform || Ae, this.isWindows = this.platform === "win32";
986
+ let s = "allowWindowsEscape";
987
+ this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e[s] === !1, this.windowsPathsNoEscape && (this.pattern = this.pattern.replace(/\\/g, "/")), this.preserveMultipleSlashes = !!e.preserveMultipleSlashes, this.regexp = null, this.negate = !1, this.nonegate = !!e.nonegate, this.comment = !1, this.empty = !1, this.partial = !!e.partial, this.nocase = !!this.options.nocase, this.windowsNoMagicRoot = e.windowsNoMagicRoot !== void 0 ? e.windowsNoMagicRoot : !!(this.isWindows && this.nocase), this.globSet = [], this.globParts = [], this.set = [], this.make();
988
+ }
989
+ hasMagic() {
990
+ if (this.options.magicalBraces && this.set.length > 1) return !0;
991
+ for (let t of this.set) for (let e of t) if (typeof e != "string") return !0;
992
+ return !1;
993
+ }
994
+ debug(...t) {}
995
+ make() {
996
+ let t = this.pattern, e = this.options;
997
+ if (!e.nocomment && t.charAt(0) === "#") {
998
+ this.comment = !0;
999
+ return;
1000
+ }
1001
+ if (!t) {
1002
+ this.empty = !0;
1003
+ return;
1004
+ }
1005
+ this.parseNegate(), this.globSet = [...new Set(this.braceExpand())], e.debug && (this.debug = (...r) => console.error(...r)), this.debug(this.pattern, this.globSet);
1006
+ let s = this.globSet.map((r) => this.slashSplit(r));
1007
+ this.globParts = this.preprocess(s), this.debug(this.pattern, this.globParts);
1008
+ let i = this.globParts.map((r, o, h) => {
1009
+ if (this.isWindows && this.windowsNoMagicRoot) {
1010
+ let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ve.test(r[2])) && !ve.test(r[3]), l = /^[a-z]:/i.test(r[0]);
1011
+ if (a) return [...r.slice(0, 4), ...r.slice(4).map((u) => this.parse(u))];
1012
+ if (l) return [r[0], ...r.slice(1).map((u) => this.parse(u))];
1013
+ }
1014
+ return r.map((a) => this.parse(a));
1015
+ });
1016
+ if (this.debug(this.pattern, i), this.set = i.filter((r) => r.indexOf(!1) === -1), this.isWindows) for (let r = 0; r < this.set.length; r++) {
1017
+ let o = this.set[r];
1018
+ o[0] === "" && o[1] === "" && this.globParts[r][2] === "?" && typeof o[3] == "string" && /^[a-z]:$/i.test(o[3]) && (o[2] = "?");
1019
+ }
1020
+ this.debug(this.pattern, this.set);
1021
+ }
1022
+ preprocess(t) {
1023
+ if (this.options.noglobstar) for (let s = 0; s < t.length; s++) for (let i = 0; i < t[s].length; i++) t[s][i] === "**" && (t[s][i] = "*");
1024
+ let { optimizationLevel: e = 1 } = this.options;
1025
+ return e >= 2 ? (t = this.firstPhasePreProcess(t), t = this.secondPhasePreProcess(t)) : e >= 1 ? t = this.levelOneOptimize(t) : t = this.adjascentGlobstarOptimize(t), t;
1026
+ }
1027
+ adjascentGlobstarOptimize(t) {
1028
+ return t.map((e) => {
1029
+ let s = -1;
1030
+ for (; (s = e.indexOf("**", s + 1)) !== -1;) {
1031
+ let i = s;
1032
+ for (; e[i + 1] === "**";) i++;
1033
+ i !== s && e.splice(s, i - s);
1034
+ }
1035
+ return e;
1036
+ });
1037
+ }
1038
+ levelOneOptimize(t) {
1039
+ return t.map((e) => (e = e.reduce((s, i) => {
1040
+ let r = s[s.length - 1];
1041
+ return i === "**" && r === "**" ? s : i === ".." && r && r !== ".." && r !== "." && r !== "**" ? (s.pop(), s) : (s.push(i), s);
1042
+ }, []), e.length === 0 ? [""] : e));
1043
+ }
1044
+ levelTwoFileOptimize(t) {
1045
+ Array.isArray(t) || (t = this.slashSplit(t));
1046
+ let e = !1;
1047
+ do {
1048
+ if (e = !1, !this.preserveMultipleSlashes) {
1049
+ for (let i = 1; i < t.length - 1; i++) {
1050
+ let r = t[i];
1051
+ i === 1 && r === "" && t[0] === "" || (r === "." || r === "") && (e = !0, t.splice(i, 1), i--);
1052
+ }
1053
+ t[0] === "." && t.length === 2 && (t[1] === "." || t[1] === "") && (e = !0, t.pop());
1054
+ }
1055
+ let s = 0;
1056
+ for (; (s = t.indexOf("..", s + 1)) !== -1;) {
1057
+ let i = t[s - 1];
1058
+ i && i !== "." && i !== ".." && i !== "**" && (e = !0, t.splice(s - 1, 2), s -= 2);
1059
+ }
1060
+ } while (e);
1061
+ return t.length === 0 ? [""] : t;
1062
+ }
1063
+ firstPhasePreProcess(t) {
1064
+ let e = !1;
1065
+ do {
1066
+ e = !1;
1067
+ for (let s of t) {
1068
+ let i = -1;
1069
+ for (; (i = s.indexOf("**", i + 1)) !== -1;) {
1070
+ let o = i;
1071
+ for (; s[o + 1] === "**";) o++;
1072
+ o > i && s.splice(i + 1, o - i);
1073
+ let h = s[i + 1], a = s[i + 2], l = s[i + 3];
1074
+ if (h !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..") continue;
1075
+ e = !0, s.splice(i, 1);
1076
+ let u = s.slice(0);
1077
+ u[i] = "**", t.push(u), i--;
1078
+ }
1079
+ if (!this.preserveMultipleSlashes) {
1080
+ for (let o = 1; o < s.length - 1; o++) {
1081
+ let h = s[o];
1082
+ o === 1 && h === "" && s[0] === "" || (h === "." || h === "") && (e = !0, s.splice(o, 1), o--);
1083
+ }
1084
+ s[0] === "." && s.length === 2 && (s[1] === "." || s[1] === "") && (e = !0, s.pop());
1085
+ }
1086
+ let r = 0;
1087
+ for (; (r = s.indexOf("..", r + 1)) !== -1;) {
1088
+ let o = s[r - 1];
1089
+ if (o && o !== "." && o !== ".." && o !== "**") {
1090
+ e = !0;
1091
+ let a = r === 1 && s[r + 1] === "**" ? ["."] : [];
1092
+ s.splice(r - 1, 2, ...a), s.length === 0 && s.push(""), r -= 2;
1093
+ }
1094
+ }
1095
+ }
1096
+ } while (e);
1097
+ return t;
1098
+ }
1099
+ secondPhasePreProcess(t) {
1100
+ for (let e = 0; e < t.length - 1; e++) for (let s = e + 1; s < t.length; s++) {
1101
+ let i = this.partsMatch(t[e], t[s], !this.preserveMultipleSlashes);
1102
+ if (i) {
1103
+ t[e] = [], t[s] = i;
1104
+ break;
1105
+ }
1106
+ }
1107
+ return t.filter((e) => e.length);
1108
+ }
1109
+ partsMatch(t, e, s = !1) {
1110
+ let i = 0, r = 0, o = [], h = "";
1111
+ for (; i < t.length && r < e.length;) if (t[i] === e[r]) o.push(h === "b" ? e[r] : t[i]), i++, r++;
1112
+ else if (s && t[i] === "**" && e[r] === t[i + 1]) o.push(t[i]), i++;
1113
+ else if (s && e[r] === "**" && t[i] === e[r + 1]) o.push(e[r]), r++;
1114
+ else if (t[i] === "*" && e[r] && (this.options.dot || !e[r].startsWith(".")) && e[r] !== "**") {
1115
+ if (h === "b") return !1;
1116
+ h = "a", o.push(t[i]), i++, r++;
1117
+ } else if (e[r] === "*" && t[i] && (this.options.dot || !t[i].startsWith(".")) && t[i] !== "**") {
1118
+ if (h === "a") return !1;
1119
+ h = "b", o.push(e[r]), i++, r++;
1120
+ } else return !1;
1121
+ return t.length === e.length && o;
1122
+ }
1123
+ parseNegate() {
1124
+ if (this.nonegate) return;
1125
+ let t = this.pattern, e = !1, s = 0;
1126
+ for (let i = 0; i < t.length && t.charAt(i) === "!"; i++) e = !e, s++;
1127
+ s && (this.pattern = t.slice(s)), this.negate = e;
1128
+ }
1129
+ matchOne(t, e, s = !1) {
1130
+ let i = this.options;
1131
+ if (this.isWindows) {
1132
+ let p = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), w = !p && t[0] === "" && t[1] === "" && t[2] === "?" && /^[a-z]:$/i.test(t[3]), g = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), S = !g && e[0] === "" && e[1] === "" && e[2] === "?" && typeof e[3] == "string" && /^[a-z]:$/i.test(e[3]), E = w ? 3 : p ? 0 : void 0, y = S ? 3 : g ? 0 : void 0;
1133
+ if (typeof E == "number" && typeof y == "number") {
1134
+ let [b, z] = [t[E], e[y]];
1135
+ b.toLowerCase() === z.toLowerCase() && (e[y] = b, y > E ? e = e.slice(y) : E > y && (t = t.slice(E)));
1136
+ }
1137
+ }
1138
+ let { optimizationLevel: r = 1 } = this.options;
1139
+ r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, {
1140
+ file: t,
1141
+ pattern: e
1142
+ }), this.debug("matchOne", t.length, e.length);
1143
+ for (var o = 0, h = 0, a = t.length, l = e.length; o < a && h < l; o++, h++) {
1144
+ this.debug("matchOne loop");
1145
+ var u = e[h], c = t[o];
1146
+ if (this.debug(e, u, c), u === !1) return !1;
1147
+ if (u === A) {
1148
+ this.debug("GLOBSTAR", [
1149
+ e,
1150
+ u,
1151
+ c
1152
+ ]);
1153
+ var d = o, f = h + 1;
1154
+ if (f === l) {
1155
+ for (this.debug("** at the end"); o < a; o++) if (t[o] === "." || t[o] === ".." || !i.dot && t[o].charAt(0) === ".") return !1;
1156
+ return !0;
1157
+ }
1158
+ for (; d < a;) {
1159
+ var m = t[d];
1160
+ if (this.debug(`
1161
+ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) return this.debug("globstar found match!", d, a, m), !0;
1162
+ if (m === "." || m === ".." || !i.dot && m.charAt(0) === ".") {
1163
+ this.debug("dot detected!", t, d, e, f);
1164
+ break;
1165
+ }
1166
+ this.debug("globstar swallow a segment, and continue"), d++;
1167
+ }
1168
+ return !!(s && (this.debug(`
1169
+ >>> no match, partial?`, t, d, e, f), d === a));
1170
+ }
1171
+ let p;
1172
+ if (typeof u == "string" ? (p = c === u, this.debug("string match", u, c, p)) : (p = u.test(c), this.debug("pattern match", u, c, p)), !p) return !1;
1173
+ }
1174
+ if (o === a && h === l) return !0;
1175
+ if (o === a) return s;
1176
+ if (h === l) return o === a - 1 && t[o] === "";
1177
+ throw new Error("wtf?");
1178
+ }
1179
+ braceExpand() {
1180
+ return ke(this.pattern, this.options);
1181
+ }
1182
+ parse(t) {
1183
+ at(t);
1184
+ let e = this.options;
1185
+ if (t === "**") return A;
1186
+ if (t === "") return "";
1187
+ let s, i = null;
1188
+ (s = t.match(js)) ? i = e.dot ? zs : Is : (s = t.match(Rs)) ? i = (e.nocase ? e.dot ? Ms : Ds : e.dot ? Fs : Os)(s[1]) : (s = t.match(Bs)) ? i = (e.nocase ? e.dot ? $s : Us : e.dot ? Gs : Hs)(s) : (s = t.match(Ns)) ? i = e.dot ? Ls : _s : (s = t.match(Ws)) && (i = Ps);
1189
+ let r = Q.fromGlob(t, this.options).toMMPattern();
1190
+ return i && typeof r == "object" && Reflect.defineProperty(r, "test", { value: i }), r;
1191
+ }
1192
+ makeRe() {
1193
+ if (this.regexp || this.regexp === !1) return this.regexp;
1194
+ let t = this.set;
1195
+ if (!t.length) return this.regexp = !1, this.regexp;
1196
+ let e = this.options, s = e.noglobstar ? Vs : e.dot ? Ys : Xs, i = new Set(e.nocase ? ["i"] : []), r = t.map((a) => {
1197
+ let l = a.map((c) => {
1198
+ if (c instanceof RegExp) for (let d of c.flags.split("")) i.add(d);
1199
+ return typeof c == "string" ? ei(c) : c === A ? A : c._src;
1200
+ });
1201
+ l.forEach((c, d) => {
1202
+ let f = l[d + 1], m = l[d - 1];
1203
+ c !== A || m === A || (m === void 0 ? f !== void 0 && f !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d] = s : f === void 0 ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : f !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + f, l[d + 1] = A));
1204
+ });
1205
+ let u = l.filter((c) => c !== A);
1206
+ if (this.partial && u.length >= 1) {
1207
+ let c = [];
1208
+ for (let d = 1; d <= u.length; d++) c.push(u.slice(0, d).join("/"));
1209
+ return "(?:" + c.join("|") + ")";
1210
+ }
1211
+ return u.join("/");
1212
+ }).join("|"), [o, h] = t.length > 1 ? ["(?:", ")"] : ["", ""];
1213
+ r = "^" + o + r + h + "$", this.partial && (r = "^(?:\\/|" + o + r.slice(1, -1) + h + ")$"), this.negate && (r = "^(?!" + r + ").+$");
1214
+ try {
1215
+ this.regexp = new RegExp(r, [...i].join(""));
1216
+ } catch {
1217
+ this.regexp = !1;
1218
+ }
1219
+ return this.regexp;
1220
+ }
1221
+ slashSplit(t) {
1222
+ return this.preserveMultipleSlashes ? t.split("/") : this.isWindows && /^\/\/[^\/]+/.test(t) ? ["", ...t.split(/\/+/)] : t.split(/\/+/);
1223
+ }
1224
+ match(t, e = this.partial) {
1225
+ if (this.debug("match", t, this.pattern), this.comment) return !1;
1226
+ if (this.empty) return t === "";
1227
+ if (t === "/" && e) return !0;
1228
+ let s = this.options;
1229
+ this.isWindows && (t = t.split("\\").join("/"));
1230
+ let i = this.slashSplit(t);
1231
+ this.debug(this.pattern, "split", i);
1232
+ let r = this.set;
1233
+ this.debug(this.pattern, "set", r);
1234
+ let o = i[i.length - 1];
1235
+ if (!o) for (let h = i.length - 2; !o && h >= 0; h--) o = i[h];
1236
+ for (let h = 0; h < r.length; h++) {
1237
+ let a = r[h], l = i;
1238
+ if (s.matchBase && a.length === 1 && (l = [o]), this.matchOne(l, a, e)) return s.flipNegate ? !0 : !this.negate;
1239
+ }
1240
+ return s.flipNegate ? !1 : this.negate;
1241
+ }
1242
+ static defaults(t) {
1243
+ return O.defaults(t).Minimatch;
1244
+ }
1245
+ };
1246
+ O.AST = Q;
1247
+ O.Minimatch = D;
1248
+ O.escape = tt;
1249
+ O.unescape = W;
1250
+ si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, Oe = /* @__PURE__ */ new Set(), Vt = typeof process == "object" && process ? process : {}, Fe = (n, t, e, s) => {
1251
+ typeof Vt.emitWarning == "function" ? Vt.emitWarning(n, t, e, s) : console.error(`[${e}] ${t}: ${n}`);
1252
+ }, At = globalThis.AbortController, Re = globalThis.AbortSignal;
1253
+ if (typeof At > "u") {
1254
+ Re = class {
1255
+ onabort;
1256
+ _onabort = [];
1257
+ reason;
1258
+ aborted = !1;
1259
+ addEventListener(e, s) {
1260
+ this._onabort.push(s);
1261
+ }
1262
+ }, At = class {
1263
+ constructor() {
1264
+ t();
1265
+ }
1266
+ signal = new Re();
1267
+ abort(e) {
1268
+ if (!this.signal.aborted) {
1269
+ this.signal.reason = e, this.signal.aborted = !0;
1270
+ for (let s of this.signal._onabort) s(e);
1271
+ this.signal.onabort?.(e);
1272
+ }
1273
+ }
1274
+ };
1275
+ let n = Vt.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
1276
+ n && (n = !1, Fe("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
1277
+ };
1278
+ }
1279
+ ii = (n) => !Oe.has(n);
1280
+ q = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), De = (n) => q(n) ? n <= Math.pow(2, 8) ? Uint8Array : n <= Math.pow(2, 16) ? Uint16Array : n <= Math.pow(2, 32) ? Uint32Array : n <= Number.MAX_SAFE_INTEGER ? Tt : null : null, Tt = class extends Array {
1281
+ constructor(n) {
1282
+ super(n), this.fill(0);
1283
+ }
1284
+ }, ri = class ct {
1285
+ heap;
1286
+ length;
1287
+ static #t = !1;
1288
+ static create(t) {
1289
+ let e = De(t);
1290
+ if (!e) return [];
1291
+ ct.#t = !0;
1292
+ let s = new ct(t, e);
1293
+ return ct.#t = !1, s;
1294
+ }
1295
+ constructor(t, e) {
1296
+ if (!ct.#t) throw new TypeError("instantiate Stack using Stack.create(n)");
1297
+ this.heap = new e(t), this.length = 0;
1298
+ }
1299
+ push(t) {
1300
+ this.heap[this.length++] = t;
1301
+ }
1302
+ pop() {
1303
+ return this.heap[--this.length];
1304
+ }
1305
+ }, ft = class Me {
1306
+ #t;
1307
+ #s;
1308
+ #n;
1309
+ #r;
1310
+ #o;
1311
+ #S;
1312
+ #w;
1313
+ #c;
1314
+ get perf() {
1315
+ return this.#c;
1316
+ }
1317
+ ttl;
1318
+ ttlResolution;
1319
+ ttlAutopurge;
1320
+ updateAgeOnGet;
1321
+ updateAgeOnHas;
1322
+ allowStale;
1323
+ noDisposeOnSet;
1324
+ noUpdateTTL;
1325
+ maxEntrySize;
1326
+ sizeCalculation;
1327
+ noDeleteOnFetchRejection;
1328
+ noDeleteOnStaleGet;
1329
+ allowStaleOnFetchAbort;
1330
+ allowStaleOnFetchRejection;
1331
+ ignoreFetchAbort;
1332
+ #h;
1333
+ #u;
1334
+ #f;
1335
+ #a;
1336
+ #i;
1337
+ #d;
1338
+ #E;
1339
+ #b;
1340
+ #p;
1341
+ #R;
1342
+ #m;
1343
+ #C;
1344
+ #T;
1345
+ #g;
1346
+ #y;
1347
+ #x;
1348
+ #A;
1349
+ #e;
1350
+ #_;
1351
+ static unsafeExposeInternals(t) {
1352
+ return {
1353
+ starts: t.#T,
1354
+ ttls: t.#g,
1355
+ autopurgeTimers: t.#y,
1356
+ sizes: t.#C,
1357
+ keyMap: t.#f,
1358
+ keyList: t.#a,
1359
+ valList: t.#i,
1360
+ next: t.#d,
1361
+ prev: t.#E,
1362
+ get head() {
1363
+ return t.#b;
1364
+ },
1365
+ get tail() {
1366
+ return t.#p;
1367
+ },
1368
+ free: t.#R,
1369
+ isBackgroundFetch: (e) => t.#l(e),
1370
+ backgroundFetch: (e, s, i, r) => t.#U(e, s, i, r),
1371
+ moveToTail: (e) => t.#W(e),
1372
+ indexes: (e) => t.#F(e),
1373
+ rindexes: (e) => t.#D(e),
1374
+ isStale: (e) => t.#v(e)
1375
+ };
1376
+ }
1377
+ get max() {
1378
+ return this.#t;
1379
+ }
1380
+ get maxSize() {
1381
+ return this.#s;
1382
+ }
1383
+ get calculatedSize() {
1384
+ return this.#u;
1385
+ }
1386
+ get size() {
1387
+ return this.#h;
1388
+ }
1389
+ get fetchMethod() {
1390
+ return this.#S;
1391
+ }
1392
+ get memoMethod() {
1393
+ return this.#w;
1394
+ }
1395
+ get dispose() {
1396
+ return this.#n;
1397
+ }
1398
+ get onInsert() {
1399
+ return this.#r;
1400
+ }
1401
+ get disposeAfter() {
1402
+ return this.#o;
1403
+ }
1404
+ constructor(t) {
1405
+ let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: u, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: f, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
1406
+ if (J !== void 0 && typeof J?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1407
+ if (this.#c = J ?? si, e !== 0 && !q(e)) throw new TypeError("max option must be a nonnegative integer");
1408
+ let Z = e ? De(e) : Array;
1409
+ if (!Z) throw new Error("invalid max value: " + e);
1410
+ if (this.#t = e, this.#s = m, this.maxEntrySize = p || this.#s, this.sizeCalculation = w, this.sizeCalculation) {
1411
+ if (!this.#s && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1412
+ if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
1413
+ }
1414
+ if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
1415
+ if (this.#w = S, g !== void 0 && typeof g != "function") throw new TypeError("fetchMethod must be a function if specified");
1416
+ if (this.#S = g, this.#A = !!g, this.#f = /* @__PURE__ */ new Map(), this.#a = new Array(e).fill(void 0), this.#i = new Array(e).fill(void 0), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u == "function" && (this.#r = u), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = void 0, this.#m = void 0), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
1417
+ if (this.#s !== 0 && !q(this.#s)) throw new TypeError("maxSize must be a positive integer if specified");
1418
+ if (!q(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1419
+ this.#G();
1420
+ }
1421
+ if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!y, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!h, this.ttlResolution = q(i) || i === 0 ? i : 1, this.ttlAutopurge = !!r, this.ttl = s || 0, this.ttl) {
1422
+ if (!q(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1423
+ this.#M();
1424
+ }
1425
+ if (this.#t === 0 && this.ttl === 0 && this.#s === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1426
+ if (!this.ttlAutopurge && !this.#t && !this.#s) {
1427
+ let $t = "LRU_CACHE_UNBOUNDED";
1428
+ ii($t) && (Oe.add($t), Fe("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", $t, Me));
1429
+ }
1430
+ }
1431
+ getRemainingTTL(t) {
1432
+ return this.#f.has(t) ? Infinity : 0;
1433
+ }
1434
+ #M() {
1435
+ let t = new Tt(this.#t), e = new Tt(this.#t);
1436
+ this.#g = t, this.#T = e;
1437
+ let s = this.ttlAutopurge ? new Array(this.#t) : void 0;
1438
+ this.#y = s, this.#j = (o, h, a = this.#c.now()) => {
1439
+ if (e[o] = h !== 0 ? a : 0, t[o] = h, s?.[o] && (clearTimeout(s[o]), s[o] = void 0), h !== 0 && s) {
1440
+ let l = setTimeout(() => {
1441
+ this.#v(o) && this.#O(this.#a[o], "expire");
1442
+ }, h + 1);
1443
+ l.unref && l.unref(), s[o] = l;
1444
+ }
1445
+ }, this.#k = (o) => {
1446
+ e[o] = t[o] !== 0 ? this.#c.now() : 0;
1447
+ }, this.#N = (o, h) => {
1448
+ if (t[h]) {
1449
+ let a = t[h], l = e[h];
1450
+ if (!a || !l) return;
1451
+ o.ttl = a, o.start = l, o.now = i || r();
1452
+ o.remainingTTL = a - (o.now - l);
1453
+ }
1454
+ };
1455
+ let i = 0, r = () => {
1456
+ let o = this.#c.now();
1457
+ if (this.ttlResolution > 0) {
1458
+ i = o;
1459
+ let h = setTimeout(() => i = 0, this.ttlResolution);
1460
+ h.unref && h.unref();
1461
+ }
1462
+ return o;
1463
+ };
1464
+ this.getRemainingTTL = (o) => {
1465
+ let h = this.#f.get(o);
1466
+ if (h === void 0) return 0;
1467
+ let a = t[h], l = e[h];
1468
+ if (!a || !l) return Infinity;
1469
+ return a - ((i || r()) - l);
1470
+ }, this.#v = (o) => {
1471
+ let h = e[o], a = t[o];
1472
+ return !!a && !!h && (i || r()) - h > a;
1473
+ };
1474
+ }
1475
+ #k = () => {};
1476
+ #N = () => {};
1477
+ #j = () => {};
1478
+ #v = () => !1;
1479
+ #G() {
1480
+ let t = new Tt(this.#t);
1481
+ this.#u = 0, this.#C = t, this.#P = (e) => {
1482
+ this.#u -= t[e], t[e] = 0;
1483
+ }, this.#I = (e, s, i, r) => {
1484
+ if (this.#l(s)) return 0;
1485
+ if (!q(i)) if (r) {
1486
+ if (typeof r != "function") throw new TypeError("sizeCalculation must be a function");
1487
+ if (i = r(s, e), !q(i)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1488
+ } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1489
+ return i;
1490
+ }, this.#L = (e, s, i) => {
1491
+ if (t[e] = s, this.#s) {
1492
+ let r = this.#s - t[e];
1493
+ for (; this.#u > r;) this.#B(!0);
1494
+ }
1495
+ this.#u += t[e], i && (i.entrySize = s, i.totalCalculatedSize = this.#u);
1496
+ };
1497
+ }
1498
+ #P = (t) => {};
1499
+ #L = (t, e, s) => {};
1500
+ #I = (t, e, s, i) => {
1501
+ if (s || i) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
1502
+ return 0;
1503
+ };
1504
+ *#F({ allowStale: t = this.allowStale } = {}) {
1505
+ if (this.#h) for (let e = this.#p; !(!this.#z(e) || ((t || !this.#v(e)) && (yield e), e === this.#b));) e = this.#E[e];
1506
+ }
1507
+ *#D({ allowStale: t = this.allowStale } = {}) {
1508
+ if (this.#h) for (let e = this.#b; !(!this.#z(e) || ((t || !this.#v(e)) && (yield e), e === this.#p));) e = this.#d[e];
1509
+ }
1510
+ #z(t) {
1511
+ return t !== void 0 && this.#f.get(this.#a[t]) === t;
1512
+ }
1513
+ *entries() {
1514
+ for (let t of this.#F()) this.#i[t] !== void 0 && this.#a[t] !== void 0 && !this.#l(this.#i[t]) && (yield [this.#a[t], this.#i[t]]);
1515
+ }
1516
+ *rentries() {
1517
+ for (let t of this.#D()) this.#i[t] !== void 0 && this.#a[t] !== void 0 && !this.#l(this.#i[t]) && (yield [this.#a[t], this.#i[t]]);
1518
+ }
1519
+ *keys() {
1520
+ for (let t of this.#F()) {
1521
+ let e = this.#a[t];
1522
+ e !== void 0 && !this.#l(this.#i[t]) && (yield e);
1523
+ }
1524
+ }
1525
+ *rkeys() {
1526
+ for (let t of this.#D()) {
1527
+ let e = this.#a[t];
1528
+ e !== void 0 && !this.#l(this.#i[t]) && (yield e);
1529
+ }
1530
+ }
1531
+ *values() {
1532
+ for (let t of this.#F()) this.#i[t] !== void 0 && !this.#l(this.#i[t]) && (yield this.#i[t]);
1533
+ }
1534
+ *rvalues() {
1535
+ for (let t of this.#D()) this.#i[t] !== void 0 && !this.#l(this.#i[t]) && (yield this.#i[t]);
1536
+ }
1537
+ [Symbol.iterator]() {
1538
+ return this.entries();
1539
+ }
1540
+ [Symbol.toStringTag] = "LRUCache";
1541
+ find(t, e = {}) {
1542
+ for (let s of this.#F()) {
1543
+ let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
1544
+ if (r !== void 0 && t(r, this.#a[s], this)) return this.get(this.#a[s], e);
1545
+ }
1546
+ }
1547
+ forEach(t, e = this) {
1548
+ for (let s of this.#F()) {
1549
+ let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
1550
+ r !== void 0 && t.call(e, r, this.#a[s], this);
1551
+ }
1552
+ }
1553
+ rforEach(t, e = this) {
1554
+ for (let s of this.#D()) {
1555
+ let i = this.#i[s], r = this.#l(i) ? i.__staleWhileFetching : i;
1556
+ r !== void 0 && t.call(e, r, this.#a[s], this);
1557
+ }
1558
+ }
1559
+ purgeStale() {
1560
+ let t = !1;
1561
+ for (let e of this.#D({ allowStale: !0 })) this.#v(e) && (this.#O(this.#a[e], "expire"), t = !0);
1562
+ return t;
1563
+ }
1564
+ info(t) {
1565
+ let e = this.#f.get(t);
1566
+ if (e === void 0) return;
1567
+ let s = this.#i[e], i = this.#l(s) ? s.__staleWhileFetching : s;
1568
+ if (i === void 0) return;
1569
+ let r = { value: i };
1570
+ if (this.#g && this.#T) {
1571
+ let o = this.#g[e], h = this.#T[e];
1572
+ if (o && h) r.ttl = o - (this.#c.now() - h), r.start = Date.now();
1573
+ }
1574
+ return this.#C && (r.size = this.#C[e]), r;
1575
+ }
1576
+ dump() {
1577
+ let t = [];
1578
+ for (let e of this.#F({ allowStale: !0 })) {
1579
+ let s = this.#a[e], i = this.#i[e], r = this.#l(i) ? i.__staleWhileFetching : i;
1580
+ if (r === void 0 || s === void 0) continue;
1581
+ let o = { value: r };
1582
+ if (this.#g && this.#T) {
1583
+ o.ttl = this.#g[e];
1584
+ let h = this.#c.now() - this.#T[e];
1585
+ o.start = Math.floor(Date.now() - h);
1586
+ }
1587
+ this.#C && (o.size = this.#C[e]), t.unshift([s, o]);
1588
+ }
1589
+ return t;
1590
+ }
1591
+ load(t) {
1592
+ this.clear();
1593
+ for (let [e, s] of t) {
1594
+ if (s.start) {
1595
+ let i = Date.now() - s.start;
1596
+ s.start = this.#c.now() - i;
1597
+ }
1598
+ this.set(e, s.value, s);
1599
+ }
1600
+ }
1601
+ set(t, e, s = {}) {
1602
+ if (e === void 0) return this.delete(t), this;
1603
+ let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u = this.#I(t, e, s.size || 0, h);
1604
+ if (this.maxEntrySize && u > this.maxEntrySize) return a && (a.set = "miss", a.maxEntrySizeExceeded = !0), this.#O(t, "set"), this;
1605
+ let c = this.#h === 0 ? void 0 : this.#f.get(t);
1606
+ if (c === void 0) c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(!1) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, u, a), a && (a.set = "add"), l = !1, this.#_ && this.#r?.(e, t, "add");
1607
+ else {
1608
+ this.#W(c);
1609
+ let d = this.#i[c];
1610
+ if (e !== d) {
1611
+ if (this.#A && this.#l(d)) {
1612
+ d.__abortController.abort(/* @__PURE__ */ new Error("replaced"));
1613
+ let { __staleWhileFetching: f } = d;
1614
+ f !== void 0 && !o && (this.#x && this.#n?.(f, t, "set"), this.#e && this.#m?.push([
1615
+ f,
1616
+ t,
1617
+ "set"
1618
+ ]));
1619
+ } else o || (this.#x && this.#n?.(d, t, "set"), this.#e && this.#m?.push([
1620
+ d,
1621
+ t,
1622
+ "set"
1623
+ ]));
1624
+ if (this.#P(c), this.#L(c, u, a), this.#i[c] = e, a) {
1625
+ a.set = "replace";
1626
+ let f = d && this.#l(d) ? d.__staleWhileFetching : d;
1627
+ f !== void 0 && (a.oldValue = f);
1628
+ }
1629
+ } else a && (a.set = "update");
1630
+ this.#_ && this.onInsert?.(e, t, e === d ? "update" : "replace");
1631
+ }
1632
+ if (i !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c, i, r), a && this.#N(a, c)), !o && this.#e && this.#m) {
1633
+ let d = this.#m, f;
1634
+ for (; f = d?.shift();) this.#o?.(...f);
1635
+ }
1636
+ return this;
1637
+ }
1638
+ pop() {
1639
+ try {
1640
+ for (; this.#h;) {
1641
+ let t = this.#i[this.#b];
1642
+ if (this.#B(!0), this.#l(t)) {
1643
+ if (t.__staleWhileFetching) return t.__staleWhileFetching;
1644
+ } else if (t !== void 0) return t;
1645
+ }
1646
+ } finally {
1647
+ if (this.#e && this.#m) {
1648
+ let t = this.#m, e;
1649
+ for (; e = t?.shift();) this.#o?.(...e);
1650
+ }
1651
+ }
1652
+ }
1653
+ #B(t) {
1654
+ let e = this.#b, s = this.#a[e], i = this.#i[e];
1655
+ return this.#A && this.#l(i) ? i.__abortController.abort(/* @__PURE__ */ new Error("evicted")) : (this.#x || this.#e) && (this.#x && this.#n?.(i, s, "evict"), this.#e && this.#m?.push([
1656
+ i,
1657
+ s,
1658
+ "evict"
1659
+ ])), this.#P(e), this.#y?.[e] && (clearTimeout(this.#y[e]), this.#y[e] = void 0), t && (this.#a[e] = void 0, this.#i[e] = void 0, this.#R.push(e)), this.#h === 1 ? (this.#b = this.#p = 0, this.#R.length = 0) : this.#b = this.#d[e], this.#f.delete(s), this.#h--, e;
1660
+ }
1661
+ has(t, e = {}) {
1662
+ let { updateAgeOnHas: s = this.updateAgeOnHas, status: i } = e, r = this.#f.get(t);
1663
+ if (r !== void 0) {
1664
+ let o = this.#i[r];
1665
+ if (this.#l(o) && o.__staleWhileFetching === void 0) return !1;
1666
+ if (this.#v(r)) i && (i.has = "stale", this.#N(i, r));
1667
+ else return s && this.#k(r), i && (i.has = "hit", this.#N(i, r)), !0;
1668
+ } else i && (i.has = "miss");
1669
+ return !1;
1670
+ }
1671
+ peek(t, e = {}) {
1672
+ let { allowStale: s = this.allowStale } = e, i = this.#f.get(t);
1673
+ if (i === void 0 || !s && this.#v(i)) return;
1674
+ let r = this.#i[i];
1675
+ return this.#l(r) ? r.__staleWhileFetching : r;
1676
+ }
1677
+ #U(t, e, s, i) {
1678
+ let r = e === void 0 ? void 0 : this.#i[e];
1679
+ if (this.#l(r)) return r;
1680
+ let o = new At(), { signal: h } = s;
1681
+ h?.addEventListener("abort", () => o.abort(h.reason), { signal: o.signal });
1682
+ let a = {
1683
+ signal: o.signal,
1684
+ options: s,
1685
+ context: i
1686
+ }, l = (p, w = !1) => {
1687
+ let { aborted: g } = o.signal, S = s.ignoreFetchAbort && p !== void 0, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== void 0);
1688
+ if (s.status && (g && !w ? (s.status.fetchAborted = !0, s.status.fetchError = o.signal.reason, S && (s.status.fetchAbortIgnored = !0)) : s.status.fetchResolved = !0), g && !S && !w) return c(o.signal.reason, E);
1689
+ let y = f, b = this.#i[e];
1690
+ return (b === f || S && w && b === void 0) && (p === void 0 ? y.__staleWhileFetching !== void 0 ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = !0), this.set(t, p, a.options))), p;
1691
+ }, u = (p) => (s.status && (s.status.fetchRejected = !0, s.status.fetchError = p), c(p, !1)), c = (p, w) => {
1692
+ let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = f;
1693
+ if (this.#i[e] === f && (!y || !w && b.__staleWhileFetching === void 0 ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E) return s.status && b.__staleWhileFetching !== void 0 && (s.status.returnedStale = !0), b.__staleWhileFetching;
1694
+ if (b.__returned === b) throw p;
1695
+ }, d = (p, w) => {
1696
+ let g = this.#S?.(t, r, a);
1697
+ g && g instanceof Promise && g.then((S) => p(S === void 0 ? void 0 : S), w), o.signal.addEventListener("abort", () => {
1698
+ (!s.ignoreFetchAbort || s.allowStaleOnFetchAbort) && (p(void 0), s.allowStaleOnFetchAbort && (p = (S) => l(S, !0)));
1699
+ });
1700
+ };
1701
+ s.status && (s.status.fetchDispatched = !0);
1702
+ let f = new Promise(d).then(l, u), m = Object.assign(f, {
1703
+ __abortController: o,
1704
+ __staleWhileFetching: r,
1705
+ __returned: void 0
1706
+ });
1707
+ return e === void 0 ? (this.set(t, m, {
1708
+ ...a.options,
1709
+ status: void 0
1710
+ }), e = this.#f.get(t)) : this.#i[e] = m, m;
1711
+ }
1712
+ #l(t) {
1713
+ if (!this.#A) return !1;
1714
+ let e = t;
1715
+ return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof At;
1716
+ }
1717
+ async fetch(t, e = {}) {
1718
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = !1, status: g, signal: S } = e;
1719
+ if (!this.#A) return g && (g.fetch = "get"), this.get(t, {
1720
+ allowStale: s,
1721
+ updateAgeOnGet: i,
1722
+ noDeleteOnStaleGet: r,
1723
+ status: g
1724
+ });
1725
+ let E = {
1726
+ allowStale: s,
1727
+ updateAgeOnGet: i,
1728
+ noDeleteOnStaleGet: r,
1729
+ ttl: o,
1730
+ noDisposeOnSet: h,
1731
+ size: a,
1732
+ sizeCalculation: l,
1733
+ noUpdateTTL: u,
1734
+ noDeleteOnFetchRejection: c,
1735
+ allowStaleOnFetchRejection: d,
1736
+ allowStaleOnFetchAbort: m,
1737
+ ignoreFetchAbort: f,
1738
+ status: g,
1739
+ signal: S
1740
+ }, y = this.#f.get(t);
1741
+ if (y === void 0) {
1742
+ g && (g.fetch = "miss");
1743
+ let b = this.#U(t, y, E, p);
1744
+ return b.__returned = b;
1745
+ } else {
1746
+ let b = this.#i[y];
1747
+ if (this.#l(b)) {
1748
+ let Z = s && b.__staleWhileFetching !== void 0;
1749
+ return g && (g.fetch = "inflight", Z && (g.returnedStale = !0)), Z ? b.__staleWhileFetching : b.__returned = b;
1750
+ }
1751
+ let z = this.#v(y);
1752
+ if (!w && !z) return g && (g.fetch = "hit"), this.#W(y), i && this.#k(y), g && this.#N(g, y), b;
1753
+ let $ = this.#U(t, y, E, p), J = $.__staleWhileFetching !== void 0 && s;
1754
+ return g && (g.fetch = z ? "stale" : "refresh", J && z && (g.returnedStale = !0)), J ? $.__staleWhileFetching : $.__returned = $;
1755
+ }
1756
+ }
1757
+ async forceFetch(t, e = {}) {
1758
+ let s = await this.fetch(t, e);
1759
+ if (s === void 0) throw new Error("fetch() returned undefined");
1760
+ return s;
1761
+ }
1762
+ memo(t, e = {}) {
1763
+ let s = this.#w;
1764
+ if (!s) throw new Error("no memoMethod provided to constructor");
1765
+ let { context: i, forceRefresh: r, ...o } = e, h = this.get(t, o);
1766
+ if (!r && h !== void 0) return h;
1767
+ let a = s(t, h, {
1768
+ options: o,
1769
+ context: i
1770
+ });
1771
+ return this.set(t, a, o), a;
1772
+ }
1773
+ get(t, e = {}) {
1774
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, status: o } = e, h = this.#f.get(t);
1775
+ if (h !== void 0) {
1776
+ let a = this.#i[h], l = this.#l(a);
1777
+ return o && this.#N(o, h), this.#v(h) ? (o && (o.get = "stale"), l ? (o && s && a.__staleWhileFetching !== void 0 && (o.returnedStale = !0), s ? a.__staleWhileFetching : void 0) : (r || this.#O(t, "expire"), o && s && (o.returnedStale = !0), s ? a : void 0)) : (o && (o.get = "hit"), l ? a.__staleWhileFetching : (this.#W(h), i && this.#k(h), a));
1778
+ } else o && (o.get = "miss");
1779
+ }
1780
+ #$(t, e) {
1781
+ this.#E[e] = t, this.#d[t] = e;
1782
+ }
1783
+ #W(t) {
1784
+ t !== this.#p && (t === this.#b ? this.#b = this.#d[t] : this.#$(this.#E[t], this.#d[t]), this.#$(this.#p, t), this.#p = t);
1785
+ }
1786
+ delete(t) {
1787
+ return this.#O(t, "delete");
1788
+ }
1789
+ #O(t, e) {
1790
+ let s = !1;
1791
+ if (this.#h !== 0) {
1792
+ let i = this.#f.get(t);
1793
+ if (i !== void 0) if (this.#y?.[i] && (clearTimeout(this.#y?.[i]), this.#y[i] = void 0), s = !0, this.#h === 1) this.#H(e);
1794
+ else {
1795
+ this.#P(i);
1796
+ let r = this.#i[i];
1797
+ if (this.#l(r) ? r.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#x || this.#e) && (this.#x && this.#n?.(r, t, e), this.#e && this.#m?.push([
1798
+ r,
1799
+ t,
1800
+ e
1801
+ ])), this.#f.delete(t), this.#a[i] = void 0, this.#i[i] = void 0, i === this.#p) this.#p = this.#E[i];
1802
+ else if (i === this.#b) this.#b = this.#d[i];
1803
+ else {
1804
+ let o = this.#E[i];
1805
+ this.#d[o] = this.#d[i];
1806
+ let h = this.#d[i];
1807
+ this.#E[h] = this.#E[i];
1808
+ }
1809
+ this.#h--, this.#R.push(i);
1810
+ }
1811
+ }
1812
+ if (this.#e && this.#m?.length) {
1813
+ let i = this.#m, r;
1814
+ for (; r = i?.shift();) this.#o?.(...r);
1815
+ }
1816
+ return s;
1817
+ }
1818
+ clear() {
1819
+ return this.#H("delete");
1820
+ }
1821
+ #H(t) {
1822
+ for (let e of this.#D({ allowStale: !0 })) {
1823
+ let s = this.#i[e];
1824
+ if (this.#l(s)) s.__abortController.abort(/* @__PURE__ */ new Error("deleted"));
1825
+ else {
1826
+ let i = this.#a[e];
1827
+ this.#x && this.#n?.(s, i, t), this.#e && this.#m?.push([
1828
+ s,
1829
+ i,
1830
+ t
1831
+ ]);
1832
+ }
1833
+ }
1834
+ if (this.#f.clear(), this.#i.fill(void 0), this.#a.fill(void 0), this.#g && this.#T) {
1835
+ this.#g.fill(0), this.#T.fill(0);
1836
+ for (let e of this.#y ?? []) e !== void 0 && clearTimeout(e);
1837
+ this.#y?.fill(void 0);
1838
+ }
1839
+ if (this.#C && this.#C.fill(0), this.#b = 0, this.#p = 0, this.#R.length = 0, this.#u = 0, this.#h = 0, this.#e && this.#m) {
1840
+ let e = this.#m, s;
1841
+ for (; s = e?.shift();) this.#o?.(...s);
1842
+ }
1843
+ }
1844
+ };
1845
+ Ne = typeof process == "object" && process ? process : {
1846
+ stdout: null,
1847
+ stderr: null
1848
+ }, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof Pe || hi(n) || ai(n)), hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== Pe.Writable.prototype.pipe, ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function", G = Symbol("EOF"), H = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), kt = Symbol("emittingEnd"), ut = Symbol("emittedError"), Rt = Symbol("closed"), _e = Symbol("read"), Ot = Symbol("flush"), Le = Symbol("flushChunk"), P = Symbol("encoding"), et = Symbol("decoder"), v = Symbol("flowing"), dt = Symbol("paused"), st = Symbol("resume"), C = Symbol("buffer"), F = Symbol("pipes"), T = Symbol("bufferLength"), Yt = Symbol("bufferPush"), Ft = Symbol("bufferShift"), k = Symbol("objectMode"), x = Symbol("destroyed"), Xt = Symbol("error"), Jt = Symbol("emitData"), We = Symbol("emitEnd"), Zt = Symbol("emitEnd2"), B = Symbol("async"), Qt = Symbol("abort"), Dt = Symbol("aborted"), pt = Symbol("signal"), Y = Symbol("dataListeners"), M = Symbol("discarded"), mt = (n) => Promise.resolve().then(n), li = (n) => n(), ci = (n) => n === "end" || n === "finish" || n === "prefinish", fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), Mt = class {
1849
+ src;
1850
+ dest;
1851
+ opts;
1852
+ ondrain;
1853
+ constructor(t, e, s) {
1854
+ this.src = t, this.dest = e, this.opts = s, this.ondrain = () => t[st](), this.dest.on("drain", this.ondrain);
1855
+ }
1856
+ unpipe() {
1857
+ this.dest.removeListener("drain", this.ondrain);
1858
+ }
1859
+ proxyErrors(t) {}
1860
+ end() {
1861
+ this.unpipe(), this.opts.end && this.dest.end();
1862
+ }
1863
+ }, te = class extends Mt {
1864
+ unpipe() {
1865
+ this.src.removeListener("error", this.proxyErrors), super.unpipe();
1866
+ }
1867
+ constructor(t, e, s) {
1868
+ super(t, e, s), this.proxyErrors = (i) => this.dest.emit("error", i), t.on("error", this.proxyErrors);
1869
+ }
1870
+ }, di = (n) => !!n.objectMode, pi = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer", V = class extends EventEmitter {
1871
+ [v] = !1;
1872
+ [dt] = !1;
1873
+ [F] = [];
1874
+ [C] = [];
1875
+ [k];
1876
+ [P];
1877
+ [B];
1878
+ [et];
1879
+ [G] = !1;
1880
+ [K] = !1;
1881
+ [kt] = !1;
1882
+ [Rt] = !1;
1883
+ [ut] = null;
1884
+ [T] = 0;
1885
+ [x] = !1;
1886
+ [pt];
1887
+ [Dt] = !1;
1888
+ [Y] = 0;
1889
+ [M] = !1;
1890
+ writable = !0;
1891
+ readable = !0;
1892
+ constructor(...t) {
1893
+ let e = t[0] || {};
1894
+ if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
1895
+ di(e) ? (this[k] = !0, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = !1) : (this[k] = !1, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new StringDecoder(this[P]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F] });
1896
+ let { signal: s } = e;
1897
+ s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
1898
+ }
1899
+ get bufferLength() {
1900
+ return this[T];
1901
+ }
1902
+ get encoding() {
1903
+ return this[P];
1904
+ }
1905
+ set encoding(t) {
1906
+ throw new Error("Encoding must be set at instantiation time");
1907
+ }
1908
+ setEncoding(t) {
1909
+ throw new Error("Encoding must be set at instantiation time");
1910
+ }
1911
+ get objectMode() {
1912
+ return this[k];
1913
+ }
1914
+ set objectMode(t) {
1915
+ throw new Error("objectMode must be set at instantiation time");
1916
+ }
1917
+ get async() {
1918
+ return this[B];
1919
+ }
1920
+ set async(t) {
1921
+ this[B] = this[B] || !!t;
1922
+ }
1923
+ [Qt]() {
1924
+ this[Dt] = !0, this.emit("abort", this[pt]?.reason), this.destroy(this[pt]?.reason);
1925
+ }
1926
+ get aborted() {
1927
+ return this[Dt];
1928
+ }
1929
+ set aborted(t) {}
1930
+ write(t, e, s) {
1931
+ if (this[Dt]) return !1;
1932
+ if (this[G]) throw new Error("write after end");
1933
+ if (this[x]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
1934
+ typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
1935
+ let i = this[B] ? mt : li;
1936
+ if (!this[k] && !Buffer.isBuffer(t)) {
1937
+ if (ui(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
1938
+ else if (fi(t)) t = Buffer.from(t);
1939
+ else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
1940
+ }
1941
+ return this[k] ? (this[v] && this[T] !== 0 && this[Ot](!0), this[v] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v]) : t.length ? (typeof t == "string" && !(e === this[P] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P] && (t = this[et].write(t)), this[v] && this[T] !== 0 && this[Ot](!0), this[v] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v]) : (this[T] !== 0 && this.emit("readable"), s && i(s), this[v]);
1942
+ }
1943
+ read(t) {
1944
+ if (this[x]) return null;
1945
+ if (this[M] = !1, this[T] === 0 || t === 0 || t && t > this[T]) return this[H](), null;
1946
+ this[k] && (t = null), this[C].length > 1 && !this[k] && (this[C] = [this[P] ? this[C].join("") : Buffer.concat(this[C], this[T])]);
1947
+ let e = this[_e](t || null, this[C][0]);
1948
+ return this[H](), e;
1949
+ }
1950
+ [_e](t, e) {
1951
+ if (this[k]) this[Ft]();
1952
+ else {
1953
+ let s = e;
1954
+ t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C][0] = s.slice(t), e = s.slice(0, t), this[T] -= t) : (this[C][0] = s.subarray(t), e = s.subarray(0, t), this[T] -= t);
1955
+ }
1956
+ return this.emit("data", e), !this[C].length && !this[G] && this.emit("drain"), e;
1957
+ }
1958
+ end(t, e, s) {
1959
+ return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v] || !this[dt]) && this[H](), this;
1960
+ }
1961
+ [st]() {
1962
+ this[x] || (!this[Y] && !this[F].length && (this[M] = !0), this[dt] = !1, this[v] = !0, this.emit("resume"), this[C].length ? this[Ot]() : this[G] ? this[H]() : this.emit("drain"));
1963
+ }
1964
+ resume() {
1965
+ return this[st]();
1966
+ }
1967
+ pause() {
1968
+ this[v] = !1, this[dt] = !0, this[M] = !1;
1969
+ }
1970
+ get destroyed() {
1971
+ return this[x];
1972
+ }
1973
+ get flowing() {
1974
+ return this[v];
1975
+ }
1976
+ get paused() {
1977
+ return this[dt];
1978
+ }
1979
+ [Yt](t) {
1980
+ this[k] ? this[T] += 1 : this[T] += t.length, this[C].push(t);
1981
+ }
1982
+ [Ft]() {
1983
+ return this[k] ? this[T] -= 1 : this[T] -= this[C][0].length, this[C].shift();
1984
+ }
1985
+ [Ot](t = !1) {
1986
+ do ;
1987
+ while (this[Le](this[Ft]()) && this[C].length);
1988
+ !t && !this[C].length && !this[G] && this.emit("drain");
1989
+ }
1990
+ [Le](t) {
1991
+ return this.emit("data", t), this[v];
1992
+ }
1993
+ pipe(t, e) {
1994
+ if (this[x]) return t;
1995
+ this[M] = !1;
1996
+ let s = this[K];
1997
+ return e = e || {}, t === Ne.stdout || t === Ne.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F].push(e.proxyErrors ? new te(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
1998
+ }
1999
+ unpipe(t) {
2000
+ let e = this[F].find((s) => s.dest === t);
2001
+ e && (this[F].length === 1 ? (this[v] && this[Y] === 0 && (this[v] = !1), this[F] = []) : this[F].splice(this[F].indexOf(e), 1), e.unpipe());
2002
+ }
2003
+ addListener(t, e) {
2004
+ return this.on(t, e);
2005
+ }
2006
+ on(t, e) {
2007
+ let s = super.on(t, e);
2008
+ if (t === "data") this[M] = !1, this[Y]++, !this[F].length && !this[v] && this[st]();
2009
+ else if (t === "readable" && this[T] !== 0) super.emit("readable");
2010
+ else if (ci(t) && this[K]) super.emit(t), this.removeAllListeners(t);
2011
+ else if (t === "error" && this[ut]) {
2012
+ let i = e;
2013
+ this[B] ? mt(() => i.call(this, this[ut])) : i.call(this, this[ut]);
2014
+ }
2015
+ return s;
2016
+ }
2017
+ removeListener(t, e) {
2018
+ return this.off(t, e);
2019
+ }
2020
+ off(t, e) {
2021
+ let s = super.off(t, e);
2022
+ return t === "data" && (this[Y] = this.listeners("data").length, this[Y] === 0 && !this[M] && !this[F].length && (this[v] = !1)), s;
2023
+ }
2024
+ removeAllListeners(t) {
2025
+ let e = super.removeAllListeners(t);
2026
+ return (t === "data" || t === void 0) && (this[Y] = 0, !this[M] && !this[F].length && (this[v] = !1)), e;
2027
+ }
2028
+ get emittedEnd() {
2029
+ return this[K];
2030
+ }
2031
+ [H]() {
2032
+ !this[kt] && !this[K] && !this[x] && this[C].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
2033
+ }
2034
+ emit(t, ...e) {
2035
+ let s = e[0];
2036
+ if (t !== "error" && t !== "close" && t !== x && this[x]) return !1;
2037
+ if (t === "data") return !this[k] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
2038
+ if (t === "end") return this[We]();
2039
+ if (t === "close") {
2040
+ if (this[Rt] = !0, !this[K] && !this[x]) return !1;
2041
+ let r = super.emit("close");
2042
+ return this.removeAllListeners("close"), r;
2043
+ } else if (t === "error") {
2044
+ this[ut] = s, super.emit(Xt, s);
2045
+ let r = !this[pt] || this.listeners("error").length ? super.emit("error", s) : !1;
2046
+ return this[H](), r;
2047
+ } else if (t === "resume") {
2048
+ let r = super.emit("resume");
2049
+ return this[H](), r;
2050
+ } else if (t === "finish" || t === "prefinish") {
2051
+ let r = super.emit(t);
2052
+ return this.removeAllListeners(t), r;
2053
+ }
2054
+ let i = super.emit(t, ...e);
2055
+ return this[H](), i;
2056
+ }
2057
+ [Jt](t) {
2058
+ for (let s of this[F]) s.dest.write(t) === !1 && this.pause();
2059
+ let e = this[M] ? !1 : super.emit("data", t);
2060
+ return this[H](), e;
2061
+ }
2062
+ [We]() {
2063
+ return this[K] ? !1 : (this[K] = !0, this.readable = !1, this[B] ? (mt(() => this[Zt]()), !0) : this[Zt]());
2064
+ }
2065
+ [Zt]() {
2066
+ if (this[et]) {
2067
+ let e = this[et].end();
2068
+ if (e) {
2069
+ for (let s of this[F]) s.dest.write(e);
2070
+ this[M] || super.emit("data", e);
2071
+ }
2072
+ }
2073
+ for (let e of this[F]) e.end();
2074
+ let t = super.emit("end");
2075
+ return this.removeAllListeners("end"), t;
2076
+ }
2077
+ async collect() {
2078
+ let t = Object.assign([], { dataLength: 0 });
2079
+ this[k] || (t.dataLength = 0);
2080
+ let e = this.promise();
2081
+ return this.on("data", (s) => {
2082
+ t.push(s), this[k] || (t.dataLength += s.length);
2083
+ }), await e, t;
2084
+ }
2085
+ async concat() {
2086
+ if (this[k]) throw new Error("cannot concat in objectMode");
2087
+ let t = await this.collect();
2088
+ return this[P] ? t.join("") : Buffer.concat(t, t.dataLength);
2089
+ }
2090
+ async promise() {
2091
+ return new Promise((t, e) => {
2092
+ this.on(x, () => e(/* @__PURE__ */ new Error("stream destroyed"))), this.on("error", (s) => e(s)), this.on("end", () => t());
2093
+ });
2094
+ }
2095
+ [Symbol.asyncIterator]() {
2096
+ this[M] = !1;
2097
+ let t = !1, e = async () => (this.pause(), t = !0, {
2098
+ value: void 0,
2099
+ done: !0
2100
+ });
2101
+ return {
2102
+ next: () => {
2103
+ if (t) return e();
2104
+ let i = this.read();
2105
+ if (i !== null) return Promise.resolve({
2106
+ done: !1,
2107
+ value: i
2108
+ });
2109
+ if (this[G]) return e();
2110
+ let r, o, h = (c) => {
2111
+ this.off("data", a), this.off("end", l), this.off(x, u), e(), o(c);
2112
+ }, a = (c) => {
2113
+ this.off("error", h), this.off("end", l), this.off(x, u), this.pause(), r({
2114
+ value: c,
2115
+ done: !!this[G]
2116
+ });
2117
+ }, l = () => {
2118
+ this.off("error", h), this.off("data", a), this.off(x, u), e(), r({
2119
+ done: !0,
2120
+ value: void 0
2121
+ });
2122
+ }, u = () => h(/* @__PURE__ */ new Error("stream destroyed"));
2123
+ return new Promise((c, d) => {
2124
+ o = d, r = c, this.once(x, u), this.once("error", h), this.once("end", l), this.once("data", a);
2125
+ });
2126
+ },
2127
+ throw: e,
2128
+ return: e,
2129
+ [Symbol.asyncIterator]() {
2130
+ return this;
2131
+ },
2132
+ [Symbol.asyncDispose]: async () => {}
2133
+ };
2134
+ }
2135
+ [Symbol.iterator]() {
2136
+ this[M] = !1;
2137
+ let t = !1, e = () => (this.pause(), this.off(Xt, e), this.off(x, e), this.off("end", e), t = !0, {
2138
+ done: !0,
2139
+ value: void 0
2140
+ }), s = () => {
2141
+ if (t) return e();
2142
+ let i = this.read();
2143
+ return i === null ? e() : {
2144
+ done: !1,
2145
+ value: i
2146
+ };
2147
+ };
2148
+ return this.once("end", e), this.once(Xt, e), this.once(x, e), {
2149
+ next: s,
2150
+ throw: e,
2151
+ return: e,
2152
+ [Symbol.iterator]() {
2153
+ return this;
2154
+ },
2155
+ [Symbol.dispose]: () => {}
2156
+ };
2157
+ }
2158
+ destroy(t) {
2159
+ if (this[x]) return t ? this.emit("error", t) : this.emit(x), this;
2160
+ this[x] = !0, this[M] = !0, this[C].length = 0, this[T] = 0;
2161
+ let e = this;
2162
+ return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x), this;
2163
+ }
2164
+ static get isStream() {
2165
+ return oi;
2166
+ }
2167
+ }, wt = {
2168
+ lstatSync,
2169
+ readdir,
2170
+ readdirSync,
2171
+ readlinkSync,
2172
+ realpathSync: realpathSync.native,
2173
+ promises: {
2174
+ lstat,
2175
+ readdir: readdir$1,
2176
+ readlink,
2177
+ realpath
2178
+ }
2179
+ }, Ue = (n) => !n || n === wt || n === xi ? wt : {
2180
+ ...wt,
2181
+ ...n,
2182
+ promises: {
2183
+ ...wt.promises,
2184
+ ...n.promises || {}
2185
+ }
2186
+ }, $e = /^\\\\\?\\([a-z]:)\\?$/i, Ri = (n) => n.replace(/\//g, "\\").replace($e, "$1\\"), Oi = /[\\\/]/, L = 0, Ge = 1, He = 2, U = 4, qe = 6, Ke = 8, X = 10, Ve = 12, _ = 15, gt = ~_, se = 16, je = 32, yt = 64, j = 128, Nt = 256, Lt = 512, Ie = yt | j | Lt, Fi = 1023, ie = (n) => n.isFile() ? Ke : n.isDirectory() ? U : n.isSymbolicLink() ? X : n.isCharacterDevice() ? He : n.isBlockDevice() ? qe : n.isSocket() ? Ve : n.isFIFO() ? Ge : L, ze = new ft({ max: 2 ** 12 }), bt = (n) => {
2187
+ let t = ze.get(n);
2188
+ if (t) return t;
2189
+ let e = n.normalize("NFKD");
2190
+ return ze.set(n, e), e;
2191
+ }, Be = new ft({ max: 2 ** 12 }), _t = (n) => {
2192
+ let t = Be.get(n);
2193
+ if (t) return t;
2194
+ let e = bt(n.toLowerCase());
2195
+ return Be.set(n, e), e;
2196
+ }, Wt = class extends ft {
2197
+ constructor() {
2198
+ super({ max: 256 });
2199
+ }
2200
+ }, ne = class extends ft {
2201
+ constructor(t = 16 * 1024) {
2202
+ super({
2203
+ maxSize: t,
2204
+ sizeCalculation: (e) => e.length + 1
2205
+ });
2206
+ }
2207
+ }, Ye = Symbol("PathScurry setAsCwd"), R = class {
2208
+ name;
2209
+ root;
2210
+ roots;
2211
+ parent;
2212
+ nocase;
2213
+ isCWD = !1;
2214
+ #t;
2215
+ #s;
2216
+ get dev() {
2217
+ return this.#s;
2218
+ }
2219
+ #n;
2220
+ get mode() {
2221
+ return this.#n;
2222
+ }
2223
+ #r;
2224
+ get nlink() {
2225
+ return this.#r;
2226
+ }
2227
+ #o;
2228
+ get uid() {
2229
+ return this.#o;
2230
+ }
2231
+ #S;
2232
+ get gid() {
2233
+ return this.#S;
2234
+ }
2235
+ #w;
2236
+ get rdev() {
2237
+ return this.#w;
2238
+ }
2239
+ #c;
2240
+ get blksize() {
2241
+ return this.#c;
2242
+ }
2243
+ #h;
2244
+ get ino() {
2245
+ return this.#h;
2246
+ }
2247
+ #u;
2248
+ get size() {
2249
+ return this.#u;
2250
+ }
2251
+ #f;
2252
+ get blocks() {
2253
+ return this.#f;
2254
+ }
2255
+ #a;
2256
+ get atimeMs() {
2257
+ return this.#a;
2258
+ }
2259
+ #i;
2260
+ get mtimeMs() {
2261
+ return this.#i;
2262
+ }
2263
+ #d;
2264
+ get ctimeMs() {
2265
+ return this.#d;
2266
+ }
2267
+ #E;
2268
+ get birthtimeMs() {
2269
+ return this.#E;
2270
+ }
2271
+ #b;
2272
+ get atime() {
2273
+ return this.#b;
2274
+ }
2275
+ #p;
2276
+ get mtime() {
2277
+ return this.#p;
2278
+ }
2279
+ #R;
2280
+ get ctime() {
2281
+ return this.#R;
2282
+ }
2283
+ #m;
2284
+ get birthtime() {
2285
+ return this.#m;
2286
+ }
2287
+ #C;
2288
+ #T;
2289
+ #g;
2290
+ #y;
2291
+ #x;
2292
+ #A;
2293
+ #e;
2294
+ #_;
2295
+ #M;
2296
+ #k;
2297
+ get parentPath() {
2298
+ return (this.parent || this).fullpath();
2299
+ }
2300
+ get path() {
2301
+ return this.parentPath;
2302
+ }
2303
+ constructor(t, e = L, s, i, r, o, h) {
2304
+ this.name = t, this.#C = r ? _t(t) : bt(t), this.#e = e & Fi, this.nocase = r, this.roots = i, this.root = s || this, this.#_ = o, this.#g = h.fullpath, this.#x = h.relative, this.#A = h.relativePosix, this.parent = h.parent, this.parent ? this.#t = this.parent.#t : this.#t = Ue(h.fs);
2305
+ }
2306
+ depth() {
2307
+ return this.#T !== void 0 ? this.#T : this.parent ? this.#T = this.parent.depth() + 1 : this.#T = 0;
2308
+ }
2309
+ childrenCache() {
2310
+ return this.#_;
2311
+ }
2312
+ resolve(t) {
2313
+ if (!t) return this;
2314
+ let e = this.getRootString(t), i = t.substring(e.length).split(this.splitSep);
2315
+ return e ? this.getRoot(e).#N(i) : this.#N(i);
2316
+ }
2317
+ #N(t) {
2318
+ let e = this;
2319
+ for (let s of t) e = e.child(s);
2320
+ return e;
2321
+ }
2322
+ children() {
2323
+ let t = this.#_.get(this);
2324
+ if (t) return t;
2325
+ let e = Object.assign([], { provisional: 0 });
2326
+ return this.#_.set(this, e), this.#e &= ~se, e;
2327
+ }
2328
+ child(t, e) {
2329
+ if (t === "" || t === ".") return this;
2330
+ if (t === "..") return this.parent || this;
2331
+ let s = this.children(), i = this.nocase ? _t(t) : bt(t);
2332
+ for (let a of s) if (a.#C === i) return a;
2333
+ let r = this.parent ? this.sep : "", o = this.#g ? this.#g + r + t : void 0, h = this.newChild(t, L, {
2334
+ ...e,
2335
+ parent: this,
2336
+ fullpath: o
2337
+ });
2338
+ return this.canReaddir() || (h.#e |= j), s.push(h), h;
2339
+ }
2340
+ relative() {
2341
+ if (this.isCWD) return "";
2342
+ if (this.#x !== void 0) return this.#x;
2343
+ let t = this.name, e = this.parent;
2344
+ if (!e) return this.#x = this.name;
2345
+ let s = e.relative();
2346
+ return s + (!s || !e.parent ? "" : this.sep) + t;
2347
+ }
2348
+ relativePosix() {
2349
+ if (this.sep === "/") return this.relative();
2350
+ if (this.isCWD) return "";
2351
+ if (this.#A !== void 0) return this.#A;
2352
+ let t = this.name, e = this.parent;
2353
+ if (!e) return this.#A = this.fullpathPosix();
2354
+ let s = e.relativePosix();
2355
+ return s + (!s || !e.parent ? "" : "/") + t;
2356
+ }
2357
+ fullpath() {
2358
+ if (this.#g !== void 0) return this.#g;
2359
+ let t = this.name, e = this.parent;
2360
+ if (!e) return this.#g = this.name;
2361
+ let i = e.fullpath() + (e.parent ? this.sep : "") + t;
2362
+ return this.#g = i;
2363
+ }
2364
+ fullpathPosix() {
2365
+ if (this.#y !== void 0) return this.#y;
2366
+ if (this.sep === "/") return this.#y = this.fullpath();
2367
+ if (!this.parent) {
2368
+ let i = this.fullpath().replace(/\\/g, "/");
2369
+ return /^[a-z]:\//i.test(i) ? this.#y = `//?/${i}` : this.#y = i;
2370
+ }
2371
+ let t = this.parent, e = t.fullpathPosix(), s = e + (!e || !t.parent ? "" : "/") + this.name;
2372
+ return this.#y = s;
2373
+ }
2374
+ isUnknown() {
2375
+ return (this.#e & _) === L;
2376
+ }
2377
+ isType(t) {
2378
+ return this[`is${t}`]();
2379
+ }
2380
+ getType() {
2381
+ return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
2382
+ }
2383
+ isFile() {
2384
+ return (this.#e & _) === Ke;
2385
+ }
2386
+ isDirectory() {
2387
+ return (this.#e & _) === U;
2388
+ }
2389
+ isCharacterDevice() {
2390
+ return (this.#e & _) === He;
2391
+ }
2392
+ isBlockDevice() {
2393
+ return (this.#e & _) === qe;
2394
+ }
2395
+ isFIFO() {
2396
+ return (this.#e & _) === Ge;
2397
+ }
2398
+ isSocket() {
2399
+ return (this.#e & _) === Ve;
2400
+ }
2401
+ isSymbolicLink() {
2402
+ return (this.#e & X) === X;
2403
+ }
2404
+ lstatCached() {
2405
+ return this.#e & je ? this : void 0;
2406
+ }
2407
+ readlinkCached() {
2408
+ return this.#M;
2409
+ }
2410
+ realpathCached() {
2411
+ return this.#k;
2412
+ }
2413
+ readdirCached() {
2414
+ let t = this.children();
2415
+ return t.slice(0, t.provisional);
2416
+ }
2417
+ canReadlink() {
2418
+ if (this.#M) return !0;
2419
+ if (!this.parent) return !1;
2420
+ let t = this.#e & _;
2421
+ return !(t !== L && t !== X || this.#e & Nt || this.#e & j);
2422
+ }
2423
+ calledReaddir() {
2424
+ return !!(this.#e & se);
2425
+ }
2426
+ isENOENT() {
2427
+ return !!(this.#e & j);
2428
+ }
2429
+ isNamed(t) {
2430
+ return this.nocase ? this.#C === _t(t) : this.#C === bt(t);
2431
+ }
2432
+ async readlink() {
2433
+ let t = this.#M;
2434
+ if (t) return t;
2435
+ if (this.canReadlink() && this.parent) try {
2436
+ let e = await this.#t.promises.readlink(this.fullpath()), s = (await this.parent.realpath())?.resolve(e);
2437
+ if (s) return this.#M = s;
2438
+ } catch (e) {
2439
+ this.#D(e.code);
2440
+ return;
2441
+ }
2442
+ }
2443
+ readlinkSync() {
2444
+ let t = this.#M;
2445
+ if (t) return t;
2446
+ if (this.canReadlink() && this.parent) try {
2447
+ let e = this.#t.readlinkSync(this.fullpath()), s = this.parent.realpathSync()?.resolve(e);
2448
+ if (s) return this.#M = s;
2449
+ } catch (e) {
2450
+ this.#D(e.code);
2451
+ return;
2452
+ }
2453
+ }
2454
+ #j(t) {
2455
+ this.#e |= se;
2456
+ for (let e = t.provisional; e < t.length; e++) {
2457
+ let s = t[e];
2458
+ s && s.#v();
2459
+ }
2460
+ }
2461
+ #v() {
2462
+ this.#e & j || (this.#e = (this.#e | j) & gt, this.#G());
2463
+ }
2464
+ #G() {
2465
+ let t = this.children();
2466
+ t.provisional = 0;
2467
+ for (let e of t) e.#v();
2468
+ }
2469
+ #P() {
2470
+ this.#e |= Lt, this.#L();
2471
+ }
2472
+ #L() {
2473
+ if (this.#e & yt) return;
2474
+ let t = this.#e;
2475
+ (t & _) === U && (t &= gt), this.#e = t | yt, this.#G();
2476
+ }
2477
+ #I(t = "") {
2478
+ t === "ENOTDIR" || t === "EPERM" ? this.#L() : t === "ENOENT" ? this.#v() : this.children().provisional = 0;
2479
+ }
2480
+ #F(t = "") {
2481
+ t === "ENOTDIR" ? this.parent.#L() : t === "ENOENT" && this.#v();
2482
+ }
2483
+ #D(t = "") {
2484
+ let e = this.#e;
2485
+ e |= Nt, t === "ENOENT" && (e |= j), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
2486
+ }
2487
+ #z(t, e) {
2488
+ return this.#U(t, e) || this.#B(t, e);
2489
+ }
2490
+ #B(t, e) {
2491
+ let s = ie(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _;
2492
+ return r !== U && r !== X && r !== L && (i.#e |= yt), e.unshift(i), e.provisional++, i;
2493
+ }
2494
+ #U(t, e) {
2495
+ for (let s = e.provisional; s < e.length; s++) {
2496
+ let i = e[s];
2497
+ if ((this.nocase ? _t(t.name) : bt(t.name)) === i.#C) return this.#l(t, i, s, e);
2498
+ }
2499
+ }
2500
+ #l(t, e, s, i) {
2501
+ let r = e.name;
2502
+ return e.#e = e.#e & gt | ie(t), r !== t.name && (e.name = t.name), s !== i.provisional && (s === i.length - 1 ? i.pop() : i.splice(s, 1), i.unshift(e)), i.provisional++, e;
2503
+ }
2504
+ async lstat() {
2505
+ if ((this.#e & j) === 0) try {
2506
+ return this.#$(await this.#t.promises.lstat(this.fullpath())), this;
2507
+ } catch (t) {
2508
+ this.#F(t.code);
2509
+ }
2510
+ }
2511
+ lstatSync() {
2512
+ if ((this.#e & j) === 0) try {
2513
+ return this.#$(this.#t.lstatSync(this.fullpath())), this;
2514
+ } catch (t) {
2515
+ this.#F(t.code);
2516
+ }
2517
+ }
2518
+ #$(t) {
2519
+ let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
2520
+ this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
2521
+ let y = ie(t);
2522
+ this.#e = this.#e & gt | y | je, y !== L && y !== U && y !== X && (this.#e |= yt);
2523
+ }
2524
+ #W = [];
2525
+ #O = !1;
2526
+ #H(t) {
2527
+ this.#O = !1;
2528
+ let e = this.#W.slice();
2529
+ this.#W.length = 0, e.forEach((s) => s(null, t));
2530
+ }
2531
+ readdirCB(t, e = !1) {
2532
+ if (!this.canReaddir()) {
2533
+ e ? t(null, []) : queueMicrotask(() => t(null, []));
2534
+ return;
2535
+ }
2536
+ let s = this.children();
2537
+ if (this.calledReaddir()) {
2538
+ let r = s.slice(0, s.provisional);
2539
+ e ? t(null, r) : queueMicrotask(() => t(null, r));
2540
+ return;
2541
+ }
2542
+ if (this.#W.push(t), this.#O) return;
2543
+ this.#O = !0;
2544
+ let i = this.fullpath();
2545
+ this.#t.readdir(i, { withFileTypes: !0 }, (r, o) => {
2546
+ if (r) this.#I(r.code), s.provisional = 0;
2547
+ else {
2548
+ for (let h of o) this.#z(h, s);
2549
+ this.#j(s);
2550
+ }
2551
+ this.#H(s.slice(0, s.provisional));
2552
+ });
2553
+ }
2554
+ #q;
2555
+ async readdir() {
2556
+ if (!this.canReaddir()) return [];
2557
+ let t = this.children();
2558
+ if (this.calledReaddir()) return t.slice(0, t.provisional);
2559
+ let e = this.fullpath();
2560
+ if (this.#q) await this.#q;
2561
+ else {
2562
+ let s = () => {};
2563
+ this.#q = new Promise((i) => s = i);
2564
+ try {
2565
+ for (let i of await this.#t.promises.readdir(e, { withFileTypes: !0 })) this.#z(i, t);
2566
+ this.#j(t);
2567
+ } catch (i) {
2568
+ this.#I(i.code), t.provisional = 0;
2569
+ }
2570
+ this.#q = void 0, s();
2571
+ }
2572
+ return t.slice(0, t.provisional);
2573
+ }
2574
+ readdirSync() {
2575
+ if (!this.canReaddir()) return [];
2576
+ let t = this.children();
2577
+ if (this.calledReaddir()) return t.slice(0, t.provisional);
2578
+ let e = this.fullpath();
2579
+ try {
2580
+ for (let s of this.#t.readdirSync(e, { withFileTypes: !0 })) this.#z(s, t);
2581
+ this.#j(t);
2582
+ } catch (s) {
2583
+ this.#I(s.code), t.provisional = 0;
2584
+ }
2585
+ return t.slice(0, t.provisional);
2586
+ }
2587
+ canReaddir() {
2588
+ if (this.#e & Ie) return !1;
2589
+ let t = _ & this.#e;
2590
+ return t === L || t === U || t === X;
2591
+ }
2592
+ shouldWalk(t, e) {
2593
+ return (this.#e & U) === U && !(this.#e & Ie) && !t.has(this) && (!e || e(this));
2594
+ }
2595
+ async realpath() {
2596
+ if (this.#k) return this.#k;
2597
+ if (!((Lt | Nt | j) & this.#e)) try {
2598
+ let t = await this.#t.promises.realpath(this.fullpath());
2599
+ return this.#k = this.resolve(t);
2600
+ } catch {
2601
+ this.#P();
2602
+ }
2603
+ }
2604
+ realpathSync() {
2605
+ if (this.#k) return this.#k;
2606
+ if (!((Lt | Nt | j) & this.#e)) try {
2607
+ let t = this.#t.realpathSync(this.fullpath());
2608
+ return this.#k = this.resolve(t);
2609
+ } catch {
2610
+ this.#P();
2611
+ }
2612
+ }
2613
+ [Ye](t) {
2614
+ if (t === this) return;
2615
+ t.isCWD = !1, this.isCWD = !0;
2616
+ let e = /* @__PURE__ */ new Set([]), s = [], i = this;
2617
+ for (; i && i.parent;) e.add(i), i.#x = s.join(this.sep), i.#A = s.join("/"), i = i.parent, s.push("..");
2618
+ for (i = t; i && i.parent && !e.has(i);) i.#x = void 0, i.#A = void 0, i = i.parent;
2619
+ }
2620
+ }, Pt = class n extends R {
2621
+ sep = "\\";
2622
+ splitSep = Oi;
2623
+ constructor(t, e = L, s, i, r, o, h) {
2624
+ super(t, e, s, i, r, o, h);
2625
+ }
2626
+ newChild(t, e = L, s = {}) {
2627
+ return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
2628
+ }
2629
+ getRootString(t) {
2630
+ return win32.parse(t).root;
2631
+ }
2632
+ getRoot(t) {
2633
+ if (t = Ri(t.toUpperCase()), t === this.root.name) return this.root;
2634
+ for (let [e, s] of Object.entries(this.roots)) if (this.sameRoot(t, e)) return this.roots[t] = s;
2635
+ return this.roots[t] = new it(t, this).root;
2636
+ }
2637
+ sameRoot(t, e = this.root.name) {
2638
+ return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
2639
+ }
2640
+ }, jt = class n extends R {
2641
+ splitSep = "/";
2642
+ sep = "/";
2643
+ constructor(t, e = L, s, i, r, o, h) {
2644
+ super(t, e, s, i, r, o, h);
2645
+ }
2646
+ getRootString(t) {
2647
+ return t.startsWith("/") ? "/" : "";
2648
+ }
2649
+ getRoot(t) {
2650
+ return this.root;
2651
+ }
2652
+ newChild(t, e = L, s = {}) {
2653
+ return new n(t, e, this.root, this.roots, this.nocase, this.childrenCache(), s);
2654
+ }
2655
+ }, It = class {
2656
+ root;
2657
+ rootPath;
2658
+ roots;
2659
+ cwd;
2660
+ #t;
2661
+ #s;
2662
+ #n;
2663
+ nocase;
2664
+ #r;
2665
+ constructor(t = process.cwd(), e, s, { nocase: i, childrenCacheSize: r = 16 * 1024, fs: o = wt } = {}) {
2666
+ this.#r = Ue(o), (t instanceof URL || t.startsWith("file://")) && (t = fileURLToPath(t));
2667
+ let h = e.resolve(t);
2668
+ this.roots = Object.create(null), this.rootPath = this.parseRootPath(h), this.#t = new Wt(), this.#s = new Wt(), this.#n = new ne(r);
2669
+ let a = h.substring(this.rootPath.length).split(s);
2670
+ if (a.length === 1 && !a[0] && a.pop(), i === void 0) throw new TypeError("must provide nocase setting to PathScurryBase ctor");
2671
+ this.nocase = i, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
2672
+ let l = this.root, u = a.length - 1, c = e.sep, d = this.rootPath, f = !1;
2673
+ for (let m of a) {
2674
+ let p = u--;
2675
+ l = l.child(m, {
2676
+ relative: new Array(p).fill("..").join(c),
2677
+ relativePosix: new Array(p).fill("..").join("/"),
2678
+ fullpath: d += (f ? "" : c) + m
2679
+ }), f = !0;
2680
+ }
2681
+ this.cwd = l;
2682
+ }
2683
+ depth(t = this.cwd) {
2684
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.depth();
2685
+ }
2686
+ childrenCache() {
2687
+ return this.#n;
2688
+ }
2689
+ resolve(...t) {
2690
+ let e = "";
2691
+ for (let r = t.length - 1; r >= 0; r--) {
2692
+ let o = t[r];
2693
+ if (!(!o || o === ".") && (e = e ? `${o}/${e}` : o, this.isAbsolute(o))) break;
2694
+ }
2695
+ let s = this.#t.get(e);
2696
+ if (s !== void 0) return s;
2697
+ let i = this.cwd.resolve(e).fullpath();
2698
+ return this.#t.set(e, i), i;
2699
+ }
2700
+ resolvePosix(...t) {
2701
+ let e = "";
2702
+ for (let r = t.length - 1; r >= 0; r--) {
2703
+ let o = t[r];
2704
+ if (!(!o || o === ".") && (e = e ? `${o}/${e}` : o, this.isAbsolute(o))) break;
2705
+ }
2706
+ let s = this.#s.get(e);
2707
+ if (s !== void 0) return s;
2708
+ let i = this.cwd.resolve(e).fullpathPosix();
2709
+ return this.#s.set(e, i), i;
2710
+ }
2711
+ relative(t = this.cwd) {
2712
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.relative();
2713
+ }
2714
+ relativePosix(t = this.cwd) {
2715
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.relativePosix();
2716
+ }
2717
+ basename(t = this.cwd) {
2718
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.name;
2719
+ }
2720
+ dirname(t = this.cwd) {
2721
+ return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
2722
+ }
2723
+ async readdir(t = this.cwd, e = { withFileTypes: !0 }) {
2724
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2725
+ let { withFileTypes: s } = e;
2726
+ if (t.canReaddir()) {
2727
+ let i = await t.readdir();
2728
+ return s ? i : i.map((r) => r.name);
2729
+ } else return [];
2730
+ }
2731
+ readdirSync(t = this.cwd, e = { withFileTypes: !0 }) {
2732
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2733
+ let { withFileTypes: s = !0 } = e;
2734
+ return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i) => i.name) : [];
2735
+ }
2736
+ async lstat(t = this.cwd) {
2737
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstat();
2738
+ }
2739
+ lstatSync(t = this.cwd) {
2740
+ return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
2741
+ }
2742
+ async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
2743
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
2744
+ let s = await t.readlink();
2745
+ return e ? s : s?.fullpath();
2746
+ }
2747
+ readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
2748
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
2749
+ let s = t.readlinkSync();
2750
+ return e ? s : s?.fullpath();
2751
+ }
2752
+ async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
2753
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
2754
+ let s = await t.realpath();
2755
+ return e ? s : s?.fullpath();
2756
+ }
2757
+ realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
2758
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t.withFileTypes, t = this.cwd);
2759
+ let s = t.realpathSync();
2760
+ return e ? s : s?.fullpath();
2761
+ }
2762
+ async walk(t = this.cwd, e = {}) {
2763
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2764
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
2765
+ (!r || r(t)) && h.push(s ? t : t.fullpath());
2766
+ let a = /* @__PURE__ */ new Set(), l = (c, d) => {
2767
+ a.add(c), c.readdirCB((f, m) => {
2768
+ if (f) return d(f);
2769
+ let p = m.length;
2770
+ if (!p) return d();
2771
+ let w = () => {
2772
+ --p === 0 && d();
2773
+ };
2774
+ for (let g of m) (!r || r(g)) && h.push(s ? g : g.fullpath()), i && g.isSymbolicLink() ? g.realpath().then((S) => S?.isUnknown() ? S.lstat() : S).then((S) => S?.shouldWalk(a, o) ? l(S, w) : w()) : g.shouldWalk(a, o) ? l(g, w) : w();
2775
+ }, !0);
2776
+ }, u = t;
2777
+ return new Promise((c, d) => {
2778
+ l(u, (f) => {
2779
+ if (f) return d(f);
2780
+ c(h);
2781
+ });
2782
+ });
2783
+ }
2784
+ walkSync(t = this.cwd, e = {}) {
2785
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2786
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
2787
+ (!r || r(t)) && h.push(s ? t : t.fullpath());
2788
+ let a = /* @__PURE__ */ new Set([t]);
2789
+ for (let l of a) {
2790
+ let u = l.readdirSync();
2791
+ for (let c of u) {
2792
+ (!r || r(c)) && h.push(s ? c : c.fullpath());
2793
+ let d = c;
2794
+ if (c.isSymbolicLink()) {
2795
+ if (!(i && (d = c.realpathSync()))) continue;
2796
+ d.isUnknown() && d.lstatSync();
2797
+ }
2798
+ d.shouldWalk(a, o) && a.add(d);
2799
+ }
2800
+ }
2801
+ return h;
2802
+ }
2803
+ [Symbol.asyncIterator]() {
2804
+ return this.iterate();
2805
+ }
2806
+ iterate(t = this.cwd, e = {}) {
2807
+ return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
2808
+ }
2809
+ [Symbol.iterator]() {
2810
+ return this.iterateSync();
2811
+ }
2812
+ *iterateSync(t = this.cwd, e = {}) {
2813
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2814
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e;
2815
+ (!r || r(t)) && (yield s ? t : t.fullpath());
2816
+ let h = /* @__PURE__ */ new Set([t]);
2817
+ for (let a of h) {
2818
+ let l = a.readdirSync();
2819
+ for (let u of l) {
2820
+ (!r || r(u)) && (yield s ? u : u.fullpath());
2821
+ let c = u;
2822
+ if (u.isSymbolicLink()) {
2823
+ if (!(i && (c = u.realpathSync()))) continue;
2824
+ c.isUnknown() && c.lstatSync();
2825
+ }
2826
+ c.shouldWalk(h, o) && h.add(c);
2827
+ }
2828
+ }
2829
+ }
2830
+ stream(t = this.cwd, e = {}) {
2831
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2832
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 });
2833
+ (!r || r(t)) && h.write(s ? t : t.fullpath());
2834
+ let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
2835
+ let d = !1;
2836
+ for (; !d;) {
2837
+ let f = l.shift();
2838
+ if (!f) {
2839
+ u === 0 && h.end();
2840
+ return;
2841
+ }
2842
+ u++, a.add(f);
2843
+ let m = (w, g, S = !1) => {
2844
+ if (w) return h.emit("error", w);
2845
+ if (i && !S) {
2846
+ let E = [];
2847
+ for (let y of g) y.isSymbolicLink() && E.push(y.realpath().then((b) => b?.isUnknown() ? b.lstat() : b));
2848
+ if (E.length) {
2849
+ Promise.all(E).then(() => m(null, g, !0));
2850
+ return;
2851
+ }
2852
+ }
2853
+ for (let E of g) E && (!r || r(E)) && (h.write(s ? E : E.fullpath()) || (d = !0));
2854
+ u--;
2855
+ for (let E of g) {
2856
+ let y = E.realpathCached() || E;
2857
+ y.shouldWalk(a, o) && l.push(y);
2858
+ }
2859
+ d && !h.flowing ? h.once("drain", c) : p || c();
2860
+ }, p = !0;
2861
+ f.readdirCB(m, !0), p = !1;
2862
+ }
2863
+ };
2864
+ return c(), h;
2865
+ }
2866
+ streamSync(t = this.cwd, e = {}) {
2867
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
2868
+ let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 }), a = /* @__PURE__ */ new Set();
2869
+ (!r || r(t)) && h.write(s ? t : t.fullpath());
2870
+ let l = [t], u = 0, c = () => {
2871
+ let d = !1;
2872
+ for (; !d;) {
2873
+ let f = l.shift();
2874
+ if (!f) {
2875
+ u === 0 && h.end();
2876
+ return;
2877
+ }
2878
+ u++, a.add(f);
2879
+ let m = f.readdirSync();
2880
+ for (let p of m) (!r || r(p)) && (h.write(s ? p : p.fullpath()) || (d = !0));
2881
+ u--;
2882
+ for (let p of m) {
2883
+ let w = p;
2884
+ if (p.isSymbolicLink()) {
2885
+ if (!(i && (w = p.realpathSync()))) continue;
2886
+ w.isUnknown() && w.lstatSync();
2887
+ }
2888
+ w.shouldWalk(a, o) && l.push(w);
2889
+ }
2890
+ }
2891
+ d && !h.flowing && h.once("drain", c);
2892
+ };
2893
+ return c(), h;
2894
+ }
2895
+ chdir(t = this.cwd) {
2896
+ let e = this.cwd;
2897
+ this.cwd = typeof t == "string" ? this.cwd.resolve(t) : t, this.cwd[Ye](e);
2898
+ }
2899
+ }, it = class extends It {
2900
+ sep = "\\";
2901
+ constructor(t = process.cwd(), e = {}) {
2902
+ let { nocase: s = !0 } = e;
2903
+ super(t, win32, "\\", {
2904
+ ...e,
2905
+ nocase: s
2906
+ }), this.nocase = s;
2907
+ for (let i = this.cwd; i; i = i.parent) i.nocase = this.nocase;
2908
+ }
2909
+ parseRootPath(t) {
2910
+ return win32.parse(t).root.toUpperCase();
2911
+ }
2912
+ newRoot(t) {
2913
+ return new Pt(this.rootPath, U, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
2914
+ }
2915
+ isAbsolute(t) {
2916
+ return t.startsWith("/") || t.startsWith("\\") || /^[a-z]:(\/|\\)/i.test(t);
2917
+ }
2918
+ }, rt = class extends It {
2919
+ sep = "/";
2920
+ constructor(t = process.cwd(), e = {}) {
2921
+ let { nocase: s = !1 } = e;
2922
+ super(t, posix, "/", {
2923
+ ...e,
2924
+ nocase: s
2925
+ }), this.nocase = s;
2926
+ }
2927
+ parseRootPath(t) {
2928
+ return "/";
2929
+ }
2930
+ newRoot(t) {
2931
+ return new jt(this.rootPath, U, void 0, this.roots, this.nocase, this.childrenCache(), { fs: t });
2932
+ }
2933
+ isAbsolute(t) {
2934
+ return t.startsWith("/");
2935
+ }
2936
+ }, St = class extends rt {
2937
+ constructor(t = process.cwd(), e = {}) {
2938
+ let { nocase: s = !0 } = e;
2939
+ super(t, {
2940
+ ...e,
2941
+ nocase: s
2942
+ });
2943
+ }
2944
+ };
2945
+ process.platform;
2946
+ Xe = process.platform === "win32" ? it : process.platform === "darwin" ? St : rt;
2947
+ Di = (n) => n.length >= 1, Mi = (n) => n.length >= 1, Ni = Symbol.for("nodejs.util.inspect.custom"), nt = class n {
2948
+ #t;
2949
+ #s;
2950
+ #n;
2951
+ length;
2952
+ #r;
2953
+ #o;
2954
+ #S;
2955
+ #w;
2956
+ #c;
2957
+ #h;
2958
+ #u = !0;
2959
+ constructor(t, e, s, i) {
2960
+ if (!Di(t)) throw new TypeError("empty pattern list");
2961
+ if (!Mi(e)) throw new TypeError("empty glob list");
2962
+ if (e.length !== t.length) throw new TypeError("mismatched pattern list and glob list lengths");
2963
+ if (this.length = t.length, s < 0 || s >= this.length) throw new TypeError("index out of range");
2964
+ if (this.#t = t, this.#s = e, this.#n = s, this.#r = i, this.#n === 0) {
2965
+ if (this.isUNC()) {
2966
+ let [r, o, h, a, ...l] = this.#t, [u, c, d, f, ...m] = this.#s;
2967
+ l[0] === "" && (l.shift(), m.shift());
2968
+ let p = [
2969
+ r,
2970
+ o,
2971
+ h,
2972
+ a,
2973
+ ""
2974
+ ].join("/"), w = [
2975
+ u,
2976
+ c,
2977
+ d,
2978
+ f,
2979
+ ""
2980
+ ].join("/");
2981
+ this.#t = [p, ...l], this.#s = [w, ...m], this.length = this.#t.length;
2982
+ } else if (this.isDrive() || this.isAbsolute()) {
2983
+ let [r, ...o] = this.#t, [h, ...a] = this.#s;
2984
+ o[0] === "" && (o.shift(), a.shift());
2985
+ let l = r + "/", u = h + "/";
2986
+ this.#t = [l, ...o], this.#s = [u, ...a], this.length = this.#t.length;
2987
+ }
2988
+ }
2989
+ }
2990
+ [Ni]() {
2991
+ return "Pattern <" + this.#s.slice(this.#n).join("/") + ">";
2992
+ }
2993
+ pattern() {
2994
+ return this.#t[this.#n];
2995
+ }
2996
+ isString() {
2997
+ return typeof this.#t[this.#n] == "string";
2998
+ }
2999
+ isGlobstar() {
3000
+ return this.#t[this.#n] === A;
3001
+ }
3002
+ isRegExp() {
3003
+ return this.#t[this.#n] instanceof RegExp;
3004
+ }
3005
+ globString() {
3006
+ return this.#S = this.#S || (this.#n === 0 ? this.isAbsolute() ? this.#s[0] + this.#s.slice(1).join("/") : this.#s.join("/") : this.#s.slice(this.#n).join("/"));
3007
+ }
3008
+ hasMore() {
3009
+ return this.length > this.#n + 1;
3010
+ }
3011
+ rest() {
3012
+ return this.#o !== void 0 ? this.#o : this.hasMore() ? (this.#o = new n(this.#t, this.#s, this.#n + 1, this.#r), this.#o.#h = this.#h, this.#o.#c = this.#c, this.#o.#w = this.#w, this.#o) : this.#o = null;
3013
+ }
3014
+ isUNC() {
3015
+ let t = this.#t;
3016
+ return this.#c !== void 0 ? this.#c : this.#c = this.#r === "win32" && this.#n === 0 && t[0] === "" && t[1] === "" && typeof t[2] == "string" && !!t[2] && typeof t[3] == "string" && !!t[3];
3017
+ }
3018
+ isDrive() {
3019
+ let t = this.#t;
3020
+ return this.#w !== void 0 ? this.#w : this.#w = this.#r === "win32" && this.#n === 0 && this.length > 1 && typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]);
3021
+ }
3022
+ isAbsolute() {
3023
+ let t = this.#t;
3024
+ return this.#h !== void 0 ? this.#h : this.#h = t[0] === "" && t.length > 1 || this.isDrive() || this.isUNC();
3025
+ }
3026
+ root() {
3027
+ let t = this.#t[0];
3028
+ return typeof t == "string" && this.isAbsolute() && this.#n === 0 ? t : "";
3029
+ }
3030
+ checkFollowGlobstar() {
3031
+ return !(this.#n === 0 || !this.isGlobstar() || !this.#u);
3032
+ }
3033
+ markFollowGlobstar() {
3034
+ return this.#n === 0 || !this.isGlobstar() || !this.#u ? !1 : (this.#u = !1, !0);
3035
+ }
3036
+ };
3037
+ _i = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", ot = class {
3038
+ relative;
3039
+ relativeChildren;
3040
+ absolute;
3041
+ absoluteChildren;
3042
+ platform;
3043
+ mmopts;
3044
+ constructor(t, { nobrace: e, nocase: s, noext: i, noglobstar: r, platform: o = _i }) {
3045
+ this.relative = [], this.absolute = [], this.relativeChildren = [], this.absoluteChildren = [], this.platform = o, this.mmopts = {
3046
+ dot: !0,
3047
+ nobrace: e,
3048
+ nocase: s,
3049
+ noext: i,
3050
+ noglobstar: r,
3051
+ optimizationLevel: 2,
3052
+ platform: o,
3053
+ nocomment: !0,
3054
+ nonegate: !0
3055
+ };
3056
+ for (let h of t) this.add(h);
3057
+ }
3058
+ add(t) {
3059
+ let e = new D(t, this.mmopts);
3060
+ for (let s = 0; s < e.set.length; s++) {
3061
+ let i = e.set[s], r = e.globParts[s];
3062
+ if (!i || !r) throw new Error("invalid pattern object");
3063
+ for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
3064
+ let o = new nt(i, r, 0, this.platform), h = new D(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
3065
+ l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
3066
+ }
3067
+ }
3068
+ ignored(t) {
3069
+ let e = t.fullpath(), s = `${e}/`, i = t.relative() || ".", r = `${i}/`;
3070
+ for (let o of this.relative) if (o.match(i) || o.match(r)) return !0;
3071
+ for (let o of this.absolute) if (o.match(e) || o.match(s)) return !0;
3072
+ return !1;
3073
+ }
3074
+ childrenIgnored(t) {
3075
+ let e = t.fullpath() + "/", s = (t.relative() || ".") + "/";
3076
+ for (let i of this.relativeChildren) if (i.match(s)) return !0;
3077
+ for (let i of this.absoluteChildren) if (i.match(e)) return !0;
3078
+ return !1;
3079
+ }
3080
+ };
3081
+ oe = class n {
3082
+ store;
3083
+ constructor(t = /* @__PURE__ */ new Map()) {
3084
+ this.store = t;
3085
+ }
3086
+ copy() {
3087
+ return new n(new Map(this.store));
3088
+ }
3089
+ hasWalked(t, e) {
3090
+ return this.store.get(t.fullpath())?.has(e.globString());
3091
+ }
3092
+ storeWalked(t, e) {
3093
+ let s = t.fullpath(), i = this.store.get(s);
3094
+ i ? i.add(e.globString()) : this.store.set(s, /* @__PURE__ */ new Set([e.globString()]));
3095
+ }
3096
+ }, he = class {
3097
+ store = /* @__PURE__ */ new Map();
3098
+ add(t, e, s) {
3099
+ let i = (e ? 2 : 0) | (s ? 1 : 0), r = this.store.get(t);
3100
+ this.store.set(t, r === void 0 ? i : i & r);
3101
+ }
3102
+ entries() {
3103
+ return [...this.store.entries()].map(([t, e]) => [
3104
+ t,
3105
+ !!(e & 2),
3106
+ !!(e & 1)
3107
+ ]);
3108
+ }
3109
+ }, ae = class {
3110
+ store = /* @__PURE__ */ new Map();
3111
+ add(t, e) {
3112
+ if (!t.canReaddir()) return;
3113
+ let s = this.store.get(t);
3114
+ s ? s.find((i) => i.globString() === e.globString()) || s.push(e) : this.store.set(t, [e]);
3115
+ }
3116
+ get(t) {
3117
+ let e = this.store.get(t);
3118
+ if (!e) throw new Error("attempting to walk unknown path");
3119
+ return e;
3120
+ }
3121
+ entries() {
3122
+ return this.keys().map((t) => [t, this.store.get(t)]);
3123
+ }
3124
+ keys() {
3125
+ return [...this.store.keys()].filter((t) => t.canReaddir());
3126
+ }
3127
+ }, Et = class n {
3128
+ hasWalkedCache;
3129
+ matches = new he();
3130
+ subwalks = new ae();
3131
+ patterns;
3132
+ follow;
3133
+ dot;
3134
+ opts;
3135
+ constructor(t, e) {
3136
+ this.opts = t, this.follow = !!t.follow, this.dot = !!t.dot, this.hasWalkedCache = e ? e.copy() : new oe();
3137
+ }
3138
+ processPatterns(t, e) {
3139
+ this.patterns = e;
3140
+ let s = e.map((i) => [t, i]);
3141
+ for (let [i, r] of s) {
3142
+ this.hasWalkedCache.storeWalked(i, r);
3143
+ let o = r.root(), h = r.isAbsolute() && this.opts.absolute !== !1;
3144
+ if (o) {
3145
+ i = i.resolve(o === "/" && this.opts.root !== void 0 ? this.opts.root : o);
3146
+ let c = r.rest();
3147
+ if (c) r = c;
3148
+ else {
3149
+ this.matches.add(i, !0, !1);
3150
+ continue;
3151
+ }
3152
+ }
3153
+ if (i.isENOENT()) continue;
3154
+ let a, l, u = !1;
3155
+ for (; typeof (a = r.pattern()) == "string" && (l = r.rest());) i = i.resolve(a), r = l, u = !0;
3156
+ if (a = r.pattern(), l = r.rest(), u) {
3157
+ if (this.hasWalkedCache.hasWalked(i, r)) continue;
3158
+ this.hasWalkedCache.storeWalked(i, r);
3159
+ }
3160
+ if (typeof a == "string") {
3161
+ let c = a === ".." || a === "" || a === ".";
3162
+ this.matches.add(i.resolve(a), h, c);
3163
+ continue;
3164
+ } else if (a === A) {
3165
+ (!i.isSymbolicLink() || this.follow || r.checkFollowGlobstar()) && this.subwalks.add(i, r);
3166
+ let c = l?.pattern(), d = l?.rest();
3167
+ if (!l || (c === "" || c === ".") && !d) this.matches.add(i, h, c === "" || c === ".");
3168
+ else if (c === "..") {
3169
+ let f = i.parent || i;
3170
+ d ? this.hasWalkedCache.hasWalked(f, d) || this.subwalks.add(f, d) : this.matches.add(f, h, !0);
3171
+ }
3172
+ } else a instanceof RegExp && this.subwalks.add(i, r);
3173
+ }
3174
+ return this;
3175
+ }
3176
+ subwalkTargets() {
3177
+ return this.subwalks.keys();
3178
+ }
3179
+ child() {
3180
+ return new n(this.opts, this.hasWalkedCache);
3181
+ }
3182
+ filterEntries(t, e) {
3183
+ let s = this.subwalks.get(t), i = this.child();
3184
+ for (let r of e) for (let o of s) {
3185
+ let h = o.isAbsolute(), a = o.pattern(), l = o.rest();
3186
+ a === A ? i.testGlobstar(r, o, l, h) : a instanceof RegExp ? i.testRegExp(r, a, l, h) : i.testString(r, a, l, h);
3187
+ }
3188
+ return i;
3189
+ }
3190
+ testGlobstar(t, e, s, i) {
3191
+ if ((this.dot || !t.name.startsWith(".")) && (e.hasMore() || this.matches.add(t, i, !1), t.canReaddir() && (this.follow || !t.isSymbolicLink() ? this.subwalks.add(t, e) : t.isSymbolicLink() && (s && e.checkFollowGlobstar() ? this.subwalks.add(t, s) : e.markFollowGlobstar() && this.subwalks.add(t, e)))), s) {
3192
+ let r = s.pattern();
3193
+ if (typeof r == "string" && r !== ".." && r !== "" && r !== ".") this.testString(t, r, s.rest(), i);
3194
+ else if (r === "..") {
3195
+ let o = t.parent || t;
3196
+ this.subwalks.add(o, s);
3197
+ } else r instanceof RegExp && this.testRegExp(t, r, s.rest(), i);
3198
+ }
3199
+ }
3200
+ testRegExp(t, e, s, i) {
3201
+ e.test(t.name) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
3202
+ }
3203
+ testString(t, e, s, i) {
3204
+ t.isNamed(e) && (s ? this.subwalks.add(t, s) : this.matches.add(t, i, !1));
3205
+ }
3206
+ };
3207
+ Li = (n, t) => typeof n == "string" ? new ot([n], t) : Array.isArray(n) ? new ot(n, t) : n, zt = class {
3208
+ path;
3209
+ patterns;
3210
+ opts;
3211
+ seen = /* @__PURE__ */ new Set();
3212
+ paused = !1;
3213
+ aborted = !1;
3214
+ #t = [];
3215
+ #s;
3216
+ #n;
3217
+ signal;
3218
+ maxDepth;
3219
+ includeChildMatches;
3220
+ constructor(t, e, s) {
3221
+ if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
3222
+ this.maxDepth = s.maxDepth || Infinity, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
3223
+ this.#t.length = 0;
3224
+ }));
3225
+ }
3226
+ #r(t) {
3227
+ return this.seen.has(t) || !!this.#s?.ignored?.(t);
3228
+ }
3229
+ #o(t) {
3230
+ return !!this.#s?.childrenIgnored?.(t);
3231
+ }
3232
+ pause() {
3233
+ this.paused = !0;
3234
+ }
3235
+ resume() {
3236
+ if (this.signal?.aborted) return;
3237
+ this.paused = !1;
3238
+ let t;
3239
+ for (; !this.paused && (t = this.#t.shift());) t();
3240
+ }
3241
+ onResume(t) {
3242
+ this.signal?.aborted || (this.paused ? this.#t.push(t) : t());
3243
+ }
3244
+ async matchCheck(t, e) {
3245
+ if (e && this.opts.nodir) return;
3246
+ let s;
3247
+ if (this.opts.realpath) {
3248
+ if (s = t.realpathCached() || await t.realpath(), !s) return;
3249
+ t = s;
3250
+ }
3251
+ let r = t.isUnknown() || this.opts.stat ? await t.lstat() : t;
3252
+ if (this.opts.follow && this.opts.nodir && r?.isSymbolicLink()) {
3253
+ let o = await r.realpath();
3254
+ o && (o.isUnknown() || this.opts.stat) && await o.lstat();
3255
+ }
3256
+ return this.matchCheckTest(r, e);
3257
+ }
3258
+ matchCheckTest(t, e) {
3259
+ return t && (this.maxDepth === Infinity || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
3260
+ }
3261
+ matchCheckSync(t, e) {
3262
+ if (e && this.opts.nodir) return;
3263
+ let s;
3264
+ if (this.opts.realpath) {
3265
+ if (s = t.realpathCached() || t.realpathSync(), !s) return;
3266
+ t = s;
3267
+ }
3268
+ let r = t.isUnknown() || this.opts.stat ? t.lstatSync() : t;
3269
+ if (this.opts.follow && this.opts.nodir && r?.isSymbolicLink()) {
3270
+ let o = r.realpathSync();
3271
+ o && (o?.isUnknown() || this.opts.stat) && o.lstatSync();
3272
+ }
3273
+ return this.matchCheckTest(r, e);
3274
+ }
3275
+ matchFinish(t, e) {
3276
+ if (this.#r(t)) return;
3277
+ if (!this.includeChildMatches && this.#s?.add) {
3278
+ let r = `${t.relativePosix()}/**`;
3279
+ this.#s.add(r);
3280
+ }
3281
+ let s = this.opts.absolute === void 0 ? e : this.opts.absolute;
3282
+ this.seen.add(t);
3283
+ let i = this.opts.mark && t.isDirectory() ? this.#n : "";
3284
+ if (this.opts.withFileTypes) this.matchEmit(t);
3285
+ else if (s) {
3286
+ let r = this.opts.posix ? t.fullpathPosix() : t.fullpath();
3287
+ this.matchEmit(r + i);
3288
+ } else {
3289
+ let r = this.opts.posix ? t.relativePosix() : t.relative(), o = this.opts.dotRelative && !r.startsWith(".." + this.#n) ? "." + this.#n : "";
3290
+ this.matchEmit(r ? o + r + i : "." + i);
3291
+ }
3292
+ }
3293
+ async match(t, e, s) {
3294
+ let i = await this.matchCheck(t, s);
3295
+ i && this.matchFinish(i, e);
3296
+ }
3297
+ matchSync(t, e, s) {
3298
+ let i = this.matchCheckSync(t, s);
3299
+ i && this.matchFinish(i, e);
3300
+ }
3301
+ walkCB(t, e, s) {
3302
+ this.signal?.aborted && s(), this.walkCB2(t, e, new Et(this.opts), s);
3303
+ }
3304
+ walkCB2(t, e, s, i) {
3305
+ if (this.#o(t)) return i();
3306
+ if (this.signal?.aborted && i(), this.paused) {
3307
+ this.onResume(() => this.walkCB2(t, e, s, i));
3308
+ return;
3309
+ }
3310
+ s.processPatterns(t, e);
3311
+ let r = 1, o = () => {
3312
+ --r === 0 && i();
3313
+ };
3314
+ for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
3315
+ for (let h of s.subwalkTargets()) {
3316
+ if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
3317
+ r++;
3318
+ let a = h.readdirCached();
3319
+ h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
3320
+ }
3321
+ o();
3322
+ }
3323
+ walkCB3(t, e, s, i) {
3324
+ s = s.filterEntries(t, e);
3325
+ let r = 1, o = () => {
3326
+ --r === 0 && i();
3327
+ };
3328
+ for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
3329
+ for (let [h, a] of s.subwalks.entries()) r++, this.walkCB2(h, a, s.child(), o);
3330
+ o();
3331
+ }
3332
+ walkCBSync(t, e, s) {
3333
+ this.signal?.aborted && s(), this.walkCB2Sync(t, e, new Et(this.opts), s);
3334
+ }
3335
+ walkCB2Sync(t, e, s, i) {
3336
+ if (this.#o(t)) return i();
3337
+ if (this.signal?.aborted && i(), this.paused) {
3338
+ this.onResume(() => this.walkCB2Sync(t, e, s, i));
3339
+ return;
3340
+ }
3341
+ s.processPatterns(t, e);
3342
+ let r = 1, o = () => {
3343
+ --r === 0 && i();
3344
+ };
3345
+ for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
3346
+ for (let h of s.subwalkTargets()) {
3347
+ if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
3348
+ r++;
3349
+ let a = h.readdirSync();
3350
+ this.walkCB3Sync(h, a, s, o);
3351
+ }
3352
+ o();
3353
+ }
3354
+ walkCB3Sync(t, e, s, i) {
3355
+ s = s.filterEntries(t, e);
3356
+ let r = 1, o = () => {
3357
+ --r === 0 && i();
3358
+ };
3359
+ for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
3360
+ for (let [h, a] of s.subwalks.entries()) r++, this.walkCB2Sync(h, a, s.child(), o);
3361
+ o();
3362
+ }
3363
+ }, xt = class extends zt {
3364
+ matches = /* @__PURE__ */ new Set();
3365
+ constructor(t, e, s) {
3366
+ super(t, e, s);
3367
+ }
3368
+ matchEmit(t) {
3369
+ this.matches.add(t);
3370
+ }
3371
+ async walk() {
3372
+ if (this.signal?.aborted) throw this.signal.reason;
3373
+ return this.path.isUnknown() && await this.path.lstat(), await new Promise((t, e) => {
3374
+ this.walkCB(this.path, this.patterns, () => {
3375
+ this.signal?.aborted ? e(this.signal.reason) : t(this.matches);
3376
+ });
3377
+ }), this.matches;
3378
+ }
3379
+ walkSync() {
3380
+ if (this.signal?.aborted) throw this.signal.reason;
3381
+ return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => {
3382
+ if (this.signal?.aborted) throw this.signal.reason;
3383
+ }), this.matches;
3384
+ }
3385
+ }, vt = class extends zt {
3386
+ results;
3387
+ constructor(t, e, s) {
3388
+ super(t, e, s), this.results = new V({
3389
+ signal: this.signal,
3390
+ objectMode: !0
3391
+ }), this.results.on("drain", () => this.resume()), this.results.on("resume", () => this.resume());
3392
+ }
3393
+ matchEmit(t) {
3394
+ this.results.write(t), this.results.flowing || this.pause();
3395
+ }
3396
+ stream() {
3397
+ let t = this.path;
3398
+ return t.isUnknown() ? t.lstat().then(() => {
3399
+ this.walkCB(t, this.patterns, () => this.results.end());
3400
+ }) : this.walkCB(t, this.patterns, () => this.results.end()), this.results;
3401
+ }
3402
+ streamSync() {
3403
+ return this.path.isUnknown() && this.path.lstatSync(), this.walkCBSync(this.path, this.patterns, () => this.results.end()), this.results;
3404
+ }
3405
+ };
3406
+ Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux", I = class {
3407
+ absolute;
3408
+ cwd;
3409
+ root;
3410
+ dot;
3411
+ dotRelative;
3412
+ follow;
3413
+ ignore;
3414
+ magicalBraces;
3415
+ mark;
3416
+ matchBase;
3417
+ maxDepth;
3418
+ nobrace;
3419
+ nocase;
3420
+ nodir;
3421
+ noext;
3422
+ noglobstar;
3423
+ pattern;
3424
+ platform;
3425
+ realpath;
3426
+ scurry;
3427
+ stat;
3428
+ signal;
3429
+ windowsPathsNoEscape;
3430
+ withFileTypes;
3431
+ includeChildMatches;
3432
+ opts;
3433
+ patterns;
3434
+ constructor(t, e) {
3435
+ if (!e) throw new TypeError("glob options required");
3436
+ if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : Infinity, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
3437
+ if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
3438
+ if (e.noglobstar) throw new TypeError("base matching requires globstar");
3439
+ t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
3440
+ }
3441
+ if (this.pattern = t, this.platform = e.platform || Pi, this.opts = {
3442
+ ...e,
3443
+ platform: this.platform
3444
+ }, e.scurry) {
3445
+ if (this.scurry = e.scurry, e.nocase !== void 0 && e.nocase !== e.scurry.nocase) throw new Error("nocase option contradicts provided scurry option");
3446
+ } else {
3447
+ let a = e.platform === "win32" ? it : e.platform === "darwin" ? St : e.platform ? rt : Xe;
3448
+ this.scurry = new a(this.cwd, {
3449
+ nocase: e.nocase,
3450
+ fs: e.fs
3451
+ });
3452
+ }
3453
+ this.nocase = this.scurry.nocase;
3454
+ let s = this.platform === "darwin" || this.platform === "win32", i = {
3455
+ braceExpandMax: 1e4,
3456
+ ...e,
3457
+ dot: this.dot,
3458
+ matchBase: this.matchBase,
3459
+ nobrace: this.nobrace,
3460
+ nocase: this.nocase,
3461
+ nocaseMagicOnly: s,
3462
+ nocomment: !0,
3463
+ noext: this.noext,
3464
+ nonegate: !0,
3465
+ optimizationLevel: 2,
3466
+ platform: this.platform,
3467
+ windowsPathsNoEscape: this.windowsPathsNoEscape,
3468
+ debug: !!this.opts.debug
3469
+ }, [o, h] = this.pattern.map((a) => new D(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
3470
+ this.patterns = o.map((a, l) => {
3471
+ let u = h[l];
3472
+ if (!u) throw new Error("invalid pattern object");
3473
+ return new nt(a, u, 0, this.platform);
3474
+ });
3475
+ }
3476
+ async walk() {
3477
+ return [...await new xt(this.patterns, this.scurry.cwd, {
3478
+ ...this.opts,
3479
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3480
+ platform: this.platform,
3481
+ nocase: this.nocase,
3482
+ includeChildMatches: this.includeChildMatches
3483
+ }).walk()];
3484
+ }
3485
+ walkSync() {
3486
+ return [...new xt(this.patterns, this.scurry.cwd, {
3487
+ ...this.opts,
3488
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3489
+ platform: this.platform,
3490
+ nocase: this.nocase,
3491
+ includeChildMatches: this.includeChildMatches
3492
+ }).walkSync()];
3493
+ }
3494
+ stream() {
3495
+ return new vt(this.patterns, this.scurry.cwd, {
3496
+ ...this.opts,
3497
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3498
+ platform: this.platform,
3499
+ nocase: this.nocase,
3500
+ includeChildMatches: this.includeChildMatches
3501
+ }).stream();
3502
+ }
3503
+ streamSync() {
3504
+ return new vt(this.patterns, this.scurry.cwd, {
3505
+ ...this.opts,
3506
+ maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3507
+ platform: this.platform,
3508
+ nocase: this.nocase,
3509
+ includeChildMatches: this.includeChildMatches
3510
+ }).streamSync();
3511
+ }
3512
+ iterateSync() {
3513
+ return this.streamSync()[Symbol.iterator]();
3514
+ }
3515
+ [Symbol.iterator]() {
3516
+ return this.iterateSync();
3517
+ }
3518
+ iterate() {
3519
+ return this.stream()[Symbol.asyncIterator]();
3520
+ }
3521
+ [Symbol.asyncIterator]() {
3522
+ return this.iterate();
3523
+ }
3524
+ };
3525
+ le = (n, t = {}) => {
3526
+ Array.isArray(n) || (n = [n]);
3527
+ for (let e of n) if (new D(e, t).hasMagic()) return !0;
3528
+ return !1;
3529
+ };
3530
+ ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(es, { sync: Ut }), Ui = Object.assign(ts, {
3531
+ stream: Bt,
3532
+ iterate: Ut
3533
+ }), Ze = Object.assign(Je, {
3534
+ glob: Je,
3535
+ globSync: ts,
3536
+ sync: Ui,
3537
+ globStream: Qe,
3538
+ stream: Ii,
3539
+ globStreamSync: Bt,
3540
+ streamSync: ji,
3541
+ globIterate: es,
3542
+ iterate: Bi,
3543
+ globIterateSync: Ut,
3544
+ iterateSync: zi,
3545
+ Glob: I,
3546
+ hasMagic: le,
3547
+ escape: tt,
3548
+ unescape: W
3549
+ });
3550
+ Ze.glob = Ze;
3551
+ }))();
3552
+ /** Glob patterns for binary/style assets copied alongside compiled output. */
3553
+ const ASSET_PATTERNS = [
3554
+ "**/*.jpg",
3555
+ "**/*.png",
3556
+ "**/*.gif",
3557
+ "**/*.svg",
3558
+ "**/*.webp",
3559
+ "**/*.sass",
3560
+ "**/*.scss",
3561
+ "**/*.css"
3562
+ ];
3563
+ /**
3564
+ * Copies asset files matching {@link ASSET_PATTERNS} from `srcDir` into
3565
+ * `destDir`, preserving each file's relative directory structure, and returns
3566
+ * the list of destination paths written. Replaces the `cpy` dependency with the
3567
+ * already-present `glob` plus `node:fs`.
3568
+ */
3569
+ function copyAssetFiles(srcDir, destDir) {
3570
+ const matches = ts(ASSET_PATTERNS, {
3571
+ cwd: srcDir,
3572
+ nodir: true
3573
+ });
3574
+ const copied = [];
3575
+ for (const relativePath of matches) {
3576
+ const from = path.join(srcDir, relativePath);
3577
+ const to = path.join(destDir, relativePath);
3578
+ mkdirSync(path.dirname(to), { recursive: true });
3579
+ copyFileSync(from, to);
3580
+ copied.push(to);
3581
+ }
3582
+ return copied;
3583
+ }
3584
+ //#endregion
3585
+ //#region src/lib/initCwd.ts
3586
+ function INIT_CWD() {
3587
+ return process.env.INIT_CWD ?? process.cwd();
3588
+ }
3589
+ //#endregion
3590
+ //#region src/lib/packageName.ts
3591
+ function packageName() {
3592
+ if (process.env.npm_package_name != null && process.env.npm_package_name.length > 0) return process.env.npm_package_name;
3593
+ try {
3594
+ const pkgPath = PATH.join(INIT_CWD(), "package.json");
3595
+ return JSON.parse(readFileSync(pkgPath, "utf8")).name;
3596
+ } catch {
3597
+ return;
3598
+ }
3599
+ }
3600
+ //#endregion
3601
+ //#region src/actions/package/copy-assets.ts
3602
+ const copyTargetAssets = async (target, name, location) => {
3603
+ try {
3604
+ const srcDir = path.join(location, "src");
3605
+ const values = copyAssetFiles(srcDir, path.join(srcDir, "..", "dist", target));
3606
+ if (values.length > 0) console.log(chalk.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
3607
+ for (const value of values) console.log(`${value.split("/").pop()} => ./dist/${target}`);
3608
+ return 0;
3609
+ } catch (ex) {
3610
+ console.log(`Copy Assets Failed: ${name}: ${ex.message}`);
3611
+ return 1;
3612
+ }
3613
+ };
3614
+ const packageCopyAssets = async ({ target }) => {
3615
+ const pkg = INIT_CWD();
3616
+ const pkgName = packageName() ?? "Unknown";
3617
+ switch (target) {
3618
+ case "esm": return await copyTargetAssets("esm", pkgName, pkg);
3619
+ case "cjs": return await copyTargetAssets("cjs", pkgName, pkg);
3620
+ default: return await copyTargetAssets("esm", pkgName, pkg) || await copyTargetAssets("cjs", pkgName, pkg);
3621
+ }
3622
+ };
3623
+ //#endregion
3624
+ //#region src/bin/package/copy-assets-esm.ts
3625
+ try {
3626
+ process.exitCode = await packageCopyAssets({ target: "esm" });
3627
+ } catch (reason) {
3628
+ console.error(chalk.red(reason));
3629
+ process.exitCode = 1;
3630
+ }
3631
+ //#endregion
3632
+ export {};
3633
+
3634
+ //# sourceMappingURL=copy-assets-esm.mjs.map