claude-code-best 2.4.4 → 2.6.0

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 (614) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-Cj5bvJgD.js +1 -0
  2. package/dist/chunks/App-2tgSv9lb.js +1 -0
  3. package/dist/chunks/ApproveApiKey-DWa-XTLb.js +1 -0
  4. package/dist/chunks/ApproveApiKey-SIUwkD8j.js +1 -0
  5. package/dist/chunks/AssistantSessionChooser-DF9eeJZS.js +1 -0
  6. package/dist/chunks/BackgroundTasksDialog-DXJdube9.js +2 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-BOSW4Zdy.js +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-BW4XHmkw.js +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-B8oAAHSI.js +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-Bz0JyaOG.js +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-DYhmGSkx.js +1 -0
  12. package/dist/chunks/DesktopHandoff-CcsM_OAS.js +1 -0
  13. package/dist/chunks/DevChannelsDialog-DXRgY00D.js +1 -0
  14. package/dist/chunks/Dialog-DYFGqyDs.js +1 -0
  15. package/dist/chunks/DiffDialog-PvNZfZby.js +3 -0
  16. package/dist/chunks/Doctor--B1HUENo.js +1 -0
  17. package/dist/chunks/Doctor-CE_jL9jC.js +3 -0
  18. package/dist/chunks/ExitFlow-C4ybxKPn.js +2 -0
  19. package/dist/chunks/Feedback-B5rPGl_C.js +2 -0
  20. package/dist/chunks/Grove-C2YjB3zL.js +1 -0
  21. package/dist/chunks/Grove-CKVpREDU.js +11 -0
  22. package/dist/chunks/HybridTransport-Byjvz-DL.js +4 -0
  23. package/dist/chunks/ITermBackend-Co9XpeS4.js +1 -0
  24. package/dist/chunks/InProcessTransport-DB52dh4f.js +1 -0
  25. package/dist/chunks/InvalidConfigDialog-CNsqbNU3.js +1 -0
  26. package/dist/chunks/InvalidSettingsDialog-ClnZaN6b.js +1 -0
  27. package/dist/chunks/ListItem-OFARanN7.js +1 -0
  28. package/dist/chunks/MCPConnectionManager-CDsa79pu.js +1 -0
  29. package/dist/chunks/McpParsingWarnings-DZkzoeZf.js +1 -0
  30. package/dist/chunks/MessageSelector-CkeGQPNM.js +3 -0
  31. package/dist/chunks/Messages-PfbzLYOU.js +11 -0
  32. package/dist/chunks/Onboarding-BwoGQB4g.js +1 -0
  33. package/dist/chunks/OverageCreditUpsell-Q5g2YjQw.js +1 -0
  34. package/dist/chunks/PermissionDialog-5MlJf7ew.js +1 -0
  35. package/dist/chunks/PluginSettings-B2ASJ0Rx.js +17 -0
  36. package/dist/chunks/PressEnterToContinue-BdA9zDGs.js +1 -0
  37. package/dist/chunks/PromptInputFooterSuggestions-D4lMVCqj.js +1 -0
  38. package/dist/chunks/PromptInputHelpMenu-BvLtS6an.js +1 -0
  39. package/dist/chunks/QueryEngine-Av0G5fze.js +1 -0
  40. package/dist/chunks/REPL-DCwqua0C.js +1 -0
  41. package/dist/chunks/REPL-Dh8vzGmF.js +97 -0
  42. package/dist/chunks/RemoteCallout-BV_hoz98.js +1 -0
  43. package/dist/chunks/RemoteSessionManager-Cxoy1ud2.js +2 -0
  44. package/dist/chunks/ResumeConversation-B3WuB8rs.js +1 -0
  45. package/dist/chunks/SSETransport-pIm26VJq.js +4 -0
  46. package/dist/chunks/SearchBox-DfOmUoaI.js +1 -0
  47. package/dist/chunks/SearchExtraToolsTool-D70C-cmA.js +1 -0
  48. package/dist/chunks/SentryErrorBoundary-B6EWoJml.js +2 -0
  49. package/dist/chunks/SentryErrorBoundary-oJUBarGg.js +1 -0
  50. package/dist/chunks/Settings-CreAhCsb.js +2 -0
  51. package/dist/chunks/TeleportProgress-DPzGpyyM.js +1 -0
  52. package/dist/chunks/TeleportRepoMismatchDialog-DqWQX6j8.js +1 -0
  53. package/dist/chunks/TeleportResumeWrapper-DPSO0S49.js +1 -0
  54. package/dist/chunks/ThemePicker-DueihHcy.js +1 -0
  55. package/dist/chunks/TmuxBackend-BNaZNAeP.js +9 -0
  56. package/dist/chunks/TrustDialog-CIzAlGn9.js +1 -0
  57. package/dist/chunks/TungstenTool-C5IqKVr0.js +1 -0
  58. package/dist/chunks/TungstenTool-V-Bwqlx3.js +1 -0
  59. package/dist/chunks/ValidationErrorsList-1k1qbsRo.js +2 -0
  60. package/dist/chunks/WelcomeV2-CR6TtXXM.js +1 -0
  61. package/dist/chunks/WindowsTerminalBackend-C5SeTXqC.js +2 -0
  62. package/dist/chunks/add-dir-DAMizKzF.js +1 -0
  63. package/dist/chunks/agentDisplay-B9z7i8b_.js +1 -0
  64. package/dist/chunks/agents-D5u0p1UC.js +103 -0
  65. package/dist/chunks/agents-DCh_gEvJ.js +2 -0
  66. package/dist/chunks/ajv-B_OpU_Uh.js +8 -0
  67. package/dist/chunks/analytics-DqMQntaB.js +1 -0
  68. package/dist/chunks/ant-DRJq-cEg.js +1 -0
  69. package/dist/chunks/api-B6URs6nc.js +1 -0
  70. package/dist/chunks/api-Dz_3z1kl.js +1 -0
  71. package/dist/chunks/asciicast-aoKFhc7C.js +1 -0
  72. package/dist/chunks/asciicast-o5Zg4dJt.js +4 -0
  73. package/dist/chunks/assistant-BRGDWkKB.js +1 -0
  74. package/dist/chunks/assistant-tPxOUa-Z.js +1 -0
  75. package/dist/chunks/assistant-zVegFdAO.js +1 -0
  76. package/dist/chunks/attributionHooks-PygdohOh.js +1 -0
  77. package/dist/chunks/attributionTrailer-BpvhXgRP.js +1 -0
  78. package/dist/chunks/auth-CqURlg4d.js +1 -0
  79. package/dist/chunks/auth-D4isgfuK.js +1 -0
  80. package/dist/chunks/autoMode-DVt4K4I2.js +45 -0
  81. package/dist/chunks/autoModeDenials-Cp6VFdsm.js +1 -0
  82. package/dist/chunks/autonomy-BZzW8QJZ.js +1 -0
  83. package/dist/chunks/autonomy-Ffv0QIyl.js +19 -0
  84. package/dist/chunks/autonomyPanel-MwuzDvv_.js +1 -0
  85. package/dist/chunks/axios-DLnc2dVy.js +1 -0
  86. package/dist/chunks/axios-DhfaybwJ.js +12 -0
  87. package/dist/chunks/backgroundHousekeeping-CYnAG60-.js +17 -0
  88. package/dist/chunks/backgroundHousekeeping-DUmxC6h0.js +1 -0
  89. package/dist/chunks/banner-CVXH2xts.js +2 -0
  90. package/dist/chunks/base64-js-DIVSFswY.js +1 -0
  91. package/dist/chunks/bedrockClient-qi1-JCOK.js +15 -0
  92. package/dist/chunks/bg-DK0E4ZtW.js +9 -0
  93. package/dist/chunks/bg-Dbh5z3Y8.js +1 -0
  94. package/dist/chunks/branch-DXefFdDE.js +3 -0
  95. package/dist/chunks/break-cache-ByJ7U2Ts.js +8 -0
  96. package/dist/chunks/bridge-qr4GQW_c.js +2 -0
  97. package/dist/chunks/bridgeConfig-CJ-KznTS.js +1 -0
  98. package/dist/chunks/bridgeConfig-CNbOKpAg.js +1 -0
  99. package/dist/chunks/bridgeEnabled-5vsPrjuq.js +1 -0
  100. package/dist/chunks/bridgeEnabled-BUJTCUHY.js +1 -0
  101. package/dist/chunks/bridgeMain-BimZwc2P.js +68 -0
  102. package/dist/chunks/bridgeMain-DYL4fl6A.js +1 -0
  103. package/dist/chunks/bridgeMessaging-BiE0CTqq.js +1 -0
  104. package/dist/chunks/bridgePointer-FvAMj3re.js +1 -0
  105. package/dist/chunks/browser-fLRXxIsQ.js +1 -0
  106. package/dist/chunks/btw-FpimqEqk.js +1 -0
  107. package/dist/chunks/buddy-BA3Cr067.js +3 -0
  108. package/dist/chunks/bundledMode-kSQejuY4.js +1 -0
  109. package/dist/chunks/bypassPermissionsKillswitch-CSC9p8mO.js +1 -0
  110. package/dist/chunks/caches-BUBkfP2Q.js +3 -0
  111. package/dist/chunks/caches-CTfNpKhW.js +1 -0
  112. package/dist/chunks/capacityWake-BXlUpptF.js +1 -0
  113. package/dist/chunks/ccrClient-BOxUn9EJ.js +1 -0
  114. package/dist/chunks/ccshareResume-DWLjTF22.js +1 -0
  115. package/dist/chunks/changeDetector-Y9KV5LgG.js +1 -0
  116. package/dist/chunks/channelNotification-CC7Xb06W.js +1 -0
  117. package/dist/chunks/channelNotification-l3EXKDNB.js +1 -0
  118. package/dist/chunks/chokidar-BcI3rIKm.js +1 -0
  119. package/dist/chunks/chokidar-SzksMqYp.js +1 -0
  120. package/dist/chunks/chrome-BnKyWWQL.js +1 -0
  121. package/dist/chunks/chromeNativeHost-4U39yLtd.js +1 -0
  122. package/dist/chunks/chunk-DR8-3Aex.js +1 -0
  123. package/dist/chunks/classPrivateFieldSet2-EAQNhHs8.js +1 -0
  124. package/dist/chunks/claudeDesktop-D0S1eq1F.js +1 -0
  125. package/dist/chunks/cleanup-Bg_gFgcj.js +1 -0
  126. package/dist/chunks/clear-OUVFUt8Z.js +1 -0
  127. package/dist/chunks/cliLaunch-BQa48gsr.js +1 -0
  128. package/dist/chunks/client-B47ZvTMo.js +1 -0
  129. package/dist/chunks/client-CPn1wQyc.js +7 -0
  130. package/dist/chunks/client-_sjL0I7A.js +35 -0
  131. package/dist/chunks/color-D5MCzz9h.js +1 -0
  132. package/dist/chunks/color-convert-ULbeSgNC.js +1 -0
  133. package/dist/chunks/commands-FJGWgQsa.js +1 -0
  134. package/dist/chunks/commitAttribution-BFshsh2H.js +2 -0
  135. package/dist/chunks/commitAttribution-DSv9FggK.js +1 -0
  136. package/dist/chunks/common-B379wT22.js +1 -0
  137. package/dist/chunks/common-B_BC3eMY.js +1 -0
  138. package/dist/chunks/common-CMCv4N_v.js +1 -0
  139. package/dist/chunks/compact-DWNaf1wR.js +3 -0
  140. package/dist/chunks/companion-CyK_Dr1U.js +1 -0
  141. package/dist/chunks/completionCache-DHfUBBMH.js +1 -0
  142. package/dist/chunks/completionCache-DORrtxkS.js +4 -0
  143. package/dist/chunks/computerUseLock-BjoDJH2h.js +1 -0
  144. package/dist/chunks/config-BdCuh6eA.js +1 -0
  145. package/dist/chunks/config-DNz6Eitr.js +1 -0
  146. package/dist/chunks/connectHeadless-CwsFt-Mh.js +1 -0
  147. package/dist/chunks/constants-41VpZw2G.js +1 -0
  148. package/dist/chunks/context-BOjdTj0i.js +1 -0
  149. package/dist/chunks/context-noninteractive-Bd2HO-vU.js +1 -0
  150. package/dist/chunks/context-noninteractive-k2ibficU.js +54 -0
  151. package/dist/chunks/controlMessageCompat-BJhFiS7u.js +1 -0
  152. package/dist/chunks/conversation-BP0phkOY.js +1 -0
  153. package/dist/chunks/conversation-Ci8O_eZ-.js +1 -0
  154. package/dist/chunks/copy-B0VUJ2rH.js +7 -0
  155. package/dist/chunks/createSSHSession-DqmkCS_k.js +6 -0
  156. package/dist/chunks/createSession-B9MhWusY.js +1 -0
  157. package/dist/chunks/createSession-CJEsHz58.js +1 -0
  158. package/dist/chunks/cron-DiW7eIPP.js +1 -0
  159. package/dist/chunks/cronJitterConfig-BzPaa52I.js +6 -0
  160. package/dist/chunks/crossProjectResume-tWsqBUHc.js +40 -0
  161. package/dist/chunks/cwd--iizewsn.js +1 -0
  162. package/dist/chunks/cwd-BgpSJxd7.js +1 -0
  163. package/dist/chunks/daemon-VYRit6Aq.js +2 -0
  164. package/dist/chunks/dangerousBackend-BU_PHGR2.js +1 -0
  165. package/dist/chunks/datadog-Bd1s_VFj.js +1 -0
  166. package/dist/chunks/datadog-DJowkWhh.js +1 -0
  167. package/dist/chunks/debug-DM5ezCBS.js +1 -0
  168. package/dist/chunks/debug-UI3T040K.js +5 -0
  169. package/dist/chunks/debugUtils-BBMFODKH.js +1 -0
  170. package/dist/chunks/defineProperty-80gRi2ZW.js +1 -0
  171. package/dist/chunks/desktop-BDowrzvG.js +1 -0
  172. package/dist/chunks/detached-D300jlhj.js +5 -0
  173. package/dist/chunks/detect-libc-DNuQfUvI.js +1 -0
  174. package/dist/chunks/detectRepository-CBk3S2zv.js +1 -0
  175. package/dist/chunks/detectRepository-DCTvg4p0.js +1 -0
  176. package/dist/chunks/detection-CQsNad64.js +1 -0
  177. package/dist/chunks/detection-DJ-vTbBf.js +1 -0
  178. package/dist/chunks/diff-auU5sUOw.js +1 -0
  179. package/dist/chunks/directoryCompletion-DP_4B1GL.js +1 -0
  180. package/dist/chunks/dist-CanSxOZ1.js +5 -0
  181. package/dist/chunks/dist-Cg1a1Exw.js +29 -0
  182. package/dist/chunks/dist-Q7YNoZ0H.js +20 -0
  183. package/dist/chunks/dist-es-4z5T3Jzm.js +1 -0
  184. package/dist/chunks/dist-es-B2jg52tM2.js +1 -0
  185. package/dist/chunks/dist-es-B6OXHQ1S.js +1 -0
  186. package/dist/chunks/dist-es-B8NEy5hc.js +1 -0
  187. package/dist/chunks/dist-es-BVGppqE4.js +1 -0
  188. package/dist/chunks/dist-es-Bcw5GZko.js +1 -0
  189. package/dist/chunks/dist-es-BoIJpncb.js +9 -0
  190. package/dist/chunks/dist-es-Bu_Fshi1.js +1 -0
  191. package/dist/chunks/dist-es-C-1vn4OP2.js +1 -0
  192. package/dist/chunks/dist-es-C41b_0B5.js +1 -0
  193. package/dist/chunks/dist-es-CCZYybbG2.js +1 -0
  194. package/dist/chunks/dist-es-CLK1mey-.js +1 -0
  195. package/dist/chunks/dist-es-CQz2aNf72.js +1 -0
  196. package/dist/chunks/dist-es-CSfI8B8l.js +1 -0
  197. package/dist/chunks/dist-es-CUZBYppo.js +1 -0
  198. package/dist/chunks/dist-es-CZkzHpjF.js +1 -0
  199. package/dist/chunks/dist-es-Cbf0_D8d.js +5 -0
  200. package/dist/chunks/dist-es-ChHe-SVL.js +1 -0
  201. package/dist/chunks/dist-es-ClYOf0My.js +1 -0
  202. package/dist/chunks/dist-es-D-kJbj4A2.js +1 -0
  203. package/dist/chunks/dist-es-D1LN6CJd.js +1 -0
  204. package/dist/chunks/dist-es-DC1sC3ph.js +1 -0
  205. package/dist/chunks/dist-es-DGn8uOwQ2.js +1 -0
  206. package/dist/chunks/dist-es-DK5fTeKM2.js +1 -0
  207. package/dist/chunks/dist-es-DN7otr6F.js +1 -0
  208. package/dist/chunks/dist-es-DPM0mPK5.js +1 -0
  209. package/dist/chunks/dist-es-DqZAh3nG.js +1 -0
  210. package/dist/chunks/dist-es-DuAZyxJ02.js +5 -0
  211. package/dist/chunks/dist-es-HVQrM0oE.js +1 -0
  212. package/dist/chunks/dist-es-OVleIB54.js +1 -0
  213. package/dist/chunks/dist-es-UAs0rdXg.js +1 -0
  214. package/dist/chunks/dist-es-WvMMuHmx2.js +1 -0
  215. package/dist/chunks/dist-es-fjXft-jH.js +1 -0
  216. package/dist/chunks/dist-es-hdN_ShpZ.js +3 -0
  217. package/dist/chunks/dist-es-neiUvMJb.js +1 -0
  218. package/dist/chunks/dist-es-yMYpDtui2.js +1 -0
  219. package/dist/chunks/dist-es-zjcbuB72.js +1 -0
  220. package/dist/chunks/distRoot-CcxmnzqQ.js +1 -0
  221. package/dist/chunks/doctor-bKPp6AeL.js +1 -0
  222. package/dist/chunks/earlyInput-JGJo1zcC.js +1 -0
  223. package/dist/chunks/earlyInput-tRkbxFv2.js +2 -0
  224. package/dist/chunks/effort-BQj2QnnA.js +9 -0
  225. package/dist/chunks/entry-CUu6-QhT.js +14 -0
  226. package/dist/chunks/env-chR0gV31.js +1 -0
  227. package/dist/chunks/envLessBridgeConfig-CixkwbRF.js +1 -0
  228. package/dist/chunks/envLessBridgeConfig-Ju4W58xf.js +1 -0
  229. package/dist/chunks/envUtils-BWeoiL4Y.js +1 -0
  230. package/dist/chunks/escHotkey-Cyz0yyh1.js +259 -0
  231. package/dist/chunks/esm--xjzB1hI.js +1 -0
  232. package/dist/chunks/esm-B2HIF0XY.js +1 -0
  233. package/dist/chunks/esm-BGQPWnJy.js +1 -0
  234. package/dist/chunks/esm-C-1qL9Mn.js +1 -0
  235. package/dist/chunks/esm-C3jcs1DH.js +1 -0
  236. package/dist/chunks/esm-C97WL9nC.js +1 -0
  237. package/dist/chunks/esm-CIL-SKM8.js +1 -0
  238. package/dist/chunks/esm-CJlBxjtx.js +1 -0
  239. package/dist/chunks/esm-CsGLyWmS.js +56 -0
  240. package/dist/chunks/esm-DQHmDm-H.js +1 -0
  241. package/dist/chunks/esm-DcdOXSzi.js +1 -0
  242. package/dist/chunks/esm-DhNYgGTV.js +1 -0
  243. package/dist/chunks/esm-DxPW7qPs.js +1 -0
  244. package/dist/chunks/esm-FBUWr3vI.js +1 -0
  245. package/dist/chunks/esm-QgL6y---.js +10 -0
  246. package/dist/chunks/esm-v0kPjgVS.js +1 -0
  247. package/dist/chunks/esm-vIn-YV_h.js +1 -0
  248. package/dist/chunks/event-streams-BV7ngMXu.js +1 -0
  249. package/dist/chunks/eventLoopStallDetector-Dnh1fc31.js +1 -0
  250. package/dist/chunks/execAsync-BkA6ogic.js +1 -0
  251. package/dist/chunks/execFileNoThrow-CuQN1sz8.js +1 -0
  252. package/dist/chunks/execSyncWrapper-C2XQnFVo.js +1 -0
  253. package/dist/chunks/execa-CGue6Z3n.js +34 -0
  254. package/dist/chunks/executor-4EeD8GNm.js +1561 -0
  255. package/dist/chunks/executor-BHEuNh5F.js +1 -0
  256. package/dist/chunks/exit-DijkO8eo.js +1 -0
  257. package/dist/chunks/exit-_obETqBv.js +2 -0
  258. package/dist/chunks/export-DA-bBZkX.js +2 -0
  259. package/dist/chunks/exportRenderer-3y4tGdSB.js +1 -0
  260. package/dist/chunks/extra-usage-CS6VwKJt.js +1 -0
  261. package/dist/chunks/extra-usage-DGHEQOrY.js +1 -0
  262. package/dist/chunks/extra-usage-core-DOgT4u4i.js +1 -0
  263. package/dist/chunks/extra-usage-noninteractive-DYnfiRlV.js +1 -0
  264. package/dist/chunks/extraUsage-CfxgfpX_.js +1 -0
  265. package/dist/chunks/extractMemories-jvjCvtpC.js +1 -0
  266. package/dist/chunks/fast-Bbtx_Bs1.js +1 -0
  267. package/dist/chunks/fast-CzRUJBTK.js +1 -0
  268. package/dist/chunks/featureCheck-Cm0YNDXO.js +1 -0
  269. package/dist/chunks/featureCheck-p7OeCYzj.js +1 -0
  270. package/dist/chunks/feedback-FoXtdHAV.js +1 -0
  271. package/dist/chunks/figures-gfT9mM8P.js +1 -0
  272. package/dist/chunks/fileStateCache-C7-TxF8G.js +1 -0
  273. package/dist/chunks/files-DYvAZGxp.js +2 -0
  274. package/dist/chunks/firstPartyEventLogger-KIwaBY-E.js +1 -0
  275. package/dist/chunks/flushGate-C2Icy43G.js +1 -0
  276. package/dist/chunks/foundry-sdk-BFN5VDFQ.js +1 -0
  277. package/dist/chunks/fpsMetrics-DeezdcwV.js +1 -0
  278. package/dist/chunks/fuse-Ch_OAlm3.js +1 -0
  279. package/dist/chunks/gates-CbQLZHtm.js +1 -0
  280. package/dist/chunks/gates-DSI3vpwO.js +1 -0
  281. package/dist/chunks/gemini-BrNJGX4k.js +1 -0
  282. package/dist/chunks/generateRecap-B0fvSCjo.js +1 -0
  283. package/dist/chunks/generateSessionName-DvRYa39O.js +1 -0
  284. package/dist/chunks/genericProcessUtils-BGvcwuPt.js +23 -0
  285. package/dist/chunks/getMachineId-bsd-BMtYGBUL.js +1 -0
  286. package/dist/chunks/getMachineId-darwin-CiLdFH7z.js +2 -0
  287. package/dist/chunks/getMachineId-linux-Cr27rIeY.js +1 -0
  288. package/dist/chunks/getMachineId-unsupported-ceiBLwAN.js +1 -0
  289. package/dist/chunks/getMachineId-win-DFTmsQHq.js +1 -0
  290. package/dist/chunks/git-CN3qtTb_.js +6 -0
  291. package/dist/chunks/git-D23Mzu_K.js +1 -0
  292. package/dist/chunks/githubRepoPathMapping-Dut3d6nn.js +1 -0
  293. package/dist/chunks/graceful-fs-Cgc0rjGF.js +2 -0
  294. package/dist/chunks/grok-Ftoheab3.js +1 -0
  295. package/dist/chunks/growthbook-BynnuVTn.js +1 -0
  296. package/dist/chunks/hash-BRmOQc3c.js +1 -0
  297. package/dist/chunks/heapdump-hQ_w0LPC.js +5 -0
  298. package/dist/chunks/help-DQsHHv6r.js +1 -0
  299. package/dist/chunks/hooks-BLLL4iPv.js +1 -0
  300. package/dist/chunks/hooks-BhVDc8yb.js +79 -0
  301. package/dist/chunks/hostAdapter-D1eWmmhu.js +1 -0
  302. package/dist/chunks/hostGuard-zim_4F9V.js +1 -0
  303. package/dist/chunks/httpAuthSchemes-Wq4XWeLL.js +13 -0
  304. package/dist/chunks/ide-CPmMXLL-.js +2 -0
  305. package/dist/chunks/inboundAttachments-Bmf6vYsE.js +1 -0
  306. package/dist/chunks/inboundAttachments-D-p91z3w.js +1 -0
  307. package/dist/chunks/index.min-BJnb9GQI.js +1 -0
  308. package/dist/chunks/initReplBridge-BiHXpDEY.js +1 -0
  309. package/dist/chunks/insights-CTlTyvjj.js +822 -0
  310. package/dist/chunks/install-IPuD3Lq8.js +1 -0
  311. package/dist/chunks/install-github-app-Bmu_sA9e.js +147 -0
  312. package/dist/chunks/install-slack-app-Rfl81Jqo.js +1 -0
  313. package/dist/chunks/instinctParser-DHMa8xa0.js +1 -0
  314. package/dist/chunks/instrumentation-DWwmOmr0.js +12 -0
  315. package/dist/chunks/intl-Pse97ORk.js +1 -0
  316. package/dist/chunks/isObject-DaxDnPKm.js +1 -0
  317. package/dist/chunks/isSymbol-Dp3irZaY.js +1 -0
  318. package/dist/chunks/job-BXEt0izn.js +2 -0
  319. package/dist/chunks/json-bigint-OxRwRvup.js +8 -0
  320. package/dist/chunks/jsx-runtime-D-D469L8.js +1 -0
  321. package/dist/chunks/jws-2vqRyZtR.js +3 -0
  322. package/dist/chunks/jwtUtils-CpXwh_du.js +1 -0
  323. package/dist/chunks/keybindings-DRDgVvqz.js +2 -0
  324. package/dist/chunks/lang-D3ZHlfT6.js +1 -0
  325. package/dist/chunks/language-B_-BfBT4.js +1 -0
  326. package/dist/chunks/language-DcSjogBx.js +1 -0
  327. package/dist/chunks/launchAgentsPlatform-BPm_VMln.js +1 -0
  328. package/dist/chunks/launchAutofixPr-D2qac07g.js +2 -0
  329. package/dist/chunks/launchCommand-Du91jxMC.js +1 -0
  330. package/dist/chunks/launchLocalMemory-D_hBbXKE.js +3 -0
  331. package/dist/chunks/launchLocalVault-CPzNWvQ9.js +3 -0
  332. package/dist/chunks/launchMemoryStores-Djq2KhKb.js +1 -0
  333. package/dist/chunks/launchOnboarding-Bh6E7vdc.js +8 -0
  334. package/dist/chunks/launchSchedule-C988bQ-5.js +1 -0
  335. package/dist/chunks/launchSkillStore-DqrP6Gme.js +1 -0
  336. package/dist/chunks/launchTeleport-DFhybaq_.js +3 -0
  337. package/dist/chunks/launchVault-p_CSK4ZQ.js +1 -0
  338. package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
  339. package/dist/chunks/lib-B4Q0Nrpb.js +14 -0
  340. package/dist/chunks/lib-Ca3QWJjN.js +2 -0
  341. package/dist/chunks/lib-inCisXen.js +8 -0
  342. package/dist/chunks/loadAgentsDir-Ci5mr0vm.js +4601 -0
  343. package/dist/chunks/loadAgentsDir-vB1QEZ7H.js +1 -0
  344. package/dist/chunks/loadPluginHooks-xYCEZ6t5.js +1 -0
  345. package/dist/chunks/loadSso-sDs471GC.js +1 -0
  346. package/dist/chunks/localSearch-DtVqtfvk.js +1 -0
  347. package/dist/chunks/localSearch-Vpn6W5aY.js +1 -0
  348. package/dist/chunks/lockfile-DBwdlC3K.js +1 -0
  349. package/dist/chunks/log-CzsijfHZ.js +1 -0
  350. package/dist/chunks/login-D-N78G6r.js +1 -0
  351. package/dist/chunks/login-D9IWjvza.js +1 -0
  352. package/dist/chunks/logoV2Utils-SAulcC5x.js +1 -0
  353. package/dist/chunks/logout-CFggVS-9.js +1 -0
  354. package/dist/chunks/magicDocs-BfoeYhin.js +57 -0
  355. package/dist/chunks/main-C6be1KFk.js +31 -0
  356. package/dist/chunks/main-DhMlhVj3.js +1108 -0
  357. package/dist/chunks/mappers-uIrAj-Wd.js +1 -0
  358. package/dist/chunks/mcp-CAYGNxCb.js +1 -0
  359. package/dist/chunks/mcp-COQap0SM.js +6 -0
  360. package/dist/chunks/mcp-DlM0OC6R.js +2 -0
  361. package/dist/chunks/mcpServer-1SnOWb8_.js +1 -0
  362. package/dist/chunks/mcpServer-DXvS3v4x.js +1 -0
  363. package/dist/chunks/memoize-DNnuA2aU.js +1 -0
  364. package/dist/chunks/memoize-DxwLawI2.js +1 -0
  365. package/dist/chunks/memory-XccPLQLt.js +1 -0
  366. package/dist/chunks/mobile-umu5P0cM.js +2 -0
  367. package/dist/chunks/modalContext-CmSKRyea.js +1 -0
  368. package/dist/chunks/model-CbiDGGJU.js +1 -0
  369. package/dist/chunks/model-DdbcxKub.js +1 -0
  370. package/dist/chunks/normalization-Cox8C0dP.js +1 -0
  371. package/dist/chunks/oauth-CdZEzMww.js +1 -0
  372. package/dist/chunks/oauth-CmensepG.js +1 -0
  373. package/dist/chunks/observationStore-tvkldXUo.js +4 -0
  374. package/dist/chunks/onChangeAppState-Dp0JIXd8.js +1 -0
  375. package/dist/chunks/open-CDditBQ-.js +1 -0
  376. package/dist/chunks/openai-6KcHd4Hw.js +10 -0
  377. package/dist/chunks/openaiShared-D5lOejS1.js +16 -0
  378. package/dist/chunks/output-style-XDb9-2Kk.js +1 -0
  379. package/dist/chunks/overageCreditGrant-DYiB4sr-.js +1 -0
  380. package/dist/chunks/p-map-9Ud1LOrJ.js +1 -0
  381. package/dist/chunks/p-map-D7WEmnBE.js +1 -0
  382. package/dist/chunks/package-BhL7chzt.js +1 -0
  383. package/dist/chunks/panel-ByW1omJn.js +1 -0
  384. package/dist/chunks/panel-Bz_8td5D.js +1 -0
  385. package/dist/chunks/parseConnectUrl-BS6i9JPo.js +1 -0
  386. package/dist/chunks/parser-CmngCwjB.js +1 -0
  387. package/dist/chunks/parser-SWIZo39J.js +1 -0
  388. package/dist/chunks/passes-Cbc6T_Tj.js +1 -0
  389. package/dist/chunks/path-C4kbwvSH.js +1 -0
  390. package/dist/chunks/paths-Q2255dD7.js +39 -0
  391. package/dist/chunks/permissions-BLzPHh_3.js +3 -0
  392. package/dist/chunks/permissions-DXLfdE7b.js +1 -0
  393. package/dist/chunks/permissions-Ps_D01ZB.js +1 -0
  394. package/dist/chunks/pipeTransport-D7NIp3aA.js +1 -0
  395. package/dist/chunks/plan-DloFVJK7.js +1 -0
  396. package/dist/chunks/platform-CuyedWpe.js +2 -0
  397. package/dist/chunks/plist-BO4ZqMZc.js +6 -0
  398. package/dist/chunks/plugin-XR9IBPMM.js +1 -0
  399. package/dist/chunks/pluginAutoupdate-Cr9hP0zG.js +1 -0
  400. package/dist/chunks/pluginBlocklist-CM9uP8CY.js +1 -0
  401. package/dist/chunks/pluginCliCommands-BQkrvES5.js +1 -0
  402. package/dist/chunks/pluginFlagging-CJ1--2Kw.js +1 -0
  403. package/dist/chunks/pluginOperations-B0rLuSvo.js +2 -0
  404. package/dist/chunks/pluginStartupCheck-Bjdc8zhz.js +1 -0
  405. package/dist/chunks/pluginStartupCheck-Cu2ezD51.js +1 -0
  406. package/dist/chunks/plugins-BgOP_8TX.js +4 -0
  407. package/dist/chunks/policyLimits-CKy_gTEt.js +1 -0
  408. package/dist/chunks/pollConfig-DhptuhFw.js +1 -0
  409. package/dist/chunks/poller-Ds0Y6Cir.js +1 -0
  410. package/dist/chunks/poor-DF0aqXDx.js +1 -0
  411. package/dist/chunks/poorMode-C5Frra4j.js +1 -0
  412. package/dist/chunks/poorMode-DJvjO2nW.js +1 -0
  413. package/dist/chunks/postCommitAttribution-Ehmwzzuq.js +1 -0
  414. package/dist/chunks/print-CPtR0KTa.js +39 -0
  415. package/dist/chunks/privacy-settings-e-7lc7Un.js +1 -0
  416. package/dist/chunks/process-CWupreF6.js +1 -0
  417. package/dist/chunks/process-DMKLUQIO.js +1 -0
  418. package/dist/chunks/processBashCommand-D5dC6Mya.js +1 -0
  419. package/dist/chunks/processSlashCommand-DHRUtZ-C.js +6 -0
  420. package/dist/chunks/projectContext-0fpRKUeH.js +1 -0
  421. package/dist/chunks/projectContext-eXMSfgdZ.js +1 -0
  422. package/dist/chunks/prompt-4tea6NJQ.js +54 -0
  423. package/dist/chunks/prompt-CQC-mh6u.js +1 -0
  424. package/dist/chunks/prompt-DEPUnJdB.js +222 -0
  425. package/dist/chunks/prompt-DawxLANl.js +1 -0
  426. package/dist/chunks/promptEditor-Ci-h04-5.js +4 -0
  427. package/dist/chunks/protocolHandler-DhqM32qE.js +13 -0
  428. package/dist/chunks/protocols-CAyQOlkr.js +7 -0
  429. package/dist/chunks/proxy-CfZp-wce.js +99 -0
  430. package/dist/chunks/rate-limit-options-B0l29Zx8.js +1 -0
  431. package/dist/chunks/rcDebugLog-BbPkkigY.js +11 -0
  432. package/dist/chunks/referral-ByevBJrE.js +1 -0
  433. package/dist/chunks/refresh-B_CwwIRX.js +1 -0
  434. package/dist/chunks/registerProtocol-DzhaQH02.js +36 -0
  435. package/dist/chunks/registry-DkHA4cRu.js +1 -0
  436. package/dist/chunks/release-notes-CZthYkei.js +4 -0
  437. package/dist/chunks/releaseNotes-CwKpIsyd.js +2 -0
  438. package/dist/chunks/reload-plugins-DxWfXvrN.js +1 -0
  439. package/dist/chunks/remote-env-BiRLWIrh.js +1 -0
  440. package/dist/chunks/remoteBridgeCore-nz1fPY1U.js +1 -0
  441. package/dist/chunks/remoteControlServer-FzLUxh2B.js +3 -0
  442. package/dist/chunks/rename-DmGuyncE.js +1 -0
  443. package/dist/chunks/renderOptions-BiyC2rj1.js +1 -0
  444. package/dist/chunks/resume-7GeU7RMS.js +2 -0
  445. package/dist/chunks/rewind-CXplHgh_.js +1 -0
  446. package/dist/chunks/rollback-DbSpxmJE.js +11 -0
  447. package/dist/chunks/runtimeObserver-Duod-ign.js +10 -0
  448. package/dist/chunks/runtimeObserver-OgM9ZYxZ.js +1 -0
  449. package/dist/chunks/sandbox-adapter-CxkhKgaa.js +1 -0
  450. package/dist/chunks/sandbox-toggle-Cc96R6Ox.js +1 -0
  451. package/dist/chunks/sanitization-CYp-9DbE.js +1 -0
  452. package/dist/chunks/satisfies-BaHgd_ie.js +1 -0
  453. package/dist/chunks/schemas-BGAvj1T4.js +40 -0
  454. package/dist/chunks/sdk-DEtgRZvI.js +1 -0
  455. package/dist/chunks/sdkHeapDumpMonitor--fevrC5z.js +1 -0
  456. package/dist/chunks/searchExtraTools-DQ6e601b.js +1 -0
  457. package/dist/chunks/semver-Cq33BYay.js +1 -0
  458. package/dist/chunks/semver-Tw0AFar5.js +1 -0
  459. package/dist/chunks/sentry-BUHYuYGj.js +13 -0
  460. package/dist/chunks/server-C5XZSlto.js +1 -0
  461. package/dist/chunks/server-DzOdtq8A.js +1 -0
  462. package/dist/chunks/serverBanner-WlSYP-f8.js +1 -0
  463. package/dist/chunks/serverLog-DtsUvDiY.js +1 -0
  464. package/dist/chunks/session-DgLqm7ZI.js +2 -0
  465. package/dist/chunks/sessionDataUploader-Ctjo1bgR.js +1 -0
  466. package/dist/chunks/sessionDiscovery-DgNea6qa.js +1 -0
  467. package/dist/chunks/sessionFileAccessHooks-7Svz-7S-.js +1 -0
  468. package/dist/chunks/sessionManager-Dw72ZUTg.js +1 -0
  469. package/dist/chunks/sessionMemory-DIrR3zvb.js +1 -0
  470. package/dist/chunks/sessionMemory-_dmj8lcH.js +1 -0
  471. package/dist/chunks/sessionMemoryUtils-BdQtSkRx.js +1 -0
  472. package/dist/chunks/sessionObserver-CuWMVPlT.js +20 -0
  473. package/dist/chunks/sessionObserver-_adufOGQ.js +1 -0
  474. package/dist/chunks/sessionStorage-W7okgAlQ.js +1 -0
  475. package/dist/chunks/sessionStoragePortable-BI9q2WcJ.js +3 -0
  476. package/dist/chunks/sessionTitle-DzkMzHer.js +14 -0
  477. package/dist/chunks/sessionTracing-DTjmc0EF.js +11 -0
  478. package/dist/chunks/settingsSync-CfYDkakY.js +1 -0
  479. package/dist/chunks/setup-BKUG46jQ.js +9 -0
  480. package/dist/chunks/setup-CmLngvpJ.js +1 -0
  481. package/dist/chunks/setup-TqJ7-Nxh.js +2 -0
  482. package/dist/chunks/shadowedRuleDetection-DesT0yKM.js +1 -0
  483. package/dist/chunks/shellQuote-DgjT8KBA.js +1 -0
  484. package/dist/chunks/sideQuestion-BAq0YyKY.js +20 -0
  485. package/dist/chunks/signin-QEeYpJZw.js +1 -0
  486. package/dist/chunks/sink-B3uP8Cf8.js +1 -0
  487. package/dist/chunks/sink-CaWMZBw_.js +1 -0
  488. package/dist/chunks/sinks-COcy5GnB.js +2 -0
  489. package/dist/chunks/sinks-oFfsKySL.js +1 -0
  490. package/dist/chunks/skill-learning-DOIMPtWE.js +5 -0
  491. package/dist/chunks/skillChangeDetector-CA_Tdx8N.js +1 -0
  492. package/dist/chunks/skillGapStore-CWuw1dYh.js +1 -0
  493. package/dist/chunks/skillGapStore-DpEoKhn-.js +5 -0
  494. package/dist/chunks/skillGenerator-9y3Q4YoO.js +8 -0
  495. package/dist/chunks/skillLearning-BhM09bQD.js +1 -0
  496. package/dist/chunks/skillLearning-_o2D06yM.js +1 -0
  497. package/dist/chunks/skillPanel-Dt24mZTZ.js +28 -0
  498. package/dist/chunks/skillSearchPanel-gaXN64Fu.js +21 -0
  499. package/dist/chunks/skills-Dx3dMHYk.js +1 -0
  500. package/dist/chunks/slashCommandParsing-Cari0pNg.js +1 -0
  501. package/dist/chunks/sleep-8Eb9j_Ly.js +1 -0
  502. package/dist/chunks/sprites-5OAB-Ui2.js +1 -0
  503. package/dist/chunks/src-BIPP3_mo.js +26 -0
  504. package/dist/chunks/src-BJz1KAd_.js +6 -0
  505. package/dist/chunks/src-BRAdBA8A.js +1 -0
  506. package/dist/chunks/src-BRC_BuUP.js +1 -0
  507. package/dist/chunks/src-BaB-bpCj.js +5 -0
  508. package/dist/chunks/src-BlLavFUS.js +7 -0
  509. package/dist/chunks/src-C5yhFG0C.js +19 -0
  510. package/dist/chunks/src-CI_jaaBj.js +2 -0
  511. package/dist/chunks/src-CRsA-Z4y.js +1 -0
  512. package/dist/chunks/src-CYLfL70h.js +1 -0
  513. package/dist/chunks/src-DJXCzwyJ.js +1 -0
  514. package/dist/chunks/src-DJXKJavk.js +1 -0
  515. package/dist/chunks/src-Di342QoJ.js +53 -0
  516. package/dist/chunks/src-DsMd9Q9e.js +2 -0
  517. package/dist/chunks/src-DzH9IdOo.js +1 -0
  518. package/dist/chunks/src-hdbPEvzO.js +9 -0
  519. package/dist/chunks/src-poaoYkuc.js +1 -0
  520. package/dist/chunks/src-x7u_sB6m.js +1 -0
  521. package/dist/chunks/sso-oidc-BX1MlBX0.js +1 -0
  522. package/dist/chunks/startupProfiler-DnXZaX4A.js +3 -0
  523. package/dist/chunks/startupProfiler-SOE--nM9.js +1 -0
  524. package/dist/chunks/state-B2GIOsTB.js +1 -0
  525. package/dist/chunks/state-Ce1HlR-H.js +1 -0
  526. package/dist/chunks/state-sIHsFpDu.js +1 -0
  527. package/dist/chunks/staticRender-Br64h1E1.js +1 -0
  528. package/dist/chunks/stats-TUExo9iU.js +1 -0
  529. package/dist/chunks/status-Dghaz1my.js +1 -0
  530. package/dist/chunks/statusNoticeHelpers-DVZSSXeK.js +1 -0
  531. package/dist/chunks/stdio-BEEzuxaZ.js +1 -0
  532. package/dist/chunks/stdio-D4cT86R0.js +3 -0
  533. package/dist/chunks/stickers-2K05wjSp.js +1 -0
  534. package/dist/chunks/store-DhI7Lcan.js +1 -0
  535. package/dist/chunks/sts-BDFJ-6QE.js +1 -0
  536. package/dist/chunks/subprocessEnv-CggQWZCx.js +1 -0
  537. package/dist/chunks/subprocessEnv-DV6q6o6w.js +1 -0
  538. package/dist/chunks/supports-color-lkzOMQ6u.js +1 -0
  539. package/dist/chunks/systemPromptSections-BcN_XBTx.js +1 -0
  540. package/dist/chunks/systemPromptSections-DB93ZNWP.js +1 -0
  541. package/dist/chunks/systemTheme-dDbitcxB.js +1 -0
  542. package/dist/chunks/tag-ZcVkzFjz.js +11 -0
  543. package/dist/chunks/tasks-DbB33ekt.js +1 -0
  544. package/dist/chunks/teamHelpers-BmN9nKz-.js +1 -0
  545. package/dist/chunks/teamHelpers-yeTNtZbb.js +1 -0
  546. package/dist/chunks/teammate-DMYOtLTK.js +1 -0
  547. package/dist/chunks/teammateModeSnapshot-CPjJJDL1.js +1 -0
  548. package/dist/chunks/teammateModeSnapshot-CsNIJTKi.js +1 -0
  549. package/dist/chunks/teleport-JHgpwZIh.js +1 -0
  550. package/dist/chunks/templateJobs-Db630FZD.js +12 -0
  551. package/dist/chunks/terminalSetup-DJqWE8fc.js +33 -0
  552. package/dist/chunks/terminalSetup-ygKHrVKR.js +1 -0
  553. package/dist/chunks/theme-MmfFhdTD.js +1 -0
  554. package/dist/chunks/thinkback-CrNirB0V.js +1 -0
  555. package/dist/chunks/thinkback-Quc7KPmi.js +1 -0
  556. package/dist/chunks/thinkback-play-CQ1s7oqg.js +1 -0
  557. package/dist/chunks/tmux-CvbhsfwG.js +1 -0
  558. package/dist/chunks/toolEventObserver-BqMplcIk.js +1 -0
  559. package/dist/chunks/toolEventObserver-DBq2XBYY.js +1 -0
  560. package/dist/chunks/toolPool-BkCtTKXz.js +1 -0
  561. package/dist/chunks/toolPool-C7bOwJfR.js +1 -0
  562. package/dist/chunks/trustedDevice-C9Zevohz.js +1 -0
  563. package/dist/chunks/trustedDevice-DEuQUTbz.js +1 -0
  564. package/dist/chunks/tui-BVc2q4Xv.js +6 -0
  565. package/dist/chunks/turndown.es-Bv06VjMb.js +69 -0
  566. package/dist/chunks/types-CQ1wrnQ0.js +1 -0
  567. package/dist/chunks/types-Csi32ZXh.js +17 -0
  568. package/dist/chunks/types-RJTEOuIt.js +3 -0
  569. package/dist/chunks/udsClient-BvG_Jip0.js +1 -0
  570. package/dist/chunks/ultrareviewCommand-DrlfRrXq.js +3 -0
  571. package/dist/chunks/undercover-CBeHiWUd.js +1 -0
  572. package/dist/chunks/undercover-DKn95mh9.js +31 -0
  573. package/dist/chunks/up-D-U4wUCe.js +12 -0
  574. package/dist/chunks/updateCCB-CJ7dCUan.js +11 -0
  575. package/dist/chunks/upgrade-Degqbu8S.js +1 -0
  576. package/dist/chunks/upgrade-ucJ-lnlY.js +1 -0
  577. package/dist/chunks/upload-pTZQCPLt.js +1 -0
  578. package/dist/chunks/upstreamproxy-DcLeL2XX.js +11 -0
  579. package/dist/chunks/usage-D96a7Cke.js +1 -0
  580. package/dist/chunks/usage-DVQMUMcC.js +1 -0
  581. package/dist/chunks/useKeybinding-FsOnjW6T.js +1 -0
  582. package/dist/chunks/useMainLoopModel-B7ch2o9K.js +1 -0
  583. package/dist/chunks/useManagePlugins-BfGzHMvO.js +1 -0
  584. package/dist/chunks/useMergedTools-TemEvCrX.js +1 -0
  585. package/dist/chunks/useSearchInput-B-V4kIa-.js +1 -0
  586. package/dist/chunks/useSettingsErrors-B2JGz1s8.js +1 -0
  587. package/dist/chunks/useVoice-BuwYDm2U.js +1 -0
  588. package/dist/chunks/util-CeIKZmj9.js +1 -0
  589. package/dist/chunks/utils-CwhszpkT.js +1 -0
  590. package/dist/chunks/v4-f1i_CNUT.js +1 -0
  591. package/dist/chunks/validatePlugin-BlVho93x.js +1 -0
  592. package/dist/chunks/vertex-sdk-CSGw3fvU.js +9 -0
  593. package/dist/chunks/vim-DUZQCWUP.js +1 -0
  594. package/dist/chunks/voice-BkRIHZiM.js +2 -0
  595. package/dist/chunks/voice-DXiiy8HX.js +8 -0
  596. package/dist/chunks/voiceModeEnabled-CPQUE3PU.js +1 -0
  597. package/dist/chunks/voiceModeEnabled-DB8GCzAF.js +1 -0
  598. package/dist/chunks/voiceStreamSTT-DgoDscHn.js +1 -0
  599. package/dist/chunks/voiceStreamSTT-Dr_wH1Kh.js +1 -0
  600. package/dist/chunks/which-DqSAIvp2.js +1 -0
  601. package/dist/chunks/windowsPaths-C9CigqoF.js +1 -0
  602. package/dist/chunks/windowsPaths-swxCp7bX.js +2 -0
  603. package/dist/chunks/workSecret-mS2OrpxF.js +1 -0
  604. package/dist/chunks/workerRegistry-CT7_kjvY.js +1 -0
  605. package/dist/chunks/worktree-DU3xtwKW.js +1 -0
  606. package/dist/chunks/worktreeModeEnabled-Db6b_Iy_.js +1 -0
  607. package/dist/chunks/worktreeModeEnabled-THQb19xR.js +1 -0
  608. package/dist/chunks/wrapper-BSK0MCQH.js +1 -0
  609. package/dist/chunks/wrapper-D5qL1aQL.js +6 -0
  610. package/dist/chunks/xdg-CBxMmQux.js +1 -0
  611. package/dist/chunks/xml-DD_ldd3X.js +1 -0
  612. package/dist/chunks/zod-DT6hytkp.js +1 -0
  613. package/dist/cli.js +1 -10934
  614. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ import{i as e,n as t,o as n,t as r}from"./chunk-DR8-3Aex.js";import{n as i,t as a}from"./defineProperty-80gRi2ZW.js";import{a as o,c as s,i as c,l,n as u,o as d,r as f,s as p,t as m,u as h}from"./classPrivateFieldSet2-EAQNhHs8.js";import{i as g,n as _,r as v,t as y}from"./figures-gfT9mM8P.js";import{aborted as b,callbackify as x,debuglog as ee,inspect as te,promisify as ne,stripVTControlCharacters as re}from"node:util";import S,{execArgv as ie,execPath as ae,hrtime as oe,platform as se}from"node:process";import C from"node:path";import{ChildProcess as ce,execFile as le,spawn as ue,spawnSync as de}from"node:child_process";import{appendFileSync as fe,createReadStream as pe,createWriteStream as me,readFileSync as he,statSync as ge,writeFileSync as _e}from"node:fs";import{constants as w}from"node:os";import ve from"node:tty";import{EventEmitter as ye,addAbortListener as be,on as xe,once as T,setMaxListeners as Se}from"node:events";import{Duplex as Ce,PassThrough as we,Readable as E,Transform as Te,Writable as Ee,getDefaultHighWaterMark as De}from"node:stream";import{StringDecoder as Oe}from"node:string_decoder";import{fileURLToPath as ke}from"node:url";import{Buffer as Ae}from"node:buffer";import{scheduler as je,setImmediate as Me,setTimeout as Ne}from"node:timers/promises";import{serialize as Pe}from"node:v8";import{finished as D}from"node:stream/promises";function O(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var k=t((()=>{})),Fe,Ie,Le,Re,ze=t((()=>{Fe=(e,t)=>{let n=Re(Ie(e));if(typeof n!=`string`)throw TypeError(`${t} must be a string or a file URL: ${n}.`);return n},Ie=e=>Le(e)?e.toString():e,Le=e=>typeof e!=`string`&&e&&Object.getPrototypeOf(e)===String.prototype,Re=e=>e instanceof URL?ke(e):e})),Be,Ve=t((()=>{k(),ze(),Be=(e,t=[],n={})=>{let r=Fe(e,`First argument`),[i,a]=O(t)?[[],t]:[t,n];if(!Array.isArray(i))throw TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some(e=>typeof e==`object`&&!!e))throw TypeError(`Second argument must be an array of strings: ${i}`);let o=i.map(String),s=o.find(e=>e.includes(`\0`));if(s!==void 0)throw TypeError(`Arguments cannot contain null bytes ("\\0"): ${s}`);if(!O(a))throw TypeError(`Last argument must be an options object: ${a}`);return[r,o,a]}})),He,Ue,A,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,j=t((()=>{({toString:He}=Object.prototype),Ue=e=>He.call(e)===`[object ArrayBuffer]`,A=e=>He.call(e)===`[object Uint8Array]`,We=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Ge=new TextEncoder,Ke=e=>Ge.encode(e),qe=new TextDecoder,Je=e=>qe.decode(e),Ye=(e,t)=>Xe(e,t).join(``),Xe=(e,t)=>{if(t===`utf8`&&e.every(e=>typeof e==`string`))return e;let n=new Oe(t),r=e.map(e=>typeof e==`string`?Ke(e):e).map(e=>n.write(e)),i=n.end();return i===``?r:[...r,i]},Ze=e=>e.length===1&&A(e[0])?e[0]:$e(Qe(e)),Qe=e=>e.map(e=>typeof e==`string`?Ke(e):e),$e=e=>{let t=new Uint8Array(et(e)),n=0;for(let r of e)t.set(r,n),n+=r.length;return t},et=e=>{let t=0;for(let n of e)t+=n.length;return t}})),tt,nt,rt,it,at,ot,st,ct,lt,ut=t((()=>{k(),j(),tt=e=>Array.isArray(e)&&Array.isArray(e.raw),nt=(e,t)=>{let n=[];for(let[r,i]of e.entries())n=rt({templates:e,expressions:t,tokens:n,index:r,template:i});if(n.length===0)throw TypeError(`Template script must not be empty`);let[r,...i]=n;return[r,i,{}]},rt=({templates:e,expressions:t,tokens:n,index:r,template:i})=>{if(i===void 0)throw TypeError(`Invalid backslash sequence: ${e.raw[r]}`);let{nextTokens:a,leadingWhitespaces:o,trailingWhitespaces:s}=it(i,e.raw[r]),c=st(n,a,o);if(r===t.length)return c;let l=t[r];return st(c,Array.isArray(l)?l.map(e=>ct(e)):[ct(l)],s)},it=(e,t)=>{if(t.length===0)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};let n=[],r=0,i=at.has(t[0]);for(let i=0,a=0;i<e.length;i+=1,a+=1){let o=t[a];if(at.has(o))r!==i&&n.push(e.slice(r,i)),r=i+1;else if(o===`\\`){let e=t[a+1];e===`
2
+ `?(--i,a+=1):e===`u`&&t[a+2]===`{`?a=t.indexOf(`}`,a+3):a+=ot[e]??1}}let a=r===e.length;return a||n.push(e.slice(r)),{nextTokens:n,leadingWhitespaces:i,trailingWhitespaces:a}},at=new Set([` `,` `,`\r`,`
3
+ `]),ot={x:3,u:5},st=(e,t,n)=>n||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],ct=e=>{let t=typeof e;if(t===`string`)return e;if(t===`number`)return String(e);if(O(e)&&(`stdout`in e||`isMaxBuffer`in e))return lt(e);throw e instanceof ce||Object.prototype.toString.call(e)===`[object Promise]`?TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}."):TypeError(`Unexpected "${t}" in template expression`)},lt=({stdout:e})=>{if(typeof e==`string`)return e;if(A(e))return Je(e);throw TypeError(e===void 0?`Missing result.stdout in template expression. This is probably due to the previous subprocess' "stdout" option.`:`Unexpected "${typeof e}" stdout in template expression`)}})),M,dt,N,ft,P=t((()=>{M=e=>dt.includes(e),dt=[S.stdin,S.stdout,S.stderr],N=[`stdin`,`stdout`,`stderr`],ft=e=>N[e]??`stdio[${e}]`})),pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,F=t((()=>{k(),P(),pt=e=>{let t={...e};for(let n of Tt)t[n]=mt(e,n);return t},mt=(e,t)=>{let n=Array.from({length:ht(e)+1});return Ct(gt(e[t],n,t),t)},ht=({stdio:e})=>Array.isArray(e)?Math.max(e.length,N.length):N.length,gt=(e,t,n)=>O(e)?_t(e,t,n):t.fill(e),_t=(e,t,n)=>{for(let r of Object.keys(e).sort(vt))for(let i of bt(r,n,t))t[i]=e[r];return t},vt=(e,t)=>yt(e)<yt(t)?1:-1,yt=e=>e===`stdout`||e===`stderr`?0:e===`all`?2:1,bt=(e,t,n)=>{if(e===`ipc`)return[n.length-1];let r=xt(e);if(r===void 0||r===0)throw TypeError(`"${t}.${e}" is invalid.
4
+ It must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(r>=n.length)throw TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.
5
+ Please set the "stdio" option to ensure that file descriptor exists.`);return r===`all`?[1,2]:[r]},xt=e=>{if(e===`all`)return e;if(N.includes(e))return N.indexOf(e);let t=St.exec(e);if(t!==null)return Number(t[1])},St=/^fd(\d+)$/,Ct=(e,t)=>e.map(e=>e===void 0?wt[t]:e),wt={lines:!1,buffer:!0,maxBuffer:1e3*1e3*100,verbose:ee(`execa`).enabled?`full`:`none`,stripFinalNewline:!0},Tt=[`lines`,`buffer`,`maxBuffer`,`verbose`,`stripFinalNewline`],Et=(e,t)=>t===`ipc`?e.at(-1):e[t]})),Dt,Ot,kt,At,jt,Mt,Nt,I=t((()=>{F(),Dt=({verbose:e},t)=>At(e,t)!==`none`,Ot=({verbose:e},t)=>![`none`,`short`].includes(At(e,t)),kt=({verbose:e},t)=>{let n=At(e,t);return Mt(n)?n:void 0},At=(e,t)=>t===void 0?jt(e):Et(e,t),jt=e=>e.find(e=>Mt(e))??Nt.findLast(t=>e.includes(t)),Mt=e=>typeof e==`function`,Nt=[`none`,`short`,`full`]})),Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt=t((()=>{Pt=(e,t)=>{let n=[e,...t];return{command:n.join(` `),escapedCommand:n.map(e=>Ht(It(e))).join(` `)}},Ft=e=>re(e).split(`
6
+ `).map(e=>It(e)).join(`
7
+ `),It=e=>e.replaceAll(zt,e=>Lt(e)),Lt=e=>{let t=Bt[e];if(t!==void 0)return t;let n=e.codePointAt(0),r=n.toString(16);return n<=Vt?`\\u${r.padStart(4,`0`)}`:`\\U${r}`},Rt=()=>{try{return RegExp(`\\p{Separator}|\\p{Other}`,`gu`)}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}},zt=Rt(),Bt={" ":` `,"\b":`\\b`,"\f":`\\f`,"\n":`\\n`,"\r":`\\r`," ":`\\t`},Vt=65535,Ht=e=>Ut.test(e)?e:se===`win32`?`"${e.replaceAll(`"`,`""`)}"`:`'${e.replaceAll(`'`,`'\\''`)}'`,Ut=/^[\w./-]+$/})),Gt,L,Kt,qt,Jt,Yt,Xt=t((()=>{Gt=ve?.WriteStream?.prototype?.hasColors?.()??!1,L=(e,t)=>{if(!Gt)return e=>e;let n=`\u001B[${e}m`,r=`\u001B[${t}m`;return e=>{let i=e+``,a=i.indexOf(r);if(a===-1)return n+i+r;let o=n,s=0,c=(t===22?r:``)+n;for(;a!==-1;)o+=i.slice(s,a)+c,s=a+r.length,a=i.indexOf(r,s);return o+=i.slice(s)+r,o}},L(0,0),Kt=L(1,22),L(2,22),L(3,23),L(4,24),L(53,55),L(7,27),L(8,28),L(9,29),L(30,39),L(31,39),L(32,39),L(33,39),L(34,39),L(35,39),L(36,39),L(37,39),qt=L(90,39),L(40,49),L(41,49),L(42,49),L(43,49),L(44,49),L(45,49),L(46,49),L(47,49),L(100,49),Jt=L(91,39),L(92,39),Yt=L(93,39),L(94,39),L(95,39),L(96,39),L(97,39),L(101,49),L(102,49),L(103,49),L(104,49),L(105,49),L(106,49),L(107,49)})),Zt=t((()=>{Xt(),Xt()})),Qt,$t,en,tn,nn,rn,an,on=t((()=>{_(),Zt(),Qt=({type:e,message:t,timestamp:n,piped:r,commandId:i,result:{failed:a=!1}={},options:{reject:o=!0}})=>{let s=$t(n),c=nn[e]({failed:a,reject:o,piped:r}),l=an[e]({reject:o});return`${qt(`[${s}]`)} ${qt(`[${i}]`)} ${l(c)} ${l(t)}`},$t=e=>`${en(e.getHours(),2)}:${en(e.getMinutes(),2)}:${en(e.getSeconds(),2)}.${en(e.getMilliseconds(),3)}`,en=(e,t)=>String(e).padStart(t,`0`),tn=({failed:e,reject:t})=>e?t?y.cross:y.warning:y.tick,nn={command:({piped:e})=>e?`|`:`$`,output:()=>` `,ipc:()=>`*`,error:tn,duration:tn},rn=e=>e,an={command:()=>Kt,output:()=>rn,ipc:()=>rn,error:({reject:e})=>e?Jt:Yt,duration:()=>qt}})),sn,cn,ln,un=t((()=>{I(),sn=(e,t,n)=>{let r=kt(t,n);return e.map(({verboseLine:e,verboseObject:t})=>cn(e,t,r)).filter(e=>e!==void 0).map(e=>ln(e)).join(``)},cn=(e,t,n)=>{if(n===void 0)return e;let r=n(e,t);if(typeof r==`string`)return r},ln=e=>e.endsWith(`
8
+ `)?e:`${e}\n`})),dn,fn,pn,mn,hn,gn,_n=t((()=>{Wt(),on(),un(),dn=({type:e,verboseMessage:t,fdNumber:n,verboseInfo:r,result:i})=>{let a=sn(pn(t,fn({type:e,result:i,verboseInfo:r})),r,n);a!==``&&console.warn(a.slice(0,-1))},fn=({type:e,result:t,verboseInfo:{escapedCommand:n,commandId:r,rawOptions:{piped:i=!1,...a}}})=>({type:e,escapedCommand:n,commandId:`${r}`,timestamp:new Date,piped:i,result:t,options:a}),pn=(e,t)=>e.split(`
9
+ `).map(e=>mn({...t,message:e})),mn=e=>({verboseLine:Qt(e),verboseObject:e}),hn=e=>Ft(typeof e==`string`?e:te(e)).replaceAll(` `,` `.repeat(gn)),gn=2})),vn,yn=t((()=>{I(),_n(),vn=(e,t)=>{Dt(t)&&dn({type:`command`,verboseMessage:e,verboseInfo:t})}})),bn,xn,Sn,Cn,wn=t((()=>{I(),bn=(e,t,n)=>(Cn(e),{verbose:e,escapedCommand:t,commandId:xn(e),rawOptions:n}),xn=e=>Dt({verbose:e})?Sn++:void 0,Sn=0n,Cn=e=>{for(let t of e){if(t===!1)throw TypeError(`The "verbose: false" option was renamed to "verbose: 'none'".`);if(t===!0)throw TypeError(`The "verbose: true" option was renamed to "verbose: 'short'".`);if(!Nt.includes(t)&&!Mt(t)){let e=Nt.map(e=>`'${e}'`).join(`, `);throw TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}}})),Tn,En,Dn=t((()=>{Tn=()=>oe.bigint(),En=e=>Number(oe.bigint()-e)/1e6})),On,kn=t((()=>{yn(),wn(),Dn(),Wt(),F(),On=(e,t,n)=>{let r=Tn(),{command:i,escapedCommand:a}=Pt(e,t),o=bn(mt(n,`verbose`),a,{...n});return vn(a,o),{command:i,escapedCommand:a,startTime:r,verboseInfo:o}}})),An=r(((t,n)=>{n.exports=o,o.sync=s;var r=e(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),jn=r(((t,n)=>{n.exports=i,i.sync=a;var r=e(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Mn=r(((t,n)=>{e(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?An():jn();n.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),Nn=r(((t,n)=>{var r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=e(`path`),a=r?`;`:`:`,o=Mn(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};n.exports=l,l.sync=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Pn=r(((e,t)=>{var n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Fn=r(((t,n)=>{var r=e(`path`),i=Nn(),a=Pn();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&(l=r.resolve(s?e.options.cwd:``,l)),l}function s(e){return o(e)||o(e,!0)}n.exports=s})),In=r(((e,t)=>{var n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),Ln=r(((e,t)=>{t.exports=/^#!(.*)/})),Rn=r(((e,t)=>{var n=Ln();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),zn=r(((t,n)=>{var r=e(`fs`),i=Rn();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}n.exports=a})),Bn=r(((t,n)=>{var r=e(`path`),i=Fn(),a=In(),o=zn(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}n.exports=f})),Vn=r(((e,t)=>{var n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Hn=r(((t,n)=>{var r=e(`child_process`),i=Bn(),a=Vn();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}n.exports=o,n.exports.spawn=o,n.exports.sync=s,n.exports._parse=i,n.exports._enoent=a}));function Un(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`}var Wn=t((()=>{})),Gn=t((()=>{}));function Kn(e){return e instanceof URL?ke(e):e}function qn(e){return{*[Symbol.iterator](){let t=C.resolve(Kn(e)),n;for(;n!==t;)yield t,n=t,t=C.resolve(t,`..`)}}}var Jn=t((()=>{Gn(),ne(le)})),Yn,Xn,Zn,Qn,$n=t((()=>{Wn(),Jn(),Yn=({cwd:e=S.cwd(),path:t=S.env[Un()],preferLocal:n=!0,execPath:r=S.execPath,addExecPath:i=!0}={})=>{let a=C.resolve(Kn(e)),o=[],s=t.split(C.delimiter);return n&&Xn(o,s,a),i&&Zn(o,s,r,a),t===``||t===C.delimiter?`${o.join(C.delimiter)}${t}`:[...o,t].join(C.delimiter)},Xn=(e,t,n)=>{for(let r of qn(n)){let n=C.join(r,`node_modules/.bin`);t.includes(n)||e.push(n)}},Zn=(e,t,n,r)=>{let i=C.resolve(r,Kn(n),`..`);t.includes(i)||e.push(i)},Qn=({env:e=S.env,...t}={})=>{e={...e};let n=Un({env:e});return t.path=e[n],e[n]=Yn(t),e}})),er,tr,nr,rr,ir,ar,or,sr,R=t((()=>{er=(e,t,n)=>new(n?sr:or)(t,e instanceof tr?{}:{cause:e}),tr=class extends Error{},nr=(e,t)=>{Object.defineProperty(e.prototype,`name`,{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,ir,{value:!0,writable:!1,enumerable:!1,configurable:!1})},rr=e=>ar(e)&&ir in e,ir=Symbol(`isExecaError`),ar=e=>Object.prototype.toString.call(e)===`[object Error]`,or=class extends Error{},nr(or,or.name),sr=class extends Error{},nr(sr,sr.name)})),cr,lr,ur,dr=t((()=>{cr=()=>{let e=64-ur+1;return Array.from({length:e},lr)},lr=(e,t)=>({name:`SIGRT${t+1}`,number:ur+t,action:`terminate`,description:`Application-specific signal (realtime)`,standard:`posix`}),ur=34})),fr,pr=t((()=>{fr=[{name:`SIGHUP`,number:1,action:`terminate`,description:`Terminal closed`,standard:`posix`},{name:`SIGINT`,number:2,action:`terminate`,description:`User interruption with CTRL-C`,standard:`ansi`},{name:`SIGQUIT`,number:3,action:`core`,description:`User interruption with CTRL-\\`,standard:`posix`},{name:`SIGILL`,number:4,action:`core`,description:`Invalid machine instruction`,standard:`ansi`},{name:`SIGTRAP`,number:5,action:`core`,description:`Debugger breakpoint`,standard:`posix`},{name:`SIGABRT`,number:6,action:`core`,description:`Aborted`,standard:`ansi`},{name:`SIGIOT`,number:6,action:`core`,description:`Aborted`,standard:`bsd`},{name:`SIGBUS`,number:7,action:`core`,description:`Bus error due to misaligned, non-existing address or paging error`,standard:`bsd`},{name:`SIGEMT`,number:7,action:`terminate`,description:`Command should be emulated but is not implemented`,standard:`other`},{name:`SIGFPE`,number:8,action:`core`,description:`Floating point arithmetic error`,standard:`ansi`},{name:`SIGKILL`,number:9,action:`terminate`,description:`Forced termination`,standard:`posix`,forced:!0},{name:`SIGUSR1`,number:10,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGSEGV`,number:11,action:`core`,description:`Segmentation fault`,standard:`ansi`},{name:`SIGUSR2`,number:12,action:`terminate`,description:`Application-specific signal`,standard:`posix`},{name:`SIGPIPE`,number:13,action:`terminate`,description:`Broken pipe or socket`,standard:`posix`},{name:`SIGALRM`,number:14,action:`terminate`,description:`Timeout or timer`,standard:`posix`},{name:`SIGTERM`,number:15,action:`terminate`,description:`Termination`,standard:`ansi`},{name:`SIGSTKFLT`,number:16,action:`terminate`,description:`Stack is empty or overflowed`,standard:`other`},{name:`SIGCHLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`posix`},{name:`SIGCLD`,number:17,action:`ignore`,description:`Child process terminated, paused or unpaused`,standard:`other`},{name:`SIGCONT`,number:18,action:`unpause`,description:`Unpaused`,standard:`posix`,forced:!0},{name:`SIGSTOP`,number:19,action:`pause`,description:`Paused`,standard:`posix`,forced:!0},{name:`SIGTSTP`,number:20,action:`pause`,description:`Paused using CTRL-Z or "suspend"`,standard:`posix`},{name:`SIGTTIN`,number:21,action:`pause`,description:`Background process cannot read terminal input`,standard:`posix`},{name:`SIGBREAK`,number:21,action:`terminate`,description:`User interruption with CTRL-BREAK`,standard:`other`},{name:`SIGTTOU`,number:22,action:`pause`,description:`Background process cannot write to terminal output`,standard:`posix`},{name:`SIGURG`,number:23,action:`ignore`,description:`Socket received out-of-band data`,standard:`bsd`},{name:`SIGXCPU`,number:24,action:`core`,description:`Process timed out`,standard:`bsd`},{name:`SIGXFSZ`,number:25,action:`core`,description:`File too big`,standard:`bsd`},{name:`SIGVTALRM`,number:26,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGPROF`,number:27,action:`terminate`,description:`Timeout or timer`,standard:`bsd`},{name:`SIGWINCH`,number:28,action:`ignore`,description:`Terminal window size changed`,standard:`bsd`},{name:`SIGIO`,number:29,action:`terminate`,description:`I/O is available`,standard:`other`},{name:`SIGPOLL`,number:29,action:`terminate`,description:`Watched event`,standard:`other`},{name:`SIGINFO`,number:29,action:`ignore`,description:`Request for process information`,standard:`other`},{name:`SIGPWR`,number:30,action:`terminate`,description:`Device running out of power`,standard:`systemv`},{name:`SIGSYS`,number:31,action:`core`,description:`Invalid system call`,standard:`other`},{name:`SIGUNUSED`,number:31,action:`terminate`,description:`Invalid system call`,standard:`other`}]})),mr,hr,gr=t((()=>{pr(),dr(),mr=()=>{let e=cr();return[...fr,...e].map(hr)},hr=({name:e,number:t,description:n,action:r,forced:i=!1,standard:a})=>{let{signals:{[e]:o}}=w,s=o!==void 0;return{name:e,number:s?o:t,description:n,supported:s,action:r,forced:i,standard:a}}})),_r,vr,yr,br,xr,Sr,Cr=t((()=>{dr(),gr(),_r=()=>{let e=mr();return Object.fromEntries(e.map(vr))},vr=({name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o})=>[e,{name:e,number:t,description:n,supported:r,action:i,forced:a,standard:o}],yr=_r(),br=()=>{let e=mr(),t=Array.from({length:65},(t,n)=>xr(n,e));return Object.assign({},...t)},xr=(e,t)=>{let n=Sr(e,t);if(n===void 0)return{};let{name:r,description:i,supported:a,action:o,forced:s,standard:c}=n;return{[e]:{name:r,number:e,description:i,supported:a,action:o,forced:s,standard:c}}},Sr=(e,t)=>{let n=t.find(({name:t})=>w.signals[t]===e);return n===void 0?t.find(t=>t.number===e):n},br()})),wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr=t((()=>{Cr(),wr=e=>{let t="option `killSignal`";if(e===0)throw TypeError(`Invalid ${t}: 0 cannot be used.`);return Er(e,t)},Tr=e=>e===0?e:Er(e,"`subprocess.kill()`'s argument"),Er=(e,t)=>{if(Number.isInteger(e))return Dr(e,t);if(typeof e==`string`)return Ar(e,t);throw TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${jr()}`)},Dr=(e,t)=>{if(kr.has(e))return kr.get(e);throw TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${jr()}`)},Or=()=>new Map(Object.entries(w.signals).reverse().map(([e,t])=>[t,e])),kr=Or(),Ar=(e,t)=>{if(e in w.signals)return e;throw e.toUpperCase()in w.signals?TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`):TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${jr()}`)},jr=()=>`Available signal names: ${Mr()}.
10
+ Available signal numbers: ${Nr()}.`,Mr=()=>Object.keys(w.signals).sort().map(e=>`'${e}'`).join(`, `),Nr=()=>[...new Set(Object.values(w.signals).sort((e,t)=>e-t))].join(`, `),Pr=e=>yr[e].description})),Ir,Lr,Rr,zr,Br,Vr,Hr,Ur=t((()=>{R(),Fr(),Ir=e=>{if(e===!1)return e;if(e===!0)return Lr;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Lr=1e3*5,Rr=({kill:e,options:{forceKillAfterDelay:t,killSignal:n},onInternalError:r,context:i,controller:a},o,s)=>{let{signal:c,error:l}=zr(o,s,n);Br(l,r);let u=e(c);return Vr({kill:e,signal:c,forceKillAfterDelay:t,killSignal:n,killResult:u,context:i,controller:a}),u},zr=(e,t,n)=>{let[r=n,i]=ar(e)?[void 0,e]:[e,t];if(typeof r!=`string`&&!Number.isInteger(r))throw TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(r)}`);if(i!==void 0&&!ar(i))throw TypeError(`The second argument is optional. If specified, it must be an error instance: ${i}`);return{signal:Tr(r),error:i}},Br=(e,t)=>{e!==void 0&&t.reject(e)},Vr=async({kill:e,signal:t,forceKillAfterDelay:n,killSignal:r,killResult:i,context:a,controller:o})=>{t===r&&i&&Hr({kill:e,forceKillAfterDelay:n,context:a,controllerSignal:o.signal})},Hr=async({kill:e,forceKillAfterDelay:t,context:n,controllerSignal:r})=>{if(t!==!1)try{await Ne(t,void 0,{signal:r}),e(`SIGKILL`)&&(n.isForcefullyTerminated??(n.isForcefullyTerminated=!0))}catch{}}})),Wr,Gr=t((()=>{Wr=async(e,t)=>{e.aborted||await T(e,`abort`,{signal:t})}})),Kr,qr,Jr,Yr=t((()=>{Gr(),Kr=({cancelSignal:e})=>{if(e!==void 0&&Object.prototype.toString.call(e)!==`[object AbortSignal]`)throw Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)},qr=({subprocess:e,cancelSignal:t,gracefulCancel:n,context:r,controller:i})=>t===void 0||n?[]:[Jr(e,t,r,i)],Jr=async(e,t,n,{signal:r})=>{throw await Wr(t,r),n.terminationReason??(n.terminationReason=`cancel`),e.kill(),t.reason}})),Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,z,di,B,fi,pi=t((()=>{Xr=({methodName:e,isSubprocess:t,ipc:n,isConnected:r})=>{Zr(e,t,n),Qr(e,t,r)},Zr=(e,t,n)=>{if(!n)throw Error(`${z(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Qr=(e,t,n)=>{if(!n)throw Error(`${z(e,t)} cannot be used: the ${B(t)} has already exited or disconnected.`)},$r=e=>{throw Error(`${z(`getOneMessage`,e)} could not complete: the ${B(e)} exited or disconnected.`)},ei=e=>{throw Error(`${z(`sendMessage`,e)} failed: the ${B(e)} is sending a message too, instead of listening to incoming messages.
11
+ This can be fixed by both sending a message and listening to incoming messages at the same time:
12
+
13
+ const [receivedMessage] = await Promise.all([
14
+ ${z(`getOneMessage`,e)},
15
+ ${z(`sendMessage`,e,`message, {strict: true}`)},
16
+ ]);`)},ti=(e,t)=>Error(`${z(`sendMessage`,t)} failed when sending an acknowledgment response to the ${B(t)}.`,{cause:e}),ni=e=>{throw Error(`${z(`sendMessage`,e)} failed: the ${B(e)} is not listening to incoming messages.`)},ri=e=>{throw Error(`${z(`sendMessage`,e)} failed: the ${B(e)} exited without listening to incoming messages.`)},ii=()=>Error(`\`cancelSignal\` aborted: the ${B(!0)} disconnected.`),ai=()=>{throw Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")},oi=({error:e,methodName:t,isSubprocess:n})=>{if(e.code===`EPIPE`)throw Error(`${z(t,n)} cannot be used: the ${B(n)} is disconnecting.`,{cause:e})},si=({error:e,methodName:t,isSubprocess:n,message:r})=>{if(ci(e))throw Error(`${z(t,n)}'s argument type is invalid: the message cannot be serialized: ${String(r)}.`,{cause:e})},ci=({code:e,message:t})=>li.has(e)||ui.some(e=>t.includes(e)),li=new Set([`ERR_MISSING_ARGS`,`ERR_INVALID_ARG_TYPE`]),ui=[`could not be cloned`,`circular structure`,`call stack size exceeded`],z=(e,t,n=``)=>e===`cancelSignal`?"`cancelSignal`'s `controller.abort()`":`${di(t)}${e}(${n})`,di=e=>e?``:`subprocess.`,B=e=>e?`parent process`:`subprocess`,fi=e=>{e.connected&&e.disconnect()}})),mi,hi=t((()=>{mi=()=>{let e={},t=new Promise((t,n)=>{Object.assign(e,{resolve:t,reject:n})});return Object.assign(t,e)}})),gi,_i,V,vi,yi,bi,xi,Si,Ci,wi,Ti,H=t((()=>{F(),gi=(e,t=`stdin`)=>{let{options:n,fileDescriptors:r}=V.get(e),i=vi(r,t,!0),a=e.stdio[i];if(a===null)throw TypeError(xi(i,t,n,!0));return a},_i=(e,t=`stdout`)=>{let{options:n,fileDescriptors:r}=V.get(e),i=vi(r,t,!1),a=i===`all`?e.all:e.stdio[i];if(a==null)throw TypeError(xi(i,t,n,!1));return a},V=new WeakMap,vi=(e,t,n)=>{let r=yi(t,n);return bi(r,t,n,e),r},yi=(e,t)=>{let n=xt(e);if(n!==void 0)return n;let{validOptions:r,defaultValue:i}=t?{validOptions:`"stdin"`,defaultValue:`stdin`}:{validOptions:`"stdout", "stderr", "all"`,defaultValue:`stdout`};throw TypeError(`"${wi(t)}" must not be "${e}".
17
+ It must be ${r} or "fd3", "fd4" (and so on).
18
+ It is optional and defaults to "${i}".`)},bi=(e,t,n,r)=>{let i=r[Ci(e)];if(i===void 0)throw TypeError(`"${wi(n)}" must not be ${t}. That file descriptor does not exist.
19
+ Please set the "stdio" option to ensure that file descriptor exists.`);if(i.direction===`input`&&!n)throw TypeError(`"${wi(n)}" must not be ${t}. It must be a readable stream, not writable.`);if(i.direction!==`input`&&n)throw TypeError(`"${wi(n)}" must not be ${t}. It must be a writable stream, not readable.`)},xi=(e,t,n,r)=>{if(e===`all`&&!n.all)return`The "all" option must be true to use "from: 'all'".`;let{optionName:i,optionValue:a}=Si(e,n);return`The "${i}: ${Ti(a)}" option is incompatible with using "${wi(r)}: ${Ti(t)}".
20
+ Please set this option with "pipe" instead.`},Si=(e,{stdin:t,stdout:n,stderr:r,stdio:i})=>{let a=Ci(e);return a===0&&t!==void 0?{optionName:`stdin`,optionValue:t}:a===1&&n!==void 0?{optionName:`stdout`,optionValue:n}:a===2&&r!==void 0?{optionName:`stderr`,optionValue:r}:{optionName:`stdio[${a}]`,optionValue:i[a]}},Ci=e=>e===`all`?1:e,wi=e=>e?`to`:`from`,Ti=e=>typeof e==`string`?`'${e}'`:typeof e==`number`?`${e}`:`Stream`})),Ei,Di=t((()=>{Ei=(e,t,n)=>{let r=e.getMaxListeners();r===0||r===1/0||(e.setMaxListeners(r+t),be(n,()=>{e.setMaxListeners(e.getMaxListeners()-t)}))}})),Oi,ki,Ai,ji,Mi,Ni,Pi=t((()=>{Oi=(e,t)=>{t&&ki(e)},ki=e=>{e.refCounted()},Ai=(e,t)=>{t&&ji(e)},ji=e=>{e.unrefCounted()},Mi=(e,t)=>{t&&(ji(e),ji(e))},Ni=(e,t)=>{t&&(ki(e),ki(e))}})),Fi,Ii,Li,Ri=t((()=>{sa(),Pi(),ea(),Sa(),Fi=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r},i)=>{if(Ji(i)||va(i))return;Li.has(e)||Li.set(e,[]);let a=Li.get(e);if(a.push(i),!(a.length>1))for(;a.length>0;){await ra(e,r,i),await je.yield();let o=await qi({wrappedMessage:a[0],anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r});a.shift(),r.emit(`message`,o),r.emit(`message:done`)}},Ii=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r,boundOnMessage:i})=>{ba();let a=Li.get(e);for(;a?.length>0;)await T(r,`message:done`);e.removeListener(`message`,i),Ni(t,n),r.connected=!1,r.emit(`disconnect`)},Li=new WeakMap})),zi,Bi,Vi,Hi,Ui=t((()=>{Ri(),Pi(),zi=(e,t,n)=>{if(Bi.has(e))return Bi.get(e);let r=new ye;return r.connected=!0,Bi.set(e,r),Vi({ipcEmitter:r,anyProcess:e,channel:t,isSubprocess:n}),r},Bi=new WeakMap,Vi=({ipcEmitter:e,anyProcess:t,channel:n,isSubprocess:r})=>{let i=Fi.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e});t.on(`message`,i),t.once(`disconnect`,Ii.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e,boundOnMessage:i})),Mi(n,r)},Hi=e=>{let t=Bi.get(e);return t===void 0?e.channel!==null:t.connected}})),Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea=t((()=>{hi(),Di(),pa(),pi(),Ui(),sa(),Wi=({anyProcess:e,channel:t,isSubprocess:n,message:r,strict:i})=>{if(!i)return r;let a=aa(e,zi(e,t,n));return{id:Gi++,type:Qi,message:r,hasListeners:a}},Gi=0n,Ki=(e,t)=>{if(!(t?.type!==Qi||t.hasListeners))for(let{id:t}of e)t!==void 0&&Xi[t].resolve({isDeadlock:!0,hasListeners:!1})},qi=async({wrappedMessage:e,anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:i})=>{if(e?.type!==Qi||!t.connected)return e;let{id:a,message:o}=e,s={id:a,type:$i,message:aa(t,i)};try{await ca({anyProcess:t,channel:n,isSubprocess:r,ipc:!0},s)}catch(e){i.emit(`strict:error`,e)}return o},Ji=e=>{if(e?.type!==$i)return!1;let{id:t,message:n}=e;return Xi[t]?.resolve({isDeadlock:!1,hasListeners:n}),!0},Yi=async(e,t,n)=>{if(e?.type!==Qi)return;let r=mi();Xi[e.id]=r;let i=new AbortController;try{let{isDeadlock:e,hasListeners:a}=await Promise.race([r,Zi(t,n,i)]);e&&ei(n),a||ni(n)}finally{i.abort(),delete Xi[e.id]}},Xi={},Zi=async(e,t,{signal:n})=>{Ei(e,1,n),await T(e,`disconnect`,{signal:n}),ri(t)},Qi=`execa:ipc:request`,$i=`execa:ipc:response`})),ta,na,ra,ia,aa,oa,sa=t((()=>{hi(),F(),H(),ea(),ta=(e,t,n)=>{ia.has(e)||ia.set(e,new Set);let r=ia.get(e),i={onMessageSent:mi(),id:n?t.id:void 0};return r.add(i),{outgoingMessages:r,outgoingMessage:i}},na=({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()},ra=async(e,t,n)=>{for(;!aa(e,t)&&ia.get(e)?.size>0;){let t=[...ia.get(e)];Ki(t,n),await Promise.all(t.map(({onMessageSent:e})=>e))}},ia=new WeakMap,aa=(e,t)=>t.listenerCount(`message`)>oa(e),oa=e=>V.has(e)&&!Et(V.get(e).options.buffer,`ipc`)?1:0})),ca,la,ua,da,fa,pa=t((()=>{pi(),sa(),ea(),ca=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},i,{strict:a=!1}={})=>{let o=`sendMessage`;return Xr({methodName:o,isSubprocess:n,ipc:r,isConnected:e.connected}),la({anyProcess:e,channel:t,methodName:o,isSubprocess:n,message:i,strict:a})},la=async({anyProcess:e,channel:t,methodName:n,isSubprocess:r,message:i,strict:a})=>{let o=Wi({anyProcess:e,channel:t,isSubprocess:r,message:i,strict:a}),s=ta(e,o,a);try{await ua({anyProcess:e,methodName:n,isSubprocess:r,wrappedMessage:o,message:i})}catch(t){throw fi(e),t}finally{na(s)}},ua=async({anyProcess:e,methodName:t,isSubprocess:n,wrappedMessage:r,message:i})=>{let a=da(e);try{await Promise.all([Yi(r,e,n),a(r)])}catch(e){throw oi({error:e,methodName:t,isSubprocess:n}),si({error:e,methodName:t,isSubprocess:n,message:i}),e}},da=e=>{if(fa.has(e))return fa.get(e);let t=ne(e.send.bind(e));return fa.set(e,t),t},fa=new WeakMap})),ma,ha,ga,_a,va,ya,ba,xa,Sa=t((()=>{pa(),Ui(),pi(),ma=(e,t)=>{let n=`cancelSignal`;return Qr(n,!1,e.connected),ua({anyProcess:e,methodName:n,isSubprocess:!1,wrappedMessage:{type:ya,message:t},message:t})},ha=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>(await ga({anyProcess:e,channel:t,isSubprocess:n,ipc:r}),xa.signal),ga=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>{if(!_a){if(_a=!0,!r){ai();return}if(t===null){ba();return}zi(e,t,n),await je.yield()}},_a=!1,va=e=>e?.type===ya?(xa.abort(e.message),!0):!1,ya=`execa:ipc:cancel`,ba=()=>{xa.abort(ii())},xa=new AbortController})),Ca,wa,Ta,Ea,Da=t((()=>{Gr(),Sa(),Ur(),Ca=({gracefulCancel:e,cancelSignal:t,ipc:n,serialization:r})=>{if(e){if(t===void 0)throw Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!n)throw Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if(r===`json`)throw Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}},wa=({subprocess:e,cancelSignal:t,gracefulCancel:n,forceKillAfterDelay:r,context:i,controller:a})=>n?[Ta({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:i,controller:a})]:[],Ta=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:r,controller:{signal:i}})=>{throw await Wr(t,i),await ma(e,Ea(t)),Hr({kill:e.kill,forceKillAfterDelay:n,context:r,controllerSignal:i}),r.terminationReason??(r.terminationReason=`gracefulCancel`),t.reason},Ea=({reason:e})=>{if(!(e instanceof DOMException))return e;let t=Error(e.message);return Object.defineProperty(t,`stack`,{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t}})),Oa,ka,Aa,ja=t((()=>{R(),Oa=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},ka=(e,t,n,r)=>t===0||t===void 0?[]:[Aa(e,t,n,r)],Aa=async(e,t,n,{signal:r})=>{throw await Ne(t,void 0,{signal:r}),n.terminationReason??(n.terminationReason=`timeout`),e.kill(),new tr}})),Ma,Na,Pa=t((()=>{ze(),Ma=({options:e})=>{if(e.node===!1)throw TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}},Na=(e,t,{node:n=!1,nodePath:r=ae,nodeOptions:i=ie.filter(e=>!e.startsWith(`--inspect`)),cwd:a,execPath:o,...s})=>{if(o!==void 0)throw TypeError(`The "execPath" option has been removed. Please use the "nodePath" option instead.`);let c=Fe(r,`The "nodePath" option`),l=C.resolve(a,c),u={...s,nodePath:l,node:n,cwd:a};if(!n)return[e,t,u];if(C.basename(e,`.exe`)===`node`)throw TypeError(`When the "node" option is true, the first argument does not need to be "node".`);return[l,[...i,e,...t],{ipc:!0,...u,shell:!1}]}})),Fa,Ia,La,Ra,za,Ba=t((()=>{Fa=({ipcInput:e,ipc:t,serialization:n})=>{if(e!==void 0){if(!t)throw Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Ra[n](e)}},Ia=e=>{try{Pe(e)}catch(e){throw Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},La=e=>{try{JSON.stringify(e)}catch(e){throw Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}},Ra={advanced:Ia,json:La},za=async(e,t)=>{t!==void 0&&await e.sendMessage(t)}})),Va,Ha,U,Ua,Wa,Ga,Ka,qa=t((()=>{Va=({encoding:e})=>{if(Ua.has(e))return;let t=Wa(e);if(t!==void 0)throw TypeError(`Invalid option \`encoding: ${Ka(e)}\`.
21
+ Please rename it to ${Ka(t)}.`);let n=[...Ua].map(e=>Ka(e)).join(`, `);throw TypeError(`Invalid option \`encoding: ${Ka(e)}\`.
22
+ Please rename it to one of: ${n}.`)},Ha=new Set([`utf8`,`utf16le`]),U=new Set([`buffer`,`hex`,`base64`,`base64url`,`latin1`,`ascii`]),Ua=new Set([...Ha,...U]),Wa=e=>{if(e===null)return`buffer`;if(typeof e!=`string`)return;let t=e.toLowerCase();if(t in Ga)return Ga[t];if(Ua.has(t))return t},Ga={"utf-8":`utf8`,"utf-16le":`utf16le`,"ucs-2":`utf16le`,ucs2:`utf16le`,binary:`latin1`},Ka=e=>typeof e==`string`?`"${e}"`:String(e)})),Ja,Ya,Xa,Za=t((()=>{ze(),Ja=(e=Ya())=>{let t=Fe(e,`The "cwd" option`);return C.resolve(t)},Ya=()=>{try{return S.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Xa=(e,t)=>{if(t===Ya())return e;let n;try{n=ge(t)}catch(n){return`The "cwd" option is invalid: ${t}.\n${n.message}\n${e}`}return n.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`}})),Qa,$a,eo,to,no=t((()=>{Qa=n(Hn(),1),$n(),Ur(),Fr(),Yr(),Da(),ja(),Pa(),Ba(),qa(),Za(),ze(),F(),$a=(e,t,n)=>{n.cwd=Ja(n.cwd);let[r,i,a]=Na(e,t,n),{command:o,args:s,options:c}=Qa.default._parse(r,i,a),l=eo(pt(c));return Oa(l),Va(l),Fa(l),Kr(l),Ca(l),l.shell=Re(l.shell),l.env=to(l),l.killSignal=wr(l.killSignal),l.forceKillAfterDelay=Ir(l.forceKillAfterDelay),l.lines=l.lines.map((e,t)=>e&&!U.has(l.encoding)&&l.buffer[t]),S.platform===`win32`&&C.basename(o,`.exe`)===`cmd`&&s.unshift(`/q`),{file:o,commandArguments:s,options:l}},eo=({extendEnv:e=!0,preferLocal:t=!1,cwd:n,localDir:r=n,encoding:i=`utf8`,reject:a=!0,cleanup:o=!0,all:s=!1,windowsHide:c=!0,killSignal:l=`SIGTERM`,forceKillAfterDelay:u=!0,gracefulCancel:d=!1,ipcInput:f,ipc:p=f!==void 0||d,serialization:m=`advanced`,...h})=>({...h,extendEnv:e,preferLocal:t,cwd:n,localDirectory:r,encoding:i,reject:a,cleanup:o,all:s,windowsHide:c,killSignal:l,forceKillAfterDelay:u,gracefulCancel:d,ipcInput:f,ipc:p,serialization:m}),to=({env:e,extendEnv:t,preferLocal:n,node:r,localDirectory:i,nodePath:a})=>{let o=t?{...S.env,...e}:e;return n||r?Qn({env:o,cwd:i,execPath:a,preferLocal:n,addExecPath:r}):o}})),ro,io=t((()=>{ro=(e,t,n)=>n.shell&&t.length>0?[[e,...t].join(` `),[],n]:[e,t,n]}));function ao(e){if(typeof e==`string`)return oo(e);if(!(ArrayBuffer.isView(e)&&e.BYTES_PER_ELEMENT===1))throw Error(`Input must be a string or a Uint8Array`);return so(e)}var oo,so,co,lo,uo,fo,po=t((()=>{oo=e=>e.at(-1)===co?e.slice(0,e.at(-2)===uo?-2:-1):e,so=e=>e.at(-1)===lo?e.subarray(0,e.at(-2)===fo?-2:-1):e,co=`
23
+ `,lo=co.codePointAt(0),uo=`\r`,fo=uo.codePointAt(0)}));function W(e,{checkOpen:t=!0}={}){return typeof e==`object`&&!!e&&(e.writable||e.readable||!t||e.writable===void 0&&e.readable===void 0)&&typeof e.pipe==`function`}function mo(e,{checkOpen:t=!0}={}){return W(e,{checkOpen:t})&&(e.writable||!t)&&typeof e.write==`function`&&typeof e.end==`function`&&typeof e.writable==`boolean`&&typeof e.writableObjectMode==`boolean`&&typeof e.destroy==`function`&&typeof e.destroyed==`boolean`}function ho(e,{checkOpen:t=!0}={}){return W(e,{checkOpen:t})&&(e.readable||!t)&&typeof e.read==`function`&&typeof e.readable==`boolean`&&typeof e.readableObjectMode==`boolean`&&typeof e.destroy==`function`&&typeof e.destroyed==`boolean`}function go(e,t){return mo(e,t)&&ho(e,t)}var _o=t((()=>{}));async function vo(){if(f(K,this))return{done:!0,value:void 0};let e;try{e=await f(G,this).read()}catch(e){throw m(q,this,void 0),m(K,this,!0),f(G,this).releaseLock(),e}return e.done&&(m(q,this,void 0),m(K,this,!0),f(G,this).releaseLock()),e}async function yo(e){if(f(K,this))return{done:!0,value:e};if(m(K,this,!0),!f(wo,this)){let t=f(G,this).cancel(e);return f(G,this).releaseLock(),await t,{done:!0,value:e}}return f(G,this).releaseLock(),{done:!0,value:e}}function bo(){return this[Do].next()}function xo(e){return this[Do].return(e)}function So({preventCancel:e=!1}={}){let t=new Eo(this.getReader(),e),n=Object.create(Oo);return n[Do]=t,n}var Co,G,wo,K,q,To,Eo,Do,Oo,ko=t((()=>{h(),s(),u(),d(),c(),Co=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),G=new WeakMap,wo=new WeakMap,K=new WeakMap,q=new WeakMap,To=new WeakSet,Eo=class{constructor(e,t){l(this,To),p(this,G,void 0),p(this,wo,void 0),p(this,K,!1),p(this,q,void 0),m(G,this,e),m(wo,this,t)}next(){let e=()=>o(To,this,vo).call(this);return m(q,this,f(q,this)?f(q,this).then(e,e):e()),f(q,this)}return(e){let t=()=>o(To,this,yo).call(this,e);return f(q,this)?f(q,this).then(t,t):t()}},Do=Symbol(),Object.defineProperty(bo,`name`,{value:`next`}),Object.defineProperty(xo,`name`,{value:`return`}),Oo=Object.create(Co,{next:{enumerable:!0,configurable:!0,writable:!0,value:bo},return:{enumerable:!0,configurable:!0,writable:!0,value:xo}})})),Ao=t((()=>{ko()})),jo,Mo,No,Po,Fo,Io=t((()=>{_o(),Ao(),jo=e=>{if(ho(e,{checkOpen:!1})&&Fo.on!==void 0)return No(e);if(typeof e?.[Symbol.asyncIterator]==`function`)return e;if(Mo.call(e)===`[object ReadableStream]`)return So.call(e);throw TypeError(`The first argument must be a Readable, a ReadableStream, or an async iterable.`)},{toString:Mo}=Object.prototype,No=async function*(e){let t=new AbortController,n={};Po(e,t,n);try{for await(let[n]of Fo.on(e,`data`,{signal:t.signal}))yield n}catch(e){if(n.error!==void 0)throw n.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},Po=async(e,t,n)=>{try{await Fo.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){n.error=e}finally{t.abort()}},Fo={}})),Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo=t((()=>{Io(),i(),Lo=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:i,addChunk:a,getFinalChunk:o,finalize:s},{maxBuffer:c=1/0}={})=>{let l=jo(e),u=t();u.length=0;try{for await(let e of l)zo({convertedChunk:n[Vo(e)](e,u),state:u,getSize:r,truncateChunk:i,addChunk:a,maxBuffer:c});return Ro({state:u,convertChunk:n,getSize:r,truncateChunk:i,addChunk:a,getFinalChunk:o,maxBuffer:c}),s(u)}catch(e){let t=typeof e==`object`&&e?e:Error(e);throw t.bufferedData=s(u),t}},Ro=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:i,maxBuffer:a})=>{let o=i(e);o!==void 0&&zo({convertedChunk:o,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:a})},zo=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:i,maxBuffer:a})=>{let o=n(e),s=t.length+o;if(s<=a){Bo(e,t,i,s);return}let c=r(e,a-t.length);throw c!==void 0&&Bo(c,t,i,a),new Uo},Bo=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},Vo=e=>{let t=typeof e;if(t===`string`)return`string`;if(t!==`object`||e===null)return`others`;if(globalThis.Buffer?.isBuffer(e))return`buffer`;let n=Ho.call(e);return n===`[object ArrayBuffer]`?`arrayBuffer`:n===`[object DataView]`?`dataView`:Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&Ho.call(e.buffer)===`[object ArrayBuffer]`?`typedArray`:`others`},{toString:Ho}=Object.prototype,Uo=class extends Error{constructor(){super(`maxBuffer exceeded`),a(this,`name`,`MaxBufferError`)}}})),J,Go,Ko,qo,Jo,Yo=t((()=>{J=e=>e,Go=()=>void 0,Ko=({contents:e})=>e,qo=e=>{throw Error(`Streams in object mode are not supported: ${String(e)}`)},Jo=e=>e.length}));async function Xo(e,t){return Lo(e,es,t)}var Zo,Qo,$o,es,ts=t((()=>{Wo(),Yo(),Zo=()=>({contents:[]}),Qo=()=>1,$o=(e,{contents:t})=>(t.push(e),t),es={init:Zo,convertChunk:{string:J,buffer:J,arrayBuffer:J,dataView:J,typedArray:J,others:J},getSize:Qo,truncateChunk:Go,addChunk:$o,getFinalChunk:Go,finalize:Ko}}));async function ns(e,t){return Lo(e,gs,t)}var rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s=t((()=>{Wo(),Yo(),rs=()=>({contents:new ArrayBuffer(0)}),is=e=>as.encode(e),as=new TextEncoder,os=e=>new Uint8Array(e),ss=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),cs=(e,t)=>e.slice(0,t),ls=(e,{contents:t,length:n},r)=>{let i=hs()?ds(t,r):us(t,r);return new Uint8Array(i).set(e,n),i},us=(e,t)=>{if(t<=e.byteLength)return e;let n=new ArrayBuffer(fs(t));return new Uint8Array(n).set(new Uint8Array(e),0),n},ds=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;let n=new ArrayBuffer(t,{maxByteLength:fs(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n},fs=e=>ps**Math.ceil(Math.log(e)/Math.log(ps)),ps=2,ms=({contents:e,length:t})=>hs()?e:e.slice(0,t),hs=()=>`resize`in ArrayBuffer.prototype,gs={init:rs,convertChunk:{string:is,buffer:os,arrayBuffer:os,dataView:ss,typedArray:ss,others:qo},getSize:Jo,truncateChunk:cs,addChunk:ls,getFinalChunk:Go,finalize:ms}}));async function vs(e,t){return Lo(e,ws,t)}var ys,bs,xs,Ss,Cs,ws,Ts=t((()=>{Wo(),Yo(),ys=()=>({contents:``,textDecoder:new TextDecoder}),bs=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),xs=(e,{contents:t})=>t+e,Ss=(e,t)=>e.slice(0,t),Cs=({textDecoder:e})=>{let t=e.decode();return t===``?void 0:t},ws={init:ys,convertChunk:{string:J,buffer:bs,arrayBuffer:bs,dataView:bs,typedArray:bs,others:qo},getSize:Jo,truncateChunk:Ss,addChunk:xs,getFinalChunk:Cs,finalize:Ko}})),Es=t((()=>{ts(),_s(),Ts(),Wo()})),Ds=t((()=>{Io(),Es(),Object.assign(Fo,{on:xe,finished:D})})),Os,ks,As,js,Ms,Ns,Ps,Fs,Is=t((()=>{Ds(),P(),F(),Os=({error:e,stream:t,readableObjectMode:n,lines:r,encoding:i,fdNumber:a})=>{if(!(e instanceof Uo))throw e;if(a===`all`)return e;throw e.maxBufferInfo={fdNumber:a,unit:ks(n,r,i)},t.destroy(),e},ks=(e,t,n)=>e?`objects`:t?`lines`:n===`buffer`?`bytes`:`characters`,As=(e,t,n)=>{if(t.length!==n)return;let r=new Uo;throw r.maxBufferInfo={fdNumber:`ipc`},r},js=(e,t)=>{let{streamName:n,threshold:r,unit:i}=Ms(e,t);return`Command's ${n} was larger than ${r} ${i}`},Ms=(e,t)=>{if(e?.maxBufferInfo===void 0)return{streamName:`output`,threshold:t[1],unit:`bytes`};let{maxBufferInfo:{fdNumber:n,unit:r}}=e;delete e.maxBufferInfo;let i=Et(t,n);return n===`ipc`?{streamName:`IPC output`,threshold:i,unit:`messages`}:{streamName:ft(n),threshold:i,unit:r}},Ns=(e,t,n)=>e?.code===`ENOBUFS`&&t!==null&&t.some(e=>e!==null&&e.length>Fs(n)),Ps=(e,t,n)=>{if(!t)return e;let r=Fs(n);return e.length>r?e.slice(0,r):e},Fs=([,e])=>e})),Ls,Rs,zs,Bs,Vs,Hs,Us,Ws=t((()=>{po(),j(),Za(),Wt(),Is(),Fr(),R(),Ls=({stdio:e,all:t,ipcOutput:n,originalError:r,signal:i,signalDescription:a,exitCode:o,escapedCommand:s,timedOut:c,isCanceled:l,isGracefullyCanceled:u,isMaxBuffer:d,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:m,maxBuffer:h,timeout:g,cwd:_})=>{let v=r?.code,y=Rs({originalError:r,timedOut:c,timeout:g,isMaxBuffer:d,maxBuffer:h,errorCode:v,signal:i,signalDescription:a,exitCode:o,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:f,forceKillAfterDelay:p,killSignal:m}),b=Bs(r,_),x=`${y}: ${s}${b===void 0?``:`\n${b}`}`;return{originalMessage:b,shortMessage:x,message:[x,...t===void 0?[e[2],e[1]]:[t],...e.slice(3),n.map(e=>Vs(e)).join(`
24
+ `)].map(e=>Ft(ao(Hs(e)))).filter(Boolean).join(`
25
+
26
+ `)}},Rs=({originalError:e,timedOut:t,timeout:n,isMaxBuffer:r,maxBuffer:i,errorCode:a,signal:o,signalDescription:s,exitCode:c,isCanceled:l,isGracefullyCanceled:u,isForcefullyTerminated:d,forceKillAfterDelay:f,killSignal:p})=>{let m=zs(d,f);return t?`Command timed out after ${n} milliseconds${m}`:u?o===void 0?`Command was gracefully canceled with exit code ${c}`:d?`Command was gracefully canceled${m}`:`Command was gracefully canceled with ${o} (${s})`:l?`Command was canceled${m}`:r?`${js(e,i)}${m}`:a===void 0?d?`Command was killed with ${p} (${Pr(p)})${m}`:o===void 0?c===void 0?`Command failed`:`Command failed with exit code ${c}`:`Command was killed with ${o} (${s})`:`Command failed with ${a}${m}`},zs=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:``,Bs=(e,t)=>{if(e instanceof tr)return;let n=Ft(Xa(rr(e)?e.originalMessage:String(e?.message??e),t));return n===``?void 0:n},Vs=e=>typeof e==`string`?e:te(e),Hs=e=>Array.isArray(e)?e.map(e=>ao(Us(e))).filter(Boolean).join(`
27
+ `):Us(e),Us=e=>typeof e==`string`?e:A(e)?Je(e):``})),Gs,Ks,qs,Js,Ys,Xs,Zs=t((()=>{Fr(),Dn(),R(),Ws(),Gs=({command:e,escapedCommand:t,stdio:n,all:r,ipcOutput:i,options:{cwd:a},startTime:o})=>Ys({command:e,escapedCommand:t,cwd:a,durationMs:En(o),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:n[1],stderr:n[2],all:r,stdio:n,ipcOutput:i,pipedFrom:[]}),Ks=({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:i,startTime:a,isSync:o})=>qs({error:e,command:t,escapedCommand:n,startTime:a,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:r.length}),ipcOutput:[],options:i,isSync:o}),qs=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:l,signal:u,stdio:d,all:f,ipcOutput:p,options:{timeoutDuration:m,timeout:h=m,forceKillAfterDelay:g,killSignal:_,cwd:v,maxBuffer:y},isSync:b})=>{let{exitCode:x,signal:ee,signalDescription:te}=Xs(l,u),{originalMessage:ne,shortMessage:re,message:S}=Ls({stdio:d,all:f,ipcOutput:p,originalError:e,signal:ee,signalDescription:te,exitCode:x,escapedCommand:n,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,forceKillAfterDelay:g,killSignal:_,maxBuffer:y,timeout:h,cwd:v}),ie=er(e,S,b);return Object.assign(ie,Js({error:ie,command:t,escapedCommand:n,startTime:r,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:x,signal:ee,signalDescription:te,stdio:d,all:f,ipcOutput:p,cwd:v,originalMessage:ne,shortMessage:re})),ie},Js=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:d,stdio:f,all:p,ipcOutput:m,cwd:h,originalMessage:g,shortMessage:_})=>Ys({shortMessage:_,originalMessage:g,command:t,escapedCommand:n,cwd:h,durationMs:En(r),failed:!0,timedOut:i,isCanceled:a,isGracefullyCanceled:o,isTerminated:u!==void 0,isMaxBuffer:s,isForcefullyTerminated:c,exitCode:l,signal:u,signalDescription:d,code:e.cause?.code,stdout:f[1],stderr:f[2],all:p,stdio:f,ipcOutput:m,pipedFrom:[]}),Ys=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),Xs=(e,t)=>{let n=e===null?void 0:e,r=t===null?void 0:t;return{exitCode:n,signal:r,signalDescription:r===void 0?void 0:Pr(t)}}}));function Qs(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(tc(e*1e3)%1e3),nanoseconds:Math.trunc(tc(e*1e6)%1e3)}}function $s(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function ec(e){switch(typeof e){case`number`:if(Number.isFinite(e))return Qs(e);break;case`bigint`:return $s(e)}throw TypeError(`Expected a finite number or bigint`)}var tc,nc=t((()=>{tc=e=>Number.isFinite(e)?e:0}));function rc(e,t){let n=typeof e==`bigint`;if(!n&&!Number.isFinite(e))throw TypeError(`Expected a finite number or bigint`);t={...t};let r=e<0?`-`:``;e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[],a=(e,t)=>{let n=Math.floor(e*10**t+oc);return(Math.round(n)/10**t).toFixed(t)},o=(e,n,r,a)=>{if(!((i.length===0||!t.colonNotation)&&ic(e)&&!(t.colonNotation&&r===`m`))){if(a??(a=String(e)),t.colonNotation){let e=a.includes(`.`)?a.split(`.`)[0].length:a.length,t=i.length>0?2:1;a=`0`.repeat(Math.max(0,t-e))+a}else a+=t.verbose?` `+ac(n,e):r;i.push(a)}},s=ec(e),c=BigInt(s.days);if(t.hideYearAndDays?o(BigInt(c)*24n+BigInt(s.hours),`hour`,`h`):(t.hideYear?o(c,`day`,`d`):(o(c/365n,`year`,`y`),o(c%365n,`day`,`d`)),o(Number(s.hours),`hour`,`h`)),o(Number(s.minutes),`minute`,`m`),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let e=Number(s.seconds),n=Number(s.milliseconds),r=Number(s.microseconds),i=Number(s.nanoseconds);if(o(e,`second`,`s`),t.formatSubMilliseconds)o(n,`millisecond`,`ms`),o(r,`microsecond`,`µs`),o(i,`nanosecond`,`ns`);else{let e=n+r/1e3+i/1e6,a=typeof t.millisecondsDecimalDigits==`number`?t.millisecondsDecimalDigits:0,s=a?e.toFixed(a):e>=1?Math.round(e):Math.ceil(e);o(Number.parseFloat(s),`millisecond`,`ms`,s)}}else{let r=a((n?Number(e%sc):e)/1e3%60,typeof t.secondsDecimalDigits==`number`?t.secondsDecimalDigits:1),i=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,``);o(Number.parseFloat(i),`second`,`s`,i)}if(i.length===0)return r+`0`+(t.verbose?` milliseconds`:`ms`);let l=t.colonNotation?`:`:` `;return typeof t.unitCount==`number`&&(i=i.slice(0,Math.max(t.unitCount,1))),r+i.join(l)}var ic,ac,oc,sc,cc=t((()=>{nc(),ic=e=>e===0||e===0n,ac=(e,t)=>t===1||t===1n?e:`${e}s`,oc=1e-7,sc=24n*60n*60n*1000n})),lc,uc=t((()=>{_n(),lc=(e,t)=>{e.failed&&dn({type:`error`,verboseMessage:e.shortMessage,verboseInfo:t,result:e})}})),dc,fc,pc=t((()=>{cc(),I(),_n(),uc(),dc=(e,t)=>{Dt(t)&&(lc(e,t),fc(e,t))},fc=(e,t)=>{dn({type:`duration`,verboseMessage:`(done in ${rc(e.durationMs)})`,verboseInfo:t,result:e})}})),mc,hc=t((()=>{pc(),mc=(e,t,{reject:n})=>{if(dc(e,t),e.failed&&n)throw e;return e}})),gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Y,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,X,Vc,Hc,Uc,Wc,Gc,Z=t((()=>{_o(),k(),j(),gc=(e,t)=>Y(e)?`asyncGenerator`:Tc(e)?`generator`:Dc(e)?`fileUrl`:kc(e)?`filePath`:Ic(e)?`webStream`:W(e,{checkOpen:!1})?`native`:A(e)?`uint8Array`:Rc(e)?`asyncIterable`:zc(e)?`iterable`:Lc(e)?yc({transform:e},t):Ec(e)?_c(e,t):`native`,_c=(e,t)=>go(e.transform,{checkOpen:!1})?vc(e,t):Lc(e.transform)?yc(e,t):Sc(e,t),vc=(e,t)=>(bc(e,t,`Duplex stream`),`duplex`),yc=(e,t)=>(bc(e,t,`web TransformStream`),`webTransform`),bc=({final:e,binary:t,objectMode:n},r,i)=>{xc(e,`${r}.final`,i),xc(t,`${r}.binary`,i),Cc(n,`${r}.objectMode`)},xc=(e,t,n)=>{if(e!==void 0)throw TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${n}.`)},Sc=({transform:e,final:t,binary:n,objectMode:r},i)=>{if(e!==void 0&&!wc(e))throw TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(go(t,{checkOpen:!1}))throw TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if(Lc(t))throw TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(t!==void 0&&!wc(t))throw TypeError(`The \`${i}.final\` option must be a generator.`);return Cc(n,`${i}.binary`),Cc(r,`${i}.objectMode`),Y(e)||Y(t)?`asyncGenerator`:`generator`},Cc=(e,t)=>{if(e!==void 0&&typeof e!=`boolean`)throw TypeError(`The \`${t}\` option must use a boolean.`)},wc=e=>Y(e)||Tc(e),Y=e=>Object.prototype.toString.call(e)===`[object AsyncGeneratorFunction]`,Tc=e=>Object.prototype.toString.call(e)===`[object GeneratorFunction]`,Ec=e=>O(e)&&(e.transform!==void 0||e.final!==void 0),Dc=e=>Object.prototype.toString.call(e)===`[object URL]`,Oc=e=>Dc(e)&&e.protocol!==`file:`,kc=e=>O(e)&&Object.keys(e).length>0&&Object.keys(e).every(e=>Ac.has(e))&&jc(e.file),Ac=new Set([`file`,`append`]),jc=e=>typeof e==`string`,Mc=(e,t)=>e===`native`&&typeof t==`string`&&!Nc.has(t),Nc=new Set([`ipc`,`ignore`,`inherit`,`overlapped`,`pipe`]),Pc=e=>Object.prototype.toString.call(e)===`[object ReadableStream]`,Fc=e=>Object.prototype.toString.call(e)===`[object WritableStream]`,Ic=e=>Pc(e)||Fc(e),Lc=e=>Pc(e?.readable)&&Fc(e?.writable),Rc=e=>Bc(e)&&typeof e[Symbol.asyncIterator]==`function`,zc=e=>Bc(e)&&typeof e[Symbol.iterator]==`function`,Bc=e=>typeof e==`object`&&!!e,X=new Set([`generator`,`asyncGenerator`,`duplex`,`webTransform`]),Vc=new Set([`fileUrl`,`filePath`,`fileNumber`]),Hc=new Set([`fileUrl`,`filePath`]),Uc=new Set([...Hc,`webStream`,`nodeStream`]),Wc=new Set([`webTransform`,`duplex`]),Gc={generator:`a generator`,asyncGenerator:`an async generator`,fileUrl:`a file URL`,filePath:`a file path string`,fileNumber:`a file descriptor number`,webStream:`a web stream`,nodeStream:`a Node.js stream`,webTransform:`a web TransformStream`,duplex:`a Duplex stream`,native:`any value`,iterable:`an iterable`,asyncIterable:`an async iterable`,string:`a string`,uint8Array:`a Uint8Array`}})),Kc,qc,Jc,Yc,Xc=t((()=>{Z(),Kc=(e,t,n,r)=>r===`output`?qc(e,t,n):Jc(e,t,n),qc=(e,t,n)=>{let r=t!==0&&n[t-1].value.readableObjectMode;return{writableObjectMode:r,readableObjectMode:e??r}},Jc=(e,t,n)=>{let r=t===0?e===!0:n[t-1].value.readableObjectMode;return{writableObjectMode:r,readableObjectMode:t!==n.length-1&&(e??r)}},Yc=(e,t)=>{let n=e.findLast(({type:e})=>X.has(e));return n===void 0?!1:t===`input`?n.value.writableObjectMode:n.value.readableObjectMode}})),Zc,Qc,$c,el,tl,nl,rl,il=t((()=>{k(),qa(),Z(),Xc(),Zc=(e,t,n,r)=>[...e.filter(({type:e})=>!X.has(e)),...Qc(e,t,n,r)],Qc=(e,t,n,{encoding:r})=>{let i=e.filter(({type:e})=>X.has(e)),a=Array.from({length:i.length});for(let[e,o]of Object.entries(i))a[e]=$c({stdioItem:o,index:Number(e),newTransforms:a,optionName:t,direction:n,encoding:r});return rl(a,n)},$c=({stdioItem:e,stdioItem:{type:t},index:n,newTransforms:r,optionName:i,direction:a,encoding:o})=>t===`duplex`?el({stdioItem:e,optionName:i}):t===`webTransform`?tl({stdioItem:e,index:n,newTransforms:r,direction:a}):nl({stdioItem:e,index:n,newTransforms:r,direction:a,encoding:o}),el=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:n,readableObjectMode:r},objectMode:i=r}},optionName:a})=>{if(i&&!r)throw TypeError(`The \`${a}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!i&&r)throw TypeError(`The \`${a}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:n,readableObjectMode:r}}},tl=({stdioItem:e,stdioItem:{value:t},index:n,newTransforms:r,direction:i})=>{let{transform:a,objectMode:o}=O(t)?t:{transform:t},{writableObjectMode:s,readableObjectMode:c}=Kc(o,n,r,i);return{...e,value:{transform:a,writableObjectMode:s,readableObjectMode:c}}},nl=({stdioItem:e,stdioItem:{value:t},index:n,newTransforms:r,direction:i,encoding:a})=>{let{transform:o,final:s,binary:c=!1,preserveNewlines:l=!1,objectMode:u}=O(t)?t:{transform:t},d=c||U.has(a),{writableObjectMode:f,readableObjectMode:p}=Kc(u,n,r,i);return{...e,value:{transform:o,final:s,binary:d,preserveNewlines:l,writableObjectMode:f,readableObjectMode:p}}},rl=(e,t)=>t===`input`?e.reverse():e})),al,ol,sl,cl,ll,ul,dl,fl,pl=t((()=>{_o(),Z(),al=(e,t,n)=>{let r=e.map(e=>ol(e,t));if(r.includes(`input`)&&r.includes(`output`))throw TypeError(`The \`${n}\` option must not be an array of both readable and writable values.`);return r.find(Boolean)??fl},ol=({type:e,value:t},n)=>sl[n]??ul[e](t),sl=[`input`,`output`,`output`],cl=()=>void 0,ll=()=>`input`,ul={generator:cl,asyncGenerator:cl,fileUrl:cl,filePath:cl,iterable:ll,asyncIterable:ll,uint8Array:ll,webStream:e=>Fc(e)?`output`:`input`,nodeStream(e){return ho(e,{checkOpen:!1})?mo(e,{checkOpen:!1})?void 0:`input`:`output`},webTransform:cl,duplex:cl,native(e){let t=dl(e);if(t!==void 0)return t;if(W(e,{checkOpen:!1}))return ul.nodeStream(e)}},dl=e=>{if([0,S.stdin].includes(e))return`input`;if([1,2,S.stdout,S.stderr].includes(e))return`output`},fl=`output`})),ml,hl=t((()=>{ml=(e,t)=>t&&!e.includes(`ipc`)?[...e,`ipc`]:e})),gl,_l,vl,yl,bl,xl,Sl=t((()=>{P(),hl(),I(),gl=({stdio:e,ipc:t,buffer:n,...r},i,a)=>{let o=_l(e,r).map((e,t)=>yl(e,t));return a?bl(o,n,i):ml(o,t)},_l=(e,t)=>{if(e===void 0)return N.map(e=>t[e]);if(vl(t))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${N.map(e=>`\`${e}\``).join(`, `)}`);if(typeof e==`string`)return[e,e,e];if(!Array.isArray(e))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let n=Math.max(e.length,N.length);return Array.from({length:n},(t,n)=>e[n])},vl=e=>N.some(t=>e[t]!==void 0),yl=(e,t)=>Array.isArray(e)?e.map(e=>yl(e,t)):e??(t>=N.length?`ignore`:`pipe`),bl=(e,t,n)=>e.map((e,r)=>!t[r]&&r!==0&&!Ot(n,r)&&xl(e)?`ignore`:e),xl=e=>e===`pipe`||Array.isArray(e)&&e.every(e=>e===`pipe`)})),Cl,wl,Tl,El,Dl,Ol,kl=t((()=>{_o(),P(),j(),H(),Cl=({stdioItem:e,stdioItem:{type:t},isStdioArray:n,fdNumber:r,direction:i,isSync:a})=>!n||t!==`native`?e:a?wl({stdioItem:e,fdNumber:r,direction:i}):Dl({stdioItem:e,fdNumber:r}),wl=({stdioItem:e,stdioItem:{value:t,optionName:n},fdNumber:r,direction:i})=>{let a=Tl({value:t,optionName:n,fdNumber:r,direction:i});if(a!==void 0)return a;if(W(t,{checkOpen:!1}))throw TypeError(`The \`${n}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},Tl=({value:e,optionName:t,fdNumber:n,direction:r})=>{let i=El(e,n);if(i!==void 0){if(r===`output`)return{type:`fileNumber`,value:i,optionName:t};if(ve.isatty(i))throw TypeError(`The \`${t}: ${Ti(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:`uint8Array`,value:We(he(i)),optionName:t}}},El=(e,t)=>{if(e===`inherit`)return t;if(typeof e==`number`)return e;let n=dt.indexOf(e);if(n!==-1)return n},Dl=({stdioItem:e,stdioItem:{value:t,optionName:n},fdNumber:r})=>t===`inherit`?{type:`nodeStream`,value:Ol(r,t,n),optionName:n}:typeof t==`number`?{type:`nodeStream`,value:Ol(t,t,n),optionName:n}:W(t,{checkOpen:!1})?{type:`nodeStream`,value:t,optionName:n}:e,Ol=(e,t,n)=>{let r=dt[e];if(r===void 0)throw TypeError(`The \`${n}: ${t}\` option is invalid: no such standard stream.`);return r}})),Al,jl,Ml,Nl,Pl,Fl=t((()=>{_o(),j(),Z(),Al=({input:e,inputFile:t},n)=>n===0?[...jl(e),...Nl(t)]:[],jl=e=>e===void 0?[]:[{type:Ml(e),value:e,optionName:`input`}],Ml=e=>{if(ho(e,{checkOpen:!1}))return`nodeStream`;if(typeof e==`string`)return`string`;if(A(e))return`uint8Array`;throw Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},Nl=e=>e===void 0?[]:[{...Pl(e),optionName:`inputFile`}],Pl=e=>{if(Dc(e))return{type:`fileUrl`,value:e};if(jc(e))return{type:`filePath`,value:{file:e}};throw Error("The `inputFile` option must be a file path string or a file URL.")}})),Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl=t((()=>{Z(),Il=e=>e.filter((t,n)=>e.every((e,r)=>t.value!==e.value||n>=r||t.type===`generator`||t.type===`asyncGenerator`)),Ll=({stdioItem:{type:e,value:t,optionName:n},direction:r,fileDescriptors:i,isSync:a})=>{let o=Rl(i,e);if(o.length!==0){if(a){zl({otherStdioItems:o,type:e,value:t,optionName:n,direction:r});return}if(Uc.has(e))return Bl({otherStdioItems:o,type:e,value:t,optionName:n,direction:r});Wc.has(e)&&Hl({otherStdioItems:o,type:e,value:t,optionName:n})}},Rl=(e,t)=>e.flatMap(({direction:e,stdioItems:n})=>n.filter(e=>e.type===t).map((t=>({...t,direction:e})))),zl=({otherStdioItems:e,type:t,value:n,optionName:r,direction:i})=>{Hc.has(t)&&Bl({otherStdioItems:e,type:t,value:n,optionName:r,direction:i})},Bl=({otherStdioItems:e,type:t,value:n,optionName:r,direction:i})=>{let a=e.filter(e=>Vl(e,n));if(a.length!==0)return Ul(a.find(e=>e.direction!==i),r,t),i===`output`?a[0].stream:void 0},Vl=({type:e,value:t},n)=>e===`filePath`?t.file===n.file:e===`fileUrl`?t.href===n.href:t===n,Hl=({otherStdioItems:e,type:t,value:n,optionName:r})=>{Ul(e.find(({value:{transform:e}})=>e===n.transform),r,t)},Ul=(e,t,n)=>{if(e!==void 0)throw TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Gc[n]} that is the same.`)}})),Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au=t((()=>{P(),il(),Xc(),Z(),pl(),Sl(),kl(),Fl(),Wl(),Gl=(e,t,n,r)=>{let i=eu({initialFileDescriptors:gl(t,n,r).map((e,n)=>Kl({stdioOption:e,fdNumber:n,options:t,isSync:r})),addProperties:e,options:t,isSync:r});return t.stdio=i.map(({stdioItems:e})=>iu(e)),i},Kl=({stdioOption:e,fdNumber:t,options:n,isSync:r})=>{let i=ft(t),{stdioItems:a,isStdioArray:o}=ql({stdioOption:e,fdNumber:t,options:n,optionName:i}),s=al(a,t,i),c=Zc(a.map(e=>Cl({stdioItem:e,isStdioArray:o,fdNumber:t,direction:s,isSync:r})),i,s,n),l=Yc(c,s);return $l(c,l),{direction:s,objectMode:l,stdioItems:c}},ql=({stdioOption:e,fdNumber:t,options:n,optionName:r})=>{let i=Il([...(Array.isArray(e)?e:[e]).map(e=>Jl(e,r)),...Al(n,t)]),a=i.length>1;return Yl(i,a,r),Zl(i),{stdioItems:i,isStdioArray:a}},Jl=(e,t)=>({type:gc(e,t),value:e,optionName:t}),Yl=(e,t,n)=>{if(e.length===0)throw TypeError(`The \`${n}\` option must not be an empty array.`);if(t){for(let{value:t,optionName:n}of e)if(Xl.has(t))throw Error(`The \`${n}\` option must not include \`${t}\`.`)}},Xl=new Set([`ignore`,`ipc`]),Zl=e=>{for(let t of e)Ql(t)},Ql=({type:e,value:t,optionName:n})=>{if(Oc(t))throw TypeError(`The \`${n}: URL\` option must use the \`file:\` scheme.
28
+ For example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(Mc(e,t))throw TypeError(`The \`${n}: { file: '...' }\` option must be used instead of \`${n}: '...'\`.`)},$l=(e,t)=>{if(!t)return;let n=e.find(({type:e})=>Vc.has(e));if(n!==void 0)throw TypeError(`The \`${n.optionName}\` option cannot use both files and transforms in objectMode.`)},eu=({initialFileDescriptors:e,addProperties:t,options:n,isSync:r})=>{let i=[];try{for(let a of e)i.push(tu({fileDescriptor:a,fileDescriptors:i,addProperties:t,options:n,isSync:r}));return i}catch(e){throw ru(i),e}},tu=({fileDescriptor:{direction:e,objectMode:t,stdioItems:n},fileDescriptors:r,addProperties:i,options:a,isSync:o})=>({direction:e,objectMode:t,stdioItems:n.map(t=>nu({stdioItem:t,addProperties:i,direction:e,options:a,fileDescriptors:r,isSync:o}))}),nu=({stdioItem:e,addProperties:t,direction:n,options:r,fileDescriptors:i,isSync:a})=>{let o=Ll({stdioItem:e,direction:n,fileDescriptors:i,isSync:a});return o===void 0?{...e,...t[n][e.type](e,r)}:{...e,stream:o}},ru=e=>{for(let{stdioItems:t}of e)for(let{stream:e}of t)e!==void 0&&!M(e)&&e.destroy()},iu=e=>{if(e.length>1)return e.some(({value:e})=>e===`overlapped`)?`overlapped`:`pipe`;let[{type:t,value:n}]=e;return t===`native`?n:`pipe`}})),ou,Q,su,cu,lu,uu,du=t((()=>{j(),au(),Z(),ou=(e,t)=>Gl(uu,e,t,!0),Q=({type:e,optionName:t})=>{cu(t,Gc[e])},su=({optionName:e,value:t})=>((t===`ipc`||t===`overlapped`)&&cu(e,`"${t}"`),{}),cu=(e,t)=>{throw TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},lu={generator(){},asyncGenerator:Q,webStream:Q,nodeStream:Q,webTransform:Q,duplex:Q,asyncIterable:Q,native:su},uu={input:{...lu,fileUrl:({value:e})=>({contents:[We(he(e))]}),filePath:({value:{file:e}})=>({contents:[We(he(e))]}),fileNumber:Q,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...lu,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e,append:t}})=>({path:e,append:t}),fileNumber:({value:e})=>({path:e}),iterable:Q,string:Q,uint8Array:Q}}})),fu,pu,mu=t((()=>{po(),fu=(e,{stripFinalNewline:t},n)=>pu(t,n)&&e!==void 0&&!Array.isArray(e)?ao(e):e,pu=(e,t)=>t===`all`?e[1]||e[2]:e[t]})),hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou=t((()=>{hu=(e,t,n,r)=>e||n?void 0:vu(t,r),gu=(e,t,n)=>n?e.flatMap(e=>_u(e,t)):_u(e,t),_u=(e,t)=>{let{transform:n,final:r}=vu(t,{});return[...n(e),...r()]},vu=(e,t)=>(t.previousChunks=``,{transform:yu.bind(void 0,t,e),final:xu.bind(void 0,t)}),yu=function*(e,t,n){if(typeof n!=`string`){yield n;return}let{previousChunks:r}=e,i=-1;for(let a=0;a<n.length;a+=1)if(n[a]===`
29
+ `){let o=bu(n,a,t,e),s=n.slice(i+1,a+1-o);r.length>0&&(s=wu(r,s),r=``),yield s,i=a}i!==n.length-1&&(r=wu(r,n.slice(i+1))),e.previousChunks=r},bu=(e,t,n,r)=>n?0:(r.isWindowsNewline=t!==0&&e[t-1]===`\r`,r.isWindowsNewline?2:1),xu=function*({previousChunks:e}){e.length>0&&(yield e)},Su=({binary:e,preserveNewlines:t,readableObjectMode:n,state:r})=>e||t||n?void 0:{transform:Cu.bind(void 0,r)},Cu=function*({isWindowsNewline:e=!1},t){let{unixNewline:n,windowsNewline:r,LF:i,concatBytes:a}=typeof t==`string`?Tu:Du;if(t.at(-1)===i){yield t;return}yield a(t,e?r:n)},wu=(e,t)=>`${e}${t}`,Tu={windowsNewline:`\r
30
+ `,unixNewline:`
31
+ `,LF:`
32
+ `,concatBytes:wu},Eu=(e,t)=>{let n=new Uint8Array(e.length+t.length);return n.set(e,0),n.set(t,e.length),n},Du={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:Eu}})),ku,Au,ju,Mu,Nu,Pu,Fu=t((()=>{j(),ku=(e,t)=>e?void 0:Au.bind(void 0,t),Au=function*(e,t){if(typeof t!=`string`&&!A(t)&&!Ae.isBuffer(t))throw TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},ju=(e,t)=>e?Mu.bind(void 0,t):Nu.bind(void 0,t),Mu=function*(e,t){Pu(e,t),yield t},Nu=function*(e,t){if(Pu(e,t),typeof t!=`string`&&!A(t))throw TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},Pu=(e,t)=>{if(t==null)throw TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.
33
+ Instead, \`yield\` should either be called with a value, or not be called at all. For example:
34
+ if (condition) { yield value; }`)}})),Iu,Lu,Ru,zu,Bu=t((()=>{j(),Iu=(e,t,n)=>{if(n)return;if(e)return{transform:Lu.bind(void 0,new TextEncoder)};let r=new Oe(t);return{transform:Ru.bind(void 0,r),final:zu.bind(void 0,r)}},Lu=function*(e,t){Ae.isBuffer(t)?yield We(t):typeof t==`string`?yield e.encode(t):yield t},Ru=function*(e,t){yield A(t)?e.write(t):t},zu=function*(e){let t=e.end();t!==``&&(yield t)}})),Vu,Hu,Uu,Wu,Gu,Ku,qu=t((()=>{Vu=x(async(e,t,n,r)=>{t.currentIterable=e(...n);try{for await(let e of t.currentIterable)r.push(e)}finally{delete t.currentIterable}}),Hu=async function*(e,t,n){if(n===t.length){yield e;return}let{transform:r=Ku}=t[n];for await(let i of r(e))yield*Hu(i,t,n+1)},Uu=async function*(e){for(let[t,{final:n}]of Object.entries(e))yield*Wu(n,Number(t),e)},Wu=async function*(e,t,n){if(e!==void 0)for await(let r of e())yield*Hu(r,n,t+1)},Gu=x(async({currentIterable:e},t)=>{if(e!==void 0){await(t?e.throw(t):e.return());return}if(t)throw t}),Ku=function*(e){yield e}})),Ju,Yu,Xu,Zu,Qu,$u,ed=t((()=>{Ju=(e,t,n,r)=>{try{for(let r of e(...t))n.push(r);r()}catch(e){r(e)}},Yu=(e,t)=>[...t.flatMap(t=>[...Xu(t,e,0)]),...Zu(e)],Xu=function*(e,t,n){if(n===t.length){yield e;return}let{transform:r=$u}=t[n];for(let i of r(e))yield*Xu(i,t,n+1)},Zu=function*(e){for(let[t,{final:n}]of Object.entries(e))yield*Qu(n,Number(t),e)},Qu=function*(e,t,n){if(e!==void 0)for(let r of e())yield*Xu(r,n,t+1)},$u=function*(e){yield e}})),td,nd,rd,id=t((()=>{Z(),Ou(),Fu(),Bu(),qu(),ed(),td=({value:e,value:{transform:t,final:n,writableObjectMode:r,readableObjectMode:i},optionName:a},{encoding:o})=>{let s={},c=rd(e,o,a),l=Y(t),u=Y(n),d=l?Vu.bind(void 0,Hu,s):Ju.bind(void 0,Xu),f=l||u?Vu.bind(void 0,Uu,s):Ju.bind(void 0,Zu),p=l||u?Gu.bind(void 0,s):void 0;return{stream:new Te({writableObjectMode:r,writableHighWaterMark:De(r),readableObjectMode:i,readableHighWaterMark:De(i),transform(e,t,n){d([e,c,0],this,n)},flush(e){f([c],this,e)},destroy:p})}},nd=(e,t,n,r)=>{let i=t.filter(({type:e})=>e===`generator`),a=r?i.reverse():i;for(let{value:t,optionName:r}of a)e=Yu(rd(t,n,r),e);return e},rd=({transform:e,final:t,binary:n,writableObjectMode:r,readableObjectMode:i,preserveNewlines:a},o,s)=>{let c={};return[{transform:ku(r,s)},Iu(n,o,r),hu(n,a,r,c),{transform:e,final:t},{transform:ju(i,s)},Su({binary:n,preserveNewlines:a,readableObjectMode:i,state:c})].filter(Boolean)}})),ad,od,sd,cd,ld,ud=t((()=>{id(),j(),Z(),ad=(e,t)=>{for(let n of od(e))sd(e,n,t)},od=e=>new Set(Object.entries(e).filter(([,{direction:e}])=>e===`input`).map(([e])=>Number(e))),sd=(e,t,n)=>{let{stdioItems:r}=e[t],i=r.filter(({contents:e})=>e!==void 0);if(i.length!==0){if(t!==0){let[{type:e,optionName:t}]=i;throw TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${Gc[e]} with synchronous methods.`)}n.input=Ze(i.map(({contents:e})=>e).map(e=>cd(e,r)))}},cd=(e,t)=>{let n=nd(e,t,`utf8`,!0);return ld(n),Ze(n)},ld=e=>{let t=e.find(e=>typeof e!=`string`&&!A(e));if(t!==void 0)throw TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)}})),dd,fd,pd,md,hd,gd,_d,vd=t((()=>{qa(),Z(),_n(),I(),dd=({stdioItems:e,encoding:t,verboseInfo:n,fdNumber:r})=>r!==`all`&&Ot(n,r)&&!U.has(t)&&fd(r)&&(e.some(({type:e,value:t})=>e===`native`&&pd.has(t))||e.every(({type:e})=>X.has(e))),fd=e=>e===1||e===2,pd=new Set([`pipe`,`overlapped`]),md=async(e,t,n,r)=>{for await(let i of e)gd(t)||_d(i,n,r)},hd=(e,t,n)=>{for(let r of e)_d(r,t,n)},gd=e=>e._readableState.pipes.length>0,_d=(e,t,n)=>{dn({type:`output`,verboseMessage:hn(e),fdNumber:t,verboseInfo:n})}})),yd,bd,xd,Sd,Cd,wd,Td=t((()=>{vd(),id(),Ou(),j(),Z(),Is(),yd=({fileDescriptors:e,syncResult:{output:t},options:n,isMaxBuffer:r,verboseInfo:i})=>{if(t===null)return{output:Array.from({length:3})};let a={},o=new Set([]);return{output:t.map((t,s)=>bd({result:t,fileDescriptors:e,fdNumber:s,state:a,outputFiles:o,isMaxBuffer:r,verboseInfo:i},n)),...a}},bd=({result:e,fileDescriptors:t,fdNumber:n,state:r,outputFiles:i,isMaxBuffer:a,verboseInfo:o},{buffer:s,encoding:c,lines:l,stripFinalNewline:u,maxBuffer:d})=>{if(e===null)return;let f=We(Ps(e,a,d)),{stdioItems:p,objectMode:m}=t[n],{serializedResult:h,finalResult:g=h}=Sd({chunks:xd([f],p,c,r),objectMode:m,encoding:c,lines:l,stripFinalNewline:u,fdNumber:n});Cd({serializedResult:h,fdNumber:n,state:r,verboseInfo:o,encoding:c,stdioItems:p,objectMode:m});let _=s[n]?g:void 0;try{return r.error===void 0&&wd(h,p,i),_}catch(e){return r.error=e,_}},xd=(e,t,n,r)=>{try{return nd(e,t,n,!1)}catch(t){return r.error=t,e}},Sd=({chunks:e,objectMode:t,encoding:n,lines:r,stripFinalNewline:i,fdNumber:a})=>{if(t)return{serializedResult:e};if(n===`buffer`)return{serializedResult:Ze(e)};let o=Ye(e,n);return r[a]?{serializedResult:o,finalResult:gu(o,!i[a],t)}:{serializedResult:o}},Cd=({serializedResult:e,fdNumber:t,state:n,verboseInfo:r,encoding:i,stdioItems:a,objectMode:o})=>{if(!dd({stdioItems:a,encoding:i,verboseInfo:r,fdNumber:t}))return;let s=gu(e,!1,o);try{hd(s,t,r)}catch(e){n.error??(n.error=e)}},wd=(e,t,n)=>{for(let{path:r,append:i}of t.filter(({type:e})=>Vc.has(e))){let t=typeof r==`string`?r:r.toString();i||n.has(t)?fe(r,e):(n.add(t),_e(r,e))}}})),Ed,Dd=t((()=>{j(),mu(),Ed=([,e,t],n)=>{if(n.all)return e===void 0?t:t===void 0?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,fu(t,n,`all`)]:Array.isArray(t)?[fu(e,n,`all`),...t]:A(e)&&A(t)?$e([e,t]):`${e}${t}`}})),Od,kd,Ad,jd,Md,Nd,Pd=t((()=>{R(),Od=async(e,t)=>{let[n,r]=await kd(e);return t.isForcefullyTerminated??(t.isForcefullyTerminated=!1),[n,r]},kd=async e=>{let[t,n]=await Promise.allSettled([T(e,`spawn`),T(e,`exit`)]);return t.status===`rejected`?[]:n.status===`rejected`?Ad(e):n.value},Ad=async e=>{try{return await T(e,`exit`)}catch{return Ad(e)}},jd=async e=>{let[t,n]=await e;if(!Md(t,n)&&Nd(t,n))throw new tr;return[t,n]},Md=(e,t)=>e===void 0&&t===void 0,Nd=(e,t)=>e!==0||t!==null})),Fd,Id,Ld=t((()=>{R(),Is(),Pd(),Fd=({error:e,status:t,signal:n,output:r},{maxBuffer:i})=>{let a=Id(e,t,n);return{resultError:a,exitCode:t,signal:n,timedOut:a?.code===`ETIMEDOUT`,isMaxBuffer:Ns(a,r,i)}},Id=(e,t,n)=>e===void 0?Nd(t,n)?new tr:void 0:e})),Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd=t((()=>{kn(),no(),io(),Zs(),hc(),du(),mu(),ud(),Td(),Is(),Dd(),Ld(),Rd=(e,t,n)=>{let{file:r,commandArguments:i,command:a,escapedCommand:o,startTime:s,verboseInfo:c,options:l,fileDescriptors:u}=zd(e,t,n);return mc(Ud({file:r,commandArguments:i,options:l,command:a,escapedCommand:o,verboseInfo:c,fileDescriptors:u,startTime:s}),c,l)},zd=(e,t,n)=>{let{command:r,escapedCommand:i,startTime:a,verboseInfo:o}=On(e,t,n),{file:s,commandArguments:c,options:l}=$a(e,t,Bd(n));return Vd(l),{file:s,commandArguments:c,command:r,escapedCommand:i,startTime:a,verboseInfo:o,options:l,fileDescriptors:ou(l,o)}},Bd=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,Vd=({ipc:e,ipcInput:t,detached:n,cancelSignal:r})=>{t&&Hd(`ipcInput`),e&&Hd(`ipc: true`),n&&Hd(`detached: true`),r&&Hd(`cancelSignal`)},Hd=e=>{throw TypeError(`The "${e}" option cannot be used with synchronous methods.`)},Ud=({file:e,commandArguments:t,options:n,command:r,escapedCommand:i,verboseInfo:a,fileDescriptors:o,startTime:s})=>{let c=Wd({file:e,commandArguments:t,options:n,command:r,escapedCommand:i,fileDescriptors:o,startTime:s});if(c.failed)return c;let{resultError:l,exitCode:u,signal:d,timedOut:f,isMaxBuffer:p}=Fd(c,n),{output:m,error:h=l}=yd({fileDescriptors:o,syncResult:c,options:n,isMaxBuffer:p,verboseInfo:a});return Kd({error:h,exitCode:u,signal:d,timedOut:f,isMaxBuffer:p,stdio:m.map((e,t)=>fu(e,n,t)),all:fu(Ed(m,n),n,`all`),options:n,command:r,escapedCommand:i,startTime:s})},Wd=({file:e,commandArguments:t,options:n,command:r,escapedCommand:i,fileDescriptors:a,startTime:o})=>{try{return ad(a,n),de(...ro(e,t,Gd(n)))}catch(e){return Ks({error:e,command:r,escapedCommand:i,fileDescriptors:a,options:n,startTime:o,isSync:!0})}},Gd=({encoding:e,maxBuffer:t,...n})=>({...n,encoding:`buffer`,maxBuffer:Fs(t)}),Kd=({error:e,exitCode:t,signal:n,timedOut:r,isMaxBuffer:i,stdio:a,all:o,options:s,command:c,escapedCommand:l,startTime:u})=>e===void 0?Gs({command:c,escapedCommand:l,stdio:a,all:o,ipcOutput:[],options:s,startTime:u}):qs({error:e,command:c,escapedCommand:l,timedOut:r,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:i,isForcefullyTerminated:!1,exitCode:t,signal:n,stdio:a,all:o,ipcOutput:[],options:s,startTime:u,isSync:!0})})),Jd,Yd,Xd,Zd,Qd,$d=t((()=>{pi(),Ui(),Pi(),Jd=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},{reference:i=!0,filter:a}={})=>(Xr({methodName:`getOneMessage`,isSubprocess:n,ipc:r,isConnected:Hi(e)}),Yd({anyProcess:e,channel:t,isSubprocess:n,filter:a,reference:i})),Yd=async({anyProcess:e,channel:t,isSubprocess:n,filter:r,reference:i})=>{Oi(t,i);let a=zi(e,t,n),o=new AbortController;try{return await Promise.race([Xd(a,r,o),Zd(a,n,o),Qd(a,n,o)])}catch(t){throw fi(e),t}finally{o.abort(),Ai(t,i)}},Xd=async(e,t,{signal:n})=>{if(t===void 0){let[t]=await T(e,`message`,{signal:n});return t}for await(let[r]of xe(e,`message`,{signal:n}))if(t(r))return r},Zd=async(e,t,{signal:n})=>{await T(e,`disconnect`,{signal:n}),$r(t)},Qd=async(e,t,{signal:n})=>{let[r]=await T(e,`strict:error`,{signal:n});throw ti(r,t)}})),ef,tf,nf,rf,af,of,sf=t((()=>{pi(),Ui(),Pi(),ef=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},{reference:i=!0}={})=>tf({anyProcess:e,channel:t,isSubprocess:n,ipc:r,shouldAwait:!n,reference:i}),tf=({anyProcess:e,channel:t,isSubprocess:n,ipc:r,shouldAwait:i,reference:a})=>{Xr({methodName:`getEachMessage`,isSubprocess:n,ipc:r,isConnected:Hi(e)}),Oi(t,a);let o=zi(e,t,n),s=new AbortController,c={};return nf(e,o,s),rf({ipcEmitter:o,isSubprocess:n,controller:s,state:c}),af({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:n,shouldAwait:i,controller:s,state:c,reference:a})},nf=async(e,t,n)=>{try{await T(t,`disconnect`,{signal:n.signal}),n.abort()}catch{}},rf=async({ipcEmitter:e,isSubprocess:t,controller:n,state:r})=>{try{let[i]=await T(e,`strict:error`,{signal:n.signal});r.error=ti(i,t),n.abort()}catch{}},af=async function*({anyProcess:e,channel:t,ipcEmitter:n,isSubprocess:r,shouldAwait:i,controller:a,state:o,reference:s}){try{for await(let[e]of xe(n,`message`,{signal:a.signal}))of(o),yield e}catch{of(o)}finally{a.abort(),Ai(t,s),r||fi(e),i&&await e}},of=({error:e})=>{if(e)throw e}})),cf,lf,uf,df=t((()=>{pa(),$d(),sf(),Sa(),cf=(e,{ipc:t})=>{Object.assign(e,uf(e,!1,t))},lf=()=>{let e=S,t=S.channel!==void 0;return{...uf(e,!0,t),getCancelSignal:ha.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:!0,ipc:t})}},uf=(e,t,n)=>({sendMessage:ca.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n}),getOneMessage:Jd.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n}),getEachMessage:ef.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n})})})),ff,pf,mf,hf,gf,_f,vf,yf=t((()=>{au(),Zs(),hc(),ff=({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:i,startTime:a,verboseInfo:o})=>{ru(r);let s=new ce;return pf(s,r),Object.assign(s,{readable:hf,writable:gf,duplex:_f}),{subprocess:s,promise:vf(Ks({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:i,startTime:a,isSync:!1}),o,i)}},pf=(e,t)=>{let n=mf(),r=mf(),i=mf(),a=Array.from({length:t.length-3},mf),o=mf(),s=[n,r,i,...a];Object.assign(e,{stdin:n,stdout:r,stderr:i,all:o,stdio:s})},mf=()=>{let e=new we;return e.end(),e},hf=()=>new E({read(){}}),gf=()=>new Ee({write(){}}),_f=()=>new Ce({read(){},write(){}}),vf=async(e,t,n)=>mc(e,t,n)})),bf,xf,Sf,Cf,wf=t((()=>{id(),au(),Z(),bf=(e,t)=>Gl(Cf,e,t,!1),xf=({type:e,optionName:t})=>{throw TypeError(`The \`${t}\` option cannot be ${Gc[e]}.`)},Sf={fileNumber:xf,generator:td,asyncGenerator:td,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:n}}){let r=t||n;return{stream:Ce.fromWeb(e,{objectMode:r})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Cf={input:{...Sf,fileUrl:({value:e})=>({stream:pe(e)}),filePath:({value:{file:e}})=>({stream:pe(e)}),webStream:({value:e})=>({stream:E.fromWeb(e)}),iterable:({value:e})=>({stream:E.from(e)}),asyncIterable:({value:e})=>({stream:E.from(e)}),string:({value:e})=>({stream:E.from(e)}),uint8Array:({value:e})=>({stream:E.from(Ae.from(e))})},output:{...Sf,fileUrl:({value:e})=>({stream:me(e)}),filePath:({value:{file:e,append:t}})=>({stream:me(e,t?{flags:`a`}:{})}),webStream:({value:e})=>({stream:Ee.fromWeb(e)}),iterable:xf,asyncIterable:xf,string:xf,uint8Array:xf}}}));function Tf(e){if(!Array.isArray(e))throw TypeError(`Expected an array, got \`${typeof e}\`.`);for(let t of e)Lf(t);let t=e.some(({readableObjectMode:e})=>e),n=Ef(e,t),r=new Nf({objectMode:t,writableHighWaterMark:n,readableHighWaterMark:n});for(let t of e)r.add(t);return r}var Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf,zf,Bf,Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf,Xf,Zf=t((()=>{s(),c(),u(),Ef=(e,t)=>{if(e.length===0)return De(t);let n=e.filter(({readableObjectMode:e})=>e===t).map(({readableHighWaterMark:e})=>e);return Math.max(...n)},Df=new WeakMap,Of=new WeakMap,kf=new WeakMap,Af=new WeakMap,jf=new WeakMap,Mf=new WeakMap,Nf=class extends we{constructor(...e){super(...e),p(this,Df,new Set([])),p(this,Of,new Set([])),p(this,kf,new Set([])),p(this,Af,void 0),p(this,jf,Symbol(`unpipe`)),p(this,Mf,new WeakMap)}add(e){if(Lf(e),f(Df,this).has(e))return;f(Df,this).add(e),f(Af,this)??m(Af,this,Pf(this,f(Df,this),f(jf,this)));let t=Rf({passThroughStream:this,stream:e,streams:f(Df,this),ended:f(Of,this),aborted:f(kf,this),onFinished:f(Af,this),unpipeEvent:f(jf,this)});f(Mf,this).set(e,t),e.pipe(this,{end:!1})}async remove(e){if(Lf(e),!f(Df,this).has(e))return!1;let t=f(Mf,this).get(e);return t===void 0?!1:(f(Mf,this).delete(e),e.unpipe(this),await t,!0)}},Pf=async(e,t,n)=>{Jf(e,Yf);let r=new AbortController;try{await Promise.race([Ff(e,r),If(e,t,n,r)])}finally{r.abort(),Jf(e,-Yf)}},Ff=async(e,{signal:t})=>{try{await D(e,{signal:t,cleanup:!0})}catch(t){throw Uf(e,t),t}},If=async(e,t,n,{signal:r})=>{for await(let[i]of xe(e,`unpipe`,{signal:r}))t.has(i)&&i.emit(n)},Lf=e=>{if(typeof e?.pipe!=`function`)throw TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Rf=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,onFinished:a,unpipeEvent:o})=>{Jf(e,Xf);let s=new AbortController;try{await Promise.race([zf(a,t,s),Bf({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,controller:s}),Vf({stream:t,streams:n,ended:r,aborted:i,unpipeEvent:o,controller:s})])}finally{s.abort(),Jf(e,-Xf)}n.size>0&&n.size===r.size+i.size&&(r.size===0&&i.size>0?Gf(e):Hf(e))},zf=async(e,t,{signal:n})=>{try{await e,n.aborted||Gf(t)}catch(e){n.aborted||Uf(t,e)}},Bf=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:i,controller:{signal:a}})=>{try{await D(t,{signal:a,cleanup:!0,readable:!0,writable:!1}),n.has(t)&&r.add(t)}catch(r){if(a.aborted||!n.has(t))return;Wf(r)?i.add(t):Kf(e,r)}},Vf=async({stream:e,streams:t,ended:n,aborted:r,unpipeEvent:i,controller:{signal:a}})=>{if(await T(e,i,{signal:a}),!e.readable)return T(a,`abort`,{signal:a});t.delete(e),n.delete(e),r.delete(e)},Hf=e=>{e.writable&&e.end()},Uf=(e,t)=>{Wf(t)?Gf(e):Kf(e,t)},Wf=e=>e?.code===`ERR_STREAM_PREMATURE_CLOSE`,Gf=e=>{(e.readable||e.writable)&&e.destroy()},Kf=(e,t)=>{e.destroyed||(e.once(`error`,qf),e.destroy(t))},qf=()=>{},Jf=(e,t)=>{let n=e.getMaxListeners();n!==0&&n!==1/0&&e.setMaxListeners(n+t)},Yf=2,Xf=1})),Qf,$f,ep,tp,np,rp=t((()=>{P(),Qf=(e,t)=>{e.pipe(t),$f(e,t),tp(e,t)},$f=async(e,t)=>{if(!(M(e)||M(t))){try{await D(e,{cleanup:!0,readable:!0,writable:!1})}catch{}ep(t)}},ep=e=>{e.writable&&e.end()},tp=async(e,t)=>{if(!(M(e)||M(t))){try{await D(t,{cleanup:!0,readable:!1,writable:!0})}catch{}np(e)}},np=e=>{e.readable&&e.destroy()}})),ip,ap,op,sp,cp,lp,up=t((()=>{Zf(),P(),Di(),Z(),rp(),ip=(e,t,n)=>{let r=new Map;for(let[i,{stdioItems:a,direction:o}]of Object.entries(t)){for(let{stream:t}of a.filter(({type:e})=>X.has(e)))ap(e,t,o,i);for(let{stream:t}of a.filter(({type:e})=>!X.has(e)))sp({subprocess:e,stream:t,direction:o,fdNumber:i,pipeGroups:r,controller:n})}for(let[e,t]of r.entries())Qf(t.length===1?t[0]:Tf(t),e)},ap=(e,t,n,r)=>{n===`output`?Qf(e.stdio[r],t):Qf(t,e.stdio[r]);let i=op[r];i!==void 0&&(e[i]=t),e.stdio[r]=t},op=[`stdin`,`stdout`,`stderr`],sp=({subprocess:e,stream:t,direction:n,fdNumber:r,pipeGroups:i,controller:a})=>{if(t===void 0)return;cp(t,a);let[o,s]=n===`output`?[t,e.stdio[r]]:[e.stdio[r],t],c=i.get(o)??[];i.set(o,[...c,s])},cp=(e,{signal:t})=>{M(e)&&Ei(e,lp,t)},lp=2})),dp,fp=t((()=>{v(),dp=(e,{cleanup:t,detached:n},{signal:r})=>{if(!t||n)return;let i=g(()=>{e.kill()});be(r,()=>{i()})}})),pp,mp,hp,gp,_p,vp=t((()=>{Ve(),Dn(),H(),ze(),pp=({source:e,sourcePromise:t,boundOptions:n,createNested:r},...i)=>{let a=Tn(),{destination:o,destinationStream:s,destinationError:c,from:l,unpipeSignal:u}=mp(n,r,i),{sourceStream:d,sourceError:f}=_p(e,l),{options:p,fileDescriptors:m}=V.get(e);return{sourcePromise:t,sourceStream:d,sourceOptions:p,sourceError:f,destination:o,destinationStream:s,destinationError:c,unpipeSignal:u,fileDescriptors:m,startTime:a}},mp=(e,t,n)=>{try{let{destination:r,pipeOptions:{from:i,to:a,unpipeSignal:o}={}}=hp(e,t,...n);return{destination:r,destinationStream:gi(r,a),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}},hp=(e,t,n,...r)=>{if(Array.isArray(n))return{destination:t(gp,e)(n,...r),pipeOptions:e};if(typeof n==`string`||n instanceof URL||Le(n)){if(Object.keys(e).length>0)throw TypeError(`Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).`);let[i,a,o]=Be(n,...r);return{destination:t(gp)(i,a,o),pipeOptions:o}}if(V.has(n)){if(Object.keys(e).length>0)throw TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:n,pipeOptions:r[0]}}throw TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${n}`)},gp=({options:e})=>({options:{...e,stdin:`pipe`,piped:!0}}),_p=(e,t)=>{try{return{sourceStream:_i(e,t)}}catch(e){return{sourceError:e}}}})),yp,bp,xp,Sp,Cp=t((()=>{Zs(),rp(),yp=({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r,fileDescriptors:i,sourceOptions:a,startTime:o})=>{let s=bp({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r});if(s!==void 0)throw xp({error:s,fileDescriptors:i,sourceOptions:a,startTime:o})},bp=({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r})=>{if(t!==void 0&&r!==void 0)return r;if(r!==void 0)return np(e),r;if(t!==void 0)return ep(n),t},xp=({error:e,fileDescriptors:t,sourceOptions:n,startTime:r})=>Ks({error:e,command:Sp,escapedCommand:Sp,fileDescriptors:t,options:n,startTime:r,isSync:!1}),Sp=`source.pipe(destination)`})),wp,Tp=t((()=>{wp=async e=>{let[{status:t,reason:n,value:r=n},{status:i,reason:a,value:o=a}]=await e;if(o.pipedFrom.includes(r)||o.pipedFrom.push(r),i===`rejected`)throw o;if(t===`rejected`)throw r;return o}})),Ep,Dp,Op,kp,Ap,jp,Mp,Np=t((()=>{Zf(),Di(),rp(),Ep=(e,t,n)=>{let r=Ap.has(t)?Op(e,t):Dp(e,t);return Ei(e,jp,n.signal),Ei(t,Mp,n.signal),kp(t),r},Dp=(e,t)=>{let n=Tf([e]);return Qf(n,t),Ap.set(t,n),n},Op=(e,t)=>{let n=Ap.get(t);return n.add(e),n},kp=async e=>{try{await D(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Ap.delete(e)},Ap=new WeakMap,jp=2,Mp=1})),Pp,Fp,Ip=t((()=>{Cp(),Pp=(e,t)=>e===void 0?[]:[Fp(e,t)],Fp=async(e,{sourceStream:t,mergedStream:n,fileDescriptors:r,sourceOptions:i,startTime:a})=>{throw await b(e,t),await n.remove(t),xp({error:Error("Pipe canceled by `unpipeSignal` option."),fileDescriptors:r,sourceOptions:i,startTime:a})}})),Lp,Rp,zp,Bp=t((()=>{k(),vp(),Cp(),Tp(),Np(),Ip(),Lp=(e,...t)=>{if(O(t[0]))return Lp.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});let{destination:n,...r}=pp(e,...t),i=Rp({...r,destination:n});return i.pipe=Lp.bind(void 0,{...e,source:n,sourcePromise:i,boundOptions:{}}),i},Rp=async({sourcePromise:e,sourceStream:t,sourceOptions:n,sourceError:r,destination:i,destinationStream:a,destinationError:o,unpipeSignal:s,fileDescriptors:c,startTime:l})=>{let u=zp(e,i);yp({sourceStream:t,sourceError:r,destinationStream:a,destinationError:o,fileDescriptors:c,sourceOptions:n,startTime:l});let d=new AbortController;try{let e=Ep(t,a,d);return await Promise.race([wp(u),...Pp(s,{sourceStream:t,mergedStream:e,sourceOptions:n,fileDescriptors:c,startTime:l})])}finally{d.abort()}},zp=(e,t)=>Promise.allSettled([e,t])})),Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp=t((()=>{Bu(),Ou(),ed(),Vp=({subprocessStdout:e,subprocess:t,binary:n,shouldEncode:r,encoding:i,preserveNewlines:a})=>{let o=new AbortController;return Hp(t,o),Gp({stream:e,controller:o,binary:n,shouldEncode:!e.readableObjectMode&&r,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:a})},Hp=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Up=({stream:e,onStreamEnd:t,lines:n,encoding:r,stripFinalNewline:i,allMixed:a})=>{let o=new AbortController;Wp(t,o,e);let s=e.readableObjectMode&&!a;return Gp({stream:e,controller:o,binary:r===`buffer`,shouldEncode:!s,encoding:r,shouldSplit:!s&&n,preserveNewlines:!i})},Wp=async(e,t,n)=>{try{await e}catch{n.destroy()}finally{t.abort()}},Gp=({stream:e,controller:t,binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o})=>Jp({onStdoutChunk:xe(e,`data`,{signal:t.signal,highWaterMark:qp,highWatermark:qp}),controller:t,binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o}),Kp=De(!0),qp=Kp,Jp=async function*({onStdoutChunk:e,controller:t,binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o}){let s=Yp({binary:n,shouldEncode:r,encoding:i,shouldSplit:a,preserveNewlines:o});try{for await(let[t]of e)yield*Xu(t,s,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*Zu(s)}},Yp=({binary:e,shouldEncode:t,encoding:n,shouldSplit:r,preserveNewlines:i})=>[Iu(e,n,!t),hu(e,i,!r,{})].filter(Boolean)})),Zp,Qp,$p,em,tm,nm,rm=t((()=>{Ds(),j(),vd(),Xp(),Is(),mu(),Zp=async({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,buffer:i,maxBuffer:a,lines:o,allMixed:s,stripFinalNewline:c,verboseInfo:l,streamInfo:u})=>{let d=Qp({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,allMixed:s,verboseInfo:l,streamInfo:u});if(!i){await Promise.all([$p(e),d]);return}let f=Up({stream:e,onStreamEnd:t,lines:o,encoding:r,stripFinalNewline:pu(c,n),allMixed:s}),[p]=await Promise.all([em({stream:e,iterable:f,fdNumber:n,encoding:r,maxBuffer:a,lines:o}),d]);return p},Qp=async({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,allMixed:i,verboseInfo:a,streamInfo:{fileDescriptors:o}})=>{dd({stdioItems:o[n]?.stdioItems,encoding:r,verboseInfo:a,fdNumber:n})&&await md(Up({stream:e,onStreamEnd:t,lines:!0,encoding:r,stripFinalNewline:!0,allMixed:i}),e,n,a)},$p=async e=>{await Me(),e.readableFlowing===null&&e.resume()},em=async({stream:e,stream:{readableObjectMode:t},iterable:n,fdNumber:r,encoding:i,maxBuffer:a,lines:o})=>{try{return t||o?await Xo(n,{maxBuffer:a}):i===`buffer`?new Uint8Array(await ns(n,{maxBuffer:a})):await vs(n,{maxBuffer:a})}catch(n){return nm(Os({error:n,stream:e,readableObjectMode:t,lines:o,encoding:i,fdNumber:r}))}},tm=async e=>{try{return await e}catch(e){return nm(e)}},nm=({bufferedData:e})=>Ue(e)?new Uint8Array(e):e})),im,am,om,sm,cm,lm,um,dm,fm,pm=t((()=>{im=async(e,t,n,{isSameDirection:r,stopOnExit:i=!1}={})=>{let a=am(e,n),o=new AbortController;try{await Promise.race([...i?[n.exitPromise]:[],D(e,{cleanup:!0,signal:o.signal})])}catch(e){a.stdinCleanedUp||cm(e,t,n,r)}finally{o.abort()}},am=(e,{originalStreams:[t],subprocess:n})=>{let r={stdinCleanedUp:!1};return e===t&&om(e,n,r),r},om=(e,t,n)=>{let{_destroy:r}=e;e._destroy=(...i)=>{sm(t,n),r.call(e,...i)}},sm=({exitCode:e,signalCode:t},n)=>{(e!==null||t!==null)&&(n.stdinCleanedUp=!0)},cm=(e,t,n,r)=>{if(!lm(e,t,n,r))throw e},lm=(e,t,n,r=!0)=>n.propagating?fm(e)||dm(e):(n.propagating=!0,um(n,t)===r?fm(e):dm(e)),um=({fileDescriptors:e},t)=>t!==`all`&&e[t].direction===`input`,dm=e=>e?.code===`ERR_STREAM_PREMATURE_CLOSE`,fm=e=>e?.code===`EPIPE`})),mm,hm,gm=t((()=>{rm(),pm(),mm=({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:a,verboseInfo:o,streamInfo:s})=>e.stdio.map((e,c)=>hm({stream:e,fdNumber:c,encoding:t,buffer:n[c],maxBuffer:r[c],lines:i[c],allMixed:!1,stripFinalNewline:a,verboseInfo:o,streamInfo:s})),hm=async({stream:e,fdNumber:t,encoding:n,buffer:r,maxBuffer:i,lines:a,allMixed:o,stripFinalNewline:s,verboseInfo:c,streamInfo:l})=>{if(!e)return;let u=im(e,t,l);if(um(l,t)){await u;return}let[d]=await Promise.all([Zp({stream:e,onStreamEnd:u,fdNumber:t,encoding:n,buffer:r,maxBuffer:i,lines:a,allMixed:o,stripFinalNewline:s,verboseInfo:c,streamInfo:l}),u]);return d}})),_m,vm,ym,bm,xm=t((()=>{Zf(),gm(),_m=({stdout:e,stderr:t},{all:n})=>n&&(e||t)?Tf([e,t].filter(Boolean)):void 0,vm=({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:a,verboseInfo:o,streamInfo:s})=>hm({...ym(e,n),fdNumber:`all`,encoding:t,maxBuffer:r[1]+r[2],lines:i[1]||i[2],allMixed:bm(e),stripFinalNewline:a,verboseInfo:o,streamInfo:s}),ym=({stdout:e,stderr:t,all:n},[,r,i])=>{let a=r||i;return a?r?i?{stream:n,buffer:a}:{stream:e,buffer:a}:{stream:t,buffer:a}:{stream:n,buffer:a}},bm=({all:e,stdout:t,stderr:n})=>e&&t&&n&&t.readableObjectMode!==n.readableObjectMode})),Sm,Cm,wm=t((()=>{_n(),I(),Sm=e=>Ot(e,`ipc`),Cm=(e,t)=>{dn({type:`ipc`,verboseMessage:hn(e),fdNumber:`ipc`,verboseInfo:t})}})),Tm,Em,Dm=t((()=>{Is(),wm(),F(),sf(),Tm=async({subprocess:e,buffer:t,maxBuffer:n,ipc:r,ipcOutput:i,verboseInfo:a})=>{if(!r)return i;let o=Sm(a),s=Et(t,`ipc`),c=Et(n,`ipc`);for await(let t of tf({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:r,shouldAwait:!1,reference:!0}))s&&(As(e,i,c),i.push(t)),o&&Cm(t,a);return i},Em=async(e,t)=>(await Promise.allSettled([e]),t)})),Om,km,Am,jm,Mm=t((()=>{_o(),ja(),Yr(),Da(),P(),Z(),rm(),Dm(),Ba(),xm(),gm(),Pd(),pm(),Om=async({subprocess:e,options:{encoding:t,buffer:n,maxBuffer:r,lines:i,timeoutDuration:a,cancelSignal:o,gracefulCancel:s,forceKillAfterDelay:c,stripFinalNewline:l,ipc:u,ipcInput:d},context:f,verboseInfo:p,fileDescriptors:m,originalStreams:h,onInternalError:g,controller:_})=>{let v=Od(e,f),y={originalStreams:h,fileDescriptors:m,subprocess:e,exitPromise:v,propagating:!1},b=mm({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:y}),x=vm({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:i,stripFinalNewline:l,verboseInfo:p,streamInfo:y}),ee=[],te=Tm({subprocess:e,buffer:n,maxBuffer:r,ipc:u,ipcOutput:ee,verboseInfo:p}),ne=km(h,e,y),re=Am(m,y);try{return await Promise.race([Promise.all([{},jd(v),Promise.all(b),x,te,za(e,d),...ne,...re]),g,jm(e,_),...ka(e,a,f,_),...qr({subprocess:e,cancelSignal:o,gracefulCancel:s,context:f,controller:_}),...wa({subprocess:e,cancelSignal:o,gracefulCancel:s,forceKillAfterDelay:c,context:f,controller:_})])}catch(e){return f.terminationReason??(f.terminationReason=`other`),Promise.all([{error:e},v,Promise.all(b.map(e=>tm(e))),tm(x),Em(te,ee),Promise.allSettled(ne),Promise.allSettled(re)])}},km=(e,t,n)=>e.map((e,r)=>e===t.stdio[r]?void 0:im(e,r,n)),Am=(e,t)=>e.flatMap(({stdioItems:e},n)=>e.filter(({value:e,stream:t=e})=>W(t,{checkOpen:!1})&&!M(t)).map(({type:e,value:r,stream:i=r})=>im(i,n,t,{isSameDirection:X.has(e),stopOnExit:e===`native`}))),jm=async(e,{signal:t})=>{let[n]=await T(e,`error`,{signal:t});throw n}})),Nm,Pm,Fm,Im=t((()=>{hi(),Nm=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap}),Pm=(e,t,n)=>{let r=e[n];r.has(t)||r.set(t,[]);let i=r.get(t),a=mi();return i.push(a),{resolve:a.resolve.bind(a),promises:i}},Fm=async({resolve:e,promises:t},n)=>{e();let[r]=await Promise.race([Promise.allSettled([!0,n]),Promise.all([!1,...t])]);return!r}})),Lm,Rm,zm,Bm,Vm,Hm,Um=t((()=>{pm(),Lm=async e=>{if(e!==void 0)try{await zm(e)}catch{}},Rm=async e=>{if(e!==void 0)try{await Bm(e)}catch{}},zm=async e=>{await D(e,{cleanup:!0,readable:!1,writable:!0})},Bm=async e=>{await D(e,{cleanup:!0,readable:!0,writable:!1})},Vm=async(e,t)=>{if(await e,t)throw t},Hm=(e,t,n)=>{n&&!dm(n)?e.destroy(n):t&&e.destroy()}})),Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm=t((()=>{qa(),H(),Xp(),hi(),Im(),Um(),Wm=({subprocess:e,concurrentStreams:t,encoding:n},{from:r,binary:i=!0,preserveNewlines:a=!0}={})=>{let o=i||U.has(n),{subprocessStdout:s,waitReadableDestroy:c}=Gm(e,r,t),{readableEncoding:l,readableObjectMode:u,readableHighWaterMark:d}=Km(s,o),{read:f,onStdoutDataDone:p}=qm({subprocessStdout:s,subprocess:e,binary:o,encoding:n,preserveNewlines:a}),m=new E({read:f,destroy:x(Xm.bind(void 0,{subprocessStdout:s,subprocess:e,waitReadableDestroy:c})),highWaterMark:d,objectMode:u,encoding:l});return Ym({subprocessStdout:s,onStdoutDataDone:p,readable:m,subprocess:e}),m},Gm=(e,t,n)=>{let r=_i(e,t);return{subprocessStdout:r,waitReadableDestroy:Pm(n,r,`readableDestroy`)}},Km=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:n},r)=>r?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:n}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Kp},qm=({subprocessStdout:e,subprocess:t,binary:n,encoding:r,preserveNewlines:i})=>{let a=mi(),o=Vp({subprocessStdout:e,subprocess:t,binary:n,shouldEncode:!n,encoding:r,preserveNewlines:i});return{read(){Jm(this,o,a)},onStdoutDataDone:a}},Jm=async(e,t,n)=>{try{let{value:r,done:i}=await t.next();i?n.resolve():e.push(r)}catch{}},Ym=async({subprocessStdout:e,onStdoutDataDone:t,readable:n,subprocess:r,subprocessStdin:i})=>{try{await Bm(e),await r,await Lm(i),await t,n.readable&&n.push(null)}catch(e){await Lm(i),Zm(n,e)}},Xm=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:n},r)=>{await Fm(n,t)&&(Zm(e,r),await Vm(t,r))},Zm=(e,t)=>{Hm(e,e.readable,t)}})),$m,eh,th,nh,rh,ih,ah,oh,sh=t((()=>{H(),Im(),Um(),$m=({subprocess:e,concurrentStreams:t},{to:n}={})=>{let{subprocessStdin:r,waitWritableFinal:i,waitWritableDestroy:a}=eh(e,n,t),o=new Ee({...th(r,e,i),destroy:x(ah.bind(void 0,{subprocessStdin:r,subprocess:e,waitWritableFinal:i,waitWritableDestroy:a})),highWaterMark:r.writableHighWaterMark,objectMode:r.writableObjectMode});return ih(r,o),o},eh=(e,t,n)=>{let r=gi(e,t);return{subprocessStdin:r,waitWritableFinal:Pm(n,r,`writableFinal`),waitWritableDestroy:Pm(n,r,`writableDestroy`)}},th=(e,t,n)=>({write:nh.bind(void 0,e),final:x(rh.bind(void 0,e,t,n))}),nh=(e,t,n,r)=>{e.write(t,n)?r():e.once(`drain`,r)},rh=async(e,t,n)=>{await Fm(n,t)&&(e.writable&&e.end(),await t)},ih=async(e,t,n)=>{try{await zm(e),t.writable&&t.end()}catch(e){await Rm(n),oh(t,e)}},ah=async({subprocessStdin:e,subprocess:t,waitWritableFinal:n,waitWritableDestroy:r},i)=>{await Fm(n,t),await Fm(r,t)&&(oh(e,i),await Vm(t,i))},oh=(e,t)=>{Hm(e,e.writable,t)}})),ch,lh,uh=t((()=>{qa(),Qm(),sh(),ch=({subprocess:e,concurrentStreams:t,encoding:n},{from:r,to:i,binary:a=!0,preserveNewlines:o=!0}={})=>{let s=a||U.has(n),{subprocessStdout:c,waitReadableDestroy:l}=Gm(e,r,t),{subprocessStdin:u,waitWritableFinal:d,waitWritableDestroy:f}=eh(e,i,t),{readableEncoding:p,readableObjectMode:m,readableHighWaterMark:h}=Km(c,s),{read:g,onStdoutDataDone:_}=qm({subprocessStdout:c,subprocess:e,binary:s,encoding:n,preserveNewlines:o}),v=new Ce({read:g,...th(u,e,d),destroy:x(lh.bind(void 0,{subprocessStdout:c,subprocessStdin:u,subprocess:e,waitReadableDestroy:l,waitWritableFinal:d,waitWritableDestroy:f})),readableHighWaterMark:h,writableHighWaterMark:u.writableHighWaterMark,readableObjectMode:m,writableObjectMode:u.writableObjectMode,encoding:p});return Ym({subprocessStdout:c,onStdoutDataDone:_,readable:v,subprocess:e,subprocessStdin:u}),ih(u,v,c),v},lh=async({subprocessStdout:e,subprocessStdin:t,subprocess:n,waitReadableDestroy:r,waitWritableFinal:i,waitWritableDestroy:a},o)=>{await Promise.all([Xm({subprocessStdout:e,subprocess:n,waitReadableDestroy:r},o),ah({subprocessStdin:t,subprocess:n,waitWritableFinal:i,waitWritableDestroy:a},o)])}})),dh,fh,ph=t((()=>{qa(),H(),Xp(),dh=(e,t,{from:n,binary:r=!1,preserveNewlines:i=!1}={})=>{let a=r||U.has(t),o=_i(e,n);return fh(Vp({subprocessStdout:o,subprocess:e,binary:a,shouldEncode:!0,encoding:t,preserveNewlines:i}),o,e)},fh=async function*(e,t,n){try{yield*e}finally{t.readable&&t.destroy(),await n}}})),mh,hh=t((()=>{Im(),Qm(),sh(),uh(),ph(),mh=(e,{encoding:t})=>{let n=Nm();e.readable=Wm.bind(void 0,{subprocess:e,concurrentStreams:n,encoding:t}),e.writable=$m.bind(void 0,{subprocess:e,concurrentStreams:n}),e.duplex=ch.bind(void 0,{subprocess:e,concurrentStreams:n,encoding:t}),e.iterable=dh.bind(void 0,e,t),e[Symbol.asyncIterator]=dh.bind(void 0,e,t,{})}})),gh,_h,vh,yh=t((()=>{gh=(e,t)=>{for(let[n,r]of vh){let i=r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:i})}},_h=(async()=>{})().constructor.prototype,vh=[`then`,`catch`,`finally`].map(e=>[e,Reflect.getOwnPropertyDescriptor(_h,e)])})),bh,xh,Sh,Ch,wh,Th,Eh=t((()=>{Ds(),kn(),no(),H(),io(),df(),Zs(),hc(),yf(),wf(),mu(),up(),Ur(),fp(),Bp(),xm(),Mm(),hh(),hi(),yh(),bh=(e,t,n,r)=>{let{file:i,commandArguments:a,command:o,escapedCommand:s,startTime:c,verboseInfo:l,options:u,fileDescriptors:d}=xh(e,t,n),{subprocess:f,promise:p}=Ch({file:i,commandArguments:a,options:u,startTime:c,verboseInfo:l,command:o,escapedCommand:s,fileDescriptors:d});return f.pipe=Lp.bind(void 0,{source:f,sourcePromise:p,boundOptions:{},createNested:r}),gh(f,p),V.set(f,{options:u,fileDescriptors:d}),f},xh=(e,t,n)=>{let{command:r,escapedCommand:i,startTime:a,verboseInfo:o}=On(e,t,n),{file:s,commandArguments:c,options:l}=$a(e,t,n),u=Sh(l);return{file:s,commandArguments:c,command:r,escapedCommand:i,startTime:a,verboseInfo:o,options:u,fileDescriptors:bf(u,o)}},Sh=({timeout:e,signal:t,...n})=>{if(t!==void 0)throw TypeError(`The "signal" option has been renamed to "cancelSignal" instead.`);return{...n,timeoutDuration:e}},Ch=({file:e,commandArguments:t,options:n,startTime:r,verboseInfo:i,command:a,escapedCommand:o,fileDescriptors:s})=>{let c;try{c=ue(...ro(e,t,n))}catch(e){return ff({error:e,command:a,escapedCommand:o,fileDescriptors:s,options:n,startTime:r,verboseInfo:i})}let l=new AbortController;Se(1/0,l.signal);let u=[...c.stdio];ip(c,s,l),dp(c,n,l);let d={},f=mi();c.kill=Rr.bind(void 0,{kill:c.kill.bind(c),options:n,onInternalError:f,context:d,controller:l}),c.all=_m(c,n),mh(c,n),cf(c,n);let p=wh({subprocess:c,options:n,startTime:r,verboseInfo:i,fileDescriptors:s,originalStreams:u,command:a,escapedCommand:o,context:d,onInternalError:f,controller:l});return{subprocess:c,promise:p}},wh=async({subprocess:e,options:t,startTime:n,verboseInfo:r,fileDescriptors:i,originalStreams:a,command:o,escapedCommand:s,context:c,onInternalError:l,controller:u})=>{let[d,[f,p],m,h,g]=await Om({subprocess:e,options:t,context:c,verboseInfo:r,fileDescriptors:i,originalStreams:a,onInternalError:l,controller:u});return u.abort(),l.resolve(),mc(Th({errorInfo:d,exitCode:f,signal:p,stdio:m.map((e,n)=>fu(e,t,n)),all:fu(h,t,`all`),ipcOutput:g,context:c,options:t,command:o,escapedCommand:s,startTime:n}),r,t)},Th=({errorInfo:e,exitCode:t,signal:n,stdio:r,all:i,ipcOutput:a,context:o,options:s,command:c,escapedCommand:l,startTime:u})=>`error`in e?qs({error:e.error,command:c,escapedCommand:l,timedOut:o.terminationReason===`timeout`,isCanceled:o.terminationReason===`cancel`||o.terminationReason===`gracefulCancel`,isGracefullyCanceled:o.terminationReason===`gracefulCancel`,isMaxBuffer:e.error instanceof Uo,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:n,stdio:r,all:i,ipcOutput:a,options:s,startTime:u,isSync:!1}):Gs({command:c,escapedCommand:l,stdio:r,all:i,ipcOutput:a,options:s,startTime:u})})),Dh,Oh,kh,Ah=t((()=>{k(),F(),Dh=(e,t)=>{let n=Object.fromEntries(Object.entries(t).map(([t,n])=>[t,Oh(t,e[t],n)]));return{...e,...n}},Oh=(e,t,n)=>kh.has(e)&&O(t)&&O(n)?{...t,...n}:n,kh=new Set([`env`,...Tt])})),$,jh,Mh,Nh=t((()=>{k(),Ve(),ut(),qd(),Eh(),Ah(),$=(e,t,n,r)=>{let i=(e,t,r)=>$(e,t,n,r),a=(...a)=>jh({mapArguments:e,deepOptions:n,boundOptions:t,setBoundExeca:r,createNested:i},...a);return r!==void 0&&r(a,i,t),a},jh=({mapArguments:e,deepOptions:t={},boundOptions:n={},setBoundExeca:r,createNested:i},a,...o)=>{if(O(a))return i(e,Dh(n,a),r);let{file:s,commandArguments:c,options:l,isSync:u}=Mh({mapArguments:e,firstArgument:a,nextArguments:o,deepOptions:t,boundOptions:n});return u?Rd(s,c,l):bh(s,c,l,i)},Mh=({mapArguments:e,firstArgument:t,nextArguments:n,deepOptions:r,boundOptions:i})=>{let[a,o,s]=Be(...tt(t)?nt(t,n):[t,...n]),c=Dh(Dh(r,i),s),{file:l=a,commandArguments:u=o,options:d=c,isSync:f=!1}=e({file:a,commandArguments:o,options:c});return{file:l,commandArguments:u,options:d,isSync:f}}})),Ph,Fh,Ih,Lh,Rh,zh=t((()=>{Ph=({file:e,commandArguments:t})=>Ih(e,t),Fh=({file:e,commandArguments:t})=>({...Ih(e,t),isSync:!0}),Ih=(e,t)=>{if(t.length>0)throw TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);let[n,...r]=Lh(e);return{file:n,commandArguments:r}},Lh=e=>{if(typeof e!=`string`)throw TypeError(`The command must be a string: ${String(e)}.`);let t=e.trim();if(t===``)return[];let n=[];for(let e of t.split(Rh)){let t=n.at(-1);t&&t.endsWith(`\\`)?n[n.length-1]=`${t.slice(0,-1)} ${e}`:n.push(e)}return n},Rh=/ +/g})),Bh,Vh,Hh,Uh,Wh,Gh,Kh=t((()=>{Bh=(e,t,n)=>{e.sync=t(Hh,n),e.s=e.sync},Vh=({options:e})=>Uh(e),Hh=({options:e})=>({...Uh(e),isSync:!0}),Uh=e=>({options:{...Wh(e),...e}}),Wh=({input:e,inputFile:t,stdio:n})=>e===void 0&&t===void 0&&n===void 0?{stdin:`inherit`}:{},Gh={preferLocal:!0}})),qh,Jh,Yh,Xh,Zh,Qh,$h=t((()=>{Nh(),zh(),Pa(),Kh(),df(),R(),qh=$(()=>({})),Jh=$(()=>({isSync:!0})),$(Ph),$(Fh),$(Ma),$(Vh,{},Gh,Bh),{sendMessage:Yh,getOneMessage:Xh,getEachMessage:Zh,getCancelSignal:Qh}=lf()}));export{Hn as i,Jh as n,$h as r,qh as t};