shopify 3.94.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/bin/run.js +5 -1
  2. package/dist/analytics-6IHHYAV6.js +1 -0
  3. package/dist/analytics-KKVP5DT3.js +1 -0
  4. package/dist/bootstrap.d.ts +5 -0
  5. package/dist/bootstrap.js +3 -0
  6. package/dist/chunk-22PCRFG4.js +1 -0
  7. package/dist/chunk-26D72ZNV.js +1 -0
  8. package/dist/chunk-2APPXD5Z.js +2 -0
  9. package/dist/chunk-2I4PRX2I.js +1 -0
  10. package/dist/chunk-2VQJQ36C.js +103 -0
  11. package/dist/chunk-323UTVMM.js +1 -0
  12. package/dist/chunk-3DQIVE24.js +9 -0
  13. package/dist/chunk-3F6NZK7S.js +2 -0
  14. package/dist/chunk-3LVGAQB4.js +1 -0
  15. package/dist/chunk-3TNEIDOD.js +1 -0
  16. package/dist/chunk-3VZEETAV.js +1 -0
  17. package/dist/chunk-4G7J6HIV.js +1 -0
  18. package/dist/chunk-4HHXSMD7.js +10 -0
  19. package/dist/chunk-4LNCYIS3.js +1 -0
  20. package/dist/chunk-4ZGSSQC6.js +1 -0
  21. package/dist/chunk-52GC6XUT.js +1 -0
  22. package/dist/chunk-5CH3B62S.js +2 -0
  23. package/dist/chunk-5Y7GIF2W.js +1 -0
  24. package/dist/chunk-66RJ5T7A.js +102 -0
  25. package/dist/chunk-6B53BWJW.js +1 -0
  26. package/dist/chunk-6BMMB2UO.js +1 -0
  27. package/dist/chunk-6HBRBQAN.js +6 -0
  28. package/dist/chunk-6M3ZYNGO.js +451 -0
  29. package/dist/chunk-6TZAAS5H.js +1 -0
  30. package/dist/chunk-72F3YBNA.js +1 -0
  31. package/dist/chunk-74HYYXXE.js +17 -0
  32. package/dist/chunk-75VPUOC5.js +1 -0
  33. package/dist/chunk-7BGM2GAH.js +1 -0
  34. package/dist/chunk-7UYZQN4V.js +18 -0
  35. package/dist/chunk-A74GETYC.js +1 -0
  36. package/dist/chunk-AIV5RI3X.js +1 -0
  37. package/dist/chunk-ALKTLKQ6.js +5 -0
  38. package/dist/chunk-B2EHO7ZC.js +847 -0
  39. package/dist/chunk-B2IVY4V5.js +1 -0
  40. package/dist/chunk-BDVAE5MS.js +28 -0
  41. package/dist/chunk-CERXUPGC.js +14 -0
  42. package/dist/chunk-D3TSJA5S.js +1 -0
  43. package/dist/chunk-D6JARNEH.js +1 -0
  44. package/dist/chunk-DFMQWJQ3.js +3 -0
  45. package/dist/chunk-DJONKJSZ.js +1 -0
  46. package/dist/chunk-DJQVNH7P.js +567 -0
  47. package/dist/chunk-DU4WR4OP.js +1 -0
  48. package/dist/chunk-ELVFJ7BR.js +4 -0
  49. package/dist/chunk-ELYP4KFP.js +8 -0
  50. package/dist/chunk-FFQ5EWII.js +294 -0
  51. package/dist/chunk-FUOIGXI4.js +1 -0
  52. package/dist/chunk-GD7FWXJ5.js +2 -0
  53. package/dist/chunk-GFEAKSGV.js +374 -0
  54. package/dist/chunk-GFJ7UV74.js +1 -0
  55. package/dist/chunk-GNPS5SBU.js +1 -0
  56. package/dist/chunk-GOJ2QHSR.js +1 -0
  57. package/dist/chunk-HSK7YMRE.js +359 -0
  58. package/dist/chunk-HUZUORYM.js +19 -0
  59. package/dist/chunk-HZA6IAA4.js +1 -0
  60. package/dist/chunk-IASVAERO.js +1 -0
  61. package/dist/chunk-IIIVWD4R.js +1 -0
  62. package/dist/chunk-INEU4XKS.js +6 -0
  63. package/dist/chunk-IOLVEXM6.js +1 -0
  64. package/dist/chunk-IU2ZQ6TE.js +2 -0
  65. package/dist/chunk-IX5ICOBV.js +7 -0
  66. package/dist/chunk-J3KVONB3.js +6 -0
  67. package/dist/chunk-JGXWQULI.js +1 -0
  68. package/dist/chunk-JHPRFW5B.js +19 -0
  69. package/dist/chunk-JLBH7RCF.js +4 -0
  70. package/dist/chunk-JPGO36XP.js +1 -0
  71. package/dist/chunk-JUVAGMIH.js +1 -0
  72. package/dist/chunk-JVIKCGDY.js +1 -0
  73. package/dist/chunk-K2WUCOQJ.js +32 -0
  74. package/dist/chunk-K5YV6UVF.js +4 -0
  75. package/dist/chunk-KBQ4LGFB.js +1 -0
  76. package/dist/chunk-KGXQS7LS.js +1 -0
  77. package/dist/chunk-KL5Z3T6L.js +1 -0
  78. package/dist/chunk-KLMDWDT2.js +1 -0
  79. package/dist/chunk-KNVM7N3U.js +1 -0
  80. package/dist/chunk-KWJ562F2.js +12 -0
  81. package/dist/chunk-LALIKZPS.js +5 -0
  82. package/dist/chunk-LAZJ47DZ.js +6 -0
  83. package/dist/chunk-LDGAHMS7.js +159 -0
  84. package/dist/chunk-LNHLDRC5.js +1 -0
  85. package/dist/chunk-LW7U753G.js +1 -0
  86. package/dist/chunk-LX3ZOW52.js +12 -0
  87. package/dist/chunk-LXFJDCNG.js +1 -0
  88. package/dist/chunk-MBAFWQSZ.js +7 -0
  89. package/dist/chunk-MOA33ZFO.js +1 -0
  90. package/dist/chunk-MQNYGGAM.js +1 -0
  91. package/dist/chunk-N5YIPQ6J.js +1 -0
  92. package/dist/chunk-N7RBSKYT.js +1 -0
  93. package/dist/chunk-NF2ABOOU.js +1 -0
  94. package/dist/chunk-NRAFVIU3.js +1 -0
  95. package/dist/chunk-OCOY5MV2.js +1 -0
  96. package/dist/chunk-ODNGDO4H.js +50 -0
  97. package/dist/chunk-OHY4ZL3U.js +2 -0
  98. package/dist/chunk-OLZHWPZP.js +1 -0
  99. package/dist/chunk-OUOYKNMY.js +1 -0
  100. package/dist/chunk-OXPWCC7I.js +64 -0
  101. package/dist/chunk-P5VVOLGV.js +1 -0
  102. package/dist/chunk-P6XE4MH5.js +1 -0
  103. package/dist/chunk-P7R7FBY2.js +3 -0
  104. package/dist/chunk-PD5ZHJWI.js +1 -0
  105. package/dist/chunk-PIBY5DDZ.js +1 -0
  106. package/dist/chunk-Q7ING5F5.js +1 -0
  107. package/dist/chunk-QFWIDATO.js +1 -0
  108. package/dist/chunk-QRRNOVJ3.js +1 -0
  109. package/dist/chunk-QSTEVZFQ.js +1 -0
  110. package/dist/chunk-R466TU3N.js +2 -0
  111. package/dist/chunk-RF2DPBA6.js +1 -0
  112. package/dist/chunk-RFG5RMPL.js +1 -0
  113. package/dist/chunk-RM5SJJN6.js +559 -0
  114. package/dist/chunk-RVNMVBPM.js +1 -0
  115. package/dist/chunk-SBEZBZM7.js +144 -0
  116. package/dist/chunk-SGQ6D3LU.js +15 -0
  117. package/dist/chunk-SRCQVUMC.js +1 -0
  118. package/dist/chunk-TFSBQ4RY.js +5 -0
  119. package/dist/chunk-TQYMC7TH.js +1 -0
  120. package/dist/chunk-UGDBJTLP.js +6 -0
  121. package/dist/chunk-UGXYQ23Y.js +1411 -0
  122. package/dist/chunk-UWJ73J4B.js +1 -0
  123. package/dist/chunk-V2CNCPIE.js +2 -0
  124. package/dist/chunk-VBUZWRUL.js +1 -0
  125. package/dist/chunk-VS3T5YOG.js +264 -0
  126. package/dist/chunk-VWYM4OWK.js +1 -0
  127. package/dist/chunk-VY6SNDKW.js +3 -0
  128. package/dist/chunk-WDC3KIZT.js +2 -0
  129. package/dist/chunk-WFXRSKRK.js +1 -0
  130. package/dist/chunk-WXVZJJOR.js +16 -0
  131. package/dist/chunk-WZBSLU4Q.js +6 -0
  132. package/dist/chunk-XBXMPFXM.js +1 -0
  133. package/dist/chunk-XEFQQPL4.js +1 -0
  134. package/dist/chunk-XLELNRFF.js +3 -0
  135. package/dist/chunk-XNO6DZYP.js +1 -0
  136. package/dist/chunk-Y5JKV2AI.js +1 -0
  137. package/dist/chunk-YC6G4MHD.js +3 -0
  138. package/dist/chunk-YI232QLS.js +1 -0
  139. package/dist/chunk-YMWHHINU.js +1 -0
  140. package/dist/chunk-YOZNRLFC.js +1 -0
  141. package/dist/chunk-YZDDTYTU.js +11 -0
  142. package/dist/chunk-Z35BTAM6.js +2 -0
  143. package/dist/chunk-ZR76GGZ6.js +5 -0
  144. package/dist/chunk-ZTMSBSYD.js +1 -0
  145. package/dist/chunk-ZV6NCNI4.js +586 -0
  146. package/dist/chunk-ZVJVDCIM.js +1 -0
  147. package/dist/cli/commands/app/app-logs/sources.js +2 -0
  148. package/dist/cli/commands/app/build.js +1 -0
  149. package/dist/cli/commands/app/bulk/cancel.js +1 -0
  150. package/dist/cli/commands/app/bulk/execute.js +9 -0
  151. package/dist/cli/commands/app/bulk/status.js +5 -0
  152. package/dist/cli/commands/app/config/link.js +4 -0
  153. package/dist/cli/commands/app/config/pull.js +1 -0
  154. package/dist/cli/commands/app/config/use.js +1 -0
  155. package/dist/cli/commands/app/config/validate.js +3 -0
  156. package/dist/cli/commands/app/demo/watcher.js +1 -0
  157. package/dist/cli/commands/app/deploy.js +22 -0
  158. package/dist/cli/commands/app/dev/clean.js +5 -0
  159. package/dist/cli/commands/app/dev.js +320 -0
  160. package/dist/cli/commands/app/env/pull.js +11 -0
  161. package/dist/cli/commands/app/env/show.js +1 -0
  162. package/dist/cli/commands/app/execute.js +1 -0
  163. package/dist/cli/commands/app/function/build.js +1 -0
  164. package/dist/cli/commands/app/function/info.js +16 -0
  165. package/dist/cli/commands/app/function/replay.js +5 -0
  166. package/dist/cli/commands/app/function/run.js +1 -0
  167. package/dist/cli/commands/app/function/schema.js +1 -0
  168. package/dist/cli/commands/app/function/typegen.js +1 -0
  169. package/dist/cli/commands/app/generate/extension.js +5 -0
  170. package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
  171. package/dist/cli/commands/app/import-extensions.js +1 -0
  172. package/dist/cli/commands/app/info.js +11 -0
  173. package/dist/cli/commands/app/init.js +10 -0
  174. package/dist/cli/commands/app/logs.js +2 -0
  175. package/dist/cli/commands/app/release.js +4 -0
  176. package/dist/cli/commands/app/versions/list.js +1 -0
  177. package/dist/cli/commands/app/webhook/trigger.js +25 -0
  178. package/dist/cli/commands/auth/login.js +1 -20
  179. package/dist/cli/commands/auth/logout.js +1 -12
  180. package/dist/cli/commands/cache/clear.js +1 -11
  181. package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
  182. package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
  183. package/dist/cli/commands/config/autoupgrade/off.js +1 -22
  184. package/dist/cli/commands/config/autoupgrade/on.js +1 -22
  185. package/dist/cli/commands/config/autoupgrade/status.js +1 -30
  186. package/dist/cli/commands/debug/command-flags.js +1 -79
  187. package/dist/cli/commands/docs/generate.js +1 -157
  188. package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
  189. package/dist/cli/commands/doctor-release/theme/index.js +1 -56
  190. package/dist/cli/commands/help.js +1 -26
  191. package/dist/cli/commands/kitchen-sink/async.js +1 -16
  192. package/dist/cli/commands/kitchen-sink/index.js +1 -21
  193. package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
  194. package/dist/cli/commands/kitchen-sink/static.js +1 -16
  195. package/dist/cli/commands/notifications/generate.js +1 -11
  196. package/dist/cli/commands/notifications/list.js +1 -33
  197. package/dist/cli/commands/organization/list.js +1 -0
  198. package/dist/cli/commands/search.js +1 -27
  199. package/dist/cli/commands/theme/check.js +1 -0
  200. package/dist/cli/commands/theme/console.js +15 -0
  201. package/dist/cli/commands/theme/delete.js +7 -0
  202. package/dist/cli/commands/theme/dev.js +26 -0
  203. package/dist/cli/commands/theme/duplicate.js +32 -0
  204. package/dist/cli/commands/theme/info.js +1 -0
  205. package/dist/cli/commands/theme/init.js +8 -0
  206. package/dist/cli/commands/theme/language-server.js +1 -0
  207. package/dist/cli/commands/theme/list.js +1 -0
  208. package/dist/cli/commands/theme/metafields/pull.js +3 -0
  209. package/dist/cli/commands/theme/open.js +8 -0
  210. package/dist/cli/commands/theme/package.js +7 -0
  211. package/dist/cli/commands/theme/preview.js +1 -0
  212. package/dist/cli/commands/theme/profile.js +3 -0
  213. package/dist/cli/commands/theme/publish.js +7 -0
  214. package/dist/cli/commands/theme/pull.js +3 -0
  215. package/dist/cli/commands/theme/push.js +28 -0
  216. package/dist/cli/commands/theme/rename.js +6 -0
  217. package/dist/cli/commands/theme/share.js +3 -0
  218. package/dist/cli/commands/upgrade.js +1 -17
  219. package/dist/cli/commands/version.js +1 -10
  220. package/dist/command-registry.d.ts +8 -0
  221. package/dist/command-registry.js +1 -0
  222. package/dist/conf-store-U5ZITKJN.js +1 -0
  223. package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
  224. package/dist/deprecations-TU5UQJVV.js +1 -0
  225. package/dist/dist-2Z5TND4U.js +1 -0
  226. package/dist/dist-GYHFDHKP.js +1 -0
  227. package/dist/environments-Z5PR7DSI.js +1 -0
  228. package/dist/error-IJGNYKZ3.js +1 -0
  229. package/dist/error-handler-WSCGNS2P.js +1 -0
  230. package/dist/fs-5BDEA2KD.js +1 -0
  231. package/dist/hooks/app-init.d.ts +9 -0
  232. package/dist/hooks/app-init.js +1 -0
  233. package/dist/hooks/did-you-mean.d.ts +1 -0
  234. package/dist/hooks/did-you-mean.js +1 -0
  235. package/dist/hooks/hydrogen-init.d.ts +7 -0
  236. package/dist/hooks/hydrogen-init.js +1 -0
  237. package/dist/hooks/plugin-plugins.d.ts +1 -0
  238. package/dist/hooks/plugin-plugins.js +1 -0
  239. package/dist/hooks/postrun.js +1 -1
  240. package/dist/hooks/prerun.js +1 -1
  241. package/dist/hooks/public-metadata.d.ts +1 -0
  242. package/dist/hooks/public-metadata.js +1 -0
  243. package/dist/hooks/sensitive-metadata.d.ts +1 -0
  244. package/dist/hooks/sensitive-metadata.js +1 -0
  245. package/dist/hooks/tunnel-provider.d.ts +1 -0
  246. package/dist/hooks/tunnel-provider.js +1 -0
  247. package/dist/hooks/tunnel-start.d.ts +1 -0
  248. package/dist/hooks/tunnel-start.js +1 -0
  249. package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
  250. package/dist/index.js +254 -3668
  251. package/dist/is-global-V4ZRHQG2.js +1 -0
  252. package/dist/latest-version-EFWBOTWM.js +49 -0
  253. package/dist/lib-5L7UKDEK.js +1 -0
  254. package/dist/lib-C3VO2BQW.js +1 -0
  255. package/dist/lib-QB6I6CTC.js +1 -0
  256. package/dist/local-6QPX4GCJ.js +1 -0
  257. package/dist/local-storage-JLXBZVWO.js +1 -0
  258. package/dist/metadata-UDMOTRS7.js +1 -0
  259. package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
  260. package/dist/node-package-manager-HAFRYGUM.js +1 -0
  261. package/dist/notifications-system-MP7WDOCS.js +1 -0
  262. package/dist/npa-ICFSA3NL.js +1 -0
  263. package/dist/output-YGMHXEIS.js +1 -0
  264. package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
  265. package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
  266. package/dist/system-KLXD4FXF.js +1 -0
  267. package/dist/tsconfig.tsbuildinfo +1 -1
  268. package/dist/typescript-K5CWIA4V.js +1 -0
  269. package/dist/ui-GHG3UGB3.js +1 -0
  270. package/dist/upgrade-OPZGPM5J.js +1 -0
  271. package/dist/version-D5PJZIRW.js +1 -0
  272. package/dist/version-KRQBMYCH.js +1 -0
  273. package/dist/workerd-L2EJKIAQ.js +18 -0
  274. package/oclif.manifest.json +5247 -6056
  275. package/package.json +17 -41
  276. package/dist/chunk-45T5XUIM.js +0 -1
  277. package/dist/chunk-52KHWFYF.js +0 -1
  278. package/dist/chunk-66TIGB4U.js +0 -415
  279. package/dist/chunk-675GKVCB.js +0 -3
  280. package/dist/chunk-7ES6PV7M.js +0 -847
  281. package/dist/chunk-BF7JM4FH.js +0 -396
  282. package/dist/chunk-FU2Y2M3M.js +0 -5
  283. package/dist/chunk-IDQ4X47Z.js +0 -3
  284. package/dist/chunk-JBSYWYIP.js +0 -2
  285. package/dist/chunk-PBKIXB7L.js +0 -63
  286. package/dist/chunk-SVA22NZQ.js +0 -607
  287. package/dist/error-handler-LC7FITE7.js +0 -1
  288. package/dist/http-proxy-node16-TTURN6MD.js +0 -38
  289. package/dist/lib-3WHF5XD3.js +0 -1
  290. package/dist/local-TWIGLQ7X.js +0 -1
  291. package/dist/node-package-manager-3UCLJPGW.js +0 -1
  292. package/dist/npa-OKDXXRCU.js +0 -1
  293. package/dist/ui-UYE67X4Y.js +0 -1
  294. package/dist/workerd-37BZZEVW.js +0 -18
  295. /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
