@shopify/cli 4.2.0 → 4.3.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/dist/{acorn-QBS5IYTX.js → acorn-7M27BPGP.js} +1 -1
  2. package/dist/analytics-JH64XI2J.js +1 -0
  3. package/dist/analytics-MEGKKFGF.js +1 -0
  4. package/dist/{angular-UTTM4Y4S.js → angular-DW5TQVCM.js} +1 -1
  5. package/dist/{babel-JS32NLHY.js → babel-I2RLWM7N.js} +1 -1
  6. package/dist/bootstrap.js +1 -1
  7. package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
  8. package/dist/{chunk-NBYS6YQ2.js → chunk-25HJX3L2.js} +1 -1
  9. package/dist/{chunk-ZZYFG22L.js → chunk-2EHBJWC6.js} +1 -1
  10. package/dist/{chunk-INFBVFMU.js → chunk-2GAFKG64.js} +1 -1
  11. package/dist/{chunk-F6T3UBBL.js → chunk-2GU7OY3H.js} +1 -1
  12. package/dist/{chunk-MIO2CV3Q.js → chunk-2K7FGAT6.js} +1 -1
  13. package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
  14. package/dist/{chunk-MKE434RB.js → chunk-2RBIR3NM.js} +1 -1
  15. package/dist/{chunk-4Z2WYNTE.js → chunk-2TMQG2UT.js} +1 -1
  16. package/dist/{chunk-FTN7Y6HD.js → chunk-2XZBQZ5R.js} +1 -1
  17. package/dist/{chunk-J6VTZEE2.js → chunk-33OHQUHZ.js} +1 -1
  18. package/dist/chunk-3AOQKI4B.js +1 -0
  19. package/dist/{chunk-4EXYYBQ6.js → chunk-3SPDFV5D.js} +1 -1
  20. package/dist/{chunk-X2TC7S57.js → chunk-3YDYZ232.js} +2 -2
  21. package/dist/{chunk-FFYYJKF7.js → chunk-4FFPTEKD.js} +1 -1
  22. package/dist/{chunk-IWCPQD7X.js → chunk-4J32OHLY.js} +1 -1
  23. package/dist/chunk-4QTEPWEJ.js +283 -0
  24. package/dist/{chunk-QLQGHMVU.js → chunk-57PPQKJT.js} +1 -1
  25. package/dist/{chunk-DCK2FX6J.js → chunk-5BKCIDMS.js} +1 -1
  26. package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
  27. package/dist/{chunk-A6X2IVGT.js → chunk-5FFHQTRC.js} +1 -1
  28. package/dist/{chunk-UCLSPAVX.js → chunk-5FVB7JHP.js} +1 -1
  29. package/dist/{chunk-HD5TYIDZ.js → chunk-5H3VTG77.js} +1 -1
  30. package/dist/{chunk-6TEXPRI2.js → chunk-5O43334U.js} +1 -1
  31. package/dist/{chunk-MZJRNFAU.js → chunk-5XDQ76DQ.js} +1 -1
  32. package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
  33. package/dist/chunk-6JKGUQRD.js +1 -0
  34. package/dist/chunk-6KETAPWL.js +1 -0
  35. package/dist/{chunk-UOQQNAHX.js → chunk-6LWOWDF4.js} +1 -1
  36. package/dist/{chunk-CE6FKJFS.js → chunk-7572RLUP.js} +1 -1
  37. package/dist/{chunk-XFKCDWXB.js → chunk-762JWOWJ.js} +1 -1
  38. package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
  39. package/dist/{chunk-23AMFHXC.js → chunk-7D45IAMQ.js} +1 -1
  40. package/dist/{chunk-VPL2NDH6.js → chunk-7FQFEB33.js} +5 -5
  41. package/dist/{chunk-BPVZ7E63.js → chunk-7LV55VWE.js} +1 -1
  42. package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
  43. package/dist/{chunk-IWE4RUI7.js → chunk-A27NZMWB.js} +1 -1
  44. package/dist/{chunk-7JESXDF2.js → chunk-A4SBXDZB.js} +1 -1
  45. package/dist/{chunk-AP3RFOPL.js → chunk-A5HKAMAC.js} +1 -1
  46. package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
  47. package/dist/{chunk-DNLOSMHL.js → chunk-AERKD4TO.js} +1 -1
  48. package/dist/{chunk-WUK5NQSX.js → chunk-ANBOLDON.js} +2 -2
  49. package/dist/{chunk-TLSAQ6FG.js → chunk-AO3RFGNV.js} +1 -1
  50. package/dist/{chunk-KU5OPV7U.js → chunk-ATSMK66C.js} +1 -1
  51. package/dist/{chunk-LTWXTDDR.js → chunk-AU5EZQW7.js} +1 -1
  52. package/dist/{chunk-2YXKZWYW.js → chunk-AVD3INWF.js} +1 -1
  53. package/dist/chunk-AWEB5AQM.js +1 -0
  54. package/dist/{chunk-X4CV6TRE.js → chunk-AXNAGI32.js} +1 -1
  55. package/dist/{chunk-FQDRVPCY.js → chunk-BL46CZ2M.js} +1 -1
  56. package/dist/{chunk-OKOYLEA7.js → chunk-BQWK3C47.js} +3 -3
  57. package/dist/{chunk-C3LZPAAH.js → chunk-CEHXOWA6.js} +1 -1
  58. package/dist/{chunk-N5ROZKPZ.js → chunk-CFOXXOO2.js} +1 -1
  59. package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
  60. package/dist/{chunk-NO5KVFTV.js → chunk-CV5EQGES.js} +3 -3
  61. package/dist/{chunk-H4W4DFKK.js → chunk-CX5CC6P5.js} +1 -1
  62. package/dist/{chunk-OKNBZSGN.js → chunk-DCLUZFT7.js} +1 -1
  63. package/dist/{chunk-2EJCY4CE.js → chunk-DNXYKGV2.js} +1 -1
  64. package/dist/{chunk-IOQQUHST.js → chunk-DTIWUT2T.js} +1 -1
  65. package/dist/{chunk-6TORWTD7.js → chunk-DYNH5SKT.js} +1 -1
  66. package/dist/{chunk-D3DDLLNF.js → chunk-DZQYG32N.js} +1 -1
  67. package/dist/{chunk-QTGMS62F.js → chunk-E7DHELFH.js} +1 -1
  68. package/dist/{chunk-PUTZFF2Z.js → chunk-EH7ZTFS4.js} +3 -3
  69. package/dist/{chunk-YS6VOQ7I.js → chunk-EJDWYASP.js} +1 -1
  70. package/dist/chunk-EKVTNWHM.js +1 -0
  71. package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
  72. package/dist/{chunk-6ZIOYXEF.js → chunk-EVZA2TCI.js} +1 -1
  73. package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
  74. package/dist/{chunk-CW7WJZKR.js → chunk-FIYAECXH.js} +1 -1
  75. package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
  76. package/dist/{chunk-7DVOSOEP.js → chunk-FOFJBRSL.js} +1 -1
  77. package/dist/{chunk-D656BV5Z.js → chunk-FQ5ZZX2G.js} +1 -1
  78. package/dist/{chunk-6YHJ554P.js → chunk-G2LVUM7N.js} +1 -1
  79. package/dist/{chunk-NPM3MFB3.js → chunk-G2OHWAY2.js} +1 -1
  80. package/dist/chunk-G3JJLXPH.js +1 -0
  81. package/dist/{chunk-57N2DFIF.js → chunk-G3RWLAOG.js} +1 -1
  82. package/dist/{chunk-4V4DQ6W7.js → chunk-G4OQABDT.js} +30 -30
  83. package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
  84. package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
  85. package/dist/{chunk-2N4O33VM.js → chunk-GDHD3TGC.js} +1 -1
  86. package/dist/{chunk-N3YWHJMB.js → chunk-GJXINXSU.js} +2 -2
  87. package/dist/{chunk-RAH5NW3R.js → chunk-GWHV62YT.js} +1 -1
  88. package/dist/{chunk-VA5IUGZV.js → chunk-HCTZN7L4.js} +1 -1
  89. package/dist/{chunk-LITB5QQX.js → chunk-HDC5V7RY.js} +1 -1
  90. package/dist/{chunk-K7K6GNF6.js → chunk-HIQHYPLU.js} +1 -1
  91. package/dist/{chunk-VEDZUOVI.js → chunk-HOSFU6UP.js} +3 -3
  92. package/dist/{chunk-HSYRYSX4.js → chunk-I22ZTRKK.js} +1 -1
  93. package/dist/{chunk-KLA7AWG6.js → chunk-I4R7TML2.js} +1 -1
  94. package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
  95. package/dist/{chunk-TNQXTZAX.js → chunk-IWOTLFOY.js} +1 -1
  96. package/dist/{chunk-PBTXPBI6.js → chunk-J3H4LPN6.js} +3 -3
  97. package/dist/{chunk-6HZTMQD6.js → chunk-J3HX6ZGD.js} +1 -1
  98. package/dist/{chunk-OYP7DKPU.js → chunk-J3JPJCWP.js} +1 -1
  99. package/dist/{chunk-E2YBU6D3.js → chunk-J5BRKYGE.js} +2 -2
  100. package/dist/{chunk-5TIJLYZU.js → chunk-JAWKLBOB.js} +1 -1
  101. package/dist/{chunk-6AJZKIZ3.js → chunk-JAWOP4HJ.js} +1 -1
  102. package/dist/{chunk-TQGTEVSR.js → chunk-JCIN73BE.js} +1 -1
  103. package/dist/{chunk-C6ABJCRG.js → chunk-JEZ3PGVC.js} +1 -1
  104. package/dist/{chunk-TGACBJIY.js → chunk-JJ6RM54S.js} +1 -1
  105. package/dist/{chunk-TXUTT6UA.js → chunk-JK3NIHTX.js} +1 -1
  106. package/dist/{chunk-OLOBQ42K.js → chunk-JLE4NBMT.js} +1 -1
  107. package/dist/{chunk-7KJ5TBWG.js → chunk-JSOGPMWB.js} +1 -1
  108. package/dist/{chunk-L2VSSINY.js → chunk-JUYJZUYU.js} +1 -1
  109. package/dist/chunk-KRQGLK2Q.js +3 -0
  110. package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
  111. package/dist/{chunk-FBVBO5YQ.js → chunk-L2PC4MUV.js} +1 -1
  112. package/dist/{chunk-SSM346XI.js → chunk-LCZDC6EE.js} +1 -1
  113. package/dist/{chunk-NEZEHBT2.js → chunk-LXVORHCQ.js} +1 -1
  114. package/dist/{chunk-DERA4K6A.js → chunk-M2YINBHF.js} +1 -1
  115. package/dist/{chunk-VT77EFRL.js → chunk-M7YFD4EV.js} +6 -6
  116. package/dist/{chunk-DCBYHVKW.js → chunk-MEIEEENL.js} +1 -1
  117. package/dist/{chunk-7BFDUVOG.js → chunk-MIDYZPO4.js} +1 -1
  118. package/dist/{chunk-I3LX25MB.js → chunk-MINZGZ4N.js} +1 -1
  119. package/dist/{chunk-U3ZG675O.js → chunk-MMIHHCMW.js} +1 -1
  120. package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
  121. package/dist/{chunk-C2FFA4O4.js → chunk-MRS6LAY7.js} +1 -1
  122. package/dist/{chunk-IVGWFPMA.js → chunk-N3CNWCC2.js} +1 -1
  123. package/dist/{chunk-NXL6LDJU.js → chunk-N3NE4MVN.js} +1 -1
  124. package/dist/{chunk-WNGV4JQS.js → chunk-N3YTDGFY.js} +1 -1
  125. package/dist/{chunk-A5SQCM63.js → chunk-N5LVGFDS.js} +1 -1
  126. package/dist/{chunk-GVITHCQJ.js → chunk-NILXAUUT.js} +1 -1
  127. package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
  128. package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
  129. package/dist/{chunk-MGL4YM3S.js → chunk-NTRAWIEJ.js} +4 -4
  130. package/dist/{chunk-2WNODIWJ.js → chunk-NWXDOCL5.js} +1 -1
  131. package/dist/{chunk-K77WAKOB.js → chunk-OU3M32A2.js} +1 -1
  132. package/dist/chunk-OU4SKQTC.js +5 -0
  133. package/dist/{chunk-4KRT35A2.js → chunk-OXJBYKMX.js} +1 -1
  134. package/dist/{chunk-LCCMXY6N.js → chunk-OZBY45KT.js} +1 -1
  135. package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
  136. package/dist/{chunk-XP6IRAZN.js → chunk-PCCK4YTE.js} +1 -1
  137. package/dist/{chunk-2VLMN5QZ.js → chunk-PFGYC53K.js} +1 -1
  138. package/dist/{chunk-YGMVL6NZ.js → chunk-PMS4MNHB.js} +2 -2
  139. package/dist/{chunk-OA4P6AKS.js → chunk-PNP5OKNZ.js} +1 -1
  140. package/dist/{chunk-XX343DDG.js → chunk-PXHY753L.js} +1 -1
  141. package/dist/{chunk-UURFVUAH.js → chunk-Q73GEVSJ.js} +1 -1
  142. package/dist/{chunk-M2TJICTB.js → chunk-Q77MM2N2.js} +1 -1
  143. package/dist/{chunk-XDAOLCPN.js → chunk-Q7C44DX5.js} +1 -1
  144. package/dist/chunk-QDVJJKLB.js +1 -0
  145. package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
  146. package/dist/{chunk-LQMSF3F7.js → chunk-RKDZGK5K.js} +1 -1
  147. package/dist/{chunk-VYXVYOIJ.js → chunk-RSRYC5ZF.js} +1 -1
  148. package/dist/{chunk-HLMFVORT.js → chunk-S22NCNAJ.js} +1 -1
  149. package/dist/{chunk-UARVYVLN.js → chunk-S5IFJ737.js} +2 -2
  150. package/dist/{chunk-42RMKTCJ.js → chunk-S6B2ADVR.js} +1 -1
  151. package/dist/chunk-S7F5KFQP.js +1 -0
  152. package/dist/{chunk-UBKVCI7A.js → chunk-SSCYLDSX.js} +1 -1
  153. package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
  154. package/dist/{chunk-LKS47US7.js → chunk-T3ERXB7F.js} +1 -1
  155. package/dist/{chunk-PLQFX5ZP.js → chunk-T4IV643Z.js} +1 -1
  156. package/dist/{chunk-BECEP46I.js → chunk-T4NS63K4.js} +1 -1
  157. package/dist/{chunk-3YWUSKWF.js → chunk-T6CC5WUU.js} +1 -1
  158. package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
  159. package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
  160. package/dist/{chunk-XXE7667M.js → chunk-TP7E54WN.js} +1 -1
  161. package/dist/chunk-TPCG6DCA.js +1 -0
  162. package/dist/{chunk-2KH2S7PI.js → chunk-TRYWVIVJ.js} +1 -1
  163. package/dist/chunk-TU47HMTL.js +1 -0
  164. package/dist/{chunk-HHXHOQQP.js → chunk-TUNUEOHO.js} +1 -1
  165. package/dist/{chunk-PS25FEBF.js → chunk-TY6BZTG3.js} +1 -1
  166. package/dist/chunk-TYMYIUIQ.js +1 -0
  167. package/dist/chunk-UB26DGTR.js +6 -0
  168. package/dist/{chunk-HJSYHK4S.js → chunk-UC7KMA6W.js} +1 -1
  169. package/dist/{chunk-FD5S2O6M.js → chunk-UOHNRH6E.js} +1 -1
  170. package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
  171. package/dist/{chunk-M4LOKANA.js → chunk-USLYL5AC.js} +1 -1
  172. package/dist/{chunk-VICNWPLQ.js → chunk-UTO4Z6P6.js} +12 -12
  173. package/dist/{chunk-F47MFBKM.js → chunk-UU5P2IYU.js} +1 -1
  174. package/dist/chunk-UYSF234H.js +1 -0
  175. package/dist/chunk-VE35YELD.js +1 -0
  176. package/dist/{chunk-6YAXFS6V.js → chunk-VI34CKV6.js} +1 -1
  177. package/dist/{chunk-M4V2OQAX.js → chunk-VJ6KDRZI.js} +1 -1
  178. package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
  179. package/dist/chunk-VKWPEFWQ.js +1 -0
  180. package/dist/chunk-VPPWSKOY.js +1 -0
  181. package/dist/chunk-VRJTLVG3.js +1 -0
  182. package/dist/chunk-VUMUCNI7.js +1 -0
  183. package/dist/chunk-W7DDV2EY.js +1 -0
  184. package/dist/{chunk-RL5BWZ7D.js → chunk-WA3YC5W4.js} +1 -1
  185. package/dist/{chunk-MFLBTJO7.js → chunk-WHNWE7P2.js} +1 -1
  186. package/dist/{chunk-R6JNXEB3.js → chunk-WVRGCNBZ.js} +1 -1
  187. package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
  188. package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
  189. package/dist/{chunk-PSQFZAF3.js → chunk-XWPPBOGF.js} +1 -1
  190. package/dist/chunk-YIRFEW5M.js +1 -0
  191. package/dist/{chunk-RGNAWKD7.js → chunk-YL3TYQGT.js} +1 -1
  192. package/dist/{chunk-A3VYI4LO.js → chunk-YLQ3LNNY.js} +3 -3
  193. package/dist/{chunk-MA52QGHP.js → chunk-YMAWEIUR.js} +1 -1
  194. package/dist/{chunk-6LK6ZP3Q.js → chunk-YPBCSDFQ.js} +1 -1
  195. package/dist/{chunk-3BRUCKZ2.js → chunk-YSIBRY6C.js} +1 -1
  196. package/dist/{chunk-FGVC22EY.js → chunk-YVQXEPHY.js} +1 -1
  197. package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
  198. package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
  199. package/dist/chunk-ZGJ3DFTQ.js +9 -0
  200. package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
  201. package/dist/{chunk-IXUVSFW2.js → chunk-ZM75DSIW.js} +1 -1
  202. package/dist/{chunk-3V63X7WZ.js → chunk-ZUKLGZOU.js} +1 -1
  203. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  204. package/dist/cli/commands/app/build.js +1 -1
  205. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  206. package/dist/cli/commands/app/bulk/execute.js +1 -1
  207. package/dist/cli/commands/app/bulk/status.js +1 -1
  208. package/dist/cli/commands/app/config/link.js +1 -1
  209. package/dist/cli/commands/app/config/pull.js +1 -1
  210. package/dist/cli/commands/app/config/use.js +1 -1
  211. package/dist/cli/commands/app/config/validate.js +1 -1
  212. package/dist/cli/commands/app/demo/watcher.js +1 -1
  213. package/dist/cli/commands/app/deploy.js +1 -1
  214. package/dist/cli/commands/app/dev/clean.js +1 -1
  215. package/dist/cli/commands/app/dev.js +1 -1
  216. package/dist/cli/commands/app/env/pull.js +1 -1
  217. package/dist/cli/commands/app/env/show.js +1 -1
  218. package/dist/cli/commands/app/execute.js +1 -1
  219. package/dist/cli/commands/app/function/build.js +1 -1
  220. package/dist/cli/commands/app/function/info.js +1 -1
  221. package/dist/cli/commands/app/function/replay.js +1 -1
  222. package/dist/cli/commands/app/function/run.js +1 -1
  223. package/dist/cli/commands/app/function/schema.js +1 -1
  224. package/dist/cli/commands/app/function/typegen.js +1 -1
  225. package/dist/cli/commands/app/generate/extension.js +1 -1
  226. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  227. package/dist/cli/commands/app/import-extensions.js +1 -1
  228. package/dist/cli/commands/app/info.js +1 -1
  229. package/dist/cli/commands/app/init.js +1 -1
  230. package/dist/cli/commands/app/logs.js +1 -1
  231. package/dist/cli/commands/app/release.js +1 -1
  232. package/dist/cli/commands/app/versions/list.js +1 -1
  233. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  234. package/dist/cli/commands/auth/login.js +1 -1
  235. package/dist/cli/commands/auth/logout.js +1 -1
  236. package/dist/cli/commands/cache/clear.js +1 -1
  237. package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
  238. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  239. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  240. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  241. package/dist/cli/commands/debug/command-flags.js +1 -1
  242. package/dist/cli/commands/doc/fetch.d.ts +12 -0
  243. package/dist/cli/commands/doc/fetch.js +1 -0
  244. package/dist/cli/commands/doc/search.d.ts +13 -0
  245. package/dist/cli/commands/doc/search.js +1 -0
  246. package/dist/cli/commands/docs/generate.js +1 -1
  247. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  248. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  249. package/dist/cli/commands/help.js +1 -1
  250. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  251. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  252. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  253. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  254. package/dist/cli/commands/notifications/generate.js +1 -1
  255. package/dist/cli/commands/notifications/list.js +1 -1
  256. package/dist/cli/commands/organization/list.js +1 -1
  257. package/dist/cli/commands/search.d.ts +4 -0
  258. package/dist/cli/commands/search.js +1 -1
  259. package/dist/cli/commands/theme/check.js +1 -1
  260. package/dist/cli/commands/theme/console.js +1 -1
  261. package/dist/cli/commands/theme/delete.js +1 -1
  262. package/dist/cli/commands/theme/dev.js +1 -1
  263. package/dist/cli/commands/theme/duplicate.js +1 -1
  264. package/dist/cli/commands/theme/info.js +1 -1
  265. package/dist/cli/commands/theme/init.js +1 -1
  266. package/dist/cli/commands/theme/language-server.js +1 -1
  267. package/dist/cli/commands/theme/list.js +1 -1
  268. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  269. package/dist/cli/commands/theme/open.js +1 -1
  270. package/dist/cli/commands/theme/package.js +1 -1
  271. package/dist/cli/commands/theme/preview.js +1 -1
  272. package/dist/cli/commands/theme/profile.js +1 -1
  273. package/dist/cli/commands/theme/publish.js +1 -1
  274. package/dist/cli/commands/theme/pull.js +1 -1
  275. package/dist/cli/commands/theme/push.js +1 -1
  276. package/dist/cli/commands/theme/rename.js +1 -1
  277. package/dist/cli/commands/theme/share.js +1 -1
  278. package/dist/cli/commands/upgrade.js +1 -1
  279. package/dist/cli/commands/version.js +1 -1
  280. package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
  281. package/dist/cli/services/commands/doc/fetch.js +45 -0
  282. package/dist/cli/services/commands/doc/search.d.ts +1 -0
  283. package/dist/cli/services/commands/doc/search.js +47 -0
  284. package/dist/command-registry.js +1 -1
  285. package/dist/{conf-store-6QNH5BID.js → conf-store-UY3MDGGA.js} +1 -1
  286. package/dist/{custom-oclif-loader-TSPWW5YF.js → custom-oclif-loader-3AICQCNU.js} +1 -1
  287. package/dist/deprecations-KNUMDRIU.js +1 -0
  288. package/dist/{devtools-HCKYP7DQ.js → devtools-37DE4MUR.js} +1 -1
  289. package/dist/{devtools-VEZNCV6W.js → devtools-WAWU5KQL.js} +1 -1
  290. package/dist/dist-C5IV2YDQ.js +1 -0
  291. package/dist/dist-VL4KZWV2.js +1 -0
  292. package/dist/environments-YPRVO2CF.js +1 -0
  293. package/dist/error-XRBQTNFM.js +1 -0
  294. package/dist/error-handler-NI7D6GSY.js +1 -0
  295. package/dist/{estree-BYYJYS3A.js → estree-JV5M77BA.js} +1 -1
  296. package/dist/{flow-M3Q2HPQT.js → flow-N4JYPYMQ.js} +1 -1
  297. package/dist/{fs-YMUQ6JLE.js → fs-LJWVNO4H.js} +1 -1
  298. package/dist/{glimmer-3DEJJGOJ.js → glimmer-JEV3BXHR.js} +1 -1
  299. package/dist/{graphql-A4HHE3MB.js → graphql-DTF6MHYF.js} +1 -1
  300. package/dist/hooks/app-init.js +1 -1
  301. package/dist/hooks/did-you-mean.js +1 -1
  302. package/dist/hooks/hydrogen-init.js +1 -1
  303. package/dist/hooks/plugin-plugins.js +1 -1
  304. package/dist/hooks/postrun.js +1 -1
  305. package/dist/hooks/prerun.js +1 -1
  306. package/dist/hooks/public-metadata.js +1 -1
  307. package/dist/hooks/sensitive-metadata.js +1 -1
  308. package/dist/hooks/tunnel-provider.js +1 -1
  309. package/dist/hooks/tunnel-start.js +1 -1
  310. package/dist/{html-HETICZ2F.js → html-LVOJ3RQS.js} +1 -1
  311. package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
  312. package/dist/index.js +28 -7
  313. package/dist/is-global-W6ALVC5L.js +1 -0
  314. package/dist/{is-wsl-TN2CXYI7.js → is-wsl-UEMXYJPN.js} +1 -1
  315. package/dist/{latest-version-6OAYLOBL.js → latest-version-32HXMWJ7.js} +1 -1
  316. package/dist/lib-AIKYSHWL.js +1 -0
  317. package/dist/lib-O5EZ4NVT.js +1 -0
  318. package/dist/lib-Q4PWEMFD.js +1 -0
  319. package/dist/lib-QJDPPAWN.js +1 -0
  320. package/dist/{local-GPDAXHE6.js → local-GKEWZAIV.js} +1 -1
  321. package/dist/local-storage-ZOZMA22B.js +1 -0
  322. package/dist/{markdown-5TVCXM53.js → markdown-J6CE6POI.js} +1 -1
  323. package/dist/{meriyah-23OZNYWC.js → meriyah-PNQQZQYI.js} +1 -1
  324. package/dist/metadata-UEUN64TK.js +1 -0
  325. package/dist/{morph-I35VYPBH.js → morph-CGOZEPPZ.js} +1 -1
  326. package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
  327. package/dist/{node-package-manager-GO4ZRTKQ.js → node-package-manager-4ASQQIIF.js} +1 -1
  328. package/dist/notifications-system-HLXJCAMG.js +1 -0
  329. package/dist/{npa-VNALV7XY.js → npa-A4YSCQ5Q.js} +1 -1
  330. package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
  331. package/dist/out-CDCY25QC.js +1 -0
  332. package/dist/{output-7IYOMPSA.js → output-S6E37GJQ.js} +1 -1
  333. package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
  334. package/dist/{postcss-IIK6CGAW.js → postcss-Q36SHOML.js} +1 -1
  335. package/dist/{prettier-ZSBNNQTK.js → prettier-EGVCP5CY.js} +1 -1
  336. package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
  337. package/dist/system-YQZNGSWB.js +1 -0
  338. package/dist/tsconfig.tsbuildinfo +1 -1
  339. package/dist/typescript-5R4Y7PXE.js +1 -0
  340. package/dist/{typescript-YKZ232QT.js → typescript-WYPDGPSV.js} +1 -1
  341. package/dist/ui-D2FFWRK7.js +1 -0
  342. package/dist/upgrade-TVTCFMXM.js +1 -0
  343. package/dist/version-J6MDN7BZ.js +1 -0
  344. package/dist/version-RIRW5EXQ.js +1 -0
  345. package/dist/{workerd-ST6XJKUN.js → workerd-QOTT6UCO.js} +1 -1
  346. package/dist/{yaml-SJKIH3VD.js → yaml-6KWCJ64X.js} +1 -1
  347. package/oclif.manifest.json +304 -6
  348. package/package.json +11 -8
  349. package/dist/analytics-CX22YIUZ.js +0 -1
  350. package/dist/analytics-UBWQIQYF.js +0 -1
  351. package/dist/chunk-4ZGSSQC6.js +0 -1
  352. package/dist/chunk-6SXOUZ7V.js +0 -1
  353. package/dist/chunk-ATPFTRCC.js +0 -1
  354. package/dist/chunk-AWQ5AR2K.js +0 -5
  355. package/dist/chunk-BHWEA4V2.js +0 -1
  356. package/dist/chunk-CCEA5CUX.js +0 -1
  357. package/dist/chunk-FP2NOZSD.js +0 -1
  358. package/dist/chunk-FSTCEWXX.js +0 -1
  359. package/dist/chunk-K3PGC6DC.js +0 -1
  360. package/dist/chunk-KFCGMT67.js +0 -1
  361. package/dist/chunk-KQU6HOJ3.js +0 -1
  362. package/dist/chunk-NP4UFPAX.js +0 -9
  363. package/dist/chunk-RVMB5LC2.js +0 -1
  364. package/dist/chunk-T5MK7ZSF.js +0 -1
  365. package/dist/chunk-UOQ75BL3.js +0 -1
  366. package/dist/chunk-UWJ73J4B.js +0 -1
  367. package/dist/chunk-VPRTJUIN.js +0 -1
  368. package/dist/chunk-WCWNI3ZV.js +0 -283
  369. package/dist/chunk-XEFQQPL4.js +0 -1
  370. package/dist/chunk-YJB7P2HC.js +0 -1
  371. package/dist/chunk-YOZNRLFC.js +0 -1
  372. package/dist/deprecations-F6JWVV2W.js +0 -1
  373. package/dist/dist-4BD6KOLR.js +0 -1
  374. package/dist/dist-AUABCVPI.js +0 -1
  375. package/dist/environments-RGLI75HN.js +0 -1
  376. package/dist/error-OZALZZ3U.js +0 -1
  377. package/dist/error-handler-V7LSEXHM.js +0 -1
  378. package/dist/is-global-BLIZ57HQ.js +0 -1
  379. package/dist/lib-AK5EOIKR.js +0 -1
  380. package/dist/lib-LVUMLZ4H.js +0 -1
  381. package/dist/lib-ME6554NA.js +0 -1
  382. package/dist/lib-WU3FEA6I.js +0 -1
  383. package/dist/local-storage-P66KJG6I.js +0 -1
  384. package/dist/metadata-TRH25EHU.js +0 -1
  385. package/dist/notifications-system-HM6JZ6WJ.js +0 -1
  386. package/dist/out-WLY6KV4B.js +0 -1
  387. package/dist/system-X5C4EQQH.js +0 -1
  388. package/dist/typescript-K5CWIA4V.js +0 -1
  389. package/dist/ui-H62CMRLG.js +0 -1
  390. package/dist/upgrade-EEOPH464.js +0 -1
  391. package/dist/version-76NBQR4K.js +0 -1
  392. package/dist/version-IGSEISUA.js +0 -1
