@makaio/framework 1.0.0-dev-1781034508425 → 1.0.0-dev-1781117225170

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 (359) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/acp-client/index.d.mts +4 -4
  3. package/dist/adapters/config/index.d.mts +1 -1
  4. package/dist/adapters/config/index.mjs +1 -1
  5. package/dist/adapters/index.d.mts +23 -22
  6. package/dist/adapters/index.mjs +1 -1
  7. package/dist/adapters/node.d.mts +1 -1
  8. package/dist/adapters/node.mjs +1 -1
  9. package/dist/ajv-0JG5NFEd.mjs +8 -0
  10. package/dist/await-trigger-CHuOd5co.mjs +1 -0
  11. package/dist/bus/index.d.mts +2 -2
  12. package/dist/{clients-namespace-DOr4mmmr.d.mts → clients-namespace-E97p_GKF.d.mts} +7 -7
  13. package/dist/contracts/adapter/index.d.mts +2 -2
  14. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  15. package/dist/contracts/artifact/index.d.mts +1 -1
  16. package/dist/contracts/client/index.d.mts +2 -2
  17. package/dist/contracts/common/index.d.mts +1 -1
  18. package/dist/contracts/config/index.d.mts +1 -1
  19. package/dist/contracts/extension/index.d.mts +3 -3
  20. package/dist/contracts/facet/index.d.mts +1 -1
  21. package/dist/contracts/harness/index.d.mts +1 -1
  22. package/dist/contracts/host/index.d.mts +1 -1
  23. package/dist/contracts/index.d.mts +217 -217
  24. package/dist/contracts/materialization/index.d.mts +3 -3
  25. package/dist/contracts/model-registry/index.d.mts +1 -1
  26. package/dist/contracts/native-session-supervisor/index.d.mts +1 -1
  27. package/dist/contracts/platform/index.d.mts +1 -1
  28. package/dist/contracts/provider/index.d.mts +2 -2
  29. package/dist/contracts/session/index.d.mts +2 -2
  30. package/dist/contracts/shared/index.d.mts +1 -1
  31. package/dist/contracts/skill/index.d.mts +1 -1
  32. package/dist/contracts/telemetry/index.d.mts +1 -1
  33. package/dist/contracts/timeout/index.d.mts +1 -1
  34. package/dist/contracts/variant/index.d.mts +1 -1
  35. package/dist/{cursor-storage-BOsCO4oj.mjs → cursor-storage-YikwAZR5.mjs} +1 -1
  36. package/dist/{definition-CWCNiH-q.d.mts → definition-CYzWS2eR.d.mts} +1 -1
  37. package/dist/{definition-BidQ9_x8.d.mts → definition-Cp-5xJp_.d.mts} +1 -1
  38. package/dist/{detached-extension-handle-Bo5Q06_g.mjs → detached-extension-handle-oXbjv1tA.mjs} +1 -1
  39. package/dist/drizzle/0000_charming_prowler.sql +443 -0
  40. package/dist/drizzle/0001_known_stephen_strange.sql +25 -0
  41. package/dist/drizzle/0002_woozy_gladiator.sql +1 -0
  42. package/dist/drizzle/0003_overjoyed_adam_destine.sql +1 -0
  43. package/dist/drizzle/0004_solid_goliath.sql +1 -0
  44. package/dist/drizzle/0005_round_calypso.sql +51 -0
  45. package/dist/drizzle/0006_free_tiger_shark.sql +4 -0
  46. package/dist/drizzle/0007_sparkling_terror.sql +2 -0
  47. package/dist/drizzle/0008_petite_deathstrike.sql +1 -0
  48. package/dist/drizzle/0009_lethal_malcolm_colcord.sql +6 -0
  49. package/dist/drizzle/0010_grey_chronomancer.sql +1 -0
  50. package/dist/drizzle/0011_solid_nomad.sql +1 -0
  51. package/dist/drizzle/meta/0000_snapshot.json +2813 -0
  52. package/dist/drizzle/meta/0001_snapshot.json +2820 -0
  53. package/dist/drizzle/meta/0002_snapshot.json +2827 -0
  54. package/dist/drizzle/meta/0003_snapshot.json +2834 -0
  55. package/dist/drizzle/meta/0004_snapshot.json +2842 -0
  56. package/dist/drizzle/meta/0005_snapshot.json +2849 -0
  57. package/dist/drizzle/meta/0006_snapshot.json +2865 -0
  58. package/dist/drizzle/meta/0007_snapshot.json +2879 -0
  59. package/dist/drizzle/meta/0008_snapshot.json +2886 -0
  60. package/dist/drizzle/meta/0009_snapshot.json +2901 -0
  61. package/dist/drizzle/meta/0010_snapshot.json +2908 -0
  62. package/dist/drizzle/meta/0011_snapshot.json +2915 -0
  63. package/dist/drizzle/meta/_journal.json +90 -0
  64. package/dist/esm-CglYG5aA.mjs +1 -0
  65. package/dist/expression/index.d.mts +11 -2
  66. package/dist/expression/index.mjs +4 -4
  67. package/dist/extension--5Q190u_.mjs +1 -0
  68. package/dist/{filesystem-service-B9RbT-n-.mjs → filesystem-service-CBJT7A5w.mjs} +1 -1
  69. package/dist/git/index.mjs +14 -14
  70. package/dist/{globby-DPHEhf86.mjs → globby-C0lgTOUl.mjs} +1 -1
  71. package/dist/{handlers-Bl2Af8zt.mjs → handlers-Bev7-xjL.mjs} +1 -1
  72. package/dist/{index-LbBWaNnT.d.mts → index-BELri1Hy.d.mts} +122 -122
  73. package/dist/{index-DuIPU8sG.d.mts → index-BY-fz0Jy.d.mts} +174 -174
  74. package/dist/{index-o9__SHM7.d.mts → index-Bw8SkcWG.d.mts} +1 -1
  75. package/dist/{index-WZX3cU1L.d.mts → index-C1uZLARQ.d.mts} +4 -4
  76. package/dist/{index-Bs5H4PFm.d.mts → index-CXfWW8cP.d.mts} +112 -112
  77. package/dist/{index-B0bwOIpr.d.mts → index-C_jIVT40.d.mts} +2 -2
  78. package/dist/{index-Brlbx33t.d.mts → index-ClgVA8Rz.d.mts} +22 -22
  79. package/dist/{index-Bo6dMW5B.d.mts → index-CmGvjpUG.d.mts} +6 -6
  80. package/dist/{index-B-_F8N_E.d.mts → index-DUPZKsd3.d.mts} +12 -12
  81. package/dist/{index-Dnd_-839.d.mts → index-DUhXk_q6.d.mts} +4 -4
  82. package/dist/{index-2mvEGCcP.d.mts → index-DfUBcVtG.d.mts} +2 -2
  83. package/dist/{index-j7hM0JEz.d.mts → index-Dsu1tPHm.d.mts} +16 -16
  84. package/dist/{index-ayGCeZ8t.d.mts → index-SFkbbDxs.d.mts} +24 -24
  85. package/dist/{index-BXip2Nlo.d.mts → index-hWzUQtDn.d.mts} +17 -17
  86. package/dist/{index-BM7lYmmQ.d.mts → index-i7o6FtS0.d.mts} +33 -7
  87. package/dist/{index-BF8DYsOC.d.mts → index-kLBWooVu.d.mts} +30 -30
  88. package/dist/{index-B5lijQs7.d.mts → index-t9Vt4Jbb.d.mts} +17 -93
  89. package/dist/{index-BLmI8xDN.d.mts → index-uQl_1wQO.d.mts} +7 -7
  90. package/dist/{index-k7SK-A0P.d.mts → index-v2kRZnfw2.d.mts} +3 -3
  91. package/dist/kernel/cli/index.d.mts +2 -95
  92. package/dist/kernel/cli/index.mjs +1 -1
  93. package/dist/kernel/cli/register.d.mts +2 -0
  94. package/dist/kernel/cli/register.mjs +1 -0
  95. package/dist/kernel/extension/index.d.mts +1 -1
  96. package/dist/kernel/extension/index.mjs +1 -1
  97. package/dist/kernel/index.d.mts +5 -5
  98. package/dist/kernel/index.mjs +1 -1
  99. package/dist/kernel/namespace/index.d.mts +1 -1
  100. package/dist/kernel/observability/index.d.mts +1 -1
  101. package/dist/kernel/providers/index.d.mts +1 -1
  102. package/dist/kernel/window/index.d.mts +1 -1
  103. package/dist/{lib-DtXofYKC.mjs → lib-CaOdTS9F.mjs} +1 -1
  104. package/dist/lib-IkUYa2Qs.mjs +2 -0
  105. package/dist/{lib-X80cqNZ5.mjs → lib-zuQKc8ym.mjs} +19 -22
  106. package/dist/{load-extensions-CESuhxma.mjs → load-extensions-CwxilDj1.mjs} +1 -1
  107. package/dist/{load-extensions-t2rtaz1C.d.mts → load-extensions-DE8qDIqi.d.mts} +1 -1
  108. package/dist/mcp-http-server/index.mjs +4 -11
  109. package/dist/{namespace-BsmSZbub.d.mts → namespace-13uMtVGj.d.mts} +6 -6
  110. package/dist/namespace-BXqetkc3.mjs +1 -0
  111. package/dist/{namespace-YsOUkmgE.d.mts → namespace-BaJJxBsI.d.mts} +6 -6
  112. package/dist/{namespace-SD7Y-_iY.d.mts → namespace-CZPu_jvy.d.mts} +75 -75
  113. package/dist/{namespace-DldKDPMI.d.mts → namespace-Da_dHfdm.d.mts} +10 -10
  114. package/dist/{namespace-sd3QrSzo.d.mts → namespace-DfYutvMT.d.mts} +22 -22
  115. package/dist/{namespace-l8A5zTPU2.d.mts → namespace-DnZ4rS6T2.d.mts} +6 -6
  116. package/dist/namespace-TfZGCy7N.d.mts +96 -0
  117. package/dist/{namespace-B0l_lsLW.d.mts → namespace-ffepZB8Y.d.mts} +8 -8
  118. package/dist/{namespace-eOeUjGPB.mjs → namespace-h0HIuqx0.mjs} +1 -1
  119. package/dist/{namespace-BFM1kQbS.d.mts → namespace-uGw5nK6d.d.mts} +2 -2
  120. package/dist/node/bus-server/index.d.mts +1 -1
  121. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  122. package/dist/{orchestrator-shared-DaPATFz1.mjs → orchestrator-shared-FnWrPS09.mjs} +1 -1
  123. package/dist/{out-Rp-RSvc2.mjs → out-CiFds_ap.mjs} +1 -1
  124. package/dist/package-B2HkKyRz.d.mts +372 -0
  125. package/dist/package-C9wOiMK9.mjs +1 -0
  126. package/dist/package.json +5 -0
  127. package/dist/primitive-runtime-1Z3JbRUj.mjs +1 -0
  128. package/dist/{provider-context-ClL5nCQg.mjs → provider-context-lfG0BpqX.mjs} +1 -1
  129. package/dist/rules/index.d.mts +1 -1
  130. package/dist/rules/index.mjs +1 -1
  131. package/dist/rules/schemas.d.mts +1 -1
  132. package/dist/runtime-bun/index.mjs +1 -1
  133. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  134. package/dist/runtime-node/extension-validation.d.mts +1 -1
  135. package/dist/runtime-node/extension-validation.mjs +1 -1
  136. package/dist/runtime-node/index.d.mts +3 -3
  137. package/dist/runtime-node/index.mjs +29 -29
  138. package/dist/runtime-node/makaio-config.d.mts +3 -3
  139. package/dist/runtime-node/makaio-config.mjs +1 -1
  140. package/dist/runtime-node/workflow-worker/index.d.mts +1 -1
  141. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  142. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  143. package/dist/{schema-BycLqlQI.d.mts → schema-CfuF2cXW.d.mts} +2 -2
  144. package/dist/{schema-DxHkeT-G.mjs → schema-DCJyzRHe.mjs} +1 -1
  145. package/dist/schema-introspection-CuRZPYEc.mjs +1 -0
  146. package/dist/{schemas-BI4gqRlW.d.mts → schemas-BD-1NGmS.d.mts} +19 -19
  147. package/dist/{schemas-C4u2d8jR.d.mts → schemas-BFeP62V4.d.mts} +3 -3
  148. package/dist/{schemas-mD6cFIJs.d.mts → schemas-BiMxSTUx.d.mts} +6 -6
  149. package/dist/{schemas-C3wZhEAc.d.mts → schemas-CYS6bkht.d.mts} +5 -5
  150. package/dist/{schemas-BkeedMoC.d.mts → schemas-DL_bGYyZ.d.mts} +7 -7
  151. package/dist/{schemas-D7wxjmif.d.mts → schemas-DdZwjeF0.d.mts} +6 -6
  152. package/dist/{schemas-CaeiaR4r2.d.mts → schemas-SPI-Y87l2.d.mts} +13 -13
  153. package/dist/services/adapter-runtime/index.d.mts +3 -3
  154. package/dist/services/adapter-runtime/index.mjs +1 -1
  155. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  156. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  157. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  158. package/dist/services/adapter-subsystem/index.mjs +1 -1
  159. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  160. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  161. package/dist/services/agent-runtime/index.d.mts +2 -2
  162. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  163. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  164. package/dist/services/capability/index.d.mts +1 -1
  165. package/dist/services/capability/index.mjs +1 -1
  166. package/dist/services/codebase/index.d.mts +2 -2
  167. package/dist/services/codebase/namespace.d.mts +1 -1
  168. package/dist/services/codebase/schemas.d.mts +1 -1
  169. package/dist/services/compression/index.d.mts +2 -2
  170. package/dist/services/compression/namespace.d.mts +1 -1
  171. package/dist/services/compression/schemas.d.mts +1 -1
  172. package/dist/services/context-rules/index.d.mts +4 -4
  173. package/dist/services/context-rules/index.mjs +1 -1
  174. package/dist/services/execution-target/index.d.mts +3 -3
  175. package/dist/services/execution-target/index.mjs +1 -1
  176. package/dist/services/execution-target/namespace.d.mts +1 -1
  177. package/dist/services/execution-target/schemas.d.mts +1 -1
  178. package/dist/services/filesystem/index.d.mts +1 -1
  179. package/dist/services/filesystem/index.mjs +1 -1
  180. package/dist/services/filesystem/namespace.d.mts +6 -6
  181. package/dist/services/filesystem/schemas.d.mts +3 -3
  182. package/dist/services/git/namespace.d.mts +4 -4
  183. package/dist/services/git/namespace.mjs +1 -1
  184. package/dist/services/git/schemas.d.mts +5 -5
  185. package/dist/services/git/schemas.mjs +1 -1
  186. package/dist/services/harness/index.d.mts +28 -28
  187. package/dist/services/harness/index.mjs +1 -1
  188. package/dist/services/harness/storage/schema.d.mts +4 -4
  189. package/dist/services/index.d.mts +87 -87
  190. package/dist/services/index.mjs +1 -1
  191. package/dist/services/log-import/browser.d.mts +2 -2
  192. package/dist/services/log-import/index.d.mts +3 -3
  193. package/dist/services/log-import/log-import.d.mts +1 -1
  194. package/dist/services/log-import/log-import.mjs +1 -1
  195. package/dist/services/log-import/namespace.d.mts +6 -6
  196. package/dist/services/log-import/namespace.mjs +1 -1
  197. package/dist/services/log-import/schemas.d.mts +3 -3
  198. package/dist/services/log-import/schemas.mjs +1 -1
  199. package/dist/services/model-registry/index.d.mts +1 -1
  200. package/dist/services/model-registry/index.mjs +1 -1
  201. package/dist/services/preferences/index.d.mts +2 -2
  202. package/dist/services/preferences/schemas.d.mts +1 -1
  203. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  204. package/dist/services/provider-context/index.d.mts +1 -1
  205. package/dist/services/provider-context/index.mjs +1 -1
  206. package/dist/services/provider-runtime/index.mjs +1 -1
  207. package/dist/services/session/handlers/index.d.mts +1 -1
  208. package/dist/services/session/handlers/index.mjs +1 -1
  209. package/dist/services/session/index.d.mts +9 -9
  210. package/dist/services/session/index.mjs +1 -1
  211. package/dist/services/session/messages/namespace.d.mts +1 -1
  212. package/dist/services/session/messages/namespace.mjs +1 -1
  213. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  214. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  215. package/dist/services/session/session-events/namespace.d.mts +1 -1
  216. package/dist/services/session/session-events/namespace.mjs +1 -1
  217. package/dist/services/session/storage/namespace.d.mts +1 -1
  218. package/dist/services/session/storage/schema.d.mts +1 -1
  219. package/dist/services/session/testing/index.mjs +1 -1
  220. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  221. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  222. package/dist/services/session/turns/namespace.d.mts +1 -1
  223. package/dist/services/session/turns/namespace.mjs +1 -1
  224. package/dist/services/session-editor/index.d.mts +1 -1
  225. package/dist/services/session-editor/index.mjs +1 -1
  226. package/dist/services/settings/index.d.mts +3 -3
  227. package/dist/services/settings/index.mjs +1 -1
  228. package/dist/services/settings/namespace.d.mts +4 -4
  229. package/dist/services/settings/namespace.mjs +1 -1
  230. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  231. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  232. package/dist/services/settings/storage/extension-configs/namespace.d.mts +6 -6
  233. package/dist/services/settings/storage/index.d.mts +3 -3
  234. package/dist/services/settings/storage/index.mjs +1 -1
  235. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  236. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  237. package/dist/services/subagent/index.d.mts +1 -1
  238. package/dist/services/subagent/index.mjs +1 -1
  239. package/dist/services/subagent-template/index.d.mts +2 -2
  240. package/dist/services/subagent-template/namespace.d.mts +1 -1
  241. package/dist/services/subagent-template/schemas.d.mts +1 -1
  242. package/dist/services/tool-approval/index.d.mts +1 -1
  243. package/dist/services/tool-approval/index.mjs +1 -1
  244. package/dist/services/tools/index.d.mts +1 -1
  245. package/dist/services/tools/index.mjs +1 -1
  246. package/dist/services/tray-menu/index.d.mts +3 -3
  247. package/dist/services/tray-menu/index.mjs +1 -1
  248. package/dist/services/tray-menu/namespace.d.mts +1 -1
  249. package/dist/services/tray-menu/schemas.d.mts +1 -1
  250. package/dist/services/turn/index.d.mts +1 -1
  251. package/dist/services/turn/namespace.d.mts +1 -1
  252. package/dist/{session-DOGx_Qrm2.mjs → session-BnfsJoZi.mjs} +1 -1
  253. package/dist/{session-lineage-PY_8PUTH.d.mts → session-lineage-CxHc3_bm.d.mts} +1 -1
  254. package/dist/{src-BdKH_3mM.mjs → src-DI5TcYUW.mjs} +1 -1
  255. package/dist/storage/drizzle/client.d.mts +1 -1
  256. package/dist/storage/drizzle/index.d.mts +1 -1
  257. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  258. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  259. package/dist/storage/handlers/index.d.mts +1 -1
  260. package/dist/storage/handlers/index.mjs +1 -1
  261. package/dist/{storage-namespace-DyOwnbQO.d.mts → storage-namespace-I30TaZP7.d.mts} +10 -10
  262. package/dist/style.css +540 -540
  263. package/dist/tool-approval-service-BgNcJvKx.mjs +1 -0
  264. package/dist/tools-B8d8Iqqx.mjs +1 -0
  265. package/dist/{types-CLojY5bP.d.mts → types-0u6hpELc.d.mts} +1 -1
  266. package/dist/{types-igF72H-P.d.mts → types-C5Uy3WEy.d.mts} +1 -1
  267. package/dist/{types-BQB_1_Tv.d.mts → types-CZHV05Lu.d.mts} +58 -58
  268. package/dist/ui-components/index.d.mts +1 -1
  269. package/dist/ui-components/index.mjs +2 -2
  270. package/dist/ui-hooks/index.d.mts +6 -6
  271. package/dist/ui-kernel/index.d.mts +4 -4
  272. package/dist/ui-kernel/pages/namespace.d.mts +4 -4
  273. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  274. package/dist/ui-views/index.mjs +2 -2
  275. package/dist/workflow-engine/index.d.mts +6568 -0
  276. package/dist/workflow-engine/index.mjs +1 -0
  277. package/dist/workflow-engine/package.d.mts +2 -0
  278. package/dist/workflow-engine/package.mjs +1 -0
  279. package/dist/workflow-engine/workflow-orchestrator.d.mts +61 -0
  280. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -0
  281. package/dist/workflow-worker-hDaQzTBl.mjs +1 -0
  282. package/package.json +13 -1
  283. package/dist/ajv-B-geJci9.mjs +0 -8
  284. package/dist/await-trigger-CmK_k2oe.mjs +0 -1
  285. package/dist/esm-BdLRFEUy.mjs +0 -3
  286. package/dist/extension-CbCanyuh.mjs +0 -1
  287. package/dist/fast-uri-DARKlakU.mjs +0 -1
  288. package/dist/lib--v_LnhHr.mjs +0 -5
  289. package/dist/schema-introspection-A6FnQ1qg.mjs +0 -1
  290. package/dist/tool-approval-service-DRe1lqy-.mjs +0 -1
  291. package/dist/tools-BXEIs_Ur.mjs +0 -1
  292. package/dist/workflow-worker-BWoY_2ue.mjs +0 -1
  293. /package/dist/{base-orchestrator-D9E-Y8Kr.d.mts → base-orchestrator-D-S9v5VY.d.mts} +0 -0
  294. /package/dist/{capability-service-C2RapAHW.mjs → capability-service-jjrFLM6r.mjs} +0 -0
  295. /package/dist/{cleanEnvForAdapter-GVzUk_oB.mjs → cleanEnvForAdapter-BlpmyXYk.mjs} +0 -0
  296. /package/dist/{config-namespace-B5fFJwQj.d.mts → config-namespace-R_34Wfps.d.mts} +0 -0
  297. /package/dist/{create-static-mount-Btee48F5.mjs → create-static-mount-B9Szo_7y.mjs} +0 -0
  298. /package/dist/{definition-C4DLI1SC.d.mts → definition-CvOuzWNT.d.mts} +0 -0
  299. /package/dist/{descriptor-to-package-CY8oc2gl.mjs → descriptor-to-package-9nrAH_D5.mjs} +0 -0
  300. /package/dist/{drizzle-YUDNFNbV.mjs → drizzle-DpjZFY_j.mjs} +0 -0
  301. /package/dist/{event-Ca2yUf5i.mjs → event-BEllCn16.mjs} +0 -0
  302. /package/dist/{execution-target-CRPTfZlc.mjs → execution-target-CQGYaaM2.mjs} +0 -0
  303. /package/dist/{extension-discovery-CffOPDvn.d.mts → extension-discovery-BD1-oNU_.d.mts} +0 -0
  304. /package/dist/{filesystem-service-Cw4_S1bm.d.mts → filesystem-service-BcwRp4k1.d.mts} +0 -0
  305. /package/dist/{identity-Cz2IeEtm.mjs → identity-Bmx-8fPa.mjs} +0 -0
  306. /package/dist/{index-BkKMwRJj.d.mts → index--0CnhN0g.d.mts} +0 -0
  307. /package/dist/{index-BWA-Bf0T.d.mts → index-9KnLzPYu.d.mts} +0 -0
  308. /package/dist/{index-sQ-7cpgm2.d.mts → index-AZ4iLe7O2.d.mts} +0 -0
  309. /package/dist/{index-FjZOM4M0.d.mts → index-B6RGNugn.d.mts} +0 -0
  310. /package/dist/{index-AJDF86bD2.d.mts → index-BDlpFEsp2.d.mts} +0 -0
  311. /package/dist/{index-ChpYWZGc.d.mts → index-BFaeVdsn2.d.mts} +0 -0
  312. /package/dist/{index-CE2F0_8r.d.mts → index-BV8rSmDZ.d.mts} +0 -0
  313. /package/dist/{index-DYLb4v5z.d.mts → index-BYxgW2i0.d.mts} +0 -0
  314. /package/dist/{index-rQU8B-JX.d.mts → index-C-YBGCCG.d.mts} +0 -0
  315. /package/dist/{index-CBW3XX7b.d.mts → index-CF7dnqQj.d.mts} +0 -0
  316. /package/dist/{index-DOfnh3xf.d.mts → index-CNYPKkyH.d.mts} +0 -0
  317. /package/dist/{index-B3SbibGM.d.mts → index-CT-zFurA.d.mts} +0 -0
  318. /package/dist/{index-BKqJTm2-.d.mts → index-CdNDnxXR.d.mts} +0 -0
  319. /package/dist/{index-BPn5ODFL.d.mts → index-ChG8ZUNP.d.mts} +0 -0
  320. /package/dist/{index-CJt_4GQu.d.mts → index-DJQew2k-.d.mts} +0 -0
  321. /package/dist/{index-Ksoed-mL.d.mts → index-DNGUXQGC.d.mts} +0 -0
  322. /package/dist/{index-DpKxkrU8.d.mts → index-Dbwm5Y-Q.d.mts} +0 -0
  323. /package/dist/{index-DOAUskuB.d.mts → index-Dn9Uum3F.d.mts} +0 -0
  324. /package/dist/{index-BZmLqP2a.d.mts → index-yNb7G73-.d.mts} +0 -0
  325. /package/dist/{index-8AU9itst2.d.mts → index-ziQTLYUO.d.mts} +0 -0
  326. /package/dist/{jsonl-transport-DN1zyi6w.mjs → jsonl-transport-DBHQgcIm.mjs} +0 -0
  327. /package/dist/{model-registry-DdZrE4sa.mjs → model-registry-B0AIdj7O.mjs} +0 -0
  328. /package/dist/{namespace-BwzZJqTV.mjs → namespace-BgPoC46Q.mjs} +0 -0
  329. /package/dist/{namespace-Yna5-Pws.mjs → namespace-CDiM5Bcr.mjs} +0 -0
  330. /package/dist/{namespace-Buecxx19.d.mts → namespace-CTrNKkxY.d.mts} +0 -0
  331. /package/dist/{namespace-DzS4SSkr2.mjs → namespace-CUOGcGPG.mjs} +0 -0
  332. /package/dist/{namespace-CCfEHbi9.mjs → namespace-D6X67cUk.mjs} +0 -0
  333. /package/dist/{namespace-CfqAh9gM.d.mts → namespace-Dik_dNeE.d.mts} +0 -0
  334. /package/dist/{namespace-wYMkOtE0.d.mts → namespace-DkDvQJhB.d.mts} +0 -0
  335. /package/dist/{namespace-BnVlQiRv.d.mts → namespace-DvHoeMUV.d.mts} +0 -0
  336. /package/dist/{namespace-BGGiHXkz.mjs → namespace-ENv7H7Na.mjs} +0 -0
  337. /package/dist/{namespace-oS2v7viW.d.mts → namespace-QTFnJWHC.d.mts} +0 -0
  338. /package/dist/{orchestrator-shared-DXAvgseP.d.mts → orchestrator-shared-BZVeoRfr.d.mts} +0 -0
  339. /package/dist/{package-DKVlsMP3.mjs → package-OE9dMQsq.mjs} +0 -0
  340. /package/dist/{providers-namespace-BITpk8sN.d.mts → providers-namespace-Cc9FQ-Zt.d.mts} +0 -0
  341. /package/dist/{quick-lru-8GhFeKMZ.mjs → quick-lru-B9nWXbXI.mjs} +0 -0
  342. /package/dist/{schema-DdMn1KCD.mjs → schema-DOnJmAPw.mjs} +0 -0
  343. /package/dist/{schemas-B-Z4U9FN.mjs → schemas-BdAf5u58.mjs} +0 -0
  344. /package/dist/{schemas-WJ9OOsOF.d.mts → schemas-BzK1I1eX.d.mts} +0 -0
  345. /package/dist/{schemas-PmHLOkr-.d.mts → schemas-CsjB6gel.d.mts} +0 -0
  346. /package/dist/{schemas-7y9O8b0X.d.mts → schemas-DFWGb4uj.d.mts} +0 -0
  347. /package/dist/{schemas-CMyv6Mkq.d.mts → schemas-Hy-lsBpg.d.mts} +0 -0
  348. /package/dist/{server-lifecycle-JX0MpLfX.d.mts → server-lifecycle-DVAbXQzg.d.mts} +0 -0
  349. /package/dist/{shared-schemas-CbbcM1GQ.mjs → shared-schemas-CKe2uN4-.mjs} +0 -0
  350. /package/dist/{src-CUlokMRL.mjs → src-4_2jBceX.mjs} +0 -0
  351. /package/dist/{storage-namespace-DecBVTzH.mjs → storage-namespace-BXO3lDVy.mjs} +0 -0
  352. /package/dist/{storage-namespace-definition-QTqbbw5b.d.mts → storage-namespace-definition-ZNBL3v2h.d.mts} +0 -0
  353. /package/dist/{supports-color-CcNsYzyh.mjs → supports-color-fVsgozsi.mjs} +0 -0
  354. /package/dist/{tray-menu-service-CsaXURTf.mjs → tray-menu-service-B5YPK_YF.mjs} +0 -0
  355. /package/dist/{types-CycWG-_j.d.mts → types-11QnNmpW.d.mts} +0 -0
  356. /package/dist/{types-DVAi-qkD.d.mts → types-BKNpS4Xw.d.mts} +0 -0
  357. /package/dist/{types-C6R2eyMZ.d.mts → types-BtMNh2FS.d.mts} +0 -0
  358. /package/dist/{types-Bnf1bRcq.d.mts → types-yTKQTAok.d.mts} +0 -0
  359. /package/dist/{window-registry-r3VFP-_d.d.mts → window-registry-QD1rTk_f.d.mts} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,n,r,t as i}from"./chunk-DTipWd-i.mjs";var a=r({__addDisposableResource:()=>N,__assign:()=>L,__asyncDelegator:()=>T,__asyncGenerator:()=>w,__asyncValues:()=>E,__await:()=>C,__awaiter:()=>h,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>j,__createBinding:()=>R,__decorate:()=>c,__disposeResources:()=>P,__esDecorate:()=>u,__exportStar:()=>_,__extends:()=>o,__generator:()=>g,__importDefault:()=>k,__importStar:()=>O,__makeTemplateObject:()=>D,__metadata:()=>m,__param:()=>l,__propKey:()=>f,__read:()=>y,__rest:()=>s,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>d,__setFunctionName:()=>p,__spread:()=>b,__spreadArray:()=>S,__spreadArrays:()=>x,__values:()=>v,default:()=>H});function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);I(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function c(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function d(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function f(e){return typeof e==`symbol`?e:`${e}`}function p(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function m(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function h(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function g(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function _(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&R(t,e,n)}function v(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function y(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function S(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof C?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function T(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof v==`function`?v(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function D(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=B(e),r=0;r<n.length;r++)n[r]!==`default`&&R(t,e,n[r]);return z(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function M(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function N(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function P(e){function t(t){e.error=e.hasError?new V(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function F(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var I,L,R,z,B,V,H,U=n((()=>{I=function(e,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},I(e,t)},L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},L.apply(this,arguments)},R=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),z=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},B=function(e){return B=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},B(e)},V=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},H={__extends:o,__assign:L,__rest:s,__decorate:c,__param:l,__esDecorate:u,__runInitializers:d,__propKey:f,__setFunctionName:p,__metadata:m,__awaiter:h,__generator:g,__createBinding:R,__exportStar:_,__values:v,__read:y,__spread:b,__spreadArrays:x,__spreadArray:S,__await:C,__asyncGenerator:w,__asyncDelegator:T,__asyncValues:E,__makeTemplateObject:D,__importStar:O,__importDefault:k,__classPrivateFieldGet:A,__classPrivateFieldSet:j,__classPrivateFieldIn:M,__addDisposableResource:N,__disposeResources:P,__rewriteRelativeImportExtension:F}})),W=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SAFE_TIME=e.S_IFLNK=e.S_IFREG=e.S_IFDIR=e.S_IFMT=void 0,e.S_IFMT=61440,e.S_IFDIR=16384,e.S_IFREG=32768,e.S_IFLNK=40960,e.SAFE_TIME=456789e3})),G=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EBUSY=n,e.ENOSYS=r,e.EINVAL=i,e.EBADF=a,e.ENOENT=o,e.ENOTDIR=s,e.EISDIR=c,e.EEXIST=l,e.EROFS=u,e.ENOTEMPTY=d,e.EOPNOTSUPP=f,e.ERR_DIR_CLOSED=p;function t(e,t){return Object.assign(Error(`${e}: ${t}`),{code:e})}function n(e){return t(`EBUSY`,e)}function r(e,n){return t(`ENOSYS`,`${e}, ${n}`)}function i(e){return t(`EINVAL`,`invalid argument, ${e}`)}function a(e){return t(`EBADF`,`bad file descriptor, ${e}`)}function o(e){return t(`ENOENT`,`no such file or directory, ${e}`)}function s(e){return t(`ENOTDIR`,`not a directory, ${e}`)}function c(e){return t(`EISDIR`,`illegal operation on a directory, ${e}`)}function l(e){return t(`EEXIST`,`file already exists, ${e}`)}function u(e){return t(`EROFS`,`read-only filesystem, ${e}`)}function d(e){return t(`ENOTEMPTY`,`directory not empty, ${e}`)}function f(e){return t(`EOPNOTSUPP`,`operation not supported, ${e}`)}function p(){return t(`ERR_DIR_CLOSED`,`Directory handle was closed`)}})),K=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.BigIntStatsEntry=n.StatEntry=n.DirEntry=n.DEFAULT_MODE=void 0,n.makeDefaultStats=c,n.makeEmptyStats=l,n.clearStats=u,n.convertToBigIntStats=d,n.areStatsEqual=f;let r=(U(),e(a)).__importStar(t(`util`)),i=W();n.DEFAULT_MODE=i.S_IFREG|420,n.DirEntry=class{constructor(){this.name=``,this.path=``,this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&i.S_IFMT)===i.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&i.S_IFMT)===i.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&i.S_IFMT)===i.S_IFLNK}};var o=class{constructor(){this.uid=0,this.gid=0,this.size=0,this.blksize=0,this.atimeMs=0,this.mtimeMs=0,this.ctimeMs=0,this.birthtimeMs=0,this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=0,this.ino=0,this.mode=n.DEFAULT_MODE,this.nlink=1,this.rdev=0,this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&i.S_IFMT)===i.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&i.S_IFMT)===i.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&i.S_IFMT)===i.S_IFLNK}};n.StatEntry=o;var s=class{constructor(){this.uid=BigInt(0),this.gid=BigInt(0),this.size=BigInt(0),this.blksize=BigInt(0),this.atimeMs=BigInt(0),this.mtimeMs=BigInt(0),this.ctimeMs=BigInt(0),this.birthtimeMs=BigInt(0),this.atimeNs=BigInt(0),this.mtimeNs=BigInt(0),this.ctimeNs=BigInt(0),this.birthtimeNs=BigInt(0),this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=BigInt(0),this.ino=BigInt(0),this.mode=BigInt(n.DEFAULT_MODE),this.nlink=BigInt(1),this.rdev=BigInt(0),this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(i.S_IFMT))===BigInt(i.S_IFDIR)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(i.S_IFMT))===BigInt(i.S_IFREG)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(i.S_IFMT))===BigInt(i.S_IFLNK)}};n.BigIntStatsEntry=s;function c(){return new o}function l(){return u(c())}function u(e){for(let t in e)if(Object.hasOwn(e,t)){let n=e[t];typeof n==`number`?e[t]=0:typeof n==`bigint`?e[t]=BigInt(0):r.types.isDate(n)&&(e[t]=new Date(0))}return e}function d(e){let t=new s;for(let n in e)if(Object.hasOwn(e,n)){let i=e[n];typeof i==`number`?t[n]=BigInt(i):r.types.isDate(i)&&(t[n]=new Date(i))}return t.atimeNs=t.atimeMs*BigInt(1e6),t.mtimeNs=t.mtimeMs*BigInt(1e6),t.ctimeNs=t.ctimeMs*BigInt(1e6),t.birthtimeNs=t.birthtimeMs*BigInt(1e6),t}function f(e,t){if(e.atimeMs!==t.atimeMs||e.birthtimeMs!==t.birthtimeMs||e.blksize!==t.blksize||e.blocks!==t.blocks||e.ctimeMs!==t.ctimeMs||e.dev!==t.dev||e.gid!==t.gid||e.ino!==t.ino||e.isBlockDevice()!==t.isBlockDevice()||e.isCharacterDevice()!==t.isCharacterDevice()||e.isDirectory()!==t.isDirectory()||e.isFIFO()!==t.isFIFO()||e.isFile()!==t.isFile()||e.isSocket()!==t.isSocket()||e.isSymbolicLink()!==t.isSymbolicLink()||e.mode!==t.mode||e.mtimeMs!==t.mtimeMs||e.nlink!==t.nlink||e.rdev!==t.rdev||e.size!==t.size||e.uid!==t.uid)return!1;let n=e,r=t;return!(n.atimeNs!==r.atimeNs||n.mtimeNs!==r.mtimeNs||n.ctimeNs!==r.ctimeNs||n.birthtimeNs!==r.birthtimeNs)}})),q=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.ppath=n.npath=n.Filename=n.PortablePath=void 0,n.convertPath=h;let r=(U(),e(a)).__importDefault(t(`path`));var i;(function(e){e[e.File=0]=`File`,e[e.Portable=1]=`Portable`,e[e.Native=2]=`Native`})(i||={}),n.PortablePath={root:`/`,dot:`.`,parent:`..`},n.Filename={home:`~`,nodeModules:`node_modules`,manifest:`package.json`,lockfile:`yarn.lock`,virtual:`__virtual__`,pnpJs:`.pnp.js`,pnpCjs:`.pnp.cjs`,pnpData:`.pnp.data.json`,pnpEsmLoader:`.pnp.loader.mjs`,rc:`.yarnrc.yml`,env:`.env`},n.npath=Object.create(r.default),n.ppath=Object.create(r.default.posix),n.npath.cwd=()=>process.cwd(),n.ppath.cwd=process.platform===`win32`?()=>p(process.cwd()):process.cwd,process.platform===`win32`&&(n.ppath.resolve=(...e)=>e.length>0&&n.ppath.isAbsolute(e[0])?r.default.posix.resolve(...e):r.default.posix.resolve(n.ppath.cwd(),...e));let o=function(e,t,n){return t=e.normalize(t),n=e.normalize(n),t===n?`.`:(t.endsWith(e.sep)||(t+=e.sep),n.startsWith(t)?n.slice(t.length):null)};n.npath.contains=(e,t)=>o(n.npath,e,t),n.ppath.contains=(e,t)=>o(n.ppath,e,t);let s=/^([a-zA-Z]:.*)$/,c=/^\/\/(\.\/)?(.*)$/,l=/^\/([a-zA-Z]:.*)$/,u=/^\/unc\/(\.dot\/)?(.*)$/;function d(e){let t,n;if(t=e.match(l))e=t[1];else if(n=e.match(u))e=`\\\\${n[1]?`.\\`:``}${n[2]}`;else return e;return e.replace(/\//g,`\\`)}function f(e){e=e.replace(/\\/g,`/`);let t,n;return(t=e.match(s))?e=`/${t[1]}`:(n=e.match(c))&&(e=`/unc/${n[1]?`.dot/`:``}${n[2]}`),e}let p=process.platform===`win32`?f:e=>e,m=process.platform===`win32`?d:e=>e;n.npath.fromPortablePath=m,n.npath.toPortablePath=p;function h(e,t){return e===n.npath?m(t):p(t)}})),J=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.setupCopyIndex=s,t.copyPromise=c;let n=(U(),e(a)).__importStar(W()),r=q(),i=new Date(n.SAFE_TIME*1e3),o=i.getTime();async function s(e,t){let n=`0123456789abcdef`;await e.mkdirPromise(t.indexPath,{recursive:!0});let r=[];for(let i of n)for(let a of n)r.push(e.mkdirPromise(e.pathUtils.join(t.indexPath,`${i}${a}`),{recursive:!0}));return await Promise.all(r),t.indexPath}async function c(e,t,n,r,a){let o=e.pathUtils.normalize(t),s=n.pathUtils.normalize(r),c=[],u=[],{atime:d,mtime:f}=a.stableTime?{atime:i,mtime:i}:await n.lstatPromise(s);await e.mkdirpPromise(e.pathUtils.dirname(t),{utimes:[d,f]}),await l(c,u,e,o,n,s,{...a,didParentExist:!0});for(let e of c)await e();await Promise.all(u.map(e=>e()))}async function l(e,t,n,r,a,o,s){let c=s.didParentExist?await u(n,r):null,l=await a.lstatPromise(o),{atime:f,mtime:p}=s.stableTime?{atime:i,mtime:i}:l,g;switch(!0){case l.isDirectory():g=await d(e,t,n,r,c,a,o,l,s);break;case l.isFile():g=await m(e,t,n,r,c,a,o,l,s);break;case l.isSymbolicLink():g=await h(e,t,n,r,c,a,o,l,s);break;default:throw Error(`Unsupported file type (${l.mode})`)}return(s.linkStrategy?.type!==`HardlinkFromIndex`||!l.isFile())&&((g||c?.mtime?.getTime()!==p.getTime()||c?.atime?.getTime()!==f.getTime())&&(t.push(()=>n.lutimesPromise(r,f,p)),g=!0),(c===null||(c.mode&511)!=(l.mode&511))&&(t.push(()=>n.chmodPromise(r,l.mode&511)),g=!0)),g}async function u(e,t){try{return await e.lstatPromise(t)}catch{return null}}async function d(e,t,n,r,i,a,o,s,c){if(i!==null&&!i.isDirectory())if(c.overwrite)e.push(async()=>n.removePromise(r)),i=null;else return!1;let u=!1;i===null&&(e.push(async()=>{try{await n.mkdirPromise(r,{mode:s.mode})}catch(e){if(e.code!==`EEXIST`)throw e}}),u=!0);let d=await a.readdirPromise(o),f=c.didParentExist&&!i?{...c,didParentExist:!1}:c;if(c.stableSort)for(let i of d.sort())await l(e,t,n,n.pathUtils.join(r,i),a,a.pathUtils.join(o,i),f)&&(u=!0);else (await Promise.all(d.map(async i=>{await l(e,t,n,n.pathUtils.join(r,i),a,a.pathUtils.join(o,i),f)}))).some(e=>e)&&(u=!0);return u}async function f(e,t,n,r,a,s,c,l,d,f){let p=await s.checksumFilePromise(c,{algorithm:`sha1`}),m=l.mode&511,h=`${p}${m===420?``:m.toString(8)}`,g=n.pathUtils.join(f.indexPath,p.slice(0,2),`${h}.dat`),_;(function(e){e[e.Lock=0]=`Lock`,e[e.Rename=1]=`Rename`})(_||={});let v=_.Rename,y=await u(n,g);if(a){let t=y&&a.dev===y.dev&&a.ino===y.ino,i=y?.mtimeMs!==o;if(t&&i&&f.autoRepair&&(v=_.Lock,y=null),!t)if(d.overwrite)e.push(async()=>n.removePromise(r)),a=null;else return!1}let b=!y&&v===_.Rename?`${g}.${Math.floor(Math.random()*4294967296).toString(16).padStart(8,`0`)}`:null,x=!1;return e.push(async()=>{if(!y&&(v===_.Lock&&await n.lockPromise(g,async()=>{let e=await s.readFilePromise(c);await n.writeFilePromise(g,e)}),v===_.Rename&&b)){let e=await s.readFilePromise(c);await n.writeFilePromise(b,e);try{await n.linkPromise(b,g)}catch(e){if(e.code===`EEXIST`)x=!0,await n.unlinkPromise(b);else throw e}}a||await n.linkPromise(g,r)}),t.push(async()=>{y||(await n.lutimesPromise(g,i,i),m!==420&&await n.chmodPromise(g,m)),b&&!x&&await n.unlinkPromise(b)}),!1}async function p(e,t,n,r,i,a,o,s,c){if(i!==null)if(c.overwrite)e.push(async()=>n.removePromise(r)),i=null;else return!1;return e.push(async()=>{let e=await a.readFilePromise(o);await n.writeFilePromise(r,e)}),!0}async function m(e,t,n,r,i,a,o,s,c){return c.linkStrategy?.type===`HardlinkFromIndex`?f(e,t,n,r,i,a,o,s,c,c.linkStrategy):p(e,t,n,r,i,a,o,s,c)}async function h(e,t,n,i,a,o,s,c,l){if(a!==null)if(l.overwrite)e.push(async()=>n.removePromise(i)),a=null;else return!1;return e.push(async()=>{await n.symlinkPromise((0,r.convertPath)(n.pathUtils,await o.readlinkPromise(s)),i)}),!0}})),Y=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CustomDir=void 0,t.opendir=i;let n=(U(),e(a)).__importStar(G());var r=class{constructor(e,t,n={}){this.path=e,this.nextDirent=t,this.opts=n,this.closed=!1}throwIfClosed(){if(this.closed)throw n.ERR_DIR_CLOSED()}async*[Symbol.asyncIterator](){try{let e;for(;(e=await this.read())!==null;)yield e}finally{await this.close()}}read(e){let t=this.readSync();return e===void 0?Promise.resolve(t):e(null,t)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(e){return this.closeSync(),e===void 0?Promise.resolve():e(null)}closeSync(){this.throwIfClosed(),this.opts.onClose?.(),this.closed=!0}};t.CustomDir=r;function i(e,t,n,i){return new r(t,()=>{let r=n.shift();if(r===void 0)return null;let i=e.pathUtils.join(t,r);return Object.assign(e.statSync(i),{name:r,path:void 0})},i)}})),ee=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.CustomStatWatcher=n.Status=n.Event=void 0,n.assertStatus=l;let r=(U(),e(a)),i=t(`events`),o=r.__importStar(K());var s;(function(e){e.Change=`change`,e.Stop=`stop`})(s||(n.Event=s={}));var c;(function(e){e.Ready=`ready`,e.Running=`running`,e.Stopped=`stopped`})(c||(n.Status=c={}));function l(e,t){if(e!==t)throw Error(`Invalid StatWatcher status: expected '${t}', got '${e}'`)}n.CustomStatWatcher=class e extends i.EventEmitter{static create(t,n,r){let i=new e(t,n,r);return i.start(),i}constructor(e,t,{bigint:n=!1}={}){super(),this.status=c.Ready,this.changeListeners=new Map,this.startTimeout=null,this.fakeFs=e,this.path=t,this.bigint=n,this.lastStats=this.stat()}start(){l(this.status,c.Ready),this.status=c.Running,this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.fakeFs.existsSync(this.path)||this.emit(s.Change,this.lastStats,this.lastStats)},3)}stop(){l(this.status,c.Running),this.status=c.Stopped,this.startTimeout!==null&&(clearTimeout(this.startTimeout),this.startTimeout=null),this.emit(s.Stop)}stat(){try{return this.fakeFs.statSync(this.path,{bigint:this.bigint})}catch{let e=this.bigint?new o.BigIntStatsEntry:new o.StatEntry;return o.clearStats(e)}}makeInterval(e){let t=setInterval(()=>{let e=this.stat(),t=this.lastStats;o.areStatsEqual(e,t)||(this.lastStats=e,this.emit(s.Change,e,t))},e.interval);return e.persistent?t:t.unref()}registerChangeListener(e,t){this.addListener(s.Change,e),this.changeListeners.set(e,this.makeInterval(t))}unregisterChangeListener(e){this.removeListener(s.Change,e);let t=this.changeListeners.get(e);t!==void 0&&clearInterval(t),this.changeListeners.delete(e)}unregisterAllChangeListeners(){for(let e of this.changeListeners.keys())this.unregisterChangeListener(e)}hasChangeListeners(){return this.changeListeners.size>0}ref(){for(let e of this.changeListeners.values())e.ref();return this}unref(){for(let e of this.changeListeners.values())e.unref();return this}}})),X=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.watchFile=r,e.unwatchFile=i,e.unwatchAllFiles=a;let t=ee(),n=new WeakMap;function r(e,r,i,a){let o,s,c,l;switch(typeof i){case`function`:o=!1,s=!0,c=5007,l=i;break;default:({bigint:o=!1,persistent:s=!0,interval:c=5007}=i),l=a;break}let u=n.get(e);u===void 0&&n.set(e,u=new Map);let d=u.get(r);return d===void 0&&(d=t.CustomStatWatcher.create(e,r,{bigint:o}),u.set(r,d)),d.registerChangeListener(l,{persistent:s,interval:c}),d}function i(e,t,r){let i=n.get(e);if(i===void 0)return;let a=i.get(t);a!==void 0&&(r===void 0?a.unregisterAllChangeListeners():a.unregisterChangeListener(r),a.hasChangeListeners()||(a.stop(),i.delete(t)))}function a(e){let t=n.get(e);if(t!==void 0)for(let n of t.keys())i(e,n)}})),Z=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BasePortableFakeFS=e.FakeFS=void 0,e.normalizeLineEndings=c;let n=t(`crypto`),r=t(`os`),i=J(),a=q();var o=class{constructor(e){this.pathUtils=e}async*genTraversePromise(e,{stableSort:t=!1}={}){let n=[e];for(;n.length>0;){let e=n.shift();if((await this.lstatPromise(e)).isDirectory()){let r=await this.readdirPromise(e);if(t)for(let t of r.sort())n.push(this.pathUtils.join(e,t));else throw Error(`Not supported`)}else yield e}}async checksumFilePromise(e,{algorithm:t=`sha512`}={}){let r=await this.openPromise(e,`r`);try{let e=65536,i=Buffer.allocUnsafeSlow(e),a=(0,n.createHash)(t),o=0;for(;(o=await this.readPromise(r,i,0,e))!==0;)a.update(o===e?i:i.slice(0,o));return a.digest(`hex`)}finally{await this.closePromise(r)}}async removePromise(e,{recursive:t=!0,maxRetries:n=5}={}){let r;try{r=await this.lstatPromise(e)}catch(e){if(e.code===`ENOENT`)return;throw e}if(r.isDirectory()){if(t){let t=await this.readdirPromise(e);await Promise.all(t.map(t=>this.removePromise(this.pathUtils.resolve(e,t))))}for(let t=0;t<=n;t++)try{await this.rmdirPromise(e);break}catch(e){if(e.code!==`EBUSY`&&e.code!==`ENOTEMPTY`)throw e;t<n&&await new Promise(e=>setTimeout(e,t*100))}}else await this.unlinkPromise(e)}removeSync(e,{recursive:t=!0}={}){let n;try{n=this.lstatSync(e)}catch(e){if(e.code===`ENOENT`)return;throw e}if(n.isDirectory()){if(t)for(let t of this.readdirSync(e))this.removeSync(this.pathUtils.resolve(e,t));this.rmdirSync(e)}else this.unlinkSync(e)}async mkdirpPromise(e,{chmod:t,utimes:n}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let r=e.split(this.pathUtils.sep),i;for(let e=2;e<=r.length;++e){let a=r.slice(0,e).join(this.pathUtils.sep);if(!this.existsSync(a)){try{await this.mkdirPromise(a)}catch(e){if(e.code===`EEXIST`)continue;throw e}if(i??=a,t!=null&&await this.chmodPromise(a,t),n!=null)await this.utimesPromise(a,n[0],n[1]);else{let e=await this.statPromise(this.pathUtils.dirname(a));await this.utimesPromise(a,e.atime,e.mtime)}}}return i}mkdirpSync(e,{chmod:t,utimes:n}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let r=e.split(this.pathUtils.sep),i;for(let e=2;e<=r.length;++e){let a=r.slice(0,e).join(this.pathUtils.sep);if(!this.existsSync(a)){try{this.mkdirSync(a)}catch(e){if(e.code===`EEXIST`)continue;throw e}if(i??=a,t!=null&&this.chmodSync(a,t),n!=null)this.utimesSync(a,n[0],n[1]);else{let e=this.statSync(this.pathUtils.dirname(a));this.utimesSync(a,e.atime,e.mtime)}}}return i}async copyPromise(e,t,{baseFs:n=this,overwrite:r=!0,stableSort:a=!1,stableTime:o=!1,linkStrategy:s=null}={}){return await(0,i.copyPromise)(this,e,n,t,{overwrite:r,stableSort:a,stableTime:o,linkStrategy:s})}copySync(e,t,{baseFs:n=this,overwrite:r=!0}={}){let i=n.lstatSync(t),o=this.existsSync(e);if(i.isDirectory()){this.mkdirpSync(e);let i=n.readdirSync(t);for(let a of i)this.copySync(this.pathUtils.join(e,a),n.pathUtils.join(t,a),{baseFs:n,overwrite:r})}else if(i.isFile()){if(!o||r){o&&this.removeSync(e);let r=n.readFileSync(t);this.writeFileSync(e,r)}}else if(i.isSymbolicLink()){if(!o||r){o&&this.removeSync(e);let r=n.readlinkSync(t);this.symlinkSync((0,a.convertPath)(this.pathUtils,r),e)}}else throw Error(`Unsupported file type (file: ${t}, mode: 0o${i.mode.toString(8).padStart(6,`0`)})`);let s=i.mode&511;this.chmodSync(e,s)}async changeFilePromise(e,t,n={}){return Buffer.isBuffer(t)?this.changeFileBufferPromise(e,t,n):this.changeFileTextPromise(e,t,n)}async changeFileBufferPromise(e,t,{mode:n}={}){let r=Buffer.alloc(0);try{r=await this.readFilePromise(e)}catch{}Buffer.compare(r,t)!==0&&await this.writeFilePromise(e,t,{mode:n})}async changeFileTextPromise(e,t,{automaticNewlines:n,mode:r}={}){let i=``;try{i=await this.readFilePromise(e,`utf8`)}catch{}let a=n?c(i,t):t;i!==a&&await this.writeFilePromise(e,a,{mode:r})}changeFileSync(e,t,n={}){return Buffer.isBuffer(t)?this.changeFileBufferSync(e,t,n):this.changeFileTextSync(e,t,n)}changeFileBufferSync(e,t,{mode:n}={}){let r=Buffer.alloc(0);try{r=this.readFileSync(e)}catch{}Buffer.compare(r,t)!==0&&this.writeFileSync(e,t,{mode:n})}changeFileTextSync(e,t,{automaticNewlines:n=!1,mode:r}={}){let i=``;try{i=this.readFileSync(e,`utf8`)}catch{}let a=n?c(i,t):t;i!==a&&this.writeFileSync(e,a,{mode:r})}async movePromise(e,t){try{await this.renamePromise(e,t)}catch(n){if(n.code===`EXDEV`)await this.copyPromise(t,e),await this.removePromise(e);else throw n}}moveSync(e,t){try{this.renameSync(e,t)}catch(n){if(n.code===`EXDEV`)this.copySync(t,e),this.removeSync(e);else throw n}}async lockPromise(e,t){let n=`${e}.flock`,r=Date.now(),i=null,a=async()=>{let e;try{[e]=await this.readJsonPromise(n)}catch{return Date.now()-r<500}try{return process.kill(e,0),!0}catch{return!1}};for(;i===null;)try{i=await this.openPromise(n,`wx`)}catch(e){if(e.code===`EEXIST`){if(!await a())try{await this.unlinkPromise(n);continue}catch{}if(Date.now()-r<60*1e3)await new Promise(e=>setTimeout(e,16.666666666666668));else throw Error(`Couldn't acquire a lock in a reasonable time (via ${n})`)}else throw e}await this.writePromise(i,JSON.stringify([process.pid]));try{return await t()}finally{try{await this.closePromise(i),await this.unlinkPromise(n)}catch{}}}async readJsonPromise(e){let t=await this.readFilePromise(e,`utf8`);try{return JSON.parse(t)}catch(t){throw t.message+=` (in ${e})`,t}}readJsonSync(e){let t=this.readFileSync(e,`utf8`);try{return JSON.parse(t)}catch(t){throw t.message+=` (in ${e})`,t}}async writeJsonPromise(e,t,{compact:n=!1}={}){let r=n?0:2;return await this.writeFilePromise(e,`${JSON.stringify(t,null,r)}\n`)}writeJsonSync(e,t,{compact:n=!1}={}){let r=n?0:2;return this.writeFileSync(e,`${JSON.stringify(t,null,r)}\n`)}async preserveTimePromise(e,t){let n=await this.lstatPromise(e),r=await t();r!==void 0&&(e=r),await this.lutimesPromise(e,n.atime,n.mtime)}async preserveTimeSync(e,t){let n=this.lstatSync(e),r=t();r!==void 0&&(e=r),this.lutimesSync(e,n.atime,n.mtime)}};e.FakeFS=o,e.BasePortableFakeFS=class extends o{constructor(){super(a.ppath)}};function s(e){let t=e.match(/\r?\n/g);if(t===null)return r.EOL;let n=t.filter(e=>e===`\r
1
+ import{a as e,i as t,n,r,t as i}from"./chunk-DTipWd-i.mjs";var a=r({__addDisposableResource:()=>N,__assign:()=>L,__asyncDelegator:()=>T,__asyncGenerator:()=>w,__asyncValues:()=>E,__await:()=>C,__awaiter:()=>h,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>j,__createBinding:()=>R,__decorate:()=>c,__disposeResources:()=>P,__esDecorate:()=>u,__exportStar:()=>_,__extends:()=>o,__generator:()=>g,__importDefault:()=>k,__importStar:()=>O,__makeTemplateObject:()=>D,__metadata:()=>m,__param:()=>l,__propKey:()=>f,__read:()=>y,__rest:()=>s,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>d,__setFunctionName:()=>p,__spread:()=>b,__spreadArray:()=>S,__spreadArrays:()=>x,__values:()=>v,default:()=>H});function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);I(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function c(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function d(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function f(e){return typeof e==`symbol`?e:`${e}`}function p(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function m(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function h(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function g(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function _(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&R(t,e,n)}function v(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function y(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function S(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function C(e){return this instanceof C?(this.v=e,this):new C(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof C?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function T(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:C(e[r](t)),done:!1}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof v==`function`?v(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function D(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=B(e),r=0;r<n.length;r++)n[r]!==`default`&&R(t,e,n[r]);return z(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function M(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function N(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function P(e){function t(t){e.error=e.hasError?new V(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function F(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var I,L,R,z,B,V,H,U=n((()=>{I=function(e,t){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},I(e,t)},L=function(){return L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},L.apply(this,arguments)},R=Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),z=Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t},B=function(e){return B=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},B(e)},V=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},H={__extends:o,__assign:L,__rest:s,__decorate:c,__param:l,__esDecorate:u,__runInitializers:d,__propKey:f,__setFunctionName:p,__metadata:m,__awaiter:h,__generator:g,__createBinding:R,__exportStar:_,__values:v,__read:y,__spread:b,__spreadArrays:x,__spreadArray:S,__await:C,__asyncGenerator:w,__asyncDelegator:T,__asyncValues:E,__makeTemplateObject:D,__importStar:O,__importDefault:k,__classPrivateFieldGet:A,__classPrivateFieldSet:j,__classPrivateFieldIn:M,__addDisposableResource:N,__disposeResources:P,__rewriteRelativeImportExtension:F}})),W=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.SAFE_TIME=e.S_IFLNK=e.S_IFREG=e.S_IFDIR=e.S_IFMT=void 0,e.S_IFMT=61440,e.S_IFDIR=16384,e.S_IFREG=32768,e.S_IFLNK=40960,e.SAFE_TIME=456789e3})),G=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EBUSY=n,e.ENOSYS=r,e.EINVAL=i,e.EBADF=a,e.ENOENT=o,e.ENOTDIR=s,e.EISDIR=c,e.EEXIST=l,e.EROFS=u,e.ENOTEMPTY=d,e.EOPNOTSUPP=f,e.ERR_DIR_CLOSED=p;function t(e,t){return Object.assign(Error(`${e}: ${t}`),{code:e})}function n(e){return t(`EBUSY`,e)}function r(e,n){return t(`ENOSYS`,`${e}, ${n}`)}function i(e){return t(`EINVAL`,`invalid argument, ${e}`)}function a(e){return t(`EBADF`,`bad file descriptor, ${e}`)}function o(e){return t(`ENOENT`,`no such file or directory, ${e}`)}function s(e){return t(`ENOTDIR`,`not a directory, ${e}`)}function c(e){return t(`EISDIR`,`illegal operation on a directory, ${e}`)}function l(e){return t(`EEXIST`,`file already exists, ${e}`)}function u(e){return t(`EROFS`,`read-only filesystem, ${e}`)}function d(e){return t(`ENOTEMPTY`,`directory not empty, ${e}`)}function f(e){return t(`EOPNOTSUPP`,`operation not supported, ${e}`)}function p(){return t(`ERR_DIR_CLOSED`,`Directory handle was closed`)}})),K=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.BigIntStatsEntry=n.StatEntry=n.DirEntry=n.DEFAULT_MODE=void 0,n.makeDefaultStats=c,n.makeEmptyStats=l,n.clearStats=u,n.convertToBigIntStats=d,n.areStatsEqual=f;let r=(U(),e(a)).__importStar(t(`util`)),i=W();n.DEFAULT_MODE=i.S_IFREG|420,n.DirEntry=class{constructor(){this.name=``,this.path=``,this.mode=0}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&i.S_IFMT)===i.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&i.S_IFMT)===i.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&i.S_IFMT)===i.S_IFLNK}};var o=class{constructor(){this.uid=0,this.gid=0,this.size=0,this.blksize=0,this.atimeMs=0,this.mtimeMs=0,this.ctimeMs=0,this.birthtimeMs=0,this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=0,this.ino=0,this.mode=n.DEFAULT_MODE,this.nlink=1,this.rdev=0,this.blocks=1}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&i.S_IFMT)===i.S_IFDIR}isFIFO(){return!1}isFile(){return(this.mode&i.S_IFMT)===i.S_IFREG}isSocket(){return!1}isSymbolicLink(){return(this.mode&i.S_IFMT)===i.S_IFLNK}};n.StatEntry=o;var s=class{constructor(){this.uid=BigInt(0),this.gid=BigInt(0),this.size=BigInt(0),this.blksize=BigInt(0),this.atimeMs=BigInt(0),this.mtimeMs=BigInt(0),this.ctimeMs=BigInt(0),this.birthtimeMs=BigInt(0),this.atimeNs=BigInt(0),this.mtimeNs=BigInt(0),this.ctimeNs=BigInt(0),this.birthtimeNs=BigInt(0),this.atime=new Date(0),this.mtime=new Date(0),this.ctime=new Date(0),this.birthtime=new Date(0),this.dev=BigInt(0),this.ino=BigInt(0),this.mode=BigInt(n.DEFAULT_MODE),this.nlink=BigInt(1),this.rdev=BigInt(0),this.blocks=BigInt(1)}isBlockDevice(){return!1}isCharacterDevice(){return!1}isDirectory(){return(this.mode&BigInt(i.S_IFMT))===BigInt(i.S_IFDIR)}isFIFO(){return!1}isFile(){return(this.mode&BigInt(i.S_IFMT))===BigInt(i.S_IFREG)}isSocket(){return!1}isSymbolicLink(){return(this.mode&BigInt(i.S_IFMT))===BigInt(i.S_IFLNK)}};n.BigIntStatsEntry=s;function c(){return new o}function l(){return u(c())}function u(e){for(let t in e)if(Object.hasOwn(e,t)){let n=e[t];typeof n==`number`?e[t]=0:typeof n==`bigint`?e[t]=BigInt(0):r.types.isDate(n)&&(e[t]=new Date(0))}return e}function d(e){let t=new s;for(let n in e)if(Object.hasOwn(e,n)){let i=e[n];typeof i==`number`?t[n]=BigInt(Math.floor(i)):r.types.isDate(i)&&(t[n]=new Date(i))}return t.atimeNs=t.atimeMs*BigInt(1e6)+BigInt(Math.floor(e.atimeMs%1*1e3))*BigInt(1e3),t.mtimeNs=t.mtimeMs*BigInt(1e6)+BigInt(Math.floor(e.mtimeMs%1*1e3))*BigInt(1e3),t.ctimeNs=t.ctimeMs*BigInt(1e6)+BigInt(Math.floor(e.ctimeMs%1*1e3))*BigInt(1e3),t.birthtimeNs=t.birthtimeMs*BigInt(1e6)+BigInt(Math.floor(e.birthtimeMs%1*1e3))*BigInt(1e3),t}function f(e,t){if(e.atimeMs!==t.atimeMs||e.birthtimeMs!==t.birthtimeMs||e.blksize!==t.blksize||e.blocks!==t.blocks||e.ctimeMs!==t.ctimeMs||e.dev!==t.dev||e.gid!==t.gid||e.ino!==t.ino||e.isBlockDevice()!==t.isBlockDevice()||e.isCharacterDevice()!==t.isCharacterDevice()||e.isDirectory()!==t.isDirectory()||e.isFIFO()!==t.isFIFO()||e.isFile()!==t.isFile()||e.isSocket()!==t.isSocket()||e.isSymbolicLink()!==t.isSymbolicLink()||e.mode!==t.mode||e.mtimeMs!==t.mtimeMs||e.nlink!==t.nlink||e.rdev!==t.rdev||e.size!==t.size||e.uid!==t.uid)return!1;let n=e,r=t;return!(n.atimeNs!==r.atimeNs||n.mtimeNs!==r.mtimeNs||n.ctimeNs!==r.ctimeNs||n.birthtimeNs!==r.birthtimeNs)}})),q=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.ppath=n.npath=n.Filename=n.PortablePath=void 0,n.convertPath=h;let r=(U(),e(a)).__importDefault(t(`path`));var i;(function(e){e[e.File=0]=`File`,e[e.Portable=1]=`Portable`,e[e.Native=2]=`Native`})(i||={}),n.PortablePath={root:`/`,dot:`.`,parent:`..`},n.Filename={home:`~`,nodeModules:`node_modules`,manifest:`package.json`,lockfile:`yarn.lock`,virtual:`__virtual__`,pnpJs:`.pnp.js`,pnpCjs:`.pnp.cjs`,pnpData:`.pnp.data.json`,pnpEsmLoader:`.pnp.loader.mjs`,rc:`.yarnrc.yml`,env:`.env`},n.npath=Object.create(r.default),n.ppath=Object.create(r.default.posix),n.npath.cwd=()=>process.cwd(),n.ppath.cwd=process.platform===`win32`?()=>p(process.cwd()):process.cwd,process.platform===`win32`&&(n.ppath.resolve=(...e)=>e.length>0&&n.ppath.isAbsolute(e[0])?r.default.posix.resolve(...e):r.default.posix.resolve(n.ppath.cwd(),...e));let o=function(e,t,n){return t=e.normalize(t),n=e.normalize(n),t===n?`.`:(t.endsWith(e.sep)||(t+=e.sep),n.startsWith(t)?n.slice(t.length):null)};n.npath.contains=(e,t)=>o(n.npath,e,t),n.ppath.contains=(e,t)=>o(n.ppath,e,t);let s=/^([a-zA-Z]:.*)$/,c=/^\/\/(\.\/)?(.*)$/,l=/^\/([a-zA-Z]:.*)$/,u=/^\/unc\/(\.dot\/)?(.*)$/;function d(e){let t,n;if(t=e.match(l))e=t[1];else if(n=e.match(u))e=`\\\\${n[1]?`.\\`:``}${n[2]}`;else return e;return e.replace(/\//g,`\\`)}function f(e){e=e.replace(/\\/g,`/`);let t,n;return(t=e.match(s))?e=`/${t[1]}`:(n=e.match(c))&&(e=`/unc/${n[1]?`.dot/`:``}${n[2]}`),e}let p=process.platform===`win32`?f:e=>e,m=process.platform===`win32`?d:e=>e;n.npath.fromPortablePath=m,n.npath.toPortablePath=p;function h(e,t){return e===n.npath?m(t):p(t)}})),J=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.setupCopyIndex=s,t.copyPromise=c;let n=(U(),e(a)).__importStar(W()),r=q(),i=new Date(n.SAFE_TIME*1e3),o=i.getTime();async function s(e,t){let n=`0123456789abcdef`;await e.mkdirPromise(t.indexPath,{recursive:!0});let r=[];for(let i of n)for(let a of n)r.push(e.mkdirPromise(e.pathUtils.join(t.indexPath,`${i}${a}`),{recursive:!0}));return await Promise.all(r),t.indexPath}async function c(e,t,n,r,a){let o=e.pathUtils.normalize(t),s=n.pathUtils.normalize(r),c=[],u=[],{atime:d,mtime:f}=a.stableTime?{atime:i,mtime:i}:await n.lstatPromise(s);await e.mkdirpPromise(e.pathUtils.dirname(t),{utimes:[d,f]}),await l(c,u,e,o,n,s,{...a,didParentExist:!0});for(let e of c)await e();await Promise.all(u.map(e=>e()))}async function l(e,t,n,r,a,o,s){let c=s.didParentExist?await u(n,r):null,l=await a.lstatPromise(o),{atime:f,mtime:p}=s.stableTime?{atime:i,mtime:i}:l,g;switch(!0){case l.isDirectory():g=await d(e,t,n,r,c,a,o,l,s);break;case l.isFile():g=await m(e,t,n,r,c,a,o,l,s);break;case l.isSymbolicLink():g=await h(e,t,n,r,c,a,o,l,s);break;default:throw Error(`Unsupported file type (${l.mode})`)}return(s.linkStrategy?.type!==`HardlinkFromIndex`||!l.isFile())&&((g||c?.mtime?.getTime()!==p.getTime()||c?.atime?.getTime()!==f.getTime())&&(t.push(()=>n.lutimesPromise(r,f,p)),g=!0),(c===null||(c.mode&511)!=(l.mode&511))&&(t.push(()=>n.chmodPromise(r,l.mode&511)),g=!0)),g}async function u(e,t){try{return await e.lstatPromise(t)}catch{return null}}async function d(e,t,n,r,i,a,o,s,c){if(i!==null&&!i.isDirectory())if(c.overwrite)e.push(async()=>n.removePromise(r)),i=null;else return!1;let u=!1;i===null&&(e.push(async()=>{try{await n.mkdirPromise(r,{mode:s.mode})}catch(e){if(e.code!==`EEXIST`)throw e}}),u=!0);let d=await a.readdirPromise(o),f=c.didParentExist&&!i?{...c,didParentExist:!1}:c;if(c.stableSort)for(let i of d.sort())await l(e,t,n,n.pathUtils.join(r,i),a,a.pathUtils.join(o,i),f)&&(u=!0);else (await Promise.all(d.map(async i=>{await l(e,t,n,n.pathUtils.join(r,i),a,a.pathUtils.join(o,i),f)}))).some(e=>e)&&(u=!0);return u}async function f(e,t,n,r,a,s,c,l,d,f){let p=await s.checksumFilePromise(c,{algorithm:`sha1`}),m=l.mode&511,h=`${p}${m===420?``:m.toString(8)}`,g=n.pathUtils.join(f.indexPath,p.slice(0,2),`${h}.dat`),_;(function(e){e[e.Lock=0]=`Lock`,e[e.Rename=1]=`Rename`})(_||={});let v=_.Rename,y=await u(n,g);if(a){let t=y&&a.dev===y.dev&&a.ino===y.ino,i=y?.mtimeMs!==o;if(t&&i&&f.autoRepair&&(v=_.Lock,y=null),!t)if(d.overwrite)e.push(async()=>n.removePromise(r)),a=null;else return!1}let b=!y&&v===_.Rename?`${g}.${Math.floor(Math.random()*4294967296).toString(16).padStart(8,`0`)}`:null,x=!1;return e.push(async()=>{if(!y&&(v===_.Lock&&await n.lockPromise(g,async()=>{let e=await s.readFilePromise(c);await n.writeFilePromise(g,e)}),v===_.Rename&&b)){let e=await s.readFilePromise(c);await n.writeFilePromise(b,e);try{await n.linkPromise(b,g)}catch(e){if(e.code===`EEXIST`)x=!0,await n.unlinkPromise(b);else throw e}}a||await n.linkPromise(g,r)}),t.push(async()=>{y||(await n.lutimesPromise(g,i,i),m!==420&&await n.chmodPromise(g,m)),b&&!x&&await n.unlinkPromise(b)}),!1}async function p(e,t,n,r,i,a,o,s,c){if(i!==null)if(c.overwrite)e.push(async()=>n.removePromise(r)),i=null;else return!1;return e.push(async()=>{let e=await a.readFilePromise(o);await n.writeFilePromise(r,e)}),!0}async function m(e,t,n,r,i,a,o,s,c){return c.linkStrategy?.type===`HardlinkFromIndex`?f(e,t,n,r,i,a,o,s,c,c.linkStrategy):p(e,t,n,r,i,a,o,s,c)}async function h(e,t,n,i,a,o,s,c,l){if(a!==null)if(l.overwrite)e.push(async()=>n.removePromise(i)),a=null;else return!1;return e.push(async()=>{await n.symlinkPromise((0,r.convertPath)(n.pathUtils,await o.readlinkPromise(s)),i)}),!0}})),Y=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.CustomDir=void 0,t.opendir=i;let n=(U(),e(a)).__importStar(G());var r=class{constructor(e,t,n={}){this.path=e,this.nextDirent=t,this.opts=n,this.closed=!1}throwIfClosed(){if(this.closed)throw n.ERR_DIR_CLOSED()}async*[Symbol.asyncIterator](){try{let e;for(;(e=await this.read())!==null;)yield e}finally{await this.close()}}read(e){let t=this.readSync();return e===void 0?Promise.resolve(t):e(null,t)}readSync(){return this.throwIfClosed(),this.nextDirent()}close(e){return this.closeSync(),e===void 0?Promise.resolve():e(null)}closeSync(){this.throwIfClosed(),this.opts.onClose?.(),this.closed=!0}};t.CustomDir=r;function i(e,t,n,i){return new r(t,()=>{let r=n.shift();if(r===void 0)return null;let i=e.pathUtils.join(t,r);return Object.assign(e.statSync(i),{name:r,path:void 0})},i)}})),ee=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.CustomStatWatcher=n.Status=n.Event=void 0,n.assertStatus=l;let r=(U(),e(a)),i=t(`events`),o=r.__importStar(K());var s;(function(e){e.Change=`change`,e.Stop=`stop`})(s||(n.Event=s={}));var c;(function(e){e.Ready=`ready`,e.Running=`running`,e.Stopped=`stopped`})(c||(n.Status=c={}));function l(e,t){if(e!==t)throw Error(`Invalid StatWatcher status: expected '${t}', got '${e}'`)}n.CustomStatWatcher=class e extends i.EventEmitter{static create(t,n,r){let i=new e(t,n,r);return i.start(),i}constructor(e,t,{bigint:n=!1}={}){super(),this.status=c.Ready,this.changeListeners=new Map,this.startTimeout=null,this.fakeFs=e,this.path=t,this.bigint=n,this.lastStats=this.stat()}start(){l(this.status,c.Ready),this.status=c.Running,this.startTimeout=setTimeout(()=>{this.startTimeout=null,this.fakeFs.existsSync(this.path)||this.emit(s.Change,this.lastStats,this.lastStats)},3)}stop(){l(this.status,c.Running),this.status=c.Stopped,this.startTimeout!==null&&(clearTimeout(this.startTimeout),this.startTimeout=null),this.emit(s.Stop)}stat(){try{return this.fakeFs.statSync(this.path,{bigint:this.bigint})}catch{let e=this.bigint?new o.BigIntStatsEntry:new o.StatEntry;return o.clearStats(e)}}makeInterval(e){let t=setInterval(()=>{let e=this.stat(),t=this.lastStats;o.areStatsEqual(e,t)||(this.lastStats=e,this.emit(s.Change,e,t))},e.interval);return e.persistent?t:t.unref()}registerChangeListener(e,t){this.addListener(s.Change,e),this.changeListeners.set(e,this.makeInterval(t))}unregisterChangeListener(e){this.removeListener(s.Change,e);let t=this.changeListeners.get(e);t!==void 0&&clearInterval(t),this.changeListeners.delete(e)}unregisterAllChangeListeners(){for(let e of this.changeListeners.keys())this.unregisterChangeListener(e)}hasChangeListeners(){return this.changeListeners.size>0}ref(){for(let e of this.changeListeners.values())e.ref();return this}unref(){for(let e of this.changeListeners.values())e.unref();return this}}})),X=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.watchFile=r,e.unwatchFile=i,e.unwatchAllFiles=a;let t=ee(),n=new WeakMap;function r(e,r,i,a){let o,s,c,l;switch(typeof i){case`function`:o=!1,s=!0,c=5007,l=i;break;default:({bigint:o=!1,persistent:s=!0,interval:c=5007}=i),l=a;break}let u=n.get(e);u===void 0&&n.set(e,u=new Map);let d=u.get(r);return d===void 0&&(d=t.CustomStatWatcher.create(e,r,{bigint:o}),u.set(r,d)),d.registerChangeListener(l,{persistent:s,interval:c}),d}function i(e,t,r){let i=n.get(e);if(i===void 0)return;let a=i.get(t);a!==void 0&&(r===void 0?a.unregisterAllChangeListeners():a.unregisterChangeListener(r),a.hasChangeListeners()||(a.stop(),i.delete(t)))}function a(e){let t=n.get(e);if(t!==void 0)for(let n of t.keys())i(e,n)}})),Z=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BasePortableFakeFS=e.FakeFS=void 0,e.normalizeLineEndings=c;let n=t(`crypto`),r=t(`os`),i=J(),a=q();var o=class{constructor(e){this.pathUtils=e}async*genTraversePromise(e,{stableSort:t=!1}={}){let n=[e];for(;n.length>0;){let e=n.shift();if((await this.lstatPromise(e)).isDirectory()){let r=await this.readdirPromise(e);if(t)for(let t of r.sort())n.push(this.pathUtils.join(e,t));else throw Error(`Not supported`)}else yield e}}async checksumFilePromise(e,{algorithm:t=`sha512`}={}){let r=await this.openPromise(e,`r`);try{let e=65536,i=Buffer.allocUnsafeSlow(e),a=(0,n.createHash)(t),o=0;for(;(o=await this.readPromise(r,i,0,e))!==0;)a.update(o===e?i:i.slice(0,o));return a.digest(`hex`)}finally{await this.closePromise(r)}}async removePromise(e,{recursive:t=!0,maxRetries:n=5}={}){let r;try{r=await this.lstatPromise(e)}catch(e){if(e.code===`ENOENT`)return;throw e}if(r.isDirectory()){if(t){let t=await this.readdirPromise(e);await Promise.all(t.map(t=>this.removePromise(this.pathUtils.resolve(e,t))))}for(let t=0;t<=n;t++)try{await this.rmdirPromise(e);break}catch(e){if(e.code!==`EBUSY`&&e.code!==`ENOTEMPTY`)throw e;t<n&&await new Promise(e=>setTimeout(e,t*100))}}else await this.unlinkPromise(e)}removeSync(e,{recursive:t=!0}={}){let n;try{n=this.lstatSync(e)}catch(e){if(e.code===`ENOENT`)return;throw e}if(n.isDirectory()){if(t)for(let t of this.readdirSync(e))this.removeSync(this.pathUtils.resolve(e,t));this.rmdirSync(e)}else this.unlinkSync(e)}async mkdirpPromise(e,{chmod:t,utimes:n}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let r=e.split(this.pathUtils.sep),i;for(let e=2;e<=r.length;++e){let a=r.slice(0,e).join(this.pathUtils.sep);if(!this.existsSync(a)){try{await this.mkdirPromise(a)}catch(e){if(e.code===`EEXIST`)continue;throw e}if(i??=a,t!=null&&await this.chmodPromise(a,t),n!=null)await this.utimesPromise(a,n[0],n[1]);else{let e=await this.statPromise(this.pathUtils.dirname(a));await this.utimesPromise(a,e.atime,e.mtime)}}}return i}mkdirpSync(e,{chmod:t,utimes:n}={}){if(e=this.resolve(e),e===this.pathUtils.dirname(e))return;let r=e.split(this.pathUtils.sep),i;for(let e=2;e<=r.length;++e){let a=r.slice(0,e).join(this.pathUtils.sep);if(!this.existsSync(a)){try{this.mkdirSync(a)}catch(e){if(e.code===`EEXIST`)continue;throw e}if(i??=a,t!=null&&this.chmodSync(a,t),n!=null)this.utimesSync(a,n[0],n[1]);else{let e=this.statSync(this.pathUtils.dirname(a));this.utimesSync(a,e.atime,e.mtime)}}}return i}async copyPromise(e,t,{baseFs:n=this,overwrite:r=!0,stableSort:a=!1,stableTime:o=!1,linkStrategy:s=null}={}){return await(0,i.copyPromise)(this,e,n,t,{overwrite:r,stableSort:a,stableTime:o,linkStrategy:s})}copySync(e,t,{baseFs:n=this,overwrite:r=!0}={}){let i=n.lstatSync(t),o=this.existsSync(e);if(i.isDirectory()){this.mkdirpSync(e);let i=n.readdirSync(t);for(let a of i)this.copySync(this.pathUtils.join(e,a),n.pathUtils.join(t,a),{baseFs:n,overwrite:r})}else if(i.isFile()){if(!o||r){o&&this.removeSync(e);let r=n.readFileSync(t);this.writeFileSync(e,r)}}else if(i.isSymbolicLink()){if(!o||r){o&&this.removeSync(e);let r=n.readlinkSync(t);this.symlinkSync((0,a.convertPath)(this.pathUtils,r),e)}}else throw Error(`Unsupported file type (file: ${t}, mode: 0o${i.mode.toString(8).padStart(6,`0`)})`);let s=i.mode&511;this.chmodSync(e,s)}async changeFilePromise(e,t,n={}){return Buffer.isBuffer(t)?this.changeFileBufferPromise(e,t,n):this.changeFileTextPromise(e,t,n)}async changeFileBufferPromise(e,t,{mode:n}={}){let r=Buffer.alloc(0);try{r=await this.readFilePromise(e)}catch{}Buffer.compare(r,t)!==0&&await this.writeFilePromise(e,t,{mode:n})}async changeFileTextPromise(e,t,{automaticNewlines:n,mode:r}={}){let i=``;try{i=await this.readFilePromise(e,`utf8`)}catch{}let a=n?c(i,t):t;i!==a&&await this.writeFilePromise(e,a,{mode:r})}changeFileSync(e,t,n={}){return Buffer.isBuffer(t)?this.changeFileBufferSync(e,t,n):this.changeFileTextSync(e,t,n)}changeFileBufferSync(e,t,{mode:n}={}){let r=Buffer.alloc(0);try{r=this.readFileSync(e)}catch{}Buffer.compare(r,t)!==0&&this.writeFileSync(e,t,{mode:n})}changeFileTextSync(e,t,{automaticNewlines:n=!1,mode:r}={}){let i=``;try{i=this.readFileSync(e,`utf8`)}catch{}let a=n?c(i,t):t;i!==a&&this.writeFileSync(e,a,{mode:r})}async movePromise(e,t){try{await this.renamePromise(e,t)}catch(n){if(n.code===`EXDEV`)await this.copyPromise(t,e),await this.removePromise(e);else throw n}}moveSync(e,t){try{this.renameSync(e,t)}catch(n){if(n.code===`EXDEV`)this.copySync(t,e),this.removeSync(e);else throw n}}async lockPromise(e,t){let n=`${e}.flock`,r=Date.now(),i=null,a=async()=>{let e;try{[e]=await this.readJsonPromise(n)}catch{return Date.now()-r<500}try{return process.kill(e,0),!0}catch{return!1}};for(;i===null;)try{i=await this.openPromise(n,`wx`)}catch(e){if(e.code===`EEXIST`){if(!await a())try{await this.unlinkPromise(n);continue}catch{}if(Date.now()-r<60*1e3)await new Promise(e=>setTimeout(e,16.666666666666668));else throw Error(`Couldn't acquire a lock in a reasonable time (via ${n})`)}else throw e}await this.writePromise(i,JSON.stringify([process.pid]));try{return await t()}finally{try{await this.closePromise(i),await this.unlinkPromise(n)}catch{}}}async readJsonPromise(e){let t=await this.readFilePromise(e,`utf8`);try{return JSON.parse(t)}catch(t){throw t.message+=` (in ${e})`,t}}readJsonSync(e){let t=this.readFileSync(e,`utf8`);try{return JSON.parse(t)}catch(t){throw t.message+=` (in ${e})`,t}}async writeJsonPromise(e,t,{compact:n=!1}={}){let r=n?0:2;return await this.writeFilePromise(e,`${JSON.stringify(t,null,r)}\n`)}writeJsonSync(e,t,{compact:n=!1}={}){let r=n?0:2;return this.writeFileSync(e,`${JSON.stringify(t,null,r)}\n`)}async preserveTimePromise(e,t){let n=await this.lstatPromise(e),r=await t();r!==void 0&&(e=r),await this.lutimesPromise(e,n.atime,n.mtime)}async preserveTimeSync(e,t){let n=this.lstatSync(e),r=t();r!==void 0&&(e=r),this.lutimesSync(e,n.atime,n.mtime)}};e.FakeFS=o,e.BasePortableFakeFS=class extends o{constructor(){super(a.ppath)}};function s(e){let t=e.match(/\r?\n/g);if(t===null)return r.EOL;let n=t.filter(e=>e===`\r
2
2
  `).length;return n>t.length-n?`\r
3
3
  `:`
4
4
  `}function c(e,t){return t.replace(/\r?\n/g,s(e))}})),Q=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ProxiedFS=void 0;let t=Z();e.ProxiedFS=class extends t.FakeFS{getExtractHint(e){return this.baseFs.getExtractHint(e)}resolve(e){return this.mapFromBase(this.baseFs.resolve(this.mapToBase(e)))}getRealPath(){return this.mapFromBase(this.baseFs.getRealPath())}async openPromise(e,t,n){return this.baseFs.openPromise(this.mapToBase(e),t,n)}openSync(e,t,n){return this.baseFs.openSync(this.mapToBase(e),t,n)}async opendirPromise(e,t){return Object.assign(await this.baseFs.opendirPromise(this.mapToBase(e),t),{path:e})}opendirSync(e,t){return Object.assign(this.baseFs.opendirSync(this.mapToBase(e),t),{path:e})}async readPromise(e,t,n,r,i){return await this.baseFs.readPromise(e,t,n,r,i)}readSync(e,t,n,r,i){return this.baseFs.readSync(e,t,n,r,i)}async writePromise(e,t,n,r,i){return typeof t==`string`?await this.baseFs.writePromise(e,t,n):await this.baseFs.writePromise(e,t,n,r,i)}writeSync(e,t,n,r,i){return typeof t==`string`?this.baseFs.writeSync(e,t,n):this.baseFs.writeSync(e,t,n,r,i)}async closePromise(e){return this.baseFs.closePromise(e)}closeSync(e){this.baseFs.closeSync(e)}createReadStream(e,t){return this.baseFs.createReadStream(e===null?e:this.mapToBase(e),t)}createWriteStream(e,t){return this.baseFs.createWriteStream(e===null?e:this.mapToBase(e),t)}async realpathPromise(e){return this.mapFromBase(await this.baseFs.realpathPromise(this.mapToBase(e)))}realpathSync(e){return this.mapFromBase(this.baseFs.realpathSync(this.mapToBase(e)))}async existsPromise(e){return this.baseFs.existsPromise(this.mapToBase(e))}existsSync(e){return this.baseFs.existsSync(this.mapToBase(e))}accessSync(e,t){return this.baseFs.accessSync(this.mapToBase(e),t)}async accessPromise(e,t){return this.baseFs.accessPromise(this.mapToBase(e),t)}async statPromise(e,t){return this.baseFs.statPromise(this.mapToBase(e),t)}statSync(e,t){return this.baseFs.statSync(this.mapToBase(e),t)}async fstatPromise(e,t){return this.baseFs.fstatPromise(e,t)}fstatSync(e,t){return this.baseFs.fstatSync(e,t)}lstatPromise(e,t){return this.baseFs.lstatPromise(this.mapToBase(e),t)}lstatSync(e,t){return this.baseFs.lstatSync(this.mapToBase(e),t)}async fchmodPromise(e,t){return this.baseFs.fchmodPromise(e,t)}fchmodSync(e,t){return this.baseFs.fchmodSync(e,t)}async chmodPromise(e,t){return this.baseFs.chmodPromise(this.mapToBase(e),t)}chmodSync(e,t){return this.baseFs.chmodSync(this.mapToBase(e),t)}async fchownPromise(e,t,n){return this.baseFs.fchownPromise(e,t,n)}fchownSync(e,t,n){return this.baseFs.fchownSync(e,t,n)}async chownPromise(e,t,n){return this.baseFs.chownPromise(this.mapToBase(e),t,n)}chownSync(e,t,n){return this.baseFs.chownSync(this.mapToBase(e),t,n)}async renamePromise(e,t){return this.baseFs.renamePromise(this.mapToBase(e),this.mapToBase(t))}renameSync(e,t){return this.baseFs.renameSync(this.mapToBase(e),this.mapToBase(t))}async copyFilePromise(e,t,n=0){return this.baseFs.copyFilePromise(this.mapToBase(e),this.mapToBase(t),n)}copyFileSync(e,t,n=0){return this.baseFs.copyFileSync(this.mapToBase(e),this.mapToBase(t),n)}async appendFilePromise(e,t,n){return this.baseFs.appendFilePromise(this.fsMapToBase(e),t,n)}appendFileSync(e,t,n){return this.baseFs.appendFileSync(this.fsMapToBase(e),t,n)}async writeFilePromise(e,t,n){return this.baseFs.writeFilePromise(this.fsMapToBase(e),t,n)}writeFileSync(e,t,n){return this.baseFs.writeFileSync(this.fsMapToBase(e),t,n)}async unlinkPromise(e){return this.baseFs.unlinkPromise(this.mapToBase(e))}unlinkSync(e){return this.baseFs.unlinkSync(this.mapToBase(e))}async utimesPromise(e,t,n){return this.baseFs.utimesPromise(this.mapToBase(e),t,n)}utimesSync(e,t,n){return this.baseFs.utimesSync(this.mapToBase(e),t,n)}async lutimesPromise(e,t,n){return this.baseFs.lutimesPromise(this.mapToBase(e),t,n)}lutimesSync(e,t,n){return this.baseFs.lutimesSync(this.mapToBase(e),t,n)}async mkdirPromise(e,t){return this.baseFs.mkdirPromise(this.mapToBase(e),t)}mkdirSync(e,t){return this.baseFs.mkdirSync(this.mapToBase(e),t)}async rmdirPromise(e,t){return this.baseFs.rmdirPromise(this.mapToBase(e),t)}rmdirSync(e,t){return this.baseFs.rmdirSync(this.mapToBase(e),t)}async rmPromise(e,t){return this.baseFs.rmPromise(this.mapToBase(e),t)}rmSync(e,t){return this.baseFs.rmSync(this.mapToBase(e),t)}async linkPromise(e,t){return this.baseFs.linkPromise(this.mapToBase(e),this.mapToBase(t))}linkSync(e,t){return this.baseFs.linkSync(this.mapToBase(e),this.mapToBase(t))}async symlinkPromise(e,t,n){let r=this.mapToBase(t);if(this.pathUtils.isAbsolute(e))return this.baseFs.symlinkPromise(this.mapToBase(e),r,n);let i=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(t),e)),a=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(r),i);return this.baseFs.symlinkPromise(a,r,n)}symlinkSync(e,t,n){let r=this.mapToBase(t);if(this.pathUtils.isAbsolute(e))return this.baseFs.symlinkSync(this.mapToBase(e),r,n);let i=this.mapToBase(this.pathUtils.join(this.pathUtils.dirname(t),e)),a=this.baseFs.pathUtils.relative(this.baseFs.pathUtils.dirname(r),i);return this.baseFs.symlinkSync(a,r,n)}async readFilePromise(e,t){return this.baseFs.readFilePromise(this.fsMapToBase(e),t)}readFileSync(e,t){return this.baseFs.readFileSync(this.fsMapToBase(e),t)}readdirPromise(e,t){return this.baseFs.readdirPromise(this.mapToBase(e),t)}readdirSync(e,t){return this.baseFs.readdirSync(this.mapToBase(e),t)}async readlinkPromise(e){return this.mapFromBase(await this.baseFs.readlinkPromise(this.mapToBase(e)))}readlinkSync(e){return this.mapFromBase(this.baseFs.readlinkSync(this.mapToBase(e)))}async truncatePromise(e,t){return this.baseFs.truncatePromise(this.mapToBase(e),t)}truncateSync(e,t){return this.baseFs.truncateSync(this.mapToBase(e),t)}async ftruncatePromise(e,t){return this.baseFs.ftruncatePromise(e,t)}ftruncateSync(e,t){return this.baseFs.ftruncateSync(e,t)}watch(e,t,n){return this.baseFs.watch(this.mapToBase(e),t,n)}watchFile(e,t,n){return this.baseFs.watchFile(this.mapToBase(e),t,n)}unwatchFile(e,t){return this.baseFs.unwatchFile(this.mapToBase(e),t)}fsMapToBase(e){return typeof e==`number`?e:this.mapToBase(e)}}})),te=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.AliasFS=void 0;let t=Q();e.AliasFS=class extends t.ProxiedFS{constructor(e,{baseFs:t,pathUtils:n}){super(n),this.target=e,this.baseFs=t}getRealPath(){return this.target}getBaseFs(){return this.baseFs}mapFromBase(e){return e}mapToBase(e){return e}}})),$=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.NodeFS=void 0;let r=(U(),e(a)).__importDefault(t(`fs`)),i=Z(),o=q();function s(e){let t=e;return typeof e.path==`string`&&(t.path=o.npath.toPortablePath(e.path)),t}n.NodeFS=class extends i.BasePortableFakeFS{constructor(e=r.default){super(),this.realFs=e}getExtractHint(){return!1}getRealPath(){return o.PortablePath.root}resolve(e){return o.ppath.resolve(e)}async openPromise(e,t,n){return await new Promise((r,i)=>{this.realFs.open(o.npath.fromPortablePath(e),t,n,this.makeCallback(r,i))})}openSync(e,t,n){return this.realFs.openSync(o.npath.fromPortablePath(e),t,n)}async opendirPromise(e,t){return await new Promise((n,r)=>{t===void 0?this.realFs.opendir(o.npath.fromPortablePath(e),this.makeCallback(n,r)):this.realFs.opendir(o.npath.fromPortablePath(e),t,this.makeCallback(n,r))}).then(t=>{let n=t;return Object.defineProperty(n,`path`,{value:e,configurable:!0,writable:!0}),n})}opendirSync(e,t){let n=t===void 0?this.realFs.opendirSync(o.npath.fromPortablePath(e)):this.realFs.opendirSync(o.npath.fromPortablePath(e),t);return Object.defineProperty(n,`path`,{value:e,configurable:!0,writable:!0}),n}async readPromise(e,t,n=0,r=0,i=-1){return await new Promise((a,o)=>{this.realFs.read(e,t,n,r,i,(e,t)=>{e?o(e):a(t)})})}readSync(e,t,n,r,i){return this.realFs.readSync(e,t,n,r,i)}async writePromise(e,t,n,r,i){return await new Promise((a,o)=>typeof t==`string`?this.realFs.write(e,t,n,this.makeCallback(a,o)):this.realFs.write(e,t,n,r,i,this.makeCallback(a,o)))}writeSync(e,t,n,r,i){return typeof t==`string`?this.realFs.writeSync(e,t,n):this.realFs.writeSync(e,t,n,r,i)}async closePromise(e){await new Promise((t,n)=>{this.realFs.close(e,this.makeCallback(t,n))})}closeSync(e){this.realFs.closeSync(e)}createReadStream(e,t){let n=e===null?e:o.npath.fromPortablePath(e);return this.realFs.createReadStream(n,t)}createWriteStream(e,t){let n=e===null?e:o.npath.fromPortablePath(e);return this.realFs.createWriteStream(n,t)}async realpathPromise(e){return await new Promise((t,n)=>{this.realFs.realpath(o.npath.fromPortablePath(e),{},this.makeCallback(t,n))}).then(e=>o.npath.toPortablePath(e))}realpathSync(e){return o.npath.toPortablePath(this.realFs.realpathSync(o.npath.fromPortablePath(e),{}))}async existsPromise(e){return await new Promise(t=>{this.realFs.exists(o.npath.fromPortablePath(e),t)})}accessSync(e,t){return this.realFs.accessSync(o.npath.fromPortablePath(e),t)}async accessPromise(e,t){return await new Promise((n,r)=>{this.realFs.access(o.npath.fromPortablePath(e),t,this.makeCallback(n,r))})}existsSync(e){return this.realFs.existsSync(o.npath.fromPortablePath(e))}async statPromise(e,t){return await new Promise((n,r)=>{t?this.realFs.stat(o.npath.fromPortablePath(e),t,this.makeCallback(n,r)):this.realFs.stat(o.npath.fromPortablePath(e),this.makeCallback(n,r))})}statSync(e,t){return t?this.realFs.statSync(o.npath.fromPortablePath(e),t):this.realFs.statSync(o.npath.fromPortablePath(e))}async fstatPromise(e,t){return await new Promise((n,r)=>{t?this.realFs.fstat(e,t,this.makeCallback(n,r)):this.realFs.fstat(e,this.makeCallback(n,r))})}fstatSync(e,t){return t?this.realFs.fstatSync(e,t):this.realFs.fstatSync(e)}async lstatPromise(e,t){return await new Promise((n,r)=>{t?this.realFs.lstat(o.npath.fromPortablePath(e),t,this.makeCallback(n,r)):this.realFs.lstat(o.npath.fromPortablePath(e),this.makeCallback(n,r))})}lstatSync(e,t){return t?this.realFs.lstatSync(o.npath.fromPortablePath(e),t):this.realFs.lstatSync(o.npath.fromPortablePath(e))}async fchmodPromise(e,t){return await new Promise((n,r)=>{this.realFs.fchmod(e,t,this.makeCallback(n,r))})}fchmodSync(e,t){return this.realFs.fchmodSync(e,t)}async chmodPromise(e,t){return await new Promise((n,r)=>{this.realFs.chmod(o.npath.fromPortablePath(e),t,this.makeCallback(n,r))})}chmodSync(e,t){return this.realFs.chmodSync(o.npath.fromPortablePath(e),t)}async fchownPromise(e,t,n){return await new Promise((r,i)=>{this.realFs.fchown(e,t,n,this.makeCallback(r,i))})}fchownSync(e,t,n){return this.realFs.fchownSync(e,t,n)}async chownPromise(e,t,n){return await new Promise((r,i)=>{this.realFs.chown(o.npath.fromPortablePath(e),t,n,this.makeCallback(r,i))})}chownSync(e,t,n){return this.realFs.chownSync(o.npath.fromPortablePath(e),t,n)}async renamePromise(e,t){return await new Promise((n,r)=>{this.realFs.rename(o.npath.fromPortablePath(e),o.npath.fromPortablePath(t),this.makeCallback(n,r))})}renameSync(e,t){return this.realFs.renameSync(o.npath.fromPortablePath(e),o.npath.fromPortablePath(t))}async copyFilePromise(e,t,n=0){return await new Promise((r,i)=>{this.realFs.copyFile(o.npath.fromPortablePath(e),o.npath.fromPortablePath(t),n,this.makeCallback(r,i))})}copyFileSync(e,t,n=0){return this.realFs.copyFileSync(o.npath.fromPortablePath(e),o.npath.fromPortablePath(t),n)}async appendFilePromise(e,t,n){return await new Promise((r,i)=>{let a=typeof e==`string`?o.npath.fromPortablePath(e):e;n?this.realFs.appendFile(a,t,n,this.makeCallback(r,i)):this.realFs.appendFile(a,t,this.makeCallback(r,i))})}appendFileSync(e,t,n){let r=typeof e==`string`?o.npath.fromPortablePath(e):e;n?this.realFs.appendFileSync(r,t,n):this.realFs.appendFileSync(r,t)}async writeFilePromise(e,t,n){return await new Promise((r,i)=>{let a=typeof e==`string`?o.npath.fromPortablePath(e):e;n?this.realFs.writeFile(a,t,n,this.makeCallback(r,i)):this.realFs.writeFile(a,t,this.makeCallback(r,i))})}writeFileSync(e,t,n){let r=typeof e==`string`?o.npath.fromPortablePath(e):e;n?this.realFs.writeFileSync(r,t,n):this.realFs.writeFileSync(r,t)}async unlinkPromise(e){return await new Promise((t,n)=>{this.realFs.unlink(o.npath.fromPortablePath(e),this.makeCallback(t,n))})}unlinkSync(e){return this.realFs.unlinkSync(o.npath.fromPortablePath(e))}async utimesPromise(e,t,n){return await new Promise((r,i)=>{this.realFs.utimes(o.npath.fromPortablePath(e),t,n,this.makeCallback(r,i))})}utimesSync(e,t,n){this.realFs.utimesSync(o.npath.fromPortablePath(e),t,n)}async lutimesPromise(e,t,n){return await new Promise((r,i)=>{this.realFs.lutimes(o.npath.fromPortablePath(e),t,n,this.makeCallback(r,i))})}lutimesSync(e,t,n){this.realFs.lutimesSync(o.npath.fromPortablePath(e),t,n)}async mkdirPromise(e,t){return await new Promise((n,r)=>{this.realFs.mkdir(o.npath.fromPortablePath(e),t,this.makeCallback(n,r))})}mkdirSync(e,t){return this.realFs.mkdirSync(o.npath.fromPortablePath(e),t)}async rmdirPromise(e,t){return await new Promise((n,r)=>{t?this.realFs.rmdir(o.npath.fromPortablePath(e),t,this.makeCallback(n,r)):this.realFs.rmdir(o.npath.fromPortablePath(e),this.makeCallback(n,r))})}rmdirSync(e,t){return this.realFs.rmdirSync(o.npath.fromPortablePath(e),t)}async rmPromise(e,t){return await new Promise((n,r)=>{t?this.realFs.rm(o.npath.fromPortablePath(e),t,this.makeCallback(n,r)):this.realFs.rm(o.npath.fromPortablePath(e),this.makeCallback(n,r))})}rmSync(e,t){return this.realFs.rmSync(o.npath.fromPortablePath(e),t)}async linkPromise(e,t){return await new Promise((n,r)=>{this.realFs.link(o.npath.fromPortablePath(e),o.npath.fromPortablePath(t),this.makeCallback(n,r))})}linkSync(e,t){return this.realFs.linkSync(o.npath.fromPortablePath(e),o.npath.fromPortablePath(t))}async symlinkPromise(e,t,n){return await new Promise((r,i)=>{this.realFs.symlink(o.npath.fromPortablePath(e.replace(/\/+$/,``)),o.npath.fromPortablePath(t),n,this.makeCallback(r,i))})}symlinkSync(e,t,n){return this.realFs.symlinkSync(o.npath.fromPortablePath(e.replace(/\/+$/,``)),o.npath.fromPortablePath(t),n)}async readFilePromise(e,t){return await new Promise((n,r)=>{let i=typeof e==`string`?o.npath.fromPortablePath(e):e;this.realFs.readFile(i,t,this.makeCallback(n,r))})}readFileSync(e,t){let n=typeof e==`string`?o.npath.fromPortablePath(e):e;return this.realFs.readFileSync(n,t)}async readdirPromise(e,t){return await new Promise((n,r)=>{t?t.recursive&&process.platform===`win32`?t.withFileTypes?this.realFs.readdir(o.npath.fromPortablePath(e),t,this.makeCallback(e=>n(e.map(s)),r)):this.realFs.readdir(o.npath.fromPortablePath(e),t,this.makeCallback(e=>n(e.map(o.npath.toPortablePath)),r)):this.realFs.readdir(o.npath.fromPortablePath(e),t,this.makeCallback(n,r)):this.realFs.readdir(o.npath.fromPortablePath(e),this.makeCallback(n,r))})}readdirSync(e,t){return t?t.recursive&&process.platform===`win32`?t.withFileTypes?this.realFs.readdirSync(o.npath.fromPortablePath(e),t).map(s):this.realFs.readdirSync(o.npath.fromPortablePath(e),t).map(o.npath.toPortablePath):this.realFs.readdirSync(o.npath.fromPortablePath(e),t):this.realFs.readdirSync(o.npath.fromPortablePath(e))}async readlinkPromise(e){return await new Promise((t,n)=>{this.realFs.readlink(o.npath.fromPortablePath(e),this.makeCallback(t,n))}).then(e=>o.npath.toPortablePath(e))}readlinkSync(e){return o.npath.toPortablePath(this.realFs.readlinkSync(o.npath.fromPortablePath(e)))}async truncatePromise(e,t){return await new Promise((n,r)=>{this.realFs.truncate(o.npath.fromPortablePath(e),t,this.makeCallback(n,r))})}truncateSync(e,t){return this.realFs.truncateSync(o.npath.fromPortablePath(e),t)}async ftruncatePromise(e,t){return await new Promise((n,r)=>{this.realFs.ftruncate(e,t,this.makeCallback(n,r))})}ftruncateSync(e,t){return this.realFs.ftruncateSync(e,t)}watch(e,t,n){return this.realFs.watch(o.npath.fromPortablePath(e),t,n)}watchFile(e,t,n){return this.realFs.watchFile(o.npath.fromPortablePath(e),t,n)}unwatchFile(e,t){return this.realFs.unwatchFile(o.npath.fromPortablePath(e),t)}makeCallback(e,t){return(n,r)=>{n?t(n):e(r)}}}})),ne=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CwdFS=void 0;let t=$(),n=Q(),r=q();e.CwdFS=class extends n.ProxiedFS{constructor(e,{baseFs:n=new t.NodeFS}={}){super(r.ppath),this.target=this.pathUtils.normalize(e),this.baseFs=n}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.target)}resolve(e){return this.pathUtils.isAbsolute(e)?r.ppath.normalize(e):this.baseFs.resolve(r.ppath.join(this.target,e))}mapFromBase(e){return e}mapToBase(e){return this.pathUtils.isAbsolute(e)?e:this.pathUtils.join(this.target,e)}}})),re=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.JailFS=void 0;let t=$(),n=Q(),r=q(),i=r.PortablePath.root;e.JailFS=class extends n.ProxiedFS{constructor(e,{baseFs:n=new t.NodeFS}={}){super(r.ppath),this.target=this.pathUtils.resolve(r.PortablePath.root,e),this.baseFs=n}getRealPath(){return this.pathUtils.resolve(this.baseFs.getRealPath(),this.pathUtils.relative(r.PortablePath.root,this.target))}getTarget(){return this.target}getBaseFs(){return this.baseFs}mapToBase(e){let t=this.pathUtils.normalize(e);if(this.pathUtils.isAbsolute(e))return this.pathUtils.resolve(this.target,this.pathUtils.relative(i,e));if(t.match(/^\.\.\/?/))throw Error(`Resolving this path (${e}) would escape the jail`);return this.pathUtils.resolve(this.target,e)}mapFromBase(e){return this.pathUtils.resolve(i,this.pathUtils.relative(this.target,e))}}})),ie=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.LazyFS=void 0;let t=Q();e.LazyFS=class extends t.ProxiedFS{constructor(e,t){super(t),this.instance=null,this.factory=e}get baseFs(){return this.instance||=this.factory(),this.instance}set baseFs(e){this.instance=e}mapFromBase(e){return e}mapToBase(e){return e}}})),ae=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.MountFS=void 0;let r=(U(),e(a)),i=t(`fs`),o=Z(),s=$(),c=X(),l=r.__importStar(G()),u=q(),d=4278190080;n.MountFS=class extends o.BasePortableFakeFS{constructor({baseFs:e=new s.NodeFS,filter:t=null,magicByte:n=42,maxOpenFiles:r=1/0,useCache:a=!0,maxAge:o=5e3,typeCheck:c=i.constants.S_IFREG,getMountPoint:l,factoryPromise:u,factorySync:d}){if(Math.floor(n)!==n||!(n>1&&n<=127))throw Error(`The magic byte must be set to a round value between 1 and 127 included`);super(),this.fdMap=new Map,this.nextFd=3,this.isMount=new Set,this.notMount=new Set,this.realPaths=new Map,this.limitOpenFilesTimeout=null,this.baseFs=e,this.mountInstances=a?new Map:null,this.factoryPromise=u,this.factorySync=d,this.filter=t,this.getMountPoint=l,this.magic=n<<24,this.maxAge=o,this.maxOpenFiles=r,this.typeCheck=c}getExtractHint(e){return this.baseFs.getExtractHint(e)}getRealPath(){return this.baseFs.getRealPath()}saveAndClose(){if((0,c.unwatchAllFiles)(this),this.mountInstances)for(let[e,{childFs:t}]of this.mountInstances.entries())t.saveAndClose?.(),this.mountInstances.delete(e)}discardAndClose(){if((0,c.unwatchAllFiles)(this),this.mountInstances)for(let[e,{childFs:t}]of this.mountInstances.entries())t.discardAndClose?.(),this.mountInstances.delete(e)}resolve(e){return this.baseFs.resolve(e)}remapFd(e,t){let n=this.nextFd++|this.magic;return this.fdMap.set(n,[e,t]),n}async openPromise(e,t,n){return await this.makeCallPromise(e,async()=>await this.baseFs.openPromise(e,t,n),async(e,{subPath:r})=>this.remapFd(e,await e.openPromise(r,t,n)))}openSync(e,t,n){return this.makeCallSync(e,()=>this.baseFs.openSync(e,t,n),(e,{subPath:r})=>this.remapFd(e,e.openSync(r,t,n)))}async opendirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.opendirPromise(e,t),async(e,{subPath:n})=>await e.opendirPromise(n,t),{requireSubpath:!1})}opendirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.opendirSync(e,t),(e,{subPath:n})=>e.opendirSync(n,t),{requireSubpath:!1})}async readPromise(e,t,n,r,i){if((e&d)!==this.magic)return await this.baseFs.readPromise(e,t,n,r,i);let a=this.fdMap.get(e);if(a===void 0)throw l.EBADF(`read`);let[o,s]=a;return await o.readPromise(s,t,n,r,i)}readSync(e,t,n,r,i){if((e&d)!==this.magic)return this.baseFs.readSync(e,t,n,r,i);let a=this.fdMap.get(e);if(a===void 0)throw l.EBADF(`readSync`);let[o,s]=a;return o.readSync(s,t,n,r,i)}async writePromise(e,t,n,r,i){if((e&d)!==this.magic)return typeof t==`string`?await this.baseFs.writePromise(e,t,n):await this.baseFs.writePromise(e,t,n,r,i);let a=this.fdMap.get(e);if(a===void 0)throw l.EBADF(`write`);let[o,s]=a;return typeof t==`string`?await o.writePromise(s,t,n):await o.writePromise(s,t,n,r,i)}writeSync(e,t,n,r,i){if((e&d)!==this.magic)return typeof t==`string`?this.baseFs.writeSync(e,t,n):this.baseFs.writeSync(e,t,n,r,i);let a=this.fdMap.get(e);if(a===void 0)throw l.EBADF(`writeSync`);let[o,s]=a;return typeof t==`string`?o.writeSync(s,t,n):o.writeSync(s,t,n,r,i)}async closePromise(e){if((e&d)!==this.magic)return await this.baseFs.closePromise(e);let t=this.fdMap.get(e);if(t===void 0)throw l.EBADF(`close`);this.fdMap.delete(e);let[n,r]=t;return await n.closePromise(r)}closeSync(e){if((e&d)!==this.magic)return this.baseFs.closeSync(e);let t=this.fdMap.get(e);if(t===void 0)throw l.EBADF(`closeSync`);this.fdMap.delete(e);let[n,r]=t;return n.closeSync(r)}createReadStream(e,t){return e===null?this.baseFs.createReadStream(e,t):this.makeCallSync(e,()=>this.baseFs.createReadStream(e,t),(e,{archivePath:n,subPath:r})=>{let i=e.createReadStream(r,t);return i.path=u.npath.fromPortablePath(this.pathUtils.join(n,r)),i})}createWriteStream(e,t){return e===null?this.baseFs.createWriteStream(e,t):this.makeCallSync(e,()=>this.baseFs.createWriteStream(e,t),(e,{subPath:n})=>e.createWriteStream(n,t))}async realpathPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.realpathPromise(e),async(e,{archivePath:t,subPath:n})=>{let r=this.realPaths.get(t);return r===void 0&&(r=await this.baseFs.realpathPromise(t),this.realPaths.set(t,r)),this.pathUtils.join(r,this.pathUtils.relative(u.PortablePath.root,await e.realpathPromise(n)))})}realpathSync(e){return this.makeCallSync(e,()=>this.baseFs.realpathSync(e),(e,{archivePath:t,subPath:n})=>{let r=this.realPaths.get(t);return r===void 0&&(r=this.baseFs.realpathSync(t),this.realPaths.set(t,r)),this.pathUtils.join(r,this.pathUtils.relative(u.PortablePath.root,e.realpathSync(n)))})}async existsPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.existsPromise(e),async(e,{subPath:t})=>await e.existsPromise(t))}existsSync(e){return this.makeCallSync(e,()=>this.baseFs.existsSync(e),(e,{subPath:t})=>e.existsSync(t))}async accessPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.accessPromise(e,t),async(e,{subPath:n})=>await e.accessPromise(n,t))}accessSync(e,t){return this.makeCallSync(e,()=>this.baseFs.accessSync(e,t),(e,{subPath:n})=>e.accessSync(n,t))}async statPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.statPromise(e,t),async(e,{subPath:n})=>await e.statPromise(n,t))}statSync(e,t){return this.makeCallSync(e,()=>this.baseFs.statSync(e,t),(e,{subPath:n})=>e.statSync(n,t))}async fstatPromise(e,t){if((e&d)!==this.magic)return this.baseFs.fstatPromise(e,t);let n=this.fdMap.get(e);if(n===void 0)throw l.EBADF(`fstat`);let[r,i]=n;return r.fstatPromise(i,t)}fstatSync(e,t){if((e&d)!==this.magic)return this.baseFs.fstatSync(e,t);let n=this.fdMap.get(e);if(n===void 0)throw l.EBADF(`fstatSync`);let[r,i]=n;return r.fstatSync(i,t)}async lstatPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.lstatPromise(e,t),async(e,{subPath:n})=>await e.lstatPromise(n,t))}lstatSync(e,t){return this.makeCallSync(e,()=>this.baseFs.lstatSync(e,t),(e,{subPath:n})=>e.lstatSync(n,t))}async fchmodPromise(e,t){if((e&d)!==this.magic)return this.baseFs.fchmodPromise(e,t);let n=this.fdMap.get(e);if(n===void 0)throw l.EBADF(`fchmod`);let[r,i]=n;return r.fchmodPromise(i,t)}fchmodSync(e,t){if((e&d)!==this.magic)return this.baseFs.fchmodSync(e,t);let n=this.fdMap.get(e);if(n===void 0)throw l.EBADF(`fchmodSync`);let[r,i]=n;return r.fchmodSync(i,t)}async chmodPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.chmodPromise(e,t),async(e,{subPath:n})=>await e.chmodPromise(n,t))}chmodSync(e,t){return this.makeCallSync(e,()=>this.baseFs.chmodSync(e,t),(e,{subPath:n})=>e.chmodSync(n,t))}async fchownPromise(e,t,n){if((e&d)!==this.magic)return this.baseFs.fchownPromise(e,t,n);let r=this.fdMap.get(e);if(r===void 0)throw l.EBADF(`fchown`);let[i,a]=r;return i.fchownPromise(a,t,n)}fchownSync(e,t,n){if((e&d)!==this.magic)return this.baseFs.fchownSync(e,t,n);let r=this.fdMap.get(e);if(r===void 0)throw l.EBADF(`fchownSync`);let[i,a]=r;return i.fchownSync(a,t,n)}async chownPromise(e,t,n){return await this.makeCallPromise(e,async()=>await this.baseFs.chownPromise(e,t,n),async(e,{subPath:r})=>await e.chownPromise(r,t,n))}chownSync(e,t,n){return this.makeCallSync(e,()=>this.baseFs.chownSync(e,t,n),(e,{subPath:r})=>e.chownSync(r,t,n))}async renamePromise(e,t){return await this.makeCallPromise(e,async()=>await this.makeCallPromise(t,async()=>await this.baseFs.renamePromise(e,t),async()=>{throw Object.assign(Error(`EEXDEV: cross-device link not permitted`),{code:`EEXDEV`})}),async(e,{subPath:n})=>await this.makeCallPromise(t,async()=>{throw Object.assign(Error(`EEXDEV: cross-device link not permitted`),{code:`EEXDEV`})},async(t,{subPath:r})=>{if(e!==t)throw Object.assign(Error(`EEXDEV: cross-device link not permitted`),{code:`EEXDEV`});return await e.renamePromise(n,r)}))}renameSync(e,t){return this.makeCallSync(e,()=>this.makeCallSync(t,()=>this.baseFs.renameSync(e,t),()=>{throw Object.assign(Error(`EEXDEV: cross-device link not permitted`),{code:`EEXDEV`})}),(e,{subPath:n})=>this.makeCallSync(t,()=>{throw Object.assign(Error(`EEXDEV: cross-device link not permitted`),{code:`EEXDEV`})},(t,{subPath:r})=>{if(e!==t)throw Object.assign(Error(`EEXDEV: cross-device link not permitted`),{code:`EEXDEV`});return e.renameSync(n,r)}))}async copyFilePromise(e,t,n=0){let r=async(e,t,r,a)=>{if((n&i.constants.COPYFILE_FICLONE_FORCE)!==0)throw Object.assign(Error(`EXDEV: cross-device clone not permitted, copyfile '${t}' -> ${a}'`),{code:`EXDEV`});if(n&i.constants.COPYFILE_EXCL&&await this.existsPromise(t))throw Object.assign(Error(`EEXIST: file already exists, copyfile '${t}' -> '${a}'`),{code:`EEXIST`});let o;try{o=await e.readFilePromise(t)}catch{throw Object.assign(Error(`EINVAL: invalid argument, copyfile '${t}' -> '${a}'`),{code:`EINVAL`})}await r.writeFilePromise(a,o)};return await this.makeCallPromise(e,async()=>await this.makeCallPromise(t,async()=>await this.baseFs.copyFilePromise(e,t,n),async(t,{subPath:n})=>await r(this.baseFs,e,t,n)),async(e,{subPath:i})=>await this.makeCallPromise(t,async()=>await r(e,i,this.baseFs,t),async(t,{subPath:a})=>e===t?await e.copyFilePromise(i,a,n):await r(e,i,t,a)))}copyFileSync(e,t,n=0){let r=(e,t,r,a)=>{if((n&i.constants.COPYFILE_FICLONE_FORCE)!==0)throw Object.assign(Error(`EXDEV: cross-device clone not permitted, copyfile '${t}' -> ${a}'`),{code:`EXDEV`});if(n&i.constants.COPYFILE_EXCL&&this.existsSync(t))throw Object.assign(Error(`EEXIST: file already exists, copyfile '${t}' -> '${a}'`),{code:`EEXIST`});let o;try{o=e.readFileSync(t)}catch{throw Object.assign(Error(`EINVAL: invalid argument, copyfile '${t}' -> '${a}'`),{code:`EINVAL`})}r.writeFileSync(a,o)};return this.makeCallSync(e,()=>this.makeCallSync(t,()=>this.baseFs.copyFileSync(e,t,n),(t,{subPath:n})=>r(this.baseFs,e,t,n)),(e,{subPath:i})=>this.makeCallSync(t,()=>r(e,i,this.baseFs,t),(t,{subPath:a})=>e===t?e.copyFileSync(i,a,n):r(e,i,t,a)))}async appendFilePromise(e,t,n){return await this.makeCallPromise(e,async()=>await this.baseFs.appendFilePromise(e,t,n),async(e,{subPath:r})=>await e.appendFilePromise(r,t,n))}appendFileSync(e,t,n){return this.makeCallSync(e,()=>this.baseFs.appendFileSync(e,t,n),(e,{subPath:r})=>e.appendFileSync(r,t,n))}async writeFilePromise(e,t,n){return await this.makeCallPromise(e,async()=>await this.baseFs.writeFilePromise(e,t,n),async(e,{subPath:r})=>await e.writeFilePromise(r,t,n))}writeFileSync(e,t,n){return this.makeCallSync(e,()=>this.baseFs.writeFileSync(e,t,n),(e,{subPath:r})=>e.writeFileSync(r,t,n))}async unlinkPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.unlinkPromise(e),async(e,{subPath:t})=>await e.unlinkPromise(t))}unlinkSync(e){return this.makeCallSync(e,()=>this.baseFs.unlinkSync(e),(e,{subPath:t})=>e.unlinkSync(t))}async utimesPromise(e,t,n){return await this.makeCallPromise(e,async()=>await this.baseFs.utimesPromise(e,t,n),async(e,{subPath:r})=>await e.utimesPromise(r,t,n))}utimesSync(e,t,n){return this.makeCallSync(e,()=>this.baseFs.utimesSync(e,t,n),(e,{subPath:r})=>e.utimesSync(r,t,n))}async lutimesPromise(e,t,n){return await this.makeCallPromise(e,async()=>await this.baseFs.lutimesPromise(e,t,n),async(e,{subPath:r})=>await e.lutimesPromise(r,t,n))}lutimesSync(e,t,n){return this.makeCallSync(e,()=>this.baseFs.lutimesSync(e,t,n),(e,{subPath:r})=>e.lutimesSync(r,t,n))}async mkdirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.mkdirPromise(e,t),async(e,{subPath:n})=>await e.mkdirPromise(n,t))}mkdirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.mkdirSync(e,t),(e,{subPath:n})=>e.mkdirSync(n,t))}async rmdirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.rmdirPromise(e,t),async(e,{subPath:n})=>await e.rmdirPromise(n,t))}rmdirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.rmdirSync(e,t),(e,{subPath:n})=>e.rmdirSync(n,t))}async rmPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.rmPromise(e,t),async(e,{subPath:n})=>await e.rmPromise(n,t))}rmSync(e,t){return this.makeCallSync(e,()=>this.baseFs.rmSync(e,t),(e,{subPath:n})=>e.rmSync(n,t))}async linkPromise(e,t){return await this.makeCallPromise(t,async()=>await this.baseFs.linkPromise(e,t),async(t,{subPath:n})=>await t.linkPromise(e,n))}linkSync(e,t){return this.makeCallSync(t,()=>this.baseFs.linkSync(e,t),(t,{subPath:n})=>t.linkSync(e,n))}async symlinkPromise(e,t,n){return await this.makeCallPromise(t,async()=>await this.baseFs.symlinkPromise(e,t,n),async(t,{subPath:n})=>await t.symlinkPromise(e,n))}symlinkSync(e,t,n){return this.makeCallSync(t,()=>this.baseFs.symlinkSync(e,t,n),(t,{subPath:n})=>t.symlinkSync(e,n))}async readFilePromise(e,t){return this.makeCallPromise(e,async()=>await this.baseFs.readFilePromise(e,t),async(e,{subPath:n})=>await e.readFilePromise(n,t))}readFileSync(e,t){return this.makeCallSync(e,()=>this.baseFs.readFileSync(e,t),(e,{subPath:n})=>e.readFileSync(n,t))}async readdirPromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.readdirPromise(e,t),async(e,{subPath:n})=>await e.readdirPromise(n,t),{requireSubpath:!1})}readdirSync(e,t){return this.makeCallSync(e,()=>this.baseFs.readdirSync(e,t),(e,{subPath:n})=>e.readdirSync(n,t),{requireSubpath:!1})}async readlinkPromise(e){return await this.makeCallPromise(e,async()=>await this.baseFs.readlinkPromise(e),async(e,{subPath:t})=>await e.readlinkPromise(t))}readlinkSync(e){return this.makeCallSync(e,()=>this.baseFs.readlinkSync(e),(e,{subPath:t})=>e.readlinkSync(t))}async truncatePromise(e,t){return await this.makeCallPromise(e,async()=>await this.baseFs.truncatePromise(e,t),async(e,{subPath:n})=>await e.truncatePromise(n,t))}truncateSync(e,t){return this.makeCallSync(e,()=>this.baseFs.truncateSync(e,t),(e,{subPath:n})=>e.truncateSync(n,t))}async ftruncatePromise(e,t){if((e&d)!==this.magic)return this.baseFs.ftruncatePromise(e,t);let n=this.fdMap.get(e);if(n===void 0)throw l.EBADF(`ftruncate`);let[r,i]=n;return r.ftruncatePromise(i,t)}ftruncateSync(e,t){if((e&d)!==this.magic)return this.baseFs.ftruncateSync(e,t);let n=this.fdMap.get(e);if(n===void 0)throw l.EBADF(`ftruncateSync`);let[r,i]=n;return r.ftruncateSync(i,t)}watch(e,t,n){return this.makeCallSync(e,()=>this.baseFs.watch(e,t,n),(e,{subPath:r})=>e.watch(r,t,n))}watchFile(e,t,n){return this.makeCallSync(e,()=>this.baseFs.watchFile(e,t,n),()=>(0,c.watchFile)(this,e,t,n))}unwatchFile(e,t){return this.makeCallSync(e,()=>this.baseFs.unwatchFile(e,t),()=>(0,c.unwatchFile)(this,e,t))}async makeCallPromise(e,t,n,{requireSubpath:r=!0}={}){if(typeof e!=`string`)return await t();let i=this.resolve(e),a=this.findMount(i);return!a||r&&a.subPath===`/`?await t():await this.getMountPromise(a.archivePath,async e=>await n(e,a))}makeCallSync(e,t,n,{requireSubpath:r=!0}={}){if(typeof e!=`string`)return t();let i=this.resolve(e),a=this.findMount(i);return!a||r&&a.subPath===`/`?t():this.getMountSync(a.archivePath,e=>n(e,a))}findMount(e){if(this.filter&&!this.filter.test(e))return null;let t=``;for(;;){let n=e.substring(t.length),r=this.getMountPoint(n,t);if(!r)return null;if(t=this.pathUtils.join(t,r),!this.isMount.has(t)){if(this.notMount.has(t))continue;try{if(this.typeCheck!==null&&(this.baseFs.statSync(t).mode&i.constants.S_IFMT)!==this.typeCheck){this.notMount.add(t);continue}}catch{return null}this.isMount.add(t)}return{archivePath:t,subPath:this.pathUtils.join(u.PortablePath.root,e.substring(t.length))}}}limitOpenFiles(e){if(this.mountInstances===null)return;let t=Date.now(),n=t+this.maxAge,r=e===null?0:this.mountInstances.size-e;for(let[i,{childFs:a,expiresAt:o,refCount:s}]of this.mountInstances.entries())if(!(s!==0||a.hasOpenFileHandles?.())){if(t>=o){a.saveAndClose?.(),this.mountInstances.delete(i),--r;continue}else if(e===null||r<=0){n=o;break}a.saveAndClose?.(),this.mountInstances.delete(i),--r}this.limitOpenFilesTimeout===null&&(e===null&&this.mountInstances.size>0||e!==null)&&isFinite(n)&&(this.limitOpenFilesTimeout=setTimeout(()=>{this.limitOpenFilesTimeout=null,this.limitOpenFiles(null)},n-t).unref())}async getMountPromise(e,t){if(this.mountInstances){let n=this.mountInstances.get(e);if(!n){let t=await this.factoryPromise(this.baseFs,e);n=this.mountInstances.get(e),n||={childFs:t(),expiresAt:0,refCount:0}}this.mountInstances.delete(e),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(e,n),n.expiresAt=Date.now()+this.maxAge,n.refCount+=1;try{return await t(n.childFs)}finally{--n.refCount}}else{let n=(await this.factoryPromise(this.baseFs,e))();try{return await t(n)}finally{n.saveAndClose?.()}}}getMountSync(e,t){if(this.mountInstances){let n=this.mountInstances.get(e);return n||={childFs:this.factorySync(this.baseFs,e),expiresAt:0,refCount:0},this.mountInstances.delete(e),this.limitOpenFiles(this.maxOpenFiles-1),this.mountInstances.set(e,n),n.expiresAt=Date.now()+this.maxAge,t(n.childFs)}else{let n=this.factorySync(this.baseFs,e);try{return t(n)}finally{n.saveAndClose?.()}}}}})),oe=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.NoFS=void 0;let t=Z(),n=q(),r=()=>Object.assign(Error(`ENOSYS: unsupported filesystem access`),{code:`ENOSYS`});var i=class extends t.FakeFS{constructor(){super(n.ppath)}getExtractHint(){throw r()}getRealPath(){throw r()}resolve(){throw r()}async openPromise(){throw r()}openSync(){throw r()}async opendirPromise(){throw r()}opendirSync(){throw r()}async readPromise(){throw r()}readSync(){throw r()}async writePromise(){throw r()}writeSync(){throw r()}async closePromise(){throw r()}closeSync(){throw r()}createWriteStream(){throw r()}createReadStream(){throw r()}async realpathPromise(){throw r()}realpathSync(){throw r()}async readdirPromise(){throw r()}readdirSync(){throw r()}async existsPromise(e){throw r()}existsSync(e){throw r()}async accessPromise(){throw r()}accessSync(){throw r()}async statPromise(){throw r()}statSync(){throw r()}async fstatPromise(e){throw r()}fstatSync(e){throw r()}async lstatPromise(e){throw r()}lstatSync(e){throw r()}async fchmodPromise(){throw r()}fchmodSync(){throw r()}async chmodPromise(){throw r()}chmodSync(){throw r()}async fchownPromise(){throw r()}fchownSync(){throw r()}async chownPromise(){throw r()}chownSync(){throw r()}async mkdirPromise(){throw r()}mkdirSync(){throw r()}async rmdirPromise(){throw r()}rmdirSync(){throw r()}async rmPromise(){throw r()}rmSync(){throw r()}async linkPromise(){throw r()}linkSync(){throw r()}async symlinkPromise(){throw r()}symlinkSync(){throw r()}async renamePromise(){throw r()}renameSync(){throw r()}async copyFilePromise(){throw r()}copyFileSync(){throw r()}async appendFilePromise(){throw r()}appendFileSync(){throw r()}async writeFilePromise(){throw r()}writeFileSync(){throw r()}async unlinkPromise(){throw r()}unlinkSync(){throw r()}async utimesPromise(){throw r()}utimesSync(){throw r()}async lutimesPromise(){throw r()}lutimesSync(){throw r()}async readFilePromise(){throw r()}readFileSync(){throw r()}async readlinkPromise(){throw r()}readlinkSync(){throw r()}async truncatePromise(){throw r()}truncateSync(){throw r()}async ftruncatePromise(e,t){throw r()}ftruncateSync(e,t){throw r()}watch(){throw r()}watchFile(){throw r()}unwatchFile(){throw r()}};e.NoFS=i,i.instance=new i})),se=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.PosixFS=void 0;let t=Q(),n=q();e.PosixFS=class extends t.ProxiedFS{constructor(e){super(n.npath),this.baseFs=e}mapFromBase(e){return n.npath.fromPortablePath(e)}mapToBase(e){return n.npath.toPortablePath(e)}}})),ce=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.VirtualFS=void 0;let t=$(),n=Q(),r=q(),i=/^[0-9]+$/,a=/^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/,o=/^([^/]+-)?[a-f0-9]+$/;e.VirtualFS=class e extends n.ProxiedFS{static makeVirtualPath(e,t,n){if(r.ppath.basename(e)!==`__virtual__`)throw Error(`Assertion failed: Virtual folders must be named "__virtual__"`);if(!r.ppath.basename(t).match(o))throw Error(`Assertion failed: Virtual components must be ended by an hexadecimal hash`);let i=r.ppath.relative(r.ppath.dirname(e),n).split(`/`),a=0;for(;a<i.length&&i[a]===`..`;)a+=1;let s=i.slice(a);return r.ppath.join(e,t,String(a),...s)}static resolveVirtual(t){let n=t.match(a);if(!n||!n[3]&&n[5])return t;let o=r.ppath.dirname(n[1]);if(!n[3]||!n[4])return o;if(!i.test(n[4]))return t;let s=Number(n[4]),c=`../`.repeat(s),l=n[5]||`.`;return e.resolveVirtual(r.ppath.join(o,c,l))}constructor({baseFs:e=new t.NodeFS}={}){super(r.ppath),this.baseFs=e}getExtractHint(e){return this.baseFs.getExtractHint(e)}getRealPath(){return this.baseFs.getRealPath()}realpathSync(t){let n=t.match(a);if(!n)return this.baseFs.realpathSync(t);if(!n[5])return t;let r=this.baseFs.realpathSync(this.mapToBase(t));return e.makeVirtualPath(n[1],n[3],r)}async realpathPromise(t){let n=t.match(a);if(!n)return await this.baseFs.realpathPromise(t);if(!n[5])return t;let r=await this.baseFs.realpathPromise(this.mapToBase(t));return e.makeVirtualPath(n[1],n[3],r)}mapToBase(t){if(t===``)return t;if(this.pathUtils.isAbsolute(t))return e.resolveVirtual(t);let n=e.resolveVirtual(this.baseFs.resolve(r.PortablePath.dot)),i=e.resolveVirtual(this.baseFs.resolve(t));return r.ppath.relative(n,i)||r.PortablePath.dot}mapFromBase(e){return e}}})),le=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.NodePathFS=void 0;let r=(U(),e(a)).__importDefault(t(`buffer`)),i=t(`url`),o=t(`util`),s=Q(),c=q();n.NodePathFS=class extends s.ProxiedFS{constructor(e){super(c.npath),this.baseFs=e}mapFromBase(e){return e}mapToBase(e){if(typeof e==`string`)return e;if(e instanceof URL)return(0,i.fileURLToPath)(e);if(Buffer.isBuffer(e)){let t=e.toString();if(!l(e,t))throw Error(`Non-utf8 buffers are not supported at the moment. Please upvote the following issue if you encounter this error: https://github.com/yarnpkg/berry/issues/4942`);return t}throw Error(`Unsupported path type: ${(0,o.inspect)(e)}`)}};function l(e,t){return r.default.isUtf8===void 0?Buffer.byteLength(t)===e.byteLength:r.default.isUtf8(e)}})),ue=i((e=>{var n,r,i,a;Object.defineProperty(e,`__esModule`,{value:!0}),e.FileHandle=void 0;let o=t(`readline`),s=Symbol(`kBaseFs`),c=Symbol(`kFd`),l=Symbol(`kClosePromise`),u=Symbol(`kCloseResolve`),d=Symbol(`kCloseReject`),f=Symbol(`kRefs`),p=Symbol(`kRef`),m=Symbol(`kUnref`);e.FileHandle=class{constructor(e,t){this[n]=1,this[r]=void 0,this[i]=void 0,this[a]=void 0,this[s]=t,this[c]=e}get fd(){return this[c]}async appendFile(e,t){try{this[p](this.appendFile);let n=(typeof t==`string`?t:t?.encoding)??void 0;return await this[s].appendFilePromise(this.fd,e,n?{encoding:n}:void 0)}finally{this[m]()}}async chown(e,t){try{return this[p](this.chown),await this[s].fchownPromise(this.fd,e,t)}finally{this[m]()}}async chmod(e){try{return this[p](this.chmod),await this[s].fchmodPromise(this.fd,e)}finally{this[m]()}}createReadStream(e){return this[s].createReadStream(null,{...e,fd:this.fd})}createWriteStream(e){return this[s].createWriteStream(null,{...e,fd:this.fd})}datasync(){throw Error(`Method not implemented.`)}sync(){throw Error(`Method not implemented.`)}async read(e,t,n,r){try{this[p](this.read);let i,a;return ArrayBuffer.isView(e)?typeof t==`object`&&t?(i=e,a=t?.offset??0,n=t?.length??i.byteLength-a,r=t?.position??null):(i=e,a=t??0,n??=0):(i=e?.buffer??Buffer.alloc(16384),a=e?.offset??0,n=e?.length??i.byteLength-a,r=e?.position??null),n===0?{bytesRead:n,buffer:i}:{bytesRead:await this[s].readPromise(this.fd,Buffer.isBuffer(i)?i:Buffer.from(i.buffer,i.byteOffset,i.byteLength),a,n,r),buffer:i}}finally{this[m]()}}async readFile(e){try{this[p](this.readFile);let t=(typeof e==`string`?e:e?.encoding)??void 0;return await this[s].readFilePromise(this.fd,t)}finally{this[m]()}}readLines(e){return(0,o.createInterface)({input:this.createReadStream(e),crlfDelay:1/0})}async stat(e){try{return this[p](this.stat),await this[s].fstatPromise(this.fd,e)}finally{this[m]()}}async truncate(e){try{return this[p](this.truncate),await this[s].ftruncatePromise(this.fd,e)}finally{this[m]()}}utimes(e,t){throw Error(`Method not implemented.`)}async writeFile(e,t){try{this[p](this.writeFile);let n=(typeof t==`string`?t:t?.encoding)??void 0;await this[s].writeFilePromise(this.fd,e,n)}finally{this[m]()}}async write(...e){try{if(this[p](this.write),ArrayBuffer.isView(e[0])){let[t,n,r,i]=e;return{bytesWritten:await this[s].writePromise(this.fd,t,n??void 0,r??void 0,i??void 0),buffer:t}}else{let[t,n,r]=e;return{bytesWritten:await this[s].writePromise(this.fd,t,n,r),buffer:t}}}finally{this[m]()}}async writev(e,t){try{this[p](this.writev);let n=0;if(t!==void 0)for(let r of e){let e=await this.write(r,void 0,void 0,t);n+=e.bytesWritten,t+=e.bytesWritten}else for(let t of e){let e=await this.write(t);n+=e.bytesWritten}return{buffers:e,bytesWritten:n}}finally{this[m]()}}readv(e,t){throw Error(`Method not implemented.`)}close(){if(this[c]===-1)return Promise.resolve();if(this[l])return this[l];if(this[f]--,this[f]===0){let e=this[c];this[c]=-1,this[l]=this[s].closePromise(e).finally(()=>{this[l]=void 0})}else this[l]=new Promise((e,t)=>{this[u]=e,this[d]=t}).finally(()=>{this[l]=void 0,this[d]=void 0,this[u]=void 0});return this[l]}[(n=f,r=l,i=u,a=d,p)](e){if(this[c]===-1){let t=Error(`file closed`);throw t.code=`EBADF`,t.syscall=e.name,t}this[f]++}[m](){if(this[f]--,this[f]===0){let e=this[c];this[c]=-1,this[s].closePromise(e).then(this[u],this[d])}}}})),de=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.patchFs=s,e.extendFs=c;let n=t(`util`),r=le(),i=ue(),a=new Set(`accessSync.appendFileSync.createReadStream.createWriteStream.chmodSync.fchmodSync.chownSync.fchownSync.closeSync.copyFileSync.linkSync.lstatSync.fstatSync.lutimesSync.mkdirSync.openSync.opendirSync.readlinkSync.readFileSync.readdirSync.readlinkSync.realpathSync.renameSync.rmdirSync.rmSync.statSync.symlinkSync.truncateSync.ftruncateSync.unlinkSync.unwatchFile.utimesSync.watch.watchFile.writeFileSync.writeSync`.split(`.`)),o=new Set(`accessPromise.appendFilePromise.fchmodPromise.chmodPromise.fchownPromise.chownPromise.closePromise.copyFilePromise.linkPromise.fstatPromise.lstatPromise.lutimesPromise.mkdirPromise.openPromise.opendirPromise.readdirPromise.realpathPromise.readFilePromise.readdirPromise.readlinkPromise.renamePromise.rmdirPromise.rmPromise.statPromise.symlinkPromise.truncatePromise.ftruncatePromise.unlinkPromise.utimesPromise.writeFilePromise.writeSync`.split(`.`));function s(e,t){t=new r.NodePathFS(t);let s=(e,t,r)=>{let i=e[t];e[t]=r,i?.[n.promisify.custom]!==void 0&&(r[n.promisify.custom]=i[n.promisify.custom])};s(e,`exists`,(e,...n)=>{let r=typeof n[n.length-1]==`function`?n.pop():()=>{};process.nextTick(()=>{t.existsPromise(e).then(e=>{r(e)},()=>{r(!1)})})}),s(e,`read`,(...e)=>{let[n,r,i,a,o,s]=e;if(e.length<=3){let t={};e.length<3?s=e[1]:(t=e[1],s=e[2]),{buffer:r=Buffer.alloc(16384),offset:i=0,length:a=r.byteLength,position:o}=t}if(i??=0,a|=0,a===0){process.nextTick(()=>{s(null,0,r)});return}o??=-1,process.nextTick(()=>{t.readPromise(n,r,i,a,o).then(e=>{s(null,e,r)},e=>{s(e,0,r)})})});for(let n of o){let r=n.replace(/Promise$/,``);if(e[r]===void 0)continue;let i=t[n];i!==void 0&&s(e,r,(...e)=>{let n=typeof e[e.length-1]==`function`?e.pop():()=>{};process.nextTick(()=>{i.apply(t,e).then(e=>{n(null,e)},e=>{n(e)})})})}e.realpath.native=e.realpath,s(e,`existsSync`,e=>{try{return t.existsSync(e)}catch{return!1}}),s(e,`readSync`,(...e)=>{let[n,r,i,a,o]=e;if(e.length<=3){let t=e[2]||{};({offset:i=0,length:a=r.byteLength,position:o}=t)}return i??=0,a|=0,a===0?0:(o??=-1,t.readSync(n,r,i,a,o))});for(let n of a){let r=n;if(e[r]===void 0)continue;let i=t[n];i!==void 0&&s(e,r,i.bind(t))}e.realpathSync.native=e.realpathSync;{let n=e.promises;for(let e of o){let r=e.replace(/Promise$/,``);if(n[r]===void 0)continue;let a=t[e];a!==void 0&&e!==`open`&&s(n,r,(e,...n)=>e instanceof i.FileHandle?e[r].apply(e,n):a.call(t,e,...n))}s(n,`open`,async(...e)=>{let n=await t.openPromise(...e);return new i.FileHandle(n,t)})}e.read[n.promisify.custom]=async(e,n,...r)=>({bytesRead:await t.readPromise(e,n,...r),buffer:n}),e.write[n.promisify.custom]=async(e,n,...r)=>({bytesWritten:await t.writePromise(e,n,...r),buffer:n})}function c(e,t){let n=Object.create(e);return s(n,t),n}})),fe=i((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.xfs=void 0;let r=(U(),e(a)).__importDefault(t(`os`)),i=$(),o=q();function s(e){return`${e}${Math.ceil(Math.random()*4294967296).toString(16).padStart(8,`0`)}`}let c=new Set,l=null;function u(){if(l)return l;let e=o.npath.toPortablePath(r.default.tmpdir()),t=n.xfs.realpathSync(e);return process.once(`exit`,()=>{n.xfs.rmtempSync()}),l={tmpdir:e,realTmpdir:t}}n.xfs=Object.assign(new i.NodeFS,{detachTemp(e){c.delete(e)},mktempSync(e){let{tmpdir:t,realTmpdir:n}=u();for(;;){let r=s(`xfs-`);try{this.mkdirSync(o.ppath.join(t,r))}catch(e){if(e.code===`EEXIST`)continue;throw e}let i=o.ppath.join(n,r);if(c.add(i),e===void 0)return i;try{return e(i)}finally{if(c.has(i)){c.delete(i);try{this.removeSync(i)}catch{}}}}},async mktempPromise(e){let{tmpdir:t,realTmpdir:n}=u();for(;;){let r=s(`xfs-`);try{await this.mkdirPromise(o.ppath.join(t,r))}catch(e){if(e.code===`EEXIST`)continue;throw e}let i=o.ppath.join(n,r);if(c.add(i),e===void 0)return i;try{return await e(i)}finally{if(c.has(i)){c.delete(i);try{await this.removePromise(i)}catch{}}}}},async rmtempPromise(){await Promise.all(Array.from(c.values()).map(async e=>{try{await n.xfs.removePromise(e,{maxRetries:0}),c.delete(e)}catch{}}))},rmtempSync(){for(let e of c)try{n.xfs.removeSync(e),c.delete(e)}catch{}}})})),pe=i((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.xfs=t.extendFs=t.patchFs=t.VirtualFS=t.ProxiedFS=t.PosixFS=t.NodeFS=t.NoFS=t.MountFS=t.LazyFS=t.JailFS=t.CwdFS=t.BasePortableFakeFS=t.FakeFS=t.AliasFS=t.ppath=t.npath=t.Filename=t.PortablePath=t.normalizeLineEndings=t.unwatchAllFiles=t.unwatchFile=t.watchFile=t.CustomDir=t.opendir=t.setupCopyIndex=t.statUtils=t.errors=t.constants=void 0;let n=(U(),e(a));t.constants=n.__importStar(W()),t.errors=n.__importStar(G()),t.statUtils=n.__importStar(K());var r=J();Object.defineProperty(t,`setupCopyIndex`,{enumerable:!0,get:function(){return r.setupCopyIndex}});var i=Y();Object.defineProperty(t,`opendir`,{enumerable:!0,get:function(){return i.opendir}}),Object.defineProperty(t,`CustomDir`,{enumerable:!0,get:function(){return i.CustomDir}});var o=X();Object.defineProperty(t,`watchFile`,{enumerable:!0,get:function(){return o.watchFile}}),Object.defineProperty(t,`unwatchFile`,{enumerable:!0,get:function(){return o.unwatchFile}}),Object.defineProperty(t,`unwatchAllFiles`,{enumerable:!0,get:function(){return o.unwatchAllFiles}});var s=Z();Object.defineProperty(t,`normalizeLineEndings`,{enumerable:!0,get:function(){return s.normalizeLineEndings}});var c=q();Object.defineProperty(t,`PortablePath`,{enumerable:!0,get:function(){return c.PortablePath}}),Object.defineProperty(t,`Filename`,{enumerable:!0,get:function(){return c.Filename}});var l=q();Object.defineProperty(t,`npath`,{enumerable:!0,get:function(){return l.npath}}),Object.defineProperty(t,`ppath`,{enumerable:!0,get:function(){return l.ppath}});var u=te();Object.defineProperty(t,`AliasFS`,{enumerable:!0,get:function(){return u.AliasFS}});var d=Z();Object.defineProperty(t,`FakeFS`,{enumerable:!0,get:function(){return d.FakeFS}}),Object.defineProperty(t,`BasePortableFakeFS`,{enumerable:!0,get:function(){return d.BasePortableFakeFS}});var f=ne();Object.defineProperty(t,`CwdFS`,{enumerable:!0,get:function(){return f.CwdFS}});var p=re();Object.defineProperty(t,`JailFS`,{enumerable:!0,get:function(){return p.JailFS}});var m=ie();Object.defineProperty(t,`LazyFS`,{enumerable:!0,get:function(){return m.LazyFS}});var h=ae();Object.defineProperty(t,`MountFS`,{enumerable:!0,get:function(){return h.MountFS}});var g=oe();Object.defineProperty(t,`NoFS`,{enumerable:!0,get:function(){return g.NoFS}});var _=$();Object.defineProperty(t,`NodeFS`,{enumerable:!0,get:function(){return _.NodeFS}});var v=se();Object.defineProperty(t,`PosixFS`,{enumerable:!0,get:function(){return v.PosixFS}});var y=Q();Object.defineProperty(t,`ProxiedFS`,{enumerable:!0,get:function(){return y.ProxiedFS}});var b=ce();Object.defineProperty(t,`VirtualFS`,{enumerable:!0,get:function(){return b.VirtualFS}});var x=de();Object.defineProperty(t,`patchFs`,{enumerable:!0,get:function(){return x.patchFs}}),Object.defineProperty(t,`extendFs`,{enumerable:!0,get:function(){return x.extendFs}});var S=fe();Object.defineProperty(t,`xfs`,{enumerable:!0,get:function(){return S.xfs}})}));export{U as n,a as r,pe as t};
@@ -0,0 +1,2 @@
1
+ import{a as e,i as t,t as n}from"./chunk-DTipWd-i.mjs";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./lib-zuQKc8ym.mjs";import{n as u,r as d,t as f}from"./lib-CaOdTS9F.mjs";var p=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BaseCommand=void 0;let t=o();e.BaseCommand=class extends t.Command{constructor(){super(...arguments),this.cwd=t.Option.String(`--cwd`,{hidden:!0})}validateAndExecute(){if(this.cwd!==void 0)throw new t.UsageError(`The --cwd option is ambiguous when used anywhere else than the very first parameter provided in the command line, before even the command path`);return super.validateAndExecute()}}})),m=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.WorkspaceRequiredError=void 0;let t=l(),n=f(),r=o();e.WorkspaceRequiredError=class extends r.UsageError{constructor(e,r){let i=n.ppath.relative(e,r),a=n.ppath.join(e,t.Manifest.fileName);super(`This command can only be run from within a workspace of your project (${i} isn't a workspace of ${a}).`)}}})),h=n(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),g=n(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_=n(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=h(),a=g();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),_(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${f}+`),_(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),_(`FULL`,`^${c[u.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),_(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),_(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,c[u.COERCE],!0),_(`COERCERTLFULL`,c[u.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),v=n(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),y=n(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),b=n(((e,t)=>{let n=g(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=h(),{safeRe:a,t:o}=_(),s=v(),{compareIdentifiers:c}=y();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),x=n(((e,t)=>{let n=b();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),S=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),C=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),w=n(((e,t)=>{let n=b();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),T=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),E=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).major})),D=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).minor})),O=n(((e,t)=>{let n=b();t.exports=(e,t)=>new n(e,t).patch})),k=n(((e,t)=>{let n=x();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),A=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),j=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(t,e,r)})),M=n(((e,t)=>{let n=A();t.exports=(e,t)=>n(e,t,!0)})),N=n(((e,t)=>{let n=b();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),P=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),F=n(((e,t)=>{let n=N();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),I=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>0})),L=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<0})),R=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)===0})),z=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)!==0})),B=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)>=0})),V=n(((e,t)=>{let n=A();t.exports=(e,t,r)=>n(e,t,r)<=0})),H=n(((e,t)=>{let n=R(),r=z(),i=I(),a=B(),o=L(),s=V();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),U=n(((e,t)=>{let n=b(),r=x(),{safeRe:i,t:a}=_();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),W=n(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),G=n(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!y(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&p)|(this.options.loose&&m))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(s,N(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[l.COMPARATORTRIM],u),o(`comparator trim`,e),e=e.replace(c[l.TILDETRIM],d),o(`tilde trim`,e),e=e.replace(c[l.CARETTRIM],f),o(`caret trim`,e);let h=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>M(e,this.options));i&&(h=h.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[l.COMPARATORLOOSE])))),o(`range list`,h);let g=new Map,_=h.map(e=>new a(e,this.options));for(let e of _){if(y(e))return[e];g.set(e.value,e)}g.size>1&&g.has(``)&&g.delete(``);let v=[...g.values()];return r.set(t,v),v}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(P(this.set[t],e,this.options))return!0;return!1}};let r=new(W()),i=v(),a=K(),o=g(),s=b(),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:f}=_(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=h(),y=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(c[l.BUILD],``),o(`comp`,e,t),e=D(e,t),o(`caret`,e),e=T(e,t),o(`tildes`,e),e=k(e,t),o(`xrange`,e),e=j(e,t),o(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return w(n)?s=``:w(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return w(n)?c=``:w(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},k=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=w(i),u=l||w(a),d=u||w(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},j=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[l.STAR],``)),M=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],``)),N=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),P=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),K=n(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=v(),{safeRe:i,t:a}=_(),o=H(),s=g(),c=b(),l=G()})),q=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),J=n(((e,t)=>{let n=G();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ee=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),te=n(((e,t)=>{let n=b(),r=G();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ne=n(((e,t)=>{let n=b(),r=G(),i=I();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),re=n(((e,t)=>{let n=G();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Y=n(((e,t)=>{let n=b(),r=K(),{ANY:i}=r,a=G(),o=q(),s=I(),c=L(),l=V(),u=B();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ie=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ae=n(((e,t)=>{let n=Y();t.exports=(e,t,r)=>n(e,t,`<`,r)})),oe=n(((e,t)=>{let n=G();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),se=n(((e,t)=>{let n=q(),r=A();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ce=n(((e,t)=>{let n=G(),r=K(),{ANY:i}=r,a=q(),o=A(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),le=n(((e,t)=>{let n=_(),r=h(),i=b(),a=y();t.exports={parse:x(),valid:S(),clean:C(),inc:w(),diff:T(),major:E(),minor:D(),patch:O(),prerelease:k(),compare:A(),rcompare:j(),compareLoose:M(),compareBuild:N(),sort:P(),rsort:F(),gt:I(),lt:L(),eq:R(),neq:z(),gte:B(),lte:V(),cmp:H(),coerce:U(),Comparator:K(),Range:G(),satisfies:q(),toComparators:J(),maxSatisfying:ee(),minSatisfying:te(),minVersion:ne(),validRange:re(),outside:Y(),gtr:ie(),ltr:ae(),intersects:oe(),simplifyRange:se(),subset:ce(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),X=n((t=>{Object.defineProperty(t,`__esModule`,{value:!0}),t.getDynamicLibs=void 0;let n=(u(),e(d)),i=n.__importStar($()),p=n.__importStar(l()),m=n.__importStar(f()),h=n.__importStar(s()),g=n.__importStar(r()),_=n.__importStar(a()),v=n.__importStar(o()),y=n.__importStar(le()),b=n.__importStar(c());t.getDynamicLibs=()=>new Map([[`@yarnpkg/cli`,i],[`@yarnpkg/core`,p],[`@yarnpkg/fslib`,m],[`@yarnpkg/libzip`,h],[`@yarnpkg/parsers`,g],[`@yarnpkg/shell`,_],[`clipanion`,v],[`semver`,y],[`typanion`,b]])})),ue=n(((e,t)=>{t.exports={name:`@yarnpkg/cli`,version:`4.16.0`,license:`BSD-2-Clause`,main:`./lib/index.js`,exports:{".":`./lib/index.js`,"./package.json":`./package.json`},dependencies:{"@yarnpkg/core":`^4.8.0`,"@yarnpkg/fslib":`^3.1.5`,"@yarnpkg/libzip":`^3.2.2`,"@yarnpkg/parsers":`^3.0.3`,"@yarnpkg/plugin-catalog":`^1.0.2`,"@yarnpkg/plugin-compat":`^4.0.12`,"@yarnpkg/plugin-constraints":`^4.0.5`,"@yarnpkg/plugin-dlx":`^4.0.2`,"@yarnpkg/plugin-essentials":`^4.6.0`,"@yarnpkg/plugin-exec":`^3.1.0`,"@yarnpkg/plugin-file":`^3.0.2`,"@yarnpkg/plugin-git":`^3.2.0`,"@yarnpkg/plugin-github":`^3.0.2`,"@yarnpkg/plugin-http":`^3.0.3`,"@yarnpkg/plugin-init":`^4.1.2`,"@yarnpkg/plugin-interactive-tools":`^4.1.0`,"@yarnpkg/plugin-jsr":`^1.1.1`,"@yarnpkg/plugin-link":`^3.0.2`,"@yarnpkg/plugin-nm":`^4.0.9`,"@yarnpkg/plugin-npm":`^3.6.0`,"@yarnpkg/plugin-npm-cli":`^4.5.0`,"@yarnpkg/plugin-pack":`^4.0.4`,"@yarnpkg/plugin-patch":`^4.0.4`,"@yarnpkg/plugin-pnp":`^4.1.7`,"@yarnpkg/plugin-pnpm":`^2.2.0`,"@yarnpkg/plugin-stage":`^4.0.2`,"@yarnpkg/plugin-typescript":`^4.1.3`,"@yarnpkg/plugin-version":`^4.2.0`,"@yarnpkg/plugin-workspace-tools":`^4.1.7`,"@yarnpkg/shell":`^4.1.3`,"ci-info":`^4.0.0`,clipanion:`^4.0.0-rc.2`,semver:`^7.1.2`,tslib:`^2.4.0`,typanion:`^3.14.0`},devDependencies:{"@types/semver":`^7.1.0`,"@yarnpkg/builder":`^4.2.3`,"@yarnpkg/monorepo":`^0.0.0`,"@yarnpkg/pnpify":`^4.1.6`},peerDependencies:{"@yarnpkg/core":`^4.8.0`},scripts:{postpack:`rm -rf lib`,prepack:`run build:compile "$(pwd)"`,"build:cli+hook":`run build:pnp:hook && builder build bundle`,"build:cli":`builder build bundle`,"run:cli":`builder run`,"update-local":`run build:cli --no-git-hash && rsync -a --delete bundles/ bin/`},publishConfig:{main:`./lib/index.js`,bin:null,exports:{".":`./lib/index.js`,"./package.json":`./package.json`}},files:[`/lib/**/*`,`!/lib/pluginConfiguration.*`,`!/lib/cli.*`],"@yarnpkg/builder":{bundles:{standard:[`@yarnpkg/plugin-essentials`,`@yarnpkg/plugin-catalog`,`@yarnpkg/plugin-compat`,`@yarnpkg/plugin-constraints`,`@yarnpkg/plugin-dlx`,`@yarnpkg/plugin-exec`,`@yarnpkg/plugin-file`,`@yarnpkg/plugin-git`,`@yarnpkg/plugin-github`,`@yarnpkg/plugin-http`,`@yarnpkg/plugin-init`,`@yarnpkg/plugin-interactive-tools`,`@yarnpkg/plugin-jsr`,`@yarnpkg/plugin-link`,`@yarnpkg/plugin-nm`,`@yarnpkg/plugin-npm`,`@yarnpkg/plugin-npm-cli`,`@yarnpkg/plugin-pack`,`@yarnpkg/plugin-patch`,`@yarnpkg/plugin-pnp`,`@yarnpkg/plugin-pnpm`,`@yarnpkg/plugin-stage`,`@yarnpkg/plugin-typescript`,`@yarnpkg/plugin-version`,`@yarnpkg/plugin-workspace-tools`]}},repository:{type:`git`,url:`git+https://github.com/yarnpkg/berry.git`,directory:`packages/yarnpkg-cli`},engines:{node:`>=18.12.0`}}})),Z=n((n=>{Object.defineProperty(n,`__esModule`,{value:!0}),n.getPluginConfiguration=a;let r=(u(),e(d)).__importDefault(ue()),i=X();function a(){let e=new Set;for(let t of r.default[`@yarnpkg/builder`].bundles.standard)e.add(t);let n=(0,i.getDynamicLibs)();for(let r of e)n.set(r,t(r).default);return{plugins:e,modules:n}}})),de=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.openWorkspace=r;let t=l(),n=m();async function r(e,r){let{project:i,workspace:a}=await t.Project.find(e,r);if(!a)throw new n.WorkspaceRequiredError(i.cwd,r);return a}})),Q=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=void 0,e.pluginCommands=new Map([])})),fe=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getCli=x,e.runExit=S;let n=l(),r=f(),a=t(`child_process`),s=i(),c=o(),u=Q(),d=Z();function p({cwd:e,pluginConfiguration:t}){let r=new c.Cli({binaryLabel:`Yarn Package Manager`,binaryName:`yarn`,binaryVersion:n.YarnVersion??`<unknown>`});return Object.assign(r,{defaultContext:{...c.Cli.defaultContext,cwd:e,plugins:t,quiet:!1,stdin:process.stdin,stdout:process.stdout,stderr:process.stderr}})}function m(e){if(n.miscUtils.parseOptionalBoolean(process.env.YARN_IGNORE_NODE))return!0;let t=process.versions.node,r=`>=18.12.0`;if(n.semverUtils.satisfiesWithPrereleases(t,r))return!0;let i=new c.UsageError(`This tool requires a Node version compatible with ${r} (got ${t}). Upgrade Node, or set \`YARN_IGNORE_NODE=1\` in your environment.`);return c.Cli.defaultContext.stdout.write(e.error(i)),!1}async function h({selfPath:e,pluginConfiguration:t}){return await n.Configuration.find(r.npath.toPortablePath(process.cwd()),t,{strict:!1,usePathCheck:e})}function g(e,t,{yarnPath:n}){if(!r.xfs.existsSync(n))return e.error(Error(`The "yarn-path" option has been set, but the specified location doesn't exist (${n}).`)),1;process.on(`SIGINT`,()=>{});let i={stdio:`inherit`,env:{...process.env,YARN_IGNORE_PATH:`1`}};try{(0,a.execFileSync)(process.execPath,[r.npath.fromPortablePath(n),...t],i)}catch(e){return e.status??1}return 0}function _(e,t){let n=null,i=t;return t.length>=2&&t[0]===`--cwd`?(n=r.npath.toPortablePath(t[1]),i=t.slice(2)):t.length>=1&&t[0].startsWith(`--cwd=`)?(n=r.npath.toPortablePath(t[0].slice(6)),i=t.slice(1)):t[0]===`add`&&t[t.length-2]===`--cwd`&&(n=r.npath.toPortablePath(t[t.length-1]),i=t.slice(0,t.length-2)),e.defaultContext.cwd=n===null?r.ppath.cwd():r.ppath.resolve(n),i}function v(e,{configuration:t}){if(!t.get(`enableTelemetry`)||s.isCI||!process.stdout.isTTY)return;n.Configuration.telemetry=new n.TelemetryManager(t,`puba9cdc10ec5790a2cf4969dd413a47270`);let r=/^@yarnpkg\/plugin-(.*)$/;for(let e of t.plugins.keys())u.pluginCommands.has(e.match(r)?.[1]??``)&&n.Configuration.telemetry?.reportPluginName(e);e.binaryVersion&&n.Configuration.telemetry.reportVersion(e.binaryVersion)}function y(e,{configuration:t}){for(let n of t.plugins.values())for(let t of n.commands||[])e.register(t)}async function b(e,t,{selfPath:r,pluginConfiguration:i}){if(!m(e))return 1;let a=await h({selfPath:r,pluginConfiguration:i}),o=a.get(`yarnPath`),s=a.get(`ignorePath`);if(o&&!s)return g(e,t,{yarnPath:o});delete process.env.YARN_IGNORE_PATH;let c=_(e,t);v(e,{configuration:a}),y(e,{configuration:a});let l=e.process(c,e.defaultContext);return l.help||n.Configuration.telemetry?.reportCommandName(l.path.join(` `)),await e.run(l,e.defaultContext)}async function x({cwd:e=r.ppath.cwd(),pluginConfiguration:t=(0,d.getPluginConfiguration)()}={}){let n=p({cwd:e,pluginConfiguration:t});return y(n,{configuration:await h({pluginConfiguration:t,selfPath:null})}),n}async function S(e,{cwd:t=r.ppath.cwd(),selfPath:n,pluginConfiguration:i}){let a=p({cwd:t,pluginConfiguration:i});function o(){c.Cli.defaultContext.stdout.write(`ERROR: Yarn is terminating due to an unexpected empty event loop.
2
+ Please report this issue at https://github.com/yarnpkg/berry/issues.`)}process.once(`beforeExit`,o);try{process.exitCode=42,process.exitCode=await b(a,e,{selfPath:n,pluginConfiguration:i})}catch(e){c.Cli.defaultContext.stdout.write(a.error(e)),process.exitCode=1}finally{process.off(`beforeExit`,o),await r.xfs.rmtempPromise()}}})),$=n((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pluginCommands=e.runExit=e.getCli=e.openWorkspace=e.getPluginConfiguration=e.getDynamicLibs=e.WorkspaceRequiredError=e.BaseCommand=void 0;var t=p();Object.defineProperty(e,`BaseCommand`,{enumerable:!0,get:function(){return t.BaseCommand}});var n=m();Object.defineProperty(e,`WorkspaceRequiredError`,{enumerable:!0,get:function(){return n.WorkspaceRequiredError}});var r=X();Object.defineProperty(e,`getDynamicLibs`,{enumerable:!0,get:function(){return r.getDynamicLibs}});var i=Z();Object.defineProperty(e,`getPluginConfiguration`,{enumerable:!0,get:function(){return i.getPluginConfiguration}});var a=de();Object.defineProperty(e,`openWorkspace`,{enumerable:!0,get:function(){return a.openWorkspace}});var o=fe();Object.defineProperty(e,`getCli`,{enumerable:!0,get:function(){return o.getCli}}),Object.defineProperty(e,`runExit`,{enumerable:!0,get:function(){return o.runExit}});var s=Q();Object.defineProperty(e,`pluginCommands`,{enumerable:!0,get:function(){return s.pluginCommands}})}));export default $();export{};