@@ -0,0 +1 @@
1
+ import{b as n,c as s,d as h}from"./chunk-DFMQWJQ3.js";import{a as r}from"./chunk-YMWHHINU.js";import{d as m}from"./chunk-JPGO36XP.js";import{g as o}from"./chunk-VPRTJUIN.js";o();var p=t=>`Development theme #${t} could not be found. Please create a new development theme.`,d="No development theme ID has been set. Please create a development theme first.",i=class extends r{constructor(e){super(e);this.context="Development";this.themeId=n()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?p(this.themeId):d);return e}setTheme(e){s(e)}removeTheme(){h()}};export{i as a};
@@ -0,0 +1,28 @@
1
+ import{a as Ea,b as va}from"./chunk-P6XE4MH5.js";import{a as ya}from"./chunk-KLMDWDT2.js";import{a as xn}from"./chunk-5CH3B62S.js";import{a as wa}from"./chunk-QUTQDXSL.js";import{f as Ne}from"./chunk-IASVAERO.js";import{d as qe,e as nt,f as En,g as vn,k as Sn}from"./chunk-JPGO36XP.js";import{a as wn}from"./chunk-PD5ZHJWI.js";import{j as ba}from"./chunk-LDGAHMS7.js";import{a as xa}from"./chunk-QYR5VPQA.js";import{a as Et}from"./chunk-V2CNCPIE.js";import{C as ca,E as ua,Eb as yn,F as fa,Gb as Tn,H as ma,Ib as St,J as da,Qb as Pe,U as fn,Wb as Ge,Xb as we,a as ea,eb as N,f as ra,fb as g,gb as w,hb as ar,ib as dn,jb as wt,kb as fe,l as na,lb as pn,m as oa,mb as _e,nb as yt,ob as hn,pb as lr,rb as ha,sb as ga,t as sr,tb as Ue,u as ia,ub as gn,vb as Ie,wb as $e,xb as bn,y as aa,yb as V,z as la}from"./chunk-GFEAKSGV.js";import{e as ta,g as sa,j as pa,l as mn}from"./chunk-CERXUPGC.js";import{f as vt}from"./chunk-YC6G4MHD.js";import{a as ir}from"./chunk-N7RBSKYT.js";import{b as cn,i as un,q as xt}from"./chunk-IU2ZQ6TE.js";import{a as ue,c as k,e as D,g as f}from"./chunk-VPRTJUIN.js";var Dn=k(($u,Ln)=>{f();Ln.exports=Rn;Rn.sync=Ta;var Cn=ue("fs");function Sa(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function An(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:Sa(t,r)}function Rn(e,t,r){Cn.stat(e,function(n,o){r(n,n?!1:An(o,e,t))})}function Ta(e,t){return An(Cn.statSync(e),e,t)}});var In=k((qu,Bn)=>{f();Bn.exports=_n;_n.sync=Ca;var kn=ue("fs");function _n(e,t,r){kn.stat(e,function(n,o){r(n,n?!1:Mn(o,t))})}function Ca(e,t){return Mn(kn.statSync(e),t)}function Mn(e,t){return e.isFile()&&Aa(e,t)}function Aa(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),u=parseInt("100",8),m=parseInt("010",8),d=parseInt("001",8),p=u|m,b=r&d||r&m&&o===s||r&u&&n===i||r&p&&i===0;return b}});var On=k((ju,Pn)=>{f();var Hu=ue("fs"),Tt;process.platform==="win32"||global.TESTING_WINDOWS?Tt=Dn():Tt=In();Pn.exports=cr;cr.sync=Ra;function cr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){cr(e,t||{},function(i,s){i?o(i):n(s)})})}Tt(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Ra(e,t){try{return Tt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Hn=k((zu,Gn)=>{f();var He=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fn=ue("path"),La=He?";":":",Un=On(),$n=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Nn=(e,t)=>{let r=t.colon||La,n=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=He?o.split(r):[""];return He&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},qn=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Nn(e,t),s=[],u=d=>new Promise((p,b)=>{if(d===n.length)return t.all&&s.length?p(s):b($n(e));let v=n[d],S=/^".*"$/.test(v)?v.slice(1,-1):v,y=Fn.join(S,e),A=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;p(m(A,d,0))}),m=(d,p,b)=>new Promise((v,S)=>{if(b===o.length)return v(u(p+1));let y=o[b];Un(d+y,{pathExt:i},(A,C)=>{if(!A&&C)if(t.all)s.push(d+y);else return v(d+y);return v(m(d,p,b+1))})});return r?u(0).then(d=>r(null,d),r):u(0)},Da=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Nn(e,t),i=[];for(let s=0;s<r.length;s++){let u=r[s],m=/^".*"$/.test(u)?u.slice(1,-1):u,d=Fn.join(m,e),p=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let b=0;b<n.length;b++){let v=p+n[b];try{if(Un.sync(v,{pathExt:o}))if(t.all)i.push(v);else return v}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw $n(e)};Gn.exports=qn;qn.sync=Da});var Wn=k((Xu,ur)=>{"use strict";f();var jn=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};ur.exports=jn;ur.exports.default=jn});var Kn=k((Yu,Xn)=>{"use strict";f();var zn=ue("path"),ka=Hn(),_a=Wn();function Vn(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=ka.sync(e.command,{path:r[_a({env:r})],pathExt:t?zn.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=zn.resolve(o?e.options.cwd:"",s)),s}function Ma(e){return Vn(e)||Vn(e,!0)}Xn.exports=Ma});var Yn=k((Qu,mr)=>{"use strict";f();var fr=/([()\][%!^"`<>&|;, *?])/g;function Ba(e){return e=e.replace(fr,"^$1"),e}function Ia(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(fr,"^$1"),t&&(e=e.replace(fr,"^$1")),e}mr.exports.command=Ba;mr.exports.argument=Ia});var Qn=k((ef,Zn)=>{"use strict";f();Zn.exports=/^#!(.*)/});var eo=k((rf,Jn)=>{"use strict";f();var Pa=Qn();Jn.exports=(e="")=>{let t=e.match(Pa);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var ro=k((of,to)=>{"use strict";f();var dr=ue("fs"),Oa=eo();function Fa(e){let r=Buffer.alloc(150),n;try{n=dr.openSync(e,"r"),dr.readSync(n,r,0,150,0),dr.closeSync(n)}catch{}return Oa(r.toString())}to.exports=Fa});var so=k((af,io)=>{"use strict";f();var Ua=ue("path"),no=Kn(),oo=Yn(),$a=ro(),Na=process.platform==="win32",qa=/\.(?:com|exe)$/i,Ga=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ha(e){e.file=no(e);let t=e.file&&$a(e.file);return t?(e.args.unshift(e.file),e.command=t,no(e)):e.file}function ja(e){if(!Na)return e;let t=Ha(e),r=!qa.test(t);if(e.options.forceShell||r){let n=Ga.test(t);e.command=Ua.normalize(e.command),e.command=oo.command(e.command),e.args=e.args.map(i=>oo.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Wa(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ja(n)}io.exports=Wa});var co=k((cf,lo)=>{"use strict";f();var pr=process.platform==="win32";function hr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function za(e,t){if(!pr)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=ao(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function ao(e,t){return pr&&e===1&&!t.file?hr(t.original,"spawn"):null}function Va(e,t){return pr&&e===1&&!t.file?hr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:za,verifyENOENT:ao,verifyENOENTSync:Va,notFoundError:hr}});var mo=k((ff,je)=>{"use strict";f();var uo=ue("child_process"),gr=so(),br=co();function fo(e,t,r){let n=gr(e,t,r),o=uo.spawn(n.command,n.args,n.options);return br.hookChildProcess(o,n),o}function Xa(e,t,r){let n=gr(e,t,r),o=uo.spawnSync(n.command,n.args,n.options);return o.error=o.error||br.verifyENOENTSync(o.status,n),o}je.exports=fo;je.exports.spawn=fo;je.exports.sync=Xa;je.exports._parse=gr;je.exports._enoent=br});var ko=k((Xf,Do)=>{"use strict";f();var{PassThrough:bl}=ue("stream");Do.exports=function(){var e=[],t=new bl({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function n(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var Jo=k((id,Qo)=>{f();var{EventEmitter:Xl}=ue("events"),kt=class{constructor(){this.eventEmitter=new Xl,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,r){this.eventEmitter.removeListener(t,r)}addEventListener(t,r){this.eventEmitter.on(t,r)}dispatchEvent(t){let r={type:t,target:this},n=`on${t}`;typeof this[n]=="function"&&this[n](r),this.eventEmitter.emit(t,r)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new st;return r.abort(),r.signal}static timeout(t){let r=new st;return setTimeout(()=>r.abort(new Error("TimeoutError")),t),r.signal}},st=class{constructor(){this.signal=new kt}abort(t){this.signal.aborted||(this.signal.aborted=!0,t?this.signal.reason=t:this.signal.reason=new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}};Qo.exports={AbortController:st,AbortSignal:kt}});var ui=k((ap,ci)=>{"use strict";f();ci.exports=class ye{constructor(t){try{t(r=>{this.setValue(r,!1)},r=>{this.setValue(r,!0)})}catch(r){this.setValue(r,!0)}}setValue(t,r){this.val=t instanceof ye?t.val:t,this.rejected=r||(t instanceof ye?t.rejected:!1)}static valueFrom(t){if(t instanceof ye){if(t.rejected)throw t.val;return t.val}else return t}then(t){try{if(!this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}catch(t){try{if(this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}static resolve(t){return new ye(r=>{r(t)})}static reject(t){return new ye((r,n)=>{n(t)})}}});var di=k((cp,mi)=>{"use strict";f();var fi=typeof window<"u"&&window.window===window&&window.navigator,fc=fi?window.location.href:process.cwd(),mc=new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),Re=mi.exports={concat(e,t){let r=e[e.length-1]==="/",n=t[0]==="/";return e+(r||n?"":"/")+(r&&n?t.substring(1):t)},resolve(e){return Re.isAbsolute(e)?Re.normalize(e):Re.normalize(Re.concat(fc,e))},normalize(e){let t=[],r=0;e.split("/").reverse().filter(o=>o!==".").forEach(o=>{o===".."?r++:r===0?t.push(o):r--});let n=t.reverse().join("/");return(fi&&n[0]==="/"?n[1]==="/"?window.location.protocol:window.location.origin:"")+n},isData:e=>e.indexOf("data:")===0,isURL:e=>mc.test(e),isAbsolute:e=>e[0]==="/"||/^[^\/]*:/.test(e),relativeToFile(e,t){return Re.isData(e)||Re.isAbsolute(t)?Re.normalize(t):Re.normalize(Re.concat(e.split("/").slice(0,-1).join("/"),t))}}});var hi=k((fp,pi)=>{"use strict";f();pi.exports=dc;function dc(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");for(var r=e.substring(5,t).split(";"),n=r[0]||"text/plain",o=n,i=!1,s="",u=1;u<r.length;u++)r[u]=="base64"?i=!0:(o+=";"+r[u],r[u].indexOf("charset=")==0&&(s=r[u].substring(8)));!r[0]&&!s.length&&(o+=";charset=US-ASCII",s="US-ASCII");var m=unescape(e.substring(t+1)),d=i?"base64":"ascii",p=Buffer.from?Buffer.from(m,d):new Buffer(m,d);return p.type=n,p.typeFull=o,p.charset=s,p}});var wi=k((dp,Nt)=>{"use strict";f();var{assign:We}=Object,Fr=typeof window<"u"&&window.window===window&&window.navigator,pc=xa().SourceMapConsumer,$t=ui(),Or=di(),hc=hi(),bi=Fr?null:Nt.require,gi=e=>{let t=r=>r in t.cache?t.cache[r]:t.cache[r]=e(r);return t.forgetEverything=()=>{t.cache=Object.create(null)},t.cache=Object.create(null),t};function xi(e,t){let r=t?$t:Promise,n=gi(u=>o(u,e(u)));function o(u,m){return m===void 0?n(Or.resolve(u)):r.resolve(m).then(d=>{let p,b,v,S=y=>(v=v||i(p))(y);return p={path:u,text:d,get lines(){return b=b||d.split(`
2
+ `)},resolve(y){let A=S(y);if(t)try{return $t.valueFrom(A)}catch(C){return We({},y,{error:C})}else return Promise.resolve(A)},_resolve:S}})}function i(u){let m=/\u0023 sourceMappingURL=(.+)\n?/g,d;for(;;){let v=m.exec(u.text);if(v)d=v;else break}let p=d&&d[1],b=v=>We({},v,{sourceFile:u,sourceLine:u.lines[v.line-1]||""});return p?s(u.path,p,b):b}function s(u,m,d){let p=m.startsWith("data:")?o(u,hc(m).toString()):o(Or.relativeToFile(u,m)),b=p.then(S=>pc(JSON.parse(S.text))),v=gi(function(y){return p.then(A=>{let C=Or.relativeToFile(A.path,y);return b.then(I=>o(C,I.sourceContentFor(y,!0)||void 0))})});return S=>b.then(y=>{let A=y.originalPositionFor(S);return A.source?v(A.source).then(C=>C._resolve(We({},S,{line:A.line,column:A.column+1,name:A.name}))):d(S)}).catch(y=>We(d(S),{sourceMapError:y}))}return We(function(m){let d=o(m);if(t)try{return $t.valueFrom(d)}catch(p){let b={path:m,text:"",lines:[],error:p,resolve(v){return We({},v,{error:p,sourceLine:"",sourceFile:b})}};return b}return d},{resetCache:()=>n.forgetEverything(),getCache:()=>n.cache})}Nt.exports=xi(function(t){return new $t(r=>{if(Fr){let n=new XMLHttpRequest;n.open("GET",t,!1),n.send(null),r(n.responseText)}else r(bi("fs").readFileSync(t,{encoding:"utf8"}))})},!0);Nt.exports.async=xi(function(t){return new Promise((r,n)=>{if(Fr){let o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=i=>{o.readyState===4&&(o.status===200?r(o.responseText):n(new Error(o.statusText)))},o.send(null)}else bi("fs").readFile(t,{encoding:"utf8"},(o,i)=>{o?n(o):r(i)})})})});var Ei=k((hp,yi)=>{"use strict";f();yi.exports=(e,t)=>{let r=e||[],n=[],o={label:void 0,items:[r.first]};return r.forEach(i=>{let s=t(i);o.label!==s&&o.items.length?n.push(o={label:s,items:[i]}):o.items.push(i)}),n}});var Si=k((bp,qr)=>{"use strict";f();var gc=(function(){function e(t,r){var n=[],o=!0,i=!1,s=void 0;try{for(var u=t[Symbol.iterator](),m;!(o=(m=u.next()).done)&&(n.push(m.value),!(r&&n.length===r));o=!0);}catch(d){i=!0,s=d}finally{try{!o&&u.return&&u.return()}finally{if(i)throw s}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),qt="[\x1B\x9B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]",vi="\0-\b\v-\x1B\x9B\xAD\u200B\u2028\u2029\uFEFF\uFE00-\uFE0F",Nr=`
3
+ `+vi,bc=new RegExp("(?:"+qt+")|["+vi+"]","g"),Ur=new RegExp("(?:"+qt+")|["+Nr+"]","g"),$r=new RegExp("((?:"+qt+")|[ "+Nr+"])?([^ "+Nr+"]*)","g");qr.exports={zeroWidthCharacters:Ur,ansiEscapeCodes:new RegExp(qt,"g"),strlen:e=>Array.from(e.replace(Ur,"")).length,isBlank:e=>e.replace(Ur,"").replace(/\s/g,"").length===0,blank:e=>Array.from(e.replace(bc,"")).map(t=>t===" "||t===`
4
+ `?t:" ").join(""),partition(e){for(var t,r=[];$r.lastIndex!==e.length&&(t=$r.exec(e));)r.push([t[1]||"",t[2]]);return $r.lastIndex=0,r},first(e,t){let r="",n=0;for(let i of qr.exports.partition(e)){var o=gc(i,2);let s=o[0],u=o[1],m=Array.from(u).slice(0,t-n);r+=s+m.join(""),n+=m.length}return r}}});var Li=k((wp,Ri)=>{"use strict";f();function ze(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var Gt=Object,Ci=Si(),xc=Ci.first,Ht=Ci.strlen,wc=(e,t)=>xc(e,t-1)+"\u2026",Ti=(e,t)=>{let r=(y,A)=>y.reduce((C,I)=>I.map((R,T)=>[].concat(ze(C[T]||[]),[R])),[]).map(C=>A.apply(void 0,ze(C))),n=e.map(y=>y.map(A=>A.replace(/\n/g,"\\n"))),o=n.map(y=>y.map(Ht)),i=r(o,Math.max),s=Gt.assign({delimiter:" ",minColumnWidths:i.map(y=>0),maxTotalWidth:0},t),u=Ht(s.delimiter),m=i.reduce((y,A)=>y+A,0),d=i.map(y=>y/m),p=s.maxTotalWidth-u*(i.length-1),b=Math.max(0,m-p),v=r([s.minColumnWidths,i,d],(y,A,C)=>Math.max(y,Math.floor(A-b*C))),S=o.map(y=>r([v,y],(A,C)=>A-C));return r([n,S],(y,A)=>r([y,A],(C,I)=>I>=0?s.right?" ".repeat(I)+C:C+" ".repeat(I):wc(C,Ht(C)+I)).join(s.delimiter))},Ai=e=>Gt.assign(t=>{var r;if(t[0]&&Array.isArray(t[0]))return Ti(t.map(s=>s.map((u,m)=>u===void 0?"":e.print(u,m))),e).join(`
5
+ `);let n=[].concat(ze(new Set((r=[]).concat.apply(r,ze(t.map(Gt.keys)))))),o=[n.map(e.title)].concat(ze(t.map(s=>n.map(u=>s[u]===void 0?"":e.print(s[u],u))))),i=Ti(o,e);return(e.dash?[i[0],e.dash.repeat(Ht(i[0]))].concat(ze(i.slice(1))):i).join(`
6
+ `)},e,{configure:t=>Ai(Gt.assign({},e,t))});Ri.exports=Ai({maxTotalWidth:Number.MAX_SAFE_INTEGER,print:String,title:String,dash:"-",right:!1})});var _i=k((vp,Gr)=>{"use strict";f();var jt=Object,Ve=typeof window<"u"&&window.window===window&&window.navigator,Ep=Ve?null:Gr.require,Di=e=>e[e.length-1],Wt=wi(),yc=Ei(),Ec=Li(),ut=e=>e.replace(/\\/g,"/"),ki=Ve?window.location.href:ut(process.cwd())+"/",ft=class e{constructor(t,r){let n=t,o=t&&t instanceof SyntaxError&&!Ve;if(t||(t=new Error,r=r===void 0?1:r),t instanceof Error&&(t=t.stack||""),typeof t=="string"&&(t=this.rawParse(t).slice(r).map(i=>this.extractEntryMetadata(i))),Array.isArray(t)){if(o){let i=ue("util").inspect(n).split(`
7
+ `),s=i[0].split(":"),u=s.pop(),m=s.join(":");m&&t.unshift({file:ut(m),line:u,column:(i[2]||"").indexOf("^")+1,sourceLine:i[1],callee:"(syntax error)",syntaxError:!0})}this.items=t}else this.items=[]}extractEntryMetadata(t){let r=this.decomposePath(t.file||""),n=r[0],o=r[1];return jt.assign(t,{calleeShort:t.calleeShort||Di((t.callee||"").split(".")),fileRelative:n,fileShort:this.shortenPath(n),fileName:Di((t.file||"").split("/")),thirdParty:this.isThirdParty(n,o)&&!t.index,externalDomain:o})}shortenPath(t){return t.replace(/^node_modules\//,"").replace(/^webpack\/bootstrap\//,"").replace(/^__parcel_source_root\//,"")}decomposePath(t){let r=t;Ve&&(r=r.replace(ki,""));let n=r.match(/^(http|https)\:\/\/?([^\/]+)\/(.*)/),o=n?n[2]:void 0;return r=n?n[3]:r,Ve||(r=ue("path").relative(ki,r)),[ut(r).replace(/^.*\:\/\/?\/?/,""),o]}isThirdParty(t,r){return r||t[0]==="~"||t[0]==="/"||t.indexOf("node_modules")===0||t.indexOf("webpack/bootstrap")===0}rawParse(t){return(t||"").split(`
8
+ `).map(o=>{o=o.trim();let i,s=[],u,m,d;if((m=o.match(/at (.+) \(eval at .+ \((.+)\), .+\)/))||(m=o.match(/at (.+) \((.+)\)/))||o.slice(0,3)!=="at "&&(m=o.match(/(.*)@(.*)/)))i=m[1],u=m[2]==="native",s=(m[2].match(/(.*):(\d+):(\d+)/)||m[2].match(/(.*):(\d+)/)||[]).slice(1);else if(d=o.match(/^(at\s+)*(.+):(\d+):(\d+)/))s=d.slice(2);else return;return i&&!s[0]&&i.split(".")[0]==="Array"&&(u=!0),{beforeParse:o,callee:i||"",index:Ve&&s[0]===window.location.href,native:u||!1,file:ut(s[0]||""),line:parseInt(s[1]||"",10)||void 0,column:parseInt(s[2]||"",10)||void 0}}).filter(o=>o!==void 0)}withSourceAt(t){return this.items[t]&&this.withSource(this.items[t])}withSourceAsyncAt(t){return this.items[t]&&this.withSourceAsync(this.items[t])}withSource(t){if(this.shouldSkipResolving(t))return t;{let r=Wt(t.file||"").resolve(t);return r.sourceFile?this.withSourceResolved(t,r):t}}withSourceAsync(t){return this.shouldSkipResolving(t)?Promise.resolve(t):Wt.async(t.file||"").then(r=>r.resolve(t)).then(r=>this.withSourceResolved(t,r)).catch(r=>this.withSourceResolved(t,{error:r,sourceLine:""}))}shouldSkipResolving(t){return t.sourceFile||t.error||t.file&&t.file.indexOf("<")>=0}withSourceResolved(t,r){return r.sourceFile&&!r.sourceFile.error&&(r.file=ut(r.sourceFile.path),r=this.extractEntryMetadata(r)),r.sourceLine.includes("// @hide")&&(r.sourceLine=r.sourceLine.replace("// @hide",""),r.hide=!0),(r.sourceLine.includes("__webpack_require__")||r.sourceLine.includes("/******/ ({"))&&(r.thirdParty=!0),jt.assign({sourceLine:""},t,r)}withSources(){return this.map(t=>this.withSource(t))}withSourcesAsync(){return Promise.all(this.items.map(t=>this.withSourceAsync(t))).then(t=>new e(t))}mergeRepeatedLines(){return new e(yc(this.items,t=>t.file+t.line).map(t=>t.items.slice(1).reduce((r,n)=>(r.callee=(r.callee||"<anonymous>")+" \u2192 "+(n.callee||"<anonymous>"),r.calleeShort=(r.calleeShort||"<anonymous>")+" \u2192 "+(n.calleeShort||"<anonymous>"),r),jt.assign({},t.items[0]))))}clean(){let t=this.withSources().mergeRepeatedLines();return t.filter(t.isClean.bind(t))}cleanAsync(){return this.withSourcesAsync().then(t=>(t=t.mergeRepeatedLines(),t.filter(t.isClean.bind(t))))}isClean(t,r){return r===0||!(t.thirdParty||t.hide||t.native)}at(t){return jt.assign({beforeParse:"",callee:"<???>",index:!1,native:!1,file:"<???>",line:0,column:0},this.items[t])}asTable(t){let r=t&&t.maxColumnWidths||this.maxColumnWidths(),n=(s,u)=>s&&(s.length>u?s.slice(0,u-1)+"\u2026":s),o=(s,u)=>s&&(s.length>u?"\u2026"+s.slice(-(u-1)):s),i=this.map(s=>["at "+n(s.calleeShort,r.callee),o(s.fileShort&&s.fileShort+":"+s.line||"",r.file),n((s.sourceLine||"").trim()||"",r.sourceLine)]);return Ec(i.items)}maxColumnWidths(){return{callee:30,file:60,sourceLine:80}}static resetCache(){Wt.resetCache(),Wt.async.resetCache()}static locationsEqual(t,r){return t.file===r.file&&t.line===r.line&&t.column===r.column}};["map","filter","slice","concat"].forEach(e=>{ft.prototype[e]=function(){return new ft(this.items[e].apply(this.items,arguments))}});Gr.exports=ft});var $i=k((Rh,Ui)=>{f();function Dc(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),u=s.length;u--;){var m=s[e?u:++o];if(r(i[m],m,i)===!1)break}return t}}Ui.exports=Dc});var qi=k((Dh,Ni)=>{f();var kc=$i(),_c=kc();Ni.exports=_c});var Hi=k((_h,Gi)=>{f();var Mc=qi(),Bc=ia();function Ic(e,t){return e&&Mc(e,t,Bc)}Gi.exports=Ic});var Wi=k((Bh,ji)=>{f();var Pc=sr();function Oc(e,t){return function(r,n){if(r==null)return r;if(!Pc(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&n(s[i],i,s)!==!1;);return r}}ji.exports=Oc});var Vi=k((Ph,zi)=>{f();var Fc=Hi(),Uc=Wi(),$c=Uc(Fc);zi.exports=$c});var Ki=k((Fh,Xi)=>{f();var Nc=Vi(),qc=sr();function Gc(e,t){var r=-1,n=qc(e)?Array(e.length):[];return Nc(e,function(o,i,s){n[++r]=t(o,i,s)}),n}Xi.exports=Gc});var Zi=k(($h,Yi)=>{f();function Hc(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}Yi.exports=Hc});var es=k((qh,Ji)=>{f();var Qi=sa();function jc(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,i=Qi(e),s=t!==void 0,u=t===null,m=t===t,d=Qi(t);if(!u&&!d&&!i&&e>t||i&&s&&m&&!u&&!d||n&&s&&m||!r&&m||!o)return 1;if(!n&&!i&&!d&&e<t||d&&r&&o&&!n&&!i||u&&r&&o||!s&&o||!m)return-1}return 0}Ji.exports=jc});var rs=k((Hh,ts)=>{f();var Wc=es();function zc(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,s=o.length,u=r.length;++n<s;){var m=Wc(o[n],i[n]);if(m){if(n>=u)return m;var d=r[n];return m*(d=="desc"?-1:1)}}return e.index-t.index}ts.exports=zc});var os=k((Wh,ns)=>{f();var Wr=la(),Vc=ca(),Xc=fa(),Kc=Ki(),Yc=Zi(),Zc=oa(),Qc=rs(),Jc=ua(),eu=ra();function tu(e,t,r){t.length?t=Wr(t,function(i){return eu(i)?function(s){return Vc(s,i.length===1?i[0]:i)}:i}):t=[Jc];var n=-1;t=Wr(t,Zc(Xc));var o=Kc(e,function(i,s,u){var m=Wr(t,function(d){return d(i)});return{criteria:m,index:++n,value:i}});return Yc(o,function(i,s){return Qc(i,s,r)})}ns.exports=tu});var ss=k((Vh,is)=>{f();var ru=ea(),nu=sr(),ou=na(),iu=ta();function su(e,t,r){if(!iu(r))return!1;var n=typeof t;return(n=="number"?nu(r)&&ou(t,r.length):n=="string"&&t in r)?ru(r[t],e):!1}is.exports=su});var cs=k((Kh,ls)=>{f();var au=ma(),lu=os(),cu=da(),as=ss(),uu=cu(function(e,t){if(e==null)return[];var r=t.length;return r>1&&as(e,t[0],t[1])?t=[]:r>2&&as(t[0],t[1],t[2])&&(t=[t[0]]),lu(e,au(t,1),[])});ls.exports=uu});var hs=k((Ag,ps)=>{"use strict";f();var pu=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,i=0,s="";do s+=e.substr(i,n-i)+t+r,i=n+o,n=e.indexOf(t,i);while(n!==-1);return s+=e.substr(i),s},hu=(e,t,r,n)=>{let o=0,i="";do{let s=e[n-1]==="\r";i+=e.substr(o,(s?n-1:n)-o)+t+(s?`\r
9
+ `:`
10
+ `)+r,o=n+1,n=e.indexOf(`
11
+ `,o)}while(n!==-1);return i+=e.substr(o),i};ps.exports={stringReplaceAll:pu,stringEncaseCRLFWithFirstIndex:hu}});var ys=k((Lg,ws)=>{"use strict";f();var gu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,gs=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,bu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,xu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,wu=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xs(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):wu.get(e)||e}function yu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let i of n){let s=Number(i);if(!Number.isNaN(s))r.push(s);else if(o=i.match(bu))r.push(o[2].replace(xu,(u,m,d)=>m?xs(m):d));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function Eu(e){gs.lastIndex=0;let t=[],r;for(;(r=gs.exec(e))!==null;){let n=r[1];if(r[2]){let o=yu(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function bs(e,t){let r={};for(let o of t)for(let i of o.styles)r[i[0]]=o.inverse?null:i.slice(1);let n=e;for(let[o,i]of Object.entries(r))if(Array.isArray(i)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=i.length>0?n[o](...i):n[o]}return n}ws.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(gu,(i,s,u,m,d,p)=>{if(s)o.push(xs(s));else if(m){let b=o.join("");o=[],n.push(r.length===0?b:bs(e,r)(b)),r.push({inverse:u,styles:Eu(m)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(bs(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Rs=k((kg,As)=>{"use strict";f();var dt=ba(),{stdout:Vr,stderr:Xr}=ha(),{stringReplaceAll:vu,stringEncaseCRLFWithFirstIndex:Su}=hs(),{isArray:Qt}=Array,vs=["ansi","ansi","ansi256","ansi16m"],Qe=Object.create(null),Tu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Vr?Vr.level:0;e.level=t.level===void 0?r:t.level},Kr=class{constructor(t){return Ss(t)}},Ss=e=>{let t={};return Tu(t,e),t.template=(...r)=>Cs(t.template,...r),Object.setPrototypeOf(t,Jt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Kr,t.template};function Jt(e){return Ss(e)}for(let[e,t]of Object.entries(dt))Qe[e]={get(){let r=er(this,Yr(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Qe.visible={get(){let e=er(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ts=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ts)Qe[e]={get(){let{level:t}=this;return function(...r){let n=Yr(dt.color[vs[t]][e](...r),dt.color.close,this._styler);return er(this,n,this._isEmpty)}}};for(let e of Ts){let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let{level:r}=this;return function(...n){let o=Yr(dt.bgColor[vs[r]][e](...n),dt.bgColor.close,this._styler);return er(this,o,this._isEmpty)}}}}var Cu=Object.defineProperties(()=>{},{...Qe,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Yr=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},er=(e,t,r)=>{let n=(...o)=>Qt(o[0])&&Qt(o[0].raw)?Es(n,Cs(n,...o)):Es(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,Cu),n._generator=e,n._styler=t,n._isEmpty=r,n},Es=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=vu(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
13
+ `);return i!==-1&&(t=Su(t,o,n,i)),n+t+o},zr,Cs=(e,...t)=>{let[r]=t;if(!Qt(r)||!Qt(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let i=1;i<r.length;i++)o.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return zr===void 0&&(zr=ys()),zr(e,o.join(""))};Object.defineProperties(Jt.prototype,Qe);var tr=Jt();tr.supportsColor=Vr;tr.stderr=Jt({level:Xr?Xr.level:0});tr.stderr.supportsColor=Xr;As.exports=tr});var Ls=k((Zr,Qr)=>{f();(function(e,t){typeof Zr=="object"&&typeof Qr<"u"?Qr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Zr,(function(){"use strict";function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(a)}var t=/^\s+/,r=/\s+$/;function n(a,c){if(a=a||"",c=c||{},a instanceof n)return a;if(!(this instanceof n))return new n(a,c);var l=o(a);this._originalInput=a,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=c.format||l.format,this._gradientType=c.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(c.r*299+c.g*587+c.b*114)/1e3},getLuminance:function(){var c=this.toRgb(),l,h,E,x,U,W;return l=c.r/255,h=c.g/255,E=c.b/255,l<=.03928?x=l/12.92:x=Math.pow((l+.055)/1.055,2.4),h<=.03928?U=h/12.92:U=Math.pow((h+.055)/1.055,2.4),E<=.03928?W=E/12.92:W=Math.pow((E+.055)/1.055,2.4),.2126*x+.7152*U+.0722*W},setAlpha:function(c){return this._a=Te(c),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var c=m(this._r,this._g,this._b);return{h:c.h*360,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=m(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.v*100);return this._a==1?"hsv("+l+", "+h+"%, "+E+"%)":"hsva("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var c=s(this._r,this._g,this._b);return{h:c.h*360,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=s(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.l*100);return this._a==1?"hsl("+l+", "+h+"%, "+E+"%)":"hsla("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(c){return p(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return b(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(B(this._r,255)*100)+"%",g:Math.round(B(this._g,255)*100)+"%",b:Math.round(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%)":"rgba("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(c){var l="#"+v(this._r,this._g,this._b,this._a),h=l,E=this._gradientType?"GradientType = 1, ":"";if(c){var x=n(c);h="#"+v(x._r,x._g,x._b,x._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+l+",endColorstr="+h+")"},toString:function(c){var l=!!c;c=c||this._format;var h=!1,E=this._a<1&&this._a>=0,x=!l&&E&&(c==="hex"||c==="hex6"||c==="hex3"||c==="hex4"||c==="hex8"||c==="name");return x?c==="name"&&this._a===0?this.toName():this.toRgbString():(c==="rgb"&&(h=this.toRgbString()),c==="prgb"&&(h=this.toPercentageRgbString()),(c==="hex"||c==="hex6")&&(h=this.toHexString()),c==="hex3"&&(h=this.toHexString(!0)),c==="hex4"&&(h=this.toHex8String(!0)),c==="hex8"&&(h=this.toHex8String()),c==="name"&&(h=this.toName()),c==="hsl"&&(h=this.toHslString()),c==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(c,l){var h=c.apply(null,[this].concat([].slice.call(l)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(S,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(c,l){return c.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(X,arguments)},triad:function(){return this._applyCombination(P,[3])},tetrad:function(){return this._applyCombination(P,[4])}},n.fromRatio=function(a,c){if(e(a)=="object"){var l={};for(var h in a)a.hasOwnProperty(h)&&(h==="a"?l[h]=a[h]:l[h]=tt(a[h]));a=l}return n(a,c)};function o(a){var c={r:0,g:0,b:0},l=1,h=null,E=null,x=null,U=!1,W=!1;return typeof a=="string"&&(a=Qs(a)),e(a)=="object"&&(Ce(a.r)&&Ce(a.g)&&Ce(a.b)?(c=i(a.r,a.g,a.b),U=!0,W=String(a.r).substr(-1)==="%"?"prgb":"rgb"):Ce(a.h)&&Ce(a.s)&&Ce(a.v)?(h=tt(a.s),E=tt(a.v),c=d(a.h,h,E),U=!0,W="hsv"):Ce(a.h)&&Ce(a.s)&&Ce(a.l)&&(h=tt(a.s),x=tt(a.l),c=u(a.h,h,x),U=!0,W="hsl"),a.hasOwnProperty("a")&&(l=a.a)),l=Te(l),{ok:U,format:a.format||W,r:Math.min(255,Math.max(c.r,0)),g:Math.min(255,Math.max(c.g,0)),b:Math.min(255,Math.max(c.b,0)),a:l}}function i(a,c,l){return{r:B(a,255)*255,g:B(c,255)*255,b:B(l,255)*255}}function s(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=(h+E)/2;if(h==E)x=U=0;else{var K=h-E;switch(U=W>.5?K/(2-h-E):K/(h+E),h){case a:x=(c-l)/K+(c<l?6:0);break;case c:x=(l-a)/K+2;break;case l:x=(a-c)/K+4;break}x/=6}return{h:x,s:U,l:W}}function u(a,c,l){var h,E,x;a=B(a,360),c=B(c,100),l=B(l,100);function U(ce,rt,ge){return ge<0&&(ge+=1),ge>1&&(ge-=1),ge<1/6?ce+(rt-ce)*6*ge:ge<1/2?rt:ge<2/3?ce+(rt-ce)*(2/3-ge)*6:ce}if(c===0)h=E=x=l;else{var W=l<.5?l*(1+c):l+c-l*c,K=2*l-W;h=U(K,W,a+1/3),E=U(K,W,a),x=U(K,W,a-1/3)}return{r:h*255,g:E*255,b:x*255}}function m(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=h,K=h-E;if(U=h===0?0:K/h,h==E)x=0;else{switch(h){case a:x=(c-l)/K+(c<l?6:0);break;case c:x=(l-a)/K+2;break;case l:x=(a-c)/K+4;break}x/=6}return{h:x,s:U,v:W}}function d(a,c,l){a=B(a,360)*6,c=B(c,100),l=B(l,100);var h=Math.floor(a),E=a-h,x=l*(1-c),U=l*(1-E*c),W=l*(1-(1-E)*c),K=h%6,ce=[l,U,x,x,W,l][K],rt=[W,l,l,U,x,x][K],ge=[x,x,W,l,l,U][K];return{r:ce*255,g:rt*255,b:ge*255}}function p(a,c,l,h){var E=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return h&&E[0].charAt(0)==E[0].charAt(1)&&E[1].charAt(0)==E[1].charAt(1)&&E[2].charAt(0)==E[2].charAt(1)?E[0].charAt(0)+E[1].charAt(0)+E[2].charAt(0):E.join("")}function b(a,c,l,h,E){var x=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16)),re(an(h))];return E&&x[0].charAt(0)==x[0].charAt(1)&&x[1].charAt(0)==x[1].charAt(1)&&x[2].charAt(0)==x[2].charAt(1)&&x[3].charAt(0)==x[3].charAt(1)?x[0].charAt(0)+x[1].charAt(0)+x[2].charAt(0)+x[3].charAt(0):x.join("")}function v(a,c,l,h){var E=[re(an(h)),re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return E.join("")}n.equals=function(a,c){return!a||!c?!1:n(a).toRgbString()==n(c).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function S(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s-=c/100,l.s=O(l.s),n(l)}function y(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s+=c/100,l.s=O(l.s),n(l)}function A(a){return n(a).desaturate(100)}function C(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l+=c/100,l.l=O(l.l),n(l)}function I(a,c){c=c===0?0:c||10;var l=n(a).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(c/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(c/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(c/100)))),n(l)}function R(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l-=c/100,l.l=O(l.l),n(l)}function T(a,c){var l=n(a).toHsl(),h=(l.h+c)%360;return l.h=h<0?360+h:h,n(l)}function L(a){var c=n(a).toHsl();return c.h=(c.h+180)%360,n(c)}function P(a,c){if(isNaN(c)||c<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(a).toHsl(),h=[n(a)],E=360/c,x=1;x<c;x++)h.push(n({h:(l.h+x*E)%360,s:l.s,l:l.l}));return h}function X(a){var c=n(a).toHsl(),l=c.h;return[n(a),n({h:(l+72)%360,s:c.s,l:c.l}),n({h:(l+216)%360,s:c.s,l:c.l})]}function ee(a,c,l){c=c||6,l=l||30;var h=n(a).toHsl(),E=360/l,x=[n(a)];for(h.h=(h.h-(E*c>>1)+720)%360;--c;)h.h=(h.h+E)%360,x.push(n(h));return x}function z(a,c){c=c||6;for(var l=n(a).toHsv(),h=l.h,E=l.s,x=l.v,U=[],W=1/c;c--;)U.push(n({h,s:E,v:x})),x=(x+W)%1;return U}n.mix=function(a,c,l){l=l===0?0:l||50;var h=n(a).toRgb(),E=n(c).toRgb(),x=l/100,U={r:(E.r-h.r)*x+h.r,g:(E.g-h.g)*x+h.g,b:(E.b-h.b)*x+h.b,a:(E.a-h.a)*x+h.a};return n(U)},n.readability=function(a,c){var l=n(a),h=n(c);return(Math.max(l.getLuminance(),h.getLuminance())+.05)/(Math.min(l.getLuminance(),h.getLuminance())+.05)},n.isReadable=function(a,c,l){var h=n.readability(a,c),E,x;switch(x=!1,E=Js(l),E.level+E.size){case"AAsmall":case"AAAlarge":x=h>=4.5;break;case"AAlarge":x=h>=3;break;case"AAAsmall":x=h>=7;break}return x},n.mostReadable=function(a,c,l){var h=null,E=0,x,U,W,K;l=l||{},U=l.includeFallbackColors,W=l.level,K=l.size;for(var ce=0;ce<c.length;ce++)x=n.readability(a,c[ce]),x>E&&(E=x,h=n(c[ce]));return n.isReadable(a,h,{level:W,size:K})||!U?h:(l.includeFallbackColors=!1,n.mostReadable(a,["#fff","#000"],l))};var H=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=n.hexNames=pe(H);function pe(a){var c={};for(var l in a)a.hasOwnProperty(l)&&(c[a[l]]=l);return c}function Te(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function B(a,c){ie(a)&&(a="100%");var l=se(a);return a=Math.min(c,Math.max(0,parseFloat(a))),l&&(a=parseInt(a*c,10)/100),Math.abs(a-c)<1e-6?1:a%c/parseFloat(c)}function O(a){return Math.min(1,Math.max(0,a))}function F(a){return parseInt(a,16)}function ie(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function se(a){return typeof a=="string"&&a.indexOf("%")!=-1}function re(a){return a.length==1?"0"+a:""+a}function tt(a){return a<=1&&(a=a*100+"%"),a}function an(a){return Math.round(parseFloat(a)*255).toString(16)}function ln(a){return F(a)/255}var he=(function(){var a="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",l="(?:"+c+")|(?:"+a+")",h="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",E="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+h),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+h),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+h),hsva:new RegExp("hsva"+E),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ce(a){return!!he.CSS_UNIT.exec(a)}function Qs(a){a=a.replace(t,"").replace(r,"").toLowerCase();var c=!1;if(H[a])a=H[a],c=!0;else if(a=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=he.rgb.exec(a))?{r:l[1],g:l[2],b:l[3]}:(l=he.rgba.exec(a))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=he.hsl.exec(a))?{h:l[1],s:l[2],l:l[3]}:(l=he.hsla.exec(a))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=he.hsv.exec(a))?{h:l[1],s:l[2],v:l[3]}:(l=he.hsva.exec(a))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=he.hex8.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),a:ln(l[4]),format:c?"name":"hex8"}:(l=he.hex6.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),format:c?"name":"hex"}:(l=he.hex4.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),a:ln(l[4]+""+l[4]),format:c?"name":"hex8"}:(l=he.hex3.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),format:c?"name":"hex"}:!1}function Js(a){var c,l;return a=a||{level:"AA",size:"small"},c=(a.level||"AA").toUpperCase(),l=(a.size||"small").toLowerCase(),c!=="AA"&&c!=="AAA"&&(c="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:c,size:l}}return n}))});var Ps=k((Bg,Is)=>{f();var pt=Ls(),Ms={r:256,g:256,b:256,a:1},Bs={h:360,s:1,v:1,a:1};function tn(e,t,r){let n={};for(let o in e)e.hasOwnProperty(o)&&(n[o]=r===0?0:(t[o]-e[o])/r);return n}function rn(e,t,r,n){let o={};for(let i in t)t.hasOwnProperty(i)&&(o[i]=e[i]*r+t[i],o[i]=o[i]<0?o[i]+n[i]:n[i]!==1?o[i]%n[i]:o[i]);return o}function Jr(e,t,r){let n=e.color.toRgb(),o=t.color.toRgb(),i=tn(n,o,r),s=[e.color];for(let u=1;u<r;u++){let m=rn(i,n,u,Ms);s.push(pt(m))}return s}function Ds(e,t,r,n){let o=e.color.toHsv(),i=t.color.toHsv();if(o.s===0||i.s===0)return Jr(e,t,r);let s;if(typeof n=="boolean")s=n;else{let p=o.h<i.h&&i.h-o.h<180||o.h>i.h&&o.h-i.h>180;s=n==="long"&&p||n==="short"&&!p}let u=tn(o,i,r),m=[e.color],d;o.h<=i.h&&!s||o.h>=i.h&&s?d=i.h-o.h:s?d=360-i.h+o.h:d=360-o.h+i.h,u.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let p=1;p<r;p++){let b=rn(u,o,p,Bs);m.push(pt(b))}return m}function ks(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let i=1;i<r;i++){let s=(t-1)*(e[i].pos-e[i-1].pos);n.push(Math.max(1,Math.round(s)))}let o=1;for(let i=r-1;i--;)o+=n[i];for(;o!==t;)if(o<t){let i=Math.min.apply(null,n);n[n.indexOf(i)]++,o++}else{let i=Math.max.apply(null,n);n[n.indexOf(i)]--,o--}return n}function _s(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let o,i;for(let m=0,d=e.length;m<d-1;m++)if(t>=e[m].pos&&t<e[m+1].pos){o=e[m],i=e[m+1];break}o||(o=i=e[e.length-1]);let s=tn(o.color[r](),i.color[r](),(i.pos-o.pos)*100),u=rn(s,o.color[r](),(t-o.pos)*100,n);return pt(u)}var en=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,o=-1,i=!1;this.stops=t.map((s,u)=>{let m=s.pos!==void 0;if(r^m)throw new Error("Cannot mix positionned and not posionned color stops");if(m){let d=s.color!==void 0;if(!d&&(i||u===0||u===n-1))throw new Error("Cannot define two consecutive position-only stops");if(i=!d,s={color:d?pt(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<o)throw new Error("Color stops positions are not ordered");o=s.pos}else s={color:pt(s.color!==void 0?s.color:s),pos:u/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new e(t.concat(r.reverse()))}rgb(t){let r=ks(this.stops,t),n=[];this.stops.forEach((o,i)=>{o.colorLess&&(o.color=Jr(this.stops[i-1],this.stops[i+1],2)[1])});for(let o=0,i=this.stops.length;o<i-1;o++){let s=Jr(this.stops[o],this.stops[o+1],r[o]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=ks(this.stops,t),o=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Ds(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let u=Ds(this.stops[i],this.stops[i+1],n[i],r);o.splice(o.length,0,...u)}return o.push(this.stops[this.stops.length-1].color),o}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(o){n+=", "+(o.colorLess?"":o.color.toRgbString()+" ")+o.pos*100+"%"}),n+=")",n}rgbAt(t){return _s(this.stops,t,"toRgb",Ms)}hsvAt(t){return _s(this.stops,t,"toHsv",Bs)}};Is.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new en(e)}});var Ns=k((Pg,rr)=>{"use strict";f();var Fs=Rs(),Au=Ps(),Os=/\s/g;function nn(...e){let t=Au.apply(this,e),r=(n,o)=>Ru(n?n.toString():"",t,o);return r.multiline=(n,o)=>Lu(n?n.toString():"",t,o),r}var Us=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function Ru(e,t,r){let n=$s(r),o=Math.max(e.replace(Os,"").length,t.stops.length),i=Us(t,n,o),s="";for(let u of e)s+=u.match(Os)?u:Fs.hex(i.shift().toHex())(u);return s}function Lu(e,t,r){let n=$s(r),o=e.split(`
14
+ `),i=Math.max.apply(null,o.map(m=>m.length).concat([t.stops.length])),s=Us(t,n,i),u=[];for(let m of o){let d=s.slice(0),p="";for(let b of m)p+=Fs.hex(d.shift().toHex())(b);u.push(p)}return u.join(`
15
+ `)}function $s(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var ht={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};rr.exports=nn;for(let e in ht)rr.exports[e]=t=>new nn(ht[e].colors)(t,ht[e].options),rr.exports[e].multiline=t=>new nn(ht[e].colors).multiline(t,ht[e].options)});f();f();f();f();var Ho=D(mo(),1);import{Buffer as Il}from"node:buffer";import Pl from"node:path";import kr from"node:child_process";import Dt from"node:process";f();function xr(e){let t=typeof e=="string"?`
16
+ `:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}f();var Ct=new WeakMap,po=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Ct.set(i,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return xn(i,e),Ct.set(i,n),i};po.callCount=e=>{if(!Ct.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Ct.get(e)};var ho=po;f();import ol from"node:process";f();import{constants as Qa}from"node:os";f();var go=()=>{let e=xo-bo+1;return Array.from({length:e},Ka)},Ka=(e,t)=>({name:`SIGRT${t+1}`,number:bo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bo=34,xo=64;f();import{constants as Ya}from"node:os";f();var wo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var wr=()=>{let e=go();return[...wo,...e].map(Za)},Za=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Ya,u=s!==void 0;return{name:e,number:u?s:t,description:r,supported:u,action:n,forced:o,standard:i}};var Ja=()=>{let e=wr();return Object.fromEntries(e.map(el))},el=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],yo=Ja(),tl=()=>{let e=wr(),t=65,r=Array.from({length:t},(n,o)=>rl(o,e));return Object.assign({},...r)},rl=(e,t)=>{let r=nl(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:u,standard:m}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:u,standard:m}}},nl=(e,t)=>{let r=t.find(({name:n})=>Qa.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},Df=tl();var il=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ot=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:u,timedOut:m,isCanceled:d,killed:p,parsed:{options:{timeout:b,cwd:v=ol.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let S=o===void 0?void 0:yo[o].description,y=n&&n.code,C=`Command ${il({timedOut:m,timeout:b,errorCode:y,signal:o,signalDescription:S,exitCode:i,isCanceled:d})}: ${s}`,I=Object.prototype.toString.call(n)==="[object Error]",R=I?`${C}
17
+ ${n.message}`:C,T=[R,t,e].filter(Boolean).join(`
18
+ `);return I?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=R,n.command=s,n.escapedCommand=u,n.exitCode=i,n.signal=o,n.signalDescription=S,n.stdout=e,n.stderr=t,n.cwd=v,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!m,n.isCanceled=d,n.killed=p&&!m,n};f();var At=["stdin","stdout","stderr"],sl=e=>At.some(t=>e[t]!==void 0),Eo=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return At.map(n=>e[n]);if(sl(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${At.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,At.length);return Array.from({length:r},(n,o)=>t[o])};f();var vo=D(pa(),1);import al from"node:os";var ll=1e3*5,So=(e,t="SIGTERM",r={})=>{let n=e(t);return cl(e,t,r,n),n},cl=(e,t,r,n)=>{if(!ul(t,r,n))return;let o=ml(r),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},ul=(e,{forceKillAfterTimeout:t},r)=>fl(e)&&t!==!1&&r,fl=e=>e===al.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",ml=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ll;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},To=(e,t)=>{e.kill()&&(t.isCanceled=!0)},dl=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},Co=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let o,i=new Promise((u,m)=>{o=setTimeout(()=>{dl(e,r,m)},t)}),s=n.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Ao=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ro=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let o=(0,vo.default)(()=>{e.kill()});return n.finally(()=>{o()})};f();import{createWriteStream as pl}from"node:fs";import{ChildProcess as hl}from"node:child_process";f();function Rt(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function yr(e){return Rt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var gl=e=>e instanceof hl&&typeof e.then=="function",Er=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(pl(r)),e;if(yr(r))return e[t].pipe(r),e;if(!gl(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!yr(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},Lo=e=>{e.stdout!==null&&(e.pipeStdout=Er.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=Er.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=Er.bind(void 0,e,"all"))};f();import{createReadStream as xl,readFileSync as wl}from"node:fs";var Tr=D(ya(),1),_o=D(ko(),1),Mo=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},yl=({input:e,inputFile:t})=>typeof t!="string"?e:(Mo(e),wl(t)),Bo=e=>{let t=yl(e);if(Rt(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},El=({input:e,inputFile:t})=>typeof t!="string"?e:(Mo(e),xl(t)),Io=(e,t)=>{let r=El(t);r!==void 0&&(Rt(r)?r.pipe(e.stdin):e.stdin.end(r))},Po=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,_o.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},vr=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(r){return r.bufferedData}}},Sr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?(0,Tr.default)(e,{encoding:t,maxBuffer:n}):Tr.default.buffer(e,{maxBuffer:n})},Oo=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s)=>{let u=Sr(e,{encoding:n,buffer:o,maxBuffer:i}),m=Sr(t,{encoding:n,buffer:o,maxBuffer:i}),d=Sr(r,{encoding:n,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,u,m,d])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},vr(e,u),vr(t,m),vr(r,d)])}};f();var vl=(async()=>{})().constructor.prototype,Sl=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(vl,e)]),Cr=(e,t)=>{for(let[r,n]of Sl){let o=typeof t=="function"?(...i)=>Reflect.apply(n.value,t(),i):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Fo=e=>new Promise((t,r)=>{e.on("exit",(n,o)=>{t({exitCode:n,signal:o})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});f();import{Buffer as Tl}from"node:buffer";import{ChildProcess as Cl}from"node:child_process";var No=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Al=/^[\w.-]+$/,Rl=/"/g,Ll=e=>typeof e!="string"||Al.test(e)?e:`"${e.replace(Rl,'\\"')}"`,Ar=(e,t)=>No(e,t).join(" "),Rr=(e,t)=>No(e,t).map(r=>Ll(r)).join(" "),Dl=/ +/g;var Uo=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Cl)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(Tl.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},$o=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],kl=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{let i=o??e.raw[n],s=i.split(Dl).filter(Boolean),u=$o(r,s,i.startsWith(" "));if(n===t.length)return u;let m=t[n],d=Array.isArray(m)?m.map(p=>Uo(p)):[Uo(m)];return $o(u,d,i.endsWith(" "))},Lr=(e,t)=>{let r=[];for(let[n,o]of e.entries())r=kl({templates:e,expressions:t,tokens:r,index:n,template:o});return r};f();import{debuglog as _l}from"node:util";import Ml from"node:process";var qo=_l("execa").enabled,Lt=(e,t)=>String(e).padStart(t,"0"),Bl=()=>{let e=new Date;return`${Lt(e.getHours(),2)}:${Lt(e.getMinutes(),2)}:${Lt(e.getSeconds(),2)}.${Lt(e.getMilliseconds(),3)}`},Dr=(e,{verbose:t})=>{t&&Ml.stderr.write(`[${Bl()}] ${e}
19
+ `)};var Ol=1e3*1e3*100,Fl=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{let i=t?{...Dt.env,...e}:e;return r?wn({env:i,cwd:n,execPath:o}):i},jo=(e,t,r={})=>{let n=Ho.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Ol,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Dt.cwd(),execPath:Dt.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qo,...r},r.env=Fl(r),r.stdio=Eo(r),Dt.platform==="win32"&&Pl.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},it=(e,t,r)=>typeof t!="string"&&!Il.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?xr(t):t;function Ae(e,t,r){let n=jo(e,t,r),o=Ar(e,t),i=Rr(e,t);Dr(i,n.options),Ao(n.options);let s;try{s=kr.spawn(n.file,n.args,n.options)}catch(S){let y=new kr.ChildProcess,A=Promise.reject(ot({error:S,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Cr(y,A),y}let u=Fo(s),m=Co(s,n.options,u),d=Ro(s,n.options,m),p={isCanceled:!1};s.kill=So.bind(null,s.kill.bind(s)),s.cancel=To.bind(null,s,p);let v=ho(async()=>{let[{error:S,exitCode:y,signal:A,timedOut:C},I,R,T]=await Oo(s,n.options,d),L=it(n.options,I),P=it(n.options,R),X=it(n.options,T);if(S||y!==0||A!==null){let ee=ot({error:S,exitCode:y,signal:A,stdout:L,stderr:P,all:X,command:o,escapedCommand:i,parsed:n,timedOut:C,isCanceled:p.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:s.killed});if(!n.options.reject)return ee;throw ee}return{command:o,escapedCommand:i,exitCode:0,stdout:L,stderr:P,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Io(s,n.options),s.all=Po(s,n.options),Lo(s),Cr(s,v),s}function Ul(e,t,r){let n=jo(e,t,r),o=Ar(e,t),i=Rr(e,t);Dr(i,n.options);let s=Bo(n.options),u;try{u=kr.spawnSync(n.file,n.args,{...n.options,input:s})}catch(p){throw ot({error:p,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let m=it(n.options,u.stdout,u.error),d=it(n.options,u.stderr,u.error);if(u.error||u.status!==0||u.signal!==null){let p=ot({stdout:m,stderr:d,error:u.error,signal:u.signal,exitCode:u.status,command:o,escapedCommand:i,parsed:n,timedOut:u.error&&u.error.code==="ETIMEDOUT",isCanceled:!1,killed:u.signal!==null});if(!n.options.reject)return p;throw p}return{command:o,escapedCommand:i,exitCode:0,stdout:m,stderr:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var $l=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Go=(e={})=>({preferLocal:!0,...$l(e),...e});function Wo(e){function t(r,...n){if(!Array.isArray(r))return Wo({...e,...r});let[o,...i]=Lr(r,n);return Ae(o,i,Go(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=Lr(r,n);return Ul(o,i,Go(e))},t}var Rm=Wo();import{userInfo as Nl}from"os";async function Bm(e=process.platform){Pe(St`Obtaining user name...`);let t=ql();if(t)return t;let r=Gl();if(r)return r;try{if(e==="win32"){let{stdout:o}=await Ae("whoami");return Hl(o)}let{stdout:n}=await Ae("id",["-u"]);try{let{stdout:o}=await Ae("id",["-un",n]);return o}catch{}return jl(n)}catch{return null}}function zo(e=process.platform,t=process.arch){let r;return t==="x64"?r="amd64":t==="ia32"?r="386":r=t,{platform:e.match(/^win.+/)?"windows":e,arch:r}}function ql(){let{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME}function Gl(){try{return Nl().username}catch{return null}}function Hl(e){return e.replace(/^.*\\/,"")}function jl(e){return`no-username-${e}`}var Xo=D(ga(),1),Ko=D(wa(),1);import{fstatSync as Wl}from"fs";var zl=10*1024*1024;async function zm(e){let t=await import("./open-VA7TLUIL.js");try{return await t.default(e),!0}catch{return!1}}async function Vm(e,t,r){return(await _r(e,t,r)).stdout}async function Xm(e,t,r){let n=await _r(e,t,r,{reject:!1});return{stdout:n.stdout,stderr:n.stderr,exitCode:n.exitCode??0}}function Yo(e){let t=[],r="",n=null;for(let o of e)n?o===n?n=null:r+=o:o==='"'||o==="'"?n=o:o===" "||o===" "?r&&(t.push(r),r=""):r+=o;return r&&t.push(r),t}async function Km(e,t){let r=t?.env??process.env;we()&&(r.FORCE_COLOR="1");let n=t?.cwd??xt(),[o,...i]=Yo(e);if(!o)return{stdout:"",stderr:"Empty command",exitCode:1};Mr(o,{cwd:n});let s=await Ae(o,i,{env:r,cwd:n,reject:!1});return{stdout:s.stdout,stderr:s.stderr,exitCode:s.exitCode??0}}async function Ym(e,t){let r=t?.env??process.env;we()&&(r.FORCE_COLOR="1");let n=t?.cwd??xt(),[o,...i]=Yo(e);if(!o)throw new qe("Empty command");Mr(o,{cwd:n});try{await Ae(o,i,{env:r,cwd:n,stdin:t?.stdin,stdout:t?.stdout==="inherit"?"inherit":void 0,stderr:t?.stderr==="inherit"?"inherit":void 0})}catch(s){if(t?.externalErrorHandler)await t.externalErrorHandler(s);else{let u=new nt(s.message,e,[]);throw u.stack=s.stack,u}}}async function Zm(e,t,r){if(r){let i=zo().platform==="windows";r.background=i?!1:r.background}let n=_r(e,t,r);r?.background&&n.unref(),r?.stderr&&r.stderr!=="inherit"&&n.stderr?.pipe(r.stderr,{end:!1}),r?.stdout&&r.stdout!=="inherit"&&n.stdout?.pipe(r.stdout,{end:!1});let o=!1;r?.signal?.addEventListener("abort",()=>{let i=n.pid;i&&(Pe(`Killing process ${i}: ${e} ${t.join(" ")}`),o=!0,Et(i,"SIGTERM"))});try{await n}catch(i){if(o)return;if(r?.externalErrorHandler)await r.externalErrorHandler(i);else{let s=new nt(i.message,e,t);throw s.stack=i.stack,s}}}function _r(e,t,r,n){let o=r?.env??process.env;we()&&(o.FORCE_COLOR="1");let i=r?.cwd??xt();Mr(e,{cwd:i});let s=Ae(e,t,{env:o,cwd:i,input:r?.input,stdio:r?.background?"ignore":r?.stdio,stdin:r?.stdin,stdout:r?.stdout==="inherit"?"inherit":void 0,stderr:r?.stderr==="inherit"?"inherit":void 0,windowsHide:!1,detached:r?.background,cleanup:!r?.background,...n});return Pe(`Running system process${r?.background?" in background":""}:
20
+ \xB7 Command: ${e} ${t.join(" ")}
21
+ \xB7 Working directory: ${i}
22
+ `),s}function Mr(e,t){let r=`${t.cwd}${cn}${process.env.PATH}`,n=Ko.default.sync(e,{nothrow:!0,path:r});if(n&&un(n)===t.cwd){let o=["Skipped run of unsecure binary",{command:e},"found in the current directory."],i="Please remove that file or review your current PATH.";throw Vo({headline:o,body:i}),new qe(o,i)}}async function Qm(e){return new Promise(t=>{setTimeout(t,1e3*e)})}function Jm(){return Xo.default.stdout}function Zo(){return ir(process.env.CI)?!1:!!(process.stdin.isTTY&&process.stdout.isTTY)}function ed(){return ir(process.env.CI)}async function td(){return(await import("./is-wsl-FVUIXDOK.js")).default}function Vl(){try{let e=Wl(0);return e.isFIFO()||e.isFile()}catch{return!1}}async function rd(){if(!Vl())return;let e="",t=0;process.stdin.setEncoding("utf8");for await(let r of process.stdin){let n=String(r);if(t+=Buffer.byteLength(n,"utf8"),t>zl)throw new qe("Stdin input exceeded the maximum allowed size.");e+=n}return e.trim()}f();var Mt=D(Jo(),1),_t=class extends Mt.AbortController{},ei=class extends Mt.AbortSignal{};f();f();var ae=D(N(),1);import{EventEmitter as Kl}from"events";var ti=(0,ae.createContext)(null);function te(){let e=(0,ae.useContext)(ti);if(!e)throw new Error("useComplete() called outside InkLifecycleRoot");return e}function Yl({children:e}){let{exit:t}=pn(),[r,n]=(0,ae.useState)(null),o=(0,ae.useCallback)(i=>{n({error:i})},[]);return(0,ae.useEffect)(()=>{r!==null&&t(r.error)},[r,t]),ae.default.createElement(ti.Provider,{value:o},e)}function at(e,{logLevel:t="info",renderOptions:r}){let{output:n,unmount:o}=Zl(e,r);return n&&yn(n,t),o(),n}async function Me(e,t){let{waitUntilExit:r}=ar(ae.default.createElement(Yl,null,e),t);await r()}var Br=class extends Kl{constructor(t){super(),this.frames=[],this.write=r=>{this.frames.push(r),r!==`
23
+ `&&(this._lastFrame=r)},this.lastFrame=()=>this._lastFrame,this.columns=t.columns??80,this.rows=t.rows??80}},Zl=(e,t)=>{let r=vt()?80:process.stdout.columns,n=t?.stdout??new Br({columns:r}),o=ar(e,{stdout:n,debug:!0,exitOnCtrlC:!1,patchConsole:!1});return{output:n.lastFrame(),unmount:o.unmount}};function me(e,t,r=()=>{Et(process.pid,"SIGINT")}){e==="c"&&t.ctrl&&r()}var Z=D(N(),1);f();import Ql from"node:process";f();f();import be from"node:process";function Ir(){return be.platform!=="win32"?be.env.TERM!=="linux":!!be.env.CI||!!be.env.WT_SESSION||!!be.env.TERMINUS_SUBLIME||be.env.ConEmuTask==="{cmd::Cmder}"||be.env.TERM_PROGRAM==="Terminus-Sublime"||be.env.TERM_PROGRAM==="vscode"||be.env.TERM==="xterm-256color"||be.env.TERM==="alacritty"||be.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var{platform:Jl}=Ql,ri={square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},ec={...ri,...Jl==="linux"?{circleQuestionMark:"?\u20DD",questionMarkPrefix:"?\u20DD"}:{circleQuestionMark:"?",questionMarkPrefix:"?"},tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},tc={...ri,tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},rc=Ir(),nc=rc?ec:tc,ne=nc;import{Writable as oc}from"stream";import{AsyncLocalStorage as ic}from"node:async_hooks";function Pr(e){return e<10?`0${e}`:e.toString()}function sc(){let e=new Date,t=Pr(e.getHours()),r=Pr(e.getMinutes()),n=Pr(e.getSeconds());return`${t}:${r}:${n}`}var ni=new ic;function Bd(e,t){return ni.run(e,t)}var oi=({processes:e,prefixColumnSize:t,abortSignal:r,showTimestamps:n=!0,keepRunningAfterProcessesResolve:o=!1,useAlternativeColorPalette:i=!1})=>{let[s,u]=(0,Z.useState)([]),[m,d]=(0,Z.useState)(null),p=te(),b=(0,Z.useMemo)(()=>i?["#b994c3","#e69e19","#d17a73","cyan","magenta","blue"]:["yellow","cyan","magenta","green","blue"],[i]),v=(0,Z.useMemo)(()=>{let T=t??e.reduce((L,P)=>Math.max(L,P.prefix.length),0);return Math.min(T,25)},[e,t]),S=(R,T)=>{let L=T.indexOf(R);return L!==-1?L:(T.push(R),T.length-1)},y=(0,Z.useCallback)(R=>{let T=R%b.length;return b[T]},[b]),A=(0,Z.useCallback)((R,T)=>new oc({write(L,P,X){let ee=ni.getStore(),z=ee?.outputPrefix??R.prefix,H=ee?.stripAnsi??!0,$=L.toString("utf8").replace(/(\n)$/,""),pe=S(z,T),Te=H?mn($).split(/\n/):$.split(/\n/);u(B=>[...B,{color:y(pe),prefix:z,lines:Te}]),X()}}),[y]),C=R=>R.length>v?R.substring(0,v):`${" ".repeat(v-R.length)}${R}`;(0,Z.useEffect)(()=>{(async()=>{let T=[];try{await Promise.all(e.map(async L=>{let P=A(L,T),X=A(L,T);await L.action(P,X,r)})),o||d({})}catch(L){o||d({error:L})}})()},[r,e,A,o]),(0,Z.useEffect)(()=>{m!==null&&p(m.error)},[m,p]);let{lineVertical:I}=ne;return Z.default.createElement(dn,{items:s},(R,T)=>Z.default.createElement(g,{flexDirection:"column",key:T},R.lines.map((L,P)=>Z.default.createElement(g,{key:P,flexDirection:"row"},Z.default.createElement(w,null,n?Z.default.createElement(w,null,sc()," ",I," "):null,Z.default.createElement(w,{color:R.color},C(R.prefix)),Z.default.createElement(w,null," ",I," ",L))))))};f();f();f();f();var Pt=D(N(),1),Bt=20,It=80;function de(){let{stdout:e}=_e(),[t,r]=(0,Pt.useState)(ii(e));return(0,Pt.useLayoutEffect)(()=>{if(!e)return;function n(){r(ii(e))}return e.on("resize",n),()=>{e.off("resize",n)}},[]),t}function ii(e){let t=e?.columns??It,r=t,n=t;return t<=Bt?(t=Bt,r=Bt,n=Bt):t>It&&(r=si({fullWidth:t,fraction:[1,3],minWidth:It}),n=si({fullWidth:t,fraction:[2,3],minWidth:It})),{fullWidth:t,oneThird:r,twoThirds:n}}function si({fullWidth:e,fraction:t,minWidth:r}){let n=Math.floor(e/t[1]*t[0]);return n<r?r:n}var Y=D(N(),1);function Ot(e){return{success:"green",error:"red",warning:"yellow",info:"dim",external_error:"red"}[e]}var ac=()=>{let e=(0,Y.useContext)(lr);if(e===null||e.links.current===null)return null;let t=e.links.current,r=Object.keys(t);return r.length>0?Y.default.createElement(g,{marginBottom:1,marginTop:-1,flexDirection:"column"},r.map(n=>Y.default.createElement(w,{key:n},`[${n}] ${t[n]?.url}`))):null},lc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=(0,Y.useRef)({});return Y.default.createElement(lr.Provider,{value:{links:n,addLink:(o,i)=>{let s=Object.keys(n.current).find(m=>n.current[m].url===i);if(s)return s;let u=(Object.keys(n.current).length+1).toString();return n.current={...n.current,[u]:{label:o,url:i}},u}}},Y.default.createElement(g,{width:r,marginBottom:1,borderStyle:"round",flexDirection:"column",borderColor:Ot(e)},Y.default.createElement(g,{marginTop:-1,marginLeft:1},Y.default.createElement(w,null,` ${e.replace(/_/g," ")} `)),Y.default.createElement(g,{flexDirection:"column",paddingY:1,paddingX:2,gap:1},t)),Y.default.createElement(ac,null))},cc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=r-2-e.length-2;return n<0&&(n=0),Y.default.createElement(g,{flexDirection:"column",marginBottom:1,gap:1},Y.default.createElement(w,null,Y.default.createElement(w,{color:Ot(e)},"\u2500".repeat(2)),Y.default.createElement(w,null,` ${e.replace(/_/g," ")} `),Y.default.createElement(w,{color:Ot(e)},"\u2500".repeat(n))),t,Y.default.createElement(w,{color:Ot(e)},"\u2500".repeat(r)))},Ft=({children:e,...t})=>t.type==="external_error"?Y.default.createElement(cc,t,e):Y.default.createElement(lc,t,e);f();var lt=D(N(),1),Ut=({tabularData:e,firstColumnSubdued:t})=>{let r=e.reduce((n,o)=>(o.forEach((i,s)=>{n[s]=Math.max(n[s]??0,Ge($e(i)).length)}),n),[]);return lt.default.createElement(g,{flexDirection:"column"},e.map((n,o)=>lt.default.createElement(g,{key:o,flexDirection:"row",gap:2},n.map((i,s)=>lt.default.createElement(g,{key:s,width:r[s]??0,flexShrink:s===0?0:1},lt.default.createElement(V,{item:s===0&&t&&typeof i=="string"?{subdued:i}:i}))))))};var le=D(N(),1),ai=({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:u=!1})=>le.default.createElement(Ft,{type:e},t?le.default.createElement(w,{bold:!0},le.default.createElement(V,{item:t})):null,r?le.default.createElement(V,{item:r}):null,n&&n.length>0?le.default.createElement(Ie,{title:"Next steps",items:n,ordered:u}):null,o&&o.length>0?le.default.createElement(Ie,{title:"Reference",items:o}):null,i?le.default.createElement(gn,{url:i.url,label:i.label}):null,s&&s.length>0?le.default.createElement(g,{flexDirection:"column",gap:1},s.map((m,d)=>le.default.createElement(g,{key:d,flexDirection:"column"},m.title?le.default.createElement(w,{bold:!0},m.title):null,typeof m.body=="object"&&"tabularData"in m.body?le.default.createElement(Ut,{...m.body}):le.default.createElement(V,{item:m.body})))):null);var li=D(N(),1),uc={info:"info",warning:"warn",success:"info",error:"error"};function ct({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:u=!1,renderOptions:m}){let{type:d,...p}=arguments[0];return at(li.default.createElement(ai,{type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,orderedNextSteps:u,customSections:s}),{logLevel:uc[e],renderOptions:m})}f();var Q=D(N(),1),Mi=D(_i(),1),Bi=({error:e})=>{let t,r;return e instanceof vn&&(t=new Mi.default(e),t.items.forEach(n=>{n.file=Sn(n.file)}),t=t.withSources(),t=t.filter(n=>!n.file.includes("@oclif/core")).map(n=>{let o=n.fileShort.split("packages/");return n.fileShort=o.length===2?o[1]:o[0],n})),e instanceof nt&&(r=`${e.command} ${e.args.join(" ")}`),Q.default.createElement(Ft,{type:r?"external_error":"error"},r?Q.default.createElement(w,null,"Error coming from ",Q.default.createElement(hn,{command:r})):null,e.formattedMessage?Q.default.createElement(V,{item:e.formattedMessage}):Q.default.createElement(V,{item:e.message}),e.tryMessage?Q.default.createElement(V,{item:e.tryMessage}):null,e.nextSteps&&e.nextSteps.length>0?Q.default.createElement(Ie,{title:"Next steps",items:e.nextSteps}):null,e.customSections&&e.customSections.length>0?Q.default.createElement(g,{flexDirection:"column",gap:1},e.customSections.map((n,o)=>Q.default.createElement(g,{key:o,flexDirection:"column"},n.title?Q.default.createElement(w,{bold:!0},n.title):null,typeof n.body=="object"&&"tabularData"in n.body?Q.default.createElement(Ut,{...n.body}):Q.default.createElement(V,{item:n.body})))):null,t&&t.items.length!==0?Q.default.createElement(g,{flexDirection:"column"},Q.default.createElement(w,null,"To investigate the issue, examine this stack trace:"),t.items.map((n,o)=>Q.default.createElement(g,{flexDirection:"column",key:o,paddingLeft:2},Q.default.createElement(w,null,"at",n.calleeShort?Q.default.createElement(w,{color:"yellow"},` ${n.calleeShort}`):null,n.fileShort?` (${n.fileShort}:${n.line})`:null),Q.default.createElement(g,{paddingLeft:2},Q.default.createElement(w,{dimColor:!0},n.sourceLine?.trim()))))):null)};f();f();var zt=D(N(),1);function vc(e,t){return e.reduce((r,n,o)=>r.length===0?[n]:[...r,t(o),n],[])}var Vt=({rowKey:e,columns:t,data:r,fillerChar:n,ignoreColumnColor:o})=>zt.default.createElement(g,{flexDirection:"row"},...vc(t.map(i=>{let s=r[i.name],u=`${e}-cell-${i.name.toString()}`,m=i.width-Ge(String(s??"")).length;return zt.default.createElement(w,{key:u,color:o?void 0:i.color},s,n.repeat(m))}),i=>{let s=`${e}-horizontal-separator-${i}`;return zt.default.createElement(w,{key:s}," ")}));var Xe=D(N(),1);function Ii({rows:e,columns:t}){let r=Object.entries(t).map(([o,{header:i,color:s}])=>{let u=String(i??o).length,m=e.map(d=>{let p=d[o];return p==null?0:Ge(String(p)).length});return{name:o,width:Math.max(...m,u),color:s}}),n=Object.entries(t).reduce((o,[i,{header:s}])=>({...o,[i]:s??i}),{});return Xe.default.createElement(g,{flexDirection:"column"},Xe.default.createElement(Vt,{rowKey:"heading",fillerChar:" ",columns:r,data:n,ignoreColumnColor:!0}),Xe.default.createElement(Vt,{rowKey:"separator",fillerChar:"\u2500",columns:r,data:{},ignoreColumnColor:!0}),e.map((o,i)=>{let s=`row-${i}`;return Xe.default.createElement(g,{flexDirection:"column",key:s},Xe.default.createElement(Vt,{rowKey:`data-${s}`,fillerChar:" ",columns:r,data:o}))}))}f();f();var Be=D(N(),1);var Ke=({value:e,defaultValue:t="",onChange:r,placeholder:n="",noColor:o=!we(),color:i=o?void 0:"cyan",password:s=!1,focus:u=!0})=>{let[m,d]=(0,Be.useState)((e||"").length),p=Math.min(m,(e||"").length);(0,Be.useLayoutEffect)(()=>{p!==m&&d(p)},[p,m]);let b=s?"*".repeat(e.length):e,v,S=R=>Ue.inverse(R[0])+Ue.dim(R.slice(1)),y=ne.square,A=Be.default.createElement(w,{backgroundColor:i},y),C=t.length>0?t:n.length>0?n:"",I=C.length>0?S(C):A;return v=b.split("").map((R,T)=>T===p?o?y:Ue.inverse(R):R).join(""),p===b.length&&(v=Be.default.createElement(w,null,v,A)),fe((R,T)=>{if(T.upArrow||T.downArrow||T.ctrl&&R==="c"||T.shift&&T.tab||T.return)return;if(T.tab&&e.length===0&&C){r(C),d(C.length);return}let L=p,P=e;T.leftArrow?p>0&&L--:T.rightArrow?p<e.length&&L++:T.backspace||T.delete?p>0&&(P=e.slice(0,p-1)+e.slice(p,e.length),L--):(P=e.slice(0,p)+R+e.slice(p,e.length),L+=R.length),d(L),P!==e&&r(P)},{isActive:u}),Be.default.createElement(w,{color:i},b.length>0?v:I)};f();var Ee=D(N(),1),Xt=({table:e})=>{let t=Array.isArray(e)?e:Object.keys(e).map(n=>({header:n,items:e[n],color:void 0,helperText:void 0,bullet:void 0,emptyItemsText:void 0})),r=Math.max(...t.map(n=>Math.max(...n.header.split(`
24
+ `).map(o=>o.length))));return Ee.default.createElement(g,{flexDirection:"column"},t.map((n,o)=>Ee.default.createElement(g,{key:o,marginBottom:o===t.length-1?0:1,flexDirection:"column"},n.header.length>0&&Ee.default.createElement(g,{width:r+1},Ee.default.createElement(w,{color:n.color,bold:!0},fn(n.header))),Ee.default.createElement(g,{flexGrow:1,flexDirection:"column",gap:1},n.emptyItemsText&&n.items.length===0?Ee.default.createElement(w,{color:n.color},Ee.default.createElement(V,{item:{subdued:n.emptyItemsText}})):Ee.default.createElement(Ie,{margin:!1,items:n.items,color:n.color,bullet:n.bullet}),n.helperText?Ee.default.createElement(w,{color:n.color},n.helperText):null))))};f();function Ye(e){let t=$e(e);return t.endsWith("?")||t.endsWith(":")||t.endsWith(".")?e:bn(e,":")}f();var Ze=D(N(),1),Sc=()=>Promise.resolve();function Le(e,t=Sc){let r=te(),[n,o]=(0,Ze.useState)(!1);return(0,Ze.useLayoutEffect)(()=>{e?.addEventListener("abort",()=>{let i=e.reason.message==="AbortError"?void 0:e.reason;t(i).then(()=>o(!0)).catch(()=>{})})},[]),(0,Ze.useEffect)(()=>{if(n){let i=e?.reason?.message==="AbortError"?void 0:e?.reason;r(i)}},[n]),{isAborted:n}}f();var Hr=D(N(),1),_;(function(e){e.Idle="idle",e.Loading="loading",e.Submitted="submitted",e.Error="error",e.Cancelled="cancelled"})(_||(_={}));function De({initialAnswer:e}){let[t,r]=(0,Hr.useState)(_.Idle),[n,o]=(0,Hr.useState)(e);return{promptState:t,setPromptState:r,answer:n,setAnswer:o}}var M=D(N(),1);var Pi=({message:e,confirmation:t,infoTable:r,warningItem:n,onSubmit:o,abortSignal:i})=>{let s=(0,M.useCallback)(L=>L===t?void 0:["Value must be exactly",{userInput:t}],[t]),{oneThird:u,twoThirds:m}=de(),{promptState:d,setPromptState:p,answer:b,setAnswer:v}=De({initialAnswer:""}),S=te(),[y,A]=(0,M.useState)(void 0),C=d===_.Error?"red":"cyan",I=new Array(u-3).fill("\u2594"),{isAborted:R}=Le(i);fe((L,P)=>{if(me(L,P),P.escape&&(p(_.Cancelled),A(void 0)),P.return){let X=s(b);X?(p(_.Error),A(X)):p(_.Submitted)}}),(0,M.useEffect)(()=>{d===_.Submitted?(o(!0),S()):d===_.Cancelled&&(o(!1),S())},[o,d,S]);let T=d===_.Submitted||d===_.Cancelled;return R?null:M.default.createElement(g,{flexDirection:"column",marginBottom:1,width:m},M.default.createElement(g,null,M.default.createElement(g,{marginRight:2},M.default.createElement(w,null,"?")),M.default.createElement(V,{item:Ye(e)})),T?M.default.createElement(Tc,{cancelled:d===_.Cancelled}):M.default.createElement(M.default.Fragment,null,M.default.createElement(g,{flexDirection:"column",gap:1,marginTop:1,marginLeft:3},r?M.default.createElement(g,{paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},M.default.createElement(Xt,{table:r})):null,n?M.default.createElement(g,{flexDirection:"column"},M.default.createElement(w,{color:"red"},ne.warning," WARNING"),M.default.createElement(V,{item:n})):null,M.default.createElement(g,null,M.default.createElement(V,{item:["Type",{userInput:t},"to confirm, or press Escape to cancel."]}))),M.default.createElement(g,{flexDirection:"column",width:u},M.default.createElement(g,null,M.default.createElement(g,{marginRight:2},M.default.createElement(w,{color:C},">")),M.default.createElement(g,{flexGrow:1},M.default.createElement(Ke,{value:b,onChange:L=>{v(L),p(_.Idle)},defaultValue:"",color:C}))),M.default.createElement(g,{marginLeft:3},M.default.createElement(w,{color:C},I)),d===_.Error&&y?M.default.createElement(g,{marginLeft:3},M.default.createElement(w,{color:C},M.default.createElement(V,{item:y}))):null)))},Tc=({cancelled:e})=>M.default.createElement(g,null,M.default.createElement(g,{width:3},e?M.default.createElement(w,{color:"red"},ne.cross):M.default.createElement(w,{color:"cyan"},ne.tick)),M.default.createElement(g,{flexGrow:1},e?M.default.createElement(w,{color:"red"},"Cancelled"):M.default.createElement(w,{color:"cyan"},"Confirmed")));f();f();f();var ve=D(N(),1),Cc="\u2502",Ac="\u2551",Oi=({containerHeight:e,visibleListSectionLength:t,fullListLength:r,visibleFromIndex:n,noColor:o=!we()})=>{let i=e>=4&&o,s=n+t-1,u=i?e-2:e,m=Math.min(u-1,Math.ceil(Math.min(1,t/r)*u)),d;if(s>=r-1)d=u-m;else{let A=u-m,C=r-t;d=Math.max(0,Math.min(u-m,Math.round(n/C*A)))}let p=u-m-d,b=o?Cc:" ",v=o?Ac:" ",S=o?void 0:"gray",y=o?void 0:"cyan";return ve.default.createElement(g,{flexDirection:"column"},i?ve.default.createElement(w,null,"\u25B3"):null,ve.default.createElement(g,{width:1},ve.default.createElement(w,{backgroundColor:S},b.repeat(d))),ve.default.createElement(g,{width:1},ve.default.createElement(w,{backgroundColor:y},v.repeat(m))),ve.default.createElement(g,{width:1},ve.default.createElement(w,{backgroundColor:S},b.repeat(p))),i?ve.default.createElement(w,null,"\u25BD"):null)};f();var xe=D(N(),1);import{isDeepStrictEqual as Rc}from"node:util";var Kt=class extends Map{constructor(t){let r=[],n,o,i=0;for(let s of t){let u={...s,previous:o,next:void 0,index:i};o&&(o.next=u),n??(n=u),r.push([s.value,u]),i++,o=u}super(r),this.first=n}},Lc=(e,t)=>{switch(t.type){case"select-next-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.next;for(;n&&n.disabled;)n=n.next;if(!n)return e;if(!(n.index>e.visibleToIndex))return{...e,value:n.value};let i=n.index,s=i-e.visibleOptionCount+1;return{...e,value:n.value,visibleFromIndex:s,visibleToIndex:i,previousValue:e.value}}case"select-previous-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.previous;for(;n&&n.disabled;)n=n.previous;if(!n)return e;if(!(n.index<e.visibleFromIndex))return{...e,value:n.value};let i=n.index,s=i+e.visibleOptionCount-1;return{...e,value:n.value,visibleFromIndex:i,visibleToIndex:s,previousValue:e.value}}case"select-option":{let r=e.optionMap.get(t.option.value);return r?{...e,value:r.value,previousValue:e.value}:e}case"reset":return t.state;default:return e}},jr=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,o=new Kt(r),i=typeof t>"u"?void 0:o.get(t),s=i&&!i.disabled?i:o.first;for(;s&&s.disabled;)s=s.next;return{optionMap:o,visibleOptionCount:n,visibleFromIndex:0,visibleToIndex:n-1,value:s?.value,previousValue:s?.value}},Fi=({visibleOptionCount:e,options:t,defaultValue:r})=>{let[n,o]=(0,xe.useReducer)(Lc,{visibleOptionCount:e,defaultValue:r,options:t},jr),[i,s]=(0,xe.useState)(t),[u,m]=(0,xe.useState)(e);t!==i&&!Rc(t,i)&&(o({type:"reset",state:jr({visibleOptionCount:e,defaultValue:r,options:t})}),s(t)),e!==u&&(o({type:"reset",state:jr({visibleOptionCount:e,defaultValue:r,options:t})}),m(e));let d=(0,xe.useCallback)(()=>{o({type:"select-next-option"})},[]),p=(0,xe.useCallback)(()=>{o({type:"select-previous-option"})},[]),b=(0,xe.useCallback)(({option:S})=>{o({type:"select-option",option:S})},[]),v=(0,xe.useMemo)(()=>t.slice(n.visibleFromIndex),[t,n.visibleFromIndex]);return{visibleFromIndex:n.visibleFromIndex,visibleToIndex:n.visibleToIndex,value:n.value,visibleOptions:v,selectNextOption:d,selectPreviousOption:p,selectOption:b,previousValue:n.previousValue}};var q=D(N(),1);var fs=D(cs(),1);function fu(e,t){if(!t)return e;let r;try{r=new RegExp(t,"i")}catch{return e}return e.replace(r,n=>Ue.bold(n))}function mu(e){if(e.some(t=>(t.key?.length??0)>1))throw new Error("SelectInput: Keys must be a single character");if(!e.every(t=>typeof t.key<"u"&&t.key.length>0))throw new Error("SelectInput: All items must have keys if one does")}function du({item:e,previousItem:t,isSelected:r,highlightedTerm:n,enableShortcuts:o,items:i,hasAnyGroup:s,index:u}){let m=fu(e.label,n),d,p;r?p="cyan":e.disabled&&(p="dim"),(typeof t>"u"||e.group!==t.group)&&(d=e.group??(s?"Other":void 0));let b=o&&e.key&&e.key.length>0;return q.default.createElement(g,{key:u,flexDirection:"column",marginTop:i.indexOf(e)!==0&&d?1:0,minHeight:d?2:1},d?q.default.createElement(g,{marginLeft:3},q.default.createElement(w,{bold:!0},d)):null,q.default.createElement(g,{key:u,marginLeft:s?3:0},q.default.createElement(g,{marginRight:2},r?q.default.createElement(w,{color:"cyan"},">"):q.default.createElement(w,null," ")),q.default.createElement(w,{wrap:"end",color:p},b?`(${e.key}) ${m}`:m)))}var us=25;function Yt({items:e,initialItems:t=e,onChange:r,enableShortcuts:n=!0,focus:o=!0,emptyMessage:i="No items to select.",defaultValue:s,highlightedTerm:u,loading:m=!1,errorMessage:d,hasMorePages:p=!1,morePagesMessage:b,availableLines:v=us,onSubmit:S,inputFixedAreaRef:y,ref:A,groupOrder:C}){let I=!1;e.length===0&&(e=[{label:i,value:null,disabled:!0}],I=!0);let R=e.some(O=>typeof O.group<"u"),T=(0,fs.default)(e,O=>{if(!O.group)return Number.MAX_SAFE_INTEGER+1;if(!C)return Number.MAX_SAFE_INTEGER;let F=C.indexOf(O.group);return F===-1?Number.MAX_SAFE_INTEGER:F}),L=T.some(O=>typeof O.key<"u"&&O.key.length>0);L&&mu(T);let P=Math.min(v,us);function X(O){let F=new Set(O.map(se=>se.group).filter(se=>se)).size,ie=Math.ceil(Math.min((P+1)/3,F+1));return F>0?(ie-1)*2+1:0}let ee=X(T),z=Math.max(2,P-ee),H=T.length>z,$=Fi({visibleOptionCount:z,options:T,defaultValue:s});(0,q.useEffect)(()=>{typeof $.value<"u"&&$.previousValue!==$.value&&r?.(T.find(O=>O.value===$.value))},[$.previousValue,$.value,T,r]);let pe=O=>{O.upArrow?$.selectPreviousOption():O.downArrow&&$.selectNextOption()},Te=(0,q.useCallback)(O=>{if($.visibleOptions.map(F=>F.key).includes(O)){let F=$.visibleOptions.find(se=>se.key===O),ie=T.find(se=>se.value===F?.value);F&&!F.disabled&&(S&&ie&&S(ie),$.selectOption({option:F}))}},[T,S,$]);fe((O,F)=>{if(me(O,F),typeof $.value<"u"&&F.return){let ie=T.find(se=>se.value===$.value);ie&&S&&S(ie)}n&&O.length>0&&Object.values(F).every(ie=>!ie)?Te(O):pe(F)},{isActive:o});let{twoThirds:B}=de();if(m)return q.default.createElement(g,{marginLeft:3},q.default.createElement(w,{dimColor:!0},"Loading..."));if(d&&d.length>0)return q.default.createElement(g,{marginLeft:3},q.default.createElement(w,{color:"red"},d));{let O=t.length+X(t),ie=Math.max(R?5:2,Math.min(P,O));return q.default.createElement(g,{flexDirection:"column",ref:A,gap:1,width:B},q.default.createElement(g,{flexDirection:"row",height:ie,width:"100%"},q.default.createElement(g,{flexDirection:"column",overflowY:"hidden",flexGrow:1},$.visibleOptions.map((se,re)=>q.default.createElement(du,{key:re,item:se,previousItem:$.visibleOptions[re-1],highlightedTerm:u,isSelected:se.value===$.value,items:$.visibleOptions,enableShortcuts:n,hasAnyGroup:R,index:re}))),H?q.default.createElement(Oi,{containerHeight:ie,visibleListSectionLength:z,fullListLength:T.length,visibleFromIndex:$.visibleFromIndex}):null),q.default.createElement(g,{ref:y},I?q.default.createElement(g,{marginLeft:3},q.default.createElement(w,{dimColor:!0},"Try again with a different keyword.")):q.default.createElement(g,{marginLeft:3,flexDirection:"column"},q.default.createElement(w,{dimColor:!0},`Press ${ne.arrowUp}${ne.arrowDown} arrows to select, enter ${L?"or a shortcut ":""}to confirm.`),p?q.default.createElement(w,null,q.default.createElement(w,{bold:!0},"1-",T.length," of many"),b?` ${b}`:null):null)))}}f();f();var mt=D(N(),1),ms=({message:{title:{color:e,text:t},body:r}})=>mt.default.createElement(g,{flexDirection:"column",gap:1},mt.default.createElement(w,{color:e},mt.default.createElement(V,{item:t})),mt.default.createElement(V,{item:r}));var j=D(N(),1);var Zt=({message:e,infoTable:t,abortSignal:r,infoMessage:n,header:o,state:i,input:s,submittedAnswerLabel:u})=>{let{stdout:m}=_e(),[d,p]=(0,j.useState)(0),[b,v]=(0,j.useState)(0),[S,y]=(0,j.useState)(0),A=m.rows-b-S,[C,I]=(0,j.useState)(A),R=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);d!==H&&p(H)}},[d]),T=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);v(H)}},[]),L=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);y(H+3)}},[]),P=(0,j.cloneElement)(s,{availableLines:C,inputFixedAreaRef:L});(0,j.useLayoutEffect)(()=>{function z(){let H=m.rows-b-S;H!==C&&I(H)}return z(),m.on("resize",z),()=>{m.off("resize",z)}},[d,b,m,C,S]);let{isAborted:X}=Le(r),ee=t&&Object.keys(t).length>0;return X?null:j.default.createElement(g,{flexDirection:"column",marginBottom:1,ref:R},j.default.createElement(g,{ref:T,flexDirection:"column"},j.default.createElement(g,null,j.default.createElement(g,{marginRight:2},j.default.createElement(w,null,"?")),j.default.createElement(V,{item:Ye(e)}),o),(ee||n)&&i!==_.Submitted?j.default.createElement(g,{marginTop:1,marginLeft:3,paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},n?j.default.createElement(ms,{message:n}):null,ee?j.default.createElement(Xt,{table:t}):null):null),i===_.Submitted&&u?j.default.createElement(g,null,j.default.createElement(g,{width:3},j.default.createElement(w,{color:"cyan"},ne.tick)),j.default.createElement(w,{color:"cyan"},u)):j.default.createElement(g,{marginTop:1},P))};var Oe=D(N(),1);function ds({message:e,choices:t,infoTable:r,infoMessage:n,onSubmit:o,defaultValue:i,abortSignal:s,groupOrder:u}){if(t.length===0)throw new Error("SelectPrompt requires at least one choice");let m=te(),{promptState:d,setPromptState:p,answer:b,setAnswer:v}=De({initialAnswer:void 0}),S=(0,Oe.useCallback)(y=>{v(y),p(_.Submitted)},[v,p]);return(0,Oe.useEffect)(()=>{d===_.Submitted&&b&&(o(b.value),m())},[b,o,d,m]),Oe.default.createElement(Zt,{message:e,state:d,submittedAnswerLabel:b?.label,infoTable:r,infoMessage:n,abortSignal:s,input:Oe.default.createElement(Yt,{defaultValue:i,items:t,onSubmit:S,groupOrder:u})})}f();f();f();var oe=D(N(),1),qs=D(Ns(),1);function Du(e,t){let r=5*t,n={h:r%360,s:.8,v:1},o={h:(r+1)%360,s:.8,v:1};return(0,qs.default)(n,o)(e,{interpolation:"hsv",hsvSpin:"long"})}function ku(e,t){let r=t%e.length,n=e.slice(-r),o=e.slice(0,-r);return n+o}function _u(e,t){return t?e.slice(0,t):e}var on=(0,oe.memo)(({text:e,maxWidth:t})=>{let r=(0,oe.useRef)(0),[n,o]=(0,oe.useState)(e),i=(0,oe.useRef)(),{stdout:s}=_e(),[u,m]=(0,oe.useState)(t??Math.floor(s.columns*.66));(0,oe.useLayoutEffect)(()=>{let p=()=>{m(Math.floor(s.columns*.66))};return s.on("resize",p),()=>{s.off("resize",p)}},[s]);let d=(0,oe.useCallback)(()=>{let p=r.current+1;r.current=p,o(Du(_u(ku(e,r.current),u),r.current)),i.current=setTimeout(()=>{d()},35)},[e,u]);return(0,oe.useLayoutEffect)(()=>(d(),()=>{clearTimeout(i.current)}),[d]),oe.default.createElement(w,null,n)});on.displayName="TextAnimation";var nr=D(N(),1);var Mu="\u2580",Gs="\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581",or=({title:e,noColor:t,noProgressBar:r})=>{let{twoThirds:n}=de(),{stdout:o}=_e(),i=!!o.isTTY,s=new Array(n).fill(Mu).join("");return(t??!we())&&(s=Gs.repeat(Math.ceil(n/Gs.length))),nr.default.createElement(g,{flexDirection:"column"},i&&!r&&nr.default.createElement(on,{text:s,maxWidth:n}),nr.default.createElement(w,null,e," ..."))};f();var gt=D(N(),1);function sn(e,{onFulfilled:t=()=>{},onRejected:r=()=>{}}={}){let n=te(),[o,i]=(0,gt.useState)(null);(0,gt.useEffect)(()=>{e().then(()=>{t(),i({})}).catch(s=>{r(s),i({error:s})})},[]),(0,gt.useEffect)(()=>{o!==null&&n(o.error)},[o])}f();function Hs(){let{isRawModeSupported:e}=wt();fe((t,r)=>{if(me(t,r),r.return)return null},{isActive:!!e})}var Fe=D(N(),1),Je;(function(e){e.Loading="loading",e.Success="success",e.Failure="failure"})(Je||(Je={}));async function js(e,t){e.retryCount=0,e.errors=[];let r=e.retry&&e.retry>0?e.retry+1:1;for(let n=1;n<=r;n++)try{return e.skip?.(t)?void 0:await e.task(t,e)}catch(o){if(n===r)throw o;e.errors.push(o),e.retryCount=n}}var Bu=()=>{};function Ws({tasks:e,silent:t=vt(),onComplete:r=Bu,abortSignal:n,noColor:o,noProgressBar:i=!1}){let[s,u]=(0,Fe.useState)(e[0]),[m,d]=(0,Fe.useState)(Je.Loading),p=(0,Fe.useRef)({});sn(async()=>{for(let y of e){u(y);let A=await js(y,p.current);if(Array.isArray(A)&&A.length>0&&A.every(C=>"task"in C))for(let C of A)u(C),await js(C,p.current)}},{onFulfilled:()=>{d(Je.Success),r(p.current)},onRejected:()=>{d(Je.Failure)}}),Hs();let{isAborted:v}=Le(n);if(t)return null;let S=typeof s.title=="string"?s.title:s.title.value;return m===Je.Loading&&!v?Fe.default.createElement(or,{title:S,noColor:o,noProgressBar:i}):null}f();var G=D(N(),1);var zs=({message:e,onSubmit:t,validate:r,defaultValue:n="",password:o=!1,allowEmpty:i=!1,emptyDisplayedValue:s="(empty)",abortSignal:u,preview:m,initialAnswer:d=""})=>{if(o&&n)throw new Error("Can't use defaultValue with password");let p=(0,G.useCallback)(H=>{if(r)return r(H);if(H.length===0&&!i)return"Type an answer to the prompt."},[i,r]),{oneThird:b}=de(),{promptState:v,setPromptState:S,answer:y,setAnswer:A}=De({initialAnswer:d}),C=y.length>0?y:n,I=C==="",R=I?s:C,T=te(),[L,P]=(0,G.useState)(void 0),X=v===_.Error?"red":"cyan",ee=new Array(b-3).fill("\u2594"),{isAborted:z}=Le(u);return fe((H,$)=>{if(me(H,$),$.return){let pe=p(C);pe?(S(_.Error),P(pe)):S(_.Submitted)}}),(0,G.useEffect)(()=>{v===_.Submitted&&(t(C),T())},[C,t,v,T]),z?null:G.default.createElement(g,{flexDirection:"column",marginBottom:1,width:b},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(w,null,"?")),G.default.createElement(V,{item:Ye(e)})),v===_.Submitted?G.default.createElement(g,null,G.default.createElement(g,{width:3},G.default.createElement(w,{color:"cyan"},ne.tick)),G.default.createElement(g,{flexGrow:1},G.default.createElement(w,{color:"cyan",dimColor:I},o?"*".repeat(y.length):R))):G.default.createElement(g,{flexDirection:"column"},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(w,{color:X},">")),G.default.createElement(g,{flexGrow:1},G.default.createElement(Ke,{value:y,onChange:H=>{A(H),S(_.Idle)},defaultValue:n,color:X,password:o}))),G.default.createElement(g,{marginLeft:3},G.default.createElement(w,{color:X},ee)),v===_.Error?G.default.createElement(g,{marginLeft:3},G.default.createElement(w,{color:X},L)):null,v!==_.Error&&m?G.default.createElement(g,{marginLeft:3},G.default.createElement(V,{item:m(C)})):null))};f();f();var Iu=D(aa(),1),Vs=D(Ea(),1),Xs=D(va(),1);function bb(e,t,r){return(0,Vs.default)(e,t,r)}function Ks(e,t,r){return(0,Xs.default)(e,t,r)}var J=D(N(),1);var Pu=5,Ou=400;function Ys({message:e,choices:t,infoTable:r,onSubmit:n,search:o,hasMorePages:i=!1,abortSignal:s,infoMessage:u,groupOrder:m,searchDebounceMs:d=Ou}){let p=te(),[b,v]=(0,J.useState)(""),[S,y]=(0,J.useState)(t),A=t.length>Pu,[C,I]=(0,J.useState)(i),{promptState:R,setPromptState:T,answer:L,setAnswer:P}=De({initialAnswer:void 0}),X=(0,J.useCallback)(async B=>await o(B),[o]),ee=(0,J.useCallback)(B=>{R===_.Idle&&(P(B),T(_.Submitted))},[R,P,T]);(0,J.useEffect)(()=>{R===_.Submitted&&L&&(v(""),n(L.value),p())},[L,n,R,p]);let z=(0,J.useRef)(),H=(0,J.useRef)("");H.current=b;let $=(0,J.useRef)(t);$.current=t;let pe=(0,J.useRef)(i);pe.current=i;let Te=J.default.useMemo(()=>Ks(B=>{z.current=setTimeout(()=>{T(_.Loading)},100),X(B).then(O=>{H.current.length===0?(y($.current),I(pe.current)):(y(O.data),I(O.meta?.hasNextPage??!1)),T(_.Idle)}).catch(()=>{T(_.Error)}).finally(()=>{clearTimeout(z.current)})},d,{leading:!0,trailing:!0}),[X,T,d]);return J.default.createElement(Zt,{message:e,state:R,infoTable:r,infoMessage:u,abortSignal:s,header:R!==_.Submitted&&A?J.default.createElement(g,{marginLeft:3},J.default.createElement(Ke,{value:b,onChange:B=>{v(B),H.current=B,B.length>0?Te(B):(Te.cancel(),T(_.Idle),y(t))},placeholder:"Type to search..."})):null,submittedAnswerLabel:L?.label,input:J.default.createElement(Yt,{items:S,initialItems:t,enableShortcuts:!1,emptyMessage:"No results found.",highlightedTerm:b,loading:R===_.Loading,errorMessage:R===_.Error?"There has been an error while searching. Please try again later.":void 0,hasMorePages:C,morePagesMessage:"Find what you're looking for by typing its name.",onSubmit:ee,groupOrder:m})})}f();var ke=D(N(),1);var Zs=({task:e,title:t,onComplete:r,onAbort:n,noColor:o})=>{let[i,s]=(0,ke.useState)(t),[u,m]=(0,ke.useState)(!1),[d,p]=(0,ke.useState)(null),b=te(),{isRawModeSupported:v}=wt();return fe((S,y)=>{n?me(S,y,n):me(S,y)},{isActive:!!v}),(0,ke.useEffect)(()=>{e(s).then(S=>{m(!0),r?.(S),p({})}).catch(S=>{m(!0),p({error:S})})},[e,r]),(0,ke.useEffect)(()=>{d!==null&&b(d.error)},[d,b]),u?null:ke.default.createElement(or,{title:i.value,noColor:o})};var Se=D(N()),et={skipTTYCheck:!1};async function Zb({renderOptions:e,...t}){let r=t.abortSignal??new _t().signal;return Me(Se.default.createElement(oi,{...t,abortSignal:r}),e)}function Qb(e){return ct({...e,type:"info"})}function Jb(e){return ct({...e,type:"success"})}function Vo(e){return ct({...e,type:"warning"})}function e0(e){return ct({...e,type:"error"})}function t0(e,{renderOptions:t}={}){return at(Se.default.createElement(Bi,{error:e}),{logLevel:"error",renderOptions:t})}async function Fu({renderOptions:e,isConfirmationPrompt:t,...r},n=et){return bt({message:r.message,stdin:e?.stdin},n),Ne("cmd_all_timing_prompts_ms")(async()=>{let o;return await Me(Se.default.createElement(ds,{...r,onSubmit:i=>{o=i}}),{...e,exitOnCtrlC:!1}),o})}async function r0({message:e,infoTable:t,confirmationMessage:r="Yes, confirm",cancellationMessage:n="No, cancel",renderOptions:o,defaultValue:i=!0,abortSignal:s,infoMessage:u}){return Fu({choices:[{label:r,value:!0,key:"y"},{label:n,value:!1,key:"n"}],message:e,infoTable:t,renderOptions:o,defaultValue:i,isConfirmationPrompt:!0,abortSignal:s,infoMessage:u})}async function n0({renderOptions:e,...t},r=et){bt({message:t.message,stdin:e?.stdin},r);let n=t.search===void 0,o={search(i){let s=i.toLowerCase();return Promise.resolve({data:t.choices.filter(u=>u.label.toLowerCase().includes(s)||u.group?.toLowerCase().includes(s))})},...n?{searchDebounceMs:0}:{},...t};return Ne("cmd_all_timing_prompts_ms")(async()=>{let i;if(await Me(Se.default.createElement(Ys,{...o,onSubmit:s=>{i=s}}),{...e,exitOnCtrlC:!1}),i===void 0)throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");return i})}function o0({renderOptions:e,...t}){return at(Se.default.createElement(Ii,{...t}),{renderOptions:e})}async function i0(e,{renderOptions:t,noProgressBar:r}={}){let n;return await Me(Se.default.createElement(Ws,{tasks:e,onComplete:o=>{n=o},noProgressBar:r}),{stdout:process.stderr,...t,exitOnCtrlC:!1}),n}async function s0({title:e,task:t,onAbort:r,renderOptions:n}){let o;return await Me(Se.default.createElement(Zs,{title:e,task:t,onComplete:i=>{o=i},onAbort:r}),{stdout:process.stderr,...n,exitOnCtrlC:!1}),o}async function a0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n="";return await Me(Se.default.createElement(zs,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}async function l0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n;return await Me(Se.default.createElement(Pi,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}var c0=async(e=process.stdin,t=et)=>(bt({message:"Press any key"},t),Ne("cmd_all_timing_prompts_ms")(()=>new Promise((r,n)=>{let o=i=>{e.setRawMode(!1);let s=Array.from(i);s.length&&s[0]===3&&(Pe("Canceled keypress, User pressed CTRL+C"),n(new En)),e.unref(),process.nextTick(r)};e.setRawMode(!0),e.once("data",o),e.ref()})));function Uu({stdin:e=void 0,uiDebugOptions:t=et}={}){return!!(t.skipTTYCheck||e||Zo())}function bt({message:e,stdin:t=void 0},r){if(Uu({stdin:t,uiDebugOptions:r}))return;let n=$e(e),o=`Failed to prompt:
25
+
26
+ ${St`${Tn.cyan(n)}`.value}
27
+
28
+ This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;throw new qe(o,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")}export{_t as a,ei as b,Hi as c,mo as d,Ae as e,Bm as f,zo as g,_i as h,Me as i,me as j,ne as k,Bd as l,oi as m,Ut as n,ai as o,Le as p,Vi as q,Rs as r,bb as s,Zb as t,Qb as u,Jb as v,Vo as w,e0 as x,t0 as y,Fu as z,r0 as A,n0 as B,o0 as C,i0 as D,s0 as E,a0 as F,l0 as G,c0 as H,Uu as I,zm as J,Vm as K,Xm as L,Km as M,Ym as N,Zm as O,Qm as P,Jm as Q,Zo as R,ed as S,td as T,Vl as U,rd as V};
@@ -0,0 +1,14 @@
1
+ import{a as Eu,c as p,d as ne,e as pu,g as n}from"./chunk-VPRTJUIN.js";var Lu=p((Nr,uu)=>{n();uu.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&uu.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&uu.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Wu=p((_r,$)=>{n();var a=global.process,S=function(u){return u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function"};S(a)?(ju=Eu("assert"),I=Lu(),Mu=/^win/i.test(a.platform),Y=Eu("events"),typeof Y!="function"&&(Y=Y.EventEmitter),a.__signal_exit_emitter__?d=a.__signal_exit_emitter__:(d=a.__signal_exit_emitter__=new Y,d.count=0,d.emitted={}),d.infinite||(d.setMaxListeners(1/0),d.infinite=!0),$.exports=function(u,D){if(!S(global.process))return function(){};ju.equal(typeof u,"function","a callback must be provided for exit handler"),_===!1&&du();var e="exit";D&&D.alwaysLast&&(e="afterexit");var t=function(){d.removeListener(e,u),d.listeners("exit").length===0&&d.listeners("afterexit").length===0&&Du()};return d.on(e,u),t},Du=function(){!_||!S(global.process)||(_=!1,I.forEach(function(D){try{a.removeListener(D,eu[D])}catch{}}),a.emit=tu,a.reallyExit=Bu,d.count-=1)},$.exports.unload=Du,v=function(D,e,t){d.emitted[D]||(d.emitted[D]=!0,d.emit(D,e,t))},eu={},I.forEach(function(u){eu[u]=function(){if(S(global.process)){var e=a.listeners(u);e.length===d.count&&(Du(),v("exit",null,u),v("afterexit",null,u),Mu&&u==="SIGHUP"&&(u="SIGINT"),a.kill(a.pid,u))}}}),$.exports.signals=function(){return I},_=!1,du=function(){_||!S(global.process)||(_=!0,d.count+=1,I=I.filter(function(D){try{return a.on(D,eu[D]),!0}catch{return!1}}),a.emit=Gu,a.reallyExit=ku)},$.exports.load=du,Bu=a.reallyExit,ku=function(D){S(global.process)&&(a.exitCode=D||0,v("exit",a.exitCode,null),v("afterexit",a.exitCode,null),Bu.call(a,a.exitCode))},tu=a.emit,Gu=function(D,e){if(D==="exit"&&S(global.process)){e!==void 0&&(a.exitCode=e);var t=tu.apply(this,arguments);return v("exit",a.exitCode,null),v("afterexit",a.exitCode,null),t}else return tu.apply(this,arguments)}):$.exports=function(){return function(){}};var ju,I,Mu,Y,d,Du,v,eu,_,du,Bu,ku,tu,Gu});var qu=p((Zr,Yu)=>{n();Yu.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var He=p((Lo,cD)=>{n();function Ke(u){var D=typeof u;return u!=null&&(D=="object"||D=="function")}cD.exports=Ke});var TD=p((fn,xD)=>{n();var Rt=typeof global=="object"&&global&&global.Object===Object&&global;xD.exports=Rt});var wD=p((pn,yD)=>{n();var Nt=TD(),It=typeof self=="object"&&self&&self.Object===Object&&self,_t=Nt||It||Function("return this")();yD.exports=_t});var vu=p((Bn,SD)=>{n();var $t=wD(),Lt=$t.Symbol;SD.exports=Lt});var ND=p((gn,RD)=>{n();var vD=vu(),OD=Object.prototype,jt=OD.hasOwnProperty,Mt=OD.toString,Z=vD?vD.toStringTag:void 0;function kt(u){var D=jt.call(u,Z),e=u[Z];try{u[Z]=void 0;var t=!0}catch{}var r=Mt.call(u);return t&&(D?u[Z]=e:delete u[Z]),r}RD.exports=kt});var _D=p((bn,ID)=>{n();var Gt=Object.prototype,Wt=Gt.toString;function Pt(u){return Wt.call(u)}ID.exports=Pt});var MD=p((xn,jD)=>{n();var $D=vu(),Ut=ND(),Vt=_D(),Yt="[object Null]",qt="[object Undefined]",LD=$D?$D.toStringTag:void 0;function Kt(u){return u==null?u===void 0?qt:Yt:LD&&LD in Object(u)?Ut(u):Vt(u)}jD.exports=Kt});var GD=p((yn,kD)=>{n();function Ht(u){return u!=null&&typeof u=="object"}kD.exports=Ht});var Zt=p((Sn,WD)=>{n();var zt=MD(),Jt=GD(),Xt="[object Symbol]";function Qt(u){return typeof u=="symbol"||Jt(u)&&zt(u)==Xt}WD.exports=Qt});var UD=p((On,Ou)=>{"use strict";n();var PD=(u,D)=>{for(let e of Reflect.ownKeys(D))Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(D,e));return u};Ou.exports=PD;Ou.exports.default=PD});var YD=p((Nn,Cu)=>{"use strict";n();var ur=UD(),cu=new WeakMap,VD=(u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,t=0,r=u.displayName||u.name||"<anonymous>",o=function(...F){if(cu.set(o,++t),t===1)e=u.apply(this,F),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e};return ur(o,u),cu.set(o,t),o};Cu.exports=VD;Cu.exports.default=VD;Cu.exports.callCount=u=>{if(!cu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return cu.get(u)}});var XD=p((Xn,fr)=>{fr.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Er=p((Qn,_u)=>{"use strict";n();var QD=XD();_u.exports=QD;_u.exports.default=QD});var ue=p((uF,ZD)=>{"use strict";n();var pr=/[|\\{}()[\]^$+*?.-]/g;ZD.exports=u=>{if(typeof u!="string")throw new TypeError("Expected a string");return u.replace(pr,"\\$&")}});var br=p((eF,te)=>{"use strict";n();var dr=ue(),Br=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",ee=[].concat(Eu("module").builtinModules,"bootstrap_node","node").map(u=>new RegExp(`(?:\\((?:node:)?${u}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${u}(?:\\.js)?:\\d+:\\d+$)`));ee.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var $u=class u{constructor(D){D={ignoredPackages:[],...D},"internals"in D||(D.internals=u.nodeInternals()),"cwd"in D||(D.cwd=Br),this._cwd=D.cwd.replace(/\\/g,"/"),this._internals=[].concat(D.internals,hr(D.ignoredPackages)),this._wrapCallSite=D.wrapCallSite||!1}static nodeInternals(){return[...ee]}clean(D,e=0){e=" ".repeat(e),Array.isArray(D)||(D=D.split(`
2
+ `)),!/^\s*at /.test(D[0])&&/^\s*at /.test(D[1])&&(D=D.slice(1));let t=!1,r=null,o=[];return D.forEach(F=>{if(F=F.replace(/\\/g,"/"),this._internals.some(l=>l.test(F)))return;let i=/^\s*at /.test(F);t?F=F.trimEnd().replace(/^(\s+)at /,"$1"):(F=F.trim(),i&&(F=F.slice(3))),F=F.replace(`${this._cwd}/`,""),F&&(i?(r&&(o.push(r),r=null),o.push(F)):(t=!0,r=F))}),o.map(F=>`${e}${F}
3
+ `).join("")}captureString(D,e=this.captureString){typeof D=="function"&&(e=D,D=1/0);let{stackTraceLimit:t}=Error;D&&(Error.stackTraceLimit=D);let r={};Error.captureStackTrace(r,e);let{stack:o}=r;return Error.stackTraceLimit=t,this.clean(o)}capture(D,e=this.capture){typeof D=="function"&&(e=D,D=1/0);let{prepareStackTrace:t,stackTraceLimit:r}=Error;Error.prepareStackTrace=(i,l)=>this._wrapCallSite?l.map(this._wrapCallSite):l,D&&(Error.stackTraceLimit=D);let o={};Error.captureStackTrace(o,e);let{stack:F}=o;return Object.assign(Error,{prepareStackTrace:t,stackTraceLimit:r}),F}at(D=this.at){let[e]=this.capture(1,D);if(!e)return{};let t={line:e.getLineNumber(),column:e.getColumnNumber()};De(t,e.getFileName(),this._cwd),e.isConstructor()&&Object.defineProperty(t,"constructor",{value:!0,configurable:!0}),e.isEval()&&(t.evalOrigin=e.getEvalOrigin()),e.isNative()&&(t.native=!0);let r;try{r=e.getTypeName()}catch{}r&&r!=="Object"&&r!=="[object Object]"&&(t.type=r);let o=e.getFunctionName();o&&(t.function=o);let F=e.getMethodName();return F&&o!==F&&(t.method=F),t}parseLine(D){let e=D&&D.match(gr);if(!e)return null;let t=e[1]==="new",r=e[2],o=e[3],F=e[4],i=Number(e[5]),l=Number(e[6]),E=e[7],N=e[8],g=e[9],A=e[10]==="native",h=e[11]===")",m,B={};if(N&&(B.line=Number(N)),g&&(B.column=Number(g)),h&&E){let y=0;for(let w=E.length-1;w>0;w--)if(E.charAt(w)===")")y++;else if(E.charAt(w)==="("&&E.charAt(w-1)===" "&&(y--,y===-1&&E.charAt(w-1)===" ")){let oe=E.slice(0,w-1);E=E.slice(w+1),r+=` (${oe}`;break}}if(r){let y=r.match(mr);y&&(r=y[1],m=y[2])}return De(B,E,this._cwd),t&&Object.defineProperty(B,"constructor",{value:!0,configurable:!0}),o&&(B.evalOrigin=o,B.evalLine=i,B.evalColumn=l,B.evalFile=F&&F.replace(/\\/g,"/")),A&&(B.native=!0),r&&(B.function=r),m&&r!==m&&(B.method=m),B}};function De(u,D,e){D&&(D=D.replace(/\\/g,"/"),D.startsWith(`${e}/`)&&(D=D.slice(e.length+1)),u.file=D)}function hr(u){if(u.length===0)return[];let D=u.map(e=>dr(e));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${D.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var gr=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),mr=/^(.*?) \[as (.*?)\]$/;te.exports=$u});n();n();function U({onlyFirst:u=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}var Fe=U();function V(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Fe,"")}n();n();n();n();var ru=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],ou=[12288,12288,65281,65376,65504,65510],hu=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],gu=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],q=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];n();var nu=(u,D)=>{let e=0,t=Math.floor(u.length/2)-1;for(;e<=t;){let r=Math.floor((e+t)/2),o=r*2;if(D<u[o])t=r-1;else if(D>u[o+1])e=r+1;else return!0}return!1};var ie=ru[0],se=ru.at(-1),le=ou[0],ae=ou.at(-1),Pr=hu[0],Ur=hu.at(-1),Vr=gu[0],Yr=gu.at(-1),ce=q[0],Ce=q.at(-1),Pu=19968,[fe,Ee]=pe(q);function pe(u){let D=u[0],e=u[1];for(let t=0;t<u.length;t+=2){let r=u[t],o=u[t+1];if(Pu>=r&&Pu<=o)return[r,o];o-r>e-D&&(D=r,e=o)}return[D,e]}var Uu=u=>u<ie||u>se?!1:nu(ru,u),K=u=>u<le||u>ae?!1:nu(ou,u);var H=u=>u>=fe&&u<=Ee?!0:u<ce||u>Ce?!1:nu(q,u);function de(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function Vu(u,{ambiguousAsWide:D=!1}={}){return de(u),K(u)||H(u)||D&&Uu(u)?2:1}var Ku=pu(qu(),1),Be=new Intl.Segmenter,he=/^\p{Default_Ignorable_Code_Point}$/u;function O(u,D={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=V(u)),u.length===0)return 0;let r=0,o={ambiguousAsWide:!e};for(let{segment:F}of Be.segment(u)){let i=F.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!he.test(F)){if((0,Ku.default)().test(F)){r+=2;continue}r+=Vu(i,o)}}return r}n();n();var Hu=(u=0)=>D=>`\x1B[${D+u}m`,zu=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Ju=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,c={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},oo=Object.keys(c.modifier),ge=Object.keys(c.color),me=Object.keys(c.bgColor),no=[...ge,...me];function be(){let u=new Map;for(let[D,e]of Object.entries(c)){for(let[t,r]of Object.entries(e))c[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=c[t],u.set(r[0],r[1]);Object.defineProperty(c,D,{value:e,enumerable:!1})}return Object.defineProperty(c,"codes",{value:u,enumerable:!1}),c.color.close="\x1B[39m",c.bgColor.close="\x1B[49m",c.color.ansi=Hu(),c.color.ansi256=zu(),c.color.ansi16m=Ju(),c.bgColor.ansi=Hu(10),c.bgColor.ansi256=zu(10),c.bgColor.ansi16m=Ju(10),Object.defineProperties(c,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>c.rgbToAnsi256(...c.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>c.ansi256ToAnsi(c.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>c.ansi256ToAnsi(c.hexToAnsi256(D)),enumerable:!1}}),c}var Ae=be(),x=Ae;var iu=new Set(["\x1B","\x9B"]),xe=39,bu="\x07",Zu="[",Te="]",uD="m",Fu=`${Te}8;;`,Xu=u=>`${iu.values().next().value}${Zu}${u}${uD}`,Qu=u=>`${iu.values().next().value}${Fu}${u}${bu}`,ye=u=>u.split(" ").map(D=>O(D)),mu=(u,D,e)=>{let t=[...D],r=!1,o=!1,F=O(V(u.at(-1)));for(let[i,l]of t.entries()){let E=O(l);if(F+E<=e?u[u.length-1]+=l:(u.push(l),F=0),iu.has(l)&&(r=!0,o=t.slice(i+1,i+1+Fu.length).join("")===Fu),r){o?l===bu&&(r=!1,o=!1):l===uD&&(r=!1);continue}F+=E,F===e&&i<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},we=u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(O(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Se=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,F=ye(u),i=[""];for(let[g,A]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let h=O(i.at(-1));if(g!==0&&(h>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),h=0),(h>0||e.trim===!1)&&(i[i.length-1]+=" ",h++)),e.hard&&F[g]>D){let m=D-h,B=1+Math.floor((F[g]-m-1)/D);Math.floor((F[g]-1)/D)<B&&i.push(""),mu(i,A,D);continue}if(h+F[g]>D&&h>0&&F[g]>0){if(e.wordWrap===!1&&h<D){mu(i,A,D);continue}i.push("")}if(h+F[g]>D&&e.wordWrap===!1){mu(i,A,D);continue}i[i.length-1]+=A}e.trim!==!1&&(i=i.map(g=>we(g)));let l=i.join(`
4
+ `),E=[...l],N=0;for(let[g,A]of E.entries()){if(t+=A,iu.has(A)){let{groups:m}=new RegExp(`(?:\\${Zu}(?<code>\\d+)m|\\${Fu}(?<uri>.*)${bu})`).exec(l.slice(N))||{groups:{}};if(m.code!==void 0){let B=Number.parseFloat(m.code);r=B===xe?void 0:B}else m.uri!==void 0&&(o=m.uri.length===0?void 0:m.uri)}let h=x.codes.get(Number(r));E[g+1]===`
5
+ `?(o&&(t+=Qu("")),r&&h&&(t+=Xu(h))):A===`
6
+ `&&(r&&h&&(t+=Xu(r)),o&&(t+=Qu(o))),N+=A.length}return t};function ve(u,D,e){return String(u).normalize().replaceAll(`\r
7
+ `,`
8
+ `).split(`
9
+ `).map(t=>Se(t,D,e)).join(`
10
+ `)}n();var Oe=U();function Re(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(Oe,"")}n();n();var DD=(u=0)=>D=>`\x1B[${D+u}m`,eD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,tD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,C={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Bo=Object.keys(C.modifier),Ne=Object.keys(C.color),Ie=Object.keys(C.bgColor),ho=[...Ne,...Ie];function _e(){let u=new Map;for(let[D,e]of Object.entries(C)){for(let[t,r]of Object.entries(e))C[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=C[t],u.set(r[0],r[1]);Object.defineProperty(C,D,{value:e,enumerable:!1})}return Object.defineProperty(C,"codes",{value:u,enumerable:!1}),C.color.close="\x1B[39m",C.bgColor.close="\x1B[49m",C.color.ansi=DD(),C.color.ansi256=eD(),C.color.ansi16m=tD(),C.bgColor.ansi=DD(10),C.bgColor.ansi256=eD(10),C.bgColor.ansi16m=tD(10),Object.defineProperties(C,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>C.rgbToAnsi256(...C.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>C.ansi256ToAnsi(C.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>C.ansi256ToAnsi(C.hexToAnsi256(D)),enumerable:!1}}),C}var $e=_e(),T=$e;n();import Au from"node:process";import Le from"node:os";import rD from"node:tty";function b(u,D=globalThis.Deno?globalThis.Deno.args:Au.argv){let e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}var{env:f}=Au,su;b("no-color")||b("no-colors")||b("color=false")||b("color=never")?su=0:(b("color")||b("colors")||b("color=true")||b("color=always"))&&(su=1);function je(){if("FORCE_COLOR"in f)return f.FORCE_COLOR==="true"?1:f.FORCE_COLOR==="false"?0:f.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(f.FORCE_COLOR,10),3)}function Me(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function ke(u,{streamIsTTY:D,sniffFlags:e=!0}={}){let t=je();t!==void 0&&(su=t);let r=e?su:t;if(r===0)return 0;if(e){if(b("color=16m")||b("color=full")||b("color=truecolor"))return 3;if(b("color=256"))return 2}if("TF_BUILD"in f&&"AGENT_NAME"in f)return 1;if(u&&!D&&r===void 0)return 0;let o=r||0;if(f.TERM==="dumb")return o;if(Au.platform==="win32"){let F=Le.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in f)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in f)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in f)||f.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in f)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(f.TEAMCITY_VERSION)?1:0;if(f.COLORTERM==="truecolor"||f.TERM==="xterm-kitty"||f.TERM==="xterm-ghostty"||f.TERM==="wezterm")return 3;if("TERM_PROGRAM"in f){let F=Number.parseInt((f.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(f.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(f.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(f.TERM)||"COLORTERM"in f?1:o}function oD(u,D={}){let e=ke(u,{streamIsTTY:u&&u.isTTY,...D});return Me(e)}var Ge={stdout:oD({isTTY:rD.isatty(1)}),stderr:oD({isTTY:rD.isatty(2)})},nD=Ge;n();function FD(u,D,e){let t=u.indexOf(D);if(t===-1)return u;let r=D.length,o=0,F="";do F+=u.slice(o,t)+D+e,o=t+r,t=u.indexOf(D,o);while(t!==-1);return F+=u.slice(o),F}function iD(u,D,e,t){let r=0,o="";do{let F=u[t-1]==="\r";o+=u.slice(r,F?t-1:t)+D+(F?`\r
11
+ `:`
12
+ `)+e,r=t+1,t=u.indexOf(`
13
+ `,r)}while(t!==-1);return o+=u.slice(r),o}var{stdout:sD,stderr:lD}=nD,xu=Symbol("GENERATOR"),L=Symbol("STYLER"),z=Symbol("IS_EMPTY"),aD=["ansi","ansi","ansi256","ansi16m"],j=Object.create(null),We=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let e=sD?sD.level:0;u.level=D.level===void 0?e:D.level};var Pe=u=>{let D=(...e)=>e.join(" ");return We(D,u),Object.setPrototypeOf(D,J.prototype),D};function J(u){return Pe(u)}Object.setPrototypeOf(J.prototype,Function.prototype);for(let[u,D]of Object.entries(T))j[u]={get(){let e=lu(this,yu(D.open,D.close,this[L]),this[z]);return Object.defineProperty(this,u,{value:e}),e}};j.visible={get(){let u=lu(this,this[L],!0);return Object.defineProperty(this,"visible",{value:u}),u}};var Tu=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?T[e].ansi16m(...t):D==="ansi256"?T[e].ansi256(T.rgbToAnsi256(...t)):T[e].ansi(T.rgbToAnsi(...t)):u==="hex"?Tu("rgb",D,e,...T.hexToRgb(...t)):T[e][u](...t),Ue=["rgb","hex","ansi256"];for(let u of Ue){j[u]={get(){let{level:e}=this;return function(...t){let r=yu(Tu(u,aD[e],"color",...t),T.color.close,this[L]);return lu(this,r,this[z])}}};let D="bg"+u[0].toUpperCase()+u.slice(1);j[D]={get(){let{level:e}=this;return function(...t){let r=yu(Tu(u,aD[e],"bgColor",...t),T.bgColor.close,this[L]);return lu(this,r,this[z])}}}}var Ve=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[xu].level},set(u){this[xu].level=u}}}),yu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},lu=(u,D,e)=>{let t=(...r)=>Ye(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,Ve),t[xu]=u,t[L]=D,t[z]=e,t},Ye=(u,D)=>{if(u.level<=0||!D)return u[z]?"":D;let e=u[L];if(e===void 0)return D;let{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=FD(D,e.close,e.open),e=e.parent;let o=D.indexOf(`
14
+ `);return o!==-1&&(D=iD(D,r,t,o)),t+D+r};Object.defineProperties(J.prototype,j);var qe=J(),No=J({level:lD?lD.level:0});var Io=qe;var mD={};ne(mD,{ConEmu:()=>gD,beep:()=>xt,beginSynchronizedOutput:()=>dD,clearScreen:()=>dt,clearTerminal:()=>gt,clearViewport:()=>Bt,cursorBackward:()=>et,cursorDown:()=>ut,cursorForward:()=>Dt,cursorGetPosition:()=>ot,cursorHide:()=>it,cursorLeft:()=>ED,cursorMove:()=>Ze,cursorNextLine:()=>nt,cursorPrevLine:()=>Ft,cursorRestorePosition:()=>rt,cursorSavePosition:()=>tt,cursorShow:()=>st,cursorTo:()=>Qe,cursorUp:()=>fD,endSynchronizedOutput:()=>BD,enterAlternativeScreen:()=>mt,eraseDown:()=>Ct,eraseEndLine:()=>at,eraseLine:()=>pD,eraseLines:()=>lt,eraseScreen:()=>au,eraseStartLine:()=>ct,eraseUp:()=>ft,exitAlternativeScreen:()=>bt,iTerm:()=>hD,image:()=>yt,link:()=>Tt,scrollDown:()=>pt,scrollUp:()=>Et,setCwd:()=>wt,synchronizedOutput:()=>At});n();import k from"node:process";import ze from"node:os";n();var M=globalThis.window?.document!==void 0,Mo=globalThis.process?.versions?.node!==void 0,ko=globalThis.process?.versions?.bun!==void 0,Go=globalThis.Deno?.version?.deno!==void 0,Wo=globalThis.process?.versions?.electron!==void 0,Po=globalThis.navigator?.userAgent?.includes("jsdom")===!0,Uo=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,Vo=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Yo=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,qo=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,X=globalThis.navigator?.userAgentData?.platform,Ko=X==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Ho=X==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",zo=X==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Jo=X==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),Xo=X==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var s="\x1B[",G="\x1B]",R="\x07",Q=";",CD=!M&&k.env.TERM_PROGRAM==="Apple_Terminal",Je=!M&&k.platform==="win32",Xe=!M&&(k.env.TERM?.startsWith("screen")||k.env.TERM?.startsWith("tmux")||k.env.TMUX!==void 0),wu=M?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:k.cwd,W=u=>Xe?"\x1BPtmux;"+u.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":u,Qe=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");return typeof D!="number"?s+(u+1)+"G":s+(D+1)+Q+(u+1)+"H"},Ze=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");let e="";return u<0?e+=s+-u+"D":u>0&&(e+=s+u+"C"),D<0?e+=s+-D+"A":D>0&&(e+=s+D+"B"),e},fD=(u=1)=>s+u+"A",ut=(u=1)=>s+u+"B",Dt=(u=1)=>s+u+"C",et=(u=1)=>s+u+"D",ED=s+"G",tt=CD?"\x1B7":s+"s",rt=CD?"\x1B8":s+"u",ot=s+"6n",nt=s+"E",Ft=s+"F",it=s+"?25l",st=s+"?25h",lt=u=>{let D="";for(let e=0;e<u;e++)D+=pD+(e<u-1?fD():"");return u&&(D+=ED),D},at=s+"K",ct=s+"1K",pD=s+"2K",Ct=s+"J",ft=s+"1J",au=s+"2J",Et=s+"S",pt=s+"T",dt="\x1Bc",Bt=`${au}${s}H`,ht=()=>{if(M||!Je)return!1;let u=ze.release().split("."),D=Number(u[0]),e=Number(u[2]??0);return D<10||D===10&&e<10586},gt=ht()?`${au}${s}0f`:`${au}${s}3J${s}H`,mt=s+"?1049h",bt=s+"?1049l",dD=s+"?2026h",BD=s+"?2026l",At=u=>dD+u+BD,xt=R,Tt=(u,D)=>{let e=W(`${G}8${Q}${Q}${D}${R}`),t=W(`${G}8${Q}${Q}${R}`);return e+u+t},yt=(u,D={})=>{let e=`${G}1337;File=inline=1`;D.width&&(e+=`;width=${D.width}`),D.height&&(e+=`;height=${D.height}`),D.preserveAspectRatio===!1&&(e+=";preserveAspectRatio=0");let t=Buffer.from(u);return W(e+`;size=${t.byteLength}:`+t.toString("base64")+R)},hD={setCwd:(u=wu())=>W(`${G}50;CurrentDir=${u}${R}`),annotation(u,D={}){let e=`${G}1337;`,t=D.x!==void 0,r=D.y!==void 0;if((t||r)&&!(t&&r&&D.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return u=u.replaceAll("|",""),e+=D.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",D.length>0?e+=(t?[u,D.length,D.x,D.y]:[D.length,u]).join("|"):e+=u,W(e+R)}},gD={setCwd:(u=wu())=>W(`${G}9;9;${u}${R}`)},wt=(u=wu())=>hD.setCwd(u)+gD.setCwd(u);n();n();var St=u=>{let D=new Set;do for(let e of Reflect.ownKeys(u))D.add([u,e]);while((u=Reflect.getPrototypeOf(u))&&u!==Object.prototype);return D};function vt(u,{include:D,exclude:e}={}){let t=r=>{let o=F=>typeof F=="string"?r===F:F.test(r);return D?D.some(o):e?!e.some(o):!0};for(let[r,o]of St(u.constructor.prototype)){if(o==="constructor"||!t(o))continue;let F=Reflect.getOwnPropertyDescriptor(r,o);F&&typeof F.value=="function"&&(u[o]=u[o].bind(u))}return u}n();import{PassThrough as bD}from"node:stream";var AD=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],Su={},Ot=u=>{let D=new bD,e=new bD;D.write=r=>{u("stdout",r)},e.write=r=>{u("stderr",r)};let t=new console.Console(D,e);for(let r of AD)Su[r]=console[r],console[r]=t[r];return()=>{for(let r of AD)console[r]=Su[r];Su={}}},an=Ot;n();import zD from"node:process";n();var qD=pu(YD(),1),KD=pu(Wu(),1);import Dr from"node:process";var er=(0,qD.default)(()=>{(0,KD.default)(()=>{Dr.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),HD=er;var fu=!1,P={};P.show=(u=zD.stderr)=>{u.isTTY&&(fu=!1,u.write("\x1B[?25h"))};P.hide=(u=zD.stderr)=>{u.isTTY&&(HD(),fu=!0,u.write("\x1B[?25l"))};P.toggle=(u,D)=>{u!==void 0&&(fu=u),fu?P.show(D):P.hide(D)};var kn=P;n();function tr(u,D=1,e={}){let{indent:t=" ",includeEmptyLines:r=!1}=e;if(typeof u!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof u}\``);if(typeof D!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof D}\``);if(D<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${D}\``);if(typeof t!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof t}\``);if(D===0)return u;let o=r?/^/gm:/^(?!\s*$)/gm;return u.replace(o,t.repeat(D))}n();function Ru(u){return Number.isInteger(u)?K(u)||H(u):!1}n();var rr=new Set([27,155]),or="0".codePointAt(0),nr="9".codePointAt(0),Fr=19,Iu=new Set,Nu=new Map;for(let[u,D]of x.codes)Iu.add(x.color.ansi(D)),Nu.set(x.color.ansi(u),x.color.ansi(D));function ir(u){if(Iu.has(u))return u;if(Nu.has(u))return Nu.get(u);u=u.slice(2),u.includes(";")&&(u=u[0]+"0");let D=x.codes.get(Number.parseInt(u,10));return D?x.color.ansi(D):x.reset.open}function sr(u){for(let D=0;D<u.length;D++){let e=u.codePointAt(D);if(e>=or&&e<=nr)return D}return-1}function lr(u,D){u=u.slice(D,D+Fr);let e=sr(u);if(e!==-1){let t=u.indexOf("m",e);return t===-1&&(t=u.length),u.slice(0,t+1)}}function ar(u,D=Number.POSITIVE_INFINITY){let e=[],t=0,r=0;for(;t<u.length;){let o=u.codePointAt(t);if(rr.has(o)){let l=lr(u,t);if(l){e.push({type:"ansi",code:l,endCode:ir(l)}),t+=l.length;continue}}let F=Ru(o),i=String.fromCodePoint(o);if(e.push({type:"character",value:i,isFullWidth:F}),t+=i.length,r+=F?2:i.length,r>=D)break}return e}function JD(u){let D=[];for(let e of u)e.code===x.reset.open?D=[]:Iu.has(e.code)?D=D.filter(t=>t.endCode!==e.code):(D=D.filter(t=>t.endCode!==e.endCode),D.push(e));return D}function cr(u){return JD(u).map(({endCode:t})=>t).reverse().join("")}function Cr(u,D,e){let t=ar(u,e),r=[],o=0,F="",i=!1;for(let l of t){if(e!==void 0&&o>=e)break;l.type==="ansi"?(r.push(l),i&&(F+=l.code)):(!i&&o>=D&&(i=!0,r=JD(r),F=r.map(({code:E})=>E).join("")),i&&(F+=l.value),o+=l.isFullWidth?2:l.value.length)}return F+=cr(r),F}n();n();var Ar=(u,D=2)=>u.replace(/^\t+/gm,e=>" ".repeat(e.length*D)),re=Ar;var xr=(u,D)=>{let e=[],t=u-D,r=u+D;for(let o=t;o<=r;o++)e.push(o);return e},Tr=(u,D,e={})=>{var t;if(typeof u!="string")throw new TypeError("Source code is missing.");if(!D||D<1)throw new TypeError("Line number must start from `1`.");let r=re(u).split(/\r?\n/);if(!(D>r.length))return xr(D,(t=e.around)!==null&&t!==void 0?t:3).filter(o=>r[o-1]!==void 0).map(o=>({line:o,value:r[o-1]}))},FF=Tr;export{TD as a,wD as b,vu as c,MD as d,He as e,GD as f,Zt as g,mD as h,vt as i,Wu as j,an as k,V as l,Vu as m,O as n,x as o,ve as p,Re as q,Ru as r,Cr as s,tr as t,Er as u,Io as v,kn as w,br as x,FF as y};
@@ -0,0 +1 @@
1
+ import{Da as e}from"./chunk-SBEZBZM7.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var p=class extends e{};export{p as a};
@@ -0,0 +1 @@
1
+ import{b as e}from"./chunk-YZDDTYTU.js";import{r}from"./chunk-LDGAHMS7.js";import{e as c,g as t}from"./chunk-VPRTJUIN.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
@@ -0,0 +1,3 @@
1
+ import{a as K}from"./chunk-KBQ4LGFB.js";import{O as H,va as W,xa as _,ya as Y,z as b}from"./chunk-B2EHO7ZC.js";import{b as L}from"./chunk-4HHXSMD7.js";import{a as X,b as Z}from"./chunk-YZDDTYTU.js";import{a as j}from"./chunk-JUVAGMIH.js";import{A as B,a as k,t as U,w as C,x as T}from"./chunk-BDVAE5MS.js";import{d as z,e as J}from"./chunk-IASVAERO.js";import{d as E,g as Q}from"./chunk-JPGO36XP.js";import{r as pe}from"./chunk-LDGAHMS7.js";import{Fa as M,Gb as $,Ib as l,Qb as g,Ua as F}from"./chunk-GFEAKSGV.js";import{d as G,f as x,i as V,q as A}from"./chunk-IU2ZQ6TE.js";import{e as ce,g as d}from"./chunk-VPRTJUIN.js";d();var y=ce(pe(),1);var R={path:y.Flags.string({description:"The path where you want to run the command. Defaults to the current working directory.",env:"SHOPIFY_FLAG_PATH",parse:async t=>{let e=x(t);return F(e)?M(e)?e:(T({headline:"The path must be a directory, not a file.",body:[`The provided path is not a directory: ${e}`,`Did you mean: ${V(e)}`]}),process.exit(1)):(T({headline:"A path was explicitly provided but doesn't exist.",body:[`Please check the path and try again: ${e}`]}),process.exit(1))},default:async()=>A(),noCacheDefault:!0}),password:y.Flags.string({description:"Password generated from the Theme Access app or an Admin API token.",env:"SHOPIFY_CLI_THEME_TOKEN"}),store:y.Flags.string({char:"s",description:"Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).",env:"SHOPIFY_FLAG_STORE",parse:async t=>b(t)}),environment:y.Flags.string({char:"e",description:"The environment to apply to the current command.",env:"SHOPIFY_FLAG_ENVIRONMENT",multiple:!0})},ee="Wrap the value in double quotes if you're using wildcards.",Se=t=>({only:y.Flags.string({char:"o",multiple:!0,description:`${t.charAt(0).toUpperCase()+t.slice(1)} only the specified files (Multiple flags allowed). ${ee}`,env:"SHOPIFY_FLAG_ONLY"}),ignore:y.Flags.string({char:"x",multiple:!0,description:`Skip ${t}ing the specified files (Multiple flags allowed). ${ee}`,env:"SHOPIFY_FLAG_IGNORE"})});d();d();import{AsyncLocalStorage as he}from"node:async_hooks";var se=new he,te,oe,re,ne;function c(){return te??=new L({projectName:"shopify-cli-theme-conf"}),te}function O(){return oe??=new L({projectName:"shopify-cli-development-theme-config"}),oe}function N(){return re??=new L({projectName:"shopify-cli-repl-theme-config"}),re}function I(){return ne??=new L({projectName:"shopify-cli-theme-store-password"}),ne}function D(t=c()){return se.getStore()?.store??t.get("themeStore")}function ae(t,e=c()){e.set("themeStore",t)}function Ee(t=c()){return g(l`Getting development theme...`),O().get(u(t))}function xe(t,e=c()){g(l`Setting development theme...`),O().set(u(e),t)}function Ae(t=c()){g(l`Removing development theme...`),O().delete(u(t))}function be(t=c()){return g(l`Getting REPL theme...`),N().get(u(t))}function Pe(t,e=c()){g(l`Setting REPL theme to ${t}...`),N().set(u(e),t)}function _e(t=c()){g(l`Removing REPL theme...`),N().delete(u(t))}function Ce(t=c()){let e=u(t);return g(l`Getting storefront password for shop ${e}...`),I().get(e)}function $e(t,e=c()){let o=u(e);g(l`Setting storefront password for shop ${o}...`),I().set(o,t)}function Re(t=c()){let e=u(t);g(l`Removing storefront password for ${e}...`),I().delete(e)}function u(t=c()){let e=D(t);if(!e)throw new Q("Theme store is not set. This indicates an unexpected issue with the CLI. Please report this to the Shopify CLI team.",["It may be possible to recover by running",{command:"shopify theme list --store <store>"},"(setting the store flag to the store you wish to use) and then running the command again."]);return e}async function ie(t,e){return se.run({store:t},e)}function me(t){let e=t.store??D();if(!e)throw W(new E("A store is required",`Specify the store passing ${l`${$.genericShellCommand(`--${R.store.name}=example.myshopify.com`)}`.value} or set the ${l`${$.genericShellCommand(R.store.env)}`.value} environment variable.`));return ae(e),e}d();d();var le="shopify.theme.toml",je=new Intl.DateTimeFormat(void 0,{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),He=["**/.git","**/.vscode","**/.hg","**/.bzr","**/.svn","**/_darcs","**/CVS","**/*.sublime-(project|workspace)","**/.DS_Store","**/.sass-cache","**/Thumbs.db","**/desktop.ini","**/config.yml","**/node_modules/",".prettierrc.json"],We=50;var q=class extends Z{environmentsFilename(){return le}async command(e,o,s=!1,i,r){}async run(e){let o=this.constructor,s=o.multiEnvironmentsFlags,{args:i,flags:r}=await this.parse(o),n="password"in o.flags,h=(Array.isArray(r.environment)?r.environment:[r.environment]).filter(Boolean),p=s!==null&&s.some(a=>Array.isArray(a)?a.includes("store"):a==="store");if(h.length<=1){if(h[0]&&!r.store&&p)throw new E("Please provide a valid environment.");let a=n?await this.createSession(r):void 0,w=this.constructor.name.toLowerCase();if(_(`theme-command:${w}:single-env:authenticated`),r.path&&!F(r.path))throw new E(`Path does not exist: ${r.path}`);try{await this.command(r,a,!1,i)}finally{await this.logAnalyticsData(a)}return}if(s===null){C({body:"This command does not support multiple environments."});return}let{flags:m}=await this.parse(X(o),this.argv);if("path"in m){this.errorOnGlobalPath();return}let S=await this.loadEnvironments(h,r,m),f=await this.validateEnvironments(S,s,n);"force"in o.flags&&!r.force&&!await this.showConfirmation(this.constructor.name,s,f)||await this.runConcurrent(f.valid)}async loadEnvironments(e,o,s){let i=new Map;for(let r of e){let n=await K(r,"shopify.theme.toml",{from:o.path,silent:!0});n?.store&&typeof n.store=="string"&&(n.store=b(n.store)),n?.path&&typeof n.path=="string"&&(n.path=x(n.path)),i.set(r,{flags:{...o,...n,...s,environment:[r]},validationFlags:{...n,...s}})}return i}async validateEnvironments(e,o,s){let i=[],r=[];for(let[n,{flags:h,validationFlags:p}]of e){let m=this.validConfig(p,o,n);if(m!==!0){let S=m.join(", ");r.push({environment:n,reason:`Missing flags: ${S}`});continue}i.push({environment:n,flags:h,requiresAuth:s})}return{valid:i,invalid:r}}async showConfirmation(e,o,s){let n={message:[`Run ${e.toLowerCase()} in the following environments?`],confirmationMessage:"Yes, proceed",cancellationMessage:"Cancel"},h=[...s.valid.map(({environment:p,flags:m})=>{let S=o.map(f=>{let v=Array.isArray(f)?f.find(a=>m[a]):f;if(v==="password")return"password";if(v==="path"&&typeof m.path=="string"){let a=m.path.split(/[/\\]/);if(a.length===1)return`path: ${m.path}`;let w=a[0]===""?`/${a[1]}`:a[0],P=a.at(-1);return`path: ${w}/.../${P}`}return v&&`${v}: ${m[v]}`}).join(", ");return[p,{subdued:S||"No flags required"}]}),...s.invalid.map(({environment:p,reason:m})=>[p,{error:`Skipping | ${m}`}])];return n.infoTable={Environment:h},s.invalid.length>0&&(n.confirmationMessage="Proceed anyway (will skip invalid environments)"),B(n)}async runConcurrent(e){let o=new k,s=e.map(n=>n.flags.store),i=new Set(s),r=s.length===i.size?[e]:this.createSequentialGroups(e);for(let n of r)await U({processes:n.map(({environment:h,flags:p,requiresAuth:m})=>({prefix:h,action:async(S,f,v)=>{try{let a=p.store;await ie(a,async()=>{let w=m?await this.createSession(p):void 0,P=this.constructor.name.toLowerCase();_(`theme-command:${P}:multi-env:authenticated`);try{await this.command(p,w,!0,{},{stdout:S,stderr:f})}finally{await this.logAnalyticsData(w)}})}catch(a){a instanceof Error&&(a.message=`Environment ${h} failed:
2
+
3
+ ${a.message}`,T({body:[a.message]}))}}})),abortSignal:o.signal,showTimestamps:!0,renderOptions:{stdout:process.stderr}})}createSequentialGroups(e){let o=[];return e.forEach(s=>{let i=o.find(r=>!r.some(n=>n.flags.store===s.flags.store));i?i.push(s):o.push([s])}),o}async createSession(e){let o=e.store,s=e.password;return await H(me({store:o}),s)}validConfig(e,o,s){let i=o.filter(r=>Array.isArray(r)?!r.some(n=>e[n]):!e[r]).map(r=>Array.isArray(r)?r.join(" or "):r);return i.length>0?(C({body:[`Missing required flags in environment configuration${s?` for ${s}`:""}:`,{list:{items:i}}]}),i):!0}errorOnGlobalPath(){let e=G(A(),"shopify.theme.toml"),o=F(e);T({body:["Can't use `--path` flag with multiple environments.",...o?["Configure each environment's theme path in your shopify.theme.toml file instead."]:["Run this command from the directory containing shopify.theme.toml.","No shopify.theme.toml found in current directory."]]})}async logAnalyticsData(e){if(!e)return;let o=Y();await z(()=>({store_fqdn_hash:j(e.storeFqdn),cmd_theme_timings:JSON.stringify(o.timings),cmd_theme_errors:JSON.stringify(o.errors),cmd_theme_retries:JSON.stringify(o.retries),cmd_theme_events:JSON.stringify(o.events)})),await J(()=>({store_fqdn:e.storeFqdn}))}};export{D as a,Ee as b,xe as c,Ae as d,be as e,Pe as f,_e as g,Ce as h,$e as i,Re as j,R as k,Se as l,me as m,je as n,He as o,We as p,q};
@@ -0,0 +1 @@
1
+ import{n as R}from"./chunk-B2EHO7ZC.js";import{a as T,b as k}from"./chunk-XNO6DZYP.js";import{f as G}from"./chunk-IASVAERO.js";import{d as l}from"./chunk-JPGO36XP.js";import{Gb as u,Ib as h,Oa as y,Pa as x,Qb as f,ka as $,ua as b,wa as g}from"./chunk-GFEAKSGV.js";import{d,i as w}from"./chunk-IU2ZQ6TE.js";import{g as m}from"./chunk-VPRTJUIN.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};