@@ -1 +1 @@
1
- import{a as vt}from"./chunk-NKQBEFPS.js";import{a as Ee,b as pe,c as ge,e as Ft}from"./chunk-PRVQAHWI.js";import{a as w,c as S,g}from"./chunk-VPRTJUIN.js";var xt=S((ai,Lt)=>{"use strict";g();var A=w("fs"),{Readable:ye}=w("stream"),v=w("path"),{promisify:V}=w("util"),$=Ft(),be=V(A.readdir),Se=V(A.stat),At=V(A.lstat),Re=V(A.realpath),Te="!",kt="READDIRP_RECURSIVE_ERROR",De=new Set(["ENOENT","EPERM","EACCES","ELOOP",kt]),X="files",Wt="directories",C="files_directories",x="all",It=[X,Wt,C,x],Pe=c=>De.has(c.code),[Nt,Fe]=process.versions.node.split(".").slice(0,2).map(c=>Number.parseInt(c,10)),ve=process.platform==="win32"&&(Nt>10||Nt===10&&Fe>=5),Ot=c=>{if(c!==void 0){if(typeof c=="function")return c;if(typeof c=="string"){let t=$(c.trim());return e=>t(e.basename)}if(Array.isArray(c)){let t=[],e=[];for(let s of c){let i=s.trim();i.charAt(0)===Te?e.push($(i.slice(1))):t.push($(i))}return e.length>0?t.length>0?s=>t.some(i=>i(s.basename))&&!e.some(i=>i(s.basename)):s=>!e.some(i=>i(s.basename)):s=>t.some(i=>i(s.basename))}}},M=class c extends ye{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:X,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let e={...c.defaultOptions,...t},{root:s,type:i}=e;this._fileFilter=Ot(e.fileFilter),this._directoryFilter=Ot(e.directoryFilter);let o=e.lstat?At:Se;ve?this._stat=n=>o(n,{bigint:!0}):this._stat=o,this._maxDepth=e.depth,this._wantsDir=[Wt,C,x].includes(i),this._wantsFile=[X,C,x].includes(i),this._wantsEverything=i===x,this._root=v.resolve(s),this._isDirent="Dirent"in A&&!e.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:e,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let o=i.splice(0,t).map(n=>this._formatEntry(n,e));for(let n of await Promise.all(o)){if(this.destroyed)return;let r=await this._getEntryType(n);r==="directory"&&this._directoryFilter(n)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(n.fullPath,s+1)),this._wantsDir&&(this.push(n),t--)):(r==="file"||this._includeAsFile(n))&&this._fileFilter(n)&&this._wantsFile&&(this.push(n),t--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(t,e){let s;try{s=await be(t,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:e,path:t}}async _formatEntry(t,e){let s;try{let i=this._isDirent?t.name:t,o=v.resolve(v.join(e,i));s={path:v.relative(this._root,o),fullPath:o,basename:i},s[this._statsProp]=this._isDirent?t:await this._stat(o)}catch(i){this._onError(i)}return s}_onError(t){Pe(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let e=t&&t[this._statsProp];if(e){if(e.isFile())return"file";if(e.isDirectory())return"directory";if(e&&e.isSymbolicLink()){let s=t.fullPath;try{let i=await Re(s),o=await At(i);if(o.isFile())return"file";if(o.isDirectory()){let n=i.length;if(s.startsWith(i)&&s.substr(n,1)===v.sep){let r=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return r.code=kt,this._onError(r)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(t){let e=t&&t[this._statsProp];return e&&this._wantsEverything&&!e.isDirectory()}},D=(c,t={})=>{let e=t.entryType||t.type;if(e==="both"&&(e=C),e&&(t.type=e),c){if(typeof c!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(e&&!It.includes(e))throw new Error(`readdirp: Invalid type passed. Use one of ${It.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=c,new M(t)},Ae=(c,t={})=>new Promise((e,s)=>{let i=[];D(c,t).on("data",o=>i.push(o)).on("end",()=>e(i)).on("error",o=>s(o))});D.promise=Ae;D.ReaddirpStream=M;D.default=D;Lt.exports=D});var Yt=S((Ht,Gt)=>{"use strict";g();Object.defineProperty(Ht,"__esModule",{value:!0});var Vt=Ft(),Ie=vt(),Ct="!",Ne={returnIndex:!1},Oe=c=>Array.isArray(c)?c:[c],ke=(c,t)=>{if(typeof c=="function")return c;if(typeof c=="string"){let e=Vt(c,t);return s=>c===s||e(s)}return c instanceof RegExp?e=>c.test(e):e=>!1},Mt=(c,t,e,s)=>{let i=Array.isArray(e),o=i?e[0]:e;if(!i&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let n=Ie(o,!1);for(let a=0;a<t.length;a++){let l=t[a];if(l(n))return s?-1:!1}let r=i&&[n].concat(e.slice(1));for(let a=0;a<c.length;a++){let l=c[a];if(i?l(...r):l(n))return s?a:!0}return s?-1:!1},Q=(c,t,e=Ne)=>{if(c==null)throw new TypeError("anymatch: specify first argument");let s=typeof e=="boolean"?{returnIndex:e}:e,i=s.returnIndex||!1,o=Oe(c),n=o.filter(a=>typeof a=="string"&&a.charAt(0)===Ct).map(a=>a.slice(1)).map(a=>Vt(a,s)),r=o.filter(a=>typeof a!="string"||typeof a=="string"&&a.charAt(0)!==Ct).map(a=>ke(a,s));return t==null?(a,l=!1)=>Mt(r,n,a,typeof l=="boolean"?l:!1):Mt(r,n,t,i)};Q.default=Q;Gt.exports=Q});var zt=S((li,We)=>{We.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Ut=S((di,jt)=>{g();jt.exports=zt()});var Bt=S((ui,qt)=>{"use strict";g();var Le=w("path"),xe=Ut(),Ce=new Set(xe);qt.exports=c=>Ce.has(Le.extname(c).slice(1).toLowerCase())});var H=S(u=>{"use strict";g();var{sep:Me}=w("path"),{platform:J}=process,Ve=w("os");u.EV_ALL="all";u.EV_READY="ready";u.EV_ADD="add";u.EV_CHANGE="change";u.EV_ADD_DIR="addDir";u.EV_UNLINK="unlink";u.EV_UNLINK_DIR="unlinkDir";u.EV_RAW="raw";u.EV_ERROR="error";u.STR_DATA="data";u.STR_END="end";u.STR_CLOSE="close";u.FSEVENT_CREATED="created";u.FSEVENT_MODIFIED="modified";u.FSEVENT_DELETED="deleted";u.FSEVENT_MOVED="moved";u.FSEVENT_CLONED="cloned";u.FSEVENT_UNKNOWN="unknown";u.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;u.FSEVENT_TYPE_FILE="file";u.FSEVENT_TYPE_DIRECTORY="directory";u.FSEVENT_TYPE_SYMLINK="symlink";u.KEY_LISTENERS="listeners";u.KEY_ERR="errHandlers";u.KEY_RAW="rawEmitters";u.HANDLER_KEYS=[u.KEY_LISTENERS,u.KEY_ERR,u.KEY_RAW];u.DOT_SLASH=`.${Me}`;u.BACK_SLASH_RE=/\\/g;u.DOUBLE_SLASH_RE=/\/\//;u.SLASH_OR_BACK_SLASH_RE=/[/\\]/;u.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;u.REPLACER_RE=/^\.[/\\]/;u.SLASH="/";u.SLASH_SLASH="//";u.BRACE_START="{";u.BANG="!";u.ONE_DOT=".";u.TWO_DOTS="..";u.STAR="*";u.GLOBSTAR="**";u.ROOT_GLOBSTAR="/**/*";u.SLASH_GLOBSTAR="/**";u.DIR_SUFFIX="Dir";u.ANYMATCH_OPTS={dot:!0};u.STRING_TYPE="string";u.FUNCTION_TYPE="function";u.EMPTY_STR="";u.EMPTY_FN=()=>{};u.IDENTITY_FN=c=>c;u.isWindows=J==="win32";u.isMacos=J==="darwin";u.isLinux=J==="linux";u.isIBMi=Ve.type()==="OS400"});var Zt=S((Ei,Jt)=>{"use strict";g();var R=w("fs"),E=w("path"),{promisify:k}=w("util"),He=Bt(),{isWindows:Ge,isLinux:Ye,EMPTY_FN:ze,EMPTY_STR:je,KEY_LISTENERS:P,KEY_ERR:Z,KEY_RAW:I,HANDLER_KEYS:Ue,EV_CHANGE:Y,EV_ADD:G,EV_ADD_DIR:qe,EV_ERROR:$t,STR_DATA:Be,STR_END:Ke,BRACE_START:$e,STAR:Xe}=H(),Qe="watch",Je=k(R.open),Xt=k(R.stat),Ze=k(R.lstat),ts=k(R.close),tt=k(R.realpath),es={lstat:Ze,stat:Xt},st=(c,t)=>{c instanceof Set?c.forEach(t):t(c)},N=(c,t,e)=>{let s=c[t];s instanceof Set||(c[t]=s=new Set([s])),s.add(e)},ss=c=>t=>{let e=c[t];e instanceof Set?e.clear():delete c[t]},O=(c,t,e)=>{let s=c[t];s instanceof Set?s.delete(e):s===e&&delete c[t]},Qt=c=>c instanceof Set?c.size===0:!c,z=new Map;function Kt(c,t,e,s,i){let o=(n,r)=>{e(c),i(n,r,{watchedPath:c}),r&&c!==r&&j(E.resolve(c,r),P,E.join(c,r))};try{return R.watch(c,t,o)}catch(n){s(n)}}var j=(c,t,e,s,i)=>{let o=z.get(c);o&&st(o[t],n=>{n(e,s,i)})},is=(c,t,e,s)=>{let{listener:i,errHandler:o,rawEmitter:n}=s,r=z.get(t),a;if(!e.persistent)return a=Kt(c,e,i,o,n),a.close.bind(a);if(r)N(r,P,i),N(r,Z,o),N(r,I,n);else{if(a=Kt(c,e,j.bind(null,t,P),o,j.bind(null,t,I)),!a)return;a.on($t,async l=>{let d=j.bind(null,t,Z);if(r.watcherUnusable=!0,Ge&&l.code==="EPERM")try{let h=await Je(c,"r");await ts(h),d(l)}catch{}else d(l)}),r={listeners:i,errHandlers:o,rawEmitters:n,watcher:a},z.set(t,r)}return()=>{O(r,P,i),O(r,Z,o),O(r,I,n),Qt(r.listeners)&&(r.watcher.close(),z.delete(t),Ue.forEach(ss(r)),r.watcher=void 0,Object.freeze(r))}},et=new Map,rs=(c,t,e,s)=>{let{listener:i,rawEmitter:o}=s,n=et.get(t),r=new Set,a=new Set,l=n&&n.options;return l&&(l.persistent<e.persistent||l.interval>e.interval)&&(r=n.listeners,a=n.rawEmitters,R.unwatchFile(t),n=void 0),n?(N(n,P,i),N(n,I,o)):(n={listeners:i,rawEmitters:o,options:e,watcher:R.watchFile(t,e,(d,h)=>{st(n.rawEmitters,_=>{_(Y,t,{curr:d,prev:h})});let f=d.mtimeMs;(d.size!==h.size||f>h.mtimeMs||f===0)&&st(n.listeners,_=>_(c,d))})},et.set(t,n)),()=>{O(n,P,i),O(n,I,o),Qt(n.listeners)&&(et.delete(t),R.unwatchFile(t),n.options=n.watcher=void 0,Object.freeze(n))}},it=class{constructor(t){this.fsw=t,this._boundHandleError=e=>t._handleError(e)}_watchWithNodeFs(t,e){let s=this.fsw.options,i=E.dirname(t),o=E.basename(t);this.fsw._getWatchedDir(i).add(o);let r=E.resolve(t),a={persistent:s.persistent};e||(e=ze);let l;return s.usePolling?(a.interval=s.enableBinaryInterval&&He(o)?s.binaryInterval:s.interval,l=rs(t,r,a,{listener:e,rawEmitter:this.fsw._emitRaw})):l=is(t,r,a,{listener:e,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(t,e,s){if(this.fsw.closed)return;let i=E.dirname(t),o=E.basename(t),n=this.fsw._getWatchedDir(i),r=e;if(n.has(o))return;let a=async(d,h)=>{if(this.fsw._throttle(Qe,t,5)){if(!h||h.mtimeMs===0)try{let f=await Xt(t);if(this.fsw.closed)return;let _=f.atimeMs,y=f.mtimeMs;(!_||_<=y||y!==r.mtimeMs)&&this.fsw._emit(Y,t,f),Ye&&r.ino!==f.ino?(this.fsw._closeFile(d),r=f,this.fsw._addPathCloser(d,this._watchWithNodeFs(t,a))):r=f}catch{this.fsw._remove(i,o)}else if(n.has(o)){let f=h.atimeMs,_=h.mtimeMs;(!f||f<=_||_!==r.mtimeMs)&&this.fsw._emit(Y,t,h),r=h}}},l=this._watchWithNodeFs(t,a);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(G,t,0))return;this.fsw._emit(G,t,e)}return l}async _handleSymlink(t,e,s,i){if(this.fsw.closed)return;let o=t.fullPath,n=this.fsw._getWatchedDir(e);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let r;try{r=await tt(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(n.has(i)?this.fsw._symlinkPaths.get(o)!==r&&(this.fsw._symlinkPaths.set(o,r),this.fsw._emit(Y,s,t.stats)):(n.add(i),this.fsw._symlinkPaths.set(o,r),this.fsw._emit(G,s,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(t,e,s,i,o,n,r){if(t=E.join(t,je),!s.hasGlob&&(r=this.fsw._throttle("readdir",t,1e3),!r))return;let a=this.fsw._getWatchedDir(s.path),l=new Set,d=this.fsw._readdirp(t,{fileFilter:h=>s.filterPath(h),directoryFilter:h=>s.filterDir(h),depth:0}).on(Be,async h=>{if(this.fsw.closed){d=void 0;return}let f=h.path,_=E.join(t,f);if(l.add(f),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,t,_,f))){if(this.fsw.closed){d=void 0;return}(f===i||!i&&!a.has(f))&&(this.fsw._incrReadyCount(),_=E.join(o,E.relative(o,_)),this._addToNodeFs(_,e,s,n+1))}}).on($t,this._boundHandleError);return new Promise(h=>d.once(Ke,()=>{if(this.fsw.closed){d=void 0;return}let f=r?r.clear():!1;h(),a.getChildren().filter(_=>_!==t&&!l.has(_)&&(!s.hasGlob||s.filterPath({fullPath:E.resolve(t,_)}))).forEach(_=>{this.fsw._remove(t,_)}),d=void 0,f&&this._handleRead(t,!1,s,i,o,n,r)}))}async _handleDir(t,e,s,i,o,n,r){let a=this.fsw._getWatchedDir(E.dirname(t)),l=a.has(E.basename(t));!(s&&this.fsw.options.ignoreInitial)&&!o&&!l&&(!n.hasGlob||n.globFilter(t))&&this.fsw._emit(qe,t,e),a.add(E.basename(t)),this.fsw._getWatchedDir(t);let d,h,f=this.fsw.options.depth;if((f==null||i<=f)&&!this.fsw._symlinkPaths.has(r)){if(!o&&(await this._handleRead(t,s,n,o,t,i,d),this.fsw.closed))return;h=this._watchWithNodeFs(t,(_,y)=>{y&&y.mtimeMs===0||this._handleRead(_,!1,n,o,t,i,d)})}return h}async _addToNodeFs(t,e,s,i,o){let n=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return n(),!1;let r=this.fsw._getWatchHelpers(t,i);!r.hasGlob&&s&&(r.hasGlob=s.hasGlob,r.globFilter=s.globFilter,r.filterPath=a=>s.filterPath(a),r.filterDir=a=>s.filterDir(a));try{let a=await es[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,a))return n(),!1;let l=this.fsw.options.followSymlinks&&!t.includes(Xe)&&!t.includes($e),d;if(a.isDirectory()){let h=E.resolve(t),f=l?await tt(t):t;if(this.fsw.closed||(d=await this._handleDir(r.watchPath,a,e,i,o,r,f),this.fsw.closed))return;h!==f&&f!==void 0&&this.fsw._symlinkPaths.set(h,f)}else if(a.isSymbolicLink()){let h=l?await tt(t):t;if(this.fsw.closed)return;let f=E.dirname(r.watchPath);if(this.fsw._getWatchedDir(f).add(r.watchPath),this.fsw._emit(G,r.watchPath,a),d=await this._handleDir(f,a,e,i,t,r,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(E.resolve(t),h)}else d=this._handleFile(r.watchPath,a,e);return n(),this.fsw._addPathCloser(t,d),!1}catch(a){if(this.fsw._handleError(a))return n(),t}}};Jt.exports=it});var oe=S((gi,dt)=>{"use strict";g();var ht=w("fs"),p=w("path"),{promisify:lt}=w("util"),F;try{F=w("fsevents")}catch(c){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(c)}if(F){let c=process.version.match(/v(\d+)\.(\d+)/);if(c&&c[1]&&c[2]){let t=Number.parseInt(c[1],10),e=Number.parseInt(c[2],10);t===8&&e<16&&(F=void 0)}}var{EV_ADD:rt,EV_CHANGE:ns,EV_ADD_DIR:te,EV_UNLINK:U,EV_ERROR:os,STR_DATA:as,STR_END:cs,FSEVENT_CREATED:hs,FSEVENT_MODIFIED:ls,FSEVENT_DELETED:ds,FSEVENT_MOVED:fs,FSEVENT_UNKNOWN:us,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:_s,FSEVENT_TYPE_FILE:ms,FSEVENT_TYPE_DIRECTORY:W,FSEVENT_TYPE_SYMLINK:ne,ROOT_GLOBSTAR:ee,DIR_SUFFIX:ws,DOT_SLASH:se,FUNCTION_TYPE:nt,EMPTY_FN:Es,IDENTITY_FN:ps}=H(),gs=c=>isNaN(c)?{}:{depth:c},at=lt(ht.stat),ys=lt(ht.lstat),ie=lt(ht.realpath),bs={stat:at,lstat:ys},T=new Map,Ss=10,Rs=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ts=(c,t)=>({stop:F.watch(c,t)});function Ds(c,t,e,s){let i=p.extname(t)?p.dirname(t):t,o=p.dirname(i),n=T.get(i);Ps(o)&&(i=o);let r=p.resolve(c),a=r!==t,l=(h,f,_)=>{a&&(h=h.replace(t,r)),(h===r||!h.indexOf(r+p.sep))&&e(h,f,_)},d=!1;for(let h of T.keys())if(t.indexOf(p.resolve(h)+p.sep)===0){i=h,n=T.get(i),d=!0;break}return n||d?n.listeners.add(l):(n={listeners:new Set([l]),rawEmitter:s,watcher:Ts(i,(h,f)=>{if(!n.listeners.size||f&_s)return;let _=F.getInfo(h,f);n.listeners.forEach(y=>{y(h,f,_)}),n.rawEmitter(_.event,h,_)})},T.set(i,n)),()=>{let h=n.listeners;if(h.delete(l),!h.size&&(T.delete(i),n.watcher))return n.watcher.stop().then(()=>{n.rawEmitter=n.watcher=void 0,Object.freeze(n)})}}var Ps=c=>{let t=0;for(let e of T.keys())if(e.indexOf(c)===0&&(t++,t>=Ss))return!0;return!1},Fs=()=>F&&T.size<128,ot=(c,t)=>{let e=0;for(;!c.indexOf(t)&&(c=p.dirname(c))!==t;)e++;return e},re=(c,t)=>c.type===W&&t.isDirectory()||c.type===ne&&t.isSymbolicLink()||c.type===ms&&t.isFile(),ct=class{constructor(t){this.fsw=t}checkIgnored(t,e){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,e))return s.add(t),e&&e.isDirectory()&&s.add(t+ee),!0;s.delete(t),s.delete(t+ee)}addOrChange(t,e,s,i,o,n,r,a){let l=o.has(n)?ns:rt;this.handleEvent(l,t,e,s,i,o,n,r,a)}async checkExists(t,e,s,i,o,n,r,a){try{let l=await at(t);if(this.fsw.closed)return;re(r,l)?this.addOrChange(t,e,s,i,o,n,r,a):this.handleEvent(U,t,e,s,i,o,n,r,a)}catch(l){l.code==="EACCES"?this.addOrChange(t,e,s,i,o,n,r,a):this.handleEvent(U,t,e,s,i,o,n,r,a)}}handleEvent(t,e,s,i,o,n,r,a,l){if(!(this.fsw.closed||this.checkIgnored(e)))if(t===U){let d=a.type===W;(d||n.has(r))&&this.fsw._remove(o,r,d)}else{if(t===rt){if(a.type===W&&this.fsw._getWatchedDir(e),a.type===ne&&l.followSymlinks){let h=l.depth===void 0?void 0:ot(s,i)+1;return this._addToFsEvents(e,!1,!0,h)}this.fsw._getWatchedDir(o).add(r)}let d=a.type===W?t+ws:t;this.fsw._emit(d,e),d===te&&this._addToFsEvents(e,!1,!0)}}_watchWithFsEvents(t,e,s,i){if(this.fsw.closed||this.fsw._isIgnored(t))return;let o=this.fsw.options,r=Ds(t,e,async(a,l,d)=>{if(this.fsw.closed||o.depth!==void 0&&ot(a,e)>o.depth)return;let h=s(p.join(t,p.relative(t,a)));if(i&&!i(h))return;let f=p.dirname(h),_=p.basename(h),y=this.fsw._getWatchedDir(d.type===W?h:f);if(Rs.has(l)||d.event===us)if(typeof o.ignored===nt){let K;try{K=await at(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,K))return;re(d,K)?this.addOrChange(h,a,e,f,y,_,d,o):this.handleEvent(U,h,a,e,f,y,_,d,o)}else this.checkExists(h,a,e,f,y,_,d,o);else switch(d.event){case hs:case ls:return this.addOrChange(h,a,e,f,y,_,d,o);case ds:case fs:return this.checkExists(h,a,e,f,y,_,d,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),r}async _handleFsEventsSymlink(t,e,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(e))){this.fsw._symlinkPaths.set(e,!0),this.fsw._incrReadyCount();try{let o=await ie(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||t,n=>{let r=t;return o&&o!==se?r=n.replace(o,t):n!==se&&(r=p.join(t,n)),s(r)},!1,i)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(t,e,s,i,o){let n=s(t),r=e.isDirectory(),a=this.fsw._getWatchedDir(p.dirname(n)),l=p.basename(n);r&&this.fsw._getWatchedDir(n),!a.has(l)&&(a.add(l),(!i.ignoreInitial||o===!0)&&this.fsw._emit(r?te:rt,n,e))}initWatch(t,e,s,i){if(this.fsw.closed)return;let o=this._watchWithFsEvents(s.watchPath,p.resolve(t||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(e,o)}async _addToFsEvents(t,e,s,i){if(this.fsw.closed)return;let o=this.fsw.options,n=typeof e===nt?e:ps,r=this.fsw._getWatchHelpers(t);try{let a=await bs[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,a))throw null;if(a.isDirectory()){if(r.globFilter||this.emitAdd(n(t),a,n,o,s),i&&i>o.depth)return;this.fsw._readdirp(r.watchPath,{fileFilter:l=>r.filterPath(l),directoryFilter:l=>r.filterDir(l),...gs(o.depth-(i||0))}).on(as,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!r.filterPath(l))return;let d=p.join(r.watchPath,l.path),{fullPath:h}=l;if(r.followSymlinks&&l.stats.isSymbolicLink()){let f=o.depth===void 0?void 0:ot(d,p.resolve(r.watchPath))+1;this._handleFsEventsSymlink(d,h,n,f)}else this.emitAdd(d,l.stats,n,o,s)}).on(os,Es).on(cs,()=>{this.fsw._emitReady()})}else this.emitAdd(r.watchPath,a,n,o,s),this.fsw._emitReady()}catch(a){(!a||this.fsw._handleError(a))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&s!==!0)if(typeof e===nt)this.initWatch(void 0,t,r,n);else{let a;try{a=await ie(r.watchPath)}catch{}this.initWatch(a,t,r,n)}}};dt.exports=ct;dt.exports.canUse=Fs});var ni=S(Pt=>{g();var{EventEmitter:vs}=w("events"),Tt=w("fs"),m=w("path"),{promisify:ue}=w("util"),As=xt(),Et=Yt().default,Is=pe(),ft=Ee(),Ns=ge(),Os=vt(),ks=Zt(),ae=oe(),{EV_ALL:ut,EV_READY:Ws,EV_ADD:q,EV_CHANGE:L,EV_UNLINK:ce,EV_ADD_DIR:Ls,EV_UNLINK_DIR:xs,EV_RAW:Cs,EV_ERROR:_t,STR_CLOSE:Ms,STR_END:Vs,BACK_SLASH_RE:Hs,DOUBLE_SLASH_RE:he,SLASH_OR_BACK_SLASH_RE:Gs,DOT_RE:Ys,REPLACER_RE:zs,SLASH:mt,SLASH_SLASH:js,BRACE_START:Us,BANG:pt,ONE_DOT:_e,TWO_DOTS:qs,GLOBSTAR:Bs,SLASH_GLOBSTAR:wt,ANYMATCH_OPTS:gt,STRING_TYPE:Dt,FUNCTION_TYPE:Ks,EMPTY_STR:yt,EMPTY_FN:$s,isWindows:Xs,isMacos:Qs,isIBMi:Js}=H(),Zs=ue(Tt.stat),ti=ue(Tt.readdir),bt=(c=[])=>Array.isArray(c)?c:[c],me=(c,t=[])=>(c.forEach(e=>{Array.isArray(e)?me(e,t):t.push(e)}),t),le=c=>{let t=me(bt(c));if(!t.every(e=>typeof e===Dt))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(we)},de=c=>{let t=c.replace(Hs,mt),e=!1;for(t.startsWith(js)&&(e=!0);t.match(he);)t=t.replace(he,mt);return e&&(t=mt+t),t},we=c=>de(m.normalize(de(c))),fe=(c=yt)=>t=>typeof t!==Dt?t:we(m.isAbsolute(t)?t:m.join(c,t)),ei=(c,t)=>m.isAbsolute(c)?c:c.startsWith(pt)?pt+m.join(t,c.slice(1)):m.join(t,c),b=(c,t)=>c[t]===void 0,St=class{constructor(t,e){this.path=t,this._removeWatcher=e,this.items=new Set}add(t){let{items:e}=this;e&&t!==_e&&t!==qs&&e.add(t)}async remove(t){let{items:e}=this;if(!e||(e.delete(t),e.size>0))return;let s=this.path;try{await ti(s)}catch{this._removeWatcher&&this._removeWatcher(m.dirname(s),m.basename(s))}}has(t){let{items:e}=this;if(e)return e.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},si="stat",ii="lstat",Rt=class{constructor(t,e,s,i){this.fsw=i,this.path=t=t.replace(zs,yt),this.watchPath=e,this.fullWatchPath=m.resolve(e),this.hasGlob=e!==t,t===yt&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?Et(t,void 0,gt):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=s,this.statMethod=s?si:ii}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return m.join(this.watchPath,m.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:e}=t;if(e&&e.isSymbolicLink())return this.filterDir(t);let s=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===Ks?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,e)&&this.fsw._hasReadPermissions(e)}getDirParts(t){if(!this.hasGlob)return[];let e=[];return(t.includes(Us)?Ns.expand(t):[t]).forEach(i=>{e.push(m.relative(this.watchPath,i).split(Gs))}),e}filterDir(t){if(this.hasGlob){let e=this.getDirParts(this.checkGlobSymlink(t)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((o,n)=>(o===Bs&&(s=!0),s||!e[0][n]||Et(o,e[0][n],gt))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},B=class extends vs{constructor(t){super();let e={};t&&Object.assign(e,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,b(e,"persistent")&&(e.persistent=!0),b(e,"ignoreInitial")&&(e.ignoreInitial=!1),b(e,"ignorePermissionErrors")&&(e.ignorePermissionErrors=!1),b(e,"interval")&&(e.interval=100),b(e,"binaryInterval")&&(e.binaryInterval=300),b(e,"disableGlobbing")&&(e.disableGlobbing=!1),e.enableBinaryInterval=e.binaryInterval!==e.interval,b(e,"useFsEvents")&&(e.useFsEvents=!e.usePolling),ae.canUse()||(e.useFsEvents=!1),b(e,"usePolling")&&!e.useFsEvents&&(e.usePolling=Qs),Js&&(e.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let a=i.toLowerCase();a==="false"||a==="0"?e.usePolling=!1:a==="true"||a==="1"?e.usePolling=!0:e.usePolling=!!a}let o=process.env.CHOKIDAR_INTERVAL;o&&(e.interval=Number.parseInt(o,10)),b(e,"atomic")&&(e.atomic=!e.usePolling&&!e.useFsEvents),e.atomic&&(this._pendingUnlinks=new Map),b(e,"followSymlinks")&&(e.followSymlinks=!0),b(e,"awaitWriteFinish")&&(e.awaitWriteFinish=!1),e.awaitWriteFinish===!0&&(e.awaitWriteFinish={});let n=e.awaitWriteFinish;n&&(n.stabilityThreshold||(n.stabilityThreshold=2e3),n.pollInterval||(n.pollInterval=100),this._pendingWrites=new Map),e.ignored&&(e.ignored=bt(e.ignored));let r=0;this._emitReady=()=>{r++,r>=this._readyCount&&(this._emitReady=$s,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ws)))},this._emitRaw=(...a)=>this.emit(Cs,...a),this._readyEmitted=!1,this.options=e,e.useFsEvents?this._fsEventsHandler=new ae(this):this._nodeFsHandler=new ks(this),Object.freeze(e)}add(t,e,s){let{cwd:i,disableGlobbing:o}=this.options;this.closed=!1;let n=le(t);return i&&(n=n.map(r=>{let a=ei(r,i);return o||!ft(r)?a:Os(a)})),n=n.filter(r=>r.startsWith(pt)?(this._ignoredPaths.add(r.slice(1)),!1):(this._ignoredPaths.delete(r),this._ignoredPaths.delete(r+wt),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=n.length),this.options.persistent&&(this._readyCount+=n.length),n.forEach(r=>this._fsEventsHandler._addToFsEvents(r))):(this._readyCount||(this._readyCount=0),this._readyCount+=n.length,Promise.all(n.map(async r=>{let a=await this._nodeFsHandler._addToNodeFs(r,!s,0,0,e);return a&&this._emitReady(),a})).then(r=>{this.closed||r.filter(a=>a).forEach(a=>{this.add(m.dirname(a),m.basename(e||a))})})),this}unwatch(t){if(this.closed)return this;let e=le(t),{cwd:s}=this.options;return e.forEach(i=>{!m.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=m.join(s,i)),i=m.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+wt),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(e=>e.forEach(s=>{let i=s();i instanceof Promise&&t.push(i)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((e,s)=>{let i=this.options.cwd?m.relative(this.options.cwd,s):s;t[i||_e]=e.getChildren().sort()}),t}emitWithAll(t,e){this.emit(...e),t!==_t&&this.emit(ut,...e)}async _emit(t,e,s,i,o){if(this.closed)return;let n=this.options;Xs&&(e=m.normalize(e)),n.cwd&&(e=m.relative(n.cwd,e));let r=[t,e];o!==void 0?r.push(s,i,o):i!==void 0?r.push(s,i):s!==void 0&&r.push(s);let a=n.awaitWriteFinish,l;if(a&&(l=this._pendingWrites.get(e)))return l.lastChange=new Date,this;if(n.atomic){if(t===ce)return this._pendingUnlinks.set(e,r),setTimeout(()=>{this._pendingUnlinks.forEach((d,h)=>{this.emit(...d),this.emit(ut,...d),this._pendingUnlinks.delete(h)})},typeof n.atomic=="number"?n.atomic:100),this;t===q&&this._pendingUnlinks.has(e)&&(t=r[0]=L,this._pendingUnlinks.delete(e))}if(a&&(t===q||t===L)&&this._readyEmitted){let d=(h,f)=>{h?(t=r[0]=_t,r[1]=h,this.emitWithAll(t,r)):f&&(r.length>2?r[2]=f:r.push(f),this.emitWithAll(t,r))};return this._awaitWriteFinish(e,a.stabilityThreshold,t,d),this}if(t===L&&!this._throttle(L,e,50))return this;if(n.alwaysStat&&s===void 0&&(t===q||t===Ls||t===L)){let d=n.cwd?m.join(n.cwd,e):e,h;try{h=await Zs(d)}catch{}if(!h||this.closed)return;r.push(h)}return this.emitWithAll(t,r),this}_handleError(t){let e=t&&t.code;return t&&e!=="ENOENT"&&e!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||e!=="EPERM"&&e!=="EACCES")&&this.emit(_t,t),t||this.closed}_throttle(t,e,s){this._throttled.has(t)||this._throttled.set(t,new Map);let i=this._throttled.get(t),o=i.get(e);if(o)return o.count++,!1;let n,r=()=>{let l=i.get(e),d=l?l.count:0;return i.delete(e),clearTimeout(n),l&&clearTimeout(l.timeoutObject),d};n=setTimeout(r,s);let a={timeoutObject:n,clear:r,count:0};return i.set(e,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,e,s,i){let o,n=t;this.options.cwd&&!m.isAbsolute(t)&&(n=m.join(this.options.cwd,t));let r=new Date,a=l=>{Tt.stat(n,(d,h)=>{if(d||!this._pendingWrites.has(t)){d&&d.code!=="ENOENT"&&i(d);return}let f=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(t).lastChange=f);let _=this._pendingWrites.get(t);f-_.lastChange>=e?(this._pendingWrites.delete(t),i(void 0,h)):o=setTimeout(a,this.options.awaitWriteFinish.pollInterval,h)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:r,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(o),s)}),o=setTimeout(a,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,e){if(this.options.atomic&&Ys.test(t))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,o=i&&i.map(fe(s)),n=bt(o).filter(a=>typeof a===Dt&&!ft(a)).map(a=>a+wt),r=this._getGlobIgnored().map(fe(s)).concat(o,n);this._userIgnored=Et(r,void 0,gt)}return this._userIgnored([t,e])}_isntIgnored(t,e){return!this._isIgnored(t,e)}_getWatchHelpers(t,e){let s=e||this.options.disableGlobbing||!ft(t)?t:Is(t),i=this.options.followSymlinks;return new Rt(t,s,i,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let e=m.resolve(t);return this._watched.has(e)||this._watched.set(e,new St(e,this._boundRemove)),this._watched.get(e)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let s=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(t,e,s){let i=m.join(t,e),o=m.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(o)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,e,!0),this._getWatchedDir(i).getChildren().forEach(f=>this._remove(i,f));let a=this._getWatchedDir(t),l=a.has(e);a.remove(e),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let d=i;if(this.options.cwd&&(d=m.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(d)&&this._pendingWrites.get(d).cancelWait()===q)return;this._watched.delete(i),this._watched.delete(o);let h=s?xs:ce;l&&!this._isIgnored(i)&&this._emit(h,i),this.options.useFsEvents||this._closePath(i)}_closePath(t){this._closeFile(t);let e=m.dirname(t);this._getWatchedDir(e).remove(m.basename(t))}_closeFile(t){let e=this._closers.get(t);e&&(e.forEach(s=>s()),this._closers.delete(t))}_addPathCloser(t,e){if(!e)return;let s=this._closers.get(t);s||(s=[],this._closers.set(t,s)),s.push(e)}_readdirp(t,e){if(this.closed)return;let s={type:ut,alwaysStat:!0,lstat:!0,...e},i=As(t,s);return this._streams.add(i),i.once(Ms,()=>{i=void 0}),i.once(Vs,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};Pt.FSWatcher=B;var ri=(c,t)=>{let e=new B(t);return e.add(c),e};Pt.watch=ri});export default ni();
1
+ import{a as vt}from"./chunk-ZI7LK3LW.js";import{a as Ee,b as pe,c as ge,e as Ft}from"./chunk-2O22LZKV.js";import{a as w,c as S,g}from"./chunk-VKWPEFWQ.js";var xt=S((ai,Lt)=>{"use strict";g();var A=w("fs"),{Readable:ye}=w("stream"),v=w("path"),{promisify:V}=w("util"),$=Ft(),be=V(A.readdir),Se=V(A.stat),At=V(A.lstat),Re=V(A.realpath),Te="!",kt="READDIRP_RECURSIVE_ERROR",De=new Set(["ENOENT","EPERM","EACCES","ELOOP",kt]),X="files",Wt="directories",C="files_directories",x="all",It=[X,Wt,C,x],Pe=c=>De.has(c.code),[Nt,Fe]=process.versions.node.split(".").slice(0,2).map(c=>Number.parseInt(c,10)),ve=process.platform==="win32"&&(Nt>10||Nt===10&&Fe>=5),Ot=c=>{if(c!==void 0){if(typeof c=="function")return c;if(typeof c=="string"){let t=$(c.trim());return e=>t(e.basename)}if(Array.isArray(c)){let t=[],e=[];for(let s of c){let i=s.trim();i.charAt(0)===Te?e.push($(i.slice(1))):t.push($(i))}return e.length>0?t.length>0?s=>t.some(i=>i(s.basename))&&!e.some(i=>i(s.basename)):s=>!e.some(i=>i(s.basename)):s=>t.some(i=>i(s.basename))}}},M=class c extends ye{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:X,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let e={...c.defaultOptions,...t},{root:s,type:i}=e;this._fileFilter=Ot(e.fileFilter),this._directoryFilter=Ot(e.directoryFilter);let o=e.lstat?At:Se;ve?this._stat=n=>o(n,{bigint:!0}):this._stat=o,this._maxDepth=e.depth,this._wantsDir=[Wt,C,x].includes(i),this._wantsFile=[X,C,x].includes(i),this._wantsEverything=i===x,this._root=v.resolve(s),this._isDirent="Dirent"in A&&!e.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:e,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let o=i.splice(0,t).map(n=>this._formatEntry(n,e));for(let n of await Promise.all(o)){if(this.destroyed)return;let r=await this._getEntryType(n);r==="directory"&&this._directoryFilter(n)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(n.fullPath,s+1)),this._wantsDir&&(this.push(n),t--)):(r==="file"||this._includeAsFile(n))&&this._fileFilter(n)&&this._wantsFile&&(this.push(n),t--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(t,e){let s;try{s=await be(t,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:e,path:t}}async _formatEntry(t,e){let s;try{let i=this._isDirent?t.name:t,o=v.resolve(v.join(e,i));s={path:v.relative(this._root,o),fullPath:o,basename:i},s[this._statsProp]=this._isDirent?t:await this._stat(o)}catch(i){this._onError(i)}return s}_onError(t){Pe(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let e=t&&t[this._statsProp];if(e){if(e.isFile())return"file";if(e.isDirectory())return"directory";if(e&&e.isSymbolicLink()){let s=t.fullPath;try{let i=await Re(s),o=await At(i);if(o.isFile())return"file";if(o.isDirectory()){let n=i.length;if(s.startsWith(i)&&s.substr(n,1)===v.sep){let r=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return r.code=kt,this._onError(r)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(t){let e=t&&t[this._statsProp];return e&&this._wantsEverything&&!e.isDirectory()}},D=(c,t={})=>{let e=t.entryType||t.type;if(e==="both"&&(e=C),e&&(t.type=e),c){if(typeof c!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(e&&!It.includes(e))throw new Error(`readdirp: Invalid type passed. Use one of ${It.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=c,new M(t)},Ae=(c,t={})=>new Promise((e,s)=>{let i=[];D(c,t).on("data",o=>i.push(o)).on("end",()=>e(i)).on("error",o=>s(o))});D.promise=Ae;D.ReaddirpStream=M;D.default=D;Lt.exports=D});var Yt=S((Ht,Gt)=>{"use strict";g();Object.defineProperty(Ht,"__esModule",{value:!0});var Vt=Ft(),Ie=vt(),Ct="!",Ne={returnIndex:!1},Oe=c=>Array.isArray(c)?c:[c],ke=(c,t)=>{if(typeof c=="function")return c;if(typeof c=="string"){let e=Vt(c,t);return s=>c===s||e(s)}return c instanceof RegExp?e=>c.test(e):e=>!1},Mt=(c,t,e,s)=>{let i=Array.isArray(e),o=i?e[0]:e;if(!i&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let n=Ie(o,!1);for(let a=0;a<t.length;a++){let l=t[a];if(l(n))return s?-1:!1}let r=i&&[n].concat(e.slice(1));for(let a=0;a<c.length;a++){let l=c[a];if(i?l(...r):l(n))return s?a:!0}return s?-1:!1},Q=(c,t,e=Ne)=>{if(c==null)throw new TypeError("anymatch: specify first argument");let s=typeof e=="boolean"?{returnIndex:e}:e,i=s.returnIndex||!1,o=Oe(c),n=o.filter(a=>typeof a=="string"&&a.charAt(0)===Ct).map(a=>a.slice(1)).map(a=>Vt(a,s)),r=o.filter(a=>typeof a!="string"||typeof a=="string"&&a.charAt(0)!==Ct).map(a=>ke(a,s));return t==null?(a,l=!1)=>Mt(r,n,a,typeof l=="boolean"?l:!1):Mt(r,n,t,i)};Q.default=Q;Gt.exports=Q});var zt=S((li,We)=>{We.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Ut=S((di,jt)=>{g();jt.exports=zt()});var Bt=S((ui,qt)=>{"use strict";g();var Le=w("path"),xe=Ut(),Ce=new Set(xe);qt.exports=c=>Ce.has(Le.extname(c).slice(1).toLowerCase())});var H=S(u=>{"use strict";g();var{sep:Me}=w("path"),{platform:J}=process,Ve=w("os");u.EV_ALL="all";u.EV_READY="ready";u.EV_ADD="add";u.EV_CHANGE="change";u.EV_ADD_DIR="addDir";u.EV_UNLINK="unlink";u.EV_UNLINK_DIR="unlinkDir";u.EV_RAW="raw";u.EV_ERROR="error";u.STR_DATA="data";u.STR_END="end";u.STR_CLOSE="close";u.FSEVENT_CREATED="created";u.FSEVENT_MODIFIED="modified";u.FSEVENT_DELETED="deleted";u.FSEVENT_MOVED="moved";u.FSEVENT_CLONED="cloned";u.FSEVENT_UNKNOWN="unknown";u.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;u.FSEVENT_TYPE_FILE="file";u.FSEVENT_TYPE_DIRECTORY="directory";u.FSEVENT_TYPE_SYMLINK="symlink";u.KEY_LISTENERS="listeners";u.KEY_ERR="errHandlers";u.KEY_RAW="rawEmitters";u.HANDLER_KEYS=[u.KEY_LISTENERS,u.KEY_ERR,u.KEY_RAW];u.DOT_SLASH=`.${Me}`;u.BACK_SLASH_RE=/\\/g;u.DOUBLE_SLASH_RE=/\/\//;u.SLASH_OR_BACK_SLASH_RE=/[/\\]/;u.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;u.REPLACER_RE=/^\.[/\\]/;u.SLASH="/";u.SLASH_SLASH="//";u.BRACE_START="{";u.BANG="!";u.ONE_DOT=".";u.TWO_DOTS="..";u.STAR="*";u.GLOBSTAR="**";u.ROOT_GLOBSTAR="/**/*";u.SLASH_GLOBSTAR="/**";u.DIR_SUFFIX="Dir";u.ANYMATCH_OPTS={dot:!0};u.STRING_TYPE="string";u.FUNCTION_TYPE="function";u.EMPTY_STR="";u.EMPTY_FN=()=>{};u.IDENTITY_FN=c=>c;u.isWindows=J==="win32";u.isMacos=J==="darwin";u.isLinux=J==="linux";u.isIBMi=Ve.type()==="OS400"});var Zt=S((Ei,Jt)=>{"use strict";g();var R=w("fs"),E=w("path"),{promisify:k}=w("util"),He=Bt(),{isWindows:Ge,isLinux:Ye,EMPTY_FN:ze,EMPTY_STR:je,KEY_LISTENERS:P,KEY_ERR:Z,KEY_RAW:I,HANDLER_KEYS:Ue,EV_CHANGE:Y,EV_ADD:G,EV_ADD_DIR:qe,EV_ERROR:$t,STR_DATA:Be,STR_END:Ke,BRACE_START:$e,STAR:Xe}=H(),Qe="watch",Je=k(R.open),Xt=k(R.stat),Ze=k(R.lstat),ts=k(R.close),tt=k(R.realpath),es={lstat:Ze,stat:Xt},st=(c,t)=>{c instanceof Set?c.forEach(t):t(c)},N=(c,t,e)=>{let s=c[t];s instanceof Set||(c[t]=s=new Set([s])),s.add(e)},ss=c=>t=>{let e=c[t];e instanceof Set?e.clear():delete c[t]},O=(c,t,e)=>{let s=c[t];s instanceof Set?s.delete(e):s===e&&delete c[t]},Qt=c=>c instanceof Set?c.size===0:!c,z=new Map;function Kt(c,t,e,s,i){let o=(n,r)=>{e(c),i(n,r,{watchedPath:c}),r&&c!==r&&j(E.resolve(c,r),P,E.join(c,r))};try{return R.watch(c,t,o)}catch(n){s(n)}}var j=(c,t,e,s,i)=>{let o=z.get(c);o&&st(o[t],n=>{n(e,s,i)})},is=(c,t,e,s)=>{let{listener:i,errHandler:o,rawEmitter:n}=s,r=z.get(t),a;if(!e.persistent)return a=Kt(c,e,i,o,n),a.close.bind(a);if(r)N(r,P,i),N(r,Z,o),N(r,I,n);else{if(a=Kt(c,e,j.bind(null,t,P),o,j.bind(null,t,I)),!a)return;a.on($t,async l=>{let d=j.bind(null,t,Z);if(r.watcherUnusable=!0,Ge&&l.code==="EPERM")try{let h=await Je(c,"r");await ts(h),d(l)}catch{}else d(l)}),r={listeners:i,errHandlers:o,rawEmitters:n,watcher:a},z.set(t,r)}return()=>{O(r,P,i),O(r,Z,o),O(r,I,n),Qt(r.listeners)&&(r.watcher.close(),z.delete(t),Ue.forEach(ss(r)),r.watcher=void 0,Object.freeze(r))}},et=new Map,rs=(c,t,e,s)=>{let{listener:i,rawEmitter:o}=s,n=et.get(t),r=new Set,a=new Set,l=n&&n.options;return l&&(l.persistent<e.persistent||l.interval>e.interval)&&(r=n.listeners,a=n.rawEmitters,R.unwatchFile(t),n=void 0),n?(N(n,P,i),N(n,I,o)):(n={listeners:i,rawEmitters:o,options:e,watcher:R.watchFile(t,e,(d,h)=>{st(n.rawEmitters,_=>{_(Y,t,{curr:d,prev:h})});let f=d.mtimeMs;(d.size!==h.size||f>h.mtimeMs||f===0)&&st(n.listeners,_=>_(c,d))})},et.set(t,n)),()=>{O(n,P,i),O(n,I,o),Qt(n.listeners)&&(et.delete(t),R.unwatchFile(t),n.options=n.watcher=void 0,Object.freeze(n))}},it=class{constructor(t){this.fsw=t,this._boundHandleError=e=>t._handleError(e)}_watchWithNodeFs(t,e){let s=this.fsw.options,i=E.dirname(t),o=E.basename(t);this.fsw._getWatchedDir(i).add(o);let r=E.resolve(t),a={persistent:s.persistent};e||(e=ze);let l;return s.usePolling?(a.interval=s.enableBinaryInterval&&He(o)?s.binaryInterval:s.interval,l=rs(t,r,a,{listener:e,rawEmitter:this.fsw._emitRaw})):l=is(t,r,a,{listener:e,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(t,e,s){if(this.fsw.closed)return;let i=E.dirname(t),o=E.basename(t),n=this.fsw._getWatchedDir(i),r=e;if(n.has(o))return;let a=async(d,h)=>{if(this.fsw._throttle(Qe,t,5)){if(!h||h.mtimeMs===0)try{let f=await Xt(t);if(this.fsw.closed)return;let _=f.atimeMs,y=f.mtimeMs;(!_||_<=y||y!==r.mtimeMs)&&this.fsw._emit(Y,t,f),Ye&&r.ino!==f.ino?(this.fsw._closeFile(d),r=f,this.fsw._addPathCloser(d,this._watchWithNodeFs(t,a))):r=f}catch{this.fsw._remove(i,o)}else if(n.has(o)){let f=h.atimeMs,_=h.mtimeMs;(!f||f<=_||_!==r.mtimeMs)&&this.fsw._emit(Y,t,h),r=h}}},l=this._watchWithNodeFs(t,a);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(G,t,0))return;this.fsw._emit(G,t,e)}return l}async _handleSymlink(t,e,s,i){if(this.fsw.closed)return;let o=t.fullPath,n=this.fsw._getWatchedDir(e);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let r;try{r=await tt(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(n.has(i)?this.fsw._symlinkPaths.get(o)!==r&&(this.fsw._symlinkPaths.set(o,r),this.fsw._emit(Y,s,t.stats)):(n.add(i),this.fsw._symlinkPaths.set(o,r),this.fsw._emit(G,s,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(t,e,s,i,o,n,r){if(t=E.join(t,je),!s.hasGlob&&(r=this.fsw._throttle("readdir",t,1e3),!r))return;let a=this.fsw._getWatchedDir(s.path),l=new Set,d=this.fsw._readdirp(t,{fileFilter:h=>s.filterPath(h),directoryFilter:h=>s.filterDir(h),depth:0}).on(Be,async h=>{if(this.fsw.closed){d=void 0;return}let f=h.path,_=E.join(t,f);if(l.add(f),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,t,_,f))){if(this.fsw.closed){d=void 0;return}(f===i||!i&&!a.has(f))&&(this.fsw._incrReadyCount(),_=E.join(o,E.relative(o,_)),this._addToNodeFs(_,e,s,n+1))}}).on($t,this._boundHandleError);return new Promise(h=>d.once(Ke,()=>{if(this.fsw.closed){d=void 0;return}let f=r?r.clear():!1;h(),a.getChildren().filter(_=>_!==t&&!l.has(_)&&(!s.hasGlob||s.filterPath({fullPath:E.resolve(t,_)}))).forEach(_=>{this.fsw._remove(t,_)}),d=void 0,f&&this._handleRead(t,!1,s,i,o,n,r)}))}async _handleDir(t,e,s,i,o,n,r){let a=this.fsw._getWatchedDir(E.dirname(t)),l=a.has(E.basename(t));!(s&&this.fsw.options.ignoreInitial)&&!o&&!l&&(!n.hasGlob||n.globFilter(t))&&this.fsw._emit(qe,t,e),a.add(E.basename(t)),this.fsw._getWatchedDir(t);let d,h,f=this.fsw.options.depth;if((f==null||i<=f)&&!this.fsw._symlinkPaths.has(r)){if(!o&&(await this._handleRead(t,s,n,o,t,i,d),this.fsw.closed))return;h=this._watchWithNodeFs(t,(_,y)=>{y&&y.mtimeMs===0||this._handleRead(_,!1,n,o,t,i,d)})}return h}async _addToNodeFs(t,e,s,i,o){let n=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return n(),!1;let r=this.fsw._getWatchHelpers(t,i);!r.hasGlob&&s&&(r.hasGlob=s.hasGlob,r.globFilter=s.globFilter,r.filterPath=a=>s.filterPath(a),r.filterDir=a=>s.filterDir(a));try{let a=await es[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,a))return n(),!1;let l=this.fsw.options.followSymlinks&&!t.includes(Xe)&&!t.includes($e),d;if(a.isDirectory()){let h=E.resolve(t),f=l?await tt(t):t;if(this.fsw.closed||(d=await this._handleDir(r.watchPath,a,e,i,o,r,f),this.fsw.closed))return;h!==f&&f!==void 0&&this.fsw._symlinkPaths.set(h,f)}else if(a.isSymbolicLink()){let h=l?await tt(t):t;if(this.fsw.closed)return;let f=E.dirname(r.watchPath);if(this.fsw._getWatchedDir(f).add(r.watchPath),this.fsw._emit(G,r.watchPath,a),d=await this._handleDir(f,a,e,i,t,r,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(E.resolve(t),h)}else d=this._handleFile(r.watchPath,a,e);return n(),this.fsw._addPathCloser(t,d),!1}catch(a){if(this.fsw._handleError(a))return n(),t}}};Jt.exports=it});var oe=S((gi,dt)=>{"use strict";g();var ht=w("fs"),p=w("path"),{promisify:lt}=w("util"),F;try{F=w("fsevents")}catch(c){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(c)}if(F){let c=process.version.match(/v(\d+)\.(\d+)/);if(c&&c[1]&&c[2]){let t=Number.parseInt(c[1],10),e=Number.parseInt(c[2],10);t===8&&e<16&&(F=void 0)}}var{EV_ADD:rt,EV_CHANGE:ns,EV_ADD_DIR:te,EV_UNLINK:U,EV_ERROR:os,STR_DATA:as,STR_END:cs,FSEVENT_CREATED:hs,FSEVENT_MODIFIED:ls,FSEVENT_DELETED:ds,FSEVENT_MOVED:fs,FSEVENT_UNKNOWN:us,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:_s,FSEVENT_TYPE_FILE:ms,FSEVENT_TYPE_DIRECTORY:W,FSEVENT_TYPE_SYMLINK:ne,ROOT_GLOBSTAR:ee,DIR_SUFFIX:ws,DOT_SLASH:se,FUNCTION_TYPE:nt,EMPTY_FN:Es,IDENTITY_FN:ps}=H(),gs=c=>isNaN(c)?{}:{depth:c},at=lt(ht.stat),ys=lt(ht.lstat),ie=lt(ht.realpath),bs={stat:at,lstat:ys},T=new Map,Ss=10,Rs=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ts=(c,t)=>({stop:F.watch(c,t)});function Ds(c,t,e,s){let i=p.extname(t)?p.dirname(t):t,o=p.dirname(i),n=T.get(i);Ps(o)&&(i=o);let r=p.resolve(c),a=r!==t,l=(h,f,_)=>{a&&(h=h.replace(t,r)),(h===r||!h.indexOf(r+p.sep))&&e(h,f,_)},d=!1;for(let h of T.keys())if(t.indexOf(p.resolve(h)+p.sep)===0){i=h,n=T.get(i),d=!0;break}return n||d?n.listeners.add(l):(n={listeners:new Set([l]),rawEmitter:s,watcher:Ts(i,(h,f)=>{if(!n.listeners.size||f&_s)return;let _=F.getInfo(h,f);n.listeners.forEach(y=>{y(h,f,_)}),n.rawEmitter(_.event,h,_)})},T.set(i,n)),()=>{let h=n.listeners;if(h.delete(l),!h.size&&(T.delete(i),n.watcher))return n.watcher.stop().then(()=>{n.rawEmitter=n.watcher=void 0,Object.freeze(n)})}}var Ps=c=>{let t=0;for(let e of T.keys())if(e.indexOf(c)===0&&(t++,t>=Ss))return!0;return!1},Fs=()=>F&&T.size<128,ot=(c,t)=>{let e=0;for(;!c.indexOf(t)&&(c=p.dirname(c))!==t;)e++;return e},re=(c,t)=>c.type===W&&t.isDirectory()||c.type===ne&&t.isSymbolicLink()||c.type===ms&&t.isFile(),ct=class{constructor(t){this.fsw=t}checkIgnored(t,e){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,e))return s.add(t),e&&e.isDirectory()&&s.add(t+ee),!0;s.delete(t),s.delete(t+ee)}addOrChange(t,e,s,i,o,n,r,a){let l=o.has(n)?ns:rt;this.handleEvent(l,t,e,s,i,o,n,r,a)}async checkExists(t,e,s,i,o,n,r,a){try{let l=await at(t);if(this.fsw.closed)return;re(r,l)?this.addOrChange(t,e,s,i,o,n,r,a):this.handleEvent(U,t,e,s,i,o,n,r,a)}catch(l){l.code==="EACCES"?this.addOrChange(t,e,s,i,o,n,r,a):this.handleEvent(U,t,e,s,i,o,n,r,a)}}handleEvent(t,e,s,i,o,n,r,a,l){if(!(this.fsw.closed||this.checkIgnored(e)))if(t===U){let d=a.type===W;(d||n.has(r))&&this.fsw._remove(o,r,d)}else{if(t===rt){if(a.type===W&&this.fsw._getWatchedDir(e),a.type===ne&&l.followSymlinks){let h=l.depth===void 0?void 0:ot(s,i)+1;return this._addToFsEvents(e,!1,!0,h)}this.fsw._getWatchedDir(o).add(r)}let d=a.type===W?t+ws:t;this.fsw._emit(d,e),d===te&&this._addToFsEvents(e,!1,!0)}}_watchWithFsEvents(t,e,s,i){if(this.fsw.closed||this.fsw._isIgnored(t))return;let o=this.fsw.options,r=Ds(t,e,async(a,l,d)=>{if(this.fsw.closed||o.depth!==void 0&&ot(a,e)>o.depth)return;let h=s(p.join(t,p.relative(t,a)));if(i&&!i(h))return;let f=p.dirname(h),_=p.basename(h),y=this.fsw._getWatchedDir(d.type===W?h:f);if(Rs.has(l)||d.event===us)if(typeof o.ignored===nt){let K;try{K=await at(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,K))return;re(d,K)?this.addOrChange(h,a,e,f,y,_,d,o):this.handleEvent(U,h,a,e,f,y,_,d,o)}else this.checkExists(h,a,e,f,y,_,d,o);else switch(d.event){case hs:case ls:return this.addOrChange(h,a,e,f,y,_,d,o);case ds:case fs:return this.checkExists(h,a,e,f,y,_,d,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),r}async _handleFsEventsSymlink(t,e,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(e))){this.fsw._symlinkPaths.set(e,!0),this.fsw._incrReadyCount();try{let o=await ie(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||t,n=>{let r=t;return o&&o!==se?r=n.replace(o,t):n!==se&&(r=p.join(t,n)),s(r)},!1,i)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(t,e,s,i,o){let n=s(t),r=e.isDirectory(),a=this.fsw._getWatchedDir(p.dirname(n)),l=p.basename(n);r&&this.fsw._getWatchedDir(n),!a.has(l)&&(a.add(l),(!i.ignoreInitial||o===!0)&&this.fsw._emit(r?te:rt,n,e))}initWatch(t,e,s,i){if(this.fsw.closed)return;let o=this._watchWithFsEvents(s.watchPath,p.resolve(t||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(e,o)}async _addToFsEvents(t,e,s,i){if(this.fsw.closed)return;let o=this.fsw.options,n=typeof e===nt?e:ps,r=this.fsw._getWatchHelpers(t);try{let a=await bs[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,a))throw null;if(a.isDirectory()){if(r.globFilter||this.emitAdd(n(t),a,n,o,s),i&&i>o.depth)return;this.fsw._readdirp(r.watchPath,{fileFilter:l=>r.filterPath(l),directoryFilter:l=>r.filterDir(l),...gs(o.depth-(i||0))}).on(as,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!r.filterPath(l))return;let d=p.join(r.watchPath,l.path),{fullPath:h}=l;if(r.followSymlinks&&l.stats.isSymbolicLink()){let f=o.depth===void 0?void 0:ot(d,p.resolve(r.watchPath))+1;this._handleFsEventsSymlink(d,h,n,f)}else this.emitAdd(d,l.stats,n,o,s)}).on(os,Es).on(cs,()=>{this.fsw._emitReady()})}else this.emitAdd(r.watchPath,a,n,o,s),this.fsw._emitReady()}catch(a){(!a||this.fsw._handleError(a))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&s!==!0)if(typeof e===nt)this.initWatch(void 0,t,r,n);else{let a;try{a=await ie(r.watchPath)}catch{}this.initWatch(a,t,r,n)}}};dt.exports=ct;dt.exports.canUse=Fs});var ni=S(Pt=>{g();var{EventEmitter:vs}=w("events"),Tt=w("fs"),m=w("path"),{promisify:ue}=w("util"),As=xt(),Et=Yt().default,Is=pe(),ft=Ee(),Ns=ge(),Os=vt(),ks=Zt(),ae=oe(),{EV_ALL:ut,EV_READY:Ws,EV_ADD:q,EV_CHANGE:L,EV_UNLINK:ce,EV_ADD_DIR:Ls,EV_UNLINK_DIR:xs,EV_RAW:Cs,EV_ERROR:_t,STR_CLOSE:Ms,STR_END:Vs,BACK_SLASH_RE:Hs,DOUBLE_SLASH_RE:he,SLASH_OR_BACK_SLASH_RE:Gs,DOT_RE:Ys,REPLACER_RE:zs,SLASH:mt,SLASH_SLASH:js,BRACE_START:Us,BANG:pt,ONE_DOT:_e,TWO_DOTS:qs,GLOBSTAR:Bs,SLASH_GLOBSTAR:wt,ANYMATCH_OPTS:gt,STRING_TYPE:Dt,FUNCTION_TYPE:Ks,EMPTY_STR:yt,EMPTY_FN:$s,isWindows:Xs,isMacos:Qs,isIBMi:Js}=H(),Zs=ue(Tt.stat),ti=ue(Tt.readdir),bt=(c=[])=>Array.isArray(c)?c:[c],me=(c,t=[])=>(c.forEach(e=>{Array.isArray(e)?me(e,t):t.push(e)}),t),le=c=>{let t=me(bt(c));if(!t.every(e=>typeof e===Dt))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(we)},de=c=>{let t=c.replace(Hs,mt),e=!1;for(t.startsWith(js)&&(e=!0);t.match(he);)t=t.replace(he,mt);return e&&(t=mt+t),t},we=c=>de(m.normalize(de(c))),fe=(c=yt)=>t=>typeof t!==Dt?t:we(m.isAbsolute(t)?t:m.join(c,t)),ei=(c,t)=>m.isAbsolute(c)?c:c.startsWith(pt)?pt+m.join(t,c.slice(1)):m.join(t,c),b=(c,t)=>c[t]===void 0,St=class{constructor(t,e){this.path=t,this._removeWatcher=e,this.items=new Set}add(t){let{items:e}=this;e&&t!==_e&&t!==qs&&e.add(t)}async remove(t){let{items:e}=this;if(!e||(e.delete(t),e.size>0))return;let s=this.path;try{await ti(s)}catch{this._removeWatcher&&this._removeWatcher(m.dirname(s),m.basename(s))}}has(t){let{items:e}=this;if(e)return e.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},si="stat",ii="lstat",Rt=class{constructor(t,e,s,i){this.fsw=i,this.path=t=t.replace(zs,yt),this.watchPath=e,this.fullWatchPath=m.resolve(e),this.hasGlob=e!==t,t===yt&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?Et(t,void 0,gt):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=s,this.statMethod=s?si:ii}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return m.join(this.watchPath,m.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:e}=t;if(e&&e.isSymbolicLink())return this.filterDir(t);let s=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===Ks?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,e)&&this.fsw._hasReadPermissions(e)}getDirParts(t){if(!this.hasGlob)return[];let e=[];return(t.includes(Us)?Ns.expand(t):[t]).forEach(i=>{e.push(m.relative(this.watchPath,i).split(Gs))}),e}filterDir(t){if(this.hasGlob){let e=this.getDirParts(this.checkGlobSymlink(t)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((o,n)=>(o===Bs&&(s=!0),s||!e[0][n]||Et(o,e[0][n],gt))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},B=class extends vs{constructor(t){super();let e={};t&&Object.assign(e,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,b(e,"persistent")&&(e.persistent=!0),b(e,"ignoreInitial")&&(e.ignoreInitial=!1),b(e,"ignorePermissionErrors")&&(e.ignorePermissionErrors=!1),b(e,"interval")&&(e.interval=100),b(e,"binaryInterval")&&(e.binaryInterval=300),b(e,"disableGlobbing")&&(e.disableGlobbing=!1),e.enableBinaryInterval=e.binaryInterval!==e.interval,b(e,"useFsEvents")&&(e.useFsEvents=!e.usePolling),ae.canUse()||(e.useFsEvents=!1),b(e,"usePolling")&&!e.useFsEvents&&(e.usePolling=Qs),Js&&(e.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let a=i.toLowerCase();a==="false"||a==="0"?e.usePolling=!1:a==="true"||a==="1"?e.usePolling=!0:e.usePolling=!!a}let o=process.env.CHOKIDAR_INTERVAL;o&&(e.interval=Number.parseInt(o,10)),b(e,"atomic")&&(e.atomic=!e.usePolling&&!e.useFsEvents),e.atomic&&(this._pendingUnlinks=new Map),b(e,"followSymlinks")&&(e.followSymlinks=!0),b(e,"awaitWriteFinish")&&(e.awaitWriteFinish=!1),e.awaitWriteFinish===!0&&(e.awaitWriteFinish={});let n=e.awaitWriteFinish;n&&(n.stabilityThreshold||(n.stabilityThreshold=2e3),n.pollInterval||(n.pollInterval=100),this._pendingWrites=new Map),e.ignored&&(e.ignored=bt(e.ignored));let r=0;this._emitReady=()=>{r++,r>=this._readyCount&&(this._emitReady=$s,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ws)))},this._emitRaw=(...a)=>this.emit(Cs,...a),this._readyEmitted=!1,this.options=e,e.useFsEvents?this._fsEventsHandler=new ae(this):this._nodeFsHandler=new ks(this),Object.freeze(e)}add(t,e,s){let{cwd:i,disableGlobbing:o}=this.options;this.closed=!1;let n=le(t);return i&&(n=n.map(r=>{let a=ei(r,i);return o||!ft(r)?a:Os(a)})),n=n.filter(r=>r.startsWith(pt)?(this._ignoredPaths.add(r.slice(1)),!1):(this._ignoredPaths.delete(r),this._ignoredPaths.delete(r+wt),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=n.length),this.options.persistent&&(this._readyCount+=n.length),n.forEach(r=>this._fsEventsHandler._addToFsEvents(r))):(this._readyCount||(this._readyCount=0),this._readyCount+=n.length,Promise.all(n.map(async r=>{let a=await this._nodeFsHandler._addToNodeFs(r,!s,0,0,e);return a&&this._emitReady(),a})).then(r=>{this.closed||r.filter(a=>a).forEach(a=>{this.add(m.dirname(a),m.basename(e||a))})})),this}unwatch(t){if(this.closed)return this;let e=le(t),{cwd:s}=this.options;return e.forEach(i=>{!m.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=m.join(s,i)),i=m.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+wt),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(e=>e.forEach(s=>{let i=s();i instanceof Promise&&t.push(i)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((e,s)=>{let i=this.options.cwd?m.relative(this.options.cwd,s):s;t[i||_e]=e.getChildren().sort()}),t}emitWithAll(t,e){this.emit(...e),t!==_t&&this.emit(ut,...e)}async _emit(t,e,s,i,o){if(this.closed)return;let n=this.options;Xs&&(e=m.normalize(e)),n.cwd&&(e=m.relative(n.cwd,e));let r=[t,e];o!==void 0?r.push(s,i,o):i!==void 0?r.push(s,i):s!==void 0&&r.push(s);let a=n.awaitWriteFinish,l;if(a&&(l=this._pendingWrites.get(e)))return l.lastChange=new Date,this;if(n.atomic){if(t===ce)return this._pendingUnlinks.set(e,r),setTimeout(()=>{this._pendingUnlinks.forEach((d,h)=>{this.emit(...d),this.emit(ut,...d),this._pendingUnlinks.delete(h)})},typeof n.atomic=="number"?n.atomic:100),this;t===q&&this._pendingUnlinks.has(e)&&(t=r[0]=L,this._pendingUnlinks.delete(e))}if(a&&(t===q||t===L)&&this._readyEmitted){let d=(h,f)=>{h?(t=r[0]=_t,r[1]=h,this.emitWithAll(t,r)):f&&(r.length>2?r[2]=f:r.push(f),this.emitWithAll(t,r))};return this._awaitWriteFinish(e,a.stabilityThreshold,t,d),this}if(t===L&&!this._throttle(L,e,50))return this;if(n.alwaysStat&&s===void 0&&(t===q||t===Ls||t===L)){let d=n.cwd?m.join(n.cwd,e):e,h;try{h=await Zs(d)}catch{}if(!h||this.closed)return;r.push(h)}return this.emitWithAll(t,r),this}_handleError(t){let e=t&&t.code;return t&&e!=="ENOENT"&&e!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||e!=="EPERM"&&e!=="EACCES")&&this.emit(_t,t),t||this.closed}_throttle(t,e,s){this._throttled.has(t)||this._throttled.set(t,new Map);let i=this._throttled.get(t),o=i.get(e);if(o)return o.count++,!1;let n,r=()=>{let l=i.get(e),d=l?l.count:0;return i.delete(e),clearTimeout(n),l&&clearTimeout(l.timeoutObject),d};n=setTimeout(r,s);let a={timeoutObject:n,clear:r,count:0};return i.set(e,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,e,s,i){let o,n=t;this.options.cwd&&!m.isAbsolute(t)&&(n=m.join(this.options.cwd,t));let r=new Date,a=l=>{Tt.stat(n,(d,h)=>{if(d||!this._pendingWrites.has(t)){d&&d.code!=="ENOENT"&&i(d);return}let f=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(t).lastChange=f);let _=this._pendingWrites.get(t);f-_.lastChange>=e?(this._pendingWrites.delete(t),i(void 0,h)):o=setTimeout(a,this.options.awaitWriteFinish.pollInterval,h)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:r,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(o),s)}),o=setTimeout(a,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,e){if(this.options.atomic&&Ys.test(t))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,o=i&&i.map(fe(s)),n=bt(o).filter(a=>typeof a===Dt&&!ft(a)).map(a=>a+wt),r=this._getGlobIgnored().map(fe(s)).concat(o,n);this._userIgnored=Et(r,void 0,gt)}return this._userIgnored([t,e])}_isntIgnored(t,e){return!this._isIgnored(t,e)}_getWatchHelpers(t,e){let s=e||this.options.disableGlobbing||!ft(t)?t:Is(t),i=this.options.followSymlinks;return new Rt(t,s,i,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let e=m.resolve(t);return this._watched.has(e)||this._watched.set(e,new St(e,this._boundRemove)),this._watched.get(e)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let s=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(t,e,s){let i=m.join(t,e),o=m.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(o)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,e,!0),this._getWatchedDir(i).getChildren().forEach(f=>this._remove(i,f));let a=this._getWatchedDir(t),l=a.has(e);a.remove(e),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let d=i;if(this.options.cwd&&(d=m.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(d)&&this._pendingWrites.get(d).cancelWait()===q)return;this._watched.delete(i),this._watched.delete(o);let h=s?xs:ce;l&&!this._isIgnored(i)&&this._emit(h,i),this.options.useFsEvents||this._closePath(i)}_closePath(t){this._closeFile(t);let e=m.dirname(t);this._getWatchedDir(e).remove(m.basename(t))}_closeFile(t){let e=this._closers.get(t);e&&(e.forEach(s=>s()),this._closers.delete(t))}_addPathCloser(t,e){if(!e)return;let s=this._closers.get(t);s||(s=[],this._closers.set(t,s)),s.push(e)}_readdirp(t,e){if(this.closed)return;let s={type:ut,alwaysStat:!0,lstat:!0,...e},i=As(t,s);return this._streams.add(i),i.once(Ms,()=>{i=void 0}),i.once(Vs,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};Pt.FSWatcher=B;var ri=(c,t)=>{let e=new B(t);return e.add(c),e};Pt.watch=ri});export default ni();
@@ -1,4 +1,4 @@
1
- import{l as O}from"./chunk-MGL4YM3S.js";import{d as E}from"./chunk-BHWEA4V2.js";import{Pb as i,Qb as m,Z as b,da as N}from"./chunk-VPL2NDH6.js";import{g as u}from"./chunk-VPRTJUIN.js";u();u();var l=class{constructor({export:e,input:r,inputBytes:o,output:n,outputBytes:s,logs:a,functionId:f,fuelConsumed:c,target:A,errorMessage:S,errorType:w,inputQueryVariablesMetafieldValue:g,inputQueryVariablesMetafieldNamespace:I,inputQueryVariablesMetafieldKey:C}){this.export=e,this.input=r,this.inputBytes=o,this.output=n,this.outputBytes=s,this.logs=a,this.functionId=f,this.fuelConsumed=c,this.target=A,this.errorMessage=S,this.errorType=w,this.inputQueryVariablesMetafieldValue=g,this.inputQueryVariablesMetafieldNamespace=I,this.inputQueryVariablesMetafieldKey=C}},h=class{constructor({cacheEntryEpochMs:e,cacheTtlMs:r,httpRequest:o,httpResponse:n}){this.cacheEntryEpochMs=e,this.cacheTtlMs=r,this.httpRequest=o,this.httpResponse=n}},_;(function(t){t[t.NoCachedResponse=0]="NoCachedResponse",t[t.CacheAboutToExpire=1]="CacheAboutToExpire",t[t.Unknown=2]="Unknown"})(_||(_={}));var d=class{constructor({reason:e,httpRequest:r}){this.reason=e,this.httpRequest=r}},y=class{constructor({attempt:e,connectTimeMs:r,writeReadTimeMs:o,httpRequest:n,httpResponse:s,error:a}){this.attempt=e,this.connectTimeMs=r,this.writeReadTimeMs=o,this.httpRequest=n,this.httpResponse=s,this.error=a}};u();function R(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function M(t,e){return e?.deep&&R(t)||e?.deep&&Array.isArray(t)?p(t,e):t}function p(t,e){if(Array.isArray(t))return t.map(r=>e?.deep?p(r,e):r);if(R(t)){let r={};for(let[o,n]of Object.entries(t))r[b(o)]=M(n,e);return r}return t}var L=450,P=5*1e3,T=60*1e3,H=5,W=1e6,U="function_run",z="function_network_access",V="function_network_access.response_from_cache",q="function_network_access.request_execution_in_background",J="function_network_access.request_execution",Z="no_cached_response",ee="cached_response_about_to_expire";function te(t){let e=JSON.parse(t),r=e.input_query_variables_metafield_value&&x(e.input_query_variables_metafield_value);return new l({export:e.export,input:e.input,inputBytes:e.input_bytes,output:e.output,outputBytes:e.output_bytes,logs:e.logs,functionId:e.function_id,fuelConsumed:e.fuel_consumed,target:e.target,errorMessage:e.error_message,errorType:e.error_type,inputQueryVariablesMetafieldValue:r,inputQueryVariablesMetafieldNamespace:e.input_query_variables_metafield_namespace,inputQueryVariablesMetafieldKey:e.input_query_variables_metafield_key})}function re(t){let e=JSON.parse(t);return new h({cacheEntryEpochMs:e.cache_entry_epoch_ms,cacheTtlMs:e.cache_ttl_ms,httpRequest:e.http_request,httpResponse:e.http_response})}var k={no_cached_response:_.NoCachedResponse,cached_response_about_to_expire:_.CacheAboutToExpire};function se(t){let e=JSON.parse(t);return new d({reason:k[e.reason]??_.Unknown,httpRequest:e.http_request})}function oe(t){let e=JSON.parse(t);return new y({attempt:e.attempt,connectTimeMs:e.connect_time_ms??null,writeReadTimeMs:e.write_read_time_ms??null,httpRequest:e.http_request,httpResponse:e.http_response??null,error:e.error??null})}var ne=async t=>{let{errors:e}=t.response,r=L,o=null,n="not_attempted";if(e.length>0)if(i(`Errors: ${e.map(s=>s.message).join(", ")}`),e.some(s=>s.status===401))try{o=await t.onResubscribe(),n="succeeded"}catch(s){i(`Failed to resubscribe to app logs: ${s}`),r=T,n="failed",t.onThrottle(r)}else e.some(s=>s.status===429)?(r=T,t.onThrottle(r)):(r=P,t.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:o,resubscribeResult:n}};function ae(t){return t.allExtensions.flatMap(e=>e.isFunctionExtension?[`extensions.${e.configuration.handle}`]:[])}var ie=({appLog:t,appLogPayload:e,storeName:r,prettyPrint:o=!0})=>{let{cursor:n,...s}=t,a=p({...s,payload:e,localTime:N(t.log_timestamp),storeName:r});return e instanceof l&&(a.payload.logs=e.logs.split(`
1
+ import{l as O}from"./chunk-NTRAWIEJ.js";import{d as E}from"./chunk-TPCG6DCA.js";import{Pb as i,Qb as m,Z as b,da as N}from"./chunk-7FQFEB33.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();u();var l=class{constructor({export:e,input:r,inputBytes:o,output:n,outputBytes:s,logs:a,functionId:f,fuelConsumed:c,target:A,errorMessage:S,errorType:w,inputQueryVariablesMetafieldValue:g,inputQueryVariablesMetafieldNamespace:I,inputQueryVariablesMetafieldKey:C}){this.export=e,this.input=r,this.inputBytes=o,this.output=n,this.outputBytes=s,this.logs=a,this.functionId=f,this.fuelConsumed=c,this.target=A,this.errorMessage=S,this.errorType=w,this.inputQueryVariablesMetafieldValue=g,this.inputQueryVariablesMetafieldNamespace=I,this.inputQueryVariablesMetafieldKey=C}},h=class{constructor({cacheEntryEpochMs:e,cacheTtlMs:r,httpRequest:o,httpResponse:n}){this.cacheEntryEpochMs=e,this.cacheTtlMs=r,this.httpRequest=o,this.httpResponse=n}},_;(function(t){t[t.NoCachedResponse=0]="NoCachedResponse",t[t.CacheAboutToExpire=1]="CacheAboutToExpire",t[t.Unknown=2]="Unknown"})(_||(_={}));var d=class{constructor({reason:e,httpRequest:r}){this.reason=e,this.httpRequest=r}},y=class{constructor({attempt:e,connectTimeMs:r,writeReadTimeMs:o,httpRequest:n,httpResponse:s,error:a}){this.attempt=e,this.connectTimeMs=r,this.writeReadTimeMs=o,this.httpRequest=n,this.httpResponse=s,this.error=a}};u();function R(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function M(t,e){return e?.deep&&R(t)||e?.deep&&Array.isArray(t)?p(t,e):t}function p(t,e){if(Array.isArray(t))return t.map(r=>e?.deep?p(r,e):r);if(R(t)){let r={};for(let[o,n]of Object.entries(t))r[b(o)]=M(n,e);return r}return t}var L=450,P=5*1e3,T=60*1e3,H=5,W=1e6,U="function_run",z="function_network_access",V="function_network_access.response_from_cache",q="function_network_access.request_execution_in_background",J="function_network_access.request_execution",Z="no_cached_response",ee="cached_response_about_to_expire";function te(t){let e=JSON.parse(t),r=e.input_query_variables_metafield_value&&x(e.input_query_variables_metafield_value);return new l({export:e.export,input:e.input,inputBytes:e.input_bytes,output:e.output,outputBytes:e.output_bytes,logs:e.logs,functionId:e.function_id,fuelConsumed:e.fuel_consumed,target:e.target,errorMessage:e.error_message,errorType:e.error_type,inputQueryVariablesMetafieldValue:r,inputQueryVariablesMetafieldNamespace:e.input_query_variables_metafield_namespace,inputQueryVariablesMetafieldKey:e.input_query_variables_metafield_key})}function re(t){let e=JSON.parse(t);return new h({cacheEntryEpochMs:e.cache_entry_epoch_ms,cacheTtlMs:e.cache_ttl_ms,httpRequest:e.http_request,httpResponse:e.http_response})}var k={no_cached_response:_.NoCachedResponse,cached_response_about_to_expire:_.CacheAboutToExpire};function se(t){let e=JSON.parse(t);return new d({reason:k[e.reason]??_.Unknown,httpRequest:e.http_request})}function oe(t){let e=JSON.parse(t);return new y({attempt:e.attempt,connectTimeMs:e.connect_time_ms??null,writeReadTimeMs:e.write_read_time_ms??null,httpRequest:e.http_request,httpResponse:e.http_response??null,error:e.error??null})}var ne=async t=>{let{errors:e}=t.response,r=L,o=null,n="not_attempted";if(e.length>0)if(i(`Errors: ${e.map(s=>s.message).join(", ")}`),e.some(s=>s.status===401))try{o=await t.onResubscribe(),n="succeeded"}catch(s){i(`Failed to resubscribe to app logs: ${s}`),r=T,n="failed",t.onThrottle(r)}else e.some(s=>s.status===429)?(r=T,t.onThrottle(r)):(r=P,t.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:o,resubscribeResult:n}};function ae(t){return t.allExtensions.flatMap(e=>e.isFunctionExtension?[`extensions.${e.configuration.handle}`]:[])}var ie=({appLog:t,appLogPayload:e,storeName:r,prettyPrint:o=!0})=>{let{cursor:n,...s}=t,a=p({...s,payload:e,localTime:N(t.log_timestamp),storeName:r});return e instanceof l&&(a.payload.logs=e.logs.split(`
2
2
  `).filter(Boolean),a.payload.inputQueryVariablesMetafieldValue&&(a.payload.inputQueryVariablesMetafieldValue=x(a.payload.inputQueryVariablesMetafieldValue))),o?JSON.stringify(a,null,2):JSON.stringify(a)},pe=(t,e)=>{let r=p(JSON.parse(t));return e===U?new l(r):e===V?new h(r):e===q?new d(r):e===J?new y(r):r},ce=async(t,e,r,o)=>{let n=await t.subscribeToAppLogs(e,r);if(!n.appLogsSubscribe)throw new E("Failed to subscribe to app logs: No response received");let{jwtToken:s,success:a,errors:f}=n.appLogsSubscribe;if(i(`Token: ${s}
3
3
  `),i(`API Key: ${e.apiKey}
4
4
  `),f&&f.length>0){let c=f.join(", ");throw await O({stripAnsi:!1},()=>{m(`Errors subscribing to app logs: ${c}`,o),m("App log streaming is not available in this session.",o)}),new E(c)}else{if(!s)throw new E("Failed to subscribe to app logs: No response received");let c=Array.isArray(e.shopIds)?e.shopIds:[e.shopIds];i(`Subscribed to App Events for shop ID(s) ${c.join(", ")}`),a!==void 0&&i(`Success: ${a}
@@ -1,4 +1,4 @@
1
- import{a as y}from"./chunk-MFLBTJO7.js";import{c as v}from"./chunk-D3DDLLNF.js";import{d as f}from"./chunk-M4V2OQAX.js";import{a as c}from"./chunk-2YXKZWYW.js";import{a as u}from"./chunk-7BFDUVOG.js";import{k as p,q as m}from"./chunk-HHXHOQQP.js";import{xa as h}from"./chunk-4V4DQ6W7.js";import{b as l,d}from"./chunk-4KRT35A2.js";import{r as O}from"./chunk-3YWUSKWF.js";import{e as F,g as a}from"./chunk-VPRTJUIN.js";a();var t=F(O(),1);var w,o=class extends m{async command(r,n){let{ignore:g=[],only:_=[]}=r;h("theme-command:dev:single-env:authenticated");let i,e;if(r.theme){let s={filter:{theme:r.theme}};i=await u(n,s),e={...r,theme:i.id.toString(),store:n.storeFqdn}}else{i=await new c(n).findOrCreate();let s=r["theme-editor-sync"]&&i.createdAtRuntime;e={...r,theme:i.id.toString(),store:n.storeFqdn,"overwrite-json":s}}await f(i,"start development mode",r["allow-live"])&&(await v({adminSession:n,commandConfig:this.config,directory:e.path,store:e.store,password:e.password,storePassword:e["store-password"],theme:i,listing:e.listing,host:e.host,port:e.port,"live-reload":e["live-reload"],"error-overlay":e["error-overlay"],force:e.force,open:e.open,"theme-editor-sync":e["theme-editor-sync"],"standard-events-inspector":e["standard-events-inspector"],noDelete:e.nodelete,ignore:g,only:_,notify:e.notify}),await y({path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"],silent:!0}))}};w=o;o.summary="Uploads the current theme as a development theme to the connected store, then prints theme editor and preview URLs to your terminal. While running, changes will push to the store in real time.";o.descriptionWithMarkdown=`
1
+ import{c as v}from"./chunk-DZQYG32N.js";import{a as y}from"./chunk-WHNWE7P2.js";import{a as c}from"./chunk-AVD3INWF.js";import{a as u}from"./chunk-MIDYZPO4.js";import{d as f}from"./chunk-VJ6KDRZI.js";import{k as p,q as m}from"./chunk-TUNUEOHO.js";import{xa as h}from"./chunk-G4OQABDT.js";import{b as l,d}from"./chunk-OXJBYKMX.js";import{r as O}from"./chunk-T6CC5WUU.js";import{e as F,g as a}from"./chunk-VKWPEFWQ.js";a();var t=F(O(),1);var w,o=class extends m{async command(r,n){let{ignore:g=[],only:_=[]}=r;h("theme-command:dev:single-env:authenticated");let i,e;if(r.theme){let s={filter:{theme:r.theme}};i=await u(n,s),e={...r,theme:i.id.toString(),store:n.storeFqdn}}else{i=await new c(n).findOrCreate();let s=r["theme-editor-sync"]&&i.createdAtRuntime;e={...r,theme:i.id.toString(),store:n.storeFqdn,"overwrite-json":s}}await f(i,"start development mode",r["allow-live"])&&(await v({adminSession:n,commandConfig:this.config,directory:e.path,store:e.store,password:e.password,storePassword:e["store-password"],theme:i,listing:e.listing,host:e.host,port:e.port,"live-reload":e["live-reload"],"error-overlay":e["error-overlay"],force:e.force,open:e.open,"theme-editor-sync":e["theme-editor-sync"],"standard-events-inspector":e["standard-events-inspector"],noDelete:e.nodelete,ignore:g,only:_,notify:e.notify}),await y({path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"],silent:!0}))}};w=o;o.summary="Uploads the current theme as a development theme to the connected store, then prints theme editor and preview URLs to your terminal. While running, changes will push to the store in real time.";o.descriptionWithMarkdown=`
2
2
  Uploads the current theme as the specified theme, or a [development theme](https://shopify.dev/docs/themes/tools/cli#development-themes), to a store so you can preview it.
3
3
 
4
4
  This command returns the following information:
@@ -1,4 +1,4 @@
1
- import{a as L}from"./chunk-LCCMXY6N.js";import{a as M}from"./chunk-T5MK7ZSF.js";import{a as C}from"./chunk-DCK2FX6J.js";import{F as j,Fa as E}from"./chunk-WCWNI3ZV.js";import{e as I}from"./chunk-N5ROZKPZ.js";import{a as J}from"./chunk-AP3RFOPL.js";import{R as h,da as g,ga as A,z as y}from"./chunk-4V4DQ6W7.js";import{b as O}from"./chunk-4KRT35A2.js";import{D,E as f,u as T}from"./chunk-MGL4YM3S.js";import{g as R}from"./chunk-BHWEA4V2.js";import{r as z}from"./chunk-3YWUSKWF.js";import{Fb as k,Hb as m,Mb as v}from"./chunk-VPL2NDH6.js";import{e as _,g as s}from"./chunk-VPRTJUIN.js";s();s();s();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};s();async function Q(e){let i="Admin",n=I(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function w(e){return A({query:e.query,...await Q(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}s();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var $=_(J(),1);var Z={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function q({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>w({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),l=[];for(l.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(await d(t(a))),l.push(...o.nodes);return{status:"ok",items:l}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function x(e,i){let n="";for(let t of e)n=(0,$.updateTomlValues)(n,t);return`# ${i}
1
+ import{a as L}from"./chunk-OZBY45KT.js";import{a as M}from"./chunk-EKVTNWHM.js";import{a as C}from"./chunk-5BKCIDMS.js";import{F as j,Fa as E}from"./chunk-4QTEPWEJ.js";import{e as I}from"./chunk-CFOXXOO2.js";import{a as J}from"./chunk-A5HKAMAC.js";import{R as h,da as g,ga as A,z as y}from"./chunk-G4OQABDT.js";import{b as O}from"./chunk-OXJBYKMX.js";import{D,E as f,u as T}from"./chunk-NTRAWIEJ.js";import{g as R}from"./chunk-TPCG6DCA.js";import{r as z}from"./chunk-T6CC5WUU.js";import{Fb as k,Hb as m,Mb as v}from"./chunk-7FQFEB33.js";import{e as _,g as s}from"./chunk-VKWPEFWQ.js";s();s();s();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetafieldForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetafieldForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetafieldDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}},{kind:"Field",name:{kind:"Name",value:"customerAccount"}}]}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"adminFilterable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]};s();async function Q(e){let i="Admin",n=I(e.storeFqdn,"unstable");return{token:e.token,api:i,url:n}}async function w(e){return A({query:e.query,...await Q(e.session),variables:e.variables,autoRateLimitRestore:e.autoRateLimitRestore})}s();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metaobjectDefinitions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaobjectDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MetaobjectForImport"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MetaobjectForImport"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MetaobjectDefinition"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"access"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"admin"}},{kind:"Field",name:{kind:"Name",value:"storefront"}}]}},{kind:"Field",name:{kind:"Name",value:"displayNameKey"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publishable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"translatable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"renderable"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleKey"}},{kind:"Field",name:{kind:"Name",value:"metaDescriptionKey"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"fieldDefinitions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"required"}},{kind:"Field",name:{kind:"Name",value:"validations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}}]}}]};var $=_(J(),1);var Z={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",customer:"CUSTOMER",delivery_customization:"DELIVERY_CUSTOMIZATION",delivery_method:"DELIVERY_METHOD",delivery_option_generator:"DELIVERY_OPTION_GENERATOR",discount:"DISCOUNT",draft_order:"DRAFTORDER",fulfillment_constraint_rule:"FULFILLMENT_CONSTRAINT_RULE",gift_card_transaction:"GIFT_CARD_TRANSACTION",order_routing_location_rule:"ORDER_ROUTING_LOCATION_RULE",payment_customization:"PAYMENT_CUSTOMIZATION",selling_plan:"SELLING_PLAN",shop:"SHOP",validation:"VALIDATION",variant:"PRODUCTVARIANT",cart_transform:"CARTTRANSFORM"};async function q({query:e,session:i,toNodes:n,toVariables:t,performQuery:d=a=>w({query:e,session:i,variables:a,autoRateLimitRestore:!0})}){let a;try{let o=n(await d(t(a))),l=[];for(l.push(...o.nodes);o.pageInfo.hasNextPage;)a=o.pageInfo.endCursor,o=n(await d(t(a))),l.push(...o.nodes);return{status:"ok",items:l}}catch(o){if(o instanceof Error&&o.message.includes("ACCESS_DENIED"))return{status:"scope_error"};throw o}}function x(e,i){let n="";for(let t of e)n=(0,$.updateTomlValues)(n,t);return`# ${i}
2
2
  ${n}`}function X(e,i){let n=i.map(le).map(a=>{switch(a.status){case"ok":{let{typeName:o,patches:l}=a;return x(l,`type: $app:${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null),t=e.flatMap(({items:a,ownerType:o,graphQLOwner:l})=>a.map(r=>({result:oe(r,o),graphQLOwner:l}))).map(({result:a,graphQLOwner:o})=>{switch(a.status){case"ok":{let{namespace:l,key:r,patches:b}=a;return x(b,`namespace: ${l==="app"?"$app":`$app:${l}`} key: ${r} owner_type: ${o}`)}case"not_app_reserved":return null}}).filter(a=>a!==null);return{tomlContent:[...n,...t].join(`
3
3
  `),metafieldCount:t.length,metaobjectCount:n.length}}async function K(e){let i=await de(e),n=i.storeFqdn,t=await ne(i),d=await ie(i);e.includeExistingDeclaredDefinitions||(t=te(t,e.appConfiguration),d=ae(d,e.appConfiguration));let{tomlContent:a,metafieldCount:o,metaobjectCount:l}=X(t,d);ee(o,l,n,a)}function ee(e,i,n,t){T({headline:"Conversion to TOML complete.",body:["Converted",{warn:`${e} metafields`},"and",{warn:`${i} metaobjects`},"from",{warn:n},"into TOML, ready for you to copy."],orderedNextSteps:!0,nextSteps:["Review the suggested TOML carefully before applying.",["Missing sections? Make sure your app has the required access scopes to load metafields and metaobjects (e.g.",{command:"read_customers"},"to load customer metafields,",{command:"read_metaobject_definitions"},"to load metaobjects.)"],["Missing definitions? Only metafields and metaobjects that are app-reserved (using",{command:"$app"},") will be converted."],["When you're ready, add the generated TOML to your app's configuration file and test out changes with the",{command:"shopify app dev"},"command."]]}),ue(t)}async function ne(e){let i=[];return await D(Object.entries(Z).map(([n,t])=>({title:m`Loading ${k.green(n)} metafields`,task:async()=>{let d=await q({query:P,session:e,toNodes:a=>a.metafieldDefinitions,toVariables:a=>({ownerType:t,after:a})});i.push({metafields:d,ownerType:n,graphQLOwner:t})}}))),i.map(({metafields:n,ownerType:t,graphQLOwner:d})=>n.status==="ok"?{ownerType:t,items:n.items,graphQLOwner:d}:null).filter(n=>n!==null)}async function ie(e){let i=await f({title:m`Loading ${k.green("metaobjects")}`,task:async()=>q({query:V,session:e,toNodes:n=>n.metaobjectDefinitions,toVariables:n=>({after:n})})});return i.status==="ok"?i.items:[]}function te(e,i){return e.map(n=>{let t=n.items.filter(d=>!U(i,[n.ownerType,"metafields",p(d.namespace)??"",d.key]));return t.length>0?{...n,items:t}:null}).filter(n=>n!==null)}function ae(e,i){return e.filter(n=>!U(i,["metaobjects","app",p(n.type)??""]))}function U(e,i){let n=e;for(let t of i){if(!n[t])return!1;n=n[t]}return!0}async function de(e){let{remoteApp:i,store:n}=e,t=i.apiSecretKeys[0]?.secret;if(!t)throw new R("No API secret keys found for app");return await h(n.shopDomain,i.apiKey,t)}function p(e){if(!e.match(/^app--\d+/))return null;let i="app";return e.match(/^app--\d+--/)&&(i=e.replace(/^app--\d+--/,"")),i}function oe(e,i){let n=p(e.namespace);if(!n)return{status:"not_app_reserved"};let t=e.key,d=se(e),a=me(d,i,n,t);return{status:"ok",key:t,namespace:n,patches:a}}function le(e){let i=p(e.type);if(!i)return{status:"not_app_reserved"};let n=re(e,i),t=ce(n,i);return{status:"ok",typeName:i,patches:t}}function se(e){let i={name:e.name===e.key?void 0:e.name,type:e.type.name,description:e.description??void 0,capabilities:u({admin_filterable:e.capabilities.adminFilterable.enabled||void 0}),access:u({admin:Y(e.access.admin),storefront:H(e.access.storefront),customer_account:pe(e.access.customerAccount)}),validations:B(e.validations)},{type:n,validations:t}=G(i.type,i.validations);return i.type=n,i.validations=t,i}function re(e,i){return{name:e.name===i?void 0:e.name,description:e.description??void 0,display_name_field:e.displayNameKey??void 0,access:u({admin:Y(e.access.admin),storefront:H(e.access.storefront)}),capabilities:u({translatable:e.capabilities.translatable.enabled||void 0,publishable:e.capabilities.publishable.enabled||void 0,renderable:e.capabilities.renderable?.enabled||void 0,renderable_meta_title_field:e.capabilities.renderable?.data?.metaTitleKey??void 0,renderable_meta_description_field:e.capabilities.renderable?.data?.metaDescriptionKey??void 0}),fields:Object.fromEntries(e.fieldDefinitions.map(n=>{let t={type:n.type.name,description:n.description??void 0,name:n.name===n.key?void 0:n.name,required:n.required||void 0,validations:B(n.validations)},{type:d,validations:a}=G(t.type,t.validations);return t.type=d,t.validations=a,[n.key,t]}))}}function G(e,i){if(!i)return{type:e,validations:void 0};if(i.metaobject_definition_type&&typeof i.metaobject_definition_type=="string"){let n=p(i.metaobject_definition_type);return{type:`${e}<$app:${n}>`,validations:u({...i,metaobject_definition_type:void 0})}}if(i.metaobject_definition_types&&Array.isArray(i.metaobject_definition_types)&&i.metaobject_definition_types.every(n=>typeof n=="string")){let n=i.metaobject_definition_types.map(t=>p(t));return{type:`${e}<${n.map(t=>`$app:${t}`).join(",")}>`,validations:u({...i,metaobject_definition_types:void 0})}}return{type:e,validations:i}}function B(e){let i=n=>{try{return JSON.parse(n)}catch{return n}};return u(Object.fromEntries(e.filter(n=>n.value!==void 0&&n.name!=="metaobject_definition_id"&&n.name!=="metaobject_definition_ids").map(n=>[n.name,n.value?i(n.value):void 0])))}function me(e,i,n,t){let d=[[[i,"metafields",n,t,"name"],e.name],[[i,"metafields",n,t,"type"],e.type],[[i,"metafields",n,t,"description"],e.description]],a=[[[i,"metafields",n,t,"access","admin"],e.access?.admin],[[i,"metafields",n,t,"access","storefront"],e.access?.storefront],[[i,"metafields",n,t,"access","customer_account"],e.access?.customer_account],[[i,"metafields",n,t,"capabilities","admin_filterable"],e.capabilities?.admin_filterable||void 0]];return e.validations&&W(e.validations).forEach(({validationKey:l,actualValue:r})=>{d.push([[i,"metafields",n,t,"validations",l],r])}),[N(d),N(a)]}function ce(e,i){let n=[[["metaobjects","app",i,"name"],e.name===i?void 0:e.name],[["metaobjects","app",i,"description"],e.description],[["metaobjects","app",i,"display_name_field"],e.display_name_field]],t=[[["metaobjects","app",i,"access","admin"],e.access?.admin],[["metaobjects","app",i,"access","storefront"],e.access?.storefront]];return e.capabilities?.translatable&&t.push([["metaobjects","app",i,"capabilities","translatable"],!0]),e.capabilities?.publishable&&t.push([["metaobjects","app",i,"capabilities","publishable"],!0]),e.capabilities?.renderable&&(t.push([["metaobjects","app",i,"capabilities","renderable"],!0]),e.capabilities?.renderable_meta_title_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_title_field"],e.capabilities.renderable_meta_title_field]),e.capabilities?.renderable_meta_description_field&&t.push([["metaobjects","app",i,"capabilities","renderable_meta_description_field"],e.capabilities.renderable_meta_description_field])),Object.entries(e.fields).forEach(([d,a])=>{if(typeof a=="string")n.push([["metaobjects","app",i,"fields",d],a]);else{let o=Object.fromEntries(Object.entries(a).filter(([l,r])=>r!==void 0));Object.keys(o).length===1?n.push([["metaobjects","app",i,"fields",d],a.type]):(n.push([["metaobjects","app",i,"fields",d,"type"],a.type]),n.push([["metaobjects","app",i,"fields",d,"description"],a.description]),n.push([["metaobjects","app",i,"fields",d,"name"],a.name]),n.push([["metaobjects","app",i,"fields",d,"required"],a.required||void 0]),a.validations&&W(a.validations).forEach(({validationKey:r,actualValue:b})=>{n.push([["metaobjects","app",i,"fields",d,"validations",r],b])}))}}),[N(n),N(t)]}function W(e){return Object.entries(e).map(([i,n])=>{let t;return typeof n=="string"||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&n.every(d=>typeof d=="string")?t=n:t=JSON.stringify(n),{validationKey:i,actualValue:t}})}function ue(e){let i=e.split(`
4
4
  `);for(let n of i)n.match(/^\s*\[/)?v(m`${k.green(n)}`):n.match(/^\s*#/)?v(m`${k.gray(n)}`):v(m`${n}`)}function Y(e){switch(e){case"MERCHANT_READ_WRITE":return"merchant_read_write";case"MERCHANT_READ":case"PRIVATE":case"PUBLIC_READ":case"PUBLIC_READ_WRITE":case null:case void 0:return}}function H(e){switch(e){case"PUBLIC_READ":return"public_read";case"NONE":case null:case void 0:return}}function pe(e){switch(e){case"READ":return"read";case"READ_WRITE":return"read_write";case"NONE":case null:case void 0:return}}function u(e){if(e&&!g(e)&&!(typeof e=="object"&&Object.values(e).every(i=>i===void 0)))return e}function N(e){return e.filter(([i,n])=>n!==void 0)}var S=_(z(),1);var F,c=class extends M{async run(){let{appContextResult:i,...n}=await f({title:m`Loading application`,task:async()=>{let{flags:t}=await this.parse(F);await j(t.path);let d=await E({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),a=await L({appContextResult:d,storeFqdn:t.store,forceReselectStore:t.reset});return{appContextResult:d,appConfiguration:d.app.configuration,remoteApp:d.remoteApp,store:a,includeExistingDeclaredDefinitions:t["include-existing"]}}});return await K(n),{app:i.app}}};F=c;c.summary="Import metafield and metaobject definitions.";c.descriptionWithMarkdown="Import metafield and metaobject definitions from your development store. [Read more about declarative custom data definitions](https://shopify.dev/docs/apps/build/custom-data/declarative-custom-data-definitions).";c.description=F.descriptionWithoutMarkdown();c.flags={...O,...C,store:S.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",parse:async e=>y(e)}),"include-existing":S.Flags.boolean({description:"Include existing declared definitions in the output.",default:!1,env:"SHOPIFY_FLAG_INCLUDE_EXISTING"})};var Ke=c;export{Ke as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-T5MK7ZSF.js";import{a as k}from"./chunk-DCK2FX6J.js";import{Fa as N,ga as x}from"./chunk-WCWNI3ZV.js";import{b as C,c as R}from"./chunk-4KRT35A2.js";import{C as y}from"./chunk-MGL4YM3S.js";import{d as v}from"./chunk-BHWEA4V2.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ca as h}from"./chunk-VPL2NDH6.js";import{u as A}from"./chunk-7JESXDF2.js";import{j as u}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
1
+ import{a as b}from"./chunk-EKVTNWHM.js";import{a as k}from"./chunk-5BKCIDMS.js";import{Fa as N,ga as x}from"./chunk-4QTEPWEJ.js";import{b as C,c as R}from"./chunk-OXJBYKMX.js";import{C as y}from"./chunk-NTRAWIEJ.js";import{d as v}from"./chunk-TPCG6DCA.js";import{Fb as w,Hb as E,Lb as L,Mb as m,Vb as T,ca as h}from"./chunk-7FQFEB33.js";import{u as A}from"./chunk-A4SBXDZB.js";import{j as u}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();l();var M=12;async function S(p,t,o){let n=await p.appVersions(t);if(!n.app)throw new v(`Invalid API Key: ${t.apiKey}`);let a=n.app.appVersions.nodes.map(e=>{let r=e.message??"";return{...e,status:e.status==="active"&&!o?A.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:h(new Date(e.createdAt)),message:r}});if(!o){let e=(process.stdout.columns??75)-M,r=e;a.forEach(s=>{let f=s.message.length+(s.versionTag?.length??0)+T(s.status).length+s.createdAt.length+s.createdBy.length;if(f>e){let I=f-s.message.length,g=Math.max(e-I,10);g<r&&(r=g)}}),a.forEach(s=>{s.message.length>r&&(s.message=`${s.message.slice(0,r-3)}...`)})}return{appVersions:a,totalResults:n.app.appVersions.pageInfo.totalResults,app:n.app}}async function c(p){let{remoteApp:t,developerPlatformClient:o,organization:n}=p,{appVersions:a,totalResults:e}=await S(o,t,p.json);if(p.json)return L(JSON.stringify(a,null,2));if(x({org:n.businessName,appName:t.title,configFile:u(p.app.configPath)}),a.length===0){m("No app versions found for this app");return}y({rows:a,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let r=w.link(o.webUiName,[await o.appDeepLink(t),"versions"].join("/"));m(E`\nView all ${String(e)} app versions in the ${r}`)}var d,i=class extends b{async run(){let{flags:t}=await this.parse(d),{app:o,remoteApp:n,developerPlatformClient:a,organization:e}=await N({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await c({app:o,remoteApp:n,organization:e,developerPlatformClient:a,json:t.json}),{app:o}}};d=i;i.summary="List deployed versions of your app.";i.descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";i.description=d.descriptionWithoutMarkdown();i.flags={...C,...k,...R};var J=i;export{J as a};
@@ -1 +1 @@
1
- import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-4V4DQ6W7.js";import{h as n}from"./chunk-LITB5QQX.js";import{b as g}from"./chunk-VEDZUOVI.js";import{F as S,z as h}from"./chunk-MGL4YM3S.js";import{r as C}from"./chunk-3YWUSKWF.js";import{Ob as w}from"./chunk-VPL2NDH6.js";import{e as L,g as i}from"./chunk-VPRTJUIN.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
1
+ import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-G4OQABDT.js";import{h as n}from"./chunk-HDC5V7RY.js";import{b as g}from"./chunk-HOSFU6UP.js";import{F as S,z as h}from"./chunk-NTRAWIEJ.js";import{r as C}from"./chunk-T6CC5WUU.js";import{Ob as w}from"./chunk-7FQFEB33.js";import{e as L,g as i}from"./chunk-VKWPEFWQ.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
@@ -1,4 +1,4 @@
1
- import{a as se,c as k,g as d}from"./chunk-VPRTJUIN.js";var De=k((yn,Ge)=>{d();Ge.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var qe=k((Sn,Ke)=>{d();var Wt=De(),Ue={"{":"}","(":")","[":"]"},Zt=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,s=-2,i=-2,u=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(u===-1||u>n||(u=e.indexOf("\\",t),u===-1||u>n)))||s!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(s=e.indexOf("}",t),s>t&&(u=e.indexOf("\\",t),u===-1||u>s))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(u=e.indexOf("\\",t),u===-1||u>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(u=e.indexOf("\\",r),u===-1||u>i))))return!0;if(e[t]==="\\"){var l=e[t+1];t+=2;var A=Ue[l];if(A){var _=e.indexOf(A,t);_!==-1&&(t=_+1)}if(e[t]==="!")return!0}else t++}return!1},jt=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Ue[r];if(n){var s=e.indexOf(n,t);s!==-1&&(t=s+1)}if(e[t]==="!")return!0}else t++}return!1};Ke.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Wt(t))return!0;var n=Zt;return r&&r.strict===!1&&(n=jt),n(t)}});var nr=k((Hn,Fe)=>{"use strict";d();var zt=qe(),Yt=se("path").posix.dirname,Vt=se("os").platform()==="win32",Se="/",Jt=/\\/g,er=/[\{\[].*[\}\]]$/,tr=/(^|[^\\])([\{\[]|\([^\)]+$)/,rr=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Fe.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Vt&&t.indexOf(Se)<0&&(t=t.replace(Jt,Se)),er.test(t)&&(t+=Se),t+="a";do t=Yt(t);while(zt(t)||tr.test(t));return t.replace(rr,"$1")}});var Re=k(W=>{"use strict";d();W.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;W.find=(e,t)=>e.nodes.find(r=>r.type===t);W.exceedsLimit=(e,t,r=1,n)=>n===!1||!W.isInteger(e)||!W.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;W.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};W.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;W.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;W.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;W.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);W.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var he=k((Ln,Xe)=>{"use strict";d();var Qe=Re();Xe.exports=(e,t={})=>{let r=(n,s={})=>{let i=t.escapeInvalid&&Qe.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,l="";if(n.value)return(i||u)&&Qe.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let A of n.nodes)l+=r(A);return l};return r(e)}});var Ze=k((mn,We)=>{"use strict";d();We.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var nt=k((wn,rt)=>{"use strict";d();var je=Ze(),re=(e,t,r)=>{if(je(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(je(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),u=String(n.capture),l=String(n.wrap),A=e+":"+t+"="+s+i+u+l;if(re.cache.hasOwnProperty(A))return re.cache[A].result;let _=Math.min(e,t),h=Math.max(e,t);if(Math.abs(_-h)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let E=tt(e)||tt(t),f={min:e,max:t,a:_,b:h},H=[],C=[];if(E&&(f.isPadded=E,f.maxLen=String(f.max).length),_<0){let g=h<0?Math.abs(h):1;C=ze(g,Math.abs(_),f,n),_=f.a=0}return h>=0&&(H=ze(_,h,f,n)),f.negatives=C,f.positives=H,f.result=sr(C,H,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&H.length+C.length>1&&(f.result=`(?:${f.result})`),re.cache[A]=f,f.result};function sr(e,t,r){let n=be(e,t,"-",!1,r)||[],s=be(t,e,"",!1,r)||[],i=be(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function ur(e,t){let r=1,n=1,s=Ve(e,r),i=new Set([t]);for(;e<=s&&s<=t;)i.add(s),r+=1,s=Ve(e,r);for(s=Je(t+1,n)-1;e<s&&s<=t;)i.add(s),n+=1,s=Je(t+1,n)-1;return i=[...i],i.sort(or),i}function ir(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=ar(e,t),s=n.length,i="",u=0;for(let l=0;l<s;l++){let[A,_]=n[l];A===_?i+=A:A!=="0"||_!=="9"?i+=cr(A,_,r):u++}return u&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[u],digits:s}}function ze(e,t,r,n){let s=ur(e,t),i=[],u=e,l;for(let A=0;A<s.length;A++){let _=s[A],h=ir(String(u),String(_),n),E="";if(!r.isPadded&&l&&l.pattern===h.pattern){l.count.length>1&&l.count.pop(),l.count.push(h.count[0]),l.string=l.pattern+et(l.count),u=_+1;continue}r.isPadded&&(E=lr(_,r,n)),h.string=E+h.pattern+et(h.count),i.push(h),u=_+1,l=h}return i}function be(e,t,r,n,s){let i=[];for(let u of e){let{string:l}=u;!n&&!Ye(t,"string",l)&&i.push(r+l),n&&Ye(t,"string",l)&&i.push(r+l)}return i}function ar(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function or(e,t){return e>t?1:t>e?-1:0}function Ye(e,t,r){return e.some(n=>n[t]===r)}function Ve(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Je(e,t){return e-e%Math.pow(10,t)}function et(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function cr(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function tt(e){return/^-?(0+)\d/.test(e)}function lr(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}re.cache={};re.clearCache=()=>re.cache={};rt.exports=re});var $e=k((Bn,lt)=>{"use strict";d();var fr=se("util"),ut=nt(),st=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),pr=e=>t=>e===!0?Number(t):String(t),He=e=>typeof e=="number"||typeof e=="string"&&e!=="",ae=e=>Number.isInteger(+e),ve=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Ar=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Rr=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},_e=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},hr=(e,t,r)=>{e.negatives.sort((l,A)=>l<A?-1:l>A?1:0),e.positives.sort((l,A)=>l<A?-1:l>A?1:0);let n=t.capture?"":"?:",s="",i="",u;return e.positives.length&&(s=e.positives.map(l=>_e(String(l),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(l=>_e(String(l),r)).join("|")})`),s&&i?u=`${s}|${i}`:u=s||i,t.wrap?`(${n}${u})`:u},it=(e,t,r,n)=>{if(r)return ut(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},at=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return ut(e,t,r)},ot=(...e)=>new RangeError("Invalid range arguments: "+fr.inspect(...e)),ct=(e,t,r)=>{if(r.strictRanges===!0)throw ot([e,t]);return[]},gr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},_r=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw ot([e,t]);return[]}s===0&&(s=0),i===0&&(i=0);let u=s>i,l=String(e),A=String(t),_=String(r);r=Math.max(Math.abs(r),1);let h=ve(l)||ve(A)||ve(_),E=h?Math.max(l.length,A.length,_.length):0,f=h===!1&&Ar(e,t,n)===!1,H=n.transform||pr(f);if(n.toRegex&&r===1)return it(_e(e,E),_e(t,E),!0,n);let C={negatives:[],positives:[]},g=K=>C[K<0?"negatives":"positives"].push(Math.abs(K)),$=[],N=0;for(;u?s>=i:s<=i;)n.toRegex===!0&&r>1?g(s):$.push(Rr(H(s,N),E,f)),s=u?s-r:s+r,N++;return n.toRegex===!0?r>1?hr(C,n,E):at($,null,{wrap:!1,...n}):$},Er=(e,t,r=1,n={})=>{if(!ae(e)&&e.length>1||!ae(t)&&t.length>1)return ct(e,t,n);let s=n.transform||(f=>String.fromCharCode(f)),i=`${e}`.charCodeAt(0),u=`${t}`.charCodeAt(0),l=i>u,A=Math.min(i,u),_=Math.max(i,u);if(n.toRegex&&r===1)return it(A,_,!1,n);let h=[],E=0;for(;l?i>=u:i<=u;)h.push(s(i,E)),i=l?i-r:i+r,E++;return n.toRegex===!0?at(h,null,{wrap:!1,options:n}):h},ge=(e,t,r,n={})=>{if(t==null&&He(e))return[e];if(!He(e)||!He(t))return ct(e,t,n);if(typeof r=="function")return ge(e,t,1,{transform:r});if(st(r))return ge(e,t,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,ae(r)?ae(e)&&ae(t)?_r(e,t,r,s):Er(e,t,Math.max(Math.abs(r),1),s):r!=null&&!st(r)?gr(r,s):ge(e,t,1,r)};lt.exports=ge});var At=k((Mn,pt)=>{"use strict";d();var Cr=$e(),ft=Re(),xr=(e,t={})=>{let r=(n,s={})=>{let i=ft.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,l=i===!0||u===!0,A=t.escapeInvalid===!0?"\\":"",_="";if(n.isOpen===!0)return A+n.value;if(n.isClose===!0)return console.log("node.isClose",A,n.value),A+n.value;if(n.type==="open")return l?A+n.value:"(";if(n.type==="close")return l?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":l?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let h=ft.reduce(n.nodes),E=Cr(...h,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(E.length!==0)return h.length>1&&E.length>1?`(${E})`:E}if(n.nodes)for(let h of n.nodes)_+=r(h,n);return _};return r(e)};pt.exports=xr});var gt=k((Gn,ht)=>{"use strict";d();var yr=$e(),Rt=he(),ue=Re(),ne=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ue.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(ne(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ne(s,i,r):s+i);return ue.flatten(n)},dr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,i={})=>{s.queue=[];let u=i,l=i.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=u.queue;if(s.invalid||s.dollar){l.push(ne(l.pop(),Rt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){l.push(ne(l.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let E=ue.reduce(s.nodes);if(ue.exceedsLimit(...E,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=yr(...E,t);f.length===0&&(f=Rt(s,t)),l.push(ne(l.pop(),f)),s.nodes=[];return}let A=ue.encloseBrace(s),_=s.queue,h=s;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,_=h.queue;for(let E=0;E<s.nodes.length;E++){let f=s.nodes[E];if(f.type==="comma"&&s.type==="brace"){E===1&&_.push(""),_.push("");continue}if(f.type==="close"){l.push(ne(l.pop(),_,A));continue}if(f.value&&f.type!=="open"){_.push(ne(_.pop(),f.value));continue}f.nodes&&n(f,s)}return _};return ue.flatten(n(e))};ht.exports=dr});var Et=k((Un,_t)=>{"use strict";d();_t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
1
+ import{a as se,c as k,g as d}from"./chunk-VKWPEFWQ.js";var De=k((yn,Ge)=>{d();Ge.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var qe=k((Sn,Ke)=>{d();var Wt=De(),Ue={"{":"}","(":")","[":"]"},Zt=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,s=-2,i=-2,u=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(u===-1||u>n||(u=e.indexOf("\\",t),u===-1||u>n)))||s!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(s=e.indexOf("}",t),s>t&&(u=e.indexOf("\\",t),u===-1||u>s))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(u=e.indexOf("\\",t),u===-1||u>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(u=e.indexOf("\\",r),u===-1||u>i))))return!0;if(e[t]==="\\"){var l=e[t+1];t+=2;var A=Ue[l];if(A){var _=e.indexOf(A,t);_!==-1&&(t=_+1)}if(e[t]==="!")return!0}else t++}return!1},jt=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Ue[r];if(n){var s=e.indexOf(n,t);s!==-1&&(t=s+1)}if(e[t]==="!")return!0}else t++}return!1};Ke.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Wt(t))return!0;var n=Zt;return r&&r.strict===!1&&(n=jt),n(t)}});var nr=k((Hn,Fe)=>{"use strict";d();var zt=qe(),Yt=se("path").posix.dirname,Vt=se("os").platform()==="win32",Se="/",Jt=/\\/g,er=/[\{\[].*[\}\]]$/,tr=/(^|[^\\])([\{\[]|\([^\)]+$)/,rr=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Fe.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Vt&&t.indexOf(Se)<0&&(t=t.replace(Jt,Se)),er.test(t)&&(t+=Se),t+="a";do t=Yt(t);while(zt(t)||tr.test(t));return t.replace(rr,"$1")}});var Re=k(W=>{"use strict";d();W.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;W.find=(e,t)=>e.nodes.find(r=>r.type===t);W.exceedsLimit=(e,t,r=1,n)=>n===!1||!W.isInteger(e)||!W.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;W.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};W.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;W.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;W.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;W.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);W.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var he=k((Ln,Xe)=>{"use strict";d();var Qe=Re();Xe.exports=(e,t={})=>{let r=(n,s={})=>{let i=t.escapeInvalid&&Qe.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,l="";if(n.value)return(i||u)&&Qe.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let A of n.nodes)l+=r(A);return l};return r(e)}});var Ze=k((mn,We)=>{"use strict";d();We.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var nt=k((wn,rt)=>{"use strict";d();var je=Ze(),re=(e,t,r)=>{if(je(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(je(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),u=String(n.capture),l=String(n.wrap),A=e+":"+t+"="+s+i+u+l;if(re.cache.hasOwnProperty(A))return re.cache[A].result;let _=Math.min(e,t),h=Math.max(e,t);if(Math.abs(_-h)===1){let g=e+"|"+t;return n.capture?`(${g})`:n.wrap===!1?g:`(?:${g})`}let E=tt(e)||tt(t),f={min:e,max:t,a:_,b:h},H=[],C=[];if(E&&(f.isPadded=E,f.maxLen=String(f.max).length),_<0){let g=h<0?Math.abs(h):1;C=ze(g,Math.abs(_),f,n),_=f.a=0}return h>=0&&(H=ze(_,h,f,n)),f.negatives=C,f.positives=H,f.result=sr(C,H,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&H.length+C.length>1&&(f.result=`(?:${f.result})`),re.cache[A]=f,f.result};function sr(e,t,r){let n=be(e,t,"-",!1,r)||[],s=be(t,e,"",!1,r)||[],i=be(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function ur(e,t){let r=1,n=1,s=Ve(e,r),i=new Set([t]);for(;e<=s&&s<=t;)i.add(s),r+=1,s=Ve(e,r);for(s=Je(t+1,n)-1;e<s&&s<=t;)i.add(s),n+=1,s=Je(t+1,n)-1;return i=[...i],i.sort(or),i}function ir(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=ar(e,t),s=n.length,i="",u=0;for(let l=0;l<s;l++){let[A,_]=n[l];A===_?i+=A:A!=="0"||_!=="9"?i+=cr(A,_,r):u++}return u&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[u],digits:s}}function ze(e,t,r,n){let s=ur(e,t),i=[],u=e,l;for(let A=0;A<s.length;A++){let _=s[A],h=ir(String(u),String(_),n),E="";if(!r.isPadded&&l&&l.pattern===h.pattern){l.count.length>1&&l.count.pop(),l.count.push(h.count[0]),l.string=l.pattern+et(l.count),u=_+1;continue}r.isPadded&&(E=lr(_,r,n)),h.string=E+h.pattern+et(h.count),i.push(h),u=_+1,l=h}return i}function be(e,t,r,n,s){let i=[];for(let u of e){let{string:l}=u;!n&&!Ye(t,"string",l)&&i.push(r+l),n&&Ye(t,"string",l)&&i.push(r+l)}return i}function ar(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function or(e,t){return e>t?1:t>e?-1:0}function Ye(e,t,r){return e.some(n=>n[t]===r)}function Ve(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Je(e,t){return e-e%Math.pow(10,t)}function et(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function cr(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function tt(e){return/^-?(0+)\d/.test(e)}function lr(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}re.cache={};re.clearCache=()=>re.cache={};rt.exports=re});var $e=k((Bn,lt)=>{"use strict";d();var fr=se("util"),ut=nt(),st=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),pr=e=>t=>e===!0?Number(t):String(t),He=e=>typeof e=="number"||typeof e=="string"&&e!=="",ae=e=>Number.isInteger(+e),ve=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Ar=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Rr=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},_e=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},hr=(e,t,r)=>{e.negatives.sort((l,A)=>l<A?-1:l>A?1:0),e.positives.sort((l,A)=>l<A?-1:l>A?1:0);let n=t.capture?"":"?:",s="",i="",u;return e.positives.length&&(s=e.positives.map(l=>_e(String(l),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(l=>_e(String(l),r)).join("|")})`),s&&i?u=`${s}|${i}`:u=s||i,t.wrap?`(${n}${u})`:u},it=(e,t,r,n)=>{if(r)return ut(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},at=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return ut(e,t,r)},ot=(...e)=>new RangeError("Invalid range arguments: "+fr.inspect(...e)),ct=(e,t,r)=>{if(r.strictRanges===!0)throw ot([e,t]);return[]},gr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},_r=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw ot([e,t]);return[]}s===0&&(s=0),i===0&&(i=0);let u=s>i,l=String(e),A=String(t),_=String(r);r=Math.max(Math.abs(r),1);let h=ve(l)||ve(A)||ve(_),E=h?Math.max(l.length,A.length,_.length):0,f=h===!1&&Ar(e,t,n)===!1,H=n.transform||pr(f);if(n.toRegex&&r===1)return it(_e(e,E),_e(t,E),!0,n);let C={negatives:[],positives:[]},g=K=>C[K<0?"negatives":"positives"].push(Math.abs(K)),$=[],N=0;for(;u?s>=i:s<=i;)n.toRegex===!0&&r>1?g(s):$.push(Rr(H(s,N),E,f)),s=u?s-r:s+r,N++;return n.toRegex===!0?r>1?hr(C,n,E):at($,null,{wrap:!1,...n}):$},Er=(e,t,r=1,n={})=>{if(!ae(e)&&e.length>1||!ae(t)&&t.length>1)return ct(e,t,n);let s=n.transform||(f=>String.fromCharCode(f)),i=`${e}`.charCodeAt(0),u=`${t}`.charCodeAt(0),l=i>u,A=Math.min(i,u),_=Math.max(i,u);if(n.toRegex&&r===1)return it(A,_,!1,n);let h=[],E=0;for(;l?i>=u:i<=u;)h.push(s(i,E)),i=l?i-r:i+r,E++;return n.toRegex===!0?at(h,null,{wrap:!1,options:n}):h},ge=(e,t,r,n={})=>{if(t==null&&He(e))return[e];if(!He(e)||!He(t))return ct(e,t,n);if(typeof r=="function")return ge(e,t,1,{transform:r});if(st(r))return ge(e,t,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,ae(r)?ae(e)&&ae(t)?_r(e,t,r,s):Er(e,t,Math.max(Math.abs(r),1),s):r!=null&&!st(r)?gr(r,s):ge(e,t,1,r)};lt.exports=ge});var At=k((Mn,pt)=>{"use strict";d();var Cr=$e(),ft=Re(),xr=(e,t={})=>{let r=(n,s={})=>{let i=ft.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,l=i===!0||u===!0,A=t.escapeInvalid===!0?"\\":"",_="";if(n.isOpen===!0)return A+n.value;if(n.isClose===!0)return console.log("node.isClose",A,n.value),A+n.value;if(n.type==="open")return l?A+n.value:"(";if(n.type==="close")return l?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":l?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let h=ft.reduce(n.nodes),E=Cr(...h,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(E.length!==0)return h.length>1&&E.length>1?`(${E})`:E}if(n.nodes)for(let h of n.nodes)_+=r(h,n);return _};return r(e)};pt.exports=xr});var gt=k((Gn,ht)=>{"use strict";d();var yr=$e(),Rt=he(),ue=Re(),ne=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ue.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(ne(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ne(s,i,r):s+i);return ue.flatten(n)},dr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,i={})=>{s.queue=[];let u=i,l=i.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,l=u.queue;if(s.invalid||s.dollar){l.push(ne(l.pop(),Rt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){l.push(ne(l.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let E=ue.reduce(s.nodes);if(ue.exceedsLimit(...E,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=yr(...E,t);f.length===0&&(f=Rt(s,t)),l.push(ne(l.pop(),f)),s.nodes=[];return}let A=ue.encloseBrace(s),_=s.queue,h=s;for(;h.type!=="brace"&&h.type!=="root"&&h.parent;)h=h.parent,_=h.queue;for(let E=0;E<s.nodes.length;E++){let f=s.nodes[E];if(f.type==="comma"&&s.type==="brace"){E===1&&_.push(""),_.push("");continue}if(f.type==="close"){l.push(ne(l.pop(),_,A));continue}if(f.value&&f.type!=="open"){_.push(ne(_.pop(),f.value));continue}f.nodes&&n(f,s)}return _};return ue.flatten(n(e))};ht.exports=dr});var Et=k((Un,_t)=>{"use strict";d();_t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
2
  `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var St=k((qn,dt)=>{"use strict";d();var Sr=he(),{MAX_LENGTH:Ct,CHAR_BACKSLASH:Te,CHAR_BACKTICK:br,CHAR_COMMA:Hr,CHAR_DOT:vr,CHAR_LEFT_PARENTHESES:$r,CHAR_RIGHT_PARENTHESES:Tr,CHAR_LEFT_CURLY_BRACE:Lr,CHAR_RIGHT_CURLY_BRACE:Or,CHAR_LEFT_SQUARE_BRACKET:xt,CHAR_RIGHT_SQUARE_BRACKET:yt,CHAR_DOUBLE_QUOTE:mr,CHAR_SINGLE_QUOTE:Nr,CHAR_NO_BREAK_SPACE:wr,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ir}=Et(),Br=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ct,r.maxLength):Ct;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},i=[s],u=s,l=s,A=0,_=e.length,h=0,E=0,f,H=()=>e[h++],C=g=>{if(g.type==="text"&&l.type==="dot"&&(l.type="text"),l&&l.type==="text"&&g.type==="text"){l.value+=g.value;return}return u.nodes.push(g),g.parent=u,g.prev=l,l=g,g};for(C({type:"bos"});h<_;)if(u=i[i.length-1],f=H(),!(f===Ir||f===wr)){if(f===Te){C({type:"text",value:(t.keepEscaping?f:"")+H()});continue}if(f===yt){C({type:"text",value:"\\"+f});continue}if(f===xt){A++;let g;for(;h<_&&(g=H());){if(f+=g,g===xt){A++;continue}if(g===Te){f+=H();continue}if(g===yt&&(A--,A===0))break}C({type:"text",value:f});continue}if(f===$r){u=C({type:"paren",nodes:[]}),i.push(u),C({type:"text",value:f});continue}if(f===Tr){if(u.type!=="paren"){C({type:"text",value:f});continue}u=i.pop(),C({type:"text",value:f}),u=i[i.length-1];continue}if(f===mr||f===Nr||f===br){let g=f,$;for(t.keepQuotes!==!0&&(f="");h<_&&($=H());){if($===Te){f+=$+H();continue}if($===g){t.keepQuotes===!0&&(f+=$);break}f+=$}C({type:"text",value:f});continue}if(f===Lr){E++;let $={type:"brace",open:!0,close:!1,dollar:l.value&&l.value.slice(-1)==="$"||u.dollar===!0,depth:E,commas:0,ranges:0,nodes:[]};u=C($),i.push(u),C({type:"open",value:f});continue}if(f===Or){if(u.type!=="brace"){C({type:"text",value:f});continue}let g="close";u=i.pop(),u.close=!0,C({type:g,value:f}),E--,u=i[i.length-1];continue}if(f===Hr&&E>0){if(u.ranges>0){u.ranges=0;let g=u.nodes.shift();u.nodes=[g,{type:"text",value:Sr(u)}]}C({type:"comma",value:f}),u.commas++;continue}if(f===vr&&E>0&&u.commas===0){let g=u.nodes;if(E===0||g.length===0){C({type:"text",value:f});continue}if(l.type==="dot"){if(u.range=[],l.value+=f,l.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,l.type="text";continue}u.ranges++,u.args=[];continue}if(l.type==="range"){g.pop();let $=g[g.length-1];$.value+=l.value+f,l=$,u.ranges--;continue}C({type:"dot",value:f});continue}C({type:"text",value:f})}do if(u=i.pop(),u.type!=="root"){u.nodes.forEach(N=>{N.nodes||(N.type==="open"&&(N.isOpen=!0),N.type==="close"&&(N.isClose=!0),N.nodes||(N.type="text"),N.invalid=!0)});let g=i[i.length-1],$=g.nodes.indexOf(u);g.nodes.splice($,1,...u.nodes)}while(i.length>0);return C({type:"eos"}),s};dt.exports=Br});var Gr=k((Qn,Ht)=>{"use strict";d();var bt=he(),kr=At(),Mr=gt(),Pr=St(),Q=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=Q.create(n,t);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(Q.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Q.parse=(e,t={})=>Pr(e,t);Q.stringify=(e,t={})=>bt(typeof e=="string"?Q.parse(e,t):e,t);Q.compile=(e,t={})=>(typeof e=="string"&&(e=Q.parse(e,t)),kr(e,t));Q.expand=(e,t={})=>{typeof e=="string"&&(e=Q.parse(e,t));let r=Mr(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Q.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Q.compile(e,t):Q.expand(e,t);Ht.exports=Q});var oe=k((Wn,Ot)=>{"use strict";d();var Dr=se("path"),Y="\\\\/",vt=`[^${Y}]`,V="\\.",Ur="\\+",Kr="\\?",Ee="\\/",qr="(?=.)",$t="[^/]",Le=`(?:${Ee}|$)`,Tt=`(?:^|${Ee})`,Oe=`${V}{1,2}${Le}`,Fr=`(?!${V})`,Qr=`(?!${Tt}${Oe})`,Xr=`(?!${V}{0,1}${Le})`,Wr=`(?!${Oe})`,Zr=`[^.${Ee}]`,jr=`${$t}*?`,Lt={DOT_LITERAL:V,PLUS_LITERAL:Ur,QMARK_LITERAL:Kr,SLASH_LITERAL:Ee,ONE_CHAR:qr,QMARK:$t,END_ANCHOR:Le,DOTS_SLASH:Oe,NO_DOT:Fr,NO_DOTS:Qr,NO_DOT_SLASH:Xr,NO_DOTS_SLASH:Wr,QMARK_NO_DOT:Zr,STAR:jr,START_ANCHOR:Tt},zr={...Lt,SLASH_LITERAL:`[${Y}]`,QMARK:vt,STAR:`${vt}*?`,DOTS_SLASH:`${V}{1,2}(?:[${Y}]|$)`,NO_DOT:`(?!${V})`,NO_DOTS:`(?!(?:^|[${Y}])${V}{1,2}(?:[${Y}]|$))`,NO_DOT_SLASH:`(?!${V}{0,1}(?:[${Y}]|$))`,NO_DOTS_SLASH:`(?!${V}{1,2}(?:[${Y}]|$))`,QMARK_NO_DOT:`[^.${Y}]`,START_ANCHOR:`(?:^|[${Y}])`,END_ANCHOR:`(?:[${Y}]|$)`},Yr={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Ot.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Yr,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Dr.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?zr:Lt}}});var Ce=k(q=>{"use strict";d();var Vr=se("path"),Jr=process.platform==="win32",{REGEX_BACKSLASH:en,REGEX_REMOVE_BACKSLASH:tn,REGEX_SPECIAL_CHARS:rn,REGEX_SPECIAL_CHARS_GLOBAL:nn}=oe();q.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);q.hasRegexChars=e=>rn.test(e);q.isRegexChar=e=>e.length===1&&q.hasRegexChars(e);q.escapeRegex=e=>e.replace(nn,"\\$1");q.toPosixSlashes=e=>e.replace(en,"/");q.removeBackslashes=e=>e.replace(tn,t=>t==="\\"?"":t);q.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};q.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Jr===!0||Vr.sep==="\\";q.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?q.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};q.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};q.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Pt=k((Yn,Mt)=>{"use strict";d();var mt=Ce(),{CHAR_ASTERISK:me,CHAR_AT:sn,CHAR_BACKWARD_SLASH:ce,CHAR_COMMA:un,CHAR_DOT:Ne,CHAR_EXCLAMATION_MARK:we,CHAR_FORWARD_SLASH:kt,CHAR_LEFT_CURLY_BRACE:Ie,CHAR_LEFT_PARENTHESES:Be,CHAR_LEFT_SQUARE_BRACKET:an,CHAR_PLUS:on,CHAR_QUESTION_MARK:Nt,CHAR_RIGHT_CURLY_BRACE:cn,CHAR_RIGHT_PARENTHESES:wt,CHAR_RIGHT_SQUARE_BRACKET:ln}=oe(),It=e=>e===kt||e===ce,Bt=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},fn=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],u=[],l=[],A=e,_=-1,h=0,E=0,f=!1,H=!1,C=!1,g=!1,$=!1,N=!1,K=!1,w=!1,Z=!1,P=!1,J=0,G,x,v={value:"",depth:0,isGlob:!1},M=()=>_>=n,c=()=>A.charCodeAt(_+1),O=()=>(G=x,A.charCodeAt(++_));for(;_<n;){x=O();let D;if(x===ce){K=v.backslashes=!0,x=O(),x===Ie&&(N=!0);continue}if(N===!0||x===Ie){for(J++;M()!==!0&&(x=O());){if(x===ce){K=v.backslashes=!0,O();continue}if(x===Ie){J++;continue}if(N!==!0&&x===Ne&&(x=O())===Ne){if(f=v.isBrace=!0,C=v.isGlob=!0,P=!0,s===!0)continue;break}if(N!==!0&&x===un){if(f=v.isBrace=!0,C=v.isGlob=!0,P=!0,s===!0)continue;break}if(x===cn&&(J--,J===0)){N=!1,f=v.isBrace=!0,P=!0;break}}if(s===!0)continue;break}if(x===kt){if(i.push(_),u.push(v),v={value:"",depth:0,isGlob:!1},P===!0)continue;if(G===Ne&&_===h+1){h+=2;continue}E=_+1;continue}if(r.noext!==!0&&(x===on||x===sn||x===me||x===Nt||x===we)===!0&&c()===Be){if(C=v.isGlob=!0,g=v.isExtglob=!0,P=!0,x===we&&_===h&&(Z=!0),s===!0){for(;M()!==!0&&(x=O());){if(x===ce){K=v.backslashes=!0,x=O();continue}if(x===wt){C=v.isGlob=!0,P=!0;break}}continue}break}if(x===me){if(G===me&&($=v.isGlobstar=!0),C=v.isGlob=!0,P=!0,s===!0)continue;break}if(x===Nt){if(C=v.isGlob=!0,P=!0,s===!0)continue;break}if(x===an){for(;M()!==!0&&(D=O());){if(D===ce){K=v.backslashes=!0,O();continue}if(D===ln){H=v.isBracket=!0,C=v.isGlob=!0,P=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&x===we&&_===h){w=v.negated=!0,h++;continue}if(r.noparen!==!0&&x===Be){if(C=v.isGlob=!0,s===!0){for(;M()!==!0&&(x=O());){if(x===Be){K=v.backslashes=!0,x=O();continue}if(x===wt){P=!0;break}}continue}break}if(C===!0){if(P=!0,s===!0)continue;break}}r.noext===!0&&(g=!1,C=!1);let T=A,ee="",a="";h>0&&(ee=A.slice(0,h),A=A.slice(h),E-=h),T&&C===!0&&E>0?(T=A.slice(0,E),a=A.slice(E)):C===!0?(T="",a=A):T=A,T&&T!==""&&T!=="/"&&T!==A&&It(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(a&&(a=mt.removeBackslashes(a)),T&&K===!0&&(T=mt.removeBackslashes(T)));let o={prefix:ee,input:e,start:h,base:T,glob:a,isBrace:f,isBracket:H,isGlob:C,isExtglob:g,isGlobstar:$,negated:w,negatedExtglob:Z};if(r.tokens===!0&&(o.maxDepth=0,It(x)||u.push(v),o.tokens=u),r.parts===!0||r.tokens===!0){let D;for(let b=0;b<i.length;b++){let j=D?D+1:h,z=i[b],F=e.slice(j,z);r.tokens&&(b===0&&h!==0?(u[b].isPrefix=!0,u[b].value=ee):u[b].value=F,Bt(u[b]),o.maxDepth+=u[b].depth),(b!==0||F!=="")&&l.push(F),D=z}if(D&&D+1<e.length){let b=e.slice(D+1);l.push(b),r.tokens&&(u[u.length-1].value=b,Bt(u[u.length-1]),o.maxDepth+=u[u.length-1].depth)}o.slashes=i,o.parts=l}return o};Mt.exports=fn});var Ut=k((Jn,Dt)=>{"use strict";d();var xe=oe(),X=Ce(),{MAX_LENGTH:ye,POSIX_REGEX_SOURCE:pn,REGEX_NON_SPECIAL_CHARS:An,REGEX_SPECIAL_CHARS_BACKREF:Rn,REPLACEMENTS:Gt}=xe,hn=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(s=>X.escapeRegex(s)).join("..")}return r},ie=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ke=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Gt[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(ye,r.maxLength):ye,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},u=[i],l=r.capture?"":"?:",A=X.isWindows(t),_=xe.globChars(A),h=xe.extglobChars(_),{DOT_LITERAL:E,PLUS_LITERAL:f,SLASH_LITERAL:H,ONE_CHAR:C,DOTS_SLASH:g,NO_DOT:$,NO_DOT_SLASH:N,NO_DOTS_SLASH:K,QMARK:w,QMARK_NO_DOT:Z,STAR:P,START_ANCHOR:J}=_,G=R=>`(${l}(?:(?!${J}${R.dot?g:E}).)*?)`,x=r.dot?"":$,v=r.dot?w:Z,M=r.bash===!0?G(r):P;r.capture&&(M=`(${M})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let c={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};e=X.removePrefix(e,c),s=e.length;let O=[],T=[],ee=[],a=i,o,D=()=>c.index===s-1,b=c.peek=(R=1)=>e[c.index+R],j=c.advance=()=>e[++c.index]||"",z=()=>e.slice(c.index+1),F=(R="",L=0)=>{c.consumed+=R,c.index+=L},le=R=>{c.output+=R.output!=null?R.output:R.value,F(R.value)},Qt=()=>{let R=1;for(;b()==="!"&&(b(2)!=="("||b(3)==="?");)j(),c.start++,R++;return R%2===0?!1:(c.negated=!0,c.start++,!0)},fe=R=>{c[R]++,ee.push(R)},te=R=>{c[R]--,ee.pop()},S=R=>{if(a.type==="globstar"){let L=c.braces>0&&(R.type==="comma"||R.type==="brace"),p=R.extglob===!0||O.length&&(R.type==="pipe"||R.type==="paren");R.type!=="slash"&&R.type!=="paren"&&!L&&!p&&(c.output=c.output.slice(0,-a.output.length),a.type="star",a.value="*",a.output=M,c.output+=a.output)}if(O.length&&R.type!=="paren"&&(O[O.length-1].inner+=R.value),(R.value||R.output)&&le(R),a&&a.type==="text"&&R.type==="text"){a.value+=R.value,a.output=(a.output||"")+R.value;return}R.prev=a,u.push(R),a=R},pe=(R,L)=>{let p={...h[L],conditions:1,inner:""};p.prev=a,p.parens=c.parens,p.output=c.output;let y=(r.capture?"(":"")+p.open;fe("parens"),S({type:R,value:L,output:c.output?"":C}),S({type:"paren",extglob:!0,value:j(),output:y}),O.push(p)},Xt=R=>{let L=R.close+(r.capture?")":""),p;if(R.type==="negate"){let y=M;if(R.inner&&R.inner.length>1&&R.inner.includes("/")&&(y=G(r)),(y!==M||D()||/^\)+$/.test(z()))&&(L=R.close=`)$))${y}`),R.inner.includes("*")&&(p=z())&&/^\.[^\\/.]+$/.test(p)){let m=ke(p,{...t,fastpaths:!1}).output;L=R.close=`)${m})${y})`}R.prev.type==="bos"&&(c.negatedExtglob=!0)}S({type:"paren",extglob:!0,value:o,output:L}),te("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let R=!1,L=e.replace(Rn,(p,y,m,U,B,de)=>U==="\\"?(R=!0,p):U==="?"?y?y+U+(B?w.repeat(B.length):""):de===0?v+(B?w.repeat(B.length):""):w.repeat(m.length):U==="."?E.repeat(m.length):U==="*"?y?y+U+(B?M:""):M:y?p:`\\${p}`);return R===!0&&(r.unescape===!0?L=L.replace(/\\/g,""):L=L.replace(/\\+/g,p=>p.length%2===0?"\\\\":p?"\\":"")),L===e&&r.contains===!0?(c.output=e,c):(c.output=X.wrapOutput(L,c,t),c)}for(;!D();){if(o=j(),o==="\0")continue;if(o==="\\"){let p=b();if(p==="/"&&r.bash!==!0||p==="."||p===";")continue;if(!p){o+="\\",S({type:"text",value:o});continue}let y=/^\\+/.exec(z()),m=0;if(y&&y[0].length>2&&(m=y[0].length,c.index+=m,m%2!==0&&(o+="\\")),r.unescape===!0?o=j():o+=j(),c.brackets===0){S({type:"text",value:o});continue}}if(c.brackets>0&&(o!=="]"||a.value==="["||a.value==="[^")){if(r.posix!==!1&&o===":"){let p=a.value.slice(1);if(p.includes("[")&&(a.posix=!0,p.includes(":"))){let y=a.value.lastIndexOf("["),m=a.value.slice(0,y),U=a.value.slice(y+2),B=pn[U];if(B){a.value=m+B,c.backtrack=!0,j(),!i.output&&u.indexOf(a)===1&&(i.output=C);continue}}}(o==="["&&b()!==":"||o==="-"&&b()==="]")&&(o=`\\${o}`),o==="]"&&(a.value==="["||a.value==="[^")&&(o=`\\${o}`),r.posix===!0&&o==="!"&&a.value==="["&&(o="^"),a.value+=o,le({value:o});continue}if(c.quotes===1&&o!=='"'){o=X.escapeRegex(o),a.value+=o,le({value:o});continue}if(o==='"'){c.quotes=c.quotes===1?0:1,r.keepQuotes===!0&&S({type:"text",value:o});continue}if(o==="("){fe("parens"),S({type:"paren",value:o});continue}if(o===")"){if(c.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ie("opening","("));let p=O[O.length-1];if(p&&c.parens===p.parens+1){Xt(O.pop());continue}S({type:"paren",value:o,output:c.parens?")":"\\)"}),te("parens");continue}if(o==="["){if(r.nobracket===!0||!z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ie("closing","]"));o=`\\${o}`}else fe("brackets");S({type:"bracket",value:o});continue}if(o==="]"){if(r.nobracket===!0||a&&a.type==="bracket"&&a.value.length===1){S({type:"text",value:o,output:`\\${o}`});continue}if(c.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ie("opening","["));S({type:"text",value:o,output:`\\${o}`});continue}te("brackets");let p=a.value.slice(1);if(a.posix!==!0&&p[0]==="^"&&!p.includes("/")&&(o=`/${o}`),a.value+=o,le({value:o}),r.literalBrackets===!1||X.hasRegexChars(p))continue;let y=X.escapeRegex(a.value);if(c.output=c.output.slice(0,-a.value.length),r.literalBrackets===!0){c.output+=y,a.value=y;continue}a.value=`(${l}${y}|${a.value})`,c.output+=a.value;continue}if(o==="{"&&r.nobrace!==!0){fe("braces");let p={type:"brace",value:o,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};T.push(p),S(p);continue}if(o==="}"){let p=T[T.length-1];if(r.nobrace===!0||!p){S({type:"text",value:o,output:o});continue}let y=")";if(p.dots===!0){let m=u.slice(),U=[];for(let B=m.length-1;B>=0&&(u.pop(),m[B].type!=="brace");B--)m[B].type!=="dots"&&U.unshift(m[B].value);y=hn(U,r),c.backtrack=!0}if(p.comma!==!0&&p.dots!==!0){let m=c.output.slice(0,p.outputIndex),U=c.tokens.slice(p.tokensIndex);p.value=p.output="\\{",o=y="\\}",c.output=m;for(let B of U)c.output+=B.output||B.value}S({type:"brace",value:o,output:y}),te("braces"),T.pop();continue}if(o==="|"){O.length>0&&O[O.length-1].conditions++,S({type:"text",value:o});continue}if(o===","){let p=o,y=T[T.length-1];y&&ee[ee.length-1]==="braces"&&(y.comma=!0,p="|"),S({type:"comma",value:o,output:p});continue}if(o==="/"){if(a.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",u.pop(),a=i;continue}S({type:"slash",value:o,output:H});continue}if(o==="."){if(c.braces>0&&a.type==="dot"){a.value==="."&&(a.output=E);let p=T[T.length-1];a.type="dots",a.output+=o,a.value+=o,p.dots=!0;continue}if(c.braces+c.parens===0&&a.type!=="bos"&&a.type!=="slash"){S({type:"text",value:o,output:E});continue}S({type:"dot",value:o,output:E});continue}if(o==="?"){if(!(a&&a.value==="(")&&r.noextglob!==!0&&b()==="("&&b(2)!=="?"){pe("qmark",o);continue}if(a&&a.type==="paren"){let y=b(),m=o;if(y==="<"&&!X.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(a.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(z()))&&(m=`\\${o}`),S({type:"text",value:o,output:m});continue}if(r.dot!==!0&&(a.type==="slash"||a.type==="bos")){S({type:"qmark",value:o,output:Z});continue}S({type:"qmark",value:o,output:w});continue}if(o==="!"){if(r.noextglob!==!0&&b()==="("&&(b(2)!=="?"||!/[!=<:]/.test(b(3)))){pe("negate",o);continue}if(r.nonegate!==!0&&c.index===0){Qt();continue}}if(o==="+"){if(r.noextglob!==!0&&b()==="("&&b(2)!=="?"){pe("plus",o);continue}if(a&&a.value==="("||r.regex===!1){S({type:"plus",value:o,output:f});continue}if(a&&(a.type==="bracket"||a.type==="paren"||a.type==="brace")||c.parens>0){S({type:"plus",value:o});continue}S({type:"plus",value:f});continue}if(o==="@"){if(r.noextglob!==!0&&b()==="("&&b(2)!=="?"){S({type:"at",extglob:!0,value:o,output:""});continue}S({type:"text",value:o});continue}if(o!=="*"){(o==="$"||o==="^")&&(o=`\\${o}`);let p=An.exec(z());p&&(o+=p[0],c.index+=p[0].length),S({type:"text",value:o});continue}if(a&&(a.type==="globstar"||a.star===!0)){a.type="star",a.star=!0,a.value+=o,a.output=M,c.backtrack=!0,c.globstar=!0,F(o);continue}let R=z();if(r.noextglob!==!0&&/^\([^?]/.test(R)){pe("star",o);continue}if(a.type==="star"){if(r.noglobstar===!0){F(o);continue}let p=a.prev,y=p.prev,m=p.type==="slash"||p.type==="bos",U=y&&(y.type==="star"||y.type==="globstar");if(r.bash===!0&&(!m||R[0]&&R[0]!=="/")){S({type:"star",value:o,output:""});continue}let B=c.braces>0&&(p.type==="comma"||p.type==="brace"),de=O.length&&(p.type==="pipe"||p.type==="paren");if(!m&&p.type!=="paren"&&!B&&!de){S({type:"star",value:o,output:""});continue}for(;R.slice(0,3)==="/**";){let Ae=e[c.index+4];if(Ae&&Ae!=="/")break;R=R.slice(3),F("/**",3)}if(p.type==="bos"&&D()){a.type="globstar",a.value+=o,a.output=G(r),c.output=a.output,c.globstar=!0,F(o);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&!U&&D()){c.output=c.output.slice(0,-(p.output+a.output).length),p.output=`(?:${p.output}`,a.type="globstar",a.output=G(r)+(r.strictSlashes?")":"|$)"),a.value+=o,c.globstar=!0,c.output+=p.output+a.output,F(o);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&R[0]==="/"){let Ae=R[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(p.output+a.output).length),p.output=`(?:${p.output}`,a.type="globstar",a.output=`${G(r)}${H}|${H}${Ae})`,a.value+=o,c.output+=p.output+a.output,c.globstar=!0,F(o+j()),S({type:"slash",value:"/",output:""});continue}if(p.type==="bos"&&R[0]==="/"){a.type="globstar",a.value+=o,a.output=`(?:^|${H}|${G(r)}${H})`,c.output=a.output,c.globstar=!0,F(o+j()),S({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-a.output.length),a.type="globstar",a.output=G(r),a.value+=o,c.output+=a.output,c.globstar=!0,F(o);continue}let L={type:"star",value:o,output:M};if(r.bash===!0){L.output=".*?",(a.type==="bos"||a.type==="slash")&&(L.output=x+L.output),S(L);continue}if(a&&(a.type==="bracket"||a.type==="paren")&&r.regex===!0){L.output=o,S(L);continue}(c.index===c.start||a.type==="slash"||a.type==="dot")&&(a.type==="dot"?(c.output+=N,a.output+=N):r.dot===!0?(c.output+=K,a.output+=K):(c.output+=x,a.output+=x),b()!=="*"&&(c.output+=C,a.output+=C)),S(L)}for(;c.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ie("closing","]"));c.output=X.escapeLast(c.output,"["),te("brackets")}for(;c.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ie("closing",")"));c.output=X.escapeLast(c.output,"("),te("parens")}for(;c.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ie("closing","}"));c.output=X.escapeLast(c.output,"{"),te("braces")}if(r.strictSlashes!==!0&&(a.type==="star"||a.type==="bracket")&&S({type:"maybe_slash",value:"",output:`${H}?`}),c.backtrack===!0){c.output="";for(let R of c.tokens)c.output+=R.output!=null?R.output:R.value,R.suffix&&(c.output+=R.suffix)}return c};ke.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(ye,r.maxLength):ye,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Gt[e]||e;let i=X.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:l,ONE_CHAR:A,DOTS_SLASH:_,NO_DOT:h,NO_DOTS:E,NO_DOTS_SLASH:f,STAR:H,START_ANCHOR:C}=xe.globChars(i),g=r.dot?E:h,$=r.dot?f:h,N=r.capture?"":"?:",K={negated:!1,prefix:""},w=r.bash===!0?".*?":H;r.capture&&(w=`(${w})`);let Z=x=>x.noglobstar===!0?w:`(${N}(?:(?!${C}${x.dot?_:u}).)*?)`,P=x=>{switch(x){case"*":return`${g}${A}${w}`;case".*":return`${u}${A}${w}`;case"*.*":return`${g}${w}${u}${A}${w}`;case"*/*":return`${g}${w}${l}${A}${$}${w}`;case"**":return g+Z(r);case"**/*":return`(?:${g}${Z(r)}${l})?${$}${A}${w}`;case"**/*.*":return`(?:${g}${Z(r)}${l})?${$}${w}${u}${A}${w}`;case"**/.*":return`(?:${g}${Z(r)}${l})?${u}${A}${w}`;default:{let v=/^(.*?)\.(\w+)$/.exec(x);if(!v)return;let M=P(v[1]);return M?M+u+v[2]:void 0}}},J=X.removePrefix(e,K),G=P(J);return G&&r.strictSlashes!==!0&&(G+=`${l}?`),G};Dt.exports=ke});var qt=k((ts,Kt)=>{"use strict";d();var gn=se("path"),_n=Pt(),Me=Ut(),Pe=Ce(),En=oe(),Cn=e=>e&&typeof e=="object"&&!Array.isArray(e),I=(e,t,r=!1)=>{if(Array.isArray(e)){let h=e.map(f=>I(f,t,r));return f=>{for(let H of h){let C=H(f);if(C)return C}return!1}}let n=Cn(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},i=Pe.isWindows(t),u=n?I.compileRe(e,t):I.makeRe(e,t,!1,!0),l=u.state;delete u.state;let A=()=>!1;if(s.ignore){let h={...t,ignore:null,onMatch:null,onResult:null};A=I(s.ignore,h,r)}let _=(h,E=!1)=>{let{isMatch:f,match:H,output:C}=I.test(h,u,t,{glob:e,posix:i}),g={glob:e,state:l,regex:u,posix:i,input:h,output:C,match:H,isMatch:f};return typeof s.onResult=="function"&&s.onResult(g),f===!1?(g.isMatch=!1,E?g:!1):A(h)?(typeof s.onIgnore=="function"&&s.onIgnore(g),g.isMatch=!1,E?g:!1):(typeof s.onMatch=="function"&&s.onMatch(g),E?g:!0)};return r&&(_.state=l),_};I.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},u=i.format||(s?Pe.toPosixSlashes:null),l=e===n,A=l&&u?u(e):e;return l===!1&&(A=u?u(e):e,l=A===n),(l===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?l=I.matchBase(e,t,r,s):l=t.exec(A)),{isMatch:!!l,match:l,output:A}};I.matchBase=(e,t,r,n=Pe.isWindows(r))=>(t instanceof RegExp?t:I.makeRe(t,r)).test(gn.basename(e));I.isMatch=(e,t,r)=>I(t,r)(e);I.parse=(e,t)=>Array.isArray(e)?e.map(r=>I.parse(r,t)):Me(e,{...t,fastpaths:!1});I.scan=(e,t)=>_n(e,t);I.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",u=s.contains?"":"$",l=`${i}(?:${e.output})${u}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);let A=I.toRegex(l,t);return n===!0&&(A.state=e),A};I.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=Me.fastpaths(e,t)),s.output||(s=Me(e,t)),I.compileRe(s,t,r,n)};I.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};I.constants=En;Kt.exports=I});var xn=k((ns,Ft)=>{"use strict";d();Ft.exports=qt()});export{qe as a,nr as b,Gr as c,Ce as d,xn as e};
3
3
  /*! Bundled license information:
4
4
 
@@ -1,2 +1,2 @@
1
- import{b as x,c as D,f as M}from"./chunk-QTGMS62F.js";import{a as o}from"./chunk-YJB7P2HC.js";import{c as w}from"./chunk-JUVAGMIH.js";import{C as h,F as e,v as y,z as s}from"./chunk-MGL4YM3S.js";import{Mb as _,ua as u}from"./chunk-VPL2NDH6.js";import{g as p}from"./chunk-VPRTJUIN.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
1
+ import{b as x,c as D,f as M}from"./chunk-E7DHELFH.js";import{a as o}from"./chunk-VPPWSKOY.js";import{c as w}from"./chunk-5C7HDTHJ.js";import{C as h,F as e,v as y,z as s}from"./chunk-NTRAWIEJ.js";import{Mb as _,ua as u}from"./chunk-7FQFEB33.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
2
2
  `)}export{$ as a,j as b};
@@ -1 +1 @@
1
- import{b as d,c as f}from"./chunk-CE6FKJFS.js";import{a as c}from"./chunk-UOQ75BL3.js";import{a as p}from"./chunk-DCK2FX6J.js";import{Ga as u,e as i}from"./chunk-WCWNI3ZV.js";import{b as n}from"./chunk-4KRT35A2.js";import{v as e}from"./chunk-MGL4YM3S.js";import{g as s}from"./chunk-VPRTJUIN.js";s();var a,t=class extends c{async run(){let{flags:o}=await this.parse(a),{app:r}=await u({directory:o.path,userProvidedConfigName:o.config}),m=await f(r,o.path);return await i(m,{stdout:process.stdout,stderr:process.stderr,app:r}),e({headline:"GraphQL types generated successfully."}),{app:r}}};a=t;t.summary="Generate GraphQL types for a function.";t.descriptionWithMarkdown="Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function. Supports JavaScript functions out of the box, or any language via the `build.typegen_command` configuration.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...p,...d};var x=t;export{x as a};
1
+ import{b as d,c as f}from"./chunk-7572RLUP.js";import{a as c}from"./chunk-S7F5KFQP.js";import{a as p}from"./chunk-5BKCIDMS.js";import{Ga as u,e as i}from"./chunk-4QTEPWEJ.js";import{b as n}from"./chunk-OXJBYKMX.js";import{v as e}from"./chunk-NTRAWIEJ.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var a,t=class extends c{async run(){let{flags:o}=await this.parse(a),{app:r}=await u({directory:o.path,userProvidedConfigName:o.config}),m=await f(r,o.path);return await i(m,{stdout:process.stdout,stderr:process.stderr,app:r}),e({headline:"GraphQL types generated successfully."}),{app:r}}};a=t;t.summary="Generate GraphQL types for a function.";t.descriptionWithMarkdown="Creates GraphQL types based on your [input query](https://shopify.dev/docs/apps/functions/input-output#input) for a function. Supports JavaScript functions out of the box, or any language via the `build.typegen_command` configuration.";t.description=a.descriptionWithoutMarkdown();t.flags={...n,...p,...d};var x=t;export{x as a};
@@ -1,4 +1,4 @@
1
- import{a as c,b as F}from"./chunk-M4V2OQAX.js";import{a as D}from"./chunk-2YXKZWYW.js";import{a as _,c as b}from"./chunk-7BFDUVOG.js";import{e as y,q as T}from"./chunk-MZJRNFAU.js";import{d as v,k as g,q as w}from"./chunk-HHXHOQQP.js";import{b as u}from"./chunk-4KRT35A2.js";import{A as p,v as d}from"./chunk-MGL4YM3S.js";import{r as C}from"./chunk-3YWUSKWF.js";import{V as f}from"./chunk-VPL2NDH6.js";import{e as Y,g as h}from"./chunk-VPRTJUIN.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
1
+ import{a as D}from"./chunk-AVD3INWF.js";import{a as _,c as b}from"./chunk-MIDYZPO4.js";import{a as c,b as F}from"./chunk-VJ6KDRZI.js";import{e as y,q as T}from"./chunk-5XDQ76DQ.js";import{d as v,k as g,q as w}from"./chunk-TUNUEOHO.js";import{b as u}from"./chunk-OXJBYKMX.js";import{A as p,v as d}from"./chunk-NTRAWIEJ.js";import{r as C}from"./chunk-T6CC5WUU.js";import{V as f}from"./chunk-7FQFEB33.js";import{e as Y,g as h}from"./chunk-VKWPEFWQ.js";h();h();async function I(t,e,i){let r=e.themes;e.development&&(r=[(await new D(t).find()).id.toString()]);let n=t.storeFqdn,s=await L(t,{...e,themes:r,development:!1});if(!e.force&&!i&&!await M(s,n))return;await Promise.all(s.map(o=>(y(o)&&v(),T(o.id,t))));let l=e.environment?[{subdued:`Environment: ${e.environment}
2
2
 
3
3
  `}]:[];d({body:f(s,o=>[...l,`The following themes were deleted from ${n}:`,F(o)],o=>[...l,"The theme",...c(o),`was deleted from ${n}.`])})}async function L(t,e){if(e.selectTheme||e.themes.length>0)return b(t,e);let i=t.storeFqdn;return[await _(t,{header:`Select a theme to delete from ${i}`,filter:{development:e.development}})]}async function M(t,e){let r={message:f(t,n=>[`Delete the following themes from ${e}?`],n=>["Delete",...c(n),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(r.infoTable={"":t.map(c)}),p(r)}var a=Y(C(),1);var O,m=class extends w{async command(e,i,r){let{environment:n,development:s,force:l,theme:o}=e,E=o??[];await I(i,{selectTheme:e["show-all"],environment:n,development:s,themes:E,force:l},r)}};O=m;m.summary="Delete remote themes from the connected store. This command can't be undone.";m.descriptionWithMarkdown=`Deletes a theme from your store.
4
4
 
@@ -1,4 +1,4 @@
1
- import{b as h}from"./chunk-VEDZUOVI.js";import{Ca as g,ua as u,wa as c}from"./chunk-VPL2NDH6.js";import{d as f,q as p}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
1
+ import{b as h}from"./chunk-HOSFU6UP.js";import{Ca as g,ua as u,wa as c}from"./chunk-7FQFEB33.js";import{d as f,q as p}from"./chunk-773TIA5M.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
2
  * ${$}
3
3
  *${D}
4
4
  */
@@ -0,0 +1 @@
1
+ import{Ga as r}from"./chunk-4QTEPWEJ.js";import{a}from"./chunk-QDVJJKLB.js";import{q as i}from"./chunk-773TIA5M.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
@@ -1,2 +1,2 @@
1
- import{Pb as m}from"./chunk-VPL2NDH6.js";import{g as p}from"./chunk-VPRTJUIN.js";p();import{spawn as h}from"child_process";function g(e=process.pid,i="SIGTERM",r=!0,s){k(e,i,r,s??(n=>{n&&m(`Failed to kill process ${e}: ${n}`)}))}function k(e,i,r,s){let t=typeof e=="number"?e.toString():e;if(!/^\d+$/.test(t))if(s){s(new Error("pid must be a number"));return}else throw new Error("pid must be a number");let n={};n[t]=[];let o=new Set;switch(o.add(t),process.platform){case"win32":{h("taskkill",["/pid",t,"/T","/F"]).on("close",u=>{s&&(u===0?s():s(new Error(`taskkill exited with code ${u}`)))});break}case"darwin":l(t,n,o,function(f){return h("pgrep",["-lfP",f])},function(){w(n,i,t,r,s)});break;default:l(t,n,o,function(f){return h("ps",["-o","pid command","--no-headers","--ppid",f])},function(){w(n,i,t,r,s)});break}}function w(e,i,r,s,t){let n=new Set;try{Object.keys(e).forEach(function(o){e[o].forEach(function(f){n.has(f)||(E(f,i),n.add(f))}),o===r&&s&&!n.has(o)&&(E(o,i),n.add(o))})}catch(o){if(t){t(o);return}else throw o}t&&t()}function E(e,i){try{process.kill(parseInt(e,10),i)}catch(r){if(r.code!=="ESRCH")throw r}}function l(e,i,r,s,t){let n=s(e),o="";n.stdout?.on("data",function(u){let a=u.toString("ascii");o+=a});let f=u=>{if(r.delete(e),u!==0){if(r.size===0){t();return}return}o.trim().split(`
1
+ import{Pb as m}from"./chunk-7FQFEB33.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();import{spawn as h}from"child_process";function g(e=process.pid,i="SIGTERM",r=!0,s){k(e,i,r,s??(n=>{n&&m(`Failed to kill process ${e}: ${n}`)}))}function k(e,i,r,s){let t=typeof e=="number"?e.toString():e;if(!/^\d+$/.test(t))if(s){s(new Error("pid must be a number"));return}else throw new Error("pid must be a number");let n={};n[t]=[];let o=new Set;switch(o.add(t),process.platform){case"win32":{h("taskkill",["/pid",t,"/T","/F"]).on("close",u=>{s&&(u===0?s():s(new Error(`taskkill exited with code ${u}`)))});break}case"darwin":l(t,n,o,function(f){return h("pgrep",["-lfP",f])},function(){w(n,i,t,r,s)});break;default:l(t,n,o,function(f){return h("ps",["-o","pid command","--no-headers","--ppid",f])},function(){w(n,i,t,r,s)});break}}function w(e,i,r,s,t){let n=new Set;try{Object.keys(e).forEach(function(o){e[o].forEach(function(f){n.has(f)||(E(f,i),n.add(f))}),o===r&&s&&!n.has(o)&&(E(o,i),n.add(o))})}catch(o){if(t){t(o);return}else throw o}t&&t()}function E(e,i){try{process.kill(parseInt(e,10),i)}catch(r){if(r.code!=="ESRCH")throw r}}function l(e,i,r,s,t){let n=s(e),o="";n.stdout?.on("data",function(u){let a=u.toString("ascii");o+=a});let f=u=>{if(r.delete(e),u!==0){if(r.size===0){t();return}return}o.trim().split(`
2
2
  `).forEach(function(a){let d=a.match(/^(\d+)\s(.*)$/);if(d){let c=d[1],$=d[2];i[e].push(c),i[c]=[],m(`Killing process ${c}: ${$}`),r.add(c),l(c,i,r,s,t)}})};n.on("close",f)}export{g as a};