@shopify/cli 4.0.0 → 4.2.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 (392) hide show
  1. package/README.md +2 -2
  2. package/dist/analytics-CX22YIUZ.js +1 -0
  3. package/dist/analytics-UBWQIQYF.js +1 -0
  4. package/dist/angular-UTTM4Y4S.js +4 -0
  5. package/dist/bootstrap.js +1 -1
  6. package/dist/{chunk-DU4WR4OP.js → chunk-23AMFHXC.js} +1 -1
  7. package/dist/{chunk-LNHLDRC5.js → chunk-2EJCY4CE.js} +1 -1
  8. package/dist/{chunk-YMWHHINU.js → chunk-2KH2S7PI.js} +1 -1
  9. package/dist/chunk-2N4O33VM.js +6 -0
  10. package/dist/{chunk-WZBSLU4Q.js → chunk-2VLMN5QZ.js} +1 -1
  11. package/dist/chunk-2WNODIWJ.js +1 -0
  12. package/dist/chunk-2YXKZWYW.js +1 -0
  13. package/dist/{chunk-GFJ7UV74.js → chunk-3BRUCKZ2.js} +1 -1
  14. package/dist/{chunk-RM5SJJN6.js → chunk-3V63X7WZ.js} +66 -66
  15. package/dist/chunk-3YWUSKWF.js +159 -0
  16. package/dist/chunk-42RMKTCJ.js +8 -0
  17. package/dist/{chunk-V2CNCPIE.js → chunk-4EXYYBQ6.js} +1 -1
  18. package/dist/chunk-4KRT35A2.js +1 -0
  19. package/dist/chunk-4V4DQ6W7.js +836 -0
  20. package/dist/chunk-4Z2WYNTE.js +1 -0
  21. package/dist/chunk-57N2DFIF.js +1 -0
  22. package/dist/chunk-5TIJLYZU.js +3 -0
  23. package/dist/{chunk-GNPS5SBU.js → chunk-6AJZKIZ3.js} +1 -1
  24. package/dist/{chunk-XNO6DZYP.js → chunk-6HZTMQD6.js} +1 -1
  25. package/dist/chunk-6LK6ZP3Q.js +1 -0
  26. package/dist/chunk-6SXOUZ7V.js +1 -0
  27. package/dist/chunk-6TEXPRI2.js +2 -0
  28. package/dist/{chunk-OUOYKNMY.js → chunk-6TORWTD7.js} +1 -1
  29. package/dist/{chunk-IASVAERO.js → chunk-6YAXFS6V.js} +1 -1
  30. package/dist/chunk-6YHJ554P.js +6 -0
  31. package/dist/chunk-6ZIOYXEF.js +3 -0
  32. package/dist/chunk-7BFDUVOG.js +1 -0
  33. package/dist/chunk-7DVOSOEP.js +11 -0
  34. package/dist/chunk-7JESXDF2.js +14 -0
  35. package/dist/chunk-7KJ5TBWG.js +5 -0
  36. package/dist/{chunk-7MUKLZOL.js → chunk-A3VYI4LO.js} +2 -2
  37. package/dist/{chunk-4HHXSMD7.js → chunk-A5SQCM63.js} +2 -2
  38. package/dist/chunk-A6X2IVGT.js +4 -0
  39. package/dist/{chunk-HUZUORYM.js → chunk-AP3RFOPL.js} +10 -10
  40. package/dist/{chunk-3LVGAQB4.js → chunk-ATPFTRCC.js} +1 -1
  41. package/dist/chunk-AWQ5AR2K.js +5 -0
  42. package/dist/chunk-BECEP46I.js +16 -0
  43. package/dist/{chunk-JPGO36XP.js → chunk-BHWEA4V2.js} +1 -1
  44. package/dist/chunk-BPVZ7E63.js +1 -0
  45. package/dist/chunk-C2FFA4O4.js +1 -0
  46. package/dist/chunk-C3LZPAAH.js +3 -0
  47. package/dist/chunk-C6ABJCRG.js +1 -0
  48. package/dist/chunk-CCEA5CUX.js +1 -0
  49. package/dist/chunk-CE6FKJFS.js +1 -0
  50. package/dist/chunk-CW7WJZKR.js +28 -0
  51. package/dist/chunk-D3DDLLNF.js +2 -0
  52. package/dist/chunk-D656BV5Z.js +25 -0
  53. package/dist/chunk-DCBYHVKW.js +1 -0
  54. package/dist/{chunk-RF2DPBA6.js → chunk-DCK2FX6J.js} +1 -1
  55. package/dist/chunk-DERA4K6A.js +32 -0
  56. package/dist/chunk-DNLOSMHL.js +3 -0
  57. package/dist/chunk-E2YBU6D3.js +294 -0
  58. package/dist/{chunk-INEU4XKS.js → chunk-F47MFBKM.js} +1 -1
  59. package/dist/chunk-F6T3UBBL.js +1 -0
  60. package/dist/{chunk-WXVZJJOR.js → chunk-FBVBO5YQ.js} +1 -1
  61. package/dist/chunk-FD5S2O6M.js +7 -0
  62. package/dist/chunk-FFYYJKF7.js +1 -0
  63. package/dist/{chunk-LX3ZOW52.js → chunk-FGVC22EY.js} +1 -1
  64. package/dist/{chunk-NRAFVIU3.js → chunk-FP2NOZSD.js} +1 -1
  65. package/dist/chunk-FQDRVPCY.js +2 -0
  66. package/dist/{chunk-IOLVEXM6.js → chunk-FSTCEWXX.js} +1 -1
  67. package/dist/chunk-FTN7Y6HD.js +7 -0
  68. package/dist/{chunk-52GC6XUT.js → chunk-GVITHCQJ.js} +1 -1
  69. package/dist/chunk-H4W4DFKK.js +1 -0
  70. package/dist/{chunk-72F3YBNA.js → chunk-HD5TYIDZ.js} +1 -1
  71. package/dist/chunk-HHXHOQQP.js +3 -0
  72. package/dist/chunk-HJSYHK4S.js +8 -0
  73. package/dist/chunk-HLMFVORT.js +1 -0
  74. package/dist/chunk-HSYRYSX4.js +3 -0
  75. package/dist/chunk-I3LX25MB.js +1 -0
  76. package/dist/chunk-INFBVFMU.js +4 -0
  77. package/dist/chunk-IOQQUHST.js +18 -0
  78. package/dist/chunk-IVGWFPMA.js +19 -0
  79. package/dist/chunk-IWCPQD7X.js +1382 -0
  80. package/dist/chunk-IWE4RUI7.js +1 -0
  81. package/dist/chunk-IXUVSFW2.js +1 -0
  82. package/dist/chunk-J6VTZEE2.js +15 -0
  83. package/dist/{chunk-MQNYGGAM.js → chunk-K3PGC6DC.js} +1 -1
  84. package/dist/{chunk-MBAFWQSZ.js → chunk-K77WAKOB.js} +1 -1
  85. package/dist/{chunk-UGDBJTLP.js → chunk-K7K6GNF6.js} +1 -1
  86. package/dist/chunk-KFCGMT67.js +1 -0
  87. package/dist/chunk-KLA7AWG6.js +7 -0
  88. package/dist/{chunk-6B53BWJW.js → chunk-KQU6HOJ3.js} +1 -1
  89. package/dist/{chunk-A74GETYC.js → chunk-KU5OPV7U.js} +1 -1
  90. package/dist/chunk-L2VSSINY.js +1 -0
  91. package/dist/chunk-LCCMXY6N.js +1 -0
  92. package/dist/{chunk-GOJ2QHSR.js → chunk-LITB5QQX.js} +1 -1
  93. package/dist/chunk-LKS47US7.js +8 -0
  94. package/dist/{chunk-DJONKJSZ.js → chunk-LQMSF3F7.js} +1 -1
  95. package/dist/chunk-LTWXTDDR.js +5 -0
  96. package/dist/{chunk-D6JARNEH.js → chunk-M2TJICTB.js} +1 -1
  97. package/dist/chunk-M4LOKANA.js +1 -0
  98. package/dist/chunk-M4V2OQAX.js +1 -0
  99. package/dist/chunk-MA52QGHP.js +1 -0
  100. package/dist/chunk-MFLBTJO7.js +1 -0
  101. package/dist/chunk-MGL4YM3S.js +28 -0
  102. package/dist/{chunk-6TZAAS5H.js → chunk-MIO2CV3Q.js} +1 -1
  103. package/dist/{chunk-2APPXD5Z.js → chunk-MKE434RB.js} +1 -1
  104. package/dist/chunk-MZJRNFAU.js +1 -0
  105. package/dist/{chunk-HSK7YMRE.js → chunk-N3YWHJMB.js} +11 -11
  106. package/dist/{chunk-TQYMC7TH.js → chunk-N5ROZKPZ.js} +1 -1
  107. package/dist/chunk-NBYS6YQ2.js +5 -0
  108. package/dist/chunk-NEZEHBT2.js +1 -0
  109. package/dist/chunk-NO5KVFTV.js +22 -0
  110. package/dist/{chunk-3DQIVE24.js → chunk-NP4UFPAX.js} +1 -1
  111. package/dist/chunk-NPM3MFB3.js +7 -0
  112. package/dist/{chunk-JVIKCGDY.js → chunk-NXL6LDJU.js} +1 -1
  113. package/dist/chunk-OA4P6AKS.js +1 -0
  114. package/dist/chunk-OKNBZSGN.js +2 -0
  115. package/dist/chunk-OKOYLEA7.js +278 -0
  116. package/dist/chunk-OLOBQ42K.js +1 -0
  117. package/dist/chunk-OYP7DKPU.js +1 -0
  118. package/dist/{chunk-7UYZQN4V.js → chunk-PBTXPBI6.js} +2 -2
  119. package/dist/chunk-PLQFX5ZP.js +9 -0
  120. package/dist/{chunk-JLBH7RCF.js → chunk-PS25FEBF.js} +1 -1
  121. package/dist/{chunk-OLZHWPZP.js → chunk-PSQFZAF3.js} +1 -1
  122. package/dist/chunk-PUTZFF2Z.js +613 -0
  123. package/dist/chunk-QLQGHMVU.js +15 -0
  124. package/dist/{chunk-XLELNRFF.js → chunk-QTGMS62F.js} +1 -1
  125. package/dist/chunk-R6JNXEB3.js +1 -0
  126. package/dist/chunk-RAH5NW3R.js +1 -0
  127. package/dist/{chunk-R466TU3N.js → chunk-RGNAWKD7.js} +1 -1
  128. package/dist/chunk-RL5BWZ7D.js +15 -0
  129. package/dist/{chunk-Y5JKV2AI.js → chunk-RVMB5LC2.js} +1 -1
  130. package/dist/chunk-SSM346XI.js +5 -0
  131. package/dist/chunk-T5MK7ZSF.js +1 -0
  132. package/dist/{chunk-22PCRFG4.js → chunk-TGACBJIY.js} +1 -1
  133. package/dist/{chunk-KBQ4LGFB.js → chunk-TLSAQ6FG.js} +1 -1
  134. package/dist/chunk-TNQXTZAX.js +32 -0
  135. package/dist/{chunk-ELVFJ7BR.js → chunk-TQGTEVSR.js} +1 -1
  136. package/dist/chunk-TXUTT6UA.js +17 -0
  137. package/dist/chunk-U3ZG675O.js +5 -0
  138. package/dist/chunk-UARVYVLN.js +3 -0
  139. package/dist/chunk-UBKVCI7A.js +3 -0
  140. package/dist/{chunk-SRCQVUMC.js → chunk-UCLSPAVX.js} +1 -1
  141. package/dist/chunk-ULQG3XQS.js +1 -0
  142. package/dist/chunk-UOQ75BL3.js +1 -0
  143. package/dist/{chunk-OXPWCC7I.js → chunk-UOQQNAHX.js} +2 -2
  144. package/dist/chunk-UURFVUAH.js +11 -0
  145. package/dist/chunk-VA5IUGZV.js +2 -0
  146. package/dist/{chunk-YZDDTYTU.js → chunk-VEDZUOVI.js} +3 -3
  147. package/dist/chunk-VICNWPLQ.js +567 -0
  148. package/dist/chunk-VPL2NDH6.js +370 -0
  149. package/dist/chunk-VT77EFRL.js +10 -0
  150. package/dist/chunk-VYXVYOIJ.js +3 -0
  151. package/dist/chunk-WCWNI3ZV.js +283 -0
  152. package/dist/chunk-WNGV4JQS.js +4 -0
  153. package/dist/chunk-WUK5NQSX.js +6 -0
  154. package/dist/chunk-X2TC7S57.js +103 -0
  155. package/dist/chunk-X4CV6TRE.js +1 -0
  156. package/dist/chunk-XDAOLCPN.js +4 -0
  157. package/dist/chunk-XFKCDWXB.js +5 -0
  158. package/dist/chunk-XP6IRAZN.js +1 -0
  159. package/dist/{chunk-JGXWQULI.js → chunk-XX343DDG.js} +1 -1
  160. package/dist/{chunk-Q7ING5F5.js → chunk-XXE7667M.js} +1 -1
  161. package/dist/chunk-YGMVL6NZ.js +6 -0
  162. package/dist/chunk-YJB7P2HC.js +1 -0
  163. package/dist/{chunk-P6XE4MH5.js → chunk-YS6VOQ7I.js} +1 -1
  164. package/dist/chunk-ZZYFG22L.js +26 -0
  165. package/dist/cli/commands/app/app-logs/sources.js +1 -2
  166. package/dist/cli/commands/app/build.js +1 -1
  167. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  168. package/dist/cli/commands/app/bulk/execute.js +1 -9
  169. package/dist/cli/commands/app/bulk/status.js +1 -5
  170. package/dist/cli/commands/app/config/link.js +1 -4
  171. package/dist/cli/commands/app/config/pull.js +1 -1
  172. package/dist/cli/commands/app/config/use.js +1 -1
  173. package/dist/cli/commands/app/config/validate.js +1 -3
  174. package/dist/cli/commands/app/demo/watcher.js +1 -1
  175. package/dist/cli/commands/app/deploy.js +1 -22
  176. package/dist/cli/commands/app/dev/clean.js +1 -5
  177. package/dist/cli/commands/app/dev.js +1 -320
  178. package/dist/cli/commands/app/env/pull.js +1 -11
  179. package/dist/cli/commands/app/env/show.js +1 -1
  180. package/dist/cli/commands/app/execute.js +1 -1
  181. package/dist/cli/commands/app/function/build.js +1 -1
  182. package/dist/cli/commands/app/function/info.js +1 -16
  183. package/dist/cli/commands/app/function/replay.js +1 -5
  184. package/dist/cli/commands/app/function/run.js +1 -1
  185. package/dist/cli/commands/app/function/schema.js +1 -1
  186. package/dist/cli/commands/app/function/typegen.js +1 -1
  187. package/dist/cli/commands/app/generate/extension.js +1 -5
  188. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
  189. package/dist/cli/commands/app/import-extensions.js +1 -1
  190. package/dist/cli/commands/app/info.js +1 -11
  191. package/dist/cli/commands/app/init.js +1 -10
  192. package/dist/cli/commands/app/logs.js +1 -2
  193. package/dist/cli/commands/app/release.js +1 -4
  194. package/dist/cli/commands/app/versions/list.js +1 -1
  195. package/dist/cli/commands/app/webhook/trigger.js +1 -25
  196. package/dist/cli/commands/auth/login.js +1 -1
  197. package/dist/cli/commands/auth/logout.js +1 -1
  198. package/dist/cli/commands/cache/clear.js +1 -1
  199. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  200. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  201. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  202. package/dist/cli/commands/debug/command-flags.js +1 -1
  203. package/dist/cli/commands/docs/generate.d.ts +0 -8
  204. package/dist/cli/commands/docs/generate.js +1 -1
  205. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  206. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  207. package/dist/cli/commands/help.js +1 -1
  208. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  209. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  210. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  211. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  212. package/dist/cli/commands/notifications/generate.js +1 -1
  213. package/dist/cli/commands/notifications/list.js +1 -1
  214. package/dist/cli/commands/organization/list.js +1 -1
  215. package/dist/cli/commands/search.js +1 -1
  216. package/dist/cli/commands/theme/check.js +1 -1
  217. package/dist/cli/commands/theme/console.js +1 -15
  218. package/dist/cli/commands/theme/delete.js +1 -7
  219. package/dist/cli/commands/theme/dev.js +1 -26
  220. package/dist/cli/commands/theme/duplicate.js +1 -32
  221. package/dist/cli/commands/theme/info.js +1 -1
  222. package/dist/cli/commands/theme/init.js +1 -8
  223. package/dist/cli/commands/theme/language-server.js +1 -1
  224. package/dist/cli/commands/theme/list.js +1 -1
  225. package/dist/cli/commands/theme/metafields/pull.js +1 -3
  226. package/dist/cli/commands/theme/open.js +1 -8
  227. package/dist/cli/commands/theme/package.js +1 -7
  228. package/dist/cli/commands/theme/preview.js +1 -1
  229. package/dist/cli/commands/theme/profile.js +1 -3
  230. package/dist/cli/commands/theme/publish.js +1 -7
  231. package/dist/cli/commands/theme/pull.js +1 -3
  232. package/dist/cli/commands/theme/push.js +1 -28
  233. package/dist/cli/commands/theme/rename.js +1 -6
  234. package/dist/cli/commands/theme/share.js +1 -3
  235. package/dist/cli/commands/upgrade.js +1 -1
  236. package/dist/cli/commands/version.js +1 -1
  237. package/dist/command-registry.js +1 -1
  238. package/dist/conf-store-6QNH5BID.js +1 -0
  239. package/dist/configs/all.yml +3 -0
  240. package/dist/configs/recommended.yml +3 -0
  241. package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-TSPWW5YF.js} +1 -1
  242. package/dist/data/filters.json +60 -0
  243. package/dist/data/latest.json +1 -1
  244. package/dist/data/setting.json +29 -9
  245. package/dist/data/shopify_system_translations.json +71 -19
  246. package/dist/data/tags.json +3 -3
  247. package/dist/deprecations-F6JWVV2W.js +1 -0
  248. package/dist/{devtools-OLOT2NY4.js → devtools-HCKYP7DQ.js} +1 -1
  249. package/dist/{devtools-UFRKBFGI.js → devtools-VEZNCV6W.js} +1 -1
  250. package/dist/dist-4BD6KOLR.js +1 -0
  251. package/dist/dist-AUABCVPI.js +1 -0
  252. package/dist/environments-RGLI75HN.js +1 -0
  253. package/dist/error-OZALZZ3U.js +1 -0
  254. package/dist/error-handler-V7LSEXHM.js +1 -0
  255. package/dist/{estree-KI7NUW53.js → estree-BYYJYS3A.js} +1 -1
  256. package/dist/fs-YMUQ6JLE.js +1 -0
  257. package/dist/hooks/app-init.js +1 -1
  258. package/dist/hooks/did-you-mean.js +1 -1
  259. package/dist/hooks/hydrogen-init.js +1 -1
  260. package/dist/hooks/plugin-plugins.js +1 -1
  261. package/dist/hooks/postrun.js +1 -1
  262. package/dist/hooks/prerun.js +1 -1
  263. package/dist/hooks/public-metadata.js +1 -1
  264. package/dist/hooks/sensitive-metadata.js +1 -1
  265. package/dist/hooks/tunnel-provider.js +1 -1
  266. package/dist/hooks/tunnel-start.js +1 -1
  267. package/dist/html-HETICZ2F.js +25 -0
  268. package/dist/index.js +9 -1182
  269. package/dist/is-global-BLIZ57HQ.js +1 -0
  270. package/dist/is-wsl-TN2CXYI7.js +1 -0
  271. package/dist/{latest-version-EFWBOTWM.js → latest-version-6OAYLOBL.js} +1 -1
  272. package/dist/{lib-QB6I6CTC.js → lib-AK5EOIKR.js} +1 -1
  273. package/dist/{lib-C3VO2BQW.js → lib-LVUMLZ4H.js} +1 -1
  274. package/dist/lib-ME6554NA.js +1 -0
  275. package/dist/local-GPDAXHE6.js +1 -0
  276. package/dist/local-storage-P66KJG6I.js +1 -0
  277. package/dist/{markdown-PLKL4IZK.js → markdown-5TVCXM53.js} +1 -1
  278. package/dist/{metadata-UDMOTRS7.js → metadata-TRH25EHU.js} +1 -1
  279. package/dist/{morph-EMYAITFM.js → morph-I35VYPBH.js} +4 -4
  280. package/dist/node-package-manager-GO4ZRTKQ.js +1 -0
  281. package/dist/notifications-system-HM6JZ6WJ.js +1 -0
  282. package/dist/{npa-ICFSA3NL.js → npa-VNALV7XY.js} +1 -1
  283. package/dist/output-7IYOMPSA.js +1 -0
  284. package/dist/{postcss-3FJQPJI2.js → postcss-IIK6CGAW.js} +1 -1
  285. package/dist/{prettier-NVRHEAFO.js → prettier-ZSBNNQTK.js} +1 -1
  286. package/dist/system-X5C4EQQH.js +1 -0
  287. package/dist/tsconfig.tsbuildinfo +1 -1
  288. package/dist/ui-H62CMRLG.js +1 -0
  289. package/dist/upgrade-EEOPH464.js +1 -0
  290. package/dist/version-76NBQR4K.js +1 -0
  291. package/dist/version-IGSEISUA.js +1 -0
  292. package/dist/{workerd-L2EJKIAQ.js → workerd-ST6XJKUN.js} +1 -1
  293. package/oclif.manifest.json +142 -7
  294. package/package.json +14 -11
  295. package/dist/analytics-6IHHYAV6.js +0 -1
  296. package/dist/analytics-KKVP5DT3.js +0 -1
  297. package/dist/angular-VRDO2DBE.js +0 -4
  298. package/dist/chunk-26D72ZNV.js +0 -1
  299. package/dist/chunk-2I4PRX2I.js +0 -1
  300. package/dist/chunk-2VQJQ36C.js +0 -103
  301. package/dist/chunk-323UTVMM.js +0 -1
  302. package/dist/chunk-3F6NZK7S.js +0 -2
  303. package/dist/chunk-4G7J6HIV.js +0 -1
  304. package/dist/chunk-66RJ5T7A.js +0 -102
  305. package/dist/chunk-6BMMB2UO.js +0 -1
  306. package/dist/chunk-6HBRBQAN.js +0 -6
  307. package/dist/chunk-74HYYXXE.js +0 -17
  308. package/dist/chunk-7BGM2GAH.js +0 -1
  309. package/dist/chunk-AIV5RI3X.js +0 -1
  310. package/dist/chunk-AKML26N3.js +0 -7
  311. package/dist/chunk-ALKTLKQ6.js +0 -5
  312. package/dist/chunk-B2EHO7ZC.js +0 -847
  313. package/dist/chunk-B2IVY4V5.js +0 -1
  314. package/dist/chunk-BDVAE5MS.js +0 -28
  315. package/dist/chunk-CERXUPGC.js +0 -14
  316. package/dist/chunk-D3TSJA5S.js +0 -1
  317. package/dist/chunk-DFMQWJQ3.js +0 -3
  318. package/dist/chunk-DJQVNH7P.js +0 -567
  319. package/dist/chunk-ELYP4KFP.js +0 -8
  320. package/dist/chunk-FFQ5EWII.js +0 -294
  321. package/dist/chunk-FUOIGXI4.js +0 -1
  322. package/dist/chunk-GD7FWXJ5.js +0 -2
  323. package/dist/chunk-GFEAKSGV.js +0 -374
  324. package/dist/chunk-IIIVWD4R.js +0 -1
  325. package/dist/chunk-IX5ICOBV.js +0 -7
  326. package/dist/chunk-J3KVONB3.js +0 -6
  327. package/dist/chunk-JHPRFW5B.js +0 -19
  328. package/dist/chunk-K2WUCOQJ.js +0 -32
  329. package/dist/chunk-K5YV6UVF.js +0 -4
  330. package/dist/chunk-KGXQS7LS.js +0 -1
  331. package/dist/chunk-KL5Z3T6L.js +0 -1
  332. package/dist/chunk-KNVM7N3U.js +0 -1
  333. package/dist/chunk-KWJ562F2.js +0 -12
  334. package/dist/chunk-LALIKZPS.js +0 -5
  335. package/dist/chunk-LAZJ47DZ.js +0 -6
  336. package/dist/chunk-LDGAHMS7.js +0 -159
  337. package/dist/chunk-LW7U753G.js +0 -1
  338. package/dist/chunk-LXFJDCNG.js +0 -1
  339. package/dist/chunk-N5YIPQ6J.js +0 -1
  340. package/dist/chunk-N7RBSKYT.js +0 -1
  341. package/dist/chunk-NF2ABOOU.js +0 -1
  342. package/dist/chunk-ODNGDO4H.js +0 -50
  343. package/dist/chunk-OHY4ZL3U.js +0 -2
  344. package/dist/chunk-P5VVOLGV.js +0 -1
  345. package/dist/chunk-P7R7FBY2.js +0 -3
  346. package/dist/chunk-QRRNOVJ3.js +0 -1
  347. package/dist/chunk-RFG5RMPL.js +0 -1
  348. package/dist/chunk-RVNMVBPM.js +0 -1
  349. package/dist/chunk-SBEZBZM7.js +0 -144
  350. package/dist/chunk-SGQ6D3LU.js +0 -15
  351. package/dist/chunk-TFSBQ4RY.js +0 -5
  352. package/dist/chunk-UGXYQ23Y.js +0 -1411
  353. package/dist/chunk-VS3T5YOG.js +0 -264
  354. package/dist/chunk-VWYM4OWK.js +0 -1
  355. package/dist/chunk-VY6SNDKW.js +0 -3
  356. package/dist/chunk-WFXRSKRK.js +0 -1
  357. package/dist/chunk-XBXMPFXM.js +0 -1
  358. package/dist/chunk-YC6G4MHD.js +0 -3
  359. package/dist/chunk-YI232QLS.js +0 -1
  360. package/dist/chunk-ZTMSBSYD.js +0 -1
  361. package/dist/chunk-ZV6NCNI4.js +0 -586
  362. package/dist/chunk-ZVJVDCIM.js +0 -1
  363. package/dist/conf-store-U5ZITKJN.js +0 -1
  364. package/dist/deprecations-TU5UQJVV.js +0 -1
  365. package/dist/dist-2Z5TND4U.js +0 -1
  366. package/dist/dist-GYHFDHKP.js +0 -1
  367. package/dist/environments-Z5PR7DSI.js +0 -1
  368. package/dist/error-IJGNYKZ3.js +0 -1
  369. package/dist/error-handler-WSCGNS2P.js +0 -1
  370. package/dist/fs-5BDEA2KD.js +0 -1
  371. package/dist/html-VSSXOZOQ.js +0 -25
  372. package/dist/is-global-V4ZRHQG2.js +0 -1
  373. package/dist/is-wsl-FVUIXDOK.js +0 -1
  374. package/dist/lib-5L7UKDEK.js +0 -1
  375. package/dist/local-6QPX4GCJ.js +0 -1
  376. package/dist/local-storage-JLXBZVWO.js +0 -1
  377. package/dist/node-package-manager-HAFRYGUM.js +0 -1
  378. package/dist/notifications-system-MP7WDOCS.js +0 -1
  379. package/dist/output-YGMHXEIS.js +0 -1
  380. package/dist/system-KLXD4FXF.js +0 -1
  381. package/dist/ui-GHG3UGB3.js +0 -1
  382. package/dist/upgrade-OPZGPM5J.js +0 -1
  383. package/dist/version-D5PJZIRW.js +0 -1
  384. package/dist/version-KRQBMYCH.js +0 -1
  385. /package/dist/{acorn-LOOAJL3S.js → acorn-QBS5IYTX.js} +0 -0
  386. /package/dist/{babel-URCL33XX.js → babel-JS32NLHY.js} +0 -0
  387. /package/dist/{flow-MLHT7MTJ.js → flow-M3Q2HPQT.js} +0 -0
  388. /package/dist/{glimmer-HAJ4HQCW.js → glimmer-3DEJJGOJ.js} +0 -0
  389. /package/dist/{graphql-F7IHGXDT.js → graphql-A4HHE3MB.js} +0 -0
  390. /package/dist/{meriyah-AYZQ3BGY.js → meriyah-23OZNYWC.js} +0 -0
  391. /package/dist/{typescript-ODJ335NU.js → typescript-YKZ232QT.js} +0 -0
  392. /package/dist/{yaml-BIHS2GQW.js → yaml-SJKIH3VD.js} +0 -0
@@ -0,0 +1 @@
1
+ import{A,B,C,D,E,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-WUK5NQSX.js";import"./chunk-LITB5QQX.js";import"./chunk-A5SQCM63.js";import"./chunk-MGL4YM3S.js";import"./chunk-YS6VOQ7I.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-6YAXFS6V.js";import"./chunk-BHWEA4V2.js";import"./chunk-PD5ZHJWI.js";import"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-4EXYYBQ6.js";import"./chunk-VPL2NDH6.js";import"./chunk-7JESXDF2.js";import"./chunk-5Y7GIF2W.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{k as FindUpAndReadPackageJsonNotFoundError,j as PackageJsonNotFoundError,i as UnknownPackageManagerError,z as addNPMDependencies,y as addNPMDependenciesIfNeeded,A as addNPMDependenciesWithoutVersionIfNeeded,C as addResolutionOrOverride,d as bunLockfile,v as checkForCachedNewVersion,u as checkForNewVersion,B as findUpAndReadPackageJson,s as getDependencies,m as getPackageManager,q as getPackageName,r as getPackageVersion,E as inferPackageManager,o as installNPMDependenciesRecursively,p as installNodeModules,f as lockfiles,g as lockfilesByManager,b as npmLockfile,h as packageManager,n as packageManagerBinaryCommandForDirectory,l as packageManagerFromUserAgent,c as pnpmLockfile,e as pnpmWorkspaceFile,x as readAndParsePackageJson,t as usesWorkspaces,w as versionSatisfies,D as writePackageJSON,a as yarnLockfile};
@@ -0,0 +1 @@
1
+ import{a,b,c,d,e,f}from"./chunk-QTGMS62F.js";import"./chunk-4V4DQ6W7.js";import"./chunk-4LNCYIS3.js";import"./chunk-WUK5NQSX.js";import"./chunk-PRKBO42R.js";import"./chunk-LITB5QQX.js";import"./chunk-YJB7P2HC.js";import"./chunk-6HZTMQD6.js";import"./chunk-3TNEIDOD.js";import"./chunk-A5SQCM63.js";import"./chunk-MOA33ZFO.js";import"./chunk-JUVAGMIH.js";import"./chunk-MGL4YM3S.js";import"./chunk-YS6VOQ7I.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-6YAXFS6V.js";import"./chunk-BHWEA4V2.js";import"./chunk-PD5ZHJWI.js";import"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-4EXYYBQ6.js";import"./chunk-VPL2NDH6.js";import"./chunk-7JESXDF2.js";import"./chunk-5Y7GIF2W.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{c as fetchNotifications,d as fetchNotificationsInBackground,e as filterNotifications,b as getNotifications,a as showNotificationsIfNeeded,f as stringifyFilters};
@@ -1 +1 @@
1
- import{a as At}from"./chunk-75VPUOC5.js";import{a as vt}from"./chunk-HZA6IAA4.js";import{a as D,c as F,g as y}from"./chunk-VPRTJUIN.js";var st=F(N=>{"use strict";y();Object.defineProperty(N,"__esModule",{value:!0});N.LRUCache=void 0;var T=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,k=typeof process=="object"&&process?process:{},et=(e,t,i,s)=>{typeof k.emitWarning=="function"?k.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)},j=globalThis.AbortController,Q=globalThis.AbortSignal;if(typeof j>"u"){Q=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},j=class{constructor(){t()}signal=new Q;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let e=k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,et("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Et=e=>!tt.has(e),_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),it=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},M=class e{heap;length;static#n=!1;static create(t){let i=it(t);if(!i)return[];e.#n=!0;let s=new e(t,i);return e.#n=!1,s}constructor(t,i){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},q=class e{#n;#l;#e;#g;#x;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#w;#r;#s;#t;#f;#p;#c;#h;#b;#a;#S;#$;#d;#y;#_;#u;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#d,sizes:t.#S,keyMap:t.#r,keyList:t.#s,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#c},get tail(){return t.#h},free:t.#b,isBackgroundFetch:i=>t.#i(i),backgroundFetch:(i,s,n,r)=>t.#W(i,s,n,r),moveToTail:i=>t.#F(i),indexes:i=>t.#v(i),rindexes:i=>t.#A(i),isStale:i=>t.#m(i)}}get max(){return this.#n}get maxSize(){return this.#l}get calculatedSize(){return this.#w}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:h,dispose:f,disposeAfter:w,noDisposeOnSet:p,noUpdateTTL:m,maxSize:d=0,maxEntrySize:A=0,sizeCalculation:l,fetchMethod:S,memoMethod:c,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:W}=t;if(i!==0&&!_(i))throw new TypeError("max option must be a nonnegative integer");let O=i?it(i):Array;if(!O)throw new Error("invalid max value: "+i);if(this.#n=i,this.#l=d,this.maxEntrySize=A||this.#l,this.sizeCalculation=l,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=c,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=S,this.#_=!!S,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#t=new Array(i).fill(void 0),this.#f=new O(i),this.#p=new O(i),this.#c=0,this.#h=0,this.#b=M.create(i),this.#o=0,this.#w=0,typeof f=="function"&&(this.#e=f),typeof w=="function"?(this.#g=w,this.#a=[]):(this.#g=void 0,this.#a=void 0),this.#y=!!this.#e,this.#u=!!this.#g,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(this.#l!==0&&!_(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=_(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#n===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#l){let P="LRU_CACHE_UNBOUNDED";Et(P)&&(tt.add(P),et("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,e))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#D(){let t=new z(this.#n),i=new z(this.#n);this.#d=t,this.#$=i,this.#L=(r,o,a=T.now())=>{if(i[r]=o!==0?a:0,t[r]=o,o!==0&&this.ttlAutopurge){let h=setTimeout(()=>{this.#m(r)&&this.#E(this.#s[r],"expire")},o+1);h.unref&&h.unref()}},this.#R=r=>{i[r]=t[r]!==0?T.now():0},this.#O=(r,o)=>{if(t[o]){let a=t[o],h=i[o];if(!a||!h)return;r.ttl=a,r.start=h,r.now=s||n();let f=r.now-h;r.remainingTTL=a-f}};let s=0,n=()=>{let r=T.now();if(this.ttlResolution>0){s=r;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#r.get(r);if(o===void 0)return 0;let a=t[o],h=i[o];if(!a||!h)return 1/0;let f=(s||n())-h;return a-f},this.#m=r=>{let o=i[r],a=t[r];return!!a&&!!o&&(s||n())-o>a}}#R=()=>{};#O=()=>{};#L=()=>{};#m=()=>!1;#H(){let t=new z(this.#n);this.#w=0,this.#S=t,this.#C=i=>{this.#w-=t[i],t[i]=0},this.#I=(i,s,n,r)=>{if(this.#i(s))return 0;if(!_(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(s,i),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#z=(i,s,n)=>{if(t[i]=s,this.#l){let r=this.#l-t[i];for(;this.#w>r;)this.#U(!0)}this.#w+=t[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#w)}}#C=t=>{};#z=(t,i,s)=>{};#I=(t,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#c));)i=this.#p[i]}*#A({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#c;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#h));)i=this.#f[i]}#P(t){return t!==void 0&&this.#r.get(this.#s[t])===t}*entries(){for(let t of this.#v())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*rentries(){for(let t of this.#A())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*keys(){for(let t of this.#v()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*rkeys(){for(let t of this.#A()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*values(){for(let t of this.#v())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#A())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,i={}){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;if(r!==void 0&&t(r,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(t,i=this){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}rforEach(t,i=this){for(let s of this.#A()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}purgeStale(){let t=!1;for(let i of this.#A({allowStale:!0}))this.#m(i)&&(this.#E(this.#s[i],"expire"),t=!0);return t}info(t){let i=this.#r.get(t);if(i===void 0)return;let s=this.#t[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let r={value:n};if(this.#d&&this.#$){let o=this.#d[i],a=this.#$[i];if(o&&a){let h=o-(T.now()-a);r.ttl=h,r.start=Date.now()}}return this.#S&&(r.size=this.#S[i]),r}dump(){let t=[];for(let i of this.#v({allowStale:!0})){let s=this.#s[i],n=this.#t[i],r=this.#i(n)?n.__staleWhileFetching:n;if(r===void 0||s===void 0)continue;let o={value:r};if(this.#d&&this.#$){o.ttl=this.#d[i];let a=T.now()-this.#$[i];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[i]),t.unshift([s,o])}return t}load(t){this.clear();for(let[i,s]of t){if(s.start){let n=Date.now()-s.start;s.start=T.now()-n}this.set(i,s.value,s)}}set(t,i,s={}){if(i===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=s,{noUpdateTTL:f=this.noUpdateTTL}=s,w=this.#I(t,i,s.size||0,a);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let p=this.#o===0?void 0:this.#r.get(t);if(p===void 0)p=this.#o===0?this.#h:this.#b.length!==0?this.#b.pop():this.#o===this.#n?this.#U(!1):this.#o,this.#s[p]=t,this.#t[p]=i,this.#r.set(t,p),this.#f[this.#h]=p,this.#p[p]=this.#h,this.#h=p,this.#o++,this.#z(p,w,h),h&&(h.set="add"),f=!1;else{this.#F(p);let m=this.#t[p];if(i!==m){if(this.#_&&this.#i(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=m;d!==void 0&&!o&&(this.#y&&this.#e?.(d,t,"set"),this.#u&&this.#a?.push([d,t,"set"]))}else o||(this.#y&&this.#e?.(m,t,"set"),this.#u&&this.#a?.push([m,t,"set"]));if(this.#C(p),this.#z(p,w,h),this.#t[p]=i,h){h.set="replace";let d=m&&this.#i(m)?m.__staleWhileFetching:m;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update")}if(n!==0&&!this.#d&&this.#D(),this.#d&&(f||this.#L(p,n,r),h&&this.#O(h,p)),!o&&this.#u&&this.#a){let m=this.#a,d;for(;d=m?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#c];if(this.#U(!0),this.#i(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#a){let t=this.#a,i;for(;i=t?.shift();)this.#g?.(...i)}}}#U(t){let i=this.#c,s=this.#s[i],n=this.#t[i];return this.#_&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(n,s,"evict"),this.#u&&this.#a?.push([n,s,"evict"])),this.#C(i),t&&(this.#s[i]=void 0,this.#t[i]=void 0,this.#b.push(i)),this.#o===1?(this.#c=this.#h=0,this.#b.length=0):this.#c=this.#f[i],this.#r.delete(s),this.#o--,i}has(t,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,r=this.#r.get(t);if(r!==void 0){let o=this.#t[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#m(r))n&&(n.has="stale",this.#O(n,r));else return s&&this.#R(r),n&&(n.has="hit",this.#O(n,r)),!0}else n&&(n.has="miss");return!1}peek(t,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(t);if(n===void 0||!s&&this.#m(n))return;let r=this.#t[n];return this.#i(r)?r.__staleWhileFetching:r}#W(t,i,s,n){let r=i===void 0?void 0:this.#t[i];if(this.#i(r))return r;let o=new j,{signal:a}=s;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let h={signal:o.signal,options:s,context:n},f=(l,S=!1)=>{let{aborted:c}=o.signal,$=s.ignoreFetchAbort&&l!==void 0;if(s.status&&(c&&!S?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,$&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),c&&!$&&!S)return p(o.signal.reason);let E=d;return this.#t[i]===d&&(l===void 0?E.__staleWhileFetching?this.#t[i]=E.__staleWhileFetching:this.#E(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,l,h.options))),l},w=l=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=l),p(l)),p=l=>{let{aborted:S}=o.signal,c=S&&s.allowStaleOnFetchAbort,$=c||s.allowStaleOnFetchRejection,E=$||s.noDeleteOnFetchRejection,b=d;if(this.#t[i]===d&&(!E||b.__staleWhileFetching===void 0?this.#E(t,"fetch"):c||(this.#t[i]=b.__staleWhileFetching)),$)return s.status&&b.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw l},m=(l,S)=>{let c=this.#x?.(t,r,h);c&&c instanceof Promise&&c.then($=>l($===void 0?void 0:$),S),o.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(l(void 0),s.allowStaleOnFetchAbort&&(l=$=>f($,!0)))})};s.status&&(s.status.fetchDispatched=!0);let d=new Promise(m).then(f,w),A=Object.assign(d,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(t,A,{...h.options,status:void 0}),i=this.#r.get(t)):this.#t[i]=A,A}#i(t){if(!this.#_)return!1;let i=t;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof j}async fetch(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:l,forceRefresh:S=!1,status:c,signal:$}=i;if(!this.#_)return c&&(c.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:c});let E={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:f,noUpdateTTL:w,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:A,ignoreFetchAbort:d,status:c,signal:$},b=this.#r.get(t);if(b===void 0){c&&(c.fetch="miss");let v=this.#W(t,b,E,l);return v.__returned=v}else{let v=this.#t[b];if(this.#i(v)){let Z=s&&v.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",Z&&(c.returnedStale=!0)),Z?v.__staleWhileFetching:v.__returned=v}let W=this.#m(b);if(!S&&!W)return c&&(c.fetch="hit"),this.#F(b),n&&this.#R(b),c&&this.#O(c,b),v;let O=this.#W(t,b,E,l),G=O.__staleWhileFetching!==void 0&&s;return c&&(c.fetch=W?"stale":"refresh",G&&W&&(c.returnedStale=!0)),G?O.__staleWhileFetching:O.__returned=O}}async forceFetch(t,i={}){let s=await this.fetch(t,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,i={}){let s=this.#T;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...o}=i,a=this.get(t,o);if(!r&&a!==void 0)return a;let h=s(t,a,{options:o,context:n});return this.set(t,h,o),h}get(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=i,a=this.#r.get(t);if(a!==void 0){let h=this.#t[a],f=this.#i(h);return o&&this.#O(o,a),this.#m(a)?(o&&(o.get="stale"),f?(o&&s&&h.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?h.__staleWhileFetching:void 0):(r||this.#E(t,"expire"),o&&s&&(o.returnedStale=!0),s?h:void 0)):(o&&(o.get="hit"),f?h.__staleWhileFetching:(this.#F(a),n&&this.#R(a),h))}else o&&(o.get="miss")}#j(t,i){this.#p[i]=t,this.#f[t]=i}#F(t){t!==this.#h&&(t===this.#c?this.#c=this.#f[t]:this.#j(this.#p[t],this.#f[t]),this.#j(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,i){let s=!1;if(this.#o!==0){let n=this.#r.get(t);if(n!==void 0)if(s=!0,this.#o===1)this.#N(i);else{this.#C(n);let r=this.#t[n];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(r,t,i),this.#u&&this.#a?.push([r,t,i])),this.#r.delete(t),this.#s[n]=void 0,this.#t[n]=void 0,n===this.#h)this.#h=this.#p[n];else if(n===this.#c)this.#c=this.#f[n];else{let o=this.#p[n];this.#f[o]=this.#f[n];let a=this.#f[n];this.#p[a]=this.#p[n]}this.#o--,this.#b.push(n)}}if(this.#u&&this.#a?.length){let n=this.#a,r;for(;r=n?.shift();)this.#g?.(...r)}return s}clear(){return this.#N("delete")}#N(t){for(let i of this.#A({allowStale:!0})){let s=this.#t[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#y&&this.#e?.(s,n,t),this.#u&&this.#a?.push([s,n,t])}}if(this.#r.clear(),this.#t.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$&&(this.#d.fill(0),this.#$.fill(0)),this.#S&&this.#S.fill(0),this.#c=0,this.#h=0,this.#b.length=0,this.#w=0,this.#o=0,this.#u&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#g?.(...s)}}};N.LRUCache=q});var ot=F((ee,rt)=>{"use strict";y();var u=(...e)=>e.every(t=>t)?e.join(""):"",g=e=>e?encodeURIComponent(e):"",nt=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ot={sshtemplate:({domain:e,user:t,project:i,committish:s})=>`git@${e}:${t}/${i}.git${u("#",s)}`,sshurltemplate:({domain:e,user:t,project:i,committish:s})=>`git+ssh://git@${e}/${t}/${i}.git${u("#",s)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n,path:r})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r)}`,browsetemplate:({domain:e,user:t,project:i,committish:s,treepath:n})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s))}`,browsetreetemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:i,committish:s,blobpath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:i,treepath:s,committish:n})=>`https://${e}/${t}/${i}${u("/",s,"/",g(n))}#readme`,httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/raw/${g(s||"HEAD")}/${n}`,shortcuttemplate:({type:e,user:t,project:i,committish:s})=>`${e}:${t}/${i}${u("#",s)}`,pathtemplate:({user:e,project:t,committish:i})=>`${e}/${t}${u("#",i)}`,bugstemplate:({domain:e,user:t,project:i})=>`https://${e}/${t}/${i}/issues`,hashformat:nt},R={};R.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:i,committish:s,path:n})=>`https://${u(e,"@")}raw.githubusercontent.com/${t}/${i}/${g(s||"HEAD")}/${n}`,gittemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://codeload.${e}/${t}/${i}/tar.gz/${g(s||"HEAD")}`,extract:e=>{let[,t,i,s,n]=e.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=e.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:n}}};R.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,editpath:o})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r,o)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/get/${g(s||"HEAD")}.tar.gz`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};R.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/repository/archive.tar.gz?ref=${g(s||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let i=t.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:e.hash.slice(1)}}};R.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:i})=>`git@${e}:${t}.git${u("#",i)}`,sshurltemplate:({domain:e,project:t,committish:i})=>`git+ssh://git@${e}/${t}.git${u("#",i)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n})=>`https://${e}/${t}/${i}${u("/",g(s))}/${n}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,browsetreetemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,browseblobtemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,httpstemplate:({domain:e,project:t,committish:i})=>`git+https://${e}/${t}.git${u("#",i)}`,filetemplate:({user:e,project:t,committish:i,path:s})=>`https://gist.githubusercontent.com/${e}/${t}/raw${u("/",g(i))}/${s}`,shortcuttemplate:({type:e,project:t,committish:i})=>`${e}:${t}${u("#",i)}`,pathtemplate:({project:e,committish:t})=>`${e}${u("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:i})=>`git://${e}/${t}.git${u("#",i)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${g(t||"HEAD")}`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(s!=="raw"){if(!i){if(!t)return;i=t,t=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:t,project:i,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+nt(e)}};R.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/blob/${g(s)||"HEAD"}/${n}`,httpstemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}.git${u("#",s)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/archive/${g(s)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(R))R[e]=Object.assign({},Ot,t);rt.exports=R});var K=F((se,at)=>{y();var _t=D("url"),V=(e,t,i)=>{let s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},ht=e=>{try{return new _t.URL(e)}catch{}},Rt=(e,t)=>{let i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;let n=e.indexOf("@");return n>-1?n>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`},Ct=e=>{let t=V(e,"@","#"),i=V(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),V(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};at.exports=(e,t)=>{let i=t?Rt(e,t):e;return ht(i)||ht(Ct(i))}});var ct=F((re,lt)=>{"use strict";y();var Ft=K(),xt=e=>{let t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),n=e.indexOf(":"),r=/\s/.exec(e),o=e.indexOf("@"),a=!r||t>-1&&r.index>t,h=o===-1||t>-1&&o>t,f=n===-1||t>-1&&n>t,w=s===-1||t>-1&&s>t,p=i>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&m&&d&&h&&f&&w};lt.exports=(e,t,{gitHosts:i,protocols:s})=>{if(!e)return;let n=xt(e)?`github:${e}`:e,r=Ft(n,s);if(!r)return;let o=i.byShortcut[r.protocol],a=i.byDomain[r.hostname.startsWith("www.")?r.hostname.slice(4):r.hostname],h=o||a;if(!h)return;let f=i[o||a],w=null;s[r.protocol]?.auth&&(r.username||r.password)&&(w=`${r.username}${r.password?":"+r.password:""}`);let p=null,m=null,d=null,A=null;try{if(o){let l=r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname,S=l.indexOf("@");S>-1&&(l=l.slice(S+1));let c=l.lastIndexOf("/");c>-1?(m=decodeURIComponent(l.slice(0,c)),m||(m=null),d=decodeURIComponent(l.slice(c+1))):d=decodeURIComponent(l),d.endsWith(".git")&&(d=d.slice(0,-4)),r.hash&&(p=decodeURIComponent(r.hash.slice(1))),A="shortcut"}else{if(!f.protocols.includes(r.protocol))return;let l=f.extract(r);if(!l)return;m=l.user&&decodeURIComponent(l.user),d=decodeURIComponent(l.project),p=decodeURIComponent(l.committish),A=s[r.protocol]?.name||r.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[h,m,w,d,p,A,t]}});var ut=F((he,ft)=>{"use strict";y();var{LRUCache:Tt}=st(),zt=ot(),Ut=ct(),Wt=K(),Y=new Tt({max:1e3}),H=class e{constructor(t,i,s,n,r,o,a={}){Object.assign(this,e.#n[t],{type:t,user:i,auth:s,project:n,committish:r,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#l={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,i){e.#n[t]=i,e.#n.byDomain[i.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#l[`${t}:`]={name:t}}static fromUrl(t,i){if(typeof t!="string")return;let s=t+JSON.stringify(i||{});if(!Y.has(s)){let n=Ut(t,i,{gitHosts:e.#n,protocols:e.#l});Y.set(s,n?new e(...n):void 0)}return Y.get(s)}static parseUrl(t){return Wt(t)}#e(t,i){if(typeof t!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=t(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...i){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof i[0]!="string"?this.#e(this.browsetreetemplate,{...i[0],path:t}):this.#e(this.browsetreetemplate,{...i[1],fragment:i[0],path:t})}browseFile(t,...i){return typeof i[0]!="string"?this.#e(this.browseblobtemplate,{...i[0],path:t}):this.#e(this.browseblobtemplate,{...i[1],fragment:i[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,i){return this.#e(this.filetemplate,{...i,path:t})}edit(t,i){return this.#e(this.edittemplate,{...i,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(zt))H.addHost(e,t);ft.exports=H});var dt=F((le,pt)=>{y();var Dt=Symbol("proc-log.meta");pt.exports={META:Dt,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function i(){return process.emit("time","end",e)}if(typeof t=="function"){let s=t();return s&&s.finally?s.finally(i):(i(),s)}return i},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let i=e();return i&&i.finally?i.finally(t):(t(),i)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,i,s=new Promise((n,r)=>{t=n,i=r});return process.emit("input","read",t,i,...e),s}}}});var Jt=F((fe,I)=>{y();I.exports=L;I.exports.resolve=yt;I.exports.toPurl=Ht;I.exports.Result=U;var{URL:x}=D("url"),Lt=ut(),mt=vt(),C=global.FAKE_WINDOWS?D("path").win32:D("path"),bt=At(),{homedir:It}=D("os"),{log:Pt}=dt(),J=process.platform==="win32"||global.FAKE_WINDOWS,St=J?/\\|[/]/:/[/]/,$t=/^(?:git[+])?[a-z]+:/i,jt=/^[^@]+@[^:.]+\.[^:]+:.+$/i,X=/[.](?:tgz|tar.gz|tar)$/i;function L(e,t){let i,s;if(typeof e=="object")return e instanceof U&&(!t||t===e.where)?e:e.name&&e.rawSpec?L.resolve(e.name,e.rawSpec,t||e.where):L(e.raw,t||e.where);let n=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),r=n>0?e.slice(0,n):e;return $t.test(e)?s=e:jt.test(e)?s=`git+ssh://${e}`:r[0]!=="@"&&(St.test(r)||X.test(r))?s=e:n>0?(i=r,s=e.slice(n+1)||"*"):bt(e).validForOldPackages?(i=e,s="*"):s=e,yt(i,s,t,e)}var Nt=J?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function yt(e,t,i,s){let n=new U({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e&&n.setName(e),t&&(Nt.test(t)||/^file:/i.test(t)))return wt(n,i);if(t&&/^npm:/i.test(t))return Yt(n,i);let r=Lt.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return r?qt(n,r):t&&$t.test(t)?Kt(n):t&&(St.test(t)||X.test(t))?wt(n,i):Bt(n)}var gt="https://registry.npmjs.org";function Ht(e,t=gt){let i=L(e);if(i.type!=="version")throw Mt(i.type,i.raw);let s="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;return t!==gt&&(s+="?repository_url="+t),s}function Gt(e,t,i){let s=new Error(`Invalid package name "${e}" of package "${i}": ${t.errors.join("; ")}.`);return s.code="EINVALIDPACKAGENAME",s}function kt(e,t){let i=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return i.code="EINVALIDTAGNAME",i}function Mt(e,t){let i=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return i.code="EINVALIDPURLTYPE",i}function U(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}U.prototype.setName=function(e){let t=bt(e);if(!t.validForOldPackages)throw Gt(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};U.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};U.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function B(e,t){if(!t){e.gitCommittish=null;return}for(let i of t.split("::")){if(!i.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=i;continue}let[s,n]=i.split(":");if(s==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(n);continue}if(s==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${n}`;continue}Pt.warn("npm-package-arg",`ignoring unknown key "${s}"`)}}function wt(e,t){t||(t=process.cwd()),e.type=X.test(e.rawSpec)?"file":"directory",e.where=t;let i,s,r=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=r.replace(/^file:/,"");try{s=new x(r,`file://${C.resolve(t)}/`),i=new x(r)}catch(f){let w=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(w,{raw:e.rawSpec,spec:e,where:t,originalError:f})}if(s.host&&s.host!=="localhost"){let f=e.rawSpec.replace(/^file:\/\//,"file:///");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let f=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}let a=decodeURIComponent(i.pathname),h=decodeURIComponent(s.pathname);return J&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),h=h.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,h=C.resolve(It(),a.substr(3))):C.isAbsolute(o)?e.saveSpec=`file:${C.resolve(h)}`:e.saveSpec=`file:${C.relative(t,h)}`,e.fetchSpec=C.resolve(t,h),e}function qt(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),B(e,t.committish),e}function Vt(e,t){let i=new Error(`Unsupported URL Type "${e}": ${t}`);return i.code="EUNSUPPORTEDPROTOCOL",i}function Kt(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let s=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(s&&!s[1].match(/:[0-9]+\/?.*$/i))return e.type="git",B(e,s[2]),e.fetchSpec=s[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let i=new x(t);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",B(e,i.hash.slice(1)),i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`:(i.hash="",e.fetchSpec=i.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw Vt(i.protocol,t)}return e}function Yt(e,t){let i=L(e.rawSpec.substr(4),t);if(i.type==="alias")throw new Error("nested aliases not supported");if(!i.registry)throw new Error("aliases only work for registry deps");if(!i.name)throw new Error("aliases must have a name");return e.subSpec=i,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function Bt(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let i=mt.valid(t,!0),s=mt.validRange(t,!0);if(i)e.type="version";else if(s)e.type="range";else{if(encodeURIComponent(t)!==t)throw kt(t,e.raw);e.type="tag"}return e}});export default Jt();
1
+ import{a as At}from"./chunk-75VPUOC5.js";import{a as vt}from"./chunk-H4W4DFKK.js";import{a as D,c as F,g as y}from"./chunk-VPRTJUIN.js";var st=F(N=>{"use strict";y();Object.defineProperty(N,"__esModule",{value:!0});N.LRUCache=void 0;var T=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,tt=new Set,k=typeof process=="object"&&process?process:{},et=(e,t,i,s)=>{typeof k.emitWarning=="function"?k.emitWarning(e,t,i,s):console.error(`[${i}] ${t}: ${e}`)},j=globalThis.AbortController,Q=globalThis.AbortSignal;if(typeof j>"u"){Q=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},j=class{constructor(){t()}signal=new Q;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let e=k.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,et("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var Et=e=>!tt.has(e),_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),it=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},M=class e{heap;length;static#n=!1;static create(t){let i=it(t);if(!i)return[];e.#n=!0;let s=new e(t,i);return e.#n=!1,s}constructor(t,i){if(!e.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new i(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},q=class e{#n;#l;#e;#g;#x;#T;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#w;#r;#s;#t;#f;#p;#c;#h;#b;#a;#S;#$;#d;#y;#_;#u;static unsafeExposeInternals(t){return{starts:t.#$,ttls:t.#d,sizes:t.#S,keyMap:t.#r,keyList:t.#s,valList:t.#t,next:t.#f,prev:t.#p,get head(){return t.#c},get tail(){return t.#h},free:t.#b,isBackgroundFetch:i=>t.#i(i),backgroundFetch:(i,s,n,r)=>t.#W(i,s,n,r),moveToTail:i=>t.#F(i),indexes:i=>t.#v(i),rindexes:i=>t.#A(i),isStale:i=>t.#m(i)}}get max(){return this.#n}get maxSize(){return this.#l}get calculatedSize(){return this.#w}get size(){return this.#o}get fetchMethod(){return this.#x}get memoMethod(){return this.#T}get dispose(){return this.#e}get disposeAfter(){return this.#g}constructor(t){let{max:i=0,ttl:s,ttlResolution:n=1,ttlAutopurge:r,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:h,dispose:f,disposeAfter:w,noDisposeOnSet:p,noUpdateTTL:m,maxSize:d=0,maxEntrySize:A=0,sizeCalculation:l,fetchMethod:S,memoMethod:c,noDeleteOnFetchRejection:$,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:b,allowStaleOnFetchAbort:v,ignoreFetchAbort:W}=t;if(i!==0&&!_(i))throw new TypeError("max option must be a nonnegative integer");let O=i?it(i):Array;if(!O)throw new Error("invalid max value: "+i);if(this.#n=i,this.#l=d,this.maxEntrySize=A||this.#l,this.sizeCalculation=l,this.sizeCalculation){if(!this.#l&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(c!==void 0&&typeof c!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=c,S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#x=S,this.#_=!!S,this.#r=new Map,this.#s=new Array(i).fill(void 0),this.#t=new Array(i).fill(void 0),this.#f=new O(i),this.#p=new O(i),this.#c=0,this.#h=0,this.#b=M.create(i),this.#o=0,this.#w=0,typeof f=="function"&&(this.#e=f),typeof w=="function"?(this.#g=w,this.#a=[]):(this.#g=void 0,this.#a=void 0),this.#y=!!this.#e,this.#u=!!this.#g,this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!$,this.allowStaleOnFetchRejection=!!b,this.allowStaleOnFetchAbort=!!v,this.ignoreFetchAbort=!!W,this.maxEntrySize!==0){if(this.#l!==0&&!_(this.#l))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#H()}if(this.allowStale=!!h,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=_(n)||n===0?n:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#D()}if(this.#n===0&&this.ttl===0&&this.#l===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#l){let P="LRU_CACHE_UNBOUNDED";Et(P)&&(tt.add(P),et("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,e))}}getRemainingTTL(t){return this.#r.has(t)?1/0:0}#D(){let t=new z(this.#n),i=new z(this.#n);this.#d=t,this.#$=i,this.#L=(r,o,a=T.now())=>{if(i[r]=o!==0?a:0,t[r]=o,o!==0&&this.ttlAutopurge){let h=setTimeout(()=>{this.#m(r)&&this.#E(this.#s[r],"expire")},o+1);h.unref&&h.unref()}},this.#R=r=>{i[r]=t[r]!==0?T.now():0},this.#O=(r,o)=>{if(t[o]){let a=t[o],h=i[o];if(!a||!h)return;r.ttl=a,r.start=h,r.now=s||n();let f=r.now-h;r.remainingTTL=a-f}};let s=0,n=()=>{let r=T.now();if(this.ttlResolution>0){s=r;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return r};this.getRemainingTTL=r=>{let o=this.#r.get(r);if(o===void 0)return 0;let a=t[o],h=i[o];if(!a||!h)return 1/0;let f=(s||n())-h;return a-f},this.#m=r=>{let o=i[r],a=t[r];return!!a&&!!o&&(s||n())-o>a}}#R=()=>{};#O=()=>{};#L=()=>{};#m=()=>!1;#H(){let t=new z(this.#n);this.#w=0,this.#S=t,this.#C=i=>{this.#w-=t[i],t[i]=0},this.#I=(i,s,n,r)=>{if(this.#i(s))return 0;if(!_(n))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(n=r(s,i),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.#z=(i,s,n)=>{if(t[i]=s,this.#l){let r=this.#l-t[i];for(;this.#w>r;)this.#U(!0)}this.#w+=t[i],n&&(n.entrySize=s,n.totalCalculatedSize=this.#w)}}#C=t=>{};#z=(t,i,s)=>{};#I=(t,i,s,n)=>{if(s||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#h;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#c));)i=this.#p[i]}*#A({allowStale:t=this.allowStale}={}){if(this.#o)for(let i=this.#c;!(!this.#P(i)||((t||!this.#m(i))&&(yield i),i===this.#h));)i=this.#f[i]}#P(t){return t!==void 0&&this.#r.get(this.#s[t])===t}*entries(){for(let t of this.#v())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*rentries(){for(let t of this.#A())this.#t[t]!==void 0&&this.#s[t]!==void 0&&!this.#i(this.#t[t])&&(yield[this.#s[t],this.#t[t]])}*keys(){for(let t of this.#v()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*rkeys(){for(let t of this.#A()){let i=this.#s[t];i!==void 0&&!this.#i(this.#t[t])&&(yield i)}}*values(){for(let t of this.#v())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#A())this.#t[t]!==void 0&&!this.#i(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,i={}){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;if(r!==void 0&&t(r,this.#s[s],this))return this.get(this.#s[s],i)}}forEach(t,i=this){for(let s of this.#v()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}rforEach(t,i=this){for(let s of this.#A()){let n=this.#t[s],r=this.#i(n)?n.__staleWhileFetching:n;r!==void 0&&t.call(i,r,this.#s[s],this)}}purgeStale(){let t=!1;for(let i of this.#A({allowStale:!0}))this.#m(i)&&(this.#E(this.#s[i],"expire"),t=!0);return t}info(t){let i=this.#r.get(t);if(i===void 0)return;let s=this.#t[i],n=this.#i(s)?s.__staleWhileFetching:s;if(n===void 0)return;let r={value:n};if(this.#d&&this.#$){let o=this.#d[i],a=this.#$[i];if(o&&a){let h=o-(T.now()-a);r.ttl=h,r.start=Date.now()}}return this.#S&&(r.size=this.#S[i]),r}dump(){let t=[];for(let i of this.#v({allowStale:!0})){let s=this.#s[i],n=this.#t[i],r=this.#i(n)?n.__staleWhileFetching:n;if(r===void 0||s===void 0)continue;let o={value:r};if(this.#d&&this.#$){o.ttl=this.#d[i];let a=T.now()-this.#$[i];o.start=Math.floor(Date.now()-a)}this.#S&&(o.size=this.#S[i]),t.unshift([s,o])}return t}load(t){this.clear();for(let[i,s]of t){if(s.start){let n=Date.now()-s.start;s.start=T.now()-n}this.set(i,s.value,s)}}set(t,i,s={}){if(i===void 0)return this.delete(t),this;let{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:h}=s,{noUpdateTTL:f=this.noUpdateTTL}=s,w=this.#I(t,i,s.size||0,a);if(this.maxEntrySize&&w>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let p=this.#o===0?void 0:this.#r.get(t);if(p===void 0)p=this.#o===0?this.#h:this.#b.length!==0?this.#b.pop():this.#o===this.#n?this.#U(!1):this.#o,this.#s[p]=t,this.#t[p]=i,this.#r.set(t,p),this.#f[this.#h]=p,this.#p[p]=this.#h,this.#h=p,this.#o++,this.#z(p,w,h),h&&(h.set="add"),f=!1;else{this.#F(p);let m=this.#t[p];if(i!==m){if(this.#_&&this.#i(m)){m.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=m;d!==void 0&&!o&&(this.#y&&this.#e?.(d,t,"set"),this.#u&&this.#a?.push([d,t,"set"]))}else o||(this.#y&&this.#e?.(m,t,"set"),this.#u&&this.#a?.push([m,t,"set"]));if(this.#C(p),this.#z(p,w,h),this.#t[p]=i,h){h.set="replace";let d=m&&this.#i(m)?m.__staleWhileFetching:m;d!==void 0&&(h.oldValue=d)}}else h&&(h.set="update")}if(n!==0&&!this.#d&&this.#D(),this.#d&&(f||this.#L(p,n,r),h&&this.#O(h,p)),!o&&this.#u&&this.#a){let m=this.#a,d;for(;d=m?.shift();)this.#g?.(...d)}return this}pop(){try{for(;this.#o;){let t=this.#t[this.#c];if(this.#U(!0),this.#i(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#u&&this.#a){let t=this.#a,i;for(;i=t?.shift();)this.#g?.(...i)}}}#U(t){let i=this.#c,s=this.#s[i],n=this.#t[i];return this.#_&&this.#i(n)?n.__abortController.abort(new Error("evicted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(n,s,"evict"),this.#u&&this.#a?.push([n,s,"evict"])),this.#C(i),t&&(this.#s[i]=void 0,this.#t[i]=void 0,this.#b.push(i)),this.#o===1?(this.#c=this.#h=0,this.#b.length=0):this.#c=this.#f[i],this.#r.delete(s),this.#o--,i}has(t,i={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=i,r=this.#r.get(t);if(r!==void 0){let o=this.#t[r];if(this.#i(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#m(r))n&&(n.has="stale",this.#O(n,r));else return s&&this.#R(r),n&&(n.has="hit",this.#O(n,r)),!0}else n&&(n.has="miss");return!1}peek(t,i={}){let{allowStale:s=this.allowStale}=i,n=this.#r.get(t);if(n===void 0||!s&&this.#m(n))return;let r=this.#t[n];return this.#i(r)?r.__staleWhileFetching:r}#W(t,i,s,n){let r=i===void 0?void 0:this.#t[i];if(this.#i(r))return r;let o=new j,{signal:a}=s;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let h={signal:o.signal,options:s,context:n},f=(l,S=!1)=>{let{aborted:c}=o.signal,$=s.ignoreFetchAbort&&l!==void 0;if(s.status&&(c&&!S?(s.status.fetchAborted=!0,s.status.fetchError=o.signal.reason,$&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),c&&!$&&!S)return p(o.signal.reason);let E=d;return this.#t[i]===d&&(l===void 0?E.__staleWhileFetching?this.#t[i]=E.__staleWhileFetching:this.#E(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,l,h.options))),l},w=l=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=l),p(l)),p=l=>{let{aborted:S}=o.signal,c=S&&s.allowStaleOnFetchAbort,$=c||s.allowStaleOnFetchRejection,E=$||s.noDeleteOnFetchRejection,b=d;if(this.#t[i]===d&&(!E||b.__staleWhileFetching===void 0?this.#E(t,"fetch"):c||(this.#t[i]=b.__staleWhileFetching)),$)return s.status&&b.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),b.__staleWhileFetching;if(b.__returned===b)throw l},m=(l,S)=>{let c=this.#x?.(t,r,h);c&&c instanceof Promise&&c.then($=>l($===void 0?void 0:$),S),o.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(l(void 0),s.allowStaleOnFetchAbort&&(l=$=>f($,!0)))})};s.status&&(s.status.fetchDispatched=!0);let d=new Promise(m).then(f,w),A=Object.assign(d,{__abortController:o,__staleWhileFetching:r,__returned:void 0});return i===void 0?(this.set(t,A,{...h.options,status:void 0}),i=this.#r.get(t)):this.#t[i]=A,A}#i(t){if(!this.#_)return!1;let i=t;return!!i&&i instanceof Promise&&i.hasOwnProperty("__staleWhileFetching")&&i.__abortController instanceof j}async fetch(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:h=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:p=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:l,forceRefresh:S=!1,status:c,signal:$}=i;if(!this.#_)return c&&(c.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:c});let E={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:a,size:h,sizeCalculation:f,noUpdateTTL:w,noDeleteOnFetchRejection:p,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:A,ignoreFetchAbort:d,status:c,signal:$},b=this.#r.get(t);if(b===void 0){c&&(c.fetch="miss");let v=this.#W(t,b,E,l);return v.__returned=v}else{let v=this.#t[b];if(this.#i(v)){let Z=s&&v.__staleWhileFetching!==void 0;return c&&(c.fetch="inflight",Z&&(c.returnedStale=!0)),Z?v.__staleWhileFetching:v.__returned=v}let W=this.#m(b);if(!S&&!W)return c&&(c.fetch="hit"),this.#F(b),n&&this.#R(b),c&&this.#O(c,b),v;let O=this.#W(t,b,E,l),G=O.__staleWhileFetching!==void 0&&s;return c&&(c.fetch=W?"stale":"refresh",G&&W&&(c.returnedStale=!0)),G?O.__staleWhileFetching:O.__returned=O}}async forceFetch(t,i={}){let s=await this.fetch(t,i);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,i={}){let s=this.#T;if(!s)throw new Error("no memoMethod provided to constructor");let{context:n,forceRefresh:r,...o}=i,a=this.get(t,o);if(!r&&a!==void 0)return a;let h=s(t,a,{options:o,context:n});return this.set(t,h,o),h}get(t,i={}){let{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:o}=i,a=this.#r.get(t);if(a!==void 0){let h=this.#t[a],f=this.#i(h);return o&&this.#O(o,a),this.#m(a)?(o&&(o.get="stale"),f?(o&&s&&h.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?h.__staleWhileFetching:void 0):(r||this.#E(t,"expire"),o&&s&&(o.returnedStale=!0),s?h:void 0)):(o&&(o.get="hit"),f?h.__staleWhileFetching:(this.#F(a),n&&this.#R(a),h))}else o&&(o.get="miss")}#j(t,i){this.#p[i]=t,this.#f[t]=i}#F(t){t!==this.#h&&(t===this.#c?this.#c=this.#f[t]:this.#j(this.#p[t],this.#f[t]),this.#j(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,i){let s=!1;if(this.#o!==0){let n=this.#r.get(t);if(n!==void 0)if(s=!0,this.#o===1)this.#N(i);else{this.#C(n);let r=this.#t[n];if(this.#i(r)?r.__abortController.abort(new Error("deleted")):(this.#y||this.#u)&&(this.#y&&this.#e?.(r,t,i),this.#u&&this.#a?.push([r,t,i])),this.#r.delete(t),this.#s[n]=void 0,this.#t[n]=void 0,n===this.#h)this.#h=this.#p[n];else if(n===this.#c)this.#c=this.#f[n];else{let o=this.#p[n];this.#f[o]=this.#f[n];let a=this.#f[n];this.#p[a]=this.#p[n]}this.#o--,this.#b.push(n)}}if(this.#u&&this.#a?.length){let n=this.#a,r;for(;r=n?.shift();)this.#g?.(...r)}return s}clear(){return this.#N("delete")}#N(t){for(let i of this.#A({allowStale:!0})){let s=this.#t[i];if(this.#i(s))s.__abortController.abort(new Error("deleted"));else{let n=this.#s[i];this.#y&&this.#e?.(s,n,t),this.#u&&this.#a?.push([s,n,t])}}if(this.#r.clear(),this.#t.fill(void 0),this.#s.fill(void 0),this.#d&&this.#$&&(this.#d.fill(0),this.#$.fill(0)),this.#S&&this.#S.fill(0),this.#c=0,this.#h=0,this.#b.length=0,this.#w=0,this.#o=0,this.#u&&this.#a){let i=this.#a,s;for(;s=i?.shift();)this.#g?.(...s)}}};N.LRUCache=q});var ot=F((ee,rt)=>{"use strict";y();var u=(...e)=>e.every(t=>t)?e.join(""):"",g=e=>e?encodeURIComponent(e):"",nt=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),Ot={sshtemplate:({domain:e,user:t,project:i,committish:s})=>`git@${e}:${t}/${i}.git${u("#",s)}`,sshurltemplate:({domain:e,user:t,project:i,committish:s})=>`git+ssh://git@${e}/${t}/${i}.git${u("#",s)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n,path:r})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r)}`,browsetemplate:({domain:e,user:t,project:i,committish:s,treepath:n})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s))}`,browsetreetemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:i,committish:s,blobpath:n,path:r,fragment:o,hashformat:a})=>`https://${e}/${t}/${i}/${n}/${g(s||"HEAD")}/${r}${u("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:i,treepath:s,committish:n})=>`https://${e}/${t}/${i}${u("/",s,"/",g(n))}#readme`,httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/raw/${g(s||"HEAD")}/${n}`,shortcuttemplate:({type:e,user:t,project:i,committish:s})=>`${e}:${t}/${i}${u("#",s)}`,pathtemplate:({user:e,project:t,committish:i})=>`${e}/${t}${u("#",i)}`,bugstemplate:({domain:e,user:t,project:i})=>`https://${e}/${t}/${i}/issues`,hashformat:nt},R={};R.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:i,committish:s,path:n})=>`https://${u(e,"@")}raw.githubusercontent.com/${t}/${i}/${g(s||"HEAD")}/${n}`,gittemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://codeload.${e}/${t}/${i}/tar.gz/${g(s||"HEAD")}`,extract:e=>{let[,t,i,s,n]=e.pathname.split("/",5);if(!(s&&s!=="tree")&&(s||(n=e.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:n}}};R.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:i,committish:s,treepath:n,path:r,editpath:o})=>`https://${e}/${t}/${i}${u("/",n,"/",g(s||"HEAD"),"/",r,o)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/get/${g(s||"HEAD")}.tar.gz`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["get"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};R.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:i,project:s,committish:n})=>`git+https://${u(e,"@")}${t}/${i}/${s}.git${u("#",n)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/repository/archive.tar.gz?ref=${g(s||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let i=t.split("/"),s=i.pop();s.endsWith(".git")&&(s=s.slice(0,-4));let n=i.join("/");if(!(!n||!s))return{user:n,project:s,committish:e.hash.slice(1)}}};R.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:i})=>`git@${e}:${t}.git${u("#",i)}`,sshurltemplate:({domain:e,project:t,committish:i})=>`git+ssh://git@${e}/${t}.git${u("#",i)}`,edittemplate:({domain:e,user:t,project:i,committish:s,editpath:n})=>`https://${e}/${t}/${i}${u("/",g(s))}/${n}`,browsetemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,browsetreetemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,browseblobtemplate:({domain:e,project:t,committish:i,path:s,hashformat:n})=>`https://${e}/${t}${u("/",g(i))}${u("#",n(s))}`,docstemplate:({domain:e,project:t,committish:i})=>`https://${e}/${t}${u("/",g(i))}`,httpstemplate:({domain:e,project:t,committish:i})=>`git+https://${e}/${t}.git${u("#",i)}`,filetemplate:({user:e,project:t,committish:i,path:s})=>`https://gist.githubusercontent.com/${e}/${t}/raw${u("/",g(i))}/${s}`,shortcuttemplate:({type:e,project:t,committish:i})=>`${e}:${t}${u("#",i)}`,pathtemplate:({project:e,committish:t})=>`${e}${u("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:i})=>`git://${e}/${t}.git${u("#",i)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${g(t||"HEAD")}`,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(s!=="raw"){if(!i){if(!t)return;i=t,t=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:t,project:i,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+nt(e)}};R.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:i,committish:s,path:n})=>`https://${e}/${t}/${i}/blob/${g(s)||"HEAD"}/${n}`,httpstemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}.git${u("#",s)}`,tarballtemplate:({domain:e,user:t,project:i,committish:s})=>`https://${e}/${t}/${i}/archive/${g(s)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,i,s]=e.pathname.split("/",4);if(!["archive"].includes(s)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!t||!i)))return{user:t,project:i,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(R))R[e]=Object.assign({},Ot,t);rt.exports=R});var K=F((se,at)=>{y();var _t=D("url"),V=(e,t,i)=>{let s=e.indexOf(i);return e.lastIndexOf(t,s>-1?s:1/0)},ht=e=>{try{return new _t.URL(e)}catch{}},Rt=(e,t)=>{let i=e.indexOf(":"),s=e.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(t,s))return e;let n=e.indexOf("@");return n>-1?n>i?`git+ssh://${e}`:e:e.indexOf("//")===i+1?e:`${e.slice(0,i+1)}//${e.slice(i+1)}`},Ct=e=>{let t=V(e,"@","#"),i=V(e,":","#");return i>t&&(e=e.slice(0,i)+"/"+e.slice(i+1)),V(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};at.exports=(e,t)=>{let i=t?Rt(e,t):e;return ht(i)||ht(Ct(i))}});var ct=F((re,lt)=>{"use strict";y();var Ft=K(),xt=e=>{let t=e.indexOf("#"),i=e.indexOf("/"),s=e.indexOf("/",i+1),n=e.indexOf(":"),r=/\s/.exec(e),o=e.indexOf("@"),a=!r||t>-1&&r.index>t,h=o===-1||t>-1&&o>t,f=n===-1||t>-1&&n>t,w=s===-1||t>-1&&s>t,p=i>0,m=t>-1?e[t-1]!=="/":!e.endsWith("/"),d=!e.startsWith(".");return a&&p&&m&&d&&h&&f&&w};lt.exports=(e,t,{gitHosts:i,protocols:s})=>{if(!e)return;let n=xt(e)?`github:${e}`:e,r=Ft(n,s);if(!r)return;let o=i.byShortcut[r.protocol],a=i.byDomain[r.hostname.startsWith("www.")?r.hostname.slice(4):r.hostname],h=o||a;if(!h)return;let f=i[o||a],w=null;s[r.protocol]?.auth&&(r.username||r.password)&&(w=`${r.username}${r.password?":"+r.password:""}`);let p=null,m=null,d=null,A=null;try{if(o){let l=r.pathname.startsWith("/")?r.pathname.slice(1):r.pathname,S=l.indexOf("@");S>-1&&(l=l.slice(S+1));let c=l.lastIndexOf("/");c>-1?(m=decodeURIComponent(l.slice(0,c)),m||(m=null),d=decodeURIComponent(l.slice(c+1))):d=decodeURIComponent(l),d.endsWith(".git")&&(d=d.slice(0,-4)),r.hash&&(p=decodeURIComponent(r.hash.slice(1))),A="shortcut"}else{if(!f.protocols.includes(r.protocol))return;let l=f.extract(r);if(!l)return;m=l.user&&decodeURIComponent(l.user),d=decodeURIComponent(l.project),p=decodeURIComponent(l.committish),A=s[r.protocol]?.name||r.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[h,m,w,d,p,A,t]}});var ut=F((he,ft)=>{"use strict";y();var{LRUCache:Tt}=st(),zt=ot(),Ut=ct(),Wt=K(),Y=new Tt({max:1e3}),H=class e{constructor(t,i,s,n,r,o,a={}){Object.assign(this,e.#n[t],{type:t,user:i,auth:s,project:n,committish:r,default:o,opts:a})}static#n={byShortcut:{},byDomain:{}};static#l={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,i){e.#n[t]=i,e.#n.byDomain[i.domain]=t,e.#n.byShortcut[`${t}:`]=t,e.#l[`${t}:`]={name:t}}static fromUrl(t,i){if(typeof t!="string")return;let s=t+JSON.stringify(i||{});if(!Y.has(s)){let n=Ut(t,i,{gitHosts:e.#n,protocols:e.#l});Y.set(s,n?new e(...n):void 0)}return Y.get(s)}static parseUrl(t){return Wt(t)}#e(t,i){if(typeof t!="function")return null;let s={...this,...this.opts,...i};s.path||(s.path=""),s.path.startsWith("/")&&(s.path=s.path.slice(1)),s.noCommittish&&(s.committish=null);let n=t(s);return s.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#e(this.sshtemplate,t)}sshurl(t){return this.#e(this.sshurltemplate,t)}browse(t,...i){return typeof t!="string"?this.#e(this.browsetemplate,t):typeof i[0]!="string"?this.#e(this.browsetreetemplate,{...i[0],path:t}):this.#e(this.browsetreetemplate,{...i[1],fragment:i[0],path:t})}browseFile(t,...i){return typeof i[0]!="string"?this.#e(this.browseblobtemplate,{...i[0],path:t}):this.#e(this.browseblobtemplate,{...i[1],fragment:i[0],path:t})}docs(t){return this.#e(this.docstemplate,t)}bugs(t){return this.#e(this.bugstemplate,t)}https(t){return this.#e(this.httpstemplate,t)}git(t){return this.#e(this.gittemplate,t)}shortcut(t){return this.#e(this.shortcuttemplate,t)}path(t){return this.#e(this.pathtemplate,t)}tarball(t){return this.#e(this.tarballtemplate,{...t,noCommittish:!1})}file(t,i){return this.#e(this.filetemplate,{...i,path:t})}edit(t,i){return this.#e(this.edittemplate,{...i,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(zt))H.addHost(e,t);ft.exports=H});var dt=F((le,pt)=>{y();var Dt=Symbol("proc-log.meta");pt.exports={META:Dt,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function i(){return process.emit("time","end",e)}if(typeof t=="function"){let s=t();return s&&s.finally?s.finally(i):(i(),s)}return i},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let i=e();return i&&i.finally?i.finally(t):(t(),i)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,i,s=new Promise((n,r)=>{t=n,i=r});return process.emit("input","read",t,i,...e),s}}}});var Jt=F((fe,I)=>{y();I.exports=L;I.exports.resolve=yt;I.exports.toPurl=Ht;I.exports.Result=U;var{URL:x}=D("url"),Lt=ut(),mt=vt(),C=global.FAKE_WINDOWS?D("path").win32:D("path"),bt=At(),{homedir:It}=D("os"),{log:Pt}=dt(),J=process.platform==="win32"||global.FAKE_WINDOWS,St=J?/\\|[/]/:/[/]/,$t=/^(?:git[+])?[a-z]+:/i,jt=/^[^@]+@[^:.]+\.[^:]+:.+$/i,X=/[.](?:tgz|tar.gz|tar)$/i;function L(e,t){let i,s;if(typeof e=="object")return e instanceof U&&(!t||t===e.where)?e:e.name&&e.rawSpec?L.resolve(e.name,e.rawSpec,t||e.where):L(e.raw,t||e.where);let n=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@"),r=n>0?e.slice(0,n):e;return $t.test(e)?s=e:jt.test(e)?s=`git+ssh://${e}`:r[0]!=="@"&&(St.test(r)||X.test(r))?s=e:n>0?(i=r,s=e.slice(n+1)||"*"):bt(e).validForOldPackages?(i=e,s="*"):s=e,yt(i,s,t,e)}var Nt=J?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function yt(e,t,i,s){let n=new U({raw:s,name:e,rawSpec:t,fromArgument:s!=null});if(e&&n.setName(e),t&&(Nt.test(t)||/^file:/i.test(t)))return wt(n,i);if(t&&/^npm:/i.test(t))return Yt(n,i);let r=Lt.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return r?qt(n,r):t&&$t.test(t)?Kt(n):t&&(St.test(t)||X.test(t))?wt(n,i):Bt(n)}var gt="https://registry.npmjs.org";function Ht(e,t=gt){let i=L(e);if(i.type!=="version")throw Mt(i.type,i.raw);let s="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;return t!==gt&&(s+="?repository_url="+t),s}function Gt(e,t,i){let s=new Error(`Invalid package name "${e}" of package "${i}": ${t.errors.join("; ")}.`);return s.code="EINVALIDPACKAGENAME",s}function kt(e,t){let i=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return i.code="EINVALIDTAGNAME",i}function Mt(e,t){let i=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return i.code="EINVALIDPURLTYPE",i}function U(e){this.type=e.type,this.registry=e.registry,this.where=e.where,e.raw==null?this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec:this.raw=e.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=e.rawSpec||"",this.saveSpec=e.saveSpec,this.fetchSpec=e.fetchSpec,e.name&&this.setName(e.name),this.gitRange=e.gitRange,this.gitCommittish=e.gitCommittish,this.gitSubdir=e.gitSubdir,this.hosted=e.hosted}U.prototype.setName=function(e){let t=bt(e);if(!t.validForOldPackages)throw Gt(e,t,this.raw);return this.name=e,this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):void 0,this.escapedName=e.replace("/","%2f"),this};U.prototype.toString=function(){let e=[];this.name!=null&&this.name!==""&&e.push(this.name);let t=this.saveSpec||this.fetchSpec||this.rawSpec;return t!=null&&t!==""&&e.push(t),e.length?e.join("@"):this.raw};U.prototype.toJSON=function(){let e=Object.assign({},this);return delete e.hosted,e};function B(e,t){if(!t){e.gitCommittish=null;return}for(let i of t.split("::")){if(!i.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=i;continue}let[s,n]=i.split(":");if(s==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(n);continue}if(s==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${n}`;continue}Pt.warn("npm-package-arg",`ignoring unknown key "${s}"`)}}function wt(e,t){t||(t=process.cwd()),e.type=X.test(e.rawSpec)?"file":"directory",e.where=t;let i,s,r=(/^file:/.test(e.rawSpec)?"":"file:")+e.rawSpec,o=r.replace(/^file:/,"");try{s=new x(r,`file://${C.resolve(t)}/`),i=new x(r)}catch(f){let w=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(w,{raw:e.rawSpec,spec:e,where:t,originalError:f})}if(s.host&&s.host!=="localhost"){let f=e.rawSpec.replace(/^file:\/\//,"file:///");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(o)){let f=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new x(f,`file://${C.resolve(t)}/`),i=new x(f),o=f.replace(/^file:/,"")}let a=decodeURIComponent(i.pathname),h=decodeURIComponent(s.pathname);return J&&(a=a.replace(/^\/+([a-z]:\/)/i,"$1"),h=h.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(a)?(e.saveSpec=`file:${a.substr(1)}`,h=C.resolve(It(),a.substr(3))):C.isAbsolute(o)?e.saveSpec=`file:${C.resolve(h)}`:e.saveSpec=`file:${C.relative(t,h)}`,e.fetchSpec=C.resolve(t,h),e}function qt(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),B(e,t.committish),e}function Vt(e,t){let i=new Error(`Unsupported URL Type "${e}": ${t}`);return i.code="EUNSUPPORTEDPROTOCOL",i}function Kt(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let s=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(s&&!s[1].match(/:[0-9]+\/?.*$/i))return e.type="git",B(e,s[2]),e.fetchSpec=s[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let i=new x(t);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",B(e,i.hash.slice(1)),i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`:(i.hash="",e.fetchSpec=i.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw Vt(i.protocol,t)}return e}function Yt(e,t){let i=L(e.rawSpec.substr(4),t);if(i.type==="alias")throw new Error("nested aliases not supported");if(!i.registry)throw new Error("aliases only work for registry deps");if(!i.name)throw new Error("aliases must have a name");return e.subSpec=i,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function Bt(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let i=mt.valid(t,!0),s=mt.validRange(t,!0);if(i)e.type="version";else if(s)e.type="range";else{if(encodeURIComponent(t)!==t)throw kt(t,e.raw);e.type="tag"}return e}});export default Jt();
@@ -0,0 +1 @@
1
+ import{Eb as a,Fb as b,Gb as c,Hb as d,Ib as e,Jb as f,Kb as g,Lb as h,Mb as i,Nb as j,Ob as k,Pb as l,Qb as m,Rb as n,Sb as o,Tb as p,Ub as q,Vb as r,Wb as s,Xb as t}from"./chunk-VPL2NDH6.js";import"./chunk-7JESXDF2.js";import"./chunk-5Y7GIF2W.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as TokenizedString,g as clearCollectedLogs,f as collectLog,e as collectedLogs,c as formatPackageManagerCommand,t as formatSection,p as itemToString,k as outputCompleted,d as outputContent,l as outputDebug,i as outputInfo,n as outputNewline,h as outputResult,j as outputSuccess,b as outputToken,m as outputWarn,q as outputWhereAppropriate,s as shouldDisplayColors,o as stringifyMessage,r as unstyled};
@@ -24,7 +24,7 @@ $1 $2
24
24
  `)?`
25
25
  `:`
26
26
 
27
- `)+o}function So(e){return e.findAncestor(s=>s.type==="css-decl")?.prop?.toLowerCase()}function Eo(e){return Ao.has(e.toLowerCase())}function jo(e,s){return e.findAncestor(i=>i.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(s.toLowerCase())}function je(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ye(e,s){return e.findAncestor(i=>i.type==="value-func")?.value?.toLowerCase()===s}function Io(e){return e.hasAncestor(s=>{if(s.type!=="css-rule")return!1;let i=s.raws?.selector;return i&&(i.startsWith(":import")||i.startsWith(":export"))})}function Re(e,s){let i=Array.isArray(s)?s:[s],r=e.findAncestor(a=>a.type==="css-atrule");return r&&i.includes(r.name.toLowerCase())}function Po(e){let{node:s}=e;return s.groups[0]?.value==="url"&&s.groups.length===2&&e.findAncestor(i=>i.type==="css-atrule")?.name==="import"}function Mo(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function $o(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Ro(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function No(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Lo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function Wo(e){return e.type==="value-word"&&e.value==="in"}function gt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function le(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function zo(e){return e.type==="value-operator"&&e.value==="%"}function ht(e){return gt(e)||xe(e)||le(e)||ke(e)||zo(e)}function Bo(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function qo(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function wt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Zt(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function ft(e){return e.name.startsWith("prettier-placeholder")}function Do(e){return e.prop.startsWith("@prettier-placeholder")}function Fo(e,s){return e.value==="$$"&&e.type==="value-func"&&s?.type==="value-word"&&!s.raws.before}function Uo(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function Vo(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ue(e){return e?.raws?.before===""}function Dt(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function dt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&Dt(e.groups[0])}function Dr(e,s){if(s.parser!=="scss")return!1;let{node:i}=e;if(i.groups.length===0)return!1;let r=e.grandparent;return!dt(i)&&!(r&&dt(r))?!1:!!(e.findAncestor(a=>a.type==="css-decl")?.prop?.startsWith("$")||dt(r)||r.type==="value-func")}function He(e){return e.type==="value-comment"&&e.inline}function mt(e){return e.type==="value-word"&&e.value==="#"}function Kt(e){return e.type==="value-word"&&e.value==="{"}function yt(e){return e.type==="value-word"&&e.value==="}"}function Je(e){return["value-word","value-atword"].includes(e.type)}function bt(e){return e?.type==="value-colon"}function Go(e,s){if(!Dt(s))return!1;let{groups:i}=s,r=i.indexOf(e);return r===-1?!1:bt(i[r+1])}function Ho(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Jo(e){return e.type!=="value-func"?!1:Co.has(e.value.toLowerCase())}function Ie(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Qe(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Qo(e,s){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(i=>i.type!=="value-comma_group"))return!1;if(s.type==="value-comma_group"){let i=s.groups.indexOf(e)-1,r=s.groups[i];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function Ze(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function Zo(e,s,i){let{node:r}=e,a=e.parent,o=e.grandparent,u=So(e),p=u&&a.type==="value-value"&&(u==="grid"||u.startsWith("grid-template")),y=e.findAncestor(g=>g.type==="css-atrule"),m=y&&wt(y,s),n=r.groups.some(g=>He(g)),t=e.map(i,"groups"),h=[""],c=Ye(e,"url"),d=!1,l=!1;for(let g=0;g<r.groups.length;++g){let v=r.groups[g-1],f=r.groups[g],w=r.groups[g+1],O=r.groups[g+2];if(He(f)&&!w){h.push([h.pop(),En([" ",t[g]])]);continue}if(h.push([h.pop(),t[g]]),c){(w&&le(w)||le(f))&&h.push([h.pop()," "]);continue}if(Re(e,"forward")&&f.type==="value-word"&&f.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&w.type==="value-operator"&&w.value==="*"||Re(e,"utility")&&f.type==="value-word"&&w&&w.type==="value-operator"&&w.value==="*"||!w||f.type==="value-word"&&Qe(w)&&H(f)===G(w))continue;if(f.type==="value-string"&&f.quoted){let A=f.value.lastIndexOf("#{"),I=f.value.lastIndexOf("}");A!==-1&&I!==-1?d=A>I:A!==-1?d=!0:I!==-1&&(d=!1)}if(d||bt(f)||bt(w)||f.type==="value-atword"&&(f.value===""||f.value.endsWith("["))||w.type==="value-word"&&w.value.startsWith("]")||f.value==="~"||s.parser==="less"&&(w?.type==="value-word"&&w.value==="["||f.type==="value-word"&&f.value==="["&&(w?.type==="value-atword"||w?.type==="value-word")||f.type==="value-word"&&f.value==="]["&&w?.type==="value-word")||f.type!=="value-string"&&f.value&&f.value.includes("\\")&&w&&w.type!=="value-comment"||v?.value&&v.value.indexOf("\\")===v.value.length-1&&f.type==="value-operator"&&f.value==="/"||f.value==="\\"||Fo(f,w)||mt(f)||Kt(f)||yt(w)||Kt(w)&&ue(w)||yt(f)&&ue(w)||f.value==="--"&&mt(w))continue;let b=ht(f),T=ht(w);if((b&&mt(w)||T&&yt(f))&&ue(w)||!v&&xe(f)||Ye(e,"calc")&&(le(f)||le(w)||ke(f)||ke(w))&&ue(w))continue;let k=(le(f)||ke(f))&&g===0&&(w.type==="value-number"||w.isHex)&&o&&Jo(o)&&!ue(w);if(s.parser==="scss"&&b&&f.value==="-"&&w.type==="value-func"&&H(f)!==G(w)){h.push([h.pop()," "]);continue}let x=O?.type==="value-func"||O&&Je(O)||f.type==="value-func"||Je(f),C=w.type==="value-func"||Je(w)||v?.type==="value-func"||v&&Je(v);if(!(!(gt(w)||gt(f))&&!Ye(e,"calc")&&!k&&(xe(w)&&!x||xe(f)&&!C||le(w)&&!x||le(f)&&!C||ke(w)||ke(f))&&(ue(w)||b&&(!v||v&&ht(v))))&&!((s.parser==="scss"||s.parser==="less")&&b&&f.value==="-"&&Ze(w)&&H(f)===G(w.open)&&w.open.value==="(")){if(He(f)){if(a.type==="value-paren_group"){h.push(Ne(U),"");continue}h.push(U,"");continue}if(m&&(Bo(w)||qo(w)||Lo(w)||Wo(f)||No(f))){h.push([h.pop()," "]);continue}if(y&&y.name.toLowerCase()==="namespace"){h.push([h.pop()," "]);continue}if(p){f.source&&w.source&&f.source.start.line!==w.source.start.line?(h.push(U,""),l=!0):h.push([h.pop()," "]);continue}if(!(u&&(u==="font"||u.startsWith("--"))&&(xe(w)&&ue(w)&&Yt(f)||xe(f)&&ue(f)&&Yt(v)))){if(T){h.push([h.pop()," "]);continue}if(w?.value!=="..."&&!(Qe(f)&&Qe(w)&&H(f)===G(w))){if(Qe(f)&&Ze(w)&&H(f)===G(w.open)){h.push(K,"");continue}if(f.value==="with"&&Ze(w)){h=[[Ke(h)," "]];continue}if(!(f.value?.endsWith("#")&&w.value==="{"&&Ze(w.group))&&!(He(w)&&!O)){if(!y&&f.type==="value-comment"&&!f.inline&&r.groups.slice(0,g).every(A=>A.type==="value-comment")){h.push(Ne(V),"");continue}h.push(V,"")}}}}}return n&&h.push([h.pop(),zt]),l&&h.unshift("",U),m?Y(Q(h)):Po(e)?Y(Ke(h)):Y(Q(Ke(h)))}function Yt(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let s=e.value.toLowerCase();return s==="var"||s==="calc"||s==="min"||s==="max"||s==="clamp"||s.startsWith("--")}function Yo(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}function Fr(e){let s=e.toLowerCase();return xt.has(s)?xt.get(s):e}function ee(e,s){return F(0,e,Ur,i=>Er(i,s))}function ni(e,s){let i=s.singleQuote?"'":'"',r="",a=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return a&&({value:e,flag:r}=a.groups),(e.includes('"')||e.includes("'")?e:i+e+i)+(r?` ${r}`:"")}function be(e){return F(0,e,si,(s,i,r,a,o)=>!r&&a&&(o??(o=""),o=o.toLowerCase(),!o||o==="n"||xt.has(o))?Vr(a)+(o?Fr(o):""):s)}function Vr(e){return Xo(e).replace(/\.0(?=$|e)/u,"")}function oi(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function ii(e,s,i){let r=!!i?.backwards;if(s===!1)return!1;let a=e.charAt(s);if(r){if(e.charAt(s-1)==="\r"&&a===`
27
+ `)+o}function So(e){return e.findAncestor(s=>s.type==="css-decl")?.prop?.toLowerCase()}function Eo(e){return Ao.has(e.toLowerCase())}function jo(e,s){return e.findAncestor(i=>i.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(s.toLowerCase())}function je(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Ye(e,s){return e.findAncestor(i=>i.type==="value-func")?.value?.toLowerCase()===s}function Io(e){return e.hasAncestor(s=>{if(s.type!=="css-rule")return!1;let i=s.raws?.selector;return i&&(i.startsWith(":import")||i.startsWith(":export"))})}function Re(e,s){let i=Array.isArray(s)?s:[s],r=e.findAncestor(a=>a.type==="css-atrule");return r&&i.includes(r.name.toLowerCase())}function Po(e){let{node:s}=e;return s.groups[0]?.value==="url"&&s.groups.length===2&&e.findAncestor(i=>i.type==="css-atrule")?.name==="import"}function Mo(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function $o(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Ro(e){let{selector:s}=e;return s?typeof s=="string"&&/^@.+:.*$/u.test(s)||s.value&&/^@.+:.*$/u.test(s.value):!1}function No(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function Lo(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function Wo(e){return e.type==="value-word"&&e.value==="in"}function gt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function le(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function zo(e){return e.type==="value-operator"&&e.value==="%"}function ht(e){return gt(e)||xe(e)||le(e)||ke(e)||zo(e)}function Bo(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function qo(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function wt(e,s){return s.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Zt(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function ft(e){return e.name.startsWith("prettier-placeholder")}function Do(e){return e.prop.startsWith("@prettier-placeholder")}function Fo(e,s){return e.value==="$$"&&e.type==="value-func"&&s?.type==="value-word"&&!s.raws.before}function Uo(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function Vo(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ue(e){return e?.raws?.before===""}function Dt(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function dt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&Dt(e.groups[0])}function Dr(e,s){if(s.parser!=="scss")return!1;let{node:i}=e;if(i.groups.length===0)return!1;let r=e.parent;if(r&&r.type==="value-func"&&r.value==="if")return!1;let a=e.grandparent;return!dt(i)&&!(a&&dt(a))?!1:!!(e.findAncestor(o=>o.type==="css-decl")?.prop?.startsWith("$")||dt(a)||a.type==="value-func")}function He(e){return e.type==="value-comment"&&e.inline}function mt(e){return e.type==="value-word"&&e.value==="#"}function Kt(e){return e.type==="value-word"&&e.value==="{"}function yt(e){return e.type==="value-word"&&e.value==="}"}function Je(e){return["value-word","value-atword"].includes(e.type)}function bt(e){return e?.type==="value-colon"}function Go(e,s){if(!Dt(s))return!1;let{groups:i}=s,r=i.indexOf(e);return r===-1?!1:bt(i[r+1])}function Ho(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function Jo(e){return e.type!=="value-func"?!1:Co.has(e.value.toLowerCase())}function Ie(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function Qe(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function Qo(e,s){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(i=>i.type!=="value-comma_group"))return!1;if(s.type==="value-comma_group"){let i=s.groups.indexOf(e)-1,r=s.groups[i];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function Ze(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function Zo(e,s,i){let{node:r}=e,a=e.parent,o=e.grandparent,u=So(e),p=u&&a.type==="value-value"&&(u==="grid"||u.startsWith("grid-template")),y=e.findAncestor(g=>g.type==="css-atrule"),m=y&&wt(y,s),n=r.groups.some(g=>He(g)),t=e.map(i,"groups"),h=[""],c=Ye(e,"url"),d=!1,l=!1;for(let g=0;g<r.groups.length;++g){let v=r.groups[g-1],f=r.groups[g],w=r.groups[g+1],O=r.groups[g+2];if(He(f)&&!w){h.push([h.pop(),En([" ",t[g]])]);continue}if(h.push([h.pop(),t[g]]),c){(w&&le(w)||le(f))&&h.push([h.pop()," "]);continue}if(Re(e,"forward")&&f.type==="value-word"&&f.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&w.type==="value-operator"&&w.value==="*"||Re(e,"utility")&&f.type==="value-word"&&w&&w.type==="value-operator"&&w.value==="*"||!w||f.type==="value-word"&&Qe(w)&&H(f)===G(w))continue;if(f.type==="value-string"&&f.quoted){let A=f.value.lastIndexOf("#{"),I=f.value.lastIndexOf("}");A!==-1&&I!==-1?d=A>I:A!==-1?d=!0:I!==-1&&(d=!1)}if(d||bt(f)||bt(w)||f.type==="value-atword"&&(f.value===""||f.value.endsWith("["))||w.type==="value-word"&&w.value.startsWith("]")||f.value==="~"||s.parser==="less"&&(w?.type==="value-word"&&w.value==="["||f.type==="value-word"&&f.value==="["&&(w?.type==="value-atword"||w?.type==="value-word")||f.type==="value-word"&&f.value==="]["&&w?.type==="value-word")||f.type!=="value-string"&&f.value&&f.value.includes("\\")&&w&&w.type!=="value-comment"||v?.value&&v.value.indexOf("\\")===v.value.length-1&&f.type==="value-operator"&&f.value==="/"||f.value==="\\"||Fo(f,w)||mt(f)||Kt(f)||yt(w)||Kt(w)&&ue(w)||yt(f)&&ue(w)||f.value==="--"&&mt(w))continue;let b=ht(f),T=ht(w);if((b&&mt(w)||T&&yt(f))&&ue(w)||!v&&xe(f)||Ye(e,"calc")&&(le(f)||le(w)||ke(f)||ke(w))&&ue(w))continue;let k=(le(f)||ke(f))&&g===0&&(w.type==="value-number"||w.isHex)&&o&&Jo(o)&&!ue(w);if(s.parser==="scss"&&b&&f.value==="-"&&w.type==="value-func"&&H(f)!==G(w)){h.push([h.pop()," "]);continue}let x=O?.type==="value-func"||O&&Je(O)||f.type==="value-func"||Je(f),C=w.type==="value-func"||Je(w)||v?.type==="value-func"||v&&Je(v);if(!(!(gt(w)||gt(f))&&!Ye(e,"calc")&&!k&&(xe(w)&&!x||xe(f)&&!C||le(w)&&!x||le(f)&&!C||ke(w)||ke(f))&&(ue(w)||b&&(!v||v&&ht(v))))&&!((s.parser==="scss"||s.parser==="less")&&b&&f.value==="-"&&Ze(w)&&H(f)===G(w.open)&&w.open.value==="(")){if(He(f)){if(a.type==="value-paren_group"){h.push(Ne(U),"");continue}h.push(U,"");continue}if(m&&(Bo(w)||qo(w)||Lo(w)||Wo(f)||No(f))){h.push([h.pop()," "]);continue}if(y&&y.name.toLowerCase()==="namespace"){h.push([h.pop()," "]);continue}if(p){f.source&&w.source&&f.source.start.line!==w.source.start.line?(h.push(U,""),l=!0):h.push([h.pop()," "]);continue}if(!(u&&(u==="font"||u.startsWith("--"))&&(xe(w)&&ue(w)&&Yt(f)||xe(f)&&ue(f)&&Yt(v)))){if(T){h.push([h.pop()," "]);continue}if(w?.value!=="..."&&!(Qe(f)&&Qe(w)&&H(f)===G(w))){if(Qe(f)&&Ze(w)&&H(f)===G(w.open)){h.push(K,"");continue}if(f.value==="with"&&Ze(w)){h=[[Ke(h)," "]];continue}if(!(f.value?.endsWith("#")&&w.value==="{"&&Ze(w.group))&&!(He(w)&&!O)){if(!y&&f.type==="value-comment"&&!f.inline&&r.groups.slice(0,g).every(A=>A.type==="value-comment")){h.push(Ne(V),"");continue}h.push(V,"")}}}}}return n&&h.push([h.pop(),zt]),l&&h.unshift("",U),m?Y(Q(h)):Po(e)?Y(Ke(h)):Y(Q(Ke(h)))}function Yt(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let s=e.value.toLowerCase();return s==="var"||s==="calc"||s==="min"||s==="max"||s==="clamp"||s.startsWith("--")}function Yo(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}function Fr(e){let s=e.toLowerCase();return xt.has(s)?xt.get(s):e}function ee(e,s){return F(0,e,Ur,i=>Er(i,s))}function ni(e,s){let i=s.singleQuote?"'":'"',r="",a=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return a&&({value:e,flag:r}=a.groups),(e.includes('"')||e.includes("'")?e:i+e+i)+(r?` ${r}`:"")}function be(e){return F(0,e,si,(s,i,r,a,o)=>!r&&a&&(o??(o=""),o=o.toLowerCase(),!o||o==="n"||xt.has(o))?Vr(a)+(o?Fr(o):""):s)}function Vr(e){return Xo(e).replace(/\.0(?=$|e)/u,"")}function oi(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function ii(e,s,i){let r=!!i?.backwards;if(s===!1)return!1;let a=e.charAt(s);if(r){if(e.charAt(s-1)==="\r"&&a===`
28
28
  `)return s-2;if(Xt(a))return s-1}else{if(a==="\r"&&e.charAt(s+1)===`
29
29
  `)return s+2;if(Xt(a))return s+1}return s}function ai(e,s,i={}){let r=$r(e,i.backwards?s-1:s,i),a=Gr(e,r,i);return r!==a}function ui(e,s){if(s===!1)return!1;if(e.charAt(s)==="/"&&e.charAt(s+1)==="*"){for(let i=s+2;i<e.length;++i)if(e.charAt(i)==="*"&&e.charAt(i+1)==="/")return i+2}return s}function ci(e,s){return s===!1?!1:e.charAt(s)==="/"&&e.charAt(s+1)==="/"?Rr(e,s):s}function hi(e,s){let i=null,r=s;for(;r!==i;)i=r,r=ro(e,r),r=li(e,r),r=$r(e,r);return r=pi(e,r),r=Gr(e,r),r!==!1&&Hr(e,r)}function fi({node:e,parent:s},i){return!!(e.source&&i.originalText.slice(G(e),G(s.close)).trimEnd().endsWith(","))}function di(e,s){return $o(e.grandparent)&&fi(e,s)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(i=>i.type==="value-comment"))&&oi(s)&&e.callParent(()=>Dr(e,s))?Cr(","):""}function mi(e,s,i){let{node:r,parent:a}=e,o=e.map(({node:c})=>typeof c=="string"?c:i(),"groups");if(a&&Mo(a)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?i("open"):"",ce(",",o),r.close?i("close"):""];if(!r.open){let c=Qr(e);Wt(o);let d=vi(ce(",",o),2),l=ce(c?U:V,d);return Q(c?[U,l]:Y([yi(e)?K:"",Ke(l)]))}let u=e.map(({node:c,isLast:d,index:l})=>{let g=o[l];Dt(c)&&c.type==="value-comma_group"&&c.groups&&c.groups[0].type!=="value-paren_group"&&c.groups[2]?.type==="value-paren_group"&&Me(g)===nt&&Me(g.contents)===st&&Me(g.contents.contents)===ot&&(g=Y(Ne(g)));let v=[g,d?di(e,s):","];if(!d&&c.type==="value-comma_group"&&at(c.groups)){let f=fe(0,c.groups,-1);!f.source&&f.close&&(f=f.close),f.source&&Jr(s.originalText,H(f))&&v.push(U)}return v},"groups"),p=Go(r,a),y=Qo(r,a),m=Dr(e,s),n=y||m&&!p,t=y||p,h=Y([r.open?i("open"):"",Q([K,ce(V,u)]),K,r.close?i("close"):""],{shouldBreak:n});return t?Ne(h):h}function Qr(e){return e.match(s=>s.type==="value-paren_group"&&!s.open&&s.groups.some(i=>i.type==="value-comma_group"),(s,i)=>i==="group"&&s.type==="value-value",(s,i)=>i==="group"&&s.type==="value-root",(s,i)=>i==="value"&&(s.type==="css-decl"&&!s.prop.startsWith("--")||s.type==="css-atrule"&&s.variable))}function yi(e){return e.match(s=>s.type==="value-paren_group"&&!s.open,(s,i)=>i==="group"&&s.type==="value-value",(s,i)=>i==="group"&&s.type==="value-root",(s,i)=>i==="value"&&s.type==="css-decl")}function vi(e,s){let i=[];for(let r=0;r<e.length;r+=s)i.push(e.slice(r,r+s));return i}function gi(e,s,i){let r=[];return e.each(()=>{let{node:a,previous:o}=e;if(o?.type==="css-comment"&&o.text.trim()==="prettier-ignore"?r.push(s.originalText.slice(G(a),H(a))):r.push(i()),e.isLast)return;let{next:u}=e;u.type==="css-comment"&&!Hr(s.originalText,G(u),{backwards:!0})&&!vt(a)||u.type==="css-atrule"&&u.name==="else"&&a.type!=="css-comment"?r.push(" "):(r.push(s.__isHTMLStyleAttribute?V:U),Jr(s.originalText,H(a))&&!vt(a)&&r.push(U))},"nodes"),r}function wi(e,s,i){let{node:r}=e;switch(r.type){case"css-root":{let a=Pe(e,s,i),o=r.raws.after.trim();return o.startsWith(";")&&(o=o.slice(1).trim()),[r.frontMatter?[i("frontMatter"),U,r.nodes.length>0?U:""]:"",a,o?` ${o}`:"",r.nodes.length>0?U:""]}case"css-comment":{let a=r.inline||r.raws.inline,o=s.originalText.slice(G(r),H(r));return a?o.trimEnd():o}case"css-rule":return[i("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Ie(r.selector.value)?V:r.selector?" ":"","{",r.nodes.length>0?Q([U,Pe(e,s,i)]):"",U,"}",Ro(r)?";":""]:";"];case"css-decl":{let a=e.parent,{between:o}=r.raws,u=o.trim(),p=u===":",y=typeof r.value=="string"&&/^ *$/u.test(r.value),m=typeof r.value=="string"?r.value:i("value");return m=Uo(r)?On(m):m,!p&&Ie(u)&&!e.call(()=>Qr(e),"value","group","group")&&(m=Q([U,Ne(m)])),[F(0,r.raws.before,/[\s;]/gu,""),a.type==="css-atrule"&&a.variable||Io(e)?r.prop:je(r.prop),u.startsWith("//")?" ":"",u,r.extend||y?"":" ",s.parser==="less"&&r.extend&&r.selector?["extend(",i("selector"),")"]:"",m,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",Q([K,Pe(e,s,i)]),K,"}"]:Do(r)&&!a.raws.semicolon&&s.originalText[H(r)-1]!==";"?"":s.__isHTMLStyleAttribute&&e.isLast?Cr(";"):";"]}case"css-atrule":{let a=e.parent,o=ft(r)&&!a.raws.semicolon&&s.originalText[H(r)-1]!==";";if(s.parser==="less"){if(r.mixin)return[i("selector"),r.important?" !important":"",o?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:i("params"),o?"":";"];if(r.variable)return["@",r.name,": ",r.value?i("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",Q([r.nodes.length>0?K:"",Pe(e,s,i)]),K,"}"]:"",o?"":";"]}let u=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return["@",Zt(r)||r.name.endsWith(":")||ft(r)?r.name:je(r.name),r.params?[Zt(r)?"":ft(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(r.raws.afterName)?[U,U]:/^\s*\n/u.test(r.raws.afterName)?U:" ":" ",typeof r.params=="string"?r.params:i("params")]:"",r.selector?Q([" ",i("selector")]):"",r.value?Y([" ",i("value"),wt(r,s)?Vo(r)?" ":V:""]):r.name==="else"?" ":"",r.nodes?[wt(r,s)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Ie(r.selector.value)||!r.selector&&typeof r.params=="string"&&Ie(r.params)?V:" ","{",Q([r.nodes.length>0?K:"",Pe(e,s,i)]),K,"}"]:o||u?"":";"]}case"media-query-list":{let a=[];return e.each(({node:o})=>{o.type==="media-query"&&o.value===""||a.push(i())},"nodes"),Y(Q(ce(V,a)))}case"media-query":return[ce(" ",e.map(i,"nodes")),e.isLast?"":","];case"media-type":return be(ee(r.value,s));case"media-feature-expression":return r.nodes?["(",...e.map(i,"nodes"),")"]:r.value;case"media-feature":return je(ee(F(0,r.value,/ +/gu," "),s));case"media-colon":return[r.value," "];case"media-value":return be(ee(r.value,s));case"media-keyword":return ee(r.value,s);case"media-url":return ee(F(0,F(0,r.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),s);case"media-unknown":return r.value;case"selector-root":return Y([Re(e,"custom-selector")?[e.findAncestor(a=>a.type==="css-atrule").customSelector,V]:"",ce([",",Re(e,["extend","custom-selector","nest"])?V:U],e.map(i,"nodes"))]);case"selector-selector":{let a=r.nodes.length>2;return Y((a?Q:o=>o)(e.map(i,"nodes")))}case"selector-comment":return r.value;case"selector-string":return ee(r.value,s);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?r.value:be(jo(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",be(ee(r.value,s))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?ni(ee(r.value.trim(),s),s):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let u=e.parent;return[u.type==="selector-selector"&&u.nodes[0]===r?"":V,r.value,e.isLast?"":" "]}let a=r.value.trim().startsWith("(")?V:"",o=be(ee(r.value.trim(),s))||V;return[a,o]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[je(r.value),at(r.nodes)?Y(["(",Q([K,ce([",",V],e.map(i,"nodes"))]),K,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if(e.findAncestor(u=>u.type==="css-rule")?.isSCSSNesterProperty)return be(ee(je(r.value),s));let a=e.parent;if(a.raws?.selector){let u=G(a),p=u+a.raws.selector.length;return s.originalText.slice(u,p).trim()}let o=e.grandparent;if(a.type==="value-paren_group"&&o?.type==="value-func"&&o.value==="selector"){let u=H(a.open)+1,p=G(a.close),y=s.originalText.slice(u,p).trim();return Ie(y)?[zt,y]:y}return r.value}case"value-value":case"value-root":return i("group");case"value-comment":return s.originalText.slice(G(r),H(r));case"value-comma_group":return Ko(e,s,i);case"value-paren_group":return mi(e,s,i);case"value-func":return[r.value,Re(e,"supports")&&Ho(r)?" ":"",i("group")];case"value-paren":return r.value;case"value-number":return[Vr(r.value),Fr(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Eo(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:a}=e;return Y([r.value,typeof a?.value=="string"&&a.value.endsWith("\\")||Ye(e,"url")?"":V])}case"value-string":return Er(r.raws.quote+r.value+r.raws.quote,s);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;default:throw new Bn(r,"PostCSS")}}function Ei(e,s){let i=new SyntaxError(e+" ("+s.loc.start.line+":"+s.loc.start.column+")");return Object.assign(i,s)}function Ii(e){return e!==null&&typeof e=="object"}function De(e,s,i){if(ct(e)){delete e.parent;for(let r in e)De(e[r],s,i),r==="type"&&typeof e[r]=="string"&&!e[r].startsWith(s)&&(!i||!i.test(e[r]))&&(e[r]=s+e[r])}return e}function Kr(e){if(ct(e)){delete e.parent;for(let s in e)Kr(e[s]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}function $i(e){let s;try{s=Mi(e)}catch{return{type:"selector-unknown",value:e}}return De(Kr(s),"media-")}function Li(e){if(/\/[/*]/u.test(F(0,e,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:e.trim()};let s;try{new Ni.default(i=>{s=i}).process(e)}catch{return{type:"selector-unknown",value:e}}return De(s,"selector-")}function Bi(e){return Yr(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}function Di(e){if(at(e)){for(let s=e.length-1;s>0;s--)if(e[s].type==="word"&&e[s].value==="{"&&e[s-1].type==="word"&&e[s-1].value.endsWith("#"))return!0}return!1}function Ui(e){return e.some(s=>s.type==="string"||s.type==="func"&&!s.value.endsWith("\\"))}function Gi(e,s){return!!(s.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}function Ji(e,s){let{nodes:i}=e,r={open:null,close:null,groups:[],type:"paren_group"},a=[r],o=r,u={groups:[],type:"comma_group"},p=[u];for(let y=0;y<i.length;++y){let m=i[y];if(s.parser==="scss"&&m.type==="number"&&m.unit===".."&&m.value.endsWith(".")&&(m.value=m.value.slice(0,-1),m.unit="..."),m.type==="func"&&m.value==="selector"&&(m.group.groups=[he(Yr(e).text.slice(m.group.open.sourceIndex+1,m.group.close.sourceIndex))]),m.type==="func"&&m.value==="url"){let n=m.group?.groups??[],t=[];for(let h=0;h<n.length;h++){let c=n[h];c.type==="comma_group"?t=[...t,...c.groups]:t.push(c)}(Fi(t)||!Vi(t)&&!Hi(t[0],s))&&(m.group.groups=[qi(m)])}if(m.type==="paren"&&m.value==="(")r={open:m,close:null,groups:[],type:"paren_group"},a.push(r),u={groups:[],type:"comma_group"},p.push(u);else if(er(m)){if(u.groups.length>0&&r.groups.push(u),r.close=m,p.length===1)throw new Error("Unbalanced parenthesis");p.pop(),u=fe(0,p,-1),u.groups.push(r),a.pop(),r=fe(0,a,-1)}else if(m.type==="comma"){if(y===i.length-3&&i[y+1].type==="comment"&&er(i[y+2]))continue;r.groups.push(u),u={groups:[],type:"comma_group"},p[p.length-1]=u}else u.groups.push(m)}return u.groups.length>0&&r.groups.push(u),o}function kt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?kt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(kt)}:e}function Xr(e,s){if(ct(e))for(let i in e)i!=="parent"&&(Xr(e[i],s),i==="nodes"&&(e.group=kt(Ji(e,s)),delete e[i]));return e}function Qi(e,s){if(s.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let i=null;try{i=new Wi.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}i.text=e;let r=Xr(i,s);return De(r,"value-",/^selector-/u)}function Ki(e){return Zi.has(e)}function Xi(e,s){return s.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}function es(e,s){if(ct(e)){delete e.parent;for(let o in e)es(e[o],s);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let o;if(e.value.trimEnd().endsWith("}")){let u=s.originalText.slice(0,e.source.start.offset),p="a".repeat(e.prop.length)+s.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),y=F(0,u,/[^\n]/gu," ")+p,m;s.parser==="scss"?m=ss:s.parser==="less"?m=rs:m=ts;let n;try{n=m(y,{...s})}catch{}n?.nodes?.length===1&&n.nodes[0].type==="css-rule"&&(o=n.nodes[0].nodes)}return o?e.value={type:"css-rule",nodes:o}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let i="";typeof e.selector=="string"&&(i=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),e.raws.selector=i);let r="";typeof e.value=="string"&&(r=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=r.trim());let a="";if(typeof e.params=="string"&&(a=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(a=e.raws.afterName+a),e.raws.between&&e.raws.between.trim().length>0&&(a=a+e.raws.between),a=a.trim(),e.raws.params=a),i.trim().length>0)return i.startsWith("@")&&i.endsWith(":")?e:e.mixin?(e.selector=pe(i,s),e):(ea(e,s)&&(e.isSCSSNesterProperty=!0),e.selector=he(i),e);if(r.trim().length>0){let o=r.match(ta);o&&(r=r.slice(0,o.index),e.scssDefault=!0,o[0].trim()!=="!default"&&(e.raws.scssDefault=o[0]));let u=r.match(ra);if(u&&(r=r.slice(0,u.index),e.scssGlobal=!0,u[0].trim()!=="!global"&&(e.raws.scssGlobal=u[0])),r.startsWith("progid:"))return{type:"value-unknown",value:r};e.value=pe(r,s)}if(s.parser==="less"&&e.type==="css-decl"&&r.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=he(r.slice(7,-1)))),e.type==="css-atrule"){if(s.parser==="less"){if(e.mixin){let o=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=he(o),delete e.params,e}if(e.function)return e}if(s.parser==="css"&&e.name==="custom-selector"){let o=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=o,e.selector=he(e.params.slice(o.length).trim()),delete e.params,e}if(s.parser==="less"){if(e.name.includes(":")){e.variable=!0;let o=e.name.split(":");e.name=o[0];let u=o.slice(1).join(":");e.params&&(u+=e.params),e.value=pe(u,s)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let o=e.params.slice(1);o&&(e.value=pe(o,s)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&a.length>0){let{name:o}=e,u=e.name.toLowerCase();return o==="warn"||o==="error"?(e.params={type:"media-unknown",value:a},e):o==="extend"||o==="nest"?(e.selector=he(a),delete e.params,e):o==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(a)?e.params=pe(a,s):(e.selector=he(a),delete e.params),e):Yi(u)?(e.import=!0,delete e.filename,e.params=pe(a,s),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(o)?(a=a.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),a=a.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),e.value=pe(a,s),delete e.params,e):["media","custom-media"].includes(u)?a.includes("#{")?{type:"media-unknown",value:a}:(e.params=Ri(a),e):(e.params=a,e)}}return e}function Ft(e,s,i){let{frontMatter:r,content:a}=ut(s),o;try{o=e(a,{map:!1})}catch(u){let{name:p,reason:y,line:m,column:n}=u;throw typeof m!="number"?u:ji(`${p}: ${y}`,{loc:{start:{line:m,column:n}},cause:u})}return i.originalText=s,o=es(De(o,"css-"),i),Wr(o,s),r&&(o.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),o}function ts(e,s={}){return Ft(Ci.default.default,e,s)}function rs(e,s={}){return Ft(i=>Si.default.parse(no(i)),e,s)}function ss(e,s={}){return Ft(Ai.default,e,s)}var os,Tt,is,as,us,ls,E,tr,cs,Te,ps,rr,Ot,_t,Xe,Ct,et,Le,tt,me,hs,fs,or,We,St,ze,ir,At,Et,jt,rt,ds,ms,ys,vs,gs,ws,bs,xs,It,ks,ar,ur,Pt,lr,cr,Ts,Os,Mt,_s,Cs,Ss,As,hr,fr,Es,js,dr,mr,yr,Oe,J,$t,Is,Ps,Be,Ms,$s,Rs,Ns,Ls,Ws,zs,Bs,qs,Ds,Fs,Us,Vs,Gs,te,Z,Hs,Js,Qs,Zs,Ks,Ys,Xs,en,tn,rn,sn,nn,on,an,un,ln,cn,pn,vr,hn,fn,F,mn,fe,yn,qe,gr,wr,br,st,Rt,xr,nt,ot,it,kr,Nt,Tr,_e,Or,Lt,_r,Me,gn,bn,xn,de,Wt,_n,Cn,zt,V,K,An,U,at,Sr,Ar,In,Pn,$n,Rn,Ln,Er,zn,Bn,jr,vt,Ae,ut,Un,Gn,Hn,Ee,Jn,Kn,L,Yn,Xn,eo,Mr,ua,$r,ro,Rr,G,H,oo,io,Br,ao,Ht,uo,Jt,lo,qr,mo,yo,vo,wo,To,Oo,_o,Co,Ao,Ko,Xo,xt,Ur,ei,ti,ri,si,Xt,Gr,Hr,li,pi,Jr,Pe,bi,xi,ki,Ti,Oi,_i,Zr,Ci,Si,Ai,ji,ct,Pi,Mi,Ri,Ni,he,Wi,zi,Yr,qi,Fi,Vi,Hi,er,pe,Zi,Yi,ea,ta,ra,Ut,sa,na,oa,ia,aa=ns(()=>{Gt();os=Object.create,Tt=Object.defineProperty,is=Object.getOwnPropertyDescriptor,as=Object.getOwnPropertyNames,us=Object.getPrototypeOf,ls=Object.prototype.hasOwnProperty,E=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports),tr=(e,s)=>{for(var i in s)Tt(e,i,{get:s[i],enumerable:!0})},cs=(e,s,i,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of as(s))!ls.call(e,a)&&a!==i&&Tt(e,a,{get:()=>s[a],enumerable:!(r=is(s,a))||r.enumerable});return e},Te=(e,s,i)=>(i=e!=null?os(us(e)):{},cs(s||!e||!e.__esModule?Tt(i,"default",{value:e,enumerable:!0}):i,e)),ps=E((e,s)=>{var i=String,r=function(){return{isColorSupported:!1,reset:i,bold:i,dim:i,italic:i,underline:i,inverse:i,hidden:i,strikethrough:i,black:i,red:i,green:i,yellow:i,blue:i,magenta:i,cyan:i,white:i,gray:i,bgBlack:i,bgRed:i,bgGreen:i,bgYellow:i,bgBlue:i,bgMagenta:i,bgCyan:i,bgWhite:i,blackBright:i,redBright:i,greenBright:i,yellowBright:i,blueBright:i,magentaBright:i,cyanBright:i,whiteBright:i,bgBlackBright:i,bgRedBright:i,bgGreenBright:i,bgYellowBright:i,bgBlueBright:i,bgMagentaBright:i,bgCyanBright:i,bgWhiteBright:i}};s.exports=r(),s.exports.createColors=r}),rr=E(()=>{}),Ot=E((e,s)=>{"use strict";var i=ps(),r=rr(),a=class sr extends Error{constructor(u,p,y,m,n,t){super(u),this.name="CssSyntaxError",this.reason=u,n&&(this.file=n),m&&(this.source=m),t&&(this.plugin=t),typeof p<"u"&&typeof y<"u"&&(typeof p=="number"?(this.line=p,this.column=y):(this.line=p.line,this.column=p.column,this.endLine=y.line,this.endColumn=y.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,sr)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(u){if(!this.source)return"";let p=this.source;u==null&&(u=i.isColorSupported);let y=l=>l,m=l=>l,n=l=>l;if(u){let{bold:l,gray:g,red:v}=i.createColors(!0);m=f=>l(v(f)),y=f=>g(f),r&&(n=f=>r(f))}let t=p.split(/\r?\n/),h=Math.max(this.line-3,0),c=Math.min(this.line+2,t.length),d=String(c).length;return t.slice(h,c).map((l,g)=>{let v=h+1+g,f=" "+(" "+v).slice(-d)+" | ";if(v===this.line){if(l.length>160){let O=20,b=Math.max(0,this.column-O),T=Math.max(this.column+O,this.endColumn+O),k=l.slice(b,T),x=y(f.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,O-1)).replace(/[^\t]/g," ");return m(">")+y(f)+n(k)+`
30
30
  `+x+m("^")}let w=y(f.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return m(">")+y(f)+n(l)+`
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-7MUKLZOL.js";import"./chunk-VPRTJUIN.js";o();export{n as __debug,m as __internal,j as check,k as clearConfigCache,b as default,a as doc,i as format,h as formatWithCursor,e as getFileInfo,l as getSupportInfo,c as resolveConfig,d as resolveConfigFile,g as util,f as version};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-A3VYI4LO.js";import"./chunk-VPRTJUIN.js";o();export{n as __debug,m as __internal,j as check,k as clearConfigCache,b as default,a as doc,i as format,h as formatWithCursor,e as getFileInfo,l as getSupportInfo,c as resolveConfig,d as resolveConfigFile,g as util,f as version};
@@ -0,0 +1 @@
1
+ import{J as a,K as b,L as c,M as d,N as e,O as f,P as g,Q as h,R as i,S as j,T as k,U as l,V as m}from"./chunk-MGL4YM3S.js";import"./chunk-YS6VOQ7I.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-6YAXFS6V.js";import"./chunk-BHWEA4V2.js";import"./chunk-PD5ZHJWI.js";import"./chunk-3YWUSKWF.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-H4W4DFKK.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-4EXYYBQ6.js";import"./chunk-VPL2NDH6.js";import"./chunk-7JESXDF2.js";import"./chunk-5Y7GIF2W.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-UARVYVLN.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{d as captureCommandWithExitCode,b as captureOutput,c as captureOutputWithExitCode,f as exec,e as execCommand,j as isCI,l as isStdinPiped,k as isWsl,a as openURL,m as readStdinString,g as sleep,h as terminalSupportsHyperlinks,i as terminalSupportsPrompting};